@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250322.0 → 0.0.0-nightly-20250324.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x3ca02c,Plugin as _0xc831a5,PendingActions as _0x2f470f}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xb1fe46,ObservableMixin as _0x243e84,uid as _0x18a796,priorities as _0x4055eb,insertToPriorityArray as _0x315f59,logWarning as _0x3b6deb,getEnvKeystrokeText as _0x3b1d48,FocusTracker as _0x554bbb,KeystrokeHandler as _0x291e23,Collection as _0x404500}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x30d64b,IconCancel as _0x457e84,IconTrackChanges as _0x858bbc}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x340b26,View as _0x11d546,ViewCollection as _0x4d8d26,FocusCycler as _0x3f8518,ViewModel as _0x2cb56a,createDropdown as _0x76c2d,SplitButtonView as _0x3603a0,addListToDropdown as _0x1de96b,MenuBarMenuView as _0x451613,MenuBarMenuListView as _0x3c6207,ListSeparatorView as _0x359237,MenuBarMenuListItemView as _0x2f6f3f,MenuBarMenuListItemButtonView as _0x42ded4,BodyCollection as _0x425b0e,Dialog as _0x36fb6d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5c361d,hashObject as _0x2a1780,surroundingMarkersDetector as _0x1d2ad3,FOCUS_ANNOTATION_KEYSTROKE as _0x558da0,AriaDescriptionView as _0x385cc7,setupThreadKeyboardNavigation as _0x205cb9,trimHtml as ti,UserView as _0x437089,LateFocusButtonView as _0x34e70a,getDateTimeFormatter as _0x112812,getAllMarkersDomElementsSorted as _0x3f4177,sanitizeEditorConfig as _0x3781e3}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x5bdf15,LiveRange as _0x1a0cce,LivePosition as _0x11df1a,DowncastWriter as _0x1d790b}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x1d974c,toWidget as _0x1105f1}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x28763a,set as _0x417466,isEqual as _0x54a993,unset as _0x523993,omit as Vt}from'es-toolkit/compat';import{Delete as _0xa8d436,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5be59d,ShiftEnter as _0x3a1a43}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends _0x3ca02c{['_enabledCommands'];constructor(_0x43470c,_0x16fbc5){super(_0x43470c),this['_enabledCommands']=_0x16fbc5,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 _0x507551 of this['editor']['commands']['commands']())_0x507551['affectsData']&&!this['_enabledCommands']['has'](_0x507551)&&_0x507551['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x544e58 of this['editor']['commands']['commands']())_0x544e58['affectsData']&&!this['_enabledCommands']['has'](_0x544e58)&&_0x544e58['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x3ca02c{['_suggestions'];constructor(_0x689d32,_0x1f658d){super(_0x689d32),this['_suggestions']=_0x1f658d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x45e0e8){const _0x49803c=this['_suggestions']['get'](_0x45e0e8);if(!_0x49803c)throw new _0xb1fe46('track-changes-accept-suggestion-not-found',this);const _0x4b998d=_0x49803c['getRanges']();this['editor']['model']['canEditAt'](_0x4b998d)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x49803c);}}class R extends _0x3ca02c{['_suggestions'];constructor(_0x4a167d,_0x48f6d8){super(_0x4a167d),this['_suggestions']=_0x48f6d8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xcda7e8){const _0x222445=this['_suggestions']['get'](_0xcda7e8);if(!_0x222445)throw new _0xb1fe46('track-changes-discard-suggestion-not-found',this);const _0x3c06a8=_0x222445['getRanges']();this['editor']['model']['canEditAt'](_0x3c06a8)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x222445);}}function ls(_0x27255d,_0x493348){let _0x4719e2='';return _0x4719e2+=_0x27255d['split']('*')['map']((_0x1364b5,_0x295ee7)=>_0x295ee7%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x1364b5)+'</span>':nn(_0x1364b5))['join'](''),_0x493348&&(_0x4719e2+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x493348['value']+'\x22\x20title=\x22'+_0x493348['title']+'\x22></span>'),_0x4719e2;}function nn(_0x58d09f){const _0x1ceb02=document['createElement']('span');return _0x1ceb02['innerText']=_0x58d09f,_0x1ceb02['innerHTML'];}function ts(_0x2843a1){return _0x2843a1['sort']((_0x5a4f48,_0xe88b45)=>'deletion'==_0x5a4f48['type']&&'deletion'!=_0xe88b45['type']?-0x1:'deletion'!=_0x5a4f48['type']&&'deletion'==_0xe88b45['type']?0x1:0x0);}function Zt(_0xf14c3f,_0x36d71d){let _0x282826,_0x223801=0x0;const _0x12a5bc=[],_0x37a765=_0x36d71d['schema'];for(;_0x223801<_0xf14c3f['length'];){const _0x2a06d7=_0xf14c3f[_0x223801],_0x4df3c9=_0xf14c3f[_0x223801+0x1];_0x282826||(_0x282826=_0x36d71d['createPositionBefore'](_0x2a06d7)),on(_0x36d71d,_0x2a06d7,_0x4df3c9)||(_0x12a5bc['push'](_0x36d71d['createRange'](_0x282826,_0x37a765['isObject'](_0x2a06d7)?_0x36d71d['createPositionAfter'](_0x2a06d7):_0x36d71d['createPositionAt'](_0x2a06d7,'end'))),_0x282826=null),_0x223801++;}return _0x12a5bc;}function on(_0x31843a,_0x5793ce,_0x266a4b){if(!_0x266a4b)return!0x1;const _0x2dde72=_0x31843a['createPositionAfter'](_0x5793ce),_0x4fe6f8=_0x31843a['createPositionBefore'](_0x266a4b);return _0x2dde72['isTouching'](_0x4fe6f8);}function rs(_0x1e802d,_0xc4c20d,_0x13edf5){for(;_0x13edf5['length'];){const _0x1e7740=_0x13edf5['splice'](0x0,0x64);_0x1e802d['change'](()=>{for(const _0x1d79f9 of _0x1e7740)_0x1d79f9['isInContent']&&_0xc4c20d['execute'](_0x1d79f9['id']);});}}class x extends _0x3ca02c{['_command'];['_suggestions'];constructor(_0x355cd1,_0x33c4b5,_0x54d9d9){super(_0x355cd1),this['_command']=_0x33c4b5,this['_suggestions']=_0x54d9d9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2b72fd=Array['from'](this['_suggestions']['values']())['some'](_0x4c8c7a=>_0x4c8c7a['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2b72fd;}['execute'](){const _0x329aac=ts(Array['from'](this['_suggestions']['values']()));for(const _0x371224 of _0x329aac){const _0x310796=_0x371224['getRanges']();if(!this['editor']['model']['canEditAt'](_0x310796))return;}rs(this['editor']['model'],this['_command'],_0x329aac);}}class E extends _0x3ca02c{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x359db9,_0x4d81a6,_0x37b9bc){super(_0x359db9),this['_command']=_0x4d81a6,this['_suggestions']=_0x37b9bc,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x34c2cd=this['editor']['model']['document']['selection'],_0x2e4bd2=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x27ef59,_0x6e3dd9){const _0x44b772=Array['from'](_0x27ef59['getRanges']()),_0x3209d6=new Set();for(const _0x206f2a of _0x6e3dd9)if(_0x206f2a['isInContent']){for(const _0x32b788 of _0x44b772)for(const _0x4402db of _0x206f2a['getRanges']())(_0x32b788['isIntersecting'](_0x4402db)||_0x27ef59['isCollapsed']&&!_0x206f2a['isMultiRange']&&_0x206f2a['next']&&_0x4402db['end']['isTouching'](_0x32b788['start']))&&_0x3209d6['add'](_0x206f2a);}return _0x3209d6;}(_0x34c2cd,_0x2e4bd2),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2c07d4=ts(Array['from'](this['_selectedSuggestions']));for(const _0x340301 of _0x2c07d4){const _0x3b77c9=_0x340301['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3b77c9))return;}rs(this['editor']['model'],this['_command'],_0x2c07d4);}}class o extends/* #__PURE__ -- @preserve */
24
- _0x243e84(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x334b6c,_0x62fb98){super(),this['id']=_0x62fb98['id'],this['type']=_0x62fb98['type'],this['subType']=_0x62fb98['subType']||null,this['author']=_0x62fb98['author'],this['creator']=_0x62fb98['creator']||_0x62fb98['author'],this['isExternal']=Boolean(_0x62fb98['attributes']&&_0x62fb98['attributes']['@external']),this['data']=null,this['_model']=_0x334b6c,this['_onAccept']=_0x62fb98['onAccept'],this['_onDiscard']=_0x62fb98['onDiscard'],this['_onAttributesChange']=_0x62fb98['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x62fb98['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 _0x55c62f=this;for(;_0x55c62f['previous'];)_0x55c62f=_0x55c62f['previous'];return _0x55c62f;}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'](_0x3c3b21){this['_markerNames']['add'](_0x3c3b21);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3aaaee=>this['_model']['markers']['get'](_0x3aaaee))['filter'](_0x2cb24d=>_0x2cb24d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3bba97=>{for(const _0x2cbba3 of this['getMarkers']())_0x3bba97['removeMarker'](_0x2cbba3);}),this['_markerNames']['clear']();}['removeMarker'](_0x5d6d9c){this['_model']['change'](_0x4576e2=>{_0x4576e2['removeMarker'](_0x5d6d9c);}),this['_markerNames']['delete'](_0x5d6d9c);}['addRange'](_0x333e0a){const _0x5584e3='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x5584e3),this['_model']['change'](_0x1cf802=>{_0x1cf802['addMarker'](_0x5584e3,{'range':_0x333e0a,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1beaa8){for(const _0x5a1df6 of this['getRanges']())if(_0x5a1df6['isIntersecting'](_0x1beaa8))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x164ef1=>_0x164ef1['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x16497f,_0x3ec49f)=>[..._0x16497f,..._0x3ec49f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1348e4=this['getRanges']();if(0x1!=_0x1348e4['length'])return null;const _0x1283ff=_0x1348e4[0x0],_0x286534=_0x1283ff['start']['nodeAfter'],_0x2be5b6=_0x1283ff['end']['nodeBefore'];return _0x286534 instanceof _0x5bdf15?_0x286534!=_0x2be5b6?null:_0x286534: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 _0x8440a8=[];let _0x1127fe=this['head'];for(;_0x1127fe;)_0x8440a8['push'](_0x1127fe),_0x1127fe=_0x1127fe['next'];return _0x8440a8;}['setAttribute'](_0x10ad69,_0x327970){const _0x28202a=_0x28763a(this['attributes']);_0x417466(_0x28202a,_0x10ad69,_0x327970),_0x54a993(_0x28202a,this['attributes'])||(this['attributes']=_0x28202a,this['_onAttributesChange'](_0x28202a));}['removeAttribute'](_0x50e9e7){const _0x5136f9=_0x28763a(this['attributes']);_0x523993(_0x5136f9,_0x50e9e7),_0x54a993(_0x5136f9,this['attributes'])||(this['attributes']=_0x5136f9,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 _0x18a796()['substr'](0x1,0x5);}}function c(_0xbe9e31,_0x17a57c,_0x44a3c3){const _0x5b78cf=_0xbe9e31['t'],t=_0xbe9e31['t'];switch(_0x17a57c){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x44a3c3);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x44a3c3);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x44a3c3);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x44a3c3);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x44a3c3);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',_0x44a3c3);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x44a3c3);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x44a3c3);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x44a3c3);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x44a3c3);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x44a3c3);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x44a3c3);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x44a3c3);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x44a3c3);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x44a3c3);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x44a3c3);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x44a3c3);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x44a3c3);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x44a3c3);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x44a3c3);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x44a3c3);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x44a3c3);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x44a3c3);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x44a3c3);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'},_0x44a3c3);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x44a3c3);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x44a3c3);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x44a3c3);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x44a3c3);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x44a3c3);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'},_0x44a3c3);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x44a3c3);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x44a3c3);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x44a3c3);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x44a3c3);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'},_0x44a3c3);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x44a3c3);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'},_0x44a3c3);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'},_0x44a3c3);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x44a3c3);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'},_0x44a3c3);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x44a3c3);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'},_0x44a3c3);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x44a3c3);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x44a3c3);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'},_0x44a3c3);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x44a3c3);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 _0x5b78cf({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x44a3c3);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5b78cf({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x44a3c3);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x44a3c3);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'},_0x44a3c3);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'},_0x44a3c3);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'},_0x44a3c3);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x17a57c;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5a5b5d,_0xa8435d){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5a5b5d,this['_locale']=_0xa8435d;}['getDescriptions'](_0x2881d3){const _0x2468fb=[],_0x3482c8=new Set(),_0x38a795=new Set();for(let _0x473f22=0x0;_0x473f22<_0x2881d3['length'];_0x473f22++){const _0x56f4ca=_0x2881d3[_0x473f22];if(!_0x56f4ca['isInContent'])continue;const _0x501f2a=this['_handleCustomCallbackDescription'](_0x56f4ca);if(_0x501f2a){if(null!=_0x56f4ca['subType']){if(_0x3482c8['has'](_0x56f4ca['subType']))continue;_0x3482c8['add'](_0x56f4ca['subType']);}_0x2468fb['push'](_0x501f2a);}else{if('attribute'!=_0x56f4ca['type'])'insertion'!=_0x56f4ca['type']&&'deletion'!=_0x56f4ca['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2468fb,_0x56f4ca,_0x2881d3[_0x473f22+0x1]);else{const _0x4fea18=_0x56f4ca['data']['key'];if(_0x38a795['has'](_0x4fea18))continue;_0x38a795['add'](_0x56f4ca['data']['key']),_0x4fea18==u?this['_handleRenameSuggestionDescription'](_0x2468fb,_0x56f4ca):this['_handleAttributeSuggestionDescription'](_0x2468fb,_0x56f4ca);}}}return this['_resolveDescriptionItems'](_0x2468fb);}['registerDescriptionCallback'](_0x254910){this['_customCallbacks']['push'](_0x254910);}['registerElementLabel'](_0x3bc7a6,_0x52eb17,_0x43c649=_0x4055eb['normal']){'function'==typeof _0x3bc7a6?_0x315f59(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3bc7a6,'label':_0x52eb17,'priority':_0x43c649}):this['_itemLabels']['set'](_0x3bc7a6,_0x52eb17);}['registerAttributeLabel'](_0xcc5ad5,_0x3e9278){this['_attributeLabels']['set'](_0xcc5ad5,_0x3e9278);}['getItemLabel'](_0x314009,_0x1b418d=0x1){let _0x43c965;for(const _0x555879 of this['_itemLabelsCallbacks'])if(_0x555879['matchingCallback'](_0x314009)){_0x43c965=_0x555879['label'];break;}return _0x43c965||(_0x43c965=this['_itemLabels']['get'](_0x314009['name'])),_0x43c965?_0x43c965(_0x1b418d):0x1!==_0x1b418d?_0x1b418d+'\x20'+_0x314009['name']+'s':''+_0x314009['name'];}['_addDescriptionItems'](_0x4df4ce,_0x130437){const _0x14d4eb=_0x130437['getFirstRange']()['getWalker'](),_0x233965='insertion'==_0x130437['type']?'add':'remove';for(const _0x57edc5 of _0x14d4eb){const _0x531136=_0x57edc5['item'],_0x42a221=_0x4df4ce[_0x4df4ce['length']-0x1];if(_0x531136['is']('$textProxy'))_0x42a221&&_0x42a221['type']['indexOf']('Container')>-0x1&&_0x4df4ce['pop'](),_0x42a221&&'text'==_0x42a221['type']?_0x42a221[_0x233965]+=_0x531136['data']:_0x4df4ce['push']({'type':'text','add':'add'==_0x233965?_0x531136['data']:'','remove':'remove'==_0x233965?_0x531136['data']:''});else{if(this['_schema']['isObject'](_0x531136)){const _0x4d3671=_0x531136;if(_0x42a221&&_0x42a221['type']['indexOf']('Container')>-0x1&&_0x4df4ce['pop'](),'elementEnd'==_0x57edc5['type'])continue;_0x42a221&&_0x42a221['type']==_0x233965+'Object'&&_0x42a221['element']['name']==_0x4d3671['name']?_0x42a221['quantity']++:_0x4df4ce['push']({'type':_0x233965+'Object','element':_0x4d3671,'quantity':0x1}),_0x14d4eb['skip'](_0x5c8d09=>!('elementEnd'==_0x5c8d09['type']&&_0x5c8d09['item']==_0x531136));}else{if(this['_schema']['checkChild'](_0x531136,'$text')||_0x531136['is']('element','softBreak')){const _0xddffc5=_0x531136;if('add'==_0x233965&&'elementStart'==_0x57edc5['type']||'remove'==_0x233965&&'elementEnd'==_0x57edc5['type'])continue;if(_0x42a221&&-0x1==_0x42a221['type']['indexOf']('Container')){'text'==_0x42a221['type']&&(_0x42a221[_0x233965]+='\x0a');continue;}let _0x5abac5;if(_0x5abac5='add'==_0x233965?_0xddffc5['nextSibling']&&!this['_schema']['isObject'](_0xddffc5['nextSibling'])?_0xddffc5['nextSibling']:null:_0xddffc5['previousSibling']&&!this['_schema']['isObject'](_0xddffc5['previousSibling'])?_0xddffc5['previousSibling']:null,_0xddffc5['isEmpty']||_0x5abac5&&_0x5abac5['isEmpty']){const _0x656d79=_0x5abac5&&_0x5abac5['isEmpty']?_0x5abac5:_0xddffc5;_0x42a221&&_0x42a221['type']==_0x233965+'EmptyContainer'&&_0x42a221['element']['name']==_0x656d79['name']?_0x42a221['quantity']++:_0x4df4ce['push']({'type':_0x233965+'EmptyContainer','element':_0x656d79,'quantity':0x1});}else _0x4df4ce['push']({'type':_0x233965+'Container','element':_0xddffc5});}}}}}['_resolveDescriptionItems'](_0x712cdf){const _0x5adc12=this['_locale'],_0x454bc1=[],_0x310aac=[],_0x1ae42d=[];for(const _0x777a26 of _0x712cdf)switch(_0x777a26['type']){case'text':if(_0x777a26['add']=_0x777a26['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x777a26['remove']=_0x777a26['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x777a26['add']&&''!=_0x777a26['remove']){_0x454bc1['push']({'type':'replace','content':c(_0x5adc12,'REPLACE_TEXT',['\x22'+_0x777a26['remove']+'\x22','\x22'+_0x777a26['add']+'\x22'])});continue;}if(null!=_0x777a26['add']['match'](/^ +$/)){_0x454bc1['push']({'type':'insertion','content':c(_0x5adc12,'*Insert:*\x20%0',c(_0x5adc12,'ELEMENT_SPACE',_0x777a26['add']['length']))});continue;}if(null!=_0x777a26['remove']['match'](/^ +$/)){_0x454bc1['push']({'type':'deletion','content':c(_0x5adc12,'*Remove:*\x20%0',c(_0x5adc12,'ELEMENT_SPACE',_0x777a26['remove']['length']))});continue;}if(''!=_0x777a26['add']){_0x454bc1['push']({'type':'insertion','content':c(_0x5adc12,'*Insert:*\x20%0','\x22'+_0x777a26['add']+'\x22')});continue;}_0x454bc1['push']({'type':'deletion','content':c(_0x5adc12,'*Remove:*\x20%0','\x22'+_0x777a26['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x454bc1['push']({'type':'insertion','content':c(_0x5adc12,'*Insert:*\x20%0',this['getItemLabel'](_0x777a26['element'],_0x777a26['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x454bc1['push']({'type':'deletion','content':c(_0x5adc12,'*Remove:*\x20%0',this['getItemLabel'](_0x777a26['element'],_0x777a26['quantity']))});continue;case'addContainer':_0x454bc1['push']({'type':'insertion','content':c(_0x5adc12,'*Split:*\x20%0',this['getItemLabel'](_0x777a26['element'],_0x777a26['quantity']))});continue;case'removeContainer':_0x454bc1['push']({'type':'deletion','content':c(_0x5adc12,'*Merge:*\x20%0',this['getItemLabel'](_0x777a26['element'],_0x777a26['quantity']))});continue;case'addFormat':_0x310aac['push'](_0x777a26['key']);continue;case'removeFormat':_0x1ae42d['push'](_0x777a26['key']);continue;default:_0x454bc1['push'](_0x777a26);}if(_0x310aac['length']){const _0x3b9659=_0x310aac['map'](_0x1edc07=>this['_attributeLabels']['has'](_0x1edc07)?this['_attributeLabels']['get'](_0x1edc07):_0x1edc07)['join'](',\x20');_0x454bc1['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x3b9659)});}if(_0x1ae42d['length']){const _0xad1e1=_0x1ae42d['map'](_0x49948e=>this['_attributeLabels']['has'](_0x49948e)?this['_attributeLabels']['get'](_0x49948e):_0x49948e)['join'](',\x20');_0x454bc1['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0xad1e1)});}return _0x454bc1;}['_handleCustomCallbackDescription'](_0x31d854){for(const _0x9562f6 of this['_customCallbacks']){const _0x2d291d=_0x9562f6(_0x31d854);if(_0x2d291d&&'type'in _0x2d291d)return _0x2d291d;}}['_handleAttributeSuggestionDescription'](_0x4b3ffa,_0x58b0e5){const _0x13ec64=_0x58b0e5['data'],_0x260188=void 0x0===_0x13ec64['newValue']?'removeFormat':'addFormat';_0x4b3ffa['push']({'type':_0x260188,'key':_0x13ec64['key']});}['_handleRenameSuggestionDescription'](_0x4022e7,_0x42c47d){_0x4022e7['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x42c47d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2a15ad,_0x3a4a25,_0x4d7305){if(this['_addDescriptionItems'](_0x2a15ad,_0x3a4a25),_0x4d7305&&_0x4d7305['getFirstRange']()&&!_0x3a4a25['getFirstRange']()['end']['isEqual'](_0x4d7305['getFirstRange']()['start'])){const _0x5663ef=_0x2a15ad[_0x2a15ad['length']-0x1],_0x4812c8='insertion'==_0x3a4a25['type']?'add':'remove';_0x5663ef&&'text'==_0x5663ef['type']&&(_0x5663ef[_0x4812c8]+='\x0a');}}}class U extends _0xc831a5{['afterInit'](){const _0x3383ca=this['editor'],_0x2b3fa2=_0x3383ca['plugins']['get']('TrackChangesEditing');_0x3383ca['commands']['get']('showAIAssistant')&&_0x2b3fa2['enableCommand']('showAIAssistant');}}class V extends _0xc831a5{['afterInit'](){const _0x1ddaf1=this['editor'],_0x35e821=_0x1ddaf1['locale'];if(!_0x1ddaf1['plugins']['has']('AlignmentEditing'))return;const _0x24f3c5=_0x1ddaf1['plugins']['get']('TrackChangesEditing');_0x24f3c5['enableDefaultAttributesIntegration']('alignment'),_0x24f3c5['registerBlockAttribute']('alignment'),_0x24f3c5['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x35e821,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e1dd3=this['editor'],_0x8ae1b1=_0x2e1dd3['locale'];_0x2e1dd3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24143b=>{if('formatBlock'!=_0x24143b['type'])return;const {data:_0x56c3be}=_0x24143b;if(_0x56c3be&&'alignment'==_0x56c3be['commandName']){const _0x120b82=_0x56c3be['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x8ae1b1,'*Format:*\x20%0',function(_0x2eb9b4){switch(_0x2eb9b4){case'left':return c(_0x8ae1b1,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x8ae1b1,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x8ae1b1,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x8ae1b1,'FORMAT_JUSTIFY_TEXT');}}(_0x120b82))};}});}}const Yt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0xc831a5{['afterInit'](){const _0x3c06ad=this['editor'],_0x30dd26=_0x3c06ad['plugins']['get']('TrackChangesEditing'),_0x39f9a6=_0x3c06ad['locale'];for(const _0xd8db94 of Yt){if(!_0x3c06ad['plugins']['has'](_0xd8db94))continue;const _0x303ec5=_0xd8db94['slice'](0x0,-0x7)['toLowerCase'](),_0x3fc254='FORMAT_'+_0x303ec5['toUpperCase']();_0x30dd26['enableDefaultAttributesIntegration'](_0x303ec5),_0x30dd26['registerInlineAttribute'](_0x303ec5),_0x30dd26['descriptionFactory']['registerAttributeLabel'](_0x303ec5,c(_0x39f9a6,_0x3fc254));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1063d0=this['editor'],_0x28d559=_0x1063d0['locale'],_0x37f969=_0x1063d0['plugins']['get']('TrackChangesEditing');function _0x5ae947(_0x4f7bce,_0x259082){_0x37f969['descriptionFactory']['registerDescriptionCallback'](_0x39b92c=>{if('formatInline'!=_0x39b92c['type'])return;const {data:_0x48f74c}=_0x39b92c;return _0x48f74c&&_0x48f74c['commandName']===_0x4f7bce?_0x48f74c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x28d559,'*Format:*\x20%0',_0x259082)}:{'type':'format','content':c(_0x28d559,'*Remove\x20format:*\x20%0',_0x259082)}:void 0x0;});}_0x5ae947('bold',c(_0x28d559,'FORMAT_BOLD')),_0x5ae947('italic',c(_0x28d559,'FORMAT_ITALIC')),_0x5ae947('underline',c(_0x28d559,'FORMAT_UNDERLINE')),_0x5ae947('code',c(_0x28d559,'FORMAT_CODE')),_0x5ae947('strikethrough',c(_0x28d559,'FORMAT_STRIKETHROUGH')),_0x5ae947('subscript',c(_0x28d559,'FORMAT_SUBSCRIPT')),_0x5ae947('superscript',c(_0x28d559,'FORMAT_SUPERSCRIPT'));}}class G extends _0xc831a5{['afterInit'](){const _0x53a527=this['editor'],_0x3c75d7=_0x53a527['locale'];if(!_0x53a527['plugins']['has']('BlockQuoteEditing'))return;const _0x1103b6=_0x53a527['plugins']['get']('TrackChangesEditing'),_0x15b6eb=this['editor']['commands']['get']('blockQuote');_0x1103b6['enableCommand']('blockQuote',(_0x5e39ab,_0x305dfc={})=>{const _0x4d07fb=this['editor']['model']['document']['selection'],_0x129640=_0x305dfc&&void 0x0!==_0x305dfc['forceValue']?_0x305dfc['forceValue']:!_0x15b6eb['value'];let _0x408794=[];if(_0x129640){const _0x5bfb53=Array['from'](_0x4d07fb['getSelectedBlocks']())['filter'](_0x5f4ccb=>to(_0x5f4ccb)||function(_0x598857,_0x49bb7f){const _0x521cbd=_0x49bb7f['checkChild'](_0x598857['parent'],'blockQuote'),_0x512b7f=_0x49bb7f['checkChild'](['$root','blockQuote'],_0x598857);return _0x521cbd&&_0x512b7f;}(_0x5f4ccb,this['editor']['model']['schema']));_0x408794=Zt(_0x5bfb53,_0x53a527['model']);}else{const _0x4bea52=Array['from'](_0x4d07fb['getSelectedBlocks']())['filter'](_0x48d23e=>to(_0x48d23e));_0x408794=Zt(_0x4bea52,_0x53a527['model']);}_0x53a527['model']['change'](()=>{for(const _0x48c18b of _0x408794)_0x1103b6['markBlockFormat'](_0x48c18b,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x129640}]});});}),_0x1103b6['descriptionFactory']['registerDescriptionCallback'](_0xf8d4ea=>{const {data:_0x15f8fc}=_0xf8d4ea;if(_0x15f8fc&&'blockQuote'==_0x15f8fc['commandName']){const _0x2a8d53=c(_0x3c75d7,'ELEMENT_BLOCK_QUOTE');return _0x15f8fc['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3c75d7,'*Set\x20format:*\x20%0',_0x2a8d53)}:{'type':'format','content':c(_0x3c75d7,'*Remove\x20format:*\x20%0',_0x2a8d53)};}});}}function to(_0x3093c7){return'blockQuote'==_0x3093c7['parent']['name'];}class L extends _0xc831a5{['afterInit'](){const _0x406f2e=this['editor'],_0x3bb193=_0x406f2e['locale'],_0x16e4b1=_0x406f2e['plugins']['get']('TrackChangesEditing');_0x406f2e['plugins']['has']('BookmarkEditing')&&(_0x16e4b1['enableCommand']('insertBookmark'),_0x16e4b1['enableDefaultAttributesIntegration']('updateBookmark'),_0x16e4b1['registerBlockAttribute']('bookmarkId'),_0x16e4b1['descriptionFactory']['registerDescriptionCallback'](_0x447291=>{if('insertion'!=_0x447291['type']&&'deletion'!=_0x447291['type']&&'attribute'!=_0x447291['type'])return;const _0x14731c=_0x447291['getContainedElement']();if(null==_0x14731c)return;if(!_0x14731c['is']('element','bookmark'))return;const _0x3227d6=_0x14731c['getAttribute']('bookmarkId');if('insertion'==_0x447291['type'])return{'type':'insertion','content':c(_0x3bb193,'*Insert:*\x20%0','\x22'+_0x3227d6+'\x22\x20'+c(_0x3bb193,'ELEMENT_BOOKMARK'))};if('deletion'==_0x447291['type'])return{'type':'deletion','content':c(_0x3bb193,'*Remove:*\x20%0','\x22'+_0x3227d6+'\x22\x20'+c(_0x3bb193,'ELEMENT_BOOKMARK'))};const {data:_0x22cf0f}=_0x447291;if(!_0x22cf0f||'bookmarkId'!=_0x22cf0f['key'])return;return{'type':'format','content':c(_0x3bb193,'*Set\x20bookmark:*\x20%0','\x22'+_0x22cf0f['newValue']+'\x22')};}));}}class J extends _0xc831a5{['afterInit'](){const _0x44311a=this['editor'];_0x44311a['plugins']['has']('CaseChange')&&(_0x44311a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x44311a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x44311a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0xc831a5{['afterInit'](){const _0x49a7cc=this['editor'];_0x49a7cc['commands']['get']('ckbox')&&_0x49a7cc['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0xc831a5{['afterInit'](){const _0x468cc4=this['editor'];if(!_0x468cc4['plugins']['has']('CodeBlock'))return;const _0x30167c=_0x468cc4['plugins']['get']('TrackChangesEditing'),_0x1b76b4=_0x468cc4['locale'],_0x56a55f=_0x468cc4['config']['get']('codeBlock')['languages'],_0x11569a=_0x468cc4['commands']['get']('codeBlock');_0x30167c['enableCommand']('indentCodeBlock'),_0x30167c['enableCommand']('outdentCodeBlock'),_0x30167c['enableCommand']('codeBlock',(_0x2c877e,_0x164ad8={})=>{const _0x2a84cd=_0x468cc4['model'],_0x5c0e6f=_0x468cc4['model']['document']['selection'],_0x6bd757=_0x164ad8&&void 0x0!==_0x164ad8['forceValue']?_0x164ad8['forceValue']:!_0x11569a['value'];let _0x2d06c1;_0x164ad8['language']||(_0x164ad8['language']=_0x56a55f[0x0]['language']),_0x2d06c1=_0x6bd757?Array['from'](_0x5c0e6f['getSelectedBlocks']())['filter'](_0x94dcaf=>oo(_0x94dcaf)||function(_0x27a5f3,_0x4becde){if(_0x27a5f3['is']('rootElement')||_0x4becde['isLimit'](_0x27a5f3))return!0x1;return _0x4becde['checkChild'](_0x27a5f3['parent'],'codeBlock');}(_0x94dcaf,_0x2a84cd['schema'])):Array['from'](_0x5c0e6f['getSelectedBlocks']())['filter'](_0x420459=>oo(_0x420459));const _0x4a5e46=Zt(_0x2d06c1,_0x2a84cd);_0x2a84cd['change'](()=>{for(const _0x23457d of _0x4a5e46)_0x30167c['markBlockFormat'](_0x23457d,{'commandName':'codeBlock','commandParams':[{..._0x164ad8,'forceValue':_0x6bd757}],'formatGroupId':'blockName'});});}),(_0x30167c['descriptionFactory']['registerElementLabel']('codeBlock',_0x5df131=>c(_0x1b76b4,'ELEMENT_CODE_BLOCK',_0x5df131)),_0x30167c['descriptionFactory']['registerDescriptionCallback'](_0x4564cd=>{if('formatBlock'!=_0x4564cd['type'])return;const _0x420ad3=_0x1b76b4['t'],{data:_0xe59ae1}=_0x4564cd;if(!_0xe59ae1||'codeBlock'!=_0xe59ae1['commandName'])return;const _0x7c59f4=_0xe59ae1['commandParams'][0x0]['language'],_0x39d7c6=_0x420ad3(_0x56a55f['find'](_0x494435=>_0x494435['language']===_0x7c59f4)['label'])['toLowerCase']();return _0xe59ae1['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1b76b4,'*Set\x20format:*\x20%0',c(_0x1b76b4,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x39d7c6+')')}:{'type':'format','content':c(_0x1b76b4,'*Remove\x20format:*\x20%0',c(_0x1b76b4,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x2530a4){return'codeBlock'==_0x2530a4['name'];}class q extends _0xc831a5{['afterInit'](){const _0x1ec814=this['editor'];if(!_0x1ec814['plugins']['has']('CommentsEditing'))return;_0x1ec814['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x229fe3,_0xd114fd,_0x1eebce){const _0x7b1594=[];for(const _0x240a6b of _0xd114fd['getItems']())_0x240a6b['hasAttribute'](_0x229fe3)&&_0x7b1594['push'](_0x1eebce['createRangeOn'](_0x240a6b));return _0x7b1594;}function De(_0x130dbb,_0x4efe31,{showActiveMarker:_0x3265cb=!0x0}={}){const _0x147f9b=_0x130dbb['plugins']['get']('TrackChangesEditing');return(_0x3b2262,_0x4f5dd1,_0xdf7792)=>{if(!_0xdf7792['consumable']['test'](_0x4f5dd1['markerRange'],_0x3b2262['name']))return;const _0x2a7428=_0x4f5dd1['markerRange']['getWalker'](),_0x4ed7f6=_0x4f5dd1['markerRange']['start'],_0x1cd335=_0x130dbb['model']['schema'];let _0x2d61ea=null,_0x252239=null,_0x5486d6=!0x1,_0x35884a=!0x1;for(const _0xefb921 of _0x2a7428){const _0x21f9aa=_0xefb921['item'];_0x5486d6=_0x5486d6||_0x1cd335['isContent'](_0x21f9aa);const _0x457bf4=_0xdf7792['mapper']['toViewElement'](_0x21f9aa);if(_0x457bf4&&_0x457bf4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xefb921['type']&&(_0x1cd335['isBlock'](_0x21f9aa)&&!_0x1cd335['isLimit'](_0x21f9aa)&&(_0x21f9aa['nextSibling']||_0x4ed7f6['isAtEnd']?_0x2d61ea&&_0x2d61ea['parent']==_0x21f9aa||(_0x2d61ea=_0x21f9aa,_0x36349c(_0xefb921['previousPosition']),_0x35884a=!0x0):_0x252239=_0x252239||_0xefb921['previousPosition']));}function _0x36349c(_0x37ae7c){const {authorId:_0x57d8d8}=_0x147f9b['_splitMarkerName'](_0x4f5dd1['markerName']),_0x4ff854=_0xdf7792['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4efe31,'data-author-id':_0x57d8d8}),_0x39282e=_0xdf7792['mapper']['toViewPosition'](_0x37ae7c);_0x3265cb&&_0x147f9b['activeMarkers']['includes'](_0x4f5dd1['markerName'])&&_0xdf7792['writer']['addClass']('ck-suggestion-marker--active',_0x4ff854),_0xdf7792['writer']['insert'](_0x39282e,_0x4ff854),_0xdf7792['mapper']['bindElementToMarker'](_0x4ff854,_0x4f5dd1['markerName']);}_0x5486d6||_0x35884a||!_0x252239||_0x36349c(_0x252239);};}class z extends _0xc831a5{static get['requires'](){return[_0xa8d436];}['init'](){const _0x109c45=this['editor'],_0x570aac=_0x109c45['plugins']['get']('TrackChangesEditing');_0x570aac['enableCommand']('delete');const _0x527d15=_0x109c45['commands']['get']('deleteForward');_0x570aac['enableCommand']('deleteForward',(_0x1a32aa,_0x510a4c={})=>{const _0xeaeb85=_0x109c45['model']['createSelection'](_0x109c45['model']['document']['selection']);_0xeaeb85['isCollapsed']&&_0x109c45['model']['modifySelection'](_0xeaeb85,{'direction':'forward','unit':_0x510a4c['unit']});const _0x5317f4=_0xeaeb85['getFirstRange'](),_0x150c62=_0x1a0cce['fromRange'](_0x5317f4);let _0x14a710;_0x1a32aa(_0x510a4c),_0x14a710='$graveyard'==_0x150c62['root']['rootName']?_0x109c45['model']['createRange'](_0x5317f4['start']):_0x109c45['model']['createRange'](_0x150c62['start'],_0x150c62['end']),_0x150c62['detach'](),_0x109c45['model']['enqueueChange'](_0x527d15['buffer']['batch'],_0xf394a9=>{_0x527d15['buffer']['lock'](),_0xf394a9['setSelection'](_0xf394a9['createRange'](_0x14a710['end'])),_0x527d15['buffer']['unlock']();});}),_0x109c45['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x109c45,'merge'),{'priority':'high'}),_0x109c45['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x589c28,_0x5897be,_0x373435)=>{_0x373435['options']['showSuggestionHighlights']&&De(_0x109c45,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x589c28,_0x5897be,_0x373435);},{'priority':'high'}),_0x109c45['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x40282e,_0x820107,_0x5ddefc)=>{const _0x21444b=_0x5ddefc['mapper']['markerNameToElements'](_0x820107['markerName']);if(_0x21444b){for(const _0x526bac of _0x21444b)_0x526bac['is']('uiElement')&&(_0x5ddefc['mapper']['unbindElementFromMarkerName'](_0x526bac,_0x820107['markerName']),_0x5ddefc['writer']['remove'](_0x526bac));}},{'priority':'high'});}}class W extends _0xc831a5{['afterInit'](){const _0x3a99c3=this['editor'];if(!_0x3a99c3['plugins']['has']('ListEditing'))return;const _0x5d68bc=_0x3a99c3['locale'],_0x4ebae2=_0x3a99c3['plugins']['get']('TrackChangesEditing'),_0xf41d66=_0x3a99c3['plugins']['has']('TodoListEditing'),_0x1080a5=!!_0x3a99c3['config']['get']('list.multiBlock');function _0x33f232(_0x1c61db){return{'type':'format','content':''+c(_0x5d68bc,'*Set\x20format:*\x20%0',_0x1c61db)};}function _0x2e3ec6(_0x22e2d4){return{'type':'format','content':''+c(_0x5d68bc,'*Remove\x20format:*\x20%0',_0x22e2d4)};}_0x4ebae2['enableDefaultAttributesIntegration']('numberedList'),_0x4ebae2['enableDefaultAttributesIntegration']('bulletedList'),_0x4ebae2['enableDefaultAttributesIntegration']('customNumberedList'),_0x4ebae2['enableDefaultAttributesIntegration']('customBulletedList'),_0x4ebae2['enableDefaultAttributesIntegration']('indentList'),_0x4ebae2['enableDefaultAttributesIntegration']('outdentList'),_0x4ebae2['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4ebae2['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4ebae2['registerBlockAttribute']('listItemId'),_0x4ebae2['registerBlockAttribute']('listType'),_0x4ebae2['registerBlockAttribute']('listIndent'),_0x1080a5&&(_0x4ebae2['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4ebae2['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xf41d66&&(_0x4ebae2['enableDefaultAttributesIntegration']('todoList'),_0x4ebae2['enableDefaultAttributesIntegration']('checkTodoList'),_0x4ebae2['registerBlockAttribute']('todoListChecked'),_0x4ebae2['descriptionFactory']['registerDescriptionCallback'](_0x1341cf=>{const {data:_0x272377}=_0x1341cf;if(_0x272377&&'todoListChecked'==_0x272377['key'])return{'type':'format','content':_0x272377['newValue']?c(_0x5d68bc,'*Check\x20item*'):c(_0x5d68bc,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3c4255=>{if(_0x3c4255['batch']['isUndo'])return!0x1;let _0xd4b002=!0x1;const _0x1679cf=_0x4ebae2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x23e5dc=>'todoListChecked'===_0x4ebae2['_getAttributeKey'](_0x23e5dc));for(const _0x3e86b3 of _0x1679cf){'todo'!=_0x3e86b3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4ebae2['_findSuggestions'](_0x3e86b3['getFirstRange'](),'attribute')['find'](_0x1c5894=>'listType'===_0x4ebae2['_getAttributeKey'](_0x1c5894['suggestion']))||(_0x3c4255['removeMarker'](_0x3e86b3['getFirstMarker']()),_0xd4b002=!0x0));}return _0xd4b002;})),_0x4ebae2['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x5d68bc,'FORMAT_INDENT'));const _0x303df5={'type':'format','content':''};_0x4ebae2['descriptionFactory']['registerDescriptionCallback'](_0x284071=>{const {data:_0x38124f}=_0x284071;if(!_0x38124f||'listType'!=_0x38124f['key'])return;let _0x2f6f59=_0x284071['head'];for(;_0x2f6f59;){if(_0x2f6f59['data']&&(('listStyle'==_0x2f6f59['data']['key']||'listMarkerStyle'==_0x2f6f59['data']['key'])&&(_0x2f6f59['data']['newValue']&&'default'!=_0x2f6f59['data']['newValue']||'default'!=_0x2f6f59['data']['oldValue']&&!_0x38124f['newValue'])||!_0x1080a5&&_0x2f6f59['data']['key']==u))return _0x303df5;_0x2f6f59=_0x2f6f59['next'];}if(null==_0x38124f['newValue'])switch(_0x38124f['oldValue']){case'bulleted':return _0x2e3ec6(c(_0x5d68bc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2e3ec6(c(_0x5d68bc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2e3ec6(c(_0x5d68bc,'ELEMENT_TODO_LIST'));}switch(_0x38124f['newValue']){case'bulleted':return _0x33f232(c(_0x5d68bc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x33f232(c(_0x5d68bc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x33f232(c(_0x5d68bc,'ELEMENT_TODO_LIST'));}}),_0x4ebae2['descriptionFactory']['registerDescriptionCallback'](_0xb15026=>{const {data:_0x15d307}=_0xb15026;if(_0x15d307&&'listIndent'==_0x15d307['key'])return null==_0x15d307['newValue']||null==_0x15d307['oldValue']&&0x0==_0x15d307['newValue']?_0x303df5:void 0x0;}),_0x4ebae2['descriptionFactory']['registerDescriptionCallback'](_0x53fbba=>{if('attribute'!=_0x53fbba['type'])return;const {data:_0x367680}=_0x53fbba;if(!_0x367680||'listItemId'!=_0x367680['key'])return;const _0x5a830f=Te(_0x53fbba);return'newValue'==_0x5a830f?{'type':'format','content':c(_0x5d68bc,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5a830f?{'type':'format','content':c(_0x5d68bc,'*Split:*\x20list\x20item')}:_0x303df5;}),_0x3a99c3['model']['document']['registerPostFixer'](_0x311762=>this['listItemIdFixer'](_0x311762)),_0x3a99c3['model']['document']['registerPostFixer'](_0x1c20cd=>this['noTrackChangesFixer'](_0x1c20cd)),_0x3a99c3['model']['document']['on']('change:data',(_0xf00560,_0x5e02cb)=>{if(_0x5e02cb['isUndo']||!_0x5e02cb['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x49e920){if(_0x49e920['batch']['isUndo']||!_0x49e920['batch']['isLocal'])return!0x1;let _0x1e2818=!0x1;const _0x29fd89=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2489c7=>_0x2489c7['data']&&'listItemId'==_0x2489c7['data']['key'])['filter'](_0x436dd6=>_0x436dd6['data']['newValue']&&_0x436dd6['data']['oldValue']);for(const _0x5e78e5 of _0x29fd89)Te(_0x5e78e5)||(_0x49e920['removeMarker'](_0x5e78e5['getFirstMarker']()),_0x1e2818=!0x0);return _0x1e2818;}['noTrackChangesFixer'](_0x32b35d){if(_0x32b35d['batch']['isUndo']||!_0x32b35d['batch']['isLocal'])return!0x1;const _0x37b44f=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x37b44f['trackChangesCommand']['value'])return!0x1;let _0x4320e8=!0x1;const _0x4b3329=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2907f9=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4878f7=>'attribute'==_0x4878f7['type'])['filter'](_0x45e2b7=>_0x4b3329['includes'](_0x45e2b7['attributeKey']));if(0x0==_0x2907f9['length'])return _0x4320e8;for(const _0x30f8ca of _0x2907f9){const _0x9dfefd=_0x37b44f['_findSuggestions'](_0x30f8ca['range'],'attribute')['filter'](_0x33693b=>!_0x33693b['meta']['isNextTo'])['map'](_0x184cbb=>_0x184cbb['suggestion'])['filter'](_0x4563c5=>{const _0x211b24=_0x37b44f['_getAttributeKey'](_0x4563c5);return _0x4b3329['includes'](_0x211b24);});if(_0x9dfefd['length']){for(const _0x56c2c9 of _0x9dfefd)_0x32b35d['removeMarker'](_0x56c2c9['getFirstMarker']());_0x4320e8=!0x0;}}return _0x4320e8;}['assureChains'](){const _0xe49949=this['editor']['plugins']['get']('TrackChangesEditing'),_0x375d6d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2c6105;const _0x398805=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x56026d=>{if(_0x56026d['data']['oldRange']||!_0x56026d['data']['newRange'])return null;if(!_0x56026d['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3f58d4}=_0xe49949['_splitMarkerName'](_0x56026d['name']);if(!_0xe49949['hasSuggestion'](_0x3f58d4))return null;const _0x40e8ab=_0xe49949['getSuggestion'](_0x3f58d4);return _0x375d6d['includes'](_0x40e8ab['data']['key']);})['map'](_0x240b16=>{const {id:_0x22fb7a}=_0xe49949['_splitMarkerName'](_0x240b16['name']),_0x448638=_0xe49949['getSuggestion'](_0x22fb7a);return _0x2c6105=_0x448638['attributes']['groupId'],_0x448638['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x398805['size'])return;const _0x502b34=_0xe49949['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4b6413=>'attribute'==_0x4b6413['type']&&_0x4b6413['data']&&_0x375d6d['includes'](_0x4b6413['data']['key'])&&_0x4b6413['attributes']['groupId']!=_0x2c6105)['map'](_0x326758=>({'listItem':_0x326758['getFirstRange']()['start']['nodeAfter'],'groupId':_0x326758['attributes']['groupId']})),_0x25e0bd=new Set();for(const {groupId:_0x2e4643,listItem:_0x419e6b}of _0x502b34)_0x398805['has'](_0x419e6b)&&_0x25e0bd['add'](_0x2e4643);for(const _0x3ac2f2 of _0xe49949['getSuggestions']())_0x25e0bd['has'](_0x3ac2f2['attributes']['groupId'])&&_0x3ac2f2['setAttribute']('groupId',_0x2c6105);}['_supportLegacySuggestions'](){const _0x559dd0=this['editor'],_0x25841e=_0x559dd0['locale'],_0x95c80=_0x559dd0['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x95c80['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x42b2cc,_0x1e0f25){const _0x4f8e6e=[];for(let _0x6f9414 of _0x42b2cc)_0x6f9414['start']['nodeAfter']===_0x6f9414['end']['parent']&&(_0x6f9414=_0x559dd0['model']['createRange'](_0x559dd0['model']['createPositionAt'](_0x6f9414['start']['nodeAfter'],0x0))),_0x4f8e6e['push'](_0x6f9414);_0x559dd0['model']['change'](_0x56cfcb=>{const _0x318382=_0x559dd0['model']['document']['selection'],_0x56ddf1=Array['from'](_0x318382['getRanges']())['map'](_0x5c42b0=>_0x1a0cce['fromRange'](_0x5c42b0));_0x56cfcb['setSelection'](_0x4f8e6e),_0x559dd0['commands']['get'](_0x1e0f25['commandName'])['refresh'](),_0x1e0f25['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x559dd0['execute'](_0x1e0f25['commandName'],..._0x1e0f25['commandParams']),_0x56cfcb['setSelection'](_0x56ddf1);for(const _0x384ab5 of _0x56ddf1)_0x384ab5['detach']();});}),_0x95c80['descriptionFactory']['registerElementLabel'](function(_0x129c92){const _0x1a40b3=!_0x559dd0['model']['schema']['isObject'](_0x129c92),_0x60eda5=_0x129c92['previousSibling'],_0x34678c=_0x129c92['nextSibling'],_0x48205d=_0x129c92['getAttribute']('listItemId'),_0x1de0c5=!_0x60eda5||_0x60eda5['getAttribute']('listItemId')!==_0x48205d,_0x2c50d6=!_0x34678c||_0x34678c['getAttribute']('listItemId')!==_0x48205d;return _0x1a40b3&&Boolean(_0x48205d)&&_0x1de0c5&&_0x2c50d6;},_0x577502=>c(_0x25841e,'ELEMENT_LIST_ITEM',_0x577502));}['_registerLegacyDescription'](){const _0x2da93d=this['editor'],_0x36cc9c=_0x2da93d['locale'];function _0x9b9e85(_0x3749e3){const _0x136228=_0x2da93d['commands']['get']('bulletedList')['value'],_0x31581c=_0x2da93d['commands']['get']('numberedList')['value'];return'numberedList'===_0x3749e3?_0x136228:_0x31581c;}_0x2da93d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1e7ead){if('formatBlock'!=_0x1e7ead['type'])return;const {data:_0x166dad}=_0x1e7ead;if(!_0x166dad)return;let _0xe1dd98,_0x4a0ba7,_0x288bff,_0x4cc5f5;switch(_0x166dad['commandName']){case'bulletedList':_0x288bff=_0x166dad['commandParams'][0x0]['forceValue'],_0x4cc5f5=_0x9b9e85(_0x166dad['commandName']),_0xe1dd98=_0x288bff?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4cc5f5&&_0x2da93d['config']['get']('list.multiBlock')||(_0xe1dd98='*Change\x20to:*\x20%0'),_0x4a0ba7={'type':'format','content':c(_0x36cc9c,_0xe1dd98,c(_0x36cc9c,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x288bff=_0x166dad['commandParams'][0x0]['forceValue'],_0x4cc5f5=_0x9b9e85(_0x166dad['commandName']),_0xe1dd98=_0x288bff?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4cc5f5&&_0x2da93d['config']['get']('list.multiBlock')||(_0xe1dd98='*Change\x20to:*\x20%0'),_0x4a0ba7={'type':'format','content':c(_0x36cc9c,_0xe1dd98,c(_0x36cc9c,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xe1dd98='*Indent:*\x20%0',_0x4a0ba7={'type':'format','content':c(_0x36cc9c,_0xe1dd98,c(_0x36cc9c,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xe1dd98=function(_0x5c201b){const _0x20d8ee=_0x5c201b['getFirstRange']();let _0x13d42b=_0x20d8ee['start']['nodeAfter'];for(;_0x13d42b&&_0x20d8ee['containsItem'](_0x13d42b);){if(_0x13d42b['getAttribute']('listIndent')>0x0)return!0x1;_0x13d42b=_0x13d42b['nextSibling'];}return!0x0;}(_0x1e7ead)?c(_0x36cc9c,'*Format:*\x20remove\x20from\x20%0',c(_0x36cc9c,function(_0x29042b){return'ELEMENT_'+_0x29042b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1e7ead))):c(_0x36cc9c,'*Outdent:*\x20%0',c(_0x36cc9c,'ELEMENT_LIST_ITEM')),_0x4a0ba7={'type':'format','content':_0xe1dd98};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x166dad['multipleBlocks']&&(_0xe1dd98='*Merge:*\x20%0',_0x4a0ba7={'type':'deletion','content':c(_0x36cc9c,_0xe1dd98,c(_0x36cc9c,'ELEMENT_LIST_ITEM'))});}return _0x4a0ba7;});}}function Te(_0x355649){let _0x291114=_0x355649['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x291114;){const _0x371746=_0x291114['getAttribute']('listItemId');if(!_0x371746)return!0x1;if(_0x371746==_0x355649['data']['newValue'])return'newValue';if(_0x371746==_0x355649['data']['oldValue'])return'oldValue';_0x291114=_0x291114['previousSibling'];}return!0x1;}class Se extends _0xc831a5{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5b3cbd=this['editor']['config']['get']('list.properties'),_0x422a3e=this['editor']['plugins']['get']('TrackChangesEditing');_0x5b3cbd['styles']&&(_0x422a3e['enableDefaultAttributesIntegration']('listStyle'),_0x422a3e['registerBlockAttribute']('listStyle')),_0x5b3cbd['reversed']&&(_0x422a3e['enableDefaultAttributesIntegration']('listReversed'),_0x422a3e['registerBlockAttribute']('listReversed')),_0x5b3cbd['startIndex']&&(_0x422a3e['enableDefaultAttributesIntegration']('listStart'),_0x422a3e['registerBlockAttribute']('listStart'));const _0x39ea1c={'type':'format','content':''};_0x422a3e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3516ef=this['editor']['locale'];_0x422a3e['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x3516ef,'FORMAT_LIST_REVERSED')),_0x422a3e['descriptionFactory']['registerDescriptionCallback'](_0x2a551a=>{const {data:_0x8c8bd2}=_0x2a551a;if(_0x8c8bd2&&'listReversed'==_0x8c8bd2['key'])return null==_0x8c8bd2['newValue']||0x0==_0x8c8bd2['newValue']&&null==_0x8c8bd2['oldValue']?_0x39ea1c:void 0x0;}),_0x422a3e['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x3516ef,'FORMAT_LIST_START')),_0x422a3e['descriptionFactory']['registerDescriptionCallback'](_0x799713=>{const {data:_0x1d3bf5}=_0x799713;if(_0x1d3bf5&&'listStart'==_0x1d3bf5['key'])return null==_0x1d3bf5['newValue']||0x1==_0x1d3bf5['newValue']&&null==_0x1d3bf5['oldValue']?_0x39ea1c:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5f3f45=>{if(_0x5f3f45['batch']['isUndo'])return!0x1;let _0x377181=!0x1;const _0x566b77=_0x422a3e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49b882=>{const _0x331aef=_0x422a3e['_getAttributeKey'](_0x49b882);return'listStart'==_0x331aef||'listReversed'==_0x331aef;});for(const _0x1b5c88 of _0x566b77){const _0x339c23=_0x1b5c88['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x339c23||'customNumbered'==_0x339c23)continue;_0x422a3e['_findSuggestions'](_0x1b5c88['getFirstRange'](),'attribute')['find'](_0x22f221=>'listType'==_0x422a3e['_getAttributeKey'](_0x22f221['suggestion']))||(_0x5f3f45['removeMarker'](_0x1b5c88['getFirstMarker']()),_0x377181=!0x0);}return _0x377181;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x495478){const _0x371ca7=this['editor']['locale'],{data:_0x44e3e5}=_0x495478,_0x1b9dc8={'type':'format','content':''};if(!_0x44e3e5||'listStyle'!=_0x44e3e5['key'])return;if(!_0x44e3e5['oldValue'])return'default'==_0x44e3e5['newValue']?_0x1b9dc8:{'type':'format','content':''+c(_0x371ca7,'*Set\x20format:*\x20%0',c(_0x371ca7,this['_getTranslationKeyForListStyle'](_0x44e3e5['newValue'])))};if(!_0x44e3e5['newValue']){if('default'==_0x44e3e5['oldValue'])return _0x1b9dc8;let _0x1f4d0b=_0x495478['head'];for(;_0x1f4d0b;){if(_0x1f4d0b['data']&&'listType'==_0x1f4d0b['data']['key']&&_0x1f4d0b['data']['newValue'])return _0x1b9dc8;_0x1f4d0b=_0x1f4d0b['next'];}return{'type':'format','content':''+c(_0x371ca7,'*Remove\x20format:*\x20%0',c(_0x371ca7,this['_getTranslationKeyForListStyle'](_0x44e3e5['oldValue'])))};}if('default'!=_0x44e3e5['newValue'])return{'type':'format','content':''+c(_0x371ca7,'*Set\x20format:*\x20%0',c(_0x371ca7,this['_getTranslationKeyForListStyle'](_0x44e3e5['newValue'])))};let _0x524d01=_0x495478['head'];for(;_0x524d01;){if(_0x524d01['data']&&'listType'==_0x524d01['data']['key']&&_0x524d01['data']['newValue']&&_0x524d01['data']['oldValue'])return _0x1b9dc8;_0x524d01=_0x524d01['next'];}return{'type':'format','content':c(_0x371ca7,'*Set\x20format:*\x20%0',c(_0x371ca7,'ELEMENT_'+_0x495478['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x537dc0=this['editor'],_0x2a8836=_0x537dc0['locale'];_0x537dc0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28da5d=>{if('formatBlock'!=_0x28da5d['type'])return;const {data:_0x184101}=_0x28da5d;if(!_0x184101)return;let _0x4d0c45,_0x5c5eaf;switch(_0x184101['commandName']){case'listStyle':_0x4d0c45='*Change\x20to:*\x20%0',_0x5c5eaf={'type':'format','content':c(_0x2a8836,_0x4d0c45,c(_0x2a8836,this['_getTranslationKeyForListStyle'](_0x184101['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4d0c45=_0x184101['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5c5eaf={'type':'format','content':c(_0x2a8836,_0x4d0c45)};break;case'listStart':_0x4d0c45='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5c5eaf={'type':'format','content':c(_0x2a8836,_0x4d0c45,_0x184101['commandParams'][0x0]['startIndex'])};}return _0x5c5eaf;});}['_getTranslationKeyForListStyle'](_0x4566c4){return'ELEMENT_'+function(_0x522474){if(_e['includes'](_0x522474))return'bulleted';if(Re['includes'](_0x522474))return'numbered';return null;}(_0x4566c4)['toUpperCase']()+'_LIST_'+_0x4566c4['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0xc831a5{['afterInit'](){const _0x880c7b=this['editor'];_0x880c7b['commands']['get']('emoji')&&_0x880c7b['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0xc831a5{static get['requires'](){return[_0x5be59d];}['init'](){const _0x368b2d=this['editor'],_0x3447f9=_0x368b2d['plugins']['get']('TrackChangesEditing'),_0x59cd6f=_0x368b2d['commands']['get']('enter');_0x3447f9['enableCommand']('enter',()=>{_0x368b2d['model']['change'](_0x2dda36=>{const _0x5679ff=_0x368b2d['model']['document']['selection'],_0x14650f=_0x5679ff['getFirstPosition'](),_0xcbd95d=_0x1a0cce['fromRange'](_0x5679ff['getFirstRange']());if(_0x59cd6f['enterBlock'](_0x2dda36)){const _0x481447=_0x368b2d['model']['createPositionAt'](_0x14650f['parent']['nextSibling'],0x0),_0x1675d2=_0x2dda36['createRange'](_0x14650f,_0x481447);_0x3447f9['markInsertion'](_0x1675d2);}else _0x2dda36['setSelection'](_0x2dda36['createRange'](_0xcbd95d['end']));_0xcbd95d['detach'](),_0x59cd6f['fire']('afterExecute',{'writer':_0x2dda36});});}),_0x368b2d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x368b2d,'split'),{'priority':'high'}),_0x368b2d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1f3299,_0x2b2b82,_0x3101b0)=>{const _0x53e6a0=_0x3101b0['mapper']['markerNameToElements'](_0x2b2b82['markerName']);if(_0x53e6a0){for(const _0x492f6c of _0x53e6a0)_0x492f6c['hasClass']('ck-suggestion-marker-split')&&(_0x3101b0['mapper']['unbindElementFromMarkerName'](_0x492f6c,_0x2b2b82['markerName']),_0x3101b0['writer']['remove'](_0x492f6c));}},{'priority':'high'}),_0x368b2d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5f2d2d,_0x228f1b,_0x2a9b75)=>{_0x2a9b75['options']['showSuggestionHighlights']&&De(_0x368b2d,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5f2d2d,_0x228f1b,_0x2a9b75);},{'priority':'high'});}}class Z extends _0xc831a5{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x318f72=this['editor']['plugins']['get']('TrackChangesEditing');_0x318f72['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x318f72['enableCommand']('findNext'),_0x318f72['enableCommand']('findPrevious'),_0x318f72['enableCommand']('replace'),_0x318f72['enableCommand']('replaceAll');}['handleFindCommand'](_0x4ea979,_0x5ecbeb,_0x3c4c86={}){const _0x38866b=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4ea979(_0x442082=>{let _0x284bfc=('string'==typeof _0x5ecbeb?_0x38866b['findByTextCallback'](_0x5ecbeb,_0x3c4c86):_0x5ecbeb)(_0x442082);Array['isArray'](_0x284bfc)&&(_0x284bfc={'results':_0x284bfc,'searchText':'string'==typeof _0x5ecbeb?_0x5ecbeb:''});const _0x3c1976=_0x284bfc['results']['filter'](_0x592b7e=>!0x1===this['_isInDeletionRange'](_0x592b7e,_0x442082['item']));return{..._0x284bfc,'results':_0x3c1976};},_0x3c4c86);}['_isInDeletionRange'](_0x4e53f6,_0x4bced1){const _0x5ee7bd=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4bced1,_0x4e53f6['start']),this['editor']['model']['createPositionAt'](_0x4bced1,_0x4e53f6['end']));for(const _0xf796af of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5ee7bd['getIntersection'](_0xf796af['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0xc831a5{['afterInit'](){const _0x51212a=this['editor']['locale'],_0x2fc56d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3cd9eb,commandName:_0x1c4f28}of eo)this['editor']['plugins']['has'](_0x3cd9eb)&&(_0x2fc56d['enableDefaultAttributesIntegration'](_0x1c4f28),_0x2fc56d['registerInlineAttribute'](_0x1c4f28));_0x2fc56d['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x51212a,'FORMAT_FONT_SIZE')),_0x2fc56d['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x51212a,'FORMAT_FONT_FAMILY')),_0x2fc56d['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x51212a,'FORMAT_FONT_COLOR')),_0x2fc56d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x51212a,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1aed7b=this['editor'],_0x436b7c=_0x1aed7b['locale'];_0x1aed7b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ca018=>{const _0x5eb294=_0x436b7c['t'];if('formatInline'!=_0x2ca018['type'])return;const {data:_0x4d6cf6}=_0x2ca018;if(null!=_0x4d6cf6){if('fontSize'==_0x4d6cf6['commandName']){const _0x2fd20=_0x4d6cf6['commandParams'][0x0]['value'];if(_0x2fd20){const _0x196ba4=_0x5eb294(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x38ffe7=>_0x38ffe7['model']==_0x2fd20)['title'])['toLowerCase']();return{'type':'format','content':c(_0x436b7c,'*Set\x20font\x20size:*\x20%0',_0x196ba4)};}return{'type':'format','content':c(_0x436b7c,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4d6cf6['commandName']){const _0xf26446=_0x4d6cf6['commandParams'][0x0]['value'];return _0xf26446?{'type':'format','content':c(_0x436b7c,'*Set\x20font\x20family:*\x20%0',_0xf26446)}:{'type':'format','content':c(_0x436b7c,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4d6cf6['commandName']){const _0x1d5012=_0x4d6cf6['commandParams'][0x0]['value'];if(_0x1d5012){const _0x3a055e=_0x340b26(this['editor']['config']['get']('fontColor.colors'))['find'](_0x38d464=>_0x38d464['model']==_0x1d5012);let _0x3486de=_0x1d5012,_0x5c279b='';return _0x3a055e&&(_0x3486de=_0x3a055e['label'],_0x5c279b=_0x5eb294(_0x3486de)['toLowerCase']()),{'type':'format','content':c(_0x436b7c,'*Set\x20font\x20color:*\x20%0',_0x5c279b)['trim'](),'color':{'value':_0x1d5012,'title':_0x5c279b||_0x3486de}};}return{'type':'format','content':c(_0x436b7c,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4d6cf6['commandName']){const _0x204643=_0x4d6cf6['commandParams'][0x0]['value'];if(_0x204643){const _0x5c7de3=_0x340b26(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x353ae6=>_0x353ae6['model']==_0x204643);let _0x3d0204=_0x204643,_0x22cb4d='';return _0x5c7de3&&(_0x3d0204=_0x5c7de3['label'],_0x22cb4d=_0x5eb294(_0x3d0204)['toLowerCase']()),{'type':'format','content':c(_0x436b7c,'*Set\x20font\x20background\x20color:*\x20%0',_0x22cb4d)['trim'](),'color':{'value':_0x204643,'title':_0x22cb4d||_0x3d0204}};}return{'type':'format','content':c(_0x436b7c,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0xc831a5{['afterInit'](){const _0x17260d=this['editor'],_0x554ba7=_0x17260d['plugins']['get']('TrackChangesEditing'),_0x176f10=_0x17260d['commands']['get']('copyFormat'),_0x14bb52=_0x17260d['commands']['get']('pasteFormat');_0x176f10&&_0x14bb52&&(_0x554ba7['enableDefaultAttributesIntegration']('pasteFormat'),_0x554ba7['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x8196fb=this['editor'],_0x3f351e=_0x8196fb['locale'];_0x8196fb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24faec=>{if('formatBlock'!=_0x24faec['type']&&'formatInline'!=_0x24faec['type'])return;const {data:_0x2e7d0e}=_0x24faec;if(_0x2e7d0e&&'pasteFormat'===_0x2e7d0e['commandName']){const _0x1bd417=[],_0x20a4bb=_0x2e7d0e['commandParams'][0x0];for(const [_0x3677ca,_0x4832f8]of Object['entries'](_0x20a4bb))_0x1bd417['push'](ro(_0x8196fb,_0x3677ca,_0x4832f8));return _0x1bd417['length']?{'type':'format','content':c(_0x3f351e,'*Set\x20format\x20to:*\x20%0',_0x1bd417['join'](',\x20'))}:{'type':'format','content':c(_0x3f351e,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x4497af,_0x421293,_0x521757){const _0x1d584f=_0x4497af['locale']['t'],_0x99c777=_0x421293['split'](/(?=[A-Z])/)['join']('\x20'),_0x36a2f0=_0x1d584f(_0x99c777['charAt'](0x0)['toUpperCase']()+_0x99c777['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x521757)return _0x36a2f0;if('fontColor'===_0x421293||'fontBackgroundColor'===_0x421293){const _0xffdb92=_0x340b26(_0x4497af['config']['get']('fontColor.colors'))['find'](_0x135a9f=>_0x135a9f['model']==_0x521757);return _0x36a2f0+'\x20('+(_0xffdb92?_0x1d584f(_0xffdb92['label'])['toLowerCase']():_0x521757)+')';}if('fontSize'===_0x421293&&isNaN(parseFloat(_0x521757))){const _0x39f807=_0x4497af['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4497af['config']['get']('fontSize.options'))['find'](_0x44a6f8=>_0x44a6f8['model']==_0x521757);return _0x36a2f0+'\x20('+(_0x39f807?_0x1d584f(_0x39f807['title'])['toLowerCase']():_0x521757)+')';}return _0x36a2f0+'\x20('+_0x521757+')';}class nt extends _0xc831a5{['_headingOptions'];['afterInit'](){const _0x43066b=this['editor'];if(!_0x43066b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x43066b['config']['get']('heading.options');const _0x1ed80e=_0x43066b['locale'],_0x244a42=_0x43066b['plugins']['get']('TrackChangesEditing');_0x244a42['enableDefaultAttributesIntegration']('heading');for(const _0x2c7ac0 of this['_headingOptions'])'paragraph'!=_0x2c7ac0['model']&&_0x244a42['descriptionFactory']['registerElementLabel'](_0x2c7ac0['model'],_0x1e8c1f=>{const _0x3da1ea=this['_getHeadingLevel'](_0x2c7ac0['model']);return null!==_0x3da1ea?_0x5be2b7(_0x1e8c1f,_0x3da1ea):_0xee8f9d(_0x1e8c1f,_0x2c7ac0['title']);});function _0x5be2b7(_0xc2a6f3,_0x282412){return c(_0x1ed80e,'ELEMENT_HEADING',[_0xc2a6f3,_0x282412]);}function _0xee8f9d(_0x552d38,_0x5ab298){return c(_0x1ed80e,'ELEMENT_HEADING_CUSTOM',[_0x552d38,_0x5ab298]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xab0e6f=this['editor'],_0x54852e=_0xab0e6f['locale'];function _0x383f72(_0x1cf079,_0x51fc9c){return c(_0x54852e,'ELEMENT_HEADING_CUSTOM',[_0x1cf079,_0x51fc9c]);}_0xab0e6f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14eb0e=>{if('formatBlock'!=_0x14eb0e['type'])return;const {data:_0x559b2b}=_0x14eb0e;if(_0x559b2b&&'heading'==_0x559b2b['commandName']){const _0x5c4b7e=_0x559b2b['commandParams'][0x0]['value'],_0x2d2ba4=this['_getHeadingLevel'](_0x5c4b7e);if(null!==_0x2d2ba4)return{'type':'format','content':c(_0x54852e,'*Change\x20to:*\x20%0',(_0x21a7fc=0x1,_0x295709=_0x2d2ba4,c(_0x54852e,'ELEMENT_HEADING',[_0x21a7fc,_0x295709])))};const _0x1091e6=this['_headingOptions']['find'](_0x5ac34e=>_0x5ac34e['model']===_0x5c4b7e)['title'];return{'type':'format','content':c(_0x54852e,'*Change\x20to:*\x20%0',_0x383f72(0x1,_0x1091e6))};}var _0x21a7fc,_0x295709;});}['_getHeadingLevel'](_0x30f8cd){const _0x49cb9a=_0x30f8cd['match'](/^heading(\d+)/);if(_0x49cb9a)return _0x49cb9a[0x1];const _0x29b678=this['_headingOptions']?.['find'](_0x461c55=>_0x461c55['model']==_0x30f8cd);if(_0x29b678&&_0x29b678['view']){const _0x496bb4=_0x29b678['view'],_0xfaa470=(_0x496bb4['name']??_0x496bb4)['match'](/^h(\d+)/);if(_0xfaa470)return _0xfaa470[0x1];}return null;}}class it extends _0xc831a5{['afterInit'](){const _0x1ac943=this['editor'];if(!_0x1ac943['plugins']['has']('HighlightEditing'))return;const _0x1afedd=_0x1ac943['plugins']['get']('TrackChangesEditing'),_0x3a8037=_0x1ac943['locale'];_0x1afedd['enableDefaultAttributesIntegration']('highlight'),_0x1afedd['registerInlineAttribute']('highlight'),_0x1afedd['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x3a8037,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x160d06=this['editor'],_0x55b177=_0x160d06['locale'];_0x160d06['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x112a33=>{if('formatInline'!=_0x112a33['type'])return;const {data:_0x132689}=_0x112a33;if(_0x132689&&'highlight'==_0x132689['commandName']){const _0x3ca683=_0x55b177['t'],_0x2fae28=_0x132689['commandParams'][0x0]['value'];if(_0x2fae28){const _0x3818fa=_0x160d06['config']['get']('highlight.options')['find'](_0x421c3a=>_0x421c3a['model']==_0x2fae28),_0x5c7c49=_0x3ca683(_0x3818fa['title'])['toLowerCase']();return{'type':'format','content':c(_0x55b177,'*Set\x20highlight:*\x20%0',_0x5c7c49),'color':{'value':_0x3818fa['color'],'title':_0x3818fa['title']}};}return{'type':'format','content':c(_0x55b177,'*Remove\x20highlight*',c(_0x55b177,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0xc831a5{['afterInit'](){const _0x38e98e=this['editor'];if(!_0x38e98e['plugins']['has']('HorizontalLineEditing'))return;_0x38e98e['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1fa2ed=_0x38e98e['plugins']['get']('TrackChangesEditing'),_0x1dacf6=_0x38e98e['locale'];_0x1fa2ed['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2e4b0e=>c(_0x1dacf6,'ELEMENT_HORIZONTAL_LINE',_0x2e4b0e)),_0x38e98e['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x123aa4,{writer:_0x19d3c4,options:_0x2b28b2})=>{if(!_0x2b28b2['showSuggestionHighlights'])return null;const _0x24e7cd=_0x19d3c4['createContainerElement']('div'),_0x21b54d=_0x19d3c4['createEmptyElement']('hr');return _0x19d3c4['addClass']('ck-horizontal-line',_0x24e7cd),_0x19d3c4['insert'](_0x19d3c4['createPositionAt'](_0x24e7cd,0x0),_0x21b54d),_0x24e7cd;},'converterPriority':'high'});}}class ot extends _0xc831a5{['afterInit'](){const _0x2f8421=this['editor'];if(!_0x2f8421['plugins']['has']('HtmlEmbed'))return;const _0xed9607=_0x2f8421['plugins']['get']('TrackChangesEditing'),_0x51ea9e=_0x2f8421['locale'];_0xed9607['descriptionFactory']['registerElementLabel']('rawHtml',_0x49822a=>c(_0x51ea9e,'ELEMENT_HTML_EMBED',_0x49822a)),_0xed9607['enableDefaultAttributesIntegration']('htmlEmbed'),_0xed9607['registerBlockAttribute']('value'),_0xed9607['descriptionFactory']['registerDescriptionCallback'](_0x4ec1e1=>{if('attribute'!=_0x4ec1e1['type'])return;const {data:_0x4b246d}=_0x4ec1e1;if(_0x4b246d&&'value'==_0x4b246d['key']&&_0x4ec1e1['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4f80ce=c(_0x51ea9e,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x51ea9e,'*Change\x20%0\x20content*',_0x4f80ce)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x394c53=this['editor'],_0x1730da=_0x394c53['locale'];_0x394c53['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32af36=>{if('formatBlock'!=_0x32af36['type'])return;const {data:_0x48addc}=_0x32af36;if(_0x48addc&&'htmlEmbed'==_0x48addc['commandName']){const _0x46b08f=c(_0x1730da,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x1730da,'*Change\x20%0\x20content*',_0x46b08f)};}});}}class rt extends _0xc831a5{['afterInit'](){const _0x216c36=this['editor'];if(!_0x216c36['plugins']['has']('ImageEditing'))return;const _0x3f0892=_0x216c36['plugins']['get']('TrackChangesEditing'),_0x269e88=_0x216c36['plugins']['get']('ImageUtils'),_0x11718c=_0x216c36['locale'];_0x3f0892['enableCommand']('insertImage'),_0x3f0892['descriptionFactory']['registerElementLabel']('imageBlock',_0x5b726b=>c(_0x11718c,'ELEMENT_IMAGE',_0x5b726b)),_0x3f0892['descriptionFactory']['registerElementLabel']('imageInline',_0x46f2e1=>c(_0x11718c,'ELEMENT_INLINE_IMAGE',_0x46f2e1)),_0x3f0892['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x11718c,'ELEMENT_CAPTION')),_0x216c36['plugins']['has']('ImageUploadEditing')&&_0x3f0892['enableCommand']('uploadImage'),_0x216c36['plugins']['has']('ImageBlockEditing')&&_0x216c36['plugins']['has']('ImageInlineEditing')&&(_0x3f0892['enableCommand']('imageTypeInline',(_0x2c48bf,_0xb166bb)=>{const _0x73ffb1=_0x269e88['getClosestSelectedImageElement'](_0x216c36['model']['document']['selection']);_0x216c36['model']['change'](()=>{_0x3f0892['markBlockFormat'](_0x73ffb1,{'commandName':'imageTypeInline','commandParams':[_0xb166bb]},[],'convertBlockImageToInline');});}),_0x3f0892['enableCommand']('imageTypeBlock',(_0x379838,_0x434703)=>{_0x216c36['model']['change'](_0x22191b=>{let _0x15106a=_0x269e88['getClosestSelectedImageElement'](_0x216c36['model']['document']['selection']),_0x54a390=_0x22191b['createRangeOn'](_0x15106a);const _0x194c87=_0x11df1a['fromPosition'](_0x54a390['start'],'toPrevious'),_0x489cd3=_0x11df1a['fromPosition'](_0x54a390['end'],'toNext');_0x3f0892['forceDefaultExecution'](()=>_0x379838(_0x434703)),_0x15106a=_0x269e88['getClosestSelectedImageElement'](_0x216c36['model']['document']['selection']),_0x54a390=_0x22191b['createRangeOn'](_0x15106a);const _0x1aea3c=_0x22191b['createRange'](_0x194c87,_0x489cd3);_0x194c87['detach'](),_0x489cd3['detach'](),_0x3f0892['markBlockFormat'](_0x15106a,{'commandName':'imageTypeInline','commandParams':[_0x434703]},[],'convertInlineImageToBlock'),_0x1aea3c['start']['isBefore'](_0x54a390['start'])&&_0x3f0892['markInsertion'](_0x22191b['createRange'](_0x1aea3c['start'],_0x54a390['start']),'convertInlineImageToBlock'),_0x54a390['end']['isBefore'](_0x1aea3c['end'])&&_0x3f0892['markInsertion'](_0x22191b['createRange'](_0x54a390['end'],_0x1aea3c['end']),'convertInlineImageToBlock');});}),_0x3f0892['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3f0892['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3f0892['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3f0892['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3f0892['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3f0892['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x56c4dd])=>{const _0x636b1c=_0x3f0892['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5e170d=_0x56c4dd['start'],_0x5c085f=_0x56c4dd['end'];const _0x24f0fa=_0x216c36['model']['schema']['getNearestSelectionRange'](_0x5e170d,'backward'),_0x2d5a35=_0x216c36['model']['schema']['getNearestSelectionRange'](_0x5c085f,'forward');_0x24f0fa['isCollapsed']&&(_0x5e170d=_0x24f0fa['start']),_0x2d5a35['isCollapsed']&&(_0x5c085f=_0x2d5a35['end']),_0x636b1c([_0x216c36['model']['createRange'](_0x5e170d,_0x5c085f)]);}),_0x3f0892['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xb3fe63),_0x3f0892['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xb3fe63)),_0x216c36['plugins']['has']('ImageCaptionEditing')&&(_0x3f0892['enableCommand']('toggleImageCaption',(_0x2214c8,_0x1b5556)=>{const _0x58e7a8=_0x216c36['plugins']['get']('ImageCaptionUtils');let _0x3d694e=_0x269e88['getClosestSelectedImageElement'](_0x216c36['model']['document']['selection']),_0x1d1d7c=_0x58e7a8['getCaptionFromImageModelElement'](_0x3d694e);_0x216c36['model']['change'](()=>{if(_0x1d1d7c)return void _0x3f0892['markDeletion'](_0x216c36['model']['createRangeOn'](_0x1d1d7c));const _0x594a4d=_0x269e88['isBlockImage'](_0x3d694e);_0x2214c8(_0x1b5556),_0x3d694e=_0x269e88['getClosestSelectedImageElement'](_0x216c36['model']['document']['selection']),_0x1d1d7c=_0x58e7a8['getCaptionFromImageModelElement'](_0x3d694e),_0x3f0892['markInsertion'](_0x216c36['model']['createRangeOn'](_0x1d1d7c),_0x594a4d?null:'imageCaption');});}),_0x3f0892['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xb3fe63));const _0x543c01=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x193cfc(_0x41a95b,_0x4370b0){const _0x41ee0d=_0x543c01['findIndex'](({type:_0x3c7f0c,subType:_0x576a72})=>_0x41a95b['type']==_0x3c7f0c&&_0x41a95b['subType']==_0x576a72),_0x517f94=_0x543c01['findIndex'](({type:_0x2366a8,subType:_0x1a7f86})=>_0x4370b0['type']==_0x2366a8&&_0x4370b0['subType']==_0x1a7f86);if(_0x41ee0d<0x0||_0x517f94<0x0)return!0x1;const _0x21a487=_0x41a95b['getFirstRange'](),_0x458a63=_0x4370b0['getFirstRange']();if((0x0==_0x41ee0d||0x1==_0x41ee0d)&&0x2==_0x517f94&&_0x21a487['isIntersecting'](_0x458a63))return!0x0;if(0x2==_0x41ee0d&&0x3==_0x517f94){const _0x4c3b1a=_0x3f0892['_findSuggestions'](_0x21a487,'insertion')['filter'](({suggestion:_0x267714,meta:_0x4f3bf0})=>_0x4f3bf0['isOwn']&&'convertInlineImageToBlock'==_0x267714['subType']);if(_0x4c3b1a['length']>0x1&&_0x458a63['end']['isEqual'](_0x21a487['start']))return!0x0;if(0x1==_0x4c3b1a['length']&&(_0x21a487['start']['isEqual'](_0x458a63['end'])||_0x21a487['end']['isEqual'](_0x458a63['start'])))return!0x0;}if(0x3==_0x41ee0d&&0x3==_0x517f94&&_0x21a487['start']['isBefore'](_0x458a63['start'])){const _0x2a2476=_0x21a487['end']['nodeAfter'],_0x427e77=_0x458a63['start']['nodeBefore'];return _0x269e88['isBlockImage'](_0x2a2476)&&_0x2a2476===_0x427e77;}return!0x1;}function _0xb3fe63(_0x22f828,_0x26e2d2){return _0x193cfc(_0x22f828,_0x26e2d2)?[_0x22f828,_0x26e2d2]:_0x193cfc(_0x26e2d2,_0x22f828)?[_0x26e2d2,_0x22f828]:null;}_0x216c36['plugins']['has']('ImageResize')&&(_0x3f0892['enableDefaultAttributesIntegration']('resizeImage'),_0x3f0892['registerBlockAttribute']('resizedWidth'),_0x3f0892['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x11718c,'FORMAT_IMAGE_SIZE'))),_0x216c36['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3f0892['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3f0892['registerBlockAttribute']('alt')),_0x216c36['plugins']['has']('PictureEditing')&&(_0x3f0892['registerBlockAttribute']('sources'),_0x3f0892['descriptionFactory']['registerDescriptionCallback'](_0x4689e7=>{if('attribute'!=_0x4689e7['type'])return;const {data:_0x1dd8b9}=_0x4689e7;return _0x1dd8b9&&'sources'==_0x1dd8b9['key']?{'type':'format','content':''}:void 0x0;})),_0x216c36['plugins']['has']('ImageSizeAttributes')&&(_0x3f0892['registerBlockAttribute']('width'),_0x3f0892['registerBlockAttribute']('height'),_0x3f0892['descriptionFactory']['registerDescriptionCallback'](_0x54b977=>{if('attribute'!=_0x54b977['type'])return;const {data:_0x5b3f52}=_0x54b977;return!_0x5b3f52||'width'!=_0x5b3f52['key']&&'height'!=_0x5b3f52['key']?void 0x0:{'type':'format','content':''};})),_0x3f0892['descriptionFactory']['registerDescriptionCallback'](_0x530362=>{if(!!_0x543c01['find'](({type:_0x5b4c92,subType:_0x22da94})=>_0x530362['type']==_0x5b4c92&&_0x530362['subType']==_0x22da94))return _0x530362['previous']?{}:void 0x0;}),_0x3f0892['descriptionFactory']['registerDescriptionCallback'](_0x11abb9=>{if('insertion'==_0x11abb9['type']||'deletion'==_0x11abb9['type']){const _0x4e1509=_0x11abb9['getContainedElement']();if(_0x4e1509&&_0x4e1509['is']('element','caption'))return{'type':'insertion'==_0x11abb9['type']?'addObject':'removeObject','element':_0x4e1509,'quantity':0x1};}}),_0x3f0892['descriptionFactory']['registerDescriptionCallback'](_0x34443d=>'formatBlock'==_0x34443d['type']&&'convertInlineImageToBlock'==_0x34443d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x34443d['type']&&'convertBlockImageToInline'==_0x34443d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3f0892['descriptionFactory']['registerDescriptionCallback'](_0x4a9fea=>{if('attribute'!=_0x4a9fea['type'])return;const {data:_0x371569}=_0x4a9fea;if(!_0x371569||'alt'!=_0x371569['key'])return;const _0x38f666=_0x371569['newValue'];return _0x38f666?{'type':'format','content':c(_0x11718c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x38f666+'\x22')}:{'type':'format','content':c(_0x11718c,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4940b1=this['editor'],_0x12de69=_0x4940b1['locale'];_0x4940b1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xfd3587=>{if('formatBlock'!=_0xfd3587['type']&&'formatInline'!=_0xfd3587['type'])return;const {data:_0xf8a8a5}=_0xfd3587;if(_0xf8a8a5){if('imageTextAlternative'==_0xf8a8a5['commandName']){const _0x34e406=_0xf8a8a5['commandParams'][0x0]['newValue'];return _0x34e406?{'type':'format','content':c(_0x12de69,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x34e406+'\x22')}:{'type':'format','content':c(_0x12de69,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xf8a8a5['commandName']){const _0x549a6c=_0xf8a8a5['commandParams'][0x0]['width'];return _0x549a6c?{'type':'format','content':c(_0x12de69,'*Set\x20image\x20width:*\x20%0',_0x549a6c)}:{'type':'format','content':c(_0x12de69,'*Reset\x20image\x20width*')};}}});}}class at extends _0xc831a5{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5286ed=this['editor']['locale'],_0xa4b48f=this['editor']['plugins']['get']('TrackChangesEditing');_0xa4b48f['enableDefaultAttributesIntegration']('replaceImageSource'),_0xa4b48f['registerBlockAttribute']('src'),_0xa4b48f['descriptionFactory']['registerDescriptionCallback'](_0x52ba63=>{if('attribute'!=_0x52ba63['type'])return;const {data:_0x556950}=_0x52ba63;return _0x556950&&'src'==_0x556950['key']?_0x556950['newValue']&&_0x556950['oldValue']?{'type':'format','content':c(_0x5286ed,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x306a45=this['editor']['plugins']['get']('TrackChangesEditing');_0x306a45['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x306a45['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x306a45['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x306a45['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f8f7e=this['editor'],_0x1e8dfa=_0x1f8f7e['locale'];_0x1f8f7e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3dad84=>{if('formatBlock'!=_0x3dad84['type']&&'formatInline'!=_0x3dad84['type'])return;const {data:_0x5a15a2}=_0x3dad84;if(!_0x5a15a2||'replaceImageSource'!=_0x5a15a2['commandName'])return;return{'type':'format','content':c(_0x1e8dfa,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0xc831a5{['afterInit'](){const _0x4f14ec=this['editor'];if(!_0x4f14ec['plugins']['has']('ImageStyleEditing'))return;const _0x25bbb7=_0x4f14ec['plugins']['get']('TrackChangesEditing'),_0x14f972=_0x4f14ec['plugins']['get']('ImageUtils'),_0x2525db={};_0x25bbb7['enableCommand']('imageStyle',(_0x1e4400,_0x544d55)=>{const _0x13e058=_0x4f14ec['plugins']['get']('Users')['me'],_0xf78c05=_0x4f14ec['commands']['get']('imageStyle');let _0x1ff6ad=_0x14f972['getClosestSelectedImageElement'](_0x4f14ec['model']['document']['selection']),_0x58bcc1=_0x4f14ec['model']['createRangeOn'](_0x1ff6ad),_0x477135=_0xf78c05['value'];if(_0x477135==_0x544d55['value'])return;const _0x40fcbc={'commandName':'imageStyle','commandParams':[_0x544d55],'formatGroupId':_0x18a796()};_0x4f14ec['model']['change'](()=>{if(_0x25bbb7['getSuggestions']()['filter'](_0x23dbca=>_0x23dbca['isInContent']&&_0x13e058==_0x23dbca['author']&&('formatBlock'==_0x23dbca['type']||'formatInline'==_0x23dbca['type'])&&('imageStylePreApply'==_0x23dbca['subType']||'imageStylePostApply'==_0x23dbca['subType'])&&_0x23dbca['getFirstRange']()['isEqual'](_0x58bcc1))['forEach'](_0x54b05e=>_0x25bbb7['discardSuggestion'](_0x54b05e['head'])),_0x1ff6ad=_0x14f972['getClosestSelectedImageElement'](_0x4f14ec['model']['document']['selection']),_0x58bcc1=_0x4f14ec['model']['createRangeOn'](_0x1ff6ad),_0xf78c05['refresh'](),_0x4f14ec['commands']['get']('imageTypeInline')['refresh'](),_0x4f14ec['commands']['get']('imageTypeBlock')['refresh'](),_0x477135=_0xf78c05['value'],_0x477135!=_0x544d55['value'])return _0x14f972['isInlineImage'](_0x1ff6ad)&&_0xf78c05['shouldConvertImageType'](_0x544d55['value'],_0x1ff6ad)?(_0x1e4400({..._0x544d55,'setImageSizes':!0x1}),_0x1ff6ad=_0x14f972['getClosestSelectedImageElement'](_0x4f14ec['model']['document']['selection']),void _0x25bbb7['markBlockFormat'](_0x1ff6ad,{..._0x40fcbc,'commandReversedParams':[{'value':_0x477135||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x14f972['isBlockImage'](_0x1ff6ad)?_0x25bbb7['markBlockFormat'](_0x1ff6ad,_0x40fcbc,[],'imageStylePostApply'):_0x25bbb7['markInlineFormat'](_0x58bcc1,_0x40fcbc,'imageStylePostApply'));});});for(const _0x33f8c8 of _0x4f14ec['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2525db[_0x33f8c8['name']]=_0x33f8c8['title']['toLowerCase']();_0x25bbb7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x25bbb7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x25bbb7['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x25bbb7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3775b0])=>{_0x14f972['setImageNaturalSizeAttributes'](_0x3775b0['getContainedElement']());}),_0x25bbb7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3cbdb7,_0x32b638)=>{_0x25bbb7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3cbdb7,{'commandName':_0x32b638['commandName'],'commandParams':_0x32b638['commandReversedParams']});}),_0x25bbb7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xf33979,_0x592e3e){if(_0x4a36ff(_0xf33979,_0x592e3e))return[_0xf33979,_0x592e3e];if(_0x4a36ff(_0x592e3e,_0xf33979))return[_0x592e3e,_0xf33979];return null;});const _0x28cd8d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4a36ff(_0x31310c,_0x11e39a){const _0xca5b81=_0x28cd8d['findIndex'](({type:_0x578627,subType:_0x3db0ba})=>_0x31310c['type']==_0x578627&&_0x31310c['subType']==_0x3db0ba),_0x36d2ee=_0x28cd8d['findIndex'](({type:_0x131702,subType:_0x162104})=>_0x11e39a['type']==_0x131702&&_0x11e39a['subType']==_0x162104);if(_0xca5b81<0x0||_0x36d2ee<0x0)return!0x1;const _0x16b3db=_0x31310c['getFirstRange'](),_0x289334=_0x11e39a['getFirstRange']();if((0x0==_0xca5b81||0x1==_0xca5b81)&&0x2==_0x36d2ee&&_0x16b3db['isIntersecting'](_0x289334))return!0x0;if(0x2==_0xca5b81&&0x3==_0x36d2ee){const _0x21031c=_0x25bbb7['_findSuggestions'](_0x16b3db,'insertion')['filter'](({suggestion:_0x27b845,meta:_0x46db78})=>_0x46db78['isOwn']&&'convertInlineImageToBlock'==_0x27b845['subType']);if(_0x21031c['length']>0x1&&_0x289334['end']['isEqual'](_0x16b3db['start']))return!0x0;if(0x1==_0x21031c['length']&&(_0x16b3db['start']['isEqual'](_0x289334['end'])||_0x16b3db['end']['isEqual'](_0x289334['start'])))return!0x0;}if(0x3==_0xca5b81&&0x3==_0x36d2ee&&_0x16b3db['start']['isBefore'](_0x289334['start'])){const _0x102e91=_0x16b3db['end']['nodeAfter'],_0x480399=_0x289334['start']['nodeBefore'];return _0x14f972['isBlockImage'](_0x102e91)&&_0x102e91===_0x480399;}return!0x1;}_0x4f14ec['model']['document']['registerPostFixer'](()=>{let _0x349f13=!0x1;const _0x1a0ce7=Array['from'](_0x4f14ec['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x394367,data:_0x1cc0eb}of _0x1a0ce7){const {group:_0x3fe590,type:_0x3fda83,subType:_0x15d12d,id:_0x3b2bc7}=_0x25bbb7['_splitMarkerName'](_0x394367);if('suggestion'==_0x3fe590&&_0x25bbb7['hasSuggestion'](_0x3b2bc7)){if('formatBlock'==_0x3fda83&&('imageStylePreApply'==_0x15d12d||'imageStylePostApply'==_0x15d12d)){const _0x248ad=_0x25bbb7['getSuggestion'](_0x3b2bc7);if(_0x1cc0eb['newRange']){const _0x57799c=_0x248ad['getFirstRange']()['getContainedElement']();if(_0x14f972['isBlockImage'](_0x57799c))continue;_0x25bbb7['discardSuggestion'](_0x248ad),_0x349f13=!0x0;}}if('insertion'==_0x3fda83&&'imageCaption'==_0x15d12d&&!_0x1cc0eb['newRange']){const _0x32e69e=_0x25bbb7['getSuggestion'](_0x3b2bc7);_0x32e69e['next']&&_0x32e69e['next']['isInContent']&&(_0x25bbb7['discardSuggestion'](_0x32e69e['next']),_0x349f13=!0x0);}}}return _0x349f13;}),this['_registerLegacyDescription'](_0x2525db);}['_registerLegacyDescription'](_0x4d8e71){const _0x170c53=this['editor'],_0x402797=_0x170c53['locale'];_0x170c53['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c21fd=>{if('formatBlock'!=_0x3c21fd['type']&&'formatInline'!=_0x3c21fd['type'])return;const {data:_0x1ce795}=_0x3c21fd;if(!_0x1ce795||'imageStyle'!=_0x1ce795['commandName'])return;const _0x575fe3=_0x1ce795['commandParams'][0x0]['value'];return _0xda4cd2('side'===_0x575fe3?c(_0x402797,'FORMAT_SIDE_IMAGE'):_0x4d8e71[_0x575fe3]||_0x575fe3);function _0xda4cd2(_0x1e7274){return{'type':'format','content':c(_0x402797,'*Format:*\x20%0',_0x1e7274)};}});}}class ut extends _0xc831a5{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x81d76b){super(_0x81d76b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4c6b5d=this['editor'],_0x530eb2=_0x4c6b5d['commands']['get']('importWord'),_0x55cada=_0x4c6b5d['commands']['get']('trackChanges');_0x530eb2&&(_0x530eb2['on']('execute',(_0x2bed4c,[,_0x38b023])=>{this['_trackChangesValueDuringImport']=_0x55cada['value'],_0x38b023['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x530eb2,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x530eb2,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x55cada['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4c6b5d['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5bf0b2,_0x1725a8){const {suggestions:_0x55c7f4}=_0x1725a8,_0x184f5b=this['editor']['commands']['get']('trackChanges'),_0x29cd2b=_0x184f5b['value'];this['_trackChangesValueDuringImport']!==_0x29cd2b&&(_0x184f5b['execute'](),this['_trackChangesExecuted']=!0x0),_0x55c7f4&&_0x55c7f4['forEach'](({id:_0x4a4433,type:_0x503c25,author:_0x319556,created_at:_0x2c21d6})=>{const _0x39c71b={'id':_0x4a4433,'type':_0x503c25,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x319556,'createdAt':_0x2c21d6?new Date(_0x2c21d6):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x39c71b);});}}class ft extends _0xc831a5{['afterInit'](){const _0x2168b7=this['editor'],_0x3f9f72=_0x2168b7['plugins']['get']('TrackChangesEditing');if(_0x2168b7['plugins']['has']('IndentEditing')&&(_0x3f9f72['enableCommand']('indent'),_0x3f9f72['enableCommand']('outdent')),_0x2168b7['plugins']['has']('IndentBlock')){for(const _0x526898 of['indentBlock','outdentBlock'])_0x3f9f72['enableDefaultAttributesIntegration'](_0x526898);}const _0x210e66=_0x2168b7['locale'];_0x3f9f72['registerBlockAttribute']('blockIndent'),_0x3f9f72['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x210e66,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x354722=this['editor'],_0x18bce8=_0x354722['locale'],_0x4ce824=_0x354722['plugins']['get']('TrackChangesEditing');_0x4ce824['descriptionFactory']['registerDescriptionCallback'](_0x4b4224=>{if('formatBlock'!=_0x4b4224['type'])return;const {data:_0x152dc1}=_0x4b4224;if(!_0x152dc1)return;if('indentBlock'!=_0x152dc1['commandName']&&'outdentBlock'!=_0x152dc1['commandName'])return;const _0x5cb0ae=_0x4b4224['getItems']()[0x0],_0x286e5b=_0x4ce824['descriptionFactory']['getItemLabel'](_0x5cb0ae);return'indentBlock'==_0x152dc1['commandName']?{'type':'format','content':c(_0x18bce8,'*Indent:*\x20%0',_0x286e5b)}:'outdentBlock'==_0x152dc1['commandName']?{'type':'format','content':c(_0x18bce8,'*Outdent:*\x20%0',_0x286e5b)}:void 0x0;});}}class ht extends _0xc831a5{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0xc831a5{['afterInit'](){const _0x54779d=this['editor'];if(!_0x54779d['plugins']['has']('LinkEditing'))return;const _0x3f9a7e=_0x54779d['plugins']['get']('TrackChangesEditing'),_0x7cbc4c=_0x54779d['commands']['get']('link');_0x3f9a7e['enableDefaultAttributesIntegration']('link'),_0x3f9a7e['enableDefaultAttributesIntegration']('unlink'),_0x3f9a7e['registerInlineAttribute']('linkHref');for(const _0x32101b of _0x7cbc4c['manualDecorators'])_0x3f9a7e['registerInlineAttribute'](_0x32101b['id']),_0x3f9a7e['descriptionFactory']['registerAttributeLabel'](_0x32101b['id'],'link\x20('+_0x32101b['label']['toLowerCase']()+')');_0x3f9a7e['descriptionFactory']['registerDescriptionCallback'](_0x595d41=>{if('attribute'!=_0x595d41['type'])return;const {data:_0x2bf1a2}=_0x595d41;if(!_0x2bf1a2||'linkHref'!=_0x2bf1a2['key'])return;const _0xc804be=_0x2bf1a2['newValue'],_0x43f8cc=_0x54779d['locale'];return{'type':'format','content':null==_0xc804be?c(_0x43f8cc,'*Remove\x20link*'):c(_0x43f8cc,'*Set\x20link:*\x20%0','\x22'+_0xc804be+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cbca5=this['editor'],_0x3df1d8=_0x4cbca5['locale'];_0x4cbca5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b908f=>{if('formatInline'!=_0x2b908f['type'])return;const {data:_0xf3fb83}=_0x2b908f;if(_0xf3fb83){if('link'==_0xf3fb83['commandName']){const _0x2a8d01=_0xf3fb83['commandParams'][0x0];return{'type':'format','content':c(_0x3df1d8,'*Set\x20link:*\x20%0','\x22'+_0x2a8d01+'\x22')};}return'unlink'==_0xf3fb83['commandName']?{'type':'format','content':c(_0x3df1d8,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0xc831a5{['afterInit'](){const _0x15136d=this['editor'],_0x90e4e7=_0x15136d['locale'];if(!_0x15136d['plugins']['has']('LegacyListEditing'))return;const _0x19f5c6=_0x15136d['plugins']['get']('TrackChangesEditing'),_0x2c3f13=_0x15136d['plugins']['has']('LegacyTodoListEditing');function _0xb79522(_0x42c7b1){return()=>{const _0x519ad0=_0x15136d['model']['document']['selection'],_0x41d02f=_0x15136d['commands']['get'](_0x42c7b1);if(_0x41d02f['value'])return void _0x15136d['execute']('paragraph',{});const _0x215028=_0x42c7b1['slice'](0x0,-0x4),_0x15b71d=function(_0xac4aa3,_0xd38b73,_0x5ce07e){let _0x1fa864=Array['from'](_0xac4aa3)['filter'](_0x397696=>function(_0x5c059b,_0x55b571){return _0x55b571['checkChild'](_0x5c059b['parent'],'listItem')&&!_0x55b571['isObject'](_0x5c059b);}(_0x397696,_0x5ce07e));_0x1fa864=_0x1fa864['filter'](_0x4a218f=>!_0x4a218f['is']('element','listItem')||_0x4a218f['getAttribute']('listType')!=_0xd38b73);const _0x5d92fd=new Set();for(const _0x4f8c6e of _0x1fa864)_0x4f8c6e['is']('element','listItem')?_0x5d92fd['add'](Le(_0x4f8c6e)):_0x5d92fd['add'](_0x4f8c6e);return Array['from'](_0x5d92fd);}(_0x519ad0['getSelectedBlocks'](),_0x215028,_0x15136d['model']['schema']);_0x15136d['model']['change'](()=>{for(const _0x762ef of _0x15b71d)_0x19f5c6['markBlockFormat'](_0x762ef,{'commandName':_0x42c7b1,'commandParams':[{'forceValue':!_0x41d02f['value']}],'formatGroupId':'blockName'},Ee(_0x762ef));});};}function _0x13c344(_0x1187c1){return()=>{const _0x3252dd=function(_0x566375){let _0x409aa1=Array['from'](_0x566375);const _0x4785fa=_0x409aa1['findIndex'](_0x2f1ec9=>'listItem'!=_0x2f1ec9['name']);return _0x4785fa>-0x1&&(_0x409aa1=_0x409aa1['slice'](0x0,_0x4785fa)),_0x409aa1;}(_0x15136d['model']['document']['selection']['getSelectedBlocks']()),_0x38b33f=_0x15136d['model']['createRange'](_0x15136d['model']['createPositionAt'](_0x3252dd[0x0],'before'),_0x15136d['model']['createPositionAt'](_0x3252dd[_0x3252dd['length']-0x1],'end'));_0x15136d['model']['change'](()=>{_0x19f5c6['markBlockFormat'](_0x38b33f,{'commandName':_0x1187c1,'commandParams':[],'formatGroupId':'listIndent'},function(_0xb1b012){const _0x5075c1=new Set();for(const _0xcfeed2 of _0xb1b012){let _0x2c39d4=_0xcfeed2['nextSibling'];for(;_0x2c39d4&&_0x2c39d4['getAttribute']('listIndent')>_0xcfeed2['getAttribute']('listIndent');)_0x5075c1['add'](_0x2c39d4),_0x2c39d4=_0x2c39d4['nextSibling'];}return Array['from'](_0x5075c1);}(_0x3252dd));});};}_0x19f5c6['enableCommand']('numberedList',_0xb79522('numberedList')),_0x19f5c6['enableCommand']('bulletedList',_0xb79522('bulletedList')),_0x2c3f13&&_0x19f5c6['enableCommand']('todoList',_0xb79522('todoList')),_0x19f5c6['enableCommand']('indentList',_0x13c344('indentList')),_0x19f5c6['enableCommand']('outdentList',_0x13c344('outdentList')),_0x2c3f13&&_0x19f5c6['enableCommand']('checkTodoList',()=>{const _0x306617=_0x15136d['commands']['get']('checkTodoList'),_0x2c311c=Array['from'](_0x306617['_selectedElements']);_0x2c311c['filter'](_0x5e8e9d=>_0x5e8e9d['getAttribute']('todoListChecked')!=_0x306617['value']),_0x15136d['model']['change'](()=>{for(const _0x26d8a6 of _0x2c311c)_0x19f5c6['markBlockFormat'](_0x26d8a6,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x306617['value']}]});});}),_0x19f5c6['descriptionFactory']['registerElementLabel']('listItem',_0x3fb80d=>c(_0x90e4e7,'ELEMENT_LIST_ITEM',_0x3fb80d)),_0x19f5c6['descriptionFactory']['registerDescriptionCallback'](_0xf13e85=>{if('formatBlock'!=_0xf13e85['type']&&'formatInline'!=_0xf13e85['type'])return;const {data:_0x43f8ea}=_0xf13e85;if(_0x43f8ea){if('numberedList'==_0x43f8ea['commandName']||'bulletedList'==_0x43f8ea['commandName']||'todoList'==_0x43f8ea['commandName'])switch(_0x43f8ea['commandName']['replace']('List','')){case'bulleted':return _0x489035(c(_0x90e4e7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x489035(c(_0x90e4e7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x489035(c(_0x90e4e7,'ELEMENT_TODO_LIST'));}if('indentList'==_0x43f8ea['commandName'])return{'type':'format','content':c(_0x90e4e7,'*Indent:*\x20%0',c(_0x90e4e7,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x43f8ea['commandName'])return{'type':'format','content':c(_0x90e4e7,'*Outdent:*\x20%0',c(_0x90e4e7,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x43f8ea['commandName'])return _0x43f8ea['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x90e4e7,'*Check\x20item*')}:{'type':'format','content':c(_0x90e4e7,'*Uncheck\x20item*')};}function _0x489035(_0x424657){return{'type':'format','content':c(_0x90e4e7,'*Change\x20to:*\x20%0',_0x424657)};}});}}function Le(_0x46a371){const _0x20712e=_0x46a371['getAttribute']('listIndent');if(0x0==_0x20712e)return _0x46a371;let _0x4d2ccf=_0x46a371;for(;_0x46a371['previousSibling']&&_0x46a371['previousSibling']['is']('element','listItem');){const _0x5c5726=_0x46a371['previousSibling']['getAttribute']('listIndent');if(_0x5c5726==_0x20712e)_0x4d2ccf=_0x46a371['previousSibling'];else{if(_0x5c5726<_0x20712e)break;}_0x46a371=_0x46a371['previousSibling'];}return _0x4d2ccf;}function Ee(_0x35f59c){const _0x6d1d87=[];if(_0x35f59c['is']('element','listItem')&&_0x35f59c['getAttribute']('listIndent')>0x0){let _0x1eb551=_0x35f59c['nextSibling'];for(;_0x1eb551&&'listItem'==_0x1eb551['name']&&_0x1eb551['getAttribute']('listIndent')==_0x35f59c['getAttribute']('listIndent');)_0x6d1d87['push'](_0x1eb551),_0x1eb551=_0x1eb551['nextSibling'];}return _0x6d1d87;}class Q extends _0xc831a5{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x286ce=this['editor']['config']['get']('list.properties'),_0xd9354c=this['editor']['plugins']['get']('TrackChangesEditing');_0x286ce['styles']&&_0xd9354c['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x286ce['reversed']&&_0xd9354c['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x286ce['startIndex']&&_0xd9354c['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xd9354c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x417cb3,_0xa36ae={}){const _0x3344f0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ef8bf=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3344f0['markMultiRangeBlockFormat'](_0x3ef8bf,{'commandName':'listStyle','commandParams':[{'type':_0xa36ae['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x10663d,_0x3bdf81={}){const _0x552d58=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a1c1a=this['_getSuggestionBlocks'](_0x3b50ad=>_0x3b50ad['is']('element','listItem')&&'numbered'===_0x3b50ad['getAttribute']('listType'));if(_0x3a1c1a['length']<0x1)return;const _0x34c4af=_0x3a1c1a['map'](_0x1ea53f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1ea53f,'before'),this['editor']['model']['createPositionAt'](_0x1ea53f,0x0)));this['editor']['model']['change'](()=>{_0x552d58['markMultiRangeBlockFormat'](_0x34c4af,{'commandName':'listReversed','commandParams':[{'reversed':_0x3bdf81['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3a758c,_0xac4441={}){const _0x440355=this['editor']['plugins']['get']('TrackChangesEditing'),_0xce2bc4=this['_getSuggestionBlocks'](_0x4ea726=>_0x4ea726['is']('element','listItem')&&'numbered'===_0x4ea726['getAttribute']('listType'));if(_0xce2bc4['length']<0x1)return;const _0x294f7f=_0xce2bc4['map'](_0x450de6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x450de6,'before'),this['editor']['model']['createPositionAt'](_0x450de6,0x0)));this['editor']['model']['change'](()=>{_0x440355['markMultiRangeBlockFormat'](_0x294f7f,{'commandName':'listStart','commandParams':[{'startIndex':_0xac4441['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x58eac1){if('formatBlock'!=_0x58eac1['type']&&'formatInline'!=_0x58eac1['type'])return;const _0x5e4dc6=this['editor']['locale'],{data:_0x238a5f}=_0x58eac1;if(!_0x238a5f)return;let _0x4088c9,_0xdd7ecb;switch(_0x238a5f['commandName']){case'listStyle':_0x4088c9='*Change\x20to:*\x20%0',_0xdd7ecb={'type':'format','content':c(_0x5e4dc6,_0x4088c9,c(_0x5e4dc6,this['_getTranslationKeyForListStyle'](_0x238a5f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4088c9=_0x238a5f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xdd7ecb={'type':'format','content':c(_0x5e4dc6,_0x4088c9)};break;case'listStart':_0x4088c9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xdd7ecb={'type':'format','content':c(_0x5e4dc6,_0x4088c9,_0x238a5f['commandParams'][0x0]['startIndex'])};}return _0xdd7ecb;}['_getSuggestionBlocksForListStyle'](){const _0xfd5c39=this['editor']['plugins']['get']('LegacyListUtils');let _0x145574=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x145574[0x0]?.['is']('element','listItem')&&_0x145574['unshift'](..._0xfd5c39['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x145574[_0x145574['length']-0x1]?.['is']('element','listItem')&&_0x145574['push'](..._0xfd5c39['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x145574=[...new Set(_0x145574)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x145574=_0x145574['filter'](_0x1bfcec=>_0x1bfcec['is']('element','listItem'))),_0x145574;}['_getSuggestionBlocks'](_0x3eb81d){const _0x437cc4=this['editor']['plugins']['get']('LegacyListUtils');let _0x5e51c3=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3eb81d)['map'](_0x43845f=>{const _0x127f8c=this['editor']['model']['createPositionAt'](_0x43845f,0x0);return[..._0x437cc4['getSiblingNodes'](_0x127f8c,'backward'),..._0x437cc4['getSiblingNodes'](_0x127f8c,'forward')];})['flat']();return _0x5e51c3=[...new Set(_0x5e51c3)],_0x5e51c3;}['_getTranslationKeyForListStyle'](_0x21dea5){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x21dea5)||'default')['toUpperCase']()+'_LIST_'+_0x21dea5['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0xc831a5{['afterInit'](){const _0x54fb9f=this['editor'];if(!_0x54fb9f['plugins']['has']('MediaEmbedEditing'))return;const _0x3adac8=_0x54fb9f['plugins']['get']('TrackChangesEditing'),_0x34f479=_0x54fb9f['locale'];_0x3adac8['enableCommand']('mediaEmbed'),_0x3adac8['descriptionFactory']['registerElementLabel']('media',_0x50bd7f=>c(_0x34f479,'ELEMENT_MEDIA',_0x50bd7f)),_0x54fb9f['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x504d7f,{writer:_0x58acda,options:_0x240657})=>{if(_0x240657['showSuggestionHighlights'])return _0x58acda['createEmptyElement']('div');},'converterPriority':'high'}),_0x54fb9f['data']['downcastDispatcher']['on']('attribute:url:media',(_0x135e35,_0x521f0b,_0x2e4263)=>{_0x2e4263['options']['showSuggestionHighlights']&&_0x135e35['stop']();},{'priority':'high'});}}class pt extends _0xc831a5{['afterInit'](){const _0x4893f1=this['editor'];_0x4893f1['plugins']['has']('MentionEditing')&&_0x4893f1['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0xc831a5{['afterInit'](){const _0x1754b8=this['editor'];if(!_0x1754b8['plugins']['has']('MergeFieldsEditing'))return;const _0x26ea34=_0x1754b8['plugins']['get']('TrackChangesEditing'),_0x5422c2=_0x1754b8['locale'];_0x26ea34['enableCommand']('insertMergeField'),_0x26ea34['enableCommand']('insertMergeFieldBlock'),_0x26ea34['enableCommand']('insertMergeFieldImage'),_0x26ea34['descriptionFactory']['registerElementLabel']('mergeField',_0xe3495d=>c(_0x5422c2,'ELEMENT_MERGE_FIELD',_0xe3495d)),_0x26ea34['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x56c15a=>c(_0x5422c2,'ELEMENT_MERGE_FIELD',_0x56c15a)),_0x26ea34['descriptionFactory']['registerDescriptionCallback'](_0x1d25b5=>{if('insertion'!=_0x1d25b5['type']&&'deletion'!=_0x1d25b5['type'])return;const _0x35fa1f=_0x1d25b5['getContainedElement']();if(null==_0x35fa1f)return;const _0x114def=_0x1754b8['plugins']['get']('MergeFieldsEditing');let _0x11ca8e;switch(_0x114def['getMergeFieldType'](_0x35fa1f)){case null:return;case'image':{const _0x401c7f=_0x114def['unwrapAffixes'](_0x35fa1f['getAttribute']('src'));_0x11ca8e=_0x114def['getLabel'](_0x401c7f)||_0x401c7f;break;}default:{const _0x5219ab=_0x35fa1f['getAttribute']('id');_0x11ca8e=_0x114def['getLabel'](_0x5219ab)||_0x5219ab;break;}}return'insertion'==_0x1d25b5['type']?{'type':'insertion','content':c(_0x5422c2,'*Insert:*\x20%0','\x22'+_0x11ca8e+'\x22\x20'+c(_0x5422c2,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x5422c2,'*Remove:*\x20%0','\x22'+_0x11ca8e+'\x22\x20'+c(_0x5422c2,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0xc831a5{['afterInit'](){const _0x434a82=this['editor'],_0x3d2694=_0x434a82['plugins']['get']('TrackChangesEditing');_0x434a82['plugins']['has']('MultiLevelList')&&(_0x3d2694['enableDefaultAttributesIntegration']('multiLevelList'),_0x3d2694['registerBlockAttribute']('listMarkerStyle'),_0x3d2694['descriptionFactory']['registerDescriptionCallback'](_0x483b05=>this['handleDescriptions'](_0x483b05)));}['handleDescriptions'](_0x14e3cd){const _0x23d70b=this['editor']['locale'],{data:_0x4662e3}=_0x14e3cd,_0x3f6bc8={'type':'format','content':''};if(_0x4662e3&&'listMarkerStyle'==_0x4662e3['key']){if(!_0x4662e3['oldValue'])return{'type':'format','content':c(_0x23d70b,'*Set\x20format:*\x20%0',c(_0x23d70b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4662e3['newValue']+')'};if(!_0x4662e3['newValue']){let _0x163841=_0x14e3cd['head'];for(;_0x163841;){if(_0x163841['data']&&'listType'==_0x163841['data']['key']&&_0x163841['data']['newValue'])return _0x3f6bc8;_0x163841=_0x163841['next'];}return{'type':'format','content':c(_0x23d70b,'*Remove\x20format:*\x20%0',c(_0x23d70b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4662e3['oldValue']+')'};}}}}class bt extends _0xc831a5{['afterInit'](){const _0x4793a3=this['editor'];if(!_0x4793a3['plugins']['has']('PageBreakEditing'))return;_0x4793a3['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4813a0=_0x4793a3['plugins']['get']('TrackChangesEditing'),_0xb746b9=_0x4793a3['locale'];_0x4813a0['descriptionFactory']['registerElementLabel']('pageBreak',_0x34a448=>c(_0xb746b9,'ELEMENT_PAGE_BREAK',_0x34a448));}}class yt extends _0xc831a5{['afterInit'](){const _0x670720=this['editor'];if(!_0x670720['plugins']['has']('Paragraph'))return;const _0x3dd512=_0x670720['locale'],_0x479b03=_0x670720['plugins']['get']('TrackChangesEditing');_0x479b03['descriptionFactory']['registerElementLabel']('paragraph',_0x23e8d5=>c(_0x3dd512,'ELEMENT_PARAGRAPH',_0x23e8d5)),_0x479b03['enableDefaultAttributesIntegration']('paragraph'),_0x479b03['enableCommand']('insertParagraph'),_0x670720['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x670720),{'priority':'highest'}),_0x670720['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x287ed2,_0x29e476,_0xe874b0)=>{_0xe874b0['options']['showSuggestionHighlights']&&nr(_0x670720,{'showActiveMarker':!0x1})(_0x287ed2,_0x29e476,_0xe874b0);},{'priority':'highest'});const _0x34df7a=_0x479b03['descriptionFactory'];_0x34df7a['registerDescriptionCallback'](_0x402270=>{if('insertion'!==_0x402270['type'])return;const {start:_0x5a2781,end:_0xfd9cc4}=_0x402270['getFirstRange']();if(!_0x5a2781['isTouching'](_0xfd9cc4)||!_0x5a2781['nodeAfter'])return;const _0x3325a9=_0x670720['model']['schema'],_0x41e106=_0x5a2781['nodeAfter'];return _0x3325a9['isBlock'](_0x41e106)&&!_0x3325a9['isLimit'](_0x41e106)&&_0x3325a9['checkChild'](_0x41e106,'$text')?{'type':'insertion','content':c(_0x3dd512,'*Insert:*\x20%0',_0x34df7a['getItemLabel'](_0x41e106,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c425d=this['editor'],_0x3cc45f=_0x2c425d['locale'];_0x2c425d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25c79f=>{if('formatBlock'!=_0x25c79f['type'])return;const {data:_0x19289c}=_0x25c79f;return _0x19289c&&'paragraph'==_0x19289c['commandName']?{'type':'format','content':c(_0x3cc45f,'*Change\x20to:*\x20%0',c(_0x3cc45f,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x4aed90,{showActiveMarker:_0x32811f=!0x0}={}){return(_0x46f4ab,_0x1133b3,_0x5550f4)=>{const _0xce7c13=_0x4aed90['plugins']['get']('TrackChangesEditing'),_0x1654e2=_0x1133b3['markerRange']['start'],_0x6e34d9=_0x1133b3['markerRange']['end'],_0x1bc8fe=_0x4aed90['model']['schema'];if(!_0x1654e2['isTouching'](_0x6e34d9)||!_0x1654e2['nodeAfter'])return;const _0x2917c1=_0x1654e2['nodeAfter'];if(_0x1bc8fe['isBlock'](_0x2917c1)&&!_0x1bc8fe['isLimit'](_0x2917c1)&&_0x1bc8fe['checkChild'](_0x2917c1,'$text')){if(!_0x5550f4['consumable']['consume'](_0x1133b3['markerRange'],_0x46f4ab['name']))return;const {authorId:_0x2ca247}=_0xce7c13['_splitMarkerName'](_0x1133b3['markerName']),_0xba5dce=_0x5550f4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x2ca247}),_0x5730db=_0x5550f4['mapper']['toViewPosition'](_0x6e34d9);_0x32811f&&_0xce7c13['activeMarkers']['includes'](_0x1133b3['markerName'])&&_0x5550f4['writer']['addClass']('ck-suggestion-marker--active',_0xba5dce),_0x5550f4['writer']['insert'](_0x5730db,_0xba5dce),_0x5550f4['mapper']['bindElementToMarker'](_0xba5dce,_0x1133b3['markerName']);}};}class jt extends _0xc831a5{['afterInit'](){const _0x5e3924=this['editor'];_0x5e3924['commands']['get']('replaceSource')&&_0x5e3924['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0xc831a5{['afterInit'](){const _0x398a71=this['editor'];if(!_0x398a71['plugins']['has']('RemoveFormatEditing'))return;_0x398a71['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1bde06=this['editor'];_0x1bde06['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x656ab0=>{if('formatBlock'!=_0x656ab0['type']&&'formatInline'!=_0x656ab0['type'])return;const {data:_0x25fa31}=_0x656ab0;return _0x25fa31&&'removeFormat'==_0x25fa31['commandName']?{'type':'format','content':c(_0x1bde06['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0xc831a5{['afterInit'](){const _0x39754b=this['editor'];if(!_0x39754b['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x485dec=_0x39754b['plugins']['get']('TrackChangesEditing');_0x485dec['enableCommand']('goToPreviousRestrictedEditingException'),_0x485dec['enableCommand']('goToNextRestrictedEditingException');const _0x57ce05=_0x39754b['plugins']['get']('RestrictedEditingModeEditing');_0x57ce05['enableCommand']('trackChanges'),_0x57ce05['enableCommand']('acceptSuggestion'),_0x57ce05['enableCommand']('discardSuggestion'),_0x57ce05['enableCommand']('acceptAllSuggestions'),_0x57ce05['enableCommand']('discardAllSuggestions'),_0x57ce05['enableCommand']('acceptSelectedSuggestions'),_0x57ce05['enableCommand']('discardSelectedSuggestions');}}class It extends _0xc831a5{static get['requires'](){return[_0x3a1a43];}['init'](){const _0x53856e=this['editor'],_0x368779=_0x53856e['plugins']['get']('TrackChangesEditing');_0x368779['enableCommand']('shiftEnter'),_0x53856e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x53856e),{'priority':'high'}),_0x53856e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x53856e),{'priority':'high'}),_0x53856e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x475c14,_0x36c67c,_0x363002)=>{_0x363002['options']['showSuggestionHighlights']&&je(_0x53856e,{'showActiveMarker':!0x1})(_0x475c14,_0x36c67c,_0x363002);}),_0x368779['descriptionFactory']['registerElementLabel']('softBreak',_0x5a0d30=>c(_0x53856e['locale'],'ELEMENT_LINE_BREAK',_0x5a0d30));}}function je(_0x56e18d,{showActiveMarker:_0x5e0b90=!0x0}={}){return(_0x574a9d,_0x44bf9e,_0x396b48)=>{const _0x22cd44=_0x56e18d['plugins']['get']('TrackChangesEditing');if(!_0x396b48['consumable']['test'](_0x44bf9e['markerRange'],_0x574a9d['name']))return;const _0x423b4d=_0x56e18d['model'];for(const _0x558a06 of _0x44bf9e['markerRange']['getItems']()){if(!_0x558a06['is']('element','softBreak'))continue;const _0x3245f0='deletion'==_0x44bf9e['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x2968e7}=_0x22cd44['_splitMarkerName'](_0x44bf9e['markerName']),_0x377f48=_0x396b48['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3245f0,'data-author-id':_0x2968e7}),_0x2e76e1=_0x396b48['mapper']['toViewPosition'](_0x423b4d['createPositionBefore'](_0x558a06));_0x5e0b90&&_0x22cd44['activeMarkers']['includes'](_0x44bf9e['markerName'])&&_0x396b48['writer']['addClass']('ck-suggestion-marker--active',_0x377f48),_0x396b48['writer']['insert'](_0x2e76e1,_0x377f48),_0x396b48['mapper']['bindElementToMarker'](_0x377f48,_0x44bf9e['markerName']);}};}class _t extends _0xc831a5{['afterInit'](){const _0x4aedde=this['editor'],_0xf985fb=_0x4aedde['model'],_0x42821e=_0x4aedde['locale'];if(!_0x4aedde['plugins']['has']('StandardEditingModeEditing'))return;const _0x249c65=_0x4aedde['plugins']['get']('TrackChangesEditing'),_0x3f4834='restrictedEditingException',_0x4c151f=_0x4aedde['commands']['get'](_0x3f4834);_0x249c65['enableCommand'](_0x3f4834,(_0x49e368,_0x47af08={})=>{const _0x5b670c=_0xf985fb['document']['selection'];if(_0x5b670c['isCollapsed'])return void _0x49e368(_0x47af08);const _0x1da09f=void 0x0!==_0x47af08['forceValue']?_0x47af08['forceValue']:!_0x4c151f['value'];_0xf985fb['change'](()=>{const _0xcf81d8=Array['from'](_0x5b670c['getRanges']());for(const _0x567eda of _0xcf81d8){const _0x2197f1=_0x1da09f?[_0x567eda]:io(_0x3f4834,_0x567eda,_0xf985fb);for(const _0x5a43ae of _0x2197f1)_0x249c65['markInlineFormat'](_0x5a43ae,{'commandName':_0x3f4834,'commandParams':[{'forceValue':_0x1da09f}]});}});}),_0x249c65['descriptionFactory']['registerDescriptionCallback'](_0x60e323=>{if('formatBlock'!=_0x60e323['type']&&'formatInline'!=_0x60e323['type'])return;const {data:_0x583d03}=_0x60e323;return _0x583d03&&_0x583d03['commandName']==_0x3f4834?_0x583d03['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x42821e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x42821e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0xc831a5{['afterInit'](){const _0x986d78=this['editor'];if(!_0x986d78['plugins']['has']('Style')||!_0x986d78['plugins']['has']('DataSchema'))return;const _0x309aa1=_0x986d78['plugins']['get']('TrackChangesEditing'),_0x5dd6ad=_0x986d78['locale'],_0x476d67=_0x986d78['config']['get']('style')||{},_0x351b23=_0x986d78['plugins']['get']('GeneralHtmlSupport'),_0x2f0b74=_0x986d78['plugins']['get']('StyleUtils')['normalizeConfig'](_0x986d78['plugins']['get']('DataSchema'),_0x476d67['definitions']);_0x309aa1['enableDefaultAttributesIntegration']('style');const _0x72613a=new Set();for(const _0x79f890 of _0x2f0b74['block']){const _0x4f172c=_0x351b23['getGhsAttributeNameForElement'](_0x79f890['element']);_0x72613a['add'](_0x4f172c);}const _0x20caf5=new Set();for(const _0xd90f22 of _0x2f0b74['inline']){const _0x3b787c=_0x351b23['getGhsAttributeNameForElement'](_0xd90f22['element']);_0x20caf5['add'](_0x3b787c);for(const _0x1736aa of _0xd90f22['ghsAttributes'])_0x20caf5['add'](_0x1736aa);}for(const _0x2ea919 of _0x72613a)_0x309aa1['registerBlockAttribute'](_0x2ea919),_0x309aa1['descriptionFactory']['registerAttributeLabel'](_0x2ea919,c(_0x5dd6ad,'FORMAT_STYLE'));for(const _0x1bb52c of _0x20caf5)_0x309aa1['registerInlineAttribute'](_0x1bb52c),_0x309aa1['descriptionFactory']['registerAttributeLabel'](_0x1bb52c,c(_0x5dd6ad,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x796eaf=this['editor'],_0x690a30=_0x796eaf['locale'];_0x796eaf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3dbcc6=>{if('formatBlock'!=_0x3dbcc6['type']&&'formatInline'!=_0x3dbcc6['type'])return;const {data:_0x4af134}=_0x3dbcc6;return _0x4af134&&'style'===_0x4af134['commandName']?_0x4af134['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x690a30,'*Set\x20format:*\x20%0',_0x4af134['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x690a30,'*Remove\x20format:*\x20%0',_0x4af134['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0xc831a5{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2c6039){super(_0x2c6039),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x22c7ee=this['editor'],_0x38425f=_0x22c7ee['model']['document']['selection'];if(!_0x22c7ee['plugins']['has']('TableEditing'))return;const _0x4b7818=_0x22c7ee['locale'],_0x23b0dd=_0x22c7ee['plugins']['get']('TrackChangesEditing'),_0x48bd1c=_0x22c7ee['plugins']['get']('TableUtils');_0x23b0dd['descriptionFactory']['registerElementLabel']('table',_0x64acd=>c(_0x4b7818,'ELEMENT_TABLE',_0x64acd)),this['_setupColumnsRowsFixing'](),_0x23b0dd['enableCommand']('insertTable'),_0x23b0dd['enableCommand']('selectTableRow'),_0x23b0dd['enableCommand']('selectTableColumn');for(const _0xffb733 of['insertTableRowAbove','insertTableRowBelow']){const _0x58f282=_0x22c7ee['commands']['get'](_0xffb733);_0x23b0dd['enableCommand'](_0xffb733,_0x1896e2=>{_0x22c7ee['model']['change'](_0x16f8d8=>{_0x1896e2();const _0x109055='above'===_0x58f282['order'],_0x17bc8c=_0x48bd1c['getSelectionAffectedTableCells'](_0x38425f),_0x1c05f6=_0x48bd1c['getRowIndexes'](_0x17bc8c),_0x4cbf39=_0x109055?_0x1c05f6['first']-0x1:_0x1c05f6['last']+0x1,_0x215435=_0x17bc8c[0x0]['findAncestor']('table'),_0x346e12=_0x48bd1c['createTableWalker'](_0x215435,{'startRow':_0x4cbf39,'endRow':_0x4cbf39}),_0x58148d=Array['from'](_0x346e12)['map'](_0x31f4c9=>_0x16f8d8['createRangeOn'](_0x31f4c9['cell']));_0x23b0dd['markMultiRangeInsertion'](_0x58148d,'tableRow');});});}for(const _0x4db44c of['insertTableColumnLeft','insertTableColumnRight']){const _0x1fa926=_0x22c7ee['commands']['get'](_0x4db44c);_0x23b0dd['enableCommand'](_0x4db44c,_0x152fab=>{_0x22c7ee['model']['change'](_0x16698f=>{_0x152fab();const _0x56df76='left'===_0x1fa926['order'],_0x516c71=_0x48bd1c['getSelectionAffectedTableCells'](_0x38425f),_0x5ce26a=_0x48bd1c['getColumnIndexes'](_0x516c71),_0xf40628=_0x56df76?_0x5ce26a['first']-0x1:_0x5ce26a['last']+0x1,_0xdddab4=_0x516c71[0x0]['findAncestor']('table'),_0x3a22c6=_0x48bd1c['createTableWalker'](_0xdddab4,{'startRow':0x0,'column':_0xf40628,'includeAllSlots':!0x1}),_0x408a9c=Array['from'](_0x3a22c6)['map'](_0xc78b6c=>_0x16698f['createRangeOn'](_0xc78b6c['cell']));_0x23b0dd['markMultiRangeInsertion'](_0x408a9c,'tableColumn');});});}for(const _0x5e40e4 of['removeTableRow','removeTableColumn']){const _0x50e25c=_0x5e40e4['substr'](0xb),_0xa7dc7c=_0x50e25c['toLowerCase'](),_0x4c0953=_0xa7dc7c['substr'](0x0,0x3)+'span',_0x36c6ce='table'+_0x50e25c,_0x2215ea='min'+_0x50e25c,_0x1bd1e8='max'+_0x50e25c;_0x23b0dd['enableCommand'](_0x5e40e4,()=>{_0x22c7ee['model']['change'](_0x260b29=>{const _0x3235ee=_0x48bd1c['getSelectionAffectedTableCells'](_0x38425f),_0x345f83=_0x3235ee[0x0]['findAncestor']('table');let _0x19d5cb;if('removeTableRow'==_0x5e40e4){const _0x340469=_0x48bd1c['getRowIndexes'](_0x3235ee);_0x19d5cb={'startRow':_0x340469['first'],'endRow':_0x340469['last'],'includeAllSlots':!0x0};}else{const _0x458765=_0x48bd1c['getColumnIndexes'](_0x3235ee);_0x19d5cb={'startColumn':_0x458765['first'],'endColumn':_0x458765['last'],'includeAllSlots':!0x0};}const _0x387753=_0x48bd1c['createTableWalker'](_0x345f83,_0x19d5cb),_0x461c6e=Array['from'](_0x387753)['map'](({cell:_0x5189c9})=>_0x5189c9),_0x4353f9=Ne(_0x461c6e['filter'](_0x2b8d22=>_0x2b8d22['hasAttribute'](_0x4c0953))),_0x1e0947=Ne(_0x461c6e['filter'](_0x30ad8c=>!_0x30ad8c['hasAttribute'](_0x4c0953)))['map'](_0x1bd1d9=>_0x260b29['createRangeOn'](_0x1bd1d9)),_0x25723b=_0x23b0dd['markMultiRangeDeletion'](_0x1e0947,_0x36c6ce);if(_0x25723b&&('tableRow'==_0x25723b['subType']||'tableColumn'==_0x25723b['subType'])){const _0x5779ed=this['_getSuggestionCoords'](_0x25723b);for(const _0x201ffd of _0x4353f9){const _0x55aad1=_0x260b29['createRangeOn'](_0x201ffd),_0x68205a=_0x48bd1c['getCellLocation'](_0x201ffd),_0x269d74=_0x201ffd['getAttribute'](_0x4c0953)-0x1,_0x45bfaf=_0x5779ed[_0x2215ea],_0x4e1ed0=_0x5779ed[_0x1bd1e8];_0x45bfaf<=_0x68205a[_0xa7dc7c]&&_0x68205a[_0xa7dc7c]+_0x269d74<=_0x4e1ed0&&_0x25723b['addRange'](_0x55aad1);}}});});}function _0x10daea(_0x39f89f){const _0x2ee664=Array['from'](_0x38425f['getRanges']())['map'](_0xe4261b=>_0x1a0cce['fromRange'](_0xe4261b));_0x22c7ee['model']['change'](_0x46982f=>{const _0x4ae295=_0x46982f['batch'];_0x39f89f=_0x39f89f['filter'](_0x736533=>'$graveyard'!=_0x736533['root']['rootName']),_0x46982f['setSelection'](_0x39f89f),_0x22c7ee['commands']['get']('removeTableRow')['refresh'](),_0x22c7ee['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x22c7ee['model']['enqueueChange'](()=>{_0x22c7ee['model']['enqueueChange'](_0x4ae295,_0x2be146=>{const _0x2769d2=_0x2ee664['filter'](_0x30f0fc=>'$graveyard'!=_0x30f0fc['root']['rootName']);_0x2769d2['length']>0x0&&_0x2be146['setSelection'](_0x2769d2);for(const _0x21172c of _0x2ee664)_0x21172c['detach']();});});});}function _0x443914(_0x3023db){_0x22c7ee['model']['change'](_0x2ad5ce=>{const _0x2cbd4a=Array['from'](_0x38425f['getRanges']())['map'](_0x2f78cf=>_0x1a0cce['fromRange'](_0x2f78cf)),_0x2e1f98=[];for(const _0x411b12 of _0x3023db)for(const _0x307026 of _0x411b12['getItems']({'shallow':!0x0}))_0x2e1f98['push'](_0x307026);for(const _0x5c067d of _0x2e1f98)'$graveyard'!=_0x5c067d['root']['rootName']&&(_0x2ad5ce['setSelection'](_0x2ad5ce['createPositionAt'](_0x5c067d,0x0)),_0x22c7ee['commands']['get']('removeTableColumn')['refresh'](),_0x22c7ee['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5df3e2=_0x2cbd4a['filter'](_0xa84b90=>'$graveyard'!=_0xa84b90['root']['rootName']);_0x5df3e2['length']>0x0&&_0x2ad5ce['setSelection'](_0x5df3e2);for(const _0x55a7b7 of _0x2cbd4a)_0x55a7b7['detach']();});}function _0x21a39f(_0x5d2730,_0x4979d1){return _0x4979d1['every'](_0x149257=>_0x5d2730['some'](_0x21523f=>_0x21523f['end']['isEqual'](_0x149257['start'])||_0x149257['end']['isEqual'](_0x21523f['start'])));}function _0x54775c(_0x41f4a6,_0x31a08e){return!_0x41f4a6['some'](_0x30a540=>_0x31a08e['some'](_0x4111af=>_0x30a540['isIntersecting'](_0x4111af)))&&_0x41f4a6['some'](_0x4b7f17=>_0x31a08e['some'](_0x56f3f5=>_0x4b7f17['end']['isTouching'](_0x56f3f5['start'])));}_0x22c7ee['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1944ff,_0x485be6,_0x5d62ae)=>{if(!_0x5d62ae['options']['showSuggestionHighlights'])return;const _0x5cabe2=_0x485be6['item'];if(!_0x5cabe2)return;const _0x42ac4b=_0x5d62ae['mapper']['toViewElement'](_0x5cabe2);function _0x23af9e(_0x3aee6f){return Array['isArray'](_0x3aee6f)?_0x3aee6f:[_0x3aee6f];}_0x42ac4b&&'tableCell'===_0x5cabe2['name']&&_0x1d974c(_0x42ac4b,_0x5d62ae['writer'],(_0x7bce04,_0x43efd4,_0x27c200)=>_0x27c200['addClass'](_0x23af9e(_0x43efd4['classes']),_0x7bce04),(_0x260fa1,_0x4c6b44,_0x406934)=>_0x406934['removeClass'](_0x23af9e(_0x4c6b44['classes']),_0x260fa1));},{'priority':'highest'}),_0x23b0dd['descriptionFactory']['registerDescriptionCallback'](_0x54aab8=>{if('insertion'!=_0x54aab8['type']&&'deletion'!=_0x54aab8['type'])return;const _0x53ab6a=_0x54aab8['getContainedElement']();if(null!=_0x53ab6a&&_0x53ab6a['is']('element','table')){if('insertion'==_0x54aab8['type']){const _0x1f0054=_0x54aab8['getItems']()['filter'](_0x7e99d8=>_0x7e99d8['is']('$textProxy'))['map'](_0x3ffae8=>_0x3ffae8['data']);if(_0x1f0054['length'])return{'type':'insertion','content':c(_0x4b7818,'*Insert:*\x20%0',c(_0x4b7818,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1f0054['join']('\x20')+'\x22'))};}if('deletion'==_0x54aab8['type']){const _0x297c12=_0x54aab8['getItems']()['filter'](_0x16283e=>_0x16283e['is']('$textProxy'))['map'](_0x4faf1d=>_0x4faf1d['data']);if(_0x297c12['length'])return{'type':'deletion','content':c(_0x4b7818,'*Remove:*\x20%0',c(_0x4b7818,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x297c12['join']('\x20')+'\x22'))};}}}),_0x23b0dd['descriptionFactory']['registerDescriptionCallback'](_0x1c2154=>{if('tableRow'==_0x1c2154['subType']){const _0x227b76=_0x1c2154['getItems']()['filter'](_0x4ae780=>_0x4ae780['is']('$textProxy'))['map'](_0x255ad3=>_0x255ad3['data']),_0x5490b6=this['_getSuggestionCoords'](_0x1c2154),_0x59a9b7=_0x5490b6['maxRow']-_0x5490b6['minRow']+0x1;if('insertion'==_0x1c2154['type'])return _0x227b76['length']?{'type':'insertion','content':c(_0x4b7818,'*Insert:*\x20%0',c(_0x4b7818,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x59a9b7,'\x22'+_0x227b76['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x4b7818,'*Insert:*\x20%0',c(_0x4b7818,'ELEMENT_TABLE_ROW',_0x59a9b7))};if('deletion'==_0x1c2154['type'])return _0x227b76['length']?{'type':'deletion','content':c(_0x4b7818,'*Remove:*\x20%0',c(_0x4b7818,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x59a9b7,'\x22'+_0x227b76['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x4b7818,'*Remove:*\x20%0',c(_0x4b7818,'ELEMENT_TABLE_ROW',_0x59a9b7))};}if('tableColumn'==_0x1c2154['subType']){const _0x448af5=_0x1c2154['getItems']()['filter'](_0x20b6a6=>_0x20b6a6['is']('$textProxy'))['map'](_0x502776=>_0x502776['data']),_0x3bcf56=this['_getSuggestionCoords'](_0x1c2154),_0x2830d5=_0x3bcf56['maxColumn']-_0x3bcf56['minColumn']+0x1;if('insertion'==_0x1c2154['type'])return _0x448af5['length']?{'type':'insertion','content':c(_0x4b7818,'*Insert:*\x20%0',c(_0x4b7818,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2830d5,'\x22'+_0x448af5['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x4b7818,'*Insert:*\x20%0',c(_0x4b7818,'ELEMENT_TABLE_COLUMN',_0x2830d5))};if('deletion'==_0x1c2154['type'])return _0x448af5['length']?{'type':'deletion','content':c(_0x4b7818,'*Remove:*\x20%0',c(_0x4b7818,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2830d5,'\x22'+_0x448af5['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x4b7818,'*Remove:*\x20%0',c(_0x4b7818,'ELEMENT_TABLE_COLUMN',_0x2830d5))};}}),_0x23b0dd['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x10daea),_0x23b0dd['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x10daea),_0x23b0dd['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x443914),_0x23b0dd['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x443914),_0x23b0dd['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x21a39f),_0x23b0dd['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x21a39f),_0x23b0dd['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x54775c),_0x23b0dd['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x54775c);}['_acceptFormatSuggestionCallbackFactory'](){const _0x10023c=this['editor'],_0x361440=_0x10023c['model']['document']['selection'];return(_0x1bd368,_0x164541)=>{_0x10023c['model']['change'](_0x122f19=>{const {commandName:_0x43bea9,commandParams:_0x2182eb}=_0x164541;let _0x29a8a0=_0x1bd368[0x0]['end']['nodeBefore'];_0x2182eb&&_0x2182eb[0x0]&&!0x1===_0x2182eb[0x0]['forceValue']&&(_0x29a8a0=_0x1bd368[0x0]['start']['nodeAfter']);const _0x5af775=_0x122f19['createRangeIn'](_0x29a8a0);if('$graveyard'==_0x5af775['root']['rootName'])return;const _0x3979a3=Array['from'](_0x361440['getRanges']())['map'](_0x27b6f4=>_0x1a0cce['fromRange'](_0x27b6f4));_0x122f19['setSelection'](_0x5af775),_0x10023c['commands']['get'](_0x43bea9)['refresh'](),_0x2182eb['push']({'forceDefaultExecution':!0x0}),_0x10023c['execute'](_0x43bea9,..._0x2182eb);const _0x51d4b1=_0x3979a3['filter'](_0x5aa778=>'$graveyard'!=_0x5aa778['root']['rootName']);_0x51d4b1['length']>0x0&&_0x122f19['setSelection'](_0x51d4b1);for(const _0xca5f32 of _0x3979a3)_0xca5f32['detach']();});};}['_getCoordsForCells'](_0x3af45d){const _0x2329d8=this['editor']['plugins']['get']('TableUtils');let _0x4cc178=Number['MAX_SAFE_INTEGER'],_0x56e5b6=Number['MIN_SAFE_INTEGER'],_0xa7cc0c=Number['MAX_SAFE_INTEGER'],_0x9c2c88=Number['MIN_SAFE_INTEGER'];for(const _0x35c479 of _0x3af45d){if('$graveyard'==_0x35c479['root']['rootName'])continue;const {row:_0x20ede5,column:_0x11a236}=_0x2329d8['getCellLocation'](_0x35c479),_0x146432=_0x35c479['hasAttribute']('rowspan')?_0x35c479['getAttribute']('rowspan')-0x1:0x0,_0x1195a4=_0x35c479['hasAttribute']('colspan')?_0x35c479['getAttribute']('colspan')-0x1:0x0;_0x4cc178=_0x20ede5<_0x4cc178?_0x20ede5:_0x4cc178,_0x56e5b6=_0x20ede5+_0x146432>_0x56e5b6?_0x20ede5+_0x146432:_0x56e5b6,_0xa7cc0c=_0x11a236<_0xa7cc0c?_0x11a236:_0xa7cc0c,_0x9c2c88=_0x11a236+_0x1195a4>_0x9c2c88?_0x11a236+_0x1195a4:_0x9c2c88;}return{'minRow':_0x4cc178,'maxRow':_0x56e5b6,'minColumn':_0xa7cc0c,'maxColumn':_0x9c2c88};}['_setupColumnsRowsFixing'](){const _0x14a32d=this['editor'],_0xa6fdc7=_0x14a32d['plugins']['get']('TrackChangesEditing'),_0x5a9d2f=_0x14a32d['plugins']['get']('TableUtils');_0x14a32d['model']['document']['on']('change:data',()=>{const _0x2c87e6=Array['from'](_0x14a32d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x212a04,data:_0x1ec803}of _0x2c87e6){const {group:_0x3df900,id:_0x2dac6a,subType:_0xf0bfe2}=_0xa6fdc7['_splitMarkerName'](_0x212a04);if('suggestion'!=_0x3df900)continue;if(null!=_0x1ec803['oldRange'])continue;const _0x5870d2=_0xa6fdc7['getSuggestion'](_0x2dac6a);this['_tablePostFixingSubtypes']['includes'](_0xf0bfe2)&&this['_tableSuggestions']['add'](_0x5870d2);}},{'priority':'low'});const _0x1eca36=(_0x4d0aca,_0x2d9796)=>{let _0x580103=!0x1;const _0x1a891a=_0x2d9796['createRangeOn'](_0x4d0aca),_0xa255f7=_0x4d0aca['findAncestor']('table'),_0x44437e=_0x5a9d2f['getCellLocation'](_0x4d0aca);for(const _0x51f1be of this['_tableSuggestions']){const _0x341032=_0x51f1be['subType'],_0x1de5b0=_0x341032['startsWith']('tablePaste'),_0x227fc9=_0x341032['substr'](_0x1de5b0?0xa:0x5),_0x16596e=_0x227fc9['toLowerCase'](),_0x25e3a0=_0x16596e['substr'](0x0,0x3)+'span',_0x1e94e6='min'+_0x227fc9,_0x52b621='max'+_0x227fc9;if(!_0x51f1be['isInContent'])continue;if(_0xa255f7!=_0x51f1be['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x51f1be['isIntersectingWithRange'](_0x1a891a))continue;const _0x506678=_0x4d0aca['hasAttribute'](_0x25e3a0)?_0x4d0aca['getAttribute'](_0x25e3a0)-0x1:0x0,_0x4e3614=this['_getSuggestionCoords'](_0x51f1be),_0x5aa451=_0x4e3614[_0x1e94e6],_0x309710=_0x4e3614[_0x52b621];_0x5aa451<=_0x44437e[_0x16596e]&&_0x44437e[_0x16596e]+_0x506678<=_0x309710&&(_0x51f1be['addRange'](_0x1a891a),_0x580103=!0x0);}return _0x580103;};_0x14a32d['model']['document']['registerPostFixer'](_0x4d638b=>{let _0x437b2c=!0x1;for(const _0x4bfbee of _0x14a32d['model']['document']['differ']['getChanges']())if('insert'==_0x4bfbee['type']){if('tableRow'==_0x4bfbee['name']){for(const _0xbf4744 of _0x4bfbee['position']['nodeAfter']['getChildren']())_0x437b2c=_0x437b2c||_0x1eca36(_0xbf4744,_0x4d638b);}else'tableCell'==_0x4bfbee['name']&&(_0x437b2c=_0x437b2c||_0x1eca36(_0x4bfbee['position']['nodeAfter'],_0x4d638b));}return _0x437b2c;});}['_getSuggestionCoords'](_0xa91322){return this['_getCoordsForCells'](_0xa91322['getRanges']()['map'](_0x5dd6dd=>_0x5dd6dd['start']['nodeAfter']));}}function Ne(_0x5dbf6c){return Array['from'](new Set(_0x5dbf6c)['values']());}class Nt extends _0xc831a5{static get['requires'](){return[Ct];}['afterInit'](){const _0x3e601b=this['editor'],_0x2981d6=_0x3e601b['model']['document']['selection'],_0x5de0ab=_0x3e601b['locale'];if(!_0x3e601b['plugins']['has']('TableEditing'))return;const _0x1aca34=_0x3e601b['plugins']['get']('TrackChangesEditing'),_0x14c4ab=_0x3e601b['plugins']['get']('TableUtils'),_0x248656=_0x3e601b['plugins']['get'](Ct);_0x248656['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1aca34['enableCommand']('mergeTableCells',()=>{const _0x5bf40a=_0x14c4ab['getSelectionAffectedTableCells'](_0x3e601b['model']['document']['selection']);_0x3e601b['model']['change'](()=>{_0x1aca34['markMultiRangeBlockFormat'](_0x5bf40a,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3e601b['commands']['get']('mergeTableCells')['on']('execute',(_0xe03b2e,_0x13829c)=>{_0x3e601b['commands']['get']('trackChanges')['value']&&(_0x13829c['length']>0x0&&_0x13829c[_0x13829c['length']-0x1]&&_0x13829c[_0x13829c['length']-0x1]['forceDefaultExecution']||_0x1aca34['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xe03b2e['stop']());},{'priority':'highest'});for(const _0x1221ce of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4b997c=_0x3e601b['commands']['get'](_0x1221ce);_0x1aca34['enableCommand'](_0x1221ce,()=>{const _0x19387b=_0x3e601b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x592e85=>_0x592e85['is']('element','tableCell')),_0x5a6bdd=_0x4b997c['value'];_0x3e601b['model']['change'](()=>{_0x1aca34['markMultiRangeBlockFormat']([_0x19387b,_0x5a6bdd],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x184b2f of['splitTableCellVertically','splitTableCellHorizontally']){const _0x243ffd=_0x3e601b['commands']['get'](_0x184b2f);_0x1aca34['enableCommand'](_0x184b2f,()=>{const _0x1b0992=_0x14c4ab['getSelectionAffectedTableCells'](_0x3e601b['model']['document']['selection'])[0x0],_0x13b723=_0x1b0992['findAncestor']('table'),{column:_0x17427b,row:_0x13241c}=_0x14c4ab['getCellLocation'](_0x1b0992);let _0x422125=[];if('horizontally'==_0x243ffd['direction']){const _0x3d9cc5=_0x14c4ab['createTableWalker'](_0x13b723,{'startRow':_0x13241c,'endRow':_0x13241c,'includeAllSlots':!0x0});_0x422125=Array['from'](_0x3d9cc5)['map'](_0x10978d=>_0x10978d['cell']);}else{const _0x5bbd28=_0x14c4ab['createTableWalker'](_0x13b723,{'column':_0x17427b,'includeAllSlots':!0x0});_0x422125=Array['from'](_0x5bbd28)['map'](_0xd447bd=>_0xd447bd['cell']);}_0x3e601b['model']['change'](_0x5746a4=>{_0x1aca34['markBlockFormat'](_0x5746a4['createRangeOn'](_0x1b0992),{'commandName':_0x184b2f,'commandParams':[]},_0x422125,_0x184b2f);});});}_0x1aca34['descriptionFactory']['registerDescriptionCallback'](_0x5b36ac=>{if('formatBlock'!=_0x5b36ac['type']&&'formatInline'!=_0x5b36ac['type'])return;const {data:_0x310fec}=_0x5b36ac;return _0x310fec&&'mergeTableCells'==_0x310fec['commandName']?{'type':'format','content':c(_0x5de0ab,'*Merge\x20cells*')}:void 0x0;}),_0x1aca34['descriptionFactory']['registerDescriptionCallback'](_0x2d8e57=>{if('formatBlock'!=_0x2d8e57['type']&&'formatInline'!=_0x2d8e57['type'])return;const {data:_0x1d870d}=_0x2d8e57;return _0x1d870d?'splitTableCellVertically'==_0x1d870d['commandName']?{'type':'format','content':c(_0x5de0ab,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1d870d['commandName']?{'type':'format','content':c(_0x5de0ab,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x11517a=_0x248656['_acceptFormatSuggestionCallbackFactory']();for(const _0x2ba6df of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1aca34['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2ba6df,'accept',_0x11517a);for(const _0x4401bd of['splitTableCellVertically','splitTableCellHorizontally'])_0x1aca34['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4401bd,'accept',_0x11517a);_0x1aca34['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x42a3a1=>{_0x3e601b['model']['change'](_0x3b5414=>{const _0x96d067=Array['from'](_0x2981d6['getRanges']())['map'](_0x35695e=>_0x1a0cce['fromRange'](_0x35695e));_0x3b5414['setSelection'](_0x42a3a1),_0x3e601b['commands']['get']('mergeTableCells')['refresh'](),_0x3e601b['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1f0c84=_0x96d067['filter'](_0x31831c=>'$graveyard'!=_0x31831c['root']['rootName']);_0x1f0c84['length']>0x0&&_0x3b5414['setSelection'](_0x1f0c84);for(const _0x4d1284 of _0x96d067)_0x4d1284['detach']();});});for(const _0x51fd28 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x52fcd7=_0x3e601b['commands']['get'](_0x51fd28);_0x52fcd7['on']('set:isEnabled',(_0x7af263,_0x5122c2,_0xeb072b)=>{if(_0xeb072b){const _0x312687=_0x3e601b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x406a68=>_0x406a68['is']('element','tableCell'));this['_areMergableCells'](_0x52fcd7['value'],_0x312687)||(_0x7af263['return']=!0x1,_0x7af263['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4380ce=this['editor']['commands']['get']('mergeTableCells'),_0x5d2d0f=this['editor']['plugins']['get']('TableUtils');if(!_0x4380ce['isEnabled'])return!0x1;const _0x53db0b=_0x5d2d0f['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x340137 of _0x53db0b)for(const _0xe1f62a of _0x53db0b)if(_0x340137!=_0xe1f62a&&!this['_areMergableCells'](_0x340137,_0xe1f62a))return!0x1;return!0x0;}['_areMergableCells'](_0x266338,_0x48882b){const _0x2aeceb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d5d26=this['editor']['model']['createRangeOn'](_0x266338),_0x228f2a=this['editor']['model']['createRangeOn'](_0x48882b),_0xfa7d8b=new Set(),_0x3bb9a4=new Set();for(const _0x51f9d1 of _0x2aeceb['getSuggestions']())if(('insertion'==_0x51f9d1['type']||'deletion'==_0x51f9d1['type']||'mergeTableCells'==_0x51f9d1['subType'])&&_0x51f9d1['isInContent']){for(const _0x44a937 of _0x51f9d1['getRanges']())_0x44a937['containsRange'](_0x4d5d26,!0x0)&&_0xfa7d8b['add'](_0x51f9d1['type']+':'+_0x51f9d1['author']['id']),_0x44a937['containsRange'](_0x228f2a,!0x0)&&_0x3bb9a4['add'](_0x51f9d1['type']+':'+_0x51f9d1['author']['id']);}if(_0xfa7d8b['size']!=_0x3bb9a4['size'])return!0x1;for(const _0x4cf97c of _0xfa7d8b)if(!_0x3bb9a4['has'](_0x4cf97c))return!0x1;return!0x0;}}class Dt extends _0xc831a5{static get['requires'](){return[Ct];}['afterInit'](){const _0x1ce23b=this['editor'];if(!_0x1ce23b['plugins']['has']('TableEditing'))return;const _0x838960=_0x1ce23b['locale'],_0x2fc082=_0x1ce23b['plugins']['get']('TrackChangesEditing');_0x2fc082['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2fc082['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2fc082['registerBlockAttribute']('headingRows'),_0x2fc082['registerBlockAttribute']('headingColumns'),_0x2fc082['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x838960,'FORMAT_HEADER_ROW')),_0x2fc082['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x838960,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x173d50=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd3b13c=this['editor']['plugins']['get']('TableUtils'),_0x2251a6=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x327954({showActiveMarker:_0x353ec6=!0x0,setDataAttribute:_0x593a24=!0x0}={}){return(_0x21814c,_0x4a28e7,_0x15114f)=>{const {type:_0x1443ce,id:_0x4bf912}=_0x173d50['_splitMarkerName'](_0x4a28e7['markerName']),_0x1f1dc7=_0x173d50['getSuggestion'](_0x4bf912),_0x4d2761=_0x1f1dc7['data'];if('formatBlock'!=_0x1f1dc7['type']||!_0x4d2761||'setTableColumnHeader'!=_0x4d2761['commandName'])return;if(_0x4a28e7['item'])return void _0x21814c['stop']();if(!_0x15114f['consumable']['consume'](_0x4a28e7['markerRange'],_0x21814c['name']))return;const _0xe5e701=_0x4a28e7['markerRange']['start']['nodeAfter'],_0x41cc1b=_0x4a28e7['markerRange']['end']['nodeBefore'],_0x157f41=_0xe5e701['parent']['parent'],{column:_0x538616}=_0xd3b13c['getCellLocation'](_0xe5e701),{column:_0x1e5c02}=_0xd3b13c['getCellLocation'](_0x41cc1b);for(let _0x41f156=_0x538616;_0x41f156<=_0x1e5c02;_0x41f156++){const _0x520872=_0xd3b13c['createTableWalker'](_0x157f41,{'column':_0x41f156,'includeAllSlots':!0x1});for(const _0x4f25d6 of _0x520872){const _0x2d4464=_0x4f25d6['cell'],_0x459ecc=_0x15114f['mapper']['toViewElement'](_0x2d4464);_0x15114f['writer']['addClass']('ck-suggestion-marker-'+_0x1443ce,_0x459ecc),_0x593a24&&_0x15114f['writer']['setAttribute']('data-suggestion',_0x4bf912,_0x459ecc),_0x15114f['mapper']['bindElementToMarker'](_0x459ecc,_0x4a28e7['markerName']),_0x353ec6&&(_0x173d50['activeMarkers']['includes'](_0x4a28e7['markerName'])?_0x15114f['writer']['addClass']('ck-suggestion-marker--active',_0x459ecc):_0x15114f['writer']['removeClass']('ck-suggestion-marker--active',_0x459ecc));}}};}_0x173d50['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2251a6),_0x173d50['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2251a6),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x327954(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5cd39d,_0x15cc25,_0x3f5e16)=>{_0x3f5e16['options']['showSuggestionHighlights']&&_0x327954({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5cd39d,_0x15cc25,_0x3f5e16);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x329634,_0x2b193a,_0x390b07)=>{const {type:_0x5cbfd9,id:_0x2ea210}=_0x173d50['_splitMarkerName'](_0x2b193a['markerName']),_0x177dde=_0x173d50['getSuggestion'](_0x2ea210),_0x9dd280=_0x177dde['data'];if('formatBlock'!=_0x177dde['type']||!_0x9dd280||'setTableColumnHeader'!=_0x9dd280['commandName'])return;const _0x5bced4=_0x390b07['mapper']['markerNameToElements'](_0x2b193a['markerName']);if(_0x5bced4){for(const _0xc3d9e1 of _0x5bced4)_0x390b07['writer']['removeClass']('ck-suggestion-marker-'+_0x5cbfd9,_0xc3d9e1),_0x390b07['writer']['removeClass']('ck-suggestion-marker--active',_0xc3d9e1),_0x390b07['writer']['removeAttribute']('data-suggestion',_0xc3d9e1),_0x390b07['mapper']['unbindElementFromMarkerName'](_0xc3d9e1,_0x2b193a['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5187c0=this['editor'],_0x384a38=_0x5187c0['locale'];function _0x50255b(_0x5829e9){return{'type':'format','content':c(_0x384a38,'*Format:*\x20%0',_0x5829e9)};}_0x5187c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x70c7a0=>{if('formatBlock'!=_0x70c7a0['type'])return;const {data:_0x19a8a7}=_0x70c7a0;if(_0x19a8a7){if('setTableRowHeader'==_0x19a8a7['commandName']){const _0x5a94fe=_0x19a8a7['commandParams'][0x0]['forceValue'];return _0x50255b(c(_0x384a38,_0x5a94fe?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x19a8a7['commandName']){const _0x175a67=_0x19a8a7['commandParams'][0x0]['forceValue'];return _0x50255b(c(_0x384a38,_0x175a67?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x19ba98=>[_0x19ba98,null]));class Mt extends _0xc831a5{static get['requires'](){return[Ct];}['afterInit'](){const _0x1671ce=this['editor'];if(!_0x1671ce['plugins']['has']('TableClipboard'))return;const _0x2264f8=_0x1671ce['plugins']['get']('TrackChangesEditing'),_0x1eef81=_0x1671ce['plugins']['get']('TableUtils'),_0x480415=_0x1671ce['plugins']['get'](Ct),_0x44de92=_0x1671ce['plugins']['get']('TableClipboard');_0x480415['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1671ce['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1671ce['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3163=null;_0x1671ce['model']['on']('insertContent',(_0x488ef9,_0x1bd6f6)=>{const [_0x9a99f4,_0x501c96]=_0x1bd6f6,_0x49a227=_0x1bd6f6[_0x1bd6f6['length']-0x1];_0x49a227&&_0x49a227['forceDefaultExecution']||_0x2264f8['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4641c6,_0x1cda1c,_0x3b7c95,_0x5ceba0,_0x35dbd6){if(_0x1cda1c&&!_0x1cda1c['is']('documentSelection'))return!0x1;const _0x3033d7=_0x35dbd6['getTableIfOnlyTableInContent'](_0x4641c6,_0x3b7c95);if(!_0x3033d7||!Ue(_0x3033d7,void 0x0,_0x5ceba0))return!0x1;const _0x983f99=_0x5ceba0['getSelectionAffectedTableCells'](_0x3b7c95['document']['selection']);if(!_0x983f99['length'])return!0x1;const _0x19dc04=_0x983f99[0x0]['findAncestor']('table'),_0x44d282=_0x5ceba0['getRowIndexes'](_0x983f99),_0x52884d=_0x5ceba0['getColumnIndexes'](_0x983f99),_0x4523ff={'startRow':_0x44d282['first'],'endRow':_0x44d282['last'],'startColumn':_0x52884d['first'],'endColumn':_0x52884d['last']};return 0x1==_0x983f99['length']&&(_0x4523ff['endRow']+=_0x5ceba0['getRows'](_0x3033d7)-0x1,_0x4523ff['endColumn']+=_0x5ceba0['getColumns'](_0x3033d7)-0x1),Ue(_0x19dc04,_0x4523ff,_0x5ceba0);}(_0x9a99f4,_0x501c96,_0x1671ce['model'],_0x1eef81,_0x44de92)&&(_0x488ef9['stop'](),_0x3163={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1671ce['model']['change'](()=>{_0x1671ce['model']['insertContent'](_0x1bd6f6[0x0],_0x1bd6f6[0x1],_0x1bd6f6[0x2],{'forceDefaultExecution':!0x0});const _0x35f4ec=_0x18a796(),{rowInsertionRanges:_0x9ad0f8,columnInsertionRanges:_0x19408f,insertionRanges:_0xe7859c,deletionRanges:_0xa607d,cells:_0x1e1922}=_0x3163;_0x9ad0f8['length']&&_0x2264f8['markMultiRangeInsertion'](_0x9ad0f8,'tablePasteRow',{'tablePasteChainId':_0x35f4ec}),_0x19408f['length']&&_0x2264f8['markMultiRangeInsertion'](_0x19408f,'tablePasteColumn',{'tablePasteChainId':_0x35f4ec}),_0xe7859c['length']&&(_0x2264f8['markMultiRangeInsertion'](_0xe7859c,'tablePaste',{'tablePasteChainId':_0x35f4ec,'skipNestingCheck':!0x0}),_0xe7859c['forEach'](_0x3b0b56=>_0x3b0b56['detach']?.())),_0xa607d['length']&&(_0x2264f8['markMultiRangeDeletion'](_0xa607d,'tablePaste',{'tablePasteChainId':_0x35f4ec,'skipNestingCheck':!0x0}),_0xa607d['forEach'](_0x5ab0e5=>_0x5ab0e5['detach']?.()));const _0x31e7b0=_0x2264f8['markMultiRangeBlockFormat'](_0x1e1922['map'](({element:_0x2e7770})=>_0x2e7770),{'formatGroupId':_0x18a796()},[],'tablePasteCell',{'tablePasteChainId':_0x35f4ec});if(_0x31e7b0){const _0x25fa9a=_0x31e7b0['getMarkers'](),_0x4e55d3=[];for(const {element:_0x26d207,attributes:_0x634fa}of _0x1e1922){if(!_0x634fa)continue;const _0x36f8fb=_0x1671ce['model']['createRangeOn'](_0x26d207),_0x22e7cc=_0x25fa9a['find'](_0x582d9c=>_0x582d9c['getRange']()['isEqual'](_0x36f8fb));_0x22e7cc&&_0x4e55d3['push']([_0x22e7cc['name'],_0x634fa]);}_0x4e55d3['length']&&_0x31e7b0['setAttribute']('markerAttributes',Object['fromEntries'](_0x4e55d3));}_0x3163=null;}));},{'priority':_0x4055eb['high']+0xa}),_0x1671ce['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x21b0c5,_0xec6dc1)=>{const [_0x31827c,_0x3c0556,,_0x530fe3]=_0xec6dc1;if(!_0x3163)return;_0x21b0c5['stop']();const _0x411e42=_0x31827c['cell'],_0x2b2506=_0x3c0556,_0x10f0e5=Oe(_0x411e42),_0x5399b6=Oe(_0x2b2506);_0x21b0c5['return']=_0x411e42;let _0x38ebda=null,_0x8242d=null;if(_0x5399b6||_0x10f0e5){if(_0x10f0e5&&!_0x5399b6){_0x530fe3['remove'](_0x411e42['getChild'](0x0));for(const _0xc6bcc6 of Array['from'](_0x2b2506['getChildren']()))_0x530fe3['insert'](_0xc6bcc6,_0x411e42,'end');const _0x412bef=_0x3163['rowInsertionIndexes']['includes'](_0x31827c['row']),_0x202203=_0x3163['columnInsertionIndexes']['includes'](_0x31827c['column']);_0x412bef||_0x202203||(_0x38ebda=_0x1a0cce['fromRange'](_0x530fe3['createRangeIn'](_0x411e42)));}else _0x5399b6&&!_0x10f0e5&&(_0x8242d=_0x530fe3['createRangeIn'](_0x411e42));}else{const _0xccdbf0=_0x530fe3['createElement']('tableCellSuggestion'),_0x4bb2d8=_0x530fe3['createElement']('tableCellSuggestion');_0x530fe3['wrap'](_0x530fe3['createRangeIn'](_0x411e42),_0x4bb2d8),_0x530fe3['insert'](_0xccdbf0,_0x411e42,0x0);for(const _0x3df81a of Array['from'](_0x2b2506['getChildren']()))_0x530fe3['insert'](_0x3df81a,_0xccdbf0,'end');_0x38ebda=_0x1a0cce['fromRange'](_0x530fe3['createRangeOn'](_0xccdbf0)),_0x8242d=_0x1a0cce['fromRange'](_0x530fe3['createRangeOn'](_0x4bb2d8));}const _0x505e29=Array['from'](_0x2b2506['getAttributes']())['filter'](([_0x1ba8ee])=>Be['includes'](_0x1ba8ee));_0x3163['cells']['push']({'element':_0x411e42,'attributes':_0x505e29['length']?Object['fromEntries'](_0x505e29):null}),_0x38ebda&&_0x3163['insertionRanges']['push'](_0x38ebda),_0x8242d&&_0x3163['deletionRanges']['push'](_0x8242d);},{'priority':'high'}),_0x1eef81['on']('insertColumns',(_0xb18b7,_0xe0aa51)=>{const [_0x48d955,_0x1c8654={}]=_0xe0aa51;if(!_0x3163)return;const _0x45a0ae=_0x1c8654['at']||0x0,_0x3ae178=_0x1c8654['columns']||0x1;_0x3163['columnInsertionIndexes']=new Array(_0x3ae178)['fill'](_0x45a0ae)['map']((_0x4e8963,_0x23aca7)=>_0x4e8963+_0x23aca7);for(const {cell:_0x53e011}of _0x1eef81['createTableWalker'](_0x48d955,{'startColumn':_0x45a0ae,'endColumn':_0x45a0ae+_0x3ae178-0x1}))_0x3163['columnInsertionRanges']['push'](_0x1671ce['model']['createRangeOn'](_0x53e011));},{'priority':'low'}),_0x1eef81['on']('insertRows',(_0xf50567,_0x1d3d78)=>{const [_0x35eb48,_0x1cb83c={}]=_0x1d3d78;if(!_0x3163)return;const _0x558a3c=_0x1cb83c['at']||0x0,_0x31982c=_0x1cb83c['rows']||0x1;_0x3163['rowInsertionIndexes']=new Array(_0x31982c)['fill'](_0x558a3c)['map']((_0x4725fc,_0x469233)=>_0x4725fc+_0x469233);for(const {cell:_0x3a8c4c}of _0x1eef81['createTableWalker'](_0x35eb48,{'startRow':_0x558a3c,'endRow':_0x558a3c+_0x31982c-0x1}))_0x3163['rowInsertionRanges']['push'](_0x1671ce['model']['createRangeOn'](_0x3a8c4c));},{'priority':'low'}),_0x2264f8['descriptionFactory']['registerDescriptionCallback'](_0x5a4b87=>{if(_0x5a4b87['subType']&&_0x5a4b87['subType']['startsWith']('tablePaste'))return _0x5a4b87['previous']?{}:{'type':'insertion','content':c(_0x1671ce['locale'],'*Replace\x20table\x20cells*')};});const _0x4267f6=()=>!0x1;for(const _0x4505a2 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2264f8['_suggestionFactory']['registerCustomCallback']('insertion',_0x4505a2,'join',_0x4267f6),_0x2264f8['_suggestionFactory']['registerCustomCallback']('deletion',_0x4505a2,'join',_0x4267f6),_0x2264f8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4505a2,'join',_0x4267f6);_0x2264f8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4267f6),_0x2264f8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4f97d5,_0x55858c,_0x393f6e)=>{const _0x14e2bb=_0x4f97d5['map'](_0x471164=>_0x471164['getContainedElement']())['filter'](_0x54185f=>_0x54185f),_0x2a9eec=new Map(_0x14e2bb['map'](_0x35d723=>[_0x35d723,null]));if(_0x3163){for(const {element:_0x4ccd5e,attributes:_0x3c2322}of _0x3163['cells'])_0x3c2322&&_0x2a9eec['set'](_0x4ccd5e,_0x3c2322);}else{if(_0x393f6e&&_0x393f6e['markerAttributes'])for(const [_0x3eaff7,_0x23a6ce]of Object['entries'](_0x393f6e['markerAttributes'])){const _0x4a470c=_0x1671ce['model']['markers']['get'](_0x3eaff7),_0x283937=_0x4a470c?_0x4a470c['getRange']()['getContainedElement']():null;_0x283937&&_0x2a9eec['set'](_0x283937,_0x23a6ce);}}_0x1671ce['model']['change'](_0x302389=>{for(const [_0x1043f2,_0x38f0ae]of _0x2a9eec)_0x302389['setAttributes']({...xe,..._0x38f0ae},_0x1043f2);});});const _0x28145a=(_0xc60c09,_0x1fa471)=>{_0x2264f8['_suggestionFactory']['registerCustomCallback'](_0xc60c09,'tablePaste',_0x1fa471,(_0x11312f,_0x4ac958,_0x4f2512)=>{_0x1671ce['model']['change'](_0x42b7cb=>{const _0x41baa5=[];for(const _0x3c9b38 of _0x11312f){const _0x239779=_0x3c9b38['start']['nodeAfter'];_0x239779['is']('element','tableCellSuggestion')&&_0x41baa5['push'](_0x239779);}_0x2264f8['_suggestionFactory']['getSuggestionCallback'](_0xc60c09,null,_0x1fa471)(_0x11312f,_0x4ac958,_0x4f2512);for(const _0x41801c of _0x41baa5)'$graveyard'!=_0x41801c['root']['rootName']&&_0x42b7cb['unwrap'](_0x41801c);});});};_0x28145a('insertion','accept'),_0x28145a('insertion','discard'),_0x28145a('deletion','accept'),_0x28145a('deletion','discard'),_0x2264f8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x525f52=>{const _0x126ef7=_0x525f52['map'](_0xecac9d=>_0xecac9d['getContainedElement']()),_0x29c608=_0x126ef7[0x0]['findAncestor']('table'),{minRow:_0x562ff2,maxRow:_0x4cd5b8}=_0x480415['_getCoordsForCells'](_0x126ef7);_0x1eef81['removeRows'](_0x29c608,{'at':_0x562ff2,'rows':_0x4cd5b8-_0x562ff2+0x1});}),_0x2264f8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x397a9b=>{const _0x1fe32a=_0x397a9b['map'](_0x557689=>_0x557689['getContainedElement']()),_0x5c2578=_0x1fe32a[0x0]['findAncestor']('table'),{minColumn:_0x4484c3,maxColumn:_0x31458f}=_0x480415['_getCoordsForCells'](_0x1fe32a);_0x1eef81['removeColumns'](_0x5c2578,{'at':_0x4484c3,'columns':_0x31458f-_0x4484c3+0x1});});const _0x5f1a71=(_0x107172,_0x169122)=>{if(!_0x169122['subType']||!_0x169122['subType']['startsWith']('tablePaste'))return;const _0x279981=_0x169122['attributes']['tablePasteChainId'],_0x44db37=_0x2264f8['getSuggestions']()['filter'](_0x1c3fe8=>_0x1c3fe8['isInContent']&&_0x1c3fe8['attributes']&&_0x1c3fe8['attributes']['tablePasteChainId']==_0x279981);_0x44db37['length']&&_0x169122['getAllAdjacentSuggestions']()['length']!=_0x44db37['length']&&_0x44db37['reduce']((_0x33b709,_0x267cf)=>(_0x33b709['next']=_0x267cf,_0x267cf['previous']=_0x33b709,_0x267cf));};function _0x31c556(_0x3f8ee5,_0xa01d99=!0x0){const {id:_0xa28076,authorId:_0x5e49d8}=_0x2264f8['_splitMarkerName'](_0x3f8ee5['markerName']),_0x553b33=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5902f5=_0x2264f8['activeMarkers']['includes'](_0x3f8ee5['markerName']);return _0x5902f5&&_0x553b33['push']('ck-suggestion-marker--active'),{'classes':_0x553b33,'attributes':{'data-suggestion':_0xa28076,'data-author-id':_0x5e49d8},'priority':_0x5902f5&&_0xa01d99?0xbc2:0xbb8};}_0x2264f8['on']('suggestionLoaded',_0x5f1a71,{'priority':'high'}),_0x2264f8['on']('suggestionUnloaded',_0x5f1a71,{'priority':'high'}),_0x1671ce['model']['document']['registerPostFixer'](()=>{let _0x3ff30c=!0x1;const _0x39486a=Array['from'](_0x1671ce['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x18da1d,data:_0x30a22d}of _0x39486a){const {group:_0xcbad7c,type:_0x52c2ce,id:_0x3d63b4}=_0x2264f8['_splitMarkerName'](_0x18da1d);if('suggestion'!=_0xcbad7c||'deletion'!=_0x52c2ce||_0x30a22d['oldRange'])continue;if(!_0x2264f8['hasSuggestion'](_0x3d63b4))continue;const _0x118ee1=_0x2264f8['getSuggestion'](_0x3d63b4)['getRanges'](),_0x2735df=_0x1671ce['plugins']['get']('Users')['me'];for(const _0x1d838e of _0x2264f8['getSuggestions']()){if(!_0x1d838e['isInContent']||_0x1d838e['author']!=_0x2735df)continue;if('formatBlock'!=_0x1d838e['type']||'tablePasteCell'!=_0x1d838e['subType'])continue;if(_0x1d838e['getRanges']()['every'](_0x322ef8=>_0x118ee1['some'](_0x283fb8=>_0x283fb8['containsRange'](_0x322ef8,!0x0)))){for(const _0x2be450 of _0x1d838e['getAllAdjacentSuggestions']())_0x2be450['isInContent']&&(_0x2be450['discard'](),_0x3ff30c=!0x0);}}}return _0x3ff30c;}),_0x1671ce['model']['document']['registerPostFixer'](_0x57fea2=>{const _0x3b4066=_0x1671ce['commands']['get']('redo');if(!_0x3b4066||!_0x3b4066['_createdBatches']['has'](_0x57fea2['batch']))return!0x1;let _0x2218d6=!0x1;const _0x16343f=_0x1671ce['plugins']['get']('Users')['me'],_0x565994=_0x1671ce['model']['document']['differ']['getChanges'](),_0x562902=Array['from'](_0x1671ce['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x206798,data:_0x2e48d3})=>{const {group:_0x3c157f,subType:_0x4d76a6,authorId:_0x364b19}=_0x2264f8['_splitMarkerName'](_0x206798);return'suggestion'==_0x3c157f&&'tablePaste'==_0x4d76a6&&_0x364b19==_0x16343f['id']&&!_0x2e48d3['oldRange'];});for(const _0x4a1832 of _0x565994){if('insert'!=_0x4a1832['type']||'tableCellSuggestion'!=_0x4a1832['name']||0x1!=_0x4a1832['length'])continue;const _0x5c253e=_0x57fea2['createRange'](_0x4a1832['position'],_0x4a1832['position']['getShiftedBy'](0x1));if(!_0x562902['find'](({data:_0x3e3ddf})=>_0x3e3ddf['newRange']['isEqual'](_0x5c253e))){for(const {name:_0x5bb0a6,data:_0x1c0b30}of _0x562902)if(_0x5c253e['containsRange'](_0x1c0b30['newRange'])){_0x57fea2['updateMarker'](_0x5bb0a6,{'range':_0x5c253e}),_0x2218d6=!0x0;break;}}}return _0x2218d6;}),_0x1671ce['model']['document']['registerPostFixer'](_0x1b9990=>{let _0x250e5d=!0x1;const _0x11a2cf=_0x1671ce['plugins']['get']('Users')['me'],_0x31d4a4=_0x2264f8['getSuggestions']()['filter'](_0x19a367=>_0x19a367['isInContent']&&_0x19a367['author']==_0x11a2cf),_0x300dea=new Set(),_0x505916=new Set();for(const _0x38a647 of _0x31d4a4)if('tablePaste'==_0x38a647['subType'])for(const _0x57a43f of _0x38a647['getMarkers']()){const _0x4ec72d=_0x57a43f['getRange']()['getContainedElement']();if(_0x4ec72d){if(_0x4ec72d['is']('element','tableCellSuggestion')&&Oe(_0x4ec72d)){_0x38a647['removeMarker'](_0x57a43f['name']),_0x300dea['add'](_0x4ec72d),_0x250e5d=!0x0;const _0x1aefa1=_0x4ec72d['nextSibling'],_0x117dbf=_0x4ec72d['previousSibling'],_0x232ddc=_0x1aefa1&&_0x1aefa1['is']('element','tableCellSuggestion'),_0x34efa8=_0x117dbf&&_0x117dbf['is']('element','tableCellSuggestion');_0x232ddc&&!_0x300dea['has'](_0x1aefa1)&&_0x505916['add'](_0x1aefa1),_0x34efa8&&!_0x300dea['has'](_0x117dbf)&&_0x505916['add'](_0x117dbf);}else _0x4ec72d['is']('element','paragraph')&&_0x4ec72d['isEmpty']&&(_0x38a647['removeMarker'](_0x57a43f['name']),_0x250e5d=!0x0);}}else{if('tablePasteCell'==_0x38a647['subType']){if(!_0x38a647['attributes']||!_0x38a647['attributes']['tablePasteChainId'])continue;const _0x2a2fca=_0x38a647['attributes']['markerAttributes'];if(_0x2a2fca&&Object['keys'](_0x2a2fca)['length'])continue;const _0x1acb87=_0x38a647['attributes']['tablePasteChainId'];let _0x3556af=!0x0,_0x4f5e9a=!0x0;for(const _0x20bed1 of _0x31d4a4)if(_0x20bed1['subType']&&_0x20bed1['subType']['startsWith']('tablePaste')){if(!_0x20bed1['attributes']['tablePasteChainId']){_0x4f5e9a=!0x1;break;}if(_0x20bed1['id']!=_0x38a647['id']&&_0x20bed1['attributes']['tablePasteChainId']==_0x1acb87){_0x3556af=!0x1;break;}}_0x4f5e9a&&_0x3556af&&(_0x38a647['removeMarkers'](),_0x250e5d=!0x0);}}for(const _0x180a44 of _0x300dea)_0x1b9990['remove'](_0x180a44);for(const _0x1e9d88 of _0x505916)_0x1b9990['unwrap'](_0x1e9d88);return _0x250e5d;}),_0x1671ce['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x302426=>_0x31c556(_0x302426),'converterPriority':'high'}),_0x1671ce['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2a29cd,_0x7faeee)=>_0x7faeee['options']['showSuggestionHighlights']?_0x31c556(_0x2a29cd,!0x1):null,'converterPriority':'high'});const _0x4ee0fe=_0x1671ce['editing']['view'];this['listenTo'](_0x4ee0fe['document'],'clipboardOutput',(_0x5cffe2,_0x1bc63a)=>{const _0x16fa60=[];for(const _0x2d9ef1 of _0x4ee0fe['createRangeIn'](_0x1bc63a['content'])['getItems']())_0x2d9ef1['is']('element','suggestion-td')&&_0x16fa60['push'](_0x2d9ef1);_0x4ee0fe['change'](_0x13e77d=>{for(const _0x432d7c of _0x16fa60)_0x13e77d['move'](_0x13e77d['createRangeIn'](_0x432d7c),_0x13e77d['createPositionBefore'](_0x432d7c)),_0x13e77d['remove'](_0x432d7c);});});}}function Oe(_0x5711e3){if(_0x5711e3['isEmpty'])return!0x0;const _0xca5fe3=_0x5711e3['getChild'](0x0);return _0xca5fe3['is']('element','paragraph')&&_0xca5fe3['isEmpty'];}function Ue(_0x290378,_0x3c3138={},_0x442d92){for(const {isAnchor:_0x2a7b2e,cellHeight:_0x269b94,cellWidth:_0x292f70}of _0x442d92['createTableWalker'](_0x290378,{'includeAllSlots':!0x0,..._0x3c3138}))if(!_0x2a7b2e||0x1!=_0x269b94||0x1!=_0x292f70)return!0x1;return!0x0;}class $t extends _0xc831a5{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x55aa61=this['editor']['plugins']['get']('TrackChangesEditing');_0x55aa61['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x55aa61['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x55aa61['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x55aa61['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x55aa61['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x55aa61['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x254b0e,_0x46b93d){const _0x44b02f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ebabd=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1446f5=_0x46b93d['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3ebd56=_0x2ebabd['getColumnGroupElement'](_0x1446f5);let _0x1c98ab=_0x3ebd56?_0x2ebabd['getTableColumnsWidths'](_0x3ebd56):null,_0x2043bc=_0x1446f5['getAttribute']('tableWidth')||null;const _0x17cbac=_0x46b93d['tableWidth']||_0x2043bc,_0x48bae8=_0x46b93d['columnWidths']||_0x1c98ab,_0x24c2f6=this['editor']['plugins']['get']('Users')['me'];for(const _0x322517 of _0x44b02f['getSuggestions']()){const _0x260680=_0x322517['getContainedElement']();if('resizeTable'===_0x322517['subType']&&_0x260680===_0x1446f5){_0x322517['author']!==_0x24c2f6&&_0x322517['discard']();const _0x5cc89f=_0x322517['data']['commandParams'];_0x2043bc=_0x5cc89f[0x0]['tableWidth'],_0x1c98ab=_0x5cc89f[0x0]['columnWidths'];break;}}_0x254b0e({'table':_0x1446f5,'tableWidth':_0x17cbac,'columnWidths':_0x48bae8}),_0x44b02f['markBlockFormat'](_0x1446f5,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2043bc,'columnWidths':_0x1c98ab}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x6f0db6){if('formatBlock'!=_0x6f0db6['type']&&'formatInline'!=_0x6f0db6['type'])return;const {data:_0x1f7975}=_0x6f0db6;if(_0x1f7975&&'resizeTable'===_0x1f7975['formatGroupId']){const _0x503261='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x503261)};}}}class Bt extends _0xc831a5{['afterInit'](){const _0x3b32ed=this['editor'];_0x3b32ed['plugins']['has']('Template')&&_0x3b32ed['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0xc831a5{['afterInit'](){const _0x41bc01=this['editor'];if(!_0x41bc01['commands']['get']('insertTableOfContents'))return;_0x41bc01['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3f03f1=_0x41bc01['plugins']['get']('TrackChangesEditing'),_0x19c7d6=_0x41bc01['locale'];_0x3f03f1['descriptionFactory']['registerElementLabel']('tableOfContents',_0xa0753c=>c(_0x19c7d6,'ELEMENT_TABLE_OF_CONTENTS',_0xa0753c));}}class Rt extends _0xc831a5{['afterInit'](){const _0x188059=this['editor'];if(!_0x188059['plugins']['has']('Title'))return;const _0x450a5d=_0x188059['plugins']['get']('TrackChangesEditing');_0x450a5d['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x188059['locale'],'ELEMENT_TITLE')),_0x188059['model']['document']['registerPostFixer'](_0x1d02fa=>{let _0x23af45=!0x1;const _0x31b267=Array['from'](_0x188059['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x37459b,data:_0xd95075}of _0x31b267){const {group:_0x141d9c}=_0x450a5d['_splitMarkerName'](_0x37459b);if('suggestion'!==_0x141d9c||!_0xd95075['newRange'])continue;const _0x3b772b=_0xd95075['newRange'],_0x3e76ed=_0x3b772b['end']['nodeBefore'];if(!_0x3e76ed||!_0x3e76ed['is']('element','title-content'))continue;if(!_0x3b772b['start']['isTouching'](_0x3b772b['end']))continue;const _0x1e02c8=_0x188059['model']['schema']['getNearestSelectionRange'](_0x3b772b['end'],'forward');if(_0x1e02c8&&_0x1e02c8['isCollapsed']){const _0x1b3260=_0x1d02fa['createRange'](_0x3b772b['start'],_0x1e02c8['start']);_0x1b3260['isEqual'](_0x3b772b)||(_0x1d02fa['updateMarker'](_0x37459b,{'range':_0x1b3260}),_0x23af45=!0x0);}_0x23af45||(_0x1d02fa['removeMarker'](_0x37459b),_0x23af45=!0x0);}return _0x23af45;});}}class xt extends _0xc831a5{['afterInit'](){const _0x28db4d=this['editor'],_0x5acc0d=_0x28db4d['plugins']['get']('TrackChangesEditing');_0x28db4d['plugins']['has']('Uploadcare')&&(_0x5acc0d['enableCommand']('uploadcare'),_0x28db4d['plugins']['has']('UploadcareImageEdit')&&(_0x5acc0d['enableCommand']('uploadcareImageEdit'),_0x5acc0d['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5acc0d['registerBlockAttribute']('uploadcareImageId'),_0x5acc0d['descriptionFactory']['registerDescriptionCallback'](_0x2a2c52=>{if('attribute'!=_0x2a2c52['type'])return;const {data:_0x184ba5}=_0x2a2c52;return _0x184ba5&&'uploadcareImageId'==_0x184ba5['key']?{'type':'format','content':''}:void 0x0;})));}}class Tt extends _0xc831a5{['afterInit'](){const _0x1e2c83=this['editor'],_0x2afc23=_0x1e2c83['plugins']['get']('TrackChangesEditing');_0x1e2c83['plugins']['has']('UndoEditing')&&(_0x2afc23['enableCommand']('undo'),_0x2afc23['enableCommand']('redo'));}}class Et extends _0xc831a5{static get['requires'](){return[Ct];}['afterInit'](){const _0x4c9e0c=this['editor'];if(!_0x4c9e0c['plugins']['has']('TableCaptionEditing'))return;_0x4c9e0c['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0xc831a5{['tableProperties'];['tableCellProperties'];constructor(_0x5e7322){super(_0x5e7322),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 _0x4e4010=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x449513 of this['tableProperties'])_0x4e4010['enableCommand'](_0x449513,(_0x484d90,_0x672624)=>{const _0x4ca923=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x449513,[_0x4ca923],this['tableProperties'],'tableProperties',_0x484d90,_0x672624);});_0x4e4010['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4e4010['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4e4010['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4dfa0a,_0x7bb90)=>this['handleDiscardAction'](this['tableProperties'],_0x4dfa0a,_0x7bb90)),_0x4e4010['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4755dd of this['tableCellProperties'])_0x4e4010['enableCommand'](_0x4755dd,(_0x393f67,_0x512c87)=>{const _0x121727=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4755dd,_0x121727,this['tableCellProperties'],'tableCellProperties',_0x393f67,_0x512c87);});_0x4e4010['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4e4010['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4e4010['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x592da1,_0x1dbd17)=>this['handleDiscardAction'](this['tableCellProperties'],_0x592da1,_0x1dbd17)),_0x4e4010['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4e4010['descriptionFactory']['registerDescriptionCallback'](_0x34cd92=>this['handleSuggestionDescription'](_0x34cd92));}['_handlePropertyChange'](_0x56e402,_0x5a6291,_0x510556,_0xc3f877,_0x46fe41,_0x1add36){const _0x92c845=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1add36['batch'],()=>{for(const _0x2472ec of _0x5a6291){if(this['_getSuggestion'](_0x2472ec,_0xc3f877))_0x46fe41(_0x1add36);else{const _0x208364={};for(const _0x40fa9d of _0x510556){const _0x5014e8=_0x2472ec['getAttribute'](_0x40fa9d);void 0x0!==_0x5014e8&&(_0x208364[_0x40fa9d]=_0x5014e8);}_0x46fe41(_0x1add36),_0x92c845['markBlockFormat'](_0x2472ec,{'commandParams':[_0x208364]},[],_0xc3f877);}}});}['handleDiscardAction'](_0x1e0030,_0x56012e,_0x92cb9b){const _0x155cb2=_0x56012e[0x0]['start']['nodeAfter'],_0x10fcf8=_0x92cb9b['commandParams'][0x0];this['editor']['model']['change'](_0x33e5cd=>{for(const _0x19f489 of _0x1e0030)void 0x0!==_0x10fcf8[_0x19f489]?_0x33e5cd['setAttribute'](_0x19f489,_0x10fcf8[_0x19f489],_0x155cb2):_0x33e5cd['removeAttribute'](_0x19f489,_0x155cb2);});}['handleSuggestionDescription'](_0x4509d2){if(_0x4509d2['data'])switch(_0x4509d2['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x1ba76a,_0xc21f7b){const _0x39b779=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4a9f50 of _0x39b779['getSuggestions']({'skipNotAttached':!0x0})){const _0x2f5d5e=_0x4a9f50['getContainedElement']();if(_0x4a9f50['subType']===_0xc21f7b&&_0x2f5d5e===_0x1ba76a)return _0x4a9f50;}return null;}}const u='$elementName';class p extends _0xc831a5{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x5c361d,_0x2f470f,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,xt,Tt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x24ca61){super(_0x24ca61),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x19e4a5,_0x3aca76,_0x309b49,_0x55c936)=>{this['_model']['change'](()=>{for(const _0x3672a5 of[..._0x55c936,..._0x309b49])this['_model']['markers']['has'](_0x3672a5)&&_0x24ca61['editing']['reconvertMarker'](_0x3672a5);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ft(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x24ca61['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x24ca61['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x24ca61['config']['get']('trackChanges.trackFormatChanges'),_0x24ca61['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x24ca61['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x24ca61,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x222d14=this['editor'],_0x453e54=(_0xba8f98,_0x4f6659)=>{if('attribute'!=_0xba8f98)return'ck-suggestion-marker-'+_0xba8f98;const _0x1d6a6b=_0x4f6659['split']('|')[0x0];return this['_isBlockAttribute'](_0x1d6a6b)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x222d14['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x26a48a=>{const {id:_0x47b121,authorId:_0x43fd24,type:_0xbe85,subType:_0x1c18f3}=this['_splitMarkerName'](_0x26a48a['markerName']),_0xa1ab77=['ck-suggestion-marker',_0x453e54(_0xbe85,_0x1c18f3)];let _0x46aaa6=0xbb8;return this['activeMarkers']['includes'](_0x26a48a['markerName'])&&(_0xa1ab77['push']('ck-suggestion-marker--active'),_0x46aaa6=0xbc2),'deletion'==_0xbe85&&(_0x46aaa6+=0x5),{'classes':_0xa1ab77,'attributes':{'data-suggestion':_0x47b121,'data-author-id':_0x43fd24},'priority':_0x46aaa6};}}),_0x222d14['conversion']['for']('dataDowncast')['add'](_0x8ba52c=>{_0x8ba52c['on']('addMarker:suggestion',(_0x281bd3,_0x3ee8a9,_0x48c2ad)=>{if(!_0x48c2ad['options']['showSuggestionHighlights'])return;const _0x537690=_0x3ee8a9['item'];if(!_0x537690)return;const _0xf863f2=_0x48c2ad['mapper']['toViewElement'](_0x537690);_0x222d14['model']['schema']['isObject'](_0x537690)&&_0xf863f2&&!_0xf863f2['getCustomProperty']('widget')&&_0xf863f2['is']('containerElement')&&_0x1105f1(_0xf863f2,_0x48c2ad['writer']);},{'priority':'high'});}),_0x222d14['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x341179,_0x381dba)=>{if(!_0x381dba['options']['showSuggestionHighlights'])return null;const {type:_0x34cb52,subType:_0x58f074}=this['_splitMarkerName'](_0x341179['markerName']);return{'classes':['ck-suggestion-marker',_0x453e54(_0x34cb52,_0x58f074)],'priority':0xbb8};}});const _0x9e5dae=({showActiveMarkers:_0xcf517a=!0x0,isAttributeSuggestion:_0x3cc1e1=!0x1}={})=>(_0x12c2ec,_0x43c39c,_0x381ae5)=>{if(!_0x43c39c['item'])return;const {id:_0x1059b8,authorId:_0x487e0c}=this['_splitMarkerName'](_0x43c39c['markerName']);if(_0x3cc1e1){const _0x5990fb=this['_suggestions']['get'](_0x1059b8),_0xf1851c=this['_getAttributeKey'](_0x5990fb);if(!this['_isBlockAttribute'](_0xf1851c))return;}if(_0x43c39c['item']['is']('selection'))return void _0x381ae5['consumable']['consume'](_0x43c39c['item'],_0x12c2ec['name']);const _0x5bc86c=_0x381ae5['mapper']['toViewElement'](_0x43c39c['item']);if(_0x43c39c['item']['is']('element')&&_0x222d14['model']['schema']['isBlock'](_0x43c39c['item'])&&!_0x5bc86c['getCustomProperty']('addHighlight')){_0x381ae5['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5bc86c),_0x381ae5['writer']['setAttribute']('data-suggestion',_0x1059b8,_0x5bc86c),_0x381ae5['writer']['setAttribute']('data-author-id',_0x487e0c,_0x5bc86c),_0x381ae5['mapper']['bindElementToMarker'](_0x5bc86c,_0x43c39c['markerName']),_0xcf517a&&(this['activeMarkers']['includes'](_0x43c39c['markerName'])?_0x381ae5['writer']['addClass']('ck-suggestion-marker--active',_0x5bc86c):_0x381ae5['writer']['removeClass']('ck-suggestion-marker--active',_0x5bc86c));for(const _0xf98551 of _0x222d14['model']['createRangeIn'](_0x43c39c['item'])['getItems']())_0x381ae5['consumable']['consume'](_0xf98551,_0x12c2ec['name']);_0x381ae5['consumable']['consume'](_0x43c39c['item'],_0x12c2ec['name']);}};_0x222d14['conversion']['for']('dataDowncast')['add'](_0x57cd1a=>{_0x57cd1a['on']('addMarker:suggestion:formatBlock',(_0x4b1da2,_0x259d42,_0xfa6e88)=>{_0xfa6e88['options']['showSuggestionHighlights']&&_0x9e5dae({'showActiveMarkers':!0x1})(_0x4b1da2,_0x259d42,_0xfa6e88);},{'priority':'highest'});}),_0x222d14['conversion']['for']('dataDowncast')['add'](_0x17385e=>{_0x17385e['on']('addMarker:suggestion:attribute',(_0x4486a7,_0x2becaf,_0x53fbca)=>{_0x53fbca['options']['showSuggestionHighlights']&&_0x9e5dae({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4486a7,_0x2becaf,_0x53fbca);},{'priority':'highest'});}),_0x222d14['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1eab65,_0x5d99d7)=>_0x5d99d7['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1eab65['substr'](0xb)}}),_0x222d14['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x21f4f1,{writer:_0x2518b6})=>{let _0x437326='suggestion:'+_0x21f4f1['getAttribute']('suggestion-type')+':'+_0x21f4f1['getAttribute']('id');return _0x21f4f1['getAttribute']('marker-count')&&(_0x437326+=':'+_0x21f4f1['getAttribute']('marker-count')),_0x2518b6['createElement']('$marker',{'data-name':_0x437326});}}),_0x222d14['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x222d14['conversion']['for']('editingDowncast')['add'](_0xdbf802=>{_0xdbf802['on']('addMarker:suggestion:formatBlock',_0x9e5dae(),{'priority':'high'});}),_0x222d14['conversion']['for']('editingDowncast')['add'](_0x161ecc=>{_0x161ecc['on']('addMarker:suggestion:attribute',_0x9e5dae({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x222d14['conversion']['for']('editingDowncast')['add'](_0x49ae68=>{_0x49ae68['on']('removeMarker:suggestion:formatBlock',(_0x112a98,_0x2f229e,_0x4dc3a2)=>{const _0x27ac61=_0x4dc3a2['mapper']['markerNameToElements'](_0x2f229e['markerName']);if(_0x27ac61){for(const _0x5a48cc of _0x27ac61)_0x5a48cc['getCustomProperty']('addHighlight')||(_0x4dc3a2['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5a48cc),_0x4dc3a2['writer']['removeAttribute']('data-suggestion',_0x5a48cc),_0x4dc3a2['writer']['removeAttribute']('data-author-id',_0x5a48cc),_0x4dc3a2['mapper']['unbindElementFromMarkerName'](_0x5a48cc,_0x2f229e['markerName']));}},{'priority':'high'});}),_0x222d14['conversion']['for']('editingDowncast')['add'](_0x53f6e1=>{_0x53f6e1['on']('removeMarker:suggestion:attribute',(_0x526e1c,_0xd85107,_0x3fdd5c)=>{const _0x2983e7=_0x3fdd5c['mapper']['markerNameToElements'](_0xd85107['markerName']);if(!_0x2983e7)return;const {id:_0x49836a}=this['_splitMarkerName'](_0xd85107['markerName']),_0x1d8e1f=this['_suggestions']['get'](_0x49836a),_0x512b03=this['_getAttributeKey'](_0x1d8e1f);if(this['_isBlockAttribute'](_0x512b03)){for(const _0x29e242 of _0x2983e7)_0x29e242['getCustomProperty']('addHighlight')||(_0x3fdd5c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x29e242),_0x3fdd5c['writer']['removeAttribute']('data-suggestion',_0x29e242),_0x3fdd5c['writer']['removeAttribute']('data-author-id',_0x29e242),_0x3fdd5c['mapper']['unbindElementFromMarkerName'](_0x29e242,_0xd85107['markerName']));}},{'priority':'high'});}),_0x222d14['model']['document']['registerPostFixer'](_0x4c71f1=>{let _0x1909f9=!0x1;const _0x14ad38=Array['from'](_0x222d14['model']['document']['differ']['getChangedMarkers']()),_0x26f65e=new Set();for(const {name:_0x29b87b,data:_0x21566a}of _0x14ad38){const {group:_0x3116d4,type:_0x152ed5,subType:_0x2407be,id:_0x24bbe2}=this['_splitMarkerName'](_0x29b87b);if('suggestion'!==_0x3116d4)continue;const _0x4072b0=this['_suggestions']['get'](_0x24bbe2);if(null!=_0x21566a['newRange']){'formatInline'==_0x152ed5&&(_0x1909f9=_0x1909f9||Lt(_0x21566a['newRange'],_0x29b87b,_0x4c71f1,_0x222d14['model']['schema']));const _0x3b6aba='attribute'==_0x152ed5&&this['_isBlockAttribute'](_0x2407be['split']('|')[0x0]);if(_0x21566a['newRange']['isCollapsed']||'$graveyard'==_0x21566a['newRange']['root']['rootName']||'formatBlock'==_0x152ed5&&!Kt(_0x21566a['newRange'])||_0x3b6aba&&!Kt(_0x21566a['newRange'])||'deletion'==_0x152ed5&&!(!Gt(_0x24d764=_0x21566a['newRange'])&&!function(_0x186ead){return _0x186ead['start']['parent']==_0x186ead['end']['nodeBefore']&&_0x186ead['start']['isAtEnd'];}(_0x24d764)))_0x4c71f1['removeMarker'](_0x29b87b),_0x1909f9=!0x0;else{if(!_0x4072b0||!_0x4072b0['isInContent'])continue;if(_0x21566a['newRange']&&_0x21566a['oldRange']&&_0x21566a['newRange']['isEqual'](_0x21566a['oldRange']))continue;_0x26f65e['add'](_0x4072b0);}}}var _0x24d764;return _0x26f65e['size']>0x0&&(_0x1909f9=!!this['_joinWithAdjacentSuggestions'](_0x26f65e)||_0x1909f9),_0x1909f9;}),_0x222d14['model']['document']['registerPostFixer'](_0x4ce3f6=>{let _0x185314=!0x1;for(const _0x20f104 of _0x222d14['model']['document']['differ']['getChanges']())if('insert'==_0x20f104['type'])for(const _0x462e79 of this['_suggestions']['values']()){if(_0x462e79['isMultiRange']||!_0x462e79['isInContent'])continue;const _0x1f9ca3='formatBlock'==_0x462e79['type'],_0x59e31b=this['_getAttributeKey'](_0x462e79),_0x2d27a5=_0x59e31b&&this['_isBlockAttribute'](_0x59e31b);if(!_0x1f9ca3&&!_0x2d27a5)continue;const _0x45baf1=_0x462e79['getFirstRange']();if(_0x45baf1['start']['parent']!=_0x45baf1['end']['parent']&&!_0x45baf1['end']['isAtEnd']){const _0x4c5718=_0x222d14['model']['createPositionAt'](_0x45baf1['start']['nodeAfter'],'end'),_0x2a5ccc=_0x222d14['model']['createRange'](_0x45baf1['start'],_0x4c5718);_0x4ce3f6['updateMarker'](_0x462e79['getFirstMarker'](),{'range':_0x2a5ccc}),_0x185314=!0x0;}}return _0x185314;}),_0x222d14['model']['document']['registerPostFixer'](_0x40cbe2=>this['_processAttributeChanges'](_0x40cbe2)),_0x222d14['model']['document']['registerPostFixer'](_0x525511=>!_0x525511['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x525511)),_0x222d14['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x222d14['model']['document']['on']('change:data',(_0x4283c7,_0x526116)=>{if(!_0x526116['isLocal']||_0x526116['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5dc101=_0x222d14['model']['document']['differ']['getChanges']();if(0x0==_0x5dc101['length'])return;const _0x599a6b=[],_0xebba07=_0x5dc101['filter'](_0x3b0628=>'attribute'==_0x3b0628['type']),_0x323965=_0x5dc101['filter'](_0x5de1f1=>'insert'==_0x5de1f1['type']&&'$text'!=_0x5de1f1['name']);for(const _0x437ef2 of _0xebba07)this['_isRegisteredAttribute'](_0x437ef2['attributeKey'])&&_0x599a6b['push']({'key':_0x437ef2['attributeKey'],'newValue':_0x437ef2['attributeNewValue'],'oldValue':_0x437ef2['attributeOldValue'],'range':Ht(_0x437ef2['range'],_0x222d14['model'])});for(const _0x1880ac of _0x323965){if('rename'!=_0x1880ac['action']&&'refresh'!=_0x1880ac['action'])continue;const _0x18c527=qt(_0x1880ac['position']['nodeAfter'],_0x222d14['model']),_0x5b33e1=_0x1880ac['before'];'rename'==_0x1880ac['action']&&_0x599a6b['push']({'key':u,'newValue':_0x1880ac['name'],'oldValue':_0x5b33e1['name'],'range':_0x18c527});for(const [_0x6649c9,_0x11f07c]of _0x5b33e1['attributes']){if(!this['_isRegisteredAttribute'](_0x6649c9))continue;const _0x10830e=_0x1880ac['attributes']['get'](_0x6649c9);_0x11f07c!==_0x10830e&&_0x599a6b['push']({'key':_0x6649c9,'newValue':_0x10830e,'oldValue':_0x11f07c,'range':_0x18c527});}for(const [_0x345642,_0xe772b1]of _0x1880ac['attributes'])this['_isRegisteredAttribute'](_0x345642)&&(_0x5b33e1['attributes']['has'](_0x345642)||_0x599a6b['push']({'key':_0x345642,'newValue':_0xe772b1,'oldValue':null,'range':_0x18c527}));}0x0!=_0x599a6b['length']&&_0x222d14['model']['enqueueChange'](_0x526116,_0x10c389=>{const _0x5d60f7=_0x18a796();for(const {range:_0x1fda5b,key:_0x4bdb57,oldValue:_0x42b8a8,newValue:_0x2b14b7}of _0x599a6b)this['markAttributeChange'](_0x1fda5b,_0x4bdb57,_0x42b8a8,_0x2b14b7,{'groupId':_0x5d60f7});this['_reduceExistingSuggestions'](_0x10c389,_0x599a6b);});},{'priority':'lowest'}),_0x222d14['model']['markers']['on']('update:suggestion',(_0x38246d,_0x132266,_0x1976d0)=>{if(null==_0x1976d0){const {id:_0x16cc9c}=this['_splitMarkerName'](_0x132266['name']),_0x3e009d=this['_suggestions']['get'](_0x16cc9c);_0x3e009d&&_0x3e009d['addMarkerName'](_0x132266['name']);}}),_0x222d14['model']['document']['on']('change:data',()=>{const _0xe4e834=Array['from'](_0x222d14['model']['document']['differ']['getChangedMarkers']())['filter'](_0x50e561=>'suggestion'===this['_splitMarkerName'](_0x50e561['name'])['group']);if(0x0===_0xe4e834['length'])return;_0xe4e834['sort']((_0x720f88,_0x481f6b)=>{const _0x4607a2=_0x720f88['data']['oldRange'],_0x4d91d8=_0x481f6b['data']['oldRange'];return null===_0x4607a2&&null===_0x4d91d8?0x0:null===_0x4607a2&&null!==_0x4d91d8?-0x1:null!==_0x4607a2&&null===_0x4d91d8?0x1:_0x4607a2['start']['isBefore'](_0x4d91d8['start'])?-0x1:0x1;});const _0x45948e=new Set(),_0x3d1e7e=new Set();for(const {name:_0x32bc9b,data:_0x5c34b5}of _0xe4e834){const {id:_0x9f62b2}=this['_splitMarkerName'](_0x32bc9b);if(null===_0x5c34b5['oldRange']){const _0x2a2dab=this['_handleNewSuggestionMarker'](_0x32bc9b);_0x3d1e7e['add'](_0x2a2dab);}else{const _0x6fd53d=this['_suggestions']['get'](_0x9f62b2);null!==_0x5c34b5['newRange']||_0x6fd53d['isInContent']?(_0x45948e['add'](_0x6fd53d['head']),_0x3d1e7e['add'](_0x6fd53d)):this['_removeSuggestion'](_0x6fd53d);}}_0x3d1e7e['size']>0x0&&this['_refreshSuggestionsChain'](_0x3d1e7e);for(const _0x13b873 of _0x45948e)this['fire']('suggestionChanged',_0x13b873);}),_0x222d14['model']['on']('applyOperation',(_0x5a4753,_0x5a1119)=>{const _0x52d72b=_0x5a1119[0x0];if(!this['_suggestions']['size'])return;if(!_0x52d72b['isDocumentOperation'])return;if(_0x52d72b['batch']['isUndo']||!_0x52d72b['batch']['isLocal'])return;let _0x5c55b9,_0x10da10;switch(_0x52d72b['type']){case'insert':_0x5c55b9=_0x222d14['model']['createPositionAt'](_0x52d72b['position']),_0x10da10=_0x5c55b9['getShiftedBy'](_0x52d72b['howMany']);break;case'split':_0x5c55b9=_0x222d14['model']['createPositionAt'](_0x52d72b['splitPosition']),_0x10da10=_0x222d14['model']['createPositionAt'](_0x52d72b['moveTargetPosition']);break;case'move':_0x5c55b9=_0x222d14['model']['createPositionAt'](_0x52d72b['targetPosition']),_0x10da10=_0x5c55b9['getShiftedBy'](_0x52d72b['howMany']);break;default:return;}const _0x126b06=_0x222d14['model']['createRange'](_0x5c55b9,_0x10da10);_0x222d14['model']['change'](()=>{for(const {suggestion:_0x3500b5,meta:_0x124ac9}of this['_findSuggestions'](_0x126b06)){if(_0x3500b5['isMultiRange'])continue;if('formatInline'==_0x3500b5['type'])continue;const _0x1ff70d=this['_getAttributeKey'](_0x3500b5);if(_0x1ff70d&&this['_isBlockAttribute'](_0x1ff70d)&&'split'!=_0x52d72b['type'])continue;const _0x43def4=_0x3500b5['data']&&_0x3500b5['data']['multipleBlocks'];('formatBlock'!=_0x3500b5['type']||'split'==_0x52d72b['type']&&!_0x43def4)&&(_0x124ac9['containsRangeInObject']||'insertion'==_0x3500b5['type']&&_0x124ac9['isOwn']||_0x3500b5['getFirstRange']()['containsRange'](_0x126b06)&&this['_breakSuggestionMarker'](_0x3500b5,_0x5c55b9,_0x10da10));}});},{'priority':'lowest'}),_0x222d14['model']['on']('deleteContent',(_0x147252,_0x134854)=>{const _0x2683d2=_0x134854[0x0],_0x535660=_0x134854[0x1];if(_0x535660&&_0x535660['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2683d2['isCollapsed'])return;const _0x24f5f0=_0x222d14['model']['schema'],{start:_0x5efc6f,end:_0x384815}=_0x2683d2['getFirstRange'](),_0x428d9f=_0x5efc6f['nodeAfter']&&_0x24f5f0['isLimit'](_0x5efc6f['nodeAfter'])?null:_0x24f5f0['getNearestSelectionRange'](_0x5efc6f,'forward'),_0x7f2564=_0x384815['nodeBefore']&&_0x24f5f0['isLimit'](_0x384815['nodeBefore'])?null:_0x24f5f0['getNearestSelectionRange'](_0x384815,'backward'),_0x33ae32=_0x222d14['model']['createRange'](_0x428d9f?_0x428d9f['start']:_0x5efc6f,_0x7f2564?_0x7f2564['end']:_0x384815);_0x222d14['model']['change'](_0x28dbd2=>{this['markDeletion'](_0x33ae32);const _0x58126f=_0x222d14['model']['schema']['getNearestSelectionRange'](_0x33ae32['start']);_0x2683d2['is']('documentSelection')?_0x28dbd2['setSelection'](_0x58126f):_0x2683d2['setTo'](_0x58126f);}),_0x147252['stop']();},{'priority':_0x4055eb['normal']+0xa}),_0x222d14['model']['on']('insertContent',(_0x43ccd2,_0x4e58a5)=>{const _0x13ff88=_0x4e58a5[_0x4e58a5['length']-0x1];_0x13ff88&&_0x13ff88['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x222d14['model']['change'](()=>{let _0x50f198=_0x222d14['model']['insertContent'](_0x4e58a5[0x0],_0x4e58a5[0x1],_0x4e58a5[0x2],{'forceDefaultExecution':!0x0});if(!_0x50f198)return;_0x43ccd2['return']=_0x50f198['clone']();const _0x961029=_0x50f198['end']['nodeBefore'],_0x28d94f=_0x222d14['model']['schema'];_0x961029&&_0x28d94f['isBlock'](_0x961029)&&!_0x28d94f['isObject'](_0x961029)&&(_0x50f198=_0x222d14['model']['createRange'](_0x50f198['start'],_0x222d14['model']['createPositionAt'](_0x961029,'end'))),this['markInsertion'](_0x50f198);}),_0x43ccd2['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4d7059=new O(_0x222d14,this['_suggestions']);_0x222d14['commands']['add']('acceptSuggestion',_0x4d7059),this['enableCommand']('acceptSuggestion');const _0x1e88f1=new R(_0x222d14,this['_suggestions']);_0x222d14['commands']['add']('discardSuggestion',_0x1e88f1),this['enableCommand']('discardSuggestion'),_0x222d14['commands']['add']('acceptAllSuggestions',new x(_0x222d14,_0x4d7059,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x222d14['commands']['add']('discardAllSuggestions',new x(_0x222d14,_0x1e88f1,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x222d14['commands']['add']('acceptSelectedSuggestions',new E(_0x222d14,_0x4d7059,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x222d14['commands']['add']('discardSelectedSuggestions',new E(_0x222d14,_0x1e88f1,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x472a07=_0x222d14['plugins']['get']('CommentsRepository');this['listenTo'](_0x472a07,'addComment',(_0x331f02,{threadId:_0x31ec4e})=>{const _0x4e6912=this['_suggestions']['get'](_0x31ec4e);_0x4e6912&&_0x4e6912['commentThread']&&0x1===_0x4e6912['commentThread']['length']&&this['_updateSuggestionData'](_0x31ec4e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x472a07,'removeComment',(_0x41b89d,{threadId:_0x217b0a})=>{const _0x320b04=this['_suggestions']['get'](_0x217b0a);_0x320b04&&_0x320b04['commentThread']&&!_0x320b04['commentThread']['length']&&this['_updateSuggestionData'](_0x217b0a,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0xc53f7b){const _0x1b0f84=_0x3725b4([0x37,0x54,0x4a,0x34,0x64,0x52,0x57,0x58,0x30,0x4e,0x7a,0x78,0x76,0x63,0x50,0x73,0x5a,0x51,0x43,0x48,0x68,0x6b,0x44,0x36,0x39,0x74,0x75,0x32,0x42,0x79,0x6d,0x53,0x66,0x6f,0x4c,0x33,0x65,0x47,0x67,0x77,0x46,0x62,0x4d,0x38,0x71,0x59,0x61,0x69,0x45,0x70,0x55,0x56,0x6e,0x49,0x41,0x6c,0x35,0x31,0x6a,0x72,0x4b,0x4f]),_0x1157fc=0x778db674,_0xb0c382=0x778ad4ac^_0x1157fc,_0x183ec9=window[_0x3725b4([0x44,0x61,0x74,0x65])][_0x3725b4([0x6e,0x6f,0x77])](),_0x17b5a4=_0xc53f7b[_0x3725b4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x564dae=new window[(_0x3725b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42c977=>{_0x17b5a4[_0x3725b4([0x6f,0x6e,0x63,0x65])](_0x3725b4([0x72,0x65,0x61,0x64,0x79]),_0x42c977);}),_0x4bc88a={[_0x3725b4([0x6b,0x74,0x79])]:_0x3725b4([0x45,0x43]),[_0x3725b4([0x75,0x73,0x65])]:_0x3725b4([0x73,0x69,0x67]),[_0x3725b4([0x63,0x72,0x76])]:_0x3725b4([0x50,0x2d,0x32,0x35,0x36]),[_0x3725b4([0x78])]:_0x3725b4([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]),[_0x3725b4([0x79])]:_0x3725b4([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]),[_0x3725b4([0x61,0x6c,0x67])]:_0x3725b4([0x45,0x53,0x32,0x35,0x36])},_0x550338=_0x17b5a4[_0x3725b4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3725b4([0x67,0x65,0x74])](_0x3725b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x193c36(){let _0x2723dc,_0x143154=null,_0x305c82=null;try{if(_0x550338==_0x3725b4([0x47,0x50,0x4c]))return _0x3725b4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2723dc=_0x2819fa(),!_0x2723dc)return _0x3725b4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2723dc[_0x3725b4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x305c82=_0x5de724(_0x2723dc[_0x3725b4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2723dc[_0x3725b4([0x6a,0x74,0x69])])),await _0x17a8db()?_0xdfd8a3()?_0x292652()?_0x3725b4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5a2976()?(_0x2723dc[_0x3725b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3725b4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x143154=_0x591f73(_0x3725b4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2723dc[_0x3725b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3725b4([0x74,0x72,0x69,0x61,0x6c])&&(_0x143154=_0x591f73(_0x3725b4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5ab3dd()):_0x3725b4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3725b4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3725b4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x9b7124){return _0x3725b4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x292652(){const _0x23b042=[_0x3725b4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3725b4([0x74,0x72,0x69,0x61,0x6c])][_0x3725b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2723dc[_0x3725b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x183ec9/0x3e8:0xe10*_0xb0c382;return _0x2723dc[_0x3725b4([0x65,0x78,0x70])]<_0x23b042;}function _0xdfd8a3(){const _0x3ae6c5=_0x2723dc[_0x3725b4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3ae6c5)return!0x1;if(_0x3ae6c5[_0x3725b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3725b4([0x2a])))return!0x0;if(_0x3ae6c5[_0x3725b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3725b4([0x54,0x43])))return!0x0;if(_0x3ae6c5[_0x3725b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3725b4([0x52,0x54,0x43]))){if(_0x296457())return!0x0;if(_0x57c901()||_0x465e93())return!0x0;}return!0x1;}function _0x5a2976(){const _0x5d9d73=_0x2723dc[_0x3725b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5d9d73||0x0==_0x5d9d73[_0x3725b4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x230192}=new URL(window[_0x3725b4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5d9d73[_0x3725b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x230192))return!0x0;const _0x3c9d19=_0x230192[_0x3725b4([0x73,0x70,0x6c,0x69,0x74])](_0x3725b4([0x2e]));return _0x5d9d73[_0x3725b4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x33c5c7=>_0x33c5c7[_0x3725b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3725b4([0x2a])))[_0x3725b4([0x6d,0x61,0x70])](_0x778fda=>_0x778fda[_0x3725b4([0x73,0x70,0x6c,0x69,0x74])](_0x3725b4([0x2e])))[_0x3725b4([0x73,0x6f,0x6d,0x65])](_0x11f121=>_0x3c9d19[_0x3725b4([0x65,0x76,0x65,0x72,0x79])]((_0x3381f8,_0x57ab0e)=>_0x11f121[_0x57ab0e]===_0x3381f8||_0x11f121[_0x57ab0e]===_0x3725b4([0x2a])));}function _0x5ab3dd(){return _0x143154&&_0x305c82?new window[(_0x3725b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ad0ca,_0x29a9c2)=>{_0x143154[_0x3725b4([0x74,0x68,0x65,0x6e])](_0x1ad0ca,_0x29a9c2),_0x305c82[_0x3725b4([0x74,0x68,0x65,0x6e])](_0x519da0=>{_0x519da0!=_0x3725b4([0x56,0x61,0x6c,0x69,0x64])&&_0x1ad0ca(_0x519da0);},_0x29a9c2);}):_0x143154||_0x305c82||_0x3725b4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5de724(_0x163f87,_0xc91a4f){return new window[(_0x3725b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b8db7=>{if(_0x1c7310())return _0x3b8db7(_0x3725b4([0x56,0x61,0x6c,0x69,0x64]));_0x2ccc5d(),_0x17b5a4[_0x3725b4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3725b4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x20b9c9=!0x1;const _0x64e54e=_0x18a796();function _0x276240(_0x3c4f37){return!!_0x3c4f37&&(typeof _0x3c4f37===_0x3725b4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3c4f37===_0x3725b4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3c4f37[_0x3725b4([0x74,0x68,0x65,0x6e])]===_0x3725b4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3c4f37[_0x3725b4([0x63,0x61,0x74,0x63,0x68])]===_0x3725b4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x10fce6(_0x25bc3d){_0x4d5925(_0x25bc3d)[_0x3725b4([0x74,0x68,0x65,0x6e])](_0x1067f6=>{if(!_0x1067f6||_0x1067f6[_0x3725b4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3725b4([0x6f,0x6b]))return _0x3725b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x18ff54(_0xe8131(_0x64e54e+_0xc91a4f))!=_0x1067f6[_0x3725b4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3725b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3725b4([0x56,0x61,0x6c,0x69,0x64]);})[_0x3725b4([0x74,0x68,0x65,0x6e])](_0x22b5b1=>(_0xebd8aa(),_0x22b5b1),()=>{const _0x3e7d0d=_0x13bbf0();return null==_0x3e7d0d?(_0xebd8aa(),_0x3725b4([0x56,0x61,0x6c,0x69,0x64])):_0x3725b4(_0x183ec9-_0x3e7d0d>(0x53813274^_0x1157fc)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3725b4([0x74,0x68,0x65,0x6e])](_0x3b8db7)[_0x3725b4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3b8db7(_0x3725b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x30edab=0x77bb58f4^_0x1157fc;function _0xebd8aa(){const _0x3b4ade=_0x3725b4([0x6c,0x6c,0x63,0x74,0x2d])+_0x18ff54(_0xe8131(_0x163f87)),_0x37cb80=_0xa38cdd(_0x18ff54(window[_0x3725b4([0x4d,0x61,0x74,0x68])][_0x3725b4([0x63,0x65,0x69,0x6c])](_0x183ec9/_0x30edab)));window[_0x3725b4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3725b4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3b4ade,_0x37cb80);}function _0x13bbf0(){const _0x55164d=_0x3725b4([0x6c,0x6c,0x63,0x74,0x2d])+_0x18ff54(_0xe8131(_0x163f87)),_0x4f1e0b=window[_0x3725b4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3725b4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x55164d);return _0x4f1e0b?window[_0x3725b4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa38cdd(_0x4f1e0b),0x10)*_0x30edab:null;}function _0x4d5925(_0x2bfb10){return new window[(_0x3725b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x40f9a0,_0x125596)=>{_0x2bfb10[_0x3725b4([0x74,0x68,0x65,0x6e])](_0x40f9a0,_0x125596),window[_0x3725b4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x125596,0x778c62b4^_0x1157fc);});}}_0x17b5a4[_0x3725b4([0x6f,0x6e])](_0x3725b4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x31ce7b,_0x5a5b6b)=>{if(_0x5a5b6b[0x0]!=_0x163f87)return _0x3b8db7(_0x3725b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5a5b6b[0x1]={..._0x5a5b6b[0x1],[_0x3725b4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x64e54e};},{[_0x3725b4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3725b4([0x68,0x69,0x67,0x68])}),_0x17b5a4[_0x3725b4([0x6f,0x6e])](_0x3725b4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xa06ce9=>{_0x276240(_0xa06ce9[_0x3725b4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x20b9c9=!0x0,_0x10fce6(_0xa06ce9[_0x3725b4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3725b4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3725b4([0x6c,0x6f,0x77])}),_0x564dae[_0x3725b4([0x74,0x68,0x65,0x6e])](()=>{_0x20b9c9||_0x3b8db7(_0x3725b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1c7310(){return _0x17b5a4[_0x3725b4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3725b4([0x76,0x69,0x65,0x77])][_0x3725b4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3725b4([0x61,0x75,0x74,0x6f]);}function _0x2ccc5d(){_0x17b5a4[_0x3725b4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3725b4([0x76,0x69,0x65,0x77])][_0x3725b4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3725b4([0x61,0x75,0x74,0x6f]);}}function _0x591f73(_0x469459){const _0xb740f9=[new window[(_0x3725b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x394199=>setTimeout(_0x394199,0x778488b8^_0x1157fc)),_0x564dae[_0x3725b4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3725b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2fd175=>{let _0x264f18=0x0;_0x17b5a4[_0x3725b4([0x6d,0x6f,0x64,0x65,0x6c])][_0x3725b4([0x6f,0x6e])](_0x3725b4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2c7e81,_0x4c698c)=>{_0x4c698c[0x0][_0x3725b4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x264f18++,_0x264f18==(0x778db78c^_0x1157fc)&&(_0x2fd175(),_0x2c7e81[_0x3725b4([0x6f,0x66,0x66])]());});}))];return window[_0x3725b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3725b4([0x72,0x61,0x63,0x65])](_0xb740f9)[_0x3725b4([0x74,0x68,0x65,0x6e])](()=>_0x469459);}async function _0x4efcbb(){await _0x564dae,_0x17b5a4[_0x3725b4([0x6d,0x6f,0x64,0x65,0x6c])][_0x3725b4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3f0869,_0x17b5a4[_0x3725b4([0x6d,0x6f,0x64,0x65,0x6c])][_0x3725b4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3f0869,_0x17b5a4[_0x3725b4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3725b4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x296457(){return _0x692a7d(_0x3725b4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xde7025(_0x3725b4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3725b4([0x73,0x74,0x61,0x74,0x65])]==_0x3725b4([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x57c901(){return _0x692a7d(_0x3725b4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x465e93(){return _0x692a7d(_0x3725b4([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x34cfd3(_0x3cf7f9){const _0x58e123=_0x1af1e7();_0x17b5a4[_0x58e123]=_0x3725b4([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3cf7f9,_0x3cf7f9!=_0x3725b4([0x56,0x61,0x6c,0x69,0x64])&&_0x4efcbb();}function _0x1af1e7(){const _0x2ad3c7=window[_0x3725b4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3725b4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3725b4([0x6e,0x6f,0x77])]())[_0x3725b4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3725b4([0x2e]),'');let _0x3c0112=_0x3725b4([0x54]);for(let _0x38c8f4=0x0;_0x38c8f4<_0x2ad3c7[_0x3725b4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x38c8f4+=0x2){let _0x3b82e6=window[_0x3725b4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ad3c7[_0x3725b4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x38c8f4,_0x38c8f4+0x2));_0x3b82e6>=_0x1b0f84[_0x3725b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3b82e6-=_0x1b0f84[_0x3725b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3c0112+=_0x1b0f84[_0x3b82e6];}return _0x3c0112;}function _0x2819fa(){const _0x41426e=_0x550338[_0x3725b4([0x73,0x70,0x6c,0x69,0x74])](_0x3725b4([0x2e]));if(0x3!=_0x41426e[_0x3725b4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x37e44b(_0x41426e[0x1]);function _0x37e44b(_0x32335d){const _0x5b363b=_0x5abdce(_0x32335d);return _0x5b363b&&_0xeb1344()?_0x5b363b:null;function _0xeb1344(){const _0x4c15fc=_0x5b363b[_0x3725b4([0x6a,0x74,0x69])],_0x453ada=window[_0x3725b4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c15fc[_0x3725b4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c15fc[_0x3725b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1c2310={..._0x5b363b,[_0x3725b4([0x6a,0x74,0x69])]:_0x4c15fc[_0x3725b4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4c15fc[_0x3725b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1c2310[_0x3725b4([0x76,0x63])],_0xe8131(_0x1c2310)==_0x453ada;}}}async function _0x17a8db(){let _0x18ae55=!0x0;try{const _0x230d34=_0x550338[_0x3725b4([0x73,0x70,0x6c,0x69,0x74])](_0x3725b4([0x2e])),[_0x5abc66,_0x5e5f4e,_0x23e83e]=_0x230d34;return _0x47faf2(_0x5abc66),await _0x5aff27(_0x5abc66,_0x5e5f4e,_0x23e83e),_0x18ae55;}catch(_0x3257d3){return!0x1;}function _0x47faf2(_0x2341c0){const _0x146143=_0x5abdce(_0x2341c0);_0x146143&&_0x146143[_0x3725b4([0x61,0x6c,0x67])]==_0x3725b4([0x45,0x53,0x32,0x35,0x36])||(_0x18ae55=!0x1);}async function _0x5aff27(_0x1d9c32,_0x3031f8,_0x54fe4e){const _0x5aad6a=window[_0x3725b4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3725b4([0x66,0x72,0x6f,0x6d])](_0x10e0d4(_0x54fe4e),_0x8becc4=>_0x8becc4[_0x3725b4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2cbdc5=new window[(_0x3725b4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3725b4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1d9c32+_0x3725b4([0x2e])+_0x3031f8),_0x546d1b=window[_0x3725b4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3725b4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x546d1b)return;const _0x1af546=await _0x546d1b[_0x3725b4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3725b4([0x6a,0x77,0x6b]),_0x4bc88a,{[_0x3725b4([0x6e,0x61,0x6d,0x65])]:_0x3725b4([0x45,0x43,0x44,0x53,0x41]),[_0x3725b4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3725b4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3725b4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x546d1b[_0x3725b4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3725b4([0x6e,0x61,0x6d,0x65])]:_0x3725b4([0x45,0x43,0x44,0x53,0x41]),[_0x3725b4([0x68,0x61,0x73,0x68])]:{[_0x3725b4([0x6e,0x61,0x6d,0x65])]:_0x3725b4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1af546,_0x5aad6a,_0x2cbdc5)||(_0x18ae55=!0x1);}}function _0x5abdce(_0x4a3764){return _0x4a3764[_0x3725b4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3725b4([0x65,0x79]))?JSON[_0x3725b4([0x70,0x61,0x72,0x73,0x65])](_0x10e0d4(_0x4a3764)):null;}function _0x10e0d4(_0x515980){return window[_0x3725b4([0x61,0x74,0x6f,0x62])](_0x515980[_0x3725b4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3725b4([0x2b]))[_0x3725b4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3725b4([0x2f])));}function _0xe8131(_0x2ba28b){let _0x4a0e52=0x1505;function _0x3d56c0(_0x2caaa6){for(let _0x4f4cb3=0x0;_0x4f4cb3<_0x2caaa6[_0x3725b4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f4cb3++){const _0x1be61b=_0x2caaa6[_0x3725b4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4f4cb3);_0x4a0e52=(_0x4a0e52<<0x5)+_0x4a0e52+_0x1be61b,_0x4a0e52&=_0x4a0e52;}}function _0x3716e2(_0x48fdd9){Array[_0x3725b4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x48fdd9)?_0x48fdd9[_0x3725b4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3716e2):_0x48fdd9&&typeof _0x48fdd9==_0x3725b4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3725b4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x48fdd9)[_0x3725b4([0x73,0x6f,0x72,0x74])]()[_0x3725b4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2bc777,_0x382adc])=>{_0x3d56c0(_0x2bc777),_0x3716e2(_0x382adc);}):_0x3d56c0(window[_0x3725b4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x48fdd9));}return _0x3716e2(_0x2ba28b),_0x4a0e52>>>0x0;}function _0x18ff54(_0x11b04f){return _0x11b04f[_0x3725b4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3725b4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3725b4([0x30]));}function _0xa38cdd(_0x4bddcc){return _0x4bddcc[_0x3725b4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3725b4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3725b4([0x6a,0x6f,0x69,0x6e])]('');}function _0x692a7d(_0x14525d){return _0x17b5a4[_0x3725b4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3725b4([0x68,0x61,0x73])](_0x14525d);}function _0xde7025(_0xc36cfa){return _0x17b5a4[_0x3725b4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3725b4([0x67,0x65,0x74])](_0xc36cfa);}function _0x3f0869(){}function _0x3725b4(_0x3232ff){return _0x3232ff['map'](_0x1c9d9f=>String['fromCharCode'](_0x1c9d9f))['join']('');}_0x34cfd3(await _0x193c36());}(this);}set['adapter'](_0x4572f6){if(this['_adapter'])throw new _0xb1fe46('track-changes-adapter-already-set',this);this['_adapter']=_0x4572f6;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x27d9b8=!0x1,toJSON:_0x244223=!0x1}={}){const _0x485138=[];for(const _0x2dd25b of this['_suggestions']['values']())_0x27d9b8&&!_0x2dd25b['isInContent']||_0x485138['push'](_0x2dd25b);return _0x244223?_0x485138['map'](_0x2fa161=>_0x2fa161['toJSON']()):_0x485138;}['getSuggestion'](_0x53c16d){const _0x52d0eb=this['_suggestions']['get'](_0x53c16d);if(!_0x52d0eb)throw new _0xb1fe46('track-changes-suggestion-not-found',this);return _0x52d0eb;}['hasSuggestion'](_0x477c0b){return this['_suggestions']['has'](_0x477c0b);}['addSuggestionData'](_0x29f065){const {authorId:_0x4da077,id:_0x37175b,attributes:_0x39053f}=_0x29f065,[_0x77da33,_0x5d8625]=_0x29f065['type']['split'](':'),_0x1eb74d=this['_suggestions']['get'](_0x37175b)||this['_createSuggestion'](_0x77da33,_0x5d8625,_0x37175b,_0x4da077,_0x39053f);if(this['_addThreadToSuggestion'](_0x1eb74d),this['_checkSuggestionCorrectness'](_0x1eb74d,_0x77da33,_0x5d8625||null,_0x4da077),_0x1eb74d['createdAt']=_0x29f065['createdAt'],_0x1eb74d['_isDataLoaded']=!0x0,_0x39053f&&_0x39053f['@external']){const _0x229a6f=_0x39053f['@external'],_0x478934=this['_getExternalAuthor'](_0x229a6f['authorName']);_0x1eb74d['authoredAt']=_0x229a6f['createdAt'],_0x1eb74d['author']=_0x478934,_0x1eb74d['isExternal']=!0x0;}else _0x1eb74d['authoredAt']=_0x29f065['createdAt'];switch(_0x29f065['data']&&(_0x1eb74d['data']=_0x29f065['data']),_0x29f065['attributes']&&(_0x1eb74d['attributes']=_0x29f065['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1eb74d['_saved']=!0x0),this['_suggestionState']['get'](_0x1eb74d)){case'notReady':this['_suggestionState']['set'](_0x1eb74d,'dataReady');break;case'markerReady':_0x1eb74d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1eb74d])),this['_refreshSuggestionsChain'](new Set([_0x1eb74d])),this['_suggestionState']['set'](_0x1eb74d,'ready'),this['fire']('suggestionLoaded',_0x1eb74d)):this['_suggestionState']['set'](_0x1eb74d,'removed');}return _0x1eb74d;}['acceptSuggestion'](_0x1f032d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x313c18 of _0x1f032d['getAllAdjacentSuggestions']())_0x313c18['accept']();});});}['discardSuggestion'](_0x174d00){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2c5603 of _0x174d00['getAllAdjacentSuggestions']())_0x2c5603['discard']();});});}['enableCommand'](_0x21e914,_0x5b9931){const _0x492dad=this['editor']['commands']['get'](_0x21e914);if(!_0x492dad)throw new _0xb1fe46('track-changes-command-not-found',this,{'commandName':_0x21e914});if(this['_enabledCommands']['has'](_0x492dad))throw new _0xb1fe46('track-changes-enable-command-twice',this,{'commandName':_0x21e914});this['_enabledCommands']['add'](_0x492dad),_0x5b9931&&_0x492dad['on']('execute',(_0xd6e6da,_0x4d86d0)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4d86d0['length']>0x0&&_0x4d86d0[_0x4d86d0['length']-0x1]&&_0x4d86d0[_0x4d86d0['length']-0x1]['forceDefaultExecution']?_0x4d86d0['pop']():(_0xd6e6da['return']=_0x5b9931((..._0x1409bd)=>_0x492dad['execute'](..._0x1409bd,{'forceDefaultExecution':!0x0}),..._0x4d86d0),_0xd6e6da['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2a8616){let _0x5223bb,_0x2eabb9;const _0x20a4bd=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5223bb=_0x2a8616();}catch(_0x2c7969){_0x2eabb9=_0x2c7969;}return _0x20a4bd||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2eabb9&&_0xb1fe46['rethrowUnexpectedError'](_0x2eabb9,this),_0x5223bb;}['markInsertion'](_0xca70fc,_0x523508=null,_0x7160cc={}){if(_0xca70fc['isCollapsed'])return null;const _0x12603f=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1ec3b5,meta:_0x41f3e5}of this['_findSuggestions'](_0xca70fc,'insertion'))if(_0x41f3e5['isOwn']){if(!_0x41f3e5['isNextTo']){if(_0x41f3e5['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x1ec3b5,_0x7160cc))continue;return _0x1ec3b5;}if(Qt(_0x1ec3b5,_0x7160cc))return _0x1ec3b5;this['_breakSuggestionMarker'](_0x1ec3b5,_0xca70fc['start'],_0xca70fc['end']);break;}if(_0x523508==_0x1ec3b5['subType']&&Qt(_0x1ec3b5,_0x7160cc)){const _0x108876=_0x1ec3b5['getFirstRange']();return _0x108876['start']['isEqual'](_0xca70fc['end'])?this['_setSuggestionRange'](_0x1ec3b5,this['_model']['createRange'](_0xca70fc['start'],_0x108876['end'])):this['_setSuggestionRange'](_0x1ec3b5,this['_model']['createRange'](_0x108876['start'],_0xca70fc['end'])),_0x1ec3b5;}}const _0x108140=_0x18a796(),_0x26d34e=_0x12603f['id'],_0x2e428d=_0x523508?'insertion:'+_0x523508:'insertion',_0x37976c=this['_setSuggestionData']({'id':_0x108140,'type':_0x2e428d,'createdAt':new Date(),'authorId':_0x26d34e,'attributes':_0x7160cc});return this['_addSuggestionMarker'](_0x2e428d,_0x108140,_0x26d34e,_0xca70fc),_0x37976c;}['markMultiRangeInsertion'](_0x4779a4,_0x1b841d='multi',_0x254f02={}){const _0x51416d=this['editor']['plugins']['get']('Users')['me'],_0x6bda67=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1b841d,'join');for(const _0x3f7309 of this['getSuggestions']())if(_0x3f7309['author']['id']==_0x51416d['id']&&'insertion'==_0x3f7309['type']&&_0x3f7309['subType']==_0x1b841d&&Qt(_0x3f7309,_0x254f02)&&(_0x6bda67(_0x3f7309['getRanges'](),_0x4779a4)||_0x6bda67(_0x4779a4,_0x3f7309['getRanges']()))){for(const _0x4e2edc of _0x4779a4)_0x3f7309['addRange'](_0x4e2edc);return _0x3f7309;}for(const {suggestion:_0x2bdc88,meta:_0x468779}of this['_findSuggestions'](_0x4779a4,'insertion')){if(!_0x468779['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x468779['containsRangeInObject'])continue;if(!Qt(_0x2bdc88,_0x254f02))continue;let _0x4fe4be=!0x0;for(const _0x427e7e of _0x2bdc88['getRanges']())for(const _0x15a1c5 of _0x4779a4)if(!_0x427e7e['containsRange'](_0x15a1c5)){_0x4fe4be=!0x1;break;}if(_0x4fe4be)return _0x2bdc88;}const _0x21405d=_0x18a796(),_0x4238e9=_0x51416d['id'],_0x3eb61b='insertion:'+_0x1b841d,_0x1c5376=this['_setSuggestionData']({'id':_0x21405d,'type':_0x3eb61b,'createdAt':new Date(),'authorId':_0x4238e9,'attributes':_0x254f02});for(const _0x41760a of _0x4779a4)this['_addSuggestionMarker'](_0x3eb61b,_0x21405d,_0x4238e9,_0x41760a,o['getMultiRangeId']());return _0x1c5376;}['markInlineFormat'](_0xb011,_0x78d959,_0x4e1abc=null,_0x44664d={}){if(_0x4e1abc=_0x4e1abc||Jt(_0x78d959),_0xb011['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x4f0cb7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4e1abc,'accept');return this['forceDefaultExecution'](()=>_0x4f0cb7([_0xb011],_0x78d959,_0x44664d)),null;}const _0x1daa0b=this['editor']['plugins']['get']('Users')['me'],_0x5d065b=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x28c31b,meta:_0x4c1944}of this['_findSuggestions'](_0xb011,'insertion'))_0x4c1944['isOwn']&&!_0x4c1944['isInsideObject']&&_0x5d065b['push'](..._0x28c31b['getRanges']());}const _0x186168=function(_0x180d27,_0x3f0be5){const _0x4e7948=[];for(const _0x3e0e0a of _0x3f0be5){const _0x40131f=_0x180d27['getIntersection'](_0x3e0e0a);_0x40131f&&_0x4e7948['push'](_0x40131f);}return _0x4e7948;}(_0xb011,_0x5d065b),_0xc281e3=function(_0x481b53,_0x2d5321){const _0x3ec683=[_0x481b53];for(const _0x4db038 of _0x2d5321){let _0x434799=0x0;for(;_0x434799<_0x3ec683['length'];){const _0x2222eb=_0x3ec683[_0x434799]['getDifference'](_0x4db038);_0x3ec683['splice'](_0x434799,0x1,..._0x2222eb),_0x434799+=_0x2222eb['length'];}}return _0x3ec683;}(_0xb011,_0x5d065b);_0x186168['length']&&this['_model']['change'](()=>{for(const _0x33afa1 of _0x186168){const _0x493854=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4e1abc,'accept');this['forceDefaultExecution'](()=>_0x493854([_0x33afa1],_0x78d959,_0x44664d));}});for(const _0x22d8f6 of _0xc281e3){let _0x1e4567=null,_0x1bcb5f=_0x22d8f6['start'],_0x383f19=_0x22d8f6['end'];for(const {suggestion:_0x75e75,meta:_0x13402f}of this['_findSuggestions'](_0x22d8f6,'formatInline')){if(!_0x13402f['isOwn'])continue;if(_0x75e75['subType']!=_0x4e1abc)continue;if(!Qt(_0x75e75,_0x44664d))continue;const _0x936702=_0x75e75['getFirstRange']();if(_0x936702['containsRange'](_0x22d8f6,!0x0))return null;_0x1bcb5f=_0x1bcb5f['isBefore'](_0x936702['start'])?_0x1bcb5f:_0x936702['start'],_0x383f19=_0x383f19['isAfter'](_0x936702['end'])?_0x383f19:_0x936702['end'],_0x1e4567?_0x936702['start']['isBefore'](_0x1e4567['getFirstRange']()['start'])?(_0x1e4567['removeMarkers'](),_0x1e4567=_0x75e75):_0x75e75['removeMarkers']():_0x1e4567=_0x75e75;}const _0x7edc09=this['_model']['createRange'](_0x1bcb5f,_0x383f19);if(_0x1e4567)this['_setSuggestionRange'](_0x1e4567,_0x7edc09);else{const _0x27a250=_0x18a796(),_0x3cf204=_0x1daa0b['id'];this['_setSuggestionData']({'id':_0x27a250,'type':'formatInline:'+_0x4e1abc,'data':_0x78d959,'createdAt':new Date(),'authorId':_0x3cf204,'attributes':_0x44664d}),this['_addSuggestionMarker']('formatInline:'+_0x4e1abc,_0x27a250,_0x3cf204,_0x7edc09);}}return null;}['markBlockFormat'](_0x2c71f6,_0x3403d7,_0x365908=[],_0x1485ba=null,_0x598711={}){_0x3403d7['formatGroupId']||(_0x3403d7['formatGroupId']=_0x3403d7['commandName']),_0x3403d7['multipleBlocks']=_0x2c71f6['is']('range'),_0x1485ba=_0x1485ba||Jt(_0x3403d7);const _0x3b7706=_0x365908['map'](_0x6175d4=>qt(_0x6175d4,this['_model'])),_0x1a31db=_0x2c71f6['is']('range')?_0x2c71f6:qt(_0x2c71f6,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5b029a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1485ba,'accept');return this['forceDefaultExecution'](()=>_0x5b029a([_0x1a31db],_0x3403d7,_0x598711)),null;}_0x3b7706['push'](_0x1a31db);let _0x240cb3=!0x0;for(const _0x3322b3 of _0x3b7706)if(!this['_rangeIsInLocalUserInsertion'](_0x3322b3)){_0x240cb3=!0x1;break;}if(_0x240cb3&&'always'!==this['_trackFormatChanges']){const _0x3a3e47=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1485ba,'accept');return this['forceDefaultExecution'](()=>_0x3a3e47([_0x1a31db],_0x3403d7,_0x598711)),null;}let _0x3180b2=null,_0x14fd82=_0x1a31db['start'],_0x572e38=_0x1a31db['end'];for(const {suggestion:_0x4cc962,meta:_0x4b1c38}of this['_findSuggestions'](_0x1a31db,'formatBlock')){if(!_0x4b1c38['isOwn'])continue;if(_0x4b1c38['isNextTo']||_0x4b1c38['containsRangeInObject']||_0x4b1c38['isInsideObject'])continue;if(_0x4cc962['data']['formatGroupId']!=_0x3403d7['formatGroupId'])continue;if(!Qt(_0x4cc962,_0x598711))continue;const _0x2feb21=_0x4cc962['getFirstRange']();if(_0x4cc962['subType']==_0x1485ba){if(_0x2feb21['containsRange'](_0x1a31db,!0x0))return null;_0x14fd82=_0x14fd82['isBefore'](_0x2feb21['start'])?_0x14fd82:_0x2feb21['start'],_0x572e38=_0x572e38['isAfter'](_0x2feb21['end'])?_0x572e38:_0x2feb21['end'],_0x3180b2?_0x2feb21['start']['isBefore'](_0x3180b2['getFirstRange']()['start'])?(_0x3180b2['removeMarkers'](),_0x3180b2=_0x4cc962):_0x4cc962['removeMarkers']():_0x3180b2=_0x4cc962;}else{const _0x30e613=_0x1a31db['getIntersection'](_0x2feb21);this['_cutOutSuggestionMarker'](_0x4cc962,_0x30e613);}}const _0x4b02b5=this['editor']['plugins']['get']('Users')['me'],_0x2b9fda=_0x18a796(),_0x5c3700=_0x4b02b5['id'];if(_0x3180b2)return this['_setSuggestionRange'](_0x3180b2,this['_model']['createRange'](_0x14fd82,_0x572e38)),_0x3180b2;{const _0x25461d=this['_setSuggestionData']({'id':_0x2b9fda,'type':'formatBlock:'+_0x1485ba,'data':_0x3403d7,'createdAt':new Date(),'authorId':_0x5c3700,'attributes':_0x598711});return this['_addSuggestionMarker']('formatBlock:'+_0x1485ba,_0x2b9fda,_0x5c3700,this['_model']['createRange'](_0x14fd82,_0x572e38)),_0x25461d;}}['markMultiRangeBlockFormat'](_0x4ab98d,_0x524473,_0x130049=[],_0xe24aad=null,_0x3edfda={}){_0x524473['formatGroupId']||(_0x524473['formatGroupId']=_0x524473['commandName']);const _0x178f51=_0x4ab98d[0x0];_0x524473['multipleBlocks']=_0x178f51['is']('range'),_0xe24aad=_0xe24aad||Jt(_0x524473);const _0x23f937=_0x130049['map'](_0x544345=>qt(_0x544345,this['_model'])),_0xb68e6e=_0x178f51['is']('range')?_0x4ab98d:_0x4ab98d['map'](_0x1a1279=>qt(_0x1a1279,this['_model']));if('never'===this['_trackFormatChanges']){const _0x56c6ed=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xe24aad,'accept');return this['forceDefaultExecution'](()=>_0x56c6ed(_0xb68e6e,_0x524473,_0x3edfda)),null;}_0x23f937['push'](..._0xb68e6e);let _0x180ff3=!0x0;for(const _0x50e240 of _0x23f937)if(!this['_rangeIsInLocalUserInsertion'](_0x50e240)){_0x180ff3=!0x1;break;}if(_0x180ff3&&'always'!==this['_trackFormatChanges']){const _0x458fad=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xe24aad,'accept');return this['forceDefaultExecution'](()=>_0x458fad(_0xb68e6e,_0x524473,_0x3edfda)),null;}const _0x1d5745=this['editor']['plugins']['get']('Users')['me'];for(const _0x47fa7f of this['getSuggestions']()){if(_0x47fa7f['author']['id']!=_0x1d5745['id'])continue;if('formatBlock'!=_0x47fa7f['type']||_0x47fa7f['data']['formatGroupId']!=_0x524473['formatGroupId'])continue;if(!Qt(_0x47fa7f,_0x3edfda))continue;const _0x3ee23b=_0x47fa7f['subType']==_0xe24aad;for(let _0x1ed94c=0x0;_0x1ed94c<_0xb68e6e['length'];_0x1ed94c++){const _0x4b8e8f=_0xb68e6e[_0x1ed94c];for(const _0x232d9b of _0x47fa7f['getMarkers']()){const _0x337e51=_0x232d9b['getRange']();if(_0x4b8e8f['isEqual'](_0x337e51)){_0x3ee23b?(_0xb68e6e['splice'](_0x1ed94c,0x1),_0x1ed94c--):_0x47fa7f['removeMarker'](_0x232d9b['name']);break;}}}}if(0x0==_0xb68e6e['length'])return null;const _0xfef07a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xe24aad,'join');for(const _0x3867fa of this['getSuggestions']())if(_0x3867fa['author']['id']==_0x1d5745['id']&&'formatBlock'==_0x3867fa['type']&&_0x3867fa['data']['formatGroupId']==_0x524473['formatGroupId']&&_0x3867fa['subType']==_0xe24aad&&Qt(_0x3867fa,_0x3edfda)&&(_0xfef07a(_0x3867fa['getRanges'](),_0xb68e6e)||_0xfef07a(_0xb68e6e,_0x3867fa['getRanges']()))){for(const _0x5aea86 of _0xb68e6e)_0x3867fa['addRange'](_0x5aea86);return _0x3867fa;}const _0x102b92=_0x18a796(),_0x3f9074=_0x1d5745['id'],_0x2bcbf7='formatBlock:'+_0xe24aad,_0x33d5e6=this['_setSuggestionData']({'id':_0x102b92,'type':_0x2bcbf7,'data':_0x524473,'createdAt':new Date(),'authorId':_0x3f9074,'attributes':_0x3edfda});for(const _0x55802a of _0xb68e6e)this['_addSuggestionMarker'](_0x2bcbf7,_0x102b92,_0x3f9074,_0x55802a,o['getMultiRangeId']());return _0x33d5e6;}['markDeletion'](_0x219698,_0x15d8be=null,_0x1b991d={}){if(_0x219698['isCollapsed'])return null;const _0x4bc804=this['editor']['plugins']['get']('Users')['me'],_0x21bb5b=new _0x1a0cce(_0x219698['start'],_0x219698['end']);for(const {suggestion:_0x42bdf4,meta:_0x3e92e1}of this['_findSuggestions'](_0x21bb5b,'insertion'))if(_0x3e92e1['isOwn']&&!_0x3e92e1['isNextTo']){if(_0x42bdf4['isMultiRange']){const _0x3abad8=_0x42bdf4['getRanges']()['filter'](_0x409e2b=>'$graveyard'!=_0x409e2b['root']['rootName']);_0x3abad8['every'](_0x1fd1ad=>_0x21bb5b['containsRange'](_0x1fd1ad,!0x0))&&_0x42bdf4['discard']();if(_0x3abad8['some'](_0x57ec60=>_0x57ec60['containsRange'](_0x21bb5b,!0x0))){const _0x4b472e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x15d8be,'accept');return this['forceDefaultExecution'](()=>_0x4b472e([_0x21bb5b],null,_0x1b991d)),null;}}else{const _0x17d8a7=_0x21bb5b['getIntersection'](_0x42bdf4['getFirstRange']());null!==_0x17d8a7&&_0x42bdf4['_onDiscard']([_0x17d8a7],null,_0x1b991d);}}if(_0x21bb5b['detach'](),_0x21bb5b['isCollapsed']||'$graveyard'==_0x21bb5b['root']['rootName'])return null;let _0x353f11=null,_0x523b3f=_0x21bb5b['start'],_0x7389fc=_0x21bb5b['end'];const _0x56a601=this['_findSuggestions'](_0x21bb5b,'deletion');for(const {suggestion:_0x49334b,meta:_0x214635}of _0x56a601){const _0x54e276=this['_model']['createRange'](_0x523b3f,_0x7389fc);if(_0x214635['isOwn']&&(this['_mergeNestedSuggestions']||!_0x214635['containsRangeInObject']&&!_0x214635['isInsideObject'])){if(_0x49334b['isMultiRange']){if(!Qt(_0x49334b,_0x1b991d))continue;let _0x448500=!0x0;for(const _0x198615 of _0x49334b['getRanges']()){if(_0x198615['containsRange'](_0x54e276,!0x0))return _0x49334b;_0x54e276['containsRange'](_0x198615)||(_0x448500=!0x1);}_0x448500&&_0x49334b['discard']();}else{const _0x4b730d=_0x49334b['getFirstRange']();if(_0x4b730d['containsRange'](_0x54e276,!0x0))return _0x49334b;if(!Qt(_0x49334b,_0x1b991d)){_0x54e276['containsRange'](_0x4b730d)?_0x49334b['removeMarkers']():_0x4b730d['containsPosition'](_0x523b3f)?_0x523b3f=_0x4b730d['end']:_0x4b730d['containsPosition'](_0x7389fc)&&(_0x7389fc=_0x4b730d['start']);continue;}_0x523b3f=_0x523b3f['isBefore'](_0x4b730d['start'])?_0x523b3f:_0x4b730d['start'],_0x7389fc=_0x7389fc['isAfter'](_0x4b730d['end'])?_0x7389fc:_0x4b730d['end'],_0x1b991d=Object['assign']({},_0x49334b['attributes']),_0x353f11?_0x4b730d['start']['isBefore'](_0x353f11['getFirstRange']()['start'])?(_0x353f11['removeMarkers'](),_0x353f11=_0x49334b):_0x49334b['removeMarkers']():_0x353f11=_0x49334b;}}}if(_0x353f11)return this['_setSuggestionRange'](_0x353f11,this['_model']['createRange'](_0x523b3f,_0x7389fc)),_0x353f11;{const _0x37a477=_0x18a796(),_0x117c97=this['_model']['createRange'](_0x523b3f,_0x7389fc),_0x5434c4=_0x4bc804['id'],_0x59f658=_0x15d8be?'deletion:'+_0x15d8be:'deletion',_0x18af7d=this['_setSuggestionData']({'id':_0x37a477,'type':_0x59f658,'createdAt':new Date(),'authorId':_0x5434c4,'attributes':_0x1b991d});return this['_addSuggestionMarker'](_0x59f658,_0x37a477,_0x5434c4,_0x117c97),_0x18af7d;}}['markMultiRangeDeletion'](_0x50e34c,_0x47e177='multi',_0x2859b6={}){const _0x11365f=this['editor']['plugins']['get']('Users')['me'],_0x212448=_0x50e34c['map'](_0x48eabb=>new _0x1a0cce(_0x48eabb['start'],_0x48eabb['end'])),_0x54b559=new Set();for(const {suggestion:_0x2c4d95,meta:_0x52ade4}of this['_findSuggestions'](_0x212448,'insertion'))_0x52ade4['isOwn']&&!_0x52ade4['isNextTo']&&_0x54b559['add'](_0x2c4d95);for(const _0x1c031f of _0x54b559)if(_0x1c031f['isMultiRange']){const _0x5351ef=_0x1c031f['getRanges']();(!_0x1c031f['attributes']||!_0x1c031f['attributes']['skipNestingCheck'])&&(_0x5351ef['every'](_0xcf39f=>_0x212448['some'](_0x323e28=>_0x323e28['containsRange'](_0xcf39f,!0x0)))&&_0x1c031f['discard']());if(_0x212448['every'](_0x32e1e1=>_0x5351ef['some'](_0x5b8b24=>_0x5b8b24['containsRange'](_0x32e1e1,!0x0)))){const _0x108a3f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x47e177,'accept');return this['forceDefaultExecution'](()=>_0x108a3f(_0x50e34c,null,_0x2859b6)),null;}}else{const _0x85b2e6=_0x1c031f['getFirstRange']();_0x212448['some'](_0x35c658=>_0x35c658['containsRange'](_0x85b2e6,!0x0))&&_0x1c031f['discard']();if(_0x212448['every'](_0x906d5a=>_0x85b2e6['containsRange'](_0x906d5a,!0x0))){const _0x5dde15=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x47e177,'accept');return this['forceDefaultExecution'](()=>_0x5dde15(_0x212448,null,_0x2859b6)),null;}}const _0x5a5e59=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x47e177,'join');let _0x315d14=null;for(const _0x5174e0 of this['getSuggestions']())if(_0x5174e0['author']['id']==_0x11365f['id']&&_0x5174e0['isInContent']&&'deletion'==_0x5174e0['type']&&_0x5174e0['subType']==_0x47e177&&Qt(_0x5174e0,_0x2859b6)&&(_0x5a5e59(_0x5174e0['getRanges'](),_0x212448)||_0x5a5e59(_0x212448,_0x5174e0['getRanges']()))){if(_0x315d14){if(_0x5174e0['commentThread']&&_0x5174e0['commentThread']['length'])continue;for(const _0x43160d of _0x5174e0['getRanges']())_0x315d14['isIntersectingWithRange'](_0x43160d)||_0x315d14['addRange'](_0x43160d);_0x5174e0['removeMarkers']();}else{_0x315d14=_0x5174e0;for(const _0x495aae of _0x212448)_0x5174e0['isIntersectingWithRange'](_0x495aae)||_0x5174e0['addRange'](_0x495aae);}}if(_0x315d14)return _0x315d14;_0x54b559['clear']();for(const {suggestion:_0x1090d6,meta:_0x1cc7ba}of this['_findSuggestions'](_0x212448,'deletion'))_0x1cc7ba['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1cc7ba['containsRangeInObject']&&!_0x1cc7ba['isInsideObject'])&&Qt(_0x1090d6,_0x2859b6)&&_0x54b559['add'](_0x1090d6);for(const _0x4850cd of _0x54b559){const _0x1986fa=_0x4850cd['getRanges']();if(!_0x2859b6||!_0x2859b6['skipNestingCheck']){if(_0x212448['every'](_0x187fd7=>_0x1986fa['some'](_0x4970ae=>_0x4970ae['containsRange'](_0x187fd7,!0x0))))return _0x4850cd;}(!_0x4850cd['attributes']||!_0x4850cd['attributes']['skipNestingCheck'])&&(_0x1986fa['every'](_0x2f99bc=>_0x212448['some'](_0x2192b6=>_0x2192b6['containsRange'](_0x2f99bc,!0x0)))&&_0x4850cd['discard']());}const _0x287cf3=_0x18a796(),_0xfb8390=_0x11365f['id'],_0x5197c8='deletion:'+_0x47e177,_0x3c20d9=this['_setSuggestionData']({'id':_0x287cf3,'type':_0x5197c8,'createdAt':new Date(),'authorId':_0xfb8390,'attributes':_0x2859b6});for(const _0x39bcba of _0x212448)_0x39bcba['detach'](),_0x39bcba['isCollapsed']||'$graveyard'==_0x39bcba['root']['rootName']||this['_addSuggestionMarker'](_0x5197c8,_0x287cf3,_0xfb8390,_0x39bcba,o['getMultiRangeId']());return _0x3c20d9;}['markAttributeChange'](_0x2f26f8,_0x14de7c,_0x3ec756,_0x3e42f8,_0x128190){if(_0x2f26f8['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x563c8f=this['editor']['plugins']['get']('Users')['me']['id'],_0x5d258e=Array['from'](this['_suggestions']['values']())['filter'](_0x283456=>'attribute'==_0x283456['type']&&_0x283456['data']['key']==_0x14de7c&&_0x283456['isIntersectingWithRange'](_0x2f26f8));if('default'===this['_trackFormatChanges']){const _0x4ad3eb=this['_findSuggestions'](_0x2f26f8,'insertion')['filter'](({meta:_0x56c60b})=>_0x56c60b['isOwn']&&!_0x56c60b['isInsideObject']&&!_0x56c60b['isNextTo'])['map'](({suggestion:_0xea6fc2})=>_0xea6fc2);_0x5d258e['unshift'](..._0x4ad3eb);}const _0x5b96d9=new Map([[_0x2f26f8,_0x3ec756]]);for(const _0x469155 of _0x5d258e){const _0xc87916='attribute'==_0x469155['type']?_0x469155['data']['oldValue']:void 0x0,_0x57180a=_0x469155['getFirstRange'](),_0x4aaa94=Array['from'](_0x5b96d9['keys']())['find'](_0x2fa43e=>_0x2fa43e['isIntersecting'](_0x57180a));if(!_0x4aaa94)continue;const _0x52f838=_0x4aaa94['getDifference'](_0x57180a);this['_isBlockAttribute'](_0x14de7c)&&'insertion'==_0x469155['type']&&0x0!=_0x52f838['length']||(_0x5b96d9['delete'](_0x4aaa94),_0x52f838['forEach'](_0x585846=>{_0x5b96d9['set'](_0x585846,_0x3ec756);}),'insertion'!=_0x469155['type']&&_0xc87916!=_0x3e42f8&&_0x5b96d9['set'](_0x4aaa94['getIntersection'](_0x57180a),_0xc87916));}const _0x22a080=[];for(const [_0x47713a,_0x425662]of _0x5b96d9){const _0x157b85=_0x18a796(),_0x1112ab={'key':_0x14de7c,'oldValue':_0x425662,'newValue':_0x3e42f8};_0x14de7c['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':_0x14de7c});const _0x5611c5=('attribute:'+(_0x14de7c+'|'+Jt({'newValue':_0x3e42f8})))['substring'](0x0,0x3c),_0x555965=this['_setSuggestionData']({'id':_0x157b85,'type':_0x5611c5,'data':_0x1112ab,'createdAt':new Date(),'authorId':_0x563c8f,'attributes':_0x128190});_0x22a080['push'](_0x555965),this['_addSuggestionMarker'](_0x5611c5,_0x157b85,_0x563c8f,_0x47713a);}return _0x22a080;}['enableDefaultAttributesIntegration'](_0x4784bb){this['enableCommand'](_0x4784bb,(_0x5072c3,..._0x28b060)=>{this['_recordAttributeChanges'](()=>{_0x5072c3(..._0x28b060);});});}['registerBlockAttribute'](_0x5b07e5){this['_blockAttributeKeys']['add'](_0x5b07e5);}['registerInlineAttribute'](_0xfca1af){this['_inlineAttributeKeys']['add'](_0xfca1af);}['_getAttributeKey'](_0x8c92e0){return'attribute'==_0x8c92e0['type']?_0x8c92e0['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2e89fe,_0x2c4fb9){const _0x3d1a71=_0x2e89fe['getFirstMarker']();this['_model']['change'](_0x495b32=>{_0x495b32['updateMarker'](_0x3d1a71,{'range':_0x2c4fb9});});}['_addThreadToSuggestion'](_0x54b55c){const _0x47e5de=_0x54b55c['id'],_0x30092d=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x47e5de)||this['_commentsRepository']['addCommentThread']({'channelId':_0x30092d,'threadId':_0x47e5de,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x31c2b5=this['_commentsRepository']['getCommentThread'](_0x47e5de);_0x31c2b5['unbind']('isRemovable'),_0x31c2b5['isRemovable']=!0x1,_0x54b55c['commentThread']=_0x31c2b5;}['_checkSuggestionCorrectness'](_0x48caa8,_0x3bfb54,_0x183f0d,_0x5c1f30){if(_0x48caa8['type']!=_0x3bfb54||_0x48caa8['subType']!=_0x183f0d||_0x48caa8['creator']['id']!=_0x5c1f30)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xb1fe46('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2eb16e,_0x3e5530){const _0x2ec1e2=_0x2eb16e['getFirstRange']();if(_0x3e5530['isEqual'](_0x2ec1e2))_0x2eb16e['removeMarkers']();else{if(_0x2ec1e2['containsRange'](_0x3e5530)){const _0x318b42=this['_model']['createPositionAt'](_0x3e5530['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2eb16e,this['_model']['createRange'](_0x2ec1e2['start'],_0x318b42));const _0x64b17b=_0x18a796(),_0x4be1b8=_0x2eb16e['creator']['id'],_0x2b0e7c=_0x2eb16e['type']+':'+_0x2eb16e['subType'];this['_setSuggestionData']({'id':_0x64b17b,'type':_0x2b0e7c,'createdAt':new Date(),'authorId':_0x4be1b8,'data':_0x2eb16e['data'],'attributes':_0x2eb16e['attributes']});const _0x2d13d3=this['_model']['createPositionAt'](_0x3e5530['end']['parent'],'after'),_0x26f978=this['_model']['createRange'](_0x2d13d3,_0x2ec1e2['end']);this['_addSuggestionMarker'](_0x2b0e7c,_0x64b17b,_0x4be1b8,_0x26f978);}else{if(_0x2ec1e2['containsPosition'](_0x3e5530['start'])){const _0x47b199=this['_model']['createPositionAt'](_0x3e5530['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2eb16e,this['_model']['createRange'](_0x2ec1e2['start'],_0x47b199));}else{const _0x27ee81=this['_model']['createPositionAt'](_0x3e5530['end']['parent'],'after');this['_setSuggestionRange'](_0x2eb16e,this['_model']['createRange'](_0x27ee81,_0x2ec1e2['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1aff78){for(const {suggestion:_0x12a00d,meta:_0x5a2d46}of this['_findSuggestions'](_0x1aff78,'insertion')){if(!_0x5a2d46['isOwn'])continue;const _0x229661=_0x12a00d['getRanges']();for(const _0x1dbf84 of _0x229661)if(!_0x1aff78['getDifference'](_0x1dbf84)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2d06d5){const _0x21d78c=this['editor']['plugins']['get']('Users')['getUser'](_0x2d06d5);if(!_0x21d78c)throw new _0xb1fe46('track-changes-user-not-found',this);return _0x21d78c;}['_getExternalAuthor'](_0x227cf4){const _0x4ab94d=this['editor']['plugins']['get']('Users'),_0x5afe94=_0x2a1780('external:'+_0x227cf4),_0x3885c1=_0x4ab94d['getUser'](_0x5afe94);return _0x3885c1||_0x4ab94d['addUser']({'id':_0x5afe94,'name':_0x227cf4});}['_createSuggestion'](_0x10a424,_0x109c2d,_0x42c5c8,_0x188b4f,_0x332eda){const _0x5a8bd1=this['_getAuthorFromId'](_0x188b4f),_0xdd4cad=this['_suggestionFactory']['buildSuggestion'](_0x10a424,_0x109c2d,_0x42c5c8,_0x5a8bd1,_0x332eda,_0x169154=>{this['_updateSuggestionData'](_0x42c5c8,{'attributes':_0x169154});const _0x18fa78=this['getSuggestion'](_0x42c5c8);this['_joinWithAdjacentSuggestions'](new Set([_0x18fa78])),this['_refreshSuggestionsChain'](new Set([_0x18fa78]));});return this['listenTo'](_0xdd4cad,'accept',()=>{this['_updateSuggestionData'](_0x42c5c8,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xdd4cad,'discard',()=>{this['_updateSuggestionData'](_0x42c5c8,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x42c5c8,_0xdd4cad),this['_suggestionState']['set'](_0xdd4cad,'notReady'),_0xdd4cad;}['_splitMarkerName'](_0x5ac4c6){const _0x545a5d=_0x5ac4c6['split'](':');return{'group':_0x545a5d[0x0],'type':_0x545a5d[0x1],'subType':_0x545a5d['length']>=0x5?_0x545a5d[0x2]:null,'id':_0x545a5d['length']<0x5?_0x545a5d[0x2]:_0x545a5d[0x3],'authorId':_0x545a5d['length']<0x5?_0x545a5d[0x3]:_0x545a5d[0x4],'markerCount':0x6==_0x545a5d['length']?_0x545a5d[0x5]:null};}['_breakSuggestionMarker'](_0x1bb334,_0x24e8b1,_0x1868a7){const _0x3ea862=_0x1bb334['getFirstRange'](),_0x3b98d7=_0x3ea862['start'],_0x3d5dc8=_0x3ea862['end'];this['_setSuggestionRange'](_0x1bb334,this['_model']['createRange'](_0x3b98d7,_0x24e8b1));const _0x4ad144=_0x18a796(),_0x252eab=_0x1bb334['creator']['id'],_0x14c946=_0x1bb334['type']+(_0x1bb334['subType']?':'+_0x1bb334['subType']:'');this['_setSuggestionData']({'id':_0x4ad144,'type':_0x14c946,'createdAt':new Date(),'authorId':_0x252eab,'originalSuggestionId':_0x1bb334['id'],'attributes':_0x1bb334['attributes'],'data':_0x1bb334['data']});const _0x462593=this['_getAttributeKey'](_0x1bb334);('formatBlock'==_0x1bb334['type']||_0x462593&&this['_isBlockAttribute'](_0x462593))&&(_0x1868a7=this['_model']['createPositionBefore'](_0x1868a7['parent'])),this['_addSuggestionMarker'](_0x14c946,_0x4ad144,_0x252eab,this['_model']['createRange'](_0x1868a7,_0x3d5dc8));}['_findSuggestions'](_0x44900c,_0x20b951=null){const _0x51c6b6=[],_0x43f2c4=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x44900c)||(_0x44900c=[_0x44900c]);for(const _0x19cf54 of this['getSuggestions']()){if(!_0x19cf54['isInContent'])continue;if(_0x20b951&&_0x19cf54['type']!=_0x20b951)continue;let _0x3831ad=!0x1;for(const _0x5ef3a9 of _0x19cf54['getRanges']()){for(const _0x557cfa of _0x44900c){const _0x2e9fcf=_0x557cfa['start']['isEqual'](_0x5ef3a9['end'])||_0x557cfa['end']['isEqual'](_0x5ef3a9['start']);if(_0x2e9fcf||_0x557cfa['getIntersection'](_0x5ef3a9)){const _0x4c673c=_0x557cfa['containsRange'](_0x5ef3a9)&&Pt(this['_model']['schema'],_0x5ef3a9['start'],_0x557cfa),_0x4ec1cb=_0x5ef3a9['containsRange'](_0x557cfa)&&Pt(this['_model']['schema'],_0x557cfa['start'],_0x5ef3a9);_0x51c6b6['push']({'suggestion':_0x19cf54,'meta':{'isOwn':_0x43f2c4==_0x19cf54['author'],'isNextTo':_0x2e9fcf,'isInsideObject':_0x4c673c,'containsRangeInObject':_0x4ec1cb}}),_0x3831ad=!0x0;break;}}if(_0x3831ad)break;}}return _0x51c6b6;}['_addSuggestionMarker'](_0x41c1d0,_0x517c85,_0x262d0b,_0x514c1c,_0x941c63){this['_model']['change'](_0x501c08=>{let _0x217a14='suggestion:'+_0x41c1d0+':'+_0x517c85+':'+_0x262d0b;_0x941c63&&(_0x217a14=_0x217a14+':'+_0x941c63),_0x501c08['addMarker'](_0x217a14,{'range':_0x514c1c,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x13a39f){const _0x4603ae=_0x13a39f['previous'],_0x3cb886=_0x13a39f['next'];_0x13a39f['previous']=null,_0x13a39f['next']=null,null!=_0x4603ae&&_0x4603ae['next']==_0x13a39f&&(_0x4603ae['next']=_0x3cb886),null!=_0x3cb886&&_0x3cb886['previous']==_0x13a39f&&(_0x3cb886['previous']=_0x4603ae),'ready'==this['_suggestionState']['get'](_0x13a39f)&&(this['_suggestionState']['set'](_0x13a39f,'removed'),this['fire']('suggestionUnloaded',_0x13a39f,_0x4603ae,_0x3cb886));}['_setSuggestionData'](_0x1bf913){const _0x3d3d9f=_0x1bf913['id'],_0x18fc00=this['addSuggestionData'](_0x1bf913);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x566048=this['editor']['plugins']['get']('PendingActions'),_0x1cee87=_0x18fc00['hasComments'],_0x12ab4e=_0x18fc00['subType']?_0x18fc00['type']+':'+_0x18fc00['subType']:_0x18fc00['type'],_0x3c703f=this['editor']['locale'],_0x129e8d=_0x566048['add'](c(_0x3c703f,'PENDING_ACTION_SUGGESTION')),_0x28fa16={'id':_0x3d3d9f,'type':_0x12ab4e,'hasComments':_0x1cee87,'data':_0x1bf913['data']||null,'originalSuggestionId':_0x1bf913['originalSuggestionId']||null,'attributes':_0x18fc00['attributes']};this['_adapter']['addSuggestion'](_0x28fa16)['then'](_0x9a7455=>{_0x18fc00['_saved']=!0x0,_0x566048['remove'](_0x129e8d),_0x9a7455&&_0x9a7455['createdAt']&&(this['_suggestions']['get'](_0x3d3d9f)['createdAt']=_0x9a7455['createdAt']);})['catch'](_0x25b666=>{throw _0x3b6deb('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x18fc00['discard']();}),_0x18fc00['stopListening'](),this['_suggestions']['delete'](_0x18fc00['id']),this['_suggestionState']['delete'](_0x18fc00),_0x25b666;});}return _0x18fc00;}['_isBlockAttribute'](_0x3f269b){return this['_blockAttributeKeys']['has'](_0x3f269b);}['_updateSuggestionData'](_0x2f0818,_0x220000){const _0x538ffc=this['editor']['plugins']['get']('PendingActions'),_0x2cf3fa=this['getSuggestion'](_0x2f0818);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2cf3fa['_saved']){const _0x31522e=_0x538ffc['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2f0818,_0x220000)['then'](()=>{_0x538ffc['remove'](_0x31522e);});}else _0x2cf3fa['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2f0818,_0x220000);});}}['_getSuggestionData'](_0x49d4af){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xb1fe46('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x49d4af);}['_handleNewSuggestionMarker'](_0x2c3143){const {id:_0x2b6af2,type:_0x230f3c,subType:_0x3fd094,authorId:_0x4156c1}=this['_splitMarkerName'](_0x2c3143),_0x3d4939=this['_suggestions']['get'](_0x2b6af2)||this['_createSuggestion'](_0x230f3c,_0x3fd094,_0x2b6af2,_0x4156c1,{});switch(this['_checkSuggestionCorrectness'](_0x3d4939,_0x230f3c,_0x3fd094,_0x4156c1),this['_suggestionState']['get'](_0x3d4939)){case'notReady':this['_getSuggestionData'](_0x2b6af2)['then'](_0x2aa9c5=>{let _0x2d85a8=Promise['resolve']();_0x2aa9c5['hasComments']&&(_0x2d85a8=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2b6af2})),_0x2d85a8['then'](()=>{this['addSuggestionData'](_0x2aa9c5)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3d4939,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2b6af2,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3d4939,'ready'),this['fire']('suggestionLoaded',_0x3d4939);break;case'ready':this['fire']('suggestionChanged',_0x3d4939);}return _0x3d4939['addMarkerName'](_0x2c3143),_0x3d4939;}['_refreshSuggestionsChain'](_0x298751){const _0x3b5ebc=Array['from'](_0x298751),_0x2e86eb=_0x3b5ebc['filter'](_0x108e0b=>'attribute'==_0x108e0b['type']);this['_refreshAttributeSuggestionsChain'](_0x2e86eb);const _0x5159af=_0x3b5ebc['filter'](_0xd22f7d=>!_0xd22f7d['isMultiRange']&&'attribute'!=_0xd22f7d['type']),_0x2cfaaa=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1df0af=>!_0x1df0af['isMultiRange']&&'attribute'!=_0x1df0af['type']),_0x288dad=_0x2cfaaa['filter'](_0xc5f110=>!_0x298751['has'](_0xc5f110)),_0x312bc9=new Map(_0x2cfaaa['map'](_0x121f64=>[_0x121f64,this['_suggestionFactory']['getSuggestionCallback'](_0x121f64['type'],_0x121f64['subType'],'chain')])),_0x55cdb0=new Map(_0x2cfaaa['map'](_0x51e6b3=>[_0x51e6b3,_0x51e6b3['getFirstRange']()])),_0x4260f6=new Set(),_0x117d93=new Set();for(let _0x249c7d=0x0;_0x249c7d<_0x5159af['length'];_0x249c7d++)_0x55d155(_0x5159af[_0x249c7d],_0x5159af,_0x249c7d+0x1);for(let _0x4112be=0x0;_0x4112be<_0x5159af['length'];_0x4112be++)_0x55d155(_0x5159af[_0x4112be],_0x288dad,0x0);const _0x4489d8=new Set();for(let _0x121e07=0x0;_0x121e07<_0x5159af['length'];_0x121e07++){const _0xfb7b44=_0x5159af[_0x121e07];!_0x117d93['has'](_0xfb7b44)&&_0xfb7b44['previous']&&(_0x4489d8['add'](_0xfb7b44['previous']),_0xfb7b44['previous']['next']===_0xfb7b44&&(_0xfb7b44['previous']['next']=null),_0xfb7b44['previous']=null),!_0x4260f6['has'](_0xfb7b44)&&_0xfb7b44['next']&&(_0x4489d8['add'](_0xfb7b44['next']),_0xfb7b44['next']['previous']===_0xfb7b44&&(_0xfb7b44['next']['previous']=null),_0xfb7b44['next']=null);}function _0x55d155(_0x59d26c,_0x5919d0,_0xfbf43d){for(let _0x3a3d91=_0xfbf43d;_0x3a3d91<_0x5919d0['length'];_0x3a3d91++){const _0xe19253=_0x22b154(_0x59d26c,_0x5919d0[_0x3a3d91]);_0xe19253&&(_0xe19253[0x0]['next']=_0xe19253[0x1],_0xe19253[0x1]['previous']=_0xe19253[0x0],_0x4260f6['add'](_0xe19253[0x0]),_0x117d93['add'](_0xe19253[0x1]));}}function _0x22b154(_0x35227d,_0x4d5c8c){if(_0x35227d['author']['id']!==_0x4d5c8c['author']['id'])return null;const _0x244d1a=_0x312bc9['get'](_0x35227d)(_0x35227d,_0x4d5c8c,_0x55cdb0['get'](_0x35227d),_0x55cdb0['get'](_0x4d5c8c));if(!_0x244d1a)return null;return _0x312bc9['get'](_0x4d5c8c)(_0x35227d,_0x4d5c8c,_0x55cdb0['get'](_0x35227d),_0x55cdb0['get'](_0x4d5c8c))?_0x244d1a[0x1]['commentThread']&&_0x244d1a[0x1]['commentThread']['length']?null:_0x244d1a:null;}_0x4489d8['size']&&this['_refreshSuggestionsChain'](_0x4489d8);}['_refreshAttributeSuggestionsChain'](_0x41476d){if(0x0==_0x41476d['length'])return;const _0x1484de=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4d93f1=>'attribute'==_0x4d93f1['type']&&_0x4d93f1['_isDataLoaded']),_0x1978cf=[],_0x3fdb01=new Map();for(const _0xacc15f of _0x1484de){const _0x5ef2b4=_0x2a1780(_0xacc15f['attributes']);_0x3fdb01['has'](_0x5ef2b4)||(_0x3fdb01['set'](_0x5ef2b4,_0x1978cf['length']),_0x1978cf['push']([]));const _0x503d1a=_0x3fdb01['get'](_0x5ef2b4);_0x1978cf[_0x503d1a]['push'](_0xacc15f);}!(function(){_0x1978cf['sort']((_0x4ab503,_0x4ed603)=>{const _0x1e1172=_0x4ab503[0x0]['createdAt'],_0x2920e=_0x4ed603[0x0]['createdAt'];return _0x1e1172==_0x2920e?_0x4ab503[0x0]['attributes']['groupId']<_0x4ed603[0x0]['attributes']['groupId']?-0x1:0x1:_0x1e1172<_0x2920e?-0x1:0x1;});for(const _0x108834 of _0x1978cf)_0x108834['sort']((_0xc53c5e,_0x2409a6)=>_0xc53c5e['id']<_0x2409a6['id']?-0x1:0x1);}());for(let _0x527ffd=0x0;_0x527ffd<_0x1978cf['length'];_0x527ffd++){if(0x0==_0x1978cf[_0x527ffd]['length'])continue;const _0x1fad40=[];for(let _0x12fc6d=_0x527ffd+0x1;_0x12fc6d<_0x1978cf['length'];_0x12fc6d++)0x0!=_0x1978cf[_0x12fc6d]['length']&&_0x5a414a(_0x1978cf[_0x527ffd],_0x1978cf[_0x12fc6d])&&_0x1fad40['push'](_0x12fc6d);for(const _0x41b3ab of _0x1fad40)_0x1978cf[_0x527ffd]=_0x1978cf[_0x527ffd]['concat'](_0x1978cf[_0x41b3ab]),_0x1978cf[_0x41b3ab]=[];}for(const _0x5724f2 of _0x1978cf)for(let _0x596fc7=0x0;_0x596fc7<_0x5724f2['length'];_0x596fc7++){const _0xd659ec=_0x5724f2[_0x596fc7+0x1]||null;_0x5724f2[_0x596fc7]['next']!==_0xd659ec&&(_0x5724f2[_0x596fc7]['next']=_0xd659ec);}for(const _0x2c9bc4 of _0x1978cf)for(let _0x2ecf81=0x0;_0x2ecf81<_0x2c9bc4['length'];_0x2ecf81++){const _0x51eeee=_0x2c9bc4[_0x2ecf81-0x1]||null;_0x2c9bc4[_0x2ecf81]['previous']!==_0x51eeee&&(_0x2c9bc4[_0x2ecf81]['previous']=_0x51eeee);}function _0x5a414a(_0x54c327,_0x75b291){if(_0x54c327[0x0]['attributes']['groupId']!==_0x75b291[0x0]['attributes']['groupId']&&_0x54c327[0x0]['author']!==_0x75b291[0x0]['author'])return!0x1;if(!function(_0x2c8e3c,_0xd6a180){if(!_0x2c8e3c['hasComments']&&!_0xd6a180['hasComments'])return!0x0;if(_0x2c8e3c['hasComments']&&_0xd6a180['hasComments'])return!0x1;if(_0x2c8e3c['hasComments']&&_0xd6a180['createdAt']<_0x2c8e3c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xd6a180['hasComments']&&_0x2c8e3c['createdAt']<_0xd6a180['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x54c327[0x0],_0x75b291[0x0]))return!0x1;const _0x369155=Vt(_0x54c327[0x0]['attributes'],'groupId'),_0x2bf7cb=Vt(_0x75b291[0x0]['attributes'],'groupId');if(!_0x54a993(_0x369155,_0x2bf7cb))return!0x1;return!!_0x54c327['every'](_0x987c0d=>_0x75b291['some'](_0xde52a6=>_0x987c0d['getFirstRange']()['isEqual'](_0xde52a6['getFirstRange']())))&&_0x75b291['every'](_0xa301e8=>_0x54c327['some'](_0x374dd6=>_0xa301e8['getFirstRange']()['isEqual'](_0x374dd6['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x424d3e){const _0x32691c=Array['from'](_0x424d3e),_0x129d3c=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2a1d1f=_0x129d3c['filter'](_0xa8da11=>!_0x424d3e['has'](_0xa8da11)),_0x181fe6=new Map(_0x32691c['map'](_0x11be79=>[_0x11be79,this['_suggestionFactory']['getSuggestionCallback'](_0x11be79['type'],_0x11be79['subType'],'join')])),_0x2bf15f=new Map(_0x129d3c['map'](_0x58260a=>[_0x58260a,_0x58260a['getRanges']()]));for(let _0xef358=0x0;_0xef358<_0x32691c['length'];_0xef358++){if(_0x5db59b(this,_0x32691c[_0xef358],_0x32691c,_0xef358+0x1))return!0x0;}for(let _0x2696f3=0x0;_0x2696f3<_0x32691c['length'];_0x2696f3++){if(_0x5db59b(this,_0x32691c[_0x2696f3],_0x2a1d1f,0x0))return!0x0;}return!0x1;function _0x5db59b(_0x5978f8,_0x2c4466,_0x1e1842,_0x153488){for(let _0x5a8181=_0x153488;_0x5a8181<_0x1e1842['length'];_0x5a8181++){const _0x22ac3d=_0x1e1842[_0x5a8181];if(_0x22ac3d['type']!==_0x2c4466['type']||_0x22ac3d['author']['id']!==_0x2c4466['author']['id']||_0x22ac3d['subType']!==_0x2c4466['subType'])continue;if(!Wt(_0x2c4466,_0x22ac3d))continue;if('attribute'==_0x2c4466['type']&&_0x2c4466['data']['oldValue']!=_0x22ac3d['data']['oldValue'])continue;if('attribute'==_0x2c4466['type']&&_0x5978f8['_isBlockAttribute'](_0x2c4466['data']['key']))continue;if('formatBlock'==_0x2c4466['type']){const _0x421cde=_0x5978f8['editor']['model'],_0x51eb7e=_0x2c4466['getContainedElement']();if(_0x51eb7e&&(_0x421cde['schema']['isObject'](_0x51eb7e)||_0x421cde['schema']['isLimit'](_0x51eb7e)))continue;}const _0x220c74=_0x181fe6['get'](_0x2c4466),_0x1faf37=_0x2bf15f['get'](_0x2c4466),_0x30991b=_0x2bf15f['get'](_0x22ac3d),_0x27f405=_0x2c4466['commentThread']&&_0x2c4466['commentThread']['length'],_0x17fa0c=_0x22ac3d['commentThread']&&_0x22ac3d['commentThread']['length'];if(!_0x27f405&&_0x220c74(_0x30991b,_0x1faf37))return _0x5978f8['_joinSuggestions'](_0x22ac3d,_0x2c4466),_0x2bf15f['delete'](_0x2c4466),!0x0;if(!_0x17fa0c&&_0x220c74(_0x1faf37,_0x30991b))return _0x5978f8['_joinSuggestions'](_0x2c4466,_0x22ac3d),_0x2bf15f['delete'](_0x22ac3d),!0x0;}return!0x1;}}['_joinSuggestions'](_0xaa2ac9,_0x1eb7cf){if(_0xaa2ac9['isMultiRange']){for(const _0x379316 of _0x1eb7cf['getRanges']())_0xaa2ac9['addRange'](_0x379316);}else{const _0x567143=_0x1eb7cf['getFirstRange']()['end'];this['_setSuggestionRange'](_0xaa2ac9,this['_model']['createRange'](_0xaa2ac9['getFirstRange']()['start'],_0x567143));}_0x1eb7cf['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4af9a1,_0x2a0c50,_0x464fd4){const _0x483b2b=_0x4af9a1['startsWith']('format')||_0x4af9a1['startsWith']('attribute')?'FORMATTING':_0x4af9a1['toUpperCase']();return c(this['editor']['locale'],_0x2a0c50+'_'+_0x483b2b+'_SUGGESTION_ANNOUNCEMENT',_0x464fd4);}['_initAriaMarkerChangeAnnouncements'](){const _0x190b51=this['editor'];if(!_0x190b51['ui'])return;const {ariaLiveAnnouncer:_0x3fbff5}=_0x190b51['ui'];_0x1d2ad3(this['_model'],({left:_0x48aa11,entered:_0x227b35})=>{for(const _0x48e3dd of _0x48aa11){const {group:_0x520113,type:_0x20a7d7}=this['_splitMarkerName'](_0x48e3dd['name']);if('suggestion'===_0x520113){_0x3fbff5['announce'](this['_getMarkerAnnouncementText'](_0x20a7d7,'LEAVE'));break;}}for(const _0x2e2fd3 of _0x227b35){const {group:_0x3f20ac,type:_0x435ff6}=this['_splitMarkerName'](_0x2e2fd3['name']);if('suggestion'===_0x3f20ac){_0x3fbff5['announce'](this['_getMarkerAnnouncementText'](_0x435ff6,'ENTER',_0x3b1d48(_0x558da0)));break;}}});}['_processAttributeChanges'](_0x326e2c){if(this['_recordAttributeSuggestions'])return!0x1;const _0x10cb02=this['editor'],_0x59a44e=_0x10cb02['model']['document']['differ']['getChanges']();if(0x0==_0x59a44e['length'])return!0x1;const _0x4ed073=[],_0x51ba4c=_0x59a44e['filter'](_0x3e0af2=>'attribute'==_0x3e0af2['type']),_0x249ead=_0x59a44e['filter'](_0x2df0b7=>'insert'==_0x2df0b7['type']&&'$text'!=_0x2df0b7['name']),_0x571afb=_0x59a44e['filter'](_0x56aca5=>'remove'==_0x56aca5['type']&&'$text'!=_0x56aca5['name']);for(const _0x253bfc of _0x51ba4c)_0x4ed073['push']({'key':_0x253bfc['attributeKey'],'newValue':_0x253bfc['attributeNewValue'],'oldValue':_0x253bfc['attributeOldValue'],'range':Ht(_0x253bfc['range'],_0x10cb02['model'])});for(const _0x4c7593 of _0x249ead){const _0x50cccd=_0x571afb['find'](_0xc37349=>_0xc37349['position']['isEqual'](_0x4c7593['position']));_0x50cccd&&_0x4ed073['push']({'key':u,'newValue':_0x4c7593['name'],'oldValue':_0x50cccd['name'],'range':_0x10cb02['model']['createRangeOn'](_0x4c7593['position']['nodeAfter'])});}return 0x0!=_0x4ed073['length']&&this['_reduceExistingSuggestions'](_0x326e2c,_0x4ed073);}['_processAttributeSuggestions'](_0x5eb43e){let _0x21df72=!0x1;const _0x3aeb66=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x134c1f=>_0x134c1f['data']['newRange']&&_0x134c1f['name']['startsWith']('suggestion:attribute:'));for(const _0x1f5f4e of _0x3aeb66){const {subType:_0x39ba81,id:_0x10527a}=this['_splitMarkerName'](_0x1f5f4e['name']),_0x5bf14d=_0x39ba81['split']('|')[0x0];for(const _0x2f84a3 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2f84a3['id']!=_0x10527a&&'attribute'==_0x2f84a3['type']&&_0x2f84a3['data']&&_0x2f84a3['data']['key']==_0x5bf14d&&_0x2f84a3['getFirstRange']()['isIntersecting'](_0x1f5f4e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2f84a3,_0x1f5f4e['data']['newRange'],_0x5eb43e),_0x21df72=!0x0);}return _0x21df72;}['_recordAttributeChanges'](_0x18683d){this['_recordAttributeSuggestions']=!0x0,_0x18683d();}['_isRegisteredAttribute'](_0x168842){const _0x11a065=this['_isBlockAttribute'](_0x168842),_0x2b46b5=this['_inlineAttributeKeys']['has'](_0x168842);return _0x11a065||_0x2b46b5;}['_reduceExistingSuggestions'](_0x911c7,_0x115bbf){if(0x0==_0x115bbf['length'])return!0x1;let _0x464c47=!0x1;for(const _0x2befc1 of _0x115bbf){const _0x8f305a=this['_findSuggestions'](_0x2befc1['range'],'attribute')['filter'](_0x5261b7=>!_0x5261b7['meta']['isNextTo'])['map'](_0x1cbd2a=>_0x1cbd2a['suggestion']),_0x53dfed=_0x2a1780({'newValue':_0x2befc1['newValue']});_0x8f305a['filter'](_0x20e7d5=>{const [_0x4b07a4,_0x4ef3be]=_0x20e7d5['subType']['split']('|');return _0x4b07a4==_0x2befc1['key']&&_0x4ef3be!=_0x53dfed;})['forEach'](_0x1c50ce=>{this['_reduceSuggestionAttributeRange'](_0x1c50ce,_0x2befc1['range'],_0x911c7),_0x464c47=!0x0;});}return _0x464c47;}['_reduceSuggestionAttributeRange'](_0x3942ee,_0x192809,_0x4ed7f4){const _0x3e35f5=_0x3942ee['getFirstRange']()['getDifference'](_0x192809);0x0!==_0x3e35f5['length']?0x1!==_0x3e35f5['length']?this['_breakSuggestionMarker'](_0x3942ee,_0x192809['start'],_0x192809['end']):this['_setSuggestionRange'](_0x3942ee,_0x3e35f5[0x0]):_0x4ed7f4['removeMarker'](_0x3942ee['getFirstMarker']());}}class Ft{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4bccb3){this['_editor']=_0x4bccb3,this['_model']=_0x4bccb3['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4c2084,_0x5b5b46,_0x4e8761,_0x3355d6,_0x44b131,_0x55ec44){return new o(this['_model'],{'type':_0x4c2084,'subType':_0x5b5b46,'id':_0x4e8761,'author':_0x3355d6,'creator':_0x3355d6,'attributes':_0x44b131,'onAttributesChange':_0x55ec44,'onAccept':(..._0x299989)=>this['getSuggestionCallback'](_0x4c2084,_0x5b5b46,'accept')(..._0x299989),'onDiscard':(..._0x374962)=>this['getSuggestionCallback'](_0x4c2084,_0x5b5b46,'discard')(..._0x374962)});}['registerCustomCallback'](_0x692bb3,_0x223902,_0x12516c,_0x29900b){const _0x132ee7=_0x692bb3+':'+_0x223902+':'+_0x12516c;this['_customCallbacks']['set'](_0x132ee7,_0x29900b);}['getSuggestionCallback'](_0x212c6e,_0x153a37,_0x3b8957){const _0x2352a5=_0x212c6e+':'+_0x153a37+':'+_0x3b8957;return this['_customCallbacks']['get'](_0x2352a5)||this['_defaultCallbacks']['get'](_0x212c6e+':'+_0x3b8957);}['_registerDefaultCallbacks'](){const _0x5d3176=()=>!0x1,_0x21353a=_0x291de2=>{_0x291de2['sort']((_0x5091d9,_0x6fc775)=>_0x5091d9['start']['isBefore'](_0x6fc775['start'])?0x1:-0x1),this['_model']['change'](_0x593626=>{for(const _0xd3dea3 of _0x291de2){let _0x4b215d;_0x4b215d=_0xd3dea3['end']['isAtEnd']&&_0xd3dea3['end']['parent']==_0xd3dea3['start']['nodeAfter']?_0x593626['createSelection'](_0xd3dea3['start']['nodeAfter'],'on'):_0x593626['createSelection'](_0xd3dea3),this['_model']['deleteContent'](_0x4b215d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x564575=(_0x41fe72,_0x3dc404)=>{_0x3dc404&&this['_model']['change'](_0x336536=>{const {commandName:_0x904363,commandParams:_0x241724=[]}=_0x3dc404,_0x3e9802=_0x41fe72['map'](_0x498e5c=>(Gt(_0x498e5c)&&(_0x498e5c=this['_model']['createRange'](_0x498e5c['end'])),_0x498e5c))['filter'](_0x32346a=>'$graveyard'!==_0x32346a['root']['rootName']);if(_0x3e9802['length']<0x1)return;const _0x74461f=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x43c717=>_0x1a0cce['fromRange'](_0x43c717));_0x336536['setSelection'](_0x3e9802);for(const _0x424407 of this['_editor']['commands']['commands']())_0x424407['refresh']();_0x241724['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x904363,..._0x241724);const _0x5779d7=_0x74461f['filter'](_0x336b88=>'$graveyard'!=_0x336b88['root']['rootName']);_0x5779d7['length']>0x0&&_0x336536['setSelection'](_0x5779d7);for(const _0x408580 of _0x74461f)_0x408580['detach']();});},_0x7fc718=(_0x438d83,_0x119be8)=>0x1==_0x438d83['length']&&0x1==_0x119be8['length']&&_0x438d83[0x0]['end']['isEqual'](_0x119be8[0x0]['start']),_0x34f415=(_0x5ab374,_0x30d378,_0x372f64,_0x3aa860)=>zt(_0x5ab374,_0x30d378,_0x372f64,_0x3aa860)?[_0x5ab374,_0x30d378]:zt(_0x30d378,_0x5ab374,_0x3aa860,_0x372f64)?[_0x30d378,_0x5ab374]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5d3176),this['_defaultCallbacks']['set']('insertion:discard',_0x21353a),this['_defaultCallbacks']['set']('insertion:join',_0x7fc718),this['_defaultCallbacks']['set']('insertion:chain',_0x34f415),this['_defaultCallbacks']['set']('deletion:accept',_0x21353a),this['_defaultCallbacks']['set']('deletion:discard',_0x5d3176),this['_defaultCallbacks']['set']('deletion:join',_0x7fc718),this['_defaultCallbacks']['set']('deletion:chain',_0x34f415),this['_defaultCallbacks']['set']('formatInline:accept',_0x564575),this['_defaultCallbacks']['set']('formatInline:discard',_0x5d3176),this['_defaultCallbacks']['set']('formatInline:join',_0x7fc718),this['_defaultCallbacks']['set']('formatInline:chain',_0x5d3176),this['_defaultCallbacks']['set']('formatBlock:accept',_0x564575),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5d3176),this['_defaultCallbacks']['set']('formatBlock:join',_0x7fc718),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5d3176),this['_defaultCallbacks']['set']('attribute:accept',_0x5d3176),this['_defaultCallbacks']['set']('attribute:discard',(_0x13ea3f,_0x552695)=>{if(!_0x552695)return;const _0xf4bdca=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x452362=>{if(_0x552695['key']==u)for(const _0xf52a73 of _0x13ea3f){const _0x510313=_0xf52a73['start']['nodeAfter'],_0x446680=_0x552695['oldValue'];_0x452362['rename'](_0x510313,_0x446680);}else{if(_0xf4bdca['_isBlockAttribute'](_0x552695['key'])){for(const _0x1101f4 of _0x13ea3f)void 0x0!==_0x552695['oldValue']?_0x452362['setAttribute'](_0x552695['key'],_0x552695['oldValue'],_0x1101f4['start']['nodeAfter']):_0x452362['removeAttribute'](_0x552695['key'],_0x1101f4['start']['nodeAfter']);}else{for(const _0x5412d1 of _0x13ea3f)_0x552695['oldValue']?_0x452362['setAttribute'](_0x552695['key'],_0x552695['oldValue'],_0x5412d1):_0x452362['removeAttribute'](_0x552695['key'],_0x5412d1);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x7fc718);}}function Pt(_0x3a4bbb,_0x9e0d35,_0x6c855e){for(const _0x37dfbe of _0x9e0d35['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x37dfbe['root']==_0x37dfbe)return!0x1;if(!_0x6c855e['containsItem'](_0x37dfbe))return!0x1;if(_0x3a4bbb['isObject'](_0x37dfbe)||_0x3a4bbb['isLimit'](_0x37dfbe))return!0x0;}return!0x1;}function Gt(_0x3aeff1){return _0x3aeff1['end']['parent']==_0x3aeff1['start']['nodeAfter']&&_0x3aeff1['end']['isAtStart'];}function Lt(_0x5aab16,_0x47b131,_0x4a281b,_0x359b04){const _0x48291f=_0x2b8302=>!_0x2b8302['item']['is']('$textProxy')&&!_0x359b04['isObject'](_0x2b8302['item']),_0x15e55d=_0x5aab16['start']['getLastMatchingPosition'](_0x48291f),_0x2ee198=_0x5aab16['end']['getLastMatchingPosition'](_0x48291f,{'direction':'backward'});return(!_0x5aab16['start']['isEqual'](_0x15e55d)||!_0x5aab16['end']['isEqual'](_0x2ee198))&&(_0x15e55d['isBefore'](_0x2ee198)?_0x4a281b['updateMarker'](_0x47b131,{'range':_0x4a281b['createRange'](_0x15e55d,_0x2ee198)}):_0x4a281b['removeMarker'](_0x47b131),!0x0);}function Jt(_0x3dcc7f){return _0x2a1780(_0x3dcc7f);}function Kt(_0x25cbd6){const _0xd00593=_0x25cbd6['start']['nodeAfter'];return _0xd00593&&_0xd00593['is']('element');}function Ht(_0x514b63,_0x5f4578){return null==_0x514b63['end']['nodeBefore']&&_0x514b63['end']['parent']==_0x514b63['start']['nodeAfter']?qt(_0x514b63['start']['nodeAfter'],_0x5f4578):_0x514b63;}function qt(_0x2fadc0,_0x3ae81a){const _0xdfbc54=_0x3ae81a['schema']['isObject'](_0x2fadc0)||_0x3ae81a['schema']['isSelectable'](_0x2fadc0);return _0x3ae81a['createRange'](_0x3ae81a['createPositionAt'](_0x2fadc0,'before'),_0xdfbc54?_0x3ae81a['createPositionAfter'](_0x2fadc0):_0x3ae81a['createPositionAt'](_0x2fadc0,'end'));}function zt(_0x277910,_0x3eb3f7,_0x562be2,_0xb32ea8){return!!Wt(_0x277910,_0x3eb3f7)&&_0x562be2['end']['isEqual'](_0xb32ea8['start']);}function Wt(_0x2b42bb,_0x2bc913){if(!_0x2b42bb['_isDataLoaded']||!_0x2bc913['_isDataLoaded'])return!0x1;const _0x46ae30=new Set(Object['keys'](_0x2b42bb['attributes'])),_0x16fad5=new Set(Object['keys'](_0x2bc913['attributes']));if(_0x46ae30['delete']('groupId'),_0x16fad5['delete']('groupId'),0x0==_0x46ae30['size']&&0x0==_0x16fad5['size'])return!0x0;if(_0x46ae30['size']!=_0x16fad5['size'])return!0x1;const _0x9291de={..._0x2b42bb['attributes']},_0x416706={..._0x2bc913['attributes']};return delete _0x9291de['groupId'],delete _0x416706['groupId'],JSON['stringify'](_0x9291de)==JSON['stringify'](_0x416706);}function Qt(_0x144bcf,_0x55adaf){const _0x1651cc=Xt(_0x144bcf['attributes']),_0x2ebf4a=Xt(_0x55adaf);if(!_0x144bcf['_isDataLoaded'])return!0x1;for(const _0x2b038b of Object['keys'](_0x2ebf4a))if(!_0x54a993(_0x1651cc[_0x2b038b],_0x2ebf4a[_0x2b038b]))return!0x1;return!0x0;}function Xt(_0x429546){const _0x5b7145=Object['assign']({},_0x429546);return delete _0x5b7145['skipNestingCheck'],delete _0x5b7145['tablePasteChainId'],_0x5b7145;}class pe extends/* #__PURE__ -- @preserve */
25
- _0x243e84(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x131fdc,_0x23e478,_0x5acf79,_0x2ec17f){super(),this['model']=_0x23e478,this['view']=_0x5acf79,this['commentThreadController']=_0x2ec17f,this['_editor']=_0x131fdc,this['_acceptCommand']=_0x131fdc['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x131fdc['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x9b013,_0x3e8dab)=>_0x9b013||_0x3e8dab),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x564fdf=>_0x564fdf&&this['_editor']['model']['canEditAt'](_0x23e478['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x39100b=>_0x39100b&&this['_editor']['model']['canEditAt'](_0x23e478['getRanges']())),this['_pendingAction']=null,_0x5acf79['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5acf79,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5acf79,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5acf79,'change:isDirty',()=>{_0x5acf79['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 _0x3c95e6=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3c95e6);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x11d546{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5f23e0,_0x30b0b5,_0x32b7c9,_0x5af402){super(_0x5f23e0),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x385cc7(_0x5f23e0,c(_0x5f23e0,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x30b0b5['authoredAt']),this['bind']('authoredAt')['to'](_0x30b0b5),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',_0x30b0b5,'authoredAt',this,'descriptionParts',(_0x3f7958,_0x27c4bb,_0x59f74b)=>{const _0x3135dd=_0x59f74b['map'](_0xb9180f=>ls(_0xb9180f['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3f7958-0x1,_0x30b0b5['author']['name'],_0x27c4bb?_0x5af402['formatDateTime'](_0x27c4bb):'',new DOMParser()['parseFromString'](_0x3135dd,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4d8d26(),this['focusTracker']=new _0x554bbb(),this['keystrokes']=new _0x291e23(),this['focusCycler']=new _0x3f8518({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4ae839=>_0x4ae839['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x30b0b5,this['_localUser']=_0x32b7c9,this['_config']=_0x5af402,_0x5af402['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x205cb9(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xd1de66}=this['_config'];this['commentsListView']=new _0xd1de66(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',_0x1ef711=>_0x1ef711+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xa64a3f,_0x9c3566)=>_0xa64a3f||!!_0x9c3566);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x47e0fb}=this['_config'],_0x3a2fe6=new _0x47e0fb(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3c88fd=_0x3a2fe6['commentInputView'];return _0x3a2fe6['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3c88fd,'value',(_0x860e15,_0x3a572a,_0x3b7614)=>!!_0x3b7614||_0x860e15&&!_0x3a572a),_0x3c88fd['on']('submit',(_0x1318ad,_0x40229a)=>{this['fire']('addComment',_0x40229a),_0x3c88fd['editor']['setData']('');}),_0x3c88fd['on']('cancel',()=>this['focus']()),_0x3c88fd['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3a2fe6;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x3d0b87,_0x5a0bd3,_0xfea099,_0x583b46){super(_0x3d0b87,_0x5a0bd3,_0xfea099,_0x583b46),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2b2400=>_0x2b2400&&_0x2b2400[0x0]?_0x2b2400[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3fc90b,_0x231314)=>{let _0x526b75='';for(const _0x412cc3 of _0x3fc90b)_0x526b75+='<p>'+ls(_0x412cc3['content'],_0x412cc3['color'])+'</p>';return _0x231314?_0x526b75:ti(_0x526b75,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x583b46['SuggestionView'](_0x3d0b87,_0x5a0bd3,{'formatDateTime':_0x583b46['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 _0x310814=this['bindTemplate'],_0x3a58d4=[this['suggestionView']];return this['commentsListView']&&_0x3a58d4['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3a58d4['push'](this['commentThreadInputView']),_0x3a58d4['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x310814['if']('isActive','ck-suggestion-wrapper--active'),_0x310814['to']('type',_0x41757a=>'ck-suggestion-'+_0x41757a),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':_0x310814['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3a58d4};}['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 we extends _0x11d546{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5a73bb,_0x33123c,_0x1940a7){super(_0x5a73bb),this['_model']=_0x33123c,this['_config']=_0x1940a7,this['set']('description',''),this['bind']('authoredAt')['to'](_0x33123c),this['acceptButton']=this['_createButton'](c(_0x5a73bb,'Accept\x20suggestion'),_0x30d64b,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x5a73bb,'Discard\x20suggestion'),_0x457e84,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x437089(_0x5a73bb,_0x33123c['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4d8d26([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x554bbb(),this['keystrokes']=new _0x291e23(),this['focusCycler']=new _0x3f8518({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x41bd86=>_0x41bd86['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2c0162=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2c0162['innerHTML']=this['description'],this['on']('change:description',(_0x1ae319,_0x1ea2f8,_0x1b50a2)=>{_0x2c0162['innerHTML']=_0x1b50a2;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4ae656=this['bindTemplate'],_0x29d5b8=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x4ae656['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4ae656['to']('authoredAt',_0x3102b5=>this['_config']['formatDateTime'](_0x3102b5))}]}]},{'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']&&_0x29d5b8['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':_0x29d5b8}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x103f14,_0x17493d,_0x30fb68,_0x5c07f7,_0x7fafbe){const _0x3a740c=new _0x34e70a(this['locale']);return _0x3a740c['set']({'label':_0x103f14,'icon':_0x17493d,'tooltip':!0x0,'tooltipPosition':_0x7fafbe}),_0x3a740c['extendTemplate']({'attributes':{'class':_0x30fb68}}),_0x3a740c['on']('execute',()=>{this['fire'](_0x5c07f7,this['_model']['id']);}),_0x3a740c;}['_setupKeyboardNavigation'](){const _0x4f9866=this['element'];this['keystrokes']['listenTo'](_0x4f9866);for(const _0x47d109 of this['focusables'])this['focusTracker']['add'](_0x47d109['element']),this['keystrokes']['listenTo'](_0x47d109['element']);this['keystrokes']['set']('enter',(_0x450539,_0x4cf009)=>{_0x4f9866===_0x450539['target']&&(this['focusCycler']['focusFirst'](),_0x4cf009());}),this['keystrokes']['set']('esc',(_0x4cccdf,_0x4e7be4)=>{_0x4f9866!==_0x4cccdf['target']&&(this['focus'](),_0x4e7be4());});}}class d extends _0xc831a5{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x5c361d,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x296bfc){super(_0x296bfc),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2d720f=this['editor']['config'];_0x2d720f['define']('trackChanges.SuggestionThreadView',fe),_0x2d720f['define']('trackChanges.SuggestionView',we),_0x2d720f['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2d720f['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x27d581,_0x52c6f9){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5adfad,_0x4c6a12]of this['_handleControllerBuffer']){const _0x778407=this['_suggestionToController']['has'](_0x5adfad);_0x778407||_0x4c6a12?_0x778407&&_0x4c6a12&&this['_destroyController'](_0x5adfad):this['_initializeController'](_0x5adfad);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x27d581,_0x52c6f9);}['init'](){const _0x45c5ed=this['editor'],_0x4270c9=_0x45c5ed['plugins']['get']('TrackChangesEditing'),_0x4d0b15=_0x45c5ed['plugins']['get']('Annotations'),_0x1b1117=_0x45c5ed['plugins']['get']('EditorAnnotations'),_0x24bdcc=_0x45c5ed['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1b1117['addSourceCollector'](()=>{const _0xfc44e6=[];for(const [_0xcde10b,_0x1d551d]of Array['from'](this['_suggestionToController'])){const _0x2e099d=_0xcde10b['getAllAdjacentSuggestions'](),_0x52840c=[];for(const _0x4d3980 of _0x2e099d){if(!_0x4d3980['isInContent'])continue;if(_0x4d3980['isMultiRange']){_0x52840c['push'](..._0x4d3980['getRanges']());continue;}const _0x2d1a12=_0x4d3980['getFirstRange']();if(_0x52840c['length']>0x0){const _0xf3ad5c=_0x52840c[0x0]['getJoined'](_0x2d1a12);if(_0xf3ad5c){_0x52840c[0x0]=_0xf3ad5c;continue;}}_0x52840c['push'](_0x2d1a12);}_0xfc44e6['push']([_0x1d551d['view'],_0x52840c]);}return _0xfc44e6;}),this['listenTo'](_0x4270c9,'suggestionLoaded',(_0x5ab4a6,_0x456bbd)=>{this['listenTo'](_0x456bbd,'change:previous',(_0x2b8e69,_0x1dc797,_0xb70ef6,_0x4e253d)=>{_0x456bbd['isInContent']&&(null==_0xb70ef6?(this['_updateController'](_0x4e253d['head']),this['_handleSuggestionControllerDelayed'](_0x456bbd,!0x1)):(this['_updateController'](_0xb70ef6['head']),null==_0x4e253d&&this['_handleSuggestionControllerDelayed'](_0x456bbd,!0x0)));}),null!==_0x456bbd['previous']?this['_updateController'](_0x456bbd['head']):this['_handleSuggestionControllerDelayed'](_0x456bbd,!0x1);}),this['listenTo'](_0x4270c9,'suggestionUnloaded',(_0x4763a9,_0x48f68d,_0x3d7a1f)=>{this['stopListening'](_0x48f68d,'change:previous'),this['_handleControllerBuffer']['delete'](_0x48f68d),this['_suggestionToController']['has'](_0x48f68d)&&this['_destroyController'](_0x48f68d),_0x3d7a1f&&this['_updateController'](_0x3d7a1f['head']);}),this['listenTo'](_0x4270c9,'suggestionChanged',(_0x4f4f64,_0x3bd44a)=>{this['_updateController'](_0x3bd44a);}),this['listenTo'](_0x4d0b15,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x24bdcc,'addComment',(_0x38bbf4,{threadId:_0x3087c3,isFromAdapter:_0x27e33f})=>{if(_0x27e33f||!_0x4270c9['hasSuggestion'](_0x3087c3))return;const _0x4f811c=_0x4270c9['getSuggestion'](_0x3087c3);this['_suggestionToController']['get'](_0x4f811c)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x579b5f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x26bde4;for(const _0x201052 in _0x579b5f){const _0x215115=_0x201052,_0x5181e5=_0x579b5f[_0x215115];if('trackChangesLicenseKeyValid'==_0x5181e5||'trackChangesLicenseKeyInvalid'==_0x5181e5||'trackChangesLicenseKeyExpired'==_0x5181e5||'trackChangesLicenseKeyDomainLimit'==_0x5181e5||'trackChangesLicenseKeyNotAllowed'==_0x5181e5||'trackChangesLicenseKeyEvaluationLimit'==_0x5181e5||'trackChangesLicenseKeyTrialLimit'==_0x5181e5||'trackChangesLicenseKeyUsageLimit'==_0x5181e5){delete _0x579b5f[_0x215115],_0x26bde4=_0x5181e5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x26bde4&&_0x579b5f['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x26bde4&&_0x579b5f['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x26bde4&&_0x579b5f['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x26bde4&&_0x579b5f['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x26bde4&&_0x579b5f['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x26bde4&&_0x579b5f['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x26bde4&&_0x579b5f['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x429925=this['editor']['plugins']['get']('Annotations'),_0x1aa4a1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54cfc8=Array['from'](_0x429925['activeAnnotations'],_0x42d3c9=>_0x42d3c9['innerView'])['filter'](_0x424174=>this['_viewToController']['has'](_0x424174)),_0x5bd38d=[];for(const _0x407816 of _0x54cfc8){const _0x23e2d1=this['_viewToController']['get'](_0x407816)['model']['getAllAdjacentSuggestions']();_0x5bd38d['push'](..._0x23e2d1['reduce']((_0xeedc9f,_0x4b3600)=>[..._0xeedc9f,..._0x4b3600['getMarkerNames']()],[]));}_0x1aa4a1['activeMarkers']=_0x5bd38d;}['_addUIComponentsToFactory'](){const _0x2ca13b=this['editor'],_0x2c0e29=_0x2ca13b['locale'],_0x831ea0=c(_0x2c0e29,'Track\x20changes'),_0x8db2a9=new _0x404500([{'type':'switchbutton','model':new _0x2cb56a({'withText':!0x0,'isToggleable':!0x0,'label':_0x831ea0,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2cb56a({'withText':!0x0,'label':c(_0x2c0e29,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2cb56a({'withText':!0x0,'label':c(_0x2c0e29,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2cb56a({'withText':!0x0,'label':c(_0x2c0e29,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2cb56a({'withText':!0x0,'label':c(_0x2c0e29,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2ca13b['plugins']['has']('TrackChangesPreview')&&_0x8db2a9['addMany']([{'type':'separator'},{'type':'button','model':new _0x2cb56a({'withText':!0x0,'label':c(_0x2c0e29,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2f1336 of _0x8db2a9)if(ke(_0x2f1336)){const _0x3008fc=_0x2ca13b['commands']['get'](_0x2f1336['model']['commandName']);_0x2f1336['model']['bind']('isOn','isEnabled')['to'](_0x3008fc,'value','isEnabled');}_0x2ca13b['ui']['componentFactory']['add']('trackChanges',_0x3b3112=>this['_createToolbarButton'](_0x3b3112,_0x8db2a9,_0x831ea0)),_0x2ca13b['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3e4931=>this['_createMenuBarMenu'](_0x3e4931,_0x8db2a9,_0x831ea0));}['_createToolbarButton'](_0x10c702,_0x294c57,_0x22a267){const _0x2970cb=_0x76c2d(_0x10c702,_0x3603a0),_0x2e0cf5=this['editor']['commands']['get']('trackChanges');_0x2970cb['buttonView']['set']({'tooltip':_0x22a267,'label':_0x22a267,'icon':_0x858bbc}),_0x2970cb['buttonView']['bind']('isOn')['to'](_0x2e0cf5,'value'),_0x2970cb['buttonView']['on']('execute',()=>{_0x2e0cf5['execute'](),this['editor']['editing']['view']['focus']();}),_0x1de96b(_0x2970cb,_0x294c57,{'role':'menu'});const _0x2e92b2=[];for(const _0x41bcbe of _0x294c57)ke(_0x41bcbe)&&_0x2e92b2['push'](this['editor']['commands']['get'](_0x41bcbe['model']['commandName']));const _0x5125d1=_0x2970cb['buttonView'];return _0x5125d1['actionView']['unbind']('isEnabled'),_0x5125d1['arrowView']['unbind']('isEnabled'),_0x5125d1['actionView']['bind']('isEnabled')['to'](_0x2e0cf5,'isEnabled'),_0x5125d1['arrowView']['bind']('isEnabled')['toMany'](_0x2e92b2,'isEnabled',(..._0x235269)=>_0x235269['some'](_0x3da80e=>_0x3da80e)),_0x2970cb['on']('execute',_0xe0fc43=>{this['editor']['execute'](_0xe0fc43['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2970cb;}['_createMenuBarMenu'](_0x1a21d3,_0x4f07c3,_0x4d4e05){const _0x432162=new _0x451613(_0x1a21d3),_0x12ee39=this['editor']['commands']['get']('trackChanges');_0x432162['buttonView']['set']({'label':_0x4d4e05,'icon':_0x858bbc});const _0x151ba1=new _0x3c6207(_0x1a21d3);for(const _0x5a8887 of _0x4f07c3){if('separator'==_0x5a8887['type']){_0x151ba1['items']['add'](new _0x359237(_0x1a21d3));continue;}const _0x4f722e=new _0x2f6f3f(_0x1a21d3,_0x432162),_0x4311bb=new _0x42ded4(_0x1a21d3),_0x5f1c0b=_0x5a8887['model'];_0x4311bb['bind'](...Object['keys'](_0x5f1c0b))['to'](_0x5f1c0b),_0x4311bb['delegate']('execute')['to'](_0x432162),_0x4311bb['on']('execute',()=>{this['editor']['execute'](_0x5f1c0b['commandName']),this['editor']['editing']['view']['focus']();}),_0x4f722e['children']['add'](_0x4311bb),_0x151ba1['items']['add'](_0x4f722e);}return _0x432162['bind']('isEnabled')['to'](_0x12ee39,'isEnabled'),_0x432162['panelView']['children']['add'](_0x151ba1),_0x432162;}['_initializeController'](_0x2047a2){const _0x1b02e7=this['editor'],_0x24ae61=_0x1b02e7['config'],_0x5b92c0=_0x1b02e7['plugins']['get']('Annotations'),_0x3f2e80=_0x1b02e7['plugins']['get']('CommentsRepository'),_0x262c8f=_0x1b02e7['plugins']['get']('EditorAnnotations'),_0x53e415=_0x1b02e7['plugins']['get'](_0x5c361d)['me'],_0x409aaa=_0x24ae61['get']('trackChanges')['SuggestionThreadView'],_0xb03be0=_0x24ae61['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x16acb3,CommentThreadInputView:_0x5dc02e}=_0x1b02e7['plugins']['get']('CommentsUI');let _0xf6c83d,_0x516fe3,_0xa7d4c3;this['_annotationViews']['has'](_0x2047a2['id'])?(_0x516fe3=this['_annotationViews']['get'](_0x2047a2['id']),_0xf6c83d=_0x516fe3['mainView']):(_0xf6c83d=new _0x409aaa(_0x1b02e7['locale'],_0x2047a2,_0x53e415,{'disableComments':this['_disableComments'],'editorConfig':{..._0x24ae61['get']('comments.editorConfig'),'licenseKey':_0x24ae61['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x24ae61['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x24ae61['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x24ae61['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x112812(_0x24ae61['get']('locale')),'CommentView':_0x24ae61['get']('comments')['CommentView'],'CommentsListView':_0x16acb3,'CommentThreadInputView':_0x5dc02e,'SuggestionView':_0xb03be0}),_0xf6c83d['suggestionView']['acceptButton']['on']('execute',()=>{_0x1b02e7['editing']['view']['focus']();}),_0xf6c83d['suggestionView']['discardButton']['on']('execute',()=>{_0x1b02e7['editing']['view']['focus']();}),_0x516fe3=_0x5b92c0['createAnnotationView'](this['editor']['locale'],_0xf6c83d),_0x516fe3['bind']('isDirty')['to'](_0xf6c83d,'isDirty'),_0x516fe3['bind']('length')['to'](_0xf6c83d),_0x516fe3['bind']('type')['to'](_0xf6c83d,'type',_0x12829e=>'suggestion-'+_0x12829e),_0xf6c83d['on']('escape',()=>{_0xa7d4c3['fire']('escape');}),this['_annotationViews']['set'](_0x2047a2['id'],_0x516fe3));const _0x2fb66=_0x3f2e80['createCommentThreadController'](_0x2047a2['commentThread'],_0xf6c83d),_0xcd7596=new pe(_0x1b02e7,_0x2047a2,_0xf6c83d,_0x2fb66),_0xefa4da=_0x2047a2['getAllAdjacentSuggestions']()['filter'](_0x481c49=>_0x481c49['isInContent']);_0xf6c83d['descriptionParts']=_0x1b02e7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xefa4da),this['_suggestionToController']['set'](_0x2047a2,_0xcd7596),this['_viewToController']['set'](_0xf6c83d,_0xcd7596),_0xa7d4c3=_0x5b92c0['createAnnotation']({'view':_0x516fe3,'target':()=>{const _0x5809cb=[],_0x6cd3b8=_0x2047a2['getAllAdjacentSuggestions']()['filter'](_0x2742ec=>_0x2742ec['isInContent']);for(const _0xbabe8f of _0x6cd3b8)_0x5809cb['push'](..._0xbabe8f['getMarkers']());return _0x3f4177(_0x1b02e7['editing'],_0x5809cb);},'type':()=>'suggestion-'+_0xcd7596['view']['type']}),_0x3f2e80['_bindAnnotationToEditors'](_0xf6c83d,_0xa7d4c3),_0x5b92c0['add'](_0xa7d4c3),_0x262c8f['registerAnnotation'](_0xa7d4c3);}['_destroyController'](_0x2607d3){const _0x112f64=this['editor']['plugins']['get']('CommentsRepository'),_0x128236=this['editor']['plugins']['get']('Annotations'),_0x294d65=this['_suggestionToController']['get'](_0x2607d3),_0x42184b=_0x294d65['view'],_0x51a6cc=_0x128236['getByInnerView'](_0x42184b);_0x112f64['_unbindEditors'](_0x42184b),_0x51a6cc&&_0x128236['remove'](_0x51a6cc),this['_suggestionToController']['delete'](_0x2607d3),this['_viewToController']['delete'](_0x42184b),_0x294d65['destroy']();}['_updateController'](_0x3dbf3b){if(!_0x3dbf3b['isInContent']||!this['_suggestionToController']['has'](_0x3dbf3b))return;const _0x448d51=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f78c6=this['_suggestionToController']['get'](_0x3dbf3b),_0x55b347=_0x3dbf3b['getAllAdjacentSuggestions']();_0x3f78c6['view']['descriptionParts']=_0x448d51['descriptionFactory']['getDescriptions'](_0x55b347);}['destroy'](){for(const _0x5d8ead of this['_suggestionToController']['keys']())this['_destroyController'](_0x5d8ead);for(const _0x2668ef of this['_annotationViews']['values']())_0x2668ef['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x344ef3){return'model'in _0x344ef3;}class k extends _0xc831a5{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x33e41d){this['editor']['plugins']['get'](p)['adapter']=_0x33e41d;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x55dbf1){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x55dbf1);}['getSuggestions']({skipNotAttached:_0x425879=!0x1,toJSON:_0x38d805=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x425879,'toJSON':_0x38d805});}['getSuggestion'](_0x49a7e4){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x49a7e4);}}const w=['Pagination'];class T extends _0xc831a5{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3bb5a7=this['editor'];if(_0x3bb5a7['config']['define']('trackChangesData.editorCreator',_0x1e3f8e=>{const _0x2e91d7=_0x3bb5a7['model']['document']['getRootNames']()['reduce']((_0x208650,_0x542256)=>(_0x208650[_0x542256]='',_0x208650),{});return _0x3bb5a7['constructor']['create'](_0x2e91d7,_0x1e3f8e);}),'function'!=typeof _0x3bb5a7['config']['get']('trackChangesData')['editorCreator'])throw new _0xb1fe46('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x465416){return N(this['editor'],!0x0,_0x465416);}['getDataWithDiscardedSuggestions'](_0x37486c){return N(this['editor'],!0x1,_0x37486c);}}class D extends _0xc831a5{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3d08ee){function _0x5cc66f(_0x5a3fea){return _0x5a3fea['map'](_0x395785=>String['fromCharCode'](_0x395785))['join']('');}super(_0x3d08ee),this['result']='end',_0x3d08ee[_0x5cc66f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5cc66f([0x76,0x69,0x65,0x77])][_0x5cc66f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5cc66f([0x61,0x75,0x74,0x6f]),_0x3d08ee[_0x5cc66f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5cc66f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5cc66f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5cc66f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5cc66f([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x5175be){return void 0x0!==_0x5175be['getRootsAttributes'];}async function N(_0x3e4191,_0x3cfcf0,_0x157a2c){const _0x11620c=_0x3781e3(_0x3e4191,w);_0x11620c['plugins']['push'](p,D),_0x11620c['rootsAttributes']=Fe(_0x3e4191)?_0x3e4191['getRootsAttributes']():void 0x0;const _0x417e14=document['createDocumentFragment'](),_0x361093=_0x3e4191['config']['get']('trackChangesData')['editorCreator'],_0x73e6f6=await _0x361093(_0x11620c,()=>function(_0x23d399){const _0x2b3457=document['createElement']('div');return _0x23d399['appendChild'](_0x2b3457),_0x2b3457;}(_0x417e14));!function(_0x435d01,_0x4547f4){const _0x3908b9=_0x435d01['model']['document']['getRootNames']()['reduce']((_0x4ae7e3,_0x16bc7f)=>(_0x4ae7e3[_0x16bc7f]=_0x435d01['data']['get']({'rootName':_0x16bc7f}),_0x4ae7e3),{}),_0x27a077=_0x435d01['plugins']['get']('Users')['users']['map'](_0x39d031=>({'id':_0x39d031['id'],'name':_0x39d031['name']})),_0x56119c=_0x435d01['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x510c71=_0x435d01['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2aaea7=_0x4547f4['plugins']['get']('Users'),_0x3094eb=_0x4547f4['plugins']['get']('TrackChangesEditing'),_0x48e824=_0x4547f4['plugins']['get']('CommentsRepository');for(const _0x5c2652 of _0x48e824['getCommentThreads']())_0x5c2652['remove']();for(const _0x59dbb8 of _0x27a077)_0x2aaea7['getUser'](_0x59dbb8['id'])||_0x2aaea7['addUser'](_0x59dbb8);_0x2aaea7['me']||_0x2aaea7['useAnonymousUser']();for(const _0x377ca5 of _0x510c71)_0x48e824['addCommentThread'](_0x377ca5);for(const _0x55bef1 of _0x56119c)_0x3094eb['addSuggestionData'](_0x55bef1);_0x4547f4['data']['set'](_0x3908b9);}(_0x3e4191,_0x73e6f6),_0x73e6f6['execute'](_0x3cfcf0?'acceptAllSuggestions':'discardAllSuggestions');const _0x252c0e=Fe(_0x73e6f6)?_0x73e6f6['getFullData'](_0x157a2c):_0x73e6f6['data']['get'](_0x157a2c);return await _0x73e6f6['destroy'](),_0x252c0e;}class Me extends _0x11d546{['options'];constructor(_0x242e34,_0x15cc2b){super(_0x242e34),this['options']=_0x15cc2b,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x4917e8,_0x40101f){if(!this['element'])return;const _0x196ddd=[];for(const [_0x5e9e9c,_0x2398ec]of _0x4917e8){const _0xc3b820=document['createElement']('div');_0xc3b820['setAttribute']('data-ck-root-name',_0x5e9e9c),_0xc3b820['className']=_0x2398ec['classes']+'\x20ck-track-changes-preview__root-container',_0xc3b820['innerHTML']=_0x2398ec['content'],_0x196ddd['push'](_0xc3b820);}_0x40101f(this['element'],_0x196ddd),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x3ca02c{constructor(_0x4da34f){super(_0x4da34f),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x334c69=this['editor'],_0x44255b=_0x334c69['locale'],_0x12d330=_0x334c69['plugins']['get']('Dialog');let _0x18d6ff;const _0x515bda=function(_0x109e1b){const _0x4d2c7d={};if('editables'in _0x109e1b['ui']['view']){for(const [_0x116048,_0x1f8b18]of Object['entries'](_0x109e1b['ui']['view']['editables']))_0x4d2c7d[_0x116048]=_0x1f8b18['element'];}else _0x4d2c7d[_0x109e1b['model']['document']['getRootNames']()[0x0]]=_0x109e1b['ui']['view']['editable']['element'];return _0x4d2c7d;}(_0x334c69),_0x466952=function(_0x1d5b8d){let _0x54de35=0x0;for(const _0x544675 of Object['values'](_0x1d5b8d))_0x54de35=Math['max'](_0x54de35,_0x544675['getBoundingClientRect']()['width']);let _0x10e7b2=0x0;for(const _0x169ec3 of Object['values'](_0x1d5b8d))_0x10e7b2+=_0x169ec3['getBoundingClientRect']()['height'];const _0xf4e8a=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x21a298=Math['min'](_0x10e7b2,_0xf4e8a);return{'width':_0x54de35,'height':_0x21a298};}(_0x515bda);_0x12d330['show']({'id':'finalContentPreview','title':c(_0x44255b,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x44255b,{'dialogRects':_0x466952}),'onHide':()=>{_0x18d6ff['detachFromDom']();},'onShow':()=>{_0x334c69['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x551b1b=>{const _0x5a3e3d=this['_standarizeRootsData'](_0x551b1b,_0x334c69,_0x515bda);_0x12d330['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x5a3e3d,_0x334c69['config']['get']('trackChanges.preview.renderFunction'));}),_0x18d6ff=new _0x425b0e(_0x44255b,[_0x12d330['view']]),_0x18d6ff['attachToDom'](),_0x18d6ff['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x334c69['once']('destroy',()=>{_0x18d6ff['detachFromDom']();});const _0x4d0fe3=_0x12d330['view']['headerView']['class'];_0x12d330['view']['headerView']['class']=_0x4d0fe3?_0x4d0fe3+'\x20ck-reset_all':'ck-reset_all',_0x12d330['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x12d330['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x58f77d=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4d3f36=_0x58f77d['previewMode'],_0x3f11ae={};if('$labels'===_0x4d3f36){for(const _0x4568eb of _0x58f77d['getMergeFieldsIds']())_0x3f11ae[_0x4568eb]=_0x58f77d['getLabel'](_0x4568eb)||_0x4568eb;}else{const _0x3d58c0='$defaultValues'===_0x4d3f36?_0x58f77d['getDefaultValues']():_0x58f77d['getDataSetValues'](_0x4d3f36,!0x0);for(const _0x73b845 of Object['entries'](_0x3d58c0)){const [_0xbbaa5e,_0x52bb81]=_0x73b845;_0x3f11ae[_0xbbaa5e]=null!==_0x52bb81?_0x52bb81:_0x58f77d['getLabel'](_0xbbaa5e)||_0xbbaa5e;}}return{'mergeFieldsData':_0x3f11ae};}['_standarizeRootsData'](_0x52f2f1,_0x23e134,_0x49bde0){let _0x449744;if('string'==typeof _0x52f2f1){const _0x5c026f=_0x23e134['model']['document']['getRootNames']()[0x0];_0x449744={[_0x5c026f]:_0x52f2f1};}else _0x449744=_0x52f2f1;const _0x19ed2c=this['_fixMediaEmbeds'](_0x449744,_0x23e134),_0x1a6c55=function(_0x347575,_0x5a8977){for(const [_0x3a892e,_0x409e72]of _0x347575)_0x409e72['classes']=_0x5a8977[_0x3a892e]['classList']['value']['replace']('ck-focused','');return _0x347575;}(this['_sortRoots'](_0x23e134)['reduce']((_0x3c9a04,_0x4ba0d5)=>(_0x3c9a04['push']([_0x4ba0d5,{'content':_0x19ed2c[_0x4ba0d5],'classes':''}]),_0x3c9a04),[]),_0x49bde0);return _0x1a6c55;}['_fixMediaEmbeds'](_0x2c67ba,_0x5e4f3c){if(!_0x5e4f3c['plugins']['has']('MediaEmbedEditing'))return _0x2c67ba;const _0x516ca1=_0x5e4f3c['plugins']['get']('MediaEmbedEditing');for(const [_0x112391,_0x219789]of Object['entries'](_0x2c67ba)){const _0x425530=document['createElement']('div');_0x425530['innerHTML']=_0x219789,(_0x425530['querySelectorAll']('figure.media')['forEach'](_0x3cd696=>{const _0x4fd3db=_0x3cd696['querySelector']('oembed');if(_0x4fd3db){const _0x181b8b=_0x4fd3db['getAttribute']('url');if(_0x181b8b){const _0x14f08e=_0x516ca1['registry']['getMediaViewElement'](new _0x1d790b(_0x5e4f3c['editing']['view']['document']),_0x181b8b,{'elementName':'','renderForEditingView':!0x0}),_0x7197db=document['createElement']('div');_0x7197db['classList']['add']('ck-media__wrapper'),_0x14f08e['render'](_0x7197db,_0x5e4f3c['editing']['view']['domConverter']),_0x4fd3db['replaceWith'](_0x7197db);}}}),_0x2c67ba[_0x112391]=_0x425530['innerHTML']);}return _0x2c67ba;}['_sortRoots'](_0x28090f){if(!function(_0x5ed48f){return void 0x0!==_0x5ed48f['getRootsAttributes'];}(_0x28090f))return _0x28090f['model']['document']['getRootNames']();const _0x4d7a36=[],_0x5a27e9=new Map();for(const _0x428c7c of _0x28090f['model']['document']['getRootNames']()){const _0x2bb14a=_0x28090f['editing']['view']['getDomRoot'](_0x428c7c)['getClientRects']()['item'](0x0);_0x4d7a36['push'](_0x428c7c),_0x5a27e9['set'](_0x428c7c,_0x2bb14a);}return _0x4d7a36['sort']((_0x4e81f2,_0x1b6663)=>{const _0x4c71d3=_0x5a27e9['get'](_0x4e81f2),_0x36752e=_0x5a27e9['get'](_0x1b6663);return _0x4c71d3['y']-_0x36752e['y']||_0x4c71d3['x']-_0x36752e['x'];}),_0x4d7a36;}}class te extends _0xc831a5{static get['requires'](){return[T,_0x36fb6d];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x453904){super(_0x453904),_0x453904['commands']['add']('previewFinalContent',new re(this['editor'])),_0x453904['config']['define']('trackChanges.preview.renderFunction',(_0x55e4fd,_0x580c7a)=>{for(const _0x169415 of _0x580c7a)_0x55e4fd['appendChild'](_0x169415);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as _0x144602,Plugin as _0x44ea50,PendingActions as _0x36da89}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x22e092,ObservableMixin as _0x11026c,uid as _0x10aa54,priorities as _0x52fdb4,insertToPriorityArray as _0x5561c2,logWarning as _0x9f668c,getEnvKeystrokeText as _0x2ccdea,FocusTracker as _0x19af1e,KeystrokeHandler as _0x22ff50,Collection as _0x1ec4b7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x3e5d5b,IconCancel as _0x32e1db,IconTrackChanges as _0x2ea253}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x36c6cc,View as _0x26f60a,ViewCollection as _0x584282,FocusCycler as _0x3d21f5,ViewModel as _0x26d155,createDropdown as _0x3b26d9,SplitButtonView as _0x37f358,addListToDropdown as _0x3b10ce,MenuBarMenuView as _0x231feb,MenuBarMenuListView as _0x2460a0,ListSeparatorView as _0x3bf034,MenuBarMenuListItemView as _0x17c50b,MenuBarMenuListItemButtonView as _0x2e9ff5,BodyCollection as _0x326a91,Dialog as _0x42ea33}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4f59c2,hashObject as _0x43ce86,surroundingMarkersDetector as _0x5be2fc,FOCUS_ANNOTATION_KEYSTROKE as _0x195593,AriaDescriptionView as _0x5c0472,setupThreadKeyboardNavigation as _0x11bfa0,trimHtml as ti,UserView as _0xf41a29,LateFocusButtonView as _0x5546ce,getDateTimeFormatter as _0x2bf34b,getAllMarkersDomElementsSorted as _0x3762f2,sanitizeEditorConfig as _0x343ac8}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3ead42,LiveRange as _0x2f2fb6,LivePosition as _0x10dad2,DowncastWriter as _0x87f864}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x131d57,toWidget as _0x465da8}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x14c443,set as _0x5874b7,isEqual as _0x485c77,unset as _0x2ffad5,omit as Vt}from'es-toolkit/compat';import{Delete as _0x13aaec,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x23a939,ShiftEnter as _0x41b606}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends _0x144602{['_enabledCommands'];constructor(_0x117cf7,_0x2f7ae8){super(_0x117cf7),this['_enabledCommands']=_0x2f7ae8,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 _0x497a45 of this['editor']['commands']['commands']())_0x497a45['affectsData']&&!this['_enabledCommands']['has'](_0x497a45)&&_0x497a45['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x10089f of this['editor']['commands']['commands']())_0x10089f['affectsData']&&!this['_enabledCommands']['has'](_0x10089f)&&_0x10089f['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x144602{['_suggestions'];constructor(_0x321478,_0x2a5317){super(_0x321478),this['_suggestions']=_0x2a5317,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3b0b3e){const _0x578e4e=this['_suggestions']['get'](_0x3b0b3e);if(!_0x578e4e)throw new _0x22e092('track-changes-accept-suggestion-not-found',this);const _0x44a9c3=_0x578e4e['getRanges']();this['editor']['model']['canEditAt'](_0x44a9c3)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x578e4e);}}class R extends _0x144602{['_suggestions'];constructor(_0x4aeef4,_0x3d530d){super(_0x4aeef4),this['_suggestions']=_0x3d530d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x8feb33){const _0x463f83=this['_suggestions']['get'](_0x8feb33);if(!_0x463f83)throw new _0x22e092('track-changes-discard-suggestion-not-found',this);const _0x39ed93=_0x463f83['getRanges']();this['editor']['model']['canEditAt'](_0x39ed93)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x463f83);}}function ls(_0x49a90c,_0x549580){let _0x147bc4='';return _0x147bc4+=_0x49a90c['split']('*')['map']((_0x23de20,_0x2696a4)=>_0x2696a4%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x23de20)+'</span>':nn(_0x23de20))['join'](''),_0x549580&&(_0x147bc4+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x549580['value']+'\x22\x20title=\x22'+_0x549580['title']+'\x22></span>'),_0x147bc4;}function nn(_0x88abe6){const _0x371a00=document['createElement']('span');return _0x371a00['innerText']=_0x88abe6,_0x371a00['innerHTML'];}function ts(_0x5a500f){return _0x5a500f['sort']((_0x27a175,_0x38bb62)=>'deletion'==_0x27a175['type']&&'deletion'!=_0x38bb62['type']?-0x1:'deletion'!=_0x27a175['type']&&'deletion'==_0x38bb62['type']?0x1:0x0);}function Zt(_0xba061e,_0x2c0633){let _0x413655,_0x424cc6=0x0;const _0x4d195d=[],_0x351bbc=_0x2c0633['schema'];for(;_0x424cc6<_0xba061e['length'];){const _0x133b34=_0xba061e[_0x424cc6],_0x2d78dd=_0xba061e[_0x424cc6+0x1];_0x413655||(_0x413655=_0x2c0633['createPositionBefore'](_0x133b34)),on(_0x2c0633,_0x133b34,_0x2d78dd)||(_0x4d195d['push'](_0x2c0633['createRange'](_0x413655,_0x351bbc['isObject'](_0x133b34)?_0x2c0633['createPositionAfter'](_0x133b34):_0x2c0633['createPositionAt'](_0x133b34,'end'))),_0x413655=null),_0x424cc6++;}return _0x4d195d;}function on(_0x42092d,_0xd8940f,_0x2aeba4){if(!_0x2aeba4)return!0x1;const _0x2dbd19=_0x42092d['createPositionAfter'](_0xd8940f),_0x24bf6b=_0x42092d['createPositionBefore'](_0x2aeba4);return _0x2dbd19['isTouching'](_0x24bf6b);}function rs(_0x2b2e87,_0x5a51a8,_0x174dc4){for(;_0x174dc4['length'];){const _0x365702=_0x174dc4['splice'](0x0,0x64);_0x2b2e87['change'](()=>{for(const _0x4d28a0 of _0x365702)_0x4d28a0['isInContent']&&_0x5a51a8['execute'](_0x4d28a0['id']);});}}class x extends _0x144602{['_command'];['_suggestions'];constructor(_0x5d1a50,_0x44fb95,_0x42d0d5){super(_0x5d1a50),this['_command']=_0x44fb95,this['_suggestions']=_0x42d0d5,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5b82bf=Array['from'](this['_suggestions']['values']())['some'](_0x288994=>_0x288994['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5b82bf;}['execute'](){const _0x1ad3de=ts(Array['from'](this['_suggestions']['values']()));for(const _0x200a4f of _0x1ad3de){const _0x2c89a7=_0x200a4f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2c89a7))return;}rs(this['editor']['model'],this['_command'],_0x1ad3de);}}class E extends _0x144602{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x838a12,_0x50b7ba,_0xf58320){super(_0x838a12),this['_command']=_0x50b7ba,this['_suggestions']=_0xf58320,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x285165=this['editor']['model']['document']['selection'],_0xb384ba=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1530f3,_0x4b3a50){const _0x1ce551=Array['from'](_0x1530f3['getRanges']()),_0x1e06bd=new Set();for(const _0x308761 of _0x4b3a50)if(_0x308761['isInContent']){for(const _0x56b9c9 of _0x1ce551)for(const _0x1228c7 of _0x308761['getRanges']())(_0x56b9c9['isIntersecting'](_0x1228c7)||_0x1530f3['isCollapsed']&&!_0x308761['isMultiRange']&&_0x308761['next']&&_0x1228c7['end']['isTouching'](_0x56b9c9['start']))&&_0x1e06bd['add'](_0x308761);}return _0x1e06bd;}(_0x285165,_0xb384ba),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x44f7f2=ts(Array['from'](this['_selectedSuggestions']));for(const _0x271498 of _0x44f7f2){const _0x2da3b6=_0x271498['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2da3b6))return;}rs(this['editor']['model'],this['_command'],_0x44f7f2);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x11026c(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3d5615,_0x12afb5){super(),this['id']=_0x12afb5['id'],this['type']=_0x12afb5['type'],this['subType']=_0x12afb5['subType']||null,this['author']=_0x12afb5['author'],this['creator']=_0x12afb5['creator']||_0x12afb5['author'],this['isExternal']=Boolean(_0x12afb5['attributes']&&_0x12afb5['attributes']['@external']),this['data']=null,this['_model']=_0x3d5615,this['_onAccept']=_0x12afb5['onAccept'],this['_onDiscard']=_0x12afb5['onDiscard'],this['_onAttributesChange']=_0x12afb5['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x12afb5['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 _0x2c4c27=this;for(;_0x2c4c27['previous'];)_0x2c4c27=_0x2c4c27['previous'];return _0x2c4c27;}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'](_0x36b2f7){this['_markerNames']['add'](_0x36b2f7);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x43ed9b=>this['_model']['markers']['get'](_0x43ed9b))['filter'](_0x1b13b1=>_0x1b13b1);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x329265=>{for(const _0x3349e6 of this['getMarkers']())_0x329265['removeMarker'](_0x3349e6);}),this['_markerNames']['clear']();}['removeMarker'](_0xcb9fea){this['_model']['change'](_0xe3e7e3=>{_0xe3e7e3['removeMarker'](_0xcb9fea);}),this['_markerNames']['delete'](_0xcb9fea);}['addRange'](_0x1b9818){const _0x3ddb55='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x3ddb55),this['_model']['change'](_0x15edb1=>{_0x15edb1['addMarker'](_0x3ddb55,{'range':_0x1b9818,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x158d55){for(const _0xf5f15 of this['getRanges']())if(_0xf5f15['isIntersecting'](_0x158d55))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2747f5=>_0x2747f5['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3faae0,_0x497dca)=>[..._0x3faae0,..._0x497dca['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x33bb3e=this['getRanges']();if(0x1!=_0x33bb3e['length'])return null;const _0x36f8c8=_0x33bb3e[0x0],_0x21a529=_0x36f8c8['start']['nodeAfter'],_0x1edfa7=_0x36f8c8['end']['nodeBefore'];return _0x21a529 instanceof _0x3ead42?_0x21a529!=_0x1edfa7?null:_0x21a529: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 _0x1db3ef=[];let _0x3f4489=this['head'];for(;_0x3f4489;)_0x1db3ef['push'](_0x3f4489),_0x3f4489=_0x3f4489['next'];return _0x1db3ef;}['setAttribute'](_0x477b59,_0x1e0b1f){const _0x895cfa=_0x14c443(this['attributes']);_0x5874b7(_0x895cfa,_0x477b59,_0x1e0b1f),_0x485c77(_0x895cfa,this['attributes'])||(this['attributes']=_0x895cfa,this['_onAttributesChange'](_0x895cfa));}['removeAttribute'](_0x2e7c8a){const _0x27c453=_0x14c443(this['attributes']);_0x2ffad5(_0x27c453,_0x2e7c8a),_0x485c77(_0x27c453,this['attributes'])||(this['attributes']=_0x27c453,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 _0x10aa54()['substr'](0x1,0x5);}}function c(_0x1a4d88,_0x46c107,_0x136a08){const _0x2c46b6=_0x1a4d88['t'],t=_0x1a4d88['t'];switch(_0x46c107){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x136a08);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x136a08);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x136a08);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x136a08);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x136a08);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',_0x136a08);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x136a08);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x136a08);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x136a08);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x136a08);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x136a08);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x136a08);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x136a08);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x136a08);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x136a08);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x136a08);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x136a08);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x136a08);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x136a08);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x136a08);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x136a08);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x136a08);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x136a08);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x136a08);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'},_0x136a08);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x136a08);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x136a08);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x136a08);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x136a08);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x136a08);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'},_0x136a08);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x136a08);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x136a08);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x136a08);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x136a08);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'},_0x136a08);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x136a08);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'},_0x136a08);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'},_0x136a08);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x136a08);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'},_0x136a08);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x136a08);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'},_0x136a08);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x136a08);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x136a08);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'},_0x136a08);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x136a08);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 _0x2c46b6({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x136a08);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2c46b6({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x136a08);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x136a08);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'},_0x136a08);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'},_0x136a08);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'},_0x136a08);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x46c107;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2486b0,_0x4eace4){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2486b0,this['_locale']=_0x4eace4;}['getDescriptions'](_0x1abf96){const _0x43667b=[],_0x592484=new Set(),_0x1411f6=new Set();for(let _0x34b426=0x0;_0x34b426<_0x1abf96['length'];_0x34b426++){const _0x598127=_0x1abf96[_0x34b426];if(!_0x598127['isInContent'])continue;const _0x261131=this['_handleCustomCallbackDescription'](_0x598127);if(_0x261131){if(null!=_0x598127['subType']){if(_0x592484['has'](_0x598127['subType']))continue;_0x592484['add'](_0x598127['subType']);}_0x43667b['push'](_0x261131);}else{if('attribute'!=_0x598127['type'])'insertion'!=_0x598127['type']&&'deletion'!=_0x598127['type']||this['_handleInsertRemoveSuggestionDescription'](_0x43667b,_0x598127,_0x1abf96[_0x34b426+0x1]);else{const _0x2e78cd=_0x598127['data']['key'];if(_0x1411f6['has'](_0x2e78cd))continue;_0x1411f6['add'](_0x598127['data']['key']),_0x2e78cd==u?this['_handleRenameSuggestionDescription'](_0x43667b,_0x598127):this['_handleAttributeSuggestionDescription'](_0x43667b,_0x598127);}}}return this['_resolveDescriptionItems'](_0x43667b);}['registerDescriptionCallback'](_0x2de359){this['_customCallbacks']['push'](_0x2de359);}['registerElementLabel'](_0x28830a,_0x367a3c,_0x4efa61=_0x52fdb4['normal']){'function'==typeof _0x28830a?_0x5561c2(this['_itemLabelsCallbacks'],{'matchingCallback':_0x28830a,'label':_0x367a3c,'priority':_0x4efa61}):this['_itemLabels']['set'](_0x28830a,_0x367a3c);}['registerAttributeLabel'](_0x5448ec,_0x1c1317){this['_attributeLabels']['set'](_0x5448ec,_0x1c1317);}['getItemLabel'](_0x2aa1ee,_0x510853=0x1){let _0x72fbbb;for(const _0x419ed0 of this['_itemLabelsCallbacks'])if(_0x419ed0['matchingCallback'](_0x2aa1ee)){_0x72fbbb=_0x419ed0['label'];break;}return _0x72fbbb||(_0x72fbbb=this['_itemLabels']['get'](_0x2aa1ee['name'])),_0x72fbbb?_0x72fbbb(_0x510853):0x1!==_0x510853?_0x510853+'\x20'+_0x2aa1ee['name']+'s':''+_0x2aa1ee['name'];}['_addDescriptionItems'](_0x417a69,_0x2f803c){const _0x32d077=_0x2f803c['getFirstRange']()['getWalker'](),_0x3aa232='insertion'==_0x2f803c['type']?'add':'remove';for(const _0x371dff of _0x32d077){const _0x3ecd98=_0x371dff['item'],_0x2f2372=_0x417a69[_0x417a69['length']-0x1];if(_0x3ecd98['is']('$textProxy'))_0x2f2372&&_0x2f2372['type']['indexOf']('Container')>-0x1&&_0x417a69['pop'](),_0x2f2372&&'text'==_0x2f2372['type']?_0x2f2372[_0x3aa232]+=_0x3ecd98['data']:_0x417a69['push']({'type':'text','add':'add'==_0x3aa232?_0x3ecd98['data']:'','remove':'remove'==_0x3aa232?_0x3ecd98['data']:''});else{if(this['_schema']['isObject'](_0x3ecd98)){const _0x4ed769=_0x3ecd98;if(_0x2f2372&&_0x2f2372['type']['indexOf']('Container')>-0x1&&_0x417a69['pop'](),'elementEnd'==_0x371dff['type'])continue;_0x2f2372&&_0x2f2372['type']==_0x3aa232+'Object'&&_0x2f2372['element']['name']==_0x4ed769['name']?_0x2f2372['quantity']++:_0x417a69['push']({'type':_0x3aa232+'Object','element':_0x4ed769,'quantity':0x1}),_0x32d077['skip'](_0x4bf495=>!('elementEnd'==_0x4bf495['type']&&_0x4bf495['item']==_0x3ecd98));}else{if(this['_schema']['checkChild'](_0x3ecd98,'$text')||_0x3ecd98['is']('element','softBreak')){const _0x520f47=_0x3ecd98;if('add'==_0x3aa232&&'elementStart'==_0x371dff['type']||'remove'==_0x3aa232&&'elementEnd'==_0x371dff['type'])continue;if(_0x2f2372&&-0x1==_0x2f2372['type']['indexOf']('Container')){'text'==_0x2f2372['type']&&(_0x2f2372[_0x3aa232]+='\x0a');continue;}let _0x33b38d;if(_0x33b38d='add'==_0x3aa232?_0x520f47['nextSibling']&&!this['_schema']['isObject'](_0x520f47['nextSibling'])?_0x520f47['nextSibling']:null:_0x520f47['previousSibling']&&!this['_schema']['isObject'](_0x520f47['previousSibling'])?_0x520f47['previousSibling']:null,_0x520f47['isEmpty']||_0x33b38d&&_0x33b38d['isEmpty']){const _0x538d16=_0x33b38d&&_0x33b38d['isEmpty']?_0x33b38d:_0x520f47;_0x2f2372&&_0x2f2372['type']==_0x3aa232+'EmptyContainer'&&_0x2f2372['element']['name']==_0x538d16['name']?_0x2f2372['quantity']++:_0x417a69['push']({'type':_0x3aa232+'EmptyContainer','element':_0x538d16,'quantity':0x1});}else _0x417a69['push']({'type':_0x3aa232+'Container','element':_0x520f47});}}}}}['_resolveDescriptionItems'](_0x9b0790){const _0x2e5795=this['_locale'],_0xa00ac1=[],_0x358dba=[],_0x56d0e2=[];for(const _0x11016e of _0x9b0790)switch(_0x11016e['type']){case'text':if(_0x11016e['add']=_0x11016e['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x11016e['remove']=_0x11016e['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x11016e['add']&&''!=_0x11016e['remove']){_0xa00ac1['push']({'type':'replace','content':c(_0x2e5795,'REPLACE_TEXT',['\x22'+_0x11016e['remove']+'\x22','\x22'+_0x11016e['add']+'\x22'])});continue;}if(null!=_0x11016e['add']['match'](/^ +$/)){_0xa00ac1['push']({'type':'insertion','content':c(_0x2e5795,'*Insert:*\x20%0',c(_0x2e5795,'ELEMENT_SPACE',_0x11016e['add']['length']))});continue;}if(null!=_0x11016e['remove']['match'](/^ +$/)){_0xa00ac1['push']({'type':'deletion','content':c(_0x2e5795,'*Remove:*\x20%0',c(_0x2e5795,'ELEMENT_SPACE',_0x11016e['remove']['length']))});continue;}if(''!=_0x11016e['add']){_0xa00ac1['push']({'type':'insertion','content':c(_0x2e5795,'*Insert:*\x20%0','\x22'+_0x11016e['add']+'\x22')});continue;}_0xa00ac1['push']({'type':'deletion','content':c(_0x2e5795,'*Remove:*\x20%0','\x22'+_0x11016e['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xa00ac1['push']({'type':'insertion','content':c(_0x2e5795,'*Insert:*\x20%0',this['getItemLabel'](_0x11016e['element'],_0x11016e['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xa00ac1['push']({'type':'deletion','content':c(_0x2e5795,'*Remove:*\x20%0',this['getItemLabel'](_0x11016e['element'],_0x11016e['quantity']))});continue;case'addContainer':_0xa00ac1['push']({'type':'insertion','content':c(_0x2e5795,'*Split:*\x20%0',this['getItemLabel'](_0x11016e['element'],_0x11016e['quantity']))});continue;case'removeContainer':_0xa00ac1['push']({'type':'deletion','content':c(_0x2e5795,'*Merge:*\x20%0',this['getItemLabel'](_0x11016e['element'],_0x11016e['quantity']))});continue;case'addFormat':_0x358dba['push'](_0x11016e['key']);continue;case'removeFormat':_0x56d0e2['push'](_0x11016e['key']);continue;default:_0xa00ac1['push'](_0x11016e);}if(_0x358dba['length']){const _0x4f9753=_0x358dba['map'](_0x5a4ae4=>this['_attributeLabels']['has'](_0x5a4ae4)?this['_attributeLabels']['get'](_0x5a4ae4):_0x5a4ae4)['join'](',\x20');_0xa00ac1['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x4f9753)});}if(_0x56d0e2['length']){const _0x59b321=_0x56d0e2['map'](_0x4ab29b=>this['_attributeLabels']['has'](_0x4ab29b)?this['_attributeLabels']['get'](_0x4ab29b):_0x4ab29b)['join'](',\x20');_0xa00ac1['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x59b321)});}return _0xa00ac1;}['_handleCustomCallbackDescription'](_0x412fc0){for(const _0x558262 of this['_customCallbacks']){const _0x63b542=_0x558262(_0x412fc0);if(_0x63b542&&'type'in _0x63b542)return _0x63b542;}}['_handleAttributeSuggestionDescription'](_0x14503b,_0x4c5d7e){const _0x33b462=_0x4c5d7e['data'],_0x332ec0=void 0x0===_0x33b462['newValue']?'removeFormat':'addFormat';_0x14503b['push']({'type':_0x332ec0,'key':_0x33b462['key']});}['_handleRenameSuggestionDescription'](_0x560471,_0x1582d0){_0x560471['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1582d0['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x10b6af,_0x31ddde,_0x13fbc7){if(this['_addDescriptionItems'](_0x10b6af,_0x31ddde),_0x13fbc7&&_0x13fbc7['getFirstRange']()&&!_0x31ddde['getFirstRange']()['end']['isEqual'](_0x13fbc7['getFirstRange']()['start'])){const _0x1a03f1=_0x10b6af[_0x10b6af['length']-0x1],_0x16dd06='insertion'==_0x31ddde['type']?'add':'remove';_0x1a03f1&&'text'==_0x1a03f1['type']&&(_0x1a03f1[_0x16dd06]+='\x0a');}}}class U extends _0x44ea50{['afterInit'](){const _0x3b1663=this['editor'],_0x25b283=_0x3b1663['plugins']['get']('TrackChangesEditing');_0x3b1663['commands']['get']('showAIAssistant')&&_0x25b283['enableCommand']('showAIAssistant');}}class V extends _0x44ea50{['afterInit'](){const _0x4b9359=this['editor'],_0x3e1438=_0x4b9359['locale'];if(!_0x4b9359['plugins']['has']('AlignmentEditing'))return;const _0x4728ec=_0x4b9359['plugins']['get']('TrackChangesEditing');_0x4728ec['enableDefaultAttributesIntegration']('alignment'),_0x4728ec['registerBlockAttribute']('alignment'),_0x4728ec['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x3e1438,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x33bd0f=this['editor'],_0x204280=_0x33bd0f['locale'];_0x33bd0f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55898c=>{if('formatBlock'!=_0x55898c['type'])return;const {data:_0x5097af}=_0x55898c;if(_0x5097af&&'alignment'==_0x5097af['commandName']){const _0x5572be=_0x5097af['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x204280,'*Format:*\x20%0',function(_0x243d4d){switch(_0x243d4d){case'left':return c(_0x204280,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x204280,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x204280,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x204280,'FORMAT_JUSTIFY_TEXT');}}(_0x5572be))};}});}}const Yt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x44ea50{['afterInit'](){const _0x475d92=this['editor'],_0x3a6d65=_0x475d92['plugins']['get']('TrackChangesEditing'),_0x5b87e5=_0x475d92['locale'];for(const _0x2808b2 of Yt){if(!_0x475d92['plugins']['has'](_0x2808b2))continue;const _0xb41eb7=_0x2808b2['slice'](0x0,-0x7)['toLowerCase'](),_0x541d67='FORMAT_'+_0xb41eb7['toUpperCase']();_0x3a6d65['enableDefaultAttributesIntegration'](_0xb41eb7),_0x3a6d65['registerInlineAttribute'](_0xb41eb7),_0x3a6d65['descriptionFactory']['registerAttributeLabel'](_0xb41eb7,c(_0x5b87e5,_0x541d67));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51b8b8=this['editor'],_0x5cc0d8=_0x51b8b8['locale'],_0x4b3eb9=_0x51b8b8['plugins']['get']('TrackChangesEditing');function _0x3f8915(_0x430cdf,_0x33f465){_0x4b3eb9['descriptionFactory']['registerDescriptionCallback'](_0x160fb8=>{if('formatInline'!=_0x160fb8['type'])return;const {data:_0x514d0b}=_0x160fb8;return _0x514d0b&&_0x514d0b['commandName']===_0x430cdf?_0x514d0b['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5cc0d8,'*Format:*\x20%0',_0x33f465)}:{'type':'format','content':c(_0x5cc0d8,'*Remove\x20format:*\x20%0',_0x33f465)}:void 0x0;});}_0x3f8915('bold',c(_0x5cc0d8,'FORMAT_BOLD')),_0x3f8915('italic',c(_0x5cc0d8,'FORMAT_ITALIC')),_0x3f8915('underline',c(_0x5cc0d8,'FORMAT_UNDERLINE')),_0x3f8915('code',c(_0x5cc0d8,'FORMAT_CODE')),_0x3f8915('strikethrough',c(_0x5cc0d8,'FORMAT_STRIKETHROUGH')),_0x3f8915('subscript',c(_0x5cc0d8,'FORMAT_SUBSCRIPT')),_0x3f8915('superscript',c(_0x5cc0d8,'FORMAT_SUPERSCRIPT'));}}class G extends _0x44ea50{['afterInit'](){const _0x50cc08=this['editor'],_0x33ed89=_0x50cc08['locale'];if(!_0x50cc08['plugins']['has']('BlockQuoteEditing'))return;const _0xd42bfc=_0x50cc08['plugins']['get']('TrackChangesEditing'),_0x4a8088=this['editor']['commands']['get']('blockQuote');_0xd42bfc['enableCommand']('blockQuote',(_0x48a411,_0x450c9c={})=>{const _0x285c10=this['editor']['model']['document']['selection'],_0x346f37=_0x450c9c&&void 0x0!==_0x450c9c['forceValue']?_0x450c9c['forceValue']:!_0x4a8088['value'];let _0x38e953=[];if(_0x346f37){const _0x578bb7=Array['from'](_0x285c10['getSelectedBlocks']())['filter'](_0x854ecc=>to(_0x854ecc)||function(_0x5e77dc,_0x20ed1e){const _0x5043c4=_0x20ed1e['checkChild'](_0x5e77dc['parent'],'blockQuote'),_0x3b3245=_0x20ed1e['checkChild'](['$root','blockQuote'],_0x5e77dc);return _0x5043c4&&_0x3b3245;}(_0x854ecc,this['editor']['model']['schema']));_0x38e953=Zt(_0x578bb7,_0x50cc08['model']);}else{const _0xcfb619=Array['from'](_0x285c10['getSelectedBlocks']())['filter'](_0x336f1b=>to(_0x336f1b));_0x38e953=Zt(_0xcfb619,_0x50cc08['model']);}_0x50cc08['model']['change'](()=>{for(const _0x3106f5 of _0x38e953)_0xd42bfc['markBlockFormat'](_0x3106f5,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x346f37}]});});}),_0xd42bfc['descriptionFactory']['registerDescriptionCallback'](_0x3b0c36=>{const {data:_0x394943}=_0x3b0c36;if(_0x394943&&'blockQuote'==_0x394943['commandName']){const _0x17d9ba=c(_0x33ed89,'ELEMENT_BLOCK_QUOTE');return _0x394943['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x33ed89,'*Set\x20format:*\x20%0',_0x17d9ba)}:{'type':'format','content':c(_0x33ed89,'*Remove\x20format:*\x20%0',_0x17d9ba)};}});}}function to(_0x3f9171){return'blockQuote'==_0x3f9171['parent']['name'];}class L extends _0x44ea50{['afterInit'](){const _0x23fc86=this['editor'],_0x59ccf0=_0x23fc86['locale'],_0x1533ec=_0x23fc86['plugins']['get']('TrackChangesEditing');_0x23fc86['plugins']['has']('BookmarkEditing')&&(_0x1533ec['enableCommand']('insertBookmark'),_0x1533ec['enableDefaultAttributesIntegration']('updateBookmark'),_0x1533ec['registerBlockAttribute']('bookmarkId'),_0x1533ec['descriptionFactory']['registerDescriptionCallback'](_0x49e977=>{if('insertion'!=_0x49e977['type']&&'deletion'!=_0x49e977['type']&&'attribute'!=_0x49e977['type'])return;const _0x306dba=_0x49e977['getContainedElement']();if(null==_0x306dba)return;if(!_0x306dba['is']('element','bookmark'))return;const _0x32200f=_0x306dba['getAttribute']('bookmarkId');if('insertion'==_0x49e977['type'])return{'type':'insertion','content':c(_0x59ccf0,'*Insert:*\x20%0','\x22'+_0x32200f+'\x22\x20'+c(_0x59ccf0,'ELEMENT_BOOKMARK'))};if('deletion'==_0x49e977['type'])return{'type':'deletion','content':c(_0x59ccf0,'*Remove:*\x20%0','\x22'+_0x32200f+'\x22\x20'+c(_0x59ccf0,'ELEMENT_BOOKMARK'))};const {data:_0x5c3302}=_0x49e977;if(!_0x5c3302||'bookmarkId'!=_0x5c3302['key'])return;return{'type':'format','content':c(_0x59ccf0,'*Set\x20bookmark:*\x20%0','\x22'+_0x5c3302['newValue']+'\x22')};}));}}class J extends _0x44ea50{['afterInit'](){const _0x1b44f9=this['editor'];_0x1b44f9['plugins']['has']('CaseChange')&&(_0x1b44f9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1b44f9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1b44f9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x44ea50{['afterInit'](){const _0x215754=this['editor'];_0x215754['commands']['get']('ckbox')&&_0x215754['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x44ea50{['afterInit'](){const _0x200da0=this['editor'];if(!_0x200da0['plugins']['has']('CodeBlock'))return;const _0x4457e6=_0x200da0['plugins']['get']('TrackChangesEditing'),_0x38999b=_0x200da0['locale'],_0x4f080c=_0x200da0['config']['get']('codeBlock')['languages'],_0x4bce41=_0x200da0['commands']['get']('codeBlock');_0x4457e6['enableCommand']('indentCodeBlock'),_0x4457e6['enableCommand']('outdentCodeBlock'),_0x4457e6['enableCommand']('codeBlock',(_0x4e7d3c,_0x563db9={})=>{const _0x482dab=_0x200da0['model'],_0x3df10e=_0x200da0['model']['document']['selection'],_0x4c4da3=_0x563db9&&void 0x0!==_0x563db9['forceValue']?_0x563db9['forceValue']:!_0x4bce41['value'];let _0x18b03b;_0x563db9['language']||(_0x563db9['language']=_0x4f080c[0x0]['language']),_0x18b03b=_0x4c4da3?Array['from'](_0x3df10e['getSelectedBlocks']())['filter'](_0x6721d3=>oo(_0x6721d3)||function(_0x1906d6,_0xeb47b6){if(_0x1906d6['is']('rootElement')||_0xeb47b6['isLimit'](_0x1906d6))return!0x1;return _0xeb47b6['checkChild'](_0x1906d6['parent'],'codeBlock');}(_0x6721d3,_0x482dab['schema'])):Array['from'](_0x3df10e['getSelectedBlocks']())['filter'](_0x33a947=>oo(_0x33a947));const _0x374ac1=Zt(_0x18b03b,_0x482dab);_0x482dab['change'](()=>{for(const _0x339123 of _0x374ac1)_0x4457e6['markBlockFormat'](_0x339123,{'commandName':'codeBlock','commandParams':[{..._0x563db9,'forceValue':_0x4c4da3}],'formatGroupId':'blockName'});});}),(_0x4457e6['descriptionFactory']['registerElementLabel']('codeBlock',_0x4468dc=>c(_0x38999b,'ELEMENT_CODE_BLOCK',_0x4468dc)),_0x4457e6['descriptionFactory']['registerDescriptionCallback'](_0x5dda45=>{if('formatBlock'!=_0x5dda45['type'])return;const _0x4fbe01=_0x38999b['t'],{data:_0x5dc2bd}=_0x5dda45;if(!_0x5dc2bd||'codeBlock'!=_0x5dc2bd['commandName'])return;const _0x2dc2d1=_0x5dc2bd['commandParams'][0x0]['language'],_0x5286a3=_0x4fbe01(_0x4f080c['find'](_0x497e8f=>_0x497e8f['language']===_0x2dc2d1)['label'])['toLowerCase']();return _0x5dc2bd['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x38999b,'*Set\x20format:*\x20%0',c(_0x38999b,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5286a3+')')}:{'type':'format','content':c(_0x38999b,'*Remove\x20format:*\x20%0',c(_0x38999b,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x5ee35f){return'codeBlock'==_0x5ee35f['name'];}class q extends _0x44ea50{['afterInit'](){const _0x59ffb4=this['editor'];if(!_0x59ffb4['plugins']['has']('CommentsEditing'))return;_0x59ffb4['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x23b826,_0xdbe57,_0x306892){const _0x216b3f=[];for(const _0x251bf7 of _0xdbe57['getItems']())_0x251bf7['hasAttribute'](_0x23b826)&&_0x216b3f['push'](_0x306892['createRangeOn'](_0x251bf7));return _0x216b3f;}function De(_0x4cbe9f,_0x51c396,{showActiveMarker:_0x4b5528=!0x0}={}){const _0x4e0864=_0x4cbe9f['plugins']['get']('TrackChangesEditing');return(_0x5ebabf,_0x23f764,_0x4181ef)=>{if(!_0x4181ef['consumable']['test'](_0x23f764['markerRange'],_0x5ebabf['name']))return;const _0x5a48d3=_0x23f764['markerRange']['getWalker'](),_0x1cc7c5=_0x23f764['markerRange']['start'],_0x5cc254=_0x4cbe9f['model']['schema'];let _0x511247=null,_0x16289e=null,_0x48c934=!0x1,_0x5c5d5f=!0x1;for(const _0x3de737 of _0x5a48d3){const _0x38d27c=_0x3de737['item'];_0x48c934=_0x48c934||_0x5cc254['isContent'](_0x38d27c);const _0x74d019=_0x4181ef['mapper']['toViewElement'](_0x38d27c);if(_0x74d019&&_0x74d019['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3de737['type']&&(_0x5cc254['isBlock'](_0x38d27c)&&!_0x5cc254['isLimit'](_0x38d27c)&&(_0x38d27c['nextSibling']||_0x1cc7c5['isAtEnd']?_0x511247&&_0x511247['parent']==_0x38d27c||(_0x511247=_0x38d27c,_0xbbf748(_0x3de737['previousPosition']),_0x5c5d5f=!0x0):_0x16289e=_0x16289e||_0x3de737['previousPosition']));}function _0xbbf748(_0x2fd6a8){const {authorId:_0xab213f}=_0x4e0864['_splitMarkerName'](_0x23f764['markerName']),_0x5cbf7a=_0x4181ef['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x51c396,'data-author-id':_0xab213f}),_0x39fffe=_0x4181ef['mapper']['toViewPosition'](_0x2fd6a8);_0x4b5528&&_0x4e0864['activeMarkers']['includes'](_0x23f764['markerName'])&&_0x4181ef['writer']['addClass']('ck-suggestion-marker--active',_0x5cbf7a),_0x4181ef['writer']['insert'](_0x39fffe,_0x5cbf7a),_0x4181ef['mapper']['bindElementToMarker'](_0x5cbf7a,_0x23f764['markerName']);}_0x48c934||_0x5c5d5f||!_0x16289e||_0xbbf748(_0x16289e);};}class z extends _0x44ea50{static get['requires'](){return[_0x13aaec];}['init'](){const _0x4728e2=this['editor'],_0x23a523=_0x4728e2['plugins']['get']('TrackChangesEditing');_0x23a523['enableCommand']('delete');const _0x496941=_0x4728e2['commands']['get']('deleteForward');_0x23a523['enableCommand']('deleteForward',(_0x1593f4,_0x4612f4={})=>{const _0x4a8bd4=_0x4728e2['model']['createSelection'](_0x4728e2['model']['document']['selection']);_0x4a8bd4['isCollapsed']&&_0x4728e2['model']['modifySelection'](_0x4a8bd4,{'direction':'forward','unit':_0x4612f4['unit']});const _0x560c01=_0x4a8bd4['getFirstRange'](),_0x1336dc=_0x2f2fb6['fromRange'](_0x560c01);let _0x136a2a;_0x1593f4(_0x4612f4),_0x136a2a='$graveyard'==_0x1336dc['root']['rootName']?_0x4728e2['model']['createRange'](_0x560c01['start']):_0x4728e2['model']['createRange'](_0x1336dc['start'],_0x1336dc['end']),_0x1336dc['detach'](),_0x4728e2['model']['enqueueChange'](_0x496941['buffer']['batch'],_0x55ad61=>{_0x496941['buffer']['lock'](),_0x55ad61['setSelection'](_0x55ad61['createRange'](_0x136a2a['end'])),_0x496941['buffer']['unlock']();});}),_0x4728e2['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x4728e2,'merge'),{'priority':'high'}),_0x4728e2['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x406696,_0xc5c330,_0x5502c0)=>{_0x5502c0['options']['showSuggestionHighlights']&&De(_0x4728e2,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x406696,_0xc5c330,_0x5502c0);},{'priority':'high'}),_0x4728e2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2d960b,_0x34e8e5,_0x15e7ff)=>{const _0x523f69=_0x15e7ff['mapper']['markerNameToElements'](_0x34e8e5['markerName']);if(_0x523f69){for(const _0x5bb6f8 of _0x523f69)_0x5bb6f8['is']('uiElement')&&(_0x15e7ff['mapper']['unbindElementFromMarkerName'](_0x5bb6f8,_0x34e8e5['markerName']),_0x15e7ff['writer']['remove'](_0x5bb6f8));}},{'priority':'high'});}}class W extends _0x44ea50{['afterInit'](){const _0x5d2e0e=this['editor'];if(!_0x5d2e0e['plugins']['has']('ListEditing'))return;const _0x5d0e88=_0x5d2e0e['locale'],_0x3e2aa9=_0x5d2e0e['plugins']['get']('TrackChangesEditing'),_0x413454=_0x5d2e0e['plugins']['has']('TodoListEditing'),_0xf0dff8=!!_0x5d2e0e['config']['get']('list.multiBlock');function _0x1c648a(_0x17c78d){return{'type':'format','content':''+c(_0x5d0e88,'*Set\x20format:*\x20%0',_0x17c78d)};}function _0x4ea200(_0x247c99){return{'type':'format','content':''+c(_0x5d0e88,'*Remove\x20format:*\x20%0',_0x247c99)};}_0x3e2aa9['enableDefaultAttributesIntegration']('numberedList'),_0x3e2aa9['enableDefaultAttributesIntegration']('bulletedList'),_0x3e2aa9['enableDefaultAttributesIntegration']('customNumberedList'),_0x3e2aa9['enableDefaultAttributesIntegration']('customBulletedList'),_0x3e2aa9['enableDefaultAttributesIntegration']('indentList'),_0x3e2aa9['enableDefaultAttributesIntegration']('outdentList'),_0x3e2aa9['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3e2aa9['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3e2aa9['registerBlockAttribute']('listItemId'),_0x3e2aa9['registerBlockAttribute']('listType'),_0x3e2aa9['registerBlockAttribute']('listIndent'),_0xf0dff8&&(_0x3e2aa9['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3e2aa9['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x413454&&(_0x3e2aa9['enableDefaultAttributesIntegration']('todoList'),_0x3e2aa9['enableDefaultAttributesIntegration']('checkTodoList'),_0x3e2aa9['registerBlockAttribute']('todoListChecked'),_0x3e2aa9['descriptionFactory']['registerDescriptionCallback'](_0x462a19=>{const {data:_0x2f8891}=_0x462a19;if(_0x2f8891&&'todoListChecked'==_0x2f8891['key'])return{'type':'format','content':_0x2f8891['newValue']?c(_0x5d0e88,'*Check\x20item*'):c(_0x5d0e88,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x95f37f=>{if(_0x95f37f['batch']['isUndo'])return!0x1;let _0x4691b7=!0x1;const _0x28d750=_0x3e2aa9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xad8713=>'todoListChecked'===_0x3e2aa9['_getAttributeKey'](_0xad8713));for(const _0x12e4b5 of _0x28d750){'todo'!=_0x12e4b5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3e2aa9['_findSuggestions'](_0x12e4b5['getFirstRange'](),'attribute')['find'](_0x510b94=>'listType'===_0x3e2aa9['_getAttributeKey'](_0x510b94['suggestion']))||(_0x95f37f['removeMarker'](_0x12e4b5['getFirstMarker']()),_0x4691b7=!0x0));}return _0x4691b7;})),_0x3e2aa9['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x5d0e88,'FORMAT_INDENT'));const _0x4d85cf={'type':'format','content':''};_0x3e2aa9['descriptionFactory']['registerDescriptionCallback'](_0x549bd4=>{const {data:_0x52178f}=_0x549bd4;if(!_0x52178f||'listType'!=_0x52178f['key'])return;let _0x5149b1=_0x549bd4['head'];for(;_0x5149b1;){if(_0x5149b1['data']&&(('listStyle'==_0x5149b1['data']['key']||'listMarkerStyle'==_0x5149b1['data']['key'])&&(_0x5149b1['data']['newValue']&&'default'!=_0x5149b1['data']['newValue']||'default'!=_0x5149b1['data']['oldValue']&&!_0x52178f['newValue'])||!_0xf0dff8&&_0x5149b1['data']['key']==u))return _0x4d85cf;_0x5149b1=_0x5149b1['next'];}if(null==_0x52178f['newValue'])switch(_0x52178f['oldValue']){case'bulleted':return _0x4ea200(c(_0x5d0e88,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4ea200(c(_0x5d0e88,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4ea200(c(_0x5d0e88,'ELEMENT_TODO_LIST'));}switch(_0x52178f['newValue']){case'bulleted':return _0x1c648a(c(_0x5d0e88,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1c648a(c(_0x5d0e88,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1c648a(c(_0x5d0e88,'ELEMENT_TODO_LIST'));}}),_0x3e2aa9['descriptionFactory']['registerDescriptionCallback'](_0x3c3e61=>{const {data:_0xd70ffc}=_0x3c3e61;if(_0xd70ffc&&'listIndent'==_0xd70ffc['key'])return null==_0xd70ffc['newValue']||null==_0xd70ffc['oldValue']&&0x0==_0xd70ffc['newValue']?_0x4d85cf:void 0x0;}),_0x3e2aa9['descriptionFactory']['registerDescriptionCallback'](_0x1f4ab6=>{if('attribute'!=_0x1f4ab6['type'])return;const {data:_0xc629d5}=_0x1f4ab6;if(!_0xc629d5||'listItemId'!=_0xc629d5['key'])return;const _0x1720fe=Te(_0x1f4ab6);return'newValue'==_0x1720fe?{'type':'format','content':c(_0x5d0e88,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1720fe?{'type':'format','content':c(_0x5d0e88,'*Split:*\x20list\x20item')}:_0x4d85cf;}),_0x5d2e0e['model']['document']['registerPostFixer'](_0x4ded59=>this['listItemIdFixer'](_0x4ded59)),_0x5d2e0e['model']['document']['registerPostFixer'](_0x1c4608=>this['noTrackChangesFixer'](_0x1c4608)),_0x5d2e0e['model']['document']['on']('change:data',(_0x2ecdd9,_0x375229)=>{if(_0x375229['isUndo']||!_0x375229['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x32f9ff){if(_0x32f9ff['batch']['isUndo']||!_0x32f9ff['batch']['isLocal'])return!0x1;let _0x558820=!0x1;const _0x18414a=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xcfce10=>_0xcfce10['data']&&'listItemId'==_0xcfce10['data']['key'])['filter'](_0x53a63f=>_0x53a63f['data']['newValue']&&_0x53a63f['data']['oldValue']);for(const _0x30f2cf of _0x18414a)Te(_0x30f2cf)||(_0x32f9ff['removeMarker'](_0x30f2cf['getFirstMarker']()),_0x558820=!0x0);return _0x558820;}['noTrackChangesFixer'](_0x29ea31){if(_0x29ea31['batch']['isUndo']||!_0x29ea31['batch']['isLocal'])return!0x1;const _0x3f22af=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3f22af['trackChangesCommand']['value'])return!0x1;let _0xbd99fb=!0x1;const _0x37946b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x545292=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x13ef0f=>'attribute'==_0x13ef0f['type'])['filter'](_0x130a31=>_0x37946b['includes'](_0x130a31['attributeKey']));if(0x0==_0x545292['length'])return _0xbd99fb;for(const _0x15d90 of _0x545292){const _0xed4742=_0x3f22af['_findSuggestions'](_0x15d90['range'],'attribute')['filter'](_0x727dbc=>!_0x727dbc['meta']['isNextTo'])['map'](_0x5b8de0=>_0x5b8de0['suggestion'])['filter'](_0x93f547=>{const _0x5905d8=_0x3f22af['_getAttributeKey'](_0x93f547);return _0x37946b['includes'](_0x5905d8);});if(_0xed4742['length']){for(const _0x683a34 of _0xed4742)_0x29ea31['removeMarker'](_0x683a34['getFirstMarker']());_0xbd99fb=!0x0;}}return _0xbd99fb;}['assureChains'](){const _0x564b6e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x422c27=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x15870d;const _0x2d98c9=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x513298=>{if(_0x513298['data']['oldRange']||!_0x513298['data']['newRange'])return null;if(!_0x513298['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x494d05}=_0x564b6e['_splitMarkerName'](_0x513298['name']);if(!_0x564b6e['hasSuggestion'](_0x494d05))return null;const _0x207aa7=_0x564b6e['getSuggestion'](_0x494d05);return _0x422c27['includes'](_0x207aa7['data']['key']);})['map'](_0x332482=>{const {id:_0x231fdc}=_0x564b6e['_splitMarkerName'](_0x332482['name']),_0xd6ac5d=_0x564b6e['getSuggestion'](_0x231fdc);return _0x15870d=_0xd6ac5d['attributes']['groupId'],_0xd6ac5d['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2d98c9['size'])return;const _0x569cd3=_0x564b6e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5f11b9=>'attribute'==_0x5f11b9['type']&&_0x5f11b9['data']&&_0x422c27['includes'](_0x5f11b9['data']['key'])&&_0x5f11b9['attributes']['groupId']!=_0x15870d)['map'](_0x3747f0=>({'listItem':_0x3747f0['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3747f0['attributes']['groupId']})),_0x1d6f44=new Set();for(const {groupId:_0x243128,listItem:_0x40ef90}of _0x569cd3)_0x2d98c9['has'](_0x40ef90)&&_0x1d6f44['add'](_0x243128);for(const _0x48c6ac of _0x564b6e['getSuggestions']())_0x1d6f44['has'](_0x48c6ac['attributes']['groupId'])&&_0x48c6ac['setAttribute']('groupId',_0x15870d);}['_supportLegacySuggestions'](){const _0x345189=this['editor'],_0x26f5c7=_0x345189['locale'],_0x1f6c33=_0x345189['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1f6c33['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x496eff,_0x2c9290){const _0x128b6f=[];for(let _0x2c3933 of _0x496eff)_0x2c3933['start']['nodeAfter']===_0x2c3933['end']['parent']&&(_0x2c3933=_0x345189['model']['createRange'](_0x345189['model']['createPositionAt'](_0x2c3933['start']['nodeAfter'],0x0))),_0x128b6f['push'](_0x2c3933);_0x345189['model']['change'](_0x1ae3b0=>{const _0x54f5d0=_0x345189['model']['document']['selection'],_0x215d44=Array['from'](_0x54f5d0['getRanges']())['map'](_0x66d6f6=>_0x2f2fb6['fromRange'](_0x66d6f6));_0x1ae3b0['setSelection'](_0x128b6f),_0x345189['commands']['get'](_0x2c9290['commandName'])['refresh'](),_0x2c9290['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x345189['execute'](_0x2c9290['commandName'],..._0x2c9290['commandParams']),_0x1ae3b0['setSelection'](_0x215d44);for(const _0x319631 of _0x215d44)_0x319631['detach']();});}),_0x1f6c33['descriptionFactory']['registerElementLabel'](function(_0x2ce794){const _0x3e1cd1=!_0x345189['model']['schema']['isObject'](_0x2ce794),_0x252ca7=_0x2ce794['previousSibling'],_0x5f0f50=_0x2ce794['nextSibling'],_0x4ec614=_0x2ce794['getAttribute']('listItemId'),_0x5a0080=!_0x252ca7||_0x252ca7['getAttribute']('listItemId')!==_0x4ec614,_0x26e6e9=!_0x5f0f50||_0x5f0f50['getAttribute']('listItemId')!==_0x4ec614;return _0x3e1cd1&&Boolean(_0x4ec614)&&_0x5a0080&&_0x26e6e9;},_0x573f20=>c(_0x26f5c7,'ELEMENT_LIST_ITEM',_0x573f20));}['_registerLegacyDescription'](){const _0x945973=this['editor'],_0x27c261=_0x945973['locale'];function _0x5cb9c3(_0x525a9e){const _0xf3ac9=_0x945973['commands']['get']('bulletedList')['value'],_0x22cce2=_0x945973['commands']['get']('numberedList')['value'];return'numberedList'===_0x525a9e?_0xf3ac9:_0x22cce2;}_0x945973['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xd64a8b){if('formatBlock'!=_0xd64a8b['type'])return;const {data:_0x380afb}=_0xd64a8b;if(!_0x380afb)return;let _0x3daf39,_0x98658c,_0xfbf175,_0x209d1b;switch(_0x380afb['commandName']){case'bulletedList':_0xfbf175=_0x380afb['commandParams'][0x0]['forceValue'],_0x209d1b=_0x5cb9c3(_0x380afb['commandName']),_0x3daf39=_0xfbf175?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x209d1b&&_0x945973['config']['get']('list.multiBlock')||(_0x3daf39='*Change\x20to:*\x20%0'),_0x98658c={'type':'format','content':c(_0x27c261,_0x3daf39,c(_0x27c261,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xfbf175=_0x380afb['commandParams'][0x0]['forceValue'],_0x209d1b=_0x5cb9c3(_0x380afb['commandName']),_0x3daf39=_0xfbf175?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x209d1b&&_0x945973['config']['get']('list.multiBlock')||(_0x3daf39='*Change\x20to:*\x20%0'),_0x98658c={'type':'format','content':c(_0x27c261,_0x3daf39,c(_0x27c261,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3daf39='*Indent:*\x20%0',_0x98658c={'type':'format','content':c(_0x27c261,_0x3daf39,c(_0x27c261,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3daf39=function(_0x46f898){const _0x304e59=_0x46f898['getFirstRange']();let _0x50ddc6=_0x304e59['start']['nodeAfter'];for(;_0x50ddc6&&_0x304e59['containsItem'](_0x50ddc6);){if(_0x50ddc6['getAttribute']('listIndent')>0x0)return!0x1;_0x50ddc6=_0x50ddc6['nextSibling'];}return!0x0;}(_0xd64a8b)?c(_0x27c261,'*Format:*\x20remove\x20from\x20%0',c(_0x27c261,function(_0x523cc1){return'ELEMENT_'+_0x523cc1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xd64a8b))):c(_0x27c261,'*Outdent:*\x20%0',c(_0x27c261,'ELEMENT_LIST_ITEM')),_0x98658c={'type':'format','content':_0x3daf39};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x380afb['multipleBlocks']&&(_0x3daf39='*Merge:*\x20%0',_0x98658c={'type':'deletion','content':c(_0x27c261,_0x3daf39,c(_0x27c261,'ELEMENT_LIST_ITEM'))});}return _0x98658c;});}}function Te(_0x38f869){let _0x59bef5=_0x38f869['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x59bef5;){const _0x4579ae=_0x59bef5['getAttribute']('listItemId');if(!_0x4579ae)return!0x1;if(_0x4579ae==_0x38f869['data']['newValue'])return'newValue';if(_0x4579ae==_0x38f869['data']['oldValue'])return'oldValue';_0x59bef5=_0x59bef5['previousSibling'];}return!0x1;}class Se extends _0x44ea50{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x34ae87=this['editor']['config']['get']('list.properties'),_0x183de6=this['editor']['plugins']['get']('TrackChangesEditing');_0x34ae87['styles']&&(_0x183de6['enableDefaultAttributesIntegration']('listStyle'),_0x183de6['registerBlockAttribute']('listStyle')),_0x34ae87['reversed']&&(_0x183de6['enableDefaultAttributesIntegration']('listReversed'),_0x183de6['registerBlockAttribute']('listReversed')),_0x34ae87['startIndex']&&(_0x183de6['enableDefaultAttributesIntegration']('listStart'),_0x183de6['registerBlockAttribute']('listStart'));const _0x305a78={'type':'format','content':''};_0x183de6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x57bcde=this['editor']['locale'];_0x183de6['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x57bcde,'FORMAT_LIST_REVERSED')),_0x183de6['descriptionFactory']['registerDescriptionCallback'](_0x208819=>{const {data:_0x374469}=_0x208819;if(_0x374469&&'listReversed'==_0x374469['key'])return null==_0x374469['newValue']||0x0==_0x374469['newValue']&&null==_0x374469['oldValue']?_0x305a78:void 0x0;}),_0x183de6['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x57bcde,'FORMAT_LIST_START')),_0x183de6['descriptionFactory']['registerDescriptionCallback'](_0x23e26c=>{const {data:_0x4cf5da}=_0x23e26c;if(_0x4cf5da&&'listStart'==_0x4cf5da['key'])return null==_0x4cf5da['newValue']||0x1==_0x4cf5da['newValue']&&null==_0x4cf5da['oldValue']?_0x305a78:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x42f341=>{if(_0x42f341['batch']['isUndo'])return!0x1;let _0x1e3768=!0x1;const _0x56158c=_0x183de6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2e0471=>{const _0x6142c3=_0x183de6['_getAttributeKey'](_0x2e0471);return'listStart'==_0x6142c3||'listReversed'==_0x6142c3;});for(const _0x59b9e3 of _0x56158c){const _0x3f8954=_0x59b9e3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3f8954||'customNumbered'==_0x3f8954)continue;_0x183de6['_findSuggestions'](_0x59b9e3['getFirstRange'](),'attribute')['find'](_0x44cced=>'listType'==_0x183de6['_getAttributeKey'](_0x44cced['suggestion']))||(_0x42f341['removeMarker'](_0x59b9e3['getFirstMarker']()),_0x1e3768=!0x0);}return _0x1e3768;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1c973a){const _0x28be0c=this['editor']['locale'],{data:_0x53f7c4}=_0x1c973a,_0x1b33e7={'type':'format','content':''};if(!_0x53f7c4||'listStyle'!=_0x53f7c4['key'])return;if(!_0x53f7c4['oldValue'])return'default'==_0x53f7c4['newValue']?_0x1b33e7:{'type':'format','content':''+c(_0x28be0c,'*Set\x20format:*\x20%0',c(_0x28be0c,this['_getTranslationKeyForListStyle'](_0x53f7c4['newValue'])))};if(!_0x53f7c4['newValue']){if('default'==_0x53f7c4['oldValue'])return _0x1b33e7;let _0x5b7459=_0x1c973a['head'];for(;_0x5b7459;){if(_0x5b7459['data']&&'listType'==_0x5b7459['data']['key']&&_0x5b7459['data']['newValue'])return _0x1b33e7;_0x5b7459=_0x5b7459['next'];}return{'type':'format','content':''+c(_0x28be0c,'*Remove\x20format:*\x20%0',c(_0x28be0c,this['_getTranslationKeyForListStyle'](_0x53f7c4['oldValue'])))};}if('default'!=_0x53f7c4['newValue'])return{'type':'format','content':''+c(_0x28be0c,'*Set\x20format:*\x20%0',c(_0x28be0c,this['_getTranslationKeyForListStyle'](_0x53f7c4['newValue'])))};let _0x4e539c=_0x1c973a['head'];for(;_0x4e539c;){if(_0x4e539c['data']&&'listType'==_0x4e539c['data']['key']&&_0x4e539c['data']['newValue']&&_0x4e539c['data']['oldValue'])return _0x1b33e7;_0x4e539c=_0x4e539c['next'];}return{'type':'format','content':c(_0x28be0c,'*Set\x20format:*\x20%0',c(_0x28be0c,'ELEMENT_'+_0x1c973a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x39b1db=this['editor'],_0x3a0e20=_0x39b1db['locale'];_0x39b1db['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13acdc=>{if('formatBlock'!=_0x13acdc['type'])return;const {data:_0x4360ed}=_0x13acdc;if(!_0x4360ed)return;let _0x3c4f65,_0x3a4c94;switch(_0x4360ed['commandName']){case'listStyle':_0x3c4f65='*Change\x20to:*\x20%0',_0x3a4c94={'type':'format','content':c(_0x3a0e20,_0x3c4f65,c(_0x3a0e20,this['_getTranslationKeyForListStyle'](_0x4360ed['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3c4f65=_0x4360ed['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3a4c94={'type':'format','content':c(_0x3a0e20,_0x3c4f65)};break;case'listStart':_0x3c4f65='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3a4c94={'type':'format','content':c(_0x3a0e20,_0x3c4f65,_0x4360ed['commandParams'][0x0]['startIndex'])};}return _0x3a4c94;});}['_getTranslationKeyForListStyle'](_0x2d738a){return'ELEMENT_'+function(_0x54e26e){if(_e['includes'](_0x54e26e))return'bulleted';if(Re['includes'](_0x54e26e))return'numbered';return null;}(_0x2d738a)['toUpperCase']()+'_LIST_'+_0x2d738a['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x44ea50{['afterInit'](){const _0x10894d=this['editor'];_0x10894d['commands']['get']('emoji')&&_0x10894d['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x44ea50{static get['requires'](){return[_0x23a939];}['init'](){const _0x2feb6a=this['editor'],_0x348334=_0x2feb6a['plugins']['get']('TrackChangesEditing'),_0x34718b=_0x2feb6a['commands']['get']('enter');_0x348334['enableCommand']('enter',()=>{_0x2feb6a['model']['change'](_0x513f70=>{const _0x57f814=_0x2feb6a['model']['document']['selection'],_0x3df3e3=_0x57f814['getFirstPosition'](),_0x17fff9=_0x2f2fb6['fromRange'](_0x57f814['getFirstRange']());if(_0x34718b['enterBlock'](_0x513f70)){const _0x3d1fff=_0x2feb6a['model']['createPositionAt'](_0x3df3e3['parent']['nextSibling'],0x0),_0x399a84=_0x513f70['createRange'](_0x3df3e3,_0x3d1fff);_0x348334['markInsertion'](_0x399a84);}else _0x513f70['setSelection'](_0x513f70['createRange'](_0x17fff9['end']));_0x17fff9['detach'](),_0x34718b['fire']('afterExecute',{'writer':_0x513f70});});}),_0x2feb6a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x2feb6a,'split'),{'priority':'high'}),_0x2feb6a['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x35fce7,_0x75a721,_0x2a473f)=>{const _0x35f985=_0x2a473f['mapper']['markerNameToElements'](_0x75a721['markerName']);if(_0x35f985){for(const _0xd236b0 of _0x35f985)_0xd236b0['hasClass']('ck-suggestion-marker-split')&&(_0x2a473f['mapper']['unbindElementFromMarkerName'](_0xd236b0,_0x75a721['markerName']),_0x2a473f['writer']['remove'](_0xd236b0));}},{'priority':'high'}),_0x2feb6a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4e0d5a,_0x559d89,_0x5f14cd)=>{_0x5f14cd['options']['showSuggestionHighlights']&&De(_0x2feb6a,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4e0d5a,_0x559d89,_0x5f14cd);},{'priority':'high'});}}class Z extends _0x44ea50{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x48579c=this['editor']['plugins']['get']('TrackChangesEditing');_0x48579c['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x48579c['enableCommand']('findNext'),_0x48579c['enableCommand']('findPrevious'),_0x48579c['enableCommand']('replace'),_0x48579c['enableCommand']('replaceAll');}['handleFindCommand'](_0x23ecc2,_0x17a031,_0x8d7517={}){const _0x25ca20=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x23ecc2(_0x4b300b=>{let _0x350bdf=('string'==typeof _0x17a031?_0x25ca20['findByTextCallback'](_0x17a031,_0x8d7517):_0x17a031)(_0x4b300b);Array['isArray'](_0x350bdf)&&(_0x350bdf={'results':_0x350bdf,'searchText':'string'==typeof _0x17a031?_0x17a031:''});const _0x5e3d34=_0x350bdf['results']['filter'](_0x148faa=>!0x1===this['_isInDeletionRange'](_0x148faa,_0x4b300b['item']));return{..._0x350bdf,'results':_0x5e3d34};},_0x8d7517);}['_isInDeletionRange'](_0x49b9d8,_0x2859f0){const _0x5ad675=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2859f0,_0x49b9d8['start']),this['editor']['model']['createPositionAt'](_0x2859f0,_0x49b9d8['end']));for(const _0x4f7a0b of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5ad675['getIntersection'](_0x4f7a0b['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x44ea50{['afterInit'](){const _0x3a9edb=this['editor']['locale'],_0x392770=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x262d57,commandName:_0x3d9144}of eo)this['editor']['plugins']['has'](_0x262d57)&&(_0x392770['enableDefaultAttributesIntegration'](_0x3d9144),_0x392770['registerInlineAttribute'](_0x3d9144));_0x392770['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x3a9edb,'FORMAT_FONT_SIZE')),_0x392770['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x3a9edb,'FORMAT_FONT_FAMILY')),_0x392770['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x3a9edb,'FORMAT_FONT_COLOR')),_0x392770['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x3a9edb,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5136fe=this['editor'],_0x2b7b23=_0x5136fe['locale'];_0x5136fe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d062a=>{const _0xa8bc33=_0x2b7b23['t'];if('formatInline'!=_0x3d062a['type'])return;const {data:_0xd8105b}=_0x3d062a;if(null!=_0xd8105b){if('fontSize'==_0xd8105b['commandName']){const _0xf1df62=_0xd8105b['commandParams'][0x0]['value'];if(_0xf1df62){const _0x5b7552=_0xa8bc33(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x96c9ee=>_0x96c9ee['model']==_0xf1df62)['title'])['toLowerCase']();return{'type':'format','content':c(_0x2b7b23,'*Set\x20font\x20size:*\x20%0',_0x5b7552)};}return{'type':'format','content':c(_0x2b7b23,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xd8105b['commandName']){const _0x17cedf=_0xd8105b['commandParams'][0x0]['value'];return _0x17cedf?{'type':'format','content':c(_0x2b7b23,'*Set\x20font\x20family:*\x20%0',_0x17cedf)}:{'type':'format','content':c(_0x2b7b23,'*Reset\x20font\x20family*')};}if('fontColor'==_0xd8105b['commandName']){const _0x36004b=_0xd8105b['commandParams'][0x0]['value'];if(_0x36004b){const _0x33cd5f=_0x36c6cc(this['editor']['config']['get']('fontColor.colors'))['find'](_0x21a55c=>_0x21a55c['model']==_0x36004b);let _0x36db53=_0x36004b,_0x62a8ab='';return _0x33cd5f&&(_0x36db53=_0x33cd5f['label'],_0x62a8ab=_0xa8bc33(_0x36db53)['toLowerCase']()),{'type':'format','content':c(_0x2b7b23,'*Set\x20font\x20color:*\x20%0',_0x62a8ab)['trim'](),'color':{'value':_0x36004b,'title':_0x62a8ab||_0x36db53}};}return{'type':'format','content':c(_0x2b7b23,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xd8105b['commandName']){const _0x30c789=_0xd8105b['commandParams'][0x0]['value'];if(_0x30c789){const _0x3d85e7=_0x36c6cc(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2a29a9=>_0x2a29a9['model']==_0x30c789);let _0x2a20fb=_0x30c789,_0x25cd86='';return _0x3d85e7&&(_0x2a20fb=_0x3d85e7['label'],_0x25cd86=_0xa8bc33(_0x2a20fb)['toLowerCase']()),{'type':'format','content':c(_0x2b7b23,'*Set\x20font\x20background\x20color:*\x20%0',_0x25cd86)['trim'](),'color':{'value':_0x30c789,'title':_0x25cd86||_0x2a20fb}};}return{'type':'format','content':c(_0x2b7b23,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x44ea50{['afterInit'](){const _0x16060d=this['editor'],_0x4add80=_0x16060d['plugins']['get']('TrackChangesEditing'),_0x28049f=_0x16060d['commands']['get']('copyFormat'),_0x27fed1=_0x16060d['commands']['get']('pasteFormat');_0x28049f&&_0x27fed1&&(_0x4add80['enableDefaultAttributesIntegration']('pasteFormat'),_0x4add80['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x532a1d=this['editor'],_0x555548=_0x532a1d['locale'];_0x532a1d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b62cb=>{if('formatBlock'!=_0x2b62cb['type']&&'formatInline'!=_0x2b62cb['type'])return;const {data:_0x31e00f}=_0x2b62cb;if(_0x31e00f&&'pasteFormat'===_0x31e00f['commandName']){const _0x38eec3=[],_0x529a0d=_0x31e00f['commandParams'][0x0];for(const [_0x5496fc,_0x2dbc1c]of Object['entries'](_0x529a0d))_0x38eec3['push'](ro(_0x532a1d,_0x5496fc,_0x2dbc1c));return _0x38eec3['length']?{'type':'format','content':c(_0x555548,'*Set\x20format\x20to:*\x20%0',_0x38eec3['join'](',\x20'))}:{'type':'format','content':c(_0x555548,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x3ee312,_0x33b496,_0x3ef327){const _0x22a00e=_0x3ee312['locale']['t'],_0x192e8f=_0x33b496['split'](/(?=[A-Z])/)['join']('\x20'),_0x148afd=_0x22a00e(_0x192e8f['charAt'](0x0)['toUpperCase']()+_0x192e8f['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3ef327)return _0x148afd;if('fontColor'===_0x33b496||'fontBackgroundColor'===_0x33b496){const _0x45ec1b=_0x36c6cc(_0x3ee312['config']['get']('fontColor.colors'))['find'](_0x530086=>_0x530086['model']==_0x3ef327);return _0x148afd+'\x20('+(_0x45ec1b?_0x22a00e(_0x45ec1b['label'])['toLowerCase']():_0x3ef327)+')';}if('fontSize'===_0x33b496&&isNaN(parseFloat(_0x3ef327))){const _0x291265=_0x3ee312['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3ee312['config']['get']('fontSize.options'))['find'](_0x2e945d=>_0x2e945d['model']==_0x3ef327);return _0x148afd+'\x20('+(_0x291265?_0x22a00e(_0x291265['title'])['toLowerCase']():_0x3ef327)+')';}return _0x148afd+'\x20('+_0x3ef327+')';}class nt extends _0x44ea50{['_headingOptions'];['afterInit'](){const _0xb9b436=this['editor'];if(!_0xb9b436['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xb9b436['config']['get']('heading.options');const _0x3537a8=_0xb9b436['locale'],_0x4870f2=_0xb9b436['plugins']['get']('TrackChangesEditing');_0x4870f2['enableDefaultAttributesIntegration']('heading');for(const _0x282cf9 of this['_headingOptions'])'paragraph'!=_0x282cf9['model']&&_0x4870f2['descriptionFactory']['registerElementLabel'](_0x282cf9['model'],_0x162479=>{const _0x56f016=this['_getHeadingLevel'](_0x282cf9['model']);return null!==_0x56f016?_0x37667e(_0x162479,_0x56f016):_0x2af598(_0x162479,_0x282cf9['title']);});function _0x37667e(_0x5c52e1,_0x32632c){return c(_0x3537a8,'ELEMENT_HEADING',[_0x5c52e1,_0x32632c]);}function _0x2af598(_0x3df8aa,_0x1908b8){return c(_0x3537a8,'ELEMENT_HEADING_CUSTOM',[_0x3df8aa,_0x1908b8]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x371c3e=this['editor'],_0x6db331=_0x371c3e['locale'];function _0x13f32d(_0x183894,_0x3577b1){return c(_0x6db331,'ELEMENT_HEADING_CUSTOM',[_0x183894,_0x3577b1]);}_0x371c3e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5faf52=>{if('formatBlock'!=_0x5faf52['type'])return;const {data:_0x15c29d}=_0x5faf52;if(_0x15c29d&&'heading'==_0x15c29d['commandName']){const _0x57983c=_0x15c29d['commandParams'][0x0]['value'],_0x337168=this['_getHeadingLevel'](_0x57983c);if(null!==_0x337168)return{'type':'format','content':c(_0x6db331,'*Change\x20to:*\x20%0',(_0x34c427=0x1,_0x248aba=_0x337168,c(_0x6db331,'ELEMENT_HEADING',[_0x34c427,_0x248aba])))};const _0x44ed98=this['_headingOptions']['find'](_0xc5566c=>_0xc5566c['model']===_0x57983c)['title'];return{'type':'format','content':c(_0x6db331,'*Change\x20to:*\x20%0',_0x13f32d(0x1,_0x44ed98))};}var _0x34c427,_0x248aba;});}['_getHeadingLevel'](_0x37890b){const _0x1bd956=_0x37890b['match'](/^heading(\d+)/);if(_0x1bd956)return _0x1bd956[0x1];const _0x2cf588=this['_headingOptions']?.['find'](_0x2ed305=>_0x2ed305['model']==_0x37890b);if(_0x2cf588&&_0x2cf588['view']){const _0x4cfac5=_0x2cf588['view'],_0x29dd8b=(_0x4cfac5['name']??_0x4cfac5)['match'](/^h(\d+)/);if(_0x29dd8b)return _0x29dd8b[0x1];}return null;}}class it extends _0x44ea50{['afterInit'](){const _0x57e340=this['editor'];if(!_0x57e340['plugins']['has']('HighlightEditing'))return;const _0x2f2c64=_0x57e340['plugins']['get']('TrackChangesEditing'),_0x26cfc3=_0x57e340['locale'];_0x2f2c64['enableDefaultAttributesIntegration']('highlight'),_0x2f2c64['registerInlineAttribute']('highlight'),_0x2f2c64['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x26cfc3,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45af52=this['editor'],_0x5925b5=_0x45af52['locale'];_0x45af52['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x452923=>{if('formatInline'!=_0x452923['type'])return;const {data:_0x1dfa99}=_0x452923;if(_0x1dfa99&&'highlight'==_0x1dfa99['commandName']){const _0x5572f1=_0x5925b5['t'],_0x68a8a9=_0x1dfa99['commandParams'][0x0]['value'];if(_0x68a8a9){const _0x490ec2=_0x45af52['config']['get']('highlight.options')['find'](_0x33007f=>_0x33007f['model']==_0x68a8a9),_0xbfe048=_0x5572f1(_0x490ec2['title'])['toLowerCase']();return{'type':'format','content':c(_0x5925b5,'*Set\x20highlight:*\x20%0',_0xbfe048),'color':{'value':_0x490ec2['color'],'title':_0x490ec2['title']}};}return{'type':'format','content':c(_0x5925b5,'*Remove\x20highlight*',c(_0x5925b5,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x44ea50{['afterInit'](){const _0x1687ac=this['editor'];if(!_0x1687ac['plugins']['has']('HorizontalLineEditing'))return;_0x1687ac['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x162669=_0x1687ac['plugins']['get']('TrackChangesEditing'),_0x5f100d=_0x1687ac['locale'];_0x162669['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5e51f3=>c(_0x5f100d,'ELEMENT_HORIZONTAL_LINE',_0x5e51f3)),_0x1687ac['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x208c66,{writer:_0x25ebf1,options:_0x13da7d})=>{if(!_0x13da7d['showSuggestionHighlights'])return null;const _0x1ebc96=_0x25ebf1['createContainerElement']('div'),_0x38fec7=_0x25ebf1['createEmptyElement']('hr');return _0x25ebf1['addClass']('ck-horizontal-line',_0x1ebc96),_0x25ebf1['insert'](_0x25ebf1['createPositionAt'](_0x1ebc96,0x0),_0x38fec7),_0x1ebc96;},'converterPriority':'high'});}}class ot extends _0x44ea50{['afterInit'](){const _0x694184=this['editor'];if(!_0x694184['plugins']['has']('HtmlEmbed'))return;const _0x2de9bc=_0x694184['plugins']['get']('TrackChangesEditing'),_0x5b0e7d=_0x694184['locale'];_0x2de9bc['descriptionFactory']['registerElementLabel']('rawHtml',_0x5bafd6=>c(_0x5b0e7d,'ELEMENT_HTML_EMBED',_0x5bafd6)),_0x2de9bc['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2de9bc['registerBlockAttribute']('value'),_0x2de9bc['descriptionFactory']['registerDescriptionCallback'](_0x1b9402=>{if('attribute'!=_0x1b9402['type'])return;const {data:_0x565eef}=_0x1b9402;if(_0x565eef&&'value'==_0x565eef['key']&&_0x1b9402['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x33f404=c(_0x5b0e7d,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x5b0e7d,'*Change\x20%0\x20content*',_0x33f404)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3eda60=this['editor'],_0x9b7719=_0x3eda60['locale'];_0x3eda60['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17ab9d=>{if('formatBlock'!=_0x17ab9d['type'])return;const {data:_0x1aec10}=_0x17ab9d;if(_0x1aec10&&'htmlEmbed'==_0x1aec10['commandName']){const _0x37c6b1=c(_0x9b7719,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x9b7719,'*Change\x20%0\x20content*',_0x37c6b1)};}});}}class rt extends _0x44ea50{['afterInit'](){const _0x12c917=this['editor'];if(!_0x12c917['plugins']['has']('ImageEditing'))return;const _0x10cf19=_0x12c917['plugins']['get']('TrackChangesEditing'),_0x5cf419=_0x12c917['plugins']['get']('ImageUtils'),_0x511f93=_0x12c917['locale'];_0x10cf19['enableCommand']('insertImage'),_0x10cf19['descriptionFactory']['registerElementLabel']('imageBlock',_0x213f7c=>c(_0x511f93,'ELEMENT_IMAGE',_0x213f7c)),_0x10cf19['descriptionFactory']['registerElementLabel']('imageInline',_0x399e55=>c(_0x511f93,'ELEMENT_INLINE_IMAGE',_0x399e55)),_0x10cf19['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x511f93,'ELEMENT_CAPTION')),_0x12c917['plugins']['has']('ImageUploadEditing')&&_0x10cf19['enableCommand']('uploadImage'),_0x12c917['plugins']['has']('ImageBlockEditing')&&_0x12c917['plugins']['has']('ImageInlineEditing')&&(_0x10cf19['enableCommand']('imageTypeInline',(_0x797b92,_0x3d5e7d)=>{const _0x42be9a=_0x5cf419['getClosestSelectedImageElement'](_0x12c917['model']['document']['selection']);_0x12c917['model']['change'](()=>{_0x10cf19['markBlockFormat'](_0x42be9a,{'commandName':'imageTypeInline','commandParams':[_0x3d5e7d]},[],'convertBlockImageToInline');});}),_0x10cf19['enableCommand']('imageTypeBlock',(_0x15876d,_0x21f4ad)=>{_0x12c917['model']['change'](_0x26f01c=>{let _0x1d13f6=_0x5cf419['getClosestSelectedImageElement'](_0x12c917['model']['document']['selection']),_0x17915b=_0x26f01c['createRangeOn'](_0x1d13f6);const _0x266cc5=_0x10dad2['fromPosition'](_0x17915b['start'],'toPrevious'),_0x1c1080=_0x10dad2['fromPosition'](_0x17915b['end'],'toNext');_0x10cf19['forceDefaultExecution'](()=>_0x15876d(_0x21f4ad)),_0x1d13f6=_0x5cf419['getClosestSelectedImageElement'](_0x12c917['model']['document']['selection']),_0x17915b=_0x26f01c['createRangeOn'](_0x1d13f6);const _0x32a88d=_0x26f01c['createRange'](_0x266cc5,_0x1c1080);_0x266cc5['detach'](),_0x1c1080['detach'](),_0x10cf19['markBlockFormat'](_0x1d13f6,{'commandName':'imageTypeInline','commandParams':[_0x21f4ad]},[],'convertInlineImageToBlock'),_0x32a88d['start']['isBefore'](_0x17915b['start'])&&_0x10cf19['markInsertion'](_0x26f01c['createRange'](_0x32a88d['start'],_0x17915b['start']),'convertInlineImageToBlock'),_0x17915b['end']['isBefore'](_0x32a88d['end'])&&_0x10cf19['markInsertion'](_0x26f01c['createRange'](_0x17915b['end'],_0x32a88d['end']),'convertInlineImageToBlock');});}),_0x10cf19['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x10cf19['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x10cf19['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x10cf19['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x10cf19['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x10cf19['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xd69425])=>{const _0x336bd8=_0x10cf19['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x403360=_0xd69425['start'],_0x4b046d=_0xd69425['end'];const _0x218ce7=_0x12c917['model']['schema']['getNearestSelectionRange'](_0x403360,'backward'),_0x451811=_0x12c917['model']['schema']['getNearestSelectionRange'](_0x4b046d,'forward');_0x218ce7['isCollapsed']&&(_0x403360=_0x218ce7['start']),_0x451811['isCollapsed']&&(_0x4b046d=_0x451811['end']),_0x336bd8([_0x12c917['model']['createRange'](_0x403360,_0x4b046d)]);}),_0x10cf19['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xbdac9a),_0x10cf19['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xbdac9a)),_0x12c917['plugins']['has']('ImageCaptionEditing')&&(_0x10cf19['enableCommand']('toggleImageCaption',(_0x37800c,_0x52498d)=>{const _0x2c4bce=_0x12c917['plugins']['get']('ImageCaptionUtils');let _0x1ec803=_0x5cf419['getClosestSelectedImageElement'](_0x12c917['model']['document']['selection']),_0xc5cb5a=_0x2c4bce['getCaptionFromImageModelElement'](_0x1ec803);_0x12c917['model']['change'](()=>{if(_0xc5cb5a)return void _0x10cf19['markDeletion'](_0x12c917['model']['createRangeOn'](_0xc5cb5a));const _0x4f65d3=_0x5cf419['isBlockImage'](_0x1ec803);_0x37800c(_0x52498d),_0x1ec803=_0x5cf419['getClosestSelectedImageElement'](_0x12c917['model']['document']['selection']),_0xc5cb5a=_0x2c4bce['getCaptionFromImageModelElement'](_0x1ec803),_0x10cf19['markInsertion'](_0x12c917['model']['createRangeOn'](_0xc5cb5a),_0x4f65d3?null:'imageCaption');});}),_0x10cf19['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xbdac9a));const _0x5039ad=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x42629b(_0x40043c,_0x5d3f5d){const _0x1b1f2d=_0x5039ad['findIndex'](({type:_0x5679ef,subType:_0x5c713})=>_0x40043c['type']==_0x5679ef&&_0x40043c['subType']==_0x5c713),_0x28e414=_0x5039ad['findIndex'](({type:_0x2c233b,subType:_0x484612})=>_0x5d3f5d['type']==_0x2c233b&&_0x5d3f5d['subType']==_0x484612);if(_0x1b1f2d<0x0||_0x28e414<0x0)return!0x1;const _0x12e722=_0x40043c['getFirstRange'](),_0x55fa32=_0x5d3f5d['getFirstRange']();if((0x0==_0x1b1f2d||0x1==_0x1b1f2d)&&0x2==_0x28e414&&_0x12e722['isIntersecting'](_0x55fa32))return!0x0;if(0x2==_0x1b1f2d&&0x3==_0x28e414){const _0x395373=_0x10cf19['_findSuggestions'](_0x12e722,'insertion')['filter'](({suggestion:_0x137da5,meta:_0x497df3})=>_0x497df3['isOwn']&&'convertInlineImageToBlock'==_0x137da5['subType']);if(_0x395373['length']>0x1&&_0x55fa32['end']['isEqual'](_0x12e722['start']))return!0x0;if(0x1==_0x395373['length']&&(_0x12e722['start']['isEqual'](_0x55fa32['end'])||_0x12e722['end']['isEqual'](_0x55fa32['start'])))return!0x0;}if(0x3==_0x1b1f2d&&0x3==_0x28e414&&_0x12e722['start']['isBefore'](_0x55fa32['start'])){const _0x5c239e=_0x12e722['end']['nodeAfter'],_0xc47a66=_0x55fa32['start']['nodeBefore'];return _0x5cf419['isBlockImage'](_0x5c239e)&&_0x5c239e===_0xc47a66;}return!0x1;}function _0xbdac9a(_0x4ba9e4,_0x51065a){return _0x42629b(_0x4ba9e4,_0x51065a)?[_0x4ba9e4,_0x51065a]:_0x42629b(_0x51065a,_0x4ba9e4)?[_0x51065a,_0x4ba9e4]:null;}_0x12c917['plugins']['has']('ImageResize')&&(_0x10cf19['enableDefaultAttributesIntegration']('resizeImage'),_0x10cf19['registerBlockAttribute']('resizedWidth'),_0x10cf19['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x511f93,'FORMAT_IMAGE_SIZE'))),_0x12c917['plugins']['has']('ImageTextAlternativeEditing')&&(_0x10cf19['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x10cf19['registerBlockAttribute']('alt')),_0x12c917['plugins']['has']('PictureEditing')&&(_0x10cf19['registerBlockAttribute']('sources'),_0x10cf19['descriptionFactory']['registerDescriptionCallback'](_0x2507e1=>{if('attribute'!=_0x2507e1['type'])return;const {data:_0x2da23e}=_0x2507e1;return _0x2da23e&&'sources'==_0x2da23e['key']?{'type':'format','content':''}:void 0x0;})),_0x12c917['plugins']['has']('ImageSizeAttributes')&&(_0x10cf19['registerBlockAttribute']('width'),_0x10cf19['registerBlockAttribute']('height'),_0x10cf19['descriptionFactory']['registerDescriptionCallback'](_0x5891b8=>{if('attribute'!=_0x5891b8['type'])return;const {data:_0x414443}=_0x5891b8;return!_0x414443||'width'!=_0x414443['key']&&'height'!=_0x414443['key']?void 0x0:{'type':'format','content':''};})),_0x10cf19['descriptionFactory']['registerDescriptionCallback'](_0x3c4da1=>{if(!!_0x5039ad['find'](({type:_0x50f262,subType:_0x2c557b})=>_0x3c4da1['type']==_0x50f262&&_0x3c4da1['subType']==_0x2c557b))return _0x3c4da1['previous']?{}:void 0x0;}),_0x10cf19['descriptionFactory']['registerDescriptionCallback'](_0x277281=>{if('insertion'==_0x277281['type']||'deletion'==_0x277281['type']){const _0x2c217b=_0x277281['getContainedElement']();if(_0x2c217b&&_0x2c217b['is']('element','caption'))return{'type':'insertion'==_0x277281['type']?'addObject':'removeObject','element':_0x2c217b,'quantity':0x1};}}),_0x10cf19['descriptionFactory']['registerDescriptionCallback'](_0x2b205b=>'formatBlock'==_0x2b205b['type']&&'convertInlineImageToBlock'==_0x2b205b['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2b205b['type']&&'convertBlockImageToInline'==_0x2b205b['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x10cf19['descriptionFactory']['registerDescriptionCallback'](_0x8100ff=>{if('attribute'!=_0x8100ff['type'])return;const {data:_0x29da83}=_0x8100ff;if(!_0x29da83||'alt'!=_0x29da83['key'])return;const _0x4240b8=_0x29da83['newValue'];return _0x4240b8?{'type':'format','content':c(_0x511f93,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4240b8+'\x22')}:{'type':'format','content':c(_0x511f93,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27121d=this['editor'],_0x45b0c9=_0x27121d['locale'];_0x27121d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x190f95=>{if('formatBlock'!=_0x190f95['type']&&'formatInline'!=_0x190f95['type'])return;const {data:_0x521807}=_0x190f95;if(_0x521807){if('imageTextAlternative'==_0x521807['commandName']){const _0x304275=_0x521807['commandParams'][0x0]['newValue'];return _0x304275?{'type':'format','content':c(_0x45b0c9,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x304275+'\x22')}:{'type':'format','content':c(_0x45b0c9,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x521807['commandName']){const _0x18fbf4=_0x521807['commandParams'][0x0]['width'];return _0x18fbf4?{'type':'format','content':c(_0x45b0c9,'*Set\x20image\x20width:*\x20%0',_0x18fbf4)}:{'type':'format','content':c(_0x45b0c9,'*Reset\x20image\x20width*')};}}});}}class at extends _0x44ea50{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4f49db=this['editor']['locale'],_0x34dd48=this['editor']['plugins']['get']('TrackChangesEditing');_0x34dd48['enableDefaultAttributesIntegration']('replaceImageSource'),_0x34dd48['registerBlockAttribute']('src'),_0x34dd48['descriptionFactory']['registerDescriptionCallback'](_0x425361=>{if('attribute'!=_0x425361['type'])return;const {data:_0x2b7184}=_0x425361;return _0x2b7184&&'src'==_0x2b7184['key']?_0x2b7184['newValue']&&_0x2b7184['oldValue']?{'type':'format','content':c(_0x4f49db,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x31639d=this['editor']['plugins']['get']('TrackChangesEditing');_0x31639d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x31639d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x31639d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x31639d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44c089=this['editor'],_0x16904b=_0x44c089['locale'];_0x44c089['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a51c2=>{if('formatBlock'!=_0x3a51c2['type']&&'formatInline'!=_0x3a51c2['type'])return;const {data:_0x33df19}=_0x3a51c2;if(!_0x33df19||'replaceImageSource'!=_0x33df19['commandName'])return;return{'type':'format','content':c(_0x16904b,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x44ea50{['afterInit'](){const _0x32c082=this['editor'];if(!_0x32c082['plugins']['has']('ImageStyleEditing'))return;const _0x444391=_0x32c082['plugins']['get']('TrackChangesEditing'),_0x2f1aed=_0x32c082['plugins']['get']('ImageUtils'),_0x1f73a2={};_0x444391['enableCommand']('imageStyle',(_0x74775f,_0x3f9124)=>{const _0x4bcb7e=_0x32c082['plugins']['get']('Users')['me'],_0x566553=_0x32c082['commands']['get']('imageStyle');let _0x4d8c18=_0x2f1aed['getClosestSelectedImageElement'](_0x32c082['model']['document']['selection']),_0x3a76ef=_0x32c082['model']['createRangeOn'](_0x4d8c18),_0x28e22a=_0x566553['value'];if(_0x28e22a==_0x3f9124['value'])return;const _0x5d87ea={'commandName':'imageStyle','commandParams':[_0x3f9124],'formatGroupId':_0x10aa54()};_0x32c082['model']['change'](()=>{if(_0x444391['getSuggestions']()['filter'](_0x48f2bd=>_0x48f2bd['isInContent']&&_0x4bcb7e==_0x48f2bd['author']&&('formatBlock'==_0x48f2bd['type']||'formatInline'==_0x48f2bd['type'])&&('imageStylePreApply'==_0x48f2bd['subType']||'imageStylePostApply'==_0x48f2bd['subType'])&&_0x48f2bd['getFirstRange']()['isEqual'](_0x3a76ef))['forEach'](_0x402bcf=>_0x444391['discardSuggestion'](_0x402bcf['head'])),_0x4d8c18=_0x2f1aed['getClosestSelectedImageElement'](_0x32c082['model']['document']['selection']),_0x3a76ef=_0x32c082['model']['createRangeOn'](_0x4d8c18),_0x566553['refresh'](),_0x32c082['commands']['get']('imageTypeInline')['refresh'](),_0x32c082['commands']['get']('imageTypeBlock')['refresh'](),_0x28e22a=_0x566553['value'],_0x28e22a!=_0x3f9124['value'])return _0x2f1aed['isInlineImage'](_0x4d8c18)&&_0x566553['shouldConvertImageType'](_0x3f9124['value'],_0x4d8c18)?(_0x74775f({..._0x3f9124,'setImageSizes':!0x1}),_0x4d8c18=_0x2f1aed['getClosestSelectedImageElement'](_0x32c082['model']['document']['selection']),void _0x444391['markBlockFormat'](_0x4d8c18,{..._0x5d87ea,'commandReversedParams':[{'value':_0x28e22a||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2f1aed['isBlockImage'](_0x4d8c18)?_0x444391['markBlockFormat'](_0x4d8c18,_0x5d87ea,[],'imageStylePostApply'):_0x444391['markInlineFormat'](_0x3a76ef,_0x5d87ea,'imageStylePostApply'));});});for(const _0x33b380 of _0x32c082['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1f73a2[_0x33b380['name']]=_0x33b380['title']['toLowerCase']();_0x444391['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x444391['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x444391['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x444391['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x18d057])=>{_0x2f1aed['setImageNaturalSizeAttributes'](_0x18d057['getContainedElement']());}),_0x444391['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4546ba,_0x15092a)=>{_0x444391['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4546ba,{'commandName':_0x15092a['commandName'],'commandParams':_0x15092a['commandReversedParams']});}),_0x444391['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2e418c,_0xbbab77){if(_0x142fda(_0x2e418c,_0xbbab77))return[_0x2e418c,_0xbbab77];if(_0x142fda(_0xbbab77,_0x2e418c))return[_0xbbab77,_0x2e418c];return null;});const _0xca7c51=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x142fda(_0x36d7b2,_0x4c18d0){const _0x45ea9b=_0xca7c51['findIndex'](({type:_0x197f72,subType:_0x2e449e})=>_0x36d7b2['type']==_0x197f72&&_0x36d7b2['subType']==_0x2e449e),_0x30e594=_0xca7c51['findIndex'](({type:_0x4eb7f0,subType:_0x315a3e})=>_0x4c18d0['type']==_0x4eb7f0&&_0x4c18d0['subType']==_0x315a3e);if(_0x45ea9b<0x0||_0x30e594<0x0)return!0x1;const _0x2eaf56=_0x36d7b2['getFirstRange'](),_0x3d48e5=_0x4c18d0['getFirstRange']();if((0x0==_0x45ea9b||0x1==_0x45ea9b)&&0x2==_0x30e594&&_0x2eaf56['isIntersecting'](_0x3d48e5))return!0x0;if(0x2==_0x45ea9b&&0x3==_0x30e594){const _0x369459=_0x444391['_findSuggestions'](_0x2eaf56,'insertion')['filter'](({suggestion:_0x43b9e4,meta:_0xf250d4})=>_0xf250d4['isOwn']&&'convertInlineImageToBlock'==_0x43b9e4['subType']);if(_0x369459['length']>0x1&&_0x3d48e5['end']['isEqual'](_0x2eaf56['start']))return!0x0;if(0x1==_0x369459['length']&&(_0x2eaf56['start']['isEqual'](_0x3d48e5['end'])||_0x2eaf56['end']['isEqual'](_0x3d48e5['start'])))return!0x0;}if(0x3==_0x45ea9b&&0x3==_0x30e594&&_0x2eaf56['start']['isBefore'](_0x3d48e5['start'])){const _0x2ca997=_0x2eaf56['end']['nodeAfter'],_0x336162=_0x3d48e5['start']['nodeBefore'];return _0x2f1aed['isBlockImage'](_0x2ca997)&&_0x2ca997===_0x336162;}return!0x1;}_0x32c082['model']['document']['registerPostFixer'](()=>{let _0x1f0031=!0x1;const _0x13fee4=Array['from'](_0x32c082['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x10108a,data:_0x53dfd4}of _0x13fee4){const {group:_0x235165,type:_0x18a812,subType:_0x2fce28,id:_0x495e47}=_0x444391['_splitMarkerName'](_0x10108a);if('suggestion'==_0x235165&&_0x444391['hasSuggestion'](_0x495e47)){if('formatBlock'==_0x18a812&&('imageStylePreApply'==_0x2fce28||'imageStylePostApply'==_0x2fce28)){const _0x1e2a55=_0x444391['getSuggestion'](_0x495e47);if(_0x53dfd4['newRange']){const _0x237fa9=_0x1e2a55['getFirstRange']()['getContainedElement']();if(_0x2f1aed['isBlockImage'](_0x237fa9))continue;_0x444391['discardSuggestion'](_0x1e2a55),_0x1f0031=!0x0;}}if('insertion'==_0x18a812&&'imageCaption'==_0x2fce28&&!_0x53dfd4['newRange']){const _0x5b1296=_0x444391['getSuggestion'](_0x495e47);_0x5b1296['next']&&_0x5b1296['next']['isInContent']&&(_0x444391['discardSuggestion'](_0x5b1296['next']),_0x1f0031=!0x0);}}}return _0x1f0031;}),this['_registerLegacyDescription'](_0x1f73a2);}['_registerLegacyDescription'](_0x2b09e8){const _0x2de8c6=this['editor'],_0x7e0207=_0x2de8c6['locale'];_0x2de8c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b8dd9=>{if('formatBlock'!=_0x1b8dd9['type']&&'formatInline'!=_0x1b8dd9['type'])return;const {data:_0x4b47d9}=_0x1b8dd9;if(!_0x4b47d9||'imageStyle'!=_0x4b47d9['commandName'])return;const _0x530ea9=_0x4b47d9['commandParams'][0x0]['value'];return _0x13f33d('side'===_0x530ea9?c(_0x7e0207,'FORMAT_SIDE_IMAGE'):_0x2b09e8[_0x530ea9]||_0x530ea9);function _0x13f33d(_0x1317c0){return{'type':'format','content':c(_0x7e0207,'*Format:*\x20%0',_0x1317c0)};}});}}class ut extends _0x44ea50{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x227b31){super(_0x227b31),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x456cb2=this['editor'],_0x3bb4e5=_0x456cb2['commands']['get']('importWord'),_0x2e80c9=_0x456cb2['commands']['get']('trackChanges');_0x3bb4e5&&(_0x3bb4e5['on']('execute',(_0x4a59f4,[,_0x118f7f])=>{this['_trackChangesValueDuringImport']=_0x2e80c9['value'],_0x118f7f['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3bb4e5,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3bb4e5,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2e80c9['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x456cb2['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x39c76c,_0x82ed0){const {suggestions:_0x1e48b8}=_0x82ed0,_0x2e9f94=this['editor']['commands']['get']('trackChanges'),_0x398e2a=_0x2e9f94['value'];this['_trackChangesValueDuringImport']!==_0x398e2a&&(_0x2e9f94['execute'](),this['_trackChangesExecuted']=!0x0),_0x1e48b8&&_0x1e48b8['forEach'](({id:_0x75664b,type:_0x397abc,author:_0x4e8af4,created_at:_0x36bac8})=>{const _0x37c6d2={'id':_0x75664b,'type':_0x397abc,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4e8af4,'createdAt':_0x36bac8?new Date(_0x36bac8):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x37c6d2);});}}class ft extends _0x44ea50{['afterInit'](){const _0x1912ca=this['editor'],_0x3c6f59=_0x1912ca['plugins']['get']('TrackChangesEditing');if(_0x1912ca['plugins']['has']('IndentEditing')&&(_0x3c6f59['enableCommand']('indent'),_0x3c6f59['enableCommand']('outdent')),_0x1912ca['plugins']['has']('IndentBlock')){for(const _0x2e649d of['indentBlock','outdentBlock'])_0x3c6f59['enableDefaultAttributesIntegration'](_0x2e649d);}const _0x9d0216=_0x1912ca['locale'];_0x3c6f59['registerBlockAttribute']('blockIndent'),_0x3c6f59['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x9d0216,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x505ce7=this['editor'],_0x49843e=_0x505ce7['locale'],_0x5c5b6f=_0x505ce7['plugins']['get']('TrackChangesEditing');_0x5c5b6f['descriptionFactory']['registerDescriptionCallback'](_0x501862=>{if('formatBlock'!=_0x501862['type'])return;const {data:_0x281187}=_0x501862;if(!_0x281187)return;if('indentBlock'!=_0x281187['commandName']&&'outdentBlock'!=_0x281187['commandName'])return;const _0x2f9d54=_0x501862['getItems']()[0x0],_0x5ea5f9=_0x5c5b6f['descriptionFactory']['getItemLabel'](_0x2f9d54);return'indentBlock'==_0x281187['commandName']?{'type':'format','content':c(_0x49843e,'*Indent:*\x20%0',_0x5ea5f9)}:'outdentBlock'==_0x281187['commandName']?{'type':'format','content':c(_0x49843e,'*Outdent:*\x20%0',_0x5ea5f9)}:void 0x0;});}}class ht extends _0x44ea50{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x44ea50{['afterInit'](){const _0x582f87=this['editor'];if(!_0x582f87['plugins']['has']('LinkEditing'))return;const _0x513c8e=_0x582f87['plugins']['get']('TrackChangesEditing'),_0x1db0f5=_0x582f87['commands']['get']('link');_0x513c8e['enableDefaultAttributesIntegration']('link'),_0x513c8e['enableDefaultAttributesIntegration']('unlink'),_0x513c8e['registerInlineAttribute']('linkHref');for(const _0x85fc61 of _0x1db0f5['manualDecorators'])_0x513c8e['registerInlineAttribute'](_0x85fc61['id']),_0x513c8e['descriptionFactory']['registerAttributeLabel'](_0x85fc61['id'],'link\x20('+_0x85fc61['label']['toLowerCase']()+')');_0x513c8e['descriptionFactory']['registerDescriptionCallback'](_0x450621=>{if('attribute'!=_0x450621['type'])return;const {data:_0x28b638}=_0x450621;if(!_0x28b638||'linkHref'!=_0x28b638['key'])return;const _0x8f664d=_0x28b638['newValue'],_0x17595c=_0x582f87['locale'];return{'type':'format','content':null==_0x8f664d?c(_0x17595c,'*Remove\x20link*'):c(_0x17595c,'*Set\x20link:*\x20%0','\x22'+_0x8f664d+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57c58d=this['editor'],_0x196a2e=_0x57c58d['locale'];_0x57c58d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13f685=>{if('formatInline'!=_0x13f685['type'])return;const {data:_0x26b104}=_0x13f685;if(_0x26b104){if('link'==_0x26b104['commandName']){const _0x1c4705=_0x26b104['commandParams'][0x0];return{'type':'format','content':c(_0x196a2e,'*Set\x20link:*\x20%0','\x22'+_0x1c4705+'\x22')};}return'unlink'==_0x26b104['commandName']?{'type':'format','content':c(_0x196a2e,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x44ea50{['afterInit'](){const _0x27e4df=this['editor'],_0x12e69f=_0x27e4df['locale'];if(!_0x27e4df['plugins']['has']('LegacyListEditing'))return;const _0x351534=_0x27e4df['plugins']['get']('TrackChangesEditing'),_0x747194=_0x27e4df['plugins']['has']('LegacyTodoListEditing');function _0x105230(_0x1f40e8){return()=>{const _0x67b7a3=_0x27e4df['model']['document']['selection'],_0x2ad8ce=_0x27e4df['commands']['get'](_0x1f40e8);if(_0x2ad8ce['value'])return void _0x27e4df['execute']('paragraph',{});const _0x518941=_0x1f40e8['slice'](0x0,-0x4),_0x4d3ff9=function(_0x408d12,_0x14ff2f,_0x2a08a4){let _0x26da1a=Array['from'](_0x408d12)['filter'](_0x4f0220=>function(_0xa845fe,_0x9426a5){return _0x9426a5['checkChild'](_0xa845fe['parent'],'listItem')&&!_0x9426a5['isObject'](_0xa845fe);}(_0x4f0220,_0x2a08a4));_0x26da1a=_0x26da1a['filter'](_0xf2b582=>!_0xf2b582['is']('element','listItem')||_0xf2b582['getAttribute']('listType')!=_0x14ff2f);const _0x45a352=new Set();for(const _0x41babe of _0x26da1a)_0x41babe['is']('element','listItem')?_0x45a352['add'](Le(_0x41babe)):_0x45a352['add'](_0x41babe);return Array['from'](_0x45a352);}(_0x67b7a3['getSelectedBlocks'](),_0x518941,_0x27e4df['model']['schema']);_0x27e4df['model']['change'](()=>{for(const _0x467e02 of _0x4d3ff9)_0x351534['markBlockFormat'](_0x467e02,{'commandName':_0x1f40e8,'commandParams':[{'forceValue':!_0x2ad8ce['value']}],'formatGroupId':'blockName'},Ee(_0x467e02));});};}function _0x2d7b97(_0x28bba7){return()=>{const _0x1bb80e=function(_0x587f25){let _0x3d2a30=Array['from'](_0x587f25);const _0x3bc846=_0x3d2a30['findIndex'](_0xafff99=>'listItem'!=_0xafff99['name']);return _0x3bc846>-0x1&&(_0x3d2a30=_0x3d2a30['slice'](0x0,_0x3bc846)),_0x3d2a30;}(_0x27e4df['model']['document']['selection']['getSelectedBlocks']()),_0x253f0c=_0x27e4df['model']['createRange'](_0x27e4df['model']['createPositionAt'](_0x1bb80e[0x0],'before'),_0x27e4df['model']['createPositionAt'](_0x1bb80e[_0x1bb80e['length']-0x1],'end'));_0x27e4df['model']['change'](()=>{_0x351534['markBlockFormat'](_0x253f0c,{'commandName':_0x28bba7,'commandParams':[],'formatGroupId':'listIndent'},function(_0x475743){const _0x300149=new Set();for(const _0x3789c1 of _0x475743){let _0x2e5e15=_0x3789c1['nextSibling'];for(;_0x2e5e15&&_0x2e5e15['getAttribute']('listIndent')>_0x3789c1['getAttribute']('listIndent');)_0x300149['add'](_0x2e5e15),_0x2e5e15=_0x2e5e15['nextSibling'];}return Array['from'](_0x300149);}(_0x1bb80e));});};}_0x351534['enableCommand']('numberedList',_0x105230('numberedList')),_0x351534['enableCommand']('bulletedList',_0x105230('bulletedList')),_0x747194&&_0x351534['enableCommand']('todoList',_0x105230('todoList')),_0x351534['enableCommand']('indentList',_0x2d7b97('indentList')),_0x351534['enableCommand']('outdentList',_0x2d7b97('outdentList')),_0x747194&&_0x351534['enableCommand']('checkTodoList',()=>{const _0x3def92=_0x27e4df['commands']['get']('checkTodoList'),_0x2d82ef=Array['from'](_0x3def92['_selectedElements']);_0x2d82ef['filter'](_0x2a00f8=>_0x2a00f8['getAttribute']('todoListChecked')!=_0x3def92['value']),_0x27e4df['model']['change'](()=>{for(const _0x3973fe of _0x2d82ef)_0x351534['markBlockFormat'](_0x3973fe,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3def92['value']}]});});}),_0x351534['descriptionFactory']['registerElementLabel']('listItem',_0x5d88f4=>c(_0x12e69f,'ELEMENT_LIST_ITEM',_0x5d88f4)),_0x351534['descriptionFactory']['registerDescriptionCallback'](_0x2d6891=>{if('formatBlock'!=_0x2d6891['type']&&'formatInline'!=_0x2d6891['type'])return;const {data:_0x383f98}=_0x2d6891;if(_0x383f98){if('numberedList'==_0x383f98['commandName']||'bulletedList'==_0x383f98['commandName']||'todoList'==_0x383f98['commandName'])switch(_0x383f98['commandName']['replace']('List','')){case'bulleted':return _0x4b3c43(c(_0x12e69f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4b3c43(c(_0x12e69f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4b3c43(c(_0x12e69f,'ELEMENT_TODO_LIST'));}if('indentList'==_0x383f98['commandName'])return{'type':'format','content':c(_0x12e69f,'*Indent:*\x20%0',c(_0x12e69f,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x383f98['commandName'])return{'type':'format','content':c(_0x12e69f,'*Outdent:*\x20%0',c(_0x12e69f,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x383f98['commandName'])return _0x383f98['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x12e69f,'*Check\x20item*')}:{'type':'format','content':c(_0x12e69f,'*Uncheck\x20item*')};}function _0x4b3c43(_0x5ea18c){return{'type':'format','content':c(_0x12e69f,'*Change\x20to:*\x20%0',_0x5ea18c)};}});}}function Le(_0x3eb7df){const _0x4972a6=_0x3eb7df['getAttribute']('listIndent');if(0x0==_0x4972a6)return _0x3eb7df;let _0xe1f5b9=_0x3eb7df;for(;_0x3eb7df['previousSibling']&&_0x3eb7df['previousSibling']['is']('element','listItem');){const _0x2dc449=_0x3eb7df['previousSibling']['getAttribute']('listIndent');if(_0x2dc449==_0x4972a6)_0xe1f5b9=_0x3eb7df['previousSibling'];else{if(_0x2dc449<_0x4972a6)break;}_0x3eb7df=_0x3eb7df['previousSibling'];}return _0xe1f5b9;}function Ee(_0x4d7753){const _0x3b153e=[];if(_0x4d7753['is']('element','listItem')&&_0x4d7753['getAttribute']('listIndent')>0x0){let _0xbc8bcb=_0x4d7753['nextSibling'];for(;_0xbc8bcb&&'listItem'==_0xbc8bcb['name']&&_0xbc8bcb['getAttribute']('listIndent')==_0x4d7753['getAttribute']('listIndent');)_0x3b153e['push'](_0xbc8bcb),_0xbc8bcb=_0xbc8bcb['nextSibling'];}return _0x3b153e;}class Q extends _0x44ea50{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4d8947=this['editor']['config']['get']('list.properties'),_0x50b3d6=this['editor']['plugins']['get']('TrackChangesEditing');_0x4d8947['styles']&&_0x50b3d6['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4d8947['reversed']&&_0x50b3d6['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4d8947['startIndex']&&_0x50b3d6['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x50b3d6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x279c25,_0x3914c2={}){const _0x209663=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ccf25=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x209663['markMultiRangeBlockFormat'](_0x5ccf25,{'commandName':'listStyle','commandParams':[{'type':_0x3914c2['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x40883e,_0x1c8ae6={}){const _0x267995=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ed390=this['_getSuggestionBlocks'](_0x3e7e03=>_0x3e7e03['is']('element','listItem')&&'numbered'===_0x3e7e03['getAttribute']('listType'));if(_0x5ed390['length']<0x1)return;const _0x52f1da=_0x5ed390['map'](_0x12dc4a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x12dc4a,'before'),this['editor']['model']['createPositionAt'](_0x12dc4a,0x0)));this['editor']['model']['change'](()=>{_0x267995['markMultiRangeBlockFormat'](_0x52f1da,{'commandName':'listReversed','commandParams':[{'reversed':_0x1c8ae6['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x16d54c,_0x568388={}){const _0xbee824=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ae296=this['_getSuggestionBlocks'](_0x447ab4=>_0x447ab4['is']('element','listItem')&&'numbered'===_0x447ab4['getAttribute']('listType'));if(_0x2ae296['length']<0x1)return;const _0x39bb88=_0x2ae296['map'](_0x50785e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x50785e,'before'),this['editor']['model']['createPositionAt'](_0x50785e,0x0)));this['editor']['model']['change'](()=>{_0xbee824['markMultiRangeBlockFormat'](_0x39bb88,{'commandName':'listStart','commandParams':[{'startIndex':_0x568388['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x27d26d){if('formatBlock'!=_0x27d26d['type']&&'formatInline'!=_0x27d26d['type'])return;const _0x4a279a=this['editor']['locale'],{data:_0x1768c6}=_0x27d26d;if(!_0x1768c6)return;let _0x422874,_0x1d1029;switch(_0x1768c6['commandName']){case'listStyle':_0x422874='*Change\x20to:*\x20%0',_0x1d1029={'type':'format','content':c(_0x4a279a,_0x422874,c(_0x4a279a,this['_getTranslationKeyForListStyle'](_0x1768c6['commandParams'][0x0]['type'])))};break;case'listReversed':_0x422874=_0x1768c6['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1d1029={'type':'format','content':c(_0x4a279a,_0x422874)};break;case'listStart':_0x422874='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1d1029={'type':'format','content':c(_0x4a279a,_0x422874,_0x1768c6['commandParams'][0x0]['startIndex'])};}return _0x1d1029;}['_getSuggestionBlocksForListStyle'](){const _0x460f0a=this['editor']['plugins']['get']('LegacyListUtils');let _0x11ff22=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x11ff22[0x0]?.['is']('element','listItem')&&_0x11ff22['unshift'](..._0x460f0a['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x11ff22[_0x11ff22['length']-0x1]?.['is']('element','listItem')&&_0x11ff22['push'](..._0x460f0a['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x11ff22=[...new Set(_0x11ff22)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x11ff22=_0x11ff22['filter'](_0x106876=>_0x106876['is']('element','listItem'))),_0x11ff22;}['_getSuggestionBlocks'](_0x173455){const _0x55d3d0=this['editor']['plugins']['get']('LegacyListUtils');let _0xa776cb=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x173455)['map'](_0x50724b=>{const _0x15f2e6=this['editor']['model']['createPositionAt'](_0x50724b,0x0);return[..._0x55d3d0['getSiblingNodes'](_0x15f2e6,'backward'),..._0x55d3d0['getSiblingNodes'](_0x15f2e6,'forward')];})['flat']();return _0xa776cb=[...new Set(_0xa776cb)],_0xa776cb;}['_getTranslationKeyForListStyle'](_0x5a2c0f){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5a2c0f)||'default')['toUpperCase']()+'_LIST_'+_0x5a2c0f['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x44ea50{['afterInit'](){const _0x29d6c8=this['editor'];if(!_0x29d6c8['plugins']['has']('MediaEmbedEditing'))return;const _0x1793e9=_0x29d6c8['plugins']['get']('TrackChangesEditing'),_0x326e32=_0x29d6c8['locale'];_0x1793e9['enableCommand']('mediaEmbed'),_0x1793e9['descriptionFactory']['registerElementLabel']('media',_0x48258f=>c(_0x326e32,'ELEMENT_MEDIA',_0x48258f)),_0x29d6c8['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xe66ff8,{writer:_0x3f1422,options:_0x21a02b})=>{if(_0x21a02b['showSuggestionHighlights'])return _0x3f1422['createEmptyElement']('div');},'converterPriority':'high'}),_0x29d6c8['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4b621f,_0x277b13,_0x10d209)=>{_0x10d209['options']['showSuggestionHighlights']&&_0x4b621f['stop']();},{'priority':'high'});}}class pt extends _0x44ea50{['afterInit'](){const _0x5361f8=this['editor'];_0x5361f8['plugins']['has']('MentionEditing')&&_0x5361f8['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x44ea50{['afterInit'](){const _0xa64e7=this['editor'];if(!_0xa64e7['plugins']['has']('MergeFieldsEditing'))return;const _0x3476e4=_0xa64e7['plugins']['get']('TrackChangesEditing'),_0x11e380=_0xa64e7['locale'];_0x3476e4['enableCommand']('insertMergeField'),_0x3476e4['enableCommand']('insertMergeFieldBlock'),_0x3476e4['enableCommand']('insertMergeFieldImage'),_0x3476e4['descriptionFactory']['registerElementLabel']('mergeField',_0x2f5a45=>c(_0x11e380,'ELEMENT_MERGE_FIELD',_0x2f5a45)),_0x3476e4['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x97ce47=>c(_0x11e380,'ELEMENT_MERGE_FIELD',_0x97ce47)),_0x3476e4['descriptionFactory']['registerDescriptionCallback'](_0x5563c4=>{if('insertion'!=_0x5563c4['type']&&'deletion'!=_0x5563c4['type'])return;const _0x122c12=_0x5563c4['getContainedElement']();if(null==_0x122c12)return;const _0x55ddc6=_0xa64e7['plugins']['get']('MergeFieldsEditing');let _0x4af89f;switch(_0x55ddc6['getMergeFieldType'](_0x122c12)){case null:return;case'image':{const _0x3c4357=_0x55ddc6['unwrapAffixes'](_0x122c12['getAttribute']('src'));_0x4af89f=_0x55ddc6['getLabel'](_0x3c4357)||_0x3c4357;break;}default:{const _0x33683b=_0x122c12['getAttribute']('id');_0x4af89f=_0x55ddc6['getLabel'](_0x33683b)||_0x33683b;break;}}return'insertion'==_0x5563c4['type']?{'type':'insertion','content':c(_0x11e380,'*Insert:*\x20%0','\x22'+_0x4af89f+'\x22\x20'+c(_0x11e380,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x11e380,'*Remove:*\x20%0','\x22'+_0x4af89f+'\x22\x20'+c(_0x11e380,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x44ea50{['afterInit'](){const _0x415026=this['editor'],_0x238265=_0x415026['plugins']['get']('TrackChangesEditing');_0x415026['plugins']['has']('MultiLevelList')&&(_0x238265['enableDefaultAttributesIntegration']('multiLevelList'),_0x238265['registerBlockAttribute']('listMarkerStyle'),_0x238265['descriptionFactory']['registerDescriptionCallback'](_0x256f25=>this['handleDescriptions'](_0x256f25)));}['handleDescriptions'](_0x213430){const _0x21bf95=this['editor']['locale'],{data:_0x4f0dc3}=_0x213430,_0x4aba16={'type':'format','content':''};if(_0x4f0dc3&&'listMarkerStyle'==_0x4f0dc3['key']){if(!_0x4f0dc3['oldValue'])return{'type':'format','content':c(_0x21bf95,'*Set\x20format:*\x20%0',c(_0x21bf95,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4f0dc3['newValue']+')'};if(!_0x4f0dc3['newValue']){let _0x17c36b=_0x213430['head'];for(;_0x17c36b;){if(_0x17c36b['data']&&'listType'==_0x17c36b['data']['key']&&_0x17c36b['data']['newValue'])return _0x4aba16;_0x17c36b=_0x17c36b['next'];}return{'type':'format','content':c(_0x21bf95,'*Remove\x20format:*\x20%0',c(_0x21bf95,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4f0dc3['oldValue']+')'};}}}}class bt extends _0x44ea50{['afterInit'](){const _0x741762=this['editor'];if(!_0x741762['plugins']['has']('PageBreakEditing'))return;_0x741762['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x358b1f=_0x741762['plugins']['get']('TrackChangesEditing'),_0x370911=_0x741762['locale'];_0x358b1f['descriptionFactory']['registerElementLabel']('pageBreak',_0x8d7989=>c(_0x370911,'ELEMENT_PAGE_BREAK',_0x8d7989));}}class yt extends _0x44ea50{['afterInit'](){const _0x403f83=this['editor'];if(!_0x403f83['plugins']['has']('Paragraph'))return;const _0x279b74=_0x403f83['locale'],_0x573711=_0x403f83['plugins']['get']('TrackChangesEditing');_0x573711['descriptionFactory']['registerElementLabel']('paragraph',_0x40e872=>c(_0x279b74,'ELEMENT_PARAGRAPH',_0x40e872)),_0x573711['enableDefaultAttributesIntegration']('paragraph'),_0x573711['enableCommand']('insertParagraph'),_0x403f83['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x403f83),{'priority':'highest'}),_0x403f83['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5239d4,_0x6b4216,_0x476424)=>{_0x476424['options']['showSuggestionHighlights']&&nr(_0x403f83,{'showActiveMarker':!0x1})(_0x5239d4,_0x6b4216,_0x476424);},{'priority':'highest'});const _0x4ab951=_0x573711['descriptionFactory'];_0x4ab951['registerDescriptionCallback'](_0x6b60ec=>{if('insertion'!==_0x6b60ec['type'])return;const {start:_0x22a13c,end:_0x52f368}=_0x6b60ec['getFirstRange']();if(!_0x22a13c['isTouching'](_0x52f368)||!_0x22a13c['nodeAfter'])return;const _0x2ec8e9=_0x403f83['model']['schema'],_0x15db31=_0x22a13c['nodeAfter'];return _0x2ec8e9['isBlock'](_0x15db31)&&!_0x2ec8e9['isLimit'](_0x15db31)&&_0x2ec8e9['checkChild'](_0x15db31,'$text')?{'type':'insertion','content':c(_0x279b74,'*Insert:*\x20%0',_0x4ab951['getItemLabel'](_0x15db31,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x177aff=this['editor'],_0x1bbc50=_0x177aff['locale'];_0x177aff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46af54=>{if('formatBlock'!=_0x46af54['type'])return;const {data:_0x5813ff}=_0x46af54;return _0x5813ff&&'paragraph'==_0x5813ff['commandName']?{'type':'format','content':c(_0x1bbc50,'*Change\x20to:*\x20%0',c(_0x1bbc50,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x16f0ed,{showActiveMarker:_0x129383=!0x0}={}){return(_0x57d67f,_0x35531c,_0xb0233c)=>{const _0xb890aa=_0x16f0ed['plugins']['get']('TrackChangesEditing'),_0x46dd8c=_0x35531c['markerRange']['start'],_0x32fbe8=_0x35531c['markerRange']['end'],_0x3596bc=_0x16f0ed['model']['schema'];if(!_0x46dd8c['isTouching'](_0x32fbe8)||!_0x46dd8c['nodeAfter'])return;const _0x17c08a=_0x46dd8c['nodeAfter'];if(_0x3596bc['isBlock'](_0x17c08a)&&!_0x3596bc['isLimit'](_0x17c08a)&&_0x3596bc['checkChild'](_0x17c08a,'$text')){if(!_0xb0233c['consumable']['consume'](_0x35531c['markerRange'],_0x57d67f['name']))return;const {authorId:_0x49da3e}=_0xb890aa['_splitMarkerName'](_0x35531c['markerName']),_0x23825b=_0xb0233c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x49da3e}),_0xd822fb=_0xb0233c['mapper']['toViewPosition'](_0x32fbe8);_0x129383&&_0xb890aa['activeMarkers']['includes'](_0x35531c['markerName'])&&_0xb0233c['writer']['addClass']('ck-suggestion-marker--active',_0x23825b),_0xb0233c['writer']['insert'](_0xd822fb,_0x23825b),_0xb0233c['mapper']['bindElementToMarker'](_0x23825b,_0x35531c['markerName']);}};}class jt extends _0x44ea50{['afterInit'](){const _0xe912f9=this['editor'];_0xe912f9['commands']['get']('replaceSource')&&_0xe912f9['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x44ea50{['afterInit'](){const _0x3c3b11=this['editor'];if(!_0x3c3b11['plugins']['has']('RemoveFormatEditing'))return;_0x3c3b11['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d5cdd=this['editor'];_0x2d5cdd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c69ba=>{if('formatBlock'!=_0x3c69ba['type']&&'formatInline'!=_0x3c69ba['type'])return;const {data:_0x405323}=_0x3c69ba;return _0x405323&&'removeFormat'==_0x405323['commandName']?{'type':'format','content':c(_0x2d5cdd['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x44ea50{['afterInit'](){const _0x1dcf57=this['editor'];if(!_0x1dcf57['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x384da6=_0x1dcf57['plugins']['get']('TrackChangesEditing');_0x384da6['enableCommand']('goToPreviousRestrictedEditingException'),_0x384da6['enableCommand']('goToNextRestrictedEditingException');const _0x26265d=_0x1dcf57['plugins']['get']('RestrictedEditingModeEditing');_0x26265d['enableCommand']('trackChanges'),_0x26265d['enableCommand']('acceptSuggestion'),_0x26265d['enableCommand']('discardSuggestion'),_0x26265d['enableCommand']('acceptAllSuggestions'),_0x26265d['enableCommand']('discardAllSuggestions'),_0x26265d['enableCommand']('acceptSelectedSuggestions'),_0x26265d['enableCommand']('discardSelectedSuggestions');}}class It extends _0x44ea50{static get['requires'](){return[_0x41b606];}['init'](){const _0x3617e8=this['editor'],_0x8446ca=_0x3617e8['plugins']['get']('TrackChangesEditing');_0x8446ca['enableCommand']('shiftEnter'),_0x3617e8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x3617e8),{'priority':'high'}),_0x3617e8['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x3617e8),{'priority':'high'}),_0x3617e8['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3a28a9,_0x254d53,_0x2e7dd9)=>{_0x2e7dd9['options']['showSuggestionHighlights']&&je(_0x3617e8,{'showActiveMarker':!0x1})(_0x3a28a9,_0x254d53,_0x2e7dd9);}),_0x8446ca['descriptionFactory']['registerElementLabel']('softBreak',_0x53a783=>c(_0x3617e8['locale'],'ELEMENT_LINE_BREAK',_0x53a783));}}function je(_0x2a9cc4,{showActiveMarker:_0x66a3fc=!0x0}={}){return(_0x3069c2,_0x17542a,_0x12025c)=>{const _0x1eea4d=_0x2a9cc4['plugins']['get']('TrackChangesEditing');if(!_0x12025c['consumable']['test'](_0x17542a['markerRange'],_0x3069c2['name']))return;const _0x2e07db=_0x2a9cc4['model'];for(const _0xca35ef of _0x17542a['markerRange']['getItems']()){if(!_0xca35ef['is']('element','softBreak'))continue;const _0x165653='deletion'==_0x17542a['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x249160}=_0x1eea4d['_splitMarkerName'](_0x17542a['markerName']),_0x51b871=_0x12025c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x165653,'data-author-id':_0x249160}),_0x35e036=_0x12025c['mapper']['toViewPosition'](_0x2e07db['createPositionBefore'](_0xca35ef));_0x66a3fc&&_0x1eea4d['activeMarkers']['includes'](_0x17542a['markerName'])&&_0x12025c['writer']['addClass']('ck-suggestion-marker--active',_0x51b871),_0x12025c['writer']['insert'](_0x35e036,_0x51b871),_0x12025c['mapper']['bindElementToMarker'](_0x51b871,_0x17542a['markerName']);}};}class _t extends _0x44ea50{['afterInit'](){const _0x3c223f=this['editor'],_0x134f71=_0x3c223f['model'],_0xda2847=_0x3c223f['locale'];if(!_0x3c223f['plugins']['has']('StandardEditingModeEditing'))return;const _0x22cb25=_0x3c223f['plugins']['get']('TrackChangesEditing'),_0x22cd9e='restrictedEditingException',_0x3db8c3=_0x3c223f['commands']['get'](_0x22cd9e);_0x22cb25['enableCommand'](_0x22cd9e,(_0x14a89c,_0x146f50={})=>{const _0x474ec0=_0x134f71['document']['selection'];if(_0x474ec0['isCollapsed'])return void _0x14a89c(_0x146f50);const _0x4b95fe=void 0x0!==_0x146f50['forceValue']?_0x146f50['forceValue']:!_0x3db8c3['value'];_0x134f71['change'](()=>{const _0x396370=Array['from'](_0x474ec0['getRanges']());for(const _0xb550ec of _0x396370){const _0x471e34=_0x4b95fe?[_0xb550ec]:io(_0x22cd9e,_0xb550ec,_0x134f71);for(const _0xedb994 of _0x471e34)_0x22cb25['markInlineFormat'](_0xedb994,{'commandName':_0x22cd9e,'commandParams':[{'forceValue':_0x4b95fe}]});}});}),_0x22cb25['descriptionFactory']['registerDescriptionCallback'](_0x207a08=>{if('formatBlock'!=_0x207a08['type']&&'formatInline'!=_0x207a08['type'])return;const {data:_0x2e7f04}=_0x207a08;return _0x2e7f04&&_0x2e7f04['commandName']==_0x22cd9e?_0x2e7f04['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xda2847,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0xda2847,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x44ea50{['afterInit'](){const _0xe4664d=this['editor'];if(!_0xe4664d['plugins']['has']('Style')||!_0xe4664d['plugins']['has']('DataSchema'))return;const _0x55d1e1=_0xe4664d['plugins']['get']('TrackChangesEditing'),_0x2f029e=_0xe4664d['locale'],_0x36ed84=_0xe4664d['config']['get']('style')||{},_0x1a184c=_0xe4664d['plugins']['get']('GeneralHtmlSupport'),_0x58d0a8=_0xe4664d['plugins']['get']('StyleUtils')['normalizeConfig'](_0xe4664d['plugins']['get']('DataSchema'),_0x36ed84['definitions']);_0x55d1e1['enableDefaultAttributesIntegration']('style');const _0x47610f=new Set();for(const _0x560dd3 of _0x58d0a8['block']){const _0x414c1b=_0x1a184c['getGhsAttributeNameForElement'](_0x560dd3['element']);_0x47610f['add'](_0x414c1b);}const _0xaf95b5=new Set();for(const _0x464b74 of _0x58d0a8['inline']){const _0x90c9e2=_0x1a184c['getGhsAttributeNameForElement'](_0x464b74['element']);_0xaf95b5['add'](_0x90c9e2);for(const _0xc55a03 of _0x464b74['ghsAttributes'])_0xaf95b5['add'](_0xc55a03);}for(const _0xad6226 of _0x47610f)_0x55d1e1['registerBlockAttribute'](_0xad6226),_0x55d1e1['descriptionFactory']['registerAttributeLabel'](_0xad6226,c(_0x2f029e,'FORMAT_STYLE'));for(const _0x37018d of _0xaf95b5)_0x55d1e1['registerInlineAttribute'](_0x37018d),_0x55d1e1['descriptionFactory']['registerAttributeLabel'](_0x37018d,c(_0x2f029e,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x482ba9=this['editor'],_0x54f438=_0x482ba9['locale'];_0x482ba9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5682bb=>{if('formatBlock'!=_0x5682bb['type']&&'formatInline'!=_0x5682bb['type'])return;const {data:_0x237771}=_0x5682bb;return _0x237771&&'style'===_0x237771['commandName']?_0x237771['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x54f438,'*Set\x20format:*\x20%0',_0x237771['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x54f438,'*Remove\x20format:*\x20%0',_0x237771['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x44ea50{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x41cecf){super(_0x41cecf),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1a1cc5=this['editor'],_0x5b9981=_0x1a1cc5['model']['document']['selection'];if(!_0x1a1cc5['plugins']['has']('TableEditing'))return;const _0x199efd=_0x1a1cc5['locale'],_0x318f74=_0x1a1cc5['plugins']['get']('TrackChangesEditing'),_0x17fadf=_0x1a1cc5['plugins']['get']('TableUtils');_0x318f74['descriptionFactory']['registerElementLabel']('table',_0x549123=>c(_0x199efd,'ELEMENT_TABLE',_0x549123)),this['_setupColumnsRowsFixing'](),_0x318f74['enableCommand']('insertTable'),_0x318f74['enableCommand']('selectTableRow'),_0x318f74['enableCommand']('selectTableColumn');for(const _0x9755c5 of['insertTableRowAbove','insertTableRowBelow']){const _0x3394f9=_0x1a1cc5['commands']['get'](_0x9755c5);_0x318f74['enableCommand'](_0x9755c5,_0x16bcfb=>{_0x1a1cc5['model']['change'](_0x37aaca=>{_0x16bcfb();const _0xdadf20='above'===_0x3394f9['order'],_0x46227c=_0x17fadf['getSelectionAffectedTableCells'](_0x5b9981),_0x4bd403=_0x17fadf['getRowIndexes'](_0x46227c),_0x2db6bc=_0xdadf20?_0x4bd403['first']-0x1:_0x4bd403['last']+0x1,_0x14bd7e=_0x46227c[0x0]['findAncestor']('table'),_0x3a85d8=_0x17fadf['createTableWalker'](_0x14bd7e,{'startRow':_0x2db6bc,'endRow':_0x2db6bc}),_0x7fee9=Array['from'](_0x3a85d8)['map'](_0x178d52=>_0x37aaca['createRangeOn'](_0x178d52['cell']));_0x318f74['markMultiRangeInsertion'](_0x7fee9,'tableRow');});});}for(const _0x1de51a of['insertTableColumnLeft','insertTableColumnRight']){const _0x5beb0c=_0x1a1cc5['commands']['get'](_0x1de51a);_0x318f74['enableCommand'](_0x1de51a,_0x44b56f=>{_0x1a1cc5['model']['change'](_0x18b975=>{_0x44b56f();const _0x204f13='left'===_0x5beb0c['order'],_0x25b216=_0x17fadf['getSelectionAffectedTableCells'](_0x5b9981),_0x2f361f=_0x17fadf['getColumnIndexes'](_0x25b216),_0x59db1e=_0x204f13?_0x2f361f['first']-0x1:_0x2f361f['last']+0x1,_0x2f8fc6=_0x25b216[0x0]['findAncestor']('table'),_0x58d9df=_0x17fadf['createTableWalker'](_0x2f8fc6,{'startRow':0x0,'column':_0x59db1e,'includeAllSlots':!0x1}),_0x480af2=Array['from'](_0x58d9df)['map'](_0x502100=>_0x18b975['createRangeOn'](_0x502100['cell']));_0x318f74['markMultiRangeInsertion'](_0x480af2,'tableColumn');});});}for(const _0x519dbb of['removeTableRow','removeTableColumn']){const _0x59f921=_0x519dbb['substr'](0xb),_0x3c7b90=_0x59f921['toLowerCase'](),_0x5165e2=_0x3c7b90['substr'](0x0,0x3)+'span',_0x419900='table'+_0x59f921,_0xa32f9c='min'+_0x59f921,_0x1dd529='max'+_0x59f921;_0x318f74['enableCommand'](_0x519dbb,()=>{_0x1a1cc5['model']['change'](_0x56a970=>{const _0x172e3e=_0x17fadf['getSelectionAffectedTableCells'](_0x5b9981),_0x4c92b4=_0x172e3e[0x0]['findAncestor']('table');let _0xf6488d;if('removeTableRow'==_0x519dbb){const _0x439247=_0x17fadf['getRowIndexes'](_0x172e3e);_0xf6488d={'startRow':_0x439247['first'],'endRow':_0x439247['last'],'includeAllSlots':!0x0};}else{const _0x351928=_0x17fadf['getColumnIndexes'](_0x172e3e);_0xf6488d={'startColumn':_0x351928['first'],'endColumn':_0x351928['last'],'includeAllSlots':!0x0};}const _0x527ebe=_0x17fadf['createTableWalker'](_0x4c92b4,_0xf6488d),_0x5d7a61=Array['from'](_0x527ebe)['map'](({cell:_0x255901})=>_0x255901),_0x1ab743=Ne(_0x5d7a61['filter'](_0x176741=>_0x176741['hasAttribute'](_0x5165e2))),_0x4468a9=Ne(_0x5d7a61['filter'](_0x13548f=>!_0x13548f['hasAttribute'](_0x5165e2)))['map'](_0x5413c2=>_0x56a970['createRangeOn'](_0x5413c2)),_0x340239=_0x318f74['markMultiRangeDeletion'](_0x4468a9,_0x419900);if(_0x340239&&('tableRow'==_0x340239['subType']||'tableColumn'==_0x340239['subType'])){const _0x251349=this['_getSuggestionCoords'](_0x340239);for(const _0x5169c1 of _0x1ab743){const _0x531095=_0x56a970['createRangeOn'](_0x5169c1),_0x51bf4e=_0x17fadf['getCellLocation'](_0x5169c1),_0x22fe95=_0x5169c1['getAttribute'](_0x5165e2)-0x1,_0x152b45=_0x251349[_0xa32f9c],_0x5cbe37=_0x251349[_0x1dd529];_0x152b45<=_0x51bf4e[_0x3c7b90]&&_0x51bf4e[_0x3c7b90]+_0x22fe95<=_0x5cbe37&&_0x340239['addRange'](_0x531095);}}});});}function _0x13ae22(_0x39c77c){const _0x272575=Array['from'](_0x5b9981['getRanges']())['map'](_0x248409=>_0x2f2fb6['fromRange'](_0x248409));_0x1a1cc5['model']['change'](_0x4dd659=>{const _0x4557cb=_0x4dd659['batch'];_0x39c77c=_0x39c77c['filter'](_0x5b0a2c=>'$graveyard'!=_0x5b0a2c['root']['rootName']),_0x4dd659['setSelection'](_0x39c77c),_0x1a1cc5['commands']['get']('removeTableRow')['refresh'](),_0x1a1cc5['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1a1cc5['model']['enqueueChange'](()=>{_0x1a1cc5['model']['enqueueChange'](_0x4557cb,_0xfe11b9=>{const _0x30e9c8=_0x272575['filter'](_0x4a129f=>'$graveyard'!=_0x4a129f['root']['rootName']);_0x30e9c8['length']>0x0&&_0xfe11b9['setSelection'](_0x30e9c8);for(const _0x3ac062 of _0x272575)_0x3ac062['detach']();});});});}function _0x19e364(_0x431e0c){_0x1a1cc5['model']['change'](_0x45153e=>{const _0x448451=Array['from'](_0x5b9981['getRanges']())['map'](_0xa6bde0=>_0x2f2fb6['fromRange'](_0xa6bde0)),_0x955a2a=[];for(const _0x787203 of _0x431e0c)for(const _0x1575f7 of _0x787203['getItems']({'shallow':!0x0}))_0x955a2a['push'](_0x1575f7);for(const _0x3d9a33 of _0x955a2a)'$graveyard'!=_0x3d9a33['root']['rootName']&&(_0x45153e['setSelection'](_0x45153e['createPositionAt'](_0x3d9a33,0x0)),_0x1a1cc5['commands']['get']('removeTableColumn')['refresh'](),_0x1a1cc5['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x21bcec=_0x448451['filter'](_0x56d7cf=>'$graveyard'!=_0x56d7cf['root']['rootName']);_0x21bcec['length']>0x0&&_0x45153e['setSelection'](_0x21bcec);for(const _0x191934 of _0x448451)_0x191934['detach']();});}function _0x29be14(_0x1bc106,_0x52f867){return _0x52f867['every'](_0x2bb115=>_0x1bc106['some'](_0x411c7f=>_0x411c7f['end']['isEqual'](_0x2bb115['start'])||_0x2bb115['end']['isEqual'](_0x411c7f['start'])));}function _0x1a6fb7(_0x3f7bbe,_0x347033){return!_0x3f7bbe['some'](_0x356eda=>_0x347033['some'](_0x5ee518=>_0x356eda['isIntersecting'](_0x5ee518)))&&_0x3f7bbe['some'](_0x2b69de=>_0x347033['some'](_0xd3c12e=>_0x2b69de['end']['isTouching'](_0xd3c12e['start'])));}_0x1a1cc5['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5360c1,_0x4fe781,_0x250b35)=>{if(!_0x250b35['options']['showSuggestionHighlights'])return;const _0x1a84c6=_0x4fe781['item'];if(!_0x1a84c6)return;const _0x73da8a=_0x250b35['mapper']['toViewElement'](_0x1a84c6);function _0x2a175f(_0x3022e5){return Array['isArray'](_0x3022e5)?_0x3022e5:[_0x3022e5];}_0x73da8a&&'tableCell'===_0x1a84c6['name']&&_0x131d57(_0x73da8a,_0x250b35['writer'],(_0x43f94d,_0x3b77cb,_0x4223b5)=>_0x4223b5['addClass'](_0x2a175f(_0x3b77cb['classes']),_0x43f94d),(_0x56a697,_0x32478c,_0x44f6f4)=>_0x44f6f4['removeClass'](_0x2a175f(_0x32478c['classes']),_0x56a697));},{'priority':'highest'}),_0x318f74['descriptionFactory']['registerDescriptionCallback'](_0x207040=>{if('insertion'!=_0x207040['type']&&'deletion'!=_0x207040['type'])return;const _0xba57c0=_0x207040['getContainedElement']();if(null!=_0xba57c0&&_0xba57c0['is']('element','table')){if('insertion'==_0x207040['type']){const _0x5e9557=_0x207040['getItems']()['filter'](_0x307bbc=>_0x307bbc['is']('$textProxy'))['map'](_0x1078e2=>_0x1078e2['data']);if(_0x5e9557['length'])return{'type':'insertion','content':c(_0x199efd,'*Insert:*\x20%0',c(_0x199efd,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5e9557['join']('\x20')+'\x22'))};}if('deletion'==_0x207040['type']){const _0x3e3d61=_0x207040['getItems']()['filter'](_0x2c961f=>_0x2c961f['is']('$textProxy'))['map'](_0x1485e0=>_0x1485e0['data']);if(_0x3e3d61['length'])return{'type':'deletion','content':c(_0x199efd,'*Remove:*\x20%0',c(_0x199efd,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3e3d61['join']('\x20')+'\x22'))};}}}),_0x318f74['descriptionFactory']['registerDescriptionCallback'](_0x489ecd=>{if('tableRow'==_0x489ecd['subType']){const _0x5c522e=_0x489ecd['getItems']()['filter'](_0xe7a604=>_0xe7a604['is']('$textProxy'))['map'](_0x429e4c=>_0x429e4c['data']),_0x1c171c=this['_getSuggestionCoords'](_0x489ecd),_0x35b2cd=_0x1c171c['maxRow']-_0x1c171c['minRow']+0x1;if('insertion'==_0x489ecd['type'])return _0x5c522e['length']?{'type':'insertion','content':c(_0x199efd,'*Insert:*\x20%0',c(_0x199efd,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x35b2cd,'\x22'+_0x5c522e['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x199efd,'*Insert:*\x20%0',c(_0x199efd,'ELEMENT_TABLE_ROW',_0x35b2cd))};if('deletion'==_0x489ecd['type'])return _0x5c522e['length']?{'type':'deletion','content':c(_0x199efd,'*Remove:*\x20%0',c(_0x199efd,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x35b2cd,'\x22'+_0x5c522e['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x199efd,'*Remove:*\x20%0',c(_0x199efd,'ELEMENT_TABLE_ROW',_0x35b2cd))};}if('tableColumn'==_0x489ecd['subType']){const _0x55e36c=_0x489ecd['getItems']()['filter'](_0x59394e=>_0x59394e['is']('$textProxy'))['map'](_0x3a3a53=>_0x3a3a53['data']),_0x5df6a3=this['_getSuggestionCoords'](_0x489ecd),_0x53b7c0=_0x5df6a3['maxColumn']-_0x5df6a3['minColumn']+0x1;if('insertion'==_0x489ecd['type'])return _0x55e36c['length']?{'type':'insertion','content':c(_0x199efd,'*Insert:*\x20%0',c(_0x199efd,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x53b7c0,'\x22'+_0x55e36c['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x199efd,'*Insert:*\x20%0',c(_0x199efd,'ELEMENT_TABLE_COLUMN',_0x53b7c0))};if('deletion'==_0x489ecd['type'])return _0x55e36c['length']?{'type':'deletion','content':c(_0x199efd,'*Remove:*\x20%0',c(_0x199efd,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x53b7c0,'\x22'+_0x55e36c['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x199efd,'*Remove:*\x20%0',c(_0x199efd,'ELEMENT_TABLE_COLUMN',_0x53b7c0))};}}),_0x318f74['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x13ae22),_0x318f74['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x13ae22),_0x318f74['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x19e364),_0x318f74['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x19e364),_0x318f74['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x29be14),_0x318f74['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x29be14),_0x318f74['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1a6fb7),_0x318f74['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1a6fb7);}['_acceptFormatSuggestionCallbackFactory'](){const _0xd7866e=this['editor'],_0x47f6ab=_0xd7866e['model']['document']['selection'];return(_0x27a596,_0x4e1ebf)=>{_0xd7866e['model']['change'](_0x368566=>{const {commandName:_0x4001e9,commandParams:_0x36dcbb}=_0x4e1ebf;let _0x22ae1b=_0x27a596[0x0]['end']['nodeBefore'];_0x36dcbb&&_0x36dcbb[0x0]&&!0x1===_0x36dcbb[0x0]['forceValue']&&(_0x22ae1b=_0x27a596[0x0]['start']['nodeAfter']);const _0x5ce407=_0x368566['createRangeIn'](_0x22ae1b);if('$graveyard'==_0x5ce407['root']['rootName'])return;const _0xff55d2=Array['from'](_0x47f6ab['getRanges']())['map'](_0x23b7f4=>_0x2f2fb6['fromRange'](_0x23b7f4));_0x368566['setSelection'](_0x5ce407),_0xd7866e['commands']['get'](_0x4001e9)['refresh'](),_0x36dcbb['push']({'forceDefaultExecution':!0x0}),_0xd7866e['execute'](_0x4001e9,..._0x36dcbb);const _0x3d9c9f=_0xff55d2['filter'](_0x12627f=>'$graveyard'!=_0x12627f['root']['rootName']);_0x3d9c9f['length']>0x0&&_0x368566['setSelection'](_0x3d9c9f);for(const _0x5b19a8 of _0xff55d2)_0x5b19a8['detach']();});};}['_getCoordsForCells'](_0x2b7486){const _0x4493fd=this['editor']['plugins']['get']('TableUtils');let _0x3f10d4=Number['MAX_SAFE_INTEGER'],_0x242845=Number['MIN_SAFE_INTEGER'],_0x5846db=Number['MAX_SAFE_INTEGER'],_0x14d906=Number['MIN_SAFE_INTEGER'];for(const _0x4536aa of _0x2b7486){if('$graveyard'==_0x4536aa['root']['rootName'])continue;const {row:_0x271ec9,column:_0x4a6edf}=_0x4493fd['getCellLocation'](_0x4536aa),_0x141aec=_0x4536aa['hasAttribute']('rowspan')?_0x4536aa['getAttribute']('rowspan')-0x1:0x0,_0x269144=_0x4536aa['hasAttribute']('colspan')?_0x4536aa['getAttribute']('colspan')-0x1:0x0;_0x3f10d4=_0x271ec9<_0x3f10d4?_0x271ec9:_0x3f10d4,_0x242845=_0x271ec9+_0x141aec>_0x242845?_0x271ec9+_0x141aec:_0x242845,_0x5846db=_0x4a6edf<_0x5846db?_0x4a6edf:_0x5846db,_0x14d906=_0x4a6edf+_0x269144>_0x14d906?_0x4a6edf+_0x269144:_0x14d906;}return{'minRow':_0x3f10d4,'maxRow':_0x242845,'minColumn':_0x5846db,'maxColumn':_0x14d906};}['_setupColumnsRowsFixing'](){const _0x1625ba=this['editor'],_0x1b0b8a=_0x1625ba['plugins']['get']('TrackChangesEditing'),_0x29b6e3=_0x1625ba['plugins']['get']('TableUtils');_0x1625ba['model']['document']['on']('change:data',()=>{const _0x1d905b=Array['from'](_0x1625ba['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x551679,data:_0x5ab0f4}of _0x1d905b){const {group:_0x4f24e5,id:_0x3d50a2,subType:_0x3156d2}=_0x1b0b8a['_splitMarkerName'](_0x551679);if('suggestion'!=_0x4f24e5)continue;if(null!=_0x5ab0f4['oldRange'])continue;const _0x813a45=_0x1b0b8a['getSuggestion'](_0x3d50a2);this['_tablePostFixingSubtypes']['includes'](_0x3156d2)&&this['_tableSuggestions']['add'](_0x813a45);}},{'priority':'low'});const _0x481697=(_0x4a6e06,_0x75a3de)=>{let _0x2dfbce=!0x1;const _0x58c726=_0x75a3de['createRangeOn'](_0x4a6e06),_0x3322ac=_0x4a6e06['findAncestor']('table'),_0x4facc8=_0x29b6e3['getCellLocation'](_0x4a6e06);for(const _0x2787d3 of this['_tableSuggestions']){const _0x27c406=_0x2787d3['subType'],_0x21f41d=_0x27c406['startsWith']('tablePaste'),_0x438a8a=_0x27c406['substr'](_0x21f41d?0xa:0x5),_0x429e06=_0x438a8a['toLowerCase'](),_0x4c2b82=_0x429e06['substr'](0x0,0x3)+'span',_0x44a82c='min'+_0x438a8a,_0x892b11='max'+_0x438a8a;if(!_0x2787d3['isInContent'])continue;if(_0x3322ac!=_0x2787d3['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2787d3['isIntersectingWithRange'](_0x58c726))continue;const _0x21d15a=_0x4a6e06['hasAttribute'](_0x4c2b82)?_0x4a6e06['getAttribute'](_0x4c2b82)-0x1:0x0,_0x22f3dd=this['_getSuggestionCoords'](_0x2787d3),_0x702291=_0x22f3dd[_0x44a82c],_0x315aca=_0x22f3dd[_0x892b11];_0x702291<=_0x4facc8[_0x429e06]&&_0x4facc8[_0x429e06]+_0x21d15a<=_0x315aca&&(_0x2787d3['addRange'](_0x58c726),_0x2dfbce=!0x0);}return _0x2dfbce;};_0x1625ba['model']['document']['registerPostFixer'](_0xbb263f=>{let _0x4a9b3e=!0x1;for(const _0x32cef1 of _0x1625ba['model']['document']['differ']['getChanges']())if('insert'==_0x32cef1['type']){if('tableRow'==_0x32cef1['name']){for(const _0x4fbc7b of _0x32cef1['position']['nodeAfter']['getChildren']())_0x4a9b3e=_0x4a9b3e||_0x481697(_0x4fbc7b,_0xbb263f);}else'tableCell'==_0x32cef1['name']&&(_0x4a9b3e=_0x4a9b3e||_0x481697(_0x32cef1['position']['nodeAfter'],_0xbb263f));}return _0x4a9b3e;});}['_getSuggestionCoords'](_0x52c8d7){return this['_getCoordsForCells'](_0x52c8d7['getRanges']()['map'](_0x15fdee=>_0x15fdee['start']['nodeAfter']));}}function Ne(_0x97caec){return Array['from'](new Set(_0x97caec)['values']());}class Nt extends _0x44ea50{static get['requires'](){return[Ct];}['afterInit'](){const _0x2fbb1f=this['editor'],_0x30c5f4=_0x2fbb1f['model']['document']['selection'],_0x540bc9=_0x2fbb1f['locale'];if(!_0x2fbb1f['plugins']['has']('TableEditing'))return;const _0x383cfa=_0x2fbb1f['plugins']['get']('TrackChangesEditing'),_0x433994=_0x2fbb1f['plugins']['get']('TableUtils'),_0x4ec229=_0x2fbb1f['plugins']['get'](Ct);_0x4ec229['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x383cfa['enableCommand']('mergeTableCells',()=>{const _0x3b0641=_0x433994['getSelectionAffectedTableCells'](_0x2fbb1f['model']['document']['selection']);_0x2fbb1f['model']['change'](()=>{_0x383cfa['markMultiRangeBlockFormat'](_0x3b0641,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2fbb1f['commands']['get']('mergeTableCells')['on']('execute',(_0x2f996f,_0xb8ef19)=>{_0x2fbb1f['commands']['get']('trackChanges')['value']&&(_0xb8ef19['length']>0x0&&_0xb8ef19[_0xb8ef19['length']-0x1]&&_0xb8ef19[_0xb8ef19['length']-0x1]['forceDefaultExecution']||_0x383cfa['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2f996f['stop']());},{'priority':'highest'});for(const _0x3f4755 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x531e19=_0x2fbb1f['commands']['get'](_0x3f4755);_0x383cfa['enableCommand'](_0x3f4755,()=>{const _0x559fe7=_0x2fbb1f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5f19a6=>_0x5f19a6['is']('element','tableCell')),_0x29ed6e=_0x531e19['value'];_0x2fbb1f['model']['change'](()=>{_0x383cfa['markMultiRangeBlockFormat']([_0x559fe7,_0x29ed6e],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3e160d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1b616e=_0x2fbb1f['commands']['get'](_0x3e160d);_0x383cfa['enableCommand'](_0x3e160d,()=>{const _0x1b7556=_0x433994['getSelectionAffectedTableCells'](_0x2fbb1f['model']['document']['selection'])[0x0],_0x3d8971=_0x1b7556['findAncestor']('table'),{column:_0x4840c8,row:_0x4ba109}=_0x433994['getCellLocation'](_0x1b7556);let _0x3056c2=[];if('horizontally'==_0x1b616e['direction']){const _0x4f1194=_0x433994['createTableWalker'](_0x3d8971,{'startRow':_0x4ba109,'endRow':_0x4ba109,'includeAllSlots':!0x0});_0x3056c2=Array['from'](_0x4f1194)['map'](_0x3aef4d=>_0x3aef4d['cell']);}else{const _0x2497f0=_0x433994['createTableWalker'](_0x3d8971,{'column':_0x4840c8,'includeAllSlots':!0x0});_0x3056c2=Array['from'](_0x2497f0)['map'](_0x786a2a=>_0x786a2a['cell']);}_0x2fbb1f['model']['change'](_0x2c685a=>{_0x383cfa['markBlockFormat'](_0x2c685a['createRangeOn'](_0x1b7556),{'commandName':_0x3e160d,'commandParams':[]},_0x3056c2,_0x3e160d);});});}_0x383cfa['descriptionFactory']['registerDescriptionCallback'](_0x26b6dc=>{if('formatBlock'!=_0x26b6dc['type']&&'formatInline'!=_0x26b6dc['type'])return;const {data:_0x51d08d}=_0x26b6dc;return _0x51d08d&&'mergeTableCells'==_0x51d08d['commandName']?{'type':'format','content':c(_0x540bc9,'*Merge\x20cells*')}:void 0x0;}),_0x383cfa['descriptionFactory']['registerDescriptionCallback'](_0x81b4fd=>{if('formatBlock'!=_0x81b4fd['type']&&'formatInline'!=_0x81b4fd['type'])return;const {data:_0x5e5f28}=_0x81b4fd;return _0x5e5f28?'splitTableCellVertically'==_0x5e5f28['commandName']?{'type':'format','content':c(_0x540bc9,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5e5f28['commandName']?{'type':'format','content':c(_0x540bc9,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x387ca2=_0x4ec229['_acceptFormatSuggestionCallbackFactory']();for(const _0x319159 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x383cfa['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x319159,'accept',_0x387ca2);for(const _0x5b2f4d of['splitTableCellVertically','splitTableCellHorizontally'])_0x383cfa['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5b2f4d,'accept',_0x387ca2);_0x383cfa['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4253e9=>{_0x2fbb1f['model']['change'](_0x2297a6=>{const _0x4da948=Array['from'](_0x30c5f4['getRanges']())['map'](_0x1d21f8=>_0x2f2fb6['fromRange'](_0x1d21f8));_0x2297a6['setSelection'](_0x4253e9),_0x2fbb1f['commands']['get']('mergeTableCells')['refresh'](),_0x2fbb1f['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x36b779=_0x4da948['filter'](_0x586787=>'$graveyard'!=_0x586787['root']['rootName']);_0x36b779['length']>0x0&&_0x2297a6['setSelection'](_0x36b779);for(const _0x5754dc of _0x4da948)_0x5754dc['detach']();});});for(const _0x425b10 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1bc017=_0x2fbb1f['commands']['get'](_0x425b10);_0x1bc017['on']('set:isEnabled',(_0x54a90d,_0x37fc7a,_0x457a28)=>{if(_0x457a28){const _0x3b3c1c=_0x2fbb1f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x36d822=>_0x36d822['is']('element','tableCell'));this['_areMergableCells'](_0x1bc017['value'],_0x3b3c1c)||(_0x54a90d['return']=!0x1,_0x54a90d['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x52a8b6=this['editor']['commands']['get']('mergeTableCells'),_0x5b813a=this['editor']['plugins']['get']('TableUtils');if(!_0x52a8b6['isEnabled'])return!0x1;const _0x45e2af=_0x5b813a['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x464b50 of _0x45e2af)for(const _0xa7a6df of _0x45e2af)if(_0x464b50!=_0xa7a6df&&!this['_areMergableCells'](_0x464b50,_0xa7a6df))return!0x1;return!0x0;}['_areMergableCells'](_0x4143f3,_0x1e97f8){const _0x5ee4ea=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ddeff=this['editor']['model']['createRangeOn'](_0x4143f3),_0x3e26b8=this['editor']['model']['createRangeOn'](_0x1e97f8),_0x311375=new Set(),_0x3bb2aa=new Set();for(const _0x49d0a9 of _0x5ee4ea['getSuggestions']())if(('insertion'==_0x49d0a9['type']||'deletion'==_0x49d0a9['type']||'mergeTableCells'==_0x49d0a9['subType'])&&_0x49d0a9['isInContent']){for(const _0x1b97dc of _0x49d0a9['getRanges']())_0x1b97dc['containsRange'](_0x3ddeff,!0x0)&&_0x311375['add'](_0x49d0a9['type']+':'+_0x49d0a9['author']['id']),_0x1b97dc['containsRange'](_0x3e26b8,!0x0)&&_0x3bb2aa['add'](_0x49d0a9['type']+':'+_0x49d0a9['author']['id']);}if(_0x311375['size']!=_0x3bb2aa['size'])return!0x1;for(const _0x551809 of _0x311375)if(!_0x3bb2aa['has'](_0x551809))return!0x1;return!0x0;}}class Dt extends _0x44ea50{static get['requires'](){return[Ct];}['afterInit'](){const _0x6fce30=this['editor'];if(!_0x6fce30['plugins']['has']('TableEditing'))return;const _0x12fd4e=_0x6fce30['locale'],_0x91823c=_0x6fce30['plugins']['get']('TrackChangesEditing');_0x91823c['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x91823c['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x91823c['registerBlockAttribute']('headingRows'),_0x91823c['registerBlockAttribute']('headingColumns'),_0x91823c['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x12fd4e,'FORMAT_HEADER_ROW')),_0x91823c['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x12fd4e,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x275470=this['editor']['plugins']['get']('TrackChangesEditing'),_0x462f9d=this['editor']['plugins']['get']('TableUtils'),_0x2df147=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x204891({showActiveMarker:_0x8ae7d2=!0x0,setDataAttribute:_0x497aca=!0x0}={}){return(_0x474abd,_0x9e97da,_0x532468)=>{const {type:_0x3fdf37,id:_0x425176}=_0x275470['_splitMarkerName'](_0x9e97da['markerName']),_0x47f839=_0x275470['getSuggestion'](_0x425176),_0x4f6728=_0x47f839['data'];if('formatBlock'!=_0x47f839['type']||!_0x4f6728||'setTableColumnHeader'!=_0x4f6728['commandName'])return;if(_0x9e97da['item'])return void _0x474abd['stop']();if(!_0x532468['consumable']['consume'](_0x9e97da['markerRange'],_0x474abd['name']))return;const _0x59e70e=_0x9e97da['markerRange']['start']['nodeAfter'],_0x352a41=_0x9e97da['markerRange']['end']['nodeBefore'],_0x4463af=_0x59e70e['parent']['parent'],{column:_0x39e4c2}=_0x462f9d['getCellLocation'](_0x59e70e),{column:_0x44b883}=_0x462f9d['getCellLocation'](_0x352a41);for(let _0x4260e0=_0x39e4c2;_0x4260e0<=_0x44b883;_0x4260e0++){const _0x5ebb18=_0x462f9d['createTableWalker'](_0x4463af,{'column':_0x4260e0,'includeAllSlots':!0x1});for(const _0x31374e of _0x5ebb18){const _0x19b342=_0x31374e['cell'],_0x370075=_0x532468['mapper']['toViewElement'](_0x19b342);_0x532468['writer']['addClass']('ck-suggestion-marker-'+_0x3fdf37,_0x370075),_0x497aca&&_0x532468['writer']['setAttribute']('data-suggestion',_0x425176,_0x370075),_0x532468['mapper']['bindElementToMarker'](_0x370075,_0x9e97da['markerName']),_0x8ae7d2&&(_0x275470['activeMarkers']['includes'](_0x9e97da['markerName'])?_0x532468['writer']['addClass']('ck-suggestion-marker--active',_0x370075):_0x532468['writer']['removeClass']('ck-suggestion-marker--active',_0x370075));}}};}_0x275470['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2df147),_0x275470['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2df147),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x204891(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x234e55,_0x4dd04f,_0x1beb02)=>{_0x1beb02['options']['showSuggestionHighlights']&&_0x204891({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x234e55,_0x4dd04f,_0x1beb02);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x62afb2,_0x165493,_0x219348)=>{const {type:_0x1ba9d5,id:_0xf9510e}=_0x275470['_splitMarkerName'](_0x165493['markerName']),_0x12cd8a=_0x275470['getSuggestion'](_0xf9510e),_0x1c407a=_0x12cd8a['data'];if('formatBlock'!=_0x12cd8a['type']||!_0x1c407a||'setTableColumnHeader'!=_0x1c407a['commandName'])return;const _0x4f0d0a=_0x219348['mapper']['markerNameToElements'](_0x165493['markerName']);if(_0x4f0d0a){for(const _0x52aca6 of _0x4f0d0a)_0x219348['writer']['removeClass']('ck-suggestion-marker-'+_0x1ba9d5,_0x52aca6),_0x219348['writer']['removeClass']('ck-suggestion-marker--active',_0x52aca6),_0x219348['writer']['removeAttribute']('data-suggestion',_0x52aca6),_0x219348['mapper']['unbindElementFromMarkerName'](_0x52aca6,_0x165493['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45dab6=this['editor'],_0x56dd37=_0x45dab6['locale'];function _0x5e1e93(_0x44edfe){return{'type':'format','content':c(_0x56dd37,'*Format:*\x20%0',_0x44edfe)};}_0x45dab6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc51299=>{if('formatBlock'!=_0xc51299['type'])return;const {data:_0x335d96}=_0xc51299;if(_0x335d96){if('setTableRowHeader'==_0x335d96['commandName']){const _0x256b94=_0x335d96['commandParams'][0x0]['forceValue'];return _0x5e1e93(c(_0x56dd37,_0x256b94?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x335d96['commandName']){const _0x16b8e3=_0x335d96['commandParams'][0x0]['forceValue'];return _0x5e1e93(c(_0x56dd37,_0x16b8e3?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x4edab7=>[_0x4edab7,null]));class Mt extends _0x44ea50{static get['requires'](){return[Ct];}['afterInit'](){const _0x542577=this['editor'];if(!_0x542577['plugins']['has']('TableClipboard'))return;const _0x5d4f08=_0x542577['plugins']['get']('TrackChangesEditing'),_0x7f1937=_0x542577['plugins']['get']('TableUtils'),_0x2ee41e=_0x542577['plugins']['get'](Ct),_0x2fd16=_0x542577['plugins']['get']('TableClipboard');_0x2ee41e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x542577['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x542577['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2d17be=null;_0x542577['model']['on']('insertContent',(_0x28fa74,_0x47217c)=>{const [_0x593307,_0x12867e]=_0x47217c,_0x43f543=_0x47217c[_0x47217c['length']-0x1];_0x43f543&&_0x43f543['forceDefaultExecution']||_0x5d4f08['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x53c8b5,_0xbe28cf,_0x3e6986,_0x28ace5,_0xa6298c){if(_0xbe28cf&&!_0xbe28cf['is']('documentSelection'))return!0x1;const _0x13033a=_0xa6298c['getTableIfOnlyTableInContent'](_0x53c8b5,_0x3e6986);if(!_0x13033a||!Ue(_0x13033a,void 0x0,_0x28ace5))return!0x1;const _0x5b15c3=_0x28ace5['getSelectionAffectedTableCells'](_0x3e6986['document']['selection']);if(!_0x5b15c3['length'])return!0x1;const _0xa23b2b=_0x5b15c3[0x0]['findAncestor']('table'),_0x385c33=_0x28ace5['getRowIndexes'](_0x5b15c3),_0x1c3253=_0x28ace5['getColumnIndexes'](_0x5b15c3),_0x4f393a={'startRow':_0x385c33['first'],'endRow':_0x385c33['last'],'startColumn':_0x1c3253['first'],'endColumn':_0x1c3253['last']};return 0x1==_0x5b15c3['length']&&(_0x4f393a['endRow']+=_0x28ace5['getRows'](_0x13033a)-0x1,_0x4f393a['endColumn']+=_0x28ace5['getColumns'](_0x13033a)-0x1),Ue(_0xa23b2b,_0x4f393a,_0x28ace5);}(_0x593307,_0x12867e,_0x542577['model'],_0x7f1937,_0x2fd16)&&(_0x28fa74['stop'](),_0x2d17be={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x542577['model']['change'](()=>{_0x542577['model']['insertContent'](_0x47217c[0x0],_0x47217c[0x1],_0x47217c[0x2],{'forceDefaultExecution':!0x0});const _0x1b04e3=_0x10aa54(),{rowInsertionRanges:_0x2f5f2f,columnInsertionRanges:_0xc8bf3e,insertionRanges:_0x59c6ec,deletionRanges:_0x4e4aba,cells:_0x4dcd36}=_0x2d17be;_0x2f5f2f['length']&&_0x5d4f08['markMultiRangeInsertion'](_0x2f5f2f,'tablePasteRow',{'tablePasteChainId':_0x1b04e3}),_0xc8bf3e['length']&&_0x5d4f08['markMultiRangeInsertion'](_0xc8bf3e,'tablePasteColumn',{'tablePasteChainId':_0x1b04e3}),_0x59c6ec['length']&&(_0x5d4f08['markMultiRangeInsertion'](_0x59c6ec,'tablePaste',{'tablePasteChainId':_0x1b04e3,'skipNestingCheck':!0x0}),_0x59c6ec['forEach'](_0x48340b=>_0x48340b['detach']?.())),_0x4e4aba['length']&&(_0x5d4f08['markMultiRangeDeletion'](_0x4e4aba,'tablePaste',{'tablePasteChainId':_0x1b04e3,'skipNestingCheck':!0x0}),_0x4e4aba['forEach'](_0x47845c=>_0x47845c['detach']?.()));const _0x4ceb80=_0x5d4f08['markMultiRangeBlockFormat'](_0x4dcd36['map'](({element:_0xaaec85})=>_0xaaec85),{'formatGroupId':_0x10aa54()},[],'tablePasteCell',{'tablePasteChainId':_0x1b04e3});if(_0x4ceb80){const _0x26181f=_0x4ceb80['getMarkers'](),_0x5e943a=[];for(const {element:_0x161dfb,attributes:_0x1672bc}of _0x4dcd36){if(!_0x1672bc)continue;const _0x22178a=_0x542577['model']['createRangeOn'](_0x161dfb),_0x10e2fb=_0x26181f['find'](_0x5c089f=>_0x5c089f['getRange']()['isEqual'](_0x22178a));_0x10e2fb&&_0x5e943a['push']([_0x10e2fb['name'],_0x1672bc]);}_0x5e943a['length']&&_0x4ceb80['setAttribute']('markerAttributes',Object['fromEntries'](_0x5e943a));}_0x2d17be=null;}));},{'priority':_0x52fdb4['high']+0xa}),_0x542577['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xef53a1,_0x169a7d)=>{const [_0x4a3767,_0xb6eee9,,_0x59a64d]=_0x169a7d;if(!_0x2d17be)return;_0xef53a1['stop']();const _0x5eb7fc=_0x4a3767['cell'],_0x18bc09=_0xb6eee9,_0x5daee2=Oe(_0x5eb7fc),_0x10617a=Oe(_0x18bc09);_0xef53a1['return']=_0x5eb7fc;let _0xbf7c21=null,_0x3ebd09=null;if(_0x10617a||_0x5daee2){if(_0x5daee2&&!_0x10617a){_0x59a64d['remove'](_0x5eb7fc['getChild'](0x0));for(const _0x3f3161 of Array['from'](_0x18bc09['getChildren']()))_0x59a64d['insert'](_0x3f3161,_0x5eb7fc,'end');const _0x208fad=_0x2d17be['rowInsertionIndexes']['includes'](_0x4a3767['row']),_0x3a8f66=_0x2d17be['columnInsertionIndexes']['includes'](_0x4a3767['column']);_0x208fad||_0x3a8f66||(_0xbf7c21=_0x2f2fb6['fromRange'](_0x59a64d['createRangeIn'](_0x5eb7fc)));}else _0x10617a&&!_0x5daee2&&(_0x3ebd09=_0x59a64d['createRangeIn'](_0x5eb7fc));}else{const _0xc84182=_0x59a64d['createElement']('tableCellSuggestion'),_0x35913f=_0x59a64d['createElement']('tableCellSuggestion');_0x59a64d['wrap'](_0x59a64d['createRangeIn'](_0x5eb7fc),_0x35913f),_0x59a64d['insert'](_0xc84182,_0x5eb7fc,0x0);for(const _0x91a754 of Array['from'](_0x18bc09['getChildren']()))_0x59a64d['insert'](_0x91a754,_0xc84182,'end');_0xbf7c21=_0x2f2fb6['fromRange'](_0x59a64d['createRangeOn'](_0xc84182)),_0x3ebd09=_0x2f2fb6['fromRange'](_0x59a64d['createRangeOn'](_0x35913f));}const _0x126aa2=Array['from'](_0x18bc09['getAttributes']())['filter'](([_0x58d14e])=>Be['includes'](_0x58d14e));_0x2d17be['cells']['push']({'element':_0x5eb7fc,'attributes':_0x126aa2['length']?Object['fromEntries'](_0x126aa2):null}),_0xbf7c21&&_0x2d17be['insertionRanges']['push'](_0xbf7c21),_0x3ebd09&&_0x2d17be['deletionRanges']['push'](_0x3ebd09);},{'priority':'high'}),_0x7f1937['on']('insertColumns',(_0x1b955f,_0x382ed8)=>{const [_0x33877d,_0x194632={}]=_0x382ed8;if(!_0x2d17be)return;const _0x2cd0ed=_0x194632['at']||0x0,_0x530ec2=_0x194632['columns']||0x1;_0x2d17be['columnInsertionIndexes']=new Array(_0x530ec2)['fill'](_0x2cd0ed)['map']((_0x2eec0d,_0x38971f)=>_0x2eec0d+_0x38971f);for(const {cell:_0x23bbb4}of _0x7f1937['createTableWalker'](_0x33877d,{'startColumn':_0x2cd0ed,'endColumn':_0x2cd0ed+_0x530ec2-0x1}))_0x2d17be['columnInsertionRanges']['push'](_0x542577['model']['createRangeOn'](_0x23bbb4));},{'priority':'low'}),_0x7f1937['on']('insertRows',(_0x106f1c,_0x26904b)=>{const [_0x1ba596,_0x1b4ff0={}]=_0x26904b;if(!_0x2d17be)return;const _0x272931=_0x1b4ff0['at']||0x0,_0x236753=_0x1b4ff0['rows']||0x1;_0x2d17be['rowInsertionIndexes']=new Array(_0x236753)['fill'](_0x272931)['map']((_0x3afc31,_0x2fedf3)=>_0x3afc31+_0x2fedf3);for(const {cell:_0x58481f}of _0x7f1937['createTableWalker'](_0x1ba596,{'startRow':_0x272931,'endRow':_0x272931+_0x236753-0x1}))_0x2d17be['rowInsertionRanges']['push'](_0x542577['model']['createRangeOn'](_0x58481f));},{'priority':'low'}),_0x5d4f08['descriptionFactory']['registerDescriptionCallback'](_0x1532b3=>{if(_0x1532b3['subType']&&_0x1532b3['subType']['startsWith']('tablePaste'))return _0x1532b3['previous']?{}:{'type':'insertion','content':c(_0x542577['locale'],'*Replace\x20table\x20cells*')};});const _0x54650a=()=>!0x1;for(const _0x51e1b5 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5d4f08['_suggestionFactory']['registerCustomCallback']('insertion',_0x51e1b5,'join',_0x54650a),_0x5d4f08['_suggestionFactory']['registerCustomCallback']('deletion',_0x51e1b5,'join',_0x54650a),_0x5d4f08['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x51e1b5,'join',_0x54650a);_0x5d4f08['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x54650a),_0x5d4f08['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4be71f,_0x7464e3,_0x59062f)=>{const _0x2df077=_0x4be71f['map'](_0x143541=>_0x143541['getContainedElement']())['filter'](_0x2475c2=>_0x2475c2),_0x35d5ce=new Map(_0x2df077['map'](_0x5dec33=>[_0x5dec33,null]));if(_0x2d17be){for(const {element:_0x57bb55,attributes:_0x49c997}of _0x2d17be['cells'])_0x49c997&&_0x35d5ce['set'](_0x57bb55,_0x49c997);}else{if(_0x59062f&&_0x59062f['markerAttributes'])for(const [_0x49bf3a,_0x4aa75d]of Object['entries'](_0x59062f['markerAttributes'])){const _0xaed56e=_0x542577['model']['markers']['get'](_0x49bf3a),_0x3802e5=_0xaed56e?_0xaed56e['getRange']()['getContainedElement']():null;_0x3802e5&&_0x35d5ce['set'](_0x3802e5,_0x4aa75d);}}_0x542577['model']['change'](_0x59084c=>{for(const [_0x28fe0c,_0x415b86]of _0x35d5ce)_0x59084c['setAttributes']({...xe,..._0x415b86},_0x28fe0c);});});const _0x4b8a72=(_0x310117,_0x551613)=>{_0x5d4f08['_suggestionFactory']['registerCustomCallback'](_0x310117,'tablePaste',_0x551613,(_0x6658da,_0x56dd33,_0x544a26)=>{_0x542577['model']['change'](_0x26e349=>{const _0x43c170=[];for(const _0x20dd0b of _0x6658da){const _0x33b9b7=_0x20dd0b['start']['nodeAfter'];_0x33b9b7['is']('element','tableCellSuggestion')&&_0x43c170['push'](_0x33b9b7);}_0x5d4f08['_suggestionFactory']['getSuggestionCallback'](_0x310117,null,_0x551613)(_0x6658da,_0x56dd33,_0x544a26);for(const _0x1c22e6 of _0x43c170)'$graveyard'!=_0x1c22e6['root']['rootName']&&_0x26e349['unwrap'](_0x1c22e6);});});};_0x4b8a72('insertion','accept'),_0x4b8a72('insertion','discard'),_0x4b8a72('deletion','accept'),_0x4b8a72('deletion','discard'),_0x5d4f08['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x390347=>{const _0x1d5154=_0x390347['map'](_0x241e41=>_0x241e41['getContainedElement']()),_0x3f9ab4=_0x1d5154[0x0]['findAncestor']('table'),{minRow:_0x22a9e5,maxRow:_0x2d6593}=_0x2ee41e['_getCoordsForCells'](_0x1d5154);_0x7f1937['removeRows'](_0x3f9ab4,{'at':_0x22a9e5,'rows':_0x2d6593-_0x22a9e5+0x1});}),_0x5d4f08['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x39a1be=>{const _0x4350b0=_0x39a1be['map'](_0x1cbf76=>_0x1cbf76['getContainedElement']()),_0x124df8=_0x4350b0[0x0]['findAncestor']('table'),{minColumn:_0x41c869,maxColumn:_0x426ad6}=_0x2ee41e['_getCoordsForCells'](_0x4350b0);_0x7f1937['removeColumns'](_0x124df8,{'at':_0x41c869,'columns':_0x426ad6-_0x41c869+0x1});});const _0x867df1=(_0x2f2ccf,_0x4914a6)=>{if(!_0x4914a6['subType']||!_0x4914a6['subType']['startsWith']('tablePaste'))return;const _0x43c8c3=_0x4914a6['attributes']['tablePasteChainId'],_0x328856=_0x5d4f08['getSuggestions']()['filter'](_0x1077f8=>_0x1077f8['isInContent']&&_0x1077f8['attributes']&&_0x1077f8['attributes']['tablePasteChainId']==_0x43c8c3);_0x328856['length']&&_0x4914a6['getAllAdjacentSuggestions']()['length']!=_0x328856['length']&&_0x328856['reduce']((_0x260e9c,_0x2cf422)=>(_0x260e9c['next']=_0x2cf422,_0x2cf422['previous']=_0x260e9c,_0x2cf422));};function _0x33cde7(_0x2aae9,_0x468967=!0x0){const {id:_0x22cdc0,authorId:_0x44f0d2}=_0x5d4f08['_splitMarkerName'](_0x2aae9['markerName']),_0x1e81aa=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x32bf9b=_0x5d4f08['activeMarkers']['includes'](_0x2aae9['markerName']);return _0x32bf9b&&_0x1e81aa['push']('ck-suggestion-marker--active'),{'classes':_0x1e81aa,'attributes':{'data-suggestion':_0x22cdc0,'data-author-id':_0x44f0d2},'priority':_0x32bf9b&&_0x468967?0xbc2:0xbb8};}_0x5d4f08['on']('suggestionLoaded',_0x867df1,{'priority':'high'}),_0x5d4f08['on']('suggestionUnloaded',_0x867df1,{'priority':'high'}),_0x542577['model']['document']['registerPostFixer'](()=>{let _0x396922=!0x1;const _0x2142c9=Array['from'](_0x542577['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3a2bb8,data:_0x3aab97}of _0x2142c9){const {group:_0x50a7c6,type:_0x2caa3f,id:_0x47c59d}=_0x5d4f08['_splitMarkerName'](_0x3a2bb8);if('suggestion'!=_0x50a7c6||'deletion'!=_0x2caa3f||_0x3aab97['oldRange'])continue;if(!_0x5d4f08['hasSuggestion'](_0x47c59d))continue;const _0x1a87a6=_0x5d4f08['getSuggestion'](_0x47c59d)['getRanges'](),_0xe862c0=_0x542577['plugins']['get']('Users')['me'];for(const _0x2d702d of _0x5d4f08['getSuggestions']()){if(!_0x2d702d['isInContent']||_0x2d702d['author']!=_0xe862c0)continue;if('formatBlock'!=_0x2d702d['type']||'tablePasteCell'!=_0x2d702d['subType'])continue;if(_0x2d702d['getRanges']()['every'](_0x15f7ce=>_0x1a87a6['some'](_0x5af22b=>_0x5af22b['containsRange'](_0x15f7ce,!0x0)))){for(const _0x5ec7ac of _0x2d702d['getAllAdjacentSuggestions']())_0x5ec7ac['isInContent']&&(_0x5ec7ac['discard'](),_0x396922=!0x0);}}}return _0x396922;}),_0x542577['model']['document']['registerPostFixer'](_0x490a9f=>{const _0x45d977=_0x542577['commands']['get']('redo');if(!_0x45d977||!_0x45d977['_createdBatches']['has'](_0x490a9f['batch']))return!0x1;let _0x250f19=!0x1;const _0x5617f0=_0x542577['plugins']['get']('Users')['me'],_0x55f340=_0x542577['model']['document']['differ']['getChanges'](),_0xaeaef7=Array['from'](_0x542577['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xa71569,data:_0xa0ea91})=>{const {group:_0x1a5443,subType:_0x5b9d13,authorId:_0x219463}=_0x5d4f08['_splitMarkerName'](_0xa71569);return'suggestion'==_0x1a5443&&'tablePaste'==_0x5b9d13&&_0x219463==_0x5617f0['id']&&!_0xa0ea91['oldRange'];});for(const _0x1bb0b6 of _0x55f340){if('insert'!=_0x1bb0b6['type']||'tableCellSuggestion'!=_0x1bb0b6['name']||0x1!=_0x1bb0b6['length'])continue;const _0x277eb2=_0x490a9f['createRange'](_0x1bb0b6['position'],_0x1bb0b6['position']['getShiftedBy'](0x1));if(!_0xaeaef7['find'](({data:_0x1bb4e1})=>_0x1bb4e1['newRange']['isEqual'](_0x277eb2))){for(const {name:_0x41399c,data:_0x480133}of _0xaeaef7)if(_0x277eb2['containsRange'](_0x480133['newRange'])){_0x490a9f['updateMarker'](_0x41399c,{'range':_0x277eb2}),_0x250f19=!0x0;break;}}}return _0x250f19;}),_0x542577['model']['document']['registerPostFixer'](_0x3f241b=>{let _0x497cb2=!0x1;const _0xe95650=_0x542577['plugins']['get']('Users')['me'],_0x59e1e2=_0x5d4f08['getSuggestions']()['filter'](_0x1fca0b=>_0x1fca0b['isInContent']&&_0x1fca0b['author']==_0xe95650),_0x445c5b=new Set(),_0x2a441d=new Set();for(const _0x36a342 of _0x59e1e2)if('tablePaste'==_0x36a342['subType'])for(const _0x5508c7 of _0x36a342['getMarkers']()){const _0x4e7634=_0x5508c7['getRange']()['getContainedElement']();if(_0x4e7634){if(_0x4e7634['is']('element','tableCellSuggestion')&&Oe(_0x4e7634)){_0x36a342['removeMarker'](_0x5508c7['name']),_0x445c5b['add'](_0x4e7634),_0x497cb2=!0x0;const _0x3e9fb6=_0x4e7634['nextSibling'],_0x1f54e3=_0x4e7634['previousSibling'],_0x45b9f0=_0x3e9fb6&&_0x3e9fb6['is']('element','tableCellSuggestion'),_0x4445a6=_0x1f54e3&&_0x1f54e3['is']('element','tableCellSuggestion');_0x45b9f0&&!_0x445c5b['has'](_0x3e9fb6)&&_0x2a441d['add'](_0x3e9fb6),_0x4445a6&&!_0x445c5b['has'](_0x1f54e3)&&_0x2a441d['add'](_0x1f54e3);}else _0x4e7634['is']('element','paragraph')&&_0x4e7634['isEmpty']&&(_0x36a342['removeMarker'](_0x5508c7['name']),_0x497cb2=!0x0);}}else{if('tablePasteCell'==_0x36a342['subType']){if(!_0x36a342['attributes']||!_0x36a342['attributes']['tablePasteChainId'])continue;const _0x55df76=_0x36a342['attributes']['markerAttributes'];if(_0x55df76&&Object['keys'](_0x55df76)['length'])continue;const _0x24461f=_0x36a342['attributes']['tablePasteChainId'];let _0x3802ef=!0x0,_0x1d80bf=!0x0;for(const _0x744978 of _0x59e1e2)if(_0x744978['subType']&&_0x744978['subType']['startsWith']('tablePaste')){if(!_0x744978['attributes']['tablePasteChainId']){_0x1d80bf=!0x1;break;}if(_0x744978['id']!=_0x36a342['id']&&_0x744978['attributes']['tablePasteChainId']==_0x24461f){_0x3802ef=!0x1;break;}}_0x1d80bf&&_0x3802ef&&(_0x36a342['removeMarkers'](),_0x497cb2=!0x0);}}for(const _0x532737 of _0x445c5b)_0x3f241b['remove'](_0x532737);for(const _0x39027d of _0x2a441d)_0x3f241b['unwrap'](_0x39027d);return _0x497cb2;}),_0x542577['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x487eee=>_0x33cde7(_0x487eee),'converterPriority':'high'}),_0x542577['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1ab905,_0x20a9be)=>_0x20a9be['options']['showSuggestionHighlights']?_0x33cde7(_0x1ab905,!0x1):null,'converterPriority':'high'});const _0x5ca60b=_0x542577['editing']['view'];this['listenTo'](_0x5ca60b['document'],'clipboardOutput',(_0x37c253,_0x579c33)=>{const _0x53199a=[];for(const _0x465d9b of _0x5ca60b['createRangeIn'](_0x579c33['content'])['getItems']())_0x465d9b['is']('element','suggestion-td')&&_0x53199a['push'](_0x465d9b);_0x5ca60b['change'](_0x18baea=>{for(const _0x114d3a of _0x53199a)_0x18baea['move'](_0x18baea['createRangeIn'](_0x114d3a),_0x18baea['createPositionBefore'](_0x114d3a)),_0x18baea['remove'](_0x114d3a);});});}}function Oe(_0x5896f2){if(_0x5896f2['isEmpty'])return!0x0;const _0x39c415=_0x5896f2['getChild'](0x0);return _0x39c415['is']('element','paragraph')&&_0x39c415['isEmpty'];}function Ue(_0x437b5b,_0x57fdf1={},_0x5b0fe6){for(const {isAnchor:_0x36fbc7,cellHeight:_0x1b5402,cellWidth:_0x437e2f}of _0x5b0fe6['createTableWalker'](_0x437b5b,{'includeAllSlots':!0x0,..._0x57fdf1}))if(!_0x36fbc7||0x1!=_0x1b5402||0x1!=_0x437e2f)return!0x1;return!0x0;}class $t extends _0x44ea50{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2bc231=this['editor']['plugins']['get']('TrackChangesEditing');_0x2bc231['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2bc231['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2bc231['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2bc231['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2bc231['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2bc231['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2d4ce3,_0x47c06){const _0x20920b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2dab23=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5584f7=_0x47c06['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x340227=_0x2dab23['getColumnGroupElement'](_0x5584f7);let _0x53e521=_0x340227?_0x2dab23['getTableColumnsWidths'](_0x340227):null,_0x2314f9=_0x5584f7['getAttribute']('tableWidth')||null;const _0x4cdda1=_0x47c06['tableWidth']||_0x2314f9,_0x36204e=_0x47c06['columnWidths']||_0x53e521,_0x18e2ba=this['editor']['plugins']['get']('Users')['me'];for(const _0x223c2c of _0x20920b['getSuggestions']()){const _0x5b409c=_0x223c2c['getContainedElement']();if('resizeTable'===_0x223c2c['subType']&&_0x5b409c===_0x5584f7){_0x223c2c['author']!==_0x18e2ba&&_0x223c2c['discard']();const _0x87fdab=_0x223c2c['data']['commandParams'];_0x2314f9=_0x87fdab[0x0]['tableWidth'],_0x53e521=_0x87fdab[0x0]['columnWidths'];break;}}_0x2d4ce3({'table':_0x5584f7,'tableWidth':_0x4cdda1,'columnWidths':_0x36204e}),_0x20920b['markBlockFormat'](_0x5584f7,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2314f9,'columnWidths':_0x53e521}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x124a8b){if('formatBlock'!=_0x124a8b['type']&&'formatInline'!=_0x124a8b['type'])return;const {data:_0x322bf1}=_0x124a8b;if(_0x322bf1&&'resizeTable'===_0x322bf1['formatGroupId']){const _0x218ce0='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x218ce0)};}}}class Bt extends _0x44ea50{['afterInit'](){const _0x19f654=this['editor'];_0x19f654['plugins']['has']('Template')&&_0x19f654['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x44ea50{['afterInit'](){const _0x5e1694=this['editor'];if(!_0x5e1694['commands']['get']('insertTableOfContents'))return;_0x5e1694['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x16780f=_0x5e1694['plugins']['get']('TrackChangesEditing'),_0x269d98=_0x5e1694['locale'];_0x16780f['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1d1fc6=>c(_0x269d98,'ELEMENT_TABLE_OF_CONTENTS',_0x1d1fc6));}}class Rt extends _0x44ea50{['afterInit'](){const _0x5d61db=this['editor'];if(!_0x5d61db['plugins']['has']('Title'))return;const _0x2183e7=_0x5d61db['plugins']['get']('TrackChangesEditing');_0x2183e7['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x5d61db['locale'],'ELEMENT_TITLE')),_0x5d61db['model']['document']['registerPostFixer'](_0x39cbd9=>{let _0x439e9e=!0x1;const _0x4bdab2=Array['from'](_0x5d61db['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3fd350,data:_0x4cc7a2}of _0x4bdab2){const {group:_0x4b0ae9}=_0x2183e7['_splitMarkerName'](_0x3fd350);if('suggestion'!==_0x4b0ae9||!_0x4cc7a2['newRange'])continue;const _0x3f8099=_0x4cc7a2['newRange'],_0x5afa44=_0x3f8099['end']['nodeBefore'];if(!_0x5afa44||!_0x5afa44['is']('element','title-content'))continue;if(!_0x3f8099['start']['isTouching'](_0x3f8099['end']))continue;const _0x17e884=_0x5d61db['model']['schema']['getNearestSelectionRange'](_0x3f8099['end'],'forward');if(_0x17e884&&_0x17e884['isCollapsed']){const _0x34e6cf=_0x39cbd9['createRange'](_0x3f8099['start'],_0x17e884['start']);_0x34e6cf['isEqual'](_0x3f8099)||(_0x39cbd9['updateMarker'](_0x3fd350,{'range':_0x34e6cf}),_0x439e9e=!0x0);}_0x439e9e||(_0x39cbd9['removeMarker'](_0x3fd350),_0x439e9e=!0x0);}return _0x439e9e;});}}class xt extends _0x44ea50{['afterInit'](){const _0xc8eb75=this['editor'],_0x34af5b=_0xc8eb75['plugins']['get']('TrackChangesEditing');_0xc8eb75['plugins']['has']('Uploadcare')&&(_0x34af5b['enableCommand']('uploadcare'),_0xc8eb75['plugins']['has']('UploadcareImageEdit')&&(_0x34af5b['enableCommand']('uploadcareImageEdit'),_0x34af5b['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x34af5b['registerBlockAttribute']('uploadcareImageId'),_0x34af5b['descriptionFactory']['registerDescriptionCallback'](_0xc8df8e=>{if('attribute'!=_0xc8df8e['type'])return;const {data:_0x2fcc2d}=_0xc8df8e;return _0x2fcc2d&&'uploadcareImageId'==_0x2fcc2d['key']?{'type':'format','content':''}:void 0x0;})));}}class Tt extends _0x44ea50{['afterInit'](){const _0xc73a63=this['editor'],_0x1165d4=_0xc73a63['plugins']['get']('TrackChangesEditing');_0xc73a63['plugins']['has']('UndoEditing')&&(_0x1165d4['enableCommand']('undo'),_0x1165d4['enableCommand']('redo'));}}class Et extends _0x44ea50{static get['requires'](){return[Ct];}['afterInit'](){const _0x2a7c36=this['editor'];if(!_0x2a7c36['plugins']['has']('TableCaptionEditing'))return;_0x2a7c36['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x44ea50{['tableProperties'];['tableCellProperties'];constructor(_0x5a1605){super(_0x5a1605),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 _0x44e657=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5b5647 of this['tableProperties'])_0x44e657['enableCommand'](_0x5b5647,(_0xddead3,_0x1b7f1e)=>{const _0x347720=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5b5647,[_0x347720],this['tableProperties'],'tableProperties',_0xddead3,_0x1b7f1e);});_0x44e657['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x44e657['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x44e657['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x22437a,_0x56aa69)=>this['handleDiscardAction'](this['tableProperties'],_0x22437a,_0x56aa69)),_0x44e657['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4d8d32 of this['tableCellProperties'])_0x44e657['enableCommand'](_0x4d8d32,(_0x468666,_0x2c6f70)=>{const _0xd6c778=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4d8d32,_0xd6c778,this['tableCellProperties'],'tableCellProperties',_0x468666,_0x2c6f70);});_0x44e657['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x44e657['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x44e657['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x546803,_0x360a02)=>this['handleDiscardAction'](this['tableCellProperties'],_0x546803,_0x360a02)),_0x44e657['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x44e657['descriptionFactory']['registerDescriptionCallback'](_0x32caaf=>this['handleSuggestionDescription'](_0x32caaf));}['_handlePropertyChange'](_0x4c7fb8,_0x4bd5c3,_0x3e7be7,_0x18ee52,_0x3da097,_0x11b18e){const _0x21091f=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x11b18e['batch'],()=>{for(const _0x128e23 of _0x4bd5c3){if(this['_getSuggestion'](_0x128e23,_0x18ee52))_0x3da097(_0x11b18e);else{const _0x1d7e3e={};for(const _0x2a0e4b of _0x3e7be7){const _0x1fd1b7=_0x128e23['getAttribute'](_0x2a0e4b);void 0x0!==_0x1fd1b7&&(_0x1d7e3e[_0x2a0e4b]=_0x1fd1b7);}_0x3da097(_0x11b18e),_0x21091f['markBlockFormat'](_0x128e23,{'commandParams':[_0x1d7e3e]},[],_0x18ee52);}}});}['handleDiscardAction'](_0x3bddc1,_0x3ceebe,_0x558312){const _0x43f5a2=_0x3ceebe[0x0]['start']['nodeAfter'],_0x19d12a=_0x558312['commandParams'][0x0];this['editor']['model']['change'](_0x5a551a=>{for(const _0x39f6f8 of _0x3bddc1)void 0x0!==_0x19d12a[_0x39f6f8]?_0x5a551a['setAttribute'](_0x39f6f8,_0x19d12a[_0x39f6f8],_0x43f5a2):_0x5a551a['removeAttribute'](_0x39f6f8,_0x43f5a2);});}['handleSuggestionDescription'](_0x1e6b1b){if(_0x1e6b1b['data'])switch(_0x1e6b1b['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x537637,_0xebaf94){const _0x5c6087=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5ae6ac of _0x5c6087['getSuggestions']({'skipNotAttached':!0x0})){const _0x12a56=_0x5ae6ac['getContainedElement']();if(_0x5ae6ac['subType']===_0xebaf94&&_0x12a56===_0x537637)return _0x5ae6ac;}return null;}}const u='$elementName';class p extends _0x44ea50{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4f59c2,_0x36da89,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,xt,Tt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x598564){super(_0x598564),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2b3a13,_0x1841fd,_0x79e569,_0x503dcf)=>{this['_model']['change'](()=>{for(const _0xa73e7f of[..._0x503dcf,..._0x79e569])this['_model']['markers']['has'](_0xa73e7f)&&_0x598564['editing']['reconvertMarker'](_0xa73e7f);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ft(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x598564['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x598564['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x598564['config']['get']('trackChanges.trackFormatChanges'),_0x598564['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x598564['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x598564,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5a735a=this['editor'],_0x449d44=(_0x2d7b3c,_0xe8290d)=>{if('attribute'!=_0x2d7b3c)return'ck-suggestion-marker-'+_0x2d7b3c;const _0x536f0f=_0xe8290d['split']('|')[0x0];return this['_isBlockAttribute'](_0x536f0f)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5a735a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x11131a=>{const {id:_0x5b9bbd,authorId:_0x45ee87,type:_0x441422,subType:_0x5be1f3}=this['_splitMarkerName'](_0x11131a['markerName']),_0x3493b0=['ck-suggestion-marker',_0x449d44(_0x441422,_0x5be1f3)];let _0x320d85=0xbb8;return this['activeMarkers']['includes'](_0x11131a['markerName'])&&(_0x3493b0['push']('ck-suggestion-marker--active'),_0x320d85=0xbc2),'deletion'==_0x441422&&(_0x320d85+=0x5),{'classes':_0x3493b0,'attributes':{'data-suggestion':_0x5b9bbd,'data-author-id':_0x45ee87},'priority':_0x320d85};}}),_0x5a735a['conversion']['for']('dataDowncast')['add'](_0x5ba714=>{_0x5ba714['on']('addMarker:suggestion',(_0x3dbcf7,_0x59551e,_0x1682fe)=>{if(!_0x1682fe['options']['showSuggestionHighlights'])return;const _0x530bd2=_0x59551e['item'];if(!_0x530bd2)return;const _0x36e674=_0x1682fe['mapper']['toViewElement'](_0x530bd2);_0x5a735a['model']['schema']['isObject'](_0x530bd2)&&_0x36e674&&!_0x36e674['getCustomProperty']('widget')&&_0x36e674['is']('containerElement')&&_0x465da8(_0x36e674,_0x1682fe['writer']);},{'priority':'high'});}),_0x5a735a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4bab1a,_0x1fb191)=>{if(!_0x1fb191['options']['showSuggestionHighlights'])return null;const {type:_0xabcf1b,subType:_0x1b58d8}=this['_splitMarkerName'](_0x4bab1a['markerName']);return{'classes':['ck-suggestion-marker',_0x449d44(_0xabcf1b,_0x1b58d8)],'priority':0xbb8};}});const _0x3bf554=({showActiveMarkers:_0xdadbf2=!0x0,isAttributeSuggestion:_0x2507bb=!0x1}={})=>(_0x5e583f,_0xafe55d,_0x56108a)=>{if(!_0xafe55d['item'])return;const {id:_0x103961,authorId:_0x290119}=this['_splitMarkerName'](_0xafe55d['markerName']);if(_0x2507bb){const _0x40e83b=this['_suggestions']['get'](_0x103961),_0x327abe=this['_getAttributeKey'](_0x40e83b);if(!this['_isBlockAttribute'](_0x327abe))return;}if(_0xafe55d['item']['is']('selection'))return void _0x56108a['consumable']['consume'](_0xafe55d['item'],_0x5e583f['name']);const _0x2519fb=_0x56108a['mapper']['toViewElement'](_0xafe55d['item']);if(_0xafe55d['item']['is']('element')&&_0x5a735a['model']['schema']['isBlock'](_0xafe55d['item'])&&!_0x2519fb['getCustomProperty']('addHighlight')){_0x56108a['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2519fb),_0x56108a['writer']['setAttribute']('data-suggestion',_0x103961,_0x2519fb),_0x56108a['writer']['setAttribute']('data-author-id',_0x290119,_0x2519fb),_0x56108a['mapper']['bindElementToMarker'](_0x2519fb,_0xafe55d['markerName']),_0xdadbf2&&(this['activeMarkers']['includes'](_0xafe55d['markerName'])?_0x56108a['writer']['addClass']('ck-suggestion-marker--active',_0x2519fb):_0x56108a['writer']['removeClass']('ck-suggestion-marker--active',_0x2519fb));for(const _0x4a85a3 of _0x5a735a['model']['createRangeIn'](_0xafe55d['item'])['getItems']())_0x56108a['consumable']['consume'](_0x4a85a3,_0x5e583f['name']);_0x56108a['consumable']['consume'](_0xafe55d['item'],_0x5e583f['name']);}};_0x5a735a['conversion']['for']('dataDowncast')['add'](_0x51a261=>{_0x51a261['on']('addMarker:suggestion:formatBlock',(_0x1bbdae,_0x335d81,_0x283bd3)=>{_0x283bd3['options']['showSuggestionHighlights']&&_0x3bf554({'showActiveMarkers':!0x1})(_0x1bbdae,_0x335d81,_0x283bd3);},{'priority':'highest'});}),_0x5a735a['conversion']['for']('dataDowncast')['add'](_0x40d726=>{_0x40d726['on']('addMarker:suggestion:attribute',(_0x38fe26,_0x23e143,_0x45994f)=>{_0x45994f['options']['showSuggestionHighlights']&&_0x3bf554({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x38fe26,_0x23e143,_0x45994f);},{'priority':'highest'});}),_0x5a735a['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x532994,_0x1f9d90)=>_0x1f9d90['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x532994['substr'](0xb)}}),_0x5a735a['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5196b5,{writer:_0x34091e})=>{let _0x115c29='suggestion:'+_0x5196b5['getAttribute']('suggestion-type')+':'+_0x5196b5['getAttribute']('id');return _0x5196b5['getAttribute']('marker-count')&&(_0x115c29+=':'+_0x5196b5['getAttribute']('marker-count')),_0x34091e['createElement']('$marker',{'data-name':_0x115c29});}}),_0x5a735a['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5a735a['conversion']['for']('editingDowncast')['add'](_0x2f459d=>{_0x2f459d['on']('addMarker:suggestion:formatBlock',_0x3bf554(),{'priority':'high'});}),_0x5a735a['conversion']['for']('editingDowncast')['add'](_0x418dfe=>{_0x418dfe['on']('addMarker:suggestion:attribute',_0x3bf554({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5a735a['conversion']['for']('editingDowncast')['add'](_0x352b8b=>{_0x352b8b['on']('removeMarker:suggestion:formatBlock',(_0x4e5dfd,_0x5672f2,_0x2fa4c4)=>{const _0x4a31b5=_0x2fa4c4['mapper']['markerNameToElements'](_0x5672f2['markerName']);if(_0x4a31b5){for(const _0x5a9923 of _0x4a31b5)_0x5a9923['getCustomProperty']('addHighlight')||(_0x2fa4c4['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5a9923),_0x2fa4c4['writer']['removeAttribute']('data-suggestion',_0x5a9923),_0x2fa4c4['writer']['removeAttribute']('data-author-id',_0x5a9923),_0x2fa4c4['mapper']['unbindElementFromMarkerName'](_0x5a9923,_0x5672f2['markerName']));}},{'priority':'high'});}),_0x5a735a['conversion']['for']('editingDowncast')['add'](_0x1023ae=>{_0x1023ae['on']('removeMarker:suggestion:attribute',(_0x18db01,_0x491742,_0x33f5cc)=>{const _0x320c98=_0x33f5cc['mapper']['markerNameToElements'](_0x491742['markerName']);if(!_0x320c98)return;const {id:_0x1f616f}=this['_splitMarkerName'](_0x491742['markerName']),_0x1fe155=this['_suggestions']['get'](_0x1f616f),_0x318284=this['_getAttributeKey'](_0x1fe155);if(this['_isBlockAttribute'](_0x318284)){for(const _0x4f8299 of _0x320c98)_0x4f8299['getCustomProperty']('addHighlight')||(_0x33f5cc['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4f8299),_0x33f5cc['writer']['removeAttribute']('data-suggestion',_0x4f8299),_0x33f5cc['writer']['removeAttribute']('data-author-id',_0x4f8299),_0x33f5cc['mapper']['unbindElementFromMarkerName'](_0x4f8299,_0x491742['markerName']));}},{'priority':'high'});}),_0x5a735a['model']['document']['registerPostFixer'](_0x8af8b8=>{let _0x14608a=!0x1;const _0x19cff6=Array['from'](_0x5a735a['model']['document']['differ']['getChangedMarkers']()),_0x1c523b=new Set();for(const {name:_0x783860,data:_0x1fdd45}of _0x19cff6){const {group:_0x4759bd,type:_0x53cb21,subType:_0x1d1906,id:_0x4d61ec}=this['_splitMarkerName'](_0x783860);if('suggestion'!==_0x4759bd)continue;const _0x2ac79c=this['_suggestions']['get'](_0x4d61ec);if(null!=_0x1fdd45['newRange']){'formatInline'==_0x53cb21&&(_0x14608a=_0x14608a||Lt(_0x1fdd45['newRange'],_0x783860,_0x8af8b8,_0x5a735a['model']['schema']));const _0x8148b8='attribute'==_0x53cb21&&this['_isBlockAttribute'](_0x1d1906['split']('|')[0x0]);if(_0x1fdd45['newRange']['isCollapsed']||'$graveyard'==_0x1fdd45['newRange']['root']['rootName']||'formatBlock'==_0x53cb21&&!Kt(_0x1fdd45['newRange'])||_0x8148b8&&!Kt(_0x1fdd45['newRange'])||'deletion'==_0x53cb21&&!(!Gt(_0x5544ef=_0x1fdd45['newRange'])&&!function(_0x14c2e9){return _0x14c2e9['start']['parent']==_0x14c2e9['end']['nodeBefore']&&_0x14c2e9['start']['isAtEnd'];}(_0x5544ef)))_0x8af8b8['removeMarker'](_0x783860),_0x14608a=!0x0;else{if(!_0x2ac79c||!_0x2ac79c['isInContent'])continue;if(_0x1fdd45['newRange']&&_0x1fdd45['oldRange']&&_0x1fdd45['newRange']['isEqual'](_0x1fdd45['oldRange']))continue;_0x1c523b['add'](_0x2ac79c);}}}var _0x5544ef;return _0x1c523b['size']>0x0&&(_0x14608a=!!this['_joinWithAdjacentSuggestions'](_0x1c523b)||_0x14608a),_0x14608a;}),_0x5a735a['model']['document']['registerPostFixer'](_0x125cb5=>{let _0x277c16=!0x1;for(const _0x202e0e of _0x5a735a['model']['document']['differ']['getChanges']())if('insert'==_0x202e0e['type'])for(const _0x318bb4 of this['_suggestions']['values']()){if(_0x318bb4['isMultiRange']||!_0x318bb4['isInContent'])continue;const _0x2600fa='formatBlock'==_0x318bb4['type'],_0x17d85f=this['_getAttributeKey'](_0x318bb4),_0x5c8068=_0x17d85f&&this['_isBlockAttribute'](_0x17d85f);if(!_0x2600fa&&!_0x5c8068)continue;const _0x2f0c7c=_0x318bb4['getFirstRange']();if(_0x2f0c7c['start']['parent']!=_0x2f0c7c['end']['parent']&&!_0x2f0c7c['end']['isAtEnd']){const _0x3b0f6e=_0x5a735a['model']['createPositionAt'](_0x2f0c7c['start']['nodeAfter'],'end'),_0x341786=_0x5a735a['model']['createRange'](_0x2f0c7c['start'],_0x3b0f6e);_0x125cb5['updateMarker'](_0x318bb4['getFirstMarker'](),{'range':_0x341786}),_0x277c16=!0x0;}}return _0x277c16;}),_0x5a735a['model']['document']['registerPostFixer'](_0x442505=>this['_processAttributeChanges'](_0x442505)),_0x5a735a['model']['document']['registerPostFixer'](_0x17d6ef=>!_0x17d6ef['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x17d6ef)),_0x5a735a['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5a735a['model']['document']['on']('change:data',(_0x281a49,_0x300c26)=>{if(!_0x300c26['isLocal']||_0x300c26['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x53439c=_0x5a735a['model']['document']['differ']['getChanges']();if(0x0==_0x53439c['length'])return;const _0x13fdae=[],_0x123767=_0x53439c['filter'](_0x336917=>'attribute'==_0x336917['type']),_0x56702e=_0x53439c['filter'](_0x2e6753=>'insert'==_0x2e6753['type']&&'$text'!=_0x2e6753['name']);for(const _0x2ae621 of _0x123767)this['_isRegisteredAttribute'](_0x2ae621['attributeKey'])&&_0x13fdae['push']({'key':_0x2ae621['attributeKey'],'newValue':_0x2ae621['attributeNewValue'],'oldValue':_0x2ae621['attributeOldValue'],'range':Ht(_0x2ae621['range'],_0x5a735a['model'])});for(const _0x4909cc of _0x56702e){if('rename'!=_0x4909cc['action']&&'refresh'!=_0x4909cc['action'])continue;const _0x960670=qt(_0x4909cc['position']['nodeAfter'],_0x5a735a['model']),_0x33a01d=_0x4909cc['before'];'rename'==_0x4909cc['action']&&_0x13fdae['push']({'key':u,'newValue':_0x4909cc['name'],'oldValue':_0x33a01d['name'],'range':_0x960670});for(const [_0x38ceee,_0xbc8b83]of _0x33a01d['attributes']){if(!this['_isRegisteredAttribute'](_0x38ceee))continue;const _0x5a6a79=_0x4909cc['attributes']['get'](_0x38ceee);_0xbc8b83!==_0x5a6a79&&_0x13fdae['push']({'key':_0x38ceee,'newValue':_0x5a6a79,'oldValue':_0xbc8b83,'range':_0x960670});}for(const [_0x1e3126,_0x4d2bcf]of _0x4909cc['attributes'])this['_isRegisteredAttribute'](_0x1e3126)&&(_0x33a01d['attributes']['has'](_0x1e3126)||_0x13fdae['push']({'key':_0x1e3126,'newValue':_0x4d2bcf,'oldValue':null,'range':_0x960670}));}0x0!=_0x13fdae['length']&&_0x5a735a['model']['enqueueChange'](_0x300c26,_0x149801=>{const _0x477df2=_0x10aa54();for(const {range:_0x24642c,key:_0x2f9223,oldValue:_0x534517,newValue:_0x5b5bee}of _0x13fdae)this['markAttributeChange'](_0x24642c,_0x2f9223,_0x534517,_0x5b5bee,{'groupId':_0x477df2});this['_reduceExistingSuggestions'](_0x149801,_0x13fdae);});},{'priority':'lowest'}),_0x5a735a['model']['markers']['on']('update:suggestion',(_0x647aab,_0xe03219,_0x1fb61b)=>{if(null==_0x1fb61b){const {id:_0x2590fc}=this['_splitMarkerName'](_0xe03219['name']),_0x30ff5c=this['_suggestions']['get'](_0x2590fc);_0x30ff5c&&_0x30ff5c['addMarkerName'](_0xe03219['name']);}}),_0x5a735a['model']['document']['on']('change:data',()=>{const _0x56a27f=Array['from'](_0x5a735a['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5ed151=>'suggestion'===this['_splitMarkerName'](_0x5ed151['name'])['group']);if(0x0===_0x56a27f['length'])return;_0x56a27f['sort']((_0x14e8be,_0x13e68b)=>{const _0x30a05d=_0x14e8be['data']['oldRange'],_0x44c632=_0x13e68b['data']['oldRange'];return null===_0x30a05d&&null===_0x44c632?0x0:null===_0x30a05d&&null!==_0x44c632?-0x1:null!==_0x30a05d&&null===_0x44c632?0x1:_0x30a05d['start']['isBefore'](_0x44c632['start'])?-0x1:0x1;});const _0x46ddc9=new Set(),_0x1dad9e=new Set();for(const {name:_0x4a2013,data:_0x276bb2}of _0x56a27f){const {id:_0x1c3888}=this['_splitMarkerName'](_0x4a2013);if(null===_0x276bb2['oldRange']){const _0x44b822=this['_handleNewSuggestionMarker'](_0x4a2013);_0x1dad9e['add'](_0x44b822);}else{const _0x328f05=this['_suggestions']['get'](_0x1c3888);null!==_0x276bb2['newRange']||_0x328f05['isInContent']?(_0x46ddc9['add'](_0x328f05['head']),_0x1dad9e['add'](_0x328f05)):this['_removeSuggestion'](_0x328f05);}}_0x1dad9e['size']>0x0&&this['_refreshSuggestionsChain'](_0x1dad9e);for(const _0xfbab3b of _0x46ddc9)this['fire']('suggestionChanged',_0xfbab3b);}),_0x5a735a['model']['on']('applyOperation',(_0x241803,_0x212d0b)=>{const _0x510299=_0x212d0b[0x0];if(!this['_suggestions']['size'])return;if(!_0x510299['isDocumentOperation'])return;if(_0x510299['batch']['isUndo']||!_0x510299['batch']['isLocal'])return;let _0x396bd2,_0x5e4fc8;switch(_0x510299['type']){case'insert':_0x396bd2=_0x5a735a['model']['createPositionAt'](_0x510299['position']),_0x5e4fc8=_0x396bd2['getShiftedBy'](_0x510299['howMany']);break;case'split':_0x396bd2=_0x5a735a['model']['createPositionAt'](_0x510299['splitPosition']),_0x5e4fc8=_0x5a735a['model']['createPositionAt'](_0x510299['moveTargetPosition']);break;case'move':_0x396bd2=_0x5a735a['model']['createPositionAt'](_0x510299['targetPosition']),_0x5e4fc8=_0x396bd2['getShiftedBy'](_0x510299['howMany']);break;default:return;}const _0x22d8b1=_0x5a735a['model']['createRange'](_0x396bd2,_0x5e4fc8);_0x5a735a['model']['change'](()=>{for(const {suggestion:_0x21c50c,meta:_0x4a444b}of this['_findSuggestions'](_0x22d8b1)){if(_0x21c50c['isMultiRange'])continue;if('formatInline'==_0x21c50c['type'])continue;const _0x3e60e6=this['_getAttributeKey'](_0x21c50c);if(_0x3e60e6&&this['_isBlockAttribute'](_0x3e60e6)&&'split'!=_0x510299['type'])continue;const _0x7cd0=_0x21c50c['data']&&_0x21c50c['data']['multipleBlocks'];('formatBlock'!=_0x21c50c['type']||'split'==_0x510299['type']&&!_0x7cd0)&&(_0x4a444b['containsRangeInObject']||'insertion'==_0x21c50c['type']&&_0x4a444b['isOwn']||_0x21c50c['getFirstRange']()['containsRange'](_0x22d8b1)&&this['_breakSuggestionMarker'](_0x21c50c,_0x396bd2,_0x5e4fc8));}});},{'priority':'lowest'}),_0x5a735a['model']['on']('deleteContent',(_0x53100a,_0x2bf69f)=>{const _0x4972f2=_0x2bf69f[0x0],_0x1161d1=_0x2bf69f[0x1];if(_0x1161d1&&_0x1161d1['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4972f2['isCollapsed'])return;const _0x156b1a=_0x5a735a['model']['schema'],{start:_0x5a3767,end:_0x10dbae}=_0x4972f2['getFirstRange'](),_0x3b3d37=_0x5a3767['nodeAfter']&&_0x156b1a['isLimit'](_0x5a3767['nodeAfter'])?null:_0x156b1a['getNearestSelectionRange'](_0x5a3767,'forward'),_0x4158c4=_0x10dbae['nodeBefore']&&_0x156b1a['isLimit'](_0x10dbae['nodeBefore'])?null:_0x156b1a['getNearestSelectionRange'](_0x10dbae,'backward'),_0x590127=_0x5a735a['model']['createRange'](_0x3b3d37?_0x3b3d37['start']:_0x5a3767,_0x4158c4?_0x4158c4['end']:_0x10dbae);_0x5a735a['model']['change'](_0x3b800a=>{this['markDeletion'](_0x590127);const _0x12f284=_0x5a735a['model']['schema']['getNearestSelectionRange'](_0x590127['start']);_0x4972f2['is']('documentSelection')?_0x3b800a['setSelection'](_0x12f284):_0x4972f2['setTo'](_0x12f284);}),_0x53100a['stop']();},{'priority':_0x52fdb4['normal']+0xa}),_0x5a735a['model']['on']('insertContent',(_0x32495f,_0x4e572c)=>{const _0x4d290f=_0x4e572c[_0x4e572c['length']-0x1];_0x4d290f&&_0x4d290f['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5a735a['model']['change'](()=>{let _0x17ffee=_0x5a735a['model']['insertContent'](_0x4e572c[0x0],_0x4e572c[0x1],_0x4e572c[0x2],{'forceDefaultExecution':!0x0});if(!_0x17ffee)return;_0x32495f['return']=_0x17ffee['clone']();const _0x4e06fd=_0x17ffee['end']['nodeBefore'],_0x4f697b=_0x5a735a['model']['schema'];_0x4e06fd&&_0x4f697b['isBlock'](_0x4e06fd)&&!_0x4f697b['isObject'](_0x4e06fd)&&(_0x17ffee=_0x5a735a['model']['createRange'](_0x17ffee['start'],_0x5a735a['model']['createPositionAt'](_0x4e06fd,'end'))),this['markInsertion'](_0x17ffee);}),_0x32495f['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x37a114=new O(_0x5a735a,this['_suggestions']);_0x5a735a['commands']['add']('acceptSuggestion',_0x37a114),this['enableCommand']('acceptSuggestion');const _0x1e09b9=new R(_0x5a735a,this['_suggestions']);_0x5a735a['commands']['add']('discardSuggestion',_0x1e09b9),this['enableCommand']('discardSuggestion'),_0x5a735a['commands']['add']('acceptAllSuggestions',new x(_0x5a735a,_0x37a114,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5a735a['commands']['add']('discardAllSuggestions',new x(_0x5a735a,_0x1e09b9,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5a735a['commands']['add']('acceptSelectedSuggestions',new E(_0x5a735a,_0x37a114,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5a735a['commands']['add']('discardSelectedSuggestions',new E(_0x5a735a,_0x1e09b9,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2da624=_0x5a735a['plugins']['get']('CommentsRepository');this['listenTo'](_0x2da624,'addComment',(_0x89961e,{threadId:_0x351a0b})=>{const _0x184f2e=this['_suggestions']['get'](_0x351a0b);_0x184f2e&&_0x184f2e['commentThread']&&0x1===_0x184f2e['commentThread']['length']&&this['_updateSuggestionData'](_0x351a0b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2da624,'removeComment',(_0x257180,{threadId:_0x5ac039})=>{const _0x2e147e=this['_suggestions']['get'](_0x5ac039);_0x2e147e&&_0x2e147e['commentThread']&&!_0x2e147e['commentThread']['length']&&this['_updateSuggestionData'](_0x5ac039,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4126f8){const _0x410ed8=_0x1639fb([0x74,0x42,0x67,0x79,0x53,0x54,0x50,0x6a,0x78,0x65,0x4b,0x31,0x69,0x49,0x4f,0x66,0x56,0x6f,0x7a,0x58,0x4d,0x51,0x5a,0x70,0x4a,0x57,0x4c,0x35,0x37,0x6c,0x41,0x55,0x6d,0x64,0x61,0x48,0x45,0x36,0x47,0x34,0x4e,0x71,0x6e,0x32,0x39,0x68,0x44,0x63,0x30,0x38,0x33,0x62,0x52,0x77,0x6b,0x73,0x72,0x46,0x43,0x75,0x59,0x76]),_0x38960b=0x48371300,_0xa85738=0x48307008^_0x38960b,_0x3d2237=window[_0x1639fb([0x44,0x61,0x74,0x65])][_0x1639fb([0x6e,0x6f,0x77])](),_0x46f8a5=_0x4126f8[_0x1639fb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4a2da1=new window[(_0x1639fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58cfbf=>{_0x46f8a5[_0x1639fb([0x6f,0x6e,0x63,0x65])](_0x1639fb([0x72,0x65,0x61,0x64,0x79]),_0x58cfbf);}),_0x185d91={[_0x1639fb([0x6b,0x74,0x79])]:_0x1639fb([0x45,0x43]),[_0x1639fb([0x75,0x73,0x65])]:_0x1639fb([0x73,0x69,0x67]),[_0x1639fb([0x63,0x72,0x76])]:_0x1639fb([0x50,0x2d,0x32,0x35,0x36]),[_0x1639fb([0x78])]:_0x1639fb([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]),[_0x1639fb([0x79])]:_0x1639fb([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]),[_0x1639fb([0x61,0x6c,0x67])]:_0x1639fb([0x45,0x53,0x32,0x35,0x36])},_0x53adc5=_0x46f8a5[_0x1639fb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1639fb([0x67,0x65,0x74])](_0x1639fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3dc8d2(){let _0x13ceae,_0x5a3f4e=null,_0x1be9be=null;try{if(_0x53adc5==_0x1639fb([0x47,0x50,0x4c]))return _0x1639fb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x13ceae=_0x4e4a6b(),!_0x13ceae)return _0x1639fb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x13ceae[_0x1639fb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1be9be=_0x3646b9(_0x13ceae[_0x1639fb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x13ceae[_0x1639fb([0x6a,0x74,0x69])])),await _0x16583a()?_0x17c8db()?_0x58e9af()?_0x1639fb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5c0c41()?(_0x13ceae[_0x1639fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1639fb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5a3f4e=_0xb21f8e(_0x1639fb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x13ceae[_0x1639fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1639fb([0x74,0x72,0x69,0x61,0x6c])&&(_0x5a3f4e=_0xb21f8e(_0x1639fb([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x18cdd2()):_0x1639fb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1639fb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1639fb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x167ab3){return _0x1639fb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x58e9af(){const _0x142c9b=[_0x1639fb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1639fb([0x74,0x72,0x69,0x61,0x6c])][_0x1639fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13ceae[_0x1639fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3d2237/0x3e8:0xe10*_0xa85738;return _0x13ceae[_0x1639fb([0x65,0x78,0x70])]<_0x142c9b;}function _0x17c8db(){const _0xe8a94e=_0x13ceae[_0x1639fb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xe8a94e)return!0x1;if(_0xe8a94e[_0x1639fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1639fb([0x2a])))return!0x0;if(_0xe8a94e[_0x1639fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1639fb([0x54,0x43])))return!0x0;if(_0xe8a94e[_0x1639fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1639fb([0x52,0x54,0x43]))){if(_0x20b44f())return!0x0;if(_0x5a1500()||_0x77c756())return!0x0;}return!0x1;}function _0x5c0c41(){const _0x3f4221=_0x13ceae[_0x1639fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3f4221||0x0==_0x3f4221[_0x1639fb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x8c6d67}=new URL(window[_0x1639fb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3f4221[_0x1639fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8c6d67))return!0x0;const _0x58b1f8=_0x8c6d67[_0x1639fb([0x73,0x70,0x6c,0x69,0x74])](_0x1639fb([0x2e]));return _0x3f4221[_0x1639fb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4e6752=>_0x4e6752[_0x1639fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1639fb([0x2a])))[_0x1639fb([0x6d,0x61,0x70])](_0x159cb3=>_0x159cb3[_0x1639fb([0x73,0x70,0x6c,0x69,0x74])](_0x1639fb([0x2e])))[_0x1639fb([0x73,0x6f,0x6d,0x65])](_0x464f1c=>_0x58b1f8[_0x1639fb([0x65,0x76,0x65,0x72,0x79])]((_0x3521d4,_0x3af5a2)=>_0x464f1c[_0x3af5a2]===_0x3521d4||_0x464f1c[_0x3af5a2]===_0x1639fb([0x2a])));}function _0x18cdd2(){return _0x5a3f4e&&_0x1be9be?new window[(_0x1639fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x226734,_0xf57b74)=>{_0x5a3f4e[_0x1639fb([0x74,0x68,0x65,0x6e])](_0x226734,_0xf57b74),_0x1be9be[_0x1639fb([0x74,0x68,0x65,0x6e])](_0x1030a5=>{_0x1030a5!=_0x1639fb([0x56,0x61,0x6c,0x69,0x64])&&_0x226734(_0x1030a5);},_0xf57b74);}):_0x5a3f4e||_0x1be9be||_0x1639fb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3646b9(_0x10f8b5,_0x12b73e){return new window[(_0x1639fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdc5c31=>{if(_0x45b61f())return _0xdc5c31(_0x1639fb([0x56,0x61,0x6c,0x69,0x64]));_0x3b653d(),_0x46f8a5[_0x1639fb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1639fb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5a637f=!0x1;const _0x20d97f=_0x10aa54();function _0x337b51(_0x3d462b){return!!_0x3d462b&&(typeof _0x3d462b===_0x1639fb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3d462b===_0x1639fb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3d462b[_0x1639fb([0x74,0x68,0x65,0x6e])]===_0x1639fb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3d462b[_0x1639fb([0x63,0x61,0x74,0x63,0x68])]===_0x1639fb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x451065(_0x3905cc){_0x29a948(_0x3905cc)[_0x1639fb([0x74,0x68,0x65,0x6e])](_0x3f61ec=>{if(!_0x3f61ec||_0x3f61ec[_0x1639fb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1639fb([0x6f,0x6b]))return _0x1639fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x128ad3(_0x515aca(_0x20d97f+_0x12b73e))!=_0x3f61ec[_0x1639fb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1639fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1639fb([0x56,0x61,0x6c,0x69,0x64]);})[_0x1639fb([0x74,0x68,0x65,0x6e])](_0x358d12=>(_0x4c6bf2(),_0x358d12),()=>{const _0xfe0fbd=_0x38bac9();return null==_0xfe0fbd?(_0x4c6bf2(),_0x1639fb([0x56,0x61,0x6c,0x69,0x64])):_0x1639fb(_0x3d2237-_0xfe0fbd>(0x6c3b9700^_0x38960b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1639fb([0x74,0x68,0x65,0x6e])](_0xdc5c31)[_0x1639fb([0x63,0x61,0x74,0x63,0x68])](()=>{_0xdc5c31(_0x1639fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5ad8d7=0x4801fd80^_0x38960b;function _0x4c6bf2(){const _0x317f83=_0x1639fb([0x6c,0x6c,0x63,0x74,0x2d])+_0x128ad3(_0x515aca(_0x10f8b5)),_0x44b3c8=_0x1dbf8e(_0x128ad3(window[_0x1639fb([0x4d,0x61,0x74,0x68])][_0x1639fb([0x63,0x65,0x69,0x6c])](_0x3d2237/_0x5ad8d7)));window[_0x1639fb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1639fb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x317f83,_0x44b3c8);}function _0x38bac9(){const _0x44d3de=_0x1639fb([0x6c,0x6c,0x63,0x74,0x2d])+_0x128ad3(_0x515aca(_0x10f8b5)),_0x2ee2db=window[_0x1639fb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1639fb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44d3de);return _0x2ee2db?window[_0x1639fb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1dbf8e(_0x2ee2db),0x10)*_0x5ad8d7:null;}function _0x29a948(_0x564b7b){return new window[(_0x1639fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2999e7,_0x3c8e0b)=>{_0x564b7b[_0x1639fb([0x74,0x68,0x65,0x6e])](_0x2999e7,_0x3c8e0b),window[_0x1639fb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3c8e0b,0x4836c7c0^_0x38960b);});}}_0x46f8a5[_0x1639fb([0x6f,0x6e])](_0x1639fb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x29a470,_0x47c62d)=>{if(_0x47c62d[0x0]!=_0x10f8b5)return _0xdc5c31(_0x1639fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x47c62d[0x1]={..._0x47c62d[0x1],[_0x1639fb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x20d97f};},{[_0x1639fb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1639fb([0x68,0x69,0x67,0x68])}),_0x46f8a5[_0x1639fb([0x6f,0x6e])](_0x1639fb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2af94c=>{_0x337b51(_0x2af94c[_0x1639fb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5a637f=!0x0,_0x451065(_0x2af94c[_0x1639fb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1639fb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1639fb([0x6c,0x6f,0x77])}),_0x4a2da1[_0x1639fb([0x74,0x68,0x65,0x6e])](()=>{_0x5a637f||_0xdc5c31(_0x1639fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x45b61f(){return _0x46f8a5[_0x1639fb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1639fb([0x76,0x69,0x65,0x77])][_0x1639fb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1639fb([0x61,0x75,0x74,0x6f]);}function _0x3b653d(){_0x46f8a5[_0x1639fb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1639fb([0x76,0x69,0x65,0x77])][_0x1639fb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1639fb([0x61,0x75,0x74,0x6f]);}}function _0xb21f8e(_0x1d7f00){const _0x1b9827=[new window[(_0x1639fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x474c97=>setTimeout(_0x474c97,0x483e2dcc^_0x38960b)),_0x4a2da1[_0x1639fb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1639fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56d503=>{let _0x592b15=0x0;_0x46f8a5[_0x1639fb([0x6d,0x6f,0x64,0x65,0x6c])][_0x1639fb([0x6f,0x6e])](_0x1639fb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x23ddbc,_0x58c538)=>{_0x58c538[0x0][_0x1639fb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x592b15++,_0x592b15==(0x483712f8^_0x38960b)&&(_0x56d503(),_0x23ddbc[_0x1639fb([0x6f,0x66,0x66])]());});}))];return window[_0x1639fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1639fb([0x72,0x61,0x63,0x65])](_0x1b9827)[_0x1639fb([0x74,0x68,0x65,0x6e])](()=>_0x1d7f00);}async function _0x43a000(){await _0x4a2da1,_0x46f8a5[_0x1639fb([0x6d,0x6f,0x64,0x65,0x6c])][_0x1639fb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x54efaa,_0x46f8a5[_0x1639fb([0x6d,0x6f,0x64,0x65,0x6c])][_0x1639fb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x54efaa,_0x46f8a5[_0x1639fb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1639fb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x20b44f(){return _0x476f27(_0x1639fb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x57e85f(_0x1639fb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1639fb([0x73,0x74,0x61,0x74,0x65])]==_0x1639fb([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5a1500(){return _0x476f27(_0x1639fb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x77c756(){return _0x476f27(_0x1639fb([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2e8244(_0x4c5122){const _0x43063b=_0xf37cd();_0x46f8a5[_0x43063b]=_0x1639fb([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4c5122,_0x4c5122!=_0x1639fb([0x56,0x61,0x6c,0x69,0x64])&&_0x43a000();}function _0xf37cd(){const _0x3b25e5=window[_0x1639fb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1639fb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1639fb([0x6e,0x6f,0x77])]())[_0x1639fb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1639fb([0x2e]),'');let _0x1a3ab4=_0x1639fb([0x74]);for(let _0x520cc0=0x0;_0x520cc0<_0x3b25e5[_0x1639fb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x520cc0+=0x2){let _0x2d88fe=window[_0x1639fb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b25e5[_0x1639fb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x520cc0,_0x520cc0+0x2));_0x2d88fe>=_0x410ed8[_0x1639fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2d88fe-=_0x410ed8[_0x1639fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1a3ab4+=_0x410ed8[_0x2d88fe];}return _0x1a3ab4;}function _0x4e4a6b(){const _0x40f1ce=_0x53adc5[_0x1639fb([0x73,0x70,0x6c,0x69,0x74])](_0x1639fb([0x2e]));if(0x3!=_0x40f1ce[_0x1639fb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x476c8f(_0x40f1ce[0x1]);function _0x476c8f(_0x20550a){const _0x1305f3=_0x3e1d6a(_0x20550a);return _0x1305f3&&_0x505511()?_0x1305f3:null;function _0x505511(){const _0x6682f6=_0x1305f3[_0x1639fb([0x6a,0x74,0x69])],_0x218596=window[_0x1639fb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6682f6[_0x1639fb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x6682f6[_0x1639fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2629fe={..._0x1305f3,[_0x1639fb([0x6a,0x74,0x69])]:_0x6682f6[_0x1639fb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x6682f6[_0x1639fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2629fe[_0x1639fb([0x76,0x63])],_0x515aca(_0x2629fe)==_0x218596;}}}async function _0x16583a(){let _0x53102d=!0x0;try{const _0x323d56=_0x53adc5[_0x1639fb([0x73,0x70,0x6c,0x69,0x74])](_0x1639fb([0x2e])),[_0x4b62ed,_0x287f0d,_0x45092f]=_0x323d56;return _0x53f1c1(_0x4b62ed),await _0x235b76(_0x4b62ed,_0x287f0d,_0x45092f),_0x53102d;}catch(_0x1efc92){return!0x1;}function _0x53f1c1(_0x31473a){const _0x917aaf=_0x3e1d6a(_0x31473a);_0x917aaf&&_0x917aaf[_0x1639fb([0x61,0x6c,0x67])]==_0x1639fb([0x45,0x53,0x32,0x35,0x36])||(_0x53102d=!0x1);}async function _0x235b76(_0xfc0e3e,_0x5d4200,_0x28fde4){const _0x339ce5=window[_0x1639fb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1639fb([0x66,0x72,0x6f,0x6d])](_0x33bc43(_0x28fde4),_0x27a2f2=>_0x27a2f2[_0x1639fb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x28e950=new window[(_0x1639fb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1639fb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xfc0e3e+_0x1639fb([0x2e])+_0x5d4200),_0x2a11a4=window[_0x1639fb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1639fb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2a11a4)return;const _0x4b3ba1=await _0x2a11a4[_0x1639fb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1639fb([0x6a,0x77,0x6b]),_0x185d91,{[_0x1639fb([0x6e,0x61,0x6d,0x65])]:_0x1639fb([0x45,0x43,0x44,0x53,0x41]),[_0x1639fb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1639fb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1639fb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2a11a4[_0x1639fb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1639fb([0x6e,0x61,0x6d,0x65])]:_0x1639fb([0x45,0x43,0x44,0x53,0x41]),[_0x1639fb([0x68,0x61,0x73,0x68])]:{[_0x1639fb([0x6e,0x61,0x6d,0x65])]:_0x1639fb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4b3ba1,_0x339ce5,_0x28e950)||(_0x53102d=!0x1);}}function _0x3e1d6a(_0x249f26){return _0x249f26[_0x1639fb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1639fb([0x65,0x79]))?JSON[_0x1639fb([0x70,0x61,0x72,0x73,0x65])](_0x33bc43(_0x249f26)):null;}function _0x33bc43(_0x291b4c){return window[_0x1639fb([0x61,0x74,0x6f,0x62])](_0x291b4c[_0x1639fb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1639fb([0x2b]))[_0x1639fb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1639fb([0x2f])));}function _0x515aca(_0x1f5b16){let _0x3a67c9=0x1505;function _0xd70be0(_0xadb550){for(let _0x51fd62=0x0;_0x51fd62<_0xadb550[_0x1639fb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x51fd62++){const _0x286613=_0xadb550[_0x1639fb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x51fd62);_0x3a67c9=(_0x3a67c9<<0x5)+_0x3a67c9+_0x286613,_0x3a67c9&=_0x3a67c9;}}function _0x4b050c(_0x48d7f7){Array[_0x1639fb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x48d7f7)?_0x48d7f7[_0x1639fb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4b050c):_0x48d7f7&&typeof _0x48d7f7==_0x1639fb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1639fb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x48d7f7)[_0x1639fb([0x73,0x6f,0x72,0x74])]()[_0x1639fb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2cf437,_0x4e2a34])=>{_0xd70be0(_0x2cf437),_0x4b050c(_0x4e2a34);}):_0xd70be0(window[_0x1639fb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x48d7f7));}return _0x4b050c(_0x1f5b16),_0x3a67c9>>>0x0;}function _0x128ad3(_0x11f8e8){return _0x11f8e8[_0x1639fb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1639fb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1639fb([0x30]));}function _0x1dbf8e(_0x56fa53){return _0x56fa53[_0x1639fb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1639fb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1639fb([0x6a,0x6f,0x69,0x6e])]('');}function _0x476f27(_0x297efd){return _0x46f8a5[_0x1639fb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1639fb([0x68,0x61,0x73])](_0x297efd);}function _0x57e85f(_0x3e6cf5){return _0x46f8a5[_0x1639fb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1639fb([0x67,0x65,0x74])](_0x3e6cf5);}function _0x54efaa(){}function _0x1639fb(_0x59811c){return _0x59811c['map'](_0x872d51=>String['fromCharCode'](_0x872d51))['join']('');}_0x2e8244(await _0x3dc8d2());}(this);}set['adapter'](_0x48c9aa){if(this['_adapter'])throw new _0x22e092('track-changes-adapter-already-set',this);this['_adapter']=_0x48c9aa;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2f11a2=!0x1,toJSON:_0x18d95e=!0x1}={}){const _0x50a7aa=[];for(const _0x3c31d3 of this['_suggestions']['values']())_0x2f11a2&&!_0x3c31d3['isInContent']||_0x50a7aa['push'](_0x3c31d3);return _0x18d95e?_0x50a7aa['map'](_0x9406f=>_0x9406f['toJSON']()):_0x50a7aa;}['getSuggestion'](_0x11b888){const _0x61cd7d=this['_suggestions']['get'](_0x11b888);if(!_0x61cd7d)throw new _0x22e092('track-changes-suggestion-not-found',this);return _0x61cd7d;}['hasSuggestion'](_0x2a3890){return this['_suggestions']['has'](_0x2a3890);}['addSuggestionData'](_0x299a71){const {authorId:_0x2dfdf8,id:_0x5bbec5,attributes:_0xe7fec3}=_0x299a71,[_0x131899,_0x8b9497]=_0x299a71['type']['split'](':'),_0x1e7a45=this['_suggestions']['get'](_0x5bbec5)||this['_createSuggestion'](_0x131899,_0x8b9497,_0x5bbec5,_0x2dfdf8,_0xe7fec3);if(this['_addThreadToSuggestion'](_0x1e7a45),this['_checkSuggestionCorrectness'](_0x1e7a45,_0x131899,_0x8b9497||null,_0x2dfdf8),_0x1e7a45['createdAt']=_0x299a71['createdAt'],_0x1e7a45['_isDataLoaded']=!0x0,_0xe7fec3&&_0xe7fec3['@external']){const _0x439622=_0xe7fec3['@external'],_0x20bad7=this['_getExternalAuthor'](_0x439622['authorName']);_0x1e7a45['authoredAt']=_0x439622['createdAt'],_0x1e7a45['author']=_0x20bad7,_0x1e7a45['isExternal']=!0x0;}else _0x1e7a45['authoredAt']=_0x299a71['createdAt'];switch(_0x299a71['data']&&(_0x1e7a45['data']=_0x299a71['data']),_0x299a71['attributes']&&(_0x1e7a45['attributes']=_0x299a71['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1e7a45['_saved']=!0x0),this['_suggestionState']['get'](_0x1e7a45)){case'notReady':this['_suggestionState']['set'](_0x1e7a45,'dataReady');break;case'markerReady':_0x1e7a45['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1e7a45])),this['_refreshSuggestionsChain'](new Set([_0x1e7a45])),this['_suggestionState']['set'](_0x1e7a45,'ready'),this['fire']('suggestionLoaded',_0x1e7a45)):this['_suggestionState']['set'](_0x1e7a45,'removed');}return _0x1e7a45;}['acceptSuggestion'](_0x4a6e99){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5f21a7 of _0x4a6e99['getAllAdjacentSuggestions']())_0x5f21a7['accept']();});});}['discardSuggestion'](_0x3f5e99){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4ab09d of _0x3f5e99['getAllAdjacentSuggestions']())_0x4ab09d['discard']();});});}['enableCommand'](_0x1ee2e7,_0x1c9843){const _0x426237=this['editor']['commands']['get'](_0x1ee2e7);if(!_0x426237)throw new _0x22e092('track-changes-command-not-found',this,{'commandName':_0x1ee2e7});if(this['_enabledCommands']['has'](_0x426237))throw new _0x22e092('track-changes-enable-command-twice',this,{'commandName':_0x1ee2e7});this['_enabledCommands']['add'](_0x426237),_0x1c9843&&_0x426237['on']('execute',(_0x313463,_0x2d1641)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2d1641['length']>0x0&&_0x2d1641[_0x2d1641['length']-0x1]&&_0x2d1641[_0x2d1641['length']-0x1]['forceDefaultExecution']?_0x2d1641['pop']():(_0x313463['return']=_0x1c9843((..._0x429f63)=>_0x426237['execute'](..._0x429f63,{'forceDefaultExecution':!0x0}),..._0x2d1641),_0x313463['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2fbad1){let _0x1d9c70,_0x328946;const _0x45da2b=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1d9c70=_0x2fbad1();}catch(_0x211513){_0x328946=_0x211513;}return _0x45da2b||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x328946&&_0x22e092['rethrowUnexpectedError'](_0x328946,this),_0x1d9c70;}['markInsertion'](_0x12a9d0,_0x3f121b=null,_0x2fd59c={}){if(_0x12a9d0['isCollapsed'])return null;const _0x2b25c9=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x5a70bc,meta:_0x11b9a8}of this['_findSuggestions'](_0x12a9d0,'insertion'))if(_0x11b9a8['isOwn']){if(!_0x11b9a8['isNextTo']){if(_0x11b9a8['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x5a70bc,_0x2fd59c))continue;return _0x5a70bc;}if(Qt(_0x5a70bc,_0x2fd59c))return _0x5a70bc;this['_breakSuggestionMarker'](_0x5a70bc,_0x12a9d0['start'],_0x12a9d0['end']);break;}if(_0x3f121b==_0x5a70bc['subType']&&Qt(_0x5a70bc,_0x2fd59c)){const _0x1bfdb6=_0x5a70bc['getFirstRange']();return _0x1bfdb6['start']['isEqual'](_0x12a9d0['end'])?this['_setSuggestionRange'](_0x5a70bc,this['_model']['createRange'](_0x12a9d0['start'],_0x1bfdb6['end'])):this['_setSuggestionRange'](_0x5a70bc,this['_model']['createRange'](_0x1bfdb6['start'],_0x12a9d0['end'])),_0x5a70bc;}}const _0x41a85d=_0x10aa54(),_0x34ce35=_0x2b25c9['id'],_0x5c8b9a=_0x3f121b?'insertion:'+_0x3f121b:'insertion',_0x154ad2=this['_setSuggestionData']({'id':_0x41a85d,'type':_0x5c8b9a,'createdAt':new Date(),'authorId':_0x34ce35,'attributes':_0x2fd59c});return this['_addSuggestionMarker'](_0x5c8b9a,_0x41a85d,_0x34ce35,_0x12a9d0),_0x154ad2;}['markMultiRangeInsertion'](_0x12e3e5,_0x15b371='multi',_0xe10244={}){const _0x254601=this['editor']['plugins']['get']('Users')['me'],_0x34a486=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x15b371,'join');for(const _0x19497f of this['getSuggestions']())if(_0x19497f['author']['id']==_0x254601['id']&&'insertion'==_0x19497f['type']&&_0x19497f['subType']==_0x15b371&&Qt(_0x19497f,_0xe10244)&&(_0x34a486(_0x19497f['getRanges'](),_0x12e3e5)||_0x34a486(_0x12e3e5,_0x19497f['getRanges']()))){for(const _0x2f824f of _0x12e3e5)_0x19497f['addRange'](_0x2f824f);return _0x19497f;}for(const {suggestion:_0x522122,meta:_0x175680}of this['_findSuggestions'](_0x12e3e5,'insertion')){if(!_0x175680['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x175680['containsRangeInObject'])continue;if(!Qt(_0x522122,_0xe10244))continue;let _0x47861d=!0x0;for(const _0x10a954 of _0x522122['getRanges']())for(const _0x21de44 of _0x12e3e5)if(!_0x10a954['containsRange'](_0x21de44)){_0x47861d=!0x1;break;}if(_0x47861d)return _0x522122;}const _0x460f67=_0x10aa54(),_0x51633c=_0x254601['id'],_0x3fe8f5='insertion:'+_0x15b371,_0x1b75d7=this['_setSuggestionData']({'id':_0x460f67,'type':_0x3fe8f5,'createdAt':new Date(),'authorId':_0x51633c,'attributes':_0xe10244});for(const _0x104e5f of _0x12e3e5)this['_addSuggestionMarker'](_0x3fe8f5,_0x460f67,_0x51633c,_0x104e5f,o['getMultiRangeId']());return _0x1b75d7;}['markInlineFormat'](_0x51492a,_0x2b8852,_0x4faa74=null,_0x145f26={}){if(_0x4faa74=_0x4faa74||Jt(_0x2b8852),_0x51492a['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2df1e2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4faa74,'accept');return this['forceDefaultExecution'](()=>_0x2df1e2([_0x51492a],_0x2b8852,_0x145f26)),null;}const _0x1030e5=this['editor']['plugins']['get']('Users')['me'],_0x847852=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x165a19,meta:_0x198efe}of this['_findSuggestions'](_0x51492a,'insertion'))_0x198efe['isOwn']&&!_0x198efe['isInsideObject']&&_0x847852['push'](..._0x165a19['getRanges']());}const _0x4a172b=function(_0x1b3db3,_0x3a9c68){const _0x22010e=[];for(const _0x128c4a of _0x3a9c68){const _0x28c881=_0x1b3db3['getIntersection'](_0x128c4a);_0x28c881&&_0x22010e['push'](_0x28c881);}return _0x22010e;}(_0x51492a,_0x847852),_0x1f7df4=function(_0x471775,_0x2526ea){const _0x14da55=[_0x471775];for(const _0x23bd4f of _0x2526ea){let _0xd9def=0x0;for(;_0xd9def<_0x14da55['length'];){const _0x25e799=_0x14da55[_0xd9def]['getDifference'](_0x23bd4f);_0x14da55['splice'](_0xd9def,0x1,..._0x25e799),_0xd9def+=_0x25e799['length'];}}return _0x14da55;}(_0x51492a,_0x847852);_0x4a172b['length']&&this['_model']['change'](()=>{for(const _0x466f9d of _0x4a172b){const _0x579731=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4faa74,'accept');this['forceDefaultExecution'](()=>_0x579731([_0x466f9d],_0x2b8852,_0x145f26));}});for(const _0x27c41a of _0x1f7df4){let _0x496e71=null,_0x59e69b=_0x27c41a['start'],_0x2a351d=_0x27c41a['end'];for(const {suggestion:_0x103711,meta:_0x5ca4c4}of this['_findSuggestions'](_0x27c41a,'formatInline')){if(!_0x5ca4c4['isOwn'])continue;if(_0x103711['subType']!=_0x4faa74)continue;if(!Qt(_0x103711,_0x145f26))continue;const _0x4b975f=_0x103711['getFirstRange']();if(_0x4b975f['containsRange'](_0x27c41a,!0x0))return null;_0x59e69b=_0x59e69b['isBefore'](_0x4b975f['start'])?_0x59e69b:_0x4b975f['start'],_0x2a351d=_0x2a351d['isAfter'](_0x4b975f['end'])?_0x2a351d:_0x4b975f['end'],_0x496e71?_0x4b975f['start']['isBefore'](_0x496e71['getFirstRange']()['start'])?(_0x496e71['removeMarkers'](),_0x496e71=_0x103711):_0x103711['removeMarkers']():_0x496e71=_0x103711;}const _0x5caeaf=this['_model']['createRange'](_0x59e69b,_0x2a351d);if(_0x496e71)this['_setSuggestionRange'](_0x496e71,_0x5caeaf);else{const _0x4e5458=_0x10aa54(),_0x16ec6d=_0x1030e5['id'];this['_setSuggestionData']({'id':_0x4e5458,'type':'formatInline:'+_0x4faa74,'data':_0x2b8852,'createdAt':new Date(),'authorId':_0x16ec6d,'attributes':_0x145f26}),this['_addSuggestionMarker']('formatInline:'+_0x4faa74,_0x4e5458,_0x16ec6d,_0x5caeaf);}}return null;}['markBlockFormat'](_0x3040ec,_0x694cd3,_0x1fc794=[],_0x344e0=null,_0x3f6d84={}){_0x694cd3['formatGroupId']||(_0x694cd3['formatGroupId']=_0x694cd3['commandName']),_0x694cd3['multipleBlocks']=_0x3040ec['is']('range'),_0x344e0=_0x344e0||Jt(_0x694cd3);const _0x4e6adf=_0x1fc794['map'](_0x284b6c=>qt(_0x284b6c,this['_model'])),_0x2a35e4=_0x3040ec['is']('range')?_0x3040ec:qt(_0x3040ec,this['_model']);if('never'===this['_trackFormatChanges']){const _0x430d54=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x344e0,'accept');return this['forceDefaultExecution'](()=>_0x430d54([_0x2a35e4],_0x694cd3,_0x3f6d84)),null;}_0x4e6adf['push'](_0x2a35e4);let _0x7a344c=!0x0;for(const _0xf85c9 of _0x4e6adf)if(!this['_rangeIsInLocalUserInsertion'](_0xf85c9)){_0x7a344c=!0x1;break;}if(_0x7a344c&&'always'!==this['_trackFormatChanges']){const _0x5b1545=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x344e0,'accept');return this['forceDefaultExecution'](()=>_0x5b1545([_0x2a35e4],_0x694cd3,_0x3f6d84)),null;}let _0xd9385b=null,_0xc20486=_0x2a35e4['start'],_0x5bdc81=_0x2a35e4['end'];for(const {suggestion:_0xcd9ae5,meta:_0x23302f}of this['_findSuggestions'](_0x2a35e4,'formatBlock')){if(!_0x23302f['isOwn'])continue;if(_0x23302f['isNextTo']||_0x23302f['containsRangeInObject']||_0x23302f['isInsideObject'])continue;if(_0xcd9ae5['data']['formatGroupId']!=_0x694cd3['formatGroupId'])continue;if(!Qt(_0xcd9ae5,_0x3f6d84))continue;const _0x1ca4dd=_0xcd9ae5['getFirstRange']();if(_0xcd9ae5['subType']==_0x344e0){if(_0x1ca4dd['containsRange'](_0x2a35e4,!0x0))return null;_0xc20486=_0xc20486['isBefore'](_0x1ca4dd['start'])?_0xc20486:_0x1ca4dd['start'],_0x5bdc81=_0x5bdc81['isAfter'](_0x1ca4dd['end'])?_0x5bdc81:_0x1ca4dd['end'],_0xd9385b?_0x1ca4dd['start']['isBefore'](_0xd9385b['getFirstRange']()['start'])?(_0xd9385b['removeMarkers'](),_0xd9385b=_0xcd9ae5):_0xcd9ae5['removeMarkers']():_0xd9385b=_0xcd9ae5;}else{const _0x2641f4=_0x2a35e4['getIntersection'](_0x1ca4dd);this['_cutOutSuggestionMarker'](_0xcd9ae5,_0x2641f4);}}const _0x533886=this['editor']['plugins']['get']('Users')['me'],_0x13a7e5=_0x10aa54(),_0x21c195=_0x533886['id'];if(_0xd9385b)return this['_setSuggestionRange'](_0xd9385b,this['_model']['createRange'](_0xc20486,_0x5bdc81)),_0xd9385b;{const _0x4d1d5b=this['_setSuggestionData']({'id':_0x13a7e5,'type':'formatBlock:'+_0x344e0,'data':_0x694cd3,'createdAt':new Date(),'authorId':_0x21c195,'attributes':_0x3f6d84});return this['_addSuggestionMarker']('formatBlock:'+_0x344e0,_0x13a7e5,_0x21c195,this['_model']['createRange'](_0xc20486,_0x5bdc81)),_0x4d1d5b;}}['markMultiRangeBlockFormat'](_0xbb0ccb,_0xf41b2,_0x278915=[],_0x2245d5=null,_0x51889b={}){_0xf41b2['formatGroupId']||(_0xf41b2['formatGroupId']=_0xf41b2['commandName']);const _0x52f959=_0xbb0ccb[0x0];_0xf41b2['multipleBlocks']=_0x52f959['is']('range'),_0x2245d5=_0x2245d5||Jt(_0xf41b2);const _0x2e6359=_0x278915['map'](_0x3d68a0=>qt(_0x3d68a0,this['_model'])),_0xfb9175=_0x52f959['is']('range')?_0xbb0ccb:_0xbb0ccb['map'](_0x546913=>qt(_0x546913,this['_model']));if('never'===this['_trackFormatChanges']){const _0x13be38=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2245d5,'accept');return this['forceDefaultExecution'](()=>_0x13be38(_0xfb9175,_0xf41b2,_0x51889b)),null;}_0x2e6359['push'](..._0xfb9175);let _0x40add2=!0x0;for(const _0x43c56e of _0x2e6359)if(!this['_rangeIsInLocalUserInsertion'](_0x43c56e)){_0x40add2=!0x1;break;}if(_0x40add2&&'always'!==this['_trackFormatChanges']){const _0x2927db=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2245d5,'accept');return this['forceDefaultExecution'](()=>_0x2927db(_0xfb9175,_0xf41b2,_0x51889b)),null;}const _0x3f62d3=this['editor']['plugins']['get']('Users')['me'];for(const _0x13905c of this['getSuggestions']()){if(_0x13905c['author']['id']!=_0x3f62d3['id'])continue;if('formatBlock'!=_0x13905c['type']||_0x13905c['data']['formatGroupId']!=_0xf41b2['formatGroupId'])continue;if(!Qt(_0x13905c,_0x51889b))continue;const _0x35171f=_0x13905c['subType']==_0x2245d5;for(let _0x31dad3=0x0;_0x31dad3<_0xfb9175['length'];_0x31dad3++){const _0x24a3d8=_0xfb9175[_0x31dad3];for(const _0x5894b4 of _0x13905c['getMarkers']()){const _0x10e5d9=_0x5894b4['getRange']();if(_0x24a3d8['isEqual'](_0x10e5d9)){_0x35171f?(_0xfb9175['splice'](_0x31dad3,0x1),_0x31dad3--):_0x13905c['removeMarker'](_0x5894b4['name']);break;}}}}if(0x0==_0xfb9175['length'])return null;const _0x24b481=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2245d5,'join');for(const _0x449cf6 of this['getSuggestions']())if(_0x449cf6['author']['id']==_0x3f62d3['id']&&'formatBlock'==_0x449cf6['type']&&_0x449cf6['data']['formatGroupId']==_0xf41b2['formatGroupId']&&_0x449cf6['subType']==_0x2245d5&&Qt(_0x449cf6,_0x51889b)&&(_0x24b481(_0x449cf6['getRanges'](),_0xfb9175)||_0x24b481(_0xfb9175,_0x449cf6['getRanges']()))){for(const _0x1eefcc of _0xfb9175)_0x449cf6['addRange'](_0x1eefcc);return _0x449cf6;}const _0x358535=_0x10aa54(),_0x5d8e72=_0x3f62d3['id'],_0x2d743a='formatBlock:'+_0x2245d5,_0x403dbc=this['_setSuggestionData']({'id':_0x358535,'type':_0x2d743a,'data':_0xf41b2,'createdAt':new Date(),'authorId':_0x5d8e72,'attributes':_0x51889b});for(const _0x50a5bd of _0xfb9175)this['_addSuggestionMarker'](_0x2d743a,_0x358535,_0x5d8e72,_0x50a5bd,o['getMultiRangeId']());return _0x403dbc;}['markDeletion'](_0x1fe625,_0x57820d=null,_0x208e96={}){if(_0x1fe625['isCollapsed'])return null;const _0x374a75=this['editor']['plugins']['get']('Users')['me'],_0x3081b3=new _0x2f2fb6(_0x1fe625['start'],_0x1fe625['end']);for(const {suggestion:_0x36969,meta:_0x52600b}of this['_findSuggestions'](_0x3081b3,'insertion'))if(_0x52600b['isOwn']&&!_0x52600b['isNextTo']){if(_0x36969['isMultiRange']){const _0x2423ec=_0x36969['getRanges']()['filter'](_0x5d6c16=>'$graveyard'!=_0x5d6c16['root']['rootName']);_0x2423ec['every'](_0x4d5981=>_0x3081b3['containsRange'](_0x4d5981,!0x0))&&_0x36969['discard']();if(_0x2423ec['some'](_0x140a80=>_0x140a80['containsRange'](_0x3081b3,!0x0))){const _0x11aa0d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x57820d,'accept');return this['forceDefaultExecution'](()=>_0x11aa0d([_0x3081b3],null,_0x208e96)),null;}}else{const _0x2c91e1=_0x3081b3['getIntersection'](_0x36969['getFirstRange']());null!==_0x2c91e1&&_0x36969['_onDiscard']([_0x2c91e1],null,_0x208e96);}}if(_0x3081b3['detach'](),_0x3081b3['isCollapsed']||'$graveyard'==_0x3081b3['root']['rootName'])return null;let _0x4a766d=null,_0x27eb3f=_0x3081b3['start'],_0xd2c841=_0x3081b3['end'];const _0x219e40=this['_findSuggestions'](_0x3081b3,'deletion');for(const {suggestion:_0x2f8c9c,meta:_0x120c22}of _0x219e40){const _0x23f56e=this['_model']['createRange'](_0x27eb3f,_0xd2c841);if(_0x120c22['isOwn']&&(this['_mergeNestedSuggestions']||!_0x120c22['containsRangeInObject']&&!_0x120c22['isInsideObject'])){if(_0x2f8c9c['isMultiRange']){if(!Qt(_0x2f8c9c,_0x208e96))continue;let _0xf3b6b=!0x0;for(const _0x7fc94f of _0x2f8c9c['getRanges']()){if(_0x7fc94f['containsRange'](_0x23f56e,!0x0))return _0x2f8c9c;_0x23f56e['containsRange'](_0x7fc94f)||(_0xf3b6b=!0x1);}_0xf3b6b&&_0x2f8c9c['discard']();}else{const _0x1d194d=_0x2f8c9c['getFirstRange']();if(_0x1d194d['containsRange'](_0x23f56e,!0x0))return _0x2f8c9c;if(!Qt(_0x2f8c9c,_0x208e96)){_0x23f56e['containsRange'](_0x1d194d)?_0x2f8c9c['removeMarkers']():_0x1d194d['containsPosition'](_0x27eb3f)?_0x27eb3f=_0x1d194d['end']:_0x1d194d['containsPosition'](_0xd2c841)&&(_0xd2c841=_0x1d194d['start']);continue;}_0x27eb3f=_0x27eb3f['isBefore'](_0x1d194d['start'])?_0x27eb3f:_0x1d194d['start'],_0xd2c841=_0xd2c841['isAfter'](_0x1d194d['end'])?_0xd2c841:_0x1d194d['end'],_0x208e96=Object['assign']({},_0x2f8c9c['attributes']),_0x4a766d?_0x1d194d['start']['isBefore'](_0x4a766d['getFirstRange']()['start'])?(_0x4a766d['removeMarkers'](),_0x4a766d=_0x2f8c9c):_0x2f8c9c['removeMarkers']():_0x4a766d=_0x2f8c9c;}}}if(_0x4a766d)return this['_setSuggestionRange'](_0x4a766d,this['_model']['createRange'](_0x27eb3f,_0xd2c841)),_0x4a766d;{const _0x4025ac=_0x10aa54(),_0x15b75d=this['_model']['createRange'](_0x27eb3f,_0xd2c841),_0x391cb3=_0x374a75['id'],_0x9abf49=_0x57820d?'deletion:'+_0x57820d:'deletion',_0x4d23c7=this['_setSuggestionData']({'id':_0x4025ac,'type':_0x9abf49,'createdAt':new Date(),'authorId':_0x391cb3,'attributes':_0x208e96});return this['_addSuggestionMarker'](_0x9abf49,_0x4025ac,_0x391cb3,_0x15b75d),_0x4d23c7;}}['markMultiRangeDeletion'](_0x58c5a1,_0x1e4d63='multi',_0xd33c7={}){const _0x4a4bab=this['editor']['plugins']['get']('Users')['me'],_0x1b2cbe=_0x58c5a1['map'](_0x381ec0=>new _0x2f2fb6(_0x381ec0['start'],_0x381ec0['end'])),_0x42ede4=new Set();for(const {suggestion:_0x1b8062,meta:_0x423e1a}of this['_findSuggestions'](_0x1b2cbe,'insertion'))_0x423e1a['isOwn']&&!_0x423e1a['isNextTo']&&_0x42ede4['add'](_0x1b8062);for(const _0x62ec1a of _0x42ede4)if(_0x62ec1a['isMultiRange']){const _0x3f339c=_0x62ec1a['getRanges']();(!_0x62ec1a['attributes']||!_0x62ec1a['attributes']['skipNestingCheck'])&&(_0x3f339c['every'](_0x1fa9b2=>_0x1b2cbe['some'](_0x34f11a=>_0x34f11a['containsRange'](_0x1fa9b2,!0x0)))&&_0x62ec1a['discard']());if(_0x1b2cbe['every'](_0x4634ec=>_0x3f339c['some'](_0x4e8dea=>_0x4e8dea['containsRange'](_0x4634ec,!0x0)))){const _0x4240a7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1e4d63,'accept');return this['forceDefaultExecution'](()=>_0x4240a7(_0x58c5a1,null,_0xd33c7)),null;}}else{const _0x40607b=_0x62ec1a['getFirstRange']();_0x1b2cbe['some'](_0x2c1328=>_0x2c1328['containsRange'](_0x40607b,!0x0))&&_0x62ec1a['discard']();if(_0x1b2cbe['every'](_0x2b14ad=>_0x40607b['containsRange'](_0x2b14ad,!0x0))){const _0x561f63=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1e4d63,'accept');return this['forceDefaultExecution'](()=>_0x561f63(_0x1b2cbe,null,_0xd33c7)),null;}}const _0x3733f2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1e4d63,'join');let _0x5a1c00=null;for(const _0x4ebc16 of this['getSuggestions']())if(_0x4ebc16['author']['id']==_0x4a4bab['id']&&_0x4ebc16['isInContent']&&'deletion'==_0x4ebc16['type']&&_0x4ebc16['subType']==_0x1e4d63&&Qt(_0x4ebc16,_0xd33c7)&&(_0x3733f2(_0x4ebc16['getRanges'](),_0x1b2cbe)||_0x3733f2(_0x1b2cbe,_0x4ebc16['getRanges']()))){if(_0x5a1c00){if(_0x4ebc16['commentThread']&&_0x4ebc16['commentThread']['length'])continue;for(const _0x3611dc of _0x4ebc16['getRanges']())_0x5a1c00['isIntersectingWithRange'](_0x3611dc)||_0x5a1c00['addRange'](_0x3611dc);_0x4ebc16['removeMarkers']();}else{_0x5a1c00=_0x4ebc16;for(const _0x7d347e of _0x1b2cbe)_0x4ebc16['isIntersectingWithRange'](_0x7d347e)||_0x4ebc16['addRange'](_0x7d347e);}}if(_0x5a1c00)return _0x5a1c00;_0x42ede4['clear']();for(const {suggestion:_0x4ef1a0,meta:_0x4646e5}of this['_findSuggestions'](_0x1b2cbe,'deletion'))_0x4646e5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4646e5['containsRangeInObject']&&!_0x4646e5['isInsideObject'])&&Qt(_0x4ef1a0,_0xd33c7)&&_0x42ede4['add'](_0x4ef1a0);for(const _0x349ef5 of _0x42ede4){const _0x1d314a=_0x349ef5['getRanges']();if(!_0xd33c7||!_0xd33c7['skipNestingCheck']){if(_0x1b2cbe['every'](_0x39178e=>_0x1d314a['some'](_0x5f378c=>_0x5f378c['containsRange'](_0x39178e,!0x0))))return _0x349ef5;}(!_0x349ef5['attributes']||!_0x349ef5['attributes']['skipNestingCheck'])&&(_0x1d314a['every'](_0x2ef087=>_0x1b2cbe['some'](_0x4ea776=>_0x4ea776['containsRange'](_0x2ef087,!0x0)))&&_0x349ef5['discard']());}const _0x276293=_0x10aa54(),_0x23136f=_0x4a4bab['id'],_0x2b92a1='deletion:'+_0x1e4d63,_0x151eee=this['_setSuggestionData']({'id':_0x276293,'type':_0x2b92a1,'createdAt':new Date(),'authorId':_0x23136f,'attributes':_0xd33c7});for(const _0x439597 of _0x1b2cbe)_0x439597['detach'](),_0x439597['isCollapsed']||'$graveyard'==_0x439597['root']['rootName']||this['_addSuggestionMarker'](_0x2b92a1,_0x276293,_0x23136f,_0x439597,o['getMultiRangeId']());return _0x151eee;}['markAttributeChange'](_0x2be41d,_0x1d09e3,_0x1fed40,_0x5cfea1,_0x110c49){if(_0x2be41d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x52c152=this['editor']['plugins']['get']('Users')['me']['id'],_0x1b56fc=Array['from'](this['_suggestions']['values']())['filter'](_0x1c6cda=>'attribute'==_0x1c6cda['type']&&_0x1c6cda['data']['key']==_0x1d09e3&&_0x1c6cda['isIntersectingWithRange'](_0x2be41d));if('default'===this['_trackFormatChanges']){const _0x145fb3=this['_findSuggestions'](_0x2be41d,'insertion')['filter'](({meta:_0x44c5bc})=>_0x44c5bc['isOwn']&&!_0x44c5bc['isInsideObject']&&!_0x44c5bc['isNextTo'])['map'](({suggestion:_0x518017})=>_0x518017);_0x1b56fc['unshift'](..._0x145fb3);}const _0x3037fe=new Map([[_0x2be41d,_0x1fed40]]);for(const _0x30df14 of _0x1b56fc){const _0x28f0ff='attribute'==_0x30df14['type']?_0x30df14['data']['oldValue']:void 0x0,_0x525491=_0x30df14['getFirstRange'](),_0x18b1d7=Array['from'](_0x3037fe['keys']())['find'](_0x24a176=>_0x24a176['isIntersecting'](_0x525491));if(!_0x18b1d7)continue;const _0x282588=_0x18b1d7['getDifference'](_0x525491);this['_isBlockAttribute'](_0x1d09e3)&&'insertion'==_0x30df14['type']&&0x0!=_0x282588['length']||(_0x3037fe['delete'](_0x18b1d7),_0x282588['forEach'](_0x477b83=>{_0x3037fe['set'](_0x477b83,_0x1fed40);}),'insertion'!=_0x30df14['type']&&_0x28f0ff!=_0x5cfea1&&_0x3037fe['set'](_0x18b1d7['getIntersection'](_0x525491),_0x28f0ff));}const _0xf9134c=[];for(const [_0x3c018b,_0x1ac3ce]of _0x3037fe){const _0x42c47c=_0x10aa54(),_0x25115c={'key':_0x1d09e3,'oldValue':_0x1ac3ce,'newValue':_0x5cfea1};_0x1d09e3['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':_0x1d09e3});const _0x4f1ae9=('attribute:'+(_0x1d09e3+'|'+Jt({'newValue':_0x5cfea1})))['substring'](0x0,0x3c),_0x27b9e2=this['_setSuggestionData']({'id':_0x42c47c,'type':_0x4f1ae9,'data':_0x25115c,'createdAt':new Date(),'authorId':_0x52c152,'attributes':_0x110c49});_0xf9134c['push'](_0x27b9e2),this['_addSuggestionMarker'](_0x4f1ae9,_0x42c47c,_0x52c152,_0x3c018b);}return _0xf9134c;}['enableDefaultAttributesIntegration'](_0x2a9948){this['enableCommand'](_0x2a9948,(_0x50e268,..._0x3241fe)=>{this['_recordAttributeChanges'](()=>{_0x50e268(..._0x3241fe);});});}['registerBlockAttribute'](_0x2f8d71){this['_blockAttributeKeys']['add'](_0x2f8d71);}['registerInlineAttribute'](_0x17b14c){this['_inlineAttributeKeys']['add'](_0x17b14c);}['_getAttributeKey'](_0x165ab2){return'attribute'==_0x165ab2['type']?_0x165ab2['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x58a4e6,_0x4d5bfc){const _0xfe7af4=_0x58a4e6['getFirstMarker']();this['_model']['change'](_0x102d44=>{_0x102d44['updateMarker'](_0xfe7af4,{'range':_0x4d5bfc});});}['_addThreadToSuggestion'](_0x3a94d1){const _0x52ba2=_0x3a94d1['id'],_0x148510=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x52ba2)||this['_commentsRepository']['addCommentThread']({'channelId':_0x148510,'threadId':_0x52ba2,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x47b8ba=this['_commentsRepository']['getCommentThread'](_0x52ba2);_0x47b8ba['unbind']('isRemovable'),_0x47b8ba['isRemovable']=!0x1,_0x3a94d1['commentThread']=_0x47b8ba;}['_checkSuggestionCorrectness'](_0x4f827f,_0x2947a9,_0x1f6915,_0x84a100){if(_0x4f827f['type']!=_0x2947a9||_0x4f827f['subType']!=_0x1f6915||_0x4f827f['creator']['id']!=_0x84a100)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x22e092('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x58ef5c,_0x324944){const _0x4c19fd=_0x58ef5c['getFirstRange']();if(_0x324944['isEqual'](_0x4c19fd))_0x58ef5c['removeMarkers']();else{if(_0x4c19fd['containsRange'](_0x324944)){const _0xc92577=this['_model']['createPositionAt'](_0x324944['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x58ef5c,this['_model']['createRange'](_0x4c19fd['start'],_0xc92577));const _0x2b9a5b=_0x10aa54(),_0x19e245=_0x58ef5c['creator']['id'],_0x53940f=_0x58ef5c['type']+':'+_0x58ef5c['subType'];this['_setSuggestionData']({'id':_0x2b9a5b,'type':_0x53940f,'createdAt':new Date(),'authorId':_0x19e245,'data':_0x58ef5c['data'],'attributes':_0x58ef5c['attributes']});const _0xab525a=this['_model']['createPositionAt'](_0x324944['end']['parent'],'after'),_0x3b9c65=this['_model']['createRange'](_0xab525a,_0x4c19fd['end']);this['_addSuggestionMarker'](_0x53940f,_0x2b9a5b,_0x19e245,_0x3b9c65);}else{if(_0x4c19fd['containsPosition'](_0x324944['start'])){const _0x3490cd=this['_model']['createPositionAt'](_0x324944['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x58ef5c,this['_model']['createRange'](_0x4c19fd['start'],_0x3490cd));}else{const _0x5d78b8=this['_model']['createPositionAt'](_0x324944['end']['parent'],'after');this['_setSuggestionRange'](_0x58ef5c,this['_model']['createRange'](_0x5d78b8,_0x4c19fd['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xc3d6ff){for(const {suggestion:_0x4d602c,meta:_0x9a7e83}of this['_findSuggestions'](_0xc3d6ff,'insertion')){if(!_0x9a7e83['isOwn'])continue;const _0x1a6f91=_0x4d602c['getRanges']();for(const _0x4ad89f of _0x1a6f91)if(!_0xc3d6ff['getDifference'](_0x4ad89f)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x36921e){const _0x42256a=this['editor']['plugins']['get']('Users')['getUser'](_0x36921e);if(!_0x42256a)throw new _0x22e092('track-changes-user-not-found',this);return _0x42256a;}['_getExternalAuthor'](_0x59ad07){const _0x24463c=this['editor']['plugins']['get']('Users'),_0x31cfa0=_0x43ce86('external:'+_0x59ad07),_0x23b282=_0x24463c['getUser'](_0x31cfa0);return _0x23b282||_0x24463c['addUser']({'id':_0x31cfa0,'name':_0x59ad07});}['_createSuggestion'](_0x1e9e56,_0x5ded28,_0x3dafe3,_0x2212a8,_0x5309a4){const _0x5cb88e=this['_getAuthorFromId'](_0x2212a8),_0xccd276=this['_suggestionFactory']['buildSuggestion'](_0x1e9e56,_0x5ded28,_0x3dafe3,_0x5cb88e,_0x5309a4,_0x2efad3=>{this['_updateSuggestionData'](_0x3dafe3,{'attributes':_0x2efad3});const _0x549d48=this['getSuggestion'](_0x3dafe3);this['_joinWithAdjacentSuggestions'](new Set([_0x549d48])),this['_refreshSuggestionsChain'](new Set([_0x549d48]));});return this['listenTo'](_0xccd276,'accept',()=>{this['_updateSuggestionData'](_0x3dafe3,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xccd276,'discard',()=>{this['_updateSuggestionData'](_0x3dafe3,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3dafe3,_0xccd276),this['_suggestionState']['set'](_0xccd276,'notReady'),_0xccd276;}['_splitMarkerName'](_0x2e1fe9){const _0x4a5868=_0x2e1fe9['split'](':');return{'group':_0x4a5868[0x0],'type':_0x4a5868[0x1],'subType':_0x4a5868['length']>=0x5?_0x4a5868[0x2]:null,'id':_0x4a5868['length']<0x5?_0x4a5868[0x2]:_0x4a5868[0x3],'authorId':_0x4a5868['length']<0x5?_0x4a5868[0x3]:_0x4a5868[0x4],'markerCount':0x6==_0x4a5868['length']?_0x4a5868[0x5]:null};}['_breakSuggestionMarker'](_0x1be5c3,_0x4c102c,_0x4fbe59){const _0x830bd5=_0x1be5c3['getFirstRange'](),_0x2c7521=_0x830bd5['start'],_0x514c72=_0x830bd5['end'];this['_setSuggestionRange'](_0x1be5c3,this['_model']['createRange'](_0x2c7521,_0x4c102c));const _0x5d1831=_0x10aa54(),_0x5c8fcc=_0x1be5c3['creator']['id'],_0x19495a=_0x1be5c3['type']+(_0x1be5c3['subType']?':'+_0x1be5c3['subType']:'');this['_setSuggestionData']({'id':_0x5d1831,'type':_0x19495a,'createdAt':new Date(),'authorId':_0x5c8fcc,'originalSuggestionId':_0x1be5c3['id'],'attributes':_0x1be5c3['attributes'],'data':_0x1be5c3['data']});const _0x120c92=this['_getAttributeKey'](_0x1be5c3);('formatBlock'==_0x1be5c3['type']||_0x120c92&&this['_isBlockAttribute'](_0x120c92))&&(_0x4fbe59=this['_model']['createPositionBefore'](_0x4fbe59['parent'])),this['_addSuggestionMarker'](_0x19495a,_0x5d1831,_0x5c8fcc,this['_model']['createRange'](_0x4fbe59,_0x514c72));}['_findSuggestions'](_0x25230d,_0xdf2b5c=null){const _0x278ed0=[],_0x3a21e5=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x25230d)||(_0x25230d=[_0x25230d]);for(const _0x18e1a0 of this['getSuggestions']()){if(!_0x18e1a0['isInContent'])continue;if(_0xdf2b5c&&_0x18e1a0['type']!=_0xdf2b5c)continue;let _0x5f5a89=!0x1;for(const _0x56bd19 of _0x18e1a0['getRanges']()){for(const _0x34ba4f of _0x25230d){const _0x4a2925=_0x34ba4f['start']['isEqual'](_0x56bd19['end'])||_0x34ba4f['end']['isEqual'](_0x56bd19['start']);if(_0x4a2925||_0x34ba4f['getIntersection'](_0x56bd19)){const _0x455d97=_0x34ba4f['containsRange'](_0x56bd19)&&Pt(this['_model']['schema'],_0x56bd19['start'],_0x34ba4f),_0x279898=_0x56bd19['containsRange'](_0x34ba4f)&&Pt(this['_model']['schema'],_0x34ba4f['start'],_0x56bd19);_0x278ed0['push']({'suggestion':_0x18e1a0,'meta':{'isOwn':_0x3a21e5==_0x18e1a0['author'],'isNextTo':_0x4a2925,'isInsideObject':_0x455d97,'containsRangeInObject':_0x279898}}),_0x5f5a89=!0x0;break;}}if(_0x5f5a89)break;}}return _0x278ed0;}['_addSuggestionMarker'](_0x4ec9f0,_0x1eb9cf,_0x49aa01,_0x28a64b,_0x5889a9){this['_model']['change'](_0x1860e9=>{let _0x23a9d3='suggestion:'+_0x4ec9f0+':'+_0x1eb9cf+':'+_0x49aa01;_0x5889a9&&(_0x23a9d3=_0x23a9d3+':'+_0x5889a9),_0x1860e9['addMarker'](_0x23a9d3,{'range':_0x28a64b,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x390f95){const _0x59eb25=_0x390f95['previous'],_0x3333d7=_0x390f95['next'];_0x390f95['previous']=null,_0x390f95['next']=null,null!=_0x59eb25&&_0x59eb25['next']==_0x390f95&&(_0x59eb25['next']=_0x3333d7),null!=_0x3333d7&&_0x3333d7['previous']==_0x390f95&&(_0x3333d7['previous']=_0x59eb25),'ready'==this['_suggestionState']['get'](_0x390f95)&&(this['_suggestionState']['set'](_0x390f95,'removed'),this['fire']('suggestionUnloaded',_0x390f95,_0x59eb25,_0x3333d7));}['_setSuggestionData'](_0x4bb917){const _0x23185d=_0x4bb917['id'],_0x3b107d=this['addSuggestionData'](_0x4bb917);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x14c07e=this['editor']['plugins']['get']('PendingActions'),_0x10337d=_0x3b107d['hasComments'],_0x873e41=_0x3b107d['subType']?_0x3b107d['type']+':'+_0x3b107d['subType']:_0x3b107d['type'],_0x21facf=this['editor']['locale'],_0x4321c1=_0x14c07e['add'](c(_0x21facf,'PENDING_ACTION_SUGGESTION')),_0x173a8e={'id':_0x23185d,'type':_0x873e41,'hasComments':_0x10337d,'data':_0x4bb917['data']||null,'originalSuggestionId':_0x4bb917['originalSuggestionId']||null,'attributes':_0x3b107d['attributes']};this['_adapter']['addSuggestion'](_0x173a8e)['then'](_0x48ca8a=>{_0x3b107d['_saved']=!0x0,_0x14c07e['remove'](_0x4321c1),_0x48ca8a&&_0x48ca8a['createdAt']&&(this['_suggestions']['get'](_0x23185d)['createdAt']=_0x48ca8a['createdAt']);})['catch'](_0x184765=>{throw _0x9f668c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3b107d['discard']();}),_0x3b107d['stopListening'](),this['_suggestions']['delete'](_0x3b107d['id']),this['_suggestionState']['delete'](_0x3b107d),_0x184765;});}return _0x3b107d;}['_isBlockAttribute'](_0x4f7ccb){return this['_blockAttributeKeys']['has'](_0x4f7ccb);}['_updateSuggestionData'](_0x2d2a61,_0x2c1cdd){const _0x40e305=this['editor']['plugins']['get']('PendingActions'),_0x40aef7=this['getSuggestion'](_0x2d2a61);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x40aef7['_saved']){const _0x4c3c29=_0x40e305['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2d2a61,_0x2c1cdd)['then'](()=>{_0x40e305['remove'](_0x4c3c29);});}else _0x40aef7['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2d2a61,_0x2c1cdd);});}}['_getSuggestionData'](_0x2c49ca){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x22e092('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2c49ca);}['_handleNewSuggestionMarker'](_0xdee9d4){const {id:_0x5cbbaa,type:_0x1246f7,subType:_0x482d34,authorId:_0x1a5dc2}=this['_splitMarkerName'](_0xdee9d4),_0x33fd0d=this['_suggestions']['get'](_0x5cbbaa)||this['_createSuggestion'](_0x1246f7,_0x482d34,_0x5cbbaa,_0x1a5dc2,{});switch(this['_checkSuggestionCorrectness'](_0x33fd0d,_0x1246f7,_0x482d34,_0x1a5dc2),this['_suggestionState']['get'](_0x33fd0d)){case'notReady':this['_getSuggestionData'](_0x5cbbaa)['then'](_0x944c61=>{let _0x2d1ddd=Promise['resolve']();_0x944c61['hasComments']&&(_0x2d1ddd=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5cbbaa})),_0x2d1ddd['then'](()=>{this['addSuggestionData'](_0x944c61)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x33fd0d,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5cbbaa,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x33fd0d,'ready'),this['fire']('suggestionLoaded',_0x33fd0d);break;case'ready':this['fire']('suggestionChanged',_0x33fd0d);}return _0x33fd0d['addMarkerName'](_0xdee9d4),_0x33fd0d;}['_refreshSuggestionsChain'](_0x2eabfe){const _0x29195d=Array['from'](_0x2eabfe),_0x48e27e=_0x29195d['filter'](_0x103f47=>'attribute'==_0x103f47['type']);this['_refreshAttributeSuggestionsChain'](_0x48e27e);const _0x56a07e=_0x29195d['filter'](_0x5de718=>!_0x5de718['isMultiRange']&&'attribute'!=_0x5de718['type']),_0x4ce725=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x601938=>!_0x601938['isMultiRange']&&'attribute'!=_0x601938['type']),_0x241f5d=_0x4ce725['filter'](_0x1cbeea=>!_0x2eabfe['has'](_0x1cbeea)),_0x3b2102=new Map(_0x4ce725['map'](_0x4aa1f3=>[_0x4aa1f3,this['_suggestionFactory']['getSuggestionCallback'](_0x4aa1f3['type'],_0x4aa1f3['subType'],'chain')])),_0x3a50a4=new Map(_0x4ce725['map'](_0x15fdd2=>[_0x15fdd2,_0x15fdd2['getFirstRange']()])),_0x5cdb20=new Set(),_0x17bff0=new Set();for(let _0x4ec048=0x0;_0x4ec048<_0x56a07e['length'];_0x4ec048++)_0x1fd75b(_0x56a07e[_0x4ec048],_0x56a07e,_0x4ec048+0x1);for(let _0x54a4d9=0x0;_0x54a4d9<_0x56a07e['length'];_0x54a4d9++)_0x1fd75b(_0x56a07e[_0x54a4d9],_0x241f5d,0x0);const _0x29e831=new Set();for(let _0xf4226b=0x0;_0xf4226b<_0x56a07e['length'];_0xf4226b++){const _0x39ab85=_0x56a07e[_0xf4226b];!_0x17bff0['has'](_0x39ab85)&&_0x39ab85['previous']&&(_0x29e831['add'](_0x39ab85['previous']),_0x39ab85['previous']['next']===_0x39ab85&&(_0x39ab85['previous']['next']=null),_0x39ab85['previous']=null),!_0x5cdb20['has'](_0x39ab85)&&_0x39ab85['next']&&(_0x29e831['add'](_0x39ab85['next']),_0x39ab85['next']['previous']===_0x39ab85&&(_0x39ab85['next']['previous']=null),_0x39ab85['next']=null);}function _0x1fd75b(_0x5488e2,_0x4aeeb3,_0x1a1532){for(let _0x293ff1=_0x1a1532;_0x293ff1<_0x4aeeb3['length'];_0x293ff1++){const _0x4ff000=_0x5d4160(_0x5488e2,_0x4aeeb3[_0x293ff1]);_0x4ff000&&(_0x4ff000[0x0]['next']=_0x4ff000[0x1],_0x4ff000[0x1]['previous']=_0x4ff000[0x0],_0x5cdb20['add'](_0x4ff000[0x0]),_0x17bff0['add'](_0x4ff000[0x1]));}}function _0x5d4160(_0x3c06ca,_0x315b56){if(_0x3c06ca['author']['id']!==_0x315b56['author']['id'])return null;const _0x190f9b=_0x3b2102['get'](_0x3c06ca)(_0x3c06ca,_0x315b56,_0x3a50a4['get'](_0x3c06ca),_0x3a50a4['get'](_0x315b56));if(!_0x190f9b)return null;return _0x3b2102['get'](_0x315b56)(_0x3c06ca,_0x315b56,_0x3a50a4['get'](_0x3c06ca),_0x3a50a4['get'](_0x315b56))?_0x190f9b[0x1]['commentThread']&&_0x190f9b[0x1]['commentThread']['length']?null:_0x190f9b:null;}_0x29e831['size']&&this['_refreshSuggestionsChain'](_0x29e831);}['_refreshAttributeSuggestionsChain'](_0x5e50b7){if(0x0==_0x5e50b7['length'])return;const _0x20dc18=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x380351=>'attribute'==_0x380351['type']&&_0x380351['_isDataLoaded']),_0x51d93f=[],_0x1bf334=new Map();for(const _0x4fb885 of _0x20dc18){const _0x309195=_0x43ce86(_0x4fb885['attributes']);_0x1bf334['has'](_0x309195)||(_0x1bf334['set'](_0x309195,_0x51d93f['length']),_0x51d93f['push']([]));const _0x3bd6eb=_0x1bf334['get'](_0x309195);_0x51d93f[_0x3bd6eb]['push'](_0x4fb885);}!(function(){_0x51d93f['sort']((_0x78773e,_0x21e896)=>{const _0x55c607=_0x78773e[0x0]['createdAt'],_0x14b468=_0x21e896[0x0]['createdAt'];return _0x55c607==_0x14b468?_0x78773e[0x0]['attributes']['groupId']<_0x21e896[0x0]['attributes']['groupId']?-0x1:0x1:_0x55c607<_0x14b468?-0x1:0x1;});for(const _0x151eeb of _0x51d93f)_0x151eeb['sort']((_0x4c3ac0,_0x409ecb)=>_0x4c3ac0['id']<_0x409ecb['id']?-0x1:0x1);}());for(let _0x5ddba0=0x0;_0x5ddba0<_0x51d93f['length'];_0x5ddba0++){if(0x0==_0x51d93f[_0x5ddba0]['length'])continue;const _0x2249e2=[];for(let _0x206e38=_0x5ddba0+0x1;_0x206e38<_0x51d93f['length'];_0x206e38++)0x0!=_0x51d93f[_0x206e38]['length']&&_0x4c85b3(_0x51d93f[_0x5ddba0],_0x51d93f[_0x206e38])&&_0x2249e2['push'](_0x206e38);for(const _0x4d4797 of _0x2249e2)_0x51d93f[_0x5ddba0]=_0x51d93f[_0x5ddba0]['concat'](_0x51d93f[_0x4d4797]),_0x51d93f[_0x4d4797]=[];}for(const _0x551505 of _0x51d93f)for(let _0x44ffd0=0x0;_0x44ffd0<_0x551505['length'];_0x44ffd0++){const _0x4b2d23=_0x551505[_0x44ffd0+0x1]||null;_0x551505[_0x44ffd0]['next']!==_0x4b2d23&&(_0x551505[_0x44ffd0]['next']=_0x4b2d23);}for(const _0x37034f of _0x51d93f)for(let _0x171e6b=0x0;_0x171e6b<_0x37034f['length'];_0x171e6b++){const _0x24d6cb=_0x37034f[_0x171e6b-0x1]||null;_0x37034f[_0x171e6b]['previous']!==_0x24d6cb&&(_0x37034f[_0x171e6b]['previous']=_0x24d6cb);}function _0x4c85b3(_0x2ac6e1,_0x181991){if(_0x2ac6e1[0x0]['attributes']['groupId']!==_0x181991[0x0]['attributes']['groupId']&&_0x2ac6e1[0x0]['author']!==_0x181991[0x0]['author'])return!0x1;if(!function(_0x12666c,_0x41064e){if(!_0x12666c['hasComments']&&!_0x41064e['hasComments'])return!0x0;if(_0x12666c['hasComments']&&_0x41064e['hasComments'])return!0x1;if(_0x12666c['hasComments']&&_0x41064e['createdAt']<_0x12666c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x41064e['hasComments']&&_0x12666c['createdAt']<_0x41064e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2ac6e1[0x0],_0x181991[0x0]))return!0x1;const _0x1ebfac=Vt(_0x2ac6e1[0x0]['attributes'],'groupId'),_0x43d37e=Vt(_0x181991[0x0]['attributes'],'groupId');if(!_0x485c77(_0x1ebfac,_0x43d37e))return!0x1;return!!_0x2ac6e1['every'](_0x26b1e9=>_0x181991['some'](_0x24ed21=>_0x26b1e9['getFirstRange']()['isEqual'](_0x24ed21['getFirstRange']())))&&_0x181991['every'](_0xe9e494=>_0x2ac6e1['some'](_0x5361fd=>_0xe9e494['getFirstRange']()['isEqual'](_0x5361fd['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x8e0f3b){const _0x17b36c=Array['from'](_0x8e0f3b),_0x1ea6d2=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4349a4=_0x1ea6d2['filter'](_0x510f7a=>!_0x8e0f3b['has'](_0x510f7a)),_0x31b216=new Map(_0x17b36c['map'](_0x7b3db4=>[_0x7b3db4,this['_suggestionFactory']['getSuggestionCallback'](_0x7b3db4['type'],_0x7b3db4['subType'],'join')])),_0x4c0231=new Map(_0x1ea6d2['map'](_0x57a524=>[_0x57a524,_0x57a524['getRanges']()]));for(let _0x413f7=0x0;_0x413f7<_0x17b36c['length'];_0x413f7++){if(_0x534ae2(this,_0x17b36c[_0x413f7],_0x17b36c,_0x413f7+0x1))return!0x0;}for(let _0x1cb14e=0x0;_0x1cb14e<_0x17b36c['length'];_0x1cb14e++){if(_0x534ae2(this,_0x17b36c[_0x1cb14e],_0x4349a4,0x0))return!0x0;}return!0x1;function _0x534ae2(_0x346bd8,_0x329277,_0x18dc46,_0x406b7b){for(let _0x277961=_0x406b7b;_0x277961<_0x18dc46['length'];_0x277961++){const _0x210542=_0x18dc46[_0x277961];if(_0x210542['type']!==_0x329277['type']||_0x210542['author']['id']!==_0x329277['author']['id']||_0x210542['subType']!==_0x329277['subType'])continue;if(!Wt(_0x329277,_0x210542))continue;if('attribute'==_0x329277['type']&&_0x329277['data']['oldValue']!=_0x210542['data']['oldValue'])continue;if('attribute'==_0x329277['type']&&_0x346bd8['_isBlockAttribute'](_0x329277['data']['key']))continue;if('formatBlock'==_0x329277['type']){const _0x3a67bd=_0x346bd8['editor']['model'],_0x40e1a8=_0x329277['getContainedElement']();if(_0x40e1a8&&(_0x3a67bd['schema']['isObject'](_0x40e1a8)||_0x3a67bd['schema']['isLimit'](_0x40e1a8)))continue;}const _0x457e12=_0x31b216['get'](_0x329277),_0x550b57=_0x4c0231['get'](_0x329277),_0x35c186=_0x4c0231['get'](_0x210542),_0x6a96f3=_0x329277['commentThread']&&_0x329277['commentThread']['length'],_0xcdb76d=_0x210542['commentThread']&&_0x210542['commentThread']['length'];if(!_0x6a96f3&&_0x457e12(_0x35c186,_0x550b57))return _0x346bd8['_joinSuggestions'](_0x210542,_0x329277),_0x4c0231['delete'](_0x329277),!0x0;if(!_0xcdb76d&&_0x457e12(_0x550b57,_0x35c186))return _0x346bd8['_joinSuggestions'](_0x329277,_0x210542),_0x4c0231['delete'](_0x210542),!0x0;}return!0x1;}}['_joinSuggestions'](_0x37a108,_0x620ed0){if(_0x37a108['isMultiRange']){for(const _0x3e7724 of _0x620ed0['getRanges']())_0x37a108['addRange'](_0x3e7724);}else{const _0x55c1f9=_0x620ed0['getFirstRange']()['end'];this['_setSuggestionRange'](_0x37a108,this['_model']['createRange'](_0x37a108['getFirstRange']()['start'],_0x55c1f9));}_0x620ed0['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1d2d66,_0x1b9022,_0x16427d){const _0x4f1c41=_0x1d2d66['startsWith']('format')||_0x1d2d66['startsWith']('attribute')?'FORMATTING':_0x1d2d66['toUpperCase']();return c(this['editor']['locale'],_0x1b9022+'_'+_0x4f1c41+'_SUGGESTION_ANNOUNCEMENT',_0x16427d);}['_initAriaMarkerChangeAnnouncements'](){const _0x277000=this['editor'];if(!_0x277000['ui'])return;const {ariaLiveAnnouncer:_0x4f95d4}=_0x277000['ui'];_0x5be2fc(this['_model'],({left:_0x45211,entered:_0x6fc415})=>{for(const _0x461aa7 of _0x45211){const {group:_0x4434ce,type:_0x3304e8}=this['_splitMarkerName'](_0x461aa7['name']);if('suggestion'===_0x4434ce){_0x4f95d4['announce'](this['_getMarkerAnnouncementText'](_0x3304e8,'LEAVE'));break;}}for(const _0x380905 of _0x6fc415){const {group:_0x3cfc2d,type:_0x3550ca}=this['_splitMarkerName'](_0x380905['name']);if('suggestion'===_0x3cfc2d){_0x4f95d4['announce'](this['_getMarkerAnnouncementText'](_0x3550ca,'ENTER',_0x2ccdea(_0x195593)));break;}}});}['_processAttributeChanges'](_0xf5d1d4){if(this['_recordAttributeSuggestions'])return!0x1;const _0x187ad5=this['editor'],_0x44801e=_0x187ad5['model']['document']['differ']['getChanges']();if(0x0==_0x44801e['length'])return!0x1;const _0x122147=[],_0x41b648=_0x44801e['filter'](_0x4da587=>'attribute'==_0x4da587['type']),_0x4a7861=_0x44801e['filter'](_0x1321f9=>'insert'==_0x1321f9['type']&&'$text'!=_0x1321f9['name']),_0x1cf95e=_0x44801e['filter'](_0x20b36a=>'remove'==_0x20b36a['type']&&'$text'!=_0x20b36a['name']);for(const _0x5c4c0d of _0x41b648)_0x122147['push']({'key':_0x5c4c0d['attributeKey'],'newValue':_0x5c4c0d['attributeNewValue'],'oldValue':_0x5c4c0d['attributeOldValue'],'range':Ht(_0x5c4c0d['range'],_0x187ad5['model'])});for(const _0x4f704c of _0x4a7861){const _0x356dba=_0x1cf95e['find'](_0x3956ad=>_0x3956ad['position']['isEqual'](_0x4f704c['position']));_0x356dba&&_0x122147['push']({'key':u,'newValue':_0x4f704c['name'],'oldValue':_0x356dba['name'],'range':_0x187ad5['model']['createRangeOn'](_0x4f704c['position']['nodeAfter'])});}return 0x0!=_0x122147['length']&&this['_reduceExistingSuggestions'](_0xf5d1d4,_0x122147);}['_processAttributeSuggestions'](_0x4457b1){let _0x397111=!0x1;const _0x1f3671=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5e9f14=>_0x5e9f14['data']['newRange']&&_0x5e9f14['name']['startsWith']('suggestion:attribute:'));for(const _0xd66370 of _0x1f3671){const {subType:_0x8bdb56,id:_0x2969cb}=this['_splitMarkerName'](_0xd66370['name']),_0x501b32=_0x8bdb56['split']('|')[0x0];for(const _0x8fb6ae of this['getSuggestions']({'skipNotAttached':!0x0}))_0x8fb6ae['id']!=_0x2969cb&&'attribute'==_0x8fb6ae['type']&&_0x8fb6ae['data']&&_0x8fb6ae['data']['key']==_0x501b32&&_0x8fb6ae['getFirstRange']()['isIntersecting'](_0xd66370['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x8fb6ae,_0xd66370['data']['newRange'],_0x4457b1),_0x397111=!0x0);}return _0x397111;}['_recordAttributeChanges'](_0x35e56e){this['_recordAttributeSuggestions']=!0x0,_0x35e56e();}['_isRegisteredAttribute'](_0x430187){const _0x418cba=this['_isBlockAttribute'](_0x430187),_0x4debc9=this['_inlineAttributeKeys']['has'](_0x430187);return _0x418cba||_0x4debc9;}['_reduceExistingSuggestions'](_0x342dd2,_0x15f38b){if(0x0==_0x15f38b['length'])return!0x1;let _0x57e24b=!0x1;for(const _0x24618a of _0x15f38b){const _0x1c5f5b=this['_findSuggestions'](_0x24618a['range'],'attribute')['filter'](_0x1591c4=>!_0x1591c4['meta']['isNextTo'])['map'](_0x3f8d89=>_0x3f8d89['suggestion']),_0x1501b2=_0x43ce86({'newValue':_0x24618a['newValue']});_0x1c5f5b['filter'](_0x41e523=>{const [_0xf24e21,_0x3f09e3]=_0x41e523['subType']['split']('|');return _0xf24e21==_0x24618a['key']&&_0x3f09e3!=_0x1501b2;})['forEach'](_0x20528c=>{this['_reduceSuggestionAttributeRange'](_0x20528c,_0x24618a['range'],_0x342dd2),_0x57e24b=!0x0;});}return _0x57e24b;}['_reduceSuggestionAttributeRange'](_0x17a70e,_0x5f0efe,_0x33ec12){const _0x268abf=_0x17a70e['getFirstRange']()['getDifference'](_0x5f0efe);0x0!==_0x268abf['length']?0x1!==_0x268abf['length']?this['_breakSuggestionMarker'](_0x17a70e,_0x5f0efe['start'],_0x5f0efe['end']):this['_setSuggestionRange'](_0x17a70e,_0x268abf[0x0]):_0x33ec12['removeMarker'](_0x17a70e['getFirstMarker']());}}class Ft{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x51941c){this['_editor']=_0x51941c,this['_model']=_0x51941c['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x18b64a,_0x2f9445,_0x1cf66a,_0x381df0,_0x3343cb,_0x3b1c3e){return new o(this['_model'],{'type':_0x18b64a,'subType':_0x2f9445,'id':_0x1cf66a,'author':_0x381df0,'creator':_0x381df0,'attributes':_0x3343cb,'onAttributesChange':_0x3b1c3e,'onAccept':(..._0x4b5e8d)=>this['getSuggestionCallback'](_0x18b64a,_0x2f9445,'accept')(..._0x4b5e8d),'onDiscard':(..._0x1d11ca)=>this['getSuggestionCallback'](_0x18b64a,_0x2f9445,'discard')(..._0x1d11ca)});}['registerCustomCallback'](_0x10f28f,_0x5b64d0,_0x24ff89,_0x265ac0){const _0xead5c2=_0x10f28f+':'+_0x5b64d0+':'+_0x24ff89;this['_customCallbacks']['set'](_0xead5c2,_0x265ac0);}['getSuggestionCallback'](_0x4f483c,_0x352315,_0x3f49b2){const _0x1758e2=_0x4f483c+':'+_0x352315+':'+_0x3f49b2;return this['_customCallbacks']['get'](_0x1758e2)||this['_defaultCallbacks']['get'](_0x4f483c+':'+_0x3f49b2);}['_registerDefaultCallbacks'](){const _0x1027c5=()=>!0x1,_0x47f54b=_0xa3c130=>{_0xa3c130['sort']((_0x123eca,_0x398a5c)=>_0x123eca['start']['isBefore'](_0x398a5c['start'])?0x1:-0x1),this['_model']['change'](_0x2c6a2d=>{for(const _0x21e99f of _0xa3c130){let _0x5b8405;_0x5b8405=_0x21e99f['end']['isAtEnd']&&_0x21e99f['end']['parent']==_0x21e99f['start']['nodeAfter']?_0x2c6a2d['createSelection'](_0x21e99f['start']['nodeAfter'],'on'):_0x2c6a2d['createSelection'](_0x21e99f),this['_model']['deleteContent'](_0x5b8405,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5e60a2=(_0x1cf828,_0x252923)=>{_0x252923&&this['_model']['change'](_0x457517=>{const {commandName:_0xa818d8,commandParams:_0x4c720c=[]}=_0x252923,_0x31eaea=_0x1cf828['map'](_0x481647=>(Gt(_0x481647)&&(_0x481647=this['_model']['createRange'](_0x481647['end'])),_0x481647))['filter'](_0x3ae005=>'$graveyard'!==_0x3ae005['root']['rootName']);if(_0x31eaea['length']<0x1)return;const _0x3d6604=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xd327c1=>_0x2f2fb6['fromRange'](_0xd327c1));_0x457517['setSelection'](_0x31eaea);for(const _0x25c3e0 of this['_editor']['commands']['commands']())_0x25c3e0['refresh']();_0x4c720c['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xa818d8,..._0x4c720c);const _0x449d40=_0x3d6604['filter'](_0x770b2d=>'$graveyard'!=_0x770b2d['root']['rootName']);_0x449d40['length']>0x0&&_0x457517['setSelection'](_0x449d40);for(const _0xabe8ea of _0x3d6604)_0xabe8ea['detach']();});},_0x173546=(_0x31af04,_0x27ae28)=>0x1==_0x31af04['length']&&0x1==_0x27ae28['length']&&_0x31af04[0x0]['end']['isEqual'](_0x27ae28[0x0]['start']),_0x8083f9=(_0x5479c0,_0x2fd149,_0x2f9b47,_0x4eeb76)=>zt(_0x5479c0,_0x2fd149,_0x2f9b47,_0x4eeb76)?[_0x5479c0,_0x2fd149]:zt(_0x2fd149,_0x5479c0,_0x4eeb76,_0x2f9b47)?[_0x2fd149,_0x5479c0]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1027c5),this['_defaultCallbacks']['set']('insertion:discard',_0x47f54b),this['_defaultCallbacks']['set']('insertion:join',_0x173546),this['_defaultCallbacks']['set']('insertion:chain',_0x8083f9),this['_defaultCallbacks']['set']('deletion:accept',_0x47f54b),this['_defaultCallbacks']['set']('deletion:discard',_0x1027c5),this['_defaultCallbacks']['set']('deletion:join',_0x173546),this['_defaultCallbacks']['set']('deletion:chain',_0x8083f9),this['_defaultCallbacks']['set']('formatInline:accept',_0x5e60a2),this['_defaultCallbacks']['set']('formatInline:discard',_0x1027c5),this['_defaultCallbacks']['set']('formatInline:join',_0x173546),this['_defaultCallbacks']['set']('formatInline:chain',_0x1027c5),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5e60a2),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1027c5),this['_defaultCallbacks']['set']('formatBlock:join',_0x173546),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1027c5),this['_defaultCallbacks']['set']('attribute:accept',_0x1027c5),this['_defaultCallbacks']['set']('attribute:discard',(_0x2f7337,_0x2a9434)=>{if(!_0x2a9434)return;const _0x15724c=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5165a9=>{if(_0x2a9434['key']==u)for(const _0x2b833f of _0x2f7337){const _0x2200b8=_0x2b833f['start']['nodeAfter'],_0x1308d8=_0x2a9434['oldValue'];_0x5165a9['rename'](_0x2200b8,_0x1308d8);}else{if(_0x15724c['_isBlockAttribute'](_0x2a9434['key'])){for(const _0x5ba709 of _0x2f7337)void 0x0!==_0x2a9434['oldValue']?_0x5165a9['setAttribute'](_0x2a9434['key'],_0x2a9434['oldValue'],_0x5ba709['start']['nodeAfter']):_0x5165a9['removeAttribute'](_0x2a9434['key'],_0x5ba709['start']['nodeAfter']);}else{for(const _0x126476 of _0x2f7337)_0x2a9434['oldValue']?_0x5165a9['setAttribute'](_0x2a9434['key'],_0x2a9434['oldValue'],_0x126476):_0x5165a9['removeAttribute'](_0x2a9434['key'],_0x126476);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x173546);}}function Pt(_0x379edd,_0x12b9fd,_0x3f86e4){for(const _0x37cc2b of _0x12b9fd['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x37cc2b['root']==_0x37cc2b)return!0x1;if(!_0x3f86e4['containsItem'](_0x37cc2b))return!0x1;if(_0x379edd['isObject'](_0x37cc2b)||_0x379edd['isLimit'](_0x37cc2b))return!0x0;}return!0x1;}function Gt(_0x2e094f){return _0x2e094f['end']['parent']==_0x2e094f['start']['nodeAfter']&&_0x2e094f['end']['isAtStart'];}function Lt(_0x4b66e5,_0x1c7a0c,_0x3987e9,_0x5534c4){const _0x3b1535=_0x1b63d4=>!_0x1b63d4['item']['is']('$textProxy')&&!_0x5534c4['isObject'](_0x1b63d4['item']),_0x3db4f3=_0x4b66e5['start']['getLastMatchingPosition'](_0x3b1535),_0x207cf8=_0x4b66e5['end']['getLastMatchingPosition'](_0x3b1535,{'direction':'backward'});return(!_0x4b66e5['start']['isEqual'](_0x3db4f3)||!_0x4b66e5['end']['isEqual'](_0x207cf8))&&(_0x3db4f3['isBefore'](_0x207cf8)?_0x3987e9['updateMarker'](_0x1c7a0c,{'range':_0x3987e9['createRange'](_0x3db4f3,_0x207cf8)}):_0x3987e9['removeMarker'](_0x1c7a0c),!0x0);}function Jt(_0x11baf5){return _0x43ce86(_0x11baf5);}function Kt(_0x2ae6df){const _0x34ac25=_0x2ae6df['start']['nodeAfter'];return _0x34ac25&&_0x34ac25['is']('element');}function Ht(_0x42c7fc,_0x194b2a){return null==_0x42c7fc['end']['nodeBefore']&&_0x42c7fc['end']['parent']==_0x42c7fc['start']['nodeAfter']?qt(_0x42c7fc['start']['nodeAfter'],_0x194b2a):_0x42c7fc;}function qt(_0x1e29c5,_0x3a1e37){const _0x3153cd=_0x3a1e37['schema']['isObject'](_0x1e29c5)||_0x3a1e37['schema']['isSelectable'](_0x1e29c5);return _0x3a1e37['createRange'](_0x3a1e37['createPositionAt'](_0x1e29c5,'before'),_0x3153cd?_0x3a1e37['createPositionAfter'](_0x1e29c5):_0x3a1e37['createPositionAt'](_0x1e29c5,'end'));}function zt(_0x519929,_0x3d5947,_0x42b055,_0x5f0641){return!!Wt(_0x519929,_0x3d5947)&&_0x42b055['end']['isEqual'](_0x5f0641['start']);}function Wt(_0x571957,_0x5a3c0d){if(!_0x571957['_isDataLoaded']||!_0x5a3c0d['_isDataLoaded'])return!0x1;const _0x3267d7=new Set(Object['keys'](_0x571957['attributes'])),_0x5be4fd=new Set(Object['keys'](_0x5a3c0d['attributes']));if(_0x3267d7['delete']('groupId'),_0x5be4fd['delete']('groupId'),0x0==_0x3267d7['size']&&0x0==_0x5be4fd['size'])return!0x0;if(_0x3267d7['size']!=_0x5be4fd['size'])return!0x1;const _0xc7d30f={..._0x571957['attributes']},_0x2c20e0={..._0x5a3c0d['attributes']};return delete _0xc7d30f['groupId'],delete _0x2c20e0['groupId'],JSON['stringify'](_0xc7d30f)==JSON['stringify'](_0x2c20e0);}function Qt(_0x2cd26c,_0x30753d){const _0x54c135=Xt(_0x2cd26c['attributes']),_0x3d32bc=Xt(_0x30753d);if(!_0x2cd26c['_isDataLoaded'])return!0x1;for(const _0x182569 of Object['keys'](_0x3d32bc))if(!_0x485c77(_0x54c135[_0x182569],_0x3d32bc[_0x182569]))return!0x1;return!0x0;}function Xt(_0x517547){const _0x392357=Object['assign']({},_0x517547);return delete _0x392357['skipNestingCheck'],delete _0x392357['tablePasteChainId'],_0x392357;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x11026c(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x17a2dd,_0x5b8b99,_0x42f0a2,_0x222737){super(),this['model']=_0x5b8b99,this['view']=_0x42f0a2,this['commentThreadController']=_0x222737,this['_editor']=_0x17a2dd,this['_acceptCommand']=_0x17a2dd['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x17a2dd['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2f876d,_0x33d4e7)=>_0x2f876d||_0x33d4e7),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5ac8e6=>_0x5ac8e6&&this['_editor']['model']['canEditAt'](_0x5b8b99['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x98a6c0=>_0x98a6c0&&this['_editor']['model']['canEditAt'](_0x5b8b99['getRanges']())),this['_pendingAction']=null,_0x42f0a2['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x42f0a2,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x42f0a2,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x42f0a2,'change:isDirty',()=>{_0x42f0a2['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 _0x106b8c=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x106b8c);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x26f60a{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5f3434,_0x178750,_0x34a59c,_0x23c3d7){super(_0x5f3434),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5c0472(_0x5f3434,c(_0x5f3434,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x178750['authoredAt']),this['bind']('authoredAt')['to'](_0x178750),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',_0x178750,'authoredAt',this,'descriptionParts',(_0x2776ab,_0x53fe93,_0x48602d)=>{const _0x5c6779=_0x48602d['map'](_0x462766=>ls(_0x462766['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2776ab-0x1,_0x178750['author']['name'],_0x53fe93?_0x23c3d7['formatDateTime'](_0x53fe93):'',new DOMParser()['parseFromString'](_0x5c6779,'text/html')['body']['textContent']]);}),this['focusables']=new _0x584282(),this['focusTracker']=new _0x19af1e(),this['keystrokes']=new _0x22ff50(),this['focusCycler']=new _0x3d21f5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x591987=>_0x591987['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x178750,this['_localUser']=_0x34a59c,this['_config']=_0x23c3d7,_0x23c3d7['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x11bfa0(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x592010}=this['_config'];this['commentsListView']=new _0x592010(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',_0x28ab03=>_0x28ab03+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x116d07,_0x34172b)=>_0x116d07||!!_0x34172b);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4b537f}=this['_config'],_0x3e1591=new _0x4b537f(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2ff60a=_0x3e1591['commentInputView'];return _0x3e1591['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2ff60a,'value',(_0x5bcad1,_0x496b52,_0x28362d)=>!!_0x28362d||_0x5bcad1&&!_0x496b52),_0x2ff60a['on']('submit',(_0x1e262a,_0x5029c5)=>{this['fire']('addComment',_0x5029c5),_0x2ff60a['editor']['setData']('');}),_0x2ff60a['on']('cancel',()=>this['focus']()),_0x2ff60a['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3e1591;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x827a01,_0x165bd4,_0x5ec6b9,_0x208553){super(_0x827a01,_0x165bd4,_0x5ec6b9,_0x208553),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1e1cbc=>_0x1e1cbc&&_0x1e1cbc[0x0]?_0x1e1cbc[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x555184,_0xf6e497)=>{let _0x18edec='';for(const _0x265dd1 of _0x555184)_0x18edec+='<p>'+ls(_0x265dd1['content'],_0x265dd1['color'])+'</p>';return _0xf6e497?_0x18edec:ti(_0x18edec,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x208553['SuggestionView'](_0x827a01,_0x165bd4,{'formatDateTime':_0x208553['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 _0xe8de24=this['bindTemplate'],_0x33e93d=[this['suggestionView']];return this['commentsListView']&&_0x33e93d['push'](this['commentsListView']),this['commentThreadInputView']&&_0x33e93d['push'](this['commentThreadInputView']),_0x33e93d['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0xe8de24['if']('isActive','ck-suggestion-wrapper--active'),_0xe8de24['to']('type',_0xbd42de=>'ck-suggestion-'+_0xbd42de),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':_0xe8de24['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x33e93d};}['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 we extends _0x26f60a{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x443eae,_0xaeb8c5,_0x2e6237){super(_0x443eae),this['_model']=_0xaeb8c5,this['_config']=_0x2e6237,this['set']('description',''),this['bind']('authoredAt')['to'](_0xaeb8c5),this['acceptButton']=this['_createButton'](c(_0x443eae,'Accept\x20suggestion'),_0x3e5d5b,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x443eae,'Discard\x20suggestion'),_0x32e1db,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xf41a29(_0x443eae,_0xaeb8c5['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x584282([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x19af1e(),this['keystrokes']=new _0x22ff50(),this['focusCycler']=new _0x3d21f5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4cda76=>_0x4cda76['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3c6412=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3c6412['innerHTML']=this['description'],this['on']('change:description',(_0x1b3bb9,_0x39b8,_0x5d3ff0)=>{_0x3c6412['innerHTML']=_0x5d3ff0;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x53b6f4=this['bindTemplate'],_0x39b9ab=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x53b6f4['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x53b6f4['to']('authoredAt',_0x4f965d=>this['_config']['formatDateTime'](_0x4f965d))}]}]},{'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']&&_0x39b9ab['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':_0x39b9ab}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x5df6e5,_0x4c6ff8,_0x223f10,_0x14608e,_0x2cd609){const _0x42cbeb=new _0x5546ce(this['locale']);return _0x42cbeb['set']({'label':_0x5df6e5,'icon':_0x4c6ff8,'tooltip':!0x0,'tooltipPosition':_0x2cd609}),_0x42cbeb['extendTemplate']({'attributes':{'class':_0x223f10}}),_0x42cbeb['on']('execute',()=>{this['fire'](_0x14608e,this['_model']['id']);}),_0x42cbeb;}['_setupKeyboardNavigation'](){const _0x4ad080=this['element'];this['keystrokes']['listenTo'](_0x4ad080);for(const _0x5c3638 of this['focusables'])this['focusTracker']['add'](_0x5c3638['element']),this['keystrokes']['listenTo'](_0x5c3638['element']);this['keystrokes']['set']('enter',(_0x27819f,_0x50b447)=>{_0x4ad080===_0x27819f['target']&&(this['focusCycler']['focusFirst'](),_0x50b447());}),this['keystrokes']['set']('esc',(_0x2c5514,_0x385a23)=>{_0x4ad080!==_0x2c5514['target']&&(this['focus'](),_0x385a23());});}}class d extends _0x44ea50{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4f59c2,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x332676){super(_0x332676),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2a2d7f=this['editor']['config'];_0x2a2d7f['define']('trackChanges.SuggestionThreadView',fe),_0x2a2d7f['define']('trackChanges.SuggestionView',we),_0x2a2d7f['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2a2d7f['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x737cdc,_0x48d369){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2f8618,_0x5196be]of this['_handleControllerBuffer']){const _0x21cbf7=this['_suggestionToController']['has'](_0x2f8618);_0x21cbf7||_0x5196be?_0x21cbf7&&_0x5196be&&this['_destroyController'](_0x2f8618):this['_initializeController'](_0x2f8618);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x737cdc,_0x48d369);}['init'](){const _0x46c2e4=this['editor'],_0xb45f47=_0x46c2e4['plugins']['get']('TrackChangesEditing'),_0x2bf2a9=_0x46c2e4['plugins']['get']('Annotations'),_0x505f7e=_0x46c2e4['plugins']['get']('EditorAnnotations'),_0x3276c3=_0x46c2e4['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x505f7e['addSourceCollector'](()=>{const _0x49cdb8=[];for(const [_0x16c804,_0x476065]of Array['from'](this['_suggestionToController'])){const _0x47bc26=_0x16c804['getAllAdjacentSuggestions'](),_0x4107e7=[];for(const _0x5d6ab1 of _0x47bc26){if(!_0x5d6ab1['isInContent'])continue;if(_0x5d6ab1['isMultiRange']){_0x4107e7['push'](..._0x5d6ab1['getRanges']());continue;}const _0x28e3d9=_0x5d6ab1['getFirstRange']();if(_0x4107e7['length']>0x0){const _0x33c735=_0x4107e7[0x0]['getJoined'](_0x28e3d9);if(_0x33c735){_0x4107e7[0x0]=_0x33c735;continue;}}_0x4107e7['push'](_0x28e3d9);}_0x49cdb8['push']([_0x476065['view'],_0x4107e7]);}return _0x49cdb8;}),this['listenTo'](_0xb45f47,'suggestionLoaded',(_0x273e28,_0x23b071)=>{this['listenTo'](_0x23b071,'change:previous',(_0x2997cc,_0x4bac72,_0x474753,_0x301a26)=>{_0x23b071['isInContent']&&(null==_0x474753?(this['_updateController'](_0x301a26['head']),this['_handleSuggestionControllerDelayed'](_0x23b071,!0x1)):(this['_updateController'](_0x474753['head']),null==_0x301a26&&this['_handleSuggestionControllerDelayed'](_0x23b071,!0x0)));}),null!==_0x23b071['previous']?this['_updateController'](_0x23b071['head']):this['_handleSuggestionControllerDelayed'](_0x23b071,!0x1);}),this['listenTo'](_0xb45f47,'suggestionUnloaded',(_0xc08f2a,_0x561f0f,_0x34a7fd)=>{this['stopListening'](_0x561f0f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x561f0f),this['_suggestionToController']['has'](_0x561f0f)&&this['_destroyController'](_0x561f0f),_0x34a7fd&&this['_updateController'](_0x34a7fd['head']);}),this['listenTo'](_0xb45f47,'suggestionChanged',(_0x5d6d9b,_0x298eb7)=>{this['_updateController'](_0x298eb7);}),this['listenTo'](_0x2bf2a9,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3276c3,'addComment',(_0x15a089,{threadId:_0x3cdafa,isFromAdapter:_0x28f6b7})=>{if(_0x28f6b7||!_0xb45f47['hasSuggestion'](_0x3cdafa))return;const _0x583843=_0xb45f47['getSuggestion'](_0x3cdafa);this['_suggestionToController']['get'](_0x583843)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xe927f7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x489f3e;for(const _0x55452c in _0xe927f7){const _0x188384=_0x55452c,_0x4a6a35=_0xe927f7[_0x188384];if('trackChangesLicenseKeyValid'==_0x4a6a35||'trackChangesLicenseKeyInvalid'==_0x4a6a35||'trackChangesLicenseKeyExpired'==_0x4a6a35||'trackChangesLicenseKeyDomainLimit'==_0x4a6a35||'trackChangesLicenseKeyNotAllowed'==_0x4a6a35||'trackChangesLicenseKeyEvaluationLimit'==_0x4a6a35||'trackChangesLicenseKeyTrialLimit'==_0x4a6a35||'trackChangesLicenseKeyUsageLimit'==_0x4a6a35){delete _0xe927f7[_0x188384],_0x489f3e=_0x4a6a35,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x489f3e&&_0xe927f7['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x489f3e&&_0xe927f7['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x489f3e&&_0xe927f7['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x489f3e&&_0xe927f7['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x489f3e&&_0xe927f7['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x489f3e&&_0xe927f7['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x489f3e&&_0xe927f7['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x2cc155=this['editor']['plugins']['get']('Annotations'),_0xd01699=this['editor']['plugins']['get']('TrackChangesEditing'),_0x525bdb=Array['from'](_0x2cc155['activeAnnotations'],_0x3dfa54=>_0x3dfa54['innerView'])['filter'](_0x380f0c=>this['_viewToController']['has'](_0x380f0c)),_0x208159=[];for(const _0x46d7af of _0x525bdb){const _0x1848d9=this['_viewToController']['get'](_0x46d7af)['model']['getAllAdjacentSuggestions']();_0x208159['push'](..._0x1848d9['reduce']((_0x41a9fe,_0x47a99b)=>[..._0x41a9fe,..._0x47a99b['getMarkerNames']()],[]));}_0xd01699['activeMarkers']=_0x208159;}['_addUIComponentsToFactory'](){const _0xb7ae08=this['editor'],_0x2fc3a4=_0xb7ae08['locale'],_0x23d14b=c(_0x2fc3a4,'Track\x20changes'),_0x37cb96=new _0x1ec4b7([{'type':'switchbutton','model':new _0x26d155({'withText':!0x0,'isToggleable':!0x0,'label':_0x23d14b,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x26d155({'withText':!0x0,'label':c(_0x2fc3a4,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x26d155({'withText':!0x0,'label':c(_0x2fc3a4,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x26d155({'withText':!0x0,'label':c(_0x2fc3a4,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x26d155({'withText':!0x0,'label':c(_0x2fc3a4,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0xb7ae08['plugins']['has']('TrackChangesPreview')&&_0x37cb96['addMany']([{'type':'separator'},{'type':'button','model':new _0x26d155({'withText':!0x0,'label':c(_0x2fc3a4,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x33d8e8 of _0x37cb96)if(ke(_0x33d8e8)){const _0x451c54=_0xb7ae08['commands']['get'](_0x33d8e8['model']['commandName']);_0x33d8e8['model']['bind']('isOn','isEnabled')['to'](_0x451c54,'value','isEnabled');}_0xb7ae08['ui']['componentFactory']['add']('trackChanges',_0x2004d8=>this['_createToolbarButton'](_0x2004d8,_0x37cb96,_0x23d14b)),_0xb7ae08['ui']['componentFactory']['add']('menuBar:trackChanges',_0xe91b53=>this['_createMenuBarMenu'](_0xe91b53,_0x37cb96,_0x23d14b));}['_createToolbarButton'](_0x5c75e2,_0x3a3f14,_0x4c1bdb){const _0x3eae25=_0x3b26d9(_0x5c75e2,_0x37f358),_0x2a71c5=this['editor']['commands']['get']('trackChanges');_0x3eae25['buttonView']['set']({'tooltip':_0x4c1bdb,'label':_0x4c1bdb,'icon':_0x2ea253}),_0x3eae25['buttonView']['bind']('isOn')['to'](_0x2a71c5,'value'),_0x3eae25['buttonView']['on']('execute',()=>{_0x2a71c5['execute'](),this['editor']['editing']['view']['focus']();}),_0x3b10ce(_0x3eae25,_0x3a3f14,{'role':'menu'});const _0x35b37b=[];for(const _0x7eb39a of _0x3a3f14)ke(_0x7eb39a)&&_0x35b37b['push'](this['editor']['commands']['get'](_0x7eb39a['model']['commandName']));const _0xba94eb=_0x3eae25['buttonView'];return _0xba94eb['actionView']['unbind']('isEnabled'),_0xba94eb['arrowView']['unbind']('isEnabled'),_0xba94eb['actionView']['bind']('isEnabled')['to'](_0x2a71c5,'isEnabled'),_0xba94eb['arrowView']['bind']('isEnabled')['toMany'](_0x35b37b,'isEnabled',(..._0x487d80)=>_0x487d80['some'](_0x1212c4=>_0x1212c4)),_0x3eae25['on']('execute',_0x199904=>{this['editor']['execute'](_0x199904['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3eae25;}['_createMenuBarMenu'](_0x2dda53,_0x15d4fc,_0xe08a54){const _0x7a1fd6=new _0x231feb(_0x2dda53),_0x518d58=this['editor']['commands']['get']('trackChanges');_0x7a1fd6['buttonView']['set']({'label':_0xe08a54,'icon':_0x2ea253});const _0x140b6f=new _0x2460a0(_0x2dda53);for(const _0x5ba5e5 of _0x15d4fc){if('separator'==_0x5ba5e5['type']){_0x140b6f['items']['add'](new _0x3bf034(_0x2dda53));continue;}const _0x2e02a5=new _0x17c50b(_0x2dda53,_0x7a1fd6),_0x36abcc=new _0x2e9ff5(_0x2dda53),_0x156a2e=_0x5ba5e5['model'];_0x36abcc['bind'](...Object['keys'](_0x156a2e))['to'](_0x156a2e),_0x36abcc['delegate']('execute')['to'](_0x7a1fd6),_0x36abcc['on']('execute',()=>{this['editor']['execute'](_0x156a2e['commandName']),this['editor']['editing']['view']['focus']();}),_0x2e02a5['children']['add'](_0x36abcc),_0x140b6f['items']['add'](_0x2e02a5);}return _0x7a1fd6['bind']('isEnabled')['to'](_0x518d58,'isEnabled'),_0x7a1fd6['panelView']['children']['add'](_0x140b6f),_0x7a1fd6;}['_initializeController'](_0x299829){const _0xb5bad4=this['editor'],_0x31a7e8=_0xb5bad4['config'],_0x5ae796=_0xb5bad4['plugins']['get']('Annotations'),_0x58bae7=_0xb5bad4['plugins']['get']('CommentsRepository'),_0x35fa74=_0xb5bad4['plugins']['get']('EditorAnnotations'),_0x535d3a=_0xb5bad4['plugins']['get'](_0x4f59c2)['me'],_0x3b62ad=_0x31a7e8['get']('trackChanges')['SuggestionThreadView'],_0x4617b7=_0x31a7e8['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1c4cba,CommentThreadInputView:_0x2114a0}=_0xb5bad4['plugins']['get']('CommentsUI');let _0x5de0aa,_0x5532d4,_0x3d626f;this['_annotationViews']['has'](_0x299829['id'])?(_0x5532d4=this['_annotationViews']['get'](_0x299829['id']),_0x5de0aa=_0x5532d4['mainView']):(_0x5de0aa=new _0x3b62ad(_0xb5bad4['locale'],_0x299829,_0x535d3a,{'disableComments':this['_disableComments'],'editorConfig':{..._0x31a7e8['get']('comments.editorConfig'),'licenseKey':_0x31a7e8['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x31a7e8['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x31a7e8['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x31a7e8['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2bf34b(_0x31a7e8['get']('locale')),'CommentView':_0x31a7e8['get']('comments')['CommentView'],'CommentsListView':_0x1c4cba,'CommentThreadInputView':_0x2114a0,'SuggestionView':_0x4617b7}),_0x5de0aa['suggestionView']['acceptButton']['on']('execute',()=>{_0xb5bad4['editing']['view']['focus']();}),_0x5de0aa['suggestionView']['discardButton']['on']('execute',()=>{_0xb5bad4['editing']['view']['focus']();}),_0x5532d4=_0x5ae796['createAnnotationView'](this['editor']['locale'],_0x5de0aa),_0x5532d4['bind']('isDirty')['to'](_0x5de0aa,'isDirty'),_0x5532d4['bind']('length')['to'](_0x5de0aa),_0x5532d4['bind']('type')['to'](_0x5de0aa,'type',_0x3188cd=>'suggestion-'+_0x3188cd),_0x5de0aa['on']('escape',()=>{_0x3d626f['fire']('escape');}),this['_annotationViews']['set'](_0x299829['id'],_0x5532d4));const _0x5ee794=_0x58bae7['createCommentThreadController'](_0x299829['commentThread'],_0x5de0aa),_0x1a4b5=new pe(_0xb5bad4,_0x299829,_0x5de0aa,_0x5ee794),_0x1db52a=_0x299829['getAllAdjacentSuggestions']()['filter'](_0x280b6a=>_0x280b6a['isInContent']);_0x5de0aa['descriptionParts']=_0xb5bad4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1db52a),this['_suggestionToController']['set'](_0x299829,_0x1a4b5),this['_viewToController']['set'](_0x5de0aa,_0x1a4b5),_0x3d626f=_0x5ae796['createAnnotation']({'view':_0x5532d4,'target':()=>{const _0x2546c6=[],_0x5ed03a=_0x299829['getAllAdjacentSuggestions']()['filter'](_0x3b7095=>_0x3b7095['isInContent']);for(const _0x1f6990 of _0x5ed03a)_0x2546c6['push'](..._0x1f6990['getMarkers']());return _0x3762f2(_0xb5bad4['editing'],_0x2546c6);},'type':()=>'suggestion-'+_0x1a4b5['view']['type']}),_0x58bae7['_bindAnnotationToEditors'](_0x5de0aa,_0x3d626f),_0x5ae796['add'](_0x3d626f),_0x35fa74['registerAnnotation'](_0x3d626f);}['_destroyController'](_0x64ed78){const _0x924a41=this['editor']['plugins']['get']('CommentsRepository'),_0x34fc4c=this['editor']['plugins']['get']('Annotations'),_0x20c3e1=this['_suggestionToController']['get'](_0x64ed78),_0x442d47=_0x20c3e1['view'],_0x33c566=_0x34fc4c['getByInnerView'](_0x442d47);_0x924a41['_unbindEditors'](_0x442d47),_0x33c566&&_0x34fc4c['remove'](_0x33c566),this['_suggestionToController']['delete'](_0x64ed78),this['_viewToController']['delete'](_0x442d47),_0x20c3e1['destroy']();}['_updateController'](_0x49a66f){if(!_0x49a66f['isInContent']||!this['_suggestionToController']['has'](_0x49a66f))return;const _0x2ccc34=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2cbb76=this['_suggestionToController']['get'](_0x49a66f),_0xb7af3d=_0x49a66f['getAllAdjacentSuggestions']();_0x2cbb76['view']['descriptionParts']=_0x2ccc34['descriptionFactory']['getDescriptions'](_0xb7af3d);}['destroy'](){for(const _0x121a08 of this['_suggestionToController']['keys']())this['_destroyController'](_0x121a08);for(const _0x2cba03 of this['_annotationViews']['values']())_0x2cba03['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0xae12b9){return'model'in _0xae12b9;}class k extends _0x44ea50{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x374474){this['editor']['plugins']['get'](p)['adapter']=_0x374474;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x1087af){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x1087af);}['getSuggestions']({skipNotAttached:_0x7cf1e2=!0x1,toJSON:_0x4f49c2=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x7cf1e2,'toJSON':_0x4f49c2});}['getSuggestion'](_0x1394d0){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1394d0);}}const w=['Pagination'];class T extends _0x44ea50{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x9f4b35=this['editor'];if(_0x9f4b35['config']['define']('trackChangesData.editorCreator',_0x14f56e=>{const _0x1a7ee1=_0x9f4b35['model']['document']['getRootNames']()['reduce']((_0x11f2e8,_0x409bf7)=>(_0x11f2e8[_0x409bf7]='',_0x11f2e8),{});return _0x9f4b35['constructor']['create'](_0x1a7ee1,_0x14f56e);}),'function'!=typeof _0x9f4b35['config']['get']('trackChangesData')['editorCreator'])throw new _0x22e092('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x239cd2){return N(this['editor'],!0x0,_0x239cd2);}['getDataWithDiscardedSuggestions'](_0x3c8bac){return N(this['editor'],!0x1,_0x3c8bac);}}class D extends _0x44ea50{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4af1b3){function _0x245f58(_0x43801b){return _0x43801b['map'](_0x40cadf=>String['fromCharCode'](_0x40cadf))['join']('');}super(_0x4af1b3),this['result']='end',_0x4af1b3[_0x245f58([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x245f58([0x76,0x69,0x65,0x77])][_0x245f58([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x245f58([0x61,0x75,0x74,0x6f]),_0x4af1b3[_0x245f58([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x245f58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x245f58([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x245f58([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x245f58([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x4042fe){return void 0x0!==_0x4042fe['getRootsAttributes'];}async function N(_0x45c52f,_0x31126d,_0x552f06){const _0xb3f031=_0x343ac8(_0x45c52f,w);_0xb3f031['plugins']['push'](p,D),_0xb3f031['rootsAttributes']=Fe(_0x45c52f)?_0x45c52f['getRootsAttributes']():void 0x0;const _0x509a2a=document['createDocumentFragment'](),_0x18fec5=_0x45c52f['config']['get']('trackChangesData')['editorCreator'],_0x119b75=await _0x18fec5(_0xb3f031,()=>function(_0x27f571){const _0x147add=document['createElement']('div');return _0x27f571['appendChild'](_0x147add),_0x147add;}(_0x509a2a));!function(_0x239310,_0x27bbc2){const _0x1d64a2=_0x239310['model']['document']['getRootNames']()['reduce']((_0x94ca5e,_0x3d1566)=>(_0x94ca5e[_0x3d1566]=_0x239310['data']['get']({'rootName':_0x3d1566}),_0x94ca5e),{}),_0x672b08=_0x239310['plugins']['get']('Users')['users']['map'](_0x2134c4=>({'id':_0x2134c4['id'],'name':_0x2134c4['name']})),_0x2c804a=_0x239310['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4a8cb4=_0x239310['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4c4480=_0x27bbc2['plugins']['get']('Users'),_0xd66bf5=_0x27bbc2['plugins']['get']('TrackChangesEditing'),_0x5f291e=_0x27bbc2['plugins']['get']('CommentsRepository');for(const _0x46500a of _0x5f291e['getCommentThreads']())_0x46500a['remove']();for(const _0x5ed4a of _0x672b08)_0x4c4480['getUser'](_0x5ed4a['id'])||_0x4c4480['addUser'](_0x5ed4a);_0x4c4480['me']||_0x4c4480['useAnonymousUser']();for(const _0x18279a of _0x4a8cb4)_0x5f291e['addCommentThread'](_0x18279a);for(const _0x316b3d of _0x2c804a)_0xd66bf5['addSuggestionData'](_0x316b3d);_0x27bbc2['data']['set'](_0x1d64a2);}(_0x45c52f,_0x119b75),_0x119b75['execute'](_0x31126d?'acceptAllSuggestions':'discardAllSuggestions');const _0x43abd9=Fe(_0x119b75)?_0x119b75['getFullData'](_0x552f06):_0x119b75['data']['get'](_0x552f06);return await _0x119b75['destroy'](),_0x43abd9;}class Me extends _0x26f60a{['options'];constructor(_0x387a5d,_0x4936d9){super(_0x387a5d),this['options']=_0x4936d9,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x4c236b,_0x2b05a9){if(!this['element'])return;const _0x5d145b=[];for(const [_0x39592c,_0x49d481]of _0x4c236b){const _0x506147=document['createElement']('div');_0x506147['setAttribute']('data-ck-root-name',_0x39592c),_0x506147['className']=_0x49d481['classes']+'\x20ck-track-changes-preview__root-container',_0x506147['innerHTML']=_0x49d481['content'],_0x5d145b['push'](_0x506147);}_0x2b05a9(this['element'],_0x5d145b),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x144602{constructor(_0x268472){super(_0x268472),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x477b4e=this['editor'],_0x2cae6a=_0x477b4e['locale'],_0x30e1cc=_0x477b4e['plugins']['get']('Dialog');let _0x4d2f62;const _0x1b21cc=function(_0x11d94b){const _0x1f7025={};if('editables'in _0x11d94b['ui']['view']){for(const [_0x26a2c2,_0xcd495f]of Object['entries'](_0x11d94b['ui']['view']['editables']))_0x1f7025[_0x26a2c2]=_0xcd495f['element'];}else _0x1f7025[_0x11d94b['model']['document']['getRootNames']()[0x0]]=_0x11d94b['ui']['view']['editable']['element'];return _0x1f7025;}(_0x477b4e),_0x112144=function(_0x1a73ab){let _0x22830a=0x0;for(const _0x1dbdbd of Object['values'](_0x1a73ab))_0x22830a=Math['max'](_0x22830a,_0x1dbdbd['getBoundingClientRect']()['width']);let _0x57798d=0x0;for(const _0x1ebd4f of Object['values'](_0x1a73ab))_0x57798d+=_0x1ebd4f['getBoundingClientRect']()['height'];const _0x5e7bdd=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0xc13bb7=Math['min'](_0x57798d,_0x5e7bdd);return{'width':_0x22830a,'height':_0xc13bb7};}(_0x1b21cc);_0x30e1cc['show']({'id':'finalContentPreview','title':c(_0x2cae6a,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x2cae6a,{'dialogRects':_0x112144}),'onHide':()=>{_0x4d2f62['detachFromDom']();},'onShow':()=>{_0x477b4e['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x22819b=>{const _0x554354=this['_standarizeRootsData'](_0x22819b,_0x477b4e,_0x1b21cc);_0x30e1cc['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x554354,_0x477b4e['config']['get']('trackChanges.preview.renderFunction'));}),_0x4d2f62=new _0x326a91(_0x2cae6a,[_0x30e1cc['view']]),_0x4d2f62['attachToDom'](),_0x4d2f62['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x477b4e['once']('destroy',()=>{_0x4d2f62['detachFromDom']();});const _0x2b4e1a=_0x30e1cc['view']['headerView']['class'];_0x30e1cc['view']['headerView']['class']=_0x2b4e1a?_0x2b4e1a+'\x20ck-reset_all':'ck-reset_all',_0x30e1cc['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x30e1cc['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x24d4e8=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2d0bd9=_0x24d4e8['previewMode'],_0x192cfc={};if('$labels'===_0x2d0bd9){for(const _0x44d32d of _0x24d4e8['getMergeFieldsIds']())_0x192cfc[_0x44d32d]=_0x24d4e8['getLabel'](_0x44d32d)||_0x44d32d;}else{const _0x4d4a4c='$defaultValues'===_0x2d0bd9?_0x24d4e8['getDefaultValues']():_0x24d4e8['getDataSetValues'](_0x2d0bd9,!0x0);for(const _0x1468b0 of Object['entries'](_0x4d4a4c)){const [_0x123298,_0x4c2385]=_0x1468b0;_0x192cfc[_0x123298]=null!==_0x4c2385?_0x4c2385:_0x24d4e8['getLabel'](_0x123298)||_0x123298;}}return{'mergeFieldsData':_0x192cfc};}['_standarizeRootsData'](_0x4c4748,_0x7cb34e,_0x4e1356){let _0x3367d7;if('string'==typeof _0x4c4748){const _0x5c25d7=_0x7cb34e['model']['document']['getRootNames']()[0x0];_0x3367d7={[_0x5c25d7]:_0x4c4748};}else _0x3367d7=_0x4c4748;const _0x32aee5=this['_fixMediaEmbeds'](_0x3367d7,_0x7cb34e),_0x2621bc=function(_0xcce5ab,_0x40f981){for(const [_0x1e7231,_0x4c00c8]of _0xcce5ab)_0x4c00c8['classes']=_0x40f981[_0x1e7231]['classList']['value']['replace']('ck-focused','');return _0xcce5ab;}(this['_sortRoots'](_0x7cb34e)['reduce']((_0x28bf08,_0x1cd72c)=>(_0x28bf08['push']([_0x1cd72c,{'content':_0x32aee5[_0x1cd72c],'classes':''}]),_0x28bf08),[]),_0x4e1356);return _0x2621bc;}['_fixMediaEmbeds'](_0x443da7,_0x4c6e31){if(!_0x4c6e31['plugins']['has']('MediaEmbedEditing'))return _0x443da7;const _0x2c79d3=_0x4c6e31['plugins']['get']('MediaEmbedEditing');for(const [_0x5f08c2,_0x3600d9]of Object['entries'](_0x443da7)){const _0x158ca2=document['createElement']('div');_0x158ca2['innerHTML']=_0x3600d9,(_0x158ca2['querySelectorAll']('figure.media')['forEach'](_0x1be3b9=>{const _0x3ac234=_0x1be3b9['querySelector']('oembed');if(_0x3ac234){const _0x2a06d3=_0x3ac234['getAttribute']('url');if(_0x2a06d3){const _0x525ca6=_0x2c79d3['registry']['getMediaViewElement'](new _0x87f864(_0x4c6e31['editing']['view']['document']),_0x2a06d3,{'elementName':'','renderForEditingView':!0x0}),_0x4fd8cb=document['createElement']('div');_0x4fd8cb['classList']['add']('ck-media__wrapper'),_0x525ca6['render'](_0x4fd8cb,_0x4c6e31['editing']['view']['domConverter']),_0x3ac234['replaceWith'](_0x4fd8cb);}}}),_0x443da7[_0x5f08c2]=_0x158ca2['innerHTML']);}return _0x443da7;}['_sortRoots'](_0x181ddd){if(!function(_0x5a4d17){return void 0x0!==_0x5a4d17['getRootsAttributes'];}(_0x181ddd))return _0x181ddd['model']['document']['getRootNames']();const _0x25f9c4=[],_0x66c19a=new Map();for(const _0x2b7052 of _0x181ddd['model']['document']['getRootNames']()){const _0x304f4e=_0x181ddd['editing']['view']['getDomRoot'](_0x2b7052)['getClientRects']()['item'](0x0);_0x25f9c4['push'](_0x2b7052),_0x66c19a['set'](_0x2b7052,_0x304f4e);}return _0x25f9c4['sort']((_0x34837e,_0x4a7add)=>{const _0x1cabeb=_0x66c19a['get'](_0x34837e),_0x3e283c=_0x66c19a['get'](_0x4a7add);return _0x1cabeb['y']-_0x3e283c['y']||_0x1cabeb['x']-_0x3e283c['x'];}),_0x25f9c4;}}class te extends _0x44ea50{static get['requires'](){return[T,_0x42ea33];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c0762){super(_0x5c0762),_0x5c0762['commands']['add']('previewFinalContent',new re(this['editor'])),_0x5c0762['config']['define']('trackChanges.preview.renderFunction',(_0x3979a1,_0xca321a)=>{for(const _0x1e153f of _0xca321a)_0x3979a1['appendChild'](_0x1e153f);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};