@ckeditor/ckeditor5-track-changes 44.0.0-alpha.1 → 44.0.0-alpha.2

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 Qt,Plugin as _0x7145c0,PendingActions as _0x56bb22,icons as _0x5ac671}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x465f86,ObservableMixin as _0x1c0a4c,uid as _0x43bf13,insertToPriorityArray as _0x696ef6,priorities as _0xa618fb,logWarning as _0x3bac92,getEnvKeystrokeText as _0x5550d0,FocusTracker as _0x5b2072,KeystrokeHandler as _0x3114ec,Collection as _0x419189}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x12a5bf,View as _0x287354,ViewCollection as _0x5ec823,FocusCycler as ts,ViewModel as _0x3eabff,createDropdown as _0x353dab,SplitButtonView as _0x4aaba6,addListToDropdown as te,MenuBarMenuView as _0x27af0f,MenuBarMenuListView as _0x1d18b0,ListSeparatorView as _0x477f62,MenuBarMenuListItemView as _0x545a9b,MenuBarMenuListItemButtonView as _0x42dab6}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x586bb7,hashObject as _0x42f1ec,surroundingMarkersDetector as _0x238537,FOCUS_ANNOTATION_KEYSTROKE as _0x32b3,AriaDescriptionView as _0x366ccd,setupThreadKeyboardNavigation as _0x54a3ca,trimHtml as ti,UserView as _0x5a9ae8,LateFocusButtonView as _0x1f7293,getDateTimeFormatter as _0x270e5d,getAllMarkersDomElementsSorted as _0x3cf5f8,sanitizeEditorConfig as _0x46966d}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2ba753,LiveRange as _0x3e3f21,LivePosition as _0x5ea6f1}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3f8953,toWidget as _0x5af653}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x54dae0,set as _0x58b4ce,isEqual as _0x3081e3,unset as _0x3dfc21,omit as xt}from'lodash-es';import{Delete as _0x3de231,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x54df45,ShiftEnter as _0x518d6c}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x54df97,_0x53a14c){super(_0x54df97),this['_enabledCommands']=_0x53a14c,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 _0x4dd438 of this['editor']['commands']['commands']())_0x4dd438['affectsData']&&!this['_enabledCommands']['has'](_0x4dd438)&&_0x4dd438['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3d5d7f of this['editor']['commands']['commands']())_0x3d5d7f['affectsData']&&!this['_enabledCommands']['has'](_0x3d5d7f)&&_0x3d5d7f['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x475261,_0x484f75){super(_0x475261),this['_suggestions']=_0x484f75,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2dc38f){const _0x72798b=this['_suggestions']['get'](_0x2dc38f);if(!_0x72798b)throw new _0x465f86('track-changes-accept-suggestion-not-found',this);const _0x2faabc=_0x72798b['getRanges']();this['editor']['model']['canEditAt'](_0x2faabc)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x72798b);}}class R extends Qt{['_suggestions'];constructor(_0x35660c,_0x1793c0){super(_0x35660c),this['_suggestions']=_0x1793c0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x34c2f9){const _0x3081e8=this['_suggestions']['get'](_0x34c2f9);if(!_0x3081e8)throw new _0x465f86('track-changes-discard-suggestion-not-found',this);const _0x1963f9=_0x3081e8['getRanges']();this['editor']['model']['canEditAt'](_0x1963f9)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3081e8);}}function ns(_0x10d940,_0x30e63d){let _0x35779d='';return _0x35779d+=_0x10d940['split']('*')['map']((_0x12beff,_0xa19413)=>_0xa19413%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x12beff)+'</span>':nn(_0x12beff))['join'](''),_0x30e63d&&(_0x35779d+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x30e63d['value']+'\x22\x20title=\x22'+_0x30e63d['title']+'\x22></span>'),_0x35779d;}function nn(_0x2daa7e){const _0x323ec4=document['createElement']('span');return _0x323ec4['innerText']=_0x2daa7e,_0x323ec4['innerHTML'];}function Wt(_0x3a9023){return _0x3a9023['sort']((_0x8b6229,_0x2e14e0)=>'deletion'==_0x8b6229['type']&&'deletion'!=_0x2e14e0['type']?-0x1:'deletion'!=_0x8b6229['type']&&'deletion'==_0x2e14e0['type']?0x1:0x0);}function to(_0x27aa33,_0x3a06df){let _0x2a2d31,_0x41e578=0x0;const _0x43afc4=[],_0x4aa3dc=_0x3a06df['schema'];for(;_0x41e578<_0x27aa33['length'];){const _0x55d604=_0x27aa33[_0x41e578],_0x2f5894=_0x27aa33[_0x41e578+0x1];_0x2a2d31||(_0x2a2d31=_0x3a06df['createPositionBefore'](_0x55d604)),on(_0x3a06df,_0x55d604,_0x2f5894)||(_0x43afc4['push'](_0x3a06df['createRange'](_0x2a2d31,_0x4aa3dc['isObject'](_0x55d604)?_0x3a06df['createPositionAfter'](_0x55d604):_0x3a06df['createPositionAt'](_0x55d604,'end'))),_0x2a2d31=null),_0x41e578++;}return _0x43afc4;}function on(_0x478612,_0x925522,_0x21fc7a){if(!_0x21fc7a)return!0x1;const _0x224ad4=_0x478612['createPositionAfter'](_0x925522),_0x1d8d59=_0x478612['createPositionBefore'](_0x21fc7a);return _0x224ad4['isTouching'](_0x1d8d59);}function Xt(_0x4b88e2,_0x5c6c37,_0x4d9aa3){for(;_0x4d9aa3['length'];){const _0x2508d4=_0x4d9aa3['splice'](0x0,0x64);_0x4b88e2['change'](()=>{for(const _0x63b6 of _0x2508d4)_0x63b6['isInContent']&&_0x5c6c37['execute'](_0x63b6['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x261934,_0x2e2924,_0x3ec30d){super(_0x261934),this['_command']=_0x2e2924,this['_suggestions']=_0x3ec30d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2578f4=Array['from'](this['_suggestions']['values']())['some'](_0x4c6d3e=>_0x4c6d3e['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2578f4;}['execute'](){const _0x16ff0e=Wt(Array['from'](this['_suggestions']['values']()));for(const _0x571baa of _0x16ff0e){const _0x182ee2=_0x571baa['getRanges']();if(!this['editor']['model']['canEditAt'](_0x182ee2))return;}Xt(this['editor']['model'],this['_command'],_0x16ff0e);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x15e12d,_0x328d81,_0x44be22){super(_0x15e12d),this['_command']=_0x328d81,this['_suggestions']=_0x44be22,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2281b4=this['editor']['model']['document']['selection'],_0x544d2a=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3e64a4,_0x44e249){const _0x295775=Array['from'](_0x3e64a4['getRanges']()),_0x51f029=new Set();for(const _0x11e3a8 of _0x44e249)if(_0x11e3a8['isInContent']){for(const _0x14fa12 of _0x295775)for(const _0x1a0dfc of _0x11e3a8['getRanges']())(_0x14fa12['isIntersecting'](_0x1a0dfc)||_0x3e64a4['isCollapsed']&&!_0x11e3a8['isMultiRange']&&_0x11e3a8['next']&&_0x1a0dfc['end']['isTouching'](_0x14fa12['start']))&&_0x51f029['add'](_0x11e3a8);}return _0x51f029;}(_0x2281b4,_0x544d2a),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x399dcc=Wt(Array['from'](this['_selectedSuggestions']));for(const _0x4e3207 of _0x399dcc){const _0x3acc11=_0x4e3207['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3acc11))return;}Xt(this['editor']['model'],this['_command'],_0x399dcc);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x1c0a4c(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4a145a,_0x53693e){super(),this['id']=_0x53693e['id'],this['type']=_0x53693e['type'],this['subType']=_0x53693e['subType']||null,this['author']=_0x53693e['author'],this['creator']=_0x53693e['creator']||_0x53693e['author'],this['isExternal']=Boolean(_0x53693e['attributes']&&_0x53693e['attributes']['@external']),this['data']=null,this['_model']=_0x4a145a,this['_onAccept']=_0x53693e['onAccept'],this['_onDiscard']=_0x53693e['onDiscard'],this['_onAttributesChange']=_0x53693e['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x53693e['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 _0x3436f8=this;for(;_0x3436f8['previous'];)_0x3436f8=_0x3436f8['previous'];return _0x3436f8;}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'](_0x2a9ec2){this['_markerNames']['add'](_0x2a9ec2);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x57dd3e=>this['_model']['markers']['get'](_0x57dd3e))['filter'](_0x3ad00f=>_0x3ad00f);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x30f696=>{for(const _0x1729ab of this['getMarkers']())_0x30f696['removeMarker'](_0x1729ab);}),this['_markerNames']['clear']();}['removeMarker'](_0x1a3025){this['_model']['change'](_0x255f01=>{_0x255f01['removeMarker'](_0x1a3025);}),this['_markerNames']['delete'](_0x1a3025);}['addRange'](_0x585f26){const _0x362432='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x362432),this['_model']['change'](_0x1003ea=>{_0x1003ea['addMarker'](_0x362432,{'range':_0x585f26,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x954e69){for(const _0x1d85d1 of this['getRanges']())if(_0x1d85d1['isIntersecting'](_0x954e69))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x21a89f=>_0x21a89f['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x42253b,_0x32d692)=>[..._0x42253b,..._0x32d692['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1ad34d=this['getRanges']();if(0x1!=_0x1ad34d['length'])return null;const _0x44d0c0=_0x1ad34d[0x0],_0x3b31cc=_0x44d0c0['start']['nodeAfter'],_0x41281a=_0x44d0c0['end']['nodeBefore'];return _0x3b31cc instanceof _0x2ba753?_0x3b31cc!=_0x41281a?null:_0x3b31cc: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 _0x57fc72=[];let _0x36cd42=this['head'];for(;_0x36cd42;)_0x57fc72['push'](_0x36cd42),_0x36cd42=_0x36cd42['next'];return _0x57fc72;}['setAttribute'](_0x31ebd,_0x39f69e){const _0x2b3009=_0x54dae0(this['attributes']);_0x58b4ce(_0x2b3009,_0x31ebd,_0x39f69e),_0x3081e3(_0x2b3009,this['attributes'])||(this['attributes']=_0x2b3009,this['_onAttributesChange'](_0x2b3009));}['removeAttribute'](_0x131d8d){const _0x296e4c=_0x54dae0(this['attributes']);_0x3dfc21(_0x296e4c,_0x131d8d),_0x3081e3(_0x296e4c,this['attributes'])||(this['attributes']=_0x296e4c,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 _0x43bf13()['substr'](0x1,0x5);}}function o(_0x51354f,_0x232442,_0xdafd23){const _0x430959=_0x51354f['t'],t=_0x51354f['t'];switch(_0x232442){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',_0xdafd23);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xdafd23);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xdafd23);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xdafd23);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xdafd23);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',_0xdafd23);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xdafd23);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',_0xdafd23);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xdafd23);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xdafd23);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xdafd23);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xdafd23);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xdafd23);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0xdafd23);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xdafd23);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xdafd23);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xdafd23);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xdafd23);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xdafd23);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xdafd23);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xdafd23);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xdafd23);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xdafd23);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xdafd23);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'},_0xdafd23);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xdafd23);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xdafd23);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xdafd23);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xdafd23);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xdafd23);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'},_0xdafd23);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xdafd23);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xdafd23);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xdafd23);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xdafd23);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'},_0xdafd23);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xdafd23);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'},_0xdafd23);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'},_0xdafd23);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xdafd23);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'},_0xdafd23);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xdafd23);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'},_0xdafd23);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xdafd23);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xdafd23);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'},_0xdafd23);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0xdafd23);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 _0x430959({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0xdafd23);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x430959({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0xdafd23);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0xdafd23);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'},_0xdafd23);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'},_0xdafd23);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'},_0xdafd23);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x232442;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4e0bc7,_0xe45ed){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4e0bc7,this['_locale']=_0xe45ed;}['getDescriptions'](_0x904f54){const _0x544128=[],_0xeb76c3=new Set(),_0x29626e=new Set();for(let _0x28249a=0x0;_0x28249a<_0x904f54['length'];_0x28249a++){const _0x3bd9fd=_0x904f54[_0x28249a];if(!_0x3bd9fd['isInContent'])continue;const _0x5ea3ff=this['_handleCustomCallbackDescription'](_0x3bd9fd);if(_0x5ea3ff){if(null!=_0x3bd9fd['subType']){if(_0xeb76c3['has'](_0x3bd9fd['subType']))continue;_0xeb76c3['add'](_0x3bd9fd['subType']);}_0x544128['push'](_0x5ea3ff);}else{if('attribute'!=_0x3bd9fd['type'])'insertion'!=_0x3bd9fd['type']&&'deletion'!=_0x3bd9fd['type']||this['_handleInsertRemoveSuggestionDescription'](_0x544128,_0x3bd9fd,_0x904f54[_0x28249a+0x1]);else{const _0x5b6f27=_0x3bd9fd['data']['key'];if(_0x29626e['has'](_0x5b6f27))continue;_0x29626e['add'](_0x3bd9fd['data']['key']),_0x5b6f27==m?this['_handleRenameSuggestionDescription'](_0x544128,_0x3bd9fd):this['_handleAttributeSuggestionDescription'](_0x544128,_0x3bd9fd);}}}return this['_resolveDescriptionItems'](_0x544128);}['registerDescriptionCallback'](_0x2e4fbd){this['_customCallbacks']['push'](_0x2e4fbd);}['registerElementLabel'](_0x59c5d0,_0x46c46e,_0x56a15f=_0xa618fb['normal']){'function'==typeof _0x59c5d0?_0x696ef6(this['_itemLabelsCallbacks'],{'matchingCallback':_0x59c5d0,'label':_0x46c46e,'priority':_0x56a15f}):this['_itemLabels']['set'](_0x59c5d0,_0x46c46e);}['registerAttributeLabel'](_0x5d29c3,_0x2292a0){this['_attributeLabels']['set'](_0x5d29c3,_0x2292a0);}['getItemLabel'](_0x5a5f71,_0x361307=0x1){let _0x229440;for(const _0x269020 of this['_itemLabelsCallbacks'])if(_0x269020['matchingCallback'](_0x5a5f71)){_0x229440=_0x269020['label'];break;}return _0x229440||(_0x229440=this['_itemLabels']['get'](_0x5a5f71['name'])),_0x229440?_0x229440(_0x361307):0x1!==_0x361307?_0x361307+'\x20'+_0x5a5f71['name']+'s':''+_0x5a5f71['name'];}['_addDescriptionItems'](_0x444b37,_0x21f87b){const _0x38a9b9=_0x21f87b['getFirstRange']()['getWalker'](),_0x5e4b4b='insertion'==_0x21f87b['type']?'add':'remove';for(const _0x24dd2d of _0x38a9b9){const _0x398c03=_0x24dd2d['item'],_0x139f1c=_0x444b37[_0x444b37['length']-0x1];if(_0x398c03['is']('$textProxy'))_0x139f1c&&_0x139f1c['type']['indexOf']('Container')>-0x1&&_0x444b37['pop'](),_0x139f1c&&'text'==_0x139f1c['type']?_0x139f1c[_0x5e4b4b]+=_0x398c03['data']:_0x444b37['push']({'type':'text','add':'add'==_0x5e4b4b?_0x398c03['data']:'','remove':'remove'==_0x5e4b4b?_0x398c03['data']:''});else{if(this['_schema']['isObject'](_0x398c03)){const _0x3223bc=_0x398c03;if(_0x139f1c&&_0x139f1c['type']['indexOf']('Container')>-0x1&&_0x444b37['pop'](),'elementEnd'==_0x24dd2d['type'])continue;_0x139f1c&&_0x139f1c['type']==_0x5e4b4b+'Object'&&_0x139f1c['element']['name']==_0x3223bc['name']?_0x139f1c['quantity']++:_0x444b37['push']({'type':_0x5e4b4b+'Object','element':_0x3223bc,'quantity':0x1}),_0x38a9b9['skip'](_0x46d881=>!('elementEnd'==_0x46d881['type']&&_0x46d881['item']==_0x398c03));}else{if(this['_schema']['checkChild'](_0x398c03,'$text')||_0x398c03['is']('element','softBreak')){const _0x162578=_0x398c03;if('add'==_0x5e4b4b&&'elementStart'==_0x24dd2d['type']||'remove'==_0x5e4b4b&&'elementEnd'==_0x24dd2d['type'])continue;if(_0x139f1c&&-0x1==_0x139f1c['type']['indexOf']('Container')){'text'==_0x139f1c['type']&&(_0x139f1c[_0x5e4b4b]+='\x0a');continue;}let _0x3af237;if(_0x3af237='add'==_0x5e4b4b?_0x162578['nextSibling']&&!this['_schema']['isObject'](_0x162578['nextSibling'])?_0x162578['nextSibling']:null:_0x162578['previousSibling']&&!this['_schema']['isObject'](_0x162578['previousSibling'])?_0x162578['previousSibling']:null,_0x162578['isEmpty']||_0x3af237&&_0x3af237['isEmpty']){const _0x4fd646=_0x3af237&&_0x3af237['isEmpty']?_0x3af237:_0x162578;_0x139f1c&&_0x139f1c['type']==_0x5e4b4b+'EmptyContainer'&&_0x139f1c['element']['name']==_0x4fd646['name']?_0x139f1c['quantity']++:_0x444b37['push']({'type':_0x5e4b4b+'EmptyContainer','element':_0x4fd646,'quantity':0x1});}else _0x444b37['push']({'type':_0x5e4b4b+'Container','element':_0x162578});}}}}}['_resolveDescriptionItems'](_0x2898b7){const _0x142cb1=this['_locale'],_0x43f97a=[],_0xc4b57b=[],_0x43a532=[];for(const _0xb3fcf8 of _0x2898b7)switch(_0xb3fcf8['type']){case'text':if(_0xb3fcf8['add']=_0xb3fcf8['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xb3fcf8['remove']=_0xb3fcf8['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xb3fcf8['add']&&''!=_0xb3fcf8['remove']){_0x43f97a['push']({'type':'replace','content':o(_0x142cb1,'REPLACE_TEXT',['\x22'+_0xb3fcf8['remove']+'\x22','\x22'+_0xb3fcf8['add']+'\x22'])});continue;}if(null!=_0xb3fcf8['add']['match'](/^ +$/)){_0x43f97a['push']({'type':'insertion','content':o(_0x142cb1,'*Insert:*\x20%0',o(_0x142cb1,'ELEMENT_SPACE',_0xb3fcf8['add']['length']))});continue;}if(null!=_0xb3fcf8['remove']['match'](/^ +$/)){_0x43f97a['push']({'type':'deletion','content':o(_0x142cb1,'*Remove:*\x20%0',o(_0x142cb1,'ELEMENT_SPACE',_0xb3fcf8['remove']['length']))});continue;}if(''!=_0xb3fcf8['add']){_0x43f97a['push']({'type':'insertion','content':o(_0x142cb1,'*Insert:*\x20%0','\x22'+_0xb3fcf8['add']+'\x22')});continue;}_0x43f97a['push']({'type':'deletion','content':o(_0x142cb1,'*Remove:*\x20%0','\x22'+_0xb3fcf8['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x43f97a['push']({'type':'insertion','content':o(_0x142cb1,'*Insert:*\x20%0',this['getItemLabel'](_0xb3fcf8['element'],_0xb3fcf8['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x43f97a['push']({'type':'deletion','content':o(_0x142cb1,'*Remove:*\x20%0',this['getItemLabel'](_0xb3fcf8['element'],_0xb3fcf8['quantity']))});continue;case'addContainer':_0x43f97a['push']({'type':'insertion','content':o(_0x142cb1,'*Split:*\x20%0',this['getItemLabel'](_0xb3fcf8['element'],_0xb3fcf8['quantity']))});continue;case'removeContainer':_0x43f97a['push']({'type':'deletion','content':o(_0x142cb1,'*Merge:*\x20%0',this['getItemLabel'](_0xb3fcf8['element'],_0xb3fcf8['quantity']))});continue;case'addFormat':_0xc4b57b['push'](_0xb3fcf8['key']);continue;case'removeFormat':_0x43a532['push'](_0xb3fcf8['key']);continue;default:_0x43f97a['push'](_0xb3fcf8);}if(_0xc4b57b['length']){const _0x5643db=_0xc4b57b['map'](_0x90148f=>this['_attributeLabels']['has'](_0x90148f)?this['_attributeLabels']['get'](_0x90148f):_0x90148f)['join'](',\x20');_0x43f97a['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x5643db)});}if(_0x43a532['length']){const _0xc05cf9=_0x43a532['map'](_0x776fa7=>this['_attributeLabels']['has'](_0x776fa7)?this['_attributeLabels']['get'](_0x776fa7):_0x776fa7)['join'](',\x20');_0x43f97a['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xc05cf9)});}return _0x43f97a;}['_handleCustomCallbackDescription'](_0x25981e){for(const _0x301f02 of this['_customCallbacks']){const _0x207097=_0x301f02(_0x25981e);if(_0x207097&&'type'in _0x207097)return _0x207097;}}['_handleAttributeSuggestionDescription'](_0x5a2aba,_0x255bc9){const _0x941417=_0x255bc9['data'],_0x4991a0=void 0x0===_0x941417['newValue']?'removeFormat':'addFormat';_0x5a2aba['push']({'type':_0x4991a0,'key':_0x941417['key']});}['_handleRenameSuggestionDescription'](_0x1b205d,_0x5afd1d){_0x1b205d['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5afd1d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x25edc8,_0x8f2354,_0x21243f){if(this['_addDescriptionItems'](_0x25edc8,_0x8f2354),_0x21243f&&_0x21243f['getFirstRange']()&&!_0x8f2354['getFirstRange']()['end']['isEqual'](_0x21243f['getFirstRange']()['start'])){const _0x4ca3ca=_0x25edc8[_0x25edc8['length']-0x1],_0x1dc921='insertion'==_0x8f2354['type']?'add':'remove';_0x4ca3ca&&'text'==_0x4ca3ca['type']&&(_0x4ca3ca[_0x1dc921]+='\x0a');}}}class U extends _0x7145c0{['afterInit'](){const _0x4eabae=this['editor'],_0x2a6c59=_0x4eabae['plugins']['get']('TrackChangesEditing');_0x4eabae['commands']['get']('showAIAssistant')&&_0x2a6c59['enableCommand']('showAIAssistant');}}class V extends _0x7145c0{['afterInit'](){const _0x46f7d0=this['editor'],_0x4068b9=_0x46f7d0['locale'];if(!_0x46f7d0['plugins']['has']('AlignmentEditing'))return;const _0x3475ba=_0x46f7d0['plugins']['get']('TrackChangesEditing');_0x3475ba['enableDefaultAttributesIntegration']('alignment'),_0x3475ba['registerBlockAttribute']('alignment'),_0x3475ba['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4068b9,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x242a6d=this['editor'],_0x141745=_0x242a6d['locale'];_0x242a6d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fd823=>{if('formatBlock'!=_0x4fd823['type'])return;const {data:_0x4fbbf2}=_0x4fd823;if(_0x4fbbf2&&'alignment'==_0x4fbbf2['commandName']){const _0xecfcc8=_0x4fbbf2['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x141745,'*Format:*\x20%0',function(_0x4a5c36){switch(_0x4a5c36){case'left':return o(_0x141745,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x141745,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x141745,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x141745,'FORMAT_JUSTIFY_TEXT');}}(_0xecfcc8))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x7145c0{['afterInit'](){const _0x5d284d=this['editor'],_0x332061=_0x5d284d['plugins']['get']('TrackChangesEditing'),_0x269333=_0x5d284d['locale'];for(const _0x35acd8 of Zt){if(!_0x5d284d['plugins']['has'](_0x35acd8))continue;const _0x294116=_0x35acd8['slice'](0x0,-0x7)['toLowerCase'](),_0x49016a='FORMAT_'+_0x294116['toUpperCase']();_0x332061['enableDefaultAttributesIntegration'](_0x294116),_0x332061['registerInlineAttribute'](_0x294116),_0x332061['descriptionFactory']['registerAttributeLabel'](_0x294116,o(_0x269333,_0x49016a));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdb6c7c=this['editor'],_0x425225=_0xdb6c7c['locale'],_0x38983b=_0xdb6c7c['plugins']['get']('TrackChangesEditing');function _0x46d780(_0x51a391,_0x4fe2d3){_0x38983b['descriptionFactory']['registerDescriptionCallback'](_0x11f423=>{if('formatInline'!=_0x11f423['type'])return;const {data:_0x22eac1}=_0x11f423;return _0x22eac1&&_0x22eac1['commandName']===_0x51a391?_0x22eac1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x425225,'*Format:*\x20%0',_0x4fe2d3)}:{'type':'format','content':o(_0x425225,'*Remove\x20format:*\x20%0',_0x4fe2d3)}:void 0x0;});}_0x46d780('bold',o(_0x425225,'FORMAT_BOLD')),_0x46d780('italic',o(_0x425225,'FORMAT_ITALIC')),_0x46d780('underline',o(_0x425225,'FORMAT_UNDERLINE')),_0x46d780('code',o(_0x425225,'FORMAT_CODE')),_0x46d780('strikethrough',o(_0x425225,'FORMAT_STRIKETHROUGH')),_0x46d780('subscript',o(_0x425225,'FORMAT_SUBSCRIPT')),_0x46d780('superscript',o(_0x425225,'FORMAT_SUPERSCRIPT'));}}class F extends _0x7145c0{['afterInit'](){const _0x3386e0=this['editor'],_0x163eac=_0x3386e0['locale'];if(!_0x3386e0['plugins']['has']('BlockQuoteEditing'))return;const _0x5eeeb0=_0x3386e0['plugins']['get']('TrackChangesEditing'),_0x4217db=this['editor']['commands']['get']('blockQuote');_0x5eeeb0['enableCommand']('blockQuote',(_0x2de97c,_0x420f7e={})=>{const _0x4520fd=this['editor']['model']['document']['selection'],_0x4428cc=_0x420f7e&&void 0x0!==_0x420f7e['forceValue']?_0x420f7e['forceValue']:!_0x4217db['value'];let _0x12f494=[];if(_0x4428cc){const _0x2d198c=Array['from'](_0x4520fd['getSelectedBlocks']())['filter'](_0x244d0c=>oo(_0x244d0c)||function(_0x1b6c91,_0x1f03f3){const _0x5f59b6=_0x1f03f3['checkChild'](_0x1b6c91['parent'],'blockQuote'),_0x213634=_0x1f03f3['checkChild'](['$root','blockQuote'],_0x1b6c91);return _0x5f59b6&&_0x213634;}(_0x244d0c,this['editor']['model']['schema']));_0x12f494=to(_0x2d198c,_0x3386e0['model']);}else{const _0x228d9c=Array['from'](_0x4520fd['getSelectedBlocks']())['filter'](_0x3e6a17=>oo(_0x3e6a17));_0x12f494=to(_0x228d9c,_0x3386e0['model']);}_0x3386e0['model']['change'](()=>{for(const _0x2ff734 of _0x12f494)_0x5eeeb0['markBlockFormat'](_0x2ff734,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4428cc}]});});}),_0x5eeeb0['descriptionFactory']['registerDescriptionCallback'](_0xa13d5c=>{const {data:_0x45e12f}=_0xa13d5c;if(_0x45e12f&&'blockQuote'==_0x45e12f['commandName']){const _0x5bbf60=o(_0x163eac,'ELEMENT_BLOCK_QUOTE');return _0x45e12f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x163eac,'*Set\x20format:*\x20%0',_0x5bbf60)}:{'type':'format','content':o(_0x163eac,'*Remove\x20format:*\x20%0',_0x5bbf60)};}});}}function oo(_0x23bccc){return'blockQuote'==_0x23bccc['parent']['name'];}class L extends _0x7145c0{['afterInit'](){const _0xf96946=this['editor'],_0x12b734=_0xf96946['locale'],_0x2c47fa=_0xf96946['plugins']['get']('TrackChangesEditing');_0xf96946['plugins']['has']('BookmarkEditing')&&(_0x2c47fa['enableCommand']('insertBookmark'),_0x2c47fa['enableDefaultAttributesIntegration']('updateBookmark'),_0x2c47fa['registerBlockAttribute']('bookmarkId'),_0x2c47fa['descriptionFactory']['registerDescriptionCallback'](_0x289c51=>{if('insertion'!=_0x289c51['type']&&'deletion'!=_0x289c51['type']&&'attribute'!=_0x289c51['type'])return;const _0x56be72=_0x289c51['getContainedElement']();if(null==_0x56be72)return;if(!_0x56be72['is']('element','bookmark'))return;const _0x10b7b6=_0x56be72['getAttribute']('bookmarkId');if('insertion'==_0x289c51['type'])return{'type':'insertion','content':o(_0x12b734,'*Insert:*\x20%0','\x22'+_0x10b7b6+'\x22\x20'+o(_0x12b734,'ELEMENT_BOOKMARK'))};if('deletion'==_0x289c51['type'])return{'type':'deletion','content':o(_0x12b734,'*Remove:*\x20%0','\x22'+_0x10b7b6+'\x22\x20'+o(_0x12b734,'ELEMENT_BOOKMARK'))};const {data:_0xe54ae6}=_0x289c51;if(!_0xe54ae6||'bookmarkId'!=_0xe54ae6['key'])return;return{'type':'format','content':o(_0x12b734,'*Set\x20bookmark:*\x20%0','\x22'+_0xe54ae6['newValue']+'\x22')};}));}}class J extends _0x7145c0{['afterInit'](){const _0x4b0200=this['editor'];_0x4b0200['plugins']['has']('CaseChange')&&(_0x4b0200['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4b0200['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4b0200['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x7145c0{['afterInit'](){const _0x46b937=this['editor'];_0x46b937['commands']['get']('ckbox')&&_0x46b937['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x7145c0{['afterInit'](){const _0x202bb1=this['editor'];if(!_0x202bb1['plugins']['has']('CodeBlock'))return;const _0x2d122e=_0x202bb1['plugins']['get']('TrackChangesEditing'),_0x245c7d=_0x202bb1['locale'],_0x53136d=_0x202bb1['config']['get']('codeBlock')['languages'],_0x2a3cd3=_0x202bb1['commands']['get']('codeBlock');_0x2d122e['enableCommand']('indentCodeBlock'),_0x2d122e['enableCommand']('outdentCodeBlock'),_0x2d122e['enableCommand']('codeBlock',(_0xbab3e9,_0x56112c={})=>{const _0x2e10ab=_0x202bb1['model'],_0x5261d1=_0x202bb1['model']['document']['selection'],_0x1fe15e=_0x56112c&&void 0x0!==_0x56112c['forceValue']?_0x56112c['forceValue']:!_0x2a3cd3['value'];let _0x5cb002;_0x56112c['language']||(_0x56112c['language']=_0x53136d[0x0]['language']),_0x5cb002=_0x1fe15e?Array['from'](_0x5261d1['getSelectedBlocks']())['filter'](_0x2fcc64=>eo(_0x2fcc64)||function(_0x37da11,_0x4ae45f){if(_0x37da11['is']('rootElement')||_0x4ae45f['isLimit'](_0x37da11))return!0x1;return _0x4ae45f['checkChild'](_0x37da11['parent'],'codeBlock');}(_0x2fcc64,_0x2e10ab['schema'])):Array['from'](_0x5261d1['getSelectedBlocks']())['filter'](_0x23dc6d=>eo(_0x23dc6d));const _0x1459d0=to(_0x5cb002,_0x2e10ab);_0x2e10ab['change'](()=>{for(const _0x2920e4 of _0x1459d0)_0x2d122e['markBlockFormat'](_0x2920e4,{'commandName':'codeBlock','commandParams':[{..._0x56112c,'forceValue':_0x1fe15e}],'formatGroupId':'blockName'});});}),(_0x2d122e['descriptionFactory']['registerElementLabel']('codeBlock',_0x545c1d=>o(_0x245c7d,'ELEMENT_CODE_BLOCK',_0x545c1d)),_0x2d122e['descriptionFactory']['registerDescriptionCallback'](_0x56545e=>{if('formatBlock'!=_0x56545e['type'])return;const _0x50c43e=_0x245c7d['t'],{data:_0x74519e}=_0x56545e;if(!_0x74519e||'codeBlock'!=_0x74519e['commandName'])return;const _0x38950f=_0x74519e['commandParams'][0x0]['language'],_0xd1afd7=_0x50c43e(_0x53136d['find'](_0x428efa=>_0x428efa['language']===_0x38950f)['label'])['toLowerCase']();return _0x74519e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x245c7d,'*Set\x20format:*\x20%0',o(_0x245c7d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xd1afd7+')')}:{'type':'format','content':o(_0x245c7d,'*Remove\x20format:*\x20%0',o(_0x245c7d,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x34090d){return'codeBlock'==_0x34090d['name'];}class z extends _0x7145c0{['afterInit'](){const _0x16e76c=this['editor'];if(!_0x16e76c['plugins']['has']('CommentsEditing'))return;_0x16e76c['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1a594c,_0x2604cd,_0xa93990){const _0x579864=[];for(const _0x30f518 of _0x2604cd['getItems']())_0x30f518['hasAttribute'](_0x1a594c)&&_0x579864['push'](_0xa93990['createRangeOn'](_0x30f518));return _0x579864;}function Ne(_0x236152,_0x2bf12d,{showActiveMarker:_0xa989a1=!0x0}={}){const _0x51d52=_0x236152['plugins']['get']('TrackChangesEditing');return(_0x47e3b8,_0x2c7beb,_0x44092d)=>{if(!_0x44092d['consumable']['test'](_0x2c7beb['markerRange'],_0x47e3b8['name']))return;const _0x1d36de=_0x2c7beb['markerRange']['getWalker'](),_0x59f25d=_0x2c7beb['markerRange']['start'],_0x4f7500=_0x236152['model']['schema'];let _0x134661=null,_0x5164be=null,_0x3cd32b=!0x1,_0x302751=!0x1;for(const _0x76a869 of _0x1d36de){const _0x373fde=_0x76a869['item'];_0x3cd32b=_0x3cd32b||_0x4f7500['isContent'](_0x373fde);const _0xb067cd=_0x44092d['mapper']['toViewElement'](_0x373fde);if(_0xb067cd&&_0xb067cd['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x76a869['type']&&(_0x4f7500['isBlock'](_0x373fde)&&!_0x4f7500['isLimit'](_0x373fde)&&(_0x373fde['nextSibling']||_0x59f25d['isAtEnd']?_0x134661&&_0x134661['parent']==_0x373fde||(_0x134661=_0x373fde,_0x1ba700(_0x76a869['previousPosition']),_0x302751=!0x0):_0x5164be=_0x5164be||_0x76a869['previousPosition']));}function _0x1ba700(_0x4b3dbd){const {authorId:_0x2b9057}=_0x51d52['_splitMarkerName'](_0x2c7beb['markerName']),_0x4bae0f=_0x44092d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2bf12d,'data-author-id':_0x2b9057}),_0x4861c3=_0x44092d['mapper']['toViewPosition'](_0x4b3dbd);_0xa989a1&&_0x51d52['activeMarkers']['includes'](_0x2c7beb['markerName'])&&_0x44092d['writer']['addClass']('ck-suggestion-marker--active',_0x4bae0f),_0x44092d['writer']['insert'](_0x4861c3,_0x4bae0f),_0x44092d['mapper']['bindElementToMarker'](_0x4bae0f,_0x2c7beb['markerName']);}_0x3cd32b||_0x302751||!_0x5164be||_0x1ba700(_0x5164be);};}class K extends _0x7145c0{static get['requires'](){return[_0x3de231];}['init'](){const _0x4112ca=this['editor'],_0x4c2523=_0x4112ca['plugins']['get']('TrackChangesEditing');_0x4c2523['enableCommand']('delete');const _0xcfaab=_0x4112ca['commands']['get']('deleteForward');_0x4c2523['enableCommand']('deleteForward',(_0x21f7de,_0x259f62={})=>{const _0x18b1d6=_0x4112ca['model']['createSelection'](_0x4112ca['model']['document']['selection']);_0x18b1d6['isCollapsed']&&_0x4112ca['model']['modifySelection'](_0x18b1d6,{'direction':'forward','unit':_0x259f62['unit']});const _0x590444=_0x18b1d6['getFirstRange'](),_0x567779=_0x3e3f21['fromRange'](_0x590444);let _0x3d90ff;_0x21f7de(_0x259f62),_0x3d90ff='$graveyard'==_0x567779['root']['rootName']?_0x4112ca['model']['createRange'](_0x590444['start']):_0x4112ca['model']['createRange'](_0x567779['start'],_0x567779['end']),_0x567779['detach'](),_0x4112ca['model']['enqueueChange'](_0xcfaab['buffer']['batch'],_0x36953b=>{_0xcfaab['buffer']['lock'](),_0x36953b['setSelection'](_0x36953b['createRange'](_0x3d90ff['end'])),_0xcfaab['buffer']['unlock']();});}),_0x4112ca['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0x4112ca,'merge'),{'priority':'high'}),_0x4112ca['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4beb0d,_0x3ec471,_0x473895)=>{_0x473895['options']['showSuggestionHighlights']&&Ne(_0x4112ca,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4beb0d,_0x3ec471,_0x473895);},{'priority':'high'}),_0x4112ca['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x36102a,_0x5ed812,_0x19b8c7)=>{const _0xc71c06=_0x19b8c7['mapper']['markerNameToElements'](_0x5ed812['markerName']);if(_0xc71c06){for(const _0x4f8061 of _0xc71c06)_0x4f8061['is']('uiElement')&&(_0x19b8c7['mapper']['unbindElementFromMarkerName'](_0x4f8061,_0x5ed812['markerName']),_0x19b8c7['writer']['remove'](_0x4f8061));}},{'priority':'high'});}}class W extends _0x7145c0{['afterInit'](){const _0x5a3f37=this['editor'];if(!_0x5a3f37['plugins']['has']('ListEditing'))return;const _0x2ed9cd=_0x5a3f37['locale'],_0x4535a1=_0x5a3f37['plugins']['get']('TrackChangesEditing'),_0x428dbc=_0x5a3f37['plugins']['has']('TodoListEditing'),_0x1aa920=!!_0x5a3f37['config']['get']('list.multiBlock');function _0x1672ac(_0x1cc3e6){return{'type':'format','content':''+o(_0x2ed9cd,'*Set\x20format:*\x20%0',_0x1cc3e6)};}function _0x591052(_0x3204f2){return{'type':'format','content':''+o(_0x2ed9cd,'*Remove\x20format:*\x20%0',_0x3204f2)};}_0x4535a1['enableDefaultAttributesIntegration']('numberedList'),_0x4535a1['enableDefaultAttributesIntegration']('bulletedList'),_0x4535a1['enableDefaultAttributesIntegration']('customNumberedList'),_0x4535a1['enableDefaultAttributesIntegration']('customBulletedList'),_0x4535a1['enableDefaultAttributesIntegration']('indentList'),_0x4535a1['enableDefaultAttributesIntegration']('outdentList'),_0x4535a1['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4535a1['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4535a1['registerBlockAttribute']('listItemId'),_0x4535a1['registerBlockAttribute']('listType'),_0x4535a1['registerBlockAttribute']('listIndent'),_0x1aa920&&(_0x4535a1['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4535a1['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x428dbc&&(_0x4535a1['enableDefaultAttributesIntegration']('todoList'),_0x4535a1['enableDefaultAttributesIntegration']('checkTodoList'),_0x4535a1['registerBlockAttribute']('todoListChecked'),_0x4535a1['descriptionFactory']['registerDescriptionCallback'](_0x594d7f=>{const {data:_0x1b464a}=_0x594d7f;if(_0x1b464a&&'todoListChecked'==_0x1b464a['key'])return{'type':'format','content':_0x1b464a['newValue']?o(_0x2ed9cd,'*Check\x20item*'):o(_0x2ed9cd,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3f6faa=>{if(_0x3f6faa['batch']['isUndo'])return!0x1;let _0x552a21=!0x1;const _0x198dd3=_0x4535a1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x190fc1=>'todoListChecked'===_0x4535a1['_getAttributeKey'](_0x190fc1));for(const _0x56a3b7 of _0x198dd3){'todo'!=_0x56a3b7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4535a1['_findSuggestions'](_0x56a3b7['getFirstRange'](),'attribute')['find'](_0x73653=>'listType'===_0x4535a1['_getAttributeKey'](_0x73653['suggestion']))||(_0x3f6faa['removeMarker'](_0x56a3b7['getFirstMarker']()),_0x552a21=!0x0));}return _0x552a21;})),_0x4535a1['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2ed9cd,'FORMAT_INDENT'));const _0x487fcd={'type':'format','content':''};_0x4535a1['descriptionFactory']['registerDescriptionCallback'](_0x278a71=>{const {data:_0x2b0b3b}=_0x278a71;if(!_0x2b0b3b||'listType'!=_0x2b0b3b['key'])return;let _0x4e2fdc=_0x278a71['head'];for(;_0x4e2fdc;){if(_0x4e2fdc['data']&&(('listStyle'==_0x4e2fdc['data']['key']||'listMarkerStyle'==_0x4e2fdc['data']['key'])&&(_0x4e2fdc['data']['newValue']&&'default'!=_0x4e2fdc['data']['newValue']||'default'!=_0x4e2fdc['data']['oldValue']&&!_0x2b0b3b['newValue'])||!_0x1aa920&&_0x4e2fdc['data']['key']==m))return _0x487fcd;_0x4e2fdc=_0x4e2fdc['next'];}if(null==_0x2b0b3b['newValue'])switch(_0x2b0b3b['oldValue']){case'bulleted':return _0x591052(o(_0x2ed9cd,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x591052(o(_0x2ed9cd,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x591052(o(_0x2ed9cd,'ELEMENT_TODO_LIST'));}switch(_0x2b0b3b['newValue']){case'bulleted':return _0x1672ac(o(_0x2ed9cd,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1672ac(o(_0x2ed9cd,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1672ac(o(_0x2ed9cd,'ELEMENT_TODO_LIST'));}}),_0x4535a1['descriptionFactory']['registerDescriptionCallback'](_0x3018e7=>{const {data:_0x1ef6d9}=_0x3018e7;if(_0x1ef6d9&&'listIndent'==_0x1ef6d9['key'])return null==_0x1ef6d9['newValue']||null==_0x1ef6d9['oldValue']&&0x0==_0x1ef6d9['newValue']?_0x487fcd:void 0x0;}),_0x4535a1['descriptionFactory']['registerDescriptionCallback'](_0x41b22b=>{if('attribute'!=_0x41b22b['type'])return;const {data:_0x305c69}=_0x41b22b;if(!_0x305c69||'listItemId'!=_0x305c69['key'])return;const _0x5396aa=Te(_0x41b22b);return'newValue'==_0x5396aa?{'type':'format','content':o(_0x2ed9cd,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5396aa?{'type':'format','content':o(_0x2ed9cd,'*Split:*\x20list\x20item')}:_0x487fcd;}),_0x5a3f37['model']['document']['registerPostFixer'](_0x5e59e4=>this['listItemIdFixer'](_0x5e59e4)),_0x5a3f37['model']['document']['registerPostFixer'](_0x2d9f79=>this['noTrackChangesFixer'](_0x2d9f79)),_0x5a3f37['model']['document']['on']('change:data',(_0x2248e0,_0x2432d9)=>{if(_0x2432d9['isUndo']||!_0x2432d9['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xaae716){if(_0xaae716['batch']['isUndo']||!_0xaae716['batch']['isLocal'])return!0x1;let _0x5a719d=!0x1;const _0x4e2f4b=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x308142=>_0x308142['data']&&'listItemId'==_0x308142['data']['key'])['filter'](_0x4e0926=>_0x4e0926['data']['newValue']&&_0x4e0926['data']['oldValue']);for(const _0x2e87a7 of _0x4e2f4b)Te(_0x2e87a7)||(_0xaae716['removeMarker'](_0x2e87a7['getFirstMarker']()),_0x5a719d=!0x0);return _0x5a719d;}['noTrackChangesFixer'](_0x50a384){if(_0x50a384['batch']['isUndo']||!_0x50a384['batch']['isLocal'])return!0x1;const _0x4cf3a1=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4cf3a1['trackChangesCommand']['value'])return!0x1;let _0x53a77f=!0x1;const _0x5a2407=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1170e3=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x16bbe1=>'attribute'==_0x16bbe1['type'])['filter'](_0x5b95c0=>_0x5a2407['includes'](_0x5b95c0['attributeKey']));if(0x0==_0x1170e3['length'])return _0x53a77f;for(const _0xf96168 of _0x1170e3){const _0x3d2919=_0x4cf3a1['_findSuggestions'](_0xf96168['range'],'attribute')['filter'](_0x451701=>!_0x451701['meta']['isNextTo'])['map'](_0x1ca89a=>_0x1ca89a['suggestion'])['filter'](_0x1cf0dc=>{const _0x5d632e=_0x4cf3a1['_getAttributeKey'](_0x1cf0dc);return _0x5a2407['includes'](_0x5d632e);});if(_0x3d2919['length']){for(const _0x33a1f2 of _0x3d2919)_0x50a384['removeMarker'](_0x33a1f2['getFirstMarker']());_0x53a77f=!0x0;}}return _0x53a77f;}['assureChains'](){const _0x52c56b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b6b93=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x14d6d6;const _0x2d3ca6=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x18c18c=>{if(_0x18c18c['data']['oldRange']||!_0x18c18c['data']['newRange'])return null;if(!_0x18c18c['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3c9a17}=_0x52c56b['_splitMarkerName'](_0x18c18c['name']);if(!_0x52c56b['hasSuggestion'](_0x3c9a17))return null;const _0x1f0ed2=_0x52c56b['getSuggestion'](_0x3c9a17);return _0x2b6b93['includes'](_0x1f0ed2['data']['key']);})['map'](_0x222082=>{const {id:_0x165f7e}=_0x52c56b['_splitMarkerName'](_0x222082['name']),_0x3c0887=_0x52c56b['getSuggestion'](_0x165f7e);return _0x14d6d6=_0x3c0887['attributes']['groupId'],_0x3c0887['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2d3ca6['size'])return;const _0x8ce10d=_0x52c56b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf4ecd9=>'attribute'==_0xf4ecd9['type']&&_0xf4ecd9['data']&&_0x2b6b93['includes'](_0xf4ecd9['data']['key'])&&_0xf4ecd9['attributes']['groupId']!=_0x14d6d6)['map'](_0x4e076d=>({'listItem':_0x4e076d['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4e076d['attributes']['groupId']})),_0x3ee0fc=new Set();for(const {groupId:_0x6cc268,listItem:_0x47c2d0}of _0x8ce10d)_0x2d3ca6['has'](_0x47c2d0)&&_0x3ee0fc['add'](_0x6cc268);for(const _0x374df2 of _0x52c56b['getSuggestions']())_0x3ee0fc['has'](_0x374df2['attributes']['groupId'])&&_0x374df2['setAttribute']('groupId',_0x14d6d6);}['_supportLegacySuggestions'](){const _0x1b283b=this['editor'],_0x5b807d=_0x1b283b['locale'],_0x5b01e0=_0x1b283b['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5b01e0['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xb14f5f,_0x12dfd2){const _0x273bbb=[];for(let _0x2245bd of _0xb14f5f)_0x2245bd['start']['nodeAfter']===_0x2245bd['end']['parent']&&(_0x2245bd=_0x1b283b['model']['createRange'](_0x1b283b['model']['createPositionAt'](_0x2245bd['start']['nodeAfter'],0x0))),_0x273bbb['push'](_0x2245bd);_0x1b283b['model']['change'](_0x54139f=>{const _0x47ef4a=_0x1b283b['model']['document']['selection'],_0x34941f=Array['from'](_0x47ef4a['getRanges']())['map'](_0x493fa3=>_0x3e3f21['fromRange'](_0x493fa3));_0x54139f['setSelection'](_0x273bbb),_0x1b283b['commands']['get'](_0x12dfd2['commandName'])['refresh'](),_0x12dfd2['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1b283b['execute'](_0x12dfd2['commandName'],..._0x12dfd2['commandParams']),_0x54139f['setSelection'](_0x34941f);for(const _0x5dca01 of _0x34941f)_0x5dca01['detach']();});}),_0x5b01e0['descriptionFactory']['registerElementLabel'](function(_0x490917){const _0x5a4381=!_0x1b283b['model']['schema']['isObject'](_0x490917),_0x12720b=_0x490917['previousSibling'],_0x99443c=_0x490917['nextSibling'],_0x23abaf=_0x490917['getAttribute']('listItemId'),_0x27e9ee=!_0x12720b||_0x12720b['getAttribute']('listItemId')!==_0x23abaf,_0xa5d921=!_0x99443c||_0x99443c['getAttribute']('listItemId')!==_0x23abaf;return _0x5a4381&&Boolean(_0x23abaf)&&_0x27e9ee&&_0xa5d921;},_0x1a3153=>o(_0x5b807d,'ELEMENT_LIST_ITEM',_0x1a3153));}['_registerLegacyDescription'](){const _0x3941e1=this['editor'],_0x2c765b=_0x3941e1['locale'];function _0x26b79c(_0x22ed41){const _0x53cf9b=_0x3941e1['commands']['get']('bulletedList')['value'],_0x263a19=_0x3941e1['commands']['get']('numberedList')['value'];return'numberedList'===_0x22ed41?_0x53cf9b:_0x263a19;}_0x3941e1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x245ba5){if('formatBlock'!=_0x245ba5['type'])return;const {data:_0x5b2313}=_0x245ba5;if(!_0x5b2313)return;let _0x7a689d,_0x166279,_0x1fdbd1,_0x6abc3d;switch(_0x5b2313['commandName']){case'bulletedList':_0x1fdbd1=_0x5b2313['commandParams'][0x0]['forceValue'],_0x6abc3d=_0x26b79c(_0x5b2313['commandName']),_0x7a689d=_0x1fdbd1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x6abc3d&&_0x3941e1['config']['get']('list.multiBlock')||(_0x7a689d='*Change\x20to:*\x20%0'),_0x166279={'type':'format','content':o(_0x2c765b,_0x7a689d,o(_0x2c765b,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1fdbd1=_0x5b2313['commandParams'][0x0]['forceValue'],_0x6abc3d=_0x26b79c(_0x5b2313['commandName']),_0x7a689d=_0x1fdbd1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x6abc3d&&_0x3941e1['config']['get']('list.multiBlock')||(_0x7a689d='*Change\x20to:*\x20%0'),_0x166279={'type':'format','content':o(_0x2c765b,_0x7a689d,o(_0x2c765b,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x7a689d='*Indent:*\x20%0',_0x166279={'type':'format','content':o(_0x2c765b,_0x7a689d,o(_0x2c765b,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x7a689d=function(_0x2a78c3){const _0x32f026=_0x2a78c3['getFirstRange']();let _0x7a0e44=_0x32f026['start']['nodeAfter'];for(;_0x7a0e44&&_0x32f026['containsItem'](_0x7a0e44);){if(_0x7a0e44['getAttribute']('listIndent')>0x0)return!0x1;_0x7a0e44=_0x7a0e44['nextSibling'];}return!0x0;}(_0x245ba5)?o(_0x2c765b,'*Format:*\x20remove\x20from\x20%0',o(_0x2c765b,function(_0x40d5da){return'ELEMENT_'+_0x40d5da['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x245ba5))):o(_0x2c765b,'*Outdent:*\x20%0',o(_0x2c765b,'ELEMENT_LIST_ITEM')),_0x166279={'type':'format','content':_0x7a689d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5b2313['multipleBlocks']&&(_0x7a689d='*Merge:*\x20%0',_0x166279={'type':'deletion','content':o(_0x2c765b,_0x7a689d,o(_0x2c765b,'ELEMENT_LIST_ITEM'))});}return _0x166279;});}}function Te(_0x39786a){let _0x5e4bd8=_0x39786a['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5e4bd8;){const _0x99a5fe=_0x5e4bd8['getAttribute']('listItemId');if(!_0x99a5fe)return!0x1;if(_0x99a5fe==_0x39786a['data']['newValue'])return'newValue';if(_0x99a5fe==_0x39786a['data']['oldValue'])return'oldValue';_0x5e4bd8=_0x5e4bd8['previousSibling'];}return!0x1;}class ye extends _0x7145c0{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1629b6=this['editor']['config']['get']('list.properties'),_0x4548c4=this['editor']['plugins']['get']('TrackChangesEditing');_0x1629b6['styles']&&(_0x4548c4['enableDefaultAttributesIntegration']('listStyle'),_0x4548c4['registerBlockAttribute']('listStyle')),_0x1629b6['reversed']&&(_0x4548c4['enableDefaultAttributesIntegration']('listReversed'),_0x4548c4['registerBlockAttribute']('listReversed')),_0x1629b6['startIndex']&&(_0x4548c4['enableDefaultAttributesIntegration']('listStart'),_0x4548c4['registerBlockAttribute']('listStart'));const _0x24dda1={'type':'format','content':''};_0x4548c4['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3f144c=this['editor']['locale'];_0x4548c4['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3f144c,'FORMAT_LIST_REVERSED')),_0x4548c4['descriptionFactory']['registerDescriptionCallback'](_0x3f7212=>{const {data:_0x17a534}=_0x3f7212;if(_0x17a534&&'listReversed'==_0x17a534['key'])return null==_0x17a534['newValue']||0x0==_0x17a534['newValue']&&null==_0x17a534['oldValue']?_0x24dda1:void 0x0;}),_0x4548c4['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3f144c,'FORMAT_LIST_START')),_0x4548c4['descriptionFactory']['registerDescriptionCallback'](_0x49c69e=>{const {data:_0x9cf2af}=_0x49c69e;if(_0x9cf2af&&'listStart'==_0x9cf2af['key'])return null==_0x9cf2af['newValue']||0x1==_0x9cf2af['newValue']&&null==_0x9cf2af['oldValue']?_0x24dda1:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x18ccc4=>{if(_0x18ccc4['batch']['isUndo'])return!0x1;let _0x5a8b93=!0x1;const _0x38292a=_0x4548c4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x79e72b=>{const _0x106ee2=_0x4548c4['_getAttributeKey'](_0x79e72b);return'listStart'==_0x106ee2||'listReversed'==_0x106ee2;});for(const _0x17f0b3 of _0x38292a){const _0x37a847=_0x17f0b3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x37a847||'customNumbered'==_0x37a847)continue;_0x4548c4['_findSuggestions'](_0x17f0b3['getFirstRange'](),'attribute')['find'](_0x42b2a0=>'listType'==_0x4548c4['_getAttributeKey'](_0x42b2a0['suggestion']))||(_0x18ccc4['removeMarker'](_0x17f0b3['getFirstMarker']()),_0x5a8b93=!0x0);}return _0x5a8b93;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2c5c63){const _0x165c30=this['editor']['locale'],{data:_0x7402b}=_0x2c5c63,_0x17693c={'type':'format','content':''};if(!_0x7402b||'listStyle'!=_0x7402b['key'])return;if(!_0x7402b['oldValue'])return'default'==_0x7402b['newValue']?_0x17693c:{'type':'format','content':''+o(_0x165c30,'*Set\x20format:*\x20%0',o(_0x165c30,this['_getTranslationKeyForListStyle'](_0x7402b['newValue'])))};if(!_0x7402b['newValue']){if('default'==_0x7402b['oldValue'])return _0x17693c;let _0x2cc927=_0x2c5c63['head'];for(;_0x2cc927;){if(_0x2cc927['data']&&'listType'==_0x2cc927['data']['key']&&_0x2cc927['data']['newValue'])return _0x17693c;_0x2cc927=_0x2cc927['next'];}return{'type':'format','content':''+o(_0x165c30,'*Remove\x20format:*\x20%0',o(_0x165c30,this['_getTranslationKeyForListStyle'](_0x7402b['oldValue'])))};}if('default'!=_0x7402b['newValue'])return{'type':'format','content':''+o(_0x165c30,'*Set\x20format:*\x20%0',o(_0x165c30,this['_getTranslationKeyForListStyle'](_0x7402b['newValue'])))};let _0x3ee7bf=_0x2c5c63['head'];for(;_0x3ee7bf;){if(_0x3ee7bf['data']&&'listType'==_0x3ee7bf['data']['key']&&_0x3ee7bf['data']['newValue']&&_0x3ee7bf['data']['oldValue'])return _0x17693c;_0x3ee7bf=_0x3ee7bf['next'];}return{'type':'format','content':o(_0x165c30,'*Set\x20format:*\x20%0',o(_0x165c30,'ELEMENT_'+_0x2c5c63['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1f9d19=this['editor'],_0x214412=_0x1f9d19['locale'];_0x1f9d19['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d3ae4=>{if('formatBlock'!=_0x4d3ae4['type'])return;const {data:_0x220389}=_0x4d3ae4;if(!_0x220389)return;let _0xf30274,_0x39fdf5;switch(_0x220389['commandName']){case'listStyle':_0xf30274='*Change\x20to:*\x20%0',_0x39fdf5={'type':'format','content':o(_0x214412,_0xf30274,o(_0x214412,this['_getTranslationKeyForListStyle'](_0x220389['commandParams'][0x0]['type'])))};break;case'listReversed':_0xf30274=_0x220389['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x39fdf5={'type':'format','content':o(_0x214412,_0xf30274)};break;case'listStart':_0xf30274='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x39fdf5={'type':'format','content':o(_0x214412,_0xf30274,_0x220389['commandParams'][0x0]['startIndex'])};}return _0x39fdf5;});}['_getTranslationKeyForListStyle'](_0x11725b){return'ELEMENT_'+function(_0x212191){if(Se['includes'](_0x212191))return'bulleted';if(_e['includes'](_0x212191))return'numbered';return null;}(_0x11725b)['toUpperCase']()+'_LIST_'+_0x11725b['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x7145c0{static get['requires'](){return[_0x54df45];}['init'](){const _0x363e63=this['editor'],_0x59bd42=_0x363e63['plugins']['get']('TrackChangesEditing'),_0x2cd3ae=_0x363e63['commands']['get']('enter');_0x59bd42['enableCommand']('enter',()=>{_0x363e63['model']['change'](_0x14c7bf=>{const _0x42dcac=_0x363e63['model']['document']['selection'],_0x2e885c=_0x42dcac['getFirstPosition'](),_0x157983=_0x3e3f21['fromRange'](_0x42dcac['getFirstRange']());if(_0x2cd3ae['enterBlock'](_0x14c7bf)){const _0x16d324=_0x363e63['model']['createPositionAt'](_0x2e885c['parent']['nextSibling'],0x0),_0x41e70a=_0x14c7bf['createRange'](_0x2e885c,_0x16d324);_0x59bd42['markInsertion'](_0x41e70a);}else _0x14c7bf['setSelection'](_0x14c7bf['createRange'](_0x157983['end']));_0x157983['detach'](),_0x2cd3ae['fire']('afterExecute',{'writer':_0x14c7bf});});}),_0x363e63['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x363e63,'split'),{'priority':'high'}),_0x363e63['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x254043,_0x3eec71,_0x3d05fb)=>{const _0x26001e=_0x3d05fb['mapper']['markerNameToElements'](_0x3eec71['markerName']);if(_0x26001e){for(const _0x28a3e4 of _0x26001e)_0x28a3e4['hasClass']('ck-suggestion-marker-split')&&(_0x3d05fb['mapper']['unbindElementFromMarkerName'](_0x28a3e4,_0x3eec71['markerName']),_0x3d05fb['writer']['remove'](_0x28a3e4));}},{'priority':'high'}),_0x363e63['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x31ff40,_0x360b92,_0x1825b8)=>{_0x1825b8['options']['showSuggestionHighlights']&&Ne(_0x363e63,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x31ff40,_0x360b92,_0x1825b8);},{'priority':'high'});}}class Y extends _0x7145c0{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x386283=this['editor']['plugins']['get']('TrackChangesEditing');_0x386283['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x386283['enableCommand']('findNext'),_0x386283['enableCommand']('findPrevious'),_0x386283['enableCommand']('replace'),_0x386283['enableCommand']('replaceAll');}['handleFindCommand'](_0x24a852,_0x4817ff,_0x21e62b={}){const _0xb857cb=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x24a852(_0x5362b0=>{let _0x454d8b=('string'==typeof _0x4817ff?_0xb857cb['findByTextCallback'](_0x4817ff,_0x21e62b):_0x4817ff)(_0x5362b0);Array['isArray'](_0x454d8b)&&(_0x454d8b={'results':_0x454d8b,'searchText':'string'==typeof _0x4817ff?_0x4817ff:''});const _0x5b1d15=_0x454d8b['results']['filter'](_0xf20319=>!0x1===this['_isInDeletionRange'](_0xf20319,_0x5362b0['item']));return{..._0x454d8b,'results':_0x5b1d15};},_0x21e62b);}['_isInDeletionRange'](_0x2cb7e4,_0x71789f){const _0x228089=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x71789f,_0x2cb7e4['start']),this['editor']['model']['createPositionAt'](_0x71789f,_0x2cb7e4['end']));for(const _0x1aed71 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x228089['getIntersection'](_0x1aed71['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x7145c0{['afterInit'](){const _0x485491=this['editor']['locale'],_0x570b22=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2d619b,commandName:_0x311a30}of ro)this['editor']['plugins']['has'](_0x2d619b)&&(_0x570b22['enableDefaultAttributesIntegration'](_0x311a30),_0x570b22['registerInlineAttribute'](_0x311a30));_0x570b22['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x485491,'FORMAT_FONT_SIZE')),_0x570b22['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x485491,'FORMAT_FONT_FAMILY')),_0x570b22['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x485491,'FORMAT_FONT_COLOR')),_0x570b22['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x485491,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1cfe31=this['editor'],_0x1f581c=_0x1cfe31['locale'];_0x1cfe31['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a7c04=>{const _0x277dc3=_0x1f581c['t'];if('formatInline'!=_0x5a7c04['type'])return;const {data:_0x363812}=_0x5a7c04;if(null!=_0x363812){if('fontSize'==_0x363812['commandName']){const _0x1ada20=_0x363812['commandParams'][0x0]['value'];if(_0x1ada20){const _0x39c1d1=_0x277dc3(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x555db7=>_0x555db7['model']==_0x1ada20)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1f581c,'*Set\x20font\x20size:*\x20%0',_0x39c1d1)};}return{'type':'format','content':o(_0x1f581c,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x363812['commandName']){const _0x3c1be5=_0x363812['commandParams'][0x0]['value'];return _0x3c1be5?{'type':'format','content':o(_0x1f581c,'*Set\x20font\x20family:*\x20%0',_0x3c1be5)}:{'type':'format','content':o(_0x1f581c,'*Reset\x20font\x20family*')};}if('fontColor'==_0x363812['commandName']){const _0x25ae67=_0x363812['commandParams'][0x0]['value'];if(_0x25ae67){const _0x1db865=_0x12a5bf(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4f128d=>_0x4f128d['model']==_0x25ae67);let _0x4e5215=_0x25ae67,_0x2b86c3='';return _0x1db865&&(_0x4e5215=_0x1db865['label'],_0x2b86c3=_0x277dc3(_0x4e5215)['toLowerCase']()),{'type':'format','content':o(_0x1f581c,'*Set\x20font\x20color:*\x20%0',_0x2b86c3)['trim'](),'color':{'value':_0x25ae67,'title':_0x2b86c3||_0x4e5215}};}return{'type':'format','content':o(_0x1f581c,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x363812['commandName']){const _0xc75cf1=_0x363812['commandParams'][0x0]['value'];if(_0xc75cf1){const _0x214267=_0x12a5bf(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4a5cc7=>_0x4a5cc7['model']==_0xc75cf1);let _0x473865=_0xc75cf1,_0x5b23fc='';return _0x214267&&(_0x473865=_0x214267['label'],_0x5b23fc=_0x277dc3(_0x473865)['toLowerCase']()),{'type':'format','content':o(_0x1f581c,'*Set\x20font\x20background\x20color:*\x20%0',_0x5b23fc)['trim'](),'color':{'value':_0xc75cf1,'title':_0x5b23fc||_0x473865}};}return{'type':'format','content':o(_0x1f581c,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x7145c0{['afterInit'](){const _0x34266d=this['editor'],_0x2c6fdb=_0x34266d['plugins']['get']('TrackChangesEditing'),_0x2c3bbd=_0x34266d['commands']['get']('copyFormat'),_0x5bc72b=_0x34266d['commands']['get']('pasteFormat');_0x2c3bbd&&_0x5bc72b&&(_0x2c6fdb['enableDefaultAttributesIntegration']('pasteFormat'),_0x2c6fdb['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x202342=this['editor'],_0x260d85=_0x202342['locale'];_0x202342['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f9136=>{if('formatBlock'!=_0x2f9136['type']&&'formatInline'!=_0x2f9136['type'])return;const {data:_0x5310ed}=_0x2f9136;if(_0x5310ed&&'pasteFormat'===_0x5310ed['commandName']){const _0x9daff6=[],_0x558b22=_0x5310ed['commandParams'][0x0];for(const [_0x120a99,_0x3775ea]of Object['entries'](_0x558b22))_0x9daff6['push'](so(_0x202342,_0x120a99,_0x3775ea));return _0x9daff6['length']?{'type':'format','content':o(_0x260d85,'*Set\x20format\x20to:*\x20%0',_0x9daff6['join'](',\x20'))}:{'type':'format','content':o(_0x260d85,'*Remove\x20all\x20formatting*')};}});}}function so(_0x4880b8,_0x405e11,_0x51e642){const _0x5e082c=_0x4880b8['locale']['t'],_0x209f58=_0x405e11['split'](/(?=[A-Z])/)['join']('\x20'),_0x385a0d=_0x5e082c(_0x209f58['charAt'](0x0)['toUpperCase']()+_0x209f58['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x51e642)return _0x385a0d;if('fontColor'===_0x405e11||'fontBackgroundColor'===_0x405e11){const _0x58ee2b=_0x12a5bf(_0x4880b8['config']['get']('fontColor.colors'))['find'](_0xbdd78d=>_0xbdd78d['model']==_0x51e642);return _0x385a0d+'\x20('+(_0x58ee2b?_0x5e082c(_0x58ee2b['label'])['toLowerCase']():_0x51e642)+')';}if('fontSize'===_0x405e11&&isNaN(parseFloat(_0x51e642))){const _0x5e6ddb=_0x4880b8['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4880b8['config']['get']('fontSize.options'))['find'](_0x3e4fdc=>_0x3e4fdc['model']==_0x51e642);return _0x385a0d+'\x20('+(_0x5e6ddb?_0x5e082c(_0x5e6ddb['title'])['toLowerCase']():_0x51e642)+')';}return _0x385a0d+'\x20('+_0x51e642+')';}class nt extends _0x7145c0{['_headingOptions'];['afterInit'](){const _0x544b8e=this['editor'];if(!_0x544b8e['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x544b8e['config']['get']('heading.options');const _0x188c07=_0x544b8e['locale'],_0x261253=_0x544b8e['plugins']['get']('TrackChangesEditing');_0x261253['enableDefaultAttributesIntegration']('heading');for(const _0x29d0db of this['_headingOptions'])'paragraph'!=_0x29d0db['model']&&_0x261253['descriptionFactory']['registerElementLabel'](_0x29d0db['model'],_0x37448d=>{const _0x2d921d=this['_getHeadingLevel'](_0x29d0db['model']);return null!==_0x2d921d?_0xf1def0(_0x37448d,_0x2d921d):_0x206f4a(_0x37448d,_0x29d0db['title']);});function _0xf1def0(_0xd2b3bd,_0x2ee265){return o(_0x188c07,'ELEMENT_HEADING',[_0xd2b3bd,_0x2ee265]);}function _0x206f4a(_0xadd3de,_0x2e176c){return o(_0x188c07,'ELEMENT_HEADING_CUSTOM',[_0xadd3de,_0x2e176c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e4c31=this['editor'],_0x292844=_0x1e4c31['locale'];function _0x1ee459(_0x5be639,_0x4f17c1){return o(_0x292844,'ELEMENT_HEADING_CUSTOM',[_0x5be639,_0x4f17c1]);}_0x1e4c31['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16dc38=>{if('formatBlock'!=_0x16dc38['type'])return;const {data:_0x3bd7b5}=_0x16dc38;if(_0x3bd7b5&&'heading'==_0x3bd7b5['commandName']){const _0xbad485=_0x3bd7b5['commandParams'][0x0]['value'],_0x159582=this['_getHeadingLevel'](_0xbad485);if(null!==_0x159582)return{'type':'format','content':o(_0x292844,'*Change\x20to:*\x20%0',(_0x370d56=0x1,_0x40c39d=_0x159582,o(_0x292844,'ELEMENT_HEADING',[_0x370d56,_0x40c39d])))};const _0x8616a5=this['_headingOptions']['find'](_0x3bb868=>_0x3bb868['model']===_0xbad485)['title'];return{'type':'format','content':o(_0x292844,'*Change\x20to:*\x20%0',_0x1ee459(0x1,_0x8616a5))};}var _0x370d56,_0x40c39d;});}['_getHeadingLevel'](_0x33699f){const _0x35c76f=_0x33699f['match'](/^heading(\d+)/);if(_0x35c76f)return _0x35c76f[0x1];const _0x224123=this['_headingOptions']?.['find'](_0x2afc3b=>_0x2afc3b['model']==_0x33699f);if(_0x224123&&_0x224123['view']){const _0x89442a=_0x224123['view'],_0x2c78c0=(_0x89442a['name']??_0x89442a)['match'](/^h(\d+)/);if(_0x2c78c0)return _0x2c78c0[0x1];}return null;}}class it extends _0x7145c0{['afterInit'](){const _0x25bc35=this['editor'];if(!_0x25bc35['plugins']['has']('HighlightEditing'))return;const _0x443c54=_0x25bc35['plugins']['get']('TrackChangesEditing'),_0x4b6583=_0x25bc35['locale'];_0x443c54['enableDefaultAttributesIntegration']('highlight'),_0x443c54['registerInlineAttribute']('highlight'),_0x443c54['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4b6583,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4753b6=this['editor'],_0x50aca2=_0x4753b6['locale'];_0x4753b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbddf8f=>{if('formatInline'!=_0xbddf8f['type'])return;const {data:_0x2eddf6}=_0xbddf8f;if(_0x2eddf6&&'highlight'==_0x2eddf6['commandName']){const _0x98615=_0x50aca2['t'],_0x1a6c92=_0x2eddf6['commandParams'][0x0]['value'];if(_0x1a6c92){const _0x3fa7db=_0x4753b6['config']['get']('highlight.options')['find'](_0x5a7262=>_0x5a7262['model']==_0x1a6c92),_0x199a02=_0x98615(_0x3fa7db['title'])['toLowerCase']();return{'type':'format','content':o(_0x50aca2,'*Set\x20highlight:*\x20%0',_0x199a02),'color':{'value':_0x3fa7db['color'],'title':_0x3fa7db['title']}};}return{'type':'format','content':o(_0x50aca2,'*Remove\x20highlight*',o(_0x50aca2,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x7145c0{['afterInit'](){const _0x58c26c=this['editor'];if(!_0x58c26c['plugins']['has']('HorizontalLineEditing'))return;_0x58c26c['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xa87170=_0x58c26c['plugins']['get']('TrackChangesEditing'),_0x11c248=_0x58c26c['locale'];_0xa87170['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2b5daf=>o(_0x11c248,'ELEMENT_HORIZONTAL_LINE',_0x2b5daf)),_0x58c26c['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1a0e8c,{writer:_0xfe2bb,options:_0x2b3fea})=>{if(!_0x2b3fea['showSuggestionHighlights'])return null;const _0x43f8ef=_0xfe2bb['createContainerElement']('div'),_0x14456e=_0xfe2bb['createEmptyElement']('hr');return _0xfe2bb['addClass']('ck-horizontal-line',_0x43f8ef),_0xfe2bb['insert'](_0xfe2bb['createPositionAt'](_0x43f8ef,0x0),_0x14456e),_0x43f8ef;},'converterPriority':'high'});}}class st extends _0x7145c0{['afterInit'](){const _0x29ebca=this['editor'];if(!_0x29ebca['plugins']['has']('HtmlEmbed'))return;const _0x3a37a7=_0x29ebca['plugins']['get']('TrackChangesEditing'),_0x4bb927=_0x29ebca['locale'];_0x3a37a7['descriptionFactory']['registerElementLabel']('rawHtml',_0x4c0a66=>o(_0x4bb927,'ELEMENT_HTML_EMBED',_0x4c0a66)),_0x3a37a7['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3a37a7['registerBlockAttribute']('value'),_0x3a37a7['descriptionFactory']['registerDescriptionCallback'](_0x18cafd=>{if('attribute'!=_0x18cafd['type'])return;const {data:_0x376cca}=_0x18cafd;if(_0x376cca&&'value'==_0x376cca['key']&&_0x18cafd['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x28d33d=o(_0x4bb927,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4bb927,'*Change\x20%0\x20content*',_0x28d33d)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46a0f0=this['editor'],_0x46d60a=_0x46a0f0['locale'];_0x46a0f0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a9694=>{if('formatBlock'!=_0x5a9694['type'])return;const {data:_0x20ec39}=_0x5a9694;if(_0x20ec39&&'htmlEmbed'==_0x20ec39['commandName']){const _0x3e6ccb=o(_0x46d60a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x46d60a,'*Change\x20%0\x20content*',_0x3e6ccb)};}});}}class ot extends _0x7145c0{['afterInit'](){const _0x1bdf87=this['editor'];if(!_0x1bdf87['plugins']['has']('ImageEditing'))return;const _0x4c63e5=_0x1bdf87['plugins']['get']('TrackChangesEditing'),_0x252ddc=_0x1bdf87['plugins']['get']('ImageUtils'),_0x242848=_0x1bdf87['locale'];_0x4c63e5['enableCommand']('insertImage'),_0x4c63e5['descriptionFactory']['registerElementLabel']('imageBlock',_0x225642=>o(_0x242848,'ELEMENT_IMAGE',_0x225642)),_0x4c63e5['descriptionFactory']['registerElementLabel']('imageInline',_0x9b996f=>o(_0x242848,'ELEMENT_INLINE_IMAGE',_0x9b996f)),_0x4c63e5['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x242848,'ELEMENT_CAPTION')),_0x1bdf87['plugins']['has']('ImageUploadEditing')&&_0x4c63e5['enableCommand']('uploadImage'),_0x1bdf87['plugins']['has']('ImageBlockEditing')&&_0x1bdf87['plugins']['has']('ImageInlineEditing')&&(_0x4c63e5['enableCommand']('imageTypeInline',(_0x2b97c7,_0x174ce9)=>{const _0x43a408=_0x252ddc['getClosestSelectedImageElement'](_0x1bdf87['model']['document']['selection']);_0x1bdf87['model']['change'](()=>{_0x4c63e5['markBlockFormat'](_0x43a408,{'commandName':'imageTypeInline','commandParams':[_0x174ce9]},[],'convertBlockImageToInline');});}),_0x4c63e5['enableCommand']('imageTypeBlock',(_0x1b35ba,_0x2a1bbd)=>{_0x1bdf87['model']['change'](_0x1ab955=>{let _0x2db4ec=_0x252ddc['getClosestSelectedImageElement'](_0x1bdf87['model']['document']['selection']),_0x413810=_0x1ab955['createRangeOn'](_0x2db4ec);const _0x2057b4=_0x5ea6f1['fromPosition'](_0x413810['start'],'toPrevious'),_0x2f5f8b=_0x5ea6f1['fromPosition'](_0x413810['end'],'toNext');_0x4c63e5['forceDefaultExecution'](()=>_0x1b35ba(_0x2a1bbd)),_0x2db4ec=_0x252ddc['getClosestSelectedImageElement'](_0x1bdf87['model']['document']['selection']),_0x413810=_0x1ab955['createRangeOn'](_0x2db4ec);const _0x41c042=_0x1ab955['createRange'](_0x2057b4,_0x2f5f8b);_0x2057b4['detach'](),_0x2f5f8b['detach'](),_0x4c63e5['markBlockFormat'](_0x2db4ec,{'commandName':'imageTypeInline','commandParams':[_0x2a1bbd]},[],'convertInlineImageToBlock'),_0x41c042['start']['isBefore'](_0x413810['start'])&&_0x4c63e5['markInsertion'](_0x1ab955['createRange'](_0x41c042['start'],_0x413810['start']),'convertInlineImageToBlock'),_0x413810['end']['isBefore'](_0x41c042['end'])&&_0x4c63e5['markInsertion'](_0x1ab955['createRange'](_0x413810['end'],_0x41c042['end']),'convertInlineImageToBlock');});}),_0x4c63e5['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4c63e5['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4c63e5['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4c63e5['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4c63e5['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4c63e5['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x521e89])=>{const _0x1074c2=_0x4c63e5['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x17f878=_0x521e89['start'],_0x2da993=_0x521e89['end'];const _0x4a655c=_0x1bdf87['model']['schema']['getNearestSelectionRange'](_0x17f878,'backward'),_0x33b8b4=_0x1bdf87['model']['schema']['getNearestSelectionRange'](_0x2da993,'forward');_0x4a655c['isCollapsed']&&(_0x17f878=_0x4a655c['start']),_0x33b8b4['isCollapsed']&&(_0x2da993=_0x33b8b4['end']),_0x1074c2([_0x1bdf87['model']['createRange'](_0x17f878,_0x2da993)]);}),_0x4c63e5['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x156d3c),_0x4c63e5['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x156d3c)),_0x1bdf87['plugins']['has']('ImageCaptionEditing')&&(_0x4c63e5['enableCommand']('toggleImageCaption',(_0x4770e3,_0x49a152)=>{const _0x5c037d=_0x1bdf87['plugins']['get']('ImageCaptionUtils');let _0x3a8a1e=_0x252ddc['getClosestSelectedImageElement'](_0x1bdf87['model']['document']['selection']),_0x4888ca=_0x5c037d['getCaptionFromImageModelElement'](_0x3a8a1e);_0x1bdf87['model']['change'](()=>{if(_0x4888ca)return void _0x4c63e5['markDeletion'](_0x1bdf87['model']['createRangeOn'](_0x4888ca));const _0x43f6ed=_0x252ddc['isBlockImage'](_0x3a8a1e);_0x4770e3(_0x49a152),_0x3a8a1e=_0x252ddc['getClosestSelectedImageElement'](_0x1bdf87['model']['document']['selection']),_0x4888ca=_0x5c037d['getCaptionFromImageModelElement'](_0x3a8a1e),_0x4c63e5['markInsertion'](_0x1bdf87['model']['createRangeOn'](_0x4888ca),_0x43f6ed?null:'imageCaption');});}),_0x4c63e5['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x156d3c));const _0x227d95=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x403376(_0x4cf6a8,_0x269a94){const _0x3516e0=_0x227d95['findIndex'](({type:_0x4e5ac8,subType:_0x3cd5c5})=>_0x4cf6a8['type']==_0x4e5ac8&&_0x4cf6a8['subType']==_0x3cd5c5),_0x3e86ff=_0x227d95['findIndex'](({type:_0x210c8d,subType:_0x51efc8})=>_0x269a94['type']==_0x210c8d&&_0x269a94['subType']==_0x51efc8);if(_0x3516e0<0x0||_0x3e86ff<0x0)return!0x1;const _0x28146f=_0x4cf6a8['getFirstRange'](),_0x424880=_0x269a94['getFirstRange']();if((0x0==_0x3516e0||0x1==_0x3516e0)&&0x2==_0x3e86ff&&_0x28146f['isIntersecting'](_0x424880))return!0x0;if(0x2==_0x3516e0&&0x3==_0x3e86ff){const _0x1aeaba=_0x4c63e5['_findSuggestions'](_0x28146f,'insertion')['filter'](({suggestion:_0xbfb450,meta:_0x1d3a59})=>_0x1d3a59['isOwn']&&'convertInlineImageToBlock'==_0xbfb450['subType']);if(_0x1aeaba['length']>0x1&&_0x424880['end']['isEqual'](_0x28146f['start']))return!0x0;if(0x1==_0x1aeaba['length']&&(_0x28146f['start']['isEqual'](_0x424880['end'])||_0x28146f['end']['isEqual'](_0x424880['start'])))return!0x0;}if(0x3==_0x3516e0&&0x3==_0x3e86ff&&_0x28146f['start']['isBefore'](_0x424880['start'])){const _0x857ca5=_0x28146f['end']['nodeAfter'],_0x46ac0c=_0x424880['start']['nodeBefore'];return _0x252ddc['isBlockImage'](_0x857ca5)&&_0x857ca5===_0x46ac0c;}return!0x1;}function _0x156d3c(_0x5c3c15,_0x107301){return _0x403376(_0x5c3c15,_0x107301)?[_0x5c3c15,_0x107301]:_0x403376(_0x107301,_0x5c3c15)?[_0x107301,_0x5c3c15]:null;}_0x1bdf87['plugins']['has']('ImageResize')&&(_0x4c63e5['enableDefaultAttributesIntegration']('resizeImage'),_0x4c63e5['registerBlockAttribute']('resizedWidth'),_0x4c63e5['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x242848,'FORMAT_IMAGE_SIZE'))),_0x1bdf87['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4c63e5['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4c63e5['registerBlockAttribute']('alt')),_0x4c63e5['descriptionFactory']['registerDescriptionCallback'](_0x361425=>{if(!!_0x227d95['find'](({type:_0x1efc93,subType:_0x141349})=>_0x361425['type']==_0x1efc93&&_0x361425['subType']==_0x141349))return _0x361425['previous']?{}:void 0x0;}),_0x4c63e5['descriptionFactory']['registerDescriptionCallback'](_0x3f6ad3=>{if('insertion'==_0x3f6ad3['type']||'deletion'==_0x3f6ad3['type']){const _0x32bae7=_0x3f6ad3['getContainedElement']();if(_0x32bae7&&_0x32bae7['is']('element','caption'))return{'type':'insertion'==_0x3f6ad3['type']?'addObject':'removeObject','element':_0x32bae7,'quantity':0x1};}}),_0x4c63e5['descriptionFactory']['registerDescriptionCallback'](_0x269338=>'formatBlock'==_0x269338['type']&&'convertInlineImageToBlock'==_0x269338['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x269338['type']&&'convertBlockImageToInline'==_0x269338['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4c63e5['descriptionFactory']['registerDescriptionCallback'](_0x15cff8=>{if('attribute'!=_0x15cff8['type'])return;const {data:_0x4ff445}=_0x15cff8;if(!_0x4ff445||'alt'!=_0x4ff445['key'])return;const _0x5b2f53=_0x4ff445['newValue'];return _0x5b2f53?{'type':'format','content':o(_0x242848,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5b2f53+'\x22')}:{'type':'format','content':o(_0x242848,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4caa4d=this['editor'],_0x2cb815=_0x4caa4d['locale'];_0x4caa4d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47de5f=>{if('formatBlock'!=_0x47de5f['type']&&'formatInline'!=_0x47de5f['type'])return;const {data:_0x113da4}=_0x47de5f;if(_0x113da4){if('imageTextAlternative'==_0x113da4['commandName']){const _0x5de04c=_0x113da4['commandParams'][0x0]['newValue'];return _0x5de04c?{'type':'format','content':o(_0x2cb815,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5de04c+'\x22')}:{'type':'format','content':o(_0x2cb815,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x113da4['commandName']){const _0x144008=_0x113da4['commandParams'][0x0]['width'];return _0x144008?{'type':'format','content':o(_0x2cb815,'*Set\x20image\x20width:*\x20%0',_0x144008)}:{'type':'format','content':o(_0x2cb815,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x7145c0{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x30132e=this['editor']['locale'],_0x41da82=this['editor']['plugins']['get']('TrackChangesEditing');_0x41da82['enableDefaultAttributesIntegration']('replaceImageSource'),_0x41da82['registerBlockAttribute']('src'),_0x41da82['descriptionFactory']['registerDescriptionCallback'](_0x468579=>{if('attribute'!=_0x468579['type'])return;const {data:_0x4f3209}=_0x468579;return _0x4f3209&&'src'==_0x4f3209['key']?_0x4f3209['newValue']&&_0x4f3209['oldValue']?{'type':'format','content':o(_0x30132e,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3e0ea5=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e0ea5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3e0ea5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3e0ea5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3e0ea5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3589f3=this['editor'],_0x177687=_0x3589f3['locale'];_0x3589f3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19a68f=>{if('formatBlock'!=_0x19a68f['type']&&'formatInline'!=_0x19a68f['type'])return;const {data:_0x5e8df9}=_0x19a68f;if(!_0x5e8df9||'replaceImageSource'!=_0x5e8df9['commandName'])return;return{'type':'format','content':o(_0x177687,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x7145c0{['afterInit'](){const _0xc9d5ec=this['editor'];if(!_0xc9d5ec['plugins']['has']('ImageStyleEditing'))return;const _0xf840e1=_0xc9d5ec['plugins']['get']('TrackChangesEditing'),_0x577ae9=_0xc9d5ec['plugins']['get']('ImageUtils'),_0x21467d={};_0xf840e1['enableCommand']('imageStyle',(_0x50b8fb,_0x1a8f83)=>{const _0x20e7bc=_0xc9d5ec['plugins']['get']('Users')['me'],_0x280969=_0xc9d5ec['commands']['get']('imageStyle');let _0xeab063=_0x577ae9['getClosestSelectedImageElement'](_0xc9d5ec['model']['document']['selection']),_0x4c90f5=_0xc9d5ec['model']['createRangeOn'](_0xeab063),_0x162756=_0x280969['value'];if(_0x162756==_0x1a8f83['value'])return;const _0x1b6ef3={'commandName':'imageStyle','commandParams':[_0x1a8f83],'formatGroupId':_0x43bf13()};_0xc9d5ec['model']['change'](()=>{if(_0xf840e1['getSuggestions']()['filter'](_0x1d5fac=>_0x1d5fac['isInContent']&&_0x20e7bc==_0x1d5fac['author']&&('formatBlock'==_0x1d5fac['type']||'formatInline'==_0x1d5fac['type'])&&('imageStylePreApply'==_0x1d5fac['subType']||'imageStylePostApply'==_0x1d5fac['subType'])&&_0x1d5fac['getFirstRange']()['isEqual'](_0x4c90f5))['forEach'](_0x534845=>_0xf840e1['discardSuggestion'](_0x534845['head'])),_0xeab063=_0x577ae9['getClosestSelectedImageElement'](_0xc9d5ec['model']['document']['selection']),_0x4c90f5=_0xc9d5ec['model']['createRangeOn'](_0xeab063),_0x280969['refresh'](),_0xc9d5ec['commands']['get']('imageTypeInline')['refresh'](),_0xc9d5ec['commands']['get']('imageTypeBlock')['refresh'](),_0x162756=_0x280969['value'],_0x162756!=_0x1a8f83['value'])return _0x577ae9['isInlineImage'](_0xeab063)&&_0x280969['shouldConvertImageType'](_0x1a8f83['value'],_0xeab063)?(_0x50b8fb({..._0x1a8f83,'setImageSizes':!0x1}),_0xeab063=_0x577ae9['getClosestSelectedImageElement'](_0xc9d5ec['model']['document']['selection']),void _0xf840e1['markBlockFormat'](_0xeab063,{..._0x1b6ef3,'commandReversedParams':[{'value':_0x162756||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x577ae9['isBlockImage'](_0xeab063)?_0xf840e1['markBlockFormat'](_0xeab063,_0x1b6ef3,[],'imageStylePostApply'):_0xf840e1['markInlineFormat'](_0x4c90f5,_0x1b6ef3,'imageStylePostApply'));});});for(const _0x196ad9 of _0xc9d5ec['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x21467d[_0x196ad9['name']]=_0x196ad9['title']['toLowerCase']();_0xf840e1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xf840e1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xf840e1['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xf840e1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x70bdf2])=>{_0x577ae9['setImageNaturalSizeAttributes'](_0x70bdf2['getContainedElement']());}),_0xf840e1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x394ecc,_0x3f2f95)=>{_0xf840e1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x394ecc,{'commandName':_0x3f2f95['commandName'],'commandParams':_0x3f2f95['commandReversedParams']});}),_0xf840e1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x78b244,_0x1711f9){if(_0x6c9499(_0x78b244,_0x1711f9))return[_0x78b244,_0x1711f9];if(_0x6c9499(_0x1711f9,_0x78b244))return[_0x1711f9,_0x78b244];return null;});const _0xe8cffc=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x6c9499(_0x14eed7,_0x3329a1){const _0x369dbb=_0xe8cffc['findIndex'](({type:_0x45fd8f,subType:_0x1b7a9f})=>_0x14eed7['type']==_0x45fd8f&&_0x14eed7['subType']==_0x1b7a9f),_0x578870=_0xe8cffc['findIndex'](({type:_0x58ca91,subType:_0x59a19e})=>_0x3329a1['type']==_0x58ca91&&_0x3329a1['subType']==_0x59a19e);if(_0x369dbb<0x0||_0x578870<0x0)return!0x1;const _0x1991f4=_0x14eed7['getFirstRange'](),_0x2ddbc3=_0x3329a1['getFirstRange']();if((0x0==_0x369dbb||0x1==_0x369dbb)&&0x2==_0x578870&&_0x1991f4['isIntersecting'](_0x2ddbc3))return!0x0;if(0x2==_0x369dbb&&0x3==_0x578870){const _0x17c65e=_0xf840e1['_findSuggestions'](_0x1991f4,'insertion')['filter'](({suggestion:_0x196ffa,meta:_0x32ba2d})=>_0x32ba2d['isOwn']&&'convertInlineImageToBlock'==_0x196ffa['subType']);if(_0x17c65e['length']>0x1&&_0x2ddbc3['end']['isEqual'](_0x1991f4['start']))return!0x0;if(0x1==_0x17c65e['length']&&(_0x1991f4['start']['isEqual'](_0x2ddbc3['end'])||_0x1991f4['end']['isEqual'](_0x2ddbc3['start'])))return!0x0;}if(0x3==_0x369dbb&&0x3==_0x578870&&_0x1991f4['start']['isBefore'](_0x2ddbc3['start'])){const _0x5b0a09=_0x1991f4['end']['nodeAfter'],_0x2fafe3=_0x2ddbc3['start']['nodeBefore'];return _0x577ae9['isBlockImage'](_0x5b0a09)&&_0x5b0a09===_0x2fafe3;}return!0x1;}_0xc9d5ec['model']['document']['registerPostFixer'](()=>{let _0xc80777=!0x1;const _0x5726bd=Array['from'](_0xc9d5ec['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x46d49d,data:_0x19b0d1}of _0x5726bd){const {group:_0x4448c9,type:_0x28629c,subType:_0x5c4663,id:_0x1d37e5}=_0xf840e1['_splitMarkerName'](_0x46d49d);if('suggestion'==_0x4448c9&&_0xf840e1['hasSuggestion'](_0x1d37e5)){if('formatBlock'==_0x28629c&&('imageStylePreApply'==_0x5c4663||'imageStylePostApply'==_0x5c4663)){const _0x438dcf=_0xf840e1['getSuggestion'](_0x1d37e5);if(_0x19b0d1['newRange']){const _0x55c63c=_0x438dcf['getFirstRange']()['getContainedElement']();if(_0x577ae9['isBlockImage'](_0x55c63c))continue;_0xf840e1['discardSuggestion'](_0x438dcf),_0xc80777=!0x0;}}if('insertion'==_0x28629c&&'imageCaption'==_0x5c4663&&!_0x19b0d1['newRange']){const _0x419c8f=_0xf840e1['getSuggestion'](_0x1d37e5);_0x419c8f['next']&&_0x419c8f['next']['isInContent']&&(_0xf840e1['discardSuggestion'](_0x419c8f['next']),_0xc80777=!0x0);}}}return _0xc80777;}),this['_registerLegacyDescription'](_0x21467d);}['_registerLegacyDescription'](_0x39b1f5){const _0x4c1440=this['editor'],_0x14210f=_0x4c1440['locale'];_0x4c1440['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a9826=>{if('formatBlock'!=_0x3a9826['type']&&'formatInline'!=_0x3a9826['type'])return;const {data:_0x45644a}=_0x3a9826;if(!_0x45644a||'imageStyle'!=_0x45644a['commandName'])return;const _0x561359=_0x45644a['commandParams'][0x0]['value'];return _0x5cd12d('side'===_0x561359?o(_0x14210f,'FORMAT_SIDE_IMAGE'):_0x39b1f5[_0x561359]||_0x561359);function _0x5cd12d(_0x535bfa){return{'type':'format','content':o(_0x14210f,'*Format:*\x20%0',_0x535bfa)};}});}}class ct extends _0x7145c0{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x31a66b){super(_0x31a66b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1150a2=this['editor'],_0x4c6728=_0x1150a2['commands']['get']('importWord'),_0x49834a=_0x1150a2['commands']['get']('trackChanges');_0x4c6728&&(_0x4c6728['on']('execute',(_0x29e917,[,_0x18da00])=>{this['_trackChangesValueDuringImport']=_0x49834a['value'],_0x18da00['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4c6728,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4c6728,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x49834a['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1150a2['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x38477c,_0x57b611){const {suggestions:_0x2bf503}=_0x57b611,_0x5c06d4=this['editor']['commands']['get']('trackChanges'),_0x226165=_0x5c06d4['value'];this['_trackChangesValueDuringImport']!==_0x226165&&(_0x5c06d4['execute'](),this['_trackChangesExecuted']=!0x0),_0x2bf503&&_0x2bf503['forEach'](({id:_0x123fc3,type:_0x379bc4,author:_0x13c3f6,created_at:_0x1e517c})=>{const _0x5b9014={'id':_0x123fc3,'type':_0x379bc4,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x13c3f6,'createdAt':_0x1e517c?new Date(_0x1e517c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5b9014);});}}class ut extends _0x7145c0{['afterInit'](){const _0x40b79a=this['editor'],_0x23134a=_0x40b79a['plugins']['get']('TrackChangesEditing');if(_0x40b79a['plugins']['has']('IndentEditing')&&(_0x23134a['enableCommand']('indent'),_0x23134a['enableCommand']('outdent')),_0x40b79a['plugins']['has']('IndentBlock')){for(const _0x3ab93f of['indentBlock','outdentBlock'])_0x23134a['enableDefaultAttributesIntegration'](_0x3ab93f);}const _0x613ab7=_0x40b79a['locale'];_0x23134a['registerBlockAttribute']('blockIndent'),_0x23134a['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x613ab7,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf06f6=this['editor'],_0x26037e=_0xf06f6['locale'],_0x239abf=_0xf06f6['plugins']['get']('TrackChangesEditing');_0x239abf['descriptionFactory']['registerDescriptionCallback'](_0x30082b=>{if('formatBlock'!=_0x30082b['type'])return;const {data:_0x4a2c56}=_0x30082b;if(!_0x4a2c56)return;if('indentBlock'!=_0x4a2c56['commandName']&&'outdentBlock'!=_0x4a2c56['commandName'])return;const _0x1fb136=_0x30082b['getItems']()[0x0],_0x62b948=_0x239abf['descriptionFactory']['getItemLabel'](_0x1fb136);return'indentBlock'==_0x4a2c56['commandName']?{'type':'format','content':o(_0x26037e,'*Indent:*\x20%0',_0x62b948)}:'outdentBlock'==_0x4a2c56['commandName']?{'type':'format','content':o(_0x26037e,'*Outdent:*\x20%0',_0x62b948)}:void 0x0;});}}class ft extends _0x7145c0{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x7145c0{['afterInit'](){const _0x279e7b=this['editor'];if(!_0x279e7b['plugins']['has']('LinkEditing'))return;const _0x2c23c7=_0x279e7b['plugins']['get']('TrackChangesEditing'),_0x70cb86=_0x279e7b['commands']['get']('link');_0x2c23c7['enableDefaultAttributesIntegration']('link'),_0x2c23c7['enableDefaultAttributesIntegration']('unlink'),_0x2c23c7['registerInlineAttribute']('linkHref');for(const _0x1228b7 of _0x70cb86['manualDecorators'])_0x2c23c7['registerInlineAttribute'](_0x1228b7['id']),_0x2c23c7['descriptionFactory']['registerAttributeLabel'](_0x1228b7['id'],'link\x20('+_0x1228b7['label']['toLowerCase']()+')');_0x2c23c7['descriptionFactory']['registerDescriptionCallback'](_0xb2285a=>{if('attribute'!=_0xb2285a['type'])return;const {data:_0x2146b4}=_0xb2285a;if(!_0x2146b4||'linkHref'!=_0x2146b4['key'])return;const _0x1f01e0=_0x2146b4['newValue'],_0x4a6847=_0x279e7b['locale'];return{'type':'format','content':null==_0x1f01e0?o(_0x4a6847,'*Remove\x20link*'):o(_0x4a6847,'*Set\x20link:*\x20%0','\x22'+_0x1f01e0+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59a682=this['editor'],_0x26b819=_0x59a682['locale'];_0x59a682['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b4a94=>{if('formatInline'!=_0x5b4a94['type'])return;const {data:_0x454a6f}=_0x5b4a94;if(_0x454a6f){if('link'==_0x454a6f['commandName']){const _0x3ce7b3=_0x454a6f['commandParams'][0x0];return{'type':'format','content':o(_0x26b819,'*Set\x20link:*\x20%0','\x22'+_0x3ce7b3+'\x22')};}return'unlink'==_0x454a6f['commandName']?{'type':'format','content':o(_0x26b819,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x7145c0{['afterInit'](){const _0x4e9a72=this['editor'],_0x18690d=_0x4e9a72['locale'];if(!_0x4e9a72['plugins']['has']('LegacyListEditing'))return;const _0x57edb6=_0x4e9a72['plugins']['get']('TrackChangesEditing'),_0x3b5283=_0x4e9a72['plugins']['has']('LegacyTodoListEditing');function _0x5d9743(_0x2d5c80){return()=>{const _0x566fba=_0x4e9a72['model']['document']['selection'],_0x384708=_0x4e9a72['commands']['get'](_0x2d5c80);if(_0x384708['value'])return void _0x4e9a72['execute']('paragraph',{});const _0x57ac31=_0x2d5c80['slice'](0x0,-0x4),_0x4187be=function(_0x326e62,_0x372698,_0x4ac066){let _0x468a48=Array['from'](_0x326e62)['filter'](_0x256811=>function(_0x20ed9c,_0x30ffb8){return _0x30ffb8['checkChild'](_0x20ed9c['parent'],'listItem')&&!_0x30ffb8['isObject'](_0x20ed9c);}(_0x256811,_0x4ac066));_0x468a48=_0x468a48['filter'](_0xe662d2=>!_0xe662d2['is']('element','listItem')||_0xe662d2['getAttribute']('listType')!=_0x372698);const _0x447dab=new Set();for(const _0x28f1cf of _0x468a48)_0x28f1cf['is']('element','listItem')?_0x447dab['add'](Le(_0x28f1cf)):_0x447dab['add'](_0x28f1cf);return Array['from'](_0x447dab);}(_0x566fba['getSelectedBlocks'](),_0x57ac31,_0x4e9a72['model']['schema']);_0x4e9a72['model']['change'](()=>{for(const _0xa8e3a2 of _0x4187be)_0x57edb6['markBlockFormat'](_0xa8e3a2,{'commandName':_0x2d5c80,'commandParams':[{'forceValue':!_0x384708['value']}],'formatGroupId':'blockName'},Ee(_0xa8e3a2));});};}function _0x10a04a(_0x44566c){return()=>{const _0x2c9e13=function(_0xb56100){let _0x3508e8=Array['from'](_0xb56100);const _0x39a2d4=_0x3508e8['findIndex'](_0x1cda04=>'listItem'!=_0x1cda04['name']);return _0x39a2d4>-0x1&&(_0x3508e8=_0x3508e8['slice'](0x0,_0x39a2d4)),_0x3508e8;}(_0x4e9a72['model']['document']['selection']['getSelectedBlocks']()),_0x2abf16=_0x4e9a72['model']['createRange'](_0x4e9a72['model']['createPositionAt'](_0x2c9e13[0x0],'before'),_0x4e9a72['model']['createPositionAt'](_0x2c9e13[_0x2c9e13['length']-0x1],'end'));_0x4e9a72['model']['change'](()=>{_0x57edb6['markBlockFormat'](_0x2abf16,{'commandName':_0x44566c,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5070c0){const _0x42533c=new Set();for(const _0x287edd of _0x5070c0){let _0x3d6290=_0x287edd['nextSibling'];for(;_0x3d6290&&_0x3d6290['getAttribute']('listIndent')>_0x287edd['getAttribute']('listIndent');)_0x42533c['add'](_0x3d6290),_0x3d6290=_0x3d6290['nextSibling'];}return Array['from'](_0x42533c);}(_0x2c9e13));});};}_0x57edb6['enableCommand']('numberedList',_0x5d9743('numberedList')),_0x57edb6['enableCommand']('bulletedList',_0x5d9743('bulletedList')),_0x3b5283&&_0x57edb6['enableCommand']('todoList',_0x5d9743('todoList')),_0x57edb6['enableCommand']('indentList',_0x10a04a('indentList')),_0x57edb6['enableCommand']('outdentList',_0x10a04a('outdentList')),_0x3b5283&&_0x57edb6['enableCommand']('checkTodoList',()=>{const _0x202c16=_0x4e9a72['commands']['get']('checkTodoList'),_0x348f3c=Array['from'](_0x202c16['_selectedElements']);_0x348f3c['filter'](_0x28e143=>_0x28e143['getAttribute']('todoListChecked')!=_0x202c16['value']),_0x4e9a72['model']['change'](()=>{for(const _0x23599e of _0x348f3c)_0x57edb6['markBlockFormat'](_0x23599e,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x202c16['value']}]});});}),_0x57edb6['descriptionFactory']['registerElementLabel']('listItem',_0x4b4455=>o(_0x18690d,'ELEMENT_LIST_ITEM',_0x4b4455)),_0x57edb6['descriptionFactory']['registerDescriptionCallback'](_0x440e4c=>{if('formatBlock'!=_0x440e4c['type']&&'formatInline'!=_0x440e4c['type'])return;const {data:_0x237429}=_0x440e4c;if(_0x237429){if('numberedList'==_0x237429['commandName']||'bulletedList'==_0x237429['commandName']||'todoList'==_0x237429['commandName'])switch(_0x237429['commandName']['replace']('List','')){case'bulleted':return _0x2063a9(o(_0x18690d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2063a9(o(_0x18690d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2063a9(o(_0x18690d,'ELEMENT_TODO_LIST'));}if('indentList'==_0x237429['commandName'])return{'type':'format','content':o(_0x18690d,'*Indent:*\x20%0',o(_0x18690d,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x237429['commandName'])return{'type':'format','content':o(_0x18690d,'*Outdent:*\x20%0',o(_0x18690d,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x237429['commandName'])return _0x237429['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x18690d,'*Check\x20item*')}:{'type':'format','content':o(_0x18690d,'*Uncheck\x20item*')};}function _0x2063a9(_0x1a430b){return{'type':'format','content':o(_0x18690d,'*Change\x20to:*\x20%0',_0x1a430b)};}});}}function Le(_0x47cddd){const _0x12694c=_0x47cddd['getAttribute']('listIndent');if(0x0==_0x12694c)return _0x47cddd;let _0x3c5e1=_0x47cddd;for(;_0x47cddd['previousSibling']&&_0x47cddd['previousSibling']['is']('element','listItem');){const _0xc81c27=_0x47cddd['previousSibling']['getAttribute']('listIndent');if(_0xc81c27==_0x12694c)_0x3c5e1=_0x47cddd['previousSibling'];else{if(_0xc81c27<_0x12694c)break;}_0x47cddd=_0x47cddd['previousSibling'];}return _0x3c5e1;}function Ee(_0x26d895){const _0x5b3774=[];if(_0x26d895['is']('element','listItem')&&_0x26d895['getAttribute']('listIndent')>0x0){let _0x115898=_0x26d895['nextSibling'];for(;_0x115898&&'listItem'==_0x115898['name']&&_0x115898['getAttribute']('listIndent')==_0x26d895['getAttribute']('listIndent');)_0x5b3774['push'](_0x115898),_0x115898=_0x115898['nextSibling'];}return _0x5b3774;}class Q extends _0x7145c0{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1bd187=this['editor']['config']['get']('list.properties'),_0xd266ce=this['editor']['plugins']['get']('TrackChangesEditing');_0x1bd187['styles']&&_0xd266ce['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1bd187['reversed']&&_0xd266ce['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1bd187['startIndex']&&_0xd266ce['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xd266ce['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1bcd50,_0x5dacda={}){const _0x590663=this['editor']['plugins']['get']('TrackChangesEditing'),_0x176768=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x590663['markMultiRangeBlockFormat'](_0x176768,{'commandName':'listStyle','commandParams':[{'type':_0x5dacda['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x489483,_0x53d6fe={}){const _0x3bc143=this['editor']['plugins']['get']('TrackChangesEditing'),_0x95d9c8=this['_getSuggestionBlocks'](_0x3937c0=>_0x3937c0['is']('element','listItem')&&'numbered'===_0x3937c0['getAttribute']('listType'));if(_0x95d9c8['length']<0x1)return;const _0x149689=_0x95d9c8['map'](_0x504bbb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x504bbb,'before'),this['editor']['model']['createPositionAt'](_0x504bbb,0x0)));this['editor']['model']['change'](()=>{_0x3bc143['markMultiRangeBlockFormat'](_0x149689,{'commandName':'listReversed','commandParams':[{'reversed':_0x53d6fe['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x40c1da,_0x21ed95={}){const _0x144ab8=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe7ab91=this['_getSuggestionBlocks'](_0x58c330=>_0x58c330['is']('element','listItem')&&'numbered'===_0x58c330['getAttribute']('listType'));if(_0xe7ab91['length']<0x1)return;const _0x494f81=_0xe7ab91['map'](_0x56dc4e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x56dc4e,'before'),this['editor']['model']['createPositionAt'](_0x56dc4e,0x0)));this['editor']['model']['change'](()=>{_0x144ab8['markMultiRangeBlockFormat'](_0x494f81,{'commandName':'listStart','commandParams':[{'startIndex':_0x21ed95['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x323a30){if('formatBlock'!=_0x323a30['type']&&'formatInline'!=_0x323a30['type'])return;const _0x3952dc=this['editor']['locale'],{data:_0x5df358}=_0x323a30;if(!_0x5df358)return;let _0x9ecee9,_0x27851f;switch(_0x5df358['commandName']){case'listStyle':_0x9ecee9='*Change\x20to:*\x20%0',_0x27851f={'type':'format','content':o(_0x3952dc,_0x9ecee9,o(_0x3952dc,this['_getTranslationKeyForListStyle'](_0x5df358['commandParams'][0x0]['type'])))};break;case'listReversed':_0x9ecee9=_0x5df358['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x27851f={'type':'format','content':o(_0x3952dc,_0x9ecee9)};break;case'listStart':_0x9ecee9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x27851f={'type':'format','content':o(_0x3952dc,_0x9ecee9,_0x5df358['commandParams'][0x0]['startIndex'])};}return _0x27851f;}['_getSuggestionBlocksForListStyle'](){const _0x4eaec4=this['editor']['plugins']['get']('LegacyListUtils');let _0x379454=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x379454[0x0]?.['is']('element','listItem')&&_0x379454['unshift'](..._0x4eaec4['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x379454[_0x379454['length']-0x1]?.['is']('element','listItem')&&_0x379454['push'](..._0x4eaec4['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x379454=[...new Set(_0x379454)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x379454=_0x379454['filter'](_0x57a0ed=>_0x57a0ed['is']('element','listItem'))),_0x379454;}['_getSuggestionBlocks'](_0x380a11){const _0x558eb6=this['editor']['plugins']['get']('LegacyListUtils');let _0x143017=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x380a11)['map'](_0x6c99ad=>{const _0x56f1b4=this['editor']['model']['createPositionAt'](_0x6c99ad,0x0);return[..._0x558eb6['getSiblingNodes'](_0x56f1b4,'backward'),..._0x558eb6['getSiblingNodes'](_0x56f1b4,'forward')];})['flat']();return _0x143017=[...new Set(_0x143017)],_0x143017;}['_getTranslationKeyForListStyle'](_0x567426){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x567426)||'default')['toUpperCase']()+'_LIST_'+_0x567426['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x7145c0{['afterInit'](){const _0x41b440=this['editor'];if(!_0x41b440['plugins']['has']('MediaEmbedEditing'))return;const _0x23a84b=_0x41b440['plugins']['get']('TrackChangesEditing'),_0x47b9a7=_0x41b440['locale'];_0x23a84b['enableCommand']('mediaEmbed'),_0x23a84b['descriptionFactory']['registerElementLabel']('media',_0x5b2974=>o(_0x47b9a7,'ELEMENT_MEDIA',_0x5b2974)),_0x41b440['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4341b4,{writer:_0x136b24,options:_0x12a6f8})=>{if(_0x12a6f8['showSuggestionHighlights'])return _0x136b24['createEmptyElement']('div');},'converterPriority':'high'}),_0x41b440['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3111ea,_0x5473c8,_0x29b3da)=>{_0x29b3da['options']['showSuggestionHighlights']&&_0x3111ea['stop']();},{'priority':'high'});}}class mt extends _0x7145c0{['afterInit'](){const _0x592d93=this['editor'];_0x592d93['plugins']['has']('MentionEditing')&&_0x592d93['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x7145c0{['afterInit'](){const _0x5307bb=this['editor'];if(!_0x5307bb['plugins']['has']('MergeFieldsEditing'))return;_0x5307bb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x5307bb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x24c5cd=_0x5307bb['plugins']['get']('TrackChangesEditing'),_0x52248e=_0x5307bb['locale'];_0x24c5cd['descriptionFactory']['registerElementLabel']('mergeField',_0x49d125=>o(_0x52248e,'ELEMENT_MERGE_FIELD',_0x49d125)),_0x24c5cd['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2646dc=>o(_0x52248e,'ELEMENT_MERGE_FIELD',_0x2646dc)),_0x24c5cd['descriptionFactory']['registerDescriptionCallback'](_0x51b840=>{if('insertion'!=_0x51b840['type']&&'deletion'!=_0x51b840['type'])return;const _0xb092d3=_0x51b840['getContainedElement']();if(null==_0xb092d3)return;if(!_0xb092d3['is']('element','mergeField')&&!_0xb092d3['is']('element','mergeFieldBlock'))return;const _0x47571b=_0x5307bb['plugins']['get']('MergeFieldsEditing')['getLabel'](_0xb092d3['getAttribute']('id'));return'insertion'==_0x51b840['type']?{'type':'insertion','content':o(_0x52248e,'*Insert:*\x20%0','\x22'+_0x47571b+'\x22\x20'+o(_0x52248e,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x52248e,'*Remove:*\x20%0','\x22'+_0x47571b+'\x22\x20'+o(_0x52248e,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x7145c0{['afterInit'](){const _0xe47c7b=this['editor'],_0x37df6=_0xe47c7b['plugins']['get']('TrackChangesEditing');_0xe47c7b['plugins']['has']('MultiLevelList')&&(_0x37df6['enableDefaultAttributesIntegration']('multiLevelList'),_0x37df6['registerBlockAttribute']('listMarkerStyle'),_0x37df6['descriptionFactory']['registerDescriptionCallback'](_0x94c85f=>this['handleDescriptions'](_0x94c85f)));}['handleDescriptions'](_0x47af4b){const _0x271d56=this['editor']['locale'],{data:_0x18a83c}=_0x47af4b,_0x48b6d4={'type':'format','content':''};if(_0x18a83c&&'listMarkerStyle'==_0x18a83c['key']){if(!_0x18a83c['oldValue'])return{'type':'format','content':o(_0x271d56,'*Set\x20format:*\x20%0',o(_0x271d56,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x18a83c['newValue']+')'};if(!_0x18a83c['newValue']){let _0x53593d=_0x47af4b['head'];for(;_0x53593d;){if(_0x53593d['data']&&'listType'==_0x53593d['data']['key']&&_0x53593d['data']['newValue'])return _0x48b6d4;_0x53593d=_0x53593d['next'];}return{'type':'format','content':o(_0x271d56,'*Remove\x20format:*\x20%0',o(_0x271d56,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x18a83c['oldValue']+')'};}}}}class kt extends _0x7145c0{['afterInit'](){const _0x2d4d90=this['editor'];if(!_0x2d4d90['plugins']['has']('PageBreakEditing'))return;_0x2d4d90['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x430734=_0x2d4d90['plugins']['get']('TrackChangesEditing'),_0x3101b9=_0x2d4d90['locale'];_0x430734['descriptionFactory']['registerElementLabel']('pageBreak',_0x202d03=>o(_0x3101b9,'ELEMENT_PAGE_BREAK',_0x202d03));}}class bt extends _0x7145c0{['afterInit'](){const _0x45de56=this['editor'];if(!_0x45de56['plugins']['has']('Paragraph'))return;const _0x202c18=_0x45de56['locale'],_0xea6c66=_0x45de56['plugins']['get']('TrackChangesEditing');_0xea6c66['descriptionFactory']['registerElementLabel']('paragraph',_0x16f00d=>o(_0x202c18,'ELEMENT_PARAGRAPH',_0x16f00d)),_0xea6c66['enableDefaultAttributesIntegration']('paragraph'),_0xea6c66['enableCommand']('insertParagraph'),_0x45de56['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x45de56),{'priority':'highest'}),_0x45de56['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1aca82,_0x18ad2b,_0x18369b)=>{_0x18369b['options']['showSuggestionHighlights']&&nr(_0x45de56,{'showActiveMarker':!0x1})(_0x1aca82,_0x18ad2b,_0x18369b);},{'priority':'highest'});const _0x388b62=_0xea6c66['descriptionFactory'];_0x388b62['registerDescriptionCallback'](_0x2ef913=>{if('insertion'!==_0x2ef913['type'])return;const {start:_0x175959,end:_0x3e2b7f}=_0x2ef913['getFirstRange']();if(!_0x175959['isTouching'](_0x3e2b7f)||!_0x175959['nodeAfter'])return;const _0x4b42ca=_0x45de56['model']['schema'],_0x241e04=_0x175959['nodeAfter'];return _0x4b42ca['isBlock'](_0x241e04)&&!_0x4b42ca['isLimit'](_0x241e04)&&_0x4b42ca['checkChild'](_0x241e04,'$text')?{'type':'insertion','content':o(_0x202c18,'*Insert:*\x20%0',_0x388b62['getItemLabel'](_0x241e04,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x810edd=this['editor'],_0x4cc96d=_0x810edd['locale'];_0x810edd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31bed2=>{if('formatBlock'!=_0x31bed2['type'])return;const {data:_0x5696ef}=_0x31bed2;return _0x5696ef&&'paragraph'==_0x5696ef['commandName']?{'type':'format','content':o(_0x4cc96d,'*Change\x20to:*\x20%0',o(_0x4cc96d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2a6fae,{showActiveMarker:_0x5cd55e=!0x0}={}){return(_0x2ab8a3,_0x3cdc00,_0x26c1a0)=>{const _0x21037b=_0x2a6fae['plugins']['get']('TrackChangesEditing'),_0x5bbcf9=_0x3cdc00['markerRange']['start'],_0x4b8933=_0x3cdc00['markerRange']['end'],_0x29b419=_0x2a6fae['model']['schema'];if(!_0x5bbcf9['isTouching'](_0x4b8933)||!_0x5bbcf9['nodeAfter'])return;const _0xb52a6e=_0x5bbcf9['nodeAfter'];if(_0x29b419['isBlock'](_0xb52a6e)&&!_0x29b419['isLimit'](_0xb52a6e)&&_0x29b419['checkChild'](_0xb52a6e,'$text')){if(!_0x26c1a0['consumable']['consume'](_0x3cdc00['markerRange'],_0x2ab8a3['name']))return;const {authorId:_0x1675ad}=_0x21037b['_splitMarkerName'](_0x3cdc00['markerName']),_0x487e86=_0x26c1a0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x1675ad}),_0x200af9=_0x26c1a0['mapper']['toViewPosition'](_0x4b8933);_0x5cd55e&&_0x21037b['activeMarkers']['includes'](_0x3cdc00['markerName'])&&_0x26c1a0['writer']['addClass']('ck-suggestion-marker--active',_0x487e86),_0x26c1a0['writer']['insert'](_0x200af9,_0x487e86),_0x26c1a0['mapper']['bindElementToMarker'](_0x487e86,_0x3cdc00['markerName']);}};}class yt extends _0x7145c0{['afterInit'](){const _0x2bd29b=this['editor'];if(!_0x2bd29b['plugins']['has']('RemoveFormatEditing'))return;_0x2bd29b['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21fb8c=this['editor'];_0x21fb8c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b4e69=>{if('formatBlock'!=_0x3b4e69['type']&&'formatInline'!=_0x3b4e69['type'])return;const {data:_0x20eb61}=_0x3b4e69;return _0x20eb61&&'removeFormat'==_0x20eb61['commandName']?{'type':'format','content':o(_0x21fb8c['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x7145c0{['afterInit'](){const _0x20c59b=this['editor'];if(!_0x20c59b['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x15a0b7=_0x20c59b['plugins']['get']('TrackChangesEditing');_0x15a0b7['enableCommand']('goToPreviousRestrictedEditingException'),_0x15a0b7['enableCommand']('goToNextRestrictedEditingException');const _0x65c1b2=_0x20c59b['plugins']['get']('RestrictedEditingModeEditing');_0x65c1b2['enableCommand']('trackChanges'),_0x65c1b2['enableCommand']('acceptSuggestion'),_0x65c1b2['enableCommand']('discardSuggestion'),_0x65c1b2['enableCommand']('acceptAllSuggestions'),_0x65c1b2['enableCommand']('discardAllSuggestions'),_0x65c1b2['enableCommand']('acceptSelectedSuggestions'),_0x65c1b2['enableCommand']('discardSelectedSuggestions');}}class St extends _0x7145c0{static get['requires'](){return[_0x518d6c];}['init'](){const _0x4c123d=this['editor'],_0x334e6a=_0x4c123d['plugins']['get']('TrackChangesEditing');_0x334e6a['enableCommand']('shiftEnter'),_0x4c123d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x4c123d),{'priority':'high'}),_0x4c123d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x4c123d),{'priority':'high'}),_0x4c123d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x130e1b,_0xf59ee2,_0x1a6537)=>{_0x1a6537['options']['showSuggestionHighlights']&&ke(_0x4c123d,{'showActiveMarker':!0x1})(_0x130e1b,_0xf59ee2,_0x1a6537);}),_0x334e6a['descriptionFactory']['registerElementLabel']('softBreak',_0x16831f=>o(_0x4c123d['locale'],'ELEMENT_LINE_BREAK',_0x16831f));}}function ke(_0x563752,{showActiveMarker:_0x185021=!0x0}={}){return(_0x1e9dcc,_0x171276,_0xa18fc5)=>{const _0x119e88=_0x563752['plugins']['get']('TrackChangesEditing');if(!_0xa18fc5['consumable']['test'](_0x171276['markerRange'],_0x1e9dcc['name']))return;const _0x5c597d=_0x563752['model'];for(const _0xf6cfa of _0x171276['markerRange']['getItems']()){if(!_0xf6cfa['is']('element','softBreak'))continue;const _0x9f4156='deletion'==_0x171276['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x2f8874}=_0x119e88['_splitMarkerName'](_0x171276['markerName']),_0x2c677c=_0xa18fc5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x9f4156,'data-author-id':_0x2f8874}),_0x5d8a62=_0xa18fc5['mapper']['toViewPosition'](_0x5c597d['createPositionBefore'](_0xf6cfa));_0x185021&&_0x119e88['activeMarkers']['includes'](_0x171276['markerName'])&&_0xa18fc5['writer']['addClass']('ck-suggestion-marker--active',_0x2c677c),_0xa18fc5['writer']['insert'](_0x5d8a62,_0x2c677c),_0xa18fc5['mapper']['bindElementToMarker'](_0x2c677c,_0x171276['markerName']);}};}class At extends _0x7145c0{['afterInit'](){const _0x375339=this['editor'],_0xf9f7f5=_0x375339['model'],_0x387ad3=_0x375339['locale'];if(!_0x375339['plugins']['has']('StandardEditingModeEditing'))return;const _0x5dda16=_0x375339['plugins']['get']('TrackChangesEditing'),_0x41ac14='restrictedEditingException',_0x21d54=_0x375339['commands']['get'](_0x41ac14);_0x5dda16['enableCommand'](_0x41ac14,(_0xff9acc,_0x145cba={})=>{const _0x3f42f0=_0xf9f7f5['document']['selection'];if(_0x3f42f0['isCollapsed'])return void _0xff9acc(_0x145cba);const _0x4b315a=void 0x0!==_0x145cba['forceValue']?_0x145cba['forceValue']:!_0x21d54['value'];_0xf9f7f5['change'](()=>{const _0x14d903=Array['from'](_0x3f42f0['getRanges']());for(const _0x49aaf3 of _0x14d903){const _0x5e45ff=_0x4b315a?[_0x49aaf3]:io(_0x41ac14,_0x49aaf3,_0xf9f7f5);for(const _0x56f5c1 of _0x5e45ff)_0x5dda16['markInlineFormat'](_0x56f5c1,{'commandName':_0x41ac14,'commandParams':[{'forceValue':_0x4b315a}]});}});}),_0x5dda16['descriptionFactory']['registerDescriptionCallback'](_0x3b9af2=>{if('formatBlock'!=_0x3b9af2['type']&&'formatInline'!=_0x3b9af2['type'])return;const {data:_0x1d6f90}=_0x3b9af2;return _0x1d6f90&&_0x1d6f90['commandName']==_0x41ac14?_0x1d6f90['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x387ad3,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x387ad3,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x7145c0{['afterInit'](){const _0x500ac4=this['editor'];if(!_0x500ac4['plugins']['has']('Style')||!_0x500ac4['plugins']['has']('DataSchema'))return;const _0x560725=_0x500ac4['plugins']['get']('TrackChangesEditing'),_0xb84514=_0x500ac4['locale'],_0x109202=_0x500ac4['config']['get']('style')||{},_0x4ac143=_0x500ac4['plugins']['get']('GeneralHtmlSupport'),_0x28cb1a=_0x500ac4['plugins']['get']('StyleUtils')['normalizeConfig'](_0x500ac4['plugins']['get']('DataSchema'),_0x109202['definitions']);_0x560725['enableDefaultAttributesIntegration']('style');const _0x51ca5f=new Set();for(const _0x2da88e of _0x28cb1a['block']){const _0x26ee5d=_0x4ac143['getGhsAttributeNameForElement'](_0x2da88e['element']);_0x51ca5f['add'](_0x26ee5d);}const _0x15d4db=new Set();for(const _0xf71a7d of _0x28cb1a['inline']){const _0x379fcf=_0x4ac143['getGhsAttributeNameForElement'](_0xf71a7d['element']);_0x15d4db['add'](_0x379fcf);for(const _0x35732b of _0xf71a7d['ghsAttributes'])_0x15d4db['add'](_0x35732b);}for(const _0x31ed92 of _0x51ca5f)_0x560725['registerBlockAttribute'](_0x31ed92),_0x560725['descriptionFactory']['registerAttributeLabel'](_0x31ed92,o(_0xb84514,'FORMAT_STYLE'));for(const _0x2a7054 of _0x15d4db)_0x560725['registerInlineAttribute'](_0x2a7054),_0x560725['descriptionFactory']['registerAttributeLabel'](_0x2a7054,o(_0xb84514,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10638f=this['editor'],_0x3495cd=_0x10638f['locale'];_0x10638f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x502d74=>{if('formatBlock'!=_0x502d74['type']&&'formatInline'!=_0x502d74['type'])return;const {data:_0x4c03e2}=_0x502d74;return _0x4c03e2&&'style'===_0x4c03e2['commandName']?_0x4c03e2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3495cd,'*Set\x20format:*\x20%0',_0x4c03e2['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3495cd,'*Remove\x20format:*\x20%0',_0x4c03e2['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x7145c0{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x263a24){super(_0x263a24),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x248b2f=this['editor'],_0x519114=_0x248b2f['model']['document']['selection'];if(!_0x248b2f['plugins']['has']('TableEditing'))return;const _0x4b5108=_0x248b2f['locale'],_0x400ea4=_0x248b2f['plugins']['get']('TrackChangesEditing'),_0x43a1f8=_0x248b2f['plugins']['get']('TableUtils');_0x400ea4['descriptionFactory']['registerElementLabel']('table',_0x1113f6=>o(_0x4b5108,'ELEMENT_TABLE',_0x1113f6)),this['_setupColumnsRowsFixing'](),_0x400ea4['enableCommand']('insertTable'),_0x400ea4['enableCommand']('selectTableRow'),_0x400ea4['enableCommand']('selectTableColumn');for(const _0x2bb618 of['insertTableRowAbove','insertTableRowBelow']){const _0x351b2f=_0x248b2f['commands']['get'](_0x2bb618);_0x400ea4['enableCommand'](_0x2bb618,_0x14482d=>{_0x248b2f['model']['change'](_0x1663de=>{_0x14482d();const _0x12f82f='above'===_0x351b2f['order'],_0x3e6a4d=_0x43a1f8['getSelectionAffectedTableCells'](_0x519114),_0x2552f9=_0x43a1f8['getRowIndexes'](_0x3e6a4d),_0x2039d8=_0x12f82f?_0x2552f9['first']-0x1:_0x2552f9['last']+0x1,_0x154fab=_0x3e6a4d[0x0]['findAncestor']('table'),_0x27b11a=_0x43a1f8['createTableWalker'](_0x154fab,{'startRow':_0x2039d8,'endRow':_0x2039d8}),_0x420f9=Array['from'](_0x27b11a)['map'](_0x465919=>_0x1663de['createRangeOn'](_0x465919['cell']));_0x400ea4['markMultiRangeInsertion'](_0x420f9,'tableRow');});});}for(const _0x15a094 of['insertTableColumnLeft','insertTableColumnRight']){const _0x44c97d=_0x248b2f['commands']['get'](_0x15a094);_0x400ea4['enableCommand'](_0x15a094,_0x13026b=>{_0x248b2f['model']['change'](_0x523534=>{_0x13026b();const _0x316b54='left'===_0x44c97d['order'],_0x4349ca=_0x43a1f8['getSelectionAffectedTableCells'](_0x519114),_0x4c357c=_0x43a1f8['getColumnIndexes'](_0x4349ca),_0x4c611a=_0x316b54?_0x4c357c['first']-0x1:_0x4c357c['last']+0x1,_0x1985fd=_0x4349ca[0x0]['findAncestor']('table'),_0x5bdb8f=_0x43a1f8['createTableWalker'](_0x1985fd,{'startRow':0x0,'column':_0x4c611a,'includeAllSlots':!0x1}),_0x11b481=Array['from'](_0x5bdb8f)['map'](_0x26e7f1=>_0x523534['createRangeOn'](_0x26e7f1['cell']));_0x400ea4['markMultiRangeInsertion'](_0x11b481,'tableColumn');});});}for(const _0x13a099 of['removeTableRow','removeTableColumn']){const _0x26944e=_0x13a099['substr'](0xb),_0x1d838c=_0x26944e['toLowerCase'](),_0x3e5359=_0x1d838c['substr'](0x0,0x3)+'span',_0x15f794='table'+_0x26944e,_0x5c24f1='min'+_0x26944e,_0x3502bb='max'+_0x26944e;_0x400ea4['enableCommand'](_0x13a099,()=>{_0x248b2f['model']['change'](_0x3e8990=>{const _0x490c09=_0x43a1f8['getSelectionAffectedTableCells'](_0x519114),_0x1390b3=_0x490c09[0x0]['findAncestor']('table');let _0x3aa2a7;if('removeTableRow'==_0x13a099){const _0x5f48bb=_0x43a1f8['getRowIndexes'](_0x490c09);_0x3aa2a7={'startRow':_0x5f48bb['first'],'endRow':_0x5f48bb['last'],'includeAllSlots':!0x0};}else{const _0x307eae=_0x43a1f8['getColumnIndexes'](_0x490c09);_0x3aa2a7={'startColumn':_0x307eae['first'],'endColumn':_0x307eae['last'],'includeAllSlots':!0x0};}const _0x4d4208=_0x43a1f8['createTableWalker'](_0x1390b3,_0x3aa2a7),_0x3d2c50=Array['from'](_0x4d4208)['map'](({cell:_0x2fc4b8})=>_0x2fc4b8),_0x3c7ecd=Re(_0x3d2c50['filter'](_0x2666c8=>_0x2666c8['hasAttribute'](_0x3e5359))),_0x4fbd03=Re(_0x3d2c50['filter'](_0x2c7551=>!_0x2c7551['hasAttribute'](_0x3e5359)))['map'](_0x1848c7=>_0x3e8990['createRangeOn'](_0x1848c7)),_0x5c9e29=_0x400ea4['markMultiRangeDeletion'](_0x4fbd03,_0x15f794);if(_0x5c9e29&&('tableRow'==_0x5c9e29['subType']||'tableColumn'==_0x5c9e29['subType'])){const _0x5173e4=this['_getSuggestionCoords'](_0x5c9e29);for(const _0x4ebfc4 of _0x3c7ecd){const _0x4c1f41=_0x3e8990['createRangeOn'](_0x4ebfc4),_0x1ec37a=_0x43a1f8['getCellLocation'](_0x4ebfc4),_0x71de2e=_0x4ebfc4['getAttribute'](_0x3e5359)-0x1,_0xd6d4eb=_0x5173e4[_0x5c24f1],_0x308a21=_0x5173e4[_0x3502bb];_0xd6d4eb<=_0x1ec37a[_0x1d838c]&&_0x1ec37a[_0x1d838c]+_0x71de2e<=_0x308a21&&_0x5c9e29['addRange'](_0x4c1f41);}}});});}function _0x4dc014(_0x1da830){const _0xbc8e0d=Array['from'](_0x519114['getRanges']())['map'](_0x1aefdb=>_0x3e3f21['fromRange'](_0x1aefdb));_0x248b2f['model']['change'](_0x4cf031=>{const _0x196c92=_0x4cf031['batch'];_0x1da830=_0x1da830['filter'](_0x198445=>'$graveyard'!=_0x198445['root']['rootName']),_0x4cf031['setSelection'](_0x1da830),_0x248b2f['commands']['get']('removeTableRow')['refresh'](),_0x248b2f['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x248b2f['model']['enqueueChange'](()=>{_0x248b2f['model']['enqueueChange'](_0x196c92,_0x2d47ec=>{const _0x3718c0=_0xbc8e0d['filter'](_0x41a900=>'$graveyard'!=_0x41a900['root']['rootName']);_0x3718c0['length']>0x0&&_0x2d47ec['setSelection'](_0x3718c0);for(const _0x100c78 of _0xbc8e0d)_0x100c78['detach']();});});});}function _0x261964(_0x4ff6d4){_0x248b2f['model']['change'](_0x4b55ee=>{const _0x38330e=Array['from'](_0x519114['getRanges']())['map'](_0x35101a=>_0x3e3f21['fromRange'](_0x35101a)),_0x4daa52=[];for(const _0x194201 of _0x4ff6d4)for(const _0x5b040e of _0x194201['getItems']({'shallow':!0x0}))_0x4daa52['push'](_0x5b040e);for(const _0x564de3 of _0x4daa52)'$graveyard'!=_0x564de3['root']['rootName']&&(_0x4b55ee['setSelection'](_0x4b55ee['createPositionAt'](_0x564de3,0x0)),_0x248b2f['commands']['get']('removeTableColumn')['refresh'](),_0x248b2f['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1ea71b=_0x38330e['filter'](_0x477bf4=>'$graveyard'!=_0x477bf4['root']['rootName']);_0x1ea71b['length']>0x0&&_0x4b55ee['setSelection'](_0x1ea71b);for(const _0x1c6504 of _0x38330e)_0x1c6504['detach']();});}function _0xcbc1d6(_0x1ecf7b,_0x31aeea){return _0x31aeea['every'](_0x22f34b=>_0x1ecf7b['some'](_0x5bc890=>_0x5bc890['end']['isEqual'](_0x22f34b['start'])||_0x22f34b['end']['isEqual'](_0x5bc890['start'])));}function _0x2e2684(_0x49b813,_0x37ad3a){return!_0x49b813['some'](_0x217cf6=>_0x37ad3a['some'](_0x1cee25=>_0x217cf6['isIntersecting'](_0x1cee25)))&&_0x49b813['some'](_0x366dcc=>_0x37ad3a['some'](_0x7fbb14=>_0x366dcc['end']['isTouching'](_0x7fbb14['start'])));}_0x248b2f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3387e2,_0x224fe3,_0x1891b9)=>{if(!_0x1891b9['options']['showSuggestionHighlights'])return;const _0x4759d5=_0x224fe3['item'];if(!_0x4759d5)return;const _0x16359e=_0x1891b9['mapper']['toViewElement'](_0x4759d5);function _0x266494(_0x3fefe4){return Array['isArray'](_0x3fefe4)?_0x3fefe4:[_0x3fefe4];}_0x16359e&&'tableCell'===_0x4759d5['name']&&_0x3f8953(_0x16359e,_0x1891b9['writer'],(_0x3863e7,_0x1e2372,_0x6393c8)=>_0x6393c8['addClass'](_0x266494(_0x1e2372['classes']),_0x3863e7),(_0x3493b7,_0x50475e,_0x1a0c33)=>_0x1a0c33['removeClass'](_0x266494(_0x50475e['classes']),_0x3493b7));},{'priority':'highest'}),_0x400ea4['descriptionFactory']['registerDescriptionCallback'](_0x30378d=>{if('insertion'!=_0x30378d['type']&&'deletion'!=_0x30378d['type'])return;const _0x3d901e=_0x30378d['getContainedElement']();if(null!=_0x3d901e&&_0x3d901e['is']('element','table')){if('insertion'==_0x30378d['type']){const _0x56905a=_0x30378d['getItems']()['filter'](_0x504a3f=>_0x504a3f['is']('$textProxy'))['map'](_0x1949a5=>_0x1949a5['data']);if(_0x56905a['length'])return{'type':'insertion','content':o(_0x4b5108,'*Insert:*\x20%0',o(_0x4b5108,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x56905a['join']('\x20')+'\x22'))};}if('deletion'==_0x30378d['type']){const _0x368884=_0x30378d['getItems']()['filter'](_0x47960c=>_0x47960c['is']('$textProxy'))['map'](_0x54ddde=>_0x54ddde['data']);if(_0x368884['length'])return{'type':'deletion','content':o(_0x4b5108,'*Remove:*\x20%0',o(_0x4b5108,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x368884['join']('\x20')+'\x22'))};}}}),_0x400ea4['descriptionFactory']['registerDescriptionCallback'](_0x3f20a9=>{if('tableRow'==_0x3f20a9['subType']){const _0x1481d5=_0x3f20a9['getItems']()['filter'](_0x390a50=>_0x390a50['is']('$textProxy'))['map'](_0x4f3a5d=>_0x4f3a5d['data']),_0x4a45e2=this['_getSuggestionCoords'](_0x3f20a9),_0x1cdbd0=_0x4a45e2['maxRow']-_0x4a45e2['minRow']+0x1;if('insertion'==_0x3f20a9['type'])return _0x1481d5['length']?{'type':'insertion','content':o(_0x4b5108,'*Insert:*\x20%0',o(_0x4b5108,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1cdbd0,'\x22'+_0x1481d5['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4b5108,'*Insert:*\x20%0',o(_0x4b5108,'ELEMENT_TABLE_ROW',_0x1cdbd0))};if('deletion'==_0x3f20a9['type'])return _0x1481d5['length']?{'type':'deletion','content':o(_0x4b5108,'*Remove:*\x20%0',o(_0x4b5108,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1cdbd0,'\x22'+_0x1481d5['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4b5108,'*Remove:*\x20%0',o(_0x4b5108,'ELEMENT_TABLE_ROW',_0x1cdbd0))};}if('tableColumn'==_0x3f20a9['subType']){const _0xa9d0d9=_0x3f20a9['getItems']()['filter'](_0x304ffe=>_0x304ffe['is']('$textProxy'))['map'](_0x27579d=>_0x27579d['data']),_0x2f1cc3=this['_getSuggestionCoords'](_0x3f20a9),_0x41651b=_0x2f1cc3['maxColumn']-_0x2f1cc3['minColumn']+0x1;if('insertion'==_0x3f20a9['type'])return _0xa9d0d9['length']?{'type':'insertion','content':o(_0x4b5108,'*Insert:*\x20%0',o(_0x4b5108,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x41651b,'\x22'+_0xa9d0d9['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4b5108,'*Insert:*\x20%0',o(_0x4b5108,'ELEMENT_TABLE_COLUMN',_0x41651b))};if('deletion'==_0x3f20a9['type'])return _0xa9d0d9['length']?{'type':'deletion','content':o(_0x4b5108,'*Remove:*\x20%0',o(_0x4b5108,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x41651b,'\x22'+_0xa9d0d9['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4b5108,'*Remove:*\x20%0',o(_0x4b5108,'ELEMENT_TABLE_COLUMN',_0x41651b))};}}),_0x400ea4['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4dc014),_0x400ea4['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4dc014),_0x400ea4['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x261964),_0x400ea4['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x261964),_0x400ea4['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xcbc1d6),_0x400ea4['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xcbc1d6),_0x400ea4['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2e2684),_0x400ea4['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2e2684);}['_acceptFormatSuggestionCallbackFactory'](){const _0x89a76c=this['editor'],_0x535291=_0x89a76c['model']['document']['selection'];return(_0x102935,_0x18f991)=>{_0x89a76c['model']['change'](_0x181b92=>{const {commandName:_0xab4d42,commandParams:_0x86bb86}=_0x18f991;let _0x4efeed=_0x102935[0x0]['end']['nodeBefore'];_0x86bb86&&_0x86bb86[0x0]&&!0x1===_0x86bb86[0x0]['forceValue']&&(_0x4efeed=_0x102935[0x0]['start']['nodeAfter']);const _0x552767=_0x181b92['createRangeIn'](_0x4efeed);if('$graveyard'==_0x552767['root']['rootName'])return;const _0x254ab0=Array['from'](_0x535291['getRanges']())['map'](_0x74f026=>_0x3e3f21['fromRange'](_0x74f026));_0x181b92['setSelection'](_0x552767),_0x89a76c['commands']['get'](_0xab4d42)['refresh'](),_0x86bb86['push']({'forceDefaultExecution':!0x0}),_0x89a76c['execute'](_0xab4d42,..._0x86bb86);const _0x4e7c93=_0x254ab0['filter'](_0x537e9a=>'$graveyard'!=_0x537e9a['root']['rootName']);_0x4e7c93['length']>0x0&&_0x181b92['setSelection'](_0x4e7c93);for(const _0x4ad6ab of _0x254ab0)_0x4ad6ab['detach']();});};}['_getCoordsForCells'](_0x2976d3){const _0x4df0a2=this['editor']['plugins']['get']('TableUtils');let _0x4687d9=Number['MAX_SAFE_INTEGER'],_0x364a1f=Number['MIN_SAFE_INTEGER'],_0x5885aa=Number['MAX_SAFE_INTEGER'],_0x3278fc=Number['MIN_SAFE_INTEGER'];for(const _0x4aa5d3 of _0x2976d3){if('$graveyard'==_0x4aa5d3['root']['rootName'])continue;const {row:_0xd73c1a,column:_0x933a5d}=_0x4df0a2['getCellLocation'](_0x4aa5d3),_0x40b98f=_0x4aa5d3['hasAttribute']('rowspan')?_0x4aa5d3['getAttribute']('rowspan')-0x1:0x0,_0x1d0f63=_0x4aa5d3['hasAttribute']('colspan')?_0x4aa5d3['getAttribute']('colspan')-0x1:0x0;_0x4687d9=_0xd73c1a<_0x4687d9?_0xd73c1a:_0x4687d9,_0x364a1f=_0xd73c1a+_0x40b98f>_0x364a1f?_0xd73c1a+_0x40b98f:_0x364a1f,_0x5885aa=_0x933a5d<_0x5885aa?_0x933a5d:_0x5885aa,_0x3278fc=_0x933a5d+_0x1d0f63>_0x3278fc?_0x933a5d+_0x1d0f63:_0x3278fc;}return{'minRow':_0x4687d9,'maxRow':_0x364a1f,'minColumn':_0x5885aa,'maxColumn':_0x3278fc};}['_setupColumnsRowsFixing'](){const _0x59a95d=this['editor'],_0xc5f102=_0x59a95d['plugins']['get']('TrackChangesEditing'),_0x53886c=_0x59a95d['plugins']['get']('TableUtils');_0x59a95d['model']['document']['on']('change:data',()=>{const _0x4c6508=Array['from'](_0x59a95d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x22e79d,data:_0xe509e2}of _0x4c6508){const {group:_0x3c7c7f,id:_0x40371f,subType:_0x29a59f}=_0xc5f102['_splitMarkerName'](_0x22e79d);if('suggestion'!=_0x3c7c7f)continue;if(null!=_0xe509e2['oldRange'])continue;const _0x4cda3c=_0xc5f102['getSuggestion'](_0x40371f);this['_tablePostFixingSubtypes']['includes'](_0x29a59f)&&this['_tableSuggestions']['add'](_0x4cda3c);}},{'priority':'low'});const _0x2c5973=(_0x1a3635,_0x4d8b2d)=>{let _0x527d80=!0x1;const _0x1e8f97=_0x4d8b2d['createRangeOn'](_0x1a3635),_0x1c8303=_0x1a3635['findAncestor']('table'),_0x5c869a=_0x53886c['getCellLocation'](_0x1a3635);for(const _0x4bd069 of this['_tableSuggestions']){const _0x30b024=_0x4bd069['subType'],_0x38e197=_0x30b024['startsWith']('tablePaste'),_0x5a0c9e=_0x30b024['substr'](_0x38e197?0xa:0x5),_0x15132e=_0x5a0c9e['toLowerCase'](),_0x2bf0b1=_0x15132e['substr'](0x0,0x3)+'span',_0x43c596='min'+_0x5a0c9e,_0x2fccd4='max'+_0x5a0c9e;if(!_0x4bd069['isInContent'])continue;if(_0x1c8303!=_0x4bd069['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4bd069['isIntersectingWithRange'](_0x1e8f97))continue;const _0x179484=_0x1a3635['hasAttribute'](_0x2bf0b1)?_0x1a3635['getAttribute'](_0x2bf0b1)-0x1:0x0,_0x46ebf5=this['_getSuggestionCoords'](_0x4bd069),_0x247aa9=_0x46ebf5[_0x43c596],_0xed1b4=_0x46ebf5[_0x2fccd4];_0x247aa9<=_0x5c869a[_0x15132e]&&_0x5c869a[_0x15132e]+_0x179484<=_0xed1b4&&(_0x4bd069['addRange'](_0x1e8f97),_0x527d80=!0x0);}return _0x527d80;};_0x59a95d['model']['document']['registerPostFixer'](_0x432467=>{let _0x54b9a3=!0x1;for(const _0x5ee610 of _0x59a95d['model']['document']['differ']['getChanges']())if('insert'==_0x5ee610['type']){if('tableRow'==_0x5ee610['name']){for(const _0x43ba42 of _0x5ee610['position']['nodeAfter']['getChildren']())_0x54b9a3=_0x54b9a3||_0x2c5973(_0x43ba42,_0x432467);}else'tableCell'==_0x5ee610['name']&&(_0x54b9a3=_0x54b9a3||_0x2c5973(_0x5ee610['position']['nodeAfter'],_0x432467));}return _0x54b9a3;});}['_getSuggestionCoords'](_0x1544cc){return this['_getCoordsForCells'](_0x1544cc['getRanges']()['map'](_0x42225c=>_0x42225c['start']['nodeAfter']));}}function Re(_0x299ad3){return Array['from'](new Set(_0x299ad3)['values']());}class _t extends _0x7145c0{static get['requires'](){return[vt];}['afterInit'](){const _0x237636=this['editor'],_0x1271af=_0x237636['model']['document']['selection'],_0x240408=_0x237636['locale'];if(!_0x237636['plugins']['has']('TableEditing'))return;const _0x1017c7=_0x237636['plugins']['get']('TrackChangesEditing'),_0x193cbd=_0x237636['plugins']['get']('TableUtils'),_0x25bd3f=_0x237636['plugins']['get'](vt);_0x25bd3f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1017c7['enableCommand']('mergeTableCells',()=>{const _0x41ad64=_0x193cbd['getSelectionAffectedTableCells'](_0x237636['model']['document']['selection']);_0x237636['model']['change'](()=>{_0x1017c7['markMultiRangeBlockFormat'](_0x41ad64,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x237636['commands']['get']('mergeTableCells')['on']('execute',(_0x2900bc,_0x4eaa46)=>{_0x237636['commands']['get']('trackChanges')['value']&&(_0x4eaa46['length']>0x0&&_0x4eaa46[_0x4eaa46['length']-0x1]&&_0x4eaa46[_0x4eaa46['length']-0x1]['forceDefaultExecution']||_0x1017c7['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2900bc['stop']());},{'priority':'highest'});for(const _0x163e77 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x35f4b0=_0x237636['commands']['get'](_0x163e77);_0x1017c7['enableCommand'](_0x163e77,()=>{const _0x2ab1c1=_0x237636['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5f3bdf=>_0x5f3bdf['is']('element','tableCell')),_0x2f5b58=_0x35f4b0['value'];_0x237636['model']['change'](()=>{_0x1017c7['markMultiRangeBlockFormat']([_0x2ab1c1,_0x2f5b58],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5cdf3a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x25e4ae=_0x237636['commands']['get'](_0x5cdf3a);_0x1017c7['enableCommand'](_0x5cdf3a,()=>{const _0x1845e0=_0x193cbd['getSelectionAffectedTableCells'](_0x237636['model']['document']['selection'])[0x0],_0x125f1c=_0x1845e0['findAncestor']('table'),{column:_0x4aac94,row:_0x4214ef}=_0x193cbd['getCellLocation'](_0x1845e0);let _0x1275ec=[];if('horizontally'==_0x25e4ae['direction']){const _0xdc8fa9=_0x193cbd['createTableWalker'](_0x125f1c,{'startRow':_0x4214ef,'endRow':_0x4214ef,'includeAllSlots':!0x0});_0x1275ec=Array['from'](_0xdc8fa9)['map'](_0x3970ca=>_0x3970ca['cell']);}else{const _0x5cbabe=_0x193cbd['createTableWalker'](_0x125f1c,{'column':_0x4aac94,'includeAllSlots':!0x0});_0x1275ec=Array['from'](_0x5cbabe)['map'](_0x5b3277=>_0x5b3277['cell']);}_0x237636['model']['change'](_0x16e52d=>{_0x1017c7['markBlockFormat'](_0x16e52d['createRangeOn'](_0x1845e0),{'commandName':_0x5cdf3a,'commandParams':[]},_0x1275ec,_0x5cdf3a);});});}_0x1017c7['descriptionFactory']['registerDescriptionCallback'](_0x2ce434=>{if('formatBlock'!=_0x2ce434['type']&&'formatInline'!=_0x2ce434['type'])return;const {data:_0x105ba5}=_0x2ce434;return _0x105ba5&&'mergeTableCells'==_0x105ba5['commandName']?{'type':'format','content':o(_0x240408,'*Merge\x20cells*')}:void 0x0;}),_0x1017c7['descriptionFactory']['registerDescriptionCallback'](_0x47d64a=>{if('formatBlock'!=_0x47d64a['type']&&'formatInline'!=_0x47d64a['type'])return;const {data:_0x3c632f}=_0x47d64a;return _0x3c632f?'splitTableCellVertically'==_0x3c632f['commandName']?{'type':'format','content':o(_0x240408,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3c632f['commandName']?{'type':'format','content':o(_0x240408,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2b06c9=_0x25bd3f['_acceptFormatSuggestionCallbackFactory']();for(const _0x292896 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1017c7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x292896,'accept',_0x2b06c9);for(const _0x474925 of['splitTableCellVertically','splitTableCellHorizontally'])_0x1017c7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x474925,'accept',_0x2b06c9);_0x1017c7['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2c6479=>{_0x237636['model']['change'](_0x12a645=>{const _0x105b66=Array['from'](_0x1271af['getRanges']())['map'](_0x2be1bd=>_0x3e3f21['fromRange'](_0x2be1bd));_0x12a645['setSelection'](_0x2c6479),_0x237636['commands']['get']('mergeTableCells')['refresh'](),_0x237636['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x27f61c=_0x105b66['filter'](_0x334eea=>'$graveyard'!=_0x334eea['root']['rootName']);_0x27f61c['length']>0x0&&_0x12a645['setSelection'](_0x27f61c);for(const _0xb9f03 of _0x105b66)_0xb9f03['detach']();});});for(const _0x267c5b of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x38d975=_0x237636['commands']['get'](_0x267c5b);_0x38d975['on']('set:isEnabled',(_0x33253a,_0xc33629,_0x3de41e)=>{if(_0x3de41e){const _0x33f618=_0x237636['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x61988c=>_0x61988c['is']('element','tableCell'));this['_areMergableCells'](_0x38d975['value'],_0x33f618)||(_0x33253a['return']=!0x1,_0x33253a['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4de303=this['editor']['commands']['get']('mergeTableCells'),_0x49472b=this['editor']['plugins']['get']('TableUtils');if(!_0x4de303['isEnabled'])return!0x1;const _0x349078=_0x49472b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5bab82 of _0x349078)for(const _0x533281 of _0x349078)if(_0x5bab82!=_0x533281&&!this['_areMergableCells'](_0x5bab82,_0x533281))return!0x1;return!0x0;}['_areMergableCells'](_0x58351a,_0x1f3943){const _0x18f64f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2555fc=this['editor']['model']['createRangeOn'](_0x58351a),_0x458555=this['editor']['model']['createRangeOn'](_0x1f3943),_0x789f85=new Set(),_0x388da2=new Set();for(const _0x47dd6e of _0x18f64f['getSuggestions']())if(('insertion'==_0x47dd6e['type']||'deletion'==_0x47dd6e['type']||'mergeTableCells'==_0x47dd6e['subType'])&&_0x47dd6e['isInContent']){for(const _0x33a84a of _0x47dd6e['getRanges']())_0x33a84a['containsRange'](_0x2555fc,!0x0)&&_0x789f85['add'](_0x47dd6e['type']+':'+_0x47dd6e['author']['id']),_0x33a84a['containsRange'](_0x458555,!0x0)&&_0x388da2['add'](_0x47dd6e['type']+':'+_0x47dd6e['author']['id']);}if(_0x789f85['size']!=_0x388da2['size'])return!0x1;for(const _0x494d1e of _0x789f85)if(!_0x388da2['has'](_0x494d1e))return!0x1;return!0x0;}}class Ct extends _0x7145c0{static get['requires'](){return[vt];}['afterInit'](){const _0x445a93=this['editor'];if(!_0x445a93['plugins']['has']('TableEditing'))return;const _0x1238ac=_0x445a93['locale'],_0x5bf4a3=_0x445a93['plugins']['get']('TrackChangesEditing');_0x5bf4a3['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5bf4a3['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5bf4a3['registerBlockAttribute']('headingRows'),_0x5bf4a3['registerBlockAttribute']('headingColumns'),_0x5bf4a3['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1238ac,'FORMAT_HEADER_ROW')),_0x5bf4a3['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1238ac,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x18e8a5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x48d398=this['editor']['plugins']['get']('TableUtils'),_0x13e75b=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x2c8467({showActiveMarker:_0x5ae141=!0x0,setDataAttribute:_0x65a2de=!0x0}={}){return(_0x53cf9d,_0x2cf88c,_0x35f69d)=>{const {type:_0x2d2648,id:_0x4c2af8}=_0x18e8a5['_splitMarkerName'](_0x2cf88c['markerName']),_0x1c8514=_0x18e8a5['getSuggestion'](_0x4c2af8),_0x11c2c1=_0x1c8514['data'];if('formatBlock'!=_0x1c8514['type']||!_0x11c2c1||'setTableColumnHeader'!=_0x11c2c1['commandName'])return;if(_0x2cf88c['item'])return void _0x53cf9d['stop']();if(!_0x35f69d['consumable']['consume'](_0x2cf88c['markerRange'],_0x53cf9d['name']))return;const _0x567e82=_0x2cf88c['markerRange']['start']['nodeAfter'],_0x2b7242=_0x2cf88c['markerRange']['end']['nodeBefore'],_0x42e797=_0x567e82['parent']['parent'],{column:_0x4588c6}=_0x48d398['getCellLocation'](_0x567e82),{column:_0x3abb9e}=_0x48d398['getCellLocation'](_0x2b7242);for(let _0x8db419=_0x4588c6;_0x8db419<=_0x3abb9e;_0x8db419++){const _0x3f5788=_0x48d398['createTableWalker'](_0x42e797,{'column':_0x8db419,'includeAllSlots':!0x1});for(const _0x4d1232 of _0x3f5788){const _0x5c5e6c=_0x4d1232['cell'],_0x19bfcf=_0x35f69d['mapper']['toViewElement'](_0x5c5e6c);_0x35f69d['writer']['addClass']('ck-suggestion-marker-'+_0x2d2648,_0x19bfcf),_0x65a2de&&_0x35f69d['writer']['setAttribute']('data-suggestion',_0x4c2af8,_0x19bfcf),_0x35f69d['mapper']['bindElementToMarker'](_0x19bfcf,_0x2cf88c['markerName']),_0x5ae141&&(_0x18e8a5['activeMarkers']['includes'](_0x2cf88c['markerName'])?_0x35f69d['writer']['addClass']('ck-suggestion-marker--active',_0x19bfcf):_0x35f69d['writer']['removeClass']('ck-suggestion-marker--active',_0x19bfcf));}}};}_0x18e8a5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x13e75b),_0x18e8a5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x13e75b),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2c8467(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4109f7,_0x1ba4d1,_0x54e895)=>{_0x54e895['options']['showSuggestionHighlights']&&_0x2c8467({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4109f7,_0x1ba4d1,_0x54e895);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4990c2,_0x1c8293,_0x1fdf2a)=>{const {type:_0x30c77b,id:_0xd61b6a}=_0x18e8a5['_splitMarkerName'](_0x1c8293['markerName']),_0x26be89=_0x18e8a5['getSuggestion'](_0xd61b6a),_0x59bf36=_0x26be89['data'];if('formatBlock'!=_0x26be89['type']||!_0x59bf36||'setTableColumnHeader'!=_0x59bf36['commandName'])return;const _0x149766=_0x1fdf2a['mapper']['markerNameToElements'](_0x1c8293['markerName']);if(_0x149766){for(const _0x4b9f5c of _0x149766)_0x1fdf2a['writer']['removeClass']('ck-suggestion-marker-'+_0x30c77b,_0x4b9f5c),_0x1fdf2a['writer']['removeClass']('ck-suggestion-marker--active',_0x4b9f5c),_0x1fdf2a['writer']['removeAttribute']('data-suggestion',_0x4b9f5c),_0x1fdf2a['mapper']['unbindElementFromMarkerName'](_0x4b9f5c,_0x1c8293['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x191f7c=this['editor'],_0x559b7b=_0x191f7c['locale'];function _0x4ceb5e(_0x32f93c){return{'type':'format','content':o(_0x559b7b,'*Format:*\x20%0',_0x32f93c)};}_0x191f7c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c40d4=>{if('formatBlock'!=_0x1c40d4['type'])return;const {data:_0x56d035}=_0x1c40d4;if(_0x56d035){if('setTableRowHeader'==_0x56d035['commandName']){const _0x3eda05=_0x56d035['commandParams'][0x0]['forceValue'];return _0x4ceb5e(o(_0x559b7b,_0x3eda05?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x56d035['commandName']){const _0x319333=_0x56d035['commandParams'][0x0]['forceValue'];return _0x4ceb5e(o(_0x559b7b,_0x319333?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0x27155a=>[_0x27155a,null]));class Nt extends _0x7145c0{static get['requires'](){return[vt];}['afterInit'](){const _0x3cf0b3=this['editor'];if(!_0x3cf0b3['plugins']['has']('TableClipboard'))return;const _0x521d21=_0x3cf0b3['plugins']['get']('TrackChangesEditing'),_0x467b36=_0x3cf0b3['plugins']['get']('TableUtils'),_0x48c55a=_0x3cf0b3['plugins']['get'](vt),_0x388184=_0x3cf0b3['plugins']['get']('TableClipboard');_0x48c55a['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3cf0b3['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3cf0b3['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4b3800=null;_0x3cf0b3['model']['on']('insertContent',(_0x18f684,_0x3c5ac7)=>{const [_0x18edd8,_0x126e29]=_0x3c5ac7,_0x2f9f78=_0x3c5ac7[_0x3c5ac7['length']-0x1];_0x2f9f78&&_0x2f9f78['forceDefaultExecution']||_0x521d21['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x17972a,_0x29eb3a,_0x175e32,_0x1a3221,_0x37e23b){if(_0x29eb3a&&!_0x29eb3a['is']('documentSelection'))return!0x1;const _0x31da01=_0x37e23b['getTableIfOnlyTableInContent'](_0x17972a,_0x175e32);if(!_0x31da01||!Ae(_0x31da01,void 0x0,_0x1a3221))return!0x1;const _0x34bc5b=_0x1a3221['getSelectionAffectedTableCells'](_0x175e32['document']['selection']);if(!_0x34bc5b['length'])return!0x1;const _0xee9de4=_0x34bc5b[0x0]['findAncestor']('table'),_0x28c4d0=_0x1a3221['getRowIndexes'](_0x34bc5b),_0x527542=_0x1a3221['getColumnIndexes'](_0x34bc5b),_0x3e9255={'startRow':_0x28c4d0['first'],'endRow':_0x28c4d0['last'],'startColumn':_0x527542['first'],'endColumn':_0x527542['last']};return 0x1==_0x34bc5b['length']&&(_0x3e9255['endRow']+=_0x1a3221['getRows'](_0x31da01)-0x1,_0x3e9255['endColumn']+=_0x1a3221['getColumns'](_0x31da01)-0x1),Ae(_0xee9de4,_0x3e9255,_0x1a3221);}(_0x18edd8,_0x126e29,_0x3cf0b3['model'],_0x467b36,_0x388184)&&(_0x18f684['stop'](),_0x4b3800={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3cf0b3['model']['change'](()=>{_0x3cf0b3['model']['insertContent'](_0x3c5ac7[0x0],_0x3c5ac7[0x1],_0x3c5ac7[0x2],{'forceDefaultExecution':!0x0});const _0x10a1f7=_0x43bf13(),{rowInsertionRanges:_0x436734,columnInsertionRanges:_0xf76984,insertionRanges:_0x5cc2fd,deletionRanges:_0x247acf,cells:_0x3c5f65}=_0x4b3800;_0x436734['length']&&_0x521d21['markMultiRangeInsertion'](_0x436734,'tablePasteRow',{'tablePasteChainId':_0x10a1f7}),_0xf76984['length']&&_0x521d21['markMultiRangeInsertion'](_0xf76984,'tablePasteColumn',{'tablePasteChainId':_0x10a1f7}),_0x5cc2fd['length']&&(_0x521d21['markMultiRangeInsertion'](_0x5cc2fd,'tablePaste',{'tablePasteChainId':_0x10a1f7,'skipNestingCheck':!0x0}),_0x5cc2fd['forEach'](_0x34b4b5=>_0x34b4b5['detach']?.())),_0x247acf['length']&&(_0x521d21['markMultiRangeDeletion'](_0x247acf,'tablePaste',{'tablePasteChainId':_0x10a1f7,'skipNestingCheck':!0x0}),_0x247acf['forEach'](_0x15b481=>_0x15b481['detach']?.()));const _0x2c2644=_0x521d21['markMultiRangeBlockFormat'](_0x3c5f65['map'](({element:_0x400923})=>_0x400923),{'formatGroupId':_0x43bf13()},[],'tablePasteCell',{'tablePasteChainId':_0x10a1f7});if(_0x2c2644){const _0x56b6aa=_0x2c2644['getMarkers'](),_0x304241=[];for(const {element:_0x26c810,attributes:_0x2be11b}of _0x3c5f65){if(!_0x2be11b)continue;const _0xe3df54=_0x3cf0b3['model']['createRangeOn'](_0x26c810),_0x5d1eb4=_0x56b6aa['find'](_0x1cf86c=>_0x1cf86c['getRange']()['isEqual'](_0xe3df54));_0x5d1eb4&&_0x304241['push']([_0x5d1eb4['name'],_0x2be11b]);}_0x304241['length']&&_0x2c2644['setAttribute']('markerAttributes',Object['fromEntries'](_0x304241));}_0x4b3800=null;}));},{'priority':_0xa618fb['high']+0xa}),_0x3cf0b3['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3a3e6b,_0x421e30)=>{const [_0x2cbf9d,_0x197d11,,_0x116bb4]=_0x421e30;if(!_0x4b3800)return;_0x3a3e6b['stop']();const _0xe82a71=_0x2cbf9d['cell'],_0x43f14b=_0x197d11,_0x47c855=je(_0xe82a71),_0x32610d=je(_0x43f14b);_0x3a3e6b['return']=_0xe82a71;let _0x3264c1=null,_0x37e2a7=null;if(_0x32610d||_0x47c855){if(_0x47c855&&!_0x32610d){_0x116bb4['remove'](_0xe82a71['getChild'](0x0));for(const _0x2abe61 of Array['from'](_0x43f14b['getChildren']()))_0x116bb4['insert'](_0x2abe61,_0xe82a71,'end');const _0x64be4a=_0x4b3800['rowInsertionIndexes']['includes'](_0x2cbf9d['row']),_0xd616d8=_0x4b3800['columnInsertionIndexes']['includes'](_0x2cbf9d['column']);_0x64be4a||_0xd616d8||(_0x3264c1=_0x3e3f21['fromRange'](_0x116bb4['createRangeIn'](_0xe82a71)));}else _0x32610d&&!_0x47c855&&(_0x37e2a7=_0x116bb4['createRangeIn'](_0xe82a71));}else{const _0x2a0983=_0x116bb4['createElement']('tableCellSuggestion'),_0x16559b=_0x116bb4['createElement']('tableCellSuggestion');_0x116bb4['wrap'](_0x116bb4['createRangeIn'](_0xe82a71),_0x16559b),_0x116bb4['insert'](_0x2a0983,_0xe82a71,0x0);for(const _0x2c2b53 of Array['from'](_0x43f14b['getChildren']()))_0x116bb4['insert'](_0x2c2b53,_0x2a0983,'end');_0x3264c1=_0x3e3f21['fromRange'](_0x116bb4['createRangeOn'](_0x2a0983)),_0x37e2a7=_0x3e3f21['fromRange'](_0x116bb4['createRangeOn'](_0x16559b));}const _0x1ff4c9=Array['from'](_0x43f14b['getAttributes']())['filter'](([_0x59d72f])=>we['includes'](_0x59d72f));_0x4b3800['cells']['push']({'element':_0xe82a71,'attributes':_0x1ff4c9['length']?Object['fromEntries'](_0x1ff4c9):null}),_0x3264c1&&_0x4b3800['insertionRanges']['push'](_0x3264c1),_0x37e2a7&&_0x4b3800['deletionRanges']['push'](_0x37e2a7);},{'priority':'high'}),_0x467b36['on']('insertColumns',(_0x3ebbf9,_0x7c4c85)=>{const [_0x40a6ae,_0x4b8b34={}]=_0x7c4c85;if(!_0x4b3800)return;const _0x3fd562=_0x4b8b34['at']||0x0,_0x43b5c0=_0x4b8b34['columns']||0x1;_0x4b3800['columnInsertionIndexes']=new Array(_0x43b5c0)['fill'](_0x3fd562)['map']((_0x34c014,_0x3f079c)=>_0x34c014+_0x3f079c);for(const {cell:_0x174ec8}of _0x467b36['createTableWalker'](_0x40a6ae,{'startColumn':_0x3fd562,'endColumn':_0x3fd562+_0x43b5c0-0x1}))_0x4b3800['columnInsertionRanges']['push'](_0x3cf0b3['model']['createRangeOn'](_0x174ec8));},{'priority':'low'}),_0x467b36['on']('insertRows',(_0x1dc63a,_0x3187b7)=>{const [_0x3177d7,_0x3bf607={}]=_0x3187b7;if(!_0x4b3800)return;const _0x431d0d=_0x3bf607['at']||0x0,_0xd4340e=_0x3bf607['rows']||0x1;_0x4b3800['rowInsertionIndexes']=new Array(_0xd4340e)['fill'](_0x431d0d)['map']((_0x25ab33,_0x41ed08)=>_0x25ab33+_0x41ed08);for(const {cell:_0x3ecbb4}of _0x467b36['createTableWalker'](_0x3177d7,{'startRow':_0x431d0d,'endRow':_0x431d0d+_0xd4340e-0x1}))_0x4b3800['rowInsertionRanges']['push'](_0x3cf0b3['model']['createRangeOn'](_0x3ecbb4));},{'priority':'low'}),_0x521d21['descriptionFactory']['registerDescriptionCallback'](_0x239d94=>{if(_0x239d94['subType']&&_0x239d94['subType']['startsWith']('tablePaste'))return _0x239d94['previous']?{}:{'type':'insertion','content':o(_0x3cf0b3['locale'],'*Replace\x20table\x20cells*')};});const _0x39d2d5=()=>!0x1;for(const _0x2de5eb of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x521d21['_suggestionFactory']['registerCustomCallback']('insertion',_0x2de5eb,'join',_0x39d2d5),_0x521d21['_suggestionFactory']['registerCustomCallback']('deletion',_0x2de5eb,'join',_0x39d2d5),_0x521d21['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2de5eb,'join',_0x39d2d5);_0x521d21['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x39d2d5),_0x521d21['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x102ed7,_0x178ed8,_0x5995b4)=>{const _0x71acff=_0x102ed7['map'](_0x4c09a7=>_0x4c09a7['getContainedElement']())['filter'](_0x15f49c=>_0x15f49c),_0x123f86=new Map(_0x71acff['map'](_0x52c724=>[_0x52c724,null]));if(_0x4b3800){for(const {element:_0x3023b8,attributes:_0x1f38e3}of _0x4b3800['cells'])_0x1f38e3&&_0x123f86['set'](_0x3023b8,_0x1f38e3);}else{if(_0x5995b4&&_0x5995b4['markerAttributes'])for(const [_0x2bd34d,_0x1ec33a]of Object['entries'](_0x5995b4['markerAttributes'])){const _0x498d21=_0x3cf0b3['model']['markers']['get'](_0x2bd34d),_0x46bedb=_0x498d21?_0x498d21['getRange']()['getContainedElement']():null;_0x46bedb&&_0x123f86['set'](_0x46bedb,_0x1ec33a);}}_0x3cf0b3['model']['change'](_0x5b4b16=>{for(const [_0x57f4d7,_0x192825]of _0x123f86)_0x5b4b16['setAttributes']({...ve,..._0x192825},_0x57f4d7);});});const _0x41d0f5=(_0x1efe2c,_0x18b567)=>{_0x521d21['_suggestionFactory']['registerCustomCallback'](_0x1efe2c,'tablePaste',_0x18b567,(_0x55b838,_0x368877,_0x7f67a2)=>{_0x3cf0b3['model']['change'](_0x3bc50d=>{const _0x22e497=[];for(const _0x5abae7 of _0x55b838){const _0x2c450a=_0x5abae7['start']['nodeAfter'];_0x2c450a['is']('element','tableCellSuggestion')&&_0x22e497['push'](_0x2c450a);}_0x521d21['_suggestionFactory']['getSuggestionCallback'](_0x1efe2c,null,_0x18b567)(_0x55b838,_0x368877,_0x7f67a2);for(const _0x262296 of _0x22e497)'$graveyard'!=_0x262296['root']['rootName']&&_0x3bc50d['unwrap'](_0x262296);});});};_0x41d0f5('insertion','accept'),_0x41d0f5('insertion','discard'),_0x41d0f5('deletion','accept'),_0x41d0f5('deletion','discard'),_0x521d21['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1c597a=>{const _0x35b3d0=_0x1c597a['map'](_0x570de2=>_0x570de2['getContainedElement']()),_0x16f7e7=_0x35b3d0[0x0]['findAncestor']('table'),{minRow:_0x5b9a08,maxRow:_0xa19ee}=_0x48c55a['_getCoordsForCells'](_0x35b3d0);_0x467b36['removeRows'](_0x16f7e7,{'at':_0x5b9a08,'rows':_0xa19ee-_0x5b9a08+0x1});}),_0x521d21['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x273ad7=>{const _0x1f5bf7=_0x273ad7['map'](_0x2558ee=>_0x2558ee['getContainedElement']()),_0x58ed23=_0x1f5bf7[0x0]['findAncestor']('table'),{minColumn:_0xbf2e03,maxColumn:_0x3011e6}=_0x48c55a['_getCoordsForCells'](_0x1f5bf7);_0x467b36['removeColumns'](_0x58ed23,{'at':_0xbf2e03,'columns':_0x3011e6-_0xbf2e03+0x1});});const _0xace7cb=(_0x31e7d2,_0x24cb49)=>{if(!_0x24cb49['subType']||!_0x24cb49['subType']['startsWith']('tablePaste'))return;const _0x2bdae7=_0x24cb49['attributes']['tablePasteChainId'],_0x21d7a0=_0x521d21['getSuggestions']()['filter'](_0x65e19b=>_0x65e19b['isInContent']&&_0x65e19b['attributes']&&_0x65e19b['attributes']['tablePasteChainId']==_0x2bdae7);_0x21d7a0['length']&&_0x24cb49['getAllAdjacentSuggestions']()['length']!=_0x21d7a0['length']&&_0x21d7a0['reduce']((_0x578a49,_0x3127c7)=>(_0x578a49['next']=_0x3127c7,_0x3127c7['previous']=_0x578a49,_0x3127c7));};function _0x1975a3(_0x5a771d,_0x24e53f=!0x0){const {id:_0x184c66,authorId:_0x2f5846}=_0x521d21['_splitMarkerName'](_0x5a771d['markerName']),_0x4a8225=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5f1a40=_0x521d21['activeMarkers']['includes'](_0x5a771d['markerName']);return _0x5f1a40&&_0x4a8225['push']('ck-suggestion-marker--active'),{'classes':_0x4a8225,'attributes':{'data-suggestion':_0x184c66,'data-author-id':_0x2f5846},'priority':_0x5f1a40&&_0x24e53f?0xbc2:0xbb8};}_0x521d21['on']('suggestionLoaded',_0xace7cb,{'priority':'high'}),_0x521d21['on']('suggestionUnloaded',_0xace7cb,{'priority':'high'}),_0x3cf0b3['model']['document']['registerPostFixer'](()=>{let _0x187bb0=!0x1;const _0x887e33=Array['from'](_0x3cf0b3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3ab2f3,data:_0xe321ae}of _0x887e33){const {group:_0x1a4864,type:_0x1c920e,id:_0x13d40d}=_0x521d21['_splitMarkerName'](_0x3ab2f3);if('suggestion'!=_0x1a4864||'deletion'!=_0x1c920e||_0xe321ae['oldRange'])continue;if(!_0x521d21['hasSuggestion'](_0x13d40d))continue;const _0x458fb6=_0x521d21['getSuggestion'](_0x13d40d)['getRanges'](),_0x39dd02=_0x3cf0b3['plugins']['get']('Users')['me'];for(const _0x38b358 of _0x521d21['getSuggestions']()){if(!_0x38b358['isInContent']||_0x38b358['author']!=_0x39dd02)continue;if('formatBlock'!=_0x38b358['type']||'tablePasteCell'!=_0x38b358['subType'])continue;if(_0x38b358['getRanges']()['every'](_0x26f753=>_0x458fb6['some'](_0x12cefd=>_0x12cefd['containsRange'](_0x26f753,!0x0)))){for(const _0x1b2824 of _0x38b358['getAllAdjacentSuggestions']())_0x1b2824['isInContent']&&(_0x1b2824['discard'](),_0x187bb0=!0x0);}}}return _0x187bb0;}),_0x3cf0b3['model']['document']['registerPostFixer'](_0x505211=>{const _0x10c3ad=_0x3cf0b3['commands']['get']('redo');if(!_0x10c3ad||!_0x10c3ad['_createdBatches']['has'](_0x505211['batch']))return!0x1;let _0x2db3ef=!0x1;const _0x59d13a=_0x3cf0b3['plugins']['get']('Users')['me'],_0x267689=_0x3cf0b3['model']['document']['differ']['getChanges'](),_0x278431=Array['from'](_0x3cf0b3['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x16068a,data:_0x4bf440})=>{const {group:_0xe50988,subType:_0x53e48e,authorId:_0x1c67b8}=_0x521d21['_splitMarkerName'](_0x16068a);return'suggestion'==_0xe50988&&'tablePaste'==_0x53e48e&&_0x1c67b8==_0x59d13a['id']&&!_0x4bf440['oldRange'];});for(const _0x52975b of _0x267689){if('insert'!=_0x52975b['type']||'tableCellSuggestion'!=_0x52975b['name']||0x1!=_0x52975b['length'])continue;const _0x5f20b8=_0x505211['createRange'](_0x52975b['position'],_0x52975b['position']['getShiftedBy'](0x1));if(!_0x278431['find'](({data:_0x3bc368})=>_0x3bc368['newRange']['isEqual'](_0x5f20b8))){for(const {name:_0x305129,data:_0x29259e}of _0x278431)if(_0x5f20b8['containsRange'](_0x29259e['newRange'])){_0x505211['updateMarker'](_0x305129,{'range':_0x5f20b8}),_0x2db3ef=!0x0;break;}}}return _0x2db3ef;}),_0x3cf0b3['model']['document']['registerPostFixer'](_0x713dd5=>{let _0x35f2fe=!0x1;const _0x1c73a4=_0x3cf0b3['plugins']['get']('Users')['me'],_0x50b337=_0x521d21['getSuggestions']()['filter'](_0x43e5f7=>_0x43e5f7['isInContent']&&_0x43e5f7['author']==_0x1c73a4),_0x48004e=new Set(),_0x5328b3=new Set();for(const _0x45fafe of _0x50b337)if('tablePaste'==_0x45fafe['subType'])for(const _0x34b55b of _0x45fafe['getMarkers']()){const _0x49f3b3=_0x34b55b['getRange']()['getContainedElement']();if(_0x49f3b3){if(_0x49f3b3['is']('element','tableCellSuggestion')&&je(_0x49f3b3)){_0x45fafe['removeMarker'](_0x34b55b['name']),_0x48004e['add'](_0x49f3b3),_0x35f2fe=!0x0;const _0x13acf9=_0x49f3b3['nextSibling'],_0x3fee4a=_0x49f3b3['previousSibling'],_0x2d4f10=_0x13acf9&&_0x13acf9['is']('element','tableCellSuggestion'),_0x460f1f=_0x3fee4a&&_0x3fee4a['is']('element','tableCellSuggestion');_0x2d4f10&&!_0x48004e['has'](_0x13acf9)&&_0x5328b3['add'](_0x13acf9),_0x460f1f&&!_0x48004e['has'](_0x3fee4a)&&_0x5328b3['add'](_0x3fee4a);}else _0x49f3b3['is']('element','paragraph')&&_0x49f3b3['isEmpty']&&(_0x45fafe['removeMarker'](_0x34b55b['name']),_0x35f2fe=!0x0);}}else{if('tablePasteCell'==_0x45fafe['subType']){if(!_0x45fafe['attributes']||!_0x45fafe['attributes']['tablePasteChainId'])continue;const _0x270ff9=_0x45fafe['attributes']['markerAttributes'];if(_0x270ff9&&Object['keys'](_0x270ff9)['length'])continue;const _0x5e07ca=_0x45fafe['attributes']['tablePasteChainId'];let _0x3a552c=!0x0,_0x27f5c7=!0x0;for(const _0x297098 of _0x50b337)if(_0x297098['subType']&&_0x297098['subType']['startsWith']('tablePaste')){if(!_0x297098['attributes']['tablePasteChainId']){_0x27f5c7=!0x1;break;}if(_0x297098['id']!=_0x45fafe['id']&&_0x297098['attributes']['tablePasteChainId']==_0x5e07ca){_0x3a552c=!0x1;break;}}_0x27f5c7&&_0x3a552c&&(_0x45fafe['removeMarkers'](),_0x35f2fe=!0x0);}}for(const _0x1e52e5 of _0x48004e)_0x713dd5['remove'](_0x1e52e5);for(const _0x49f460 of _0x5328b3)_0x713dd5['unwrap'](_0x49f460);return _0x35f2fe;}),_0x3cf0b3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x32efd4=>_0x1975a3(_0x32efd4),'converterPriority':'high'}),_0x3cf0b3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4d9882,_0x12209a)=>_0x12209a['options']['showSuggestionHighlights']?_0x1975a3(_0x4d9882,!0x1):null,'converterPriority':'high'});const _0x465e1b=_0x3cf0b3['editing']['view'];this['listenTo'](_0x465e1b['document'],'clipboardOutput',(_0x46c09f,_0x4cbb8c)=>{const _0x455aa6=[];for(const _0x348200 of _0x465e1b['createRangeIn'](_0x4cbb8c['content'])['getItems']())_0x348200['is']('element','suggestion-td')&&_0x455aa6['push'](_0x348200);_0x465e1b['change'](_0x43d58e=>{for(const _0x442448 of _0x455aa6)_0x43d58e['move'](_0x43d58e['createRangeIn'](_0x442448),_0x43d58e['createPositionBefore'](_0x442448)),_0x43d58e['remove'](_0x442448);});});}}function je(_0x132b78){if(_0x132b78['isEmpty'])return!0x0;const _0x606a0e=_0x132b78['getChild'](0x0);return _0x606a0e['is']('element','paragraph')&&_0x606a0e['isEmpty'];}function Ae(_0x25815a,_0x1f4e9f={},_0x3a22be){for(const {isAnchor:_0x5b97c5,cellHeight:_0x284f2f,cellWidth:_0x26de77}of _0x3a22be['createTableWalker'](_0x25815a,{'includeAllSlots':!0x0,..._0x1f4e9f}))if(!_0x5b97c5||0x1!=_0x284f2f||0x1!=_0x26de77)return!0x1;return!0x0;}class Dt extends _0x7145c0{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4da56f=this['editor']['plugins']['get']('TrackChangesEditing');_0x4da56f['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4da56f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4da56f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4da56f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4da56f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4da56f['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2e2d98,_0x261da3){const _0x2a52b1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3fae23=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x8f279a=_0x261da3['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xcea9f2=_0x3fae23['getColumnGroupElement'](_0x8f279a);let _0x5ccf2c=_0xcea9f2?_0x3fae23['getTableColumnsWidths'](_0xcea9f2):null,_0x20c6b5=_0x8f279a['getAttribute']('tableWidth')||null;const _0xaa3be6=_0x261da3['tableWidth']||_0x20c6b5,_0x12a42b=_0x261da3['columnWidths']||_0x5ccf2c,_0x37ff45=this['editor']['plugins']['get']('Users')['me'];for(const _0x4acea9 of _0x2a52b1['getSuggestions']()){const _0x19aa4d=_0x4acea9['getContainedElement']();if('resizeTable'===_0x4acea9['subType']&&_0x19aa4d===_0x8f279a){_0x4acea9['author']!==_0x37ff45&&_0x4acea9['discard']();const _0x4430a4=_0x4acea9['data']['commandParams'];_0x20c6b5=_0x4430a4[0x0]['tableWidth'],_0x5ccf2c=_0x4430a4[0x0]['columnWidths'];break;}}_0x2e2d98({'table':_0x8f279a,'tableWidth':_0xaa3be6,'columnWidths':_0x12a42b}),_0x2a52b1['markBlockFormat'](_0x8f279a,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x20c6b5,'columnWidths':_0x5ccf2c}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x41f028){if('formatBlock'!=_0x41f028['type']&&'formatInline'!=_0x41f028['type'])return;const {data:_0x3df10e}=_0x41f028;if(_0x3df10e&&'resizeTable'===_0x3df10e['formatGroupId']){const _0x1da135='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1da135)};}}}class Mt extends _0x7145c0{['afterInit'](){const _0x2e5cfd=this['editor'];_0x2e5cfd['plugins']['has']('Template')&&_0x2e5cfd['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x7145c0{['afterInit'](){const _0x1c5e4c=this['editor'];if(!_0x1c5e4c['commands']['get']('insertTableOfContents'))return;_0x1c5e4c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4eede1=_0x1c5e4c['plugins']['get']('TrackChangesEditing'),_0x22c4dc=_0x1c5e4c['locale'];_0x4eede1['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4a3ca4=>o(_0x22c4dc,'ELEMENT_TABLE_OF_CONTENTS',_0x4a3ca4));}}class Bt extends _0x7145c0{['afterInit'](){const _0x5c35ed=this['editor'];if(!_0x5c35ed['plugins']['has']('Title'))return;const _0x175ecd=_0x5c35ed['plugins']['get']('TrackChangesEditing');_0x175ecd['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5c35ed['locale'],'ELEMENT_TITLE')),_0x5c35ed['model']['document']['registerPostFixer'](_0x37d9f5=>{let _0x23c14f=!0x1;const _0x144441=Array['from'](_0x5c35ed['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x561982,data:_0x32cf35}of _0x144441){const {group:_0x4afa40}=_0x175ecd['_splitMarkerName'](_0x561982);if('suggestion'!==_0x4afa40||!_0x32cf35['newRange'])continue;const _0x160b70=_0x32cf35['newRange'],_0x48be98=_0x160b70['end']['nodeBefore'];if(!_0x48be98||!_0x48be98['is']('element','title-content'))continue;if(!_0x160b70['start']['isTouching'](_0x160b70['end']))continue;const _0x52bf8c=_0x5c35ed['model']['schema']['getNearestSelectionRange'](_0x160b70['end'],'forward');if(_0x52bf8c&&_0x52bf8c['isCollapsed']){const _0x328cd8=_0x37d9f5['createRange'](_0x160b70['start'],_0x52bf8c['start']);_0x328cd8['isEqual'](_0x160b70)||(_0x37d9f5['updateMarker'](_0x561982,{'range':_0x328cd8}),_0x23c14f=!0x0);}_0x23c14f||(_0x37d9f5['removeMarker'](_0x561982),_0x23c14f=!0x0);}return _0x23c14f;});}}class Ot extends _0x7145c0{['afterInit'](){const _0x1b2d7b=this['editor'],_0x13a865=_0x1b2d7b['plugins']['get']('TrackChangesEditing');_0x1b2d7b['plugins']['has']('UndoEditing')&&(_0x13a865['enableCommand']('undo'),_0x13a865['enableCommand']('redo'));}}class Rt extends _0x7145c0{static get['requires'](){return[vt];}['afterInit'](){const _0x13fc26=this['editor'];if(!_0x13fc26['plugins']['has']('TableCaptionEditing'))return;_0x13fc26['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x7145c0{['tableProperties'];['tableCellProperties'];constructor(_0x110025){super(_0x110025),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0xf94a8f=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x47b1a0 of this['tableProperties'])_0xf94a8f['enableCommand'](_0x47b1a0,(_0x165ebe,_0x237fec)=>{const _0x3d4445=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x47b1a0,[_0x3d4445],this['tableProperties'],'tableProperties',_0x165ebe,_0x237fec);});_0xf94a8f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xf94a8f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xf94a8f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x39e4c9,_0x30eba9)=>this['handleDiscardAction'](this['tableProperties'],_0x39e4c9,_0x30eba9)),_0xf94a8f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x90a8e8 of this['tableCellProperties'])_0xf94a8f['enableCommand'](_0x90a8e8,(_0x3d99b0,_0x13e021)=>{const _0x4d97cd=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x90a8e8,_0x4d97cd,this['tableCellProperties'],'tableCellProperties',_0x3d99b0,_0x13e021);});_0xf94a8f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xf94a8f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xf94a8f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x41c85e,_0x12726a)=>this['handleDiscardAction'](this['tableCellProperties'],_0x41c85e,_0x12726a)),_0xf94a8f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xf94a8f['descriptionFactory']['registerDescriptionCallback'](_0x5b5e03=>this['handleSuggestionDescription'](_0x5b5e03));}['_handlePropertyChange'](_0x24b7f4,_0x386798,_0x191712,_0x30e8fa,_0x27867d,_0x3542c6){const _0x46b960=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3542c6['batch'],()=>{for(const _0x241308 of _0x386798){if(this['_getSuggestion'](_0x241308,_0x30e8fa))_0x27867d(_0x3542c6);else{const _0x3c9398={};for(const _0x442415 of _0x191712){const _0x2ada62=_0x241308['getAttribute'](_0x442415);void 0x0!==_0x2ada62&&(_0x3c9398[_0x442415]=_0x2ada62);}_0x27867d(_0x3542c6),_0x46b960['markBlockFormat'](_0x241308,{'commandParams':[_0x3c9398]},[],_0x30e8fa);}}});}['handleDiscardAction'](_0x58c61a,_0x40cad8,_0x1927a5){const _0xe38b4f=_0x40cad8[0x0]['start']['nodeAfter'],_0x3c984f=_0x1927a5['commandParams'][0x0];this['editor']['model']['change'](_0x5a21ec=>{for(const _0x394f68 of _0x58c61a)void 0x0!==_0x3c984f[_0x394f68]?_0x5a21ec['setAttribute'](_0x394f68,_0x3c984f[_0x394f68],_0xe38b4f):_0x5a21ec['removeAttribute'](_0x394f68,_0xe38b4f);});}['handleSuggestionDescription'](_0x470acb){if(_0x470acb['data'])switch(_0x470acb['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'](_0x3e4f43,_0x2deb87){const _0x3b2327=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xcc82d8 of _0x3b2327['getSuggestions']({'skipNotAttached':!0x0})){const _0x4419f8=_0xcc82d8['getContainedElement']();if(_0xcc82d8['subType']===_0x2deb87&&_0x4419f8===_0x3e4f43)return _0xcc82d8;}return null;}}const m='$elementName';class p extends _0x7145c0{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x586bb7,_0x56bb22,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,ye,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x50b9ee){super(_0x50b9ee),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3b0249,_0x5af9b4,_0x170007,_0x486429)=>{this['_model']['change'](()=>{for(const _0x164782 of[..._0x486429,..._0x170007])this['_model']['markers']['has'](_0x164782)&&_0x50b9ee['editing']['reconvertMarker'](_0x164782);});}),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']=_0x50b9ee['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(),_0x50b9ee['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x50b9ee['config']['get']('trackChanges.trackFormatChanges'),_0x50b9ee['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x50b9ee['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x50b9ee,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4766f2=this['editor'],_0x52e27d=(_0x502339,_0x41d86a)=>{if('attribute'!=_0x502339)return'ck-suggestion-marker-'+_0x502339;const _0x335e6a=_0x41d86a['split']('|')[0x0];return this['_isBlockAttribute'](_0x335e6a)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4766f2['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x47ce78=>{const {id:_0x3b7fc6,authorId:_0x46f7ce,type:_0x5ce23b,subType:_0x52203e}=this['_splitMarkerName'](_0x47ce78['markerName']),_0x4b18e3=['ck-suggestion-marker',_0x52e27d(_0x5ce23b,_0x52203e)];let _0x23ed1f=0xbb8;return this['activeMarkers']['includes'](_0x47ce78['markerName'])&&(_0x4b18e3['push']('ck-suggestion-marker--active'),_0x23ed1f=0xbc2),'deletion'==_0x5ce23b&&(_0x23ed1f+=0x5),{'classes':_0x4b18e3,'attributes':{'data-suggestion':_0x3b7fc6,'data-author-id':_0x46f7ce},'priority':_0x23ed1f};}}),_0x4766f2['conversion']['for']('dataDowncast')['add'](_0x30ad2d=>{_0x30ad2d['on']('addMarker:suggestion',(_0x12ab98,_0x435e5a,_0x37ff5d)=>{if(!_0x37ff5d['options']['showSuggestionHighlights'])return;const _0x10e990=_0x435e5a['item'];if(!_0x10e990)return;const _0x5597fb=_0x37ff5d['mapper']['toViewElement'](_0x10e990);_0x4766f2['model']['schema']['isObject'](_0x10e990)&&_0x5597fb&&!_0x5597fb['getCustomProperty']('widget')&&_0x5597fb['is']('containerElement')&&_0x5af653(_0x5597fb,_0x37ff5d['writer']);},{'priority':'high'});}),_0x4766f2['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4dfbed,_0x1e5514)=>{if(!_0x1e5514['options']['showSuggestionHighlights'])return null;const {type:_0x1dc095,subType:_0x224fef}=this['_splitMarkerName'](_0x4dfbed['markerName']);return{'classes':['ck-suggestion-marker',_0x52e27d(_0x1dc095,_0x224fef)],'priority':0xbb8};}});const _0x18ffbb=({showActiveMarkers:_0x59e1c4=!0x0,isAttributeSuggestion:_0x27e752=!0x1}={})=>(_0xaddaa1,_0x2c3724,_0x21282a)=>{if(!_0x2c3724['item'])return;const {id:_0x34d396,authorId:_0x2d3b1e}=this['_splitMarkerName'](_0x2c3724['markerName']);if(_0x27e752){const _0x5697ae=this['_suggestions']['get'](_0x34d396),_0x36375f=this['_getAttributeKey'](_0x5697ae);if(!this['_isBlockAttribute'](_0x36375f))return;}if(_0x2c3724['item']['is']('selection'))return void _0x21282a['consumable']['consume'](_0x2c3724['item'],_0xaddaa1['name']);const _0x147963=_0x21282a['mapper']['toViewElement'](_0x2c3724['item']);if(_0x2c3724['item']['is']('element')&&_0x4766f2['model']['schema']['isBlock'](_0x2c3724['item'])&&!_0x147963['getCustomProperty']('addHighlight')){_0x21282a['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x147963),_0x21282a['writer']['setAttribute']('data-suggestion',_0x34d396,_0x147963),_0x21282a['writer']['setAttribute']('data-author-id',_0x2d3b1e,_0x147963),_0x21282a['mapper']['bindElementToMarker'](_0x147963,_0x2c3724['markerName']),_0x59e1c4&&(this['activeMarkers']['includes'](_0x2c3724['markerName'])?_0x21282a['writer']['addClass']('ck-suggestion-marker--active',_0x147963):_0x21282a['writer']['removeClass']('ck-suggestion-marker--active',_0x147963));for(const _0x2cec16 of _0x4766f2['model']['createRangeIn'](_0x2c3724['item'])['getItems']())_0x21282a['consumable']['consume'](_0x2cec16,_0xaddaa1['name']);_0x21282a['consumable']['consume'](_0x2c3724['item'],_0xaddaa1['name']);}};_0x4766f2['conversion']['for']('dataDowncast')['add'](_0x40fc16=>{_0x40fc16['on']('addMarker:suggestion:formatBlock',(_0x3ac119,_0x521524,_0x53a669)=>{_0x53a669['options']['showSuggestionHighlights']&&_0x18ffbb({'showActiveMarkers':!0x1})(_0x3ac119,_0x521524,_0x53a669);},{'priority':'highest'});}),_0x4766f2['conversion']['for']('dataDowncast')['add'](_0x1301ee=>{_0x1301ee['on']('addMarker:suggestion:attribute',(_0x7ac689,_0x574d3f,_0x448052)=>{_0x448052['options']['showSuggestionHighlights']&&_0x18ffbb({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x7ac689,_0x574d3f,_0x448052);},{'priority':'highest'});}),_0x4766f2['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x42b1c1,_0x54d021)=>_0x54d021['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x42b1c1['substr'](0xb)}}),_0x4766f2['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x583fc8,{writer:_0x47f7ab})=>{let _0x174f97='suggestion:'+_0x583fc8['getAttribute']('suggestion-type')+':'+_0x583fc8['getAttribute']('id');return _0x583fc8['getAttribute']('marker-count')&&(_0x174f97+=':'+_0x583fc8['getAttribute']('marker-count')),_0x47f7ab['createElement']('$marker',{'data-name':_0x174f97});}}),_0x4766f2['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4766f2['conversion']['for']('editingDowncast')['add'](_0x219109=>{_0x219109['on']('addMarker:suggestion:formatBlock',_0x18ffbb(),{'priority':'high'});}),_0x4766f2['conversion']['for']('editingDowncast')['add'](_0x3e59e5=>{_0x3e59e5['on']('addMarker:suggestion:attribute',_0x18ffbb({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4766f2['conversion']['for']('editingDowncast')['add'](_0x1ea366=>{_0x1ea366['on']('removeMarker:suggestion:formatBlock',(_0x54b2c0,_0x50209e,_0x3c7061)=>{const _0x129dbd=_0x3c7061['mapper']['markerNameToElements'](_0x50209e['markerName']);if(_0x129dbd){for(const _0x586346 of _0x129dbd)_0x586346['getCustomProperty']('addHighlight')||(_0x3c7061['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x586346),_0x3c7061['writer']['removeAttribute']('data-suggestion',_0x586346),_0x3c7061['writer']['removeAttribute']('data-author-id',_0x586346),_0x3c7061['mapper']['unbindElementFromMarkerName'](_0x586346,_0x50209e['markerName']));}},{'priority':'high'});}),_0x4766f2['conversion']['for']('editingDowncast')['add'](_0x539f22=>{_0x539f22['on']('removeMarker:suggestion:attribute',(_0x5cfc7b,_0x573ff6,_0x48507d)=>{const _0x15814c=_0x48507d['mapper']['markerNameToElements'](_0x573ff6['markerName']);if(!_0x15814c)return;const {id:_0x3d38ee}=this['_splitMarkerName'](_0x573ff6['markerName']),_0x481021=this['_suggestions']['get'](_0x3d38ee),_0x315b70=this['_getAttributeKey'](_0x481021);if(this['_isBlockAttribute'](_0x315b70)){for(const _0x1a7c6e of _0x15814c)_0x1a7c6e['getCustomProperty']('addHighlight')||(_0x48507d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1a7c6e),_0x48507d['writer']['removeAttribute']('data-suggestion',_0x1a7c6e),_0x48507d['writer']['removeAttribute']('data-author-id',_0x1a7c6e),_0x48507d['mapper']['unbindElementFromMarkerName'](_0x1a7c6e,_0x573ff6['markerName']));}},{'priority':'high'});}),_0x4766f2['model']['document']['registerPostFixer'](_0x2c79f7=>{let _0x50e832=!0x1;const _0x340b1d=Array['from'](_0x4766f2['model']['document']['differ']['getChangedMarkers']()),_0x4d8ecd=new Set();for(const {name:_0x163b34,data:_0x33e21a}of _0x340b1d){const {group:_0x89d11a,type:_0x2de801,subType:_0x6ed5e1,id:_0x26c004}=this['_splitMarkerName'](_0x163b34);if('suggestion'!==_0x89d11a)continue;const _0x4634fc=this['_suggestions']['get'](_0x26c004);if(null!=_0x33e21a['newRange']){'formatInline'==_0x2de801&&(_0x50e832=_0x50e832||Pt(_0x33e21a['newRange'],_0x163b34,_0x2c79f7,_0x4766f2['model']['schema']));const _0x153131='attribute'==_0x2de801&&this['_isBlockAttribute'](_0x6ed5e1['split']('|')[0x0]);if(_0x33e21a['newRange']['isCollapsed']||'$graveyard'==_0x33e21a['newRange']['root']['rootName']||'formatBlock'==_0x2de801&&!Ft(_0x33e21a['newRange'])||_0x153131&&!Ft(_0x33e21a['newRange'])||'deletion'==_0x2de801&&!(!Vt(_0x1fe2ab=_0x33e21a['newRange'])&&!function(_0x7cea38){return _0x7cea38['start']['parent']==_0x7cea38['end']['nodeBefore']&&_0x7cea38['start']['isAtEnd'];}(_0x1fe2ab)))_0x2c79f7['removeMarker'](_0x163b34),_0x50e832=!0x0;else{if(!_0x4634fc||!_0x4634fc['isInContent'])continue;if(_0x33e21a['newRange']&&_0x33e21a['oldRange']&&_0x33e21a['newRange']['isEqual'](_0x33e21a['oldRange']))continue;_0x4d8ecd['add'](_0x4634fc);}}}var _0x1fe2ab;return _0x4d8ecd['size']>0x0&&(_0x50e832=!!this['_joinWithAdjacentSuggestions'](_0x4d8ecd)||_0x50e832),_0x50e832;}),_0x4766f2['model']['document']['registerPostFixer'](_0x3a5c81=>{let _0x4d9331=!0x1;for(const _0x1d3c46 of _0x4766f2['model']['document']['differ']['getChanges']())if('insert'==_0x1d3c46['type'])for(const _0x129bc9 of this['_suggestions']['values']()){if(_0x129bc9['isMultiRange']||!_0x129bc9['isInContent'])continue;const _0x4efc43='formatBlock'==_0x129bc9['type'],_0x83fdc7=this['_getAttributeKey'](_0x129bc9),_0x552f2f=_0x83fdc7&&this['_isBlockAttribute'](_0x83fdc7);if(!_0x4efc43&&!_0x552f2f)continue;const _0x45384b=_0x129bc9['getFirstRange']();if(_0x45384b['start']['parent']!=_0x45384b['end']['parent']&&!_0x45384b['end']['isAtEnd']){const _0x4035b6=_0x4766f2['model']['createPositionAt'](_0x45384b['start']['nodeAfter'],'end'),_0x1e8ff0=_0x4766f2['model']['createRange'](_0x45384b['start'],_0x4035b6);_0x3a5c81['updateMarker'](_0x129bc9['getFirstMarker'](),{'range':_0x1e8ff0}),_0x4d9331=!0x0;}}return _0x4d9331;}),_0x4766f2['model']['document']['registerPostFixer'](_0x32d930=>this['_processAttributeChanges'](_0x32d930)),_0x4766f2['model']['document']['registerPostFixer'](_0x44b66c=>!_0x44b66c['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x44b66c)),_0x4766f2['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4766f2['model']['document']['on']('change:data',(_0x6a88d0,_0x333bb1)=>{if(!_0x333bb1['isLocal']||_0x333bb1['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x28f98b=_0x4766f2['model']['document']['differ']['getChanges']();if(0x0==_0x28f98b['length'])return;const _0x500812=[],_0x4c3833=_0x28f98b['filter'](_0x1a7195=>'attribute'==_0x1a7195['type']),_0x19296b=_0x28f98b['filter'](_0x1da623=>'insert'==_0x1da623['type']&&'$text'!=_0x1da623['name']);for(const _0x36cb19 of _0x4c3833)this['_isRegisteredAttribute'](_0x36cb19['attributeKey'])&&_0x500812['push']({'key':_0x36cb19['attributeKey'],'newValue':_0x36cb19['attributeNewValue'],'oldValue':_0x36cb19['attributeOldValue'],'range':Lt(_0x36cb19['range'],_0x4766f2['model'])});for(const _0x44dffc of _0x19296b){if('rename'!=_0x44dffc['action']&&'refresh'!=_0x44dffc['action'])continue;const _0x5a6053=Jt(_0x44dffc['position']['nodeAfter'],_0x4766f2['model']),_0x33c178=_0x44dffc['before'];'rename'==_0x44dffc['action']&&_0x500812['push']({'key':m,'newValue':_0x44dffc['name'],'oldValue':_0x33c178['name'],'range':_0x5a6053});for(const [_0x55ddf3,_0x4ddc78]of _0x33c178['attributes']){if(!this['_isRegisteredAttribute'](_0x55ddf3))continue;const _0x45faa2=_0x44dffc['attributes']['get'](_0x55ddf3);_0x4ddc78!==_0x45faa2&&_0x500812['push']({'key':_0x55ddf3,'newValue':_0x45faa2,'oldValue':_0x4ddc78,'range':_0x5a6053});}for(const [_0x1ca69d,_0x2bfc1a]of _0x44dffc['attributes'])this['_isRegisteredAttribute'](_0x1ca69d)&&(_0x33c178['attributes']['has'](_0x1ca69d)||_0x500812['push']({'key':_0x1ca69d,'newValue':_0x2bfc1a,'oldValue':null,'range':_0x5a6053}));}0x0!=_0x500812['length']&&_0x4766f2['model']['enqueueChange'](_0x333bb1,_0x52d3e4=>{const _0x39fa2e=_0x43bf13();for(const {range:_0x2bf07b,key:_0x401690,oldValue:_0x5a088d,newValue:_0x300624}of _0x500812)this['markAttributeChange'](_0x2bf07b,_0x401690,_0x5a088d,_0x300624,{'groupId':_0x39fa2e});this['_reduceExistingSuggestions'](_0x52d3e4,_0x500812);});},{'priority':'lowest'}),_0x4766f2['model']['markers']['on']('update:suggestion',(_0x2469fc,_0x2b4d00,_0x5e6f19)=>{if(null==_0x5e6f19){const {id:_0x943ea5}=this['_splitMarkerName'](_0x2b4d00['name']),_0x43aab5=this['_suggestions']['get'](_0x943ea5);_0x43aab5&&_0x43aab5['addMarkerName'](_0x2b4d00['name']);}}),_0x4766f2['model']['document']['on']('change:data',()=>{const _0x30633f=Array['from'](_0x4766f2['model']['document']['differ']['getChangedMarkers']())['filter'](_0x475763=>'suggestion'===this['_splitMarkerName'](_0x475763['name'])['group']);if(0x0===_0x30633f['length'])return;_0x30633f['sort']((_0x1005eb,_0x1b1626)=>{const _0x524b1a=_0x1005eb['data']['oldRange'],_0x1dd536=_0x1b1626['data']['oldRange'];return null===_0x524b1a&&null===_0x1dd536?0x0:null===_0x524b1a&&null!==_0x1dd536?-0x1:null!==_0x524b1a&&null===_0x1dd536?0x1:_0x524b1a['start']['isBefore'](_0x1dd536['start'])?-0x1:0x1;});const _0x58ce97=new Set(),_0x385f23=new Set();for(const {name:_0x5a34b5,data:_0x38c263}of _0x30633f){const {id:_0xa9bba0}=this['_splitMarkerName'](_0x5a34b5);if(null===_0x38c263['oldRange']){const _0xc78ec6=this['_handleNewSuggestionMarker'](_0x5a34b5);_0x385f23['add'](_0xc78ec6);}else{const _0x129005=this['_suggestions']['get'](_0xa9bba0);null!==_0x38c263['newRange']||_0x129005['isInContent']?(_0x58ce97['add'](_0x129005['head']),_0x385f23['add'](_0x129005)):this['_removeSuggestion'](_0x129005);}}_0x385f23['size']>0x0&&this['_refreshSuggestionsChain'](_0x385f23);for(const _0x428ecf of _0x58ce97)this['fire']('suggestionChanged',_0x428ecf);}),_0x4766f2['model']['on']('applyOperation',(_0x1be045,_0x52733b)=>{const _0x19330c=_0x52733b[0x0];if(!this['_suggestions']['size'])return;if(!_0x19330c['isDocumentOperation'])return;if(_0x19330c['batch']['isUndo']||!_0x19330c['batch']['isLocal'])return;let _0x26716c,_0x48367d;switch(_0x19330c['type']){case'insert':_0x26716c=_0x4766f2['model']['createPositionAt'](_0x19330c['position']),_0x48367d=_0x26716c['getShiftedBy'](_0x19330c['howMany']);break;case'split':_0x26716c=_0x4766f2['model']['createPositionAt'](_0x19330c['splitPosition']),_0x48367d=_0x4766f2['model']['createPositionAt'](_0x19330c['moveTargetPosition']);break;case'move':_0x26716c=_0x4766f2['model']['createPositionAt'](_0x19330c['targetPosition']),_0x48367d=_0x26716c['getShiftedBy'](_0x19330c['howMany']);break;default:return;}const _0x1e601e=_0x4766f2['model']['createRange'](_0x26716c,_0x48367d);_0x4766f2['model']['change'](()=>{for(const {suggestion:_0x4deb41,meta:_0x24c8b1}of this['_findSuggestions'](_0x1e601e)){if(_0x4deb41['isMultiRange'])continue;if('formatInline'==_0x4deb41['type'])continue;const _0x342b43=this['_getAttributeKey'](_0x4deb41);if(_0x342b43&&this['_isBlockAttribute'](_0x342b43)&&'split'!=_0x19330c['type'])continue;const _0x6629e1=_0x4deb41['data']&&_0x4deb41['data']['multipleBlocks'];('formatBlock'!=_0x4deb41['type']||'split'==_0x19330c['type']&&!_0x6629e1)&&(_0x24c8b1['containsRangeInObject']||'insertion'==_0x4deb41['type']&&_0x24c8b1['isOwn']||_0x4deb41['getFirstRange']()['containsRange'](_0x1e601e)&&this['_breakSuggestionMarker'](_0x4deb41,_0x26716c,_0x48367d));}});},{'priority':'lowest'}),_0x4766f2['model']['on']('deleteContent',(_0x3a5ebb,_0x270062)=>{const _0xbf4297=_0x270062[0x0],_0x7c90c2=_0x270062[0x1];if(_0x7c90c2&&_0x7c90c2['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xbf4297['isCollapsed'])return;const _0x45d370=_0x4766f2['model']['schema'],{start:_0x1ce371,end:_0x138c1b}=_0xbf4297['getFirstRange'](),_0x17ac60=_0x1ce371['nodeAfter']&&_0x45d370['isLimit'](_0x1ce371['nodeAfter'])?null:_0x45d370['getNearestSelectionRange'](_0x1ce371,'forward'),_0x33f734=_0x138c1b['nodeBefore']&&_0x45d370['isLimit'](_0x138c1b['nodeBefore'])?null:_0x45d370['getNearestSelectionRange'](_0x138c1b,'backward'),_0x32aaa6=_0x4766f2['model']['createRange'](_0x17ac60?_0x17ac60['start']:_0x1ce371,_0x33f734?_0x33f734['end']:_0x138c1b);_0x4766f2['model']['change'](_0x2a06b2=>{this['markDeletion'](_0x32aaa6);const _0x273ad1=_0x4766f2['model']['schema']['getNearestSelectionRange'](_0x32aaa6['start']);_0xbf4297['is']('documentSelection')?_0x2a06b2['setSelection'](_0x273ad1):_0xbf4297['setTo'](_0x273ad1);}),_0x3a5ebb['stop']();},{'priority':_0xa618fb['normal']+0xa}),_0x4766f2['model']['on']('insertContent',(_0x1bc871,_0x516fd7)=>{const _0x2253fc=_0x516fd7[_0x516fd7['length']-0x1];_0x2253fc&&_0x2253fc['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4766f2['model']['change'](()=>{let _0x13c86f=_0x4766f2['model']['insertContent'](_0x516fd7[0x0],_0x516fd7[0x1],_0x516fd7[0x2],{'forceDefaultExecution':!0x0});if(!_0x13c86f)return;_0x1bc871['return']=_0x13c86f['clone']();const _0x1ce016=_0x13c86f['end']['nodeBefore'],_0x102b50=_0x4766f2['model']['schema'];_0x1ce016&&_0x102b50['isBlock'](_0x1ce016)&&!_0x102b50['isObject'](_0x1ce016)&&(_0x13c86f=_0x4766f2['model']['createRange'](_0x13c86f['start'],_0x4766f2['model']['createPositionAt'](_0x1ce016,'end'))),this['markInsertion'](_0x13c86f);}),_0x1bc871['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5e4ceb=new O(_0x4766f2,this['_suggestions']);_0x4766f2['commands']['add']('acceptSuggestion',_0x5e4ceb),this['enableCommand']('acceptSuggestion');const _0x2dee23=new R(_0x4766f2,this['_suggestions']);_0x4766f2['commands']['add']('discardSuggestion',_0x2dee23),this['enableCommand']('discardSuggestion'),_0x4766f2['commands']['add']('acceptAllSuggestions',new x(_0x4766f2,_0x5e4ceb,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4766f2['commands']['add']('discardAllSuggestions',new x(_0x4766f2,_0x2dee23,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4766f2['commands']['add']('acceptSelectedSuggestions',new E(_0x4766f2,_0x5e4ceb,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4766f2['commands']['add']('discardSelectedSuggestions',new E(_0x4766f2,_0x2dee23,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x194bb9=_0x4766f2['plugins']['get']('CommentsRepository');this['listenTo'](_0x194bb9,'addComment',(_0x5b062e,{threadId:_0x559ab6})=>{const _0x4002c3=this['_suggestions']['get'](_0x559ab6);_0x4002c3&&_0x4002c3['commentThread']&&0x1===_0x4002c3['commentThread']['length']&&this['_updateSuggestionData'](_0x559ab6,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x194bb9,'removeComment',(_0x557be7,{threadId:_0x22043f})=>{const _0x3e59c4=this['_suggestions']['get'](_0x22043f);_0x3e59c4&&_0x3e59c4['commentThread']&&!_0x3e59c4['commentThread']['length']&&this['_updateSuggestionData'](_0x22043f,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x51cdbf){const _0x3ec096=_0x2dcb59([0x71,0x56,0x6e,0x62,0x73,0x52,0x48,0x69,0x4d,0x50,0x6c,0x4c,0x4a,0x78,0x6b,0x57,0x30,0x31,0x65,0x59,0x79,0x35,0x6f,0x63,0x55,0x45,0x39,0x77,0x49,0x4b,0x34,0x37,0x5a,0x42,0x64,0x4f,0x67,0x51,0x6d,0x41,0x6a,0x38,0x75,0x70,0x58,0x61,0x53,0x66,0x46,0x72,0x32,0x7a,0x36,0x54,0x33,0x44,0x43,0x68,0x74,0x4e,0x76,0x47]),_0x1d05da=0xbaf9aea,_0x4ed6f5=0xba8cd6a^_0x1d05da,_0x48e7ab=window[_0x2dcb59([0x44,0x61,0x74,0x65])][_0x2dcb59([0x6e,0x6f,0x77])](),_0x2b7ec7=_0x51cdbf[_0x2dcb59([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2111a9=new window[(_0x2dcb59([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2068d7=>{_0x2b7ec7[_0x2dcb59([0x6f,0x6e,0x63,0x65])](_0x2dcb59([0x72,0x65,0x61,0x64,0x79]),_0x2068d7);}),_0x34e0bc={[_0x2dcb59([0x6b,0x74,0x79])]:_0x2dcb59([0x45,0x43]),[_0x2dcb59([0x75,0x73,0x65])]:_0x2dcb59([0x73,0x69,0x67]),[_0x2dcb59([0x63,0x72,0x76])]:_0x2dcb59([0x50,0x2d,0x32,0x35,0x36]),[_0x2dcb59([0x78])]:_0x2dcb59([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x2dcb59([0x79])]:_0x2dcb59([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x2dcb59([0x61,0x6c,0x67])]:_0x2dcb59([0x45,0x53,0x32,0x35,0x36])},_0x2424cc=_0x2b7ec7[_0x2dcb59([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2dcb59([0x67,0x65,0x74])](_0x2dcb59([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x14588f(){let _0x131536,_0x383428=null,_0x21a10e=null;try{if(_0x2424cc==_0x2dcb59([0x47,0x50,0x4c]))return _0x2dcb59([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x131536=_0x1ae6d1(),!_0x131536)return _0x2dcb59([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x131536[_0x2dcb59([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x21a10e=_0x1857a9(_0x131536[_0x2dcb59([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x131536[_0x2dcb59([0x6a,0x74,0x69])])),await _0xc29ca2()?_0x22babe()?_0x3b4553()?_0x2dcb59([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xf89a1c()?(_0x131536[_0x2dcb59([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2dcb59([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x383428=_0x39dee7(_0x2dcb59([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x131536[_0x2dcb59([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2dcb59([0x74,0x72,0x69,0x61,0x6c])&&(_0x383428=_0x39dee7(_0x2dcb59([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x131536[_0x2dcb59([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2dcb59([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x383428=_0x39dee7(_0x2dcb59([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3a4b51()):_0x2dcb59([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2dcb59([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2dcb59([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xec243){return _0x2dcb59([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3b4553(){const _0x5a7143=[_0x2dcb59([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2dcb59([0x74,0x72,0x69,0x61,0x6c])][_0x2dcb59([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x131536[_0x2dcb59([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x48e7ab/0x3e8:0xe10*_0x4ed6f5;return _0x131536[_0x2dcb59([0x65,0x78,0x70])]<_0x5a7143;}function _0x22babe(){const _0xa5789f=_0x131536[_0x2dcb59([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xa5789f&&(!!_0xa5789f[_0x2dcb59([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dcb59([0x2a]))||(!!_0xa5789f[_0x2dcb59([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dcb59([0x54,0x43]))||!(!_0xa5789f[_0x2dcb59([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dcb59([0x52,0x54,0x43]))||!_0x7f7b8())));}function _0xf89a1c(){const _0x1ca66b=_0x131536[_0x2dcb59([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1ca66b||0x0==_0x1ca66b[_0x2dcb59([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x58aff9}=new URL(window[_0x2dcb59([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1ca66b[_0x2dcb59([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58aff9))return!0x0;const _0x593886=_0x58aff9[_0x2dcb59([0x73,0x70,0x6c,0x69,0x74])](_0x2dcb59([0x2e]));return _0x1ca66b[_0x2dcb59([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x351438=>_0x351438[_0x2dcb59([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dcb59([0x2a])))[_0x2dcb59([0x6d,0x61,0x70])](_0x1f9b47=>_0x1f9b47[_0x2dcb59([0x73,0x70,0x6c,0x69,0x74])](_0x2dcb59([0x2e])))[_0x2dcb59([0x73,0x6f,0x6d,0x65])](_0x59e3f9=>_0x593886[_0x2dcb59([0x65,0x76,0x65,0x72,0x79])]((_0x3c72f9,_0x203691)=>_0x59e3f9[_0x203691]===_0x3c72f9||_0x59e3f9[_0x203691]===_0x2dcb59([0x2a])));}function _0x3a4b51(){return _0x383428&&_0x21a10e?new window[(_0x2dcb59([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3e53da,_0x3cb392)=>{_0x383428[_0x2dcb59([0x74,0x68,0x65,0x6e])](_0x3e53da,_0x3cb392),_0x21a10e[_0x2dcb59([0x74,0x68,0x65,0x6e])](_0x4a44b7=>{_0x4a44b7!=_0x2dcb59([0x56,0x61,0x6c,0x69,0x64])&&_0x3e53da(_0x4a44b7);},_0x3cb392);}):_0x383428||_0x21a10e||_0x2dcb59([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1857a9(_0x3af60a,_0x4b5d82){return new window[(_0x2dcb59([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48400f=>{if(_0x364a5a())return _0x48400f(_0x2dcb59([0x56,0x61,0x6c,0x69,0x64]));_0xaef0f1(),_0x2b7ec7[_0x2dcb59([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2dcb59([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3acdd5=!0x1;const _0x309252=_0x43bf13();function _0x4d5c22(_0x2b53ae){return!!_0x2b53ae&&(typeof _0x2b53ae===_0x2dcb59([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2b53ae===_0x2dcb59([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2b53ae[_0x2dcb59([0x74,0x68,0x65,0x6e])]===_0x2dcb59([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2b53ae[_0x2dcb59([0x63,0x61,0x74,0x63,0x68])]===_0x2dcb59([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xa7b077(_0x41924c){_0x265389(_0x41924c)[_0x2dcb59([0x74,0x68,0x65,0x6e])](_0x35aa13=>{if(!_0x35aa13||_0x35aa13[_0x2dcb59([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2dcb59([0x6f,0x6b]))return _0x2dcb59([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4b07b8(_0x35aa45(_0x309252+_0x4b5d82))!=_0x35aa13[_0x2dcb59([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2dcb59([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2dcb59([0x56,0x61,0x6c,0x69,0x64]);})[_0x2dcb59([0x74,0x68,0x65,0x6e])](_0x3ed0e1=>(_0xef2167(),_0x3ed0e1),()=>{const _0x4d7240=_0x485574();return null==_0x4d7240?(_0xef2167(),_0x2dcb59([0x56,0x61,0x6c,0x69,0x64])):_0x2dcb59(_0x48e7ab-_0x4d7240>(0x2fa31eea^_0x1d05da)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2dcb59([0x74,0x68,0x65,0x6e])](_0x48400f)[_0x2dcb59([0x63,0x61,0x74,0x63,0x68])](()=>{_0x48400f(_0x2dcb59([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5e8130=0xb99746a^_0x1d05da;function _0xef2167(){const _0x38d785=_0x2dcb59([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b07b8(_0x35aa45(_0x3af60a)),_0x14dea9=_0x40e3a7(_0x4b07b8(window[_0x2dcb59([0x4d,0x61,0x74,0x68])][_0x2dcb59([0x63,0x65,0x69,0x6c])](_0x48e7ab/_0x5e8130)));window[_0x2dcb59([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2dcb59([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x38d785,_0x14dea9);}function _0x485574(){const _0x262f1a=_0x2dcb59([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b07b8(_0x35aa45(_0x3af60a)),_0x14c12e=window[_0x2dcb59([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2dcb59([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x262f1a);return _0x14c12e?window[_0x2dcb59([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40e3a7(_0x14c12e),0x10)*_0x5e8130:null;}function _0x265389(_0x53b4ae){return new window[(_0x2dcb59([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x49af5d,_0x4a3b63)=>{_0x53b4ae[_0x2dcb59([0x74,0x68,0x65,0x6e])](_0x49af5d,_0x4a3b63),window[_0x2dcb59([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4a3b63,0xbae4e2a^_0x1d05da);});}}_0x2b7ec7[_0x2dcb59([0x6f,0x6e])](_0x2dcb59([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x293458,_0x4d5c64)=>{if(_0x4d5c64[0x0]!=_0x3af60a)return _0x48400f(_0x2dcb59([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4d5c64[0x1]={..._0x4d5c64[0x1],[_0x2dcb59([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x309252};},{[_0x2dcb59([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2dcb59([0x68,0x69,0x67,0x68])}),_0x2b7ec7[_0x2dcb59([0x6f,0x6e])](_0x2dcb59([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x43622b=>{_0x4d5c22(_0x43622b[_0x2dcb59([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3acdd5=!0x0,_0xa7b077(_0x43622b[_0x2dcb59([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2dcb59([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2dcb59([0x6c,0x6f,0x77])}),_0x2111a9[_0x2dcb59([0x74,0x68,0x65,0x6e])](()=>{_0x3acdd5||_0x48400f(_0x2dcb59([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x364a5a(){return _0x2b7ec7[_0x2dcb59([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2dcb59([0x76,0x69,0x65,0x77])][_0x2dcb59([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2dcb59([0x61,0x75,0x74,0x6f]);}function _0xaef0f1(){_0x2b7ec7[_0x2dcb59([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2dcb59([0x76,0x69,0x65,0x77])][_0x2dcb59([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2dcb59([0x61,0x75,0x74,0x6f]);}}function _0x39dee7(_0x1296bb){const _0x49f110=[new window[(_0x2dcb59([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51f276=>setTimeout(_0x51f276,0xba6a426^_0x1d05da)),_0x2111a9[_0x2dcb59([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2dcb59([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b0be3=>{let _0x2d38cf=0x0;_0x2b7ec7[_0x2dcb59([0x6d,0x6f,0x64,0x65,0x6c])][_0x2dcb59([0x6f,0x6e])](_0x2dcb59([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x432d6d,_0x3aa08f)=>{_0x3aa08f[0x0][_0x2dcb59([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2d38cf++,_0x2d38cf==(0xbaf9b12^_0x1d05da)&&(_0x5b0be3(),_0x432d6d[_0x2dcb59([0x6f,0x66,0x66])]());});}))];return window[_0x2dcb59([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2dcb59([0x72,0x61,0x63,0x65])](_0x49f110)[_0x2dcb59([0x74,0x68,0x65,0x6e])](()=>_0x1296bb);}async function _0x4a30ce(){await _0x2111a9,_0x2b7ec7[_0x2dcb59([0x6d,0x6f,0x64,0x65,0x6c])][_0x2dcb59([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5f0740,_0x2b7ec7[_0x2dcb59([0x6d,0x6f,0x64,0x65,0x6c])][_0x2dcb59([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5f0740,_0x2b7ec7[_0x2dcb59([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2dcb59([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x7f7b8(){return _0x296996(_0x2dcb59([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x8f32e8(_0x2dcb59([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2dcb59([0x73,0x74,0x61,0x74,0x65])]==_0x2dcb59([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3a5d8a(_0x3da5e2){const _0x8d8a32=_0x56a0cf();_0x2b7ec7[_0x8d8a32]=_0x2dcb59([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3da5e2,_0x3da5e2!=_0x2dcb59([0x56,0x61,0x6c,0x69,0x64])&&_0x4a30ce();}function _0x56a0cf(){const _0x3b3f77=window[_0x2dcb59([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2dcb59([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2dcb59([0x6e,0x6f,0x77])]())[_0x2dcb59([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2dcb59([0x2e]),'');let _0x3b410e=_0x2dcb59([0x71]);for(let _0x19d089=0x0;_0x19d089<_0x3b3f77[_0x2dcb59([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19d089+=0x2){let _0x2b57be=window[_0x2dcb59([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b3f77[_0x2dcb59([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x19d089,_0x19d089+0x2));_0x2b57be>=_0x3ec096[_0x2dcb59([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2b57be-=_0x3ec096[_0x2dcb59([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3b410e+=_0x3ec096[_0x2b57be];}return _0x3b410e;}function _0x1ae6d1(){const _0xbdb775=_0x2424cc[_0x2dcb59([0x73,0x70,0x6c,0x69,0x74])](_0x2dcb59([0x2e]));if(0x3!=_0xbdb775[_0x2dcb59([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5b7ead(_0xbdb775[0x1]);function _0x5b7ead(_0x454931){const _0x125e0b=_0x25a089(_0x454931);return _0x125e0b&&_0x3b8878()?_0x125e0b:null;function _0x3b8878(){const _0x352481=_0x125e0b[_0x2dcb59([0x6a,0x74,0x69])],_0x7c7db4=window[_0x2dcb59([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x352481[_0x2dcb59([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x352481[_0x2dcb59([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x58ab34={..._0x125e0b,[_0x2dcb59([0x6a,0x74,0x69])]:_0x352481[_0x2dcb59([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x352481[_0x2dcb59([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x58ab34[_0x2dcb59([0x76,0x63])],_0x35aa45(_0x58ab34)==_0x7c7db4;}}}async function _0xc29ca2(){let _0x1b5fe8=!0x0;try{const _0x750855=_0x2424cc[_0x2dcb59([0x73,0x70,0x6c,0x69,0x74])](_0x2dcb59([0x2e])),[_0x4302ae,_0x14e399,_0x4d242e]=_0x750855;return _0x189692(_0x4302ae),await _0x2066a1(_0x4302ae,_0x14e399,_0x4d242e),_0x1b5fe8;}catch(_0x1fe627){return!0x1;}function _0x189692(_0x53cc8e){const _0x17793a=_0x25a089(_0x53cc8e);_0x17793a&&_0x17793a[_0x2dcb59([0x61,0x6c,0x67])]==_0x2dcb59([0x45,0x53,0x32,0x35,0x36])||(_0x1b5fe8=!0x1);}async function _0x2066a1(_0x574ba3,_0x278204,_0x328a0d){const _0x326244=window[_0x2dcb59([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2dcb59([0x66,0x72,0x6f,0x6d])](_0x19c878(_0x328a0d),_0x2ab681=>_0x2ab681[_0x2dcb59([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x11be9a=new window[(_0x2dcb59([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2dcb59([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x574ba3+_0x2dcb59([0x2e])+_0x278204),_0x38c118=window[_0x2dcb59([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2dcb59([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x38c118)return;const _0x17b910=await _0x38c118[_0x2dcb59([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2dcb59([0x6a,0x77,0x6b]),_0x34e0bc,{[_0x2dcb59([0x6e,0x61,0x6d,0x65])]:_0x2dcb59([0x45,0x43,0x44,0x53,0x41]),[_0x2dcb59([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2dcb59([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2dcb59([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x38c118[_0x2dcb59([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2dcb59([0x6e,0x61,0x6d,0x65])]:_0x2dcb59([0x45,0x43,0x44,0x53,0x41]),[_0x2dcb59([0x68,0x61,0x73,0x68])]:{[_0x2dcb59([0x6e,0x61,0x6d,0x65])]:_0x2dcb59([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x17b910,_0x326244,_0x11be9a)||(_0x1b5fe8=!0x1);}}function _0x25a089(_0x552e05){return _0x552e05[_0x2dcb59([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2dcb59([0x65,0x79]))?JSON[_0x2dcb59([0x70,0x61,0x72,0x73,0x65])](_0x19c878(_0x552e05)):null;}function _0x19c878(_0x43911a){return window[_0x2dcb59([0x61,0x74,0x6f,0x62])](_0x43911a[_0x2dcb59([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2dcb59([0x2b]))[_0x2dcb59([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2dcb59([0x2f])));}function _0x35aa45(_0x30137c){let _0x165733=0x1505;function _0x1d7a5b(_0x37e3ca){for(let _0x2c7371=0x0;_0x2c7371<_0x37e3ca[_0x2dcb59([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c7371++){const _0x11141f=_0x37e3ca[_0x2dcb59([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2c7371);_0x165733=(_0x165733<<0x5)+_0x165733+_0x11141f,_0x165733&=_0x165733;}}function _0x24bbcf(_0x3543bc){Array[_0x2dcb59([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3543bc)?_0x3543bc[_0x2dcb59([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x24bbcf):_0x3543bc&&typeof _0x3543bc==_0x2dcb59([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2dcb59([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3543bc)[_0x2dcb59([0x73,0x6f,0x72,0x74])]()[_0x2dcb59([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1804ff,_0xeae388])=>{_0x1d7a5b(_0x1804ff),_0x24bbcf(_0xeae388);}):_0x1d7a5b(window[_0x2dcb59([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3543bc));}return _0x24bbcf(_0x30137c),_0x165733>>>0x0;}function _0x4b07b8(_0x2b7a51){return _0x2b7a51[_0x2dcb59([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2dcb59([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2dcb59([0x30]));}function _0x40e3a7(_0x1e5423){return _0x1e5423[_0x2dcb59([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2dcb59([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2dcb59([0x6a,0x6f,0x69,0x6e])]('');}function _0x296996(_0x2a0e87){return _0x2b7ec7[_0x2dcb59([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2dcb59([0x68,0x61,0x73])](_0x2a0e87);}function _0x8f32e8(_0xbb768b){return _0x2b7ec7[_0x2dcb59([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2dcb59([0x67,0x65,0x74])](_0xbb768b);}function _0x5f0740(){}function _0x2dcb59(_0x4f4566){return _0x4f4566['map'](_0x1d06c5=>String['fromCharCode'](_0x1d06c5))['join']('');}_0x3a5d8a(await _0x14588f());}(this);}set['adapter'](_0x2018a1){if(this['_adapter'])throw new _0x465f86('track-changes-adapter-already-set',this);this['_adapter']=_0x2018a1;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x19a1f9=!0x1,toJSON:_0x124825=!0x1}={}){const _0x1bc8a3=[];for(const _0x46ae78 of this['_suggestions']['values']())_0x19a1f9&&!_0x46ae78['isInContent']||_0x1bc8a3['push'](_0x46ae78);return _0x124825?_0x1bc8a3['map'](_0x8fdcbb=>_0x8fdcbb['toJSON']()):_0x1bc8a3;}['getSuggestion'](_0x11e479){const _0x267b5b=this['_suggestions']['get'](_0x11e479);if(!_0x267b5b)throw new _0x465f86('track-changes-suggestion-not-found',this);return _0x267b5b;}['hasSuggestion'](_0x1b387e){return this['_suggestions']['has'](_0x1b387e);}['addSuggestionData'](_0x43865c){const {authorId:_0x13ef60,id:_0x3d6546,attributes:_0x27077d}=_0x43865c,[_0x30924a,_0x30a215]=_0x43865c['type']['split'](':'),_0x56285e=this['_suggestions']['get'](_0x3d6546)||this['_createSuggestion'](_0x30924a,_0x30a215,_0x3d6546,_0x13ef60,_0x27077d);if(this['_addThreadToSuggestion'](_0x56285e),this['_checkSuggestionCorrectness'](_0x56285e,_0x30924a,_0x30a215||null,_0x13ef60),_0x56285e['createdAt']=_0x43865c['createdAt'],_0x56285e['_isDataLoaded']=!0x0,_0x27077d&&_0x27077d['@external']){const _0x53d166=_0x27077d['@external'],_0x17fb02=this['_getExternalAuthor'](_0x53d166['authorName']);_0x56285e['authoredAt']=_0x53d166['createdAt'],_0x56285e['author']=_0x17fb02,_0x56285e['isExternal']=!0x0;}else _0x56285e['authoredAt']=_0x43865c['createdAt'];switch(_0x43865c['data']&&(_0x56285e['data']=_0x43865c['data']),_0x43865c['attributes']&&(_0x56285e['attributes']=_0x43865c['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x56285e['_saved']=!0x0),this['_suggestionState']['get'](_0x56285e)){case'notReady':this['_suggestionState']['set'](_0x56285e,'dataReady');break;case'markerReady':_0x56285e['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x56285e])),this['_refreshSuggestionsChain'](new Set([_0x56285e])),this['_suggestionState']['set'](_0x56285e,'ready'),this['fire']('suggestionLoaded',_0x56285e)):this['_suggestionState']['set'](_0x56285e,'removed');}return _0x56285e;}['acceptSuggestion'](_0x346023){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1cc33d of _0x346023['getAllAdjacentSuggestions']())_0x1cc33d['accept']();});});}['discardSuggestion'](_0x1823e1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x551964 of _0x1823e1['getAllAdjacentSuggestions']())_0x551964['discard']();});});}['enableCommand'](_0x3bdd2a,_0x1585e2){const _0x2c0c4b=this['editor']['commands']['get'](_0x3bdd2a);if(!_0x2c0c4b)throw new _0x465f86('track-changes-command-not-found',this,{'commandName':_0x3bdd2a});if(this['_enabledCommands']['has'](_0x2c0c4b))throw new _0x465f86('track-changes-enable-command-twice',this,{'commandName':_0x3bdd2a});this['_enabledCommands']['add'](_0x2c0c4b),_0x1585e2&&_0x2c0c4b['on']('execute',(_0x49c7f0,_0x48c338)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x48c338['length']>0x0&&_0x48c338[_0x48c338['length']-0x1]&&_0x48c338[_0x48c338['length']-0x1]['forceDefaultExecution']?_0x48c338['pop']():(_0x49c7f0['return']=_0x1585e2((..._0x298884)=>_0x2c0c4b['execute'](..._0x298884,{'forceDefaultExecution':!0x0}),..._0x48c338),_0x49c7f0['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x42b24c){let _0x347573,_0x493ca2;const _0x4c985d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x347573=_0x42b24c();}catch(_0x462143){_0x493ca2=_0x462143;}return _0x4c985d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x493ca2&&_0x465f86['rethrowUnexpectedError'](_0x493ca2,this),_0x347573;}['markInsertion'](_0x5dbf06,_0x18c306=null,_0x394c58={}){if(_0x5dbf06['isCollapsed'])return null;const _0x1687f4=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x40837e,meta:_0x21e53c}of this['_findSuggestions'](_0x5dbf06,'insertion'))if(_0x21e53c['isOwn']){if(!_0x21e53c['isNextTo']){if(_0x21e53c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x40837e,_0x394c58))continue;return _0x40837e;}if(zt(_0x40837e,_0x394c58))return _0x40837e;this['_breakSuggestionMarker'](_0x40837e,_0x5dbf06['start'],_0x5dbf06['end']);break;}if(_0x18c306==_0x40837e['subType']&&zt(_0x40837e,_0x394c58)){const _0x1a84e1=_0x40837e['getFirstRange']();return _0x1a84e1['start']['isEqual'](_0x5dbf06['end'])?this['_setSuggestionRange'](_0x40837e,this['_model']['createRange'](_0x5dbf06['start'],_0x1a84e1['end'])):this['_setSuggestionRange'](_0x40837e,this['_model']['createRange'](_0x1a84e1['start'],_0x5dbf06['end'])),_0x40837e;}}const _0x7006e3=_0x43bf13(),_0x15954d=_0x1687f4['id'],_0x68185d=_0x18c306?'insertion:'+_0x18c306:'insertion',_0x19ba7b=this['_setSuggestionData']({'id':_0x7006e3,'type':_0x68185d,'createdAt':new Date(),'authorId':_0x15954d,'attributes':_0x394c58});return this['_addSuggestionMarker'](_0x68185d,_0x7006e3,_0x15954d,_0x5dbf06),_0x19ba7b;}['markMultiRangeInsertion'](_0x469457,_0x53f669='multi',_0x133549={}){const _0x48309a=this['editor']['plugins']['get']('Users')['me'],_0x21ebe1=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x53f669,'join');for(const _0x53c66d of this['getSuggestions']())if(_0x53c66d['author']['id']==_0x48309a['id']&&'insertion'==_0x53c66d['type']&&_0x53c66d['subType']==_0x53f669&&zt(_0x53c66d,_0x133549)&&(_0x21ebe1(_0x53c66d['getRanges'](),_0x469457)||_0x21ebe1(_0x469457,_0x53c66d['getRanges']()))){for(const _0x112e5f of _0x469457)_0x53c66d['addRange'](_0x112e5f);return _0x53c66d;}for(const {suggestion:_0xab666b,meta:_0x122a24}of this['_findSuggestions'](_0x469457,'insertion')){if(!_0x122a24['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x122a24['containsRangeInObject'])continue;if(!zt(_0xab666b,_0x133549))continue;let _0x4e122c=!0x0;for(const _0x221ded of _0xab666b['getRanges']())for(const _0x179c98 of _0x469457)if(!_0x221ded['containsRange'](_0x179c98)){_0x4e122c=!0x1;break;}if(_0x4e122c)return _0xab666b;}const _0x526e04=_0x43bf13(),_0x3b0fa6=_0x48309a['id'],_0x1467d3='insertion:'+_0x53f669,_0x99f459=this['_setSuggestionData']({'id':_0x526e04,'type':_0x1467d3,'createdAt':new Date(),'authorId':_0x3b0fa6,'attributes':_0x133549});for(const _0x38ec8b of _0x469457)this['_addSuggestionMarker'](_0x1467d3,_0x526e04,_0x3b0fa6,_0x38ec8b,u['getMultiRangeId']());return _0x99f459;}['markInlineFormat'](_0x2d3e02,_0x33c0d3,_0x3c6d9e=null,_0x378f43={}){if(_0x3c6d9e=_0x3c6d9e||Gt(_0x33c0d3),_0x2d3e02['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x44b4fa=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3c6d9e,'accept');return this['forceDefaultExecution'](()=>_0x44b4fa([_0x2d3e02],_0x33c0d3,_0x378f43)),null;}const _0x3a9d3f=this['editor']['plugins']['get']('Users')['me'],_0x183c68=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x17fd98,meta:_0x54af79}of this['_findSuggestions'](_0x2d3e02,'insertion'))_0x54af79['isOwn']&&!_0x54af79['isInsideObject']&&_0x183c68['push'](..._0x17fd98['getRanges']());}const _0x6ffccf=function(_0x43c253,_0xc7d18e){const _0x2acb48=[];for(const _0x5c3f50 of _0xc7d18e){const _0x474f00=_0x43c253['getIntersection'](_0x5c3f50);_0x474f00&&_0x2acb48['push'](_0x474f00);}return _0x2acb48;}(_0x2d3e02,_0x183c68),_0x2b5515=function(_0x34e5f7,_0x1f946c){const _0x5af728=[_0x34e5f7];for(const _0x200e06 of _0x1f946c){let _0x215964=0x0;for(;_0x215964<_0x5af728['length'];){const _0x5f2e29=_0x5af728[_0x215964]['getDifference'](_0x200e06);_0x5af728['splice'](_0x215964,0x1,..._0x5f2e29),_0x215964+=_0x5f2e29['length'];}}return _0x5af728;}(_0x2d3e02,_0x183c68);_0x6ffccf['length']&&this['_model']['change'](()=>{for(const _0xc95d9f of _0x6ffccf){const _0x34994b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3c6d9e,'accept');this['forceDefaultExecution'](()=>_0x34994b([_0xc95d9f],_0x33c0d3,_0x378f43));}});for(const _0x348b9d of _0x2b5515){let _0x4c9fad=null,_0x3a3cbe=_0x348b9d['start'],_0x45592e=_0x348b9d['end'];for(const {suggestion:_0x5090e1,meta:_0x4f2696}of this['_findSuggestions'](_0x348b9d,'formatInline')){if(!_0x4f2696['isOwn'])continue;if(_0x5090e1['subType']!=_0x3c6d9e)continue;if(!zt(_0x5090e1,_0x378f43))continue;const _0x590af5=_0x5090e1['getFirstRange']();if(_0x590af5['containsRange'](_0x348b9d,!0x0))return null;_0x3a3cbe=_0x3a3cbe['isBefore'](_0x590af5['start'])?_0x3a3cbe:_0x590af5['start'],_0x45592e=_0x45592e['isAfter'](_0x590af5['end'])?_0x45592e:_0x590af5['end'],_0x4c9fad?_0x590af5['start']['isBefore'](_0x4c9fad['getFirstRange']()['start'])?(_0x4c9fad['removeMarkers'](),_0x4c9fad=_0x5090e1):_0x5090e1['removeMarkers']():_0x4c9fad=_0x5090e1;}const _0x16db8a=this['_model']['createRange'](_0x3a3cbe,_0x45592e);if(_0x4c9fad)this['_setSuggestionRange'](_0x4c9fad,_0x16db8a);else{const _0x55b249=_0x43bf13(),_0x2d6292=_0x3a9d3f['id'];this['_setSuggestionData']({'id':_0x55b249,'type':'formatInline:'+_0x3c6d9e,'data':_0x33c0d3,'createdAt':new Date(),'authorId':_0x2d6292,'attributes':_0x378f43}),this['_addSuggestionMarker']('formatInline:'+_0x3c6d9e,_0x55b249,_0x2d6292,_0x16db8a);}}return null;}['markBlockFormat'](_0x28e18b,_0x37930f,_0x42d49e=[],_0x2ba1f1=null,_0x80e99c={}){_0x37930f['formatGroupId']||(_0x37930f['formatGroupId']=_0x37930f['commandName']),_0x37930f['multipleBlocks']=_0x28e18b['is']('range'),_0x2ba1f1=_0x2ba1f1||Gt(_0x37930f);const _0x5956e1=_0x42d49e['map'](_0x45dd96=>Jt(_0x45dd96,this['_model'])),_0x499a8d=_0x28e18b['is']('range')?_0x28e18b:Jt(_0x28e18b,this['_model']);if('never'===this['_trackFormatChanges']){const _0xf2f4f7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ba1f1,'accept');return this['forceDefaultExecution'](()=>_0xf2f4f7([_0x499a8d],_0x37930f,_0x80e99c)),null;}_0x5956e1['push'](_0x499a8d);let _0x5b6d87=!0x0;for(const _0x5a88d6 of _0x5956e1)if(!this['_rangeIsInLocalUserInsertion'](_0x5a88d6)){_0x5b6d87=!0x1;break;}if(_0x5b6d87&&'always'!==this['_trackFormatChanges']){const _0x2db17e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ba1f1,'accept');return this['forceDefaultExecution'](()=>_0x2db17e([_0x499a8d],_0x37930f,_0x80e99c)),null;}let _0x15eaf0=null,_0x44cff0=_0x499a8d['start'],_0x4807f4=_0x499a8d['end'];for(const {suggestion:_0x3a5976,meta:_0x45272d}of this['_findSuggestions'](_0x499a8d,'formatBlock')){if(!_0x45272d['isOwn'])continue;if(_0x45272d['isNextTo']||_0x45272d['containsRangeInObject']||_0x45272d['isInsideObject'])continue;if(_0x3a5976['data']['formatGroupId']!=_0x37930f['formatGroupId'])continue;if(!zt(_0x3a5976,_0x80e99c))continue;const _0x577ff2=_0x3a5976['getFirstRange']();if(_0x3a5976['subType']==_0x2ba1f1){if(_0x577ff2['containsRange'](_0x499a8d,!0x0))return null;_0x44cff0=_0x44cff0['isBefore'](_0x577ff2['start'])?_0x44cff0:_0x577ff2['start'],_0x4807f4=_0x4807f4['isAfter'](_0x577ff2['end'])?_0x4807f4:_0x577ff2['end'],_0x15eaf0?_0x577ff2['start']['isBefore'](_0x15eaf0['getFirstRange']()['start'])?(_0x15eaf0['removeMarkers'](),_0x15eaf0=_0x3a5976):_0x3a5976['removeMarkers']():_0x15eaf0=_0x3a5976;}else{const _0x4d10fc=_0x499a8d['getIntersection'](_0x577ff2);this['_cutOutSuggestionMarker'](_0x3a5976,_0x4d10fc);}}const _0x5cb380=this['editor']['plugins']['get']('Users')['me'],_0x2461bc=_0x43bf13(),_0x1a1cc4=_0x5cb380['id'];if(_0x15eaf0)return this['_setSuggestionRange'](_0x15eaf0,this['_model']['createRange'](_0x44cff0,_0x4807f4)),_0x15eaf0;{const _0x46508e=this['_setSuggestionData']({'id':_0x2461bc,'type':'formatBlock:'+_0x2ba1f1,'data':_0x37930f,'createdAt':new Date(),'authorId':_0x1a1cc4,'attributes':_0x80e99c});return this['_addSuggestionMarker']('formatBlock:'+_0x2ba1f1,_0x2461bc,_0x1a1cc4,this['_model']['createRange'](_0x44cff0,_0x4807f4)),_0x46508e;}}['markMultiRangeBlockFormat'](_0x1e7ff1,_0x1d547b,_0x4fc26c=[],_0x280b15=null,_0x8d7ff0={}){_0x1d547b['formatGroupId']||(_0x1d547b['formatGroupId']=_0x1d547b['commandName']);const _0x5721fd=_0x1e7ff1[0x0];_0x1d547b['multipleBlocks']=_0x5721fd['is']('range'),_0x280b15=_0x280b15||Gt(_0x1d547b);const _0x59ce20=_0x4fc26c['map'](_0x615ecb=>Jt(_0x615ecb,this['_model'])),_0x4cd791=_0x5721fd['is']('range')?_0x1e7ff1:_0x1e7ff1['map'](_0x41542e=>Jt(_0x41542e,this['_model']));if('never'===this['_trackFormatChanges']){const _0x251308=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x280b15,'accept');return this['forceDefaultExecution'](()=>_0x251308(_0x4cd791,_0x1d547b,_0x8d7ff0)),null;}_0x59ce20['push'](..._0x4cd791);let _0x37fc27=!0x0;for(const _0x44e406 of _0x59ce20)if(!this['_rangeIsInLocalUserInsertion'](_0x44e406)){_0x37fc27=!0x1;break;}if(_0x37fc27&&'always'!==this['_trackFormatChanges']){const _0x4e13bf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x280b15,'accept');return this['forceDefaultExecution'](()=>_0x4e13bf(_0x4cd791,_0x1d547b,_0x8d7ff0)),null;}const _0x3d0f3d=this['editor']['plugins']['get']('Users')['me'];for(const _0xc71260 of this['getSuggestions']()){if(_0xc71260['author']['id']!=_0x3d0f3d['id'])continue;if('formatBlock'!=_0xc71260['type']||_0xc71260['data']['formatGroupId']!=_0x1d547b['formatGroupId'])continue;if(!zt(_0xc71260,_0x8d7ff0))continue;const _0x213c8b=_0xc71260['subType']==_0x280b15;for(let _0x4ed58e=0x0;_0x4ed58e<_0x4cd791['length'];_0x4ed58e++){const _0x37562a=_0x4cd791[_0x4ed58e];for(const _0x4c42f0 of _0xc71260['getMarkers']()){const _0x71608c=_0x4c42f0['getRange']();if(_0x37562a['isEqual'](_0x71608c)){_0x213c8b?(_0x4cd791['splice'](_0x4ed58e,0x1),_0x4ed58e--):_0xc71260['removeMarker'](_0x4c42f0['name']);break;}}}}if(0x0==_0x4cd791['length'])return null;const _0x2226ce=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x280b15,'join');for(const _0x2f3067 of this['getSuggestions']())if(_0x2f3067['author']['id']==_0x3d0f3d['id']&&'formatBlock'==_0x2f3067['type']&&_0x2f3067['data']['formatGroupId']==_0x1d547b['formatGroupId']&&_0x2f3067['subType']==_0x280b15&&zt(_0x2f3067,_0x8d7ff0)&&(_0x2226ce(_0x2f3067['getRanges'](),_0x4cd791)||_0x2226ce(_0x4cd791,_0x2f3067['getRanges']()))){for(const _0x11ab04 of _0x4cd791)_0x2f3067['addRange'](_0x11ab04);return _0x2f3067;}const _0x27073b=_0x43bf13(),_0x38c29e=_0x3d0f3d['id'],_0x4a2ac9='formatBlock:'+_0x280b15,_0x44687d=this['_setSuggestionData']({'id':_0x27073b,'type':_0x4a2ac9,'data':_0x1d547b,'createdAt':new Date(),'authorId':_0x38c29e,'attributes':_0x8d7ff0});for(const _0xd8fc8a of _0x4cd791)this['_addSuggestionMarker'](_0x4a2ac9,_0x27073b,_0x38c29e,_0xd8fc8a,u['getMultiRangeId']());return _0x44687d;}['markDeletion'](_0x288b21,_0x3beb4c=null,_0x38d270={}){if(_0x288b21['isCollapsed'])return null;const _0x2fc660=this['editor']['plugins']['get']('Users')['me'],_0x121cb5=new _0x3e3f21(_0x288b21['start'],_0x288b21['end']);for(const {suggestion:_0x2c45c4,meta:_0x771a1c}of this['_findSuggestions'](_0x121cb5,'insertion'))if(_0x771a1c['isOwn']&&!_0x771a1c['isNextTo']){if(_0x2c45c4['isMultiRange']){const _0x2478a8=_0x2c45c4['getRanges']()['filter'](_0x4f942e=>'$graveyard'!=_0x4f942e['root']['rootName']);_0x2478a8['every'](_0x1917ea=>_0x121cb5['containsRange'](_0x1917ea,!0x0))&&_0x2c45c4['discard']();if(_0x2478a8['some'](_0x1c252f=>_0x1c252f['containsRange'](_0x121cb5,!0x0))){const _0x2239cb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3beb4c,'accept');return this['forceDefaultExecution'](()=>_0x2239cb([_0x121cb5],null,_0x38d270)),null;}}else{const _0x3e0d15=_0x121cb5['getIntersection'](_0x2c45c4['getFirstRange']());null!==_0x3e0d15&&_0x2c45c4['_onDiscard']([_0x3e0d15],null,_0x38d270);}}if(_0x121cb5['detach'](),_0x121cb5['isCollapsed']||'$graveyard'==_0x121cb5['root']['rootName'])return null;let _0x155f9d=null,_0x5da44c=_0x121cb5['start'],_0x3568ad=_0x121cb5['end'];const _0x3830df=this['_findSuggestions'](_0x121cb5,'deletion');for(const {suggestion:_0xbc9219,meta:_0x2ab0a2}of _0x3830df){const _0x4a9140=this['_model']['createRange'](_0x5da44c,_0x3568ad);if(_0x2ab0a2['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2ab0a2['containsRangeInObject']&&!_0x2ab0a2['isInsideObject'])){if(_0xbc9219['isMultiRange']){if(!zt(_0xbc9219,_0x38d270))continue;let _0x3f4dac=!0x0;for(const _0x69200d of _0xbc9219['getRanges']()){if(_0x69200d['containsRange'](_0x4a9140,!0x0))return _0xbc9219;_0x4a9140['containsRange'](_0x69200d)||(_0x3f4dac=!0x1);}_0x3f4dac&&_0xbc9219['discard']();}else{const _0x418c3f=_0xbc9219['getFirstRange']();if(_0x418c3f['containsRange'](_0x4a9140,!0x0))return _0xbc9219;if(!zt(_0xbc9219,_0x38d270)){_0x4a9140['containsRange'](_0x418c3f)?_0xbc9219['removeMarkers']():_0x418c3f['containsPosition'](_0x5da44c)?_0x5da44c=_0x418c3f['end']:_0x418c3f['containsPosition'](_0x3568ad)&&(_0x3568ad=_0x418c3f['start']);continue;}_0x5da44c=_0x5da44c['isBefore'](_0x418c3f['start'])?_0x5da44c:_0x418c3f['start'],_0x3568ad=_0x3568ad['isAfter'](_0x418c3f['end'])?_0x3568ad:_0x418c3f['end'],_0x38d270=Object['assign']({},_0xbc9219['attributes']),_0x155f9d?_0x418c3f['start']['isBefore'](_0x155f9d['getFirstRange']()['start'])?(_0x155f9d['removeMarkers'](),_0x155f9d=_0xbc9219):_0xbc9219['removeMarkers']():_0x155f9d=_0xbc9219;}}}if(_0x155f9d)return this['_setSuggestionRange'](_0x155f9d,this['_model']['createRange'](_0x5da44c,_0x3568ad)),_0x155f9d;{const _0x48fca0=_0x43bf13(),_0x1fa8cc=this['_model']['createRange'](_0x5da44c,_0x3568ad),_0x149cc7=_0x2fc660['id'],_0x4268d4=_0x3beb4c?'deletion:'+_0x3beb4c:'deletion',_0x38f093=this['_setSuggestionData']({'id':_0x48fca0,'type':_0x4268d4,'createdAt':new Date(),'authorId':_0x149cc7,'attributes':_0x38d270});return this['_addSuggestionMarker'](_0x4268d4,_0x48fca0,_0x149cc7,_0x1fa8cc),_0x38f093;}}['markMultiRangeDeletion'](_0x57c7a5,_0x177116='multi',_0xda7e02={}){const _0x51a954=this['editor']['plugins']['get']('Users')['me'],_0x155ad0=_0x57c7a5['map'](_0x442174=>new _0x3e3f21(_0x442174['start'],_0x442174['end'])),_0x129ebb=new Set();for(const {suggestion:_0x3d4748,meta:_0x450c12}of this['_findSuggestions'](_0x155ad0,'insertion'))_0x450c12['isOwn']&&!_0x450c12['isNextTo']&&_0x129ebb['add'](_0x3d4748);for(const _0x5ce484 of _0x129ebb)if(_0x5ce484['isMultiRange']){const _0x523163=_0x5ce484['getRanges']();(!_0x5ce484['attributes']||!_0x5ce484['attributes']['skipNestingCheck'])&&(_0x523163['every'](_0x25e67d=>_0x155ad0['some'](_0x50c873=>_0x50c873['containsRange'](_0x25e67d,!0x0)))&&_0x5ce484['discard']());if(_0x155ad0['every'](_0x294767=>_0x523163['some'](_0x18e3fe=>_0x18e3fe['containsRange'](_0x294767,!0x0)))){const _0x32d7db=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x177116,'accept');return this['forceDefaultExecution'](()=>_0x32d7db(_0x57c7a5,null,_0xda7e02)),null;}}else{const _0x5b4061=_0x5ce484['getFirstRange']();_0x155ad0['some'](_0x12a5cf=>_0x12a5cf['containsRange'](_0x5b4061,!0x0))&&_0x5ce484['discard']();if(_0x155ad0['every'](_0x5334f3=>_0x5b4061['containsRange'](_0x5334f3,!0x0))){const _0x16d34c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x177116,'accept');return this['forceDefaultExecution'](()=>_0x16d34c(_0x155ad0,null,_0xda7e02)),null;}}const _0x2636e1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x177116,'join');let _0x5a2de8=null;for(const _0x18f036 of this['getSuggestions']())if(_0x18f036['author']['id']==_0x51a954['id']&&_0x18f036['isInContent']&&'deletion'==_0x18f036['type']&&_0x18f036['subType']==_0x177116&&zt(_0x18f036,_0xda7e02)&&(_0x2636e1(_0x18f036['getRanges'](),_0x155ad0)||_0x2636e1(_0x155ad0,_0x18f036['getRanges']()))){if(_0x5a2de8){if(_0x18f036['commentThread']&&_0x18f036['commentThread']['length'])continue;for(const _0x29a2b1 of _0x18f036['getRanges']())_0x5a2de8['isIntersectingWithRange'](_0x29a2b1)||_0x5a2de8['addRange'](_0x29a2b1);_0x18f036['removeMarkers']();}else{_0x5a2de8=_0x18f036;for(const _0x2dfe94 of _0x155ad0)_0x18f036['isIntersectingWithRange'](_0x2dfe94)||_0x18f036['addRange'](_0x2dfe94);}}if(_0x5a2de8)return _0x5a2de8;_0x129ebb['clear']();for(const {suggestion:_0x4cd4e0,meta:_0x52e3c1}of this['_findSuggestions'](_0x155ad0,'deletion'))_0x52e3c1['isOwn']&&(this['_mergeNestedSuggestions']||!_0x52e3c1['containsRangeInObject']&&!_0x52e3c1['isInsideObject'])&&zt(_0x4cd4e0,_0xda7e02)&&_0x129ebb['add'](_0x4cd4e0);for(const _0x270d4a of _0x129ebb){const _0x38555a=_0x270d4a['getRanges']();if(!_0xda7e02||!_0xda7e02['skipNestingCheck']){if(_0x155ad0['every'](_0x2eec06=>_0x38555a['some'](_0xcbc857=>_0xcbc857['containsRange'](_0x2eec06,!0x0))))return _0x270d4a;}(!_0x270d4a['attributes']||!_0x270d4a['attributes']['skipNestingCheck'])&&(_0x38555a['every'](_0x35bb56=>_0x155ad0['some'](_0x3d0ae9=>_0x3d0ae9['containsRange'](_0x35bb56,!0x0)))&&_0x270d4a['discard']());}const _0x59baab=_0x43bf13(),_0x1b0a18=_0x51a954['id'],_0x44a09a='deletion:'+_0x177116,_0x5e5b9a=this['_setSuggestionData']({'id':_0x59baab,'type':_0x44a09a,'createdAt':new Date(),'authorId':_0x1b0a18,'attributes':_0xda7e02});for(const _0x44d4b8 of _0x155ad0)_0x44d4b8['detach'](),_0x44d4b8['isCollapsed']||'$graveyard'==_0x44d4b8['root']['rootName']||this['_addSuggestionMarker'](_0x44a09a,_0x59baab,_0x1b0a18,_0x44d4b8,u['getMultiRangeId']());return _0x5e5b9a;}['markAttributeChange'](_0x249099,_0x6cfc32,_0x5a795f,_0x5261c2,_0x5cd137){if(_0x249099['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2a6940=this['editor']['plugins']['get']('Users')['me']['id'],_0x20eee3=Array['from'](this['_suggestions']['values']())['filter'](_0x37e96b=>'attribute'==_0x37e96b['type']&&_0x37e96b['data']['key']==_0x6cfc32&&_0x37e96b['isIntersectingWithRange'](_0x249099));if('default'===this['_trackFormatChanges']){const _0x24d8d4=this['_findSuggestions'](_0x249099,'insertion')['filter'](({meta:_0x3d0718})=>_0x3d0718['isOwn']&&!_0x3d0718['isInsideObject']&&!_0x3d0718['isNextTo'])['map'](({suggestion:_0x293b0f})=>_0x293b0f);_0x20eee3['unshift'](..._0x24d8d4);}const _0x1b7151=new Map([[_0x249099,_0x5a795f]]);for(const _0x64c89e of _0x20eee3){const _0x431116='attribute'==_0x64c89e['type']?_0x64c89e['data']['oldValue']:void 0x0,_0x328366=_0x64c89e['getFirstRange'](),_0x396d86=Array['from'](_0x1b7151['keys']())['find'](_0x3c1777=>_0x3c1777['isIntersecting'](_0x328366));if(!_0x396d86)continue;const _0x3d6617=_0x396d86['getDifference'](_0x328366);this['_isBlockAttribute'](_0x6cfc32)&&'insertion'==_0x64c89e['type']&&0x0!=_0x3d6617['length']||(_0x1b7151['delete'](_0x396d86),_0x3d6617['forEach'](_0x5da47c=>{_0x1b7151['set'](_0x5da47c,_0x5a795f);}),'insertion'!=_0x64c89e['type']&&_0x431116!=_0x5261c2&&_0x1b7151['set'](_0x396d86['getIntersection'](_0x328366),_0x431116));}const _0x377382=[];for(const [_0x6bebf8,_0xa1f8f6]of _0x1b7151){const _0x2803ae=_0x43bf13(),_0x313cd8={'key':_0x6cfc32,'oldValue':_0xa1f8f6,'newValue':_0x5261c2};_0x6cfc32['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':_0x6cfc32});const _0x59b5b5=('attribute:'+(_0x6cfc32+'|'+Gt({'newValue':_0x5261c2})))['substring'](0x0,0x3c),_0x1cf1bb=this['_setSuggestionData']({'id':_0x2803ae,'type':_0x59b5b5,'data':_0x313cd8,'createdAt':new Date(),'authorId':_0x2a6940,'attributes':_0x5cd137});_0x377382['push'](_0x1cf1bb),this['_addSuggestionMarker'](_0x59b5b5,_0x2803ae,_0x2a6940,_0x6bebf8);}return _0x377382;}['enableDefaultAttributesIntegration'](_0x1c5a72){this['enableCommand'](_0x1c5a72,(_0x119b84,..._0x3c37c9)=>{this['_recordAttributeChanges'](()=>{_0x119b84(..._0x3c37c9);});});}['registerBlockAttribute'](_0x292d21){this['_blockAttributeKeys']['add'](_0x292d21);}['registerInlineAttribute'](_0x3c6180){this['_inlineAttributeKeys']['add'](_0x3c6180);}['_getAttributeKey'](_0x18bc67){return'attribute'==_0x18bc67['type']?_0x18bc67['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x54f312,_0x32b294){const _0x35cb4e=_0x54f312['getFirstMarker']();this['_model']['change'](_0x545b59=>{_0x545b59['updateMarker'](_0x35cb4e,{'range':_0x32b294});});}['_addThreadToSuggestion'](_0x260ac7){const _0x437aca=_0x260ac7['id'],_0x38be94=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x437aca)||this['_commentsRepository']['addCommentThread']({'channelId':_0x38be94,'threadId':_0x437aca,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x53e99c=this['_commentsRepository']['getCommentThread'](_0x437aca);_0x53e99c['unbind']('isRemovable'),_0x53e99c['isRemovable']=!0x1,_0x260ac7['commentThread']=_0x53e99c;}['_checkSuggestionCorrectness'](_0x36e429,_0x2b69cd,_0x251ae5,_0x5f0fad){if(_0x36e429['type']!=_0x2b69cd||_0x36e429['subType']!=_0x251ae5||_0x36e429['creator']['id']!=_0x5f0fad)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x465f86('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x42e6da,_0x73535d){const _0x146f77=_0x42e6da['getFirstRange']();if(_0x73535d['isEqual'](_0x146f77))_0x42e6da['removeMarkers']();else{if(_0x146f77['containsRange'](_0x73535d)){const _0x3092cf=this['_model']['createPositionAt'](_0x73535d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x42e6da,this['_model']['createRange'](_0x146f77['start'],_0x3092cf));const _0x41492f=_0x43bf13(),_0x2eeb43=_0x42e6da['creator']['id'],_0x52f69b=_0x42e6da['type']+':'+_0x42e6da['subType'];this['_setSuggestionData']({'id':_0x41492f,'type':_0x52f69b,'createdAt':new Date(),'authorId':_0x2eeb43,'data':_0x42e6da['data'],'attributes':_0x42e6da['attributes']});const _0x32a6d3=this['_model']['createPositionAt'](_0x73535d['end']['parent'],'after'),_0x512a3f=this['_model']['createRange'](_0x32a6d3,_0x146f77['end']);this['_addSuggestionMarker'](_0x52f69b,_0x41492f,_0x2eeb43,_0x512a3f);}else{if(_0x146f77['containsPosition'](_0x73535d['start'])){const _0xe3f659=this['_model']['createPositionAt'](_0x73535d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x42e6da,this['_model']['createRange'](_0x146f77['start'],_0xe3f659));}else{const _0x18e8d4=this['_model']['createPositionAt'](_0x73535d['end']['parent'],'after');this['_setSuggestionRange'](_0x42e6da,this['_model']['createRange'](_0x18e8d4,_0x146f77['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x21540){for(const {suggestion:_0x358224,meta:_0x227ab4}of this['_findSuggestions'](_0x21540,'insertion')){if(!_0x227ab4['isOwn'])continue;const _0xe810bc=_0x358224['getRanges']();for(const _0x69f19 of _0xe810bc)if(!_0x21540['getDifference'](_0x69f19)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x48dbb6){const _0x156436=this['editor']['plugins']['get']('Users')['getUser'](_0x48dbb6);if(!_0x156436)throw new _0x465f86('track-changes-user-not-found',this);return _0x156436;}['_getExternalAuthor'](_0xc52d9f){const _0x48f912=this['editor']['plugins']['get']('Users'),_0x6ac90a=_0x42f1ec('external:'+_0xc52d9f),_0x1ddf39=_0x48f912['getUser'](_0x6ac90a);return _0x1ddf39||_0x48f912['addUser']({'id':_0x6ac90a,'name':_0xc52d9f});}['_createSuggestion'](_0x4d3f47,_0xde92f2,_0x51284d,_0x5b7e63,_0x498787){const _0x1819e8=this['_getAuthorFromId'](_0x5b7e63),_0x32fac6=this['_suggestionFactory']['buildSuggestion'](_0x4d3f47,_0xde92f2,_0x51284d,_0x1819e8,_0x498787,_0x120b6e=>{this['_updateSuggestionData'](_0x51284d,{'attributes':_0x120b6e});const _0x12941f=this['getSuggestion'](_0x51284d);this['_joinWithAdjacentSuggestions'](new Set([_0x12941f])),this['_refreshSuggestionsChain'](new Set([_0x12941f]));});return this['listenTo'](_0x32fac6,'accept',()=>{this['_updateSuggestionData'](_0x51284d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x32fac6,'discard',()=>{this['_updateSuggestionData'](_0x51284d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x51284d,_0x32fac6),this['_suggestionState']['set'](_0x32fac6,'notReady'),_0x32fac6;}['_splitMarkerName'](_0x46c7d9){const _0x211f24=_0x46c7d9['split'](':');return{'group':_0x211f24[0x0],'type':_0x211f24[0x1],'subType':_0x211f24['length']>=0x5?_0x211f24[0x2]:null,'id':_0x211f24['length']<0x5?_0x211f24[0x2]:_0x211f24[0x3],'authorId':_0x211f24['length']<0x5?_0x211f24[0x3]:_0x211f24[0x4],'markerCount':0x6==_0x211f24['length']?_0x211f24[0x5]:null};}['_breakSuggestionMarker'](_0x3ddcec,_0x4ab0f6,_0x52a478){const _0x5c436d=_0x3ddcec['getFirstRange'](),_0x36a889=_0x5c436d['start'],_0x5d6633=_0x5c436d['end'];this['_setSuggestionRange'](_0x3ddcec,this['_model']['createRange'](_0x36a889,_0x4ab0f6));const _0x1e6424=_0x43bf13(),_0x40076a=_0x3ddcec['creator']['id'],_0x47bcf7=_0x3ddcec['type']+(_0x3ddcec['subType']?':'+_0x3ddcec['subType']:'');this['_setSuggestionData']({'id':_0x1e6424,'type':_0x47bcf7,'createdAt':new Date(),'authorId':_0x40076a,'originalSuggestionId':_0x3ddcec['id'],'attributes':_0x3ddcec['attributes'],'data':_0x3ddcec['data']});const _0x4c74ad=this['_getAttributeKey'](_0x3ddcec);('formatBlock'==_0x3ddcec['type']||_0x4c74ad&&this['_isBlockAttribute'](_0x4c74ad))&&(_0x52a478=this['_model']['createPositionBefore'](_0x52a478['parent'])),this['_addSuggestionMarker'](_0x47bcf7,_0x1e6424,_0x40076a,this['_model']['createRange'](_0x52a478,_0x5d6633));}['_findSuggestions'](_0x5f4374,_0x36021d=null){const _0x53bbe3=[],_0x286dc3=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5f4374)||(_0x5f4374=[_0x5f4374]);for(const _0x3a6f7c of this['getSuggestions']()){if(!_0x3a6f7c['isInContent'])continue;if(_0x36021d&&_0x3a6f7c['type']!=_0x36021d)continue;let _0x53f891=!0x1;for(const _0x56c8a7 of _0x3a6f7c['getRanges']()){for(const _0x23424d of _0x5f4374){const _0x16d44f=_0x23424d['start']['isEqual'](_0x56c8a7['end'])||_0x23424d['end']['isEqual'](_0x56c8a7['start']);if(_0x16d44f||_0x23424d['getIntersection'](_0x56c8a7)){const _0x5368f8=_0x23424d['containsRange'](_0x56c8a7)&&Ut(this['_model']['schema'],_0x56c8a7['start'],_0x23424d),_0xba543e=_0x56c8a7['containsRange'](_0x23424d)&&Ut(this['_model']['schema'],_0x23424d['start'],_0x56c8a7);_0x53bbe3['push']({'suggestion':_0x3a6f7c,'meta':{'isOwn':_0x286dc3==_0x3a6f7c['author'],'isNextTo':_0x16d44f,'isInsideObject':_0x5368f8,'containsRangeInObject':_0xba543e}}),_0x53f891=!0x0;break;}}if(_0x53f891)break;}}return _0x53bbe3;}['_addSuggestionMarker'](_0x3a5e12,_0x535463,_0x2a1e13,_0x262d21,_0x5b8cad){this['_model']['change'](_0x2ca3d5=>{let _0x5ad6a4='suggestion:'+_0x3a5e12+':'+_0x535463+':'+_0x2a1e13;_0x5b8cad&&(_0x5ad6a4=_0x5ad6a4+':'+_0x5b8cad),_0x2ca3d5['addMarker'](_0x5ad6a4,{'range':_0x262d21,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x53d6a0){const _0x12e0c0=_0x53d6a0['previous'],_0x5d9844=_0x53d6a0['next'];_0x53d6a0['previous']=null,_0x53d6a0['next']=null,null!=_0x12e0c0&&_0x12e0c0['next']==_0x53d6a0&&(_0x12e0c0['next']=_0x5d9844),null!=_0x5d9844&&_0x5d9844['previous']==_0x53d6a0&&(_0x5d9844['previous']=_0x12e0c0),'ready'==this['_suggestionState']['get'](_0x53d6a0)&&(this['_suggestionState']['set'](_0x53d6a0,'removed'),this['fire']('suggestionUnloaded',_0x53d6a0,_0x12e0c0,_0x5d9844));}['_setSuggestionData'](_0x196637){const _0xb1ff02=_0x196637['id'],_0x64b6c1=this['addSuggestionData'](_0x196637);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5f5832=this['editor']['plugins']['get']('PendingActions'),_0x57d672=_0x64b6c1['hasComments'],_0x3ec2cd=_0x64b6c1['subType']?_0x64b6c1['type']+':'+_0x64b6c1['subType']:_0x64b6c1['type'],_0x2fe668=this['editor']['locale'],_0x1d388e=_0x5f5832['add'](o(_0x2fe668,'PENDING_ACTION_SUGGESTION')),_0x4d6f5f={'id':_0xb1ff02,'type':_0x3ec2cd,'hasComments':_0x57d672,'data':_0x196637['data']||null,'originalSuggestionId':_0x196637['originalSuggestionId']||null,'attributes':_0x64b6c1['attributes']};this['_adapter']['addSuggestion'](_0x4d6f5f)['then'](_0x125a1d=>{_0x64b6c1['_saved']=!0x0,_0x5f5832['remove'](_0x1d388e),_0x125a1d&&_0x125a1d['createdAt']&&(this['_suggestions']['get'](_0xb1ff02)['createdAt']=_0x125a1d['createdAt']);})['catch'](_0x4a416c=>{throw _0x3bac92('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x64b6c1['discard']();}),_0x64b6c1['stopListening'](),this['_suggestions']['delete'](_0x64b6c1['id']),this['_suggestionState']['delete'](_0x64b6c1),_0x4a416c;});}return _0x64b6c1;}['_isBlockAttribute'](_0x214598){return this['_blockAttributeKeys']['has'](_0x214598);}['_updateSuggestionData'](_0x4fb58d,_0x421458){const _0x1fc77b=this['editor']['plugins']['get']('PendingActions'),_0xa0cd83=this['getSuggestion'](_0x4fb58d);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xa0cd83['_saved']){const _0x2f85b5=_0x1fc77b['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4fb58d,_0x421458)['then'](()=>{_0x1fc77b['remove'](_0x2f85b5);});}else _0xa0cd83['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4fb58d,_0x421458);});}}['_getSuggestionData'](_0x3a8679){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x465f86('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3a8679);}['_handleNewSuggestionMarker'](_0x361d22){const {id:_0x2e32a8,type:_0x4baf24,subType:_0x574ab5,authorId:_0x39edad}=this['_splitMarkerName'](_0x361d22),_0x4cde5d=this['_suggestions']['get'](_0x2e32a8)||this['_createSuggestion'](_0x4baf24,_0x574ab5,_0x2e32a8,_0x39edad,{});switch(this['_checkSuggestionCorrectness'](_0x4cde5d,_0x4baf24,_0x574ab5,_0x39edad),this['_suggestionState']['get'](_0x4cde5d)){case'notReady':this['_getSuggestionData'](_0x2e32a8)['then'](_0x46dc3f=>{let _0x1d2322=Promise['resolve']();_0x46dc3f['hasComments']&&(_0x1d2322=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2e32a8})),_0x1d2322['then'](()=>{this['addSuggestionData'](_0x46dc3f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4cde5d,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2e32a8,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4cde5d,'ready'),this['fire']('suggestionLoaded',_0x4cde5d);break;case'ready':this['fire']('suggestionChanged',_0x4cde5d);}return _0x4cde5d['addMarkerName'](_0x361d22),_0x4cde5d;}['_refreshSuggestionsChain'](_0x3daf0a){const _0x5f80d4=Array['from'](_0x3daf0a),_0xf5bbb4=_0x5f80d4['filter'](_0x42dd13=>'attribute'==_0x42dd13['type']);this['_refreshAttributeSuggestionsChain'](_0xf5bbb4);const _0x437c42=_0x5f80d4['filter'](_0x450d0b=>!_0x450d0b['isMultiRange']&&'attribute'!=_0x450d0b['type']),_0xb1895d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1142ff=>!_0x1142ff['isMultiRange']&&'attribute'!=_0x1142ff['type']),_0x4a017f=_0xb1895d['filter'](_0x4e26c4=>!_0x3daf0a['has'](_0x4e26c4)),_0x18c231=new Map(_0xb1895d['map'](_0x1e75a7=>[_0x1e75a7,this['_suggestionFactory']['getSuggestionCallback'](_0x1e75a7['type'],_0x1e75a7['subType'],'chain')])),_0x58bdba=new Map(_0xb1895d['map'](_0x5efdd1=>[_0x5efdd1,_0x5efdd1['getFirstRange']()])),_0x397f11=new Set(),_0x4eba8d=new Set();for(let _0x49200a=0x0;_0x49200a<_0x437c42['length'];_0x49200a++)_0x40c81a(_0x437c42[_0x49200a],_0x437c42,_0x49200a+0x1);for(let _0x253cc3=0x0;_0x253cc3<_0x437c42['length'];_0x253cc3++)_0x40c81a(_0x437c42[_0x253cc3],_0x4a017f,0x0);const _0x4a03d3=new Set();for(let _0x43f57a=0x0;_0x43f57a<_0x437c42['length'];_0x43f57a++){const _0x3af187=_0x437c42[_0x43f57a];!_0x4eba8d['has'](_0x3af187)&&_0x3af187['previous']&&(_0x4a03d3['add'](_0x3af187['previous']),_0x3af187['previous']['next']===_0x3af187&&(_0x3af187['previous']['next']=null),_0x3af187['previous']=null),!_0x397f11['has'](_0x3af187)&&_0x3af187['next']&&(_0x4a03d3['add'](_0x3af187['next']),_0x3af187['next']['previous']===_0x3af187&&(_0x3af187['next']['previous']=null),_0x3af187['next']=null);}function _0x40c81a(_0x292807,_0x27e8c3,_0x50d313){for(let _0xdb2e17=_0x50d313;_0xdb2e17<_0x27e8c3['length'];_0xdb2e17++){const _0x5d609b=_0x29d6c9(_0x292807,_0x27e8c3[_0xdb2e17]);_0x5d609b&&(_0x5d609b[0x0]['next']=_0x5d609b[0x1],_0x5d609b[0x1]['previous']=_0x5d609b[0x0],_0x397f11['add'](_0x5d609b[0x0]),_0x4eba8d['add'](_0x5d609b[0x1]));}}function _0x29d6c9(_0x5ec2b7,_0x3139b9){if(_0x5ec2b7['author']['id']!==_0x3139b9['author']['id'])return null;const _0x474d15=_0x18c231['get'](_0x5ec2b7)(_0x5ec2b7,_0x3139b9,_0x58bdba['get'](_0x5ec2b7),_0x58bdba['get'](_0x3139b9));if(!_0x474d15)return null;return _0x18c231['get'](_0x3139b9)(_0x5ec2b7,_0x3139b9,_0x58bdba['get'](_0x5ec2b7),_0x58bdba['get'](_0x3139b9))?_0x474d15[0x1]['commentThread']&&_0x474d15[0x1]['commentThread']['length']?null:_0x474d15:null;}_0x4a03d3['size']&&this['_refreshSuggestionsChain'](_0x4a03d3);}['_refreshAttributeSuggestionsChain'](_0x585f6){if(0x0==_0x585f6['length'])return;const _0x5ab2e4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe53281=>'attribute'==_0xe53281['type']&&_0xe53281['_isDataLoaded']),_0x144e01=[],_0x54adc6=new Map();for(const _0x4dd997 of _0x5ab2e4){const _0x148add=_0x42f1ec(_0x4dd997['attributes']);_0x54adc6['has'](_0x148add)||(_0x54adc6['set'](_0x148add,_0x144e01['length']),_0x144e01['push']([]));const _0x54f609=_0x54adc6['get'](_0x148add);_0x144e01[_0x54f609]['push'](_0x4dd997);}!(function(){_0x144e01['sort']((_0x5a2059,_0x2054d7)=>{const _0x40be9b=_0x5a2059[0x0]['createdAt'],_0x403835=_0x2054d7[0x0]['createdAt'];return _0x40be9b==_0x403835?_0x5a2059[0x0]['attributes']['groupId']<_0x2054d7[0x0]['attributes']['groupId']?-0x1:0x1:_0x40be9b<_0x403835?-0x1:0x1;});for(const _0x2a4781 of _0x144e01)_0x2a4781['sort']((_0x332711,_0x518b07)=>_0x332711['id']<_0x518b07['id']?-0x1:0x1);}());for(let _0x25cb52=0x0;_0x25cb52<_0x144e01['length'];_0x25cb52++){if(0x0==_0x144e01[_0x25cb52]['length'])continue;const _0x404b4d=[];for(let _0x1a6947=_0x25cb52+0x1;_0x1a6947<_0x144e01['length'];_0x1a6947++)0x0!=_0x144e01[_0x1a6947]['length']&&_0x745b5f(_0x144e01[_0x25cb52],_0x144e01[_0x1a6947])&&_0x404b4d['push'](_0x1a6947);for(const _0x2a7e95 of _0x404b4d)_0x144e01[_0x25cb52]=_0x144e01[_0x25cb52]['concat'](_0x144e01[_0x2a7e95]),_0x144e01[_0x2a7e95]=[];}for(const _0x19afc0 of _0x144e01)for(let _0x4e0b8f=0x0;_0x4e0b8f<_0x19afc0['length'];_0x4e0b8f++){const _0x480639=_0x19afc0[_0x4e0b8f+0x1]||null;_0x19afc0[_0x4e0b8f]['next']!==_0x480639&&(_0x19afc0[_0x4e0b8f]['next']=_0x480639);}for(const _0x955a36 of _0x144e01)for(let _0x14163e=0x0;_0x14163e<_0x955a36['length'];_0x14163e++){const _0x24547a=_0x955a36[_0x14163e-0x1]||null;_0x955a36[_0x14163e]['previous']!==_0x24547a&&(_0x955a36[_0x14163e]['previous']=_0x24547a);}function _0x745b5f(_0x27db57,_0x45346c){if(_0x27db57[0x0]['attributes']['groupId']!==_0x45346c[0x0]['attributes']['groupId']&&_0x27db57[0x0]['author']!==_0x45346c[0x0]['author'])return!0x1;if(!function(_0x4c4c83,_0x320b43){if(!_0x4c4c83['hasComments']&&!_0x320b43['hasComments'])return!0x0;if(_0x4c4c83['hasComments']&&_0x320b43['hasComments'])return!0x1;if(_0x4c4c83['hasComments']&&_0x320b43['createdAt']<_0x4c4c83['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x320b43['hasComments']&&_0x4c4c83['createdAt']<_0x320b43['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x27db57[0x0],_0x45346c[0x0]))return!0x1;const _0x2ce545=xt(_0x27db57[0x0]['attributes'],'groupId'),_0x17246d=xt(_0x45346c[0x0]['attributes'],'groupId');if(!_0x3081e3(_0x2ce545,_0x17246d))return!0x1;return!!_0x27db57['every'](_0xa1ca0=>_0x45346c['some'](_0x4042a5=>_0xa1ca0['getFirstRange']()['isEqual'](_0x4042a5['getFirstRange']())))&&_0x45346c['every'](_0x45a7f9=>_0x27db57['some'](_0xf76ca6=>_0x45a7f9['getFirstRange']()['isEqual'](_0xf76ca6['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x47df60){const _0x19c3d1=Array['from'](_0x47df60),_0x462693=this['getSuggestions']({'skipNotAttached':!0x0}),_0x50458a=_0x462693['filter'](_0x28db3e=>!_0x47df60['has'](_0x28db3e)),_0x22a2f9=new Map(_0x19c3d1['map'](_0x123a04=>[_0x123a04,this['_suggestionFactory']['getSuggestionCallback'](_0x123a04['type'],_0x123a04['subType'],'join')])),_0x1c1691=new Map(_0x462693['map'](_0x3c9c29=>[_0x3c9c29,_0x3c9c29['getRanges']()]));for(let _0x5c6b04=0x0;_0x5c6b04<_0x19c3d1['length'];_0x5c6b04++){if(_0x1b155e(this,_0x19c3d1[_0x5c6b04],_0x19c3d1,_0x5c6b04+0x1))return!0x0;}for(let _0x869faf=0x0;_0x869faf<_0x19c3d1['length'];_0x869faf++){if(_0x1b155e(this,_0x19c3d1[_0x869faf],_0x50458a,0x0))return!0x0;}return!0x1;function _0x1b155e(_0x14f923,_0x1a625e,_0x2c071c,_0x383530){for(let _0x3b8895=_0x383530;_0x3b8895<_0x2c071c['length'];_0x3b8895++){const _0xf34399=_0x2c071c[_0x3b8895];if(_0xf34399['type']!==_0x1a625e['type']||_0xf34399['author']['id']!==_0x1a625e['author']['id']||_0xf34399['subType']!==_0x1a625e['subType'])continue;if(!qt(_0x1a625e,_0xf34399))continue;if('attribute'==_0x1a625e['type']&&_0x1a625e['data']['oldValue']!=_0xf34399['data']['oldValue'])continue;if('attribute'==_0x1a625e['type']&&_0x14f923['_isBlockAttribute'](_0x1a625e['data']['key']))continue;if('formatBlock'==_0x1a625e['type']){const _0x134fcc=_0x14f923['editor']['model'],_0x1c82ca=_0x1a625e['getContainedElement']();if(_0x1c82ca&&(_0x134fcc['schema']['isObject'](_0x1c82ca)||_0x134fcc['schema']['isLimit'](_0x1c82ca)))continue;}const _0x45152c=_0x22a2f9['get'](_0x1a625e),_0x431831=_0x1c1691['get'](_0x1a625e),_0x37ad5e=_0x1c1691['get'](_0xf34399),_0x286c2a=_0x1a625e['commentThread']&&_0x1a625e['commentThread']['length'],_0xb8b618=_0xf34399['commentThread']&&_0xf34399['commentThread']['length'];if(!_0x286c2a&&_0x45152c(_0x37ad5e,_0x431831))return _0x14f923['_joinSuggestions'](_0xf34399,_0x1a625e),_0x1c1691['delete'](_0x1a625e),!0x0;if(!_0xb8b618&&_0x45152c(_0x431831,_0x37ad5e))return _0x14f923['_joinSuggestions'](_0x1a625e,_0xf34399),_0x1c1691['delete'](_0xf34399),!0x0;}return!0x1;}}['_joinSuggestions'](_0x416c50,_0x15a626){if(_0x416c50['isMultiRange']){for(const _0x5f1f37 of _0x15a626['getRanges']())_0x416c50['addRange'](_0x5f1f37);}else{const _0x55c4b1=_0x15a626['getFirstRange']()['end'];this['_setSuggestionRange'](_0x416c50,this['_model']['createRange'](_0x416c50['getFirstRange']()['start'],_0x55c4b1));}_0x15a626['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5cffeb,_0x3293c1,_0x32699e){const _0x19b1c7=_0x5cffeb['startsWith']('format')||_0x5cffeb['startsWith']('attribute')?'FORMATTING':_0x5cffeb['toUpperCase']();return o(this['editor']['locale'],_0x3293c1+'_'+_0x19b1c7+'_SUGGESTION_ANNOUNCEMENT',_0x32699e);}['_initAriaMarkerChangeAnnouncements'](){const _0x233e80=this['editor'];if(!_0x233e80['ui'])return;const {ariaLiveAnnouncer:_0x37d9e6}=_0x233e80['ui'];_0x238537(this['_model'],({left:_0x54dc7a,entered:_0x44f67b})=>{for(const _0x411c5e of _0x54dc7a){const {group:_0x203449,type:_0x5ac1d7}=this['_splitMarkerName'](_0x411c5e['name']);if('suggestion'===_0x203449){_0x37d9e6['announce'](this['_getMarkerAnnouncementText'](_0x5ac1d7,'LEAVE'));break;}}for(const _0x3fd32f of _0x44f67b){const {group:_0x14007b,type:_0x4f9693}=this['_splitMarkerName'](_0x3fd32f['name']);if('suggestion'===_0x14007b){_0x37d9e6['announce'](this['_getMarkerAnnouncementText'](_0x4f9693,'ENTER',_0x5550d0(_0x32b3)));break;}}});}['_processAttributeChanges'](_0x40b68e){if(this['_recordAttributeSuggestions'])return!0x1;const _0x242368=this['editor'],_0x5f4a54=_0x242368['model']['document']['differ']['getChanges']();if(0x0==_0x5f4a54['length'])return!0x1;const _0x108a5a=[],_0x373ae2=_0x5f4a54['filter'](_0x186574=>'attribute'==_0x186574['type']),_0x2d1a80=_0x5f4a54['filter'](_0x13942b=>'insert'==_0x13942b['type']&&'$text'!=_0x13942b['name']),_0x24574a=_0x5f4a54['filter'](_0x159375=>'remove'==_0x159375['type']&&'$text'!=_0x159375['name']);for(const _0x1f6009 of _0x373ae2)_0x108a5a['push']({'key':_0x1f6009['attributeKey'],'newValue':_0x1f6009['attributeNewValue'],'oldValue':_0x1f6009['attributeOldValue'],'range':Lt(_0x1f6009['range'],_0x242368['model'])});for(const _0x1a6cc4 of _0x2d1a80){const _0x22e6d6=_0x24574a['find'](_0x27a98d=>_0x27a98d['position']['isEqual'](_0x1a6cc4['position']));_0x22e6d6&&_0x108a5a['push']({'key':m,'newValue':_0x1a6cc4['name'],'oldValue':_0x22e6d6['name'],'range':_0x242368['model']['createRangeOn'](_0x1a6cc4['position']['nodeAfter'])});}return 0x0!=_0x108a5a['length']&&this['_reduceExistingSuggestions'](_0x40b68e,_0x108a5a);}['_processAttributeSuggestions'](_0x2483ad){let _0x11580a=!0x1;const _0x54a0e5=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4122a1=>_0x4122a1['data']['newRange']&&_0x4122a1['name']['startsWith']('suggestion:attribute:'));for(const _0x503560 of _0x54a0e5){const {subType:_0x261ee4,id:_0x5a3f9b}=this['_splitMarkerName'](_0x503560['name']),_0x37ada4=_0x261ee4['split']('|')[0x0];for(const _0x16dc03 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x16dc03['id']!=_0x5a3f9b&&'attribute'==_0x16dc03['type']&&_0x16dc03['data']&&_0x16dc03['data']['key']==_0x37ada4&&_0x16dc03['getFirstRange']()['isIntersecting'](_0x503560['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x16dc03,_0x503560['data']['newRange'],_0x2483ad),_0x11580a=!0x0);}return _0x11580a;}['_recordAttributeChanges'](_0x320cea){this['_recordAttributeSuggestions']=!0x0,_0x320cea();}['_isRegisteredAttribute'](_0x1a2723){const _0x1d4748=this['_isBlockAttribute'](_0x1a2723),_0x3192e0=this['_inlineAttributeKeys']['has'](_0x1a2723);return _0x1d4748||_0x3192e0;}['_reduceExistingSuggestions'](_0x568094,_0x2a625c){if(0x0==_0x2a625c['length'])return!0x1;let _0xb631bc=!0x1;for(const _0x7f8377 of _0x2a625c){const _0x2967d3=this['_findSuggestions'](_0x7f8377['range'],'attribute')['filter'](_0x35ce93=>!_0x35ce93['meta']['isNextTo'])['map'](_0x5791f4=>_0x5791f4['suggestion']),_0x5ba8ed=_0x42f1ec({'newValue':_0x7f8377['newValue']});_0x2967d3['filter'](_0x1d50ab=>{const [_0x1cca13,_0x59377b]=_0x1d50ab['subType']['split']('|');return _0x1cca13==_0x7f8377['key']&&_0x59377b!=_0x5ba8ed;})['forEach'](_0x535799=>{this['_reduceSuggestionAttributeRange'](_0x535799,_0x7f8377['range'],_0x568094),_0xb631bc=!0x0;});}return _0xb631bc;}['_reduceSuggestionAttributeRange'](_0x53d850,_0x105601,_0x1acad9){const _0x3d733b=_0x53d850['getFirstRange']()['getDifference'](_0x105601);0x0!==_0x3d733b['length']?0x1!==_0x3d733b['length']?this['_breakSuggestionMarker'](_0x53d850,_0x105601['start'],_0x105601['end']):this['_setSuggestionRange'](_0x53d850,_0x3d733b[0x0]):_0x1acad9['removeMarker'](_0x53d850['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x55cb10){this['_editor']=_0x55cb10,this['_model']=_0x55cb10['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x251aef,_0xb3639,_0x211bdd,_0x3fae94,_0x50e470,_0x1344d4){return new u(this['_model'],{'type':_0x251aef,'subType':_0xb3639,'id':_0x211bdd,'author':_0x3fae94,'creator':_0x3fae94,'attributes':_0x50e470,'onAttributesChange':_0x1344d4,'onAccept':(..._0x2e8df3)=>this['getSuggestionCallback'](_0x251aef,_0xb3639,'accept')(..._0x2e8df3),'onDiscard':(..._0xdb91ea)=>this['getSuggestionCallback'](_0x251aef,_0xb3639,'discard')(..._0xdb91ea)});}['registerCustomCallback'](_0xa86d30,_0x4017a1,_0x1a0aac,_0x4ae363){const _0x6186b0=_0xa86d30+':'+_0x4017a1+':'+_0x1a0aac;this['_customCallbacks']['set'](_0x6186b0,_0x4ae363);}['getSuggestionCallback'](_0x1cc887,_0x549d10,_0x27a6a4){const _0x551a0=_0x1cc887+':'+_0x549d10+':'+_0x27a6a4;return this['_customCallbacks']['get'](_0x551a0)||this['_defaultCallbacks']['get'](_0x1cc887+':'+_0x27a6a4);}['_registerDefaultCallbacks'](){const _0x5e2d0f=()=>!0x1,_0x3ad4e0=_0x3c1973=>{_0x3c1973['sort']((_0x309845,_0x2d9005)=>_0x309845['start']['isBefore'](_0x2d9005['start'])?0x1:-0x1),this['_model']['change'](_0x31cd8c=>{for(const _0x32981d of _0x3c1973){let _0x28a704;_0x28a704=_0x32981d['end']['isAtEnd']&&_0x32981d['end']['parent']==_0x32981d['start']['nodeAfter']?_0x31cd8c['createSelection'](_0x32981d['start']['nodeAfter'],'on'):_0x31cd8c['createSelection'](_0x32981d),this['_model']['deleteContent'](_0x28a704,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x380c26=(_0x197a08,_0x3e92dc)=>{_0x3e92dc&&this['_model']['change'](_0x1213fd=>{const {commandName:_0xaf5f28,commandParams:_0x598c00=[]}=_0x3e92dc,_0x4c77e5=_0x197a08['map'](_0x2746c4=>(Vt(_0x2746c4)&&(_0x2746c4=this['_model']['createRange'](_0x2746c4['end'])),_0x2746c4))['filter'](_0xc711bb=>'$graveyard'!==_0xc711bb['root']['rootName']);if(_0x4c77e5['length']<0x1)return;const _0x16b80a=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x197e19=>_0x3e3f21['fromRange'](_0x197e19));_0x1213fd['setSelection'](_0x4c77e5);for(const _0x2ae0f7 of this['_editor']['commands']['commands']())_0x2ae0f7['refresh']();_0x598c00['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xaf5f28,..._0x598c00);const _0x482696=_0x16b80a['filter'](_0x3941a1=>'$graveyard'!=_0x3941a1['root']['rootName']);_0x482696['length']>0x0&&_0x1213fd['setSelection'](_0x482696);for(const _0x2dadc4 of _0x16b80a)_0x2dadc4['detach']();});},_0x4603ea=(_0x9b727e,_0x43c36b)=>0x1==_0x9b727e['length']&&0x1==_0x43c36b['length']&&_0x9b727e[0x0]['end']['isEqual'](_0x43c36b[0x0]['start']),_0x376f58=(_0x509ad4,_0x29c860,_0x5622b8,_0x3bdc8a)=>Ht(_0x509ad4,_0x29c860,_0x5622b8,_0x3bdc8a)?[_0x509ad4,_0x29c860]:Ht(_0x29c860,_0x509ad4,_0x3bdc8a,_0x5622b8)?[_0x29c860,_0x509ad4]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5e2d0f),this['_defaultCallbacks']['set']('insertion:discard',_0x3ad4e0),this['_defaultCallbacks']['set']('insertion:join',_0x4603ea),this['_defaultCallbacks']['set']('insertion:chain',_0x376f58),this['_defaultCallbacks']['set']('deletion:accept',_0x3ad4e0),this['_defaultCallbacks']['set']('deletion:discard',_0x5e2d0f),this['_defaultCallbacks']['set']('deletion:join',_0x4603ea),this['_defaultCallbacks']['set']('deletion:chain',_0x376f58),this['_defaultCallbacks']['set']('formatInline:accept',_0x380c26),this['_defaultCallbacks']['set']('formatInline:discard',_0x5e2d0f),this['_defaultCallbacks']['set']('formatInline:join',_0x4603ea),this['_defaultCallbacks']['set']('formatInline:chain',_0x5e2d0f),this['_defaultCallbacks']['set']('formatBlock:accept',_0x380c26),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5e2d0f),this['_defaultCallbacks']['set']('formatBlock:join',_0x4603ea),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5e2d0f),this['_defaultCallbacks']['set']('attribute:accept',_0x5e2d0f),this['_defaultCallbacks']['set']('attribute:discard',(_0xad5302,_0x13c6b2)=>{if(!_0x13c6b2)return;const _0x3cacb6=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1ba6d9=>{if(_0x13c6b2['key']==m)for(const _0x4262d2 of _0xad5302){const _0x31ba4d=_0x4262d2['start']['nodeAfter'],_0x39d192=_0x13c6b2['oldValue'];_0x1ba6d9['rename'](_0x31ba4d,_0x39d192);}else{if(_0x3cacb6['_isBlockAttribute'](_0x13c6b2['key'])){for(const _0x6cc08f of _0xad5302)void 0x0!==_0x13c6b2['oldValue']?_0x1ba6d9['setAttribute'](_0x13c6b2['key'],_0x13c6b2['oldValue'],_0x6cc08f['start']['nodeAfter']):_0x1ba6d9['removeAttribute'](_0x13c6b2['key'],_0x6cc08f['start']['nodeAfter']);}else{for(const _0x49defe of _0xad5302)_0x13c6b2['oldValue']?_0x1ba6d9['setAttribute'](_0x13c6b2['key'],_0x13c6b2['oldValue'],_0x49defe):_0x1ba6d9['removeAttribute'](_0x13c6b2['key'],_0x49defe);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4603ea);}}function Ut(_0x25f01d,_0x542bc6,_0x276b67){for(const _0x124135 of _0x542bc6['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x124135['root']==_0x124135)return!0x1;if(!_0x276b67['containsItem'](_0x124135))return!0x1;if(_0x25f01d['isObject'](_0x124135)||_0x25f01d['isLimit'](_0x124135))return!0x0;}return!0x1;}function Vt(_0x1ed5f8){return _0x1ed5f8['end']['parent']==_0x1ed5f8['start']['nodeAfter']&&_0x1ed5f8['end']['isAtStart'];}function Pt(_0x4c741c,_0x218ac4,_0x2bd0ae,_0x45fcf9){const _0x9ecb23=_0x12b934=>!_0x12b934['item']['is']('$textProxy')&&!_0x45fcf9['isObject'](_0x12b934['item']),_0x5c9f33=_0x4c741c['start']['getLastMatchingPosition'](_0x9ecb23),_0x2a7020=_0x4c741c['end']['getLastMatchingPosition'](_0x9ecb23,{'direction':'backward'});return(!_0x4c741c['start']['isEqual'](_0x5c9f33)||!_0x4c741c['end']['isEqual'](_0x2a7020))&&(_0x5c9f33['isBefore'](_0x2a7020)?_0x2bd0ae['updateMarker'](_0x218ac4,{'range':_0x2bd0ae['createRange'](_0x5c9f33,_0x2a7020)}):_0x2bd0ae['removeMarker'](_0x218ac4),!0x0);}function Gt(_0x23c6da){return _0x42f1ec(_0x23c6da);}function Ft(_0x35391a){const _0x191fb0=_0x35391a['start']['nodeAfter'];return _0x191fb0&&_0x191fb0['is']('element');}function Lt(_0xc36752,_0x4c614f){return null==_0xc36752['end']['nodeBefore']&&_0xc36752['end']['parent']==_0xc36752['start']['nodeAfter']?Jt(_0xc36752['start']['nodeAfter'],_0x4c614f):_0xc36752;}function Jt(_0x58759e,_0x4cfebf){const _0x45bf5f=_0x4cfebf['schema']['isObject'](_0x58759e)||_0x4cfebf['schema']['isSelectable'](_0x58759e);return _0x4cfebf['createRange'](_0x4cfebf['createPositionAt'](_0x58759e,'before'),_0x45bf5f?_0x4cfebf['createPositionAfter'](_0x58759e):_0x4cfebf['createPositionAt'](_0x58759e,'end'));}function Ht(_0x1798a3,_0x58d01c,_0x421df7,_0x41a2fa){return!!qt(_0x1798a3,_0x58d01c)&&_0x421df7['end']['isEqual'](_0x41a2fa['start']);}function qt(_0x197fe6,_0x11083a){if(!_0x197fe6['_isDataLoaded']||!_0x11083a['_isDataLoaded'])return!0x1;const _0x2c066f=new Set(Object['keys'](_0x197fe6['attributes'])),_0x147344=new Set(Object['keys'](_0x11083a['attributes']));if(_0x2c066f['delete']('groupId'),_0x147344['delete']('groupId'),0x0==_0x2c066f['size']&&0x0==_0x147344['size'])return!0x0;if(_0x2c066f['size']!=_0x147344['size'])return!0x1;const _0x435970={..._0x197fe6['attributes']},_0x4374f5={..._0x11083a['attributes']};return delete _0x435970['groupId'],delete _0x4374f5['groupId'],JSON['stringify'](_0x435970)==JSON['stringify'](_0x4374f5);}function zt(_0x147550,_0x5bd3f2){const _0x4c2e76=Kt(_0x147550['attributes']),_0x14c48e=Kt(_0x5bd3f2);if(!_0x147550['_isDataLoaded'])return!0x1;for(const _0x264958 of Object['keys'](_0x14c48e))if(!_0x3081e3(_0x4c2e76[_0x264958],_0x14c48e[_0x264958]))return!0x1;return!0x0;}function Kt(_0x5afaae){const _0x178cf5=Object['assign']({},_0x5afaae);return delete _0x178cf5['skipNestingCheck'],delete _0x178cf5['tablePasteChainId'],_0x178cf5;}class ge extends/* #__PURE__ -- @preserve */
25
- _0x1c0a4c(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0xbb2499,_0x37e1d3,_0x51f2e3,_0x3c32de){super(),this['model']=_0x37e1d3,this['view']=_0x51f2e3,this['commentThreadController']=_0x3c32de,this['_editor']=_0xbb2499,this['_acceptCommand']=_0xbb2499['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xbb2499['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1948f4,_0x7aa6bf)=>_0x1948f4||_0x7aa6bf),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3d531d=>_0x3d531d&&this['_editor']['model']['canEditAt'](_0x37e1d3['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1d7746=>_0x1d7746&&this['_editor']['model']['canEditAt'](_0x37e1d3['getRanges']())),this['_pendingAction']=null,_0x51f2e3['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x51f2e3,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x51f2e3,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x51f2e3,'change:isDirty',()=>{_0x51f2e3['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 _0x1408ab=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1408ab);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x287354{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x43efb1,_0x1197b5,_0x2e608c,_0x40f5ee){super(_0x43efb1),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x366ccd(_0x43efb1,o(_0x43efb1,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1197b5['authoredAt']),this['bind']('authoredAt')['to'](_0x1197b5),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',_0x1197b5,'authoredAt',this,'descriptionParts',(_0x19fad7,_0xefb156,_0xfe9a0e)=>{const _0x28f463=_0xfe9a0e['map'](_0x529056=>ns(_0x529056['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x19fad7-0x1,_0x1197b5['author']['name'],_0xefb156?_0x40f5ee['formatDateTime'](_0xefb156):'',new DOMParser()['parseFromString'](_0x28f463,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5ec823(),this['focusTracker']=new _0x5b2072(),this['keystrokes']=new _0x3114ec(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xfc01b0=>_0xfc01b0['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1197b5,this['_localUser']=_0x2e608c,this['_config']=_0x40f5ee,_0x40f5ee['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x54a3ca(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1d900f}=this['_config'];this['commentsListView']=new _0x1d900f(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',_0x2dfd7c=>_0x2dfd7c+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x676b31,_0x30975d)=>_0x676b31||!!_0x30975d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1061ee}=this['_config'],_0xb2acf7=new _0x1061ee(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x11405f=_0xb2acf7['commentInputView'];return _0xb2acf7['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x11405f,'value',(_0x4c75b9,_0x571470,_0x19e5e7)=>!!_0x19e5e7||_0x4c75b9&&!_0x571470),_0x11405f['on']('submit',(_0x47567a,_0x496abf)=>{this['fire']('addComment',_0x496abf),_0x11405f['editor']['setData']('');}),_0x11405f['on']('cancel',()=>this['focus']()),_0x11405f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xb2acf7;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0x160958,_0x18c451,_0x102755,_0x58d031){super(_0x160958,_0x18c451,_0x102755,_0x58d031),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3700ac=>_0x3700ac&&_0x3700ac[0x0]?_0x3700ac[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1bad2e,_0x7974f4)=>{let _0x26ab75='';for(const _0x20a0f3 of _0x1bad2e)_0x26ab75+='<p>'+ns(_0x20a0f3['content'],_0x20a0f3['color'])+'</p>';return _0x7974f4?_0x26ab75:ti(_0x26ab75,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x58d031['SuggestionView'](_0x160958,_0x18c451,{'formatDateTime':_0x58d031['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 _0x3969ae=this['bindTemplate'],_0x542bc3=[this['suggestionView']];return this['commentsListView']&&_0x542bc3['push'](this['commentsListView']),this['commentThreadInputView']&&_0x542bc3['push'](this['commentThreadInputView']),_0x542bc3['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3969ae['if']('isActive','ck-suggestion-wrapper--active'),_0x3969ae['to']('type',_0x4f0299=>'ck-suggestion-'+_0x4f0299),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':_0x3969ae['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x542bc3};}['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 ue extends _0x287354{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3bff73,_0x34f85e,_0x58ca3a){super(_0x3bff73),this['_model']=_0x34f85e,this['_config']=_0x58ca3a,this['set']('description',''),this['bind']('authoredAt')['to'](_0x34f85e),this['acceptButton']=this['_createButton'](o(_0x3bff73,'Accept\x20suggestion'),_0x5ac671['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3bff73,'Discard\x20suggestion'),_0x5ac671['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5a9ae8(_0x3bff73,_0x34f85e['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5ec823([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5b2072(),this['keystrokes']=new _0x3114ec(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2781a5=>_0x2781a5['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3d2f7d=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3d2f7d['innerHTML']=this['description'],this['on']('change:description',(_0x5c8991,_0x5666c3,_0x55a7e1)=>{_0x3d2f7d['innerHTML']=_0x55a7e1;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x398eb2=this['bindTemplate'],_0x5d6486=[{'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':_0x398eb2['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x398eb2['to']('authoredAt',_0x261856=>this['_config']['formatDateTime'](_0x261856))}]}]},{'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']&&_0x5d6486['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':_0x5d6486}]};}['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'](_0x4b6aad,_0x29a5f6,_0x3ef043,_0x4376f0,_0x4cfc82){const _0x1f3857=new _0x1f7293(this['locale']);return _0x1f3857['set']({'label':_0x4b6aad,'icon':_0x29a5f6,'tooltip':!0x0,'tooltipPosition':_0x4cfc82}),_0x1f3857['extendTemplate']({'attributes':{'class':_0x3ef043}}),_0x1f3857['on']('execute',()=>{this['fire'](_0x4376f0,this['_model']['id']);}),_0x1f3857;}['_setupKeyboardNavigation'](){const _0x18fcc6=this['element'];this['keystrokes']['listenTo'](_0x18fcc6);for(const _0x848302 of this['focusables'])this['focusTracker']['add'](_0x848302['element']),this['keystrokes']['listenTo'](_0x848302['element']);this['keystrokes']['set']('enter',(_0x16b5b4,_0x422213)=>{_0x18fcc6===_0x16b5b4['target']&&(this['focusCycler']['focusFirst'](),_0x422213());}),this['keystrokes']['set']('esc',(_0xfc7c1f,_0xb6e574)=>{_0x18fcc6!==_0xfc7c1f['target']&&(this['focus'](),_0xb6e574());});}}var Ce='<!--\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 _0x7145c0{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x586bb7,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f2bd7){super(_0x1f2bd7),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x53c625=this['editor']['config'];_0x53c625['define']('trackChanges.SuggestionThreadView',de),_0x53c625['define']('trackChanges.SuggestionView',ue),_0x53c625['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x53c625['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x243c97,_0x5bf706){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x29b2c8,_0x46cddf]of this['_handleControllerBuffer']){const _0x5ccc59=this['_suggestionToController']['has'](_0x29b2c8);_0x5ccc59||_0x46cddf?_0x5ccc59&&_0x46cddf&&this['_destroyController'](_0x29b2c8):this['_initializeController'](_0x29b2c8);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x243c97,_0x5bf706);}['init'](){const _0x33576=this['editor'],_0x1b58fb=_0x33576['plugins']['get']('TrackChangesEditing'),_0x4c4590=_0x33576['plugins']['get']('Annotations'),_0x38cadb=_0x33576['plugins']['get']('EditorAnnotations'),_0x2da1cb=_0x33576['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x38cadb['addSourceCollector'](()=>{const _0x47a0f5=[];for(const [_0x31e841,_0x5c0892]of Array['from'](this['_suggestionToController'])){const _0xc45bc3=_0x31e841['getAllAdjacentSuggestions'](),_0x347dc7=[];for(const _0x4f55a1 of _0xc45bc3){if(!_0x4f55a1['isInContent'])continue;if(_0x4f55a1['isMultiRange']){_0x347dc7['push'](..._0x4f55a1['getRanges']());continue;}const _0x4a9ced=_0x4f55a1['getFirstRange']();if(_0x347dc7['length']>0x0){const _0x491af2=_0x347dc7[0x0]['getJoined'](_0x4a9ced);if(_0x491af2){_0x347dc7[0x0]=_0x491af2;continue;}}_0x347dc7['push'](_0x4a9ced);}_0x47a0f5['push']([_0x5c0892['view'],_0x347dc7]);}return _0x47a0f5;}),this['listenTo'](_0x1b58fb,'suggestionLoaded',(_0x5490cf,_0x495399)=>{this['listenTo'](_0x495399,'change:previous',(_0x50d081,_0x2cb466,_0x379c8e,_0x51351b)=>{_0x495399['isInContent']&&(null==_0x379c8e?(this['_updateController'](_0x51351b['head']),this['_handleSuggestionControllerDelayed'](_0x495399,!0x1)):(this['_updateController'](_0x379c8e['head']),null==_0x51351b&&this['_handleSuggestionControllerDelayed'](_0x495399,!0x0)));}),null!==_0x495399['previous']?this['_updateController'](_0x495399['head']):this['_handleSuggestionControllerDelayed'](_0x495399,!0x1);}),this['listenTo'](_0x1b58fb,'suggestionUnloaded',(_0x3fb43d,_0x3f36c7,_0x4b6d09)=>{this['stopListening'](_0x3f36c7,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3f36c7),this['_suggestionToController']['has'](_0x3f36c7)&&this['_destroyController'](_0x3f36c7),_0x4b6d09&&this['_updateController'](_0x4b6d09['head']);}),this['listenTo'](_0x1b58fb,'suggestionChanged',(_0x346179,_0x37d4dc)=>{this['_updateController'](_0x37d4dc);}),this['listenTo'](_0x4c4590,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2da1cb,'addComment',(_0x41701b,{threadId:_0x3b89d9,isFromAdapter:_0x727668})=>{if(_0x727668||!_0x1b58fb['hasSuggestion'](_0x3b89d9))return;const _0x127f06=_0x1b58fb['getSuggestion'](_0x3b89d9);this['_suggestionToController']['get'](_0x127f06)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2fca6d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5b37f4;for(const _0x5da908 in _0x2fca6d){const _0x693b96=_0x5da908,_0x4e7b5e=_0x2fca6d[_0x693b96];if('trackChangesLicenseKeyValid'==_0x4e7b5e||'trackChangesLicenseKeyInvalid'==_0x4e7b5e||'trackChangesLicenseKeyExpired'==_0x4e7b5e||'trackChangesLicenseKeyDomainLimit'==_0x4e7b5e||'trackChangesLicenseKeyNotAllowed'==_0x4e7b5e||'trackChangesLicenseKeyEvaluationLimit'==_0x4e7b5e||'trackChangesLicenseKeyTrialLimit'==_0x4e7b5e||'trackChangesLicenseKeyDevelopmentLimit'==_0x4e7b5e||'trackChangesLicenseKeyUsageLimit'==_0x4e7b5e){delete _0x2fca6d[_0x693b96],_0x5b37f4=_0x4e7b5e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5b37f4&&_0x2fca6d['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5b37f4&&_0x2fca6d['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5b37f4&&_0x2fca6d['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5b37f4&&_0x2fca6d['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5b37f4&&_0x2fca6d['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5b37f4&&_0x2fca6d['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x5b37f4&&_0x2fca6d['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5b37f4&&_0x2fca6d['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x33e9a9=this['editor']['plugins']['get']('Annotations'),_0x4da4c9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a5236=Array['from'](_0x33e9a9['activeAnnotations'],_0x5ad08c=>_0x5ad08c['innerView'])['filter'](_0x3344ce=>this['_viewToController']['has'](_0x3344ce)),_0xb08f9f=[];for(const _0x3b2d4a of _0x4a5236){const _0x3ebc36=this['_viewToController']['get'](_0x3b2d4a)['model']['getAllAdjacentSuggestions']();_0xb08f9f['push'](..._0x3ebc36['reduce']((_0x37b173,_0x41402b)=>[..._0x37b173,..._0x41402b['getMarkerNames']()],[]));}_0x4da4c9['activeMarkers']=_0xb08f9f;}['_addUIComponentsToFactory'](){const _0x342099=this['editor'],_0x267e68=_0x342099['locale'],_0x26bf92=o(_0x267e68,'Track\x20changes'),_0x403031=new _0x419189([{'type':'switchbutton','model':new _0x3eabff({'withText':!0x0,'isToggleable':!0x0,'label':_0x26bf92,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3eabff({'withText':!0x0,'label':o(_0x267e68,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3eabff({'withText':!0x0,'label':o(_0x267e68,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3eabff({'withText':!0x0,'label':o(_0x267e68,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3eabff({'withText':!0x0,'label':o(_0x267e68,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x2510bf of _0x403031)if(pe(_0x2510bf)){const _0x3aa241=_0x342099['commands']['get'](_0x2510bf['model']['commandName']);_0x2510bf['model']['bind']('isOn','isEnabled')['to'](_0x3aa241,'value','isEnabled');}_0x342099['ui']['componentFactory']['add']('trackChanges',_0x593874=>this['_createToolbarButton'](_0x593874,_0x403031,_0x26bf92)),_0x342099['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3a3b3d=>this['_createMenuBarMenu'](_0x3a3b3d,_0x403031,_0x26bf92));}['_createToolbarButton'](_0x4c1d7e,_0x3b0f91,_0x4e3eda){const _0xf08863=_0x353dab(_0x4c1d7e,_0x4aaba6),_0x1451f2=this['editor']['commands']['get']('trackChanges');_0xf08863['buttonView']['set']({'tooltip':_0x4e3eda,'label':_0x4e3eda,'icon':Ce}),_0xf08863['buttonView']['bind']('isOn')['to'](_0x1451f2,'value'),_0xf08863['buttonView']['on']('execute',()=>{_0x1451f2['execute'](),this['editor']['editing']['view']['focus']();}),te(_0xf08863,_0x3b0f91,{'role':'menu'});const _0x4e4349=[];for(const _0x21d91c of _0x3b0f91)pe(_0x21d91c)&&_0x4e4349['push'](this['editor']['commands']['get'](_0x21d91c['model']['commandName']));const _0x369b60=_0xf08863['buttonView'];return _0x369b60['actionView']['unbind']('isEnabled'),_0x369b60['arrowView']['unbind']('isEnabled'),_0x369b60['actionView']['bind']('isEnabled')['to'](_0x1451f2,'isEnabled'),_0x369b60['arrowView']['bind']('isEnabled')['toMany'](_0x4e4349,'isEnabled',(..._0x4b63ee)=>_0x4b63ee['some'](_0x22d2e5=>_0x22d2e5)),_0xf08863['on']('execute',_0x2ea85f=>{this['editor']['execute'](_0x2ea85f['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xf08863;}['_createMenuBarMenu'](_0x4b8eea,_0x1ed0d9,_0x3847f3){const _0x55b841=new _0x27af0f(_0x4b8eea),_0x25a192=this['editor']['commands']['get']('trackChanges');_0x55b841['buttonView']['set']({'label':_0x3847f3,'icon':Ce});const _0x2266a2=new _0x1d18b0(_0x4b8eea);for(const _0x5d290d of _0x1ed0d9){if('separator'==_0x5d290d['type']){_0x2266a2['items']['add'](new _0x477f62(_0x4b8eea));continue;}const _0x44d22e=new _0x545a9b(_0x4b8eea,_0x55b841),_0x174cae=new _0x42dab6(_0x4b8eea),_0x2abee0=_0x5d290d['model'];_0x174cae['bind'](...Object['keys'](_0x2abee0))['to'](_0x2abee0),_0x174cae['delegate']('execute')['to'](_0x55b841),_0x174cae['on']('execute',()=>{this['editor']['execute'](_0x2abee0['commandName']),this['editor']['editing']['view']['focus']();}),_0x44d22e['children']['add'](_0x174cae),_0x2266a2['items']['add'](_0x44d22e);}return _0x55b841['bind']('isEnabled')['to'](_0x25a192,'isEnabled'),_0x55b841['panelView']['children']['add'](_0x2266a2),_0x55b841;}['_initializeController'](_0x45b428){const _0x5dcc86=this['editor'],_0x5562b7=_0x5dcc86['config'],_0x421d8e=_0x5dcc86['plugins']['get']('Annotations'),_0x403e7a=_0x5dcc86['plugins']['get']('CommentsRepository'),_0x5cf6aa=_0x5dcc86['plugins']['get']('EditorAnnotations'),_0x3fa3a3=_0x5dcc86['plugins']['get'](_0x586bb7)['me'],_0x450892=_0x5562b7['get']('trackChanges')['SuggestionThreadView'],_0x1ac9dc=_0x5562b7['get']('trackChanges')['SuggestionView'],{CommentsListView:_0xeb9ea9,CommentThreadInputView:_0x21ce42}=_0x5dcc86['plugins']['get']('CommentsUI');let _0xae08c5,_0x59b24f,_0x1a9509;this['_annotationViews']['has'](_0x45b428['id'])?(_0x59b24f=this['_annotationViews']['get'](_0x45b428['id']),_0xae08c5=_0x59b24f['mainView']):(_0xae08c5=new _0x450892(_0x5dcc86['locale'],_0x45b428,_0x3fa3a3,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5562b7['get']('comments.editorConfig'),'licenseKey':_0x5562b7['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5562b7['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5562b7['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5562b7['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x270e5d(_0x5562b7['get']('locale')),'CommentView':_0x5562b7['get']('comments')['CommentView'],'CommentsListView':_0xeb9ea9,'CommentThreadInputView':_0x21ce42,'SuggestionView':_0x1ac9dc}),_0xae08c5['suggestionView']['acceptButton']['on']('execute',()=>{_0x5dcc86['editing']['view']['focus']();}),_0xae08c5['suggestionView']['discardButton']['on']('execute',()=>{_0x5dcc86['editing']['view']['focus']();}),_0x59b24f=_0x421d8e['createAnnotationView'](this['editor']['locale'],_0xae08c5),_0x59b24f['bind']('isDirty')['to'](_0xae08c5,'isDirty'),_0x59b24f['bind']('length')['to'](_0xae08c5),_0x59b24f['bind']('type')['to'](_0xae08c5,'type',_0x1be473=>'suggestion-'+_0x1be473),_0xae08c5['on']('escape',()=>{_0x1a9509['fire']('escape');}),this['_annotationViews']['set'](_0x45b428['id'],_0x59b24f));const _0xf44083=_0x403e7a['createCommentThreadController'](_0x45b428['commentThread'],_0xae08c5),_0xd9ad4f=new ge(_0x5dcc86,_0x45b428,_0xae08c5,_0xf44083),_0x42def3=_0x45b428['getAllAdjacentSuggestions']()['filter'](_0x2b33c7=>_0x2b33c7['isInContent']);_0xae08c5['descriptionParts']=_0x5dcc86['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x42def3),this['_suggestionToController']['set'](_0x45b428,_0xd9ad4f),this['_viewToController']['set'](_0xae08c5,_0xd9ad4f),_0x1a9509=_0x421d8e['createAnnotation']({'view':_0x59b24f,'target':()=>{const _0x40940e=[],_0xc7a889=_0x45b428['getAllAdjacentSuggestions']()['filter'](_0x46a07f=>_0x46a07f['isInContent']);for(const _0x7abc4f of _0xc7a889)_0x40940e['push'](..._0x7abc4f['getMarkers']());return _0x3cf5f8(_0x5dcc86['editing'],_0x40940e);},'type':()=>'suggestion-'+_0xd9ad4f['view']['type']}),_0x403e7a['_bindAnnotationToEditors'](_0xae08c5,_0x1a9509),_0x421d8e['add'](_0x1a9509),_0x5cf6aa['registerAnnotation'](_0x1a9509);}['_destroyController'](_0x3d5daf){const _0x49ac61=this['editor']['plugins']['get']('CommentsRepository'),_0x22b04a=this['editor']['plugins']['get']('Annotations'),_0x30092d=this['_suggestionToController']['get'](_0x3d5daf),_0x458b3b=_0x30092d['view'],_0x12c58e=_0x22b04a['getByInnerView'](_0x458b3b);_0x49ac61['_unbindEditors'](_0x458b3b),_0x12c58e&&_0x22b04a['remove'](_0x12c58e),this['_suggestionToController']['delete'](_0x3d5daf),this['_viewToController']['delete'](_0x458b3b),_0x30092d['destroy']();}['_updateController'](_0x327cc4){if(!_0x327cc4['isInContent']||!this['_suggestionToController']['has'](_0x327cc4))return;const _0xee113=this['editor']['plugins']['get']('TrackChangesEditing'),_0x360e87=this['_suggestionToController']['get'](_0x327cc4),_0x4c00b3=_0x327cc4['getAllAdjacentSuggestions']();_0x360e87['view']['descriptionParts']=_0xee113['descriptionFactory']['getDescriptions'](_0x4c00b3);}['destroy'](){for(const _0x1b5def of this['_suggestionToController']['keys']())this['_destroyController'](_0x1b5def);for(const _0x24ec2a of this['_annotationViews']['values']())_0x24ec2a['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0x4c3cca){return'model'in _0x4c3cca;}class k extends _0x7145c0{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x396e2a){this['editor']['plugins']['get'](p)['adapter']=_0x396e2a;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x417e63){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x417e63);}['getSuggestions']({skipNotAttached:_0x15b823=!0x1,toJSON:_0x2bab0e=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x15b823,'toJSON':_0x2bab0e});}['getSuggestion'](_0x4a196d){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4a196d);}}const w=['Pagination'];class T extends _0x7145c0{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x389b32=this['editor'];if(_0x389b32['config']['define']('trackChangesData.editorCreator',_0x4b9fea=>{const _0x1b99f6=_0x389b32['model']['document']['getRootNames']()['reduce']((_0x1c315c,_0x31f02d)=>(_0x1c315c[_0x31f02d]='',_0x1c315c),{});return _0x389b32['constructor']['create'](_0x1b99f6,_0x4b9fea);}),'function'!=typeof _0x389b32['config']['get']('trackChangesData')['editorCreator'])throw new _0x465f86('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x1908bd){return N(this['editor'],!0x0,_0x1908bd);}['getDataWithDiscardedSuggestions'](_0x1d5a33){return N(this['editor'],!0x1,_0x1d5a33);}}class D extends _0x7145c0{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x47d11c){function _0x438769(_0x2a05a1){return _0x2a05a1['map'](_0x54fec2=>String['fromCharCode'](_0x54fec2))['join']('');}super(_0x47d11c),this['result']='end',_0x47d11c[_0x438769([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x438769([0x76,0x69,0x65,0x77])][_0x438769([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x438769([0x61,0x75,0x74,0x6f]),_0x47d11c[_0x438769([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x438769([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x438769([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x438769([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x438769([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x4b4d1b){return void 0x0!==_0x4b4d1b['getRootsAttributes'];}async function N(_0x486d56,_0x11b005,_0x33ea49){const _0x167b1e=_0x46966d(_0x486d56,w);_0x167b1e['plugins']['push'](p,D),_0x167b1e['rootsAttributes']=v(_0x486d56)?_0x486d56['getRootsAttributes']():void 0x0;const _0x5e1dff=document['createDocumentFragment'](),_0x37520e=_0x486d56['config']['get']('trackChangesData')['editorCreator'],_0x4bfc60=await _0x37520e(_0x167b1e,()=>function(_0x2cc249){const _0x1d9dfa=document['createElement']('div');return _0x2cc249['appendChild'](_0x1d9dfa),_0x1d9dfa;}(_0x5e1dff));!function(_0x210e99,_0x1c9ca7){const _0x227050=_0x210e99['model']['document']['getRootNames']()['reduce']((_0x11f66a,_0x45914f)=>(_0x11f66a[_0x45914f]=_0x210e99['data']['get']({'rootName':_0x45914f}),_0x11f66a),{}),_0x97d9b6=_0x210e99['plugins']['get']('Users')['users']['map'](_0x5d04f1=>({'id':_0x5d04f1['id'],'name':_0x5d04f1['name']})),_0x3dee0b=_0x210e99['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4aeba7=_0x210e99['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5c10c4=_0x1c9ca7['plugins']['get']('Users'),_0x2012a9=_0x1c9ca7['plugins']['get']('TrackChangesEditing'),_0x770cbd=_0x1c9ca7['plugins']['get']('CommentsRepository');for(const _0x859af5 of _0x770cbd['getCommentThreads']())_0x859af5['remove']();for(const _0x118956 of _0x97d9b6)_0x5c10c4['getUser'](_0x118956['id'])||_0x5c10c4['addUser'](_0x118956);_0x5c10c4['me']||_0x5c10c4['useAnonymousUser']();for(const _0x55522b of _0x4aeba7)_0x770cbd['addCommentThread'](_0x55522b);for(const _0x432ac6 of _0x3dee0b)_0x2012a9['addSuggestionData'](_0x432ac6);_0x1c9ca7['data']['set'](_0x227050);}(_0x486d56,_0x4bfc60),_0x4bfc60['execute'](_0x11b005?'acceptAllSuggestions':'discardAllSuggestions');const _0x998f16=v(_0x4bfc60)?_0x4bfc60['getFullData'](_0x33ea49):_0x4bfc60['data']['get'](_0x33ea49);return await _0x4bfc60['destroy'](),_0x998f16;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as Qt,Plugin as _0x248004,PendingActions as _0x2ea1b3,icons as _0x5e21e9}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2ae157,ObservableMixin as _0x3dcb94,uid as _0x182257,insertToPriorityArray as _0x35c211,priorities as _0x4bb7ca,logWarning as _0x26e17f,getEnvKeystrokeText as _0x2d45f9,FocusTracker as _0x322992,KeystrokeHandler as _0x17ec56,Collection as _0x2b7388}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x2a9802,View as _0x1b816c,ViewCollection as _0x444291,FocusCycler as ts,ViewModel as _0x4fb10a,createDropdown as _0x510be2,SplitButtonView as _0x2b0e49,addListToDropdown as te,MenuBarMenuView as _0xc88443,MenuBarMenuListView as _0x49bb9b,ListSeparatorView as _0x324ad5,MenuBarMenuListItemView as _0x3b91c,MenuBarMenuListItemButtonView as _0x5bbdc5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5906bb,hashObject as _0xd7b3e2,surroundingMarkersDetector as _0x5e7243,FOCUS_ANNOTATION_KEYSTROKE as _0x32dfcb,AriaDescriptionView as _0x3f298c,setupThreadKeyboardNavigation as _0x205ae6,trimHtml as ti,UserView as _0x88ca50,LateFocusButtonView as _0x4aa6c3,getDateTimeFormatter as _0xf2ed73,getAllMarkersDomElementsSorted as _0x56972e,sanitizeEditorConfig as _0x3c7811}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x55c29a,LiveRange as _0x117350,LivePosition as _0x53bfd3}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x268adf,toWidget as _0xfa3dbf}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x180fdf,set as _0x4b43a2,isEqual as _0x5dbccb,unset as _0x5bc5ec,omit as xt}from'lodash-es';import{Delete as _0x2126b3,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3841ed,ShiftEnter as _0xce7ee3}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x1c9eae,_0x9e69b8){super(_0x1c9eae),this['_enabledCommands']=_0x9e69b8,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 _0x25c27d of this['editor']['commands']['commands']())_0x25c27d['affectsData']&&!this['_enabledCommands']['has'](_0x25c27d)&&_0x25c27d['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x493ef9 of this['editor']['commands']['commands']())_0x493ef9['affectsData']&&!this['_enabledCommands']['has'](_0x493ef9)&&_0x493ef9['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x23bef0,_0x11598d){super(_0x23bef0),this['_suggestions']=_0x11598d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x218be4){const _0x33f677=this['_suggestions']['get'](_0x218be4);if(!_0x33f677)throw new _0x2ae157('track-changes-accept-suggestion-not-found',this);const _0x1ec02a=_0x33f677['getRanges']();this['editor']['model']['canEditAt'](_0x1ec02a)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x33f677);}}class R extends Qt{['_suggestions'];constructor(_0x1741d8,_0x32796e){super(_0x1741d8),this['_suggestions']=_0x32796e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xf4fd98){const _0x4b07c5=this['_suggestions']['get'](_0xf4fd98);if(!_0x4b07c5)throw new _0x2ae157('track-changes-discard-suggestion-not-found',this);const _0x49ddde=_0x4b07c5['getRanges']();this['editor']['model']['canEditAt'](_0x49ddde)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x4b07c5);}}function ns(_0x59b4f0,_0x11f1c5){let _0x42a10c='';return _0x42a10c+=_0x59b4f0['split']('*')['map']((_0x47406a,_0xeed336)=>_0xeed336%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x47406a)+'</span>':nn(_0x47406a))['join'](''),_0x11f1c5&&(_0x42a10c+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x11f1c5['value']+'\x22\x20title=\x22'+_0x11f1c5['title']+'\x22></span>'),_0x42a10c;}function nn(_0x5a4da7){const _0x33219b=document['createElement']('span');return _0x33219b['innerText']=_0x5a4da7,_0x33219b['innerHTML'];}function Wt(_0x19e58e){return _0x19e58e['sort']((_0x21a1b9,_0x2cc74a)=>'deletion'==_0x21a1b9['type']&&'deletion'!=_0x2cc74a['type']?-0x1:'deletion'!=_0x21a1b9['type']&&'deletion'==_0x2cc74a['type']?0x1:0x0);}function to(_0x101547,_0xe9d601){let _0x189366,_0x3372b5=0x0;const _0xc0fcdb=[],_0x55ea80=_0xe9d601['schema'];for(;_0x3372b5<_0x101547['length'];){const _0x22637c=_0x101547[_0x3372b5],_0x58814d=_0x101547[_0x3372b5+0x1];_0x189366||(_0x189366=_0xe9d601['createPositionBefore'](_0x22637c)),on(_0xe9d601,_0x22637c,_0x58814d)||(_0xc0fcdb['push'](_0xe9d601['createRange'](_0x189366,_0x55ea80['isObject'](_0x22637c)?_0xe9d601['createPositionAfter'](_0x22637c):_0xe9d601['createPositionAt'](_0x22637c,'end'))),_0x189366=null),_0x3372b5++;}return _0xc0fcdb;}function on(_0x48f270,_0x14fa31,_0x172e26){if(!_0x172e26)return!0x1;const _0x27a99a=_0x48f270['createPositionAfter'](_0x14fa31),_0x285c53=_0x48f270['createPositionBefore'](_0x172e26);return _0x27a99a['isTouching'](_0x285c53);}function Xt(_0x308b89,_0x47a423,_0x20edf3){for(;_0x20edf3['length'];){const _0x1537bb=_0x20edf3['splice'](0x0,0x64);_0x308b89['change'](()=>{for(const _0x127823 of _0x1537bb)_0x127823['isInContent']&&_0x47a423['execute'](_0x127823['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x285018,_0x3d9fbc,_0x399992){super(_0x285018),this['_command']=_0x3d9fbc,this['_suggestions']=_0x399992,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x49e2f7=Array['from'](this['_suggestions']['values']())['some'](_0x31d1bb=>_0x31d1bb['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x49e2f7;}['execute'](){const _0x507695=Wt(Array['from'](this['_suggestions']['values']()));for(const _0x3ed54f of _0x507695){const _0x27d6af=_0x3ed54f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x27d6af))return;}Xt(this['editor']['model'],this['_command'],_0x507695);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3e3b1f,_0x191248,_0x213b6c){super(_0x3e3b1f),this['_command']=_0x191248,this['_suggestions']=_0x213b6c,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2b06ac=this['editor']['model']['document']['selection'],_0x1cfbb2=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x17e7ac,_0x2c8641){const _0x2a57cd=Array['from'](_0x17e7ac['getRanges']()),_0x1e704c=new Set();for(const _0x5552f0 of _0x2c8641)if(_0x5552f0['isInContent']){for(const _0x882e0 of _0x2a57cd)for(const _0x432487 of _0x5552f0['getRanges']())(_0x882e0['isIntersecting'](_0x432487)||_0x17e7ac['isCollapsed']&&!_0x5552f0['isMultiRange']&&_0x5552f0['next']&&_0x432487['end']['isTouching'](_0x882e0['start']))&&_0x1e704c['add'](_0x5552f0);}return _0x1e704c;}(_0x2b06ac,_0x1cfbb2),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x117fc5=Wt(Array['from'](this['_selectedSuggestions']));for(const _0x4bad43 of _0x117fc5){const _0x50d736=_0x4bad43['getRanges']();if(!this['editor']['model']['canEditAt'](_0x50d736))return;}Xt(this['editor']['model'],this['_command'],_0x117fc5);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x3dcb94(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2c0d2e,_0x1a7582){super(),this['id']=_0x1a7582['id'],this['type']=_0x1a7582['type'],this['subType']=_0x1a7582['subType']||null,this['author']=_0x1a7582['author'],this['creator']=_0x1a7582['creator']||_0x1a7582['author'],this['isExternal']=Boolean(_0x1a7582['attributes']&&_0x1a7582['attributes']['@external']),this['data']=null,this['_model']=_0x2c0d2e,this['_onAccept']=_0x1a7582['onAccept'],this['_onDiscard']=_0x1a7582['onDiscard'],this['_onAttributesChange']=_0x1a7582['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1a7582['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 _0x4e52f7=this;for(;_0x4e52f7['previous'];)_0x4e52f7=_0x4e52f7['previous'];return _0x4e52f7;}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'](_0x1dd66e){this['_markerNames']['add'](_0x1dd66e);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xc84bc=>this['_model']['markers']['get'](_0xc84bc))['filter'](_0x351731=>_0x351731);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2199bc=>{for(const _0x195137 of this['getMarkers']())_0x2199bc['removeMarker'](_0x195137);}),this['_markerNames']['clear']();}['removeMarker'](_0x506ece){this['_model']['change'](_0x5eb6b=>{_0x5eb6b['removeMarker'](_0x506ece);}),this['_markerNames']['delete'](_0x506ece);}['addRange'](_0x5743bb){const _0x324987='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x324987),this['_model']['change'](_0x4f647c=>{_0x4f647c['addMarker'](_0x324987,{'range':_0x5743bb,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4a7b2f){for(const _0x2fe5c5 of this['getRanges']())if(_0x2fe5c5['isIntersecting'](_0x4a7b2f))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1999be=>_0x1999be['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2e436f,_0x126621)=>[..._0x2e436f,..._0x126621['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2fbe8a=this['getRanges']();if(0x1!=_0x2fbe8a['length'])return null;const _0x426afc=_0x2fbe8a[0x0],_0x37c63f=_0x426afc['start']['nodeAfter'],_0x311032=_0x426afc['end']['nodeBefore'];return _0x37c63f instanceof _0x55c29a?_0x37c63f!=_0x311032?null:_0x37c63f: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 _0x59f591=[];let _0x582484=this['head'];for(;_0x582484;)_0x59f591['push'](_0x582484),_0x582484=_0x582484['next'];return _0x59f591;}['setAttribute'](_0x9ffa88,_0x32c2d1){const _0xd2dca1=_0x180fdf(this['attributes']);_0x4b43a2(_0xd2dca1,_0x9ffa88,_0x32c2d1),_0x5dbccb(_0xd2dca1,this['attributes'])||(this['attributes']=_0xd2dca1,this['_onAttributesChange'](_0xd2dca1));}['removeAttribute'](_0x255dcd){const _0x4c3d60=_0x180fdf(this['attributes']);_0x5bc5ec(_0x4c3d60,_0x255dcd),_0x5dbccb(_0x4c3d60,this['attributes'])||(this['attributes']=_0x4c3d60,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 _0x182257()['substr'](0x1,0x5);}}function o(_0x61bc4c,_0x75e53c,_0x15f4a6){const _0x1bb32c=_0x61bc4c['t'],t=_0x61bc4c['t'];switch(_0x75e53c){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',_0x15f4a6);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x15f4a6);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x15f4a6);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x15f4a6);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x15f4a6);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',_0x15f4a6);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x15f4a6);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',_0x15f4a6);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x15f4a6);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x15f4a6);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x15f4a6);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x15f4a6);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x15f4a6);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x15f4a6);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x15f4a6);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x15f4a6);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x15f4a6);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x15f4a6);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x15f4a6);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x15f4a6);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x15f4a6);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x15f4a6);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x15f4a6);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x15f4a6);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'},_0x15f4a6);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x15f4a6);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x15f4a6);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x15f4a6);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x15f4a6);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x15f4a6);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'},_0x15f4a6);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x15f4a6);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x15f4a6);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x15f4a6);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x15f4a6);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'},_0x15f4a6);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x15f4a6);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'},_0x15f4a6);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'},_0x15f4a6);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x15f4a6);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'},_0x15f4a6);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x15f4a6);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'},_0x15f4a6);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x15f4a6);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x15f4a6);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'},_0x15f4a6);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x15f4a6);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 _0x1bb32c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x15f4a6);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1bb32c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x15f4a6);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x15f4a6);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'},_0x15f4a6);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'},_0x15f4a6);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'},_0x15f4a6);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x75e53c;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x394b8d,_0x4c3a35){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x394b8d,this['_locale']=_0x4c3a35;}['getDescriptions'](_0x665b43){const _0x154ccf=[],_0x521c33=new Set(),_0x438483=new Set();for(let _0x267873=0x0;_0x267873<_0x665b43['length'];_0x267873++){const _0x2aeab1=_0x665b43[_0x267873];if(!_0x2aeab1['isInContent'])continue;const _0x2abd94=this['_handleCustomCallbackDescription'](_0x2aeab1);if(_0x2abd94){if(null!=_0x2aeab1['subType']){if(_0x521c33['has'](_0x2aeab1['subType']))continue;_0x521c33['add'](_0x2aeab1['subType']);}_0x154ccf['push'](_0x2abd94);}else{if('attribute'!=_0x2aeab1['type'])'insertion'!=_0x2aeab1['type']&&'deletion'!=_0x2aeab1['type']||this['_handleInsertRemoveSuggestionDescription'](_0x154ccf,_0x2aeab1,_0x665b43[_0x267873+0x1]);else{const _0x7e9ac6=_0x2aeab1['data']['key'];if(_0x438483['has'](_0x7e9ac6))continue;_0x438483['add'](_0x2aeab1['data']['key']),_0x7e9ac6==m?this['_handleRenameSuggestionDescription'](_0x154ccf,_0x2aeab1):this['_handleAttributeSuggestionDescription'](_0x154ccf,_0x2aeab1);}}}return this['_resolveDescriptionItems'](_0x154ccf);}['registerDescriptionCallback'](_0x56e1b7){this['_customCallbacks']['push'](_0x56e1b7);}['registerElementLabel'](_0x31365d,_0x154780,_0x3c5642=_0x4bb7ca['normal']){'function'==typeof _0x31365d?_0x35c211(this['_itemLabelsCallbacks'],{'matchingCallback':_0x31365d,'label':_0x154780,'priority':_0x3c5642}):this['_itemLabels']['set'](_0x31365d,_0x154780);}['registerAttributeLabel'](_0x56e041,_0x5c7f71){this['_attributeLabels']['set'](_0x56e041,_0x5c7f71);}['getItemLabel'](_0x2f1082,_0xc5be82=0x1){let _0x502364;for(const _0x54f31f of this['_itemLabelsCallbacks'])if(_0x54f31f['matchingCallback'](_0x2f1082)){_0x502364=_0x54f31f['label'];break;}return _0x502364||(_0x502364=this['_itemLabels']['get'](_0x2f1082['name'])),_0x502364?_0x502364(_0xc5be82):0x1!==_0xc5be82?_0xc5be82+'\x20'+_0x2f1082['name']+'s':''+_0x2f1082['name'];}['_addDescriptionItems'](_0x323049,_0x1adeb3){const _0x98657a=_0x1adeb3['getFirstRange']()['getWalker'](),_0x4a516d='insertion'==_0x1adeb3['type']?'add':'remove';for(const _0x3efb14 of _0x98657a){const _0x509059=_0x3efb14['item'],_0x4e0ddf=_0x323049[_0x323049['length']-0x1];if(_0x509059['is']('$textProxy'))_0x4e0ddf&&_0x4e0ddf['type']['indexOf']('Container')>-0x1&&_0x323049['pop'](),_0x4e0ddf&&'text'==_0x4e0ddf['type']?_0x4e0ddf[_0x4a516d]+=_0x509059['data']:_0x323049['push']({'type':'text','add':'add'==_0x4a516d?_0x509059['data']:'','remove':'remove'==_0x4a516d?_0x509059['data']:''});else{if(this['_schema']['isObject'](_0x509059)){const _0x37f712=_0x509059;if(_0x4e0ddf&&_0x4e0ddf['type']['indexOf']('Container')>-0x1&&_0x323049['pop'](),'elementEnd'==_0x3efb14['type'])continue;_0x4e0ddf&&_0x4e0ddf['type']==_0x4a516d+'Object'&&_0x4e0ddf['element']['name']==_0x37f712['name']?_0x4e0ddf['quantity']++:_0x323049['push']({'type':_0x4a516d+'Object','element':_0x37f712,'quantity':0x1}),_0x98657a['skip'](_0x5ba038=>!('elementEnd'==_0x5ba038['type']&&_0x5ba038['item']==_0x509059));}else{if(this['_schema']['checkChild'](_0x509059,'$text')||_0x509059['is']('element','softBreak')){const _0x540f64=_0x509059;if('add'==_0x4a516d&&'elementStart'==_0x3efb14['type']||'remove'==_0x4a516d&&'elementEnd'==_0x3efb14['type'])continue;if(_0x4e0ddf&&-0x1==_0x4e0ddf['type']['indexOf']('Container')){'text'==_0x4e0ddf['type']&&(_0x4e0ddf[_0x4a516d]+='\x0a');continue;}let _0x105053;if(_0x105053='add'==_0x4a516d?_0x540f64['nextSibling']&&!this['_schema']['isObject'](_0x540f64['nextSibling'])?_0x540f64['nextSibling']:null:_0x540f64['previousSibling']&&!this['_schema']['isObject'](_0x540f64['previousSibling'])?_0x540f64['previousSibling']:null,_0x540f64['isEmpty']||_0x105053&&_0x105053['isEmpty']){const _0x28c42c=_0x105053&&_0x105053['isEmpty']?_0x105053:_0x540f64;_0x4e0ddf&&_0x4e0ddf['type']==_0x4a516d+'EmptyContainer'&&_0x4e0ddf['element']['name']==_0x28c42c['name']?_0x4e0ddf['quantity']++:_0x323049['push']({'type':_0x4a516d+'EmptyContainer','element':_0x28c42c,'quantity':0x1});}else _0x323049['push']({'type':_0x4a516d+'Container','element':_0x540f64});}}}}}['_resolveDescriptionItems'](_0x2403d3){const _0x284693=this['_locale'],_0x31bcb5=[],_0x328d8f=[],_0xcbcd7a=[];for(const _0x265c6a of _0x2403d3)switch(_0x265c6a['type']){case'text':if(_0x265c6a['add']=_0x265c6a['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x265c6a['remove']=_0x265c6a['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x265c6a['add']&&''!=_0x265c6a['remove']){_0x31bcb5['push']({'type':'replace','content':o(_0x284693,'REPLACE_TEXT',['\x22'+_0x265c6a['remove']+'\x22','\x22'+_0x265c6a['add']+'\x22'])});continue;}if(null!=_0x265c6a['add']['match'](/^ +$/)){_0x31bcb5['push']({'type':'insertion','content':o(_0x284693,'*Insert:*\x20%0',o(_0x284693,'ELEMENT_SPACE',_0x265c6a['add']['length']))});continue;}if(null!=_0x265c6a['remove']['match'](/^ +$/)){_0x31bcb5['push']({'type':'deletion','content':o(_0x284693,'*Remove:*\x20%0',o(_0x284693,'ELEMENT_SPACE',_0x265c6a['remove']['length']))});continue;}if(''!=_0x265c6a['add']){_0x31bcb5['push']({'type':'insertion','content':o(_0x284693,'*Insert:*\x20%0','\x22'+_0x265c6a['add']+'\x22')});continue;}_0x31bcb5['push']({'type':'deletion','content':o(_0x284693,'*Remove:*\x20%0','\x22'+_0x265c6a['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x31bcb5['push']({'type':'insertion','content':o(_0x284693,'*Insert:*\x20%0',this['getItemLabel'](_0x265c6a['element'],_0x265c6a['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x31bcb5['push']({'type':'deletion','content':o(_0x284693,'*Remove:*\x20%0',this['getItemLabel'](_0x265c6a['element'],_0x265c6a['quantity']))});continue;case'addContainer':_0x31bcb5['push']({'type':'insertion','content':o(_0x284693,'*Split:*\x20%0',this['getItemLabel'](_0x265c6a['element'],_0x265c6a['quantity']))});continue;case'removeContainer':_0x31bcb5['push']({'type':'deletion','content':o(_0x284693,'*Merge:*\x20%0',this['getItemLabel'](_0x265c6a['element'],_0x265c6a['quantity']))});continue;case'addFormat':_0x328d8f['push'](_0x265c6a['key']);continue;case'removeFormat':_0xcbcd7a['push'](_0x265c6a['key']);continue;default:_0x31bcb5['push'](_0x265c6a);}if(_0x328d8f['length']){const _0x1490d2=_0x328d8f['map'](_0x50e95e=>this['_attributeLabels']['has'](_0x50e95e)?this['_attributeLabels']['get'](_0x50e95e):_0x50e95e)['join'](',\x20');_0x31bcb5['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1490d2)});}if(_0xcbcd7a['length']){const _0x1618a3=_0xcbcd7a['map'](_0x15adfc=>this['_attributeLabels']['has'](_0x15adfc)?this['_attributeLabels']['get'](_0x15adfc):_0x15adfc)['join'](',\x20');_0x31bcb5['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1618a3)});}return _0x31bcb5;}['_handleCustomCallbackDescription'](_0x350188){for(const _0x456b5d of this['_customCallbacks']){const _0x88c3ec=_0x456b5d(_0x350188);if(_0x88c3ec&&'type'in _0x88c3ec)return _0x88c3ec;}}['_handleAttributeSuggestionDescription'](_0x281d98,_0x1639e2){const _0x3c65be=_0x1639e2['data'],_0x3ea4ff=void 0x0===_0x3c65be['newValue']?'removeFormat':'addFormat';_0x281d98['push']({'type':_0x3ea4ff,'key':_0x3c65be['key']});}['_handleRenameSuggestionDescription'](_0x184aaa,_0x233e70){_0x184aaa['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x233e70['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x37c99b,_0x2a7397,_0x34c875){if(this['_addDescriptionItems'](_0x37c99b,_0x2a7397),_0x34c875&&_0x34c875['getFirstRange']()&&!_0x2a7397['getFirstRange']()['end']['isEqual'](_0x34c875['getFirstRange']()['start'])){const _0x18ee0e=_0x37c99b[_0x37c99b['length']-0x1],_0x5c3e24='insertion'==_0x2a7397['type']?'add':'remove';_0x18ee0e&&'text'==_0x18ee0e['type']&&(_0x18ee0e[_0x5c3e24]+='\x0a');}}}class U extends _0x248004{['afterInit'](){const _0xdb0eba=this['editor'],_0xa6eb86=_0xdb0eba['plugins']['get']('TrackChangesEditing');_0xdb0eba['commands']['get']('showAIAssistant')&&_0xa6eb86['enableCommand']('showAIAssistant');}}class V extends _0x248004{['afterInit'](){const _0x259cd5=this['editor'],_0x16ab7d=_0x259cd5['locale'];if(!_0x259cd5['plugins']['has']('AlignmentEditing'))return;const _0x384002=_0x259cd5['plugins']['get']('TrackChangesEditing');_0x384002['enableDefaultAttributesIntegration']('alignment'),_0x384002['registerBlockAttribute']('alignment'),_0x384002['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x16ab7d,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57c3de=this['editor'],_0x3a34a8=_0x57c3de['locale'];_0x57c3de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1161ee=>{if('formatBlock'!=_0x1161ee['type'])return;const {data:_0x109453}=_0x1161ee;if(_0x109453&&'alignment'==_0x109453['commandName']){const _0x479b2e=_0x109453['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3a34a8,'*Format:*\x20%0',function(_0x4e5268){switch(_0x4e5268){case'left':return o(_0x3a34a8,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3a34a8,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3a34a8,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3a34a8,'FORMAT_JUSTIFY_TEXT');}}(_0x479b2e))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x248004{['afterInit'](){const _0x228216=this['editor'],_0x3de9d4=_0x228216['plugins']['get']('TrackChangesEditing'),_0x57931e=_0x228216['locale'];for(const _0x3c8875 of Zt){if(!_0x228216['plugins']['has'](_0x3c8875))continue;const _0x4d134f=_0x3c8875['slice'](0x0,-0x7)['toLowerCase'](),_0x620edb='FORMAT_'+_0x4d134f['toUpperCase']();_0x3de9d4['enableDefaultAttributesIntegration'](_0x4d134f),_0x3de9d4['registerInlineAttribute'](_0x4d134f),_0x3de9d4['descriptionFactory']['registerAttributeLabel'](_0x4d134f,o(_0x57931e,_0x620edb));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d2a31=this['editor'],_0x1f4089=_0x1d2a31['locale'],_0x4aec90=_0x1d2a31['plugins']['get']('TrackChangesEditing');function _0x5c200a(_0x219e12,_0xf17403){_0x4aec90['descriptionFactory']['registerDescriptionCallback'](_0x2bc5e1=>{if('formatInline'!=_0x2bc5e1['type'])return;const {data:_0x7a84b0}=_0x2bc5e1;return _0x7a84b0&&_0x7a84b0['commandName']===_0x219e12?_0x7a84b0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1f4089,'*Format:*\x20%0',_0xf17403)}:{'type':'format','content':o(_0x1f4089,'*Remove\x20format:*\x20%0',_0xf17403)}:void 0x0;});}_0x5c200a('bold',o(_0x1f4089,'FORMAT_BOLD')),_0x5c200a('italic',o(_0x1f4089,'FORMAT_ITALIC')),_0x5c200a('underline',o(_0x1f4089,'FORMAT_UNDERLINE')),_0x5c200a('code',o(_0x1f4089,'FORMAT_CODE')),_0x5c200a('strikethrough',o(_0x1f4089,'FORMAT_STRIKETHROUGH')),_0x5c200a('subscript',o(_0x1f4089,'FORMAT_SUBSCRIPT')),_0x5c200a('superscript',o(_0x1f4089,'FORMAT_SUPERSCRIPT'));}}class F extends _0x248004{['afterInit'](){const _0x32e726=this['editor'],_0x4b0600=_0x32e726['locale'];if(!_0x32e726['plugins']['has']('BlockQuoteEditing'))return;const _0x37356d=_0x32e726['plugins']['get']('TrackChangesEditing'),_0x94fe7c=this['editor']['commands']['get']('blockQuote');_0x37356d['enableCommand']('blockQuote',(_0x14012f,_0x5e027e={})=>{const _0x4df199=this['editor']['model']['document']['selection'],_0x2a197d=_0x5e027e&&void 0x0!==_0x5e027e['forceValue']?_0x5e027e['forceValue']:!_0x94fe7c['value'];let _0x42f402=[];if(_0x2a197d){const _0x522762=Array['from'](_0x4df199['getSelectedBlocks']())['filter'](_0xef6a19=>oo(_0xef6a19)||function(_0x2ee857,_0x3f6d36){const _0x1cb63d=_0x3f6d36['checkChild'](_0x2ee857['parent'],'blockQuote'),_0x8b5534=_0x3f6d36['checkChild'](['$root','blockQuote'],_0x2ee857);return _0x1cb63d&&_0x8b5534;}(_0xef6a19,this['editor']['model']['schema']));_0x42f402=to(_0x522762,_0x32e726['model']);}else{const _0x2c37da=Array['from'](_0x4df199['getSelectedBlocks']())['filter'](_0x37b4d7=>oo(_0x37b4d7));_0x42f402=to(_0x2c37da,_0x32e726['model']);}_0x32e726['model']['change'](()=>{for(const _0x369ae5 of _0x42f402)_0x37356d['markBlockFormat'](_0x369ae5,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2a197d}]});});}),_0x37356d['descriptionFactory']['registerDescriptionCallback'](_0x2b2b0a=>{const {data:_0x466085}=_0x2b2b0a;if(_0x466085&&'blockQuote'==_0x466085['commandName']){const _0x445d61=o(_0x4b0600,'ELEMENT_BLOCK_QUOTE');return _0x466085['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4b0600,'*Set\x20format:*\x20%0',_0x445d61)}:{'type':'format','content':o(_0x4b0600,'*Remove\x20format:*\x20%0',_0x445d61)};}});}}function oo(_0x3c8cc4){return'blockQuote'==_0x3c8cc4['parent']['name'];}class L extends _0x248004{['afterInit'](){const _0x11621f=this['editor'],_0x1a9fb4=_0x11621f['locale'],_0x765b20=_0x11621f['plugins']['get']('TrackChangesEditing');_0x11621f['plugins']['has']('BookmarkEditing')&&(_0x765b20['enableCommand']('insertBookmark'),_0x765b20['enableDefaultAttributesIntegration']('updateBookmark'),_0x765b20['registerBlockAttribute']('bookmarkId'),_0x765b20['descriptionFactory']['registerDescriptionCallback'](_0x359dac=>{if('insertion'!=_0x359dac['type']&&'deletion'!=_0x359dac['type']&&'attribute'!=_0x359dac['type'])return;const _0x68541a=_0x359dac['getContainedElement']();if(null==_0x68541a)return;if(!_0x68541a['is']('element','bookmark'))return;const _0x35483c=_0x68541a['getAttribute']('bookmarkId');if('insertion'==_0x359dac['type'])return{'type':'insertion','content':o(_0x1a9fb4,'*Insert:*\x20%0','\x22'+_0x35483c+'\x22\x20'+o(_0x1a9fb4,'ELEMENT_BOOKMARK'))};if('deletion'==_0x359dac['type'])return{'type':'deletion','content':o(_0x1a9fb4,'*Remove:*\x20%0','\x22'+_0x35483c+'\x22\x20'+o(_0x1a9fb4,'ELEMENT_BOOKMARK'))};const {data:_0x36ad97}=_0x359dac;if(!_0x36ad97||'bookmarkId'!=_0x36ad97['key'])return;return{'type':'format','content':o(_0x1a9fb4,'*Set\x20bookmark:*\x20%0','\x22'+_0x36ad97['newValue']+'\x22')};}));}}class J extends _0x248004{['afterInit'](){const _0xef8a1e=this['editor'];_0xef8a1e['plugins']['has']('CaseChange')&&(_0xef8a1e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xef8a1e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xef8a1e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x248004{['afterInit'](){const _0xaf5c16=this['editor'];_0xaf5c16['commands']['get']('ckbox')&&_0xaf5c16['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x248004{['afterInit'](){const _0xa01136=this['editor'];if(!_0xa01136['plugins']['has']('CodeBlock'))return;const _0x2d255c=_0xa01136['plugins']['get']('TrackChangesEditing'),_0x52b77e=_0xa01136['locale'],_0x59032e=_0xa01136['config']['get']('codeBlock')['languages'],_0x49d161=_0xa01136['commands']['get']('codeBlock');_0x2d255c['enableCommand']('indentCodeBlock'),_0x2d255c['enableCommand']('outdentCodeBlock'),_0x2d255c['enableCommand']('codeBlock',(_0x4971b0,_0x1ce5b6={})=>{const _0x4d13b9=_0xa01136['model'],_0xf3f1f0=_0xa01136['model']['document']['selection'],_0x4ccb55=_0x1ce5b6&&void 0x0!==_0x1ce5b6['forceValue']?_0x1ce5b6['forceValue']:!_0x49d161['value'];let _0x11dd46;_0x1ce5b6['language']||(_0x1ce5b6['language']=_0x59032e[0x0]['language']),_0x11dd46=_0x4ccb55?Array['from'](_0xf3f1f0['getSelectedBlocks']())['filter'](_0x34983f=>eo(_0x34983f)||function(_0x3573fe,_0x49b1cf){if(_0x3573fe['is']('rootElement')||_0x49b1cf['isLimit'](_0x3573fe))return!0x1;return _0x49b1cf['checkChild'](_0x3573fe['parent'],'codeBlock');}(_0x34983f,_0x4d13b9['schema'])):Array['from'](_0xf3f1f0['getSelectedBlocks']())['filter'](_0x50ac8a=>eo(_0x50ac8a));const _0x529d52=to(_0x11dd46,_0x4d13b9);_0x4d13b9['change'](()=>{for(const _0xdc0689 of _0x529d52)_0x2d255c['markBlockFormat'](_0xdc0689,{'commandName':'codeBlock','commandParams':[{..._0x1ce5b6,'forceValue':_0x4ccb55}],'formatGroupId':'blockName'});});}),(_0x2d255c['descriptionFactory']['registerElementLabel']('codeBlock',_0x5dcb6c=>o(_0x52b77e,'ELEMENT_CODE_BLOCK',_0x5dcb6c)),_0x2d255c['descriptionFactory']['registerDescriptionCallback'](_0x232767=>{if('formatBlock'!=_0x232767['type'])return;const _0x467176=_0x52b77e['t'],{data:_0x35411a}=_0x232767;if(!_0x35411a||'codeBlock'!=_0x35411a['commandName'])return;const _0x3125a1=_0x35411a['commandParams'][0x0]['language'],_0x514f29=_0x467176(_0x59032e['find'](_0x4094f8=>_0x4094f8['language']===_0x3125a1)['label'])['toLowerCase']();return _0x35411a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x52b77e,'*Set\x20format:*\x20%0',o(_0x52b77e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x514f29+')')}:{'type':'format','content':o(_0x52b77e,'*Remove\x20format:*\x20%0',o(_0x52b77e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x33b0c7){return'codeBlock'==_0x33b0c7['name'];}class z extends _0x248004{['afterInit'](){const _0x3712fd=this['editor'];if(!_0x3712fd['plugins']['has']('CommentsEditing'))return;_0x3712fd['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xc4e1c3,_0x5696b8,_0x3fbebe){const _0x1d3633=[];for(const _0x471ee0 of _0x5696b8['getItems']())_0x471ee0['hasAttribute'](_0xc4e1c3)&&_0x1d3633['push'](_0x3fbebe['createRangeOn'](_0x471ee0));return _0x1d3633;}function Ne(_0x424651,_0x55d04a,{showActiveMarker:_0x3b3f03=!0x0}={}){const _0xfde32c=_0x424651['plugins']['get']('TrackChangesEditing');return(_0x47fd08,_0x47d78c,_0x1ba797)=>{if(!_0x1ba797['consumable']['test'](_0x47d78c['markerRange'],_0x47fd08['name']))return;const _0x10d3b0=_0x47d78c['markerRange']['getWalker'](),_0x52bf4f=_0x47d78c['markerRange']['start'],_0x208349=_0x424651['model']['schema'];let _0x10b00e=null,_0x41d522=null,_0x5407ba=!0x1,_0x5c5986=!0x1;for(const _0xeae5e8 of _0x10d3b0){const _0xaec870=_0xeae5e8['item'];_0x5407ba=_0x5407ba||_0x208349['isContent'](_0xaec870);const _0x4ec37e=_0x1ba797['mapper']['toViewElement'](_0xaec870);if(_0x4ec37e&&_0x4ec37e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xeae5e8['type']&&(_0x208349['isBlock'](_0xaec870)&&!_0x208349['isLimit'](_0xaec870)&&(_0xaec870['nextSibling']||_0x52bf4f['isAtEnd']?_0x10b00e&&_0x10b00e['parent']==_0xaec870||(_0x10b00e=_0xaec870,_0x160e83(_0xeae5e8['previousPosition']),_0x5c5986=!0x0):_0x41d522=_0x41d522||_0xeae5e8['previousPosition']));}function _0x160e83(_0x2c9c38){const {authorId:_0x3817f5}=_0xfde32c['_splitMarkerName'](_0x47d78c['markerName']),_0x314938=_0x1ba797['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x55d04a,'data-author-id':_0x3817f5}),_0x13b838=_0x1ba797['mapper']['toViewPosition'](_0x2c9c38);_0x3b3f03&&_0xfde32c['activeMarkers']['includes'](_0x47d78c['markerName'])&&_0x1ba797['writer']['addClass']('ck-suggestion-marker--active',_0x314938),_0x1ba797['writer']['insert'](_0x13b838,_0x314938),_0x1ba797['mapper']['bindElementToMarker'](_0x314938,_0x47d78c['markerName']);}_0x5407ba||_0x5c5986||!_0x41d522||_0x160e83(_0x41d522);};}class K extends _0x248004{static get['requires'](){return[_0x2126b3];}['init'](){const _0x182062=this['editor'],_0x2acca7=_0x182062['plugins']['get']('TrackChangesEditing');_0x2acca7['enableCommand']('delete');const _0x16b97b=_0x182062['commands']['get']('deleteForward');_0x2acca7['enableCommand']('deleteForward',(_0x23fc1d,_0x2c55bd={})=>{const _0x2a66a8=_0x182062['model']['createSelection'](_0x182062['model']['document']['selection']);_0x2a66a8['isCollapsed']&&_0x182062['model']['modifySelection'](_0x2a66a8,{'direction':'forward','unit':_0x2c55bd['unit']});const _0x449975=_0x2a66a8['getFirstRange'](),_0xeb0411=_0x117350['fromRange'](_0x449975);let _0x2e7a16;_0x23fc1d(_0x2c55bd),_0x2e7a16='$graveyard'==_0xeb0411['root']['rootName']?_0x182062['model']['createRange'](_0x449975['start']):_0x182062['model']['createRange'](_0xeb0411['start'],_0xeb0411['end']),_0xeb0411['detach'](),_0x182062['model']['enqueueChange'](_0x16b97b['buffer']['batch'],_0x287658=>{_0x16b97b['buffer']['lock'](),_0x287658['setSelection'](_0x287658['createRange'](_0x2e7a16['end'])),_0x16b97b['buffer']['unlock']();});}),_0x182062['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0x182062,'merge'),{'priority':'high'}),_0x182062['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x568181,_0x1b506e,_0x47fab5)=>{_0x47fab5['options']['showSuggestionHighlights']&&Ne(_0x182062,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x568181,_0x1b506e,_0x47fab5);},{'priority':'high'}),_0x182062['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xf92f33,_0x3b2aa9,_0x4effc7)=>{const _0x30f6b0=_0x4effc7['mapper']['markerNameToElements'](_0x3b2aa9['markerName']);if(_0x30f6b0){for(const _0x5777f5 of _0x30f6b0)_0x5777f5['is']('uiElement')&&(_0x4effc7['mapper']['unbindElementFromMarkerName'](_0x5777f5,_0x3b2aa9['markerName']),_0x4effc7['writer']['remove'](_0x5777f5));}},{'priority':'high'});}}class W extends _0x248004{['afterInit'](){const _0x22dd35=this['editor'];if(!_0x22dd35['plugins']['has']('ListEditing'))return;const _0x81c32d=_0x22dd35['locale'],_0x110ce8=_0x22dd35['plugins']['get']('TrackChangesEditing'),_0x133bb8=_0x22dd35['plugins']['has']('TodoListEditing'),_0x35029d=!!_0x22dd35['config']['get']('list.multiBlock');function _0x4188e4(_0x5133eb){return{'type':'format','content':''+o(_0x81c32d,'*Set\x20format:*\x20%0',_0x5133eb)};}function _0x53217b(_0x20713a){return{'type':'format','content':''+o(_0x81c32d,'*Remove\x20format:*\x20%0',_0x20713a)};}_0x110ce8['enableDefaultAttributesIntegration']('numberedList'),_0x110ce8['enableDefaultAttributesIntegration']('bulletedList'),_0x110ce8['enableDefaultAttributesIntegration']('customNumberedList'),_0x110ce8['enableDefaultAttributesIntegration']('customBulletedList'),_0x110ce8['enableDefaultAttributesIntegration']('indentList'),_0x110ce8['enableDefaultAttributesIntegration']('outdentList'),_0x110ce8['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x110ce8['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x110ce8['registerBlockAttribute']('listItemId'),_0x110ce8['registerBlockAttribute']('listType'),_0x110ce8['registerBlockAttribute']('listIndent'),_0x35029d&&(_0x110ce8['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x110ce8['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x133bb8&&(_0x110ce8['enableDefaultAttributesIntegration']('todoList'),_0x110ce8['enableDefaultAttributesIntegration']('checkTodoList'),_0x110ce8['registerBlockAttribute']('todoListChecked'),_0x110ce8['descriptionFactory']['registerDescriptionCallback'](_0x764e2a=>{const {data:_0x954007}=_0x764e2a;if(_0x954007&&'todoListChecked'==_0x954007['key'])return{'type':'format','content':_0x954007['newValue']?o(_0x81c32d,'*Check\x20item*'):o(_0x81c32d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2eaaff=>{if(_0x2eaaff['batch']['isUndo'])return!0x1;let _0x20bf15=!0x1;const _0x48b979=_0x110ce8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x16b345=>'todoListChecked'===_0x110ce8['_getAttributeKey'](_0x16b345));for(const _0x4a8906 of _0x48b979){'todo'!=_0x4a8906['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x110ce8['_findSuggestions'](_0x4a8906['getFirstRange'](),'attribute')['find'](_0x27f580=>'listType'===_0x110ce8['_getAttributeKey'](_0x27f580['suggestion']))||(_0x2eaaff['removeMarker'](_0x4a8906['getFirstMarker']()),_0x20bf15=!0x0));}return _0x20bf15;})),_0x110ce8['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x81c32d,'FORMAT_INDENT'));const _0x28fb7a={'type':'format','content':''};_0x110ce8['descriptionFactory']['registerDescriptionCallback'](_0x667c1a=>{const {data:_0x4b2749}=_0x667c1a;if(!_0x4b2749||'listType'!=_0x4b2749['key'])return;let _0x4378e8=_0x667c1a['head'];for(;_0x4378e8;){if(_0x4378e8['data']&&(('listStyle'==_0x4378e8['data']['key']||'listMarkerStyle'==_0x4378e8['data']['key'])&&(_0x4378e8['data']['newValue']&&'default'!=_0x4378e8['data']['newValue']||'default'!=_0x4378e8['data']['oldValue']&&!_0x4b2749['newValue'])||!_0x35029d&&_0x4378e8['data']['key']==m))return _0x28fb7a;_0x4378e8=_0x4378e8['next'];}if(null==_0x4b2749['newValue'])switch(_0x4b2749['oldValue']){case'bulleted':return _0x53217b(o(_0x81c32d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x53217b(o(_0x81c32d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x53217b(o(_0x81c32d,'ELEMENT_TODO_LIST'));}switch(_0x4b2749['newValue']){case'bulleted':return _0x4188e4(o(_0x81c32d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4188e4(o(_0x81c32d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4188e4(o(_0x81c32d,'ELEMENT_TODO_LIST'));}}),_0x110ce8['descriptionFactory']['registerDescriptionCallback'](_0x24c270=>{const {data:_0xe7c4bc}=_0x24c270;if(_0xe7c4bc&&'listIndent'==_0xe7c4bc['key'])return null==_0xe7c4bc['newValue']||null==_0xe7c4bc['oldValue']&&0x0==_0xe7c4bc['newValue']?_0x28fb7a:void 0x0;}),_0x110ce8['descriptionFactory']['registerDescriptionCallback'](_0x297af4=>{if('attribute'!=_0x297af4['type'])return;const {data:_0x5dac72}=_0x297af4;if(!_0x5dac72||'listItemId'!=_0x5dac72['key'])return;const _0x2b5a0a=Te(_0x297af4);return'newValue'==_0x2b5a0a?{'type':'format','content':o(_0x81c32d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2b5a0a?{'type':'format','content':o(_0x81c32d,'*Split:*\x20list\x20item')}:_0x28fb7a;}),_0x22dd35['model']['document']['registerPostFixer'](_0x187ae2=>this['listItemIdFixer'](_0x187ae2)),_0x22dd35['model']['document']['registerPostFixer'](_0x486af3=>this['noTrackChangesFixer'](_0x486af3)),_0x22dd35['model']['document']['on']('change:data',(_0x105bd2,_0x57ba22)=>{if(_0x57ba22['isUndo']||!_0x57ba22['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x495a1b){if(_0x495a1b['batch']['isUndo']||!_0x495a1b['batch']['isLocal'])return!0x1;let _0x527177=!0x1;const _0x166a4b=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x13f527=>_0x13f527['data']&&'listItemId'==_0x13f527['data']['key'])['filter'](_0x4faac3=>_0x4faac3['data']['newValue']&&_0x4faac3['data']['oldValue']);for(const _0x3d834e of _0x166a4b)Te(_0x3d834e)||(_0x495a1b['removeMarker'](_0x3d834e['getFirstMarker']()),_0x527177=!0x0);return _0x527177;}['noTrackChangesFixer'](_0x103c0c){if(_0x103c0c['batch']['isUndo']||!_0x103c0c['batch']['isLocal'])return!0x1;const _0x2d37ab=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2d37ab['trackChangesCommand']['value'])return!0x1;let _0x31535b=!0x1;const _0x1d8cde=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x26ad7f=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x113e92=>'attribute'==_0x113e92['type'])['filter'](_0x35d7fe=>_0x1d8cde['includes'](_0x35d7fe['attributeKey']));if(0x0==_0x26ad7f['length'])return _0x31535b;for(const _0x31aed7 of _0x26ad7f){const _0x19a424=_0x2d37ab['_findSuggestions'](_0x31aed7['range'],'attribute')['filter'](_0x39b41e=>!_0x39b41e['meta']['isNextTo'])['map'](_0xed0e81=>_0xed0e81['suggestion'])['filter'](_0x141784=>{const _0x3778f0=_0x2d37ab['_getAttributeKey'](_0x141784);return _0x1d8cde['includes'](_0x3778f0);});if(_0x19a424['length']){for(const _0x21cde4 of _0x19a424)_0x103c0c['removeMarker'](_0x21cde4['getFirstMarker']());_0x31535b=!0x0;}}return _0x31535b;}['assureChains'](){const _0x5d7ccd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4db355=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xde2a67;const _0x5f3d58=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4b045a=>{if(_0x4b045a['data']['oldRange']||!_0x4b045a['data']['newRange'])return null;if(!_0x4b045a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xd39e4a}=_0x5d7ccd['_splitMarkerName'](_0x4b045a['name']);if(!_0x5d7ccd['hasSuggestion'](_0xd39e4a))return null;const _0x121677=_0x5d7ccd['getSuggestion'](_0xd39e4a);return _0x4db355['includes'](_0x121677['data']['key']);})['map'](_0x209a3b=>{const {id:_0x491057}=_0x5d7ccd['_splitMarkerName'](_0x209a3b['name']),_0x234da7=_0x5d7ccd['getSuggestion'](_0x491057);return _0xde2a67=_0x234da7['attributes']['groupId'],_0x234da7['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5f3d58['size'])return;const _0x361d2c=_0x5d7ccd['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x36bced=>'attribute'==_0x36bced['type']&&_0x36bced['data']&&_0x4db355['includes'](_0x36bced['data']['key'])&&_0x36bced['attributes']['groupId']!=_0xde2a67)['map'](_0x3b1e1e=>({'listItem':_0x3b1e1e['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3b1e1e['attributes']['groupId']})),_0x31d859=new Set();for(const {groupId:_0x4dd614,listItem:_0x31c20e}of _0x361d2c)_0x5f3d58['has'](_0x31c20e)&&_0x31d859['add'](_0x4dd614);for(const _0x436155 of _0x5d7ccd['getSuggestions']())_0x31d859['has'](_0x436155['attributes']['groupId'])&&_0x436155['setAttribute']('groupId',_0xde2a67);}['_supportLegacySuggestions'](){const _0x24d614=this['editor'],_0x34efc0=_0x24d614['locale'],_0x5998ea=_0x24d614['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5998ea['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x586ed1,_0x54bd0e){const _0x248729=[];for(let _0x1c71ab of _0x586ed1)_0x1c71ab['start']['nodeAfter']===_0x1c71ab['end']['parent']&&(_0x1c71ab=_0x24d614['model']['createRange'](_0x24d614['model']['createPositionAt'](_0x1c71ab['start']['nodeAfter'],0x0))),_0x248729['push'](_0x1c71ab);_0x24d614['model']['change'](_0x71972e=>{const _0x3dc448=_0x24d614['model']['document']['selection'],_0x44dbe6=Array['from'](_0x3dc448['getRanges']())['map'](_0x21790e=>_0x117350['fromRange'](_0x21790e));_0x71972e['setSelection'](_0x248729),_0x24d614['commands']['get'](_0x54bd0e['commandName'])['refresh'](),_0x54bd0e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x24d614['execute'](_0x54bd0e['commandName'],..._0x54bd0e['commandParams']),_0x71972e['setSelection'](_0x44dbe6);for(const _0x27adbb of _0x44dbe6)_0x27adbb['detach']();});}),_0x5998ea['descriptionFactory']['registerElementLabel'](function(_0x2403f0){const _0x505a58=!_0x24d614['model']['schema']['isObject'](_0x2403f0),_0x5dc627=_0x2403f0['previousSibling'],_0x43309f=_0x2403f0['nextSibling'],_0x5e4aed=_0x2403f0['getAttribute']('listItemId'),_0x479cfe=!_0x5dc627||_0x5dc627['getAttribute']('listItemId')!==_0x5e4aed,_0x9c752b=!_0x43309f||_0x43309f['getAttribute']('listItemId')!==_0x5e4aed;return _0x505a58&&Boolean(_0x5e4aed)&&_0x479cfe&&_0x9c752b;},_0x47cae1=>o(_0x34efc0,'ELEMENT_LIST_ITEM',_0x47cae1));}['_registerLegacyDescription'](){const _0x2c19ce=this['editor'],_0x590422=_0x2c19ce['locale'];function _0xf3b87e(_0x21da9e){const _0x5c9f49=_0x2c19ce['commands']['get']('bulletedList')['value'],_0x4f297b=_0x2c19ce['commands']['get']('numberedList')['value'];return'numberedList'===_0x21da9e?_0x5c9f49:_0x4f297b;}_0x2c19ce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1c83e0){if('formatBlock'!=_0x1c83e0['type'])return;const {data:_0x544dd7}=_0x1c83e0;if(!_0x544dd7)return;let _0x418913,_0x26d51c,_0x5b80a3,_0x344fc0;switch(_0x544dd7['commandName']){case'bulletedList':_0x5b80a3=_0x544dd7['commandParams'][0x0]['forceValue'],_0x344fc0=_0xf3b87e(_0x544dd7['commandName']),_0x418913=_0x5b80a3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x344fc0&&_0x2c19ce['config']['get']('list.multiBlock')||(_0x418913='*Change\x20to:*\x20%0'),_0x26d51c={'type':'format','content':o(_0x590422,_0x418913,o(_0x590422,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5b80a3=_0x544dd7['commandParams'][0x0]['forceValue'],_0x344fc0=_0xf3b87e(_0x544dd7['commandName']),_0x418913=_0x5b80a3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x344fc0&&_0x2c19ce['config']['get']('list.multiBlock')||(_0x418913='*Change\x20to:*\x20%0'),_0x26d51c={'type':'format','content':o(_0x590422,_0x418913,o(_0x590422,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x418913='*Indent:*\x20%0',_0x26d51c={'type':'format','content':o(_0x590422,_0x418913,o(_0x590422,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x418913=function(_0x525a23){const _0x2421db=_0x525a23['getFirstRange']();let _0x3ca0a9=_0x2421db['start']['nodeAfter'];for(;_0x3ca0a9&&_0x2421db['containsItem'](_0x3ca0a9);){if(_0x3ca0a9['getAttribute']('listIndent')>0x0)return!0x1;_0x3ca0a9=_0x3ca0a9['nextSibling'];}return!0x0;}(_0x1c83e0)?o(_0x590422,'*Format:*\x20remove\x20from\x20%0',o(_0x590422,function(_0x499306){return'ELEMENT_'+_0x499306['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1c83e0))):o(_0x590422,'*Outdent:*\x20%0',o(_0x590422,'ELEMENT_LIST_ITEM')),_0x26d51c={'type':'format','content':_0x418913};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x544dd7['multipleBlocks']&&(_0x418913='*Merge:*\x20%0',_0x26d51c={'type':'deletion','content':o(_0x590422,_0x418913,o(_0x590422,'ELEMENT_LIST_ITEM'))});}return _0x26d51c;});}}function Te(_0x88a3a){let _0xb10730=_0x88a3a['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xb10730;){const _0x2a65a3=_0xb10730['getAttribute']('listItemId');if(!_0x2a65a3)return!0x1;if(_0x2a65a3==_0x88a3a['data']['newValue'])return'newValue';if(_0x2a65a3==_0x88a3a['data']['oldValue'])return'oldValue';_0xb10730=_0xb10730['previousSibling'];}return!0x1;}class ye extends _0x248004{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x40c43b=this['editor']['config']['get']('list.properties'),_0xb4fdeb=this['editor']['plugins']['get']('TrackChangesEditing');_0x40c43b['styles']&&(_0xb4fdeb['enableDefaultAttributesIntegration']('listStyle'),_0xb4fdeb['registerBlockAttribute']('listStyle')),_0x40c43b['reversed']&&(_0xb4fdeb['enableDefaultAttributesIntegration']('listReversed'),_0xb4fdeb['registerBlockAttribute']('listReversed')),_0x40c43b['startIndex']&&(_0xb4fdeb['enableDefaultAttributesIntegration']('listStart'),_0xb4fdeb['registerBlockAttribute']('listStart'));const _0x200f0f={'type':'format','content':''};_0xb4fdeb['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x59335f=this['editor']['locale'];_0xb4fdeb['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x59335f,'FORMAT_LIST_REVERSED')),_0xb4fdeb['descriptionFactory']['registerDescriptionCallback'](_0x5a5584=>{const {data:_0x34818c}=_0x5a5584;if(_0x34818c&&'listReversed'==_0x34818c['key'])return null==_0x34818c['newValue']||0x0==_0x34818c['newValue']&&null==_0x34818c['oldValue']?_0x200f0f:void 0x0;}),_0xb4fdeb['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x59335f,'FORMAT_LIST_START')),_0xb4fdeb['descriptionFactory']['registerDescriptionCallback'](_0x204a23=>{const {data:_0x31e5ad}=_0x204a23;if(_0x31e5ad&&'listStart'==_0x31e5ad['key'])return null==_0x31e5ad['newValue']||0x1==_0x31e5ad['newValue']&&null==_0x31e5ad['oldValue']?_0x200f0f:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x270fdd=>{if(_0x270fdd['batch']['isUndo'])return!0x1;let _0x34cced=!0x1;const _0x4f4705=_0xb4fdeb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x8968e5=>{const _0x486850=_0xb4fdeb['_getAttributeKey'](_0x8968e5);return'listStart'==_0x486850||'listReversed'==_0x486850;});for(const _0x1ed45d of _0x4f4705){const _0x20e3e2=_0x1ed45d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x20e3e2||'customNumbered'==_0x20e3e2)continue;_0xb4fdeb['_findSuggestions'](_0x1ed45d['getFirstRange'](),'attribute')['find'](_0x5b8df9=>'listType'==_0xb4fdeb['_getAttributeKey'](_0x5b8df9['suggestion']))||(_0x270fdd['removeMarker'](_0x1ed45d['getFirstMarker']()),_0x34cced=!0x0);}return _0x34cced;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4489e1){const _0x57ede4=this['editor']['locale'],{data:_0x5eee5c}=_0x4489e1,_0x1c4505={'type':'format','content':''};if(!_0x5eee5c||'listStyle'!=_0x5eee5c['key'])return;if(!_0x5eee5c['oldValue'])return'default'==_0x5eee5c['newValue']?_0x1c4505:{'type':'format','content':''+o(_0x57ede4,'*Set\x20format:*\x20%0',o(_0x57ede4,this['_getTranslationKeyForListStyle'](_0x5eee5c['newValue'])))};if(!_0x5eee5c['newValue']){if('default'==_0x5eee5c['oldValue'])return _0x1c4505;let _0x1bcde5=_0x4489e1['head'];for(;_0x1bcde5;){if(_0x1bcde5['data']&&'listType'==_0x1bcde5['data']['key']&&_0x1bcde5['data']['newValue'])return _0x1c4505;_0x1bcde5=_0x1bcde5['next'];}return{'type':'format','content':''+o(_0x57ede4,'*Remove\x20format:*\x20%0',o(_0x57ede4,this['_getTranslationKeyForListStyle'](_0x5eee5c['oldValue'])))};}if('default'!=_0x5eee5c['newValue'])return{'type':'format','content':''+o(_0x57ede4,'*Set\x20format:*\x20%0',o(_0x57ede4,this['_getTranslationKeyForListStyle'](_0x5eee5c['newValue'])))};let _0x1a3a00=_0x4489e1['head'];for(;_0x1a3a00;){if(_0x1a3a00['data']&&'listType'==_0x1a3a00['data']['key']&&_0x1a3a00['data']['newValue']&&_0x1a3a00['data']['oldValue'])return _0x1c4505;_0x1a3a00=_0x1a3a00['next'];}return{'type':'format','content':o(_0x57ede4,'*Set\x20format:*\x20%0',o(_0x57ede4,'ELEMENT_'+_0x4489e1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3aa993=this['editor'],_0x5b29a0=_0x3aa993['locale'];_0x3aa993['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4afa33=>{if('formatBlock'!=_0x4afa33['type'])return;const {data:_0x573240}=_0x4afa33;if(!_0x573240)return;let _0x53eb5a,_0x1bfd14;switch(_0x573240['commandName']){case'listStyle':_0x53eb5a='*Change\x20to:*\x20%0',_0x1bfd14={'type':'format','content':o(_0x5b29a0,_0x53eb5a,o(_0x5b29a0,this['_getTranslationKeyForListStyle'](_0x573240['commandParams'][0x0]['type'])))};break;case'listReversed':_0x53eb5a=_0x573240['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1bfd14={'type':'format','content':o(_0x5b29a0,_0x53eb5a)};break;case'listStart':_0x53eb5a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1bfd14={'type':'format','content':o(_0x5b29a0,_0x53eb5a,_0x573240['commandParams'][0x0]['startIndex'])};}return _0x1bfd14;});}['_getTranslationKeyForListStyle'](_0x3ce7ee){return'ELEMENT_'+function(_0x162eaf){if(Se['includes'](_0x162eaf))return'bulleted';if(_e['includes'](_0x162eaf))return'numbered';return null;}(_0x3ce7ee)['toUpperCase']()+'_LIST_'+_0x3ce7ee['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x248004{static get['requires'](){return[_0x3841ed];}['init'](){const _0x1235b2=this['editor'],_0x4d5997=_0x1235b2['plugins']['get']('TrackChangesEditing'),_0x42ff3a=_0x1235b2['commands']['get']('enter');_0x4d5997['enableCommand']('enter',()=>{_0x1235b2['model']['change'](_0x2b0420=>{const _0x419f6a=_0x1235b2['model']['document']['selection'],_0x49951a=_0x419f6a['getFirstPosition'](),_0x1b2fcc=_0x117350['fromRange'](_0x419f6a['getFirstRange']());if(_0x42ff3a['enterBlock'](_0x2b0420)){const _0x5e757f=_0x1235b2['model']['createPositionAt'](_0x49951a['parent']['nextSibling'],0x0),_0x6200a6=_0x2b0420['createRange'](_0x49951a,_0x5e757f);_0x4d5997['markInsertion'](_0x6200a6);}else _0x2b0420['setSelection'](_0x2b0420['createRange'](_0x1b2fcc['end']));_0x1b2fcc['detach'](),_0x42ff3a['fire']('afterExecute',{'writer':_0x2b0420});});}),_0x1235b2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x1235b2,'split'),{'priority':'high'}),_0x1235b2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x15d246,_0x59b979,_0x3ac166)=>{const _0x5b0b1e=_0x3ac166['mapper']['markerNameToElements'](_0x59b979['markerName']);if(_0x5b0b1e){for(const _0x3e64e1 of _0x5b0b1e)_0x3e64e1['hasClass']('ck-suggestion-marker-split')&&(_0x3ac166['mapper']['unbindElementFromMarkerName'](_0x3e64e1,_0x59b979['markerName']),_0x3ac166['writer']['remove'](_0x3e64e1));}},{'priority':'high'}),_0x1235b2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x48d950,_0x1bf7be,_0x1ac4ad)=>{_0x1ac4ad['options']['showSuggestionHighlights']&&Ne(_0x1235b2,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x48d950,_0x1bf7be,_0x1ac4ad);},{'priority':'high'});}}class Y extends _0x248004{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3079ed=this['editor']['plugins']['get']('TrackChangesEditing');_0x3079ed['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3079ed['enableCommand']('findNext'),_0x3079ed['enableCommand']('findPrevious'),_0x3079ed['enableCommand']('replace'),_0x3079ed['enableCommand']('replaceAll');}['handleFindCommand'](_0x195231,_0x4ae1a9,_0x18bae8={}){const _0x4ec516=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x195231(_0x5e06d1=>{let _0x3b6652=('string'==typeof _0x4ae1a9?_0x4ec516['findByTextCallback'](_0x4ae1a9,_0x18bae8):_0x4ae1a9)(_0x5e06d1);Array['isArray'](_0x3b6652)&&(_0x3b6652={'results':_0x3b6652,'searchText':'string'==typeof _0x4ae1a9?_0x4ae1a9:''});const _0x3c91c2=_0x3b6652['results']['filter'](_0x59e763=>!0x1===this['_isInDeletionRange'](_0x59e763,_0x5e06d1['item']));return{..._0x3b6652,'results':_0x3c91c2};},_0x18bae8);}['_isInDeletionRange'](_0x4d55ba,_0x368b3e){const _0x54f012=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x368b3e,_0x4d55ba['start']),this['editor']['model']['createPositionAt'](_0x368b3e,_0x4d55ba['end']));for(const _0x49ac11 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x54f012['getIntersection'](_0x49ac11['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x248004{['afterInit'](){const _0x13d1f5=this['editor']['locale'],_0x544856=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x35e408,commandName:_0x47f674}of ro)this['editor']['plugins']['has'](_0x35e408)&&(_0x544856['enableDefaultAttributesIntegration'](_0x47f674),_0x544856['registerInlineAttribute'](_0x47f674));_0x544856['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x13d1f5,'FORMAT_FONT_SIZE')),_0x544856['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x13d1f5,'FORMAT_FONT_FAMILY')),_0x544856['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x13d1f5,'FORMAT_FONT_COLOR')),_0x544856['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x13d1f5,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2746ad=this['editor'],_0x40fa8c=_0x2746ad['locale'];_0x2746ad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39d5ce=>{const _0x506ea1=_0x40fa8c['t'];if('formatInline'!=_0x39d5ce['type'])return;const {data:_0x59dad5}=_0x39d5ce;if(null!=_0x59dad5){if('fontSize'==_0x59dad5['commandName']){const _0x55180a=_0x59dad5['commandParams'][0x0]['value'];if(_0x55180a){const _0x1a1c3c=_0x506ea1(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4e5015=>_0x4e5015['model']==_0x55180a)['title'])['toLowerCase']();return{'type':'format','content':o(_0x40fa8c,'*Set\x20font\x20size:*\x20%0',_0x1a1c3c)};}return{'type':'format','content':o(_0x40fa8c,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x59dad5['commandName']){const _0x23a360=_0x59dad5['commandParams'][0x0]['value'];return _0x23a360?{'type':'format','content':o(_0x40fa8c,'*Set\x20font\x20family:*\x20%0',_0x23a360)}:{'type':'format','content':o(_0x40fa8c,'*Reset\x20font\x20family*')};}if('fontColor'==_0x59dad5['commandName']){const _0x418e6a=_0x59dad5['commandParams'][0x0]['value'];if(_0x418e6a){const _0x1138f5=_0x2a9802(this['editor']['config']['get']('fontColor.colors'))['find'](_0xaf4704=>_0xaf4704['model']==_0x418e6a);let _0x5aa1c9=_0x418e6a,_0x57d352='';return _0x1138f5&&(_0x5aa1c9=_0x1138f5['label'],_0x57d352=_0x506ea1(_0x5aa1c9)['toLowerCase']()),{'type':'format','content':o(_0x40fa8c,'*Set\x20font\x20color:*\x20%0',_0x57d352)['trim'](),'color':{'value':_0x418e6a,'title':_0x57d352||_0x5aa1c9}};}return{'type':'format','content':o(_0x40fa8c,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x59dad5['commandName']){const _0x4e735b=_0x59dad5['commandParams'][0x0]['value'];if(_0x4e735b){const _0x4995d4=_0x2a9802(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x55fc60=>_0x55fc60['model']==_0x4e735b);let _0x2872b2=_0x4e735b,_0x518140='';return _0x4995d4&&(_0x2872b2=_0x4995d4['label'],_0x518140=_0x506ea1(_0x2872b2)['toLowerCase']()),{'type':'format','content':o(_0x40fa8c,'*Set\x20font\x20background\x20color:*\x20%0',_0x518140)['trim'](),'color':{'value':_0x4e735b,'title':_0x518140||_0x2872b2}};}return{'type':'format','content':o(_0x40fa8c,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x248004{['afterInit'](){const _0x47d0e3=this['editor'],_0x5cb4bc=_0x47d0e3['plugins']['get']('TrackChangesEditing'),_0x574a53=_0x47d0e3['commands']['get']('copyFormat'),_0x19ce15=_0x47d0e3['commands']['get']('pasteFormat');_0x574a53&&_0x19ce15&&(_0x5cb4bc['enableDefaultAttributesIntegration']('pasteFormat'),_0x5cb4bc['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x14bd39=this['editor'],_0xcd0ac=_0x14bd39['locale'];_0x14bd39['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fe4f3=>{if('formatBlock'!=_0x3fe4f3['type']&&'formatInline'!=_0x3fe4f3['type'])return;const {data:_0x5aa17a}=_0x3fe4f3;if(_0x5aa17a&&'pasteFormat'===_0x5aa17a['commandName']){const _0x1b204c=[],_0x11a5fd=_0x5aa17a['commandParams'][0x0];for(const [_0x2d719b,_0x2b39fc]of Object['entries'](_0x11a5fd))_0x1b204c['push'](so(_0x14bd39,_0x2d719b,_0x2b39fc));return _0x1b204c['length']?{'type':'format','content':o(_0xcd0ac,'*Set\x20format\x20to:*\x20%0',_0x1b204c['join'](',\x20'))}:{'type':'format','content':o(_0xcd0ac,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1d1c13,_0x2090f1,_0x2dc6b2){const _0x5b5d04=_0x1d1c13['locale']['t'],_0xf6ddc=_0x2090f1['split'](/(?=[A-Z])/)['join']('\x20'),_0x26f7e2=_0x5b5d04(_0xf6ddc['charAt'](0x0)['toUpperCase']()+_0xf6ddc['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2dc6b2)return _0x26f7e2;if('fontColor'===_0x2090f1||'fontBackgroundColor'===_0x2090f1){const _0x1976c0=_0x2a9802(_0x1d1c13['config']['get']('fontColor.colors'))['find'](_0x5a2371=>_0x5a2371['model']==_0x2dc6b2);return _0x26f7e2+'\x20('+(_0x1976c0?_0x5b5d04(_0x1976c0['label'])['toLowerCase']():_0x2dc6b2)+')';}if('fontSize'===_0x2090f1&&isNaN(parseFloat(_0x2dc6b2))){const _0x100757=_0x1d1c13['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1d1c13['config']['get']('fontSize.options'))['find'](_0x12cda9=>_0x12cda9['model']==_0x2dc6b2);return _0x26f7e2+'\x20('+(_0x100757?_0x5b5d04(_0x100757['title'])['toLowerCase']():_0x2dc6b2)+')';}return _0x26f7e2+'\x20('+_0x2dc6b2+')';}class nt extends _0x248004{['_headingOptions'];['afterInit'](){const _0x35ecd9=this['editor'];if(!_0x35ecd9['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x35ecd9['config']['get']('heading.options');const _0x5ecd31=_0x35ecd9['locale'],_0x1cc3f7=_0x35ecd9['plugins']['get']('TrackChangesEditing');_0x1cc3f7['enableDefaultAttributesIntegration']('heading');for(const _0x4ed0e9 of this['_headingOptions'])'paragraph'!=_0x4ed0e9['model']&&_0x1cc3f7['descriptionFactory']['registerElementLabel'](_0x4ed0e9['model'],_0xc1b52=>{const _0x54c18a=this['_getHeadingLevel'](_0x4ed0e9['model']);return null!==_0x54c18a?_0x177aac(_0xc1b52,_0x54c18a):_0x3be40a(_0xc1b52,_0x4ed0e9['title']);});function _0x177aac(_0x3fb6b4,_0x4351e3){return o(_0x5ecd31,'ELEMENT_HEADING',[_0x3fb6b4,_0x4351e3]);}function _0x3be40a(_0x4fea85,_0x1aa8c3){return o(_0x5ecd31,'ELEMENT_HEADING_CUSTOM',[_0x4fea85,_0x1aa8c3]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2641e7=this['editor'],_0x5274ca=_0x2641e7['locale'];function _0x48b182(_0x3361ec,_0x121464){return o(_0x5274ca,'ELEMENT_HEADING_CUSTOM',[_0x3361ec,_0x121464]);}_0x2641e7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x390b6a=>{if('formatBlock'!=_0x390b6a['type'])return;const {data:_0x4198ed}=_0x390b6a;if(_0x4198ed&&'heading'==_0x4198ed['commandName']){const _0xb81080=_0x4198ed['commandParams'][0x0]['value'],_0x2b263b=this['_getHeadingLevel'](_0xb81080);if(null!==_0x2b263b)return{'type':'format','content':o(_0x5274ca,'*Change\x20to:*\x20%0',(_0x315049=0x1,_0x39e674=_0x2b263b,o(_0x5274ca,'ELEMENT_HEADING',[_0x315049,_0x39e674])))};const _0x4e7acf=this['_headingOptions']['find'](_0x19c49f=>_0x19c49f['model']===_0xb81080)['title'];return{'type':'format','content':o(_0x5274ca,'*Change\x20to:*\x20%0',_0x48b182(0x1,_0x4e7acf))};}var _0x315049,_0x39e674;});}['_getHeadingLevel'](_0x2fa1bf){const _0x81cc3=_0x2fa1bf['match'](/^heading(\d+)/);if(_0x81cc3)return _0x81cc3[0x1];const _0x553bfc=this['_headingOptions']?.['find'](_0x283c22=>_0x283c22['model']==_0x2fa1bf);if(_0x553bfc&&_0x553bfc['view']){const _0x14fad0=_0x553bfc['view'],_0x3348ed=(_0x14fad0['name']??_0x14fad0)['match'](/^h(\d+)/);if(_0x3348ed)return _0x3348ed[0x1];}return null;}}class it extends _0x248004{['afterInit'](){const _0xfda0a5=this['editor'];if(!_0xfda0a5['plugins']['has']('HighlightEditing'))return;const _0x5c39f3=_0xfda0a5['plugins']['get']('TrackChangesEditing'),_0x42dcb2=_0xfda0a5['locale'];_0x5c39f3['enableDefaultAttributesIntegration']('highlight'),_0x5c39f3['registerInlineAttribute']('highlight'),_0x5c39f3['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x42dcb2,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2bd760=this['editor'],_0xa60dda=_0x2bd760['locale'];_0x2bd760['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f084b=>{if('formatInline'!=_0x1f084b['type'])return;const {data:_0x23f2fe}=_0x1f084b;if(_0x23f2fe&&'highlight'==_0x23f2fe['commandName']){const _0x32532c=_0xa60dda['t'],_0x2f656b=_0x23f2fe['commandParams'][0x0]['value'];if(_0x2f656b){const _0x3978a6=_0x2bd760['config']['get']('highlight.options')['find'](_0x442acb=>_0x442acb['model']==_0x2f656b),_0x218990=_0x32532c(_0x3978a6['title'])['toLowerCase']();return{'type':'format','content':o(_0xa60dda,'*Set\x20highlight:*\x20%0',_0x218990),'color':{'value':_0x3978a6['color'],'title':_0x3978a6['title']}};}return{'type':'format','content':o(_0xa60dda,'*Remove\x20highlight*',o(_0xa60dda,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x248004{['afterInit'](){const _0x9781ab=this['editor'];if(!_0x9781ab['plugins']['has']('HorizontalLineEditing'))return;_0x9781ab['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5c06be=_0x9781ab['plugins']['get']('TrackChangesEditing'),_0x52f5f7=_0x9781ab['locale'];_0x5c06be['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1fb76c=>o(_0x52f5f7,'ELEMENT_HORIZONTAL_LINE',_0x1fb76c)),_0x9781ab['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x388dc4,{writer:_0x3490e4,options:_0x1c0d4d})=>{if(!_0x1c0d4d['showSuggestionHighlights'])return null;const _0x30cb12=_0x3490e4['createContainerElement']('div'),_0x4e77fc=_0x3490e4['createEmptyElement']('hr');return _0x3490e4['addClass']('ck-horizontal-line',_0x30cb12),_0x3490e4['insert'](_0x3490e4['createPositionAt'](_0x30cb12,0x0),_0x4e77fc),_0x30cb12;},'converterPriority':'high'});}}class st extends _0x248004{['afterInit'](){const _0x28351d=this['editor'];if(!_0x28351d['plugins']['has']('HtmlEmbed'))return;const _0x2a105b=_0x28351d['plugins']['get']('TrackChangesEditing'),_0xbe9913=_0x28351d['locale'];_0x2a105b['descriptionFactory']['registerElementLabel']('rawHtml',_0x21a402=>o(_0xbe9913,'ELEMENT_HTML_EMBED',_0x21a402)),_0x2a105b['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2a105b['registerBlockAttribute']('value'),_0x2a105b['descriptionFactory']['registerDescriptionCallback'](_0x184470=>{if('attribute'!=_0x184470['type'])return;const {data:_0x26ee25}=_0x184470;if(_0x26ee25&&'value'==_0x26ee25['key']&&_0x184470['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x144f3b=o(_0xbe9913,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xbe9913,'*Change\x20%0\x20content*',_0x144f3b)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d43bc=this['editor'],_0x16dd42=_0x1d43bc['locale'];_0x1d43bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c8435=>{if('formatBlock'!=_0x4c8435['type'])return;const {data:_0x940a7c}=_0x4c8435;if(_0x940a7c&&'htmlEmbed'==_0x940a7c['commandName']){const _0x4b2e0c=o(_0x16dd42,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x16dd42,'*Change\x20%0\x20content*',_0x4b2e0c)};}});}}class ot extends _0x248004{['afterInit'](){const _0x3234b4=this['editor'];if(!_0x3234b4['plugins']['has']('ImageEditing'))return;const _0x260284=_0x3234b4['plugins']['get']('TrackChangesEditing'),_0x1b8e82=_0x3234b4['plugins']['get']('ImageUtils'),_0x5e6576=_0x3234b4['locale'];_0x260284['enableCommand']('insertImage'),_0x260284['descriptionFactory']['registerElementLabel']('imageBlock',_0x700157=>o(_0x5e6576,'ELEMENT_IMAGE',_0x700157)),_0x260284['descriptionFactory']['registerElementLabel']('imageInline',_0xa453c=>o(_0x5e6576,'ELEMENT_INLINE_IMAGE',_0xa453c)),_0x260284['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5e6576,'ELEMENT_CAPTION')),_0x3234b4['plugins']['has']('ImageUploadEditing')&&_0x260284['enableCommand']('uploadImage'),_0x3234b4['plugins']['has']('ImageBlockEditing')&&_0x3234b4['plugins']['has']('ImageInlineEditing')&&(_0x260284['enableCommand']('imageTypeInline',(_0xa7c233,_0x5a1144)=>{const _0x19eac3=_0x1b8e82['getClosestSelectedImageElement'](_0x3234b4['model']['document']['selection']);_0x3234b4['model']['change'](()=>{_0x260284['markBlockFormat'](_0x19eac3,{'commandName':'imageTypeInline','commandParams':[_0x5a1144]},[],'convertBlockImageToInline');});}),_0x260284['enableCommand']('imageTypeBlock',(_0x27189d,_0xa33c00)=>{_0x3234b4['model']['change'](_0x8baa91=>{let _0x3e9a96=_0x1b8e82['getClosestSelectedImageElement'](_0x3234b4['model']['document']['selection']),_0x50ffb6=_0x8baa91['createRangeOn'](_0x3e9a96);const _0x3e82a1=_0x53bfd3['fromPosition'](_0x50ffb6['start'],'toPrevious'),_0x492b76=_0x53bfd3['fromPosition'](_0x50ffb6['end'],'toNext');_0x260284['forceDefaultExecution'](()=>_0x27189d(_0xa33c00)),_0x3e9a96=_0x1b8e82['getClosestSelectedImageElement'](_0x3234b4['model']['document']['selection']),_0x50ffb6=_0x8baa91['createRangeOn'](_0x3e9a96);const _0x1e4540=_0x8baa91['createRange'](_0x3e82a1,_0x492b76);_0x3e82a1['detach'](),_0x492b76['detach'](),_0x260284['markBlockFormat'](_0x3e9a96,{'commandName':'imageTypeInline','commandParams':[_0xa33c00]},[],'convertInlineImageToBlock'),_0x1e4540['start']['isBefore'](_0x50ffb6['start'])&&_0x260284['markInsertion'](_0x8baa91['createRange'](_0x1e4540['start'],_0x50ffb6['start']),'convertInlineImageToBlock'),_0x50ffb6['end']['isBefore'](_0x1e4540['end'])&&_0x260284['markInsertion'](_0x8baa91['createRange'](_0x50ffb6['end'],_0x1e4540['end']),'convertInlineImageToBlock');});}),_0x260284['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x260284['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x260284['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x260284['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x260284['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x260284['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x48429e])=>{const _0x3e6ded=_0x260284['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x55c504=_0x48429e['start'],_0x2e4c74=_0x48429e['end'];const _0x1367f8=_0x3234b4['model']['schema']['getNearestSelectionRange'](_0x55c504,'backward'),_0x552610=_0x3234b4['model']['schema']['getNearestSelectionRange'](_0x2e4c74,'forward');_0x1367f8['isCollapsed']&&(_0x55c504=_0x1367f8['start']),_0x552610['isCollapsed']&&(_0x2e4c74=_0x552610['end']),_0x3e6ded([_0x3234b4['model']['createRange'](_0x55c504,_0x2e4c74)]);}),_0x260284['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4a9441),_0x260284['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4a9441)),_0x3234b4['plugins']['has']('ImageCaptionEditing')&&(_0x260284['enableCommand']('toggleImageCaption',(_0x4bc764,_0xec9179)=>{const _0x19b79d=_0x3234b4['plugins']['get']('ImageCaptionUtils');let _0x18b7e3=_0x1b8e82['getClosestSelectedImageElement'](_0x3234b4['model']['document']['selection']),_0x2bdc0a=_0x19b79d['getCaptionFromImageModelElement'](_0x18b7e3);_0x3234b4['model']['change'](()=>{if(_0x2bdc0a)return void _0x260284['markDeletion'](_0x3234b4['model']['createRangeOn'](_0x2bdc0a));const _0x4f1d81=_0x1b8e82['isBlockImage'](_0x18b7e3);_0x4bc764(_0xec9179),_0x18b7e3=_0x1b8e82['getClosestSelectedImageElement'](_0x3234b4['model']['document']['selection']),_0x2bdc0a=_0x19b79d['getCaptionFromImageModelElement'](_0x18b7e3),_0x260284['markInsertion'](_0x3234b4['model']['createRangeOn'](_0x2bdc0a),_0x4f1d81?null:'imageCaption');});}),_0x260284['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4a9441));const _0x39d8fa=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1d09df(_0x20e9df,_0x183260){const _0x5c953a=_0x39d8fa['findIndex'](({type:_0x1516bb,subType:_0x54405c})=>_0x20e9df['type']==_0x1516bb&&_0x20e9df['subType']==_0x54405c),_0x266a1c=_0x39d8fa['findIndex'](({type:_0x351836,subType:_0x342123})=>_0x183260['type']==_0x351836&&_0x183260['subType']==_0x342123);if(_0x5c953a<0x0||_0x266a1c<0x0)return!0x1;const _0x2a7e40=_0x20e9df['getFirstRange'](),_0x556f51=_0x183260['getFirstRange']();if((0x0==_0x5c953a||0x1==_0x5c953a)&&0x2==_0x266a1c&&_0x2a7e40['isIntersecting'](_0x556f51))return!0x0;if(0x2==_0x5c953a&&0x3==_0x266a1c){const _0x41977c=_0x260284['_findSuggestions'](_0x2a7e40,'insertion')['filter'](({suggestion:_0x57b7db,meta:_0x123a54})=>_0x123a54['isOwn']&&'convertInlineImageToBlock'==_0x57b7db['subType']);if(_0x41977c['length']>0x1&&_0x556f51['end']['isEqual'](_0x2a7e40['start']))return!0x0;if(0x1==_0x41977c['length']&&(_0x2a7e40['start']['isEqual'](_0x556f51['end'])||_0x2a7e40['end']['isEqual'](_0x556f51['start'])))return!0x0;}if(0x3==_0x5c953a&&0x3==_0x266a1c&&_0x2a7e40['start']['isBefore'](_0x556f51['start'])){const _0x20f61b=_0x2a7e40['end']['nodeAfter'],_0x2dcf0b=_0x556f51['start']['nodeBefore'];return _0x1b8e82['isBlockImage'](_0x20f61b)&&_0x20f61b===_0x2dcf0b;}return!0x1;}function _0x4a9441(_0x468250,_0xe8e7d){return _0x1d09df(_0x468250,_0xe8e7d)?[_0x468250,_0xe8e7d]:_0x1d09df(_0xe8e7d,_0x468250)?[_0xe8e7d,_0x468250]:null;}_0x3234b4['plugins']['has']('ImageResize')&&(_0x260284['enableDefaultAttributesIntegration']('resizeImage'),_0x260284['registerBlockAttribute']('resizedWidth'),_0x260284['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5e6576,'FORMAT_IMAGE_SIZE'))),_0x3234b4['plugins']['has']('ImageTextAlternativeEditing')&&(_0x260284['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x260284['registerBlockAttribute']('alt')),_0x260284['descriptionFactory']['registerDescriptionCallback'](_0xb0a61b=>{if(!!_0x39d8fa['find'](({type:_0x4f5e21,subType:_0x135659})=>_0xb0a61b['type']==_0x4f5e21&&_0xb0a61b['subType']==_0x135659))return _0xb0a61b['previous']?{}:void 0x0;}),_0x260284['descriptionFactory']['registerDescriptionCallback'](_0x4674cf=>{if('insertion'==_0x4674cf['type']||'deletion'==_0x4674cf['type']){const _0x50848c=_0x4674cf['getContainedElement']();if(_0x50848c&&_0x50848c['is']('element','caption'))return{'type':'insertion'==_0x4674cf['type']?'addObject':'removeObject','element':_0x50848c,'quantity':0x1};}}),_0x260284['descriptionFactory']['registerDescriptionCallback'](_0x3295e8=>'formatBlock'==_0x3295e8['type']&&'convertInlineImageToBlock'==_0x3295e8['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3295e8['type']&&'convertBlockImageToInline'==_0x3295e8['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x260284['descriptionFactory']['registerDescriptionCallback'](_0x2c1645=>{if('attribute'!=_0x2c1645['type'])return;const {data:_0x9f96b1}=_0x2c1645;if(!_0x9f96b1||'alt'!=_0x9f96b1['key'])return;const _0x284938=_0x9f96b1['newValue'];return _0x284938?{'type':'format','content':o(_0x5e6576,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x284938+'\x22')}:{'type':'format','content':o(_0x5e6576,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x568ff3=this['editor'],_0x12f818=_0x568ff3['locale'];_0x568ff3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1486e5=>{if('formatBlock'!=_0x1486e5['type']&&'formatInline'!=_0x1486e5['type'])return;const {data:_0x25a0a7}=_0x1486e5;if(_0x25a0a7){if('imageTextAlternative'==_0x25a0a7['commandName']){const _0x4c7073=_0x25a0a7['commandParams'][0x0]['newValue'];return _0x4c7073?{'type':'format','content':o(_0x12f818,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4c7073+'\x22')}:{'type':'format','content':o(_0x12f818,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x25a0a7['commandName']){const _0x31db04=_0x25a0a7['commandParams'][0x0]['width'];return _0x31db04?{'type':'format','content':o(_0x12f818,'*Set\x20image\x20width:*\x20%0',_0x31db04)}:{'type':'format','content':o(_0x12f818,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x248004{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2a9c34=this['editor']['locale'],_0x235f12=this['editor']['plugins']['get']('TrackChangesEditing');_0x235f12['enableDefaultAttributesIntegration']('replaceImageSource'),_0x235f12['registerBlockAttribute']('src'),_0x235f12['descriptionFactory']['registerDescriptionCallback'](_0x522340=>{if('attribute'!=_0x522340['type'])return;const {data:_0x358884}=_0x522340;return _0x358884&&'src'==_0x358884['key']?_0x358884['newValue']&&_0x358884['oldValue']?{'type':'format','content':o(_0x2a9c34,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3071c4=this['editor']['plugins']['get']('TrackChangesEditing');_0x3071c4['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3071c4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3071c4['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3071c4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4db634=this['editor'],_0x22e659=_0x4db634['locale'];_0x4db634['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f26b9=>{if('formatBlock'!=_0x4f26b9['type']&&'formatInline'!=_0x4f26b9['type'])return;const {data:_0x275314}=_0x4f26b9;if(!_0x275314||'replaceImageSource'!=_0x275314['commandName'])return;return{'type':'format','content':o(_0x22e659,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x248004{['afterInit'](){const _0x50353a=this['editor'];if(!_0x50353a['plugins']['has']('ImageStyleEditing'))return;const _0x48ed65=_0x50353a['plugins']['get']('TrackChangesEditing'),_0x20e892=_0x50353a['plugins']['get']('ImageUtils'),_0x38d972={};_0x48ed65['enableCommand']('imageStyle',(_0x3d4723,_0x3cc47e)=>{const _0x3fefc1=_0x50353a['plugins']['get']('Users')['me'],_0x3d49d6=_0x50353a['commands']['get']('imageStyle');let _0x42737c=_0x20e892['getClosestSelectedImageElement'](_0x50353a['model']['document']['selection']),_0x933750=_0x50353a['model']['createRangeOn'](_0x42737c),_0x45f20b=_0x3d49d6['value'];if(_0x45f20b==_0x3cc47e['value'])return;const _0x44b0ba={'commandName':'imageStyle','commandParams':[_0x3cc47e],'formatGroupId':_0x182257()};_0x50353a['model']['change'](()=>{if(_0x48ed65['getSuggestions']()['filter'](_0x33e5ad=>_0x33e5ad['isInContent']&&_0x3fefc1==_0x33e5ad['author']&&('formatBlock'==_0x33e5ad['type']||'formatInline'==_0x33e5ad['type'])&&('imageStylePreApply'==_0x33e5ad['subType']||'imageStylePostApply'==_0x33e5ad['subType'])&&_0x33e5ad['getFirstRange']()['isEqual'](_0x933750))['forEach'](_0x27cc7c=>_0x48ed65['discardSuggestion'](_0x27cc7c['head'])),_0x42737c=_0x20e892['getClosestSelectedImageElement'](_0x50353a['model']['document']['selection']),_0x933750=_0x50353a['model']['createRangeOn'](_0x42737c),_0x3d49d6['refresh'](),_0x50353a['commands']['get']('imageTypeInline')['refresh'](),_0x50353a['commands']['get']('imageTypeBlock')['refresh'](),_0x45f20b=_0x3d49d6['value'],_0x45f20b!=_0x3cc47e['value'])return _0x20e892['isInlineImage'](_0x42737c)&&_0x3d49d6['shouldConvertImageType'](_0x3cc47e['value'],_0x42737c)?(_0x3d4723({..._0x3cc47e,'setImageSizes':!0x1}),_0x42737c=_0x20e892['getClosestSelectedImageElement'](_0x50353a['model']['document']['selection']),void _0x48ed65['markBlockFormat'](_0x42737c,{..._0x44b0ba,'commandReversedParams':[{'value':_0x45f20b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x20e892['isBlockImage'](_0x42737c)?_0x48ed65['markBlockFormat'](_0x42737c,_0x44b0ba,[],'imageStylePostApply'):_0x48ed65['markInlineFormat'](_0x933750,_0x44b0ba,'imageStylePostApply'));});});for(const _0x528866 of _0x50353a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x38d972[_0x528866['name']]=_0x528866['title']['toLowerCase']();_0x48ed65['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x48ed65['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x48ed65['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x48ed65['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1ac6d1])=>{_0x20e892['setImageNaturalSizeAttributes'](_0x1ac6d1['getContainedElement']());}),_0x48ed65['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x495536,_0x131f77)=>{_0x48ed65['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x495536,{'commandName':_0x131f77['commandName'],'commandParams':_0x131f77['commandReversedParams']});}),_0x48ed65['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x264015,_0x836f1b){if(_0x1358e5(_0x264015,_0x836f1b))return[_0x264015,_0x836f1b];if(_0x1358e5(_0x836f1b,_0x264015))return[_0x836f1b,_0x264015];return null;});const _0x120865=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1358e5(_0x4035ef,_0xcf1071){const _0x318855=_0x120865['findIndex'](({type:_0xb265d6,subType:_0xe0b6be})=>_0x4035ef['type']==_0xb265d6&&_0x4035ef['subType']==_0xe0b6be),_0x5989dc=_0x120865['findIndex'](({type:_0x4c82c3,subType:_0x6e0755})=>_0xcf1071['type']==_0x4c82c3&&_0xcf1071['subType']==_0x6e0755);if(_0x318855<0x0||_0x5989dc<0x0)return!0x1;const _0x45d938=_0x4035ef['getFirstRange'](),_0x5d7db5=_0xcf1071['getFirstRange']();if((0x0==_0x318855||0x1==_0x318855)&&0x2==_0x5989dc&&_0x45d938['isIntersecting'](_0x5d7db5))return!0x0;if(0x2==_0x318855&&0x3==_0x5989dc){const _0x378372=_0x48ed65['_findSuggestions'](_0x45d938,'insertion')['filter'](({suggestion:_0x3922d7,meta:_0x238088})=>_0x238088['isOwn']&&'convertInlineImageToBlock'==_0x3922d7['subType']);if(_0x378372['length']>0x1&&_0x5d7db5['end']['isEqual'](_0x45d938['start']))return!0x0;if(0x1==_0x378372['length']&&(_0x45d938['start']['isEqual'](_0x5d7db5['end'])||_0x45d938['end']['isEqual'](_0x5d7db5['start'])))return!0x0;}if(0x3==_0x318855&&0x3==_0x5989dc&&_0x45d938['start']['isBefore'](_0x5d7db5['start'])){const _0xe8b7fd=_0x45d938['end']['nodeAfter'],_0x141703=_0x5d7db5['start']['nodeBefore'];return _0x20e892['isBlockImage'](_0xe8b7fd)&&_0xe8b7fd===_0x141703;}return!0x1;}_0x50353a['model']['document']['registerPostFixer'](()=>{let _0x44379a=!0x1;const _0x121595=Array['from'](_0x50353a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2d09b4,data:_0x437056}of _0x121595){const {group:_0x100a62,type:_0x219c29,subType:_0x503b42,id:_0x5b44a5}=_0x48ed65['_splitMarkerName'](_0x2d09b4);if('suggestion'==_0x100a62&&_0x48ed65['hasSuggestion'](_0x5b44a5)){if('formatBlock'==_0x219c29&&('imageStylePreApply'==_0x503b42||'imageStylePostApply'==_0x503b42)){const _0x5a88ed=_0x48ed65['getSuggestion'](_0x5b44a5);if(_0x437056['newRange']){const _0x4ebbc2=_0x5a88ed['getFirstRange']()['getContainedElement']();if(_0x20e892['isBlockImage'](_0x4ebbc2))continue;_0x48ed65['discardSuggestion'](_0x5a88ed),_0x44379a=!0x0;}}if('insertion'==_0x219c29&&'imageCaption'==_0x503b42&&!_0x437056['newRange']){const _0x3cac7c=_0x48ed65['getSuggestion'](_0x5b44a5);_0x3cac7c['next']&&_0x3cac7c['next']['isInContent']&&(_0x48ed65['discardSuggestion'](_0x3cac7c['next']),_0x44379a=!0x0);}}}return _0x44379a;}),this['_registerLegacyDescription'](_0x38d972);}['_registerLegacyDescription'](_0x19e806){const _0x15324b=this['editor'],_0x34c888=_0x15324b['locale'];_0x15324b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e1988=>{if('formatBlock'!=_0x4e1988['type']&&'formatInline'!=_0x4e1988['type'])return;const {data:_0xd4815f}=_0x4e1988;if(!_0xd4815f||'imageStyle'!=_0xd4815f['commandName'])return;const _0x179235=_0xd4815f['commandParams'][0x0]['value'];return _0x4fd82f('side'===_0x179235?o(_0x34c888,'FORMAT_SIDE_IMAGE'):_0x19e806[_0x179235]||_0x179235);function _0x4fd82f(_0x125121){return{'type':'format','content':o(_0x34c888,'*Format:*\x20%0',_0x125121)};}});}}class ct extends _0x248004{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x25ffa0){super(_0x25ffa0),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x346eda=this['editor'],_0x84b96=_0x346eda['commands']['get']('importWord'),_0x11ed93=_0x346eda['commands']['get']('trackChanges');_0x84b96&&(_0x84b96['on']('execute',(_0x62422c,[,_0x36b908])=>{this['_trackChangesValueDuringImport']=_0x11ed93['value'],_0x36b908['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x84b96,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x84b96,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x11ed93['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x346eda['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2a799e,_0x2cf4a2){const {suggestions:_0x375d60}=_0x2cf4a2,_0x58155a=this['editor']['commands']['get']('trackChanges'),_0x7b3b03=_0x58155a['value'];this['_trackChangesValueDuringImport']!==_0x7b3b03&&(_0x58155a['execute'](),this['_trackChangesExecuted']=!0x0),_0x375d60&&_0x375d60['forEach'](({id:_0x425a5b,type:_0x4bd003,author:_0x338cfb,created_at:_0x476a08})=>{const _0x3c8801={'id':_0x425a5b,'type':_0x4bd003,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x338cfb,'createdAt':_0x476a08?new Date(_0x476a08):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3c8801);});}}class ut extends _0x248004{['afterInit'](){const _0x3472f9=this['editor'],_0x1daf0b=_0x3472f9['plugins']['get']('TrackChangesEditing');if(_0x3472f9['plugins']['has']('IndentEditing')&&(_0x1daf0b['enableCommand']('indent'),_0x1daf0b['enableCommand']('outdent')),_0x3472f9['plugins']['has']('IndentBlock')){for(const _0x2e3164 of['indentBlock','outdentBlock'])_0x1daf0b['enableDefaultAttributesIntegration'](_0x2e3164);}const _0x1510ff=_0x3472f9['locale'];_0x1daf0b['registerBlockAttribute']('blockIndent'),_0x1daf0b['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1510ff,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x428e6e=this['editor'],_0x5044f9=_0x428e6e['locale'],_0x4281d1=_0x428e6e['plugins']['get']('TrackChangesEditing');_0x4281d1['descriptionFactory']['registerDescriptionCallback'](_0x72d00e=>{if('formatBlock'!=_0x72d00e['type'])return;const {data:_0x42f1fb}=_0x72d00e;if(!_0x42f1fb)return;if('indentBlock'!=_0x42f1fb['commandName']&&'outdentBlock'!=_0x42f1fb['commandName'])return;const _0x1f90d8=_0x72d00e['getItems']()[0x0],_0x2c3dd3=_0x4281d1['descriptionFactory']['getItemLabel'](_0x1f90d8);return'indentBlock'==_0x42f1fb['commandName']?{'type':'format','content':o(_0x5044f9,'*Indent:*\x20%0',_0x2c3dd3)}:'outdentBlock'==_0x42f1fb['commandName']?{'type':'format','content':o(_0x5044f9,'*Outdent:*\x20%0',_0x2c3dd3)}:void 0x0;});}}class ft extends _0x248004{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x248004{['afterInit'](){const _0x3e4302=this['editor'];if(!_0x3e4302['plugins']['has']('LinkEditing'))return;const _0x1d4029=_0x3e4302['plugins']['get']('TrackChangesEditing'),_0x58a7f3=_0x3e4302['commands']['get']('link');_0x1d4029['enableDefaultAttributesIntegration']('link'),_0x1d4029['enableDefaultAttributesIntegration']('unlink'),_0x1d4029['registerInlineAttribute']('linkHref');for(const _0x599f75 of _0x58a7f3['manualDecorators'])_0x1d4029['registerInlineAttribute'](_0x599f75['id']),_0x1d4029['descriptionFactory']['registerAttributeLabel'](_0x599f75['id'],'link\x20('+_0x599f75['label']['toLowerCase']()+')');_0x1d4029['descriptionFactory']['registerDescriptionCallback'](_0x3e1e71=>{if('attribute'!=_0x3e1e71['type'])return;const {data:_0x9448ad}=_0x3e1e71;if(!_0x9448ad||'linkHref'!=_0x9448ad['key'])return;const _0x1b3647=_0x9448ad['newValue'],_0x15faaa=_0x3e4302['locale'];return{'type':'format','content':null==_0x1b3647?o(_0x15faaa,'*Remove\x20link*'):o(_0x15faaa,'*Set\x20link:*\x20%0','\x22'+_0x1b3647+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c9618=this['editor'],_0x306fb2=_0x3c9618['locale'];_0x3c9618['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40a15c=>{if('formatInline'!=_0x40a15c['type'])return;const {data:_0x58e2ab}=_0x40a15c;if(_0x58e2ab){if('link'==_0x58e2ab['commandName']){const _0x4e6843=_0x58e2ab['commandParams'][0x0];return{'type':'format','content':o(_0x306fb2,'*Set\x20link:*\x20%0','\x22'+_0x4e6843+'\x22')};}return'unlink'==_0x58e2ab['commandName']?{'type':'format','content':o(_0x306fb2,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x248004{['afterInit'](){const _0x18fded=this['editor'],_0x27d07a=_0x18fded['locale'];if(!_0x18fded['plugins']['has']('LegacyListEditing'))return;const _0x1a7fcf=_0x18fded['plugins']['get']('TrackChangesEditing'),_0x1d32e0=_0x18fded['plugins']['has']('LegacyTodoListEditing');function _0x1dee69(_0xec605a){return()=>{const _0x51957e=_0x18fded['model']['document']['selection'],_0x4f6514=_0x18fded['commands']['get'](_0xec605a);if(_0x4f6514['value'])return void _0x18fded['execute']('paragraph',{});const _0x3872ad=_0xec605a['slice'](0x0,-0x4),_0x2ec549=function(_0x2bd4b0,_0x55395a,_0x2f5cd3){let _0x401211=Array['from'](_0x2bd4b0)['filter'](_0x5363ef=>function(_0x546a8c,_0x234f01){return _0x234f01['checkChild'](_0x546a8c['parent'],'listItem')&&!_0x234f01['isObject'](_0x546a8c);}(_0x5363ef,_0x2f5cd3));_0x401211=_0x401211['filter'](_0x1d2b7c=>!_0x1d2b7c['is']('element','listItem')||_0x1d2b7c['getAttribute']('listType')!=_0x55395a);const _0x3388e9=new Set();for(const _0x41c78a of _0x401211)_0x41c78a['is']('element','listItem')?_0x3388e9['add'](Le(_0x41c78a)):_0x3388e9['add'](_0x41c78a);return Array['from'](_0x3388e9);}(_0x51957e['getSelectedBlocks'](),_0x3872ad,_0x18fded['model']['schema']);_0x18fded['model']['change'](()=>{for(const _0xbd755f of _0x2ec549)_0x1a7fcf['markBlockFormat'](_0xbd755f,{'commandName':_0xec605a,'commandParams':[{'forceValue':!_0x4f6514['value']}],'formatGroupId':'blockName'},Ee(_0xbd755f));});};}function _0x403078(_0x309318){return()=>{const _0x3a5d93=function(_0x10d874){let _0x315d38=Array['from'](_0x10d874);const _0x24e6c2=_0x315d38['findIndex'](_0x52635a=>'listItem'!=_0x52635a['name']);return _0x24e6c2>-0x1&&(_0x315d38=_0x315d38['slice'](0x0,_0x24e6c2)),_0x315d38;}(_0x18fded['model']['document']['selection']['getSelectedBlocks']()),_0x55f793=_0x18fded['model']['createRange'](_0x18fded['model']['createPositionAt'](_0x3a5d93[0x0],'before'),_0x18fded['model']['createPositionAt'](_0x3a5d93[_0x3a5d93['length']-0x1],'end'));_0x18fded['model']['change'](()=>{_0x1a7fcf['markBlockFormat'](_0x55f793,{'commandName':_0x309318,'commandParams':[],'formatGroupId':'listIndent'},function(_0x9dcafb){const _0x1f8a97=new Set();for(const _0x49f9b2 of _0x9dcafb){let _0x48983a=_0x49f9b2['nextSibling'];for(;_0x48983a&&_0x48983a['getAttribute']('listIndent')>_0x49f9b2['getAttribute']('listIndent');)_0x1f8a97['add'](_0x48983a),_0x48983a=_0x48983a['nextSibling'];}return Array['from'](_0x1f8a97);}(_0x3a5d93));});};}_0x1a7fcf['enableCommand']('numberedList',_0x1dee69('numberedList')),_0x1a7fcf['enableCommand']('bulletedList',_0x1dee69('bulletedList')),_0x1d32e0&&_0x1a7fcf['enableCommand']('todoList',_0x1dee69('todoList')),_0x1a7fcf['enableCommand']('indentList',_0x403078('indentList')),_0x1a7fcf['enableCommand']('outdentList',_0x403078('outdentList')),_0x1d32e0&&_0x1a7fcf['enableCommand']('checkTodoList',()=>{const _0x387aa4=_0x18fded['commands']['get']('checkTodoList'),_0x16bf48=Array['from'](_0x387aa4['_selectedElements']);_0x16bf48['filter'](_0x538fcd=>_0x538fcd['getAttribute']('todoListChecked')!=_0x387aa4['value']),_0x18fded['model']['change'](()=>{for(const _0x3ee1c9 of _0x16bf48)_0x1a7fcf['markBlockFormat'](_0x3ee1c9,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x387aa4['value']}]});});}),_0x1a7fcf['descriptionFactory']['registerElementLabel']('listItem',_0x4eff16=>o(_0x27d07a,'ELEMENT_LIST_ITEM',_0x4eff16)),_0x1a7fcf['descriptionFactory']['registerDescriptionCallback'](_0x8d58a7=>{if('formatBlock'!=_0x8d58a7['type']&&'formatInline'!=_0x8d58a7['type'])return;const {data:_0x2b9f9f}=_0x8d58a7;if(_0x2b9f9f){if('numberedList'==_0x2b9f9f['commandName']||'bulletedList'==_0x2b9f9f['commandName']||'todoList'==_0x2b9f9f['commandName'])switch(_0x2b9f9f['commandName']['replace']('List','')){case'bulleted':return _0xe5b8b9(o(_0x27d07a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xe5b8b9(o(_0x27d07a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xe5b8b9(o(_0x27d07a,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2b9f9f['commandName'])return{'type':'format','content':o(_0x27d07a,'*Indent:*\x20%0',o(_0x27d07a,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2b9f9f['commandName'])return{'type':'format','content':o(_0x27d07a,'*Outdent:*\x20%0',o(_0x27d07a,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2b9f9f['commandName'])return _0x2b9f9f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x27d07a,'*Check\x20item*')}:{'type':'format','content':o(_0x27d07a,'*Uncheck\x20item*')};}function _0xe5b8b9(_0x50a390){return{'type':'format','content':o(_0x27d07a,'*Change\x20to:*\x20%0',_0x50a390)};}});}}function Le(_0x60108e){const _0x42466a=_0x60108e['getAttribute']('listIndent');if(0x0==_0x42466a)return _0x60108e;let _0x1695a4=_0x60108e;for(;_0x60108e['previousSibling']&&_0x60108e['previousSibling']['is']('element','listItem');){const _0x2b08f9=_0x60108e['previousSibling']['getAttribute']('listIndent');if(_0x2b08f9==_0x42466a)_0x1695a4=_0x60108e['previousSibling'];else{if(_0x2b08f9<_0x42466a)break;}_0x60108e=_0x60108e['previousSibling'];}return _0x1695a4;}function Ee(_0x3e74f4){const _0x948c00=[];if(_0x3e74f4['is']('element','listItem')&&_0x3e74f4['getAttribute']('listIndent')>0x0){let _0x3bb338=_0x3e74f4['nextSibling'];for(;_0x3bb338&&'listItem'==_0x3bb338['name']&&_0x3bb338['getAttribute']('listIndent')==_0x3e74f4['getAttribute']('listIndent');)_0x948c00['push'](_0x3bb338),_0x3bb338=_0x3bb338['nextSibling'];}return _0x948c00;}class Q extends _0x248004{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4b6d39=this['editor']['config']['get']('list.properties'),_0x1e1674=this['editor']['plugins']['get']('TrackChangesEditing');_0x4b6d39['styles']&&_0x1e1674['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4b6d39['reversed']&&_0x1e1674['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4b6d39['startIndex']&&_0x1e1674['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1e1674['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x49a2b8,_0x27246f={}){const _0x1d56ed=this['editor']['plugins']['get']('TrackChangesEditing'),_0x553efc=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1d56ed['markMultiRangeBlockFormat'](_0x553efc,{'commandName':'listStyle','commandParams':[{'type':_0x27246f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xe1d209,_0x148bfe={}){const _0x16d2b5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2efd5e=this['_getSuggestionBlocks'](_0x379374=>_0x379374['is']('element','listItem')&&'numbered'===_0x379374['getAttribute']('listType'));if(_0x2efd5e['length']<0x1)return;const _0x502705=_0x2efd5e['map'](_0x398436=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x398436,'before'),this['editor']['model']['createPositionAt'](_0x398436,0x0)));this['editor']['model']['change'](()=>{_0x16d2b5['markMultiRangeBlockFormat'](_0x502705,{'commandName':'listReversed','commandParams':[{'reversed':_0x148bfe['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x29d5de,_0x47aedc={}){const _0x16b262=this['editor']['plugins']['get']('TrackChangesEditing'),_0x169b53=this['_getSuggestionBlocks'](_0x59ffd5=>_0x59ffd5['is']('element','listItem')&&'numbered'===_0x59ffd5['getAttribute']('listType'));if(_0x169b53['length']<0x1)return;const _0x55c2e0=_0x169b53['map'](_0x539ab1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x539ab1,'before'),this['editor']['model']['createPositionAt'](_0x539ab1,0x0)));this['editor']['model']['change'](()=>{_0x16b262['markMultiRangeBlockFormat'](_0x55c2e0,{'commandName':'listStart','commandParams':[{'startIndex':_0x47aedc['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3d733b){if('formatBlock'!=_0x3d733b['type']&&'formatInline'!=_0x3d733b['type'])return;const _0x578675=this['editor']['locale'],{data:_0x4666ac}=_0x3d733b;if(!_0x4666ac)return;let _0xf49616,_0x531e6f;switch(_0x4666ac['commandName']){case'listStyle':_0xf49616='*Change\x20to:*\x20%0',_0x531e6f={'type':'format','content':o(_0x578675,_0xf49616,o(_0x578675,this['_getTranslationKeyForListStyle'](_0x4666ac['commandParams'][0x0]['type'])))};break;case'listReversed':_0xf49616=_0x4666ac['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x531e6f={'type':'format','content':o(_0x578675,_0xf49616)};break;case'listStart':_0xf49616='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x531e6f={'type':'format','content':o(_0x578675,_0xf49616,_0x4666ac['commandParams'][0x0]['startIndex'])};}return _0x531e6f;}['_getSuggestionBlocksForListStyle'](){const _0x52f560=this['editor']['plugins']['get']('LegacyListUtils');let _0x2c7945=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2c7945[0x0]?.['is']('element','listItem')&&_0x2c7945['unshift'](..._0x52f560['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2c7945[_0x2c7945['length']-0x1]?.['is']('element','listItem')&&_0x2c7945['push'](..._0x52f560['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2c7945=[...new Set(_0x2c7945)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2c7945=_0x2c7945['filter'](_0x595300=>_0x595300['is']('element','listItem'))),_0x2c7945;}['_getSuggestionBlocks'](_0x7a4e31){const _0x2168b3=this['editor']['plugins']['get']('LegacyListUtils');let _0x46b26f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x7a4e31)['map'](_0x563500=>{const _0x276c81=this['editor']['model']['createPositionAt'](_0x563500,0x0);return[..._0x2168b3['getSiblingNodes'](_0x276c81,'backward'),..._0x2168b3['getSiblingNodes'](_0x276c81,'forward')];})['flat']();return _0x46b26f=[...new Set(_0x46b26f)],_0x46b26f;}['_getTranslationKeyForListStyle'](_0x2617c1){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2617c1)||'default')['toUpperCase']()+'_LIST_'+_0x2617c1['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x248004{['afterInit'](){const _0x11b146=this['editor'];if(!_0x11b146['plugins']['has']('MediaEmbedEditing'))return;const _0x82a6b6=_0x11b146['plugins']['get']('TrackChangesEditing'),_0x19e8ee=_0x11b146['locale'];_0x82a6b6['enableCommand']('mediaEmbed'),_0x82a6b6['descriptionFactory']['registerElementLabel']('media',_0x1fad72=>o(_0x19e8ee,'ELEMENT_MEDIA',_0x1fad72)),_0x11b146['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x45abb1,{writer:_0x5882fc,options:_0x4964fe})=>{if(_0x4964fe['showSuggestionHighlights'])return _0x5882fc['createEmptyElement']('div');},'converterPriority':'high'}),_0x11b146['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4aae49,_0x5a8091,_0x29e160)=>{_0x29e160['options']['showSuggestionHighlights']&&_0x4aae49['stop']();},{'priority':'high'});}}class mt extends _0x248004{['afterInit'](){const _0x40c17e=this['editor'];_0x40c17e['plugins']['has']('MentionEditing')&&_0x40c17e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x248004{['afterInit'](){const _0x5627a3=this['editor'];if(!_0x5627a3['plugins']['has']('MergeFieldsEditing'))return;_0x5627a3['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x5627a3['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x82cf50=_0x5627a3['plugins']['get']('TrackChangesEditing'),_0x5cbbb9=_0x5627a3['locale'];_0x82cf50['descriptionFactory']['registerElementLabel']('mergeField',_0x3bdbc5=>o(_0x5cbbb9,'ELEMENT_MERGE_FIELD',_0x3bdbc5)),_0x82cf50['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3de408=>o(_0x5cbbb9,'ELEMENT_MERGE_FIELD',_0x3de408)),_0x82cf50['descriptionFactory']['registerDescriptionCallback'](_0x4320e5=>{if('insertion'!=_0x4320e5['type']&&'deletion'!=_0x4320e5['type'])return;const _0x94b128=_0x4320e5['getContainedElement']();if(null==_0x94b128)return;if(!_0x94b128['is']('element','mergeField')&&!_0x94b128['is']('element','mergeFieldBlock'))return;const _0x2142da=_0x5627a3['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x94b128['getAttribute']('id'));return'insertion'==_0x4320e5['type']?{'type':'insertion','content':o(_0x5cbbb9,'*Insert:*\x20%0','\x22'+_0x2142da+'\x22\x20'+o(_0x5cbbb9,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x5cbbb9,'*Remove:*\x20%0','\x22'+_0x2142da+'\x22\x20'+o(_0x5cbbb9,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x248004{['afterInit'](){const _0x224a7d=this['editor'],_0xa088c=_0x224a7d['plugins']['get']('TrackChangesEditing');_0x224a7d['plugins']['has']('MultiLevelList')&&(_0xa088c['enableDefaultAttributesIntegration']('multiLevelList'),_0xa088c['registerBlockAttribute']('listMarkerStyle'),_0xa088c['descriptionFactory']['registerDescriptionCallback'](_0x52cd02=>this['handleDescriptions'](_0x52cd02)));}['handleDescriptions'](_0x5a3231){const _0x32aab2=this['editor']['locale'],{data:_0xfd788b}=_0x5a3231,_0x15569={'type':'format','content':''};if(_0xfd788b&&'listMarkerStyle'==_0xfd788b['key']){if(!_0xfd788b['oldValue'])return{'type':'format','content':o(_0x32aab2,'*Set\x20format:*\x20%0',o(_0x32aab2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xfd788b['newValue']+')'};if(!_0xfd788b['newValue']){let _0x379812=_0x5a3231['head'];for(;_0x379812;){if(_0x379812['data']&&'listType'==_0x379812['data']['key']&&_0x379812['data']['newValue'])return _0x15569;_0x379812=_0x379812['next'];}return{'type':'format','content':o(_0x32aab2,'*Remove\x20format:*\x20%0',o(_0x32aab2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xfd788b['oldValue']+')'};}}}}class kt extends _0x248004{['afterInit'](){const _0x2e7b37=this['editor'];if(!_0x2e7b37['plugins']['has']('PageBreakEditing'))return;_0x2e7b37['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2823b1=_0x2e7b37['plugins']['get']('TrackChangesEditing'),_0x17bd02=_0x2e7b37['locale'];_0x2823b1['descriptionFactory']['registerElementLabel']('pageBreak',_0x51ccc7=>o(_0x17bd02,'ELEMENT_PAGE_BREAK',_0x51ccc7));}}class bt extends _0x248004{['afterInit'](){const _0x4cc3b5=this['editor'];if(!_0x4cc3b5['plugins']['has']('Paragraph'))return;const _0x5a52b4=_0x4cc3b5['locale'],_0x5cc68d=_0x4cc3b5['plugins']['get']('TrackChangesEditing');_0x5cc68d['descriptionFactory']['registerElementLabel']('paragraph',_0x3ffa5b=>o(_0x5a52b4,'ELEMENT_PARAGRAPH',_0x3ffa5b)),_0x5cc68d['enableDefaultAttributesIntegration']('paragraph'),_0x5cc68d['enableCommand']('insertParagraph'),_0x4cc3b5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4cc3b5),{'priority':'highest'}),_0x4cc3b5['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3398ea,_0x208655,_0x178b14)=>{_0x178b14['options']['showSuggestionHighlights']&&nr(_0x4cc3b5,{'showActiveMarker':!0x1})(_0x3398ea,_0x208655,_0x178b14);},{'priority':'highest'});const _0x2acfd1=_0x5cc68d['descriptionFactory'];_0x2acfd1['registerDescriptionCallback'](_0x2bc4a6=>{if('insertion'!==_0x2bc4a6['type'])return;const {start:_0x1c2acf,end:_0x20b466}=_0x2bc4a6['getFirstRange']();if(!_0x1c2acf['isTouching'](_0x20b466)||!_0x1c2acf['nodeAfter'])return;const _0x37ddb5=_0x4cc3b5['model']['schema'],_0x4362ef=_0x1c2acf['nodeAfter'];return _0x37ddb5['isBlock'](_0x4362ef)&&!_0x37ddb5['isLimit'](_0x4362ef)&&_0x37ddb5['checkChild'](_0x4362ef,'$text')?{'type':'insertion','content':o(_0x5a52b4,'*Insert:*\x20%0',_0x2acfd1['getItemLabel'](_0x4362ef,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d5d82=this['editor'],_0x345125=_0x4d5d82['locale'];_0x4d5d82['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ebc8f=>{if('formatBlock'!=_0x5ebc8f['type'])return;const {data:_0x5b8c55}=_0x5ebc8f;return _0x5b8c55&&'paragraph'==_0x5b8c55['commandName']?{'type':'format','content':o(_0x345125,'*Change\x20to:*\x20%0',o(_0x345125,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x533d1a,{showActiveMarker:_0x28ac71=!0x0}={}){return(_0x5895e2,_0x10601d,_0x33173c)=>{const _0x48d793=_0x533d1a['plugins']['get']('TrackChangesEditing'),_0x40d27f=_0x10601d['markerRange']['start'],_0x4c9539=_0x10601d['markerRange']['end'],_0x4bf180=_0x533d1a['model']['schema'];if(!_0x40d27f['isTouching'](_0x4c9539)||!_0x40d27f['nodeAfter'])return;const _0x36206c=_0x40d27f['nodeAfter'];if(_0x4bf180['isBlock'](_0x36206c)&&!_0x4bf180['isLimit'](_0x36206c)&&_0x4bf180['checkChild'](_0x36206c,'$text')){if(!_0x33173c['consumable']['consume'](_0x10601d['markerRange'],_0x5895e2['name']))return;const {authorId:_0x51ec6f}=_0x48d793['_splitMarkerName'](_0x10601d['markerName']),_0x1115ce=_0x33173c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x51ec6f}),_0x1f2d23=_0x33173c['mapper']['toViewPosition'](_0x4c9539);_0x28ac71&&_0x48d793['activeMarkers']['includes'](_0x10601d['markerName'])&&_0x33173c['writer']['addClass']('ck-suggestion-marker--active',_0x1115ce),_0x33173c['writer']['insert'](_0x1f2d23,_0x1115ce),_0x33173c['mapper']['bindElementToMarker'](_0x1115ce,_0x10601d['markerName']);}};}class yt extends _0x248004{['afterInit'](){const _0x355624=this['editor'];if(!_0x355624['plugins']['has']('RemoveFormatEditing'))return;_0x355624['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x543cfe=this['editor'];_0x543cfe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x555bca=>{if('formatBlock'!=_0x555bca['type']&&'formatInline'!=_0x555bca['type'])return;const {data:_0x5c73bc}=_0x555bca;return _0x5c73bc&&'removeFormat'==_0x5c73bc['commandName']?{'type':'format','content':o(_0x543cfe['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x248004{['afterInit'](){const _0x35dd42=this['editor'];if(!_0x35dd42['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x23e7da=_0x35dd42['plugins']['get']('TrackChangesEditing');_0x23e7da['enableCommand']('goToPreviousRestrictedEditingException'),_0x23e7da['enableCommand']('goToNextRestrictedEditingException');const _0xabfba1=_0x35dd42['plugins']['get']('RestrictedEditingModeEditing');_0xabfba1['enableCommand']('trackChanges'),_0xabfba1['enableCommand']('acceptSuggestion'),_0xabfba1['enableCommand']('discardSuggestion'),_0xabfba1['enableCommand']('acceptAllSuggestions'),_0xabfba1['enableCommand']('discardAllSuggestions'),_0xabfba1['enableCommand']('acceptSelectedSuggestions'),_0xabfba1['enableCommand']('discardSelectedSuggestions');}}class St extends _0x248004{static get['requires'](){return[_0xce7ee3];}['init'](){const _0x349513=this['editor'],_0x2dc1d8=_0x349513['plugins']['get']('TrackChangesEditing');_0x2dc1d8['enableCommand']('shiftEnter'),_0x349513['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x349513),{'priority':'high'}),_0x349513['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x349513),{'priority':'high'}),_0x349513['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x11470b,_0x352c58,_0x3dc53c)=>{_0x3dc53c['options']['showSuggestionHighlights']&&ke(_0x349513,{'showActiveMarker':!0x1})(_0x11470b,_0x352c58,_0x3dc53c);}),_0x2dc1d8['descriptionFactory']['registerElementLabel']('softBreak',_0xabc440=>o(_0x349513['locale'],'ELEMENT_LINE_BREAK',_0xabc440));}}function ke(_0x57a06c,{showActiveMarker:_0x3fbca7=!0x0}={}){return(_0x27b578,_0x16968a,_0x47859a)=>{const _0x2170d5=_0x57a06c['plugins']['get']('TrackChangesEditing');if(!_0x47859a['consumable']['test'](_0x16968a['markerRange'],_0x27b578['name']))return;const _0x5b73ec=_0x57a06c['model'];for(const _0x25c6f2 of _0x16968a['markerRange']['getItems']()){if(!_0x25c6f2['is']('element','softBreak'))continue;const _0x4f5086='deletion'==_0x16968a['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x4435da}=_0x2170d5['_splitMarkerName'](_0x16968a['markerName']),_0x1194a7=_0x47859a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4f5086,'data-author-id':_0x4435da}),_0x57df3a=_0x47859a['mapper']['toViewPosition'](_0x5b73ec['createPositionBefore'](_0x25c6f2));_0x3fbca7&&_0x2170d5['activeMarkers']['includes'](_0x16968a['markerName'])&&_0x47859a['writer']['addClass']('ck-suggestion-marker--active',_0x1194a7),_0x47859a['writer']['insert'](_0x57df3a,_0x1194a7),_0x47859a['mapper']['bindElementToMarker'](_0x1194a7,_0x16968a['markerName']);}};}class At extends _0x248004{['afterInit'](){const _0x404e44=this['editor'],_0x29100b=_0x404e44['model'],_0x58b41b=_0x404e44['locale'];if(!_0x404e44['plugins']['has']('StandardEditingModeEditing'))return;const _0x504673=_0x404e44['plugins']['get']('TrackChangesEditing'),_0x549197='restrictedEditingException',_0x1fc8b7=_0x404e44['commands']['get'](_0x549197);_0x504673['enableCommand'](_0x549197,(_0x154e57,_0x222bfd={})=>{const _0x2008a6=_0x29100b['document']['selection'];if(_0x2008a6['isCollapsed'])return void _0x154e57(_0x222bfd);const _0x32555e=void 0x0!==_0x222bfd['forceValue']?_0x222bfd['forceValue']:!_0x1fc8b7['value'];_0x29100b['change'](()=>{const _0xa3ee9=Array['from'](_0x2008a6['getRanges']());for(const _0x2ec454 of _0xa3ee9){const _0x58c25b=_0x32555e?[_0x2ec454]:io(_0x549197,_0x2ec454,_0x29100b);for(const _0x5c34a9 of _0x58c25b)_0x504673['markInlineFormat'](_0x5c34a9,{'commandName':_0x549197,'commandParams':[{'forceValue':_0x32555e}]});}});}),_0x504673['descriptionFactory']['registerDescriptionCallback'](_0x5efcce=>{if('formatBlock'!=_0x5efcce['type']&&'formatInline'!=_0x5efcce['type'])return;const {data:_0x1a2a7f}=_0x5efcce;return _0x1a2a7f&&_0x1a2a7f['commandName']==_0x549197?_0x1a2a7f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x58b41b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x58b41b,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x248004{['afterInit'](){const _0x3c81c5=this['editor'];if(!_0x3c81c5['plugins']['has']('Style')||!_0x3c81c5['plugins']['has']('DataSchema'))return;const _0x1220f7=_0x3c81c5['plugins']['get']('TrackChangesEditing'),_0x537fd8=_0x3c81c5['locale'],_0x5d59fa=_0x3c81c5['config']['get']('style')||{},_0x4e2653=_0x3c81c5['plugins']['get']('GeneralHtmlSupport'),_0x129998=_0x3c81c5['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3c81c5['plugins']['get']('DataSchema'),_0x5d59fa['definitions']);_0x1220f7['enableDefaultAttributesIntegration']('style');const _0x166e43=new Set();for(const _0x35031b of _0x129998['block']){const _0x56cb61=_0x4e2653['getGhsAttributeNameForElement'](_0x35031b['element']);_0x166e43['add'](_0x56cb61);}const _0x50b850=new Set();for(const _0x3ece98 of _0x129998['inline']){const _0x5bf5a9=_0x4e2653['getGhsAttributeNameForElement'](_0x3ece98['element']);_0x50b850['add'](_0x5bf5a9);for(const _0x4263c8 of _0x3ece98['ghsAttributes'])_0x50b850['add'](_0x4263c8);}for(const _0x8282f0 of _0x166e43)_0x1220f7['registerBlockAttribute'](_0x8282f0),_0x1220f7['descriptionFactory']['registerAttributeLabel'](_0x8282f0,o(_0x537fd8,'FORMAT_STYLE'));for(const _0x14ad97 of _0x50b850)_0x1220f7['registerInlineAttribute'](_0x14ad97),_0x1220f7['descriptionFactory']['registerAttributeLabel'](_0x14ad97,o(_0x537fd8,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x454542=this['editor'],_0x433659=_0x454542['locale'];_0x454542['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2de2bf=>{if('formatBlock'!=_0x2de2bf['type']&&'formatInline'!=_0x2de2bf['type'])return;const {data:_0x34a24c}=_0x2de2bf;return _0x34a24c&&'style'===_0x34a24c['commandName']?_0x34a24c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x433659,'*Set\x20format:*\x20%0',_0x34a24c['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x433659,'*Remove\x20format:*\x20%0',_0x34a24c['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x248004{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xbe4a31){super(_0xbe4a31),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0xe2eee4=this['editor'],_0x3d89d1=_0xe2eee4['model']['document']['selection'];if(!_0xe2eee4['plugins']['has']('TableEditing'))return;const _0x31c2a8=_0xe2eee4['locale'],_0xde2bf=_0xe2eee4['plugins']['get']('TrackChangesEditing'),_0x430efc=_0xe2eee4['plugins']['get']('TableUtils');_0xde2bf['descriptionFactory']['registerElementLabel']('table',_0x4c2737=>o(_0x31c2a8,'ELEMENT_TABLE',_0x4c2737)),this['_setupColumnsRowsFixing'](),_0xde2bf['enableCommand']('insertTable'),_0xde2bf['enableCommand']('selectTableRow'),_0xde2bf['enableCommand']('selectTableColumn');for(const _0x3e36f6 of['insertTableRowAbove','insertTableRowBelow']){const _0x456f93=_0xe2eee4['commands']['get'](_0x3e36f6);_0xde2bf['enableCommand'](_0x3e36f6,_0x4406ae=>{_0xe2eee4['model']['change'](_0x39e028=>{_0x4406ae();const _0x317596='above'===_0x456f93['order'],_0x79612c=_0x430efc['getSelectionAffectedTableCells'](_0x3d89d1),_0x57d744=_0x430efc['getRowIndexes'](_0x79612c),_0x143972=_0x317596?_0x57d744['first']-0x1:_0x57d744['last']+0x1,_0x51d129=_0x79612c[0x0]['findAncestor']('table'),_0x51e5af=_0x430efc['createTableWalker'](_0x51d129,{'startRow':_0x143972,'endRow':_0x143972}),_0x828474=Array['from'](_0x51e5af)['map'](_0x306850=>_0x39e028['createRangeOn'](_0x306850['cell']));_0xde2bf['markMultiRangeInsertion'](_0x828474,'tableRow');});});}for(const _0x434b64 of['insertTableColumnLeft','insertTableColumnRight']){const _0x125418=_0xe2eee4['commands']['get'](_0x434b64);_0xde2bf['enableCommand'](_0x434b64,_0x53008d=>{_0xe2eee4['model']['change'](_0xdd6af4=>{_0x53008d();const _0x15c32a='left'===_0x125418['order'],_0x336884=_0x430efc['getSelectionAffectedTableCells'](_0x3d89d1),_0x415397=_0x430efc['getColumnIndexes'](_0x336884),_0x42bb0c=_0x15c32a?_0x415397['first']-0x1:_0x415397['last']+0x1,_0x1bf940=_0x336884[0x0]['findAncestor']('table'),_0x1613c3=_0x430efc['createTableWalker'](_0x1bf940,{'startRow':0x0,'column':_0x42bb0c,'includeAllSlots':!0x1}),_0x10e830=Array['from'](_0x1613c3)['map'](_0x1174bd=>_0xdd6af4['createRangeOn'](_0x1174bd['cell']));_0xde2bf['markMultiRangeInsertion'](_0x10e830,'tableColumn');});});}for(const _0x20c672 of['removeTableRow','removeTableColumn']){const _0x3bf991=_0x20c672['substr'](0xb),_0x2621c6=_0x3bf991['toLowerCase'](),_0x325cbc=_0x2621c6['substr'](0x0,0x3)+'span',_0x3fc3c9='table'+_0x3bf991,_0x5c73f6='min'+_0x3bf991,_0x38944c='max'+_0x3bf991;_0xde2bf['enableCommand'](_0x20c672,()=>{_0xe2eee4['model']['change'](_0x7e39c=>{const _0x5c789d=_0x430efc['getSelectionAffectedTableCells'](_0x3d89d1),_0x50659e=_0x5c789d[0x0]['findAncestor']('table');let _0x5ed879;if('removeTableRow'==_0x20c672){const _0xd6c417=_0x430efc['getRowIndexes'](_0x5c789d);_0x5ed879={'startRow':_0xd6c417['first'],'endRow':_0xd6c417['last'],'includeAllSlots':!0x0};}else{const _0x150f37=_0x430efc['getColumnIndexes'](_0x5c789d);_0x5ed879={'startColumn':_0x150f37['first'],'endColumn':_0x150f37['last'],'includeAllSlots':!0x0};}const _0x177be6=_0x430efc['createTableWalker'](_0x50659e,_0x5ed879),_0xf4e919=Array['from'](_0x177be6)['map'](({cell:_0x4b05ac})=>_0x4b05ac),_0x52efc3=Re(_0xf4e919['filter'](_0x936a5f=>_0x936a5f['hasAttribute'](_0x325cbc))),_0xc5bd5c=Re(_0xf4e919['filter'](_0x5604db=>!_0x5604db['hasAttribute'](_0x325cbc)))['map'](_0x2919ac=>_0x7e39c['createRangeOn'](_0x2919ac)),_0x398c80=_0xde2bf['markMultiRangeDeletion'](_0xc5bd5c,_0x3fc3c9);if(_0x398c80&&('tableRow'==_0x398c80['subType']||'tableColumn'==_0x398c80['subType'])){const _0x55a497=this['_getSuggestionCoords'](_0x398c80);for(const _0x487d55 of _0x52efc3){const _0x5d278a=_0x7e39c['createRangeOn'](_0x487d55),_0x1406c0=_0x430efc['getCellLocation'](_0x487d55),_0x480d38=_0x487d55['getAttribute'](_0x325cbc)-0x1,_0xf024c0=_0x55a497[_0x5c73f6],_0x29c54e=_0x55a497[_0x38944c];_0xf024c0<=_0x1406c0[_0x2621c6]&&_0x1406c0[_0x2621c6]+_0x480d38<=_0x29c54e&&_0x398c80['addRange'](_0x5d278a);}}});});}function _0x5da981(_0x484f95){const _0x49fc50=Array['from'](_0x3d89d1['getRanges']())['map'](_0x5bfcc7=>_0x117350['fromRange'](_0x5bfcc7));_0xe2eee4['model']['change'](_0xcc168b=>{const _0x184655=_0xcc168b['batch'];_0x484f95=_0x484f95['filter'](_0x36b803=>'$graveyard'!=_0x36b803['root']['rootName']),_0xcc168b['setSelection'](_0x484f95),_0xe2eee4['commands']['get']('removeTableRow')['refresh'](),_0xe2eee4['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xe2eee4['model']['enqueueChange'](()=>{_0xe2eee4['model']['enqueueChange'](_0x184655,_0x2b6242=>{const _0x2bda07=_0x49fc50['filter'](_0x3c3ffb=>'$graveyard'!=_0x3c3ffb['root']['rootName']);_0x2bda07['length']>0x0&&_0x2b6242['setSelection'](_0x2bda07);for(const _0x52dc63 of _0x49fc50)_0x52dc63['detach']();});});});}function _0x13e5ac(_0x38b723){_0xe2eee4['model']['change'](_0x1c3dcf=>{const _0x3ffb33=Array['from'](_0x3d89d1['getRanges']())['map'](_0x3566d7=>_0x117350['fromRange'](_0x3566d7)),_0x25dafd=[];for(const _0x5e0ff4 of _0x38b723)for(const _0x1655c0 of _0x5e0ff4['getItems']({'shallow':!0x0}))_0x25dafd['push'](_0x1655c0);for(const _0x581465 of _0x25dafd)'$graveyard'!=_0x581465['root']['rootName']&&(_0x1c3dcf['setSelection'](_0x1c3dcf['createPositionAt'](_0x581465,0x0)),_0xe2eee4['commands']['get']('removeTableColumn')['refresh'](),_0xe2eee4['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x46a793=_0x3ffb33['filter'](_0x39342d=>'$graveyard'!=_0x39342d['root']['rootName']);_0x46a793['length']>0x0&&_0x1c3dcf['setSelection'](_0x46a793);for(const _0x5a1aa0 of _0x3ffb33)_0x5a1aa0['detach']();});}function _0x205c6d(_0x583315,_0x12f36c){return _0x12f36c['every'](_0x2756f3=>_0x583315['some'](_0x439b94=>_0x439b94['end']['isEqual'](_0x2756f3['start'])||_0x2756f3['end']['isEqual'](_0x439b94['start'])));}function _0x5031ab(_0x24c4fd,_0x4a580d){return!_0x24c4fd['some'](_0x36e79e=>_0x4a580d['some'](_0x5be02c=>_0x36e79e['isIntersecting'](_0x5be02c)))&&_0x24c4fd['some'](_0xacd5e9=>_0x4a580d['some'](_0x316ca4=>_0xacd5e9['end']['isTouching'](_0x316ca4['start'])));}_0xe2eee4['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x44a70f,_0x3e0242,_0x47e188)=>{if(!_0x47e188['options']['showSuggestionHighlights'])return;const _0x4015cf=_0x3e0242['item'];if(!_0x4015cf)return;const _0x5a3bb6=_0x47e188['mapper']['toViewElement'](_0x4015cf);function _0x169327(_0xb55a52){return Array['isArray'](_0xb55a52)?_0xb55a52:[_0xb55a52];}_0x5a3bb6&&'tableCell'===_0x4015cf['name']&&_0x268adf(_0x5a3bb6,_0x47e188['writer'],(_0x1f3f35,_0x5146a0,_0x11ff51)=>_0x11ff51['addClass'](_0x169327(_0x5146a0['classes']),_0x1f3f35),(_0x2c422e,_0x4aaeb0,_0x9b1d69)=>_0x9b1d69['removeClass'](_0x169327(_0x4aaeb0['classes']),_0x2c422e));},{'priority':'highest'}),_0xde2bf['descriptionFactory']['registerDescriptionCallback'](_0x1cb5ef=>{if('insertion'!=_0x1cb5ef['type']&&'deletion'!=_0x1cb5ef['type'])return;const _0x193488=_0x1cb5ef['getContainedElement']();if(null!=_0x193488&&_0x193488['is']('element','table')){if('insertion'==_0x1cb5ef['type']){const _0x3401d7=_0x1cb5ef['getItems']()['filter'](_0x50002f=>_0x50002f['is']('$textProxy'))['map'](_0x45d1c2=>_0x45d1c2['data']);if(_0x3401d7['length'])return{'type':'insertion','content':o(_0x31c2a8,'*Insert:*\x20%0',o(_0x31c2a8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3401d7['join']('\x20')+'\x22'))};}if('deletion'==_0x1cb5ef['type']){const _0x52ea0c=_0x1cb5ef['getItems']()['filter'](_0xb4ca8f=>_0xb4ca8f['is']('$textProxy'))['map'](_0x2f210a=>_0x2f210a['data']);if(_0x52ea0c['length'])return{'type':'deletion','content':o(_0x31c2a8,'*Remove:*\x20%0',o(_0x31c2a8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x52ea0c['join']('\x20')+'\x22'))};}}}),_0xde2bf['descriptionFactory']['registerDescriptionCallback'](_0x5e3e42=>{if('tableRow'==_0x5e3e42['subType']){const _0x4058c6=_0x5e3e42['getItems']()['filter'](_0x1be5ff=>_0x1be5ff['is']('$textProxy'))['map'](_0x53b64b=>_0x53b64b['data']),_0xb50c5c=this['_getSuggestionCoords'](_0x5e3e42),_0x308f47=_0xb50c5c['maxRow']-_0xb50c5c['minRow']+0x1;if('insertion'==_0x5e3e42['type'])return _0x4058c6['length']?{'type':'insertion','content':o(_0x31c2a8,'*Insert:*\x20%0',o(_0x31c2a8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x308f47,'\x22'+_0x4058c6['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x31c2a8,'*Insert:*\x20%0',o(_0x31c2a8,'ELEMENT_TABLE_ROW',_0x308f47))};if('deletion'==_0x5e3e42['type'])return _0x4058c6['length']?{'type':'deletion','content':o(_0x31c2a8,'*Remove:*\x20%0',o(_0x31c2a8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x308f47,'\x22'+_0x4058c6['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x31c2a8,'*Remove:*\x20%0',o(_0x31c2a8,'ELEMENT_TABLE_ROW',_0x308f47))};}if('tableColumn'==_0x5e3e42['subType']){const _0x5c6578=_0x5e3e42['getItems']()['filter'](_0xd3b37=>_0xd3b37['is']('$textProxy'))['map'](_0x1d26a9=>_0x1d26a9['data']),_0x103b1f=this['_getSuggestionCoords'](_0x5e3e42),_0x2b7457=_0x103b1f['maxColumn']-_0x103b1f['minColumn']+0x1;if('insertion'==_0x5e3e42['type'])return _0x5c6578['length']?{'type':'insertion','content':o(_0x31c2a8,'*Insert:*\x20%0',o(_0x31c2a8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2b7457,'\x22'+_0x5c6578['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x31c2a8,'*Insert:*\x20%0',o(_0x31c2a8,'ELEMENT_TABLE_COLUMN',_0x2b7457))};if('deletion'==_0x5e3e42['type'])return _0x5c6578['length']?{'type':'deletion','content':o(_0x31c2a8,'*Remove:*\x20%0',o(_0x31c2a8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2b7457,'\x22'+_0x5c6578['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x31c2a8,'*Remove:*\x20%0',o(_0x31c2a8,'ELEMENT_TABLE_COLUMN',_0x2b7457))};}}),_0xde2bf['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5da981),_0xde2bf['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5da981),_0xde2bf['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x13e5ac),_0xde2bf['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x13e5ac),_0xde2bf['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x205c6d),_0xde2bf['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x205c6d),_0xde2bf['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5031ab),_0xde2bf['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5031ab);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5b8edc=this['editor'],_0x1ec46d=_0x5b8edc['model']['document']['selection'];return(_0x1c8b22,_0x5b38b3)=>{_0x5b8edc['model']['change'](_0x514c18=>{const {commandName:_0x27c856,commandParams:_0x425bd7}=_0x5b38b3;let _0x41dc4e=_0x1c8b22[0x0]['end']['nodeBefore'];_0x425bd7&&_0x425bd7[0x0]&&!0x1===_0x425bd7[0x0]['forceValue']&&(_0x41dc4e=_0x1c8b22[0x0]['start']['nodeAfter']);const _0x1fa572=_0x514c18['createRangeIn'](_0x41dc4e);if('$graveyard'==_0x1fa572['root']['rootName'])return;const _0x1494cd=Array['from'](_0x1ec46d['getRanges']())['map'](_0x647de4=>_0x117350['fromRange'](_0x647de4));_0x514c18['setSelection'](_0x1fa572),_0x5b8edc['commands']['get'](_0x27c856)['refresh'](),_0x425bd7['push']({'forceDefaultExecution':!0x0}),_0x5b8edc['execute'](_0x27c856,..._0x425bd7);const _0x229a3d=_0x1494cd['filter'](_0x278929=>'$graveyard'!=_0x278929['root']['rootName']);_0x229a3d['length']>0x0&&_0x514c18['setSelection'](_0x229a3d);for(const _0x1a3aa0 of _0x1494cd)_0x1a3aa0['detach']();});};}['_getCoordsForCells'](_0x21a1c2){const _0x4fc60b=this['editor']['plugins']['get']('TableUtils');let _0x5ae8d3=Number['MAX_SAFE_INTEGER'],_0x54d6dc=Number['MIN_SAFE_INTEGER'],_0x3ddc14=Number['MAX_SAFE_INTEGER'],_0x59b49d=Number['MIN_SAFE_INTEGER'];for(const _0xfdec3 of _0x21a1c2){if('$graveyard'==_0xfdec3['root']['rootName'])continue;const {row:_0x3f18b6,column:_0x45b39f}=_0x4fc60b['getCellLocation'](_0xfdec3),_0x14f96e=_0xfdec3['hasAttribute']('rowspan')?_0xfdec3['getAttribute']('rowspan')-0x1:0x0,_0x2f1fd4=_0xfdec3['hasAttribute']('colspan')?_0xfdec3['getAttribute']('colspan')-0x1:0x0;_0x5ae8d3=_0x3f18b6<_0x5ae8d3?_0x3f18b6:_0x5ae8d3,_0x54d6dc=_0x3f18b6+_0x14f96e>_0x54d6dc?_0x3f18b6+_0x14f96e:_0x54d6dc,_0x3ddc14=_0x45b39f<_0x3ddc14?_0x45b39f:_0x3ddc14,_0x59b49d=_0x45b39f+_0x2f1fd4>_0x59b49d?_0x45b39f+_0x2f1fd4:_0x59b49d;}return{'minRow':_0x5ae8d3,'maxRow':_0x54d6dc,'minColumn':_0x3ddc14,'maxColumn':_0x59b49d};}['_setupColumnsRowsFixing'](){const _0x50a20e=this['editor'],_0x19bd6e=_0x50a20e['plugins']['get']('TrackChangesEditing'),_0x3a247c=_0x50a20e['plugins']['get']('TableUtils');_0x50a20e['model']['document']['on']('change:data',()=>{const _0x362a12=Array['from'](_0x50a20e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1bb884,data:_0x227cf6}of _0x362a12){const {group:_0x28dcd0,id:_0x4a5d26,subType:_0x10b078}=_0x19bd6e['_splitMarkerName'](_0x1bb884);if('suggestion'!=_0x28dcd0)continue;if(null!=_0x227cf6['oldRange'])continue;const _0x1c6c16=_0x19bd6e['getSuggestion'](_0x4a5d26);this['_tablePostFixingSubtypes']['includes'](_0x10b078)&&this['_tableSuggestions']['add'](_0x1c6c16);}},{'priority':'low'});const _0x5d9744=(_0x52bfbf,_0x4987f9)=>{let _0x321d0b=!0x1;const _0x21d5b1=_0x4987f9['createRangeOn'](_0x52bfbf),_0x11ae00=_0x52bfbf['findAncestor']('table'),_0x2273d5=_0x3a247c['getCellLocation'](_0x52bfbf);for(const _0x4f6978 of this['_tableSuggestions']){const _0x41f8a9=_0x4f6978['subType'],_0x3d9f47=_0x41f8a9['startsWith']('tablePaste'),_0x4fb40a=_0x41f8a9['substr'](_0x3d9f47?0xa:0x5),_0x260ca5=_0x4fb40a['toLowerCase'](),_0x3b7767=_0x260ca5['substr'](0x0,0x3)+'span',_0x4696e1='min'+_0x4fb40a,_0x41da9e='max'+_0x4fb40a;if(!_0x4f6978['isInContent'])continue;if(_0x11ae00!=_0x4f6978['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4f6978['isIntersectingWithRange'](_0x21d5b1))continue;const _0x4399f9=_0x52bfbf['hasAttribute'](_0x3b7767)?_0x52bfbf['getAttribute'](_0x3b7767)-0x1:0x0,_0x519ca8=this['_getSuggestionCoords'](_0x4f6978),_0x269e96=_0x519ca8[_0x4696e1],_0x493d2f=_0x519ca8[_0x41da9e];_0x269e96<=_0x2273d5[_0x260ca5]&&_0x2273d5[_0x260ca5]+_0x4399f9<=_0x493d2f&&(_0x4f6978['addRange'](_0x21d5b1),_0x321d0b=!0x0);}return _0x321d0b;};_0x50a20e['model']['document']['registerPostFixer'](_0x57a36d=>{let _0x48d1d2=!0x1;for(const _0x216201 of _0x50a20e['model']['document']['differ']['getChanges']())if('insert'==_0x216201['type']){if('tableRow'==_0x216201['name']){for(const _0x3de0e5 of _0x216201['position']['nodeAfter']['getChildren']())_0x48d1d2=_0x48d1d2||_0x5d9744(_0x3de0e5,_0x57a36d);}else'tableCell'==_0x216201['name']&&(_0x48d1d2=_0x48d1d2||_0x5d9744(_0x216201['position']['nodeAfter'],_0x57a36d));}return _0x48d1d2;});}['_getSuggestionCoords'](_0x493867){return this['_getCoordsForCells'](_0x493867['getRanges']()['map'](_0x29aecd=>_0x29aecd['start']['nodeAfter']));}}function Re(_0x1c805b){return Array['from'](new Set(_0x1c805b)['values']());}class _t extends _0x248004{static get['requires'](){return[vt];}['afterInit'](){const _0x53a1c2=this['editor'],_0x36349f=_0x53a1c2['model']['document']['selection'],_0x8e97ac=_0x53a1c2['locale'];if(!_0x53a1c2['plugins']['has']('TableEditing'))return;const _0x4d4d55=_0x53a1c2['plugins']['get']('TrackChangesEditing'),_0x417691=_0x53a1c2['plugins']['get']('TableUtils'),_0x4df3ab=_0x53a1c2['plugins']['get'](vt);_0x4df3ab['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4d4d55['enableCommand']('mergeTableCells',()=>{const _0x10bb84=_0x417691['getSelectionAffectedTableCells'](_0x53a1c2['model']['document']['selection']);_0x53a1c2['model']['change'](()=>{_0x4d4d55['markMultiRangeBlockFormat'](_0x10bb84,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x53a1c2['commands']['get']('mergeTableCells')['on']('execute',(_0x412b54,_0x5842f4)=>{_0x53a1c2['commands']['get']('trackChanges')['value']&&(_0x5842f4['length']>0x0&&_0x5842f4[_0x5842f4['length']-0x1]&&_0x5842f4[_0x5842f4['length']-0x1]['forceDefaultExecution']||_0x4d4d55['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x412b54['stop']());},{'priority':'highest'});for(const _0x39bd92 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x34846a=_0x53a1c2['commands']['get'](_0x39bd92);_0x4d4d55['enableCommand'](_0x39bd92,()=>{const _0x32cd69=_0x53a1c2['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3fb387=>_0x3fb387['is']('element','tableCell')),_0x4069d8=_0x34846a['value'];_0x53a1c2['model']['change'](()=>{_0x4d4d55['markMultiRangeBlockFormat']([_0x32cd69,_0x4069d8],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x207f98 of['splitTableCellVertically','splitTableCellHorizontally']){const _0xbec9c7=_0x53a1c2['commands']['get'](_0x207f98);_0x4d4d55['enableCommand'](_0x207f98,()=>{const _0x390e9c=_0x417691['getSelectionAffectedTableCells'](_0x53a1c2['model']['document']['selection'])[0x0],_0x436cab=_0x390e9c['findAncestor']('table'),{column:_0x2b34f7,row:_0x469979}=_0x417691['getCellLocation'](_0x390e9c);let _0x4aa144=[];if('horizontally'==_0xbec9c7['direction']){const _0x361f05=_0x417691['createTableWalker'](_0x436cab,{'startRow':_0x469979,'endRow':_0x469979,'includeAllSlots':!0x0});_0x4aa144=Array['from'](_0x361f05)['map'](_0x138fc8=>_0x138fc8['cell']);}else{const _0x16607f=_0x417691['createTableWalker'](_0x436cab,{'column':_0x2b34f7,'includeAllSlots':!0x0});_0x4aa144=Array['from'](_0x16607f)['map'](_0x30fdbc=>_0x30fdbc['cell']);}_0x53a1c2['model']['change'](_0x32975a=>{_0x4d4d55['markBlockFormat'](_0x32975a['createRangeOn'](_0x390e9c),{'commandName':_0x207f98,'commandParams':[]},_0x4aa144,_0x207f98);});});}_0x4d4d55['descriptionFactory']['registerDescriptionCallback'](_0x3ba239=>{if('formatBlock'!=_0x3ba239['type']&&'formatInline'!=_0x3ba239['type'])return;const {data:_0xe37378}=_0x3ba239;return _0xe37378&&'mergeTableCells'==_0xe37378['commandName']?{'type':'format','content':o(_0x8e97ac,'*Merge\x20cells*')}:void 0x0;}),_0x4d4d55['descriptionFactory']['registerDescriptionCallback'](_0x265b31=>{if('formatBlock'!=_0x265b31['type']&&'formatInline'!=_0x265b31['type'])return;const {data:_0x20463d}=_0x265b31;return _0x20463d?'splitTableCellVertically'==_0x20463d['commandName']?{'type':'format','content':o(_0x8e97ac,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x20463d['commandName']?{'type':'format','content':o(_0x8e97ac,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x436b35=_0x4df3ab['_acceptFormatSuggestionCallbackFactory']();for(const _0xcc0df9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4d4d55['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xcc0df9,'accept',_0x436b35);for(const _0x4a14dd of['splitTableCellVertically','splitTableCellHorizontally'])_0x4d4d55['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4a14dd,'accept',_0x436b35);_0x4d4d55['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x178a3e=>{_0x53a1c2['model']['change'](_0x2cafb2=>{const _0x148ee0=Array['from'](_0x36349f['getRanges']())['map'](_0x5ae2e2=>_0x117350['fromRange'](_0x5ae2e2));_0x2cafb2['setSelection'](_0x178a3e),_0x53a1c2['commands']['get']('mergeTableCells')['refresh'](),_0x53a1c2['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x275e73=_0x148ee0['filter'](_0x579458=>'$graveyard'!=_0x579458['root']['rootName']);_0x275e73['length']>0x0&&_0x2cafb2['setSelection'](_0x275e73);for(const _0x24bb49 of _0x148ee0)_0x24bb49['detach']();});});for(const _0xc124d8 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x357346=_0x53a1c2['commands']['get'](_0xc124d8);_0x357346['on']('set:isEnabled',(_0x56ed79,_0x5cff35,_0x198d53)=>{if(_0x198d53){const _0x2ed306=_0x53a1c2['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xcdc4c0=>_0xcdc4c0['is']('element','tableCell'));this['_areMergableCells'](_0x357346['value'],_0x2ed306)||(_0x56ed79['return']=!0x1,_0x56ed79['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x39717b=this['editor']['commands']['get']('mergeTableCells'),_0x31654b=this['editor']['plugins']['get']('TableUtils');if(!_0x39717b['isEnabled'])return!0x1;const _0xd80554=_0x31654b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5ed102 of _0xd80554)for(const _0x574096 of _0xd80554)if(_0x5ed102!=_0x574096&&!this['_areMergableCells'](_0x5ed102,_0x574096))return!0x1;return!0x0;}['_areMergableCells'](_0x48aad4,_0x1fe263){const _0x2ba4dc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x259a15=this['editor']['model']['createRangeOn'](_0x48aad4),_0x1edf61=this['editor']['model']['createRangeOn'](_0x1fe263),_0x58d198=new Set(),_0x3761f3=new Set();for(const _0x4827ed of _0x2ba4dc['getSuggestions']())if(('insertion'==_0x4827ed['type']||'deletion'==_0x4827ed['type']||'mergeTableCells'==_0x4827ed['subType'])&&_0x4827ed['isInContent']){for(const _0xb89f07 of _0x4827ed['getRanges']())_0xb89f07['containsRange'](_0x259a15,!0x0)&&_0x58d198['add'](_0x4827ed['type']+':'+_0x4827ed['author']['id']),_0xb89f07['containsRange'](_0x1edf61,!0x0)&&_0x3761f3['add'](_0x4827ed['type']+':'+_0x4827ed['author']['id']);}if(_0x58d198['size']!=_0x3761f3['size'])return!0x1;for(const _0x26f21a of _0x58d198)if(!_0x3761f3['has'](_0x26f21a))return!0x1;return!0x0;}}class Ct extends _0x248004{static get['requires'](){return[vt];}['afterInit'](){const _0x134f27=this['editor'];if(!_0x134f27['plugins']['has']('TableEditing'))return;const _0x188312=_0x134f27['locale'],_0x5891e0=_0x134f27['plugins']['get']('TrackChangesEditing');_0x5891e0['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5891e0['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5891e0['registerBlockAttribute']('headingRows'),_0x5891e0['registerBlockAttribute']('headingColumns'),_0x5891e0['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x188312,'FORMAT_HEADER_ROW')),_0x5891e0['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x188312,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x174b74=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c2595=this['editor']['plugins']['get']('TableUtils'),_0xf96696=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x4467ef({showActiveMarker:_0x19ce50=!0x0,setDataAttribute:_0x14d95b=!0x0}={}){return(_0x49dc55,_0x5385f0,_0x356c2d)=>{const {type:_0x1821fe,id:_0x4cef35}=_0x174b74['_splitMarkerName'](_0x5385f0['markerName']),_0x25440b=_0x174b74['getSuggestion'](_0x4cef35),_0xddd65f=_0x25440b['data'];if('formatBlock'!=_0x25440b['type']||!_0xddd65f||'setTableColumnHeader'!=_0xddd65f['commandName'])return;if(_0x5385f0['item'])return void _0x49dc55['stop']();if(!_0x356c2d['consumable']['consume'](_0x5385f0['markerRange'],_0x49dc55['name']))return;const _0x3d7245=_0x5385f0['markerRange']['start']['nodeAfter'],_0x2ba6a9=_0x5385f0['markerRange']['end']['nodeBefore'],_0x531d27=_0x3d7245['parent']['parent'],{column:_0x134d48}=_0x5c2595['getCellLocation'](_0x3d7245),{column:_0x4341ac}=_0x5c2595['getCellLocation'](_0x2ba6a9);for(let _0xe97d6e=_0x134d48;_0xe97d6e<=_0x4341ac;_0xe97d6e++){const _0x47ab64=_0x5c2595['createTableWalker'](_0x531d27,{'column':_0xe97d6e,'includeAllSlots':!0x1});for(const _0x9f5ecc of _0x47ab64){const _0x29f86a=_0x9f5ecc['cell'],_0x5af71c=_0x356c2d['mapper']['toViewElement'](_0x29f86a);_0x356c2d['writer']['addClass']('ck-suggestion-marker-'+_0x1821fe,_0x5af71c),_0x14d95b&&_0x356c2d['writer']['setAttribute']('data-suggestion',_0x4cef35,_0x5af71c),_0x356c2d['mapper']['bindElementToMarker'](_0x5af71c,_0x5385f0['markerName']),_0x19ce50&&(_0x174b74['activeMarkers']['includes'](_0x5385f0['markerName'])?_0x356c2d['writer']['addClass']('ck-suggestion-marker--active',_0x5af71c):_0x356c2d['writer']['removeClass']('ck-suggestion-marker--active',_0x5af71c));}}};}_0x174b74['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xf96696),_0x174b74['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xf96696),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4467ef(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1038b2,_0x404d69,_0x52676e)=>{_0x52676e['options']['showSuggestionHighlights']&&_0x4467ef({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1038b2,_0x404d69,_0x52676e);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x180363,_0x13ae37,_0x4ea143)=>{const {type:_0x389ada,id:_0x46eb35}=_0x174b74['_splitMarkerName'](_0x13ae37['markerName']),_0x1479a9=_0x174b74['getSuggestion'](_0x46eb35),_0x5b6305=_0x1479a9['data'];if('formatBlock'!=_0x1479a9['type']||!_0x5b6305||'setTableColumnHeader'!=_0x5b6305['commandName'])return;const _0x3ea3ec=_0x4ea143['mapper']['markerNameToElements'](_0x13ae37['markerName']);if(_0x3ea3ec){for(const _0x4aa1c4 of _0x3ea3ec)_0x4ea143['writer']['removeClass']('ck-suggestion-marker-'+_0x389ada,_0x4aa1c4),_0x4ea143['writer']['removeClass']('ck-suggestion-marker--active',_0x4aa1c4),_0x4ea143['writer']['removeAttribute']('data-suggestion',_0x4aa1c4),_0x4ea143['mapper']['unbindElementFromMarkerName'](_0x4aa1c4,_0x13ae37['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d3793=this['editor'],_0x25372c=_0x2d3793['locale'];function _0x5765aa(_0x29ae1a){return{'type':'format','content':o(_0x25372c,'*Format:*\x20%0',_0x29ae1a)};}_0x2d3793['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x308294=>{if('formatBlock'!=_0x308294['type'])return;const {data:_0x532337}=_0x308294;if(_0x532337){if('setTableRowHeader'==_0x532337['commandName']){const _0xe2a3f=_0x532337['commandParams'][0x0]['forceValue'];return _0x5765aa(o(_0x25372c,_0xe2a3f?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x532337['commandName']){const _0x3fe5ba=_0x532337['commandParams'][0x0]['forceValue'];return _0x5765aa(o(_0x25372c,_0x3fe5ba?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0x15345c=>[_0x15345c,null]));class Nt extends _0x248004{static get['requires'](){return[vt];}['afterInit'](){const _0x3f4d6f=this['editor'];if(!_0x3f4d6f['plugins']['has']('TableClipboard'))return;const _0x4c7170=_0x3f4d6f['plugins']['get']('TrackChangesEditing'),_0x415d18=_0x3f4d6f['plugins']['get']('TableUtils'),_0x56a9bb=_0x3f4d6f['plugins']['get'](vt),_0x906def=_0x3f4d6f['plugins']['get']('TableClipboard');_0x56a9bb['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3f4d6f['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3f4d6f['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x585d28=null;_0x3f4d6f['model']['on']('insertContent',(_0x586ea3,_0x3ab99c)=>{const [_0x44c492,_0x47516f]=_0x3ab99c,_0x83fb4=_0x3ab99c[_0x3ab99c['length']-0x1];_0x83fb4&&_0x83fb4['forceDefaultExecution']||_0x4c7170['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5596cf,_0x181b9c,_0x10f829,_0x2fb5da,_0x5e2a4d){if(_0x181b9c&&!_0x181b9c['is']('documentSelection'))return!0x1;const _0x17d40e=_0x5e2a4d['getTableIfOnlyTableInContent'](_0x5596cf,_0x10f829);if(!_0x17d40e||!Ae(_0x17d40e,void 0x0,_0x2fb5da))return!0x1;const _0x1c2b43=_0x2fb5da['getSelectionAffectedTableCells'](_0x10f829['document']['selection']);if(!_0x1c2b43['length'])return!0x1;const _0x2c2604=_0x1c2b43[0x0]['findAncestor']('table'),_0x404eeb=_0x2fb5da['getRowIndexes'](_0x1c2b43),_0x6c2db1=_0x2fb5da['getColumnIndexes'](_0x1c2b43),_0x91932={'startRow':_0x404eeb['first'],'endRow':_0x404eeb['last'],'startColumn':_0x6c2db1['first'],'endColumn':_0x6c2db1['last']};return 0x1==_0x1c2b43['length']&&(_0x91932['endRow']+=_0x2fb5da['getRows'](_0x17d40e)-0x1,_0x91932['endColumn']+=_0x2fb5da['getColumns'](_0x17d40e)-0x1),Ae(_0x2c2604,_0x91932,_0x2fb5da);}(_0x44c492,_0x47516f,_0x3f4d6f['model'],_0x415d18,_0x906def)&&(_0x586ea3['stop'](),_0x585d28={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3f4d6f['model']['change'](()=>{_0x3f4d6f['model']['insertContent'](_0x3ab99c[0x0],_0x3ab99c[0x1],_0x3ab99c[0x2],{'forceDefaultExecution':!0x0});const _0x1e5ca3=_0x182257(),{rowInsertionRanges:_0x2eabec,columnInsertionRanges:_0x5b47cc,insertionRanges:_0x310568,deletionRanges:_0x48ed1c,cells:_0x344f9c}=_0x585d28;_0x2eabec['length']&&_0x4c7170['markMultiRangeInsertion'](_0x2eabec,'tablePasteRow',{'tablePasteChainId':_0x1e5ca3}),_0x5b47cc['length']&&_0x4c7170['markMultiRangeInsertion'](_0x5b47cc,'tablePasteColumn',{'tablePasteChainId':_0x1e5ca3}),_0x310568['length']&&(_0x4c7170['markMultiRangeInsertion'](_0x310568,'tablePaste',{'tablePasteChainId':_0x1e5ca3,'skipNestingCheck':!0x0}),_0x310568['forEach'](_0xc1d46b=>_0xc1d46b['detach']?.())),_0x48ed1c['length']&&(_0x4c7170['markMultiRangeDeletion'](_0x48ed1c,'tablePaste',{'tablePasteChainId':_0x1e5ca3,'skipNestingCheck':!0x0}),_0x48ed1c['forEach'](_0x204738=>_0x204738['detach']?.()));const _0x35d6d7=_0x4c7170['markMultiRangeBlockFormat'](_0x344f9c['map'](({element:_0x200754})=>_0x200754),{'formatGroupId':_0x182257()},[],'tablePasteCell',{'tablePasteChainId':_0x1e5ca3});if(_0x35d6d7){const _0x4ab3e1=_0x35d6d7['getMarkers'](),_0x50da05=[];for(const {element:_0x59d1c8,attributes:_0x2dc8a1}of _0x344f9c){if(!_0x2dc8a1)continue;const _0x57669f=_0x3f4d6f['model']['createRangeOn'](_0x59d1c8),_0x221df9=_0x4ab3e1['find'](_0x6528be=>_0x6528be['getRange']()['isEqual'](_0x57669f));_0x221df9&&_0x50da05['push']([_0x221df9['name'],_0x2dc8a1]);}_0x50da05['length']&&_0x35d6d7['setAttribute']('markerAttributes',Object['fromEntries'](_0x50da05));}_0x585d28=null;}));},{'priority':_0x4bb7ca['high']+0xa}),_0x3f4d6f['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x445fdf,_0x19efbe)=>{const [_0x44f37c,_0x5adcba,,_0x3b5794]=_0x19efbe;if(!_0x585d28)return;_0x445fdf['stop']();const _0x240cf9=_0x44f37c['cell'],_0x5e7110=_0x5adcba,_0x503a93=je(_0x240cf9),_0x4992f4=je(_0x5e7110);_0x445fdf['return']=_0x240cf9;let _0xfa39a0=null,_0x5a6931=null;if(_0x4992f4||_0x503a93){if(_0x503a93&&!_0x4992f4){_0x3b5794['remove'](_0x240cf9['getChild'](0x0));for(const _0xfd821b of Array['from'](_0x5e7110['getChildren']()))_0x3b5794['insert'](_0xfd821b,_0x240cf9,'end');const _0xfbaef1=_0x585d28['rowInsertionIndexes']['includes'](_0x44f37c['row']),_0x51c987=_0x585d28['columnInsertionIndexes']['includes'](_0x44f37c['column']);_0xfbaef1||_0x51c987||(_0xfa39a0=_0x117350['fromRange'](_0x3b5794['createRangeIn'](_0x240cf9)));}else _0x4992f4&&!_0x503a93&&(_0x5a6931=_0x3b5794['createRangeIn'](_0x240cf9));}else{const _0x5d6bb9=_0x3b5794['createElement']('tableCellSuggestion'),_0x5cfa72=_0x3b5794['createElement']('tableCellSuggestion');_0x3b5794['wrap'](_0x3b5794['createRangeIn'](_0x240cf9),_0x5cfa72),_0x3b5794['insert'](_0x5d6bb9,_0x240cf9,0x0);for(const _0x4fb18a of Array['from'](_0x5e7110['getChildren']()))_0x3b5794['insert'](_0x4fb18a,_0x5d6bb9,'end');_0xfa39a0=_0x117350['fromRange'](_0x3b5794['createRangeOn'](_0x5d6bb9)),_0x5a6931=_0x117350['fromRange'](_0x3b5794['createRangeOn'](_0x5cfa72));}const _0x3f3147=Array['from'](_0x5e7110['getAttributes']())['filter'](([_0x55164a])=>we['includes'](_0x55164a));_0x585d28['cells']['push']({'element':_0x240cf9,'attributes':_0x3f3147['length']?Object['fromEntries'](_0x3f3147):null}),_0xfa39a0&&_0x585d28['insertionRanges']['push'](_0xfa39a0),_0x5a6931&&_0x585d28['deletionRanges']['push'](_0x5a6931);},{'priority':'high'}),_0x415d18['on']('insertColumns',(_0x4e49b7,_0x2c30a9)=>{const [_0x299ebb,_0x2d72f5={}]=_0x2c30a9;if(!_0x585d28)return;const _0x1ff247=_0x2d72f5['at']||0x0,_0x2c5b5e=_0x2d72f5['columns']||0x1;_0x585d28['columnInsertionIndexes']=new Array(_0x2c5b5e)['fill'](_0x1ff247)['map']((_0x28bba8,_0x24456f)=>_0x28bba8+_0x24456f);for(const {cell:_0x2aac77}of _0x415d18['createTableWalker'](_0x299ebb,{'startColumn':_0x1ff247,'endColumn':_0x1ff247+_0x2c5b5e-0x1}))_0x585d28['columnInsertionRanges']['push'](_0x3f4d6f['model']['createRangeOn'](_0x2aac77));},{'priority':'low'}),_0x415d18['on']('insertRows',(_0x4786bc,_0x151db1)=>{const [_0xd63e7,_0x298c56={}]=_0x151db1;if(!_0x585d28)return;const _0x4c43e4=_0x298c56['at']||0x0,_0xbdb261=_0x298c56['rows']||0x1;_0x585d28['rowInsertionIndexes']=new Array(_0xbdb261)['fill'](_0x4c43e4)['map']((_0x52b44e,_0x23d9f3)=>_0x52b44e+_0x23d9f3);for(const {cell:_0x430c91}of _0x415d18['createTableWalker'](_0xd63e7,{'startRow':_0x4c43e4,'endRow':_0x4c43e4+_0xbdb261-0x1}))_0x585d28['rowInsertionRanges']['push'](_0x3f4d6f['model']['createRangeOn'](_0x430c91));},{'priority':'low'}),_0x4c7170['descriptionFactory']['registerDescriptionCallback'](_0x27e3bd=>{if(_0x27e3bd['subType']&&_0x27e3bd['subType']['startsWith']('tablePaste'))return _0x27e3bd['previous']?{}:{'type':'insertion','content':o(_0x3f4d6f['locale'],'*Replace\x20table\x20cells*')};});const _0x3e9ac1=()=>!0x1;for(const _0x416104 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4c7170['_suggestionFactory']['registerCustomCallback']('insertion',_0x416104,'join',_0x3e9ac1),_0x4c7170['_suggestionFactory']['registerCustomCallback']('deletion',_0x416104,'join',_0x3e9ac1),_0x4c7170['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x416104,'join',_0x3e9ac1);_0x4c7170['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3e9ac1),_0x4c7170['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4ef666,_0x160f0e,_0x589997)=>{const _0x48d261=_0x4ef666['map'](_0x3861bf=>_0x3861bf['getContainedElement']())['filter'](_0x5baa06=>_0x5baa06),_0x50d0c1=new Map(_0x48d261['map'](_0x54d89c=>[_0x54d89c,null]));if(_0x585d28){for(const {element:_0x37b790,attributes:_0x24fb46}of _0x585d28['cells'])_0x24fb46&&_0x50d0c1['set'](_0x37b790,_0x24fb46);}else{if(_0x589997&&_0x589997['markerAttributes'])for(const [_0x5bcd50,_0xb6e58e]of Object['entries'](_0x589997['markerAttributes'])){const _0x4e3723=_0x3f4d6f['model']['markers']['get'](_0x5bcd50),_0x34a7a5=_0x4e3723?_0x4e3723['getRange']()['getContainedElement']():null;_0x34a7a5&&_0x50d0c1['set'](_0x34a7a5,_0xb6e58e);}}_0x3f4d6f['model']['change'](_0xdec0d5=>{for(const [_0x38a5bb,_0xbbc5ee]of _0x50d0c1)_0xdec0d5['setAttributes']({...ve,..._0xbbc5ee},_0x38a5bb);});});const _0x1e24b9=(_0x5438e2,_0x3d84b4)=>{_0x4c7170['_suggestionFactory']['registerCustomCallback'](_0x5438e2,'tablePaste',_0x3d84b4,(_0x34b448,_0x915e37,_0x4ea7d5)=>{_0x3f4d6f['model']['change'](_0xa56cf0=>{const _0x3ad0c6=[];for(const _0x595e26 of _0x34b448){const _0xed7ebf=_0x595e26['start']['nodeAfter'];_0xed7ebf['is']('element','tableCellSuggestion')&&_0x3ad0c6['push'](_0xed7ebf);}_0x4c7170['_suggestionFactory']['getSuggestionCallback'](_0x5438e2,null,_0x3d84b4)(_0x34b448,_0x915e37,_0x4ea7d5);for(const _0x1225a5 of _0x3ad0c6)'$graveyard'!=_0x1225a5['root']['rootName']&&_0xa56cf0['unwrap'](_0x1225a5);});});};_0x1e24b9('insertion','accept'),_0x1e24b9('insertion','discard'),_0x1e24b9('deletion','accept'),_0x1e24b9('deletion','discard'),_0x4c7170['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x484655=>{const _0x43a8c7=_0x484655['map'](_0x48cf0c=>_0x48cf0c['getContainedElement']()),_0x10f620=_0x43a8c7[0x0]['findAncestor']('table'),{minRow:_0x23b386,maxRow:_0x573f72}=_0x56a9bb['_getCoordsForCells'](_0x43a8c7);_0x415d18['removeRows'](_0x10f620,{'at':_0x23b386,'rows':_0x573f72-_0x23b386+0x1});}),_0x4c7170['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x386b0b=>{const _0x511062=_0x386b0b['map'](_0x3f52c1=>_0x3f52c1['getContainedElement']()),_0x2a3474=_0x511062[0x0]['findAncestor']('table'),{minColumn:_0x475a02,maxColumn:_0x358631}=_0x56a9bb['_getCoordsForCells'](_0x511062);_0x415d18['removeColumns'](_0x2a3474,{'at':_0x475a02,'columns':_0x358631-_0x475a02+0x1});});const _0x1d0cd3=(_0x43dc22,_0x1625e1)=>{if(!_0x1625e1['subType']||!_0x1625e1['subType']['startsWith']('tablePaste'))return;const _0x3060b9=_0x1625e1['attributes']['tablePasteChainId'],_0xe9595=_0x4c7170['getSuggestions']()['filter'](_0x3e7cc0=>_0x3e7cc0['isInContent']&&_0x3e7cc0['attributes']&&_0x3e7cc0['attributes']['tablePasteChainId']==_0x3060b9);_0xe9595['length']&&_0x1625e1['getAllAdjacentSuggestions']()['length']!=_0xe9595['length']&&_0xe9595['reduce']((_0x1ff42c,_0x48328d)=>(_0x1ff42c['next']=_0x48328d,_0x48328d['previous']=_0x1ff42c,_0x48328d));};function _0x1db86a(_0x598458,_0x22b1fb=!0x0){const {id:_0xe9cdb,authorId:_0x24e56c}=_0x4c7170['_splitMarkerName'](_0x598458['markerName']),_0x12b22d=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x453bb2=_0x4c7170['activeMarkers']['includes'](_0x598458['markerName']);return _0x453bb2&&_0x12b22d['push']('ck-suggestion-marker--active'),{'classes':_0x12b22d,'attributes':{'data-suggestion':_0xe9cdb,'data-author-id':_0x24e56c},'priority':_0x453bb2&&_0x22b1fb?0xbc2:0xbb8};}_0x4c7170['on']('suggestionLoaded',_0x1d0cd3,{'priority':'high'}),_0x4c7170['on']('suggestionUnloaded',_0x1d0cd3,{'priority':'high'}),_0x3f4d6f['model']['document']['registerPostFixer'](()=>{let _0x49e430=!0x1;const _0x33751d=Array['from'](_0x3f4d6f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5d2d92,data:_0x4e045d}of _0x33751d){const {group:_0x2763ce,type:_0x2b44e6,id:_0x57c52e}=_0x4c7170['_splitMarkerName'](_0x5d2d92);if('suggestion'!=_0x2763ce||'deletion'!=_0x2b44e6||_0x4e045d['oldRange'])continue;if(!_0x4c7170['hasSuggestion'](_0x57c52e))continue;const _0x38c6cc=_0x4c7170['getSuggestion'](_0x57c52e)['getRanges'](),_0x4cbbbb=_0x3f4d6f['plugins']['get']('Users')['me'];for(const _0x24f479 of _0x4c7170['getSuggestions']()){if(!_0x24f479['isInContent']||_0x24f479['author']!=_0x4cbbbb)continue;if('formatBlock'!=_0x24f479['type']||'tablePasteCell'!=_0x24f479['subType'])continue;if(_0x24f479['getRanges']()['every'](_0x8e28a6=>_0x38c6cc['some'](_0x47c6d0=>_0x47c6d0['containsRange'](_0x8e28a6,!0x0)))){for(const _0xa691d8 of _0x24f479['getAllAdjacentSuggestions']())_0xa691d8['isInContent']&&(_0xa691d8['discard'](),_0x49e430=!0x0);}}}return _0x49e430;}),_0x3f4d6f['model']['document']['registerPostFixer'](_0x400842=>{const _0x2c4bdd=_0x3f4d6f['commands']['get']('redo');if(!_0x2c4bdd||!_0x2c4bdd['_createdBatches']['has'](_0x400842['batch']))return!0x1;let _0x1e0e80=!0x1;const _0x2daa8a=_0x3f4d6f['plugins']['get']('Users')['me'],_0x1dd84e=_0x3f4d6f['model']['document']['differ']['getChanges'](),_0x695792=Array['from'](_0x3f4d6f['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xd8b5c8,data:_0x32b8c9})=>{const {group:_0x1113e4,subType:_0x47916c,authorId:_0x5f0c9e}=_0x4c7170['_splitMarkerName'](_0xd8b5c8);return'suggestion'==_0x1113e4&&'tablePaste'==_0x47916c&&_0x5f0c9e==_0x2daa8a['id']&&!_0x32b8c9['oldRange'];});for(const _0x167464 of _0x1dd84e){if('insert'!=_0x167464['type']||'tableCellSuggestion'!=_0x167464['name']||0x1!=_0x167464['length'])continue;const _0xb2d8fa=_0x400842['createRange'](_0x167464['position'],_0x167464['position']['getShiftedBy'](0x1));if(!_0x695792['find'](({data:_0x43b47c})=>_0x43b47c['newRange']['isEqual'](_0xb2d8fa))){for(const {name:_0x176c02,data:_0x47bfc4}of _0x695792)if(_0xb2d8fa['containsRange'](_0x47bfc4['newRange'])){_0x400842['updateMarker'](_0x176c02,{'range':_0xb2d8fa}),_0x1e0e80=!0x0;break;}}}return _0x1e0e80;}),_0x3f4d6f['model']['document']['registerPostFixer'](_0x2e7b44=>{let _0x172d4d=!0x1;const _0x3c7cd7=_0x3f4d6f['plugins']['get']('Users')['me'],_0x1ae451=_0x4c7170['getSuggestions']()['filter'](_0x1815e1=>_0x1815e1['isInContent']&&_0x1815e1['author']==_0x3c7cd7),_0x4850f5=new Set(),_0x5c70c9=new Set();for(const _0x375569 of _0x1ae451)if('tablePaste'==_0x375569['subType'])for(const _0x3b2cf3 of _0x375569['getMarkers']()){const _0x2d2929=_0x3b2cf3['getRange']()['getContainedElement']();if(_0x2d2929){if(_0x2d2929['is']('element','tableCellSuggestion')&&je(_0x2d2929)){_0x375569['removeMarker'](_0x3b2cf3['name']),_0x4850f5['add'](_0x2d2929),_0x172d4d=!0x0;const _0x4d5f2b=_0x2d2929['nextSibling'],_0x12141d=_0x2d2929['previousSibling'],_0x196a55=_0x4d5f2b&&_0x4d5f2b['is']('element','tableCellSuggestion'),_0x8767d8=_0x12141d&&_0x12141d['is']('element','tableCellSuggestion');_0x196a55&&!_0x4850f5['has'](_0x4d5f2b)&&_0x5c70c9['add'](_0x4d5f2b),_0x8767d8&&!_0x4850f5['has'](_0x12141d)&&_0x5c70c9['add'](_0x12141d);}else _0x2d2929['is']('element','paragraph')&&_0x2d2929['isEmpty']&&(_0x375569['removeMarker'](_0x3b2cf3['name']),_0x172d4d=!0x0);}}else{if('tablePasteCell'==_0x375569['subType']){if(!_0x375569['attributes']||!_0x375569['attributes']['tablePasteChainId'])continue;const _0x282ab4=_0x375569['attributes']['markerAttributes'];if(_0x282ab4&&Object['keys'](_0x282ab4)['length'])continue;const _0x57df6e=_0x375569['attributes']['tablePasteChainId'];let _0x128b2a=!0x0,_0x1e5bcf=!0x0;for(const _0x100528 of _0x1ae451)if(_0x100528['subType']&&_0x100528['subType']['startsWith']('tablePaste')){if(!_0x100528['attributes']['tablePasteChainId']){_0x1e5bcf=!0x1;break;}if(_0x100528['id']!=_0x375569['id']&&_0x100528['attributes']['tablePasteChainId']==_0x57df6e){_0x128b2a=!0x1;break;}}_0x1e5bcf&&_0x128b2a&&(_0x375569['removeMarkers'](),_0x172d4d=!0x0);}}for(const _0x337585 of _0x4850f5)_0x2e7b44['remove'](_0x337585);for(const _0x4c6972 of _0x5c70c9)_0x2e7b44['unwrap'](_0x4c6972);return _0x172d4d;}),_0x3f4d6f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x294e5d=>_0x1db86a(_0x294e5d),'converterPriority':'high'}),_0x3f4d6f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x39b785,_0x403478)=>_0x403478['options']['showSuggestionHighlights']?_0x1db86a(_0x39b785,!0x1):null,'converterPriority':'high'});const _0x1080b5=_0x3f4d6f['editing']['view'];this['listenTo'](_0x1080b5['document'],'clipboardOutput',(_0x2c5d34,_0xfc62cf)=>{const _0x5f65a7=[];for(const _0x41320c of _0x1080b5['createRangeIn'](_0xfc62cf['content'])['getItems']())_0x41320c['is']('element','suggestion-td')&&_0x5f65a7['push'](_0x41320c);_0x1080b5['change'](_0xe91a24=>{for(const _0x48bc83 of _0x5f65a7)_0xe91a24['move'](_0xe91a24['createRangeIn'](_0x48bc83),_0xe91a24['createPositionBefore'](_0x48bc83)),_0xe91a24['remove'](_0x48bc83);});});}}function je(_0x35ca8b){if(_0x35ca8b['isEmpty'])return!0x0;const _0x103de8=_0x35ca8b['getChild'](0x0);return _0x103de8['is']('element','paragraph')&&_0x103de8['isEmpty'];}function Ae(_0x3cee66,_0x4cbd00={},_0xff2db6){for(const {isAnchor:_0x4b1ae9,cellHeight:_0x87cc1f,cellWidth:_0x2bb1d0}of _0xff2db6['createTableWalker'](_0x3cee66,{'includeAllSlots':!0x0,..._0x4cbd00}))if(!_0x4b1ae9||0x1!=_0x87cc1f||0x1!=_0x2bb1d0)return!0x1;return!0x0;}class Dt extends _0x248004{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x6dae65=this['editor']['plugins']['get']('TrackChangesEditing');_0x6dae65['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x6dae65['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x6dae65['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x6dae65['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x6dae65['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x6dae65['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xd388f,_0x259d76){const _0x3583f2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52959d=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x316628=_0x259d76['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xc067fb=_0x52959d['getColumnGroupElement'](_0x316628);let _0x4670b2=_0xc067fb?_0x52959d['getTableColumnsWidths'](_0xc067fb):null,_0x2311a3=_0x316628['getAttribute']('tableWidth')||null;const _0x3da517=_0x259d76['tableWidth']||_0x2311a3,_0x108493=_0x259d76['columnWidths']||_0x4670b2,_0x45471c=this['editor']['plugins']['get']('Users')['me'];for(const _0x1c79d5 of _0x3583f2['getSuggestions']()){const _0x5d00a6=_0x1c79d5['getContainedElement']();if('resizeTable'===_0x1c79d5['subType']&&_0x5d00a6===_0x316628){_0x1c79d5['author']!==_0x45471c&&_0x1c79d5['discard']();const _0x3d562f=_0x1c79d5['data']['commandParams'];_0x2311a3=_0x3d562f[0x0]['tableWidth'],_0x4670b2=_0x3d562f[0x0]['columnWidths'];break;}}_0xd388f({'table':_0x316628,'tableWidth':_0x3da517,'columnWidths':_0x108493}),_0x3583f2['markBlockFormat'](_0x316628,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2311a3,'columnWidths':_0x4670b2}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4e7a9f){if('formatBlock'!=_0x4e7a9f['type']&&'formatInline'!=_0x4e7a9f['type'])return;const {data:_0x5ae4e7}=_0x4e7a9f;if(_0x5ae4e7&&'resizeTable'===_0x5ae4e7['formatGroupId']){const _0x5426f8='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x5426f8)};}}}class Mt extends _0x248004{['afterInit'](){const _0x3e6d99=this['editor'];_0x3e6d99['plugins']['has']('Template')&&_0x3e6d99['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x248004{['afterInit'](){const _0x5cca08=this['editor'];if(!_0x5cca08['commands']['get']('insertTableOfContents'))return;_0x5cca08['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2c2533=_0x5cca08['plugins']['get']('TrackChangesEditing'),_0x5431e6=_0x5cca08['locale'];_0x2c2533['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4d09d4=>o(_0x5431e6,'ELEMENT_TABLE_OF_CONTENTS',_0x4d09d4));}}class Bt extends _0x248004{['afterInit'](){const _0x1d9e29=this['editor'];if(!_0x1d9e29['plugins']['has']('Title'))return;const _0x206771=_0x1d9e29['plugins']['get']('TrackChangesEditing');_0x206771['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1d9e29['locale'],'ELEMENT_TITLE')),_0x1d9e29['model']['document']['registerPostFixer'](_0x14da8a=>{let _0x2ed5d8=!0x1;const _0x474d7c=Array['from'](_0x1d9e29['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2da553,data:_0x3b9085}of _0x474d7c){const {group:_0x1893ec}=_0x206771['_splitMarkerName'](_0x2da553);if('suggestion'!==_0x1893ec||!_0x3b9085['newRange'])continue;const _0x3e6619=_0x3b9085['newRange'],_0x21f7ee=_0x3e6619['end']['nodeBefore'];if(!_0x21f7ee||!_0x21f7ee['is']('element','title-content'))continue;if(!_0x3e6619['start']['isTouching'](_0x3e6619['end']))continue;const _0x42d164=_0x1d9e29['model']['schema']['getNearestSelectionRange'](_0x3e6619['end'],'forward');if(_0x42d164&&_0x42d164['isCollapsed']){const _0x316b04=_0x14da8a['createRange'](_0x3e6619['start'],_0x42d164['start']);_0x316b04['isEqual'](_0x3e6619)||(_0x14da8a['updateMarker'](_0x2da553,{'range':_0x316b04}),_0x2ed5d8=!0x0);}_0x2ed5d8||(_0x14da8a['removeMarker'](_0x2da553),_0x2ed5d8=!0x0);}return _0x2ed5d8;});}}class Ot extends _0x248004{['afterInit'](){const _0x26f5cd=this['editor'],_0x1dcfb9=_0x26f5cd['plugins']['get']('TrackChangesEditing');_0x26f5cd['plugins']['has']('UndoEditing')&&(_0x1dcfb9['enableCommand']('undo'),_0x1dcfb9['enableCommand']('redo'));}}class Rt extends _0x248004{static get['requires'](){return[vt];}['afterInit'](){const _0x47b673=this['editor'];if(!_0x47b673['plugins']['has']('TableCaptionEditing'))return;_0x47b673['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x248004{['tableProperties'];['tableCellProperties'];constructor(_0xd089a){super(_0xd089a),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x4864d7=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x223d70 of this['tableProperties'])_0x4864d7['enableCommand'](_0x223d70,(_0x56ce1d,_0x563422)=>{const _0x472a8d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x223d70,[_0x472a8d],this['tableProperties'],'tableProperties',_0x56ce1d,_0x563422);});_0x4864d7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4864d7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4864d7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x50bfa3,_0x38f5c9)=>this['handleDiscardAction'](this['tableProperties'],_0x50bfa3,_0x38f5c9)),_0x4864d7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xa096b7 of this['tableCellProperties'])_0x4864d7['enableCommand'](_0xa096b7,(_0x448b43,_0x5455c8)=>{const _0x3a2356=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xa096b7,_0x3a2356,this['tableCellProperties'],'tableCellProperties',_0x448b43,_0x5455c8);});_0x4864d7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4864d7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4864d7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x30faf4,_0x30f636)=>this['handleDiscardAction'](this['tableCellProperties'],_0x30faf4,_0x30f636)),_0x4864d7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4864d7['descriptionFactory']['registerDescriptionCallback'](_0x5c4978=>this['handleSuggestionDescription'](_0x5c4978));}['_handlePropertyChange'](_0x166a5b,_0x2cd797,_0x1e6889,_0x2636c1,_0x54e159,_0xe0a653){const _0x4661ee=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xe0a653['batch'],()=>{for(const _0x4c4142 of _0x2cd797){if(this['_getSuggestion'](_0x4c4142,_0x2636c1))_0x54e159(_0xe0a653);else{const _0x38e397={};for(const _0x3681be of _0x1e6889){const _0x1260d3=_0x4c4142['getAttribute'](_0x3681be);void 0x0!==_0x1260d3&&(_0x38e397[_0x3681be]=_0x1260d3);}_0x54e159(_0xe0a653),_0x4661ee['markBlockFormat'](_0x4c4142,{'commandParams':[_0x38e397]},[],_0x2636c1);}}});}['handleDiscardAction'](_0x585e7a,_0x1fd502,_0x5ad303){const _0x52c57d=_0x1fd502[0x0]['start']['nodeAfter'],_0x2dff2d=_0x5ad303['commandParams'][0x0];this['editor']['model']['change'](_0x1bb4b7=>{for(const _0x165ddc of _0x585e7a)void 0x0!==_0x2dff2d[_0x165ddc]?_0x1bb4b7['setAttribute'](_0x165ddc,_0x2dff2d[_0x165ddc],_0x52c57d):_0x1bb4b7['removeAttribute'](_0x165ddc,_0x52c57d);});}['handleSuggestionDescription'](_0x56704a){if(_0x56704a['data'])switch(_0x56704a['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'](_0x3ec5e0,_0x3a53d9){const _0x3d9a37=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5dd29d of _0x3d9a37['getSuggestions']({'skipNotAttached':!0x0})){const _0x34ad5f=_0x5dd29d['getContainedElement']();if(_0x5dd29d['subType']===_0x3a53d9&&_0x34ad5f===_0x3ec5e0)return _0x5dd29d;}return null;}}const m='$elementName';class p extends _0x248004{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x5906bb,_0x2ea1b3,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,ye,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x36c752){super(_0x36c752),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3a731b,_0x2a13cc,_0x5080c3,_0x3fd7fd)=>{this['_model']['change'](()=>{for(const _0x163969 of[..._0x3fd7fd,..._0x5080c3])this['_model']['markers']['has'](_0x163969)&&_0x36c752['editing']['reconvertMarker'](_0x163969);});}),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']=_0x36c752['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(),_0x36c752['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x36c752['config']['get']('trackChanges.trackFormatChanges'),_0x36c752['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x36c752['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x36c752,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3a935f=this['editor'],_0x4e95f7=(_0xa951b4,_0x2decda)=>{if('attribute'!=_0xa951b4)return'ck-suggestion-marker-'+_0xa951b4;const _0x3e8fbc=_0x2decda['split']('|')[0x0];return this['_isBlockAttribute'](_0x3e8fbc)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3a935f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x110a70=>{const {id:_0x41f95e,authorId:_0x312c5f,type:_0x45ccf6,subType:_0x554300}=this['_splitMarkerName'](_0x110a70['markerName']),_0x19f73b=['ck-suggestion-marker',_0x4e95f7(_0x45ccf6,_0x554300)];let _0x47134a=0xbb8;return this['activeMarkers']['includes'](_0x110a70['markerName'])&&(_0x19f73b['push']('ck-suggestion-marker--active'),_0x47134a=0xbc2),'deletion'==_0x45ccf6&&(_0x47134a+=0x5),{'classes':_0x19f73b,'attributes':{'data-suggestion':_0x41f95e,'data-author-id':_0x312c5f},'priority':_0x47134a};}}),_0x3a935f['conversion']['for']('dataDowncast')['add'](_0x3c29e3=>{_0x3c29e3['on']('addMarker:suggestion',(_0x46b4ec,_0x1aa17a,_0x1a50d7)=>{if(!_0x1a50d7['options']['showSuggestionHighlights'])return;const _0x57a359=_0x1aa17a['item'];if(!_0x57a359)return;const _0x36d63d=_0x1a50d7['mapper']['toViewElement'](_0x57a359);_0x3a935f['model']['schema']['isObject'](_0x57a359)&&_0x36d63d&&!_0x36d63d['getCustomProperty']('widget')&&_0x36d63d['is']('containerElement')&&_0xfa3dbf(_0x36d63d,_0x1a50d7['writer']);},{'priority':'high'});}),_0x3a935f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xad4938,_0x383097)=>{if(!_0x383097['options']['showSuggestionHighlights'])return null;const {type:_0x1468ae,subType:_0x17a245}=this['_splitMarkerName'](_0xad4938['markerName']);return{'classes':['ck-suggestion-marker',_0x4e95f7(_0x1468ae,_0x17a245)],'priority':0xbb8};}});const _0xec75c7=({showActiveMarkers:_0x5ed687=!0x0,isAttributeSuggestion:_0x5962f2=!0x1}={})=>(_0x4ff28c,_0x509f7b,_0x1e1da0)=>{if(!_0x509f7b['item'])return;const {id:_0x550813,authorId:_0x2fd0ce}=this['_splitMarkerName'](_0x509f7b['markerName']);if(_0x5962f2){const _0x37b9e9=this['_suggestions']['get'](_0x550813),_0x1c63a8=this['_getAttributeKey'](_0x37b9e9);if(!this['_isBlockAttribute'](_0x1c63a8))return;}if(_0x509f7b['item']['is']('selection'))return void _0x1e1da0['consumable']['consume'](_0x509f7b['item'],_0x4ff28c['name']);const _0x245453=_0x1e1da0['mapper']['toViewElement'](_0x509f7b['item']);if(_0x509f7b['item']['is']('element')&&_0x3a935f['model']['schema']['isBlock'](_0x509f7b['item'])&&!_0x245453['getCustomProperty']('addHighlight')){_0x1e1da0['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x245453),_0x1e1da0['writer']['setAttribute']('data-suggestion',_0x550813,_0x245453),_0x1e1da0['writer']['setAttribute']('data-author-id',_0x2fd0ce,_0x245453),_0x1e1da0['mapper']['bindElementToMarker'](_0x245453,_0x509f7b['markerName']),_0x5ed687&&(this['activeMarkers']['includes'](_0x509f7b['markerName'])?_0x1e1da0['writer']['addClass']('ck-suggestion-marker--active',_0x245453):_0x1e1da0['writer']['removeClass']('ck-suggestion-marker--active',_0x245453));for(const _0x53d856 of _0x3a935f['model']['createRangeIn'](_0x509f7b['item'])['getItems']())_0x1e1da0['consumable']['consume'](_0x53d856,_0x4ff28c['name']);_0x1e1da0['consumable']['consume'](_0x509f7b['item'],_0x4ff28c['name']);}};_0x3a935f['conversion']['for']('dataDowncast')['add'](_0x33a922=>{_0x33a922['on']('addMarker:suggestion:formatBlock',(_0x425c61,_0x4c55ed,_0x3c860a)=>{_0x3c860a['options']['showSuggestionHighlights']&&_0xec75c7({'showActiveMarkers':!0x1})(_0x425c61,_0x4c55ed,_0x3c860a);},{'priority':'highest'});}),_0x3a935f['conversion']['for']('dataDowncast')['add'](_0x5bcee6=>{_0x5bcee6['on']('addMarker:suggestion:attribute',(_0x5dd5f7,_0x5633a1,_0x54a026)=>{_0x54a026['options']['showSuggestionHighlights']&&_0xec75c7({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5dd5f7,_0x5633a1,_0x54a026);},{'priority':'highest'});}),_0x3a935f['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x277198,_0x2f584a)=>_0x2f584a['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x277198['substr'](0xb)}}),_0x3a935f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5cbf6a,{writer:_0x320eb1})=>{let _0x569783='suggestion:'+_0x5cbf6a['getAttribute']('suggestion-type')+':'+_0x5cbf6a['getAttribute']('id');return _0x5cbf6a['getAttribute']('marker-count')&&(_0x569783+=':'+_0x5cbf6a['getAttribute']('marker-count')),_0x320eb1['createElement']('$marker',{'data-name':_0x569783});}}),_0x3a935f['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3a935f['conversion']['for']('editingDowncast')['add'](_0x5bc061=>{_0x5bc061['on']('addMarker:suggestion:formatBlock',_0xec75c7(),{'priority':'high'});}),_0x3a935f['conversion']['for']('editingDowncast')['add'](_0x451ddf=>{_0x451ddf['on']('addMarker:suggestion:attribute',_0xec75c7({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3a935f['conversion']['for']('editingDowncast')['add'](_0x316264=>{_0x316264['on']('removeMarker:suggestion:formatBlock',(_0x3b2d6e,_0x18e9da,_0x10b6ee)=>{const _0x470b51=_0x10b6ee['mapper']['markerNameToElements'](_0x18e9da['markerName']);if(_0x470b51){for(const _0x45f98f of _0x470b51)_0x45f98f['getCustomProperty']('addHighlight')||(_0x10b6ee['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x45f98f),_0x10b6ee['writer']['removeAttribute']('data-suggestion',_0x45f98f),_0x10b6ee['writer']['removeAttribute']('data-author-id',_0x45f98f),_0x10b6ee['mapper']['unbindElementFromMarkerName'](_0x45f98f,_0x18e9da['markerName']));}},{'priority':'high'});}),_0x3a935f['conversion']['for']('editingDowncast')['add'](_0x28fe80=>{_0x28fe80['on']('removeMarker:suggestion:attribute',(_0x5b82ee,_0x5c539e,_0x3d513f)=>{const _0x2ef522=_0x3d513f['mapper']['markerNameToElements'](_0x5c539e['markerName']);if(!_0x2ef522)return;const {id:_0x425042}=this['_splitMarkerName'](_0x5c539e['markerName']),_0x614d23=this['_suggestions']['get'](_0x425042),_0x488cc4=this['_getAttributeKey'](_0x614d23);if(this['_isBlockAttribute'](_0x488cc4)){for(const _0x4f150b of _0x2ef522)_0x4f150b['getCustomProperty']('addHighlight')||(_0x3d513f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4f150b),_0x3d513f['writer']['removeAttribute']('data-suggestion',_0x4f150b),_0x3d513f['writer']['removeAttribute']('data-author-id',_0x4f150b),_0x3d513f['mapper']['unbindElementFromMarkerName'](_0x4f150b,_0x5c539e['markerName']));}},{'priority':'high'});}),_0x3a935f['model']['document']['registerPostFixer'](_0x1cf8cd=>{let _0x1e4747=!0x1;const _0x4db031=Array['from'](_0x3a935f['model']['document']['differ']['getChangedMarkers']()),_0x3116b8=new Set();for(const {name:_0x15d320,data:_0x37c078}of _0x4db031){const {group:_0x457af6,type:_0x8e987,subType:_0x335b29,id:_0x3b0663}=this['_splitMarkerName'](_0x15d320);if('suggestion'!==_0x457af6)continue;const _0x247724=this['_suggestions']['get'](_0x3b0663);if(null!=_0x37c078['newRange']){'formatInline'==_0x8e987&&(_0x1e4747=_0x1e4747||Pt(_0x37c078['newRange'],_0x15d320,_0x1cf8cd,_0x3a935f['model']['schema']));const _0x514f8f='attribute'==_0x8e987&&this['_isBlockAttribute'](_0x335b29['split']('|')[0x0]);if(_0x37c078['newRange']['isCollapsed']||'$graveyard'==_0x37c078['newRange']['root']['rootName']||'formatBlock'==_0x8e987&&!Ft(_0x37c078['newRange'])||_0x514f8f&&!Ft(_0x37c078['newRange'])||'deletion'==_0x8e987&&!(!Vt(_0x1d6f92=_0x37c078['newRange'])&&!function(_0x3da6b3){return _0x3da6b3['start']['parent']==_0x3da6b3['end']['nodeBefore']&&_0x3da6b3['start']['isAtEnd'];}(_0x1d6f92)))_0x1cf8cd['removeMarker'](_0x15d320),_0x1e4747=!0x0;else{if(!_0x247724||!_0x247724['isInContent'])continue;if(_0x37c078['newRange']&&_0x37c078['oldRange']&&_0x37c078['newRange']['isEqual'](_0x37c078['oldRange']))continue;_0x3116b8['add'](_0x247724);}}}var _0x1d6f92;return _0x3116b8['size']>0x0&&(_0x1e4747=!!this['_joinWithAdjacentSuggestions'](_0x3116b8)||_0x1e4747),_0x1e4747;}),_0x3a935f['model']['document']['registerPostFixer'](_0x164015=>{let _0x3f8920=!0x1;for(const _0x4c21fd of _0x3a935f['model']['document']['differ']['getChanges']())if('insert'==_0x4c21fd['type'])for(const _0x261748 of this['_suggestions']['values']()){if(_0x261748['isMultiRange']||!_0x261748['isInContent'])continue;const _0x3c1005='formatBlock'==_0x261748['type'],_0x49541d=this['_getAttributeKey'](_0x261748),_0x5b15bd=_0x49541d&&this['_isBlockAttribute'](_0x49541d);if(!_0x3c1005&&!_0x5b15bd)continue;const _0x2167dd=_0x261748['getFirstRange']();if(_0x2167dd['start']['parent']!=_0x2167dd['end']['parent']&&!_0x2167dd['end']['isAtEnd']){const _0x17c551=_0x3a935f['model']['createPositionAt'](_0x2167dd['start']['nodeAfter'],'end'),_0x356d12=_0x3a935f['model']['createRange'](_0x2167dd['start'],_0x17c551);_0x164015['updateMarker'](_0x261748['getFirstMarker'](),{'range':_0x356d12}),_0x3f8920=!0x0;}}return _0x3f8920;}),_0x3a935f['model']['document']['registerPostFixer'](_0x153003=>this['_processAttributeChanges'](_0x153003)),_0x3a935f['model']['document']['registerPostFixer'](_0xa273b1=>!_0xa273b1['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xa273b1)),_0x3a935f['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3a935f['model']['document']['on']('change:data',(_0x266962,_0x319a4f)=>{if(!_0x319a4f['isLocal']||_0x319a4f['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x302e8f=_0x3a935f['model']['document']['differ']['getChanges']();if(0x0==_0x302e8f['length'])return;const _0x406a69=[],_0x3a7183=_0x302e8f['filter'](_0x3d6ee8=>'attribute'==_0x3d6ee8['type']),_0x336c23=_0x302e8f['filter'](_0x4fc9f7=>'insert'==_0x4fc9f7['type']&&'$text'!=_0x4fc9f7['name']);for(const _0x5399d5 of _0x3a7183)this['_isRegisteredAttribute'](_0x5399d5['attributeKey'])&&_0x406a69['push']({'key':_0x5399d5['attributeKey'],'newValue':_0x5399d5['attributeNewValue'],'oldValue':_0x5399d5['attributeOldValue'],'range':Lt(_0x5399d5['range'],_0x3a935f['model'])});for(const _0x51dcad of _0x336c23){if('rename'!=_0x51dcad['action']&&'refresh'!=_0x51dcad['action'])continue;const _0x525e39=Jt(_0x51dcad['position']['nodeAfter'],_0x3a935f['model']),_0x5f0507=_0x51dcad['before'];'rename'==_0x51dcad['action']&&_0x406a69['push']({'key':m,'newValue':_0x51dcad['name'],'oldValue':_0x5f0507['name'],'range':_0x525e39});for(const [_0x1ac01f,_0x3a5914]of _0x5f0507['attributes']){if(!this['_isRegisteredAttribute'](_0x1ac01f))continue;const _0x55286e=_0x51dcad['attributes']['get'](_0x1ac01f);_0x3a5914!==_0x55286e&&_0x406a69['push']({'key':_0x1ac01f,'newValue':_0x55286e,'oldValue':_0x3a5914,'range':_0x525e39});}for(const [_0x2d47fb,_0xf34783]of _0x51dcad['attributes'])this['_isRegisteredAttribute'](_0x2d47fb)&&(_0x5f0507['attributes']['has'](_0x2d47fb)||_0x406a69['push']({'key':_0x2d47fb,'newValue':_0xf34783,'oldValue':null,'range':_0x525e39}));}0x0!=_0x406a69['length']&&_0x3a935f['model']['enqueueChange'](_0x319a4f,_0x407a6e=>{const _0x24ee5d=_0x182257();for(const {range:_0x192fcd,key:_0x703a57,oldValue:_0x970f5d,newValue:_0x2acd11}of _0x406a69)this['markAttributeChange'](_0x192fcd,_0x703a57,_0x970f5d,_0x2acd11,{'groupId':_0x24ee5d});this['_reduceExistingSuggestions'](_0x407a6e,_0x406a69);});},{'priority':'lowest'}),_0x3a935f['model']['markers']['on']('update:suggestion',(_0x1bb692,_0x2509d0,_0x1cd056)=>{if(null==_0x1cd056){const {id:_0xe7f6d8}=this['_splitMarkerName'](_0x2509d0['name']),_0x5e75f7=this['_suggestions']['get'](_0xe7f6d8);_0x5e75f7&&_0x5e75f7['addMarkerName'](_0x2509d0['name']);}}),_0x3a935f['model']['document']['on']('change:data',()=>{const _0x2a2b63=Array['from'](_0x3a935f['model']['document']['differ']['getChangedMarkers']())['filter'](_0x15dbf3=>'suggestion'===this['_splitMarkerName'](_0x15dbf3['name'])['group']);if(0x0===_0x2a2b63['length'])return;_0x2a2b63['sort']((_0x58477c,_0x412ca4)=>{const _0x4816a1=_0x58477c['data']['oldRange'],_0x1456fb=_0x412ca4['data']['oldRange'];return null===_0x4816a1&&null===_0x1456fb?0x0:null===_0x4816a1&&null!==_0x1456fb?-0x1:null!==_0x4816a1&&null===_0x1456fb?0x1:_0x4816a1['start']['isBefore'](_0x1456fb['start'])?-0x1:0x1;});const _0x2a6489=new Set(),_0x2e51a5=new Set();for(const {name:_0x1c71b1,data:_0x124386}of _0x2a2b63){const {id:_0x3c66f8}=this['_splitMarkerName'](_0x1c71b1);if(null===_0x124386['oldRange']){const _0x3fc28c=this['_handleNewSuggestionMarker'](_0x1c71b1);_0x2e51a5['add'](_0x3fc28c);}else{const _0x32f535=this['_suggestions']['get'](_0x3c66f8);null!==_0x124386['newRange']||_0x32f535['isInContent']?(_0x2a6489['add'](_0x32f535['head']),_0x2e51a5['add'](_0x32f535)):this['_removeSuggestion'](_0x32f535);}}_0x2e51a5['size']>0x0&&this['_refreshSuggestionsChain'](_0x2e51a5);for(const _0x1ce957 of _0x2a6489)this['fire']('suggestionChanged',_0x1ce957);}),_0x3a935f['model']['on']('applyOperation',(_0x42ba64,_0xc4e12f)=>{const _0xd484fb=_0xc4e12f[0x0];if(!this['_suggestions']['size'])return;if(!_0xd484fb['isDocumentOperation'])return;if(_0xd484fb['batch']['isUndo']||!_0xd484fb['batch']['isLocal'])return;let _0x5074a2,_0xb8e96d;switch(_0xd484fb['type']){case'insert':_0x5074a2=_0x3a935f['model']['createPositionAt'](_0xd484fb['position']),_0xb8e96d=_0x5074a2['getShiftedBy'](_0xd484fb['howMany']);break;case'split':_0x5074a2=_0x3a935f['model']['createPositionAt'](_0xd484fb['splitPosition']),_0xb8e96d=_0x3a935f['model']['createPositionAt'](_0xd484fb['moveTargetPosition']);break;case'move':_0x5074a2=_0x3a935f['model']['createPositionAt'](_0xd484fb['targetPosition']),_0xb8e96d=_0x5074a2['getShiftedBy'](_0xd484fb['howMany']);break;default:return;}const _0x47a8fe=_0x3a935f['model']['createRange'](_0x5074a2,_0xb8e96d);_0x3a935f['model']['change'](()=>{for(const {suggestion:_0x35e20e,meta:_0x1d6df3}of this['_findSuggestions'](_0x47a8fe)){if(_0x35e20e['isMultiRange'])continue;if('formatInline'==_0x35e20e['type'])continue;const _0x56a461=this['_getAttributeKey'](_0x35e20e);if(_0x56a461&&this['_isBlockAttribute'](_0x56a461)&&'split'!=_0xd484fb['type'])continue;const _0x32a0d8=_0x35e20e['data']&&_0x35e20e['data']['multipleBlocks'];('formatBlock'!=_0x35e20e['type']||'split'==_0xd484fb['type']&&!_0x32a0d8)&&(_0x1d6df3['containsRangeInObject']||'insertion'==_0x35e20e['type']&&_0x1d6df3['isOwn']||_0x35e20e['getFirstRange']()['containsRange'](_0x47a8fe)&&this['_breakSuggestionMarker'](_0x35e20e,_0x5074a2,_0xb8e96d));}});},{'priority':'lowest'}),_0x3a935f['model']['on']('deleteContent',(_0x482840,_0x58800e)=>{const _0x28c1df=_0x58800e[0x0],_0x27911c=_0x58800e[0x1];if(_0x27911c&&_0x27911c['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x28c1df['isCollapsed'])return;const _0x4dbe5b=_0x3a935f['model']['schema'],{start:_0x3ee250,end:_0xaa000b}=_0x28c1df['getFirstRange'](),_0x567020=_0x3ee250['nodeAfter']&&_0x4dbe5b['isLimit'](_0x3ee250['nodeAfter'])?null:_0x4dbe5b['getNearestSelectionRange'](_0x3ee250,'forward'),_0x5a32f5=_0xaa000b['nodeBefore']&&_0x4dbe5b['isLimit'](_0xaa000b['nodeBefore'])?null:_0x4dbe5b['getNearestSelectionRange'](_0xaa000b,'backward'),_0x4d06b5=_0x3a935f['model']['createRange'](_0x567020?_0x567020['start']:_0x3ee250,_0x5a32f5?_0x5a32f5['end']:_0xaa000b);_0x3a935f['model']['change'](_0x27f9ae=>{this['markDeletion'](_0x4d06b5);const _0x2664a6=_0x3a935f['model']['schema']['getNearestSelectionRange'](_0x4d06b5['start']);_0x28c1df['is']('documentSelection')?_0x27f9ae['setSelection'](_0x2664a6):_0x28c1df['setTo'](_0x2664a6);}),_0x482840['stop']();},{'priority':_0x4bb7ca['normal']+0xa}),_0x3a935f['model']['on']('insertContent',(_0x5af8ee,_0x3ab103)=>{const _0x42c65c=_0x3ab103[_0x3ab103['length']-0x1];_0x42c65c&&_0x42c65c['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3a935f['model']['change'](()=>{let _0x4f202=_0x3a935f['model']['insertContent'](_0x3ab103[0x0],_0x3ab103[0x1],_0x3ab103[0x2],{'forceDefaultExecution':!0x0});if(!_0x4f202)return;_0x5af8ee['return']=_0x4f202['clone']();const _0x5a22bf=_0x4f202['end']['nodeBefore'],_0x3c8670=_0x3a935f['model']['schema'];_0x5a22bf&&_0x3c8670['isBlock'](_0x5a22bf)&&!_0x3c8670['isObject'](_0x5a22bf)&&(_0x4f202=_0x3a935f['model']['createRange'](_0x4f202['start'],_0x3a935f['model']['createPositionAt'](_0x5a22bf,'end'))),this['markInsertion'](_0x4f202);}),_0x5af8ee['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x451492=new O(_0x3a935f,this['_suggestions']);_0x3a935f['commands']['add']('acceptSuggestion',_0x451492),this['enableCommand']('acceptSuggestion');const _0x1499f5=new R(_0x3a935f,this['_suggestions']);_0x3a935f['commands']['add']('discardSuggestion',_0x1499f5),this['enableCommand']('discardSuggestion'),_0x3a935f['commands']['add']('acceptAllSuggestions',new x(_0x3a935f,_0x451492,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3a935f['commands']['add']('discardAllSuggestions',new x(_0x3a935f,_0x1499f5,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3a935f['commands']['add']('acceptSelectedSuggestions',new E(_0x3a935f,_0x451492,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3a935f['commands']['add']('discardSelectedSuggestions',new E(_0x3a935f,_0x1499f5,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x335de2=_0x3a935f['plugins']['get']('CommentsRepository');this['listenTo'](_0x335de2,'addComment',(_0x3b4768,{threadId:_0x3f0a30})=>{const _0x114573=this['_suggestions']['get'](_0x3f0a30);_0x114573&&_0x114573['commentThread']&&0x1===_0x114573['commentThread']['length']&&this['_updateSuggestionData'](_0x3f0a30,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x335de2,'removeComment',(_0x563b9b,{threadId:_0x494634})=>{const _0x59c7af=this['_suggestions']['get'](_0x494634);_0x59c7af&&_0x59c7af['commentThread']&&!_0x59c7af['commentThread']['length']&&this['_updateSuggestionData'](_0x494634,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1c01f8){const _0x3534d2=_0x42a06e([0x34,0x78,0x74,0x38,0x33,0x6f,0x4e,0x72,0x32,0x4d,0x44,0x69,0x71,0x76,0x4c,0x58,0x31,0x30,0x79,0x55,0x67,0x59,0x36,0x48,0x53,0x50,0x42,0x62,0x6a,0x54,0x5a,0x6c,0x41,0x65,0x73,0x6e,0x66,0x43,0x63,0x52,0x37,0x49,0x77,0x51,0x4a,0x47,0x56,0x64,0x46,0x6d,0x4f,0x7a,0x4b,0x35,0x57,0x45,0x75,0x6b,0x61,0x68,0x39,0x70]),_0x240c59=0x4f54e91a,_0x447410=0x4f53be82^_0x240c59,_0xb0a118=window[_0x42a06e([0x44,0x61,0x74,0x65])][_0x42a06e([0x6e,0x6f,0x77])](),_0x48378b=_0x1c01f8[_0x42a06e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x48a0f6=new window[(_0x42a06e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b9c45=>{_0x48378b[_0x42a06e([0x6f,0x6e,0x63,0x65])](_0x42a06e([0x72,0x65,0x61,0x64,0x79]),_0x3b9c45);}),_0x48bcc7={[_0x42a06e([0x6b,0x74,0x79])]:_0x42a06e([0x45,0x43]),[_0x42a06e([0x75,0x73,0x65])]:_0x42a06e([0x73,0x69,0x67]),[_0x42a06e([0x63,0x72,0x76])]:_0x42a06e([0x50,0x2d,0x32,0x35,0x36]),[_0x42a06e([0x78])]:_0x42a06e([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x42a06e([0x79])]:_0x42a06e([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x42a06e([0x61,0x6c,0x67])]:_0x42a06e([0x45,0x53,0x32,0x35,0x36])},_0x477039=_0x48378b[_0x42a06e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x42a06e([0x67,0x65,0x74])](_0x42a06e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4ff16b(){let _0x327539,_0x2b133a=null,_0x5e44e9=null;try{if(_0x477039==_0x42a06e([0x47,0x50,0x4c]))return _0x42a06e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x327539=_0x366fcf(),!_0x327539)return _0x42a06e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x327539[_0x42a06e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5e44e9=_0x5b0515(_0x327539[_0x42a06e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x327539[_0x42a06e([0x6a,0x74,0x69])])),await _0x349a61()?_0x5a9c1d()?_0x5d3328()?_0x42a06e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x28e7bf()?(_0x327539[_0x42a06e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42a06e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2b133a=_0x53eb88(_0x42a06e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x327539[_0x42a06e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42a06e([0x74,0x72,0x69,0x61,0x6c])&&(_0x2b133a=_0x53eb88(_0x42a06e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x327539[_0x42a06e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42a06e([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x2b133a=_0x53eb88(_0x42a06e([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2c80df()):_0x42a06e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x42a06e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x42a06e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x144eb8){return _0x42a06e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5d3328(){const _0x1cfafc=[_0x42a06e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x42a06e([0x74,0x72,0x69,0x61,0x6c])][_0x42a06e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x327539[_0x42a06e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xb0a118/0x3e8:0xe10*_0x447410;return _0x327539[_0x42a06e([0x65,0x78,0x70])]<_0x1cfafc;}function _0x5a9c1d(){const _0x88c714=_0x327539[_0x42a06e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x88c714&&(!!_0x88c714[_0x42a06e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42a06e([0x2a]))||(!!_0x88c714[_0x42a06e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42a06e([0x54,0x43]))||!(!_0x88c714[_0x42a06e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42a06e([0x52,0x54,0x43]))||!_0x54844f())));}function _0x28e7bf(){const _0x4577f6=_0x327539[_0x42a06e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4577f6||0x0==_0x4577f6[_0x42a06e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x419c27}=new URL(window[_0x42a06e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4577f6[_0x42a06e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x419c27))return!0x0;const _0x3e7447=_0x419c27[_0x42a06e([0x73,0x70,0x6c,0x69,0x74])](_0x42a06e([0x2e]));return _0x4577f6[_0x42a06e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c458a=>_0x1c458a[_0x42a06e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42a06e([0x2a])))[_0x42a06e([0x6d,0x61,0x70])](_0x25ab04=>_0x25ab04[_0x42a06e([0x73,0x70,0x6c,0x69,0x74])](_0x42a06e([0x2e])))[_0x42a06e([0x73,0x6f,0x6d,0x65])](_0x2cccce=>_0x3e7447[_0x42a06e([0x65,0x76,0x65,0x72,0x79])]((_0x2b186b,_0xe88f20)=>_0x2cccce[_0xe88f20]===_0x2b186b||_0x2cccce[_0xe88f20]===_0x42a06e([0x2a])));}function _0x2c80df(){return _0x2b133a&&_0x5e44e9?new window[(_0x42a06e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x42f426,_0xa95bc6)=>{_0x2b133a[_0x42a06e([0x74,0x68,0x65,0x6e])](_0x42f426,_0xa95bc6),_0x5e44e9[_0x42a06e([0x74,0x68,0x65,0x6e])](_0x3b0cf4=>{_0x3b0cf4!=_0x42a06e([0x56,0x61,0x6c,0x69,0x64])&&_0x42f426(_0x3b0cf4);},_0xa95bc6);}):_0x2b133a||_0x5e44e9||_0x42a06e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5b0515(_0x49153d,_0x7f735f){return new window[(_0x42a06e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55c4f5=>{if(_0x14b1a9())return _0x55c4f5(_0x42a06e([0x56,0x61,0x6c,0x69,0x64]));_0x2ff2b3(),_0x48378b[_0x42a06e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x42a06e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5d5623=!0x1;const _0x5ca3a4=_0x182257();function _0x6edbae(_0x4c8f0d){return!!_0x4c8f0d&&(typeof _0x4c8f0d===_0x42a06e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4c8f0d===_0x42a06e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4c8f0d[_0x42a06e([0x74,0x68,0x65,0x6e])]===_0x42a06e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4c8f0d[_0x42a06e([0x63,0x61,0x74,0x63,0x68])]===_0x42a06e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5581e6(_0x58303e){_0x41210c(_0x58303e)[_0x42a06e([0x74,0x68,0x65,0x6e])](_0x2fdaf1=>{if(!_0x2fdaf1||_0x2fdaf1[_0x42a06e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x42a06e([0x6f,0x6b]))return _0x42a06e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5ae023(_0xea9035(_0x5ca3a4+_0x7f735f))!=_0x2fdaf1[_0x42a06e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x42a06e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x42a06e([0x56,0x61,0x6c,0x69,0x64]);})[_0x42a06e([0x74,0x68,0x65,0x6e])](_0x9a7aa3=>(_0x338ba4(),_0x9a7aa3),()=>{const _0xeace80=_0x356417();return null==_0xeace80?(_0x338ba4(),_0x42a06e([0x56,0x61,0x6c,0x69,0x64])):_0x42a06e(_0xb0a118-_0xeace80>(0x6b586d1a^_0x240c59)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x42a06e([0x74,0x68,0x65,0x6e])](_0x55c4f5)[_0x42a06e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x55c4f5(_0x42a06e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1722f0=0x4f62079a^_0x240c59;function _0x338ba4(){const _0x192730=_0x42a06e([0x6c,0x6c,0x63,0x74,0x2d])+_0x5ae023(_0xea9035(_0x49153d)),_0x201c10=_0x3c28b6(_0x5ae023(window[_0x42a06e([0x4d,0x61,0x74,0x68])][_0x42a06e([0x63,0x65,0x69,0x6c])](_0xb0a118/_0x1722f0)));window[_0x42a06e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42a06e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x192730,_0x201c10);}function _0x356417(){const _0x5bae98=_0x42a06e([0x6c,0x6c,0x63,0x74,0x2d])+_0x5ae023(_0xea9035(_0x49153d)),_0x209246=window[_0x42a06e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42a06e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5bae98);return _0x209246?window[_0x42a06e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c28b6(_0x209246),0x10)*_0x1722f0:null;}function _0x41210c(_0x4bccfb){return new window[(_0x42a06e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x291a64,_0x52f228)=>{_0x4bccfb[_0x42a06e([0x74,0x68,0x65,0x6e])](_0x291a64,_0x52f228),window[_0x42a06e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x52f228,0x4f553dda^_0x240c59);});}}_0x48378b[_0x42a06e([0x6f,0x6e])](_0x42a06e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x564aa5,_0x22ffea)=>{if(_0x22ffea[0x0]!=_0x49153d)return _0x55c4f5(_0x42a06e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x22ffea[0x1]={..._0x22ffea[0x1],[_0x42a06e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5ca3a4};},{[_0x42a06e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42a06e([0x68,0x69,0x67,0x68])}),_0x48378b[_0x42a06e([0x6f,0x6e])](_0x42a06e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4167b4=>{_0x6edbae(_0x4167b4[_0x42a06e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5d5623=!0x0,_0x5581e6(_0x4167b4[_0x42a06e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x42a06e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42a06e([0x6c,0x6f,0x77])}),_0x48a0f6[_0x42a06e([0x74,0x68,0x65,0x6e])](()=>{_0x5d5623||_0x55c4f5(_0x42a06e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x14b1a9(){return _0x48378b[_0x42a06e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42a06e([0x76,0x69,0x65,0x77])][_0x42a06e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x42a06e([0x61,0x75,0x74,0x6f]);}function _0x2ff2b3(){_0x48378b[_0x42a06e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42a06e([0x76,0x69,0x65,0x77])][_0x42a06e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x42a06e([0x61,0x75,0x74,0x6f]);}}function _0x53eb88(_0x338e74){const _0x310478=[new window[(_0x42a06e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45073e=>setTimeout(_0x45073e,0x4f5dd7d6^_0x240c59)),_0x48a0f6[_0x42a06e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x42a06e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5357ce=>{let _0x5eb08e=0x0;_0x48378b[_0x42a06e([0x6d,0x6f,0x64,0x65,0x6c])][_0x42a06e([0x6f,0x6e])](_0x42a06e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2a72ab,_0x3e4f49)=>{_0x3e4f49[0x0][_0x42a06e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5eb08e++,_0x5eb08e==(0x4f54e8e2^_0x240c59)&&(_0x5357ce(),_0x2a72ab[_0x42a06e([0x6f,0x66,0x66])]());});}))];return window[_0x42a06e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x42a06e([0x72,0x61,0x63,0x65])](_0x310478)[_0x42a06e([0x74,0x68,0x65,0x6e])](()=>_0x338e74);}async function _0x47059a(){await _0x48a0f6,_0x48378b[_0x42a06e([0x6d,0x6f,0x64,0x65,0x6c])][_0x42a06e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x568c0b,_0x48378b[_0x42a06e([0x6d,0x6f,0x64,0x65,0x6c])][_0x42a06e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x568c0b,_0x48378b[_0x42a06e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x42a06e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x54844f(){return _0x1a4513(_0x42a06e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x179b18(_0x42a06e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x42a06e([0x73,0x74,0x61,0x74,0x65])]==_0x42a06e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x76e883(_0x4393ba){const _0x3c30c0=_0x506820();_0x48378b[_0x3c30c0]=_0x42a06e([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4393ba,_0x4393ba!=_0x42a06e([0x56,0x61,0x6c,0x69,0x64])&&_0x47059a();}function _0x506820(){const _0x321321=window[_0x42a06e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x42a06e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x42a06e([0x6e,0x6f,0x77])]())[_0x42a06e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x42a06e([0x2e]),'');let _0x2f44cb=_0x42a06e([0x78]);for(let _0x8c650=0x0;_0x8c650<_0x321321[_0x42a06e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x8c650+=0x2){let _0x25da8d=window[_0x42a06e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x321321[_0x42a06e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8c650,_0x8c650+0x2));_0x25da8d>=_0x3534d2[_0x42a06e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x25da8d-=_0x3534d2[_0x42a06e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2f44cb+=_0x3534d2[_0x25da8d];}return _0x2f44cb;}function _0x366fcf(){const _0x3a514e=_0x477039[_0x42a06e([0x73,0x70,0x6c,0x69,0x74])](_0x42a06e([0x2e]));if(0x3!=_0x3a514e[_0x42a06e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x42c485(_0x3a514e[0x1]);function _0x42c485(_0x77ef9b){const _0x3fc972=_0x20325c(_0x77ef9b);return _0x3fc972&&_0x548083()?_0x3fc972:null;function _0x548083(){const _0x13ad4d=_0x3fc972[_0x42a06e([0x6a,0x74,0x69])],_0x48854f=window[_0x42a06e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13ad4d[_0x42a06e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x13ad4d[_0x42a06e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x547c11={..._0x3fc972,[_0x42a06e([0x6a,0x74,0x69])]:_0x13ad4d[_0x42a06e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x13ad4d[_0x42a06e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x547c11[_0x42a06e([0x76,0x63])],_0xea9035(_0x547c11)==_0x48854f;}}}async function _0x349a61(){let _0x1826ec=!0x0;try{const _0x216c97=_0x477039[_0x42a06e([0x73,0x70,0x6c,0x69,0x74])](_0x42a06e([0x2e])),[_0x5c6698,_0x3b9ec3,_0x4d40ad]=_0x216c97;return _0x11dfd5(_0x5c6698),await _0x319a93(_0x5c6698,_0x3b9ec3,_0x4d40ad),_0x1826ec;}catch(_0x20301e){return!0x1;}function _0x11dfd5(_0x59693d){const _0x2e3504=_0x20325c(_0x59693d);_0x2e3504&&_0x2e3504[_0x42a06e([0x61,0x6c,0x67])]==_0x42a06e([0x45,0x53,0x32,0x35,0x36])||(_0x1826ec=!0x1);}async function _0x319a93(_0x4cdbad,_0x248265,_0x276b16){const _0x18997f=window[_0x42a06e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x42a06e([0x66,0x72,0x6f,0x6d])](_0x152581(_0x276b16),_0x542669=>_0x542669[_0x42a06e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x149fc5=new window[(_0x42a06e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x42a06e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4cdbad+_0x42a06e([0x2e])+_0x248265),_0x5a5873=window[_0x42a06e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x42a06e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5a5873)return;const _0x522eeb=await _0x5a5873[_0x42a06e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x42a06e([0x6a,0x77,0x6b]),_0x48bcc7,{[_0x42a06e([0x6e,0x61,0x6d,0x65])]:_0x42a06e([0x45,0x43,0x44,0x53,0x41]),[_0x42a06e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x42a06e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x42a06e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5a5873[_0x42a06e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x42a06e([0x6e,0x61,0x6d,0x65])]:_0x42a06e([0x45,0x43,0x44,0x53,0x41]),[_0x42a06e([0x68,0x61,0x73,0x68])]:{[_0x42a06e([0x6e,0x61,0x6d,0x65])]:_0x42a06e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x522eeb,_0x18997f,_0x149fc5)||(_0x1826ec=!0x1);}}function _0x20325c(_0x5d1945){return _0x5d1945[_0x42a06e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x42a06e([0x65,0x79]))?JSON[_0x42a06e([0x70,0x61,0x72,0x73,0x65])](_0x152581(_0x5d1945)):null;}function _0x152581(_0xdc0d60){return window[_0x42a06e([0x61,0x74,0x6f,0x62])](_0xdc0d60[_0x42a06e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x42a06e([0x2b]))[_0x42a06e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x42a06e([0x2f])));}function _0xea9035(_0x4e201b){let _0x494bdd=0x1505;function _0x2a815b(_0x4719ed){for(let _0x1616b8=0x0;_0x1616b8<_0x4719ed[_0x42a06e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1616b8++){const _0x4f2526=_0x4719ed[_0x42a06e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1616b8);_0x494bdd=(_0x494bdd<<0x5)+_0x494bdd+_0x4f2526,_0x494bdd&=_0x494bdd;}}function _0x35fd24(_0x48f7e4){Array[_0x42a06e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x48f7e4)?_0x48f7e4[_0x42a06e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x35fd24):_0x48f7e4&&typeof _0x48f7e4==_0x42a06e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x42a06e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x48f7e4)[_0x42a06e([0x73,0x6f,0x72,0x74])]()[_0x42a06e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x46cbb8,_0xcba29a])=>{_0x2a815b(_0x46cbb8),_0x35fd24(_0xcba29a);}):_0x2a815b(window[_0x42a06e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x48f7e4));}return _0x35fd24(_0x4e201b),_0x494bdd>>>0x0;}function _0x5ae023(_0x2c3494){return _0x2c3494[_0x42a06e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x42a06e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x42a06e([0x30]));}function _0x3c28b6(_0x3812af){return _0x3812af[_0x42a06e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x42a06e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x42a06e([0x6a,0x6f,0x69,0x6e])]('');}function _0x1a4513(_0x2f6fed){return _0x48378b[_0x42a06e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x42a06e([0x68,0x61,0x73])](_0x2f6fed);}function _0x179b18(_0x104b37){return _0x48378b[_0x42a06e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x42a06e([0x67,0x65,0x74])](_0x104b37);}function _0x568c0b(){}function _0x42a06e(_0x2ff6ef){return _0x2ff6ef['map'](_0x3bf189=>String['fromCharCode'](_0x3bf189))['join']('');}_0x76e883(await _0x4ff16b());}(this);}set['adapter'](_0x469e94){if(this['_adapter'])throw new _0x2ae157('track-changes-adapter-already-set',this);this['_adapter']=_0x469e94;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1e662b=!0x1,toJSON:_0x562b50=!0x1}={}){const _0x860bd9=[];for(const _0x5c2c28 of this['_suggestions']['values']())_0x1e662b&&!_0x5c2c28['isInContent']||_0x860bd9['push'](_0x5c2c28);return _0x562b50?_0x860bd9['map'](_0x1df26f=>_0x1df26f['toJSON']()):_0x860bd9;}['getSuggestion'](_0x2427c7){const _0x52152d=this['_suggestions']['get'](_0x2427c7);if(!_0x52152d)throw new _0x2ae157('track-changes-suggestion-not-found',this);return _0x52152d;}['hasSuggestion'](_0x32de29){return this['_suggestions']['has'](_0x32de29);}['addSuggestionData'](_0x3a43a9){const {authorId:_0x148dce,id:_0x3d8908,attributes:_0xb8789b}=_0x3a43a9,[_0x2e324d,_0x55049c]=_0x3a43a9['type']['split'](':'),_0x2197c5=this['_suggestions']['get'](_0x3d8908)||this['_createSuggestion'](_0x2e324d,_0x55049c,_0x3d8908,_0x148dce,_0xb8789b);if(this['_addThreadToSuggestion'](_0x2197c5),this['_checkSuggestionCorrectness'](_0x2197c5,_0x2e324d,_0x55049c||null,_0x148dce),_0x2197c5['createdAt']=_0x3a43a9['createdAt'],_0x2197c5['_isDataLoaded']=!0x0,_0xb8789b&&_0xb8789b['@external']){const _0x1dbe48=_0xb8789b['@external'],_0x3fe33b=this['_getExternalAuthor'](_0x1dbe48['authorName']);_0x2197c5['authoredAt']=_0x1dbe48['createdAt'],_0x2197c5['author']=_0x3fe33b,_0x2197c5['isExternal']=!0x0;}else _0x2197c5['authoredAt']=_0x3a43a9['createdAt'];switch(_0x3a43a9['data']&&(_0x2197c5['data']=_0x3a43a9['data']),_0x3a43a9['attributes']&&(_0x2197c5['attributes']=_0x3a43a9['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2197c5['_saved']=!0x0),this['_suggestionState']['get'](_0x2197c5)){case'notReady':this['_suggestionState']['set'](_0x2197c5,'dataReady');break;case'markerReady':_0x2197c5['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2197c5])),this['_refreshSuggestionsChain'](new Set([_0x2197c5])),this['_suggestionState']['set'](_0x2197c5,'ready'),this['fire']('suggestionLoaded',_0x2197c5)):this['_suggestionState']['set'](_0x2197c5,'removed');}return _0x2197c5;}['acceptSuggestion'](_0x103500){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x574026 of _0x103500['getAllAdjacentSuggestions']())_0x574026['accept']();});});}['discardSuggestion'](_0x1b2be8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1aef88 of _0x1b2be8['getAllAdjacentSuggestions']())_0x1aef88['discard']();});});}['enableCommand'](_0x5e1493,_0x11d436){const _0x49a49c=this['editor']['commands']['get'](_0x5e1493);if(!_0x49a49c)throw new _0x2ae157('track-changes-command-not-found',this,{'commandName':_0x5e1493});if(this['_enabledCommands']['has'](_0x49a49c))throw new _0x2ae157('track-changes-enable-command-twice',this,{'commandName':_0x5e1493});this['_enabledCommands']['add'](_0x49a49c),_0x11d436&&_0x49a49c['on']('execute',(_0x2caa39,_0x50693f)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x50693f['length']>0x0&&_0x50693f[_0x50693f['length']-0x1]&&_0x50693f[_0x50693f['length']-0x1]['forceDefaultExecution']?_0x50693f['pop']():(_0x2caa39['return']=_0x11d436((..._0xa1a2e5)=>_0x49a49c['execute'](..._0xa1a2e5,{'forceDefaultExecution':!0x0}),..._0x50693f),_0x2caa39['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3829f4){let _0x218d5c,_0x7d97f8;const _0x3fc379=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x218d5c=_0x3829f4();}catch(_0x3d3560){_0x7d97f8=_0x3d3560;}return _0x3fc379||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x7d97f8&&_0x2ae157['rethrowUnexpectedError'](_0x7d97f8,this),_0x218d5c;}['markInsertion'](_0x52e33a,_0x5250c3=null,_0x186a6d={}){if(_0x52e33a['isCollapsed'])return null;const _0x444510=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3c0970,meta:_0x3e9919}of this['_findSuggestions'](_0x52e33a,'insertion'))if(_0x3e9919['isOwn']){if(!_0x3e9919['isNextTo']){if(_0x3e9919['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x3c0970,_0x186a6d))continue;return _0x3c0970;}if(zt(_0x3c0970,_0x186a6d))return _0x3c0970;this['_breakSuggestionMarker'](_0x3c0970,_0x52e33a['start'],_0x52e33a['end']);break;}if(_0x5250c3==_0x3c0970['subType']&&zt(_0x3c0970,_0x186a6d)){const _0x2a6f93=_0x3c0970['getFirstRange']();return _0x2a6f93['start']['isEqual'](_0x52e33a['end'])?this['_setSuggestionRange'](_0x3c0970,this['_model']['createRange'](_0x52e33a['start'],_0x2a6f93['end'])):this['_setSuggestionRange'](_0x3c0970,this['_model']['createRange'](_0x2a6f93['start'],_0x52e33a['end'])),_0x3c0970;}}const _0x2dc230=_0x182257(),_0x194d8c=_0x444510['id'],_0x2f154f=_0x5250c3?'insertion:'+_0x5250c3:'insertion',_0x2831af=this['_setSuggestionData']({'id':_0x2dc230,'type':_0x2f154f,'createdAt':new Date(),'authorId':_0x194d8c,'attributes':_0x186a6d});return this['_addSuggestionMarker'](_0x2f154f,_0x2dc230,_0x194d8c,_0x52e33a),_0x2831af;}['markMultiRangeInsertion'](_0x5bbb6b,_0x376d8d='multi',_0x4e94a5={}){const _0x292d04=this['editor']['plugins']['get']('Users')['me'],_0x546ca8=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x376d8d,'join');for(const _0x5eaeef of this['getSuggestions']())if(_0x5eaeef['author']['id']==_0x292d04['id']&&'insertion'==_0x5eaeef['type']&&_0x5eaeef['subType']==_0x376d8d&&zt(_0x5eaeef,_0x4e94a5)&&(_0x546ca8(_0x5eaeef['getRanges'](),_0x5bbb6b)||_0x546ca8(_0x5bbb6b,_0x5eaeef['getRanges']()))){for(const _0x1f032f of _0x5bbb6b)_0x5eaeef['addRange'](_0x1f032f);return _0x5eaeef;}for(const {suggestion:_0xd1190d,meta:_0x1d3af4}of this['_findSuggestions'](_0x5bbb6b,'insertion')){if(!_0x1d3af4['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1d3af4['containsRangeInObject'])continue;if(!zt(_0xd1190d,_0x4e94a5))continue;let _0x392f6d=!0x0;for(const _0x2681cf of _0xd1190d['getRanges']())for(const _0x3e2a9d of _0x5bbb6b)if(!_0x2681cf['containsRange'](_0x3e2a9d)){_0x392f6d=!0x1;break;}if(_0x392f6d)return _0xd1190d;}const _0x5c0163=_0x182257(),_0x35bd31=_0x292d04['id'],_0xd9d390='insertion:'+_0x376d8d,_0x1d1919=this['_setSuggestionData']({'id':_0x5c0163,'type':_0xd9d390,'createdAt':new Date(),'authorId':_0x35bd31,'attributes':_0x4e94a5});for(const _0x29e869 of _0x5bbb6b)this['_addSuggestionMarker'](_0xd9d390,_0x5c0163,_0x35bd31,_0x29e869,u['getMultiRangeId']());return _0x1d1919;}['markInlineFormat'](_0x39e873,_0xd24bee,_0x16c5c5=null,_0xdbbbab={}){if(_0x16c5c5=_0x16c5c5||Gt(_0xd24bee),_0x39e873['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x434129=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x16c5c5,'accept');return this['forceDefaultExecution'](()=>_0x434129([_0x39e873],_0xd24bee,_0xdbbbab)),null;}const _0xcda95b=this['editor']['plugins']['get']('Users')['me'],_0x26e4fa=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2b15e0,meta:_0x210eb8}of this['_findSuggestions'](_0x39e873,'insertion'))_0x210eb8['isOwn']&&!_0x210eb8['isInsideObject']&&_0x26e4fa['push'](..._0x2b15e0['getRanges']());}const _0x580f3a=function(_0x3e852c,_0x58d7a5){const _0x242aec=[];for(const _0x1eb66d of _0x58d7a5){const _0x1a658c=_0x3e852c['getIntersection'](_0x1eb66d);_0x1a658c&&_0x242aec['push'](_0x1a658c);}return _0x242aec;}(_0x39e873,_0x26e4fa),_0x4ede2a=function(_0x2df8d6,_0x3ca6d7){const _0x1dd24e=[_0x2df8d6];for(const _0x2a0dfa of _0x3ca6d7){let _0x1514c7=0x0;for(;_0x1514c7<_0x1dd24e['length'];){const _0x9c2cbc=_0x1dd24e[_0x1514c7]['getDifference'](_0x2a0dfa);_0x1dd24e['splice'](_0x1514c7,0x1,..._0x9c2cbc),_0x1514c7+=_0x9c2cbc['length'];}}return _0x1dd24e;}(_0x39e873,_0x26e4fa);_0x580f3a['length']&&this['_model']['change'](()=>{for(const _0x432e4e of _0x580f3a){const _0x2357d5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x16c5c5,'accept');this['forceDefaultExecution'](()=>_0x2357d5([_0x432e4e],_0xd24bee,_0xdbbbab));}});for(const _0x325d25 of _0x4ede2a){let _0x5852b7=null,_0x317bb1=_0x325d25['start'],_0x3440d8=_0x325d25['end'];for(const {suggestion:_0x37038d,meta:_0x6ad991}of this['_findSuggestions'](_0x325d25,'formatInline')){if(!_0x6ad991['isOwn'])continue;if(_0x37038d['subType']!=_0x16c5c5)continue;if(!zt(_0x37038d,_0xdbbbab))continue;const _0x581f48=_0x37038d['getFirstRange']();if(_0x581f48['containsRange'](_0x325d25,!0x0))return null;_0x317bb1=_0x317bb1['isBefore'](_0x581f48['start'])?_0x317bb1:_0x581f48['start'],_0x3440d8=_0x3440d8['isAfter'](_0x581f48['end'])?_0x3440d8:_0x581f48['end'],_0x5852b7?_0x581f48['start']['isBefore'](_0x5852b7['getFirstRange']()['start'])?(_0x5852b7['removeMarkers'](),_0x5852b7=_0x37038d):_0x37038d['removeMarkers']():_0x5852b7=_0x37038d;}const _0x181680=this['_model']['createRange'](_0x317bb1,_0x3440d8);if(_0x5852b7)this['_setSuggestionRange'](_0x5852b7,_0x181680);else{const _0x201ffd=_0x182257(),_0x9afd6b=_0xcda95b['id'];this['_setSuggestionData']({'id':_0x201ffd,'type':'formatInline:'+_0x16c5c5,'data':_0xd24bee,'createdAt':new Date(),'authorId':_0x9afd6b,'attributes':_0xdbbbab}),this['_addSuggestionMarker']('formatInline:'+_0x16c5c5,_0x201ffd,_0x9afd6b,_0x181680);}}return null;}['markBlockFormat'](_0x4135ba,_0x37c285,_0x4cca9a=[],_0xa0f468=null,_0x282c3d={}){_0x37c285['formatGroupId']||(_0x37c285['formatGroupId']=_0x37c285['commandName']),_0x37c285['multipleBlocks']=_0x4135ba['is']('range'),_0xa0f468=_0xa0f468||Gt(_0x37c285);const _0x480173=_0x4cca9a['map'](_0x12951b=>Jt(_0x12951b,this['_model'])),_0x2236e1=_0x4135ba['is']('range')?_0x4135ba:Jt(_0x4135ba,this['_model']);if('never'===this['_trackFormatChanges']){const _0x9860e6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xa0f468,'accept');return this['forceDefaultExecution'](()=>_0x9860e6([_0x2236e1],_0x37c285,_0x282c3d)),null;}_0x480173['push'](_0x2236e1);let _0x65e7b8=!0x0;for(const _0x5f0d63 of _0x480173)if(!this['_rangeIsInLocalUserInsertion'](_0x5f0d63)){_0x65e7b8=!0x1;break;}if(_0x65e7b8&&'always'!==this['_trackFormatChanges']){const _0x2adfd9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xa0f468,'accept');return this['forceDefaultExecution'](()=>_0x2adfd9([_0x2236e1],_0x37c285,_0x282c3d)),null;}let _0x56bc0c=null,_0x976b9=_0x2236e1['start'],_0x3ddce1=_0x2236e1['end'];for(const {suggestion:_0x53d31d,meta:_0x56d3b6}of this['_findSuggestions'](_0x2236e1,'formatBlock')){if(!_0x56d3b6['isOwn'])continue;if(_0x56d3b6['isNextTo']||_0x56d3b6['containsRangeInObject']||_0x56d3b6['isInsideObject'])continue;if(_0x53d31d['data']['formatGroupId']!=_0x37c285['formatGroupId'])continue;if(!zt(_0x53d31d,_0x282c3d))continue;const _0x5d5fe0=_0x53d31d['getFirstRange']();if(_0x53d31d['subType']==_0xa0f468){if(_0x5d5fe0['containsRange'](_0x2236e1,!0x0))return null;_0x976b9=_0x976b9['isBefore'](_0x5d5fe0['start'])?_0x976b9:_0x5d5fe0['start'],_0x3ddce1=_0x3ddce1['isAfter'](_0x5d5fe0['end'])?_0x3ddce1:_0x5d5fe0['end'],_0x56bc0c?_0x5d5fe0['start']['isBefore'](_0x56bc0c['getFirstRange']()['start'])?(_0x56bc0c['removeMarkers'](),_0x56bc0c=_0x53d31d):_0x53d31d['removeMarkers']():_0x56bc0c=_0x53d31d;}else{const _0x1c2704=_0x2236e1['getIntersection'](_0x5d5fe0);this['_cutOutSuggestionMarker'](_0x53d31d,_0x1c2704);}}const _0x323927=this['editor']['plugins']['get']('Users')['me'],_0x4348ad=_0x182257(),_0x464176=_0x323927['id'];if(_0x56bc0c)return this['_setSuggestionRange'](_0x56bc0c,this['_model']['createRange'](_0x976b9,_0x3ddce1)),_0x56bc0c;{const _0x57f010=this['_setSuggestionData']({'id':_0x4348ad,'type':'formatBlock:'+_0xa0f468,'data':_0x37c285,'createdAt':new Date(),'authorId':_0x464176,'attributes':_0x282c3d});return this['_addSuggestionMarker']('formatBlock:'+_0xa0f468,_0x4348ad,_0x464176,this['_model']['createRange'](_0x976b9,_0x3ddce1)),_0x57f010;}}['markMultiRangeBlockFormat'](_0x205b28,_0x3778fb,_0x4a5279=[],_0x138eca=null,_0x2c2025={}){_0x3778fb['formatGroupId']||(_0x3778fb['formatGroupId']=_0x3778fb['commandName']);const _0x1f3906=_0x205b28[0x0];_0x3778fb['multipleBlocks']=_0x1f3906['is']('range'),_0x138eca=_0x138eca||Gt(_0x3778fb);const _0x16fdb0=_0x4a5279['map'](_0x293e43=>Jt(_0x293e43,this['_model'])),_0x347d6e=_0x1f3906['is']('range')?_0x205b28:_0x205b28['map'](_0x25ec30=>Jt(_0x25ec30,this['_model']));if('never'===this['_trackFormatChanges']){const _0x4fe0a4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x138eca,'accept');return this['forceDefaultExecution'](()=>_0x4fe0a4(_0x347d6e,_0x3778fb,_0x2c2025)),null;}_0x16fdb0['push'](..._0x347d6e);let _0x181203=!0x0;for(const _0x43e169 of _0x16fdb0)if(!this['_rangeIsInLocalUserInsertion'](_0x43e169)){_0x181203=!0x1;break;}if(_0x181203&&'always'!==this['_trackFormatChanges']){const _0x10fa10=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x138eca,'accept');return this['forceDefaultExecution'](()=>_0x10fa10(_0x347d6e,_0x3778fb,_0x2c2025)),null;}const _0x13baac=this['editor']['plugins']['get']('Users')['me'];for(const _0x4c8705 of this['getSuggestions']()){if(_0x4c8705['author']['id']!=_0x13baac['id'])continue;if('formatBlock'!=_0x4c8705['type']||_0x4c8705['data']['formatGroupId']!=_0x3778fb['formatGroupId'])continue;if(!zt(_0x4c8705,_0x2c2025))continue;const _0x445e3a=_0x4c8705['subType']==_0x138eca;for(let _0x561644=0x0;_0x561644<_0x347d6e['length'];_0x561644++){const _0x342ed1=_0x347d6e[_0x561644];for(const _0x328d91 of _0x4c8705['getMarkers']()){const _0x2be544=_0x328d91['getRange']();if(_0x342ed1['isEqual'](_0x2be544)){_0x445e3a?(_0x347d6e['splice'](_0x561644,0x1),_0x561644--):_0x4c8705['removeMarker'](_0x328d91['name']);break;}}}}if(0x0==_0x347d6e['length'])return null;const _0x592b77=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x138eca,'join');for(const _0x3e595d of this['getSuggestions']())if(_0x3e595d['author']['id']==_0x13baac['id']&&'formatBlock'==_0x3e595d['type']&&_0x3e595d['data']['formatGroupId']==_0x3778fb['formatGroupId']&&_0x3e595d['subType']==_0x138eca&&zt(_0x3e595d,_0x2c2025)&&(_0x592b77(_0x3e595d['getRanges'](),_0x347d6e)||_0x592b77(_0x347d6e,_0x3e595d['getRanges']()))){for(const _0x4f8b11 of _0x347d6e)_0x3e595d['addRange'](_0x4f8b11);return _0x3e595d;}const _0x4ac76b=_0x182257(),_0x59b4c6=_0x13baac['id'],_0x78dc09='formatBlock:'+_0x138eca,_0x47e4c5=this['_setSuggestionData']({'id':_0x4ac76b,'type':_0x78dc09,'data':_0x3778fb,'createdAt':new Date(),'authorId':_0x59b4c6,'attributes':_0x2c2025});for(const _0x5a9ed1 of _0x347d6e)this['_addSuggestionMarker'](_0x78dc09,_0x4ac76b,_0x59b4c6,_0x5a9ed1,u['getMultiRangeId']());return _0x47e4c5;}['markDeletion'](_0x43811e,_0x241312=null,_0x52fb11={}){if(_0x43811e['isCollapsed'])return null;const _0x2bf3d2=this['editor']['plugins']['get']('Users')['me'],_0xaa279c=new _0x117350(_0x43811e['start'],_0x43811e['end']);for(const {suggestion:_0x23a772,meta:_0x2fc72d}of this['_findSuggestions'](_0xaa279c,'insertion'))if(_0x2fc72d['isOwn']&&!_0x2fc72d['isNextTo']){if(_0x23a772['isMultiRange']){const _0x5bd2d9=_0x23a772['getRanges']()['filter'](_0x58230d=>'$graveyard'!=_0x58230d['root']['rootName']);_0x5bd2d9['every'](_0x3f9808=>_0xaa279c['containsRange'](_0x3f9808,!0x0))&&_0x23a772['discard']();if(_0x5bd2d9['some'](_0x39350a=>_0x39350a['containsRange'](_0xaa279c,!0x0))){const _0x58cc21=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x241312,'accept');return this['forceDefaultExecution'](()=>_0x58cc21([_0xaa279c],null,_0x52fb11)),null;}}else{const _0x876359=_0xaa279c['getIntersection'](_0x23a772['getFirstRange']());null!==_0x876359&&_0x23a772['_onDiscard']([_0x876359],null,_0x52fb11);}}if(_0xaa279c['detach'](),_0xaa279c['isCollapsed']||'$graveyard'==_0xaa279c['root']['rootName'])return null;let _0x2af4c9=null,_0x131efe=_0xaa279c['start'],_0x3d84c2=_0xaa279c['end'];const _0x4b65af=this['_findSuggestions'](_0xaa279c,'deletion');for(const {suggestion:_0x2a7f67,meta:_0x3d942a}of _0x4b65af){const _0xb4afc=this['_model']['createRange'](_0x131efe,_0x3d84c2);if(_0x3d942a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3d942a['containsRangeInObject']&&!_0x3d942a['isInsideObject'])){if(_0x2a7f67['isMultiRange']){if(!zt(_0x2a7f67,_0x52fb11))continue;let _0x40c46f=!0x0;for(const _0x1de521 of _0x2a7f67['getRanges']()){if(_0x1de521['containsRange'](_0xb4afc,!0x0))return _0x2a7f67;_0xb4afc['containsRange'](_0x1de521)||(_0x40c46f=!0x1);}_0x40c46f&&_0x2a7f67['discard']();}else{const _0x471bb6=_0x2a7f67['getFirstRange']();if(_0x471bb6['containsRange'](_0xb4afc,!0x0))return _0x2a7f67;if(!zt(_0x2a7f67,_0x52fb11)){_0xb4afc['containsRange'](_0x471bb6)?_0x2a7f67['removeMarkers']():_0x471bb6['containsPosition'](_0x131efe)?_0x131efe=_0x471bb6['end']:_0x471bb6['containsPosition'](_0x3d84c2)&&(_0x3d84c2=_0x471bb6['start']);continue;}_0x131efe=_0x131efe['isBefore'](_0x471bb6['start'])?_0x131efe:_0x471bb6['start'],_0x3d84c2=_0x3d84c2['isAfter'](_0x471bb6['end'])?_0x3d84c2:_0x471bb6['end'],_0x52fb11=Object['assign']({},_0x2a7f67['attributes']),_0x2af4c9?_0x471bb6['start']['isBefore'](_0x2af4c9['getFirstRange']()['start'])?(_0x2af4c9['removeMarkers'](),_0x2af4c9=_0x2a7f67):_0x2a7f67['removeMarkers']():_0x2af4c9=_0x2a7f67;}}}if(_0x2af4c9)return this['_setSuggestionRange'](_0x2af4c9,this['_model']['createRange'](_0x131efe,_0x3d84c2)),_0x2af4c9;{const _0x1150ad=_0x182257(),_0x48ba92=this['_model']['createRange'](_0x131efe,_0x3d84c2),_0xc58fc1=_0x2bf3d2['id'],_0x40ccaa=_0x241312?'deletion:'+_0x241312:'deletion',_0xe89be2=this['_setSuggestionData']({'id':_0x1150ad,'type':_0x40ccaa,'createdAt':new Date(),'authorId':_0xc58fc1,'attributes':_0x52fb11});return this['_addSuggestionMarker'](_0x40ccaa,_0x1150ad,_0xc58fc1,_0x48ba92),_0xe89be2;}}['markMultiRangeDeletion'](_0x3f7752,_0x47e21f='multi',_0x3c117c={}){const _0x2c9706=this['editor']['plugins']['get']('Users')['me'],_0x49faa2=_0x3f7752['map'](_0x184c2c=>new _0x117350(_0x184c2c['start'],_0x184c2c['end'])),_0x42737a=new Set();for(const {suggestion:_0x4e45d6,meta:_0x484838}of this['_findSuggestions'](_0x49faa2,'insertion'))_0x484838['isOwn']&&!_0x484838['isNextTo']&&_0x42737a['add'](_0x4e45d6);for(const _0x59fec9 of _0x42737a)if(_0x59fec9['isMultiRange']){const _0x25c588=_0x59fec9['getRanges']();(!_0x59fec9['attributes']||!_0x59fec9['attributes']['skipNestingCheck'])&&(_0x25c588['every'](_0x11843d=>_0x49faa2['some'](_0xedfbe5=>_0xedfbe5['containsRange'](_0x11843d,!0x0)))&&_0x59fec9['discard']());if(_0x49faa2['every'](_0x94ed01=>_0x25c588['some'](_0x106237=>_0x106237['containsRange'](_0x94ed01,!0x0)))){const _0x99109a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x47e21f,'accept');return this['forceDefaultExecution'](()=>_0x99109a(_0x3f7752,null,_0x3c117c)),null;}}else{const _0x36c369=_0x59fec9['getFirstRange']();_0x49faa2['some'](_0x5abaeb=>_0x5abaeb['containsRange'](_0x36c369,!0x0))&&_0x59fec9['discard']();if(_0x49faa2['every'](_0x1ca64d=>_0x36c369['containsRange'](_0x1ca64d,!0x0))){const _0x20136e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x47e21f,'accept');return this['forceDefaultExecution'](()=>_0x20136e(_0x49faa2,null,_0x3c117c)),null;}}const _0x2ecd7f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x47e21f,'join');let _0x399e3a=null;for(const _0xdc1bdc of this['getSuggestions']())if(_0xdc1bdc['author']['id']==_0x2c9706['id']&&_0xdc1bdc['isInContent']&&'deletion'==_0xdc1bdc['type']&&_0xdc1bdc['subType']==_0x47e21f&&zt(_0xdc1bdc,_0x3c117c)&&(_0x2ecd7f(_0xdc1bdc['getRanges'](),_0x49faa2)||_0x2ecd7f(_0x49faa2,_0xdc1bdc['getRanges']()))){if(_0x399e3a){if(_0xdc1bdc['commentThread']&&_0xdc1bdc['commentThread']['length'])continue;for(const _0x390b8a of _0xdc1bdc['getRanges']())_0x399e3a['isIntersectingWithRange'](_0x390b8a)||_0x399e3a['addRange'](_0x390b8a);_0xdc1bdc['removeMarkers']();}else{_0x399e3a=_0xdc1bdc;for(const _0x4fb8a1 of _0x49faa2)_0xdc1bdc['isIntersectingWithRange'](_0x4fb8a1)||_0xdc1bdc['addRange'](_0x4fb8a1);}}if(_0x399e3a)return _0x399e3a;_0x42737a['clear']();for(const {suggestion:_0x4a1ae6,meta:_0x491526}of this['_findSuggestions'](_0x49faa2,'deletion'))_0x491526['isOwn']&&(this['_mergeNestedSuggestions']||!_0x491526['containsRangeInObject']&&!_0x491526['isInsideObject'])&&zt(_0x4a1ae6,_0x3c117c)&&_0x42737a['add'](_0x4a1ae6);for(const _0xaefc44 of _0x42737a){const _0x1b7571=_0xaefc44['getRanges']();if(!_0x3c117c||!_0x3c117c['skipNestingCheck']){if(_0x49faa2['every'](_0x2c141b=>_0x1b7571['some'](_0x7e364d=>_0x7e364d['containsRange'](_0x2c141b,!0x0))))return _0xaefc44;}(!_0xaefc44['attributes']||!_0xaefc44['attributes']['skipNestingCheck'])&&(_0x1b7571['every'](_0x395133=>_0x49faa2['some'](_0x1dde52=>_0x1dde52['containsRange'](_0x395133,!0x0)))&&_0xaefc44['discard']());}const _0x14a1f3=_0x182257(),_0x38c980=_0x2c9706['id'],_0x48937f='deletion:'+_0x47e21f,_0xc3a19d=this['_setSuggestionData']({'id':_0x14a1f3,'type':_0x48937f,'createdAt':new Date(),'authorId':_0x38c980,'attributes':_0x3c117c});for(const _0x2a33b2 of _0x49faa2)_0x2a33b2['detach'](),_0x2a33b2['isCollapsed']||'$graveyard'==_0x2a33b2['root']['rootName']||this['_addSuggestionMarker'](_0x48937f,_0x14a1f3,_0x38c980,_0x2a33b2,u['getMultiRangeId']());return _0xc3a19d;}['markAttributeChange'](_0xefde9a,_0x6d67fb,_0x141112,_0x18372c,_0x1de81f){if(_0xefde9a['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x176ea5=this['editor']['plugins']['get']('Users')['me']['id'],_0x1a2a4e=Array['from'](this['_suggestions']['values']())['filter'](_0x2b61df=>'attribute'==_0x2b61df['type']&&_0x2b61df['data']['key']==_0x6d67fb&&_0x2b61df['isIntersectingWithRange'](_0xefde9a));if('default'===this['_trackFormatChanges']){const _0x4a4e33=this['_findSuggestions'](_0xefde9a,'insertion')['filter'](({meta:_0x192f15})=>_0x192f15['isOwn']&&!_0x192f15['isInsideObject']&&!_0x192f15['isNextTo'])['map'](({suggestion:_0x17903b})=>_0x17903b);_0x1a2a4e['unshift'](..._0x4a4e33);}const _0x3dfee1=new Map([[_0xefde9a,_0x141112]]);for(const _0x1a1816 of _0x1a2a4e){const _0x2f323a='attribute'==_0x1a1816['type']?_0x1a1816['data']['oldValue']:void 0x0,_0x2d3f1b=_0x1a1816['getFirstRange'](),_0x58228f=Array['from'](_0x3dfee1['keys']())['find'](_0x15acc8=>_0x15acc8['isIntersecting'](_0x2d3f1b));if(!_0x58228f)continue;const _0x229acf=_0x58228f['getDifference'](_0x2d3f1b);this['_isBlockAttribute'](_0x6d67fb)&&'insertion'==_0x1a1816['type']&&0x0!=_0x229acf['length']||(_0x3dfee1['delete'](_0x58228f),_0x229acf['forEach'](_0x426209=>{_0x3dfee1['set'](_0x426209,_0x141112);}),'insertion'!=_0x1a1816['type']&&_0x2f323a!=_0x18372c&&_0x3dfee1['set'](_0x58228f['getIntersection'](_0x2d3f1b),_0x2f323a));}const _0x39d7c7=[];for(const [_0x1cdc5e,_0x12c9cb]of _0x3dfee1){const _0x3c4c31=_0x182257(),_0x375e2={'key':_0x6d67fb,'oldValue':_0x12c9cb,'newValue':_0x18372c};_0x6d67fb['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':_0x6d67fb});const _0x3dfdf0=('attribute:'+(_0x6d67fb+'|'+Gt({'newValue':_0x18372c})))['substring'](0x0,0x3c),_0x3f1110=this['_setSuggestionData']({'id':_0x3c4c31,'type':_0x3dfdf0,'data':_0x375e2,'createdAt':new Date(),'authorId':_0x176ea5,'attributes':_0x1de81f});_0x39d7c7['push'](_0x3f1110),this['_addSuggestionMarker'](_0x3dfdf0,_0x3c4c31,_0x176ea5,_0x1cdc5e);}return _0x39d7c7;}['enableDefaultAttributesIntegration'](_0x3f3d33){this['enableCommand'](_0x3f3d33,(_0x24323c,..._0x32c7f5)=>{this['_recordAttributeChanges'](()=>{_0x24323c(..._0x32c7f5);});});}['registerBlockAttribute'](_0x1120e0){this['_blockAttributeKeys']['add'](_0x1120e0);}['registerInlineAttribute'](_0x2acd1f){this['_inlineAttributeKeys']['add'](_0x2acd1f);}['_getAttributeKey'](_0x202464){return'attribute'==_0x202464['type']?_0x202464['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2ca391,_0x1a050c){const _0x3b355f=_0x2ca391['getFirstMarker']();this['_model']['change'](_0xb488ba=>{_0xb488ba['updateMarker'](_0x3b355f,{'range':_0x1a050c});});}['_addThreadToSuggestion'](_0x3a8614){const _0x6fcd36=_0x3a8614['id'],_0xfe8481=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x6fcd36)||this['_commentsRepository']['addCommentThread']({'channelId':_0xfe8481,'threadId':_0x6fcd36,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3a887a=this['_commentsRepository']['getCommentThread'](_0x6fcd36);_0x3a887a['unbind']('isRemovable'),_0x3a887a['isRemovable']=!0x1,_0x3a8614['commentThread']=_0x3a887a;}['_checkSuggestionCorrectness'](_0x2579e2,_0x333f13,_0x52312f,_0x4896ab){if(_0x2579e2['type']!=_0x333f13||_0x2579e2['subType']!=_0x52312f||_0x2579e2['creator']['id']!=_0x4896ab)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2ae157('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5f3988,_0x3ec81a){const _0x1c0237=_0x5f3988['getFirstRange']();if(_0x3ec81a['isEqual'](_0x1c0237))_0x5f3988['removeMarkers']();else{if(_0x1c0237['containsRange'](_0x3ec81a)){const _0x2f3d8f=this['_model']['createPositionAt'](_0x3ec81a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5f3988,this['_model']['createRange'](_0x1c0237['start'],_0x2f3d8f));const _0x575831=_0x182257(),_0x4150d1=_0x5f3988['creator']['id'],_0x1ec8b4=_0x5f3988['type']+':'+_0x5f3988['subType'];this['_setSuggestionData']({'id':_0x575831,'type':_0x1ec8b4,'createdAt':new Date(),'authorId':_0x4150d1,'data':_0x5f3988['data'],'attributes':_0x5f3988['attributes']});const _0x1350dc=this['_model']['createPositionAt'](_0x3ec81a['end']['parent'],'after'),_0x2efc9d=this['_model']['createRange'](_0x1350dc,_0x1c0237['end']);this['_addSuggestionMarker'](_0x1ec8b4,_0x575831,_0x4150d1,_0x2efc9d);}else{if(_0x1c0237['containsPosition'](_0x3ec81a['start'])){const _0x6578ec=this['_model']['createPositionAt'](_0x3ec81a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5f3988,this['_model']['createRange'](_0x1c0237['start'],_0x6578ec));}else{const _0x54d641=this['_model']['createPositionAt'](_0x3ec81a['end']['parent'],'after');this['_setSuggestionRange'](_0x5f3988,this['_model']['createRange'](_0x54d641,_0x1c0237['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2063b7){for(const {suggestion:_0x468622,meta:_0x4920f2}of this['_findSuggestions'](_0x2063b7,'insertion')){if(!_0x4920f2['isOwn'])continue;const _0x3bc37b=_0x468622['getRanges']();for(const _0x4f112b of _0x3bc37b)if(!_0x2063b7['getDifference'](_0x4f112b)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x552846){const _0x1bc5d0=this['editor']['plugins']['get']('Users')['getUser'](_0x552846);if(!_0x1bc5d0)throw new _0x2ae157('track-changes-user-not-found',this);return _0x1bc5d0;}['_getExternalAuthor'](_0x122eda){const _0xc095a7=this['editor']['plugins']['get']('Users'),_0x1d7a93=_0xd7b3e2('external:'+_0x122eda),_0x471e23=_0xc095a7['getUser'](_0x1d7a93);return _0x471e23||_0xc095a7['addUser']({'id':_0x1d7a93,'name':_0x122eda});}['_createSuggestion'](_0x4f98de,_0x5334f5,_0x2a4b0c,_0x9669b4,_0x5d28ad){const _0x3c1e47=this['_getAuthorFromId'](_0x9669b4),_0x561ea3=this['_suggestionFactory']['buildSuggestion'](_0x4f98de,_0x5334f5,_0x2a4b0c,_0x3c1e47,_0x5d28ad,_0x139494=>{this['_updateSuggestionData'](_0x2a4b0c,{'attributes':_0x139494});const _0x45591b=this['getSuggestion'](_0x2a4b0c);this['_joinWithAdjacentSuggestions'](new Set([_0x45591b])),this['_refreshSuggestionsChain'](new Set([_0x45591b]));});return this['listenTo'](_0x561ea3,'accept',()=>{this['_updateSuggestionData'](_0x2a4b0c,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x561ea3,'discard',()=>{this['_updateSuggestionData'](_0x2a4b0c,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2a4b0c,_0x561ea3),this['_suggestionState']['set'](_0x561ea3,'notReady'),_0x561ea3;}['_splitMarkerName'](_0x4b4c9c){const _0x5383f2=_0x4b4c9c['split'](':');return{'group':_0x5383f2[0x0],'type':_0x5383f2[0x1],'subType':_0x5383f2['length']>=0x5?_0x5383f2[0x2]:null,'id':_0x5383f2['length']<0x5?_0x5383f2[0x2]:_0x5383f2[0x3],'authorId':_0x5383f2['length']<0x5?_0x5383f2[0x3]:_0x5383f2[0x4],'markerCount':0x6==_0x5383f2['length']?_0x5383f2[0x5]:null};}['_breakSuggestionMarker'](_0x2b18d1,_0x1a47a1,_0x4ab06c){const _0x636eec=_0x2b18d1['getFirstRange'](),_0x29cc11=_0x636eec['start'],_0x41c45d=_0x636eec['end'];this['_setSuggestionRange'](_0x2b18d1,this['_model']['createRange'](_0x29cc11,_0x1a47a1));const _0x2c5391=_0x182257(),_0x501868=_0x2b18d1['creator']['id'],_0x28d91a=_0x2b18d1['type']+(_0x2b18d1['subType']?':'+_0x2b18d1['subType']:'');this['_setSuggestionData']({'id':_0x2c5391,'type':_0x28d91a,'createdAt':new Date(),'authorId':_0x501868,'originalSuggestionId':_0x2b18d1['id'],'attributes':_0x2b18d1['attributes'],'data':_0x2b18d1['data']});const _0x5e982c=this['_getAttributeKey'](_0x2b18d1);('formatBlock'==_0x2b18d1['type']||_0x5e982c&&this['_isBlockAttribute'](_0x5e982c))&&(_0x4ab06c=this['_model']['createPositionBefore'](_0x4ab06c['parent'])),this['_addSuggestionMarker'](_0x28d91a,_0x2c5391,_0x501868,this['_model']['createRange'](_0x4ab06c,_0x41c45d));}['_findSuggestions'](_0x4a9949,_0x1c47ce=null){const _0x264f09=[],_0x579540=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4a9949)||(_0x4a9949=[_0x4a9949]);for(const _0x23ecb3 of this['getSuggestions']()){if(!_0x23ecb3['isInContent'])continue;if(_0x1c47ce&&_0x23ecb3['type']!=_0x1c47ce)continue;let _0x3cc5af=!0x1;for(const _0x4b9059 of _0x23ecb3['getRanges']()){for(const _0x4fa548 of _0x4a9949){const _0x1b7de9=_0x4fa548['start']['isEqual'](_0x4b9059['end'])||_0x4fa548['end']['isEqual'](_0x4b9059['start']);if(_0x1b7de9||_0x4fa548['getIntersection'](_0x4b9059)){const _0x316e5a=_0x4fa548['containsRange'](_0x4b9059)&&Ut(this['_model']['schema'],_0x4b9059['start'],_0x4fa548),_0x31efee=_0x4b9059['containsRange'](_0x4fa548)&&Ut(this['_model']['schema'],_0x4fa548['start'],_0x4b9059);_0x264f09['push']({'suggestion':_0x23ecb3,'meta':{'isOwn':_0x579540==_0x23ecb3['author'],'isNextTo':_0x1b7de9,'isInsideObject':_0x316e5a,'containsRangeInObject':_0x31efee}}),_0x3cc5af=!0x0;break;}}if(_0x3cc5af)break;}}return _0x264f09;}['_addSuggestionMarker'](_0x42154a,_0x39471d,_0x4275d4,_0x1dc776,_0x2cdd63){this['_model']['change'](_0x2fa955=>{let _0x316009='suggestion:'+_0x42154a+':'+_0x39471d+':'+_0x4275d4;_0x2cdd63&&(_0x316009=_0x316009+':'+_0x2cdd63),_0x2fa955['addMarker'](_0x316009,{'range':_0x1dc776,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3306d9){const _0x411f9d=_0x3306d9['previous'],_0xad921=_0x3306d9['next'];_0x3306d9['previous']=null,_0x3306d9['next']=null,null!=_0x411f9d&&_0x411f9d['next']==_0x3306d9&&(_0x411f9d['next']=_0xad921),null!=_0xad921&&_0xad921['previous']==_0x3306d9&&(_0xad921['previous']=_0x411f9d),'ready'==this['_suggestionState']['get'](_0x3306d9)&&(this['_suggestionState']['set'](_0x3306d9,'removed'),this['fire']('suggestionUnloaded',_0x3306d9,_0x411f9d,_0xad921));}['_setSuggestionData'](_0x410813){const _0x503e9f=_0x410813['id'],_0xa6d428=this['addSuggestionData'](_0x410813);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1382cd=this['editor']['plugins']['get']('PendingActions'),_0x1e318c=_0xa6d428['hasComments'],_0x12de7c=_0xa6d428['subType']?_0xa6d428['type']+':'+_0xa6d428['subType']:_0xa6d428['type'],_0x1531a4=this['editor']['locale'],_0x36ea75=_0x1382cd['add'](o(_0x1531a4,'PENDING_ACTION_SUGGESTION')),_0x99153f={'id':_0x503e9f,'type':_0x12de7c,'hasComments':_0x1e318c,'data':_0x410813['data']||null,'originalSuggestionId':_0x410813['originalSuggestionId']||null,'attributes':_0xa6d428['attributes']};this['_adapter']['addSuggestion'](_0x99153f)['then'](_0x4634df=>{_0xa6d428['_saved']=!0x0,_0x1382cd['remove'](_0x36ea75),_0x4634df&&_0x4634df['createdAt']&&(this['_suggestions']['get'](_0x503e9f)['createdAt']=_0x4634df['createdAt']);})['catch'](_0x55d3e3=>{throw _0x26e17f('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xa6d428['discard']();}),_0xa6d428['stopListening'](),this['_suggestions']['delete'](_0xa6d428['id']),this['_suggestionState']['delete'](_0xa6d428),_0x55d3e3;});}return _0xa6d428;}['_isBlockAttribute'](_0x47c8ad){return this['_blockAttributeKeys']['has'](_0x47c8ad);}['_updateSuggestionData'](_0x1c0d7b,_0x5d9486){const _0x3fdbed=this['editor']['plugins']['get']('PendingActions'),_0xb111ad=this['getSuggestion'](_0x1c0d7b);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xb111ad['_saved']){const _0x19ef0e=_0x3fdbed['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1c0d7b,_0x5d9486)['then'](()=>{_0x3fdbed['remove'](_0x19ef0e);});}else _0xb111ad['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1c0d7b,_0x5d9486);});}}['_getSuggestionData'](_0x52a0f2){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2ae157('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x52a0f2);}['_handleNewSuggestionMarker'](_0x238306){const {id:_0x3f84cd,type:_0x3039a7,subType:_0x50e923,authorId:_0x539e6a}=this['_splitMarkerName'](_0x238306),_0xe64895=this['_suggestions']['get'](_0x3f84cd)||this['_createSuggestion'](_0x3039a7,_0x50e923,_0x3f84cd,_0x539e6a,{});switch(this['_checkSuggestionCorrectness'](_0xe64895,_0x3039a7,_0x50e923,_0x539e6a),this['_suggestionState']['get'](_0xe64895)){case'notReady':this['_getSuggestionData'](_0x3f84cd)['then'](_0x38ae1e=>{let _0x1a9564=Promise['resolve']();_0x38ae1e['hasComments']&&(_0x1a9564=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3f84cd})),_0x1a9564['then'](()=>{this['addSuggestionData'](_0x38ae1e)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xe64895,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3f84cd,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xe64895,'ready'),this['fire']('suggestionLoaded',_0xe64895);break;case'ready':this['fire']('suggestionChanged',_0xe64895);}return _0xe64895['addMarkerName'](_0x238306),_0xe64895;}['_refreshSuggestionsChain'](_0x4a9c0e){const _0x1887fa=Array['from'](_0x4a9c0e),_0x31986d=_0x1887fa['filter'](_0x2ff915=>'attribute'==_0x2ff915['type']);this['_refreshAttributeSuggestionsChain'](_0x31986d);const _0x5c65c0=_0x1887fa['filter'](_0x1b17d4=>!_0x1b17d4['isMultiRange']&&'attribute'!=_0x1b17d4['type']),_0x36caf8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x590808=>!_0x590808['isMultiRange']&&'attribute'!=_0x590808['type']),_0x3d5a2b=_0x36caf8['filter'](_0xf6fd67=>!_0x4a9c0e['has'](_0xf6fd67)),_0x518779=new Map(_0x36caf8['map'](_0x7c05a7=>[_0x7c05a7,this['_suggestionFactory']['getSuggestionCallback'](_0x7c05a7['type'],_0x7c05a7['subType'],'chain')])),_0xbf2fd8=new Map(_0x36caf8['map'](_0x55abcc=>[_0x55abcc,_0x55abcc['getFirstRange']()])),_0x59510a=new Set(),_0x4b32da=new Set();for(let _0x354375=0x0;_0x354375<_0x5c65c0['length'];_0x354375++)_0x242e89(_0x5c65c0[_0x354375],_0x5c65c0,_0x354375+0x1);for(let _0x34f5a5=0x0;_0x34f5a5<_0x5c65c0['length'];_0x34f5a5++)_0x242e89(_0x5c65c0[_0x34f5a5],_0x3d5a2b,0x0);const _0x99a8b1=new Set();for(let _0x445d02=0x0;_0x445d02<_0x5c65c0['length'];_0x445d02++){const _0x1f2d6e=_0x5c65c0[_0x445d02];!_0x4b32da['has'](_0x1f2d6e)&&_0x1f2d6e['previous']&&(_0x99a8b1['add'](_0x1f2d6e['previous']),_0x1f2d6e['previous']['next']===_0x1f2d6e&&(_0x1f2d6e['previous']['next']=null),_0x1f2d6e['previous']=null),!_0x59510a['has'](_0x1f2d6e)&&_0x1f2d6e['next']&&(_0x99a8b1['add'](_0x1f2d6e['next']),_0x1f2d6e['next']['previous']===_0x1f2d6e&&(_0x1f2d6e['next']['previous']=null),_0x1f2d6e['next']=null);}function _0x242e89(_0x168ee5,_0x57587c,_0x31994d){for(let _0x145233=_0x31994d;_0x145233<_0x57587c['length'];_0x145233++){const _0x5b09c6=_0x15f24d(_0x168ee5,_0x57587c[_0x145233]);_0x5b09c6&&(_0x5b09c6[0x0]['next']=_0x5b09c6[0x1],_0x5b09c6[0x1]['previous']=_0x5b09c6[0x0],_0x59510a['add'](_0x5b09c6[0x0]),_0x4b32da['add'](_0x5b09c6[0x1]));}}function _0x15f24d(_0x467907,_0x4077ac){if(_0x467907['author']['id']!==_0x4077ac['author']['id'])return null;const _0x25a561=_0x518779['get'](_0x467907)(_0x467907,_0x4077ac,_0xbf2fd8['get'](_0x467907),_0xbf2fd8['get'](_0x4077ac));if(!_0x25a561)return null;return _0x518779['get'](_0x4077ac)(_0x467907,_0x4077ac,_0xbf2fd8['get'](_0x467907),_0xbf2fd8['get'](_0x4077ac))?_0x25a561[0x1]['commentThread']&&_0x25a561[0x1]['commentThread']['length']?null:_0x25a561:null;}_0x99a8b1['size']&&this['_refreshSuggestionsChain'](_0x99a8b1);}['_refreshAttributeSuggestionsChain'](_0x376d35){if(0x0==_0x376d35['length'])return;const _0x396514=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x407a40=>'attribute'==_0x407a40['type']&&_0x407a40['_isDataLoaded']),_0x23778a=[],_0x516c63=new Map();for(const _0x422d8b of _0x396514){const _0x5207c2=_0xd7b3e2(_0x422d8b['attributes']);_0x516c63['has'](_0x5207c2)||(_0x516c63['set'](_0x5207c2,_0x23778a['length']),_0x23778a['push']([]));const _0x548f08=_0x516c63['get'](_0x5207c2);_0x23778a[_0x548f08]['push'](_0x422d8b);}!(function(){_0x23778a['sort']((_0x546790,_0x12e41c)=>{const _0x5b3ded=_0x546790[0x0]['createdAt'],_0x283d85=_0x12e41c[0x0]['createdAt'];return _0x5b3ded==_0x283d85?_0x546790[0x0]['attributes']['groupId']<_0x12e41c[0x0]['attributes']['groupId']?-0x1:0x1:_0x5b3ded<_0x283d85?-0x1:0x1;});for(const _0x59391a of _0x23778a)_0x59391a['sort']((_0x384672,_0x2c351f)=>_0x384672['id']<_0x2c351f['id']?-0x1:0x1);}());for(let _0x892be8=0x0;_0x892be8<_0x23778a['length'];_0x892be8++){if(0x0==_0x23778a[_0x892be8]['length'])continue;const _0x495bc9=[];for(let _0x4e0aa2=_0x892be8+0x1;_0x4e0aa2<_0x23778a['length'];_0x4e0aa2++)0x0!=_0x23778a[_0x4e0aa2]['length']&&_0x1bdd7d(_0x23778a[_0x892be8],_0x23778a[_0x4e0aa2])&&_0x495bc9['push'](_0x4e0aa2);for(const _0x4d986b of _0x495bc9)_0x23778a[_0x892be8]=_0x23778a[_0x892be8]['concat'](_0x23778a[_0x4d986b]),_0x23778a[_0x4d986b]=[];}for(const _0x14b32b of _0x23778a)for(let _0x537b9e=0x0;_0x537b9e<_0x14b32b['length'];_0x537b9e++){const _0x4ae61d=_0x14b32b[_0x537b9e+0x1]||null;_0x14b32b[_0x537b9e]['next']!==_0x4ae61d&&(_0x14b32b[_0x537b9e]['next']=_0x4ae61d);}for(const _0x5316d0 of _0x23778a)for(let _0x164f8d=0x0;_0x164f8d<_0x5316d0['length'];_0x164f8d++){const _0x4f76a1=_0x5316d0[_0x164f8d-0x1]||null;_0x5316d0[_0x164f8d]['previous']!==_0x4f76a1&&(_0x5316d0[_0x164f8d]['previous']=_0x4f76a1);}function _0x1bdd7d(_0x8eb82f,_0x2a5211){if(_0x8eb82f[0x0]['attributes']['groupId']!==_0x2a5211[0x0]['attributes']['groupId']&&_0x8eb82f[0x0]['author']!==_0x2a5211[0x0]['author'])return!0x1;if(!function(_0x3204c1,_0x3857b7){if(!_0x3204c1['hasComments']&&!_0x3857b7['hasComments'])return!0x0;if(_0x3204c1['hasComments']&&_0x3857b7['hasComments'])return!0x1;if(_0x3204c1['hasComments']&&_0x3857b7['createdAt']<_0x3204c1['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3857b7['hasComments']&&_0x3204c1['createdAt']<_0x3857b7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x8eb82f[0x0],_0x2a5211[0x0]))return!0x1;const _0x406c56=xt(_0x8eb82f[0x0]['attributes'],'groupId'),_0xc6a9bb=xt(_0x2a5211[0x0]['attributes'],'groupId');if(!_0x5dbccb(_0x406c56,_0xc6a9bb))return!0x1;return!!_0x8eb82f['every'](_0x2a1bb7=>_0x2a5211['some'](_0x193ebc=>_0x2a1bb7['getFirstRange']()['isEqual'](_0x193ebc['getFirstRange']())))&&_0x2a5211['every'](_0x217b93=>_0x8eb82f['some'](_0x4075f0=>_0x217b93['getFirstRange']()['isEqual'](_0x4075f0['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2624ad){const _0x2125c2=Array['from'](_0x2624ad),_0x50696c=this['getSuggestions']({'skipNotAttached':!0x0}),_0x275e44=_0x50696c['filter'](_0x526def=>!_0x2624ad['has'](_0x526def)),_0x7838c1=new Map(_0x2125c2['map'](_0x19c1f8=>[_0x19c1f8,this['_suggestionFactory']['getSuggestionCallback'](_0x19c1f8['type'],_0x19c1f8['subType'],'join')])),_0x4c3577=new Map(_0x50696c['map'](_0x163b93=>[_0x163b93,_0x163b93['getRanges']()]));for(let _0x3ebb21=0x0;_0x3ebb21<_0x2125c2['length'];_0x3ebb21++){if(_0x4b73e5(this,_0x2125c2[_0x3ebb21],_0x2125c2,_0x3ebb21+0x1))return!0x0;}for(let _0x33d489=0x0;_0x33d489<_0x2125c2['length'];_0x33d489++){if(_0x4b73e5(this,_0x2125c2[_0x33d489],_0x275e44,0x0))return!0x0;}return!0x1;function _0x4b73e5(_0x1b53a3,_0x4697a6,_0x3e4870,_0x178711){for(let _0x2139b6=_0x178711;_0x2139b6<_0x3e4870['length'];_0x2139b6++){const _0x269676=_0x3e4870[_0x2139b6];if(_0x269676['type']!==_0x4697a6['type']||_0x269676['author']['id']!==_0x4697a6['author']['id']||_0x269676['subType']!==_0x4697a6['subType'])continue;if(!qt(_0x4697a6,_0x269676))continue;if('attribute'==_0x4697a6['type']&&_0x4697a6['data']['oldValue']!=_0x269676['data']['oldValue'])continue;if('attribute'==_0x4697a6['type']&&_0x1b53a3['_isBlockAttribute'](_0x4697a6['data']['key']))continue;if('formatBlock'==_0x4697a6['type']){const _0x2a5e45=_0x1b53a3['editor']['model'],_0xb2bac6=_0x4697a6['getContainedElement']();if(_0xb2bac6&&(_0x2a5e45['schema']['isObject'](_0xb2bac6)||_0x2a5e45['schema']['isLimit'](_0xb2bac6)))continue;}const _0x483db8=_0x7838c1['get'](_0x4697a6),_0x52a1ee=_0x4c3577['get'](_0x4697a6),_0x443e1e=_0x4c3577['get'](_0x269676),_0x30cf44=_0x4697a6['commentThread']&&_0x4697a6['commentThread']['length'],_0x5b72d3=_0x269676['commentThread']&&_0x269676['commentThread']['length'];if(!_0x30cf44&&_0x483db8(_0x443e1e,_0x52a1ee))return _0x1b53a3['_joinSuggestions'](_0x269676,_0x4697a6),_0x4c3577['delete'](_0x4697a6),!0x0;if(!_0x5b72d3&&_0x483db8(_0x52a1ee,_0x443e1e))return _0x1b53a3['_joinSuggestions'](_0x4697a6,_0x269676),_0x4c3577['delete'](_0x269676),!0x0;}return!0x1;}}['_joinSuggestions'](_0x500277,_0x58f2ea){if(_0x500277['isMultiRange']){for(const _0x328dd2 of _0x58f2ea['getRanges']())_0x500277['addRange'](_0x328dd2);}else{const _0x25f056=_0x58f2ea['getFirstRange']()['end'];this['_setSuggestionRange'](_0x500277,this['_model']['createRange'](_0x500277['getFirstRange']()['start'],_0x25f056));}_0x58f2ea['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3e7865,_0xdf8dfc,_0x5adee4){const _0x4993f9=_0x3e7865['startsWith']('format')||_0x3e7865['startsWith']('attribute')?'FORMATTING':_0x3e7865['toUpperCase']();return o(this['editor']['locale'],_0xdf8dfc+'_'+_0x4993f9+'_SUGGESTION_ANNOUNCEMENT',_0x5adee4);}['_initAriaMarkerChangeAnnouncements'](){const _0x35dc82=this['editor'];if(!_0x35dc82['ui'])return;const {ariaLiveAnnouncer:_0x107ead}=_0x35dc82['ui'];_0x5e7243(this['_model'],({left:_0x199175,entered:_0x33bdc7})=>{for(const _0x4c9a4a of _0x199175){const {group:_0x50d083,type:_0x3c322a}=this['_splitMarkerName'](_0x4c9a4a['name']);if('suggestion'===_0x50d083){_0x107ead['announce'](this['_getMarkerAnnouncementText'](_0x3c322a,'LEAVE'));break;}}for(const _0x740920 of _0x33bdc7){const {group:_0x26a30d,type:_0x529fcd}=this['_splitMarkerName'](_0x740920['name']);if('suggestion'===_0x26a30d){_0x107ead['announce'](this['_getMarkerAnnouncementText'](_0x529fcd,'ENTER',_0x2d45f9(_0x32dfcb)));break;}}});}['_processAttributeChanges'](_0x1f1e08){if(this['_recordAttributeSuggestions'])return!0x1;const _0x249056=this['editor'],_0x5ec184=_0x249056['model']['document']['differ']['getChanges']();if(0x0==_0x5ec184['length'])return!0x1;const _0x25e697=[],_0x5c461c=_0x5ec184['filter'](_0x128441=>'attribute'==_0x128441['type']),_0xf6d74d=_0x5ec184['filter'](_0x43fa53=>'insert'==_0x43fa53['type']&&'$text'!=_0x43fa53['name']),_0x41a7a0=_0x5ec184['filter'](_0x2c704d=>'remove'==_0x2c704d['type']&&'$text'!=_0x2c704d['name']);for(const _0x8e0035 of _0x5c461c)_0x25e697['push']({'key':_0x8e0035['attributeKey'],'newValue':_0x8e0035['attributeNewValue'],'oldValue':_0x8e0035['attributeOldValue'],'range':Lt(_0x8e0035['range'],_0x249056['model'])});for(const _0x953b3a of _0xf6d74d){const _0x1ac7af=_0x41a7a0['find'](_0x3d9204=>_0x3d9204['position']['isEqual'](_0x953b3a['position']));_0x1ac7af&&_0x25e697['push']({'key':m,'newValue':_0x953b3a['name'],'oldValue':_0x1ac7af['name'],'range':_0x249056['model']['createRangeOn'](_0x953b3a['position']['nodeAfter'])});}return 0x0!=_0x25e697['length']&&this['_reduceExistingSuggestions'](_0x1f1e08,_0x25e697);}['_processAttributeSuggestions'](_0x2c91ae){let _0x22d4d0=!0x1;const _0x1867be=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x50e5db=>_0x50e5db['data']['newRange']&&_0x50e5db['name']['startsWith']('suggestion:attribute:'));for(const _0x50fdcc of _0x1867be){const {subType:_0x3b1f1d,id:_0x1c8e3f}=this['_splitMarkerName'](_0x50fdcc['name']),_0x432e9c=_0x3b1f1d['split']('|')[0x0];for(const _0x5e3292 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5e3292['id']!=_0x1c8e3f&&'attribute'==_0x5e3292['type']&&_0x5e3292['data']&&_0x5e3292['data']['key']==_0x432e9c&&_0x5e3292['getFirstRange']()['isIntersecting'](_0x50fdcc['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5e3292,_0x50fdcc['data']['newRange'],_0x2c91ae),_0x22d4d0=!0x0);}return _0x22d4d0;}['_recordAttributeChanges'](_0x52d174){this['_recordAttributeSuggestions']=!0x0,_0x52d174();}['_isRegisteredAttribute'](_0xc2ad54){const _0x17930c=this['_isBlockAttribute'](_0xc2ad54),_0x58fa60=this['_inlineAttributeKeys']['has'](_0xc2ad54);return _0x17930c||_0x58fa60;}['_reduceExistingSuggestions'](_0x2f180e,_0x48e288){if(0x0==_0x48e288['length'])return!0x1;let _0x28482e=!0x1;for(const _0xffbd03 of _0x48e288){const _0x3842ba=this['_findSuggestions'](_0xffbd03['range'],'attribute')['filter'](_0x58eccc=>!_0x58eccc['meta']['isNextTo'])['map'](_0x4de535=>_0x4de535['suggestion']),_0x398984=_0xd7b3e2({'newValue':_0xffbd03['newValue']});_0x3842ba['filter'](_0x314a8d=>{const [_0x243427,_0x5ef269]=_0x314a8d['subType']['split']('|');return _0x243427==_0xffbd03['key']&&_0x5ef269!=_0x398984;})['forEach'](_0xe4a11f=>{this['_reduceSuggestionAttributeRange'](_0xe4a11f,_0xffbd03['range'],_0x2f180e),_0x28482e=!0x0;});}return _0x28482e;}['_reduceSuggestionAttributeRange'](_0x5952f7,_0x500842,_0xd966c0){const _0x34044a=_0x5952f7['getFirstRange']()['getDifference'](_0x500842);0x0!==_0x34044a['length']?0x1!==_0x34044a['length']?this['_breakSuggestionMarker'](_0x5952f7,_0x500842['start'],_0x500842['end']):this['_setSuggestionRange'](_0x5952f7,_0x34044a[0x0]):_0xd966c0['removeMarker'](_0x5952f7['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1ea100){this['_editor']=_0x1ea100,this['_model']=_0x1ea100['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1ff81c,_0x156725,_0x167583,_0x5b3077,_0x47216a,_0x4e92bc){return new u(this['_model'],{'type':_0x1ff81c,'subType':_0x156725,'id':_0x167583,'author':_0x5b3077,'creator':_0x5b3077,'attributes':_0x47216a,'onAttributesChange':_0x4e92bc,'onAccept':(..._0x5ae05b)=>this['getSuggestionCallback'](_0x1ff81c,_0x156725,'accept')(..._0x5ae05b),'onDiscard':(..._0x5fffd1)=>this['getSuggestionCallback'](_0x1ff81c,_0x156725,'discard')(..._0x5fffd1)});}['registerCustomCallback'](_0x2058b6,_0x483597,_0x311042,_0xbb12b3){const _0x380c54=_0x2058b6+':'+_0x483597+':'+_0x311042;this['_customCallbacks']['set'](_0x380c54,_0xbb12b3);}['getSuggestionCallback'](_0xf00fea,_0x48d54d,_0x43ed6a){const _0x351569=_0xf00fea+':'+_0x48d54d+':'+_0x43ed6a;return this['_customCallbacks']['get'](_0x351569)||this['_defaultCallbacks']['get'](_0xf00fea+':'+_0x43ed6a);}['_registerDefaultCallbacks'](){const _0xcce004=()=>!0x1,_0x159627=_0x12edd5=>{_0x12edd5['sort']((_0x4e9b8b,_0x8f9bcf)=>_0x4e9b8b['start']['isBefore'](_0x8f9bcf['start'])?0x1:-0x1),this['_model']['change'](_0x5c741a=>{for(const _0x2d7168 of _0x12edd5){let _0x27ce55;_0x27ce55=_0x2d7168['end']['isAtEnd']&&_0x2d7168['end']['parent']==_0x2d7168['start']['nodeAfter']?_0x5c741a['createSelection'](_0x2d7168['start']['nodeAfter'],'on'):_0x5c741a['createSelection'](_0x2d7168),this['_model']['deleteContent'](_0x27ce55,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x281897=(_0x543680,_0x345c73)=>{_0x345c73&&this['_model']['change'](_0xce8e1d=>{const {commandName:_0x197853,commandParams:_0x5c44bb=[]}=_0x345c73,_0x5a3ca5=_0x543680['map'](_0x40ba7e=>(Vt(_0x40ba7e)&&(_0x40ba7e=this['_model']['createRange'](_0x40ba7e['end'])),_0x40ba7e))['filter'](_0x20c465=>'$graveyard'!==_0x20c465['root']['rootName']);if(_0x5a3ca5['length']<0x1)return;const _0x8a274b=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x22eb19=>_0x117350['fromRange'](_0x22eb19));_0xce8e1d['setSelection'](_0x5a3ca5);for(const _0x4832ab of this['_editor']['commands']['commands']())_0x4832ab['refresh']();_0x5c44bb['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x197853,..._0x5c44bb);const _0x36d474=_0x8a274b['filter'](_0x16e376=>'$graveyard'!=_0x16e376['root']['rootName']);_0x36d474['length']>0x0&&_0xce8e1d['setSelection'](_0x36d474);for(const _0x89329c of _0x8a274b)_0x89329c['detach']();});},_0x1ad922=(_0x583102,_0xc521fc)=>0x1==_0x583102['length']&&0x1==_0xc521fc['length']&&_0x583102[0x0]['end']['isEqual'](_0xc521fc[0x0]['start']),_0x7ca61d=(_0x23065e,_0x3802f9,_0x102bf6,_0x1f06ef)=>Ht(_0x23065e,_0x3802f9,_0x102bf6,_0x1f06ef)?[_0x23065e,_0x3802f9]:Ht(_0x3802f9,_0x23065e,_0x1f06ef,_0x102bf6)?[_0x3802f9,_0x23065e]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xcce004),this['_defaultCallbacks']['set']('insertion:discard',_0x159627),this['_defaultCallbacks']['set']('insertion:join',_0x1ad922),this['_defaultCallbacks']['set']('insertion:chain',_0x7ca61d),this['_defaultCallbacks']['set']('deletion:accept',_0x159627),this['_defaultCallbacks']['set']('deletion:discard',_0xcce004),this['_defaultCallbacks']['set']('deletion:join',_0x1ad922),this['_defaultCallbacks']['set']('deletion:chain',_0x7ca61d),this['_defaultCallbacks']['set']('formatInline:accept',_0x281897),this['_defaultCallbacks']['set']('formatInline:discard',_0xcce004),this['_defaultCallbacks']['set']('formatInline:join',_0x1ad922),this['_defaultCallbacks']['set']('formatInline:chain',_0xcce004),this['_defaultCallbacks']['set']('formatBlock:accept',_0x281897),this['_defaultCallbacks']['set']('formatBlock:discard',_0xcce004),this['_defaultCallbacks']['set']('formatBlock:join',_0x1ad922),this['_defaultCallbacks']['set']('formatBlock:chain',_0xcce004),this['_defaultCallbacks']['set']('attribute:accept',_0xcce004),this['_defaultCallbacks']['set']('attribute:discard',(_0x4cd2b7,_0x10ccc6)=>{if(!_0x10ccc6)return;const _0x4e685b=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5bedf2=>{if(_0x10ccc6['key']==m)for(const _0x4d83b1 of _0x4cd2b7){const _0x3ecdf4=_0x4d83b1['start']['nodeAfter'],_0x4d069c=_0x10ccc6['oldValue'];_0x5bedf2['rename'](_0x3ecdf4,_0x4d069c);}else{if(_0x4e685b['_isBlockAttribute'](_0x10ccc6['key'])){for(const _0x4c45dd of _0x4cd2b7)void 0x0!==_0x10ccc6['oldValue']?_0x5bedf2['setAttribute'](_0x10ccc6['key'],_0x10ccc6['oldValue'],_0x4c45dd['start']['nodeAfter']):_0x5bedf2['removeAttribute'](_0x10ccc6['key'],_0x4c45dd['start']['nodeAfter']);}else{for(const _0x2fa31d of _0x4cd2b7)_0x10ccc6['oldValue']?_0x5bedf2['setAttribute'](_0x10ccc6['key'],_0x10ccc6['oldValue'],_0x2fa31d):_0x5bedf2['removeAttribute'](_0x10ccc6['key'],_0x2fa31d);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1ad922);}}function Ut(_0x3a689b,_0x489348,_0x44b482){for(const _0x14edd9 of _0x489348['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x14edd9['root']==_0x14edd9)return!0x1;if(!_0x44b482['containsItem'](_0x14edd9))return!0x1;if(_0x3a689b['isObject'](_0x14edd9)||_0x3a689b['isLimit'](_0x14edd9))return!0x0;}return!0x1;}function Vt(_0x3d630d){return _0x3d630d['end']['parent']==_0x3d630d['start']['nodeAfter']&&_0x3d630d['end']['isAtStart'];}function Pt(_0x4a5747,_0x2d25e0,_0x5a226f,_0xda4834){const _0x3d307b=_0x487f18=>!_0x487f18['item']['is']('$textProxy')&&!_0xda4834['isObject'](_0x487f18['item']),_0x4eebe6=_0x4a5747['start']['getLastMatchingPosition'](_0x3d307b),_0x3e7cac=_0x4a5747['end']['getLastMatchingPosition'](_0x3d307b,{'direction':'backward'});return(!_0x4a5747['start']['isEqual'](_0x4eebe6)||!_0x4a5747['end']['isEqual'](_0x3e7cac))&&(_0x4eebe6['isBefore'](_0x3e7cac)?_0x5a226f['updateMarker'](_0x2d25e0,{'range':_0x5a226f['createRange'](_0x4eebe6,_0x3e7cac)}):_0x5a226f['removeMarker'](_0x2d25e0),!0x0);}function Gt(_0x4c912f){return _0xd7b3e2(_0x4c912f);}function Ft(_0x4245fd){const _0x2e8724=_0x4245fd['start']['nodeAfter'];return _0x2e8724&&_0x2e8724['is']('element');}function Lt(_0x582f44,_0x24eddb){return null==_0x582f44['end']['nodeBefore']&&_0x582f44['end']['parent']==_0x582f44['start']['nodeAfter']?Jt(_0x582f44['start']['nodeAfter'],_0x24eddb):_0x582f44;}function Jt(_0x5c499d,_0x4adab3){const _0x5ca343=_0x4adab3['schema']['isObject'](_0x5c499d)||_0x4adab3['schema']['isSelectable'](_0x5c499d);return _0x4adab3['createRange'](_0x4adab3['createPositionAt'](_0x5c499d,'before'),_0x5ca343?_0x4adab3['createPositionAfter'](_0x5c499d):_0x4adab3['createPositionAt'](_0x5c499d,'end'));}function Ht(_0xbb41c6,_0x2cd4ba,_0x3051d8,_0x344088){return!!qt(_0xbb41c6,_0x2cd4ba)&&_0x3051d8['end']['isEqual'](_0x344088['start']);}function qt(_0x3d67b7,_0x220e81){if(!_0x3d67b7['_isDataLoaded']||!_0x220e81['_isDataLoaded'])return!0x1;const _0x11c36f=new Set(Object['keys'](_0x3d67b7['attributes'])),_0x56d84c=new Set(Object['keys'](_0x220e81['attributes']));if(_0x11c36f['delete']('groupId'),_0x56d84c['delete']('groupId'),0x0==_0x11c36f['size']&&0x0==_0x56d84c['size'])return!0x0;if(_0x11c36f['size']!=_0x56d84c['size'])return!0x1;const _0x17c75e={..._0x3d67b7['attributes']},_0x144b66={..._0x220e81['attributes']};return delete _0x17c75e['groupId'],delete _0x144b66['groupId'],JSON['stringify'](_0x17c75e)==JSON['stringify'](_0x144b66);}function zt(_0x26a700,_0x280367){const _0x59e265=Kt(_0x26a700['attributes']),_0x23e8cf=Kt(_0x280367);if(!_0x26a700['_isDataLoaded'])return!0x1;for(const _0x5aa19e of Object['keys'](_0x23e8cf))if(!_0x5dbccb(_0x59e265[_0x5aa19e],_0x23e8cf[_0x5aa19e]))return!0x1;return!0x0;}function Kt(_0x297bce){const _0x540d7e=Object['assign']({},_0x297bce);return delete _0x540d7e['skipNestingCheck'],delete _0x540d7e['tablePasteChainId'],_0x540d7e;}class ge extends/* #__PURE__ -- @preserve */
25
+ _0x3dcb94(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4b991c,_0x5857bc,_0x3057bd,_0xb47d71){super(),this['model']=_0x5857bc,this['view']=_0x3057bd,this['commentThreadController']=_0xb47d71,this['_editor']=_0x4b991c,this['_acceptCommand']=_0x4b991c['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4b991c['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x38f9f1,_0x5920f9)=>_0x38f9f1||_0x5920f9),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x56711e=>_0x56711e&&this['_editor']['model']['canEditAt'](_0x5857bc['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x51ea0b=>_0x51ea0b&&this['_editor']['model']['canEditAt'](_0x5857bc['getRanges']())),this['_pendingAction']=null,_0x3057bd['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3057bd,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3057bd,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3057bd,'change:isDirty',()=>{_0x3057bd['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 _0x3201b6=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3201b6);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x1b816c{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xe8834c,_0x1320c3,_0x2aa2cc,_0x3730d4){super(_0xe8834c),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3f298c(_0xe8834c,o(_0xe8834c,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1320c3['authoredAt']),this['bind']('authoredAt')['to'](_0x1320c3),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',_0x1320c3,'authoredAt',this,'descriptionParts',(_0x4e6a2a,_0x42d227,_0x23285f)=>{const _0x1ae19b=_0x23285f['map'](_0x598b81=>ns(_0x598b81['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4e6a2a-0x1,_0x1320c3['author']['name'],_0x42d227?_0x3730d4['formatDateTime'](_0x42d227):'',new DOMParser()['parseFromString'](_0x1ae19b,'text/html')['body']['textContent']]);}),this['focusables']=new _0x444291(),this['focusTracker']=new _0x322992(),this['keystrokes']=new _0x17ec56(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x52dac7=>_0x52dac7['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1320c3,this['_localUser']=_0x2aa2cc,this['_config']=_0x3730d4,_0x3730d4['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x205ae6(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3c154a}=this['_config'];this['commentsListView']=new _0x3c154a(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',_0x25f23e=>_0x25f23e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4f8159,_0x217d71)=>_0x4f8159||!!_0x217d71);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x29204a}=this['_config'],_0x4930cb=new _0x29204a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x42956e=_0x4930cb['commentInputView'];return _0x4930cb['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x42956e,'value',(_0x25953f,_0x4d28d0,_0x1b5692)=>!!_0x1b5692||_0x25953f&&!_0x4d28d0),_0x42956e['on']('submit',(_0x16976f,_0x54abe0)=>{this['fire']('addComment',_0x54abe0),_0x42956e['editor']['setData']('');}),_0x42956e['on']('cancel',()=>this['focus']()),_0x42956e['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4930cb;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0xb7cff,_0x5886e3,_0x5e2756,_0x49af06){super(_0xb7cff,_0x5886e3,_0x5e2756,_0x49af06),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x57a16d=>_0x57a16d&&_0x57a16d[0x0]?_0x57a16d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x7370d6,_0x1bd415)=>{let _0x13e1b8='';for(const _0x3fb713 of _0x7370d6)_0x13e1b8+='<p>'+ns(_0x3fb713['content'],_0x3fb713['color'])+'</p>';return _0x1bd415?_0x13e1b8:ti(_0x13e1b8,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x49af06['SuggestionView'](_0xb7cff,_0x5886e3,{'formatDateTime':_0x49af06['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 _0x3313a3=this['bindTemplate'],_0x41448f=[this['suggestionView']];return this['commentsListView']&&_0x41448f['push'](this['commentsListView']),this['commentThreadInputView']&&_0x41448f['push'](this['commentThreadInputView']),_0x41448f['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3313a3['if']('isActive','ck-suggestion-wrapper--active'),_0x3313a3['to']('type',_0x2e8e1a=>'ck-suggestion-'+_0x2e8e1a),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':_0x3313a3['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x41448f};}['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 ue extends _0x1b816c{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2151ad,_0x43d098,_0x467274){super(_0x2151ad),this['_model']=_0x43d098,this['_config']=_0x467274,this['set']('description',''),this['bind']('authoredAt')['to'](_0x43d098),this['acceptButton']=this['_createButton'](o(_0x2151ad,'Accept\x20suggestion'),_0x5e21e9['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x2151ad,'Discard\x20suggestion'),_0x5e21e9['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x88ca50(_0x2151ad,_0x43d098['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x444291([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x322992(),this['keystrokes']=new _0x17ec56(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x380fad=>_0x380fad['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xca61da=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xca61da['innerHTML']=this['description'],this['on']('change:description',(_0x1ae840,_0x5f0059,_0x3282fe)=>{_0xca61da['innerHTML']=_0x3282fe;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3ffd49=this['bindTemplate'],_0x2702f2=[{'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':_0x3ffd49['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3ffd49['to']('authoredAt',_0x52ac12=>this['_config']['formatDateTime'](_0x52ac12))}]}]},{'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']&&_0x2702f2['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':_0x2702f2}]};}['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'](_0x498d6a,_0x541ea2,_0x560089,_0x4858b6,_0x58cdb1){const _0x3620ac=new _0x4aa6c3(this['locale']);return _0x3620ac['set']({'label':_0x498d6a,'icon':_0x541ea2,'tooltip':!0x0,'tooltipPosition':_0x58cdb1}),_0x3620ac['extendTemplate']({'attributes':{'class':_0x560089}}),_0x3620ac['on']('execute',()=>{this['fire'](_0x4858b6,this['_model']['id']);}),_0x3620ac;}['_setupKeyboardNavigation'](){const _0x3ad328=this['element'];this['keystrokes']['listenTo'](_0x3ad328);for(const _0x1f5a2f of this['focusables'])this['focusTracker']['add'](_0x1f5a2f['element']),this['keystrokes']['listenTo'](_0x1f5a2f['element']);this['keystrokes']['set']('enter',(_0x2094db,_0x9c8314)=>{_0x3ad328===_0x2094db['target']&&(this['focusCycler']['focusFirst'](),_0x9c8314());}),this['keystrokes']['set']('esc',(_0x2502c5,_0x568892)=>{_0x3ad328!==_0x2502c5['target']&&(this['focus'](),_0x568892());});}}var Ce='<!--\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 _0x248004{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x5906bb,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x49d4c4){super(_0x49d4c4),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x56f0e0=this['editor']['config'];_0x56f0e0['define']('trackChanges.SuggestionThreadView',de),_0x56f0e0['define']('trackChanges.SuggestionView',ue),_0x56f0e0['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x56f0e0['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x9a7ead,_0x1ecebd){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x55fbe6,_0x263594]of this['_handleControllerBuffer']){const _0x531df9=this['_suggestionToController']['has'](_0x55fbe6);_0x531df9||_0x263594?_0x531df9&&_0x263594&&this['_destroyController'](_0x55fbe6):this['_initializeController'](_0x55fbe6);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x9a7ead,_0x1ecebd);}['init'](){const _0x362bfe=this['editor'],_0x1e390a=_0x362bfe['plugins']['get']('TrackChangesEditing'),_0x295d25=_0x362bfe['plugins']['get']('Annotations'),_0xf36664=_0x362bfe['plugins']['get']('EditorAnnotations'),_0xaac332=_0x362bfe['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0xf36664['addSourceCollector'](()=>{const _0x1fe71f=[];for(const [_0xe9a23b,_0x354085]of Array['from'](this['_suggestionToController'])){const _0x4eaa81=_0xe9a23b['getAllAdjacentSuggestions'](),_0x2dd392=[];for(const _0x2d376b of _0x4eaa81){if(!_0x2d376b['isInContent'])continue;if(_0x2d376b['isMultiRange']){_0x2dd392['push'](..._0x2d376b['getRanges']());continue;}const _0x32ffbf=_0x2d376b['getFirstRange']();if(_0x2dd392['length']>0x0){const _0x6a23e=_0x2dd392[0x0]['getJoined'](_0x32ffbf);if(_0x6a23e){_0x2dd392[0x0]=_0x6a23e;continue;}}_0x2dd392['push'](_0x32ffbf);}_0x1fe71f['push']([_0x354085['view'],_0x2dd392]);}return _0x1fe71f;}),this['listenTo'](_0x1e390a,'suggestionLoaded',(_0x21db79,_0x284ba1)=>{this['listenTo'](_0x284ba1,'change:previous',(_0x234738,_0x488fef,_0x19d9c8,_0xcae39c)=>{_0x284ba1['isInContent']&&(null==_0x19d9c8?(this['_updateController'](_0xcae39c['head']),this['_handleSuggestionControllerDelayed'](_0x284ba1,!0x1)):(this['_updateController'](_0x19d9c8['head']),null==_0xcae39c&&this['_handleSuggestionControllerDelayed'](_0x284ba1,!0x0)));}),null!==_0x284ba1['previous']?this['_updateController'](_0x284ba1['head']):this['_handleSuggestionControllerDelayed'](_0x284ba1,!0x1);}),this['listenTo'](_0x1e390a,'suggestionUnloaded',(_0x3a4456,_0xcad0f3,_0x94fa38)=>{this['stopListening'](_0xcad0f3,'change:previous'),this['_handleControllerBuffer']['delete'](_0xcad0f3),this['_suggestionToController']['has'](_0xcad0f3)&&this['_destroyController'](_0xcad0f3),_0x94fa38&&this['_updateController'](_0x94fa38['head']);}),this['listenTo'](_0x1e390a,'suggestionChanged',(_0x424770,_0x2a4d5a)=>{this['_updateController'](_0x2a4d5a);}),this['listenTo'](_0x295d25,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xaac332,'addComment',(_0xc746cc,{threadId:_0x23171d,isFromAdapter:_0x4845a4})=>{if(_0x4845a4||!_0x1e390a['hasSuggestion'](_0x23171d))return;const _0x28c563=_0x1e390a['getSuggestion'](_0x23171d);this['_suggestionToController']['get'](_0x28c563)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5a0db3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2ffe4b;for(const _0x204c39 in _0x5a0db3){const _0x4e2d7b=_0x204c39,_0x253de0=_0x5a0db3[_0x4e2d7b];if('trackChangesLicenseKeyValid'==_0x253de0||'trackChangesLicenseKeyInvalid'==_0x253de0||'trackChangesLicenseKeyExpired'==_0x253de0||'trackChangesLicenseKeyDomainLimit'==_0x253de0||'trackChangesLicenseKeyNotAllowed'==_0x253de0||'trackChangesLicenseKeyEvaluationLimit'==_0x253de0||'trackChangesLicenseKeyTrialLimit'==_0x253de0||'trackChangesLicenseKeyDevelopmentLimit'==_0x253de0||'trackChangesLicenseKeyUsageLimit'==_0x253de0){delete _0x5a0db3[_0x4e2d7b],_0x2ffe4b=_0x253de0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2ffe4b&&_0x5a0db3['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2ffe4b&&_0x5a0db3['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2ffe4b&&_0x5a0db3['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2ffe4b&&_0x5a0db3['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2ffe4b&&_0x5a0db3['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x2ffe4b&&_0x5a0db3['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x2ffe4b&&_0x5a0db3['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2ffe4b&&_0x5a0db3['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x3afe6d=this['editor']['plugins']['get']('Annotations'),_0x413d46=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20247f=Array['from'](_0x3afe6d['activeAnnotations'],_0x2ea553=>_0x2ea553['innerView'])['filter'](_0x23abaa=>this['_viewToController']['has'](_0x23abaa)),_0x276cf7=[];for(const _0x90fb71 of _0x20247f){const _0x1c2649=this['_viewToController']['get'](_0x90fb71)['model']['getAllAdjacentSuggestions']();_0x276cf7['push'](..._0x1c2649['reduce']((_0x4be156,_0x438467)=>[..._0x4be156,..._0x438467['getMarkerNames']()],[]));}_0x413d46['activeMarkers']=_0x276cf7;}['_addUIComponentsToFactory'](){const _0x18b549=this['editor'],_0x12bd1b=_0x18b549['locale'],_0x5c3858=o(_0x12bd1b,'Track\x20changes'),_0x38bf35=new _0x2b7388([{'type':'switchbutton','model':new _0x4fb10a({'withText':!0x0,'isToggleable':!0x0,'label':_0x5c3858,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4fb10a({'withText':!0x0,'label':o(_0x12bd1b,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4fb10a({'withText':!0x0,'label':o(_0x12bd1b,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4fb10a({'withText':!0x0,'label':o(_0x12bd1b,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4fb10a({'withText':!0x0,'label':o(_0x12bd1b,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x3deb92 of _0x38bf35)if(pe(_0x3deb92)){const _0x41c180=_0x18b549['commands']['get'](_0x3deb92['model']['commandName']);_0x3deb92['model']['bind']('isOn','isEnabled')['to'](_0x41c180,'value','isEnabled');}_0x18b549['ui']['componentFactory']['add']('trackChanges',_0x188560=>this['_createToolbarButton'](_0x188560,_0x38bf35,_0x5c3858)),_0x18b549['ui']['componentFactory']['add']('menuBar:trackChanges',_0x157781=>this['_createMenuBarMenu'](_0x157781,_0x38bf35,_0x5c3858));}['_createToolbarButton'](_0x27760e,_0x20ac5d,_0x40fc66){const _0x54b887=_0x510be2(_0x27760e,_0x2b0e49),_0x53ff57=this['editor']['commands']['get']('trackChanges');_0x54b887['buttonView']['set']({'tooltip':_0x40fc66,'label':_0x40fc66,'icon':Ce}),_0x54b887['buttonView']['bind']('isOn')['to'](_0x53ff57,'value'),_0x54b887['buttonView']['on']('execute',()=>{_0x53ff57['execute'](),this['editor']['editing']['view']['focus']();}),te(_0x54b887,_0x20ac5d,{'role':'menu'});const _0x134d76=[];for(const _0x2a293a of _0x20ac5d)pe(_0x2a293a)&&_0x134d76['push'](this['editor']['commands']['get'](_0x2a293a['model']['commandName']));const _0x444813=_0x54b887['buttonView'];return _0x444813['actionView']['unbind']('isEnabled'),_0x444813['arrowView']['unbind']('isEnabled'),_0x444813['actionView']['bind']('isEnabled')['to'](_0x53ff57,'isEnabled'),_0x444813['arrowView']['bind']('isEnabled')['toMany'](_0x134d76,'isEnabled',(..._0x4633b3)=>_0x4633b3['some'](_0x2503a8=>_0x2503a8)),_0x54b887['on']('execute',_0xd46ddd=>{this['editor']['execute'](_0xd46ddd['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x54b887;}['_createMenuBarMenu'](_0x489fb7,_0x163010,_0x4cbf4e){const _0x28ee4d=new _0xc88443(_0x489fb7),_0x3ed108=this['editor']['commands']['get']('trackChanges');_0x28ee4d['buttonView']['set']({'label':_0x4cbf4e,'icon':Ce});const _0x3d9dd2=new _0x49bb9b(_0x489fb7);for(const _0x414380 of _0x163010){if('separator'==_0x414380['type']){_0x3d9dd2['items']['add'](new _0x324ad5(_0x489fb7));continue;}const _0x44f5c3=new _0x3b91c(_0x489fb7,_0x28ee4d),_0x4a14a2=new _0x5bbdc5(_0x489fb7),_0x212bd1=_0x414380['model'];_0x4a14a2['bind'](...Object['keys'](_0x212bd1))['to'](_0x212bd1),_0x4a14a2['delegate']('execute')['to'](_0x28ee4d),_0x4a14a2['on']('execute',()=>{this['editor']['execute'](_0x212bd1['commandName']),this['editor']['editing']['view']['focus']();}),_0x44f5c3['children']['add'](_0x4a14a2),_0x3d9dd2['items']['add'](_0x44f5c3);}return _0x28ee4d['bind']('isEnabled')['to'](_0x3ed108,'isEnabled'),_0x28ee4d['panelView']['children']['add'](_0x3d9dd2),_0x28ee4d;}['_initializeController'](_0x3aa6e8){const _0x2ac75e=this['editor'],_0x179866=_0x2ac75e['config'],_0x59804f=_0x2ac75e['plugins']['get']('Annotations'),_0x107aa5=_0x2ac75e['plugins']['get']('CommentsRepository'),_0x4a8943=_0x2ac75e['plugins']['get']('EditorAnnotations'),_0x38844a=_0x2ac75e['plugins']['get'](_0x5906bb)['me'],_0x35135d=_0x179866['get']('trackChanges')['SuggestionThreadView'],_0x18c0d1=_0x179866['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x18ecd1,CommentThreadInputView:_0x1d74ef}=_0x2ac75e['plugins']['get']('CommentsUI');let _0x435609,_0x214172,_0x2e2d11;this['_annotationViews']['has'](_0x3aa6e8['id'])?(_0x214172=this['_annotationViews']['get'](_0x3aa6e8['id']),_0x435609=_0x214172['mainView']):(_0x435609=new _0x35135d(_0x2ac75e['locale'],_0x3aa6e8,_0x38844a,{'disableComments':this['_disableComments'],'editorConfig':{..._0x179866['get']('comments.editorConfig'),'licenseKey':_0x179866['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x179866['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x179866['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x179866['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xf2ed73(_0x179866['get']('locale')),'CommentView':_0x179866['get']('comments')['CommentView'],'CommentsListView':_0x18ecd1,'CommentThreadInputView':_0x1d74ef,'SuggestionView':_0x18c0d1}),_0x435609['suggestionView']['acceptButton']['on']('execute',()=>{_0x2ac75e['editing']['view']['focus']();}),_0x435609['suggestionView']['discardButton']['on']('execute',()=>{_0x2ac75e['editing']['view']['focus']();}),_0x214172=_0x59804f['createAnnotationView'](this['editor']['locale'],_0x435609),_0x214172['bind']('isDirty')['to'](_0x435609,'isDirty'),_0x214172['bind']('length')['to'](_0x435609),_0x214172['bind']('type')['to'](_0x435609,'type',_0x37f7ba=>'suggestion-'+_0x37f7ba),_0x435609['on']('escape',()=>{_0x2e2d11['fire']('escape');}),this['_annotationViews']['set'](_0x3aa6e8['id'],_0x214172));const _0x492c7d=_0x107aa5['createCommentThreadController'](_0x3aa6e8['commentThread'],_0x435609),_0x113e01=new ge(_0x2ac75e,_0x3aa6e8,_0x435609,_0x492c7d),_0xb67af8=_0x3aa6e8['getAllAdjacentSuggestions']()['filter'](_0x55df49=>_0x55df49['isInContent']);_0x435609['descriptionParts']=_0x2ac75e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xb67af8),this['_suggestionToController']['set'](_0x3aa6e8,_0x113e01),this['_viewToController']['set'](_0x435609,_0x113e01),_0x2e2d11=_0x59804f['createAnnotation']({'view':_0x214172,'target':()=>{const _0x153a6b=[],_0x504c61=_0x3aa6e8['getAllAdjacentSuggestions']()['filter'](_0x169a13=>_0x169a13['isInContent']);for(const _0x133335 of _0x504c61)_0x153a6b['push'](..._0x133335['getMarkers']());return _0x56972e(_0x2ac75e['editing'],_0x153a6b);},'type':()=>'suggestion-'+_0x113e01['view']['type']}),_0x107aa5['_bindAnnotationToEditors'](_0x435609,_0x2e2d11),_0x59804f['add'](_0x2e2d11),_0x4a8943['registerAnnotation'](_0x2e2d11);}['_destroyController'](_0xdd904){const _0x20ae54=this['editor']['plugins']['get']('CommentsRepository'),_0x3987e5=this['editor']['plugins']['get']('Annotations'),_0x47937b=this['_suggestionToController']['get'](_0xdd904),_0xd08e8e=_0x47937b['view'],_0x2f0871=_0x3987e5['getByInnerView'](_0xd08e8e);_0x20ae54['_unbindEditors'](_0xd08e8e),_0x2f0871&&_0x3987e5['remove'](_0x2f0871),this['_suggestionToController']['delete'](_0xdd904),this['_viewToController']['delete'](_0xd08e8e),_0x47937b['destroy']();}['_updateController'](_0x48a631){if(!_0x48a631['isInContent']||!this['_suggestionToController']['has'](_0x48a631))return;const _0x60934c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49bfa5=this['_suggestionToController']['get'](_0x48a631),_0x57e3e6=_0x48a631['getAllAdjacentSuggestions']();_0x49bfa5['view']['descriptionParts']=_0x60934c['descriptionFactory']['getDescriptions'](_0x57e3e6);}['destroy'](){for(const _0xacefbd of this['_suggestionToController']['keys']())this['_destroyController'](_0xacefbd);for(const _0x364b07 of this['_annotationViews']['values']())_0x364b07['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0x5dbe43){return'model'in _0x5dbe43;}class k extends _0x248004{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3bde73){this['editor']['plugins']['get'](p)['adapter']=_0x3bde73;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3660eb){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3660eb);}['getSuggestions']({skipNotAttached:_0x5506bc=!0x1,toJSON:_0x4dcbdb=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5506bc,'toJSON':_0x4dcbdb});}['getSuggestion'](_0x59197e){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x59197e);}}const w=['Pagination'];class T extends _0x248004{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3c9a58=this['editor'];if(_0x3c9a58['config']['define']('trackChangesData.editorCreator',_0x427c71=>{const _0x546992=_0x3c9a58['model']['document']['getRootNames']()['reduce']((_0x261be1,_0x5a20b1)=>(_0x261be1[_0x5a20b1]='',_0x261be1),{});return _0x3c9a58['constructor']['create'](_0x546992,_0x427c71);}),'function'!=typeof _0x3c9a58['config']['get']('trackChangesData')['editorCreator'])throw new _0x2ae157('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x35cdbd){return N(this['editor'],!0x0,_0x35cdbd);}['getDataWithDiscardedSuggestions'](_0x243f75){return N(this['editor'],!0x1,_0x243f75);}}class D extends _0x248004{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x18d081){function _0x39f8a9(_0x2a1ba5){return _0x2a1ba5['map'](_0xec975c=>String['fromCharCode'](_0xec975c))['join']('');}super(_0x18d081),this['result']='end',_0x18d081[_0x39f8a9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x39f8a9([0x76,0x69,0x65,0x77])][_0x39f8a9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x39f8a9([0x61,0x75,0x74,0x6f]),_0x18d081[_0x39f8a9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x39f8a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x39f8a9([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x39f8a9([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x39f8a9([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x14e46c){return void 0x0!==_0x14e46c['getRootsAttributes'];}async function N(_0x191c2f,_0xec7d41,_0x5a0c9f){const _0x5ae960=_0x3c7811(_0x191c2f,w);_0x5ae960['plugins']['push'](p,D),_0x5ae960['rootsAttributes']=v(_0x191c2f)?_0x191c2f['getRootsAttributes']():void 0x0;const _0x5ec960=document['createDocumentFragment'](),_0x32e091=_0x191c2f['config']['get']('trackChangesData')['editorCreator'],_0x3b7892=await _0x32e091(_0x5ae960,()=>function(_0x1f6461){const _0x55270b=document['createElement']('div');return _0x1f6461['appendChild'](_0x55270b),_0x55270b;}(_0x5ec960));!function(_0x4c2419,_0x10b2e8){const _0x57b280=_0x4c2419['model']['document']['getRootNames']()['reduce']((_0x218582,_0x12498d)=>(_0x218582[_0x12498d]=_0x4c2419['data']['get']({'rootName':_0x12498d}),_0x218582),{}),_0xfb582d=_0x4c2419['plugins']['get']('Users')['users']['map'](_0x22bde1=>({'id':_0x22bde1['id'],'name':_0x22bde1['name']})),_0x34185a=_0x4c2419['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1838b6=_0x4c2419['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2f1296=_0x10b2e8['plugins']['get']('Users'),_0x315f8e=_0x10b2e8['plugins']['get']('TrackChangesEditing'),_0x2a001c=_0x10b2e8['plugins']['get']('CommentsRepository');for(const _0x11cfe4 of _0x2a001c['getCommentThreads']())_0x11cfe4['remove']();for(const _0x9d32df of _0xfb582d)_0x2f1296['getUser'](_0x9d32df['id'])||_0x2f1296['addUser'](_0x9d32df);_0x2f1296['me']||_0x2f1296['useAnonymousUser']();for(const _0xdcae4e of _0x1838b6)_0x2a001c['addCommentThread'](_0xdcae4e);for(const _0xba61f0 of _0x34185a)_0x315f8e['addSuggestionData'](_0xba61f0);_0x10b2e8['data']['set'](_0x57b280);}(_0x191c2f,_0x3b7892),_0x3b7892['execute'](_0xec7d41?'acceptAllSuggestions':'discardAllSuggestions');const _0x31d05e=v(_0x3b7892)?_0x3b7892['getFullData'](_0x5a0c9f):_0x3b7892['data']['get'](_0x5a0c9f);return await _0x3b7892['destroy'](),_0x31d05e;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};