@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240929.0 → 0.0.0-nightly-20241001.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 _0x1530f7,PendingActions as _0x3a8f2,icons as _0x2fd808}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x36031a,ObservableMixin as _0xcb731d,uid as _0x5042b,insertToPriorityArray as _0x388e07,priorities as _0x1bc495,logWarning as _0x4ead58,getEnvKeystrokeText as _0x3b5acf,FocusTracker as _0x159e05,KeystrokeHandler as _0x27e8f6,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x2fd6d3,View as _0x210b86,ViewCollection as _0x13f084,FocusCycler as _0x308ce9,ViewModel as _0x22e58a,createDropdown as Qt,SplitButtonView as _0x41b49a,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x38d913}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4d313f,hashObject as _0x3d1af3,surroundingMarkersDetector as _0x15d99f,FOCUS_ANNOTATION_KEYSTROKE as _0x347009,AriaDescriptionView as _0x2b28de,setupThreadKeyboardNavigation as _0x236c2c,trimHtml as _0x44c8a5,UserView as _0x49cf17,LateFocusButtonView as _0x2a38fe,getDateTimeFormatter as _0x131ec3,getAllMarkersDomElementsSorted as _0x418d9a,sanitizeEditorConfig as _0x55d533}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3d037d,LiveRange as _0x5018e8,LivePosition as _0x5a10b9}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3654b8,toWidget as _0x39e06e}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x425877,set as _0x5654ce,isEqual as _0x8956aa,unset as _0x4bd1fe,omit as Tt}from'lodash-es';import{Delete as _0xc27c33,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4d68a7,ShiftEnter as _0x18aeaf}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x345452,_0x53501c){super(_0x345452),this['_enabledCommands']=_0x53501c,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 _0x31eaf2 of this['editor']['commands']['commands']())_0x31eaf2['affectsData']&&!this['_enabledCommands']['has'](_0x31eaf2)&&_0x31eaf2['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3fb84b of this['editor']['commands']['commands']())_0x3fb84b['affectsData']&&!this['_enabledCommands']['has'](_0x3fb84b)&&_0x3fb84b['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x960c6,_0xddda3c){super(_0x960c6),this['_suggestions']=_0xddda3c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x346d34){const _0x13786b=this['_suggestions']['get'](_0x346d34);if(!_0x13786b)throw new _0x36031a('track-changes-accept-suggestion-not-found',this);const _0x22b0dd=_0x13786b['getRanges']();this['editor']['model']['canEditAt'](_0x22b0dd)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x13786b);}}class R extends ts{['_suggestions'];constructor(_0x4c9b90,_0x5c4ef9){super(_0x4c9b90),this['_suggestions']=_0x5c4ef9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x38030c){const _0x51e74d=this['_suggestions']['get'](_0x38030c);if(!_0x51e74d)throw new _0x36031a('track-changes-discard-suggestion-not-found',this);const _0x583e6a=_0x51e74d['getRanges']();this['editor']['model']['canEditAt'](_0x583e6a)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x51e74d);}}function ls(_0x3ad7a8,_0x26993a){let _0x1fe41c='';return _0x1fe41c+=_0x3ad7a8['split']('*')['map']((_0x348503,_0x88dd68)=>_0x88dd68%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x348503)+'</span>':nn(_0x348503))['join'](''),_0x26993a&&(_0x1fe41c+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x26993a['value']+'\x22\x20title=\x22'+_0x26993a['title']+'\x22></span>'),_0x1fe41c;}function nn(_0x5aa336){const _0x25667c=document['createElement']('span');return _0x25667c['innerText']=_0x5aa336,_0x25667c['innerHTML'];}function ss(_0x51dfb7){return _0x51dfb7['sort']((_0x4d5a06,_0xcc47d3)=>'deletion'==_0x4d5a06['type']&&'deletion'!=_0xcc47d3['type']?-0x1:'deletion'!=_0x4d5a06['type']&&'deletion'==_0xcc47d3['type']?0x1:0x0);}function to(_0x36072f,_0x46ffe5){let _0x98bf9a,_0x2d2a65=0x0;const _0x25ebae=[],_0x2acada=_0x46ffe5['schema'];for(;_0x2d2a65<_0x36072f['length'];){const _0x10ae34=_0x36072f[_0x2d2a65],_0x34e0e0=_0x36072f[_0x2d2a65+0x1];_0x98bf9a||(_0x98bf9a=_0x46ffe5['createPositionBefore'](_0x10ae34)),on(_0x46ffe5,_0x10ae34,_0x34e0e0)||(_0x25ebae['push'](_0x46ffe5['createRange'](_0x98bf9a,_0x2acada['isObject'](_0x10ae34)?_0x46ffe5['createPositionAfter'](_0x10ae34):_0x46ffe5['createPositionAt'](_0x10ae34,'end'))),_0x98bf9a=null),_0x2d2a65++;}return _0x25ebae;}function on(_0x27b63c,_0x2735fc,_0x19171f){if(!_0x19171f)return!0x1;const _0x45de82=_0x27b63c['createPositionAfter'](_0x2735fc),_0x372992=_0x27b63c['createPositionBefore'](_0x19171f);return _0x45de82['isTouching'](_0x372992);}function rs(_0x4473d6,_0x4b8196,_0xf511d7){for(;_0xf511d7['length'];){const _0x3d2cc1=_0xf511d7['splice'](0x0,0x64);_0x4473d6['change'](()=>{for(const _0x4a4fd5 of _0x3d2cc1)_0x4a4fd5['isInContent']&&_0x4b8196['execute'](_0x4a4fd5['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x21e090,_0x36e3ad,_0x17041c){super(_0x21e090),this['_command']=_0x36e3ad,this['_suggestions']=_0x17041c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x180933=Array['from'](this['_suggestions']['values']())['some'](_0x128287=>_0x128287['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x180933;}['execute'](){const _0x16d22d=ss(Array['from'](this['_suggestions']['values']()));for(const _0x5454f6 of _0x16d22d){const _0xcafcc7=_0x5454f6['getRanges']();if(!this['editor']['model']['canEditAt'](_0xcafcc7))return;}rs(this['editor']['model'],this['_command'],_0x16d22d);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xf99259,_0x422772,_0x5657de){super(_0xf99259),this['_command']=_0x422772,this['_suggestions']=_0x5657de,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1dd9d7=this['editor']['model']['document']['selection'],_0x50861e=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x580b92,_0x391da0){const _0x369501=Array['from'](_0x580b92['getRanges']()),_0x318331=new Set();for(const _0x4c72d1 of _0x391da0)if(_0x4c72d1['isInContent']){for(const _0x493355 of _0x369501)for(const _0x4ed978 of _0x4c72d1['getRanges']())(_0x493355['isIntersecting'](_0x4ed978)||_0x580b92['isCollapsed']&&!_0x4c72d1['isMultiRange']&&_0x4c72d1['next']&&_0x4ed978['end']['isTouching'](_0x493355['start']))&&_0x318331['add'](_0x4c72d1);}return _0x318331;}(_0x1dd9d7,_0x50861e),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x16fc36=ss(Array['from'](this['_selectedSuggestions']));for(const _0x238c37 of _0x16fc36){const _0x2b8896=_0x238c37['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2b8896))return;}rs(this['editor']['model'],this['_command'],_0x16fc36);}}class u extends/* #__PURE__ -- @preserve */
24
- _0xcb731d(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x49f4aa,_0x34c179){super(),this['id']=_0x34c179['id'],this['type']=_0x34c179['type'],this['subType']=_0x34c179['subType']||null,this['author']=_0x34c179['author'],this['creator']=_0x34c179['creator']||_0x34c179['author'],this['isExternal']=Boolean(_0x34c179['attributes']&&_0x34c179['attributes']['@external']),this['data']=null,this['_model']=_0x49f4aa,this['_onAccept']=_0x34c179['onAccept'],this['_onDiscard']=_0x34c179['onDiscard'],this['_onAttributesChange']=_0x34c179['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x34c179['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 _0x30e9e4=this;for(;_0x30e9e4['previous'];)_0x30e9e4=_0x30e9e4['previous'];return _0x30e9e4;}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'](_0x7ece7){this['_markerNames']['add'](_0x7ece7);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5c5212=>this['_model']['markers']['get'](_0x5c5212))['filter'](_0x27e56f=>_0x27e56f);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3c8ac2=>{for(const _0xa604da of this['getMarkers']())_0x3c8ac2['removeMarker'](_0xa604da);}),this['_markerNames']['clear']();}['removeMarker'](_0x35d778){this['_model']['change'](_0x22e113=>{_0x22e113['removeMarker'](_0x35d778);}),this['_markerNames']['delete'](_0x35d778);}['addRange'](_0x5839ca){const _0x80c24f='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x80c24f),this['_model']['change'](_0x498214=>{_0x498214['addMarker'](_0x80c24f,{'range':_0x5839ca,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x265328){for(const _0x4e54f8 of this['getRanges']())if(_0x4e54f8['isIntersecting'](_0x265328))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x8d4454=>_0x8d4454['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x128cc4,_0x4cf355)=>[..._0x128cc4,..._0x4cf355['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x582ac9=this['getRanges']();if(0x1!=_0x582ac9['length'])return null;const _0x400db4=_0x582ac9[0x0],_0x4adf7a=_0x400db4['start']['nodeAfter'],_0xdb38=_0x400db4['end']['nodeBefore'];return _0x4adf7a instanceof _0x3d037d?_0x4adf7a!=_0xdb38?null:_0x4adf7a: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 _0x17e0aa=[];let _0xc6ec8b=this['head'];for(;_0xc6ec8b;)_0x17e0aa['push'](_0xc6ec8b),_0xc6ec8b=_0xc6ec8b['next'];return _0x17e0aa;}['setAttribute'](_0x181e94,_0x3f8c84){const _0x6f9ba4=_0x425877(this['attributes']);_0x5654ce(_0x6f9ba4,_0x181e94,_0x3f8c84),_0x8956aa(_0x6f9ba4,this['attributes'])||(this['attributes']=_0x6f9ba4,this['_onAttributesChange'](_0x6f9ba4));}['removeAttribute'](_0x21b4a3){const _0x492ffe=_0x425877(this['attributes']);_0x4bd1fe(_0x492ffe,_0x21b4a3),_0x8956aa(_0x492ffe,this['attributes'])||(this['attributes']=_0x492ffe,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 _0x5042b()['substr'](0x1,0x5);}}function o(_0x4e0dbb,_0x1f1dd8,_0x469f35){const t=_0x4e0dbb['t'];switch(_0x1f1dd8){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',_0x469f35);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x469f35);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x469f35);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x469f35);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x469f35);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',_0x469f35);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x469f35);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',_0x469f35);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x469f35);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x469f35);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x469f35);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x469f35);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x469f35);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x469f35);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x469f35);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x469f35);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x469f35);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x469f35);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x469f35);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x469f35);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x469f35);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x469f35);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x469f35);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'},_0x469f35);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x469f35);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x469f35);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x469f35);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x469f35);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x469f35);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'},_0x469f35);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x469f35);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x469f35);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x469f35);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x469f35);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'},_0x469f35);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x469f35);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'},_0x469f35);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'},_0x469f35);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x469f35);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'},_0x469f35);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x469f35);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'},_0x469f35);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x469f35);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x469f35);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'},_0x469f35);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'},_0x469f35);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'},_0x469f35);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x469f35);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'},_0x469f35);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'},_0x469f35);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'},_0x469f35);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1f1dd8;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x29247e,_0x1eaac3){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x29247e,this['_locale']=_0x1eaac3;}['getDescriptions'](_0x31c91f){const _0x403942=[],_0x3f5d06=new Set(),_0x3f9591=new Set();for(let _0x915749=0x0;_0x915749<_0x31c91f['length'];_0x915749++){const _0x58aeac=_0x31c91f[_0x915749];if(!_0x58aeac['isInContent'])continue;const _0x177454=this['_handleCustomCallbackDescription'](_0x58aeac);if(_0x177454){if(null!=_0x58aeac['subType']){if(_0x3f5d06['has'](_0x58aeac['subType']))continue;_0x3f5d06['add'](_0x58aeac['subType']);}_0x403942['push'](_0x177454);}else{if('attribute'!=_0x58aeac['type'])'insertion'!=_0x58aeac['type']&&'deletion'!=_0x58aeac['type']||this['_handleInsertRemoveSuggestionDescription'](_0x403942,_0x58aeac,_0x31c91f[_0x915749+0x1]);else{const _0x1c0a95=_0x58aeac['data']['key'];if(_0x3f9591['has'](_0x1c0a95))continue;_0x3f9591['add'](_0x58aeac['data']['key']),_0x1c0a95==m?this['_handleRenameSuggestionDescription'](_0x403942,_0x58aeac):this['_handleAttributeSuggestionDescription'](_0x403942,_0x58aeac);}}}return this['_resolveDescriptionItems'](_0x403942);}['registerDescriptionCallback'](_0x19f8ca){this['_customCallbacks']['push'](_0x19f8ca);}['registerElementLabel'](_0x274746,_0x813982,_0x59ac5e=_0x1bc495['normal']){'function'==typeof _0x274746?_0x388e07(this['_itemLabelsCallbacks'],{'matchingCallback':_0x274746,'label':_0x813982,'priority':_0x59ac5e}):this['_itemLabels']['set'](_0x274746,_0x813982);}['registerAttributeLabel'](_0x2ed9cb,_0x37d1c0){this['_attributeLabels']['set'](_0x2ed9cb,_0x37d1c0);}['getItemLabel'](_0x5cb8c4,_0x7a284c=0x1){let _0x26f84a;for(const _0x54a632 of this['_itemLabelsCallbacks'])if(_0x54a632['matchingCallback'](_0x5cb8c4)){_0x26f84a=_0x54a632['label'];break;}return _0x26f84a||(_0x26f84a=this['_itemLabels']['get'](_0x5cb8c4['name'])),_0x26f84a?_0x26f84a(_0x7a284c):0x1!==_0x7a284c?_0x7a284c+'\x20'+_0x5cb8c4['name']+'s':''+_0x5cb8c4['name'];}['_addDescriptionItems'](_0x1bf077,_0x106e90){const _0x20f017=_0x106e90['getFirstRange']()['getWalker'](),_0x1acb3c='insertion'==_0x106e90['type']?'add':'remove';for(const _0x14a645 of _0x20f017){const _0x38bb06=_0x14a645['item'],_0x73c233=_0x1bf077[_0x1bf077['length']-0x1];if(_0x38bb06['is']('$textProxy'))_0x73c233&&_0x73c233['type']['indexOf']('Container')>-0x1&&_0x1bf077['pop'](),_0x73c233&&'text'==_0x73c233['type']?_0x73c233[_0x1acb3c]+=_0x38bb06['data']:_0x1bf077['push']({'type':'text','add':'add'==_0x1acb3c?_0x38bb06['data']:'','remove':'remove'==_0x1acb3c?_0x38bb06['data']:''});else{if(this['_schema']['isObject'](_0x38bb06)){const _0x59bdb9=_0x38bb06;if(_0x73c233&&_0x73c233['type']['indexOf']('Container')>-0x1&&_0x1bf077['pop'](),'elementEnd'==_0x14a645['type'])continue;_0x73c233&&_0x73c233['type']==_0x1acb3c+'Object'&&_0x73c233['element']['name']==_0x59bdb9['name']?_0x73c233['quantity']++:_0x1bf077['push']({'type':_0x1acb3c+'Object','element':_0x59bdb9,'quantity':0x1}),_0x20f017['skip'](_0x167cb8=>!('elementEnd'==_0x167cb8['type']&&_0x167cb8['item']==_0x38bb06));}else{if(this['_schema']['checkChild'](_0x38bb06,'$text')||_0x38bb06['is']('element','softBreak')){const _0x1e4e8e=_0x38bb06;if('add'==_0x1acb3c&&'elementStart'==_0x14a645['type']||'remove'==_0x1acb3c&&'elementEnd'==_0x14a645['type'])continue;if(_0x73c233&&-0x1==_0x73c233['type']['indexOf']('Container')){'text'==_0x73c233['type']&&(_0x73c233[_0x1acb3c]+='\x0a');continue;}let _0x3c086c;if(_0x3c086c='add'==_0x1acb3c?_0x1e4e8e['nextSibling']&&!this['_schema']['isObject'](_0x1e4e8e['nextSibling'])?_0x1e4e8e['nextSibling']:null:_0x1e4e8e['previousSibling']&&!this['_schema']['isObject'](_0x1e4e8e['previousSibling'])?_0x1e4e8e['previousSibling']:null,_0x1e4e8e['isEmpty']||_0x3c086c&&_0x3c086c['isEmpty']){const _0x171cf7=_0x3c086c&&_0x3c086c['isEmpty']?_0x3c086c:_0x1e4e8e;_0x73c233&&_0x73c233['type']==_0x1acb3c+'EmptyContainer'&&_0x73c233['element']['name']==_0x171cf7['name']?_0x73c233['quantity']++:_0x1bf077['push']({'type':_0x1acb3c+'EmptyContainer','element':_0x171cf7,'quantity':0x1});}else _0x1bf077['push']({'type':_0x1acb3c+'Container','element':_0x1e4e8e});}}}}}['_resolveDescriptionItems'](_0x5a9f31){const _0x1024f4=this['_locale'],_0x43c8c3=[],_0x4d2d7c=[],_0x4ec4e9=[];for(const _0x4a004d of _0x5a9f31)switch(_0x4a004d['type']){case'text':if(_0x4a004d['add']=_0x4a004d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4a004d['remove']=_0x4a004d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4a004d['add']&&''!=_0x4a004d['remove']){_0x43c8c3['push']({'type':'replace','content':o(_0x1024f4,'REPLACE_TEXT',['\x22'+_0x4a004d['remove']+'\x22','\x22'+_0x4a004d['add']+'\x22'])});continue;}if(null!=_0x4a004d['add']['match'](/^ +$/)){_0x43c8c3['push']({'type':'insertion','content':o(_0x1024f4,'*Insert:*\x20%0',o(_0x1024f4,'ELEMENT_SPACE',_0x4a004d['add']['length']))});continue;}if(null!=_0x4a004d['remove']['match'](/^ +$/)){_0x43c8c3['push']({'type':'deletion','content':o(_0x1024f4,'*Remove:*\x20%0',o(_0x1024f4,'ELEMENT_SPACE',_0x4a004d['remove']['length']))});continue;}if(''!=_0x4a004d['add']){_0x43c8c3['push']({'type':'insertion','content':o(_0x1024f4,'*Insert:*\x20%0','\x22'+_0x4a004d['add']+'\x22')});continue;}_0x43c8c3['push']({'type':'deletion','content':o(_0x1024f4,'*Remove:*\x20%0','\x22'+_0x4a004d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x43c8c3['push']({'type':'insertion','content':o(_0x1024f4,'*Insert:*\x20%0',this['getItemLabel'](_0x4a004d['element'],_0x4a004d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x43c8c3['push']({'type':'deletion','content':o(_0x1024f4,'*Remove:*\x20%0',this['getItemLabel'](_0x4a004d['element'],_0x4a004d['quantity']))});continue;case'addContainer':_0x43c8c3['push']({'type':'insertion','content':o(_0x1024f4,'*Split:*\x20%0',this['getItemLabel'](_0x4a004d['element'],_0x4a004d['quantity']))});continue;case'removeContainer':_0x43c8c3['push']({'type':'deletion','content':o(_0x1024f4,'*Merge:*\x20%0',this['getItemLabel'](_0x4a004d['element'],_0x4a004d['quantity']))});continue;case'addFormat':_0x4d2d7c['push'](_0x4a004d['key']);continue;case'removeFormat':_0x4ec4e9['push'](_0x4a004d['key']);continue;default:_0x43c8c3['push'](_0x4a004d);}if(_0x4d2d7c['length']){const _0x4731ba=_0x4d2d7c['map'](_0x5311a1=>this['_attributeLabels']['has'](_0x5311a1)?this['_attributeLabels']['get'](_0x5311a1):_0x5311a1)['join'](',\x20');_0x43c8c3['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4731ba)});}if(_0x4ec4e9['length']){const _0x343bda=_0x4ec4e9['map'](_0xfb1c1=>this['_attributeLabels']['has'](_0xfb1c1)?this['_attributeLabels']['get'](_0xfb1c1):_0xfb1c1)['join'](',\x20');_0x43c8c3['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x343bda)});}return _0x43c8c3;}['_handleCustomCallbackDescription'](_0xfdcfdd){for(const _0x1d0b3a of this['_customCallbacks']){const _0x2e0e86=_0x1d0b3a(_0xfdcfdd);if(_0x2e0e86&&'type'in _0x2e0e86)return _0x2e0e86;}}['_handleAttributeSuggestionDescription'](_0x12c804,_0x17a673){const _0x112a57=_0x17a673['data'],_0x3ad6c0=void 0x0===_0x112a57['newValue']?'removeFormat':'addFormat';_0x12c804['push']({'type':_0x3ad6c0,'key':_0x112a57['key']});}['_handleRenameSuggestionDescription'](_0x44a3dc,_0x5f4364){_0x44a3dc['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5f4364['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3d6304,_0x5e753a,_0x10a7ec){if(this['_addDescriptionItems'](_0x3d6304,_0x5e753a),_0x10a7ec&&_0x10a7ec['getFirstRange']()&&!_0x5e753a['getFirstRange']()['end']['isEqual'](_0x10a7ec['getFirstRange']()['start'])){const _0x3dc84c=_0x3d6304[_0x3d6304['length']-0x1],_0x1f23cb='insertion'==_0x5e753a['type']?'add':'remove';_0x3dc84c&&'text'==_0x3dc84c['type']&&(_0x3dc84c[_0x1f23cb]+='\x0a');}}}class V extends _0x1530f7{['afterInit'](){const _0x40f164=this['editor'],_0x5b9d98=_0x40f164['plugins']['get']('TrackChangesEditing');_0x40f164['commands']['get']('showAIAssistant')&&_0x5b9d98['enableCommand']('showAIAssistant');}}class U extends _0x1530f7{['afterInit'](){const _0x14bf7b=this['editor'],_0x3ab295=_0x14bf7b['locale'];if(!_0x14bf7b['plugins']['has']('AlignmentEditing'))return;const _0x4b18bf=_0x14bf7b['plugins']['get']('TrackChangesEditing');_0x4b18bf['enableDefaultAttributesIntegration']('alignment'),_0x4b18bf['registerBlockAttribute']('alignment'),_0x4b18bf['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3ab295,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4992fa=this['editor'],_0x1289c3=_0x4992fa['locale'];_0x4992fa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24bc1a=>{if('formatBlock'!=_0x24bc1a['type'])return;const {data:_0x4c6cbd}=_0x24bc1a;if(_0x4c6cbd&&'alignment'==_0x4c6cbd['commandName']){const _0x3d6b52=_0x4c6cbd['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1289c3,'*Format:*\x20%0',function(_0xcf921d){switch(_0xcf921d){case'left':return o(_0x1289c3,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1289c3,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1289c3,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1289c3,'FORMAT_JUSTIFY_TEXT');}}(_0x3d6b52))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x1530f7{['afterInit'](){const _0x48621d=this['editor'],_0x53e1c9=_0x48621d['plugins']['get']('TrackChangesEditing'),_0x2ae356=_0x48621d['locale'];for(const _0x35d4b2 of ti){if(!_0x48621d['plugins']['has'](_0x35d4b2))continue;const _0x1df5ea=_0x35d4b2['slice'](0x0,-0x7)['toLowerCase'](),_0x207a32='FORMAT_'+_0x1df5ea['toUpperCase']();_0x53e1c9['enableDefaultAttributesIntegration'](_0x1df5ea),_0x53e1c9['registerInlineAttribute'](_0x1df5ea),_0x53e1c9['descriptionFactory']['registerAttributeLabel'](_0x1df5ea,o(_0x2ae356,_0x207a32));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a5666=this['editor'],_0x42bc65=_0x5a5666['locale'],_0x3c3182=_0x5a5666['plugins']['get']('TrackChangesEditing');function _0x11d82b(_0x1f3891,_0x566c49){_0x3c3182['descriptionFactory']['registerDescriptionCallback'](_0x3096d8=>{if('formatInline'!=_0x3096d8['type'])return;const {data:_0x16745b}=_0x3096d8;return _0x16745b&&_0x16745b['commandName']===_0x1f3891?_0x16745b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x42bc65,'*Format:*\x20%0',_0x566c49)}:{'type':'format','content':o(_0x42bc65,'*Remove\x20format:*\x20%0',_0x566c49)}:void 0x0;});}_0x11d82b('bold',o(_0x42bc65,'FORMAT_BOLD')),_0x11d82b('italic',o(_0x42bc65,'FORMAT_ITALIC')),_0x11d82b('underline',o(_0x42bc65,'FORMAT_UNDERLINE')),_0x11d82b('code',o(_0x42bc65,'FORMAT_CODE')),_0x11d82b('strikethrough',o(_0x42bc65,'FORMAT_STRIKETHROUGH')),_0x11d82b('subscript',o(_0x42bc65,'FORMAT_SUBSCRIPT')),_0x11d82b('superscript',o(_0x42bc65,'FORMAT_SUPERSCRIPT'));}}class F extends _0x1530f7{['afterInit'](){const _0x27e53f=this['editor'],_0x2de02b=_0x27e53f['locale'];if(!_0x27e53f['plugins']['has']('BlockQuoteEditing'))return;const _0x2fd19e=_0x27e53f['plugins']['get']('TrackChangesEditing'),_0x2b7d6d=this['editor']['commands']['get']('blockQuote');_0x2fd19e['enableCommand']('blockQuote',(_0x283649,_0xf6f2c5={})=>{const _0x2e01bb=this['editor']['model']['document']['selection'],_0x1774a1=_0xf6f2c5&&void 0x0!==_0xf6f2c5['forceValue']?_0xf6f2c5['forceValue']:!_0x2b7d6d['value'];let _0x5c5842=[];if(_0x1774a1){const _0x586f77=Array['from'](_0x2e01bb['getSelectedBlocks']())['filter'](_0x4356b9=>oo(_0x4356b9)||function(_0x46a19a,_0x3965aa){const _0x438ded=_0x3965aa['checkChild'](_0x46a19a['parent'],'blockQuote'),_0x31b4b0=_0x3965aa['checkChild'](['$root','blockQuote'],_0x46a19a);return _0x438ded&&_0x31b4b0;}(_0x4356b9,this['editor']['model']['schema']));_0x5c5842=to(_0x586f77,_0x27e53f['model']);}else{const _0x2f1fb8=Array['from'](_0x2e01bb['getSelectedBlocks']())['filter'](_0x55fcfb=>oo(_0x55fcfb));_0x5c5842=to(_0x2f1fb8,_0x27e53f['model']);}_0x27e53f['model']['change'](()=>{for(const _0x25994b of _0x5c5842)_0x2fd19e['markBlockFormat'](_0x25994b,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1774a1}]});});}),_0x2fd19e['descriptionFactory']['registerDescriptionCallback'](_0x86115=>{const {data:_0x48c621}=_0x86115;if(_0x48c621&&'blockQuote'==_0x48c621['commandName']){const _0x23b4dd=o(_0x2de02b,'ELEMENT_BLOCK_QUOTE');return _0x48c621['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2de02b,'*Set\x20format:*\x20%0',_0x23b4dd)}:{'type':'format','content':o(_0x2de02b,'*Remove\x20format:*\x20%0',_0x23b4dd)};}});}}function oo(_0xf00316){return'blockQuote'==_0xf00316['parent']['name'];}class L extends _0x1530f7{['afterInit'](){const _0x283131=this['editor'];_0x283131['plugins']['has']('CaseChange')&&(_0x283131['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x283131['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x283131['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x1530f7{['afterInit'](){const _0x58a232=this['editor'];_0x58a232['commands']['get']('ckbox')&&_0x58a232['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x1530f7{['afterInit'](){const _0x2e08ef=this['editor'];if(!_0x2e08ef['plugins']['has']('CodeBlock'))return;const _0x2e45cf=_0x2e08ef['plugins']['get']('TrackChangesEditing'),_0x29c5ff=_0x2e08ef['locale'],_0x33e52a=_0x2e08ef['config']['get']('codeBlock')['languages'],_0x5d9c13=_0x2e08ef['commands']['get']('codeBlock');_0x2e45cf['enableCommand']('indentCodeBlock'),_0x2e45cf['enableCommand']('outdentCodeBlock'),_0x2e45cf['enableCommand']('codeBlock',(_0x2e653d,_0x4f2a99={})=>{const _0x322ed1=_0x2e08ef['model'],_0x2035f0=_0x2e08ef['model']['document']['selection'],_0x33c37b=_0x4f2a99&&void 0x0!==_0x4f2a99['forceValue']?_0x4f2a99['forceValue']:!_0x5d9c13['value'];let _0x16cab3;_0x4f2a99['language']||(_0x4f2a99['language']=_0x33e52a[0x0]['language']),_0x16cab3=_0x33c37b?Array['from'](_0x2035f0['getSelectedBlocks']())['filter'](_0x4da1ce=>eo(_0x4da1ce)||function(_0x5014ba,_0x2f2b6b){if(_0x5014ba['is']('rootElement')||_0x2f2b6b['isLimit'](_0x5014ba))return!0x1;return _0x2f2b6b['checkChild'](_0x5014ba['parent'],'codeBlock');}(_0x4da1ce,_0x322ed1['schema'])):Array['from'](_0x2035f0['getSelectedBlocks']())['filter'](_0x21faf1=>eo(_0x21faf1));const _0x2c4b57=to(_0x16cab3,_0x322ed1);_0x322ed1['change'](()=>{for(const _0x23bd2a of _0x2c4b57)_0x2e45cf['markBlockFormat'](_0x23bd2a,{'commandName':'codeBlock','commandParams':[{..._0x4f2a99,'forceValue':_0x33c37b}],'formatGroupId':'blockName'});});}),(_0x2e45cf['descriptionFactory']['registerElementLabel']('codeBlock',_0x3e45b6=>o(_0x29c5ff,'ELEMENT_CODE_BLOCK',_0x3e45b6)),_0x2e45cf['descriptionFactory']['registerDescriptionCallback'](_0xd33544=>{if('formatBlock'!=_0xd33544['type'])return;const _0x4bde52=_0x29c5ff['t'],{data:_0x65237a}=_0xd33544;if(!_0x65237a||'codeBlock'!=_0x65237a['commandName'])return;const _0x151ead=_0x65237a['commandParams'][0x0]['language'],_0x3083ce=_0x4bde52(_0x33e52a['find'](_0x1a435f=>_0x1a435f['language']===_0x151ead)['label'])['toLowerCase']();return _0x65237a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x29c5ff,'*Set\x20format:*\x20%0',o(_0x29c5ff,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3083ce+')')}:{'type':'format','content':o(_0x29c5ff,'*Remove\x20format:*\x20%0',o(_0x29c5ff,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x74af1f){return'codeBlock'==_0x74af1f['name'];}class q extends _0x1530f7{['afterInit'](){const _0x51e677=this['editor'];if(!_0x51e677['plugins']['has']('CommentsEditing'))return;_0x51e677['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x23a4db,_0x21d680,_0x331eef){const _0x231c58=[];for(const _0x152180 of _0x21d680['getItems']())_0x152180['hasAttribute'](_0x23a4db)&&_0x231c58['push'](_0x331eef['createRangeOn'](_0x152180));return _0x231c58;}function _e(_0x517083,_0x4471f4,{showActiveMarker:_0x18c715=!0x0}={}){const _0x35524c=_0x517083['plugins']['get']('TrackChangesEditing');return(_0x3de231,_0x465ef6,_0x45cd36)=>{if(!_0x45cd36['consumable']['test'](_0x465ef6['markerRange'],_0x3de231['name']))return;const _0x34d96e=_0x465ef6['markerRange']['getWalker'](),_0x267dd5=_0x465ef6['markerRange']['start'],_0xb0081b=_0x517083['model']['schema'];let _0x51fb1b=null,_0x23a934=null,_0x42283a=!0x1,_0x4ef7a0=!0x1;for(const _0x163427 of _0x34d96e){const _0x1f3095=_0x163427['item'];_0x42283a=_0x42283a||_0xb0081b['isContent'](_0x1f3095);const _0xc242e0=_0x45cd36['mapper']['toViewElement'](_0x1f3095);if(_0xc242e0&&_0xc242e0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x163427['type']&&(_0xb0081b['isBlock'](_0x1f3095)&&!_0xb0081b['isLimit'](_0x1f3095)&&(_0x1f3095['nextSibling']||_0x267dd5['isAtEnd']?_0x51fb1b&&_0x51fb1b['parent']==_0x1f3095||(_0x51fb1b=_0x1f3095,_0x4ed45d(_0x163427['previousPosition']),_0x4ef7a0=!0x0):_0x23a934=_0x23a934||_0x163427['previousPosition']));}function _0x4ed45d(_0x32a964){const {authorId:_0xcdc292}=_0x35524c['_splitMarkerName'](_0x465ef6['markerName']),_0x59c631=_0x45cd36['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4471f4,'data-author-id':_0xcdc292}),_0x2e8096=_0x45cd36['mapper']['toViewPosition'](_0x32a964);_0x18c715&&_0x35524c['activeMarkers']['includes'](_0x465ef6['markerName'])&&_0x45cd36['writer']['addClass']('ck-suggestion-marker--active',_0x59c631),_0x45cd36['writer']['insert'](_0x2e8096,_0x59c631),_0x45cd36['mapper']['bindElementToMarker'](_0x59c631,_0x465ef6['markerName']);}_0x42283a||_0x4ef7a0||!_0x23a934||_0x4ed45d(_0x23a934);};}class z extends _0x1530f7{static get['requires'](){return[_0xc27c33];}['init'](){const _0xdd6e0c=this['editor'],_0x2ac4f8=_0xdd6e0c['plugins']['get']('TrackChangesEditing');_0x2ac4f8['enableCommand']('delete');const _0x1e8e5a=_0xdd6e0c['commands']['get']('deleteForward');_0x2ac4f8['enableCommand']('deleteForward',(_0x75919d,_0x5136a4={})=>{const _0x2a0870=_0xdd6e0c['model']['createSelection'](_0xdd6e0c['model']['document']['selection']);_0x2a0870['isCollapsed']&&_0xdd6e0c['model']['modifySelection'](_0x2a0870,{'direction':'forward','unit':_0x5136a4['unit']});const _0x7dca81=_0x2a0870['getFirstRange'](),_0x1e47b0=_0x5018e8['fromRange'](_0x7dca81);let _0x561bcb;_0x75919d(_0x5136a4),_0x561bcb='$graveyard'==_0x1e47b0['root']['rootName']?_0xdd6e0c['model']['createRange'](_0x7dca81['start']):_0xdd6e0c['model']['createRange'](_0x1e47b0['start'],_0x1e47b0['end']),_0x1e47b0['detach'](),_0xdd6e0c['model']['enqueueChange'](_0x1e8e5a['buffer']['batch'],_0x72903e=>{_0x1e8e5a['buffer']['lock'](),_0x72903e['setSelection'](_0x72903e['createRange'](_0x561bcb['end'])),_0x1e8e5a['buffer']['unlock']();});}),_0xdd6e0c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0xdd6e0c,'merge'),{'priority':'high'}),_0xdd6e0c['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0xe09993,_0x94b34c,_0x85bc3e)=>{_0x85bc3e['options']['showSuggestionHighlights']&&_e(_0xdd6e0c,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0xe09993,_0x94b34c,_0x85bc3e);},{'priority':'high'}),_0xdd6e0c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4bb8d2,_0x204397,_0x5e684f)=>{const _0x2979f1=_0x5e684f['mapper']['markerNameToElements'](_0x204397['markerName']);if(_0x2979f1){for(const _0x7ba2b3 of _0x2979f1)_0x7ba2b3['is']('uiElement')&&(_0x5e684f['mapper']['unbindElementFromMarkerName'](_0x7ba2b3,_0x204397['markerName']),_0x5e684f['writer']['remove'](_0x7ba2b3));}},{'priority':'high'});}}class K extends _0x1530f7{['afterInit'](){const _0x17581b=this['editor'];if(!_0x17581b['plugins']['has']('ListEditing'))return;const _0x4f806a=_0x17581b['locale'],_0x45ab87=_0x17581b['plugins']['get']('TrackChangesEditing'),_0x2fb0a5=_0x17581b['plugins']['has']('TodoListEditing'),_0x385db8=!!_0x17581b['config']['get']('list.multiBlock');function _0x22a54d(_0x1a8542){return{'type':'format','content':''+o(_0x4f806a,'*Set\x20format:*\x20%0',_0x1a8542)};}function _0x54ea83(_0x2303ae){return{'type':'format','content':''+o(_0x4f806a,'*Remove\x20format:*\x20%0',_0x2303ae)};}_0x45ab87['enableDefaultAttributesIntegration']('numberedList'),_0x45ab87['enableDefaultAttributesIntegration']('bulletedList'),_0x45ab87['enableDefaultAttributesIntegration']('customNumberedList'),_0x45ab87['enableDefaultAttributesIntegration']('customBulletedList'),_0x45ab87['enableDefaultAttributesIntegration']('indentList'),_0x45ab87['enableDefaultAttributesIntegration']('outdentList'),_0x45ab87['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x45ab87['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x45ab87['registerBlockAttribute']('listItemId'),_0x45ab87['registerBlockAttribute']('listType'),_0x45ab87['registerBlockAttribute']('listIndent'),_0x385db8&&(_0x45ab87['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x45ab87['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2fb0a5&&(_0x45ab87['enableDefaultAttributesIntegration']('todoList'),_0x45ab87['enableDefaultAttributesIntegration']('checkTodoList'),_0x45ab87['registerBlockAttribute']('todoListChecked'),_0x45ab87['descriptionFactory']['registerDescriptionCallback'](_0x35b02a=>{const {data:_0x12cdf4}=_0x35b02a;if(_0x12cdf4&&'todoListChecked'==_0x12cdf4['key'])return{'type':'format','content':_0x12cdf4['newValue']?o(_0x4f806a,'*Check\x20item*'):o(_0x4f806a,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x31129b=>{if(_0x31129b['batch']['isUndo'])return!0x1;let _0x163641=!0x1;const _0x267d7a=_0x45ab87['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x371070=>'todoListChecked'===_0x45ab87['_getAttributeKey'](_0x371070));for(const _0xa852b0 of _0x267d7a){'todo'!=_0xa852b0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x45ab87['_findSuggestions'](_0xa852b0['getFirstRange'](),'attribute')['find'](_0x1831d0=>'listType'===_0x45ab87['_getAttributeKey'](_0x1831d0['suggestion']))||(_0x31129b['removeMarker'](_0xa852b0['getFirstMarker']()),_0x163641=!0x0));}return _0x163641;})),_0x45ab87['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4f806a,'FORMAT_INDENT'));const _0x43be6c={'type':'format','content':''};_0x45ab87['descriptionFactory']['registerDescriptionCallback'](_0x23533a=>{const {data:_0x1a740c}=_0x23533a;if(!_0x1a740c||'listType'!=_0x1a740c['key'])return;let _0x408316=_0x23533a['head'];for(;_0x408316;){if(_0x408316['data']&&(('listStyle'==_0x408316['data']['key']||'listMarkerStyle'==_0x408316['data']['key'])&&(_0x408316['data']['newValue']&&'default'!=_0x408316['data']['newValue']||'default'!=_0x408316['data']['oldValue']&&!_0x1a740c['newValue'])||!_0x385db8&&_0x408316['data']['key']==m))return _0x43be6c;_0x408316=_0x408316['next'];}if(null==_0x1a740c['newValue'])switch(_0x1a740c['oldValue']){case'bulleted':return _0x54ea83(o(_0x4f806a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x54ea83(o(_0x4f806a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x54ea83(o(_0x4f806a,'ELEMENT_TODO_LIST'));}switch(_0x1a740c['newValue']){case'bulleted':return _0x22a54d(o(_0x4f806a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x22a54d(o(_0x4f806a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x22a54d(o(_0x4f806a,'ELEMENT_TODO_LIST'));}}),_0x45ab87['descriptionFactory']['registerDescriptionCallback'](_0x5436d9=>{const {data:_0x386aa0}=_0x5436d9;if(_0x386aa0&&'listIndent'==_0x386aa0['key'])return null==_0x386aa0['newValue']||null==_0x386aa0['oldValue']&&0x0==_0x386aa0['newValue']?_0x43be6c:void 0x0;}),_0x45ab87['descriptionFactory']['registerDescriptionCallback'](_0x2c0c80=>{if('attribute'!=_0x2c0c80['type'])return;const {data:_0x27f994}=_0x2c0c80;if(!_0x27f994||'listItemId'!=_0x27f994['key'])return;const _0x584acf=Ee(_0x2c0c80);return'newValue'==_0x584acf?{'type':'format','content':o(_0x4f806a,'*Merge:*\x20list\x20item')}:'oldValue'==_0x584acf?{'type':'format','content':o(_0x4f806a,'*Split:*\x20list\x20item')}:_0x43be6c;}),_0x17581b['model']['document']['registerPostFixer'](_0xc712ea=>this['listItemIdFixer'](_0xc712ea)),_0x17581b['model']['document']['registerPostFixer'](_0xdcc79c=>this['noTrackChangesFixer'](_0xdcc79c)),_0x17581b['model']['document']['on']('change:data',(_0x455ceb,_0x2531a8)=>{if(_0x2531a8['isUndo']||!_0x2531a8['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x205d37){if(_0x205d37['batch']['isUndo']||!_0x205d37['batch']['isLocal'])return!0x1;let _0x33f71c=!0x1;const _0x403844=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x34bfda=>_0x34bfda['data']&&'listItemId'==_0x34bfda['data']['key'])['filter'](_0x3ab3e2=>_0x3ab3e2['data']['newValue']&&_0x3ab3e2['data']['oldValue']);for(const _0x4f5aaf of _0x403844)Ee(_0x4f5aaf)||(_0x205d37['removeMarker'](_0x4f5aaf['getFirstMarker']()),_0x33f71c=!0x0);return _0x33f71c;}['noTrackChangesFixer'](_0x295959){if(_0x295959['batch']['isUndo']||!_0x295959['batch']['isLocal'])return!0x1;const _0x239dbd=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x239dbd['trackChangesCommand']['value'])return!0x1;let _0x3f2dcc=!0x1;const _0x20045d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x30a061=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x13a06b=>'attribute'==_0x13a06b['type'])['filter'](_0x37b7ee=>_0x20045d['includes'](_0x37b7ee['attributeKey']));if(0x0==_0x30a061['length'])return _0x3f2dcc;for(const _0x4f381b of _0x30a061){const _0x472aee=_0x239dbd['_findSuggestions'](_0x4f381b['range'],'attribute')['filter'](_0x38b585=>!_0x38b585['meta']['isNextTo'])['map'](_0x2ca1c6=>_0x2ca1c6['suggestion'])['filter'](_0xc5621=>{const _0x2241ad=_0x239dbd['_getAttributeKey'](_0xc5621);return _0x20045d['includes'](_0x2241ad);});if(_0x472aee['length']){for(const _0x4b5db3 of _0x472aee)_0x295959['removeMarker'](_0x4b5db3['getFirstMarker']());_0x3f2dcc=!0x0;}}return _0x3f2dcc;}['assureChains'](){const _0x1eb795=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54f5f9=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x41fe7c;const _0x5a2ff3=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x115b46=>{if(_0x115b46['data']['oldRange']||!_0x115b46['data']['newRange'])return null;if(!_0x115b46['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4b4dcc}=_0x1eb795['_splitMarkerName'](_0x115b46['name']);if(!_0x1eb795['hasSuggestion'](_0x4b4dcc))return null;const _0x8dce2d=_0x1eb795['getSuggestion'](_0x4b4dcc);return _0x54f5f9['includes'](_0x8dce2d['data']['key']);})['map'](_0x28715d=>{const {id:_0x181f7c}=_0x1eb795['_splitMarkerName'](_0x28715d['name']),_0x3337c8=_0x1eb795['getSuggestion'](_0x181f7c);return _0x41fe7c=_0x3337c8['attributes']['groupId'],_0x3337c8['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5a2ff3['size'])return;const _0x422f62=_0x1eb795['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x43ae9d=>'attribute'==_0x43ae9d['type']&&_0x43ae9d['data']&&_0x54f5f9['includes'](_0x43ae9d['data']['key'])&&_0x43ae9d['attributes']['groupId']!=_0x41fe7c)['map'](_0x3f2855=>({'listItem':_0x3f2855['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3f2855['attributes']['groupId']})),_0x111c21=new Set();for(const {groupId:_0x4a2289,listItem:_0x293dc0}of _0x422f62)_0x5a2ff3['has'](_0x293dc0)&&_0x111c21['add'](_0x4a2289);for(const _0x2ff00d of _0x1eb795['getSuggestions']())_0x111c21['has'](_0x2ff00d['attributes']['groupId'])&&_0x2ff00d['setAttribute']('groupId',_0x41fe7c);}['_supportLegacySuggestions'](){const _0x26d254=this['editor'],_0x2fa11b=_0x26d254['locale'],_0x1c2299=_0x26d254['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1c2299['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x21ad32,_0x410a96){const _0x37abd8=[];for(let _0x10ab84 of _0x21ad32)_0x10ab84['start']['nodeAfter']===_0x10ab84['end']['parent']&&(_0x10ab84=_0x26d254['model']['createRange'](_0x26d254['model']['createPositionAt'](_0x10ab84['start']['nodeAfter'],0x0))),_0x37abd8['push'](_0x10ab84);_0x26d254['model']['change'](_0x178247=>{const _0x1844cc=_0x26d254['model']['document']['selection'],_0x2c63c7=Array['from'](_0x1844cc['getRanges']())['map'](_0x2a6878=>_0x5018e8['fromRange'](_0x2a6878));_0x178247['setSelection'](_0x37abd8),_0x26d254['commands']['get'](_0x410a96['commandName'])['refresh'](),_0x410a96['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x26d254['execute'](_0x410a96['commandName'],..._0x410a96['commandParams']),_0x178247['setSelection'](_0x2c63c7);for(const _0x138f86 of _0x2c63c7)_0x138f86['detach']();});}),_0x1c2299['descriptionFactory']['registerElementLabel'](function(_0x5dbec0){const _0x20d18f=!_0x26d254['model']['schema']['isObject'](_0x5dbec0),_0x303c1c=_0x5dbec0['previousSibling'],_0x25a455=_0x5dbec0['nextSibling'],_0x9de7fc=_0x5dbec0['getAttribute']('listItemId'),_0x994f85=!_0x303c1c||_0x303c1c['getAttribute']('listItemId')!==_0x9de7fc,_0xbaf2a3=!_0x25a455||_0x25a455['getAttribute']('listItemId')!==_0x9de7fc;return _0x20d18f&&Boolean(_0x9de7fc)&&_0x994f85&&_0xbaf2a3;},_0x1f3a44=>o(_0x2fa11b,'ELEMENT_LIST_ITEM',_0x1f3a44));}['_registerLegacyDescription'](){const _0xa628ea=this['editor'],_0x49cea7=_0xa628ea['locale'];function _0x5bd76c(_0x3b2cb0){const _0x26624d=_0xa628ea['commands']['get']('bulletedList')['value'],_0x473f02=_0xa628ea['commands']['get']('numberedList')['value'];return'numberedList'===_0x3b2cb0?_0x26624d:_0x473f02;}_0xa628ea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xbb345d){if('formatBlock'!=_0xbb345d['type'])return;const {data:_0x330082}=_0xbb345d;if(!_0x330082)return;let _0x509e27,_0x144026,_0x4e591f,_0x2ffad5;switch(_0x330082['commandName']){case'bulletedList':_0x4e591f=_0x330082['commandParams'][0x0]['forceValue'],_0x2ffad5=_0x5bd76c(_0x330082['commandName']),_0x509e27=_0x4e591f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2ffad5&&_0xa628ea['config']['get']('list.multiBlock')||(_0x509e27='*Change\x20to:*\x20%0'),_0x144026={'type':'format','content':o(_0x49cea7,_0x509e27,o(_0x49cea7,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4e591f=_0x330082['commandParams'][0x0]['forceValue'],_0x2ffad5=_0x5bd76c(_0x330082['commandName']),_0x509e27=_0x4e591f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2ffad5&&_0xa628ea['config']['get']('list.multiBlock')||(_0x509e27='*Change\x20to:*\x20%0'),_0x144026={'type':'format','content':o(_0x49cea7,_0x509e27,o(_0x49cea7,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x509e27='*Indent:*\x20%0',_0x144026={'type':'format','content':o(_0x49cea7,_0x509e27,o(_0x49cea7,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x509e27=function(_0x52ce39){const _0x3cbada=_0x52ce39['getFirstRange']();let _0x50188d=_0x3cbada['start']['nodeAfter'];for(;_0x50188d&&_0x3cbada['containsItem'](_0x50188d);){if(_0x50188d['getAttribute']('listIndent')>0x0)return!0x1;_0x50188d=_0x50188d['nextSibling'];}return!0x0;}(_0xbb345d)?o(_0x49cea7,'*Format:*\x20remove\x20from\x20%0',o(_0x49cea7,function(_0x50e575){return'ELEMENT_'+_0x50e575['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xbb345d))):o(_0x49cea7,'*Outdent:*\x20%0',o(_0x49cea7,'ELEMENT_LIST_ITEM')),_0x144026={'type':'format','content':_0x509e27};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x330082['multipleBlocks']&&(_0x509e27='*Merge:*\x20%0',_0x144026={'type':'deletion','content':o(_0x49cea7,_0x509e27,o(_0x49cea7,'ELEMENT_LIST_ITEM'))});}return _0x144026;});}}function Ee(_0x334f12){let _0x40f396=_0x334f12['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x40f396;){const _0x343ca8=_0x40f396['getAttribute']('listItemId');if(!_0x343ca8)return!0x1;if(_0x343ca8==_0x334f12['data']['newValue'])return'newValue';if(_0x343ca8==_0x334f12['data']['oldValue'])return'oldValue';_0x40f396=_0x40f396['previousSibling'];}return!0x1;}class pe extends _0x1530f7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1ce83d=this['editor']['config']['get']('list.properties'),_0x5a3520=this['editor']['plugins']['get']('TrackChangesEditing');_0x1ce83d['styles']&&(_0x5a3520['enableDefaultAttributesIntegration']('listStyle'),_0x5a3520['registerBlockAttribute']('listStyle')),_0x1ce83d['reversed']&&(_0x5a3520['enableDefaultAttributesIntegration']('listReversed'),_0x5a3520['registerBlockAttribute']('listReversed')),_0x1ce83d['startIndex']&&(_0x5a3520['enableDefaultAttributesIntegration']('listStart'),_0x5a3520['registerBlockAttribute']('listStart'));const _0x442ff7={'type':'format','content':''};_0x5a3520['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1712cd=this['editor']['locale'];_0x5a3520['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x1712cd,'FORMAT_LIST_REVERSED')),_0x5a3520['descriptionFactory']['registerDescriptionCallback'](_0x196900=>{const {data:_0x3eca48}=_0x196900;if(_0x3eca48&&'listReversed'==_0x3eca48['key'])return null==_0x3eca48['newValue']||0x0==_0x3eca48['newValue']&&null==_0x3eca48['oldValue']?_0x442ff7:void 0x0;}),_0x5a3520['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x1712cd,'FORMAT_LIST_START')),_0x5a3520['descriptionFactory']['registerDescriptionCallback'](_0x53c2a4=>{const {data:_0x3b342c}=_0x53c2a4;if(_0x3b342c&&'listStart'==_0x3b342c['key'])return null==_0x3b342c['newValue']||0x1==_0x3b342c['newValue']&&null==_0x3b342c['oldValue']?_0x442ff7:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5afb70=>{if(_0x5afb70['batch']['isUndo'])return!0x1;let _0x5e7cd3=!0x1;const _0x1bec2a=_0x5a3520['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x395063=>{const _0x28ca4b=_0x5a3520['_getAttributeKey'](_0x395063);return'listStart'==_0x28ca4b||'listReversed'==_0x28ca4b;});for(const _0x737d38 of _0x1bec2a){const _0x2415f0=_0x737d38['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2415f0||'customNumbered'==_0x2415f0)continue;_0x5a3520['_findSuggestions'](_0x737d38['getFirstRange'](),'attribute')['find'](_0x7a7bc0=>'listType'==_0x5a3520['_getAttributeKey'](_0x7a7bc0['suggestion']))||(_0x5afb70['removeMarker'](_0x737d38['getFirstMarker']()),_0x5e7cd3=!0x0);}return _0x5e7cd3;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x210e59){const _0x3eaf2f=this['editor']['locale'],{data:_0x16e3e0}=_0x210e59,_0x42cb1a={'type':'format','content':''};if(!_0x16e3e0||'listStyle'!=_0x16e3e0['key'])return;if(!_0x16e3e0['oldValue'])return'default'==_0x16e3e0['newValue']?_0x42cb1a:{'type':'format','content':''+o(_0x3eaf2f,'*Set\x20format:*\x20%0',o(_0x3eaf2f,this['_getTranslationKeyForListStyle'](_0x16e3e0['newValue'])))};if(!_0x16e3e0['newValue']){if('default'==_0x16e3e0['oldValue'])return _0x42cb1a;let _0x10cb9a=_0x210e59['head'];for(;_0x10cb9a;){if(_0x10cb9a['data']&&'listType'==_0x10cb9a['data']['key']&&_0x10cb9a['data']['newValue'])return _0x42cb1a;_0x10cb9a=_0x10cb9a['next'];}return{'type':'format','content':''+o(_0x3eaf2f,'*Remove\x20format:*\x20%0',o(_0x3eaf2f,this['_getTranslationKeyForListStyle'](_0x16e3e0['oldValue'])))};}if('default'!=_0x16e3e0['newValue'])return{'type':'format','content':''+o(_0x3eaf2f,'*Set\x20format:*\x20%0',o(_0x3eaf2f,this['_getTranslationKeyForListStyle'](_0x16e3e0['newValue'])))};let _0x382603=_0x210e59['head'];for(;_0x382603;){if(_0x382603['data']&&'listType'==_0x382603['data']['key']&&_0x382603['data']['newValue']&&_0x382603['data']['oldValue'])return _0x42cb1a;_0x382603=_0x382603['next'];}return{'type':'format','content':o(_0x3eaf2f,'*Set\x20format:*\x20%0',o(_0x3eaf2f,'ELEMENT_'+_0x210e59['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5b3526=this['editor'],_0x2f2861=_0x5b3526['locale'];_0x5b3526['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e5ea7=>{if('formatBlock'!=_0x1e5ea7['type'])return;const {data:_0x422cdc}=_0x1e5ea7;if(!_0x422cdc)return;let _0x274439,_0xf337ca;switch(_0x422cdc['commandName']){case'listStyle':_0x274439='*Change\x20to:*\x20%0',_0xf337ca={'type':'format','content':o(_0x2f2861,_0x274439,o(_0x2f2861,this['_getTranslationKeyForListStyle'](_0x422cdc['commandParams'][0x0]['type'])))};break;case'listReversed':_0x274439=_0x422cdc['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xf337ca={'type':'format','content':o(_0x2f2861,_0x274439)};break;case'listStart':_0x274439='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xf337ca={'type':'format','content':o(_0x2f2861,_0x274439,_0x422cdc['commandParams'][0x0]['startIndex'])};}return _0xf337ca;});}['_getTranslationKeyForListStyle'](_0x28a963){return'ELEMENT_'+function(_0x355995){if(ye['includes'](_0x355995))return'bulleted';if(Se['includes'](_0x355995))return'numbered';return null;}(_0x28a963)['toUpperCase']()+'_LIST_'+_0x28a963['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x1530f7{static get['requires'](){return[_0x4d68a7];}['init'](){const _0x5e6611=this['editor'],_0xe0c9b3=_0x5e6611['plugins']['get']('TrackChangesEditing'),_0x52ae4f=_0x5e6611['commands']['get']('enter');_0xe0c9b3['enableCommand']('enter',()=>{_0x5e6611['model']['change'](_0xe6435f=>{const _0x4b4282=_0x5e6611['model']['document']['selection'],_0x19013b=_0x4b4282['getFirstPosition'](),_0x444fe2=_0x5018e8['fromRange'](_0x4b4282['getFirstRange']());if(_0x52ae4f['enterBlock'](_0xe6435f)){const _0x30d3cc=_0x5e6611['model']['createPositionAt'](_0x19013b['parent']['nextSibling'],0x0),_0x3335e5=_0xe6435f['createRange'](_0x19013b,_0x30d3cc);_0xe0c9b3['markInsertion'](_0x3335e5);}else _0xe6435f['setSelection'](_0xe6435f['createRange'](_0x444fe2['end']));_0x444fe2['detach'](),_0x52ae4f['fire']('afterExecute',{'writer':_0xe6435f});});}),_0x5e6611['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x5e6611,'split'),{'priority':'high'}),_0x5e6611['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x448318,_0x3ccfa8,_0x3d0da0)=>{const _0x2e93ab=_0x3d0da0['mapper']['markerNameToElements'](_0x3ccfa8['markerName']);if(_0x2e93ab){for(const _0x1de56f of _0x2e93ab)_0x1de56f['hasClass']('ck-suggestion-marker-split')&&(_0x3d0da0['mapper']['unbindElementFromMarkerName'](_0x1de56f,_0x3ccfa8['markerName']),_0x3d0da0['writer']['remove'](_0x1de56f));}},{'priority':'high'}),_0x5e6611['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1b900f,_0x5cbbe8,_0x3bec7a)=>{_0x3bec7a['options']['showSuggestionHighlights']&&_e(_0x5e6611,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1b900f,_0x5cbbe8,_0x3bec7a);},{'priority':'high'});}}class X extends _0x1530f7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x19eeca=this['editor']['plugins']['get']('TrackChangesEditing');_0x19eeca['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x19eeca['enableCommand']('findNext'),_0x19eeca['enableCommand']('findPrevious'),_0x19eeca['enableCommand']('replace'),_0x19eeca['enableCommand']('replaceAll');}['handleFindCommand'](_0x95c667,_0x2d4015,_0x18d96f={}){const _0x37ff60=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x95c667(_0xc0dc7b=>{let _0xfd8b9f=('string'==typeof _0x2d4015?_0x37ff60['findByTextCallback'](_0x2d4015,_0x18d96f):_0x2d4015)(_0xc0dc7b);Array['isArray'](_0xfd8b9f)&&(_0xfd8b9f={'results':_0xfd8b9f,'searchText':'string'==typeof _0x2d4015?_0x2d4015:''});const _0x24b6c2=_0xfd8b9f['results']['filter'](_0x56668a=>!0x1===this['_isInDeletionRange'](_0x56668a,_0xc0dc7b['item']));return{..._0xfd8b9f,'results':_0x24b6c2};},_0x18d96f);}['_isInDeletionRange'](_0x28a26d,_0x489b5b){const _0x339604=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x489b5b,_0x28a26d['start']),this['editor']['model']['createPositionAt'](_0x489b5b,_0x28a26d['end']));for(const _0x335b3a of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x339604['getIntersection'](_0x335b3a['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 _0x1530f7{['afterInit'](){const _0x17cbfd=this['editor']['locale'],_0x93376a=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x47e86d,commandName:_0x3500ab}of ro)this['editor']['plugins']['has'](_0x47e86d)&&(_0x93376a['enableDefaultAttributesIntegration'](_0x3500ab),_0x93376a['registerInlineAttribute'](_0x3500ab));_0x93376a['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x17cbfd,'FORMAT_FONT_SIZE')),_0x93376a['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x17cbfd,'FORMAT_FONT_FAMILY')),_0x93376a['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x17cbfd,'FORMAT_FONT_COLOR')),_0x93376a['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x17cbfd,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x512a44=this['editor'],_0x462e99=_0x512a44['locale'];_0x512a44['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36167e=>{const _0x266016=_0x462e99['t'];if('formatInline'!=_0x36167e['type'])return;const {data:_0x22f85b}=_0x36167e;if(null!=_0x22f85b){if('fontSize'==_0x22f85b['commandName']){const _0x17b5e3=_0x22f85b['commandParams'][0x0]['value'];if(_0x17b5e3){const _0x50bc92=_0x266016(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1505e1=>_0x1505e1['model']==_0x17b5e3)['title'])['toLowerCase']();return{'type':'format','content':o(_0x462e99,'*Set\x20font\x20size:*\x20%0',_0x50bc92)};}return{'type':'format','content':o(_0x462e99,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x22f85b['commandName']){const _0x39f057=_0x22f85b['commandParams'][0x0]['value'];return _0x39f057?{'type':'format','content':o(_0x462e99,'*Set\x20font\x20family:*\x20%0',_0x39f057)}:{'type':'format','content':o(_0x462e99,'*Reset\x20font\x20family*')};}if('fontColor'==_0x22f85b['commandName']){const _0x4035bc=_0x22f85b['commandParams'][0x0]['value'];if(_0x4035bc){const _0x20c159=_0x2fd6d3(this['editor']['config']['get']('fontColor.colors'))['find'](_0x59d765=>_0x59d765['model']==_0x4035bc);let _0x22abfa=_0x4035bc,_0x4f811d='';return _0x20c159&&(_0x22abfa=_0x20c159['label'],_0x4f811d=_0x266016(_0x22abfa)['toLowerCase']()),{'type':'format','content':o(_0x462e99,'*Set\x20font\x20color:*\x20%0',_0x4f811d)['trim'](),'color':{'value':_0x4035bc,'title':_0x4f811d||_0x22abfa}};}return{'type':'format','content':o(_0x462e99,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x22f85b['commandName']){const _0x44ab7c=_0x22f85b['commandParams'][0x0]['value'];if(_0x44ab7c){const _0x1fea70=_0x2fd6d3(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x59f524=>_0x59f524['model']==_0x44ab7c);let _0x2c54ca=_0x44ab7c,_0x5cad7d='';return _0x1fea70&&(_0x2c54ca=_0x1fea70['label'],_0x5cad7d=_0x266016(_0x2c54ca)['toLowerCase']()),{'type':'format','content':o(_0x462e99,'*Set\x20font\x20background\x20color:*\x20%0',_0x5cad7d)['trim'](),'color':{'value':_0x44ab7c,'title':_0x5cad7d||_0x2c54ca}};}return{'type':'format','content':o(_0x462e99,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x1530f7{['afterInit'](){const _0x190271=this['editor'],_0x77152c=_0x190271['plugins']['get']('TrackChangesEditing'),_0x54f9d5=_0x190271['commands']['get']('copyFormat'),_0x59d1f6=_0x190271['commands']['get']('pasteFormat');_0x54f9d5&&_0x59d1f6&&(_0x77152c['enableDefaultAttributesIntegration']('pasteFormat'),_0x77152c['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x14a633=this['editor'],_0xc451b0=_0x14a633['locale'];_0x14a633['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1742cf=>{if('formatBlock'!=_0x1742cf['type']&&'formatInline'!=_0x1742cf['type'])return;const {data:_0x4b5ffb}=_0x1742cf;if(_0x4b5ffb&&'pasteFormat'===_0x4b5ffb['commandName']){const _0x2a94e4=[],_0x5cb83d=_0x4b5ffb['commandParams'][0x0];for(const [_0x4c87b5,_0xc84bb5]of Object['entries'](_0x5cb83d))_0x2a94e4['push'](so(_0x14a633,_0x4c87b5,_0xc84bb5));return _0x2a94e4['length']?{'type':'format','content':o(_0xc451b0,'*Set\x20format\x20to:*\x20%0',_0x2a94e4['join'](',\x20'))}:{'type':'format','content':o(_0xc451b0,'*Remove\x20all\x20formatting*')};}});}}function so(_0x37fdd6,_0x3ed6bc,_0x2112ae){const _0x3ddf94=_0x37fdd6['locale']['t'],_0x40c042=_0x3ed6bc['split'](/(?=[A-Z])/)['join']('\x20'),_0x3b7b0f=_0x3ddf94(_0x40c042['charAt'](0x0)['toUpperCase']()+_0x40c042['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2112ae)return _0x3b7b0f;if('fontColor'===_0x3ed6bc||'fontBackgroundColor'===_0x3ed6bc){const _0x4b2067=_0x2fd6d3(_0x37fdd6['config']['get']('fontColor.colors'))['find'](_0x2a6422=>_0x2a6422['model']==_0x2112ae);return _0x3b7b0f+'\x20('+(_0x4b2067?_0x3ddf94(_0x4b2067['label'])['toLowerCase']():_0x2112ae)+')';}if('fontSize'===_0x3ed6bc&&isNaN(parseFloat(_0x2112ae))){const _0x3df1d4=_0x37fdd6['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x37fdd6['config']['get']('fontSize.options'))['find'](_0x3b2da5=>_0x3b2da5['model']==_0x2112ae);return _0x3b7b0f+'\x20('+(_0x3df1d4?_0x3ddf94(_0x3df1d4['title'])['toLowerCase']():_0x2112ae)+')';}return _0x3b7b0f+'\x20('+_0x2112ae+')';}class tt extends _0x1530f7{['_headingOptions'];['afterInit'](){const _0x47a8f2=this['editor'];if(!_0x47a8f2['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x47a8f2['config']['get']('heading.options');const _0x3bc4bb=_0x47a8f2['locale'],_0x3e4409=_0x47a8f2['plugins']['get']('TrackChangesEditing');_0x3e4409['enableDefaultAttributesIntegration']('heading');for(const _0x5037c9 of this['_headingOptions'])'paragraph'!=_0x5037c9['model']&&_0x3e4409['descriptionFactory']['registerElementLabel'](_0x5037c9['model'],_0x518ac8=>{const _0x34c096=this['_getHeadingLevel'](_0x5037c9['model']);return null!==_0x34c096?_0xec0605(_0x518ac8,_0x34c096):_0x24dc7e(_0x518ac8,_0x5037c9['title']);});function _0xec0605(_0x3c6461,_0x1e8c5b){return o(_0x3bc4bb,'ELEMENT_HEADING',[_0x3c6461,_0x1e8c5b]);}function _0x24dc7e(_0x48bd0b,_0x56446c){return o(_0x3bc4bb,'ELEMENT_HEADING_CUSTOM',[_0x48bd0b,_0x56446c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x403160=this['editor'],_0x119151=_0x403160['locale'];function _0x15ddc1(_0x372ea0,_0xe2c223){return o(_0x119151,'ELEMENT_HEADING_CUSTOM',[_0x372ea0,_0xe2c223]);}_0x403160['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4930bb=>{if('formatBlock'!=_0x4930bb['type'])return;const {data:_0xef3c2f}=_0x4930bb;if(_0xef3c2f&&'heading'==_0xef3c2f['commandName']){const _0x27e7c1=_0xef3c2f['commandParams'][0x0]['value'],_0x586cb0=this['_getHeadingLevel'](_0x27e7c1);if(null!==_0x586cb0)return{'type':'format','content':o(_0x119151,'*Change\x20to:*\x20%0',(_0xc16230=0x1,_0xbc8040=_0x586cb0,o(_0x119151,'ELEMENT_HEADING',[_0xc16230,_0xbc8040])))};const _0x3ba0be=this['_headingOptions']['find'](_0x920d99=>_0x920d99['model']===_0x27e7c1)['title'];return{'type':'format','content':o(_0x119151,'*Change\x20to:*\x20%0',_0x15ddc1(0x1,_0x3ba0be))};}var _0xc16230,_0xbc8040;});}['_getHeadingLevel'](_0x4ca39c){const _0x192ebc=_0x4ca39c['match'](/^heading(\d+)/);if(_0x192ebc)return _0x192ebc[0x1];const _0x344d0c=this['_headingOptions']?.['find'](_0x24deba=>_0x24deba['model']==_0x4ca39c);if(_0x344d0c&&_0x344d0c['view']){const _0x1efb29=_0x344d0c['view'],_0x3d196c=(_0x1efb29['name']??_0x1efb29)['match'](/^h(\d+)/);if(_0x3d196c)return _0x3d196c[0x1];}return null;}}class et extends _0x1530f7{['afterInit'](){const _0xd2f099=this['editor'];if(!_0xd2f099['plugins']['has']('HighlightEditing'))return;const _0x5593f6=_0xd2f099['plugins']['get']('TrackChangesEditing'),_0x411fb5=_0xd2f099['locale'];_0x5593f6['enableDefaultAttributesIntegration']('highlight'),_0x5593f6['registerInlineAttribute']('highlight'),_0x5593f6['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x411fb5,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55d636=this['editor'],_0xba457a=_0x55d636['locale'];_0x55d636['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fe167=>{if('formatInline'!=_0x2fe167['type'])return;const {data:_0x3e21e9}=_0x2fe167;if(_0x3e21e9&&'highlight'==_0x3e21e9['commandName']){const _0xa56182=_0xba457a['t'],_0x1fe454=_0x3e21e9['commandParams'][0x0]['value'];if(_0x1fe454){const _0x5d5c17=_0x55d636['config']['get']('highlight.options')['find'](_0x1b7c12=>_0x1b7c12['model']==_0x1fe454),_0x3e2d8e=_0xa56182(_0x5d5c17['title'])['toLowerCase']();return{'type':'format','content':o(_0xba457a,'*Set\x20highlight:*\x20%0',_0x3e2d8e),'color':{'value':_0x5d5c17['color'],'title':_0x5d5c17['title']}};}return{'type':'format','content':o(_0xba457a,'*Remove\x20highlight*',o(_0xba457a,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x1530f7{['afterInit'](){const _0x3d997c=this['editor'];if(!_0x3d997c['plugins']['has']('HorizontalLineEditing'))return;_0x3d997c['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x436ec9=_0x3d997c['plugins']['get']('TrackChangesEditing'),_0x24415c=_0x3d997c['locale'];_0x436ec9['descriptionFactory']['registerElementLabel']('horizontalLine',_0xb83f5e=>o(_0x24415c,'ELEMENT_HORIZONTAL_LINE',_0xb83f5e)),_0x3d997c['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x285fa5,{writer:_0x366e9d,options:_0x2fddcb})=>{if(!_0x2fddcb['showSuggestionHighlights'])return null;const _0x21d622=_0x366e9d['createContainerElement']('div'),_0x3a219e=_0x366e9d['createEmptyElement']('hr');return _0x366e9d['addClass']('ck-horizontal-line',_0x21d622),_0x366e9d['insert'](_0x366e9d['createPositionAt'](_0x21d622,0x0),_0x3a219e),_0x21d622;},'converterPriority':'high'});}}class st extends _0x1530f7{['afterInit'](){const _0x13becb=this['editor'];if(!_0x13becb['plugins']['has']('HtmlEmbed'))return;const _0x185b96=_0x13becb['plugins']['get']('TrackChangesEditing'),_0x45b4ef=_0x13becb['locale'];_0x185b96['descriptionFactory']['registerElementLabel']('rawHtml',_0x37cc3a=>o(_0x45b4ef,'ELEMENT_HTML_EMBED',_0x37cc3a)),_0x185b96['enableDefaultAttributesIntegration']('htmlEmbed'),_0x185b96['registerBlockAttribute']('value'),_0x185b96['descriptionFactory']['registerDescriptionCallback'](_0x2d141e=>{if('attribute'!=_0x2d141e['type'])return;const {data:_0x4a5963}=_0x2d141e;if(_0x4a5963&&'value'==_0x4a5963['key']&&_0x2d141e['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x10b784=o(_0x45b4ef,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x45b4ef,'*Change\x20%0\x20content*',_0x10b784)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20600d=this['editor'],_0x3a6f6f=_0x20600d['locale'];_0x20600d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f7184=>{if('formatBlock'!=_0x1f7184['type'])return;const {data:_0x21c61c}=_0x1f7184;if(_0x21c61c&&'htmlEmbed'==_0x21c61c['commandName']){const _0xe75f6c=o(_0x3a6f6f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3a6f6f,'*Change\x20%0\x20content*',_0xe75f6c)};}});}}class nt extends _0x1530f7{['afterInit'](){const _0x3f1ff3=this['editor'];if(!_0x3f1ff3['plugins']['has']('ImageEditing'))return;const _0x48e401=_0x3f1ff3['plugins']['get']('TrackChangesEditing'),_0x38f3d3=_0x3f1ff3['plugins']['get']('ImageUtils'),_0x1756f1=_0x3f1ff3['locale'];_0x48e401['enableCommand']('insertImage'),_0x48e401['descriptionFactory']['registerElementLabel']('imageBlock',_0x2045d4=>o(_0x1756f1,'ELEMENT_IMAGE',_0x2045d4)),_0x48e401['descriptionFactory']['registerElementLabel']('imageInline',_0x21b343=>o(_0x1756f1,'ELEMENT_INLINE_IMAGE',_0x21b343)),_0x48e401['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1756f1,'ELEMENT_CAPTION')),_0x3f1ff3['plugins']['has']('ImageUploadEditing')&&_0x48e401['enableCommand']('uploadImage'),_0x3f1ff3['plugins']['has']('ImageBlockEditing')&&_0x3f1ff3['plugins']['has']('ImageInlineEditing')&&(_0x48e401['enableCommand']('imageTypeInline',(_0x71c68,_0x57a828)=>{const _0x11b26a=_0x38f3d3['getClosestSelectedImageElement'](_0x3f1ff3['model']['document']['selection']);_0x3f1ff3['model']['change'](()=>{_0x48e401['markBlockFormat'](_0x11b26a,{'commandName':'imageTypeInline','commandParams':[_0x57a828]},[],'convertBlockImageToInline');});}),_0x48e401['enableCommand']('imageTypeBlock',(_0x1df913,_0x3fd424)=>{_0x3f1ff3['model']['change'](_0x5b4394=>{let _0x155b34=_0x38f3d3['getClosestSelectedImageElement'](_0x3f1ff3['model']['document']['selection']),_0x32cf25=_0x5b4394['createRangeOn'](_0x155b34);const _0x1fbe45=_0x5a10b9['fromPosition'](_0x32cf25['start'],'toPrevious'),_0x577c8b=_0x5a10b9['fromPosition'](_0x32cf25['end'],'toNext');_0x48e401['forceDefaultExecution'](()=>_0x1df913(_0x3fd424)),_0x155b34=_0x38f3d3['getClosestSelectedImageElement'](_0x3f1ff3['model']['document']['selection']),_0x32cf25=_0x5b4394['createRangeOn'](_0x155b34);const _0x59f6ee=_0x5b4394['createRange'](_0x1fbe45,_0x577c8b);_0x1fbe45['detach'](),_0x577c8b['detach'](),_0x48e401['markBlockFormat'](_0x155b34,{'commandName':'imageTypeInline','commandParams':[_0x3fd424]},[],'convertInlineImageToBlock'),_0x59f6ee['start']['isBefore'](_0x32cf25['start'])&&_0x48e401['markInsertion'](_0x5b4394['createRange'](_0x59f6ee['start'],_0x32cf25['start']),'convertInlineImageToBlock'),_0x32cf25['end']['isBefore'](_0x59f6ee['end'])&&_0x48e401['markInsertion'](_0x5b4394['createRange'](_0x32cf25['end'],_0x59f6ee['end']),'convertInlineImageToBlock');});}),_0x48e401['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x48e401['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x48e401['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x48e401['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x48e401['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x48e401['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x52e8c9])=>{const _0xb778c6=_0x48e401['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3b88fb=_0x52e8c9['start'],_0x2a6f49=_0x52e8c9['end'];const _0x2b951e=_0x3f1ff3['model']['schema']['getNearestSelectionRange'](_0x3b88fb,'backward'),_0x1546a2=_0x3f1ff3['model']['schema']['getNearestSelectionRange'](_0x2a6f49,'forward');_0x2b951e['isCollapsed']&&(_0x3b88fb=_0x2b951e['start']),_0x1546a2['isCollapsed']&&(_0x2a6f49=_0x1546a2['end']),_0xb778c6([_0x3f1ff3['model']['createRange'](_0x3b88fb,_0x2a6f49)]);}),_0x48e401['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xd1791a),_0x48e401['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xd1791a)),_0x3f1ff3['plugins']['has']('ImageCaptionEditing')&&(_0x48e401['enableCommand']('toggleImageCaption',(_0x183eb7,_0x55d018)=>{const _0x41b8b8=_0x3f1ff3['plugins']['get']('ImageCaptionUtils');let _0x340c94=_0x38f3d3['getClosestSelectedImageElement'](_0x3f1ff3['model']['document']['selection']),_0x997e43=_0x41b8b8['getCaptionFromImageModelElement'](_0x340c94);_0x3f1ff3['model']['change'](()=>{if(_0x997e43)return void _0x48e401['markDeletion'](_0x3f1ff3['model']['createRangeOn'](_0x997e43));const _0x138e4f=_0x38f3d3['isBlockImage'](_0x340c94);_0x183eb7(_0x55d018),_0x340c94=_0x38f3d3['getClosestSelectedImageElement'](_0x3f1ff3['model']['document']['selection']),_0x997e43=_0x41b8b8['getCaptionFromImageModelElement'](_0x340c94),_0x48e401['markInsertion'](_0x3f1ff3['model']['createRangeOn'](_0x997e43),_0x138e4f?null:'imageCaption');});}),_0x48e401['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xd1791a));const _0x5ec08b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x41bf24(_0x3f9f0f,_0x32bdee){const _0x365bde=_0x5ec08b['findIndex'](({type:_0x43a75f,subType:_0x2b55f6})=>_0x3f9f0f['type']==_0x43a75f&&_0x3f9f0f['subType']==_0x2b55f6),_0x50d5ac=_0x5ec08b['findIndex'](({type:_0x261ca9,subType:_0x3f0b9a})=>_0x32bdee['type']==_0x261ca9&&_0x32bdee['subType']==_0x3f0b9a);if(_0x365bde<0x0||_0x50d5ac<0x0)return!0x1;const _0x1e86ed=_0x3f9f0f['getFirstRange'](),_0x5406f2=_0x32bdee['getFirstRange']();if((0x0==_0x365bde||0x1==_0x365bde)&&0x2==_0x50d5ac&&_0x1e86ed['isIntersecting'](_0x5406f2))return!0x0;if(0x2==_0x365bde&&0x3==_0x50d5ac){const _0x50c14d=_0x48e401['_findSuggestions'](_0x1e86ed,'insertion')['filter'](({suggestion:_0x56c068,meta:_0x1021b1})=>_0x1021b1['isOwn']&&'convertInlineImageToBlock'==_0x56c068['subType']);if(_0x50c14d['length']>0x1&&_0x5406f2['end']['isEqual'](_0x1e86ed['start']))return!0x0;if(0x1==_0x50c14d['length']&&(_0x1e86ed['start']['isEqual'](_0x5406f2['end'])||_0x1e86ed['end']['isEqual'](_0x5406f2['start'])))return!0x0;}if(0x3==_0x365bde&&0x3==_0x50d5ac&&_0x1e86ed['start']['isBefore'](_0x5406f2['start'])){const _0x2bc4f6=_0x1e86ed['end']['nodeAfter'],_0x32cbb6=_0x5406f2['start']['nodeBefore'];return _0x38f3d3['isBlockImage'](_0x2bc4f6)&&_0x2bc4f6===_0x32cbb6;}return!0x1;}function _0xd1791a(_0x2a3773,_0xff4ea5){return _0x41bf24(_0x2a3773,_0xff4ea5)?[_0x2a3773,_0xff4ea5]:_0x41bf24(_0xff4ea5,_0x2a3773)?[_0xff4ea5,_0x2a3773]:null;}_0x3f1ff3['plugins']['has']('ImageResize')&&(_0x48e401['enableDefaultAttributesIntegration']('resizeImage'),_0x48e401['registerBlockAttribute']('resizedWidth'),_0x48e401['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1756f1,'FORMAT_IMAGE_SIZE'))),_0x3f1ff3['plugins']['has']('ImageTextAlternativeEditing')&&(_0x48e401['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x48e401['registerBlockAttribute']('alt')),_0x48e401['descriptionFactory']['registerDescriptionCallback'](_0x5eebba=>{if(!!_0x5ec08b['find'](({type:_0x5b0e1b,subType:_0x484b87})=>_0x5eebba['type']==_0x5b0e1b&&_0x5eebba['subType']==_0x484b87))return _0x5eebba['previous']?{}:void 0x0;}),_0x48e401['descriptionFactory']['registerDescriptionCallback'](_0x3f289d=>{if('insertion'==_0x3f289d['type']||'deletion'==_0x3f289d['type']){const _0x31174e=_0x3f289d['getContainedElement']();if(_0x31174e&&_0x31174e['is']('element','caption'))return{'type':'insertion'==_0x3f289d['type']?'addObject':'removeObject','element':_0x31174e,'quantity':0x1};}}),_0x48e401['descriptionFactory']['registerDescriptionCallback'](_0xc83af6=>'formatBlock'==_0xc83af6['type']&&'convertInlineImageToBlock'==_0xc83af6['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xc83af6['type']&&'convertBlockImageToInline'==_0xc83af6['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x48e401['descriptionFactory']['registerDescriptionCallback'](_0x33c92f=>{if('attribute'!=_0x33c92f['type'])return;const {data:_0x33501f}=_0x33c92f;if(!_0x33501f||'alt'!=_0x33501f['key'])return;const _0x2073a0=_0x33501f['newValue'];return _0x2073a0?{'type':'format','content':o(_0x1756f1,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2073a0+'\x22')}:{'type':'format','content':o(_0x1756f1,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9b8c27=this['editor'],_0x4d3681=_0x9b8c27['locale'];_0x9b8c27['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47e0e2=>{if('formatBlock'!=_0x47e0e2['type']&&'formatInline'!=_0x47e0e2['type'])return;const {data:_0x2b6902}=_0x47e0e2;if(_0x2b6902){if('imageTextAlternative'==_0x2b6902['commandName']){const _0x3f04c9=_0x2b6902['commandParams'][0x0]['newValue'];return _0x3f04c9?{'type':'format','content':o(_0x4d3681,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3f04c9+'\x22')}:{'type':'format','content':o(_0x4d3681,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2b6902['commandName']){const _0x4f3dab=_0x2b6902['commandParams'][0x0]['width'];return _0x4f3dab?{'type':'format','content':o(_0x4d3681,'*Set\x20image\x20width:*\x20%0',_0x4f3dab)}:{'type':'format','content':o(_0x4d3681,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x1530f7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x16d855=this['editor']['locale'],_0x5afd63=this['editor']['plugins']['get']('TrackChangesEditing');_0x5afd63['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5afd63['registerBlockAttribute']('src'),_0x5afd63['descriptionFactory']['registerDescriptionCallback'](_0x48595c=>{if('attribute'!=_0x48595c['type'])return;const {data:_0x6910b3}=_0x48595c;return _0x6910b3&&'src'==_0x6910b3['key']?_0x6910b3['newValue']&&_0x6910b3['oldValue']?{'type':'format','content':o(_0x16d855,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3d4c8d=this['editor']['plugins']['get']('TrackChangesEditing');_0x3d4c8d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3d4c8d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3d4c8d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3d4c8d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a5ef0=this['editor'],_0xaae62c=_0x5a5ef0['locale'];_0x5a5ef0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x985426=>{if('formatBlock'!=_0x985426['type']&&'formatInline'!=_0x985426['type'])return;const {data:_0x176c3a}=_0x985426;if(!_0x176c3a||'replaceImageSource'!=_0x176c3a['commandName'])return;return{'type':'format','content':o(_0xaae62c,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x1530f7{['afterInit'](){const _0x3d824d=this['editor'];if(!_0x3d824d['plugins']['has']('ImageStyleEditing'))return;const _0xbf8797=_0x3d824d['plugins']['get']('TrackChangesEditing'),_0x13c230=_0x3d824d['plugins']['get']('ImageUtils'),_0x4296fa={};_0xbf8797['enableCommand']('imageStyle',(_0x62a88c,_0x5774eb)=>{const _0x2b7f1c=_0x3d824d['plugins']['get']('Users')['me'],_0x48df96=_0x3d824d['commands']['get']('imageStyle');let _0x4afca2=_0x13c230['getClosestSelectedImageElement'](_0x3d824d['model']['document']['selection']),_0x404620=_0x3d824d['model']['createRangeOn'](_0x4afca2),_0x209409=_0x48df96['value'];if(_0x209409==_0x5774eb['value'])return;const _0x34425b={'commandName':'imageStyle','commandParams':[_0x5774eb],'formatGroupId':_0x5042b()};_0x3d824d['model']['change'](()=>{if(_0xbf8797['getSuggestions']()['filter'](_0x55c090=>_0x55c090['isInContent']&&_0x2b7f1c==_0x55c090['author']&&('formatBlock'==_0x55c090['type']||'formatInline'==_0x55c090['type'])&&('imageStylePreApply'==_0x55c090['subType']||'imageStylePostApply'==_0x55c090['subType'])&&_0x55c090['getFirstRange']()['isEqual'](_0x404620))['forEach'](_0x377dc4=>_0xbf8797['discardSuggestion'](_0x377dc4['head'])),_0x4afca2=_0x13c230['getClosestSelectedImageElement'](_0x3d824d['model']['document']['selection']),_0x404620=_0x3d824d['model']['createRangeOn'](_0x4afca2),_0x48df96['refresh'](),_0x3d824d['commands']['get']('imageTypeInline')['refresh'](),_0x3d824d['commands']['get']('imageTypeBlock')['refresh'](),_0x209409=_0x48df96['value'],_0x209409!=_0x5774eb['value'])return _0x13c230['isInlineImage'](_0x4afca2)&&_0x48df96['shouldConvertImageType'](_0x5774eb['value'],_0x4afca2)?(_0x62a88c({..._0x5774eb,'setImageSizes':!0x1}),_0x4afca2=_0x13c230['getClosestSelectedImageElement'](_0x3d824d['model']['document']['selection']),void _0xbf8797['markBlockFormat'](_0x4afca2,{..._0x34425b,'commandReversedParams':[{'value':_0x209409||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x13c230['isBlockImage'](_0x4afca2)?_0xbf8797['markBlockFormat'](_0x4afca2,_0x34425b,[],'imageStylePostApply'):_0xbf8797['markInlineFormat'](_0x404620,_0x34425b,'imageStylePostApply'));});});for(const _0x1f76bb of _0x3d824d['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4296fa[_0x1f76bb['name']]=_0x1f76bb['title']['toLowerCase']();_0xbf8797['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xbf8797['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xbf8797['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xbf8797['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xad6fba])=>{_0x13c230['setImageNaturalSizeAttributes'](_0xad6fba['getContainedElement']());}),_0xbf8797['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5cc0a0,_0x112be2)=>{_0xbf8797['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5cc0a0,{'commandName':_0x112be2['commandName'],'commandParams':_0x112be2['commandReversedParams']});}),_0xbf8797['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x46bfb3,_0x3757b3){if(_0x5638a8(_0x46bfb3,_0x3757b3))return[_0x46bfb3,_0x3757b3];if(_0x5638a8(_0x3757b3,_0x46bfb3))return[_0x3757b3,_0x46bfb3];return null;});const _0x22ba63=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5638a8(_0x486129,_0x36331a){const _0x32d1b1=_0x22ba63['findIndex'](({type:_0x1c259c,subType:_0x2f953a})=>_0x486129['type']==_0x1c259c&&_0x486129['subType']==_0x2f953a),_0x55eacc=_0x22ba63['findIndex'](({type:_0x18fa64,subType:_0x2ebdea})=>_0x36331a['type']==_0x18fa64&&_0x36331a['subType']==_0x2ebdea);if(_0x32d1b1<0x0||_0x55eacc<0x0)return!0x1;const _0x1b4aac=_0x486129['getFirstRange'](),_0x116263=_0x36331a['getFirstRange']();if((0x0==_0x32d1b1||0x1==_0x32d1b1)&&0x2==_0x55eacc&&_0x1b4aac['isIntersecting'](_0x116263))return!0x0;if(0x2==_0x32d1b1&&0x3==_0x55eacc){const _0x4001b1=_0xbf8797['_findSuggestions'](_0x1b4aac,'insertion')['filter'](({suggestion:_0x222c9e,meta:_0x4ab0d7})=>_0x4ab0d7['isOwn']&&'convertInlineImageToBlock'==_0x222c9e['subType']);if(_0x4001b1['length']>0x1&&_0x116263['end']['isEqual'](_0x1b4aac['start']))return!0x0;if(0x1==_0x4001b1['length']&&(_0x1b4aac['start']['isEqual'](_0x116263['end'])||_0x1b4aac['end']['isEqual'](_0x116263['start'])))return!0x0;}if(0x3==_0x32d1b1&&0x3==_0x55eacc&&_0x1b4aac['start']['isBefore'](_0x116263['start'])){const _0x4490a8=_0x1b4aac['end']['nodeAfter'],_0x2463ef=_0x116263['start']['nodeBefore'];return _0x13c230['isBlockImage'](_0x4490a8)&&_0x4490a8===_0x2463ef;}return!0x1;}_0x3d824d['model']['document']['registerPostFixer'](()=>{let _0x3f04f1=!0x1;const _0x4464f9=Array['from'](_0x3d824d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x173ab7,data:_0x12e7a0}of _0x4464f9){const {group:_0x297b73,type:_0x42e787,subType:_0x216626,id:_0x2e8fc1}=_0xbf8797['_splitMarkerName'](_0x173ab7);if('suggestion'==_0x297b73&&_0xbf8797['hasSuggestion'](_0x2e8fc1)){if('formatBlock'==_0x42e787&&('imageStylePreApply'==_0x216626||'imageStylePostApply'==_0x216626)){const _0x1c434e=_0xbf8797['getSuggestion'](_0x2e8fc1);if(_0x12e7a0['newRange']){const _0x30a630=_0x1c434e['getFirstRange']()['getContainedElement']();if(_0x13c230['isBlockImage'](_0x30a630))continue;_0xbf8797['discardSuggestion'](_0x1c434e),_0x3f04f1=!0x0;}}if('insertion'==_0x42e787&&'imageCaption'==_0x216626&&!_0x12e7a0['newRange']){const _0x50dcda=_0xbf8797['getSuggestion'](_0x2e8fc1);_0x50dcda['next']&&_0x50dcda['next']['isInContent']&&(_0xbf8797['discardSuggestion'](_0x50dcda['next']),_0x3f04f1=!0x0);}}}return _0x3f04f1;}),this['_registerLegacyDescription'](_0x4296fa);}['_registerLegacyDescription'](_0x2df7d6){const _0x141d9d=this['editor'],_0x3abf36=_0x141d9d['locale'];_0x141d9d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x534642=>{if('formatBlock'!=_0x534642['type']&&'formatInline'!=_0x534642['type'])return;const {data:_0x4ff637}=_0x534642;if(!_0x4ff637||'imageStyle'!=_0x4ff637['commandName'])return;const _0x23ce3e=_0x4ff637['commandParams'][0x0]['value'];return _0x344436('side'===_0x23ce3e?o(_0x3abf36,'FORMAT_SIDE_IMAGE'):_0x2df7d6[_0x23ce3e]||_0x23ce3e);function _0x344436(_0x593565){return{'type':'format','content':o(_0x3abf36,'*Format:*\x20%0',_0x593565)};}});}}class at extends _0x1530f7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1c137e){super(_0x1c137e),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x90de2d=this['editor'],_0x41b5a2=_0x90de2d['commands']['get']('importWord'),_0x842b25=_0x90de2d['commands']['get']('trackChanges');_0x41b5a2&&(_0x41b5a2['on']('execute',(_0x46dc0e,[,_0x1cb92c])=>{this['_trackChangesValueDuringImport']=_0x842b25['value'],_0x1cb92c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x41b5a2,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x41b5a2,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x842b25['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x90de2d['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3bc261,_0x31026f){const {suggestions:_0x3ca564}=_0x31026f,_0xffb0bc=this['editor']['commands']['get']('trackChanges'),_0x116b02=_0xffb0bc['value'];this['_trackChangesValueDuringImport']!==_0x116b02&&(_0xffb0bc['execute'](),this['_trackChangesExecuted']=!0x0),_0x3ca564&&_0x3ca564['forEach'](({id:_0x394457,type:_0x58d1ad,author:_0x5de302,created_at:_0x212169})=>{const _0x4266d0={'id':_0x394457,'type':_0x58d1ad,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5de302,'createdAt':_0x212169?new Date(_0x212169):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4266d0);});}}class ct extends _0x1530f7{['afterInit'](){const _0x49b0e9=this['editor'],_0x579d31=_0x49b0e9['plugins']['get']('TrackChangesEditing');if(_0x49b0e9['plugins']['has']('IndentEditing')&&(_0x579d31['enableCommand']('indent'),_0x579d31['enableCommand']('outdent')),_0x49b0e9['plugins']['has']('IndentBlock')){for(const _0x4e2e91 of['indentBlock','outdentBlock'])_0x579d31['enableDefaultAttributesIntegration'](_0x4e2e91);}const _0x446278=_0x49b0e9['locale'];_0x579d31['registerBlockAttribute']('blockIndent'),_0x579d31['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x446278,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15dd54=this['editor'],_0x35977d=_0x15dd54['locale'],_0x921011=_0x15dd54['plugins']['get']('TrackChangesEditing');_0x921011['descriptionFactory']['registerDescriptionCallback'](_0x1aba84=>{if('formatBlock'!=_0x1aba84['type'])return;const {data:_0x3fc45b}=_0x1aba84;if(!_0x3fc45b)return;if('indentBlock'!=_0x3fc45b['commandName']&&'outdentBlock'!=_0x3fc45b['commandName'])return;const _0x335fe7=_0x1aba84['getItems']()[0x0],_0x5e75aa=_0x921011['descriptionFactory']['getItemLabel'](_0x335fe7);return'indentBlock'==_0x3fc45b['commandName']?{'type':'format','content':o(_0x35977d,'*Indent:*\x20%0',_0x5e75aa)}:'outdentBlock'==_0x3fc45b['commandName']?{'type':'format','content':o(_0x35977d,'*Outdent:*\x20%0',_0x5e75aa)}:void 0x0;});}}class ut extends _0x1530f7{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x1530f7{['afterInit'](){const _0x596e22=this['editor'];if(!_0x596e22['plugins']['has']('LinkEditing'))return;const _0x58821c=_0x596e22['plugins']['get']('TrackChangesEditing'),_0x1ed91a=_0x596e22['commands']['get']('link');_0x58821c['enableDefaultAttributesIntegration']('link'),_0x58821c['enableDefaultAttributesIntegration']('unlink'),_0x58821c['registerInlineAttribute']('linkHref');for(const _0x3f39f4 of _0x1ed91a['manualDecorators'])_0x58821c['registerInlineAttribute'](_0x3f39f4['id']),_0x58821c['descriptionFactory']['registerAttributeLabel'](_0x3f39f4['id'],'link\x20('+_0x3f39f4['label']['toLowerCase']()+')');_0x58821c['descriptionFactory']['registerDescriptionCallback'](_0x15addb=>{if('attribute'!=_0x15addb['type'])return;const {data:_0x3e71eb}=_0x15addb;if(!_0x3e71eb||'linkHref'!=_0x3e71eb['key'])return;const _0x5a629f=_0x3e71eb['newValue'],_0xd96d09=_0x596e22['locale'];return{'type':'format','content':null==_0x5a629f?o(_0xd96d09,'*Remove\x20link*'):o(_0xd96d09,'*Set\x20link:*\x20%0','\x22'+_0x5a629f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45cd47=this['editor'],_0xa2ef89=_0x45cd47['locale'];_0x45cd47['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x404b63=>{if('formatInline'!=_0x404b63['type'])return;const {data:_0x39fce3}=_0x404b63;if(_0x39fce3){if('link'==_0x39fce3['commandName']){const _0xd50c3c=_0x39fce3['commandParams'][0x0];return{'type':'format','content':o(_0xa2ef89,'*Set\x20link:*\x20%0','\x22'+_0xd50c3c+'\x22')};}return'unlink'==_0x39fce3['commandName']?{'type':'format','content':o(_0xa2ef89,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x1530f7{['afterInit'](){const _0x4e259d=this['editor'],_0x47eb9f=_0x4e259d['locale'];if(!_0x4e259d['plugins']['has']('LegacyListEditing'))return;const _0x3d4c8f=_0x4e259d['plugins']['get']('TrackChangesEditing'),_0x30d118=_0x4e259d['plugins']['has']('LegacyTodoListEditing');function _0x1dd000(_0x109ba0){return()=>{const _0x306fcb=_0x4e259d['model']['document']['selection'],_0x32d291=_0x4e259d['commands']['get'](_0x109ba0);if(_0x32d291['value'])return void _0x4e259d['execute']('paragraph',{});const _0x3010c7=_0x109ba0['slice'](0x0,-0x4),_0xbf869e=function(_0x1f12e0,_0x5ba148,_0x1a5e14){let _0x8c519b=Array['from'](_0x1f12e0)['filter'](_0x40fd85=>function(_0x49d590,_0x16c611){return _0x16c611['checkChild'](_0x49d590['parent'],'listItem')&&!_0x16c611['isObject'](_0x49d590);}(_0x40fd85,_0x1a5e14));_0x8c519b=_0x8c519b['filter'](_0x421a0c=>!_0x421a0c['is']('element','listItem')||_0x421a0c['getAttribute']('listType')!=_0x5ba148);const _0x1ca131=new Set();for(const _0x363d1e of _0x8c519b)_0x363d1e['is']('element','listItem')?_0x1ca131['add'](fe(_0x363d1e)):_0x1ca131['add'](_0x363d1e);return Array['from'](_0x1ca131);}(_0x306fcb['getSelectedBlocks'](),_0x3010c7,_0x4e259d['model']['schema']);_0x4e259d['model']['change'](()=>{for(const _0x5727df of _0xbf869e)_0x3d4c8f['markBlockFormat'](_0x5727df,{'commandName':_0x109ba0,'commandParams':[{'forceValue':!_0x32d291['value']}],'formatGroupId':'blockName'},ue(_0x5727df));});};}function _0xaea53d(_0x278422){return()=>{const _0x391710=function(_0x221679){let _0x189097=Array['from'](_0x221679);const _0x2c1479=_0x189097['findIndex'](_0x4c8ad0=>'listItem'!=_0x4c8ad0['name']);return _0x2c1479>-0x1&&(_0x189097=_0x189097['slice'](0x0,_0x2c1479)),_0x189097;}(_0x4e259d['model']['document']['selection']['getSelectedBlocks']()),_0x173b93=_0x4e259d['model']['createRange'](_0x4e259d['model']['createPositionAt'](_0x391710[0x0],'before'),_0x4e259d['model']['createPositionAt'](_0x391710[_0x391710['length']-0x1],'end'));_0x4e259d['model']['change'](()=>{_0x3d4c8f['markBlockFormat'](_0x173b93,{'commandName':_0x278422,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5da6b9){const _0x351319=new Set();for(const _0x3bfc57 of _0x5da6b9){let _0x4062fb=_0x3bfc57['nextSibling'];for(;_0x4062fb&&_0x4062fb['getAttribute']('listIndent')>_0x3bfc57['getAttribute']('listIndent');)_0x351319['add'](_0x4062fb),_0x4062fb=_0x4062fb['nextSibling'];}return Array['from'](_0x351319);}(_0x391710));});};}_0x3d4c8f['enableCommand']('numberedList',_0x1dd000('numberedList')),_0x3d4c8f['enableCommand']('bulletedList',_0x1dd000('bulletedList')),_0x30d118&&_0x3d4c8f['enableCommand']('todoList',_0x1dd000('todoList')),_0x3d4c8f['enableCommand']('indentList',_0xaea53d('indentList')),_0x3d4c8f['enableCommand']('outdentList',_0xaea53d('outdentList')),_0x30d118&&_0x3d4c8f['enableCommand']('checkTodoList',()=>{const _0x2425c4=_0x4e259d['commands']['get']('checkTodoList'),_0x4085a9=Array['from'](_0x2425c4['_selectedElements']);_0x4085a9['filter'](_0x3e762d=>_0x3e762d['getAttribute']('todoListChecked')!=_0x2425c4['value']),_0x4e259d['model']['change'](()=>{for(const _0x35177f of _0x4085a9)_0x3d4c8f['markBlockFormat'](_0x35177f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2425c4['value']}]});});}),_0x3d4c8f['descriptionFactory']['registerElementLabel']('listItem',_0xf0d5a3=>o(_0x47eb9f,'ELEMENT_LIST_ITEM',_0xf0d5a3)),_0x3d4c8f['descriptionFactory']['registerDescriptionCallback'](_0x576fad=>{if('formatBlock'!=_0x576fad['type']&&'formatInline'!=_0x576fad['type'])return;const {data:_0x233afb}=_0x576fad;if(_0x233afb){if('numberedList'==_0x233afb['commandName']||'bulletedList'==_0x233afb['commandName']||'todoList'==_0x233afb['commandName'])switch(_0x233afb['commandName']['replace']('List','')){case'bulleted':return _0x19f36f(o(_0x47eb9f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x19f36f(o(_0x47eb9f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x19f36f(o(_0x47eb9f,'ELEMENT_TODO_LIST'));}if('indentList'==_0x233afb['commandName'])return{'type':'format','content':o(_0x47eb9f,'*Indent:*\x20%0',o(_0x47eb9f,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x233afb['commandName'])return{'type':'format','content':o(_0x47eb9f,'*Outdent:*\x20%0',o(_0x47eb9f,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x233afb['commandName'])return _0x233afb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x47eb9f,'*Check\x20item*')}:{'type':'format','content':o(_0x47eb9f,'*Uncheck\x20item*')};}function _0x19f36f(_0x44c609){return{'type':'format','content':o(_0x47eb9f,'*Change\x20to:*\x20%0',_0x44c609)};}});}}function fe(_0x2eb4c0){const _0x149483=_0x2eb4c0['getAttribute']('listIndent');if(0x0==_0x149483)return _0x2eb4c0;let _0xb42df0=_0x2eb4c0;for(;_0x2eb4c0['previousSibling']&&_0x2eb4c0['previousSibling']['is']('element','listItem');){const _0x497c03=_0x2eb4c0['previousSibling']['getAttribute']('listIndent');if(_0x497c03==_0x149483)_0xb42df0=_0x2eb4c0['previousSibling'];else{if(_0x497c03<_0x149483)break;}_0x2eb4c0=_0x2eb4c0['previousSibling'];}return _0xb42df0;}function ue(_0x1c84eb){const _0x3eaec1=[];if(_0x1c84eb['is']('element','listItem')&&_0x1c84eb['getAttribute']('listIndent')>0x0){let _0x2102ff=_0x1c84eb['nextSibling'];for(;_0x2102ff&&'listItem'==_0x2102ff['name']&&_0x2102ff['getAttribute']('listIndent')==_0x1c84eb['getAttribute']('listIndent');)_0x3eaec1['push'](_0x2102ff),_0x2102ff=_0x2102ff['nextSibling'];}return _0x3eaec1;}class W extends _0x1530f7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3be11d=this['editor']['config']['get']('list.properties'),_0x10aa99=this['editor']['plugins']['get']('TrackChangesEditing');_0x3be11d['styles']&&_0x10aa99['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3be11d['reversed']&&_0x10aa99['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3be11d['startIndex']&&_0x10aa99['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x10aa99['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x166bd2,_0x6c83fd={}){const _0x308ef4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b77a9=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x308ef4['markMultiRangeBlockFormat'](_0x2b77a9,{'commandName':'listStyle','commandParams':[{'type':_0x6c83fd['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x56a71d,_0x2e2b9a={}){const _0x3370f5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x127afb=this['_getSuggestionBlocks'](_0x420b3e=>_0x420b3e['is']('element','listItem')&&'numbered'===_0x420b3e['getAttribute']('listType'));if(_0x127afb['length']<0x1)return;const _0x49380c=_0x127afb['map'](_0x2d4716=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2d4716,'before'),this['editor']['model']['createPositionAt'](_0x2d4716,0x0)));this['editor']['model']['change'](()=>{_0x3370f5['markMultiRangeBlockFormat'](_0x49380c,{'commandName':'listReversed','commandParams':[{'reversed':_0x2e2b9a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3eab15,_0x3439f5={}){const _0x4601e2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5576b5=this['_getSuggestionBlocks'](_0x3d624d=>_0x3d624d['is']('element','listItem')&&'numbered'===_0x3d624d['getAttribute']('listType'));if(_0x5576b5['length']<0x1)return;const _0x4e4d3c=_0x5576b5['map'](_0x3b120f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3b120f,'before'),this['editor']['model']['createPositionAt'](_0x3b120f,0x0)));this['editor']['model']['change'](()=>{_0x4601e2['markMultiRangeBlockFormat'](_0x4e4d3c,{'commandName':'listStart','commandParams':[{'startIndex':_0x3439f5['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2f4ddb){if('formatBlock'!=_0x2f4ddb['type']&&'formatInline'!=_0x2f4ddb['type'])return;const _0x2cd9d0=this['editor']['locale'],{data:_0xa5d236}=_0x2f4ddb;if(!_0xa5d236)return;let _0x3bedd1,_0x438dc1;switch(_0xa5d236['commandName']){case'listStyle':_0x3bedd1='*Change\x20to:*\x20%0',_0x438dc1={'type':'format','content':o(_0x2cd9d0,_0x3bedd1,o(_0x2cd9d0,this['_getTranslationKeyForListStyle'](_0xa5d236['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3bedd1=_0xa5d236['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x438dc1={'type':'format','content':o(_0x2cd9d0,_0x3bedd1)};break;case'listStart':_0x3bedd1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x438dc1={'type':'format','content':o(_0x2cd9d0,_0x3bedd1,_0xa5d236['commandParams'][0x0]['startIndex'])};}return _0x438dc1;}['_getSuggestionBlocksForListStyle'](){const _0x860372=this['editor']['plugins']['get']('LegacyListUtils');let _0x4ca385=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4ca385[0x0]?.['is']('element','listItem')&&_0x4ca385['unshift'](..._0x860372['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4ca385[_0x4ca385['length']-0x1]?.['is']('element','listItem')&&_0x4ca385['push'](..._0x860372['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4ca385=[...new Set(_0x4ca385)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4ca385=_0x4ca385['filter'](_0x2d9cb4=>_0x2d9cb4['is']('element','listItem'))),_0x4ca385;}['_getSuggestionBlocks'](_0x5a1242){const _0x481985=this['editor']['plugins']['get']('LegacyListUtils');let _0x79129a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5a1242)['map'](_0x34d6cd=>{const _0x3a1832=this['editor']['model']['createPositionAt'](_0x34d6cd,0x0);return[..._0x481985['getSiblingNodes'](_0x3a1832,'backward'),..._0x481985['getSiblingNodes'](_0x3a1832,'forward')];})['flat']();return _0x79129a=[...new Set(_0x79129a)],_0x79129a;}['_getTranslationKeyForListStyle'](_0x5aaf49){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5aaf49)||'default')['toUpperCase']()+'_LIST_'+_0x5aaf49['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x1530f7{['afterInit'](){const _0x9edecf=this['editor'];if(!_0x9edecf['plugins']['has']('MediaEmbedEditing'))return;const _0x37f5da=_0x9edecf['plugins']['get']('TrackChangesEditing'),_0x5bbca2=_0x9edecf['locale'];_0x37f5da['enableCommand']('mediaEmbed'),_0x37f5da['descriptionFactory']['registerElementLabel']('media',_0x529703=>o(_0x5bbca2,'ELEMENT_MEDIA',_0x529703)),_0x9edecf['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3d442e,{writer:_0x178dea,options:_0x5ed818})=>{if(_0x5ed818['showSuggestionHighlights'])return _0x178dea['createEmptyElement']('div');},'converterPriority':'high'}),_0x9edecf['data']['downcastDispatcher']['on']('attribute:url:media',(_0x18cf64,_0x1d278e,_0x556301)=>{_0x556301['options']['showSuggestionHighlights']&&_0x18cf64['stop']();},{'priority':'high'});}}class mt extends _0x1530f7{['afterInit'](){const _0x1b8fd3=this['editor'];_0x1b8fd3['plugins']['has']('MentionEditing')&&_0x1b8fd3['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x1530f7{['afterInit'](){const _0x1c466a=this['editor'];if(!_0x1c466a['plugins']['has']('MergeFieldsEditing'))return;_0x1c466a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x1c466a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x2cf14e=_0x1c466a['plugins']['get']('TrackChangesEditing'),_0x2aceb2=_0x1c466a['locale'];_0x2cf14e['descriptionFactory']['registerElementLabel']('mergeField',_0x51ea7a=>o(_0x2aceb2,'ELEMENT_MERGE_FIELD',_0x51ea7a)),_0x2cf14e['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x34fd42=>o(_0x2aceb2,'ELEMENT_MERGE_FIELD',_0x34fd42)),_0x2cf14e['descriptionFactory']['registerDescriptionCallback'](_0x57f856=>{if('insertion'!=_0x57f856['type']&&'deletion'!=_0x57f856['type'])return;const _0x5f24de=_0x57f856['getContainedElement']();if(null==_0x5f24de)return;if(!_0x5f24de['is']('element','mergeField')&&!_0x5f24de['is']('element','mergeFieldBlock'))return;const _0x18aa40=_0x1c466a['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x5f24de['getAttribute']('id'));return'insertion'==_0x57f856['type']?{'type':'insertion','content':o(_0x2aceb2,'*Insert:*\x20%0','\x22'+_0x18aa40+'\x22\x20'+o(_0x2aceb2,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x2aceb2,'*Remove:*\x20%0','\x22'+_0x18aa40+'\x22\x20'+o(_0x2aceb2,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x1530f7{['afterInit'](){const _0x3defc1=this['editor'],_0x34cd6e=_0x3defc1['plugins']['get']('TrackChangesEditing');_0x3defc1['plugins']['has']('MultiLevelList')&&(_0x34cd6e['enableDefaultAttributesIntegration']('multiLevelList'),_0x34cd6e['registerBlockAttribute']('listMarkerStyle'),_0x34cd6e['descriptionFactory']['registerDescriptionCallback'](_0x4234f5=>this['handleDescriptions'](_0x4234f5)));}['handleDescriptions'](_0x1ef195){const _0x2b511c=this['editor']['locale'],{data:_0x3c428c}=_0x1ef195,_0x3f49e7={'type':'format','content':''};if(_0x3c428c&&'listMarkerStyle'==_0x3c428c['key']){if(!_0x3c428c['oldValue'])return{'type':'format','content':o(_0x2b511c,'*Set\x20format:*\x20%0',o(_0x2b511c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3c428c['newValue']+')'};if(!_0x3c428c['newValue']){let _0x1f9234=_0x1ef195['head'];for(;_0x1f9234;){if(_0x1f9234['data']&&'listType'==_0x1f9234['data']['key']&&_0x1f9234['data']['newValue'])return _0x3f49e7;_0x1f9234=_0x1f9234['next'];}return{'type':'format','content':o(_0x2b511c,'*Remove\x20format:*\x20%0',o(_0x2b511c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3c428c['oldValue']+')'};}}}}class kt extends _0x1530f7{['afterInit'](){const _0x2e98ea=this['editor'];if(!_0x2e98ea['plugins']['has']('PageBreakEditing'))return;_0x2e98ea['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x34d117=_0x2e98ea['plugins']['get']('TrackChangesEditing'),_0x5cad3b=_0x2e98ea['locale'];_0x34d117['descriptionFactory']['registerElementLabel']('pageBreak',_0x539974=>o(_0x5cad3b,'ELEMENT_PAGE_BREAK',_0x539974));}}class bt extends _0x1530f7{['afterInit'](){const _0x8527c0=this['editor'];if(!_0x8527c0['plugins']['has']('Paragraph'))return;const _0xb8376c=_0x8527c0['locale'],_0x20cfb3=_0x8527c0['plugins']['get']('TrackChangesEditing');_0x20cfb3['descriptionFactory']['registerElementLabel']('paragraph',_0xc58a35=>o(_0xb8376c,'ELEMENT_PARAGRAPH',_0xc58a35)),_0x20cfb3['enableDefaultAttributesIntegration']('paragraph'),_0x20cfb3['enableCommand']('insertParagraph'),_0x8527c0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x8527c0),{'priority':'highest'}),_0x8527c0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1a8a85,_0xae2cb5,_0x30ceee)=>{_0x30ceee['options']['showSuggestionHighlights']&&nr(_0x8527c0,{'showActiveMarker':!0x1})(_0x1a8a85,_0xae2cb5,_0x30ceee);},{'priority':'highest'});const _0x23fe63=_0x20cfb3['descriptionFactory'];_0x23fe63['registerDescriptionCallback'](_0x21598b=>{if('insertion'!==_0x21598b['type'])return;const {start:_0x4e8cb1,end:_0x4267ab}=_0x21598b['getFirstRange']();if(!_0x4e8cb1['isTouching'](_0x4267ab)||!_0x4e8cb1['nodeAfter'])return;const _0x854974=_0x8527c0['model']['schema'],_0x1a1972=_0x4e8cb1['nodeAfter'];return _0x854974['isBlock'](_0x1a1972)&&!_0x854974['isLimit'](_0x1a1972)&&_0x854974['checkChild'](_0x1a1972,'$text')?{'type':'insertion','content':o(_0xb8376c,'*Insert:*\x20%0',_0x23fe63['getItemLabel'](_0x1a1972,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x14ee3e=this['editor'],_0x41c925=_0x14ee3e['locale'];_0x14ee3e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3dc1a2=>{if('formatBlock'!=_0x3dc1a2['type'])return;const {data:_0x1221a9}=_0x3dc1a2;return _0x1221a9&&'paragraph'==_0x1221a9['commandName']?{'type':'format','content':o(_0x41c925,'*Change\x20to:*\x20%0',o(_0x41c925,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5ea20b,{showActiveMarker:_0x189733=!0x0}={}){return(_0x3c856b,_0x2e4ba2,_0x36f6e3)=>{const _0x3d4125=_0x5ea20b['plugins']['get']('TrackChangesEditing'),_0x31b1c7=_0x2e4ba2['markerRange']['start'],_0x1c3a59=_0x2e4ba2['markerRange']['end'],_0x22dafa=_0x5ea20b['model']['schema'];if(!_0x31b1c7['isTouching'](_0x1c3a59)||!_0x31b1c7['nodeAfter'])return;const _0x24211d=_0x31b1c7['nodeAfter'];if(_0x22dafa['isBlock'](_0x24211d)&&!_0x22dafa['isLimit'](_0x24211d)&&_0x22dafa['checkChild'](_0x24211d,'$text')){if(!_0x36f6e3['consumable']['consume'](_0x2e4ba2['markerRange'],_0x3c856b['name']))return;const {authorId:_0x3beb1a}=_0x3d4125['_splitMarkerName'](_0x2e4ba2['markerName']),_0x41372c=_0x36f6e3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x3beb1a}),_0x4c9f85=_0x36f6e3['mapper']['toViewPosition'](_0x1c3a59);_0x189733&&_0x3d4125['activeMarkers']['includes'](_0x2e4ba2['markerName'])&&_0x36f6e3['writer']['addClass']('ck-suggestion-marker--active',_0x41372c),_0x36f6e3['writer']['insert'](_0x4c9f85,_0x41372c),_0x36f6e3['mapper']['bindElementToMarker'](_0x41372c,_0x2e4ba2['markerName']);}};}class wt extends _0x1530f7{['afterInit'](){const _0x4e3d2d=this['editor'];if(!_0x4e3d2d['plugins']['has']('RemoveFormatEditing'))return;_0x4e3d2d['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e9923=this['editor'];_0x5e9923['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x197fe4=>{if('formatBlock'!=_0x197fe4['type']&&'formatInline'!=_0x197fe4['type'])return;const {data:_0x7605ec}=_0x197fe4;return _0x7605ec&&'removeFormat'==_0x7605ec['commandName']?{'type':'format','content':o(_0x5e9923['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x1530f7{['afterInit'](){const _0x2cc9f5=this['editor'];if(!_0x2cc9f5['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x17a91b=_0x2cc9f5['plugins']['get']('TrackChangesEditing');_0x17a91b['enableCommand']('goToPreviousRestrictedEditingException'),_0x17a91b['enableCommand']('goToNextRestrictedEditingException');const _0x2cac23=_0x2cc9f5['plugins']['get']('RestrictedEditingModeEditing');_0x2cac23['enableCommand']('trackChanges'),_0x2cac23['enableCommand']('acceptSuggestion'),_0x2cac23['enableCommand']('discardSuggestion'),_0x2cac23['enableCommand']('acceptAllSuggestions'),_0x2cac23['enableCommand']('discardAllSuggestions'),_0x2cac23['enableCommand']('acceptSelectedSuggestions'),_0x2cac23['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x1530f7{static get['requires'](){return[_0x18aeaf];}['init'](){const _0x487491=this['editor'],_0x335550=_0x487491['plugins']['get']('TrackChangesEditing');_0x335550['enableCommand']('shiftEnter'),_0x487491['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x487491),{'priority':'high'}),_0x487491['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x487491),{'priority':'high'}),_0x487491['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2e0e45,_0x502330,_0x51098f)=>{_0x51098f['options']['showSuggestionHighlights']&&ge(_0x487491,{'showActiveMarker':!0x1})(_0x2e0e45,_0x502330,_0x51098f);}),_0x335550['descriptionFactory']['registerElementLabel']('softBreak',_0x8bd1c1=>o(_0x487491['locale'],'ELEMENT_LINE_BREAK',_0x8bd1c1));}}function ge(_0x4f8960,{showActiveMarker:_0x4ad6e4=!0x0}={}){return(_0x4d9e2d,_0x9123b9,_0x1174fa)=>{const _0x3b20b5=_0x4f8960['plugins']['get']('TrackChangesEditing');if(!_0x1174fa['consumable']['test'](_0x9123b9['markerRange'],_0x4d9e2d['name']))return;const _0xbf1330=_0x4f8960['model'];for(const _0x26c020 of _0x9123b9['markerRange']['getItems']()){if(!_0x26c020['is']('element','softBreak'))continue;const _0x31b0c3='deletion'==_0x9123b9['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x5dcf1e}=_0x3b20b5['_splitMarkerName'](_0x9123b9['markerName']),_0x98b409=_0x1174fa['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x31b0c3,'data-author-id':_0x5dcf1e}),_0x2a3914=_0x1174fa['mapper']['toViewPosition'](_0xbf1330['createPositionBefore'](_0x26c020));_0x4ad6e4&&_0x3b20b5['activeMarkers']['includes'](_0x9123b9['markerName'])&&_0x1174fa['writer']['addClass']('ck-suggestion-marker--active',_0x98b409),_0x1174fa['writer']['insert'](_0x2a3914,_0x98b409),_0x1174fa['mapper']['bindElementToMarker'](_0x98b409,_0x9123b9['markerName']);}};}class St extends _0x1530f7{['afterInit'](){const _0x87268b=this['editor'],_0x26098b=_0x87268b['model'],_0x468c0f=_0x87268b['locale'];if(!_0x87268b['plugins']['has']('StandardEditingModeEditing'))return;const _0x2b96b6=_0x87268b['plugins']['get']('TrackChangesEditing'),_0x56ecf4='restrictedEditingException',_0x558db9=_0x87268b['commands']['get'](_0x56ecf4);_0x2b96b6['enableCommand'](_0x56ecf4,(_0x48925e,_0x309cbb={})=>{const _0x148987=_0x26098b['document']['selection'];if(_0x148987['isCollapsed'])return void _0x48925e(_0x309cbb);const _0x54200c=void 0x0!==_0x309cbb['forceValue']?_0x309cbb['forceValue']:!_0x558db9['value'];_0x26098b['change'](()=>{const _0x24fa65=Array['from'](_0x148987['getRanges']());for(const _0x44a211 of _0x24fa65){const _0x29cb7d=_0x54200c?[_0x44a211]:io(_0x56ecf4,_0x44a211,_0x26098b);for(const _0x44ffa4 of _0x29cb7d)_0x2b96b6['markInlineFormat'](_0x44ffa4,{'commandName':_0x56ecf4,'commandParams':[{'forceValue':_0x54200c}]});}});}),_0x2b96b6['descriptionFactory']['registerDescriptionCallback'](_0x23c2c2=>{if('formatBlock'!=_0x23c2c2['type']&&'formatInline'!=_0x23c2c2['type'])return;const {data:_0x2c2932}=_0x23c2c2;return _0x2c2932&&_0x2c2932['commandName']==_0x56ecf4?_0x2c2932['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x468c0f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x468c0f,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x1530f7{['afterInit'](){const _0x3ef964=this['editor'];if(!_0x3ef964['plugins']['has']('Style')||!_0x3ef964['plugins']['has']('DataSchema'))return;const _0x479720=_0x3ef964['plugins']['get']('TrackChangesEditing'),_0x43634a=_0x3ef964['locale'],_0x31c410=_0x3ef964['config']['get']('style')||{},_0x2efde3=_0x3ef964['plugins']['get']('GeneralHtmlSupport'),_0x4d6ae2=_0x3ef964['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3ef964['plugins']['get']('DataSchema'),_0x31c410['definitions']);_0x479720['enableDefaultAttributesIntegration']('style');const _0x56bacb=new Set();for(const _0x5acc70 of _0x4d6ae2['block']){const _0x21dba9=_0x2efde3['getGhsAttributeNameForElement'](_0x5acc70['element']);_0x56bacb['add'](_0x21dba9);}const _0x53ad44=new Set();for(const _0xb98444 of _0x4d6ae2['inline']){const _0x350d6f=_0x2efde3['getGhsAttributeNameForElement'](_0xb98444['element']);_0x53ad44['add'](_0x350d6f);for(const _0x413916 of _0xb98444['ghsAttributes'])_0x53ad44['add'](_0x413916);}for(const _0x18115c of _0x56bacb)_0x479720['registerBlockAttribute'](_0x18115c),_0x479720['descriptionFactory']['registerAttributeLabel'](_0x18115c,o(_0x43634a,'FORMAT_STYLE'));for(const _0x5304e1 of _0x53ad44)_0x479720['registerInlineAttribute'](_0x5304e1),_0x479720['descriptionFactory']['registerAttributeLabel'](_0x5304e1,o(_0x43634a,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ba212=this['editor'],_0x39380e=_0x1ba212['locale'];_0x1ba212['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e2123=>{if('formatBlock'!=_0x3e2123['type']&&'formatInline'!=_0x3e2123['type'])return;const {data:_0xe13f6}=_0x3e2123;return _0xe13f6&&'style'===_0xe13f6['commandName']?_0xe13f6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x39380e,'*Set\x20format:*\x20%0',_0xe13f6['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x39380e,'*Remove\x20format:*\x20%0',_0xe13f6['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x1530f7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x43e45e){super(_0x43e45e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3ee063=this['editor'],_0x2ac459=_0x3ee063['model']['document']['selection'];if(!_0x3ee063['plugins']['has']('TableEditing'))return;const _0x28f57a=_0x3ee063['locale'],_0x9aeab2=_0x3ee063['plugins']['get']('TrackChangesEditing'),_0x5f2193=_0x3ee063['plugins']['get']('TableUtils');_0x9aeab2['descriptionFactory']['registerElementLabel']('table',_0x2953c0=>o(_0x28f57a,'ELEMENT_TABLE',_0x2953c0)),this['_setupColumnsRowsFixing'](),_0x9aeab2['enableCommand']('insertTable'),_0x9aeab2['enableCommand']('selectTableRow'),_0x9aeab2['enableCommand']('selectTableColumn');for(const _0x49ef01 of['insertTableRowAbove','insertTableRowBelow']){const _0x26d84a=_0x3ee063['commands']['get'](_0x49ef01);_0x9aeab2['enableCommand'](_0x49ef01,_0xb48fa8=>{_0x3ee063['model']['change'](_0x5ac78c=>{_0xb48fa8();const _0x5c33d8='above'===_0x26d84a['order'],_0x32a40e=_0x5f2193['getSelectionAffectedTableCells'](_0x2ac459),_0x57c7fa=_0x5f2193['getRowIndexes'](_0x32a40e),_0xe64bd5=_0x5c33d8?_0x57c7fa['first']-0x1:_0x57c7fa['last']+0x1,_0x4afefd=_0x32a40e[0x0]['findAncestor']('table'),_0x2e7044=_0x5f2193['createTableWalker'](_0x4afefd,{'startRow':_0xe64bd5,'endRow':_0xe64bd5}),_0x4ddc47=Array['from'](_0x2e7044)['map'](_0x100df5=>_0x5ac78c['createRangeOn'](_0x100df5['cell']));_0x9aeab2['markMultiRangeInsertion'](_0x4ddc47,'tableRow');});});}for(const _0x11f924 of['insertTableColumnLeft','insertTableColumnRight']){const _0x17dbfb=_0x3ee063['commands']['get'](_0x11f924);_0x9aeab2['enableCommand'](_0x11f924,_0x14231a=>{_0x3ee063['model']['change'](_0xb7d5cb=>{_0x14231a();const _0x17d5c5='left'===_0x17dbfb['order'],_0x13dd31=_0x5f2193['getSelectionAffectedTableCells'](_0x2ac459),_0x34febb=_0x5f2193['getColumnIndexes'](_0x13dd31),_0x779e96=_0x17d5c5?_0x34febb['first']-0x1:_0x34febb['last']+0x1,_0x469ea9=_0x13dd31[0x0]['findAncestor']('table'),_0x2abf1c=_0x5f2193['createTableWalker'](_0x469ea9,{'startRow':0x0,'column':_0x779e96,'includeAllSlots':!0x1}),_0x53f555=Array['from'](_0x2abf1c)['map'](_0x1a8cb4=>_0xb7d5cb['createRangeOn'](_0x1a8cb4['cell']));_0x9aeab2['markMultiRangeInsertion'](_0x53f555,'tableColumn');});});}for(const _0x32aec3 of['removeTableRow','removeTableColumn']){const _0x325ce7=_0x32aec3['substr'](0xb),_0xa376c9=_0x325ce7['toLowerCase'](),_0x10f1d9=_0xa376c9['substr'](0x0,0x3)+'span',_0x49aca3='table'+_0x325ce7,_0x129386='min'+_0x325ce7,_0x47fc59='max'+_0x325ce7;_0x9aeab2['enableCommand'](_0x32aec3,()=>{_0x3ee063['model']['change'](_0x35f958=>{const _0x1c0ff8=_0x5f2193['getSelectionAffectedTableCells'](_0x2ac459),_0x2f7cc3=_0x1c0ff8[0x0]['findAncestor']('table');let _0xa8fb38;if('removeTableRow'==_0x32aec3){const _0x4ffd95=_0x5f2193['getRowIndexes'](_0x1c0ff8);_0xa8fb38={'startRow':_0x4ffd95['first'],'endRow':_0x4ffd95['last'],'includeAllSlots':!0x0};}else{const _0x1de73f=_0x5f2193['getColumnIndexes'](_0x1c0ff8);_0xa8fb38={'startColumn':_0x1de73f['first'],'endColumn':_0x1de73f['last'],'includeAllSlots':!0x0};}const _0x2c8621=_0x5f2193['createTableWalker'](_0x2f7cc3,_0xa8fb38),_0x1d318b=Array['from'](_0x2c8621)['map'](({cell:_0x26df83})=>_0x26df83),_0x247b49=be(_0x1d318b['filter'](_0x4b496c=>_0x4b496c['hasAttribute'](_0x10f1d9))),_0x117e2a=be(_0x1d318b['filter'](_0x191163=>!_0x191163['hasAttribute'](_0x10f1d9)))['map'](_0x130205=>_0x35f958['createRangeOn'](_0x130205)),_0x4c34cf=_0x9aeab2['markMultiRangeDeletion'](_0x117e2a,_0x49aca3);if(_0x4c34cf&&('tableRow'==_0x4c34cf['subType']||'tableColumn'==_0x4c34cf['subType'])){const _0x390122=this['_getSuggestionCoords'](_0x4c34cf);for(const _0x2b6afe of _0x247b49){const _0xde2d69=_0x35f958['createRangeOn'](_0x2b6afe),_0x263e23=_0x5f2193['getCellLocation'](_0x2b6afe),_0x49ca65=_0x2b6afe['getAttribute'](_0x10f1d9)-0x1,_0x9cda7f=_0x390122[_0x129386],_0x11da65=_0x390122[_0x47fc59];_0x9cda7f<=_0x263e23[_0xa376c9]&&_0x263e23[_0xa376c9]+_0x49ca65<=_0x11da65&&_0x4c34cf['addRange'](_0xde2d69);}}});});}function _0x2816b9(_0x3a9ce8){const _0x4f05a8=Array['from'](_0x2ac459['getRanges']())['map'](_0x13617c=>_0x5018e8['fromRange'](_0x13617c));_0x3ee063['model']['change'](_0x590e17=>{const _0x501fc3=_0x590e17['batch'];_0x3a9ce8=_0x3a9ce8['filter'](_0x509865=>'$graveyard'!=_0x509865['root']['rootName']),_0x590e17['setSelection'](_0x3a9ce8),_0x3ee063['commands']['get']('removeTableRow')['refresh'](),_0x3ee063['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3ee063['model']['enqueueChange'](()=>{_0x3ee063['model']['enqueueChange'](_0x501fc3,_0x31077c=>{const _0x8a6714=_0x4f05a8['filter'](_0x57f58a=>'$graveyard'!=_0x57f58a['root']['rootName']);_0x8a6714['length']>0x0&&_0x31077c['setSelection'](_0x8a6714);for(const _0x374f89 of _0x4f05a8)_0x374f89['detach']();});});});}function _0x11eefe(_0x20a083){_0x3ee063['model']['change'](_0x4609f7=>{const _0x3be534=Array['from'](_0x2ac459['getRanges']())['map'](_0x5dc843=>_0x5018e8['fromRange'](_0x5dc843)),_0x576d61=[];for(const _0x496980 of _0x20a083)for(const _0x4638b6 of _0x496980['getItems']({'shallow':!0x0}))_0x576d61['push'](_0x4638b6);for(const _0x3a6783 of _0x576d61)'$graveyard'!=_0x3a6783['root']['rootName']&&(_0x4609f7['setSelection'](_0x4609f7['createPositionAt'](_0x3a6783,0x0)),_0x3ee063['commands']['get']('removeTableColumn')['refresh'](),_0x3ee063['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x967f36=_0x3be534['filter'](_0x2df6be=>'$graveyard'!=_0x2df6be['root']['rootName']);_0x967f36['length']>0x0&&_0x4609f7['setSelection'](_0x967f36);for(const _0x425c64 of _0x3be534)_0x425c64['detach']();});}function _0x105b1a(_0x186e48,_0xbc49a0){return _0xbc49a0['every'](_0x35fd24=>_0x186e48['some'](_0x39b470=>_0x39b470['end']['isEqual'](_0x35fd24['start'])||_0x35fd24['end']['isEqual'](_0x39b470['start'])));}function _0x539532(_0x50ec98,_0x5885bf){return!_0x50ec98['some'](_0x4eabfc=>_0x5885bf['some'](_0x3ff7df=>_0x4eabfc['isIntersecting'](_0x3ff7df)))&&_0x50ec98['some'](_0x3125bf=>_0x5885bf['some'](_0x5544be=>_0x3125bf['end']['isTouching'](_0x5544be['start'])));}_0x3ee063['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x24dce1,_0x398cef,_0x5df55f)=>{if(!_0x5df55f['options']['showSuggestionHighlights'])return;const _0x5e77b4=_0x398cef['item'];if(!_0x5e77b4)return;const _0x1a5a7c=_0x5df55f['mapper']['toViewElement'](_0x5e77b4);function _0x513d7d(_0x302109){return Array['isArray'](_0x302109)?_0x302109:[_0x302109];}_0x1a5a7c&&'tableCell'===_0x5e77b4['name']&&_0x3654b8(_0x1a5a7c,_0x5df55f['writer'],(_0x1fdcfd,_0x18fce4,_0x51f611)=>_0x51f611['addClass'](_0x513d7d(_0x18fce4['classes']),_0x1fdcfd),(_0x5f3953,_0x5c0441,_0x40e558)=>_0x40e558['removeClass'](_0x513d7d(_0x5c0441['classes']),_0x5f3953));},{'priority':'highest'}),_0x9aeab2['descriptionFactory']['registerDescriptionCallback'](_0x63d983=>{if('insertion'!=_0x63d983['type']&&'deletion'!=_0x63d983['type'])return;const _0x29d5f5=_0x63d983['getContainedElement']();if(null!=_0x29d5f5&&_0x29d5f5['is']('element','table')){if('insertion'==_0x63d983['type']){const _0x4bc705=_0x63d983['getItems']()['filter'](_0x17ef10=>_0x17ef10['is']('$textProxy'))['map'](_0x4e69f0=>_0x4e69f0['data']);if(_0x4bc705['length'])return{'type':'insertion','content':o(_0x28f57a,'*Insert:*\x20%0',o(_0x28f57a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4bc705['join']('\x20')+'\x22'))};}if('deletion'==_0x63d983['type']){const _0x1b1ba7=_0x63d983['getItems']()['filter'](_0x56b470=>_0x56b470['is']('$textProxy'))['map'](_0x208925=>_0x208925['data']);if(_0x1b1ba7['length'])return{'type':'deletion','content':o(_0x28f57a,'*Remove:*\x20%0',o(_0x28f57a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1b1ba7['join']('\x20')+'\x22'))};}}}),_0x9aeab2['descriptionFactory']['registerDescriptionCallback'](_0x169a56=>{if('tableRow'==_0x169a56['subType']){const _0x3b6912=_0x169a56['getItems']()['filter'](_0x17d6fa=>_0x17d6fa['is']('$textProxy'))['map'](_0x18cb49=>_0x18cb49['data']),_0x451dcd=this['_getSuggestionCoords'](_0x169a56),_0x143cdb=_0x451dcd['maxRow']-_0x451dcd['minRow']+0x1;if('insertion'==_0x169a56['type'])return _0x3b6912['length']?{'type':'insertion','content':o(_0x28f57a,'*Insert:*\x20%0',o(_0x28f57a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x143cdb,'\x22'+_0x3b6912['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x28f57a,'*Insert:*\x20%0',o(_0x28f57a,'ELEMENT_TABLE_ROW',_0x143cdb))};if('deletion'==_0x169a56['type'])return _0x3b6912['length']?{'type':'deletion','content':o(_0x28f57a,'*Remove:*\x20%0',o(_0x28f57a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x143cdb,'\x22'+_0x3b6912['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x28f57a,'*Remove:*\x20%0',o(_0x28f57a,'ELEMENT_TABLE_ROW',_0x143cdb))};}if('tableColumn'==_0x169a56['subType']){const _0x55bd4d=_0x169a56['getItems']()['filter'](_0x5c1080=>_0x5c1080['is']('$textProxy'))['map'](_0x1d7122=>_0x1d7122['data']),_0x1d3fe6=this['_getSuggestionCoords'](_0x169a56),_0x4f9d86=_0x1d3fe6['maxColumn']-_0x1d3fe6['minColumn']+0x1;if('insertion'==_0x169a56['type'])return _0x55bd4d['length']?{'type':'insertion','content':o(_0x28f57a,'*Insert:*\x20%0',o(_0x28f57a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4f9d86,'\x22'+_0x55bd4d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x28f57a,'*Insert:*\x20%0',o(_0x28f57a,'ELEMENT_TABLE_COLUMN',_0x4f9d86))};if('deletion'==_0x169a56['type'])return _0x55bd4d['length']?{'type':'deletion','content':o(_0x28f57a,'*Remove:*\x20%0',o(_0x28f57a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4f9d86,'\x22'+_0x55bd4d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x28f57a,'*Remove:*\x20%0',o(_0x28f57a,'ELEMENT_TABLE_COLUMN',_0x4f9d86))};}}),_0x9aeab2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2816b9),_0x9aeab2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2816b9),_0x9aeab2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x11eefe),_0x9aeab2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x11eefe),_0x9aeab2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x105b1a),_0x9aeab2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x105b1a),_0x9aeab2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x539532),_0x9aeab2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x539532);}['_acceptFormatSuggestionCallbackFactory'](){const _0x372095=this['editor'],_0x24c8b9=_0x372095['model']['document']['selection'];return(_0x16051c,_0xcdd7ed)=>{_0x372095['model']['change'](_0x133012=>{const {commandName:_0x59045d,commandParams:_0x186923}=_0xcdd7ed;let _0x16ca72=_0x16051c[0x0]['end']['nodeBefore'];_0x186923&&_0x186923[0x0]&&!0x1===_0x186923[0x0]['forceValue']&&(_0x16ca72=_0x16051c[0x0]['start']['nodeAfter']);const _0x3329bc=_0x133012['createRangeIn'](_0x16ca72);if('$graveyard'==_0x3329bc['root']['rootName'])return;const _0x43daa8=Array['from'](_0x24c8b9['getRanges']())['map'](_0x449bb5=>_0x5018e8['fromRange'](_0x449bb5));_0x133012['setSelection'](_0x3329bc),_0x372095['commands']['get'](_0x59045d)['refresh'](),_0x186923['push']({'forceDefaultExecution':!0x0}),_0x372095['execute'](_0x59045d,..._0x186923);const _0x255970=_0x43daa8['filter'](_0x340110=>'$graveyard'!=_0x340110['root']['rootName']);_0x255970['length']>0x0&&_0x133012['setSelection'](_0x255970);for(const _0xc43abf of _0x43daa8)_0xc43abf['detach']();});};}['_getCoordsForCells'](_0x361a4d){const _0x61144a=this['editor']['plugins']['get']('TableUtils');let _0x44ce5a=Number['MAX_SAFE_INTEGER'],_0x5202c1=Number['MIN_SAFE_INTEGER'],_0x4e3c42=Number['MAX_SAFE_INTEGER'],_0x1853ce=Number['MIN_SAFE_INTEGER'];for(const _0x73f83d of _0x361a4d){if('$graveyard'==_0x73f83d['root']['rootName'])continue;const {row:_0x176415,column:_0x273da3}=_0x61144a['getCellLocation'](_0x73f83d),_0x3f91aa=_0x73f83d['hasAttribute']('rowspan')?_0x73f83d['getAttribute']('rowspan')-0x1:0x0,_0xbbda44=_0x73f83d['hasAttribute']('colspan')?_0x73f83d['getAttribute']('colspan')-0x1:0x0;_0x44ce5a=_0x176415<_0x44ce5a?_0x176415:_0x44ce5a,_0x5202c1=_0x176415+_0x3f91aa>_0x5202c1?_0x176415+_0x3f91aa:_0x5202c1,_0x4e3c42=_0x273da3<_0x4e3c42?_0x273da3:_0x4e3c42,_0x1853ce=_0x273da3+_0xbbda44>_0x1853ce?_0x273da3+_0xbbda44:_0x1853ce;}return{'minRow':_0x44ce5a,'maxRow':_0x5202c1,'minColumn':_0x4e3c42,'maxColumn':_0x1853ce};}['_setupColumnsRowsFixing'](){const _0x581954=this['editor'],_0x274612=_0x581954['plugins']['get']('TrackChangesEditing'),_0x2dbebc=_0x581954['plugins']['get']('TableUtils');_0x581954['model']['document']['on']('change:data',()=>{const _0x158e2c=Array['from'](_0x581954['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x45e0d6,data:_0x3a727b}of _0x158e2c){const {group:_0x508a2b,id:_0x4e7eda,subType:_0x488eae}=_0x274612['_splitMarkerName'](_0x45e0d6);if('suggestion'!=_0x508a2b)continue;if(null!=_0x3a727b['oldRange'])continue;const _0x1f47ac=_0x274612['getSuggestion'](_0x4e7eda);this['_tablePostFixingSubtypes']['includes'](_0x488eae)&&this['_tableSuggestions']['add'](_0x1f47ac);}},{'priority':'low'});const _0x24cbea=(_0x434c94,_0xdf6d88)=>{let _0x5ceaf8=!0x1;const _0x20dc70=_0xdf6d88['createRangeOn'](_0x434c94),_0x38fda8=_0x434c94['findAncestor']('table'),_0x376188=_0x2dbebc['getCellLocation'](_0x434c94);for(const _0x2990e6 of this['_tableSuggestions']){const _0x447f4a=_0x2990e6['subType'],_0x3219a7=_0x447f4a['startsWith']('tablePaste'),_0x9631e3=_0x447f4a['substr'](_0x3219a7?0xa:0x5),_0x450c09=_0x9631e3['toLowerCase'](),_0x295c41=_0x450c09['substr'](0x0,0x3)+'span',_0x518f29='min'+_0x9631e3,_0x520926='max'+_0x9631e3;if(!_0x2990e6['isInContent'])continue;if(_0x38fda8!=_0x2990e6['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2990e6['isIntersectingWithRange'](_0x20dc70))continue;const _0x839155=_0x434c94['hasAttribute'](_0x295c41)?_0x434c94['getAttribute'](_0x295c41)-0x1:0x0,_0xdd5d3f=this['_getSuggestionCoords'](_0x2990e6),_0x215092=_0xdd5d3f[_0x518f29],_0xc55c9b=_0xdd5d3f[_0x520926];_0x215092<=_0x376188[_0x450c09]&&_0x376188[_0x450c09]+_0x839155<=_0xc55c9b&&(_0x2990e6['addRange'](_0x20dc70),_0x5ceaf8=!0x0);}return _0x5ceaf8;};_0x581954['model']['document']['registerPostFixer'](_0x3e4e7d=>{let _0xf4ff53=!0x1;for(const _0xff4284 of _0x581954['model']['document']['differ']['getChanges']())if('insert'==_0xff4284['type']){if('tableRow'==_0xff4284['name']){for(const _0x48cd65 of _0xff4284['position']['nodeAfter']['getChildren']())_0xf4ff53=_0xf4ff53||_0x24cbea(_0x48cd65,_0x3e4e7d);}else'tableCell'==_0xff4284['name']&&(_0xf4ff53=_0xf4ff53||_0x24cbea(_0xff4284['position']['nodeAfter'],_0x3e4e7d));}return _0xf4ff53;});}['_getSuggestionCoords'](_0x5853bb){return this['_getCoordsForCells'](_0x5853bb['getRanges']()['map'](_0x1ec585=>_0x1ec585['start']['nodeAfter']));}}function be(_0x435e5b){return Array['from'](new Set(_0x435e5b)['values']());}class vt extends _0x1530f7{static get['requires'](){return[It];}['afterInit'](){const _0x56d010=this['editor'],_0x390df4=_0x56d010['model']['document']['selection'],_0x3c7828=_0x56d010['locale'];if(!_0x56d010['plugins']['has']('TableEditing'))return;const _0x119216=_0x56d010['plugins']['get']('TrackChangesEditing'),_0x5d613d=_0x56d010['plugins']['get']('TableUtils'),_0x414259=_0x56d010['plugins']['get'](It);_0x414259['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x119216['enableCommand']('mergeTableCells',()=>{const _0xc533b1=_0x5d613d['getSelectionAffectedTableCells'](_0x56d010['model']['document']['selection']);_0x56d010['model']['change'](()=>{_0x119216['markMultiRangeBlockFormat'](_0xc533b1,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x56d010['commands']['get']('mergeTableCells')['on']('execute',(_0x4db818,_0x203a61)=>{_0x56d010['commands']['get']('trackChanges')['value']&&(_0x203a61['length']>0x0&&_0x203a61[_0x203a61['length']-0x1]&&_0x203a61[_0x203a61['length']-0x1]['forceDefaultExecution']||_0x119216['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4db818['stop']());},{'priority':'highest'});for(const _0xbe291e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x52d8e4=_0x56d010['commands']['get'](_0xbe291e);_0x119216['enableCommand'](_0xbe291e,()=>{const _0x36cdce=_0x56d010['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1a6890=>_0x1a6890['is']('element','tableCell')),_0x2aae31=_0x52d8e4['value'];_0x56d010['model']['change'](()=>{_0x119216['markMultiRangeBlockFormat']([_0x36cdce,_0x2aae31],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2d280b of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1bfd05=_0x56d010['commands']['get'](_0x2d280b);_0x119216['enableCommand'](_0x2d280b,()=>{const _0x679692=_0x5d613d['getSelectionAffectedTableCells'](_0x56d010['model']['document']['selection'])[0x0],_0x597e0e=_0x679692['findAncestor']('table'),{column:_0x44a968,row:_0x1abf23}=_0x5d613d['getCellLocation'](_0x679692);let _0x4c2d56=[];if('horizontally'==_0x1bfd05['direction']){const _0x4fdf7e=_0x5d613d['createTableWalker'](_0x597e0e,{'startRow':_0x1abf23,'endRow':_0x1abf23,'includeAllSlots':!0x0});_0x4c2d56=Array['from'](_0x4fdf7e)['map'](_0x4c2507=>_0x4c2507['cell']);}else{const _0x900c04=_0x5d613d['createTableWalker'](_0x597e0e,{'column':_0x44a968,'includeAllSlots':!0x0});_0x4c2d56=Array['from'](_0x900c04)['map'](_0x3d2908=>_0x3d2908['cell']);}_0x56d010['model']['change'](_0x8de1a5=>{_0x119216['markBlockFormat'](_0x8de1a5['createRangeOn'](_0x679692),{'commandName':_0x2d280b,'commandParams':[]},_0x4c2d56,_0x2d280b);});});}_0x119216['descriptionFactory']['registerDescriptionCallback'](_0x527917=>{if('formatBlock'!=_0x527917['type']&&'formatInline'!=_0x527917['type'])return;const {data:_0x19f634}=_0x527917;return _0x19f634&&'mergeTableCells'==_0x19f634['commandName']?{'type':'format','content':o(_0x3c7828,'*Merge\x20cells*')}:void 0x0;}),_0x119216['descriptionFactory']['registerDescriptionCallback'](_0x42d0b2=>{if('formatBlock'!=_0x42d0b2['type']&&'formatInline'!=_0x42d0b2['type'])return;const {data:_0x267621}=_0x42d0b2;return _0x267621?'splitTableCellVertically'==_0x267621['commandName']?{'type':'format','content':o(_0x3c7828,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x267621['commandName']?{'type':'format','content':o(_0x3c7828,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x175371=_0x414259['_acceptFormatSuggestionCallbackFactory']();for(const _0xfe6ec1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x119216['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xfe6ec1,'accept',_0x175371);for(const _0x360aed of['splitTableCellVertically','splitTableCellHorizontally'])_0x119216['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x360aed,'accept',_0x175371);_0x119216['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x541889=>{_0x56d010['model']['change'](_0x2bd42a=>{const _0x55c5e0=Array['from'](_0x390df4['getRanges']())['map'](_0x334f6e=>_0x5018e8['fromRange'](_0x334f6e));_0x2bd42a['setSelection'](_0x541889),_0x56d010['commands']['get']('mergeTableCells')['refresh'](),_0x56d010['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x169bd9=_0x55c5e0['filter'](_0x224ddd=>'$graveyard'!=_0x224ddd['root']['rootName']);_0x169bd9['length']>0x0&&_0x2bd42a['setSelection'](_0x169bd9);for(const _0x133164 of _0x55c5e0)_0x133164['detach']();});});for(const _0x2c6997 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4891ec=_0x56d010['commands']['get'](_0x2c6997);_0x4891ec['on']('set:isEnabled',(_0x4163bf,_0xe3603b,_0x52e0b6)=>{if(_0x52e0b6){const _0x5169c3=_0x56d010['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5e8304=>_0x5e8304['is']('element','tableCell'));this['_areMergableCells'](_0x4891ec['value'],_0x5169c3)||(_0x4163bf['return']=!0x1,_0x4163bf['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x34854a=this['editor']['commands']['get']('mergeTableCells'),_0x491d26=this['editor']['plugins']['get']('TableUtils');if(!_0x34854a['isEnabled'])return!0x1;const _0x1e1a58=_0x491d26['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3be21a of _0x1e1a58)for(const _0x58a859 of _0x1e1a58)if(_0x3be21a!=_0x58a859&&!this['_areMergableCells'](_0x3be21a,_0x58a859))return!0x1;return!0x0;}['_areMergableCells'](_0x127c66,_0x5cd606){const _0x64f6db=this['editor']['plugins']['get']('TrackChangesEditing'),_0x152a46=this['editor']['model']['createRangeOn'](_0x127c66),_0x179ad1=this['editor']['model']['createRangeOn'](_0x5cd606),_0x52a8a1=new Set(),_0x292b75=new Set();for(const _0x3d62b9 of _0x64f6db['getSuggestions']())if(('insertion'==_0x3d62b9['type']||'deletion'==_0x3d62b9['type']||'mergeTableCells'==_0x3d62b9['subType'])&&_0x3d62b9['isInContent']){for(const _0x161bfd of _0x3d62b9['getRanges']())_0x161bfd['containsRange'](_0x152a46,!0x0)&&_0x52a8a1['add'](_0x3d62b9['type']+':'+_0x3d62b9['author']['id']),_0x161bfd['containsRange'](_0x179ad1,!0x0)&&_0x292b75['add'](_0x3d62b9['type']+':'+_0x3d62b9['author']['id']);}if(_0x52a8a1['size']!=_0x292b75['size'])return!0x1;for(const _0x10210d of _0x52a8a1)if(!_0x292b75['has'](_0x10210d))return!0x1;return!0x0;}}class Ct extends _0x1530f7{static get['requires'](){return[It];}['afterInit'](){const _0x4032b3=this['editor'];if(!_0x4032b3['plugins']['has']('TableEditing'))return;const _0x32f07c=_0x4032b3['locale'],_0x136cfe=_0x4032b3['plugins']['get']('TrackChangesEditing');_0x136cfe['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x136cfe['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x136cfe['registerBlockAttribute']('headingRows'),_0x136cfe['registerBlockAttribute']('headingColumns'),_0x136cfe['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x32f07c,'FORMAT_HEADER_ROW')),_0x136cfe['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x32f07c,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2b7a06=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb18c50=this['editor']['plugins']['get']('TableUtils'),_0x4a7e6f=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x4e271d({showActiveMarker:_0x375c1a=!0x0,setDataAttribute:_0x26e1d6=!0x0}={}){return(_0x24f6c0,_0x176a49,_0x50f061)=>{const {type:_0x47761c,id:_0x7f8fff}=_0x2b7a06['_splitMarkerName'](_0x176a49['markerName']),_0x1c946f=_0x2b7a06['getSuggestion'](_0x7f8fff),_0x33cd43=_0x1c946f['data'];if('formatBlock'!=_0x1c946f['type']||!_0x33cd43||'setTableColumnHeader'!=_0x33cd43['commandName'])return;if(_0x176a49['item'])return void _0x24f6c0['stop']();if(!_0x50f061['consumable']['consume'](_0x176a49['markerRange'],_0x24f6c0['name']))return;const _0x39955b=_0x176a49['markerRange']['start']['nodeAfter'],_0x4454b6=_0x176a49['markerRange']['end']['nodeBefore'],_0x3eb967=_0x39955b['parent']['parent'],{column:_0x216c47}=_0xb18c50['getCellLocation'](_0x39955b),{column:_0x51c79d}=_0xb18c50['getCellLocation'](_0x4454b6);for(let _0x1e570b=_0x216c47;_0x1e570b<=_0x51c79d;_0x1e570b++){const _0x20b15b=_0xb18c50['createTableWalker'](_0x3eb967,{'column':_0x1e570b,'includeAllSlots':!0x1});for(const _0x2a1d8f of _0x20b15b){const _0x269abe=_0x2a1d8f['cell'],_0x2fb276=_0x50f061['mapper']['toViewElement'](_0x269abe);_0x50f061['writer']['addClass']('ck-suggestion-marker-'+_0x47761c,_0x2fb276),_0x26e1d6&&_0x50f061['writer']['setAttribute']('data-suggestion',_0x7f8fff,_0x2fb276),_0x50f061['mapper']['bindElementToMarker'](_0x2fb276,_0x176a49['markerName']),_0x375c1a&&(_0x2b7a06['activeMarkers']['includes'](_0x176a49['markerName'])?_0x50f061['writer']['addClass']('ck-suggestion-marker--active',_0x2fb276):_0x50f061['writer']['removeClass']('ck-suggestion-marker--active',_0x2fb276));}}};}_0x2b7a06['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4a7e6f),_0x2b7a06['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4a7e6f),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4e271d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4a9244,_0x102ed7,_0x529232)=>{_0x529232['options']['showSuggestionHighlights']&&_0x4e271d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4a9244,_0x102ed7,_0x529232);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x45d4f9,_0x14e39c,_0x13ed26)=>{const {type:_0x1c45f5,id:_0x519322}=_0x2b7a06['_splitMarkerName'](_0x14e39c['markerName']),_0x4eb50e=_0x2b7a06['getSuggestion'](_0x519322),_0x13f159=_0x4eb50e['data'];if('formatBlock'!=_0x4eb50e['type']||!_0x13f159||'setTableColumnHeader'!=_0x13f159['commandName'])return;const _0x23dcf5=_0x13ed26['mapper']['markerNameToElements'](_0x14e39c['markerName']);if(_0x23dcf5){for(const _0x151c55 of _0x23dcf5)_0x13ed26['writer']['removeClass']('ck-suggestion-marker-'+_0x1c45f5,_0x151c55),_0x13ed26['writer']['removeClass']('ck-suggestion-marker--active',_0x151c55),_0x13ed26['writer']['removeAttribute']('data-suggestion',_0x151c55),_0x13ed26['mapper']['unbindElementFromMarkerName'](_0x151c55,_0x14e39c['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a019c=this['editor'],_0x2013bb=_0x1a019c['locale'];function _0x108dcc(_0x58a4d7){return{'type':'format','content':o(_0x2013bb,'*Format:*\x20%0',_0x58a4d7)};}_0x1a019c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x394b21=>{if('formatBlock'!=_0x394b21['type'])return;const {data:_0x59986c}=_0x394b21;if(_0x59986c){if('setTableRowHeader'==_0x59986c['commandName']){const _0x5f34ef=_0x59986c['commandParams'][0x0]['forceValue'];return _0x108dcc(o(_0x2013bb,_0x5f34ef?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x59986c['commandName']){const _0x5ddc8b=_0x59986c['commandParams'][0x0]['forceValue'];return _0x108dcc(o(_0x2013bb,_0x5ddc8b?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0xd5687e=>[_0xd5687e,null]));class _t extends _0x1530f7{static get['requires'](){return[It];}['afterInit'](){const _0x286212=this['editor'];if(!_0x286212['plugins']['has']('TableClipboard'))return;const _0x4282c4=_0x286212['plugins']['get']('TrackChangesEditing'),_0x5406c5=_0x286212['plugins']['get']('TableUtils'),_0x44757c=_0x286212['plugins']['get'](It),_0x4d530d=_0x286212['plugins']['get']('TableClipboard');_0x44757c['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x286212['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x286212['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x505b5a=null;_0x286212['model']['on']('insertContent',(_0x4cf310,_0x283554)=>{const [_0x573975,_0x396799]=_0x283554,_0xd8af43=_0x283554[_0x283554['length']-0x1];_0xd8af43&&_0xd8af43['forceDefaultExecution']||_0x4282c4['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x25c13c,_0x514426,_0x344365,_0xbb0c68,_0x1c1457){if(_0x514426&&!_0x514426['is']('documentSelection'))return!0x1;const _0x3e15a6=_0x1c1457['getTableIfOnlyTableInContent'](_0x25c13c,_0x344365);if(!_0x3e15a6||!Re(_0x3e15a6,void 0x0,_0xbb0c68))return!0x1;const _0x11cc64=_0xbb0c68['getSelectionAffectedTableCells'](_0x344365['document']['selection']);if(!_0x11cc64['length'])return!0x1;const _0x104ed8=_0x11cc64[0x0]['findAncestor']('table'),_0x59493d=_0xbb0c68['getRowIndexes'](_0x11cc64),_0x58183e=_0xbb0c68['getColumnIndexes'](_0x11cc64),_0x2b6e01={'startRow':_0x59493d['first'],'endRow':_0x59493d['last'],'startColumn':_0x58183e['first'],'endColumn':_0x58183e['last']};return 0x1==_0x11cc64['length']&&(_0x2b6e01['endRow']+=_0xbb0c68['getRows'](_0x3e15a6)-0x1,_0x2b6e01['endColumn']+=_0xbb0c68['getColumns'](_0x3e15a6)-0x1),Re(_0x104ed8,_0x2b6e01,_0xbb0c68);}(_0x573975,_0x396799,_0x286212['model'],_0x5406c5,_0x4d530d)&&(_0x4cf310['stop'](),_0x505b5a={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x286212['model']['change'](()=>{_0x286212['model']['insertContent'](_0x283554[0x0],_0x283554[0x1],_0x283554[0x2],{'forceDefaultExecution':!0x0});const _0x246926=_0x5042b(),{rowInsertionRanges:_0x1bfcf6,columnInsertionRanges:_0x3110b9,insertionRanges:_0x5024d8,deletionRanges:_0x2ecd82,cells:_0x5b021c}=_0x505b5a;_0x1bfcf6['length']&&_0x4282c4['markMultiRangeInsertion'](_0x1bfcf6,'tablePasteRow',{'tablePasteChainId':_0x246926}),_0x3110b9['length']&&_0x4282c4['markMultiRangeInsertion'](_0x3110b9,'tablePasteColumn',{'tablePasteChainId':_0x246926}),_0x5024d8['length']&&(_0x4282c4['markMultiRangeInsertion'](_0x5024d8,'tablePaste',{'tablePasteChainId':_0x246926,'skipNestingCheck':!0x0}),_0x5024d8['forEach'](_0x5c7cb6=>_0x5c7cb6['detach']?.())),_0x2ecd82['length']&&(_0x4282c4['markMultiRangeDeletion'](_0x2ecd82,'tablePaste',{'tablePasteChainId':_0x246926,'skipNestingCheck':!0x0}),_0x2ecd82['forEach'](_0x1d4ed3=>_0x1d4ed3['detach']?.()));const _0x558819=_0x4282c4['markMultiRangeBlockFormat'](_0x5b021c['map'](({element:_0x5ec851})=>_0x5ec851),{'formatGroupId':_0x5042b()},[],'tablePasteCell',{'tablePasteChainId':_0x246926});if(_0x558819){const _0x50acb8=_0x558819['getMarkers'](),_0x6a9535=[];for(const {element:_0x5f10a8,attributes:_0x5edc81}of _0x5b021c){if(!_0x5edc81)continue;const _0x21a844=_0x286212['model']['createRangeOn'](_0x5f10a8),_0x4531db=_0x50acb8['find'](_0x1468d9=>_0x1468d9['getRange']()['isEqual'](_0x21a844));_0x4531db&&_0x6a9535['push']([_0x4531db['name'],_0x5edc81]);}_0x6a9535['length']&&_0x558819['setAttribute']('markerAttributes',Object['fromEntries'](_0x6a9535));}_0x505b5a=null;}));},{'priority':_0x1bc495['high']+0xa}),_0x286212['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3508c1,_0x397063)=>{const [_0x5bcca3,_0x5bc210,,_0x41e924]=_0x397063;if(!_0x505b5a)return;_0x3508c1['stop']();const _0x25adaf=_0x5bcca3['cell'],_0x378181=_0x5bc210,_0x12cd2b=ke(_0x25adaf),_0x499f0d=ke(_0x378181);_0x3508c1['return']=_0x25adaf;let _0xb1f0be=null,_0x2ab43e=null;if(_0x499f0d||_0x12cd2b){if(_0x12cd2b&&!_0x499f0d){_0x41e924['remove'](_0x25adaf['getChild'](0x0));for(const _0x24f64c of Array['from'](_0x378181['getChildren']()))_0x41e924['insert'](_0x24f64c,_0x25adaf,'end');const _0x46fd2f=_0x505b5a['rowInsertionIndexes']['includes'](_0x5bcca3['row']),_0x24c240=_0x505b5a['columnInsertionIndexes']['includes'](_0x5bcca3['column']);_0x46fd2f||_0x24c240||(_0xb1f0be=_0x5018e8['fromRange'](_0x41e924['createRangeIn'](_0x25adaf)));}else _0x499f0d&&!_0x12cd2b&&(_0x2ab43e=_0x41e924['createRangeIn'](_0x25adaf));}else{const _0x24c492=_0x41e924['createElement']('tableCellSuggestion'),_0x67c95d=_0x41e924['createElement']('tableCellSuggestion');_0x41e924['wrap'](_0x41e924['createRangeIn'](_0x25adaf),_0x67c95d),_0x41e924['insert'](_0x24c492,_0x25adaf,0x0);for(const _0x31c257 of Array['from'](_0x378181['getChildren']()))_0x41e924['insert'](_0x31c257,_0x24c492,'end');_0xb1f0be=_0x5018e8['fromRange'](_0x41e924['createRangeOn'](_0x24c492)),_0x2ab43e=_0x5018e8['fromRange'](_0x41e924['createRangeOn'](_0x67c95d));}const _0x2561e4=Array['from'](_0x378181['getAttributes']())['filter'](([_0xc11f56])=>Pe['includes'](_0xc11f56));_0x505b5a['cells']['push']({'element':_0x25adaf,'attributes':_0x2561e4['length']?Object['fromEntries'](_0x2561e4):null}),_0xb1f0be&&_0x505b5a['insertionRanges']['push'](_0xb1f0be),_0x2ab43e&&_0x505b5a['deletionRanges']['push'](_0x2ab43e);},{'priority':'high'}),_0x5406c5['on']('insertColumns',(_0x1339eb,_0x1aede5)=>{const [_0x4cbca1,_0x52a60e={}]=_0x1aede5;if(!_0x505b5a)return;const _0x4efbd2=_0x52a60e['at']||0x0,_0x296208=_0x52a60e['columns']||0x1;_0x505b5a['columnInsertionIndexes']=new Array(_0x296208)['fill'](_0x4efbd2)['map']((_0x242a34,_0x8961)=>_0x242a34+_0x8961);for(const {cell:_0x396c58}of _0x5406c5['createTableWalker'](_0x4cbca1,{'startColumn':_0x4efbd2,'endColumn':_0x4efbd2+_0x296208-0x1}))_0x505b5a['columnInsertionRanges']['push'](_0x286212['model']['createRangeOn'](_0x396c58));},{'priority':'low'}),_0x5406c5['on']('insertRows',(_0x404008,_0x2c6260)=>{const [_0x4dba0b,_0xc1d46={}]=_0x2c6260;if(!_0x505b5a)return;const _0x4bcaa7=_0xc1d46['at']||0x0,_0x3109dd=_0xc1d46['rows']||0x1;_0x505b5a['rowInsertionIndexes']=new Array(_0x3109dd)['fill'](_0x4bcaa7)['map']((_0x13595a,_0x3c73bf)=>_0x13595a+_0x3c73bf);for(const {cell:_0x14c857}of _0x5406c5['createTableWalker'](_0x4dba0b,{'startRow':_0x4bcaa7,'endRow':_0x4bcaa7+_0x3109dd-0x1}))_0x505b5a['rowInsertionRanges']['push'](_0x286212['model']['createRangeOn'](_0x14c857));},{'priority':'low'}),_0x4282c4['descriptionFactory']['registerDescriptionCallback'](_0x29db9c=>{if(_0x29db9c['subType']&&_0x29db9c['subType']['startsWith']('tablePaste'))return _0x29db9c['previous']?{}:{'type':'insertion','content':o(_0x286212['locale'],'*Replace\x20table\x20cells*')};});const _0x339583=()=>!0x1;for(const _0xdbcd4 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4282c4['_suggestionFactory']['registerCustomCallback']('insertion',_0xdbcd4,'join',_0x339583),_0x4282c4['_suggestionFactory']['registerCustomCallback']('deletion',_0xdbcd4,'join',_0x339583),_0x4282c4['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xdbcd4,'join',_0x339583);_0x4282c4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x339583),_0x4282c4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x399e29,_0x817d70,_0x229e19)=>{const _0x46530a=_0x399e29['map'](_0x432c86=>_0x432c86['getContainedElement']())['filter'](_0x805690=>_0x805690),_0x14e09c=new Map(_0x46530a['map'](_0x4becea=>[_0x4becea,null]));if(_0x505b5a){for(const {element:_0x261319,attributes:_0x57a9b6}of _0x505b5a['cells'])_0x57a9b6&&_0x14e09c['set'](_0x261319,_0x57a9b6);}else{if(_0x229e19&&_0x229e19['markerAttributes'])for(const [_0x12c105,_0x4e173c]of Object['entries'](_0x229e19['markerAttributes'])){const _0x524d9c=_0x286212['model']['markers']['get'](_0x12c105),_0x3eea98=_0x524d9c?_0x524d9c['getRange']()['getContainedElement']():null;_0x3eea98&&_0x14e09c['set'](_0x3eea98,_0x4e173c);}}_0x286212['model']['change'](_0xbf58b9=>{for(const [_0x1dde17,_0x5918cf]of _0x14e09c)_0xbf58b9['setAttributes']({...we,..._0x5918cf},_0x1dde17);});});const _0x160503=(_0x1e9f60,_0x47e877)=>{_0x4282c4['_suggestionFactory']['registerCustomCallback'](_0x1e9f60,'tablePaste',_0x47e877,(_0x21ca51,_0x25e4c6,_0x279aad)=>{_0x286212['model']['change'](_0x542064=>{const _0xc60924=[];for(const _0x50f4dc of _0x21ca51){const _0x5c1b5f=_0x50f4dc['start']['nodeAfter'];_0x5c1b5f['is']('element','tableCellSuggestion')&&_0xc60924['push'](_0x5c1b5f);}_0x4282c4['_suggestionFactory']['getSuggestionCallback'](_0x1e9f60,null,_0x47e877)(_0x21ca51,_0x25e4c6,_0x279aad);for(const _0x1e4ea5 of _0xc60924)'$graveyard'!=_0x1e4ea5['root']['rootName']&&_0x542064['unwrap'](_0x1e4ea5);});});};_0x160503('insertion','accept'),_0x160503('insertion','discard'),_0x160503('deletion','accept'),_0x160503('deletion','discard'),_0x4282c4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1e77da=>{const _0x137086=_0x1e77da['map'](_0x53eb72=>_0x53eb72['getContainedElement']()),_0x588fe7=_0x137086[0x0]['findAncestor']('table'),{minRow:_0x4e1c72,maxRow:_0x760cec}=_0x44757c['_getCoordsForCells'](_0x137086);_0x5406c5['removeRows'](_0x588fe7,{'at':_0x4e1c72,'rows':_0x760cec-_0x4e1c72+0x1});}),_0x4282c4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5bfe20=>{const _0x444b13=_0x5bfe20['map'](_0x529eac=>_0x529eac['getContainedElement']()),_0xc9a34a=_0x444b13[0x0]['findAncestor']('table'),{minColumn:_0x92e429,maxColumn:_0x2d1670}=_0x44757c['_getCoordsForCells'](_0x444b13);_0x5406c5['removeColumns'](_0xc9a34a,{'at':_0x92e429,'columns':_0x2d1670-_0x92e429+0x1});});const _0x42f435=(_0xafdbc6,_0x21ec73)=>{if(!_0x21ec73['subType']||!_0x21ec73['subType']['startsWith']('tablePaste'))return;const _0x23ccd2=_0x21ec73['attributes']['tablePasteChainId'],_0x3c6747=_0x4282c4['getSuggestions']()['filter'](_0xe8da7d=>_0xe8da7d['isInContent']&&_0xe8da7d['attributes']&&_0xe8da7d['attributes']['tablePasteChainId']==_0x23ccd2);_0x3c6747['length']&&_0x21ec73['getAllAdjacentSuggestions']()['length']!=_0x3c6747['length']&&_0x3c6747['reduce']((_0x477a0a,_0xb00843)=>(_0x477a0a['next']=_0xb00843,_0xb00843['previous']=_0x477a0a,_0xb00843));};function _0x3ea65d(_0x4efc81,_0x164eb6=!0x0){const {id:_0x2f8372,authorId:_0x57e9f6}=_0x4282c4['_splitMarkerName'](_0x4efc81['markerName']),_0x39f568=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5826c9=_0x4282c4['activeMarkers']['includes'](_0x4efc81['markerName']);return _0x5826c9&&_0x39f568['push']('ck-suggestion-marker--active'),{'classes':_0x39f568,'attributes':{'data-suggestion':_0x2f8372,'data-author-id':_0x57e9f6},'priority':_0x5826c9&&_0x164eb6?0xbc2:0xbb8};}_0x4282c4['on']('suggestionLoaded',_0x42f435,{'priority':'high'}),_0x4282c4['on']('suggestionUnloaded',_0x42f435,{'priority':'high'}),_0x286212['model']['document']['registerPostFixer'](()=>{let _0x53edeb=!0x1;const _0x6c261=Array['from'](_0x286212['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x10cc21,data:_0x4ab96d}of _0x6c261){const {group:_0x2884ad,type:_0x3fb1d8,id:_0x260372}=_0x4282c4['_splitMarkerName'](_0x10cc21);if('suggestion'!=_0x2884ad||'deletion'!=_0x3fb1d8||_0x4ab96d['oldRange'])continue;if(!_0x4282c4['hasSuggestion'](_0x260372))continue;const _0x19828c=_0x4282c4['getSuggestion'](_0x260372)['getRanges'](),_0x4b2628=_0x286212['plugins']['get']('Users')['me'];for(const _0x1f0a33 of _0x4282c4['getSuggestions']()){if(!_0x1f0a33['isInContent']||_0x1f0a33['author']!=_0x4b2628)continue;if('formatBlock'!=_0x1f0a33['type']||'tablePasteCell'!=_0x1f0a33['subType'])continue;if(_0x1f0a33['getRanges']()['every'](_0x2389fc=>_0x19828c['some'](_0x1f5970=>_0x1f5970['containsRange'](_0x2389fc,!0x0)))){for(const _0x791d56 of _0x1f0a33['getAllAdjacentSuggestions']())_0x791d56['isInContent']&&(_0x791d56['discard'](),_0x53edeb=!0x0);}}}return _0x53edeb;}),_0x286212['model']['document']['registerPostFixer'](_0x3e0b16=>{const _0x310308=_0x286212['commands']['get']('redo');if(!_0x310308||!_0x310308['_createdBatches']['has'](_0x3e0b16['batch']))return!0x1;let _0x36b98c=!0x1;const _0x48f4ce=_0x286212['plugins']['get']('Users')['me'],_0x40f9ff=_0x286212['model']['document']['differ']['getChanges'](),_0x14d59b=Array['from'](_0x286212['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2104bb,data:_0xa559ba})=>{const {group:_0x2efaef,subType:_0x1578c5,authorId:_0x56bd06}=_0x4282c4['_splitMarkerName'](_0x2104bb);return'suggestion'==_0x2efaef&&'tablePaste'==_0x1578c5&&_0x56bd06==_0x48f4ce['id']&&!_0xa559ba['oldRange'];});for(const _0x519933 of _0x40f9ff){if('insert'!=_0x519933['type']||'tableCellSuggestion'!=_0x519933['name']||0x1!=_0x519933['length'])continue;const _0x3d5d7e=_0x3e0b16['createRange'](_0x519933['position'],_0x519933['position']['getShiftedBy'](0x1));if(!_0x14d59b['find'](({data:_0x5a9485})=>_0x5a9485['newRange']['isEqual'](_0x3d5d7e))){for(const {name:_0x4dac1e,data:_0x375b2a}of _0x14d59b)if(_0x3d5d7e['containsRange'](_0x375b2a['newRange'])){_0x3e0b16['updateMarker'](_0x4dac1e,{'range':_0x3d5d7e}),_0x36b98c=!0x0;break;}}}return _0x36b98c;}),_0x286212['model']['document']['registerPostFixer'](_0x212f22=>{let _0x429437=!0x1;const _0xe4a013=_0x286212['plugins']['get']('Users')['me'],_0x3e9025=_0x4282c4['getSuggestions']()['filter'](_0x365fa0=>_0x365fa0['isInContent']&&_0x365fa0['author']==_0xe4a013),_0x5c9aa1=new Set(),_0x18bdbb=new Set();for(const _0x12a71a of _0x3e9025)if('tablePaste'==_0x12a71a['subType'])for(const _0x2a6cc3 of _0x12a71a['getMarkers']()){const _0x2d334b=_0x2a6cc3['getRange']()['getContainedElement']();if(_0x2d334b){if(_0x2d334b['is']('element','tableCellSuggestion')&&ke(_0x2d334b)){_0x12a71a['removeMarker'](_0x2a6cc3['name']),_0x5c9aa1['add'](_0x2d334b),_0x429437=!0x0;const _0x476986=_0x2d334b['nextSibling'],_0x5899c0=_0x2d334b['previousSibling'],_0xdd245=_0x476986&&_0x476986['is']('element','tableCellSuggestion'),_0x2c2a7c=_0x5899c0&&_0x5899c0['is']('element','tableCellSuggestion');_0xdd245&&!_0x5c9aa1['has'](_0x476986)&&_0x18bdbb['add'](_0x476986),_0x2c2a7c&&!_0x5c9aa1['has'](_0x5899c0)&&_0x18bdbb['add'](_0x5899c0);}else _0x2d334b['is']('element','paragraph')&&_0x2d334b['isEmpty']&&(_0x12a71a['removeMarker'](_0x2a6cc3['name']),_0x429437=!0x0);}}else{if('tablePasteCell'==_0x12a71a['subType']){if(!_0x12a71a['attributes']||!_0x12a71a['attributes']['tablePasteChainId'])continue;const _0x49c97b=_0x12a71a['attributes']['markerAttributes'];if(_0x49c97b&&Object['keys'](_0x49c97b)['length'])continue;const _0x2944cf=_0x12a71a['attributes']['tablePasteChainId'];let _0x1044fb=!0x0,_0x6614f2=!0x0;for(const _0x224aa6 of _0x3e9025)if(_0x224aa6['subType']&&_0x224aa6['subType']['startsWith']('tablePaste')){if(!_0x224aa6['attributes']['tablePasteChainId']){_0x6614f2=!0x1;break;}if(_0x224aa6['id']!=_0x12a71a['id']&&_0x224aa6['attributes']['tablePasteChainId']==_0x2944cf){_0x1044fb=!0x1;break;}}_0x6614f2&&_0x1044fb&&(_0x12a71a['removeMarkers'](),_0x429437=!0x0);}}for(const _0x5a79eb of _0x5c9aa1)_0x212f22['remove'](_0x5a79eb);for(const _0x54f548 of _0x18bdbb)_0x212f22['unwrap'](_0x54f548);return _0x429437;}),_0x286212['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x346ef7=>_0x3ea65d(_0x346ef7),'converterPriority':'high'}),_0x286212['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2a1a28,_0x55ffda)=>_0x55ffda['options']['showSuggestionHighlights']?_0x3ea65d(_0x2a1a28,!0x1):null,'converterPriority':'high'});const _0x52f9bf=_0x286212['editing']['view'];this['listenTo'](_0x52f9bf['document'],'clipboardOutput',(_0x4da268,_0x5a4a9b)=>{const _0xb22ef9=[];for(const _0x2a3d1b of _0x52f9bf['createRangeIn'](_0x5a4a9b['content'])['getItems']())_0x2a3d1b['is']('element','suggestion-td')&&_0xb22ef9['push'](_0x2a3d1b);_0x52f9bf['change'](_0x2f39b5=>{for(const _0x1bbaf6 of _0xb22ef9)_0x2f39b5['move'](_0x2f39b5['createRangeIn'](_0x1bbaf6),_0x2f39b5['createPositionBefore'](_0x1bbaf6)),_0x2f39b5['remove'](_0x1bbaf6);});});}}function ke(_0x3650b4){if(_0x3650b4['isEmpty'])return!0x0;const _0x46da5c=_0x3650b4['getChild'](0x0);return _0x46da5c['is']('element','paragraph')&&_0x46da5c['isEmpty'];}function Re(_0x5f1476,_0x3fcce1={},_0x196eda){for(const {isAnchor:_0x563df5,cellHeight:_0x4f4f47,cellWidth:_0x3d7590}of _0x196eda['createTableWalker'](_0x5f1476,{'includeAllSlots':!0x0,..._0x3fcce1}))if(!_0x563df5||0x1!=_0x4f4f47||0x1!=_0x3d7590)return!0x1;return!0x0;}class Nt extends _0x1530f7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2a7a5e=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a7a5e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2a7a5e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2a7a5e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2a7a5e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2a7a5e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2a7a5e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4e0af5,_0xdb212a){const _0x2fa7fd=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc7f95f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x38b7a7=_0xdb212a['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3b3609=_0xc7f95f['getColumnGroupElement'](_0x38b7a7);let _0x48b7a1=_0x3b3609?_0xc7f95f['getTableColumnsWidths'](_0x3b3609):null,_0xb7a80a=_0x38b7a7['getAttribute']('tableWidth')||null;const _0x334b8c=_0xdb212a['tableWidth']||_0xb7a80a,_0x372d1b=_0xdb212a['columnWidths']||_0x48b7a1,_0x50a8f4=this['editor']['plugins']['get']('Users')['me'];for(const _0x253c04 of _0x2fa7fd['getSuggestions']()){const _0x251e15=_0x253c04['getContainedElement']();if('resizeTable'===_0x253c04['subType']&&_0x251e15===_0x38b7a7){_0x253c04['author']!==_0x50a8f4&&_0x253c04['discard']();const _0x53694c=_0x253c04['data']['commandParams'];_0xb7a80a=_0x53694c[0x0]['tableWidth'],_0x48b7a1=_0x53694c[0x0]['columnWidths'];break;}}_0x4e0af5({'table':_0x38b7a7,'tableWidth':_0x334b8c,'columnWidths':_0x372d1b}),_0x2fa7fd['markBlockFormat'](_0x38b7a7,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xb7a80a,'columnWidths':_0x48b7a1}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1be920){if('formatBlock'!=_0x1be920['type']&&'formatInline'!=_0x1be920['type'])return;const {data:_0x7dc069}=_0x1be920;if(_0x7dc069&&'resizeTable'===_0x7dc069['formatGroupId']){const _0x4477c2='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4477c2)};}}}class Dt extends _0x1530f7{['afterInit'](){const _0xf63db2=this['editor'];_0xf63db2['plugins']['has']('Template')&&_0xf63db2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x1530f7{['afterInit'](){const _0x548309=this['editor'];if(!_0x548309['commands']['get']('insertTableOfContents'))return;_0x548309['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x503d42=_0x548309['plugins']['get']('TrackChangesEditing'),_0x157089=_0x548309['locale'];_0x503d42['descriptionFactory']['registerElementLabel']('tableOfContents',_0x165507=>o(_0x157089,'ELEMENT_TABLE_OF_CONTENTS',_0x165507));}}class $t extends _0x1530f7{['afterInit'](){const _0x2dc09e=this['editor'];if(!_0x2dc09e['plugins']['has']('Title'))return;const _0x2a4a21=_0x2dc09e['plugins']['get']('TrackChangesEditing');_0x2a4a21['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2dc09e['locale'],'ELEMENT_TITLE')),_0x2dc09e['model']['document']['registerPostFixer'](_0x446968=>{let _0x1475cd=!0x1;const _0x1bac9d=Array['from'](_0x2dc09e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xe75fe7,data:_0x36a219}of _0x1bac9d){const {group:_0x420265}=_0x2a4a21['_splitMarkerName'](_0xe75fe7);if('suggestion'!==_0x420265||!_0x36a219['newRange'])continue;const _0x2625b3=_0x36a219['newRange'],_0xd64177=_0x2625b3['end']['nodeBefore'];if(!_0xd64177||!_0xd64177['is']('element','title-content'))continue;if(!_0x2625b3['start']['isTouching'](_0x2625b3['end']))continue;const _0x33323d=_0x2dc09e['model']['schema']['getNearestSelectionRange'](_0x2625b3['end'],'forward');if(_0x33323d&&_0x33323d['isCollapsed']){const _0x2936df=_0x446968['createRange'](_0x2625b3['start'],_0x33323d['start']);_0x2936df['isEqual'](_0x2625b3)||(_0x446968['updateMarker'](_0xe75fe7,{'range':_0x2936df}),_0x1475cd=!0x0);}_0x1475cd||(_0x446968['removeMarker'](_0xe75fe7),_0x1475cd=!0x0);}return _0x1475cd;});}}class Bt extends _0x1530f7{['afterInit'](){const _0x173148=this['editor'],_0x2bf7a7=_0x173148['plugins']['get']('TrackChangesEditing');_0x173148['plugins']['has']('UndoEditing')&&(_0x2bf7a7['enableCommand']('undo'),_0x2bf7a7['enableCommand']('redo'));}}class xt extends _0x1530f7{static get['requires'](){return[It];}['afterInit'](){const _0x4cee2e=this['editor'];if(!_0x4cee2e['plugins']['has']('TableCaptionEditing'))return;_0x4cee2e['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x1530f7{['tableProperties'];['tableCellProperties'];constructor(_0x5881e5){super(_0x5881e5),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 _0x2cb27e=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2331f9 of this['tableProperties'])_0x2cb27e['enableCommand'](_0x2331f9,(_0x3d90ea,_0xed0525)=>{const _0x1e7545=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2331f9,[_0x1e7545],this['tableProperties'],'tableProperties',_0x3d90ea,_0xed0525);});_0x2cb27e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2cb27e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2cb27e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2e0ede,_0x28b6e4)=>this['handleDiscardAction'](this['tableProperties'],_0x2e0ede,_0x28b6e4)),_0x2cb27e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x6e4940 of this['tableCellProperties'])_0x2cb27e['enableCommand'](_0x6e4940,(_0x2d96f4,_0x57c4c0)=>{const _0x138443=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x6e4940,_0x138443,this['tableCellProperties'],'tableCellProperties',_0x2d96f4,_0x57c4c0);});_0x2cb27e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2cb27e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2cb27e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3c9a72,_0x3a2bd4)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3c9a72,_0x3a2bd4)),_0x2cb27e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2cb27e['descriptionFactory']['registerDescriptionCallback'](_0x59fb8a=>this['handleSuggestionDescription'](_0x59fb8a));}['_handlePropertyChange'](_0x40a9e8,_0x2753cf,_0x37b3bd,_0x48b526,_0x1f210,_0x3ab9ad){const _0x50f352=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3ab9ad['batch'],()=>{for(const _0x1b7267 of _0x2753cf){if(this['_getSuggestion'](_0x1b7267,_0x48b526))_0x1f210(_0x3ab9ad);else{const _0xd3b141={};for(const _0x5d2934 of _0x37b3bd){const _0x46412f=_0x1b7267['getAttribute'](_0x5d2934);void 0x0!==_0x46412f&&(_0xd3b141[_0x5d2934]=_0x46412f);}_0x1f210(_0x3ab9ad),_0x50f352['markBlockFormat'](_0x1b7267,{'commandParams':[_0xd3b141]},[],_0x48b526);}}});}['handleDiscardAction'](_0x4c9b63,_0x309806,_0x22c214){const _0x2abc57=_0x309806[0x0]['start']['nodeAfter'],_0x47dd3b=_0x22c214['commandParams'][0x0];this['editor']['model']['change'](_0x2c67c1=>{for(const _0x25e927 of _0x4c9b63)void 0x0!==_0x47dd3b[_0x25e927]?_0x2c67c1['setAttribute'](_0x25e927,_0x47dd3b[_0x25e927],_0x2abc57):_0x2c67c1['removeAttribute'](_0x25e927,_0x2abc57);});}['handleSuggestionDescription'](_0x1d24a5){if(_0x1d24a5['data'])switch(_0x1d24a5['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'](_0x2de7cd,_0x4d45a2){const _0x35dfbb=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x555475 of _0x35dfbb['getSuggestions']({'skipNotAttached':!0x0})){const _0x22d6f9=_0x555475['getContainedElement']();if(_0x555475['subType']===_0x4d45a2&&_0x22d6f9===_0x2de7cd)return _0x555475;}return null;}}const m='$elementName';class p extends _0x1530f7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4d313f,_0x3a8f2,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(_0x33645f){function _0xfe89bc(_0x4aba2f){return _0x4aba2f['map'](_0x409e54=>String['fromCharCode'](_0x409e54))['join']('');}super(_0x33645f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x11f27c,_0x46f5f7,_0x594a18,_0x31c90e)=>{this['_model']['change'](()=>{for(const _0x143087 of[..._0x31c90e,..._0x594a18])this['_model']['markers']['has'](_0x143087)&&_0x33645f['editing']['reconvertMarker'](_0x143087);});}),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']=_0x33645f['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(),_0x33645f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x33645f['config']['get']('trackChanges.trackFormatChanges'),_0x33645f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x33645f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x33645f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0xfe89bc([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0xfe89bc([0x34,0x30,0x34,0x38,0x31,0x38,0x35,0x38]);}['init'](){const _0xebe359=this['editor'],_0x50f983=(_0x4c64af,_0x3f8a63)=>{if('attribute'!=_0x4c64af)return'ck-suggestion-marker-'+_0x4c64af;const _0xdc35d=_0x3f8a63['split']('|')[0x0];return this['_isBlockAttribute'](_0xdc35d)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xebe359['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x47ad03=>{const {id:_0x36c9d7,authorId:_0x20ef63,type:_0x27f06e,subType:_0x334ada}=this['_splitMarkerName'](_0x47ad03['markerName']),_0x4a9739=['ck-suggestion-marker',_0x50f983(_0x27f06e,_0x334ada)];let _0x373a32=0xbb8;return this['activeMarkers']['includes'](_0x47ad03['markerName'])&&(_0x4a9739['push']('ck-suggestion-marker--active'),_0x373a32=0xbc2),'deletion'==_0x27f06e&&(_0x373a32+=0x5),{'classes':_0x4a9739,'attributes':{'data-suggestion':_0x36c9d7,'data-author-id':_0x20ef63},'priority':_0x373a32};}}),_0xebe359['conversion']['for']('dataDowncast')['add'](_0x2ff150=>{_0x2ff150['on']('addMarker:suggestion',(_0x16cbfb,_0x4ad51b,_0x573e12)=>{if(!_0x573e12['options']['showSuggestionHighlights'])return;const _0x592266=_0x4ad51b['item'];if(!_0x592266)return;const _0x546251=_0x573e12['mapper']['toViewElement'](_0x592266);_0xebe359['model']['schema']['isObject'](_0x592266)&&_0x546251&&!_0x546251['getCustomProperty']('widget')&&_0x546251['is']('containerElement')&&_0x39e06e(_0x546251,_0x573e12['writer']);},{'priority':'high'});}),_0xebe359['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x17c4bf,_0x277698)=>{if(!_0x277698['options']['showSuggestionHighlights'])return null;const {type:_0x576a74,subType:_0x3d8600}=this['_splitMarkerName'](_0x17c4bf['markerName']);return{'classes':['ck-suggestion-marker',_0x50f983(_0x576a74,_0x3d8600)],'priority':0xbb8};}});const _0x59cbba=({showActiveMarkers:_0x3bec74=!0x0,isAttributeSuggestion:_0x3be91f=!0x1}={})=>(_0x2e77a7,_0x12aad3,_0x1c9fc6)=>{if(!_0x12aad3['item'])return;const {id:_0xec0fd6,authorId:_0x4e3d08}=this['_splitMarkerName'](_0x12aad3['markerName']);if(_0x3be91f){const _0x3c4f42=this['_suggestions']['get'](_0xec0fd6),_0x5a8418=this['_getAttributeKey'](_0x3c4f42);if(!this['_isBlockAttribute'](_0x5a8418))return;}if(_0x12aad3['item']['is']('selection'))return void _0x1c9fc6['consumable']['consume'](_0x12aad3['item'],_0x2e77a7['name']);const _0x2d2b0f=_0x1c9fc6['mapper']['toViewElement'](_0x12aad3['item']);if(_0x12aad3['item']['is']('element')&&_0xebe359['model']['schema']['isBlock'](_0x12aad3['item'])&&!_0x2d2b0f['getCustomProperty']('addHighlight')){_0x1c9fc6['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2d2b0f),_0x1c9fc6['writer']['setAttribute']('data-suggestion',_0xec0fd6,_0x2d2b0f),_0x1c9fc6['writer']['setAttribute']('data-author-id',_0x4e3d08,_0x2d2b0f),_0x1c9fc6['mapper']['bindElementToMarker'](_0x2d2b0f,_0x12aad3['markerName']),_0x3bec74&&(this['activeMarkers']['includes'](_0x12aad3['markerName'])?_0x1c9fc6['writer']['addClass']('ck-suggestion-marker--active',_0x2d2b0f):_0x1c9fc6['writer']['removeClass']('ck-suggestion-marker--active',_0x2d2b0f));for(const _0x20e3e2 of _0xebe359['model']['createRangeIn'](_0x12aad3['item'])['getItems']())_0x1c9fc6['consumable']['consume'](_0x20e3e2,_0x2e77a7['name']);_0x1c9fc6['consumable']['consume'](_0x12aad3['item'],_0x2e77a7['name']);}};_0xebe359['conversion']['for']('dataDowncast')['add'](_0x444b58=>{_0x444b58['on']('addMarker:suggestion:formatBlock',(_0x123674,_0x3568bf,_0x5a58b3)=>{_0x5a58b3['options']['showSuggestionHighlights']&&_0x59cbba({'showActiveMarkers':!0x1})(_0x123674,_0x3568bf,_0x5a58b3);},{'priority':'highest'});}),_0xebe359['conversion']['for']('dataDowncast')['add'](_0x13e98b=>{_0x13e98b['on']('addMarker:suggestion:attribute',(_0x1c5e7c,_0x286e2b,_0x3ad425)=>{_0x3ad425['options']['showSuggestionHighlights']&&_0x59cbba({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1c5e7c,_0x286e2b,_0x3ad425);},{'priority':'highest'});}),_0xebe359['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3d2335,_0x203f80)=>_0x203f80['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3d2335['substr'](0xb)}}),_0xebe359['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x503b2c,{writer:_0x16a6b7})=>{let _0x39c55d='suggestion:'+_0x503b2c['getAttribute']('suggestion-type')+':'+_0x503b2c['getAttribute']('id');return _0x503b2c['getAttribute']('marker-count')&&(_0x39c55d+=':'+_0x503b2c['getAttribute']('marker-count')),_0x16a6b7['createElement']('$marker',{'data-name':_0x39c55d});}}),_0xebe359['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xebe359['conversion']['for']('editingDowncast')['add'](_0x863424=>{_0x863424['on']('addMarker:suggestion:formatBlock',_0x59cbba(),{'priority':'high'});}),_0xebe359['conversion']['for']('editingDowncast')['add'](_0x564867=>{_0x564867['on']('addMarker:suggestion:attribute',_0x59cbba({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xebe359['conversion']['for']('editingDowncast')['add'](_0x139b9c=>{_0x139b9c['on']('removeMarker:suggestion:formatBlock',(_0x41c357,_0x3e6eb2,_0x105f64)=>{const _0x135b71=_0x105f64['mapper']['markerNameToElements'](_0x3e6eb2['markerName']);if(_0x135b71){for(const _0x401ccd of _0x135b71)_0x401ccd['getCustomProperty']('addHighlight')||(_0x105f64['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x401ccd),_0x105f64['writer']['removeAttribute']('data-suggestion',_0x401ccd),_0x105f64['writer']['removeAttribute']('data-author-id',_0x401ccd),_0x105f64['mapper']['unbindElementFromMarkerName'](_0x401ccd,_0x3e6eb2['markerName']));}},{'priority':'high'});}),_0xebe359['conversion']['for']('editingDowncast')['add'](_0x22a8d7=>{_0x22a8d7['on']('removeMarker:suggestion:attribute',(_0x2525cd,_0x3cacb5,_0xfb3f5d)=>{const _0x3f9281=_0xfb3f5d['mapper']['markerNameToElements'](_0x3cacb5['markerName']);if(!_0x3f9281)return;const {id:_0x402877}=this['_splitMarkerName'](_0x3cacb5['markerName']),_0x5aeb77=this['_suggestions']['get'](_0x402877),_0xdc21b4=this['_getAttributeKey'](_0x5aeb77);if(this['_isBlockAttribute'](_0xdc21b4)){for(const _0x47d41c of _0x3f9281)_0x47d41c['getCustomProperty']('addHighlight')||(_0xfb3f5d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x47d41c),_0xfb3f5d['writer']['removeAttribute']('data-suggestion',_0x47d41c),_0xfb3f5d['writer']['removeAttribute']('data-author-id',_0x47d41c),_0xfb3f5d['mapper']['unbindElementFromMarkerName'](_0x47d41c,_0x3cacb5['markerName']));}},{'priority':'high'});}),_0xebe359['model']['document']['registerPostFixer'](_0x2db891=>{let _0x41ad4a=!0x1;const _0x2302e6=Array['from'](_0xebe359['model']['document']['differ']['getChangedMarkers']()),_0x6f3edf=new Set();for(const {name:_0x656fde,data:_0x4de887}of _0x2302e6){const {group:_0x49a9f2,type:_0x211773,subType:_0x35fe55,id:_0x59c90d}=this['_splitMarkerName'](_0x656fde);if('suggestion'!==_0x49a9f2)continue;const _0x54a47e=this['_suggestions']['get'](_0x59c90d);if(null!=_0x4de887['newRange']){'formatInline'==_0x211773&&(_0x41ad4a=_0x41ad4a||Ut(_0x4de887['newRange'],_0x656fde,_0x2db891,_0xebe359['model']['schema']));const _0x11734f='attribute'==_0x211773&&this['_isBlockAttribute'](_0x35fe55['split']('|')[0x0]);if(_0x4de887['newRange']['isCollapsed']||'$graveyard'==_0x4de887['newRange']['root']['rootName']||'formatBlock'==_0x211773&&!Ft(_0x4de887['newRange'])||_0x11734f&&!Ft(_0x4de887['newRange'])||'deletion'==_0x211773&&!(!Vt(_0x2e1234=_0x4de887['newRange'])&&!function(_0x38a760){return _0x38a760['start']['parent']==_0x38a760['end']['nodeBefore']&&_0x38a760['start']['isAtEnd'];}(_0x2e1234)))_0x2db891['removeMarker'](_0x656fde),_0x41ad4a=!0x0;else{if(!_0x54a47e||!_0x54a47e['isInContent'])continue;if(_0x4de887['newRange']&&_0x4de887['oldRange']&&_0x4de887['newRange']['isEqual'](_0x4de887['oldRange']))continue;_0x6f3edf['add'](_0x54a47e);}}}var _0x2e1234;return _0x6f3edf['size']>0x0&&(_0x41ad4a=!!this['_joinWithAdjacentSuggestions'](_0x6f3edf)||_0x41ad4a),_0x41ad4a;}),_0xebe359['model']['document']['registerPostFixer'](_0x81cb48=>{let _0x40daa3=!0x1;for(const _0x291ed3 of _0xebe359['model']['document']['differ']['getChanges']())if('insert'==_0x291ed3['type'])for(const _0x4696fa of this['_suggestions']['values']()){if(_0x4696fa['isMultiRange']||!_0x4696fa['isInContent'])continue;const _0x8bf7f6='formatBlock'==_0x4696fa['type'],_0x2d7aaf=this['_getAttributeKey'](_0x4696fa),_0x51e8c1=_0x2d7aaf&&this['_isBlockAttribute'](_0x2d7aaf);if(!_0x8bf7f6&&!_0x51e8c1)continue;const _0xc900eb=_0x4696fa['getFirstRange']();if(_0xc900eb['start']['parent']!=_0xc900eb['end']['parent']&&!_0xc900eb['end']['isAtEnd']){const _0x23ba97=_0xebe359['model']['createPositionAt'](_0xc900eb['start']['nodeAfter'],'end'),_0x2d9748=_0xebe359['model']['createRange'](_0xc900eb['start'],_0x23ba97);_0x81cb48['updateMarker'](_0x4696fa['getFirstMarker'](),{'range':_0x2d9748}),_0x40daa3=!0x0;}}return _0x40daa3;}),_0xebe359['model']['document']['registerPostFixer'](_0x2a105c=>this['_processAttributeChanges'](_0x2a105c)),_0xebe359['model']['document']['registerPostFixer'](_0x23008e=>!_0x23008e['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x23008e)),_0xebe359['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xebe359['model']['document']['on']('change:data',(_0x1a6ffc,_0x1d636e)=>{if(!_0x1d636e['isLocal']||_0x1d636e['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5a986d=_0xebe359['model']['document']['differ']['getChanges']();if(0x0==_0x5a986d['length'])return;const _0x4937e0=[],_0x47fbf3=_0x5a986d['filter'](_0x3355f2=>'attribute'==_0x3355f2['type']),_0xfbae8b=_0x5a986d['filter'](_0x5d443b=>'insert'==_0x5d443b['type']&&'$text'!=_0x5d443b['name']);for(const _0x31fb0e of _0x47fbf3)this['_isRegisteredAttribute'](_0x31fb0e['attributeKey'])&&_0x4937e0['push']({'key':_0x31fb0e['attributeKey'],'newValue':_0x31fb0e['attributeNewValue'],'oldValue':_0x31fb0e['attributeOldValue'],'range':Pt(_0x31fb0e['range'],_0xebe359['model'])});for(const _0x172efc of _0xfbae8b){if('rename'!=_0x172efc['action']&&'refresh'!=_0x172efc['action'])continue;const _0x219400=Lt(_0x172efc['position']['nodeAfter'],_0xebe359['model']),_0x252833=_0x172efc['before'];'rename'==_0x172efc['action']&&_0x4937e0['push']({'key':m,'newValue':_0x172efc['name'],'oldValue':_0x252833['name'],'range':_0x219400});for(const [_0x4dd8f8,_0x2a6190]of _0x252833['attributes']){if(!this['_isRegisteredAttribute'](_0x4dd8f8))continue;const _0xd1e80b=_0x172efc['attributes']['get'](_0x4dd8f8);_0x2a6190!==_0xd1e80b&&_0x4937e0['push']({'key':_0x4dd8f8,'newValue':_0xd1e80b,'oldValue':_0x2a6190,'range':_0x219400});}for(const [_0x2ddf2f,_0x577f37]of _0x172efc['attributes'])this['_isRegisteredAttribute'](_0x2ddf2f)&&(_0x252833['attributes']['has'](_0x2ddf2f)||_0x4937e0['push']({'key':_0x2ddf2f,'newValue':_0x577f37,'oldValue':null,'range':_0x219400}));}0x0!=_0x4937e0['length']&&_0xebe359['model']['enqueueChange'](_0x1d636e,_0x1e6bf7=>{const _0x54137b=_0x5042b();for(const {range:_0x51e016,key:_0x4a9148,oldValue:_0x10d6cc,newValue:_0x24e5ef}of _0x4937e0)this['markAttributeChange'](_0x51e016,_0x4a9148,_0x10d6cc,_0x24e5ef,{'groupId':_0x54137b});this['_reduceExistingSuggestions'](_0x1e6bf7,_0x4937e0);});},{'priority':'lowest'}),_0xebe359['model']['markers']['on']('update:suggestion',(_0x42cbc4,_0x38901a,_0x4083e5)=>{if(null==_0x4083e5){const {id:_0x27e4c4}=this['_splitMarkerName'](_0x38901a['name']),_0x1ab6a5=this['_suggestions']['get'](_0x27e4c4);_0x1ab6a5&&_0x1ab6a5['addMarkerName'](_0x38901a['name']);}}),_0xebe359['model']['document']['on']('change:data',()=>{const _0x4a8fc4=Array['from'](_0xebe359['model']['document']['differ']['getChangedMarkers']())['filter'](_0x525f27=>'suggestion'===this['_splitMarkerName'](_0x525f27['name'])['group']);if(0x0===_0x4a8fc4['length'])return;_0x4a8fc4['sort']((_0x589df9,_0x278000)=>{const _0x50436e=_0x589df9['data']['oldRange'],_0x3c8a9d=_0x278000['data']['oldRange'];return null===_0x50436e&&null===_0x3c8a9d?0x0:null===_0x50436e&&null!==_0x3c8a9d?-0x1:null!==_0x50436e&&null===_0x3c8a9d?0x1:_0x50436e['start']['isBefore'](_0x3c8a9d['start'])?-0x1:0x1;});const _0x39ba2a=new Set(),_0x6468a6=new Set();for(const {name:_0x607504,data:_0x3716a8}of _0x4a8fc4){const {id:_0x14fb90}=this['_splitMarkerName'](_0x607504);if(null===_0x3716a8['oldRange']){const _0x4fa4cb=this['_handleNewSuggestionMarker'](_0x607504);_0x6468a6['add'](_0x4fa4cb);}else{const _0x3e5718=this['_suggestions']['get'](_0x14fb90);null!==_0x3716a8['newRange']||_0x3e5718['isInContent']?(_0x39ba2a['add'](_0x3e5718['head']),_0x6468a6['add'](_0x3e5718)):this['_removeSuggestion'](_0x3e5718);}}_0x6468a6['size']>0x0&&this['_refreshSuggestionsChain'](_0x6468a6);for(const _0x473878 of _0x39ba2a)this['fire']('suggestionChanged',_0x473878);}),_0xebe359['model']['on']('applyOperation',(_0x2bf7ef,_0x1369b5)=>{const _0x421f65=_0x1369b5[0x0];if(!this['_suggestions']['size'])return;if(!_0x421f65['isDocumentOperation'])return;if(_0x421f65['batch']['isUndo']||!_0x421f65['batch']['isLocal'])return;let _0x3bb7d2,_0x31a17c;switch(_0x421f65['type']){case'insert':_0x3bb7d2=_0xebe359['model']['createPositionAt'](_0x421f65['position']),_0x31a17c=_0x3bb7d2['getShiftedBy'](_0x421f65['howMany']);break;case'split':_0x3bb7d2=_0xebe359['model']['createPositionAt'](_0x421f65['splitPosition']),_0x31a17c=_0xebe359['model']['createPositionAt'](_0x421f65['moveTargetPosition']);break;case'move':_0x3bb7d2=_0xebe359['model']['createPositionAt'](_0x421f65['targetPosition']),_0x31a17c=_0x3bb7d2['getShiftedBy'](_0x421f65['howMany']);break;default:return;}const _0x2cc68c=_0xebe359['model']['createRange'](_0x3bb7d2,_0x31a17c);_0xebe359['model']['change'](()=>{for(const {suggestion:_0x24fdb4,meta:_0x39e52e}of this['_findSuggestions'](_0x2cc68c)){if(_0x24fdb4['isMultiRange'])continue;if('formatInline'==_0x24fdb4['type'])continue;const _0x2fa914=this['_getAttributeKey'](_0x24fdb4);if(_0x2fa914&&this['_isBlockAttribute'](_0x2fa914)&&'split'!=_0x421f65['type'])continue;const _0x1eb450=_0x24fdb4['data']&&_0x24fdb4['data']['multipleBlocks'];('formatBlock'!=_0x24fdb4['type']||'split'==_0x421f65['type']&&!_0x1eb450)&&(_0x39e52e['containsRangeInObject']||'insertion'==_0x24fdb4['type']&&_0x39e52e['isOwn']||_0x24fdb4['getFirstRange']()['containsRange'](_0x2cc68c)&&this['_breakSuggestionMarker'](_0x24fdb4,_0x3bb7d2,_0x31a17c));}});},{'priority':'lowest'}),_0xebe359['model']['on']('deleteContent',(_0x1fc84a,_0x2f1fa9)=>{const _0x4a01b1=_0x2f1fa9[0x0],_0x270d96=_0x2f1fa9[0x1];if(_0x270d96&&_0x270d96['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4a01b1['isCollapsed'])return;const _0x92a1c2=_0xebe359['model']['schema'],{start:_0x4674a6,end:_0x52421b}=_0x4a01b1['getFirstRange'](),_0x2f180d=_0x4674a6['nodeAfter']&&_0x92a1c2['isLimit'](_0x4674a6['nodeAfter'])?null:_0x92a1c2['getNearestSelectionRange'](_0x4674a6,'forward'),_0x4a3dda=_0x52421b['nodeBefore']&&_0x92a1c2['isLimit'](_0x52421b['nodeBefore'])?null:_0x92a1c2['getNearestSelectionRange'](_0x52421b,'backward'),_0x2d049e=_0xebe359['model']['createRange'](_0x2f180d?_0x2f180d['start']:_0x4674a6,_0x4a3dda?_0x4a3dda['end']:_0x52421b);_0xebe359['model']['change'](_0x2890e4=>{this['markDeletion'](_0x2d049e);const _0x5bcee0=_0xebe359['model']['schema']['getNearestSelectionRange'](_0x2d049e['start']);_0x4a01b1['is']('documentSelection')?_0x2890e4['setSelection'](_0x5bcee0):_0x4a01b1['setTo'](_0x5bcee0);}),_0x1fc84a['stop']();},{'priority':_0x1bc495['normal']+0xa}),_0xebe359['model']['on']('insertContent',(_0x125ba1,_0x5f5d31)=>{const _0x5b3e2f=_0x5f5d31[_0x5f5d31['length']-0x1];_0x5b3e2f&&_0x5b3e2f['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xebe359['model']['change'](()=>{let _0x5f576c=_0xebe359['model']['insertContent'](_0x5f5d31[0x0],_0x5f5d31[0x1],_0x5f5d31[0x2],{'forceDefaultExecution':!0x0});if(!_0x5f576c)return;_0x125ba1['return']=_0x5f576c['clone']();const _0x53c7f2=_0x5f576c['end']['nodeBefore'],_0x14f3ab=_0xebe359['model']['schema'];_0x53c7f2&&_0x14f3ab['isBlock'](_0x53c7f2)&&!_0x14f3ab['isObject'](_0x53c7f2)&&(_0x5f576c=_0xebe359['model']['createRange'](_0x5f576c['start'],_0xebe359['model']['createPositionAt'](_0x53c7f2,'end'))),this['markInsertion'](_0x5f576c);}),_0x125ba1['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x21b264=new x(_0xebe359,this['_suggestions']);_0xebe359['commands']['add']('acceptSuggestion',_0x21b264),this['enableCommand']('acceptSuggestion');const _0x5a1171=new R(_0xebe359,this['_suggestions']);_0xebe359['commands']['add']('discardSuggestion',_0x5a1171),this['enableCommand']('discardSuggestion'),_0xebe359['commands']['add']('acceptAllSuggestions',new E(_0xebe359,_0x21b264,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xebe359['commands']['add']('discardAllSuggestions',new E(_0xebe359,_0x5a1171,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xebe359['commands']['add']('acceptSelectedSuggestions',new O(_0xebe359,_0x21b264,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xebe359['commands']['add']('discardSelectedSuggestions',new O(_0xebe359,_0x5a1171,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x39889c=_0xebe359['plugins']['get']('CommentsRepository');this['listenTo'](_0x39889c,'addComment',(_0x5a28f3,{threadId:_0x1b112d})=>{const _0x490a1c=this['_suggestions']['get'](_0x1b112d);_0x490a1c&&_0x490a1c['commentThread']&&0x1===_0x490a1c['commentThread']['length']&&this['_updateSuggestionData'](_0x1b112d,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x39889c,'removeComment',(_0x227b5f,{threadId:_0x7a6b8f})=>{const _0xffc779=this['_suggestions']['get'](_0x7a6b8f);_0xffc779&&_0xffc779['commentThread']&&!_0xffc779['commentThread']['length']&&this['_updateSuggestionData'](_0x7a6b8f,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x5cd567){if(this['_adapter'])throw new _0x36031a('track-changes-adapter-already-set',this);this['_adapter']=_0x5cd567;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x293bc4=!0x1,toJSON:_0x39d159=!0x1}={}){const _0x3e961f=[];for(const _0x480905 of this['_suggestions']['values']())_0x293bc4&&!_0x480905['isInContent']||_0x3e961f['push'](_0x480905);return _0x39d159?_0x3e961f['map'](_0xb97c94=>_0xb97c94['toJSON']()):_0x3e961f;}['getSuggestion'](_0x1cada5){const _0x960f50=this['_suggestions']['get'](_0x1cada5);if(!_0x960f50)throw new _0x36031a('track-changes-suggestion-not-found',this);return _0x960f50;}['hasSuggestion'](_0x34a844){return this['_suggestions']['has'](_0x34a844);}['addSuggestionData'](_0x2398f3){const {authorId:_0x53fb12,id:_0x3ad7ed,attributes:_0x5b0fe5}=_0x2398f3,[_0x481f12,_0x4774db]=_0x2398f3['type']['split'](':'),_0x3b7710=this['_suggestions']['get'](_0x3ad7ed)||this['_createSuggestion'](_0x481f12,_0x4774db,_0x3ad7ed,_0x53fb12,_0x5b0fe5);if(this['_addThreadToSuggestion'](_0x3b7710),this['_checkSuggestionCorrectness'](_0x3b7710,_0x481f12,_0x4774db||null,_0x53fb12),_0x3b7710['createdAt']=_0x2398f3['createdAt'],_0x3b7710['_isDataLoaded']=!0x0,_0x5b0fe5&&_0x5b0fe5['@external']){const _0xf06d53=_0x5b0fe5['@external'],_0x51986e=this['_getExternalAuthor'](_0xf06d53['authorName']);_0x3b7710['authoredAt']=_0xf06d53['createdAt'],_0x3b7710['author']=_0x51986e,_0x3b7710['isExternal']=!0x0;}else _0x3b7710['authoredAt']=_0x2398f3['createdAt'];switch(_0x2398f3['data']&&(_0x3b7710['data']=_0x2398f3['data']),_0x2398f3['attributes']&&(_0x3b7710['attributes']=_0x2398f3['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3b7710['_saved']=!0x0),this['_suggestionState']['get'](_0x3b7710)){case'notReady':this['_suggestionState']['set'](_0x3b7710,'dataReady');break;case'markerReady':_0x3b7710['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3b7710])),this['_refreshSuggestionsChain'](new Set([_0x3b7710])),this['_suggestionState']['set'](_0x3b7710,'ready'),this['fire']('suggestionLoaded',_0x3b7710)):this['_suggestionState']['set'](_0x3b7710,'removed');}return _0x3b7710;}['acceptSuggestion'](_0x5cbdc6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2122d7 of _0x5cbdc6['getAllAdjacentSuggestions']())_0x2122d7['accept']();});});}['discardSuggestion'](_0x27bfcd){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1914e2 of _0x27bfcd['getAllAdjacentSuggestions']())_0x1914e2['discard']();});});}['enableCommand'](_0x18fc86,_0x2f9fe9){const _0x5ea21a=this['editor']['commands']['get'](_0x18fc86);if(!_0x5ea21a)throw new _0x36031a('track-changes-command-not-found',this,{'commandName':_0x18fc86});if(this['_enabledCommands']['has'](_0x5ea21a))throw new _0x36031a('track-changes-enable-command-twice',this,{'commandName':_0x18fc86});this['_enabledCommands']['add'](_0x5ea21a),_0x2f9fe9&&_0x5ea21a['on']('execute',(_0x49299f,_0x220e78)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x220e78['length']>0x0&&_0x220e78[_0x220e78['length']-0x1]&&_0x220e78[_0x220e78['length']-0x1]['forceDefaultExecution']?_0x220e78['pop']():(_0x49299f['return']=_0x2f9fe9((..._0x10b149)=>_0x5ea21a['execute'](..._0x10b149,{'forceDefaultExecution':!0x0}),..._0x220e78),_0x49299f['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x56d211){let _0x5be5ff,_0xd3f6e0;const _0x3b7f46=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5be5ff=_0x56d211();}catch(_0xc6672e){_0xd3f6e0=_0xc6672e;}return _0x3b7f46||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xd3f6e0&&_0x36031a['rethrowUnexpectedError'](_0xd3f6e0,this),_0x5be5ff;}['markInsertion'](_0x4ef85d,_0x57552a=null,_0x25aff2={}){if(_0x4ef85d['isCollapsed'])return null;const _0x13d540=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x48f590,meta:_0x3a4d74}of this['_findSuggestions'](_0x4ef85d,'insertion'))if(_0x3a4d74['isOwn']){if(!_0x3a4d74['isNextTo']){if(_0x3a4d74['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x48f590,_0x25aff2))continue;return _0x48f590;}if(qt(_0x48f590,_0x25aff2))return _0x48f590;this['_breakSuggestionMarker'](_0x48f590,_0x4ef85d['start'],_0x4ef85d['end']);break;}if(_0x57552a==_0x48f590['subType']&&qt(_0x48f590,_0x25aff2)){const _0x19744e=_0x48f590['getFirstRange']();return _0x19744e['start']['isEqual'](_0x4ef85d['end'])?this['_setSuggestionRange'](_0x48f590,this['_model']['createRange'](_0x4ef85d['start'],_0x19744e['end'])):this['_setSuggestionRange'](_0x48f590,this['_model']['createRange'](_0x19744e['start'],_0x4ef85d['end'])),_0x48f590;}}const _0x433e8e=_0x5042b(),_0x558230=_0x13d540['id'],_0x119118=_0x57552a?'insertion:'+_0x57552a:'insertion',_0x37d9ca=this['_setSuggestionData']({'id':_0x433e8e,'type':_0x119118,'createdAt':new Date(),'authorId':_0x558230,'attributes':_0x25aff2});return this['_addSuggestionMarker'](_0x119118,_0x433e8e,_0x558230,_0x4ef85d),_0x37d9ca;}['markMultiRangeInsertion'](_0x4e6759,_0x14679c='multi',_0x5d54f4={}){const _0x6e552c=this['editor']['plugins']['get']('Users')['me'],_0x23316a=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x14679c,'join');for(const _0x22956b of this['getSuggestions']())if(_0x22956b['author']['id']==_0x6e552c['id']&&'insertion'==_0x22956b['type']&&_0x22956b['subType']==_0x14679c&&qt(_0x22956b,_0x5d54f4)&&(_0x23316a(_0x22956b['getRanges'](),_0x4e6759)||_0x23316a(_0x4e6759,_0x22956b['getRanges']()))){for(const _0x3e43a9 of _0x4e6759)_0x22956b['addRange'](_0x3e43a9);return _0x22956b;}for(const {suggestion:_0x587215,meta:_0x5768d2}of this['_findSuggestions'](_0x4e6759,'insertion')){if(!_0x5768d2['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5768d2['containsRangeInObject'])continue;if(!qt(_0x587215,_0x5d54f4))continue;let _0x571922=!0x0;for(const _0x4e0948 of _0x587215['getRanges']())for(const _0x27b041 of _0x4e6759)if(!_0x4e0948['containsRange'](_0x27b041)){_0x571922=!0x1;break;}if(_0x571922)return _0x587215;}const _0x4f2f1=_0x5042b(),_0x2aaac4=_0x6e552c['id'],_0x4fc278='insertion:'+_0x14679c,_0x215fc8=this['_setSuggestionData']({'id':_0x4f2f1,'type':_0x4fc278,'createdAt':new Date(),'authorId':_0x2aaac4,'attributes':_0x5d54f4});for(const _0x20c46e of _0x4e6759)this['_addSuggestionMarker'](_0x4fc278,_0x4f2f1,_0x2aaac4,_0x20c46e,u['getMultiRangeId']());return _0x215fc8;}['markInlineFormat'](_0x542c80,_0x4989,_0x37b9e2=null,_0x41de5d={}){if(_0x37b9e2=_0x37b9e2||Gt(_0x4989),_0x542c80['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x31d328=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x37b9e2,'accept');return this['forceDefaultExecution'](()=>_0x31d328([_0x542c80],_0x4989,_0x41de5d)),null;}const _0xddafea=this['editor']['plugins']['get']('Users')['me'],_0x26c85a=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1a5bff,meta:_0x5acb40}of this['_findSuggestions'](_0x542c80,'insertion'))_0x5acb40['isOwn']&&!_0x5acb40['isInsideObject']&&_0x26c85a['push'](..._0x1a5bff['getRanges']());}const _0x5cf52d=function(_0xfa430d,_0x5094ac){const _0x1b904c=[];for(const _0x2adb62 of _0x5094ac){const _0x5e9778=_0xfa430d['getIntersection'](_0x2adb62);_0x5e9778&&_0x1b904c['push'](_0x5e9778);}return _0x1b904c;}(_0x542c80,_0x26c85a),_0x4bd817=function(_0x572f83,_0x51dd41){const _0xf22701=[_0x572f83];for(const _0x3a2abf of _0x51dd41){let _0x9e657b=0x0;for(;_0x9e657b<_0xf22701['length'];){const _0x7bd04f=_0xf22701[_0x9e657b]['getDifference'](_0x3a2abf);_0xf22701['splice'](_0x9e657b,0x1,..._0x7bd04f),_0x9e657b+=_0x7bd04f['length'];}}return _0xf22701;}(_0x542c80,_0x26c85a);_0x5cf52d['length']&&this['_model']['change'](()=>{for(const _0x1238f6 of _0x5cf52d){const _0x497b24=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x37b9e2,'accept');this['forceDefaultExecution'](()=>_0x497b24([_0x1238f6],_0x4989,_0x41de5d));}});for(const _0x33624e of _0x4bd817){let _0xbcfe95=null,_0x561f9a=_0x33624e['start'],_0x667d4c=_0x33624e['end'];for(const {suggestion:_0x2c23ad,meta:_0x35587a}of this['_findSuggestions'](_0x33624e,'formatInline')){if(!_0x35587a['isOwn'])continue;if(_0x2c23ad['subType']!=_0x37b9e2)continue;if(!qt(_0x2c23ad,_0x41de5d))continue;const _0x18ed44=_0x2c23ad['getFirstRange']();if(_0x18ed44['containsRange'](_0x33624e,!0x0))return null;_0x561f9a=_0x561f9a['isBefore'](_0x18ed44['start'])?_0x561f9a:_0x18ed44['start'],_0x667d4c=_0x667d4c['isAfter'](_0x18ed44['end'])?_0x667d4c:_0x18ed44['end'],_0xbcfe95?_0x18ed44['start']['isBefore'](_0xbcfe95['getFirstRange']()['start'])?(_0xbcfe95['removeMarkers'](),_0xbcfe95=_0x2c23ad):_0x2c23ad['removeMarkers']():_0xbcfe95=_0x2c23ad;}const _0x1f9224=this['_model']['createRange'](_0x561f9a,_0x667d4c);if(_0xbcfe95)this['_setSuggestionRange'](_0xbcfe95,_0x1f9224);else{const _0x2b6f59=_0x5042b(),_0x12dcfa=_0xddafea['id'];this['_setSuggestionData']({'id':_0x2b6f59,'type':'formatInline:'+_0x37b9e2,'data':_0x4989,'createdAt':new Date(),'authorId':_0x12dcfa,'attributes':_0x41de5d}),this['_addSuggestionMarker']('formatInline:'+_0x37b9e2,_0x2b6f59,_0x12dcfa,_0x1f9224);}}return null;}['markBlockFormat'](_0x4d3f3b,_0x45f82e,_0xa0f105=[],_0x10a6af=null,_0x156106={}){_0x45f82e['formatGroupId']||(_0x45f82e['formatGroupId']=_0x45f82e['commandName']),_0x45f82e['multipleBlocks']=_0x4d3f3b['is']('range'),_0x10a6af=_0x10a6af||Gt(_0x45f82e);const _0x42c059=_0xa0f105['map'](_0x80d9ae=>Lt(_0x80d9ae,this['_model'])),_0x17e42e=_0x4d3f3b['is']('range')?_0x4d3f3b:Lt(_0x4d3f3b,this['_model']);if('never'===this['_trackFormatChanges']){const _0x256aa1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x10a6af,'accept');return this['forceDefaultExecution'](()=>_0x256aa1([_0x17e42e],_0x45f82e,_0x156106)),null;}_0x42c059['push'](_0x17e42e);let _0x5f36d4=!0x0;for(const _0x3e321a of _0x42c059)if(!this['_rangeIsInLocalUserInsertion'](_0x3e321a)){_0x5f36d4=!0x1;break;}if(_0x5f36d4&&'always'!==this['_trackFormatChanges']){const _0x4b273d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x10a6af,'accept');return this['forceDefaultExecution'](()=>_0x4b273d([_0x17e42e],_0x45f82e,_0x156106)),null;}let _0x333001=null,_0x5ec54e=_0x17e42e['start'],_0x346c7d=_0x17e42e['end'];for(const {suggestion:_0x49dda2,meta:_0x105d2e}of this['_findSuggestions'](_0x17e42e,'formatBlock')){if(!_0x105d2e['isOwn'])continue;if(_0x105d2e['isNextTo']||_0x105d2e['containsRangeInObject']||_0x105d2e['isInsideObject'])continue;if(_0x49dda2['data']['formatGroupId']!=_0x45f82e['formatGroupId'])continue;if(!qt(_0x49dda2,_0x156106))continue;const _0x11433a=_0x49dda2['getFirstRange']();if(_0x49dda2['subType']==_0x10a6af){if(_0x11433a['containsRange'](_0x17e42e,!0x0))return null;_0x5ec54e=_0x5ec54e['isBefore'](_0x11433a['start'])?_0x5ec54e:_0x11433a['start'],_0x346c7d=_0x346c7d['isAfter'](_0x11433a['end'])?_0x346c7d:_0x11433a['end'],_0x333001?_0x11433a['start']['isBefore'](_0x333001['getFirstRange']()['start'])?(_0x333001['removeMarkers'](),_0x333001=_0x49dda2):_0x49dda2['removeMarkers']():_0x333001=_0x49dda2;}else{const _0x5336cc=_0x17e42e['getIntersection'](_0x11433a);this['_cutOutSuggestionMarker'](_0x49dda2,_0x5336cc);}}const _0x2c524f=this['editor']['plugins']['get']('Users')['me'],_0x165a9e=_0x5042b(),_0x3c82ee=_0x2c524f['id'];if(_0x333001)return this['_setSuggestionRange'](_0x333001,this['_model']['createRange'](_0x5ec54e,_0x346c7d)),_0x333001;{const _0x31fde1=this['_setSuggestionData']({'id':_0x165a9e,'type':'formatBlock:'+_0x10a6af,'data':_0x45f82e,'createdAt':new Date(),'authorId':_0x3c82ee,'attributes':_0x156106});return this['_addSuggestionMarker']('formatBlock:'+_0x10a6af,_0x165a9e,_0x3c82ee,this['_model']['createRange'](_0x5ec54e,_0x346c7d)),_0x31fde1;}}['markMultiRangeBlockFormat'](_0x4e3de7,_0x1bb028,_0x3b3ea9=[],_0x11c064=null,_0x5255fc={}){_0x1bb028['formatGroupId']||(_0x1bb028['formatGroupId']=_0x1bb028['commandName']);const _0x3eed62=_0x4e3de7[0x0];_0x1bb028['multipleBlocks']=_0x3eed62['is']('range'),_0x11c064=_0x11c064||Gt(_0x1bb028);const _0x29cd31=_0x3b3ea9['map'](_0x5c907f=>Lt(_0x5c907f,this['_model'])),_0x2bbd5e=_0x3eed62['is']('range')?_0x4e3de7:_0x4e3de7['map'](_0x14baa4=>Lt(_0x14baa4,this['_model']));if('never'===this['_trackFormatChanges']){const _0x12ef7f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11c064,'accept');return this['forceDefaultExecution'](()=>_0x12ef7f(_0x2bbd5e,_0x1bb028,_0x5255fc)),null;}_0x29cd31['push'](..._0x2bbd5e);let _0x2cca5d=!0x0;for(const _0x451fbc of _0x29cd31)if(!this['_rangeIsInLocalUserInsertion'](_0x451fbc)){_0x2cca5d=!0x1;break;}if(_0x2cca5d&&'always'!==this['_trackFormatChanges']){const _0x1ae6c1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11c064,'accept');return this['forceDefaultExecution'](()=>_0x1ae6c1(_0x2bbd5e,_0x1bb028,_0x5255fc)),null;}const _0x227a36=this['editor']['plugins']['get']('Users')['me'];for(const _0x49ed18 of this['getSuggestions']()){if(_0x49ed18['author']['id']!=_0x227a36['id'])continue;if('formatBlock'!=_0x49ed18['type']||_0x49ed18['data']['formatGroupId']!=_0x1bb028['formatGroupId'])continue;if(!qt(_0x49ed18,_0x5255fc))continue;const _0x3d3709=_0x49ed18['subType']==_0x11c064;for(let _0x254f4a=0x0;_0x254f4a<_0x2bbd5e['length'];_0x254f4a++){const _0x2a0323=_0x2bbd5e[_0x254f4a];for(const _0x18fbff of _0x49ed18['getMarkers']()){const _0x5b3869=_0x18fbff['getRange']();if(_0x2a0323['isEqual'](_0x5b3869)){_0x3d3709?(_0x2bbd5e['splice'](_0x254f4a,0x1),_0x254f4a--):_0x49ed18['removeMarker'](_0x18fbff['name']);break;}}}}if(0x0==_0x2bbd5e['length'])return null;const _0x34a2d0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11c064,'join');for(const _0x1307d0 of this['getSuggestions']())if(_0x1307d0['author']['id']==_0x227a36['id']&&'formatBlock'==_0x1307d0['type']&&_0x1307d0['data']['formatGroupId']==_0x1bb028['formatGroupId']&&_0x1307d0['subType']==_0x11c064&&qt(_0x1307d0,_0x5255fc)&&(_0x34a2d0(_0x1307d0['getRanges'](),_0x2bbd5e)||_0x34a2d0(_0x2bbd5e,_0x1307d0['getRanges']()))){for(const _0x1024cd of _0x2bbd5e)_0x1307d0['addRange'](_0x1024cd);return _0x1307d0;}const _0x5cac06=_0x5042b(),_0x4d2dc9=_0x227a36['id'],_0x1300fc='formatBlock:'+_0x11c064,_0x5ea1ed=this['_setSuggestionData']({'id':_0x5cac06,'type':_0x1300fc,'data':_0x1bb028,'createdAt':new Date(),'authorId':_0x4d2dc9,'attributes':_0x5255fc});for(const _0x166c74 of _0x2bbd5e)this['_addSuggestionMarker'](_0x1300fc,_0x5cac06,_0x4d2dc9,_0x166c74,u['getMultiRangeId']());return _0x5ea1ed;}['markDeletion'](_0x395f98,_0x251c91=null,_0x393562={}){if(_0x395f98['isCollapsed'])return null;const _0xcdfcb7=this['editor']['plugins']['get']('Users')['me'],_0x800199=new _0x5018e8(_0x395f98['start'],_0x395f98['end']);for(const {suggestion:_0x3e2200,meta:_0x316b58}of this['_findSuggestions'](_0x800199,'insertion'))if(_0x316b58['isOwn']&&!_0x316b58['isNextTo']){if(_0x3e2200['isMultiRange']){const _0x25aa63=_0x3e2200['getRanges']()['filter'](_0x4aa220=>'$graveyard'!=_0x4aa220['root']['rootName']);_0x25aa63['every'](_0x415e8d=>_0x800199['containsRange'](_0x415e8d,!0x0))&&_0x3e2200['discard']();if(_0x25aa63['some'](_0x3188db=>_0x3188db['containsRange'](_0x800199,!0x0))){const _0xf5efd5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x251c91,'accept');return this['forceDefaultExecution'](()=>_0xf5efd5([_0x800199],null,_0x393562)),null;}}else{const _0x1ec014=_0x800199['getIntersection'](_0x3e2200['getFirstRange']());null!==_0x1ec014&&_0x3e2200['_onDiscard']([_0x1ec014],null,_0x393562);}}if(_0x800199['detach'](),_0x800199['isCollapsed']||'$graveyard'==_0x800199['root']['rootName'])return null;let _0x4731d1=null,_0xc43785=_0x800199['start'],_0x43d0d8=_0x800199['end'];const _0x3ffa15=this['_findSuggestions'](_0x800199,'deletion');for(const {suggestion:_0x55f2a2,meta:_0x20e5e0}of _0x3ffa15){const _0x48ac68=this['_model']['createRange'](_0xc43785,_0x43d0d8);if(_0x20e5e0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x20e5e0['containsRangeInObject']&&!_0x20e5e0['isInsideObject'])){if(_0x55f2a2['isMultiRange']){if(!qt(_0x55f2a2,_0x393562))continue;let _0x371fa2=!0x0;for(const _0x2d0e87 of _0x55f2a2['getRanges']()){if(_0x2d0e87['containsRange'](_0x48ac68,!0x0))return _0x55f2a2;_0x48ac68['containsRange'](_0x2d0e87)||(_0x371fa2=!0x1);}_0x371fa2&&_0x55f2a2['discard']();}else{const _0x1be415=_0x55f2a2['getFirstRange']();if(_0x1be415['containsRange'](_0x48ac68,!0x0))return _0x55f2a2;if(!qt(_0x55f2a2,_0x393562)){_0x48ac68['containsRange'](_0x1be415)?_0x55f2a2['removeMarkers']():_0x1be415['containsPosition'](_0xc43785)?_0xc43785=_0x1be415['end']:_0x1be415['containsPosition'](_0x43d0d8)&&(_0x43d0d8=_0x1be415['start']);continue;}_0xc43785=_0xc43785['isBefore'](_0x1be415['start'])?_0xc43785:_0x1be415['start'],_0x43d0d8=_0x43d0d8['isAfter'](_0x1be415['end'])?_0x43d0d8:_0x1be415['end'],_0x393562=Object['assign']({},_0x55f2a2['attributes']),_0x4731d1?_0x1be415['start']['isBefore'](_0x4731d1['getFirstRange']()['start'])?(_0x4731d1['removeMarkers'](),_0x4731d1=_0x55f2a2):_0x55f2a2['removeMarkers']():_0x4731d1=_0x55f2a2;}}}if(_0x4731d1)return this['_setSuggestionRange'](_0x4731d1,this['_model']['createRange'](_0xc43785,_0x43d0d8)),_0x4731d1;{const _0x42c819=_0x5042b(),_0x3a5e54=this['_model']['createRange'](_0xc43785,_0x43d0d8),_0x4ca17f=_0xcdfcb7['id'],_0x3bf807=_0x251c91?'deletion:'+_0x251c91:'deletion',_0x1c4ee6=this['_setSuggestionData']({'id':_0x42c819,'type':_0x3bf807,'createdAt':new Date(),'authorId':_0x4ca17f,'attributes':_0x393562});return this['_addSuggestionMarker'](_0x3bf807,_0x42c819,_0x4ca17f,_0x3a5e54),_0x1c4ee6;}}['markMultiRangeDeletion'](_0x530cd2,_0x15f4fd='multi',_0x4de30b={}){const _0x69c918=this['editor']['plugins']['get']('Users')['me'],_0x48055e=_0x530cd2['map'](_0x1fcb54=>new _0x5018e8(_0x1fcb54['start'],_0x1fcb54['end'])),_0x15d809=new Set();for(const {suggestion:_0x1fbc79,meta:_0x184108}of this['_findSuggestions'](_0x48055e,'insertion'))_0x184108['isOwn']&&!_0x184108['isNextTo']&&_0x15d809['add'](_0x1fbc79);for(const _0x116ec4 of _0x15d809)if(_0x116ec4['isMultiRange']){const _0x1c5ab5=_0x116ec4['getRanges']();(!_0x116ec4['attributes']||!_0x116ec4['attributes']['skipNestingCheck'])&&(_0x1c5ab5['every'](_0x5dfbd8=>_0x48055e['some'](_0x5dbf03=>_0x5dbf03['containsRange'](_0x5dfbd8,!0x0)))&&_0x116ec4['discard']());if(_0x48055e['every'](_0x1fa3c7=>_0x1c5ab5['some'](_0xfd4906=>_0xfd4906['containsRange'](_0x1fa3c7,!0x0)))){const _0x263d91=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x15f4fd,'accept');return this['forceDefaultExecution'](()=>_0x263d91(_0x530cd2,null,_0x4de30b)),null;}}else{const _0x409915=_0x116ec4['getFirstRange']();_0x48055e['some'](_0x2f51bf=>_0x2f51bf['containsRange'](_0x409915,!0x0))&&_0x116ec4['discard']();if(_0x48055e['every'](_0x22d7f0=>_0x409915['containsRange'](_0x22d7f0,!0x0))){const _0x120977=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x15f4fd,'accept');return this['forceDefaultExecution'](()=>_0x120977(_0x48055e,null,_0x4de30b)),null;}}const _0x2a8340=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x15f4fd,'join');let _0xcf7650=null;for(const _0x54dfe3 of this['getSuggestions']())if(_0x54dfe3['author']['id']==_0x69c918['id']&&_0x54dfe3['isInContent']&&'deletion'==_0x54dfe3['type']&&_0x54dfe3['subType']==_0x15f4fd&&qt(_0x54dfe3,_0x4de30b)&&(_0x2a8340(_0x54dfe3['getRanges'](),_0x48055e)||_0x2a8340(_0x48055e,_0x54dfe3['getRanges']()))){if(_0xcf7650){if(_0x54dfe3['commentThread']&&_0x54dfe3['commentThread']['length'])continue;for(const _0x1aacd9 of _0x54dfe3['getRanges']())_0xcf7650['isIntersectingWithRange'](_0x1aacd9)||_0xcf7650['addRange'](_0x1aacd9);_0x54dfe3['removeMarkers']();}else{_0xcf7650=_0x54dfe3;for(const _0x5db53a of _0x48055e)_0x54dfe3['isIntersectingWithRange'](_0x5db53a)||_0x54dfe3['addRange'](_0x5db53a);}}if(_0xcf7650)return _0xcf7650;_0x15d809['clear']();for(const {suggestion:_0xfb9615,meta:_0x9269fb}of this['_findSuggestions'](_0x48055e,'deletion'))_0x9269fb['isOwn']&&(this['_mergeNestedSuggestions']||!_0x9269fb['containsRangeInObject']&&!_0x9269fb['isInsideObject'])&&qt(_0xfb9615,_0x4de30b)&&_0x15d809['add'](_0xfb9615);for(const _0x21b924 of _0x15d809){const _0x9041bb=_0x21b924['getRanges']();if(!_0x4de30b||!_0x4de30b['skipNestingCheck']){if(_0x48055e['every'](_0x1e0538=>_0x9041bb['some'](_0x3f26a4=>_0x3f26a4['containsRange'](_0x1e0538,!0x0))))return _0x21b924;}(!_0x21b924['attributes']||!_0x21b924['attributes']['skipNestingCheck'])&&(_0x9041bb['every'](_0x4013aa=>_0x48055e['some'](_0x5c73fd=>_0x5c73fd['containsRange'](_0x4013aa,!0x0)))&&_0x21b924['discard']());}const _0x33b506=_0x5042b(),_0x9eccd6=_0x69c918['id'],_0x1edac='deletion:'+_0x15f4fd,_0x23cf42=this['_setSuggestionData']({'id':_0x33b506,'type':_0x1edac,'createdAt':new Date(),'authorId':_0x9eccd6,'attributes':_0x4de30b});for(const _0x3d720b of _0x48055e)_0x3d720b['detach'](),_0x3d720b['isCollapsed']||'$graveyard'==_0x3d720b['root']['rootName']||this['_addSuggestionMarker'](_0x1edac,_0x33b506,_0x9eccd6,_0x3d720b,u['getMultiRangeId']());return _0x23cf42;}['markAttributeChange'](_0x4c0c95,_0x50b4d8,_0x2d6196,_0x145023,_0x459bac){if(_0x4c0c95['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1ffa44=this['editor']['plugins']['get']('Users')['me']['id'],_0x29cda1=Array['from'](this['_suggestions']['values']())['filter'](_0x962b10=>'attribute'==_0x962b10['type']&&_0x962b10['data']['key']==_0x50b4d8&&_0x962b10['isIntersectingWithRange'](_0x4c0c95));if('default'===this['_trackFormatChanges']){const _0xa95900=this['_findSuggestions'](_0x4c0c95,'insertion')['filter'](({meta:_0x5db404})=>_0x5db404['isOwn']&&!_0x5db404['isInsideObject']&&!_0x5db404['isNextTo'])['map'](({suggestion:_0x812941})=>_0x812941);_0x29cda1['unshift'](..._0xa95900);}const _0x2ffe08=new Map([[_0x4c0c95,_0x2d6196]]);for(const _0x223f77 of _0x29cda1){const _0x1f2550='attribute'==_0x223f77['type']?_0x223f77['data']['oldValue']:void 0x0,_0x2f5528=_0x223f77['getFirstRange'](),_0x3dcbdd=Array['from'](_0x2ffe08['keys']())['find'](_0x521bfe=>_0x521bfe['isIntersecting'](_0x2f5528));if(!_0x3dcbdd)continue;const _0x1c4a5a=_0x3dcbdd['getDifference'](_0x2f5528);this['_isBlockAttribute'](_0x50b4d8)&&'insertion'==_0x223f77['type']&&0x0!=_0x1c4a5a['length']||(_0x2ffe08['delete'](_0x3dcbdd),_0x1c4a5a['forEach'](_0x44098a=>{_0x2ffe08['set'](_0x44098a,_0x2d6196);}),'insertion'!=_0x223f77['type']&&_0x1f2550!=_0x145023&&_0x2ffe08['set'](_0x3dcbdd['getIntersection'](_0x2f5528),_0x1f2550));}const _0x68c6d0=[];for(const [_0x17080e,_0x1458f4]of _0x2ffe08){const _0x49b081=_0x5042b(),_0x5580a7={'key':_0x50b4d8,'oldValue':_0x1458f4,'newValue':_0x145023};_0x50b4d8['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':_0x50b4d8});const _0x64f5ea=('attribute:'+(_0x50b4d8+'|'+Gt({'newValue':_0x145023})))['substring'](0x0,0x3c),_0x5c9f66=this['_setSuggestionData']({'id':_0x49b081,'type':_0x64f5ea,'data':_0x5580a7,'createdAt':new Date(),'authorId':_0x1ffa44,'attributes':_0x459bac});_0x68c6d0['push'](_0x5c9f66),this['_addSuggestionMarker'](_0x64f5ea,_0x49b081,_0x1ffa44,_0x17080e);}return _0x68c6d0;}['enableDefaultAttributesIntegration'](_0x276200){this['enableCommand'](_0x276200,(_0x16bdfd,..._0x2ba3d1)=>{this['_recordAttributeChanges'](()=>{_0x16bdfd(..._0x2ba3d1);});});}['registerBlockAttribute'](_0x2ccfe8){this['_blockAttributeKeys']['add'](_0x2ccfe8);}['registerInlineAttribute'](_0x324e6b){this['_inlineAttributeKeys']['add'](_0x324e6b);}['_getAttributeKey'](_0x105296){return'attribute'==_0x105296['type']?_0x105296['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5d090f,_0x45fafb){const _0x18664f=_0x5d090f['getFirstMarker']();this['_model']['change'](_0x327b4e=>{_0x327b4e['updateMarker'](_0x18664f,{'range':_0x45fafb});});}['_addThreadToSuggestion'](_0x3b7446){const _0x268ea5=_0x3b7446['id'],_0x9f507c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x268ea5)||this['_commentsRepository']['addCommentThread']({'channelId':_0x9f507c,'threadId':_0x268ea5,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x18b711=this['_commentsRepository']['getCommentThread'](_0x268ea5);_0x18b711['unbind']('isRemovable'),_0x18b711['isRemovable']=!0x1,_0x3b7446['commentThread']=_0x18b711;}['_checkSuggestionCorrectness'](_0x37bb75,_0x50c512,_0x42602d,_0x317b25){if(_0x37bb75['type']!=_0x50c512||_0x37bb75['subType']!=_0x42602d||_0x37bb75['creator']['id']!=_0x317b25)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x36031a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x33f522,_0x4b1a64){const _0x3e123a=_0x33f522['getFirstRange']();if(_0x4b1a64['isEqual'](_0x3e123a))_0x33f522['removeMarkers']();else{if(_0x3e123a['containsRange'](_0x4b1a64)){const _0x274045=this['_model']['createPositionAt'](_0x4b1a64['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x33f522,this['_model']['createRange'](_0x3e123a['start'],_0x274045));const _0x2202d1=_0x5042b(),_0x3a7b98=_0x33f522['creator']['id'],_0x274071=_0x33f522['type']+':'+_0x33f522['subType'];this['_setSuggestionData']({'id':_0x2202d1,'type':_0x274071,'createdAt':new Date(),'authorId':_0x3a7b98,'data':_0x33f522['data'],'attributes':_0x33f522['attributes']});const _0x1edaa2=this['_model']['createPositionAt'](_0x4b1a64['end']['parent'],'after'),_0x5aeb36=this['_model']['createRange'](_0x1edaa2,_0x3e123a['end']);this['_addSuggestionMarker'](_0x274071,_0x2202d1,_0x3a7b98,_0x5aeb36);}else{if(_0x3e123a['containsPosition'](_0x4b1a64['start'])){const _0x6a8b53=this['_model']['createPositionAt'](_0x4b1a64['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x33f522,this['_model']['createRange'](_0x3e123a['start'],_0x6a8b53));}else{const _0x112fcb=this['_model']['createPositionAt'](_0x4b1a64['end']['parent'],'after');this['_setSuggestionRange'](_0x33f522,this['_model']['createRange'](_0x112fcb,_0x3e123a['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1570b8){for(const {suggestion:_0x467332,meta:_0x53eea9}of this['_findSuggestions'](_0x1570b8,'insertion')){if(!_0x53eea9['isOwn'])continue;const _0x1bbe84=_0x467332['getRanges']();for(const _0x2b98a0 of _0x1bbe84)if(!_0x1570b8['getDifference'](_0x2b98a0)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x295e8d){const _0x231f39=this['editor']['plugins']['get']('Users')['getUser'](_0x295e8d);if(!_0x231f39)throw new _0x36031a('track-changes-user-not-found',this);return _0x231f39;}['_getExternalAuthor'](_0x1e4954){const _0x4631d0=this['editor']['plugins']['get']('Users'),_0x375136=_0x3d1af3('external:'+_0x1e4954),_0x340526=_0x4631d0['getUser'](_0x375136);return _0x340526||_0x4631d0['addUser']({'id':_0x375136,'name':_0x1e4954});}['_createSuggestion'](_0x599059,_0x491ad1,_0x86d743,_0x483290,_0x4ac091){const _0x389899=this['_getAuthorFromId'](_0x483290),_0xc1c55d=this['_suggestionFactory']['buildSuggestion'](_0x599059,_0x491ad1,_0x86d743,_0x389899,_0x4ac091,_0x792abe=>{this['_updateSuggestionData'](_0x86d743,{'attributes':_0x792abe});const _0x2b5afc=this['getSuggestion'](_0x86d743);this['_joinWithAdjacentSuggestions'](new Set([_0x2b5afc])),this['_refreshSuggestionsChain'](new Set([_0x2b5afc]));});return this['listenTo'](_0xc1c55d,'accept',()=>{this['_updateSuggestionData'](_0x86d743,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xc1c55d,'discard',()=>{this['_updateSuggestionData'](_0x86d743,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x86d743,_0xc1c55d),this['_suggestionState']['set'](_0xc1c55d,'notReady'),_0xc1c55d;}['_splitMarkerName'](_0x3236d1){const _0x53afe3=_0x3236d1['split'](':');return{'group':_0x53afe3[0x0],'type':_0x53afe3[0x1],'subType':_0x53afe3['length']>=0x5?_0x53afe3[0x2]:null,'id':_0x53afe3['length']<0x5?_0x53afe3[0x2]:_0x53afe3[0x3],'authorId':_0x53afe3['length']<0x5?_0x53afe3[0x3]:_0x53afe3[0x4],'markerCount':0x6==_0x53afe3['length']?_0x53afe3[0x5]:null};}['_breakSuggestionMarker'](_0x5e7612,_0x3a161a,_0x5aef91){const _0x5852a8=_0x5e7612['getFirstRange'](),_0x166db9=_0x5852a8['start'],_0x11e5ea=_0x5852a8['end'];this['_setSuggestionRange'](_0x5e7612,this['_model']['createRange'](_0x166db9,_0x3a161a));const _0x10faa2=_0x5042b(),_0x594481=_0x5e7612['creator']['id'],_0x23ca17=_0x5e7612['type']+(_0x5e7612['subType']?':'+_0x5e7612['subType']:'');this['_setSuggestionData']({'id':_0x10faa2,'type':_0x23ca17,'createdAt':new Date(),'authorId':_0x594481,'originalSuggestionId':_0x5e7612['id'],'attributes':_0x5e7612['attributes'],'data':_0x5e7612['data']});const _0x587754=this['_getAttributeKey'](_0x5e7612);('formatBlock'==_0x5e7612['type']||_0x587754&&this['_isBlockAttribute'](_0x587754))&&(_0x5aef91=this['_model']['createPositionBefore'](_0x5aef91['parent'])),this['_addSuggestionMarker'](_0x23ca17,_0x10faa2,_0x594481,this['_model']['createRange'](_0x5aef91,_0x11e5ea));}['_findSuggestions'](_0x227383,_0x4eb599=null){const _0x44ca9b=[],_0x494088=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x227383)||(_0x227383=[_0x227383]);for(const _0x2bf60f of this['getSuggestions']()){if(!_0x2bf60f['isInContent'])continue;if(_0x4eb599&&_0x2bf60f['type']!=_0x4eb599)continue;let _0x9bf9e1=!0x1;for(const _0x9936f5 of _0x2bf60f['getRanges']()){for(const _0x414555 of _0x227383){const _0x3825d5=_0x414555['start']['isEqual'](_0x9936f5['end'])||_0x414555['end']['isEqual'](_0x9936f5['start']);if(_0x3825d5||_0x414555['getIntersection'](_0x9936f5)){const _0x54795c=_0x414555['containsRange'](_0x9936f5)&&Ot(this['_model']['schema'],_0x9936f5['start'],_0x414555),_0x436a9b=_0x9936f5['containsRange'](_0x414555)&&Ot(this['_model']['schema'],_0x414555['start'],_0x9936f5);_0x44ca9b['push']({'suggestion':_0x2bf60f,'meta':{'isOwn':_0x494088==_0x2bf60f['author'],'isNextTo':_0x3825d5,'isInsideObject':_0x54795c,'containsRangeInObject':_0x436a9b}}),_0x9bf9e1=!0x0;break;}}if(_0x9bf9e1)break;}}return _0x44ca9b;}['_addSuggestionMarker'](_0x579791,_0xa5b65a,_0x45d421,_0x2ece67,_0x2f26d1){this['_model']['change'](_0x5430de=>{let _0x494a9c='suggestion:'+_0x579791+':'+_0xa5b65a+':'+_0x45d421;_0x2f26d1&&(_0x494a9c=_0x494a9c+':'+_0x2f26d1),_0x5430de['addMarker'](_0x494a9c,{'range':_0x2ece67,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x499817){const _0x227c5a=_0x499817['previous'],_0x5845d1=_0x499817['next'];_0x499817['previous']=null,_0x499817['next']=null,null!=_0x227c5a&&_0x227c5a['next']==_0x499817&&(_0x227c5a['next']=_0x5845d1),null!=_0x5845d1&&_0x5845d1['previous']==_0x499817&&(_0x5845d1['previous']=_0x227c5a),'ready'==this['_suggestionState']['get'](_0x499817)&&(this['_suggestionState']['set'](_0x499817,'removed'),this['fire']('suggestionUnloaded',_0x499817,_0x227c5a,_0x5845d1));}['_setSuggestionData'](_0x473b8f){const _0x315e9f=_0x473b8f['id'],_0x2d1397=this['addSuggestionData'](_0x473b8f);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x52ba70=this['editor']['plugins']['get']('PendingActions'),_0x5cdc2d=_0x2d1397['hasComments'],_0x3d97cd=_0x2d1397['subType']?_0x2d1397['type']+':'+_0x2d1397['subType']:_0x2d1397['type'],_0x1fd67e=this['editor']['locale'],_0x5cc537=_0x52ba70['add'](o(_0x1fd67e,'PENDING_ACTION_SUGGESTION')),_0x2a7015={'id':_0x315e9f,'type':_0x3d97cd,'hasComments':_0x5cdc2d,'data':_0x473b8f['data']||null,'originalSuggestionId':_0x473b8f['originalSuggestionId']||null,'attributes':_0x2d1397['attributes']};this['_adapter']['addSuggestion'](_0x2a7015)['then'](_0x1cd0c2=>{_0x2d1397['_saved']=!0x0,_0x52ba70['remove'](_0x5cc537),_0x1cd0c2&&_0x1cd0c2['createdAt']&&(this['_suggestions']['get'](_0x315e9f)['createdAt']=_0x1cd0c2['createdAt']);})['catch'](_0xd5ac6e=>{throw _0x4ead58('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2d1397['discard']();}),_0x2d1397['stopListening'](),this['_suggestions']['delete'](_0x2d1397['id']),this['_suggestionState']['delete'](_0x2d1397),_0xd5ac6e;});}return _0x2d1397;}['_isBlockAttribute'](_0x475024){return this['_blockAttributeKeys']['has'](_0x475024);}['_updateSuggestionData'](_0x2c308e,_0x5bf044){const _0x1989cd=this['editor']['plugins']['get']('PendingActions'),_0x5a470f=this['getSuggestion'](_0x2c308e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5a470f['_saved']){const _0xf8e612=_0x1989cd['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2c308e,_0x5bf044)['then'](()=>{_0x1989cd['remove'](_0xf8e612);});}else _0x5a470f['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2c308e,_0x5bf044);});}}['_getSuggestionData'](_0x3e1974){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x36031a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3e1974);}['_handleNewSuggestionMarker'](_0x1d6b37){const {id:_0x1adc69,type:_0x377d83,subType:_0x44cb92,authorId:_0x1ce798}=this['_splitMarkerName'](_0x1d6b37),_0x302a07=this['_suggestions']['get'](_0x1adc69)||this['_createSuggestion'](_0x377d83,_0x44cb92,_0x1adc69,_0x1ce798,{});switch(this['_checkSuggestionCorrectness'](_0x302a07,_0x377d83,_0x44cb92,_0x1ce798),this['_suggestionState']['get'](_0x302a07)){case'notReady':this['_getSuggestionData'](_0x1adc69)['then'](_0x5d011a=>{let _0x5a9e67=Promise['resolve']();_0x5d011a['hasComments']&&(_0x5a9e67=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1adc69})),_0x5a9e67['then'](()=>{this['addSuggestionData'](_0x5d011a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x302a07,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1adc69,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x302a07,'ready'),this['fire']('suggestionLoaded',_0x302a07);break;case'ready':this['fire']('suggestionChanged',_0x302a07);}return _0x302a07['addMarkerName'](_0x1d6b37),_0x302a07;}['_refreshSuggestionsChain'](_0x5bbc0f){const _0x548cc4=Array['from'](_0x5bbc0f),_0x4119c8=_0x548cc4['filter'](_0x69e676=>'attribute'==_0x69e676['type']);this['_refreshAttributeSuggestionsChain'](_0x4119c8);const _0xecc07f=_0x548cc4['filter'](_0x59d917=>!_0x59d917['isMultiRange']&&'attribute'!=_0x59d917['type']),_0x3a0357=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x55b386=>!_0x55b386['isMultiRange']&&'attribute'!=_0x55b386['type']),_0x16fc8a=_0x3a0357['filter'](_0x594726=>!_0x5bbc0f['has'](_0x594726)),_0x597eac=new Map(_0x3a0357['map'](_0x4cfaaa=>[_0x4cfaaa,this['_suggestionFactory']['getSuggestionCallback'](_0x4cfaaa['type'],_0x4cfaaa['subType'],'chain')])),_0x28166c=new Map(_0x3a0357['map'](_0x42c373=>[_0x42c373,_0x42c373['getFirstRange']()])),_0x4a5b91=new Set(),_0x42c6d3=new Set();for(let _0x2f4422=0x0;_0x2f4422<_0xecc07f['length'];_0x2f4422++)_0x439ff8(_0xecc07f[_0x2f4422],_0xecc07f,_0x2f4422+0x1);for(let _0x586c96=0x0;_0x586c96<_0xecc07f['length'];_0x586c96++)_0x439ff8(_0xecc07f[_0x586c96],_0x16fc8a,0x0);const _0x41d021=new Set();for(let _0x35cc73=0x0;_0x35cc73<_0xecc07f['length'];_0x35cc73++){const _0x127656=_0xecc07f[_0x35cc73];!_0x42c6d3['has'](_0x127656)&&_0x127656['previous']&&(_0x41d021['add'](_0x127656['previous']),_0x127656['previous']['next']===_0x127656&&(_0x127656['previous']['next']=null),_0x127656['previous']=null),!_0x4a5b91['has'](_0x127656)&&_0x127656['next']&&(_0x41d021['add'](_0x127656['next']),_0x127656['next']['previous']===_0x127656&&(_0x127656['next']['previous']=null),_0x127656['next']=null);}function _0x439ff8(_0x5193bf,_0x996622,_0x20c1d5){for(let _0x5590b4=_0x20c1d5;_0x5590b4<_0x996622['length'];_0x5590b4++){const _0x400be2=_0x2e371e(_0x5193bf,_0x996622[_0x5590b4]);_0x400be2&&(_0x400be2[0x0]['next']=_0x400be2[0x1],_0x400be2[0x1]['previous']=_0x400be2[0x0],_0x4a5b91['add'](_0x400be2[0x0]),_0x42c6d3['add'](_0x400be2[0x1]));}}function _0x2e371e(_0x1ef56f,_0x12fbcc){if(_0x1ef56f['author']['id']!==_0x12fbcc['author']['id'])return null;const _0x24c761=_0x597eac['get'](_0x1ef56f)(_0x1ef56f,_0x12fbcc,_0x28166c['get'](_0x1ef56f),_0x28166c['get'](_0x12fbcc));if(!_0x24c761)return null;return _0x597eac['get'](_0x12fbcc)(_0x1ef56f,_0x12fbcc,_0x28166c['get'](_0x1ef56f),_0x28166c['get'](_0x12fbcc))?_0x24c761[0x1]['commentThread']&&_0x24c761[0x1]['commentThread']['length']?null:_0x24c761:null;}_0x41d021['size']&&this['_refreshSuggestionsChain'](_0x41d021);}['_refreshAttributeSuggestionsChain'](_0x292350){if(0x0==_0x292350['length'])return;const _0x12fb1d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5dfc88=>'attribute'==_0x5dfc88['type']&&_0x5dfc88['_isDataLoaded']),_0x30ab02=[],_0x502603=new Map();for(const _0x30641c of _0x12fb1d){const _0x34914d=_0x3d1af3(_0x30641c['attributes']);_0x502603['has'](_0x34914d)||(_0x502603['set'](_0x34914d,_0x30ab02['length']),_0x30ab02['push']([]));const _0x32ee5b=_0x502603['get'](_0x34914d);_0x30ab02[_0x32ee5b]['push'](_0x30641c);}!(function(){_0x30ab02['sort']((_0x266acc,_0x5a9a2b)=>{const _0x311f28=_0x266acc[0x0]['createdAt'],_0x115176=_0x5a9a2b[0x0]['createdAt'];return _0x311f28==_0x115176?_0x266acc[0x0]['attributes']['groupId']<_0x5a9a2b[0x0]['attributes']['groupId']?-0x1:0x1:_0x311f28<_0x115176?-0x1:0x1;});for(const _0x417873 of _0x30ab02)_0x417873['sort']((_0x2d2adc,_0x57f507)=>_0x2d2adc['id']<_0x57f507['id']?-0x1:0x1);}());for(let _0x16bc61=0x0;_0x16bc61<_0x30ab02['length'];_0x16bc61++){if(0x0==_0x30ab02[_0x16bc61]['length'])continue;const _0x32dae2=[];for(let _0x1d813b=_0x16bc61+0x1;_0x1d813b<_0x30ab02['length'];_0x1d813b++)0x0!=_0x30ab02[_0x1d813b]['length']&&_0x12b555(_0x30ab02[_0x16bc61],_0x30ab02[_0x1d813b])&&_0x32dae2['push'](_0x1d813b);for(const _0x3bc945 of _0x32dae2)_0x30ab02[_0x16bc61]=_0x30ab02[_0x16bc61]['concat'](_0x30ab02[_0x3bc945]),_0x30ab02[_0x3bc945]=[];}for(const _0x2f4d35 of _0x30ab02)for(let _0x19ca47=0x0;_0x19ca47<_0x2f4d35['length'];_0x19ca47++){const _0x38dee0=_0x2f4d35[_0x19ca47+0x1]||null;_0x2f4d35[_0x19ca47]['next']!==_0x38dee0&&(_0x2f4d35[_0x19ca47]['next']=_0x38dee0);}for(const _0x17626b of _0x30ab02)for(let _0x414ebb=0x0;_0x414ebb<_0x17626b['length'];_0x414ebb++){const _0x117ba2=_0x17626b[_0x414ebb-0x1]||null;_0x17626b[_0x414ebb]['previous']!==_0x117ba2&&(_0x17626b[_0x414ebb]['previous']=_0x117ba2);}function _0x12b555(_0xec6dd2,_0x1ea709){if(_0xec6dd2[0x0]['attributes']['groupId']!==_0x1ea709[0x0]['attributes']['groupId']&&_0xec6dd2[0x0]['author']!==_0x1ea709[0x0]['author'])return!0x1;if(!function(_0x2801fc,_0x1d564c){if(!_0x2801fc['hasComments']&&!_0x1d564c['hasComments'])return!0x0;if(_0x2801fc['hasComments']&&_0x1d564c['hasComments'])return!0x1;if(_0x2801fc['hasComments']&&_0x1d564c['createdAt']<_0x2801fc['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1d564c['hasComments']&&_0x2801fc['createdAt']<_0x1d564c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xec6dd2[0x0],_0x1ea709[0x0]))return!0x1;const _0x3dffa2=Tt(_0xec6dd2[0x0]['attributes'],'groupId'),_0x1dcbe4=Tt(_0x1ea709[0x0]['attributes'],'groupId');if(!_0x8956aa(_0x3dffa2,_0x1dcbe4))return!0x1;return!!_0xec6dd2['every'](_0x44720c=>_0x1ea709['some'](_0x1054be=>_0x44720c['getFirstRange']()['isEqual'](_0x1054be['getFirstRange']())))&&_0x1ea709['every'](_0x25e69a=>_0xec6dd2['some'](_0x5cbd2a=>_0x25e69a['getFirstRange']()['isEqual'](_0x5cbd2a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x54b4c6){const _0x5d4e01=Array['from'](_0x54b4c6),_0x19a202=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2d6805=_0x19a202['filter'](_0x378432=>!_0x54b4c6['has'](_0x378432)),_0x178436=new Map(_0x5d4e01['map'](_0x361587=>[_0x361587,this['_suggestionFactory']['getSuggestionCallback'](_0x361587['type'],_0x361587['subType'],'join')])),_0x5128c7=new Map(_0x19a202['map'](_0x2acc85=>[_0x2acc85,_0x2acc85['getRanges']()]));for(let _0x1f73ff=0x0;_0x1f73ff<_0x5d4e01['length'];_0x1f73ff++){if(_0x2dfdd5(this,_0x5d4e01[_0x1f73ff],_0x5d4e01,_0x1f73ff+0x1))return!0x0;}for(let _0x65dbbc=0x0;_0x65dbbc<_0x5d4e01['length'];_0x65dbbc++){if(_0x2dfdd5(this,_0x5d4e01[_0x65dbbc],_0x2d6805,0x0))return!0x0;}return!0x1;function _0x2dfdd5(_0x3aa02a,_0x319bb5,_0x1424d2,_0x4c10e1){for(let _0x43ef07=_0x4c10e1;_0x43ef07<_0x1424d2['length'];_0x43ef07++){const _0x283840=_0x1424d2[_0x43ef07];if(_0x283840['type']!==_0x319bb5['type']||_0x283840['author']['id']!==_0x319bb5['author']['id']||_0x283840['subType']!==_0x319bb5['subType'])continue;if(!Jt(_0x319bb5,_0x283840))continue;if('attribute'==_0x319bb5['type']&&_0x319bb5['data']['oldValue']!=_0x283840['data']['oldValue'])continue;if('attribute'==_0x319bb5['type']&&_0x3aa02a['_isBlockAttribute'](_0x319bb5['data']['key']))continue;if('formatBlock'==_0x319bb5['type']){const _0x100d3b=_0x3aa02a['editor']['model'],_0x8e30e0=_0x319bb5['getContainedElement']();if(_0x8e30e0&&(_0x100d3b['schema']['isObject'](_0x8e30e0)||_0x100d3b['schema']['isLimit'](_0x8e30e0)))continue;}const _0x2110ed=_0x178436['get'](_0x319bb5),_0x37e8d9=_0x5128c7['get'](_0x319bb5),_0x213d3f=_0x5128c7['get'](_0x283840),_0x1b4aa1=_0x319bb5['commentThread']&&_0x319bb5['commentThread']['length'],_0x322d86=_0x283840['commentThread']&&_0x283840['commentThread']['length'];if(!_0x1b4aa1&&_0x2110ed(_0x213d3f,_0x37e8d9))return _0x3aa02a['_joinSuggestions'](_0x283840,_0x319bb5),_0x5128c7['delete'](_0x319bb5),!0x0;if(!_0x322d86&&_0x2110ed(_0x37e8d9,_0x213d3f))return _0x3aa02a['_joinSuggestions'](_0x319bb5,_0x283840),_0x5128c7['delete'](_0x283840),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5a5924,_0x5420cf){if(_0x5a5924['isMultiRange']){for(const _0x5e567c of _0x5420cf['getRanges']())_0x5a5924['addRange'](_0x5e567c);}else{const _0x450aa3=_0x5420cf['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5a5924,this['_model']['createRange'](_0x5a5924['getFirstRange']()['start'],_0x450aa3));}_0x5420cf['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1656fc,_0xd2ead9,_0x5ab0c7){const _0x35453b=_0x1656fc['startsWith']('format')||_0x1656fc['startsWith']('attribute')?'FORMATTING':_0x1656fc['toUpperCase']();return o(this['editor']['locale'],_0xd2ead9+'_'+_0x35453b+'_SUGGESTION_ANNOUNCEMENT',_0x5ab0c7);}['_initAriaMarkerChangeAnnouncements'](){const _0x59fac0=this['editor'];if(!_0x59fac0['ui'])return;const {ariaLiveAnnouncer:_0x334e88}=_0x59fac0['ui'];_0x15d99f(this['_model'],({left:_0x65b63,entered:_0x2ec822})=>{for(const _0x1544cb of _0x65b63){const {group:_0x105d56,type:_0x474c76}=this['_splitMarkerName'](_0x1544cb['name']);if('suggestion'===_0x105d56){_0x334e88['announce'](this['_getMarkerAnnouncementText'](_0x474c76,'LEAVE'));break;}}for(const _0x3cd8db of _0x2ec822){const {group:_0x3f7a6b,type:_0xe889ed}=this['_splitMarkerName'](_0x3cd8db['name']);if('suggestion'===_0x3f7a6b){_0x334e88['announce'](this['_getMarkerAnnouncementText'](_0xe889ed,'ENTER',_0x3b5acf(_0x347009)));break;}}});}['_processAttributeChanges'](_0x4f5635){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3e8bb9=this['editor'],_0x917b3a=_0x3e8bb9['model']['document']['differ']['getChanges']();if(0x0==_0x917b3a['length'])return!0x1;const _0x283cfc=[],_0x553d52=_0x917b3a['filter'](_0x2d2823=>'attribute'==_0x2d2823['type']),_0xbc94cc=_0x917b3a['filter'](_0x41147e=>'insert'==_0x41147e['type']&&'$text'!=_0x41147e['name']),_0x5e66c6=_0x917b3a['filter'](_0x5215c2=>'remove'==_0x5215c2['type']&&'$text'!=_0x5215c2['name']);for(const _0x1f942e of _0x553d52)_0x283cfc['push']({'key':_0x1f942e['attributeKey'],'newValue':_0x1f942e['attributeNewValue'],'oldValue':_0x1f942e['attributeOldValue'],'range':Pt(_0x1f942e['range'],_0x3e8bb9['model'])});for(const _0x4f7265 of _0xbc94cc){const _0x13b7e5=_0x5e66c6['find'](_0x15c487=>_0x15c487['position']['isEqual'](_0x4f7265['position']));_0x13b7e5&&_0x283cfc['push']({'key':m,'newValue':_0x4f7265['name'],'oldValue':_0x13b7e5['name'],'range':_0x3e8bb9['model']['createRangeOn'](_0x4f7265['position']['nodeAfter'])});}return 0x0!=_0x283cfc['length']&&this['_reduceExistingSuggestions'](_0x4f5635,_0x283cfc);}['_processAttributeSuggestions'](_0x3a1e72){let _0x2aa692=!0x1;const _0x3ce89a=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x38d2d0=>_0x38d2d0['data']['newRange']&&_0x38d2d0['name']['startsWith']('suggestion:attribute:'));for(const _0x4f10e4 of _0x3ce89a){const {subType:_0x115205,id:_0x554d8c}=this['_splitMarkerName'](_0x4f10e4['name']),_0x341eb1=_0x115205['split']('|')[0x0];for(const _0x282627 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x282627['id']!=_0x554d8c&&'attribute'==_0x282627['type']&&_0x282627['data']&&_0x282627['data']['key']==_0x341eb1&&_0x282627['getFirstRange']()['isIntersecting'](_0x4f10e4['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x282627,_0x4f10e4['data']['newRange'],_0x3a1e72),_0x2aa692=!0x0);}return _0x2aa692;}['_recordAttributeChanges'](_0x1da5db){this['_recordAttributeSuggestions']=!0x0,_0x1da5db();}['_isRegisteredAttribute'](_0x4e4430){const _0x1c61c6=this['_isBlockAttribute'](_0x4e4430),_0x4ad229=this['_inlineAttributeKeys']['has'](_0x4e4430);return _0x1c61c6||_0x4ad229;}['_reduceExistingSuggestions'](_0x4668ee,_0x1f21fa){if(0x0==_0x1f21fa['length'])return!0x1;let _0x28e19b=!0x1;for(const _0x16eb38 of _0x1f21fa){const _0x1742b1=this['_findSuggestions'](_0x16eb38['range'],'attribute')['filter'](_0x5195c8=>!_0x5195c8['meta']['isNextTo'])['map'](_0x1d4f10=>_0x1d4f10['suggestion']),_0x32a172=_0x3d1af3({'newValue':_0x16eb38['newValue']});_0x1742b1['filter'](_0x43e455=>{const [_0x56a875,_0x58ecf7]=_0x43e455['subType']['split']('|');return _0x56a875==_0x16eb38['key']&&_0x58ecf7!=_0x32a172;})['forEach'](_0x4640bb=>{this['_reduceSuggestionAttributeRange'](_0x4640bb,_0x16eb38['range'],_0x4668ee),_0x28e19b=!0x0;});}return _0x28e19b;}['_reduceSuggestionAttributeRange'](_0x4de1a9,_0x53a579,_0x4950ff){const _0x52712b=_0x4de1a9['getFirstRange']()['getDifference'](_0x53a579);0x0!==_0x52712b['length']?0x1!==_0x52712b['length']?this['_breakSuggestionMarker'](_0x4de1a9,_0x53a579['start'],_0x53a579['end']):this['_setSuggestionRange'](_0x4de1a9,_0x52712b[0x0]):_0x4950ff['removeMarker'](_0x4de1a9['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4dbc6d){this['_editor']=_0x4dbc6d,this['_model']=_0x4dbc6d['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2c2d5a,_0x25c37c,_0x344b8a,_0xd5cae5,_0x5444a4,_0xd82c3f){return new u(this['_model'],{'type':_0x2c2d5a,'subType':_0x25c37c,'id':_0x344b8a,'author':_0xd5cae5,'creator':_0xd5cae5,'attributes':_0x5444a4,'onAttributesChange':_0xd82c3f,'onAccept':(..._0x1503d2)=>this['getSuggestionCallback'](_0x2c2d5a,_0x25c37c,'accept')(..._0x1503d2),'onDiscard':(..._0xfa46cb)=>this['getSuggestionCallback'](_0x2c2d5a,_0x25c37c,'discard')(..._0xfa46cb)});}['registerCustomCallback'](_0x1473fa,_0x3873d8,_0x18b75e,_0x266708){const _0x2639bd=_0x1473fa+':'+_0x3873d8+':'+_0x18b75e;this['_customCallbacks']['set'](_0x2639bd,_0x266708);}['getSuggestionCallback'](_0x29b908,_0x14fa67,_0x3e8c08){const _0x370e63=_0x29b908+':'+_0x14fa67+':'+_0x3e8c08;return this['_customCallbacks']['get'](_0x370e63)||this['_defaultCallbacks']['get'](_0x29b908+':'+_0x3e8c08);}['_registerDefaultCallbacks'](){const _0x40dbe4=()=>!0x1,_0x9e3980=_0x4695ba=>{_0x4695ba['sort']((_0x5b1529,_0x39c63e)=>_0x5b1529['start']['isBefore'](_0x39c63e['start'])?0x1:-0x1),this['_model']['change'](_0x4d5537=>{for(const _0x2eaaee of _0x4695ba){let _0x2f5a62;_0x2f5a62=_0x2eaaee['end']['isAtEnd']&&_0x2eaaee['end']['parent']==_0x2eaaee['start']['nodeAfter']?_0x4d5537['createSelection'](_0x2eaaee['start']['nodeAfter'],'on'):_0x4d5537['createSelection'](_0x2eaaee),this['_model']['deleteContent'](_0x2f5a62,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2f3c3e=(_0x4edb29,_0x1e3fda)=>{_0x1e3fda&&this['_model']['change'](_0x23085d=>{const {commandName:_0x74ed52,commandParams:_0x483a5e=[]}=_0x1e3fda,_0x3eb05e=_0x4edb29['map'](_0x409fb6=>(Vt(_0x409fb6)&&(_0x409fb6=this['_model']['createRange'](_0x409fb6['end'])),_0x409fb6))['filter'](_0x5c77a2=>'$graveyard'!==_0x5c77a2['root']['rootName']);if(_0x3eb05e['length']<0x1)return;const _0x448c8a=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3f9398=>_0x5018e8['fromRange'](_0x3f9398));_0x23085d['setSelection'](_0x3eb05e);for(const _0x5ecc46 of this['_editor']['commands']['commands']())_0x5ecc46['refresh']();_0x483a5e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x74ed52,..._0x483a5e);const _0x18cc69=_0x448c8a['filter'](_0x5512af=>'$graveyard'!=_0x5512af['root']['rootName']);_0x18cc69['length']>0x0&&_0x23085d['setSelection'](_0x18cc69);for(const _0x6060e5 of _0x448c8a)_0x6060e5['detach']();});},_0x2593ca=(_0xaf7f2f,_0x1133da)=>0x1==_0xaf7f2f['length']&&0x1==_0x1133da['length']&&_0xaf7f2f[0x0]['end']['isEqual'](_0x1133da[0x0]['start']),_0x1eaaad=(_0x2b5d2b,_0xa7a246,_0x4f6383,_0x3be633)=>Ht(_0x2b5d2b,_0xa7a246,_0x4f6383,_0x3be633,this['_model'])?[_0x2b5d2b,_0xa7a246]:Ht(_0xa7a246,_0x2b5d2b,_0x3be633,_0x4f6383,this['_model'])?[_0xa7a246,_0x2b5d2b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x40dbe4),this['_defaultCallbacks']['set']('insertion:discard',_0x9e3980),this['_defaultCallbacks']['set']('insertion:join',_0x2593ca),this['_defaultCallbacks']['set']('insertion:chain',_0x1eaaad),this['_defaultCallbacks']['set']('deletion:accept',_0x9e3980),this['_defaultCallbacks']['set']('deletion:discard',_0x40dbe4),this['_defaultCallbacks']['set']('deletion:join',_0x2593ca),this['_defaultCallbacks']['set']('deletion:chain',_0x1eaaad),this['_defaultCallbacks']['set']('formatInline:accept',_0x2f3c3e),this['_defaultCallbacks']['set']('formatInline:discard',_0x40dbe4),this['_defaultCallbacks']['set']('formatInline:join',_0x2593ca),this['_defaultCallbacks']['set']('formatInline:chain',_0x40dbe4),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2f3c3e),this['_defaultCallbacks']['set']('formatBlock:discard',_0x40dbe4),this['_defaultCallbacks']['set']('formatBlock:join',_0x2593ca),this['_defaultCallbacks']['set']('formatBlock:chain',_0x40dbe4),this['_defaultCallbacks']['set']('attribute:accept',_0x40dbe4),this['_defaultCallbacks']['set']('attribute:discard',(_0x456f9e,_0x5bdce5)=>{if(!_0x5bdce5)return;const _0x6c073c=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1c724b=>{if(_0x5bdce5['key']==m)for(const _0xf5de28 of _0x456f9e){const _0x5758a5=_0xf5de28['start']['nodeAfter'],_0x4c5100=_0x5bdce5['oldValue'];_0x1c724b['rename'](_0x5758a5,_0x4c5100);}else{if(_0x6c073c['_isBlockAttribute'](_0x5bdce5['key'])){for(const _0x1f7e0b of _0x456f9e)void 0x0!==_0x5bdce5['oldValue']?_0x1c724b['setAttribute'](_0x5bdce5['key'],_0x5bdce5['oldValue'],_0x1f7e0b['start']['nodeAfter']):_0x1c724b['removeAttribute'](_0x5bdce5['key'],_0x1f7e0b['start']['nodeAfter']);}else{for(const _0x19c072 of _0x456f9e)_0x5bdce5['oldValue']?_0x1c724b['setAttribute'](_0x5bdce5['key'],_0x5bdce5['oldValue'],_0x19c072):_0x1c724b['removeAttribute'](_0x5bdce5['key'],_0x19c072);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2593ca);}}function Ot(_0x429bbd,_0x307c78,_0x255550){for(const _0xe9468f of _0x307c78['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xe9468f['root']==_0xe9468f)return!0x1;if(!_0x255550['containsItem'](_0xe9468f))return!0x1;if(_0x429bbd['isObject'](_0xe9468f)||_0x429bbd['isLimit'](_0xe9468f))return!0x0;}return!0x1;}function Vt(_0x44f6bf){return _0x44f6bf['end']['parent']==_0x44f6bf['start']['nodeAfter']&&_0x44f6bf['end']['isAtStart'];}function Ut(_0x28ac3b,_0x2e7033,_0xb0c211,_0x343b6a){const _0x280681=_0x225cee=>!_0x225cee['item']['is']('$textProxy')&&!_0x343b6a['isObject'](_0x225cee['item']),_0x5b8456=_0x28ac3b['start']['getLastMatchingPosition'](_0x280681),_0x280e9d=_0x28ac3b['end']['getLastMatchingPosition'](_0x280681,{'direction':'backward'});return(!_0x28ac3b['start']['isEqual'](_0x5b8456)||!_0x28ac3b['end']['isEqual'](_0x280e9d))&&(_0x5b8456['isBefore'](_0x280e9d)?_0xb0c211['updateMarker'](_0x2e7033,{'range':_0xb0c211['createRange'](_0x5b8456,_0x280e9d)}):_0xb0c211['removeMarker'](_0x2e7033),!0x0);}function Gt(_0x2c6a91){return _0x3d1af3(_0x2c6a91);}function Ft(_0xf8eaf6){const _0x3fd702=_0xf8eaf6['start']['nodeAfter'];return _0x3fd702&&_0x3fd702['is']('element');}function Pt(_0x10a48d,_0x1f37ae){return null==_0x10a48d['end']['nodeBefore']&&_0x10a48d['end']['parent']==_0x10a48d['start']['nodeAfter']?Lt(_0x10a48d['start']['nodeAfter'],_0x1f37ae):_0x10a48d;}function Lt(_0x4337f0,_0x47010){const _0x42c58e=_0x47010['schema']['isObject'](_0x4337f0)||_0x47010['schema']['isSelectable'](_0x4337f0);return _0x47010['createRange'](_0x47010['createPositionAt'](_0x4337f0,'before'),_0x42c58e?_0x47010['createPositionAfter'](_0x4337f0):_0x47010['createPositionAt'](_0x4337f0,'end'));}function Ht(_0x12ed73,_0x8b823e,_0x1d1258,_0x5ca766,_0x852519){if(_0x12ed73['next'])return!0x1;if(!Jt(_0x12ed73,_0x8b823e))return!0x1;if(_0x1d1258['end']['isEqual'](_0x5ca766['start']))return!0x0;if(_0x12ed73['type']!=_0x8b823e['type'])return!0x1;if(!_0x1d1258['end']['isTouching'](_0x5ca766['start']))return!0x1;const _0x3e72de=_0x852519['createRange'](_0x1d1258['end'],_0x5ca766['start'])['getWalker']();for(const _0x5745bb of _0x3e72de)if(['elementStart','elementEnd']['includes'](_0x5745bb['type'])&&_0x852519['schema']['isLimit'](_0x5745bb['item']))return!0x1;return!0x0;}function Jt(_0x4f96e8,_0x3464f9){if(!_0x4f96e8['_isDataLoaded']||!_0x3464f9['_isDataLoaded'])return!0x1;const _0x557048=new Set(Object['keys'](_0x4f96e8['attributes'])),_0x2f5177=new Set(Object['keys'](_0x3464f9['attributes']));if(_0x557048['delete']('groupId'),_0x2f5177['delete']('groupId'),0x0==_0x557048['size']&&0x0==_0x2f5177['size'])return!0x0;if(_0x557048['size']!=_0x2f5177['size'])return!0x1;const _0x36e7e6={..._0x4f96e8['attributes']},_0x2538ef={..._0x3464f9['attributes']};return delete _0x36e7e6['groupId'],delete _0x2538ef['groupId'],JSON['stringify'](_0x36e7e6)==JSON['stringify'](_0x2538ef);}function qt(_0x181108,_0x20a602){const _0x945099=zt(_0x181108['attributes']),_0x572b96=zt(_0x20a602);if(!_0x181108['_isDataLoaded'])return!0x1;for(const _0x4b6e58 of Object['keys'](_0x572b96))if(!_0x8956aa(_0x945099[_0x4b6e58],_0x572b96[_0x4b6e58]))return!0x1;return!0x0;}function zt(_0x2ce0b0){const _0xe78164=Object['assign']({},_0x2ce0b0);return delete _0xe78164['skipNestingCheck'],delete _0xe78164['tablePasteChainId'],_0xe78164;}class ae extends/* #__PURE__ -- @preserve */
25
- _0xcb731d(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3ea6f9,_0x577b85,_0x55b8f4,_0x1974c5){super(),this['model']=_0x577b85,this['view']=_0x55b8f4,this['commentThreadController']=_0x1974c5,this['_editor']=_0x3ea6f9,this['_acceptCommand']=_0x3ea6f9['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3ea6f9['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x7a1d01,_0x3f4870)=>_0x7a1d01||_0x3f4870),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xed874d=>_0xed874d&&this['_editor']['model']['canEditAt'](_0x577b85['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3aa272=>_0x3aa272&&this['_editor']['model']['canEditAt'](_0x577b85['getRanges']())),this['_pendingAction']=null,_0x55b8f4['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x55b8f4,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x55b8f4,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x55b8f4,'change:isDirty',()=>{_0x55b8f4['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 _0x40074e=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x40074e);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x210b86{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xa4660b,_0x410cb8,_0x19bfd7,_0x366dbb){super(_0xa4660b),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2b28de(_0xa4660b,o(_0xa4660b,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x410cb8['authoredAt']),this['bind']('authoredAt')['to'](_0x410cb8),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',_0x410cb8,'authoredAt',this,'descriptionParts',(_0x507fa8,_0x2c7b7c,_0x2438c6)=>{const _0x4ea247=_0x2438c6['map'](_0xe802ae=>ls(_0xe802ae['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x507fa8-0x1,_0x410cb8['author']['name'],_0x2c7b7c?_0x366dbb['formatDateTime'](_0x2c7b7c):'',new DOMParser()['parseFromString'](_0x4ea247,'text/html')['body']['textContent']]);}),this['focusables']=new _0x13f084(),this['focusTracker']=new _0x159e05(),this['keystrokes']=new _0x27e8f6(),this['focusCycler']=new _0x308ce9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4fa818=>_0x4fa818['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x410cb8,this['_localUser']=_0x19bfd7,this['_config']=_0x366dbb,_0x366dbb['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x236c2c(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x492384}=this['_config'];this['commentsListView']=new _0x492384(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',_0x3af62e=>_0x3af62e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x261c88,_0x5184da)=>_0x261c88||!!_0x5184da);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xde09e}=this['_config'],_0x438d52=new _0xde09e(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x20a4e0=_0x438d52['commentInputView'];return _0x438d52['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x20a4e0,'value',(_0x2d2d29,_0x2f1849,_0x122564)=>!!_0x122564||_0x2d2d29&&!_0x2f1849),_0x20a4e0['on']('submit',(_0x182af8,_0x31fba6)=>{this['fire']('addComment',_0x31fba6),_0x20a4e0['editor']['setData']('');}),_0x20a4e0['on']('cancel',()=>this['focus']()),_0x20a4e0['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x438d52;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0xc8c01f,_0x31356a,_0x528f11,_0x616af2){super(_0xc8c01f,_0x31356a,_0x528f11,_0x616af2),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x9bd4a2=>_0x9bd4a2&&_0x9bd4a2[0x0]?_0x9bd4a2[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5411bc,_0x29efa5)=>{let _0x9fdee2='';for(const _0x5d9821 of _0x5411bc)_0x9fdee2+='<p>'+ls(_0x5d9821['content'],_0x5d9821['color'])+'</p>';return _0x29efa5?_0x9fdee2:_0x44c8a5(_0x9fdee2,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x616af2['SuggestionView'](_0xc8c01f,_0x31356a,{'formatDateTime':_0x616af2['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 _0x20575e=this['bindTemplate'],_0x4d47df=[this['suggestionView']];return this['commentsListView']&&_0x4d47df['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4d47df['push'](this['commentThreadInputView']),_0x4d47df['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x20575e['if']('isActive','ck-suggestion-wrapper--active'),_0x20575e['to']('type',_0x1abc8b=>'ck-suggestion-'+_0x1abc8b),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':_0x20575e['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4d47df};}['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 _0x210b86{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2f48bd,_0x1aef20,_0xe762f4){super(_0x2f48bd),this['_model']=_0x1aef20,this['_config']=_0xe762f4,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1aef20),this['acceptButton']=this['_createButton'](o(_0x2f48bd,'Accept\x20suggestion'),_0x2fd808['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x2f48bd,'Discard\x20suggestion'),_0x2fd808['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x49cf17(_0x2f48bd,_0x1aef20['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x13f084([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x159e05(),this['keystrokes']=new _0x27e8f6(),this['focusCycler']=new _0x308ce9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x38e94e=>_0x38e94e['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x221587=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x221587['innerHTML']=this['description'],this['on']('change:description',(_0xab39af,_0xa8c45c,_0xd7d7ee)=>{_0x221587['innerHTML']=_0xd7d7ee;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4d308d=this['bindTemplate'],_0x5b062e=[{'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':_0x4d308d['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4d308d['to']('authoredAt',_0x22e560=>this['_config']['formatDateTime'](_0x22e560))}]}]},{'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']&&_0x5b062e['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':_0x5b062e}]};}['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'](_0xbd96f0,_0x315ef1,_0x7b2f32,_0x4d484d,_0x26c9ec){const _0x548987=new _0x2a38fe(this['locale']);return _0x548987['set']({'label':_0xbd96f0,'icon':_0x315ef1,'tooltip':!0x0,'tooltipPosition':_0x26c9ec}),_0x548987['extendTemplate']({'attributes':{'class':_0x7b2f32}}),_0x548987['on']('execute',()=>{this['fire'](_0x4d484d,this['_model']['id']);}),_0x548987;}['_setupKeyboardNavigation'](){const _0x1ca7cd=this['element'];this['keystrokes']['listenTo'](_0x1ca7cd);for(const _0x59a02d of this['focusables'])this['focusTracker']['add'](_0x59a02d['element']),this['keystrokes']['listenTo'](_0x59a02d['element']);this['keystrokes']['set']('enter',(_0x5b48ea,_0x2bd2f2)=>{_0x1ca7cd===_0x5b48ea['target']&&(this['focusCycler']['focusFirst'](),_0x2bd2f2());}),this['keystrokes']['set']('esc',(_0x1d4c33,_0x32e207)=>{_0x1ca7cd!==_0x1d4c33['target']&&(this['focus'](),_0x32e207());});}}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 _0x1530f7{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4d313f,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x497f50){super(_0x497f50),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4771f4=this['editor']['config'];_0x4771f4['define']('trackChanges.SuggestionThreadView',re),_0x4771f4['define']('trackChanges.SuggestionView',ce),_0x4771f4['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4771f4['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x471384,_0x42cdc3){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5f2443,_0x47e408]of this['_handleControllerBuffer']){const _0x432aed=this['_suggestionToController']['has'](_0x5f2443);_0x432aed||_0x47e408?_0x432aed&&_0x47e408&&this['_destroyController'](_0x5f2443):this['_initializeController'](_0x5f2443);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x471384,_0x42cdc3);}['init'](){const _0x4f13d0=this['editor'],_0x404217=_0x4f13d0['plugins']['get']('TrackChangesEditing'),_0x56f8e9=_0x4f13d0['plugins']['get']('Annotations'),_0x518df1=_0x4f13d0['plugins']['get']('EditorAnnotations'),_0x1b80ee=_0x4f13d0['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x518df1['addSourceCollector'](()=>{const _0x2f4efa=[];for(const [_0x3d5cf8,_0x53948a]of Array['from'](this['_suggestionToController'])){const _0x1755a0=_0x3d5cf8['getAllAdjacentSuggestions'](),_0x376974=[];for(const _0x197277 of _0x1755a0){if(!_0x197277['isInContent'])continue;if(_0x197277['isMultiRange']){_0x376974['push'](..._0x197277['getRanges']());continue;}const _0x5bbe90=_0x197277['getFirstRange']();if(_0x376974['length']>0x0){const _0x67180c=_0x376974[0x0]['getJoined'](_0x5bbe90);if(_0x67180c){_0x376974[0x0]=_0x67180c;continue;}}_0x376974['push'](_0x5bbe90);}_0x2f4efa['push']([_0x53948a['view'],_0x376974]);}return _0x2f4efa;}),this['listenTo'](_0x404217,'suggestionLoaded',(_0x35b3b0,_0x36982d)=>{this['listenTo'](_0x36982d,'change:previous',(_0x3ce06e,_0x3fbb58,_0x5eaa54,_0x1aa661)=>{_0x36982d['isInContent']&&(null==_0x5eaa54?(this['_updateController'](_0x1aa661['head']),this['_handleSuggestionControllerDelayed'](_0x36982d,!0x1)):(this['_updateController'](_0x5eaa54['head']),null==_0x1aa661&&this['_handleSuggestionControllerDelayed'](_0x36982d,!0x0)));}),null!==_0x36982d['previous']?this['_updateController'](_0x36982d['head']):this['_handleSuggestionControllerDelayed'](_0x36982d,!0x1);}),this['listenTo'](_0x404217,'suggestionUnloaded',(_0x4ed730,_0x424b4f,_0x43783c)=>{this['stopListening'](_0x424b4f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x424b4f),this['_suggestionToController']['has'](_0x424b4f)&&this['_destroyController'](_0x424b4f),_0x43783c&&this['_updateController'](_0x43783c['head']);}),this['listenTo'](_0x404217,'suggestionChanged',(_0x7ae82f,_0x2080da)=>{this['_updateController'](_0x2080da);}),this['listenTo'](_0x56f8e9,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1b80ee,'addComment',(_0x467aa6,{threadId:_0x50fa3b,isFromAdapter:_0xc66a35})=>{if(_0xc66a35||!_0x404217['hasSuggestion'](_0x50fa3b))return;const _0x5d99b6=_0x404217['getSuggestion'](_0x50fa3b);this['_suggestionToController']['get'](_0x5d99b6)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x546f95=this['editor']['plugins']['get']('Annotations'),_0x983d52=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ed270=Array['from'](_0x546f95['activeAnnotations'],_0x3d3b19=>_0x3d3b19['innerView'])['filter'](_0x5d4913=>this['_viewToController']['has'](_0x5d4913)),_0x314999=[];for(const _0x51e095 of _0x3ed270){const _0x303109=this['_viewToController']['get'](_0x51e095)['model']['getAllAdjacentSuggestions']();_0x314999['push'](..._0x303109['reduce']((_0x47e336,_0x2844c9)=>[..._0x47e336,..._0x2844c9['getMarkerNames']()],[]));}_0x983d52['activeMarkers']=_0x314999;}['_addUIComponentsToFactory'](){const _0x2199a6=this['editor'],_0x26523e=_0x2199a6['locale'],_0x1d7917=o(_0x26523e,'Track\x20changes'),_0x340164=new Wt([{'type':'switchbutton','model':new _0x22e58a({'withText':!0x0,'isToggleable':!0x0,'label':_0x1d7917,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x22e58a({'withText':!0x0,'label':o(_0x26523e,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x22e58a({'withText':!0x0,'label':o(_0x26523e,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x22e58a({'withText':!0x0,'label':o(_0x26523e,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x22e58a({'withText':!0x0,'label':o(_0x26523e,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x3ed790 of _0x340164)if(me(_0x3ed790)){const _0x294b39=_0x2199a6['commands']['get'](_0x3ed790['model']['commandName']);_0x3ed790['model']['bind']('isOn','isEnabled')['to'](_0x294b39,'value','isEnabled');}_0x2199a6['ui']['componentFactory']['add']('trackChanges',_0xd51bef=>this['_createToolbarButton'](_0xd51bef,_0x340164,_0x1d7917)),_0x2199a6['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4e7bc2=>this['_createMenuBarMenu'](_0x4e7bc2,_0x340164,_0x1d7917));}['_createToolbarButton'](_0x4ecb0d,_0x16dfc2,_0x3397cf){const _0x148309=Qt(_0x4ecb0d,_0x41b49a),_0x538f5c=this['editor']['commands']['get']('trackChanges');_0x148309['buttonView']['set']({'tooltip':_0x3397cf,'label':_0x3397cf,'icon':he}),_0x148309['buttonView']['bind']('isOn')['to'](_0x538f5c,'value'),_0x148309['buttonView']['on']('execute',()=>{_0x538f5c['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x148309,_0x16dfc2,{'role':'menu'});const _0xdf8cbf=[];for(const _0x2629e9 of _0x16dfc2)me(_0x2629e9)&&_0xdf8cbf['push'](this['editor']['commands']['get'](_0x2629e9['model']['commandName']));const _0x53bb5a=_0x148309['buttonView'];return _0x53bb5a['actionView']['unbind']('isEnabled'),_0x53bb5a['arrowView']['unbind']('isEnabled'),_0x53bb5a['actionView']['bind']('isEnabled')['to'](_0x538f5c,'isEnabled'),_0x53bb5a['arrowView']['bind']('isEnabled')['toMany'](_0xdf8cbf,'isEnabled',(..._0x2c9018)=>_0x2c9018['some'](_0x2a67e3=>_0x2a67e3)),_0x148309['on']('execute',_0x5866e9=>{this['editor']['execute'](_0x5866e9['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x148309;}['_createMenuBarMenu'](_0x562644,_0x48c101,_0x3f5f1a){const _0x45d915=new Yt(_0x562644),_0x120437=this['editor']['commands']['get']('trackChanges');_0x45d915['buttonView']['set']({'label':_0x3f5f1a,'icon':he});const _0x202bf0=new Zt(_0x562644);for(const _0x530f2a of _0x48c101){if('separator'==_0x530f2a['type']){_0x202bf0['items']['add'](new Xt(_0x562644));continue;}const _0x4fb5a4=new te(_0x562644,_0x45d915),_0x1c8745=new _0x38d913(_0x562644),_0x51c2c9=_0x530f2a['model'];_0x1c8745['bind'](...Object['keys'](_0x51c2c9))['to'](_0x51c2c9),_0x1c8745['delegate']('execute')['to'](_0x45d915),_0x1c8745['on']('execute',()=>{this['editor']['execute'](_0x51c2c9['commandName']),this['editor']['editing']['view']['focus']();}),_0x4fb5a4['children']['add'](_0x1c8745),_0x202bf0['items']['add'](_0x4fb5a4);}return _0x45d915['bind']('isEnabled')['to'](_0x120437,'isEnabled'),_0x45d915['panelView']['children']['add'](_0x202bf0),_0x45d915;}['_initializeController'](_0x2e02df){const _0x1d09ef=this['editor'],_0x5d6742=_0x1d09ef['config'],_0x3083eb=_0x1d09ef['plugins']['get']('Annotations'),_0x5a9499=_0x1d09ef['plugins']['get']('CommentsRepository'),_0x238109=_0x1d09ef['plugins']['get']('EditorAnnotations'),_0x4e04f6=_0x1d09ef['plugins']['get'](_0x4d313f)['me'],_0x19f17f=_0x5d6742['get']('trackChanges')['SuggestionThreadView'],_0x3f5385=_0x5d6742['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2c5d4d,CommentThreadInputView:_0x197cc2}=_0x1d09ef['plugins']['get']('CommentsUI');let _0x3b5dcc,_0x4436cf,_0x1f3e03;this['_annotationViews']['has'](_0x2e02df['id'])?(_0x4436cf=this['_annotationViews']['get'](_0x2e02df['id']),_0x3b5dcc=_0x4436cf['mainView']):(_0x3b5dcc=new _0x19f17f(_0x1d09ef['locale'],_0x2e02df,_0x4e04f6,{'disableComments':this['_disableComments'],'editorConfig':_0x5d6742['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x5d6742['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5d6742['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5d6742['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x131ec3(_0x5d6742['get']('locale')),'CommentView':_0x5d6742['get']('comments')['CommentView'],'CommentsListView':_0x2c5d4d,'CommentThreadInputView':_0x197cc2,'SuggestionView':_0x3f5385}),_0x3b5dcc['suggestionView']['acceptButton']['on']('execute',()=>{_0x1d09ef['editing']['view']['focus']();}),_0x3b5dcc['suggestionView']['discardButton']['on']('execute',()=>{_0x1d09ef['editing']['view']['focus']();}),_0x4436cf=_0x3083eb['createAnnotationView'](this['editor']['locale'],_0x3b5dcc),_0x4436cf['bind']('isDirty')['to'](_0x3b5dcc,'isDirty'),_0x4436cf['bind']('length')['to'](_0x3b5dcc),_0x4436cf['bind']('type')['to'](_0x3b5dcc,'type',_0x11abce=>'suggestion-'+_0x11abce),_0x3b5dcc['on']('escape',()=>{_0x1f3e03['fire']('escape');}),this['_annotationViews']['set'](_0x2e02df['id'],_0x4436cf));const _0x497d2b=_0x5a9499['createCommentThreadController'](_0x2e02df['commentThread'],_0x3b5dcc),_0x21c8bd=new ae(_0x1d09ef,_0x2e02df,_0x3b5dcc,_0x497d2b),_0x1f42d9=_0x2e02df['getAllAdjacentSuggestions']()['filter'](_0x4d18df=>_0x4d18df['isInContent']);_0x3b5dcc['descriptionParts']=_0x1d09ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1f42d9),this['_suggestionToController']['set'](_0x2e02df,_0x21c8bd),this['_viewToController']['set'](_0x3b5dcc,_0x21c8bd),_0x1f3e03=_0x3083eb['createAnnotation']({'view':_0x4436cf,'target':()=>{const _0x577645=[],_0x387550=_0x2e02df['getAllAdjacentSuggestions']()['filter'](_0x1a72e0=>_0x1a72e0['isInContent']);for(const _0x43a1d7 of _0x387550)_0x577645['push'](..._0x43a1d7['getMarkers']());return _0x418d9a(_0x1d09ef['editing'],_0x577645);},'type':()=>'suggestion-'+_0x21c8bd['view']['type']}),_0x5a9499['_bindAnnotationToEditors'](_0x3b5dcc,_0x1f3e03),_0x3083eb['add'](_0x1f3e03),_0x238109['registerAnnotation'](_0x1f3e03);}['_destroyController'](_0x388396){const _0x3bcf01=this['editor']['plugins']['get']('CommentsRepository'),_0x2c9862=this['editor']['plugins']['get']('Annotations'),_0x10cffd=this['_suggestionToController']['get'](_0x388396),_0x47f81a=_0x10cffd['view'],_0x48d5a3=_0x2c9862['getByInnerView'](_0x47f81a);_0x3bcf01['_unbindEditors'](_0x47f81a),_0x48d5a3&&_0x2c9862['remove'](_0x48d5a3),this['_suggestionToController']['delete'](_0x388396),this['_viewToController']['delete'](_0x47f81a),_0x10cffd['destroy']();}['_updateController'](_0x50f19b){if(!_0x50f19b['isInContent']||!this['_suggestionToController']['has'](_0x50f19b))return;const _0x231876=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a778e=this['_suggestionToController']['get'](_0x50f19b),_0x36385a=_0x50f19b['getAllAdjacentSuggestions']();_0x2a778e['view']['descriptionParts']=_0x231876['descriptionFactory']['getDescriptions'](_0x36385a);}['destroy'](){for(const _0x112767 of this['_suggestionToController']['keys']())this['_destroyController'](_0x112767);for(const _0x34a636 of this['_annotationViews']['values']())_0x34a636['mainView']['destroy']();super['destroy']();}}function me(_0x262743){return'model'in _0x262743;}class k extends _0x1530f7{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x5064ba){this['editor']['plugins']['get'](p)['adapter']=_0x5064ba;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x666bce){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x666bce);}['getSuggestions']({skipNotAttached:_0x196b9c=!0x1,toJSON:_0x138284=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x196b9c,'toJSON':_0x138284});}['getSuggestion'](_0x13cdc6){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x13cdc6);}}const T=['Pagination'];class P extends _0x1530f7{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4923dd=this['editor'];if(_0x4923dd['config']['define']('trackChangesData.editorCreator',_0x454df2=>{const _0x5e6703=_0x4923dd['model']['document']['getRootNames']()['reduce']((_0x205cf6,_0x5a5967)=>(_0x205cf6[_0x5a5967]='',_0x205cf6),{});return _0x4923dd['constructor']['create'](_0x5e6703,_0x454df2);}),'function'!=typeof _0x4923dd['config']['get']('trackChangesData')['editorCreator'])throw new _0x36031a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x7b4078){return N(this['editor'],!0x0,_0x7b4078);}['getDataWithDiscardedSuggestions'](_0x5432f8){return N(this['editor'],!0x1,_0x5432f8);}}class D extends _0x1530f7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x1359bf){super(_0x1359bf),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(_0x5cc586){return void 0x0!==_0x5cc586['getRootsAttributes'];}async function N(_0x33a9cf,_0xdacc18,_0x380d24){const _0x3155e7=_0x55d533(_0x33a9cf,T);_0x3155e7['plugins']['push'](p,D),_0x3155e7['rootsAttributes']=v(_0x33a9cf)?_0x33a9cf['getRootsAttributes']():void 0x0;const _0xe1e9c0=document['createDocumentFragment'](),_0x1647a3=_0x33a9cf['config']['get']('trackChangesData')['editorCreator'],_0x816e64=await _0x1647a3(_0x3155e7,()=>function(_0x62e17b){const _0x348b9b=document['createElement']('div');return _0x62e17b['appendChild'](_0x348b9b),_0x348b9b;}(_0xe1e9c0));!function(_0x20ae85,_0x49895c){const _0x28a5b8=_0x20ae85['model']['document']['getRootNames']()['reduce']((_0x3baa4e,_0x1cb61b)=>(_0x3baa4e[_0x1cb61b]=_0x20ae85['data']['get']({'rootName':_0x1cb61b}),_0x3baa4e),{}),_0x132b63=_0x20ae85['plugins']['get']('Users')['users']['map'](_0x736d6=>({'id':_0x736d6['id'],'name':_0x736d6['name']})),_0x8122f7=_0x20ae85['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x62aa90=_0x20ae85['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2804a5=_0x49895c['plugins']['get']('Users'),_0x31e740=_0x49895c['plugins']['get']('TrackChangesEditing'),_0x4ff362=_0x49895c['plugins']['get']('CommentsRepository');for(const _0x265551 of _0x4ff362['getCommentThreads']())_0x265551['remove']();for(const _0x57b416 of _0x132b63)_0x2804a5['getUser'](_0x57b416['id'])||_0x2804a5['addUser'](_0x57b416);_0x2804a5['me']||_0x2804a5['useAnonymousUser']();for(const _0xa11c5 of _0x62aa90)_0x4ff362['addCommentThread'](_0xa11c5);for(const _0x137eb6 of _0x8122f7)_0x31e740['addSuggestionData'](_0x137eb6);_0x49895c['data']['set'](_0x28a5b8);}(_0x33a9cf,_0x816e64),_0x816e64['execute'](_0xdacc18?'acceptAllSuggestions':'discardAllSuggestions');const _0x27f1d5=v(_0x816e64)?_0x816e64['getFullData'](_0x380d24):_0x816e64['data']['get'](_0x380d24);return await _0x816e64['destroy'](),_0x27f1d5;}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 _0x328234,PendingActions as _0x11fe9d,icons as _0x266fe0}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2d253a,ObservableMixin as _0x9ee3f1,uid as _0x2b4c20,insertToPriorityArray as _0x5d21a8,priorities as _0x408fd7,logWarning as _0x32c801,getEnvKeystrokeText as _0x753ada,FocusTracker as _0x261afb,KeystrokeHandler as _0x3ca11b,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x4bf0f0,View as _0x228380,ViewCollection as _0x400e93,FocusCycler as _0x2e8663,ViewModel as _0x1bd09f,createDropdown as Qt,SplitButtonView as _0x34e820,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x45f15a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x25715a,hashObject as _0x4eeb59,surroundingMarkersDetector as _0x4c46e3,FOCUS_ANNOTATION_KEYSTROKE as _0x5ece77,AriaDescriptionView as _0x3bb823,setupThreadKeyboardNavigation as _0x228aad,trimHtml as _0x227449,UserView as _0x1986f5,LateFocusButtonView as _0xb1998d,getDateTimeFormatter as _0x5a3cec,getAllMarkersDomElementsSorted as _0x54b84c,sanitizeEditorConfig as _0x323a73}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x355757,LiveRange as _0xf41792,LivePosition as _0x3cc3dd}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x476147,toWidget as _0x20adee}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4d2352,set as _0x394d02,isEqual as _0x3bc98d,unset as _0x4bd5bb,omit as Tt}from'lodash-es';import{Delete as _0x131b3f,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5e4ac3,ShiftEnter as _0x51d29b}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x2b4d6b,_0x54ecac){super(_0x2b4d6b),this['_enabledCommands']=_0x54ecac,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 _0x442222 of this['editor']['commands']['commands']())_0x442222['affectsData']&&!this['_enabledCommands']['has'](_0x442222)&&_0x442222['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4b835e of this['editor']['commands']['commands']())_0x4b835e['affectsData']&&!this['_enabledCommands']['has'](_0x4b835e)&&_0x4b835e['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x54087c,_0x269ba9){super(_0x54087c),this['_suggestions']=_0x269ba9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4c9b56){const _0xe5e653=this['_suggestions']['get'](_0x4c9b56);if(!_0xe5e653)throw new _0x2d253a('track-changes-accept-suggestion-not-found',this);const _0x18f181=_0xe5e653['getRanges']();this['editor']['model']['canEditAt'](_0x18f181)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xe5e653);}}class R extends ts{['_suggestions'];constructor(_0x112e8b,_0x460128){super(_0x112e8b),this['_suggestions']=_0x460128,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x17348d){const _0x46dc38=this['_suggestions']['get'](_0x17348d);if(!_0x46dc38)throw new _0x2d253a('track-changes-discard-suggestion-not-found',this);const _0x3c7e1d=_0x46dc38['getRanges']();this['editor']['model']['canEditAt'](_0x3c7e1d)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x46dc38);}}function ls(_0x26088a,_0x19c57c){let _0x2c869='';return _0x2c869+=_0x26088a['split']('*')['map']((_0x547691,_0x4e02af)=>_0x4e02af%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x547691)+'</span>':nn(_0x547691))['join'](''),_0x19c57c&&(_0x2c869+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x19c57c['value']+'\x22\x20title=\x22'+_0x19c57c['title']+'\x22></span>'),_0x2c869;}function nn(_0x135fda){const _0x423608=document['createElement']('span');return _0x423608['innerText']=_0x135fda,_0x423608['innerHTML'];}function ss(_0x2c3aaa){return _0x2c3aaa['sort']((_0x202b38,_0x36ff45)=>'deletion'==_0x202b38['type']&&'deletion'!=_0x36ff45['type']?-0x1:'deletion'!=_0x202b38['type']&&'deletion'==_0x36ff45['type']?0x1:0x0);}function to(_0x19b405,_0x17c97b){let _0x5bb663,_0x3d6661=0x0;const _0x512b72=[],_0x5d8117=_0x17c97b['schema'];for(;_0x3d6661<_0x19b405['length'];){const _0x151685=_0x19b405[_0x3d6661],_0x545b45=_0x19b405[_0x3d6661+0x1];_0x5bb663||(_0x5bb663=_0x17c97b['createPositionBefore'](_0x151685)),on(_0x17c97b,_0x151685,_0x545b45)||(_0x512b72['push'](_0x17c97b['createRange'](_0x5bb663,_0x5d8117['isObject'](_0x151685)?_0x17c97b['createPositionAfter'](_0x151685):_0x17c97b['createPositionAt'](_0x151685,'end'))),_0x5bb663=null),_0x3d6661++;}return _0x512b72;}function on(_0x533084,_0xc0560f,_0x142c2b){if(!_0x142c2b)return!0x1;const _0xf3c025=_0x533084['createPositionAfter'](_0xc0560f),_0x17825d=_0x533084['createPositionBefore'](_0x142c2b);return _0xf3c025['isTouching'](_0x17825d);}function rs(_0xbb2565,_0x2e3f50,_0x9197b2){for(;_0x9197b2['length'];){const _0x369bff=_0x9197b2['splice'](0x0,0x64);_0xbb2565['change'](()=>{for(const _0x3e0c32 of _0x369bff)_0x3e0c32['isInContent']&&_0x2e3f50['execute'](_0x3e0c32['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x1ef2ca,_0x2eeb31,_0x102928){super(_0x1ef2ca),this['_command']=_0x2eeb31,this['_suggestions']=_0x102928,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1ead95=Array['from'](this['_suggestions']['values']())['some'](_0x5d0ec2=>_0x5d0ec2['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1ead95;}['execute'](){const _0x481aee=ss(Array['from'](this['_suggestions']['values']()));for(const _0x478838 of _0x481aee){const _0x5e9626=_0x478838['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5e9626))return;}rs(this['editor']['model'],this['_command'],_0x481aee);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3a644b,_0x57b653,_0x270100){super(_0x3a644b),this['_command']=_0x57b653,this['_suggestions']=_0x270100,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2bce7d=this['editor']['model']['document']['selection'],_0x417abe=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0xa6a56e,_0x3d2d2c){const _0x283ebe=Array['from'](_0xa6a56e['getRanges']()),_0x290150=new Set();for(const _0xe9d4b5 of _0x3d2d2c)if(_0xe9d4b5['isInContent']){for(const _0x20771c of _0x283ebe)for(const _0x39abd5 of _0xe9d4b5['getRanges']())(_0x20771c['isIntersecting'](_0x39abd5)||_0xa6a56e['isCollapsed']&&!_0xe9d4b5['isMultiRange']&&_0xe9d4b5['next']&&_0x39abd5['end']['isTouching'](_0x20771c['start']))&&_0x290150['add'](_0xe9d4b5);}return _0x290150;}(_0x2bce7d,_0x417abe),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xf0bb96=ss(Array['from'](this['_selectedSuggestions']));for(const _0x1c2882 of _0xf0bb96){const _0x3593b6=_0x1c2882['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3593b6))return;}rs(this['editor']['model'],this['_command'],_0xf0bb96);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x9ee3f1(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x9c7a50,_0x1c3bef){super(),this['id']=_0x1c3bef['id'],this['type']=_0x1c3bef['type'],this['subType']=_0x1c3bef['subType']||null,this['author']=_0x1c3bef['author'],this['creator']=_0x1c3bef['creator']||_0x1c3bef['author'],this['isExternal']=Boolean(_0x1c3bef['attributes']&&_0x1c3bef['attributes']['@external']),this['data']=null,this['_model']=_0x9c7a50,this['_onAccept']=_0x1c3bef['onAccept'],this['_onDiscard']=_0x1c3bef['onDiscard'],this['_onAttributesChange']=_0x1c3bef['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1c3bef['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 _0x40c681=this;for(;_0x40c681['previous'];)_0x40c681=_0x40c681['previous'];return _0x40c681;}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'](_0x4aa50b){this['_markerNames']['add'](_0x4aa50b);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2a4ce4=>this['_model']['markers']['get'](_0x2a4ce4))['filter'](_0x12aa20=>_0x12aa20);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xca71f2=>{for(const _0x32171d of this['getMarkers']())_0xca71f2['removeMarker'](_0x32171d);}),this['_markerNames']['clear']();}['removeMarker'](_0x533b92){this['_model']['change'](_0x338625=>{_0x338625['removeMarker'](_0x533b92);}),this['_markerNames']['delete'](_0x533b92);}['addRange'](_0x53a0fd){const _0x5bf126='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x5bf126),this['_model']['change'](_0x2e2b14=>{_0x2e2b14['addMarker'](_0x5bf126,{'range':_0x53a0fd,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3876c0){for(const _0x3c8ea1 of this['getRanges']())if(_0x3c8ea1['isIntersecting'](_0x3876c0))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x50fe85=>_0x50fe85['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x498772,_0x3c9ba4)=>[..._0x498772,..._0x3c9ba4['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1b8872=this['getRanges']();if(0x1!=_0x1b8872['length'])return null;const _0x548cba=_0x1b8872[0x0],_0x29e5b4=_0x548cba['start']['nodeAfter'],_0x2ddc76=_0x548cba['end']['nodeBefore'];return _0x29e5b4 instanceof _0x355757?_0x29e5b4!=_0x2ddc76?null:_0x29e5b4: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 _0x569dbe=[];let _0x13a17a=this['head'];for(;_0x13a17a;)_0x569dbe['push'](_0x13a17a),_0x13a17a=_0x13a17a['next'];return _0x569dbe;}['setAttribute'](_0x2f88df,_0x5854da){const _0x27400e=_0x4d2352(this['attributes']);_0x394d02(_0x27400e,_0x2f88df,_0x5854da),_0x3bc98d(_0x27400e,this['attributes'])||(this['attributes']=_0x27400e,this['_onAttributesChange'](_0x27400e));}['removeAttribute'](_0x419338){const _0x205984=_0x4d2352(this['attributes']);_0x4bd5bb(_0x205984,_0x419338),_0x3bc98d(_0x205984,this['attributes'])||(this['attributes']=_0x205984,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 _0x2b4c20()['substr'](0x1,0x5);}}function o(_0x1869fe,_0x2ff590,_0x4ab5ce){const t=_0x1869fe['t'];switch(_0x2ff590){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',_0x4ab5ce);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4ab5ce);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4ab5ce);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4ab5ce);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4ab5ce);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',_0x4ab5ce);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4ab5ce);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',_0x4ab5ce);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4ab5ce);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4ab5ce);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4ab5ce);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4ab5ce);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4ab5ce);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4ab5ce);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4ab5ce);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4ab5ce);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4ab5ce);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4ab5ce);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4ab5ce);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4ab5ce);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4ab5ce);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4ab5ce);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4ab5ce);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'},_0x4ab5ce);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4ab5ce);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4ab5ce);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4ab5ce);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4ab5ce);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4ab5ce);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'},_0x4ab5ce);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4ab5ce);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4ab5ce);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4ab5ce);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4ab5ce);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'},_0x4ab5ce);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4ab5ce);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'},_0x4ab5ce);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'},_0x4ab5ce);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4ab5ce);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'},_0x4ab5ce);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4ab5ce);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'},_0x4ab5ce);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4ab5ce);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4ab5ce);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'},_0x4ab5ce);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'},_0x4ab5ce);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'},_0x4ab5ce);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4ab5ce);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'},_0x4ab5ce);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'},_0x4ab5ce);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'},_0x4ab5ce);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2ff590;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5c0bd9,_0x554eba){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5c0bd9,this['_locale']=_0x554eba;}['getDescriptions'](_0x1483c2){const _0x39c2cd=[],_0x3b4ad2=new Set(),_0x1b7f6b=new Set();for(let _0x131fc1=0x0;_0x131fc1<_0x1483c2['length'];_0x131fc1++){const _0x57b49c=_0x1483c2[_0x131fc1];if(!_0x57b49c['isInContent'])continue;const _0x25ffc7=this['_handleCustomCallbackDescription'](_0x57b49c);if(_0x25ffc7){if(null!=_0x57b49c['subType']){if(_0x3b4ad2['has'](_0x57b49c['subType']))continue;_0x3b4ad2['add'](_0x57b49c['subType']);}_0x39c2cd['push'](_0x25ffc7);}else{if('attribute'!=_0x57b49c['type'])'insertion'!=_0x57b49c['type']&&'deletion'!=_0x57b49c['type']||this['_handleInsertRemoveSuggestionDescription'](_0x39c2cd,_0x57b49c,_0x1483c2[_0x131fc1+0x1]);else{const _0x2b06c3=_0x57b49c['data']['key'];if(_0x1b7f6b['has'](_0x2b06c3))continue;_0x1b7f6b['add'](_0x57b49c['data']['key']),_0x2b06c3==m?this['_handleRenameSuggestionDescription'](_0x39c2cd,_0x57b49c):this['_handleAttributeSuggestionDescription'](_0x39c2cd,_0x57b49c);}}}return this['_resolveDescriptionItems'](_0x39c2cd);}['registerDescriptionCallback'](_0xff96f8){this['_customCallbacks']['push'](_0xff96f8);}['registerElementLabel'](_0x1156ab,_0xf5fd05,_0x5639b9=_0x408fd7['normal']){'function'==typeof _0x1156ab?_0x5d21a8(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1156ab,'label':_0xf5fd05,'priority':_0x5639b9}):this['_itemLabels']['set'](_0x1156ab,_0xf5fd05);}['registerAttributeLabel'](_0x3a80c3,_0x22913d){this['_attributeLabels']['set'](_0x3a80c3,_0x22913d);}['getItemLabel'](_0x1e28e4,_0x125d88=0x1){let _0x44b649;for(const _0x400ea9 of this['_itemLabelsCallbacks'])if(_0x400ea9['matchingCallback'](_0x1e28e4)){_0x44b649=_0x400ea9['label'];break;}return _0x44b649||(_0x44b649=this['_itemLabels']['get'](_0x1e28e4['name'])),_0x44b649?_0x44b649(_0x125d88):0x1!==_0x125d88?_0x125d88+'\x20'+_0x1e28e4['name']+'s':''+_0x1e28e4['name'];}['_addDescriptionItems'](_0x25f79f,_0x21ce77){const _0x4dd1d3=_0x21ce77['getFirstRange']()['getWalker'](),_0x2577d2='insertion'==_0x21ce77['type']?'add':'remove';for(const _0x2f1f88 of _0x4dd1d3){const _0x165722=_0x2f1f88['item'],_0x33f28f=_0x25f79f[_0x25f79f['length']-0x1];if(_0x165722['is']('$textProxy'))_0x33f28f&&_0x33f28f['type']['indexOf']('Container')>-0x1&&_0x25f79f['pop'](),_0x33f28f&&'text'==_0x33f28f['type']?_0x33f28f[_0x2577d2]+=_0x165722['data']:_0x25f79f['push']({'type':'text','add':'add'==_0x2577d2?_0x165722['data']:'','remove':'remove'==_0x2577d2?_0x165722['data']:''});else{if(this['_schema']['isObject'](_0x165722)){const _0x2a3cf7=_0x165722;if(_0x33f28f&&_0x33f28f['type']['indexOf']('Container')>-0x1&&_0x25f79f['pop'](),'elementEnd'==_0x2f1f88['type'])continue;_0x33f28f&&_0x33f28f['type']==_0x2577d2+'Object'&&_0x33f28f['element']['name']==_0x2a3cf7['name']?_0x33f28f['quantity']++:_0x25f79f['push']({'type':_0x2577d2+'Object','element':_0x2a3cf7,'quantity':0x1}),_0x4dd1d3['skip'](_0x2c9784=>!('elementEnd'==_0x2c9784['type']&&_0x2c9784['item']==_0x165722));}else{if(this['_schema']['checkChild'](_0x165722,'$text')||_0x165722['is']('element','softBreak')){const _0x55de4c=_0x165722;if('add'==_0x2577d2&&'elementStart'==_0x2f1f88['type']||'remove'==_0x2577d2&&'elementEnd'==_0x2f1f88['type'])continue;if(_0x33f28f&&-0x1==_0x33f28f['type']['indexOf']('Container')){'text'==_0x33f28f['type']&&(_0x33f28f[_0x2577d2]+='\x0a');continue;}let _0x41eee0;if(_0x41eee0='add'==_0x2577d2?_0x55de4c['nextSibling']&&!this['_schema']['isObject'](_0x55de4c['nextSibling'])?_0x55de4c['nextSibling']:null:_0x55de4c['previousSibling']&&!this['_schema']['isObject'](_0x55de4c['previousSibling'])?_0x55de4c['previousSibling']:null,_0x55de4c['isEmpty']||_0x41eee0&&_0x41eee0['isEmpty']){const _0x3b775c=_0x41eee0&&_0x41eee0['isEmpty']?_0x41eee0:_0x55de4c;_0x33f28f&&_0x33f28f['type']==_0x2577d2+'EmptyContainer'&&_0x33f28f['element']['name']==_0x3b775c['name']?_0x33f28f['quantity']++:_0x25f79f['push']({'type':_0x2577d2+'EmptyContainer','element':_0x3b775c,'quantity':0x1});}else _0x25f79f['push']({'type':_0x2577d2+'Container','element':_0x55de4c});}}}}}['_resolveDescriptionItems'](_0x3b0900){const _0x25aa61=this['_locale'],_0x36dcd7=[],_0x2ccaec=[],_0x33f967=[];for(const _0x166dc5 of _0x3b0900)switch(_0x166dc5['type']){case'text':if(_0x166dc5['add']=_0x166dc5['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x166dc5['remove']=_0x166dc5['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x166dc5['add']&&''!=_0x166dc5['remove']){_0x36dcd7['push']({'type':'replace','content':o(_0x25aa61,'REPLACE_TEXT',['\x22'+_0x166dc5['remove']+'\x22','\x22'+_0x166dc5['add']+'\x22'])});continue;}if(null!=_0x166dc5['add']['match'](/^ +$/)){_0x36dcd7['push']({'type':'insertion','content':o(_0x25aa61,'*Insert:*\x20%0',o(_0x25aa61,'ELEMENT_SPACE',_0x166dc5['add']['length']))});continue;}if(null!=_0x166dc5['remove']['match'](/^ +$/)){_0x36dcd7['push']({'type':'deletion','content':o(_0x25aa61,'*Remove:*\x20%0',o(_0x25aa61,'ELEMENT_SPACE',_0x166dc5['remove']['length']))});continue;}if(''!=_0x166dc5['add']){_0x36dcd7['push']({'type':'insertion','content':o(_0x25aa61,'*Insert:*\x20%0','\x22'+_0x166dc5['add']+'\x22')});continue;}_0x36dcd7['push']({'type':'deletion','content':o(_0x25aa61,'*Remove:*\x20%0','\x22'+_0x166dc5['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x36dcd7['push']({'type':'insertion','content':o(_0x25aa61,'*Insert:*\x20%0',this['getItemLabel'](_0x166dc5['element'],_0x166dc5['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x36dcd7['push']({'type':'deletion','content':o(_0x25aa61,'*Remove:*\x20%0',this['getItemLabel'](_0x166dc5['element'],_0x166dc5['quantity']))});continue;case'addContainer':_0x36dcd7['push']({'type':'insertion','content':o(_0x25aa61,'*Split:*\x20%0',this['getItemLabel'](_0x166dc5['element'],_0x166dc5['quantity']))});continue;case'removeContainer':_0x36dcd7['push']({'type':'deletion','content':o(_0x25aa61,'*Merge:*\x20%0',this['getItemLabel'](_0x166dc5['element'],_0x166dc5['quantity']))});continue;case'addFormat':_0x2ccaec['push'](_0x166dc5['key']);continue;case'removeFormat':_0x33f967['push'](_0x166dc5['key']);continue;default:_0x36dcd7['push'](_0x166dc5);}if(_0x2ccaec['length']){const _0x1d2b68=_0x2ccaec['map'](_0x34ef41=>this['_attributeLabels']['has'](_0x34ef41)?this['_attributeLabels']['get'](_0x34ef41):_0x34ef41)['join'](',\x20');_0x36dcd7['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1d2b68)});}if(_0x33f967['length']){const _0x3ca9c3=_0x33f967['map'](_0x4ec983=>this['_attributeLabels']['has'](_0x4ec983)?this['_attributeLabels']['get'](_0x4ec983):_0x4ec983)['join'](',\x20');_0x36dcd7['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3ca9c3)});}return _0x36dcd7;}['_handleCustomCallbackDescription'](_0x5e28ee){for(const _0x1e99a6 of this['_customCallbacks']){const _0x2f79f3=_0x1e99a6(_0x5e28ee);if(_0x2f79f3&&'type'in _0x2f79f3)return _0x2f79f3;}}['_handleAttributeSuggestionDescription'](_0x2baab3,_0x2570d2){const _0x2b39aa=_0x2570d2['data'],_0x3112e2=void 0x0===_0x2b39aa['newValue']?'removeFormat':'addFormat';_0x2baab3['push']({'type':_0x3112e2,'key':_0x2b39aa['key']});}['_handleRenameSuggestionDescription'](_0x5df15d,_0x384d3a){_0x5df15d['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x384d3a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x53d26d,_0x58934a,_0x1f0313){if(this['_addDescriptionItems'](_0x53d26d,_0x58934a),_0x1f0313&&_0x1f0313['getFirstRange']()&&!_0x58934a['getFirstRange']()['end']['isEqual'](_0x1f0313['getFirstRange']()['start'])){const _0x5486fa=_0x53d26d[_0x53d26d['length']-0x1],_0x4d4c5f='insertion'==_0x58934a['type']?'add':'remove';_0x5486fa&&'text'==_0x5486fa['type']&&(_0x5486fa[_0x4d4c5f]+='\x0a');}}}class V extends _0x328234{['afterInit'](){const _0x17c528=this['editor'],_0x39f7b9=_0x17c528['plugins']['get']('TrackChangesEditing');_0x17c528['commands']['get']('showAIAssistant')&&_0x39f7b9['enableCommand']('showAIAssistant');}}class U extends _0x328234{['afterInit'](){const _0x407c78=this['editor'],_0x4b2a5a=_0x407c78['locale'];if(!_0x407c78['plugins']['has']('AlignmentEditing'))return;const _0x1b3618=_0x407c78['plugins']['get']('TrackChangesEditing');_0x1b3618['enableDefaultAttributesIntegration']('alignment'),_0x1b3618['registerBlockAttribute']('alignment'),_0x1b3618['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4b2a5a,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x440ea5=this['editor'],_0x9e44e0=_0x440ea5['locale'];_0x440ea5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x376258=>{if('formatBlock'!=_0x376258['type'])return;const {data:_0x47e65d}=_0x376258;if(_0x47e65d&&'alignment'==_0x47e65d['commandName']){const _0x1aecd3=_0x47e65d['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x9e44e0,'*Format:*\x20%0',function(_0x281a97){switch(_0x281a97){case'left':return o(_0x9e44e0,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x9e44e0,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x9e44e0,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x9e44e0,'FORMAT_JUSTIFY_TEXT');}}(_0x1aecd3))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x328234{['afterInit'](){const _0x552ccc=this['editor'],_0x28f0ff=_0x552ccc['plugins']['get']('TrackChangesEditing'),_0x2c5ffe=_0x552ccc['locale'];for(const _0x1a90a7 of ti){if(!_0x552ccc['plugins']['has'](_0x1a90a7))continue;const _0x4698f1=_0x1a90a7['slice'](0x0,-0x7)['toLowerCase'](),_0x434c50='FORMAT_'+_0x4698f1['toUpperCase']();_0x28f0ff['enableDefaultAttributesIntegration'](_0x4698f1),_0x28f0ff['registerInlineAttribute'](_0x4698f1),_0x28f0ff['descriptionFactory']['registerAttributeLabel'](_0x4698f1,o(_0x2c5ffe,_0x434c50));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51260d=this['editor'],_0x103af9=_0x51260d['locale'],_0x4270c7=_0x51260d['plugins']['get']('TrackChangesEditing');function _0x464c18(_0x41b5e0,_0x590b87){_0x4270c7['descriptionFactory']['registerDescriptionCallback'](_0x589c4c=>{if('formatInline'!=_0x589c4c['type'])return;const {data:_0x3918a0}=_0x589c4c;return _0x3918a0&&_0x3918a0['commandName']===_0x41b5e0?_0x3918a0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x103af9,'*Format:*\x20%0',_0x590b87)}:{'type':'format','content':o(_0x103af9,'*Remove\x20format:*\x20%0',_0x590b87)}:void 0x0;});}_0x464c18('bold',o(_0x103af9,'FORMAT_BOLD')),_0x464c18('italic',o(_0x103af9,'FORMAT_ITALIC')),_0x464c18('underline',o(_0x103af9,'FORMAT_UNDERLINE')),_0x464c18('code',o(_0x103af9,'FORMAT_CODE')),_0x464c18('strikethrough',o(_0x103af9,'FORMAT_STRIKETHROUGH')),_0x464c18('subscript',o(_0x103af9,'FORMAT_SUBSCRIPT')),_0x464c18('superscript',o(_0x103af9,'FORMAT_SUPERSCRIPT'));}}class F extends _0x328234{['afterInit'](){const _0x4861b8=this['editor'],_0x4448b6=_0x4861b8['locale'];if(!_0x4861b8['plugins']['has']('BlockQuoteEditing'))return;const _0x5d01aa=_0x4861b8['plugins']['get']('TrackChangesEditing'),_0x34773a=this['editor']['commands']['get']('blockQuote');_0x5d01aa['enableCommand']('blockQuote',(_0x5d4fd3,_0x437466={})=>{const _0x45a7df=this['editor']['model']['document']['selection'],_0x212b06=_0x437466&&void 0x0!==_0x437466['forceValue']?_0x437466['forceValue']:!_0x34773a['value'];let _0x12a9ac=[];if(_0x212b06){const _0x77b9c7=Array['from'](_0x45a7df['getSelectedBlocks']())['filter'](_0x129209=>oo(_0x129209)||function(_0x3bf220,_0x481425){const _0x2b3e90=_0x481425['checkChild'](_0x3bf220['parent'],'blockQuote'),_0xcebe76=_0x481425['checkChild'](['$root','blockQuote'],_0x3bf220);return _0x2b3e90&&_0xcebe76;}(_0x129209,this['editor']['model']['schema']));_0x12a9ac=to(_0x77b9c7,_0x4861b8['model']);}else{const _0xd76021=Array['from'](_0x45a7df['getSelectedBlocks']())['filter'](_0x1f6d85=>oo(_0x1f6d85));_0x12a9ac=to(_0xd76021,_0x4861b8['model']);}_0x4861b8['model']['change'](()=>{for(const _0x2a75c9 of _0x12a9ac)_0x5d01aa['markBlockFormat'](_0x2a75c9,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x212b06}]});});}),_0x5d01aa['descriptionFactory']['registerDescriptionCallback'](_0x280625=>{const {data:_0x5c7e6c}=_0x280625;if(_0x5c7e6c&&'blockQuote'==_0x5c7e6c['commandName']){const _0x1b74a9=o(_0x4448b6,'ELEMENT_BLOCK_QUOTE');return _0x5c7e6c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4448b6,'*Set\x20format:*\x20%0',_0x1b74a9)}:{'type':'format','content':o(_0x4448b6,'*Remove\x20format:*\x20%0',_0x1b74a9)};}});}}function oo(_0x4231b1){return'blockQuote'==_0x4231b1['parent']['name'];}class L extends _0x328234{['afterInit'](){const _0x3d1d28=this['editor'];_0x3d1d28['plugins']['has']('CaseChange')&&(_0x3d1d28['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3d1d28['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3d1d28['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x328234{['afterInit'](){const _0x1876ba=this['editor'];_0x1876ba['commands']['get']('ckbox')&&_0x1876ba['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x328234{['afterInit'](){const _0x4ed767=this['editor'];if(!_0x4ed767['plugins']['has']('CodeBlock'))return;const _0x44100e=_0x4ed767['plugins']['get']('TrackChangesEditing'),_0x303ec3=_0x4ed767['locale'],_0x20d9d8=_0x4ed767['config']['get']('codeBlock')['languages'],_0x53da85=_0x4ed767['commands']['get']('codeBlock');_0x44100e['enableCommand']('indentCodeBlock'),_0x44100e['enableCommand']('outdentCodeBlock'),_0x44100e['enableCommand']('codeBlock',(_0x5bf2fa,_0x17a816={})=>{const _0x1e01df=_0x4ed767['model'],_0x563693=_0x4ed767['model']['document']['selection'],_0x48adc9=_0x17a816&&void 0x0!==_0x17a816['forceValue']?_0x17a816['forceValue']:!_0x53da85['value'];let _0xda6451;_0x17a816['language']||(_0x17a816['language']=_0x20d9d8[0x0]['language']),_0xda6451=_0x48adc9?Array['from'](_0x563693['getSelectedBlocks']())['filter'](_0x41ac4a=>eo(_0x41ac4a)||function(_0x5c4c14,_0x4474f7){if(_0x5c4c14['is']('rootElement')||_0x4474f7['isLimit'](_0x5c4c14))return!0x1;return _0x4474f7['checkChild'](_0x5c4c14['parent'],'codeBlock');}(_0x41ac4a,_0x1e01df['schema'])):Array['from'](_0x563693['getSelectedBlocks']())['filter'](_0x152ac1=>eo(_0x152ac1));const _0x2a983e=to(_0xda6451,_0x1e01df);_0x1e01df['change'](()=>{for(const _0x288b8e of _0x2a983e)_0x44100e['markBlockFormat'](_0x288b8e,{'commandName':'codeBlock','commandParams':[{..._0x17a816,'forceValue':_0x48adc9}],'formatGroupId':'blockName'});});}),(_0x44100e['descriptionFactory']['registerElementLabel']('codeBlock',_0x4877d8=>o(_0x303ec3,'ELEMENT_CODE_BLOCK',_0x4877d8)),_0x44100e['descriptionFactory']['registerDescriptionCallback'](_0x591ae1=>{if('formatBlock'!=_0x591ae1['type'])return;const _0x51c9ba=_0x303ec3['t'],{data:_0x42faf7}=_0x591ae1;if(!_0x42faf7||'codeBlock'!=_0x42faf7['commandName'])return;const _0x3be676=_0x42faf7['commandParams'][0x0]['language'],_0x3c344c=_0x51c9ba(_0x20d9d8['find'](_0x535f9f=>_0x535f9f['language']===_0x3be676)['label'])['toLowerCase']();return _0x42faf7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x303ec3,'*Set\x20format:*\x20%0',o(_0x303ec3,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3c344c+')')}:{'type':'format','content':o(_0x303ec3,'*Remove\x20format:*\x20%0',o(_0x303ec3,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x78d299){return'codeBlock'==_0x78d299['name'];}class q extends _0x328234{['afterInit'](){const _0x20cf6a=this['editor'];if(!_0x20cf6a['plugins']['has']('CommentsEditing'))return;_0x20cf6a['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x145108,_0x207245,_0x56c362){const _0x464ae2=[];for(const _0x898567 of _0x207245['getItems']())_0x898567['hasAttribute'](_0x145108)&&_0x464ae2['push'](_0x56c362['createRangeOn'](_0x898567));return _0x464ae2;}function _e(_0x42212e,_0x164b0b,{showActiveMarker:_0x33f255=!0x0}={}){const _0x1ca10d=_0x42212e['plugins']['get']('TrackChangesEditing');return(_0x50f819,_0x9b869f,_0x372bf9)=>{if(!_0x372bf9['consumable']['test'](_0x9b869f['markerRange'],_0x50f819['name']))return;const _0x4504ec=_0x9b869f['markerRange']['getWalker'](),_0x3e6d4e=_0x9b869f['markerRange']['start'],_0x23832c=_0x42212e['model']['schema'];let _0x300446=null,_0x46872d=null,_0x48b8d0=!0x1,_0x23c8a9=!0x1;for(const _0x39a901 of _0x4504ec){const _0x595eb4=_0x39a901['item'];_0x48b8d0=_0x48b8d0||_0x23832c['isContent'](_0x595eb4);const _0x4bd72e=_0x372bf9['mapper']['toViewElement'](_0x595eb4);if(_0x4bd72e&&_0x4bd72e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x39a901['type']&&(_0x23832c['isBlock'](_0x595eb4)&&!_0x23832c['isLimit'](_0x595eb4)&&(_0x595eb4['nextSibling']||_0x3e6d4e['isAtEnd']?_0x300446&&_0x300446['parent']==_0x595eb4||(_0x300446=_0x595eb4,_0x203a3a(_0x39a901['previousPosition']),_0x23c8a9=!0x0):_0x46872d=_0x46872d||_0x39a901['previousPosition']));}function _0x203a3a(_0x2071d7){const {authorId:_0xb3cf9a}=_0x1ca10d['_splitMarkerName'](_0x9b869f['markerName']),_0x199c81=_0x372bf9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x164b0b,'data-author-id':_0xb3cf9a}),_0x120ce4=_0x372bf9['mapper']['toViewPosition'](_0x2071d7);_0x33f255&&_0x1ca10d['activeMarkers']['includes'](_0x9b869f['markerName'])&&_0x372bf9['writer']['addClass']('ck-suggestion-marker--active',_0x199c81),_0x372bf9['writer']['insert'](_0x120ce4,_0x199c81),_0x372bf9['mapper']['bindElementToMarker'](_0x199c81,_0x9b869f['markerName']);}_0x48b8d0||_0x23c8a9||!_0x46872d||_0x203a3a(_0x46872d);};}class z extends _0x328234{static get['requires'](){return[_0x131b3f];}['init'](){const _0x5a6efd=this['editor'],_0x4709fa=_0x5a6efd['plugins']['get']('TrackChangesEditing');_0x4709fa['enableCommand']('delete');const _0x7aedb5=_0x5a6efd['commands']['get']('deleteForward');_0x4709fa['enableCommand']('deleteForward',(_0x379ab2,_0x25dea3={})=>{const _0x189079=_0x5a6efd['model']['createSelection'](_0x5a6efd['model']['document']['selection']);_0x189079['isCollapsed']&&_0x5a6efd['model']['modifySelection'](_0x189079,{'direction':'forward','unit':_0x25dea3['unit']});const _0x70cec8=_0x189079['getFirstRange'](),_0x440bdb=_0xf41792['fromRange'](_0x70cec8);let _0x16305b;_0x379ab2(_0x25dea3),_0x16305b='$graveyard'==_0x440bdb['root']['rootName']?_0x5a6efd['model']['createRange'](_0x70cec8['start']):_0x5a6efd['model']['createRange'](_0x440bdb['start'],_0x440bdb['end']),_0x440bdb['detach'](),_0x5a6efd['model']['enqueueChange'](_0x7aedb5['buffer']['batch'],_0x364e9c=>{_0x7aedb5['buffer']['lock'](),_0x364e9c['setSelection'](_0x364e9c['createRange'](_0x16305b['end'])),_0x7aedb5['buffer']['unlock']();});}),_0x5a6efd['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x5a6efd,'merge'),{'priority':'high'}),_0x5a6efd['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x9ad387,_0xcb4e52,_0x47505d)=>{_0x47505d['options']['showSuggestionHighlights']&&_e(_0x5a6efd,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x9ad387,_0xcb4e52,_0x47505d);},{'priority':'high'}),_0x5a6efd['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x128859,_0x7849ba,_0x51664c)=>{const _0x3134e5=_0x51664c['mapper']['markerNameToElements'](_0x7849ba['markerName']);if(_0x3134e5){for(const _0x365127 of _0x3134e5)_0x365127['is']('uiElement')&&(_0x51664c['mapper']['unbindElementFromMarkerName'](_0x365127,_0x7849ba['markerName']),_0x51664c['writer']['remove'](_0x365127));}},{'priority':'high'});}}class K extends _0x328234{['afterInit'](){const _0x26a80e=this['editor'];if(!_0x26a80e['plugins']['has']('ListEditing'))return;const _0x3de7c5=_0x26a80e['locale'],_0x4d09d5=_0x26a80e['plugins']['get']('TrackChangesEditing'),_0x4cce2f=_0x26a80e['plugins']['has']('TodoListEditing'),_0x3b3633=!!_0x26a80e['config']['get']('list.multiBlock');function _0x1797af(_0x1a63b0){return{'type':'format','content':''+o(_0x3de7c5,'*Set\x20format:*\x20%0',_0x1a63b0)};}function _0x23b960(_0x1156b3){return{'type':'format','content':''+o(_0x3de7c5,'*Remove\x20format:*\x20%0',_0x1156b3)};}_0x4d09d5['enableDefaultAttributesIntegration']('numberedList'),_0x4d09d5['enableDefaultAttributesIntegration']('bulletedList'),_0x4d09d5['enableDefaultAttributesIntegration']('customNumberedList'),_0x4d09d5['enableDefaultAttributesIntegration']('customBulletedList'),_0x4d09d5['enableDefaultAttributesIntegration']('indentList'),_0x4d09d5['enableDefaultAttributesIntegration']('outdentList'),_0x4d09d5['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4d09d5['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4d09d5['registerBlockAttribute']('listItemId'),_0x4d09d5['registerBlockAttribute']('listType'),_0x4d09d5['registerBlockAttribute']('listIndent'),_0x3b3633&&(_0x4d09d5['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4d09d5['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4cce2f&&(_0x4d09d5['enableDefaultAttributesIntegration']('todoList'),_0x4d09d5['enableDefaultAttributesIntegration']('checkTodoList'),_0x4d09d5['registerBlockAttribute']('todoListChecked'),_0x4d09d5['descriptionFactory']['registerDescriptionCallback'](_0x4f938f=>{const {data:_0x2dac9a}=_0x4f938f;if(_0x2dac9a&&'todoListChecked'==_0x2dac9a['key'])return{'type':'format','content':_0x2dac9a['newValue']?o(_0x3de7c5,'*Check\x20item*'):o(_0x3de7c5,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x77040=>{if(_0x77040['batch']['isUndo'])return!0x1;let _0x1dfa8d=!0x1;const _0xb4b577=_0x4d09d5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f5ed0=>'todoListChecked'===_0x4d09d5['_getAttributeKey'](_0x4f5ed0));for(const _0x58ef1f of _0xb4b577){'todo'!=_0x58ef1f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4d09d5['_findSuggestions'](_0x58ef1f['getFirstRange'](),'attribute')['find'](_0x85b325=>'listType'===_0x4d09d5['_getAttributeKey'](_0x85b325['suggestion']))||(_0x77040['removeMarker'](_0x58ef1f['getFirstMarker']()),_0x1dfa8d=!0x0));}return _0x1dfa8d;})),_0x4d09d5['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x3de7c5,'FORMAT_INDENT'));const _0x260691={'type':'format','content':''};_0x4d09d5['descriptionFactory']['registerDescriptionCallback'](_0x2d83aa=>{const {data:_0xbc000d}=_0x2d83aa;if(!_0xbc000d||'listType'!=_0xbc000d['key'])return;let _0x4ca0a5=_0x2d83aa['head'];for(;_0x4ca0a5;){if(_0x4ca0a5['data']&&(('listStyle'==_0x4ca0a5['data']['key']||'listMarkerStyle'==_0x4ca0a5['data']['key'])&&(_0x4ca0a5['data']['newValue']&&'default'!=_0x4ca0a5['data']['newValue']||'default'!=_0x4ca0a5['data']['oldValue']&&!_0xbc000d['newValue'])||!_0x3b3633&&_0x4ca0a5['data']['key']==m))return _0x260691;_0x4ca0a5=_0x4ca0a5['next'];}if(null==_0xbc000d['newValue'])switch(_0xbc000d['oldValue']){case'bulleted':return _0x23b960(o(_0x3de7c5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x23b960(o(_0x3de7c5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x23b960(o(_0x3de7c5,'ELEMENT_TODO_LIST'));}switch(_0xbc000d['newValue']){case'bulleted':return _0x1797af(o(_0x3de7c5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1797af(o(_0x3de7c5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1797af(o(_0x3de7c5,'ELEMENT_TODO_LIST'));}}),_0x4d09d5['descriptionFactory']['registerDescriptionCallback'](_0x1b51e3=>{const {data:_0x333e3a}=_0x1b51e3;if(_0x333e3a&&'listIndent'==_0x333e3a['key'])return null==_0x333e3a['newValue']||null==_0x333e3a['oldValue']&&0x0==_0x333e3a['newValue']?_0x260691:void 0x0;}),_0x4d09d5['descriptionFactory']['registerDescriptionCallback'](_0x3b6e32=>{if('attribute'!=_0x3b6e32['type'])return;const {data:_0x266416}=_0x3b6e32;if(!_0x266416||'listItemId'!=_0x266416['key'])return;const _0x5bc816=Ee(_0x3b6e32);return'newValue'==_0x5bc816?{'type':'format','content':o(_0x3de7c5,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5bc816?{'type':'format','content':o(_0x3de7c5,'*Split:*\x20list\x20item')}:_0x260691;}),_0x26a80e['model']['document']['registerPostFixer'](_0x263e8c=>this['listItemIdFixer'](_0x263e8c)),_0x26a80e['model']['document']['registerPostFixer'](_0x14160c=>this['noTrackChangesFixer'](_0x14160c)),_0x26a80e['model']['document']['on']('change:data',(_0x4c39c2,_0x1e9fa2)=>{if(_0x1e9fa2['isUndo']||!_0x1e9fa2['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x334d02){if(_0x334d02['batch']['isUndo']||!_0x334d02['batch']['isLocal'])return!0x1;let _0x59eaf2=!0x1;const _0x212166=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1e471f=>_0x1e471f['data']&&'listItemId'==_0x1e471f['data']['key'])['filter'](_0x3a64ea=>_0x3a64ea['data']['newValue']&&_0x3a64ea['data']['oldValue']);for(const _0x4e1fb7 of _0x212166)Ee(_0x4e1fb7)||(_0x334d02['removeMarker'](_0x4e1fb7['getFirstMarker']()),_0x59eaf2=!0x0);return _0x59eaf2;}['noTrackChangesFixer'](_0x59288b){if(_0x59288b['batch']['isUndo']||!_0x59288b['batch']['isLocal'])return!0x1;const _0x1248de=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1248de['trackChangesCommand']['value'])return!0x1;let _0x4d0457=!0x1;const _0x32e824=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x46427a=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x27fbee=>'attribute'==_0x27fbee['type'])['filter'](_0x22438c=>_0x32e824['includes'](_0x22438c['attributeKey']));if(0x0==_0x46427a['length'])return _0x4d0457;for(const _0x4d331b of _0x46427a){const _0x50d591=_0x1248de['_findSuggestions'](_0x4d331b['range'],'attribute')['filter'](_0x3c7e5d=>!_0x3c7e5d['meta']['isNextTo'])['map'](_0x3a63f8=>_0x3a63f8['suggestion'])['filter'](_0x6a3ce9=>{const _0x46b541=_0x1248de['_getAttributeKey'](_0x6a3ce9);return _0x32e824['includes'](_0x46b541);});if(_0x50d591['length']){for(const _0x33fe8b of _0x50d591)_0x59288b['removeMarker'](_0x33fe8b['getFirstMarker']());_0x4d0457=!0x0;}}return _0x4d0457;}['assureChains'](){const _0x2a8ebd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x581098=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x33cc3e;const _0x5557b2=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x39c0a3=>{if(_0x39c0a3['data']['oldRange']||!_0x39c0a3['data']['newRange'])return null;if(!_0x39c0a3['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x87f24f}=_0x2a8ebd['_splitMarkerName'](_0x39c0a3['name']);if(!_0x2a8ebd['hasSuggestion'](_0x87f24f))return null;const _0x3127ef=_0x2a8ebd['getSuggestion'](_0x87f24f);return _0x581098['includes'](_0x3127ef['data']['key']);})['map'](_0x567a37=>{const {id:_0x36f801}=_0x2a8ebd['_splitMarkerName'](_0x567a37['name']),_0x1237c2=_0x2a8ebd['getSuggestion'](_0x36f801);return _0x33cc3e=_0x1237c2['attributes']['groupId'],_0x1237c2['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5557b2['size'])return;const _0x2985b3=_0x2a8ebd['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1dba0b=>'attribute'==_0x1dba0b['type']&&_0x1dba0b['data']&&_0x581098['includes'](_0x1dba0b['data']['key'])&&_0x1dba0b['attributes']['groupId']!=_0x33cc3e)['map'](_0x1209cf=>({'listItem':_0x1209cf['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1209cf['attributes']['groupId']})),_0x56453c=new Set();for(const {groupId:_0x4a4531,listItem:_0x738256}of _0x2985b3)_0x5557b2['has'](_0x738256)&&_0x56453c['add'](_0x4a4531);for(const _0x106a6f of _0x2a8ebd['getSuggestions']())_0x56453c['has'](_0x106a6f['attributes']['groupId'])&&_0x106a6f['setAttribute']('groupId',_0x33cc3e);}['_supportLegacySuggestions'](){const _0x2e580f=this['editor'],_0x30df29=_0x2e580f['locale'],_0x7fef6b=_0x2e580f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x7fef6b['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x987560,_0x5de21b){const _0x5cba58=[];for(let _0x1c516f of _0x987560)_0x1c516f['start']['nodeAfter']===_0x1c516f['end']['parent']&&(_0x1c516f=_0x2e580f['model']['createRange'](_0x2e580f['model']['createPositionAt'](_0x1c516f['start']['nodeAfter'],0x0))),_0x5cba58['push'](_0x1c516f);_0x2e580f['model']['change'](_0x1c8f32=>{const _0x44aea9=_0x2e580f['model']['document']['selection'],_0x58c879=Array['from'](_0x44aea9['getRanges']())['map'](_0x2ad36f=>_0xf41792['fromRange'](_0x2ad36f));_0x1c8f32['setSelection'](_0x5cba58),_0x2e580f['commands']['get'](_0x5de21b['commandName'])['refresh'](),_0x5de21b['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2e580f['execute'](_0x5de21b['commandName'],..._0x5de21b['commandParams']),_0x1c8f32['setSelection'](_0x58c879);for(const _0x47017c of _0x58c879)_0x47017c['detach']();});}),_0x7fef6b['descriptionFactory']['registerElementLabel'](function(_0x126d29){const _0x59cad3=!_0x2e580f['model']['schema']['isObject'](_0x126d29),_0x3e8e7a=_0x126d29['previousSibling'],_0x2ad84f=_0x126d29['nextSibling'],_0x1b2663=_0x126d29['getAttribute']('listItemId'),_0x540b8b=!_0x3e8e7a||_0x3e8e7a['getAttribute']('listItemId')!==_0x1b2663,_0xea601f=!_0x2ad84f||_0x2ad84f['getAttribute']('listItemId')!==_0x1b2663;return _0x59cad3&&Boolean(_0x1b2663)&&_0x540b8b&&_0xea601f;},_0x442525=>o(_0x30df29,'ELEMENT_LIST_ITEM',_0x442525));}['_registerLegacyDescription'](){const _0x58f532=this['editor'],_0x4ce307=_0x58f532['locale'];function _0x47e99a(_0x11825a){const _0x44dca2=_0x58f532['commands']['get']('bulletedList')['value'],_0x5909e0=_0x58f532['commands']['get']('numberedList')['value'];return'numberedList'===_0x11825a?_0x44dca2:_0x5909e0;}_0x58f532['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x48a5bc){if('formatBlock'!=_0x48a5bc['type'])return;const {data:_0x3dcf95}=_0x48a5bc;if(!_0x3dcf95)return;let _0x4b1f20,_0x18ed21,_0x432c76,_0x2fd728;switch(_0x3dcf95['commandName']){case'bulletedList':_0x432c76=_0x3dcf95['commandParams'][0x0]['forceValue'],_0x2fd728=_0x47e99a(_0x3dcf95['commandName']),_0x4b1f20=_0x432c76?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2fd728&&_0x58f532['config']['get']('list.multiBlock')||(_0x4b1f20='*Change\x20to:*\x20%0'),_0x18ed21={'type':'format','content':o(_0x4ce307,_0x4b1f20,o(_0x4ce307,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x432c76=_0x3dcf95['commandParams'][0x0]['forceValue'],_0x2fd728=_0x47e99a(_0x3dcf95['commandName']),_0x4b1f20=_0x432c76?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2fd728&&_0x58f532['config']['get']('list.multiBlock')||(_0x4b1f20='*Change\x20to:*\x20%0'),_0x18ed21={'type':'format','content':o(_0x4ce307,_0x4b1f20,o(_0x4ce307,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4b1f20='*Indent:*\x20%0',_0x18ed21={'type':'format','content':o(_0x4ce307,_0x4b1f20,o(_0x4ce307,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4b1f20=function(_0x157d1d){const _0x4e5c73=_0x157d1d['getFirstRange']();let _0x2547d7=_0x4e5c73['start']['nodeAfter'];for(;_0x2547d7&&_0x4e5c73['containsItem'](_0x2547d7);){if(_0x2547d7['getAttribute']('listIndent')>0x0)return!0x1;_0x2547d7=_0x2547d7['nextSibling'];}return!0x0;}(_0x48a5bc)?o(_0x4ce307,'*Format:*\x20remove\x20from\x20%0',o(_0x4ce307,function(_0x63c3ea){return'ELEMENT_'+_0x63c3ea['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x48a5bc))):o(_0x4ce307,'*Outdent:*\x20%0',o(_0x4ce307,'ELEMENT_LIST_ITEM')),_0x18ed21={'type':'format','content':_0x4b1f20};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3dcf95['multipleBlocks']&&(_0x4b1f20='*Merge:*\x20%0',_0x18ed21={'type':'deletion','content':o(_0x4ce307,_0x4b1f20,o(_0x4ce307,'ELEMENT_LIST_ITEM'))});}return _0x18ed21;});}}function Ee(_0x3b6a29){let _0x1b073c=_0x3b6a29['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1b073c;){const _0x2dd3ad=_0x1b073c['getAttribute']('listItemId');if(!_0x2dd3ad)return!0x1;if(_0x2dd3ad==_0x3b6a29['data']['newValue'])return'newValue';if(_0x2dd3ad==_0x3b6a29['data']['oldValue'])return'oldValue';_0x1b073c=_0x1b073c['previousSibling'];}return!0x1;}class pe extends _0x328234{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3b6137=this['editor']['config']['get']('list.properties'),_0x26072a=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b6137['styles']&&(_0x26072a['enableDefaultAttributesIntegration']('listStyle'),_0x26072a['registerBlockAttribute']('listStyle')),_0x3b6137['reversed']&&(_0x26072a['enableDefaultAttributesIntegration']('listReversed'),_0x26072a['registerBlockAttribute']('listReversed')),_0x3b6137['startIndex']&&(_0x26072a['enableDefaultAttributesIntegration']('listStart'),_0x26072a['registerBlockAttribute']('listStart'));const _0x43d0a6={'type':'format','content':''};_0x26072a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x11df2e=this['editor']['locale'];_0x26072a['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x11df2e,'FORMAT_LIST_REVERSED')),_0x26072a['descriptionFactory']['registerDescriptionCallback'](_0x30fc97=>{const {data:_0x264c8e}=_0x30fc97;if(_0x264c8e&&'listReversed'==_0x264c8e['key'])return null==_0x264c8e['newValue']||0x0==_0x264c8e['newValue']&&null==_0x264c8e['oldValue']?_0x43d0a6:void 0x0;}),_0x26072a['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x11df2e,'FORMAT_LIST_START')),_0x26072a['descriptionFactory']['registerDescriptionCallback'](_0x570e5e=>{const {data:_0x3a89f6}=_0x570e5e;if(_0x3a89f6&&'listStart'==_0x3a89f6['key'])return null==_0x3a89f6['newValue']||0x1==_0x3a89f6['newValue']&&null==_0x3a89f6['oldValue']?_0x43d0a6:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4bf963=>{if(_0x4bf963['batch']['isUndo'])return!0x1;let _0x34520b=!0x1;const _0x20cfbf=_0x26072a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4bfc58=>{const _0x2419bd=_0x26072a['_getAttributeKey'](_0x4bfc58);return'listStart'==_0x2419bd||'listReversed'==_0x2419bd;});for(const _0x4c0bb9 of _0x20cfbf){const _0xb3997d=_0x4c0bb9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xb3997d||'customNumbered'==_0xb3997d)continue;_0x26072a['_findSuggestions'](_0x4c0bb9['getFirstRange'](),'attribute')['find'](_0x132850=>'listType'==_0x26072a['_getAttributeKey'](_0x132850['suggestion']))||(_0x4bf963['removeMarker'](_0x4c0bb9['getFirstMarker']()),_0x34520b=!0x0);}return _0x34520b;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x58f45c){const _0x3b2d4c=this['editor']['locale'],{data:_0x40bd76}=_0x58f45c,_0x28a54f={'type':'format','content':''};if(!_0x40bd76||'listStyle'!=_0x40bd76['key'])return;if(!_0x40bd76['oldValue'])return'default'==_0x40bd76['newValue']?_0x28a54f:{'type':'format','content':''+o(_0x3b2d4c,'*Set\x20format:*\x20%0',o(_0x3b2d4c,this['_getTranslationKeyForListStyle'](_0x40bd76['newValue'])))};if(!_0x40bd76['newValue']){if('default'==_0x40bd76['oldValue'])return _0x28a54f;let _0x55dcf7=_0x58f45c['head'];for(;_0x55dcf7;){if(_0x55dcf7['data']&&'listType'==_0x55dcf7['data']['key']&&_0x55dcf7['data']['newValue'])return _0x28a54f;_0x55dcf7=_0x55dcf7['next'];}return{'type':'format','content':''+o(_0x3b2d4c,'*Remove\x20format:*\x20%0',o(_0x3b2d4c,this['_getTranslationKeyForListStyle'](_0x40bd76['oldValue'])))};}if('default'!=_0x40bd76['newValue'])return{'type':'format','content':''+o(_0x3b2d4c,'*Set\x20format:*\x20%0',o(_0x3b2d4c,this['_getTranslationKeyForListStyle'](_0x40bd76['newValue'])))};let _0x3b4897=_0x58f45c['head'];for(;_0x3b4897;){if(_0x3b4897['data']&&'listType'==_0x3b4897['data']['key']&&_0x3b4897['data']['newValue']&&_0x3b4897['data']['oldValue'])return _0x28a54f;_0x3b4897=_0x3b4897['next'];}return{'type':'format','content':o(_0x3b2d4c,'*Set\x20format:*\x20%0',o(_0x3b2d4c,'ELEMENT_'+_0x58f45c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x13e302=this['editor'],_0x240214=_0x13e302['locale'];_0x13e302['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1138ae=>{if('formatBlock'!=_0x1138ae['type'])return;const {data:_0x13a418}=_0x1138ae;if(!_0x13a418)return;let _0x436bfa,_0x40baee;switch(_0x13a418['commandName']){case'listStyle':_0x436bfa='*Change\x20to:*\x20%0',_0x40baee={'type':'format','content':o(_0x240214,_0x436bfa,o(_0x240214,this['_getTranslationKeyForListStyle'](_0x13a418['commandParams'][0x0]['type'])))};break;case'listReversed':_0x436bfa=_0x13a418['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x40baee={'type':'format','content':o(_0x240214,_0x436bfa)};break;case'listStart':_0x436bfa='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x40baee={'type':'format','content':o(_0x240214,_0x436bfa,_0x13a418['commandParams'][0x0]['startIndex'])};}return _0x40baee;});}['_getTranslationKeyForListStyle'](_0x369fbe){return'ELEMENT_'+function(_0x284c2a){if(ye['includes'](_0x284c2a))return'bulleted';if(Se['includes'](_0x284c2a))return'numbered';return null;}(_0x369fbe)['toUpperCase']()+'_LIST_'+_0x369fbe['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x328234{static get['requires'](){return[_0x5e4ac3];}['init'](){const _0x4f7635=this['editor'],_0x15ba43=_0x4f7635['plugins']['get']('TrackChangesEditing'),_0x658cce=_0x4f7635['commands']['get']('enter');_0x15ba43['enableCommand']('enter',()=>{_0x4f7635['model']['change'](_0x48a15a=>{const _0x5d736c=_0x4f7635['model']['document']['selection'],_0x2d48a5=_0x5d736c['getFirstPosition'](),_0x3a6c6f=_0xf41792['fromRange'](_0x5d736c['getFirstRange']());if(_0x658cce['enterBlock'](_0x48a15a)){const _0x39eb19=_0x4f7635['model']['createPositionAt'](_0x2d48a5['parent']['nextSibling'],0x0),_0x4b26fe=_0x48a15a['createRange'](_0x2d48a5,_0x39eb19);_0x15ba43['markInsertion'](_0x4b26fe);}else _0x48a15a['setSelection'](_0x48a15a['createRange'](_0x3a6c6f['end']));_0x3a6c6f['detach'](),_0x658cce['fire']('afterExecute',{'writer':_0x48a15a});});}),_0x4f7635['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x4f7635,'split'),{'priority':'high'}),_0x4f7635['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2fc592,_0x492212,_0x2bb509)=>{const _0x4cf80d=_0x2bb509['mapper']['markerNameToElements'](_0x492212['markerName']);if(_0x4cf80d){for(const _0x1e2374 of _0x4cf80d)_0x1e2374['hasClass']('ck-suggestion-marker-split')&&(_0x2bb509['mapper']['unbindElementFromMarkerName'](_0x1e2374,_0x492212['markerName']),_0x2bb509['writer']['remove'](_0x1e2374));}},{'priority':'high'}),_0x4f7635['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x13626f,_0x495989,_0x1bc098)=>{_0x1bc098['options']['showSuggestionHighlights']&&_e(_0x4f7635,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x13626f,_0x495989,_0x1bc098);},{'priority':'high'});}}class X extends _0x328234{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x10808c=this['editor']['plugins']['get']('TrackChangesEditing');_0x10808c['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x10808c['enableCommand']('findNext'),_0x10808c['enableCommand']('findPrevious'),_0x10808c['enableCommand']('replace'),_0x10808c['enableCommand']('replaceAll');}['handleFindCommand'](_0x54b8b7,_0x2b778d,_0x537837={}){const _0x9dae62=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x54b8b7(_0x9adcba=>{let _0x3a3609=('string'==typeof _0x2b778d?_0x9dae62['findByTextCallback'](_0x2b778d,_0x537837):_0x2b778d)(_0x9adcba);Array['isArray'](_0x3a3609)&&(_0x3a3609={'results':_0x3a3609,'searchText':'string'==typeof _0x2b778d?_0x2b778d:''});const _0x49fb59=_0x3a3609['results']['filter'](_0x4e61e5=>!0x1===this['_isInDeletionRange'](_0x4e61e5,_0x9adcba['item']));return{..._0x3a3609,'results':_0x49fb59};},_0x537837);}['_isInDeletionRange'](_0x10158b,_0x33fdb3){const _0x407656=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x33fdb3,_0x10158b['start']),this['editor']['model']['createPositionAt'](_0x33fdb3,_0x10158b['end']));for(const _0x1bb302 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x407656['getIntersection'](_0x1bb302['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 _0x328234{['afterInit'](){const _0x5462b1=this['editor']['locale'],_0x593919=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3d788f,commandName:_0xaf5d7f}of ro)this['editor']['plugins']['has'](_0x3d788f)&&(_0x593919['enableDefaultAttributesIntegration'](_0xaf5d7f),_0x593919['registerInlineAttribute'](_0xaf5d7f));_0x593919['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5462b1,'FORMAT_FONT_SIZE')),_0x593919['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5462b1,'FORMAT_FONT_FAMILY')),_0x593919['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5462b1,'FORMAT_FONT_COLOR')),_0x593919['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5462b1,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38a384=this['editor'],_0x31b0b0=_0x38a384['locale'];_0x38a384['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd40a03=>{const _0x3d51fe=_0x31b0b0['t'];if('formatInline'!=_0xd40a03['type'])return;const {data:_0x403084}=_0xd40a03;if(null!=_0x403084){if('fontSize'==_0x403084['commandName']){const _0x7cbc75=_0x403084['commandParams'][0x0]['value'];if(_0x7cbc75){const _0x3bc84e=_0x3d51fe(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3a3c5f=>_0x3a3c5f['model']==_0x7cbc75)['title'])['toLowerCase']();return{'type':'format','content':o(_0x31b0b0,'*Set\x20font\x20size:*\x20%0',_0x3bc84e)};}return{'type':'format','content':o(_0x31b0b0,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x403084['commandName']){const _0x26d951=_0x403084['commandParams'][0x0]['value'];return _0x26d951?{'type':'format','content':o(_0x31b0b0,'*Set\x20font\x20family:*\x20%0',_0x26d951)}:{'type':'format','content':o(_0x31b0b0,'*Reset\x20font\x20family*')};}if('fontColor'==_0x403084['commandName']){const _0x2560c8=_0x403084['commandParams'][0x0]['value'];if(_0x2560c8){const _0x6de905=_0x4bf0f0(this['editor']['config']['get']('fontColor.colors'))['find'](_0x44458b=>_0x44458b['model']==_0x2560c8);let _0x147e14=_0x2560c8,_0x33c8ad='';return _0x6de905&&(_0x147e14=_0x6de905['label'],_0x33c8ad=_0x3d51fe(_0x147e14)['toLowerCase']()),{'type':'format','content':o(_0x31b0b0,'*Set\x20font\x20color:*\x20%0',_0x33c8ad)['trim'](),'color':{'value':_0x2560c8,'title':_0x33c8ad||_0x147e14}};}return{'type':'format','content':o(_0x31b0b0,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x403084['commandName']){const _0x4ad53c=_0x403084['commandParams'][0x0]['value'];if(_0x4ad53c){const _0x382b85=_0x4bf0f0(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x488a16=>_0x488a16['model']==_0x4ad53c);let _0x260c9e=_0x4ad53c,_0x4290db='';return _0x382b85&&(_0x260c9e=_0x382b85['label'],_0x4290db=_0x3d51fe(_0x260c9e)['toLowerCase']()),{'type':'format','content':o(_0x31b0b0,'*Set\x20font\x20background\x20color:*\x20%0',_0x4290db)['trim'](),'color':{'value':_0x4ad53c,'title':_0x4290db||_0x260c9e}};}return{'type':'format','content':o(_0x31b0b0,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x328234{['afterInit'](){const _0x2f11ef=this['editor'],_0x3c34c2=_0x2f11ef['plugins']['get']('TrackChangesEditing'),_0x3e8c80=_0x2f11ef['commands']['get']('copyFormat'),_0x34b105=_0x2f11ef['commands']['get']('pasteFormat');_0x3e8c80&&_0x34b105&&(_0x3c34c2['enableDefaultAttributesIntegration']('pasteFormat'),_0x3c34c2['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1772fb=this['editor'],_0x2eedd8=_0x1772fb['locale'];_0x1772fb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47b1ba=>{if('formatBlock'!=_0x47b1ba['type']&&'formatInline'!=_0x47b1ba['type'])return;const {data:_0x1d27ab}=_0x47b1ba;if(_0x1d27ab&&'pasteFormat'===_0x1d27ab['commandName']){const _0x275af8=[],_0x50a84e=_0x1d27ab['commandParams'][0x0];for(const [_0x341066,_0x1dd38e]of Object['entries'](_0x50a84e))_0x275af8['push'](so(_0x1772fb,_0x341066,_0x1dd38e));return _0x275af8['length']?{'type':'format','content':o(_0x2eedd8,'*Set\x20format\x20to:*\x20%0',_0x275af8['join'](',\x20'))}:{'type':'format','content':o(_0x2eedd8,'*Remove\x20all\x20formatting*')};}});}}function so(_0x12a4d5,_0x2beb91,_0x22b7e2){const _0x177014=_0x12a4d5['locale']['t'],_0x2ac029=_0x2beb91['split'](/(?=[A-Z])/)['join']('\x20'),_0x13723f=_0x177014(_0x2ac029['charAt'](0x0)['toUpperCase']()+_0x2ac029['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x22b7e2)return _0x13723f;if('fontColor'===_0x2beb91||'fontBackgroundColor'===_0x2beb91){const _0x3f44e7=_0x4bf0f0(_0x12a4d5['config']['get']('fontColor.colors'))['find'](_0x2b5c5f=>_0x2b5c5f['model']==_0x22b7e2);return _0x13723f+'\x20('+(_0x3f44e7?_0x177014(_0x3f44e7['label'])['toLowerCase']():_0x22b7e2)+')';}if('fontSize'===_0x2beb91&&isNaN(parseFloat(_0x22b7e2))){const _0x34c25e=_0x12a4d5['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x12a4d5['config']['get']('fontSize.options'))['find'](_0x333df2=>_0x333df2['model']==_0x22b7e2);return _0x13723f+'\x20('+(_0x34c25e?_0x177014(_0x34c25e['title'])['toLowerCase']():_0x22b7e2)+')';}return _0x13723f+'\x20('+_0x22b7e2+')';}class tt extends _0x328234{['_headingOptions'];['afterInit'](){const _0x3f1792=this['editor'];if(!_0x3f1792['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3f1792['config']['get']('heading.options');const _0x3e5f67=_0x3f1792['locale'],_0x2944e5=_0x3f1792['plugins']['get']('TrackChangesEditing');_0x2944e5['enableDefaultAttributesIntegration']('heading');for(const _0x3bb9df of this['_headingOptions'])'paragraph'!=_0x3bb9df['model']&&_0x2944e5['descriptionFactory']['registerElementLabel'](_0x3bb9df['model'],_0x282ff5=>{const _0x307c44=this['_getHeadingLevel'](_0x3bb9df['model']);return null!==_0x307c44?_0xf38ba7(_0x282ff5,_0x307c44):_0x157cea(_0x282ff5,_0x3bb9df['title']);});function _0xf38ba7(_0x437c36,_0xadf101){return o(_0x3e5f67,'ELEMENT_HEADING',[_0x437c36,_0xadf101]);}function _0x157cea(_0x1c18a9,_0x1cf647){return o(_0x3e5f67,'ELEMENT_HEADING_CUSTOM',[_0x1c18a9,_0x1cf647]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1fcdd7=this['editor'],_0x3b6885=_0x1fcdd7['locale'];function _0x542371(_0x4fbe63,_0x5d380b){return o(_0x3b6885,'ELEMENT_HEADING_CUSTOM',[_0x4fbe63,_0x5d380b]);}_0x1fcdd7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1eb94d=>{if('formatBlock'!=_0x1eb94d['type'])return;const {data:_0x564445}=_0x1eb94d;if(_0x564445&&'heading'==_0x564445['commandName']){const _0xd8986e=_0x564445['commandParams'][0x0]['value'],_0x835f5e=this['_getHeadingLevel'](_0xd8986e);if(null!==_0x835f5e)return{'type':'format','content':o(_0x3b6885,'*Change\x20to:*\x20%0',(_0x2160a3=0x1,_0x3aab2f=_0x835f5e,o(_0x3b6885,'ELEMENT_HEADING',[_0x2160a3,_0x3aab2f])))};const _0xb9545b=this['_headingOptions']['find'](_0x481af5=>_0x481af5['model']===_0xd8986e)['title'];return{'type':'format','content':o(_0x3b6885,'*Change\x20to:*\x20%0',_0x542371(0x1,_0xb9545b))};}var _0x2160a3,_0x3aab2f;});}['_getHeadingLevel'](_0x4f8f3c){const _0x179955=_0x4f8f3c['match'](/^heading(\d+)/);if(_0x179955)return _0x179955[0x1];const _0x4ce5c9=this['_headingOptions']?.['find'](_0x13ed16=>_0x13ed16['model']==_0x4f8f3c);if(_0x4ce5c9&&_0x4ce5c9['view']){const _0x3aae96=_0x4ce5c9['view'],_0x38a6da=(_0x3aae96['name']??_0x3aae96)['match'](/^h(\d+)/);if(_0x38a6da)return _0x38a6da[0x1];}return null;}}class et extends _0x328234{['afterInit'](){const _0x235084=this['editor'];if(!_0x235084['plugins']['has']('HighlightEditing'))return;const _0x410f44=_0x235084['plugins']['get']('TrackChangesEditing'),_0x56a65e=_0x235084['locale'];_0x410f44['enableDefaultAttributesIntegration']('highlight'),_0x410f44['registerInlineAttribute']('highlight'),_0x410f44['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x56a65e,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4736a4=this['editor'],_0xa2ae82=_0x4736a4['locale'];_0x4736a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x545cf1=>{if('formatInline'!=_0x545cf1['type'])return;const {data:_0x4c87f3}=_0x545cf1;if(_0x4c87f3&&'highlight'==_0x4c87f3['commandName']){const _0x17557b=_0xa2ae82['t'],_0x33a9d3=_0x4c87f3['commandParams'][0x0]['value'];if(_0x33a9d3){const _0x41c424=_0x4736a4['config']['get']('highlight.options')['find'](_0x29e96c=>_0x29e96c['model']==_0x33a9d3),_0x35ef0e=_0x17557b(_0x41c424['title'])['toLowerCase']();return{'type':'format','content':o(_0xa2ae82,'*Set\x20highlight:*\x20%0',_0x35ef0e),'color':{'value':_0x41c424['color'],'title':_0x41c424['title']}};}return{'type':'format','content':o(_0xa2ae82,'*Remove\x20highlight*',o(_0xa2ae82,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x328234{['afterInit'](){const _0x1c1b56=this['editor'];if(!_0x1c1b56['plugins']['has']('HorizontalLineEditing'))return;_0x1c1b56['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x50e07e=_0x1c1b56['plugins']['get']('TrackChangesEditing'),_0x22b37e=_0x1c1b56['locale'];_0x50e07e['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3dd055=>o(_0x22b37e,'ELEMENT_HORIZONTAL_LINE',_0x3dd055)),_0x1c1b56['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4224a8,{writer:_0x4600f4,options:_0x4c1234})=>{if(!_0x4c1234['showSuggestionHighlights'])return null;const _0x2fbcc9=_0x4600f4['createContainerElement']('div'),_0x3d67a2=_0x4600f4['createEmptyElement']('hr');return _0x4600f4['addClass']('ck-horizontal-line',_0x2fbcc9),_0x4600f4['insert'](_0x4600f4['createPositionAt'](_0x2fbcc9,0x0),_0x3d67a2),_0x2fbcc9;},'converterPriority':'high'});}}class st extends _0x328234{['afterInit'](){const _0x16810f=this['editor'];if(!_0x16810f['plugins']['has']('HtmlEmbed'))return;const _0x26c49c=_0x16810f['plugins']['get']('TrackChangesEditing'),_0x2b0c45=_0x16810f['locale'];_0x26c49c['descriptionFactory']['registerElementLabel']('rawHtml',_0x5d9403=>o(_0x2b0c45,'ELEMENT_HTML_EMBED',_0x5d9403)),_0x26c49c['enableDefaultAttributesIntegration']('htmlEmbed'),_0x26c49c['registerBlockAttribute']('value'),_0x26c49c['descriptionFactory']['registerDescriptionCallback'](_0x159e82=>{if('attribute'!=_0x159e82['type'])return;const {data:_0x217c08}=_0x159e82;if(_0x217c08&&'value'==_0x217c08['key']&&_0x159e82['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x57c5a4=o(_0x2b0c45,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2b0c45,'*Change\x20%0\x20content*',_0x57c5a4)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d5c3c=this['editor'],_0xf983c1=_0x2d5c3c['locale'];_0x2d5c3c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e66d6=>{if('formatBlock'!=_0x4e66d6['type'])return;const {data:_0x5ca97e}=_0x4e66d6;if(_0x5ca97e&&'htmlEmbed'==_0x5ca97e['commandName']){const _0x25c889=o(_0xf983c1,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xf983c1,'*Change\x20%0\x20content*',_0x25c889)};}});}}class nt extends _0x328234{['afterInit'](){const _0x59d849=this['editor'];if(!_0x59d849['plugins']['has']('ImageEditing'))return;const _0x8e4505=_0x59d849['plugins']['get']('TrackChangesEditing'),_0x169484=_0x59d849['plugins']['get']('ImageUtils'),_0x2f5bdd=_0x59d849['locale'];_0x8e4505['enableCommand']('insertImage'),_0x8e4505['descriptionFactory']['registerElementLabel']('imageBlock',_0x576db2=>o(_0x2f5bdd,'ELEMENT_IMAGE',_0x576db2)),_0x8e4505['descriptionFactory']['registerElementLabel']('imageInline',_0x2c06e7=>o(_0x2f5bdd,'ELEMENT_INLINE_IMAGE',_0x2c06e7)),_0x8e4505['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2f5bdd,'ELEMENT_CAPTION')),_0x59d849['plugins']['has']('ImageUploadEditing')&&_0x8e4505['enableCommand']('uploadImage'),_0x59d849['plugins']['has']('ImageBlockEditing')&&_0x59d849['plugins']['has']('ImageInlineEditing')&&(_0x8e4505['enableCommand']('imageTypeInline',(_0xc5a3e,_0x44fd48)=>{const _0x2af183=_0x169484['getClosestSelectedImageElement'](_0x59d849['model']['document']['selection']);_0x59d849['model']['change'](()=>{_0x8e4505['markBlockFormat'](_0x2af183,{'commandName':'imageTypeInline','commandParams':[_0x44fd48]},[],'convertBlockImageToInline');});}),_0x8e4505['enableCommand']('imageTypeBlock',(_0x3fb6c5,_0x382015)=>{_0x59d849['model']['change'](_0x56af31=>{let _0x97561f=_0x169484['getClosestSelectedImageElement'](_0x59d849['model']['document']['selection']),_0x2d6090=_0x56af31['createRangeOn'](_0x97561f);const _0xaa957=_0x3cc3dd['fromPosition'](_0x2d6090['start'],'toPrevious'),_0x798228=_0x3cc3dd['fromPosition'](_0x2d6090['end'],'toNext');_0x8e4505['forceDefaultExecution'](()=>_0x3fb6c5(_0x382015)),_0x97561f=_0x169484['getClosestSelectedImageElement'](_0x59d849['model']['document']['selection']),_0x2d6090=_0x56af31['createRangeOn'](_0x97561f);const _0x4f6068=_0x56af31['createRange'](_0xaa957,_0x798228);_0xaa957['detach'](),_0x798228['detach'](),_0x8e4505['markBlockFormat'](_0x97561f,{'commandName':'imageTypeInline','commandParams':[_0x382015]},[],'convertInlineImageToBlock'),_0x4f6068['start']['isBefore'](_0x2d6090['start'])&&_0x8e4505['markInsertion'](_0x56af31['createRange'](_0x4f6068['start'],_0x2d6090['start']),'convertInlineImageToBlock'),_0x2d6090['end']['isBefore'](_0x4f6068['end'])&&_0x8e4505['markInsertion'](_0x56af31['createRange'](_0x2d6090['end'],_0x4f6068['end']),'convertInlineImageToBlock');});}),_0x8e4505['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x8e4505['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x8e4505['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x8e4505['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x8e4505['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x8e4505['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x52a6f8])=>{const _0x3ab9d9=_0x8e4505['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x547a75=_0x52a6f8['start'],_0x383fb3=_0x52a6f8['end'];const _0x172ee9=_0x59d849['model']['schema']['getNearestSelectionRange'](_0x547a75,'backward'),_0x1ad1af=_0x59d849['model']['schema']['getNearestSelectionRange'](_0x383fb3,'forward');_0x172ee9['isCollapsed']&&(_0x547a75=_0x172ee9['start']),_0x1ad1af['isCollapsed']&&(_0x383fb3=_0x1ad1af['end']),_0x3ab9d9([_0x59d849['model']['createRange'](_0x547a75,_0x383fb3)]);}),_0x8e4505['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5093df),_0x8e4505['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5093df)),_0x59d849['plugins']['has']('ImageCaptionEditing')&&(_0x8e4505['enableCommand']('toggleImageCaption',(_0x51a07d,_0x2ec693)=>{const _0x1d8862=_0x59d849['plugins']['get']('ImageCaptionUtils');let _0x1d2c9a=_0x169484['getClosestSelectedImageElement'](_0x59d849['model']['document']['selection']),_0x20fe3e=_0x1d8862['getCaptionFromImageModelElement'](_0x1d2c9a);_0x59d849['model']['change'](()=>{if(_0x20fe3e)return void _0x8e4505['markDeletion'](_0x59d849['model']['createRangeOn'](_0x20fe3e));const _0x15bf37=_0x169484['isBlockImage'](_0x1d2c9a);_0x51a07d(_0x2ec693),_0x1d2c9a=_0x169484['getClosestSelectedImageElement'](_0x59d849['model']['document']['selection']),_0x20fe3e=_0x1d8862['getCaptionFromImageModelElement'](_0x1d2c9a),_0x8e4505['markInsertion'](_0x59d849['model']['createRangeOn'](_0x20fe3e),_0x15bf37?null:'imageCaption');});}),_0x8e4505['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5093df));const _0x1fd8ba=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x572eb7(_0x44ea80,_0x22f389){const _0x26f5ba=_0x1fd8ba['findIndex'](({type:_0x46afcb,subType:_0x148bb8})=>_0x44ea80['type']==_0x46afcb&&_0x44ea80['subType']==_0x148bb8),_0x3d7a39=_0x1fd8ba['findIndex'](({type:_0x5bf781,subType:_0x3b5d07})=>_0x22f389['type']==_0x5bf781&&_0x22f389['subType']==_0x3b5d07);if(_0x26f5ba<0x0||_0x3d7a39<0x0)return!0x1;const _0xee1f7a=_0x44ea80['getFirstRange'](),_0x11c01d=_0x22f389['getFirstRange']();if((0x0==_0x26f5ba||0x1==_0x26f5ba)&&0x2==_0x3d7a39&&_0xee1f7a['isIntersecting'](_0x11c01d))return!0x0;if(0x2==_0x26f5ba&&0x3==_0x3d7a39){const _0x30df54=_0x8e4505['_findSuggestions'](_0xee1f7a,'insertion')['filter'](({suggestion:_0x8e9b8e,meta:_0x5714f4})=>_0x5714f4['isOwn']&&'convertInlineImageToBlock'==_0x8e9b8e['subType']);if(_0x30df54['length']>0x1&&_0x11c01d['end']['isEqual'](_0xee1f7a['start']))return!0x0;if(0x1==_0x30df54['length']&&(_0xee1f7a['start']['isEqual'](_0x11c01d['end'])||_0xee1f7a['end']['isEqual'](_0x11c01d['start'])))return!0x0;}if(0x3==_0x26f5ba&&0x3==_0x3d7a39&&_0xee1f7a['start']['isBefore'](_0x11c01d['start'])){const _0x5f20ea=_0xee1f7a['end']['nodeAfter'],_0x10d72d=_0x11c01d['start']['nodeBefore'];return _0x169484['isBlockImage'](_0x5f20ea)&&_0x5f20ea===_0x10d72d;}return!0x1;}function _0x5093df(_0xdd4dfb,_0x31a083){return _0x572eb7(_0xdd4dfb,_0x31a083)?[_0xdd4dfb,_0x31a083]:_0x572eb7(_0x31a083,_0xdd4dfb)?[_0x31a083,_0xdd4dfb]:null;}_0x59d849['plugins']['has']('ImageResize')&&(_0x8e4505['enableDefaultAttributesIntegration']('resizeImage'),_0x8e4505['registerBlockAttribute']('resizedWidth'),_0x8e4505['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2f5bdd,'FORMAT_IMAGE_SIZE'))),_0x59d849['plugins']['has']('ImageTextAlternativeEditing')&&(_0x8e4505['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x8e4505['registerBlockAttribute']('alt')),_0x8e4505['descriptionFactory']['registerDescriptionCallback'](_0x5752fe=>{if(!!_0x1fd8ba['find'](({type:_0x51b2ed,subType:_0x3b6acf})=>_0x5752fe['type']==_0x51b2ed&&_0x5752fe['subType']==_0x3b6acf))return _0x5752fe['previous']?{}:void 0x0;}),_0x8e4505['descriptionFactory']['registerDescriptionCallback'](_0x1e9808=>{if('insertion'==_0x1e9808['type']||'deletion'==_0x1e9808['type']){const _0x2ad6f5=_0x1e9808['getContainedElement']();if(_0x2ad6f5&&_0x2ad6f5['is']('element','caption'))return{'type':'insertion'==_0x1e9808['type']?'addObject':'removeObject','element':_0x2ad6f5,'quantity':0x1};}}),_0x8e4505['descriptionFactory']['registerDescriptionCallback'](_0x4afdf5=>'formatBlock'==_0x4afdf5['type']&&'convertInlineImageToBlock'==_0x4afdf5['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4afdf5['type']&&'convertBlockImageToInline'==_0x4afdf5['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x8e4505['descriptionFactory']['registerDescriptionCallback'](_0xb7b490=>{if('attribute'!=_0xb7b490['type'])return;const {data:_0xca953}=_0xb7b490;if(!_0xca953||'alt'!=_0xca953['key'])return;const _0x340f5b=_0xca953['newValue'];return _0x340f5b?{'type':'format','content':o(_0x2f5bdd,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x340f5b+'\x22')}:{'type':'format','content':o(_0x2f5bdd,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1903bd=this['editor'],_0x28a5a8=_0x1903bd['locale'];_0x1903bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b261f=>{if('formatBlock'!=_0x1b261f['type']&&'formatInline'!=_0x1b261f['type'])return;const {data:_0x4fed45}=_0x1b261f;if(_0x4fed45){if('imageTextAlternative'==_0x4fed45['commandName']){const _0x37991b=_0x4fed45['commandParams'][0x0]['newValue'];return _0x37991b?{'type':'format','content':o(_0x28a5a8,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x37991b+'\x22')}:{'type':'format','content':o(_0x28a5a8,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4fed45['commandName']){const _0x320670=_0x4fed45['commandParams'][0x0]['width'];return _0x320670?{'type':'format','content':o(_0x28a5a8,'*Set\x20image\x20width:*\x20%0',_0x320670)}:{'type':'format','content':o(_0x28a5a8,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x328234{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4bba04=this['editor']['locale'],_0x147c4c=this['editor']['plugins']['get']('TrackChangesEditing');_0x147c4c['enableDefaultAttributesIntegration']('replaceImageSource'),_0x147c4c['registerBlockAttribute']('src'),_0x147c4c['descriptionFactory']['registerDescriptionCallback'](_0x4682a6=>{if('attribute'!=_0x4682a6['type'])return;const {data:_0x4077b9}=_0x4682a6;return _0x4077b9&&'src'==_0x4077b9['key']?_0x4077b9['newValue']&&_0x4077b9['oldValue']?{'type':'format','content':o(_0x4bba04,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x350106=this['editor']['plugins']['get']('TrackChangesEditing');_0x350106['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x350106['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x350106['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x350106['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cd2ea=this['editor'],_0x2b1323=_0x3cd2ea['locale'];_0x3cd2ea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4abdbe=>{if('formatBlock'!=_0x4abdbe['type']&&'formatInline'!=_0x4abdbe['type'])return;const {data:_0x8ba1fb}=_0x4abdbe;if(!_0x8ba1fb||'replaceImageSource'!=_0x8ba1fb['commandName'])return;return{'type':'format','content':o(_0x2b1323,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x328234{['afterInit'](){const _0x4d3f2c=this['editor'];if(!_0x4d3f2c['plugins']['has']('ImageStyleEditing'))return;const _0x1a8b15=_0x4d3f2c['plugins']['get']('TrackChangesEditing'),_0x3bf344=_0x4d3f2c['plugins']['get']('ImageUtils'),_0x363772={};_0x1a8b15['enableCommand']('imageStyle',(_0x181e39,_0x16fa7b)=>{const _0x352eb3=_0x4d3f2c['plugins']['get']('Users')['me'],_0x4f1a70=_0x4d3f2c['commands']['get']('imageStyle');let _0x568d99=_0x3bf344['getClosestSelectedImageElement'](_0x4d3f2c['model']['document']['selection']),_0x18f5a8=_0x4d3f2c['model']['createRangeOn'](_0x568d99),_0x5ee253=_0x4f1a70['value'];if(_0x5ee253==_0x16fa7b['value'])return;const _0x2f3fd8={'commandName':'imageStyle','commandParams':[_0x16fa7b],'formatGroupId':_0x2b4c20()};_0x4d3f2c['model']['change'](()=>{if(_0x1a8b15['getSuggestions']()['filter'](_0x539353=>_0x539353['isInContent']&&_0x352eb3==_0x539353['author']&&('formatBlock'==_0x539353['type']||'formatInline'==_0x539353['type'])&&('imageStylePreApply'==_0x539353['subType']||'imageStylePostApply'==_0x539353['subType'])&&_0x539353['getFirstRange']()['isEqual'](_0x18f5a8))['forEach'](_0x573f00=>_0x1a8b15['discardSuggestion'](_0x573f00['head'])),_0x568d99=_0x3bf344['getClosestSelectedImageElement'](_0x4d3f2c['model']['document']['selection']),_0x18f5a8=_0x4d3f2c['model']['createRangeOn'](_0x568d99),_0x4f1a70['refresh'](),_0x4d3f2c['commands']['get']('imageTypeInline')['refresh'](),_0x4d3f2c['commands']['get']('imageTypeBlock')['refresh'](),_0x5ee253=_0x4f1a70['value'],_0x5ee253!=_0x16fa7b['value'])return _0x3bf344['isInlineImage'](_0x568d99)&&_0x4f1a70['shouldConvertImageType'](_0x16fa7b['value'],_0x568d99)?(_0x181e39({..._0x16fa7b,'setImageSizes':!0x1}),_0x568d99=_0x3bf344['getClosestSelectedImageElement'](_0x4d3f2c['model']['document']['selection']),void _0x1a8b15['markBlockFormat'](_0x568d99,{..._0x2f3fd8,'commandReversedParams':[{'value':_0x5ee253||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3bf344['isBlockImage'](_0x568d99)?_0x1a8b15['markBlockFormat'](_0x568d99,_0x2f3fd8,[],'imageStylePostApply'):_0x1a8b15['markInlineFormat'](_0x18f5a8,_0x2f3fd8,'imageStylePostApply'));});});for(const _0x5c1f8d of _0x4d3f2c['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x363772[_0x5c1f8d['name']]=_0x5c1f8d['title']['toLowerCase']();_0x1a8b15['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1a8b15['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1a8b15['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1a8b15['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x110b32])=>{_0x3bf344['setImageNaturalSizeAttributes'](_0x110b32['getContainedElement']());}),_0x1a8b15['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4df31a,_0x5b4aac)=>{_0x1a8b15['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4df31a,{'commandName':_0x5b4aac['commandName'],'commandParams':_0x5b4aac['commandReversedParams']});}),_0x1a8b15['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x172c29,_0x5e6d0e){if(_0x438a2d(_0x172c29,_0x5e6d0e))return[_0x172c29,_0x5e6d0e];if(_0x438a2d(_0x5e6d0e,_0x172c29))return[_0x5e6d0e,_0x172c29];return null;});const _0x47df21=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x438a2d(_0x538fe9,_0x49ac52){const _0x5e7e56=_0x47df21['findIndex'](({type:_0x27a76d,subType:_0x42e57f})=>_0x538fe9['type']==_0x27a76d&&_0x538fe9['subType']==_0x42e57f),_0x4c7c03=_0x47df21['findIndex'](({type:_0x11720c,subType:_0x4a858f})=>_0x49ac52['type']==_0x11720c&&_0x49ac52['subType']==_0x4a858f);if(_0x5e7e56<0x0||_0x4c7c03<0x0)return!0x1;const _0x3b38f5=_0x538fe9['getFirstRange'](),_0x5ca96e=_0x49ac52['getFirstRange']();if((0x0==_0x5e7e56||0x1==_0x5e7e56)&&0x2==_0x4c7c03&&_0x3b38f5['isIntersecting'](_0x5ca96e))return!0x0;if(0x2==_0x5e7e56&&0x3==_0x4c7c03){const _0x12e0d6=_0x1a8b15['_findSuggestions'](_0x3b38f5,'insertion')['filter'](({suggestion:_0x4bc67a,meta:_0x3f52e9})=>_0x3f52e9['isOwn']&&'convertInlineImageToBlock'==_0x4bc67a['subType']);if(_0x12e0d6['length']>0x1&&_0x5ca96e['end']['isEqual'](_0x3b38f5['start']))return!0x0;if(0x1==_0x12e0d6['length']&&(_0x3b38f5['start']['isEqual'](_0x5ca96e['end'])||_0x3b38f5['end']['isEqual'](_0x5ca96e['start'])))return!0x0;}if(0x3==_0x5e7e56&&0x3==_0x4c7c03&&_0x3b38f5['start']['isBefore'](_0x5ca96e['start'])){const _0x4d40b7=_0x3b38f5['end']['nodeAfter'],_0x29524c=_0x5ca96e['start']['nodeBefore'];return _0x3bf344['isBlockImage'](_0x4d40b7)&&_0x4d40b7===_0x29524c;}return!0x1;}_0x4d3f2c['model']['document']['registerPostFixer'](()=>{let _0x54d49f=!0x1;const _0x4b38a7=Array['from'](_0x4d3f2c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x491070,data:_0x17d315}of _0x4b38a7){const {group:_0x20ba6b,type:_0x26b74b,subType:_0x4f41d7,id:_0x4228bc}=_0x1a8b15['_splitMarkerName'](_0x491070);if('suggestion'==_0x20ba6b&&_0x1a8b15['hasSuggestion'](_0x4228bc)){if('formatBlock'==_0x26b74b&&('imageStylePreApply'==_0x4f41d7||'imageStylePostApply'==_0x4f41d7)){const _0x528b96=_0x1a8b15['getSuggestion'](_0x4228bc);if(_0x17d315['newRange']){const _0x511893=_0x528b96['getFirstRange']()['getContainedElement']();if(_0x3bf344['isBlockImage'](_0x511893))continue;_0x1a8b15['discardSuggestion'](_0x528b96),_0x54d49f=!0x0;}}if('insertion'==_0x26b74b&&'imageCaption'==_0x4f41d7&&!_0x17d315['newRange']){const _0x1e4cd8=_0x1a8b15['getSuggestion'](_0x4228bc);_0x1e4cd8['next']&&_0x1e4cd8['next']['isInContent']&&(_0x1a8b15['discardSuggestion'](_0x1e4cd8['next']),_0x54d49f=!0x0);}}}return _0x54d49f;}),this['_registerLegacyDescription'](_0x363772);}['_registerLegacyDescription'](_0x137e19){const _0x313df1=this['editor'],_0x59727d=_0x313df1['locale'];_0x313df1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18a954=>{if('formatBlock'!=_0x18a954['type']&&'formatInline'!=_0x18a954['type'])return;const {data:_0x37b309}=_0x18a954;if(!_0x37b309||'imageStyle'!=_0x37b309['commandName'])return;const _0x30fbb3=_0x37b309['commandParams'][0x0]['value'];return _0x34c5cc('side'===_0x30fbb3?o(_0x59727d,'FORMAT_SIDE_IMAGE'):_0x137e19[_0x30fbb3]||_0x30fbb3);function _0x34c5cc(_0x58809d){return{'type':'format','content':o(_0x59727d,'*Format:*\x20%0',_0x58809d)};}});}}class at extends _0x328234{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x162eb8){super(_0x162eb8),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1f547c=this['editor'],_0x580076=_0x1f547c['commands']['get']('importWord'),_0x19fd6b=_0x1f547c['commands']['get']('trackChanges');_0x580076&&(_0x580076['on']('execute',(_0x21939f,[,_0xa77f38])=>{this['_trackChangesValueDuringImport']=_0x19fd6b['value'],_0xa77f38['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x580076,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x580076,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x19fd6b['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1f547c['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x571e9a,_0x5bfe09){const {suggestions:_0x59c137}=_0x5bfe09,_0x5a3d84=this['editor']['commands']['get']('trackChanges'),_0x4d0bdb=_0x5a3d84['value'];this['_trackChangesValueDuringImport']!==_0x4d0bdb&&(_0x5a3d84['execute'](),this['_trackChangesExecuted']=!0x0),_0x59c137&&_0x59c137['forEach'](({id:_0x5d23d8,type:_0x36e39a,author:_0x4ad871,created_at:_0x4cd476})=>{const _0xb265de={'id':_0x5d23d8,'type':_0x36e39a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4ad871,'createdAt':_0x4cd476?new Date(_0x4cd476):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xb265de);});}}class ct extends _0x328234{['afterInit'](){const _0x1e05db=this['editor'],_0x211d20=_0x1e05db['plugins']['get']('TrackChangesEditing');if(_0x1e05db['plugins']['has']('IndentEditing')&&(_0x211d20['enableCommand']('indent'),_0x211d20['enableCommand']('outdent')),_0x1e05db['plugins']['has']('IndentBlock')){for(const _0x232bdc of['indentBlock','outdentBlock'])_0x211d20['enableDefaultAttributesIntegration'](_0x232bdc);}const _0x13d9af=_0x1e05db['locale'];_0x211d20['registerBlockAttribute']('blockIndent'),_0x211d20['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x13d9af,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3030ce=this['editor'],_0x14d965=_0x3030ce['locale'],_0x5cb987=_0x3030ce['plugins']['get']('TrackChangesEditing');_0x5cb987['descriptionFactory']['registerDescriptionCallback'](_0x535f05=>{if('formatBlock'!=_0x535f05['type'])return;const {data:_0x39c266}=_0x535f05;if(!_0x39c266)return;if('indentBlock'!=_0x39c266['commandName']&&'outdentBlock'!=_0x39c266['commandName'])return;const _0x2c03f0=_0x535f05['getItems']()[0x0],_0x23fed8=_0x5cb987['descriptionFactory']['getItemLabel'](_0x2c03f0);return'indentBlock'==_0x39c266['commandName']?{'type':'format','content':o(_0x14d965,'*Indent:*\x20%0',_0x23fed8)}:'outdentBlock'==_0x39c266['commandName']?{'type':'format','content':o(_0x14d965,'*Outdent:*\x20%0',_0x23fed8)}:void 0x0;});}}class ut extends _0x328234{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x328234{['afterInit'](){const _0x4f4cfa=this['editor'];if(!_0x4f4cfa['plugins']['has']('LinkEditing'))return;const _0x1cdbb0=_0x4f4cfa['plugins']['get']('TrackChangesEditing'),_0x41b9e9=_0x4f4cfa['commands']['get']('link');_0x1cdbb0['enableDefaultAttributesIntegration']('link'),_0x1cdbb0['enableDefaultAttributesIntegration']('unlink'),_0x1cdbb0['registerInlineAttribute']('linkHref');for(const _0x1056cf of _0x41b9e9['manualDecorators'])_0x1cdbb0['registerInlineAttribute'](_0x1056cf['id']),_0x1cdbb0['descriptionFactory']['registerAttributeLabel'](_0x1056cf['id'],'link\x20('+_0x1056cf['label']['toLowerCase']()+')');_0x1cdbb0['descriptionFactory']['registerDescriptionCallback'](_0x597ba4=>{if('attribute'!=_0x597ba4['type'])return;const {data:_0x544800}=_0x597ba4;if(!_0x544800||'linkHref'!=_0x544800['key'])return;const _0x5d8b82=_0x544800['newValue'],_0x54d872=_0x4f4cfa['locale'];return{'type':'format','content':null==_0x5d8b82?o(_0x54d872,'*Remove\x20link*'):o(_0x54d872,'*Set\x20link:*\x20%0','\x22'+_0x5d8b82+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa8e309=this['editor'],_0x5052b1=_0xa8e309['locale'];_0xa8e309['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f48f9=>{if('formatInline'!=_0x5f48f9['type'])return;const {data:_0x31f5b1}=_0x5f48f9;if(_0x31f5b1){if('link'==_0x31f5b1['commandName']){const _0x32968b=_0x31f5b1['commandParams'][0x0];return{'type':'format','content':o(_0x5052b1,'*Set\x20link:*\x20%0','\x22'+_0x32968b+'\x22')};}return'unlink'==_0x31f5b1['commandName']?{'type':'format','content':o(_0x5052b1,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x328234{['afterInit'](){const _0x3c7fa7=this['editor'],_0x22620e=_0x3c7fa7['locale'];if(!_0x3c7fa7['plugins']['has']('LegacyListEditing'))return;const _0x4366e5=_0x3c7fa7['plugins']['get']('TrackChangesEditing'),_0x43544c=_0x3c7fa7['plugins']['has']('LegacyTodoListEditing');function _0x349a19(_0x18dc0e){return()=>{const _0x49a18d=_0x3c7fa7['model']['document']['selection'],_0x137202=_0x3c7fa7['commands']['get'](_0x18dc0e);if(_0x137202['value'])return void _0x3c7fa7['execute']('paragraph',{});const _0x293960=_0x18dc0e['slice'](0x0,-0x4),_0x362517=function(_0x179fb0,_0xcca1c6,_0x2b797c){let _0x568ef3=Array['from'](_0x179fb0)['filter'](_0x4ab7da=>function(_0x1c21db,_0x2049d3){return _0x2049d3['checkChild'](_0x1c21db['parent'],'listItem')&&!_0x2049d3['isObject'](_0x1c21db);}(_0x4ab7da,_0x2b797c));_0x568ef3=_0x568ef3['filter'](_0x2f9233=>!_0x2f9233['is']('element','listItem')||_0x2f9233['getAttribute']('listType')!=_0xcca1c6);const _0x4ec30e=new Set();for(const _0x17277a of _0x568ef3)_0x17277a['is']('element','listItem')?_0x4ec30e['add'](fe(_0x17277a)):_0x4ec30e['add'](_0x17277a);return Array['from'](_0x4ec30e);}(_0x49a18d['getSelectedBlocks'](),_0x293960,_0x3c7fa7['model']['schema']);_0x3c7fa7['model']['change'](()=>{for(const _0x294703 of _0x362517)_0x4366e5['markBlockFormat'](_0x294703,{'commandName':_0x18dc0e,'commandParams':[{'forceValue':!_0x137202['value']}],'formatGroupId':'blockName'},ue(_0x294703));});};}function _0x6ebef(_0x366f6e){return()=>{const _0x36b902=function(_0xa260e9){let _0x58abe4=Array['from'](_0xa260e9);const _0x3183eb=_0x58abe4['findIndex'](_0x5035dd=>'listItem'!=_0x5035dd['name']);return _0x3183eb>-0x1&&(_0x58abe4=_0x58abe4['slice'](0x0,_0x3183eb)),_0x58abe4;}(_0x3c7fa7['model']['document']['selection']['getSelectedBlocks']()),_0x5aa321=_0x3c7fa7['model']['createRange'](_0x3c7fa7['model']['createPositionAt'](_0x36b902[0x0],'before'),_0x3c7fa7['model']['createPositionAt'](_0x36b902[_0x36b902['length']-0x1],'end'));_0x3c7fa7['model']['change'](()=>{_0x4366e5['markBlockFormat'](_0x5aa321,{'commandName':_0x366f6e,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5714ce){const _0x5149dc=new Set();for(const _0x5ad09e of _0x5714ce){let _0x40f874=_0x5ad09e['nextSibling'];for(;_0x40f874&&_0x40f874['getAttribute']('listIndent')>_0x5ad09e['getAttribute']('listIndent');)_0x5149dc['add'](_0x40f874),_0x40f874=_0x40f874['nextSibling'];}return Array['from'](_0x5149dc);}(_0x36b902));});};}_0x4366e5['enableCommand']('numberedList',_0x349a19('numberedList')),_0x4366e5['enableCommand']('bulletedList',_0x349a19('bulletedList')),_0x43544c&&_0x4366e5['enableCommand']('todoList',_0x349a19('todoList')),_0x4366e5['enableCommand']('indentList',_0x6ebef('indentList')),_0x4366e5['enableCommand']('outdentList',_0x6ebef('outdentList')),_0x43544c&&_0x4366e5['enableCommand']('checkTodoList',()=>{const _0x27278c=_0x3c7fa7['commands']['get']('checkTodoList'),_0xc7cf9c=Array['from'](_0x27278c['_selectedElements']);_0xc7cf9c['filter'](_0x59c448=>_0x59c448['getAttribute']('todoListChecked')!=_0x27278c['value']),_0x3c7fa7['model']['change'](()=>{for(const _0xd52ad4 of _0xc7cf9c)_0x4366e5['markBlockFormat'](_0xd52ad4,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x27278c['value']}]});});}),_0x4366e5['descriptionFactory']['registerElementLabel']('listItem',_0x31870c=>o(_0x22620e,'ELEMENT_LIST_ITEM',_0x31870c)),_0x4366e5['descriptionFactory']['registerDescriptionCallback'](_0x1900a3=>{if('formatBlock'!=_0x1900a3['type']&&'formatInline'!=_0x1900a3['type'])return;const {data:_0x39ae1b}=_0x1900a3;if(_0x39ae1b){if('numberedList'==_0x39ae1b['commandName']||'bulletedList'==_0x39ae1b['commandName']||'todoList'==_0x39ae1b['commandName'])switch(_0x39ae1b['commandName']['replace']('List','')){case'bulleted':return _0x521df0(o(_0x22620e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x521df0(o(_0x22620e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x521df0(o(_0x22620e,'ELEMENT_TODO_LIST'));}if('indentList'==_0x39ae1b['commandName'])return{'type':'format','content':o(_0x22620e,'*Indent:*\x20%0',o(_0x22620e,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x39ae1b['commandName'])return{'type':'format','content':o(_0x22620e,'*Outdent:*\x20%0',o(_0x22620e,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x39ae1b['commandName'])return _0x39ae1b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x22620e,'*Check\x20item*')}:{'type':'format','content':o(_0x22620e,'*Uncheck\x20item*')};}function _0x521df0(_0x2c94c6){return{'type':'format','content':o(_0x22620e,'*Change\x20to:*\x20%0',_0x2c94c6)};}});}}function fe(_0x1c57fd){const _0x42432e=_0x1c57fd['getAttribute']('listIndent');if(0x0==_0x42432e)return _0x1c57fd;let _0x3f334c=_0x1c57fd;for(;_0x1c57fd['previousSibling']&&_0x1c57fd['previousSibling']['is']('element','listItem');){const _0x2ff9af=_0x1c57fd['previousSibling']['getAttribute']('listIndent');if(_0x2ff9af==_0x42432e)_0x3f334c=_0x1c57fd['previousSibling'];else{if(_0x2ff9af<_0x42432e)break;}_0x1c57fd=_0x1c57fd['previousSibling'];}return _0x3f334c;}function ue(_0x51180e){const _0x2c58b2=[];if(_0x51180e['is']('element','listItem')&&_0x51180e['getAttribute']('listIndent')>0x0){let _0x21fefe=_0x51180e['nextSibling'];for(;_0x21fefe&&'listItem'==_0x21fefe['name']&&_0x21fefe['getAttribute']('listIndent')==_0x51180e['getAttribute']('listIndent');)_0x2c58b2['push'](_0x21fefe),_0x21fefe=_0x21fefe['nextSibling'];}return _0x2c58b2;}class W extends _0x328234{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x329844=this['editor']['config']['get']('list.properties'),_0x1c1ef2=this['editor']['plugins']['get']('TrackChangesEditing');_0x329844['styles']&&_0x1c1ef2['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x329844['reversed']&&_0x1c1ef2['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x329844['startIndex']&&_0x1c1ef2['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1c1ef2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x14fc6f,_0x4a2044={}){const _0x56ec04=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24bad3=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x56ec04['markMultiRangeBlockFormat'](_0x24bad3,{'commandName':'listStyle','commandParams':[{'type':_0x4a2044['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x312602,_0x38f73d={}){const _0x21e351=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4473e6=this['_getSuggestionBlocks'](_0x5b57f4=>_0x5b57f4['is']('element','listItem')&&'numbered'===_0x5b57f4['getAttribute']('listType'));if(_0x4473e6['length']<0x1)return;const _0x334cdd=_0x4473e6['map'](_0x4e0812=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4e0812,'before'),this['editor']['model']['createPositionAt'](_0x4e0812,0x0)));this['editor']['model']['change'](()=>{_0x21e351['markMultiRangeBlockFormat'](_0x334cdd,{'commandName':'listReversed','commandParams':[{'reversed':_0x38f73d['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5af60f,_0x40d840={}){const _0x211c9b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x222274=this['_getSuggestionBlocks'](_0xba13c7=>_0xba13c7['is']('element','listItem')&&'numbered'===_0xba13c7['getAttribute']('listType'));if(_0x222274['length']<0x1)return;const _0x468de0=_0x222274['map'](_0x2c8620=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2c8620,'before'),this['editor']['model']['createPositionAt'](_0x2c8620,0x0)));this['editor']['model']['change'](()=>{_0x211c9b['markMultiRangeBlockFormat'](_0x468de0,{'commandName':'listStart','commandParams':[{'startIndex':_0x40d840['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3cf059){if('formatBlock'!=_0x3cf059['type']&&'formatInline'!=_0x3cf059['type'])return;const _0x26e1e5=this['editor']['locale'],{data:_0x193d39}=_0x3cf059;if(!_0x193d39)return;let _0x5c92d2,_0x6df66e;switch(_0x193d39['commandName']){case'listStyle':_0x5c92d2='*Change\x20to:*\x20%0',_0x6df66e={'type':'format','content':o(_0x26e1e5,_0x5c92d2,o(_0x26e1e5,this['_getTranslationKeyForListStyle'](_0x193d39['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5c92d2=_0x193d39['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x6df66e={'type':'format','content':o(_0x26e1e5,_0x5c92d2)};break;case'listStart':_0x5c92d2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x6df66e={'type':'format','content':o(_0x26e1e5,_0x5c92d2,_0x193d39['commandParams'][0x0]['startIndex'])};}return _0x6df66e;}['_getSuggestionBlocksForListStyle'](){const _0x22b57e=this['editor']['plugins']['get']('LegacyListUtils');let _0x16c844=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x16c844[0x0]?.['is']('element','listItem')&&_0x16c844['unshift'](..._0x22b57e['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x16c844[_0x16c844['length']-0x1]?.['is']('element','listItem')&&_0x16c844['push'](..._0x22b57e['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x16c844=[...new Set(_0x16c844)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x16c844=_0x16c844['filter'](_0x5193d2=>_0x5193d2['is']('element','listItem'))),_0x16c844;}['_getSuggestionBlocks'](_0x3dd935){const _0x53fba5=this['editor']['plugins']['get']('LegacyListUtils');let _0x6b3393=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3dd935)['map'](_0x2974f0=>{const _0x24d8fa=this['editor']['model']['createPositionAt'](_0x2974f0,0x0);return[..._0x53fba5['getSiblingNodes'](_0x24d8fa,'backward'),..._0x53fba5['getSiblingNodes'](_0x24d8fa,'forward')];})['flat']();return _0x6b3393=[...new Set(_0x6b3393)],_0x6b3393;}['_getTranslationKeyForListStyle'](_0x24d8da){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x24d8da)||'default')['toUpperCase']()+'_LIST_'+_0x24d8da['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x328234{['afterInit'](){const _0x4571fd=this['editor'];if(!_0x4571fd['plugins']['has']('MediaEmbedEditing'))return;const _0xd6a22b=_0x4571fd['plugins']['get']('TrackChangesEditing'),_0x4b3624=_0x4571fd['locale'];_0xd6a22b['enableCommand']('mediaEmbed'),_0xd6a22b['descriptionFactory']['registerElementLabel']('media',_0x5f0036=>o(_0x4b3624,'ELEMENT_MEDIA',_0x5f0036)),_0x4571fd['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x31d936,{writer:_0x14bc65,options:_0x441997})=>{if(_0x441997['showSuggestionHighlights'])return _0x14bc65['createEmptyElement']('div');},'converterPriority':'high'}),_0x4571fd['data']['downcastDispatcher']['on']('attribute:url:media',(_0x718bb4,_0x36727f,_0x290039)=>{_0x290039['options']['showSuggestionHighlights']&&_0x718bb4['stop']();},{'priority':'high'});}}class mt extends _0x328234{['afterInit'](){const _0x1446bc=this['editor'];_0x1446bc['plugins']['has']('MentionEditing')&&_0x1446bc['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x328234{['afterInit'](){const _0x508c1a=this['editor'];if(!_0x508c1a['plugins']['has']('MergeFieldsEditing'))return;_0x508c1a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x508c1a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x39debc=_0x508c1a['plugins']['get']('TrackChangesEditing'),_0x3cb77f=_0x508c1a['locale'];_0x39debc['descriptionFactory']['registerElementLabel']('mergeField',_0x4904a3=>o(_0x3cb77f,'ELEMENT_MERGE_FIELD',_0x4904a3)),_0x39debc['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2676d8=>o(_0x3cb77f,'ELEMENT_MERGE_FIELD',_0x2676d8)),_0x39debc['descriptionFactory']['registerDescriptionCallback'](_0x202e2a=>{if('insertion'!=_0x202e2a['type']&&'deletion'!=_0x202e2a['type'])return;const _0x172eb5=_0x202e2a['getContainedElement']();if(null==_0x172eb5)return;if(!_0x172eb5['is']('element','mergeField')&&!_0x172eb5['is']('element','mergeFieldBlock'))return;const _0x501c52=_0x508c1a['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x172eb5['getAttribute']('id'));return'insertion'==_0x202e2a['type']?{'type':'insertion','content':o(_0x3cb77f,'*Insert:*\x20%0','\x22'+_0x501c52+'\x22\x20'+o(_0x3cb77f,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x3cb77f,'*Remove:*\x20%0','\x22'+_0x501c52+'\x22\x20'+o(_0x3cb77f,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x328234{['afterInit'](){const _0x336562=this['editor'],_0xcf21a4=_0x336562['plugins']['get']('TrackChangesEditing');_0x336562['plugins']['has']('MultiLevelList')&&(_0xcf21a4['enableDefaultAttributesIntegration']('multiLevelList'),_0xcf21a4['registerBlockAttribute']('listMarkerStyle'),_0xcf21a4['descriptionFactory']['registerDescriptionCallback'](_0x245546=>this['handleDescriptions'](_0x245546)));}['handleDescriptions'](_0x4364d3){const _0x31bfc1=this['editor']['locale'],{data:_0x2f0787}=_0x4364d3,_0x51b666={'type':'format','content':''};if(_0x2f0787&&'listMarkerStyle'==_0x2f0787['key']){if(!_0x2f0787['oldValue'])return{'type':'format','content':o(_0x31bfc1,'*Set\x20format:*\x20%0',o(_0x31bfc1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2f0787['newValue']+')'};if(!_0x2f0787['newValue']){let _0x57f8ce=_0x4364d3['head'];for(;_0x57f8ce;){if(_0x57f8ce['data']&&'listType'==_0x57f8ce['data']['key']&&_0x57f8ce['data']['newValue'])return _0x51b666;_0x57f8ce=_0x57f8ce['next'];}return{'type':'format','content':o(_0x31bfc1,'*Remove\x20format:*\x20%0',o(_0x31bfc1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2f0787['oldValue']+')'};}}}}class kt extends _0x328234{['afterInit'](){const _0x5bd041=this['editor'];if(!_0x5bd041['plugins']['has']('PageBreakEditing'))return;_0x5bd041['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x369fee=_0x5bd041['plugins']['get']('TrackChangesEditing'),_0x40e251=_0x5bd041['locale'];_0x369fee['descriptionFactory']['registerElementLabel']('pageBreak',_0x57055b=>o(_0x40e251,'ELEMENT_PAGE_BREAK',_0x57055b));}}class bt extends _0x328234{['afterInit'](){const _0x29428c=this['editor'];if(!_0x29428c['plugins']['has']('Paragraph'))return;const _0x1a4dce=_0x29428c['locale'],_0x44f7ef=_0x29428c['plugins']['get']('TrackChangesEditing');_0x44f7ef['descriptionFactory']['registerElementLabel']('paragraph',_0x2b5310=>o(_0x1a4dce,'ELEMENT_PARAGRAPH',_0x2b5310)),_0x44f7ef['enableDefaultAttributesIntegration']('paragraph'),_0x44f7ef['enableCommand']('insertParagraph'),_0x29428c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x29428c),{'priority':'highest'}),_0x29428c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1e088b,_0x25766b,_0x1d1650)=>{_0x1d1650['options']['showSuggestionHighlights']&&nr(_0x29428c,{'showActiveMarker':!0x1})(_0x1e088b,_0x25766b,_0x1d1650);},{'priority':'highest'});const _0x4ad5f7=_0x44f7ef['descriptionFactory'];_0x4ad5f7['registerDescriptionCallback'](_0x1e96fd=>{if('insertion'!==_0x1e96fd['type'])return;const {start:_0x4d11c7,end:_0xbda0fa}=_0x1e96fd['getFirstRange']();if(!_0x4d11c7['isTouching'](_0xbda0fa)||!_0x4d11c7['nodeAfter'])return;const _0x541bb4=_0x29428c['model']['schema'],_0x8cde8a=_0x4d11c7['nodeAfter'];return _0x541bb4['isBlock'](_0x8cde8a)&&!_0x541bb4['isLimit'](_0x8cde8a)&&_0x541bb4['checkChild'](_0x8cde8a,'$text')?{'type':'insertion','content':o(_0x1a4dce,'*Insert:*\x20%0',_0x4ad5f7['getItemLabel'](_0x8cde8a,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4879c4=this['editor'],_0x1de12d=_0x4879c4['locale'];_0x4879c4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bc35e=>{if('formatBlock'!=_0x3bc35e['type'])return;const {data:_0x1a5e76}=_0x3bc35e;return _0x1a5e76&&'paragraph'==_0x1a5e76['commandName']?{'type':'format','content':o(_0x1de12d,'*Change\x20to:*\x20%0',o(_0x1de12d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x54055e,{showActiveMarker:_0x1923a5=!0x0}={}){return(_0xe08ce7,_0x556763,_0x5149d9)=>{const _0x241f07=_0x54055e['plugins']['get']('TrackChangesEditing'),_0x239316=_0x556763['markerRange']['start'],_0x425193=_0x556763['markerRange']['end'],_0xdcd656=_0x54055e['model']['schema'];if(!_0x239316['isTouching'](_0x425193)||!_0x239316['nodeAfter'])return;const _0x190ae4=_0x239316['nodeAfter'];if(_0xdcd656['isBlock'](_0x190ae4)&&!_0xdcd656['isLimit'](_0x190ae4)&&_0xdcd656['checkChild'](_0x190ae4,'$text')){if(!_0x5149d9['consumable']['consume'](_0x556763['markerRange'],_0xe08ce7['name']))return;const {authorId:_0xaace3}=_0x241f07['_splitMarkerName'](_0x556763['markerName']),_0x207c85=_0x5149d9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0xaace3}),_0x12c013=_0x5149d9['mapper']['toViewPosition'](_0x425193);_0x1923a5&&_0x241f07['activeMarkers']['includes'](_0x556763['markerName'])&&_0x5149d9['writer']['addClass']('ck-suggestion-marker--active',_0x207c85),_0x5149d9['writer']['insert'](_0x12c013,_0x207c85),_0x5149d9['mapper']['bindElementToMarker'](_0x207c85,_0x556763['markerName']);}};}class wt extends _0x328234{['afterInit'](){const _0x19d16a=this['editor'];if(!_0x19d16a['plugins']['has']('RemoveFormatEditing'))return;_0x19d16a['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57a258=this['editor'];_0x57a258['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xeb1128=>{if('formatBlock'!=_0xeb1128['type']&&'formatInline'!=_0xeb1128['type'])return;const {data:_0x1e3179}=_0xeb1128;return _0x1e3179&&'removeFormat'==_0x1e3179['commandName']?{'type':'format','content':o(_0x57a258['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x328234{['afterInit'](){const _0x2c6a6d=this['editor'];if(!_0x2c6a6d['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3532c8=_0x2c6a6d['plugins']['get']('TrackChangesEditing');_0x3532c8['enableCommand']('goToPreviousRestrictedEditingException'),_0x3532c8['enableCommand']('goToNextRestrictedEditingException');const _0x77ac2a=_0x2c6a6d['plugins']['get']('RestrictedEditingModeEditing');_0x77ac2a['enableCommand']('trackChanges'),_0x77ac2a['enableCommand']('acceptSuggestion'),_0x77ac2a['enableCommand']('discardSuggestion'),_0x77ac2a['enableCommand']('acceptAllSuggestions'),_0x77ac2a['enableCommand']('discardAllSuggestions'),_0x77ac2a['enableCommand']('acceptSelectedSuggestions'),_0x77ac2a['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x328234{static get['requires'](){return[_0x51d29b];}['init'](){const _0x43a744=this['editor'],_0x71b943=_0x43a744['plugins']['get']('TrackChangesEditing');_0x71b943['enableCommand']('shiftEnter'),_0x43a744['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x43a744),{'priority':'high'}),_0x43a744['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x43a744),{'priority':'high'}),_0x43a744['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x228394,_0x30f299,_0x145924)=>{_0x145924['options']['showSuggestionHighlights']&&ge(_0x43a744,{'showActiveMarker':!0x1})(_0x228394,_0x30f299,_0x145924);}),_0x71b943['descriptionFactory']['registerElementLabel']('softBreak',_0x144f4e=>o(_0x43a744['locale'],'ELEMENT_LINE_BREAK',_0x144f4e));}}function ge(_0x1f0482,{showActiveMarker:_0x9c6a7=!0x0}={}){return(_0x5ab0a5,_0x1bef8d,_0x407730)=>{const _0x104b6e=_0x1f0482['plugins']['get']('TrackChangesEditing');if(!_0x407730['consumable']['test'](_0x1bef8d['markerRange'],_0x5ab0a5['name']))return;const _0x1bd142=_0x1f0482['model'];for(const _0x542a58 of _0x1bef8d['markerRange']['getItems']()){if(!_0x542a58['is']('element','softBreak'))continue;const _0x56dbf5='deletion'==_0x1bef8d['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x1c8c3f}=_0x104b6e['_splitMarkerName'](_0x1bef8d['markerName']),_0x1421be=_0x407730['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x56dbf5,'data-author-id':_0x1c8c3f}),_0x2f1cb5=_0x407730['mapper']['toViewPosition'](_0x1bd142['createPositionBefore'](_0x542a58));_0x9c6a7&&_0x104b6e['activeMarkers']['includes'](_0x1bef8d['markerName'])&&_0x407730['writer']['addClass']('ck-suggestion-marker--active',_0x1421be),_0x407730['writer']['insert'](_0x2f1cb5,_0x1421be),_0x407730['mapper']['bindElementToMarker'](_0x1421be,_0x1bef8d['markerName']);}};}class St extends _0x328234{['afterInit'](){const _0x2ed452=this['editor'],_0x3c042b=_0x2ed452['model'],_0x35b81f=_0x2ed452['locale'];if(!_0x2ed452['plugins']['has']('StandardEditingModeEditing'))return;const _0x231c8a=_0x2ed452['plugins']['get']('TrackChangesEditing'),_0x468d89='restrictedEditingException',_0x1ed1b9=_0x2ed452['commands']['get'](_0x468d89);_0x231c8a['enableCommand'](_0x468d89,(_0x37c05e,_0x3c0e3a={})=>{const _0x39d85d=_0x3c042b['document']['selection'];if(_0x39d85d['isCollapsed'])return void _0x37c05e(_0x3c0e3a);const _0x47eed8=void 0x0!==_0x3c0e3a['forceValue']?_0x3c0e3a['forceValue']:!_0x1ed1b9['value'];_0x3c042b['change'](()=>{const _0x2da8f6=Array['from'](_0x39d85d['getRanges']());for(const _0x5a4bf4 of _0x2da8f6){const _0x1e0027=_0x47eed8?[_0x5a4bf4]:io(_0x468d89,_0x5a4bf4,_0x3c042b);for(const _0x13f777 of _0x1e0027)_0x231c8a['markInlineFormat'](_0x13f777,{'commandName':_0x468d89,'commandParams':[{'forceValue':_0x47eed8}]});}});}),_0x231c8a['descriptionFactory']['registerDescriptionCallback'](_0x315c8f=>{if('formatBlock'!=_0x315c8f['type']&&'formatInline'!=_0x315c8f['type'])return;const {data:_0x35a725}=_0x315c8f;return _0x35a725&&_0x35a725['commandName']==_0x468d89?_0x35a725['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x35b81f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x35b81f,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x328234{['afterInit'](){const _0x5f4f8c=this['editor'];if(!_0x5f4f8c['plugins']['has']('Style')||!_0x5f4f8c['plugins']['has']('DataSchema'))return;const _0x307cdd=_0x5f4f8c['plugins']['get']('TrackChangesEditing'),_0xd2b28b=_0x5f4f8c['locale'],_0x415b02=_0x5f4f8c['config']['get']('style')||{},_0x131937=_0x5f4f8c['plugins']['get']('GeneralHtmlSupport'),_0x5819bb=_0x5f4f8c['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5f4f8c['plugins']['get']('DataSchema'),_0x415b02['definitions']);_0x307cdd['enableDefaultAttributesIntegration']('style');const _0x4178a0=new Set();for(const _0x2b3f8e of _0x5819bb['block']){const _0x12d132=_0x131937['getGhsAttributeNameForElement'](_0x2b3f8e['element']);_0x4178a0['add'](_0x12d132);}const _0x20391d=new Set();for(const _0xa42acf of _0x5819bb['inline']){const _0x1826a7=_0x131937['getGhsAttributeNameForElement'](_0xa42acf['element']);_0x20391d['add'](_0x1826a7);for(const _0x5e68ee of _0xa42acf['ghsAttributes'])_0x20391d['add'](_0x5e68ee);}for(const _0x2d8183 of _0x4178a0)_0x307cdd['registerBlockAttribute'](_0x2d8183),_0x307cdd['descriptionFactory']['registerAttributeLabel'](_0x2d8183,o(_0xd2b28b,'FORMAT_STYLE'));for(const _0x552b91 of _0x20391d)_0x307cdd['registerInlineAttribute'](_0x552b91),_0x307cdd['descriptionFactory']['registerAttributeLabel'](_0x552b91,o(_0xd2b28b,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x249b9d=this['editor'],_0x4f5f83=_0x249b9d['locale'];_0x249b9d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x152ded=>{if('formatBlock'!=_0x152ded['type']&&'formatInline'!=_0x152ded['type'])return;const {data:_0x4d0e69}=_0x152ded;return _0x4d0e69&&'style'===_0x4d0e69['commandName']?_0x4d0e69['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4f5f83,'*Set\x20format:*\x20%0',_0x4d0e69['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4f5f83,'*Remove\x20format:*\x20%0',_0x4d0e69['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x328234{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x49d824){super(_0x49d824),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0xf34919=this['editor'],_0x494774=_0xf34919['model']['document']['selection'];if(!_0xf34919['plugins']['has']('TableEditing'))return;const _0x6dc08=_0xf34919['locale'],_0x2ea94f=_0xf34919['plugins']['get']('TrackChangesEditing'),_0x251317=_0xf34919['plugins']['get']('TableUtils');_0x2ea94f['descriptionFactory']['registerElementLabel']('table',_0x2ccf91=>o(_0x6dc08,'ELEMENT_TABLE',_0x2ccf91)),this['_setupColumnsRowsFixing'](),_0x2ea94f['enableCommand']('insertTable'),_0x2ea94f['enableCommand']('selectTableRow'),_0x2ea94f['enableCommand']('selectTableColumn');for(const _0x3a6955 of['insertTableRowAbove','insertTableRowBelow']){const _0x23be5e=_0xf34919['commands']['get'](_0x3a6955);_0x2ea94f['enableCommand'](_0x3a6955,_0x29f07b=>{_0xf34919['model']['change'](_0x377f8f=>{_0x29f07b();const _0x8eadb4='above'===_0x23be5e['order'],_0x40bc2f=_0x251317['getSelectionAffectedTableCells'](_0x494774),_0x385442=_0x251317['getRowIndexes'](_0x40bc2f),_0x93b74b=_0x8eadb4?_0x385442['first']-0x1:_0x385442['last']+0x1,_0x1fabf0=_0x40bc2f[0x0]['findAncestor']('table'),_0x1f95ec=_0x251317['createTableWalker'](_0x1fabf0,{'startRow':_0x93b74b,'endRow':_0x93b74b}),_0x3cd0c0=Array['from'](_0x1f95ec)['map'](_0x4f91ed=>_0x377f8f['createRangeOn'](_0x4f91ed['cell']));_0x2ea94f['markMultiRangeInsertion'](_0x3cd0c0,'tableRow');});});}for(const _0x5e13ff of['insertTableColumnLeft','insertTableColumnRight']){const _0x3a268c=_0xf34919['commands']['get'](_0x5e13ff);_0x2ea94f['enableCommand'](_0x5e13ff,_0x4999cc=>{_0xf34919['model']['change'](_0x3b8d7b=>{_0x4999cc();const _0x4082b3='left'===_0x3a268c['order'],_0x4eee6c=_0x251317['getSelectionAffectedTableCells'](_0x494774),_0x4ed919=_0x251317['getColumnIndexes'](_0x4eee6c),_0x26d42f=_0x4082b3?_0x4ed919['first']-0x1:_0x4ed919['last']+0x1,_0x5b2fda=_0x4eee6c[0x0]['findAncestor']('table'),_0x3547a6=_0x251317['createTableWalker'](_0x5b2fda,{'startRow':0x0,'column':_0x26d42f,'includeAllSlots':!0x1}),_0x59aa10=Array['from'](_0x3547a6)['map'](_0x4b1e27=>_0x3b8d7b['createRangeOn'](_0x4b1e27['cell']));_0x2ea94f['markMultiRangeInsertion'](_0x59aa10,'tableColumn');});});}for(const _0x5edd3d of['removeTableRow','removeTableColumn']){const _0x573bbc=_0x5edd3d['substr'](0xb),_0x28091d=_0x573bbc['toLowerCase'](),_0x489652=_0x28091d['substr'](0x0,0x3)+'span',_0x3a2123='table'+_0x573bbc,_0xd338d0='min'+_0x573bbc,_0x364fd6='max'+_0x573bbc;_0x2ea94f['enableCommand'](_0x5edd3d,()=>{_0xf34919['model']['change'](_0x1090f7=>{const _0x3923aa=_0x251317['getSelectionAffectedTableCells'](_0x494774),_0x44a157=_0x3923aa[0x0]['findAncestor']('table');let _0x5bea9a;if('removeTableRow'==_0x5edd3d){const _0xcfd3fe=_0x251317['getRowIndexes'](_0x3923aa);_0x5bea9a={'startRow':_0xcfd3fe['first'],'endRow':_0xcfd3fe['last'],'includeAllSlots':!0x0};}else{const _0x200706=_0x251317['getColumnIndexes'](_0x3923aa);_0x5bea9a={'startColumn':_0x200706['first'],'endColumn':_0x200706['last'],'includeAllSlots':!0x0};}const _0x3c8a97=_0x251317['createTableWalker'](_0x44a157,_0x5bea9a),_0xf3f3c6=Array['from'](_0x3c8a97)['map'](({cell:_0x2e5853})=>_0x2e5853),_0x535378=be(_0xf3f3c6['filter'](_0x4d0b10=>_0x4d0b10['hasAttribute'](_0x489652))),_0x3bdac6=be(_0xf3f3c6['filter'](_0x5ecb83=>!_0x5ecb83['hasAttribute'](_0x489652)))['map'](_0x328768=>_0x1090f7['createRangeOn'](_0x328768)),_0x3b06b7=_0x2ea94f['markMultiRangeDeletion'](_0x3bdac6,_0x3a2123);if(_0x3b06b7&&('tableRow'==_0x3b06b7['subType']||'tableColumn'==_0x3b06b7['subType'])){const _0x779909=this['_getSuggestionCoords'](_0x3b06b7);for(const _0x5e33fc of _0x535378){const _0x4e6873=_0x1090f7['createRangeOn'](_0x5e33fc),_0x3db54e=_0x251317['getCellLocation'](_0x5e33fc),_0x2fef9f=_0x5e33fc['getAttribute'](_0x489652)-0x1,_0x2efe08=_0x779909[_0xd338d0],_0x1a87d5=_0x779909[_0x364fd6];_0x2efe08<=_0x3db54e[_0x28091d]&&_0x3db54e[_0x28091d]+_0x2fef9f<=_0x1a87d5&&_0x3b06b7['addRange'](_0x4e6873);}}});});}function _0x3d1c58(_0x4988f2){const _0x112648=Array['from'](_0x494774['getRanges']())['map'](_0x495457=>_0xf41792['fromRange'](_0x495457));_0xf34919['model']['change'](_0x4d644a=>{const _0x811173=_0x4d644a['batch'];_0x4988f2=_0x4988f2['filter'](_0x3c32bf=>'$graveyard'!=_0x3c32bf['root']['rootName']),_0x4d644a['setSelection'](_0x4988f2),_0xf34919['commands']['get']('removeTableRow')['refresh'](),_0xf34919['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xf34919['model']['enqueueChange'](()=>{_0xf34919['model']['enqueueChange'](_0x811173,_0x3e51b3=>{const _0x52bd34=_0x112648['filter'](_0xb86cbe=>'$graveyard'!=_0xb86cbe['root']['rootName']);_0x52bd34['length']>0x0&&_0x3e51b3['setSelection'](_0x52bd34);for(const _0x841a2d of _0x112648)_0x841a2d['detach']();});});});}function _0x5709a3(_0x241280){_0xf34919['model']['change'](_0x5ee781=>{const _0x104353=Array['from'](_0x494774['getRanges']())['map'](_0x452a7f=>_0xf41792['fromRange'](_0x452a7f)),_0xaa84df=[];for(const _0x925484 of _0x241280)for(const _0x39ca50 of _0x925484['getItems']({'shallow':!0x0}))_0xaa84df['push'](_0x39ca50);for(const _0xa96aee of _0xaa84df)'$graveyard'!=_0xa96aee['root']['rootName']&&(_0x5ee781['setSelection'](_0x5ee781['createPositionAt'](_0xa96aee,0x0)),_0xf34919['commands']['get']('removeTableColumn')['refresh'](),_0xf34919['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x22f1ab=_0x104353['filter'](_0x37a1f9=>'$graveyard'!=_0x37a1f9['root']['rootName']);_0x22f1ab['length']>0x0&&_0x5ee781['setSelection'](_0x22f1ab);for(const _0x5a372f of _0x104353)_0x5a372f['detach']();});}function _0x5137a5(_0x563490,_0x45571b){return _0x45571b['every'](_0x2eea8a=>_0x563490['some'](_0x29dc6e=>_0x29dc6e['end']['isEqual'](_0x2eea8a['start'])||_0x2eea8a['end']['isEqual'](_0x29dc6e['start'])));}function _0x4b95d6(_0x36b916,_0x253a04){return!_0x36b916['some'](_0xb27d6f=>_0x253a04['some'](_0x2659e3=>_0xb27d6f['isIntersecting'](_0x2659e3)))&&_0x36b916['some'](_0x4d4795=>_0x253a04['some'](_0x2d28c0=>_0x4d4795['end']['isTouching'](_0x2d28c0['start'])));}_0xf34919['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xe17ca7,_0x3ab207,_0x433761)=>{if(!_0x433761['options']['showSuggestionHighlights'])return;const _0x7e12a8=_0x3ab207['item'];if(!_0x7e12a8)return;const _0x1f3a9a=_0x433761['mapper']['toViewElement'](_0x7e12a8);function _0x17efdc(_0x247e9){return Array['isArray'](_0x247e9)?_0x247e9:[_0x247e9];}_0x1f3a9a&&'tableCell'===_0x7e12a8['name']&&_0x476147(_0x1f3a9a,_0x433761['writer'],(_0x85263,_0x37b247,_0x1b974c)=>_0x1b974c['addClass'](_0x17efdc(_0x37b247['classes']),_0x85263),(_0x15328f,_0x4fd6be,_0x389515)=>_0x389515['removeClass'](_0x17efdc(_0x4fd6be['classes']),_0x15328f));},{'priority':'highest'}),_0x2ea94f['descriptionFactory']['registerDescriptionCallback'](_0x1069e0=>{if('insertion'!=_0x1069e0['type']&&'deletion'!=_0x1069e0['type'])return;const _0x4c941e=_0x1069e0['getContainedElement']();if(null!=_0x4c941e&&_0x4c941e['is']('element','table')){if('insertion'==_0x1069e0['type']){const _0x425b41=_0x1069e0['getItems']()['filter'](_0x160192=>_0x160192['is']('$textProxy'))['map'](_0x227990=>_0x227990['data']);if(_0x425b41['length'])return{'type':'insertion','content':o(_0x6dc08,'*Insert:*\x20%0',o(_0x6dc08,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x425b41['join']('\x20')+'\x22'))};}if('deletion'==_0x1069e0['type']){const _0x5b1865=_0x1069e0['getItems']()['filter'](_0x5b020e=>_0x5b020e['is']('$textProxy'))['map'](_0xdaf178=>_0xdaf178['data']);if(_0x5b1865['length'])return{'type':'deletion','content':o(_0x6dc08,'*Remove:*\x20%0',o(_0x6dc08,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5b1865['join']('\x20')+'\x22'))};}}}),_0x2ea94f['descriptionFactory']['registerDescriptionCallback'](_0x567337=>{if('tableRow'==_0x567337['subType']){const _0x5b7af7=_0x567337['getItems']()['filter'](_0x5841e0=>_0x5841e0['is']('$textProxy'))['map'](_0x820a63=>_0x820a63['data']),_0x1f7d93=this['_getSuggestionCoords'](_0x567337),_0x365482=_0x1f7d93['maxRow']-_0x1f7d93['minRow']+0x1;if('insertion'==_0x567337['type'])return _0x5b7af7['length']?{'type':'insertion','content':o(_0x6dc08,'*Insert:*\x20%0',o(_0x6dc08,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x365482,'\x22'+_0x5b7af7['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x6dc08,'*Insert:*\x20%0',o(_0x6dc08,'ELEMENT_TABLE_ROW',_0x365482))};if('deletion'==_0x567337['type'])return _0x5b7af7['length']?{'type':'deletion','content':o(_0x6dc08,'*Remove:*\x20%0',o(_0x6dc08,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x365482,'\x22'+_0x5b7af7['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x6dc08,'*Remove:*\x20%0',o(_0x6dc08,'ELEMENT_TABLE_ROW',_0x365482))};}if('tableColumn'==_0x567337['subType']){const _0x463797=_0x567337['getItems']()['filter'](_0x249fc4=>_0x249fc4['is']('$textProxy'))['map'](_0x2a88ae=>_0x2a88ae['data']),_0x106a88=this['_getSuggestionCoords'](_0x567337),_0x567272=_0x106a88['maxColumn']-_0x106a88['minColumn']+0x1;if('insertion'==_0x567337['type'])return _0x463797['length']?{'type':'insertion','content':o(_0x6dc08,'*Insert:*\x20%0',o(_0x6dc08,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x567272,'\x22'+_0x463797['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x6dc08,'*Insert:*\x20%0',o(_0x6dc08,'ELEMENT_TABLE_COLUMN',_0x567272))};if('deletion'==_0x567337['type'])return _0x463797['length']?{'type':'deletion','content':o(_0x6dc08,'*Remove:*\x20%0',o(_0x6dc08,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x567272,'\x22'+_0x463797['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x6dc08,'*Remove:*\x20%0',o(_0x6dc08,'ELEMENT_TABLE_COLUMN',_0x567272))};}}),_0x2ea94f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3d1c58),_0x2ea94f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3d1c58),_0x2ea94f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5709a3),_0x2ea94f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5709a3),_0x2ea94f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5137a5),_0x2ea94f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5137a5),_0x2ea94f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4b95d6),_0x2ea94f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4b95d6);}['_acceptFormatSuggestionCallbackFactory'](){const _0x27ccc0=this['editor'],_0x3f20a5=_0x27ccc0['model']['document']['selection'];return(_0x3908e5,_0x4df937)=>{_0x27ccc0['model']['change'](_0x36bfd7=>{const {commandName:_0x4b0aec,commandParams:_0x582921}=_0x4df937;let _0x1fc2da=_0x3908e5[0x0]['end']['nodeBefore'];_0x582921&&_0x582921[0x0]&&!0x1===_0x582921[0x0]['forceValue']&&(_0x1fc2da=_0x3908e5[0x0]['start']['nodeAfter']);const _0x187156=_0x36bfd7['createRangeIn'](_0x1fc2da);if('$graveyard'==_0x187156['root']['rootName'])return;const _0x586901=Array['from'](_0x3f20a5['getRanges']())['map'](_0x293d97=>_0xf41792['fromRange'](_0x293d97));_0x36bfd7['setSelection'](_0x187156),_0x27ccc0['commands']['get'](_0x4b0aec)['refresh'](),_0x582921['push']({'forceDefaultExecution':!0x0}),_0x27ccc0['execute'](_0x4b0aec,..._0x582921);const _0x4ed59a=_0x586901['filter'](_0x4edebf=>'$graveyard'!=_0x4edebf['root']['rootName']);_0x4ed59a['length']>0x0&&_0x36bfd7['setSelection'](_0x4ed59a);for(const _0x3026c7 of _0x586901)_0x3026c7['detach']();});};}['_getCoordsForCells'](_0x51f92d){const _0x5dadf8=this['editor']['plugins']['get']('TableUtils');let _0x4fb937=Number['MAX_SAFE_INTEGER'],_0x19ae7b=Number['MIN_SAFE_INTEGER'],_0x1b8e2d=Number['MAX_SAFE_INTEGER'],_0x4859ac=Number['MIN_SAFE_INTEGER'];for(const _0x18eb0d of _0x51f92d){if('$graveyard'==_0x18eb0d['root']['rootName'])continue;const {row:_0x3dc747,column:_0x3349cf}=_0x5dadf8['getCellLocation'](_0x18eb0d),_0x1fc69c=_0x18eb0d['hasAttribute']('rowspan')?_0x18eb0d['getAttribute']('rowspan')-0x1:0x0,_0x47b2b7=_0x18eb0d['hasAttribute']('colspan')?_0x18eb0d['getAttribute']('colspan')-0x1:0x0;_0x4fb937=_0x3dc747<_0x4fb937?_0x3dc747:_0x4fb937,_0x19ae7b=_0x3dc747+_0x1fc69c>_0x19ae7b?_0x3dc747+_0x1fc69c:_0x19ae7b,_0x1b8e2d=_0x3349cf<_0x1b8e2d?_0x3349cf:_0x1b8e2d,_0x4859ac=_0x3349cf+_0x47b2b7>_0x4859ac?_0x3349cf+_0x47b2b7:_0x4859ac;}return{'minRow':_0x4fb937,'maxRow':_0x19ae7b,'minColumn':_0x1b8e2d,'maxColumn':_0x4859ac};}['_setupColumnsRowsFixing'](){const _0x999d81=this['editor'],_0x3a0d79=_0x999d81['plugins']['get']('TrackChangesEditing'),_0x45409e=_0x999d81['plugins']['get']('TableUtils');_0x999d81['model']['document']['on']('change:data',()=>{const _0x10355b=Array['from'](_0x999d81['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xbc79ff,data:_0x9b0d4b}of _0x10355b){const {group:_0xc5568d,id:_0x2ff268,subType:_0x2d81ba}=_0x3a0d79['_splitMarkerName'](_0xbc79ff);if('suggestion'!=_0xc5568d)continue;if(null!=_0x9b0d4b['oldRange'])continue;const _0x766816=_0x3a0d79['getSuggestion'](_0x2ff268);this['_tablePostFixingSubtypes']['includes'](_0x2d81ba)&&this['_tableSuggestions']['add'](_0x766816);}},{'priority':'low'});const _0x1f90f4=(_0x158b3a,_0x21c9f1)=>{let _0x351351=!0x1;const _0x58d8f6=_0x21c9f1['createRangeOn'](_0x158b3a),_0x2499aa=_0x158b3a['findAncestor']('table'),_0x1ec3ee=_0x45409e['getCellLocation'](_0x158b3a);for(const _0x4825e6 of this['_tableSuggestions']){const _0x2f52a6=_0x4825e6['subType'],_0x32af38=_0x2f52a6['startsWith']('tablePaste'),_0x48f4f9=_0x2f52a6['substr'](_0x32af38?0xa:0x5),_0x3cddcf=_0x48f4f9['toLowerCase'](),_0x209825=_0x3cddcf['substr'](0x0,0x3)+'span',_0x343e2e='min'+_0x48f4f9,_0x59dccd='max'+_0x48f4f9;if(!_0x4825e6['isInContent'])continue;if(_0x2499aa!=_0x4825e6['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4825e6['isIntersectingWithRange'](_0x58d8f6))continue;const _0x66c0eb=_0x158b3a['hasAttribute'](_0x209825)?_0x158b3a['getAttribute'](_0x209825)-0x1:0x0,_0x54e444=this['_getSuggestionCoords'](_0x4825e6),_0x3952d2=_0x54e444[_0x343e2e],_0x586e82=_0x54e444[_0x59dccd];_0x3952d2<=_0x1ec3ee[_0x3cddcf]&&_0x1ec3ee[_0x3cddcf]+_0x66c0eb<=_0x586e82&&(_0x4825e6['addRange'](_0x58d8f6),_0x351351=!0x0);}return _0x351351;};_0x999d81['model']['document']['registerPostFixer'](_0x411dd0=>{let _0x2af623=!0x1;for(const _0xa8ce9c of _0x999d81['model']['document']['differ']['getChanges']())if('insert'==_0xa8ce9c['type']){if('tableRow'==_0xa8ce9c['name']){for(const _0x3281f0 of _0xa8ce9c['position']['nodeAfter']['getChildren']())_0x2af623=_0x2af623||_0x1f90f4(_0x3281f0,_0x411dd0);}else'tableCell'==_0xa8ce9c['name']&&(_0x2af623=_0x2af623||_0x1f90f4(_0xa8ce9c['position']['nodeAfter'],_0x411dd0));}return _0x2af623;});}['_getSuggestionCoords'](_0x39ac71){return this['_getCoordsForCells'](_0x39ac71['getRanges']()['map'](_0x1d0c0d=>_0x1d0c0d['start']['nodeAfter']));}}function be(_0x19cc39){return Array['from'](new Set(_0x19cc39)['values']());}class vt extends _0x328234{static get['requires'](){return[It];}['afterInit'](){const _0x805cb7=this['editor'],_0x37d2b3=_0x805cb7['model']['document']['selection'],_0x11e08f=_0x805cb7['locale'];if(!_0x805cb7['plugins']['has']('TableEditing'))return;const _0x495718=_0x805cb7['plugins']['get']('TrackChangesEditing'),_0x45d0ec=_0x805cb7['plugins']['get']('TableUtils'),_0x389286=_0x805cb7['plugins']['get'](It);_0x389286['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x495718['enableCommand']('mergeTableCells',()=>{const _0x1fe895=_0x45d0ec['getSelectionAffectedTableCells'](_0x805cb7['model']['document']['selection']);_0x805cb7['model']['change'](()=>{_0x495718['markMultiRangeBlockFormat'](_0x1fe895,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x805cb7['commands']['get']('mergeTableCells')['on']('execute',(_0x55c94b,_0x54292d)=>{_0x805cb7['commands']['get']('trackChanges')['value']&&(_0x54292d['length']>0x0&&_0x54292d[_0x54292d['length']-0x1]&&_0x54292d[_0x54292d['length']-0x1]['forceDefaultExecution']||_0x495718['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x55c94b['stop']());},{'priority':'highest'});for(const _0xf1cd33 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x50ae76=_0x805cb7['commands']['get'](_0xf1cd33);_0x495718['enableCommand'](_0xf1cd33,()=>{const _0x523abf=_0x805cb7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xef8717=>_0xef8717['is']('element','tableCell')),_0x5ad28c=_0x50ae76['value'];_0x805cb7['model']['change'](()=>{_0x495718['markMultiRangeBlockFormat']([_0x523abf,_0x5ad28c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x54165e of['splitTableCellVertically','splitTableCellHorizontally']){const _0x48d4c9=_0x805cb7['commands']['get'](_0x54165e);_0x495718['enableCommand'](_0x54165e,()=>{const _0x4f28c0=_0x45d0ec['getSelectionAffectedTableCells'](_0x805cb7['model']['document']['selection'])[0x0],_0x42e6a4=_0x4f28c0['findAncestor']('table'),{column:_0x5ce9a1,row:_0x19450d}=_0x45d0ec['getCellLocation'](_0x4f28c0);let _0x2675d4=[];if('horizontally'==_0x48d4c9['direction']){const _0x40626a=_0x45d0ec['createTableWalker'](_0x42e6a4,{'startRow':_0x19450d,'endRow':_0x19450d,'includeAllSlots':!0x0});_0x2675d4=Array['from'](_0x40626a)['map'](_0x1017ba=>_0x1017ba['cell']);}else{const _0xfe37d0=_0x45d0ec['createTableWalker'](_0x42e6a4,{'column':_0x5ce9a1,'includeAllSlots':!0x0});_0x2675d4=Array['from'](_0xfe37d0)['map'](_0x103f09=>_0x103f09['cell']);}_0x805cb7['model']['change'](_0x511f46=>{_0x495718['markBlockFormat'](_0x511f46['createRangeOn'](_0x4f28c0),{'commandName':_0x54165e,'commandParams':[]},_0x2675d4,_0x54165e);});});}_0x495718['descriptionFactory']['registerDescriptionCallback'](_0x236519=>{if('formatBlock'!=_0x236519['type']&&'formatInline'!=_0x236519['type'])return;const {data:_0xb1255e}=_0x236519;return _0xb1255e&&'mergeTableCells'==_0xb1255e['commandName']?{'type':'format','content':o(_0x11e08f,'*Merge\x20cells*')}:void 0x0;}),_0x495718['descriptionFactory']['registerDescriptionCallback'](_0x170229=>{if('formatBlock'!=_0x170229['type']&&'formatInline'!=_0x170229['type'])return;const {data:_0x122687}=_0x170229;return _0x122687?'splitTableCellVertically'==_0x122687['commandName']?{'type':'format','content':o(_0x11e08f,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x122687['commandName']?{'type':'format','content':o(_0x11e08f,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x48f7ae=_0x389286['_acceptFormatSuggestionCallbackFactory']();for(const _0x2cf20e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x495718['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2cf20e,'accept',_0x48f7ae);for(const _0x2cae23 of['splitTableCellVertically','splitTableCellHorizontally'])_0x495718['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2cae23,'accept',_0x48f7ae);_0x495718['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5a0fb5=>{_0x805cb7['model']['change'](_0x227d83=>{const _0x3bd1dd=Array['from'](_0x37d2b3['getRanges']())['map'](_0x5514cb=>_0xf41792['fromRange'](_0x5514cb));_0x227d83['setSelection'](_0x5a0fb5),_0x805cb7['commands']['get']('mergeTableCells')['refresh'](),_0x805cb7['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x56b2fe=_0x3bd1dd['filter'](_0x4861c4=>'$graveyard'!=_0x4861c4['root']['rootName']);_0x56b2fe['length']>0x0&&_0x227d83['setSelection'](_0x56b2fe);for(const _0x18bf85 of _0x3bd1dd)_0x18bf85['detach']();});});for(const _0x4f65f4 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xbb9284=_0x805cb7['commands']['get'](_0x4f65f4);_0xbb9284['on']('set:isEnabled',(_0x4b41f5,_0xe7ac87,_0x538d74)=>{if(_0x538d74){const _0x584b65=_0x805cb7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x464568=>_0x464568['is']('element','tableCell'));this['_areMergableCells'](_0xbb9284['value'],_0x584b65)||(_0x4b41f5['return']=!0x1,_0x4b41f5['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x16c564=this['editor']['commands']['get']('mergeTableCells'),_0x13bc3f=this['editor']['plugins']['get']('TableUtils');if(!_0x16c564['isEnabled'])return!0x1;const _0x37ca0e=_0x13bc3f['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1247d7 of _0x37ca0e)for(const _0x41d371 of _0x37ca0e)if(_0x1247d7!=_0x41d371&&!this['_areMergableCells'](_0x1247d7,_0x41d371))return!0x1;return!0x0;}['_areMergableCells'](_0x4a8d9c,_0x234d52){const _0x5bd2e1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x153601=this['editor']['model']['createRangeOn'](_0x4a8d9c),_0x3c954a=this['editor']['model']['createRangeOn'](_0x234d52),_0x53a2ec=new Set(),_0x1b8b1c=new Set();for(const _0x59c156 of _0x5bd2e1['getSuggestions']())if(('insertion'==_0x59c156['type']||'deletion'==_0x59c156['type']||'mergeTableCells'==_0x59c156['subType'])&&_0x59c156['isInContent']){for(const _0x520e1d of _0x59c156['getRanges']())_0x520e1d['containsRange'](_0x153601,!0x0)&&_0x53a2ec['add'](_0x59c156['type']+':'+_0x59c156['author']['id']),_0x520e1d['containsRange'](_0x3c954a,!0x0)&&_0x1b8b1c['add'](_0x59c156['type']+':'+_0x59c156['author']['id']);}if(_0x53a2ec['size']!=_0x1b8b1c['size'])return!0x1;for(const _0x202dae of _0x53a2ec)if(!_0x1b8b1c['has'](_0x202dae))return!0x1;return!0x0;}}class Ct extends _0x328234{static get['requires'](){return[It];}['afterInit'](){const _0x10f16c=this['editor'];if(!_0x10f16c['plugins']['has']('TableEditing'))return;const _0x358e88=_0x10f16c['locale'],_0x55a256=_0x10f16c['plugins']['get']('TrackChangesEditing');_0x55a256['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x55a256['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x55a256['registerBlockAttribute']('headingRows'),_0x55a256['registerBlockAttribute']('headingColumns'),_0x55a256['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x358e88,'FORMAT_HEADER_ROW')),_0x55a256['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x358e88,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5312c5=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc609e3=this['editor']['plugins']['get']('TableUtils'),_0x274e0f=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x53091a({showActiveMarker:_0x3d46ac=!0x0,setDataAttribute:_0x2bf8b5=!0x0}={}){return(_0x5eb29e,_0x21687a,_0x2c5e83)=>{const {type:_0x379a0d,id:_0x387f9b}=_0x5312c5['_splitMarkerName'](_0x21687a['markerName']),_0x1b0fcb=_0x5312c5['getSuggestion'](_0x387f9b),_0x41b42d=_0x1b0fcb['data'];if('formatBlock'!=_0x1b0fcb['type']||!_0x41b42d||'setTableColumnHeader'!=_0x41b42d['commandName'])return;if(_0x21687a['item'])return void _0x5eb29e['stop']();if(!_0x2c5e83['consumable']['consume'](_0x21687a['markerRange'],_0x5eb29e['name']))return;const _0x35cb91=_0x21687a['markerRange']['start']['nodeAfter'],_0xde864a=_0x21687a['markerRange']['end']['nodeBefore'],_0x15be07=_0x35cb91['parent']['parent'],{column:_0x10d9de}=_0xc609e3['getCellLocation'](_0x35cb91),{column:_0x50ce1e}=_0xc609e3['getCellLocation'](_0xde864a);for(let _0x5570dd=_0x10d9de;_0x5570dd<=_0x50ce1e;_0x5570dd++){const _0x340cb=_0xc609e3['createTableWalker'](_0x15be07,{'column':_0x5570dd,'includeAllSlots':!0x1});for(const _0xfe4933 of _0x340cb){const _0x43760f=_0xfe4933['cell'],_0x86e7d9=_0x2c5e83['mapper']['toViewElement'](_0x43760f);_0x2c5e83['writer']['addClass']('ck-suggestion-marker-'+_0x379a0d,_0x86e7d9),_0x2bf8b5&&_0x2c5e83['writer']['setAttribute']('data-suggestion',_0x387f9b,_0x86e7d9),_0x2c5e83['mapper']['bindElementToMarker'](_0x86e7d9,_0x21687a['markerName']),_0x3d46ac&&(_0x5312c5['activeMarkers']['includes'](_0x21687a['markerName'])?_0x2c5e83['writer']['addClass']('ck-suggestion-marker--active',_0x86e7d9):_0x2c5e83['writer']['removeClass']('ck-suggestion-marker--active',_0x86e7d9));}}};}_0x5312c5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x274e0f),_0x5312c5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x274e0f),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x53091a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4416ec,_0x48dd80,_0x24b0c6)=>{_0x24b0c6['options']['showSuggestionHighlights']&&_0x53091a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4416ec,_0x48dd80,_0x24b0c6);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x80b8ce,_0xcaf0ed,_0x39d594)=>{const {type:_0x3ae08d,id:_0x252a15}=_0x5312c5['_splitMarkerName'](_0xcaf0ed['markerName']),_0x205d29=_0x5312c5['getSuggestion'](_0x252a15),_0x4f9568=_0x205d29['data'];if('formatBlock'!=_0x205d29['type']||!_0x4f9568||'setTableColumnHeader'!=_0x4f9568['commandName'])return;const _0x5bb743=_0x39d594['mapper']['markerNameToElements'](_0xcaf0ed['markerName']);if(_0x5bb743){for(const _0x323c13 of _0x5bb743)_0x39d594['writer']['removeClass']('ck-suggestion-marker-'+_0x3ae08d,_0x323c13),_0x39d594['writer']['removeClass']('ck-suggestion-marker--active',_0x323c13),_0x39d594['writer']['removeAttribute']('data-suggestion',_0x323c13),_0x39d594['mapper']['unbindElementFromMarkerName'](_0x323c13,_0xcaf0ed['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e000a=this['editor'],_0x5cacb2=_0x2e000a['locale'];function _0x27a531(_0x139435){return{'type':'format','content':o(_0x5cacb2,'*Format:*\x20%0',_0x139435)};}_0x2e000a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11df79=>{if('formatBlock'!=_0x11df79['type'])return;const {data:_0x1bc0d2}=_0x11df79;if(_0x1bc0d2){if('setTableRowHeader'==_0x1bc0d2['commandName']){const _0xf725d=_0x1bc0d2['commandParams'][0x0]['forceValue'];return _0x27a531(o(_0x5cacb2,_0xf725d?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1bc0d2['commandName']){const _0x13c964=_0x1bc0d2['commandParams'][0x0]['forceValue'];return _0x27a531(o(_0x5cacb2,_0x13c964?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x23eb50=>[_0x23eb50,null]));class _t extends _0x328234{static get['requires'](){return[It];}['afterInit'](){const _0x187d67=this['editor'];if(!_0x187d67['plugins']['has']('TableClipboard'))return;const _0x531cbc=_0x187d67['plugins']['get']('TrackChangesEditing'),_0x55a3aa=_0x187d67['plugins']['get']('TableUtils'),_0x56fe83=_0x187d67['plugins']['get'](It),_0x177a4a=_0x187d67['plugins']['get']('TableClipboard');_0x56fe83['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x187d67['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x187d67['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x108108=null;_0x187d67['model']['on']('insertContent',(_0x23c980,_0x173b27)=>{const [_0x3a5b11,_0x3976d1]=_0x173b27,_0x39be31=_0x173b27[_0x173b27['length']-0x1];_0x39be31&&_0x39be31['forceDefaultExecution']||_0x531cbc['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x45b8cb,_0x305d38,_0x57608a,_0x158567,_0x3cd417){if(_0x305d38&&!_0x305d38['is']('documentSelection'))return!0x1;const _0x5e8053=_0x3cd417['getTableIfOnlyTableInContent'](_0x45b8cb,_0x57608a);if(!_0x5e8053||!Re(_0x5e8053,void 0x0,_0x158567))return!0x1;const _0xb1879a=_0x158567['getSelectionAffectedTableCells'](_0x57608a['document']['selection']);if(!_0xb1879a['length'])return!0x1;const _0x51d649=_0xb1879a[0x0]['findAncestor']('table'),_0x339b0f=_0x158567['getRowIndexes'](_0xb1879a),_0x42335b=_0x158567['getColumnIndexes'](_0xb1879a),_0x33efaa={'startRow':_0x339b0f['first'],'endRow':_0x339b0f['last'],'startColumn':_0x42335b['first'],'endColumn':_0x42335b['last']};return 0x1==_0xb1879a['length']&&(_0x33efaa['endRow']+=_0x158567['getRows'](_0x5e8053)-0x1,_0x33efaa['endColumn']+=_0x158567['getColumns'](_0x5e8053)-0x1),Re(_0x51d649,_0x33efaa,_0x158567);}(_0x3a5b11,_0x3976d1,_0x187d67['model'],_0x55a3aa,_0x177a4a)&&(_0x23c980['stop'](),_0x108108={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x187d67['model']['change'](()=>{_0x187d67['model']['insertContent'](_0x173b27[0x0],_0x173b27[0x1],_0x173b27[0x2],{'forceDefaultExecution':!0x0});const _0x98ea22=_0x2b4c20(),{rowInsertionRanges:_0x4723e1,columnInsertionRanges:_0x2a83d5,insertionRanges:_0x39591d,deletionRanges:_0xc7d64c,cells:_0x16250b}=_0x108108;_0x4723e1['length']&&_0x531cbc['markMultiRangeInsertion'](_0x4723e1,'tablePasteRow',{'tablePasteChainId':_0x98ea22}),_0x2a83d5['length']&&_0x531cbc['markMultiRangeInsertion'](_0x2a83d5,'tablePasteColumn',{'tablePasteChainId':_0x98ea22}),_0x39591d['length']&&(_0x531cbc['markMultiRangeInsertion'](_0x39591d,'tablePaste',{'tablePasteChainId':_0x98ea22,'skipNestingCheck':!0x0}),_0x39591d['forEach'](_0x9994f5=>_0x9994f5['detach']?.())),_0xc7d64c['length']&&(_0x531cbc['markMultiRangeDeletion'](_0xc7d64c,'tablePaste',{'tablePasteChainId':_0x98ea22,'skipNestingCheck':!0x0}),_0xc7d64c['forEach'](_0x4558b8=>_0x4558b8['detach']?.()));const _0x4a7641=_0x531cbc['markMultiRangeBlockFormat'](_0x16250b['map'](({element:_0xe605d8})=>_0xe605d8),{'formatGroupId':_0x2b4c20()},[],'tablePasteCell',{'tablePasteChainId':_0x98ea22});if(_0x4a7641){const _0x513445=_0x4a7641['getMarkers'](),_0x87ed3b=[];for(const {element:_0xadb7c2,attributes:_0x163843}of _0x16250b){if(!_0x163843)continue;const _0x3348c1=_0x187d67['model']['createRangeOn'](_0xadb7c2),_0x11cae6=_0x513445['find'](_0x69792c=>_0x69792c['getRange']()['isEqual'](_0x3348c1));_0x11cae6&&_0x87ed3b['push']([_0x11cae6['name'],_0x163843]);}_0x87ed3b['length']&&_0x4a7641['setAttribute']('markerAttributes',Object['fromEntries'](_0x87ed3b));}_0x108108=null;}));},{'priority':_0x408fd7['high']+0xa}),_0x187d67['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x464f6e,_0x44d29b)=>{const [_0x4201b7,_0xaddf43,,_0x7bcccb]=_0x44d29b;if(!_0x108108)return;_0x464f6e['stop']();const _0xeb033c=_0x4201b7['cell'],_0x15b342=_0xaddf43,_0x286cd9=ke(_0xeb033c),_0x46457f=ke(_0x15b342);_0x464f6e['return']=_0xeb033c;let _0x5a3f66=null,_0x4753ff=null;if(_0x46457f||_0x286cd9){if(_0x286cd9&&!_0x46457f){_0x7bcccb['remove'](_0xeb033c['getChild'](0x0));for(const _0x2fea64 of Array['from'](_0x15b342['getChildren']()))_0x7bcccb['insert'](_0x2fea64,_0xeb033c,'end');const _0x369baf=_0x108108['rowInsertionIndexes']['includes'](_0x4201b7['row']),_0x1a745e=_0x108108['columnInsertionIndexes']['includes'](_0x4201b7['column']);_0x369baf||_0x1a745e||(_0x5a3f66=_0xf41792['fromRange'](_0x7bcccb['createRangeIn'](_0xeb033c)));}else _0x46457f&&!_0x286cd9&&(_0x4753ff=_0x7bcccb['createRangeIn'](_0xeb033c));}else{const _0x2e3564=_0x7bcccb['createElement']('tableCellSuggestion'),_0x21c21a=_0x7bcccb['createElement']('tableCellSuggestion');_0x7bcccb['wrap'](_0x7bcccb['createRangeIn'](_0xeb033c),_0x21c21a),_0x7bcccb['insert'](_0x2e3564,_0xeb033c,0x0);for(const _0x29010e of Array['from'](_0x15b342['getChildren']()))_0x7bcccb['insert'](_0x29010e,_0x2e3564,'end');_0x5a3f66=_0xf41792['fromRange'](_0x7bcccb['createRangeOn'](_0x2e3564)),_0x4753ff=_0xf41792['fromRange'](_0x7bcccb['createRangeOn'](_0x21c21a));}const _0x4f2d70=Array['from'](_0x15b342['getAttributes']())['filter'](([_0x51489f])=>Pe['includes'](_0x51489f));_0x108108['cells']['push']({'element':_0xeb033c,'attributes':_0x4f2d70['length']?Object['fromEntries'](_0x4f2d70):null}),_0x5a3f66&&_0x108108['insertionRanges']['push'](_0x5a3f66),_0x4753ff&&_0x108108['deletionRanges']['push'](_0x4753ff);},{'priority':'high'}),_0x55a3aa['on']('insertColumns',(_0x4e51bd,_0x57a1c2)=>{const [_0x413eef,_0x5b4bf3={}]=_0x57a1c2;if(!_0x108108)return;const _0x59bf39=_0x5b4bf3['at']||0x0,_0x2c7440=_0x5b4bf3['columns']||0x1;_0x108108['columnInsertionIndexes']=new Array(_0x2c7440)['fill'](_0x59bf39)['map']((_0x1ef927,_0x271fe8)=>_0x1ef927+_0x271fe8);for(const {cell:_0x46c08f}of _0x55a3aa['createTableWalker'](_0x413eef,{'startColumn':_0x59bf39,'endColumn':_0x59bf39+_0x2c7440-0x1}))_0x108108['columnInsertionRanges']['push'](_0x187d67['model']['createRangeOn'](_0x46c08f));},{'priority':'low'}),_0x55a3aa['on']('insertRows',(_0x3fb321,_0x3ec117)=>{const [_0x1ef4b1,_0x9536ed={}]=_0x3ec117;if(!_0x108108)return;const _0x445b23=_0x9536ed['at']||0x0,_0x2c12e8=_0x9536ed['rows']||0x1;_0x108108['rowInsertionIndexes']=new Array(_0x2c12e8)['fill'](_0x445b23)['map']((_0x56dff5,_0x17260c)=>_0x56dff5+_0x17260c);for(const {cell:_0x500cae}of _0x55a3aa['createTableWalker'](_0x1ef4b1,{'startRow':_0x445b23,'endRow':_0x445b23+_0x2c12e8-0x1}))_0x108108['rowInsertionRanges']['push'](_0x187d67['model']['createRangeOn'](_0x500cae));},{'priority':'low'}),_0x531cbc['descriptionFactory']['registerDescriptionCallback'](_0xe94fd=>{if(_0xe94fd['subType']&&_0xe94fd['subType']['startsWith']('tablePaste'))return _0xe94fd['previous']?{}:{'type':'insertion','content':o(_0x187d67['locale'],'*Replace\x20table\x20cells*')};});const _0x70edbb=()=>!0x1;for(const _0x47c17f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x531cbc['_suggestionFactory']['registerCustomCallback']('insertion',_0x47c17f,'join',_0x70edbb),_0x531cbc['_suggestionFactory']['registerCustomCallback']('deletion',_0x47c17f,'join',_0x70edbb),_0x531cbc['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x47c17f,'join',_0x70edbb);_0x531cbc['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x70edbb),_0x531cbc['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x52aeba,_0x46ed58,_0x48a5cf)=>{const _0x4be0d4=_0x52aeba['map'](_0x22ec0a=>_0x22ec0a['getContainedElement']())['filter'](_0x582752=>_0x582752),_0xa806b0=new Map(_0x4be0d4['map'](_0x87a69c=>[_0x87a69c,null]));if(_0x108108){for(const {element:_0xa840b3,attributes:_0x12a713}of _0x108108['cells'])_0x12a713&&_0xa806b0['set'](_0xa840b3,_0x12a713);}else{if(_0x48a5cf&&_0x48a5cf['markerAttributes'])for(const [_0x14e27b,_0x5cf66d]of Object['entries'](_0x48a5cf['markerAttributes'])){const _0x589c84=_0x187d67['model']['markers']['get'](_0x14e27b),_0x49c72d=_0x589c84?_0x589c84['getRange']()['getContainedElement']():null;_0x49c72d&&_0xa806b0['set'](_0x49c72d,_0x5cf66d);}}_0x187d67['model']['change'](_0x499e7a=>{for(const [_0x1812c3,_0x101f45]of _0xa806b0)_0x499e7a['setAttributes']({...we,..._0x101f45},_0x1812c3);});});const _0x908992=(_0x265a4a,_0x45abc3)=>{_0x531cbc['_suggestionFactory']['registerCustomCallback'](_0x265a4a,'tablePaste',_0x45abc3,(_0xe0e944,_0x5f047f,_0x5dbadc)=>{_0x187d67['model']['change'](_0x2d22c2=>{const _0x3254fe=[];for(const _0x27b092 of _0xe0e944){const _0x293a8e=_0x27b092['start']['nodeAfter'];_0x293a8e['is']('element','tableCellSuggestion')&&_0x3254fe['push'](_0x293a8e);}_0x531cbc['_suggestionFactory']['getSuggestionCallback'](_0x265a4a,null,_0x45abc3)(_0xe0e944,_0x5f047f,_0x5dbadc);for(const _0x3e9c61 of _0x3254fe)'$graveyard'!=_0x3e9c61['root']['rootName']&&_0x2d22c2['unwrap'](_0x3e9c61);});});};_0x908992('insertion','accept'),_0x908992('insertion','discard'),_0x908992('deletion','accept'),_0x908992('deletion','discard'),_0x531cbc['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x239ced=>{const _0x33eed4=_0x239ced['map'](_0x742f19=>_0x742f19['getContainedElement']()),_0x4a3276=_0x33eed4[0x0]['findAncestor']('table'),{minRow:_0x2d4d5f,maxRow:_0x24a12d}=_0x56fe83['_getCoordsForCells'](_0x33eed4);_0x55a3aa['removeRows'](_0x4a3276,{'at':_0x2d4d5f,'rows':_0x24a12d-_0x2d4d5f+0x1});}),_0x531cbc['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xb3786e=>{const _0x5f2f6a=_0xb3786e['map'](_0x453f0a=>_0x453f0a['getContainedElement']()),_0x247d29=_0x5f2f6a[0x0]['findAncestor']('table'),{minColumn:_0x1c3b8c,maxColumn:_0x3fad04}=_0x56fe83['_getCoordsForCells'](_0x5f2f6a);_0x55a3aa['removeColumns'](_0x247d29,{'at':_0x1c3b8c,'columns':_0x3fad04-_0x1c3b8c+0x1});});const _0x56f568=(_0xda70cb,_0x15049a)=>{if(!_0x15049a['subType']||!_0x15049a['subType']['startsWith']('tablePaste'))return;const _0x311f56=_0x15049a['attributes']['tablePasteChainId'],_0x3b88fb=_0x531cbc['getSuggestions']()['filter'](_0x3eacda=>_0x3eacda['isInContent']&&_0x3eacda['attributes']&&_0x3eacda['attributes']['tablePasteChainId']==_0x311f56);_0x3b88fb['length']&&_0x15049a['getAllAdjacentSuggestions']()['length']!=_0x3b88fb['length']&&_0x3b88fb['reduce']((_0x2fef9c,_0x43abda)=>(_0x2fef9c['next']=_0x43abda,_0x43abda['previous']=_0x2fef9c,_0x43abda));};function _0x2de001(_0x1de109,_0x20c813=!0x0){const {id:_0x1251ea,authorId:_0x2805ac}=_0x531cbc['_splitMarkerName'](_0x1de109['markerName']),_0x4cd9df=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x14f63=_0x531cbc['activeMarkers']['includes'](_0x1de109['markerName']);return _0x14f63&&_0x4cd9df['push']('ck-suggestion-marker--active'),{'classes':_0x4cd9df,'attributes':{'data-suggestion':_0x1251ea,'data-author-id':_0x2805ac},'priority':_0x14f63&&_0x20c813?0xbc2:0xbb8};}_0x531cbc['on']('suggestionLoaded',_0x56f568,{'priority':'high'}),_0x531cbc['on']('suggestionUnloaded',_0x56f568,{'priority':'high'}),_0x187d67['model']['document']['registerPostFixer'](()=>{let _0x3da0a2=!0x1;const _0x531ef4=Array['from'](_0x187d67['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x96ec0f,data:_0x59fed3}of _0x531ef4){const {group:_0x15e241,type:_0x1b80ed,id:_0x98bc4}=_0x531cbc['_splitMarkerName'](_0x96ec0f);if('suggestion'!=_0x15e241||'deletion'!=_0x1b80ed||_0x59fed3['oldRange'])continue;if(!_0x531cbc['hasSuggestion'](_0x98bc4))continue;const _0x254e37=_0x531cbc['getSuggestion'](_0x98bc4)['getRanges'](),_0x336f9d=_0x187d67['plugins']['get']('Users')['me'];for(const _0x22aa29 of _0x531cbc['getSuggestions']()){if(!_0x22aa29['isInContent']||_0x22aa29['author']!=_0x336f9d)continue;if('formatBlock'!=_0x22aa29['type']||'tablePasteCell'!=_0x22aa29['subType'])continue;if(_0x22aa29['getRanges']()['every'](_0x5f5c29=>_0x254e37['some'](_0x21a3a8=>_0x21a3a8['containsRange'](_0x5f5c29,!0x0)))){for(const _0x54191a of _0x22aa29['getAllAdjacentSuggestions']())_0x54191a['isInContent']&&(_0x54191a['discard'](),_0x3da0a2=!0x0);}}}return _0x3da0a2;}),_0x187d67['model']['document']['registerPostFixer'](_0x107ce4=>{const _0x5f3ccb=_0x187d67['commands']['get']('redo');if(!_0x5f3ccb||!_0x5f3ccb['_createdBatches']['has'](_0x107ce4['batch']))return!0x1;let _0x95b8cd=!0x1;const _0x11e6b9=_0x187d67['plugins']['get']('Users')['me'],_0x1df7b1=_0x187d67['model']['document']['differ']['getChanges'](),_0x5545fd=Array['from'](_0x187d67['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5b8061,data:_0x463cc6})=>{const {group:_0x1bc893,subType:_0x2810f4,authorId:_0x4d24cc}=_0x531cbc['_splitMarkerName'](_0x5b8061);return'suggestion'==_0x1bc893&&'tablePaste'==_0x2810f4&&_0x4d24cc==_0x11e6b9['id']&&!_0x463cc6['oldRange'];});for(const _0x441398 of _0x1df7b1){if('insert'!=_0x441398['type']||'tableCellSuggestion'!=_0x441398['name']||0x1!=_0x441398['length'])continue;const _0x120e55=_0x107ce4['createRange'](_0x441398['position'],_0x441398['position']['getShiftedBy'](0x1));if(!_0x5545fd['find'](({data:_0x566616})=>_0x566616['newRange']['isEqual'](_0x120e55))){for(const {name:_0xb34357,data:_0x32c6e2}of _0x5545fd)if(_0x120e55['containsRange'](_0x32c6e2['newRange'])){_0x107ce4['updateMarker'](_0xb34357,{'range':_0x120e55}),_0x95b8cd=!0x0;break;}}}return _0x95b8cd;}),_0x187d67['model']['document']['registerPostFixer'](_0x2fdaf6=>{let _0x23f009=!0x1;const _0x3b3322=_0x187d67['plugins']['get']('Users')['me'],_0xfee98=_0x531cbc['getSuggestions']()['filter'](_0x3ddd38=>_0x3ddd38['isInContent']&&_0x3ddd38['author']==_0x3b3322),_0x143226=new Set(),_0x3fbc99=new Set();for(const _0xf83711 of _0xfee98)if('tablePaste'==_0xf83711['subType'])for(const _0xca926d of _0xf83711['getMarkers']()){const _0x44f633=_0xca926d['getRange']()['getContainedElement']();if(_0x44f633){if(_0x44f633['is']('element','tableCellSuggestion')&&ke(_0x44f633)){_0xf83711['removeMarker'](_0xca926d['name']),_0x143226['add'](_0x44f633),_0x23f009=!0x0;const _0x4500e9=_0x44f633['nextSibling'],_0x5562a8=_0x44f633['previousSibling'],_0x14b82a=_0x4500e9&&_0x4500e9['is']('element','tableCellSuggestion'),_0x41b2aa=_0x5562a8&&_0x5562a8['is']('element','tableCellSuggestion');_0x14b82a&&!_0x143226['has'](_0x4500e9)&&_0x3fbc99['add'](_0x4500e9),_0x41b2aa&&!_0x143226['has'](_0x5562a8)&&_0x3fbc99['add'](_0x5562a8);}else _0x44f633['is']('element','paragraph')&&_0x44f633['isEmpty']&&(_0xf83711['removeMarker'](_0xca926d['name']),_0x23f009=!0x0);}}else{if('tablePasteCell'==_0xf83711['subType']){if(!_0xf83711['attributes']||!_0xf83711['attributes']['tablePasteChainId'])continue;const _0x36795f=_0xf83711['attributes']['markerAttributes'];if(_0x36795f&&Object['keys'](_0x36795f)['length'])continue;const _0x4ef18d=_0xf83711['attributes']['tablePasteChainId'];let _0x15ae92=!0x0,_0x14fb7d=!0x0;for(const _0x17b9e6 of _0xfee98)if(_0x17b9e6['subType']&&_0x17b9e6['subType']['startsWith']('tablePaste')){if(!_0x17b9e6['attributes']['tablePasteChainId']){_0x14fb7d=!0x1;break;}if(_0x17b9e6['id']!=_0xf83711['id']&&_0x17b9e6['attributes']['tablePasteChainId']==_0x4ef18d){_0x15ae92=!0x1;break;}}_0x14fb7d&&_0x15ae92&&(_0xf83711['removeMarkers'](),_0x23f009=!0x0);}}for(const _0x3b7b27 of _0x143226)_0x2fdaf6['remove'](_0x3b7b27);for(const _0x28d94f of _0x3fbc99)_0x2fdaf6['unwrap'](_0x28d94f);return _0x23f009;}),_0x187d67['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x38446b=>_0x2de001(_0x38446b),'converterPriority':'high'}),_0x187d67['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x32e07d,_0x4f43d3)=>_0x4f43d3['options']['showSuggestionHighlights']?_0x2de001(_0x32e07d,!0x1):null,'converterPriority':'high'});const _0x4765fb=_0x187d67['editing']['view'];this['listenTo'](_0x4765fb['document'],'clipboardOutput',(_0x30aae2,_0x154db7)=>{const _0x4b204f=[];for(const _0x4102ed of _0x4765fb['createRangeIn'](_0x154db7['content'])['getItems']())_0x4102ed['is']('element','suggestion-td')&&_0x4b204f['push'](_0x4102ed);_0x4765fb['change'](_0x1adabf=>{for(const _0x843d6b of _0x4b204f)_0x1adabf['move'](_0x1adabf['createRangeIn'](_0x843d6b),_0x1adabf['createPositionBefore'](_0x843d6b)),_0x1adabf['remove'](_0x843d6b);});});}}function ke(_0x345e3c){if(_0x345e3c['isEmpty'])return!0x0;const _0x4d2ff3=_0x345e3c['getChild'](0x0);return _0x4d2ff3['is']('element','paragraph')&&_0x4d2ff3['isEmpty'];}function Re(_0x1c0566,_0x12277f={},_0x470bc0){for(const {isAnchor:_0xbd9187,cellHeight:_0x586728,cellWidth:_0xfc1250}of _0x470bc0['createTableWalker'](_0x1c0566,{'includeAllSlots':!0x0,..._0x12277f}))if(!_0xbd9187||0x1!=_0x586728||0x1!=_0xfc1250)return!0x1;return!0x0;}class Nt extends _0x328234{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2a9454=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a9454['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2a9454['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2a9454['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2a9454['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2a9454['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2a9454['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x271e94,_0x1181d7){const _0x4be10a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2de9a5=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5c52c9=_0x1181d7['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x46102f=_0x2de9a5['getColumnGroupElement'](_0x5c52c9);let _0x3b4c38=_0x46102f?_0x2de9a5['getTableColumnsWidths'](_0x46102f):null,_0x50ce71=_0x5c52c9['getAttribute']('tableWidth')||null;const _0x5095dc=_0x1181d7['tableWidth']||_0x50ce71,_0x3656ad=_0x1181d7['columnWidths']||_0x3b4c38,_0x1d78d1=this['editor']['plugins']['get']('Users')['me'];for(const _0x2cc50a of _0x4be10a['getSuggestions']()){const _0x202884=_0x2cc50a['getContainedElement']();if('resizeTable'===_0x2cc50a['subType']&&_0x202884===_0x5c52c9){_0x2cc50a['author']!==_0x1d78d1&&_0x2cc50a['discard']();const _0x590032=_0x2cc50a['data']['commandParams'];_0x50ce71=_0x590032[0x0]['tableWidth'],_0x3b4c38=_0x590032[0x0]['columnWidths'];break;}}_0x271e94({'table':_0x5c52c9,'tableWidth':_0x5095dc,'columnWidths':_0x3656ad}),_0x4be10a['markBlockFormat'](_0x5c52c9,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x50ce71,'columnWidths':_0x3b4c38}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1c1698){if('formatBlock'!=_0x1c1698['type']&&'formatInline'!=_0x1c1698['type'])return;const {data:_0x5d44b6}=_0x1c1698;if(_0x5d44b6&&'resizeTable'===_0x5d44b6['formatGroupId']){const _0x140802='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x140802)};}}}class Dt extends _0x328234{['afterInit'](){const _0x316deb=this['editor'];_0x316deb['plugins']['has']('Template')&&_0x316deb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x328234{['afterInit'](){const _0x1b8ccb=this['editor'];if(!_0x1b8ccb['commands']['get']('insertTableOfContents'))return;_0x1b8ccb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5d231e=_0x1b8ccb['plugins']['get']('TrackChangesEditing'),_0x4b0494=_0x1b8ccb['locale'];_0x5d231e['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1318ff=>o(_0x4b0494,'ELEMENT_TABLE_OF_CONTENTS',_0x1318ff));}}class $t extends _0x328234{['afterInit'](){const _0xee801=this['editor'];if(!_0xee801['plugins']['has']('Title'))return;const _0x20b81f=_0xee801['plugins']['get']('TrackChangesEditing');_0x20b81f['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xee801['locale'],'ELEMENT_TITLE')),_0xee801['model']['document']['registerPostFixer'](_0x3e9202=>{let _0x325441=!0x1;const _0x2037c1=Array['from'](_0xee801['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2fefee,data:_0x5d87ad}of _0x2037c1){const {group:_0x18da86}=_0x20b81f['_splitMarkerName'](_0x2fefee);if('suggestion'!==_0x18da86||!_0x5d87ad['newRange'])continue;const _0x2fc5a3=_0x5d87ad['newRange'],_0x3f264e=_0x2fc5a3['end']['nodeBefore'];if(!_0x3f264e||!_0x3f264e['is']('element','title-content'))continue;if(!_0x2fc5a3['start']['isTouching'](_0x2fc5a3['end']))continue;const _0x55003a=_0xee801['model']['schema']['getNearestSelectionRange'](_0x2fc5a3['end'],'forward');if(_0x55003a&&_0x55003a['isCollapsed']){const _0x58f4af=_0x3e9202['createRange'](_0x2fc5a3['start'],_0x55003a['start']);_0x58f4af['isEqual'](_0x2fc5a3)||(_0x3e9202['updateMarker'](_0x2fefee,{'range':_0x58f4af}),_0x325441=!0x0);}_0x325441||(_0x3e9202['removeMarker'](_0x2fefee),_0x325441=!0x0);}return _0x325441;});}}class Bt extends _0x328234{['afterInit'](){const _0xa2aaba=this['editor'],_0x590b63=_0xa2aaba['plugins']['get']('TrackChangesEditing');_0xa2aaba['plugins']['has']('UndoEditing')&&(_0x590b63['enableCommand']('undo'),_0x590b63['enableCommand']('redo'));}}class xt extends _0x328234{static get['requires'](){return[It];}['afterInit'](){const _0x1f7b0c=this['editor'];if(!_0x1f7b0c['plugins']['has']('TableCaptionEditing'))return;_0x1f7b0c['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x328234{['tableProperties'];['tableCellProperties'];constructor(_0x3b15fd){super(_0x3b15fd),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 _0x149694=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x549c7c of this['tableProperties'])_0x149694['enableCommand'](_0x549c7c,(_0x13dbd5,_0x106229)=>{const _0x5e8dbf=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x549c7c,[_0x5e8dbf],this['tableProperties'],'tableProperties',_0x13dbd5,_0x106229);});_0x149694['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x149694['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x149694['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5cab41,_0x407186)=>this['handleDiscardAction'](this['tableProperties'],_0x5cab41,_0x407186)),_0x149694['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3536c4 of this['tableCellProperties'])_0x149694['enableCommand'](_0x3536c4,(_0x104cdc,_0x3aa617)=>{const _0x5b141c=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3536c4,_0x5b141c,this['tableCellProperties'],'tableCellProperties',_0x104cdc,_0x3aa617);});_0x149694['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x149694['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x149694['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x13f82b,_0x304ad0)=>this['handleDiscardAction'](this['tableCellProperties'],_0x13f82b,_0x304ad0)),_0x149694['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x149694['descriptionFactory']['registerDescriptionCallback'](_0x46a087=>this['handleSuggestionDescription'](_0x46a087));}['_handlePropertyChange'](_0x2aea5f,_0x1d8cc4,_0x3b5633,_0x37255c,_0x2d6e30,_0x3025d5){const _0x2c4d48=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3025d5['batch'],()=>{for(const _0x1214a4 of _0x1d8cc4){if(this['_getSuggestion'](_0x1214a4,_0x37255c))_0x2d6e30(_0x3025d5);else{const _0x13b6cb={};for(const _0x4a8b7a of _0x3b5633){const _0x3e3391=_0x1214a4['getAttribute'](_0x4a8b7a);void 0x0!==_0x3e3391&&(_0x13b6cb[_0x4a8b7a]=_0x3e3391);}_0x2d6e30(_0x3025d5),_0x2c4d48['markBlockFormat'](_0x1214a4,{'commandParams':[_0x13b6cb]},[],_0x37255c);}}});}['handleDiscardAction'](_0x43c07f,_0x5c9556,_0x427ace){const _0x5632e0=_0x5c9556[0x0]['start']['nodeAfter'],_0xbe1f6e=_0x427ace['commandParams'][0x0];this['editor']['model']['change'](_0x394310=>{for(const _0xddd7f5 of _0x43c07f)void 0x0!==_0xbe1f6e[_0xddd7f5]?_0x394310['setAttribute'](_0xddd7f5,_0xbe1f6e[_0xddd7f5],_0x5632e0):_0x394310['removeAttribute'](_0xddd7f5,_0x5632e0);});}['handleSuggestionDescription'](_0xbc2fd){if(_0xbc2fd['data'])switch(_0xbc2fd['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'](_0x103e01,_0x140968){const _0x99a30=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2da2e4 of _0x99a30['getSuggestions']({'skipNotAttached':!0x0})){const _0x164f63=_0x2da2e4['getContainedElement']();if(_0x2da2e4['subType']===_0x140968&&_0x164f63===_0x103e01)return _0x2da2e4;}return null;}}const m='$elementName';class p extends _0x328234{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x25715a,_0x11fe9d,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(_0x2a2bad){function _0x447f46(_0x1e8963){return _0x1e8963['map'](_0x2e127d=>String['fromCharCode'](_0x2e127d))['join']('');}super(_0x2a2bad),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x223200,_0x57577c,_0x1319cd,_0x1eb1e9)=>{this['_model']['change'](()=>{for(const _0x21dcb0 of[..._0x1eb1e9,..._0x1319cd])this['_model']['markers']['has'](_0x21dcb0)&&_0x2a2bad['editing']['reconvertMarker'](_0x21dcb0);});}),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']=_0x2a2bad['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(),_0x2a2bad['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2a2bad['config']['get']('trackChanges.trackFormatChanges'),_0x2a2bad['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2a2bad['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2a2bad,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x447f46([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x447f46([0x34,0x30,0x34,0x38,0x32,0x30,0x30,0x32]);}['init'](){const _0x1fca45=this['editor'],_0x2840dc=(_0x296210,_0x212275)=>{if('attribute'!=_0x296210)return'ck-suggestion-marker-'+_0x296210;const _0x35db6c=_0x212275['split']('|')[0x0];return this['_isBlockAttribute'](_0x35db6c)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1fca45['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x394af0=>{const {id:_0x249aee,authorId:_0x112e1f,type:_0xb668ca,subType:_0x44d9a2}=this['_splitMarkerName'](_0x394af0['markerName']),_0x1a4e25=['ck-suggestion-marker',_0x2840dc(_0xb668ca,_0x44d9a2)];let _0x21c966=0xbb8;return this['activeMarkers']['includes'](_0x394af0['markerName'])&&(_0x1a4e25['push']('ck-suggestion-marker--active'),_0x21c966=0xbc2),'deletion'==_0xb668ca&&(_0x21c966+=0x5),{'classes':_0x1a4e25,'attributes':{'data-suggestion':_0x249aee,'data-author-id':_0x112e1f},'priority':_0x21c966};}}),_0x1fca45['conversion']['for']('dataDowncast')['add'](_0x252685=>{_0x252685['on']('addMarker:suggestion',(_0xea0b5e,_0x28bf4a,_0x46e78b)=>{if(!_0x46e78b['options']['showSuggestionHighlights'])return;const _0x1c15c5=_0x28bf4a['item'];if(!_0x1c15c5)return;const _0x1abfdf=_0x46e78b['mapper']['toViewElement'](_0x1c15c5);_0x1fca45['model']['schema']['isObject'](_0x1c15c5)&&_0x1abfdf&&!_0x1abfdf['getCustomProperty']('widget')&&_0x1abfdf['is']('containerElement')&&_0x20adee(_0x1abfdf,_0x46e78b['writer']);},{'priority':'high'});}),_0x1fca45['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x47b4ec,_0x115682)=>{if(!_0x115682['options']['showSuggestionHighlights'])return null;const {type:_0x3972f3,subType:_0x5a295f}=this['_splitMarkerName'](_0x47b4ec['markerName']);return{'classes':['ck-suggestion-marker',_0x2840dc(_0x3972f3,_0x5a295f)],'priority':0xbb8};}});const _0x1d6f0c=({showActiveMarkers:_0x549fee=!0x0,isAttributeSuggestion:_0x2e3903=!0x1}={})=>(_0x2746bb,_0x2b2b05,_0x708d8d)=>{if(!_0x2b2b05['item'])return;const {id:_0x3f0991,authorId:_0x1c006c}=this['_splitMarkerName'](_0x2b2b05['markerName']);if(_0x2e3903){const _0x582376=this['_suggestions']['get'](_0x3f0991),_0x4c3838=this['_getAttributeKey'](_0x582376);if(!this['_isBlockAttribute'](_0x4c3838))return;}if(_0x2b2b05['item']['is']('selection'))return void _0x708d8d['consumable']['consume'](_0x2b2b05['item'],_0x2746bb['name']);const _0x1542d6=_0x708d8d['mapper']['toViewElement'](_0x2b2b05['item']);if(_0x2b2b05['item']['is']('element')&&_0x1fca45['model']['schema']['isBlock'](_0x2b2b05['item'])&&!_0x1542d6['getCustomProperty']('addHighlight')){_0x708d8d['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1542d6),_0x708d8d['writer']['setAttribute']('data-suggestion',_0x3f0991,_0x1542d6),_0x708d8d['writer']['setAttribute']('data-author-id',_0x1c006c,_0x1542d6),_0x708d8d['mapper']['bindElementToMarker'](_0x1542d6,_0x2b2b05['markerName']),_0x549fee&&(this['activeMarkers']['includes'](_0x2b2b05['markerName'])?_0x708d8d['writer']['addClass']('ck-suggestion-marker--active',_0x1542d6):_0x708d8d['writer']['removeClass']('ck-suggestion-marker--active',_0x1542d6));for(const _0x52b98b of _0x1fca45['model']['createRangeIn'](_0x2b2b05['item'])['getItems']())_0x708d8d['consumable']['consume'](_0x52b98b,_0x2746bb['name']);_0x708d8d['consumable']['consume'](_0x2b2b05['item'],_0x2746bb['name']);}};_0x1fca45['conversion']['for']('dataDowncast')['add'](_0x498da0=>{_0x498da0['on']('addMarker:suggestion:formatBlock',(_0x5dc27a,_0x4ffa86,_0x4c52ad)=>{_0x4c52ad['options']['showSuggestionHighlights']&&_0x1d6f0c({'showActiveMarkers':!0x1})(_0x5dc27a,_0x4ffa86,_0x4c52ad);},{'priority':'highest'});}),_0x1fca45['conversion']['for']('dataDowncast')['add'](_0x2d1773=>{_0x2d1773['on']('addMarker:suggestion:attribute',(_0x38b466,_0x656fe8,_0x21f723)=>{_0x21f723['options']['showSuggestionHighlights']&&_0x1d6f0c({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x38b466,_0x656fe8,_0x21f723);},{'priority':'highest'});}),_0x1fca45['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x51f888,_0x30e27c)=>_0x30e27c['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x51f888['substr'](0xb)}}),_0x1fca45['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x404c40,{writer:_0x5332f3})=>{let _0x20c2e5='suggestion:'+_0x404c40['getAttribute']('suggestion-type')+':'+_0x404c40['getAttribute']('id');return _0x404c40['getAttribute']('marker-count')&&(_0x20c2e5+=':'+_0x404c40['getAttribute']('marker-count')),_0x5332f3['createElement']('$marker',{'data-name':_0x20c2e5});}}),_0x1fca45['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1fca45['conversion']['for']('editingDowncast')['add'](_0x16369a=>{_0x16369a['on']('addMarker:suggestion:formatBlock',_0x1d6f0c(),{'priority':'high'});}),_0x1fca45['conversion']['for']('editingDowncast')['add'](_0x211aae=>{_0x211aae['on']('addMarker:suggestion:attribute',_0x1d6f0c({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1fca45['conversion']['for']('editingDowncast')['add'](_0x5dfa34=>{_0x5dfa34['on']('removeMarker:suggestion:formatBlock',(_0x5d5d35,_0x305d25,_0xeca696)=>{const _0x24c657=_0xeca696['mapper']['markerNameToElements'](_0x305d25['markerName']);if(_0x24c657){for(const _0x2671ac of _0x24c657)_0x2671ac['getCustomProperty']('addHighlight')||(_0xeca696['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2671ac),_0xeca696['writer']['removeAttribute']('data-suggestion',_0x2671ac),_0xeca696['writer']['removeAttribute']('data-author-id',_0x2671ac),_0xeca696['mapper']['unbindElementFromMarkerName'](_0x2671ac,_0x305d25['markerName']));}},{'priority':'high'});}),_0x1fca45['conversion']['for']('editingDowncast')['add'](_0x1484e6=>{_0x1484e6['on']('removeMarker:suggestion:attribute',(_0x33858f,_0x3cb5b7,_0x14823f)=>{const _0x397baf=_0x14823f['mapper']['markerNameToElements'](_0x3cb5b7['markerName']);if(!_0x397baf)return;const {id:_0x56f87f}=this['_splitMarkerName'](_0x3cb5b7['markerName']),_0x50931c=this['_suggestions']['get'](_0x56f87f),_0x4bd926=this['_getAttributeKey'](_0x50931c);if(this['_isBlockAttribute'](_0x4bd926)){for(const _0x9b47b9 of _0x397baf)_0x9b47b9['getCustomProperty']('addHighlight')||(_0x14823f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x9b47b9),_0x14823f['writer']['removeAttribute']('data-suggestion',_0x9b47b9),_0x14823f['writer']['removeAttribute']('data-author-id',_0x9b47b9),_0x14823f['mapper']['unbindElementFromMarkerName'](_0x9b47b9,_0x3cb5b7['markerName']));}},{'priority':'high'});}),_0x1fca45['model']['document']['registerPostFixer'](_0x3573bd=>{let _0x53f384=!0x1;const _0x35e1d1=Array['from'](_0x1fca45['model']['document']['differ']['getChangedMarkers']()),_0x57f3f7=new Set();for(const {name:_0x316d13,data:_0x2a171f}of _0x35e1d1){const {group:_0x16ec0e,type:_0x7ea048,subType:_0x398b86,id:_0x1a706c}=this['_splitMarkerName'](_0x316d13);if('suggestion'!==_0x16ec0e)continue;const _0x598f47=this['_suggestions']['get'](_0x1a706c);if(null!=_0x2a171f['newRange']){'formatInline'==_0x7ea048&&(_0x53f384=_0x53f384||Ut(_0x2a171f['newRange'],_0x316d13,_0x3573bd,_0x1fca45['model']['schema']));const _0x495fdc='attribute'==_0x7ea048&&this['_isBlockAttribute'](_0x398b86['split']('|')[0x0]);if(_0x2a171f['newRange']['isCollapsed']||'$graveyard'==_0x2a171f['newRange']['root']['rootName']||'formatBlock'==_0x7ea048&&!Ft(_0x2a171f['newRange'])||_0x495fdc&&!Ft(_0x2a171f['newRange'])||'deletion'==_0x7ea048&&!(!Vt(_0x19ccf2=_0x2a171f['newRange'])&&!function(_0x250adf){return _0x250adf['start']['parent']==_0x250adf['end']['nodeBefore']&&_0x250adf['start']['isAtEnd'];}(_0x19ccf2)))_0x3573bd['removeMarker'](_0x316d13),_0x53f384=!0x0;else{if(!_0x598f47||!_0x598f47['isInContent'])continue;if(_0x2a171f['newRange']&&_0x2a171f['oldRange']&&_0x2a171f['newRange']['isEqual'](_0x2a171f['oldRange']))continue;_0x57f3f7['add'](_0x598f47);}}}var _0x19ccf2;return _0x57f3f7['size']>0x0&&(_0x53f384=!!this['_joinWithAdjacentSuggestions'](_0x57f3f7)||_0x53f384),_0x53f384;}),_0x1fca45['model']['document']['registerPostFixer'](_0x18adfb=>{let _0x1a162f=!0x1;for(const _0x4aa107 of _0x1fca45['model']['document']['differ']['getChanges']())if('insert'==_0x4aa107['type'])for(const _0x13458b of this['_suggestions']['values']()){if(_0x13458b['isMultiRange']||!_0x13458b['isInContent'])continue;const _0x3acb09='formatBlock'==_0x13458b['type'],_0x2ee36d=this['_getAttributeKey'](_0x13458b),_0x15b5f3=_0x2ee36d&&this['_isBlockAttribute'](_0x2ee36d);if(!_0x3acb09&&!_0x15b5f3)continue;const _0x492bdd=_0x13458b['getFirstRange']();if(_0x492bdd['start']['parent']!=_0x492bdd['end']['parent']&&!_0x492bdd['end']['isAtEnd']){const _0x2c99fd=_0x1fca45['model']['createPositionAt'](_0x492bdd['start']['nodeAfter'],'end'),_0x2e4409=_0x1fca45['model']['createRange'](_0x492bdd['start'],_0x2c99fd);_0x18adfb['updateMarker'](_0x13458b['getFirstMarker'](),{'range':_0x2e4409}),_0x1a162f=!0x0;}}return _0x1a162f;}),_0x1fca45['model']['document']['registerPostFixer'](_0x54cb88=>this['_processAttributeChanges'](_0x54cb88)),_0x1fca45['model']['document']['registerPostFixer'](_0x5b1659=>!_0x5b1659['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5b1659)),_0x1fca45['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1fca45['model']['document']['on']('change:data',(_0x5c8c50,_0x14046d)=>{if(!_0x14046d['isLocal']||_0x14046d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4f75ed=_0x1fca45['model']['document']['differ']['getChanges']();if(0x0==_0x4f75ed['length'])return;const _0x5e8588=[],_0xb2a1db=_0x4f75ed['filter'](_0x172347=>'attribute'==_0x172347['type']),_0x3518dc=_0x4f75ed['filter'](_0x5df69c=>'insert'==_0x5df69c['type']&&'$text'!=_0x5df69c['name']);for(const _0x5b23c1 of _0xb2a1db)this['_isRegisteredAttribute'](_0x5b23c1['attributeKey'])&&_0x5e8588['push']({'key':_0x5b23c1['attributeKey'],'newValue':_0x5b23c1['attributeNewValue'],'oldValue':_0x5b23c1['attributeOldValue'],'range':Pt(_0x5b23c1['range'],_0x1fca45['model'])});for(const _0x2e679b of _0x3518dc){if('rename'!=_0x2e679b['action']&&'refresh'!=_0x2e679b['action'])continue;const _0x5b8fa9=Lt(_0x2e679b['position']['nodeAfter'],_0x1fca45['model']),_0x19525a=_0x2e679b['before'];'rename'==_0x2e679b['action']&&_0x5e8588['push']({'key':m,'newValue':_0x2e679b['name'],'oldValue':_0x19525a['name'],'range':_0x5b8fa9});for(const [_0x106512,_0x1b9b9e]of _0x19525a['attributes']){if(!this['_isRegisteredAttribute'](_0x106512))continue;const _0x157f00=_0x2e679b['attributes']['get'](_0x106512);_0x1b9b9e!==_0x157f00&&_0x5e8588['push']({'key':_0x106512,'newValue':_0x157f00,'oldValue':_0x1b9b9e,'range':_0x5b8fa9});}for(const [_0x1bdbff,_0x4fa57c]of _0x2e679b['attributes'])this['_isRegisteredAttribute'](_0x1bdbff)&&(_0x19525a['attributes']['has'](_0x1bdbff)||_0x5e8588['push']({'key':_0x1bdbff,'newValue':_0x4fa57c,'oldValue':null,'range':_0x5b8fa9}));}0x0!=_0x5e8588['length']&&_0x1fca45['model']['enqueueChange'](_0x14046d,_0x35c9fd=>{const _0x4e3938=_0x2b4c20();for(const {range:_0x3b8063,key:_0x3ab182,oldValue:_0x50674,newValue:_0x2e1459}of _0x5e8588)this['markAttributeChange'](_0x3b8063,_0x3ab182,_0x50674,_0x2e1459,{'groupId':_0x4e3938});this['_reduceExistingSuggestions'](_0x35c9fd,_0x5e8588);});},{'priority':'lowest'}),_0x1fca45['model']['markers']['on']('update:suggestion',(_0x23b20c,_0x308219,_0x451ab0)=>{if(null==_0x451ab0){const {id:_0x677c0a}=this['_splitMarkerName'](_0x308219['name']),_0x387437=this['_suggestions']['get'](_0x677c0a);_0x387437&&_0x387437['addMarkerName'](_0x308219['name']);}}),_0x1fca45['model']['document']['on']('change:data',()=>{const _0x1019bf=Array['from'](_0x1fca45['model']['document']['differ']['getChangedMarkers']())['filter'](_0x58d037=>'suggestion'===this['_splitMarkerName'](_0x58d037['name'])['group']);if(0x0===_0x1019bf['length'])return;_0x1019bf['sort']((_0xc5b54d,_0xf3dc91)=>{const _0xd28f26=_0xc5b54d['data']['oldRange'],_0x43f3d2=_0xf3dc91['data']['oldRange'];return null===_0xd28f26&&null===_0x43f3d2?0x0:null===_0xd28f26&&null!==_0x43f3d2?-0x1:null!==_0xd28f26&&null===_0x43f3d2?0x1:_0xd28f26['start']['isBefore'](_0x43f3d2['start'])?-0x1:0x1;});const _0x9008d4=new Set(),_0x3330fa=new Set();for(const {name:_0x5ce97c,data:_0x3ebf44}of _0x1019bf){const {id:_0x46b5ae}=this['_splitMarkerName'](_0x5ce97c);if(null===_0x3ebf44['oldRange']){const _0x5ac521=this['_handleNewSuggestionMarker'](_0x5ce97c);_0x3330fa['add'](_0x5ac521);}else{const _0x18d48b=this['_suggestions']['get'](_0x46b5ae);null!==_0x3ebf44['newRange']||_0x18d48b['isInContent']?(_0x9008d4['add'](_0x18d48b['head']),_0x3330fa['add'](_0x18d48b)):this['_removeSuggestion'](_0x18d48b);}}_0x3330fa['size']>0x0&&this['_refreshSuggestionsChain'](_0x3330fa);for(const _0xcb2e0d of _0x9008d4)this['fire']('suggestionChanged',_0xcb2e0d);}),_0x1fca45['model']['on']('applyOperation',(_0x31f619,_0x40728d)=>{const _0x40856d=_0x40728d[0x0];if(!this['_suggestions']['size'])return;if(!_0x40856d['isDocumentOperation'])return;if(_0x40856d['batch']['isUndo']||!_0x40856d['batch']['isLocal'])return;let _0x39c10f,_0x375ed1;switch(_0x40856d['type']){case'insert':_0x39c10f=_0x1fca45['model']['createPositionAt'](_0x40856d['position']),_0x375ed1=_0x39c10f['getShiftedBy'](_0x40856d['howMany']);break;case'split':_0x39c10f=_0x1fca45['model']['createPositionAt'](_0x40856d['splitPosition']),_0x375ed1=_0x1fca45['model']['createPositionAt'](_0x40856d['moveTargetPosition']);break;case'move':_0x39c10f=_0x1fca45['model']['createPositionAt'](_0x40856d['targetPosition']),_0x375ed1=_0x39c10f['getShiftedBy'](_0x40856d['howMany']);break;default:return;}const _0x14a8be=_0x1fca45['model']['createRange'](_0x39c10f,_0x375ed1);_0x1fca45['model']['change'](()=>{for(const {suggestion:_0x3bfb0a,meta:_0x4a230e}of this['_findSuggestions'](_0x14a8be)){if(_0x3bfb0a['isMultiRange'])continue;if('formatInline'==_0x3bfb0a['type'])continue;const _0xec662d=this['_getAttributeKey'](_0x3bfb0a);if(_0xec662d&&this['_isBlockAttribute'](_0xec662d)&&'split'!=_0x40856d['type'])continue;const _0x2f559c=_0x3bfb0a['data']&&_0x3bfb0a['data']['multipleBlocks'];('formatBlock'!=_0x3bfb0a['type']||'split'==_0x40856d['type']&&!_0x2f559c)&&(_0x4a230e['containsRangeInObject']||'insertion'==_0x3bfb0a['type']&&_0x4a230e['isOwn']||_0x3bfb0a['getFirstRange']()['containsRange'](_0x14a8be)&&this['_breakSuggestionMarker'](_0x3bfb0a,_0x39c10f,_0x375ed1));}});},{'priority':'lowest'}),_0x1fca45['model']['on']('deleteContent',(_0x1620bd,_0xb4e71e)=>{const _0x393fa5=_0xb4e71e[0x0],_0x22bea8=_0xb4e71e[0x1];if(_0x22bea8&&_0x22bea8['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x393fa5['isCollapsed'])return;const _0x14303f=_0x1fca45['model']['schema'],{start:_0x572f8d,end:_0x457d56}=_0x393fa5['getFirstRange'](),_0x1d51db=_0x572f8d['nodeAfter']&&_0x14303f['isLimit'](_0x572f8d['nodeAfter'])?null:_0x14303f['getNearestSelectionRange'](_0x572f8d,'forward'),_0x4e0f4=_0x457d56['nodeBefore']&&_0x14303f['isLimit'](_0x457d56['nodeBefore'])?null:_0x14303f['getNearestSelectionRange'](_0x457d56,'backward'),_0x30d558=_0x1fca45['model']['createRange'](_0x1d51db?_0x1d51db['start']:_0x572f8d,_0x4e0f4?_0x4e0f4['end']:_0x457d56);_0x1fca45['model']['change'](_0x3ec7aa=>{this['markDeletion'](_0x30d558);const _0x7dceca=_0x1fca45['model']['schema']['getNearestSelectionRange'](_0x30d558['start']);_0x393fa5['is']('documentSelection')?_0x3ec7aa['setSelection'](_0x7dceca):_0x393fa5['setTo'](_0x7dceca);}),_0x1620bd['stop']();},{'priority':_0x408fd7['normal']+0xa}),_0x1fca45['model']['on']('insertContent',(_0x1dbece,_0x7509df)=>{const _0x5c39b3=_0x7509df[_0x7509df['length']-0x1];_0x5c39b3&&_0x5c39b3['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1fca45['model']['change'](()=>{let _0x1ad3b6=_0x1fca45['model']['insertContent'](_0x7509df[0x0],_0x7509df[0x1],_0x7509df[0x2],{'forceDefaultExecution':!0x0});if(!_0x1ad3b6)return;_0x1dbece['return']=_0x1ad3b6['clone']();const _0x33e5e1=_0x1ad3b6['end']['nodeBefore'],_0x2678d9=_0x1fca45['model']['schema'];_0x33e5e1&&_0x2678d9['isBlock'](_0x33e5e1)&&!_0x2678d9['isObject'](_0x33e5e1)&&(_0x1ad3b6=_0x1fca45['model']['createRange'](_0x1ad3b6['start'],_0x1fca45['model']['createPositionAt'](_0x33e5e1,'end'))),this['markInsertion'](_0x1ad3b6);}),_0x1dbece['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x458520=new x(_0x1fca45,this['_suggestions']);_0x1fca45['commands']['add']('acceptSuggestion',_0x458520),this['enableCommand']('acceptSuggestion');const _0x4ada37=new R(_0x1fca45,this['_suggestions']);_0x1fca45['commands']['add']('discardSuggestion',_0x4ada37),this['enableCommand']('discardSuggestion'),_0x1fca45['commands']['add']('acceptAllSuggestions',new E(_0x1fca45,_0x458520,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1fca45['commands']['add']('discardAllSuggestions',new E(_0x1fca45,_0x4ada37,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1fca45['commands']['add']('acceptSelectedSuggestions',new O(_0x1fca45,_0x458520,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1fca45['commands']['add']('discardSelectedSuggestions',new O(_0x1fca45,_0x4ada37,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x439faa=_0x1fca45['plugins']['get']('CommentsRepository');this['listenTo'](_0x439faa,'addComment',(_0x5a3a9d,{threadId:_0xf41ca})=>{const _0x36c6d4=this['_suggestions']['get'](_0xf41ca);_0x36c6d4&&_0x36c6d4['commentThread']&&0x1===_0x36c6d4['commentThread']['length']&&this['_updateSuggestionData'](_0xf41ca,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x439faa,'removeComment',(_0x443a06,{threadId:_0x32821c})=>{const _0xf32b03=this['_suggestions']['get'](_0x32821c);_0xf32b03&&_0xf32b03['commentThread']&&!_0xf32b03['commentThread']['length']&&this['_updateSuggestionData'](_0x32821c,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x143d4f){if(this['_adapter'])throw new _0x2d253a('track-changes-adapter-already-set',this);this['_adapter']=_0x143d4f;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3a2de0=!0x1,toJSON:_0x50acb8=!0x1}={}){const _0x161b7b=[];for(const _0x5106b7 of this['_suggestions']['values']())_0x3a2de0&&!_0x5106b7['isInContent']||_0x161b7b['push'](_0x5106b7);return _0x50acb8?_0x161b7b['map'](_0x58da55=>_0x58da55['toJSON']()):_0x161b7b;}['getSuggestion'](_0x5c7c0a){const _0x4b0cce=this['_suggestions']['get'](_0x5c7c0a);if(!_0x4b0cce)throw new _0x2d253a('track-changes-suggestion-not-found',this);return _0x4b0cce;}['hasSuggestion'](_0x4fc0e5){return this['_suggestions']['has'](_0x4fc0e5);}['addSuggestionData'](_0x1878e5){const {authorId:_0x5bd4d8,id:_0x5ca2de,attributes:_0x3c955f}=_0x1878e5,[_0xdfa46a,_0x3ff623]=_0x1878e5['type']['split'](':'),_0x5323fd=this['_suggestions']['get'](_0x5ca2de)||this['_createSuggestion'](_0xdfa46a,_0x3ff623,_0x5ca2de,_0x5bd4d8,_0x3c955f);if(this['_addThreadToSuggestion'](_0x5323fd),this['_checkSuggestionCorrectness'](_0x5323fd,_0xdfa46a,_0x3ff623||null,_0x5bd4d8),_0x5323fd['createdAt']=_0x1878e5['createdAt'],_0x5323fd['_isDataLoaded']=!0x0,_0x3c955f&&_0x3c955f['@external']){const _0x1041f6=_0x3c955f['@external'],_0x25a073=this['_getExternalAuthor'](_0x1041f6['authorName']);_0x5323fd['authoredAt']=_0x1041f6['createdAt'],_0x5323fd['author']=_0x25a073,_0x5323fd['isExternal']=!0x0;}else _0x5323fd['authoredAt']=_0x1878e5['createdAt'];switch(_0x1878e5['data']&&(_0x5323fd['data']=_0x1878e5['data']),_0x1878e5['attributes']&&(_0x5323fd['attributes']=_0x1878e5['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5323fd['_saved']=!0x0),this['_suggestionState']['get'](_0x5323fd)){case'notReady':this['_suggestionState']['set'](_0x5323fd,'dataReady');break;case'markerReady':_0x5323fd['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5323fd])),this['_refreshSuggestionsChain'](new Set([_0x5323fd])),this['_suggestionState']['set'](_0x5323fd,'ready'),this['fire']('suggestionLoaded',_0x5323fd)):this['_suggestionState']['set'](_0x5323fd,'removed');}return _0x5323fd;}['acceptSuggestion'](_0x3a658e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x379da0 of _0x3a658e['getAllAdjacentSuggestions']())_0x379da0['accept']();});});}['discardSuggestion'](_0x5c9a7a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x43fcb5 of _0x5c9a7a['getAllAdjacentSuggestions']())_0x43fcb5['discard']();});});}['enableCommand'](_0x2ee2fc,_0x2d1c72){const _0xc1a58e=this['editor']['commands']['get'](_0x2ee2fc);if(!_0xc1a58e)throw new _0x2d253a('track-changes-command-not-found',this,{'commandName':_0x2ee2fc});if(this['_enabledCommands']['has'](_0xc1a58e))throw new _0x2d253a('track-changes-enable-command-twice',this,{'commandName':_0x2ee2fc});this['_enabledCommands']['add'](_0xc1a58e),_0x2d1c72&&_0xc1a58e['on']('execute',(_0x5783b3,_0x43c039)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x43c039['length']>0x0&&_0x43c039[_0x43c039['length']-0x1]&&_0x43c039[_0x43c039['length']-0x1]['forceDefaultExecution']?_0x43c039['pop']():(_0x5783b3['return']=_0x2d1c72((..._0x3b39a1)=>_0xc1a58e['execute'](..._0x3b39a1,{'forceDefaultExecution':!0x0}),..._0x43c039),_0x5783b3['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x250c49){let _0xdb2733,_0x25b786;const _0x31f6cb=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xdb2733=_0x250c49();}catch(_0x43697b){_0x25b786=_0x43697b;}return _0x31f6cb||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x25b786&&_0x2d253a['rethrowUnexpectedError'](_0x25b786,this),_0xdb2733;}['markInsertion'](_0x1e0d5e,_0x3b6ed1=null,_0x59dbba={}){if(_0x1e0d5e['isCollapsed'])return null;const _0x54b9bf=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x4d4585,meta:_0x56b00e}of this['_findSuggestions'](_0x1e0d5e,'insertion'))if(_0x56b00e['isOwn']){if(!_0x56b00e['isNextTo']){if(_0x56b00e['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x4d4585,_0x59dbba))continue;return _0x4d4585;}if(qt(_0x4d4585,_0x59dbba))return _0x4d4585;this['_breakSuggestionMarker'](_0x4d4585,_0x1e0d5e['start'],_0x1e0d5e['end']);break;}if(_0x3b6ed1==_0x4d4585['subType']&&qt(_0x4d4585,_0x59dbba)){const _0x37e3c8=_0x4d4585['getFirstRange']();return _0x37e3c8['start']['isEqual'](_0x1e0d5e['end'])?this['_setSuggestionRange'](_0x4d4585,this['_model']['createRange'](_0x1e0d5e['start'],_0x37e3c8['end'])):this['_setSuggestionRange'](_0x4d4585,this['_model']['createRange'](_0x37e3c8['start'],_0x1e0d5e['end'])),_0x4d4585;}}const _0x203e18=_0x2b4c20(),_0x557d8a=_0x54b9bf['id'],_0x248008=_0x3b6ed1?'insertion:'+_0x3b6ed1:'insertion',_0x51950c=this['_setSuggestionData']({'id':_0x203e18,'type':_0x248008,'createdAt':new Date(),'authorId':_0x557d8a,'attributes':_0x59dbba});return this['_addSuggestionMarker'](_0x248008,_0x203e18,_0x557d8a,_0x1e0d5e),_0x51950c;}['markMultiRangeInsertion'](_0x100bbe,_0x40c839='multi',_0x243765={}){const _0x577c97=this['editor']['plugins']['get']('Users')['me'],_0xc5ea52=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x40c839,'join');for(const _0x29f4ff of this['getSuggestions']())if(_0x29f4ff['author']['id']==_0x577c97['id']&&'insertion'==_0x29f4ff['type']&&_0x29f4ff['subType']==_0x40c839&&qt(_0x29f4ff,_0x243765)&&(_0xc5ea52(_0x29f4ff['getRanges'](),_0x100bbe)||_0xc5ea52(_0x100bbe,_0x29f4ff['getRanges']()))){for(const _0x367b13 of _0x100bbe)_0x29f4ff['addRange'](_0x367b13);return _0x29f4ff;}for(const {suggestion:_0x5885cb,meta:_0x1d0323}of this['_findSuggestions'](_0x100bbe,'insertion')){if(!_0x1d0323['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1d0323['containsRangeInObject'])continue;if(!qt(_0x5885cb,_0x243765))continue;let _0x14db46=!0x0;for(const _0x56691 of _0x5885cb['getRanges']())for(const _0x507289 of _0x100bbe)if(!_0x56691['containsRange'](_0x507289)){_0x14db46=!0x1;break;}if(_0x14db46)return _0x5885cb;}const _0x33f4bc=_0x2b4c20(),_0x2cc3b2=_0x577c97['id'],_0x1094c4='insertion:'+_0x40c839,_0x318f3b=this['_setSuggestionData']({'id':_0x33f4bc,'type':_0x1094c4,'createdAt':new Date(),'authorId':_0x2cc3b2,'attributes':_0x243765});for(const _0x1ae3a9 of _0x100bbe)this['_addSuggestionMarker'](_0x1094c4,_0x33f4bc,_0x2cc3b2,_0x1ae3a9,u['getMultiRangeId']());return _0x318f3b;}['markInlineFormat'](_0x341cd6,_0x7de036,_0x57115b=null,_0x5b6ba7={}){if(_0x57115b=_0x57115b||Gt(_0x7de036),_0x341cd6['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x1f9030=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x57115b,'accept');return this['forceDefaultExecution'](()=>_0x1f9030([_0x341cd6],_0x7de036,_0x5b6ba7)),null;}const _0x30a7e3=this['editor']['plugins']['get']('Users')['me'],_0x236280=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3e0053,meta:_0x55b5b3}of this['_findSuggestions'](_0x341cd6,'insertion'))_0x55b5b3['isOwn']&&!_0x55b5b3['isInsideObject']&&_0x236280['push'](..._0x3e0053['getRanges']());}const _0x8630cf=function(_0x4412c9,_0x566a8b){const _0x1482ac=[];for(const _0xc82c3d of _0x566a8b){const _0x506867=_0x4412c9['getIntersection'](_0xc82c3d);_0x506867&&_0x1482ac['push'](_0x506867);}return _0x1482ac;}(_0x341cd6,_0x236280),_0x1c69e1=function(_0x224903,_0x325c7c){const _0x40790c=[_0x224903];for(const _0x100faa of _0x325c7c){let _0x2409f6=0x0;for(;_0x2409f6<_0x40790c['length'];){const _0x1b5f51=_0x40790c[_0x2409f6]['getDifference'](_0x100faa);_0x40790c['splice'](_0x2409f6,0x1,..._0x1b5f51),_0x2409f6+=_0x1b5f51['length'];}}return _0x40790c;}(_0x341cd6,_0x236280);_0x8630cf['length']&&this['_model']['change'](()=>{for(const _0xb59acd of _0x8630cf){const _0x457262=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x57115b,'accept');this['forceDefaultExecution'](()=>_0x457262([_0xb59acd],_0x7de036,_0x5b6ba7));}});for(const _0x375569 of _0x1c69e1){let _0x1ac64d=null,_0x44ce4e=_0x375569['start'],_0xc10595=_0x375569['end'];for(const {suggestion:_0x4e6706,meta:_0x58e9bf}of this['_findSuggestions'](_0x375569,'formatInline')){if(!_0x58e9bf['isOwn'])continue;if(_0x4e6706['subType']!=_0x57115b)continue;if(!qt(_0x4e6706,_0x5b6ba7))continue;const _0xbe9da5=_0x4e6706['getFirstRange']();if(_0xbe9da5['containsRange'](_0x375569,!0x0))return null;_0x44ce4e=_0x44ce4e['isBefore'](_0xbe9da5['start'])?_0x44ce4e:_0xbe9da5['start'],_0xc10595=_0xc10595['isAfter'](_0xbe9da5['end'])?_0xc10595:_0xbe9da5['end'],_0x1ac64d?_0xbe9da5['start']['isBefore'](_0x1ac64d['getFirstRange']()['start'])?(_0x1ac64d['removeMarkers'](),_0x1ac64d=_0x4e6706):_0x4e6706['removeMarkers']():_0x1ac64d=_0x4e6706;}const _0x59d9a4=this['_model']['createRange'](_0x44ce4e,_0xc10595);if(_0x1ac64d)this['_setSuggestionRange'](_0x1ac64d,_0x59d9a4);else{const _0x4398b3=_0x2b4c20(),_0x99f93c=_0x30a7e3['id'];this['_setSuggestionData']({'id':_0x4398b3,'type':'formatInline:'+_0x57115b,'data':_0x7de036,'createdAt':new Date(),'authorId':_0x99f93c,'attributes':_0x5b6ba7}),this['_addSuggestionMarker']('formatInline:'+_0x57115b,_0x4398b3,_0x99f93c,_0x59d9a4);}}return null;}['markBlockFormat'](_0x5a4f4a,_0x5d7a72,_0x5496d8=[],_0x5bb7ba=null,_0xaaf593={}){_0x5d7a72['formatGroupId']||(_0x5d7a72['formatGroupId']=_0x5d7a72['commandName']),_0x5d7a72['multipleBlocks']=_0x5a4f4a['is']('range'),_0x5bb7ba=_0x5bb7ba||Gt(_0x5d7a72);const _0x223e9c=_0x5496d8['map'](_0x2d19ba=>Lt(_0x2d19ba,this['_model'])),_0x43a8f9=_0x5a4f4a['is']('range')?_0x5a4f4a:Lt(_0x5a4f4a,this['_model']);if('never'===this['_trackFormatChanges']){const _0x439378=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5bb7ba,'accept');return this['forceDefaultExecution'](()=>_0x439378([_0x43a8f9],_0x5d7a72,_0xaaf593)),null;}_0x223e9c['push'](_0x43a8f9);let _0x4913a4=!0x0;for(const _0x19d853 of _0x223e9c)if(!this['_rangeIsInLocalUserInsertion'](_0x19d853)){_0x4913a4=!0x1;break;}if(_0x4913a4&&'always'!==this['_trackFormatChanges']){const _0x121133=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5bb7ba,'accept');return this['forceDefaultExecution'](()=>_0x121133([_0x43a8f9],_0x5d7a72,_0xaaf593)),null;}let _0x58f8fb=null,_0x31adb7=_0x43a8f9['start'],_0x4a072e=_0x43a8f9['end'];for(const {suggestion:_0x4a9a30,meta:_0x3753b9}of this['_findSuggestions'](_0x43a8f9,'formatBlock')){if(!_0x3753b9['isOwn'])continue;if(_0x3753b9['isNextTo']||_0x3753b9['containsRangeInObject']||_0x3753b9['isInsideObject'])continue;if(_0x4a9a30['data']['formatGroupId']!=_0x5d7a72['formatGroupId'])continue;if(!qt(_0x4a9a30,_0xaaf593))continue;const _0x5369e2=_0x4a9a30['getFirstRange']();if(_0x4a9a30['subType']==_0x5bb7ba){if(_0x5369e2['containsRange'](_0x43a8f9,!0x0))return null;_0x31adb7=_0x31adb7['isBefore'](_0x5369e2['start'])?_0x31adb7:_0x5369e2['start'],_0x4a072e=_0x4a072e['isAfter'](_0x5369e2['end'])?_0x4a072e:_0x5369e2['end'],_0x58f8fb?_0x5369e2['start']['isBefore'](_0x58f8fb['getFirstRange']()['start'])?(_0x58f8fb['removeMarkers'](),_0x58f8fb=_0x4a9a30):_0x4a9a30['removeMarkers']():_0x58f8fb=_0x4a9a30;}else{const _0x52023a=_0x43a8f9['getIntersection'](_0x5369e2);this['_cutOutSuggestionMarker'](_0x4a9a30,_0x52023a);}}const _0x4bc2eb=this['editor']['plugins']['get']('Users')['me'],_0x953b5b=_0x2b4c20(),_0x5cee32=_0x4bc2eb['id'];if(_0x58f8fb)return this['_setSuggestionRange'](_0x58f8fb,this['_model']['createRange'](_0x31adb7,_0x4a072e)),_0x58f8fb;{const _0x284772=this['_setSuggestionData']({'id':_0x953b5b,'type':'formatBlock:'+_0x5bb7ba,'data':_0x5d7a72,'createdAt':new Date(),'authorId':_0x5cee32,'attributes':_0xaaf593});return this['_addSuggestionMarker']('formatBlock:'+_0x5bb7ba,_0x953b5b,_0x5cee32,this['_model']['createRange'](_0x31adb7,_0x4a072e)),_0x284772;}}['markMultiRangeBlockFormat'](_0x11e8b5,_0x5a23d2,_0x5b60f1=[],_0x1482d0=null,_0x1f6507={}){_0x5a23d2['formatGroupId']||(_0x5a23d2['formatGroupId']=_0x5a23d2['commandName']);const _0x5eeffe=_0x11e8b5[0x0];_0x5a23d2['multipleBlocks']=_0x5eeffe['is']('range'),_0x1482d0=_0x1482d0||Gt(_0x5a23d2);const _0x1909b4=_0x5b60f1['map'](_0x11a8b6=>Lt(_0x11a8b6,this['_model'])),_0x59a4a0=_0x5eeffe['is']('range')?_0x11e8b5:_0x11e8b5['map'](_0x225544=>Lt(_0x225544,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2022fd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1482d0,'accept');return this['forceDefaultExecution'](()=>_0x2022fd(_0x59a4a0,_0x5a23d2,_0x1f6507)),null;}_0x1909b4['push'](..._0x59a4a0);let _0x5cb651=!0x0;for(const _0x2f360f of _0x1909b4)if(!this['_rangeIsInLocalUserInsertion'](_0x2f360f)){_0x5cb651=!0x1;break;}if(_0x5cb651&&'always'!==this['_trackFormatChanges']){const _0x367052=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1482d0,'accept');return this['forceDefaultExecution'](()=>_0x367052(_0x59a4a0,_0x5a23d2,_0x1f6507)),null;}const _0x267033=this['editor']['plugins']['get']('Users')['me'];for(const _0xd35c4c of this['getSuggestions']()){if(_0xd35c4c['author']['id']!=_0x267033['id'])continue;if('formatBlock'!=_0xd35c4c['type']||_0xd35c4c['data']['formatGroupId']!=_0x5a23d2['formatGroupId'])continue;if(!qt(_0xd35c4c,_0x1f6507))continue;const _0x524567=_0xd35c4c['subType']==_0x1482d0;for(let _0x22d6e1=0x0;_0x22d6e1<_0x59a4a0['length'];_0x22d6e1++){const _0x175f4e=_0x59a4a0[_0x22d6e1];for(const _0x55afc2 of _0xd35c4c['getMarkers']()){const _0x54f1f0=_0x55afc2['getRange']();if(_0x175f4e['isEqual'](_0x54f1f0)){_0x524567?(_0x59a4a0['splice'](_0x22d6e1,0x1),_0x22d6e1--):_0xd35c4c['removeMarker'](_0x55afc2['name']);break;}}}}if(0x0==_0x59a4a0['length'])return null;const _0x37ff9c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1482d0,'join');for(const _0x1d8835 of this['getSuggestions']())if(_0x1d8835['author']['id']==_0x267033['id']&&'formatBlock'==_0x1d8835['type']&&_0x1d8835['data']['formatGroupId']==_0x5a23d2['formatGroupId']&&_0x1d8835['subType']==_0x1482d0&&qt(_0x1d8835,_0x1f6507)&&(_0x37ff9c(_0x1d8835['getRanges'](),_0x59a4a0)||_0x37ff9c(_0x59a4a0,_0x1d8835['getRanges']()))){for(const _0x401c43 of _0x59a4a0)_0x1d8835['addRange'](_0x401c43);return _0x1d8835;}const _0x292793=_0x2b4c20(),_0x149bcd=_0x267033['id'],_0x265a42='formatBlock:'+_0x1482d0,_0x1395c9=this['_setSuggestionData']({'id':_0x292793,'type':_0x265a42,'data':_0x5a23d2,'createdAt':new Date(),'authorId':_0x149bcd,'attributes':_0x1f6507});for(const _0x29f9a9 of _0x59a4a0)this['_addSuggestionMarker'](_0x265a42,_0x292793,_0x149bcd,_0x29f9a9,u['getMultiRangeId']());return _0x1395c9;}['markDeletion'](_0x55c010,_0x25cb6d=null,_0x5a9585={}){if(_0x55c010['isCollapsed'])return null;const _0x424596=this['editor']['plugins']['get']('Users')['me'],_0x2c9daa=new _0xf41792(_0x55c010['start'],_0x55c010['end']);for(const {suggestion:_0x309633,meta:_0x2df17a}of this['_findSuggestions'](_0x2c9daa,'insertion'))if(_0x2df17a['isOwn']&&!_0x2df17a['isNextTo']){if(_0x309633['isMultiRange']){const _0x221824=_0x309633['getRanges']()['filter'](_0x38b6be=>'$graveyard'!=_0x38b6be['root']['rootName']);_0x221824['every'](_0x3289b3=>_0x2c9daa['containsRange'](_0x3289b3,!0x0))&&_0x309633['discard']();if(_0x221824['some'](_0x5593c7=>_0x5593c7['containsRange'](_0x2c9daa,!0x0))){const _0x5a84a1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25cb6d,'accept');return this['forceDefaultExecution'](()=>_0x5a84a1([_0x2c9daa],null,_0x5a9585)),null;}}else{const _0x3c175b=_0x2c9daa['getIntersection'](_0x309633['getFirstRange']());null!==_0x3c175b&&_0x309633['_onDiscard']([_0x3c175b],null,_0x5a9585);}}if(_0x2c9daa['detach'](),_0x2c9daa['isCollapsed']||'$graveyard'==_0x2c9daa['root']['rootName'])return null;let _0x5f1085=null,_0x14401c=_0x2c9daa['start'],_0x20a8dd=_0x2c9daa['end'];const _0x2bc364=this['_findSuggestions'](_0x2c9daa,'deletion');for(const {suggestion:_0x1d37d5,meta:_0x23ddc2}of _0x2bc364){const _0x1e9983=this['_model']['createRange'](_0x14401c,_0x20a8dd);if(_0x23ddc2['isOwn']&&(this['_mergeNestedSuggestions']||!_0x23ddc2['containsRangeInObject']&&!_0x23ddc2['isInsideObject'])){if(_0x1d37d5['isMultiRange']){if(!qt(_0x1d37d5,_0x5a9585))continue;let _0x1bfdee=!0x0;for(const _0x4aceea of _0x1d37d5['getRanges']()){if(_0x4aceea['containsRange'](_0x1e9983,!0x0))return _0x1d37d5;_0x1e9983['containsRange'](_0x4aceea)||(_0x1bfdee=!0x1);}_0x1bfdee&&_0x1d37d5['discard']();}else{const _0x285a78=_0x1d37d5['getFirstRange']();if(_0x285a78['containsRange'](_0x1e9983,!0x0))return _0x1d37d5;if(!qt(_0x1d37d5,_0x5a9585)){_0x1e9983['containsRange'](_0x285a78)?_0x1d37d5['removeMarkers']():_0x285a78['containsPosition'](_0x14401c)?_0x14401c=_0x285a78['end']:_0x285a78['containsPosition'](_0x20a8dd)&&(_0x20a8dd=_0x285a78['start']);continue;}_0x14401c=_0x14401c['isBefore'](_0x285a78['start'])?_0x14401c:_0x285a78['start'],_0x20a8dd=_0x20a8dd['isAfter'](_0x285a78['end'])?_0x20a8dd:_0x285a78['end'],_0x5a9585=Object['assign']({},_0x1d37d5['attributes']),_0x5f1085?_0x285a78['start']['isBefore'](_0x5f1085['getFirstRange']()['start'])?(_0x5f1085['removeMarkers'](),_0x5f1085=_0x1d37d5):_0x1d37d5['removeMarkers']():_0x5f1085=_0x1d37d5;}}}if(_0x5f1085)return this['_setSuggestionRange'](_0x5f1085,this['_model']['createRange'](_0x14401c,_0x20a8dd)),_0x5f1085;{const _0x524b62=_0x2b4c20(),_0x1a3ec4=this['_model']['createRange'](_0x14401c,_0x20a8dd),_0x190766=_0x424596['id'],_0x484078=_0x25cb6d?'deletion:'+_0x25cb6d:'deletion',_0x690288=this['_setSuggestionData']({'id':_0x524b62,'type':_0x484078,'createdAt':new Date(),'authorId':_0x190766,'attributes':_0x5a9585});return this['_addSuggestionMarker'](_0x484078,_0x524b62,_0x190766,_0x1a3ec4),_0x690288;}}['markMultiRangeDeletion'](_0x5dccb5,_0x39995c='multi',_0x3bee83={}){const _0x1be8a=this['editor']['plugins']['get']('Users')['me'],_0x2194d3=_0x5dccb5['map'](_0x17eb51=>new _0xf41792(_0x17eb51['start'],_0x17eb51['end'])),_0x5d6d8a=new Set();for(const {suggestion:_0x92fa0,meta:_0x5827e5}of this['_findSuggestions'](_0x2194d3,'insertion'))_0x5827e5['isOwn']&&!_0x5827e5['isNextTo']&&_0x5d6d8a['add'](_0x92fa0);for(const _0x474b86 of _0x5d6d8a)if(_0x474b86['isMultiRange']){const _0x1743e6=_0x474b86['getRanges']();(!_0x474b86['attributes']||!_0x474b86['attributes']['skipNestingCheck'])&&(_0x1743e6['every'](_0x1defe8=>_0x2194d3['some'](_0x34efed=>_0x34efed['containsRange'](_0x1defe8,!0x0)))&&_0x474b86['discard']());if(_0x2194d3['every'](_0x40efba=>_0x1743e6['some'](_0x12e28d=>_0x12e28d['containsRange'](_0x40efba,!0x0)))){const _0x2dc041=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x39995c,'accept');return this['forceDefaultExecution'](()=>_0x2dc041(_0x5dccb5,null,_0x3bee83)),null;}}else{const _0x5f345d=_0x474b86['getFirstRange']();_0x2194d3['some'](_0x2c80cc=>_0x2c80cc['containsRange'](_0x5f345d,!0x0))&&_0x474b86['discard']();if(_0x2194d3['every'](_0x46c8e0=>_0x5f345d['containsRange'](_0x46c8e0,!0x0))){const _0x38821d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x39995c,'accept');return this['forceDefaultExecution'](()=>_0x38821d(_0x2194d3,null,_0x3bee83)),null;}}const _0x72d449=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x39995c,'join');let _0x27f4cd=null;for(const _0x1423a6 of this['getSuggestions']())if(_0x1423a6['author']['id']==_0x1be8a['id']&&_0x1423a6['isInContent']&&'deletion'==_0x1423a6['type']&&_0x1423a6['subType']==_0x39995c&&qt(_0x1423a6,_0x3bee83)&&(_0x72d449(_0x1423a6['getRanges'](),_0x2194d3)||_0x72d449(_0x2194d3,_0x1423a6['getRanges']()))){if(_0x27f4cd){if(_0x1423a6['commentThread']&&_0x1423a6['commentThread']['length'])continue;for(const _0x1e9f03 of _0x1423a6['getRanges']())_0x27f4cd['isIntersectingWithRange'](_0x1e9f03)||_0x27f4cd['addRange'](_0x1e9f03);_0x1423a6['removeMarkers']();}else{_0x27f4cd=_0x1423a6;for(const _0x2101a2 of _0x2194d3)_0x1423a6['isIntersectingWithRange'](_0x2101a2)||_0x1423a6['addRange'](_0x2101a2);}}if(_0x27f4cd)return _0x27f4cd;_0x5d6d8a['clear']();for(const {suggestion:_0xa771fb,meta:_0x1e7973}of this['_findSuggestions'](_0x2194d3,'deletion'))_0x1e7973['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1e7973['containsRangeInObject']&&!_0x1e7973['isInsideObject'])&&qt(_0xa771fb,_0x3bee83)&&_0x5d6d8a['add'](_0xa771fb);for(const _0x241c5e of _0x5d6d8a){const _0x33c364=_0x241c5e['getRanges']();if(!_0x3bee83||!_0x3bee83['skipNestingCheck']){if(_0x2194d3['every'](_0x465f26=>_0x33c364['some'](_0x4e6dc1=>_0x4e6dc1['containsRange'](_0x465f26,!0x0))))return _0x241c5e;}(!_0x241c5e['attributes']||!_0x241c5e['attributes']['skipNestingCheck'])&&(_0x33c364['every'](_0x196eca=>_0x2194d3['some'](_0x1070dc=>_0x1070dc['containsRange'](_0x196eca,!0x0)))&&_0x241c5e['discard']());}const _0x3c1011=_0x2b4c20(),_0x21f492=_0x1be8a['id'],_0xeaceb9='deletion:'+_0x39995c,_0x43fdb9=this['_setSuggestionData']({'id':_0x3c1011,'type':_0xeaceb9,'createdAt':new Date(),'authorId':_0x21f492,'attributes':_0x3bee83});for(const _0xb838b5 of _0x2194d3)_0xb838b5['detach'](),_0xb838b5['isCollapsed']||'$graveyard'==_0xb838b5['root']['rootName']||this['_addSuggestionMarker'](_0xeaceb9,_0x3c1011,_0x21f492,_0xb838b5,u['getMultiRangeId']());return _0x43fdb9;}['markAttributeChange'](_0x4a7a23,_0x54aa13,_0x2e7736,_0x52c1ae,_0x36a1a5){if(_0x4a7a23['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x313525=this['editor']['plugins']['get']('Users')['me']['id'],_0x4b5737=Array['from'](this['_suggestions']['values']())['filter'](_0x19a0c8=>'attribute'==_0x19a0c8['type']&&_0x19a0c8['data']['key']==_0x54aa13&&_0x19a0c8['isIntersectingWithRange'](_0x4a7a23));if('default'===this['_trackFormatChanges']){const _0x356bd3=this['_findSuggestions'](_0x4a7a23,'insertion')['filter'](({meta:_0x492114})=>_0x492114['isOwn']&&!_0x492114['isInsideObject']&&!_0x492114['isNextTo'])['map'](({suggestion:_0x1e73de})=>_0x1e73de);_0x4b5737['unshift'](..._0x356bd3);}const _0x181bc7=new Map([[_0x4a7a23,_0x2e7736]]);for(const _0x1b3213 of _0x4b5737){const _0x3ec388='attribute'==_0x1b3213['type']?_0x1b3213['data']['oldValue']:void 0x0,_0xb790e8=_0x1b3213['getFirstRange'](),_0x2a0634=Array['from'](_0x181bc7['keys']())['find'](_0x4db35f=>_0x4db35f['isIntersecting'](_0xb790e8));if(!_0x2a0634)continue;const _0x489916=_0x2a0634['getDifference'](_0xb790e8);this['_isBlockAttribute'](_0x54aa13)&&'insertion'==_0x1b3213['type']&&0x0!=_0x489916['length']||(_0x181bc7['delete'](_0x2a0634),_0x489916['forEach'](_0x1a0276=>{_0x181bc7['set'](_0x1a0276,_0x2e7736);}),'insertion'!=_0x1b3213['type']&&_0x3ec388!=_0x52c1ae&&_0x181bc7['set'](_0x2a0634['getIntersection'](_0xb790e8),_0x3ec388));}const _0x422cce=[];for(const [_0x193f6a,_0x507795]of _0x181bc7){const _0x3794f8=_0x2b4c20(),_0x2ae7dc={'key':_0x54aa13,'oldValue':_0x507795,'newValue':_0x52c1ae};_0x54aa13['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':_0x54aa13});const _0x179be5=('attribute:'+(_0x54aa13+'|'+Gt({'newValue':_0x52c1ae})))['substring'](0x0,0x3c),_0x1b7f18=this['_setSuggestionData']({'id':_0x3794f8,'type':_0x179be5,'data':_0x2ae7dc,'createdAt':new Date(),'authorId':_0x313525,'attributes':_0x36a1a5});_0x422cce['push'](_0x1b7f18),this['_addSuggestionMarker'](_0x179be5,_0x3794f8,_0x313525,_0x193f6a);}return _0x422cce;}['enableDefaultAttributesIntegration'](_0x37ddda){this['enableCommand'](_0x37ddda,(_0x4e3709,..._0x5976ed)=>{this['_recordAttributeChanges'](()=>{_0x4e3709(..._0x5976ed);});});}['registerBlockAttribute'](_0x10a79d){this['_blockAttributeKeys']['add'](_0x10a79d);}['registerInlineAttribute'](_0x12a983){this['_inlineAttributeKeys']['add'](_0x12a983);}['_getAttributeKey'](_0x34ccfd){return'attribute'==_0x34ccfd['type']?_0x34ccfd['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5bd8ec,_0x291bc2){const _0x1d01ee=_0x5bd8ec['getFirstMarker']();this['_model']['change'](_0x51560b=>{_0x51560b['updateMarker'](_0x1d01ee,{'range':_0x291bc2});});}['_addThreadToSuggestion'](_0x478f74){const _0x258a8e=_0x478f74['id'],_0x4e8f3c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x258a8e)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4e8f3c,'threadId':_0x258a8e,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x34b0f9=this['_commentsRepository']['getCommentThread'](_0x258a8e);_0x34b0f9['unbind']('isRemovable'),_0x34b0f9['isRemovable']=!0x1,_0x478f74['commentThread']=_0x34b0f9;}['_checkSuggestionCorrectness'](_0x2bfd2a,_0x480e19,_0x10b2a7,_0x36d5ee){if(_0x2bfd2a['type']!=_0x480e19||_0x2bfd2a['subType']!=_0x10b2a7||_0x2bfd2a['creator']['id']!=_0x36d5ee)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2d253a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x423de,_0x45e432){const _0x5b97ad=_0x423de['getFirstRange']();if(_0x45e432['isEqual'](_0x5b97ad))_0x423de['removeMarkers']();else{if(_0x5b97ad['containsRange'](_0x45e432)){const _0x4b3f64=this['_model']['createPositionAt'](_0x45e432['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x423de,this['_model']['createRange'](_0x5b97ad['start'],_0x4b3f64));const _0x1cf5d4=_0x2b4c20(),_0x4ae29e=_0x423de['creator']['id'],_0x233ad0=_0x423de['type']+':'+_0x423de['subType'];this['_setSuggestionData']({'id':_0x1cf5d4,'type':_0x233ad0,'createdAt':new Date(),'authorId':_0x4ae29e,'data':_0x423de['data'],'attributes':_0x423de['attributes']});const _0x274358=this['_model']['createPositionAt'](_0x45e432['end']['parent'],'after'),_0x39fda1=this['_model']['createRange'](_0x274358,_0x5b97ad['end']);this['_addSuggestionMarker'](_0x233ad0,_0x1cf5d4,_0x4ae29e,_0x39fda1);}else{if(_0x5b97ad['containsPosition'](_0x45e432['start'])){const _0x338343=this['_model']['createPositionAt'](_0x45e432['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x423de,this['_model']['createRange'](_0x5b97ad['start'],_0x338343));}else{const _0x1b03c7=this['_model']['createPositionAt'](_0x45e432['end']['parent'],'after');this['_setSuggestionRange'](_0x423de,this['_model']['createRange'](_0x1b03c7,_0x5b97ad['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x26ec13){for(const {suggestion:_0x1b3bfc,meta:_0x19dd5e}of this['_findSuggestions'](_0x26ec13,'insertion')){if(!_0x19dd5e['isOwn'])continue;const _0x5822f9=_0x1b3bfc['getRanges']();for(const _0x3b134f of _0x5822f9)if(!_0x26ec13['getDifference'](_0x3b134f)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3ec237){const _0x1b7ecf=this['editor']['plugins']['get']('Users')['getUser'](_0x3ec237);if(!_0x1b7ecf)throw new _0x2d253a('track-changes-user-not-found',this);return _0x1b7ecf;}['_getExternalAuthor'](_0x2a6308){const _0x3698c4=this['editor']['plugins']['get']('Users'),_0x3fe064=_0x4eeb59('external:'+_0x2a6308),_0x14475e=_0x3698c4['getUser'](_0x3fe064);return _0x14475e||_0x3698c4['addUser']({'id':_0x3fe064,'name':_0x2a6308});}['_createSuggestion'](_0x45a029,_0x111472,_0x5311cf,_0x304a25,_0x27c15c){const _0x4a422e=this['_getAuthorFromId'](_0x304a25),_0xc312fe=this['_suggestionFactory']['buildSuggestion'](_0x45a029,_0x111472,_0x5311cf,_0x4a422e,_0x27c15c,_0x20a358=>{this['_updateSuggestionData'](_0x5311cf,{'attributes':_0x20a358});const _0x24c29a=this['getSuggestion'](_0x5311cf);this['_joinWithAdjacentSuggestions'](new Set([_0x24c29a])),this['_refreshSuggestionsChain'](new Set([_0x24c29a]));});return this['listenTo'](_0xc312fe,'accept',()=>{this['_updateSuggestionData'](_0x5311cf,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xc312fe,'discard',()=>{this['_updateSuggestionData'](_0x5311cf,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5311cf,_0xc312fe),this['_suggestionState']['set'](_0xc312fe,'notReady'),_0xc312fe;}['_splitMarkerName'](_0x4e0ae4){const _0x625ee6=_0x4e0ae4['split'](':');return{'group':_0x625ee6[0x0],'type':_0x625ee6[0x1],'subType':_0x625ee6['length']>=0x5?_0x625ee6[0x2]:null,'id':_0x625ee6['length']<0x5?_0x625ee6[0x2]:_0x625ee6[0x3],'authorId':_0x625ee6['length']<0x5?_0x625ee6[0x3]:_0x625ee6[0x4],'markerCount':0x6==_0x625ee6['length']?_0x625ee6[0x5]:null};}['_breakSuggestionMarker'](_0x10a5cd,_0x26ff90,_0x151d61){const _0x227662=_0x10a5cd['getFirstRange'](),_0xff11e4=_0x227662['start'],_0x17c635=_0x227662['end'];this['_setSuggestionRange'](_0x10a5cd,this['_model']['createRange'](_0xff11e4,_0x26ff90));const _0x3159f6=_0x2b4c20(),_0x54474e=_0x10a5cd['creator']['id'],_0x114923=_0x10a5cd['type']+(_0x10a5cd['subType']?':'+_0x10a5cd['subType']:'');this['_setSuggestionData']({'id':_0x3159f6,'type':_0x114923,'createdAt':new Date(),'authorId':_0x54474e,'originalSuggestionId':_0x10a5cd['id'],'attributes':_0x10a5cd['attributes'],'data':_0x10a5cd['data']});const _0x573538=this['_getAttributeKey'](_0x10a5cd);('formatBlock'==_0x10a5cd['type']||_0x573538&&this['_isBlockAttribute'](_0x573538))&&(_0x151d61=this['_model']['createPositionBefore'](_0x151d61['parent'])),this['_addSuggestionMarker'](_0x114923,_0x3159f6,_0x54474e,this['_model']['createRange'](_0x151d61,_0x17c635));}['_findSuggestions'](_0x8fc582,_0xb650f1=null){const _0x146892=[],_0x2b1863=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x8fc582)||(_0x8fc582=[_0x8fc582]);for(const _0x4ab12d of this['getSuggestions']()){if(!_0x4ab12d['isInContent'])continue;if(_0xb650f1&&_0x4ab12d['type']!=_0xb650f1)continue;let _0x263175=!0x1;for(const _0x2612cd of _0x4ab12d['getRanges']()){for(const _0x370928 of _0x8fc582){const _0xc95209=_0x370928['start']['isEqual'](_0x2612cd['end'])||_0x370928['end']['isEqual'](_0x2612cd['start']);if(_0xc95209||_0x370928['getIntersection'](_0x2612cd)){const _0x3c85cb=_0x370928['containsRange'](_0x2612cd)&&Ot(this['_model']['schema'],_0x2612cd['start'],_0x370928),_0x18cceb=_0x2612cd['containsRange'](_0x370928)&&Ot(this['_model']['schema'],_0x370928['start'],_0x2612cd);_0x146892['push']({'suggestion':_0x4ab12d,'meta':{'isOwn':_0x2b1863==_0x4ab12d['author'],'isNextTo':_0xc95209,'isInsideObject':_0x3c85cb,'containsRangeInObject':_0x18cceb}}),_0x263175=!0x0;break;}}if(_0x263175)break;}}return _0x146892;}['_addSuggestionMarker'](_0x20621d,_0x4a751a,_0x14d164,_0x328945,_0x4dcd32){this['_model']['change'](_0x17f5e2=>{let _0x15f57d='suggestion:'+_0x20621d+':'+_0x4a751a+':'+_0x14d164;_0x4dcd32&&(_0x15f57d=_0x15f57d+':'+_0x4dcd32),_0x17f5e2['addMarker'](_0x15f57d,{'range':_0x328945,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2b0699){const _0x2b7297=_0x2b0699['previous'],_0x4ce769=_0x2b0699['next'];_0x2b0699['previous']=null,_0x2b0699['next']=null,null!=_0x2b7297&&_0x2b7297['next']==_0x2b0699&&(_0x2b7297['next']=_0x4ce769),null!=_0x4ce769&&_0x4ce769['previous']==_0x2b0699&&(_0x4ce769['previous']=_0x2b7297),'ready'==this['_suggestionState']['get'](_0x2b0699)&&(this['_suggestionState']['set'](_0x2b0699,'removed'),this['fire']('suggestionUnloaded',_0x2b0699,_0x2b7297,_0x4ce769));}['_setSuggestionData'](_0x429145){const _0x65e13c=_0x429145['id'],_0xbc4dd9=this['addSuggestionData'](_0x429145);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5ac8f4=this['editor']['plugins']['get']('PendingActions'),_0x352cf5=_0xbc4dd9['hasComments'],_0x34e7d8=_0xbc4dd9['subType']?_0xbc4dd9['type']+':'+_0xbc4dd9['subType']:_0xbc4dd9['type'],_0x42b367=this['editor']['locale'],_0xd46ed4=_0x5ac8f4['add'](o(_0x42b367,'PENDING_ACTION_SUGGESTION')),_0x4efa8f={'id':_0x65e13c,'type':_0x34e7d8,'hasComments':_0x352cf5,'data':_0x429145['data']||null,'originalSuggestionId':_0x429145['originalSuggestionId']||null,'attributes':_0xbc4dd9['attributes']};this['_adapter']['addSuggestion'](_0x4efa8f)['then'](_0xba7353=>{_0xbc4dd9['_saved']=!0x0,_0x5ac8f4['remove'](_0xd46ed4),_0xba7353&&_0xba7353['createdAt']&&(this['_suggestions']['get'](_0x65e13c)['createdAt']=_0xba7353['createdAt']);})['catch'](_0x71c48=>{throw _0x32c801('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xbc4dd9['discard']();}),_0xbc4dd9['stopListening'](),this['_suggestions']['delete'](_0xbc4dd9['id']),this['_suggestionState']['delete'](_0xbc4dd9),_0x71c48;});}return _0xbc4dd9;}['_isBlockAttribute'](_0x539a8b){return this['_blockAttributeKeys']['has'](_0x539a8b);}['_updateSuggestionData'](_0x134d7c,_0x20ab3d){const _0x33e502=this['editor']['plugins']['get']('PendingActions'),_0x39ec32=this['getSuggestion'](_0x134d7c);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x39ec32['_saved']){const _0x52c3a1=_0x33e502['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x134d7c,_0x20ab3d)['then'](()=>{_0x33e502['remove'](_0x52c3a1);});}else _0x39ec32['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x134d7c,_0x20ab3d);});}}['_getSuggestionData'](_0x701746){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2d253a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x701746);}['_handleNewSuggestionMarker'](_0x546082){const {id:_0x1e17db,type:_0x4da55a,subType:_0xe0108d,authorId:_0x3eab02}=this['_splitMarkerName'](_0x546082),_0xc67963=this['_suggestions']['get'](_0x1e17db)||this['_createSuggestion'](_0x4da55a,_0xe0108d,_0x1e17db,_0x3eab02,{});switch(this['_checkSuggestionCorrectness'](_0xc67963,_0x4da55a,_0xe0108d,_0x3eab02),this['_suggestionState']['get'](_0xc67963)){case'notReady':this['_getSuggestionData'](_0x1e17db)['then'](_0x237f3a=>{let _0x3e9ed0=Promise['resolve']();_0x237f3a['hasComments']&&(_0x3e9ed0=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1e17db})),_0x3e9ed0['then'](()=>{this['addSuggestionData'](_0x237f3a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xc67963,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1e17db,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xc67963,'ready'),this['fire']('suggestionLoaded',_0xc67963);break;case'ready':this['fire']('suggestionChanged',_0xc67963);}return _0xc67963['addMarkerName'](_0x546082),_0xc67963;}['_refreshSuggestionsChain'](_0x4f61ff){const _0xf908aa=Array['from'](_0x4f61ff),_0x38ed34=_0xf908aa['filter'](_0x1dceaa=>'attribute'==_0x1dceaa['type']);this['_refreshAttributeSuggestionsChain'](_0x38ed34);const _0xa46750=_0xf908aa['filter'](_0x5e5445=>!_0x5e5445['isMultiRange']&&'attribute'!=_0x5e5445['type']),_0x197d7b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x18c590=>!_0x18c590['isMultiRange']&&'attribute'!=_0x18c590['type']),_0x1f4e13=_0x197d7b['filter'](_0x1650df=>!_0x4f61ff['has'](_0x1650df)),_0x4d4456=new Map(_0x197d7b['map'](_0x499b6f=>[_0x499b6f,this['_suggestionFactory']['getSuggestionCallback'](_0x499b6f['type'],_0x499b6f['subType'],'chain')])),_0x43199b=new Map(_0x197d7b['map'](_0x59f389=>[_0x59f389,_0x59f389['getFirstRange']()])),_0x1b6c89=new Set(),_0x1f83a7=new Set();for(let _0x2206e8=0x0;_0x2206e8<_0xa46750['length'];_0x2206e8++)_0x2cf89f(_0xa46750[_0x2206e8],_0xa46750,_0x2206e8+0x1);for(let _0x2a57da=0x0;_0x2a57da<_0xa46750['length'];_0x2a57da++)_0x2cf89f(_0xa46750[_0x2a57da],_0x1f4e13,0x0);const _0x2b9ede=new Set();for(let _0x43f842=0x0;_0x43f842<_0xa46750['length'];_0x43f842++){const _0x4e1173=_0xa46750[_0x43f842];!_0x1f83a7['has'](_0x4e1173)&&_0x4e1173['previous']&&(_0x2b9ede['add'](_0x4e1173['previous']),_0x4e1173['previous']['next']===_0x4e1173&&(_0x4e1173['previous']['next']=null),_0x4e1173['previous']=null),!_0x1b6c89['has'](_0x4e1173)&&_0x4e1173['next']&&(_0x2b9ede['add'](_0x4e1173['next']),_0x4e1173['next']['previous']===_0x4e1173&&(_0x4e1173['next']['previous']=null),_0x4e1173['next']=null);}function _0x2cf89f(_0x1685e8,_0x28fd6b,_0x1df6df){for(let _0x21fbd7=_0x1df6df;_0x21fbd7<_0x28fd6b['length'];_0x21fbd7++){const _0x5539e3=_0x3b7a96(_0x1685e8,_0x28fd6b[_0x21fbd7]);_0x5539e3&&(_0x5539e3[0x0]['next']=_0x5539e3[0x1],_0x5539e3[0x1]['previous']=_0x5539e3[0x0],_0x1b6c89['add'](_0x5539e3[0x0]),_0x1f83a7['add'](_0x5539e3[0x1]));}}function _0x3b7a96(_0x2fd06c,_0x46b937){if(_0x2fd06c['author']['id']!==_0x46b937['author']['id'])return null;const _0x497839=_0x4d4456['get'](_0x2fd06c)(_0x2fd06c,_0x46b937,_0x43199b['get'](_0x2fd06c),_0x43199b['get'](_0x46b937));if(!_0x497839)return null;return _0x4d4456['get'](_0x46b937)(_0x2fd06c,_0x46b937,_0x43199b['get'](_0x2fd06c),_0x43199b['get'](_0x46b937))?_0x497839[0x1]['commentThread']&&_0x497839[0x1]['commentThread']['length']?null:_0x497839:null;}_0x2b9ede['size']&&this['_refreshSuggestionsChain'](_0x2b9ede);}['_refreshAttributeSuggestionsChain'](_0x564677){if(0x0==_0x564677['length'])return;const _0x150301=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x22fc9e=>'attribute'==_0x22fc9e['type']&&_0x22fc9e['_isDataLoaded']),_0x22e8a0=[],_0x4dc13d=new Map();for(const _0x7df050 of _0x150301){const _0x249f9f=_0x4eeb59(_0x7df050['attributes']);_0x4dc13d['has'](_0x249f9f)||(_0x4dc13d['set'](_0x249f9f,_0x22e8a0['length']),_0x22e8a0['push']([]));const _0x2cb515=_0x4dc13d['get'](_0x249f9f);_0x22e8a0[_0x2cb515]['push'](_0x7df050);}!(function(){_0x22e8a0['sort']((_0x3d8d68,_0x429fdb)=>{const _0x3fab13=_0x3d8d68[0x0]['createdAt'],_0x27a49d=_0x429fdb[0x0]['createdAt'];return _0x3fab13==_0x27a49d?_0x3d8d68[0x0]['attributes']['groupId']<_0x429fdb[0x0]['attributes']['groupId']?-0x1:0x1:_0x3fab13<_0x27a49d?-0x1:0x1;});for(const _0x1e4595 of _0x22e8a0)_0x1e4595['sort']((_0x139e3e,_0x4d241c)=>_0x139e3e['id']<_0x4d241c['id']?-0x1:0x1);}());for(let _0x29dff3=0x0;_0x29dff3<_0x22e8a0['length'];_0x29dff3++){if(0x0==_0x22e8a0[_0x29dff3]['length'])continue;const _0x5c0ca6=[];for(let _0x4e5ed6=_0x29dff3+0x1;_0x4e5ed6<_0x22e8a0['length'];_0x4e5ed6++)0x0!=_0x22e8a0[_0x4e5ed6]['length']&&_0x19ceda(_0x22e8a0[_0x29dff3],_0x22e8a0[_0x4e5ed6])&&_0x5c0ca6['push'](_0x4e5ed6);for(const _0x1e2b73 of _0x5c0ca6)_0x22e8a0[_0x29dff3]=_0x22e8a0[_0x29dff3]['concat'](_0x22e8a0[_0x1e2b73]),_0x22e8a0[_0x1e2b73]=[];}for(const _0x2cf8c1 of _0x22e8a0)for(let _0x59f34b=0x0;_0x59f34b<_0x2cf8c1['length'];_0x59f34b++){const _0x50ebd3=_0x2cf8c1[_0x59f34b+0x1]||null;_0x2cf8c1[_0x59f34b]['next']!==_0x50ebd3&&(_0x2cf8c1[_0x59f34b]['next']=_0x50ebd3);}for(const _0x3d3fbc of _0x22e8a0)for(let _0x17ddc5=0x0;_0x17ddc5<_0x3d3fbc['length'];_0x17ddc5++){const _0x485fb3=_0x3d3fbc[_0x17ddc5-0x1]||null;_0x3d3fbc[_0x17ddc5]['previous']!==_0x485fb3&&(_0x3d3fbc[_0x17ddc5]['previous']=_0x485fb3);}function _0x19ceda(_0x1b6ef3,_0x52692b){if(_0x1b6ef3[0x0]['attributes']['groupId']!==_0x52692b[0x0]['attributes']['groupId']&&_0x1b6ef3[0x0]['author']!==_0x52692b[0x0]['author'])return!0x1;if(!function(_0xb09238,_0x1316c8){if(!_0xb09238['hasComments']&&!_0x1316c8['hasComments'])return!0x0;if(_0xb09238['hasComments']&&_0x1316c8['hasComments'])return!0x1;if(_0xb09238['hasComments']&&_0x1316c8['createdAt']<_0xb09238['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1316c8['hasComments']&&_0xb09238['createdAt']<_0x1316c8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1b6ef3[0x0],_0x52692b[0x0]))return!0x1;const _0x27210e=Tt(_0x1b6ef3[0x0]['attributes'],'groupId'),_0x5c87ed=Tt(_0x52692b[0x0]['attributes'],'groupId');if(!_0x3bc98d(_0x27210e,_0x5c87ed))return!0x1;return!!_0x1b6ef3['every'](_0xeb2855=>_0x52692b['some'](_0x49625a=>_0xeb2855['getFirstRange']()['isEqual'](_0x49625a['getFirstRange']())))&&_0x52692b['every'](_0x73ece5=>_0x1b6ef3['some'](_0xc6da10=>_0x73ece5['getFirstRange']()['isEqual'](_0xc6da10['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2fadcb){const _0x4ccb99=Array['from'](_0x2fadcb),_0x2379c3=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2cb8ed=_0x2379c3['filter'](_0xb02510=>!_0x2fadcb['has'](_0xb02510)),_0x270e50=new Map(_0x4ccb99['map'](_0xc3356f=>[_0xc3356f,this['_suggestionFactory']['getSuggestionCallback'](_0xc3356f['type'],_0xc3356f['subType'],'join')])),_0x5a0854=new Map(_0x2379c3['map'](_0x32a64c=>[_0x32a64c,_0x32a64c['getRanges']()]));for(let _0xa2877=0x0;_0xa2877<_0x4ccb99['length'];_0xa2877++){if(_0x4757a7(this,_0x4ccb99[_0xa2877],_0x4ccb99,_0xa2877+0x1))return!0x0;}for(let _0x15a479=0x0;_0x15a479<_0x4ccb99['length'];_0x15a479++){if(_0x4757a7(this,_0x4ccb99[_0x15a479],_0x2cb8ed,0x0))return!0x0;}return!0x1;function _0x4757a7(_0x25ba81,_0x55a141,_0x6eb049,_0x254d52){for(let _0x1170fa=_0x254d52;_0x1170fa<_0x6eb049['length'];_0x1170fa++){const _0x30bf6a=_0x6eb049[_0x1170fa];if(_0x30bf6a['type']!==_0x55a141['type']||_0x30bf6a['author']['id']!==_0x55a141['author']['id']||_0x30bf6a['subType']!==_0x55a141['subType'])continue;if(!Jt(_0x55a141,_0x30bf6a))continue;if('attribute'==_0x55a141['type']&&_0x55a141['data']['oldValue']!=_0x30bf6a['data']['oldValue'])continue;if('attribute'==_0x55a141['type']&&_0x25ba81['_isBlockAttribute'](_0x55a141['data']['key']))continue;if('formatBlock'==_0x55a141['type']){const _0x550533=_0x25ba81['editor']['model'],_0x5726b9=_0x55a141['getContainedElement']();if(_0x5726b9&&(_0x550533['schema']['isObject'](_0x5726b9)||_0x550533['schema']['isLimit'](_0x5726b9)))continue;}const _0x330c2f=_0x270e50['get'](_0x55a141),_0xd7f46b=_0x5a0854['get'](_0x55a141),_0x22abf4=_0x5a0854['get'](_0x30bf6a),_0x3abe7=_0x55a141['commentThread']&&_0x55a141['commentThread']['length'],_0x2da160=_0x30bf6a['commentThread']&&_0x30bf6a['commentThread']['length'];if(!_0x3abe7&&_0x330c2f(_0x22abf4,_0xd7f46b))return _0x25ba81['_joinSuggestions'](_0x30bf6a,_0x55a141),_0x5a0854['delete'](_0x55a141),!0x0;if(!_0x2da160&&_0x330c2f(_0xd7f46b,_0x22abf4))return _0x25ba81['_joinSuggestions'](_0x55a141,_0x30bf6a),_0x5a0854['delete'](_0x30bf6a),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3436a8,_0x55915b){if(_0x3436a8['isMultiRange']){for(const _0x4669cf of _0x55915b['getRanges']())_0x3436a8['addRange'](_0x4669cf);}else{const _0x44198e=_0x55915b['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3436a8,this['_model']['createRange'](_0x3436a8['getFirstRange']()['start'],_0x44198e));}_0x55915b['removeMarkers']();}['_getMarkerAnnouncementText'](_0x547061,_0x121fe6,_0x276c3f){const _0x4c0bd7=_0x547061['startsWith']('format')||_0x547061['startsWith']('attribute')?'FORMATTING':_0x547061['toUpperCase']();return o(this['editor']['locale'],_0x121fe6+'_'+_0x4c0bd7+'_SUGGESTION_ANNOUNCEMENT',_0x276c3f);}['_initAriaMarkerChangeAnnouncements'](){const _0xea04b2=this['editor'];if(!_0xea04b2['ui'])return;const {ariaLiveAnnouncer:_0x116ff0}=_0xea04b2['ui'];_0x4c46e3(this['_model'],({left:_0x2c8d7a,entered:_0x5354cc})=>{for(const _0x34fa21 of _0x2c8d7a){const {group:_0x4cafcb,type:_0xd310c2}=this['_splitMarkerName'](_0x34fa21['name']);if('suggestion'===_0x4cafcb){_0x116ff0['announce'](this['_getMarkerAnnouncementText'](_0xd310c2,'LEAVE'));break;}}for(const _0x130429 of _0x5354cc){const {group:_0x207aa0,type:_0x3c43a3}=this['_splitMarkerName'](_0x130429['name']);if('suggestion'===_0x207aa0){_0x116ff0['announce'](this['_getMarkerAnnouncementText'](_0x3c43a3,'ENTER',_0x753ada(_0x5ece77)));break;}}});}['_processAttributeChanges'](_0x3b5deb){if(this['_recordAttributeSuggestions'])return!0x1;const _0x37c9f4=this['editor'],_0x22192e=_0x37c9f4['model']['document']['differ']['getChanges']();if(0x0==_0x22192e['length'])return!0x1;const _0x8998f2=[],_0x2e0323=_0x22192e['filter'](_0x37208d=>'attribute'==_0x37208d['type']),_0x2b2925=_0x22192e['filter'](_0x3ed285=>'insert'==_0x3ed285['type']&&'$text'!=_0x3ed285['name']),_0x39adbe=_0x22192e['filter'](_0x2b2a09=>'remove'==_0x2b2a09['type']&&'$text'!=_0x2b2a09['name']);for(const _0x49a8c7 of _0x2e0323)_0x8998f2['push']({'key':_0x49a8c7['attributeKey'],'newValue':_0x49a8c7['attributeNewValue'],'oldValue':_0x49a8c7['attributeOldValue'],'range':Pt(_0x49a8c7['range'],_0x37c9f4['model'])});for(const _0x564edb of _0x2b2925){const _0x527dcf=_0x39adbe['find'](_0x1c0fc4=>_0x1c0fc4['position']['isEqual'](_0x564edb['position']));_0x527dcf&&_0x8998f2['push']({'key':m,'newValue':_0x564edb['name'],'oldValue':_0x527dcf['name'],'range':_0x37c9f4['model']['createRangeOn'](_0x564edb['position']['nodeAfter'])});}return 0x0!=_0x8998f2['length']&&this['_reduceExistingSuggestions'](_0x3b5deb,_0x8998f2);}['_processAttributeSuggestions'](_0x301b65){let _0x1b254c=!0x1;const _0x15c4ee=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x462be9=>_0x462be9['data']['newRange']&&_0x462be9['name']['startsWith']('suggestion:attribute:'));for(const _0xbb2246 of _0x15c4ee){const {subType:_0x42344a,id:_0x57e230}=this['_splitMarkerName'](_0xbb2246['name']),_0x48b24d=_0x42344a['split']('|')[0x0];for(const _0xff4f86 of this['getSuggestions']({'skipNotAttached':!0x0}))_0xff4f86['id']!=_0x57e230&&'attribute'==_0xff4f86['type']&&_0xff4f86['data']&&_0xff4f86['data']['key']==_0x48b24d&&_0xff4f86['getFirstRange']()['isIntersecting'](_0xbb2246['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xff4f86,_0xbb2246['data']['newRange'],_0x301b65),_0x1b254c=!0x0);}return _0x1b254c;}['_recordAttributeChanges'](_0x8eef9b){this['_recordAttributeSuggestions']=!0x0,_0x8eef9b();}['_isRegisteredAttribute'](_0x3275fd){const _0x3301ae=this['_isBlockAttribute'](_0x3275fd),_0x513aae=this['_inlineAttributeKeys']['has'](_0x3275fd);return _0x3301ae||_0x513aae;}['_reduceExistingSuggestions'](_0x233703,_0x2024b2){if(0x0==_0x2024b2['length'])return!0x1;let _0x452cb7=!0x1;for(const _0xb27d4a of _0x2024b2){const _0x1c4d20=this['_findSuggestions'](_0xb27d4a['range'],'attribute')['filter'](_0x2bf384=>!_0x2bf384['meta']['isNextTo'])['map'](_0x27aa5a=>_0x27aa5a['suggestion']),_0xd386ae=_0x4eeb59({'newValue':_0xb27d4a['newValue']});_0x1c4d20['filter'](_0xac368a=>{const [_0x48905c,_0xc14e98]=_0xac368a['subType']['split']('|');return _0x48905c==_0xb27d4a['key']&&_0xc14e98!=_0xd386ae;})['forEach'](_0x3e63d0=>{this['_reduceSuggestionAttributeRange'](_0x3e63d0,_0xb27d4a['range'],_0x233703),_0x452cb7=!0x0;});}return _0x452cb7;}['_reduceSuggestionAttributeRange'](_0x169d2e,_0x2eaa55,_0x339443){const _0x29e724=_0x169d2e['getFirstRange']()['getDifference'](_0x2eaa55);0x0!==_0x29e724['length']?0x1!==_0x29e724['length']?this['_breakSuggestionMarker'](_0x169d2e,_0x2eaa55['start'],_0x2eaa55['end']):this['_setSuggestionRange'](_0x169d2e,_0x29e724[0x0]):_0x339443['removeMarker'](_0x169d2e['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x217ef1){this['_editor']=_0x217ef1,this['_model']=_0x217ef1['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3401b8,_0x119370,_0x10dccc,_0x202eb9,_0xf3e0b8,_0x513375){return new u(this['_model'],{'type':_0x3401b8,'subType':_0x119370,'id':_0x10dccc,'author':_0x202eb9,'creator':_0x202eb9,'attributes':_0xf3e0b8,'onAttributesChange':_0x513375,'onAccept':(..._0x2b9256)=>this['getSuggestionCallback'](_0x3401b8,_0x119370,'accept')(..._0x2b9256),'onDiscard':(..._0x5c8ed5)=>this['getSuggestionCallback'](_0x3401b8,_0x119370,'discard')(..._0x5c8ed5)});}['registerCustomCallback'](_0x486b6d,_0x48b2c9,_0x5a6268,_0x2ba452){const _0x2778ba=_0x486b6d+':'+_0x48b2c9+':'+_0x5a6268;this['_customCallbacks']['set'](_0x2778ba,_0x2ba452);}['getSuggestionCallback'](_0x571740,_0x57dbcb,_0x3aa383){const _0x25bc76=_0x571740+':'+_0x57dbcb+':'+_0x3aa383;return this['_customCallbacks']['get'](_0x25bc76)||this['_defaultCallbacks']['get'](_0x571740+':'+_0x3aa383);}['_registerDefaultCallbacks'](){const _0x307b1d=()=>!0x1,_0x291a68=_0x25f9ff=>{_0x25f9ff['sort']((_0x42f308,_0x38532c)=>_0x42f308['start']['isBefore'](_0x38532c['start'])?0x1:-0x1),this['_model']['change'](_0x545103=>{for(const _0x4c3aee of _0x25f9ff){let _0x41b125;_0x41b125=_0x4c3aee['end']['isAtEnd']&&_0x4c3aee['end']['parent']==_0x4c3aee['start']['nodeAfter']?_0x545103['createSelection'](_0x4c3aee['start']['nodeAfter'],'on'):_0x545103['createSelection'](_0x4c3aee),this['_model']['deleteContent'](_0x41b125,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2d3e92=(_0x293b63,_0xc057b)=>{_0xc057b&&this['_model']['change'](_0x35796c=>{const {commandName:_0x103a9f,commandParams:_0x23efb1=[]}=_0xc057b,_0x49d80f=_0x293b63['map'](_0x235f51=>(Vt(_0x235f51)&&(_0x235f51=this['_model']['createRange'](_0x235f51['end'])),_0x235f51))['filter'](_0x3d97fd=>'$graveyard'!==_0x3d97fd['root']['rootName']);if(_0x49d80f['length']<0x1)return;const _0x1fdb68=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2dcc53=>_0xf41792['fromRange'](_0x2dcc53));_0x35796c['setSelection'](_0x49d80f);for(const _0x4af3ee of this['_editor']['commands']['commands']())_0x4af3ee['refresh']();_0x23efb1['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x103a9f,..._0x23efb1);const _0xeb7256=_0x1fdb68['filter'](_0x146324=>'$graveyard'!=_0x146324['root']['rootName']);_0xeb7256['length']>0x0&&_0x35796c['setSelection'](_0xeb7256);for(const _0xb6bb1f of _0x1fdb68)_0xb6bb1f['detach']();});},_0x20fab0=(_0x5e56fc,_0x106660)=>0x1==_0x5e56fc['length']&&0x1==_0x106660['length']&&_0x5e56fc[0x0]['end']['isEqual'](_0x106660[0x0]['start']),_0x70e3f3=(_0x3fcb02,_0x1941e7,_0x45c127,_0x141d08)=>Ht(_0x3fcb02,_0x1941e7,_0x45c127,_0x141d08,this['_model'])?[_0x3fcb02,_0x1941e7]:Ht(_0x1941e7,_0x3fcb02,_0x141d08,_0x45c127,this['_model'])?[_0x1941e7,_0x3fcb02]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x307b1d),this['_defaultCallbacks']['set']('insertion:discard',_0x291a68),this['_defaultCallbacks']['set']('insertion:join',_0x20fab0),this['_defaultCallbacks']['set']('insertion:chain',_0x70e3f3),this['_defaultCallbacks']['set']('deletion:accept',_0x291a68),this['_defaultCallbacks']['set']('deletion:discard',_0x307b1d),this['_defaultCallbacks']['set']('deletion:join',_0x20fab0),this['_defaultCallbacks']['set']('deletion:chain',_0x70e3f3),this['_defaultCallbacks']['set']('formatInline:accept',_0x2d3e92),this['_defaultCallbacks']['set']('formatInline:discard',_0x307b1d),this['_defaultCallbacks']['set']('formatInline:join',_0x20fab0),this['_defaultCallbacks']['set']('formatInline:chain',_0x307b1d),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2d3e92),this['_defaultCallbacks']['set']('formatBlock:discard',_0x307b1d),this['_defaultCallbacks']['set']('formatBlock:join',_0x20fab0),this['_defaultCallbacks']['set']('formatBlock:chain',_0x307b1d),this['_defaultCallbacks']['set']('attribute:accept',_0x307b1d),this['_defaultCallbacks']['set']('attribute:discard',(_0x5cee09,_0x2282f3)=>{if(!_0x2282f3)return;const _0x3247f4=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x26de4c=>{if(_0x2282f3['key']==m)for(const _0x55181e of _0x5cee09){const _0xe9a8cd=_0x55181e['start']['nodeAfter'],_0x248131=_0x2282f3['oldValue'];_0x26de4c['rename'](_0xe9a8cd,_0x248131);}else{if(_0x3247f4['_isBlockAttribute'](_0x2282f3['key'])){for(const _0x1cec6d of _0x5cee09)void 0x0!==_0x2282f3['oldValue']?_0x26de4c['setAttribute'](_0x2282f3['key'],_0x2282f3['oldValue'],_0x1cec6d['start']['nodeAfter']):_0x26de4c['removeAttribute'](_0x2282f3['key'],_0x1cec6d['start']['nodeAfter']);}else{for(const _0x230f07 of _0x5cee09)_0x2282f3['oldValue']?_0x26de4c['setAttribute'](_0x2282f3['key'],_0x2282f3['oldValue'],_0x230f07):_0x26de4c['removeAttribute'](_0x2282f3['key'],_0x230f07);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x20fab0);}}function Ot(_0x11d052,_0x41bf30,_0x56782b){for(const _0x484607 of _0x41bf30['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x484607['root']==_0x484607)return!0x1;if(!_0x56782b['containsItem'](_0x484607))return!0x1;if(_0x11d052['isObject'](_0x484607)||_0x11d052['isLimit'](_0x484607))return!0x0;}return!0x1;}function Vt(_0x168d80){return _0x168d80['end']['parent']==_0x168d80['start']['nodeAfter']&&_0x168d80['end']['isAtStart'];}function Ut(_0x53c06e,_0x9b8361,_0x266761,_0x473abf){const _0x970bd5=_0xc77ad6=>!_0xc77ad6['item']['is']('$textProxy')&&!_0x473abf['isObject'](_0xc77ad6['item']),_0x264eb7=_0x53c06e['start']['getLastMatchingPosition'](_0x970bd5),_0x7db956=_0x53c06e['end']['getLastMatchingPosition'](_0x970bd5,{'direction':'backward'});return(!_0x53c06e['start']['isEqual'](_0x264eb7)||!_0x53c06e['end']['isEqual'](_0x7db956))&&(_0x264eb7['isBefore'](_0x7db956)?_0x266761['updateMarker'](_0x9b8361,{'range':_0x266761['createRange'](_0x264eb7,_0x7db956)}):_0x266761['removeMarker'](_0x9b8361),!0x0);}function Gt(_0x318914){return _0x4eeb59(_0x318914);}function Ft(_0x360567){const _0x35196f=_0x360567['start']['nodeAfter'];return _0x35196f&&_0x35196f['is']('element');}function Pt(_0x3e7a14,_0x5a70e1){return null==_0x3e7a14['end']['nodeBefore']&&_0x3e7a14['end']['parent']==_0x3e7a14['start']['nodeAfter']?Lt(_0x3e7a14['start']['nodeAfter'],_0x5a70e1):_0x3e7a14;}function Lt(_0x26205f,_0x3ea47a){const _0x127490=_0x3ea47a['schema']['isObject'](_0x26205f)||_0x3ea47a['schema']['isSelectable'](_0x26205f);return _0x3ea47a['createRange'](_0x3ea47a['createPositionAt'](_0x26205f,'before'),_0x127490?_0x3ea47a['createPositionAfter'](_0x26205f):_0x3ea47a['createPositionAt'](_0x26205f,'end'));}function Ht(_0x108ede,_0x17b99b,_0x4a81ad,_0xcee527,_0x5a6476){if(_0x108ede['next'])return!0x1;if(!Jt(_0x108ede,_0x17b99b))return!0x1;if(_0x4a81ad['end']['isEqual'](_0xcee527['start']))return!0x0;if(_0x108ede['type']!=_0x17b99b['type'])return!0x1;if(!_0x4a81ad['end']['isTouching'](_0xcee527['start']))return!0x1;const _0x182911=_0x5a6476['createRange'](_0x4a81ad['end'],_0xcee527['start'])['getWalker']();for(const _0x23dce2 of _0x182911)if(['elementStart','elementEnd']['includes'](_0x23dce2['type'])&&_0x5a6476['schema']['isLimit'](_0x23dce2['item']))return!0x1;return!0x0;}function Jt(_0x1f6004,_0x187691){if(!_0x1f6004['_isDataLoaded']||!_0x187691['_isDataLoaded'])return!0x1;const _0x37dd38=new Set(Object['keys'](_0x1f6004['attributes'])),_0x1df42f=new Set(Object['keys'](_0x187691['attributes']));if(_0x37dd38['delete']('groupId'),_0x1df42f['delete']('groupId'),0x0==_0x37dd38['size']&&0x0==_0x1df42f['size'])return!0x0;if(_0x37dd38['size']!=_0x1df42f['size'])return!0x1;const _0x42bff6={..._0x1f6004['attributes']},_0x6233e0={..._0x187691['attributes']};return delete _0x42bff6['groupId'],delete _0x6233e0['groupId'],JSON['stringify'](_0x42bff6)==JSON['stringify'](_0x6233e0);}function qt(_0x298d44,_0x11d70a){const _0xfd8e54=zt(_0x298d44['attributes']),_0xb823e9=zt(_0x11d70a);if(!_0x298d44['_isDataLoaded'])return!0x1;for(const _0x15fb0e of Object['keys'](_0xb823e9))if(!_0x3bc98d(_0xfd8e54[_0x15fb0e],_0xb823e9[_0x15fb0e]))return!0x1;return!0x0;}function zt(_0x927090){const _0x3630f6=Object['assign']({},_0x927090);return delete _0x3630f6['skipNestingCheck'],delete _0x3630f6['tablePasteChainId'],_0x3630f6;}class ae extends/* #__PURE__ -- @preserve */
25
+ _0x9ee3f1(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x336701,_0xd5be1,_0xce96bb,_0x4371b2){super(),this['model']=_0xd5be1,this['view']=_0xce96bb,this['commentThreadController']=_0x4371b2,this['_editor']=_0x336701,this['_acceptCommand']=_0x336701['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x336701['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x10ec2e,_0x4947)=>_0x10ec2e||_0x4947),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x207546=>_0x207546&&this['_editor']['model']['canEditAt'](_0xd5be1['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x94dd73=>_0x94dd73&&this['_editor']['model']['canEditAt'](_0xd5be1['getRanges']())),this['_pendingAction']=null,_0xce96bb['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xce96bb,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xce96bb,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xce96bb,'change:isDirty',()=>{_0xce96bb['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 _0x2df1b1=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2df1b1);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x228380{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x505eb7,_0x1bf22a,_0xf37ace,_0x45cc1e){super(_0x505eb7),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3bb823(_0x505eb7,o(_0x505eb7,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1bf22a['authoredAt']),this['bind']('authoredAt')['to'](_0x1bf22a),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',_0x1bf22a,'authoredAt',this,'descriptionParts',(_0x4db004,_0x3652b9,_0x5dce95)=>{const _0x38215a=_0x5dce95['map'](_0x1adc3d=>ls(_0x1adc3d['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4db004-0x1,_0x1bf22a['author']['name'],_0x3652b9?_0x45cc1e['formatDateTime'](_0x3652b9):'',new DOMParser()['parseFromString'](_0x38215a,'text/html')['body']['textContent']]);}),this['focusables']=new _0x400e93(),this['focusTracker']=new _0x261afb(),this['keystrokes']=new _0x3ca11b(),this['focusCycler']=new _0x2e8663({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x235120=>_0x235120['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1bf22a,this['_localUser']=_0xf37ace,this['_config']=_0x45cc1e,_0x45cc1e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x228aad(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2de8c6}=this['_config'];this['commentsListView']=new _0x2de8c6(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',_0xe94555=>_0xe94555+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4063af,_0xed56)=>_0x4063af||!!_0xed56);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x36ef01}=this['_config'],_0x189228=new _0x36ef01(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x35ead1=_0x189228['commentInputView'];return _0x189228['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x35ead1,'value',(_0x47a670,_0x282e95,_0x118933)=>!!_0x118933||_0x47a670&&!_0x282e95),_0x35ead1['on']('submit',(_0xcbdcd1,_0x119cbc)=>{this['fire']('addComment',_0x119cbc),_0x35ead1['editor']['setData']('');}),_0x35ead1['on']('cancel',()=>this['focus']()),_0x35ead1['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x189228;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x1cb335,_0x4d0892,_0xf51020,_0x234627){super(_0x1cb335,_0x4d0892,_0xf51020,_0x234627),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x49997a=>_0x49997a&&_0x49997a[0x0]?_0x49997a[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xcfadd9,_0x2250c1)=>{let _0x1e8080='';for(const _0x351b6b of _0xcfadd9)_0x1e8080+='<p>'+ls(_0x351b6b['content'],_0x351b6b['color'])+'</p>';return _0x2250c1?_0x1e8080:_0x227449(_0x1e8080,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x234627['SuggestionView'](_0x1cb335,_0x4d0892,{'formatDateTime':_0x234627['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 _0x3901ea=this['bindTemplate'],_0x372db4=[this['suggestionView']];return this['commentsListView']&&_0x372db4['push'](this['commentsListView']),this['commentThreadInputView']&&_0x372db4['push'](this['commentThreadInputView']),_0x372db4['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3901ea['if']('isActive','ck-suggestion-wrapper--active'),_0x3901ea['to']('type',_0x5f4a01=>'ck-suggestion-'+_0x5f4a01),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':_0x3901ea['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x372db4};}['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 _0x228380{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x27da57,_0x2583d6,_0xef299c){super(_0x27da57),this['_model']=_0x2583d6,this['_config']=_0xef299c,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2583d6),this['acceptButton']=this['_createButton'](o(_0x27da57,'Accept\x20suggestion'),_0x266fe0['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x27da57,'Discard\x20suggestion'),_0x266fe0['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1986f5(_0x27da57,_0x2583d6['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x400e93([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x261afb(),this['keystrokes']=new _0x3ca11b(),this['focusCycler']=new _0x2e8663({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1f10ac=>_0x1f10ac['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3d1bee=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3d1bee['innerHTML']=this['description'],this['on']('change:description',(_0x4484a1,_0x21d68d,_0x3070dc)=>{_0x3d1bee['innerHTML']=_0x3070dc;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x53c0ec=this['bindTemplate'],_0xba8783=[{'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':_0x53c0ec['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x53c0ec['to']('authoredAt',_0x4c24bb=>this['_config']['formatDateTime'](_0x4c24bb))}]}]},{'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']&&_0xba8783['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':_0xba8783}]};}['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'](_0x5c844b,_0x1cba7a,_0x311e00,_0x22436b,_0x49c430){const _0x1df067=new _0xb1998d(this['locale']);return _0x1df067['set']({'label':_0x5c844b,'icon':_0x1cba7a,'tooltip':!0x0,'tooltipPosition':_0x49c430}),_0x1df067['extendTemplate']({'attributes':{'class':_0x311e00}}),_0x1df067['on']('execute',()=>{this['fire'](_0x22436b,this['_model']['id']);}),_0x1df067;}['_setupKeyboardNavigation'](){const _0xcdfb08=this['element'];this['keystrokes']['listenTo'](_0xcdfb08);for(const _0x31e5ef of this['focusables'])this['focusTracker']['add'](_0x31e5ef['element']),this['keystrokes']['listenTo'](_0x31e5ef['element']);this['keystrokes']['set']('enter',(_0x54ad3f,_0x410888)=>{_0xcdfb08===_0x54ad3f['target']&&(this['focusCycler']['focusFirst'](),_0x410888());}),this['keystrokes']['set']('esc',(_0x28e078,_0x2cf025)=>{_0xcdfb08!==_0x28e078['target']&&(this['focus'](),_0x2cf025());});}}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 _0x328234{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x25715a,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x2d0032){super(_0x2d0032),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x531671=this['editor']['config'];_0x531671['define']('trackChanges.SuggestionThreadView',re),_0x531671['define']('trackChanges.SuggestionView',ce),_0x531671['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x531671['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x39167e,_0x1bdf59){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3867bf,_0x1f719e]of this['_handleControllerBuffer']){const _0x76be79=this['_suggestionToController']['has'](_0x3867bf);_0x76be79||_0x1f719e?_0x76be79&&_0x1f719e&&this['_destroyController'](_0x3867bf):this['_initializeController'](_0x3867bf);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x39167e,_0x1bdf59);}['init'](){const _0x27d207=this['editor'],_0x353b81=_0x27d207['plugins']['get']('TrackChangesEditing'),_0x272966=_0x27d207['plugins']['get']('Annotations'),_0x5ed7fb=_0x27d207['plugins']['get']('EditorAnnotations'),_0x757b10=_0x27d207['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5ed7fb['addSourceCollector'](()=>{const _0x193236=[];for(const [_0x291ada,_0x1bb910]of Array['from'](this['_suggestionToController'])){const _0x2bf7d6=_0x291ada['getAllAdjacentSuggestions'](),_0x25a67c=[];for(const _0x1efa58 of _0x2bf7d6){if(!_0x1efa58['isInContent'])continue;if(_0x1efa58['isMultiRange']){_0x25a67c['push'](..._0x1efa58['getRanges']());continue;}const _0x39ec04=_0x1efa58['getFirstRange']();if(_0x25a67c['length']>0x0){const _0x1f2015=_0x25a67c[0x0]['getJoined'](_0x39ec04);if(_0x1f2015){_0x25a67c[0x0]=_0x1f2015;continue;}}_0x25a67c['push'](_0x39ec04);}_0x193236['push']([_0x1bb910['view'],_0x25a67c]);}return _0x193236;}),this['listenTo'](_0x353b81,'suggestionLoaded',(_0x3d6991,_0x5b3da1)=>{this['listenTo'](_0x5b3da1,'change:previous',(_0x5467ff,_0x3cff69,_0x3c3905,_0x9aa0be)=>{_0x5b3da1['isInContent']&&(null==_0x3c3905?(this['_updateController'](_0x9aa0be['head']),this['_handleSuggestionControllerDelayed'](_0x5b3da1,!0x1)):(this['_updateController'](_0x3c3905['head']),null==_0x9aa0be&&this['_handleSuggestionControllerDelayed'](_0x5b3da1,!0x0)));}),null!==_0x5b3da1['previous']?this['_updateController'](_0x5b3da1['head']):this['_handleSuggestionControllerDelayed'](_0x5b3da1,!0x1);}),this['listenTo'](_0x353b81,'suggestionUnloaded',(_0x19177c,_0xd6a89,_0x4cc4e6)=>{this['stopListening'](_0xd6a89,'change:previous'),this['_handleControllerBuffer']['delete'](_0xd6a89),this['_suggestionToController']['has'](_0xd6a89)&&this['_destroyController'](_0xd6a89),_0x4cc4e6&&this['_updateController'](_0x4cc4e6['head']);}),this['listenTo'](_0x353b81,'suggestionChanged',(_0x5560c5,_0xfb7c3d)=>{this['_updateController'](_0xfb7c3d);}),this['listenTo'](_0x272966,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x757b10,'addComment',(_0x55b77d,{threadId:_0x42d300,isFromAdapter:_0x5555ce})=>{if(_0x5555ce||!_0x353b81['hasSuggestion'](_0x42d300))return;const _0x593ad9=_0x353b81['getSuggestion'](_0x42d300);this['_suggestionToController']['get'](_0x593ad9)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x4a0ca6=this['editor']['plugins']['get']('Annotations'),_0xc5a1a6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41b1ff=Array['from'](_0x4a0ca6['activeAnnotations'],_0x371205=>_0x371205['innerView'])['filter'](_0x38024d=>this['_viewToController']['has'](_0x38024d)),_0x30a3b7=[];for(const _0x10aa90 of _0x41b1ff){const _0x32cf62=this['_viewToController']['get'](_0x10aa90)['model']['getAllAdjacentSuggestions']();_0x30a3b7['push'](..._0x32cf62['reduce']((_0x207a84,_0x2b78c9)=>[..._0x207a84,..._0x2b78c9['getMarkerNames']()],[]));}_0xc5a1a6['activeMarkers']=_0x30a3b7;}['_addUIComponentsToFactory'](){const _0x5bb407=this['editor'],_0x47eca2=_0x5bb407['locale'],_0x29d963=o(_0x47eca2,'Track\x20changes'),_0x2154fb=new Wt([{'type':'switchbutton','model':new _0x1bd09f({'withText':!0x0,'isToggleable':!0x0,'label':_0x29d963,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1bd09f({'withText':!0x0,'label':o(_0x47eca2,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1bd09f({'withText':!0x0,'label':o(_0x47eca2,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1bd09f({'withText':!0x0,'label':o(_0x47eca2,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1bd09f({'withText':!0x0,'label':o(_0x47eca2,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0xb65f47 of _0x2154fb)if(me(_0xb65f47)){const _0x2b9d4c=_0x5bb407['commands']['get'](_0xb65f47['model']['commandName']);_0xb65f47['model']['bind']('isOn','isEnabled')['to'](_0x2b9d4c,'value','isEnabled');}_0x5bb407['ui']['componentFactory']['add']('trackChanges',_0x41197c=>this['_createToolbarButton'](_0x41197c,_0x2154fb,_0x29d963)),_0x5bb407['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1d81f1=>this['_createMenuBarMenu'](_0x1d81f1,_0x2154fb,_0x29d963));}['_createToolbarButton'](_0x1d4e15,_0x547789,_0x2917f4){const _0xb64fbd=Qt(_0x1d4e15,_0x34e820),_0x34c220=this['editor']['commands']['get']('trackChanges');_0xb64fbd['buttonView']['set']({'tooltip':_0x2917f4,'label':_0x2917f4,'icon':he}),_0xb64fbd['buttonView']['bind']('isOn')['to'](_0x34c220,'value'),_0xb64fbd['buttonView']['on']('execute',()=>{_0x34c220['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0xb64fbd,_0x547789,{'role':'menu'});const _0x5174e3=[];for(const _0xb18e0f of _0x547789)me(_0xb18e0f)&&_0x5174e3['push'](this['editor']['commands']['get'](_0xb18e0f['model']['commandName']));const _0xfe5b5d=_0xb64fbd['buttonView'];return _0xfe5b5d['actionView']['unbind']('isEnabled'),_0xfe5b5d['arrowView']['unbind']('isEnabled'),_0xfe5b5d['actionView']['bind']('isEnabled')['to'](_0x34c220,'isEnabled'),_0xfe5b5d['arrowView']['bind']('isEnabled')['toMany'](_0x5174e3,'isEnabled',(..._0x14152d)=>_0x14152d['some'](_0x1edf03=>_0x1edf03)),_0xb64fbd['on']('execute',_0x4a88ff=>{this['editor']['execute'](_0x4a88ff['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xb64fbd;}['_createMenuBarMenu'](_0x511a95,_0x406834,_0x5d9d19){const _0x24b8fd=new Yt(_0x511a95),_0x10c8e3=this['editor']['commands']['get']('trackChanges');_0x24b8fd['buttonView']['set']({'label':_0x5d9d19,'icon':he});const _0x21a199=new Zt(_0x511a95);for(const _0x1d39af of _0x406834){if('separator'==_0x1d39af['type']){_0x21a199['items']['add'](new Xt(_0x511a95));continue;}const _0x2513b3=new te(_0x511a95,_0x24b8fd),_0x405077=new _0x45f15a(_0x511a95),_0x1fe695=_0x1d39af['model'];_0x405077['bind'](...Object['keys'](_0x1fe695))['to'](_0x1fe695),_0x405077['delegate']('execute')['to'](_0x24b8fd),_0x405077['on']('execute',()=>{this['editor']['execute'](_0x1fe695['commandName']),this['editor']['editing']['view']['focus']();}),_0x2513b3['children']['add'](_0x405077),_0x21a199['items']['add'](_0x2513b3);}return _0x24b8fd['bind']('isEnabled')['to'](_0x10c8e3,'isEnabled'),_0x24b8fd['panelView']['children']['add'](_0x21a199),_0x24b8fd;}['_initializeController'](_0x5c26bf){const _0x529d11=this['editor'],_0x257550=_0x529d11['config'],_0x191dce=_0x529d11['plugins']['get']('Annotations'),_0x42a9f8=_0x529d11['plugins']['get']('CommentsRepository'),_0x25d1e1=_0x529d11['plugins']['get']('EditorAnnotations'),_0x5b2801=_0x529d11['plugins']['get'](_0x25715a)['me'],_0x4561be=_0x257550['get']('trackChanges')['SuggestionThreadView'],_0x5de33f=_0x257550['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5f564f,CommentThreadInputView:_0x35aa3d}=_0x529d11['plugins']['get']('CommentsUI');let _0x4f949c,_0x4e88f7,_0x559230;this['_annotationViews']['has'](_0x5c26bf['id'])?(_0x4e88f7=this['_annotationViews']['get'](_0x5c26bf['id']),_0x4f949c=_0x4e88f7['mainView']):(_0x4f949c=new _0x4561be(_0x529d11['locale'],_0x5c26bf,_0x5b2801,{'disableComments':this['_disableComments'],'editorConfig':_0x257550['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x257550['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x257550['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x257550['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5a3cec(_0x257550['get']('locale')),'CommentView':_0x257550['get']('comments')['CommentView'],'CommentsListView':_0x5f564f,'CommentThreadInputView':_0x35aa3d,'SuggestionView':_0x5de33f}),_0x4f949c['suggestionView']['acceptButton']['on']('execute',()=>{_0x529d11['editing']['view']['focus']();}),_0x4f949c['suggestionView']['discardButton']['on']('execute',()=>{_0x529d11['editing']['view']['focus']();}),_0x4e88f7=_0x191dce['createAnnotationView'](this['editor']['locale'],_0x4f949c),_0x4e88f7['bind']('isDirty')['to'](_0x4f949c,'isDirty'),_0x4e88f7['bind']('length')['to'](_0x4f949c),_0x4e88f7['bind']('type')['to'](_0x4f949c,'type',_0x5db73d=>'suggestion-'+_0x5db73d),_0x4f949c['on']('escape',()=>{_0x559230['fire']('escape');}),this['_annotationViews']['set'](_0x5c26bf['id'],_0x4e88f7));const _0x2b8656=_0x42a9f8['createCommentThreadController'](_0x5c26bf['commentThread'],_0x4f949c),_0x21330b=new ae(_0x529d11,_0x5c26bf,_0x4f949c,_0x2b8656),_0x5be572=_0x5c26bf['getAllAdjacentSuggestions']()['filter'](_0x4b6f88=>_0x4b6f88['isInContent']);_0x4f949c['descriptionParts']=_0x529d11['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5be572),this['_suggestionToController']['set'](_0x5c26bf,_0x21330b),this['_viewToController']['set'](_0x4f949c,_0x21330b),_0x559230=_0x191dce['createAnnotation']({'view':_0x4e88f7,'target':()=>{const _0x173134=[],_0x48bb94=_0x5c26bf['getAllAdjacentSuggestions']()['filter'](_0x3f4fe8=>_0x3f4fe8['isInContent']);for(const _0x544362 of _0x48bb94)_0x173134['push'](..._0x544362['getMarkers']());return _0x54b84c(_0x529d11['editing'],_0x173134);},'type':()=>'suggestion-'+_0x21330b['view']['type']}),_0x42a9f8['_bindAnnotationToEditors'](_0x4f949c,_0x559230),_0x191dce['add'](_0x559230),_0x25d1e1['registerAnnotation'](_0x559230);}['_destroyController'](_0x54723a){const _0x4b53a5=this['editor']['plugins']['get']('CommentsRepository'),_0x594486=this['editor']['plugins']['get']('Annotations'),_0x5954d6=this['_suggestionToController']['get'](_0x54723a),_0x49c3f9=_0x5954d6['view'],_0x16320c=_0x594486['getByInnerView'](_0x49c3f9);_0x4b53a5['_unbindEditors'](_0x49c3f9),_0x16320c&&_0x594486['remove'](_0x16320c),this['_suggestionToController']['delete'](_0x54723a),this['_viewToController']['delete'](_0x49c3f9),_0x5954d6['destroy']();}['_updateController'](_0x5646d8){if(!_0x5646d8['isInContent']||!this['_suggestionToController']['has'](_0x5646d8))return;const _0x8f317f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d307d=this['_suggestionToController']['get'](_0x5646d8),_0x149716=_0x5646d8['getAllAdjacentSuggestions']();_0x2d307d['view']['descriptionParts']=_0x8f317f['descriptionFactory']['getDescriptions'](_0x149716);}['destroy'](){for(const _0x2b7883 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2b7883);for(const _0x4bd275 of this['_annotationViews']['values']())_0x4bd275['mainView']['destroy']();super['destroy']();}}function me(_0x2f45e1){return'model'in _0x2f45e1;}class k extends _0x328234{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x528458){this['editor']['plugins']['get'](p)['adapter']=_0x528458;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2399d4){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2399d4);}['getSuggestions']({skipNotAttached:_0x5b5402=!0x1,toJSON:_0x334e25=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5b5402,'toJSON':_0x334e25});}['getSuggestion'](_0x4855c8){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4855c8);}}const T=['Pagination'];class P extends _0x328234{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x5581a9=this['editor'];if(_0x5581a9['config']['define']('trackChangesData.editorCreator',_0x2f867b=>{const _0x89737a=_0x5581a9['model']['document']['getRootNames']()['reduce']((_0x414e74,_0x245e25)=>(_0x414e74[_0x245e25]='',_0x414e74),{});return _0x5581a9['constructor']['create'](_0x89737a,_0x2f867b);}),'function'!=typeof _0x5581a9['config']['get']('trackChangesData')['editorCreator'])throw new _0x2d253a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x164bbd){return N(this['editor'],!0x0,_0x164bbd);}['getDataWithDiscardedSuggestions'](_0x22e7e8){return N(this['editor'],!0x1,_0x22e7e8);}}class D extends _0x328234{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x2379ba){super(_0x2379ba),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(_0x1ca7e8){return void 0x0!==_0x1ca7e8['getRootsAttributes'];}async function N(_0x523d7f,_0x181930,_0xc12b30){const _0x3ad39f=_0x323a73(_0x523d7f,T);_0x3ad39f['plugins']['push'](p,D),_0x3ad39f['rootsAttributes']=v(_0x523d7f)?_0x523d7f['getRootsAttributes']():void 0x0;const _0x3edaab=document['createDocumentFragment'](),_0x1a7f47=_0x523d7f['config']['get']('trackChangesData')['editorCreator'],_0x526029=await _0x1a7f47(_0x3ad39f,()=>function(_0x572fad){const _0x59f210=document['createElement']('div');return _0x572fad['appendChild'](_0x59f210),_0x59f210;}(_0x3edaab));!function(_0x38356a,_0x982e40){const _0x1eea53=_0x38356a['model']['document']['getRootNames']()['reduce']((_0x236039,_0x2549c7)=>(_0x236039[_0x2549c7]=_0x38356a['data']['get']({'rootName':_0x2549c7}),_0x236039),{}),_0x2dc7a0=_0x38356a['plugins']['get']('Users')['users']['map'](_0x43f397=>({'id':_0x43f397['id'],'name':_0x43f397['name']})),_0x683487=_0x38356a['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4558cb=_0x38356a['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x56a925=_0x982e40['plugins']['get']('Users'),_0x1cf4f4=_0x982e40['plugins']['get']('TrackChangesEditing'),_0x1301da=_0x982e40['plugins']['get']('CommentsRepository');for(const _0x11f8fa of _0x1301da['getCommentThreads']())_0x11f8fa['remove']();for(const _0x44cdde of _0x2dc7a0)_0x56a925['getUser'](_0x44cdde['id'])||_0x56a925['addUser'](_0x44cdde);_0x56a925['me']||_0x56a925['useAnonymousUser']();for(const _0x41b39f of _0x4558cb)_0x1301da['addCommentThread'](_0x41b39f);for(const _0x1ea43d of _0x683487)_0x1cf4f4['addSuggestionData'](_0x1ea43d);_0x982e40['data']['set'](_0x1eea53);}(_0x523d7f,_0x526029),_0x526029['execute'](_0x181930?'acceptAllSuggestions':'discardAllSuggestions');const _0x1aa049=v(_0x526029)?_0x526029['getFullData'](_0xc12b30):_0x526029['data']['get'](_0xc12b30);return await _0x526029['destroy'](),_0x1aa049;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};