@ckeditor/ckeditor5-track-changes 47.2.0-alpha.3 → 47.2.0-alpha.5

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,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x36cb6b,Plugin as _0x147a49,PendingActions as _0x537b05}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x42e154,ObservableMixin as _0x5b7c3b,uid as _0x2844ab,priorities as _0x5b2bcf,insertToPriorityArray as _0x21ebcb,logWarning as _0x2ee89f,getEnvKeystrokeText as _0x4d50d7,FocusTracker as _0x24067a,KeystrokeHandler as _0x30fe5a,Collection as _0x291895}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x93aebd,IconCancel as _0x128635,IconTrackChanges as _0x3c57fa}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x1d782c,View as _0x18358c,ViewCollection as _0xb3ad92,FocusCycler as _0x5cd336,UIModel as _0xbb7344,createDropdown as _0x6a5f9e,SplitButtonView as _0x50ba97,addListToDropdown as _0x73ef36,MenuBarMenuView as _0xdf8ce5,MenuBarMenuListView as _0x4da092,ListSeparatorView as _0x186f66,MenuBarMenuListItemView as _0x2836cd,MenuBarMenuListItemButtonView as _0x499f4d,BodyCollection as _0x6095a8,Dialog as _0x453e65}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x3370ef,DocumentCompare as _0xb40c62,hashObject as _0x1c5c8a,surroundingMarkersDetector as _0x6f073a,FOCUS_ANNOTATION_KEYSTROKE as _0x2146b9,AriaDescriptionView as _0x1b65a6,setupThreadKeyboardNavigation as _0x209082,trimHtml as _0x308ad3,UserView as _0x4b908f,LateFocusButtonView as _0x5516a9,getDateTimeFormatter as _0x39bb71,getAllMarkersDomElementsSorted as _0x171825,sanitizeEditorConfig as _0x3f4499}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x3aecfb,ModelLiveRange as _0x468db3,ModelLivePosition as _0x3a67eb,ViewDowncastWriter as _0x3b300a}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x52e560,set as _0x52ae7e,isEqual as _0x30af54,unset as _0x302388,omit as Pt}from'es-toolkit/compat';import{Delete as _0x28754f,Input as _0x33fae4}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x38b7b4}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x484d22}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{SuggestionsConversion as Jt,fixElementSuggestionRange as Lt,splitSuggestionMarkerName as Gt}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class $ extends _0x36cb6b{['_enabledCommands'];constructor(_0x35afad,_0x294e0e){super(_0x35afad),this['_enabledCommands']=_0x294e0e,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 _0x379be5 of this['editor']['commands']['commands']())_0x379be5['affectsData']&&!this['_enabledCommands']['has'](_0x379be5)&&_0x379be5['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x54a73e of this['editor']['commands']['commands']())_0x54a73e['affectsData']&&!this['_enabledCommands']['has'](_0x54a73e)&&_0x54a73e['clearForceDisabled']('TrackChangesCommand');}}class v extends _0x36cb6b{['_suggestions'];constructor(_0x5629ba,_0x233942){super(_0x5629ba),this['_suggestions']=_0x233942,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4d9832){const _0x4adc2c=this['_suggestions']['get'](_0x4d9832);if(!_0x4adc2c)throw new _0x42e154('track-changes-accept-suggestion-not-found',this);const _0x1615de=_0x4adc2c['getRanges']();this['editor']['model']['canEditAt'](_0x1615de)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4adc2c);}}class D extends _0x36cb6b{['_suggestions'];constructor(_0x5b95da,_0x3d3140){super(_0x5b95da),this['_suggestions']=_0x3d3140,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5eeca0){const _0x434d5a=this['_suggestions']['get'](_0x5eeca0);if(!_0x434d5a)throw new _0x42e154('track-changes-discard-suggestion-not-found',this);const _0x32ba2a=_0x434d5a['getRanges']();this['editor']['model']['canEditAt'](_0x32ba2a)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x434d5a);}}function ls(_0x4a22a0,_0x29df21){let _0x162ac8='';return _0x162ac8+=_0x4a22a0['split']('*')['map']((_0x4f5cae,_0x456795)=>_0x456795%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0x4f5cae)+'</span>':rn(_0x4f5cae))['join'](''),_0x29df21&&(_0x162ac8+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x29df21['value']+'\x22\x20title=\x22'+_0x29df21['title']+'\x22></span>'),_0x162ac8;}function rn(_0x2e48c7){const _0x471ad6=document['createElement']('span');return _0x471ad6['innerText']=_0x2e48c7,_0x471ad6['innerHTML'];}function ts(_0x593f39){return _0x593f39['sort']((_0x59da58,_0xd294dd)=>'attribute'===_0x59da58['type']&&'attribute'!==_0xd294dd['type']?-0x1:'attribute'!==_0x59da58['type']&&'attribute'===_0xd294dd['type']?0x1:'deletion'==_0x59da58['type']&&'deletion'!=_0xd294dd['type']?-0x1:'deletion'!=_0x59da58['type']&&'deletion'==_0xd294dd['type']?0x1:0x0);}function to(_0x3813be,_0x450dfa){let _0x51833b,_0x1b42a9=0x0;const _0x107c01=[],_0x174e9c=_0x450dfa['schema'];for(;_0x1b42a9<_0x3813be['length'];){const _0x342007=_0x3813be[_0x1b42a9],_0x20a4cc=_0x3813be[_0x1b42a9+0x1];_0x51833b||(_0x51833b=_0x450dfa['createPositionBefore'](_0x342007)),cn(_0x450dfa,_0x342007,_0x20a4cc)||(_0x107c01['push'](_0x450dfa['createRange'](_0x51833b,_0x174e9c['isObject'](_0x342007)?_0x450dfa['createPositionAfter'](_0x342007):_0x450dfa['createPositionAt'](_0x342007,'end'))),_0x51833b=null),_0x1b42a9++;}return _0x107c01;}function cn(_0x15ee5e,_0x394b46,_0x36b098){if(!_0x36b098)return!0x1;const _0x4bec78=_0x15ee5e['createPositionAfter'](_0x394b46),_0x183501=_0x15ee5e['createPositionBefore'](_0x36b098);return _0x4bec78['isTouching'](_0x183501);}function rs(_0x219d8a,_0x5cca68,_0x4ab4b4){for(;_0x4ab4b4['length'];){const _0x3c5a4a=_0x4ab4b4['splice'](0x0,0x64);_0x219d8a['change'](()=>{for(const _0x5f00ba of _0x3c5a4a)_0x5f00ba['isInContent']&&_0x5cca68['execute'](_0x5f00ba['id']);});}}class B extends _0x36cb6b{['_command'];['_suggestions'];constructor(_0x390ca4,_0x282dde,_0x4e1ce3){super(_0x390ca4),this['_command']=_0x282dde,this['_suggestions']=_0x4e1ce3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x33dbea=Array['from'](this['_suggestions']['values']())['some'](_0x51d731=>_0x51d731['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x33dbea;}['execute'](){const _0x25e250=ts(Array['from'](this['_suggestions']['values']()));for(const _0x2ea065 of _0x25e250){const _0x286145=_0x2ea065['getRanges']();if(!this['editor']['model']['canEditAt'](_0x286145))return;}rs(this['editor']['model'],this['_command'],_0x25e250);}}class O extends _0x36cb6b{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x2af97f,_0x19811a,_0x36d4a5){super(_0x2af97f),this['_command']=_0x19811a,this['_suggestions']=_0x36d4a5,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5d1cef=this['editor']['model']['document']['selection'],_0x52ab1d=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x582982,_0x18b82d){const _0x5bc94f=Array['from'](_0x582982['getRanges']()),_0x4e4489=new Set();for(const _0x16592a of _0x18b82d)if(_0x16592a['isInContent']){for(const _0xade508 of _0x5bc94f)for(const _0x3a90e0 of _0x16592a['getRanges']())(_0xade508['isIntersecting'](_0x3a90e0)||_0x582982['isCollapsed']&&!_0x16592a['isMultiRange']&&_0x16592a['next']&&_0x3a90e0['end']['isTouching'](_0xade508['start']))&&_0x4e4489['add'](_0x16592a);}return _0x4e4489;}(_0x5d1cef,_0x52ab1d),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x18d633=ts(Array['from'](this['_selectedSuggestions']));for(const _0x1cb6f6 of _0x18d633){const _0x4fdc4e=_0x1cb6f6['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4fdc4e))return;}rs(this['editor']['model'],this['_command'],_0x18d633);}}class x extends/* #__PURE__ -- @preserve */
24
- _0x5b7c3b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x151a85,_0xa7a720){super(),this['id']=_0xa7a720['id'],this['type']=_0xa7a720['type'],this['subType']=_0xa7a720['subType']||null,this['author']=_0xa7a720['author'],this['creator']=_0xa7a720['creator']||_0xa7a720['author'],this['isExternal']=Boolean(_0xa7a720['attributes']&&_0xa7a720['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0xa7a720['originalSuggestionId']||null,this['_model']=_0x151a85,this['_onAccept']=_0xa7a720['onAccept'],this['_onDiscard']=_0xa7a720['onDiscard'],this['_onAttributesChange']=_0xa7a720['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xa7a720['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 _0x555791=this;for(;_0x555791['previous'];)_0x555791=_0x555791['previous'];return _0x555791;}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'](_0x4cd383){this['_markerNames']['add'](_0x4cd383);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x16f154=>this['_model']['markers']['get'](_0x16f154))['filter'](_0x4d82c9=>_0x4d82c9);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1a0438=>{for(const _0x5040fd of this['getMarkers']())_0x1a0438['removeMarker'](_0x5040fd);}),this['_markerNames']['clear']();}['removeMarker'](_0x1b1f6a){this['_model']['change'](_0x2e2e91=>{_0x2e2e91['removeMarker'](_0x1b1f6a);}),this['_markerNames']['delete'](_0x1b1f6a);}['addRange'](_0x4e417f){const _0x2a5a5c='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x2a5a5c),this['_model']['change'](_0x4615da=>{_0x4615da['addMarker'](_0x2a5a5c,{'range':_0x4e417f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x9f03ee){for(const _0x26e8d5 of this['getRanges']())if(_0x26e8d5['isIntersecting'](_0x9f03ee))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x558fff=>_0x558fff['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xb3aea,_0x249900)=>[..._0xb3aea,..._0x249900['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x977da9=this['getRanges']();if(0x1!=_0x977da9['length'])return null;const _0x4058be=_0x977da9[0x0],_0x5acf15=_0x4058be['start']['nodeAfter'],_0xab9d40=_0x4058be['end']['nodeBefore'];return _0x5acf15 instanceof _0x3aecfb?_0x5acf15!=_0xab9d40?null:_0x5acf15: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 _0x3dc86f=[];let _0x1c46f8=this['head'];for(;_0x1c46f8;)_0x3dc86f['push'](_0x1c46f8),_0x1c46f8=_0x1c46f8['next'];return _0x3dc86f;}['setAttribute'](_0x41d15e,_0x20101c){const _0x479130=_0x52e560(this['attributes']);_0x52ae7e(_0x479130,_0x41d15e,_0x20101c),_0x30af54(_0x479130,this['attributes'])||(this['attributes']=_0x479130,this['_onAttributesChange'](_0x479130));}['removeAttribute'](_0x159f33){const _0x7a7f9a=_0x52e560(this['attributes']);_0x302388(_0x7a7f9a,_0x159f33),_0x30af54(_0x7a7f9a,this['attributes'])||(this['attributes']=_0x7a7f9a,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 _0x2844ab()['substr'](0x1,0x5);}}function o(_0x591f1f,_0x222a85,_0x3cfab1){const _0x23018f=_0x591f1f['t'],t=_0x591f1f['t'];switch(_0x222a85){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',_0x3cfab1);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3cfab1);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3cfab1);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3cfab1);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3cfab1);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',_0x3cfab1);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3cfab1);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',_0x3cfab1);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3cfab1);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3cfab1);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3cfab1);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3cfab1);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3cfab1);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3cfab1);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3cfab1);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3cfab1);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3cfab1);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3cfab1);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3cfab1);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3cfab1);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3cfab1);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3cfab1);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3cfab1);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3cfab1);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x3cfab1);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'},_0x3cfab1);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x3cfab1);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x3cfab1);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3cfab1);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3cfab1);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3cfab1);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3cfab1);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3cfab1);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'},_0x3cfab1);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3cfab1);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3cfab1);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3cfab1);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3cfab1);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'},_0x3cfab1);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3cfab1);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'},_0x3cfab1);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x3cfab1);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3cfab1);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'},_0x3cfab1);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3cfab1);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'},_0x3cfab1);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3cfab1);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x3cfab1);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x3cfab1);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x3cfab1);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3cfab1);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'},_0x3cfab1);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3cfab1);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 _0x23018f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3cfab1);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x23018f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3cfab1);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3cfab1);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'},_0x3cfab1);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'},_0x3cfab1);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'},_0x3cfab1);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x222a85;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x210df9,_0x27873a){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x210df9,this['_locale']=_0x27873a;}['getDescriptions'](_0x4b51b7){const _0x1126f9=[],_0x5d38d8=new Set(),_0x1b6cc8=new Set();for(let _0x1a0bb1=0x0;_0x1a0bb1<_0x4b51b7['length'];_0x1a0bb1++){const _0x1d2db1=_0x4b51b7[_0x1a0bb1];if(!_0x1d2db1['isInContent'])continue;const _0x59a4ce=this['_handleCustomCallbackDescription'](_0x1d2db1);if(_0x59a4ce){if(null!=_0x1d2db1['subType']){if(_0x5d38d8['has'](_0x1d2db1['subType']))continue;_0x5d38d8['add'](_0x1d2db1['subType']);}_0x1126f9['push'](_0x59a4ce);}else{if('attribute'==_0x1d2db1['type']){const _0xdf2053=_0x1d2db1['data']['key'];if(_0x1b6cc8['has'](_0xdf2053))continue;_0x1b6cc8['add'](_0x1d2db1['data']['key']),_0xdf2053==m?this['_handleRenameSuggestionDescription'](_0x1126f9,_0x1d2db1):this['_handleAttributeSuggestionDescription'](_0x1126f9,_0x1d2db1);continue;}'insertion'!=_0x1d2db1['type']&&'deletion'!=_0x1d2db1['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1126f9,_0x1d2db1,_0x4b51b7[_0x1a0bb1+0x1]);}}return this['_resolveDescriptionItems'](_0x1126f9);}['registerDescriptionCallback'](_0x281a91){this['_customCallbacks']['push'](_0x281a91);}['registerElementLabel'](_0x18e440,_0x267540,_0x18f217=_0x5b2bcf['normal']){'function'==typeof _0x18e440?_0x21ebcb(this['_itemLabelsCallbacks'],{'matchingCallback':_0x18e440,'label':_0x267540,'priority':_0x18f217}):this['_itemLabels']['set'](_0x18e440,_0x267540);}['registerAttributeLabel'](_0x3b97e9,_0x5c0e04){this['_attributeLabels']['set'](_0x3b97e9,_0x5c0e04);}['getItemLabel'](_0xd2f87d,_0x3f0cec=0x1){let _0x339e21;for(const _0x34b17e of this['_itemLabelsCallbacks'])if(_0x34b17e['matchingCallback'](_0xd2f87d)){_0x339e21=_0x34b17e['label'];break;}return _0x339e21||(_0x339e21=this['_itemLabels']['get'](_0xd2f87d['name'])),_0x339e21?_0x339e21(_0x3f0cec):0x1!==_0x3f0cec?_0x3f0cec+'\x20'+_0xd2f87d['name']+'s':''+_0xd2f87d['name'];}['_addDescriptionItems'](_0x127c0e,_0x7ef21e){const _0x4ca9f6=_0x7ef21e['getFirstRange']()['getWalker'](),_0x33c837='insertion'==_0x7ef21e['type']?'add':'remove';for(const _0x56d7b5 of _0x4ca9f6){const _0xfcd978=_0x56d7b5['item'],_0x303270=_0x127c0e[_0x127c0e['length']-0x1];if(_0xfcd978['is']('$textProxy'))_0x303270&&_0x303270['type']['indexOf']('Container')>-0x1&&_0x127c0e['pop'](),_0x303270&&'text'==_0x303270['type']?_0x303270[_0x33c837]+=_0xfcd978['data']:_0x127c0e['push']({'type':'text','add':'add'==_0x33c837?_0xfcd978['data']:'','remove':'remove'==_0x33c837?_0xfcd978['data']:''});else{if(this['_schema']['isObject'](_0xfcd978)){const _0x404546=_0xfcd978;if(_0x303270&&_0x303270['type']['indexOf']('Container')>-0x1&&_0x127c0e['pop'](),'elementEnd'==_0x56d7b5['type'])continue;_0x303270&&_0x303270['type']==_0x33c837+'Object'&&_0x303270['element']['name']==_0x404546['name']?_0x303270['quantity']++:_0x127c0e['push']({'type':_0x33c837+'Object','element':_0x404546,'quantity':0x1}),_0x4ca9f6['skip'](_0x7ce87=>!('elementEnd'==_0x7ce87['type']&&_0x7ce87['item']==_0xfcd978));}else{if(this['_schema']['checkChild'](_0xfcd978,'$text')||_0xfcd978['is']('element','softBreak')){const _0x1c42fa=_0xfcd978;if('add'==_0x33c837&&'elementStart'==_0x56d7b5['type']||'remove'==_0x33c837&&'elementEnd'==_0x56d7b5['type'])continue;if(_0x303270&&-0x1==_0x303270['type']['indexOf']('Container')){'text'==_0x303270['type']&&(_0x303270[_0x33c837]+='\x0a');continue;}let _0x4c3b24;if(_0x4c3b24='add'==_0x33c837?_0x1c42fa['nextSibling']&&!this['_schema']['isObject'](_0x1c42fa['nextSibling'])?_0x1c42fa['nextSibling']:null:_0x1c42fa['previousSibling']&&!this['_schema']['isObject'](_0x1c42fa['previousSibling'])?_0x1c42fa['previousSibling']:null,_0x1c42fa['isEmpty']||_0x4c3b24&&_0x4c3b24['isEmpty']){const _0x43c653=_0x4c3b24&&_0x4c3b24['isEmpty']?_0x4c3b24:_0x1c42fa;_0x303270&&_0x303270['type']==_0x33c837+'EmptyContainer'&&_0x303270['element']['name']==_0x43c653['name']?_0x303270['quantity']++:_0x127c0e['push']({'type':_0x33c837+'EmptyContainer','element':_0x43c653,'quantity':0x1});}else _0x127c0e['push']({'type':_0x33c837+'Container','element':_0x1c42fa});}}}}}['_resolveDescriptionItems'](_0x41a742){const _0x32e5c9=this['_locale'],_0x320af5=[],_0x11f290=[],_0x4b604d=[];for(const _0x3b2cdb of _0x41a742)switch(_0x3b2cdb['type']){case'text':if(_0x3b2cdb['add']=_0x3b2cdb['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3b2cdb['remove']=_0x3b2cdb['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3b2cdb['add']&&''!=_0x3b2cdb['remove']){_0x320af5['push']({'type':'replace','content':o(_0x32e5c9,'REPLACE_TEXT',['\x22'+_0x3b2cdb['remove']+'\x22','\x22'+_0x3b2cdb['add']+'\x22'])});continue;}if(null!=_0x3b2cdb['add']['match'](/^ +$/)){_0x320af5['push']({'type':'insertion','content':o(_0x32e5c9,'*Insert:*\x20%0',o(_0x32e5c9,'ELEMENT_SPACE',_0x3b2cdb['add']['length']))});continue;}if(null!=_0x3b2cdb['remove']['match'](/^ +$/)){_0x320af5['push']({'type':'deletion','content':o(_0x32e5c9,'*Remove:*\x20%0',o(_0x32e5c9,'ELEMENT_SPACE',_0x3b2cdb['remove']['length']))});continue;}if(''!=_0x3b2cdb['add']){_0x320af5['push']({'type':'insertion','content':o(_0x32e5c9,'*Insert:*\x20%0','\x22'+_0x3b2cdb['add']+'\x22')});continue;}_0x320af5['push']({'type':'deletion','content':o(_0x32e5c9,'*Remove:*\x20%0','\x22'+_0x3b2cdb['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x320af5['push']({'type':'insertion','content':o(_0x32e5c9,'*Insert:*\x20%0',this['getItemLabel'](_0x3b2cdb['element'],_0x3b2cdb['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x320af5['push']({'type':'deletion','content':o(_0x32e5c9,'*Remove:*\x20%0',this['getItemLabel'](_0x3b2cdb['element'],_0x3b2cdb['quantity']))});continue;case'addContainer':_0x320af5['push']({'type':'insertion','content':o(_0x32e5c9,'*Split:*\x20%0',this['getItemLabel'](_0x3b2cdb['element'],_0x3b2cdb['quantity']))});continue;case'removeContainer':_0x320af5['push']({'type':'deletion','content':o(_0x32e5c9,'*Merge:*\x20%0',this['getItemLabel'](_0x3b2cdb['element'],_0x3b2cdb['quantity']))});continue;case'addFormat':_0x11f290['push'](_0x3b2cdb['key']);continue;case'removeFormat':_0x4b604d['push'](_0x3b2cdb['key']);continue;default:_0x320af5['push'](_0x3b2cdb);}if(_0x11f290['length']){const _0x1bf798=_0x11f290['map'](_0x214974=>this['_attributeLabels']['has'](_0x214974)?this['_attributeLabels']['get'](_0x214974):_0x214974)['join'](',\x20');_0x320af5['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1bf798)});}if(_0x4b604d['length']){const _0xa59a12=_0x4b604d['map'](_0x313b0f=>this['_attributeLabels']['has'](_0x313b0f)?this['_attributeLabels']['get'](_0x313b0f):_0x313b0f)['join'](',\x20');_0x320af5['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xa59a12)});}return _0x320af5;}['_handleCustomCallbackDescription'](_0x365c7f){for(const _0x529c07 of this['_customCallbacks']){const _0x3fd4c9=_0x529c07(_0x365c7f);if(_0x3fd4c9&&'type'in _0x3fd4c9)return _0x3fd4c9;}}['_handleAttributeSuggestionDescription'](_0x304157,_0x422b3c){const _0x2bfac7=_0x422b3c['data'],_0x50a174=void 0x0===_0x2bfac7['newValue']?'removeFormat':'addFormat';_0x304157['push']({'type':_0x50a174,'key':_0x2bfac7['key']});}['_handleRenameSuggestionDescription'](_0x34221f,_0x495c13){_0x34221f['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x495c13['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3bff73,_0x56f6ee,_0x40a838){if(this['_addDescriptionItems'](_0x3bff73,_0x56f6ee),_0x40a838&&_0x40a838['getFirstRange']()&&!_0x56f6ee['getFirstRange']()['end']['isEqual'](_0x40a838['getFirstRange']()['start'])){const _0x4f122b=_0x3bff73[_0x3bff73['length']-0x1],_0x2cb323='insertion'==_0x56f6ee['type']?'add':'remove';_0x4f122b&&'text'==_0x4f122b['type']&&(_0x4f122b[_0x2cb323]+='\x0a');}}}class R extends _0x147a49{['afterInit'](){const _0x1e83c7=this['editor'],_0x14dd0c=_0x1e83c7['plugins']['get']('TrackChangesEditing');_0x1e83c7['commands']['get']('showAIAssistant')&&_0x14dd0c['enableCommand']('showAIAssistant');}}class T extends _0x147a49{['afterInit'](){const _0x4de6ac=this['editor'],_0x7441bf=_0x4de6ac['plugins']['get']('TrackChangesEditing');_0x4de6ac['commands']['get']('toggleAi')&&_0x7441bf['enableCommand']('toggleAi');}}class E extends _0x147a49{['afterInit'](){const _0x1bb7b1=this['editor'],_0x44d094=_0x1bb7b1['plugins']['get']('TrackChangesEditing');_0x1bb7b1['commands']['get']('aiQuickAction')&&_0x44d094['enableCommand']('aiQuickAction');}}class U extends _0x147a49{['afterInit'](){const _0x45b88a=this['editor'],_0x1c6005=_0x45b88a['locale'];if(!_0x45b88a['plugins']['has']('AlignmentEditing'))return;const _0x1ff411=_0x45b88a['plugins']['get']('TrackChangesEditing');_0x1ff411['enableDefaultAttributesIntegration']('alignment'),_0x1ff411['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1c6005,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56cf26=this['editor'],_0x120833=_0x56cf26['locale'];_0x56cf26['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x381ee0=>{if('formatBlock'!=_0x381ee0['type'])return;const {data:_0x235277}=_0x381ee0;if(_0x235277&&'alignment'==_0x235277['commandName']){const _0x27d4be=_0x235277['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x120833,'*Format:*\x20%0',function(_0x5313b8){switch(_0x5313b8){case'left':return o(_0x120833,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x120833,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x120833,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x120833,'FORMAT_JUSTIFY_TEXT');}}(_0x27d4be))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x147a49{['afterInit'](){const _0x3a1c62=this['editor'],_0x47458c=_0x3a1c62['plugins']['get']('TrackChangesEditing'),_0x44eebd=_0x3a1c62['locale'];for(const _0xcc0bb8 of ti){if(!_0x3a1c62['plugins']['has'](_0xcc0bb8))continue;const _0x80e71=_0xcc0bb8['slice'](0x0,-0x7)['toLowerCase'](),_0x5d5714='FORMAT_'+_0x80e71['toUpperCase']();_0x47458c['enableDefaultAttributesIntegration'](_0x80e71),_0x47458c['descriptionFactory']['registerAttributeLabel'](_0x80e71,o(_0x44eebd,_0x5d5714));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x440e1c=this['editor'],_0x5c474c=_0x440e1c['locale'],_0x3f84a2=_0x440e1c['plugins']['get']('TrackChangesEditing');function _0x3b5001(_0x2c24df,_0x50ba77){_0x3f84a2['descriptionFactory']['registerDescriptionCallback'](_0x4da749=>{if('formatInline'!=_0x4da749['type'])return;const {data:_0x1146d7}=_0x4da749;return _0x1146d7&&_0x1146d7['commandName']===_0x2c24df?_0x1146d7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5c474c,'*Format:*\x20%0',_0x50ba77)}:{'type':'format','content':o(_0x5c474c,'*Remove\x20format:*\x20%0',_0x50ba77)}:void 0x0;});}_0x3b5001('bold',o(_0x5c474c,'FORMAT_BOLD')),_0x3b5001('italic',o(_0x5c474c,'FORMAT_ITALIC')),_0x3b5001('underline',o(_0x5c474c,'FORMAT_UNDERLINE')),_0x3b5001('code',o(_0x5c474c,'FORMAT_CODE')),_0x3b5001('strikethrough',o(_0x5c474c,'FORMAT_STRIKETHROUGH')),_0x3b5001('subscript',o(_0x5c474c,'FORMAT_SUBSCRIPT')),_0x3b5001('superscript',o(_0x5c474c,'FORMAT_SUPERSCRIPT'));}}class F extends _0x147a49{['afterInit'](){const _0x104ec7=this['editor'],_0x1aabd1=_0x104ec7['locale'];if(!_0x104ec7['plugins']['has']('BlockQuoteEditing'))return;const _0x63f4e4=_0x104ec7['plugins']['get']('TrackChangesEditing'),_0x3fe708=this['editor']['commands']['get']('blockQuote');_0x63f4e4['enableCommand']('blockQuote',(_0x4dc918,_0x177948={})=>{const _0x49eda4=this['editor']['model']['document']['selection'],_0x5cf9b3=_0x177948&&void 0x0!==_0x177948['forceValue']?_0x177948['forceValue']:!_0x3fe708['value'];let _0xb1039=[];if(_0x5cf9b3){const _0x22db1b=Array['from'](_0x49eda4['getSelectedBlocks']())['filter'](_0x39842c=>oo(_0x39842c)||function(_0x53cd6b,_0x4eff08){const _0xf3bb24=_0x4eff08['checkChild'](_0x53cd6b['parent'],'blockQuote'),_0x1f6fbf=_0x4eff08['checkChild'](['$root','blockQuote'],_0x53cd6b);return _0xf3bb24&&_0x1f6fbf;}(_0x39842c,this['editor']['model']['schema']));_0xb1039=to(_0x22db1b,_0x104ec7['model']);}else{const _0x46d77a=Array['from'](_0x49eda4['getSelectedBlocks']())['filter'](_0x1586c8=>oo(_0x1586c8));_0xb1039=to(_0x46d77a,_0x104ec7['model']);}_0x104ec7['model']['change'](()=>{for(const _0x291845 of _0xb1039)_0x63f4e4['markBlockFormat'](_0x291845,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5cf9b3}]});});}),_0x63f4e4['descriptionFactory']['registerDescriptionCallback'](_0x1c5eef=>{const {data:_0x1736a1}=_0x1c5eef;if(_0x1736a1&&'blockQuote'==_0x1736a1['commandName']){const _0x5518b0=o(_0x1aabd1,'ELEMENT_BLOCK_QUOTE');return _0x1736a1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1aabd1,'*Set\x20format:*\x20%0',_0x5518b0)}:{'type':'format','content':o(_0x1aabd1,'*Remove\x20format:*\x20%0',_0x5518b0)};}});}}function oo(_0x205641){return'blockQuote'==_0x205641['parent']['name'];}class G extends _0x147a49{['afterInit'](){const _0x47d972=this['editor'],_0x232735=_0x47d972['locale'],_0x49ab11=_0x47d972['plugins']['get']('TrackChangesEditing');_0x47d972['plugins']['has']('BookmarkEditing')&&(_0x49ab11['enableCommand']('insertBookmark'),_0x49ab11['enableDefaultAttributesIntegration']('updateBookmark'),_0x49ab11['descriptionFactory']['registerDescriptionCallback'](_0x1c98d1=>{if('insertion'!=_0x1c98d1['type']&&'deletion'!=_0x1c98d1['type']&&'attribute'!=_0x1c98d1['type'])return;const _0x4140cb=_0x1c98d1['getContainedElement']();if(null==_0x4140cb)return;if(!_0x4140cb['is']('element','bookmark'))return;const _0x3b053e=_0x4140cb['getAttribute']('bookmarkId');if('insertion'==_0x1c98d1['type'])return{'type':'insertion','content':o(_0x232735,'*Insert:*\x20%0','\x22'+_0x3b053e+'\x22\x20'+o(_0x232735,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1c98d1['type'])return{'type':'deletion','content':o(_0x232735,'*Remove:*\x20%0','\x22'+_0x3b053e+'\x22\x20'+o(_0x232735,'ELEMENT_BOOKMARK'))};const {data:_0x3039ab}=_0x1c98d1;if(!_0x3039ab||'bookmarkId'!=_0x3039ab['key'])return;return{'type':'format','content':o(_0x232735,'*Set\x20bookmark:*\x20%0','\x22'+_0x3039ab['newValue']+'\x22')};}));}}class L extends _0x147a49{['afterInit'](){const _0x558e17=this['editor'];_0x558e17['plugins']['has']('CaseChange')&&(_0x558e17['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x558e17['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x558e17['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x147a49{['afterInit'](){const _0x60487d=this['editor'];_0x60487d['commands']['get']('ckbox')&&_0x60487d['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x147a49{['afterInit'](){const _0xd3f74d=this['editor'];if(!_0xd3f74d['plugins']['has']('CodeBlock'))return;const _0x240c6a=_0xd3f74d['plugins']['get']('TrackChangesEditing'),_0x59c105=_0xd3f74d['locale'],_0x3e069a=_0xd3f74d['config']['get']('codeBlock')['languages'],_0x500f30=_0xd3f74d['commands']['get']('codeBlock');_0x240c6a['enableCommand']('indentCodeBlock'),_0x240c6a['enableCommand']('outdentCodeBlock'),_0x240c6a['enableCommand']('codeBlock',(_0x277516,_0x1660f2={})=>{const _0x46bbdd=_0xd3f74d['model'],_0x3d4ecf=_0xd3f74d['model']['document']['selection'],_0x4651f3=_0x1660f2&&void 0x0!==_0x1660f2['forceValue']?_0x1660f2['forceValue']:!_0x500f30['value'];let _0x5e195d;_0x1660f2['language']||(_0x1660f2['language']=_0x3e069a[0x0]['language']),_0x5e195d=_0x4651f3?Array['from'](_0x3d4ecf['getSelectedBlocks']())['filter'](_0x528419=>co(_0x528419)||function(_0x1af393,_0x3434b0){if(_0x1af393['is']('rootElement')||_0x3434b0['isLimit'](_0x1af393))return!0x1;return _0x3434b0['checkChild'](_0x1af393['parent'],'codeBlock');}(_0x528419,_0x46bbdd['schema'])):Array['from'](_0x3d4ecf['getSelectedBlocks']())['filter'](_0x45d3d0=>co(_0x45d3d0));const _0x26df76=to(_0x5e195d,_0x46bbdd);_0x46bbdd['change'](()=>{for(const _0x77cb14 of _0x26df76)_0x240c6a['markBlockFormat'](_0x77cb14,{'commandName':'codeBlock','commandParams':[{..._0x1660f2,'forceValue':_0x4651f3}],'formatGroupId':'blockName'});});}),(_0x240c6a['descriptionFactory']['registerElementLabel']('codeBlock',_0x3e6596=>o(_0x59c105,'ELEMENT_CODE_BLOCK',_0x3e6596)),_0x240c6a['descriptionFactory']['registerDescriptionCallback'](_0xf0066e=>{if('formatBlock'!=_0xf0066e['type'])return;const _0x24947d=_0x59c105['t'],{data:_0x2569b2}=_0xf0066e;if(!_0x2569b2||'codeBlock'!=_0x2569b2['commandName'])return;const _0x3176e6=_0x2569b2['commandParams'][0x0]['language'],_0xb30dd2=_0x24947d(_0x3e069a['find'](_0x1d0a98=>_0x1d0a98['language']===_0x3176e6)['label'])['toLowerCase']();return _0x2569b2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x59c105,'*Set\x20format:*\x20%0',o(_0x59c105,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xb30dd2+')')}:{'type':'format','content':o(_0x59c105,'*Remove\x20format:*\x20%0',o(_0x59c105,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x3962fc){return'codeBlock'==_0x3962fc['name'];}class z extends _0x147a49{['afterInit'](){const _0x280360=this['editor'];if(!_0x280360['plugins']['has']('CommentsEditing'))return;_0x280360['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x147a49{static get['requires'](){return[_0x28754f];}['init'](){const _0x29c8b6=this['editor'],_0x481b24=_0x29c8b6['plugins']['get']('TrackChangesEditing');_0x481b24['enableCommand']('delete');const _0x4147bf=_0x29c8b6['commands']['get']('deleteForward');_0x481b24['enableCommand']('deleteForward',(_0x2f8990,_0x351e9b={})=>{const _0x30828a=_0x29c8b6['model']['createSelection'](_0x29c8b6['model']['document']['selection']);_0x30828a['isCollapsed']&&_0x29c8b6['model']['modifySelection'](_0x30828a,{'direction':'forward','unit':_0x351e9b['unit']});const _0x5970c0=_0x30828a['getFirstRange'](),_0x5ee0d3=_0x468db3['fromRange'](_0x5970c0);let _0x2e0c37;_0x2f8990(_0x351e9b),_0x2e0c37='$graveyard'==_0x5ee0d3['root']['rootName']?_0x29c8b6['model']['createRange'](_0x5970c0['start']):_0x29c8b6['model']['createRange'](_0x5ee0d3['start'],_0x5ee0d3['end']),_0x5ee0d3['detach'](),_0x29c8b6['model']['enqueueChange'](_0x4147bf['buffer']['batch'],_0x4442dd=>{_0x4147bf['buffer']['lock'](),_0x4442dd['setSelection'](_0x4442dd['createRange'](_0x2e0c37['end'])),_0x4147bf['buffer']['unlock']();});});}}class W extends _0x147a49{['afterInit'](){const _0x584b29=this['editor'];if(!_0x584b29['plugins']['has']('ListEditing'))return;const _0x2e83c0=_0x584b29['locale'],_0x4fbb63=_0x584b29['plugins']['get']('TrackChangesEditing'),_0x55a53f=_0x584b29['plugins']['has']('TodoListEditing'),_0xed7183=!!_0x584b29['config']['get']('list.multiBlock');function _0x3ad5c9(_0x125ff2){return{'type':'format','content':''+o(_0x2e83c0,'*Set\x20format:*\x20%0',_0x125ff2)};}function _0x590dce(_0x232636){return{'type':'format','content':''+o(_0x2e83c0,'*Remove\x20format:*\x20%0',_0x232636)};}_0x4fbb63['enableDefaultAttributesIntegration']('numberedList'),_0x4fbb63['enableDefaultAttributesIntegration']('bulletedList'),_0x4fbb63['enableDefaultAttributesIntegration']('customNumberedList'),_0x4fbb63['enableDefaultAttributesIntegration']('customBulletedList'),_0x4fbb63['enableDefaultAttributesIntegration']('indentList'),_0x4fbb63['enableDefaultAttributesIntegration']('outdentList'),_0x4fbb63['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4fbb63['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xed7183&&(_0x4fbb63['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4fbb63['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x55a53f&&(_0x4fbb63['enableDefaultAttributesIntegration']('todoList'),_0x4fbb63['enableDefaultAttributesIntegration']('checkTodoList'),_0x4fbb63['descriptionFactory']['registerDescriptionCallback'](_0x41bc87=>{const {data:_0x35b94d}=_0x41bc87;if(_0x35b94d&&'todoListChecked'==_0x35b94d['key'])return{'type':'format','content':_0x35b94d['newValue']?o(_0x2e83c0,'*Check\x20item*'):o(_0x2e83c0,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1ff912=>{if(_0x1ff912['batch']['isUndo'])return!0x1;let _0x21d918=!0x1;const _0x4fc94a=_0x4fbb63['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x20f759=>'todoListChecked'===_0x4fbb63['_getAttributeKey'](_0x20f759));for(const _0x59da69 of _0x4fc94a){'todo'!=_0x59da69['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4fbb63['_findSuggestions'](_0x59da69['getFirstRange'](),'attribute')['find'](_0x213ebf=>'listType'===_0x4fbb63['_getAttributeKey'](_0x213ebf['suggestion']))||(_0x1ff912['removeMarker'](_0x59da69['getFirstMarker']()),_0x21d918=!0x0));}return _0x21d918;})),_0x4fbb63['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2e83c0,'FORMAT_INDENT'));const _0x400be7={'type':'format','content':''};_0x4fbb63['descriptionFactory']['registerDescriptionCallback'](_0x5977cd=>{const {data:_0x45cbe8}=_0x5977cd;if(!_0x45cbe8||'listType'!=_0x45cbe8['key'])return;let _0x1e4266=_0x5977cd['head'];for(;_0x1e4266;){if(_0x1e4266['data']&&(('listStyle'==_0x1e4266['data']['key']||'listMarkerStyle'==_0x1e4266['data']['key'])&&(_0x1e4266['data']['newValue']&&'default'!=_0x1e4266['data']['newValue']||'default'!=_0x1e4266['data']['oldValue']&&!_0x45cbe8['newValue'])||!_0xed7183&&_0x1e4266['data']['key']==m))return _0x400be7;_0x1e4266=_0x1e4266['next'];}if(null==_0x45cbe8['newValue'])switch(_0x45cbe8['oldValue']){case'bulleted':return _0x590dce(o(_0x2e83c0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x590dce(o(_0x2e83c0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x590dce(o(_0x2e83c0,'ELEMENT_TODO_LIST'));}switch(_0x45cbe8['newValue']){case'bulleted':return _0x3ad5c9(o(_0x2e83c0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3ad5c9(o(_0x2e83c0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3ad5c9(o(_0x2e83c0,'ELEMENT_TODO_LIST'));}}),_0x4fbb63['descriptionFactory']['registerDescriptionCallback'](_0x3b8917=>{const {data:_0x58ca15}=_0x3b8917;if(_0x58ca15&&'listIndent'==_0x58ca15['key'])return null==_0x58ca15['newValue']||null==_0x58ca15['oldValue']&&0x0==_0x58ca15['newValue']?_0x400be7:void 0x0;}),_0x4fbb63['descriptionFactory']['registerDescriptionCallback'](_0x3332af=>{if('attribute'!=_0x3332af['type'])return;const {data:_0x3ccd76}=_0x3332af;if(!_0x3ccd76||'listItemId'!=_0x3ccd76['key'])return;const _0x5ae23c=Te(_0x3332af);return'newValue'==_0x5ae23c?{'type':'format','content':o(_0x2e83c0,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5ae23c?{'type':'format','content':o(_0x2e83c0,'*Split:*\x20list\x20item')}:_0x400be7;}),_0x584b29['model']['document']['registerPostFixer'](_0x10b764=>this['listItemIdFixer'](_0x10b764)),_0x584b29['model']['document']['registerPostFixer'](_0x29fcc8=>this['noTrackChangesFixer'](_0x29fcc8)),_0x584b29['model']['document']['on']('change:data',(_0x2ebf1c,_0x2f4a83)=>{if(_0x2f4a83['isUndo']||!_0x2f4a83['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x559ce9){if(_0x559ce9['batch']['isUndo']||!_0x559ce9['batch']['isLocal'])return!0x1;let _0xcbfee3=!0x1;const _0x458bb8=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1c77ca=>_0x1c77ca['data']&&'listItemId'==_0x1c77ca['data']['key'])['filter'](_0x536173=>_0x536173['data']['newValue']&&_0x536173['data']['oldValue']);for(const _0x247b85 of _0x458bb8)Te(_0x247b85)||(_0x559ce9['removeMarker'](_0x247b85['getFirstMarker']()),_0xcbfee3=!0x0);return _0xcbfee3;}['noTrackChangesFixer'](_0xcd506d){if(_0xcd506d['batch']['isUndo']||!_0xcd506d['batch']['isLocal'])return!0x1;const _0x2c9ea5=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2c9ea5['trackChangesCommand']['value'])return!0x1;let _0x45e11e=!0x1;const _0x27e158=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x139956=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5abe6c=>'attribute'==_0x5abe6c['type'])['filter'](_0x1097bb=>_0x27e158['includes'](_0x1097bb['attributeKey']));if(0x0==_0x139956['length'])return _0x45e11e;for(const _0x55c1b7 of _0x139956){const _0x37aca0=_0x2c9ea5['_findSuggestions'](_0x55c1b7['range'],'attribute')['filter'](_0x1f3b40=>!_0x1f3b40['meta']['isNextTo'])['map'](_0x5252fa=>_0x5252fa['suggestion'])['filter'](_0x3650b8=>{const _0x1cfed8=_0x2c9ea5['_getAttributeKey'](_0x3650b8);return _0x27e158['includes'](_0x1cfed8);});if(_0x37aca0['length']){for(const _0x7697a5 of _0x37aca0)_0xcd506d['removeMarker'](_0x7697a5['getFirstMarker']());_0x45e11e=!0x0;}}return _0x45e11e;}['assureChains'](){const _0x38324c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41600d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x32e46a;const _0x12564e=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x14b8a2=>{if(_0x14b8a2['data']['oldRange']||!_0x14b8a2['data']['newRange'])return null;if(!_0x14b8a2['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1561dc}=_0x38324c['_splitMarkerName'](_0x14b8a2['name']);if(!_0x38324c['hasSuggestion'](_0x1561dc))return null;const _0x956d8a=_0x38324c['getSuggestion'](_0x1561dc);return _0x41600d['includes'](_0x956d8a['data']['key']);})['map'](_0x1cfca2=>{const {id:_0x33cf3c}=_0x38324c['_splitMarkerName'](_0x1cfca2['name']),_0x1af99c=_0x38324c['getSuggestion'](_0x33cf3c);return _0x32e46a=_0x1af99c['attributes']['groupId'],_0x1af99c['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x12564e['size'])return;const _0x29de35=_0x38324c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1b72b8=>'attribute'==_0x1b72b8['type']&&_0x1b72b8['data']&&_0x41600d['includes'](_0x1b72b8['data']['key'])&&_0x1b72b8['attributes']['groupId']!=_0x32e46a)['map'](_0x2dc3cc=>({'listItem':_0x2dc3cc['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2dc3cc['attributes']['groupId']})),_0x23cf6a=new Set();for(const {groupId:_0x5402c4,listItem:_0x5e7f42}of _0x29de35)_0x12564e['has'](_0x5e7f42)&&_0x23cf6a['add'](_0x5402c4);for(const _0xd3521a of _0x38324c['getSuggestions']())_0x23cf6a['has'](_0xd3521a['attributes']['groupId'])&&_0xd3521a['setAttribute']('groupId',_0x32e46a);}['_supportLegacySuggestions'](){const _0xa02863=this['editor'],_0x40bc25=_0xa02863['locale'],_0x15fa6b=_0xa02863['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x15fa6b['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4d427a,_0x15fa8d){const _0x14ac4e=[];for(let _0x2467d6 of _0x4d427a)_0x2467d6['start']['nodeAfter']===_0x2467d6['end']['parent']&&(_0x2467d6=_0xa02863['model']['createRange'](_0xa02863['model']['createPositionAt'](_0x2467d6['start']['nodeAfter'],0x0))),_0x14ac4e['push'](_0x2467d6);_0xa02863['model']['change'](_0x84f7d=>{const _0x573577=_0xa02863['model']['document']['selection'],_0x199fd8=Array['from'](_0x573577['getRanges']())['map'](_0x30a479=>_0x468db3['fromRange'](_0x30a479));_0x84f7d['setSelection'](_0x14ac4e),_0xa02863['commands']['get'](_0x15fa8d['commandName'])['refresh'](),_0x15fa8d['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xa02863['execute'](_0x15fa8d['commandName'],..._0x15fa8d['commandParams']),_0x84f7d['setSelection'](_0x199fd8);for(const _0x2479c3 of _0x199fd8)_0x2479c3['detach']();});}),_0x15fa6b['descriptionFactory']['registerElementLabel'](function(_0x3996fc){const _0x935561=!_0xa02863['model']['schema']['isObject'](_0x3996fc),_0x381dda=_0x3996fc['previousSibling'],_0x4e584f=_0x3996fc['nextSibling'],_0x3a4651=_0x3996fc['getAttribute']('listItemId'),_0x3f9d98=!_0x381dda||_0x381dda['getAttribute']('listItemId')!==_0x3a4651,_0x1f59b8=!_0x4e584f||_0x4e584f['getAttribute']('listItemId')!==_0x3a4651;return _0x935561&&Boolean(_0x3a4651)&&_0x3f9d98&&_0x1f59b8;},_0x595023=>o(_0x40bc25,'ELEMENT_LIST_ITEM',_0x595023));}['_registerLegacyDescription'](){const _0x3f9e24=this['editor'],_0x36ed23=_0x3f9e24['locale'];function _0x2d44f8(_0x845734){const _0x54669d=_0x3f9e24['commands']['get']('bulletedList')['value'],_0x3e8aa2=_0x3f9e24['commands']['get']('numberedList')['value'];return'numberedList'===_0x845734?_0x54669d:_0x3e8aa2;}_0x3f9e24['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2a8001){if('formatBlock'!=_0x2a8001['type'])return;const {data:_0x6a24dd}=_0x2a8001;if(!_0x6a24dd)return;let _0x86d92b,_0x4312ef,_0x3a11a3,_0x4cc34a;switch(_0x6a24dd['commandName']){case'bulletedList':_0x3a11a3=_0x6a24dd['commandParams'][0x0]['forceValue'],_0x4cc34a=_0x2d44f8(_0x6a24dd['commandName']),_0x86d92b=_0x3a11a3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4cc34a&&_0x3f9e24['config']['get']('list.multiBlock')||(_0x86d92b='*Change\x20to:*\x20%0'),_0x4312ef={'type':'format','content':o(_0x36ed23,_0x86d92b,o(_0x36ed23,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3a11a3=_0x6a24dd['commandParams'][0x0]['forceValue'],_0x4cc34a=_0x2d44f8(_0x6a24dd['commandName']),_0x86d92b=_0x3a11a3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4cc34a&&_0x3f9e24['config']['get']('list.multiBlock')||(_0x86d92b='*Change\x20to:*\x20%0'),_0x4312ef={'type':'format','content':o(_0x36ed23,_0x86d92b,o(_0x36ed23,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x86d92b='*Indent:*\x20%0',_0x4312ef={'type':'format','content':o(_0x36ed23,_0x86d92b,o(_0x36ed23,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x86d92b=function(_0x10a519){const _0x2298f8=_0x10a519['getFirstRange']();let _0x5d3cdd=_0x2298f8['start']['nodeAfter'];for(;_0x5d3cdd&&_0x2298f8['containsItem'](_0x5d3cdd);){if(_0x5d3cdd['getAttribute']('listIndent')>0x0)return!0x1;_0x5d3cdd=_0x5d3cdd['nextSibling'];}return!0x0;}(_0x2a8001)?o(_0x36ed23,'*Format:*\x20remove\x20from\x20%0',o(_0x36ed23,function(_0x507795){return'ELEMENT_'+_0x507795['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2a8001))):o(_0x36ed23,'*Outdent:*\x20%0',o(_0x36ed23,'ELEMENT_LIST_ITEM')),_0x4312ef={'type':'format','content':_0x86d92b};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x6a24dd['multipleBlocks']&&(_0x86d92b='*Merge:*\x20%0',_0x4312ef={'type':'deletion','content':o(_0x36ed23,_0x86d92b,o(_0x36ed23,'ELEMENT_LIST_ITEM'))});}return _0x4312ef;});}}function Te(_0x41224d){let _0x1c6e78=_0x41224d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1c6e78;){const _0x1caacb=_0x1c6e78['getAttribute']('listItemId');if(!_0x1caacb)return!0x1;if(_0x1caacb==_0x41224d['data']['newValue'])return'newValue';if(_0x1caacb==_0x41224d['data']['oldValue'])return'oldValue';_0x1c6e78=_0x1c6e78['previousSibling'];}return!0x1;}class H extends _0x147a49{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x16e389=this['editor']['config']['get']('list.properties'),_0x38ea6c=this['editor']['plugins']['get']('TrackChangesEditing');_0x16e389['styles']&&_0x38ea6c['enableDefaultAttributesIntegration']('listStyle'),_0x16e389['reversed']&&_0x38ea6c['enableDefaultAttributesIntegration']('listReversed'),_0x16e389['startIndex']&&_0x38ea6c['enableDefaultAttributesIntegration']('listStart');const _0x1af7a4={'type':'format','content':''};_0x38ea6c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xeb5903=this['editor']['locale'];_0x38ea6c['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xeb5903,'FORMAT_LIST_REVERSED')),_0x38ea6c['descriptionFactory']['registerDescriptionCallback'](_0x1f7048=>{const {data:_0x483ec2}=_0x1f7048;if(_0x483ec2&&'listReversed'==_0x483ec2['key'])return null==_0x483ec2['newValue']||0x0==_0x483ec2['newValue']&&null==_0x483ec2['oldValue']?_0x1af7a4:void 0x0;}),_0x38ea6c['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xeb5903,'FORMAT_LIST_START')),_0x38ea6c['descriptionFactory']['registerDescriptionCallback'](_0x11e733=>{const {data:_0x2bffed}=_0x11e733;if(_0x2bffed&&'listStart'==_0x2bffed['key'])return null==_0x2bffed['newValue']||0x1==_0x2bffed['newValue']&&null==_0x2bffed['oldValue']?_0x1af7a4:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x21a20d=>{if(_0x21a20d['batch']['isUndo'])return!0x1;let _0x5488ba=!0x1;const _0x2aa5eb=_0x38ea6c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1759f0=>{const _0x59d6f6=_0x38ea6c['_getAttributeKey'](_0x1759f0);return'listStart'==_0x59d6f6||'listReversed'==_0x59d6f6;});for(const _0x4e4535 of _0x2aa5eb){const _0x4b8700=_0x4e4535['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4b8700||'customNumbered'==_0x4b8700)continue;_0x38ea6c['_findSuggestions'](_0x4e4535['getFirstRange'](),'attribute')['find'](_0x48e3d4=>'listType'==_0x38ea6c['_getAttributeKey'](_0x48e3d4['suggestion']))||(_0x21a20d['removeMarker'](_0x4e4535['getFirstMarker']()),_0x5488ba=!0x0);}return _0x5488ba;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3a1979){const _0x163095=this['editor']['locale'],{data:_0x1eb9ce}=_0x3a1979,_0x18a76b={'type':'format','content':''};if(!_0x1eb9ce||'listStyle'!=_0x1eb9ce['key'])return;if(!_0x1eb9ce['oldValue'])return'default'==_0x1eb9ce['newValue']?_0x18a76b:{'type':'format','content':''+o(_0x163095,'*Set\x20format:*\x20%0',o(_0x163095,this['_getTranslationKeyForListStyle'](_0x1eb9ce['newValue'])))};if(!_0x1eb9ce['newValue']){if('default'==_0x1eb9ce['oldValue'])return _0x18a76b;let _0x1de9cf=_0x3a1979['head'];for(;_0x1de9cf;){if(_0x1de9cf['data']&&'listType'==_0x1de9cf['data']['key']&&_0x1de9cf['data']['newValue'])return _0x18a76b;_0x1de9cf=_0x1de9cf['next'];}return{'type':'format','content':''+o(_0x163095,'*Remove\x20format:*\x20%0',o(_0x163095,this['_getTranslationKeyForListStyle'](_0x1eb9ce['oldValue'])))};}if('default'!=_0x1eb9ce['newValue'])return{'type':'format','content':''+o(_0x163095,'*Set\x20format:*\x20%0',o(_0x163095,this['_getTranslationKeyForListStyle'](_0x1eb9ce['newValue'])))};let _0x26d821=_0x3a1979['head'];for(;_0x26d821;){if(_0x26d821['data']&&'listType'==_0x26d821['data']['key']&&_0x26d821['data']['newValue']&&_0x26d821['data']['oldValue'])return _0x18a76b;_0x26d821=_0x26d821['next'];}return{'type':'format','content':o(_0x163095,'*Set\x20format:*\x20%0',o(_0x163095,'ELEMENT_'+_0x3a1979['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x35bd4d=this['editor'],_0x1f99c1=_0x35bd4d['locale'];_0x35bd4d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52a5c2=>{if('formatBlock'!=_0x52a5c2['type'])return;const {data:_0x41fee5}=_0x52a5c2;if(!_0x41fee5)return;let _0xaa4a4f,_0x113c99;switch(_0x41fee5['commandName']){case'listStyle':_0xaa4a4f='*Change\x20to:*\x20%0',_0x113c99={'type':'format','content':o(_0x1f99c1,_0xaa4a4f,o(_0x1f99c1,this['_getTranslationKeyForListStyle'](_0x41fee5['commandParams'][0x0]['type'])))};break;case'listReversed':_0xaa4a4f=_0x41fee5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x113c99={'type':'format','content':o(_0x1f99c1,_0xaa4a4f)};break;case'listStart':_0xaa4a4f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x113c99={'type':'format','content':o(_0x1f99c1,_0xaa4a4f,_0x41fee5['commandParams'][0x0]['startIndex'])};}return _0x113c99;});}['_getTranslationKeyForListStyle'](_0x514cf5){return'ELEMENT_'+function(_0x16a87b){if(ye['includes'](_0x16a87b))return'bulleted';if(Se['includes'](_0x16a87b))return'numbered';return null;}(_0x514cf5)['toUpperCase']()+'_LIST_'+_0x514cf5['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x147a49{['afterInit'](){const _0x3c925d=this['editor'];_0x3c925d['commands']['get']('emoji')&&_0x3c925d['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x147a49{static get['requires'](){return[_0x38b7b4];}['init'](){const _0x306f3e=this['editor'],_0x17a62e=_0x306f3e['plugins']['get']('TrackChangesEditing'),_0x881c5e=_0x306f3e['commands']['get']('enter');_0x17a62e['enableCommand']('enter',()=>{_0x306f3e['model']['change'](_0x236ddf=>{const _0x4db3bb=_0x306f3e['model']['document']['selection'],_0xd6be75=_0x4db3bb['getFirstPosition'](),_0x41e433=_0x468db3['fromRange'](_0x4db3bb['getFirstRange']());if(_0x881c5e['enterBlock'](_0x236ddf)){const _0x40b77c=_0x306f3e['model']['createPositionAt'](_0xd6be75['parent']['nextSibling'],0x0),_0x473afa=_0x236ddf['createRange'](_0xd6be75,_0x40b77c);_0x17a62e['markInsertion'](_0x473afa);}else _0x236ddf['setSelection'](_0x236ddf['createRange'](_0x41e433['end']));_0x41e433['detach'](),_0x881c5e['fire']('afterExecute',{'writer':_0x236ddf});});});}}class Y extends _0x147a49{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2eb6e8=this['editor']['plugins']['get']('TrackChangesEditing');_0x2eb6e8['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2eb6e8['enableCommand']('findNext'),_0x2eb6e8['enableCommand']('findPrevious'),_0x2eb6e8['enableCommand']('replace'),_0x2eb6e8['enableCommand']('replaceAll');}['handleFindCommand'](_0x3d22a8,_0x1af781,_0x18d3a7={}){const _0x92fa9c=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3d22a8(_0x382981=>{let _0x376866=('string'==typeof _0x1af781?_0x92fa9c['findByTextCallback'](_0x1af781,_0x18d3a7):_0x1af781)(_0x382981);Array['isArray'](_0x376866)&&(_0x376866={'results':_0x376866,'searchText':'string'==typeof _0x1af781?_0x1af781:''});const _0x352557=_0x376866['results']['filter'](_0x807d=>!0x1===this['_isInDeletionRange'](_0x807d,_0x382981['item']));return{..._0x376866,'results':_0x352557};},_0x18d3a7);}['_isInDeletionRange'](_0x28bd60,_0x1753e8){const _0x2e7108=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1753e8,_0x28bd60['start']),this['editor']['model']['createPositionAt'](_0x1753e8,_0x28bd60['end']));for(const _0x14472c of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2e7108['getIntersection'](_0x14472c['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x147a49{['afterInit'](){const _0x4cbc04=this['editor']['locale'],_0x3729d0=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3f1841,commandName:_0x539ab4}of eo)this['editor']['plugins']['has'](_0x3f1841)&&_0x3729d0['enableDefaultAttributesIntegration'](_0x539ab4);_0x3729d0['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4cbc04,'FORMAT_FONT_SIZE')),_0x3729d0['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4cbc04,'FORMAT_FONT_FAMILY')),_0x3729d0['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4cbc04,'FORMAT_FONT_COLOR')),_0x3729d0['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4cbc04,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x485839=this['editor'],_0xeb1b63=_0x485839['locale'];_0x485839['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x182482=>{const _0x5957f7=_0xeb1b63['t'];if('formatInline'!=_0x182482['type'])return;const {data:_0x46ac29}=_0x182482;if(null!=_0x46ac29){if('fontSize'==_0x46ac29['commandName']){const _0xef7c3e=_0x46ac29['commandParams'][0x0]['value'];if(_0xef7c3e){const _0x5d63e1=_0x5957f7(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5d0d62=>_0x5d0d62['model']==_0xef7c3e)['title'])['toLowerCase']();return{'type':'format','content':o(_0xeb1b63,'*Set\x20font\x20size:*\x20%0',_0x5d63e1)};}return{'type':'format','content':o(_0xeb1b63,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x46ac29['commandName']){const _0x49308f=_0x46ac29['commandParams'][0x0]['value'];return _0x49308f?{'type':'format','content':o(_0xeb1b63,'*Set\x20font\x20family:*\x20%0',_0x49308f)}:{'type':'format','content':o(_0xeb1b63,'*Reset\x20font\x20family*')};}if('fontColor'==_0x46ac29['commandName']){const _0x194673=_0x46ac29['commandParams'][0x0]['value'];if(_0x194673){const _0x59de51=_0x1d782c(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5f103b=>_0x5f103b['model']==_0x194673);let _0x11b796=_0x194673,_0x48e8a2='';return _0x59de51&&(_0x11b796=_0x59de51['label'],_0x48e8a2=_0x5957f7(_0x11b796)['toLowerCase']()),{'type':'format','content':o(_0xeb1b63,'*Set\x20font\x20color:*\x20%0',_0x48e8a2)['trim'](),'color':{'value':_0x194673,'title':_0x48e8a2||_0x11b796}};}return{'type':'format','content':o(_0xeb1b63,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x46ac29['commandName']){const _0x5eeeeb=_0x46ac29['commandParams'][0x0]['value'];if(_0x5eeeeb){const _0x178a53=_0x1d782c(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2bd3b5=>_0x2bd3b5['model']==_0x5eeeeb);let _0x20cda3=_0x5eeeeb,_0xd62932='';return _0x178a53&&(_0x20cda3=_0x178a53['label'],_0xd62932=_0x5957f7(_0x20cda3)['toLowerCase']()),{'type':'format','content':o(_0xeb1b63,'*Set\x20font\x20background\x20color:*\x20%0',_0xd62932)['trim'](),'color':{'value':_0x5eeeeb,'title':_0xd62932||_0x20cda3}};}return{'type':'format','content':o(_0xeb1b63,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x147a49{['afterInit'](){const {plugins:_0x2c74c7}=this['editor'];_0x2c74c7['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x2c74c7['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x76f0c6,plugins:_0x540c89,commands:_0x35acd4}=this['editor'],_0xbc339c=_0x540c89['get']('TrackChangesEditing');_0x35acd4['get']('footnotesStyle')&&_0xbc339c['enableDefaultAttributesIntegration']('footnotesStyle'),_0x35acd4['get']('footnotesStart')&&_0xbc339c['enableDefaultAttributesIntegration']('footnotesStart'),_0xbc339c['registerBlockAttribute']('footnotesListStyle'),_0xbc339c['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x76f0c6,'FORMAT_FOOTNOTES_LIST_STYLE')),_0xbc339c['registerBlockAttribute']('footnotesListStart'),_0xbc339c['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x76f0c6,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x5df6d0=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x42964c,commands:_0x18ccdf}=this['editor'];_0x18ccdf['get']('insertFootnote')&&_0x5df6d0['enableCommand']('insertFootnote'),_0x5df6d0['descriptionFactory']['registerElementLabel']('footnoteRef',_0x2e67b7=>o(_0x42964c,'ELEMENT_FOOTNOTE_REF',_0x2e67b7)),_0x5df6d0['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x32ac7b=>o(_0x42964c,'ELEMENT_FOOTNOTE_DEFINITION',_0x32ac7b)),_0x5df6d0['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x1d041e=>o(_0x42964c,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x1d041e));}}class nt extends _0x147a49{['afterInit'](){const _0xad71d1=this['editor'],_0x30b6db=_0xad71d1['plugins']['get']('TrackChangesEditing'),_0x5589fe=_0xad71d1['commands']['get']('copyFormat'),_0x509e86=_0xad71d1['commands']['get']('pasteFormat');_0x5589fe&&_0x509e86&&(_0x30b6db['enableDefaultAttributesIntegration']('pasteFormat'),_0x30b6db['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4e74b8=this['editor'],_0xbeedca=_0x4e74b8['locale'];_0x4e74b8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29ed86=>{if('formatBlock'!=_0x29ed86['type']&&'formatInline'!=_0x29ed86['type'])return;const {data:_0x503c28}=_0x29ed86;if(_0x503c28&&'pasteFormat'===_0x503c28['commandName']){const _0x44a64d=[],_0x3b9a20=_0x503c28['commandParams'][0x0];for(const [_0x4507a2,_0x1482fa]of Object['entries'](_0x3b9a20))_0x44a64d['push'](ro(_0x4e74b8,_0x4507a2,_0x1482fa));return _0x44a64d['length']?{'type':'format','content':o(_0xbeedca,'*Set\x20format\x20to:*\x20%0',_0x44a64d['join'](',\x20'))}:{'type':'format','content':o(_0xbeedca,'*Remove\x20all\x20formatting*')};}});}}function ro(_0xb8e634,_0x46940c,_0x324139){const _0xabada3=_0xb8e634['locale']['t'],_0x3c303e=_0x46940c['split'](/(?=[A-Z])/)['join']('\x20'),_0x381143=_0xabada3(_0x3c303e['charAt'](0x0)['toUpperCase']()+_0x3c303e['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x324139)return _0x381143;if('fontColor'===_0x46940c||'fontBackgroundColor'===_0x46940c){const _0x31cbb6=_0x1d782c(_0xb8e634['config']['get']('fontColor.colors'))['find'](_0x1c13d0=>_0x1c13d0['model']==_0x324139);return _0x381143+'\x20('+(_0x31cbb6?_0xabada3(_0x31cbb6['label'])['toLowerCase']():_0x324139)+')';}if('fontSize'===_0x46940c&&isNaN(parseFloat(_0x324139))){const _0x1771ed=_0xb8e634['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xb8e634['config']['get']('fontSize.options'))['find'](_0x2b6220=>_0x2b6220['model']==_0x324139);return _0x381143+'\x20('+(_0x1771ed?_0xabada3(_0x1771ed['title'])['toLowerCase']():_0x324139)+')';}return _0x381143+'\x20('+_0x324139+')';}class it extends _0x147a49{['_headingOptions'];['afterInit'](){const _0x23f194=this['editor'];if(!_0x23f194['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x23f194['config']['get']('heading.options');const _0x4fe35e=_0x23f194['locale'],_0x1ccf5b=_0x23f194['plugins']['get']('TrackChangesEditing');_0x1ccf5b['enableDefaultAttributesIntegration']('heading');for(const _0x1bed06 of this['_headingOptions'])'paragraph'!=_0x1bed06['model']&&_0x1ccf5b['descriptionFactory']['registerElementLabel'](_0x1bed06['model'],_0x5375d4=>{const _0x1620fd=this['_getHeadingLevel'](_0x1bed06['model']);return null!==_0x1620fd?_0xfb8f05(_0x5375d4,_0x1620fd):_0x2672a4(_0x5375d4,_0x1bed06['title']);});function _0xfb8f05(_0x3cddcc,_0x2bb76c){return o(_0x4fe35e,'ELEMENT_HEADING',[_0x3cddcc,_0x2bb76c]);}function _0x2672a4(_0x5d6c7e,_0x306a73){return o(_0x4fe35e,'ELEMENT_HEADING_CUSTOM',[_0x5d6c7e,_0x306a73]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5889a0=this['editor'],_0xd8b329=_0x5889a0['locale'];function _0x1c0e83(_0x2f3253,_0x7b7b4d){return o(_0xd8b329,'ELEMENT_HEADING_CUSTOM',[_0x2f3253,_0x7b7b4d]);}_0x5889a0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb29c18=>{if('formatBlock'!=_0xb29c18['type'])return;const {data:_0x5194e0}=_0xb29c18;if(_0x5194e0&&'heading'==_0x5194e0['commandName']){const _0x4444ed=_0x5194e0['commandParams'][0x0]['value'],_0x343f72=this['_getHeadingLevel'](_0x4444ed);if(null!==_0x343f72)return{'type':'format','content':o(_0xd8b329,'*Change\x20to:*\x20%0',(_0x2bd8ee=0x1,_0x40942e=_0x343f72,o(_0xd8b329,'ELEMENT_HEADING',[_0x2bd8ee,_0x40942e])))};const _0x1854fd=this['_headingOptions']['find'](_0x514ecd=>_0x514ecd['model']===_0x4444ed)['title'];return{'type':'format','content':o(_0xd8b329,'*Change\x20to:*\x20%0',_0x1c0e83(0x1,_0x1854fd))};}var _0x2bd8ee,_0x40942e;});}['_getHeadingLevel'](_0x1653f6){const _0x10bf0c=_0x1653f6['match'](/^heading(\d+)/);if(_0x10bf0c)return _0x10bf0c[0x1];const _0x1253ec=this['_headingOptions']?.['find'](_0x2549f0=>_0x2549f0['model']==_0x1653f6);if(_0x1253ec&&_0x1253ec['view']){const _0x476e75=_0x1253ec['view'],_0x28fd05=(_0x476e75['name']??_0x476e75)['match'](/^h(\d+)/);if(_0x28fd05)return _0x28fd05[0x1];}return null;}}class et extends _0x147a49{['afterInit'](){const _0x41852f=this['editor'];if(!_0x41852f['plugins']['has']('HighlightEditing'))return;const _0x2bbe5a=_0x41852f['plugins']['get']('TrackChangesEditing'),_0x3defa3=_0x41852f['locale'];_0x2bbe5a['enableDefaultAttributesIntegration']('highlight'),_0x2bbe5a['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3defa3,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ba371=this['editor'],_0x2afbb9=_0x1ba371['locale'];_0x1ba371['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x245adf=>{if('formatInline'!=_0x245adf['type'])return;const {data:_0xcfef01}=_0x245adf;if(_0xcfef01&&'highlight'==_0xcfef01['commandName']){const _0x3b3b01=_0x2afbb9['t'],_0x101fed=_0xcfef01['commandParams'][0x0]['value'];if(_0x101fed){const _0x26826e=_0x1ba371['config']['get']('highlight.options')['find'](_0x5cc8c9=>_0x5cc8c9['model']==_0x101fed),_0x4c0f1d=_0x3b3b01(_0x26826e['title'])['toLowerCase']();return{'type':'format','content':o(_0x2afbb9,'*Set\x20highlight:*\x20%0',_0x4c0f1d),'color':{'value':_0x26826e['color'],'title':_0x26826e['title']}};}return{'type':'format','content':o(_0x2afbb9,'*Remove\x20highlight*',o(_0x2afbb9,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x147a49{['afterInit'](){const _0x311fca=this['editor'];if(!_0x311fca['plugins']['has']('HorizontalLineEditing'))return;_0x311fca['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x23a3b4=_0x311fca['plugins']['get']('TrackChangesEditing'),_0x18b5a6=_0x311fca['locale'];_0x23a3b4['descriptionFactory']['registerElementLabel']('horizontalLine',_0x31538f=>o(_0x18b5a6,'ELEMENT_HORIZONTAL_LINE',_0x31538f));}}class ot extends _0x147a49{['afterInit'](){const _0x5f4bcb=this['editor'];if(!_0x5f4bcb['plugins']['has']('HtmlEmbed'))return;const _0x2854f1=_0x5f4bcb['plugins']['get']('TrackChangesEditing'),_0x10de82=_0x5f4bcb['locale'];_0x2854f1['descriptionFactory']['registerElementLabel']('rawHtml',_0x514cef=>o(_0x10de82,'ELEMENT_HTML_EMBED',_0x514cef)),_0x2854f1['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2854f1['descriptionFactory']['registerDescriptionCallback'](_0x2e0254=>{if('attribute'!=_0x2e0254['type'])return;const {data:_0x18f31d}=_0x2e0254;if(_0x18f31d&&'value'==_0x18f31d['key']&&_0x2e0254['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x25d426=o(_0x10de82,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x10de82,'*Change\x20%0\x20content*',_0x25d426)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x545e17=this['editor'],_0x22cc4c=_0x545e17['locale'];_0x545e17['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b23e7=>{if('formatBlock'!=_0x5b23e7['type'])return;const {data:_0x158c46}=_0x5b23e7;if(_0x158c46&&'htmlEmbed'==_0x158c46['commandName']){const _0x348512=o(_0x22cc4c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x22cc4c,'*Change\x20%0\x20content*',_0x348512)};}});}}class rt extends _0x147a49{['afterInit'](){const _0x8fcbec=this['editor'];if(!_0x8fcbec['plugins']['has']('ImageEditing'))return;const _0x15c7b0=_0x8fcbec['plugins']['get']('TrackChangesEditing'),_0x4819a1=_0x8fcbec['plugins']['get']('ImageUtils'),_0x248c41=_0x8fcbec['locale'];_0x15c7b0['enableCommand']('insertImage'),_0x15c7b0['descriptionFactory']['registerElementLabel']('imageBlock',_0x50a774=>o(_0x248c41,'ELEMENT_IMAGE',_0x50a774)),_0x15c7b0['descriptionFactory']['registerElementLabel']('imageInline',_0x2a875f=>o(_0x248c41,'ELEMENT_INLINE_IMAGE',_0x2a875f)),_0x15c7b0['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x248c41,'ELEMENT_CAPTION')),_0x8fcbec['plugins']['has']('ImageUploadEditing')&&_0x15c7b0['enableCommand']('uploadImage'),_0x8fcbec['plugins']['has']('ImageBlockEditing')&&_0x8fcbec['plugins']['has']('ImageInlineEditing')&&(_0x15c7b0['enableCommand']('imageTypeInline',(_0x7969,_0x300f8d)=>{const _0x371b1e=_0x4819a1['getClosestSelectedImageElement'](_0x8fcbec['model']['document']['selection']);_0x8fcbec['model']['change'](()=>{_0x15c7b0['markBlockFormat'](_0x371b1e,{'commandName':'imageTypeInline','commandParams':[_0x300f8d]},[],'convertBlockImageToInline');});}),_0x15c7b0['enableCommand']('imageTypeBlock',(_0x413d31,_0x4caa8d)=>{_0x8fcbec['model']['change'](_0x597fdd=>{let _0x369120=_0x4819a1['getClosestSelectedImageElement'](_0x8fcbec['model']['document']['selection']),_0x5a2900=_0x597fdd['createRangeOn'](_0x369120);const _0x5365f0=_0x3a67eb['fromPosition'](_0x5a2900['start'],'toPrevious'),_0x3d966c=_0x3a67eb['fromPosition'](_0x5a2900['end'],'toNext');_0x15c7b0['forceDefaultExecution'](()=>_0x413d31(_0x4caa8d)),_0x369120=_0x4819a1['getClosestSelectedImageElement'](_0x8fcbec['model']['document']['selection']),_0x5a2900=_0x597fdd['createRangeOn'](_0x369120);const _0x3a5e70=_0x597fdd['createRange'](_0x5365f0,_0x3d966c);_0x5365f0['detach'](),_0x3d966c['detach'](),_0x15c7b0['markBlockFormat'](_0x369120,{'commandName':'imageTypeInline','commandParams':[_0x4caa8d]},[],'convertInlineImageToBlock'),_0x3a5e70['start']['isBefore'](_0x5a2900['start'])&&_0x15c7b0['markInsertion'](_0x597fdd['createRange'](_0x3a5e70['start'],_0x5a2900['start']),'convertInlineImageToBlock'),_0x5a2900['end']['isBefore'](_0x3a5e70['end'])&&_0x15c7b0['markInsertion'](_0x597fdd['createRange'](_0x5a2900['end'],_0x3a5e70['end']),'convertInlineImageToBlock');});}),_0x15c7b0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x15c7b0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x15c7b0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x15c7b0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x15c7b0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x15c7b0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x220a57])=>{const _0x3ea426=_0x15c7b0['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x22a213=_0x220a57['start'],_0x29722e=_0x220a57['end'];const _0x58c42e=_0x8fcbec['model']['schema']['getNearestSelectionRange'](_0x22a213,'backward'),_0x2a1ba7=_0x8fcbec['model']['schema']['getNearestSelectionRange'](_0x29722e,'forward');_0x58c42e['isCollapsed']&&(_0x22a213=_0x58c42e['start']),_0x2a1ba7['isCollapsed']&&(_0x29722e=_0x2a1ba7['end']),_0x3ea426([_0x8fcbec['model']['createRange'](_0x22a213,_0x29722e)]);}),_0x15c7b0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2c186e),_0x15c7b0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2c186e)),_0x8fcbec['plugins']['has']('ImageCaptionEditing')&&(_0x15c7b0['enableCommand']('toggleImageCaption',(_0x210507,_0x43cafa)=>{const _0xae6bd2=_0x8fcbec['plugins']['get']('ImageCaptionUtils');let _0x3e02f4=_0x4819a1['getClosestSelectedImageElement'](_0x8fcbec['model']['document']['selection']),_0x359681=_0xae6bd2['getCaptionFromImageModelElement'](_0x3e02f4);_0x8fcbec['model']['change'](()=>{if(_0x359681)return void _0x15c7b0['markDeletion'](_0x8fcbec['model']['createRangeOn'](_0x359681));const _0x3306cd=_0x4819a1['isBlockImage'](_0x3e02f4);_0x210507(_0x43cafa),_0x3e02f4=_0x4819a1['getClosestSelectedImageElement'](_0x8fcbec['model']['document']['selection']),_0x359681=_0xae6bd2['getCaptionFromImageModelElement'](_0x3e02f4),_0x15c7b0['markInsertion'](_0x8fcbec['model']['createRangeOn'](_0x359681),_0x3306cd?null:'imageCaption');});}),_0x15c7b0['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2c186e));const _0x45e199=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5f1114(_0xa2aec3,_0x13e10a){const _0x2458d6=_0x45e199['findIndex'](({type:_0x8354b3,subType:_0x4b221a})=>_0xa2aec3['type']==_0x8354b3&&_0xa2aec3['subType']==_0x4b221a),_0x2d2295=_0x45e199['findIndex'](({type:_0x1256cf,subType:_0x45d976})=>_0x13e10a['type']==_0x1256cf&&_0x13e10a['subType']==_0x45d976);if(_0x2458d6<0x0||_0x2d2295<0x0)return!0x1;const _0x591a06=_0xa2aec3['getFirstRange'](),_0x5ae4a5=_0x13e10a['getFirstRange']();if((0x0==_0x2458d6||0x1==_0x2458d6)&&0x2==_0x2d2295&&_0x591a06['isIntersecting'](_0x5ae4a5))return!0x0;if(0x2==_0x2458d6&&0x3==_0x2d2295){const _0x18fa0b=_0x15c7b0['_findSuggestions'](_0x591a06,'insertion')['filter'](({suggestion:_0x3f96e4,meta:_0x19c858})=>_0x19c858['isOwn']&&'convertInlineImageToBlock'==_0x3f96e4['subType']);if(_0x18fa0b['length']>0x1&&_0x5ae4a5['end']['isEqual'](_0x591a06['start']))return!0x0;if(0x1==_0x18fa0b['length']&&(_0x591a06['start']['isEqual'](_0x5ae4a5['end'])||_0x591a06['end']['isEqual'](_0x5ae4a5['start'])))return!0x0;}if(0x3==_0x2458d6&&0x3==_0x2d2295&&_0x591a06['start']['isBefore'](_0x5ae4a5['start'])){const _0x3d6cbe=_0x591a06['end']['nodeAfter'],_0x53e75e=_0x5ae4a5['start']['nodeBefore'];return _0x4819a1['isBlockImage'](_0x3d6cbe)&&_0x3d6cbe===_0x53e75e;}return!0x1;}function _0x2c186e(_0x456486,_0xe70567){return _0x5f1114(_0x456486,_0xe70567)?[_0x456486,_0xe70567]:_0x5f1114(_0xe70567,_0x456486)?[_0xe70567,_0x456486]:null;}_0x8fcbec['plugins']['has']('ImageResize')&&(_0x15c7b0['enableDefaultAttributesIntegration']('resizeImage'),_0x15c7b0['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x248c41,'FORMAT_IMAGE_SIZE'))),_0x8fcbec['plugins']['has']('ImageTextAlternativeEditing')&&_0x15c7b0['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x8fcbec['plugins']['has']('PictureEditing')&&_0x15c7b0['descriptionFactory']['registerDescriptionCallback'](_0x5992a9=>{if('attribute'!=_0x5992a9['type'])return;const {data:_0x412ed3}=_0x5992a9;return _0x412ed3&&'sources'==_0x412ed3['key']?{'type':'format','content':''}:void 0x0;}),_0x8fcbec['plugins']['has']('ImageSizeAttributes')&&_0x15c7b0['descriptionFactory']['registerDescriptionCallback'](_0x20df35=>{if('attribute'!=_0x20df35['type'])return;const {data:_0x535921}=_0x20df35;return!_0x535921||'width'!=_0x535921['key']&&'height'!=_0x535921['key']?void 0x0:{'type':'format','content':''};}),_0x15c7b0['descriptionFactory']['registerDescriptionCallback'](_0x5e10c5=>{if(!!_0x45e199['find'](({type:_0x2468b3,subType:_0x174bd0})=>_0x5e10c5['type']==_0x2468b3&&_0x5e10c5['subType']==_0x174bd0))return _0x5e10c5['previous']?{}:void 0x0;}),_0x15c7b0['descriptionFactory']['registerDescriptionCallback'](_0x3b363a=>{if('insertion'==_0x3b363a['type']||'deletion'==_0x3b363a['type']){const _0x1b80cc=_0x3b363a['getContainedElement']();if(_0x1b80cc&&_0x1b80cc['is']('element','caption'))return{'type':'insertion'==_0x3b363a['type']?'addObject':'removeObject','element':_0x1b80cc,'quantity':0x1};}}),_0x15c7b0['descriptionFactory']['registerDescriptionCallback'](_0x2eb183=>'formatBlock'==_0x2eb183['type']&&'convertInlineImageToBlock'==_0x2eb183['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2eb183['type']&&'convertBlockImageToInline'==_0x2eb183['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x15c7b0['descriptionFactory']['registerDescriptionCallback'](_0x37c085=>{if('attribute'!=_0x37c085['type'])return;const {data:_0x1392f2}=_0x37c085;if(!_0x1392f2||'alt'!=_0x1392f2['key'])return;const _0x7fe045=_0x1392f2['newValue'];return _0x7fe045?{'type':'format','content':o(_0x248c41,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x7fe045+'\x22')}:{'type':'format','content':o(_0x248c41,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a3665=this['editor'],_0x1205ac=_0x1a3665['locale'];_0x1a3665['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x555fe9=>{if('formatBlock'!=_0x555fe9['type']&&'formatInline'!=_0x555fe9['type'])return;const {data:_0x125c3b}=_0x555fe9;if(_0x125c3b){if('imageTextAlternative'==_0x125c3b['commandName']){const _0x3bd4d2=_0x125c3b['commandParams'][0x0]['newValue'];return _0x3bd4d2?{'type':'format','content':o(_0x1205ac,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3bd4d2+'\x22')}:{'type':'format','content':o(_0x1205ac,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x125c3b['commandName']){const _0x3fba78=_0x125c3b['commandParams'][0x0]['width'];return _0x3fba78?{'type':'format','content':o(_0x1205ac,'*Set\x20image\x20width:*\x20%0',_0x3fba78)}:{'type':'format','content':o(_0x1205ac,'*Reset\x20image\x20width*')};}}});}}class at extends _0x147a49{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x269688=this['editor']['locale'],_0x1be964=this['editor']['plugins']['get']('TrackChangesEditing');_0x1be964['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1be964['descriptionFactory']['registerDescriptionCallback'](_0x5eae6f=>{if('attribute'!=_0x5eae6f['type'])return;const {data:_0x509b3c}=_0x5eae6f;return _0x509b3c&&'src'==_0x509b3c['key']?_0x509b3c['newValue']&&_0x509b3c['oldValue']?{'type':'format','content':o(_0x269688,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4713e5=this['editor']['plugins']['get']('TrackChangesEditing');_0x4713e5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4713e5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4713e5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4713e5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x505d8c=this['editor'],_0x256950=_0x505d8c['locale'];_0x505d8c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4206c0=>{if('formatBlock'!=_0x4206c0['type']&&'formatInline'!=_0x4206c0['type'])return;const {data:_0x43b2f0}=_0x4206c0;if(!_0x43b2f0||'replaceImageSource'!=_0x43b2f0['commandName'])return;return{'type':'format','content':o(_0x256950,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x147a49{['afterInit'](){const _0x21b8cd=this['editor'];if(!_0x21b8cd['plugins']['has']('ImageStyleEditing'))return;const _0x30a991=_0x21b8cd['plugins']['get']('TrackChangesEditing'),_0x43d506=_0x21b8cd['plugins']['get']('ImageUtils'),_0x4df286={};_0x30a991['enableCommand']('imageStyle',(_0x3f90a5,_0x1e086f)=>{const _0x264d73=_0x21b8cd['plugins']['get']('Users')['me'],_0x19fa4a=_0x21b8cd['commands']['get']('imageStyle');let _0x39564c=_0x43d506['getClosestSelectedImageElement'](_0x21b8cd['model']['document']['selection']),_0x49e4f7=_0x21b8cd['model']['createRangeOn'](_0x39564c),_0x3c3879=_0x19fa4a['value'];if(_0x3c3879==_0x1e086f['value'])return;const _0x5a062b={'commandName':'imageStyle','commandParams':[_0x1e086f],'formatGroupId':_0x2844ab()};_0x21b8cd['model']['change'](()=>{if(_0x30a991['getSuggestions']()['filter'](_0x3e3e79=>_0x3e3e79['isInContent']&&_0x264d73==_0x3e3e79['author']&&('formatBlock'==_0x3e3e79['type']||'formatInline'==_0x3e3e79['type'])&&('imageStylePreApply'==_0x3e3e79['subType']||'imageStylePostApply'==_0x3e3e79['subType'])&&_0x3e3e79['getFirstRange']()['isEqual'](_0x49e4f7))['forEach'](_0x1023eb=>_0x30a991['discardSuggestion'](_0x1023eb['head'])),_0x39564c=_0x43d506['getClosestSelectedImageElement'](_0x21b8cd['model']['document']['selection']),_0x49e4f7=_0x21b8cd['model']['createRangeOn'](_0x39564c),_0x19fa4a['refresh'](),_0x21b8cd['commands']['get']('imageTypeInline')['refresh'](),_0x21b8cd['commands']['get']('imageTypeBlock')['refresh'](),_0x3c3879=_0x19fa4a['value'],_0x3c3879!=_0x1e086f['value'])return _0x43d506['isInlineImage'](_0x39564c)&&_0x19fa4a['shouldConvertImageType'](_0x1e086f['value'],_0x39564c)?(_0x3f90a5({..._0x1e086f,'setImageSizes':!0x1}),_0x39564c=_0x43d506['getClosestSelectedImageElement'](_0x21b8cd['model']['document']['selection']),void _0x30a991['markBlockFormat'](_0x39564c,{..._0x5a062b,'commandReversedParams':[{'value':_0x3c3879||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x43d506['isBlockImage'](_0x39564c)?_0x30a991['markBlockFormat'](_0x39564c,_0x5a062b,[],'imageStylePostApply'):_0x30a991['markInlineFormat'](_0x49e4f7,_0x5a062b,'imageStylePostApply'));});});for(const _0x425410 of _0x21b8cd['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4df286[_0x425410['name']]=_0x425410['title']['toLowerCase']();_0x30a991['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x30a991['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x30a991['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x30a991['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x46f448])=>{_0x43d506['setImageNaturalSizeAttributes'](_0x46f448['getContainedElement']());}),_0x30a991['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x17faa2,_0x421e82)=>{_0x30a991['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x17faa2,{'commandName':_0x421e82['commandName'],'commandParams':_0x421e82['commandReversedParams']});}),_0x30a991['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3bd648,_0x1de1df){if(_0x3556fa(_0x3bd648,_0x1de1df))return[_0x3bd648,_0x1de1df];if(_0x3556fa(_0x1de1df,_0x3bd648))return[_0x1de1df,_0x3bd648];return null;});const _0x426c1b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3556fa(_0x5ca671,_0x3f834b){const _0x48117f=_0x426c1b['findIndex'](({type:_0x310017,subType:_0x38d3d9})=>_0x5ca671['type']==_0x310017&&_0x5ca671['subType']==_0x38d3d9),_0x1d900a=_0x426c1b['findIndex'](({type:_0x3a6234,subType:_0x31fc46})=>_0x3f834b['type']==_0x3a6234&&_0x3f834b['subType']==_0x31fc46);if(_0x48117f<0x0||_0x1d900a<0x0)return!0x1;const _0x4dc4a7=_0x5ca671['getFirstRange'](),_0x410f81=_0x3f834b['getFirstRange']();if((0x0==_0x48117f||0x1==_0x48117f)&&0x2==_0x1d900a&&_0x4dc4a7['isIntersecting'](_0x410f81))return!0x0;if(0x2==_0x48117f&&0x3==_0x1d900a){const _0x2350f1=_0x30a991['_findSuggestions'](_0x4dc4a7,'insertion')['filter'](({suggestion:_0x56090c,meta:_0x225659})=>_0x225659['isOwn']&&'convertInlineImageToBlock'==_0x56090c['subType']);if(_0x2350f1['length']>0x1&&_0x410f81['end']['isEqual'](_0x4dc4a7['start']))return!0x0;if(0x1==_0x2350f1['length']&&(_0x4dc4a7['start']['isEqual'](_0x410f81['end'])||_0x4dc4a7['end']['isEqual'](_0x410f81['start'])))return!0x0;}if(0x3==_0x48117f&&0x3==_0x1d900a&&_0x4dc4a7['start']['isBefore'](_0x410f81['start'])){const _0x790505=_0x4dc4a7['end']['nodeAfter'],_0x57f1c8=_0x410f81['start']['nodeBefore'];return _0x43d506['isBlockImage'](_0x790505)&&_0x790505===_0x57f1c8;}return!0x1;}_0x21b8cd['model']['document']['registerPostFixer'](()=>{let _0x52d9fc=!0x1;const _0x592f65=Array['from'](_0x21b8cd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25aa77,data:_0x18830d}of _0x592f65){const {group:_0x5f5c96,type:_0x314f62,subType:_0x6c6c6d,id:_0x3b6c63}=_0x30a991['_splitMarkerName'](_0x25aa77);if('suggestion'==_0x5f5c96&&_0x30a991['hasSuggestion'](_0x3b6c63)){if('formatBlock'==_0x314f62&&('imageStylePreApply'==_0x6c6c6d||'imageStylePostApply'==_0x6c6c6d)){const _0x1d0953=_0x30a991['getSuggestion'](_0x3b6c63);if(_0x18830d['newRange']){const _0x85cce8=_0x1d0953['getFirstRange']()['getContainedElement']();if(_0x43d506['isBlockImage'](_0x85cce8))continue;_0x30a991['discardSuggestion'](_0x1d0953),_0x52d9fc=!0x0;}}if('insertion'==_0x314f62&&'imageCaption'==_0x6c6c6d&&!_0x18830d['newRange']){const _0x5f1aec=_0x30a991['getSuggestion'](_0x3b6c63);_0x5f1aec['next']&&_0x5f1aec['next']['isInContent']&&(_0x30a991['discardSuggestion'](_0x5f1aec['next']),_0x52d9fc=!0x0);}}}return _0x52d9fc;}),this['_registerLegacyDescription'](_0x4df286);}['_registerLegacyDescription'](_0x23b574){const _0x49b998=this['editor'],_0x465afa=_0x49b998['locale'];_0x49b998['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6d6953=>{if('formatBlock'!=_0x6d6953['type']&&'formatInline'!=_0x6d6953['type'])return;const {data:_0x446c80}=_0x6d6953;if(!_0x446c80||'imageStyle'!=_0x446c80['commandName'])return;const _0x47f187=_0x446c80['commandParams'][0x0]['value'];return _0x1cd8fe('side'===_0x47f187?o(_0x465afa,'FORMAT_SIDE_IMAGE'):_0x23b574[_0x47f187]||_0x47f187);function _0x1cd8fe(_0x59153b){return{'type':'format','content':o(_0x465afa,'*Format:*\x20%0',_0x59153b)};}});}}class ut extends _0x147a49{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x31c0a9){super(_0x31c0a9),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2efeef=this['editor'],_0x54ef35=_0x2efeef['commands']['get']('importWord'),_0x47f8a5=_0x2efeef['commands']['get']('trackChanges');_0x54ef35&&(_0x54ef35['on']('execute',(_0x101378,[,_0x6f90f9])=>{this['_trackChangesValueDuringImport']=_0x47f8a5['value'],_0x6f90f9['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x54ef35,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x54ef35,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x47f8a5['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2efeef['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3fbedc,_0x5a04ef){const {suggestions:_0x59867c}=_0x5a04ef,_0x4ca123=this['editor']['commands']['get']('trackChanges'),_0x43e6af=_0x4ca123['value'];this['_trackChangesValueDuringImport']!==_0x43e6af&&(_0x4ca123['execute'](),this['_trackChangesExecuted']=!0x0),_0x59867c&&_0x59867c['forEach'](({id:_0x546483,type:_0x29a290,author:_0x23f8b2,created_at:_0x307849})=>{const _0x39e4ae={'id':_0x546483,'type':_0x29a290,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x23f8b2,'createdAt':_0x307849?new Date(_0x307849):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x39e4ae);});}}class ft extends _0x147a49{['afterInit'](){const _0x1fb706=this['editor'],_0x2ef9c9=_0x1fb706['plugins']['get']('TrackChangesEditing');if(_0x1fb706['plugins']['has']('IndentEditing')&&(_0x2ef9c9['enableCommand']('indent'),_0x2ef9c9['enableCommand']('outdent')),_0x1fb706['plugins']['has']('IndentBlock')){for(const _0x3113cf of['indentBlock','outdentBlock'])_0x2ef9c9['enableDefaultAttributesIntegration'](_0x3113cf);}const _0x3efa91=_0x1fb706['locale'];_0x2ef9c9['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x3efa91,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb404f8=this['editor'],_0x358437=_0xb404f8['locale'],_0xf4b618=_0xb404f8['plugins']['get']('TrackChangesEditing');_0xf4b618['descriptionFactory']['registerDescriptionCallback'](_0x34be65=>{if('formatBlock'!=_0x34be65['type'])return;const {data:_0x40c97f}=_0x34be65;if(!_0x40c97f)return;if('indentBlock'!=_0x40c97f['commandName']&&'outdentBlock'!=_0x40c97f['commandName'])return;const _0x2d66bd=_0x34be65['getItems']()[0x0],_0x295c5c=_0xf4b618['descriptionFactory']['getItemLabel'](_0x2d66bd);return'indentBlock'==_0x40c97f['commandName']?{'type':'format','content':o(_0x358437,'*Indent:*\x20%0',_0x295c5c)}:'outdentBlock'==_0x40c97f['commandName']?{'type':'format','content':o(_0x358437,'*Outdent:*\x20%0',_0x295c5c)}:void 0x0;});}}class ht extends _0x147a49{static get['requires'](){return[_0x33fae4];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x147a49{['afterInit'](){const _0x1cf90c=this['editor'];if(!_0x1cf90c['plugins']['has']('LinkEditing'))return;const _0x57f906=_0x1cf90c['plugins']['get']('TrackChangesEditing'),_0x2feefb=_0x1cf90c['commands']['get']('link');_0x57f906['enableDefaultAttributesIntegration']('link'),_0x57f906['enableDefaultAttributesIntegration']('unlink');for(const _0x2afd40 of _0x2feefb['manualDecorators'])_0x57f906['descriptionFactory']['registerAttributeLabel'](_0x2afd40['id'],'link\x20('+_0x2afd40['label']['toLowerCase']()+')');_0x57f906['descriptionFactory']['registerDescriptionCallback'](_0x2a7872=>{if('attribute'!=_0x2a7872['type'])return;const {data:_0x1ef72c}=_0x2a7872;if(!_0x1ef72c||'linkHref'!=_0x1ef72c['key'])return;const _0x416b9b=_0x1ef72c['newValue'],_0x5dfafd=_0x1cf90c['locale'];return{'type':'format','content':null==_0x416b9b?o(_0x5dfafd,'*Remove\x20link*'):o(_0x5dfafd,'*Set\x20link:*\x20%0','\x22'+_0x416b9b+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50626e=this['editor'],_0x89f76b=_0x50626e['locale'];_0x50626e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29b21c=>{if('formatInline'!=_0x29b21c['type'])return;const {data:_0x56e7c3}=_0x29b21c;if(_0x56e7c3){if('link'==_0x56e7c3['commandName']){const _0x1b2700=_0x56e7c3['commandParams'][0x0];return{'type':'format','content':o(_0x89f76b,'*Set\x20link:*\x20%0','\x22'+_0x1b2700+'\x22')};}return'unlink'==_0x56e7c3['commandName']?{'type':'format','content':o(_0x89f76b,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x147a49{['afterInit'](){const _0x123c51=this['editor'],_0xb154a2=_0x123c51['locale'];if(!_0x123c51['plugins']['has']('LegacyListEditing'))return;const _0xb7f067=_0x123c51['plugins']['get']('TrackChangesEditing'),_0x4f0388=_0x123c51['plugins']['has']('LegacyTodoListEditing');function _0x408eb5(_0x43cd07){return()=>{const _0x45128d=_0x123c51['model']['document']['selection'],_0x574896=_0x123c51['commands']['get'](_0x43cd07);if(_0x574896['value'])return void _0x123c51['execute']('paragraph',{});const _0x806c52=_0x43cd07['slice'](0x0,-0x4),_0x45b5fc=function(_0x5ab7f0,_0x136932,_0x3d87c0){let _0x165cdc=Array['from'](_0x5ab7f0)['filter'](_0x145bd1=>function(_0x522bb4,_0x51a296){return _0x51a296['checkChild'](_0x522bb4['parent'],'listItem')&&!_0x51a296['isObject'](_0x522bb4);}(_0x145bd1,_0x3d87c0));_0x165cdc=_0x165cdc['filter'](_0x3fbbc0=>!_0x3fbbc0['is']('element','listItem')||_0x3fbbc0['getAttribute']('listType')!=_0x136932);const _0x262caf=new Set();for(const _0x3ea985 of _0x165cdc)_0x3ea985['is']('element','listItem')?_0x262caf['add'](Le(_0x3ea985)):_0x262caf['add'](_0x3ea985);return Array['from'](_0x262caf);}(_0x45128d['getSelectedBlocks'](),_0x806c52,_0x123c51['model']['schema']);_0x123c51['model']['change'](()=>{for(const _0x56f6ed of _0x45b5fc)_0xb7f067['markBlockFormat'](_0x56f6ed,{'commandName':_0x43cd07,'commandParams':[{'forceValue':!_0x574896['value']}],'formatGroupId':'blockName'},Ee(_0x56f6ed));});};}function _0x5d29d2(_0x548d4a){return()=>{const _0x25fe93=function(_0x3c4ba0){let _0x322d35=Array['from'](_0x3c4ba0);const _0x5166d2=_0x322d35['findIndex'](_0x426b11=>'listItem'!=_0x426b11['name']);return _0x5166d2>-0x1&&(_0x322d35=_0x322d35['slice'](0x0,_0x5166d2)),_0x322d35;}(_0x123c51['model']['document']['selection']['getSelectedBlocks']()),_0x2ed95e=_0x123c51['model']['createRange'](_0x123c51['model']['createPositionAt'](_0x25fe93[0x0],'before'),_0x123c51['model']['createPositionAt'](_0x25fe93[_0x25fe93['length']-0x1],'end'));_0x123c51['model']['change'](()=>{_0xb7f067['markBlockFormat'](_0x2ed95e,{'commandName':_0x548d4a,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3e6164){const _0x4d06b0=new Set();for(const _0x5c38a3 of _0x3e6164){let _0x300563=_0x5c38a3['nextSibling'];for(;_0x300563&&_0x300563['getAttribute']('listIndent')>_0x5c38a3['getAttribute']('listIndent');)_0x4d06b0['add'](_0x300563),_0x300563=_0x300563['nextSibling'];}return Array['from'](_0x4d06b0);}(_0x25fe93));});};}_0xb7f067['enableCommand']('numberedList',_0x408eb5('numberedList')),_0xb7f067['enableCommand']('bulletedList',_0x408eb5('bulletedList')),_0x4f0388&&_0xb7f067['enableCommand']('todoList',_0x408eb5('todoList')),_0xb7f067['enableCommand']('indentList',_0x5d29d2('indentList')),_0xb7f067['enableCommand']('outdentList',_0x5d29d2('outdentList')),_0x4f0388&&_0xb7f067['enableCommand']('checkTodoList',()=>{const _0xf07414=_0x123c51['commands']['get']('checkTodoList'),_0x1f780f=Array['from'](_0xf07414['_selectedElements']);_0x1f780f['filter'](_0x82e82b=>_0x82e82b['getAttribute']('todoListChecked')!=_0xf07414['value']),_0x123c51['model']['change'](()=>{for(const _0x4fbf5b of _0x1f780f)_0xb7f067['markBlockFormat'](_0x4fbf5b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xf07414['value']}]});});}),_0xb7f067['descriptionFactory']['registerElementLabel']('listItem',_0xe09c6=>o(_0xb154a2,'ELEMENT_LIST_ITEM',_0xe09c6)),_0xb7f067['descriptionFactory']['registerDescriptionCallback'](_0x5c1155=>{if('formatBlock'!=_0x5c1155['type']&&'formatInline'!=_0x5c1155['type'])return;const {data:_0x258bdc}=_0x5c1155;if(_0x258bdc){if('numberedList'==_0x258bdc['commandName']||'bulletedList'==_0x258bdc['commandName']||'todoList'==_0x258bdc['commandName'])switch(_0x258bdc['commandName']['replace']('List','')){case'bulleted':return _0xaa0fe3(o(_0xb154a2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xaa0fe3(o(_0xb154a2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xaa0fe3(o(_0xb154a2,'ELEMENT_TODO_LIST'));}if('indentList'==_0x258bdc['commandName'])return{'type':'format','content':o(_0xb154a2,'*Indent:*\x20%0',o(_0xb154a2,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x258bdc['commandName'])return{'type':'format','content':o(_0xb154a2,'*Outdent:*\x20%0',o(_0xb154a2,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x258bdc['commandName'])return _0x258bdc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb154a2,'*Check\x20item*')}:{'type':'format','content':o(_0xb154a2,'*Uncheck\x20item*')};}function _0xaa0fe3(_0x846e81){return{'type':'format','content':o(_0xb154a2,'*Change\x20to:*\x20%0',_0x846e81)};}});}}function Le(_0x520ee9){const _0x1558a3=_0x520ee9['getAttribute']('listIndent');if(0x0==_0x1558a3)return _0x520ee9;let _0x1a5226=_0x520ee9;for(;_0x520ee9['previousSibling']&&_0x520ee9['previousSibling']['is']('element','listItem');){const _0x406637=_0x520ee9['previousSibling']['getAttribute']('listIndent');if(_0x406637==_0x1558a3)_0x1a5226=_0x520ee9['previousSibling'];else{if(_0x406637<_0x1558a3)break;}_0x520ee9=_0x520ee9['previousSibling'];}return _0x1a5226;}function Ee(_0x1ef5f5){const _0x4bc401=[];if(_0x1ef5f5['is']('element','listItem')&&_0x1ef5f5['getAttribute']('listIndent')>0x0){let _0x4d4869=_0x1ef5f5['nextSibling'];for(;_0x4d4869&&'listItem'==_0x4d4869['name']&&_0x4d4869['getAttribute']('listIndent')==_0x1ef5f5['getAttribute']('listIndent');)_0x4bc401['push'](_0x4d4869),_0x4d4869=_0x4d4869['nextSibling'];}return _0x4bc401;}class mt extends _0x147a49{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x50069b=this['editor']['config']['get']('list.properties'),_0x16e54a=this['editor']['plugins']['get']('TrackChangesEditing');_0x50069b['styles']&&_0x16e54a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x50069b['reversed']&&_0x16e54a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x50069b['startIndex']&&_0x16e54a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x16e54a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5c81df,_0x1f46fe={}){const _0x620936=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e7731=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x620936['markMultiRangeBlockFormat'](_0x2e7731,{'commandName':'listStyle','commandParams':[{'type':_0x1f46fe['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2457a9,_0x102801={}){const _0x15e165=this['editor']['plugins']['get']('TrackChangesEditing'),_0x58027e=this['_getSuggestionBlocks'](_0x2f66c3=>_0x2f66c3['is']('element','listItem')&&'numbered'===_0x2f66c3['getAttribute']('listType'));if(_0x58027e['length']<0x1)return;const _0x41ce7c=_0x58027e['map'](_0x3a4813=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3a4813,'before'),this['editor']['model']['createPositionAt'](_0x3a4813,0x0)));this['editor']['model']['change'](()=>{_0x15e165['markMultiRangeBlockFormat'](_0x41ce7c,{'commandName':'listReversed','commandParams':[{'reversed':_0x102801['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2a38a3,_0x36c689={}){const _0x1b5bdb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c3e84=this['_getSuggestionBlocks'](_0x6bb9e8=>_0x6bb9e8['is']('element','listItem')&&'numbered'===_0x6bb9e8['getAttribute']('listType'));if(_0x5c3e84['length']<0x1)return;const _0x190b1e=_0x5c3e84['map'](_0x164ce0=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x164ce0,'before'),this['editor']['model']['createPositionAt'](_0x164ce0,0x0)));this['editor']['model']['change'](()=>{_0x1b5bdb['markMultiRangeBlockFormat'](_0x190b1e,{'commandName':'listStart','commandParams':[{'startIndex':_0x36c689['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1048c1){if('formatBlock'!=_0x1048c1['type']&&'formatInline'!=_0x1048c1['type'])return;const _0x1fab8e=this['editor']['locale'],{data:_0x1c1092}=_0x1048c1;if(!_0x1c1092)return;let _0x2e3e23,_0x5108ad;switch(_0x1c1092['commandName']){case'listStyle':_0x2e3e23='*Change\x20to:*\x20%0',_0x5108ad={'type':'format','content':o(_0x1fab8e,_0x2e3e23,o(_0x1fab8e,this['_getTranslationKeyForListStyle'](_0x1c1092['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2e3e23=_0x1c1092['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5108ad={'type':'format','content':o(_0x1fab8e,_0x2e3e23)};break;case'listStart':_0x2e3e23='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5108ad={'type':'format','content':o(_0x1fab8e,_0x2e3e23,_0x1c1092['commandParams'][0x0]['startIndex'])};}return _0x5108ad;}['_getSuggestionBlocksForListStyle'](){const _0x3a9138=this['editor']['plugins']['get']('LegacyListUtils');let _0x239d8f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x239d8f[0x0]?.['is']('element','listItem')&&_0x239d8f['unshift'](..._0x3a9138['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x239d8f[_0x239d8f['length']-0x1]?.['is']('element','listItem')&&_0x239d8f['push'](..._0x3a9138['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x239d8f=[...new Set(_0x239d8f)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x239d8f=_0x239d8f['filter'](_0x2a7dc0=>_0x2a7dc0['is']('element','listItem'))),_0x239d8f;}['_getSuggestionBlocks'](_0x55736b){const _0x44b48a=this['editor']['plugins']['get']('LegacyListUtils');let _0x487405=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x55736b)['map'](_0x51f7e7=>{const _0x534ff5=this['editor']['model']['createPositionAt'](_0x51f7e7,0x0);return[..._0x44b48a['getSiblingNodes'](_0x534ff5,'backward'),..._0x44b48a['getSiblingNodes'](_0x534ff5,'forward')];})['flat']();return _0x487405=[...new Set(_0x487405)],_0x487405;}['_getTranslationKeyForListStyle'](_0x22456b){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x22456b)||'default')['toUpperCase']()+'_LIST_'+_0x22456b['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x147a49{['afterInit'](){const _0x31a1a4=this['editor'];if(!_0x31a1a4['plugins']['has']('MediaEmbedEditing'))return;const _0x39bacb=_0x31a1a4['plugins']['get']('TrackChangesEditing'),_0x58b9fc=_0x31a1a4['locale'];_0x39bacb['enableCommand']('mediaEmbed'),_0x39bacb['descriptionFactory']['registerElementLabel']('media',_0x2442bb=>o(_0x58b9fc,'ELEMENT_MEDIA',_0x2442bb));}}class pt extends _0x147a49{['afterInit'](){const _0x1ae931=this['editor'];_0x1ae931['plugins']['has']('MentionEditing')&&_0x1ae931['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x147a49{['afterInit'](){const _0x2f66c7=this['editor'];if(!_0x2f66c7['plugins']['has']('MergeFieldsEditing'))return;const _0x24b85a=_0x2f66c7['plugins']['get']('TrackChangesEditing'),_0x133163=_0x2f66c7['locale'];_0x24b85a['enableCommand']('insertMergeField'),_0x24b85a['enableCommand']('insertMergeFieldBlock'),_0x24b85a['enableCommand']('insertMergeFieldImage'),_0x24b85a['descriptionFactory']['registerElementLabel']('mergeField',_0x7b04b5=>o(_0x133163,'ELEMENT_MERGE_FIELD',_0x7b04b5)),_0x24b85a['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x14dc83=>o(_0x133163,'ELEMENT_MERGE_FIELD',_0x14dc83)),_0x24b85a['descriptionFactory']['registerDescriptionCallback'](_0x164bbd=>{if('insertion'!=_0x164bbd['type']&&'deletion'!=_0x164bbd['type'])return;const _0x5d6e3f=_0x164bbd['getContainedElement']();if(null==_0x5d6e3f)return;const _0x463852=_0x2f66c7['plugins']['get']('MergeFieldsEditing');let _0x3475c9;switch(_0x463852['getMergeFieldType'](_0x5d6e3f)){case null:return;case'image':{const _0x17d2de=_0x463852['unwrapAffixes'](_0x5d6e3f['getAttribute']('src'));_0x3475c9=_0x463852['getLabel'](_0x17d2de)||_0x17d2de;break;}default:{const _0x44739c=_0x5d6e3f['getAttribute']('id');_0x3475c9=_0x463852['getLabel'](_0x44739c)||_0x44739c;break;}}return'insertion'==_0x164bbd['type']?{'type':'insertion','content':o(_0x133163,'*Insert:*\x20%0','\x22'+_0x3475c9+'\x22\x20'+o(_0x133163,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x133163,'*Remove:*\x20%0','\x22'+_0x3475c9+'\x22\x20'+o(_0x133163,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x147a49{['afterInit'](){const _0x46c42e=this['editor'],_0x5ac04c=_0x46c42e['plugins']['get']('TrackChangesEditing');_0x46c42e['plugins']['has']('MultiLevelList')&&(_0x5ac04c['enableDefaultAttributesIntegration']('multiLevelList'),_0x5ac04c['descriptionFactory']['registerDescriptionCallback'](_0x2ccc89=>this['handleDescriptions'](_0x2ccc89)));}['handleDescriptions'](_0x324e61){const _0xac0514=this['editor']['locale'],{data:_0x22ee1b}=_0x324e61,_0x581215={'type':'format','content':''};if(_0x22ee1b&&'listMarkerStyle'==_0x22ee1b['key']){if(!_0x22ee1b['oldValue'])return{'type':'format','content':o(_0xac0514,'*Set\x20format:*\x20%0',o(_0xac0514,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x22ee1b['newValue']+')'};if(!_0x22ee1b['newValue']){let _0x27e373=_0x324e61['head'];for(;_0x27e373;){if(_0x27e373['data']&&'listType'==_0x27e373['data']['key']&&_0x27e373['data']['newValue'])return _0x581215;_0x27e373=_0x27e373['next'];}return{'type':'format','content':o(_0xac0514,'*Remove\x20format:*\x20%0',o(_0xac0514,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x22ee1b['oldValue']+')'};}}}}class bt extends _0x147a49{['afterInit'](){const _0x66ec6c=this['editor'];if(!_0x66ec6c['plugins']['has']('PageBreakEditing'))return;_0x66ec6c['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4c9cd3=_0x66ec6c['plugins']['get']('TrackChangesEditing'),_0x300f0b=_0x66ec6c['locale'];_0x4c9cd3['descriptionFactory']['registerElementLabel']('pageBreak',_0x2032bc=>o(_0x300f0b,'ELEMENT_PAGE_BREAK',_0x2032bc));}}class yt extends _0x147a49{['afterInit'](){const _0x4f8ad9=this['editor'];if(!_0x4f8ad9['plugins']['has']('Paragraph'))return;const _0x131c67=_0x4f8ad9['locale'],_0x1e0270=_0x4f8ad9['plugins']['get']('TrackChangesEditing');_0x1e0270['descriptionFactory']['registerElementLabel']('paragraph',_0x3d8daa=>o(_0x131c67,'ELEMENT_PARAGRAPH',_0x3d8daa)),_0x1e0270['enableDefaultAttributesIntegration']('paragraph'),_0x1e0270['enableCommand']('insertParagraph');const _0x3e426d=_0x1e0270['descriptionFactory'];_0x3e426d['registerDescriptionCallback'](_0x495ecd=>{if('insertion'!==_0x495ecd['type'])return;const {start:_0x1d4a41,end:_0x2d965e}=_0x495ecd['getFirstRange']();if(!_0x1d4a41['isTouching'](_0x2d965e)||!_0x1d4a41['nodeAfter'])return;const _0x2f49ce=_0x4f8ad9['model']['schema'],_0x1da1aa=_0x1d4a41['nodeAfter'];return _0x2f49ce['isBlock'](_0x1da1aa)&&!_0x2f49ce['isLimit'](_0x1da1aa)&&_0x2f49ce['checkChild'](_0x1da1aa,'$text')?{'type':'insertion','content':o(_0x131c67,'*Insert:*\x20%0',_0x3e426d['getItemLabel'](_0x1da1aa,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9b9314=this['editor'],_0x5b8e4c=_0x9b9314['locale'];_0x9b9314['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x599af4=>{if('formatBlock'!=_0x599af4['type'])return;const {data:_0x4f8c0d}=_0x599af4;return _0x4f8c0d&&'paragraph'==_0x4f8c0d['commandName']?{'type':'format','content':o(_0x5b8e4c,'*Change\x20to:*\x20%0',o(_0x5b8e4c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x147a49{['afterInit'](){const _0x18f97c=this['editor'];_0x18f97c['commands']['get']('replaceSource')&&_0x18f97c['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x147a49{['afterInit'](){const _0xb231b4=this['editor'];if(!_0xb231b4['plugins']['has']('RemoveFormatEditing'))return;_0xb231b4['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53e7aa=this['editor'];_0x53e7aa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4663aa=>{if('formatBlock'!=_0x4663aa['type']&&'formatInline'!=_0x4663aa['type'])return;const {data:_0x3f8f42}=_0x4663aa;return _0x3f8f42&&'removeFormat'==_0x3f8f42['commandName']?{'type':'format','content':o(_0x53e7aa['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x147a49{['afterInit'](){const _0x528391=this['editor'];if(!_0x528391['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x582c78=_0x528391['plugins']['get']('TrackChangesEditing');_0x582c78['enableCommand']('goToPreviousRestrictedEditingException'),_0x582c78['enableCommand']('goToNextRestrictedEditingException');const _0xf57a77=_0x528391['plugins']['get']('RestrictedEditingModeEditing');_0xf57a77['enableCommand']('trackChanges'),_0xf57a77['enableCommand']('acceptSuggestion'),_0xf57a77['enableCommand']('discardSuggestion'),_0xf57a77['enableCommand']('acceptAllSuggestions'),_0xf57a77['enableCommand']('discardAllSuggestions'),_0xf57a77['enableCommand']('acceptSelectedSuggestions'),_0xf57a77['enableCommand']('discardSelectedSuggestions');}}class At extends _0x147a49{['afterInit'](){const _0x3bcffb=this['editor'];if(!_0x3bcffb['plugins']['has']('ShiftEnter'))return;const _0x5c3f93=_0x3bcffb['plugins']['get']('TrackChangesEditing');_0x5c3f93['enableCommand']('shiftEnter'),_0x5c3f93['descriptionFactory']['registerElementLabel']('softBreak',_0x5be092=>o(_0x3bcffb['locale'],'ELEMENT_LINE_BREAK',_0x5be092));}}function an(_0x1ea5fa,_0x417676,_0x468a99){const _0x1f109d=[];for(const _0x426dff of _0x417676['getItems']())_0x426dff['hasAttribute'](_0x1ea5fa)&&_0x1f109d['push'](_0x468a99['createRangeOn'](_0x426dff));return _0x1f109d;}class _t extends _0x147a49{['afterInit'](){this['editor']['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand']());}['_enableEditingExceptionCommand'](){const _0x449697=this['editor'],_0x301502=_0x449697['model'],_0x15ec3a=_0x449697['locale'],_0x6ad0df=_0x449697['plugins']['get']('TrackChangesEditing'),_0x34dad3='restrictedEditingException',_0x3e9f0c=_0x449697['commands']['get'](_0x34dad3);_0x6ad0df['enableCommand'](_0x34dad3,(_0x35d486,_0x23a2f5={})=>{const _0x53f83f=_0x301502['document']['selection'];if(_0x53f83f['isCollapsed'])return void _0x35d486(_0x23a2f5);const _0x22dea6=void 0x0!==_0x23a2f5['forceValue']?_0x23a2f5['forceValue']:!_0x3e9f0c['value'];_0x301502['change'](()=>{const _0x2d35e9=Array['from'](_0x53f83f['getRanges']());for(const _0x4dd257 of _0x2d35e9){const _0x2627db=_0x22dea6?[_0x4dd257]:an(_0x34dad3,_0x4dd257,_0x301502);for(const _0x25e8d5 of _0x2627db)_0x6ad0df['markInlineFormat'](_0x25e8d5,{'commandName':_0x34dad3,'commandParams':[{'forceValue':_0x22dea6}]});}});}),_0x6ad0df['descriptionFactory']['registerDescriptionCallback'](_0x5a8502=>{if('formatBlock'!=_0x5a8502['type']&&'formatInline'!=_0x5a8502['type'])return;const {data:_0x176ffe}=_0x5a8502;return _0x176ffe&&_0x176ffe['commandName']==_0x34dad3?_0x176ffe['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x15ec3a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x15ec3a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x16ddbb=this['editor'],_0x54b803=_0x16ddbb['locale'],_0x1b1717=_0x16ddbb['plugins']['get']('TrackChangesEditing'),_0x458bd6='restrictedEditingExceptionBlock',_0x17e10a=this['editor']['commands']['get'](_0x458bd6);_0x1b1717['enableCommand'](_0x458bd6,(_0x869533,_0x1a33fc={})=>{const _0x447bdd=this['editor']['model']['document']['selection'],_0x26e00e=_0x1a33fc&&void 0x0!==_0x1a33fc['forceValue']?_0x1a33fc['forceValue']:!_0x17e10a['value'];let _0xba9e61=[];if(_0x26e00e){const _0x9a2c34=Array['from'](_0x447bdd['getSelectedBlocks']())['filter'](_0x67b0fb=>function(_0x1cc3d6){return!!_0x1cc3d6['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x67b0fb)||function(_0x1f311e,_0x1e3ef3){const _0x170d69=_0x1e3ef3['createContext'](_0x1f311e['parent']);if(!_0x1e3ef3['checkChild'](_0x170d69,'restrictedEditingException'))return!0x1;if(!_0x1e3ef3['checkChild'](_0x170d69['push']('restrictedEditingException'),_0x1f311e))return!0x1;return!0x0;}(_0x67b0fb,this['editor']['model']['schema']));_0xba9e61=to(_0x9a2c34,_0x16ddbb['model']);}else{const _0x909201=Array['from'](_0x447bdd['getSelectedBlocks']())['map'](_0x3e62d5=>function(_0x373c75){let _0xc2fe5b=_0x373c75;for(;_0xc2fe5b['parent'];){if('restrictedEditingException'==_0xc2fe5b['parent']['name'])return _0xc2fe5b;_0xc2fe5b=_0xc2fe5b['parent'];}return null;}(_0x3e62d5))['filter'](_0x306b26=>!!_0x306b26);_0xba9e61=to(_0x909201,_0x16ddbb['model']);}_0x16ddbb['model']['change'](()=>{for(const _0x3ec5e3 of _0xba9e61)_0x1b1717['markBlockFormat'](_0x3ec5e3,{'commandName':_0x458bd6,'commandParams':[{'forceValue':_0x26e00e}]});});}),_0x1b1717['descriptionFactory']['registerDescriptionCallback'](_0x4ec456=>{const {data:_0x21ed69}=_0x4ec456;if(_0x21ed69&&_0x21ed69['commandName']==_0x458bd6)return _0x21ed69['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x54b803,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x54b803,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x147a49{['afterInit'](){const _0xfc3295=this['editor'];if(!_0xfc3295['plugins']['has']('Style')||!_0xfc3295['plugins']['has']('DataSchema'))return;const _0x232841=_0xfc3295['plugins']['get']('TrackChangesEditing'),_0x212110=_0xfc3295['locale'],_0x49de0c=_0xfc3295['config']['get']('style')||{},_0x1fb1ba=_0xfc3295['plugins']['get']('GeneralHtmlSupport'),_0x365894=_0xfc3295['plugins']['get']('StyleUtils')['normalizeConfig'](_0xfc3295['plugins']['get']('DataSchema'),_0x49de0c['definitions']);_0x232841['enableDefaultAttributesIntegration']('style');const _0xda8a6e=new Set();for(const _0x4c4d2e of _0x365894['block']){const _0x26a7f1=_0x1fb1ba['getGhsAttributeNameForElement'](_0x4c4d2e['element']);_0xda8a6e['add'](_0x26a7f1);}const _0x43cd96=new Set();for(const _0x11ff47 of _0x365894['inline']){const _0x26dba5=_0x1fb1ba['getGhsAttributeNameForElement'](_0x11ff47['element']);_0x43cd96['add'](_0x26dba5);for(const _0x552e94 of _0x11ff47['ghsAttributes'])_0x43cd96['add'](_0x552e94);}for(const _0x9e02de of _0xda8a6e)_0x232841['descriptionFactory']['registerAttributeLabel'](_0x9e02de,o(_0x212110,'FORMAT_STYLE'));for(const _0x67d684 of _0x43cd96)_0x232841['descriptionFactory']['registerAttributeLabel'](_0x67d684,o(_0x212110,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a535f=this['editor'],_0xe3f75a=_0x5a535f['locale'];_0x5a535f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3784ff=>{if('formatBlock'!=_0x3784ff['type']&&'formatInline'!=_0x3784ff['type'])return;const {data:_0xa4318e}=_0x3784ff;return _0xa4318e&&'style'===_0xa4318e['commandName']?_0xa4318e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xe3f75a,'*Set\x20format:*\x20%0',_0xa4318e['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xe3f75a,'*Remove\x20format:*\x20%0',_0xa4318e['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x147a49{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x9133a){super(_0x9133a),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x145556=this['editor'],_0x2479d9=_0x145556['model']['document']['selection'];if(!_0x145556['plugins']['has']('TableEditing'))return;const _0x2d5dfa=_0x145556['locale'],_0x5508e1=_0x145556['plugins']['get']('TrackChangesEditing'),_0x2e234d=_0x145556['plugins']['get']('TableUtils');_0x5508e1['descriptionFactory']['registerElementLabel']('table',_0x151375=>o(_0x2d5dfa,'ELEMENT_TABLE',_0x151375)),this['_setupColumnsRowsFixing'](),_0x5508e1['enableCommand']('insertTable'),_0x5508e1['enableCommand']('selectTableRow'),_0x5508e1['enableCommand']('selectTableColumn');for(const _0x5da8b2 of['insertTableRowAbove','insertTableRowBelow']){const _0x5c2b9e=_0x145556['commands']['get'](_0x5da8b2);_0x5508e1['enableCommand'](_0x5da8b2,_0x3453ed=>{_0x145556['model']['change'](_0x5f34e4=>{_0x3453ed();const _0x2be90e='above'===_0x5c2b9e['order'],_0x1d04fa=_0x2e234d['getSelectionAffectedTableCells'](_0x2479d9),_0xe2c56e=_0x2e234d['getRowIndexes'](_0x1d04fa),_0x3bf592=_0x2be90e?_0xe2c56e['first']-0x1:_0xe2c56e['last']+0x1,_0x52f1ac=_0x1d04fa[0x0]['findAncestor']('table'),_0x24d3e4=_0x2e234d['createTableWalker'](_0x52f1ac,{'startRow':_0x3bf592,'endRow':_0x3bf592}),_0x8f8748=Array['from'](_0x24d3e4)['map'](_0x40ec15=>_0x5f34e4['createRangeOn'](_0x40ec15['cell']));_0x5508e1['markMultiRangeInsertion'](_0x8f8748,'tableRow');});});}for(const _0x1d0ee9 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5b50d8=_0x145556['commands']['get'](_0x1d0ee9);_0x5508e1['enableCommand'](_0x1d0ee9,_0x257203=>{_0x145556['model']['change'](_0x5796ff=>{_0x257203();const _0x1b738a='left'===_0x5b50d8['order'],_0x3371d=_0x2e234d['getSelectionAffectedTableCells'](_0x2479d9),_0x4252e0=_0x2e234d['getColumnIndexes'](_0x3371d),_0x498e3e=_0x1b738a?_0x4252e0['first']-0x1:_0x4252e0['last']+0x1,_0x4576b4=_0x3371d[0x0]['findAncestor']('table'),_0x491764=_0x2e234d['createTableWalker'](_0x4576b4,{'startRow':0x0,'column':_0x498e3e,'includeAllSlots':!0x1}),_0x1831bf=Array['from'](_0x491764)['map'](_0x2a0c24=>_0x5796ff['createRangeOn'](_0x2a0c24['cell']));_0x5508e1['markMultiRangeInsertion'](_0x1831bf,'tableColumn');});});}for(const _0x499fee of['removeTableRow','removeTableColumn']){const _0x5140d7=_0x499fee['substr'](0xb),_0x2356ba=_0x5140d7['toLowerCase'](),_0x18fa1d=_0x2356ba['substr'](0x0,0x3)+'span',_0x1f1fa7='table'+_0x5140d7,_0x48e71e='min'+_0x5140d7,_0xe5ae5a='max'+_0x5140d7;_0x5508e1['enableCommand'](_0x499fee,()=>{_0x145556['model']['change'](_0x3a5369=>{const _0x25b5b0=_0x2e234d['getSelectionAffectedTableCells'](_0x2479d9),_0x35b7f7=_0x25b5b0[0x0]['findAncestor']('table');let _0x1d1dbe;if('removeTableRow'==_0x499fee){const _0x907d98=_0x2e234d['getRowIndexes'](_0x25b5b0);_0x1d1dbe={'startRow':_0x907d98['first'],'endRow':_0x907d98['last'],'includeAllSlots':!0x0};}else{const _0x448659=_0x2e234d['getColumnIndexes'](_0x25b5b0);_0x1d1dbe={'startColumn':_0x448659['first'],'endColumn':_0x448659['last'],'includeAllSlots':!0x0};}const _0x57339c=_0x2e234d['createTableWalker'](_0x35b7f7,_0x1d1dbe),_0xb0b083=Array['from'](_0x57339c)['map'](({cell:_0x1c6bbd})=>_0x1c6bbd),_0x5c734c=_e(_0xb0b083['filter'](_0x44d99b=>_0x44d99b['hasAttribute'](_0x18fa1d))),_0xb95aaa=_e(_0xb0b083['filter'](_0x90c852=>!_0x90c852['hasAttribute'](_0x18fa1d)))['map'](_0x19f539=>_0x3a5369['createRangeOn'](_0x19f539)),_0x298fe7=_0x5508e1['markMultiRangeDeletion'](_0xb95aaa,_0x1f1fa7);if(_0x298fe7&&('tableRow'==_0x298fe7['subType']||'tableColumn'==_0x298fe7['subType'])){const _0x20821f=this['_getSuggestionCoords'](_0x298fe7);for(const _0x401ff8 of _0x5c734c){const _0x2f74a9=_0x3a5369['createRangeOn'](_0x401ff8),_0x1316af=_0x2e234d['getCellLocation'](_0x401ff8),_0x30ae4a=_0x401ff8['getAttribute'](_0x18fa1d)-0x1,_0x2112d0=_0x20821f[_0x48e71e],_0x24fd44=_0x20821f[_0xe5ae5a];_0x2112d0<=_0x1316af[_0x2356ba]&&_0x1316af[_0x2356ba]+_0x30ae4a<=_0x24fd44&&_0x298fe7['addRange'](_0x2f74a9);}}});});}function _0x2521e9(_0x4184fe){const _0x2eeb84=Array['from'](_0x2479d9['getRanges']())['map'](_0x6ceadd=>_0x468db3['fromRange'](_0x6ceadd));_0x145556['model']['change'](_0x4e0b5f=>{const _0xcdf39d=_0x4e0b5f['batch'];_0x4184fe=_0x4184fe['filter'](_0x55d3e8=>'$graveyard'!=_0x55d3e8['root']['rootName']),_0x4e0b5f['setSelection'](_0x4184fe),_0x145556['commands']['get']('removeTableRow')['refresh'](),_0x145556['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x145556['model']['enqueueChange'](()=>{_0x145556['model']['enqueueChange'](_0xcdf39d,_0x277676=>{const _0x24a7f9=_0x2eeb84['filter'](_0x52a8cc=>'$graveyard'!=_0x52a8cc['root']['rootName']);_0x24a7f9['length']>0x0&&_0x277676['setSelection'](_0x24a7f9);for(const _0x2d52b8 of _0x2eeb84)_0x2d52b8['detach']();});});});}function _0x48e3e3(_0x2ddee0){_0x145556['model']['change'](_0xa219cd=>{const _0x286ebb=Array['from'](_0x2479d9['getRanges']())['map'](_0x1d3740=>_0x468db3['fromRange'](_0x1d3740)),_0x3091f0=[];for(const _0x2b9bbd of _0x2ddee0)for(const _0x537f14 of _0x2b9bbd['getItems']({'shallow':!0x0}))_0x3091f0['push'](_0x537f14);for(const _0xeb2292 of _0x3091f0)'$graveyard'!=_0xeb2292['root']['rootName']&&(_0xa219cd['setSelection'](_0xa219cd['createPositionAt'](_0xeb2292,0x0)),_0x145556['commands']['get']('removeTableColumn')['refresh'](),_0x145556['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x62cc6=_0x286ebb['filter'](_0x3869a7=>'$graveyard'!=_0x3869a7['root']['rootName']);_0x62cc6['length']>0x0&&_0xa219cd['setSelection'](_0x62cc6);for(const _0x318eba of _0x286ebb)_0x318eba['detach']();});}function _0x49ce2a(_0x53bbde,_0x101dfa){return _0x101dfa['every'](_0x14fdd1=>_0x53bbde['some'](_0x455efc=>_0x455efc['end']['isEqual'](_0x14fdd1['start'])||_0x14fdd1['end']['isEqual'](_0x455efc['start'])));}function _0x5ce785(_0x1d4f10,_0x3520c5){return!_0x1d4f10['some'](_0x47aa11=>_0x3520c5['some'](_0x4cc921=>_0x47aa11['isIntersecting'](_0x4cc921)))&&_0x1d4f10['some'](_0x3ab20a=>_0x3520c5['some'](_0x553cc2=>_0x3ab20a['end']['isTouching'](_0x553cc2['start'])));}_0x5508e1['descriptionFactory']['registerDescriptionCallback'](_0x5734fe=>{if('insertion'!=_0x5734fe['type']&&'deletion'!=_0x5734fe['type'])return;const _0x30da4c=_0x5734fe['getContainedElement']();if(null!=_0x30da4c&&_0x30da4c['is']('element','table')){if('insertion'==_0x5734fe['type']){const _0x3cfdcb=_0x5734fe['getItems']()['filter'](_0x1a7268=>_0x1a7268['is']('$textProxy'))['map'](_0x5012f4=>_0x5012f4['data']);if(_0x3cfdcb['length'])return{'type':'insertion','content':o(_0x2d5dfa,'*Insert:*\x20%0',o(_0x2d5dfa,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3cfdcb['join']('\x20')+'\x22'))};}if('deletion'==_0x5734fe['type']){const _0x4de5e1=_0x5734fe['getItems']()['filter'](_0x3f17e7=>_0x3f17e7['is']('$textProxy'))['map'](_0x209a0c=>_0x209a0c['data']);if(_0x4de5e1['length'])return{'type':'deletion','content':o(_0x2d5dfa,'*Remove:*\x20%0',o(_0x2d5dfa,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4de5e1['join']('\x20')+'\x22'))};}}}),_0x5508e1['descriptionFactory']['registerDescriptionCallback'](_0x5ad242=>{if('tableRow'==_0x5ad242['subType']){const _0x31be6e=_0x5ad242['getItems']()['filter'](_0x4cee74=>_0x4cee74['is']('$textProxy'))['map'](_0x54c0a2=>_0x54c0a2['data']),_0x4ec1c9=this['_getSuggestionCoords'](_0x5ad242),_0x397b77=_0x4ec1c9['maxRow']-_0x4ec1c9['minRow']+0x1;if('insertion'==_0x5ad242['type'])return _0x31be6e['length']?{'type':'insertion','content':o(_0x2d5dfa,'*Insert:*\x20%0',o(_0x2d5dfa,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x397b77,'\x22'+_0x31be6e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2d5dfa,'*Insert:*\x20%0',o(_0x2d5dfa,'ELEMENT_TABLE_ROW',_0x397b77))};if('deletion'==_0x5ad242['type'])return _0x31be6e['length']?{'type':'deletion','content':o(_0x2d5dfa,'*Remove:*\x20%0',o(_0x2d5dfa,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x397b77,'\x22'+_0x31be6e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2d5dfa,'*Remove:*\x20%0',o(_0x2d5dfa,'ELEMENT_TABLE_ROW',_0x397b77))};}if('tableColumn'==_0x5ad242['subType']){const _0x723a89=_0x5ad242['getItems']()['filter'](_0x53674b=>_0x53674b['is']('$textProxy'))['map'](_0x36a4a2=>_0x36a4a2['data']),_0x2ac9ac=this['_getSuggestionCoords'](_0x5ad242),_0x28ad87=_0x2ac9ac['maxColumn']-_0x2ac9ac['minColumn']+0x1;if('insertion'==_0x5ad242['type'])return _0x723a89['length']?{'type':'insertion','content':o(_0x2d5dfa,'*Insert:*\x20%0',o(_0x2d5dfa,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x28ad87,'\x22'+_0x723a89['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2d5dfa,'*Insert:*\x20%0',o(_0x2d5dfa,'ELEMENT_TABLE_COLUMN',_0x28ad87))};if('deletion'==_0x5ad242['type'])return _0x723a89['length']?{'type':'deletion','content':o(_0x2d5dfa,'*Remove:*\x20%0',o(_0x2d5dfa,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x28ad87,'\x22'+_0x723a89['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2d5dfa,'*Remove:*\x20%0',o(_0x2d5dfa,'ELEMENT_TABLE_COLUMN',_0x28ad87))};}}),_0x5508e1['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2521e9),_0x5508e1['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2521e9),_0x5508e1['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x48e3e3),_0x5508e1['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x48e3e3),_0x5508e1['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x49ce2a),_0x5508e1['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x49ce2a),_0x5508e1['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5ce785),_0x5508e1['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5ce785);}['_acceptFormatSuggestionCallbackFactory'](){const _0x22e52a=this['editor'],_0x3aa3fa=_0x22e52a['model']['document']['selection'];return(_0x126a41,_0x4b56ec)=>{_0x22e52a['model']['change'](_0x13d34f=>{const {commandName:_0x1658f7,commandParams:_0x24f30d}=_0x4b56ec;let _0x1a32c0=_0x126a41[0x0]['end']['nodeBefore'];_0x24f30d&&_0x24f30d[0x0]&&!0x1===_0x24f30d[0x0]['forceValue']&&(_0x1a32c0=_0x126a41[0x0]['start']['nodeAfter']);const _0x5bb7e8=_0x13d34f['createRangeIn'](_0x1a32c0);if('$graveyard'==_0x5bb7e8['root']['rootName'])return;const _0x4dd9e7=Array['from'](_0x3aa3fa['getRanges']())['map'](_0x2acc8e=>_0x468db3['fromRange'](_0x2acc8e));_0x13d34f['setSelection'](_0x5bb7e8),_0x22e52a['commands']['get'](_0x1658f7)['refresh'](),_0x24f30d['push']({'forceDefaultExecution':!0x0}),_0x22e52a['execute'](_0x1658f7,..._0x24f30d);const _0x29b3e3=_0x4dd9e7['filter'](_0x375b4a=>'$graveyard'!=_0x375b4a['root']['rootName']);_0x29b3e3['length']>0x0&&_0x13d34f['setSelection'](_0x29b3e3);for(const _0x3b80e7 of _0x4dd9e7)_0x3b80e7['detach']();});};}['_getCoordsForCells'](_0x48fc2a){const _0x46f806=this['editor']['plugins']['get']('TableUtils');let _0x2efc3a=Number['MAX_SAFE_INTEGER'],_0x52e768=Number['MIN_SAFE_INTEGER'],_0x458e73=Number['MAX_SAFE_INTEGER'],_0x1bb0f4=Number['MIN_SAFE_INTEGER'];for(const _0x134067 of _0x48fc2a){if('$graveyard'==_0x134067['root']['rootName'])continue;const {row:_0x31aec9,column:_0x4c5ec5}=_0x46f806['getCellLocation'](_0x134067),_0x2ac7be=_0x134067['hasAttribute']('rowspan')?_0x134067['getAttribute']('rowspan')-0x1:0x0,_0x5655ff=_0x134067['hasAttribute']('colspan')?_0x134067['getAttribute']('colspan')-0x1:0x0;_0x2efc3a=_0x31aec9<_0x2efc3a?_0x31aec9:_0x2efc3a,_0x52e768=_0x31aec9+_0x2ac7be>_0x52e768?_0x31aec9+_0x2ac7be:_0x52e768,_0x458e73=_0x4c5ec5<_0x458e73?_0x4c5ec5:_0x458e73,_0x1bb0f4=_0x4c5ec5+_0x5655ff>_0x1bb0f4?_0x4c5ec5+_0x5655ff:_0x1bb0f4;}return{'minRow':_0x2efc3a,'maxRow':_0x52e768,'minColumn':_0x458e73,'maxColumn':_0x1bb0f4};}['_setupColumnsRowsFixing'](){const _0x50e6d4=this['editor'],_0x5a5b95=_0x50e6d4['plugins']['get']('TrackChangesEditing'),_0x1ad7de=_0x50e6d4['plugins']['get']('TableUtils');_0x50e6d4['model']['document']['on']('change:data',()=>{const _0x3511f6=Array['from'](_0x50e6d4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x394a9,data:_0x1e69a4}of _0x3511f6){const {group:_0x36be1c,id:_0x149522,subType:_0x2aa791}=_0x5a5b95['_splitMarkerName'](_0x394a9);if('suggestion'!=_0x36be1c)continue;if(null!=_0x1e69a4['oldRange'])continue;const _0x4435b0=_0x5a5b95['getSuggestion'](_0x149522);this['_tablePostFixingSubtypes']['includes'](_0x2aa791)&&this['_tableSuggestions']['add'](_0x4435b0);}},{'priority':'low'});const _0x4f5cbf=(_0x4c5c32,_0x5d0398)=>{let _0x4f0310=!0x1;const _0x16e30d=_0x5d0398['createRangeOn'](_0x4c5c32),_0x4fa721=_0x4c5c32['findAncestor']('table'),_0x2b9b82=_0x1ad7de['getCellLocation'](_0x4c5c32);for(const _0x121614 of this['_tableSuggestions']){const _0x11bdf4=_0x121614['subType'],_0x13f31b=_0x11bdf4['startsWith']('tablePaste'),_0x12d7ae=_0x11bdf4['substr'](_0x13f31b?0xa:0x5),_0x8700b1=_0x12d7ae['toLowerCase'](),_0x4b6a87=_0x8700b1['substr'](0x0,0x3)+'span',_0x28ca32='min'+_0x12d7ae,_0x246a3d='max'+_0x12d7ae;if(!_0x121614['isInContent'])continue;if(_0x4fa721!=_0x121614['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x121614['isIntersectingWithRange'](_0x16e30d))continue;const _0x13f475=_0x4c5c32['hasAttribute'](_0x4b6a87)?_0x4c5c32['getAttribute'](_0x4b6a87)-0x1:0x0,_0x4f515f=this['_getSuggestionCoords'](_0x121614),_0x56c9ba=_0x4f515f[_0x28ca32],_0x36bc0e=_0x4f515f[_0x246a3d];_0x56c9ba<=_0x2b9b82[_0x8700b1]&&_0x2b9b82[_0x8700b1]+_0x13f475<=_0x36bc0e&&(_0x121614['addRange'](_0x16e30d),_0x4f0310=!0x0);}return _0x4f0310;};_0x50e6d4['model']['document']['registerPostFixer'](_0xac9b23=>{let _0x377732=!0x1;for(const _0x19127d of _0x50e6d4['model']['document']['differ']['getChanges']())if('insert'==_0x19127d['type']){if('tableRow'==_0x19127d['name']){for(const _0x344c08 of _0x19127d['position']['nodeAfter']['getChildren']())_0x377732=_0x377732||_0x4f5cbf(_0x344c08,_0xac9b23);}else'tableCell'==_0x19127d['name']&&(_0x377732=_0x377732||_0x4f5cbf(_0x19127d['position']['nodeAfter'],_0xac9b23));}return _0x377732;});}['_getSuggestionCoords'](_0x5517f5){return this['_getCoordsForCells'](_0x5517f5['getRanges']()['map'](_0xc78e32=>_0xc78e32['start']['nodeAfter']));}}function _e(_0x390b62){return Array['from'](new Set(_0x390b62)['values']());}class $t extends _0x147a49{static get['requires'](){return[Nt];}['afterInit'](){const _0x330670=this['editor'],_0x56b3b3=_0x330670['model']['document']['selection'],_0x4aaa5e=_0x330670['locale'];if(!_0x330670['plugins']['has']('TableEditing'))return;const _0x391b45=_0x330670['plugins']['get']('TrackChangesEditing'),_0x21555b=_0x330670['plugins']['get']('TableUtils'),_0x54e28d=_0x330670['plugins']['get'](Nt);_0x54e28d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x391b45['enableCommand']('mergeTableCells',()=>{const _0x2b1d00=_0x21555b['getSelectionAffectedTableCells'](_0x330670['model']['document']['selection']);_0x330670['model']['change'](()=>{_0x391b45['markMultiRangeBlockFormat'](_0x2b1d00,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x330670['commands']['get']('mergeTableCells')['on']('execute',(_0x58160d,_0x2fbcca)=>{_0x330670['commands']['get']('trackChanges')['value']&&(_0x2fbcca['length']>0x0&&_0x2fbcca[_0x2fbcca['length']-0x1]&&_0x2fbcca[_0x2fbcca['length']-0x1]['forceDefaultExecution']||_0x391b45['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x58160d['stop']());},{'priority':'highest'});for(const _0x5c7264 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x12fe39=_0x330670['commands']['get'](_0x5c7264);_0x391b45['enableCommand'](_0x5c7264,()=>{const _0x584ab4=_0x330670['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xcfd539=>_0xcfd539['is']('element','tableCell')),_0x5e0682=_0x12fe39['value'];_0x330670['model']['change'](()=>{_0x391b45['markMultiRangeBlockFormat']([_0x584ab4,_0x5e0682],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x282ac2 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1c89da=_0x330670['commands']['get'](_0x282ac2);_0x391b45['enableCommand'](_0x282ac2,()=>{const _0x2d8d94=_0x21555b['getSelectionAffectedTableCells'](_0x330670['model']['document']['selection'])[0x0],_0x10333f=_0x2d8d94['findAncestor']('table'),{column:_0x13cd61,row:_0x39a0f5}=_0x21555b['getCellLocation'](_0x2d8d94);let _0x42a563=[];if('horizontally'==_0x1c89da['direction']){const _0x14be18=_0x21555b['createTableWalker'](_0x10333f,{'startRow':_0x39a0f5,'endRow':_0x39a0f5,'includeAllSlots':!0x0});_0x42a563=Array['from'](_0x14be18)['map'](_0x5bcf0c=>_0x5bcf0c['cell']);}else{const _0x41cea5=_0x21555b['createTableWalker'](_0x10333f,{'column':_0x13cd61,'includeAllSlots':!0x0});_0x42a563=Array['from'](_0x41cea5)['map'](_0x415d10=>_0x415d10['cell']);}_0x330670['model']['change'](_0x5e6d8c=>{_0x391b45['markBlockFormat'](_0x5e6d8c['createRangeOn'](_0x2d8d94),{'commandName':_0x282ac2,'commandParams':[]},_0x42a563,_0x282ac2);});});}_0x391b45['descriptionFactory']['registerDescriptionCallback'](_0x2b5796=>{if('formatBlock'!=_0x2b5796['type']&&'formatInline'!=_0x2b5796['type'])return;const {data:_0x2a6ef5}=_0x2b5796;return _0x2a6ef5&&'mergeTableCells'==_0x2a6ef5['commandName']?{'type':'format','content':o(_0x4aaa5e,'*Merge\x20cells*')}:void 0x0;}),_0x391b45['descriptionFactory']['registerDescriptionCallback'](_0x57e6ec=>{if('formatBlock'!=_0x57e6ec['type']&&'formatInline'!=_0x57e6ec['type'])return;const {data:_0x5ac73b}=_0x57e6ec;return _0x5ac73b?'splitTableCellVertically'==_0x5ac73b['commandName']?{'type':'format','content':o(_0x4aaa5e,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5ac73b['commandName']?{'type':'format','content':o(_0x4aaa5e,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x447479=_0x54e28d['_acceptFormatSuggestionCallbackFactory']();for(const _0x206ca4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x391b45['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x206ca4,'accept',_0x447479);for(const _0x440447 of['splitTableCellVertically','splitTableCellHorizontally'])_0x391b45['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x440447,'accept',_0x447479);_0x391b45['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x34a8b4=>{_0x330670['model']['change'](_0x1dac5b=>{const _0x8705bc=Array['from'](_0x56b3b3['getRanges']())['map'](_0x4ebec3=>_0x468db3['fromRange'](_0x4ebec3));_0x1dac5b['setSelection'](_0x34a8b4),_0x330670['commands']['get']('mergeTableCells')['refresh'](),_0x330670['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x55ce10=_0x8705bc['filter'](_0x5a1c7d=>'$graveyard'!=_0x5a1c7d['root']['rootName']);_0x55ce10['length']>0x0&&_0x1dac5b['setSelection'](_0x55ce10);for(const _0x32cc34 of _0x8705bc)_0x32cc34['detach']();});});for(const _0x53d2a2 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4af244=_0x330670['commands']['get'](_0x53d2a2);_0x4af244['on']('set:isEnabled',(_0x4fec0b,_0x1f9446,_0x387a75)=>{if(_0x387a75){const _0x47d0e3=_0x330670['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x230122=>_0x230122['is']('element','tableCell'));this['_areMergableCells'](_0x4af244['value'],_0x47d0e3)||(_0x4fec0b['return']=!0x1,_0x4fec0b['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x561bbf=this['editor']['commands']['get']('mergeTableCells'),_0x134da1=this['editor']['plugins']['get']('TableUtils');if(!_0x561bbf['isEnabled'])return!0x1;const _0x315ae0=_0x134da1['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1d6af6 of _0x315ae0)for(const _0xabb7be of _0x315ae0)if(_0x1d6af6!=_0xabb7be&&!this['_areMergableCells'](_0x1d6af6,_0xabb7be))return!0x1;return!0x0;}['_areMergableCells'](_0x3d9182,_0x2d0d0c){const _0x429341=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55706b=this['editor']['model']['createRangeOn'](_0x3d9182),_0x421cc7=this['editor']['model']['createRangeOn'](_0x2d0d0c),_0x4086ba=new Set(),_0x186114=new Set();for(const _0x1537f5 of _0x429341['getSuggestions']())if(('insertion'==_0x1537f5['type']||'deletion'==_0x1537f5['type']||'mergeTableCells'==_0x1537f5['subType'])&&_0x1537f5['isInContent']){for(const _0x20943b of _0x1537f5['getRanges']())_0x20943b['containsRange'](_0x55706b,!0x0)&&_0x4086ba['add'](_0x1537f5['type']+':'+_0x1537f5['author']['id']),_0x20943b['containsRange'](_0x421cc7,!0x0)&&_0x186114['add'](_0x1537f5['type']+':'+_0x1537f5['author']['id']);}if(_0x4086ba['size']!=_0x186114['size'])return!0x1;for(const _0x5732af of _0x4086ba)if(!_0x186114['has'](_0x5732af))return!0x1;return!0x0;}}class vt extends _0x147a49{static get['requires'](){return[Nt];}['afterInit'](){const _0x539c7e=this['editor'];if(!_0x539c7e['plugins']['has']('TableEditing'))return;const _0x226738=_0x539c7e['locale'],_0x1b1f91=_0x539c7e['plugins']['get']('TrackChangesEditing');_0x1b1f91['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1b1f91['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1b1f91['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x226738,'FORMAT_HEADER_ROW')),_0x1b1f91['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x226738,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x246928=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd1fe80=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x246928['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xd1fe80),_0x246928['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xd1fe80),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x1612d4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49da43=this['editor']['plugins']['get']('TableUtils');function _0x316ba8({showActiveMarker:_0x3025e2=!0x0,setDataAttribute:_0x18d60f=!0x0}={}){return(_0x2c3df3,_0x56dbfa,_0xc1c264)=>{const {type:_0x43cd7d,id:_0x5de685}=_0x1612d4['_splitMarkerName'](_0x56dbfa['markerName']);if(!_0x1612d4['hasSuggestion'](_0x5de685))return;const _0x5d5980=_0x1612d4['getSuggestion'](_0x5de685),_0x3b81b0=_0x5d5980['data'];if('formatBlock'!=_0x5d5980['type']||!_0x3b81b0||'setTableColumnHeader'!=_0x3b81b0['commandName'])return;if(_0x56dbfa['item'])return void _0x2c3df3['stop']();if(!_0xc1c264['consumable']['consume'](_0x56dbfa['markerRange'],_0x2c3df3['name']))return;const _0x38f7b8=_0x56dbfa['markerRange']['start']['nodeAfter'],_0x4f8568=_0x56dbfa['markerRange']['end']['nodeBefore'],_0x304b94=_0x38f7b8['parent']['parent'],{column:_0x3b7f30}=_0x49da43['getCellLocation'](_0x38f7b8),{column:_0x3bc31c}=_0x49da43['getCellLocation'](_0x4f8568);for(let _0x33b6a5=_0x3b7f30;_0x33b6a5<=_0x3bc31c;_0x33b6a5++){const _0x3b5a0e=_0x49da43['createTableWalker'](_0x304b94,{'column':_0x33b6a5,'includeAllSlots':!0x1});for(const _0x3f12ef of _0x3b5a0e){const _0x2c8f11=_0x3f12ef['cell'],_0x3dc23e=_0xc1c264['mapper']['toViewElement'](_0x2c8f11);_0xc1c264['writer']['addClass']('ck-suggestion-marker-'+_0x43cd7d,_0x3dc23e),_0x18d60f&&_0xc1c264['writer']['setAttribute']('data-suggestion',_0x5de685,_0x3dc23e),_0xc1c264['mapper']['bindElementToMarker'](_0x3dc23e,_0x56dbfa['markerName']),_0x3025e2&&(_0x1612d4['activeMarkers']['includes'](_0x56dbfa['markerName'])?_0xc1c264['writer']['addClass']('ck-suggestion-marker--active',_0x3dc23e):_0xc1c264['writer']['removeClass']('ck-suggestion-marker--active',_0x3dc23e));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x316ba8(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1392dc,_0x59abd6,_0x4c3249)=>{_0x4c3249['options']['showSuggestionHighlights']&&_0x316ba8({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1392dc,_0x59abd6,_0x4c3249);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3dc1ab,_0x4219c3,_0x1acbfe)=>{const {type:_0x2a2fe1,id:_0x30e823}=_0x1612d4['_splitMarkerName'](_0x4219c3['markerName']);if(!_0x1612d4['hasSuggestion'](_0x30e823))return;const _0x29d47d=_0x1612d4['getSuggestion'](_0x30e823),_0x16e7e7=_0x29d47d['data'];if('formatBlock'!=_0x29d47d['type']||!_0x16e7e7||'setTableColumnHeader'!=_0x16e7e7['commandName'])return;const _0x3cf25d=_0x1acbfe['mapper']['markerNameToElements'](_0x4219c3['markerName']);if(_0x3cf25d){for(const _0xc07d62 of _0x3cf25d)_0x1acbfe['writer']['removeClass']('ck-suggestion-marker-'+_0x2a2fe1,_0xc07d62),_0x1acbfe['writer']['removeClass']('ck-suggestion-marker--active',_0xc07d62),_0x1acbfe['writer']['removeAttribute']('data-suggestion',_0xc07d62),_0x1acbfe['mapper']['unbindElementFromMarkerName'](_0xc07d62,_0x4219c3['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x12c603=this['editor'],_0x46d294=_0x12c603['locale'];function _0x233aa7(_0x2ea403){return{'type':'format','content':o(_0x46d294,'*Format:*\x20%0',_0x2ea403)};}_0x12c603['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30a471=>{if('formatBlock'!=_0x30a471['type'])return;const {data:_0x37fecd}=_0x30a471;if(_0x37fecd){if('setTableRowHeader'==_0x37fecd['commandName']){const _0x448b0d=_0x37fecd['commandParams'][0x0]['forceValue'];return _0x233aa7(o(_0x46d294,_0x448b0d?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x37fecd['commandName']){const _0x40306d=_0x37fecd['commandParams'][0x0]['forceValue'];return _0x233aa7(o(_0x46d294,_0x40306d?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x147a49{['afterInit'](){const _0x4bd377=this['editor'],_0x2c925d=_0x4bd377['locale'],_0x4ae038=_0x4bd377['plugins']['get']('TrackChangesEditing');function _0x2fc84b(_0x561359){return{'type':'format','content':''+o(_0x2c925d,'*Set\x20table\x20type:*\x20%0',_0x561359)};}_0x4bd377['plugins']['has']('TableLayout')&&(_0x4ae038['enableCommand']('insertTableLayout'),_0x4ae038['enableDefaultAttributesIntegration']('tableType'),_0x4ae038['descriptionFactory']['registerElementLabel'](_0x28d092=>_0x28d092['is']('element','table')&&'layout'===_0x28d092['getAttribute']('tableType'),_0x5e0d43=>o(_0x2c925d,'ELEMENT_LAYOUT_TABLE',_0x5e0d43)),_0x4ae038['descriptionFactory']['registerDescriptionCallback'](_0x458a28=>{const {data:_0x179b55}=_0x458a28;if(_0x179b55&&'tableType'==_0x179b55['key'])switch(_0x179b55['newValue']){case'layout':return _0x2fc84b(o(_0x2c925d,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x2fc84b(o(_0x2c925d,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Re['map'](_0x5f06c8=>[_0x5f06c8,null]));class Bt extends _0x147a49{static get['requires'](){return[Nt];}['afterInit'](){const _0x4722e9=this['editor'];if(!_0x4722e9['plugins']['has']('TableClipboard'))return;const _0x2e5a9e=_0x4722e9['plugins']['get']('TrackChangesEditing'),_0x471973=_0x4722e9['plugins']['get']('TableUtils'),_0xdcdc5b=_0x4722e9['plugins']['get'](Nt),_0x2ad5a2=_0x4722e9['plugins']['get']('TableClipboard'),_0x2fe800=_0x4722e9['plugins']['get']('TableSelection'),_0x44fa4d=_0x4722e9['plugins']['get'](_0x484d22);_0xdcdc5b['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4722e9['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4722e9['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2853f3=null,_0x25cad0=!0x1;_0x44fa4d['on']('contentInsertion',(_0x593356,_0x20fff0)=>{_0x25cad0='paste'===_0x20fff0['method'];}),_0x4722e9['model']['on']('insertContent',(_0xa63058,_0x5246d5)=>{if(!_0x25cad0&&null===_0x2fe800['getSelectedTableCells']())return;const [_0x56c441,_0x3aef67]=_0x5246d5,_0x7fb88a=_0x5246d5[_0x5246d5['length']-0x1];_0x7fb88a&&_0x7fb88a['forceDefaultExecution']||_0x2e5a9e['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x521484,_0x412722,_0x416740,_0xfb82c2,_0x281752){if(_0x412722&&!_0x412722['is']('documentSelection'))return!0x1;const _0x12d37b=_0x281752['getTableIfOnlyTableInContent'](_0x521484,_0x416740);if(!_0x12d37b||!Oe(_0x12d37b,void 0x0,_0xfb82c2))return!0x1;const _0x1aa4e0=_0xfb82c2['getSelectionAffectedTableCells'](_0x416740['document']['selection']);if(!_0x1aa4e0['length'])return!0x1;const _0x5743cb=_0x1aa4e0[0x0]['findAncestor']('table'),_0x333b17=_0xfb82c2['getRowIndexes'](_0x1aa4e0),_0x17720c=_0xfb82c2['getColumnIndexes'](_0x1aa4e0),_0x2c4cdc={'startRow':_0x333b17['first'],'endRow':_0x333b17['last'],'startColumn':_0x17720c['first'],'endColumn':_0x17720c['last']};return 0x1==_0x1aa4e0['length']&&(_0x2c4cdc['endRow']+=_0xfb82c2['getRows'](_0x12d37b)-0x1,_0x2c4cdc['endColumn']+=_0xfb82c2['getColumns'](_0x12d37b)-0x1),Oe(_0x5743cb,_0x2c4cdc,_0xfb82c2);}(_0x56c441,_0x3aef67,_0x4722e9['model'],_0x471973,_0x2ad5a2)&&(_0xa63058['stop'](),_0x2853f3={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4722e9['model']['change'](()=>{_0x4722e9['model']['insertContent'](_0x5246d5[0x0],_0x5246d5[0x1],_0x5246d5[0x2],{'forceDefaultExecution':!0x0});const _0x574ed7=_0x2844ab(),{rowInsertionRanges:_0x1c1ed7,columnInsertionRanges:_0x14677e,insertionRanges:_0x39c308,deletionRanges:_0x2c3f63,cells:_0x4f5d70}=_0x2853f3;_0x1c1ed7['length']&&_0x2e5a9e['markMultiRangeInsertion'](_0x1c1ed7,'tablePasteRow',{'tablePasteChainId':_0x574ed7}),_0x14677e['length']&&_0x2e5a9e['markMultiRangeInsertion'](_0x14677e,'tablePasteColumn',{'tablePasteChainId':_0x574ed7}),_0x39c308['length']&&(_0x2e5a9e['markMultiRangeInsertion'](_0x39c308,'tablePaste',{'tablePasteChainId':_0x574ed7,'skipNestingCheck':!0x0}),_0x39c308['forEach'](_0x22985d=>_0x22985d['detach']?.())),_0x2c3f63['length']&&(_0x2e5a9e['markMultiRangeDeletion'](_0x2c3f63,'tablePaste',{'tablePasteChainId':_0x574ed7,'skipNestingCheck':!0x0}),_0x2c3f63['forEach'](_0x34ba3e=>_0x34ba3e['detach']?.()));const _0x548f99=_0x2e5a9e['markMultiRangeBlockFormat'](_0x4f5d70['map'](({element:_0x37db1c})=>_0x37db1c),{'formatGroupId':_0x2844ab()},[],'tablePasteCell',{'tablePasteChainId':_0x574ed7});if(_0x548f99){const _0xd2e561=_0x548f99['getMarkers'](),_0x48417c=[];for(const {element:_0x1df051,attributes:_0x34965d}of _0x4f5d70){if(!_0x34965d)continue;const _0x372a57=_0x4722e9['model']['createRangeOn'](_0x1df051),_0x3397f8=_0xd2e561['find'](_0x20de66=>_0x20de66['getRange']()['isEqual'](_0x372a57));_0x3397f8&&_0x48417c['push']([_0x3397f8['name'],_0x34965d]);}_0x48417c['length']&&_0x548f99['setAttribute']('markerAttributes',Object['fromEntries'](_0x48417c));}_0x2853f3=null;}));},{'priority':_0x5b2bcf['high']+0xa}),_0x44fa4d['on']('contentInsertion',()=>{_0x25cad0=!0x1;},{'priority':'lowest'}),_0x4722e9['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x52bc03,_0x3b9cd6)=>{const [_0x4f9636,_0x382418,,_0x204a36]=_0x3b9cd6;if(!_0x2853f3)return;_0x52bc03['stop']();const _0x55f50c=_0x4f9636['cell'],_0x5d4ba7=_0x382418,_0xd86e63=Be(_0x55f50c),_0x2afb5e=Be(_0x5d4ba7);_0x52bc03['return']=_0x55f50c;let _0x4787a2=null,_0x54c66d=null;if(_0x2afb5e||_0xd86e63){if(_0xd86e63&&!_0x2afb5e){_0x204a36['remove'](_0x55f50c['getChild'](0x0));for(const _0x501504 of Array['from'](_0x5d4ba7['getChildren']()))_0x204a36['insert'](_0x501504,_0x55f50c,'end');const _0x423725=_0x2853f3['rowInsertionIndexes']['includes'](_0x4f9636['row']),_0x15b3d9=_0x2853f3['columnInsertionIndexes']['includes'](_0x4f9636['column']);_0x423725||_0x15b3d9||(_0x4787a2=_0x468db3['fromRange'](_0x204a36['createRangeIn'](_0x55f50c)));}else _0x2afb5e&&!_0xd86e63&&(_0x54c66d=_0x204a36['createRangeIn'](_0x55f50c));}else{const _0x4af947=_0x204a36['createElement']('tableCellSuggestion'),_0x14b072=_0x204a36['createElement']('tableCellSuggestion');_0x204a36['wrap'](_0x204a36['createRangeIn'](_0x55f50c),_0x14b072),_0x204a36['insert'](_0x4af947,_0x55f50c,0x0);for(const _0x2e3d49 of Array['from'](_0x5d4ba7['getChildren']()))_0x204a36['insert'](_0x2e3d49,_0x4af947,'end');_0x4787a2=_0x468db3['fromRange'](_0x204a36['createRangeOn'](_0x4af947)),_0x54c66d=_0x468db3['fromRange'](_0x204a36['createRangeOn'](_0x14b072));}const _0x29f32d=Array['from'](_0x5d4ba7['getAttributes']())['filter'](([_0x51b82a])=>Re['includes'](_0x51b82a));_0x2853f3['cells']['push']({'element':_0x55f50c,'attributes':_0x29f32d['length']?Object['fromEntries'](_0x29f32d):null}),_0x4787a2&&_0x2853f3['insertionRanges']['push'](_0x4787a2),_0x54c66d&&_0x2853f3['deletionRanges']['push'](_0x54c66d);},{'priority':'high'}),_0x471973['on']('insertColumns',(_0x1dc69d,_0x1e14cc)=>{const [_0x4f0b47,_0x127bfb={}]=_0x1e14cc;if(!_0x2853f3)return;const _0xc22364=_0x127bfb['at']||0x0,_0x4bc6a4=_0x127bfb['columns']||0x1;_0x2853f3['columnInsertionIndexes']=new Array(_0x4bc6a4)['fill'](_0xc22364)['map']((_0x255f0b,_0x224f8d)=>_0x255f0b+_0x224f8d);for(const {cell:_0x4ad2c5}of _0x471973['createTableWalker'](_0x4f0b47,{'startColumn':_0xc22364,'endColumn':_0xc22364+_0x4bc6a4-0x1}))_0x2853f3['columnInsertionRanges']['push'](_0x4722e9['model']['createRangeOn'](_0x4ad2c5));},{'priority':'low'}),_0x471973['on']('insertRows',(_0x42a02c,_0xb6cdb5)=>{const [_0x4868ce,_0x12842e={}]=_0xb6cdb5;if(!_0x2853f3)return;const _0x30d2d7=_0x12842e['at']||0x0,_0x3146af=_0x12842e['rows']||0x1;_0x2853f3['rowInsertionIndexes']=new Array(_0x3146af)['fill'](_0x30d2d7)['map']((_0x3a0fe1,_0x1614fd)=>_0x3a0fe1+_0x1614fd);for(const {cell:_0x2996b3}of _0x471973['createTableWalker'](_0x4868ce,{'startRow':_0x30d2d7,'endRow':_0x30d2d7+_0x3146af-0x1}))_0x2853f3['rowInsertionRanges']['push'](_0x4722e9['model']['createRangeOn'](_0x2996b3));},{'priority':'low'}),_0x2e5a9e['descriptionFactory']['registerDescriptionCallback'](_0x19f4b7=>{if(_0x19f4b7['subType']&&_0x19f4b7['subType']['startsWith']('tablePaste'))return _0x19f4b7['previous']?{}:{'type':'insertion','content':o(_0x4722e9['locale'],'*Replace\x20table\x20cells*')};});const _0x560385=()=>!0x1;for(const _0x3520e3 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2e5a9e['_suggestionFactory']['registerCustomCallback']('insertion',_0x3520e3,'join',_0x560385),_0x2e5a9e['_suggestionFactory']['registerCustomCallback']('deletion',_0x3520e3,'join',_0x560385),_0x2e5a9e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3520e3,'join',_0x560385);_0x2e5a9e['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x560385),_0x2e5a9e['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2f702a,_0x127f66,_0x294b1c)=>{const _0x8bac71=_0x2f702a['map'](_0x45c45e=>_0x45c45e['getContainedElement']())['filter'](_0x150b15=>_0x150b15),_0x469b92=new Map(_0x8bac71['map'](_0x41b0de=>[_0x41b0de,null]));if(_0x2853f3){for(const {element:_0x291273,attributes:_0x2f149c}of _0x2853f3['cells'])_0x2f149c&&_0x469b92['set'](_0x291273,_0x2f149c);}else{if(_0x294b1c&&_0x294b1c['markerAttributes'])for(const [_0x7138cb,_0x3f9dc9]of Object['entries'](_0x294b1c['markerAttributes'])){const _0x14650e=_0x4722e9['model']['markers']['get'](_0x7138cb),_0x5e6351=_0x14650e?_0x14650e['getRange']()['getContainedElement']():null;_0x5e6351&&_0x469b92['set'](_0x5e6351,_0x3f9dc9);}}_0x4722e9['model']['change'](_0x3fd1d9=>{for(const [_0xbb6d04,_0x107f2b]of _0x469b92)_0x3fd1d9['setAttributes']({...Ae,..._0x107f2b},_0xbb6d04);});});const _0x469fc8=(_0x247f50,_0x36ba15)=>{_0x2e5a9e['_suggestionFactory']['registerCustomCallback'](_0x247f50,'tablePaste',_0x36ba15,(_0xcf2144,_0x2d3325,_0x29691d)=>{_0x4722e9['model']['change'](_0x2a5c11=>{const _0x1929a2=[];for(const _0x69ea1f of _0xcf2144){const _0x474abd=_0x69ea1f['start']['nodeAfter'];_0x474abd['is']('element','tableCellSuggestion')&&_0x1929a2['push'](_0x474abd);}_0x2e5a9e['_suggestionFactory']['getSuggestionCallback'](_0x247f50,null,_0x36ba15)(_0xcf2144,_0x2d3325,_0x29691d);for(const _0x58313f of _0x1929a2)'$graveyard'!=_0x58313f['root']['rootName']&&_0x2a5c11['unwrap'](_0x58313f);});});};_0x469fc8('insertion','accept'),_0x469fc8('insertion','discard'),_0x469fc8('deletion','accept'),_0x469fc8('deletion','discard'),_0x2e5a9e['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2de3d4=>{const _0x3fe8db=_0x2de3d4['map'](_0x57ae30=>_0x57ae30['getContainedElement']()),_0x2afd46=_0x3fe8db[0x0]['findAncestor']('table'),{minRow:_0x27f58a,maxRow:_0x531cfa}=_0xdcdc5b['_getCoordsForCells'](_0x3fe8db);_0x471973['removeRows'](_0x2afd46,{'at':_0x27f58a,'rows':_0x531cfa-_0x27f58a+0x1});}),_0x2e5a9e['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4c00e6=>{const _0x329aa9=_0x4c00e6['map'](_0x4bffe4=>_0x4bffe4['getContainedElement']()),_0x4ea654=_0x329aa9[0x0]['findAncestor']('table'),{minColumn:_0x5b535e,maxColumn:_0x1ed8c6}=_0xdcdc5b['_getCoordsForCells'](_0x329aa9);_0x471973['removeColumns'](_0x4ea654,{'at':_0x5b535e,'columns':_0x1ed8c6-_0x5b535e+0x1});});const _0x113129=(_0x249455,_0x28cce3)=>{if(!_0x28cce3['subType']||!_0x28cce3['subType']['startsWith']('tablePaste'))return;const _0x581c2b=_0x28cce3['attributes']['tablePasteChainId'],_0x440883=_0x2e5a9e['getSuggestions']()['filter'](_0x1c3022=>_0x1c3022['isInContent']&&_0x1c3022['attributes']&&_0x1c3022['attributes']['tablePasteChainId']==_0x581c2b);_0x440883['length']&&_0x28cce3['getAllAdjacentSuggestions']()['length']!=_0x440883['length']&&_0x440883['reduce']((_0x85ea49,_0x4516f6)=>(_0x85ea49['next']=_0x4516f6,_0x4516f6['previous']=_0x85ea49,_0x4516f6));};function _0x17cff2(_0x4d5591,_0x400054=!0x0){const {id:_0x55aa47,authorId:_0x12deaf}=_0x2e5a9e['_splitMarkerName'](_0x4d5591['markerName']),_0x1b4661=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x365548=_0x2e5a9e['activeMarkers']['includes'](_0x4d5591['markerName']);return _0x365548&&_0x1b4661['push']('ck-suggestion-marker--active'),{'classes':_0x1b4661,'attributes':{'data-suggestion':_0x55aa47,'data-author-id':_0x12deaf},'priority':_0x365548&&_0x400054?0xbc2:0xbb8};}_0x2e5a9e['on']('suggestionLoaded',_0x113129,{'priority':'high'}),_0x2e5a9e['on']('suggestionUnloaded',_0x113129,{'priority':'high'}),_0x4722e9['model']['document']['registerPostFixer'](()=>{let _0x233d3a=!0x1;const _0x32f73c=Array['from'](_0x4722e9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x308e80,data:_0x1af0ac}of _0x32f73c){const {group:_0x5ecf95,type:_0x385aa5,id:_0x2b1311}=_0x2e5a9e['_splitMarkerName'](_0x308e80);if('suggestion'!=_0x5ecf95||'deletion'!=_0x385aa5||_0x1af0ac['oldRange'])continue;if(!_0x2e5a9e['hasSuggestion'](_0x2b1311))continue;const _0x55fef3=_0x2e5a9e['getSuggestion'](_0x2b1311)['getRanges'](),_0x511ac1=_0x4722e9['plugins']['get']('Users')['me'];for(const _0x41999f of _0x2e5a9e['getSuggestions']()){if(!_0x41999f['isInContent']||_0x41999f['author']!=_0x511ac1)continue;if('formatBlock'!=_0x41999f['type']||'tablePasteCell'!=_0x41999f['subType'])continue;if(_0x41999f['getRanges']()['every'](_0x2f3fbb=>_0x55fef3['some'](_0x979b43=>_0x979b43['containsRange'](_0x2f3fbb,!0x0)))){for(const _0x2d0ded of _0x41999f['getAllAdjacentSuggestions']())_0x2d0ded['isInContent']&&(_0x2d0ded['discard'](),_0x233d3a=!0x0);}}}return _0x233d3a;}),_0x4722e9['model']['document']['registerPostFixer'](_0x906a64=>{const _0x123139=_0x4722e9['commands']['get']('redo');if(!_0x123139||!_0x123139['_createdBatches']['has'](_0x906a64['batch']))return!0x1;let _0x10b46a=!0x1;const _0x334d30=_0x4722e9['plugins']['get']('Users')['me'],_0x256b9c=_0x4722e9['model']['document']['differ']['getChanges'](),_0x2ec9dc=Array['from'](_0x4722e9['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x54b066,data:_0x3a81c5})=>{const {group:_0x226f8b,subType:_0x583f62,authorId:_0x459dca}=_0x2e5a9e['_splitMarkerName'](_0x54b066);return'suggestion'==_0x226f8b&&'tablePaste'==_0x583f62&&_0x459dca==_0x334d30['id']&&!_0x3a81c5['oldRange'];});for(const _0x5d9475 of _0x256b9c){if('insert'!=_0x5d9475['type']||'tableCellSuggestion'!=_0x5d9475['name']||0x1!=_0x5d9475['length'])continue;const _0x505c2c=_0x906a64['createRange'](_0x5d9475['position'],_0x5d9475['position']['getShiftedBy'](0x1));if(!_0x2ec9dc['find'](({data:_0x4a03b7})=>_0x4a03b7['newRange']['isEqual'](_0x505c2c))){for(const {name:_0x5a9f77,data:_0x33c750}of _0x2ec9dc)if(_0x505c2c['containsRange'](_0x33c750['newRange'])){_0x906a64['updateMarker'](_0x5a9f77,{'range':_0x505c2c}),_0x10b46a=!0x0;break;}}}return _0x10b46a;}),_0x4722e9['model']['document']['registerPostFixer'](_0x5d126e=>{let _0x3c83a9=!0x1;const _0x57f79b=_0x4722e9['plugins']['get']('Users')['me'],_0x1af55f=_0x2e5a9e['getSuggestions']()['filter'](_0x1486ac=>_0x1486ac['isInContent']&&_0x1486ac['author']==_0x57f79b),_0x36234a=new Set(),_0x5a7aa8=new Set();for(const _0x2cb0c8 of _0x1af55f)if('tablePaste'==_0x2cb0c8['subType'])for(const _0x406bdc of _0x2cb0c8['getMarkers']()){const _0x1c754c=_0x406bdc['getRange']()['getContainedElement']();if(_0x1c754c){if(_0x1c754c['is']('element','tableCellSuggestion')&&Be(_0x1c754c)){_0x2cb0c8['removeMarker'](_0x406bdc['name']),_0x36234a['add'](_0x1c754c),_0x3c83a9=!0x0;const _0x1832f3=_0x1c754c['nextSibling'],_0x52e1e4=_0x1c754c['previousSibling'],_0x40af6f=_0x1832f3&&_0x1832f3['is']('element','tableCellSuggestion'),_0x1a2068=_0x52e1e4&&_0x52e1e4['is']('element','tableCellSuggestion');_0x40af6f&&!_0x36234a['has'](_0x1832f3)&&_0x5a7aa8['add'](_0x1832f3),_0x1a2068&&!_0x36234a['has'](_0x52e1e4)&&_0x5a7aa8['add'](_0x52e1e4);}else _0x1c754c['is']('element','paragraph')&&_0x1c754c['isEmpty']&&(_0x2cb0c8['removeMarker'](_0x406bdc['name']),_0x3c83a9=!0x0);}}else{if('tablePasteCell'==_0x2cb0c8['subType']){if(!_0x2cb0c8['attributes']||!_0x2cb0c8['attributes']['tablePasteChainId'])continue;const _0x387289=_0x2cb0c8['attributes']['markerAttributes'];if(_0x387289&&Object['keys'](_0x387289)['length'])continue;const _0x1a9dc9=_0x2cb0c8['attributes']['tablePasteChainId'];let _0x391142=!0x0,_0x52bfa0=!0x0;for(const _0x24df9b of _0x1af55f)if(_0x24df9b['subType']&&_0x24df9b['subType']['startsWith']('tablePaste')){if(!_0x24df9b['attributes']['tablePasteChainId']){_0x52bfa0=!0x1;break;}if(_0x24df9b['id']!=_0x2cb0c8['id']&&_0x24df9b['attributes']['tablePasteChainId']==_0x1a9dc9){_0x391142=!0x1;break;}}_0x52bfa0&&_0x391142&&(_0x2cb0c8['removeMarkers'](),_0x3c83a9=!0x0);}}for(const _0x549c0a of _0x36234a)_0x5d126e['remove'](_0x549c0a);for(const _0x26423b of _0x5a7aa8)_0x5d126e['unwrap'](_0x26423b);return _0x3c83a9;}),_0x4722e9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5c7d7c=>_0x17cff2(_0x5c7d7c),'converterPriority':'high'}),_0x4722e9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x29d3d2,_0x2fb6f3)=>_0x2fb6f3['options']['showSuggestionHighlights']?_0x17cff2(_0x29d3d2,!0x1):null,'converterPriority':'high'});const _0x3f55ab=_0x4722e9['editing']['view'];this['listenTo'](_0x3f55ab['document'],'clipboardOutput',(_0x5eb63f,_0x3d69b2)=>{const _0x396846=[];for(const _0x3cb1d5 of _0x3f55ab['createRangeIn'](_0x3d69b2['content'])['getItems']())_0x3cb1d5['is']('element','suggestion-td')&&_0x396846['push'](_0x3cb1d5);_0x3f55ab['change'](_0x53ac95=>{for(const _0x316e4b of _0x396846)_0x53ac95['move'](_0x53ac95['createRangeIn'](_0x316e4b),_0x53ac95['createPositionBefore'](_0x316e4b)),_0x53ac95['remove'](_0x316e4b);});});}}function Be(_0x429e79){if(_0x429e79['isEmpty'])return!0x0;const _0x5425a4=_0x429e79['getChild'](0x0);return _0x5425a4['is']('element','paragraph')&&_0x5425a4['isEmpty'];}function Oe(_0x12a421,_0x37969f={},_0x2a2f0b){for(const {isAnchor:_0x2f3733,cellHeight:_0x644e1,cellWidth:_0x3900fb}of _0x2a2f0b['createTableWalker'](_0x12a421,{'includeAllSlots':!0x0,..._0x37969f}))if(!_0x2f3733||0x1!=_0x644e1||0x1!=_0x3900fb)return!0x1;return!0x0;}class Ot extends _0x147a49{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4d1829=this['editor']['plugins']['get']('TrackChangesEditing');_0x4d1829['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4d1829['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4d1829['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4d1829['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4d1829['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4d1829['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x36ffd6,_0x2a558a){const _0x436eab=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b15fe=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xde0700=_0x2a558a['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x13bdad=_0x3b15fe['getColumnGroupElement'](_0xde0700);let _0x815940=_0x13bdad?_0x3b15fe['getTableColumnsWidths'](_0x13bdad):null,_0x16e826=_0xde0700['getAttribute']('tableWidth')||null;const _0x56f697=_0x2a558a['tableWidth']||_0x16e826,_0x5c3ad9=_0x2a558a['columnWidths']||_0x815940,_0x1768fd=this['editor']['plugins']['get']('Users')['me'];for(const _0x3110bf of _0x436eab['getSuggestions']()){const _0x4b8a78=_0x3110bf['getContainedElement']();if('resizeTable'===_0x3110bf['subType']&&_0x4b8a78===_0xde0700){_0x3110bf['author']!==_0x1768fd&&_0x3110bf['discard']();const _0x5c758d=_0x3110bf['data']['commandParams'];_0x16e826=_0x5c758d[0x0]['tableWidth'],_0x815940=_0x5c758d[0x0]['columnWidths'];break;}}_0x36ffd6({'table':_0xde0700,'tableWidth':_0x56f697,'columnWidths':_0x5c3ad9}),_0x436eab['markBlockFormat'](_0xde0700,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x16e826,'columnWidths':_0x815940}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4fe93e){if('formatBlock'!=_0x4fe93e['type']&&'formatInline'!=_0x4fe93e['type'])return;const {data:_0x583dbd}=_0x4fe93e;if(_0x583dbd&&'resizeTable'===_0x583dbd['formatGroupId']){const _0x3a4af4='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3a4af4)};}}}class xt extends _0x147a49{['afterInit'](){const _0xc805b5=this['editor'];_0xc805b5['plugins']['has']('Template')&&_0xc805b5['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x147a49{['afterInit'](){const _0x1c7e3b=this['editor'];if(!_0x1c7e3b['commands']['get']('insertTableOfContents'))return;_0x1c7e3b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x62d643=_0x1c7e3b['plugins']['get']('TrackChangesEditing'),_0x566378=_0x1c7e3b['locale'];_0x62d643['descriptionFactory']['registerElementLabel']('tableOfContents',_0x277438=>o(_0x566378,'ELEMENT_TABLE_OF_CONTENTS',_0x277438));}}class Rt extends _0x147a49{['afterInit'](){const _0x1759e0=this['editor'];if(!_0x1759e0['plugins']['has']('Title'))return;const _0x5f56d5=_0x1759e0['plugins']['get']('TrackChangesEditing');_0x5f56d5['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1759e0['locale'],'ELEMENT_TITLE')),_0x1759e0['model']['document']['registerPostFixer'](_0x372d8e=>{let _0x2a777a=!0x1;const _0x301abc=Array['from'](_0x1759e0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4d68a7,data:_0x101d94}of _0x301abc){const {group:_0x66f7ac}=_0x5f56d5['_splitMarkerName'](_0x4d68a7);if('suggestion'!==_0x66f7ac||!_0x101d94['newRange'])continue;const _0x503805=_0x101d94['newRange'],_0x4a8788=_0x503805['end']['nodeBefore'];if(!_0x4a8788||!_0x4a8788['is']('element','title-content'))continue;if(!_0x503805['start']['isTouching'](_0x503805['end']))continue;const _0x188c6e=_0x1759e0['model']['schema']['getNearestSelectionRange'](_0x503805['end'],'forward');if(_0x188c6e&&_0x188c6e['isCollapsed']){const _0x17eba5=_0x372d8e['createRange'](_0x503805['start'],_0x188c6e['start']);_0x17eba5['isEqual'](_0x503805)||(_0x372d8e['updateMarker'](_0x4d68a7,{'range':_0x17eba5}),_0x2a777a=!0x0);}_0x2a777a||(_0x372d8e['removeMarker'](_0x4d68a7),_0x2a777a=!0x0);}return _0x2a777a;});}}class Tt extends _0x147a49{['afterInit'](){const _0x2f5f86=this['editor'],_0xa0ed4d=_0x2f5f86['plugins']['get']('TrackChangesEditing');_0x2f5f86['plugins']['has']('Uploadcare')&&(_0xa0ed4d['enableCommand']('uploadcare'),_0x2f5f86['plugins']['has']('UploadcareImageEdit')&&(_0xa0ed4d['enableCommand']('uploadcareImageEdit'),_0xa0ed4d['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0xa0ed4d['descriptionFactory']['registerDescriptionCallback'](_0x59d825=>{if('attribute'!=_0x59d825['type'])return;const {data:_0x1dd613}=_0x59d825;return _0x1dd613&&'uploadcareImageId'==_0x1dd613['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x147a49{['afterInit'](){const _0x57eadf=this['editor'],_0x423b12=_0x57eadf['plugins']['get']('TrackChangesEditing');_0x57eadf['plugins']['has']('UndoEditing')&&(_0x423b12['enableCommand']('undo'),_0x423b12['enableCommand']('redo'));}}class Ut extends _0x147a49{static get['requires'](){return[Nt];}['afterInit'](){const _0x13e56b=this['editor'];if(!_0x13e56b['plugins']['has']('TableCaptionEditing'))return;_0x13e56b['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x147a49{['tableProperties'];['tableCellProperties'];constructor(_0xfa297c){super(_0xfa297c),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 _0x4a2326=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1bd835 of this['tableProperties'])_0x4a2326['enableCommand'](_0x1bd835,(_0x2ee182,_0x45a7d8)=>{const _0x27555c=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1bd835,[_0x27555c],this['tableProperties'],'tableProperties',_0x2ee182,_0x45a7d8);});_0x4a2326['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4a2326['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4a2326['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x27f5c8,_0x4c51b7)=>this['handleDiscardAction'](this['tableProperties'],_0x27f5c8,_0x4c51b7)),_0x4a2326['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1497f1 of this['tableCellProperties'])_0x4a2326['enableCommand'](_0x1497f1,(_0x582ebd,_0x22fedd)=>{const _0x259dde=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1497f1,_0x259dde,this['tableCellProperties'],'tableCellProperties',_0x582ebd,_0x22fedd);});_0x4a2326['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4a2326['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4a2326['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x49e032,_0x56c4fc)=>this['handleDiscardAction'](this['tableCellProperties'],_0x49e032,_0x56c4fc)),_0x4a2326['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4a2326['descriptionFactory']['registerDescriptionCallback'](_0x501e09=>this['handleSuggestionDescription'](_0x501e09)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0xfd0a76,_0x2ea97f,_0x9252fd,_0x3dfc98,_0x1033e8,_0xeb45ec){const _0x2c62bd=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xeb45ec['batch'],()=>{for(const _0x3e330f of _0x2ea97f){if(this['_getSuggestion'](_0x3e330f,_0x3dfc98))_0x1033e8(_0xeb45ec);else{const _0x51e5ab={};for(const _0xd1876f of _0x9252fd){const _0xa83bb2=_0x3e330f['getAttribute'](_0xd1876f);void 0x0!==_0xa83bb2&&(_0x51e5ab[_0xd1876f]=_0xa83bb2);}_0x1033e8(_0xeb45ec),_0x2c62bd['markBlockFormat'](_0x3e330f,{'commandParams':[_0x51e5ab]},[],_0x3dfc98);}}});}['handleDiscardAction'](_0x31ea64,_0x1ba455,_0x339d5e){const _0x81d6e2=_0x1ba455[0x0]['start']['nodeAfter'],_0x4f1b75=_0x339d5e['commandParams'][0x0];this['editor']['model']['change'](_0x23d6ee=>{for(const _0x1dc0a0 of _0x31ea64)void 0x0!==_0x4f1b75[_0x1dc0a0]?_0x23d6ee['setAttribute'](_0x1dc0a0,_0x4f1b75[_0x1dc0a0],_0x81d6e2):_0x23d6ee['removeAttribute'](_0x1dc0a0,_0x81d6e2);});}['handleSuggestionDescription'](_0x2a8046){if(_0x2a8046['data'])switch(_0x2a8046['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x1a73ce,_0x2dff82){const _0x274ec2=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4cbe24 of _0x274ec2['getSuggestions']({'skipNotAttached':!0x0})){const _0x5d3e1a=_0x4cbe24['getContainedElement']();if(_0x4cbe24['subType']===_0x2dff82&&_0x5d3e1a===_0x1a73ce)return _0x4cbe24;}return null;}['_registerTablePropertiesAttributes'](){const _0x1eba2b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28b5ed=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x37934f of _0x28b5ed){const _0xaa0267=_0x37934f['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x1eba2b['descriptionFactory']['registerAttributeLabel'](_0x37934f,o(this['editor']['locale'],'FORMAT_'+_0xaa0267));}}}class Ft extends _0x147a49{['afterInit'](){const _0x4a4e6d=this['editor'];if(!_0x4a4e6d['plugins']['has']('LineHeight'))return;const _0x3db5b9=_0x4a4e6d['plugins']['get']('TrackChangesEditing'),_0x532df5=_0x4a4e6d['locale'];_0x3db5b9['enableDefaultAttributesIntegration']('lineHeight'),_0x3db5b9['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x532df5,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x147a49{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0x3370ef,_0x537b05,_0xb40c62,R,T,E,U,V,F,G,J,L,q,z,K,Q,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,mt,kt,lt,W,Ft,H,dt,pt,wt,bt,yt,jt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Ut,Bt,Ot,Mt,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x560354){super(_0x560354),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5816ee,_0x6d3fe1,_0x3b3098,_0x324648)=>{this['_model']['change'](()=>{for(const _0x353a0c of[..._0x324648,..._0x3b3098])this['_model']['markers']['has'](_0x353a0c)&&_0x560354['editing']['reconvertMarker'](_0x353a0c);});}),this['descriptionFactory']=new M(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x560354['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x560354['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x560354['config']['get']('trackChanges.trackFormatChanges'),_0x560354['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x560354['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x560354,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x24d17d=this['editor'];_0x24d17d['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5a1018,{writer:_0x3bce1f})=>{let _0x4bd229='suggestion:'+_0x5a1018['getAttribute']('suggestion-type')+':'+_0x5a1018['getAttribute']('id');return _0x5a1018['getAttribute']('marker-count')&&(_0x4bd229+=':'+_0x5a1018['getAttribute']('marker-count')),_0x3bce1f['createElement']('$marker',{'data-name':_0x4bd229});}}),_0x24d17d['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x24d17d['model']['document']['registerPostFixer'](_0x5c2d74=>{let _0x55be28=!0x1;const _0x18c81c=Array['from'](_0x24d17d['model']['document']['differ']['getChangedMarkers']()),_0x3d6651=new Set();for(const {name:_0x3c2d22,data:_0x449584}of _0x18c81c){const {group:_0x4f80a6,type:_0x5eea82,subType:_0x3e6ca6,id:_0x4438fa}=this['_splitMarkerName'](_0x3c2d22);if('suggestion'!==_0x4f80a6)continue;const _0x5b0365=_0x3e6ca6?'suggestion:'+_0x5eea82+':'+_0x3e6ca6+':'+_0x4438fa:'suggestion:'+_0x5eea82+':'+_0x4438fa,_0x491a96=_0x24d17d['model']['markers']['getMarkersGroup'](_0x5b0365),_0x392ced=_0x24d17d['model']['markers']['get'](_0x3c2d22),_0x582abe=this['_suggestions']['get'](_0x4438fa);if(null!=_0x449584['newRange']){'formatInline'==_0x5eea82&&(_0x55be28=_0x55be28||Wt(_0x449584['newRange'],_0x3c2d22,_0x5c2d74,_0x24d17d['model']['schema']));const _0x54a075='attribute'==_0x5eea82&&this['_isBlockAttribute'](_0x3e6ca6['split']('|')[0x0]),_0x4f6d87='attribute'==_0x5eea82&&this['_isInlineAttribute'](_0x3e6ca6['split']('|')[0x0]);if(_0x449584['newRange']['isCollapsed']||'$graveyard'==_0x449584['newRange']['root']['rootName']||'formatBlock'==_0x5eea82&&!Qt(_0x449584['newRange'])||_0x54a075&&!Qt(_0x449584['newRange'])||_0x4f6d87&&Xt(_0x449584['newRange'])||'deletion'==_0x5eea82&&Xt(_0x449584['newRange'])||_0x392ced&&Yt(_0x392ced,_0x491a96))_0x5c2d74['removeMarker'](_0x3c2d22),_0x55be28=!0x0;else{if(!_0x582abe||!_0x582abe['isInContent'])continue;if(_0x449584['newRange']&&_0x449584['oldRange']&&_0x449584['newRange']['isEqual'](_0x449584['oldRange']))continue;_0x3d6651['add'](_0x582abe);}}}return _0x3d6651['size']>0x0&&(_0x55be28=!!this['_joinWithAdjacentSuggestions'](_0x3d6651)||_0x55be28),_0x55be28;}),_0x24d17d['model']['document']['registerPostFixer'](_0x7660d=>{let _0xdfc514=!0x1;for(const _0x4e3d6d of _0x24d17d['model']['document']['differ']['getChanges']())if('insert'==_0x4e3d6d['type'])for(const _0x5b36b1 of this['_suggestions']['values']()){if(_0x5b36b1['isMultiRange']||!_0x5b36b1['isInContent'])continue;const _0xc774d1='formatBlock'==_0x5b36b1['type'],_0x25dcf6=this['_getAttributeKey'](_0x5b36b1),_0x3aebb2=_0x25dcf6&&this['_isBlockAttribute'](_0x25dcf6);if(!_0xc774d1&&!_0x3aebb2)continue;const _0x5e9f75=_0x5b36b1['getFirstRange']();if(_0x5e9f75['start']['parent']!=_0x5e9f75['end']['parent']&&!_0x5e9f75['end']['isAtEnd']){const _0x2cf2f0=_0x24d17d['model']['createPositionAt'](_0x5e9f75['start']['nodeAfter'],'end'),_0x15d43c=_0x24d17d['model']['createRange'](_0x5e9f75['start'],_0x2cf2f0);_0x7660d['updateMarker'](_0x5b36b1['getFirstMarker'](),{'range':_0x15d43c}),_0xdfc514=!0x0;}}return _0xdfc514;}),_0x24d17d['model']['document']['registerPostFixer'](_0x221be3=>this['_processAttributeChanges'](_0x221be3)),_0x24d17d['model']['document']['registerPostFixer'](_0x3f3f72=>!_0x3f3f72['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3f3f72)),_0x24d17d['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x24d17d['model']['document']['on']('change:data',(_0x306189,_0x506dbf)=>{if(!_0x506dbf['isLocal']||_0x506dbf['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x225679=_0x24d17d['model']['document']['differ']['getChanges']();if(0x0==_0x225679['length'])return;const _0x3645e6=[],_0x275a57=_0x225679['filter'](_0x4d5757=>'attribute'==_0x4d5757['type']),_0x5d9a01=_0x225679['filter'](_0x282c5b=>'insert'==_0x282c5b['type']&&'$text'!=_0x282c5b['name']);for(const _0x47e2e4 of _0x275a57)this['_isRegisteredAttribute'](_0x47e2e4['attributeKey'])&&_0x3645e6['push']({'key':_0x47e2e4['attributeKey'],'newValue':_0x47e2e4['attributeNewValue'],'oldValue':_0x47e2e4['attributeOldValue'],'range':Zt(_0x47e2e4['range'],_0x24d17d['model'])});for(const _0x389a40 of _0x5d9a01){if('rename'!=_0x389a40['action']&&'refresh'!=_0x389a40['action'])continue;const _0x3b8144=tn(_0x389a40['position']['nodeAfter'],_0x24d17d['model']),_0x43e24d=_0x389a40['before'];'rename'==_0x389a40['action']&&_0x3645e6['push']({'key':m,'newValue':_0x389a40['name'],'oldValue':_0x43e24d['name'],'range':_0x3b8144});for(const [_0xaa670e,_0x411c49]of _0x43e24d['attributes']){if(!this['_isRegisteredAttribute'](_0xaa670e))continue;const _0x21e889=_0x389a40['attributes']['get'](_0xaa670e);_0x411c49!==_0x21e889&&_0x3645e6['push']({'key':_0xaa670e,'newValue':_0x21e889,'oldValue':_0x411c49,'range':_0x3b8144});}for(const [_0x3357ee,_0x4ef8a5]of _0x389a40['attributes'])this['_isRegisteredAttribute'](_0x3357ee)&&(_0x43e24d['attributes']['has'](_0x3357ee)||_0x3645e6['push']({'key':_0x3357ee,'newValue':_0x4ef8a5,'oldValue':null,'range':_0x3b8144}));}0x0!=_0x3645e6['length']&&_0x24d17d['model']['enqueueChange'](_0x506dbf,_0x13d105=>{const _0x5698da=_0x2844ab();for(const {range:_0x5cc3e0,key:_0x43a256,oldValue:_0x2aa04f,newValue:_0x3d4159}of _0x3645e6)this['markAttributeChange'](_0x5cc3e0,_0x43a256,_0x2aa04f,_0x3d4159,{'groupId':_0x5698da});this['_reduceExistingSuggestions'](_0x13d105,_0x3645e6);});},{'priority':'lowest'}),_0x24d17d['model']['markers']['on']('update:suggestion',(_0xa398bd,_0x356442,_0x1773fd)=>{if(null==_0x1773fd){const {id:_0xa1252}=this['_splitMarkerName'](_0x356442['name']),_0x36ac93=this['_suggestions']['get'](_0xa1252);_0x36ac93&&_0x36ac93['addMarkerName'](_0x356442['name']);}}),_0x24d17d['model']['document']['on']('change:data',()=>{const _0x4f21a8=Array['from'](_0x24d17d['model']['document']['differ']['getChangedMarkers']())['filter'](_0x330ce0=>'suggestion'===this['_splitMarkerName'](_0x330ce0['name'])['group']);if(0x0===_0x4f21a8['length'])return;_0x4f21a8['sort']((_0x5ad71c,_0x1b6108)=>{const _0x4cc08e=_0x5ad71c['data']['oldRange'],_0x47ddbb=_0x1b6108['data']['oldRange'];return null===_0x4cc08e&&null===_0x47ddbb?0x0:null===_0x4cc08e&&null!==_0x47ddbb?-0x1:null!==_0x4cc08e&&null===_0x47ddbb?0x1:_0x4cc08e['start']['isBefore'](_0x47ddbb['start'])?-0x1:0x1;});const _0x16f5d9=new Set(),_0x12006d=new Set();for(const {name:_0x105a0f,data:_0x56ad5a}of _0x4f21a8){const {id:_0xa6cc7}=this['_splitMarkerName'](_0x105a0f);if(null===_0x56ad5a['oldRange']){const _0x3236bc=this['_handleNewSuggestionMarker'](_0x105a0f);_0x12006d['add'](_0x3236bc);}else{const _0x5b812f=this['_suggestions']['get'](_0xa6cc7);null!==_0x56ad5a['newRange']||_0x5b812f['isInContent']?(_0x16f5d9['add'](_0x5b812f['head']),_0x12006d['add'](_0x5b812f)):this['_removeSuggestion'](_0x5b812f);}}_0x12006d['size']>0x0&&this['_refreshSuggestionsChain'](_0x12006d);for(const _0x56c24b of _0x16f5d9)this['fire']('suggestionChanged',_0x56c24b);}),_0x24d17d['model']['on']('applyOperation',(_0x5922d5,_0x2682f4)=>{const _0x2a396e=_0x2682f4[0x0];if(!this['_suggestions']['size'])return;if(!_0x2a396e['isDocumentOperation'])return;if(_0x2a396e['batch']['isUndo']||!_0x2a396e['batch']['isLocal'])return;let _0x5d5095,_0x594a89;switch(_0x2a396e['type']){case'insert':_0x5d5095=_0x24d17d['model']['createPositionAt'](_0x2a396e['position']),_0x594a89=_0x5d5095['getShiftedBy'](_0x2a396e['howMany']);break;case'split':_0x5d5095=_0x24d17d['model']['createPositionAt'](_0x2a396e['splitPosition']),_0x594a89=_0x24d17d['model']['createPositionAt'](_0x2a396e['moveTargetPosition']);break;case'move':_0x5d5095=_0x24d17d['model']['createPositionAt'](_0x2a396e['targetPosition']),_0x594a89=_0x5d5095['getShiftedBy'](_0x2a396e['howMany']);break;default:return;}const _0x4c3062=_0x24d17d['model']['createRange'](_0x5d5095,_0x594a89);_0x24d17d['model']['change'](()=>{for(const {suggestion:_0xee363c,meta:_0x79ef13}of this['_findSuggestions'](_0x4c3062)){if(_0xee363c['isMultiRange'])continue;if('formatInline'==_0xee363c['type'])continue;const _0x3f98e9=this['_getAttributeKey'](_0xee363c);if(_0x3f98e9&&this['_isBlockAttribute'](_0x3f98e9)&&'split'!=_0x2a396e['type'])continue;const _0x59911c=_0xee363c['data']&&_0xee363c['data']['multipleBlocks'];('formatBlock'!=_0xee363c['type']||'split'==_0x2a396e['type']&&!_0x59911c)&&(_0x79ef13['containsRangeInObject']||'insertion'==_0xee363c['type']&&_0x79ef13['isOwn']||_0xee363c['getFirstRange']()['containsRange'](_0x4c3062)&&this['_breakSuggestionMarker'](_0xee363c,_0x5d5095,_0x594a89));}});},{'priority':'lowest'}),_0x24d17d['model']['on']('deleteContent',(_0x1f192e,_0x1de9b8)=>{const _0x5f1c33=_0x1de9b8[0x0],_0x19d2c9=_0x1de9b8[0x1];if(_0x19d2c9&&_0x19d2c9['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5f1c33['isCollapsed'])return;const _0x2b6e8e=_0x24d17d['model']['schema'],{start:_0x21c3c5,end:_0x5cafab}=_0x5f1c33['getFirstRange'](),_0x4bee92=_0x21c3c5['nodeAfter']&&_0x2b6e8e['isLimit'](_0x21c3c5['nodeAfter'])?null:_0x2b6e8e['getNearestSelectionRange'](_0x21c3c5,'forward'),_0x2fc4a2=_0x5cafab['nodeBefore']&&_0x2b6e8e['isLimit'](_0x5cafab['nodeBefore'])?null:_0x2b6e8e['getNearestSelectionRange'](_0x5cafab,'backward'),_0x37835b=_0x24d17d['model']['createRange'](_0x4bee92?_0x4bee92['start']:_0x21c3c5,_0x2fc4a2?_0x2fc4a2['end']:_0x5cafab);_0x24d17d['model']['change'](_0x164861=>{this['markDeletion'](_0x37835b);const _0x43f945=_0x24d17d['model']['schema']['getNearestSelectionRange'](_0x37835b['start']);_0x5f1c33['is']('documentSelection')?_0x164861['setSelection'](_0x43f945):_0x5f1c33['setTo'](_0x43f945);}),_0x1f192e['stop']();},{'priority':_0x5b2bcf['normal']+0xa}),_0x24d17d['model']['on']('insertContent',(_0x1ffdee,_0x3d4d52)=>{const _0x24b007=_0x3d4d52[_0x3d4d52['length']-0x1];_0x24b007&&_0x24b007['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x24d17d['model']['change'](()=>{let _0x51964d=_0x24d17d['model']['insertContent'](_0x3d4d52[0x0],_0x3d4d52[0x1],_0x3d4d52[0x2],{'forceDefaultExecution':!0x0});if(!_0x51964d)return;_0x1ffdee['return']=_0x51964d['clone']();const _0x46b648=_0x51964d['end']['nodeBefore'],_0x31c75f=_0x24d17d['model']['schema'];_0x46b648&&_0x31c75f['isBlock'](_0x46b648)&&!_0x31c75f['isObject'](_0x46b648)&&(_0x51964d=_0x24d17d['model']['createRange'](_0x51964d['start'],_0x24d17d['model']['createPositionAt'](_0x46b648,'end'))),this['markInsertion'](_0x51964d);}),_0x1ffdee['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x37e126=new v(_0x24d17d,this['_suggestions']);_0x24d17d['commands']['add']('acceptSuggestion',_0x37e126),this['enableCommand']('acceptSuggestion');const _0x1441ac=new D(_0x24d17d,this['_suggestions']);_0x24d17d['commands']['add']('discardSuggestion',_0x1441ac),this['enableCommand']('discardSuggestion'),_0x24d17d['commands']['add']('acceptAllSuggestions',new B(_0x24d17d,_0x37e126,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x24d17d['commands']['add']('discardAllSuggestions',new B(_0x24d17d,_0x1441ac,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x24d17d['commands']['add']('acceptSelectedSuggestions',new O(_0x24d17d,_0x37e126,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x24d17d['commands']['add']('discardSelectedSuggestions',new O(_0x24d17d,_0x1441ac,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x20d052=_0x24d17d['plugins']['get']('CommentsRepository');this['listenTo'](_0x20d052,'addComment',(_0x5b12a9,{threadId:_0x1c7758})=>{const _0x55d72e=this['_suggestions']['get'](_0x1c7758);_0x55d72e&&_0x55d72e['commentThread']&&0x1===_0x55d72e['commentThread']['length']&&this['_updateSuggestionData'](_0x1c7758,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x20d052,'removeComment',(_0x25d8cb,{threadId:_0x2cfdb9})=>{const _0xa49823=this['_suggestions']['get'](_0x2cfdb9);_0xa49823&&_0xa49823['commentThread']&&!_0xa49823['commentThread']['length']&&this['_updateSuggestionData'](_0x2cfdb9,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x330753){const _0x3a4174=_0x3bc697([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x1f13dd=0x3d8d0df,_0x25d7eb=0x3dfa707^_0x1f13dd,_0x5b99d9=window[_0x3bc697([0x44,0x61,0x74,0x65])][_0x3bc697([0x6e,0x6f,0x77])](),_0xbe7155=_0x330753[_0x3bc697([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x47e4d0=new window[(_0x3bc697([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x508fee=>{_0xbe7155[_0x3bc697([0x6f,0x6e,0x63,0x65])](_0x3bc697([0x72,0x65,0x61,0x64,0x79]),_0x508fee);}),_0x527b16={[_0x3bc697([0x6b,0x74,0x79])]:_0x3bc697([0x45,0x43]),[_0x3bc697([0x75,0x73,0x65])]:_0x3bc697([0x73,0x69,0x67]),[_0x3bc697([0x63,0x72,0x76])]:_0x3bc697([0x50,0x2d,0x32,0x35,0x36]),[_0x3bc697([0x78])]:_0x3bc697([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]),[_0x3bc697([0x79])]:_0x3bc697([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]),[_0x3bc697([0x61,0x6c,0x67])]:_0x3bc697([0x45,0x53,0x32,0x35,0x36])},_0x5debc9=_0xbe7155[_0x3bc697([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3bc697([0x67,0x65,0x74])](_0x3bc697([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1dce48(){let _0x3934a4,_0x4111bf=null,_0x178628=null;try{if(_0x5debc9==_0x3bc697([0x47,0x50,0x4c]))return _0x3bc697([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3934a4=_0x110e1e(),!_0x3934a4)return _0x3bc697([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3934a4[_0x3bc697([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x178628=_0x58806a(_0x3934a4[_0x3bc697([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3934a4[_0x3bc697([0x6a,0x74,0x69])])),await _0x2dbdcc()?_0x4881fd()?_0x3acc1b()?_0x3bc697([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3222a6()?(_0x3934a4[_0x3bc697([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3bc697([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4111bf=_0x3d67c1(_0x3bc697([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3934a4[_0x3bc697([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3bc697([0x74,0x72,0x69,0x61,0x6c])&&(_0x4111bf=_0x3d67c1(_0x3bc697([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4b782d()):_0x3bc697([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3bc697([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3bc697([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3bc697([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3acc1b(){const _0x11ca32=[_0x3bc697([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3bc697([0x74,0x72,0x69,0x61,0x6c])][_0x3bc697([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3934a4[_0x3bc697([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5b99d9/0x3e8:0xe10*_0x25d7eb;return _0x3934a4[_0x3bc697([0x65,0x78,0x70])]<_0x11ca32;}function _0x4881fd(){const _0x43b1f0=_0x3934a4[_0x3bc697([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x43b1f0)return!0x1;if(_0x43b1f0[_0x3bc697([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bc697([0x2a])))return!0x0;if(_0x43b1f0[_0x3bc697([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bc697([0x54,0x43])))return!0x0;if(_0x43b1f0[_0x3bc697([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bc697([0x52,0x54,0x43]))){if(_0x485845())return!0x0;if(_0x526662()||_0x294ae8())return!0x0;}return!0x1;}function _0x3222a6(){const _0x397290=_0x3934a4[_0x3bc697([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x397290||0x0==_0x397290[_0x3bc697([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x300f85}=new URL(window[_0x3bc697([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x397290[_0x3bc697([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x300f85))return!0x0;const _0x3419fd=_0x300f85[_0x3bc697([0x73,0x70,0x6c,0x69,0x74])](_0x3bc697([0x2e]));return _0x397290[_0x3bc697([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1d02f1=>_0x1d02f1[_0x3bc697([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bc697([0x2a])))[_0x3bc697([0x6d,0x61,0x70])](_0x25e960=>_0x25e960[_0x3bc697([0x73,0x70,0x6c,0x69,0x74])](_0x3bc697([0x2e])))[_0x3bc697([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xee0d76=>_0xee0d76[_0x3bc697([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3419fd[_0x3bc697([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3bc697([0x6d,0x61,0x70])](_0x1b333b=>Array(_0x3419fd[_0x3bc697([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1b333b[_0x3bc697([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3bc697([0x66,0x69,0x6c,0x6c])](_0x1b333b[0x0]===_0x3bc697([0x2a])?_0x3bc697([0x2a]):'')[_0x3bc697([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1b333b))[_0x3bc697([0x73,0x6f,0x6d,0x65])](_0x2835f8=>_0x3419fd[_0x3bc697([0x65,0x76,0x65,0x72,0x79])]((_0x10399d,_0x4c37fd)=>_0x2835f8[_0x4c37fd]===_0x10399d||_0x2835f8[_0x4c37fd]===_0x3bc697([0x2a])));}function _0x4b782d(){return _0x4111bf&&_0x178628?new window[(_0x3bc697([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ef490,_0x59ebeb)=>{_0x4111bf[_0x3bc697([0x74,0x68,0x65,0x6e])](_0x1ef490,_0x59ebeb),_0x178628[_0x3bc697([0x74,0x68,0x65,0x6e])](_0x14abaa=>{_0x14abaa!=_0x3bc697([0x56,0x61,0x6c,0x69,0x64])&&_0x1ef490(_0x14abaa);},_0x59ebeb);}):_0x4111bf||_0x178628||_0x3bc697([0x56,0x61,0x6c,0x69,0x64]);}}function _0x58806a(_0x4dc67d,_0x4eed79){return new window[(_0x3bc697([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cf903=>{if(_0x1eabbf())return _0x4cf903(_0x3bc697([0x56,0x61,0x6c,0x69,0x64]));_0x4f6a66(),_0xbe7155[_0x3bc697([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3bc697([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4fb642=!0x1;const _0x327d1b=_0x2844ab();function _0x149684(_0x1c328a){return!!_0x1c328a&&(typeof _0x1c328a===_0x3bc697([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1c328a===_0x3bc697([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1c328a[_0x3bc697([0x74,0x68,0x65,0x6e])]===_0x3bc697([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1c328a[_0x3bc697([0x63,0x61,0x74,0x63,0x68])]===_0x3bc697([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x48594b(_0x367aef){_0x56132a(_0x367aef)[_0x3bc697([0x74,0x68,0x65,0x6e])](_0x1cb8e9=>{if(!_0x1cb8e9||_0x1cb8e9[_0x3bc697([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3bc697([0x6f,0x6b]))return _0x3bc697([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x465c11(_0x4c2f45(_0x327d1b+_0x4eed79))!=_0x1cb8e9[_0x3bc697([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3bc697([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3bc697([0x56,0x61,0x6c,0x69,0x64]);})[_0x3bc697([0x74,0x68,0x65,0x6e])](_0x139f4b=>(_0x376503(),_0x139f4b),()=>{const _0x5c22e3=_0x597e09();return null==_0x5c22e3?(_0x376503(),_0x3bc697([0x56,0x61,0x6c,0x69,0x64])):_0x3bc697(_0x5b99d9-_0x5c22e3>(0x27d454df^_0x1f13dd)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3bc697([0x74,0x68,0x65,0x6e])](_0x4cf903)[_0x3bc697([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4cf903(_0x3bc697([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x182065=0x3ee3e5f^_0x1f13dd;function _0x376503(){const _0xeff03=_0x3bc697([0x6c,0x6c,0x63,0x74,0x2d])+_0x465c11(_0x4c2f45(_0x4dc67d)),_0x24cbb3=_0x15cd78(_0x465c11(window[_0x3bc697([0x4d,0x61,0x74,0x68])][_0x3bc697([0x63,0x65,0x69,0x6c])](_0x5b99d9/_0x182065)));window[_0x3bc697([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3bc697([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xeff03,_0x24cbb3);}function _0x597e09(){const _0x46c214=_0x3bc697([0x6c,0x6c,0x63,0x74,0x2d])+_0x465c11(_0x4c2f45(_0x4dc67d)),_0xce2a48=window[_0x3bc697([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3bc697([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x46c214);return _0xce2a48?window[_0x3bc697([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15cd78(_0xce2a48),0x10)*_0x182065:null;}function _0x56132a(_0x3aed7e){return new window[(_0x3bc697([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x631811,_0x3fc01c)=>{_0x3aed7e[_0x3bc697([0x74,0x68,0x65,0x6e])](_0x631811,_0x3fc01c),window[_0x3bc697([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3fc01c,0x3d9041f^_0x1f13dd);});}}_0xbe7155[_0x3bc697([0x6f,0x6e])](_0x3bc697([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x23c0e5,_0x31554d)=>{if(_0x31554d[0x0]!=_0x4dc67d)return _0x4cf903(_0x3bc697([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x31554d[0x1]={..._0x31554d[0x1],[_0x3bc697([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x327d1b};},{[_0x3bc697([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3bc697([0x68,0x69,0x67,0x68])}),_0xbe7155[_0x3bc697([0x6f,0x6e])](_0x3bc697([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2163f1=>{_0x149684(_0x2163f1[_0x3bc697([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4fb642=!0x0,_0x48594b(_0x2163f1[_0x3bc697([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3bc697([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3bc697([0x6c,0x6f,0x77])}),_0x47e4d0[_0x3bc697([0x74,0x68,0x65,0x6e])](()=>{_0x4fb642||_0x4cf903(_0x3bc697([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1eabbf(){return _0xbe7155[_0x3bc697([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3bc697([0x76,0x69,0x65,0x77])][_0x3bc697([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3bc697([0x61,0x75,0x74,0x6f]);}function _0x4f6a66(){_0xbe7155[_0x3bc697([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3bc697([0x76,0x69,0x65,0x77])][_0x3bc697([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3bc697([0x61,0x75,0x74,0x6f]);}}function _0x3d67c1(_0x4bbdf6){const _0x4d1275=[new window[(_0x3bc697([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x342966=>setTimeout(_0x342966,0x3d1ee13^_0x1f13dd)),_0x47e4d0[_0x3bc697([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3bc697([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f9828=>{let _0x161744=0x0;_0xbe7155[_0x3bc697([0x6d,0x6f,0x64,0x65,0x6c])][_0x3bc697([0x6f,0x6e])](_0x3bc697([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3c6e1e,_0x293923)=>{_0x293923[0x0][_0x3bc697([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x161744++,_0x161744==(0x3d8d127^_0x1f13dd)&&(_0x3f9828(),_0x3c6e1e[_0x3bc697([0x6f,0x66,0x66])]());});}))];return window[_0x3bc697([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3bc697([0x72,0x61,0x63,0x65])](_0x4d1275)[_0x3bc697([0x74,0x68,0x65,0x6e])](()=>_0x4bbdf6);}async function _0x3b4292(){await _0x47e4d0,_0xbe7155[_0x3bc697([0x6d,0x6f,0x64,0x65,0x6c])][_0x3bc697([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x59abaf,_0xbe7155[_0x3bc697([0x6d,0x6f,0x64,0x65,0x6c])][_0x3bc697([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x59abaf,_0xbe7155[_0x3bc697([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3bc697([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x485845(){return _0x1216ae(_0x3bc697([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x693afc(_0x3bc697([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3bc697([0x73,0x74,0x61,0x74,0x65])]==_0x3bc697([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x526662(){return _0x1216ae(_0x3bc697([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 _0x294ae8(){return _0x1216ae(_0x3bc697([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2e1e26(_0x181f4d){const _0x55d797=_0x473390();_0xbe7155[_0x55d797]=_0x3bc697([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x181f4d,_0x181f4d!=_0x3bc697([0x56,0x61,0x6c,0x69,0x64])&&_0x3b4292();}function _0x473390(){const _0x46da8a=window[_0x3bc697([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3bc697([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3bc697([0x6e,0x6f,0x77])]())[_0x3bc697([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3bc697([0x2e]),'');let _0x267d82=_0x3bc697([0x52]);for(let _0x32f3e9=0x0;_0x32f3e9<_0x46da8a[_0x3bc697([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x32f3e9+=0x2){let _0x712da0=window[_0x3bc697([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x46da8a[_0x3bc697([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x32f3e9,_0x32f3e9+0x2));_0x712da0>=_0x3a4174[_0x3bc697([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x712da0-=_0x3a4174[_0x3bc697([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x267d82+=_0x3a4174[_0x712da0];}return _0x267d82;}function _0x110e1e(){const _0x3f7747=_0x5debc9[_0x3bc697([0x73,0x70,0x6c,0x69,0x74])](_0x3bc697([0x2e]));if(0x3!=_0x3f7747[_0x3bc697([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x484862(_0x3f7747[0x1]);function _0x484862(_0x27b992){const _0x16f3ec=_0x44610a(_0x27b992);return _0x16f3ec&&_0x7d3883()?_0x16f3ec:null;function _0x7d3883(){const _0x80a1d2=_0x16f3ec[_0x3bc697([0x6a,0x74,0x69])],_0x2f1f2c=window[_0x3bc697([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x80a1d2[_0x3bc697([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x80a1d2[_0x3bc697([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x14258c={..._0x16f3ec,[_0x3bc697([0x6a,0x74,0x69])]:_0x80a1d2[_0x3bc697([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x80a1d2[_0x3bc697([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x14258c[_0x3bc697([0x76,0x63])],_0x4c2f45(_0x14258c)==_0x2f1f2c;}}}async function _0x2dbdcc(){let _0x8c75d=!0x0;try{const _0x2d4fce=_0x5debc9[_0x3bc697([0x73,0x70,0x6c,0x69,0x74])](_0x3bc697([0x2e])),[_0x1e59ed,_0x5bf146,_0x2cc2db]=_0x2d4fce;return _0x2a28a9(_0x1e59ed),await _0x513580(_0x1e59ed,_0x5bf146,_0x2cc2db),_0x8c75d;}catch{return!0x1;}function _0x2a28a9(_0x38bbc0){const _0x456b46=_0x44610a(_0x38bbc0);_0x456b46&&_0x456b46[_0x3bc697([0x61,0x6c,0x67])]==_0x3bc697([0x45,0x53,0x32,0x35,0x36])||(_0x8c75d=!0x1);}async function _0x513580(_0x2f54b3,_0x3d3478,_0x2b341b){const _0x189ea3=window[_0x3bc697([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3bc697([0x66,0x72,0x6f,0x6d])](_0x18835f(_0x2b341b),_0x22c44e=>_0x22c44e[_0x3bc697([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x21d2e8=new window[(_0x3bc697([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3bc697([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2f54b3+_0x3bc697([0x2e])+_0x3d3478),_0x225c65=window[_0x3bc697([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3bc697([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x225c65)return;const _0x5baec1=await _0x225c65[_0x3bc697([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3bc697([0x6a,0x77,0x6b]),_0x527b16,{[_0x3bc697([0x6e,0x61,0x6d,0x65])]:_0x3bc697([0x45,0x43,0x44,0x53,0x41]),[_0x3bc697([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3bc697([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3bc697([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x225c65[_0x3bc697([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3bc697([0x6e,0x61,0x6d,0x65])]:_0x3bc697([0x45,0x43,0x44,0x53,0x41]),[_0x3bc697([0x68,0x61,0x73,0x68])]:{[_0x3bc697([0x6e,0x61,0x6d,0x65])]:_0x3bc697([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5baec1,_0x189ea3,_0x21d2e8)||(_0x8c75d=!0x1);}}function _0x44610a(_0x56a071){return _0x56a071[_0x3bc697([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3bc697([0x65,0x79]))?JSON[_0x3bc697([0x70,0x61,0x72,0x73,0x65])](_0x18835f(_0x56a071)):null;}function _0x18835f(_0x18a052){return window[_0x3bc697([0x61,0x74,0x6f,0x62])](_0x18a052[_0x3bc697([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3bc697([0x2b]))[_0x3bc697([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3bc697([0x2f])));}function _0x4c2f45(_0x47f7cd){let _0xbe157c=0x1505;function _0x316d6c(_0x1b0382){for(let _0x35b5ea=0x0;_0x35b5ea<_0x1b0382[_0x3bc697([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35b5ea++){const _0x6fa0ff=_0x1b0382[_0x3bc697([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x35b5ea);_0xbe157c=(_0xbe157c<<0x5)+_0xbe157c+_0x6fa0ff,_0xbe157c&=_0xbe157c;}}function _0x131844(_0x3beec2){Array[_0x3bc697([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3beec2)?_0x3beec2[_0x3bc697([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x131844):_0x3beec2&&typeof _0x3beec2==_0x3bc697([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3bc697([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3beec2)[_0x3bc697([0x73,0x6f,0x72,0x74])]()[_0x3bc697([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1cb26c,_0x46c943])=>{_0x316d6c(_0x1cb26c),_0x131844(_0x46c943);}):_0x316d6c(window[_0x3bc697([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3beec2));}return _0x131844(_0x47f7cd),_0xbe157c>>>0x0;}function _0x465c11(_0x2e82b4){return _0x2e82b4[_0x3bc697([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3bc697([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3bc697([0x30]));}function _0x15cd78(_0xe14d78){return _0xe14d78[_0x3bc697([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3bc697([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3bc697([0x6a,0x6f,0x69,0x6e])]('');}function _0x1216ae(_0x56774b){return _0xbe7155[_0x3bc697([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3bc697([0x68,0x61,0x73])](_0x56774b);}function _0x693afc(_0x1cf8ef){return _0xbe7155[_0x3bc697([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3bc697([0x67,0x65,0x74])](_0x1cf8ef);}function _0x59abaf(){}function _0x3bc697(_0x31bd87){return _0x31bd87['map'](_0x44931a=>String['fromCharCode'](_0x44931a))['join']('');}_0x2e1e26(await _0x1dce48());}(this);}set['adapter'](_0x36473e){if(this['_adapter'])throw new _0x42e154('track-changes-adapter-already-set',this);this['_adapter']=_0x36473e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xe36ac4=!0x1,toJSON:_0x356b3e=!0x1}={}){const _0x323dd1=[];for(const _0x128c55 of this['_suggestions']['values']())_0xe36ac4&&!_0x128c55['isInContent']||_0x323dd1['push'](_0x128c55);return _0x356b3e?_0x323dd1['map'](_0x465c9d=>_0x465c9d['toJSON']()):_0x323dd1;}['getSuggestion'](_0x56a096){const _0x2c8167=this['_suggestions']['get'](_0x56a096);if(!_0x2c8167)throw new _0x42e154('track-changes-suggestion-not-found',this);return _0x2c8167;}['hasSuggestion'](_0x2f9e4e){return this['_suggestions']['has'](_0x2f9e4e);}['addSuggestionData'](_0x8e75f9){const {authorId:_0x4a216c,id:_0x2fb17d,originalSuggestionId:_0x75b065,attributes:_0x342ae9}=_0x8e75f9,[_0x54807f,_0x48e605]=_0x8e75f9['type']['split'](':'),_0x43313b=this['_suggestions']['get'](_0x2fb17d)||this['_createSuggestion'](_0x54807f,_0x48e605,_0x2fb17d,_0x4a216c,_0x342ae9,_0x75b065);if(this['_addThreadToSuggestion'](_0x43313b),this['_checkSuggestionCorrectness'](_0x43313b,_0x54807f,_0x48e605||null,_0x4a216c),_0x43313b['createdAt']=_0x8e75f9['createdAt'],_0x43313b['_isDataLoaded']=!0x0,_0x342ae9&&_0x342ae9['@external']){const _0x3b9c81=_0x342ae9['@external'],_0x103bd4=this['_getExternalAuthor'](_0x3b9c81['authorName']);_0x43313b['authoredAt']=_0x3b9c81['createdAt'],_0x43313b['author']=_0x103bd4,_0x43313b['isExternal']=!0x0;}else _0x43313b['authoredAt']=_0x8e75f9['createdAt'];switch(_0x8e75f9['data']&&(_0x43313b['data']=_0x8e75f9['data']),_0x8e75f9['attributes']&&(_0x43313b['attributes']=_0x8e75f9['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x43313b['_saved']=!0x0),this['_suggestionState']['get'](_0x43313b)){case'notReady':this['_suggestionState']['set'](_0x43313b,'dataReady');break;case'markerReady':_0x43313b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x43313b])),this['_refreshSuggestionsChain'](new Set([_0x43313b])),this['_suggestionState']['set'](_0x43313b,'ready'),this['fire']('suggestionLoaded',_0x43313b)):this['_suggestionState']['set'](_0x43313b,'removed');}return _0x43313b;}['acceptSuggestion'](_0x9be6a5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x591813 of _0x9be6a5['getAllAdjacentSuggestions']())_0x591813['accept']();});});}['discardSuggestion'](_0x1fe977){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x505d18 of _0x1fe977['getAllAdjacentSuggestions']())_0x505d18['discard']();});});}['enableCommand'](_0x4f3ce3,_0x4c414b){const _0x43ecaa=this['editor']['commands']['get'](_0x4f3ce3);if(!_0x43ecaa)throw new _0x42e154('track-changes-command-not-found',this,{'commandName':_0x4f3ce3});if(this['_enabledCommands']['has'](_0x43ecaa))throw new _0x42e154('track-changes-enable-command-twice',this,{'commandName':_0x4f3ce3});this['_enabledCommands']['add'](_0x43ecaa),_0x4c414b&&_0x43ecaa['on']('execute',(_0x2dc011,_0x565142)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x565142['length']>0x0&&_0x565142[_0x565142['length']-0x1]&&_0x565142[_0x565142['length']-0x1]['forceDefaultExecution']?_0x565142['pop']():(_0x2dc011['return']=_0x4c414b((..._0x3d323f)=>_0x43ecaa['execute'](..._0x3d323f,{'forceDefaultExecution':!0x0}),..._0x565142),_0x2dc011['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xfc81b9){let _0x4c68a2,_0x57128c;const _0x3754b9=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4c68a2=_0xfc81b9();}catch(_0x929374){_0x57128c=_0x929374;}return _0x3754b9||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x57128c&&_0x42e154['rethrowUnexpectedError'](_0x57128c,this),_0x4c68a2;}['markInsertion'](_0x23d3e5,_0x9dc74c=null,_0x5a731c={}){if(_0x23d3e5['isCollapsed'])return null;const _0x3aef6f=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x5a731c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4eae55,meta:_0x59941a}of this['_findSuggestions'](_0x23d3e5,'insertion'))if(_0x59941a['isOwn']){if(!_0x59941a['isNextTo']){if(_0x59941a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x4eae55,_0x5a731c))continue;return _0x4eae55;}if(sn(_0x4eae55,_0x5a731c))return _0x4eae55;this['_breakSuggestionMarker'](_0x4eae55,_0x23d3e5['start'],_0x23d3e5['end']);break;}if(_0x9dc74c==_0x4eae55['subType']&&sn(_0x4eae55,_0x5a731c)){const _0x1c36fd=_0x4eae55['getFirstRange']();return _0x1c36fd['start']['isEqual'](_0x23d3e5['end'])?this['_setSuggestionRange'](_0x4eae55,this['_model']['createRange'](_0x23d3e5['start'],_0x1c36fd['end'])):this['_setSuggestionRange'](_0x4eae55,this['_model']['createRange'](_0x1c36fd['start'],_0x23d3e5['end'])),_0x4eae55;}}const _0x575072=_0x2844ab(),_0x7120de=_0x3aef6f['id'],_0x664767=_0x9dc74c?'insertion:'+_0x9dc74c:'insertion',_0x1d739e=this['_setSuggestionData']({'id':_0x575072,'type':_0x664767,'createdAt':new Date(),'authorId':_0x7120de,'attributes':_0x5a731c});return this['_addSuggestionMarker'](_0x664767,_0x575072,_0x7120de,_0x23d3e5),_0x1d739e;}['markMultiRangeInsertion'](_0xc5d16f,_0x32beaa='multi',_0x2f58e1={}){const _0x56ad47=this['editor']['plugins']['get']('Users')['me'],_0x4123c1=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x32beaa,'join');this['_trackingSessionId']&&(_0x2f58e1['trackingSessionId']=this['_trackingSessionId']);for(const _0x27d2f3 of this['getSuggestions']())if(_0x27d2f3['author']['id']==_0x56ad47['id']&&'insertion'==_0x27d2f3['type']&&_0x27d2f3['subType']==_0x32beaa&&sn(_0x27d2f3,_0x2f58e1)&&(_0x4123c1(_0x27d2f3['getRanges'](),_0xc5d16f)||_0x4123c1(_0xc5d16f,_0x27d2f3['getRanges']()))){for(const _0x162b3f of _0xc5d16f)_0x27d2f3['addRange'](_0x162b3f);return _0x27d2f3;}for(const {suggestion:_0x1b734c,meta:_0x1ffb8c}of this['_findSuggestions'](_0xc5d16f,'insertion')){if(!_0x1ffb8c['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1ffb8c['containsRangeInObject'])continue;if(!sn(_0x1b734c,_0x2f58e1))continue;let _0xeca775=!0x0;for(const _0x10b6ef of _0x1b734c['getRanges']())for(const _0x24949d of _0xc5d16f)if(!_0x10b6ef['containsRange'](_0x24949d)){_0xeca775=!0x1;break;}if(_0xeca775)return _0x1b734c;}const _0x315c9c=_0x2844ab(),_0x2dc85f=_0x56ad47['id'],_0x52def5='insertion:'+_0x32beaa,_0x24a6a7=this['_setSuggestionData']({'id':_0x315c9c,'type':_0x52def5,'createdAt':new Date(),'authorId':_0x2dc85f,'attributes':_0x2f58e1});for(const _0x13275b of _0xc5d16f)this['_addSuggestionMarker'](_0x52def5,_0x315c9c,_0x2dc85f,_0x13275b,x['getMultiRangeId']());return _0x24a6a7;}['markInlineFormat'](_0x10f17b,_0x2dba9a,_0x2baa6c=null,_0x5c417c={}){if(_0x2baa6c=_0x2baa6c||Ht(_0x2dba9a),_0x10f17b['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x5c417c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x33982e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2baa6c,'accept');return this['forceDefaultExecution'](()=>_0x33982e([_0x10f17b],_0x2dba9a,_0x5c417c)),null;}const _0x209a7d=this['editor']['plugins']['get']('Users')['me'],_0x3d7899=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3b7253,meta:_0x4a0806}of this['_findSuggestions'](_0x10f17b,'insertion'))_0x4a0806['isOwn']&&!_0x4a0806['isInsideObject']&&_0x3d7899['push'](..._0x3b7253['getRanges']());}const _0x24e66a=function(_0x372476,_0x35d31b){const _0x3344e6=[];for(const _0x1b9f58 of _0x35d31b){const _0x67ef73=_0x372476['getIntersection'](_0x1b9f58);_0x67ef73&&_0x3344e6['push'](_0x67ef73);}return _0x3344e6;}(_0x10f17b,_0x3d7899),_0x300502=function(_0x167956,_0x529681){const _0x3855a3=[_0x167956];for(const _0x2b5a74 of _0x529681){let _0x23433b=0x0;for(;_0x23433b<_0x3855a3['length'];){const _0x27bbf5=_0x3855a3[_0x23433b]['getDifference'](_0x2b5a74);_0x3855a3['splice'](_0x23433b,0x1,..._0x27bbf5),_0x23433b+=_0x27bbf5['length'];}}return _0x3855a3;}(_0x10f17b,_0x3d7899);_0x24e66a['length']&&this['_model']['change'](()=>{for(const _0x4f94b9 of _0x24e66a){const _0x1f690a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2baa6c,'accept');this['forceDefaultExecution'](()=>_0x1f690a([_0x4f94b9],_0x2dba9a,_0x5c417c));}});for(const _0x3e9557 of _0x300502){let _0x1ad8e1=null,_0x5b7421=_0x3e9557['start'],_0x3e132a=_0x3e9557['end'];for(const {suggestion:_0x183163,meta:_0x43a1f0}of this['_findSuggestions'](_0x3e9557,'formatInline')){if(!_0x43a1f0['isOwn'])continue;if(_0x183163['subType']!=_0x2baa6c)continue;if(!sn(_0x183163,_0x5c417c))continue;const _0x1f10e3=_0x183163['getFirstRange']();if(_0x1f10e3['containsRange'](_0x3e9557,!0x0))return null;_0x5b7421=_0x5b7421['isBefore'](_0x1f10e3['start'])?_0x5b7421:_0x1f10e3['start'],_0x3e132a=_0x3e132a['isAfter'](_0x1f10e3['end'])?_0x3e132a:_0x1f10e3['end'],_0x1ad8e1?_0x1f10e3['start']['isBefore'](_0x1ad8e1['getFirstRange']()['start'])?(_0x1ad8e1['removeMarkers'](),_0x1ad8e1=_0x183163):_0x183163['removeMarkers']():_0x1ad8e1=_0x183163;}const _0x409583=this['_model']['createRange'](_0x5b7421,_0x3e132a);if(_0x1ad8e1)this['_setSuggestionRange'](_0x1ad8e1,_0x409583);else{const _0x3f1949=_0x2844ab(),_0x449d7c=_0x209a7d['id'];this['_setSuggestionData']({'id':_0x3f1949,'type':'formatInline:'+_0x2baa6c,'data':_0x2dba9a,'createdAt':new Date(),'authorId':_0x449d7c,'attributes':_0x5c417c}),this['_addSuggestionMarker']('formatInline:'+_0x2baa6c,_0x3f1949,_0x449d7c,_0x409583);}}return null;}['markBlockFormat'](_0x353aab,_0x2fa5ce,_0xcf6572=[],_0x1c31c8=null,_0x58c605={}){_0x2fa5ce['formatGroupId']||(_0x2fa5ce['formatGroupId']=_0x2fa5ce['commandName']),_0x2fa5ce['multipleBlocks']=_0x353aab['is']('range'),_0x1c31c8=_0x1c31c8||Ht(_0x2fa5ce);const _0x19468b=_0xcf6572['map'](_0x32f6a9=>tn(_0x32f6a9,this['_model'])),_0x464539=_0x353aab['is']('range')?_0x353aab:tn(_0x353aab,this['_model']);if(this['_trackingSessionId']&&(_0x58c605['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x550c6a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1c31c8,'accept');return this['forceDefaultExecution'](()=>_0x550c6a([_0x464539],_0x2fa5ce,_0x58c605)),null;}_0x19468b['push'](_0x464539);let _0x41180a=!0x0;for(const _0x296d6a of _0x19468b)if(!this['_rangeIsInLocalUserInsertion'](_0x296d6a)){_0x41180a=!0x1;break;}if(_0x41180a&&'always'!==this['_trackFormatChanges']){const _0x1c50b8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1c31c8,'accept');return this['forceDefaultExecution'](()=>_0x1c50b8([_0x464539],_0x2fa5ce,_0x58c605)),null;}let _0x94655a=null,_0xeb0a5e=_0x464539['start'],_0x1a7fa6=_0x464539['end'];for(const {suggestion:_0x5b43f1,meta:_0x1e10a0}of this['_findSuggestions'](_0x464539,'formatBlock')){if(!_0x1e10a0['isOwn'])continue;if(_0x1e10a0['isNextTo']||_0x1e10a0['containsRangeInObject']||_0x1e10a0['isInsideObject'])continue;if(_0x5b43f1['data']['formatGroupId']!=_0x2fa5ce['formatGroupId'])continue;if(!sn(_0x5b43f1,_0x58c605))continue;const _0x17d72f=_0x5b43f1['getFirstRange']();if(_0x5b43f1['subType']==_0x1c31c8){if(_0x17d72f['containsRange'](_0x464539,!0x0))return null;_0xeb0a5e=_0xeb0a5e['isBefore'](_0x17d72f['start'])?_0xeb0a5e:_0x17d72f['start'],_0x1a7fa6=_0x1a7fa6['isAfter'](_0x17d72f['end'])?_0x1a7fa6:_0x17d72f['end'],_0x94655a?_0x17d72f['start']['isBefore'](_0x94655a['getFirstRange']()['start'])?(_0x94655a['removeMarkers'](),_0x94655a=_0x5b43f1):_0x5b43f1['removeMarkers']():_0x94655a=_0x5b43f1;}else{const _0x28fa10=_0x464539['getIntersection'](_0x17d72f);this['_cutOutSuggestionMarker'](_0x5b43f1,_0x28fa10);}}const _0x4beb08=this['editor']['plugins']['get']('Users')['me'],_0xfa9c9d=_0x2844ab(),_0x301a2f=_0x4beb08['id'];if(_0x94655a)return this['_setSuggestionRange'](_0x94655a,this['_model']['createRange'](_0xeb0a5e,_0x1a7fa6)),_0x94655a;{const _0x1bf483=this['_setSuggestionData']({'id':_0xfa9c9d,'type':'formatBlock:'+_0x1c31c8,'data':_0x2fa5ce,'createdAt':new Date(),'authorId':_0x301a2f,'attributes':_0x58c605});return this['_addSuggestionMarker']('formatBlock:'+_0x1c31c8,_0xfa9c9d,_0x301a2f,this['_model']['createRange'](_0xeb0a5e,_0x1a7fa6)),_0x1bf483;}}['markMultiRangeBlockFormat'](_0x49c1d0,_0x4b74f1,_0x244362=[],_0x3fe7d9=null,_0x3c468c={}){_0x4b74f1['formatGroupId']||(_0x4b74f1['formatGroupId']=_0x4b74f1['commandName']);const _0x546004=_0x49c1d0[0x0];_0x4b74f1['multipleBlocks']=_0x546004['is']('range'),_0x3fe7d9=_0x3fe7d9||Ht(_0x4b74f1);const _0x669c44=_0x244362['map'](_0x3b2e3d=>tn(_0x3b2e3d,this['_model'])),_0x277441=_0x546004['is']('range')?_0x49c1d0:_0x49c1d0['map'](_0x39ca81=>tn(_0x39ca81,this['_model']));if(this['_trackingSessionId']&&(_0x3c468c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4884fa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3fe7d9,'accept');return this['forceDefaultExecution'](()=>_0x4884fa(_0x277441,_0x4b74f1,_0x3c468c)),null;}_0x669c44['push'](..._0x277441);let _0x51c5bf=!0x0;for(const _0x292fce of _0x669c44)if(!this['_rangeIsInLocalUserInsertion'](_0x292fce)){_0x51c5bf=!0x1;break;}if(_0x51c5bf&&'always'!==this['_trackFormatChanges']){const _0x5d3634=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3fe7d9,'accept');return this['forceDefaultExecution'](()=>_0x5d3634(_0x277441,_0x4b74f1,_0x3c468c)),null;}const _0x8a8156=this['editor']['plugins']['get']('Users')['me'];for(const _0x741afd of this['getSuggestions']()){const _0x532aeb=_0x741afd['data'];if(_0x741afd['author']['id']!=_0x8a8156['id'])continue;if('formatBlock'!=_0x741afd['type']||_0x532aeb['formatGroupId']!=_0x4b74f1['formatGroupId'])continue;if(!sn(_0x741afd,_0x3c468c))continue;const _0x20017b=_0x741afd['subType']==_0x3fe7d9;for(let _0x551812=0x0;_0x551812<_0x277441['length'];_0x551812++){const _0x47c48f=_0x277441[_0x551812];for(const _0x438a8d of _0x741afd['getMarkers']()){const _0x205cf7=_0x438a8d['getRange']();if(_0x47c48f['isEqual'](_0x205cf7)){_0x20017b?(_0x277441['splice'](_0x551812,0x1),_0x551812--):_0x741afd['removeMarker'](_0x438a8d['name']);break;}}}}if(0x0==_0x277441['length'])return null;const _0x583c14=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3fe7d9,'join');for(const _0x33c0ca of this['getSuggestions']()){const _0x2d931a=_0x33c0ca['data'];if(_0x33c0ca['author']['id']==_0x8a8156['id']&&('formatBlock'==_0x33c0ca['type']&&_0x2d931a['formatGroupId']==_0x4b74f1['formatGroupId']&&_0x33c0ca['subType']==_0x3fe7d9&&sn(_0x33c0ca,_0x3c468c)&&(_0x583c14(_0x33c0ca['getRanges'](),_0x277441)||_0x583c14(_0x277441,_0x33c0ca['getRanges']())))){for(const _0xae4a51 of _0x277441)_0x33c0ca['addRange'](_0xae4a51);return _0x33c0ca;}}const _0x1953fb=_0x2844ab(),_0x70710c=_0x8a8156['id'],_0x26ee8f='formatBlock:'+_0x3fe7d9,_0x4c1e43=this['_setSuggestionData']({'id':_0x1953fb,'type':_0x26ee8f,'data':_0x4b74f1,'createdAt':new Date(),'authorId':_0x70710c,'attributes':_0x3c468c});for(const _0x44eebe of _0x277441)this['_addSuggestionMarker'](_0x26ee8f,_0x1953fb,_0x70710c,_0x44eebe,x['getMultiRangeId']());return _0x4c1e43;}['markDeletion'](_0x2656e6,_0x519816=null,_0x51c2d8={}){if(_0x2656e6['isCollapsed'])return null;const _0x480bf2=this['editor']['plugins']['get']('Users')['me'],_0x11f042=new _0x468db3(_0x2656e6['start'],_0x2656e6['end']);this['_trackingSessionId']&&(_0x51c2d8['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x534a70,meta:_0x44d9f3}of this['_findSuggestions'](_0x11f042,'insertion'))if(_0x44d9f3['isOwn']&&!_0x44d9f3['isNextTo']){if(_0x534a70['isMultiRange']){const _0x2317c6=_0x534a70['getRanges']()['filter'](_0x92c40=>'$graveyard'!=_0x92c40['root']['rootName']);_0x2317c6['every'](_0x1de1ea=>_0x11f042['containsRange'](_0x1de1ea,!0x0))&&_0x534a70['discard']();if(_0x2317c6['some'](_0x28a5f9=>_0x28a5f9['containsRange'](_0x11f042,!0x0))){const _0x2fabac=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x519816,'accept');return this['forceDefaultExecution'](()=>_0x2fabac([_0x11f042],null,_0x51c2d8)),null;}}else{const _0x17bd90=_0x11f042['getIntersection'](_0x534a70['getFirstRange']());null!==_0x17bd90&&_0x534a70['_onDiscard']([_0x17bd90],null,_0x51c2d8);}}if(_0x11f042['detach'](),_0x11f042['isCollapsed']||'$graveyard'==_0x11f042['root']['rootName'])return null;let _0x293b6f=null,_0x14776f=_0x11f042['start'],_0x18bdff=_0x11f042['end'];const _0x5264f0=this['_findSuggestions'](_0x11f042,'deletion');for(const {suggestion:_0x4c4279,meta:_0x3adaaa}of _0x5264f0){const _0x2a9e4d=this['_model']['createRange'](_0x14776f,_0x18bdff);if(_0x3adaaa['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3adaaa['containsRangeInObject']&&!_0x3adaaa['isInsideObject'])){if(_0x4c4279['isMultiRange']){if(!sn(_0x4c4279,_0x51c2d8))continue;let _0x2b6c84=!0x0;for(const _0x3f2725 of _0x4c4279['getRanges']()){if(_0x3f2725['containsRange'](_0x2a9e4d,!0x0))return _0x4c4279;_0x2a9e4d['containsRange'](_0x3f2725)||(_0x2b6c84=!0x1);}_0x2b6c84&&_0x4c4279['discard']();}else{const _0x39ed2c=_0x4c4279['getFirstRange']();if(_0x39ed2c['containsRange'](_0x2a9e4d,!0x0))return _0x4c4279;if(!sn(_0x4c4279,_0x51c2d8)){_0x2a9e4d['containsRange'](_0x39ed2c)?_0x4c4279['removeMarkers']():_0x39ed2c['containsPosition'](_0x14776f)?_0x14776f=_0x39ed2c['end']:_0x39ed2c['containsPosition'](_0x18bdff)&&(_0x18bdff=_0x39ed2c['start']);continue;}_0x14776f=_0x14776f['isBefore'](_0x39ed2c['start'])?_0x14776f:_0x39ed2c['start'],_0x18bdff=_0x18bdff['isAfter'](_0x39ed2c['end'])?_0x18bdff:_0x39ed2c['end'],_0x51c2d8=Object['assign']({},_0x4c4279['attributes']),_0x293b6f?_0x39ed2c['start']['isBefore'](_0x293b6f['getFirstRange']()['start'])?(_0x293b6f['removeMarkers'](),_0x293b6f=_0x4c4279):_0x4c4279['removeMarkers']():_0x293b6f=_0x4c4279;}}}if(_0x293b6f)return this['_setSuggestionRange'](_0x293b6f,this['_model']['createRange'](_0x14776f,_0x18bdff)),_0x293b6f;{const _0x57286f=_0x2844ab(),_0x9b30b=this['_model']['createRange'](_0x14776f,_0x18bdff),_0x4365ec=_0x480bf2['id'],_0x439ae6=_0x519816?'deletion:'+_0x519816:'deletion',_0x24db54=this['_setSuggestionData']({'id':_0x57286f,'type':_0x439ae6,'createdAt':new Date(),'authorId':_0x4365ec,'attributes':_0x51c2d8});return this['_addSuggestionMarker'](_0x439ae6,_0x57286f,_0x4365ec,_0x9b30b),_0x24db54;}}['markMultiRangeDeletion'](_0x33f4b5,_0x315524='multi',_0x2ed80a={}){const _0x4638fb=this['editor']['plugins']['get']('Users')['me'],_0xe473e1=_0x33f4b5['map'](_0x5354be=>new _0x468db3(_0x5354be['start'],_0x5354be['end'])),_0x402e7e=new Set();this['_trackingSessionId']&&(_0x2ed80a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x408306,meta:_0x1dd73c}of this['_findSuggestions'](_0xe473e1,'insertion'))_0x1dd73c['isOwn']&&!_0x1dd73c['isNextTo']&&_0x402e7e['add'](_0x408306);for(const _0x3c8095 of _0x402e7e)if(_0x3c8095['isMultiRange']){const _0x4eda49=_0x3c8095['getRanges']();(!_0x3c8095['attributes']||!_0x3c8095['attributes']['skipNestingCheck'])&&(_0x4eda49['every'](_0xba18f0=>_0xe473e1['some'](_0x4ef05c=>_0x4ef05c['containsRange'](_0xba18f0,!0x0)))&&_0x3c8095['discard']());if(_0xe473e1['every'](_0x2b6a29=>_0x4eda49['some'](_0x2568a8=>_0x2568a8['containsRange'](_0x2b6a29,!0x0)))){const _0x344a36=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x315524,'accept');return this['forceDefaultExecution'](()=>_0x344a36(_0x33f4b5,null,_0x2ed80a)),null;}}else{const _0xb7c273=_0x3c8095['getFirstRange']();_0xe473e1['some'](_0x43b0a8=>_0x43b0a8['containsRange'](_0xb7c273,!0x0))&&_0x3c8095['discard']();if(_0xe473e1['every'](_0x32f6e9=>_0xb7c273['containsRange'](_0x32f6e9,!0x0))){const _0x41160d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x315524,'accept');return this['forceDefaultExecution'](()=>_0x41160d(_0xe473e1,null,_0x2ed80a)),null;}}const _0x2e23e8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x315524,'join');let _0x36beea=null;for(const _0x2f9f85 of this['getSuggestions']())if(_0x2f9f85['author']['id']==_0x4638fb['id']&&_0x2f9f85['isInContent']&&'deletion'==_0x2f9f85['type']&&_0x2f9f85['subType']==_0x315524&&sn(_0x2f9f85,_0x2ed80a)&&(_0x2e23e8(_0x2f9f85['getRanges'](),_0xe473e1)||_0x2e23e8(_0xe473e1,_0x2f9f85['getRanges']()))){if(_0x36beea){if(_0x2f9f85['commentThread']&&_0x2f9f85['commentThread']['length'])continue;for(const _0x3a08fb of _0x2f9f85['getRanges']())_0x36beea['isIntersectingWithRange'](_0x3a08fb)||_0x36beea['addRange'](_0x3a08fb);_0x2f9f85['removeMarkers']();}else{_0x36beea=_0x2f9f85;for(const _0x338aac of _0xe473e1)_0x2f9f85['isIntersectingWithRange'](_0x338aac)||_0x2f9f85['addRange'](_0x338aac);}}if(_0x36beea)return _0x36beea;_0x402e7e['clear']();for(const {suggestion:_0x510207,meta:_0x2b8217}of this['_findSuggestions'](_0xe473e1,'deletion'))_0x2b8217['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2b8217['containsRangeInObject']&&!_0x2b8217['isInsideObject'])&&sn(_0x510207,_0x2ed80a)&&_0x402e7e['add'](_0x510207);for(const _0x3f5051 of _0x402e7e){const _0x4234c2=_0x3f5051['getRanges']();if(!_0x2ed80a||!_0x2ed80a['skipNestingCheck']){if(_0xe473e1['every'](_0x37d060=>_0x4234c2['some'](_0x29e8cb=>_0x29e8cb['containsRange'](_0x37d060,!0x0))))return _0x3f5051;}(!_0x3f5051['attributes']||!_0x3f5051['attributes']['skipNestingCheck'])&&(_0x4234c2['every'](_0x2b32e5=>_0xe473e1['some'](_0xff3f81=>_0xff3f81['containsRange'](_0x2b32e5,!0x0)))&&_0x3f5051['discard']());}const _0x3452b6=_0x2844ab(),_0x1bd849=_0x4638fb['id'],_0x4caf72='deletion:'+_0x315524,_0x3de501=this['_setSuggestionData']({'id':_0x3452b6,'type':_0x4caf72,'createdAt':new Date(),'authorId':_0x1bd849,'attributes':_0x2ed80a});for(const _0x214214 of _0xe473e1)_0x214214['detach'](),_0x214214['isCollapsed']||'$graveyard'==_0x214214['root']['rootName']||this['_addSuggestionMarker'](_0x4caf72,_0x3452b6,_0x1bd849,_0x214214,x['getMultiRangeId']());return _0x3de501;}['markAttributeChange'](_0x3bb30b,_0x2a9c37,_0x5f48ae,_0x262126,_0xb3fc4e){if(_0x3bb30b['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3da5f6=this['editor']['plugins']['get']('Users')['me']['id'],_0x4906b1=Array['from'](this['_suggestions']['values']())['filter'](_0x516a83=>'attribute'==_0x516a83['type']&&_0x516a83['data']['key']==_0x2a9c37&&_0x516a83['isIntersectingWithRange'](_0x3bb30b));if(this['_trackingSessionId']&&(_0xb3fc4e['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x56de67=this['_findSuggestions'](_0x3bb30b,'insertion')['filter'](({meta:_0x30dbaa})=>_0x30dbaa['isOwn']&&!_0x30dbaa['isInsideObject']&&!_0x30dbaa['isNextTo'])['map'](({suggestion:_0x16eeb9})=>_0x16eeb9);_0x4906b1['unshift'](..._0x56de67);}const _0x4fe5c6=new Map([[_0x3bb30b,_0x5f48ae]]);for(const _0x5cc088 of _0x4906b1){const _0x198d89='attribute'==_0x5cc088['type']?_0x5cc088['data']['oldValue']:void 0x0,_0x1f2214=_0x5cc088['getFirstRange'](),_0x4b7cf8=Array['from'](_0x4fe5c6['keys']())['find'](_0x3c1e86=>_0x3c1e86['isIntersecting'](_0x1f2214));if(!_0x4b7cf8)continue;const _0x3e9f75=_0x4b7cf8['getDifference'](_0x1f2214);this['_isBlockAttribute'](_0x2a9c37)&&'insertion'==_0x5cc088['type']&&0x0!=_0x3e9f75['length']||(_0x4fe5c6['delete'](_0x4b7cf8),_0x3e9f75['forEach'](_0x144c62=>{_0x4fe5c6['set'](_0x144c62,_0x5f48ae);}),'insertion'!=_0x5cc088['type']&&_0x198d89!=_0x262126&&_0x4fe5c6['set'](_0x4b7cf8['getIntersection'](_0x1f2214),_0x198d89));}const _0x4fe766=[];for(const [_0x582ba2,_0x4ded40]of _0x4fe5c6){const _0x5a619e=_0x2844ab(),_0xab4450={'key':_0x2a9c37,'oldValue':_0x4ded40,'newValue':_0x262126};_0x2a9c37['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':_0x2a9c37});const _0x182848=('attribute:'+(_0x2a9c37+'|'+Ht({'newValue':_0x262126})))['substring'](0x0,0x3c),_0x5d9e66=this['_setSuggestionData']({'id':_0x5a619e,'type':_0x182848,'data':_0xab4450,'createdAt':new Date(),'authorId':_0x3da5f6,'attributes':_0xb3fc4e});_0x4fe766['push'](_0x5d9e66),this['_addSuggestionMarker'](_0x182848,_0x5a619e,_0x3da5f6,_0x582ba2);}return _0x4fe766;}['enableDefaultAttributesIntegration'](_0x5ecde6){this['enableCommand'](_0x5ecde6,(_0x5285cf,..._0x2915a1)=>{this['recordAttributeChanges'](()=>{_0x5285cf(..._0x2915a1);});});}['registerBlockAttribute'](_0x1fdcf3){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0x1fdcf3);}['registerInlineAttribute'](_0x1d0e3f){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x1d0e3f);}['startTrackingSession'](_0x395c6d){return this['_trackingSessionId']=void 0x0!==_0x395c6d?_0x395c6d:_0x2844ab(),this['_trackingSessionId'];}['_getAttributeKey'](_0x21e55c){return'attribute'==_0x21e55c['type']?_0x21e55c['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x3f45c0){if(0x0==_0x3f45c0['length'])return;const _0x5c31fd=this['editor'],_0x3d5583=_0x5c31fd['plugins']['get'](_0xb40c62),_0x6598ee=[];_0x5c31fd['model']['change'](_0x4b6eb8=>{for(let _0x38bdc2=0x0;_0x38bdc2<_0x3f45c0['length'];_0x38bdc2++){const _0x2b23b9=_0x3f45c0[_0x38bdc2];if(_0x2b23b9['baseVersion']=_0x5c31fd['model']['document']['version'],_0x2b23b9['isDocumentOperation']=!0x0,_0x3d5583['isMarkedRemoveOperation'](_0x2b23b9)){const _0x2c9bc7=Lt(_0x2b23b9['newRange'],_0x5c31fd['model']);_0x6598ee['unshift'](_0x468db3['fromRange'](_0x2c9bc7));}else switch(_0x2b23b9['type']){case'rename':{const _0x5c6d73=_0x2b23b9['oldName'],_0x2facd4=_0x2b23b9['newName'];if(_0x5c6d73==_0x2facd4)break;_0x4b6eb8['batch']['addOperation'](_0x2b23b9),_0x5c31fd['model']['applyOperation'](_0x2b23b9);const _0x29db25='$elementName',_0x511506=_0x2b23b9['position'],_0x1eaa72=_0x5c31fd['model']['createRange'](_0x511506,_0x5c31fd['model']['createPositionAt'](_0x511506['nodeAfter'],'end'));this['markAttributeChange'](_0x1eaa72,_0x29db25,_0x5c6d73,_0x2facd4,{'groupId':_0x2844ab()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x55f23d=_0x2b23b9['oldValue'],_0x3d23e8=_0x2b23b9['newValue'];if(_0x55f23d==_0x3d23e8)break;_0x4b6eb8['batch']['addOperation'](_0x2b23b9),_0x5c31fd['model']['applyOperation'](_0x2b23b9);const _0x17ba1f=_0x2b23b9['key'];if(!this['_isRegisteredAttribute'](_0x17ba1f))break;const _0xf498b5=Lt(_0x2b23b9['range'],_0x5c31fd['model']);this['markAttributeChange'](_0xf498b5,_0x17ba1f,_0x55f23d,_0x3d23e8,{'groupId':_0x2844ab()});break;}case'insert':{_0x4b6eb8['batch']['addOperation'](_0x2b23b9),_0x5c31fd['model']['applyOperation'](_0x2b23b9);if(_0x3f45c0[_0x38bdc2+0x1]&&'move'==_0x3f45c0[_0x38bdc2+0x1]['type'])break;const _0x3fc814=_0x2b23b9['position'],_0x53308c=_0x2b23b9['howMany'],_0x43364d=Lt(_0x5c31fd['model']['createRange'](_0x3fc814,_0x3fc814['getShiftedBy'](_0x53308c)),_0x5c31fd['model']);this['markInsertion'](_0x43364d);break;}case'split':{_0x4b6eb8['batch']['addOperation'](_0x2b23b9),_0x5c31fd['model']['applyOperation'](_0x2b23b9);const _0x57e2a8=_0x2b23b9['splitPosition'],_0x3db4e5=_0x2b23b9['moveTargetPosition'];this['markInsertion'](_0x5c31fd['model']['createRange'](_0x57e2a8,_0x3db4e5));break;}case'move':case'remove':_0x4b6eb8['batch']['addOperation'](_0x2b23b9),_0x5c31fd['model']['applyOperation'](_0x2b23b9);}}for(const _0x589da4 of _0x6598ee)_0x589da4['detach'](),this['markDeletion'](_0x589da4);});}['_setSuggestionRange'](_0x1d7edd,_0x475458){const _0xbd854a=_0x1d7edd['getFirstMarker']();this['_model']['change'](_0x38c387=>{_0x38c387['updateMarker'](_0xbd854a,{'range':_0x475458});});}['_addThreadToSuggestion'](_0x9c8e09){const _0x3bcbce=_0x9c8e09['id'],_0x50c97c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3bcbce)||this['_commentsRepository']['addCommentThread']({'channelId':_0x50c97c,'threadId':_0x3bcbce,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x147217=this['_commentsRepository']['getCommentThread'](_0x3bcbce);_0x147217['unbind']('isRemovable'),_0x147217['isRemovable']=!0x1,_0x9c8e09['commentThread']=_0x147217;}['_checkSuggestionCorrectness'](_0x262703,_0x3bbdde,_0x5255e6,_0x494aed){if(_0x262703['type']!=_0x3bbdde||_0x262703['subType']!=_0x5255e6||_0x262703['creator']['id']!=_0x494aed)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x42e154('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3b7034,_0x381a52){const _0x5259a2=_0x3b7034['getFirstRange']();if(_0x381a52['isEqual'](_0x5259a2))_0x3b7034['removeMarkers']();else{if(_0x5259a2['containsRange'](_0x381a52)){const _0x3a3ee1=this['_model']['createPositionAt'](_0x381a52['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3b7034,this['_model']['createRange'](_0x5259a2['start'],_0x3a3ee1));const _0x15c124=_0x2844ab(),_0x37ffd4=_0x3b7034['creator']['id'],_0x543358=_0x3b7034['type']+':'+_0x3b7034['subType'];this['_setSuggestionData']({'id':_0x15c124,'type':_0x543358,'createdAt':new Date(),'authorId':_0x37ffd4,'data':_0x3b7034['data'],'attributes':_0x3b7034['attributes']});const _0x1183f5=this['_model']['createPositionAt'](_0x381a52['end']['parent'],'after'),_0x13b6ac=this['_model']['createRange'](_0x1183f5,_0x5259a2['end']);this['_addSuggestionMarker'](_0x543358,_0x15c124,_0x37ffd4,_0x13b6ac);}else{if(_0x5259a2['containsPosition'](_0x381a52['start'])){const _0x15430b=this['_model']['createPositionAt'](_0x381a52['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3b7034,this['_model']['createRange'](_0x5259a2['start'],_0x15430b));}else{const _0xc20243=this['_model']['createPositionAt'](_0x381a52['end']['parent'],'after');this['_setSuggestionRange'](_0x3b7034,this['_model']['createRange'](_0xc20243,_0x5259a2['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x37b61a){for(const {suggestion:_0x1182d1,meta:_0x53dc64}of this['_findSuggestions'](_0x37b61a,'insertion')){if(!_0x53dc64['isOwn'])continue;const _0x674792=_0x1182d1['getRanges']();for(const _0x275358 of _0x674792)if(!_0x37b61a['getDifference'](_0x275358)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5b05fd){return this['editor']['plugins']['get']('Users')['getUser'](_0x5b05fd);}['_getExternalAuthor'](_0x4f94bc){const _0x5a1426=this['editor']['plugins']['get']('Users'),_0x26981b=_0x1c5c8a('external:'+_0x4f94bc),_0x2cabef=_0x5a1426['getUser'](_0x26981b);return _0x2cabef||_0x5a1426['addUser']({'id':_0x26981b,'name':_0x4f94bc});}['_createSuggestion'](_0x212690,_0x1e4590,_0x464f64,_0x47496e,_0x1efb4b,_0x5f2d95){const _0x2b2ae2=this['_getAuthorFromId'](_0x47496e);if(!_0x2b2ae2)throw new _0x42e154('track-changes-user-not-found',this,{'authorId':_0x47496e,'suggestionId':_0x464f64});const _0x3109c4=this['_suggestionFactory']['buildSuggestion'](_0x212690,_0x1e4590,_0x464f64,_0x2b2ae2,_0x1efb4b,_0x219788=>{this['_updateSuggestionData'](_0x464f64,{'attributes':_0x219788});const _0x1802c6=this['getSuggestion'](_0x464f64);this['_joinWithAdjacentSuggestions'](new Set([_0x1802c6])),this['_refreshSuggestionsChain'](new Set([_0x1802c6]));},_0x5f2d95);return this['listenTo'](_0x3109c4,'accept',()=>{this['_updateSuggestionData'](_0x464f64,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3109c4,'discard',()=>{this['_updateSuggestionData'](_0x464f64,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x464f64,_0x3109c4),this['_suggestionState']['set'](_0x3109c4,'notReady'),_0x3109c4;}['_splitMarkerName'](_0x487017){return Gt(_0x487017);}['_breakSuggestionMarker'](_0x5466f0,_0xa2497c,_0x4d8f82){const _0x4ec55f=_0x5466f0['getFirstRange'](),_0x50c8e3=_0x4ec55f['start'],_0xb30b0c=_0x4ec55f['end'];this['_setSuggestionRange'](_0x5466f0,this['_model']['createRange'](_0x50c8e3,_0xa2497c));const _0x523d8a=_0x2844ab(),_0x25748a=_0x5466f0['creator']['id'],_0x1105ce=_0x5466f0['type']+(_0x5466f0['subType']?':'+_0x5466f0['subType']:'');this['_setSuggestionData']({'id':_0x523d8a,'type':_0x1105ce,'createdAt':new Date(),'authorId':_0x25748a,'originalSuggestionId':_0x5466f0['_originalSuggestionId']||_0x5466f0['id'],'attributes':_0x5466f0['attributes'],'data':_0x5466f0['data']});const _0x7b840d=this['_getAttributeKey'](_0x5466f0);('formatBlock'==_0x5466f0['type']||_0x7b840d&&this['_isBlockAttribute'](_0x7b840d))&&(_0x4d8f82=this['_model']['createPositionBefore'](_0x4d8f82['parent'])),this['_addSuggestionMarker'](_0x1105ce,_0x523d8a,_0x25748a,this['_model']['createRange'](_0x4d8f82,_0xb30b0c));}['_findSuggestions'](_0x41a8f8,_0x2e4386=null){const _0x295864=[],_0x2a7fe0=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x41a8f8)||(_0x41a8f8=[_0x41a8f8]);for(const _0x53a6fb of this['getSuggestions']()){if(!_0x53a6fb['isInContent'])continue;if(_0x2e4386&&_0x53a6fb['type']!=_0x2e4386)continue;let _0x12ee42=!0x1;for(const _0x31fab3 of _0x53a6fb['getRanges']()){for(const _0x51c96d of _0x41a8f8){const _0x208cde=_0x51c96d['start']['isEqual'](_0x31fab3['end'])||_0x51c96d['end']['isEqual'](_0x31fab3['start']);if(_0x208cde||_0x51c96d['getIntersection'](_0x31fab3)){const _0x3249ea=_0x51c96d['containsRange'](_0x31fab3)&&zt(this['_model']['schema'],_0x31fab3['start'],_0x51c96d),_0x1a2286=_0x31fab3['containsRange'](_0x51c96d)&&zt(this['_model']['schema'],_0x51c96d['start'],_0x31fab3);_0x295864['push']({'suggestion':_0x53a6fb,'meta':{'isOwn':_0x2a7fe0==_0x53a6fb['author'],'isNextTo':_0x208cde,'isInsideObject':_0x3249ea,'containsRangeInObject':_0x1a2286}}),_0x12ee42=!0x0;break;}}if(_0x12ee42)break;}}return _0x295864;}['_addSuggestionMarker'](_0x42ca98,_0x4840bb,_0x1856a8,_0x21ac7b,_0x18e900){this['_model']['change'](_0x35ea67=>{let _0x42a7bb='suggestion:'+_0x42ca98+':'+_0x4840bb+':'+_0x1856a8;_0x18e900&&(_0x42a7bb=_0x42a7bb+':'+_0x18e900),_0x35ea67['addMarker'](_0x42a7bb,{'range':_0x21ac7b,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1caada){const _0x3d31e5=_0x1caada['previous'],_0xff029a=_0x1caada['next'];_0x1caada['previous']=null,_0x1caada['next']=null,null!=_0x3d31e5&&_0x3d31e5['next']==_0x1caada&&(_0x3d31e5['next']=_0xff029a),null!=_0xff029a&&_0xff029a['previous']==_0x1caada&&(_0xff029a['previous']=_0x3d31e5),'ready'==this['_suggestionState']['get'](_0x1caada)&&(this['_suggestionState']['set'](_0x1caada,'removed'),this['fire']('suggestionUnloaded',_0x1caada,_0x3d31e5,_0xff029a));}['_setSuggestionData'](_0xa9fb25){const _0x452c8e=_0xa9fb25['id'],_0x38bb36=this['addSuggestionData'](_0xa9fb25);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x33ac09=this['editor']['plugins']['get']('PendingActions'),_0x5eab31=_0x38bb36['hasComments'],_0x4b03d0=_0x38bb36['subType']?_0x38bb36['type']+':'+_0x38bb36['subType']:_0x38bb36['type'],_0x2361b0=this['editor']['locale'],_0x25e43a=_0x33ac09['add'](o(_0x2361b0,'PENDING_ACTION_SUGGESTION')),_0x566e74={'id':_0x452c8e,'type':_0x4b03d0,'hasComments':_0x5eab31,'data':_0xa9fb25['data']||null,'originalSuggestionId':_0xa9fb25['originalSuggestionId']||null,'attributes':_0x38bb36['attributes']};this['_adapter']['addSuggestion'](_0x566e74)['then'](_0x20f24f=>{_0x38bb36['_saved']=!0x0,_0x33ac09['remove'](_0x25e43a),_0x20f24f&&_0x20f24f['createdAt']&&(this['_suggestions']['get'](_0x452c8e)['createdAt']=_0x20f24f['createdAt']);})['catch'](_0x22f123=>{throw _0x2ee89f('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x38bb36['discard']();}),_0x38bb36['stopListening'](),this['_suggestions']['delete'](_0x38bb36['id']),this['_suggestionState']['delete'](_0x38bb36),_0x22f123;});}return _0x38bb36;}['_isBlockAttribute'](_0x34e1e7){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0x34e1e7);}['_isInlineAttribute'](_0x49bf52){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x49bf52);}['_updateSuggestionData'](_0x43e0f9,_0xd0b82e){const _0x4e343c=this['editor']['plugins']['get']('PendingActions'),_0x568e2f=this['getSuggestion'](_0x43e0f9);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x568e2f['_saved']){const _0x473465=_0x4e343c['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x43e0f9,_0xd0b82e)['then'](()=>{_0x4e343c['remove'](_0x473465);});}else _0x568e2f['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x43e0f9,_0xd0b82e);});}}['_getSuggestionData'](_0x461f3e){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x42e154('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x461f3e);}['_handleNewSuggestionMarker'](_0x4bf601){const {id:_0x11f792,type:_0x4aec67,subType:_0x440145,authorId:_0xd96753}=this['_splitMarkerName'](_0x4bf601),_0x22ffbc=this['_suggestions']['get'](_0x11f792)||this['_createSuggestion'](_0x4aec67,_0x440145,_0x11f792,_0xd96753,{});switch(this['_checkSuggestionCorrectness'](_0x22ffbc,_0x4aec67,_0x440145,_0xd96753),this['_suggestionState']['get'](_0x22ffbc)){case'notReady':this['_getSuggestionData'](_0x11f792)['then'](_0x2792c4=>{let _0x21fc0f=Promise['resolve']();_0x2792c4['hasComments']&&(_0x21fc0f=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x11f792})),_0x21fc0f['then'](()=>{this['addSuggestionData'](_0x2792c4)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x22ffbc,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x11f792,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x22ffbc,'ready'),this['fire']('suggestionLoaded',_0x22ffbc);break;case'ready':this['fire']('suggestionChanged',_0x22ffbc);}return _0x22ffbc['addMarkerName'](_0x4bf601),_0x22ffbc;}['_refreshSuggestionsChain'](_0x55fd2d){const _0x578c24=Array['from'](_0x55fd2d),_0x3ba4cc=_0x578c24['filter'](_0x21442d=>'attribute'==_0x21442d['type']);this['_refreshAttributeSuggestionsChain'](_0x3ba4cc);const _0x24f420=_0x578c24['filter'](_0x48763b=>!_0x48763b['isMultiRange']&&'attribute'!=_0x48763b['type']),_0x2481f7=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x52f1ff=>!_0x52f1ff['isMultiRange']&&'attribute'!=_0x52f1ff['type']),_0x4f730f=_0x2481f7['filter'](_0x1f72a8=>!_0x55fd2d['has'](_0x1f72a8)),_0x510a7=new Map(_0x2481f7['map'](_0x597772=>[_0x597772,this['_suggestionFactory']['getSuggestionCallback'](_0x597772['type'],_0x597772['subType'],'chain')])),_0x2a719e=new Map(_0x2481f7['map'](_0x5d489e=>[_0x5d489e,_0x5d489e['getFirstRange']()])),_0x720ba5=new Set(),_0x1824d1=new Set();for(let _0x4f57d6=0x0;_0x4f57d6<_0x24f420['length'];_0x4f57d6++)_0x276650(_0x24f420[_0x4f57d6],_0x24f420,_0x4f57d6+0x1);for(let _0x25a9a1=0x0;_0x25a9a1<_0x24f420['length'];_0x25a9a1++)_0x276650(_0x24f420[_0x25a9a1],_0x4f730f,0x0);const _0x26d8c7=new Set();for(let _0x13bc8d=0x0;_0x13bc8d<_0x24f420['length'];_0x13bc8d++){const _0xb9ceb6=_0x24f420[_0x13bc8d];!_0x1824d1['has'](_0xb9ceb6)&&_0xb9ceb6['previous']&&(_0x26d8c7['add'](_0xb9ceb6['previous']),_0xb9ceb6['previous']['next']===_0xb9ceb6&&(_0xb9ceb6['previous']['next']=null),_0xb9ceb6['previous']=null),!_0x720ba5['has'](_0xb9ceb6)&&_0xb9ceb6['next']&&(_0x26d8c7['add'](_0xb9ceb6['next']),_0xb9ceb6['next']['previous']===_0xb9ceb6&&(_0xb9ceb6['next']['previous']=null),_0xb9ceb6['next']=null);}function _0x276650(_0x1173ad,_0x318849,_0x56eb88){for(let _0x53e603=_0x56eb88;_0x53e603<_0x318849['length'];_0x53e603++){const _0x19858c=_0x461ad8(_0x1173ad,_0x318849[_0x53e603]);_0x19858c&&(_0x19858c[0x0]['next']=_0x19858c[0x1],_0x19858c[0x1]['previous']=_0x19858c[0x0],_0x720ba5['add'](_0x19858c[0x0]),_0x1824d1['add'](_0x19858c[0x1]));}}function _0x461ad8(_0x143a63,_0x3ab16f){if(_0x143a63['author']['id']!==_0x3ab16f['author']['id'])return null;const _0x4dd1e9=_0x510a7['get'](_0x143a63)(_0x143a63,_0x3ab16f,_0x2a719e['get'](_0x143a63),_0x2a719e['get'](_0x3ab16f));if(!_0x4dd1e9)return null;return _0x510a7['get'](_0x3ab16f)(_0x143a63,_0x3ab16f,_0x2a719e['get'](_0x143a63),_0x2a719e['get'](_0x3ab16f))?_0x4dd1e9[0x1]['commentThread']&&_0x4dd1e9[0x1]['commentThread']['length']?null:_0x4dd1e9:null;}_0x26d8c7['size']&&this['_refreshSuggestionsChain'](_0x26d8c7);}['_refreshAttributeSuggestionsChain'](_0x315a9a){if(0x0==_0x315a9a['length'])return;const _0x4abdb1=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xac0b10=>'attribute'==_0xac0b10['type']&&_0xac0b10['_isDataLoaded']),_0x498450=[],_0x3eade9=new Map();for(const _0x7e6c42 of _0x4abdb1){const _0x30eec6=_0x1c5c8a(_0x7e6c42['attributes']);_0x3eade9['has'](_0x30eec6)||(_0x3eade9['set'](_0x30eec6,_0x498450['length']),_0x498450['push']([]));const _0x427c0e=_0x3eade9['get'](_0x30eec6);_0x498450[_0x427c0e]['push'](_0x7e6c42);}!(function(){_0x498450['sort']((_0x3ac3e5,_0x48713f)=>{const _0x42cb0f=_0x3ac3e5[0x0]['createdAt'],_0x215a5f=_0x48713f[0x0]['createdAt'];return _0x42cb0f==_0x215a5f?_0x3ac3e5[0x0]['attributes']['groupId']<_0x48713f[0x0]['attributes']['groupId']?-0x1:0x1:_0x42cb0f<_0x215a5f?-0x1:0x1;});for(const _0x3bab27 of _0x498450)_0x3bab27['sort']((_0x2a859c,_0x5477e9)=>_0x2a859c['id']<_0x5477e9['id']?-0x1:0x1);}());for(let _0x360cf6=0x0;_0x360cf6<_0x498450['length'];_0x360cf6++){if(0x0==_0x498450[_0x360cf6]['length'])continue;const _0x339d42=[];for(let _0x4d35b0=_0x360cf6+0x1;_0x4d35b0<_0x498450['length'];_0x4d35b0++)0x0!=_0x498450[_0x4d35b0]['length']&&_0x35214a(_0x498450[_0x360cf6],_0x498450[_0x4d35b0])&&_0x339d42['push'](_0x4d35b0);for(const _0x34501d of _0x339d42)_0x498450[_0x360cf6]=_0x498450[_0x360cf6]['concat'](_0x498450[_0x34501d]),_0x498450[_0x34501d]=[];}for(const _0x22428f of _0x498450)for(let _0x5ba4cb=0x0;_0x5ba4cb<_0x22428f['length'];_0x5ba4cb++){const _0x1c9565=_0x22428f[_0x5ba4cb+0x1]||null;_0x22428f[_0x5ba4cb]['next']!==_0x1c9565&&(_0x22428f[_0x5ba4cb]['next']=_0x1c9565);}for(const _0x22aa47 of _0x498450)for(let _0x1c7062=0x0;_0x1c7062<_0x22aa47['length'];_0x1c7062++){const _0x1ae026=_0x22aa47[_0x1c7062-0x1]||null;_0x22aa47[_0x1c7062]['previous']!==_0x1ae026&&(_0x22aa47[_0x1c7062]['previous']=_0x1ae026);}function _0x35214a(_0x2dec7d,_0x31ea7a){if(_0x2dec7d[0x0]['attributes']['groupId']!==_0x31ea7a[0x0]['attributes']['groupId']&&_0x2dec7d[0x0]['author']!==_0x31ea7a[0x0]['author'])return!0x1;if(!function(_0xd2aac2,_0x24b141){if(!_0xd2aac2['hasComments']&&!_0x24b141['hasComments'])return!0x0;if(_0xd2aac2['hasComments']&&_0x24b141['hasComments'])return!0x1;if(_0xd2aac2['hasComments']&&_0x24b141['createdAt']<_0xd2aac2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x24b141['hasComments']&&_0xd2aac2['createdAt']<_0x24b141['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2dec7d[0x0],_0x31ea7a[0x0]))return!0x1;const _0x26095a=Pt(_0x2dec7d[0x0]['attributes'],['groupId','trackingSessionId']),_0x1b6df0=Pt(_0x31ea7a[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x30af54(_0x26095a,_0x1b6df0))return!0x1;if(_0x2dec7d[0x0]['attributes']['groupId']==_0x31ea7a[0x0]['attributes']['groupId'])return!0x0;if(_0x2dec7d[0x0]['attributes']['trackingSessionId']!==_0x31ea7a[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x2dec7d['every'](_0x2718cd=>_0x31ea7a['some'](_0x53bd8a=>_0x2718cd['getFirstRange']()['isEqual'](_0x53bd8a['getFirstRange']())))&&_0x31ea7a['every'](_0xa0419c=>_0x2dec7d['some'](_0x3061ca=>_0xa0419c['getFirstRange']()['isEqual'](_0x3061ca['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x449eda){const _0x1b8d4a=Array['from'](_0x449eda),_0x2f77e7=this['getSuggestions']({'skipNotAttached':!0x0}),_0x44767d=_0x2f77e7['filter'](_0x506e13=>!_0x449eda['has'](_0x506e13)),_0x21a6a1=new Map(_0x1b8d4a['map'](_0x2da635=>[_0x2da635,this['_suggestionFactory']['getSuggestionCallback'](_0x2da635['type'],_0x2da635['subType'],'join')])),_0x44ba97=new Map(_0x2f77e7['map'](_0x9049b7=>[_0x9049b7,_0x9049b7['getRanges']()]));for(let _0x20130c=0x0;_0x20130c<_0x1b8d4a['length'];_0x20130c++){if(_0x2f1fe5(this,_0x1b8d4a[_0x20130c],_0x1b8d4a,_0x20130c+0x1))return!0x0;}for(let _0x1972ca=0x0;_0x1972ca<_0x1b8d4a['length'];_0x1972ca++){if(_0x2f1fe5(this,_0x1b8d4a[_0x1972ca],_0x44767d,0x0))return!0x0;}return!0x1;function _0x2f1fe5(_0x49ae19,_0x8738da,_0x4a6bb7,_0xcf35d2){for(let _0x4cdace=_0xcf35d2;_0x4cdace<_0x4a6bb7['length'];_0x4cdace++){const _0x282b79=_0x4a6bb7[_0x4cdace];if(_0x282b79['type']!==_0x8738da['type']||_0x282b79['author']['id']!==_0x8738da['author']['id']||_0x282b79['subType']!==_0x8738da['subType'])continue;if(!en(_0x8738da,_0x282b79))continue;if('attribute'==_0x8738da['type']&&_0x8738da['data']['oldValue']!=_0x282b79['data']['oldValue'])continue;if('attribute'==_0x8738da['type']&&_0x49ae19['_isBlockAttribute'](_0x8738da['data']['key']))continue;if('formatBlock'==_0x8738da['type']){const _0x2bef2e=_0x49ae19['editor']['model'],_0x591907=_0x8738da['getContainedElement']();if(_0x591907&&(_0x2bef2e['schema']['isObject'](_0x591907)||_0x2bef2e['schema']['isLimit'](_0x591907)))continue;}const _0x257bcb=_0x21a6a1['get'](_0x8738da),_0x2ec60b=_0x44ba97['get'](_0x8738da),_0x3368b0=_0x44ba97['get'](_0x282b79),_0x1b506f=_0x8738da['commentThread']&&_0x8738da['commentThread']['length'],_0x1f98e8=_0x282b79['commentThread']&&_0x282b79['commentThread']['length'];if(!_0x1b506f&&_0x257bcb(_0x3368b0,_0x2ec60b))return _0x49ae19['_joinSuggestions'](_0x282b79,_0x8738da),_0x44ba97['delete'](_0x8738da),!0x0;if(!_0x1f98e8&&_0x257bcb(_0x2ec60b,_0x3368b0))return _0x49ae19['_joinSuggestions'](_0x8738da,_0x282b79),_0x44ba97['delete'](_0x282b79),!0x0;}return!0x1;}}['_joinSuggestions'](_0x30146b,_0x121f39){if(_0x30146b['isMultiRange']){for(const _0x5b3553 of _0x121f39['getRanges']())_0x30146b['addRange'](_0x5b3553);}else{const _0x5ae33d=_0x121f39['getFirstRange']()['end'];this['_setSuggestionRange'](_0x30146b,this['_model']['createRange'](_0x30146b['getFirstRange']()['start'],_0x5ae33d));}_0x121f39['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3f144a,_0x115387,_0x3e8d2e){const _0x2a3440=_0x3f144a['startsWith']('format')||_0x3f144a['startsWith']('attribute')?'FORMATTING':_0x3f144a['toUpperCase']();return o(this['editor']['locale'],_0x115387+'_'+_0x2a3440+'_SUGGESTION_ANNOUNCEMENT',_0x3e8d2e);}['_initAriaMarkerChangeAnnouncements'](){const _0x1e13fe=this['editor'];if(!_0x1e13fe['ui'])return;const {ariaLiveAnnouncer:_0x2b0834}=_0x1e13fe['ui'];_0x6f073a(this['_model'],({left:_0x4b1bc0,entered:_0x105b84})=>{for(const _0x425838 of _0x4b1bc0){const {group:_0x57c902,type:_0x3c6f40}=this['_splitMarkerName'](_0x425838['name']);if('suggestion'===_0x57c902){_0x2b0834['announce'](this['_getMarkerAnnouncementText'](_0x3c6f40,'LEAVE'));break;}}for(const _0x2eccd4 of _0x105b84){const {group:_0x131902,type:_0x2165f7}=this['_splitMarkerName'](_0x2eccd4['name']);if('suggestion'===_0x131902){_0x2b0834['announce'](this['_getMarkerAnnouncementText'](_0x2165f7,'ENTER',_0x4d50d7(_0x2146b9)));break;}}});}['_processAttributeChanges'](_0x4f7c4c){if(this['_recordAttributeSuggestions'])return!0x1;const _0x41c0d1=this['editor'],_0x52d7a3=_0x41c0d1['model']['document']['differ']['getChanges']();if(0x0==_0x52d7a3['length'])return!0x1;const _0x5ac76b=[],_0x2f3e79=_0x52d7a3['filter'](_0x84447b=>'attribute'==_0x84447b['type']),_0x4b5c8d=_0x52d7a3['filter'](_0x3682f5=>'insert'==_0x3682f5['type']&&'$text'!=_0x3682f5['name']),_0x4e9743=_0x52d7a3['filter'](_0xf61a4=>'remove'==_0xf61a4['type']&&'$text'!=_0xf61a4['name']);for(const _0x38a266 of _0x2f3e79)_0x5ac76b['push']({'key':_0x38a266['attributeKey'],'newValue':_0x38a266['attributeNewValue'],'oldValue':_0x38a266['attributeOldValue'],'range':Zt(_0x38a266['range'],_0x41c0d1['model'])});for(const _0x2b5709 of _0x4b5c8d){const _0x5916b8=_0x4e9743['find'](_0x2eae3f=>_0x2eae3f['position']['isEqual'](_0x2b5709['position']));_0x5916b8&&_0x5ac76b['push']({'key':m,'newValue':_0x2b5709['name'],'oldValue':_0x5916b8['name'],'range':_0x41c0d1['model']['createRangeOn'](_0x2b5709['position']['nodeAfter'])});}return 0x0!=_0x5ac76b['length']&&this['_reduceExistingSuggestions'](_0x4f7c4c,_0x5ac76b);}['_processAttributeSuggestions'](_0x477e6a){let _0x28c763=!0x1;const _0x41cca4=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x130d4b=>_0x130d4b['data']['newRange']&&_0x130d4b['name']['startsWith']('suggestion:attribute:'));for(const _0x328044 of _0x41cca4){const {subType:_0x3bae81,id:_0x4ac9eb}=this['_splitMarkerName'](_0x328044['name']),_0x128058=_0x3bae81['split']('|')[0x0];for(const _0xe46b68 of this['getSuggestions']({'skipNotAttached':!0x0}))_0xe46b68['id']!=_0x4ac9eb&&'attribute'==_0xe46b68['type']&&_0xe46b68['data']&&_0xe46b68['data']['key']==_0x128058&&_0xe46b68['getFirstRange']()['isIntersecting'](_0x328044['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xe46b68,_0x328044['data']['newRange'],_0x477e6a),_0x28c763=!0x0);}return _0x28c763;}['recordAttributeChanges'](_0xd16f0d){this['_recordAttributeSuggestions']=!0x0,_0xd16f0d();}['_isRegisteredAttribute'](_0x942238){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x942238);}['_reduceExistingSuggestions'](_0x5d9ad5,_0x27b10b){if(0x0==_0x27b10b['length'])return!0x1;let _0x5d1ae6=!0x1;for(const _0x4cf576 of _0x27b10b){const _0x3d7f2a=this['_findSuggestions'](_0x4cf576['range'],'attribute')['filter'](_0x4bf339=>!_0x4bf339['meta']['isNextTo'])['map'](_0x5fb1ef=>_0x5fb1ef['suggestion']),_0x543145=_0x1c5c8a({'newValue':_0x4cf576['newValue']});_0x3d7f2a['filter'](_0x4106b3=>{const [_0x27e8bd,_0x540b48]=_0x4106b3['subType']['split']('|');return _0x27e8bd==_0x4cf576['key']&&_0x540b48!=_0x543145;})['forEach'](_0x1ed7a9=>{this['_reduceSuggestionAttributeRange'](_0x1ed7a9,_0x4cf576['range'],_0x5d9ad5),_0x5d1ae6=!0x0;});}return _0x5d1ae6;}['_reduceSuggestionAttributeRange'](_0x1c3cdc,_0x5acb54,_0x3b3c83){const _0x3c1f07=_0x1c3cdc['getFirstRange']()['getDifference'](_0x5acb54);0x0!==_0x3c1f07['length']?0x1!==_0x3c1f07['length']?this['_breakSuggestionMarker'](_0x1c3cdc,_0x5acb54['start'],_0x5acb54['end']):this['_setSuggestionRange'](_0x1c3cdc,_0x3c1f07[0x0]):_0x3b3c83['removeMarker'](_0x1c3cdc['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1bfb70){this['_editor']=_0x1bfb70,this['_model']=_0x1bfb70['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x49c626,_0x47c480,_0x4840e7,_0x15e8ed,_0x2b77a2,_0x392771,_0x48acf2){return new x(this['_model'],{'type':_0x49c626,'subType':_0x47c480,'id':_0x4840e7,'originalSuggestionId':_0x48acf2,'author':_0x15e8ed,'creator':_0x15e8ed,'attributes':_0x2b77a2,'onAttributesChange':_0x392771,'onAccept':(..._0x47a4a6)=>this['getSuggestionCallback'](_0x49c626,_0x47c480,'accept')(..._0x47a4a6),'onDiscard':(..._0x4f8373)=>this['getSuggestionCallback'](_0x49c626,_0x47c480,'discard')(..._0x4f8373)});}['registerCustomCallback'](_0x468d97,_0x479c54,_0x548829,_0x5f4d07){const _0x170872=_0x468d97+':'+_0x479c54+':'+_0x548829;this['_customCallbacks']['set'](_0x170872,_0x5f4d07);}['getSuggestionCallback'](_0x2221be,_0x3611c3,_0x27b248){const _0x359b50=_0x2221be+':'+_0x3611c3+':'+_0x27b248;return this['_customCallbacks']['get'](_0x359b50)||this['_defaultCallbacks']['get'](_0x2221be+':'+_0x27b248);}['_registerDefaultCallbacks'](){const _0x1c9702=()=>!0x1,_0x5dddc7=_0x564169=>{_0x564169['sort']((_0x5d9564,_0x33cc65)=>_0x5d9564['start']['isBefore'](_0x33cc65['start'])?0x1:-0x1),this['_model']['change'](_0x4306e5=>{for(const _0x2499b1 of _0x564169){let _0x3d7952;_0x3d7952=_0x2499b1['end']['isAtEnd']&&_0x2499b1['end']['parent']==_0x2499b1['start']['nodeAfter']?_0x4306e5['createSelection'](_0x2499b1['start']['nodeAfter'],'on'):_0x4306e5['createSelection'](_0x2499b1),this['_model']['deleteContent'](_0x3d7952,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x4afdc6=(_0x4bccf6,_0x475867)=>{_0x475867&&this['_model']['change'](_0x4dd479=>{const {commandName:_0x367b22,commandParams:_0x18e0c8=[]}=_0x475867,_0x25e025=_0x4bccf6['map'](_0xf1dba0=>(Kt(_0xf1dba0)&&(_0xf1dba0=this['_model']['createRange'](_0xf1dba0['end'])),_0xf1dba0))['filter'](_0x40b784=>'$graveyard'!==_0x40b784['root']['rootName']);if(_0x25e025['length']<0x1)return;const _0x45e50e=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x570cdb=>_0x468db3['fromRange'](_0x570cdb));_0x4dd479['setSelection'](_0x25e025);for(const _0x269951 of this['_editor']['commands']['commands']())_0x269951['refresh']();_0x18e0c8['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x367b22,..._0x18e0c8);const _0xa9ac5c=_0x45e50e['filter'](_0x995a15=>'$graveyard'!=_0x995a15['root']['rootName']);_0xa9ac5c['length']>0x0&&_0x4dd479['setSelection'](_0xa9ac5c);for(const _0x4d574e of _0x45e50e)_0x4d574e['detach']();});},_0x17be40=(_0x47709b,_0xd24141)=>0x1==_0x47709b['length']&&0x1==_0xd24141['length']&&_0x47709b[0x0]['end']['isEqual'](_0xd24141[0x0]['start']),_0x3bbc6b=(_0x47b223,_0x4060cd,_0x1136a8,_0x58d127)=>nn(_0x47b223,_0x4060cd,_0x1136a8,_0x58d127)?[_0x47b223,_0x4060cd]:nn(_0x4060cd,_0x47b223,_0x58d127,_0x1136a8)?[_0x4060cd,_0x47b223]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1c9702),this['_defaultCallbacks']['set']('insertion:discard',_0x5dddc7),this['_defaultCallbacks']['set']('insertion:join',_0x17be40),this['_defaultCallbacks']['set']('insertion:chain',_0x3bbc6b),this['_defaultCallbacks']['set']('deletion:accept',_0x5dddc7),this['_defaultCallbacks']['set']('deletion:discard',_0x1c9702),this['_defaultCallbacks']['set']('deletion:join',_0x17be40),this['_defaultCallbacks']['set']('deletion:chain',_0x3bbc6b),this['_defaultCallbacks']['set']('formatInline:accept',_0x4afdc6),this['_defaultCallbacks']['set']('formatInline:discard',_0x1c9702),this['_defaultCallbacks']['set']('formatInline:join',_0x17be40),this['_defaultCallbacks']['set']('formatInline:chain',_0x1c9702),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4afdc6),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1c9702),this['_defaultCallbacks']['set']('formatBlock:join',_0x17be40),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1c9702),this['_defaultCallbacks']['set']('attribute:accept',_0x1c9702),this['_defaultCallbacks']['set']('attribute:discard',(_0xeb1eb1,_0x4019ab)=>{if(!_0x4019ab)return;const _0x31d225=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x284959=>{if(_0x4019ab['key']==m)for(const _0x4e7071 of _0xeb1eb1){const _0x154c4a=_0x4e7071['start']['nodeAfter'],_0xca6e3f=_0x4019ab['oldValue'];_0x284959['rename'](_0x154c4a,_0xca6e3f);}else{if(_0x31d225['_isBlockAttribute'](_0x4019ab['key'])){for(const _0x38ef96 of _0xeb1eb1)void 0x0!==_0x4019ab['oldValue']?_0x284959['setAttribute'](_0x4019ab['key'],_0x4019ab['oldValue'],_0x38ef96['start']['nodeAfter']):_0x284959['removeAttribute'](_0x4019ab['key'],_0x38ef96['start']['nodeAfter']);}else{for(const _0x170e88 of _0xeb1eb1)_0x4019ab['oldValue']?_0x284959['setAttribute'](_0x4019ab['key'],_0x4019ab['oldValue'],_0x170e88):_0x284959['removeAttribute'](_0x4019ab['key'],_0x170e88);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x17be40);}}function zt(_0x4b0e9d,_0x5cc264,_0x449086){for(const _0x3f0962 of _0x5cc264['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3f0962['root']==_0x3f0962)return!0x1;if(!_0x449086['containsItem'](_0x3f0962))return!0x1;if(_0x4b0e9d['isObject'](_0x3f0962)||_0x4b0e9d['isLimit'](_0x3f0962))return!0x0;}return!0x1;}function Kt(_0x55959c){return _0x55959c['end']['parent']==_0x55959c['start']['nodeAfter']&&_0x55959c['end']['isAtStart'];}function Wt(_0x46ca21,_0x164f62,_0x3709ef,_0x3dcec6){const _0x52d766=_0x4b7473=>!_0x4b7473['item']['is']('$textProxy')&&!_0x3dcec6['isObject'](_0x4b7473['item']),_0x17c7e6=_0x46ca21['start']['getLastMatchingPosition'](_0x52d766),_0xb70ad3=_0x46ca21['end']['getLastMatchingPosition'](_0x52d766,{'direction':'backward'});return(!_0x46ca21['start']['isEqual'](_0x17c7e6)||!_0x46ca21['end']['isEqual'](_0xb70ad3))&&(_0x17c7e6['isBefore'](_0xb70ad3)?_0x3709ef['updateMarker'](_0x164f62,{'range':_0x3709ef['createRange'](_0x17c7e6,_0xb70ad3)}):_0x3709ef['removeMarker'](_0x164f62),!0x0);}function Ht(_0x34d4e6){return _0x1c5c8a(_0x34d4e6);}function Qt(_0x2de0e1){const _0x106cf4=_0x2de0e1['start']['nodeAfter'];return _0x106cf4&&_0x106cf4['is']('element');}function Xt(_0xa413d2){return Kt(_0xa413d2)||function(_0x3d7eeb){return _0x3d7eeb['start']['parent']==_0x3d7eeb['end']['nodeBefore']&&_0x3d7eeb['start']['isAtEnd'];}(_0xa413d2);}function Yt(_0x509754,_0x333fe3){try{const _0x269d63=_0x509754['getRange']();for(const _0x4c8ea2 of _0x333fe3)if(_0x509754!==_0x4c8ea2&&_0x269d63&&_0x269d63['isIntersecting'](_0x4c8ea2['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x537b9c,_0x1c9288){return null==_0x537b9c['end']['nodeBefore']&&_0x537b9c['end']['parent']==_0x537b9c['start']['nodeAfter']?tn(_0x537b9c['start']['nodeAfter'],_0x1c9288):_0x537b9c;}function tn(_0x3d5a97,_0xe236a0){const _0x455af8=_0xe236a0['schema']['isObject'](_0x3d5a97)||_0xe236a0['schema']['isSelectable'](_0x3d5a97);return _0xe236a0['createRange'](_0xe236a0['createPositionAt'](_0x3d5a97,'before'),_0x455af8?_0xe236a0['createPositionAfter'](_0x3d5a97):_0xe236a0['createPositionAt'](_0x3d5a97,'end'));}function nn(_0x1419e4,_0x4e7aef,_0x3f1903,_0x5f5d6d){return!!en(_0x1419e4,_0x4e7aef)&&_0x3f1903['end']['isEqual'](_0x5f5d6d['start']);}function en(_0x11178b,_0x118d19){if(!_0x11178b['_isDataLoaded']||!_0x118d19['_isDataLoaded'])return!0x1;const _0x29c05b=new Set(Object['keys'](_0x11178b['attributes'])),_0x5aca2f=new Set(Object['keys'](_0x118d19['attributes']));if(_0x29c05b['delete']('groupId'),_0x5aca2f['delete']('groupId'),0x0==_0x29c05b['size']&&0x0==_0x5aca2f['size'])return!0x0;if(_0x29c05b['size']!=_0x5aca2f['size'])return!0x1;const _0x72f8bc={..._0x11178b['attributes']},_0x56334f={..._0x118d19['attributes']};return delete _0x72f8bc['groupId'],delete _0x56334f['groupId'],JSON['stringify'](_0x72f8bc)==JSON['stringify'](_0x56334f);}function sn(_0x4ad218,_0x168768){const _0x265196=on(_0x4ad218['attributes']),_0x3b71a4=on(_0x168768);if(!_0x4ad218['_isDataLoaded'])return!0x1;for(const _0x494263 of Object['keys'](_0x3b71a4))if(!_0x30af54(_0x265196[_0x494263],_0x3b71a4[_0x494263]))return!0x1;return!0x0;}function on(_0x863fae){const _0x325301=Object['assign']({},_0x863fae);return delete _0x325301['skipNestingCheck'],delete _0x325301['tablePasteChainId'],_0x325301;}class pe extends/* #__PURE__ -- @preserve */
26
- _0x5b7c3b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3fd581,_0x4661d0,_0x13cb06,_0x450881){super(),this['model']=_0x4661d0,this['view']=_0x13cb06,this['commentThreadController']=_0x450881,this['_editor']=_0x3fd581,this['_acceptCommand']=_0x3fd581['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3fd581['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4cb48e,_0x36907d)=>_0x4cb48e||_0x36907d),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x35f3aa=>_0x35f3aa&&this['_editor']['model']['canEditAt'](_0x4661d0['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x432cb4=>_0x432cb4&&this['_editor']['model']['canEditAt'](_0x4661d0['getRanges']())),this['_pendingAction']=null,_0x13cb06['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x13cb06,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x13cb06,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x13cb06,'change:isDirty',()=>{_0x13cb06['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 _0x5d1b19=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5d1b19);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x18358c{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1e2ada,_0x262492,_0x5caf5e,_0x560966){super(_0x1e2ada),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1b65a6(_0x1e2ada,o(_0x1e2ada,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x262492['authoredAt']),this['bind']('authoredAt')['to'](_0x262492),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',_0x262492,'authoredAt',this,'descriptionParts',(_0x26a02e,_0x57139e,_0x253010)=>{const _0x5b1a12=_0x253010['map'](_0x3bbfcc=>ls(_0x3bbfcc['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x26a02e-0x1,_0x262492['author']['name'],_0x57139e?_0x560966['formatDateTime'](_0x57139e):'',new DOMParser()['parseFromString'](_0x5b1a12,'text/html')['body']['textContent']]);}),this['focusables']=new _0xb3ad92(),this['focusTracker']=new _0x24067a(),this['keystrokes']=new _0x30fe5a(),this['focusCycler']=new _0x5cd336({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1dafbd=>_0x1dafbd['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x262492,this['_localUser']=_0x5caf5e,this['_config']=_0x560966,_0x560966['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x209082(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x313c0d}=this['_config'];this['commentsListView']=new _0x313c0d(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',_0x974145=>_0x974145+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3dc391,_0x119182)=>_0x3dc391||!!_0x119182);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2c0e2b}=this['_config'],_0x31a459=new _0x2c0e2b(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x56b47c=_0x31a459['commentInputView'];return _0x31a459['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x56b47c,'value',(_0x4818c5,_0x22e22b,_0x26c652)=>!!_0x26c652||_0x4818c5&&!_0x22e22b),_0x56b47c['on']('submit',(_0x234b7d,_0x59b7d7)=>{this['fire']('addComment',_0x59b7d7),_0x56b47c['editor']['setData']('');}),_0x56b47c['on']('cancel',()=>this['focus']()),_0x56b47c['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x31a459;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x23d284,_0x3265e4,_0x394038,_0x355b9f){super(_0x23d284,_0x3265e4,_0x394038,_0x355b9f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x42ff41=>_0x42ff41&&_0x42ff41[0x0]?_0x42ff41[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4bb700,_0x57a2a7)=>{let _0x5f5086='';for(const _0x5c6b0c of _0x4bb700)_0x5f5086+='<p>'+ls(_0x5c6b0c['content'],_0x5c6b0c['color'])+'</p>';return _0x57a2a7?_0x5f5086:_0x308ad3(_0x5f5086,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x355b9f['SuggestionView'](_0x23d284,_0x3265e4,{'formatDateTime':_0x355b9f['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 _0x44c8ce=this['bindTemplate'],_0x3e6171=[this['suggestionView']];return this['commentsListView']&&_0x3e6171['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3e6171['push'](this['commentThreadInputView']),_0x3e6171['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x44c8ce['if']('isActive','ck-suggestion-wrapper--active'),_0x44c8ce['to']('type',_0x5ae72c=>'ck-suggestion-'+_0x5ae72c),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':_0x44c8ce['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3e6171};}['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 _0x18358c{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x277bab,_0x6b1ac0,_0x2c9eac){super(_0x277bab),this['_model']=_0x6b1ac0,this['_config']=_0x2c9eac,this['set']('description',''),this['bind']('authoredAt')['to'](_0x6b1ac0),this['acceptButton']=this['_createButton'](o(_0x277bab,'Accept\x20suggestion'),_0x93aebd,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x277bab,'Discard\x20suggestion'),_0x128635,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4b908f(_0x277bab,_0x6b1ac0['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xb3ad92([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x24067a(),this['keystrokes']=new _0x30fe5a(),this['focusCycler']=new _0x5cd336({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4d5e88=>_0x4d5e88['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x48fee9=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x48fee9['innerHTML']=this['description'],this['on']('change:description',(_0x181886,_0xa57c36,_0x39680a)=>{_0x48fee9['innerHTML']=_0x39680a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x58be9d=this['bindTemplate'],_0x26addb=[{'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':_0x58be9d['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x58be9d['to']('authoredAt',_0x29d21e=>this['_config']['formatDateTime'](_0x29d21e))}]}]},{'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']&&_0x26addb['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':_0x26addb}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x4464ba,_0x264012,_0x565620,_0x52d24e,_0x292c63){const _0x41834d=new _0x5516a9(this['locale']);return _0x41834d['set']({'label':_0x4464ba,'icon':_0x264012,'tooltip':!0x0,'tooltipPosition':_0x292c63}),_0x41834d['extendTemplate']({'attributes':{'class':_0x565620}}),_0x41834d['on']('execute',()=>{this['fire'](_0x52d24e,this['_model']['id']);}),_0x41834d;}['_setupKeyboardNavigation'](){const _0x30a647=this['element'];this['keystrokes']['listenTo'](_0x30a647);for(const _0x5dea9b of this['focusables'])this['focusTracker']['add'](_0x5dea9b['element']),this['keystrokes']['listenTo'](_0x5dea9b['element']);this['keystrokes']['set']('enter',(_0xf9b629,_0x349898)=>{_0x30a647===_0xf9b629['target']&&(this['focusCycler']['focusFirst'](),_0x349898());}),this['keystrokes']['set']('esc',(_0x1e862c,_0x1c14ca)=>{_0x30a647!==_0x1e862c['target']&&(this['focus'](),_0x1c14ca());});}}class u extends _0x147a49{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x3370ef,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3a1673){super(_0x3a1673),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5ea67e=this['editor']['config'];_0x5ea67e['define']('trackChanges.SuggestionThreadView',fe),_0x5ea67e['define']('trackChanges.SuggestionView',we),_0x5ea67e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5ea67e['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xb2c715,_0x5514c7){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x54dec6,_0x501c02]of this['_handleControllerBuffer']){const _0x14359e=this['_suggestionToController']['has'](_0x54dec6);_0x14359e||_0x501c02?_0x14359e&&_0x501c02&&this['_destroyController'](_0x54dec6):this['_initializeController'](_0x54dec6);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xb2c715,_0x5514c7);}['init'](){const _0x34242a=this['editor'],_0x18007d=_0x34242a['plugins']['get']('TrackChangesEditing'),_0x105fea=_0x34242a['plugins']['get']('Annotations'),_0x4b06b1=_0x34242a['plugins']['get']('EditorAnnotations'),_0x154825=_0x34242a['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4b06b1['addSourceCollector'](()=>{const _0x21c5ac=[];for(const [_0x407135,_0x4a437e]of Array['from'](this['_suggestionToController'])){const _0x1eddf6=_0x407135['getAllAdjacentSuggestions'](),_0x3e9356=[];for(const _0x2b4e46 of _0x1eddf6){if(!_0x2b4e46['isInContent'])continue;if(_0x2b4e46['isMultiRange']){_0x3e9356['push'](..._0x2b4e46['getRanges']());continue;}const _0x37d83f=_0x2b4e46['getFirstRange']();if(_0x3e9356['length']>0x0){const _0x36d57e=_0x3e9356[0x0]['getJoined'](_0x37d83f);if(_0x36d57e){_0x3e9356[0x0]=_0x36d57e;continue;}}_0x3e9356['push'](_0x37d83f);}_0x21c5ac['push']([_0x4a437e['view'],_0x3e9356]);}return _0x21c5ac;}),this['listenTo'](_0x18007d,'suggestionLoaded',(_0x40f71b,_0x27522c)=>{this['listenTo'](_0x27522c,'change:previous',(_0x5387cb,_0x5bbbe4,_0x44fd93,_0x4f3395)=>{_0x27522c['isInContent']&&(null==_0x44fd93?(this['_updateController'](_0x4f3395['head']),this['_handleSuggestionControllerDelayed'](_0x27522c,!0x1)):(this['_updateController'](_0x44fd93['head']),null==_0x4f3395&&this['_handleSuggestionControllerDelayed'](_0x27522c,!0x0)));}),null!==_0x27522c['previous']?this['_updateController'](_0x27522c['head']):this['_handleSuggestionControllerDelayed'](_0x27522c,!0x1);}),this['listenTo'](_0x18007d,'suggestionUnloaded',(_0x5de64c,_0x259179,_0x37b4a3)=>{this['stopListening'](_0x259179,'change:previous'),this['_handleControllerBuffer']['delete'](_0x259179),this['_suggestionToController']['has'](_0x259179)&&this['_destroyController'](_0x259179),_0x37b4a3&&this['_updateController'](_0x37b4a3['head']);}),this['listenTo'](_0x18007d,'suggestionChanged',(_0x46d312,_0x5ba724)=>{this['_updateController'](_0x5ba724);}),this['listenTo'](_0x105fea,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x154825,'addComment',(_0xe73c81,{threadId:_0x2be8fa,isFromAdapter:_0x563042})=>{if(_0x563042||!_0x18007d['hasSuggestion'](_0x2be8fa))return;const _0x321fd8=_0x18007d['getSuggestion'](_0x2be8fa);this['_suggestionToController']['get'](_0x321fd8)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3996b2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x453248;for(const _0x429f3c in _0x3996b2){const _0x1810ff=_0x429f3c,_0x2c2fc4=_0x3996b2[_0x1810ff];if('trackChangesLicenseKeyValid'==_0x2c2fc4||'trackChangesLicenseKeyInvalid'==_0x2c2fc4||'trackChangesLicenseKeyExpired'==_0x2c2fc4||'trackChangesLicenseKeyDomainLimit'==_0x2c2fc4||'trackChangesLicenseKeyNotAllowed'==_0x2c2fc4||'trackChangesLicenseKeyEvaluationLimit'==_0x2c2fc4||'trackChangesLicenseKeyTrialLimit'==_0x2c2fc4||'trackChangesLicenseKeyUsageLimit'==_0x2c2fc4){delete _0x3996b2[_0x1810ff],_0x453248=_0x2c2fc4,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x453248&&_0x3996b2['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x453248&&_0x3996b2['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x453248&&_0x3996b2['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x453248&&_0x3996b2['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x453248&&_0x3996b2['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x453248&&_0x3996b2['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x453248&&_0x3996b2['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x4d78ef){const _0xabbe16=this['_suggestionToController']['get'](_0x4d78ef);if(!_0xabbe16)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0xabbe16['view'])||null;}['getSuggestionForAnnotation'](_0x33cc9d){const _0x537926=this['_viewToController']['get'](_0x33cc9d['innerView']);return _0x537926?_0x537926['model']:null;}['_refreshActiveMarkers'](){const _0x42a453=this['editor']['plugins']['get']('Annotations'),_0x4c2bf9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30a5d5=Array['from'](_0x42a453['activeAnnotations'],_0x4c5ebc=>_0x4c5ebc['innerView'])['filter'](_0x3fd33f=>this['_viewToController']['has'](_0x3fd33f)),_0x2e3cbe=[];for(const _0xb7cbe4 of _0x30a5d5){const _0x3ea738=this['_viewToController']['get'](_0xb7cbe4)['model']['getAllAdjacentSuggestions']();_0x2e3cbe['push'](..._0x3ea738['reduce']((_0x2e17ff,_0x70bd2)=>[..._0x2e17ff,..._0x70bd2['getMarkerNames']()],[]));}_0x4c2bf9['activeMarkers']=_0x2e3cbe;}['_addUIComponentsToFactory'](){const _0x1fe7cf=this['editor'],_0x7954d3=_0x1fe7cf['locale'],_0x5eeb37=o(_0x7954d3,'Track\x20changes'),_0x3305ee=new _0x291895([{'type':'switchbutton','model':new _0xbb7344({'withText':!0x0,'isToggleable':!0x0,'label':_0x5eeb37,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xbb7344({'withText':!0x0,'label':o(_0x7954d3,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xbb7344({'withText':!0x0,'label':o(_0x7954d3,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xbb7344({'withText':!0x0,'label':o(_0x7954d3,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xbb7344({'withText':!0x0,'label':o(_0x7954d3,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1fe7cf['plugins']['has']('TrackChangesPreview')&&_0x3305ee['addMany']([{'type':'separator'},{'type':'button','model':new _0xbb7344({'withText':!0x0,'label':o(_0x7954d3,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x550951 of _0x3305ee)if(ke(_0x550951)){const _0x1e2414=_0x1fe7cf['commands']['get'](_0x550951['model']['commandName']);_0x550951['model']['bind']('isOn','isEnabled')['to'](_0x1e2414,'value','isEnabled');}_0x1fe7cf['ui']['componentFactory']['add']('trackChanges',_0x5dbac2=>this['_createToolbarButton'](_0x5dbac2,_0x3305ee,_0x5eeb37)),_0x1fe7cf['ui']['componentFactory']['add']('menuBar:trackChanges',_0x54b978=>this['_createMenuBarMenu'](_0x54b978,_0x3305ee,_0x5eeb37));}['_createToolbarButton'](_0x19efe2,_0x1da73b,_0x274ccc){const _0x491188=_0x6a5f9e(_0x19efe2,_0x50ba97),_0x3427ed=this['editor']['commands']['get']('trackChanges');_0x491188['buttonView']['set']({'tooltip':_0x274ccc,'label':_0x274ccc,'icon':_0x3c57fa}),_0x491188['buttonView']['bind']('isOn')['to'](_0x3427ed,'value'),_0x491188['buttonView']['on']('execute',()=>{_0x3427ed['execute'](),this['editor']['editing']['view']['focus']();}),_0x73ef36(_0x491188,_0x1da73b,{'role':'menu'});const _0x54dff3=[];for(const _0x5291a5 of _0x1da73b)ke(_0x5291a5)&&_0x54dff3['push'](this['editor']['commands']['get'](_0x5291a5['model']['commandName']));const _0x1ebd10=_0x491188['buttonView'];return _0x1ebd10['actionView']['unbind']('isEnabled'),_0x1ebd10['arrowView']['unbind']('isEnabled'),_0x1ebd10['actionView']['bind']('isEnabled')['to'](_0x3427ed,'isEnabled'),_0x1ebd10['arrowView']['bind']('isEnabled')['toMany'](_0x54dff3,'isEnabled',(..._0x1f0307)=>_0x1f0307['some'](_0x312a47=>_0x312a47)),_0x491188['on']('execute',_0x3ed87c=>{this['editor']['execute'](_0x3ed87c['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x491188;}['_createMenuBarMenu'](_0x56840c,_0x3d064,_0x5a3443){const _0x192bd6=new _0xdf8ce5(_0x56840c),_0x18078e=this['editor']['commands']['get']('trackChanges');_0x192bd6['buttonView']['set']({'label':_0x5a3443,'icon':_0x3c57fa});const _0x4a3bcc=new _0x4da092(_0x56840c);for(const _0x3a9166 of _0x3d064){if('separator'==_0x3a9166['type']){_0x4a3bcc['items']['add'](new _0x186f66(_0x56840c));continue;}const _0x428b47=new _0x2836cd(_0x56840c,_0x192bd6),_0x19abc5=new _0x499f4d(_0x56840c),_0x197426=_0x3a9166['model'];_0x19abc5['bind'](...Object['keys'](_0x197426))['to'](_0x197426),_0x19abc5['delegate']('execute')['to'](_0x192bd6),_0x19abc5['on']('execute',()=>{this['editor']['execute'](_0x197426['commandName']),this['editor']['editing']['view']['focus']();}),_0x428b47['children']['add'](_0x19abc5),_0x4a3bcc['items']['add'](_0x428b47);}return _0x192bd6['bind']('isEnabled')['to'](_0x18078e,'isEnabled'),_0x192bd6['panelView']['children']['add'](_0x4a3bcc),_0x192bd6;}['_initializeController'](_0x2a5bf6){const _0x48bcac=this['editor'],_0x1e41d6=_0x48bcac['config'],_0x1fa71a=_0x48bcac['plugins']['get']('Annotations'),_0x44d3ac=_0x48bcac['plugins']['get']('CommentsRepository'),_0x2dc4a4=_0x48bcac['plugins']['get']('EditorAnnotations'),_0x5303d1=_0x48bcac['plugins']['get'](_0x3370ef)['me'],_0x3445d0=_0x1e41d6['get']('trackChanges')['SuggestionThreadView'],_0x277ca8=_0x1e41d6['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x39e478,CommentThreadInputView:_0x2ae3ce}=_0x48bcac['plugins']['get']('CommentsUI');let _0x26f32a,_0x5afa2d,_0x4f976b;this['_annotationViews']['has'](_0x2a5bf6['id'])?(_0x5afa2d=this['_annotationViews']['get'](_0x2a5bf6['id']),_0x26f32a=_0x5afa2d['mainView']):(_0x26f32a=new _0x3445d0(_0x48bcac['locale'],_0x2a5bf6,_0x5303d1,{'disableComments':this['_disableComments'],'editorConfig':{..._0x1e41d6['get']('comments.editorConfig'),'licenseKey':_0x1e41d6['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x1e41d6['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1e41d6['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1e41d6['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x39bb71(_0x1e41d6['get']('locale'),_0x48bcac['locale']),'CommentView':_0x1e41d6['get']('comments')['CommentView'],'CommentsListView':_0x39e478,'CommentThreadInputView':_0x2ae3ce,'SuggestionView':_0x277ca8}),_0x26f32a['suggestionView']['acceptButton']['on']('execute',()=>{_0x48bcac['editing']['view']['focus']();}),_0x26f32a['suggestionView']['discardButton']['on']('execute',()=>{_0x48bcac['editing']['view']['focus']();}),_0x5afa2d=_0x1fa71a['createAnnotationView'](this['editor']['locale'],_0x26f32a),_0x5afa2d['bind']('isDirty')['to'](_0x26f32a,'isDirty'),_0x5afa2d['bind']('length')['to'](_0x26f32a),_0x5afa2d['bind']('type')['to'](_0x26f32a,'type',_0xa7ca48=>'suggestion-'+_0xa7ca48),_0x26f32a['on']('escape',()=>{_0x4f976b['fire']('escape');}),this['_annotationViews']['set'](_0x2a5bf6['id'],_0x5afa2d));const _0x557891=_0x44d3ac['createCommentThreadController'](_0x2a5bf6['commentThread'],_0x26f32a),_0x104faa=new pe(_0x48bcac,_0x2a5bf6,_0x26f32a,_0x557891),_0x59ed50=_0x2a5bf6['getAllAdjacentSuggestions']()['filter'](_0x480169=>_0x480169['isInContent']);_0x26f32a['descriptionParts']=_0x48bcac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x59ed50),this['_suggestionToController']['set'](_0x2a5bf6,_0x104faa),this['_viewToController']['set'](_0x26f32a,_0x104faa);const _0x32d3eb=()=>{const _0x1f779e=[],_0x538b63=_0x2a5bf6['getAllAdjacentSuggestions']()['filter'](_0x5f2ad7=>_0x5f2ad7['isInContent']);for(const _0x37054c of _0x538b63)_0x1f779e['push'](..._0x37054c['getMarkers']());return _0x171825(_0x48bcac['editing'],_0x1f779e);};_0x4f976b=_0x1fa71a['createAnnotation']({'view':_0x5afa2d,'target':_0x32d3eb,'type':()=>'suggestion-'+_0x104faa['view']['type'],'isVisible':!!_0x32d3eb()}),_0x44d3ac['_bindAnnotationToEditors'](_0x26f32a,_0x4f976b),_0x1fa71a['add'](_0x4f976b),_0x2dc4a4['registerAnnotation'](_0x4f976b);}['_destroyController'](_0x397f45){const _0x1b1a48=this['editor']['plugins']['get']('CommentsRepository'),_0x3578f1=this['editor']['plugins']['get']('Annotations'),_0x5dd9a9=this['_suggestionToController']['get'](_0x397f45),_0x51b926=_0x5dd9a9['view'],_0x2b51ca=_0x3578f1['getByInnerView'](_0x51b926);_0x1b1a48['_unbindEditors'](_0x51b926),_0x2b51ca&&_0x3578f1['remove'](_0x2b51ca),this['_suggestionToController']['delete'](_0x397f45),this['_viewToController']['delete'](_0x51b926),_0x5dd9a9['destroy']();}['_updateController'](_0x5c188e){if(!_0x5c188e['isInContent']||!this['_suggestionToController']['has'](_0x5c188e))return;const _0x3556b3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f07eb=this['_suggestionToController']['get'](_0x5c188e),_0x5d5417=_0x5c188e['getAllAdjacentSuggestions']();_0x4f07eb['view']['descriptionParts']=_0x3556b3['descriptionFactory']['getDescriptions'](_0x5d5417);}['destroy'](){for(const _0x5a9e7c of this['_suggestionToController']['keys']())this['_destroyController'](_0x5a9e7c);for(const _0x41c6fd of this['_annotationViews']['values']())_0x41c6fd['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x5ce579){return'model'in _0x5ce579;}class Ne extends _0x147a49{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x10b556){this['editor']['plugins']['get'](d)['adapter']=_0x10b556;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x4d10e9){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x4d10e9);}['getSuggestions']({skipNotAttached:_0xa95c24=!0x1,toJSON:_0x39b41a=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0xa95c24,'toJSON':_0x39b41a});}['getSuggestion'](_0x1d1019){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x1d1019);}}const p=['Pagination'];class re extends _0x147a49{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x41b078=this['editor'];if(_0x41b078['config']['define']('trackChangesData.editorCreator',_0xb21af1=>{const _0x5debc0=_0x41b078['model']['document']['getRootNames']()['reduce']((_0x384313,_0x1d0147)=>(_0x384313[_0x1d0147]='',_0x384313),{});return _0x41b078['constructor']['create'](_0x5debc0,_0xb21af1);}),'function'!=typeof _0x41b078['config']['get']('trackChangesData')['editorCreator'])throw new _0x42e154('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x16b66d){return P(this['editor'],!0x0,_0x16b66d);}['getDataWithDiscardedSuggestions'](_0x5b4ce5){return P(this['editor'],!0x1,_0x5b4ce5);}}class Fe extends _0x147a49{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x356227){function _0x49cb8a(_0x1b08f4){return _0x1b08f4['map'](_0x2625c2=>String['fromCharCode'](_0x2625c2))['join']('');}super(_0x356227),this['result']='end',_0x356227[_0x49cb8a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49cb8a([0x76,0x69,0x65,0x77])][_0x49cb8a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x49cb8a([0x61,0x75,0x74,0x6f]),_0x356227[_0x49cb8a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x49cb8a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x49cb8a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x49cb8a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x49cb8a([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 De(_0x3d70ea){return void 0x0!==_0x3d70ea['getRootsAttributes'];}async function P(_0x1e910f,_0x3ff166,_0x240e37){const _0x15693b=_0x3f4499(_0x1e910f,p);_0x15693b['plugins']['push'](d,Fe),_0x15693b['rootsAttributes']=De(_0x1e910f)?_0x1e910f['getRootsAttributes']():void 0x0;const _0x45ba6e=document['createDocumentFragment'](),_0x55f908=_0x1e910f['config']['get']('trackChangesData')['editorCreator'],_0x58c2b1=await _0x55f908(_0x15693b,()=>function(_0x5f2f65){const _0x14b382=document['createElement']('div');return _0x5f2f65['appendChild'](_0x14b382),_0x14b382;}(_0x45ba6e));!function(_0x3a6c35,_0x2cd0d0){const _0xbb6e82=_0x3a6c35['model']['document']['getRootNames']()['reduce']((_0x2b5abe,_0x501bca)=>(_0x2b5abe[_0x501bca]=_0x3a6c35['data']['get']({'rootName':_0x501bca}),_0x2b5abe),{}),_0x2a10c2=_0x3a6c35['plugins']['get']('Users')['users']['map'](_0x2077d6=>({'id':_0x2077d6['id'],'name':_0x2077d6['name']})),_0x4e10c4=_0x3a6c35['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x357dd0=_0x3a6c35['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x22b6a2=_0x2cd0d0['plugins']['get']('Users'),_0x121664=_0x2cd0d0['plugins']['get']('TrackChangesEditing'),_0x49bec2=_0x2cd0d0['plugins']['get']('CommentsRepository');for(const _0xc39f78 of _0x49bec2['getCommentThreads']())_0xc39f78['remove']();for(const _0x26028f of _0x2a10c2)_0x22b6a2['getUser'](_0x26028f['id'])||_0x22b6a2['addUser'](_0x26028f);_0x22b6a2['me']||_0x22b6a2['useAnonymousUser']();for(const _0x1e7926 of _0x357dd0)_0x49bec2['addCommentThread'](_0x1e7926);for(const _0xb245b2 of _0x4e10c4)_0x121664['addSuggestionData'](_0xb245b2);_0x2cd0d0['data']['set'](_0xbb6e82);}(_0x1e910f,_0x58c2b1),_0x58c2b1['execute'](_0x3ff166?'acceptAllSuggestions':'discardAllSuggestions');const _0x478ca7=De(_0x58c2b1)?_0x58c2b1['getFullData'](_0x240e37):_0x58c2b1['data']['get'](_0x240e37);return await _0x58c2b1['destroy'](),_0x478ca7;}class Me extends _0x18358c{['options'];constructor(_0x4ba7ca,_0x3e77cb){super(_0x4ba7ca),this['options']=_0x3e77cb,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'](_0x15e07a,_0x3f8f1f){if(!this['element'])return;const _0x1a177f=[];for(const [_0x865ace,_0x5901eb]of _0x15e07a){const _0x4ac960=document['createElement']('div');_0x4ac960['setAttribute']('data-ck-root-name',_0x865ace),_0x4ac960['className']=_0x5901eb['classes']+'\x20ck-track-changes-preview__root-container',_0x4ac960['innerHTML']=_0x5901eb['content'],_0x1a177f['push'](_0x4ac960);}_0x3f8f1f(this['element'],_0x1a177f),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x36cb6b{constructor(_0x530211){super(_0x530211),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4642a2=this['editor'],_0x4fc2b4=_0x4642a2['locale'],_0x2e32f2=_0x4642a2['plugins']['get']('Dialog');let _0x52d210;const _0x55eba0=function(_0x3b654d){const _0x45b163={};if('editables'in _0x3b654d['ui']['view']){for(const [_0x178b7b,_0x345106]of Object['entries'](_0x3b654d['ui']['view']['editables']))_0x45b163[_0x178b7b]=_0x345106['element'];}else _0x45b163[_0x3b654d['model']['document']['getRootNames']()[0x0]]=_0x3b654d['ui']['view']['editable']['element'];return _0x45b163;}(_0x4642a2),_0x534809=function(_0x5a1652){let _0x254f32=0x0;for(const _0x187b5e of Object['values'](_0x5a1652))_0x254f32=Math['max'](_0x254f32,_0x187b5e['getBoundingClientRect']()['width']);let _0x12811f=0x0;for(const _0x392dd8 of Object['values'](_0x5a1652))_0x12811f+=_0x392dd8['getBoundingClientRect']()['height'];const _0x15a505=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x7c3b=Math['min'](_0x12811f,_0x15a505);return{'width':_0x254f32,'height':_0x7c3b};}(_0x55eba0);_0x2e32f2['show']({'id':'finalContentPreview','title':o(_0x4fc2b4,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x4fc2b4,{'dialogRects':_0x534809}),'onHide':()=>{_0x52d210['detachFromDom']();},'onShow':()=>{_0x4642a2['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3b1f9a=>{const _0x3123a9=this['_standarizeRootsData'](_0x3b1f9a,_0x4642a2,_0x55eba0);_0x2e32f2['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3123a9,_0x4642a2['config']['get']('trackChanges.preview.renderFunction'));}),_0x52d210=new _0x6095a8(_0x4fc2b4,[_0x2e32f2['view']]),_0x52d210['attachToDom'](),_0x52d210['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x4642a2['once']('destroy',()=>{_0x52d210['detachFromDom']();});const _0x253879=_0x2e32f2['view']['headerView']['class'];_0x2e32f2['view']['headerView']['class']=_0x253879?_0x253879+'\x20ck-reset_all':'ck-reset_all',_0x2e32f2['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2e32f2['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x428e5b=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2b1c6b=_0x428e5b['previewMode'],_0x32d18a={};if('$labels'===_0x2b1c6b){for(const _0x34634b of _0x428e5b['getMergeFieldsIds']())_0x32d18a[_0x34634b]=_0x428e5b['getLabel'](_0x34634b)||_0x34634b;}else{const _0x14bded='$defaultValues'===_0x2b1c6b?_0x428e5b['getDefaultValues']():_0x428e5b['getDataSetValues'](_0x2b1c6b,!0x0);for(const _0x187679 of Object['entries'](_0x14bded)){const [_0x4e447c,_0x300082]=_0x187679;_0x32d18a[_0x4e447c]=null!==_0x300082?_0x300082:_0x428e5b['getLabel'](_0x4e447c)||_0x4e447c;}}return{'mergeFieldsData':_0x32d18a};}['_standarizeRootsData'](_0xa8fe8e,_0x132cd2,_0x2630f1){let _0x7b80d8;if('string'==typeof _0xa8fe8e){const _0xbe79f7=_0x132cd2['model']['document']['getRootNames']()[0x0];_0x7b80d8={[_0xbe79f7]:_0xa8fe8e};}else _0x7b80d8=_0xa8fe8e;const _0x2e1e4b=this['_fixMediaEmbeds'](_0x7b80d8,_0x132cd2),_0x381892=function(_0x193542,_0x1734bb){for(const [_0x1b150d,_0x4e237c]of _0x193542)_0x4e237c['classes']=_0x1734bb[_0x1b150d]['classList']['value']['replace']('ck-focused','');return _0x193542;}(this['_sortRoots'](_0x132cd2)['reduce']((_0x3f28b9,_0xd74cf7)=>(_0x3f28b9['push']([_0xd74cf7,{'content':_0x2e1e4b[_0xd74cf7],'classes':''}]),_0x3f28b9),[]),_0x2630f1);return _0x381892;}['_fixMediaEmbeds'](_0xd24aef,_0x13d260){if(!_0x13d260['plugins']['has']('MediaEmbedEditing'))return _0xd24aef;const _0x53ec32=_0x13d260['plugins']['get']('MediaEmbedEditing');for(const [_0x32e7f9,_0x1e34f0]of Object['entries'](_0xd24aef)){const _0x4b0d35=document['createElement']('div');_0x4b0d35['innerHTML']=_0x1e34f0,(_0x4b0d35['querySelectorAll']('figure.media')['forEach'](_0x5d514e=>{const _0x25e698=_0x5d514e['querySelector']('oembed');if(_0x25e698){const _0x35e8e1=_0x25e698['getAttribute']('url');if(_0x35e8e1){const _0x197070=_0x53ec32['registry']['getMediaViewElement'](new _0x3b300a(_0x13d260['editing']['view']['document']),_0x35e8e1,{'elementName':'','renderForEditingView':!0x0}),_0x5670dc=document['createElement']('div');_0x5670dc['classList']['add']('ck-media__wrapper'),_0x197070['render'](_0x5670dc,_0x13d260['editing']['view']['domConverter']),_0x25e698['replaceWith'](_0x5670dc);}}}),_0xd24aef[_0x32e7f9]=_0x4b0d35['innerHTML']);}return _0xd24aef;}['_sortRoots'](_0x54777f){if(!function(_0x1e9de5){return void 0x0!==_0x1e9de5['getRootsAttributes'];}(_0x54777f))return _0x54777f['model']['document']['getRootNames']();const _0xe7d4c5=[],_0x18eea1=new Map();for(const _0x48ead1 of _0x54777f['model']['document']['getRootNames']()){const _0x5372af=_0x54777f['editing']['view']['getDomRoot'](_0x48ead1)['getClientRects']()['item'](0x0);_0xe7d4c5['push'](_0x48ead1),_0x18eea1['set'](_0x48ead1,_0x5372af);}return _0xe7d4c5['sort']((_0x1a2a58,_0x4d9dd7)=>{const _0x2e6e43=_0x18eea1['get'](_0x1a2a58),_0x28de8d=_0x18eea1['get'](_0x4d9dd7);return _0x2e6e43['y']-_0x28de8d['y']||_0x2e6e43['x']-_0x28de8d['x'];}),_0xe7d4c5;}}class Ue extends _0x147a49{static get['requires'](){return[re,_0x453e65];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f85d4){super(_0x4f85d4),_0x4f85d4['commands']['add']('previewFinalContent',new te(this['editor'])),_0x4f85d4['config']['define']('trackChanges.preview.renderFunction',(_0x4c871d,_0x5b0602)=>{for(const _0x55d896 of _0x5b0602)_0x4c871d['appendChild'](_0x55d896);});}}export{v as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,D as DiscardSuggestionCommand,B as ExecuteOnAllSuggestionsCommand,O as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,x as Suggestion,M as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,$ as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
23
+ import{Command as _0x6f992a,Plugin as _0x2051ed,PendingActions as _0x25e1fa}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x7f7e05,ObservableMixin as _0x303ac1,uid as _0x2280a6,priorities as _0x179c84,insertToPriorityArray as _0x24a61d,logWarning as _0x3f377d,getEnvKeystrokeText as _0x4239ea,FocusTracker as _0x17a81e,KeystrokeHandler as _0x193443,Collection as _0x1fcff8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x7366eb,IconCancel as _0x29d776,IconTrackChanges as _0x176232}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x2bff0e,View as _0x195901,ViewCollection as _0x4606ad,FocusCycler as _0x37f275,UIModel as _0x5636c8,createDropdown as _0x58693a,SplitButtonView as _0x16b1b1,addListToDropdown as _0x29c746,MenuBarMenuView as _0x409ba2,MenuBarMenuListView as _0x263b81,ListSeparatorView as _0x4d6c3f,MenuBarMenuListItemView as _0x8106ff,MenuBarMenuListItemButtonView as _0x2a02a7,BodyCollection as _0x447b17,Dialog as _0x36a810}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5a126c,DocumentCompare as _0x54d0d7,hashObject as _0x107885,surroundingMarkersDetector as _0x20c75f,FOCUS_ANNOTATION_KEYSTROKE as _0x49f432,AriaDescriptionView as _0x16b250,setupThreadKeyboardNavigation as _0x464452,trimHtml as _0x452a43,UserView as _0x4d114a,LateFocusButtonView as _0x10b3c2,getDateTimeFormatter as _0x34f158,getAllMarkersDomElementsSorted as _0x344ec9,sanitizeEditorConfig as _0x2ef362}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x3b63f4,ModelLiveRange as _0x53fd14,ModelLivePosition as _0x27be50,ViewDowncastWriter as _0x3ad43d}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x75ca20,set as _0x35413c,isEqual as _0x5abc0a,unset as _0x5c43fb,omit as Pt}from'es-toolkit/compat';import{Delete as _0x286964,Input as _0x30fdb1}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3662a5}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x4e8daf}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{SuggestionsConversion as Jt,fixElementSuggestionRange as Lt,splitSuggestionMarkerName as Gt}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class $ extends _0x6f992a{['_enabledCommands'];constructor(_0x355e9f,_0x157a71){super(_0x355e9f),this['_enabledCommands']=_0x157a71,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 _0x473acb of this['editor']['commands']['commands']())_0x473acb['affectsData']&&!this['_enabledCommands']['has'](_0x473acb)&&_0x473acb['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5021ae of this['editor']['commands']['commands']())_0x5021ae['affectsData']&&!this['_enabledCommands']['has'](_0x5021ae)&&_0x5021ae['clearForceDisabled']('TrackChangesCommand');}}class v extends _0x6f992a{['_suggestions'];constructor(_0x5ece19,_0xb32cd1){super(_0x5ece19),this['_suggestions']=_0xb32cd1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5f46f6){const _0x24965b=this['_suggestions']['get'](_0x5f46f6);if(!_0x24965b)throw new _0x7f7e05('track-changes-accept-suggestion-not-found',this);const _0x536a67=_0x24965b['getRanges']();this['editor']['model']['canEditAt'](_0x536a67)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x24965b);}}class D extends _0x6f992a{['_suggestions'];constructor(_0x47d009,_0x11abf8){super(_0x47d009),this['_suggestions']=_0x11abf8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x240951){const _0x2bd099=this['_suggestions']['get'](_0x240951);if(!_0x2bd099)throw new _0x7f7e05('track-changes-discard-suggestion-not-found',this);const _0x23f2b0=_0x2bd099['getRanges']();this['editor']['model']['canEditAt'](_0x23f2b0)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2bd099);}}function ls(_0x205b1,_0xe5de45){let _0x246e26='';return _0x246e26+=_0x205b1['split']('*')['map']((_0x54fd85,_0x289387)=>_0x289387%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0x54fd85)+'</span>':rn(_0x54fd85))['join'](''),_0xe5de45&&(_0x246e26+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xe5de45['value']+'\x22\x20title=\x22'+_0xe5de45['title']+'\x22></span>'),_0x246e26;}function rn(_0x49f83a){const _0x44b6e3=document['createElement']('span');return _0x44b6e3['innerText']=_0x49f83a,_0x44b6e3['innerHTML'];}function ts(_0x1df920){return _0x1df920['sort']((_0x5c33d5,_0x301d67)=>'attribute'===_0x5c33d5['type']&&'attribute'!==_0x301d67['type']?-0x1:'attribute'!==_0x5c33d5['type']&&'attribute'===_0x301d67['type']?0x1:'deletion'==_0x5c33d5['type']&&'deletion'!=_0x301d67['type']?-0x1:'deletion'!=_0x5c33d5['type']&&'deletion'==_0x301d67['type']?0x1:0x0);}function to(_0x4c485f,_0x4a162f){let _0x12b457,_0x5345ec=0x0;const _0x207bb9=[],_0x10eb30=_0x4a162f['schema'];for(;_0x5345ec<_0x4c485f['length'];){const _0x33a587=_0x4c485f[_0x5345ec],_0x1e1db3=_0x4c485f[_0x5345ec+0x1];_0x12b457||(_0x12b457=_0x4a162f['createPositionBefore'](_0x33a587)),cn(_0x4a162f,_0x33a587,_0x1e1db3)||(_0x207bb9['push'](_0x4a162f['createRange'](_0x12b457,_0x10eb30['isObject'](_0x33a587)?_0x4a162f['createPositionAfter'](_0x33a587):_0x4a162f['createPositionAt'](_0x33a587,'end'))),_0x12b457=null),_0x5345ec++;}return _0x207bb9;}function cn(_0x5148e6,_0x5ac921,_0x192003){if(!_0x192003)return!0x1;const _0xbacc36=_0x5148e6['createPositionAfter'](_0x5ac921),_0x57879e=_0x5148e6['createPositionBefore'](_0x192003);return _0xbacc36['isTouching'](_0x57879e);}function rs(_0x2adb7a,_0xc3b8f,_0x268cad){for(;_0x268cad['length'];){const _0x159ac7=_0x268cad['splice'](0x0,0x64);_0x2adb7a['change'](()=>{for(const _0x444de4 of _0x159ac7)_0x444de4['isInContent']&&_0xc3b8f['execute'](_0x444de4['id']);});}}class B extends _0x6f992a{['_command'];['_suggestions'];constructor(_0x1dd18e,_0x248420,_0xe968b0){super(_0x1dd18e),this['_command']=_0x248420,this['_suggestions']=_0xe968b0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x14b79a=Array['from'](this['_suggestions']['values']())['some'](_0x189be9=>_0x189be9['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x14b79a;}['execute'](){const _0x41b669=ts(Array['from'](this['_suggestions']['values']()));for(const _0x3459a5 of _0x41b669){const _0x534fee=_0x3459a5['getRanges']();if(!this['editor']['model']['canEditAt'](_0x534fee))return;}rs(this['editor']['model'],this['_command'],_0x41b669);}}class O extends _0x6f992a{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4a58db,_0x14698d,_0x3a656f){super(_0x4a58db),this['_command']=_0x14698d,this['_suggestions']=_0x3a656f,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x394a99=this['editor']['model']['document']['selection'],_0x42716a=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x19abd5,_0x4244a4){const _0x523c09=Array['from'](_0x19abd5['getRanges']()),_0x25a01d=new Set();for(const _0x5f3629 of _0x4244a4)if(_0x5f3629['isInContent']){for(const _0x56064f of _0x523c09)for(const _0x184e72 of _0x5f3629['getRanges']())(_0x56064f['isIntersecting'](_0x184e72)||_0x19abd5['isCollapsed']&&!_0x5f3629['isMultiRange']&&_0x5f3629['next']&&_0x184e72['end']['isTouching'](_0x56064f['start']))&&_0x25a01d['add'](_0x5f3629);}return _0x25a01d;}(_0x394a99,_0x42716a),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x514421=ts(Array['from'](this['_selectedSuggestions']));for(const _0x2272a3 of _0x514421){const _0x152235=_0x2272a3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x152235))return;}rs(this['editor']['model'],this['_command'],_0x514421);}}class x extends/* #__PURE__ -- @preserve */
24
+ _0x303ac1(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xaf9217,_0xb0bbac){super(),this['id']=_0xb0bbac['id'],this['type']=_0xb0bbac['type'],this['subType']=_0xb0bbac['subType']||null,this['author']=_0xb0bbac['author'],this['creator']=_0xb0bbac['creator']||_0xb0bbac['author'],this['isExternal']=Boolean(_0xb0bbac['attributes']&&_0xb0bbac['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0xb0bbac['originalSuggestionId']||null,this['_model']=_0xaf9217,this['_onAccept']=_0xb0bbac['onAccept'],this['_onDiscard']=_0xb0bbac['onDiscard'],this['_onAttributesChange']=_0xb0bbac['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xb0bbac['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 _0x5cf221=this;for(;_0x5cf221['previous'];)_0x5cf221=_0x5cf221['previous'];return _0x5cf221;}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'](_0x391b7c){this['_markerNames']['add'](_0x391b7c);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1e42e5=>this['_model']['markers']['get'](_0x1e42e5))['filter'](_0x309ccc=>_0x309ccc);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5ad4db=>{for(const _0x43e847 of this['getMarkers']())_0x5ad4db['removeMarker'](_0x43e847);}),this['_markerNames']['clear']();}['removeMarker'](_0x6512ca){this['_model']['change'](_0x185769=>{_0x185769['removeMarker'](_0x6512ca);}),this['_markerNames']['delete'](_0x6512ca);}['addRange'](_0x14106a){const _0x502fa9='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x502fa9),this['_model']['change'](_0x4b5f1a=>{_0x4b5f1a['addMarker'](_0x502fa9,{'range':_0x14106a,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1ee5fa){for(const _0x4618db of this['getRanges']())if(_0x4618db['isIntersecting'](_0x1ee5fa))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2444ea=>_0x2444ea['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2fd735,_0x14c34b)=>[..._0x2fd735,..._0x14c34b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x564a99=this['getRanges']();if(0x1!=_0x564a99['length'])return null;const _0x3d18be=_0x564a99[0x0],_0xe9b05d=_0x3d18be['start']['nodeAfter'],_0x4cc7ea=_0x3d18be['end']['nodeBefore'];return _0xe9b05d instanceof _0x3b63f4?_0xe9b05d!=_0x4cc7ea?null:_0xe9b05d: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 _0xe5d1d8=[];let _0x415b7a=this['head'];for(;_0x415b7a;)_0xe5d1d8['push'](_0x415b7a),_0x415b7a=_0x415b7a['next'];return _0xe5d1d8;}['setAttribute'](_0x170b98,_0x2b9956){const _0x3aba6b=_0x75ca20(this['attributes']);_0x35413c(_0x3aba6b,_0x170b98,_0x2b9956),_0x5abc0a(_0x3aba6b,this['attributes'])||(this['attributes']=_0x3aba6b,this['_onAttributesChange'](_0x3aba6b));}['removeAttribute'](_0x4cc1ff){const _0x19de00=_0x75ca20(this['attributes']);_0x5c43fb(_0x19de00,_0x4cc1ff),_0x5abc0a(_0x19de00,this['attributes'])||(this['attributes']=_0x19de00,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 _0x2280a6()['substr'](0x1,0x5);}}function o(_0x122ed2,_0x2db180,_0x564914){const _0x19ae3d=_0x122ed2['t'],t=_0x122ed2['t'];switch(_0x2db180){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',_0x564914);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x564914);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x564914);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x564914);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x564914);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',_0x564914);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x564914);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',_0x564914);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x564914);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x564914);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x564914);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x564914);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x564914);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x564914);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x564914);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x564914);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x564914);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x564914);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x564914);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x564914);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x564914);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x564914);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x564914);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x564914);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x564914);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'},_0x564914);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x564914);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x564914);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x564914);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x564914);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x564914);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x564914);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x564914);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'},_0x564914);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x564914);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x564914);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x564914);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x564914);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'},_0x564914);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x564914);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'},_0x564914);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x564914);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x564914);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'},_0x564914);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x564914);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'},_0x564914);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x564914);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x564914);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x564914);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x564914);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x564914);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'},_0x564914);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x564914);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 _0x19ae3d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x564914);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x19ae3d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x564914);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x564914);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'},_0x564914);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'},_0x564914);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'},_0x564914);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2db180;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2979c0,_0x3a5f1a){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2979c0,this['_locale']=_0x3a5f1a;}['getDescriptions'](_0x39d1fa){const _0x9202c0=[],_0x2f6b27=new Set(),_0x2f5eca=new Set();for(let _0x379158=0x0;_0x379158<_0x39d1fa['length'];_0x379158++){const _0x3e0cb3=_0x39d1fa[_0x379158];if(!_0x3e0cb3['isInContent'])continue;const _0x4e6f1e=this['_handleCustomCallbackDescription'](_0x3e0cb3);if(_0x4e6f1e){if(null!=_0x3e0cb3['subType']){if(_0x2f6b27['has'](_0x3e0cb3['subType']))continue;_0x2f6b27['add'](_0x3e0cb3['subType']);}_0x9202c0['push'](_0x4e6f1e);}else{if('attribute'==_0x3e0cb3['type']){const _0x1fe4ed=_0x3e0cb3['data']['key'];if(_0x2f5eca['has'](_0x1fe4ed))continue;_0x2f5eca['add'](_0x3e0cb3['data']['key']),_0x1fe4ed==m?this['_handleRenameSuggestionDescription'](_0x9202c0,_0x3e0cb3):this['_handleAttributeSuggestionDescription'](_0x9202c0,_0x3e0cb3);continue;}'insertion'!=_0x3e0cb3['type']&&'deletion'!=_0x3e0cb3['type']||this['_handleInsertRemoveSuggestionDescription'](_0x9202c0,_0x3e0cb3,_0x39d1fa[_0x379158+0x1]);}}return this['_resolveDescriptionItems'](_0x9202c0);}['registerDescriptionCallback'](_0x10d36d){this['_customCallbacks']['push'](_0x10d36d);}['registerElementLabel'](_0x4b4834,_0x54cd04,_0x2df8ff=_0x179c84['normal']){'function'==typeof _0x4b4834?_0x24a61d(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4b4834,'label':_0x54cd04,'priority':_0x2df8ff}):this['_itemLabels']['set'](_0x4b4834,_0x54cd04);}['registerAttributeLabel'](_0x5c2266,_0x5df4b4){this['_attributeLabels']['set'](_0x5c2266,_0x5df4b4);}['getItemLabel'](_0x4ec64d,_0x136d71=0x1){let _0x2fc321;for(const _0x522170 of this['_itemLabelsCallbacks'])if(_0x522170['matchingCallback'](_0x4ec64d)){_0x2fc321=_0x522170['label'];break;}return _0x2fc321||(_0x2fc321=this['_itemLabels']['get'](_0x4ec64d['name'])),_0x2fc321?_0x2fc321(_0x136d71):0x1!==_0x136d71?_0x136d71+'\x20'+_0x4ec64d['name']+'s':''+_0x4ec64d['name'];}['_addDescriptionItems'](_0x4aef6d,_0x4670d3){const _0x4a1217=_0x4670d3['getFirstRange']()['getWalker'](),_0x27d03f='insertion'==_0x4670d3['type']?'add':'remove';for(const _0x417492 of _0x4a1217){const _0x1bec8e=_0x417492['item'],_0x5d8513=_0x4aef6d[_0x4aef6d['length']-0x1];if(_0x1bec8e['is']('$textProxy'))_0x5d8513&&_0x5d8513['type']['indexOf']('Container')>-0x1&&_0x4aef6d['pop'](),_0x5d8513&&'text'==_0x5d8513['type']?_0x5d8513[_0x27d03f]+=_0x1bec8e['data']:_0x4aef6d['push']({'type':'text','add':'add'==_0x27d03f?_0x1bec8e['data']:'','remove':'remove'==_0x27d03f?_0x1bec8e['data']:''});else{if(this['_schema']['isObject'](_0x1bec8e)){const _0x5c99b7=_0x1bec8e;if(_0x5d8513&&_0x5d8513['type']['indexOf']('Container')>-0x1&&_0x4aef6d['pop'](),'elementEnd'==_0x417492['type'])continue;_0x5d8513&&_0x5d8513['type']==_0x27d03f+'Object'&&_0x5d8513['element']['name']==_0x5c99b7['name']?_0x5d8513['quantity']++:_0x4aef6d['push']({'type':_0x27d03f+'Object','element':_0x5c99b7,'quantity':0x1}),_0x4a1217['skip'](_0x595047=>!('elementEnd'==_0x595047['type']&&_0x595047['item']==_0x1bec8e));}else{if(this['_schema']['checkChild'](_0x1bec8e,'$text')||_0x1bec8e['is']('element','softBreak')){const _0xbd4c12=_0x1bec8e;if('add'==_0x27d03f&&'elementStart'==_0x417492['type']||'remove'==_0x27d03f&&'elementEnd'==_0x417492['type'])continue;if(_0x5d8513&&-0x1==_0x5d8513['type']['indexOf']('Container')){'text'==_0x5d8513['type']&&(_0x5d8513[_0x27d03f]+='\x0a');continue;}let _0xdd0235;if(_0xdd0235='add'==_0x27d03f?_0xbd4c12['nextSibling']&&!this['_schema']['isObject'](_0xbd4c12['nextSibling'])?_0xbd4c12['nextSibling']:null:_0xbd4c12['previousSibling']&&!this['_schema']['isObject'](_0xbd4c12['previousSibling'])?_0xbd4c12['previousSibling']:null,_0xbd4c12['isEmpty']||_0xdd0235&&_0xdd0235['isEmpty']){const _0x5a62e6=_0xdd0235&&_0xdd0235['isEmpty']?_0xdd0235:_0xbd4c12;_0x5d8513&&_0x5d8513['type']==_0x27d03f+'EmptyContainer'&&_0x5d8513['element']['name']==_0x5a62e6['name']?_0x5d8513['quantity']++:_0x4aef6d['push']({'type':_0x27d03f+'EmptyContainer','element':_0x5a62e6,'quantity':0x1});}else _0x4aef6d['push']({'type':_0x27d03f+'Container','element':_0xbd4c12});}}}}}['_resolveDescriptionItems'](_0x3fc3d9){const _0x55a957=this['_locale'],_0xbf61c8=[],_0x5778a0=[],_0x7312aa=[];for(const _0x344e07 of _0x3fc3d9)switch(_0x344e07['type']){case'text':if(_0x344e07['add']=_0x344e07['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x344e07['remove']=_0x344e07['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x344e07['add']&&''!=_0x344e07['remove']){_0xbf61c8['push']({'type':'replace','content':o(_0x55a957,'REPLACE_TEXT',['\x22'+_0x344e07['remove']+'\x22','\x22'+_0x344e07['add']+'\x22'])});continue;}if(null!=_0x344e07['add']['match'](/^ +$/)){_0xbf61c8['push']({'type':'insertion','content':o(_0x55a957,'*Insert:*\x20%0',o(_0x55a957,'ELEMENT_SPACE',_0x344e07['add']['length']))});continue;}if(null!=_0x344e07['remove']['match'](/^ +$/)){_0xbf61c8['push']({'type':'deletion','content':o(_0x55a957,'*Remove:*\x20%0',o(_0x55a957,'ELEMENT_SPACE',_0x344e07['remove']['length']))});continue;}if(''!=_0x344e07['add']){_0xbf61c8['push']({'type':'insertion','content':o(_0x55a957,'*Insert:*\x20%0','\x22'+_0x344e07['add']+'\x22')});continue;}_0xbf61c8['push']({'type':'deletion','content':o(_0x55a957,'*Remove:*\x20%0','\x22'+_0x344e07['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xbf61c8['push']({'type':'insertion','content':o(_0x55a957,'*Insert:*\x20%0',this['getItemLabel'](_0x344e07['element'],_0x344e07['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xbf61c8['push']({'type':'deletion','content':o(_0x55a957,'*Remove:*\x20%0',this['getItemLabel'](_0x344e07['element'],_0x344e07['quantity']))});continue;case'addContainer':_0xbf61c8['push']({'type':'insertion','content':o(_0x55a957,'*Split:*\x20%0',this['getItemLabel'](_0x344e07['element'],_0x344e07['quantity']))});continue;case'removeContainer':_0xbf61c8['push']({'type':'deletion','content':o(_0x55a957,'*Merge:*\x20%0',this['getItemLabel'](_0x344e07['element'],_0x344e07['quantity']))});continue;case'addFormat':_0x5778a0['push'](_0x344e07['key']);continue;case'removeFormat':_0x7312aa['push'](_0x344e07['key']);continue;default:_0xbf61c8['push'](_0x344e07);}if(_0x5778a0['length']){const _0x4773b3=_0x5778a0['map'](_0x413b2c=>this['_attributeLabels']['has'](_0x413b2c)?this['_attributeLabels']['get'](_0x413b2c):_0x413b2c)['join'](',\x20');_0xbf61c8['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4773b3)});}if(_0x7312aa['length']){const _0x3c5c82=_0x7312aa['map'](_0x255b85=>this['_attributeLabels']['has'](_0x255b85)?this['_attributeLabels']['get'](_0x255b85):_0x255b85)['join'](',\x20');_0xbf61c8['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3c5c82)});}return _0xbf61c8;}['_handleCustomCallbackDescription'](_0x2cf7bd){for(const _0x12a479 of this['_customCallbacks']){const _0xc9890b=_0x12a479(_0x2cf7bd);if(_0xc9890b&&'type'in _0xc9890b)return _0xc9890b;}}['_handleAttributeSuggestionDescription'](_0x1592dd,_0x415b04){const _0x2f9073=_0x415b04['data'],_0x72e19=void 0x0===_0x2f9073['newValue']?'removeFormat':'addFormat';_0x1592dd['push']({'type':_0x72e19,'key':_0x2f9073['key']});}['_handleRenameSuggestionDescription'](_0x1132f8,_0xbc73a){_0x1132f8['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xbc73a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x482332,_0x580627,_0x3b2a3f){if(this['_addDescriptionItems'](_0x482332,_0x580627),_0x3b2a3f&&_0x3b2a3f['getFirstRange']()&&!_0x580627['getFirstRange']()['end']['isEqual'](_0x3b2a3f['getFirstRange']()['start'])){const _0x4ca048=_0x482332[_0x482332['length']-0x1],_0x1b68d4='insertion'==_0x580627['type']?'add':'remove';_0x4ca048&&'text'==_0x4ca048['type']&&(_0x4ca048[_0x1b68d4]+='\x0a');}}}class R extends _0x2051ed{['afterInit'](){const _0x3b5926=this['editor'],_0x341a26=_0x3b5926['plugins']['get']('TrackChangesEditing');_0x3b5926['commands']['get']('showAIAssistant')&&_0x341a26['enableCommand']('showAIAssistant');}}class T extends _0x2051ed{['afterInit'](){const _0x23abfa=this['editor'],_0x52d3dc=_0x23abfa['plugins']['get']('TrackChangesEditing');_0x23abfa['commands']['get']('toggleAi')&&_0x52d3dc['enableCommand']('toggleAi');}}class E extends _0x2051ed{['afterInit'](){const _0x554e33=this['editor'],_0x52907d=_0x554e33['plugins']['get']('TrackChangesEditing');_0x554e33['commands']['get']('aiQuickAction')&&_0x52907d['enableCommand']('aiQuickAction');}}class U extends _0x2051ed{['afterInit'](){const _0xbc0d28=this['editor'],_0x1adbae=_0xbc0d28['locale'];if(!_0xbc0d28['plugins']['has']('AlignmentEditing'))return;const _0x15c07f=_0xbc0d28['plugins']['get']('TrackChangesEditing');_0x15c07f['enableDefaultAttributesIntegration']('alignment'),_0x15c07f['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1adbae,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51de53=this['editor'],_0xbd8093=_0x51de53['locale'];_0x51de53['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20ba02=>{if('formatBlock'!=_0x20ba02['type'])return;const {data:_0x3054bd}=_0x20ba02;if(_0x3054bd&&'alignment'==_0x3054bd['commandName']){const _0x2609b9=_0x3054bd['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xbd8093,'*Format:*\x20%0',function(_0xf1774a){switch(_0xf1774a){case'left':return o(_0xbd8093,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xbd8093,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xbd8093,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xbd8093,'FORMAT_JUSTIFY_TEXT');}}(_0x2609b9))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x2051ed{['afterInit'](){const _0x3a4ea9=this['editor'],_0x591fc4=_0x3a4ea9['plugins']['get']('TrackChangesEditing'),_0xa29de3=_0x3a4ea9['locale'];for(const _0x163181 of ti){if(!_0x3a4ea9['plugins']['has'](_0x163181))continue;const _0x3c1e41=_0x163181['slice'](0x0,-0x7)['toLowerCase'](),_0x6bb051='FORMAT_'+_0x3c1e41['toUpperCase']();_0x591fc4['enableDefaultAttributesIntegration'](_0x3c1e41),_0x591fc4['descriptionFactory']['registerAttributeLabel'](_0x3c1e41,o(_0xa29de3,_0x6bb051));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e9873=this['editor'],_0x1e0bbf=_0x1e9873['locale'],_0x413f58=_0x1e9873['plugins']['get']('TrackChangesEditing');function _0x3e8b0f(_0x99b25,_0x1297c0){_0x413f58['descriptionFactory']['registerDescriptionCallback'](_0x353606=>{if('formatInline'!=_0x353606['type'])return;const {data:_0x3b9467}=_0x353606;return _0x3b9467&&_0x3b9467['commandName']===_0x99b25?_0x3b9467['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1e0bbf,'*Format:*\x20%0',_0x1297c0)}:{'type':'format','content':o(_0x1e0bbf,'*Remove\x20format:*\x20%0',_0x1297c0)}:void 0x0;});}_0x3e8b0f('bold',o(_0x1e0bbf,'FORMAT_BOLD')),_0x3e8b0f('italic',o(_0x1e0bbf,'FORMAT_ITALIC')),_0x3e8b0f('underline',o(_0x1e0bbf,'FORMAT_UNDERLINE')),_0x3e8b0f('code',o(_0x1e0bbf,'FORMAT_CODE')),_0x3e8b0f('strikethrough',o(_0x1e0bbf,'FORMAT_STRIKETHROUGH')),_0x3e8b0f('subscript',o(_0x1e0bbf,'FORMAT_SUBSCRIPT')),_0x3e8b0f('superscript',o(_0x1e0bbf,'FORMAT_SUPERSCRIPT'));}}class F extends _0x2051ed{['afterInit'](){const _0x46d642=this['editor'],_0x531bf5=_0x46d642['locale'];if(!_0x46d642['plugins']['has']('BlockQuoteEditing'))return;const _0xd19bb2=_0x46d642['plugins']['get']('TrackChangesEditing'),_0xc1741e=this['editor']['commands']['get']('blockQuote');_0xd19bb2['enableCommand']('blockQuote',(_0xe1074c,_0x51e70b={})=>{const _0x72b9de=this['editor']['model']['document']['selection'],_0x5669ae=_0x51e70b&&void 0x0!==_0x51e70b['forceValue']?_0x51e70b['forceValue']:!_0xc1741e['value'];let _0x742e55=[];if(_0x5669ae){const _0x256b20=Array['from'](_0x72b9de['getSelectedBlocks']())['filter'](_0x217439=>oo(_0x217439)||function(_0x4b3ea5,_0x4c841d){const _0x43193e=_0x4c841d['checkChild'](_0x4b3ea5['parent'],'blockQuote'),_0x2d665c=_0x4c841d['checkChild'](['$root','blockQuote'],_0x4b3ea5);return _0x43193e&&_0x2d665c;}(_0x217439,this['editor']['model']['schema']));_0x742e55=to(_0x256b20,_0x46d642['model']);}else{const _0x4e1183=Array['from'](_0x72b9de['getSelectedBlocks']())['filter'](_0x56803c=>oo(_0x56803c));_0x742e55=to(_0x4e1183,_0x46d642['model']);}_0x46d642['model']['change'](()=>{for(const _0x4ab449 of _0x742e55)_0xd19bb2['markBlockFormat'](_0x4ab449,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5669ae}]});});}),_0xd19bb2['descriptionFactory']['registerDescriptionCallback'](_0x530e90=>{const {data:_0xade77f}=_0x530e90;if(_0xade77f&&'blockQuote'==_0xade77f['commandName']){const _0x19c954=o(_0x531bf5,'ELEMENT_BLOCK_QUOTE');return _0xade77f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x531bf5,'*Set\x20format:*\x20%0',_0x19c954)}:{'type':'format','content':o(_0x531bf5,'*Remove\x20format:*\x20%0',_0x19c954)};}});}}function oo(_0x536c44){return'blockQuote'==_0x536c44['parent']['name'];}class G extends _0x2051ed{['afterInit'](){const _0x40378c=this['editor'],_0x2682ce=_0x40378c['locale'],_0x1ee863=_0x40378c['plugins']['get']('TrackChangesEditing');_0x40378c['plugins']['has']('BookmarkEditing')&&(_0x1ee863['enableCommand']('insertBookmark'),_0x1ee863['enableDefaultAttributesIntegration']('updateBookmark'),_0x1ee863['descriptionFactory']['registerDescriptionCallback'](_0x348eb6=>{if('insertion'!=_0x348eb6['type']&&'deletion'!=_0x348eb6['type']&&'attribute'!=_0x348eb6['type'])return;const _0x324cf5=_0x348eb6['getContainedElement']();if(null==_0x324cf5)return;if(!_0x324cf5['is']('element','bookmark'))return;const _0x5395c0=_0x324cf5['getAttribute']('bookmarkId');if('insertion'==_0x348eb6['type'])return{'type':'insertion','content':o(_0x2682ce,'*Insert:*\x20%0','\x22'+_0x5395c0+'\x22\x20'+o(_0x2682ce,'ELEMENT_BOOKMARK'))};if('deletion'==_0x348eb6['type'])return{'type':'deletion','content':o(_0x2682ce,'*Remove:*\x20%0','\x22'+_0x5395c0+'\x22\x20'+o(_0x2682ce,'ELEMENT_BOOKMARK'))};const {data:_0x43bd44}=_0x348eb6;if(!_0x43bd44||'bookmarkId'!=_0x43bd44['key'])return;return{'type':'format','content':o(_0x2682ce,'*Set\x20bookmark:*\x20%0','\x22'+_0x43bd44['newValue']+'\x22')};}));}}class L extends _0x2051ed{['afterInit'](){const _0x80d54=this['editor'];_0x80d54['plugins']['has']('CaseChange')&&(_0x80d54['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x80d54['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x80d54['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x2051ed{['afterInit'](){const _0x1e4d30=this['editor'];_0x1e4d30['commands']['get']('ckbox')&&_0x1e4d30['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x2051ed{['afterInit'](){const _0x11f411=this['editor'];if(!_0x11f411['plugins']['has']('CodeBlock'))return;const _0xae2de7=_0x11f411['plugins']['get']('TrackChangesEditing'),_0x5473f2=_0x11f411['locale'],_0x566656=_0x11f411['config']['get']('codeBlock')['languages'],_0x3c3190=_0x11f411['commands']['get']('codeBlock');_0xae2de7['enableCommand']('indentCodeBlock'),_0xae2de7['enableCommand']('outdentCodeBlock'),_0xae2de7['enableCommand']('codeBlock',(_0x4a9bda,_0x2516ce={})=>{const _0x4eb7da=_0x11f411['model'],_0x5b6679=_0x11f411['model']['document']['selection'],_0x47144b=_0x2516ce&&void 0x0!==_0x2516ce['forceValue']?_0x2516ce['forceValue']:!_0x3c3190['value'];let _0xe0477;_0x2516ce['language']||(_0x2516ce['language']=_0x566656[0x0]['language']),_0xe0477=_0x47144b?Array['from'](_0x5b6679['getSelectedBlocks']())['filter'](_0x1a291e=>co(_0x1a291e)||function(_0x2a8b2a,_0xf7308){if(_0x2a8b2a['is']('rootElement')||_0xf7308['isLimit'](_0x2a8b2a))return!0x1;return _0xf7308['checkChild'](_0x2a8b2a['parent'],'codeBlock');}(_0x1a291e,_0x4eb7da['schema'])):Array['from'](_0x5b6679['getSelectedBlocks']())['filter'](_0x2fd313=>co(_0x2fd313));const _0x5528b5=to(_0xe0477,_0x4eb7da);_0x4eb7da['change'](()=>{for(const _0x3f0802 of _0x5528b5)_0xae2de7['markBlockFormat'](_0x3f0802,{'commandName':'codeBlock','commandParams':[{..._0x2516ce,'forceValue':_0x47144b}],'formatGroupId':'blockName'});});}),(_0xae2de7['descriptionFactory']['registerElementLabel']('codeBlock',_0x1fb778=>o(_0x5473f2,'ELEMENT_CODE_BLOCK',_0x1fb778)),_0xae2de7['descriptionFactory']['registerDescriptionCallback'](_0x2a17df=>{if('formatBlock'!=_0x2a17df['type'])return;const _0x46bd82=_0x5473f2['t'],{data:_0x2a3974}=_0x2a17df;if(!_0x2a3974||'codeBlock'!=_0x2a3974['commandName'])return;const _0x2ced45=_0x2a3974['commandParams'][0x0]['language'],_0x4e85c5=_0x46bd82(_0x566656['find'](_0x1d26a0=>_0x1d26a0['language']===_0x2ced45)['label'])['toLowerCase']();return _0x2a3974['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5473f2,'*Set\x20format:*\x20%0',o(_0x5473f2,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4e85c5+')')}:{'type':'format','content':o(_0x5473f2,'*Remove\x20format:*\x20%0',o(_0x5473f2,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x54bfc8){return'codeBlock'==_0x54bfc8['name'];}class z extends _0x2051ed{['afterInit'](){const _0x2917d0=this['editor'];if(!_0x2917d0['plugins']['has']('CommentsEditing'))return;_0x2917d0['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x2051ed{static get['requires'](){return[_0x286964];}['init'](){const _0x207cbc=this['editor'],_0x2cafbb=_0x207cbc['plugins']['get']('TrackChangesEditing');_0x2cafbb['enableCommand']('delete');const _0xcc0bb5=_0x207cbc['commands']['get']('deleteForward');_0x2cafbb['enableCommand']('deleteForward',(_0x44cc91,_0x62e446={})=>{const _0x40954f=_0x207cbc['model']['createSelection'](_0x207cbc['model']['document']['selection']);_0x40954f['isCollapsed']&&_0x207cbc['model']['modifySelection'](_0x40954f,{'direction':'forward','unit':_0x62e446['unit']});const _0x1f754c=_0x40954f['getFirstRange'](),_0x590e3e=_0x53fd14['fromRange'](_0x1f754c);let _0x1a97b1;_0x44cc91(_0x62e446),_0x1a97b1='$graveyard'==_0x590e3e['root']['rootName']?_0x207cbc['model']['createRange'](_0x1f754c['start']):_0x207cbc['model']['createRange'](_0x590e3e['start'],_0x590e3e['end']),_0x590e3e['detach'](),_0x207cbc['model']['enqueueChange'](_0xcc0bb5['buffer']['batch'],_0x5a80dd=>{_0xcc0bb5['buffer']['lock'](),_0x5a80dd['setSelection'](_0x5a80dd['createRange'](_0x1a97b1['end'])),_0xcc0bb5['buffer']['unlock']();});});}}class W extends _0x2051ed{['afterInit'](){const _0x142acd=this['editor'];if(!_0x142acd['plugins']['has']('ListEditing'))return;const _0xc09a0=_0x142acd['locale'],_0x24daf8=_0x142acd['plugins']['get']('TrackChangesEditing'),_0x3f30df=_0x142acd['plugins']['has']('TodoListEditing'),_0x545a42=!!_0x142acd['config']['get']('list.multiBlock');function _0x420f4b(_0x4580d7){return{'type':'format','content':''+o(_0xc09a0,'*Set\x20format:*\x20%0',_0x4580d7)};}function _0x12ddc0(_0x5a2eed){return{'type':'format','content':''+o(_0xc09a0,'*Remove\x20format:*\x20%0',_0x5a2eed)};}_0x24daf8['enableDefaultAttributesIntegration']('numberedList'),_0x24daf8['enableDefaultAttributesIntegration']('bulletedList'),_0x24daf8['enableDefaultAttributesIntegration']('customNumberedList'),_0x24daf8['enableDefaultAttributesIntegration']('customBulletedList'),_0x24daf8['enableDefaultAttributesIntegration']('indentList'),_0x24daf8['enableDefaultAttributesIntegration']('outdentList'),_0x24daf8['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x24daf8['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x545a42&&(_0x24daf8['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x24daf8['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3f30df&&(_0x24daf8['enableDefaultAttributesIntegration']('todoList'),_0x24daf8['enableDefaultAttributesIntegration']('checkTodoList'),_0x24daf8['descriptionFactory']['registerDescriptionCallback'](_0xd2cd5=>{const {data:_0x53955e}=_0xd2cd5;if(_0x53955e&&'todoListChecked'==_0x53955e['key'])return{'type':'format','content':_0x53955e['newValue']?o(_0xc09a0,'*Check\x20item*'):o(_0xc09a0,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x217268=>{if(_0x217268['batch']['isUndo'])return!0x1;let _0x513435=!0x1;const _0x46fb82=_0x24daf8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x27b529=>'todoListChecked'===_0x24daf8['_getAttributeKey'](_0x27b529));for(const _0x49dde9 of _0x46fb82){'todo'!=_0x49dde9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x24daf8['_findSuggestions'](_0x49dde9['getFirstRange'](),'attribute')['find'](_0x51fb5c=>'listType'===_0x24daf8['_getAttributeKey'](_0x51fb5c['suggestion']))||(_0x217268['removeMarker'](_0x49dde9['getFirstMarker']()),_0x513435=!0x0));}return _0x513435;})),_0x24daf8['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xc09a0,'FORMAT_INDENT'));const _0x490cd0={'type':'format','content':''};_0x24daf8['descriptionFactory']['registerDescriptionCallback'](_0x3b71fb=>{const {data:_0x3959a9}=_0x3b71fb;if(!_0x3959a9||'listType'!=_0x3959a9['key'])return;let _0xce0dcc=_0x3b71fb['head'];for(;_0xce0dcc;){if(_0xce0dcc['data']&&(('listStyle'==_0xce0dcc['data']['key']||'listMarkerStyle'==_0xce0dcc['data']['key'])&&(_0xce0dcc['data']['newValue']&&'default'!=_0xce0dcc['data']['newValue']||'default'!=_0xce0dcc['data']['oldValue']&&!_0x3959a9['newValue'])||!_0x545a42&&_0xce0dcc['data']['key']==m))return _0x490cd0;_0xce0dcc=_0xce0dcc['next'];}if(null==_0x3959a9['newValue'])switch(_0x3959a9['oldValue']){case'bulleted':return _0x12ddc0(o(_0xc09a0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x12ddc0(o(_0xc09a0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x12ddc0(o(_0xc09a0,'ELEMENT_TODO_LIST'));}switch(_0x3959a9['newValue']){case'bulleted':return _0x420f4b(o(_0xc09a0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x420f4b(o(_0xc09a0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x420f4b(o(_0xc09a0,'ELEMENT_TODO_LIST'));}}),_0x24daf8['descriptionFactory']['registerDescriptionCallback'](_0x3fe665=>{const {data:_0xae2e30}=_0x3fe665;if(_0xae2e30&&'listIndent'==_0xae2e30['key'])return null==_0xae2e30['newValue']||null==_0xae2e30['oldValue']&&0x0==_0xae2e30['newValue']?_0x490cd0:void 0x0;}),_0x24daf8['descriptionFactory']['registerDescriptionCallback'](_0x53e759=>{if('attribute'!=_0x53e759['type'])return;const {data:_0x55ce44}=_0x53e759;if(!_0x55ce44||'listItemId'!=_0x55ce44['key'])return;const _0x41a4cb=Te(_0x53e759);return'newValue'==_0x41a4cb?{'type':'format','content':o(_0xc09a0,'*Merge:*\x20list\x20item')}:'oldValue'==_0x41a4cb?{'type':'format','content':o(_0xc09a0,'*Split:*\x20list\x20item')}:_0x490cd0;}),_0x142acd['model']['document']['registerPostFixer'](_0x8c2b59=>this['listItemIdFixer'](_0x8c2b59)),_0x142acd['model']['document']['registerPostFixer'](_0x1a959c=>this['noTrackChangesFixer'](_0x1a959c)),_0x142acd['model']['document']['on']('change:data',(_0x400408,_0x2e0c6f)=>{if(_0x2e0c6f['isUndo']||!_0x2e0c6f['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x39db4b){if(_0x39db4b['batch']['isUndo']||!_0x39db4b['batch']['isLocal'])return!0x1;let _0x524ab9=!0x1;const _0x4aefe8=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xfa3990=>_0xfa3990['data']&&'listItemId'==_0xfa3990['data']['key'])['filter'](_0x55532f=>_0x55532f['data']['newValue']&&_0x55532f['data']['oldValue']);for(const _0x2473d6 of _0x4aefe8)Te(_0x2473d6)||(_0x39db4b['removeMarker'](_0x2473d6['getFirstMarker']()),_0x524ab9=!0x0);return _0x524ab9;}['noTrackChangesFixer'](_0x5a7001){if(_0x5a7001['batch']['isUndo']||!_0x5a7001['batch']['isLocal'])return!0x1;const _0x350228=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x350228['trackChangesCommand']['value'])return!0x1;let _0x32d9cb=!0x1;const _0x1eab83=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x11cfe=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1ecaf1=>'attribute'==_0x1ecaf1['type'])['filter'](_0x3da23b=>_0x1eab83['includes'](_0x3da23b['attributeKey']));if(0x0==_0x11cfe['length'])return _0x32d9cb;for(const _0x4a61e3 of _0x11cfe){const _0x506f05=_0x350228['_findSuggestions'](_0x4a61e3['range'],'attribute')['filter'](_0x5140cd=>!_0x5140cd['meta']['isNextTo'])['map'](_0x4c0b7d=>_0x4c0b7d['suggestion'])['filter'](_0x7cf055=>{const _0x29094c=_0x350228['_getAttributeKey'](_0x7cf055);return _0x1eab83['includes'](_0x29094c);});if(_0x506f05['length']){for(const _0x58f03d of _0x506f05)_0x5a7001['removeMarker'](_0x58f03d['getFirstMarker']());_0x32d9cb=!0x0;}}return _0x32d9cb;}['assureChains'](){const _0x8002a5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59faa6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4ab853;const _0x49e166=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2bdf59=>{if(_0x2bdf59['data']['oldRange']||!_0x2bdf59['data']['newRange'])return null;if(!_0x2bdf59['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4d8a5d}=_0x8002a5['_splitMarkerName'](_0x2bdf59['name']);if(!_0x8002a5['hasSuggestion'](_0x4d8a5d))return null;const _0x3dfe67=_0x8002a5['getSuggestion'](_0x4d8a5d);return _0x59faa6['includes'](_0x3dfe67['data']['key']);})['map'](_0x4e4579=>{const {id:_0x30c27c}=_0x8002a5['_splitMarkerName'](_0x4e4579['name']),_0x2ef0f1=_0x8002a5['getSuggestion'](_0x30c27c);return _0x4ab853=_0x2ef0f1['attributes']['groupId'],_0x2ef0f1['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x49e166['size'])return;const _0x1b7a43=_0x8002a5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x175a3a=>'attribute'==_0x175a3a['type']&&_0x175a3a['data']&&_0x59faa6['includes'](_0x175a3a['data']['key'])&&_0x175a3a['attributes']['groupId']!=_0x4ab853)['map'](_0x4df995=>({'listItem':_0x4df995['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4df995['attributes']['groupId']})),_0x311913=new Set();for(const {groupId:_0x4998b1,listItem:_0x85167d}of _0x1b7a43)_0x49e166['has'](_0x85167d)&&_0x311913['add'](_0x4998b1);for(const _0x36e89e of _0x8002a5['getSuggestions']())_0x311913['has'](_0x36e89e['attributes']['groupId'])&&_0x36e89e['setAttribute']('groupId',_0x4ab853);}['_supportLegacySuggestions'](){const _0xd49598=this['editor'],_0x55ccd2=_0xd49598['locale'],_0x270737=_0xd49598['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x270737['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5644f3,_0x13154d){const _0x43dac2=[];for(let _0x2086cb of _0x5644f3)_0x2086cb['start']['nodeAfter']===_0x2086cb['end']['parent']&&(_0x2086cb=_0xd49598['model']['createRange'](_0xd49598['model']['createPositionAt'](_0x2086cb['start']['nodeAfter'],0x0))),_0x43dac2['push'](_0x2086cb);_0xd49598['model']['change'](_0xc07459=>{const _0x2b6d23=_0xd49598['model']['document']['selection'],_0x32be65=Array['from'](_0x2b6d23['getRanges']())['map'](_0x37a031=>_0x53fd14['fromRange'](_0x37a031));_0xc07459['setSelection'](_0x43dac2),_0xd49598['commands']['get'](_0x13154d['commandName'])['refresh'](),_0x13154d['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xd49598['execute'](_0x13154d['commandName'],..._0x13154d['commandParams']),_0xc07459['setSelection'](_0x32be65);for(const _0x3274af of _0x32be65)_0x3274af['detach']();});}),_0x270737['descriptionFactory']['registerElementLabel'](function(_0x2bfbb5){const _0x1c4a9e=!_0xd49598['model']['schema']['isObject'](_0x2bfbb5),_0x21330b=_0x2bfbb5['previousSibling'],_0xb2bcf7=_0x2bfbb5['nextSibling'],_0x2ab537=_0x2bfbb5['getAttribute']('listItemId'),_0x51cc3c=!_0x21330b||_0x21330b['getAttribute']('listItemId')!==_0x2ab537,_0x5e24f4=!_0xb2bcf7||_0xb2bcf7['getAttribute']('listItemId')!==_0x2ab537;return _0x1c4a9e&&Boolean(_0x2ab537)&&_0x51cc3c&&_0x5e24f4;},_0x25961f=>o(_0x55ccd2,'ELEMENT_LIST_ITEM',_0x25961f));}['_registerLegacyDescription'](){const _0x55901f=this['editor'],_0x27920a=_0x55901f['locale'];function _0x1222fa(_0x2b25c9){const _0x5004ec=_0x55901f['commands']['get']('bulletedList')['value'],_0x12ceb4=_0x55901f['commands']['get']('numberedList')['value'];return'numberedList'===_0x2b25c9?_0x5004ec:_0x12ceb4;}_0x55901f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x48f6cd){if('formatBlock'!=_0x48f6cd['type'])return;const {data:_0x4a44c3}=_0x48f6cd;if(!_0x4a44c3)return;let _0x614fd3,_0x5d17ad,_0x5a2634,_0x59b887;switch(_0x4a44c3['commandName']){case'bulletedList':_0x5a2634=_0x4a44c3['commandParams'][0x0]['forceValue'],_0x59b887=_0x1222fa(_0x4a44c3['commandName']),_0x614fd3=_0x5a2634?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x59b887&&_0x55901f['config']['get']('list.multiBlock')||(_0x614fd3='*Change\x20to:*\x20%0'),_0x5d17ad={'type':'format','content':o(_0x27920a,_0x614fd3,o(_0x27920a,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5a2634=_0x4a44c3['commandParams'][0x0]['forceValue'],_0x59b887=_0x1222fa(_0x4a44c3['commandName']),_0x614fd3=_0x5a2634?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x59b887&&_0x55901f['config']['get']('list.multiBlock')||(_0x614fd3='*Change\x20to:*\x20%0'),_0x5d17ad={'type':'format','content':o(_0x27920a,_0x614fd3,o(_0x27920a,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x614fd3='*Indent:*\x20%0',_0x5d17ad={'type':'format','content':o(_0x27920a,_0x614fd3,o(_0x27920a,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x614fd3=function(_0x12c254){const _0x5950a5=_0x12c254['getFirstRange']();let _0x10c625=_0x5950a5['start']['nodeAfter'];for(;_0x10c625&&_0x5950a5['containsItem'](_0x10c625);){if(_0x10c625['getAttribute']('listIndent')>0x0)return!0x1;_0x10c625=_0x10c625['nextSibling'];}return!0x0;}(_0x48f6cd)?o(_0x27920a,'*Format:*\x20remove\x20from\x20%0',o(_0x27920a,function(_0x57c9ef){return'ELEMENT_'+_0x57c9ef['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x48f6cd))):o(_0x27920a,'*Outdent:*\x20%0',o(_0x27920a,'ELEMENT_LIST_ITEM')),_0x5d17ad={'type':'format','content':_0x614fd3};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4a44c3['multipleBlocks']&&(_0x614fd3='*Merge:*\x20%0',_0x5d17ad={'type':'deletion','content':o(_0x27920a,_0x614fd3,o(_0x27920a,'ELEMENT_LIST_ITEM'))});}return _0x5d17ad;});}}function Te(_0x492192){let _0x3718a5=_0x492192['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3718a5;){const _0x4e16b5=_0x3718a5['getAttribute']('listItemId');if(!_0x4e16b5)return!0x1;if(_0x4e16b5==_0x492192['data']['newValue'])return'newValue';if(_0x4e16b5==_0x492192['data']['oldValue'])return'oldValue';_0x3718a5=_0x3718a5['previousSibling'];}return!0x1;}class H extends _0x2051ed{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x11e395=this['editor']['config']['get']('list.properties'),_0x341489=this['editor']['plugins']['get']('TrackChangesEditing');_0x11e395['styles']&&_0x341489['enableDefaultAttributesIntegration']('listStyle'),_0x11e395['reversed']&&_0x341489['enableDefaultAttributesIntegration']('listReversed'),_0x11e395['startIndex']&&_0x341489['enableDefaultAttributesIntegration']('listStart');const _0x545699={'type':'format','content':''};_0x341489['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x20da01=this['editor']['locale'];_0x341489['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x20da01,'FORMAT_LIST_REVERSED')),_0x341489['descriptionFactory']['registerDescriptionCallback'](_0x2fbf85=>{const {data:_0x1fc06f}=_0x2fbf85;if(_0x1fc06f&&'listReversed'==_0x1fc06f['key'])return null==_0x1fc06f['newValue']||0x0==_0x1fc06f['newValue']&&null==_0x1fc06f['oldValue']?_0x545699:void 0x0;}),_0x341489['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x20da01,'FORMAT_LIST_START')),_0x341489['descriptionFactory']['registerDescriptionCallback'](_0x35e896=>{const {data:_0xb2443e}=_0x35e896;if(_0xb2443e&&'listStart'==_0xb2443e['key'])return null==_0xb2443e['newValue']||0x1==_0xb2443e['newValue']&&null==_0xb2443e['oldValue']?_0x545699:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x392568=>{if(_0x392568['batch']['isUndo'])return!0x1;let _0x565d32=!0x1;const _0x543c0d=_0x341489['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x56b456=>{const _0x1886dc=_0x341489['_getAttributeKey'](_0x56b456);return'listStart'==_0x1886dc||'listReversed'==_0x1886dc;});for(const _0x5d4b76 of _0x543c0d){const _0x4690b7=_0x5d4b76['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4690b7||'customNumbered'==_0x4690b7)continue;_0x341489['_findSuggestions'](_0x5d4b76['getFirstRange'](),'attribute')['find'](_0x205281=>'listType'==_0x341489['_getAttributeKey'](_0x205281['suggestion']))||(_0x392568['removeMarker'](_0x5d4b76['getFirstMarker']()),_0x565d32=!0x0);}return _0x565d32;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x49b46e){const _0x5364c4=this['editor']['locale'],{data:_0x196262}=_0x49b46e,_0x15a749={'type':'format','content':''};if(!_0x196262||'listStyle'!=_0x196262['key'])return;if(!_0x196262['oldValue'])return'default'==_0x196262['newValue']?_0x15a749:{'type':'format','content':''+o(_0x5364c4,'*Set\x20format:*\x20%0',o(_0x5364c4,this['_getTranslationKeyForListStyle'](_0x196262['newValue'])))};if(!_0x196262['newValue']){if('default'==_0x196262['oldValue'])return _0x15a749;let _0x5b5272=_0x49b46e['head'];for(;_0x5b5272;){if(_0x5b5272['data']&&'listType'==_0x5b5272['data']['key']&&_0x5b5272['data']['newValue'])return _0x15a749;_0x5b5272=_0x5b5272['next'];}return{'type':'format','content':''+o(_0x5364c4,'*Remove\x20format:*\x20%0',o(_0x5364c4,this['_getTranslationKeyForListStyle'](_0x196262['oldValue'])))};}if('default'!=_0x196262['newValue'])return{'type':'format','content':''+o(_0x5364c4,'*Set\x20format:*\x20%0',o(_0x5364c4,this['_getTranslationKeyForListStyle'](_0x196262['newValue'])))};let _0x13c887=_0x49b46e['head'];for(;_0x13c887;){if(_0x13c887['data']&&'listType'==_0x13c887['data']['key']&&_0x13c887['data']['newValue']&&_0x13c887['data']['oldValue'])return _0x15a749;_0x13c887=_0x13c887['next'];}return{'type':'format','content':o(_0x5364c4,'*Set\x20format:*\x20%0',o(_0x5364c4,'ELEMENT_'+_0x49b46e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x24dc62=this['editor'],_0xfc2fee=_0x24dc62['locale'];_0x24dc62['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35061a=>{if('formatBlock'!=_0x35061a['type'])return;const {data:_0x58133d}=_0x35061a;if(!_0x58133d)return;let _0x2fece3,_0x299e44;switch(_0x58133d['commandName']){case'listStyle':_0x2fece3='*Change\x20to:*\x20%0',_0x299e44={'type':'format','content':o(_0xfc2fee,_0x2fece3,o(_0xfc2fee,this['_getTranslationKeyForListStyle'](_0x58133d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2fece3=_0x58133d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x299e44={'type':'format','content':o(_0xfc2fee,_0x2fece3)};break;case'listStart':_0x2fece3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x299e44={'type':'format','content':o(_0xfc2fee,_0x2fece3,_0x58133d['commandParams'][0x0]['startIndex'])};}return _0x299e44;});}['_getTranslationKeyForListStyle'](_0x1beb03){return'ELEMENT_'+function(_0x31b9f1){if(ye['includes'](_0x31b9f1))return'bulleted';if(Se['includes'](_0x31b9f1))return'numbered';return null;}(_0x1beb03)['toUpperCase']()+'_LIST_'+_0x1beb03['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x2051ed{['afterInit'](){const _0x37f3b0=this['editor'];_0x37f3b0['commands']['get']('emoji')&&_0x37f3b0['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x2051ed{static get['requires'](){return[_0x3662a5];}['init'](){const _0x5ebddd=this['editor'],_0x48e387=_0x5ebddd['plugins']['get']('TrackChangesEditing'),_0x5ae2d2=_0x5ebddd['commands']['get']('enter');_0x48e387['enableCommand']('enter',()=>{_0x5ebddd['model']['change'](_0x400cb8=>{const _0x59fcbd=_0x5ebddd['model']['document']['selection'],_0x5edd2d=_0x59fcbd['getFirstPosition'](),_0x535c96=_0x53fd14['fromRange'](_0x59fcbd['getFirstRange']());if(_0x5ae2d2['enterBlock'](_0x400cb8)){const _0x2f3358=_0x5ebddd['model']['createPositionAt'](_0x5edd2d['parent']['nextSibling'],0x0),_0x5682b9=_0x400cb8['createRange'](_0x5edd2d,_0x2f3358);_0x48e387['markInsertion'](_0x5682b9);}else _0x400cb8['setSelection'](_0x400cb8['createRange'](_0x535c96['end']));_0x535c96['detach'](),_0x5ae2d2['fire']('afterExecute',{'writer':_0x400cb8});});});}}class Y extends _0x2051ed{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x540b12=this['editor']['plugins']['get']('TrackChangesEditing');_0x540b12['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x540b12['enableCommand']('findNext'),_0x540b12['enableCommand']('findPrevious'),_0x540b12['enableCommand']('replace'),_0x540b12['enableCommand']('replaceAll');}['handleFindCommand'](_0x393797,_0x48e96e,_0x284a43={}){const _0x515bf4=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x393797(_0x49b7d0=>{let _0x6a3078=('string'==typeof _0x48e96e?_0x515bf4['findByTextCallback'](_0x48e96e,_0x284a43):_0x48e96e)(_0x49b7d0);Array['isArray'](_0x6a3078)&&(_0x6a3078={'results':_0x6a3078,'searchText':'string'==typeof _0x48e96e?_0x48e96e:''});const _0x3fc2fd=_0x6a3078['results']['filter'](_0x2525a3=>!0x1===this['_isInDeletionRange'](_0x2525a3,_0x49b7d0['item']));return{..._0x6a3078,'results':_0x3fc2fd};},_0x284a43);}['_isInDeletionRange'](_0x32cc34,_0x5152c7){const _0x9fecb4=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5152c7,_0x32cc34['start']),this['editor']['model']['createPositionAt'](_0x5152c7,_0x32cc34['end']));for(const _0x25bd5b of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x9fecb4['getIntersection'](_0x25bd5b['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x2051ed{['afterInit'](){const _0x119384=this['editor']['locale'],_0x204020=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1d3d6c,commandName:_0x43ec96}of eo)this['editor']['plugins']['has'](_0x1d3d6c)&&_0x204020['enableDefaultAttributesIntegration'](_0x43ec96);_0x204020['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x119384,'FORMAT_FONT_SIZE')),_0x204020['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x119384,'FORMAT_FONT_FAMILY')),_0x204020['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x119384,'FORMAT_FONT_COLOR')),_0x204020['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x119384,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x300778=this['editor'],_0x1ce5db=_0x300778['locale'];_0x300778['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3be0c6=>{const _0x4dbbf9=_0x1ce5db['t'];if('formatInline'!=_0x3be0c6['type'])return;const {data:_0x427662}=_0x3be0c6;if(null!=_0x427662){if('fontSize'==_0x427662['commandName']){const _0xecd008=_0x427662['commandParams'][0x0]['value'];if(_0xecd008){const _0x354f9d=_0x4dbbf9(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x559ec9=>_0x559ec9['model']==_0xecd008)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1ce5db,'*Set\x20font\x20size:*\x20%0',_0x354f9d)};}return{'type':'format','content':o(_0x1ce5db,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x427662['commandName']){const _0xf01c58=_0x427662['commandParams'][0x0]['value'];return _0xf01c58?{'type':'format','content':o(_0x1ce5db,'*Set\x20font\x20family:*\x20%0',_0xf01c58)}:{'type':'format','content':o(_0x1ce5db,'*Reset\x20font\x20family*')};}if('fontColor'==_0x427662['commandName']){const _0x28a0d9=_0x427662['commandParams'][0x0]['value'];if(_0x28a0d9){const _0x56b133=_0x2bff0e(this['editor']['config']['get']('fontColor.colors'))['find'](_0xb7d009=>_0xb7d009['model']==_0x28a0d9);let _0x1dae96=_0x28a0d9,_0x3177c5='';return _0x56b133&&(_0x1dae96=_0x56b133['label'],_0x3177c5=_0x4dbbf9(_0x1dae96)['toLowerCase']()),{'type':'format','content':o(_0x1ce5db,'*Set\x20font\x20color:*\x20%0',_0x3177c5)['trim'](),'color':{'value':_0x28a0d9,'title':_0x3177c5||_0x1dae96}};}return{'type':'format','content':o(_0x1ce5db,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x427662['commandName']){const _0x5dc244=_0x427662['commandParams'][0x0]['value'];if(_0x5dc244){const _0x8529b8=_0x2bff0e(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x59a7ce=>_0x59a7ce['model']==_0x5dc244);let _0x5ab12c=_0x5dc244,_0x1664f0='';return _0x8529b8&&(_0x5ab12c=_0x8529b8['label'],_0x1664f0=_0x4dbbf9(_0x5ab12c)['toLowerCase']()),{'type':'format','content':o(_0x1ce5db,'*Set\x20font\x20background\x20color:*\x20%0',_0x1664f0)['trim'](),'color':{'value':_0x5dc244,'title':_0x1664f0||_0x5ab12c}};}return{'type':'format','content':o(_0x1ce5db,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x2051ed{['afterInit'](){const {plugins:_0x465da6}=this['editor'];_0x465da6['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x465da6['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x46e890,plugins:_0x4c805c,commands:_0x18d749}=this['editor'],_0x51e134=_0x4c805c['get']('TrackChangesEditing');_0x18d749['get']('footnotesStyle')&&_0x51e134['enableDefaultAttributesIntegration']('footnotesStyle'),_0x18d749['get']('footnotesStart')&&_0x51e134['enableDefaultAttributesIntegration']('footnotesStart'),_0x51e134['registerBlockAttribute']('footnotesListStyle'),_0x51e134['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x46e890,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x51e134['registerBlockAttribute']('footnotesListStart'),_0x51e134['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x46e890,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0xcd1e59=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x3aeb8e,commands:_0x275783}=this['editor'];_0x275783['get']('insertFootnote')&&_0xcd1e59['enableCommand']('insertFootnote'),_0xcd1e59['descriptionFactory']['registerElementLabel']('footnoteRef',_0x237c8c=>o(_0x3aeb8e,'ELEMENT_FOOTNOTE_REF',_0x237c8c)),_0xcd1e59['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x19fdb2=>o(_0x3aeb8e,'ELEMENT_FOOTNOTE_DEFINITION',_0x19fdb2)),_0xcd1e59['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x21dbb=>o(_0x3aeb8e,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x21dbb));}}class nt extends _0x2051ed{['afterInit'](){const _0x1e04b2=this['editor'],_0x59224b=_0x1e04b2['plugins']['get']('TrackChangesEditing'),_0x5e4a97=_0x1e04b2['commands']['get']('copyFormat'),_0x300d34=_0x1e04b2['commands']['get']('pasteFormat');_0x5e4a97&&_0x300d34&&(_0x59224b['enableDefaultAttributesIntegration']('pasteFormat'),_0x59224b['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5ee409=this['editor'],_0x1689ee=_0x5ee409['locale'];_0x5ee409['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21c8fb=>{if('formatBlock'!=_0x21c8fb['type']&&'formatInline'!=_0x21c8fb['type'])return;const {data:_0x5ebdf1}=_0x21c8fb;if(_0x5ebdf1&&'pasteFormat'===_0x5ebdf1['commandName']){const _0x47f4ce=[],_0x28a422=_0x5ebdf1['commandParams'][0x0];for(const [_0x95c8d3,_0x59466e]of Object['entries'](_0x28a422))_0x47f4ce['push'](ro(_0x5ee409,_0x95c8d3,_0x59466e));return _0x47f4ce['length']?{'type':'format','content':o(_0x1689ee,'*Set\x20format\x20to:*\x20%0',_0x47f4ce['join'](',\x20'))}:{'type':'format','content':o(_0x1689ee,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x1d156b,_0x64eadb,_0x1cf531){const _0x4b2bd7=_0x1d156b['locale']['t'],_0x23f0d3=_0x64eadb['split'](/(?=[A-Z])/)['join']('\x20'),_0x420b55=_0x4b2bd7(_0x23f0d3['charAt'](0x0)['toUpperCase']()+_0x23f0d3['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1cf531)return _0x420b55;if('fontColor'===_0x64eadb||'fontBackgroundColor'===_0x64eadb){const _0x3e4f6e=_0x2bff0e(_0x1d156b['config']['get']('fontColor.colors'))['find'](_0x29ae4e=>_0x29ae4e['model']==_0x1cf531);return _0x420b55+'\x20('+(_0x3e4f6e?_0x4b2bd7(_0x3e4f6e['label'])['toLowerCase']():_0x1cf531)+')';}if('fontSize'===_0x64eadb&&isNaN(parseFloat(_0x1cf531))){const _0x41abdc=_0x1d156b['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1d156b['config']['get']('fontSize.options'))['find'](_0x1ebc0c=>_0x1ebc0c['model']==_0x1cf531);return _0x420b55+'\x20('+(_0x41abdc?_0x4b2bd7(_0x41abdc['title'])['toLowerCase']():_0x1cf531)+')';}return _0x420b55+'\x20('+_0x1cf531+')';}class it extends _0x2051ed{['_headingOptions'];['afterInit'](){const _0x30695c=this['editor'];if(!_0x30695c['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x30695c['config']['get']('heading.options');const _0x5f2407=_0x30695c['locale'],_0x58cc85=_0x30695c['plugins']['get']('TrackChangesEditing');_0x58cc85['enableDefaultAttributesIntegration']('heading');for(const _0xc22a23 of this['_headingOptions'])'paragraph'!=_0xc22a23['model']&&_0x58cc85['descriptionFactory']['registerElementLabel'](_0xc22a23['model'],_0x41e476=>{const _0x534ea1=this['_getHeadingLevel'](_0xc22a23['model']);return null!==_0x534ea1?_0x3abc43(_0x41e476,_0x534ea1):_0x12936c(_0x41e476,_0xc22a23['title']);});function _0x3abc43(_0x1354bc,_0x2732e4){return o(_0x5f2407,'ELEMENT_HEADING',[_0x1354bc,_0x2732e4]);}function _0x12936c(_0x6a06a7,_0x27f720){return o(_0x5f2407,'ELEMENT_HEADING_CUSTOM',[_0x6a06a7,_0x27f720]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44b264=this['editor'],_0x33f02e=_0x44b264['locale'];function _0x4f04a0(_0x11ba57,_0x30e4d2){return o(_0x33f02e,'ELEMENT_HEADING_CUSTOM',[_0x11ba57,_0x30e4d2]);}_0x44b264['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b2efb=>{if('formatBlock'!=_0x3b2efb['type'])return;const {data:_0x43299a}=_0x3b2efb;if(_0x43299a&&'heading'==_0x43299a['commandName']){const _0x1d7e21=_0x43299a['commandParams'][0x0]['value'],_0x6c6250=this['_getHeadingLevel'](_0x1d7e21);if(null!==_0x6c6250)return{'type':'format','content':o(_0x33f02e,'*Change\x20to:*\x20%0',(_0x5d5d20=0x1,_0x300dc3=_0x6c6250,o(_0x33f02e,'ELEMENT_HEADING',[_0x5d5d20,_0x300dc3])))};const _0x571a04=this['_headingOptions']['find'](_0x477bbf=>_0x477bbf['model']===_0x1d7e21)['title'];return{'type':'format','content':o(_0x33f02e,'*Change\x20to:*\x20%0',_0x4f04a0(0x1,_0x571a04))};}var _0x5d5d20,_0x300dc3;});}['_getHeadingLevel'](_0x30bacd){const _0x9f21ea=_0x30bacd['match'](/^heading(\d+)/);if(_0x9f21ea)return _0x9f21ea[0x1];const _0x5eadfb=this['_headingOptions']?.['find'](_0x375af2=>_0x375af2['model']==_0x30bacd);if(_0x5eadfb&&_0x5eadfb['view']){const _0x3f08b1=_0x5eadfb['view'],_0x223de5=(_0x3f08b1['name']??_0x3f08b1)['match'](/^h(\d+)/);if(_0x223de5)return _0x223de5[0x1];}return null;}}class et extends _0x2051ed{['afterInit'](){const _0x2c615c=this['editor'];if(!_0x2c615c['plugins']['has']('HighlightEditing'))return;const _0x2fd8bf=_0x2c615c['plugins']['get']('TrackChangesEditing'),_0x37abc4=_0x2c615c['locale'];_0x2fd8bf['enableDefaultAttributesIntegration']('highlight'),_0x2fd8bf['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x37abc4,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e3f97=this['editor'],_0x157317=_0x5e3f97['locale'];_0x5e3f97['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29c9b0=>{if('formatInline'!=_0x29c9b0['type'])return;const {data:_0x4830c7}=_0x29c9b0;if(_0x4830c7&&'highlight'==_0x4830c7['commandName']){const _0x13b16e=_0x157317['t'],_0x8204e2=_0x4830c7['commandParams'][0x0]['value'];if(_0x8204e2){const _0x461849=_0x5e3f97['config']['get']('highlight.options')['find'](_0x261ca5=>_0x261ca5['model']==_0x8204e2),_0x36b911=_0x13b16e(_0x461849['title'])['toLowerCase']();return{'type':'format','content':o(_0x157317,'*Set\x20highlight:*\x20%0',_0x36b911),'color':{'value':_0x461849['color'],'title':_0x461849['title']}};}return{'type':'format','content':o(_0x157317,'*Remove\x20highlight*',o(_0x157317,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x2051ed{['afterInit'](){const _0x3b5bc9=this['editor'];if(!_0x3b5bc9['plugins']['has']('HorizontalLineEditing'))return;_0x3b5bc9['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x41ba2f=_0x3b5bc9['plugins']['get']('TrackChangesEditing'),_0x33242c=_0x3b5bc9['locale'];_0x41ba2f['descriptionFactory']['registerElementLabel']('horizontalLine',_0x39fa2a=>o(_0x33242c,'ELEMENT_HORIZONTAL_LINE',_0x39fa2a));}}class ot extends _0x2051ed{['afterInit'](){const _0x5dd70d=this['editor'];if(!_0x5dd70d['plugins']['has']('HtmlEmbed'))return;const _0x181ecb=_0x5dd70d['plugins']['get']('TrackChangesEditing'),_0x3394a2=_0x5dd70d['locale'];_0x181ecb['descriptionFactory']['registerElementLabel']('rawHtml',_0x5c202b=>o(_0x3394a2,'ELEMENT_HTML_EMBED',_0x5c202b)),_0x181ecb['enableDefaultAttributesIntegration']('htmlEmbed'),_0x181ecb['descriptionFactory']['registerDescriptionCallback'](_0x3a5d3c=>{if('attribute'!=_0x3a5d3c['type'])return;const {data:_0x2301e0}=_0x3a5d3c;if(_0x2301e0&&'value'==_0x2301e0['key']&&_0x3a5d3c['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x56fc60=o(_0x3394a2,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3394a2,'*Change\x20%0\x20content*',_0x56fc60)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a1a1b=this['editor'],_0x4714b2=_0x3a1a1b['locale'];_0x3a1a1b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x401760=>{if('formatBlock'!=_0x401760['type'])return;const {data:_0x28c78c}=_0x401760;if(_0x28c78c&&'htmlEmbed'==_0x28c78c['commandName']){const _0x278558=o(_0x4714b2,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4714b2,'*Change\x20%0\x20content*',_0x278558)};}});}}class rt extends _0x2051ed{['afterInit'](){const _0x9eb871=this['editor'];if(!_0x9eb871['plugins']['has']('ImageEditing'))return;const _0x2e401c=_0x9eb871['plugins']['get']('TrackChangesEditing'),_0x3dad81=_0x9eb871['plugins']['get']('ImageUtils'),_0x5c6a89=_0x9eb871['locale'];_0x2e401c['enableCommand']('insertImage'),_0x2e401c['descriptionFactory']['registerElementLabel']('imageBlock',_0x4aa8eb=>o(_0x5c6a89,'ELEMENT_IMAGE',_0x4aa8eb)),_0x2e401c['descriptionFactory']['registerElementLabel']('imageInline',_0x160f00=>o(_0x5c6a89,'ELEMENT_INLINE_IMAGE',_0x160f00)),_0x2e401c['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5c6a89,'ELEMENT_CAPTION')),_0x9eb871['plugins']['has']('ImageUploadEditing')&&_0x2e401c['enableCommand']('uploadImage'),_0x9eb871['plugins']['has']('ImageBlockEditing')&&_0x9eb871['plugins']['has']('ImageInlineEditing')&&(_0x2e401c['enableCommand']('imageTypeInline',(_0x416b0b,_0x42f268)=>{const _0x3d5926=_0x3dad81['getClosestSelectedImageElement'](_0x9eb871['model']['document']['selection']);_0x9eb871['model']['change'](()=>{_0x2e401c['markBlockFormat'](_0x3d5926,{'commandName':'imageTypeInline','commandParams':[_0x42f268]},[],'convertBlockImageToInline');});}),_0x2e401c['enableCommand']('imageTypeBlock',(_0x222a39,_0x336127)=>{_0x9eb871['model']['change'](_0x69239f=>{let _0x46c068=_0x3dad81['getClosestSelectedImageElement'](_0x9eb871['model']['document']['selection']),_0x1b7ff2=_0x69239f['createRangeOn'](_0x46c068);const _0x2f4ed7=_0x27be50['fromPosition'](_0x1b7ff2['start'],'toPrevious'),_0x2f6582=_0x27be50['fromPosition'](_0x1b7ff2['end'],'toNext');_0x2e401c['forceDefaultExecution'](()=>_0x222a39(_0x336127)),_0x46c068=_0x3dad81['getClosestSelectedImageElement'](_0x9eb871['model']['document']['selection']),_0x1b7ff2=_0x69239f['createRangeOn'](_0x46c068);const _0x339abc=_0x69239f['createRange'](_0x2f4ed7,_0x2f6582);_0x2f4ed7['detach'](),_0x2f6582['detach'](),_0x2e401c['markBlockFormat'](_0x46c068,{'commandName':'imageTypeInline','commandParams':[_0x336127]},[],'convertInlineImageToBlock'),_0x339abc['start']['isBefore'](_0x1b7ff2['start'])&&_0x2e401c['markInsertion'](_0x69239f['createRange'](_0x339abc['start'],_0x1b7ff2['start']),'convertInlineImageToBlock'),_0x1b7ff2['end']['isBefore'](_0x339abc['end'])&&_0x2e401c['markInsertion'](_0x69239f['createRange'](_0x1b7ff2['end'],_0x339abc['end']),'convertInlineImageToBlock');});}),_0x2e401c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2e401c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2e401c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2e401c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2e401c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2e401c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5d5978])=>{const _0x17c6a5=_0x2e401c['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2f555b=_0x5d5978['start'],_0x1c7518=_0x5d5978['end'];const _0x4e1446=_0x9eb871['model']['schema']['getNearestSelectionRange'](_0x2f555b,'backward'),_0x2d4ebd=_0x9eb871['model']['schema']['getNearestSelectionRange'](_0x1c7518,'forward');_0x4e1446['isCollapsed']&&(_0x2f555b=_0x4e1446['start']),_0x2d4ebd['isCollapsed']&&(_0x1c7518=_0x2d4ebd['end']),_0x17c6a5([_0x9eb871['model']['createRange'](_0x2f555b,_0x1c7518)]);}),_0x2e401c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2731ce),_0x2e401c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2731ce)),_0x9eb871['plugins']['has']('ImageCaptionEditing')&&(_0x2e401c['enableCommand']('toggleImageCaption',(_0xce9b0a,_0xe84b18)=>{const _0x5cd979=_0x9eb871['plugins']['get']('ImageCaptionUtils');let _0x2ac01c=_0x3dad81['getClosestSelectedImageElement'](_0x9eb871['model']['document']['selection']),_0x4ab6bb=_0x5cd979['getCaptionFromImageModelElement'](_0x2ac01c);_0x9eb871['model']['change'](()=>{if(_0x4ab6bb)return void _0x2e401c['markDeletion'](_0x9eb871['model']['createRangeOn'](_0x4ab6bb));const _0x5aa8b3=_0x3dad81['isBlockImage'](_0x2ac01c);_0xce9b0a(_0xe84b18),_0x2ac01c=_0x3dad81['getClosestSelectedImageElement'](_0x9eb871['model']['document']['selection']),_0x4ab6bb=_0x5cd979['getCaptionFromImageModelElement'](_0x2ac01c),_0x2e401c['markInsertion'](_0x9eb871['model']['createRangeOn'](_0x4ab6bb),_0x5aa8b3?null:'imageCaption');});}),_0x2e401c['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2731ce));const _0x3d105e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1fe5db(_0x3b8d48,_0x273629){const _0x5250f3=_0x3d105e['findIndex'](({type:_0x392c71,subType:_0xe21f76})=>_0x3b8d48['type']==_0x392c71&&_0x3b8d48['subType']==_0xe21f76),_0x2694d4=_0x3d105e['findIndex'](({type:_0x58f300,subType:_0x395881})=>_0x273629['type']==_0x58f300&&_0x273629['subType']==_0x395881);if(_0x5250f3<0x0||_0x2694d4<0x0)return!0x1;const _0x129075=_0x3b8d48['getFirstRange'](),_0x52a85a=_0x273629['getFirstRange']();if((0x0==_0x5250f3||0x1==_0x5250f3)&&0x2==_0x2694d4&&_0x129075['isIntersecting'](_0x52a85a))return!0x0;if(0x2==_0x5250f3&&0x3==_0x2694d4){const _0x19bdf7=_0x2e401c['_findSuggestions'](_0x129075,'insertion')['filter'](({suggestion:_0x5a67e3,meta:_0x24eb18})=>_0x24eb18['isOwn']&&'convertInlineImageToBlock'==_0x5a67e3['subType']);if(_0x19bdf7['length']>0x1&&_0x52a85a['end']['isEqual'](_0x129075['start']))return!0x0;if(0x1==_0x19bdf7['length']&&(_0x129075['start']['isEqual'](_0x52a85a['end'])||_0x129075['end']['isEqual'](_0x52a85a['start'])))return!0x0;}if(0x3==_0x5250f3&&0x3==_0x2694d4&&_0x129075['start']['isBefore'](_0x52a85a['start'])){const _0x1d3c5b=_0x129075['end']['nodeAfter'],_0x75ceaf=_0x52a85a['start']['nodeBefore'];return _0x3dad81['isBlockImage'](_0x1d3c5b)&&_0x1d3c5b===_0x75ceaf;}return!0x1;}function _0x2731ce(_0x46517d,_0x57b6f2){return _0x1fe5db(_0x46517d,_0x57b6f2)?[_0x46517d,_0x57b6f2]:_0x1fe5db(_0x57b6f2,_0x46517d)?[_0x57b6f2,_0x46517d]:null;}_0x9eb871['plugins']['has']('ImageResize')&&(_0x2e401c['enableDefaultAttributesIntegration']('resizeImage'),_0x2e401c['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5c6a89,'FORMAT_IMAGE_SIZE'))),_0x9eb871['plugins']['has']('ImageTextAlternativeEditing')&&_0x2e401c['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x9eb871['plugins']['has']('PictureEditing')&&_0x2e401c['descriptionFactory']['registerDescriptionCallback'](_0x17addf=>{if('attribute'!=_0x17addf['type'])return;const {data:_0x5bb610}=_0x17addf;return _0x5bb610&&'sources'==_0x5bb610['key']?{'type':'format','content':''}:void 0x0;}),_0x9eb871['plugins']['has']('ImageSizeAttributes')&&_0x2e401c['descriptionFactory']['registerDescriptionCallback'](_0x445b4b=>{if('attribute'!=_0x445b4b['type'])return;const {data:_0x1b35e1}=_0x445b4b;return!_0x1b35e1||'width'!=_0x1b35e1['key']&&'height'!=_0x1b35e1['key']?void 0x0:{'type':'format','content':''};}),_0x2e401c['descriptionFactory']['registerDescriptionCallback'](_0x14ed66=>{if(!!_0x3d105e['find'](({type:_0x36e05e,subType:_0x5b9c7a})=>_0x14ed66['type']==_0x36e05e&&_0x14ed66['subType']==_0x5b9c7a))return _0x14ed66['previous']?{}:void 0x0;}),_0x2e401c['descriptionFactory']['registerDescriptionCallback'](_0x2437bd=>{if('insertion'==_0x2437bd['type']||'deletion'==_0x2437bd['type']){const _0x428e47=_0x2437bd['getContainedElement']();if(_0x428e47&&_0x428e47['is']('element','caption'))return{'type':'insertion'==_0x2437bd['type']?'addObject':'removeObject','element':_0x428e47,'quantity':0x1};}}),_0x2e401c['descriptionFactory']['registerDescriptionCallback'](_0x40e499=>'formatBlock'==_0x40e499['type']&&'convertInlineImageToBlock'==_0x40e499['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x40e499['type']&&'convertBlockImageToInline'==_0x40e499['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2e401c['descriptionFactory']['registerDescriptionCallback'](_0x2bee48=>{if('attribute'!=_0x2bee48['type'])return;const {data:_0x59d115}=_0x2bee48;if(!_0x59d115||'alt'!=_0x59d115['key'])return;const _0x1acaf7=_0x59d115['newValue'];return _0x1acaf7?{'type':'format','content':o(_0x5c6a89,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1acaf7+'\x22')}:{'type':'format','content':o(_0x5c6a89,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11befc=this['editor'],_0x549fe9=_0x11befc['locale'];_0x11befc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x256e15=>{if('formatBlock'!=_0x256e15['type']&&'formatInline'!=_0x256e15['type'])return;const {data:_0x2ac72e}=_0x256e15;if(_0x2ac72e){if('imageTextAlternative'==_0x2ac72e['commandName']){const _0x3ce5f5=_0x2ac72e['commandParams'][0x0]['newValue'];return _0x3ce5f5?{'type':'format','content':o(_0x549fe9,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3ce5f5+'\x22')}:{'type':'format','content':o(_0x549fe9,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2ac72e['commandName']){const _0x4a65ac=_0x2ac72e['commandParams'][0x0]['width'];return _0x4a65ac?{'type':'format','content':o(_0x549fe9,'*Set\x20image\x20width:*\x20%0',_0x4a65ac)}:{'type':'format','content':o(_0x549fe9,'*Reset\x20image\x20width*')};}}});}}class at extends _0x2051ed{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3ddb9c=this['editor']['locale'],_0x22a3ad=this['editor']['plugins']['get']('TrackChangesEditing');_0x22a3ad['enableDefaultAttributesIntegration']('replaceImageSource'),_0x22a3ad['descriptionFactory']['registerDescriptionCallback'](_0x4ff895=>{if('attribute'!=_0x4ff895['type'])return;const {data:_0x28d5db}=_0x4ff895;return _0x28d5db&&'src'==_0x28d5db['key']?_0x28d5db['newValue']&&_0x28d5db['oldValue']?{'type':'format','content':o(_0x3ddb9c,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3c06ec=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c06ec['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3c06ec['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3c06ec['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3c06ec['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x597e62=this['editor'],_0x1e6648=_0x597e62['locale'];_0x597e62['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2af49b=>{if('formatBlock'!=_0x2af49b['type']&&'formatInline'!=_0x2af49b['type'])return;const {data:_0x509170}=_0x2af49b;if(!_0x509170||'replaceImageSource'!=_0x509170['commandName'])return;return{'type':'format','content':o(_0x1e6648,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x2051ed{['afterInit'](){const _0x379d5f=this['editor'];if(!_0x379d5f['plugins']['has']('ImageStyleEditing'))return;const _0x56a97d=_0x379d5f['plugins']['get']('TrackChangesEditing'),_0x1ca2a3=_0x379d5f['plugins']['get']('ImageUtils'),_0x58e888={};_0x56a97d['enableCommand']('imageStyle',(_0x157c55,_0x1704a7)=>{const _0x4ba9fb=_0x379d5f['plugins']['get']('Users')['me'],_0x4fb626=_0x379d5f['commands']['get']('imageStyle');let _0x3ec14d=_0x1ca2a3['getClosestSelectedImageElement'](_0x379d5f['model']['document']['selection']),_0x5579a9=_0x379d5f['model']['createRangeOn'](_0x3ec14d),_0x2f8fcc=_0x4fb626['value'];if(_0x2f8fcc==_0x1704a7['value'])return;const _0x2c6139={'commandName':'imageStyle','commandParams':[_0x1704a7],'formatGroupId':_0x2280a6()};_0x379d5f['model']['change'](()=>{if(_0x56a97d['getSuggestions']()['filter'](_0x467037=>_0x467037['isInContent']&&_0x4ba9fb==_0x467037['author']&&('formatBlock'==_0x467037['type']||'formatInline'==_0x467037['type'])&&('imageStylePreApply'==_0x467037['subType']||'imageStylePostApply'==_0x467037['subType'])&&_0x467037['getFirstRange']()['isEqual'](_0x5579a9))['forEach'](_0x2f81a7=>_0x56a97d['discardSuggestion'](_0x2f81a7['head'])),_0x3ec14d=_0x1ca2a3['getClosestSelectedImageElement'](_0x379d5f['model']['document']['selection']),_0x5579a9=_0x379d5f['model']['createRangeOn'](_0x3ec14d),_0x4fb626['refresh'](),_0x379d5f['commands']['get']('imageTypeInline')['refresh'](),_0x379d5f['commands']['get']('imageTypeBlock')['refresh'](),_0x2f8fcc=_0x4fb626['value'],_0x2f8fcc!=_0x1704a7['value'])return _0x1ca2a3['isInlineImage'](_0x3ec14d)&&_0x4fb626['shouldConvertImageType'](_0x1704a7['value'],_0x3ec14d)?(_0x157c55({..._0x1704a7,'setImageSizes':!0x1}),_0x3ec14d=_0x1ca2a3['getClosestSelectedImageElement'](_0x379d5f['model']['document']['selection']),void _0x56a97d['markBlockFormat'](_0x3ec14d,{..._0x2c6139,'commandReversedParams':[{'value':_0x2f8fcc||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1ca2a3['isBlockImage'](_0x3ec14d)?_0x56a97d['markBlockFormat'](_0x3ec14d,_0x2c6139,[],'imageStylePostApply'):_0x56a97d['markInlineFormat'](_0x5579a9,_0x2c6139,'imageStylePostApply'));});});for(const _0x571e58 of _0x379d5f['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x58e888[_0x571e58['name']]=_0x571e58['title']['toLowerCase']();_0x56a97d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x56a97d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x56a97d['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x56a97d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1761b1])=>{_0x1ca2a3['setImageNaturalSizeAttributes'](_0x1761b1['getContainedElement']());}),_0x56a97d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3ccfc0,_0x2f05e5)=>{_0x56a97d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3ccfc0,{'commandName':_0x2f05e5['commandName'],'commandParams':_0x2f05e5['commandReversedParams']});}),_0x56a97d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x250666,_0x16a65f){if(_0x245aec(_0x250666,_0x16a65f))return[_0x250666,_0x16a65f];if(_0x245aec(_0x16a65f,_0x250666))return[_0x16a65f,_0x250666];return null;});const _0x48a3d9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x245aec(_0x2d0930,_0x2e31da){const _0x1c8b81=_0x48a3d9['findIndex'](({type:_0xe2e4cb,subType:_0x34a395})=>_0x2d0930['type']==_0xe2e4cb&&_0x2d0930['subType']==_0x34a395),_0x24c660=_0x48a3d9['findIndex'](({type:_0x5f066e,subType:_0x4ba5f6})=>_0x2e31da['type']==_0x5f066e&&_0x2e31da['subType']==_0x4ba5f6);if(_0x1c8b81<0x0||_0x24c660<0x0)return!0x1;const _0x46a1a1=_0x2d0930['getFirstRange'](),_0x1b25c2=_0x2e31da['getFirstRange']();if((0x0==_0x1c8b81||0x1==_0x1c8b81)&&0x2==_0x24c660&&_0x46a1a1['isIntersecting'](_0x1b25c2))return!0x0;if(0x2==_0x1c8b81&&0x3==_0x24c660){const _0x3cc79e=_0x56a97d['_findSuggestions'](_0x46a1a1,'insertion')['filter'](({suggestion:_0x1c7048,meta:_0x1edc8e})=>_0x1edc8e['isOwn']&&'convertInlineImageToBlock'==_0x1c7048['subType']);if(_0x3cc79e['length']>0x1&&_0x1b25c2['end']['isEqual'](_0x46a1a1['start']))return!0x0;if(0x1==_0x3cc79e['length']&&(_0x46a1a1['start']['isEqual'](_0x1b25c2['end'])||_0x46a1a1['end']['isEqual'](_0x1b25c2['start'])))return!0x0;}if(0x3==_0x1c8b81&&0x3==_0x24c660&&_0x46a1a1['start']['isBefore'](_0x1b25c2['start'])){const _0x5036ec=_0x46a1a1['end']['nodeAfter'],_0x314f54=_0x1b25c2['start']['nodeBefore'];return _0x1ca2a3['isBlockImage'](_0x5036ec)&&_0x5036ec===_0x314f54;}return!0x1;}_0x379d5f['model']['document']['registerPostFixer'](()=>{let _0x4a1031=!0x1;const _0x398e8f=Array['from'](_0x379d5f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x589ca4,data:_0x1c6f21}of _0x398e8f){const {group:_0x3334e2,type:_0x3854fb,subType:_0x132cbf,id:_0xcb18e6}=_0x56a97d['_splitMarkerName'](_0x589ca4);if('suggestion'==_0x3334e2&&_0x56a97d['hasSuggestion'](_0xcb18e6)){if('formatBlock'==_0x3854fb&&('imageStylePreApply'==_0x132cbf||'imageStylePostApply'==_0x132cbf)){const _0xc03fd8=_0x56a97d['getSuggestion'](_0xcb18e6);if(_0x1c6f21['newRange']){const _0x152e44=_0xc03fd8['getFirstRange']()['getContainedElement']();if(_0x1ca2a3['isBlockImage'](_0x152e44))continue;_0x56a97d['discardSuggestion'](_0xc03fd8),_0x4a1031=!0x0;}}if('insertion'==_0x3854fb&&'imageCaption'==_0x132cbf&&!_0x1c6f21['newRange']){const _0x10c115=_0x56a97d['getSuggestion'](_0xcb18e6);_0x10c115['next']&&_0x10c115['next']['isInContent']&&(_0x56a97d['discardSuggestion'](_0x10c115['next']),_0x4a1031=!0x0);}}}return _0x4a1031;}),this['_registerLegacyDescription'](_0x58e888);}['_registerLegacyDescription'](_0x336680){const _0x4af03b=this['editor'],_0x5c157d=_0x4af03b['locale'];_0x4af03b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e2c50=>{if('formatBlock'!=_0x2e2c50['type']&&'formatInline'!=_0x2e2c50['type'])return;const {data:_0xc400f2}=_0x2e2c50;if(!_0xc400f2||'imageStyle'!=_0xc400f2['commandName'])return;const _0xf53ed5=_0xc400f2['commandParams'][0x0]['value'];return _0x283153('side'===_0xf53ed5?o(_0x5c157d,'FORMAT_SIDE_IMAGE'):_0x336680[_0xf53ed5]||_0xf53ed5);function _0x283153(_0x24b666){return{'type':'format','content':o(_0x5c157d,'*Format:*\x20%0',_0x24b666)};}});}}class ut extends _0x2051ed{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xcfd499){super(_0xcfd499),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x547666=this['editor'],_0xf10336=_0x547666['commands']['get']('importWord'),_0x37067c=_0x547666['commands']['get']('trackChanges');_0xf10336&&(_0xf10336['on']('execute',(_0x3e8226,[,_0x1a2b67])=>{this['_trackChangesValueDuringImport']=_0x37067c['value'],_0x1a2b67['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xf10336,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xf10336,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x37067c['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x547666['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x20ae70,_0x572efd){const {suggestions:_0x1610a1}=_0x572efd,_0x7b1aee=this['editor']['commands']['get']('trackChanges'),_0x17fb81=_0x7b1aee['value'];this['_trackChangesValueDuringImport']!==_0x17fb81&&(_0x7b1aee['execute'](),this['_trackChangesExecuted']=!0x0),_0x1610a1&&_0x1610a1['forEach'](({id:_0x5e380f,type:_0x2e0352,author:_0x26cd7d,created_at:_0x24d346})=>{const _0x3f29fa={'id':_0x5e380f,'type':_0x2e0352,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x26cd7d,'createdAt':_0x24d346?new Date(_0x24d346):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3f29fa);});}}class ft extends _0x2051ed{['afterInit'](){const _0x227ecc=this['editor'],_0x212457=_0x227ecc['plugins']['get']('TrackChangesEditing');if(_0x227ecc['plugins']['has']('IndentEditing')&&(_0x212457['enableCommand']('indent'),_0x212457['enableCommand']('outdent')),_0x227ecc['plugins']['has']('IndentBlock')){for(const _0x160bb9 of['indentBlock','outdentBlock'])_0x212457['enableDefaultAttributesIntegration'](_0x160bb9);}const _0x505f4c=_0x227ecc['locale'];_0x212457['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x505f4c,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c4b3b=this['editor'],_0x1972c2=_0x2c4b3b['locale'],_0x84a347=_0x2c4b3b['plugins']['get']('TrackChangesEditing');_0x84a347['descriptionFactory']['registerDescriptionCallback'](_0x4e1306=>{if('formatBlock'!=_0x4e1306['type'])return;const {data:_0x229b69}=_0x4e1306;if(!_0x229b69)return;if('indentBlock'!=_0x229b69['commandName']&&'outdentBlock'!=_0x229b69['commandName'])return;const _0x1f1ee6=_0x4e1306['getItems']()[0x0],_0x26cc2e=_0x84a347['descriptionFactory']['getItemLabel'](_0x1f1ee6);return'indentBlock'==_0x229b69['commandName']?{'type':'format','content':o(_0x1972c2,'*Indent:*\x20%0',_0x26cc2e)}:'outdentBlock'==_0x229b69['commandName']?{'type':'format','content':o(_0x1972c2,'*Outdent:*\x20%0',_0x26cc2e)}:void 0x0;});}}class ht extends _0x2051ed{static get['requires'](){return[_0x30fdb1];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x2051ed{['afterInit'](){const _0x3ba8f4=this['editor'];if(!_0x3ba8f4['plugins']['has']('LinkEditing'))return;const _0x356fda=_0x3ba8f4['plugins']['get']('TrackChangesEditing'),_0x512c4b=_0x3ba8f4['commands']['get']('link');_0x356fda['enableDefaultAttributesIntegration']('link'),_0x356fda['enableDefaultAttributesIntegration']('unlink');for(const _0x12cef0 of _0x512c4b['manualDecorators'])_0x356fda['descriptionFactory']['registerAttributeLabel'](_0x12cef0['id'],'link\x20('+_0x12cef0['label']['toLowerCase']()+')');_0x356fda['descriptionFactory']['registerDescriptionCallback'](_0x4f92eb=>{if('attribute'!=_0x4f92eb['type'])return;const {data:_0x882694}=_0x4f92eb;if(!_0x882694||'linkHref'!=_0x882694['key'])return;const _0x2a0147=_0x882694['newValue'],_0x30bb64=_0x3ba8f4['locale'];return{'type':'format','content':null==_0x2a0147?o(_0x30bb64,'*Remove\x20link*'):o(_0x30bb64,'*Set\x20link:*\x20%0','\x22'+_0x2a0147+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54312b=this['editor'],_0x485b33=_0x54312b['locale'];_0x54312b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c87fa=>{if('formatInline'!=_0x2c87fa['type'])return;const {data:_0x1631f0}=_0x2c87fa;if(_0x1631f0){if('link'==_0x1631f0['commandName']){const _0x4f5ed4=_0x1631f0['commandParams'][0x0];return{'type':'format','content':o(_0x485b33,'*Set\x20link:*\x20%0','\x22'+_0x4f5ed4+'\x22')};}return'unlink'==_0x1631f0['commandName']?{'type':'format','content':o(_0x485b33,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x2051ed{['afterInit'](){const _0x3f7272=this['editor'],_0x4dc3a0=_0x3f7272['locale'];if(!_0x3f7272['plugins']['has']('LegacyListEditing'))return;const _0x3ba96d=_0x3f7272['plugins']['get']('TrackChangesEditing'),_0x3757c2=_0x3f7272['plugins']['has']('LegacyTodoListEditing');function _0x351053(_0x1a2c26){return()=>{const _0x43d1c1=_0x3f7272['model']['document']['selection'],_0x174d39=_0x3f7272['commands']['get'](_0x1a2c26);if(_0x174d39['value'])return void _0x3f7272['execute']('paragraph',{});const _0x57f892=_0x1a2c26['slice'](0x0,-0x4),_0x1ab66b=function(_0x5f00cd,_0x258d9e,_0x578427){let _0x3ccea2=Array['from'](_0x5f00cd)['filter'](_0x432688=>function(_0x518685,_0x292013){return _0x292013['checkChild'](_0x518685['parent'],'listItem')&&!_0x292013['isObject'](_0x518685);}(_0x432688,_0x578427));_0x3ccea2=_0x3ccea2['filter'](_0x4193ac=>!_0x4193ac['is']('element','listItem')||_0x4193ac['getAttribute']('listType')!=_0x258d9e);const _0x53b697=new Set();for(const _0x21d698 of _0x3ccea2)_0x21d698['is']('element','listItem')?_0x53b697['add'](Le(_0x21d698)):_0x53b697['add'](_0x21d698);return Array['from'](_0x53b697);}(_0x43d1c1['getSelectedBlocks'](),_0x57f892,_0x3f7272['model']['schema']);_0x3f7272['model']['change'](()=>{for(const _0x33ad34 of _0x1ab66b)_0x3ba96d['markBlockFormat'](_0x33ad34,{'commandName':_0x1a2c26,'commandParams':[{'forceValue':!_0x174d39['value']}],'formatGroupId':'blockName'},Ee(_0x33ad34));});};}function _0x127756(_0x22398a){return()=>{const _0x3ab961=function(_0xfa894e){let _0x3c8774=Array['from'](_0xfa894e);const _0x40a275=_0x3c8774['findIndex'](_0x3c9ad4=>'listItem'!=_0x3c9ad4['name']);return _0x40a275>-0x1&&(_0x3c8774=_0x3c8774['slice'](0x0,_0x40a275)),_0x3c8774;}(_0x3f7272['model']['document']['selection']['getSelectedBlocks']()),_0x4c9c44=_0x3f7272['model']['createRange'](_0x3f7272['model']['createPositionAt'](_0x3ab961[0x0],'before'),_0x3f7272['model']['createPositionAt'](_0x3ab961[_0x3ab961['length']-0x1],'end'));_0x3f7272['model']['change'](()=>{_0x3ba96d['markBlockFormat'](_0x4c9c44,{'commandName':_0x22398a,'commandParams':[],'formatGroupId':'listIndent'},function(_0x596dfe){const _0x107a43=new Set();for(const _0x435001 of _0x596dfe){let _0x149901=_0x435001['nextSibling'];for(;_0x149901&&_0x149901['getAttribute']('listIndent')>_0x435001['getAttribute']('listIndent');)_0x107a43['add'](_0x149901),_0x149901=_0x149901['nextSibling'];}return Array['from'](_0x107a43);}(_0x3ab961));});};}_0x3ba96d['enableCommand']('numberedList',_0x351053('numberedList')),_0x3ba96d['enableCommand']('bulletedList',_0x351053('bulletedList')),_0x3757c2&&_0x3ba96d['enableCommand']('todoList',_0x351053('todoList')),_0x3ba96d['enableCommand']('indentList',_0x127756('indentList')),_0x3ba96d['enableCommand']('outdentList',_0x127756('outdentList')),_0x3757c2&&_0x3ba96d['enableCommand']('checkTodoList',()=>{const _0x16b88a=_0x3f7272['commands']['get']('checkTodoList'),_0x589821=Array['from'](_0x16b88a['_selectedElements']);_0x589821['filter'](_0x12d6a7=>_0x12d6a7['getAttribute']('todoListChecked')!=_0x16b88a['value']),_0x3f7272['model']['change'](()=>{for(const _0x47d05f of _0x589821)_0x3ba96d['markBlockFormat'](_0x47d05f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x16b88a['value']}]});});}),_0x3ba96d['descriptionFactory']['registerElementLabel']('listItem',_0x1f12f8=>o(_0x4dc3a0,'ELEMENT_LIST_ITEM',_0x1f12f8)),_0x3ba96d['descriptionFactory']['registerDescriptionCallback'](_0x209b96=>{if('formatBlock'!=_0x209b96['type']&&'formatInline'!=_0x209b96['type'])return;const {data:_0x28b020}=_0x209b96;if(_0x28b020){if('numberedList'==_0x28b020['commandName']||'bulletedList'==_0x28b020['commandName']||'todoList'==_0x28b020['commandName'])switch(_0x28b020['commandName']['replace']('List','')){case'bulleted':return _0x33499f(o(_0x4dc3a0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x33499f(o(_0x4dc3a0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x33499f(o(_0x4dc3a0,'ELEMENT_TODO_LIST'));}if('indentList'==_0x28b020['commandName'])return{'type':'format','content':o(_0x4dc3a0,'*Indent:*\x20%0',o(_0x4dc3a0,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x28b020['commandName'])return{'type':'format','content':o(_0x4dc3a0,'*Outdent:*\x20%0',o(_0x4dc3a0,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x28b020['commandName'])return _0x28b020['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4dc3a0,'*Check\x20item*')}:{'type':'format','content':o(_0x4dc3a0,'*Uncheck\x20item*')};}function _0x33499f(_0x39f222){return{'type':'format','content':o(_0x4dc3a0,'*Change\x20to:*\x20%0',_0x39f222)};}});}}function Le(_0x45af4c){const _0x14e1e3=_0x45af4c['getAttribute']('listIndent');if(0x0==_0x14e1e3)return _0x45af4c;let _0x1c03c7=_0x45af4c;for(;_0x45af4c['previousSibling']&&_0x45af4c['previousSibling']['is']('element','listItem');){const _0x19ee09=_0x45af4c['previousSibling']['getAttribute']('listIndent');if(_0x19ee09==_0x14e1e3)_0x1c03c7=_0x45af4c['previousSibling'];else{if(_0x19ee09<_0x14e1e3)break;}_0x45af4c=_0x45af4c['previousSibling'];}return _0x1c03c7;}function Ee(_0x39de71){const _0x2437e2=[];if(_0x39de71['is']('element','listItem')&&_0x39de71['getAttribute']('listIndent')>0x0){let _0x20d025=_0x39de71['nextSibling'];for(;_0x20d025&&'listItem'==_0x20d025['name']&&_0x20d025['getAttribute']('listIndent')==_0x39de71['getAttribute']('listIndent');)_0x2437e2['push'](_0x20d025),_0x20d025=_0x20d025['nextSibling'];}return _0x2437e2;}class mt extends _0x2051ed{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x8c1479=this['editor']['config']['get']('list.properties'),_0x452014=this['editor']['plugins']['get']('TrackChangesEditing');_0x8c1479['styles']&&_0x452014['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x8c1479['reversed']&&_0x452014['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x8c1479['startIndex']&&_0x452014['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x452014['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x59581d,_0xf15901={}){const _0x414cb1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c0f2=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x414cb1['markMultiRangeBlockFormat'](_0x1c0f2,{'commandName':'listStyle','commandParams':[{'type':_0xf15901['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3e3e20,_0xf20d27={}){const _0x445941=this['editor']['plugins']['get']('TrackChangesEditing'),_0x19cf6e=this['_getSuggestionBlocks'](_0x3d6430=>_0x3d6430['is']('element','listItem')&&'numbered'===_0x3d6430['getAttribute']('listType'));if(_0x19cf6e['length']<0x1)return;const _0x425952=_0x19cf6e['map'](_0x3bfafa=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3bfafa,'before'),this['editor']['model']['createPositionAt'](_0x3bfafa,0x0)));this['editor']['model']['change'](()=>{_0x445941['markMultiRangeBlockFormat'](_0x425952,{'commandName':'listReversed','commandParams':[{'reversed':_0xf20d27['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x25d193,_0x1b899d={}){const _0x28138f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x326cfd=this['_getSuggestionBlocks'](_0x590b97=>_0x590b97['is']('element','listItem')&&'numbered'===_0x590b97['getAttribute']('listType'));if(_0x326cfd['length']<0x1)return;const _0x5a923d=_0x326cfd['map'](_0x383c87=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x383c87,'before'),this['editor']['model']['createPositionAt'](_0x383c87,0x0)));this['editor']['model']['change'](()=>{_0x28138f['markMultiRangeBlockFormat'](_0x5a923d,{'commandName':'listStart','commandParams':[{'startIndex':_0x1b899d['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x53007e){if('formatBlock'!=_0x53007e['type']&&'formatInline'!=_0x53007e['type'])return;const _0x3f08d0=this['editor']['locale'],{data:_0x452f3d}=_0x53007e;if(!_0x452f3d)return;let _0xdf35d9,_0xf0707b;switch(_0x452f3d['commandName']){case'listStyle':_0xdf35d9='*Change\x20to:*\x20%0',_0xf0707b={'type':'format','content':o(_0x3f08d0,_0xdf35d9,o(_0x3f08d0,this['_getTranslationKeyForListStyle'](_0x452f3d['commandParams'][0x0]['type'])))};break;case'listReversed':_0xdf35d9=_0x452f3d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xf0707b={'type':'format','content':o(_0x3f08d0,_0xdf35d9)};break;case'listStart':_0xdf35d9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xf0707b={'type':'format','content':o(_0x3f08d0,_0xdf35d9,_0x452f3d['commandParams'][0x0]['startIndex'])};}return _0xf0707b;}['_getSuggestionBlocksForListStyle'](){const _0x4c88ae=this['editor']['plugins']['get']('LegacyListUtils');let _0x1b8fcc=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1b8fcc[0x0]?.['is']('element','listItem')&&_0x1b8fcc['unshift'](..._0x4c88ae['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1b8fcc[_0x1b8fcc['length']-0x1]?.['is']('element','listItem')&&_0x1b8fcc['push'](..._0x4c88ae['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1b8fcc=[...new Set(_0x1b8fcc)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1b8fcc=_0x1b8fcc['filter'](_0x32b010=>_0x32b010['is']('element','listItem'))),_0x1b8fcc;}['_getSuggestionBlocks'](_0x4cc2ad){const _0x5cda1c=this['editor']['plugins']['get']('LegacyListUtils');let _0x27dd40=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4cc2ad)['map'](_0x1daca3=>{const _0x20f26e=this['editor']['model']['createPositionAt'](_0x1daca3,0x0);return[..._0x5cda1c['getSiblingNodes'](_0x20f26e,'backward'),..._0x5cda1c['getSiblingNodes'](_0x20f26e,'forward')];})['flat']();return _0x27dd40=[...new Set(_0x27dd40)],_0x27dd40;}['_getTranslationKeyForListStyle'](_0x52295b){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x52295b)||'default')['toUpperCase']()+'_LIST_'+_0x52295b['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x2051ed{['afterInit'](){const _0x13a75c=this['editor'];if(!_0x13a75c['plugins']['has']('MediaEmbedEditing'))return;const _0x5bec5b=_0x13a75c['plugins']['get']('TrackChangesEditing'),_0x4d248c=_0x13a75c['locale'];_0x5bec5b['enableCommand']('mediaEmbed'),_0x5bec5b['descriptionFactory']['registerElementLabel']('media',_0x2b4cc3=>o(_0x4d248c,'ELEMENT_MEDIA',_0x2b4cc3));}}class pt extends _0x2051ed{['afterInit'](){const _0xc1e492=this['editor'];_0xc1e492['plugins']['has']('MentionEditing')&&_0xc1e492['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x2051ed{['afterInit'](){const _0x527025=this['editor'];if(!_0x527025['plugins']['has']('MergeFieldsEditing'))return;const _0x2f2bb3=_0x527025['plugins']['get']('TrackChangesEditing'),_0x280541=_0x527025['locale'];_0x2f2bb3['enableCommand']('insertMergeField'),_0x2f2bb3['enableCommand']('insertMergeFieldBlock'),_0x2f2bb3['enableCommand']('insertMergeFieldImage'),_0x2f2bb3['descriptionFactory']['registerElementLabel']('mergeField',_0x50c1ab=>o(_0x280541,'ELEMENT_MERGE_FIELD',_0x50c1ab)),_0x2f2bb3['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2bc962=>o(_0x280541,'ELEMENT_MERGE_FIELD',_0x2bc962)),_0x2f2bb3['descriptionFactory']['registerDescriptionCallback'](_0x30bc89=>{if('insertion'!=_0x30bc89['type']&&'deletion'!=_0x30bc89['type'])return;const _0x15216c=_0x30bc89['getContainedElement']();if(null==_0x15216c)return;const _0x2d7ae2=_0x527025['plugins']['get']('MergeFieldsEditing');let _0x57a7e4;switch(_0x2d7ae2['getMergeFieldType'](_0x15216c)){case null:return;case'image':{const _0x34a6c1=_0x2d7ae2['unwrapAffixes'](_0x15216c['getAttribute']('src'));_0x57a7e4=_0x2d7ae2['getLabel'](_0x34a6c1)||_0x34a6c1;break;}default:{const _0x5ba9b5=_0x15216c['getAttribute']('id');_0x57a7e4=_0x2d7ae2['getLabel'](_0x5ba9b5)||_0x5ba9b5;break;}}return'insertion'==_0x30bc89['type']?{'type':'insertion','content':o(_0x280541,'*Insert:*\x20%0','\x22'+_0x57a7e4+'\x22\x20'+o(_0x280541,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x280541,'*Remove:*\x20%0','\x22'+_0x57a7e4+'\x22\x20'+o(_0x280541,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x2051ed{['afterInit'](){const _0x2d7a32=this['editor'],_0x57df48=_0x2d7a32['plugins']['get']('TrackChangesEditing');_0x2d7a32['plugins']['has']('MultiLevelList')&&(_0x57df48['enableDefaultAttributesIntegration']('multiLevelList'),_0x57df48['descriptionFactory']['registerDescriptionCallback'](_0x51b4e3=>this['handleDescriptions'](_0x51b4e3)));}['handleDescriptions'](_0x21f6af){const _0x227bf5=this['editor']['locale'],{data:_0xaf5921}=_0x21f6af,_0x5f2958={'type':'format','content':''};if(_0xaf5921&&'listMarkerStyle'==_0xaf5921['key']){if(!_0xaf5921['oldValue'])return{'type':'format','content':o(_0x227bf5,'*Set\x20format:*\x20%0',o(_0x227bf5,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xaf5921['newValue']+')'};if(!_0xaf5921['newValue']){let _0x312d77=_0x21f6af['head'];for(;_0x312d77;){if(_0x312d77['data']&&'listType'==_0x312d77['data']['key']&&_0x312d77['data']['newValue'])return _0x5f2958;_0x312d77=_0x312d77['next'];}return{'type':'format','content':o(_0x227bf5,'*Remove\x20format:*\x20%0',o(_0x227bf5,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xaf5921['oldValue']+')'};}}}}class bt extends _0x2051ed{['afterInit'](){const _0x437e44=this['editor'];if(!_0x437e44['plugins']['has']('PageBreakEditing'))return;_0x437e44['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2e754b=_0x437e44['plugins']['get']('TrackChangesEditing'),_0xf429e9=_0x437e44['locale'];_0x2e754b['descriptionFactory']['registerElementLabel']('pageBreak',_0x5b87e2=>o(_0xf429e9,'ELEMENT_PAGE_BREAK',_0x5b87e2));}}class yt extends _0x2051ed{['afterInit'](){const _0x2dcd82=this['editor'];if(!_0x2dcd82['plugins']['has']('Paragraph'))return;const _0xbd181e=_0x2dcd82['locale'],_0x3e4db3=_0x2dcd82['plugins']['get']('TrackChangesEditing');_0x3e4db3['descriptionFactory']['registerElementLabel']('paragraph',_0x226c72=>o(_0xbd181e,'ELEMENT_PARAGRAPH',_0x226c72)),_0x3e4db3['enableDefaultAttributesIntegration']('paragraph'),_0x3e4db3['enableCommand']('insertParagraph');const _0x59d00a=_0x3e4db3['descriptionFactory'];_0x59d00a['registerDescriptionCallback'](_0x15f07=>{if('insertion'!==_0x15f07['type'])return;const {start:_0x570428,end:_0x9f9f54}=_0x15f07['getFirstRange']();if(!_0x570428['isTouching'](_0x9f9f54)||!_0x570428['nodeAfter'])return;const _0x256e87=_0x2dcd82['model']['schema'],_0x426199=_0x570428['nodeAfter'];return _0x256e87['isBlock'](_0x426199)&&!_0x256e87['isLimit'](_0x426199)&&_0x256e87['checkChild'](_0x426199,'$text')?{'type':'insertion','content':o(_0xbd181e,'*Insert:*\x20%0',_0x59d00a['getItemLabel'](_0x426199,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a2979=this['editor'],_0x5e8e8d=_0x1a2979['locale'];_0x1a2979['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3aec85=>{if('formatBlock'!=_0x3aec85['type'])return;const {data:_0x43d371}=_0x3aec85;return _0x43d371&&'paragraph'==_0x43d371['commandName']?{'type':'format','content':o(_0x5e8e8d,'*Change\x20to:*\x20%0',o(_0x5e8e8d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x2051ed{['afterInit'](){const _0x38257e=this['editor'];_0x38257e['commands']['get']('replaceSource')&&_0x38257e['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x2051ed{['afterInit'](){const _0x22c25f=this['editor'];if(!_0x22c25f['plugins']['has']('RemoveFormatEditing'))return;_0x22c25f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51c3ba=this['editor'];_0x51c3ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x188706=>{if('formatBlock'!=_0x188706['type']&&'formatInline'!=_0x188706['type'])return;const {data:_0x5df3d1}=_0x188706;return _0x5df3d1&&'removeFormat'==_0x5df3d1['commandName']?{'type':'format','content':o(_0x51c3ba['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x2051ed{['afterInit'](){const _0xfb87ff=this['editor'];if(!_0xfb87ff['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x38b641=_0xfb87ff['plugins']['get']('TrackChangesEditing');_0x38b641['enableCommand']('goToPreviousRestrictedEditingException'),_0x38b641['enableCommand']('goToNextRestrictedEditingException');const _0x5e9f66=_0xfb87ff['plugins']['get']('RestrictedEditingModeEditing');_0x5e9f66['enableCommand']('trackChanges'),_0x5e9f66['enableCommand']('acceptSuggestion'),_0x5e9f66['enableCommand']('discardSuggestion'),_0x5e9f66['enableCommand']('acceptAllSuggestions'),_0x5e9f66['enableCommand']('discardAllSuggestions'),_0x5e9f66['enableCommand']('acceptSelectedSuggestions'),_0x5e9f66['enableCommand']('discardSelectedSuggestions');}}class At extends _0x2051ed{['afterInit'](){const _0x3f57d5=this['editor'];if(!_0x3f57d5['plugins']['has']('ShiftEnter'))return;const _0x36a5c1=_0x3f57d5['plugins']['get']('TrackChangesEditing');_0x36a5c1['enableCommand']('shiftEnter'),_0x36a5c1['descriptionFactory']['registerElementLabel']('softBreak',_0x784ac4=>o(_0x3f57d5['locale'],'ELEMENT_LINE_BREAK',_0x784ac4));}}function an(_0x172773,_0x1d39e8,_0x18010f){const _0x1c8344=[];for(const _0x4f694c of _0x1d39e8['getItems']())_0x4f694c['hasAttribute'](_0x172773)&&_0x1c8344['push'](_0x18010f['createRangeOn'](_0x4f694c));return _0x1c8344;}class _t extends _0x2051ed{['afterInit'](){this['editor']['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand']());}['_enableEditingExceptionCommand'](){const _0x591a90=this['editor'],_0x3416b2=_0x591a90['model'],_0x4bef20=_0x591a90['locale'],_0x327901=_0x591a90['plugins']['get']('TrackChangesEditing'),_0x3c174e='restrictedEditingException',_0x56b4b0=_0x591a90['commands']['get'](_0x3c174e);_0x327901['enableCommand'](_0x3c174e,(_0x202376,_0x37852b={})=>{const _0x254995=_0x3416b2['document']['selection'];if(_0x254995['isCollapsed'])return void _0x202376(_0x37852b);const _0x51a911=void 0x0!==_0x37852b['forceValue']?_0x37852b['forceValue']:!_0x56b4b0['value'];_0x3416b2['change'](()=>{const _0x288a76=Array['from'](_0x254995['getRanges']());for(const _0x4c74e0 of _0x288a76){const _0xfa51fe=_0x51a911?[_0x4c74e0]:an(_0x3c174e,_0x4c74e0,_0x3416b2);for(const _0x391b0f of _0xfa51fe)_0x327901['markInlineFormat'](_0x391b0f,{'commandName':_0x3c174e,'commandParams':[{'forceValue':_0x51a911}]});}});}),_0x327901['descriptionFactory']['registerDescriptionCallback'](_0x1d11fb=>{if('formatBlock'!=_0x1d11fb['type']&&'formatInline'!=_0x1d11fb['type'])return;const {data:_0xc807ab}=_0x1d11fb;return _0xc807ab&&_0xc807ab['commandName']==_0x3c174e?_0xc807ab['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4bef20,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4bef20,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x760787=this['editor'],_0xb5a4d3=_0x760787['locale'],_0x1eb80a=_0x760787['plugins']['get']('TrackChangesEditing'),_0x22b8f3='restrictedEditingExceptionBlock',_0x408032=this['editor']['commands']['get'](_0x22b8f3);_0x1eb80a['enableCommand'](_0x22b8f3,(_0x913511,_0xbba480={})=>{const _0x545147=this['editor']['model']['document']['selection'],_0x1e3ea8=_0xbba480&&void 0x0!==_0xbba480['forceValue']?_0xbba480['forceValue']:!_0x408032['value'];let _0x8922b8=[];if(_0x1e3ea8){const _0x18ab18=Array['from'](_0x545147['getSelectedBlocks']())['filter'](_0x256ba4=>function(_0x54ad11){return!!_0x54ad11['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x256ba4)||function(_0x471d33,_0x393ffa){const _0x2d4fa1=_0x393ffa['createContext'](_0x471d33['parent']);if(!_0x393ffa['checkChild'](_0x2d4fa1,'restrictedEditingException'))return!0x1;if(!_0x393ffa['checkChild'](_0x2d4fa1['push']('restrictedEditingException'),_0x471d33))return!0x1;return!0x0;}(_0x256ba4,this['editor']['model']['schema']));_0x8922b8=to(_0x18ab18,_0x760787['model']);}else{const _0x3cef5d=Array['from'](_0x545147['getSelectedBlocks']())['map'](_0x344b7a=>function(_0xeb9dc7){let _0x22a623=_0xeb9dc7;for(;_0x22a623['parent'];){if('restrictedEditingException'==_0x22a623['parent']['name'])return _0x22a623;_0x22a623=_0x22a623['parent'];}return null;}(_0x344b7a))['filter'](_0xc877f1=>!!_0xc877f1);_0x8922b8=to(_0x3cef5d,_0x760787['model']);}_0x760787['model']['change'](()=>{for(const _0x1fde7e of _0x8922b8)_0x1eb80a['markBlockFormat'](_0x1fde7e,{'commandName':_0x22b8f3,'commandParams':[{'forceValue':_0x1e3ea8}]});});}),_0x1eb80a['descriptionFactory']['registerDescriptionCallback'](_0x159c3a=>{const {data:_0x5530c0}=_0x159c3a;if(_0x5530c0&&_0x5530c0['commandName']==_0x22b8f3)return _0x5530c0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb5a4d3,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xb5a4d3,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x2051ed{['afterInit'](){const _0x7a1a70=this['editor'];if(!_0x7a1a70['plugins']['has']('Style')||!_0x7a1a70['plugins']['has']('DataSchema'))return;const _0x22baed=_0x7a1a70['plugins']['get']('TrackChangesEditing'),_0x567781=_0x7a1a70['locale'],_0x4bb895=_0x7a1a70['config']['get']('style')||{},_0x2677d2=_0x7a1a70['plugins']['get']('GeneralHtmlSupport'),_0x13e2b0=_0x7a1a70['plugins']['get']('StyleUtils')['normalizeConfig'](_0x7a1a70['plugins']['get']('DataSchema'),_0x4bb895['definitions']);_0x22baed['enableDefaultAttributesIntegration']('style');const _0x90d4f6=new Set();for(const _0x5795f1 of _0x13e2b0['block']){const _0x6e292c=_0x2677d2['getGhsAttributeNameForElement'](_0x5795f1['element']);_0x90d4f6['add'](_0x6e292c);}const _0x3148a1=new Set();for(const _0x3fe3df of _0x13e2b0['inline']){const _0x17cfd8=_0x2677d2['getGhsAttributeNameForElement'](_0x3fe3df['element']);_0x3148a1['add'](_0x17cfd8);for(const _0xe7f753 of _0x3fe3df['ghsAttributes'])_0x3148a1['add'](_0xe7f753);}for(const _0x4ae520 of _0x90d4f6)_0x22baed['descriptionFactory']['registerAttributeLabel'](_0x4ae520,o(_0x567781,'FORMAT_STYLE'));for(const _0x256a97 of _0x3148a1)_0x22baed['descriptionFactory']['registerAttributeLabel'](_0x256a97,o(_0x567781,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f4f76=this['editor'],_0x3119ba=_0x1f4f76['locale'];_0x1f4f76['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3728f4=>{if('formatBlock'!=_0x3728f4['type']&&'formatInline'!=_0x3728f4['type'])return;const {data:_0x5c2412}=_0x3728f4;return _0x5c2412&&'style'===_0x5c2412['commandName']?_0x5c2412['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3119ba,'*Set\x20format:*\x20%0',_0x5c2412['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3119ba,'*Remove\x20format:*\x20%0',_0x5c2412['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x2051ed{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1ba0d3){super(_0x1ba0d3),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x13833b=this['editor'],_0x4ae226=_0x13833b['model']['document']['selection'];if(!_0x13833b['plugins']['has']('TableEditing'))return;const _0x2b6ebd=_0x13833b['locale'],_0x14dbce=_0x13833b['plugins']['get']('TrackChangesEditing'),_0x20c97c=_0x13833b['plugins']['get']('TableUtils');_0x14dbce['descriptionFactory']['registerElementLabel']('table',_0x42ada9=>o(_0x2b6ebd,'ELEMENT_TABLE',_0x42ada9)),this['_setupColumnsRowsFixing'](),_0x14dbce['enableCommand']('insertTable'),_0x14dbce['enableCommand']('selectTableRow'),_0x14dbce['enableCommand']('selectTableColumn');for(const _0x230820 of['insertTableRowAbove','insertTableRowBelow']){const _0x1b15ab=_0x13833b['commands']['get'](_0x230820);_0x14dbce['enableCommand'](_0x230820,_0x3106c1=>{_0x13833b['model']['change'](_0x94487a=>{_0x3106c1();const _0x431def='above'===_0x1b15ab['order'],_0x2b08cd=_0x20c97c['getSelectionAffectedTableCells'](_0x4ae226),_0x428abc=_0x20c97c['getRowIndexes'](_0x2b08cd),_0x160f25=_0x431def?_0x428abc['first']-0x1:_0x428abc['last']+0x1,_0x33ae96=_0x2b08cd[0x0]['findAncestor']('table'),_0x505ddd=_0x20c97c['createTableWalker'](_0x33ae96,{'startRow':_0x160f25,'endRow':_0x160f25}),_0x2eca2f=Array['from'](_0x505ddd)['map'](_0x8522b0=>_0x94487a['createRangeOn'](_0x8522b0['cell']));_0x14dbce['markMultiRangeInsertion'](_0x2eca2f,'tableRow');});});}for(const _0x5deb1c of['insertTableColumnLeft','insertTableColumnRight']){const _0x41d2b6=_0x13833b['commands']['get'](_0x5deb1c);_0x14dbce['enableCommand'](_0x5deb1c,_0x3b6e77=>{_0x13833b['model']['change'](_0x2943b2=>{_0x3b6e77();const _0x3a4a16='left'===_0x41d2b6['order'],_0x5ba130=_0x20c97c['getSelectionAffectedTableCells'](_0x4ae226),_0x4212a9=_0x20c97c['getColumnIndexes'](_0x5ba130),_0x57da18=_0x3a4a16?_0x4212a9['first']-0x1:_0x4212a9['last']+0x1,_0x5edb03=_0x5ba130[0x0]['findAncestor']('table'),_0xe7ca57=_0x20c97c['createTableWalker'](_0x5edb03,{'startRow':0x0,'column':_0x57da18,'includeAllSlots':!0x1}),_0x3f6541=Array['from'](_0xe7ca57)['map'](_0x11adbd=>_0x2943b2['createRangeOn'](_0x11adbd['cell']));_0x14dbce['markMultiRangeInsertion'](_0x3f6541,'tableColumn');});});}for(const _0x5a56d6 of['removeTableRow','removeTableColumn']){const _0x2b3d0a=_0x5a56d6['substr'](0xb),_0x2900e7=_0x2b3d0a['toLowerCase'](),_0x5d5cc3=_0x2900e7['substr'](0x0,0x3)+'span',_0x542b17='table'+_0x2b3d0a,_0x418cf5='min'+_0x2b3d0a,_0x290368='max'+_0x2b3d0a;_0x14dbce['enableCommand'](_0x5a56d6,()=>{_0x13833b['model']['change'](_0xd87478=>{const _0xbf51de=_0x20c97c['getSelectionAffectedTableCells'](_0x4ae226),_0x31b02a=_0xbf51de[0x0]['findAncestor']('table');let _0x2aa7d9;if('removeTableRow'==_0x5a56d6){const _0x5dee49=_0x20c97c['getRowIndexes'](_0xbf51de);_0x2aa7d9={'startRow':_0x5dee49['first'],'endRow':_0x5dee49['last'],'includeAllSlots':!0x0};}else{const _0x48bdaa=_0x20c97c['getColumnIndexes'](_0xbf51de);_0x2aa7d9={'startColumn':_0x48bdaa['first'],'endColumn':_0x48bdaa['last'],'includeAllSlots':!0x0};}const _0xa74c=_0x20c97c['createTableWalker'](_0x31b02a,_0x2aa7d9),_0x508119=Array['from'](_0xa74c)['map'](({cell:_0x4df8d7})=>_0x4df8d7),_0x11ac28=_e(_0x508119['filter'](_0x203869=>_0x203869['hasAttribute'](_0x5d5cc3))),_0x1f7031=_e(_0x508119['filter'](_0x3311cd=>!_0x3311cd['hasAttribute'](_0x5d5cc3)))['map'](_0x5055ed=>_0xd87478['createRangeOn'](_0x5055ed)),_0x5bec0c=_0x14dbce['markMultiRangeDeletion'](_0x1f7031,_0x542b17);if(_0x5bec0c&&('tableRow'==_0x5bec0c['subType']||'tableColumn'==_0x5bec0c['subType'])){const _0x1993a1=this['_getSuggestionCoords'](_0x5bec0c);for(const _0x13a4b2 of _0x11ac28){const _0x113e14=_0xd87478['createRangeOn'](_0x13a4b2),_0x536e56=_0x20c97c['getCellLocation'](_0x13a4b2),_0x1f9b85=_0x13a4b2['getAttribute'](_0x5d5cc3)-0x1,_0x5575c4=_0x1993a1[_0x418cf5],_0x26772c=_0x1993a1[_0x290368];_0x5575c4<=_0x536e56[_0x2900e7]&&_0x536e56[_0x2900e7]+_0x1f9b85<=_0x26772c&&_0x5bec0c['addRange'](_0x113e14);}}});});}function _0x5a1cc9(_0x518d54){const _0x2ee2cf=Array['from'](_0x4ae226['getRanges']())['map'](_0x53b351=>_0x53fd14['fromRange'](_0x53b351));_0x13833b['model']['change'](_0x28fd16=>{const _0x599f4d=_0x28fd16['batch'];_0x518d54=_0x518d54['filter'](_0x56e44d=>'$graveyard'!=_0x56e44d['root']['rootName']),_0x28fd16['setSelection'](_0x518d54),_0x13833b['commands']['get']('removeTableRow')['refresh'](),_0x13833b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x13833b['model']['enqueueChange'](()=>{_0x13833b['model']['enqueueChange'](_0x599f4d,_0x28b5ae=>{const _0x2259af=_0x2ee2cf['filter'](_0x1128bc=>'$graveyard'!=_0x1128bc['root']['rootName']);_0x2259af['length']>0x0&&_0x28b5ae['setSelection'](_0x2259af);for(const _0xfa56a8 of _0x2ee2cf)_0xfa56a8['detach']();});});});}function _0x5921a1(_0x22991d){_0x13833b['model']['change'](_0x3b64bb=>{const _0x3e62c1=Array['from'](_0x4ae226['getRanges']())['map'](_0x11cffc=>_0x53fd14['fromRange'](_0x11cffc)),_0x44db80=[];for(const _0x3a4d12 of _0x22991d)for(const _0x402ac8 of _0x3a4d12['getItems']({'shallow':!0x0}))_0x44db80['push'](_0x402ac8);for(const _0x481dd7 of _0x44db80)'$graveyard'!=_0x481dd7['root']['rootName']&&(_0x3b64bb['setSelection'](_0x3b64bb['createPositionAt'](_0x481dd7,0x0)),_0x13833b['commands']['get']('removeTableColumn')['refresh'](),_0x13833b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1ffe9e=_0x3e62c1['filter'](_0x3ceafd=>'$graveyard'!=_0x3ceafd['root']['rootName']);_0x1ffe9e['length']>0x0&&_0x3b64bb['setSelection'](_0x1ffe9e);for(const _0x5eb88f of _0x3e62c1)_0x5eb88f['detach']();});}function _0x5cf8f2(_0x15a7b6,_0x51af06){return _0x51af06['every'](_0x502152=>_0x15a7b6['some'](_0x17843e=>_0x17843e['end']['isEqual'](_0x502152['start'])||_0x502152['end']['isEqual'](_0x17843e['start'])));}function _0x419bd2(_0x3b061b,_0x1dfbec){return!_0x3b061b['some'](_0x407ee8=>_0x1dfbec['some'](_0x228332=>_0x407ee8['isIntersecting'](_0x228332)))&&_0x3b061b['some'](_0x1ba311=>_0x1dfbec['some'](_0xf33515=>_0x1ba311['end']['isTouching'](_0xf33515['start'])));}_0x14dbce['descriptionFactory']['registerDescriptionCallback'](_0x25a007=>{if('insertion'!=_0x25a007['type']&&'deletion'!=_0x25a007['type'])return;const _0x55ca1c=_0x25a007['getContainedElement']();if(null!=_0x55ca1c&&_0x55ca1c['is']('element','table')){if('insertion'==_0x25a007['type']){const _0x20f207=_0x25a007['getItems']()['filter'](_0x2aae5a=>_0x2aae5a['is']('$textProxy'))['map'](_0x2defd3=>_0x2defd3['data']);if(_0x20f207['length'])return{'type':'insertion','content':o(_0x2b6ebd,'*Insert:*\x20%0',o(_0x2b6ebd,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x20f207['join']('\x20')+'\x22'))};}if('deletion'==_0x25a007['type']){const _0x39002b=_0x25a007['getItems']()['filter'](_0x46003a=>_0x46003a['is']('$textProxy'))['map'](_0x53759e=>_0x53759e['data']);if(_0x39002b['length'])return{'type':'deletion','content':o(_0x2b6ebd,'*Remove:*\x20%0',o(_0x2b6ebd,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x39002b['join']('\x20')+'\x22'))};}}}),_0x14dbce['descriptionFactory']['registerDescriptionCallback'](_0x3200d0=>{if('tableRow'==_0x3200d0['subType']){const _0xb4327=_0x3200d0['getItems']()['filter'](_0x57826b=>_0x57826b['is']('$textProxy'))['map'](_0x3c2a8=>_0x3c2a8['data']),_0x231e8f=this['_getSuggestionCoords'](_0x3200d0),_0x12badb=_0x231e8f['maxRow']-_0x231e8f['minRow']+0x1;if('insertion'==_0x3200d0['type'])return _0xb4327['length']?{'type':'insertion','content':o(_0x2b6ebd,'*Insert:*\x20%0',o(_0x2b6ebd,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x12badb,'\x22'+_0xb4327['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2b6ebd,'*Insert:*\x20%0',o(_0x2b6ebd,'ELEMENT_TABLE_ROW',_0x12badb))};if('deletion'==_0x3200d0['type'])return _0xb4327['length']?{'type':'deletion','content':o(_0x2b6ebd,'*Remove:*\x20%0',o(_0x2b6ebd,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x12badb,'\x22'+_0xb4327['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2b6ebd,'*Remove:*\x20%0',o(_0x2b6ebd,'ELEMENT_TABLE_ROW',_0x12badb))};}if('tableColumn'==_0x3200d0['subType']){const _0x1f127e=_0x3200d0['getItems']()['filter'](_0x2a7d30=>_0x2a7d30['is']('$textProxy'))['map'](_0x4f02f1=>_0x4f02f1['data']),_0x1a1042=this['_getSuggestionCoords'](_0x3200d0),_0x68542d=_0x1a1042['maxColumn']-_0x1a1042['minColumn']+0x1;if('insertion'==_0x3200d0['type'])return _0x1f127e['length']?{'type':'insertion','content':o(_0x2b6ebd,'*Insert:*\x20%0',o(_0x2b6ebd,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x68542d,'\x22'+_0x1f127e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2b6ebd,'*Insert:*\x20%0',o(_0x2b6ebd,'ELEMENT_TABLE_COLUMN',_0x68542d))};if('deletion'==_0x3200d0['type'])return _0x1f127e['length']?{'type':'deletion','content':o(_0x2b6ebd,'*Remove:*\x20%0',o(_0x2b6ebd,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x68542d,'\x22'+_0x1f127e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2b6ebd,'*Remove:*\x20%0',o(_0x2b6ebd,'ELEMENT_TABLE_COLUMN',_0x68542d))};}}),_0x14dbce['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5a1cc9),_0x14dbce['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5a1cc9),_0x14dbce['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5921a1),_0x14dbce['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5921a1),_0x14dbce['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5cf8f2),_0x14dbce['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5cf8f2),_0x14dbce['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x419bd2),_0x14dbce['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x419bd2);}['_acceptFormatSuggestionCallbackFactory'](){const _0xa8e418=this['editor'],_0x322298=_0xa8e418['model']['document']['selection'];return(_0x5da0fe,_0x17a2f3)=>{_0xa8e418['model']['change'](_0x1111cb=>{const {commandName:_0xd7765f,commandParams:_0x575f60}=_0x17a2f3;let _0x25df9a=_0x5da0fe[0x0]['end']['nodeBefore'];_0x575f60&&_0x575f60[0x0]&&!0x1===_0x575f60[0x0]['forceValue']&&(_0x25df9a=_0x5da0fe[0x0]['start']['nodeAfter']);const _0x597757=_0x1111cb['createRangeIn'](_0x25df9a);if('$graveyard'==_0x597757['root']['rootName'])return;const _0x20906b=Array['from'](_0x322298['getRanges']())['map'](_0x51be14=>_0x53fd14['fromRange'](_0x51be14));_0x1111cb['setSelection'](_0x597757),_0xa8e418['commands']['get'](_0xd7765f)['refresh'](),_0x575f60['push']({'forceDefaultExecution':!0x0}),_0xa8e418['execute'](_0xd7765f,..._0x575f60);const _0x3444e5=_0x20906b['filter'](_0x55b893=>'$graveyard'!=_0x55b893['root']['rootName']);_0x3444e5['length']>0x0&&_0x1111cb['setSelection'](_0x3444e5);for(const _0x1afb0d of _0x20906b)_0x1afb0d['detach']();});};}['_getCoordsForCells'](_0x261d06){const _0x2857a4=this['editor']['plugins']['get']('TableUtils');let _0x57ddb6=Number['MAX_SAFE_INTEGER'],_0x867f6f=Number['MIN_SAFE_INTEGER'],_0x544993=Number['MAX_SAFE_INTEGER'],_0x262ca1=Number['MIN_SAFE_INTEGER'];for(const _0x41c072 of _0x261d06){if('$graveyard'==_0x41c072['root']['rootName'])continue;const {row:_0xaa5e8,column:_0x22aa1d}=_0x2857a4['getCellLocation'](_0x41c072),_0x149546=_0x41c072['hasAttribute']('rowspan')?_0x41c072['getAttribute']('rowspan')-0x1:0x0,_0x7deca0=_0x41c072['hasAttribute']('colspan')?_0x41c072['getAttribute']('colspan')-0x1:0x0;_0x57ddb6=_0xaa5e8<_0x57ddb6?_0xaa5e8:_0x57ddb6,_0x867f6f=_0xaa5e8+_0x149546>_0x867f6f?_0xaa5e8+_0x149546:_0x867f6f,_0x544993=_0x22aa1d<_0x544993?_0x22aa1d:_0x544993,_0x262ca1=_0x22aa1d+_0x7deca0>_0x262ca1?_0x22aa1d+_0x7deca0:_0x262ca1;}return{'minRow':_0x57ddb6,'maxRow':_0x867f6f,'minColumn':_0x544993,'maxColumn':_0x262ca1};}['_setupColumnsRowsFixing'](){const _0x86b908=this['editor'],_0x1eb197=_0x86b908['plugins']['get']('TrackChangesEditing'),_0x250f28=_0x86b908['plugins']['get']('TableUtils');_0x86b908['model']['document']['on']('change:data',()=>{const _0x403403=Array['from'](_0x86b908['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x189f42,data:_0x5c1bf3}of _0x403403){const {group:_0x4b6cac,id:_0x37cf2b,subType:_0x52a1db}=_0x1eb197['_splitMarkerName'](_0x189f42);if('suggestion'!=_0x4b6cac)continue;if(null!=_0x5c1bf3['oldRange'])continue;const _0x5a08ac=_0x1eb197['getSuggestion'](_0x37cf2b);this['_tablePostFixingSubtypes']['includes'](_0x52a1db)&&this['_tableSuggestions']['add'](_0x5a08ac);}},{'priority':'low'});const _0x4c4dff=(_0x525efc,_0x3ed57b)=>{let _0x36b97f=!0x1;const _0x206daf=_0x3ed57b['createRangeOn'](_0x525efc),_0x4a7506=_0x525efc['findAncestor']('table'),_0x4152b8=_0x250f28['getCellLocation'](_0x525efc);for(const _0x222625 of this['_tableSuggestions']){const _0x6e101d=_0x222625['subType'],_0x334bbb=_0x6e101d['startsWith']('tablePaste'),_0x545baa=_0x6e101d['substr'](_0x334bbb?0xa:0x5),_0x58904f=_0x545baa['toLowerCase'](),_0x4b5e0a=_0x58904f['substr'](0x0,0x3)+'span',_0x66f696='min'+_0x545baa,_0x503341='max'+_0x545baa;if(!_0x222625['isInContent'])continue;if(_0x4a7506!=_0x222625['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x222625['isIntersectingWithRange'](_0x206daf))continue;const _0x3f9514=_0x525efc['hasAttribute'](_0x4b5e0a)?_0x525efc['getAttribute'](_0x4b5e0a)-0x1:0x0,_0x30bac6=this['_getSuggestionCoords'](_0x222625),_0x2e5080=_0x30bac6[_0x66f696],_0x31c22c=_0x30bac6[_0x503341];_0x2e5080<=_0x4152b8[_0x58904f]&&_0x4152b8[_0x58904f]+_0x3f9514<=_0x31c22c&&(_0x222625['addRange'](_0x206daf),_0x36b97f=!0x0);}return _0x36b97f;};_0x86b908['model']['document']['registerPostFixer'](_0x3b4ce4=>{let _0x1ada03=!0x1;for(const _0x4ebecc of _0x86b908['model']['document']['differ']['getChanges']())if('insert'==_0x4ebecc['type']){if('tableRow'==_0x4ebecc['name']){for(const _0x5cf0a9 of _0x4ebecc['position']['nodeAfter']['getChildren']())_0x1ada03=_0x1ada03||_0x4c4dff(_0x5cf0a9,_0x3b4ce4);}else'tableCell'==_0x4ebecc['name']&&(_0x1ada03=_0x1ada03||_0x4c4dff(_0x4ebecc['position']['nodeAfter'],_0x3b4ce4));}return _0x1ada03;});}['_getSuggestionCoords'](_0x2771f0){return this['_getCoordsForCells'](_0x2771f0['getRanges']()['map'](_0x383539=>_0x383539['start']['nodeAfter']));}}function _e(_0x1aecea){return Array['from'](new Set(_0x1aecea)['values']());}class $t extends _0x2051ed{static get['requires'](){return[Nt];}['afterInit'](){const _0x2a8e23=this['editor'],_0x2f7bde=_0x2a8e23['model']['document']['selection'],_0xdfacc8=_0x2a8e23['locale'];if(!_0x2a8e23['plugins']['has']('TableEditing'))return;const _0x295181=_0x2a8e23['plugins']['get']('TrackChangesEditing'),_0x14717f=_0x2a8e23['plugins']['get']('TableUtils'),_0x5b1d4b=_0x2a8e23['plugins']['get'](Nt);_0x5b1d4b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x295181['enableCommand']('mergeTableCells',()=>{const _0xbf7948=_0x14717f['getSelectionAffectedTableCells'](_0x2a8e23['model']['document']['selection']);_0x2a8e23['model']['change'](()=>{_0x295181['markMultiRangeBlockFormat'](_0xbf7948,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2a8e23['commands']['get']('mergeTableCells')['on']('execute',(_0x23259d,_0xe8947f)=>{_0x2a8e23['commands']['get']('trackChanges')['value']&&(_0xe8947f['length']>0x0&&_0xe8947f[_0xe8947f['length']-0x1]&&_0xe8947f[_0xe8947f['length']-0x1]['forceDefaultExecution']||_0x295181['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x23259d['stop']());},{'priority':'highest'});for(const _0x550c75 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3ed64e=_0x2a8e23['commands']['get'](_0x550c75);_0x295181['enableCommand'](_0x550c75,()=>{const _0x247fdc=_0x2a8e23['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5cbc16=>_0x5cbc16['is']('element','tableCell')),_0xf28e9c=_0x3ed64e['value'];_0x2a8e23['model']['change'](()=>{_0x295181['markMultiRangeBlockFormat']([_0x247fdc,_0xf28e9c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5a7a79 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2b8e12=_0x2a8e23['commands']['get'](_0x5a7a79);_0x295181['enableCommand'](_0x5a7a79,()=>{const _0x4644d3=_0x14717f['getSelectionAffectedTableCells'](_0x2a8e23['model']['document']['selection'])[0x0],_0xe02a2e=_0x4644d3['findAncestor']('table'),{column:_0x30c7b3,row:_0x3f0177}=_0x14717f['getCellLocation'](_0x4644d3);let _0x41a3f8=[];if('horizontally'==_0x2b8e12['direction']){const _0x8d0642=_0x14717f['createTableWalker'](_0xe02a2e,{'startRow':_0x3f0177,'endRow':_0x3f0177,'includeAllSlots':!0x0});_0x41a3f8=Array['from'](_0x8d0642)['map'](_0xdaa6a=>_0xdaa6a['cell']);}else{const _0x4cbe34=_0x14717f['createTableWalker'](_0xe02a2e,{'column':_0x30c7b3,'includeAllSlots':!0x0});_0x41a3f8=Array['from'](_0x4cbe34)['map'](_0x13ab10=>_0x13ab10['cell']);}_0x2a8e23['model']['change'](_0x1d9a3c=>{_0x295181['markBlockFormat'](_0x1d9a3c['createRangeOn'](_0x4644d3),{'commandName':_0x5a7a79,'commandParams':[]},_0x41a3f8,_0x5a7a79);});});}_0x295181['descriptionFactory']['registerDescriptionCallback'](_0x5c036d=>{if('formatBlock'!=_0x5c036d['type']&&'formatInline'!=_0x5c036d['type'])return;const {data:_0x50a43f}=_0x5c036d;return _0x50a43f&&'mergeTableCells'==_0x50a43f['commandName']?{'type':'format','content':o(_0xdfacc8,'*Merge\x20cells*')}:void 0x0;}),_0x295181['descriptionFactory']['registerDescriptionCallback'](_0x2d5515=>{if('formatBlock'!=_0x2d5515['type']&&'formatInline'!=_0x2d5515['type'])return;const {data:_0x44b910}=_0x2d5515;return _0x44b910?'splitTableCellVertically'==_0x44b910['commandName']?{'type':'format','content':o(_0xdfacc8,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x44b910['commandName']?{'type':'format','content':o(_0xdfacc8,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2b7181=_0x5b1d4b['_acceptFormatSuggestionCallbackFactory']();for(const _0x196c43 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x295181['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x196c43,'accept',_0x2b7181);for(const _0xf853f2 of['splitTableCellVertically','splitTableCellHorizontally'])_0x295181['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xf853f2,'accept',_0x2b7181);_0x295181['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5a5fdb=>{_0x2a8e23['model']['change'](_0x5a1835=>{const _0x2aaff3=Array['from'](_0x2f7bde['getRanges']())['map'](_0x22d956=>_0x53fd14['fromRange'](_0x22d956));_0x5a1835['setSelection'](_0x5a5fdb),_0x2a8e23['commands']['get']('mergeTableCells')['refresh'](),_0x2a8e23['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x43b589=_0x2aaff3['filter'](_0x3b1da1=>'$graveyard'!=_0x3b1da1['root']['rootName']);_0x43b589['length']>0x0&&_0x5a1835['setSelection'](_0x43b589);for(const _0x2e4161 of _0x2aaff3)_0x2e4161['detach']();});});for(const _0x3bb1bd of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x42d3e2=_0x2a8e23['commands']['get'](_0x3bb1bd);_0x42d3e2['on']('set:isEnabled',(_0x29e581,_0x1c73e1,_0x35aba5)=>{if(_0x35aba5){const _0x294014=_0x2a8e23['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2e8500=>_0x2e8500['is']('element','tableCell'));this['_areMergableCells'](_0x42d3e2['value'],_0x294014)||(_0x29e581['return']=!0x1,_0x29e581['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5e83ab=this['editor']['commands']['get']('mergeTableCells'),_0x4b47a0=this['editor']['plugins']['get']('TableUtils');if(!_0x5e83ab['isEnabled'])return!0x1;const _0xfef0cb=_0x4b47a0['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x430929 of _0xfef0cb)for(const _0x340ad2 of _0xfef0cb)if(_0x430929!=_0x340ad2&&!this['_areMergableCells'](_0x430929,_0x340ad2))return!0x1;return!0x0;}['_areMergableCells'](_0x4a572a,_0x19364d){const _0x3889a9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5755ce=this['editor']['model']['createRangeOn'](_0x4a572a),_0x4c9121=this['editor']['model']['createRangeOn'](_0x19364d),_0x2d98d7=new Set(),_0x19f338=new Set();for(const _0x3e2eb8 of _0x3889a9['getSuggestions']())if(('insertion'==_0x3e2eb8['type']||'deletion'==_0x3e2eb8['type']||'mergeTableCells'==_0x3e2eb8['subType'])&&_0x3e2eb8['isInContent']){for(const _0x53c69c of _0x3e2eb8['getRanges']())_0x53c69c['containsRange'](_0x5755ce,!0x0)&&_0x2d98d7['add'](_0x3e2eb8['type']+':'+_0x3e2eb8['author']['id']),_0x53c69c['containsRange'](_0x4c9121,!0x0)&&_0x19f338['add'](_0x3e2eb8['type']+':'+_0x3e2eb8['author']['id']);}if(_0x2d98d7['size']!=_0x19f338['size'])return!0x1;for(const _0x281ab4 of _0x2d98d7)if(!_0x19f338['has'](_0x281ab4))return!0x1;return!0x0;}}class vt extends _0x2051ed{static get['requires'](){return[Nt];}['afterInit'](){const _0x37a1dd=this['editor'];if(!_0x37a1dd['plugins']['has']('TableEditing'))return;const _0x11ead9=_0x37a1dd['locale'],_0x5c2895=_0x37a1dd['plugins']['get']('TrackChangesEditing');_0x5c2895['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5c2895['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5c2895['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x11ead9,'FORMAT_HEADER_ROW')),_0x5c2895['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x11ead9,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3306fb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52a154=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x3306fb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x52a154),_0x3306fb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x52a154),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x2717ac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54b879=this['editor']['plugins']['get']('TableUtils');function _0x1ed76e({showActiveMarker:_0x2e4c85=!0x0,setDataAttribute:_0xabe44d=!0x0}={}){return(_0x52e554,_0x18fd0f,_0x52a1b2)=>{const {type:_0x4a3e02,id:_0x57e57f}=_0x2717ac['_splitMarkerName'](_0x18fd0f['markerName']);if(!_0x2717ac['hasSuggestion'](_0x57e57f))return;const _0x3a4691=_0x2717ac['getSuggestion'](_0x57e57f),_0x92aca7=_0x3a4691['data'];if('formatBlock'!=_0x3a4691['type']||!_0x92aca7||'setTableColumnHeader'!=_0x92aca7['commandName'])return;if(_0x18fd0f['item'])return void _0x52e554['stop']();if(!_0x52a1b2['consumable']['consume'](_0x18fd0f['markerRange'],_0x52e554['name']))return;const _0x26edfd=_0x18fd0f['markerRange']['start']['nodeAfter'],_0x1b915b=_0x18fd0f['markerRange']['end']['nodeBefore'],_0x2bdbdb=_0x26edfd['parent']['parent'],{column:_0x28e2b9}=_0x54b879['getCellLocation'](_0x26edfd),{column:_0x2d9bf4}=_0x54b879['getCellLocation'](_0x1b915b);for(let _0x9f7f21=_0x28e2b9;_0x9f7f21<=_0x2d9bf4;_0x9f7f21++){const _0x502241=_0x54b879['createTableWalker'](_0x2bdbdb,{'column':_0x9f7f21,'includeAllSlots':!0x1});for(const _0x4a454e of _0x502241){const _0x420d71=_0x4a454e['cell'],_0x1e260e=_0x52a1b2['mapper']['toViewElement'](_0x420d71);_0x52a1b2['writer']['addClass']('ck-suggestion-marker-'+_0x4a3e02,_0x1e260e),_0xabe44d&&_0x52a1b2['writer']['setAttribute']('data-suggestion',_0x57e57f,_0x1e260e),_0x52a1b2['mapper']['bindElementToMarker'](_0x1e260e,_0x18fd0f['markerName']),_0x2e4c85&&(_0x2717ac['activeMarkers']['includes'](_0x18fd0f['markerName'])?_0x52a1b2['writer']['addClass']('ck-suggestion-marker--active',_0x1e260e):_0x52a1b2['writer']['removeClass']('ck-suggestion-marker--active',_0x1e260e));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1ed76e(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1bf2e2,_0x42be21,_0x3e0a96)=>{_0x3e0a96['options']['showSuggestionHighlights']&&_0x1ed76e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1bf2e2,_0x42be21,_0x3e0a96);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x33f8f9,_0x568ca9,_0x3eb10a)=>{const {type:_0xdfd6c3,id:_0x1a7101}=_0x2717ac['_splitMarkerName'](_0x568ca9['markerName']);if(!_0x2717ac['hasSuggestion'](_0x1a7101))return;const _0x339ed7=_0x2717ac['getSuggestion'](_0x1a7101),_0x3f0aa1=_0x339ed7['data'];if('formatBlock'!=_0x339ed7['type']||!_0x3f0aa1||'setTableColumnHeader'!=_0x3f0aa1['commandName'])return;const _0xb097fa=_0x3eb10a['mapper']['markerNameToElements'](_0x568ca9['markerName']);if(_0xb097fa){for(const _0x616563 of _0xb097fa)_0x3eb10a['writer']['removeClass']('ck-suggestion-marker-'+_0xdfd6c3,_0x616563),_0x3eb10a['writer']['removeClass']('ck-suggestion-marker--active',_0x616563),_0x3eb10a['writer']['removeAttribute']('data-suggestion',_0x616563),_0x3eb10a['mapper']['unbindElementFromMarkerName'](_0x616563,_0x568ca9['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x21a2b4=this['editor'],_0x29279a=_0x21a2b4['locale'];function _0x4d2d85(_0x1ffe6a){return{'type':'format','content':o(_0x29279a,'*Format:*\x20%0',_0x1ffe6a)};}_0x21a2b4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f8cad=>{if('formatBlock'!=_0x4f8cad['type'])return;const {data:_0x1fd9ec}=_0x4f8cad;if(_0x1fd9ec){if('setTableRowHeader'==_0x1fd9ec['commandName']){const _0x338fb8=_0x1fd9ec['commandParams'][0x0]['forceValue'];return _0x4d2d85(o(_0x29279a,_0x338fb8?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1fd9ec['commandName']){const _0xbc6bd2=_0x1fd9ec['commandParams'][0x0]['forceValue'];return _0x4d2d85(o(_0x29279a,_0xbc6bd2?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x2051ed{['afterInit'](){const _0x44b3e4=this['editor'],_0x7ce7a2=_0x44b3e4['locale'],_0x332802=_0x44b3e4['plugins']['get']('TrackChangesEditing');function _0x3113eb(_0x5a4e70){return{'type':'format','content':''+o(_0x7ce7a2,'*Set\x20table\x20type:*\x20%0',_0x5a4e70)};}_0x44b3e4['plugins']['has']('TableLayout')&&(_0x332802['enableCommand']('insertTableLayout'),_0x332802['enableDefaultAttributesIntegration']('tableType'),_0x332802['descriptionFactory']['registerElementLabel'](_0x4001ef=>_0x4001ef['is']('element','table')&&'layout'===_0x4001ef['getAttribute']('tableType'),_0x1c72c7=>o(_0x7ce7a2,'ELEMENT_LAYOUT_TABLE',_0x1c72c7)),_0x332802['descriptionFactory']['registerDescriptionCallback'](_0xc5032c=>{const {data:_0x8ff86}=_0xc5032c;if(_0x8ff86&&'tableType'==_0x8ff86['key'])switch(_0x8ff86['newValue']){case'layout':return _0x3113eb(o(_0x7ce7a2,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3113eb(o(_0x7ce7a2,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Re['map'](_0x392ae6=>[_0x392ae6,null]));class Bt extends _0x2051ed{static get['requires'](){return[Nt];}['afterInit'](){const _0xc62db8=this['editor'];if(!_0xc62db8['plugins']['has']('TableClipboard'))return;const _0x4f591a=_0xc62db8['plugins']['get']('TrackChangesEditing'),_0xe40f0d=_0xc62db8['plugins']['get']('TableUtils'),_0x3c664d=_0xc62db8['plugins']['get'](Nt),_0x51ec03=_0xc62db8['plugins']['get']('TableClipboard'),_0x481b4d=_0xc62db8['plugins']['get']('TableSelection'),_0xe86819=_0xc62db8['plugins']['get'](_0x4e8daf);_0x3c664d['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xc62db8['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xc62db8['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x11ba2c=null,_0x52e5a8=!0x1;_0xe86819['on']('contentInsertion',(_0x70687f,_0x25e124)=>{_0x52e5a8='paste'===_0x25e124['method'];}),_0xc62db8['model']['on']('insertContent',(_0x4c8982,_0xf9a699)=>{if(!_0x52e5a8&&null===_0x481b4d['getSelectedTableCells']())return;const [_0x244165,_0x15f8c8]=_0xf9a699,_0x5cfef8=_0xf9a699[_0xf9a699['length']-0x1];_0x5cfef8&&_0x5cfef8['forceDefaultExecution']||_0x4f591a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2078cd,_0x150f35,_0x16d055,_0x199b17,_0x539155){if(_0x150f35&&!_0x150f35['is']('documentSelection'))return!0x1;const _0x403927=_0x539155['getTableIfOnlyTableInContent'](_0x2078cd,_0x16d055);if(!_0x403927||!Oe(_0x403927,void 0x0,_0x199b17))return!0x1;const _0xc2e83c=_0x199b17['getSelectionAffectedTableCells'](_0x16d055['document']['selection']);if(!_0xc2e83c['length'])return!0x1;const _0x5ac20b=_0xc2e83c[0x0]['findAncestor']('table'),_0x352865=_0x199b17['getRowIndexes'](_0xc2e83c),_0x2d2bb=_0x199b17['getColumnIndexes'](_0xc2e83c),_0x351bd8={'startRow':_0x352865['first'],'endRow':_0x352865['last'],'startColumn':_0x2d2bb['first'],'endColumn':_0x2d2bb['last']};return 0x1==_0xc2e83c['length']&&(_0x351bd8['endRow']+=_0x199b17['getRows'](_0x403927)-0x1,_0x351bd8['endColumn']+=_0x199b17['getColumns'](_0x403927)-0x1),Oe(_0x5ac20b,_0x351bd8,_0x199b17);}(_0x244165,_0x15f8c8,_0xc62db8['model'],_0xe40f0d,_0x51ec03)&&(_0x4c8982['stop'](),_0x11ba2c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xc62db8['model']['change'](()=>{_0xc62db8['model']['insertContent'](_0xf9a699[0x0],_0xf9a699[0x1],_0xf9a699[0x2],{'forceDefaultExecution':!0x0});const _0x565e05=_0x2280a6(),{rowInsertionRanges:_0x136f0a,columnInsertionRanges:_0x30c3fa,insertionRanges:_0x5d9de0,deletionRanges:_0x17f666,cells:_0x1d9319}=_0x11ba2c;_0x136f0a['length']&&_0x4f591a['markMultiRangeInsertion'](_0x136f0a,'tablePasteRow',{'tablePasteChainId':_0x565e05}),_0x30c3fa['length']&&_0x4f591a['markMultiRangeInsertion'](_0x30c3fa,'tablePasteColumn',{'tablePasteChainId':_0x565e05}),_0x5d9de0['length']&&(_0x4f591a['markMultiRangeInsertion'](_0x5d9de0,'tablePaste',{'tablePasteChainId':_0x565e05,'skipNestingCheck':!0x0}),_0x5d9de0['forEach'](_0x39d3f3=>_0x39d3f3['detach']?.())),_0x17f666['length']&&(_0x4f591a['markMultiRangeDeletion'](_0x17f666,'tablePaste',{'tablePasteChainId':_0x565e05,'skipNestingCheck':!0x0}),_0x17f666['forEach'](_0xb003e9=>_0xb003e9['detach']?.()));const _0x407bfb=_0x4f591a['markMultiRangeBlockFormat'](_0x1d9319['map'](({element:_0x57dfa0})=>_0x57dfa0),{'formatGroupId':_0x2280a6()},[],'tablePasteCell',{'tablePasteChainId':_0x565e05});if(_0x407bfb){const _0x52ee71=_0x407bfb['getMarkers'](),_0x385f89=[];for(const {element:_0x4dd7cf,attributes:_0x5660af}of _0x1d9319){if(!_0x5660af)continue;const _0x4e1768=_0xc62db8['model']['createRangeOn'](_0x4dd7cf),_0xf06ee2=_0x52ee71['find'](_0x50bfbf=>_0x50bfbf['getRange']()['isEqual'](_0x4e1768));_0xf06ee2&&_0x385f89['push']([_0xf06ee2['name'],_0x5660af]);}_0x385f89['length']&&_0x407bfb['setAttribute']('markerAttributes',Object['fromEntries'](_0x385f89));}_0x11ba2c=null;}));},{'priority':_0x179c84['high']+0xa}),_0xe86819['on']('contentInsertion',()=>{_0x52e5a8=!0x1;},{'priority':'lowest'}),_0xc62db8['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x406aae,_0x4b4a3f)=>{const [_0x142c94,_0x5ef287,,_0x377d1a]=_0x4b4a3f;if(!_0x11ba2c)return;_0x406aae['stop']();const _0x3437dd=_0x142c94['cell'],_0x19e96d=_0x5ef287,_0x3ffc89=Be(_0x3437dd),_0x41bde1=Be(_0x19e96d);_0x406aae['return']=_0x3437dd;let _0x442441=null,_0x5e37d5=null;if(_0x41bde1||_0x3ffc89){if(_0x3ffc89&&!_0x41bde1){_0x377d1a['remove'](_0x3437dd['getChild'](0x0));for(const _0x3c4008 of Array['from'](_0x19e96d['getChildren']()))_0x377d1a['insert'](_0x3c4008,_0x3437dd,'end');const _0x5a4672=_0x11ba2c['rowInsertionIndexes']['includes'](_0x142c94['row']),_0xb762c9=_0x11ba2c['columnInsertionIndexes']['includes'](_0x142c94['column']);_0x5a4672||_0xb762c9||(_0x442441=_0x53fd14['fromRange'](_0x377d1a['createRangeIn'](_0x3437dd)));}else _0x41bde1&&!_0x3ffc89&&(_0x5e37d5=_0x377d1a['createRangeIn'](_0x3437dd));}else{const _0x195e1c=_0x377d1a['createElement']('tableCellSuggestion'),_0x414b12=_0x377d1a['createElement']('tableCellSuggestion');_0x377d1a['wrap'](_0x377d1a['createRangeIn'](_0x3437dd),_0x414b12),_0x377d1a['insert'](_0x195e1c,_0x3437dd,0x0);for(const _0x5d422c of Array['from'](_0x19e96d['getChildren']()))_0x377d1a['insert'](_0x5d422c,_0x195e1c,'end');_0x442441=_0x53fd14['fromRange'](_0x377d1a['createRangeOn'](_0x195e1c)),_0x5e37d5=_0x53fd14['fromRange'](_0x377d1a['createRangeOn'](_0x414b12));}const _0x12a210=Array['from'](_0x19e96d['getAttributes']())['filter'](([_0x193cef])=>Re['includes'](_0x193cef));_0x11ba2c['cells']['push']({'element':_0x3437dd,'attributes':_0x12a210['length']?Object['fromEntries'](_0x12a210):null}),_0x442441&&_0x11ba2c['insertionRanges']['push'](_0x442441),_0x5e37d5&&_0x11ba2c['deletionRanges']['push'](_0x5e37d5);},{'priority':'high'}),_0xe40f0d['on']('insertColumns',(_0x19d718,_0x26d4f6)=>{const [_0x235173,_0x56c1b2={}]=_0x26d4f6;if(!_0x11ba2c)return;const _0x29b331=_0x56c1b2['at']||0x0,_0x4ed749=_0x56c1b2['columns']||0x1;_0x11ba2c['columnInsertionIndexes']=new Array(_0x4ed749)['fill'](_0x29b331)['map']((_0x389f27,_0x5a0362)=>_0x389f27+_0x5a0362);for(const {cell:_0x2234b8}of _0xe40f0d['createTableWalker'](_0x235173,{'startColumn':_0x29b331,'endColumn':_0x29b331+_0x4ed749-0x1}))_0x11ba2c['columnInsertionRanges']['push'](_0xc62db8['model']['createRangeOn'](_0x2234b8));},{'priority':'low'}),_0xe40f0d['on']('insertRows',(_0x5392eb,_0x2c49c4)=>{const [_0x236a03,_0x4d49c1={}]=_0x2c49c4;if(!_0x11ba2c)return;const _0x4762c0=_0x4d49c1['at']||0x0,_0x25b338=_0x4d49c1['rows']||0x1;_0x11ba2c['rowInsertionIndexes']=new Array(_0x25b338)['fill'](_0x4762c0)['map']((_0x22265a,_0x356304)=>_0x22265a+_0x356304);for(const {cell:_0x33d6b8}of _0xe40f0d['createTableWalker'](_0x236a03,{'startRow':_0x4762c0,'endRow':_0x4762c0+_0x25b338-0x1}))_0x11ba2c['rowInsertionRanges']['push'](_0xc62db8['model']['createRangeOn'](_0x33d6b8));},{'priority':'low'}),_0x4f591a['descriptionFactory']['registerDescriptionCallback'](_0x30e4e1=>{if(_0x30e4e1['subType']&&_0x30e4e1['subType']['startsWith']('tablePaste'))return _0x30e4e1['previous']?{}:{'type':'insertion','content':o(_0xc62db8['locale'],'*Replace\x20table\x20cells*')};});const _0x3bffe5=()=>!0x1;for(const _0x38723d of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4f591a['_suggestionFactory']['registerCustomCallback']('insertion',_0x38723d,'join',_0x3bffe5),_0x4f591a['_suggestionFactory']['registerCustomCallback']('deletion',_0x38723d,'join',_0x3bffe5),_0x4f591a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x38723d,'join',_0x3bffe5);_0x4f591a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3bffe5),_0x4f591a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x328a1b,_0x3701c4,_0x3b6dfe)=>{const _0x585b74=_0x328a1b['map'](_0x3cb738=>_0x3cb738['getContainedElement']())['filter'](_0x1cbe6c=>_0x1cbe6c),_0x3126b6=new Map(_0x585b74['map'](_0x28643b=>[_0x28643b,null]));if(_0x11ba2c){for(const {element:_0x346d48,attributes:_0x368fd3}of _0x11ba2c['cells'])_0x368fd3&&_0x3126b6['set'](_0x346d48,_0x368fd3);}else{if(_0x3b6dfe&&_0x3b6dfe['markerAttributes'])for(const [_0x5067bb,_0x490557]of Object['entries'](_0x3b6dfe['markerAttributes'])){const _0x4b5e5f=_0xc62db8['model']['markers']['get'](_0x5067bb),_0x3c10ff=_0x4b5e5f?_0x4b5e5f['getRange']()['getContainedElement']():null;_0x3c10ff&&_0x3126b6['set'](_0x3c10ff,_0x490557);}}_0xc62db8['model']['change'](_0x55a129=>{for(const [_0x3d79cf,_0x5c3ad4]of _0x3126b6)_0x55a129['setAttributes']({...Ae,..._0x5c3ad4},_0x3d79cf);});});const _0x1dd02d=(_0x415db2,_0x42056c)=>{_0x4f591a['_suggestionFactory']['registerCustomCallback'](_0x415db2,'tablePaste',_0x42056c,(_0x10d8aa,_0x45f902,_0x8ba30a)=>{_0xc62db8['model']['change'](_0x26b55b=>{const _0x30db01=[];for(const _0x3a9303 of _0x10d8aa){const _0x43a4e5=_0x3a9303['start']['nodeAfter'];_0x43a4e5['is']('element','tableCellSuggestion')&&_0x30db01['push'](_0x43a4e5);}_0x4f591a['_suggestionFactory']['getSuggestionCallback'](_0x415db2,null,_0x42056c)(_0x10d8aa,_0x45f902,_0x8ba30a);for(const _0xaab54f of _0x30db01)'$graveyard'!=_0xaab54f['root']['rootName']&&_0x26b55b['unwrap'](_0xaab54f);});});};_0x1dd02d('insertion','accept'),_0x1dd02d('insertion','discard'),_0x1dd02d('deletion','accept'),_0x1dd02d('deletion','discard'),_0x4f591a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xdd60b=>{const _0x2ee06c=_0xdd60b['map'](_0x4a3fae=>_0x4a3fae['getContainedElement']()),_0x3bd8b6=_0x2ee06c[0x0]['findAncestor']('table'),{minRow:_0x247cf0,maxRow:_0x197c99}=_0x3c664d['_getCoordsForCells'](_0x2ee06c);_0xe40f0d['removeRows'](_0x3bd8b6,{'at':_0x247cf0,'rows':_0x197c99-_0x247cf0+0x1});}),_0x4f591a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x395674=>{const _0x423f79=_0x395674['map'](_0x3005fa=>_0x3005fa['getContainedElement']()),_0x413d2e=_0x423f79[0x0]['findAncestor']('table'),{minColumn:_0xa17335,maxColumn:_0x4b0d37}=_0x3c664d['_getCoordsForCells'](_0x423f79);_0xe40f0d['removeColumns'](_0x413d2e,{'at':_0xa17335,'columns':_0x4b0d37-_0xa17335+0x1});});const _0x504c92=(_0x2fba5e,_0x52b0a1)=>{if(!_0x52b0a1['subType']||!_0x52b0a1['subType']['startsWith']('tablePaste'))return;const _0x1c207d=_0x52b0a1['attributes']['tablePasteChainId'],_0x2e30e6=_0x4f591a['getSuggestions']()['filter'](_0x5c47fa=>_0x5c47fa['isInContent']&&_0x5c47fa['attributes']&&_0x5c47fa['attributes']['tablePasteChainId']==_0x1c207d);_0x2e30e6['length']&&_0x52b0a1['getAllAdjacentSuggestions']()['length']!=_0x2e30e6['length']&&_0x2e30e6['reduce']((_0x5d1ec3,_0x530dd5)=>(_0x5d1ec3['next']=_0x530dd5,_0x530dd5['previous']=_0x5d1ec3,_0x530dd5));};function _0x382b68(_0x1c2f1f,_0x5c5d84=!0x0){const {id:_0x201862,authorId:_0x5c40e8}=_0x4f591a['_splitMarkerName'](_0x1c2f1f['markerName']),_0x4defbd=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xa96f11=_0x4f591a['activeMarkers']['includes'](_0x1c2f1f['markerName']);return _0xa96f11&&_0x4defbd['push']('ck-suggestion-marker--active'),{'classes':_0x4defbd,'attributes':{'data-suggestion':_0x201862,'data-author-id':_0x5c40e8},'priority':_0xa96f11&&_0x5c5d84?0xbc2:0xbb8};}_0x4f591a['on']('suggestionLoaded',_0x504c92,{'priority':'high'}),_0x4f591a['on']('suggestionUnloaded',_0x504c92,{'priority':'high'}),_0xc62db8['model']['document']['registerPostFixer'](()=>{let _0x7b8050=!0x1;const _0x5ec612=Array['from'](_0xc62db8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1ead85,data:_0x19d26}of _0x5ec612){const {group:_0x5f2e24,type:_0x3522b7,id:_0x3018ce}=_0x4f591a['_splitMarkerName'](_0x1ead85);if('suggestion'!=_0x5f2e24||'deletion'!=_0x3522b7||_0x19d26['oldRange'])continue;if(!_0x4f591a['hasSuggestion'](_0x3018ce))continue;const _0x1f1ac7=_0x4f591a['getSuggestion'](_0x3018ce)['getRanges'](),_0x3d03f0=_0xc62db8['plugins']['get']('Users')['me'];for(const _0x410549 of _0x4f591a['getSuggestions']()){if(!_0x410549['isInContent']||_0x410549['author']!=_0x3d03f0)continue;if('formatBlock'!=_0x410549['type']||'tablePasteCell'!=_0x410549['subType'])continue;if(_0x410549['getRanges']()['every'](_0x4ba00a=>_0x1f1ac7['some'](_0x3090cb=>_0x3090cb['containsRange'](_0x4ba00a,!0x0)))){for(const _0x3f6668 of _0x410549['getAllAdjacentSuggestions']())_0x3f6668['isInContent']&&(_0x3f6668['discard'](),_0x7b8050=!0x0);}}}return _0x7b8050;}),_0xc62db8['model']['document']['registerPostFixer'](_0x34f5e1=>{const _0x3e10d8=_0xc62db8['commands']['get']('redo');if(!_0x3e10d8||!_0x3e10d8['_createdBatches']['has'](_0x34f5e1['batch']))return!0x1;let _0x27251c=!0x1;const _0x1635b7=_0xc62db8['plugins']['get']('Users')['me'],_0x572f7d=_0xc62db8['model']['document']['differ']['getChanges'](),_0x5f3bf=Array['from'](_0xc62db8['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x12316d,data:_0x5dc590})=>{const {group:_0x415880,subType:_0x5ded6d,authorId:_0x2dd9bc}=_0x4f591a['_splitMarkerName'](_0x12316d);return'suggestion'==_0x415880&&'tablePaste'==_0x5ded6d&&_0x2dd9bc==_0x1635b7['id']&&!_0x5dc590['oldRange'];});for(const _0x4d4302 of _0x572f7d){if('insert'!=_0x4d4302['type']||'tableCellSuggestion'!=_0x4d4302['name']||0x1!=_0x4d4302['length'])continue;const _0x32ad7=_0x34f5e1['createRange'](_0x4d4302['position'],_0x4d4302['position']['getShiftedBy'](0x1));if(!_0x5f3bf['find'](({data:_0x4dabe9})=>_0x4dabe9['newRange']['isEqual'](_0x32ad7))){for(const {name:_0x1e86a5,data:_0x146e04}of _0x5f3bf)if(_0x32ad7['containsRange'](_0x146e04['newRange'])){_0x34f5e1['updateMarker'](_0x1e86a5,{'range':_0x32ad7}),_0x27251c=!0x0;break;}}}return _0x27251c;}),_0xc62db8['model']['document']['registerPostFixer'](_0x3dbc42=>{let _0x46e6c0=!0x1;const _0x2a9c5c=_0xc62db8['plugins']['get']('Users')['me'],_0x5c5fc0=_0x4f591a['getSuggestions']()['filter'](_0x108825=>_0x108825['isInContent']&&_0x108825['author']==_0x2a9c5c),_0x5009af=new Set(),_0x5e4e58=new Set();for(const _0x34126e of _0x5c5fc0)if('tablePaste'==_0x34126e['subType'])for(const _0x58e0bc of _0x34126e['getMarkers']()){const _0x322d35=_0x58e0bc['getRange']()['getContainedElement']();if(_0x322d35){if(_0x322d35['is']('element','tableCellSuggestion')&&Be(_0x322d35)){_0x34126e['removeMarker'](_0x58e0bc['name']),_0x5009af['add'](_0x322d35),_0x46e6c0=!0x0;const _0x1e28b4=_0x322d35['nextSibling'],_0x5b2820=_0x322d35['previousSibling'],_0x31d1d8=_0x1e28b4&&_0x1e28b4['is']('element','tableCellSuggestion'),_0x13eeb1=_0x5b2820&&_0x5b2820['is']('element','tableCellSuggestion');_0x31d1d8&&!_0x5009af['has'](_0x1e28b4)&&_0x5e4e58['add'](_0x1e28b4),_0x13eeb1&&!_0x5009af['has'](_0x5b2820)&&_0x5e4e58['add'](_0x5b2820);}else _0x322d35['is']('element','paragraph')&&_0x322d35['isEmpty']&&(_0x34126e['removeMarker'](_0x58e0bc['name']),_0x46e6c0=!0x0);}}else{if('tablePasteCell'==_0x34126e['subType']){if(!_0x34126e['attributes']||!_0x34126e['attributes']['tablePasteChainId'])continue;const _0x2ec412=_0x34126e['attributes']['markerAttributes'];if(_0x2ec412&&Object['keys'](_0x2ec412)['length'])continue;const _0x91beef=_0x34126e['attributes']['tablePasteChainId'];let _0x916b5b=!0x0,_0x147495=!0x0;for(const _0x43bf26 of _0x5c5fc0)if(_0x43bf26['subType']&&_0x43bf26['subType']['startsWith']('tablePaste')){if(!_0x43bf26['attributes']['tablePasteChainId']){_0x147495=!0x1;break;}if(_0x43bf26['id']!=_0x34126e['id']&&_0x43bf26['attributes']['tablePasteChainId']==_0x91beef){_0x916b5b=!0x1;break;}}_0x147495&&_0x916b5b&&(_0x34126e['removeMarkers'](),_0x46e6c0=!0x0);}}for(const _0x29c929 of _0x5009af)_0x3dbc42['remove'](_0x29c929);for(const _0x1a63a3 of _0x5e4e58)_0x3dbc42['unwrap'](_0x1a63a3);return _0x46e6c0;}),_0xc62db8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4be593=>_0x382b68(_0x4be593),'converterPriority':'high'}),_0xc62db8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2403b7,_0x23010e)=>_0x23010e['options']['showSuggestionHighlights']?_0x382b68(_0x2403b7,!0x1):null,'converterPriority':'high'});const _0x4d601e=_0xc62db8['editing']['view'];this['listenTo'](_0x4d601e['document'],'clipboardOutput',(_0x12ec9d,_0x2a329e)=>{const _0x51a0a7=[];for(const _0x15dbe4 of _0x4d601e['createRangeIn'](_0x2a329e['content'])['getItems']())_0x15dbe4['is']('element','suggestion-td')&&_0x51a0a7['push'](_0x15dbe4);_0x4d601e['change'](_0x199618=>{for(const _0x5a8cb3 of _0x51a0a7)_0x199618['move'](_0x199618['createRangeIn'](_0x5a8cb3),_0x199618['createPositionBefore'](_0x5a8cb3)),_0x199618['remove'](_0x5a8cb3);});});}}function Be(_0x1d3753){if(_0x1d3753['isEmpty'])return!0x0;const _0x6e3ebf=_0x1d3753['getChild'](0x0);return _0x6e3ebf['is']('element','paragraph')&&_0x6e3ebf['isEmpty'];}function Oe(_0x26b7da,_0x2b2a40={},_0x3b79fe){for(const {isAnchor:_0x11960e,cellHeight:_0x14cafa,cellWidth:_0x14f761}of _0x3b79fe['createTableWalker'](_0x26b7da,{'includeAllSlots':!0x0,..._0x2b2a40}))if(!_0x11960e||0x1!=_0x14cafa||0x1!=_0x14f761)return!0x1;return!0x0;}class Ot extends _0x2051ed{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1b2f0c=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b2f0c['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1b2f0c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1b2f0c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1b2f0c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1b2f0c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1b2f0c['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x34dba2,_0x2c3110){const _0x3ef486=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d214e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4bb043=_0x2c3110['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x31fe70=_0x1d214e['getColumnGroupElement'](_0x4bb043);let _0x31f2f4=_0x31fe70?_0x1d214e['getTableColumnsWidths'](_0x31fe70):null,_0x128e04=_0x4bb043['getAttribute']('tableWidth')||null;const _0x5fb698=_0x2c3110['tableWidth']||_0x128e04,_0x18de75=_0x2c3110['columnWidths']||_0x31f2f4,_0x3d5d23=this['editor']['plugins']['get']('Users')['me'];for(const _0x69ba14 of _0x3ef486['getSuggestions']()){const _0x35679e=_0x69ba14['getContainedElement']();if('resizeTable'===_0x69ba14['subType']&&_0x35679e===_0x4bb043){_0x69ba14['author']!==_0x3d5d23&&_0x69ba14['discard']();const _0x328d66=_0x69ba14['data']['commandParams'];_0x128e04=_0x328d66[0x0]['tableWidth'],_0x31f2f4=_0x328d66[0x0]['columnWidths'];break;}}_0x34dba2({'table':_0x4bb043,'tableWidth':_0x5fb698,'columnWidths':_0x18de75}),_0x3ef486['markBlockFormat'](_0x4bb043,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x128e04,'columnWidths':_0x31f2f4}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x231eca){if('formatBlock'!=_0x231eca['type']&&'formatInline'!=_0x231eca['type'])return;const {data:_0x2e9cf0}=_0x231eca;if(_0x2e9cf0&&'resizeTable'===_0x2e9cf0['formatGroupId']){const _0x248ebe='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x248ebe)};}}}class xt extends _0x2051ed{['afterInit'](){const _0x356ff8=this['editor'];_0x356ff8['plugins']['has']('Template')&&_0x356ff8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x2051ed{['afterInit'](){const _0x415257=this['editor'];if(!_0x415257['commands']['get']('insertTableOfContents'))return;_0x415257['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x129c2b=_0x415257['plugins']['get']('TrackChangesEditing'),_0x54b648=_0x415257['locale'];_0x129c2b['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4ef2e0=>o(_0x54b648,'ELEMENT_TABLE_OF_CONTENTS',_0x4ef2e0));}}class Rt extends _0x2051ed{['afterInit'](){const _0x3eca96=this['editor'];if(!_0x3eca96['plugins']['has']('Title'))return;const _0x52e547=_0x3eca96['plugins']['get']('TrackChangesEditing');_0x52e547['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x3eca96['locale'],'ELEMENT_TITLE')),_0x3eca96['model']['document']['registerPostFixer'](_0x86e5cf=>{let _0x1397de=!0x1;const _0x2bd343=Array['from'](_0x3eca96['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x250817,data:_0x5e1f8c}of _0x2bd343){const {group:_0x407a94}=_0x52e547['_splitMarkerName'](_0x250817);if('suggestion'!==_0x407a94||!_0x5e1f8c['newRange'])continue;const _0x4795b7=_0x5e1f8c['newRange'],_0xf11759=_0x4795b7['end']['nodeBefore'];if(!_0xf11759||!_0xf11759['is']('element','title-content'))continue;if(!_0x4795b7['start']['isTouching'](_0x4795b7['end']))continue;const _0x393dd8=_0x3eca96['model']['schema']['getNearestSelectionRange'](_0x4795b7['end'],'forward');if(_0x393dd8&&_0x393dd8['isCollapsed']){const _0x29b2d1=_0x86e5cf['createRange'](_0x4795b7['start'],_0x393dd8['start']);_0x29b2d1['isEqual'](_0x4795b7)||(_0x86e5cf['updateMarker'](_0x250817,{'range':_0x29b2d1}),_0x1397de=!0x0);}_0x1397de||(_0x86e5cf['removeMarker'](_0x250817),_0x1397de=!0x0);}return _0x1397de;});}}class Tt extends _0x2051ed{['afterInit'](){const _0xfe206e=this['editor'],_0x443081=_0xfe206e['plugins']['get']('TrackChangesEditing');_0xfe206e['plugins']['has']('Uploadcare')&&(_0x443081['enableCommand']('uploadcare'),_0xfe206e['plugins']['has']('UploadcareImageEdit')&&(_0x443081['enableCommand']('uploadcareImageEdit'),_0x443081['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x443081['descriptionFactory']['registerDescriptionCallback'](_0x228681=>{if('attribute'!=_0x228681['type'])return;const {data:_0x19ec01}=_0x228681;return _0x19ec01&&'uploadcareImageId'==_0x19ec01['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x2051ed{['afterInit'](){const _0x5c743d=this['editor'],_0x412554=_0x5c743d['plugins']['get']('TrackChangesEditing');_0x5c743d['plugins']['has']('UndoEditing')&&(_0x412554['enableCommand']('undo'),_0x412554['enableCommand']('redo'));}}class Ut extends _0x2051ed{static get['requires'](){return[Nt];}['afterInit'](){const _0x53261d=this['editor'];if(!_0x53261d['plugins']['has']('TableCaptionEditing'))return;_0x53261d['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x2051ed{['tableProperties'];['tableCellProperties'];constructor(_0x41705c){super(_0x41705c),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 _0x4043de=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x53e777 of this['tableProperties'])_0x4043de['enableCommand'](_0x53e777,(_0x1de9ce,_0xf26558)=>{const _0x5b95a0=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x53e777,[_0x5b95a0],this['tableProperties'],'tableProperties',_0x1de9ce,_0xf26558);});_0x4043de['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4043de['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4043de['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x11b94f,_0x56ef16)=>this['handleDiscardAction'](this['tableProperties'],_0x11b94f,_0x56ef16)),_0x4043de['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xd8d20f of this['tableCellProperties'])_0x4043de['enableCommand'](_0xd8d20f,(_0x243ef5,_0x4ef6a7)=>{const _0x5c256d=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xd8d20f,_0x5c256d,this['tableCellProperties'],'tableCellProperties',_0x243ef5,_0x4ef6a7);});_0x4043de['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4043de['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4043de['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2f735d,_0x22c4ac)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2f735d,_0x22c4ac)),_0x4043de['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4043de['descriptionFactory']['registerDescriptionCallback'](_0x1c6aac=>this['handleSuggestionDescription'](_0x1c6aac)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x423732,_0x22eda8,_0x469905,_0x24672d,_0x5b5877,_0x35e85b){const _0x53efca=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x35e85b['batch'],()=>{for(const _0x422182 of _0x22eda8){if(this['_getSuggestion'](_0x422182,_0x24672d))_0x5b5877(_0x35e85b);else{const _0x306a26={};for(const _0x365b9f of _0x469905){const _0x45673f=_0x422182['getAttribute'](_0x365b9f);void 0x0!==_0x45673f&&(_0x306a26[_0x365b9f]=_0x45673f);}_0x5b5877(_0x35e85b),_0x53efca['markBlockFormat'](_0x422182,{'commandParams':[_0x306a26]},[],_0x24672d);}}});}['handleDiscardAction'](_0x40573a,_0x1cab1e,_0x55a63d){const _0x1ef088=_0x1cab1e[0x0]['start']['nodeAfter'],_0x4608f7=_0x55a63d['commandParams'][0x0];this['editor']['model']['change'](_0x516d2f=>{for(const _0x5710fe of _0x40573a)void 0x0!==_0x4608f7[_0x5710fe]?_0x516d2f['setAttribute'](_0x5710fe,_0x4608f7[_0x5710fe],_0x1ef088):_0x516d2f['removeAttribute'](_0x5710fe,_0x1ef088);});}['handleSuggestionDescription'](_0x1a1e97){if(_0x1a1e97['data'])switch(_0x1a1e97['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x1ebdc9,_0x15dbc6){const _0x4ca3fc=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4d1247 of _0x4ca3fc['getSuggestions']({'skipNotAttached':!0x0})){const _0xe966f6=_0x4d1247['getContainedElement']();if(_0x4d1247['subType']===_0x15dbc6&&_0xe966f6===_0x1ebdc9)return _0x4d1247;}return null;}['_registerTablePropertiesAttributes'](){const _0x2a6716=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18d5f2=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x1f9ba3 of _0x18d5f2){const _0x4adc79=_0x1f9ba3['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x2a6716['descriptionFactory']['registerAttributeLabel'](_0x1f9ba3,o(this['editor']['locale'],'FORMAT_'+_0x4adc79));}}}class Ft extends _0x2051ed{['afterInit'](){const _0x46f353=this['editor'];if(!_0x46f353['plugins']['has']('LineHeight'))return;const _0x4aa0ef=_0x46f353['plugins']['get']('TrackChangesEditing'),_0x383ad9=_0x46f353['locale'];_0x4aa0ef['enableDefaultAttributesIntegration']('lineHeight'),_0x4aa0ef['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x383ad9,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x2051ed{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0x5a126c,_0x25e1fa,_0x54d0d7,R,T,E,U,V,F,G,J,L,q,z,K,Q,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,mt,kt,lt,W,Ft,H,dt,pt,wt,bt,yt,jt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Ut,Bt,Ot,Mt,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x36a380){super(_0x36a380),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x57a9da,_0x3c17ad,_0x5999d6,_0x10f7db)=>{this['_model']['change'](()=>{for(const _0x16bd55 of[..._0x10f7db,..._0x5999d6])this['_model']['markers']['has'](_0x16bd55)&&_0x36a380['editing']['reconvertMarker'](_0x16bd55);});}),this['descriptionFactory']=new M(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x36a380['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x36a380['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x36a380['config']['get']('trackChanges.trackFormatChanges'),_0x36a380['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x36a380['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x36a380,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3383ce=this['editor'];_0x3383ce['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x490fc6,{writer:_0x2e0bc4})=>{let _0xd5a5b='suggestion:'+_0x490fc6['getAttribute']('suggestion-type')+':'+_0x490fc6['getAttribute']('id');return _0x490fc6['getAttribute']('marker-count')&&(_0xd5a5b+=':'+_0x490fc6['getAttribute']('marker-count')),_0x2e0bc4['createElement']('$marker',{'data-name':_0xd5a5b});}}),_0x3383ce['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3383ce['model']['document']['registerPostFixer'](_0x4cf3d0=>{let _0x23fd38=!0x1;const _0x124953=Array['from'](_0x3383ce['model']['document']['differ']['getChangedMarkers']()),_0xdcc3e7=new Set();for(const {name:_0x78e17b,data:_0x1a50ce}of _0x124953){const {group:_0x1a4a77,type:_0x35f905,subType:_0x4f5a64,id:_0x14fa9f}=this['_splitMarkerName'](_0x78e17b);if('suggestion'!==_0x1a4a77)continue;const _0x18b877=_0x4f5a64?'suggestion:'+_0x35f905+':'+_0x4f5a64+':'+_0x14fa9f:'suggestion:'+_0x35f905+':'+_0x14fa9f,_0x37035c=_0x3383ce['model']['markers']['getMarkersGroup'](_0x18b877),_0x2ccdf0=_0x3383ce['model']['markers']['get'](_0x78e17b),_0x1adbbc=this['_suggestions']['get'](_0x14fa9f);if(null!=_0x1a50ce['newRange']){'formatInline'==_0x35f905&&(_0x23fd38=_0x23fd38||Wt(_0x1a50ce['newRange'],_0x78e17b,_0x4cf3d0,_0x3383ce['model']['schema']));const _0x2cbe2b='attribute'==_0x35f905&&this['_isBlockAttribute'](_0x4f5a64['split']('|')[0x0]),_0x330943='attribute'==_0x35f905&&this['_isInlineAttribute'](_0x4f5a64['split']('|')[0x0]);if(_0x1a50ce['newRange']['isCollapsed']||'$graveyard'==_0x1a50ce['newRange']['root']['rootName']||'formatBlock'==_0x35f905&&!Qt(_0x1a50ce['newRange'])||_0x2cbe2b&&!Qt(_0x1a50ce['newRange'])||_0x330943&&Xt(_0x1a50ce['newRange'])||'deletion'==_0x35f905&&Xt(_0x1a50ce['newRange'])||_0x2ccdf0&&Yt(_0x2ccdf0,_0x37035c))_0x4cf3d0['removeMarker'](_0x78e17b),_0x23fd38=!0x0;else{if(!_0x1adbbc||!_0x1adbbc['isInContent'])continue;if(_0x1a50ce['newRange']&&_0x1a50ce['oldRange']&&_0x1a50ce['newRange']['isEqual'](_0x1a50ce['oldRange']))continue;_0xdcc3e7['add'](_0x1adbbc);}}}return _0xdcc3e7['size']>0x0&&(_0x23fd38=!!this['_joinWithAdjacentSuggestions'](_0xdcc3e7)||_0x23fd38),_0x23fd38;}),_0x3383ce['model']['document']['registerPostFixer'](_0x58aa4b=>{let _0x44dfdb=!0x1;for(const _0x3bb486 of _0x3383ce['model']['document']['differ']['getChanges']())if('insert'==_0x3bb486['type'])for(const _0x529bf5 of this['_suggestions']['values']()){if(_0x529bf5['isMultiRange']||!_0x529bf5['isInContent'])continue;const _0x3574b0='formatBlock'==_0x529bf5['type'],_0x591477=this['_getAttributeKey'](_0x529bf5),_0x313798=_0x591477&&this['_isBlockAttribute'](_0x591477);if(!_0x3574b0&&!_0x313798)continue;const _0x1db240=_0x529bf5['getFirstRange']();if(_0x1db240['start']['parent']!=_0x1db240['end']['parent']&&!_0x1db240['end']['isAtEnd']){const _0x2508a3=_0x3383ce['model']['createPositionAt'](_0x1db240['start']['nodeAfter'],'end'),_0x57fa28=_0x3383ce['model']['createRange'](_0x1db240['start'],_0x2508a3);_0x58aa4b['updateMarker'](_0x529bf5['getFirstMarker'](),{'range':_0x57fa28}),_0x44dfdb=!0x0;}}return _0x44dfdb;}),_0x3383ce['model']['document']['registerPostFixer'](_0x16c51c=>this['_processAttributeChanges'](_0x16c51c)),_0x3383ce['model']['document']['registerPostFixer'](_0x2b35b0=>!_0x2b35b0['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2b35b0)),_0x3383ce['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3383ce['model']['document']['on']('change:data',(_0x33692a,_0x5d0664)=>{if(!_0x5d0664['isLocal']||_0x5d0664['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x24cd26=_0x3383ce['model']['document']['differ']['getChanges']();if(0x0==_0x24cd26['length'])return;const _0xaa850b=[],_0x10907c=_0x24cd26['filter'](_0x1d7cdb=>'attribute'==_0x1d7cdb['type']),_0x288222=_0x24cd26['filter'](_0x206c7e=>'insert'==_0x206c7e['type']&&'$text'!=_0x206c7e['name']);for(const _0x31f50e of _0x10907c)this['_isRegisteredAttribute'](_0x31f50e['attributeKey'])&&_0xaa850b['push']({'key':_0x31f50e['attributeKey'],'newValue':_0x31f50e['attributeNewValue'],'oldValue':_0x31f50e['attributeOldValue'],'range':Zt(_0x31f50e['range'],_0x3383ce['model'])});for(const _0x2cc0d6 of _0x288222){if('rename'!=_0x2cc0d6['action']&&'refresh'!=_0x2cc0d6['action'])continue;const _0xc010c4=tn(_0x2cc0d6['position']['nodeAfter'],_0x3383ce['model']),_0x284543=_0x2cc0d6['before'];'rename'==_0x2cc0d6['action']&&_0xaa850b['push']({'key':m,'newValue':_0x2cc0d6['name'],'oldValue':_0x284543['name'],'range':_0xc010c4});for(const [_0x3dde42,_0xd76204]of _0x284543['attributes']){if(!this['_isRegisteredAttribute'](_0x3dde42))continue;const _0x45a1dd=_0x2cc0d6['attributes']['get'](_0x3dde42);_0xd76204!==_0x45a1dd&&_0xaa850b['push']({'key':_0x3dde42,'newValue':_0x45a1dd,'oldValue':_0xd76204,'range':_0xc010c4});}for(const [_0x3ba7a7,_0x382f01]of _0x2cc0d6['attributes'])this['_isRegisteredAttribute'](_0x3ba7a7)&&(_0x284543['attributes']['has'](_0x3ba7a7)||_0xaa850b['push']({'key':_0x3ba7a7,'newValue':_0x382f01,'oldValue':null,'range':_0xc010c4}));}0x0!=_0xaa850b['length']&&_0x3383ce['model']['enqueueChange'](_0x5d0664,_0x3a7c85=>{const _0x3ea341=_0x2280a6();for(const {range:_0x407b79,key:_0x48a8ec,oldValue:_0x4201be,newValue:_0x79bb31}of _0xaa850b)this['markAttributeChange'](_0x407b79,_0x48a8ec,_0x4201be,_0x79bb31,{'groupId':_0x3ea341});this['_reduceExistingSuggestions'](_0x3a7c85,_0xaa850b);});},{'priority':'lowest'}),_0x3383ce['model']['markers']['on']('update:suggestion',(_0x93fb41,_0x440062,_0x28e8ff)=>{if(null==_0x28e8ff){const {id:_0x5d1aea}=this['_splitMarkerName'](_0x440062['name']),_0x502ff1=this['_suggestions']['get'](_0x5d1aea);_0x502ff1&&_0x502ff1['addMarkerName'](_0x440062['name']);}}),_0x3383ce['model']['document']['on']('change:data',()=>{const _0x132401=Array['from'](_0x3383ce['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1274c1=>'suggestion'===this['_splitMarkerName'](_0x1274c1['name'])['group']);if(0x0===_0x132401['length'])return;_0x132401['sort']((_0x2ec56b,_0x2a322c)=>{const _0x13845b=_0x2ec56b['data']['oldRange'],_0x405587=_0x2a322c['data']['oldRange'];return null===_0x13845b&&null===_0x405587?0x0:null===_0x13845b&&null!==_0x405587?-0x1:null!==_0x13845b&&null===_0x405587?0x1:_0x13845b['start']['isBefore'](_0x405587['start'])?-0x1:0x1;});const _0xd6ee3d=new Set(),_0x13f148=new Set();for(const {name:_0x2f1b68,data:_0x327e17}of _0x132401){const {id:_0x30dffd}=this['_splitMarkerName'](_0x2f1b68);if(null===_0x327e17['oldRange']){const _0x7e5042=this['_handleNewSuggestionMarker'](_0x2f1b68);_0x13f148['add'](_0x7e5042);}else{const _0xc6318a=this['_suggestions']['get'](_0x30dffd);null!==_0x327e17['newRange']||_0xc6318a['isInContent']?(_0xd6ee3d['add'](_0xc6318a['head']),_0x13f148['add'](_0xc6318a)):this['_removeSuggestion'](_0xc6318a);}}_0x13f148['size']>0x0&&this['_refreshSuggestionsChain'](_0x13f148);for(const _0x491ce0 of _0xd6ee3d)this['fire']('suggestionChanged',_0x491ce0);}),_0x3383ce['model']['on']('applyOperation',(_0x3dc548,_0x3aebdb)=>{const _0xda2725=_0x3aebdb[0x0];if(!this['_suggestions']['size'])return;if(!_0xda2725['isDocumentOperation'])return;if(_0xda2725['batch']['isUndo']||!_0xda2725['batch']['isLocal'])return;let _0x4b62c0,_0xa9301c;switch(_0xda2725['type']){case'insert':_0x4b62c0=_0x3383ce['model']['createPositionAt'](_0xda2725['position']),_0xa9301c=_0x4b62c0['getShiftedBy'](_0xda2725['howMany']);break;case'split':_0x4b62c0=_0x3383ce['model']['createPositionAt'](_0xda2725['splitPosition']),_0xa9301c=_0x3383ce['model']['createPositionAt'](_0xda2725['moveTargetPosition']);break;case'move':_0x4b62c0=_0x3383ce['model']['createPositionAt'](_0xda2725['targetPosition']),_0xa9301c=_0x4b62c0['getShiftedBy'](_0xda2725['howMany']);break;default:return;}const _0x148342=_0x3383ce['model']['createRange'](_0x4b62c0,_0xa9301c);_0x3383ce['model']['change'](()=>{for(const {suggestion:_0x28b215,meta:_0x4729d0}of this['_findSuggestions'](_0x148342)){if(_0x28b215['isMultiRange'])continue;if('formatInline'==_0x28b215['type'])continue;const _0x1ff58f=this['_getAttributeKey'](_0x28b215);if(_0x1ff58f&&this['_isBlockAttribute'](_0x1ff58f)&&'split'!=_0xda2725['type'])continue;const _0x1e0ce7=_0x28b215['data']&&_0x28b215['data']['multipleBlocks'];('formatBlock'!=_0x28b215['type']||'split'==_0xda2725['type']&&!_0x1e0ce7)&&(_0x4729d0['containsRangeInObject']||'insertion'==_0x28b215['type']&&_0x4729d0['isOwn']||_0x28b215['getFirstRange']()['containsRange'](_0x148342)&&this['_breakSuggestionMarker'](_0x28b215,_0x4b62c0,_0xa9301c));}});},{'priority':'lowest'}),_0x3383ce['model']['on']('deleteContent',(_0x2335f9,_0x37f0db)=>{const _0x870644=_0x37f0db[0x0],_0x1cac7f=_0x37f0db[0x1];if(_0x1cac7f&&_0x1cac7f['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x870644['isCollapsed'])return;const _0x3a49b0=_0x3383ce['model']['schema'],{start:_0x19622a,end:_0x482b7b}=_0x870644['getFirstRange'](),_0x7682e4=_0x19622a['nodeAfter']&&_0x3a49b0['isLimit'](_0x19622a['nodeAfter'])?null:_0x3a49b0['getNearestSelectionRange'](_0x19622a,'forward'),_0x3a0073=_0x482b7b['nodeBefore']&&_0x3a49b0['isLimit'](_0x482b7b['nodeBefore'])?null:_0x3a49b0['getNearestSelectionRange'](_0x482b7b,'backward'),_0x1659cd=_0x3383ce['model']['createRange'](_0x7682e4?_0x7682e4['start']:_0x19622a,_0x3a0073?_0x3a0073['end']:_0x482b7b);_0x3383ce['model']['change'](_0x1350b2=>{this['markDeletion'](_0x1659cd);const _0x8d088c=_0x3383ce['model']['schema']['getNearestSelectionRange'](_0x1659cd['start']);_0x870644['is']('documentSelection')?_0x1350b2['setSelection'](_0x8d088c):_0x870644['setTo'](_0x8d088c);}),_0x2335f9['stop']();},{'priority':_0x179c84['normal']+0xa}),_0x3383ce['model']['on']('insertContent',(_0x252b23,_0x3380ac)=>{const _0x5bb126=_0x3380ac[_0x3380ac['length']-0x1];_0x5bb126&&_0x5bb126['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3383ce['model']['change'](()=>{let _0x28c218=_0x3383ce['model']['insertContent'](_0x3380ac[0x0],_0x3380ac[0x1],_0x3380ac[0x2],{'forceDefaultExecution':!0x0});if(!_0x28c218)return;_0x252b23['return']=_0x28c218['clone']();const _0x8ee953=_0x28c218['end']['nodeBefore'],_0x4a018f=_0x3383ce['model']['schema'];_0x8ee953&&_0x4a018f['isBlock'](_0x8ee953)&&!_0x4a018f['isObject'](_0x8ee953)&&(_0x28c218=_0x3383ce['model']['createRange'](_0x28c218['start'],_0x3383ce['model']['createPositionAt'](_0x8ee953,'end'))),this['markInsertion'](_0x28c218);}),_0x252b23['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2a097c=new v(_0x3383ce,this['_suggestions']);_0x3383ce['commands']['add']('acceptSuggestion',_0x2a097c),this['enableCommand']('acceptSuggestion');const _0x3db9cf=new D(_0x3383ce,this['_suggestions']);_0x3383ce['commands']['add']('discardSuggestion',_0x3db9cf),this['enableCommand']('discardSuggestion'),_0x3383ce['commands']['add']('acceptAllSuggestions',new B(_0x3383ce,_0x2a097c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3383ce['commands']['add']('discardAllSuggestions',new B(_0x3383ce,_0x3db9cf,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3383ce['commands']['add']('acceptSelectedSuggestions',new O(_0x3383ce,_0x2a097c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3383ce['commands']['add']('discardSelectedSuggestions',new O(_0x3383ce,_0x3db9cf,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1cdbbf=_0x3383ce['plugins']['get']('CommentsRepository');this['listenTo'](_0x1cdbbf,'addComment',(_0x372f1b,{threadId:_0x25d81a})=>{const _0x2d66d3=this['_suggestions']['get'](_0x25d81a);_0x2d66d3&&_0x2d66d3['commentThread']&&0x1===_0x2d66d3['commentThread']['length']&&this['_updateSuggestionData'](_0x25d81a,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1cdbbf,'removeComment',(_0x4235c5,{threadId:_0x2f4f36})=>{const _0x3f5729=this['_suggestions']['get'](_0x2f4f36);_0x3f5729&&_0x3f5729['commentThread']&&!_0x3f5729['commentThread']['length']&&this['_updateSuggestionData'](_0x2f4f36,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1124e1){const _0x976b2a=_0x5049c4([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x57dbc2=0x3d8d0df,_0x493809=0x3dfa8d7^_0x57dbc2,_0x20edc=window[_0x5049c4([0x44,0x61,0x74,0x65])][_0x5049c4([0x6e,0x6f,0x77])](),_0x1f80bf=_0x1124e1[_0x5049c4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x322e63=new window[(_0x5049c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a73a5=>{_0x1f80bf[_0x5049c4([0x6f,0x6e,0x63,0x65])](_0x5049c4([0x72,0x65,0x61,0x64,0x79]),_0x2a73a5);}),_0x296542={[_0x5049c4([0x6b,0x74,0x79])]:_0x5049c4([0x45,0x43]),[_0x5049c4([0x75,0x73,0x65])]:_0x5049c4([0x73,0x69,0x67]),[_0x5049c4([0x63,0x72,0x76])]:_0x5049c4([0x50,0x2d,0x32,0x35,0x36]),[_0x5049c4([0x78])]:_0x5049c4([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]),[_0x5049c4([0x79])]:_0x5049c4([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]),[_0x5049c4([0x61,0x6c,0x67])]:_0x5049c4([0x45,0x53,0x32,0x35,0x36])},_0x28d4ff=_0x1f80bf[_0x5049c4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5049c4([0x67,0x65,0x74])](_0x5049c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5bb56e(){let _0x1784a4,_0x55cd60=null,_0x5d218c=null;try{if(_0x28d4ff==_0x5049c4([0x47,0x50,0x4c]))return _0x5049c4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1784a4=_0x1aadd7(),!_0x1784a4)return _0x5049c4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1784a4[_0x5049c4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5d218c=_0x1625e8(_0x1784a4[_0x5049c4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1784a4[_0x5049c4([0x6a,0x74,0x69])])),await _0xf42e73()?_0x4fb16d()?_0x365375()?_0x5049c4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x113c69()?(_0x1784a4[_0x5049c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5049c4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x55cd60=_0x56af87(_0x5049c4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1784a4[_0x5049c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5049c4([0x74,0x72,0x69,0x61,0x6c])&&(_0x55cd60=_0x56af87(_0x5049c4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x33ae5e()):_0x5049c4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5049c4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5049c4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5049c4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x365375(){const _0x21ca3d=[_0x5049c4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5049c4([0x74,0x72,0x69,0x61,0x6c])][_0x5049c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1784a4[_0x5049c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x20edc/0x3e8:0xe10*_0x493809;return _0x1784a4[_0x5049c4([0x65,0x78,0x70])]<_0x21ca3d;}function _0x4fb16d(){const _0x3bd1b7=_0x1784a4[_0x5049c4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3bd1b7)return!0x1;if(_0x3bd1b7[_0x5049c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5049c4([0x2a])))return!0x0;if(_0x3bd1b7[_0x5049c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5049c4([0x54,0x43])))return!0x0;if(_0x3bd1b7[_0x5049c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5049c4([0x52,0x54,0x43]))){if(_0xe78e7b())return!0x0;if(_0x19e93d()||_0x2369b7())return!0x0;}return!0x1;}function _0x113c69(){const _0x3245fe=_0x1784a4[_0x5049c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3245fe||0x0==_0x3245fe[_0x5049c4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2fa67a}=new URL(window[_0x5049c4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3245fe[_0x5049c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fa67a))return!0x0;const _0x1b99f4=_0x2fa67a[_0x5049c4([0x73,0x70,0x6c,0x69,0x74])](_0x5049c4([0x2e]));return _0x3245fe[_0x5049c4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xc2be1=>_0xc2be1[_0x5049c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5049c4([0x2a])))[_0x5049c4([0x6d,0x61,0x70])](_0x59b8fb=>_0x59b8fb[_0x5049c4([0x73,0x70,0x6c,0x69,0x74])](_0x5049c4([0x2e])))[_0x5049c4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2f9015=>_0x2f9015[_0x5049c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1b99f4[_0x5049c4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5049c4([0x6d,0x61,0x70])](_0x19d757=>Array(_0x1b99f4[_0x5049c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x19d757[_0x5049c4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5049c4([0x66,0x69,0x6c,0x6c])](_0x19d757[0x0]===_0x5049c4([0x2a])?_0x5049c4([0x2a]):'')[_0x5049c4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x19d757))[_0x5049c4([0x73,0x6f,0x6d,0x65])](_0x1041ed=>_0x1b99f4[_0x5049c4([0x65,0x76,0x65,0x72,0x79])]((_0x488017,_0xa813af)=>_0x1041ed[_0xa813af]===_0x488017||_0x1041ed[_0xa813af]===_0x5049c4([0x2a])));}function _0x33ae5e(){return _0x55cd60&&_0x5d218c?new window[(_0x5049c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x233444,_0x472898)=>{_0x55cd60[_0x5049c4([0x74,0x68,0x65,0x6e])](_0x233444,_0x472898),_0x5d218c[_0x5049c4([0x74,0x68,0x65,0x6e])](_0x2a0056=>{_0x2a0056!=_0x5049c4([0x56,0x61,0x6c,0x69,0x64])&&_0x233444(_0x2a0056);},_0x472898);}):_0x55cd60||_0x5d218c||_0x5049c4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1625e8(_0x121299,_0x3b4f16){return new window[(_0x5049c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53870e=>{if(_0x1d0300())return _0x53870e(_0x5049c4([0x56,0x61,0x6c,0x69,0x64]));_0x150a9b(),_0x1f80bf[_0x5049c4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5049c4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x59be7c=!0x1;const _0x398524=_0x2280a6();function _0xb42116(_0x6479df){return!!_0x6479df&&(typeof _0x6479df===_0x5049c4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x6479df===_0x5049c4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x6479df[_0x5049c4([0x74,0x68,0x65,0x6e])]===_0x5049c4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x6479df[_0x5049c4([0x63,0x61,0x74,0x63,0x68])]===_0x5049c4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2d2611(_0x35e5cb){_0x5a86be(_0x35e5cb)[_0x5049c4([0x74,0x68,0x65,0x6e])](_0x768100=>{if(!_0x768100||_0x768100[_0x5049c4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5049c4([0x6f,0x6b]))return _0x5049c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x552877(_0x750959(_0x398524+_0x3b4f16))!=_0x768100[_0x5049c4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5049c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5049c4([0x56,0x61,0x6c,0x69,0x64]);})[_0x5049c4([0x74,0x68,0x65,0x6e])](_0x20147f=>(_0x1f685d(),_0x20147f),()=>{const _0x87f39b=_0x8c0b7b();return null==_0x87f39b?(_0x1f685d(),_0x5049c4([0x56,0x61,0x6c,0x69,0x64])):_0x5049c4(_0x20edc-_0x87f39b>(0x27d454df^_0x57dbc2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5049c4([0x74,0x68,0x65,0x6e])](_0x53870e)[_0x5049c4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x53870e(_0x5049c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x405105=0x3ee3e5f^_0x57dbc2;function _0x1f685d(){const _0x42acbb=_0x5049c4([0x6c,0x6c,0x63,0x74,0x2d])+_0x552877(_0x750959(_0x121299)),_0x11ecd4=_0x55223f(_0x552877(window[_0x5049c4([0x4d,0x61,0x74,0x68])][_0x5049c4([0x63,0x65,0x69,0x6c])](_0x20edc/_0x405105)));window[_0x5049c4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5049c4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x42acbb,_0x11ecd4);}function _0x8c0b7b(){const _0x53eca7=_0x5049c4([0x6c,0x6c,0x63,0x74,0x2d])+_0x552877(_0x750959(_0x121299)),_0x30b276=window[_0x5049c4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5049c4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53eca7);return _0x30b276?window[_0x5049c4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55223f(_0x30b276),0x10)*_0x405105:null;}function _0x5a86be(_0x3b9713){return new window[(_0x5049c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x129c17,_0x42f686)=>{_0x3b9713[_0x5049c4([0x74,0x68,0x65,0x6e])](_0x129c17,_0x42f686),window[_0x5049c4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x42f686,0x3d9041f^_0x57dbc2);});}}_0x1f80bf[_0x5049c4([0x6f,0x6e])](_0x5049c4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x22e4fc,_0x126be2)=>{if(_0x126be2[0x0]!=_0x121299)return _0x53870e(_0x5049c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x126be2[0x1]={..._0x126be2[0x1],[_0x5049c4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x398524};},{[_0x5049c4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5049c4([0x68,0x69,0x67,0x68])}),_0x1f80bf[_0x5049c4([0x6f,0x6e])](_0x5049c4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3755a5=>{_0xb42116(_0x3755a5[_0x5049c4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x59be7c=!0x0,_0x2d2611(_0x3755a5[_0x5049c4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5049c4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5049c4([0x6c,0x6f,0x77])}),_0x322e63[_0x5049c4([0x74,0x68,0x65,0x6e])](()=>{_0x59be7c||_0x53870e(_0x5049c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1d0300(){return _0x1f80bf[_0x5049c4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5049c4([0x76,0x69,0x65,0x77])][_0x5049c4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5049c4([0x61,0x75,0x74,0x6f]);}function _0x150a9b(){_0x1f80bf[_0x5049c4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5049c4([0x76,0x69,0x65,0x77])][_0x5049c4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5049c4([0x61,0x75,0x74,0x6f]);}}function _0x56af87(_0x3a8f2f){const _0xf5ca49=[new window[(_0x5049c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x187501=>setTimeout(_0x187501,0x3d1ee13^_0x57dbc2)),_0x322e63[_0x5049c4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5049c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fc386=>{let _0xaa634f=0x0;_0x1f80bf[_0x5049c4([0x6d,0x6f,0x64,0x65,0x6c])][_0x5049c4([0x6f,0x6e])](_0x5049c4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xa1e70d,_0x44bd74)=>{_0x44bd74[0x0][_0x5049c4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xaa634f++,_0xaa634f==(0x3d8d127^_0x57dbc2)&&(_0x3fc386(),_0xa1e70d[_0x5049c4([0x6f,0x66,0x66])]());});}))];return window[_0x5049c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5049c4([0x72,0x61,0x63,0x65])](_0xf5ca49)[_0x5049c4([0x74,0x68,0x65,0x6e])](()=>_0x3a8f2f);}async function _0x3cae0d(){await _0x322e63,_0x1f80bf[_0x5049c4([0x6d,0x6f,0x64,0x65,0x6c])][_0x5049c4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x36d7e7,_0x1f80bf[_0x5049c4([0x6d,0x6f,0x64,0x65,0x6c])][_0x5049c4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x36d7e7,_0x1f80bf[_0x5049c4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5049c4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xe78e7b(){return _0x1c4359(_0x5049c4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5190f8(_0x5049c4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5049c4([0x73,0x74,0x61,0x74,0x65])]==_0x5049c4([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x19e93d(){return _0x1c4359(_0x5049c4([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 _0x2369b7(){return _0x1c4359(_0x5049c4([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x429cc9(_0x1304b9){const _0x450c40=_0x448854();_0x1f80bf[_0x450c40]=_0x5049c4([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1304b9,_0x1304b9!=_0x5049c4([0x56,0x61,0x6c,0x69,0x64])&&_0x3cae0d();}function _0x448854(){const _0x5821c9=window[_0x5049c4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5049c4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5049c4([0x6e,0x6f,0x77])]())[_0x5049c4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5049c4([0x2e]),'');let _0x55d3ec=_0x5049c4([0x52]);for(let _0x26c616=0x0;_0x26c616<_0x5821c9[_0x5049c4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26c616+=0x2){let _0x517cee=window[_0x5049c4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5821c9[_0x5049c4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x26c616,_0x26c616+0x2));_0x517cee>=_0x976b2a[_0x5049c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x517cee-=_0x976b2a[_0x5049c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x55d3ec+=_0x976b2a[_0x517cee];}return _0x55d3ec;}function _0x1aadd7(){const _0x3106b3=_0x28d4ff[_0x5049c4([0x73,0x70,0x6c,0x69,0x74])](_0x5049c4([0x2e]));if(0x3!=_0x3106b3[_0x5049c4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4abd73(_0x3106b3[0x1]);function _0x4abd73(_0x1a90a1){const _0xbea0f6=_0x510252(_0x1a90a1);return _0xbea0f6&&_0x1619e6()?_0xbea0f6:null;function _0x1619e6(){const _0x2bf609=_0xbea0f6[_0x5049c4([0x6a,0x74,0x69])],_0x41f892=window[_0x5049c4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2bf609[_0x5049c4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2bf609[_0x5049c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x55d2b3={..._0xbea0f6,[_0x5049c4([0x6a,0x74,0x69])]:_0x2bf609[_0x5049c4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2bf609[_0x5049c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x55d2b3[_0x5049c4([0x76,0x63])],_0x750959(_0x55d2b3)==_0x41f892;}}}async function _0xf42e73(){let _0x3f627f=!0x0;try{const _0x55da97=_0x28d4ff[_0x5049c4([0x73,0x70,0x6c,0x69,0x74])](_0x5049c4([0x2e])),[_0x2a94a8,_0x1ecdfc,_0x40d745]=_0x55da97;return _0x19a0a5(_0x2a94a8),await _0x5375ce(_0x2a94a8,_0x1ecdfc,_0x40d745),_0x3f627f;}catch{return!0x1;}function _0x19a0a5(_0x381771){const _0x7e0fcc=_0x510252(_0x381771);_0x7e0fcc&&_0x7e0fcc[_0x5049c4([0x61,0x6c,0x67])]==_0x5049c4([0x45,0x53,0x32,0x35,0x36])||(_0x3f627f=!0x1);}async function _0x5375ce(_0x10ab03,_0x5401c0,_0x577cac){const _0x5ee334=window[_0x5049c4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5049c4([0x66,0x72,0x6f,0x6d])](_0x43fcd8(_0x577cac),_0x42f2ff=>_0x42f2ff[_0x5049c4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4ab054=new window[(_0x5049c4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5049c4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x10ab03+_0x5049c4([0x2e])+_0x5401c0),_0x313225=window[_0x5049c4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5049c4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x313225)return;const _0x1435fb=await _0x313225[_0x5049c4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5049c4([0x6a,0x77,0x6b]),_0x296542,{[_0x5049c4([0x6e,0x61,0x6d,0x65])]:_0x5049c4([0x45,0x43,0x44,0x53,0x41]),[_0x5049c4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5049c4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5049c4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x313225[_0x5049c4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5049c4([0x6e,0x61,0x6d,0x65])]:_0x5049c4([0x45,0x43,0x44,0x53,0x41]),[_0x5049c4([0x68,0x61,0x73,0x68])]:{[_0x5049c4([0x6e,0x61,0x6d,0x65])]:_0x5049c4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1435fb,_0x5ee334,_0x4ab054)||(_0x3f627f=!0x1);}}function _0x510252(_0x234e79){return _0x234e79[_0x5049c4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5049c4([0x65,0x79]))?JSON[_0x5049c4([0x70,0x61,0x72,0x73,0x65])](_0x43fcd8(_0x234e79)):null;}function _0x43fcd8(_0xf5b80b){return window[_0x5049c4([0x61,0x74,0x6f,0x62])](_0xf5b80b[_0x5049c4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5049c4([0x2b]))[_0x5049c4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5049c4([0x2f])));}function _0x750959(_0x5c9d2f){let _0x2260e1=0x1505;function _0x12d617(_0x145c68){for(let _0x5ca388=0x0;_0x5ca388<_0x145c68[_0x5049c4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ca388++){const _0x3c686c=_0x145c68[_0x5049c4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5ca388);_0x2260e1=(_0x2260e1<<0x5)+_0x2260e1+_0x3c686c,_0x2260e1&=_0x2260e1;}}function _0x7447bd(_0x4b585e){Array[_0x5049c4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4b585e)?_0x4b585e[_0x5049c4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x7447bd):_0x4b585e&&typeof _0x4b585e==_0x5049c4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5049c4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4b585e)[_0x5049c4([0x73,0x6f,0x72,0x74])]()[_0x5049c4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x40a414,_0x4f6ed])=>{_0x12d617(_0x40a414),_0x7447bd(_0x4f6ed);}):_0x12d617(window[_0x5049c4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4b585e));}return _0x7447bd(_0x5c9d2f),_0x2260e1>>>0x0;}function _0x552877(_0x1ca048){return _0x1ca048[_0x5049c4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5049c4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5049c4([0x30]));}function _0x55223f(_0x1ba2c6){return _0x1ba2c6[_0x5049c4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5049c4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5049c4([0x6a,0x6f,0x69,0x6e])]('');}function _0x1c4359(_0x6f5a41){return _0x1f80bf[_0x5049c4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5049c4([0x68,0x61,0x73])](_0x6f5a41);}function _0x5190f8(_0x48584f){return _0x1f80bf[_0x5049c4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5049c4([0x67,0x65,0x74])](_0x48584f);}function _0x36d7e7(){}function _0x5049c4(_0xee1f5a){return _0xee1f5a['map'](_0x4700dc=>String['fromCharCode'](_0x4700dc))['join']('');}_0x429cc9(await _0x5bb56e());}(this);}set['adapter'](_0x4e8dd1){if(this['_adapter'])throw new _0x7f7e05('track-changes-adapter-already-set',this);this['_adapter']=_0x4e8dd1;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x231d66=!0x1,toJSON:_0x5ac466=!0x1}={}){const _0x1ea9fa=[];for(const _0x57bcae of this['_suggestions']['values']())_0x231d66&&!_0x57bcae['isInContent']||_0x1ea9fa['push'](_0x57bcae);return _0x5ac466?_0x1ea9fa['map'](_0x167c37=>_0x167c37['toJSON']()):_0x1ea9fa;}['getSuggestion'](_0x503d21){const _0x2bbfb0=this['_suggestions']['get'](_0x503d21);if(!_0x2bbfb0)throw new _0x7f7e05('track-changes-suggestion-not-found',this);return _0x2bbfb0;}['hasSuggestion'](_0x8731d7){return this['_suggestions']['has'](_0x8731d7);}['addSuggestionData'](_0x4673ff){const {authorId:_0x33bc1c,id:_0xc2bd6,originalSuggestionId:_0x34c41d,attributes:_0x5dcfa3}=_0x4673ff,[_0x109840,_0x53c9e9]=_0x4673ff['type']['split'](':'),_0x5de46e=this['_suggestions']['get'](_0xc2bd6)||this['_createSuggestion'](_0x109840,_0x53c9e9,_0xc2bd6,_0x33bc1c,_0x5dcfa3,_0x34c41d);if(this['_addThreadToSuggestion'](_0x5de46e),this['_checkSuggestionCorrectness'](_0x5de46e,_0x109840,_0x53c9e9||null,_0x33bc1c),_0x5de46e['createdAt']=_0x4673ff['createdAt'],_0x5de46e['_isDataLoaded']=!0x0,_0x5dcfa3&&_0x5dcfa3['@external']){const _0x4d485a=_0x5dcfa3['@external'],_0x1ccbc1=this['_getExternalAuthor'](_0x4d485a['authorName']);_0x5de46e['authoredAt']=_0x4d485a['createdAt'],_0x5de46e['author']=_0x1ccbc1,_0x5de46e['isExternal']=!0x0;}else _0x5de46e['authoredAt']=_0x4673ff['createdAt'];switch(_0x4673ff['data']&&(_0x5de46e['data']=_0x4673ff['data']),_0x4673ff['attributes']&&(_0x5de46e['attributes']=_0x4673ff['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5de46e['_saved']=!0x0),this['_suggestionState']['get'](_0x5de46e)){case'notReady':this['_suggestionState']['set'](_0x5de46e,'dataReady');break;case'markerReady':_0x5de46e['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5de46e])),this['_refreshSuggestionsChain'](new Set([_0x5de46e])),this['_suggestionState']['set'](_0x5de46e,'ready'),this['fire']('suggestionLoaded',_0x5de46e)):this['_suggestionState']['set'](_0x5de46e,'removed');}return _0x5de46e;}['acceptSuggestion'](_0x2d9fef){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3d6ef6 of _0x2d9fef['getAllAdjacentSuggestions']())_0x3d6ef6['accept']();});});}['discardSuggestion'](_0x54629d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2f3111 of _0x54629d['getAllAdjacentSuggestions']())_0x2f3111['discard']();});});}['enableCommand'](_0x967040,_0x1c10ad){const _0x39f257=this['editor']['commands']['get'](_0x967040);if(!_0x39f257)throw new _0x7f7e05('track-changes-command-not-found',this,{'commandName':_0x967040});if(this['_enabledCommands']['has'](_0x39f257))throw new _0x7f7e05('track-changes-enable-command-twice',this,{'commandName':_0x967040});this['_enabledCommands']['add'](_0x39f257),_0x1c10ad&&_0x39f257['on']('execute',(_0x3eaa4f,_0x10e6d1)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x10e6d1['length']>0x0&&_0x10e6d1[_0x10e6d1['length']-0x1]&&_0x10e6d1[_0x10e6d1['length']-0x1]['forceDefaultExecution']?_0x10e6d1['pop']():(_0x3eaa4f['return']=_0x1c10ad((..._0x3941d5)=>_0x39f257['execute'](..._0x3941d5,{'forceDefaultExecution':!0x0}),..._0x10e6d1),_0x3eaa4f['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xb3e19c){let _0x2b94e3,_0xb063e7;const _0x918fd3=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2b94e3=_0xb3e19c();}catch(_0x3b383f){_0xb063e7=_0x3b383f;}return _0x918fd3||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xb063e7&&_0x7f7e05['rethrowUnexpectedError'](_0xb063e7,this),_0x2b94e3;}['markInsertion'](_0x6c115b,_0x3302b3=null,_0x1bd4f2={}){if(_0x6c115b['isCollapsed'])return null;const _0x24ff1b=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x1bd4f2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3a15a6,meta:_0x5157d1}of this['_findSuggestions'](_0x6c115b,'insertion'))if(_0x5157d1['isOwn']){if(!_0x5157d1['isNextTo']){if(_0x5157d1['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x3a15a6,_0x1bd4f2))continue;return _0x3a15a6;}if(sn(_0x3a15a6,_0x1bd4f2))return _0x3a15a6;this['_breakSuggestionMarker'](_0x3a15a6,_0x6c115b['start'],_0x6c115b['end']);break;}if(_0x3302b3==_0x3a15a6['subType']&&sn(_0x3a15a6,_0x1bd4f2)){const _0x171305=_0x3a15a6['getFirstRange']();return _0x171305['start']['isEqual'](_0x6c115b['end'])?this['_setSuggestionRange'](_0x3a15a6,this['_model']['createRange'](_0x6c115b['start'],_0x171305['end'])):this['_setSuggestionRange'](_0x3a15a6,this['_model']['createRange'](_0x171305['start'],_0x6c115b['end'])),_0x3a15a6;}}const _0x4446d8=_0x2280a6(),_0x7af977=_0x24ff1b['id'],_0x5268aa=_0x3302b3?'insertion:'+_0x3302b3:'insertion',_0x2c86f4=this['_setSuggestionData']({'id':_0x4446d8,'type':_0x5268aa,'createdAt':new Date(),'authorId':_0x7af977,'attributes':_0x1bd4f2});return this['_addSuggestionMarker'](_0x5268aa,_0x4446d8,_0x7af977,_0x6c115b),_0x2c86f4;}['markMultiRangeInsertion'](_0x12d92d,_0xf095a6='multi',_0x4d9e2d={}){const _0x55ebb4=this['editor']['plugins']['get']('Users')['me'],_0x201bd4=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xf095a6,'join');this['_trackingSessionId']&&(_0x4d9e2d['trackingSessionId']=this['_trackingSessionId']);for(const _0x13e827 of this['getSuggestions']())if(_0x13e827['author']['id']==_0x55ebb4['id']&&'insertion'==_0x13e827['type']&&_0x13e827['subType']==_0xf095a6&&sn(_0x13e827,_0x4d9e2d)&&(_0x201bd4(_0x13e827['getRanges'](),_0x12d92d)||_0x201bd4(_0x12d92d,_0x13e827['getRanges']()))){for(const _0x4e4639 of _0x12d92d)_0x13e827['addRange'](_0x4e4639);return _0x13e827;}for(const {suggestion:_0x381c23,meta:_0x14e509}of this['_findSuggestions'](_0x12d92d,'insertion')){if(!_0x14e509['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x14e509['containsRangeInObject'])continue;if(!sn(_0x381c23,_0x4d9e2d))continue;let _0x5c8dbf=!0x0;for(const _0x46eb2e of _0x381c23['getRanges']())for(const _0x5b4a0f of _0x12d92d)if(!_0x46eb2e['containsRange'](_0x5b4a0f)){_0x5c8dbf=!0x1;break;}if(_0x5c8dbf)return _0x381c23;}const _0x295435=_0x2280a6(),_0x20ee4e=_0x55ebb4['id'],_0x33d0af='insertion:'+_0xf095a6,_0x3f47ea=this['_setSuggestionData']({'id':_0x295435,'type':_0x33d0af,'createdAt':new Date(),'authorId':_0x20ee4e,'attributes':_0x4d9e2d});for(const _0x3a0b0e of _0x12d92d)this['_addSuggestionMarker'](_0x33d0af,_0x295435,_0x20ee4e,_0x3a0b0e,x['getMultiRangeId']());return _0x3f47ea;}['markInlineFormat'](_0x259df0,_0x32db1e,_0x57c34a=null,_0x37c530={}){if(_0x57c34a=_0x57c34a||Ht(_0x32db1e),_0x259df0['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x37c530['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3fbcd2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x57c34a,'accept');return this['forceDefaultExecution'](()=>_0x3fbcd2([_0x259df0],_0x32db1e,_0x37c530)),null;}const _0x3ccc59=this['editor']['plugins']['get']('Users')['me'],_0x3f6cb4=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x309055,meta:_0x513870}of this['_findSuggestions'](_0x259df0,'insertion'))_0x513870['isOwn']&&!_0x513870['isInsideObject']&&_0x3f6cb4['push'](..._0x309055['getRanges']());}const _0x4592f1=function(_0x5b30e3,_0x2f389b){const _0x5610d0=[];for(const _0x3eadaf of _0x2f389b){const _0x44638a=_0x5b30e3['getIntersection'](_0x3eadaf);_0x44638a&&_0x5610d0['push'](_0x44638a);}return _0x5610d0;}(_0x259df0,_0x3f6cb4),_0x6341f1=function(_0x13de2e,_0x1cab99){const _0x571ee2=[_0x13de2e];for(const _0x4d07df of _0x1cab99){let _0x3064f9=0x0;for(;_0x3064f9<_0x571ee2['length'];){const _0x5af76a=_0x571ee2[_0x3064f9]['getDifference'](_0x4d07df);_0x571ee2['splice'](_0x3064f9,0x1,..._0x5af76a),_0x3064f9+=_0x5af76a['length'];}}return _0x571ee2;}(_0x259df0,_0x3f6cb4);_0x4592f1['length']&&this['_model']['change'](()=>{for(const _0x5596c8 of _0x4592f1){const _0xb5fc3a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x57c34a,'accept');this['forceDefaultExecution'](()=>_0xb5fc3a([_0x5596c8],_0x32db1e,_0x37c530));}});for(const _0x2b60fe of _0x6341f1){let _0x31227d=null,_0x4cf8c4=_0x2b60fe['start'],_0x2cfa88=_0x2b60fe['end'];for(const {suggestion:_0x373637,meta:_0x2ac623}of this['_findSuggestions'](_0x2b60fe,'formatInline')){if(!_0x2ac623['isOwn'])continue;if(_0x373637['subType']!=_0x57c34a)continue;if(!sn(_0x373637,_0x37c530))continue;const _0x160551=_0x373637['getFirstRange']();if(_0x160551['containsRange'](_0x2b60fe,!0x0))return null;_0x4cf8c4=_0x4cf8c4['isBefore'](_0x160551['start'])?_0x4cf8c4:_0x160551['start'],_0x2cfa88=_0x2cfa88['isAfter'](_0x160551['end'])?_0x2cfa88:_0x160551['end'],_0x31227d?_0x160551['start']['isBefore'](_0x31227d['getFirstRange']()['start'])?(_0x31227d['removeMarkers'](),_0x31227d=_0x373637):_0x373637['removeMarkers']():_0x31227d=_0x373637;}const _0x588fce=this['_model']['createRange'](_0x4cf8c4,_0x2cfa88);if(_0x31227d)this['_setSuggestionRange'](_0x31227d,_0x588fce);else{const _0x18f1cb=_0x2280a6(),_0x423036=_0x3ccc59['id'];this['_setSuggestionData']({'id':_0x18f1cb,'type':'formatInline:'+_0x57c34a,'data':_0x32db1e,'createdAt':new Date(),'authorId':_0x423036,'attributes':_0x37c530}),this['_addSuggestionMarker']('formatInline:'+_0x57c34a,_0x18f1cb,_0x423036,_0x588fce);}}return null;}['markBlockFormat'](_0x6e2536,_0x2f9961,_0xcd505=[],_0x3e01f2=null,_0x258e3e={}){_0x2f9961['formatGroupId']||(_0x2f9961['formatGroupId']=_0x2f9961['commandName']),_0x2f9961['multipleBlocks']=_0x6e2536['is']('range'),_0x3e01f2=_0x3e01f2||Ht(_0x2f9961);const _0x2dd395=_0xcd505['map'](_0x490f8e=>tn(_0x490f8e,this['_model'])),_0x5db4dc=_0x6e2536['is']('range')?_0x6e2536:tn(_0x6e2536,this['_model']);if(this['_trackingSessionId']&&(_0x258e3e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2e9306=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3e01f2,'accept');return this['forceDefaultExecution'](()=>_0x2e9306([_0x5db4dc],_0x2f9961,_0x258e3e)),null;}_0x2dd395['push'](_0x5db4dc);let _0x36fefc=!0x0;for(const _0x5345f9 of _0x2dd395)if(!this['_rangeIsInLocalUserInsertion'](_0x5345f9)){_0x36fefc=!0x1;break;}if(_0x36fefc&&'always'!==this['_trackFormatChanges']){const _0x37a130=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3e01f2,'accept');return this['forceDefaultExecution'](()=>_0x37a130([_0x5db4dc],_0x2f9961,_0x258e3e)),null;}let _0x2372e1=null,_0x27c9db=_0x5db4dc['start'],_0x417ff2=_0x5db4dc['end'];for(const {suggestion:_0x5aa33c,meta:_0x4879e1}of this['_findSuggestions'](_0x5db4dc,'formatBlock')){if(!_0x4879e1['isOwn'])continue;if(_0x4879e1['isNextTo']||_0x4879e1['containsRangeInObject']||_0x4879e1['isInsideObject'])continue;if(_0x5aa33c['data']['formatGroupId']!=_0x2f9961['formatGroupId'])continue;if(!sn(_0x5aa33c,_0x258e3e))continue;const _0xfa29c1=_0x5aa33c['getFirstRange']();if(_0x5aa33c['subType']==_0x3e01f2){if(_0xfa29c1['containsRange'](_0x5db4dc,!0x0))return null;_0x27c9db=_0x27c9db['isBefore'](_0xfa29c1['start'])?_0x27c9db:_0xfa29c1['start'],_0x417ff2=_0x417ff2['isAfter'](_0xfa29c1['end'])?_0x417ff2:_0xfa29c1['end'],_0x2372e1?_0xfa29c1['start']['isBefore'](_0x2372e1['getFirstRange']()['start'])?(_0x2372e1['removeMarkers'](),_0x2372e1=_0x5aa33c):_0x5aa33c['removeMarkers']():_0x2372e1=_0x5aa33c;}else{const _0x4b4ec4=_0x5db4dc['getIntersection'](_0xfa29c1);this['_cutOutSuggestionMarker'](_0x5aa33c,_0x4b4ec4);}}const _0x388c8e=this['editor']['plugins']['get']('Users')['me'],_0x4c3206=_0x2280a6(),_0x5a0385=_0x388c8e['id'];if(_0x2372e1)return this['_setSuggestionRange'](_0x2372e1,this['_model']['createRange'](_0x27c9db,_0x417ff2)),_0x2372e1;{const _0x4cba7a=this['_setSuggestionData']({'id':_0x4c3206,'type':'formatBlock:'+_0x3e01f2,'data':_0x2f9961,'createdAt':new Date(),'authorId':_0x5a0385,'attributes':_0x258e3e});return this['_addSuggestionMarker']('formatBlock:'+_0x3e01f2,_0x4c3206,_0x5a0385,this['_model']['createRange'](_0x27c9db,_0x417ff2)),_0x4cba7a;}}['markMultiRangeBlockFormat'](_0x5a7dbb,_0x19bbc1,_0x29846a=[],_0x380064=null,_0x247b40={}){_0x19bbc1['formatGroupId']||(_0x19bbc1['formatGroupId']=_0x19bbc1['commandName']);const _0x27d199=_0x5a7dbb[0x0];_0x19bbc1['multipleBlocks']=_0x27d199['is']('range'),_0x380064=_0x380064||Ht(_0x19bbc1);const _0x259190=_0x29846a['map'](_0xdadc8c=>tn(_0xdadc8c,this['_model'])),_0x22194f=_0x27d199['is']('range')?_0x5a7dbb:_0x5a7dbb['map'](_0x3a6042=>tn(_0x3a6042,this['_model']));if(this['_trackingSessionId']&&(_0x247b40['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x362b1c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x380064,'accept');return this['forceDefaultExecution'](()=>_0x362b1c(_0x22194f,_0x19bbc1,_0x247b40)),null;}_0x259190['push'](..._0x22194f);let _0x5597b3=!0x0;for(const _0x5b2ad1 of _0x259190)if(!this['_rangeIsInLocalUserInsertion'](_0x5b2ad1)){_0x5597b3=!0x1;break;}if(_0x5597b3&&'always'!==this['_trackFormatChanges']){const _0x479360=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x380064,'accept');return this['forceDefaultExecution'](()=>_0x479360(_0x22194f,_0x19bbc1,_0x247b40)),null;}const _0xf73e9f=this['editor']['plugins']['get']('Users')['me'];for(const _0xbc3405 of this['getSuggestions']()){const _0xf903e4=_0xbc3405['data'];if(_0xbc3405['author']['id']!=_0xf73e9f['id'])continue;if('formatBlock'!=_0xbc3405['type']||_0xf903e4['formatGroupId']!=_0x19bbc1['formatGroupId'])continue;if(!sn(_0xbc3405,_0x247b40))continue;const _0x5ed7f7=_0xbc3405['subType']==_0x380064;for(let _0x25e51a=0x0;_0x25e51a<_0x22194f['length'];_0x25e51a++){const _0x4297c8=_0x22194f[_0x25e51a];for(const _0x414742 of _0xbc3405['getMarkers']()){const _0xda3c8f=_0x414742['getRange']();if(_0x4297c8['isEqual'](_0xda3c8f)){_0x5ed7f7?(_0x22194f['splice'](_0x25e51a,0x1),_0x25e51a--):_0xbc3405['removeMarker'](_0x414742['name']);break;}}}}if(0x0==_0x22194f['length'])return null;const _0x52c55d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x380064,'join');for(const _0x313749 of this['getSuggestions']()){const _0x5f1580=_0x313749['data'];if(_0x313749['author']['id']==_0xf73e9f['id']&&('formatBlock'==_0x313749['type']&&_0x5f1580['formatGroupId']==_0x19bbc1['formatGroupId']&&_0x313749['subType']==_0x380064&&sn(_0x313749,_0x247b40)&&(_0x52c55d(_0x313749['getRanges'](),_0x22194f)||_0x52c55d(_0x22194f,_0x313749['getRanges']())))){for(const _0x205330 of _0x22194f)_0x313749['addRange'](_0x205330);return _0x313749;}}const _0x4c5e50=_0x2280a6(),_0x814293=_0xf73e9f['id'],_0x11f022='formatBlock:'+_0x380064,_0xdc98eb=this['_setSuggestionData']({'id':_0x4c5e50,'type':_0x11f022,'data':_0x19bbc1,'createdAt':new Date(),'authorId':_0x814293,'attributes':_0x247b40});for(const _0x21ab07 of _0x22194f)this['_addSuggestionMarker'](_0x11f022,_0x4c5e50,_0x814293,_0x21ab07,x['getMultiRangeId']());return _0xdc98eb;}['markDeletion'](_0x586709,_0x385c3d=null,_0x25684d={}){if(_0x586709['isCollapsed'])return null;const _0x15abfa=this['editor']['plugins']['get']('Users')['me'],_0x244289=new _0x53fd14(_0x586709['start'],_0x586709['end']);this['_trackingSessionId']&&(_0x25684d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3a6de8,meta:_0x19333a}of this['_findSuggestions'](_0x244289,'insertion'))if(_0x19333a['isOwn']&&!_0x19333a['isNextTo']){if(_0x3a6de8['isMultiRange']){const _0x386fa8=_0x3a6de8['getRanges']()['filter'](_0x5c7b5d=>'$graveyard'!=_0x5c7b5d['root']['rootName']);_0x386fa8['every'](_0x483099=>_0x244289['containsRange'](_0x483099,!0x0))&&_0x3a6de8['discard']();if(_0x386fa8['some'](_0x30b16c=>_0x30b16c['containsRange'](_0x244289,!0x0))){const _0x11d681=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x385c3d,'accept');return this['forceDefaultExecution'](()=>_0x11d681([_0x244289],null,_0x25684d)),null;}}else{const _0x45853a=_0x244289['getIntersection'](_0x3a6de8['getFirstRange']());null!==_0x45853a&&_0x3a6de8['_onDiscard']([_0x45853a],null,_0x25684d);}}if(_0x244289['detach'](),_0x244289['isCollapsed']||'$graveyard'==_0x244289['root']['rootName'])return null;let _0xfc6353=null,_0x2a8bbf=_0x244289['start'],_0x5b87ff=_0x244289['end'];const _0x1732aa=this['_findSuggestions'](_0x244289,'deletion');for(const {suggestion:_0x3ecfd4,meta:_0x4dcdf0}of _0x1732aa){const _0x3f7b53=this['_model']['createRange'](_0x2a8bbf,_0x5b87ff);if(_0x4dcdf0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4dcdf0['containsRangeInObject']&&!_0x4dcdf0['isInsideObject'])){if(_0x3ecfd4['isMultiRange']){if(!sn(_0x3ecfd4,_0x25684d))continue;let _0x53acd3=!0x0;for(const _0x3abda8 of _0x3ecfd4['getRanges']()){if(_0x3abda8['containsRange'](_0x3f7b53,!0x0))return _0x3ecfd4;_0x3f7b53['containsRange'](_0x3abda8)||(_0x53acd3=!0x1);}_0x53acd3&&_0x3ecfd4['discard']();}else{const _0x46bbb3=_0x3ecfd4['getFirstRange']();if(_0x46bbb3['containsRange'](_0x3f7b53,!0x0))return _0x3ecfd4;if(!sn(_0x3ecfd4,_0x25684d)){_0x3f7b53['containsRange'](_0x46bbb3)?_0x3ecfd4['removeMarkers']():_0x46bbb3['containsPosition'](_0x2a8bbf)?_0x2a8bbf=_0x46bbb3['end']:_0x46bbb3['containsPosition'](_0x5b87ff)&&(_0x5b87ff=_0x46bbb3['start']);continue;}_0x2a8bbf=_0x2a8bbf['isBefore'](_0x46bbb3['start'])?_0x2a8bbf:_0x46bbb3['start'],_0x5b87ff=_0x5b87ff['isAfter'](_0x46bbb3['end'])?_0x5b87ff:_0x46bbb3['end'],_0x25684d=Object['assign']({},_0x3ecfd4['attributes']),_0xfc6353?_0x46bbb3['start']['isBefore'](_0xfc6353['getFirstRange']()['start'])?(_0xfc6353['removeMarkers'](),_0xfc6353=_0x3ecfd4):_0x3ecfd4['removeMarkers']():_0xfc6353=_0x3ecfd4;}}}if(_0xfc6353)return this['_setSuggestionRange'](_0xfc6353,this['_model']['createRange'](_0x2a8bbf,_0x5b87ff)),_0xfc6353;{const _0x4f9fe9=_0x2280a6(),_0x192fa7=this['_model']['createRange'](_0x2a8bbf,_0x5b87ff),_0x6dc1e6=_0x15abfa['id'],_0x5d6457=_0x385c3d?'deletion:'+_0x385c3d:'deletion',_0x2f0006=this['_setSuggestionData']({'id':_0x4f9fe9,'type':_0x5d6457,'createdAt':new Date(),'authorId':_0x6dc1e6,'attributes':_0x25684d});return this['_addSuggestionMarker'](_0x5d6457,_0x4f9fe9,_0x6dc1e6,_0x192fa7),_0x2f0006;}}['markMultiRangeDeletion'](_0x42b326,_0x28b0ff='multi',_0x36106a={}){const _0x5c6bdc=this['editor']['plugins']['get']('Users')['me'],_0xe475cc=_0x42b326['map'](_0x4657aa=>new _0x53fd14(_0x4657aa['start'],_0x4657aa['end'])),_0x55c780=new Set();this['_trackingSessionId']&&(_0x36106a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x846beb,meta:_0x1558b1}of this['_findSuggestions'](_0xe475cc,'insertion'))_0x1558b1['isOwn']&&!_0x1558b1['isNextTo']&&_0x55c780['add'](_0x846beb);for(const _0x23c357 of _0x55c780)if(_0x23c357['isMultiRange']){const _0x5d2c5c=_0x23c357['getRanges']();(!_0x23c357['attributes']||!_0x23c357['attributes']['skipNestingCheck'])&&(_0x5d2c5c['every'](_0x3731ea=>_0xe475cc['some'](_0x1e40b4=>_0x1e40b4['containsRange'](_0x3731ea,!0x0)))&&_0x23c357['discard']());if(_0xe475cc['every'](_0x3c648e=>_0x5d2c5c['some'](_0x5427a1=>_0x5427a1['containsRange'](_0x3c648e,!0x0)))){const _0xabad70=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x28b0ff,'accept');return this['forceDefaultExecution'](()=>_0xabad70(_0x42b326,null,_0x36106a)),null;}}else{const _0x24e5e6=_0x23c357['getFirstRange']();_0xe475cc['some'](_0x1f0d6f=>_0x1f0d6f['containsRange'](_0x24e5e6,!0x0))&&_0x23c357['discard']();if(_0xe475cc['every'](_0x4ee9f2=>_0x24e5e6['containsRange'](_0x4ee9f2,!0x0))){const _0x3d9ea4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x28b0ff,'accept');return this['forceDefaultExecution'](()=>_0x3d9ea4(_0xe475cc,null,_0x36106a)),null;}}const _0x295dc8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x28b0ff,'join');let _0x5c77ee=null;for(const _0x46ed7b of this['getSuggestions']())if(_0x46ed7b['author']['id']==_0x5c6bdc['id']&&_0x46ed7b['isInContent']&&'deletion'==_0x46ed7b['type']&&_0x46ed7b['subType']==_0x28b0ff&&sn(_0x46ed7b,_0x36106a)&&(_0x295dc8(_0x46ed7b['getRanges'](),_0xe475cc)||_0x295dc8(_0xe475cc,_0x46ed7b['getRanges']()))){if(_0x5c77ee){if(_0x46ed7b['commentThread']&&_0x46ed7b['commentThread']['length'])continue;for(const _0x568550 of _0x46ed7b['getRanges']())_0x5c77ee['isIntersectingWithRange'](_0x568550)||_0x5c77ee['addRange'](_0x568550);_0x46ed7b['removeMarkers']();}else{_0x5c77ee=_0x46ed7b;for(const _0x3c0a89 of _0xe475cc)_0x46ed7b['isIntersectingWithRange'](_0x3c0a89)||_0x46ed7b['addRange'](_0x3c0a89);}}if(_0x5c77ee)return _0x5c77ee;_0x55c780['clear']();for(const {suggestion:_0x2a54fa,meta:_0x2f5e13}of this['_findSuggestions'](_0xe475cc,'deletion'))_0x2f5e13['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2f5e13['containsRangeInObject']&&!_0x2f5e13['isInsideObject'])&&sn(_0x2a54fa,_0x36106a)&&_0x55c780['add'](_0x2a54fa);for(const _0x2d75bb of _0x55c780){const _0x3ee830=_0x2d75bb['getRanges']();if(!_0x36106a||!_0x36106a['skipNestingCheck']){if(_0xe475cc['every'](_0x50ee39=>_0x3ee830['some'](_0x8e5bac=>_0x8e5bac['containsRange'](_0x50ee39,!0x0))))return _0x2d75bb;}(!_0x2d75bb['attributes']||!_0x2d75bb['attributes']['skipNestingCheck'])&&(_0x3ee830['every'](_0x15b1f4=>_0xe475cc['some'](_0x285ec9=>_0x285ec9['containsRange'](_0x15b1f4,!0x0)))&&_0x2d75bb['discard']());}const _0x361175=_0x2280a6(),_0x1f40c5=_0x5c6bdc['id'],_0x107fbc='deletion:'+_0x28b0ff,_0x7acdd=this['_setSuggestionData']({'id':_0x361175,'type':_0x107fbc,'createdAt':new Date(),'authorId':_0x1f40c5,'attributes':_0x36106a});for(const _0x42a6ba of _0xe475cc)_0x42a6ba['detach'](),_0x42a6ba['isCollapsed']||'$graveyard'==_0x42a6ba['root']['rootName']||this['_addSuggestionMarker'](_0x107fbc,_0x361175,_0x1f40c5,_0x42a6ba,x['getMultiRangeId']());return _0x7acdd;}['markAttributeChange'](_0x51b11d,_0x119b7b,_0x4e165d,_0x5d2bda,_0x2554e0){if(_0x51b11d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4d501a=this['editor']['plugins']['get']('Users')['me']['id'],_0x418901=Array['from'](this['_suggestions']['values']())['filter'](_0x11686=>'attribute'==_0x11686['type']&&_0x11686['data']['key']==_0x119b7b&&_0x11686['isIntersectingWithRange'](_0x51b11d));if(this['_trackingSessionId']&&(_0x2554e0['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x5b66b9=this['_findSuggestions'](_0x51b11d,'insertion')['filter'](({meta:_0x55636a})=>_0x55636a['isOwn']&&!_0x55636a['isInsideObject']&&!_0x55636a['isNextTo'])['map'](({suggestion:_0x218504})=>_0x218504);_0x418901['unshift'](..._0x5b66b9);}const _0x4a3ec0=new Map([[_0x51b11d,_0x4e165d]]);for(const _0x185bb8 of _0x418901){const _0x3b2b8e='attribute'==_0x185bb8['type']?_0x185bb8['data']['oldValue']:void 0x0,_0x376d60=_0x185bb8['getFirstRange'](),_0x341d20=Array['from'](_0x4a3ec0['keys']())['find'](_0x456e1b=>_0x456e1b['isIntersecting'](_0x376d60));if(!_0x341d20)continue;const _0x534bba=_0x341d20['getDifference'](_0x376d60);this['_isBlockAttribute'](_0x119b7b)&&'insertion'==_0x185bb8['type']&&0x0!=_0x534bba['length']||(_0x4a3ec0['delete'](_0x341d20),_0x534bba['forEach'](_0x16ff50=>{_0x4a3ec0['set'](_0x16ff50,_0x4e165d);}),'insertion'!=_0x185bb8['type']&&_0x3b2b8e!=_0x5d2bda&&_0x4a3ec0['set'](_0x341d20['getIntersection'](_0x376d60),_0x3b2b8e));}const _0x365ed9=[];for(const [_0x44c269,_0x2fb11e]of _0x4a3ec0){const _0x48c8d8=_0x2280a6(),_0x3fcf01={'key':_0x119b7b,'oldValue':_0x2fb11e,'newValue':_0x5d2bda};_0x119b7b['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':_0x119b7b});const _0x46c339=('attribute:'+(_0x119b7b+'|'+Ht({'newValue':_0x5d2bda})))['substring'](0x0,0x3c),_0x3780dc=this['_setSuggestionData']({'id':_0x48c8d8,'type':_0x46c339,'data':_0x3fcf01,'createdAt':new Date(),'authorId':_0x4d501a,'attributes':_0x2554e0});_0x365ed9['push'](_0x3780dc),this['_addSuggestionMarker'](_0x46c339,_0x48c8d8,_0x4d501a,_0x44c269);}return _0x365ed9;}['enableDefaultAttributesIntegration'](_0x3f8ef9){this['enableCommand'](_0x3f8ef9,(_0x4cf0fd,..._0x8fb69d)=>{this['recordAttributeChanges'](()=>{_0x4cf0fd(..._0x8fb69d);});});}['registerBlockAttribute'](_0x5addd7){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0x5addd7);}['registerInlineAttribute'](_0x270bf6){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x270bf6);}['startTrackingSession'](_0x57ec64){return this['_trackingSessionId']=void 0x0!==_0x57ec64?_0x57ec64:_0x2280a6(),this['_trackingSessionId'];}['_getAttributeKey'](_0x54afe1){return'attribute'==_0x54afe1['type']?_0x54afe1['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x4c2b8a){if(0x0==_0x4c2b8a['length'])return;const _0x1b3896=this['editor'],_0x156317=_0x1b3896['plugins']['get'](_0x54d0d7),_0xf84eeb=[];_0x1b3896['model']['change'](_0x49ea9b=>{for(let _0x262dcd=0x0;_0x262dcd<_0x4c2b8a['length'];_0x262dcd++){const _0x27adc1=_0x4c2b8a[_0x262dcd];if(_0x27adc1['baseVersion']=_0x1b3896['model']['document']['version'],_0x27adc1['isDocumentOperation']=!0x0,_0x156317['isMarkedRemoveOperation'](_0x27adc1)){const _0x17a80d=Lt(_0x27adc1['newRange'],_0x1b3896['model']);_0xf84eeb['unshift'](_0x53fd14['fromRange'](_0x17a80d));}else switch(_0x27adc1['type']){case'rename':{const _0x2e37e3=_0x27adc1['oldName'],_0x2837ab=_0x27adc1['newName'];if(_0x2e37e3==_0x2837ab)break;_0x49ea9b['batch']['addOperation'](_0x27adc1),_0x1b3896['model']['applyOperation'](_0x27adc1);const _0x4cbe39='$elementName',_0x435ad4=_0x27adc1['position'],_0x392520=_0x1b3896['model']['createRange'](_0x435ad4,_0x1b3896['model']['createPositionAt'](_0x435ad4['nodeAfter'],'end'));this['markAttributeChange'](_0x392520,_0x4cbe39,_0x2e37e3,_0x2837ab,{'groupId':_0x2280a6()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x3fa825=_0x27adc1['oldValue'],_0x2d18fb=_0x27adc1['newValue'];if(_0x3fa825==_0x2d18fb)break;_0x49ea9b['batch']['addOperation'](_0x27adc1),_0x1b3896['model']['applyOperation'](_0x27adc1);const _0x35e17b=_0x27adc1['key'];if(!this['_isRegisteredAttribute'](_0x35e17b))break;const _0x2418b3=Lt(_0x27adc1['range'],_0x1b3896['model']);this['markAttributeChange'](_0x2418b3,_0x35e17b,_0x3fa825,_0x2d18fb,{'groupId':_0x2280a6()});break;}case'insert':{_0x49ea9b['batch']['addOperation'](_0x27adc1),_0x1b3896['model']['applyOperation'](_0x27adc1);if(_0x4c2b8a[_0x262dcd+0x1]&&'move'==_0x4c2b8a[_0x262dcd+0x1]['type'])break;const _0x4eb8c6=_0x27adc1['position'],_0x43b4ef=_0x27adc1['howMany'],_0x137e0e=Lt(_0x1b3896['model']['createRange'](_0x4eb8c6,_0x4eb8c6['getShiftedBy'](_0x43b4ef)),_0x1b3896['model']);this['markInsertion'](_0x137e0e);break;}case'split':{_0x49ea9b['batch']['addOperation'](_0x27adc1),_0x1b3896['model']['applyOperation'](_0x27adc1);const _0x7bb79b=_0x27adc1['splitPosition'],_0x34e31b=_0x27adc1['moveTargetPosition'];this['markInsertion'](_0x1b3896['model']['createRange'](_0x7bb79b,_0x34e31b));break;}case'move':case'remove':_0x49ea9b['batch']['addOperation'](_0x27adc1),_0x1b3896['model']['applyOperation'](_0x27adc1);}}for(const _0x36800e of _0xf84eeb)_0x36800e['detach'](),this['markDeletion'](_0x36800e);});}['_setSuggestionRange'](_0x5bb191,_0xf443c7){const _0x25f6c3=_0x5bb191['getFirstMarker']();this['_model']['change'](_0x3f11f7=>{_0x3f11f7['updateMarker'](_0x25f6c3,{'range':_0xf443c7});});}['_addThreadToSuggestion'](_0x636a80){const _0x13c3f4=_0x636a80['id'],_0x3482cd=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x13c3f4)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3482cd,'threadId':_0x13c3f4,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4387bd=this['_commentsRepository']['getCommentThread'](_0x13c3f4);_0x4387bd['unbind']('isRemovable'),_0x4387bd['isRemovable']=!0x1,_0x636a80['commentThread']=_0x4387bd;}['_checkSuggestionCorrectness'](_0x2986e3,_0x518788,_0x36a203,_0x532011){if(_0x2986e3['type']!=_0x518788||_0x2986e3['subType']!=_0x36a203||_0x2986e3['creator']['id']!=_0x532011)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x7f7e05('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x46fed5,_0x1fce49){const _0x1cceb3=_0x46fed5['getFirstRange']();if(_0x1fce49['isEqual'](_0x1cceb3))_0x46fed5['removeMarkers']();else{if(_0x1cceb3['containsRange'](_0x1fce49)){const _0x42c258=this['_model']['createPositionAt'](_0x1fce49['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x46fed5,this['_model']['createRange'](_0x1cceb3['start'],_0x42c258));const _0x1616be=_0x2280a6(),_0x26277c=_0x46fed5['creator']['id'],_0x704b1e=_0x46fed5['type']+':'+_0x46fed5['subType'];this['_setSuggestionData']({'id':_0x1616be,'type':_0x704b1e,'createdAt':new Date(),'authorId':_0x26277c,'data':_0x46fed5['data'],'attributes':_0x46fed5['attributes']});const _0x58b3d0=this['_model']['createPositionAt'](_0x1fce49['end']['parent'],'after'),_0x142477=this['_model']['createRange'](_0x58b3d0,_0x1cceb3['end']);this['_addSuggestionMarker'](_0x704b1e,_0x1616be,_0x26277c,_0x142477);}else{if(_0x1cceb3['containsPosition'](_0x1fce49['start'])){const _0x463d53=this['_model']['createPositionAt'](_0x1fce49['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x46fed5,this['_model']['createRange'](_0x1cceb3['start'],_0x463d53));}else{const _0x424f78=this['_model']['createPositionAt'](_0x1fce49['end']['parent'],'after');this['_setSuggestionRange'](_0x46fed5,this['_model']['createRange'](_0x424f78,_0x1cceb3['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4c46cc){for(const {suggestion:_0x1d72a4,meta:_0x5d9867}of this['_findSuggestions'](_0x4c46cc,'insertion')){if(!_0x5d9867['isOwn'])continue;const _0x2bce0c=_0x1d72a4['getRanges']();for(const _0x50d30f of _0x2bce0c)if(!_0x4c46cc['getDifference'](_0x50d30f)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x497d9a){return this['editor']['plugins']['get']('Users')['getUser'](_0x497d9a);}['_getExternalAuthor'](_0x2b1b81){const _0x5a719a=this['editor']['plugins']['get']('Users'),_0x4b0ab5=_0x107885('external:'+_0x2b1b81),_0x5f5ad2=_0x5a719a['getUser'](_0x4b0ab5);return _0x5f5ad2||_0x5a719a['addUser']({'id':_0x4b0ab5,'name':_0x2b1b81});}['_createSuggestion'](_0x2e5d84,_0x1d00ed,_0x441ab8,_0x36c5a4,_0x4e6ca2,_0x5a91ec){const _0x734826=this['_getAuthorFromId'](_0x36c5a4);if(!_0x734826)throw new _0x7f7e05('track-changes-user-not-found',this,{'authorId':_0x36c5a4,'suggestionId':_0x441ab8});const _0x504186=this['_suggestionFactory']['buildSuggestion'](_0x2e5d84,_0x1d00ed,_0x441ab8,_0x734826,_0x4e6ca2,_0x161b96=>{this['_updateSuggestionData'](_0x441ab8,{'attributes':_0x161b96});const _0x15bd46=this['getSuggestion'](_0x441ab8);this['_joinWithAdjacentSuggestions'](new Set([_0x15bd46])),this['_refreshSuggestionsChain'](new Set([_0x15bd46]));},_0x5a91ec);return this['listenTo'](_0x504186,'accept',()=>{this['_updateSuggestionData'](_0x441ab8,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x504186,'discard',()=>{this['_updateSuggestionData'](_0x441ab8,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x441ab8,_0x504186),this['_suggestionState']['set'](_0x504186,'notReady'),_0x504186;}['_splitMarkerName'](_0x12f63e){return Gt(_0x12f63e);}['_breakSuggestionMarker'](_0x372465,_0x3e6c82,_0x41ac04){const _0x360e59=_0x372465['getFirstRange'](),_0x4e912e=_0x360e59['start'],_0x21a1e3=_0x360e59['end'];this['_setSuggestionRange'](_0x372465,this['_model']['createRange'](_0x4e912e,_0x3e6c82));const _0x983ed7=_0x2280a6(),_0x343627=_0x372465['creator']['id'],_0x3f816f=_0x372465['type']+(_0x372465['subType']?':'+_0x372465['subType']:'');this['_setSuggestionData']({'id':_0x983ed7,'type':_0x3f816f,'createdAt':new Date(),'authorId':_0x343627,'originalSuggestionId':_0x372465['_originalSuggestionId']||_0x372465['id'],'attributes':_0x372465['attributes'],'data':_0x372465['data']});const _0x3462c9=this['_getAttributeKey'](_0x372465);('formatBlock'==_0x372465['type']||_0x3462c9&&this['_isBlockAttribute'](_0x3462c9))&&(_0x41ac04=this['_model']['createPositionBefore'](_0x41ac04['parent'])),this['_addSuggestionMarker'](_0x3f816f,_0x983ed7,_0x343627,this['_model']['createRange'](_0x41ac04,_0x21a1e3));}['_findSuggestions'](_0x34e081,_0x3d1219=null){const _0x1decbf=[],_0x2b827d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x34e081)||(_0x34e081=[_0x34e081]);for(const _0x504873 of this['getSuggestions']()){if(!_0x504873['isInContent'])continue;if(_0x3d1219&&_0x504873['type']!=_0x3d1219)continue;let _0x7d4db5=!0x1;for(const _0x4753a2 of _0x504873['getRanges']()){for(const _0x40372 of _0x34e081){const _0x54b127=_0x40372['start']['isEqual'](_0x4753a2['end'])||_0x40372['end']['isEqual'](_0x4753a2['start']);if(_0x54b127||_0x40372['getIntersection'](_0x4753a2)){const _0x3d81f0=_0x40372['containsRange'](_0x4753a2)&&zt(this['_model']['schema'],_0x4753a2['start'],_0x40372),_0x470113=_0x4753a2['containsRange'](_0x40372)&&zt(this['_model']['schema'],_0x40372['start'],_0x4753a2);_0x1decbf['push']({'suggestion':_0x504873,'meta':{'isOwn':_0x2b827d==_0x504873['author'],'isNextTo':_0x54b127,'isInsideObject':_0x3d81f0,'containsRangeInObject':_0x470113}}),_0x7d4db5=!0x0;break;}}if(_0x7d4db5)break;}}return _0x1decbf;}['_addSuggestionMarker'](_0x31b0a7,_0x45f875,_0x9e58a0,_0x3d7231,_0x55f593){this['_model']['change'](_0x822154=>{let _0x3ec095='suggestion:'+_0x31b0a7+':'+_0x45f875+':'+_0x9e58a0;_0x55f593&&(_0x3ec095=_0x3ec095+':'+_0x55f593),_0x822154['addMarker'](_0x3ec095,{'range':_0x3d7231,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5dac3e){const _0x586995=_0x5dac3e['previous'],_0x58ecfe=_0x5dac3e['next'];_0x5dac3e['previous']=null,_0x5dac3e['next']=null,null!=_0x586995&&_0x586995['next']==_0x5dac3e&&(_0x586995['next']=_0x58ecfe),null!=_0x58ecfe&&_0x58ecfe['previous']==_0x5dac3e&&(_0x58ecfe['previous']=_0x586995),'ready'==this['_suggestionState']['get'](_0x5dac3e)&&(this['_suggestionState']['set'](_0x5dac3e,'removed'),this['fire']('suggestionUnloaded',_0x5dac3e,_0x586995,_0x58ecfe));}['_setSuggestionData'](_0x401806){const _0x2127bd=_0x401806['id'],_0x19cd9c=this['addSuggestionData'](_0x401806);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x39abbc=this['editor']['plugins']['get']('PendingActions'),_0x3b05a7=_0x19cd9c['hasComments'],_0x37e7d0=_0x19cd9c['subType']?_0x19cd9c['type']+':'+_0x19cd9c['subType']:_0x19cd9c['type'],_0x3591e5=this['editor']['locale'],_0x3d415a=_0x39abbc['add'](o(_0x3591e5,'PENDING_ACTION_SUGGESTION')),_0x195d41={'id':_0x2127bd,'type':_0x37e7d0,'hasComments':_0x3b05a7,'data':_0x401806['data']||null,'originalSuggestionId':_0x401806['originalSuggestionId']||null,'attributes':_0x19cd9c['attributes']};this['_adapter']['addSuggestion'](_0x195d41)['then'](_0x3f7b20=>{_0x19cd9c['_saved']=!0x0,_0x39abbc['remove'](_0x3d415a),_0x3f7b20&&_0x3f7b20['createdAt']&&(this['_suggestions']['get'](_0x2127bd)['createdAt']=_0x3f7b20['createdAt']);})['catch'](_0x526a33=>{throw _0x3f377d('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x19cd9c['discard']();}),_0x19cd9c['stopListening'](),this['_suggestions']['delete'](_0x19cd9c['id']),this['_suggestionState']['delete'](_0x19cd9c),_0x526a33;});}return _0x19cd9c;}['_isBlockAttribute'](_0xa88afe){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0xa88afe);}['_isInlineAttribute'](_0x313146){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x313146);}['_updateSuggestionData'](_0x213a24,_0x4da7c1){const _0x2a9086=this['editor']['plugins']['get']('PendingActions'),_0x28f3f2=this['getSuggestion'](_0x213a24);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x28f3f2['_saved']){const _0xd009c9=_0x2a9086['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x213a24,_0x4da7c1)['then'](()=>{_0x2a9086['remove'](_0xd009c9);});}else _0x28f3f2['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x213a24,_0x4da7c1);});}}['_getSuggestionData'](_0x4f0c0d){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x7f7e05('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4f0c0d);}['_handleNewSuggestionMarker'](_0x71416a){const {id:_0x95b22f,type:_0x2309ec,subType:_0x206830,authorId:_0x5810b7}=this['_splitMarkerName'](_0x71416a),_0x51ad37=this['_suggestions']['get'](_0x95b22f)||this['_createSuggestion'](_0x2309ec,_0x206830,_0x95b22f,_0x5810b7,{});switch(this['_checkSuggestionCorrectness'](_0x51ad37,_0x2309ec,_0x206830,_0x5810b7),this['_suggestionState']['get'](_0x51ad37)){case'notReady':this['_getSuggestionData'](_0x95b22f)['then'](_0x5753fb=>{let _0x20135e=Promise['resolve']();_0x5753fb['hasComments']&&(_0x20135e=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x95b22f})),_0x20135e['then'](()=>{this['addSuggestionData'](_0x5753fb)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x51ad37,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x95b22f,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x51ad37,'ready'),this['fire']('suggestionLoaded',_0x51ad37);break;case'ready':this['fire']('suggestionChanged',_0x51ad37);}return _0x51ad37['addMarkerName'](_0x71416a),_0x51ad37;}['_refreshSuggestionsChain'](_0x30358e){const _0x5ae890=Array['from'](_0x30358e),_0x219f34=_0x5ae890['filter'](_0x2f01cd=>'attribute'==_0x2f01cd['type']);this['_refreshAttributeSuggestionsChain'](_0x219f34);const _0x275e28=_0x5ae890['filter'](_0x515d28=>!_0x515d28['isMultiRange']&&'attribute'!=_0x515d28['type']),_0x22e7e4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x243def=>!_0x243def['isMultiRange']&&'attribute'!=_0x243def['type']),_0x293322=_0x22e7e4['filter'](_0x2738a4=>!_0x30358e['has'](_0x2738a4)),_0x8f2e38=new Map(_0x22e7e4['map'](_0x2a6118=>[_0x2a6118,this['_suggestionFactory']['getSuggestionCallback'](_0x2a6118['type'],_0x2a6118['subType'],'chain')])),_0x452f03=new Map(_0x22e7e4['map'](_0x491c8c=>[_0x491c8c,_0x491c8c['getFirstRange']()])),_0x48ce7d=new Set(),_0x354cc7=new Set();for(let _0x2247c5=0x0;_0x2247c5<_0x275e28['length'];_0x2247c5++)_0x1b5d42(_0x275e28[_0x2247c5],_0x275e28,_0x2247c5+0x1);for(let _0x7ac90d=0x0;_0x7ac90d<_0x275e28['length'];_0x7ac90d++)_0x1b5d42(_0x275e28[_0x7ac90d],_0x293322,0x0);const _0x11c0f2=new Set();for(let _0x410081=0x0;_0x410081<_0x275e28['length'];_0x410081++){const _0x1e7f2b=_0x275e28[_0x410081];!_0x354cc7['has'](_0x1e7f2b)&&_0x1e7f2b['previous']&&(_0x11c0f2['add'](_0x1e7f2b['previous']),_0x1e7f2b['previous']['next']===_0x1e7f2b&&(_0x1e7f2b['previous']['next']=null),_0x1e7f2b['previous']=null),!_0x48ce7d['has'](_0x1e7f2b)&&_0x1e7f2b['next']&&(_0x11c0f2['add'](_0x1e7f2b['next']),_0x1e7f2b['next']['previous']===_0x1e7f2b&&(_0x1e7f2b['next']['previous']=null),_0x1e7f2b['next']=null);}function _0x1b5d42(_0x21bd9b,_0x25f3d2,_0x452ac2){for(let _0x595792=_0x452ac2;_0x595792<_0x25f3d2['length'];_0x595792++){const _0xe6f6da=_0x3948f1(_0x21bd9b,_0x25f3d2[_0x595792]);_0xe6f6da&&(_0xe6f6da[0x0]['next']=_0xe6f6da[0x1],_0xe6f6da[0x1]['previous']=_0xe6f6da[0x0],_0x48ce7d['add'](_0xe6f6da[0x0]),_0x354cc7['add'](_0xe6f6da[0x1]));}}function _0x3948f1(_0x3bcd5e,_0x27ae91){if(_0x3bcd5e['author']['id']!==_0x27ae91['author']['id'])return null;const _0x57d691=_0x8f2e38['get'](_0x3bcd5e)(_0x3bcd5e,_0x27ae91,_0x452f03['get'](_0x3bcd5e),_0x452f03['get'](_0x27ae91));if(!_0x57d691)return null;return _0x8f2e38['get'](_0x27ae91)(_0x3bcd5e,_0x27ae91,_0x452f03['get'](_0x3bcd5e),_0x452f03['get'](_0x27ae91))?_0x57d691[0x1]['commentThread']&&_0x57d691[0x1]['commentThread']['length']?null:_0x57d691:null;}_0x11c0f2['size']&&this['_refreshSuggestionsChain'](_0x11c0f2);}['_refreshAttributeSuggestionsChain'](_0xb04fe){if(0x0==_0xb04fe['length'])return;const _0x3cd738=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5ea4e=>'attribute'==_0x5ea4e['type']&&_0x5ea4e['_isDataLoaded']),_0x54d3c0=[],_0x3faa91=new Map();for(const _0x3fe384 of _0x3cd738){const _0x1bdb42=_0x107885(_0x3fe384['attributes']);_0x3faa91['has'](_0x1bdb42)||(_0x3faa91['set'](_0x1bdb42,_0x54d3c0['length']),_0x54d3c0['push']([]));const _0x505138=_0x3faa91['get'](_0x1bdb42);_0x54d3c0[_0x505138]['push'](_0x3fe384);}!(function(){_0x54d3c0['sort']((_0x4ef836,_0x46fdb0)=>{const _0x334aa9=_0x4ef836[0x0]['createdAt'],_0x4212d5=_0x46fdb0[0x0]['createdAt'];return _0x334aa9==_0x4212d5?_0x4ef836[0x0]['attributes']['groupId']<_0x46fdb0[0x0]['attributes']['groupId']?-0x1:0x1:_0x334aa9<_0x4212d5?-0x1:0x1;});for(const _0x458da1 of _0x54d3c0)_0x458da1['sort']((_0x5a2a21,_0x60dc83)=>_0x5a2a21['id']<_0x60dc83['id']?-0x1:0x1);}());for(let _0x43247c=0x0;_0x43247c<_0x54d3c0['length'];_0x43247c++){if(0x0==_0x54d3c0[_0x43247c]['length'])continue;const _0x32c071=[];for(let _0x6d4342=_0x43247c+0x1;_0x6d4342<_0x54d3c0['length'];_0x6d4342++)0x0!=_0x54d3c0[_0x6d4342]['length']&&_0x40de29(_0x54d3c0[_0x43247c],_0x54d3c0[_0x6d4342])&&_0x32c071['push'](_0x6d4342);for(const _0x35aa78 of _0x32c071)_0x54d3c0[_0x43247c]=_0x54d3c0[_0x43247c]['concat'](_0x54d3c0[_0x35aa78]),_0x54d3c0[_0x35aa78]=[];}for(const _0x514e2e of _0x54d3c0)for(let _0x4468e4=0x0;_0x4468e4<_0x514e2e['length'];_0x4468e4++){const _0xbd8c17=_0x514e2e[_0x4468e4+0x1]||null;_0x514e2e[_0x4468e4]['next']!==_0xbd8c17&&(_0x514e2e[_0x4468e4]['next']=_0xbd8c17);}for(const _0x3c29c5 of _0x54d3c0)for(let _0x4fed0a=0x0;_0x4fed0a<_0x3c29c5['length'];_0x4fed0a++){const _0x49930e=_0x3c29c5[_0x4fed0a-0x1]||null;_0x3c29c5[_0x4fed0a]['previous']!==_0x49930e&&(_0x3c29c5[_0x4fed0a]['previous']=_0x49930e);}function _0x40de29(_0x137ba5,_0x2cce25){if(_0x137ba5[0x0]['attributes']['groupId']!==_0x2cce25[0x0]['attributes']['groupId']&&_0x137ba5[0x0]['author']!==_0x2cce25[0x0]['author'])return!0x1;if(!function(_0x2b837d,_0x1c2ab5){if(!_0x2b837d['hasComments']&&!_0x1c2ab5['hasComments'])return!0x0;if(_0x2b837d['hasComments']&&_0x1c2ab5['hasComments'])return!0x1;if(_0x2b837d['hasComments']&&_0x1c2ab5['createdAt']<_0x2b837d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1c2ab5['hasComments']&&_0x2b837d['createdAt']<_0x1c2ab5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x137ba5[0x0],_0x2cce25[0x0]))return!0x1;const _0x3f1bef=Pt(_0x137ba5[0x0]['attributes'],['groupId','trackingSessionId']),_0x4b5fe6=Pt(_0x2cce25[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x5abc0a(_0x3f1bef,_0x4b5fe6))return!0x1;if(_0x137ba5[0x0]['attributes']['groupId']==_0x2cce25[0x0]['attributes']['groupId'])return!0x0;if(_0x137ba5[0x0]['attributes']['trackingSessionId']!==_0x2cce25[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x137ba5['every'](_0x1c1a0b=>_0x2cce25['some'](_0x4b2603=>_0x1c1a0b['getFirstRange']()['isEqual'](_0x4b2603['getFirstRange']())))&&_0x2cce25['every'](_0x18fa2f=>_0x137ba5['some'](_0x179e41=>_0x18fa2f['getFirstRange']()['isEqual'](_0x179e41['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1eaa50){const _0x4daa44=Array['from'](_0x1eaa50),_0x524540=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4a7d8a=_0x524540['filter'](_0x25eb0e=>!_0x1eaa50['has'](_0x25eb0e)),_0x5323cb=new Map(_0x4daa44['map'](_0x45a937=>[_0x45a937,this['_suggestionFactory']['getSuggestionCallback'](_0x45a937['type'],_0x45a937['subType'],'join')])),_0x5dc46f=new Map(_0x524540['map'](_0x3050f1=>[_0x3050f1,_0x3050f1['getRanges']()]));for(let _0xc1af6e=0x0;_0xc1af6e<_0x4daa44['length'];_0xc1af6e++){if(_0x3f2945(this,_0x4daa44[_0xc1af6e],_0x4daa44,_0xc1af6e+0x1))return!0x0;}for(let _0x3286c1=0x0;_0x3286c1<_0x4daa44['length'];_0x3286c1++){if(_0x3f2945(this,_0x4daa44[_0x3286c1],_0x4a7d8a,0x0))return!0x0;}return!0x1;function _0x3f2945(_0x340e6a,_0xca5485,_0xb6aeb7,_0x9074cf){for(let _0x1bce5b=_0x9074cf;_0x1bce5b<_0xb6aeb7['length'];_0x1bce5b++){const _0x9547b7=_0xb6aeb7[_0x1bce5b];if(_0x9547b7['type']!==_0xca5485['type']||_0x9547b7['author']['id']!==_0xca5485['author']['id']||_0x9547b7['subType']!==_0xca5485['subType'])continue;if(!en(_0xca5485,_0x9547b7))continue;if('attribute'==_0xca5485['type']&&_0xca5485['data']['oldValue']!=_0x9547b7['data']['oldValue'])continue;if('attribute'==_0xca5485['type']&&_0x340e6a['_isBlockAttribute'](_0xca5485['data']['key']))continue;if('formatBlock'==_0xca5485['type']){const _0x1686ff=_0x340e6a['editor']['model'],_0x54b7e6=_0xca5485['getContainedElement']();if(_0x54b7e6&&(_0x1686ff['schema']['isObject'](_0x54b7e6)||_0x1686ff['schema']['isLimit'](_0x54b7e6)))continue;}const _0x875229=_0x5323cb['get'](_0xca5485),_0x13c4fb=_0x5dc46f['get'](_0xca5485),_0x21d6a5=_0x5dc46f['get'](_0x9547b7),_0x39c2c0=_0xca5485['commentThread']&&_0xca5485['commentThread']['length'],_0x503a8b=_0x9547b7['commentThread']&&_0x9547b7['commentThread']['length'];if(!_0x39c2c0&&_0x875229(_0x21d6a5,_0x13c4fb))return _0x340e6a['_joinSuggestions'](_0x9547b7,_0xca5485),_0x5dc46f['delete'](_0xca5485),!0x0;if(!_0x503a8b&&_0x875229(_0x13c4fb,_0x21d6a5))return _0x340e6a['_joinSuggestions'](_0xca5485,_0x9547b7),_0x5dc46f['delete'](_0x9547b7),!0x0;}return!0x1;}}['_joinSuggestions'](_0x810f3c,_0x50c17c){if(_0x810f3c['isMultiRange']){for(const _0x75d8ac of _0x50c17c['getRanges']())_0x810f3c['addRange'](_0x75d8ac);}else{const _0x33618d=_0x50c17c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x810f3c,this['_model']['createRange'](_0x810f3c['getFirstRange']()['start'],_0x33618d));}_0x50c17c['removeMarkers']();}['_getMarkerAnnouncementText'](_0x27726f,_0x24133d,_0x19dc39){const _0x5290e2=_0x27726f['startsWith']('format')||_0x27726f['startsWith']('attribute')?'FORMATTING':_0x27726f['toUpperCase']();return o(this['editor']['locale'],_0x24133d+'_'+_0x5290e2+'_SUGGESTION_ANNOUNCEMENT',_0x19dc39);}['_initAriaMarkerChangeAnnouncements'](){const _0x5c7f3b=this['editor'];if(!_0x5c7f3b['ui'])return;const {ariaLiveAnnouncer:_0x583dab}=_0x5c7f3b['ui'];_0x20c75f(this['_model'],({left:_0x5578ca,entered:_0xee97b8})=>{for(const _0xd0c786 of _0x5578ca){const {group:_0x4f3c77,type:_0x362f67}=this['_splitMarkerName'](_0xd0c786['name']);if('suggestion'===_0x4f3c77){_0x583dab['announce'](this['_getMarkerAnnouncementText'](_0x362f67,'LEAVE'));break;}}for(const _0x376529 of _0xee97b8){const {group:_0x1a9cba,type:_0x3a9f9e}=this['_splitMarkerName'](_0x376529['name']);if('suggestion'===_0x1a9cba){_0x583dab['announce'](this['_getMarkerAnnouncementText'](_0x3a9f9e,'ENTER',_0x4239ea(_0x49f432)));break;}}});}['_processAttributeChanges'](_0x1a7cb6){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2cf21b=this['editor'],_0x171bb1=_0x2cf21b['model']['document']['differ']['getChanges']();if(0x0==_0x171bb1['length'])return!0x1;const _0x266a91=[],_0x7e4f98=_0x171bb1['filter'](_0x13d1c2=>'attribute'==_0x13d1c2['type']),_0x3bc27f=_0x171bb1['filter'](_0x122a85=>'insert'==_0x122a85['type']&&'$text'!=_0x122a85['name']),_0x407c2c=_0x171bb1['filter'](_0x344c81=>'remove'==_0x344c81['type']&&'$text'!=_0x344c81['name']);for(const _0x5a4b61 of _0x7e4f98)_0x266a91['push']({'key':_0x5a4b61['attributeKey'],'newValue':_0x5a4b61['attributeNewValue'],'oldValue':_0x5a4b61['attributeOldValue'],'range':Zt(_0x5a4b61['range'],_0x2cf21b['model'])});for(const _0x543089 of _0x3bc27f){const _0x134ecb=_0x407c2c['find'](_0x889cb9=>_0x889cb9['position']['isEqual'](_0x543089['position']));_0x134ecb&&_0x266a91['push']({'key':m,'newValue':_0x543089['name'],'oldValue':_0x134ecb['name'],'range':_0x2cf21b['model']['createRangeOn'](_0x543089['position']['nodeAfter'])});}return 0x0!=_0x266a91['length']&&this['_reduceExistingSuggestions'](_0x1a7cb6,_0x266a91);}['_processAttributeSuggestions'](_0x3a29af){let _0x40f402=!0x1;const _0x57604e=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x44f097=>_0x44f097['data']['newRange']&&_0x44f097['name']['startsWith']('suggestion:attribute:'));for(const _0xa656ac of _0x57604e){const {subType:_0x2251c,id:_0x3ef53c}=this['_splitMarkerName'](_0xa656ac['name']),_0x3ad0b7=_0x2251c['split']('|')[0x0];for(const _0x5c5e33 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5c5e33['id']!=_0x3ef53c&&'attribute'==_0x5c5e33['type']&&_0x5c5e33['data']&&_0x5c5e33['data']['key']==_0x3ad0b7&&_0x5c5e33['getFirstRange']()['isIntersecting'](_0xa656ac['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5c5e33,_0xa656ac['data']['newRange'],_0x3a29af),_0x40f402=!0x0);}return _0x40f402;}['recordAttributeChanges'](_0x4e6263){this['_recordAttributeSuggestions']=!0x0,_0x4e6263();}['_isRegisteredAttribute'](_0x2f6369){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x2f6369);}['_reduceExistingSuggestions'](_0x583279,_0x458e60){if(0x0==_0x458e60['length'])return!0x1;let _0x116654=!0x1;for(const _0xd7b6f2 of _0x458e60){const _0x186222=this['_findSuggestions'](_0xd7b6f2['range'],'attribute')['filter'](_0x2acd5a=>!_0x2acd5a['meta']['isNextTo'])['map'](_0x36ebe6=>_0x36ebe6['suggestion']),_0x7fae18=_0x107885({'newValue':_0xd7b6f2['newValue']});_0x186222['filter'](_0x6187aa=>{const [_0x23d271,_0x36b795]=_0x6187aa['subType']['split']('|');return _0x23d271==_0xd7b6f2['key']&&_0x36b795!=_0x7fae18;})['forEach'](_0x1a1593=>{this['_reduceSuggestionAttributeRange'](_0x1a1593,_0xd7b6f2['range'],_0x583279),_0x116654=!0x0;});}return _0x116654;}['_reduceSuggestionAttributeRange'](_0x2b1294,_0x129060,_0xecc869){const _0x3397db=_0x2b1294['getFirstRange']()['getDifference'](_0x129060);0x0!==_0x3397db['length']?0x1!==_0x3397db['length']?this['_breakSuggestionMarker'](_0x2b1294,_0x129060['start'],_0x129060['end']):this['_setSuggestionRange'](_0x2b1294,_0x3397db[0x0]):_0xecc869['removeMarker'](_0x2b1294['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5b00e6){this['_editor']=_0x5b00e6,this['_model']=_0x5b00e6['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x175057,_0x48e5cb,_0x272887,_0x4614c3,_0x5cde3b,_0x573d0c,_0xf71138){return new x(this['_model'],{'type':_0x175057,'subType':_0x48e5cb,'id':_0x272887,'originalSuggestionId':_0xf71138,'author':_0x4614c3,'creator':_0x4614c3,'attributes':_0x5cde3b,'onAttributesChange':_0x573d0c,'onAccept':(..._0x1555b0)=>this['getSuggestionCallback'](_0x175057,_0x48e5cb,'accept')(..._0x1555b0),'onDiscard':(..._0x2d2ce8)=>this['getSuggestionCallback'](_0x175057,_0x48e5cb,'discard')(..._0x2d2ce8)});}['registerCustomCallback'](_0x1a088d,_0x587c83,_0x111d34,_0x9dc38d){const _0x160e46=_0x1a088d+':'+_0x587c83+':'+_0x111d34;this['_customCallbacks']['set'](_0x160e46,_0x9dc38d);}['getSuggestionCallback'](_0x177ee1,_0x352465,_0x43db1e){const _0x5d4151=_0x177ee1+':'+_0x352465+':'+_0x43db1e;return this['_customCallbacks']['get'](_0x5d4151)||this['_defaultCallbacks']['get'](_0x177ee1+':'+_0x43db1e);}['_registerDefaultCallbacks'](){const _0x5dbc44=()=>!0x1,_0x5dc845=_0x3f9468=>{_0x3f9468['sort']((_0x43198e,_0x4d17ad)=>_0x43198e['start']['isBefore'](_0x4d17ad['start'])?0x1:-0x1),this['_model']['change'](_0x52dece=>{for(const _0x14a443 of _0x3f9468){let _0x49734b;_0x49734b=_0x14a443['end']['isAtEnd']&&_0x14a443['end']['parent']==_0x14a443['start']['nodeAfter']?_0x52dece['createSelection'](_0x14a443['start']['nodeAfter'],'on'):_0x52dece['createSelection'](_0x14a443),this['_model']['deleteContent'](_0x49734b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x540693=(_0x1dc03a,_0x326597)=>{_0x326597&&this['_model']['change'](_0x27d3ae=>{const {commandName:_0x2d340c,commandParams:_0x6efbe3=[]}=_0x326597,_0x28dec7=_0x1dc03a['map'](_0x47358f=>(Kt(_0x47358f)&&(_0x47358f=this['_model']['createRange'](_0x47358f['end'])),_0x47358f))['filter'](_0x4f8dd0=>'$graveyard'!==_0x4f8dd0['root']['rootName']);if(_0x28dec7['length']<0x1)return;const _0x1baaa5=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4226bf=>_0x53fd14['fromRange'](_0x4226bf));_0x27d3ae['setSelection'](_0x28dec7);for(const _0x4e7432 of this['_editor']['commands']['commands']())_0x4e7432['refresh']();_0x6efbe3['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2d340c,..._0x6efbe3);const _0x3e1091=_0x1baaa5['filter'](_0x37b05d=>'$graveyard'!=_0x37b05d['root']['rootName']);_0x3e1091['length']>0x0&&_0x27d3ae['setSelection'](_0x3e1091);for(const _0x2dd615 of _0x1baaa5)_0x2dd615['detach']();});},_0x2e935c=(_0x364578,_0x295390)=>0x1==_0x364578['length']&&0x1==_0x295390['length']&&_0x364578[0x0]['end']['isEqual'](_0x295390[0x0]['start']),_0x18b9ba=(_0x4d9f31,_0x13dce7,_0x3cf831,_0x5e7a76)=>nn(_0x4d9f31,_0x13dce7,_0x3cf831,_0x5e7a76)?[_0x4d9f31,_0x13dce7]:nn(_0x13dce7,_0x4d9f31,_0x5e7a76,_0x3cf831)?[_0x13dce7,_0x4d9f31]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5dbc44),this['_defaultCallbacks']['set']('insertion:discard',_0x5dc845),this['_defaultCallbacks']['set']('insertion:join',_0x2e935c),this['_defaultCallbacks']['set']('insertion:chain',_0x18b9ba),this['_defaultCallbacks']['set']('deletion:accept',_0x5dc845),this['_defaultCallbacks']['set']('deletion:discard',_0x5dbc44),this['_defaultCallbacks']['set']('deletion:join',_0x2e935c),this['_defaultCallbacks']['set']('deletion:chain',_0x18b9ba),this['_defaultCallbacks']['set']('formatInline:accept',_0x540693),this['_defaultCallbacks']['set']('formatInline:discard',_0x5dbc44),this['_defaultCallbacks']['set']('formatInline:join',_0x2e935c),this['_defaultCallbacks']['set']('formatInline:chain',_0x5dbc44),this['_defaultCallbacks']['set']('formatBlock:accept',_0x540693),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5dbc44),this['_defaultCallbacks']['set']('formatBlock:join',_0x2e935c),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5dbc44),this['_defaultCallbacks']['set']('attribute:accept',_0x5dbc44),this['_defaultCallbacks']['set']('attribute:discard',(_0x418077,_0x5cfa52)=>{if(!_0x5cfa52)return;const _0x2c02b2=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x309315=>{if(_0x5cfa52['key']==m)for(const _0xdb6618 of _0x418077){const _0x15907b=_0xdb6618['start']['nodeAfter'],_0x13a684=_0x5cfa52['oldValue'];_0x309315['rename'](_0x15907b,_0x13a684);}else{if(_0x2c02b2['_isBlockAttribute'](_0x5cfa52['key'])){for(const _0x3212c2 of _0x418077)void 0x0!==_0x5cfa52['oldValue']?_0x309315['setAttribute'](_0x5cfa52['key'],_0x5cfa52['oldValue'],_0x3212c2['start']['nodeAfter']):_0x309315['removeAttribute'](_0x5cfa52['key'],_0x3212c2['start']['nodeAfter']);}else{for(const _0x3d6609 of _0x418077)_0x5cfa52['oldValue']?_0x309315['setAttribute'](_0x5cfa52['key'],_0x5cfa52['oldValue'],_0x3d6609):_0x309315['removeAttribute'](_0x5cfa52['key'],_0x3d6609);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2e935c);}}function zt(_0xaadd67,_0x3225ae,_0x4b3885){for(const _0x3cff55 of _0x3225ae['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3cff55['root']==_0x3cff55)return!0x1;if(!_0x4b3885['containsItem'](_0x3cff55))return!0x1;if(_0xaadd67['isObject'](_0x3cff55)||_0xaadd67['isLimit'](_0x3cff55))return!0x0;}return!0x1;}function Kt(_0x3ecd4f){return _0x3ecd4f['end']['parent']==_0x3ecd4f['start']['nodeAfter']&&_0x3ecd4f['end']['isAtStart'];}function Wt(_0x95eaea,_0x43bc06,_0x62d92f,_0xdc691d){const _0x5855a1=_0x23f61c=>!_0x23f61c['item']['is']('$textProxy')&&!_0xdc691d['isObject'](_0x23f61c['item']),_0x1cf80f=_0x95eaea['start']['getLastMatchingPosition'](_0x5855a1),_0x463317=_0x95eaea['end']['getLastMatchingPosition'](_0x5855a1,{'direction':'backward'});return(!_0x95eaea['start']['isEqual'](_0x1cf80f)||!_0x95eaea['end']['isEqual'](_0x463317))&&(_0x1cf80f['isBefore'](_0x463317)?_0x62d92f['updateMarker'](_0x43bc06,{'range':_0x62d92f['createRange'](_0x1cf80f,_0x463317)}):_0x62d92f['removeMarker'](_0x43bc06),!0x0);}function Ht(_0x18fec3){return _0x107885(_0x18fec3);}function Qt(_0x5ebe6e){const _0x3d3194=_0x5ebe6e['start']['nodeAfter'];return _0x3d3194&&_0x3d3194['is']('element');}function Xt(_0x18ec95){return Kt(_0x18ec95)||function(_0x5e16d1){return _0x5e16d1['start']['parent']==_0x5e16d1['end']['nodeBefore']&&_0x5e16d1['start']['isAtEnd'];}(_0x18ec95);}function Yt(_0x32a414,_0x9d44df){try{const _0x2bbffb=_0x32a414['getRange']();for(const _0x4180cb of _0x9d44df)if(_0x32a414!==_0x4180cb&&_0x2bbffb&&_0x2bbffb['isIntersecting'](_0x4180cb['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x16d8ec,_0x5b9469){return null==_0x16d8ec['end']['nodeBefore']&&_0x16d8ec['end']['parent']==_0x16d8ec['start']['nodeAfter']?tn(_0x16d8ec['start']['nodeAfter'],_0x5b9469):_0x16d8ec;}function tn(_0x427925,_0x1d21df){const _0x36483f=_0x1d21df['schema']['isObject'](_0x427925)||_0x1d21df['schema']['isSelectable'](_0x427925);return _0x1d21df['createRange'](_0x1d21df['createPositionAt'](_0x427925,'before'),_0x36483f?_0x1d21df['createPositionAfter'](_0x427925):_0x1d21df['createPositionAt'](_0x427925,'end'));}function nn(_0x1ebf1f,_0xc227f2,_0x421807,_0x2e4151){return!!en(_0x1ebf1f,_0xc227f2)&&_0x421807['end']['isEqual'](_0x2e4151['start']);}function en(_0x3ca98a,_0x5c1606){if(!_0x3ca98a['_isDataLoaded']||!_0x5c1606['_isDataLoaded'])return!0x1;const _0x3f8e4d=new Set(Object['keys'](_0x3ca98a['attributes'])),_0x1033ec=new Set(Object['keys'](_0x5c1606['attributes']));if(_0x3f8e4d['delete']('groupId'),_0x1033ec['delete']('groupId'),0x0==_0x3f8e4d['size']&&0x0==_0x1033ec['size'])return!0x0;if(_0x3f8e4d['size']!=_0x1033ec['size'])return!0x1;const _0x263ba2={..._0x3ca98a['attributes']},_0x2c6832={..._0x5c1606['attributes']};return delete _0x263ba2['groupId'],delete _0x2c6832['groupId'],JSON['stringify'](_0x263ba2)==JSON['stringify'](_0x2c6832);}function sn(_0x1ab9ad,_0x20ba51){const _0x2636cd=on(_0x1ab9ad['attributes']),_0x6a0ce1=on(_0x20ba51);if(!_0x1ab9ad['_isDataLoaded'])return!0x1;for(const _0x19a73a of Object['keys'](_0x6a0ce1))if(!_0x5abc0a(_0x2636cd[_0x19a73a],_0x6a0ce1[_0x19a73a]))return!0x1;return!0x0;}function on(_0x448ee1){const _0x101ef8=Object['assign']({},_0x448ee1);return delete _0x101ef8['skipNestingCheck'],delete _0x101ef8['tablePasteChainId'],_0x101ef8;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0x303ac1(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x49d3cd,_0x2ede45,_0x2bd731,_0x102353){super(),this['model']=_0x2ede45,this['view']=_0x2bd731,this['commentThreadController']=_0x102353,this['_editor']=_0x49d3cd,this['_acceptCommand']=_0x49d3cd['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x49d3cd['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3db578,_0x4a7bf3)=>_0x3db578||_0x4a7bf3),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x29e2a0=>_0x29e2a0&&this['_editor']['model']['canEditAt'](_0x2ede45['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4b87cc=>_0x4b87cc&&this['_editor']['model']['canEditAt'](_0x2ede45['getRanges']())),this['_pendingAction']=null,_0x2bd731['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2bd731,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2bd731,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2bd731,'change:isDirty',()=>{_0x2bd731['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 _0x4d126f=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4d126f);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x195901{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x22a54d,_0x2a41c4,_0x499dfd,_0x199acc){super(_0x22a54d),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x16b250(_0x22a54d,o(_0x22a54d,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2a41c4['authoredAt']),this['bind']('authoredAt')['to'](_0x2a41c4),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',_0x2a41c4,'authoredAt',this,'descriptionParts',(_0x59857b,_0x8ba43e,_0x365f0f)=>{const _0x4c9932=_0x365f0f['map'](_0x4ae2b5=>ls(_0x4ae2b5['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x59857b-0x1,_0x2a41c4['author']['name'],_0x8ba43e?_0x199acc['formatDateTime'](_0x8ba43e):'',new DOMParser()['parseFromString'](_0x4c9932,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4606ad(),this['focusTracker']=new _0x17a81e(),this['keystrokes']=new _0x193443(),this['focusCycler']=new _0x37f275({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x294d6a=>_0x294d6a['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2a41c4,this['_localUser']=_0x499dfd,this['_config']=_0x199acc,_0x199acc['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x464452(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x272641}=this['_config'];this['commentsListView']=new _0x272641(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',_0x1971b1=>_0x1971b1+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x208137,_0x31f3b2)=>_0x208137||!!_0x31f3b2);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3d5f46}=this['_config'],_0x294315=new _0x3d5f46(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x53a223=_0x294315['commentInputView'];return _0x294315['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x53a223,'value',(_0x26de67,_0x2a5706,_0x33c2cc)=>!!_0x33c2cc||_0x26de67&&!_0x2a5706),_0x53a223['on']('submit',(_0x3e234f,_0x4fa6ad)=>{this['fire']('addComment',_0x4fa6ad),_0x53a223['editor']['setData']('');}),_0x53a223['on']('cancel',()=>this['focus']()),_0x53a223['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x294315;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x559d21,_0x284113,_0xc76d40,_0x4e6342){super(_0x559d21,_0x284113,_0xc76d40,_0x4e6342),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x447142=>_0x447142&&_0x447142[0x0]?_0x447142[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x46acbc,_0xb74579)=>{let _0x191e84='';for(const _0x5792e2 of _0x46acbc)_0x191e84+='<p>'+ls(_0x5792e2['content'],_0x5792e2['color'])+'</p>';return _0xb74579?_0x191e84:_0x452a43(_0x191e84,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x4e6342['SuggestionView'](_0x559d21,_0x284113,{'formatDateTime':_0x4e6342['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 _0x30a095=this['bindTemplate'],_0x6038d3=[this['suggestionView']];return this['commentsListView']&&_0x6038d3['push'](this['commentsListView']),this['commentThreadInputView']&&_0x6038d3['push'](this['commentThreadInputView']),_0x6038d3['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x30a095['if']('isActive','ck-suggestion-wrapper--active'),_0x30a095['to']('type',_0x50f6f9=>'ck-suggestion-'+_0x50f6f9),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':_0x30a095['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x6038d3};}['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 _0x195901{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x256844,_0x56e2e5,_0x4e2bbf){super(_0x256844),this['_model']=_0x56e2e5,this['_config']=_0x4e2bbf,this['set']('description',''),this['bind']('authoredAt')['to'](_0x56e2e5),this['acceptButton']=this['_createButton'](o(_0x256844,'Accept\x20suggestion'),_0x7366eb,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x256844,'Discard\x20suggestion'),_0x29d776,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4d114a(_0x256844,_0x56e2e5['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4606ad([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x17a81e(),this['keystrokes']=new _0x193443(),this['focusCycler']=new _0x37f275({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x30ada0=>_0x30ada0['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1f7836=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1f7836['innerHTML']=this['description'],this['on']('change:description',(_0x5d5f8e,_0xd2cbec,_0xdad5d8)=>{_0x1f7836['innerHTML']=_0xdad5d8;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x45c146=this['bindTemplate'],_0x584417=[{'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':_0x45c146['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x45c146['to']('authoredAt',_0x47fe79=>this['_config']['formatDateTime'](_0x47fe79))}]}]},{'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']&&_0x584417['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':_0x584417}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x109f69,_0x481d1f,_0x490577,_0x3af4b7,_0x296964){const _0x2e61da=new _0x10b3c2(this['locale']);return _0x2e61da['set']({'label':_0x109f69,'icon':_0x481d1f,'tooltip':!0x0,'tooltipPosition':_0x296964}),_0x2e61da['extendTemplate']({'attributes':{'class':_0x490577}}),_0x2e61da['on']('execute',()=>{this['fire'](_0x3af4b7,this['_model']['id']);}),_0x2e61da;}['_setupKeyboardNavigation'](){const _0x4aed2d=this['element'];this['keystrokes']['listenTo'](_0x4aed2d);for(const _0x5d3b61 of this['focusables'])this['focusTracker']['add'](_0x5d3b61['element']),this['keystrokes']['listenTo'](_0x5d3b61['element']);this['keystrokes']['set']('enter',(_0x37fa0f,_0x39ffab)=>{_0x4aed2d===_0x37fa0f['target']&&(this['focusCycler']['focusFirst'](),_0x39ffab());}),this['keystrokes']['set']('esc',(_0x2a7c3f,_0xdd8afb)=>{_0x4aed2d!==_0x2a7c3f['target']&&(this['focus'](),_0xdd8afb());});}}class u extends _0x2051ed{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x5a126c,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4b3ca7){super(_0x4b3ca7),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x471bcb=this['editor']['config'];_0x471bcb['define']('trackChanges.SuggestionThreadView',fe),_0x471bcb['define']('trackChanges.SuggestionView',we),_0x471bcb['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x471bcb['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4093fe,_0x2bd9ca){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x25ff93,_0x5efbd0]of this['_handleControllerBuffer']){const _0x9ad5fe=this['_suggestionToController']['has'](_0x25ff93);_0x9ad5fe||_0x5efbd0?_0x9ad5fe&&_0x5efbd0&&this['_destroyController'](_0x25ff93):this['_initializeController'](_0x25ff93);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4093fe,_0x2bd9ca);}['init'](){const _0x2602b1=this['editor'],_0x5ad94b=_0x2602b1['plugins']['get']('TrackChangesEditing'),_0x3f2d05=_0x2602b1['plugins']['get']('Annotations'),_0xb7e0b2=_0x2602b1['plugins']['get']('EditorAnnotations'),_0x4a9983=_0x2602b1['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0xb7e0b2['addSourceCollector'](()=>{const _0x42e804=[];for(const [_0x3daeac,_0x5ac567]of Array['from'](this['_suggestionToController'])){const _0x316db9=_0x3daeac['getAllAdjacentSuggestions'](),_0x335704=[];for(const _0x19dac1 of _0x316db9){if(!_0x19dac1['isInContent'])continue;if(_0x19dac1['isMultiRange']){_0x335704['push'](..._0x19dac1['getRanges']());continue;}const _0x14826f=_0x19dac1['getFirstRange']();if(_0x335704['length']>0x0){const _0x362cec=_0x335704[0x0]['getJoined'](_0x14826f);if(_0x362cec){_0x335704[0x0]=_0x362cec;continue;}}_0x335704['push'](_0x14826f);}_0x42e804['push']([_0x5ac567['view'],_0x335704]);}return _0x42e804;}),this['listenTo'](_0x5ad94b,'suggestionLoaded',(_0x2fae76,_0x3888b6)=>{this['listenTo'](_0x3888b6,'change:previous',(_0x127735,_0x14f097,_0x46a09e,_0x5ccbd8)=>{_0x3888b6['isInContent']&&(null==_0x46a09e?(this['_updateController'](_0x5ccbd8['head']),this['_handleSuggestionControllerDelayed'](_0x3888b6,!0x1)):(this['_updateController'](_0x46a09e['head']),null==_0x5ccbd8&&this['_handleSuggestionControllerDelayed'](_0x3888b6,!0x0)));}),null!==_0x3888b6['previous']?this['_updateController'](_0x3888b6['head']):this['_handleSuggestionControllerDelayed'](_0x3888b6,!0x1);}),this['listenTo'](_0x5ad94b,'suggestionUnloaded',(_0x51556a,_0x123b47,_0x31f0c0)=>{this['stopListening'](_0x123b47,'change:previous'),this['_handleControllerBuffer']['delete'](_0x123b47),this['_suggestionToController']['has'](_0x123b47)&&this['_destroyController'](_0x123b47),_0x31f0c0&&this['_updateController'](_0x31f0c0['head']);}),this['listenTo'](_0x5ad94b,'suggestionChanged',(_0x98544e,_0x160c63)=>{this['_updateController'](_0x160c63);}),this['listenTo'](_0x3f2d05,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4a9983,'addComment',(_0x562fcf,{threadId:_0x3ff651,isFromAdapter:_0xc4df07})=>{if(_0xc4df07||!_0x5ad94b['hasSuggestion'](_0x3ff651))return;const _0x8e147=_0x5ad94b['getSuggestion'](_0x3ff651);this['_suggestionToController']['get'](_0x8e147)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x16801a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x24a4ed;for(const _0x14deba in _0x16801a){const _0x1d84e1=_0x14deba,_0x2f98e5=_0x16801a[_0x1d84e1];if('trackChangesLicenseKeyValid'==_0x2f98e5||'trackChangesLicenseKeyInvalid'==_0x2f98e5||'trackChangesLicenseKeyExpired'==_0x2f98e5||'trackChangesLicenseKeyDomainLimit'==_0x2f98e5||'trackChangesLicenseKeyNotAllowed'==_0x2f98e5||'trackChangesLicenseKeyEvaluationLimit'==_0x2f98e5||'trackChangesLicenseKeyTrialLimit'==_0x2f98e5||'trackChangesLicenseKeyUsageLimit'==_0x2f98e5){delete _0x16801a[_0x1d84e1],_0x24a4ed=_0x2f98e5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x24a4ed&&_0x16801a['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x24a4ed&&_0x16801a['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x24a4ed&&_0x16801a['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x24a4ed&&_0x16801a['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x24a4ed&&_0x16801a['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x24a4ed&&_0x16801a['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x24a4ed&&_0x16801a['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x369624){const _0x2b995a=this['_suggestionToController']['get'](_0x369624);if(!_0x2b995a)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x2b995a['view'])||null;}['getSuggestionForAnnotation'](_0x115994){const _0xb54869=this['_viewToController']['get'](_0x115994['innerView']);return _0xb54869?_0xb54869['model']:null;}['_refreshActiveMarkers'](){const _0x50ae74=this['editor']['plugins']['get']('Annotations'),_0x1850eb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c3b6d=Array['from'](_0x50ae74['activeAnnotations'],_0x507626=>_0x507626['innerView'])['filter'](_0x2cbe66=>this['_viewToController']['has'](_0x2cbe66)),_0x5bbb2f=[];for(const _0x41f71b of _0x4c3b6d){const _0x2151ab=this['_viewToController']['get'](_0x41f71b)['model']['getAllAdjacentSuggestions']();_0x5bbb2f['push'](..._0x2151ab['reduce']((_0xe0b09b,_0x8d0ad2)=>[..._0xe0b09b,..._0x8d0ad2['getMarkerNames']()],[]));}_0x1850eb['activeMarkers']=_0x5bbb2f;}['_addUIComponentsToFactory'](){const _0x6c1110=this['editor'],_0x2d6132=_0x6c1110['locale'],_0x30413d=o(_0x2d6132,'Track\x20changes'),_0x3fe348=new _0x1fcff8([{'type':'switchbutton','model':new _0x5636c8({'withText':!0x0,'isToggleable':!0x0,'label':_0x30413d,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5636c8({'withText':!0x0,'label':o(_0x2d6132,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5636c8({'withText':!0x0,'label':o(_0x2d6132,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5636c8({'withText':!0x0,'label':o(_0x2d6132,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5636c8({'withText':!0x0,'label':o(_0x2d6132,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x6c1110['plugins']['has']('TrackChangesPreview')&&_0x3fe348['addMany']([{'type':'separator'},{'type':'button','model':new _0x5636c8({'withText':!0x0,'label':o(_0x2d6132,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x183fcd of _0x3fe348)if(ke(_0x183fcd)){const _0x3bff8c=_0x6c1110['commands']['get'](_0x183fcd['model']['commandName']);_0x183fcd['model']['bind']('isOn','isEnabled')['to'](_0x3bff8c,'value','isEnabled');}_0x6c1110['ui']['componentFactory']['add']('trackChanges',_0xb3f04a=>this['_createToolbarButton'](_0xb3f04a,_0x3fe348,_0x30413d)),_0x6c1110['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5263e4=>this['_createMenuBarMenu'](_0x5263e4,_0x3fe348,_0x30413d));}['_createToolbarButton'](_0x15e7da,_0x2a4168,_0x359843){const _0x45c817=_0x58693a(_0x15e7da,_0x16b1b1),_0x261033=this['editor']['commands']['get']('trackChanges');_0x45c817['buttonView']['set']({'tooltip':_0x359843,'label':_0x359843,'icon':_0x176232}),_0x45c817['buttonView']['bind']('isOn')['to'](_0x261033,'value'),_0x45c817['buttonView']['on']('execute',()=>{_0x261033['execute'](),this['editor']['editing']['view']['focus']();}),_0x29c746(_0x45c817,_0x2a4168,{'role':'menu'});const _0x23fdf4=[];for(const _0x43533b of _0x2a4168)ke(_0x43533b)&&_0x23fdf4['push'](this['editor']['commands']['get'](_0x43533b['model']['commandName']));const _0x218f90=_0x45c817['buttonView'];return _0x218f90['actionView']['unbind']('isEnabled'),_0x218f90['arrowView']['unbind']('isEnabled'),_0x218f90['actionView']['bind']('isEnabled')['to'](_0x261033,'isEnabled'),_0x218f90['arrowView']['bind']('isEnabled')['toMany'](_0x23fdf4,'isEnabled',(..._0x2d583f)=>_0x2d583f['some'](_0x3903a6=>_0x3903a6)),_0x45c817['on']('execute',_0x50b2c5=>{this['editor']['execute'](_0x50b2c5['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x45c817;}['_createMenuBarMenu'](_0x29dae7,_0x285106,_0xc536eb){const _0x257810=new _0x409ba2(_0x29dae7),_0x55cb81=this['editor']['commands']['get']('trackChanges');_0x257810['buttonView']['set']({'label':_0xc536eb,'icon':_0x176232});const _0x13939f=new _0x263b81(_0x29dae7);for(const _0x9f3b94 of _0x285106){if('separator'==_0x9f3b94['type']){_0x13939f['items']['add'](new _0x4d6c3f(_0x29dae7));continue;}const _0x5b9e4e=new _0x8106ff(_0x29dae7,_0x257810),_0x2b6be3=new _0x2a02a7(_0x29dae7),_0x1dbf39=_0x9f3b94['model'];_0x2b6be3['bind'](...Object['keys'](_0x1dbf39))['to'](_0x1dbf39),_0x2b6be3['delegate']('execute')['to'](_0x257810),_0x2b6be3['on']('execute',()=>{this['editor']['execute'](_0x1dbf39['commandName']),this['editor']['editing']['view']['focus']();}),_0x5b9e4e['children']['add'](_0x2b6be3),_0x13939f['items']['add'](_0x5b9e4e);}return _0x257810['bind']('isEnabled')['to'](_0x55cb81,'isEnabled'),_0x257810['panelView']['children']['add'](_0x13939f),_0x257810;}['_initializeController'](_0x38ebce){const _0x130b81=this['editor'],_0x15d068=_0x130b81['config'],_0xd60c65=_0x130b81['plugins']['get']('Annotations'),_0x365c13=_0x130b81['plugins']['get']('CommentsRepository'),_0x5c1c6f=_0x130b81['plugins']['get']('EditorAnnotations'),_0x1f9659=_0x130b81['plugins']['get'](_0x5a126c)['me'],_0x2e461b=_0x15d068['get']('trackChanges')['SuggestionThreadView'],_0x3934af=_0x15d068['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2dc77f,CommentThreadInputView:_0x564c23}=_0x130b81['plugins']['get']('CommentsUI');let _0x14f8b6,_0x1312a8,_0x1ebeef;this['_annotationViews']['has'](_0x38ebce['id'])?(_0x1312a8=this['_annotationViews']['get'](_0x38ebce['id']),_0x14f8b6=_0x1312a8['mainView']):(_0x14f8b6=new _0x2e461b(_0x130b81['locale'],_0x38ebce,_0x1f9659,{'disableComments':this['_disableComments'],'editorConfig':{..._0x15d068['get']('comments.editorConfig'),'licenseKey':_0x15d068['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x15d068['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x15d068['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x15d068['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x34f158(_0x15d068['get']('locale'),_0x130b81['locale']),'CommentView':_0x15d068['get']('comments')['CommentView'],'CommentsListView':_0x2dc77f,'CommentThreadInputView':_0x564c23,'SuggestionView':_0x3934af}),_0x14f8b6['suggestionView']['acceptButton']['on']('execute',()=>{_0x130b81['editing']['view']['focus']();}),_0x14f8b6['suggestionView']['discardButton']['on']('execute',()=>{_0x130b81['editing']['view']['focus']();}),_0x1312a8=_0xd60c65['createAnnotationView'](this['editor']['locale'],_0x14f8b6),_0x1312a8['bind']('isDirty')['to'](_0x14f8b6,'isDirty'),_0x1312a8['bind']('length')['to'](_0x14f8b6),_0x1312a8['bind']('type')['to'](_0x14f8b6,'type',_0x293043=>'suggestion-'+_0x293043),_0x14f8b6['on']('escape',()=>{_0x1ebeef['fire']('escape');}),this['_annotationViews']['set'](_0x38ebce['id'],_0x1312a8));const _0x2af643=_0x365c13['createCommentThreadController'](_0x38ebce['commentThread'],_0x14f8b6),_0x3ddb83=new pe(_0x130b81,_0x38ebce,_0x14f8b6,_0x2af643),_0x39a69b=_0x38ebce['getAllAdjacentSuggestions']()['filter'](_0x38a1e5=>_0x38a1e5['isInContent']);_0x14f8b6['descriptionParts']=_0x130b81['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x39a69b),this['_suggestionToController']['set'](_0x38ebce,_0x3ddb83),this['_viewToController']['set'](_0x14f8b6,_0x3ddb83);const _0x394f3a=()=>{const _0x14f17e=[],_0x43ddad=_0x38ebce['getAllAdjacentSuggestions']()['filter'](_0x180743=>_0x180743['isInContent']);for(const _0x1fe672 of _0x43ddad)_0x14f17e['push'](..._0x1fe672['getMarkers']());return _0x344ec9(_0x130b81['editing'],_0x14f17e);};_0x1ebeef=_0xd60c65['createAnnotation']({'view':_0x1312a8,'target':_0x394f3a,'type':()=>'suggestion-'+_0x3ddb83['view']['type'],'isVisible':!!_0x394f3a()}),_0x365c13['_bindAnnotationToEditors'](_0x14f8b6,_0x1ebeef),_0xd60c65['add'](_0x1ebeef),_0x5c1c6f['registerAnnotation'](_0x1ebeef);}['_destroyController'](_0x193472){const _0x4de5f9=this['editor']['plugins']['get']('CommentsRepository'),_0x2f2564=this['editor']['plugins']['get']('Annotations'),_0x29d68b=this['_suggestionToController']['get'](_0x193472),_0x205350=_0x29d68b['view'],_0x44fc10=_0x2f2564['getByInnerView'](_0x205350);_0x4de5f9['_unbindEditors'](_0x205350),_0x44fc10&&_0x2f2564['remove'](_0x44fc10),this['_suggestionToController']['delete'](_0x193472),this['_viewToController']['delete'](_0x205350),_0x29d68b['destroy']();}['_updateController'](_0x57605c){if(!_0x57605c['isInContent']||!this['_suggestionToController']['has'](_0x57605c))return;const _0xbc3d3e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x56b8d1=this['_suggestionToController']['get'](_0x57605c),_0x53304e=_0x57605c['getAllAdjacentSuggestions']();_0x56b8d1['view']['descriptionParts']=_0xbc3d3e['descriptionFactory']['getDescriptions'](_0x53304e);}['destroy'](){for(const _0x9cc3e7 of this['_suggestionToController']['keys']())this['_destroyController'](_0x9cc3e7);for(const _0x5c89ed of this['_annotationViews']['values']())_0x5c89ed['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x5e3ee3){return'model'in _0x5e3ee3;}class Ne extends _0x2051ed{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1366e0){this['editor']['plugins']['get'](d)['adapter']=_0x1366e0;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x4902d0){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x4902d0);}['getSuggestions']({skipNotAttached:_0x3274b4=!0x1,toJSON:_0x5b9f83=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x3274b4,'toJSON':_0x5b9f83});}['getSuggestion'](_0x1c8654){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x1c8654);}}const p=['Pagination'];class re extends _0x2051ed{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x521737=this['editor'];if(_0x521737['config']['define']('trackChangesData.editorCreator',_0x19d26d=>{const _0x237470=_0x521737['model']['document']['getRootNames']()['reduce']((_0x279acc,_0x5de57f)=>(_0x279acc[_0x5de57f]='',_0x279acc),{});return _0x521737['constructor']['create'](_0x237470,_0x19d26d);}),'function'!=typeof _0x521737['config']['get']('trackChangesData')['editorCreator'])throw new _0x7f7e05('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x8c895){return P(this['editor'],!0x0,_0x8c895);}['getDataWithDiscardedSuggestions'](_0x2d2bb4){return P(this['editor'],!0x1,_0x2d2bb4);}}class Fe extends _0x2051ed{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xcb33e){function _0x405103(_0x54ca78){return _0x54ca78['map'](_0x832367=>String['fromCharCode'](_0x832367))['join']('');}super(_0xcb33e),this['result']='end',_0xcb33e[_0x405103([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x405103([0x76,0x69,0x65,0x77])][_0x405103([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x405103([0x61,0x75,0x74,0x6f]),_0xcb33e[_0x405103([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x405103([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x405103([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x405103([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x405103([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 De(_0x5256b3){return void 0x0!==_0x5256b3['getRootsAttributes'];}async function P(_0x20a4b6,_0x33919d,_0x181162){const _0x578d7c=_0x2ef362(_0x20a4b6,p);_0x578d7c['plugins']['push'](d,Fe),_0x578d7c['rootsAttributes']=De(_0x20a4b6)?_0x20a4b6['getRootsAttributes']():void 0x0;const _0x4e8e75=document['createDocumentFragment'](),_0x580df3=_0x20a4b6['config']['get']('trackChangesData')['editorCreator'],_0xc51f87=await _0x580df3(_0x578d7c,()=>function(_0x48d919){const _0x1e542e=document['createElement']('div');return _0x48d919['appendChild'](_0x1e542e),_0x1e542e;}(_0x4e8e75));!function(_0x1f47f3,_0x46209a){const _0x6213ee=_0x1f47f3['model']['document']['getRootNames']()['reduce']((_0x2b67e5,_0x48ea77)=>(_0x2b67e5[_0x48ea77]=_0x1f47f3['data']['get']({'rootName':_0x48ea77}),_0x2b67e5),{}),_0x46697b=_0x1f47f3['plugins']['get']('Users')['users']['map'](_0x5add30=>({'id':_0x5add30['id'],'name':_0x5add30['name']})),_0x4325a9=_0x1f47f3['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x15e89a=_0x1f47f3['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x302caf=_0x46209a['plugins']['get']('Users'),_0x44207d=_0x46209a['plugins']['get']('TrackChangesEditing'),_0x40ea61=_0x46209a['plugins']['get']('CommentsRepository');for(const _0x27e47b of _0x40ea61['getCommentThreads']())_0x27e47b['remove']();for(const _0x8bf5b8 of _0x46697b)_0x302caf['getUser'](_0x8bf5b8['id'])||_0x302caf['addUser'](_0x8bf5b8);_0x302caf['me']||_0x302caf['useAnonymousUser']();for(const _0x16b5eb of _0x15e89a)_0x40ea61['addCommentThread'](_0x16b5eb);for(const _0x35366b of _0x4325a9)_0x44207d['addSuggestionData'](_0x35366b);_0x46209a['data']['set'](_0x6213ee);}(_0x20a4b6,_0xc51f87),_0xc51f87['execute'](_0x33919d?'acceptAllSuggestions':'discardAllSuggestions');const _0x4c01a3=De(_0xc51f87)?_0xc51f87['getFullData'](_0x181162):_0xc51f87['data']['get'](_0x181162);return await _0xc51f87['destroy'](),_0x4c01a3;}class Me extends _0x195901{['options'];constructor(_0x142933,_0x19ac8c){super(_0x142933),this['options']=_0x19ac8c,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'](_0xa28256,_0x400c20){if(!this['element'])return;const _0x192ac1=[];for(const [_0x108bfa,_0x10884b]of _0xa28256){const _0x3facb1=document['createElement']('div');_0x3facb1['setAttribute']('data-ck-root-name',_0x108bfa),_0x3facb1['className']=_0x10884b['classes']+'\x20ck-track-changes-preview__root-container',_0x3facb1['innerHTML']=_0x10884b['content'],_0x192ac1['push'](_0x3facb1);}_0x400c20(this['element'],_0x192ac1),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x6f992a{constructor(_0x3d59bb){super(_0x3d59bb),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2fa1b3=this['editor'],_0x5869d0=_0x2fa1b3['locale'],_0x3e5bbf=_0x2fa1b3['plugins']['get']('Dialog');let _0x5133f2;const _0x20a8bc=function(_0x1ca7fd){const _0x3c0f87={};if('editables'in _0x1ca7fd['ui']['view']){for(const [_0x570b29,_0x4517d8]of Object['entries'](_0x1ca7fd['ui']['view']['editables']))_0x3c0f87[_0x570b29]=_0x4517d8['element'];}else _0x3c0f87[_0x1ca7fd['model']['document']['getRootNames']()[0x0]]=_0x1ca7fd['ui']['view']['editable']['element'];return _0x3c0f87;}(_0x2fa1b3),_0x53b4f8=function(_0x3fee9f){let _0x1e00b8=0x0;for(const _0x294ccb of Object['values'](_0x3fee9f))_0x1e00b8=Math['max'](_0x1e00b8,_0x294ccb['getBoundingClientRect']()['width']);let _0x52d850=0x0;for(const _0x1ce3be of Object['values'](_0x3fee9f))_0x52d850+=_0x1ce3be['getBoundingClientRect']()['height'];const _0x4d00c1=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x16eb16=Math['min'](_0x52d850,_0x4d00c1);return{'width':_0x1e00b8,'height':_0x16eb16};}(_0x20a8bc);_0x3e5bbf['show']({'id':'finalContentPreview','title':o(_0x5869d0,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5869d0,{'dialogRects':_0x53b4f8}),'onHide':()=>{_0x5133f2['detachFromDom']();},'onShow':()=>{_0x2fa1b3['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x49ea5c=>{const _0x3ce780=this['_standarizeRootsData'](_0x49ea5c,_0x2fa1b3,_0x20a8bc);_0x3e5bbf['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3ce780,_0x2fa1b3['config']['get']('trackChanges.preview.renderFunction'));}),_0x5133f2=new _0x447b17(_0x5869d0,[_0x3e5bbf['view']]),_0x5133f2['attachToDom'](),_0x5133f2['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2fa1b3['once']('destroy',()=>{_0x5133f2['detachFromDom']();});const _0x5246fb=_0x3e5bbf['view']['headerView']['class'];_0x3e5bbf['view']['headerView']['class']=_0x5246fb?_0x5246fb+'\x20ck-reset_all':'ck-reset_all',_0x3e5bbf['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x3e5bbf['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x387d1a=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x312a66=_0x387d1a['previewMode'],_0x4905b9={};if('$labels'===_0x312a66){for(const _0x39c338 of _0x387d1a['getMergeFieldsIds']())_0x4905b9[_0x39c338]=_0x387d1a['getLabel'](_0x39c338)||_0x39c338;}else{const _0x16a01a='$defaultValues'===_0x312a66?_0x387d1a['getDefaultValues']():_0x387d1a['getDataSetValues'](_0x312a66,!0x0);for(const _0x4adc8f of Object['entries'](_0x16a01a)){const [_0x5317d5,_0x573547]=_0x4adc8f;_0x4905b9[_0x5317d5]=null!==_0x573547?_0x573547:_0x387d1a['getLabel'](_0x5317d5)||_0x5317d5;}}return{'mergeFieldsData':_0x4905b9};}['_standarizeRootsData'](_0x5816e8,_0x3c827a,_0x1f4dbe){let _0x413b85;if('string'==typeof _0x5816e8){const _0x57fb3d=_0x3c827a['model']['document']['getRootNames']()[0x0];_0x413b85={[_0x57fb3d]:_0x5816e8};}else _0x413b85=_0x5816e8;const _0x3bc59d=this['_fixMediaEmbeds'](_0x413b85,_0x3c827a),_0x4e42f8=function(_0x5c969a,_0x269a86){for(const [_0x24dff5,_0x105033]of _0x5c969a)_0x105033['classes']=_0x269a86[_0x24dff5]['classList']['value']['replace']('ck-focused','');return _0x5c969a;}(this['_sortRoots'](_0x3c827a)['reduce']((_0x2c5319,_0x485ad5)=>(_0x2c5319['push']([_0x485ad5,{'content':_0x3bc59d[_0x485ad5],'classes':''}]),_0x2c5319),[]),_0x1f4dbe);return _0x4e42f8;}['_fixMediaEmbeds'](_0x4a7d10,_0x49c0c1){if(!_0x49c0c1['plugins']['has']('MediaEmbedEditing'))return _0x4a7d10;const _0x7afcfc=_0x49c0c1['plugins']['get']('MediaEmbedEditing');for(const [_0x107bd8,_0x187732]of Object['entries'](_0x4a7d10)){const _0x12cf8d=document['createElement']('div');_0x12cf8d['innerHTML']=_0x187732,(_0x12cf8d['querySelectorAll']('figure.media')['forEach'](_0xa4ec1b=>{const _0x327e56=_0xa4ec1b['querySelector']('oembed');if(_0x327e56){const _0x563e82=_0x327e56['getAttribute']('url');if(_0x563e82){const _0x41bb05=_0x7afcfc['registry']['getMediaViewElement'](new _0x3ad43d(_0x49c0c1['editing']['view']['document']),_0x563e82,{'elementName':'','renderForEditingView':!0x0}),_0x275b3f=document['createElement']('div');_0x275b3f['classList']['add']('ck-media__wrapper'),_0x41bb05['render'](_0x275b3f,_0x49c0c1['editing']['view']['domConverter']),_0x327e56['replaceWith'](_0x275b3f);}}}),_0x4a7d10[_0x107bd8]=_0x12cf8d['innerHTML']);}return _0x4a7d10;}['_sortRoots'](_0x1304af){if(!function(_0x3a641e){return void 0x0!==_0x3a641e['getRootsAttributes'];}(_0x1304af))return _0x1304af['model']['document']['getRootNames']();const _0x3d0685=[],_0x1bb20c=new Map();for(const _0x34eea6 of _0x1304af['model']['document']['getRootNames']()){const _0x360009=_0x1304af['editing']['view']['getDomRoot'](_0x34eea6)['getClientRects']()['item'](0x0);_0x3d0685['push'](_0x34eea6),_0x1bb20c['set'](_0x34eea6,_0x360009);}return _0x3d0685['sort']((_0x22befa,_0x3ee94f)=>{const _0x2968d6=_0x1bb20c['get'](_0x22befa),_0x5a6ac6=_0x1bb20c['get'](_0x3ee94f);return _0x2968d6['y']-_0x5a6ac6['y']||_0x2968d6['x']-_0x5a6ac6['x'];}),_0x3d0685;}}class Ue extends _0x2051ed{static get['requires'](){return[re,_0x36a810];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4493d5){super(_0x4493d5),_0x4493d5['commands']['add']('previewFinalContent',new te(this['editor'])),_0x4493d5['config']['define']('trackChanges.preview.renderFunction',(_0x3724a5,_0x4d7ec6)=>{for(const _0x388e3f of _0x4d7ec6)_0x3724a5['appendChild'](_0x388e3f);});}}export{v as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,D as DiscardSuggestionCommand,B as ExecuteOnAllSuggestionsCommand,O as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,x as Suggestion,M as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,$ as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};