@ckeditor/ckeditor5-track-changes 47.4.0-alpha.5 → 47.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x3a7f40,Plugin as _0x3274cb,PendingActions as _0x26c9ca}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2557e8,ObservableMixin as _0x4414c9,uid as _0x531b89,priorities as _0x296698,insertToPriorityArray as _0x4cc218,logWarning as _0x3bf1ea,getEnvKeystrokeText as _0x231584,FocusTracker as _0x4f281b,KeystrokeHandler as _0xabf8c7,Collection as _0x129ca7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0xd5318d,IconCancel as _0x92cecc,IconTrackChanges as _0x3b1e66}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x48e5c8,View as _0x5e1d9e,ViewCollection as _0x5b34fa,FocusCycler as _0x4e0adc,UIModel as _0x39b47f,createDropdown as _0x389741,SplitButtonView as _0x26c15b,addListToDropdown as _0x371943,MenuBarMenuView as _0xbe2358,MenuBarMenuListView as _0x4bb86,ListSeparatorView as _0x1aee94,MenuBarMenuListItemView as _0x21ec28,MenuBarMenuListItemButtonView as _0x2463a3,BodyCollection as _0x436014,Dialog as _0x48ca18}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x1567bc,DocumentCompare as _0x43db28,hashObject as _0x12c857,surroundingMarkersDetector as _0x42ea18,FOCUS_ANNOTATION_KEYSTROKE as _0x2ab3aa,AriaDescriptionView as _0x387eeb,setupThreadKeyboardNavigation as _0xfb400c,trimHtml as _0x2db41e,UserView as _0x3b2f56,LateFocusButtonView as _0x53f018,getDateTimeFormatter as _0x36fc7b,getAllMarkersDomElementsSorted as _0x1487c6,sanitizeEditorConfig as _0x2b1901}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x4c11ec,ModelLiveRange as _0x393f46,ModelLivePosition as _0x5b59fc,ViewDowncastWriter as _0x83e009}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x46a575,set as _0x57c3a8,isEqual as _0x4f9f48,unset as _0x26704d,omit as Pt}from'es-toolkit/compat';import{Delete as _0x31903c,Input as _0x5595f9}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x51080f}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x28c363}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 _0x3a7f40{['_enabledCommands'];constructor(_0x36a990,_0x9b01b2){super(_0x36a990),this['_enabledCommands']=_0x9b01b2,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 _0x18ea9c of this['editor']['commands']['commands']())_0x18ea9c['affectsData']&&!this['_enabledCommands']['has'](_0x18ea9c)&&_0x18ea9c['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x147780 of this['editor']['commands']['commands']())_0x147780['affectsData']&&!this['_enabledCommands']['has'](_0x147780)&&_0x147780['clearForceDisabled']('TrackChangesCommand');}}class v extends _0x3a7f40{['_suggestions'];constructor(_0x38b947,_0x795e7c){super(_0x38b947),this['_suggestions']=_0x795e7c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xf5b2a0){const _0x357317=this['_suggestions']['get'](_0xf5b2a0);if(!_0x357317)throw new _0x2557e8('track-changes-accept-suggestion-not-found',this);const _0xb33e36=_0x357317['getRanges']();this['editor']['model']['canEditAt'](_0xb33e36)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x357317);}}class D extends _0x3a7f40{['_suggestions'];constructor(_0x2f17b1,_0x55086c){super(_0x2f17b1),this['_suggestions']=_0x55086c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x55c349){const _0x122d76=this['_suggestions']['get'](_0x55c349);if(!_0x122d76)throw new _0x2557e8('track-changes-discard-suggestion-not-found',this);const _0x58edfb=_0x122d76['getRanges']();this['editor']['model']['canEditAt'](_0x58edfb)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x122d76);}}function ls(_0x27e8a2,_0x1a0fc9){let _0x26fb32='';return _0x26fb32+=_0x27e8a2['split']('*')['map']((_0x23f21f,_0x43b217)=>_0x43b217%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0x23f21f)+'</span>':rn(_0x23f21f))['join'](''),_0x1a0fc9&&(_0x26fb32+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1a0fc9['value']+'\x22\x20title=\x22'+_0x1a0fc9['title']+'\x22></span>'),_0x26fb32;}function rn(_0x4c5808){const _0x3c0f27=document['createElement']('span');return _0x3c0f27['innerText']=_0x4c5808,_0x3c0f27['innerHTML'];}function ts(_0x501734){return _0x501734['sort']((_0x2b7827,_0x5e322b)=>'attribute'===_0x2b7827['type']&&'attribute'!==_0x5e322b['type']?-0x1:'attribute'!==_0x2b7827['type']&&'attribute'===_0x5e322b['type']?0x1:'deletion'==_0x2b7827['type']&&'deletion'!=_0x5e322b['type']?-0x1:'deletion'!=_0x2b7827['type']&&'deletion'==_0x5e322b['type']?0x1:0x0);}function to(_0x421d31,_0xa6af15){let _0x4a4e36,_0x35c05b=0x0;const _0x21bc2c=[],_0xd6b88c=_0xa6af15['schema'];for(;_0x35c05b<_0x421d31['length'];){const _0xbf342f=_0x421d31[_0x35c05b],_0xc64bdc=_0x421d31[_0x35c05b+0x1];_0x4a4e36||(_0x4a4e36=_0xa6af15['createPositionBefore'](_0xbf342f)),cn(_0xa6af15,_0xbf342f,_0xc64bdc)||(_0x21bc2c['push'](_0xa6af15['createRange'](_0x4a4e36,_0xd6b88c['isObject'](_0xbf342f)?_0xa6af15['createPositionAfter'](_0xbf342f):_0xa6af15['createPositionAt'](_0xbf342f,'end'))),_0x4a4e36=null),_0x35c05b++;}return _0x21bc2c;}function cn(_0x1ccc68,_0x39f683,_0x10f3fd){if(!_0x10f3fd)return!0x1;const _0x48e019=_0x1ccc68['createPositionAfter'](_0x39f683),_0x8e9ce0=_0x1ccc68['createPositionBefore'](_0x10f3fd);return _0x48e019['isTouching'](_0x8e9ce0);}function rs(_0x3afbd3,_0x598303,_0x501ccc){for(;_0x501ccc['length'];){const _0x242b39=_0x501ccc['splice'](0x0,0x64);_0x3afbd3['change'](()=>{for(const _0x482e87 of _0x242b39)_0x482e87['isInContent']&&_0x598303['execute'](_0x482e87['id']);});}}class B extends _0x3a7f40{['_command'];['_suggestions'];constructor(_0x349b9d,_0x1a51ee,_0x25f036){super(_0x349b9d),this['_command']=_0x1a51ee,this['_suggestions']=_0x25f036,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2df31c=Array['from'](this['_suggestions']['values']())['some'](_0x188f26=>_0x188f26['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2df31c;}['execute'](){const _0x5d41d3=ts(Array['from'](this['_suggestions']['values']()));for(const _0x13cebf of _0x5d41d3){const _0x4b8465=_0x13cebf['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4b8465))return;}rs(this['editor']['model'],this['_command'],_0x5d41d3);}}class O extends _0x3a7f40{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x206fcb,_0x21bebc,_0x382983){super(_0x206fcb),this['_command']=_0x21bebc,this['_suggestions']=_0x382983,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x310f93=this['editor']['model']['document']['selection'],_0xeabb4e=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4027f9,_0x400d58){const _0x2670e6=Array['from'](_0x4027f9['getRanges']()),_0x18a7af=new Set();for(const _0x4f04ac of _0x400d58)if(_0x4f04ac['isInContent']){for(const _0x40e727 of _0x2670e6)for(const _0x171ab2 of _0x4f04ac['getRanges']())(_0x40e727['isIntersecting'](_0x171ab2)||_0x4027f9['isCollapsed']&&!_0x4f04ac['isMultiRange']&&_0x4f04ac['next']&&_0x171ab2['end']['isTouching'](_0x40e727['start']))&&_0x18a7af['add'](_0x4f04ac);}return _0x18a7af;}(_0x310f93,_0xeabb4e),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4758ff=ts(Array['from'](this['_selectedSuggestions']));for(const _0x3f2b4c of _0x4758ff){const _0x4a29c9=_0x3f2b4c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4a29c9))return;}rs(this['editor']['model'],this['_command'],_0x4758ff);}}class x extends/* #__PURE__ -- @preserve */
24
- _0x4414c9(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x255933,_0x2f245b){super(),this['id']=_0x2f245b['id'],this['type']=_0x2f245b['type'],this['subType']=_0x2f245b['subType']||null,this['author']=_0x2f245b['author'],this['creator']=_0x2f245b['creator']||_0x2f245b['author'],this['isExternal']=Boolean(_0x2f245b['attributes']&&_0x2f245b['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x2f245b['originalSuggestionId']||null,this['_model']=_0x255933,this['_onAccept']=_0x2f245b['onAccept'],this['_onDiscard']=_0x2f245b['onDiscard'],this['_onAttributesChange']=_0x2f245b['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2f245b['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 _0x54b32c=this;for(;_0x54b32c['previous'];)_0x54b32c=_0x54b32c['previous'];return _0x54b32c;}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'](_0x24368e){this['_markerNames']['add'](_0x24368e);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x59f7b3=>this['_model']['markers']['get'](_0x59f7b3))['filter'](_0x43f83d=>_0x43f83d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x21edd7=>{for(const _0x5cc77c of this['getMarkers']())_0x21edd7['removeMarker'](_0x5cc77c);}),this['_markerNames']['clear']();}['removeMarker'](_0x40845c){this['_model']['change'](_0x7ef3b0=>{_0x7ef3b0['removeMarker'](_0x40845c);}),this['_markerNames']['delete'](_0x40845c);}['addRange'](_0x556e63){const _0x1f9c88='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x1f9c88),this['_model']['change'](_0x1d5de8=>{_0x1d5de8['addMarker'](_0x1f9c88,{'range':_0x556e63,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x52db8f){for(const _0x508bf0 of this['getRanges']())if(_0x508bf0['isIntersecting'](_0x52db8f))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xbe583a=>_0xbe583a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3254b1,_0x174912)=>[..._0x3254b1,..._0x174912['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x497eb4=this['getRanges']();if(0x1!=_0x497eb4['length'])return null;const _0x5b05e8=_0x497eb4[0x0],_0x4d4858=_0x5b05e8['start']['nodeAfter'],_0x100174=_0x5b05e8['end']['nodeBefore'];return _0x4d4858 instanceof _0x4c11ec?_0x4d4858!=_0x100174?null:_0x4d4858: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 _0x3ca0b8=[];let _0x56156f=this['head'];for(;_0x56156f;)_0x3ca0b8['push'](_0x56156f),_0x56156f=_0x56156f['next'];return _0x3ca0b8;}['setAttribute'](_0xeb83bf,_0x2da4b3){const _0x5e0c69=_0x46a575(this['attributes']);_0x57c3a8(_0x5e0c69,_0xeb83bf,_0x2da4b3),_0x4f9f48(_0x5e0c69,this['attributes'])||(this['attributes']=_0x5e0c69,this['_onAttributesChange'](_0x5e0c69));}['removeAttribute'](_0x3fa116){const _0x463c90=_0x46a575(this['attributes']);_0x26704d(_0x463c90,_0x3fa116),_0x4f9f48(_0x463c90,this['attributes'])||(this['attributes']=_0x463c90,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 _0x531b89()['substr'](0x1,0x5);}}function o(_0x542fba,_0x4a304a,_0x396b13){const _0x1c351c=_0x542fba['t'],t=_0x542fba['t'];switch(_0x4a304a){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',_0x396b13);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x396b13);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x396b13);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x396b13);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x396b13);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',_0x396b13);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x396b13);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',_0x396b13);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x396b13);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x396b13);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x396b13);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x396b13);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x396b13);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x396b13);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x396b13);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x396b13);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x396b13);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x396b13);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x396b13);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x396b13);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x396b13);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x396b13);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x396b13);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x396b13);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x396b13);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'},_0x396b13);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x396b13);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x396b13);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x396b13);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x396b13);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x396b13);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x396b13);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x396b13);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'},_0x396b13);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x396b13);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x396b13);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x396b13);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x396b13);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'},_0x396b13);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x396b13);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'},_0x396b13);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_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});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'},_0x396b13);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x396b13);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'},_0x396b13);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x396b13);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'},_0x396b13);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x396b13);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x396b13);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x396b13);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x396b13);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x396b13);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'},_0x396b13);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x396b13);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 _0x1c351c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x396b13);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1c351c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x396b13);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x396b13);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'},_0x396b13);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'},_0x396b13);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'},_0x396b13);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4a304a;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4ce4a3,_0x147bc5){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4ce4a3,this['_locale']=_0x147bc5;}['getDescriptions'](_0x27fe3d){const _0x30d51d=[],_0x44b93c=new Set(),_0x2027cd=new Set();for(let _0x347a1f=0x0;_0x347a1f<_0x27fe3d['length'];_0x347a1f++){const _0x19642b=_0x27fe3d[_0x347a1f];if(!_0x19642b['isInContent'])continue;const _0x49f4d4=this['_handleCustomCallbackDescription'](_0x19642b);if(_0x49f4d4){if(null!=_0x19642b['subType']){if(_0x44b93c['has'](_0x19642b['subType']))continue;_0x44b93c['add'](_0x19642b['subType']);}_0x30d51d['push'](_0x49f4d4);}else{if('attribute'==_0x19642b['type']){const _0x35ac5a=_0x19642b['data']['key'];if(_0x2027cd['has'](_0x35ac5a))continue;_0x2027cd['add'](_0x19642b['data']['key']),_0x35ac5a==m?this['_handleRenameSuggestionDescription'](_0x30d51d,_0x19642b):this['_handleAttributeSuggestionDescription'](_0x30d51d,_0x19642b);continue;}'insertion'!=_0x19642b['type']&&'deletion'!=_0x19642b['type']||this['_handleInsertRemoveSuggestionDescription'](_0x30d51d,_0x19642b,_0x27fe3d[_0x347a1f+0x1]);}}return this['_resolveDescriptionItems'](_0x30d51d);}['registerDescriptionCallback'](_0x196b0a){this['_customCallbacks']['push'](_0x196b0a);}['registerElementLabel'](_0x5454ad,_0x129b19,_0x8b9283=_0x296698['normal']){'function'==typeof _0x5454ad?_0x4cc218(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5454ad,'label':_0x129b19,'priority':_0x8b9283}):this['_itemLabels']['set'](_0x5454ad,_0x129b19);}['registerAttributeLabel'](_0x3ea810,_0x4b45fb){this['_attributeLabels']['set'](_0x3ea810,_0x4b45fb);}['getItemLabel'](_0x1f65b6,_0x16c9e1=0x1){let _0x12d909;for(const _0x3e1d26 of this['_itemLabelsCallbacks'])if(_0x3e1d26['matchingCallback'](_0x1f65b6)){_0x12d909=_0x3e1d26['label'];break;}return _0x12d909||(_0x12d909=this['_itemLabels']['get'](_0x1f65b6['name'])),_0x12d909?_0x12d909(_0x16c9e1):0x1!==_0x16c9e1?_0x16c9e1+'\x20'+_0x1f65b6['name']+'s':''+_0x1f65b6['name'];}['_addDescriptionItems'](_0x31d5ea,_0x227fef){const _0x3ade80=_0x227fef['getFirstRange']()['getWalker'](),_0x2327fa='insertion'==_0x227fef['type']?'add':'remove';for(const _0x11510a of _0x3ade80){const _0x1b34c6=_0x11510a['item'],_0x189ffd=_0x31d5ea[_0x31d5ea['length']-0x1];if(_0x1b34c6['is']('$textProxy'))_0x189ffd&&_0x189ffd['type']['indexOf']('Container')>-0x1&&_0x31d5ea['pop'](),_0x189ffd&&'text'==_0x189ffd['type']?_0x189ffd[_0x2327fa]+=_0x1b34c6['data']:_0x31d5ea['push']({'type':'text','add':'add'==_0x2327fa?_0x1b34c6['data']:'','remove':'remove'==_0x2327fa?_0x1b34c6['data']:''});else{if(this['_schema']['isObject'](_0x1b34c6)){const _0x403dee=_0x1b34c6;if(_0x189ffd&&_0x189ffd['type']['indexOf']('Container')>-0x1&&_0x31d5ea['pop'](),'elementEnd'==_0x11510a['type'])continue;_0x189ffd&&_0x189ffd['type']==_0x2327fa+'Object'&&_0x189ffd['element']['name']==_0x403dee['name']?_0x189ffd['quantity']++:_0x31d5ea['push']({'type':_0x2327fa+'Object','element':_0x403dee,'quantity':0x1}),_0x3ade80['skip'](_0x43160d=>!('elementEnd'==_0x43160d['type']&&_0x43160d['item']==_0x1b34c6));}else{if(this['_schema']['checkChild'](_0x1b34c6,'$text')||_0x1b34c6['is']('element','softBreak')){const _0x2942c6=_0x1b34c6;if('add'==_0x2327fa&&'elementStart'==_0x11510a['type']||'remove'==_0x2327fa&&'elementEnd'==_0x11510a['type'])continue;if(_0x189ffd&&-0x1==_0x189ffd['type']['indexOf']('Container')){'text'==_0x189ffd['type']&&(_0x189ffd[_0x2327fa]+='\x0a');continue;}let _0x2b1123;if(_0x2b1123='add'==_0x2327fa?_0x2942c6['nextSibling']&&!this['_schema']['isObject'](_0x2942c6['nextSibling'])?_0x2942c6['nextSibling']:null:_0x2942c6['previousSibling']&&!this['_schema']['isObject'](_0x2942c6['previousSibling'])?_0x2942c6['previousSibling']:null,_0x2942c6['isEmpty']||_0x2b1123&&_0x2b1123['isEmpty']){const _0xf5e4fc=_0x2b1123&&_0x2b1123['isEmpty']?_0x2b1123:_0x2942c6;_0x189ffd&&_0x189ffd['type']==_0x2327fa+'EmptyContainer'&&_0x189ffd['element']['name']==_0xf5e4fc['name']?_0x189ffd['quantity']++:_0x31d5ea['push']({'type':_0x2327fa+'EmptyContainer','element':_0xf5e4fc,'quantity':0x1});}else _0x31d5ea['push']({'type':_0x2327fa+'Container','element':_0x2942c6});}}}}}['_resolveDescriptionItems'](_0x2d50d7){const _0x380486=this['_locale'],_0x2df8b2=[],_0x126518=[],_0x288621=[];for(const _0x4bedac of _0x2d50d7)switch(_0x4bedac['type']){case'text':if(_0x4bedac['add']=_0x4bedac['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4bedac['remove']=_0x4bedac['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4bedac['add']&&''!=_0x4bedac['remove']){_0x2df8b2['push']({'type':'replace','content':o(_0x380486,'REPLACE_TEXT',['\x22'+_0x4bedac['remove']+'\x22','\x22'+_0x4bedac['add']+'\x22'])});continue;}if(null!=_0x4bedac['add']['match'](/^ +$/)){_0x2df8b2['push']({'type':'insertion','content':o(_0x380486,'*Insert:*\x20%0',o(_0x380486,'ELEMENT_SPACE',_0x4bedac['add']['length']))});continue;}if(null!=_0x4bedac['remove']['match'](/^ +$/)){_0x2df8b2['push']({'type':'deletion','content':o(_0x380486,'*Remove:*\x20%0',o(_0x380486,'ELEMENT_SPACE',_0x4bedac['remove']['length']))});continue;}if(''!=_0x4bedac['add']){_0x2df8b2['push']({'type':'insertion','content':o(_0x380486,'*Insert:*\x20%0','\x22'+_0x4bedac['add']+'\x22')});continue;}_0x2df8b2['push']({'type':'deletion','content':o(_0x380486,'*Remove:*\x20%0','\x22'+_0x4bedac['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2df8b2['push']({'type':'insertion','content':o(_0x380486,'*Insert:*\x20%0',this['getItemLabel'](_0x4bedac['element'],_0x4bedac['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2df8b2['push']({'type':'deletion','content':o(_0x380486,'*Remove:*\x20%0',this['getItemLabel'](_0x4bedac['element'],_0x4bedac['quantity']))});continue;case'addContainer':_0x2df8b2['push']({'type':'insertion','content':o(_0x380486,'*Split:*\x20%0',this['getItemLabel'](_0x4bedac['element'],_0x4bedac['quantity']))});continue;case'removeContainer':_0x2df8b2['push']({'type':'deletion','content':o(_0x380486,'*Merge:*\x20%0',this['getItemLabel'](_0x4bedac['element'],_0x4bedac['quantity']))});continue;case'addFormat':_0x126518['push'](_0x4bedac['key']);continue;case'removeFormat':_0x288621['push'](_0x4bedac['key']);continue;default:_0x2df8b2['push'](_0x4bedac);}if(_0x126518['length']){const _0x10bb97=_0x126518['map'](_0x150c83=>this['_attributeLabels']['has'](_0x150c83)?this['_attributeLabels']['get'](_0x150c83):_0x150c83)['join'](',\x20');_0x2df8b2['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x10bb97)});}if(_0x288621['length']){const _0x46b480=_0x288621['map'](_0x1c6af8=>this['_attributeLabels']['has'](_0x1c6af8)?this['_attributeLabels']['get'](_0x1c6af8):_0x1c6af8)['join'](',\x20');_0x2df8b2['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x46b480)});}return _0x2df8b2;}['_handleCustomCallbackDescription'](_0x349dff){for(const _0x4005ba of this['_customCallbacks']){const _0x56e33e=_0x4005ba(_0x349dff);if(_0x56e33e&&'type'in _0x56e33e)return _0x56e33e;}}['_handleAttributeSuggestionDescription'](_0xc1c72b,_0xf4da65){const _0x25b9bd=_0xf4da65['data'],_0x2dd0ac=void 0x0===_0x25b9bd['newValue']?'removeFormat':'addFormat';_0xc1c72b['push']({'type':_0x2dd0ac,'key':_0x25b9bd['key']});}['_handleRenameSuggestionDescription'](_0x56e654,_0x357b4b){_0x56e654['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x357b4b['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x123b23,_0x207b7c,_0x4caa51){if(this['_addDescriptionItems'](_0x123b23,_0x207b7c),_0x4caa51&&_0x4caa51['getFirstRange']()&&!_0x207b7c['getFirstRange']()['end']['isEqual'](_0x4caa51['getFirstRange']()['start'])){const _0x28f80e=_0x123b23[_0x123b23['length']-0x1],_0x116248='insertion'==_0x207b7c['type']?'add':'remove';_0x28f80e&&'text'==_0x28f80e['type']&&(_0x28f80e[_0x116248]+='\x0a');}}}class R extends _0x3274cb{['afterInit'](){const _0x2f4590=this['editor'],_0x2d2bde=_0x2f4590['plugins']['get']('TrackChangesEditing');_0x2f4590['commands']['get']('showAIAssistant')&&_0x2d2bde['enableCommand']('showAIAssistant');}}class T extends _0x3274cb{['afterInit'](){const _0x3b7cd8=this['editor'],_0x3b2e55=_0x3b7cd8['plugins']['get']('TrackChangesEditing');_0x3b7cd8['commands']['get']('toggleAi')&&_0x3b2e55['enableCommand']('toggleAi');}}class E extends _0x3274cb{['afterInit'](){const _0x44dcb5=this['editor'],_0x42fc7e=_0x44dcb5['plugins']['get']('TrackChangesEditing');_0x44dcb5['commands']['get']('aiQuickAction')&&_0x42fc7e['enableCommand']('aiQuickAction');}}class U extends _0x3274cb{['afterInit'](){const _0x42c78c=this['editor'],_0x4a04f4=_0x42c78c['locale'];if(!_0x42c78c['plugins']['has']('AlignmentEditing'))return;const _0x23dd22=_0x42c78c['plugins']['get']('TrackChangesEditing');_0x23dd22['enableDefaultAttributesIntegration']('alignment'),_0x23dd22['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4a04f4,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2dc49e=this['editor'],_0x12e0f0=_0x2dc49e['locale'];_0x2dc49e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18e267=>{if('formatBlock'!=_0x18e267['type'])return;const {data:_0x15be8f}=_0x18e267;if(_0x15be8f&&'alignment'==_0x15be8f['commandName']){const _0x22f507=_0x15be8f['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x12e0f0,'*Format:*\x20%0',function(_0x26ffa5){switch(_0x26ffa5){case'left':return o(_0x12e0f0,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x12e0f0,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x12e0f0,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x12e0f0,'FORMAT_JUSTIFY_TEXT');}}(_0x22f507))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x3274cb{['afterInit'](){const _0x5a4efd=this['editor'],_0x14a215=_0x5a4efd['plugins']['get']('TrackChangesEditing'),_0x124d45=_0x5a4efd['locale'];for(const _0x18755a of ti){if(!_0x5a4efd['plugins']['has'](_0x18755a))continue;const _0x431b49=_0x18755a['slice'](0x0,-0x7)['toLowerCase'](),_0x2f4230='FORMAT_'+_0x431b49['toUpperCase']();_0x14a215['enableDefaultAttributesIntegration'](_0x431b49),_0x14a215['descriptionFactory']['registerAttributeLabel'](_0x431b49,o(_0x124d45,_0x2f4230));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd7464d=this['editor'],_0x119079=_0xd7464d['locale'],_0x3e02ec=_0xd7464d['plugins']['get']('TrackChangesEditing');function _0x26af2a(_0x1a0ce7,_0x454c91){_0x3e02ec['descriptionFactory']['registerDescriptionCallback'](_0x40a83d=>{if('formatInline'!=_0x40a83d['type'])return;const {data:_0x475702}=_0x40a83d;return _0x475702&&_0x475702['commandName']===_0x1a0ce7?_0x475702['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x119079,'*Format:*\x20%0',_0x454c91)}:{'type':'format','content':o(_0x119079,'*Remove\x20format:*\x20%0',_0x454c91)}:void 0x0;});}_0x26af2a('bold',o(_0x119079,'FORMAT_BOLD')),_0x26af2a('italic',o(_0x119079,'FORMAT_ITALIC')),_0x26af2a('underline',o(_0x119079,'FORMAT_UNDERLINE')),_0x26af2a('code',o(_0x119079,'FORMAT_CODE')),_0x26af2a('strikethrough',o(_0x119079,'FORMAT_STRIKETHROUGH')),_0x26af2a('subscript',o(_0x119079,'FORMAT_SUBSCRIPT')),_0x26af2a('superscript',o(_0x119079,'FORMAT_SUPERSCRIPT'));}}class F extends _0x3274cb{['afterInit'](){const _0xa69424=this['editor'],_0xecd996=_0xa69424['locale'];if(!_0xa69424['plugins']['has']('BlockQuoteEditing'))return;const _0x1edecd=_0xa69424['plugins']['get']('TrackChangesEditing'),_0x52e319=this['editor']['commands']['get']('blockQuote');_0x1edecd['enableCommand']('blockQuote',(_0x327095,_0x576537={})=>{const _0x2e0c5b=this['editor']['model']['document']['selection'],_0x1c4ebf=_0x576537&&void 0x0!==_0x576537['forceValue']?_0x576537['forceValue']:!_0x52e319['value'];let _0x3589e9=[];if(_0x1c4ebf){const _0xe2bfb9=Array['from'](_0x2e0c5b['getSelectedBlocks']())['filter'](_0x39b4f2=>oo(_0x39b4f2)||function(_0x5c87e2,_0xff8fd8){const _0x4fcf2b=_0xff8fd8['checkChild'](_0x5c87e2['parent'],'blockQuote'),_0x33903a=_0xff8fd8['checkChild'](['$root','blockQuote'],_0x5c87e2);return _0x4fcf2b&&_0x33903a;}(_0x39b4f2,this['editor']['model']['schema']));_0x3589e9=to(_0xe2bfb9,_0xa69424['model']);}else{const _0x5d65d6=Array['from'](_0x2e0c5b['getSelectedBlocks']())['filter'](_0x2f4370=>oo(_0x2f4370));_0x3589e9=to(_0x5d65d6,_0xa69424['model']);}_0xa69424['model']['change'](()=>{for(const _0x2c8a8e of _0x3589e9)_0x1edecd['markBlockFormat'](_0x2c8a8e,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1c4ebf}]});});}),_0x1edecd['descriptionFactory']['registerDescriptionCallback'](_0x2f25d1=>{const {data:_0x11a70b}=_0x2f25d1;if(_0x11a70b&&'blockQuote'==_0x11a70b['commandName']){const _0x2f9dad=o(_0xecd996,'ELEMENT_BLOCK_QUOTE');return _0x11a70b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xecd996,'*Set\x20format:*\x20%0',_0x2f9dad)}:{'type':'format','content':o(_0xecd996,'*Remove\x20format:*\x20%0',_0x2f9dad)};}});}}function oo(_0x5dc96a){return'blockQuote'==_0x5dc96a['parent']['name'];}class G extends _0x3274cb{['afterInit'](){const _0x198f9e=this['editor'],_0x1453d6=_0x198f9e['locale'],_0x29d986=_0x198f9e['plugins']['get']('TrackChangesEditing');_0x198f9e['plugins']['has']('BookmarkEditing')&&(_0x29d986['enableCommand']('insertBookmark'),_0x29d986['enableDefaultAttributesIntegration']('updateBookmark'),_0x29d986['descriptionFactory']['registerDescriptionCallback'](_0x4ee218=>{if('insertion'!=_0x4ee218['type']&&'deletion'!=_0x4ee218['type']&&'attribute'!=_0x4ee218['type'])return;const _0x17ab48=_0x4ee218['getContainedElement']();if(null==_0x17ab48)return;if(!_0x17ab48['is']('element','bookmark'))return;const _0x9479=_0x17ab48['getAttribute']('bookmarkId');if('insertion'==_0x4ee218['type'])return{'type':'insertion','content':o(_0x1453d6,'*Insert:*\x20%0','\x22'+_0x9479+'\x22\x20'+o(_0x1453d6,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4ee218['type'])return{'type':'deletion','content':o(_0x1453d6,'*Remove:*\x20%0','\x22'+_0x9479+'\x22\x20'+o(_0x1453d6,'ELEMENT_BOOKMARK'))};const {data:_0x38b45a}=_0x4ee218;if(!_0x38b45a||'bookmarkId'!=_0x38b45a['key'])return;return{'type':'format','content':o(_0x1453d6,'*Set\x20bookmark:*\x20%0','\x22'+_0x38b45a['newValue']+'\x22')};}));}}class L extends _0x3274cb{['afterInit'](){const _0x58a7ee=this['editor'];_0x58a7ee['plugins']['has']('CaseChange')&&(_0x58a7ee['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x58a7ee['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x58a7ee['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x3274cb{['afterInit'](){const _0xd8fe40=this['editor'];_0xd8fe40['commands']['get']('ckbox')&&_0xd8fe40['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x3274cb{['afterInit'](){const _0x50cf5d=this['editor'];if(!_0x50cf5d['plugins']['has']('CodeBlock'))return;const _0x31683b=_0x50cf5d['plugins']['get']('TrackChangesEditing'),_0x3713ee=_0x50cf5d['locale'],_0x4afd54=_0x50cf5d['config']['get']('codeBlock')['languages'],_0x289022=_0x50cf5d['commands']['get']('codeBlock');_0x31683b['enableCommand']('indentCodeBlock'),_0x31683b['enableCommand']('outdentCodeBlock'),_0x31683b['enableCommand']('codeBlock',(_0x44c5a5,_0x4a8ffa={})=>{const _0x43d789=_0x50cf5d['model'],_0x22e3fe=_0x50cf5d['model']['document']['selection'],_0x268de2=_0x4a8ffa&&void 0x0!==_0x4a8ffa['forceValue']?_0x4a8ffa['forceValue']:!_0x289022['value'];let _0x15aeb1;_0x4a8ffa['language']||(_0x4a8ffa['language']=_0x4afd54[0x0]['language']),_0x15aeb1=_0x268de2?Array['from'](_0x22e3fe['getSelectedBlocks']())['filter'](_0x4db3a9=>co(_0x4db3a9)||function(_0x59aaf1,_0x5cd10c){if(_0x59aaf1['is']('rootElement')||_0x5cd10c['isLimit'](_0x59aaf1))return!0x1;return _0x5cd10c['checkChild'](_0x59aaf1['parent'],'codeBlock');}(_0x4db3a9,_0x43d789['schema'])):Array['from'](_0x22e3fe['getSelectedBlocks']())['filter'](_0x597cdc=>co(_0x597cdc));const _0x4bbe43=to(_0x15aeb1,_0x43d789);_0x43d789['change'](()=>{for(const _0xbc8ea1 of _0x4bbe43)_0x31683b['markBlockFormat'](_0xbc8ea1,{'commandName':'codeBlock','commandParams':[{..._0x4a8ffa,'forceValue':_0x268de2}],'formatGroupId':'blockName'});});}),(_0x31683b['descriptionFactory']['registerElementLabel']('codeBlock',_0x2ef7ef=>o(_0x3713ee,'ELEMENT_CODE_BLOCK',_0x2ef7ef)),_0x31683b['descriptionFactory']['registerDescriptionCallback'](_0x5ddc63=>{if('formatBlock'!=_0x5ddc63['type'])return;const _0x5df104=_0x3713ee['t'],{data:_0x2c6c5a}=_0x5ddc63;if(!_0x2c6c5a||'codeBlock'!=_0x2c6c5a['commandName'])return;const _0x51dc42=_0x2c6c5a['commandParams'][0x0]['language'],_0x5638d3=_0x5df104(_0x4afd54['find'](_0x318c85=>_0x318c85['language']===_0x51dc42)['label'])['toLowerCase']();return _0x2c6c5a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3713ee,'*Set\x20format:*\x20%0',o(_0x3713ee,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5638d3+')')}:{'type':'format','content':o(_0x3713ee,'*Remove\x20format:*\x20%0',o(_0x3713ee,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x256dd6){return'codeBlock'==_0x256dd6['name'];}class z extends _0x3274cb{['afterInit'](){const _0x22f614=this['editor'];if(!_0x22f614['plugins']['has']('CommentsEditing'))return;_0x22f614['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x3274cb{static get['requires'](){return[_0x31903c];}['init'](){const _0x107303=this['editor'],_0x1c7cb0=_0x107303['plugins']['get']('TrackChangesEditing');_0x1c7cb0['enableCommand']('delete');const _0x1fbe9d=_0x107303['commands']['get']('deleteForward');_0x1c7cb0['enableCommand']('deleteForward',(_0x10d6a8,_0x2aee59={})=>{const _0x56361d=_0x107303['model']['createSelection'](_0x107303['model']['document']['selection']);_0x56361d['isCollapsed']&&_0x107303['model']['modifySelection'](_0x56361d,{'direction':'forward','unit':_0x2aee59['unit']});const _0x211a47=_0x56361d['getFirstRange'](),_0x2104d5=_0x393f46['fromRange'](_0x211a47);let _0x4d98eb;_0x10d6a8(_0x2aee59),_0x4d98eb='$graveyard'==_0x2104d5['root']['rootName']?_0x107303['model']['createRange'](_0x211a47['start']):_0x107303['model']['createRange'](_0x2104d5['start'],_0x2104d5['end']),_0x2104d5['detach'](),_0x107303['model']['enqueueChange'](_0x1fbe9d['buffer']['batch'],_0x2dfba3=>{_0x1fbe9d['buffer']['lock'](),_0x2dfba3['setSelection'](_0x2dfba3['createRange'](_0x4d98eb['end'])),_0x1fbe9d['buffer']['unlock']();});});}}class W extends _0x3274cb{['afterInit'](){const _0x42257b=this['editor'];if(!_0x42257b['plugins']['has']('ListEditing'))return;const _0x2ee974=_0x42257b['locale'],_0x11bc63=_0x42257b['plugins']['get']('TrackChangesEditing'),_0x4162c0=_0x42257b['plugins']['has']('TodoListEditing'),_0x49600c=!!_0x42257b['config']['get']('list.multiBlock');function _0x5f285a(_0x5ea2f9){return{'type':'format','content':''+o(_0x2ee974,'*Set\x20format:*\x20%0',_0x5ea2f9)};}function _0x388e29(_0xd15188){return{'type':'format','content':''+o(_0x2ee974,'*Remove\x20format:*\x20%0',_0xd15188)};}_0x11bc63['enableDefaultAttributesIntegration']('numberedList'),_0x11bc63['enableDefaultAttributesIntegration']('bulletedList'),_0x11bc63['enableDefaultAttributesIntegration']('customNumberedList'),_0x11bc63['enableDefaultAttributesIntegration']('customBulletedList'),_0x11bc63['enableDefaultAttributesIntegration']('indentList'),_0x11bc63['enableDefaultAttributesIntegration']('outdentList'),_0x11bc63['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x11bc63['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x49600c&&(_0x11bc63['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x11bc63['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4162c0&&(_0x11bc63['enableDefaultAttributesIntegration']('todoList'),_0x11bc63['enableDefaultAttributesIntegration']('checkTodoList'),_0x11bc63['descriptionFactory']['registerDescriptionCallback'](_0x25d81c=>{const {data:_0x3341a7}=_0x25d81c;if(_0x3341a7&&'todoListChecked'==_0x3341a7['key'])return{'type':'format','content':_0x3341a7['newValue']?o(_0x2ee974,'*Check\x20item*'):o(_0x2ee974,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5d3d07=>{if(_0x5d3d07['batch']['isUndo'])return!0x1;let _0x3dc714=!0x1;const _0xcf38e4=_0x11bc63['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x36e92b=>'todoListChecked'===_0x11bc63['_getAttributeKey'](_0x36e92b));for(const _0x4bdd50 of _0xcf38e4){'todo'!=_0x4bdd50['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x11bc63['_findSuggestions'](_0x4bdd50['getFirstRange'](),'attribute')['find'](_0x421ccc=>'listType'===_0x11bc63['_getAttributeKey'](_0x421ccc['suggestion']))||(_0x5d3d07['removeMarker'](_0x4bdd50['getFirstMarker']()),_0x3dc714=!0x0));}return _0x3dc714;})),_0x11bc63['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2ee974,'FORMAT_INDENT'));const _0x35521d={'type':'format','content':''};_0x11bc63['descriptionFactory']['registerDescriptionCallback'](_0x4958d5=>{const {data:_0x411937}=_0x4958d5;if(!_0x411937||'listType'!=_0x411937['key'])return;let _0x32b354=_0x4958d5['head'];for(;_0x32b354;){if(_0x32b354['data']&&(('listStyle'==_0x32b354['data']['key']||'listMarkerStyle'==_0x32b354['data']['key'])&&(_0x32b354['data']['newValue']&&'default'!=_0x32b354['data']['newValue']||'default'!=_0x32b354['data']['oldValue']&&!_0x411937['newValue'])||!_0x49600c&&_0x32b354['data']['key']==m))return _0x35521d;_0x32b354=_0x32b354['next'];}if(null==_0x411937['newValue'])switch(_0x411937['oldValue']){case'bulleted':return _0x388e29(o(_0x2ee974,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x388e29(o(_0x2ee974,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x388e29(o(_0x2ee974,'ELEMENT_TODO_LIST'));}switch(_0x411937['newValue']){case'bulleted':return _0x5f285a(o(_0x2ee974,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5f285a(o(_0x2ee974,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5f285a(o(_0x2ee974,'ELEMENT_TODO_LIST'));}}),_0x11bc63['descriptionFactory']['registerDescriptionCallback'](_0x4217dd=>{const {data:_0x5c3c9f}=_0x4217dd;if(_0x5c3c9f&&'listIndent'==_0x5c3c9f['key'])return null==_0x5c3c9f['newValue']||null==_0x5c3c9f['oldValue']&&0x0==_0x5c3c9f['newValue']?_0x35521d:void 0x0;}),_0x11bc63['descriptionFactory']['registerDescriptionCallback'](_0x5220c0=>{if('attribute'!=_0x5220c0['type'])return;const {data:_0x35174b}=_0x5220c0;if(!_0x35174b||'listItemId'!=_0x35174b['key'])return;const _0x2422ed=Te(_0x5220c0);return'newValue'==_0x2422ed?{'type':'format','content':o(_0x2ee974,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2422ed?{'type':'format','content':o(_0x2ee974,'*Split:*\x20list\x20item')}:_0x35521d;}),_0x42257b['model']['document']['registerPostFixer'](_0x37abee=>this['listItemIdFixer'](_0x37abee)),_0x42257b['model']['document']['registerPostFixer'](_0x31fff0=>this['noTrackChangesFixer'](_0x31fff0)),_0x42257b['model']['document']['on']('change:data',(_0x4173da,_0x46e256)=>{if(_0x46e256['isUndo']||!_0x46e256['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1120ef){if(_0x1120ef['batch']['isUndo']||!_0x1120ef['batch']['isLocal'])return!0x1;let _0x25c230=!0x1;const _0x9a52ca=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x24add9=>_0x24add9['data']&&'listItemId'==_0x24add9['data']['key'])['filter'](_0x48c07c=>_0x48c07c['data']['newValue']&&_0x48c07c['data']['oldValue']);for(const _0x1b1766 of _0x9a52ca)Te(_0x1b1766)||(_0x1120ef['removeMarker'](_0x1b1766['getFirstMarker']()),_0x25c230=!0x0);return _0x25c230;}['noTrackChangesFixer'](_0x296b77){if(_0x296b77['batch']['isUndo']||!_0x296b77['batch']['isLocal'])return!0x1;const _0x4419b6=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4419b6['trackChangesCommand']['value'])return!0x1;let _0x44ee33=!0x1;const _0xb5018a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x694aa1=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x345426=>'attribute'==_0x345426['type'])['filter'](_0x231d76=>_0xb5018a['includes'](_0x231d76['attributeKey']));if(0x0==_0x694aa1['length'])return _0x44ee33;for(const _0x3dc56f of _0x694aa1){const _0x1b13e3=_0x4419b6['_findSuggestions'](_0x3dc56f['range'],'attribute')['filter'](_0x4c8b26=>!_0x4c8b26['meta']['isNextTo'])['map'](_0x1f8e15=>_0x1f8e15['suggestion'])['filter'](_0x5eac8a=>{const _0x2171cf=_0x4419b6['_getAttributeKey'](_0x5eac8a);return _0xb5018a['includes'](_0x2171cf);});if(_0x1b13e3['length']){for(const _0x572b0d of _0x1b13e3)_0x296b77['removeMarker'](_0x572b0d['getFirstMarker']());_0x44ee33=!0x0;}}return _0x44ee33;}['assureChains'](){const _0xb9b32c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ff44c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4e70ea;const _0x3dd355=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3b942d=>{if(_0x3b942d['data']['oldRange']||!_0x3b942d['data']['newRange'])return null;if(!_0x3b942d['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x93b5ee}=_0xb9b32c['_splitMarkerName'](_0x3b942d['name']);if(!_0xb9b32c['hasSuggestion'](_0x93b5ee))return null;const _0x3369fc=_0xb9b32c['getSuggestion'](_0x93b5ee);return _0x1ff44c['includes'](_0x3369fc['data']['key']);})['map'](_0x3513e4=>{const {id:_0x85a9fe}=_0xb9b32c['_splitMarkerName'](_0x3513e4['name']),_0x4cd801=_0xb9b32c['getSuggestion'](_0x85a9fe);return _0x4e70ea=_0x4cd801['attributes']['groupId'],_0x4cd801['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3dd355['size'])return;const _0x508d0c=_0xb9b32c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x98a224=>'attribute'==_0x98a224['type']&&_0x98a224['data']&&_0x1ff44c['includes'](_0x98a224['data']['key'])&&_0x98a224['attributes']['groupId']!=_0x4e70ea)['map'](_0x4ffec0=>({'listItem':_0x4ffec0['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4ffec0['attributes']['groupId']})),_0xe71ae0=new Set();for(const {groupId:_0x4b54d6,listItem:_0x390250}of _0x508d0c)_0x3dd355['has'](_0x390250)&&_0xe71ae0['add'](_0x4b54d6);for(const _0x255019 of _0xb9b32c['getSuggestions']())_0xe71ae0['has'](_0x255019['attributes']['groupId'])&&_0x255019['setAttribute']('groupId',_0x4e70ea);}['_supportLegacySuggestions'](){const _0x4398ba=this['editor'],_0x1abf0f=_0x4398ba['locale'],_0x519633=_0x4398ba['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x519633['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x155adb,_0x1322e6){const _0x129689=[];for(let _0x31beeb of _0x155adb)_0x31beeb['start']['nodeAfter']===_0x31beeb['end']['parent']&&(_0x31beeb=_0x4398ba['model']['createRange'](_0x4398ba['model']['createPositionAt'](_0x31beeb['start']['nodeAfter'],0x0))),_0x129689['push'](_0x31beeb);_0x4398ba['model']['change'](_0x5220b2=>{const _0x56d9a4=_0x4398ba['model']['document']['selection'],_0x2784fc=Array['from'](_0x56d9a4['getRanges']())['map'](_0x4fc4e4=>_0x393f46['fromRange'](_0x4fc4e4));_0x5220b2['setSelection'](_0x129689),_0x4398ba['commands']['get'](_0x1322e6['commandName'])['refresh'](),_0x1322e6['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4398ba['execute'](_0x1322e6['commandName'],..._0x1322e6['commandParams']),_0x5220b2['setSelection'](_0x2784fc);for(const _0x613c60 of _0x2784fc)_0x613c60['detach']();});}),_0x519633['descriptionFactory']['registerElementLabel'](function(_0x107f48){const _0x3d6af0=!_0x4398ba['model']['schema']['isObject'](_0x107f48),_0x1c6961=_0x107f48['previousSibling'],_0x5d0261=_0x107f48['nextSibling'],_0x5ed7ca=_0x107f48['getAttribute']('listItemId'),_0xb5b010=!_0x1c6961||_0x1c6961['getAttribute']('listItemId')!==_0x5ed7ca,_0x306a98=!_0x5d0261||_0x5d0261['getAttribute']('listItemId')!==_0x5ed7ca;return _0x3d6af0&&Boolean(_0x5ed7ca)&&_0xb5b010&&_0x306a98;},_0xd33b30=>o(_0x1abf0f,'ELEMENT_LIST_ITEM',_0xd33b30));}['_registerLegacyDescription'](){const _0x1ad65d=this['editor'],_0x4cdaf5=_0x1ad65d['locale'];function _0x335027(_0x321940){const _0x8498bf=_0x1ad65d['commands']['get']('bulletedList')['value'],_0xd74fd=_0x1ad65d['commands']['get']('numberedList')['value'];return'numberedList'===_0x321940?_0x8498bf:_0xd74fd;}_0x1ad65d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x40859b){if('formatBlock'!=_0x40859b['type'])return;const {data:_0xad78ab}=_0x40859b;if(!_0xad78ab)return;let _0x4453b4,_0xc55c89,_0x4bb405,_0x22e51d;switch(_0xad78ab['commandName']){case'bulletedList':_0x4bb405=_0xad78ab['commandParams'][0x0]['forceValue'],_0x22e51d=_0x335027(_0xad78ab['commandName']),_0x4453b4=_0x4bb405?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x22e51d&&_0x1ad65d['config']['get']('list.multiBlock')||(_0x4453b4='*Change\x20to:*\x20%0'),_0xc55c89={'type':'format','content':o(_0x4cdaf5,_0x4453b4,o(_0x4cdaf5,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4bb405=_0xad78ab['commandParams'][0x0]['forceValue'],_0x22e51d=_0x335027(_0xad78ab['commandName']),_0x4453b4=_0x4bb405?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x22e51d&&_0x1ad65d['config']['get']('list.multiBlock')||(_0x4453b4='*Change\x20to:*\x20%0'),_0xc55c89={'type':'format','content':o(_0x4cdaf5,_0x4453b4,o(_0x4cdaf5,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4453b4='*Indent:*\x20%0',_0xc55c89={'type':'format','content':o(_0x4cdaf5,_0x4453b4,o(_0x4cdaf5,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4453b4=function(_0x59ed20){const _0x29f227=_0x59ed20['getFirstRange']();let _0x2021c0=_0x29f227['start']['nodeAfter'];for(;_0x2021c0&&_0x29f227['containsItem'](_0x2021c0);){if(_0x2021c0['getAttribute']('listIndent')>0x0)return!0x1;_0x2021c0=_0x2021c0['nextSibling'];}return!0x0;}(_0x40859b)?o(_0x4cdaf5,'*Format:*\x20remove\x20from\x20%0',o(_0x4cdaf5,function(_0x1e638f){return'ELEMENT_'+_0x1e638f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x40859b))):o(_0x4cdaf5,'*Outdent:*\x20%0',o(_0x4cdaf5,'ELEMENT_LIST_ITEM')),_0xc55c89={'type':'format','content':_0x4453b4};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xad78ab['multipleBlocks']&&(_0x4453b4='*Merge:*\x20%0',_0xc55c89={'type':'deletion','content':o(_0x4cdaf5,_0x4453b4,o(_0x4cdaf5,'ELEMENT_LIST_ITEM'))});}return _0xc55c89;});}}function Te(_0x14eb39){let _0x476ae7=_0x14eb39['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x476ae7;){const _0x653a62=_0x476ae7['getAttribute']('listItemId');if(!_0x653a62)return!0x1;if(_0x653a62==_0x14eb39['data']['newValue'])return'newValue';if(_0x653a62==_0x14eb39['data']['oldValue'])return'oldValue';_0x476ae7=_0x476ae7['previousSibling'];}return!0x1;}class H extends _0x3274cb{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x350aa2=this['editor']['config']['get']('list.properties'),_0x162db7=this['editor']['plugins']['get']('TrackChangesEditing');_0x350aa2['styles']&&_0x162db7['enableDefaultAttributesIntegration']('listStyle'),_0x350aa2['reversed']&&_0x162db7['enableDefaultAttributesIntegration']('listReversed'),_0x350aa2['startIndex']&&_0x162db7['enableDefaultAttributesIntegration']('listStart');const _0xb9709a={'type':'format','content':''};_0x162db7['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4e9a8b=this['editor']['locale'];_0x162db7['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4e9a8b,'FORMAT_LIST_REVERSED')),_0x162db7['descriptionFactory']['registerDescriptionCallback'](_0x395560=>{const {data:_0x439f20}=_0x395560;if(_0x439f20&&'listReversed'==_0x439f20['key'])return null==_0x439f20['newValue']||0x0==_0x439f20['newValue']&&null==_0x439f20['oldValue']?_0xb9709a:void 0x0;}),_0x162db7['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4e9a8b,'FORMAT_LIST_START')),_0x162db7['descriptionFactory']['registerDescriptionCallback'](_0xb0af9a=>{const {data:_0x3c79df}=_0xb0af9a;if(_0x3c79df&&'listStart'==_0x3c79df['key'])return null==_0x3c79df['newValue']||0x1==_0x3c79df['newValue']&&null==_0x3c79df['oldValue']?_0xb9709a:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x6c6799=>{if(_0x6c6799['batch']['isUndo'])return!0x1;let _0x21cef7=!0x1;const _0x2a6b8e=_0x162db7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5ecff5=>{const _0x57ee0f=_0x162db7['_getAttributeKey'](_0x5ecff5);return'listStart'==_0x57ee0f||'listReversed'==_0x57ee0f;});for(const _0x516357 of _0x2a6b8e){const _0x5bccff=_0x516357['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5bccff||'customNumbered'==_0x5bccff)continue;_0x162db7['_findSuggestions'](_0x516357['getFirstRange'](),'attribute')['find'](_0xe2bf5c=>'listType'==_0x162db7['_getAttributeKey'](_0xe2bf5c['suggestion']))||(_0x6c6799['removeMarker'](_0x516357['getFirstMarker']()),_0x21cef7=!0x0);}return _0x21cef7;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1571db){const _0x4c13c0=this['editor']['locale'],{data:_0x31d677}=_0x1571db,_0x2ddb6a={'type':'format','content':''};if(!_0x31d677||'listStyle'!=_0x31d677['key'])return;if(!_0x31d677['oldValue'])return'default'==_0x31d677['newValue']?_0x2ddb6a:{'type':'format','content':''+o(_0x4c13c0,'*Set\x20format:*\x20%0',o(_0x4c13c0,this['_getTranslationKeyForListStyle'](_0x31d677['newValue'])))};if(!_0x31d677['newValue']){if('default'==_0x31d677['oldValue'])return _0x2ddb6a;let _0x2b18eb=_0x1571db['head'];for(;_0x2b18eb;){if(_0x2b18eb['data']&&'listType'==_0x2b18eb['data']['key']&&_0x2b18eb['data']['newValue'])return _0x2ddb6a;_0x2b18eb=_0x2b18eb['next'];}return{'type':'format','content':''+o(_0x4c13c0,'*Remove\x20format:*\x20%0',o(_0x4c13c0,this['_getTranslationKeyForListStyle'](_0x31d677['oldValue'])))};}if('default'!=_0x31d677['newValue'])return{'type':'format','content':''+o(_0x4c13c0,'*Set\x20format:*\x20%0',o(_0x4c13c0,this['_getTranslationKeyForListStyle'](_0x31d677['newValue'])))};let _0x4e7460=_0x1571db['head'];for(;_0x4e7460;){if(_0x4e7460['data']&&'listType'==_0x4e7460['data']['key']&&_0x4e7460['data']['newValue']&&_0x4e7460['data']['oldValue'])return _0x2ddb6a;_0x4e7460=_0x4e7460['next'];}return{'type':'format','content':o(_0x4c13c0,'*Set\x20format:*\x20%0',o(_0x4c13c0,'ELEMENT_'+_0x1571db['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x66c9=this['editor'],_0x2b84d5=_0x66c9['locale'];_0x66c9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fbd3e=>{if('formatBlock'!=_0x4fbd3e['type'])return;const {data:_0x196c90}=_0x4fbd3e;if(!_0x196c90)return;let _0x1f0b1b,_0x2d0183;switch(_0x196c90['commandName']){case'listStyle':_0x1f0b1b='*Change\x20to:*\x20%0',_0x2d0183={'type':'format','content':o(_0x2b84d5,_0x1f0b1b,o(_0x2b84d5,this['_getTranslationKeyForListStyle'](_0x196c90['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1f0b1b=_0x196c90['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2d0183={'type':'format','content':o(_0x2b84d5,_0x1f0b1b)};break;case'listStart':_0x1f0b1b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2d0183={'type':'format','content':o(_0x2b84d5,_0x1f0b1b,_0x196c90['commandParams'][0x0]['startIndex'])};}return _0x2d0183;});}['_getTranslationKeyForListStyle'](_0x54846f){return'ELEMENT_'+function(_0x5585d8){if(ye['includes'](_0x5585d8))return'bulleted';if(Se['includes'](_0x5585d8))return'numbered';return null;}(_0x54846f)['toUpperCase']()+'_LIST_'+_0x54846f['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x3274cb{['afterInit'](){const _0x5ccec5=this['editor'];_0x5ccec5['commands']['get']('emoji')&&_0x5ccec5['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x3274cb{static get['requires'](){return[_0x51080f];}['init'](){const _0x51a986=this['editor'],_0x57c183=_0x51a986['plugins']['get']('TrackChangesEditing'),_0x1ea346=_0x51a986['commands']['get']('enter');_0x57c183['enableCommand']('enter',()=>{_0x51a986['model']['change'](_0x2d8b6a=>{const _0x29cb2f=_0x51a986['model']['document']['selection'],_0x214543=_0x29cb2f['getFirstPosition'](),_0x15025b=_0x393f46['fromRange'](_0x29cb2f['getFirstRange']());if(_0x1ea346['enterBlock'](_0x2d8b6a)){const _0x3aa663=_0x51a986['model']['createPositionAt'](_0x214543['parent']['nextSibling'],0x0),_0x1f6514=_0x2d8b6a['createRange'](_0x214543,_0x3aa663);_0x57c183['markInsertion'](_0x1f6514);}else _0x2d8b6a['setSelection'](_0x2d8b6a['createRange'](_0x15025b['end']));_0x15025b['detach'](),_0x1ea346['fire']('afterExecute',{'writer':_0x2d8b6a});});});}}class Y extends _0x3274cb{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3f1319=this['editor']['plugins']['get']('TrackChangesEditing');_0x3f1319['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3f1319['enableCommand']('findNext'),_0x3f1319['enableCommand']('findPrevious'),_0x3f1319['enableCommand']('replace'),_0x3f1319['enableCommand']('replaceAll');}['handleFindCommand'](_0x19faaf,_0x27940f,_0x4012d3={}){const _0x23a868=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x19faaf(_0x4666ca=>{let _0xfb330a=('string'==typeof _0x27940f?_0x23a868['findByTextCallback'](_0x27940f,_0x4012d3):_0x27940f)(_0x4666ca);Array['isArray'](_0xfb330a)&&(_0xfb330a={'results':_0xfb330a,'searchText':'string'==typeof _0x27940f?_0x27940f:''});const _0x3c7ebe=_0xfb330a['results']['filter'](_0x5ca77d=>!0x1===this['_isInDeletionRange'](_0x5ca77d,_0x4666ca['item']));return{..._0xfb330a,'results':_0x3c7ebe};},_0x4012d3);}['_isInDeletionRange'](_0x169819,_0x3d89a2){const _0x3a9dda=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3d89a2,_0x169819['start']),this['editor']['model']['createPositionAt'](_0x3d89a2,_0x169819['end']));for(const _0x1e5956 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3a9dda['getIntersection'](_0x1e5956['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 _0x3274cb{['afterInit'](){const _0x40e562=this['editor']['locale'],_0x3dfe09=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x55e55b,commandName:_0xe31b95}of eo)this['editor']['plugins']['has'](_0x55e55b)&&_0x3dfe09['enableDefaultAttributesIntegration'](_0xe31b95);_0x3dfe09['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x40e562,'FORMAT_FONT_SIZE')),_0x3dfe09['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x40e562,'FORMAT_FONT_FAMILY')),_0x3dfe09['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x40e562,'FORMAT_FONT_COLOR')),_0x3dfe09['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x40e562,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1393a1=this['editor'],_0x303fa1=_0x1393a1['locale'];_0x1393a1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b91bb=>{const _0x47b318=_0x303fa1['t'];if('formatInline'!=_0x3b91bb['type'])return;const {data:_0x389d97}=_0x3b91bb;if(null!=_0x389d97){if('fontSize'==_0x389d97['commandName']){const _0x3594c5=_0x389d97['commandParams'][0x0]['value'];if(_0x3594c5){const _0x590113=_0x47b318(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2f8ccc=>_0x2f8ccc['model']==_0x3594c5)['title'])['toLowerCase']();return{'type':'format','content':o(_0x303fa1,'*Set\x20font\x20size:*\x20%0',_0x590113)};}return{'type':'format','content':o(_0x303fa1,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x389d97['commandName']){const _0x11c7cf=_0x389d97['commandParams'][0x0]['value'];return _0x11c7cf?{'type':'format','content':o(_0x303fa1,'*Set\x20font\x20family:*\x20%0',_0x11c7cf)}:{'type':'format','content':o(_0x303fa1,'*Reset\x20font\x20family*')};}if('fontColor'==_0x389d97['commandName']){const _0x85b605=_0x389d97['commandParams'][0x0]['value'];if(_0x85b605){const _0x276b0d=_0x48e5c8(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2748c9=>_0x2748c9['model']==_0x85b605);let _0x487f5d=_0x85b605,_0x1a2cb6='';return _0x276b0d&&(_0x487f5d=_0x276b0d['label'],_0x1a2cb6=_0x47b318(_0x487f5d)['toLowerCase']()),{'type':'format','content':o(_0x303fa1,'*Set\x20font\x20color:*\x20%0',_0x1a2cb6)['trim'](),'color':{'value':_0x85b605,'title':_0x1a2cb6||_0x487f5d}};}return{'type':'format','content':o(_0x303fa1,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x389d97['commandName']){const _0x5c69da=_0x389d97['commandParams'][0x0]['value'];if(_0x5c69da){const _0x330305=_0x48e5c8(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x48936e=>_0x48936e['model']==_0x5c69da);let _0x38bcaa=_0x5c69da,_0x2ea399='';return _0x330305&&(_0x38bcaa=_0x330305['label'],_0x2ea399=_0x47b318(_0x38bcaa)['toLowerCase']()),{'type':'format','content':o(_0x303fa1,'*Set\x20font\x20background\x20color:*\x20%0',_0x2ea399)['trim'](),'color':{'value':_0x5c69da,'title':_0x2ea399||_0x38bcaa}};}return{'type':'format','content':o(_0x303fa1,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x3274cb{['afterInit'](){const {plugins:_0x2e361d}=this['editor'];_0x2e361d['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x2e361d['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x59d389,plugins:_0x32c3ac,commands:_0x218126}=this['editor'],_0xb27da8=_0x32c3ac['get']('TrackChangesEditing');_0x218126['get']('footnotesStyle')&&_0xb27da8['enableDefaultAttributesIntegration']('footnotesStyle'),_0x218126['get']('footnotesStart')&&_0xb27da8['enableDefaultAttributesIntegration']('footnotesStart'),_0xb27da8['registerBlockAttribute']('footnotesListStyle'),_0xb27da8['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x59d389,'FORMAT_FOOTNOTES_LIST_STYLE')),_0xb27da8['registerBlockAttribute']('footnotesListStart'),_0xb27da8['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x59d389,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x54ebfe=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x37c865,commands:_0x2d6e0b}=this['editor'];_0x2d6e0b['get']('insertFootnote')&&_0x54ebfe['enableCommand']('insertFootnote'),_0x54ebfe['descriptionFactory']['registerElementLabel']('footnoteRef',_0x39fd57=>o(_0x37c865,'ELEMENT_FOOTNOTE_REF',_0x39fd57)),_0x54ebfe['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x5ee3b7=>o(_0x37c865,'ELEMENT_FOOTNOTE_DEFINITION',_0x5ee3b7)),_0x54ebfe['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x1be923=>o(_0x37c865,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x1be923));}}class nt extends _0x3274cb{['afterInit'](){const _0x6390d7=this['editor'],_0x39b51a=_0x6390d7['plugins']['get']('TrackChangesEditing'),_0x387ce6=_0x6390d7['commands']['get']('copyFormat'),_0x586300=_0x6390d7['commands']['get']('pasteFormat');_0x387ce6&&_0x586300&&(_0x39b51a['enableDefaultAttributesIntegration']('pasteFormat'),_0x39b51a['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x17a160=this['editor'],_0xef4d9c=_0x17a160['locale'];_0x17a160['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fedd5=>{if('formatBlock'!=_0x2fedd5['type']&&'formatInline'!=_0x2fedd5['type'])return;const {data:_0x49c946}=_0x2fedd5;if(_0x49c946&&'pasteFormat'===_0x49c946['commandName']){const _0x44ab3c=[],_0x7c1312=_0x49c946['commandParams'][0x0];for(const [_0x3e570f,_0x3f45c2]of Object['entries'](_0x7c1312))_0x44ab3c['push'](ro(_0x17a160,_0x3e570f,_0x3f45c2));return _0x44ab3c['length']?{'type':'format','content':o(_0xef4d9c,'*Set\x20format\x20to:*\x20%0',_0x44ab3c['join'](',\x20'))}:{'type':'format','content':o(_0xef4d9c,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x15a98c,_0xe8d724,_0x36e564){const _0x308334=_0x15a98c['locale']['t'],_0x1a0ca9=_0xe8d724['split'](/(?=[A-Z])/)['join']('\x20'),_0x44e23a=_0x308334(_0x1a0ca9['charAt'](0x0)['toUpperCase']()+_0x1a0ca9['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x36e564)return _0x44e23a;if('fontColor'===_0xe8d724||'fontBackgroundColor'===_0xe8d724){const _0x5b96e5=_0x48e5c8(_0x15a98c['config']['get']('fontColor.colors'))['find'](_0x75bc33=>_0x75bc33['model']==_0x36e564);return _0x44e23a+'\x20('+(_0x5b96e5?_0x308334(_0x5b96e5['label'])['toLowerCase']():_0x36e564)+')';}if('fontSize'===_0xe8d724&&isNaN(parseFloat(_0x36e564))){const _0x1cf5b1=_0x15a98c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x15a98c['config']['get']('fontSize.options'))['find'](_0x2c3e89=>_0x2c3e89['model']==_0x36e564);return _0x44e23a+'\x20('+(_0x1cf5b1?_0x308334(_0x1cf5b1['title'])['toLowerCase']():_0x36e564)+')';}return _0x44e23a+'\x20('+_0x36e564+')';}class it extends _0x3274cb{['_headingOptions'];['afterInit'](){const _0x4ea363=this['editor'];if(!_0x4ea363['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4ea363['config']['get']('heading.options');const _0x57ce06=_0x4ea363['locale'],_0x27556c=_0x4ea363['plugins']['get']('TrackChangesEditing');_0x27556c['enableDefaultAttributesIntegration']('heading');for(const _0x2423ef of this['_headingOptions'])'paragraph'!=_0x2423ef['model']&&_0x27556c['descriptionFactory']['registerElementLabel'](_0x2423ef['model'],_0x4d506d=>{const _0x2261ea=this['_getHeadingLevel'](_0x2423ef['model']);return null!==_0x2261ea?_0x4d7a4e(_0x4d506d,_0x2261ea):_0x2cd300(_0x4d506d,_0x2423ef['title']);});function _0x4d7a4e(_0x14d219,_0x29b35a){return o(_0x57ce06,'ELEMENT_HEADING',[_0x14d219,_0x29b35a]);}function _0x2cd300(_0x10501f,_0x21f9fb){return o(_0x57ce06,'ELEMENT_HEADING_CUSTOM',[_0x10501f,_0x21f9fb]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a0cd5=this['editor'],_0xba04e1=_0x2a0cd5['locale'];function _0x508b4c(_0x40fa93,_0x2c38de){return o(_0xba04e1,'ELEMENT_HEADING_CUSTOM',[_0x40fa93,_0x2c38de]);}_0x2a0cd5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2db8e6=>{if('formatBlock'!=_0x2db8e6['type'])return;const {data:_0x1baae0}=_0x2db8e6;if(_0x1baae0&&'heading'==_0x1baae0['commandName']){const _0x174be8=_0x1baae0['commandParams'][0x0]['value'],_0x7cac09=this['_getHeadingLevel'](_0x174be8);if(null!==_0x7cac09)return{'type':'format','content':o(_0xba04e1,'*Change\x20to:*\x20%0',(_0x4f0c72=0x1,_0x499d22=_0x7cac09,o(_0xba04e1,'ELEMENT_HEADING',[_0x4f0c72,_0x499d22])))};const _0xb6ecdb=this['_headingOptions']['find'](_0x2e4b35=>_0x2e4b35['model']===_0x174be8)['title'];return{'type':'format','content':o(_0xba04e1,'*Change\x20to:*\x20%0',_0x508b4c(0x1,_0xb6ecdb))};}var _0x4f0c72,_0x499d22;});}['_getHeadingLevel'](_0x3bbf8e){const _0x13f253=_0x3bbf8e['match'](/^heading(\d+)/);if(_0x13f253)return _0x13f253[0x1];const _0x468b5a=this['_headingOptions']?.['find'](_0x92bb73=>_0x92bb73['model']==_0x3bbf8e);if(_0x468b5a&&_0x468b5a['view']){const _0xd0dff9=_0x468b5a['view'],_0x5c76cd=(_0xd0dff9['name']??_0xd0dff9)['match'](/^h(\d+)/);if(_0x5c76cd)return _0x5c76cd[0x1];}return null;}}class et extends _0x3274cb{['afterInit'](){const _0x4c4ba1=this['editor'];if(!_0x4c4ba1['plugins']['has']('HighlightEditing'))return;const _0x451b8f=_0x4c4ba1['plugins']['get']('TrackChangesEditing'),_0x3ad5a7=_0x4c4ba1['locale'];_0x451b8f['enableDefaultAttributesIntegration']('highlight'),_0x451b8f['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3ad5a7,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x437975=this['editor'],_0x24bdff=_0x437975['locale'];_0x437975['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x190056=>{if('formatInline'!=_0x190056['type'])return;const {data:_0x467700}=_0x190056;if(_0x467700&&'highlight'==_0x467700['commandName']){const _0x38d29b=_0x24bdff['t'],_0x346b54=_0x467700['commandParams'][0x0]['value'];if(_0x346b54){const _0x10346d=_0x437975['config']['get']('highlight.options')['find'](_0x450119=>_0x450119['model']==_0x346b54),_0x3793fc=_0x38d29b(_0x10346d['title'])['toLowerCase']();return{'type':'format','content':o(_0x24bdff,'*Set\x20highlight:*\x20%0',_0x3793fc),'color':{'value':_0x10346d['color'],'title':_0x10346d['title']}};}return{'type':'format','content':o(_0x24bdff,'*Remove\x20highlight*',o(_0x24bdff,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x3274cb{['afterInit'](){const _0x46c6cd=this['editor'];if(!_0x46c6cd['plugins']['has']('HorizontalLineEditing'))return;_0x46c6cd['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4c3666=_0x46c6cd['plugins']['get']('TrackChangesEditing'),_0x5b726b=_0x46c6cd['locale'];_0x4c3666['descriptionFactory']['registerElementLabel']('horizontalLine',_0x54aa06=>o(_0x5b726b,'ELEMENT_HORIZONTAL_LINE',_0x54aa06));}}class ot extends _0x3274cb{['afterInit'](){const _0x8f4818=this['editor'];if(!_0x8f4818['plugins']['has']('HtmlEmbed'))return;const _0xb6dfbc=_0x8f4818['plugins']['get']('TrackChangesEditing'),_0x5baea9=_0x8f4818['locale'];_0xb6dfbc['descriptionFactory']['registerElementLabel']('rawHtml',_0xa1c58f=>o(_0x5baea9,'ELEMENT_HTML_EMBED',_0xa1c58f)),_0xb6dfbc['enableDefaultAttributesIntegration']('htmlEmbed'),_0xb6dfbc['descriptionFactory']['registerDescriptionCallback'](_0x3c7aea=>{if('attribute'!=_0x3c7aea['type'])return;const {data:_0x1e02c9}=_0x3c7aea;if(_0x1e02c9&&'value'==_0x1e02c9['key']&&_0x3c7aea['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3d74d4=o(_0x5baea9,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5baea9,'*Change\x20%0\x20content*',_0x3d74d4)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc344d6=this['editor'],_0x2484f6=_0xc344d6['locale'];_0xc344d6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x320888=>{if('formatBlock'!=_0x320888['type'])return;const {data:_0x4e91a4}=_0x320888;if(_0x4e91a4&&'htmlEmbed'==_0x4e91a4['commandName']){const _0x4d52c1=o(_0x2484f6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2484f6,'*Change\x20%0\x20content*',_0x4d52c1)};}});}}class rt extends _0x3274cb{['afterInit'](){const _0x58a191=this['editor'];if(!_0x58a191['plugins']['has']('ImageEditing'))return;const _0x34af48=_0x58a191['plugins']['get']('TrackChangesEditing'),_0x12bc78=_0x58a191['plugins']['get']('ImageUtils'),_0x41bc1a=_0x58a191['locale'];_0x34af48['enableCommand']('insertImage'),_0x34af48['descriptionFactory']['registerElementLabel']('imageBlock',_0x38c2c0=>o(_0x41bc1a,'ELEMENT_IMAGE',_0x38c2c0)),_0x34af48['descriptionFactory']['registerElementLabel']('imageInline',_0x31dd8f=>o(_0x41bc1a,'ELEMENT_INLINE_IMAGE',_0x31dd8f)),_0x34af48['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x41bc1a,'ELEMENT_CAPTION')),_0x58a191['plugins']['has']('ImageUploadEditing')&&_0x34af48['enableCommand']('uploadImage'),_0x58a191['plugins']['has']('ImageBlockEditing')&&_0x58a191['plugins']['has']('ImageInlineEditing')&&(_0x34af48['enableCommand']('imageTypeInline',(_0x4b51df,_0x4536d7)=>{const _0x4015a0=_0x12bc78['getClosestSelectedImageElement'](_0x58a191['model']['document']['selection']);_0x58a191['model']['change'](()=>{_0x34af48['markBlockFormat'](_0x4015a0,{'commandName':'imageTypeInline','commandParams':[_0x4536d7]},[],'convertBlockImageToInline');});}),_0x34af48['enableCommand']('imageTypeBlock',(_0xea58cb,_0x3cff8d)=>{_0x58a191['model']['change'](_0x5c3236=>{let _0x413948=_0x12bc78['getClosestSelectedImageElement'](_0x58a191['model']['document']['selection']),_0x44e00b=_0x5c3236['createRangeOn'](_0x413948);const _0x37b582=_0x5b59fc['fromPosition'](_0x44e00b['start'],'toPrevious'),_0x1abd2e=_0x5b59fc['fromPosition'](_0x44e00b['end'],'toNext');_0x34af48['forceDefaultExecution'](()=>_0xea58cb(_0x3cff8d)),_0x413948=_0x12bc78['getClosestSelectedImageElement'](_0x58a191['model']['document']['selection']),_0x44e00b=_0x5c3236['createRangeOn'](_0x413948);const _0x19cc60=_0x5c3236['createRange'](_0x37b582,_0x1abd2e);_0x37b582['detach'](),_0x1abd2e['detach'](),_0x34af48['markBlockFormat'](_0x413948,{'commandName':'imageTypeInline','commandParams':[_0x3cff8d]},[],'convertInlineImageToBlock'),_0x19cc60['start']['isBefore'](_0x44e00b['start'])&&_0x34af48['markInsertion'](_0x5c3236['createRange'](_0x19cc60['start'],_0x44e00b['start']),'convertInlineImageToBlock'),_0x44e00b['end']['isBefore'](_0x19cc60['end'])&&_0x34af48['markInsertion'](_0x5c3236['createRange'](_0x44e00b['end'],_0x19cc60['end']),'convertInlineImageToBlock');});}),_0x34af48['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x34af48['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x34af48['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x34af48['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x34af48['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x34af48['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5d628f])=>{const _0x51559e=_0x34af48['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x81322c=_0x5d628f['start'],_0x568228=_0x5d628f['end'];const _0x4fe0e8=_0x58a191['model']['schema']['getNearestSelectionRange'](_0x81322c,'backward'),_0xc7fbcf=_0x58a191['model']['schema']['getNearestSelectionRange'](_0x568228,'forward');_0x4fe0e8['isCollapsed']&&(_0x81322c=_0x4fe0e8['start']),_0xc7fbcf['isCollapsed']&&(_0x568228=_0xc7fbcf['end']),_0x51559e([_0x58a191['model']['createRange'](_0x81322c,_0x568228)]);}),_0x34af48['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x112a72),_0x34af48['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x112a72)),_0x58a191['plugins']['has']('ImageCaptionEditing')&&(_0x34af48['enableCommand']('toggleImageCaption',(_0x1add9a,_0x329670)=>{const _0x5ef823=_0x58a191['plugins']['get']('ImageCaptionUtils');let _0x22f7be=_0x12bc78['getClosestSelectedImageElement'](_0x58a191['model']['document']['selection']),_0xc0bf66=_0x5ef823['getCaptionFromImageModelElement'](_0x22f7be);_0x58a191['model']['change'](()=>{if(_0xc0bf66)return void _0x34af48['markDeletion'](_0x58a191['model']['createRangeOn'](_0xc0bf66));const _0x40a882=_0x12bc78['isBlockImage'](_0x22f7be);_0x1add9a(_0x329670),_0x22f7be=_0x12bc78['getClosestSelectedImageElement'](_0x58a191['model']['document']['selection']),_0xc0bf66=_0x5ef823['getCaptionFromImageModelElement'](_0x22f7be),_0x34af48['markInsertion'](_0x58a191['model']['createRangeOn'](_0xc0bf66),_0x40a882?null:'imageCaption');});}),_0x34af48['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x112a72));const _0xbd81=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x493045(_0x5478c8,_0x3df64a){const _0x51f6b6=_0xbd81['findIndex'](({type:_0x376918,subType:_0x4f6de3})=>_0x5478c8['type']==_0x376918&&_0x5478c8['subType']==_0x4f6de3),_0x24981f=_0xbd81['findIndex'](({type:_0x15c562,subType:_0x17958c})=>_0x3df64a['type']==_0x15c562&&_0x3df64a['subType']==_0x17958c);if(_0x51f6b6<0x0||_0x24981f<0x0)return!0x1;const _0x516293=_0x5478c8['getFirstRange'](),_0x1e6ba6=_0x3df64a['getFirstRange']();if((0x0==_0x51f6b6||0x1==_0x51f6b6)&&0x2==_0x24981f&&_0x516293['isIntersecting'](_0x1e6ba6))return!0x0;if(0x2==_0x51f6b6&&0x3==_0x24981f){const _0x340637=_0x34af48['_findSuggestions'](_0x516293,'insertion')['filter'](({suggestion:_0x1ac3ed,meta:_0x333a35})=>_0x333a35['isOwn']&&'convertInlineImageToBlock'==_0x1ac3ed['subType']);if(_0x340637['length']>0x1&&_0x1e6ba6['end']['isEqual'](_0x516293['start']))return!0x0;if(0x1==_0x340637['length']&&(_0x516293['start']['isEqual'](_0x1e6ba6['end'])||_0x516293['end']['isEqual'](_0x1e6ba6['start'])))return!0x0;}if(0x3==_0x51f6b6&&0x3==_0x24981f&&_0x516293['start']['isBefore'](_0x1e6ba6['start'])){const _0xe919c=_0x516293['end']['nodeAfter'],_0x13a578=_0x1e6ba6['start']['nodeBefore'];return _0x12bc78['isBlockImage'](_0xe919c)&&_0xe919c===_0x13a578;}return!0x1;}function _0x112a72(_0x5d0382,_0x1b200c){return _0x493045(_0x5d0382,_0x1b200c)?[_0x5d0382,_0x1b200c]:_0x493045(_0x1b200c,_0x5d0382)?[_0x1b200c,_0x5d0382]:null;}_0x58a191['plugins']['has']('ImageResize')&&(_0x34af48['enableDefaultAttributesIntegration']('resizeImage'),_0x34af48['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x41bc1a,'FORMAT_IMAGE_SIZE'))),_0x58a191['plugins']['has']('ImageTextAlternativeEditing')&&_0x34af48['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x58a191['plugins']['has']('PictureEditing')&&_0x34af48['descriptionFactory']['registerDescriptionCallback'](_0x5d70aa=>{if('attribute'!=_0x5d70aa['type'])return;const {data:_0xa2de04}=_0x5d70aa;return _0xa2de04&&'sources'==_0xa2de04['key']?{'type':'format','content':''}:void 0x0;}),_0x58a191['plugins']['has']('ImageSizeAttributes')&&_0x34af48['descriptionFactory']['registerDescriptionCallback'](_0x4e8636=>{if('attribute'!=_0x4e8636['type'])return;const {data:_0x1e503d}=_0x4e8636;return!_0x1e503d||'width'!=_0x1e503d['key']&&'height'!=_0x1e503d['key']?void 0x0:{'type':'format','content':''};}),_0x34af48['descriptionFactory']['registerDescriptionCallback'](_0x135169=>{if(!!_0xbd81['find'](({type:_0x22501d,subType:_0x24f439})=>_0x135169['type']==_0x22501d&&_0x135169['subType']==_0x24f439))return _0x135169['previous']?{}:void 0x0;}),_0x34af48['descriptionFactory']['registerDescriptionCallback'](_0x4628c5=>{if('insertion'==_0x4628c5['type']||'deletion'==_0x4628c5['type']){const _0x26189f=_0x4628c5['getContainedElement']();if(_0x26189f&&_0x26189f['is']('element','caption'))return{'type':'insertion'==_0x4628c5['type']?'addObject':'removeObject','element':_0x26189f,'quantity':0x1};}}),_0x34af48['descriptionFactory']['registerDescriptionCallback'](_0x1990d3=>'formatBlock'==_0x1990d3['type']&&'convertInlineImageToBlock'==_0x1990d3['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1990d3['type']&&'convertBlockImageToInline'==_0x1990d3['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x34af48['descriptionFactory']['registerDescriptionCallback'](_0x261aa5=>{if('attribute'!=_0x261aa5['type'])return;const {data:_0x142825}=_0x261aa5;if(!_0x142825||'alt'!=_0x142825['key'])return;const _0x29c16a=_0x142825['newValue'];return _0x29c16a?{'type':'format','content':o(_0x41bc1a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x29c16a+'\x22')}:{'type':'format','content':o(_0x41bc1a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3af062=this['editor'],_0x18ad92=_0x3af062['locale'];_0x3af062['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x333590=>{if('formatBlock'!=_0x333590['type']&&'formatInline'!=_0x333590['type'])return;const {data:_0x256250}=_0x333590;if(_0x256250){if('imageTextAlternative'==_0x256250['commandName']){const _0x43ea15=_0x256250['commandParams'][0x0]['newValue'];return _0x43ea15?{'type':'format','content':o(_0x18ad92,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x43ea15+'\x22')}:{'type':'format','content':o(_0x18ad92,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x256250['commandName']){const _0x1080c4=_0x256250['commandParams'][0x0]['width'];return _0x1080c4?{'type':'format','content':o(_0x18ad92,'*Set\x20image\x20width:*\x20%0',_0x1080c4)}:{'type':'format','content':o(_0x18ad92,'*Reset\x20image\x20width*')};}}});}}class at extends _0x3274cb{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x19be6c=this['editor']['locale'],_0x51d32d=this['editor']['plugins']['get']('TrackChangesEditing');_0x51d32d['enableDefaultAttributesIntegration']('replaceImageSource'),_0x51d32d['descriptionFactory']['registerDescriptionCallback'](_0x401761=>{if('attribute'!=_0x401761['type'])return;const {data:_0x4c60cd}=_0x401761;return _0x4c60cd&&'src'==_0x4c60cd['key']?_0x4c60cd['newValue']&&_0x4c60cd['oldValue']?{'type':'format','content':o(_0x19be6c,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x41fe11=this['editor']['plugins']['get']('TrackChangesEditing');_0x41fe11['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x41fe11['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x41fe11['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x41fe11['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53b68f=this['editor'],_0x2a20c8=_0x53b68f['locale'];_0x53b68f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x447d3b=>{if('formatBlock'!=_0x447d3b['type']&&'formatInline'!=_0x447d3b['type'])return;const {data:_0x749fa5}=_0x447d3b;if(!_0x749fa5||'replaceImageSource'!=_0x749fa5['commandName'])return;return{'type':'format','content':o(_0x2a20c8,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x3274cb{['afterInit'](){const _0x1dcc28=this['editor'];if(!_0x1dcc28['plugins']['has']('ImageStyleEditing'))return;const _0x584b1e=_0x1dcc28['plugins']['get']('TrackChangesEditing'),_0x420f6f=_0x1dcc28['plugins']['get']('ImageUtils'),_0x26d0c8={};_0x584b1e['enableCommand']('imageStyle',(_0x2c19f1,_0x4696b9)=>{const _0x377466=_0x1dcc28['plugins']['get']('Users')['me'],_0x74d3b4=_0x1dcc28['commands']['get']('imageStyle');let _0x2b5d9d=_0x420f6f['getClosestSelectedImageElement'](_0x1dcc28['model']['document']['selection']),_0x237153=_0x1dcc28['model']['createRangeOn'](_0x2b5d9d),_0x51267f=_0x74d3b4['value'];if(_0x51267f==_0x4696b9['value'])return;const _0x3b1ee1={'commandName':'imageStyle','commandParams':[_0x4696b9],'formatGroupId':_0x531b89()};_0x1dcc28['model']['change'](()=>{if(_0x584b1e['getSuggestions']()['filter'](_0x53ce89=>_0x53ce89['isInContent']&&_0x377466==_0x53ce89['author']&&('formatBlock'==_0x53ce89['type']||'formatInline'==_0x53ce89['type'])&&('imageStylePreApply'==_0x53ce89['subType']||'imageStylePostApply'==_0x53ce89['subType'])&&_0x53ce89['getFirstRange']()['isEqual'](_0x237153))['forEach'](_0x24c2fc=>_0x584b1e['discardSuggestion'](_0x24c2fc['head'])),_0x2b5d9d=_0x420f6f['getClosestSelectedImageElement'](_0x1dcc28['model']['document']['selection']),_0x237153=_0x1dcc28['model']['createRangeOn'](_0x2b5d9d),_0x74d3b4['refresh'](),_0x1dcc28['commands']['get']('imageTypeInline')['refresh'](),_0x1dcc28['commands']['get']('imageTypeBlock')['refresh'](),_0x51267f=_0x74d3b4['value'],_0x51267f!=_0x4696b9['value'])return _0x420f6f['isInlineImage'](_0x2b5d9d)&&_0x74d3b4['shouldConvertImageType'](_0x4696b9['value'],_0x2b5d9d)?(_0x2c19f1({..._0x4696b9,'setImageSizes':!0x1}),_0x2b5d9d=_0x420f6f['getClosestSelectedImageElement'](_0x1dcc28['model']['document']['selection']),void _0x584b1e['markBlockFormat'](_0x2b5d9d,{..._0x3b1ee1,'commandReversedParams':[{'value':_0x51267f||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x420f6f['isBlockImage'](_0x2b5d9d)?_0x584b1e['markBlockFormat'](_0x2b5d9d,_0x3b1ee1,[],'imageStylePostApply'):_0x584b1e['markInlineFormat'](_0x237153,_0x3b1ee1,'imageStylePostApply'));});});for(const _0x3e756e of _0x1dcc28['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x26d0c8[_0x3e756e['name']]=_0x3e756e['title']['toLowerCase']();_0x584b1e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x584b1e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x584b1e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x584b1e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x20c777])=>{_0x420f6f['setImageNaturalSizeAttributes'](_0x20c777['getContainedElement']());}),_0x584b1e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x40df4b,_0x36bad4)=>{_0x584b1e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x40df4b,{'commandName':_0x36bad4['commandName'],'commandParams':_0x36bad4['commandReversedParams']});}),_0x584b1e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x33b4bc,_0x3d6dc2){if(_0xc6eec6(_0x33b4bc,_0x3d6dc2))return[_0x33b4bc,_0x3d6dc2];if(_0xc6eec6(_0x3d6dc2,_0x33b4bc))return[_0x3d6dc2,_0x33b4bc];return null;});const _0xe21f64=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xc6eec6(_0x528e18,_0x46ccef){const _0x551630=_0xe21f64['findIndex'](({type:_0x332114,subType:_0x307747})=>_0x528e18['type']==_0x332114&&_0x528e18['subType']==_0x307747),_0x33a4fc=_0xe21f64['findIndex'](({type:_0x60e717,subType:_0x2e8374})=>_0x46ccef['type']==_0x60e717&&_0x46ccef['subType']==_0x2e8374);if(_0x551630<0x0||_0x33a4fc<0x0)return!0x1;const _0x18441e=_0x528e18['getFirstRange'](),_0x71e6d4=_0x46ccef['getFirstRange']();if((0x0==_0x551630||0x1==_0x551630)&&0x2==_0x33a4fc&&_0x18441e['isIntersecting'](_0x71e6d4))return!0x0;if(0x2==_0x551630&&0x3==_0x33a4fc){const _0x4bcbee=_0x584b1e['_findSuggestions'](_0x18441e,'insertion')['filter'](({suggestion:_0x34bc2a,meta:_0x552d45})=>_0x552d45['isOwn']&&'convertInlineImageToBlock'==_0x34bc2a['subType']);if(_0x4bcbee['length']>0x1&&_0x71e6d4['end']['isEqual'](_0x18441e['start']))return!0x0;if(0x1==_0x4bcbee['length']&&(_0x18441e['start']['isEqual'](_0x71e6d4['end'])||_0x18441e['end']['isEqual'](_0x71e6d4['start'])))return!0x0;}if(0x3==_0x551630&&0x3==_0x33a4fc&&_0x18441e['start']['isBefore'](_0x71e6d4['start'])){const _0x36fac7=_0x18441e['end']['nodeAfter'],_0x310e05=_0x71e6d4['start']['nodeBefore'];return _0x420f6f['isBlockImage'](_0x36fac7)&&_0x36fac7===_0x310e05;}return!0x1;}_0x1dcc28['model']['document']['registerPostFixer'](()=>{let _0x58dbf6=!0x1;const _0x3937da=Array['from'](_0x1dcc28['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5b925e,data:_0x3e3c82}of _0x3937da){const {group:_0x297eba,type:_0x22a934,subType:_0x5b9a70,id:_0x5dd560}=_0x584b1e['_splitMarkerName'](_0x5b925e);if('suggestion'==_0x297eba&&_0x584b1e['hasSuggestion'](_0x5dd560)){if('formatBlock'==_0x22a934&&('imageStylePreApply'==_0x5b9a70||'imageStylePostApply'==_0x5b9a70)){const _0x554d45=_0x584b1e['getSuggestion'](_0x5dd560);if(_0x3e3c82['newRange']){const _0x1dfcc7=_0x554d45['getFirstRange']()['getContainedElement']();if(_0x420f6f['isBlockImage'](_0x1dfcc7))continue;_0x584b1e['discardSuggestion'](_0x554d45),_0x58dbf6=!0x0;}}if('insertion'==_0x22a934&&'imageCaption'==_0x5b9a70&&!_0x3e3c82['newRange']){const _0x7c91e8=_0x584b1e['getSuggestion'](_0x5dd560);_0x7c91e8['next']&&_0x7c91e8['next']['isInContent']&&(_0x584b1e['discardSuggestion'](_0x7c91e8['next']),_0x58dbf6=!0x0);}}}return _0x58dbf6;}),this['_registerLegacyDescription'](_0x26d0c8);}['_registerLegacyDescription'](_0x17baac){const _0x1fb2f5=this['editor'],_0x2ce465=_0x1fb2f5['locale'];_0x1fb2f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x396ad0=>{if('formatBlock'!=_0x396ad0['type']&&'formatInline'!=_0x396ad0['type'])return;const {data:_0x162d04}=_0x396ad0;if(!_0x162d04||'imageStyle'!=_0x162d04['commandName'])return;const _0x4f31b9=_0x162d04['commandParams'][0x0]['value'];return _0x8624b4('side'===_0x4f31b9?o(_0x2ce465,'FORMAT_SIDE_IMAGE'):_0x17baac[_0x4f31b9]||_0x4f31b9);function _0x8624b4(_0x50980e){return{'type':'format','content':o(_0x2ce465,'*Format:*\x20%0',_0x50980e)};}});}}class ut extends _0x3274cb{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x369d4b){super(_0x369d4b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x410743=this['editor'],_0x166678=_0x410743['commands']['get']('importWord'),_0x17dbc2=_0x410743['commands']['get']('trackChanges');_0x166678&&(_0x166678['on']('execute',(_0x288fd9,[,_0x4f61dd])=>{this['_trackChangesValueDuringImport']=_0x17dbc2['value'],_0x4f61dd['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x166678,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x166678,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x17dbc2['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x410743['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x395129,_0xdf8c1){const {suggestions:_0x43b754}=_0xdf8c1,_0x48198c=this['editor']['commands']['get']('trackChanges'),_0x81e1b7=_0x48198c['value'];this['_trackChangesValueDuringImport']!==_0x81e1b7&&(_0x48198c['execute'](),this['_trackChangesExecuted']=!0x0),_0x43b754&&_0x43b754['forEach'](({id:_0x35913b,type:_0x4a5584,author:_0x4258cf,created_at:_0x637bbe})=>{const _0x4e106a={'id':_0x35913b,'type':_0x4a5584,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4258cf,'createdAt':_0x637bbe?new Date(_0x637bbe):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4e106a);});}}class ft extends _0x3274cb{['afterInit'](){const _0x221aaa=this['editor'],_0x106836=_0x221aaa['plugins']['get']('TrackChangesEditing');if(_0x221aaa['plugins']['has']('IndentEditing')&&(_0x106836['enableCommand']('indent'),_0x106836['enableCommand']('outdent')),_0x221aaa['plugins']['has']('IndentBlock')){for(const _0x5cf373 of['indentBlock','outdentBlock'])_0x106836['enableDefaultAttributesIntegration'](_0x5cf373);}const _0x37a0bc=_0x221aaa['locale'];_0x106836['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x37a0bc,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45376d=this['editor'],_0x4aced0=_0x45376d['locale'],_0x157a40=_0x45376d['plugins']['get']('TrackChangesEditing');_0x157a40['descriptionFactory']['registerDescriptionCallback'](_0x33f07a=>{if('formatBlock'!=_0x33f07a['type'])return;const {data:_0x2dc840}=_0x33f07a;if(!_0x2dc840)return;if('indentBlock'!=_0x2dc840['commandName']&&'outdentBlock'!=_0x2dc840['commandName'])return;const _0x872dc2=_0x33f07a['getItems']()[0x0],_0x1563d8=_0x157a40['descriptionFactory']['getItemLabel'](_0x872dc2);return'indentBlock'==_0x2dc840['commandName']?{'type':'format','content':o(_0x4aced0,'*Indent:*\x20%0',_0x1563d8)}:'outdentBlock'==_0x2dc840['commandName']?{'type':'format','content':o(_0x4aced0,'*Outdent:*\x20%0',_0x1563d8)}:void 0x0;});}}class ht extends _0x3274cb{static get['requires'](){return[_0x5595f9];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x3274cb{['afterInit'](){const _0x20bda6=this['editor'];if(!_0x20bda6['plugins']['has']('LinkEditing'))return;const _0x4a5342=_0x20bda6['plugins']['get']('TrackChangesEditing'),_0x1c7407=_0x20bda6['commands']['get']('link');_0x4a5342['enableDefaultAttributesIntegration']('link'),_0x4a5342['enableDefaultAttributesIntegration']('unlink');for(const _0x4ddfd1 of _0x1c7407['manualDecorators'])_0x4a5342['descriptionFactory']['registerAttributeLabel'](_0x4ddfd1['id'],'link\x20('+_0x4ddfd1['label']['toLowerCase']()+')');_0x4a5342['descriptionFactory']['registerDescriptionCallback'](_0x5cf2a4=>{if('attribute'!=_0x5cf2a4['type'])return;const {data:_0x36a2e1}=_0x5cf2a4;if(!_0x36a2e1||'linkHref'!=_0x36a2e1['key'])return;const _0x165b61=_0x36a2e1['newValue'],_0x41f907=_0x20bda6['locale'];return{'type':'format','content':null==_0x165b61?o(_0x41f907,'*Remove\x20link*'):o(_0x41f907,'*Set\x20link:*\x20%0','\x22'+_0x165b61+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ae088=this['editor'],_0x2af1f9=_0x5ae088['locale'];_0x5ae088['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ad8d0=>{if('formatInline'!=_0x1ad8d0['type'])return;const {data:_0x100faa}=_0x1ad8d0;if(_0x100faa){if('link'==_0x100faa['commandName']){const _0xd7017b=_0x100faa['commandParams'][0x0];return{'type':'format','content':o(_0x2af1f9,'*Set\x20link:*\x20%0','\x22'+_0xd7017b+'\x22')};}return'unlink'==_0x100faa['commandName']?{'type':'format','content':o(_0x2af1f9,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x3274cb{['afterInit'](){const _0x5a46fa=this['editor'],_0x128d20=_0x5a46fa['locale'];if(!_0x5a46fa['plugins']['has']('LegacyListEditing'))return;const _0x588ff4=_0x5a46fa['plugins']['get']('TrackChangesEditing'),_0x22caf6=_0x5a46fa['plugins']['has']('LegacyTodoListEditing');function _0x1a6c5b(_0x219ccb){return()=>{const _0x3acb9e=_0x5a46fa['model']['document']['selection'],_0x3865f6=_0x5a46fa['commands']['get'](_0x219ccb);if(_0x3865f6['value'])return void _0x5a46fa['execute']('paragraph',{});const _0x4aebce=_0x219ccb['slice'](0x0,-0x4),_0x3cbdd8=function(_0x46cd2d,_0x56fede,_0x4f4afe){let _0x49c411=Array['from'](_0x46cd2d)['filter'](_0x43657b=>function(_0x56d4d3,_0x2a85a2){return _0x2a85a2['checkChild'](_0x56d4d3['parent'],'listItem')&&!_0x2a85a2['isObject'](_0x56d4d3);}(_0x43657b,_0x4f4afe));_0x49c411=_0x49c411['filter'](_0x32e394=>!_0x32e394['is']('element','listItem')||_0x32e394['getAttribute']('listType')!=_0x56fede);const _0x5b7d77=new Set();for(const _0x389fd8 of _0x49c411)_0x389fd8['is']('element','listItem')?_0x5b7d77['add'](Le(_0x389fd8)):_0x5b7d77['add'](_0x389fd8);return Array['from'](_0x5b7d77);}(_0x3acb9e['getSelectedBlocks'](),_0x4aebce,_0x5a46fa['model']['schema']);_0x5a46fa['model']['change'](()=>{for(const _0x4b3dab of _0x3cbdd8)_0x588ff4['markBlockFormat'](_0x4b3dab,{'commandName':_0x219ccb,'commandParams':[{'forceValue':!_0x3865f6['value']}],'formatGroupId':'blockName'},Ee(_0x4b3dab));});};}function _0x39f50b(_0x5242aa){return()=>{const _0x510074=function(_0x1b4ff4){let _0x502145=Array['from'](_0x1b4ff4);const _0x5f3464=_0x502145['findIndex'](_0x5b400a=>'listItem'!=_0x5b400a['name']);return _0x5f3464>-0x1&&(_0x502145=_0x502145['slice'](0x0,_0x5f3464)),_0x502145;}(_0x5a46fa['model']['document']['selection']['getSelectedBlocks']()),_0x121701=_0x5a46fa['model']['createRange'](_0x5a46fa['model']['createPositionAt'](_0x510074[0x0],'before'),_0x5a46fa['model']['createPositionAt'](_0x510074[_0x510074['length']-0x1],'end'));_0x5a46fa['model']['change'](()=>{_0x588ff4['markBlockFormat'](_0x121701,{'commandName':_0x5242aa,'commandParams':[],'formatGroupId':'listIndent'},function(_0x27a1cf){const _0x5e18a9=new Set();for(const _0xd45b95 of _0x27a1cf){let _0x112d3b=_0xd45b95['nextSibling'];for(;_0x112d3b&&_0x112d3b['getAttribute']('listIndent')>_0xd45b95['getAttribute']('listIndent');)_0x5e18a9['add'](_0x112d3b),_0x112d3b=_0x112d3b['nextSibling'];}return Array['from'](_0x5e18a9);}(_0x510074));});};}_0x588ff4['enableCommand']('numberedList',_0x1a6c5b('numberedList')),_0x588ff4['enableCommand']('bulletedList',_0x1a6c5b('bulletedList')),_0x22caf6&&_0x588ff4['enableCommand']('todoList',_0x1a6c5b('todoList')),_0x588ff4['enableCommand']('indentList',_0x39f50b('indentList')),_0x588ff4['enableCommand']('outdentList',_0x39f50b('outdentList')),_0x22caf6&&_0x588ff4['enableCommand']('checkTodoList',()=>{const _0x413bac=_0x5a46fa['commands']['get']('checkTodoList'),_0x27404c=Array['from'](_0x413bac['_selectedElements']);_0x27404c['filter'](_0x40bf1c=>_0x40bf1c['getAttribute']('todoListChecked')!=_0x413bac['value']),_0x5a46fa['model']['change'](()=>{for(const _0x8b4cc7 of _0x27404c)_0x588ff4['markBlockFormat'](_0x8b4cc7,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x413bac['value']}]});});}),_0x588ff4['descriptionFactory']['registerElementLabel']('listItem',_0x5eefcc=>o(_0x128d20,'ELEMENT_LIST_ITEM',_0x5eefcc)),_0x588ff4['descriptionFactory']['registerDescriptionCallback'](_0x11d429=>{if('formatBlock'!=_0x11d429['type']&&'formatInline'!=_0x11d429['type'])return;const {data:_0x5eb4c6}=_0x11d429;if(_0x5eb4c6){if('numberedList'==_0x5eb4c6['commandName']||'bulletedList'==_0x5eb4c6['commandName']||'todoList'==_0x5eb4c6['commandName'])switch(_0x5eb4c6['commandName']['replace']('List','')){case'bulleted':return _0x45dd33(o(_0x128d20,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x45dd33(o(_0x128d20,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x45dd33(o(_0x128d20,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5eb4c6['commandName'])return{'type':'format','content':o(_0x128d20,'*Indent:*\x20%0',o(_0x128d20,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5eb4c6['commandName'])return{'type':'format','content':o(_0x128d20,'*Outdent:*\x20%0',o(_0x128d20,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5eb4c6['commandName'])return _0x5eb4c6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x128d20,'*Check\x20item*')}:{'type':'format','content':o(_0x128d20,'*Uncheck\x20item*')};}function _0x45dd33(_0x386526){return{'type':'format','content':o(_0x128d20,'*Change\x20to:*\x20%0',_0x386526)};}});}}function Le(_0x44e6c9){const _0x42f1eb=_0x44e6c9['getAttribute']('listIndent');if(0x0==_0x42f1eb)return _0x44e6c9;let _0x42606a=_0x44e6c9;for(;_0x44e6c9['previousSibling']&&_0x44e6c9['previousSibling']['is']('element','listItem');){const _0x2e6b65=_0x44e6c9['previousSibling']['getAttribute']('listIndent');if(_0x2e6b65==_0x42f1eb)_0x42606a=_0x44e6c9['previousSibling'];else{if(_0x2e6b65<_0x42f1eb)break;}_0x44e6c9=_0x44e6c9['previousSibling'];}return _0x42606a;}function Ee(_0x2c8fac){const _0x52bc72=[];if(_0x2c8fac['is']('element','listItem')&&_0x2c8fac['getAttribute']('listIndent')>0x0){let _0x6cf347=_0x2c8fac['nextSibling'];for(;_0x6cf347&&'listItem'==_0x6cf347['name']&&_0x6cf347['getAttribute']('listIndent')==_0x2c8fac['getAttribute']('listIndent');)_0x52bc72['push'](_0x6cf347),_0x6cf347=_0x6cf347['nextSibling'];}return _0x52bc72;}class mt extends _0x3274cb{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3a46f6=this['editor']['config']['get']('list.properties'),_0x477bda=this['editor']['plugins']['get']('TrackChangesEditing');_0x3a46f6['styles']&&_0x477bda['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3a46f6['reversed']&&_0x477bda['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3a46f6['startIndex']&&_0x477bda['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x477bda['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2d4c9f,_0x2c968c={}){const _0x1f9488=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30f8dd=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1f9488['markMultiRangeBlockFormat'](_0x30f8dd,{'commandName':'listStyle','commandParams':[{'type':_0x2c968c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x345f31,_0x3d21de={}){const _0x53bba2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b704b=this['_getSuggestionBlocks'](_0x1af911=>_0x1af911['is']('element','listItem')&&'numbered'===_0x1af911['getAttribute']('listType'));if(_0x4b704b['length']<0x1)return;const _0x4d88a4=_0x4b704b['map'](_0x38ffcc=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x38ffcc,'before'),this['editor']['model']['createPositionAt'](_0x38ffcc,0x0)));this['editor']['model']['change'](()=>{_0x53bba2['markMultiRangeBlockFormat'](_0x4d88a4,{'commandName':'listReversed','commandParams':[{'reversed':_0x3d21de['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x55e98e,_0x92657a={}){const _0x461b05=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c008=this['_getSuggestionBlocks'](_0x22eb06=>_0x22eb06['is']('element','listItem')&&'numbered'===_0x22eb06['getAttribute']('listType'));if(_0x3c008['length']<0x1)return;const _0x1e2e03=_0x3c008['map'](_0x30c7c4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x30c7c4,'before'),this['editor']['model']['createPositionAt'](_0x30c7c4,0x0)));this['editor']['model']['change'](()=>{_0x461b05['markMultiRangeBlockFormat'](_0x1e2e03,{'commandName':'listStart','commandParams':[{'startIndex':_0x92657a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x40e208){if('formatBlock'!=_0x40e208['type']&&'formatInline'!=_0x40e208['type'])return;const _0x19b498=this['editor']['locale'],{data:_0x861d9e}=_0x40e208;if(!_0x861d9e)return;let _0xfbbe81,_0x2aff6b;switch(_0x861d9e['commandName']){case'listStyle':_0xfbbe81='*Change\x20to:*\x20%0',_0x2aff6b={'type':'format','content':o(_0x19b498,_0xfbbe81,o(_0x19b498,this['_getTranslationKeyForListStyle'](_0x861d9e['commandParams'][0x0]['type'])))};break;case'listReversed':_0xfbbe81=_0x861d9e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2aff6b={'type':'format','content':o(_0x19b498,_0xfbbe81)};break;case'listStart':_0xfbbe81='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2aff6b={'type':'format','content':o(_0x19b498,_0xfbbe81,_0x861d9e['commandParams'][0x0]['startIndex'])};}return _0x2aff6b;}['_getSuggestionBlocksForListStyle'](){const _0xc96153=this['editor']['plugins']['get']('LegacyListUtils');let _0x119bbd=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x119bbd[0x0]?.['is']('element','listItem')&&_0x119bbd['unshift'](..._0xc96153['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x119bbd[_0x119bbd['length']-0x1]?.['is']('element','listItem')&&_0x119bbd['push'](..._0xc96153['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x119bbd=[...new Set(_0x119bbd)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x119bbd=_0x119bbd['filter'](_0x2c1077=>_0x2c1077['is']('element','listItem'))),_0x119bbd;}['_getSuggestionBlocks'](_0x30d3e1){const _0x51a886=this['editor']['plugins']['get']('LegacyListUtils');let _0x2fd28a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x30d3e1)['map'](_0x42c14b=>{const _0x41c312=this['editor']['model']['createPositionAt'](_0x42c14b,0x0);return[..._0x51a886['getSiblingNodes'](_0x41c312,'backward'),..._0x51a886['getSiblingNodes'](_0x41c312,'forward')];})['flat']();return _0x2fd28a=[...new Set(_0x2fd28a)],_0x2fd28a;}['_getTranslationKeyForListStyle'](_0x588d13){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x588d13)||'default')['toUpperCase']()+'_LIST_'+_0x588d13['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x3274cb{['afterInit'](){const _0x5409de=this['editor'];if(!_0x5409de['plugins']['has']('MediaEmbedEditing'))return;const _0x138abc=_0x5409de['plugins']['get']('TrackChangesEditing'),_0x395f72=_0x5409de['locale'];_0x138abc['enableCommand']('mediaEmbed'),_0x138abc['descriptionFactory']['registerElementLabel']('media',_0x2e26fd=>o(_0x395f72,'ELEMENT_MEDIA',_0x2e26fd));}}class pt extends _0x3274cb{['afterInit'](){const _0x4a8952=this['editor'];_0x4a8952['plugins']['has']('MentionEditing')&&_0x4a8952['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x3274cb{['afterInit'](){const _0x1e8978=this['editor'];if(!_0x1e8978['plugins']['has']('MergeFieldsEditing'))return;const _0xbad1ef=_0x1e8978['plugins']['get']('TrackChangesEditing'),_0x1f2d8e=_0x1e8978['locale'];_0xbad1ef['enableCommand']('insertMergeField'),_0xbad1ef['enableCommand']('insertMergeFieldBlock'),_0xbad1ef['enableCommand']('insertMergeFieldImage'),_0xbad1ef['descriptionFactory']['registerElementLabel']('mergeField',_0x24343f=>o(_0x1f2d8e,'ELEMENT_MERGE_FIELD',_0x24343f)),_0xbad1ef['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5c822e=>o(_0x1f2d8e,'ELEMENT_MERGE_FIELD',_0x5c822e)),_0xbad1ef['descriptionFactory']['registerDescriptionCallback'](_0x3f57b2=>{if('insertion'!=_0x3f57b2['type']&&'deletion'!=_0x3f57b2['type'])return;const _0x324aaa=_0x3f57b2['getContainedElement']();if(null==_0x324aaa)return;const _0xaac8b3=_0x1e8978['plugins']['get']('MergeFieldsEditing');let _0x2e59be;switch(_0xaac8b3['getMergeFieldType'](_0x324aaa)){case null:return;case'image':{const _0xa65eb4=_0xaac8b3['unwrapAffixes'](_0x324aaa['getAttribute']('src'));_0x2e59be=_0xaac8b3['getLabel'](_0xa65eb4)||_0xa65eb4;break;}default:{const _0x2189fe=_0x324aaa['getAttribute']('id');_0x2e59be=_0xaac8b3['getLabel'](_0x2189fe)||_0x2189fe;break;}}return'insertion'==_0x3f57b2['type']?{'type':'insertion','content':o(_0x1f2d8e,'*Insert:*\x20%0','\x22'+_0x2e59be+'\x22\x20'+o(_0x1f2d8e,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x1f2d8e,'*Remove:*\x20%0','\x22'+_0x2e59be+'\x22\x20'+o(_0x1f2d8e,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x3274cb{['afterInit'](){const _0x4dddb0=this['editor'],_0x2faa8c=_0x4dddb0['plugins']['get']('TrackChangesEditing');_0x4dddb0['plugins']['has']('MultiLevelList')&&(_0x2faa8c['enableDefaultAttributesIntegration']('multiLevelList'),_0x2faa8c['descriptionFactory']['registerDescriptionCallback'](_0xc18595=>this['handleDescriptions'](_0xc18595)));}['handleDescriptions'](_0x5b4ae7){const _0x49381c=this['editor']['locale'],{data:_0x29d3da}=_0x5b4ae7,_0x343c02={'type':'format','content':''};if(_0x29d3da&&'listMarkerStyle'==_0x29d3da['key']){if(!_0x29d3da['oldValue'])return{'type':'format','content':o(_0x49381c,'*Set\x20format:*\x20%0',o(_0x49381c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x29d3da['newValue']+')'};if(!_0x29d3da['newValue']){let _0x473e6c=_0x5b4ae7['head'];for(;_0x473e6c;){if(_0x473e6c['data']&&'listType'==_0x473e6c['data']['key']&&_0x473e6c['data']['newValue'])return _0x343c02;_0x473e6c=_0x473e6c['next'];}return{'type':'format','content':o(_0x49381c,'*Remove\x20format:*\x20%0',o(_0x49381c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x29d3da['oldValue']+')'};}}}}class bt extends _0x3274cb{['afterInit'](){const _0x4efe24=this['editor'];if(!_0x4efe24['plugins']['has']('PageBreakEditing'))return;_0x4efe24['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x30aa64=_0x4efe24['plugins']['get']('TrackChangesEditing'),_0x18cea3=_0x4efe24['locale'];_0x30aa64['descriptionFactory']['registerElementLabel']('pageBreak',_0x323155=>o(_0x18cea3,'ELEMENT_PAGE_BREAK',_0x323155));}}class yt extends _0x3274cb{['afterInit'](){const _0x495dd8=this['editor'];if(!_0x495dd8['plugins']['has']('Paragraph'))return;const _0x3a5cf5=_0x495dd8['locale'],_0x31917c=_0x495dd8['plugins']['get']('TrackChangesEditing');_0x31917c['descriptionFactory']['registerElementLabel']('paragraph',_0x277cb4=>o(_0x3a5cf5,'ELEMENT_PARAGRAPH',_0x277cb4)),_0x31917c['enableDefaultAttributesIntegration']('paragraph'),_0x31917c['enableCommand']('insertParagraph');const _0x173259=_0x31917c['descriptionFactory'];_0x173259['registerDescriptionCallback'](_0x50122c=>{if('insertion'!==_0x50122c['type'])return;const {start:_0x12c0f9,end:_0xf63d52}=_0x50122c['getFirstRange']();if(!_0x12c0f9['isTouching'](_0xf63d52)||!_0x12c0f9['nodeAfter'])return;const _0x5d4998=_0x495dd8['model']['schema'],_0x465bf8=_0x12c0f9['nodeAfter'];return _0x5d4998['isBlock'](_0x465bf8)&&!_0x5d4998['isLimit'](_0x465bf8)&&_0x5d4998['checkChild'](_0x465bf8,'$text')?{'type':'insertion','content':o(_0x3a5cf5,'*Insert:*\x20%0',_0x173259['getItemLabel'](_0x465bf8,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3711a0=this['editor'],_0x239c21=_0x3711a0['locale'];_0x3711a0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x265983=>{if('formatBlock'!=_0x265983['type'])return;const {data:_0x32f6cc}=_0x265983;return _0x32f6cc&&'paragraph'==_0x32f6cc['commandName']?{'type':'format','content':o(_0x239c21,'*Change\x20to:*\x20%0',o(_0x239c21,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x3274cb{['afterInit'](){const _0x1a330e=this['editor'];_0x1a330e['commands']['get']('replaceSource')&&_0x1a330e['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x3274cb{['afterInit'](){const _0x13ea73=this['editor'];if(!_0x13ea73['plugins']['has']('RemoveFormatEditing'))return;_0x13ea73['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2da852=this['editor'];_0x2da852['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x594f76=>{if('formatBlock'!=_0x594f76['type']&&'formatInline'!=_0x594f76['type'])return;const {data:_0x337da2}=_0x594f76;return _0x337da2&&'removeFormat'==_0x337da2['commandName']?{'type':'format','content':o(_0x2da852['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x3274cb{['afterInit'](){const _0xcfed2a=this['editor'];if(!_0xcfed2a['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1ade38=_0xcfed2a['plugins']['get']('TrackChangesEditing');_0x1ade38['enableCommand']('goToPreviousRestrictedEditingException'),_0x1ade38['enableCommand']('goToNextRestrictedEditingException');const _0x407952=_0xcfed2a['plugins']['get']('RestrictedEditingModeEditing');_0x407952['enableCommand']('trackChanges'),_0x407952['enableCommand']('acceptSuggestion'),_0x407952['enableCommand']('discardSuggestion'),_0x407952['enableCommand']('acceptAllSuggestions'),_0x407952['enableCommand']('discardAllSuggestions'),_0x407952['enableCommand']('acceptSelectedSuggestions'),_0x407952['enableCommand']('discardSelectedSuggestions');}}class At extends _0x3274cb{['afterInit'](){const _0x434ed2=this['editor'];if(!_0x434ed2['plugins']['has']('ShiftEnter'))return;const _0x4af4f3=_0x434ed2['plugins']['get']('TrackChangesEditing');_0x4af4f3['enableCommand']('shiftEnter'),_0x4af4f3['descriptionFactory']['registerElementLabel']('softBreak',_0x4c4a2c=>o(_0x434ed2['locale'],'ELEMENT_LINE_BREAK',_0x4c4a2c));}}function an(_0x470a4,_0x1a141e,_0x4d18e7){const _0x453bff=[];for(const _0x797a18 of _0x1a141e['getItems']())_0x797a18['hasAttribute'](_0x470a4)&&_0x453bff['push'](_0x4d18e7['createRangeOn'](_0x797a18));return _0x453bff;}class _t extends _0x3274cb{['afterInit'](){const _0x1dcb73=this['editor'],_0xeac502=_0x1dcb73['plugins']['get']('TrackChangesEditing');_0x1dcb73['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0xeac502['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x5c30f3=this['editor'],_0x2e2c86=_0x5c30f3['model'],_0x78dc88=_0x5c30f3['locale'],_0x14a400=_0x5c30f3['plugins']['get']('TrackChangesEditing'),_0x43c67e='restrictedEditingException',_0x27514c=_0x5c30f3['commands']['get'](_0x43c67e);_0x14a400['enableCommand'](_0x43c67e,(_0x5bc2dc,_0x359a1d={})=>{const _0x3aab85=_0x2e2c86['document']['selection'];if(_0x3aab85['isCollapsed'])return void _0x5bc2dc(_0x359a1d);const _0x4d5759=void 0x0!==_0x359a1d['forceValue']?_0x359a1d['forceValue']:!_0x27514c['value'];_0x2e2c86['change'](()=>{const _0x4b0329=Array['from'](_0x3aab85['getRanges']());for(const _0x48e7de of _0x4b0329){const _0x31b7fe=_0x4d5759?[_0x48e7de]:an(_0x43c67e,_0x48e7de,_0x2e2c86);for(const _0x3dc495 of _0x31b7fe)_0x14a400['markInlineFormat'](_0x3dc495,{'commandName':_0x43c67e,'commandParams':[{'forceValue':_0x4d5759}]});}});}),_0x14a400['descriptionFactory']['registerDescriptionCallback'](_0x2a4a5d=>{if('formatBlock'!=_0x2a4a5d['type']&&'formatInline'!=_0x2a4a5d['type'])return;const {data:_0x1f618b}=_0x2a4a5d;return _0x1f618b&&_0x1f618b['commandName']==_0x43c67e?_0x1f618b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x78dc88,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x78dc88,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x111508=this['editor'],_0x5920b6=_0x111508['locale'],_0x1921b4=_0x111508['plugins']['get']('TrackChangesEditing'),_0x560b4c='restrictedEditingExceptionBlock',_0x1639df=this['editor']['commands']['get'](_0x560b4c);_0x1921b4['enableCommand'](_0x560b4c,(_0x5d4e0a,_0xa4d9e0={})=>{const _0x158a0c=this['editor']['model']['document']['selection'],_0x19d36b=_0xa4d9e0&&void 0x0!==_0xa4d9e0['forceValue']?_0xa4d9e0['forceValue']:!_0x1639df['value'];let _0x26bffa=[];if(_0x19d36b){const _0x447d91=Array['from'](_0x158a0c['getSelectedBlocks']())['filter'](_0x4ac82a=>function(_0x536a4c){return!!_0x536a4c['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x4ac82a)||function(_0x55f15e,_0x29b9fe){const _0x49f5ac=_0x29b9fe['createContext'](_0x55f15e['parent']);if(!_0x29b9fe['checkChild'](_0x49f5ac,'restrictedEditingException'))return!0x1;if(!_0x29b9fe['checkChild'](_0x49f5ac['push']('restrictedEditingException'),_0x55f15e))return!0x1;return!0x0;}(_0x4ac82a,this['editor']['model']['schema']));_0x26bffa=to(_0x447d91,_0x111508['model']);}else{const _0x21773c=Array['from'](_0x158a0c['getSelectedBlocks']())['map'](_0x23f2fa=>function(_0x13c6f9){let _0x55980e=_0x13c6f9;for(;_0x55980e['parent'];){if('restrictedEditingException'==_0x55980e['parent']['name'])return _0x55980e;_0x55980e=_0x55980e['parent'];}return null;}(_0x23f2fa))['filter'](_0x8afa66=>!!_0x8afa66);_0x26bffa=to(_0x21773c,_0x111508['model']);}_0x111508['model']['change'](()=>{for(const _0x1d496a of _0x26bffa)_0x1921b4['markBlockFormat'](_0x1d496a,{'commandName':_0x560b4c,'commandParams':[{'forceValue':_0x19d36b}]});});}),_0x1921b4['descriptionFactory']['registerDescriptionCallback'](_0x2aa175=>{const {data:_0xede361}=_0x2aa175;if(_0xede361&&_0xede361['commandName']==_0x560b4c)return _0xede361['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5920b6,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5920b6,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x3274cb{['afterInit'](){const _0xa9956c=this['editor'];if(!_0xa9956c['plugins']['has']('Style')||!_0xa9956c['plugins']['has']('DataSchema'))return;const _0x57f0cb=_0xa9956c['plugins']['get']('TrackChangesEditing'),_0x59bc54=_0xa9956c['locale'],_0x96cccc=_0xa9956c['config']['get']('style')||{},_0x10bca1=_0xa9956c['plugins']['get']('GeneralHtmlSupport'),_0x3bf284=_0xa9956c['plugins']['get']('StyleUtils')['normalizeConfig'](_0xa9956c['plugins']['get']('DataSchema'),_0x96cccc['definitions']);_0x57f0cb['enableDefaultAttributesIntegration']('style');const _0x25c266=new Set();for(const _0x36fab1 of _0x3bf284['block']){const _0x434dca=_0x10bca1['getGhsAttributeNameForElement'](_0x36fab1['element']);_0x25c266['add'](_0x434dca);}const _0x12031b=new Set();for(const _0x482e83 of _0x3bf284['inline']){const _0x372683=_0x10bca1['getGhsAttributeNameForElement'](_0x482e83['element']);_0x12031b['add'](_0x372683);for(const _0x4b3f6e of _0x482e83['ghsAttributes'])_0x12031b['add'](_0x4b3f6e);}for(const _0x31ff56 of _0x25c266)_0x57f0cb['descriptionFactory']['registerAttributeLabel'](_0x31ff56,o(_0x59bc54,'FORMAT_STYLE'));for(const _0x36accc of _0x12031b)_0x57f0cb['descriptionFactory']['registerAttributeLabel'](_0x36accc,o(_0x59bc54,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ec3fa=this['editor'],_0x4084fe=_0x4ec3fa['locale'];_0x4ec3fa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1dd1d0=>{if('formatBlock'!=_0x1dd1d0['type']&&'formatInline'!=_0x1dd1d0['type'])return;const {data:_0x482077}=_0x1dd1d0;return _0x482077&&'style'===_0x482077['commandName']?_0x482077['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4084fe,'*Set\x20format:*\x20%0',_0x482077['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4084fe,'*Remove\x20format:*\x20%0',_0x482077['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x3274cb{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xaeaa5){super(_0xaeaa5),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x559b9f=this['editor'],_0x1ae555=_0x559b9f['model']['document']['selection'];if(!_0x559b9f['plugins']['has']('TableEditing'))return;const _0x902d2=_0x559b9f['locale'],_0x5b4938=_0x559b9f['plugins']['get']('TrackChangesEditing'),_0x1e541b=_0x559b9f['plugins']['get']('TableUtils');_0x5b4938['descriptionFactory']['registerElementLabel']('table',_0x2a478e=>o(_0x902d2,'ELEMENT_TABLE',_0x2a478e)),this['_setupColumnsRowsFixing'](),_0x5b4938['enableCommand']('insertTable'),_0x5b4938['enableCommand']('selectTableRow'),_0x5b4938['enableCommand']('selectTableColumn');for(const _0x5c3b3c of['insertTableRowAbove','insertTableRowBelow']){const _0x276f1d=_0x559b9f['commands']['get'](_0x5c3b3c);_0x5b4938['enableCommand'](_0x5c3b3c,_0x20bcad=>{_0x559b9f['model']['change'](_0x4ceebe=>{_0x20bcad();const _0xe3b495='above'===_0x276f1d['order'],_0x5871cb=_0x1e541b['getSelectionAffectedTableCells'](_0x1ae555),_0x5d32b1=_0x1e541b['getRowIndexes'](_0x5871cb),_0xbf6b51=_0xe3b495?_0x5d32b1['first']-0x1:_0x5d32b1['last']+0x1,_0x4b4f1b=_0x5871cb[0x0]['findAncestor']('table'),_0x419956=_0x1e541b['createTableWalker'](_0x4b4f1b,{'startRow':_0xbf6b51,'endRow':_0xbf6b51}),_0x41dffa=Array['from'](_0x419956)['map'](_0x350dcd=>_0x4ceebe['createRangeOn'](_0x350dcd['cell']));_0x5b4938['markMultiRangeInsertion'](_0x41dffa,'tableRow');});});}for(const _0x4574c5 of['insertTableColumnLeft','insertTableColumnRight']){const _0x17808f=_0x559b9f['commands']['get'](_0x4574c5);_0x5b4938['enableCommand'](_0x4574c5,_0x31695b=>{_0x559b9f['model']['change'](_0x281f64=>{_0x31695b();const _0x4e7f46='left'===_0x17808f['order'],_0x1dfa7d=_0x1e541b['getSelectionAffectedTableCells'](_0x1ae555),_0x3449ea=_0x1e541b['getColumnIndexes'](_0x1dfa7d),_0x3c20c4=_0x4e7f46?_0x3449ea['first']-0x1:_0x3449ea['last']+0x1,_0x3a5b06=_0x1dfa7d[0x0]['findAncestor']('table'),_0x14061c=_0x1e541b['createTableWalker'](_0x3a5b06,{'startRow':0x0,'column':_0x3c20c4,'includeAllSlots':!0x1}),_0x3fa821=Array['from'](_0x14061c)['map'](_0x362390=>_0x281f64['createRangeOn'](_0x362390['cell']));_0x5b4938['markMultiRangeInsertion'](_0x3fa821,'tableColumn');});});}for(const _0x2bdaf4 of['removeTableRow','removeTableColumn']){const _0x10e4d7=_0x2bdaf4['substr'](0xb),_0x3b36e7=_0x10e4d7['toLowerCase'](),_0x1d6ae3=_0x3b36e7['substr'](0x0,0x3)+'span',_0x10876c='table'+_0x10e4d7,_0xe34305='min'+_0x10e4d7,_0x330ccd='max'+_0x10e4d7;_0x5b4938['enableCommand'](_0x2bdaf4,()=>{_0x559b9f['model']['change'](_0x4082b8=>{const _0x3fc1b4=_0x1e541b['getSelectionAffectedTableCells'](_0x1ae555),_0x30ba25=_0x3fc1b4[0x0]['findAncestor']('table');let _0x32252d;if('removeTableRow'==_0x2bdaf4){const _0x53f35e=_0x1e541b['getRowIndexes'](_0x3fc1b4);_0x32252d={'startRow':_0x53f35e['first'],'endRow':_0x53f35e['last'],'includeAllSlots':!0x0};}else{const _0x3cf38c=_0x1e541b['getColumnIndexes'](_0x3fc1b4);_0x32252d={'startColumn':_0x3cf38c['first'],'endColumn':_0x3cf38c['last'],'includeAllSlots':!0x0};}const _0x279255=_0x1e541b['createTableWalker'](_0x30ba25,_0x32252d),_0x4a109f=Array['from'](_0x279255)['map'](({cell:_0x199861})=>_0x199861),_0x94034=_e(_0x4a109f['filter'](_0x3b7c3b=>_0x3b7c3b['hasAttribute'](_0x1d6ae3))),_0x4d601b=_e(_0x4a109f['filter'](_0x100fc3=>!_0x100fc3['hasAttribute'](_0x1d6ae3)))['map'](_0x1ff166=>_0x4082b8['createRangeOn'](_0x1ff166)),_0x5d6db7=_0x5b4938['markMultiRangeDeletion'](_0x4d601b,_0x10876c);if(_0x5d6db7&&('tableRow'==_0x5d6db7['subType']||'tableColumn'==_0x5d6db7['subType'])){const _0x2a9c67=this['_getSuggestionCoords'](_0x5d6db7);for(const _0x2b56e6 of _0x94034){const _0x99e032=_0x4082b8['createRangeOn'](_0x2b56e6),_0x2dcd35=_0x1e541b['getCellLocation'](_0x2b56e6),_0x42f565=_0x2b56e6['getAttribute'](_0x1d6ae3)-0x1,_0x9ee9d0=_0x2a9c67[_0xe34305],_0x57fa56=_0x2a9c67[_0x330ccd];_0x9ee9d0<=_0x2dcd35[_0x3b36e7]&&_0x2dcd35[_0x3b36e7]+_0x42f565<=_0x57fa56&&_0x5d6db7['addRange'](_0x99e032);}}});});}function _0x3ca5d5(_0x531d45){const _0x1f98f2=Array['from'](_0x1ae555['getRanges']())['map'](_0x3c6a4c=>_0x393f46['fromRange'](_0x3c6a4c));_0x559b9f['model']['change'](_0x1780f2=>{const _0x16fb94=_0x1780f2['batch'];_0x531d45=_0x531d45['filter'](_0x117b98=>'$graveyard'!=_0x117b98['root']['rootName']),_0x1780f2['setSelection'](_0x531d45),_0x559b9f['commands']['get']('removeTableRow')['refresh'](),_0x559b9f['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x559b9f['model']['enqueueChange'](()=>{_0x559b9f['model']['enqueueChange'](_0x16fb94,_0x2bffa3=>{const _0x2c8b82=_0x1f98f2['filter'](_0x36739b=>'$graveyard'!=_0x36739b['root']['rootName']);_0x2c8b82['length']>0x0&&_0x2bffa3['setSelection'](_0x2c8b82);for(const _0x59b9b2 of _0x1f98f2)_0x59b9b2['detach']();});});});}function _0x5e58d9(_0x435bfe){_0x559b9f['model']['change'](_0x1835f2=>{const _0x326327=Array['from'](_0x1ae555['getRanges']())['map'](_0x511219=>_0x393f46['fromRange'](_0x511219)),_0x569d57=[];for(const _0x2dfdc3 of _0x435bfe)for(const _0x35e694 of _0x2dfdc3['getItems']({'shallow':!0x0}))_0x569d57['push'](_0x35e694);for(const _0x511af5 of _0x569d57)'$graveyard'!=_0x511af5['root']['rootName']&&(_0x1835f2['setSelection'](_0x1835f2['createPositionAt'](_0x511af5,0x0)),_0x559b9f['commands']['get']('removeTableColumn')['refresh'](),_0x559b9f['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x197043=_0x326327['filter'](_0x3d7169=>'$graveyard'!=_0x3d7169['root']['rootName']);_0x197043['length']>0x0&&_0x1835f2['setSelection'](_0x197043);for(const _0xae3980 of _0x326327)_0xae3980['detach']();});}function _0x272403(_0x2e3ce2,_0x2b37e5){return _0x2b37e5['every'](_0x11e65f=>_0x2e3ce2['some'](_0x5eedb6=>_0x5eedb6['end']['isEqual'](_0x11e65f['start'])||_0x11e65f['end']['isEqual'](_0x5eedb6['start'])));}function _0x31e18c(_0x128e81,_0x3b5545){return!_0x128e81['some'](_0xaee241=>_0x3b5545['some'](_0x5dfd4f=>_0xaee241['isIntersecting'](_0x5dfd4f)))&&_0x128e81['some'](_0x4efccc=>_0x3b5545['some'](_0x35b270=>_0x4efccc['end']['isTouching'](_0x35b270['start'])));}_0x5b4938['descriptionFactory']['registerDescriptionCallback'](_0x4768a6=>{if('insertion'!=_0x4768a6['type']&&'deletion'!=_0x4768a6['type'])return;const _0x3b0477=_0x4768a6['getContainedElement']();if(null!=_0x3b0477&&_0x3b0477['is']('element','table')){if('insertion'==_0x4768a6['type']){const _0x185812=_0x4768a6['getItems']()['filter'](_0x307ec2=>_0x307ec2['is']('$textProxy'))['map'](_0x2a30c3=>_0x2a30c3['data']);if(_0x185812['length'])return{'type':'insertion','content':o(_0x902d2,'*Insert:*\x20%0',o(_0x902d2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x185812['join']('\x20')+'\x22'))};}if('deletion'==_0x4768a6['type']){const _0x3a92f4=_0x4768a6['getItems']()['filter'](_0x26e245=>_0x26e245['is']('$textProxy'))['map'](_0x576d56=>_0x576d56['data']);if(_0x3a92f4['length'])return{'type':'deletion','content':o(_0x902d2,'*Remove:*\x20%0',o(_0x902d2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3a92f4['join']('\x20')+'\x22'))};}}}),_0x5b4938['descriptionFactory']['registerDescriptionCallback'](_0x4a580e=>{if('tableRow'==_0x4a580e['subType']){const _0x1d0ff8=_0x4a580e['getItems']()['filter'](_0x2bc676=>_0x2bc676['is']('$textProxy'))['map'](_0x3f03b2=>_0x3f03b2['data']),_0x4398c0=this['_getSuggestionCoords'](_0x4a580e),_0x44441d=_0x4398c0['maxRow']-_0x4398c0['minRow']+0x1;if('insertion'==_0x4a580e['type'])return _0x1d0ff8['length']?{'type':'insertion','content':o(_0x902d2,'*Insert:*\x20%0',o(_0x902d2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x44441d,'\x22'+_0x1d0ff8['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x902d2,'*Insert:*\x20%0',o(_0x902d2,'ELEMENT_TABLE_ROW',_0x44441d))};if('deletion'==_0x4a580e['type'])return _0x1d0ff8['length']?{'type':'deletion','content':o(_0x902d2,'*Remove:*\x20%0',o(_0x902d2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x44441d,'\x22'+_0x1d0ff8['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x902d2,'*Remove:*\x20%0',o(_0x902d2,'ELEMENT_TABLE_ROW',_0x44441d))};}if('tableColumn'==_0x4a580e['subType']){const _0x391d8f=_0x4a580e['getItems']()['filter'](_0x5711ae=>_0x5711ae['is']('$textProxy'))['map'](_0x18588c=>_0x18588c['data']),_0x13bdeb=this['_getSuggestionCoords'](_0x4a580e),_0xd4ca6a=_0x13bdeb['maxColumn']-_0x13bdeb['minColumn']+0x1;if('insertion'==_0x4a580e['type'])return _0x391d8f['length']?{'type':'insertion','content':o(_0x902d2,'*Insert:*\x20%0',o(_0x902d2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xd4ca6a,'\x22'+_0x391d8f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x902d2,'*Insert:*\x20%0',o(_0x902d2,'ELEMENT_TABLE_COLUMN',_0xd4ca6a))};if('deletion'==_0x4a580e['type'])return _0x391d8f['length']?{'type':'deletion','content':o(_0x902d2,'*Remove:*\x20%0',o(_0x902d2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xd4ca6a,'\x22'+_0x391d8f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x902d2,'*Remove:*\x20%0',o(_0x902d2,'ELEMENT_TABLE_COLUMN',_0xd4ca6a))};}}),_0x5b4938['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3ca5d5),_0x5b4938['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3ca5d5),_0x5b4938['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5e58d9),_0x5b4938['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5e58d9),_0x5b4938['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x272403),_0x5b4938['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x272403),_0x5b4938['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x31e18c),_0x5b4938['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x31e18c);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1d1864=this['editor'],_0x17ed34=_0x1d1864['model']['document']['selection'];return(_0x17ec8d,_0xaade43)=>{_0x1d1864['model']['change'](_0x48e343=>{const {commandName:_0x4077f7,commandParams:_0x89e08c}=_0xaade43;let _0x21eb59=_0x17ec8d[0x0]['end']['nodeBefore'];_0x89e08c&&_0x89e08c[0x0]&&!0x1===_0x89e08c[0x0]['forceValue']&&(_0x21eb59=_0x17ec8d[0x0]['start']['nodeAfter']);const _0x33d6f6=_0x48e343['createRangeIn'](_0x21eb59);if('$graveyard'==_0x33d6f6['root']['rootName'])return;const _0x95db7d=Array['from'](_0x17ed34['getRanges']())['map'](_0x3ff51=>_0x393f46['fromRange'](_0x3ff51));_0x48e343['setSelection'](_0x33d6f6),_0x1d1864['commands']['get'](_0x4077f7)['refresh'](),_0x89e08c['push']({'forceDefaultExecution':!0x0}),_0x1d1864['execute'](_0x4077f7,..._0x89e08c);const _0x286385=_0x95db7d['filter'](_0x259da4=>'$graveyard'!=_0x259da4['root']['rootName']);_0x286385['length']>0x0&&_0x48e343['setSelection'](_0x286385);for(const _0x58fb2d of _0x95db7d)_0x58fb2d['detach']();});};}['_getCoordsForCells'](_0xb1f2f2){const _0x14f94d=this['editor']['plugins']['get']('TableUtils');let _0x1f605c=Number['MAX_SAFE_INTEGER'],_0x4b2ad5=Number['MIN_SAFE_INTEGER'],_0x4422fb=Number['MAX_SAFE_INTEGER'],_0x778167=Number['MIN_SAFE_INTEGER'];for(const _0xfc4bab of _0xb1f2f2){if('$graveyard'==_0xfc4bab['root']['rootName'])continue;const {row:_0x480ff0,column:_0x39916e}=_0x14f94d['getCellLocation'](_0xfc4bab),_0x188642=_0xfc4bab['hasAttribute']('rowspan')?_0xfc4bab['getAttribute']('rowspan')-0x1:0x0,_0x2ccf9d=_0xfc4bab['hasAttribute']('colspan')?_0xfc4bab['getAttribute']('colspan')-0x1:0x0;_0x1f605c=_0x480ff0<_0x1f605c?_0x480ff0:_0x1f605c,_0x4b2ad5=_0x480ff0+_0x188642>_0x4b2ad5?_0x480ff0+_0x188642:_0x4b2ad5,_0x4422fb=_0x39916e<_0x4422fb?_0x39916e:_0x4422fb,_0x778167=_0x39916e+_0x2ccf9d>_0x778167?_0x39916e+_0x2ccf9d:_0x778167;}return{'minRow':_0x1f605c,'maxRow':_0x4b2ad5,'minColumn':_0x4422fb,'maxColumn':_0x778167};}['_setupColumnsRowsFixing'](){const _0x2fbd74=this['editor'],_0x283e12=_0x2fbd74['plugins']['get']('TrackChangesEditing'),_0x23cbe0=_0x2fbd74['plugins']['get']('TableUtils');_0x2fbd74['model']['document']['on']('change:data',()=>{const _0x554a49=Array['from'](_0x2fbd74['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x129116,data:_0x2ef510}of _0x554a49){const {group:_0x15b0e9,id:_0x12cb4a,subType:_0x3ff517}=_0x283e12['_splitMarkerName'](_0x129116);if('suggestion'!=_0x15b0e9)continue;if(null!=_0x2ef510['oldRange'])continue;const _0x466979=_0x283e12['getSuggestion'](_0x12cb4a);this['_tablePostFixingSubtypes']['includes'](_0x3ff517)&&this['_tableSuggestions']['add'](_0x466979);}},{'priority':'low'});const _0x4ce897=(_0x3255a2,_0x51af87)=>{let _0x5f523d=!0x1;const _0x58e946=_0x51af87['createRangeOn'](_0x3255a2),_0x15d0f4=_0x3255a2['findAncestor']('table'),_0x52b68a=_0x23cbe0['getCellLocation'](_0x3255a2);for(const _0x43dfd0 of this['_tableSuggestions']){const _0x2dafc3=_0x43dfd0['subType'],_0x11138b=_0x2dafc3['startsWith']('tablePaste'),_0xefbdc5=_0x2dafc3['substr'](_0x11138b?0xa:0x5),_0x3603ea=_0xefbdc5['toLowerCase'](),_0x3fac89=_0x3603ea['substr'](0x0,0x3)+'span',_0x22b45e='min'+_0xefbdc5,_0x2778e7='max'+_0xefbdc5;if(!_0x43dfd0['isInContent'])continue;if(_0x15d0f4!=_0x43dfd0['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x43dfd0['isIntersectingWithRange'](_0x58e946))continue;const _0x4193f8=_0x3255a2['hasAttribute'](_0x3fac89)?_0x3255a2['getAttribute'](_0x3fac89)-0x1:0x0,_0x209417=this['_getSuggestionCoords'](_0x43dfd0),_0xfe7565=_0x209417[_0x22b45e],_0x5ca493=_0x209417[_0x2778e7];_0xfe7565<=_0x52b68a[_0x3603ea]&&_0x52b68a[_0x3603ea]+_0x4193f8<=_0x5ca493&&(_0x43dfd0['addRange'](_0x58e946),_0x5f523d=!0x0);}return _0x5f523d;};_0x2fbd74['model']['document']['registerPostFixer'](_0x3f635a=>{let _0x2ce5b9=!0x1;for(const _0x2f9052 of _0x2fbd74['model']['document']['differ']['getChanges']())if('insert'==_0x2f9052['type']){if('tableRow'==_0x2f9052['name']){for(const _0x436616 of _0x2f9052['position']['nodeAfter']['getChildren']())_0x2ce5b9=_0x2ce5b9||_0x4ce897(_0x436616,_0x3f635a);}else'tableCell'==_0x2f9052['name']&&(_0x2ce5b9=_0x2ce5b9||_0x4ce897(_0x2f9052['position']['nodeAfter'],_0x3f635a));}return _0x2ce5b9;});}['_getSuggestionCoords'](_0x4dd7a4){return this['_getCoordsForCells'](_0x4dd7a4['getRanges']()['map'](_0x51fad8=>_0x51fad8['start']['nodeAfter']));}}function _e(_0x3e7782){return Array['from'](new Set(_0x3e7782)['values']());}class $t extends _0x3274cb{static get['requires'](){return[Nt];}['afterInit'](){const _0xcc6f9a=this['editor'],_0x308422=_0xcc6f9a['model']['document']['selection'],_0xcb6e57=_0xcc6f9a['locale'];if(!_0xcc6f9a['plugins']['has']('TableEditing'))return;const _0x11dc47=_0xcc6f9a['plugins']['get']('TrackChangesEditing'),_0x4c8b78=_0xcc6f9a['plugins']['get']('TableUtils'),_0x4f7ea0=_0xcc6f9a['plugins']['get'](Nt);_0x4f7ea0['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x11dc47['enableCommand']('mergeTableCells',()=>{const _0x3df31f=_0x4c8b78['getSelectionAffectedTableCells'](_0xcc6f9a['model']['document']['selection']);_0xcc6f9a['model']['change'](()=>{_0x11dc47['markMultiRangeBlockFormat'](_0x3df31f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xcc6f9a['commands']['get']('mergeTableCells')['on']('execute',(_0x3ba54f,_0x1bd464)=>{_0xcc6f9a['commands']['get']('trackChanges')['value']&&(_0x1bd464['length']>0x0&&_0x1bd464[_0x1bd464['length']-0x1]&&_0x1bd464[_0x1bd464['length']-0x1]['forceDefaultExecution']||_0x11dc47['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3ba54f['stop']());},{'priority':'highest'});for(const _0x3603c5 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x120aeb=_0xcc6f9a['commands']['get'](_0x3603c5);_0x11dc47['enableCommand'](_0x3603c5,()=>{const _0x689703=_0xcc6f9a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x29c577=>_0x29c577['is']('element','tableCell')),_0x529c6c=_0x120aeb['value'];_0xcc6f9a['model']['change'](()=>{_0x11dc47['markMultiRangeBlockFormat']([_0x689703,_0x529c6c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x32dd1a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x779bf3=_0xcc6f9a['commands']['get'](_0x32dd1a);_0x11dc47['enableCommand'](_0x32dd1a,()=>{const _0x5576c6=_0x4c8b78['getSelectionAffectedTableCells'](_0xcc6f9a['model']['document']['selection'])[0x0],_0x2b98cd=_0x5576c6['findAncestor']('table'),{column:_0xda1bdc,row:_0x56c5f6}=_0x4c8b78['getCellLocation'](_0x5576c6);let _0x52b9a0=[];if('horizontally'==_0x779bf3['direction']){const _0x3e0d02=_0x4c8b78['createTableWalker'](_0x2b98cd,{'startRow':_0x56c5f6,'endRow':_0x56c5f6,'includeAllSlots':!0x0});_0x52b9a0=Array['from'](_0x3e0d02)['map'](_0x5dc701=>_0x5dc701['cell']);}else{const _0x2c5d32=_0x4c8b78['createTableWalker'](_0x2b98cd,{'column':_0xda1bdc,'includeAllSlots':!0x0});_0x52b9a0=Array['from'](_0x2c5d32)['map'](_0x68ea18=>_0x68ea18['cell']);}_0xcc6f9a['model']['change'](_0x112949=>{_0x11dc47['markBlockFormat'](_0x112949['createRangeOn'](_0x5576c6),{'commandName':_0x32dd1a,'commandParams':[]},_0x52b9a0,_0x32dd1a);});});}_0x11dc47['descriptionFactory']['registerDescriptionCallback'](_0x30f9ea=>{if('formatBlock'!=_0x30f9ea['type']&&'formatInline'!=_0x30f9ea['type'])return;const {data:_0x59141f}=_0x30f9ea;return _0x59141f&&'mergeTableCells'==_0x59141f['commandName']?{'type':'format','content':o(_0xcb6e57,'*Merge\x20cells*')}:void 0x0;}),_0x11dc47['descriptionFactory']['registerDescriptionCallback'](_0x27472a=>{if('formatBlock'!=_0x27472a['type']&&'formatInline'!=_0x27472a['type'])return;const {data:_0x10900c}=_0x27472a;return _0x10900c?'splitTableCellVertically'==_0x10900c['commandName']?{'type':'format','content':o(_0xcb6e57,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x10900c['commandName']?{'type':'format','content':o(_0xcb6e57,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x43198e=_0x4f7ea0['_acceptFormatSuggestionCallbackFactory']();for(const _0x45dc61 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x11dc47['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x45dc61,'accept',_0x43198e);for(const _0x3a8456 of['splitTableCellVertically','splitTableCellHorizontally'])_0x11dc47['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3a8456,'accept',_0x43198e);_0x11dc47['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x45ea88=>{_0xcc6f9a['model']['change'](_0x22bb17=>{const _0x2130f5=Array['from'](_0x308422['getRanges']())['map'](_0x11af31=>_0x393f46['fromRange'](_0x11af31));_0x22bb17['setSelection'](_0x45ea88),_0xcc6f9a['commands']['get']('mergeTableCells')['refresh'](),_0xcc6f9a['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x352d5e=_0x2130f5['filter'](_0x122bdb=>'$graveyard'!=_0x122bdb['root']['rootName']);_0x352d5e['length']>0x0&&_0x22bb17['setSelection'](_0x352d5e);for(const _0xa7b6fd of _0x2130f5)_0xa7b6fd['detach']();});});for(const _0x4a9a2d of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2ff231=_0xcc6f9a['commands']['get'](_0x4a9a2d);_0x2ff231['on']('set:isEnabled',(_0xd9887e,_0x38ec3d,_0x4dde49)=>{if(_0x4dde49){const _0x2a1bea=_0xcc6f9a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4b31fb=>_0x4b31fb['is']('element','tableCell'));this['_areMergableCells'](_0x2ff231['value'],_0x2a1bea)||(_0xd9887e['return']=!0x1,_0xd9887e['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4a018a=this['editor']['commands']['get']('mergeTableCells'),_0x179379=this['editor']['plugins']['get']('TableUtils');if(!_0x4a018a['isEnabled'])return!0x1;const _0x12fad1=_0x179379['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x54eac2 of _0x12fad1)for(const _0x2ba94c of _0x12fad1)if(_0x54eac2!=_0x2ba94c&&!this['_areMergableCells'](_0x54eac2,_0x2ba94c))return!0x1;return!0x0;}['_areMergableCells'](_0x1de15b,_0x1774a8){const _0x128553=this['editor']['plugins']['get']('TrackChangesEditing'),_0x478510=this['editor']['model']['createRangeOn'](_0x1de15b),_0x275f8a=this['editor']['model']['createRangeOn'](_0x1774a8),_0x5b0ba6=new Set(),_0x2a287=new Set();for(const _0x52e946 of _0x128553['getSuggestions']())if(('insertion'==_0x52e946['type']||'deletion'==_0x52e946['type']||'mergeTableCells'==_0x52e946['subType'])&&_0x52e946['isInContent']){for(const _0x558c84 of _0x52e946['getRanges']())_0x558c84['containsRange'](_0x478510,!0x0)&&_0x5b0ba6['add'](_0x52e946['type']+':'+_0x52e946['author']['id']),_0x558c84['containsRange'](_0x275f8a,!0x0)&&_0x2a287['add'](_0x52e946['type']+':'+_0x52e946['author']['id']);}if(_0x5b0ba6['size']!=_0x2a287['size'])return!0x1;for(const _0x36607e of _0x5b0ba6)if(!_0x2a287['has'](_0x36607e))return!0x1;return!0x0;}}class vt extends _0x3274cb{static get['requires'](){return[Nt];}['afterInit'](){const _0x4b7790=this['editor'];if(!_0x4b7790['plugins']['has']('TableEditing'))return;const _0x519074=_0x4b7790['locale'],_0x37e456=_0x4b7790['plugins']['get']('TrackChangesEditing');_0x37e456['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x37e456['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x37e456['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x519074,'FORMAT_HEADER_ROW')),_0x37e456['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x519074,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x32b10b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x314f56=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x32b10b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x314f56),_0x32b10b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x314f56),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x4fd53a=this['editor']['plugins']['get']('TrackChangesEditing'),_0xdc1be7=this['editor']['plugins']['get']('TableUtils');function _0x4c869c({showActiveMarker:_0x29ecee=!0x0,setDataAttribute:_0x4bbcc7=!0x0}={}){return(_0x5524cd,_0x2f603c,_0x41c9ff)=>{const {type:_0x54f03b,id:_0x7294c1}=_0x4fd53a['_splitMarkerName'](_0x2f603c['markerName']);if(!_0x4fd53a['hasSuggestion'](_0x7294c1))return;const _0x33652d=_0x4fd53a['getSuggestion'](_0x7294c1),_0x58dd45=_0x33652d['data'];if('formatBlock'!=_0x33652d['type']||!_0x58dd45||'setTableColumnHeader'!=_0x58dd45['commandName'])return;if(_0x2f603c['item'])return void _0x5524cd['stop']();if(!_0x41c9ff['consumable']['consume'](_0x2f603c['markerRange'],_0x5524cd['name']))return;const _0xa0de60=_0x2f603c['markerRange']['start']['nodeAfter'],_0x321d85=_0x2f603c['markerRange']['end']['nodeBefore'],_0x372044=_0xa0de60['parent']['parent'],{column:_0x5e1d8f}=_0xdc1be7['getCellLocation'](_0xa0de60),{column:_0x14bdba}=_0xdc1be7['getCellLocation'](_0x321d85);for(let _0x4b0809=_0x5e1d8f;_0x4b0809<=_0x14bdba;_0x4b0809++){const _0x1d5fa4=_0xdc1be7['createTableWalker'](_0x372044,{'column':_0x4b0809,'includeAllSlots':!0x1});for(const _0x552156 of _0x1d5fa4){const _0x342b65=_0x552156['cell'],_0x36876a=_0x41c9ff['mapper']['toViewElement'](_0x342b65);_0x41c9ff['writer']['addClass']('ck-suggestion-marker-'+_0x54f03b,_0x36876a),_0x4bbcc7&&_0x41c9ff['writer']['setAttribute']('data-suggestion',_0x7294c1,_0x36876a),_0x41c9ff['mapper']['bindElementToMarker'](_0x36876a,_0x2f603c['markerName']),_0x29ecee&&(_0x4fd53a['activeMarkers']['includes'](_0x2f603c['markerName'])?_0x41c9ff['writer']['addClass']('ck-suggestion-marker--active',_0x36876a):_0x41c9ff['writer']['removeClass']('ck-suggestion-marker--active',_0x36876a));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4c869c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x23de5b,_0x2cba08,_0x2f1f81)=>{_0x2f1f81['options']['showSuggestionHighlights']&&_0x4c869c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x23de5b,_0x2cba08,_0x2f1f81);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2bf7a8,_0x4ed65c,_0x20d59e)=>{const {type:_0x1d4637,id:_0x540fff}=_0x4fd53a['_splitMarkerName'](_0x4ed65c['markerName']);if(!_0x4fd53a['hasSuggestion'](_0x540fff))return;const _0x446019=_0x4fd53a['getSuggestion'](_0x540fff),_0xd42590=_0x446019['data'];if('formatBlock'!=_0x446019['type']||!_0xd42590||'setTableColumnHeader'!=_0xd42590['commandName'])return;const _0x161a1c=_0x20d59e['mapper']['markerNameToElements'](_0x4ed65c['markerName']);if(_0x161a1c){for(const _0x35ae15 of _0x161a1c)_0x20d59e['writer']['removeClass']('ck-suggestion-marker-'+_0x1d4637,_0x35ae15),_0x20d59e['writer']['removeClass']('ck-suggestion-marker--active',_0x35ae15),_0x20d59e['writer']['removeAttribute']('data-suggestion',_0x35ae15),_0x20d59e['mapper']['unbindElementFromMarkerName'](_0x35ae15,_0x4ed65c['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x18c7bc=this['editor'],_0x54b285=_0x18c7bc['locale'];function _0x34c4ab(_0x597fe7){return{'type':'format','content':o(_0x54b285,'*Format:*\x20%0',_0x597fe7)};}_0x18c7bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x324f59=>{if('formatBlock'!=_0x324f59['type'])return;const {data:_0x18a504}=_0x324f59;if(_0x18a504){if('setTableRowHeader'==_0x18a504['commandName']){const _0x509f99=_0x18a504['commandParams'][0x0]['forceValue'];return _0x34c4ab(o(_0x54b285,_0x509f99?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x18a504['commandName']){const _0x5ace12=_0x18a504['commandParams'][0x0]['forceValue'];return _0x34c4ab(o(_0x54b285,_0x5ace12?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x3274cb{['afterInit'](){const _0x1056f2=this['editor'],_0x230659=_0x1056f2['locale'],_0x3cf3bd=_0x1056f2['plugins']['get']('TrackChangesEditing');function _0x5ace18(_0x10da91){return{'type':'format','content':''+o(_0x230659,'*Set\x20table\x20type:*\x20%0',_0x10da91)};}_0x1056f2['plugins']['has']('TableLayout')&&(_0x3cf3bd['enableCommand']('insertTableLayout'),_0x3cf3bd['enableDefaultAttributesIntegration']('tableType'),_0x3cf3bd['descriptionFactory']['registerElementLabel'](_0x5634cc=>_0x5634cc['is']('element','table')&&'layout'===_0x5634cc['getAttribute']('tableType'),_0x4ccdbc=>o(_0x230659,'ELEMENT_LAYOUT_TABLE',_0x4ccdbc)),_0x3cf3bd['descriptionFactory']['registerDescriptionCallback'](_0x2b8f7b=>{const {data:_0x4e1c34}=_0x2b8f7b;if(_0x4e1c34&&'tableType'==_0x4e1c34['key'])switch(_0x4e1c34['newValue']){case'layout':return _0x5ace18(o(_0x230659,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x5ace18(o(_0x230659,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Re['map'](_0x291c19=>[_0x291c19,null]));class Bt extends _0x3274cb{static get['requires'](){return[Nt];}['afterInit'](){const _0x289ef9=this['editor'];if(!_0x289ef9['plugins']['has']('TableClipboard'))return;const _0x4371af=_0x289ef9['plugins']['get']('TrackChangesEditing'),_0x42240e=_0x289ef9['plugins']['get']('TableUtils'),_0x311383=_0x289ef9['plugins']['get'](Nt),_0x4bad4b=_0x289ef9['plugins']['get']('TableClipboard'),_0x20167e=_0x289ef9['plugins']['get']('TableSelection'),_0x1d0b25=_0x289ef9['plugins']['get'](_0x28c363);_0x311383['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x289ef9['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x289ef9['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x456ec5=null,_0x2489da=!0x1;_0x1d0b25['on']('contentInsertion',(_0x20f4f3,_0x351af1)=>{_0x2489da='paste'===_0x351af1['method'];}),_0x289ef9['model']['on']('insertContent',(_0x1cf55d,_0x256eeb)=>{if(!_0x2489da&&null===_0x20167e['getSelectedTableCells']())return;const [_0x57c860,_0x652165]=_0x256eeb,_0x45a20d=_0x256eeb[_0x256eeb['length']-0x1];_0x45a20d&&_0x45a20d['forceDefaultExecution']||_0x4371af['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3002f2,_0x6ef778,_0x5716c7,_0x535b44,_0x103864){if(_0x6ef778&&!_0x6ef778['is']('documentSelection'))return!0x1;const _0x5ca2c4=_0x103864['getTableIfOnlyTableInContent'](_0x3002f2,_0x5716c7);if(!_0x5ca2c4||!Oe(_0x5ca2c4,void 0x0,_0x535b44))return!0x1;const _0x3a3ad5=_0x535b44['getSelectionAffectedTableCells'](_0x5716c7['document']['selection']);if(!_0x3a3ad5['length'])return!0x1;const _0x2d7304=_0x3a3ad5[0x0]['findAncestor']('table'),_0x233578=_0x535b44['getRowIndexes'](_0x3a3ad5),_0x238e2e=_0x535b44['getColumnIndexes'](_0x3a3ad5),_0x4f85db={'startRow':_0x233578['first'],'endRow':_0x233578['last'],'startColumn':_0x238e2e['first'],'endColumn':_0x238e2e['last']};return 0x1==_0x3a3ad5['length']&&(_0x4f85db['endRow']+=_0x535b44['getRows'](_0x5ca2c4)-0x1,_0x4f85db['endColumn']+=_0x535b44['getColumns'](_0x5ca2c4)-0x1),Oe(_0x2d7304,_0x4f85db,_0x535b44);}(_0x57c860,_0x652165,_0x289ef9['model'],_0x42240e,_0x4bad4b)&&(_0x1cf55d['stop'](),_0x456ec5={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x289ef9['model']['change'](()=>{_0x289ef9['model']['insertContent'](_0x256eeb[0x0],_0x256eeb[0x1],_0x256eeb[0x2],{'forceDefaultExecution':!0x0});const _0x5e7578=_0x531b89(),{rowInsertionRanges:_0x368b1a,columnInsertionRanges:_0x290cb6,insertionRanges:_0x31f5bb,deletionRanges:_0x2db78a,cells:_0x149908}=_0x456ec5;_0x368b1a['length']&&_0x4371af['markMultiRangeInsertion'](_0x368b1a,'tablePasteRow',{'tablePasteChainId':_0x5e7578}),_0x290cb6['length']&&_0x4371af['markMultiRangeInsertion'](_0x290cb6,'tablePasteColumn',{'tablePasteChainId':_0x5e7578}),_0x31f5bb['length']&&(_0x4371af['markMultiRangeInsertion'](_0x31f5bb,'tablePaste',{'tablePasteChainId':_0x5e7578,'skipNestingCheck':!0x0}),_0x31f5bb['forEach'](_0x4badcd=>_0x4badcd['detach']?.())),_0x2db78a['length']&&(_0x4371af['markMultiRangeDeletion'](_0x2db78a,'tablePaste',{'tablePasteChainId':_0x5e7578,'skipNestingCheck':!0x0}),_0x2db78a['forEach'](_0x4435ad=>_0x4435ad['detach']?.()));const _0x2a62db=_0x4371af['markMultiRangeBlockFormat'](_0x149908['map'](({element:_0x233791})=>_0x233791),{'formatGroupId':_0x531b89()},[],'tablePasteCell',{'tablePasteChainId':_0x5e7578});if(_0x2a62db){const _0x1ca331=_0x2a62db['getMarkers'](),_0x5487d5=[];for(const {element:_0x2e5781,attributes:_0x515e28}of _0x149908){if(!_0x515e28)continue;const _0x361d6b=_0x289ef9['model']['createRangeOn'](_0x2e5781),_0xa9976=_0x1ca331['find'](_0x5446b4=>_0x5446b4['getRange']()['isEqual'](_0x361d6b));_0xa9976&&_0x5487d5['push']([_0xa9976['name'],_0x515e28]);}_0x5487d5['length']&&_0x2a62db['setAttribute']('markerAttributes',Object['fromEntries'](_0x5487d5));}_0x456ec5=null;}));},{'priority':_0x296698['high']+0xa}),_0x1d0b25['on']('contentInsertion',()=>{_0x2489da=!0x1;},{'priority':'lowest'}),_0x289ef9['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5b17de,_0xe60138)=>{const [_0x47517b,_0x52796b,,_0x421b81]=_0xe60138;if(!_0x456ec5)return;_0x5b17de['stop']();const _0x3dde6b=_0x47517b['cell'],_0x5ad67d=_0x52796b,_0x4c4227=Be(_0x3dde6b),_0x5bcb44=Be(_0x5ad67d);_0x5b17de['return']=_0x3dde6b;let _0x4a6e0e=null,_0x5b0ec0=null;if(_0x5bcb44||_0x4c4227){if(_0x4c4227&&!_0x5bcb44){_0x421b81['remove'](_0x3dde6b['getChild'](0x0));for(const _0x2978af of Array['from'](_0x5ad67d['getChildren']()))_0x421b81['insert'](_0x2978af,_0x3dde6b,'end');const _0xc5d79a=_0x456ec5['rowInsertionIndexes']['includes'](_0x47517b['row']),_0x452851=_0x456ec5['columnInsertionIndexes']['includes'](_0x47517b['column']);_0xc5d79a||_0x452851||(_0x4a6e0e=_0x393f46['fromRange'](_0x421b81['createRangeIn'](_0x3dde6b)));}else _0x5bcb44&&!_0x4c4227&&(_0x5b0ec0=_0x421b81['createRangeIn'](_0x3dde6b));}else{const _0x58b5b5=_0x421b81['createElement']('tableCellSuggestion'),_0x2534e4=_0x421b81['createElement']('tableCellSuggestion');_0x421b81['wrap'](_0x421b81['createRangeIn'](_0x3dde6b),_0x2534e4),_0x421b81['insert'](_0x58b5b5,_0x3dde6b,0x0);for(const _0x540274 of Array['from'](_0x5ad67d['getChildren']()))_0x421b81['insert'](_0x540274,_0x58b5b5,'end');_0x4a6e0e=_0x393f46['fromRange'](_0x421b81['createRangeOn'](_0x58b5b5)),_0x5b0ec0=_0x393f46['fromRange'](_0x421b81['createRangeOn'](_0x2534e4));}const _0x40aa96=Array['from'](_0x5ad67d['getAttributes']())['filter'](([_0x455f30])=>Re['includes'](_0x455f30));_0x456ec5['cells']['push']({'element':_0x3dde6b,'attributes':_0x40aa96['length']?Object['fromEntries'](_0x40aa96):null}),_0x4a6e0e&&_0x456ec5['insertionRanges']['push'](_0x4a6e0e),_0x5b0ec0&&_0x456ec5['deletionRanges']['push'](_0x5b0ec0);},{'priority':'high'}),_0x42240e['on']('insertColumns',(_0x31fecf,_0x11c2be)=>{const [_0x3fc6f4,_0x45f47d={}]=_0x11c2be;if(!_0x456ec5)return;const _0x191eba=_0x45f47d['at']||0x0,_0x1558e9=_0x45f47d['columns']||0x1;_0x456ec5['columnInsertionIndexes']=new Array(_0x1558e9)['fill'](_0x191eba)['map']((_0xf0be58,_0x4adfe1)=>_0xf0be58+_0x4adfe1);for(const {cell:_0x54db6b}of _0x42240e['createTableWalker'](_0x3fc6f4,{'startColumn':_0x191eba,'endColumn':_0x191eba+_0x1558e9-0x1}))_0x456ec5['columnInsertionRanges']['push'](_0x289ef9['model']['createRangeOn'](_0x54db6b));},{'priority':'low'}),_0x42240e['on']('insertRows',(_0x294186,_0x3339cd)=>{const [_0x194565,_0x43f235={}]=_0x3339cd;if(!_0x456ec5)return;const _0x532afb=_0x43f235['at']||0x0,_0x1025a2=_0x43f235['rows']||0x1;_0x456ec5['rowInsertionIndexes']=new Array(_0x1025a2)['fill'](_0x532afb)['map']((_0x194843,_0x54ee54)=>_0x194843+_0x54ee54);for(const {cell:_0x46e4b7}of _0x42240e['createTableWalker'](_0x194565,{'startRow':_0x532afb,'endRow':_0x532afb+_0x1025a2-0x1}))_0x456ec5['rowInsertionRanges']['push'](_0x289ef9['model']['createRangeOn'](_0x46e4b7));},{'priority':'low'}),_0x4371af['descriptionFactory']['registerDescriptionCallback'](_0x41b946=>{if(_0x41b946['subType']&&_0x41b946['subType']['startsWith']('tablePaste'))return _0x41b946['previous']?{}:{'type':'insertion','content':o(_0x289ef9['locale'],'*Replace\x20table\x20cells*')};});const _0x48f747=()=>!0x1;for(const _0x558706 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4371af['_suggestionFactory']['registerCustomCallback']('insertion',_0x558706,'join',_0x48f747),_0x4371af['_suggestionFactory']['registerCustomCallback']('deletion',_0x558706,'join',_0x48f747),_0x4371af['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x558706,'join',_0x48f747);_0x4371af['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x48f747),_0x4371af['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xc47d74,_0x432292,_0x4f4f26)=>{const _0x4d66d8=_0xc47d74['map'](_0x20bf83=>_0x20bf83['getContainedElement']())['filter'](_0x4ef84b=>_0x4ef84b),_0x56c7f3=new Map(_0x4d66d8['map'](_0x4f60c1=>[_0x4f60c1,null]));if(_0x456ec5){for(const {element:_0x4c4dc5,attributes:_0x3510b2}of _0x456ec5['cells'])_0x3510b2&&_0x56c7f3['set'](_0x4c4dc5,_0x3510b2);}else{if(_0x4f4f26&&_0x4f4f26['markerAttributes'])for(const [_0x4c80a0,_0x469359]of Object['entries'](_0x4f4f26['markerAttributes'])){const _0x24616f=_0x289ef9['model']['markers']['get'](_0x4c80a0),_0x5ddfb5=_0x24616f?_0x24616f['getRange']()['getContainedElement']():null;_0x5ddfb5&&_0x56c7f3['set'](_0x5ddfb5,_0x469359);}}_0x289ef9['model']['change'](_0x3435ec=>{for(const [_0x4df414,_0x1be537]of _0x56c7f3)_0x3435ec['setAttributes']({...Ae,..._0x1be537},_0x4df414);});});const _0x1a1e2d=(_0x28eb90,_0x22e399)=>{_0x4371af['_suggestionFactory']['registerCustomCallback'](_0x28eb90,'tablePaste',_0x22e399,(_0x4aaf19,_0xddb243,_0x11234b)=>{_0x289ef9['model']['change'](_0x5006f9=>{const _0x2d1f8c=[];for(const _0x1ad5f8 of _0x4aaf19){const _0x3f2560=_0x1ad5f8['start']['nodeAfter'];_0x3f2560['is']('element','tableCellSuggestion')&&_0x2d1f8c['push'](_0x3f2560);}_0x4371af['_suggestionFactory']['getSuggestionCallback'](_0x28eb90,null,_0x22e399)(_0x4aaf19,_0xddb243,_0x11234b);for(const _0x220225 of _0x2d1f8c)'$graveyard'!=_0x220225['root']['rootName']&&_0x5006f9['unwrap'](_0x220225);});});};_0x1a1e2d('insertion','accept'),_0x1a1e2d('insertion','discard'),_0x1a1e2d('deletion','accept'),_0x1a1e2d('deletion','discard'),_0x4371af['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2cc37e=>{const _0x404209=_0x2cc37e['map'](_0x5801cd=>_0x5801cd['getContainedElement']()),_0x5e6d19=_0x404209[0x0]['findAncestor']('table'),{minRow:_0x54a7df,maxRow:_0x3dfd45}=_0x311383['_getCoordsForCells'](_0x404209);_0x42240e['removeRows'](_0x5e6d19,{'at':_0x54a7df,'rows':_0x3dfd45-_0x54a7df+0x1});}),_0x4371af['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1e23f3=>{const _0x3e873b=_0x1e23f3['map'](_0x3f9c74=>_0x3f9c74['getContainedElement']()),_0x2f97e0=_0x3e873b[0x0]['findAncestor']('table'),{minColumn:_0x5265c8,maxColumn:_0x14c332}=_0x311383['_getCoordsForCells'](_0x3e873b);_0x42240e['removeColumns'](_0x2f97e0,{'at':_0x5265c8,'columns':_0x14c332-_0x5265c8+0x1});});const _0x31be90=(_0x201338,_0x2bfe66)=>{if(!_0x2bfe66['subType']||!_0x2bfe66['subType']['startsWith']('tablePaste'))return;const _0x389253=_0x2bfe66['attributes']['tablePasteChainId'],_0x2591ed=_0x4371af['getSuggestions']()['filter'](_0x2853f1=>_0x2853f1['isInContent']&&_0x2853f1['attributes']&&_0x2853f1['attributes']['tablePasteChainId']==_0x389253);_0x2591ed['length']&&_0x2bfe66['getAllAdjacentSuggestions']()['length']!=_0x2591ed['length']&&_0x2591ed['reduce']((_0x5656a0,_0x3c8b05)=>(_0x5656a0['next']=_0x3c8b05,_0x3c8b05['previous']=_0x5656a0,_0x3c8b05));};function _0x58d32b(_0x41bdba,_0x1c6a5b=!0x0){const {id:_0x297a2e,authorId:_0x455c31}=_0x4371af['_splitMarkerName'](_0x41bdba['markerName']),_0x4892eb=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x474f2a=_0x4371af['activeMarkers']['includes'](_0x41bdba['markerName']);return _0x474f2a&&_0x4892eb['push']('ck-suggestion-marker--active'),{'classes':_0x4892eb,'attributes':{'data-suggestion':_0x297a2e,'data-author-id':_0x455c31},'priority':_0x474f2a&&_0x1c6a5b?0xbc2:0xbb8};}_0x4371af['on']('suggestionLoaded',_0x31be90,{'priority':'high'}),_0x4371af['on']('suggestionUnloaded',_0x31be90,{'priority':'high'}),_0x289ef9['model']['document']['registerPostFixer'](()=>{let _0x5747e7=!0x1;const _0x16cfc4=Array['from'](_0x289ef9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3151e2,data:_0x1f4947}of _0x16cfc4){const {group:_0x5d896d,type:_0x212c88,id:_0xbb7ad5}=_0x4371af['_splitMarkerName'](_0x3151e2);if('suggestion'!=_0x5d896d||'deletion'!=_0x212c88||_0x1f4947['oldRange'])continue;if(!_0x4371af['hasSuggestion'](_0xbb7ad5))continue;const _0x19447c=_0x4371af['getSuggestion'](_0xbb7ad5)['getRanges'](),_0x80858=_0x289ef9['plugins']['get']('Users')['me'];for(const _0x21f801 of _0x4371af['getSuggestions']()){if(!_0x21f801['isInContent']||_0x21f801['author']!=_0x80858)continue;if('formatBlock'!=_0x21f801['type']||'tablePasteCell'!=_0x21f801['subType'])continue;if(_0x21f801['getRanges']()['every'](_0x2f41a7=>_0x19447c['some'](_0x3e48ef=>_0x3e48ef['containsRange'](_0x2f41a7,!0x0)))){for(const _0x3d81c5 of _0x21f801['getAllAdjacentSuggestions']())_0x3d81c5['isInContent']&&(_0x3d81c5['discard'](),_0x5747e7=!0x0);}}}return _0x5747e7;}),_0x289ef9['model']['document']['registerPostFixer'](_0x3fda2c=>{const _0xefb514=_0x289ef9['commands']['get']('redo');if(!_0xefb514||!_0xefb514['_createdBatches']['has'](_0x3fda2c['batch']))return!0x1;let _0x442a3c=!0x1;const _0x1041e1=_0x289ef9['plugins']['get']('Users')['me'],_0x23e706=_0x289ef9['model']['document']['differ']['getChanges'](),_0x5df5e0=Array['from'](_0x289ef9['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x52d076,data:_0x2e8497})=>{const {group:_0x176c80,subType:_0x131ec6,authorId:_0x18f917}=_0x4371af['_splitMarkerName'](_0x52d076);return'suggestion'==_0x176c80&&'tablePaste'==_0x131ec6&&_0x18f917==_0x1041e1['id']&&!_0x2e8497['oldRange'];});for(const _0x302b77 of _0x23e706){if('insert'!=_0x302b77['type']||'tableCellSuggestion'!=_0x302b77['name']||0x1!=_0x302b77['length'])continue;const _0x160de7=_0x3fda2c['createRange'](_0x302b77['position'],_0x302b77['position']['getShiftedBy'](0x1));if(!_0x5df5e0['find'](({data:_0x3295bf})=>_0x3295bf['newRange']['isEqual'](_0x160de7))){for(const {name:_0x278c65,data:_0x12d380}of _0x5df5e0)if(_0x160de7['containsRange'](_0x12d380['newRange'])){_0x3fda2c['updateMarker'](_0x278c65,{'range':_0x160de7}),_0x442a3c=!0x0;break;}}}return _0x442a3c;}),_0x289ef9['model']['document']['registerPostFixer'](_0x22265c=>{let _0x1d99fe=!0x1;const _0x2859d4=_0x289ef9['plugins']['get']('Users')['me'],_0x372473=_0x4371af['getSuggestions']()['filter'](_0x383575=>_0x383575['isInContent']&&_0x383575['author']==_0x2859d4),_0x51c895=new Set(),_0x3a758a=new Set();for(const _0x13fabb of _0x372473)if('tablePaste'==_0x13fabb['subType'])for(const _0x2a4a34 of _0x13fabb['getMarkers']()){const _0x1d3bdf=_0x2a4a34['getRange']()['getContainedElement']();if(_0x1d3bdf){if(_0x1d3bdf['is']('element','tableCellSuggestion')&&Be(_0x1d3bdf)){_0x13fabb['removeMarker'](_0x2a4a34['name']),_0x51c895['add'](_0x1d3bdf),_0x1d99fe=!0x0;const _0x532008=_0x1d3bdf['nextSibling'],_0x477afb=_0x1d3bdf['previousSibling'],_0x14cc23=_0x532008&&_0x532008['is']('element','tableCellSuggestion'),_0x1e0f5b=_0x477afb&&_0x477afb['is']('element','tableCellSuggestion');_0x14cc23&&!_0x51c895['has'](_0x532008)&&_0x3a758a['add'](_0x532008),_0x1e0f5b&&!_0x51c895['has'](_0x477afb)&&_0x3a758a['add'](_0x477afb);}else _0x1d3bdf['is']('element','paragraph')&&_0x1d3bdf['isEmpty']&&(_0x13fabb['removeMarker'](_0x2a4a34['name']),_0x1d99fe=!0x0);}}else{if('tablePasteCell'==_0x13fabb['subType']){if(!_0x13fabb['attributes']||!_0x13fabb['attributes']['tablePasteChainId'])continue;const _0x3f9fc9=_0x13fabb['attributes']['markerAttributes'];if(_0x3f9fc9&&Object['keys'](_0x3f9fc9)['length'])continue;const _0x47bcbd=_0x13fabb['attributes']['tablePasteChainId'];let _0x5da646=!0x0,_0x33b440=!0x0;for(const _0x29ec43 of _0x372473)if(_0x29ec43['subType']&&_0x29ec43['subType']['startsWith']('tablePaste')){if(!_0x29ec43['attributes']['tablePasteChainId']){_0x33b440=!0x1;break;}if(_0x29ec43['id']!=_0x13fabb['id']&&_0x29ec43['attributes']['tablePasteChainId']==_0x47bcbd){_0x5da646=!0x1;break;}}_0x33b440&&_0x5da646&&(_0x13fabb['removeMarkers'](),_0x1d99fe=!0x0);}}for(const _0x5d48a0 of _0x51c895)_0x22265c['remove'](_0x5d48a0);for(const _0x14ebe3 of _0x3a758a)_0x22265c['unwrap'](_0x14ebe3);return _0x1d99fe;}),_0x289ef9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x41f033=>_0x58d32b(_0x41f033),'converterPriority':'high'}),_0x289ef9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x183c9b,_0x23674e)=>_0x23674e['options']['showSuggestionHighlights']?_0x58d32b(_0x183c9b,!0x1):null,'converterPriority':'high'});const _0x52736a=_0x289ef9['editing']['view'];this['listenTo'](_0x52736a['document'],'clipboardOutput',(_0x4a3b99,_0x104d18)=>{const _0x356e80=[];for(const _0x17052e of _0x52736a['createRangeIn'](_0x104d18['content'])['getItems']())_0x17052e['is']('element','suggestion-td')&&_0x356e80['push'](_0x17052e);_0x52736a['change'](_0x311e0c=>{for(const _0x5c3a5a of _0x356e80)_0x311e0c['move'](_0x311e0c['createRangeIn'](_0x5c3a5a),_0x311e0c['createPositionBefore'](_0x5c3a5a)),_0x311e0c['remove'](_0x5c3a5a);});});}}function Be(_0x5bf46){if(_0x5bf46['isEmpty'])return!0x0;const _0x3ece02=_0x5bf46['getChild'](0x0);return _0x3ece02['is']('element','paragraph')&&_0x3ece02['isEmpty'];}function Oe(_0x26247f,_0x473d9a={},_0x1b6363){for(const {isAnchor:_0x1df74f,cellHeight:_0x11078e,cellWidth:_0x430997}of _0x1b6363['createTableWalker'](_0x26247f,{'includeAllSlots':!0x0,..._0x473d9a}))if(!_0x1df74f||0x1!=_0x11078e||0x1!=_0x430997)return!0x1;return!0x0;}class Ot extends _0x3274cb{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xf44141=this['editor']['plugins']['get']('TrackChangesEditing');_0xf44141['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xf44141['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xf44141['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xf44141['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xf44141['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xf44141['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xd4708a,_0x3eacba){const _0x460250=this['editor']['plugins']['get']('TrackChangesEditing'),_0x484bc8=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3fc727=_0x3eacba['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x21b91b=_0x484bc8['getColumnGroupElement'](_0x3fc727);let _0x3e125e=_0x21b91b?_0x484bc8['getTableColumnsWidths'](_0x21b91b):null,_0x45dcf7=_0x3fc727['getAttribute']('tableWidth')||null;const _0x8b80b9=_0x3eacba['tableWidth']||_0x45dcf7,_0x3c5038=_0x3eacba['columnWidths']||_0x3e125e,_0xb3d714=this['editor']['plugins']['get']('Users')['me'];for(const _0x1cbac8 of _0x460250['getSuggestions']()){const _0x14877b=_0x1cbac8['getContainedElement']();if('resizeTable'===_0x1cbac8['subType']&&_0x14877b===_0x3fc727){_0x1cbac8['author']!==_0xb3d714&&_0x1cbac8['discard']();const _0x5f41df=_0x1cbac8['data']['commandParams'];_0x45dcf7=_0x5f41df[0x0]['tableWidth'],_0x3e125e=_0x5f41df[0x0]['columnWidths'];break;}}_0xd4708a({'table':_0x3fc727,'tableWidth':_0x8b80b9,'columnWidths':_0x3c5038}),_0x460250['markBlockFormat'](_0x3fc727,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x45dcf7,'columnWidths':_0x3e125e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x118dba){if('formatBlock'!=_0x118dba['type']&&'formatInline'!=_0x118dba['type'])return;const {data:_0x337f40}=_0x118dba;if(_0x337f40&&'resizeTable'===_0x337f40['formatGroupId']){const _0x5d90c1='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x5d90c1)};}}}class xt extends _0x3274cb{['afterInit'](){const _0x347762=this['editor'];_0x347762['plugins']['has']('Template')&&_0x347762['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x3274cb{['afterInit'](){const _0x4ee73a=this['editor'];if(!_0x4ee73a['commands']['get']('insertTableOfContents'))return;_0x4ee73a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3d68d6=_0x4ee73a['plugins']['get']('TrackChangesEditing'),_0x38ce39=_0x4ee73a['locale'];_0x3d68d6['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4a8c10=>o(_0x38ce39,'ELEMENT_TABLE_OF_CONTENTS',_0x4a8c10));}}class Rt extends _0x3274cb{['afterInit'](){const _0xde44a5=this['editor'];if(!_0xde44a5['plugins']['has']('Title'))return;const _0x2deb5e=_0xde44a5['plugins']['get']('TrackChangesEditing');_0x2deb5e['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xde44a5['locale'],'ELEMENT_TITLE')),_0xde44a5['model']['document']['registerPostFixer'](_0x4b3dbc=>{let _0x1a9c10=!0x1;const _0x4242e4=Array['from'](_0xde44a5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xc2cd6e,data:_0x2a78b1}of _0x4242e4){const {group:_0xafd414}=_0x2deb5e['_splitMarkerName'](_0xc2cd6e);if('suggestion'!==_0xafd414||!_0x2a78b1['newRange'])continue;const _0x36dfc0=_0x2a78b1['newRange'],_0x5cef77=_0x36dfc0['end']['nodeBefore'];if(!_0x5cef77||!_0x5cef77['is']('element','title-content'))continue;if(!_0x36dfc0['start']['isTouching'](_0x36dfc0['end']))continue;const _0x11141f=_0xde44a5['model']['schema']['getNearestSelectionRange'](_0x36dfc0['end'],'forward');if(_0x11141f&&_0x11141f['isCollapsed']){const _0x161a1d=_0x4b3dbc['createRange'](_0x36dfc0['start'],_0x11141f['start']);_0x161a1d['isEqual'](_0x36dfc0)||(_0x4b3dbc['updateMarker'](_0xc2cd6e,{'range':_0x161a1d}),_0x1a9c10=!0x0);}_0x1a9c10||(_0x4b3dbc['removeMarker'](_0xc2cd6e),_0x1a9c10=!0x0);}return _0x1a9c10;});}}class Tt extends _0x3274cb{['afterInit'](){const _0x60b0d1=this['editor'],_0x2a3e06=_0x60b0d1['plugins']['get']('TrackChangesEditing');_0x60b0d1['plugins']['has']('Uploadcare')&&(_0x2a3e06['enableCommand']('uploadcare'),_0x60b0d1['plugins']['has']('UploadcareImageEdit')&&(_0x2a3e06['enableCommand']('uploadcareImageEdit'),_0x2a3e06['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2a3e06['descriptionFactory']['registerDescriptionCallback'](_0x2a650a=>{if('attribute'!=_0x2a650a['type'])return;const {data:_0xf64bfa}=_0x2a650a;return _0xf64bfa&&'uploadcareImageId'==_0xf64bfa['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x3274cb{['afterInit'](){const _0x28923d=this['editor'],_0x46d7d4=_0x28923d['plugins']['get']('TrackChangesEditing');_0x28923d['plugins']['has']('UndoEditing')&&(_0x46d7d4['enableCommand']('undo'),_0x46d7d4['enableCommand']('redo'));}}class Ut extends _0x3274cb{static get['requires'](){return[Nt];}['afterInit'](){const _0x1dd636=this['editor'];if(!_0x1dd636['plugins']['has']('TableCaptionEditing'))return;_0x1dd636['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x3274cb{['tableProperties'];['tableCellProperties'];constructor(_0x87ec33){super(_0x87ec33),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x87ec33['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x215d2f=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x11aade of this['tableProperties'])_0x215d2f['enableCommand'](_0x11aade,(_0x1b018d,_0xd75ad)=>{const _0x3a2ea6=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x11aade,[_0x3a2ea6],this['tableProperties'],'tableProperties',_0x1b018d,_0xd75ad);});_0x215d2f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x215d2f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x215d2f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0xc223a3,_0x107029)=>this['handleDiscardAction'](this['tableProperties'],_0xc223a3,_0x107029)),_0x215d2f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xc609b of this['tableCellProperties'])this['editor']['commands']['get'](_0xc609b)&&_0x215d2f['enableCommand'](_0xc609b,(_0x18ed8a,_0x2f6479)=>{const _0xa6658b=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xc609b,_0xa6658b,this['tableCellProperties'],'tableCellProperties',_0x18ed8a,_0x2f6479);});_0x215d2f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x215d2f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x215d2f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x8e71df,_0x52b304)=>this['handleDiscardAction'](this['tableCellProperties'],_0x8e71df,_0x52b304)),_0x215d2f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&(_0x215d2f['registerBlockAttribute']('tableCellType'),_0x215d2f['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE')));}_0x215d2f['descriptionFactory']['registerDescriptionCallback'](_0x3942a0=>this['handleSuggestionDescription'](_0x3942a0)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x59a49c,_0x1d0fd5,_0x3c30b1,_0x2cd10e,_0x31dbe5,_0x221910){const _0x399306=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x221910['batch'],()=>{for(const _0x2260ff of _0x1d0fd5){if(this['_getSuggestion'](_0x2260ff,_0x2cd10e))_0x31dbe5(_0x221910);else{const _0xc53c8d={};for(const _0x423f6a of _0x3c30b1){const _0x4271de=_0x2260ff['getAttribute'](_0x423f6a);void 0x0!==_0x4271de&&(_0xc53c8d[_0x423f6a]=_0x4271de);}_0x31dbe5(_0x221910),_0x399306['markBlockFormat'](_0x2260ff,{'commandParams':[_0xc53c8d]},[],_0x2cd10e);}}});}['handleDiscardAction'](_0x2f2307,_0x50c681,_0x14cf6c){const _0x5ace49=_0x50c681[0x0]['start']['nodeAfter'],_0x387af3=_0x14cf6c['commandParams'][0x0];this['editor']['model']['change'](_0x1e3463=>{for(const _0x4599af of _0x2f2307)void 0x0!==_0x387af3[_0x4599af]?_0x1e3463['setAttribute'](_0x4599af,_0x387af3[_0x4599af],_0x5ace49):_0x1e3463['removeAttribute'](_0x4599af,_0x5ace49);});}['handleSuggestionDescription'](_0x5d42a6){if(_0x5d42a6['data'])switch(_0x5d42a6['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'](_0x2bb05f,_0x2d55e0){const _0x193ade=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4cf6c8 of _0x193ade['getSuggestions']({'skipNotAttached':!0x0})){const _0x5d76c9=_0x4cf6c8['getContainedElement']();if(_0x4cf6c8['subType']===_0x2d55e0&&_0x5d76c9===_0x2bb05f)return _0x4cf6c8;}return null;}['_registerTablePropertiesAttributes'](){const _0x485583=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3945cc=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x5b4248 of _0x3945cc){const _0x138a37=_0x5b4248['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x485583['descriptionFactory']['registerAttributeLabel'](_0x5b4248,o(this['editor']['locale'],'FORMAT_'+_0x138a37));}}}class Ft extends _0x3274cb{['afterInit'](){const _0x38b6bd=this['editor'];if(!_0x38b6bd['plugins']['has']('LineHeight'))return;const _0x1ebe1e=_0x38b6bd['plugins']['get']('TrackChangesEditing'),_0x31657f=_0x38b6bd['locale'];_0x1ebe1e['enableDefaultAttributesIntegration']('lineHeight'),_0x1ebe1e['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x31657f,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x3274cb{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0x1567bc,_0x26c9ca,_0x43db28,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(_0x14c794){super(_0x14c794),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x206c06,_0x3eb596,_0x32e9f1,_0x5da28c)=>{this['_model']['change'](()=>{for(const _0x47f8b0 of[..._0x5da28c,..._0x32e9f1])this['_model']['markers']['has'](_0x47f8b0)&&_0x14c794['editing']['reconvertMarker'](_0x47f8b0);});}),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']=_0x14c794['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x14c794['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x14c794['config']['get']('trackChanges.trackFormatChanges'),_0x14c794['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x14c794['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x14c794,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1b3ff8=this['editor'];_0x1b3ff8['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xd11c0d,{writer:_0x3601fa})=>{let _0x1b5509='suggestion:'+_0xd11c0d['getAttribute']('suggestion-type')+':'+_0xd11c0d['getAttribute']('id');return _0xd11c0d['getAttribute']('marker-count')&&(_0x1b5509+=':'+_0xd11c0d['getAttribute']('marker-count')),_0x3601fa['createElement']('$marker',{'data-name':_0x1b5509});}}),_0x1b3ff8['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1b3ff8['model']['document']['registerPostFixer'](_0x1ff8a1=>{let _0xf28c43=!0x1;const _0x4052da=Array['from'](_0x1b3ff8['model']['document']['differ']['getChangedMarkers']()),_0x26297d=new Set();for(const {name:_0x51fc68,data:_0x1fd4c9}of _0x4052da){const {group:_0x5d5747,type:_0x49108e,subType:_0x1bb0e0,id:_0x19c6ab}=this['_splitMarkerName'](_0x51fc68);if('suggestion'!==_0x5d5747)continue;const _0x2544f6=_0x1bb0e0?'suggestion:'+_0x49108e+':'+_0x1bb0e0+':'+_0x19c6ab:'suggestion:'+_0x49108e+':'+_0x19c6ab,_0x390ac7=_0x1b3ff8['model']['markers']['getMarkersGroup'](_0x2544f6),_0x175c33=_0x1b3ff8['model']['markers']['get'](_0x51fc68),_0x1c2f39=this['_suggestions']['get'](_0x19c6ab);if(null!=_0x1fd4c9['newRange']){'formatInline'==_0x49108e&&(_0xf28c43=_0xf28c43||Wt(_0x1fd4c9['newRange'],_0x51fc68,_0x1ff8a1,_0x1b3ff8['model']['schema']));const _0x3a8665='attribute'==_0x49108e&&this['_isBlockAttribute'](_0x1bb0e0['split']('|')[0x0]),_0x58162b='attribute'==_0x49108e&&this['_isInlineAttribute'](_0x1bb0e0['split']('|')[0x0]);if(_0x1fd4c9['newRange']['isCollapsed']||'$graveyard'==_0x1fd4c9['newRange']['root']['rootName']||'formatBlock'==_0x49108e&&!Qt(_0x1fd4c9['newRange'])||_0x3a8665&&!Qt(_0x1fd4c9['newRange'])||_0x58162b&&Xt(_0x1fd4c9['newRange'])||'deletion'==_0x49108e&&Xt(_0x1fd4c9['newRange'])||_0x175c33&&Yt(_0x175c33,_0x390ac7))_0x1ff8a1['removeMarker'](_0x51fc68),_0xf28c43=!0x0;else{if(!_0x1c2f39||!_0x1c2f39['isInContent'])continue;if(_0x1fd4c9['newRange']&&_0x1fd4c9['oldRange']&&_0x1fd4c9['newRange']['isEqual'](_0x1fd4c9['oldRange']))continue;_0x26297d['add'](_0x1c2f39);}}}return _0x26297d['size']>0x0&&(_0xf28c43=!!this['_joinWithAdjacentSuggestions'](_0x26297d)||_0xf28c43),_0xf28c43;}),_0x1b3ff8['model']['document']['registerPostFixer'](_0x5b1ff0=>{let _0x5143b8=!0x1;for(const _0x300a13 of _0x1b3ff8['model']['document']['differ']['getChanges']())if('insert'==_0x300a13['type'])for(const _0x2d22a0 of this['_suggestions']['values']()){if(_0x2d22a0['isMultiRange']||!_0x2d22a0['isInContent'])continue;const _0x39ed17='formatBlock'==_0x2d22a0['type'],_0x539634=this['_getAttributeKey'](_0x2d22a0),_0x493e6a=_0x539634&&this['_isBlockAttribute'](_0x539634);if(!_0x39ed17&&!_0x493e6a)continue;const _0x98fa66=_0x2d22a0['getFirstRange']();if(_0x98fa66['start']['parent']!=_0x98fa66['end']['parent']&&!_0x98fa66['end']['isAtEnd']){const _0x117721=_0x1b3ff8['model']['createPositionAt'](_0x98fa66['start']['nodeAfter'],'end'),_0x51cddd=_0x1b3ff8['model']['createRange'](_0x98fa66['start'],_0x117721);_0x5b1ff0['updateMarker'](_0x2d22a0['getFirstMarker'](),{'range':_0x51cddd}),_0x5143b8=!0x0;}}return _0x5143b8;}),_0x1b3ff8['model']['document']['registerPostFixer'](_0x35de98=>this['_processAttributeChanges'](_0x35de98)),_0x1b3ff8['model']['document']['registerPostFixer'](_0x38dc3b=>!_0x38dc3b['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x38dc3b)),_0x1b3ff8['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1b3ff8['model']['document']['on']('change:data',(_0x4f12f8,_0x360034)=>{if(!_0x360034['isLocal']||_0x360034['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4de55d=_0x1b3ff8['model']['document']['differ']['getChanges']();if(0x0==_0x4de55d['length'])return;const _0x17660c=[],_0x4bbca8=_0x4de55d['filter'](_0x22c9a9=>'attribute'==_0x22c9a9['type']),_0x4e6069=_0x4de55d['filter'](_0x297f13=>'insert'==_0x297f13['type']&&'$text'!=_0x297f13['name']);for(const _0x442948 of _0x4bbca8)this['_isRegisteredAttribute'](_0x442948['attributeKey'])&&_0x17660c['push']({'key':_0x442948['attributeKey'],'newValue':_0x442948['attributeNewValue'],'oldValue':_0x442948['attributeOldValue'],'range':Zt(_0x442948['range'],_0x1b3ff8['model'])});for(const _0x9e2d67 of _0x4e6069){if('rename'!=_0x9e2d67['action']&&'refresh'!=_0x9e2d67['action'])continue;const _0x546bd2=tn(_0x9e2d67['position']['nodeAfter'],_0x1b3ff8['model']),_0x34e72a=_0x9e2d67['before'];'rename'==_0x9e2d67['action']&&_0x17660c['push']({'key':m,'newValue':_0x9e2d67['name'],'oldValue':_0x34e72a['name'],'range':_0x546bd2});for(const [_0x23dbc1,_0xbf4e1b]of _0x34e72a['attributes']){if(!this['_isRegisteredAttribute'](_0x23dbc1))continue;const _0x30f3f0=_0x9e2d67['attributes']['get'](_0x23dbc1);_0xbf4e1b!==_0x30f3f0&&_0x17660c['push']({'key':_0x23dbc1,'newValue':_0x30f3f0,'oldValue':_0xbf4e1b,'range':_0x546bd2});}for(const [_0x57f1aa,_0x54eb1e]of _0x9e2d67['attributes'])this['_isRegisteredAttribute'](_0x57f1aa)&&(_0x34e72a['attributes']['has'](_0x57f1aa)||_0x17660c['push']({'key':_0x57f1aa,'newValue':_0x54eb1e,'oldValue':null,'range':_0x546bd2}));}0x0!=_0x17660c['length']&&_0x1b3ff8['model']['enqueueChange'](_0x360034,_0x3d8526=>{const _0x934889=_0x531b89();for(const {range:_0x2f18bf,key:_0x5816fd,oldValue:_0x249c92,newValue:_0x5d5744}of _0x17660c)this['markAttributeChange'](_0x2f18bf,_0x5816fd,_0x249c92,_0x5d5744,{'groupId':_0x934889});this['_reduceExistingSuggestions'](_0x3d8526,_0x17660c);});},{'priority':'lowest'}),_0x1b3ff8['model']['markers']['on']('update:suggestion',(_0x89ade2,_0x29ce1e,_0x13a823)=>{if(null==_0x13a823){const {id:_0x393eef}=this['_splitMarkerName'](_0x29ce1e['name']),_0x24b4a3=this['_suggestions']['get'](_0x393eef);_0x24b4a3&&_0x24b4a3['addMarkerName'](_0x29ce1e['name']);}}),_0x1b3ff8['model']['document']['on']('change:data',()=>{const _0x4624a1=Array['from'](_0x1b3ff8['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3f440d=>'suggestion'===this['_splitMarkerName'](_0x3f440d['name'])['group']);if(0x0===_0x4624a1['length'])return;_0x4624a1['sort']((_0x45e903,_0x4ddd63)=>{const _0x51bf20=_0x45e903['data']['oldRange'],_0x2cab76=_0x4ddd63['data']['oldRange'];return null===_0x51bf20&&null===_0x2cab76?0x0:null===_0x51bf20&&null!==_0x2cab76?-0x1:null!==_0x51bf20&&null===_0x2cab76?0x1:_0x51bf20['start']['isBefore'](_0x2cab76['start'])?-0x1:0x1;});const _0x642f4b=new Set(),_0x4437cd=new Set();for(const {name:_0xec88a4,data:_0xf27d8c}of _0x4624a1){const {id:_0xfe3511}=this['_splitMarkerName'](_0xec88a4);if(null===_0xf27d8c['oldRange']){const _0x52eb28=this['_handleNewSuggestionMarker'](_0xec88a4);_0x4437cd['add'](_0x52eb28);}else{const _0x2d4ef=this['_suggestions']['get'](_0xfe3511);null!==_0xf27d8c['newRange']||_0x2d4ef['isInContent']?(_0x642f4b['add'](_0x2d4ef['head']),_0x4437cd['add'](_0x2d4ef)):this['_removeSuggestion'](_0x2d4ef);}}_0x4437cd['size']>0x0&&this['_refreshSuggestionsChain'](_0x4437cd);for(const _0x24a323 of _0x642f4b)this['fire']('suggestionChanged',_0x24a323);}),_0x1b3ff8['model']['on']('applyOperation',(_0x1f58b5,_0x18089e)=>{const _0x57fdfc=_0x18089e[0x0];if(!this['_suggestions']['size'])return;if(!_0x57fdfc['isDocumentOperation'])return;if(_0x57fdfc['batch']['isUndo']||!_0x57fdfc['batch']['isLocal'])return;let _0x18158b,_0x505e3e;switch(_0x57fdfc['type']){case'insert':_0x18158b=_0x1b3ff8['model']['createPositionAt'](_0x57fdfc['position']),_0x505e3e=_0x18158b['getShiftedBy'](_0x57fdfc['howMany']);break;case'split':_0x18158b=_0x1b3ff8['model']['createPositionAt'](_0x57fdfc['splitPosition']),_0x505e3e=_0x1b3ff8['model']['createPositionAt'](_0x57fdfc['moveTargetPosition']);break;case'move':_0x18158b=_0x1b3ff8['model']['createPositionAt'](_0x57fdfc['targetPosition']),_0x505e3e=_0x18158b['getShiftedBy'](_0x57fdfc['howMany']);break;default:return;}const _0x5547bd=_0x1b3ff8['model']['createRange'](_0x18158b,_0x505e3e);_0x1b3ff8['model']['change'](()=>{for(const {suggestion:_0x41ce5d,meta:_0x42f1a8}of this['_findSuggestions'](_0x5547bd)){if(_0x41ce5d['isMultiRange'])continue;if('formatInline'==_0x41ce5d['type'])continue;const _0x45813d=this['_getAttributeKey'](_0x41ce5d);if(_0x45813d&&this['_isBlockAttribute'](_0x45813d)&&'split'!=_0x57fdfc['type'])continue;const _0x1f23c6=_0x41ce5d['data']&&_0x41ce5d['data']['multipleBlocks'];('formatBlock'!=_0x41ce5d['type']||'split'==_0x57fdfc['type']&&!_0x1f23c6)&&(_0x42f1a8['containsRangeInObject']||'insertion'==_0x41ce5d['type']&&_0x42f1a8['isOwn']||_0x41ce5d['getFirstRange']()['containsRange'](_0x5547bd)&&this['_breakSuggestionMarker'](_0x41ce5d,_0x18158b,_0x505e3e));}});},{'priority':'lowest'}),_0x1b3ff8['model']['on']('deleteContent',(_0x4a0429,_0x34b4a3)=>{const _0x748f8f=_0x34b4a3[0x0],_0x4c01a0=_0x34b4a3[0x1];if(_0x4c01a0&&_0x4c01a0['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x748f8f['isCollapsed'])return;const _0x4a1a00=_0x1b3ff8['model']['schema'],{start:_0xb399f3,end:_0x40bc56}=_0x748f8f['getFirstRange'](),_0x2bee88=_0xb399f3['nodeAfter']&&_0x4a1a00['isLimit'](_0xb399f3['nodeAfter'])?null:_0x4a1a00['getNearestSelectionRange'](_0xb399f3,'forward'),_0x6f4cca=_0x40bc56['nodeBefore']&&_0x4a1a00['isLimit'](_0x40bc56['nodeBefore'])?null:_0x4a1a00['getNearestSelectionRange'](_0x40bc56,'backward'),_0x16aa04=_0x1b3ff8['model']['createRange'](_0x2bee88?_0x2bee88['start']:_0xb399f3,_0x6f4cca?_0x6f4cca['end']:_0x40bc56);_0x1b3ff8['model']['change'](_0xc42c8a=>{this['markDeletion'](_0x16aa04);const _0x59fe2f=_0x1b3ff8['model']['schema']['getNearestSelectionRange'](_0x16aa04['start']);_0x748f8f['is']('documentSelection')?_0xc42c8a['setSelection'](_0x59fe2f):_0x748f8f['setTo'](_0x59fe2f);}),_0x4a0429['stop']();},{'priority':_0x296698['normal']+0xa}),_0x1b3ff8['model']['on']('insertContent',(_0x6d87e,_0x3fdc55)=>{const _0x35c954=_0x3fdc55[_0x3fdc55['length']-0x1];_0x35c954&&_0x35c954['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1b3ff8['model']['change'](()=>{let _0x6e40f3=_0x1b3ff8['model']['insertContent'](_0x3fdc55[0x0],_0x3fdc55[0x1],_0x3fdc55[0x2],{'forceDefaultExecution':!0x0});if(!_0x6e40f3)return;_0x6d87e['return']=_0x6e40f3['clone']();const _0x45528c=_0x6e40f3['end']['nodeBefore'],_0x5c5643=_0x1b3ff8['model']['schema'];_0x45528c&&_0x5c5643['isBlock'](_0x45528c)&&!_0x5c5643['isObject'](_0x45528c)&&(_0x6e40f3=_0x1b3ff8['model']['createRange'](_0x6e40f3['start'],_0x1b3ff8['model']['createPositionAt'](_0x45528c,'end'))),this['markInsertion'](_0x6e40f3);}),_0x6d87e['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1543eb=new v(_0x1b3ff8,this['_suggestions']);_0x1b3ff8['commands']['add']('acceptSuggestion',_0x1543eb),this['enableCommand']('acceptSuggestion');const _0x45477a=new D(_0x1b3ff8,this['_suggestions']);_0x1b3ff8['commands']['add']('discardSuggestion',_0x45477a),this['enableCommand']('discardSuggestion'),_0x1b3ff8['commands']['add']('acceptAllSuggestions',new B(_0x1b3ff8,_0x1543eb,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1b3ff8['commands']['add']('discardAllSuggestions',new B(_0x1b3ff8,_0x45477a,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1b3ff8['commands']['add']('acceptSelectedSuggestions',new O(_0x1b3ff8,_0x1543eb,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1b3ff8['commands']['add']('discardSelectedSuggestions',new O(_0x1b3ff8,_0x45477a,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x216317=_0x1b3ff8['plugins']['get']('CommentsRepository');this['listenTo'](_0x216317,'addComment',(_0x4070dc,{threadId:_0x22884a})=>{const _0x877ec3=this['_suggestions']['get'](_0x22884a);_0x877ec3&&_0x877ec3['commentThread']&&0x1===_0x877ec3['commentThread']['length']&&this['_updateSuggestionData'](_0x22884a,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x216317,'removeComment',(_0x11adf2,{threadId:_0x6249bd})=>{const _0x347588=this['_suggestions']['get'](_0x6249bd);_0x347588&&_0x347588['commentThread']&&!_0x347588['commentThread']['length']&&this['_updateSuggestionData'](_0x6249bd,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x32e6aa){const _0x2541b5=_0x59a7f1([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]),_0x480815=0x3d8d0df,_0x1b1a3d=0x3dfae6f^_0x480815,_0x20c04d=window[_0x59a7f1([0x44,0x61,0x74,0x65])][_0x59a7f1([0x6e,0x6f,0x77])](),_0x105b95=_0x32e6aa[_0x59a7f1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2ed656=new window[(_0x59a7f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52b7bf=>{_0x105b95[_0x59a7f1([0x6f,0x6e,0x63,0x65])](_0x59a7f1([0x72,0x65,0x61,0x64,0x79]),_0x52b7bf);}),_0x5debd8={[_0x59a7f1([0x6b,0x74,0x79])]:_0x59a7f1([0x45,0x43]),[_0x59a7f1([0x75,0x73,0x65])]:_0x59a7f1([0x73,0x69,0x67]),[_0x59a7f1([0x63,0x72,0x76])]:_0x59a7f1([0x50,0x2d,0x32,0x35,0x36]),[_0x59a7f1([0x78])]:_0x59a7f1([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]),[_0x59a7f1([0x79])]:_0x59a7f1([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]),[_0x59a7f1([0x61,0x6c,0x67])]:_0x59a7f1([0x45,0x53,0x32,0x35,0x36])},_0x24195e=_0x105b95[_0x59a7f1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x59a7f1([0x67,0x65,0x74])](_0x59a7f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x24d67b(){let _0x25e3c8,_0x4e6d52=null,_0x113306=null;try{if(_0x24195e==_0x59a7f1([0x47,0x50,0x4c]))return _0x59a7f1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x25e3c8=_0x17aef8(),!_0x25e3c8)return _0x59a7f1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x25e3c8[_0x59a7f1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x113306=_0x34059d(_0x25e3c8[_0x59a7f1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x25e3c8[_0x59a7f1([0x6a,0x74,0x69])])),await _0x23403c()?_0x42d0fd()?_0x111e12()?_0x59a7f1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xf50ce0()?(_0x25e3c8[_0x59a7f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59a7f1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4e6d52=_0x5bc0ea(_0x59a7f1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3c7807()):_0x59a7f1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x59a7f1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x59a7f1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x59a7f1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x111e12(){const _0x576d04=[_0x59a7f1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x59a7f1([0x74,0x72,0x69,0x61,0x6c])][_0x59a7f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25e3c8[_0x59a7f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x20c04d/0x3e8:0xe10*_0x1b1a3d;return _0x25e3c8[_0x59a7f1([0x65,0x78,0x70])]<_0x576d04;}function _0x42d0fd(){const _0x58c54c=_0x25e3c8[_0x59a7f1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x58c54c)return!0x1;if(_0x58c54c[_0x59a7f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59a7f1([0x2a])))return!0x0;if(_0x58c54c[_0x59a7f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59a7f1([0x54,0x43])))return!0x0;if(_0x58c54c[_0x59a7f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59a7f1([0x52,0x54,0x43]))){if(_0xa4b818())return!0x0;if(_0x4fd1a3()||_0x171773())return!0x0;}return!0x1;}function _0xf50ce0(){const _0x3c9358=_0x25e3c8[_0x59a7f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3c9358||0x0==_0x3c9358[_0x59a7f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3d7e91}=new URL(window[_0x59a7f1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3c9358[_0x59a7f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d7e91))return!0x0;const _0x23c785=_0x3d7e91[_0x59a7f1([0x73,0x70,0x6c,0x69,0x74])](_0x59a7f1([0x2e]));return _0x3c9358[_0x59a7f1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x54585e=>_0x54585e[_0x59a7f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59a7f1([0x2a])))[_0x59a7f1([0x6d,0x61,0x70])](_0x26a7cd=>_0x26a7cd[_0x59a7f1([0x73,0x70,0x6c,0x69,0x74])](_0x59a7f1([0x2e])))[_0x59a7f1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x411a89=>_0x411a89[_0x59a7f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x23c785[_0x59a7f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x59a7f1([0x6d,0x61,0x70])](_0x1dec73=>Array(_0x23c785[_0x59a7f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1dec73[_0x59a7f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x59a7f1([0x66,0x69,0x6c,0x6c])](_0x1dec73[0x0]===_0x59a7f1([0x2a])?_0x59a7f1([0x2a]):'')[_0x59a7f1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1dec73))[_0x59a7f1([0x73,0x6f,0x6d,0x65])](_0x3806c0=>_0x23c785[_0x59a7f1([0x65,0x76,0x65,0x72,0x79])]((_0x55227f,_0xac0ca7)=>_0x3806c0[_0xac0ca7]===_0x55227f||_0x3806c0[_0xac0ca7]===_0x59a7f1([0x2a])));}function _0x3c7807(){return _0x4e6d52&&_0x113306?new window[(_0x59a7f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x57a381,_0x1c105d)=>{_0x4e6d52[_0x59a7f1([0x74,0x68,0x65,0x6e])](_0x57a381,_0x1c105d),_0x113306[_0x59a7f1([0x74,0x68,0x65,0x6e])](_0x1ac96c=>{_0x1ac96c!=_0x59a7f1([0x56,0x61,0x6c,0x69,0x64])&&_0x57a381(_0x1ac96c);},_0x1c105d);}):_0x4e6d52||_0x113306||_0x59a7f1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x34059d(_0x17521d,_0x23fb5c){return new window[(_0x59a7f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c33bf=>{if(_0x5adf06())return _0x2c33bf(_0x59a7f1([0x56,0x61,0x6c,0x69,0x64]));_0x55c6fe(),_0x105b95[_0x59a7f1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x59a7f1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x113335=!0x1;const _0x58683b=_0x531b89();function _0x1bf5c5(_0x3c22b4){return!!_0x3c22b4&&(typeof _0x3c22b4===_0x59a7f1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3c22b4===_0x59a7f1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3c22b4[_0x59a7f1([0x74,0x68,0x65,0x6e])]===_0x59a7f1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3c22b4[_0x59a7f1([0x63,0x61,0x74,0x63,0x68])]===_0x59a7f1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x25b260(_0x5484d4){_0xf90d61(_0x5484d4)[_0x59a7f1([0x74,0x68,0x65,0x6e])](_0x3edbeb=>{if(!_0x3edbeb||_0x3edbeb[_0x59a7f1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x59a7f1([0x6f,0x6b]))return _0x59a7f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3aed25(_0x6f8ec7(_0x58683b+_0x23fb5c))!=_0x3edbeb[_0x59a7f1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x59a7f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x59a7f1([0x56,0x61,0x6c,0x69,0x64]);})[_0x59a7f1([0x74,0x68,0x65,0x6e])](_0x4fa152=>(_0x37643b(),_0x4fa152),()=>{const _0x116cc4=_0x29167f();return null==_0x116cc4?(_0x37643b(),_0x59a7f1([0x56,0x61,0x6c,0x69,0x64])):_0x59a7f1(_0x20c04d-_0x116cc4>(0x27d454df^_0x480815)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x59a7f1([0x74,0x68,0x65,0x6e])](_0x2c33bf)[_0x59a7f1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2c33bf(_0x59a7f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x37ad03=0x3ee3e5f^_0x480815;function _0x37643b(){const _0x349a87=_0x59a7f1([0x6c,0x6c,0x63,0x74,0x2d])+_0x3aed25(_0x6f8ec7(_0x17521d)),_0x25ffad=_0x1eccfa(_0x3aed25(window[_0x59a7f1([0x4d,0x61,0x74,0x68])][_0x59a7f1([0x63,0x65,0x69,0x6c])](_0x20c04d/_0x37ad03)));window[_0x59a7f1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59a7f1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x349a87,_0x25ffad);}function _0x29167f(){const _0x3849d1=_0x59a7f1([0x6c,0x6c,0x63,0x74,0x2d])+_0x3aed25(_0x6f8ec7(_0x17521d)),_0x332172=window[_0x59a7f1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59a7f1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3849d1);return _0x332172?window[_0x59a7f1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1eccfa(_0x332172),0x10)*_0x37ad03:null;}function _0xf90d61(_0x4fd5fb){return new window[(_0x59a7f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x15efbb,_0x4cfc71)=>{_0x4fd5fb[_0x59a7f1([0x74,0x68,0x65,0x6e])](_0x15efbb,_0x4cfc71),window[_0x59a7f1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4cfc71,0x3d9041f^_0x480815);});}}_0x105b95[_0x59a7f1([0x6f,0x6e])](_0x59a7f1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xf6e440,_0x1ac4f0)=>{if(_0x1ac4f0[0x0]!=_0x17521d)return _0x2c33bf(_0x59a7f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1ac4f0[0x1]={..._0x1ac4f0[0x1],[_0x59a7f1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x58683b};},{[_0x59a7f1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59a7f1([0x68,0x69,0x67,0x68])}),_0x105b95[_0x59a7f1([0x6f,0x6e])](_0x59a7f1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4c7325=>{_0x1bf5c5(_0x4c7325[_0x59a7f1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x113335=!0x0,_0x25b260(_0x4c7325[_0x59a7f1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x59a7f1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59a7f1([0x6c,0x6f,0x77])}),_0x2ed656[_0x59a7f1([0x74,0x68,0x65,0x6e])](()=>{_0x113335||_0x2c33bf(_0x59a7f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5adf06(){return _0x105b95[_0x59a7f1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59a7f1([0x76,0x69,0x65,0x77])][_0x59a7f1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x59a7f1([0x61,0x75,0x74,0x6f]);}function _0x55c6fe(){_0x105b95[_0x59a7f1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59a7f1([0x76,0x69,0x65,0x77])][_0x59a7f1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x59a7f1([0x61,0x75,0x74,0x6f]);}}function _0x5bc0ea(_0x2cb68b){const _0x591a5b=[new window[(_0x59a7f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28219c=>setTimeout(_0x28219c,0x3d1ee13^_0x480815)),_0x2ed656[_0x59a7f1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x59a7f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28b647=>{let _0x365c53=0x0;_0x105b95[_0x59a7f1([0x6d,0x6f,0x64,0x65,0x6c])][_0x59a7f1([0x6f,0x6e])](_0x59a7f1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x587407,_0x5f0b72)=>{_0x5f0b72[0x0][_0x59a7f1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x365c53++,_0x365c53==(0x3d8d537^_0x480815)&&(_0x28b647(),_0x587407[_0x59a7f1([0x6f,0x66,0x66])]());});}))];return window[_0x59a7f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x59a7f1([0x72,0x61,0x63,0x65])](_0x591a5b)[_0x59a7f1([0x74,0x68,0x65,0x6e])](()=>_0x2cb68b);}async function _0x2de787(){await _0x2ed656,_0x105b95[_0x59a7f1([0x6d,0x6f,0x64,0x65,0x6c])][_0x59a7f1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x46c2b8,_0x105b95[_0x59a7f1([0x6d,0x6f,0x64,0x65,0x6c])][_0x59a7f1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x46c2b8,_0x105b95[_0x59a7f1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x59a7f1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xa4b818(){return _0x1d3b9d(_0x59a7f1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x41c3e6(_0x59a7f1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x59a7f1([0x73,0x74,0x61,0x74,0x65])]==_0x59a7f1([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4fd1a3(){return _0x1d3b9d(_0x59a7f1([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 _0x171773(){return _0x1d3b9d(_0x59a7f1([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1c9fcf(_0x3e77c6){const _0x564fe3=_0x52f896();_0x105b95[_0x564fe3]=_0x59a7f1([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3e77c6,_0x3e77c6!=_0x59a7f1([0x56,0x61,0x6c,0x69,0x64])&&_0x2de787();}function _0x52f896(){const _0x52f476=window[_0x59a7f1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x59a7f1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x59a7f1([0x6e,0x6f,0x77])]())[_0x59a7f1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x59a7f1([0x2e]),'');let _0x21a5d0=_0x59a7f1([0x52]);for(let _0x4d0f00=0x0;_0x4d0f00<_0x52f476[_0x59a7f1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d0f00+=0x2){let _0x445cca=window[_0x59a7f1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52f476[_0x59a7f1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d0f00,_0x4d0f00+0x2));_0x445cca>=_0x2541b5[_0x59a7f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x445cca-=_0x2541b5[_0x59a7f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x21a5d0+=_0x2541b5[_0x445cca];}return _0x21a5d0;}function _0x17aef8(){const _0x986e79=_0x24195e[_0x59a7f1([0x73,0x70,0x6c,0x69,0x74])](_0x59a7f1([0x2e]));if(0x3!=_0x986e79[_0x59a7f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xb75a00(_0x986e79[0x1]);function _0xb75a00(_0x2d86c0){const _0x56634f=_0x44a8b8(_0x2d86c0);return _0x56634f&&_0x213325()?_0x56634f:null;function _0x213325(){const _0x3f4528=_0x56634f[_0x59a7f1([0x6a,0x74,0x69])],_0x606985=window[_0x59a7f1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f4528[_0x59a7f1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f4528[_0x59a7f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x480cb1={..._0x56634f,[_0x59a7f1([0x6a,0x74,0x69])]:_0x3f4528[_0x59a7f1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3f4528[_0x59a7f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x480cb1[_0x59a7f1([0x76,0x63])],_0x6f8ec7(_0x480cb1)==_0x606985;}}}async function _0x23403c(){let _0x2423fc=!0x0;try{const _0x54fb55=_0x24195e[_0x59a7f1([0x73,0x70,0x6c,0x69,0x74])](_0x59a7f1([0x2e])),[_0x36ea23,_0x26070e,_0x345eda]=_0x54fb55;return _0x4b5d32(_0x36ea23),await _0x23631a(_0x36ea23,_0x26070e,_0x345eda),_0x2423fc;}catch{return!0x1;}function _0x4b5d32(_0x92f939){const _0x3cf724=_0x44a8b8(_0x92f939);_0x3cf724&&_0x3cf724[_0x59a7f1([0x61,0x6c,0x67])]==_0x59a7f1([0x45,0x53,0x32,0x35,0x36])||(_0x2423fc=!0x1);}async function _0x23631a(_0x22454c,_0x9ba15e,_0x3d7ce6){const _0x4e2d6b=window[_0x59a7f1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x59a7f1([0x66,0x72,0x6f,0x6d])](_0x44c6c3(_0x3d7ce6),_0x51fe19=>_0x51fe19[_0x59a7f1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1c5737=new window[(_0x59a7f1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x59a7f1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x22454c+_0x59a7f1([0x2e])+_0x9ba15e),_0x291a75=window[_0x59a7f1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x59a7f1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x291a75)return;const _0x2395f2=await _0x291a75[_0x59a7f1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x59a7f1([0x6a,0x77,0x6b]),_0x5debd8,{[_0x59a7f1([0x6e,0x61,0x6d,0x65])]:_0x59a7f1([0x45,0x43,0x44,0x53,0x41]),[_0x59a7f1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x59a7f1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x59a7f1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x291a75[_0x59a7f1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x59a7f1([0x6e,0x61,0x6d,0x65])]:_0x59a7f1([0x45,0x43,0x44,0x53,0x41]),[_0x59a7f1([0x68,0x61,0x73,0x68])]:{[_0x59a7f1([0x6e,0x61,0x6d,0x65])]:_0x59a7f1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2395f2,_0x4e2d6b,_0x1c5737)||(_0x2423fc=!0x1);}}function _0x44a8b8(_0x4e59c6){return _0x4e59c6[_0x59a7f1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x59a7f1([0x65,0x79]))?JSON[_0x59a7f1([0x70,0x61,0x72,0x73,0x65])](_0x44c6c3(_0x4e59c6)):null;}function _0x44c6c3(_0x466f65){return window[_0x59a7f1([0x61,0x74,0x6f,0x62])](_0x466f65[_0x59a7f1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x59a7f1([0x2b]))[_0x59a7f1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x59a7f1([0x2f])));}function _0x6f8ec7(_0x46573c){let _0x1b7678=0x1505;function _0xd50e86(_0xdcdd96){for(let _0x3e113f=0x0;_0x3e113f<_0xdcdd96[_0x59a7f1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3e113f++){const _0x4e47b7=_0xdcdd96[_0x59a7f1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3e113f);_0x1b7678=(_0x1b7678<<0x5)+_0x1b7678+_0x4e47b7,_0x1b7678&=_0x1b7678;}}function _0xaf72b1(_0x4049b1){Array[_0x59a7f1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4049b1)?_0x4049b1[_0x59a7f1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xaf72b1):_0x4049b1&&typeof _0x4049b1==_0x59a7f1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x59a7f1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4049b1)[_0x59a7f1([0x73,0x6f,0x72,0x74])]()[_0x59a7f1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x17cc61,_0x29af44])=>{_0xd50e86(_0x17cc61),_0xaf72b1(_0x29af44);}):_0xd50e86(window[_0x59a7f1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4049b1));}return _0xaf72b1(_0x46573c),_0x1b7678>>>0x0;}function _0x3aed25(_0xd60921){return _0xd60921[_0x59a7f1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x59a7f1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x59a7f1([0x30]));}function _0x1eccfa(_0x131d7c){return _0x131d7c[_0x59a7f1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x59a7f1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x59a7f1([0x6a,0x6f,0x69,0x6e])]('');}function _0x1d3b9d(_0xe3e309){return _0x105b95[_0x59a7f1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x59a7f1([0x68,0x61,0x73])](_0xe3e309);}function _0x41c3e6(_0xbdd939){return _0x105b95[_0x59a7f1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x59a7f1([0x67,0x65,0x74])](_0xbdd939);}function _0x46c2b8(){}function _0x59a7f1(_0x36c8e4){return _0x36c8e4['map'](_0x29a7bb=>String['fromCharCode'](_0x29a7bb))['join']('');}_0x1c9fcf(await _0x24d67b());}(this);}set['adapter'](_0x248924){if(this['_adapter'])throw new _0x2557e8('track-changes-adapter-already-set',this);this['_adapter']=_0x248924;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x42daf6=!0x1,toJSON:_0x832d8b=!0x1}={}){const _0x21e95b=[];for(const _0x17b5f1 of this['_suggestions']['values']())_0x42daf6&&!_0x17b5f1['isInContent']||_0x21e95b['push'](_0x17b5f1);return _0x832d8b?_0x21e95b['map'](_0x235920=>_0x235920['toJSON']()):_0x21e95b;}['getSuggestion'](_0x2702f7){const _0x3ebb8f=this['_suggestions']['get'](_0x2702f7);if(!_0x3ebb8f)throw new _0x2557e8('track-changes-suggestion-not-found',this);return _0x3ebb8f;}['hasSuggestion'](_0x5f252a){return this['_suggestions']['has'](_0x5f252a);}['addSuggestionData'](_0x324e75){const {authorId:_0x548f91,id:_0x343c63,originalSuggestionId:_0x17b13b,attributes:_0x5c93ae}=_0x324e75,[_0x41a07b,_0x2447f8]=_0x324e75['type']['split'](':'),_0x28697f=this['_suggestions']['get'](_0x343c63)||this['_createSuggestion'](_0x41a07b,_0x2447f8,_0x343c63,_0x548f91,_0x5c93ae,_0x17b13b);if(this['_addThreadToSuggestion'](_0x28697f),this['_checkSuggestionCorrectness'](_0x28697f,_0x41a07b,_0x2447f8||null,_0x548f91),_0x28697f['createdAt']=_0x324e75['createdAt'],_0x28697f['_isDataLoaded']=!0x0,_0x5c93ae&&_0x5c93ae['@external']){const _0x5a67a3=_0x5c93ae['@external'],_0x27c7c8=this['_getExternalAuthor'](_0x5a67a3['authorName']);_0x28697f['authoredAt']=_0x5a67a3['createdAt'],_0x28697f['author']=_0x27c7c8,_0x28697f['isExternal']=!0x0;}else _0x28697f['authoredAt']=_0x324e75['createdAt'];switch(_0x324e75['data']&&(_0x28697f['data']=_0x324e75['data']),_0x324e75['attributes']&&(_0x28697f['attributes']=_0x324e75['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x28697f['_saved']=!0x0),this['_suggestionState']['get'](_0x28697f)){case'notReady':this['_suggestionState']['set'](_0x28697f,'dataReady');break;case'markerReady':_0x28697f['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x28697f])),this['_refreshSuggestionsChain'](new Set([_0x28697f])),this['_suggestionState']['set'](_0x28697f,'ready'),this['fire']('suggestionLoaded',_0x28697f)):this['_suggestionState']['set'](_0x28697f,'removed');}return _0x28697f;}['acceptSuggestion'](_0x1dd62a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x53b9aa of _0x1dd62a['getAllAdjacentSuggestions']())_0x53b9aa['accept']();});});}['discardSuggestion'](_0x3efe6f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x23c412 of _0x3efe6f['getAllAdjacentSuggestions']())_0x23c412['discard']();});});}['enableCommand'](_0x35539b,_0x343fbc){const _0x4a81ab=this['editor']['commands']['get'](_0x35539b);if(!_0x4a81ab)throw new _0x2557e8('track-changes-command-not-found',this,{'commandName':_0x35539b});if(this['_enabledCommands']['has'](_0x4a81ab))throw new _0x2557e8('track-changes-enable-command-twice',this,{'commandName':_0x35539b});this['_enabledCommands']['add'](_0x4a81ab),_0x343fbc&&_0x4a81ab['on']('execute',(_0x32b300,_0xdac4b2)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0xdac4b2['length']>0x0&&_0xdac4b2[_0xdac4b2['length']-0x1]&&_0xdac4b2[_0xdac4b2['length']-0x1]['forceDefaultExecution']?_0xdac4b2['pop']():(_0x32b300['return']=_0x343fbc((..._0x2d47b4)=>_0x4a81ab['execute'](..._0x2d47b4,{'forceDefaultExecution':!0x0}),..._0xdac4b2),_0x32b300['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x44a8f6){let _0x47c281,_0x3e732a;const _0x339d23=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x47c281=_0x44a8f6();}catch(_0x106009){_0x3e732a=_0x106009;}return _0x339d23||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3e732a&&_0x2557e8['rethrowUnexpectedError'](_0x3e732a,this),_0x47c281;}['markInsertion'](_0x5cc6ef,_0x3622d1=null,_0x176ea5={}){if(_0x5cc6ef['isCollapsed'])return null;const _0x1cffca=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x176ea5['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5931a7,meta:_0x4426ef}of this['_findSuggestions'](_0x5cc6ef,'insertion'))if(_0x4426ef['isOwn']){if(!_0x4426ef['isNextTo']){if(_0x4426ef['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x5931a7,_0x176ea5))continue;return _0x5931a7;}if(sn(_0x5931a7,_0x176ea5))return _0x5931a7;this['_breakSuggestionMarker'](_0x5931a7,_0x5cc6ef['start'],_0x5cc6ef['end']);break;}if(_0x3622d1==_0x5931a7['subType']&&sn(_0x5931a7,_0x176ea5)){const _0xa7a11=_0x5931a7['getFirstRange']();return _0xa7a11['start']['isEqual'](_0x5cc6ef['end'])?this['_setSuggestionRange'](_0x5931a7,this['_model']['createRange'](_0x5cc6ef['start'],_0xa7a11['end'])):this['_setSuggestionRange'](_0x5931a7,this['_model']['createRange'](_0xa7a11['start'],_0x5cc6ef['end'])),_0x5931a7;}}const _0x22dcb2=_0x531b89(),_0x3dbed8=_0x1cffca['id'],_0x51595c=_0x3622d1?'insertion:'+_0x3622d1:'insertion',_0x3ed10f=this['_setSuggestionData']({'id':_0x22dcb2,'type':_0x51595c,'createdAt':new Date(),'authorId':_0x3dbed8,'attributes':_0x176ea5});return this['_addSuggestionMarker'](_0x51595c,_0x22dcb2,_0x3dbed8,_0x5cc6ef),_0x3ed10f;}['markMultiRangeInsertion'](_0x38aaa8,_0x2d3013='multi',_0x2f1d6a={}){const _0x2da249=this['editor']['plugins']['get']('Users')['me'],_0xc214ae=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2d3013,'join');this['_trackingSessionId']&&(_0x2f1d6a['trackingSessionId']=this['_trackingSessionId']);for(const _0xcb048d of this['getSuggestions']())if(_0xcb048d['author']['id']==_0x2da249['id']&&'insertion'==_0xcb048d['type']&&_0xcb048d['subType']==_0x2d3013&&sn(_0xcb048d,_0x2f1d6a)&&(_0xc214ae(_0xcb048d['getRanges'](),_0x38aaa8)||_0xc214ae(_0x38aaa8,_0xcb048d['getRanges']()))){for(const _0xa8ad0e of _0x38aaa8)_0xcb048d['addRange'](_0xa8ad0e);return _0xcb048d;}for(const {suggestion:_0x4da192,meta:_0x211f6b}of this['_findSuggestions'](_0x38aaa8,'insertion')){if(!_0x211f6b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x211f6b['containsRangeInObject'])continue;if(!sn(_0x4da192,_0x2f1d6a))continue;let _0x570c91=!0x0;for(const _0x81e8f4 of _0x4da192['getRanges']())for(const _0x28d672 of _0x38aaa8)if(!_0x81e8f4['containsRange'](_0x28d672)){_0x570c91=!0x1;break;}if(_0x570c91)return _0x4da192;}const _0x2b77b7=_0x531b89(),_0x3bd01a=_0x2da249['id'],_0x2103ad='insertion:'+_0x2d3013,_0x998064=this['_setSuggestionData']({'id':_0x2b77b7,'type':_0x2103ad,'createdAt':new Date(),'authorId':_0x3bd01a,'attributes':_0x2f1d6a});for(const _0x21302e of _0x38aaa8)this['_addSuggestionMarker'](_0x2103ad,_0x2b77b7,_0x3bd01a,_0x21302e,x['getMultiRangeId']());return _0x998064;}['markInlineFormat'](_0x442c79,_0x2336a7,_0x263fb4=null,_0x55034f={}){if(_0x263fb4=_0x263fb4||Ht(_0x2336a7),_0x442c79['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x55034f['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x30a96e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x263fb4,'accept');return this['forceDefaultExecution'](()=>_0x30a96e([_0x442c79],_0x2336a7,_0x55034f)),null;}const _0x32d666=this['editor']['plugins']['get']('Users')['me'],_0x176cf9=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xdeaaf7,meta:_0x2ab6d6}of this['_findSuggestions'](_0x442c79,'insertion'))_0x2ab6d6['isOwn']&&!_0x2ab6d6['isInsideObject']&&_0x176cf9['push'](..._0xdeaaf7['getRanges']());}const _0x32a01c=function(_0x53f075,_0x4b8536){const _0x1efb20=[];for(const _0x4b06c4 of _0x4b8536){const _0xdde178=_0x53f075['getIntersection'](_0x4b06c4);_0xdde178&&_0x1efb20['push'](_0xdde178);}return _0x1efb20;}(_0x442c79,_0x176cf9),_0x58d208=function(_0x436196,_0x542464){const _0x315b8b=[_0x436196];for(const _0x3610b8 of _0x542464){let _0x4b4f12=0x0;for(;_0x4b4f12<_0x315b8b['length'];){const _0x368c61=_0x315b8b[_0x4b4f12]['getDifference'](_0x3610b8);_0x315b8b['splice'](_0x4b4f12,0x1,..._0x368c61),_0x4b4f12+=_0x368c61['length'];}}return _0x315b8b;}(_0x442c79,_0x176cf9);_0x32a01c['length']&&this['_model']['change'](()=>{for(const _0x1aaf4c of _0x32a01c){const _0x36f856=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x263fb4,'accept');this['forceDefaultExecution'](()=>_0x36f856([_0x1aaf4c],_0x2336a7,_0x55034f));}});for(const _0x1f3d17 of _0x58d208){let _0xa49f01=null,_0x270925=_0x1f3d17['start'],_0x23584a=_0x1f3d17['end'];for(const {suggestion:_0x62eb94,meta:_0x2dfa37}of this['_findSuggestions'](_0x1f3d17,'formatInline')){if(!_0x2dfa37['isOwn'])continue;if(_0x62eb94['subType']!=_0x263fb4)continue;if(!sn(_0x62eb94,_0x55034f))continue;const _0x412f23=_0x62eb94['getFirstRange']();if(_0x412f23['containsRange'](_0x1f3d17,!0x0))return null;_0x270925=_0x270925['isBefore'](_0x412f23['start'])?_0x270925:_0x412f23['start'],_0x23584a=_0x23584a['isAfter'](_0x412f23['end'])?_0x23584a:_0x412f23['end'],_0xa49f01?_0x412f23['start']['isBefore'](_0xa49f01['getFirstRange']()['start'])?(_0xa49f01['removeMarkers'](),_0xa49f01=_0x62eb94):_0x62eb94['removeMarkers']():_0xa49f01=_0x62eb94;}const _0x157c70=this['_model']['createRange'](_0x270925,_0x23584a);if(_0xa49f01)this['_setSuggestionRange'](_0xa49f01,_0x157c70);else{const _0x4d1c15=_0x531b89(),_0x1febde=_0x32d666['id'];this['_setSuggestionData']({'id':_0x4d1c15,'type':'formatInline:'+_0x263fb4,'data':_0x2336a7,'createdAt':new Date(),'authorId':_0x1febde,'attributes':_0x55034f}),this['_addSuggestionMarker']('formatInline:'+_0x263fb4,_0x4d1c15,_0x1febde,_0x157c70);}}return null;}['markBlockFormat'](_0x2f4c15,_0x2b09ac,_0x18086d=[],_0x50fdb4=null,_0x3ea8db={}){_0x2b09ac['formatGroupId']||(_0x2b09ac['formatGroupId']=_0x2b09ac['commandName']),_0x2b09ac['multipleBlocks']=_0x2f4c15['is']('range'),_0x50fdb4=_0x50fdb4||Ht(_0x2b09ac);const _0x37c7e4=_0x18086d['map'](_0x2f74c6=>tn(_0x2f74c6,this['_model'])),_0x490631=_0x2f4c15['is']('range')?_0x2f4c15:tn(_0x2f4c15,this['_model']);if(this['_trackingSessionId']&&(_0x3ea8db['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xc100fb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x50fdb4,'accept');return this['forceDefaultExecution'](()=>_0xc100fb([_0x490631],_0x2b09ac,_0x3ea8db)),null;}_0x37c7e4['push'](_0x490631);let _0x1dcd50=!0x0;for(const _0x2d26a2 of _0x37c7e4)if(!this['_rangeIsInLocalUserInsertion'](_0x2d26a2)){_0x1dcd50=!0x1;break;}if(_0x1dcd50&&'always'!==this['_trackFormatChanges']){const _0x17433e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x50fdb4,'accept');return this['forceDefaultExecution'](()=>_0x17433e([_0x490631],_0x2b09ac,_0x3ea8db)),null;}let _0x4f71f6=null,_0x179362=_0x490631['start'],_0x4ee7b5=_0x490631['end'];for(const {suggestion:_0x184c64,meta:_0x4b55ce}of this['_findSuggestions'](_0x490631,'formatBlock')){if(!_0x4b55ce['isOwn'])continue;if(_0x4b55ce['isNextTo']||_0x4b55ce['containsRangeInObject']||_0x4b55ce['isInsideObject'])continue;if(_0x184c64['data']['formatGroupId']!=_0x2b09ac['formatGroupId'])continue;if(!sn(_0x184c64,_0x3ea8db))continue;const _0x173a0f=_0x184c64['getFirstRange']();if(_0x184c64['subType']==_0x50fdb4){if(_0x173a0f['containsRange'](_0x490631,!0x0))return null;_0x179362=_0x179362['isBefore'](_0x173a0f['start'])?_0x179362:_0x173a0f['start'],_0x4ee7b5=_0x4ee7b5['isAfter'](_0x173a0f['end'])?_0x4ee7b5:_0x173a0f['end'],_0x4f71f6?_0x173a0f['start']['isBefore'](_0x4f71f6['getFirstRange']()['start'])?(_0x4f71f6['removeMarkers'](),_0x4f71f6=_0x184c64):_0x184c64['removeMarkers']():_0x4f71f6=_0x184c64;}else{const _0x59e248=_0x490631['getIntersection'](_0x173a0f);this['_cutOutSuggestionMarker'](_0x184c64,_0x59e248);}}const _0x43ab4f=this['editor']['plugins']['get']('Users')['me'],_0x58dc99=_0x531b89(),_0x1af561=_0x43ab4f['id'];if(_0x4f71f6)return this['_setSuggestionRange'](_0x4f71f6,this['_model']['createRange'](_0x179362,_0x4ee7b5)),_0x4f71f6;{const _0x33d2ee=this['_setSuggestionData']({'id':_0x58dc99,'type':'formatBlock:'+_0x50fdb4,'data':_0x2b09ac,'createdAt':new Date(),'authorId':_0x1af561,'attributes':_0x3ea8db});return this['_addSuggestionMarker']('formatBlock:'+_0x50fdb4,_0x58dc99,_0x1af561,this['_model']['createRange'](_0x179362,_0x4ee7b5)),_0x33d2ee;}}['markMultiRangeBlockFormat'](_0x46b6a4,_0x5b26a7,_0x2ca347=[],_0x3b9165=null,_0x10793c={}){_0x5b26a7['formatGroupId']||(_0x5b26a7['formatGroupId']=_0x5b26a7['commandName']);const _0x5d7c70=_0x46b6a4[0x0];_0x5b26a7['multipleBlocks']=_0x5d7c70['is']('range'),_0x3b9165=_0x3b9165||Ht(_0x5b26a7);const _0x1f75ed=_0x2ca347['map'](_0x236253=>tn(_0x236253,this['_model'])),_0x1af2ab=_0x5d7c70['is']('range')?_0x46b6a4:_0x46b6a4['map'](_0x95523=>tn(_0x95523,this['_model']));if(this['_trackingSessionId']&&(_0x10793c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x155ce5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b9165,'accept');return this['forceDefaultExecution'](()=>_0x155ce5(_0x1af2ab,_0x5b26a7,_0x10793c)),null;}_0x1f75ed['push'](..._0x1af2ab);let _0x4bb956=!0x0;for(const _0xe1468f of _0x1f75ed)if(!this['_rangeIsInLocalUserInsertion'](_0xe1468f)){_0x4bb956=!0x1;break;}if(_0x4bb956&&'always'!==this['_trackFormatChanges']){const _0xb05d28=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b9165,'accept');return this['forceDefaultExecution'](()=>_0xb05d28(_0x1af2ab,_0x5b26a7,_0x10793c)),null;}const _0x49a1d6=this['editor']['plugins']['get']('Users')['me'];for(const _0x6dbe5b of this['getSuggestions']()){const _0x5373f9=_0x6dbe5b['data'];if(_0x6dbe5b['author']['id']!=_0x49a1d6['id'])continue;if('formatBlock'!=_0x6dbe5b['type']||_0x5373f9['formatGroupId']!=_0x5b26a7['formatGroupId'])continue;if(!sn(_0x6dbe5b,_0x10793c))continue;const _0x4160fe=_0x6dbe5b['subType']==_0x3b9165;for(let _0x5bbb02=0x0;_0x5bbb02<_0x1af2ab['length'];_0x5bbb02++){const _0x4b2d00=_0x1af2ab[_0x5bbb02];for(const _0x37c082 of _0x6dbe5b['getMarkers']()){const _0x371fe9=_0x37c082['getRange']();if(_0x4b2d00['isEqual'](_0x371fe9)){_0x4160fe?(_0x1af2ab['splice'](_0x5bbb02,0x1),_0x5bbb02--):_0x6dbe5b['removeMarker'](_0x37c082['name']);break;}}}}if(0x0==_0x1af2ab['length'])return null;const _0x59bb6d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b9165,'join');for(const _0x4de800 of this['getSuggestions']()){const _0x1eee4d=_0x4de800['data'];if(_0x4de800['author']['id']==_0x49a1d6['id']&&('formatBlock'==_0x4de800['type']&&_0x1eee4d['formatGroupId']==_0x5b26a7['formatGroupId']&&_0x4de800['subType']==_0x3b9165&&sn(_0x4de800,_0x10793c)&&(_0x59bb6d(_0x4de800['getRanges'](),_0x1af2ab)||_0x59bb6d(_0x1af2ab,_0x4de800['getRanges']())))){for(const _0x2be590 of _0x1af2ab)_0x4de800['addRange'](_0x2be590);return _0x4de800;}}const _0x576f25=_0x531b89(),_0x381f83=_0x49a1d6['id'],_0x4ef21d='formatBlock:'+_0x3b9165,_0x976db3=this['_setSuggestionData']({'id':_0x576f25,'type':_0x4ef21d,'data':_0x5b26a7,'createdAt':new Date(),'authorId':_0x381f83,'attributes':_0x10793c});for(const _0x1559b0 of _0x1af2ab)this['_addSuggestionMarker'](_0x4ef21d,_0x576f25,_0x381f83,_0x1559b0,x['getMultiRangeId']());return _0x976db3;}['markDeletion'](_0x395926,_0x43b9e6=null,_0x4f77fa={}){if(_0x395926['isCollapsed'])return null;const _0x10a7a0=this['editor']['plugins']['get']('Users')['me'],_0x340e5d=new _0x393f46(_0x395926['start'],_0x395926['end']);this['_trackingSessionId']&&(_0x4f77fa['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x43eca4,meta:_0xf32baa}of this['_findSuggestions'](_0x340e5d,'insertion'))if(_0xf32baa['isOwn']&&!_0xf32baa['isNextTo']){if(_0x43eca4['isMultiRange']){const _0x54425b=_0x43eca4['getRanges']()['filter'](_0x1d81fb=>'$graveyard'!=_0x1d81fb['root']['rootName']);_0x54425b['every'](_0x579b6d=>_0x340e5d['containsRange'](_0x579b6d,!0x0))&&_0x43eca4['discard']();if(_0x54425b['some'](_0x4f8770=>_0x4f8770['containsRange'](_0x340e5d,!0x0))){const _0x460507=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x43b9e6,'accept');return this['forceDefaultExecution'](()=>_0x460507([_0x340e5d],null,_0x4f77fa)),null;}}else{const _0x51ff32=_0x340e5d['getIntersection'](_0x43eca4['getFirstRange']());null!==_0x51ff32&&_0x43eca4['_onDiscard']([_0x51ff32],null,_0x4f77fa);}}if(_0x340e5d['detach'](),_0x340e5d['isCollapsed']||'$graveyard'==_0x340e5d['root']['rootName'])return null;let _0x5c281f=null,_0x1983a0=_0x340e5d['start'],_0x5173ef=_0x340e5d['end'];const _0x46229b=this['_findSuggestions'](_0x340e5d,'deletion');for(const {suggestion:_0x1eb4f9,meta:_0x30af2d}of _0x46229b){const _0x3a1db1=this['_model']['createRange'](_0x1983a0,_0x5173ef);if(_0x30af2d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x30af2d['containsRangeInObject']&&!_0x30af2d['isInsideObject'])){if(_0x1eb4f9['isMultiRange']){if(!sn(_0x1eb4f9,_0x4f77fa))continue;let _0x5ff066=!0x0;for(const _0x5b3a17 of _0x1eb4f9['getRanges']()){if(_0x5b3a17['containsRange'](_0x3a1db1,!0x0))return _0x1eb4f9;_0x3a1db1['containsRange'](_0x5b3a17)||(_0x5ff066=!0x1);}_0x5ff066&&_0x1eb4f9['discard']();}else{const _0x3a54d3=_0x1eb4f9['getFirstRange']();if(_0x3a54d3['containsRange'](_0x3a1db1,!0x0))return _0x1eb4f9;if(!sn(_0x1eb4f9,_0x4f77fa)){_0x3a1db1['containsRange'](_0x3a54d3)?_0x1eb4f9['removeMarkers']():_0x3a54d3['containsPosition'](_0x1983a0)?_0x1983a0=_0x3a54d3['end']:_0x3a54d3['containsPosition'](_0x5173ef)&&(_0x5173ef=_0x3a54d3['start']);continue;}_0x1983a0=_0x1983a0['isBefore'](_0x3a54d3['start'])?_0x1983a0:_0x3a54d3['start'],_0x5173ef=_0x5173ef['isAfter'](_0x3a54d3['end'])?_0x5173ef:_0x3a54d3['end'],_0x4f77fa=Object['assign']({},_0x1eb4f9['attributes']),_0x5c281f?_0x3a54d3['start']['isBefore'](_0x5c281f['getFirstRange']()['start'])?(_0x5c281f['removeMarkers'](),_0x5c281f=_0x1eb4f9):_0x1eb4f9['removeMarkers']():_0x5c281f=_0x1eb4f9;}}}if(_0x5c281f)return this['_setSuggestionRange'](_0x5c281f,this['_model']['createRange'](_0x1983a0,_0x5173ef)),_0x5c281f;{const _0x40c738=_0x531b89(),_0x1ce507=this['_model']['createRange'](_0x1983a0,_0x5173ef),_0xca3153=_0x10a7a0['id'],_0x39b999=_0x43b9e6?'deletion:'+_0x43b9e6:'deletion',_0x5b8885=this['_setSuggestionData']({'id':_0x40c738,'type':_0x39b999,'createdAt':new Date(),'authorId':_0xca3153,'attributes':_0x4f77fa});return this['_addSuggestionMarker'](_0x39b999,_0x40c738,_0xca3153,_0x1ce507),_0x5b8885;}}['markMultiRangeDeletion'](_0xd5acfa,_0x48c2c6='multi',_0x3cb83b={}){const _0x97f46f=this['editor']['plugins']['get']('Users')['me'],_0x18eab2=_0xd5acfa['map'](_0x360fd7=>new _0x393f46(_0x360fd7['start'],_0x360fd7['end'])),_0x24a3aa=new Set();this['_trackingSessionId']&&(_0x3cb83b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x80c45d,meta:_0x38cbb5}of this['_findSuggestions'](_0x18eab2,'insertion'))_0x38cbb5['isOwn']&&!_0x38cbb5['isNextTo']&&_0x24a3aa['add'](_0x80c45d);for(const _0x596543 of _0x24a3aa)if(_0x596543['isMultiRange']){const _0x4746d3=_0x596543['getRanges']();(!_0x596543['attributes']||!_0x596543['attributes']['skipNestingCheck'])&&(_0x4746d3['every'](_0x411e62=>_0x18eab2['some'](_0x88cd7e=>_0x88cd7e['containsRange'](_0x411e62,!0x0)))&&_0x596543['discard']());if(_0x18eab2['every'](_0x34717a=>_0x4746d3['some'](_0x24b287=>_0x24b287['containsRange'](_0x34717a,!0x0)))){const _0x2275b8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48c2c6,'accept');return this['forceDefaultExecution'](()=>_0x2275b8(_0xd5acfa,null,_0x3cb83b)),null;}}else{const _0x3b7e2a=_0x596543['getFirstRange']();_0x18eab2['some'](_0xdbdbb6=>_0xdbdbb6['containsRange'](_0x3b7e2a,!0x0))&&_0x596543['discard']();if(_0x18eab2['every'](_0x49616e=>_0x3b7e2a['containsRange'](_0x49616e,!0x0))){const _0x32c627=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48c2c6,'accept');return this['forceDefaultExecution'](()=>_0x32c627(_0x18eab2,null,_0x3cb83b)),null;}}const _0x3b5e79=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48c2c6,'join');let _0x23e6c3=null;for(const _0x541d72 of this['getSuggestions']())if(_0x541d72['author']['id']==_0x97f46f['id']&&_0x541d72['isInContent']&&'deletion'==_0x541d72['type']&&_0x541d72['subType']==_0x48c2c6&&sn(_0x541d72,_0x3cb83b)&&(_0x3b5e79(_0x541d72['getRanges'](),_0x18eab2)||_0x3b5e79(_0x18eab2,_0x541d72['getRanges']()))){if(_0x23e6c3){if(_0x541d72['commentThread']&&_0x541d72['commentThread']['length'])continue;for(const _0x56be28 of _0x541d72['getRanges']())_0x23e6c3['isIntersectingWithRange'](_0x56be28)||_0x23e6c3['addRange'](_0x56be28);_0x541d72['removeMarkers']();}else{_0x23e6c3=_0x541d72;for(const _0x3ba3b7 of _0x18eab2)_0x541d72['isIntersectingWithRange'](_0x3ba3b7)||_0x541d72['addRange'](_0x3ba3b7);}}if(_0x23e6c3)return _0x23e6c3;_0x24a3aa['clear']();for(const {suggestion:_0xd51c2b,meta:_0x30e94f}of this['_findSuggestions'](_0x18eab2,'deletion'))_0x30e94f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x30e94f['containsRangeInObject']&&!_0x30e94f['isInsideObject'])&&sn(_0xd51c2b,_0x3cb83b)&&_0x24a3aa['add'](_0xd51c2b);for(const _0x37da69 of _0x24a3aa){const _0xe9a2f0=_0x37da69['getRanges']();if(!_0x3cb83b||!_0x3cb83b['skipNestingCheck']){if(_0x18eab2['every'](_0xc6540f=>_0xe9a2f0['some'](_0x32b386=>_0x32b386['containsRange'](_0xc6540f,!0x0))))return _0x37da69;}(!_0x37da69['attributes']||!_0x37da69['attributes']['skipNestingCheck'])&&(_0xe9a2f0['every'](_0x7127f3=>_0x18eab2['some'](_0x344f45=>_0x344f45['containsRange'](_0x7127f3,!0x0)))&&_0x37da69['discard']());}const _0x3f9f38=_0x531b89(),_0x57c5d7=_0x97f46f['id'],_0x302477='deletion:'+_0x48c2c6,_0x34bf47=this['_setSuggestionData']({'id':_0x3f9f38,'type':_0x302477,'createdAt':new Date(),'authorId':_0x57c5d7,'attributes':_0x3cb83b});for(const _0x32d7f8 of _0x18eab2)_0x32d7f8['detach'](),_0x32d7f8['isCollapsed']||'$graveyard'==_0x32d7f8['root']['rootName']||this['_addSuggestionMarker'](_0x302477,_0x3f9f38,_0x57c5d7,_0x32d7f8,x['getMultiRangeId']());return _0x34bf47;}['markAttributeChange'](_0x389483,_0x5cb465,_0x5d4a9e,_0x5f358b,_0x3b36f9){if(_0x389483['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x341b3e=this['editor']['plugins']['get']('Users')['me']['id'],_0x55fa62=Array['from'](this['_suggestions']['values']())['filter'](_0x30f367=>'attribute'==_0x30f367['type']&&_0x30f367['data']['key']==_0x5cb465&&_0x30f367['isIntersectingWithRange'](_0x389483));if(this['_trackingSessionId']&&(_0x3b36f9['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x1eeffa=this['_findSuggestions'](_0x389483,'insertion')['filter'](({meta:_0x8aa98f})=>_0x8aa98f['isOwn']&&!_0x8aa98f['isInsideObject']&&!_0x8aa98f['isNextTo'])['map'](({suggestion:_0xfb2c92})=>_0xfb2c92);_0x55fa62['unshift'](..._0x1eeffa);}const _0x8ddc08=new Map([[_0x389483,_0x5d4a9e]]);for(const _0x1f158b of _0x55fa62){const _0x13b8fa='attribute'==_0x1f158b['type']?_0x1f158b['data']['oldValue']:void 0x0,_0x446df5=_0x1f158b['getFirstRange'](),_0x433316=Array['from'](_0x8ddc08['keys']())['find'](_0x49852f=>_0x49852f['isIntersecting'](_0x446df5));if(!_0x433316)continue;const _0x3665b5=_0x433316['getDifference'](_0x446df5);this['_isBlockAttribute'](_0x5cb465)&&'insertion'==_0x1f158b['type']&&0x0!=_0x3665b5['length']||(_0x8ddc08['delete'](_0x433316),_0x3665b5['forEach'](_0x5ba5c0=>{_0x8ddc08['set'](_0x5ba5c0,_0x5d4a9e);}),'insertion'!=_0x1f158b['type']&&_0x13b8fa!=_0x5f358b&&_0x8ddc08['set'](_0x433316['getIntersection'](_0x446df5),_0x13b8fa));}const _0x223586=[];for(const [_0x48a5a7,_0x53123e]of _0x8ddc08){const _0x273253=_0x531b89(),_0x2171b9={'key':_0x5cb465,'oldValue':_0x53123e,'newValue':_0x5f358b};_0x5cb465['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':_0x5cb465});const _0x36d03c=('attribute:'+(_0x5cb465+'|'+Ht({'newValue':_0x5f358b})))['substring'](0x0,0x3c),_0x65e61a=this['_setSuggestionData']({'id':_0x273253,'type':_0x36d03c,'data':_0x2171b9,'createdAt':new Date(),'authorId':_0x341b3e,'attributes':_0x3b36f9});_0x223586['push'](_0x65e61a),this['_addSuggestionMarker'](_0x36d03c,_0x273253,_0x341b3e,_0x48a5a7);}return _0x223586;}['enableDefaultAttributesIntegration'](_0x1e8e72){this['enableCommand'](_0x1e8e72,(_0x50f24d,..._0x3dcebd)=>{this['recordAttributeChanges'](()=>{_0x50f24d(..._0x3dcebd);});});}['registerBlockAttribute'](_0xe3aab7){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0xe3aab7);}['registerInlineAttribute'](_0x22f8db){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x22f8db);}['startTrackingSession'](_0x3c913c){return this['_trackingSessionId']=void 0x0!==_0x3c913c?_0x3c913c:_0x531b89(),this['_trackingSessionId'];}['_getAttributeKey'](_0x1baaf3){return'attribute'==_0x1baaf3['type']?_0x1baaf3['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x2ed120){if(0x0==_0x2ed120['length'])return;const _0x96f44b=this['editor'],_0x35836c=_0x96f44b['plugins']['get'](_0x43db28),_0x222b72=[];_0x96f44b['model']['change'](_0x44b0f2=>{for(let _0x4997de=0x0;_0x4997de<_0x2ed120['length'];_0x4997de++){const _0x59de01=_0x2ed120[_0x4997de];if(_0x59de01['baseVersion']=_0x96f44b['model']['document']['version'],_0x59de01['isDocumentOperation']=!0x0,_0x35836c['isMarkedRemoveOperation'](_0x59de01)){const _0x2127ec=Lt(_0x59de01['newRange'],_0x96f44b['model']);_0x222b72['unshift'](_0x393f46['fromRange'](_0x2127ec));}else switch(_0x59de01['type']){case'rename':{const _0x41010a=_0x59de01['oldName'],_0x1eaa86=_0x59de01['newName'];if(_0x41010a==_0x1eaa86)break;_0x44b0f2['batch']['addOperation'](_0x59de01),_0x96f44b['model']['applyOperation'](_0x59de01);const _0x2eff0f='$elementName',_0x33cd65=_0x59de01['position'],_0x3136ea=_0x96f44b['model']['createRange'](_0x33cd65,_0x96f44b['model']['createPositionAt'](_0x33cd65['nodeAfter'],'end'));this['markAttributeChange'](_0x3136ea,_0x2eff0f,_0x41010a,_0x1eaa86,{'groupId':_0x531b89()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x47225f=_0x59de01['oldValue'],_0x288ace=_0x59de01['newValue'];if(_0x47225f==_0x288ace)break;_0x44b0f2['batch']['addOperation'](_0x59de01),_0x96f44b['model']['applyOperation'](_0x59de01);const _0x525e57=_0x59de01['key'];if(!this['_isRegisteredAttribute'](_0x525e57))break;const _0x16d775=Lt(_0x59de01['range'],_0x96f44b['model']);this['markAttributeChange'](_0x16d775,_0x525e57,_0x47225f,_0x288ace,{'groupId':_0x531b89()});break;}case'insert':{_0x44b0f2['batch']['addOperation'](_0x59de01),_0x96f44b['model']['applyOperation'](_0x59de01);if(_0x2ed120[_0x4997de+0x1]&&'move'==_0x2ed120[_0x4997de+0x1]['type'])break;const _0x58f810=_0x59de01['position'],_0x3e40b8=_0x59de01['howMany'],_0x2c9b02=Lt(_0x96f44b['model']['createRange'](_0x58f810,_0x58f810['getShiftedBy'](_0x3e40b8)),_0x96f44b['model']);this['markInsertion'](_0x2c9b02);break;}case'split':{_0x44b0f2['batch']['addOperation'](_0x59de01),_0x96f44b['model']['applyOperation'](_0x59de01);const _0xb8ae1=_0x59de01['splitPosition'],_0x2585e2=_0x59de01['moveTargetPosition'];this['markInsertion'](_0x96f44b['model']['createRange'](_0xb8ae1,_0x2585e2));break;}case'move':case'remove':_0x44b0f2['batch']['addOperation'](_0x59de01),_0x96f44b['model']['applyOperation'](_0x59de01);}}for(const _0xaeaf of _0x222b72)_0xaeaf['detach'](),this['markDeletion'](_0xaeaf);});}['_setSuggestionRange'](_0x17bb70,_0x610db7){const _0x51b66a=_0x17bb70['getFirstMarker']();this['_model']['change'](_0x3e66bc=>{_0x3e66bc['updateMarker'](_0x51b66a,{'range':_0x610db7});});}['_addThreadToSuggestion'](_0x22233b){const _0x18c25f=_0x22233b['id'],_0x4f3faf=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x18c25f)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4f3faf,'threadId':_0x18c25f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4242c3=this['_commentsRepository']['getCommentThread'](_0x18c25f);_0x4242c3['unbind']('isRemovable'),_0x4242c3['isRemovable']=!0x1,_0x22233b['commentThread']=_0x4242c3;}['_checkSuggestionCorrectness'](_0x18e703,_0x5a03eb,_0x504ddf,_0x231d3c){if(_0x18e703['type']!=_0x5a03eb||_0x18e703['subType']!=_0x504ddf||_0x18e703['creator']['id']!=_0x231d3c)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2557e8('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x16815a,_0x564e05){const _0x50e1ab=_0x16815a['getFirstRange']();if(_0x564e05['isEqual'](_0x50e1ab))_0x16815a['removeMarkers']();else{if(_0x50e1ab['containsRange'](_0x564e05)){const _0x289a92=this['_model']['createPositionAt'](_0x564e05['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x16815a,this['_model']['createRange'](_0x50e1ab['start'],_0x289a92));const _0x55a322=_0x531b89(),_0x2f8b28=_0x16815a['creator']['id'],_0x214c1d=_0x16815a['type']+':'+_0x16815a['subType'];this['_setSuggestionData']({'id':_0x55a322,'type':_0x214c1d,'createdAt':new Date(),'authorId':_0x2f8b28,'data':_0x16815a['data'],'attributes':_0x16815a['attributes']});const _0x23370f=this['_model']['createPositionAt'](_0x564e05['end']['parent'],'after'),_0x118b76=this['_model']['createRange'](_0x23370f,_0x50e1ab['end']);this['_addSuggestionMarker'](_0x214c1d,_0x55a322,_0x2f8b28,_0x118b76);}else{if(_0x50e1ab['containsPosition'](_0x564e05['start'])){const _0x42c9e5=this['_model']['createPositionAt'](_0x564e05['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x16815a,this['_model']['createRange'](_0x50e1ab['start'],_0x42c9e5));}else{const _0x461b72=this['_model']['createPositionAt'](_0x564e05['end']['parent'],'after');this['_setSuggestionRange'](_0x16815a,this['_model']['createRange'](_0x461b72,_0x50e1ab['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x324942){for(const {suggestion:_0x2785b5,meta:_0x1ad5dd}of this['_findSuggestions'](_0x324942,'insertion')){if(!_0x1ad5dd['isOwn'])continue;const _0x28870e=_0x2785b5['getRanges']();for(const _0x25452a of _0x28870e)if(!_0x324942['getDifference'](_0x25452a)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x59263a){return this['editor']['plugins']['get']('Users')['getUser'](_0x59263a);}['_getExternalAuthor'](_0x10fbf9){const _0x1b4236=this['editor']['plugins']['get']('Users'),_0x4272c5=_0x12c857('external:'+_0x10fbf9),_0x3501af=_0x1b4236['getUser'](_0x4272c5);return _0x3501af||_0x1b4236['addUser']({'id':_0x4272c5,'name':_0x10fbf9});}['_createSuggestion'](_0x2d0ce8,_0xeb083c,_0x4c0ef3,_0x4fb17,_0xa5d38b,_0xd538ad){const _0x2af138=this['_getAuthorFromId'](_0x4fb17);if(!_0x2af138)throw new _0x2557e8('track-changes-user-not-found',this,{'authorId':_0x4fb17,'suggestionId':_0x4c0ef3});const _0x5c5abf=this['_suggestionFactory']['buildSuggestion'](_0x2d0ce8,_0xeb083c,_0x4c0ef3,_0x2af138,_0xa5d38b,_0x44d2a8=>{this['_updateSuggestionData'](_0x4c0ef3,{'attributes':_0x44d2a8});const _0x161a45=this['getSuggestion'](_0x4c0ef3);this['_joinWithAdjacentSuggestions'](new Set([_0x161a45])),this['_refreshSuggestionsChain'](new Set([_0x161a45]));},_0xd538ad);return this['listenTo'](_0x5c5abf,'accept',()=>{this['_updateSuggestionData'](_0x4c0ef3,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5c5abf,'discard',()=>{this['_updateSuggestionData'](_0x4c0ef3,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4c0ef3,_0x5c5abf),this['_suggestionState']['set'](_0x5c5abf,'notReady'),_0x5c5abf;}['_splitMarkerName'](_0x3856ab){return Gt(_0x3856ab);}['_breakSuggestionMarker'](_0x1d0cb1,_0x2d5abf,_0x36f7e3){const _0x457825=_0x1d0cb1['getFirstRange'](),_0x2740af=_0x457825['start'],_0x1c6a79=_0x457825['end'];this['_setSuggestionRange'](_0x1d0cb1,this['_model']['createRange'](_0x2740af,_0x2d5abf));const _0xd5cd61=_0x531b89(),_0xabbbaf=_0x1d0cb1['creator']['id'],_0x1150f7=_0x1d0cb1['type']+(_0x1d0cb1['subType']?':'+_0x1d0cb1['subType']:'');this['_setSuggestionData']({'id':_0xd5cd61,'type':_0x1150f7,'createdAt':new Date(),'authorId':_0xabbbaf,'originalSuggestionId':_0x1d0cb1['_originalSuggestionId']||_0x1d0cb1['id'],'attributes':_0x1d0cb1['attributes'],'data':_0x1d0cb1['data']});const _0x2b26f5=this['_getAttributeKey'](_0x1d0cb1);('formatBlock'==_0x1d0cb1['type']||_0x2b26f5&&this['_isBlockAttribute'](_0x2b26f5))&&(_0x36f7e3=this['_model']['createPositionBefore'](_0x36f7e3['parent'])),this['_addSuggestionMarker'](_0x1150f7,_0xd5cd61,_0xabbbaf,this['_model']['createRange'](_0x36f7e3,_0x1c6a79));}['_findSuggestions'](_0x574ca8,_0x2dfcae=null){const _0x425387=[],_0x5d25bf=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x574ca8)||(_0x574ca8=[_0x574ca8]);for(const _0x3931db of this['getSuggestions']()){if(!_0x3931db['isInContent'])continue;if(_0x2dfcae&&_0x3931db['type']!=_0x2dfcae)continue;let _0x28bcf4=!0x1;for(const _0xeb3b52 of _0x3931db['getRanges']()){for(const _0x269563 of _0x574ca8){const _0xf61d46=_0x269563['start']['isEqual'](_0xeb3b52['end'])||_0x269563['end']['isEqual'](_0xeb3b52['start']);if(_0xf61d46||_0x269563['getIntersection'](_0xeb3b52)){const _0x551b60=_0x269563['containsRange'](_0xeb3b52)&&zt(this['_model']['schema'],_0xeb3b52['start'],_0x269563),_0x4e42ed=_0xeb3b52['containsRange'](_0x269563)&&zt(this['_model']['schema'],_0x269563['start'],_0xeb3b52);_0x425387['push']({'suggestion':_0x3931db,'meta':{'isOwn':_0x5d25bf==_0x3931db['author'],'isNextTo':_0xf61d46,'isInsideObject':_0x551b60,'containsRangeInObject':_0x4e42ed}}),_0x28bcf4=!0x0;break;}}if(_0x28bcf4)break;}}return _0x425387;}['_addSuggestionMarker'](_0x44627b,_0x493d53,_0x29483d,_0x2c55e4,_0x14513b){this['_model']['change'](_0x243de8=>{let _0x31825c='suggestion:'+_0x44627b+':'+_0x493d53+':'+_0x29483d;_0x14513b&&(_0x31825c=_0x31825c+':'+_0x14513b),_0x243de8['addMarker'](_0x31825c,{'range':_0x2c55e4,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x32e71d){const _0x2dd5fc=_0x32e71d['previous'],_0x4c55ff=_0x32e71d['next'];_0x32e71d['previous']=null,_0x32e71d['next']=null,null!=_0x2dd5fc&&_0x2dd5fc['next']==_0x32e71d&&(_0x2dd5fc['next']=_0x4c55ff),null!=_0x4c55ff&&_0x4c55ff['previous']==_0x32e71d&&(_0x4c55ff['previous']=_0x2dd5fc),'ready'==this['_suggestionState']['get'](_0x32e71d)&&(this['_suggestionState']['set'](_0x32e71d,'removed'),this['fire']('suggestionUnloaded',_0x32e71d,_0x2dd5fc,_0x4c55ff));}['_setSuggestionData'](_0xbb818a){const _0x779b65=_0xbb818a['id'],_0x175a88=this['addSuggestionData'](_0xbb818a);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2a2752=this['editor']['plugins']['get']('PendingActions'),_0x5b4751=_0x175a88['hasComments'],_0x1dad4c=_0x175a88['subType']?_0x175a88['type']+':'+_0x175a88['subType']:_0x175a88['type'],_0x35e367=this['editor']['locale'],_0x564946=_0x2a2752['add'](o(_0x35e367,'PENDING_ACTION_SUGGESTION')),_0x4cfc3d={'id':_0x779b65,'type':_0x1dad4c,'hasComments':_0x5b4751,'data':_0xbb818a['data']||null,'originalSuggestionId':_0xbb818a['originalSuggestionId']||null,'attributes':_0x175a88['attributes']};this['_adapter']['addSuggestion'](_0x4cfc3d)['then'](_0x5b1db2=>{_0x175a88['_saved']=!0x0,_0x2a2752['remove'](_0x564946),_0x5b1db2&&_0x5b1db2['createdAt']&&(this['_suggestions']['get'](_0x779b65)['createdAt']=_0x5b1db2['createdAt']);})['catch'](_0x59483e=>{throw _0x3bf1ea('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x175a88['discard']();}),_0x175a88['stopListening'](),this['_suggestions']['delete'](_0x175a88['id']),this['_suggestionState']['delete'](_0x175a88),_0x59483e;});}return _0x175a88;}['_isBlockAttribute'](_0x45cb6e){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0x45cb6e);}['_isInlineAttribute'](_0x1b4be6){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x1b4be6);}['_updateSuggestionData'](_0x1cebf1,_0xce078d){const _0x10f4b2=this['editor']['plugins']['get']('PendingActions'),_0x434b52=this['getSuggestion'](_0x1cebf1);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x434b52['_saved']){const _0x28d2a5=_0x10f4b2['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1cebf1,_0xce078d)['then'](()=>{_0x10f4b2['remove'](_0x28d2a5);});}else _0x434b52['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1cebf1,_0xce078d);});}}['_getSuggestionData'](_0x340856){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2557e8('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x340856);}['_handleNewSuggestionMarker'](_0x303ce1){const {id:_0x77e3ac,type:_0x56892a,subType:_0x1f14fd,authorId:_0x52d030}=this['_splitMarkerName'](_0x303ce1),_0x2eb3fa=this['_suggestions']['get'](_0x77e3ac)||this['_createSuggestion'](_0x56892a,_0x1f14fd,_0x77e3ac,_0x52d030,{});switch(this['_checkSuggestionCorrectness'](_0x2eb3fa,_0x56892a,_0x1f14fd,_0x52d030),this['_suggestionState']['get'](_0x2eb3fa)){case'notReady':this['_getSuggestionData'](_0x77e3ac)['then'](_0x41b73b=>{let _0xf4fcb1=Promise['resolve']();_0x41b73b['hasComments']&&(_0xf4fcb1=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x77e3ac})),_0xf4fcb1['then'](()=>{this['addSuggestionData'](_0x41b73b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2eb3fa,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x77e3ac,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2eb3fa,'ready'),this['fire']('suggestionLoaded',_0x2eb3fa);break;case'ready':this['fire']('suggestionChanged',_0x2eb3fa);}return _0x2eb3fa['addMarkerName'](_0x303ce1),_0x2eb3fa;}['_refreshSuggestionsChain'](_0x18fe3d){const _0x5a40d3=Array['from'](_0x18fe3d),_0x57c145=_0x5a40d3['filter'](_0x55f752=>'attribute'==_0x55f752['type']);this['_refreshAttributeSuggestionsChain'](_0x57c145);const _0x451c89=_0x5a40d3['filter'](_0x55b199=>!_0x55b199['isMultiRange']&&'attribute'!=_0x55b199['type']),_0x3796bc=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x23b516=>!_0x23b516['isMultiRange']&&'attribute'!=_0x23b516['type']),_0x47b6d9=_0x3796bc['filter'](_0x1bc0ef=>!_0x18fe3d['has'](_0x1bc0ef)),_0x390d7b=new Map(_0x3796bc['map'](_0x1d3450=>[_0x1d3450,this['_suggestionFactory']['getSuggestionCallback'](_0x1d3450['type'],_0x1d3450['subType'],'chain')])),_0xe79c8b=new Map(_0x3796bc['map'](_0x4f6197=>[_0x4f6197,_0x4f6197['getFirstRange']()])),_0x2d145a=new Set(),_0x1b6efb=new Set();for(let _0x4cdc88=0x0;_0x4cdc88<_0x451c89['length'];_0x4cdc88++)_0x3516dd(_0x451c89[_0x4cdc88],_0x451c89,_0x4cdc88+0x1);for(let _0x3287c2=0x0;_0x3287c2<_0x451c89['length'];_0x3287c2++)_0x3516dd(_0x451c89[_0x3287c2],_0x47b6d9,0x0);const _0x40e755=new Set();for(let _0x210aea=0x0;_0x210aea<_0x451c89['length'];_0x210aea++){const _0x3bb135=_0x451c89[_0x210aea];!_0x1b6efb['has'](_0x3bb135)&&_0x3bb135['previous']&&(_0x40e755['add'](_0x3bb135['previous']),_0x3bb135['previous']['next']===_0x3bb135&&(_0x3bb135['previous']['next']=null),_0x3bb135['previous']=null),!_0x2d145a['has'](_0x3bb135)&&_0x3bb135['next']&&(_0x40e755['add'](_0x3bb135['next']),_0x3bb135['next']['previous']===_0x3bb135&&(_0x3bb135['next']['previous']=null),_0x3bb135['next']=null);}function _0x3516dd(_0x1e57fa,_0x7b0958,_0x37a1e8){for(let _0x15154f=_0x37a1e8;_0x15154f<_0x7b0958['length'];_0x15154f++){const _0x54c61e=_0x520128(_0x1e57fa,_0x7b0958[_0x15154f]);_0x54c61e&&(_0x54c61e[0x0]['next']=_0x54c61e[0x1],_0x54c61e[0x1]['previous']=_0x54c61e[0x0],_0x2d145a['add'](_0x54c61e[0x0]),_0x1b6efb['add'](_0x54c61e[0x1]));}}function _0x520128(_0x4d31f4,_0x467c0e){if(_0x4d31f4['author']['id']!==_0x467c0e['author']['id'])return null;const _0x58a167=_0x390d7b['get'](_0x4d31f4)(_0x4d31f4,_0x467c0e,_0xe79c8b['get'](_0x4d31f4),_0xe79c8b['get'](_0x467c0e));if(!_0x58a167)return null;return _0x390d7b['get'](_0x467c0e)(_0x4d31f4,_0x467c0e,_0xe79c8b['get'](_0x4d31f4),_0xe79c8b['get'](_0x467c0e))?_0x58a167[0x1]['commentThread']&&_0x58a167[0x1]['commentThread']['length']?null:_0x58a167:null;}_0x40e755['size']&&this['_refreshSuggestionsChain'](_0x40e755);}['_refreshAttributeSuggestionsChain'](_0x5c4b5a){if(0x0==_0x5c4b5a['length'])return;const _0x1bd022=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3164b9=>'attribute'==_0x3164b9['type']&&_0x3164b9['_isDataLoaded']),_0x46f1cf=[],_0x54b567=new Map();for(const _0x3bdccb of _0x1bd022){const _0x4e8929=_0x12c857(_0x3bdccb['attributes']);_0x54b567['has'](_0x4e8929)||(_0x54b567['set'](_0x4e8929,_0x46f1cf['length']),_0x46f1cf['push']([]));const _0x1aa5fc=_0x54b567['get'](_0x4e8929);_0x46f1cf[_0x1aa5fc]['push'](_0x3bdccb);}!(function(){_0x46f1cf['sort']((_0x1c2f89,_0x2abbbd)=>{const _0x225856=_0x1c2f89[0x0]['createdAt'],_0x316b59=_0x2abbbd[0x0]['createdAt'];return _0x225856==_0x316b59?_0x1c2f89[0x0]['attributes']['groupId']<_0x2abbbd[0x0]['attributes']['groupId']?-0x1:0x1:_0x225856<_0x316b59?-0x1:0x1;});for(const _0x937af9 of _0x46f1cf)_0x937af9['sort']((_0x7255a6,_0x3acaa8)=>_0x7255a6['id']<_0x3acaa8['id']?-0x1:0x1);}());for(let _0x530248=0x0;_0x530248<_0x46f1cf['length'];_0x530248++){if(0x0==_0x46f1cf[_0x530248]['length'])continue;const _0x43ade9=[];for(let _0x50d3c2=_0x530248+0x1;_0x50d3c2<_0x46f1cf['length'];_0x50d3c2++)0x0!=_0x46f1cf[_0x50d3c2]['length']&&_0x3936ca(_0x46f1cf[_0x530248],_0x46f1cf[_0x50d3c2])&&_0x43ade9['push'](_0x50d3c2);for(const _0x325844 of _0x43ade9)_0x46f1cf[_0x530248]=_0x46f1cf[_0x530248]['concat'](_0x46f1cf[_0x325844]),_0x46f1cf[_0x325844]=[];}for(const _0x27a15d of _0x46f1cf)for(let _0x32e906=0x0;_0x32e906<_0x27a15d['length'];_0x32e906++){const _0x4cfbe0=_0x27a15d[_0x32e906+0x1]||null;_0x27a15d[_0x32e906]['next']!==_0x4cfbe0&&(_0x27a15d[_0x32e906]['next']=_0x4cfbe0);}for(const _0x13cb86 of _0x46f1cf)for(let _0x7579bd=0x0;_0x7579bd<_0x13cb86['length'];_0x7579bd++){const _0x2f2477=_0x13cb86[_0x7579bd-0x1]||null;_0x13cb86[_0x7579bd]['previous']!==_0x2f2477&&(_0x13cb86[_0x7579bd]['previous']=_0x2f2477);}function _0x3936ca(_0x5a6084,_0x50e853){if(_0x5a6084[0x0]['attributes']['groupId']!==_0x50e853[0x0]['attributes']['groupId']&&_0x5a6084[0x0]['author']!==_0x50e853[0x0]['author'])return!0x1;if(!function(_0x489af2,_0x1662c6){if(!_0x489af2['hasComments']&&!_0x1662c6['hasComments'])return!0x0;if(_0x489af2['hasComments']&&_0x1662c6['hasComments'])return!0x1;if(_0x489af2['hasComments']&&_0x1662c6['createdAt']<_0x489af2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1662c6['hasComments']&&_0x489af2['createdAt']<_0x1662c6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5a6084[0x0],_0x50e853[0x0]))return!0x1;const _0x354642=Pt(_0x5a6084[0x0]['attributes'],['groupId','trackingSessionId']),_0x536a9e=Pt(_0x50e853[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x4f9f48(_0x354642,_0x536a9e))return!0x1;if(_0x5a6084[0x0]['attributes']['groupId']==_0x50e853[0x0]['attributes']['groupId'])return!0x0;if(_0x5a6084[0x0]['attributes']['trackingSessionId']!==_0x50e853[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x5a6084['every'](_0x3827f6=>_0x50e853['some'](_0x552e30=>_0x3827f6['getFirstRange']()['isEqual'](_0x552e30['getFirstRange']())))&&_0x50e853['every'](_0x3f40e7=>_0x5a6084['some'](_0x1a895d=>_0x3f40e7['getFirstRange']()['isEqual'](_0x1a895d['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4602aa){const _0x3fb167=Array['from'](_0x4602aa),_0xe212da=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3ba5f7=_0xe212da['filter'](_0x299284=>!_0x4602aa['has'](_0x299284)),_0xb69dce=new Map(_0x3fb167['map'](_0x5214ba=>[_0x5214ba,this['_suggestionFactory']['getSuggestionCallback'](_0x5214ba['type'],_0x5214ba['subType'],'join')])),_0x5d03d8=new Map(_0xe212da['map'](_0x2aec43=>[_0x2aec43,_0x2aec43['getRanges']()]));for(let _0x2932b0=0x0;_0x2932b0<_0x3fb167['length'];_0x2932b0++){if(_0x45192f(this,_0x3fb167[_0x2932b0],_0x3fb167,_0x2932b0+0x1))return!0x0;}for(let _0x358a11=0x0;_0x358a11<_0x3fb167['length'];_0x358a11++){if(_0x45192f(this,_0x3fb167[_0x358a11],_0x3ba5f7,0x0))return!0x0;}return!0x1;function _0x45192f(_0x10ed5e,_0x5aefa0,_0x1bb4ae,_0x4f0046){for(let _0x2e5819=_0x4f0046;_0x2e5819<_0x1bb4ae['length'];_0x2e5819++){const _0x5df12d=_0x1bb4ae[_0x2e5819];if(_0x5df12d['type']!==_0x5aefa0['type']||_0x5df12d['author']['id']!==_0x5aefa0['author']['id']||_0x5df12d['subType']!==_0x5aefa0['subType'])continue;if(!en(_0x5aefa0,_0x5df12d))continue;if('attribute'==_0x5aefa0['type']&&_0x5aefa0['data']['oldValue']!=_0x5df12d['data']['oldValue'])continue;if('attribute'==_0x5aefa0['type']&&_0x10ed5e['_isBlockAttribute'](_0x5aefa0['data']['key']))continue;if('formatBlock'==_0x5aefa0['type']){const _0x598ebc=_0x10ed5e['editor']['model'],_0x300aa3=_0x5aefa0['getContainedElement']();if(_0x300aa3&&(_0x598ebc['schema']['isObject'](_0x300aa3)||_0x598ebc['schema']['isLimit'](_0x300aa3)))continue;}const _0x3437e5=_0xb69dce['get'](_0x5aefa0),_0x271a33=_0x5d03d8['get'](_0x5aefa0),_0x43deef=_0x5d03d8['get'](_0x5df12d),_0x29036a=_0x5aefa0['commentThread']&&_0x5aefa0['commentThread']['length'],_0x2b18ba=_0x5df12d['commentThread']&&_0x5df12d['commentThread']['length'];if(!_0x29036a&&_0x3437e5(_0x43deef,_0x271a33))return _0x10ed5e['_joinSuggestions'](_0x5df12d,_0x5aefa0),_0x5d03d8['delete'](_0x5aefa0),!0x0;if(!_0x2b18ba&&_0x3437e5(_0x271a33,_0x43deef))return _0x10ed5e['_joinSuggestions'](_0x5aefa0,_0x5df12d),_0x5d03d8['delete'](_0x5df12d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x942a8d,_0x273255){if(_0x942a8d['isMultiRange']){for(const _0xe71d49 of _0x273255['getRanges']())_0x942a8d['addRange'](_0xe71d49);}else{const _0x5a72f4=_0x273255['getFirstRange']()['end'];this['_setSuggestionRange'](_0x942a8d,this['_model']['createRange'](_0x942a8d['getFirstRange']()['start'],_0x5a72f4));}_0x273255['removeMarkers']();}['_getMarkerAnnouncementText'](_0x187c0b,_0x98f9f7,_0x352133){const _0x1db4b5=_0x187c0b['startsWith']('format')||_0x187c0b['startsWith']('attribute')?'FORMATTING':_0x187c0b['toUpperCase']();return o(this['editor']['locale'],_0x98f9f7+'_'+_0x1db4b5+'_SUGGESTION_ANNOUNCEMENT',_0x352133);}['_initAriaMarkerChangeAnnouncements'](){const _0x5b23b5=this['editor'];if(!_0x5b23b5['ui'])return;const {ariaLiveAnnouncer:_0x44cbad}=_0x5b23b5['ui'];_0x42ea18(this['_model'],({left:_0x9d302f,entered:_0x43359c})=>{for(const _0x36e4e0 of _0x9d302f){const {group:_0x1939b9,type:_0x4c3537}=this['_splitMarkerName'](_0x36e4e0['name']);if('suggestion'===_0x1939b9){_0x44cbad['announce'](this['_getMarkerAnnouncementText'](_0x4c3537,'LEAVE'));break;}}for(const _0x282f88 of _0x43359c){const {group:_0x17631d,type:_0x105e4c}=this['_splitMarkerName'](_0x282f88['name']);if('suggestion'===_0x17631d){_0x44cbad['announce'](this['_getMarkerAnnouncementText'](_0x105e4c,'ENTER',_0x231584(_0x2ab3aa)));break;}}});}['_processAttributeChanges'](_0x166e63){if(this['_recordAttributeSuggestions'])return!0x1;const _0x482e4b=this['editor'],_0x9e667d=_0x482e4b['model']['document']['differ']['getChanges']();if(0x0==_0x9e667d['length'])return!0x1;const _0x22a27a=[],_0x4db77e=_0x9e667d['filter'](_0x1dd80c=>'attribute'==_0x1dd80c['type']),_0x204dff=_0x9e667d['filter'](_0x677464=>'insert'==_0x677464['type']&&'$text'!=_0x677464['name']),_0x36170d=_0x9e667d['filter'](_0x4cba6a=>'remove'==_0x4cba6a['type']&&'$text'!=_0x4cba6a['name']);for(const _0x11e03c of _0x4db77e)_0x22a27a['push']({'key':_0x11e03c['attributeKey'],'newValue':_0x11e03c['attributeNewValue'],'oldValue':_0x11e03c['attributeOldValue'],'range':Zt(_0x11e03c['range'],_0x482e4b['model'])});for(const _0x11be27 of _0x204dff){const _0x11d6eb=_0x36170d['find'](_0x45fc2a=>_0x45fc2a['position']['isEqual'](_0x11be27['position']));_0x11d6eb&&_0x22a27a['push']({'key':m,'newValue':_0x11be27['name'],'oldValue':_0x11d6eb['name'],'range':_0x482e4b['model']['createRangeOn'](_0x11be27['position']['nodeAfter'])});}return 0x0!=_0x22a27a['length']&&this['_reduceExistingSuggestions'](_0x166e63,_0x22a27a);}['_processAttributeSuggestions'](_0x118852){let _0x411360=!0x1;const _0x32c500=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4dae07=>_0x4dae07['data']['newRange']&&_0x4dae07['name']['startsWith']('suggestion:attribute:'));for(const _0x529841 of _0x32c500){const {subType:_0x5ec76c,id:_0x47dab2}=this['_splitMarkerName'](_0x529841['name']),_0x18b510=_0x5ec76c['split']('|')[0x0];for(const _0x407649 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x407649['id']!=_0x47dab2&&'attribute'==_0x407649['type']&&_0x407649['data']&&_0x407649['data']['key']==_0x18b510&&_0x407649['getFirstRange']()['isIntersecting'](_0x529841['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x407649,_0x529841['data']['newRange'],_0x118852),_0x411360=!0x0);}return _0x411360;}['recordAttributeChanges'](_0x5aea9f){this['_recordAttributeSuggestions']=!0x0,_0x5aea9f();}['_isRegisteredAttribute'](_0x5a8062){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x5a8062);}['_reduceExistingSuggestions'](_0x5e2726,_0x56e891){if(0x0==_0x56e891['length'])return!0x1;let _0xfbae0d=!0x1;for(const _0x2a668f of _0x56e891){const _0x411552=this['_findSuggestions'](_0x2a668f['range'],'attribute')['filter'](_0x2802af=>!_0x2802af['meta']['isNextTo'])['map'](_0x50ca6b=>_0x50ca6b['suggestion']),_0x450712=_0x12c857({'newValue':_0x2a668f['newValue']});_0x411552['filter'](_0x3b8649=>{const [_0x221269,_0x569531]=_0x3b8649['subType']['split']('|');return _0x221269==_0x2a668f['key']&&_0x569531!=_0x450712;})['forEach'](_0xe2b6ff=>{this['_reduceSuggestionAttributeRange'](_0xe2b6ff,_0x2a668f['range'],_0x5e2726),_0xfbae0d=!0x0;});}return _0xfbae0d;}['_reduceSuggestionAttributeRange'](_0x57aa65,_0x5f2f10,_0x3ec4a4){const _0x25e762=_0x57aa65['getFirstRange']()['getDifference'](_0x5f2f10);0x0!==_0x25e762['length']?0x1!==_0x25e762['length']?this['_breakSuggestionMarker'](_0x57aa65,_0x5f2f10['start'],_0x5f2f10['end']):this['_setSuggestionRange'](_0x57aa65,_0x25e762[0x0]):_0x3ec4a4['removeMarker'](_0x57aa65['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1c6d66){this['_editor']=_0x1c6d66,this['_model']=_0x1c6d66['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x54fc8a,_0x3bc5cf,_0x5b14bc,_0x3b0a94,_0x73b849,_0x2032c0,_0xa7e08){return new x(this['_model'],{'type':_0x54fc8a,'subType':_0x3bc5cf,'id':_0x5b14bc,'originalSuggestionId':_0xa7e08,'author':_0x3b0a94,'creator':_0x3b0a94,'attributes':_0x73b849,'onAttributesChange':_0x2032c0,'onAccept':(..._0x4c2a9a)=>this['getSuggestionCallback'](_0x54fc8a,_0x3bc5cf,'accept')(..._0x4c2a9a),'onDiscard':(..._0x45f1e5)=>this['getSuggestionCallback'](_0x54fc8a,_0x3bc5cf,'discard')(..._0x45f1e5)});}['registerCustomCallback'](_0x4f58f1,_0xab5984,_0x2ca063,_0x280c99){const _0x54126e=_0x4f58f1+':'+_0xab5984+':'+_0x2ca063;this['_customCallbacks']['set'](_0x54126e,_0x280c99);}['getSuggestionCallback'](_0x566b42,_0x4fbb2b,_0x36f635){const _0x2c7a82=_0x566b42+':'+_0x4fbb2b+':'+_0x36f635;return this['_customCallbacks']['get'](_0x2c7a82)||this['_defaultCallbacks']['get'](_0x566b42+':'+_0x36f635);}['_registerDefaultCallbacks'](){const _0x4ded98=()=>!0x1,_0x5c83fd=_0x59f6f7=>{_0x59f6f7['sort']((_0x521aa4,_0xfff81f)=>_0x521aa4['start']['isBefore'](_0xfff81f['start'])?0x1:-0x1),this['_model']['change'](_0x1d460f=>{for(const _0x21081b of _0x59f6f7){let _0x3e9c9e;_0x3e9c9e=_0x21081b['end']['isAtEnd']&&_0x21081b['end']['parent']==_0x21081b['start']['nodeAfter']?_0x1d460f['createSelection'](_0x21081b['start']['nodeAfter'],'on'):_0x1d460f['createSelection'](_0x21081b),this['_model']['deleteContent'](_0x3e9c9e,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x35d492=(_0x556197,_0x5cd237)=>{_0x5cd237&&this['_model']['change'](_0x5b33a9=>{const {commandName:_0x2389b9,commandParams:_0x283ff2=[]}=_0x5cd237,_0x4d08ee=_0x556197['map'](_0x4f70b9=>(Kt(_0x4f70b9)&&(_0x4f70b9=this['_model']['createRange'](_0x4f70b9['end'])),_0x4f70b9))['filter'](_0x12b512=>'$graveyard'!==_0x12b512['root']['rootName']);if(_0x4d08ee['length']<0x1)return;const _0x1cf9c8=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x17605f=>_0x393f46['fromRange'](_0x17605f));_0x5b33a9['setSelection'](_0x4d08ee);for(const _0x131379 of this['_editor']['commands']['commands']())_0x131379['refresh']();_0x283ff2['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2389b9,..._0x283ff2);const _0x51b3f1=_0x1cf9c8['filter'](_0x23bf09=>'$graveyard'!=_0x23bf09['root']['rootName']);_0x51b3f1['length']>0x0&&_0x5b33a9['setSelection'](_0x51b3f1);for(const _0x4a76ae of _0x1cf9c8)_0x4a76ae['detach']();});},_0x1f03a9=(_0x10f1a5,_0x2b9360)=>0x1==_0x10f1a5['length']&&0x1==_0x2b9360['length']&&_0x10f1a5[0x0]['end']['isEqual'](_0x2b9360[0x0]['start']),_0x5c1844=(_0x7a545a,_0x357bd1,_0x90e1bc,_0x4ef52d)=>nn(_0x7a545a,_0x357bd1,_0x90e1bc,_0x4ef52d)?[_0x7a545a,_0x357bd1]:nn(_0x357bd1,_0x7a545a,_0x4ef52d,_0x90e1bc)?[_0x357bd1,_0x7a545a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4ded98),this['_defaultCallbacks']['set']('insertion:discard',_0x5c83fd),this['_defaultCallbacks']['set']('insertion:join',_0x1f03a9),this['_defaultCallbacks']['set']('insertion:chain',_0x5c1844),this['_defaultCallbacks']['set']('deletion:accept',_0x5c83fd),this['_defaultCallbacks']['set']('deletion:discard',_0x4ded98),this['_defaultCallbacks']['set']('deletion:join',_0x1f03a9),this['_defaultCallbacks']['set']('deletion:chain',_0x5c1844),this['_defaultCallbacks']['set']('formatInline:accept',_0x35d492),this['_defaultCallbacks']['set']('formatInline:discard',_0x4ded98),this['_defaultCallbacks']['set']('formatInline:join',_0x1f03a9),this['_defaultCallbacks']['set']('formatInline:chain',_0x4ded98),this['_defaultCallbacks']['set']('formatBlock:accept',_0x35d492),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4ded98),this['_defaultCallbacks']['set']('formatBlock:join',_0x1f03a9),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4ded98),this['_defaultCallbacks']['set']('attribute:accept',_0x4ded98),this['_defaultCallbacks']['set']('attribute:discard',(_0x39bb04,_0x4021ae)=>{if(!_0x4021ae)return;const _0x399597=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x153dab=>{if(_0x4021ae['key']==m)for(const _0x140642 of _0x39bb04){const _0x1d2d42=_0x140642['start']['nodeAfter'],_0x5f425b=_0x4021ae['oldValue'];_0x153dab['rename'](_0x1d2d42,_0x5f425b);}else{if(_0x399597['_isBlockAttribute'](_0x4021ae['key'])){for(const _0x4e506b of _0x39bb04)void 0x0!==_0x4021ae['oldValue']?_0x153dab['setAttribute'](_0x4021ae['key'],_0x4021ae['oldValue'],_0x4e506b['start']['nodeAfter']):_0x153dab['removeAttribute'](_0x4021ae['key'],_0x4e506b['start']['nodeAfter']);}else{for(const _0x9cf480 of _0x39bb04)_0x4021ae['oldValue']?_0x153dab['setAttribute'](_0x4021ae['key'],_0x4021ae['oldValue'],_0x9cf480):_0x153dab['removeAttribute'](_0x4021ae['key'],_0x9cf480);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1f03a9);}}function zt(_0x172465,_0x4e0738,_0xbb4bf3){for(const _0x4585ed of _0x4e0738['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4585ed['root']==_0x4585ed)return!0x1;if(!_0xbb4bf3['containsItem'](_0x4585ed))return!0x1;if(_0x172465['isObject'](_0x4585ed)||_0x172465['isLimit'](_0x4585ed))return!0x0;}return!0x1;}function Kt(_0x18f13e){return _0x18f13e['end']['parent']==_0x18f13e['start']['nodeAfter']&&_0x18f13e['end']['isAtStart'];}function Wt(_0x4454b5,_0x18f68d,_0x59790f,_0x52808e){const _0x377ed4=_0x27b8d2=>!_0x27b8d2['item']['is']('$textProxy')&&!_0x52808e['isObject'](_0x27b8d2['item']),_0x39ba3d=_0x4454b5['start']['getLastMatchingPosition'](_0x377ed4),_0x2c8a35=_0x4454b5['end']['getLastMatchingPosition'](_0x377ed4,{'direction':'backward'});return(!_0x4454b5['start']['isEqual'](_0x39ba3d)||!_0x4454b5['end']['isEqual'](_0x2c8a35))&&(_0x39ba3d['isBefore'](_0x2c8a35)?_0x59790f['updateMarker'](_0x18f68d,{'range':_0x59790f['createRange'](_0x39ba3d,_0x2c8a35)}):_0x59790f['removeMarker'](_0x18f68d),!0x0);}function Ht(_0x2d8881){return _0x12c857(_0x2d8881);}function Qt(_0x532c52){const _0x29d3b0=_0x532c52['start']['nodeAfter'];return _0x29d3b0&&_0x29d3b0['is']('element');}function Xt(_0x2a3c03){return Kt(_0x2a3c03)||function(_0xf352fc){return _0xf352fc['start']['parent']==_0xf352fc['end']['nodeBefore']&&_0xf352fc['start']['isAtEnd'];}(_0x2a3c03);}function Yt(_0x43402b,_0x7927cd){try{const _0x28d4e1=_0x43402b['getRange']();for(const _0x52e971 of _0x7927cd)if(_0x43402b!==_0x52e971&&_0x28d4e1&&_0x28d4e1['isIntersecting'](_0x52e971['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x527092,_0x13119d){return null==_0x527092['end']['nodeBefore']&&_0x527092['end']['parent']==_0x527092['start']['nodeAfter']?tn(_0x527092['start']['nodeAfter'],_0x13119d):_0x527092;}function tn(_0x3b8d15,_0x2a9a1e){const _0x468805=_0x2a9a1e['schema']['isObject'](_0x3b8d15)||_0x2a9a1e['schema']['isSelectable'](_0x3b8d15);return _0x2a9a1e['createRange'](_0x2a9a1e['createPositionAt'](_0x3b8d15,'before'),_0x468805?_0x2a9a1e['createPositionAfter'](_0x3b8d15):_0x2a9a1e['createPositionAt'](_0x3b8d15,'end'));}function nn(_0x962f21,_0x3d8593,_0xda38fd,_0x256269){return!!en(_0x962f21,_0x3d8593)&&_0xda38fd['end']['isEqual'](_0x256269['start']);}function en(_0x1bdd08,_0x5b92d7){if(!_0x1bdd08['_isDataLoaded']||!_0x5b92d7['_isDataLoaded'])return!0x1;const _0x5b910b=new Set(Object['keys'](_0x1bdd08['attributes'])),_0x3c26e0=new Set(Object['keys'](_0x5b92d7['attributes']));if(_0x5b910b['delete']('groupId'),_0x3c26e0['delete']('groupId'),0x0==_0x5b910b['size']&&0x0==_0x3c26e0['size'])return!0x0;if(_0x5b910b['size']!=_0x3c26e0['size'])return!0x1;const _0x57b818={..._0x1bdd08['attributes']},_0x4f4f1b={..._0x5b92d7['attributes']};return delete _0x57b818['groupId'],delete _0x4f4f1b['groupId'],JSON['stringify'](_0x57b818)==JSON['stringify'](_0x4f4f1b);}function sn(_0x1678b0,_0x285f93){const _0x5898c4=on(_0x1678b0['attributes']),_0x4dbaaa=on(_0x285f93);if(!_0x1678b0['_isDataLoaded'])return!0x1;for(const _0x41f4f1 of Object['keys'](_0x4dbaaa))if(!_0x4f9f48(_0x5898c4[_0x41f4f1],_0x4dbaaa[_0x41f4f1]))return!0x1;return!0x0;}function on(_0xe46d2a){const _0x5beef3=Object['assign']({},_0xe46d2a);return delete _0x5beef3['skipNestingCheck'],delete _0x5beef3['tablePasteChainId'],_0x5beef3;}class pe extends/* #__PURE__ -- @preserve */
26
- _0x4414c9(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0xc66b42,_0x755aea,_0x24aa95,_0x473699){super(),this['model']=_0x755aea,this['view']=_0x24aa95,this['commentThreadController']=_0x473699,this['_editor']=_0xc66b42,this['_acceptCommand']=_0xc66b42['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xc66b42['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xd29ac9,_0x2af92a)=>_0xd29ac9||_0x2af92a),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x20616c=>_0x20616c&&this['_editor']['model']['canEditAt'](_0x755aea['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x488b1e=>_0x488b1e&&this['_editor']['model']['canEditAt'](_0x755aea['getRanges']())),this['_pendingAction']=null,_0x24aa95['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x24aa95,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x24aa95,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x24aa95,'change:isDirty',()=>{_0x24aa95['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 _0x24c4c5=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x24c4c5);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x5e1d9e{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x30b5f3,_0x51e8ee,_0x1b0188,_0xd5ed16){super(_0x30b5f3),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x387eeb(_0x30b5f3,o(_0x30b5f3,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x51e8ee['authoredAt']),this['bind']('authoredAt')['to'](_0x51e8ee),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',_0x51e8ee,'authoredAt',this,'descriptionParts',(_0xfd5d19,_0x493068,_0x2963e3)=>{const _0x116d0e=_0x2963e3['map'](_0x931fed=>ls(_0x931fed['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xfd5d19-0x1,_0x51e8ee['author']['name'],_0x493068?_0xd5ed16['formatDateTime'](_0x493068):'',new DOMParser()['parseFromString'](_0x116d0e,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5b34fa(),this['focusTracker']=new _0x4f281b(),this['keystrokes']=new _0xabf8c7(),this['focusCycler']=new _0x4e0adc({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x27fdff=>_0x27fdff['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x51e8ee,this['_localUser']=_0x1b0188,this['_config']=_0xd5ed16,_0xd5ed16['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xfb400c(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5971d9}=this['_config'];this['commentsListView']=new _0x5971d9(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',_0x13acfc=>_0x13acfc+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1cdf69,_0x35a5d3)=>_0x1cdf69||!!_0x35a5d3);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3a79ca}=this['_config'],_0x1b3d08=new _0x3a79ca(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2dfd6e=_0x1b3d08['commentInputView'];return _0x1b3d08['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2dfd6e,'value',(_0x41cbe9,_0x34e998,_0x18d162)=>!!_0x18d162||_0x41cbe9&&!_0x34e998),_0x2dfd6e['on']('submit',(_0x6d3dd8,_0x310d27)=>{this['fire']('addComment',_0x310d27),_0x2dfd6e['editor']['setData']('');}),_0x2dfd6e['on']('cancel',()=>this['focus']()),_0x2dfd6e['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1b3d08;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x2c9f10,_0x165464,_0x471783,_0x5f4870){super(_0x2c9f10,_0x165464,_0x471783,_0x5f4870),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2b8f70=>_0x2b8f70&&_0x2b8f70[0x0]?_0x2b8f70[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x760b85,_0x1ff6a3)=>{let _0x23eda1='';for(const _0xd14818 of _0x760b85)_0x23eda1+='<p>'+ls(_0xd14818['content'],_0xd14818['color'])+'</p>';return _0x1ff6a3?_0x23eda1:_0x2db41e(_0x23eda1,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5f4870['SuggestionView'](_0x2c9f10,_0x165464,{'formatDateTime':_0x5f4870['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 _0x1dbc5c=this['bindTemplate'],_0x585d78=[this['suggestionView']];return this['commentsListView']&&_0x585d78['push'](this['commentsListView']),this['commentThreadInputView']&&_0x585d78['push'](this['commentThreadInputView']),_0x585d78['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1dbc5c['if']('isActive','ck-suggestion-wrapper--active'),_0x1dbc5c['to']('type',_0x396a28=>'ck-suggestion-'+_0x396a28),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':_0x1dbc5c['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x585d78};}['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 _0x5e1d9e{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4774ea,_0x3b30e5,_0x358143){super(_0x4774ea),this['_model']=_0x3b30e5,this['_config']=_0x358143,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3b30e5),this['acceptButton']=this['_createButton'](o(_0x4774ea,'Accept\x20suggestion'),_0xd5318d,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x4774ea,'Discard\x20suggestion'),_0x92cecc,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3b2f56(_0x4774ea,_0x3b30e5['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5b34fa([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4f281b(),this['keystrokes']=new _0xabf8c7(),this['focusCycler']=new _0x4e0adc({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4561ea=>_0x4561ea['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x385369=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x385369['innerHTML']=this['description'],this['on']('change:description',(_0x2fc742,_0x1dd840,_0x54bcb7)=>{_0x385369['innerHTML']=_0x54bcb7;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x233228=this['bindTemplate'],_0x4ee7a1=[{'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':_0x233228['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x233228['to']('authoredAt',_0x2462cf=>this['_config']['formatDateTime'](_0x2462cf))}]}]},{'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']&&_0x4ee7a1['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':_0x4ee7a1}]};}['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'](_0x33ebc9,_0x29d9e7,_0x2ff855,_0x3bb669,_0x216b66){const _0x19616c=new _0x53f018(this['locale']);return _0x19616c['set']({'label':_0x33ebc9,'icon':_0x29d9e7,'tooltip':!0x0,'tooltipPosition':_0x216b66}),_0x19616c['extendTemplate']({'attributes':{'class':_0x2ff855}}),_0x19616c['on']('execute',()=>{this['fire'](_0x3bb669,this['_model']['id']);}),_0x19616c;}['_setupKeyboardNavigation'](){const _0x236d33=this['element'];this['keystrokes']['listenTo'](_0x236d33);for(const _0x58eed2 of this['focusables'])this['focusTracker']['add'](_0x58eed2['element']),this['keystrokes']['listenTo'](_0x58eed2['element']);this['keystrokes']['set']('enter',(_0x506216,_0xe3e347)=>{_0x236d33===_0x506216['target']&&(this['focusCycler']['focusFirst'](),_0xe3e347());}),this['keystrokes']['set']('esc',(_0x524000,_0x18b341)=>{_0x236d33!==_0x524000['target']&&(this['focus'](),_0x18b341());});}}class u extends _0x3274cb{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x1567bc,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x52d2c0){super(_0x52d2c0),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1f433a=this['editor']['config'];_0x1f433a['define']('trackChanges.SuggestionThreadView',fe),_0x1f433a['define']('trackChanges.SuggestionView',we),_0x1f433a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1f433a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x362eb9,_0x1b6b02){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xcfef01,_0x28a8a4]of this['_handleControllerBuffer']){const _0x99d775=this['_suggestionToController']['has'](_0xcfef01);_0x99d775||_0x28a8a4?_0x99d775&&_0x28a8a4&&this['_destroyController'](_0xcfef01):this['_initializeController'](_0xcfef01);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x362eb9,_0x1b6b02);}['init'](){const _0x44a978=this['editor'],_0x4e5047=_0x44a978['plugins']['get']('TrackChangesEditing'),_0x5f245a=_0x44a978['plugins']['get']('Annotations'),_0x6c039f=_0x44a978['plugins']['get']('EditorAnnotations'),_0x2569ec=_0x44a978['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x6c039f['addSourceCollector'](()=>{const _0x4a7d82=[];for(const [_0x5c8107,_0x5d3b4a]of Array['from'](this['_suggestionToController'])){const _0x110431=_0x5c8107['getAllAdjacentSuggestions'](),_0x4221ea=[];for(const _0x234196 of _0x110431){if(!_0x234196['isInContent'])continue;if(_0x234196['isMultiRange']){_0x4221ea['push'](..._0x234196['getRanges']());continue;}const _0xd5360b=_0x234196['getFirstRange']();if(_0x4221ea['length']>0x0){const _0x2d55a7=_0x4221ea[0x0]['getJoined'](_0xd5360b);if(_0x2d55a7){_0x4221ea[0x0]=_0x2d55a7;continue;}}_0x4221ea['push'](_0xd5360b);}_0x4a7d82['push']([_0x5d3b4a['view'],_0x4221ea]);}return _0x4a7d82;}),this['listenTo'](_0x4e5047,'suggestionLoaded',(_0x4c075a,_0x20223b)=>{this['listenTo'](_0x20223b,'change:previous',(_0x4e6c26,_0x25efea,_0x45a2c4,_0x510fe5)=>{_0x20223b['isInContent']&&(null==_0x45a2c4?(this['_updateController'](_0x510fe5['head']),this['_handleSuggestionControllerDelayed'](_0x20223b,!0x1)):(this['_updateController'](_0x45a2c4['head']),null==_0x510fe5&&this['_handleSuggestionControllerDelayed'](_0x20223b,!0x0)));}),null!==_0x20223b['previous']?this['_updateController'](_0x20223b['head']):this['_handleSuggestionControllerDelayed'](_0x20223b,!0x1);}),this['listenTo'](_0x4e5047,'suggestionUnloaded',(_0x3122af,_0x4f8789,_0x10bd1f)=>{this['stopListening'](_0x4f8789,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4f8789),this['_suggestionToController']['has'](_0x4f8789)&&this['_destroyController'](_0x4f8789),_0x10bd1f&&this['_updateController'](_0x10bd1f['head']);}),this['listenTo'](_0x4e5047,'suggestionChanged',(_0x36eb93,_0x4b50b0)=>{this['_updateController'](_0x4b50b0);}),this['listenTo'](_0x5f245a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2569ec,'addComment',(_0x4cae29,{threadId:_0x2814e0,isFromAdapter:_0x5df72b})=>{if(_0x5df72b||!_0x4e5047['hasSuggestion'](_0x2814e0))return;const _0x3bc9b3=_0x4e5047['getSuggestion'](_0x2814e0);this['_suggestionToController']['get'](_0x3bc9b3)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4a822c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5ed2ff;for(const _0x108343 in _0x4a822c){const _0x2fa2ae=_0x108343,_0x5d3ae5=_0x4a822c[_0x2fa2ae];if('trackChangesLicenseKeyValid'==_0x5d3ae5||'trackChangesLicenseKeyInvalid'==_0x5d3ae5||'trackChangesLicenseKeyExpired'==_0x5d3ae5||'trackChangesLicenseKeyDomainLimit'==_0x5d3ae5||'trackChangesLicenseKeyNotAllowed'==_0x5d3ae5||'trackChangesLicenseKeyEvaluationLimit'==_0x5d3ae5||'trackChangesLicenseKeyUsageLimit'==_0x5d3ae5){delete _0x4a822c[_0x2fa2ae],_0x5ed2ff=_0x5d3ae5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5ed2ff&&_0x4a822c['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5ed2ff&&_0x4a822c['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5ed2ff&&_0x4a822c['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5ed2ff&&_0x4a822c['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5ed2ff&&_0x4a822c['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5ed2ff&&_0x4a822c['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x2de643){const _0x3a2077=this['_suggestionToController']['get'](_0x2de643);if(!_0x3a2077)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x3a2077['view'])||null;}['getSuggestionForAnnotation'](_0x205ca2){const _0x3fee27=this['_viewToController']['get'](_0x205ca2['innerView']);return _0x3fee27?_0x3fee27['model']:null;}['_refreshActiveMarkers'](){const _0x512844=this['editor']['plugins']['get']('Annotations'),_0x1b9a0b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x534734=Array['from'](_0x512844['activeAnnotations'],_0x2856f9=>_0x2856f9['innerView'])['filter'](_0x98da7d=>this['_viewToController']['has'](_0x98da7d)),_0x2eaa44=[];for(const _0x235942 of _0x534734){const _0x277662=this['_viewToController']['get'](_0x235942)['model']['getAllAdjacentSuggestions']();_0x2eaa44['push'](..._0x277662['reduce']((_0x21ec67,_0xd2ace5)=>[..._0x21ec67,..._0xd2ace5['getMarkerNames']()],[]));}_0x1b9a0b['activeMarkers']=_0x2eaa44;}['_addUIComponentsToFactory'](){const _0x219190=this['editor'],_0x1474cb=_0x219190['locale'],_0x2126a8=o(_0x1474cb,'Track\x20changes'),_0x295ad5=new _0x129ca7([{'type':'switchbutton','model':new _0x39b47f({'withText':!0x0,'isToggleable':!0x0,'label':_0x2126a8,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x39b47f({'withText':!0x0,'label':o(_0x1474cb,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x39b47f({'withText':!0x0,'label':o(_0x1474cb,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x39b47f({'withText':!0x0,'label':o(_0x1474cb,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x39b47f({'withText':!0x0,'label':o(_0x1474cb,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x219190['plugins']['has']('TrackChangesPreview')&&_0x295ad5['addMany']([{'type':'separator'},{'type':'button','model':new _0x39b47f({'withText':!0x0,'label':o(_0x1474cb,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x1ddd33 of _0x295ad5)if(ke(_0x1ddd33)){const _0x11eea2=_0x219190['commands']['get'](_0x1ddd33['model']['commandName']);_0x1ddd33['model']['bind']('isOn','isEnabled')['to'](_0x11eea2,'value','isEnabled');}_0x219190['ui']['componentFactory']['add']('trackChanges',_0x3a96f7=>this['_createToolbarButton'](_0x3a96f7,_0x295ad5,_0x2126a8)),_0x219190['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4ae85e=>this['_createMenuBarMenu'](_0x4ae85e,_0x295ad5,_0x2126a8));}['_createToolbarButton'](_0x1ce676,_0xa60a74,_0x1153f1){const _0x522314=_0x389741(_0x1ce676,_0x26c15b),_0x36be22=this['editor']['commands']['get']('trackChanges');_0x522314['buttonView']['set']({'tooltip':_0x1153f1,'label':_0x1153f1,'icon':_0x3b1e66}),_0x522314['buttonView']['bind']('isOn')['to'](_0x36be22,'value'),_0x522314['buttonView']['on']('execute',()=>{_0x36be22['execute'](),this['editor']['editing']['view']['focus']();}),_0x371943(_0x522314,_0xa60a74,{'role':'menu'});const _0x5c0517=[];for(const _0x4cdd84 of _0xa60a74)ke(_0x4cdd84)&&_0x5c0517['push'](this['editor']['commands']['get'](_0x4cdd84['model']['commandName']));const _0x42aac1=_0x522314['buttonView'];return _0x42aac1['actionView']['unbind']('isEnabled'),_0x42aac1['arrowView']['unbind']('isEnabled'),_0x42aac1['actionView']['bind']('isEnabled')['to'](_0x36be22,'isEnabled'),_0x42aac1['arrowView']['bind']('isEnabled')['toMany'](_0x5c0517,'isEnabled',(..._0x20f1db)=>_0x20f1db['some'](_0x1e1594=>_0x1e1594)),_0x522314['on']('execute',_0x5d9583=>{this['editor']['execute'](_0x5d9583['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x522314;}['_createMenuBarMenu'](_0x431f0c,_0x34a786,_0x2bb03e){const _0x57f4a5=new _0xbe2358(_0x431f0c),_0x3ad6d0=this['editor']['commands']['get']('trackChanges');_0x57f4a5['buttonView']['set']({'label':_0x2bb03e,'icon':_0x3b1e66});const _0xfab4e3=new _0x4bb86(_0x431f0c);for(const _0x3b1707 of _0x34a786){if('separator'==_0x3b1707['type']){_0xfab4e3['items']['add'](new _0x1aee94(_0x431f0c));continue;}const _0x3b412a=new _0x21ec28(_0x431f0c,_0x57f4a5),_0x260547=new _0x2463a3(_0x431f0c),_0x22fec5=_0x3b1707['model'];_0x260547['bind'](...Object['keys'](_0x22fec5))['to'](_0x22fec5),_0x260547['delegate']('execute')['to'](_0x57f4a5),_0x260547['on']('execute',()=>{this['editor']['execute'](_0x22fec5['commandName']),this['editor']['editing']['view']['focus']();}),_0x3b412a['children']['add'](_0x260547),_0xfab4e3['items']['add'](_0x3b412a);}return _0x57f4a5['bind']('isEnabled')['to'](_0x3ad6d0,'isEnabled'),_0x57f4a5['panelView']['children']['add'](_0xfab4e3),_0x57f4a5;}['_initializeController'](_0x4d9450){const _0x331ef9=this['editor'],_0x56c567=_0x331ef9['config'],_0x2672b4=_0x331ef9['plugins']['get']('Annotations'),_0x17e520=_0x331ef9['plugins']['get']('CommentsRepository'),_0x4357af=_0x331ef9['plugins']['get']('EditorAnnotations'),_0x4a2f3a=_0x331ef9['plugins']['get'](_0x1567bc)['me'],_0x503c53=_0x56c567['get']('trackChanges')['SuggestionThreadView'],_0x405e7e=_0x56c567['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2fcd43,CommentThreadInputView:_0x1db89a}=_0x331ef9['plugins']['get']('CommentsUI');let _0x3a994b,_0x9f9f18,_0x10cea8;this['_annotationViews']['has'](_0x4d9450['id'])?(_0x9f9f18=this['_annotationViews']['get'](_0x4d9450['id']),_0x3a994b=_0x9f9f18['mainView']):(_0x3a994b=new _0x503c53(_0x331ef9['locale'],_0x4d9450,_0x4a2f3a,{'disableComments':this['_disableComments'],'editorConfig':{..._0x56c567['get']('comments.editorConfig'),'licenseKey':_0x56c567['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x56c567['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x56c567['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x56c567['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x36fc7b(_0x56c567['get']('locale'),_0x331ef9['locale']),'CommentView':_0x56c567['get']('comments')['CommentView'],'CommentsListView':_0x2fcd43,'CommentThreadInputView':_0x1db89a,'SuggestionView':_0x405e7e}),_0x3a994b['suggestionView']['acceptButton']['on']('execute',()=>{_0x331ef9['editing']['view']['focus']();}),_0x3a994b['suggestionView']['discardButton']['on']('execute',()=>{_0x331ef9['editing']['view']['focus']();}),_0x9f9f18=_0x2672b4['createAnnotationView'](this['editor']['locale'],_0x3a994b),_0x9f9f18['bind']('isDirty')['to'](_0x3a994b,'isDirty'),_0x9f9f18['bind']('length')['to'](_0x3a994b),_0x9f9f18['bind']('type')['to'](_0x3a994b,'type',_0x4e339a=>'suggestion-'+_0x4e339a),_0x3a994b['on']('escape',()=>{_0x10cea8['fire']('escape');}),this['_annotationViews']['set'](_0x4d9450['id'],_0x9f9f18));const _0x4c2931=_0x17e520['createCommentThreadController'](_0x4d9450['commentThread'],_0x3a994b),_0x3bbc15=new pe(_0x331ef9,_0x4d9450,_0x3a994b,_0x4c2931),_0x5ed118=_0x4d9450['getAllAdjacentSuggestions']()['filter'](_0x5455fc=>_0x5455fc['isInContent']);_0x3a994b['descriptionParts']=_0x331ef9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5ed118),this['_suggestionToController']['set'](_0x4d9450,_0x3bbc15),this['_viewToController']['set'](_0x3a994b,_0x3bbc15);const _0x4f6f90=()=>{const _0x38b01d=[],_0x4460c9=_0x4d9450['getAllAdjacentSuggestions']()['filter'](_0x2a0239=>_0x2a0239['isInContent']);for(const _0x3edf89 of _0x4460c9)_0x38b01d['push'](..._0x3edf89['getMarkers']());return _0x1487c6(_0x331ef9['editing'],_0x38b01d);};_0x10cea8=_0x2672b4['createAnnotation']({'view':_0x9f9f18,'target':_0x4f6f90,'type':()=>'suggestion-'+_0x3bbc15['view']['type'],'isVisible':!!_0x4f6f90()}),_0x17e520['_bindAnnotationToEditors'](_0x3a994b,_0x10cea8),_0x2672b4['add'](_0x10cea8),_0x4357af['registerAnnotation'](_0x10cea8);}['_destroyController'](_0x5c681a){const _0x43651a=this['editor']['plugins']['get']('CommentsRepository'),_0x219584=this['editor']['plugins']['get']('Annotations'),_0x5b896c=this['_suggestionToController']['get'](_0x5c681a),_0x4de169=_0x5b896c['view'],_0x16894b=_0x219584['getByInnerView'](_0x4de169);_0x43651a['_unbindEditors'](_0x4de169),_0x16894b&&_0x219584['remove'](_0x16894b),this['_suggestionToController']['delete'](_0x5c681a),this['_viewToController']['delete'](_0x4de169),_0x5b896c['destroy']();}['_updateController'](_0x377903){if(!_0x377903['isInContent']||!this['_suggestionToController']['has'](_0x377903))return;const _0x2a125d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x48146f=this['_suggestionToController']['get'](_0x377903),_0xe6f688=_0x377903['getAllAdjacentSuggestions']();_0x48146f['view']['descriptionParts']=_0x2a125d['descriptionFactory']['getDescriptions'](_0xe6f688);}['destroy'](){for(const _0x59ca3d of this['_suggestionToController']['keys']())this['_destroyController'](_0x59ca3d);for(const _0x2c8997 of this['_annotationViews']['values']())_0x2c8997['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0xf7b714){return'model'in _0xf7b714;}class Ne extends _0x3274cb{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x7eb508){this['editor']['plugins']['get'](d)['adapter']=_0x7eb508;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0xa66961){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0xa66961);}['getSuggestions']({skipNotAttached:_0x5752b1=!0x1,toJSON:_0x59ff4f=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x5752b1,'toJSON':_0x59ff4f});}['getSuggestion'](_0x3b6cd1){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x3b6cd1);}}const p=['Pagination'];class re extends _0x3274cb{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2eae54=this['editor'];if(_0x2eae54['config']['define']('trackChangesData.editorCreator',_0x560736=>{const _0xb14334=_0x2eae54['model']['document']['getRootNames']()['reduce']((_0x3b7b50,_0x23a65f)=>(_0x3b7b50[_0x23a65f]='',_0x3b7b50),{});return _0x2eae54['constructor']['create'](_0xb14334,_0x560736);}),'function'!=typeof _0x2eae54['config']['get']('trackChangesData')['editorCreator'])throw new _0x2557e8('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5b22da){return P(this['editor'],!0x0,_0x5b22da);}['getDataWithDiscardedSuggestions'](_0x16c375){return P(this['editor'],!0x1,_0x16c375);}}class Fe extends _0x3274cb{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x444338){function _0x5dc3a9(_0x2f5c54){return _0x2f5c54['map'](_0x3c034e=>String['fromCharCode'](_0x3c034e))['join']('');}super(_0x444338),this['result']='end',_0x444338[_0x5dc3a9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5dc3a9([0x76,0x69,0x65,0x77])][_0x5dc3a9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5dc3a9([0x61,0x75,0x74,0x6f]),_0x444338[_0x5dc3a9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5dc3a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5dc3a9([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5dc3a9([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5dc3a9([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(_0x4c0b5f){return void 0x0!==_0x4c0b5f['getRootsAttributes'];}async function P(_0x40ff16,_0x127efb,_0x39b9a3){const _0x5546d2=_0x2b1901(_0x40ff16,p);_0x5546d2['plugins']['push'](d,Fe),_0x5546d2['rootsAttributes']=De(_0x40ff16)?_0x40ff16['getRootsAttributes']():void 0x0;const _0x21c032=document['createDocumentFragment'](),_0x5b0374=_0x40ff16['config']['get']('trackChangesData')['editorCreator'],_0x519c00=await _0x5b0374(_0x5546d2,()=>function(_0x12e5b8){const _0x803b56=document['createElement']('div');return _0x12e5b8['appendChild'](_0x803b56),_0x803b56;}(_0x21c032));!function(_0x58a529,_0x2145ae){const _0x1783fa=_0x58a529['model']['document']['getRootNames']()['reduce']((_0x2326d4,_0x5595d3)=>(_0x2326d4[_0x5595d3]=_0x58a529['data']['get']({'rootName':_0x5595d3}),_0x2326d4),{}),_0x297bdb=_0x58a529['plugins']['get']('Users')['users']['map'](_0x54f4c6=>({'id':_0x54f4c6['id'],'name':_0x54f4c6['name']})),_0x4c8387=_0x58a529['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xbe5679=_0x58a529['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x11f138=_0x2145ae['plugins']['get']('Users'),_0x54b166=_0x2145ae['plugins']['get']('TrackChangesEditing'),_0x501268=_0x2145ae['plugins']['get']('CommentsRepository');for(const _0x180997 of _0x501268['getCommentThreads']())_0x180997['remove']();for(const _0x11fb18 of _0x297bdb)_0x11f138['getUser'](_0x11fb18['id'])||_0x11f138['addUser'](_0x11fb18);_0x11f138['me']||_0x11f138['useAnonymousUser']();for(const _0x409c48 of _0xbe5679)_0x501268['addCommentThread'](_0x409c48);for(const _0x6012ca of _0x4c8387)_0x54b166['addSuggestionData'](_0x6012ca);_0x2145ae['data']['set'](_0x1783fa);}(_0x40ff16,_0x519c00),_0x519c00['execute'](_0x127efb?'acceptAllSuggestions':'discardAllSuggestions');const _0x59d2c3=De(_0x519c00)?_0x519c00['getFullData'](_0x39b9a3):_0x519c00['data']['get'](_0x39b9a3);return await _0x519c00['destroy'](),_0x59d2c3;}class Me extends _0x5e1d9e{['options'];constructor(_0x3050eb,_0x29d84b){super(_0x3050eb),this['options']=_0x29d84b,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'](_0x3de5d2,_0x28bfab){if(!this['element'])return;const _0x29cd29=[];for(const [_0x3feda0,_0x324969]of _0x3de5d2){const _0x22aa21=document['createElement']('div');_0x22aa21['setAttribute']('data-ck-root-name',_0x3feda0),_0x22aa21['className']=_0x324969['classes']+'\x20ck-track-changes-preview__root-container',_0x22aa21['innerHTML']=_0x324969['content'],_0x29cd29['push'](_0x22aa21);}_0x28bfab(this['element'],_0x29cd29),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x3a7f40{constructor(_0x4cd783){super(_0x4cd783),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0xd6cb3b=this['editor'],_0x2985b1=_0xd6cb3b['locale'],_0x196d39=_0xd6cb3b['plugins']['get']('Dialog');let _0x40cccf;const _0x3e32a7=function(_0x3644e7){const _0x576ed={};if('editables'in _0x3644e7['ui']['view']){for(const [_0x1faab4,_0x290a67]of Object['entries'](_0x3644e7['ui']['view']['editables']))_0x576ed[_0x1faab4]=_0x290a67['element'];}else _0x576ed[_0x3644e7['model']['document']['getRootNames']()[0x0]]=_0x3644e7['ui']['view']['editable']['element'];return _0x576ed;}(_0xd6cb3b),_0x49d780=function(_0x29ba1f){let _0xea19d=0x0;for(const _0x1a6a41 of Object['values'](_0x29ba1f))_0xea19d=Math['max'](_0xea19d,_0x1a6a41['getBoundingClientRect']()['width']);let _0x960097=0x0;for(const _0x223082 of Object['values'](_0x29ba1f))_0x960097+=_0x223082['getBoundingClientRect']()['height'];const _0x31f534=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3623ee=Math['min'](_0x960097,_0x31f534);return{'width':_0xea19d,'height':_0x3623ee};}(_0x3e32a7);_0x196d39['show']({'id':'finalContentPreview','title':o(_0x2985b1,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x2985b1,{'dialogRects':_0x49d780}),'onHide':()=>{_0x40cccf['detachFromDom']();},'onShow':()=>{_0xd6cb3b['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3f7ba3=>{const _0xa46bfa=this['_standarizeRootsData'](_0x3f7ba3,_0xd6cb3b,_0x3e32a7);_0x196d39['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0xa46bfa,_0xd6cb3b['config']['get']('trackChanges.preview.renderFunction'));}),_0x40cccf=new _0x436014(_0x2985b1,[_0x196d39['view']]),_0x40cccf['attachToDom'](),_0x40cccf['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0xd6cb3b['once']('destroy',()=>{_0x40cccf['detachFromDom']();});const _0x646f1c=_0x196d39['view']['headerView']['class'];_0x196d39['view']['headerView']['class']=_0x646f1c?_0x646f1c+'\x20ck-reset_all':'ck-reset_all',_0x196d39['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x196d39['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1f15bb=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x1a1e91=_0x1f15bb['previewMode'],_0x6067a1={};if('$labels'===_0x1a1e91){for(const _0x1d4727 of _0x1f15bb['getMergeFieldsIds']())_0x6067a1[_0x1d4727]=_0x1f15bb['getLabel'](_0x1d4727)||_0x1d4727;}else{const _0x5514c2='$defaultValues'===_0x1a1e91?_0x1f15bb['getDefaultValues']():_0x1f15bb['getDataSetValues'](_0x1a1e91,!0x0);for(const _0x5451da of Object['entries'](_0x5514c2)){const [_0x40fa49,_0x3c25f5]=_0x5451da;_0x6067a1[_0x40fa49]=null!==_0x3c25f5?_0x3c25f5:_0x1f15bb['getLabel'](_0x40fa49)||_0x40fa49;}}return{'mergeFieldsData':_0x6067a1};}['_standarizeRootsData'](_0x31bd6b,_0x5ef34a,_0x51b185){let _0x59ede2;if('string'==typeof _0x31bd6b){const _0x40954d=_0x5ef34a['model']['document']['getRootNames']()[0x0];_0x59ede2={[_0x40954d]:_0x31bd6b};}else _0x59ede2=_0x31bd6b;const _0x5d9829=this['_fixMediaEmbeds'](_0x59ede2,_0x5ef34a),_0x5c278a=function(_0xa7833c,_0x5f4e38){for(const [_0x26826e,_0xbda5d1]of _0xa7833c)_0xbda5d1['classes']=_0x5f4e38[_0x26826e]['classList']['value']['replace']('ck-focused','');return _0xa7833c;}(this['_sortRoots'](_0x5ef34a)['reduce']((_0x49e1d3,_0x444e6f)=>(_0x49e1d3['push']([_0x444e6f,{'content':_0x5d9829[_0x444e6f],'classes':''}]),_0x49e1d3),[]),_0x51b185);return _0x5c278a;}['_fixMediaEmbeds'](_0xfe9bf1,_0xca37c0){if(!_0xca37c0['plugins']['has']('MediaEmbedEditing'))return _0xfe9bf1;const _0x2e529d=_0xca37c0['plugins']['get']('MediaEmbedEditing');for(const [_0x255a33,_0x1ef3bd]of Object['entries'](_0xfe9bf1)){const _0x1baa0a=document['createElement']('div');_0x1baa0a['innerHTML']=_0x1ef3bd,(_0x1baa0a['querySelectorAll']('figure.media')['forEach'](_0x29a12c=>{const _0x97fca2=_0x29a12c['querySelector']('oembed');if(_0x97fca2){const _0x41b368=_0x97fca2['getAttribute']('url');if(_0x41b368){const _0x2e1605=_0x2e529d['registry']['getMediaViewElement'](new _0x83e009(_0xca37c0['editing']['view']['document']),_0x41b368,{'elementName':'','renderForEditingView':!0x0}),_0x1fea50=document['createElement']('div');_0x1fea50['classList']['add']('ck-media__wrapper'),_0x2e1605['render'](_0x1fea50,_0xca37c0['editing']['view']['domConverter']),_0x97fca2['replaceWith'](_0x1fea50);}}}),_0xfe9bf1[_0x255a33]=_0x1baa0a['innerHTML']);}return _0xfe9bf1;}['_sortRoots'](_0x25fbd3){if(!function(_0x19b9ad){return void 0x0!==_0x19b9ad['getRootsAttributes'];}(_0x25fbd3))return _0x25fbd3['model']['document']['getRootNames']();const _0x539ae8=[],_0x4dc1c4=new Map();for(const _0x212c1c of _0x25fbd3['model']['document']['getRootNames']()){const _0x4f2f12=_0x25fbd3['editing']['view']['getDomRoot'](_0x212c1c)['getClientRects']()['item'](0x0);_0x539ae8['push'](_0x212c1c),_0x4dc1c4['set'](_0x212c1c,_0x4f2f12);}return _0x539ae8['sort']((_0x25abb5,_0x52c8cf)=>{const _0x5a07a1=_0x4dc1c4['get'](_0x25abb5),_0x2f38ba=_0x4dc1c4['get'](_0x52c8cf);return _0x5a07a1['y']-_0x2f38ba['y']||_0x5a07a1['x']-_0x2f38ba['x'];}),_0x539ae8;}}class Ue extends _0x3274cb{static get['requires'](){return[re,_0x48ca18];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4660ad){super(_0x4660ad),_0x4660ad['commands']['add']('previewFinalContent',new te(this['editor'])),_0x4660ad['config']['define']('trackChanges.preview.renderFunction',(_0x302878,_0x6f30a1)=>{for(const _0x3f80f5 of _0x6f30a1)_0x302878['appendChild'](_0x3f80f5);});}}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 _0x2f06c1,Plugin as _0x452242,PendingActions as _0x5a281d}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3fdb7b,ObservableMixin as _0x3cf1a1,uid as _0x3da106,priorities as _0x1a1f89,insertToPriorityArray as _0x459181,logWarning as _0x8196e7,getEnvKeystrokeText as _0x3e17e8,FocusTracker as _0x5a142d,KeystrokeHandler as _0x3d7300,Collection as _0x4de9d4}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x273bcd,IconCancel as _0x14c686,IconTrackChanges as _0x3bf8e9}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x3376c9,View as _0x456a2c,ViewCollection as _0xd7b16e,FocusCycler as _0x417dd8,UIModel as _0x46ef39,createDropdown as _0xecc729,SplitButtonView as _0x368a78,addListToDropdown as _0x8a486,MenuBarMenuView as _0x21810e,MenuBarMenuListView as _0x43d21a,ListSeparatorView as _0x5b1174,MenuBarMenuListItemView as _0x547d1c,MenuBarMenuListItemButtonView as _0x666110,BodyCollection as _0x267ee8,Dialog as _0x23f825}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5123b8,DocumentCompare as _0x3ddfd3,hashObject as _0x6a7a5e,surroundingMarkersDetector as _0x365d21,FOCUS_ANNOTATION_KEYSTROKE as _0x3c83d2,AriaDescriptionView as _0x557dc3,setupThreadKeyboardNavigation as _0x245efb,trimHtml as _0x3f118a,UserView as _0x3a19d5,LateFocusButtonView as _0x232955,getDateTimeFormatter as _0x2d3c76,getAllMarkersDomElementsSorted as _0x5dc1b7,sanitizeEditorConfig as _0x215386}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x3046f4,ModelLiveRange as _0x1506cc,ModelLivePosition as _0x56d8cf,ViewDowncastWriter as _0x33312e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x12ad9b,set as _0x87ddd7,isEqual as _0x21a076,unset as _0x233d23,omit as Pt}from'es-toolkit/compat';import{Delete as _0x526afb,Input as _0x19a581}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x25e692}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x2f252d}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 _0x2f06c1{['_enabledCommands'];constructor(_0xfcdb17,_0x40b90e){super(_0xfcdb17),this['_enabledCommands']=_0x40b90e,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 _0x1f0213 of this['editor']['commands']['commands']())_0x1f0213['affectsData']&&!this['_enabledCommands']['has'](_0x1f0213)&&_0x1f0213['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x32b6c8 of this['editor']['commands']['commands']())_0x32b6c8['affectsData']&&!this['_enabledCommands']['has'](_0x32b6c8)&&_0x32b6c8['clearForceDisabled']('TrackChangesCommand');}}class v extends _0x2f06c1{['_suggestions'];constructor(_0x5ce9ca,_0x229df5){super(_0x5ce9ca),this['_suggestions']=_0x229df5,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x558327){const _0x116e1b=this['_suggestions']['get'](_0x558327);if(!_0x116e1b)throw new _0x3fdb7b('track-changes-accept-suggestion-not-found',this);const _0x18f676=_0x116e1b['getRanges']();this['editor']['model']['canEditAt'](_0x18f676)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x116e1b);}}class D extends _0x2f06c1{['_suggestions'];constructor(_0x2fef6b,_0x303ba8){super(_0x2fef6b),this['_suggestions']=_0x303ba8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x36e444){const _0x2a0c97=this['_suggestions']['get'](_0x36e444);if(!_0x2a0c97)throw new _0x3fdb7b('track-changes-discard-suggestion-not-found',this);const _0x33b7c7=_0x2a0c97['getRanges']();this['editor']['model']['canEditAt'](_0x33b7c7)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2a0c97);}}function ls(_0x1a4fa2,_0x2f9d39){let _0x58a54b='';return _0x58a54b+=_0x1a4fa2['split']('*')['map']((_0x598381,_0x3b1362)=>_0x3b1362%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0x598381)+'</span>':rn(_0x598381))['join'](''),_0x2f9d39&&(_0x58a54b+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2f9d39['value']+'\x22\x20title=\x22'+_0x2f9d39['title']+'\x22></span>'),_0x58a54b;}function rn(_0x3a886e){const _0x58ed39=document['createElement']('span');return _0x58ed39['innerText']=_0x3a886e,_0x58ed39['innerHTML'];}function ts(_0xb67dab){return _0xb67dab['sort']((_0x2fed34,_0x15d321)=>'attribute'===_0x2fed34['type']&&'attribute'!==_0x15d321['type']?-0x1:'attribute'!==_0x2fed34['type']&&'attribute'===_0x15d321['type']?0x1:'deletion'==_0x2fed34['type']&&'deletion'!=_0x15d321['type']?-0x1:'deletion'!=_0x2fed34['type']&&'deletion'==_0x15d321['type']?0x1:0x0);}function to(_0x3f5edd,_0x4cc149){let _0x1d67cf,_0x327a1c=0x0;const _0x36745f=[],_0x102cbd=_0x4cc149['schema'];for(;_0x327a1c<_0x3f5edd['length'];){const _0x3f0ea6=_0x3f5edd[_0x327a1c],_0x1ee605=_0x3f5edd[_0x327a1c+0x1];_0x1d67cf||(_0x1d67cf=_0x4cc149['createPositionBefore'](_0x3f0ea6)),cn(_0x4cc149,_0x3f0ea6,_0x1ee605)||(_0x36745f['push'](_0x4cc149['createRange'](_0x1d67cf,_0x102cbd['isObject'](_0x3f0ea6)?_0x4cc149['createPositionAfter'](_0x3f0ea6):_0x4cc149['createPositionAt'](_0x3f0ea6,'end'))),_0x1d67cf=null),_0x327a1c++;}return _0x36745f;}function cn(_0x34a3dd,_0x6a408a,_0x38c9ea){if(!_0x38c9ea)return!0x1;const _0x4ded64=_0x34a3dd['createPositionAfter'](_0x6a408a),_0x52267d=_0x34a3dd['createPositionBefore'](_0x38c9ea);return _0x4ded64['isTouching'](_0x52267d);}function rs(_0x29aa5c,_0xe7c3b0,_0x547a33){for(;_0x547a33['length'];){const _0x13717e=_0x547a33['splice'](0x0,0x64);_0x29aa5c['change'](()=>{for(const _0x4a4c4c of _0x13717e)_0x4a4c4c['isInContent']&&_0xe7c3b0['execute'](_0x4a4c4c['id']);});}}class B extends _0x2f06c1{['_command'];['_suggestions'];constructor(_0x59c6d4,_0x50f615,_0x33f9b6){super(_0x59c6d4),this['_command']=_0x50f615,this['_suggestions']=_0x33f9b6,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x476692=Array['from'](this['_suggestions']['values']())['some'](_0x2bf609=>_0x2bf609['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x476692;}['execute'](){const _0x162564=ts(Array['from'](this['_suggestions']['values']()));for(const _0xb6a406 of _0x162564){const _0x4900e6=_0xb6a406['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4900e6))return;}rs(this['editor']['model'],this['_command'],_0x162564);}}class O extends _0x2f06c1{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x33db4b,_0x5971c5,_0xd61903){super(_0x33db4b),this['_command']=_0x5971c5,this['_suggestions']=_0xd61903,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xae2807=this['editor']['model']['document']['selection'],_0x3551aa=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4c7c7b,_0x3465fa){const _0x2e0541=Array['from'](_0x4c7c7b['getRanges']()),_0x15586a=new Set();for(const _0x304523 of _0x3465fa)if(_0x304523['isInContent']){for(const _0x4263c3 of _0x2e0541)for(const _0x33a194 of _0x304523['getRanges']())(_0x4263c3['isIntersecting'](_0x33a194)||_0x4c7c7b['isCollapsed']&&!_0x304523['isMultiRange']&&_0x304523['next']&&_0x33a194['end']['isTouching'](_0x4263c3['start']))&&_0x15586a['add'](_0x304523);}return _0x15586a;}(_0xae2807,_0x3551aa),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1b1384=ts(Array['from'](this['_selectedSuggestions']));for(const _0x4d6475 of _0x1b1384){const _0x466cd9=_0x4d6475['getRanges']();if(!this['editor']['model']['canEditAt'](_0x466cd9))return;}rs(this['editor']['model'],this['_command'],_0x1b1384);}}class x extends/* #__PURE__ -- @preserve */
24
+ _0x3cf1a1(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x9ef607,_0x50bccd){super(),this['id']=_0x50bccd['id'],this['type']=_0x50bccd['type'],this['subType']=_0x50bccd['subType']||null,this['author']=_0x50bccd['author'],this['creator']=_0x50bccd['creator']||_0x50bccd['author'],this['isExternal']=Boolean(_0x50bccd['attributes']&&_0x50bccd['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x50bccd['originalSuggestionId']||null,this['_model']=_0x9ef607,this['_onAccept']=_0x50bccd['onAccept'],this['_onDiscard']=_0x50bccd['onDiscard'],this['_onAttributesChange']=_0x50bccd['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x50bccd['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 _0x1089ad=this;for(;_0x1089ad['previous'];)_0x1089ad=_0x1089ad['previous'];return _0x1089ad;}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'](_0x1d11db){this['_markerNames']['add'](_0x1d11db);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2170b3=>this['_model']['markers']['get'](_0x2170b3))['filter'](_0x1b7abb=>_0x1b7abb);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5f2b25=>{for(const _0x56b839 of this['getMarkers']())_0x5f2b25['removeMarker'](_0x56b839);}),this['_markerNames']['clear']();}['removeMarker'](_0x4841cc){this['_model']['change'](_0x4d347a=>{_0x4d347a['removeMarker'](_0x4841cc);}),this['_markerNames']['delete'](_0x4841cc);}['addRange'](_0x7ed7b5){const _0xa8930='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0xa8930),this['_model']['change'](_0x4bdd77=>{_0x4bdd77['addMarker'](_0xa8930,{'range':_0x7ed7b5,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4d12d3){for(const _0x41eda8 of this['getRanges']())if(_0x41eda8['isIntersecting'](_0x4d12d3))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3dfa76=>_0x3dfa76['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x29ba16,_0x676c40)=>[..._0x29ba16,..._0x676c40['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1675f6=this['getRanges']();if(0x1!=_0x1675f6['length'])return null;const _0x3cf9eb=_0x1675f6[0x0],_0x4d8be1=_0x3cf9eb['start']['nodeAfter'],_0x49b7f2=_0x3cf9eb['end']['nodeBefore'];return _0x4d8be1 instanceof _0x3046f4?_0x4d8be1!=_0x49b7f2?null:_0x4d8be1: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 _0x19ff5b=[];let _0x929979=this['head'];for(;_0x929979;)_0x19ff5b['push'](_0x929979),_0x929979=_0x929979['next'];return _0x19ff5b;}['setAttribute'](_0x78cca5,_0x4ed10e){const _0x5862c6=_0x12ad9b(this['attributes']);_0x87ddd7(_0x5862c6,_0x78cca5,_0x4ed10e),_0x21a076(_0x5862c6,this['attributes'])||(this['attributes']=_0x5862c6,this['_onAttributesChange'](_0x5862c6));}['removeAttribute'](_0x2d6831){const _0x131db8=_0x12ad9b(this['attributes']);_0x233d23(_0x131db8,_0x2d6831),_0x21a076(_0x131db8,this['attributes'])||(this['attributes']=_0x131db8,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 _0x3da106()['substr'](0x1,0x5);}}function o(_0x4685ba,_0x5abc78,_0x1c4ce5){const _0xbe8eec=_0x4685ba['t'],t=_0x4685ba['t'];switch(_0x5abc78){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',_0x1c4ce5);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1c4ce5);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1c4ce5);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1c4ce5);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1c4ce5);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',_0x1c4ce5);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1c4ce5);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',_0x1c4ce5);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1c4ce5);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1c4ce5);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1c4ce5);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1c4ce5);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1c4ce5);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1c4ce5);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1c4ce5);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1c4ce5);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1c4ce5);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1c4ce5);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1c4ce5);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1c4ce5);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1c4ce5);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1c4ce5);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1c4ce5);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1c4ce5);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x1c4ce5);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'},_0x1c4ce5);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x1c4ce5);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x1c4ce5);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1c4ce5);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1c4ce5);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1c4ce5);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1c4ce5);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1c4ce5);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'},_0x1c4ce5);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1c4ce5);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1c4ce5);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1c4ce5);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1c4ce5);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'},_0x1c4ce5);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1c4ce5);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'},_0x1c4ce5);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_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});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'},_0x1c4ce5);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1c4ce5);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'},_0x1c4ce5);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1c4ce5);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'},_0x1c4ce5);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1c4ce5);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x1c4ce5);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x1c4ce5);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x1c4ce5);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1c4ce5);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'},_0x1c4ce5);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1c4ce5);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 _0xbe8eec({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1c4ce5);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0xbe8eec({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1c4ce5);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1c4ce5);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'},_0x1c4ce5);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'},_0x1c4ce5);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'},_0x1c4ce5);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5abc78;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x56f1f1,_0x50e825){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x56f1f1,this['_locale']=_0x50e825;}['getDescriptions'](_0x3af43f){const _0x283e2f=[],_0xbd3970=new Set(),_0x235adc=new Set();for(let _0x37138d=0x0;_0x37138d<_0x3af43f['length'];_0x37138d++){const _0x3f44d1=_0x3af43f[_0x37138d];if(!_0x3f44d1['isInContent'])continue;const _0x4cb758=this['_handleCustomCallbackDescription'](_0x3f44d1);if(_0x4cb758){if(null!=_0x3f44d1['subType']){if(_0xbd3970['has'](_0x3f44d1['subType']))continue;_0xbd3970['add'](_0x3f44d1['subType']);}_0x283e2f['push'](_0x4cb758);}else{if('attribute'==_0x3f44d1['type']){const _0x24418e=_0x3f44d1['data']['key'];if(_0x235adc['has'](_0x24418e))continue;_0x235adc['add'](_0x3f44d1['data']['key']),_0x24418e==m?this['_handleRenameSuggestionDescription'](_0x283e2f,_0x3f44d1):this['_handleAttributeSuggestionDescription'](_0x283e2f,_0x3f44d1);continue;}'insertion'!=_0x3f44d1['type']&&'deletion'!=_0x3f44d1['type']||this['_handleInsertRemoveSuggestionDescription'](_0x283e2f,_0x3f44d1,_0x3af43f[_0x37138d+0x1]);}}return this['_resolveDescriptionItems'](_0x283e2f);}['registerDescriptionCallback'](_0x3da6e1){this['_customCallbacks']['push'](_0x3da6e1);}['registerElementLabel'](_0x2fcaa8,_0x15f181,_0x574abd=_0x1a1f89['normal']){'function'==typeof _0x2fcaa8?_0x459181(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2fcaa8,'label':_0x15f181,'priority':_0x574abd}):this['_itemLabels']['set'](_0x2fcaa8,_0x15f181);}['registerAttributeLabel'](_0x529c64,_0xb69eb5){this['_attributeLabels']['set'](_0x529c64,_0xb69eb5);}['getItemLabel'](_0x9b998f,_0x34ba6b=0x1){let _0x37766a;for(const _0x2e6b7a of this['_itemLabelsCallbacks'])if(_0x2e6b7a['matchingCallback'](_0x9b998f)){_0x37766a=_0x2e6b7a['label'];break;}return _0x37766a||(_0x37766a=this['_itemLabels']['get'](_0x9b998f['name'])),_0x37766a?_0x37766a(_0x34ba6b):0x1!==_0x34ba6b?_0x34ba6b+'\x20'+_0x9b998f['name']+'s':''+_0x9b998f['name'];}['_addDescriptionItems'](_0x115a77,_0xa6866d){const _0x3b8135=_0xa6866d['getFirstRange']()['getWalker'](),_0x9407d6='insertion'==_0xa6866d['type']?'add':'remove';for(const _0x3944c2 of _0x3b8135){const _0x40ab28=_0x3944c2['item'],_0x3c07fc=_0x115a77[_0x115a77['length']-0x1];if(_0x40ab28['is']('$textProxy'))_0x3c07fc&&_0x3c07fc['type']['indexOf']('Container')>-0x1&&_0x115a77['pop'](),_0x3c07fc&&'text'==_0x3c07fc['type']?_0x3c07fc[_0x9407d6]+=_0x40ab28['data']:_0x115a77['push']({'type':'text','add':'add'==_0x9407d6?_0x40ab28['data']:'','remove':'remove'==_0x9407d6?_0x40ab28['data']:''});else{if(this['_schema']['isObject'](_0x40ab28)){const _0x1fe3e5=_0x40ab28;if(_0x3c07fc&&_0x3c07fc['type']['indexOf']('Container')>-0x1&&_0x115a77['pop'](),'elementEnd'==_0x3944c2['type'])continue;_0x3c07fc&&_0x3c07fc['type']==_0x9407d6+'Object'&&_0x3c07fc['element']['name']==_0x1fe3e5['name']?_0x3c07fc['quantity']++:_0x115a77['push']({'type':_0x9407d6+'Object','element':_0x1fe3e5,'quantity':0x1}),_0x3b8135['skip'](_0x5a78af=>!('elementEnd'==_0x5a78af['type']&&_0x5a78af['item']==_0x40ab28));}else{if(this['_schema']['checkChild'](_0x40ab28,'$text')||_0x40ab28['is']('element','softBreak')){const _0x22385b=_0x40ab28;if('add'==_0x9407d6&&'elementStart'==_0x3944c2['type']||'remove'==_0x9407d6&&'elementEnd'==_0x3944c2['type'])continue;if(_0x3c07fc&&-0x1==_0x3c07fc['type']['indexOf']('Container')){'text'==_0x3c07fc['type']&&(_0x3c07fc[_0x9407d6]+='\x0a');continue;}let _0x74dc2d;if(_0x74dc2d='add'==_0x9407d6?_0x22385b['nextSibling']&&!this['_schema']['isObject'](_0x22385b['nextSibling'])?_0x22385b['nextSibling']:null:_0x22385b['previousSibling']&&!this['_schema']['isObject'](_0x22385b['previousSibling'])?_0x22385b['previousSibling']:null,_0x22385b['isEmpty']||_0x74dc2d&&_0x74dc2d['isEmpty']){const _0x171c3d=_0x74dc2d&&_0x74dc2d['isEmpty']?_0x74dc2d:_0x22385b;_0x3c07fc&&_0x3c07fc['type']==_0x9407d6+'EmptyContainer'&&_0x3c07fc['element']['name']==_0x171c3d['name']?_0x3c07fc['quantity']++:_0x115a77['push']({'type':_0x9407d6+'EmptyContainer','element':_0x171c3d,'quantity':0x1});}else _0x115a77['push']({'type':_0x9407d6+'Container','element':_0x22385b});}}}}}['_resolveDescriptionItems'](_0x196b61){const _0x585a24=this['_locale'],_0x556d6e=[],_0xe40ebe=[],_0x136ba4=[];for(const _0x552a57 of _0x196b61)switch(_0x552a57['type']){case'text':if(_0x552a57['add']=_0x552a57['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x552a57['remove']=_0x552a57['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x552a57['add']&&''!=_0x552a57['remove']){_0x556d6e['push']({'type':'replace','content':o(_0x585a24,'REPLACE_TEXT',['\x22'+_0x552a57['remove']+'\x22','\x22'+_0x552a57['add']+'\x22'])});continue;}if(null!=_0x552a57['add']['match'](/^ +$/)){_0x556d6e['push']({'type':'insertion','content':o(_0x585a24,'*Insert:*\x20%0',o(_0x585a24,'ELEMENT_SPACE',_0x552a57['add']['length']))});continue;}if(null!=_0x552a57['remove']['match'](/^ +$/)){_0x556d6e['push']({'type':'deletion','content':o(_0x585a24,'*Remove:*\x20%0',o(_0x585a24,'ELEMENT_SPACE',_0x552a57['remove']['length']))});continue;}if(''!=_0x552a57['add']){_0x556d6e['push']({'type':'insertion','content':o(_0x585a24,'*Insert:*\x20%0','\x22'+_0x552a57['add']+'\x22')});continue;}_0x556d6e['push']({'type':'deletion','content':o(_0x585a24,'*Remove:*\x20%0','\x22'+_0x552a57['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x556d6e['push']({'type':'insertion','content':o(_0x585a24,'*Insert:*\x20%0',this['getItemLabel'](_0x552a57['element'],_0x552a57['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x556d6e['push']({'type':'deletion','content':o(_0x585a24,'*Remove:*\x20%0',this['getItemLabel'](_0x552a57['element'],_0x552a57['quantity']))});continue;case'addContainer':_0x556d6e['push']({'type':'insertion','content':o(_0x585a24,'*Split:*\x20%0',this['getItemLabel'](_0x552a57['element'],_0x552a57['quantity']))});continue;case'removeContainer':_0x556d6e['push']({'type':'deletion','content':o(_0x585a24,'*Merge:*\x20%0',this['getItemLabel'](_0x552a57['element'],_0x552a57['quantity']))});continue;case'addFormat':_0xe40ebe['push'](_0x552a57['key']);continue;case'removeFormat':_0x136ba4['push'](_0x552a57['key']);continue;default:_0x556d6e['push'](_0x552a57);}if(_0xe40ebe['length']){const _0xba0723=_0xe40ebe['map'](_0x336502=>this['_attributeLabels']['has'](_0x336502)?this['_attributeLabels']['get'](_0x336502):_0x336502)['join'](',\x20');_0x556d6e['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xba0723)});}if(_0x136ba4['length']){const _0x242b93=_0x136ba4['map'](_0x13131e=>this['_attributeLabels']['has'](_0x13131e)?this['_attributeLabels']['get'](_0x13131e):_0x13131e)['join'](',\x20');_0x556d6e['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x242b93)});}return _0x556d6e;}['_handleCustomCallbackDescription'](_0x39f639){for(const _0x2b2843 of this['_customCallbacks']){const _0x14693f=_0x2b2843(_0x39f639);if(_0x14693f&&'type'in _0x14693f)return _0x14693f;}}['_handleAttributeSuggestionDescription'](_0x47022d,_0x151391){const _0x262b82=_0x151391['data'],_0x314520=void 0x0===_0x262b82['newValue']?'removeFormat':'addFormat';_0x47022d['push']({'type':_0x314520,'key':_0x262b82['key']});}['_handleRenameSuggestionDescription'](_0x34b0d8,_0x576a4f){_0x34b0d8['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x576a4f['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x419fc7,_0x2e3e4d,_0x5acf57){if(this['_addDescriptionItems'](_0x419fc7,_0x2e3e4d),_0x5acf57&&_0x5acf57['getFirstRange']()&&!_0x2e3e4d['getFirstRange']()['end']['isEqual'](_0x5acf57['getFirstRange']()['start'])){const _0x133c63=_0x419fc7[_0x419fc7['length']-0x1],_0x28d65f='insertion'==_0x2e3e4d['type']?'add':'remove';_0x133c63&&'text'==_0x133c63['type']&&(_0x133c63[_0x28d65f]+='\x0a');}}}class R extends _0x452242{['afterInit'](){const _0x1d475e=this['editor'],_0x318264=_0x1d475e['plugins']['get']('TrackChangesEditing');_0x1d475e['commands']['get']('showAIAssistant')&&_0x318264['enableCommand']('showAIAssistant');}}class T extends _0x452242{['afterInit'](){const _0x5ac1a5=this['editor'],_0x4d9f4e=_0x5ac1a5['plugins']['get']('TrackChangesEditing');_0x5ac1a5['commands']['get']('toggleAi')&&_0x4d9f4e['enableCommand']('toggleAi');}}class E extends _0x452242{['afterInit'](){const _0x1d3dc6=this['editor'],_0x239162=_0x1d3dc6['plugins']['get']('TrackChangesEditing');_0x1d3dc6['commands']['get']('aiQuickAction')&&_0x239162['enableCommand']('aiQuickAction');}}class U extends _0x452242{['afterInit'](){const _0x32d1d7=this['editor'],_0x28ce46=_0x32d1d7['locale'];if(!_0x32d1d7['plugins']['has']('AlignmentEditing'))return;const _0x53dfb2=_0x32d1d7['plugins']['get']('TrackChangesEditing');_0x53dfb2['enableDefaultAttributesIntegration']('alignment'),_0x53dfb2['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x28ce46,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x348e47=this['editor'],_0x1b3f58=_0x348e47['locale'];_0x348e47['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x222eae=>{if('formatBlock'!=_0x222eae['type'])return;const {data:_0x1c5e7e}=_0x222eae;if(_0x1c5e7e&&'alignment'==_0x1c5e7e['commandName']){const _0xc69183=_0x1c5e7e['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1b3f58,'*Format:*\x20%0',function(_0x54784a){switch(_0x54784a){case'left':return o(_0x1b3f58,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1b3f58,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1b3f58,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1b3f58,'FORMAT_JUSTIFY_TEXT');}}(_0xc69183))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x452242{['afterInit'](){const _0x1dbadb=this['editor'],_0x1088bc=_0x1dbadb['plugins']['get']('TrackChangesEditing'),_0x5618de=_0x1dbadb['locale'];for(const _0x297ee5 of ti){if(!_0x1dbadb['plugins']['has'](_0x297ee5))continue;const _0x44a02b=_0x297ee5['slice'](0x0,-0x7)['toLowerCase'](),_0x48a1cf='FORMAT_'+_0x44a02b['toUpperCase']();_0x1088bc['enableDefaultAttributesIntegration'](_0x44a02b),_0x1088bc['descriptionFactory']['registerAttributeLabel'](_0x44a02b,o(_0x5618de,_0x48a1cf));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ad83e=this['editor'],_0x160e33=_0x3ad83e['locale'],_0x264e03=_0x3ad83e['plugins']['get']('TrackChangesEditing');function _0x47dc71(_0x1589b8,_0x555815){_0x264e03['descriptionFactory']['registerDescriptionCallback'](_0xbf95ca=>{if('formatInline'!=_0xbf95ca['type'])return;const {data:_0x56c76e}=_0xbf95ca;return _0x56c76e&&_0x56c76e['commandName']===_0x1589b8?_0x56c76e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x160e33,'*Format:*\x20%0',_0x555815)}:{'type':'format','content':o(_0x160e33,'*Remove\x20format:*\x20%0',_0x555815)}:void 0x0;});}_0x47dc71('bold',o(_0x160e33,'FORMAT_BOLD')),_0x47dc71('italic',o(_0x160e33,'FORMAT_ITALIC')),_0x47dc71('underline',o(_0x160e33,'FORMAT_UNDERLINE')),_0x47dc71('code',o(_0x160e33,'FORMAT_CODE')),_0x47dc71('strikethrough',o(_0x160e33,'FORMAT_STRIKETHROUGH')),_0x47dc71('subscript',o(_0x160e33,'FORMAT_SUBSCRIPT')),_0x47dc71('superscript',o(_0x160e33,'FORMAT_SUPERSCRIPT'));}}class F extends _0x452242{['afterInit'](){const _0x473574=this['editor'],_0xdd4028=_0x473574['locale'];if(!_0x473574['plugins']['has']('BlockQuoteEditing'))return;const _0x35d7e4=_0x473574['plugins']['get']('TrackChangesEditing'),_0x184501=this['editor']['commands']['get']('blockQuote');_0x35d7e4['enableCommand']('blockQuote',(_0x2ce117,_0x37a8ef={})=>{const _0x180e29=this['editor']['model']['document']['selection'],_0x516ee4=_0x37a8ef&&void 0x0!==_0x37a8ef['forceValue']?_0x37a8ef['forceValue']:!_0x184501['value'];let _0x4c935c=[];if(_0x516ee4){const _0x18dd2b=Array['from'](_0x180e29['getSelectedBlocks']())['filter'](_0xe207e=>oo(_0xe207e)||function(_0x1a1e74,_0x4968fe){const _0x3ec0d5=_0x4968fe['checkChild'](_0x1a1e74['parent'],'blockQuote'),_0x2f2c05=_0x4968fe['checkChild'](['$root','blockQuote'],_0x1a1e74);return _0x3ec0d5&&_0x2f2c05;}(_0xe207e,this['editor']['model']['schema']));_0x4c935c=to(_0x18dd2b,_0x473574['model']);}else{const _0x1187aa=Array['from'](_0x180e29['getSelectedBlocks']())['filter'](_0x2e63bd=>oo(_0x2e63bd));_0x4c935c=to(_0x1187aa,_0x473574['model']);}_0x473574['model']['change'](()=>{for(const _0x76aab3 of _0x4c935c)_0x35d7e4['markBlockFormat'](_0x76aab3,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x516ee4}]});});}),_0x35d7e4['descriptionFactory']['registerDescriptionCallback'](_0x2010eb=>{const {data:_0x7c0316}=_0x2010eb;if(_0x7c0316&&'blockQuote'==_0x7c0316['commandName']){const _0x4d476c=o(_0xdd4028,'ELEMENT_BLOCK_QUOTE');return _0x7c0316['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xdd4028,'*Set\x20format:*\x20%0',_0x4d476c)}:{'type':'format','content':o(_0xdd4028,'*Remove\x20format:*\x20%0',_0x4d476c)};}});}}function oo(_0x3f4dc0){return'blockQuote'==_0x3f4dc0['parent']['name'];}class G extends _0x452242{['afterInit'](){const _0x8effc1=this['editor'],_0x29ce1c=_0x8effc1['locale'],_0x20b4f2=_0x8effc1['plugins']['get']('TrackChangesEditing');_0x8effc1['plugins']['has']('BookmarkEditing')&&(_0x20b4f2['enableCommand']('insertBookmark'),_0x20b4f2['enableDefaultAttributesIntegration']('updateBookmark'),_0x20b4f2['descriptionFactory']['registerDescriptionCallback'](_0x2b71c3=>{if('insertion'!=_0x2b71c3['type']&&'deletion'!=_0x2b71c3['type']&&'attribute'!=_0x2b71c3['type'])return;const _0x541aa9=_0x2b71c3['getContainedElement']();if(null==_0x541aa9)return;if(!_0x541aa9['is']('element','bookmark'))return;const _0x18310d=_0x541aa9['getAttribute']('bookmarkId');if('insertion'==_0x2b71c3['type'])return{'type':'insertion','content':o(_0x29ce1c,'*Insert:*\x20%0','\x22'+_0x18310d+'\x22\x20'+o(_0x29ce1c,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2b71c3['type'])return{'type':'deletion','content':o(_0x29ce1c,'*Remove:*\x20%0','\x22'+_0x18310d+'\x22\x20'+o(_0x29ce1c,'ELEMENT_BOOKMARK'))};const {data:_0x23c2ea}=_0x2b71c3;if(!_0x23c2ea||'bookmarkId'!=_0x23c2ea['key'])return;return{'type':'format','content':o(_0x29ce1c,'*Set\x20bookmark:*\x20%0','\x22'+_0x23c2ea['newValue']+'\x22')};}));}}class L extends _0x452242{['afterInit'](){const _0x5ecb28=this['editor'];_0x5ecb28['plugins']['has']('CaseChange')&&(_0x5ecb28['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5ecb28['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5ecb28['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x452242{['afterInit'](){const _0x2bc036=this['editor'];_0x2bc036['commands']['get']('ckbox')&&_0x2bc036['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x452242{['afterInit'](){const _0x424b95=this['editor'];if(!_0x424b95['plugins']['has']('CodeBlock'))return;const _0x46f09b=_0x424b95['plugins']['get']('TrackChangesEditing'),_0x417f37=_0x424b95['locale'],_0x3d9663=_0x424b95['config']['get']('codeBlock')['languages'],_0xc4a41f=_0x424b95['commands']['get']('codeBlock');_0x46f09b['enableCommand']('indentCodeBlock'),_0x46f09b['enableCommand']('outdentCodeBlock'),_0x46f09b['enableCommand']('codeBlock',(_0x2e36e9,_0x4bc546={})=>{const _0x444267=_0x424b95['model'],_0x53d363=_0x424b95['model']['document']['selection'],_0x557c3f=_0x4bc546&&void 0x0!==_0x4bc546['forceValue']?_0x4bc546['forceValue']:!_0xc4a41f['value'];let _0x1e25b8;_0x4bc546['language']||(_0x4bc546['language']=_0x3d9663[0x0]['language']),_0x1e25b8=_0x557c3f?Array['from'](_0x53d363['getSelectedBlocks']())['filter'](_0x1891a8=>co(_0x1891a8)||function(_0x534939,_0x15897f){if(_0x534939['is']('rootElement')||_0x15897f['isLimit'](_0x534939))return!0x1;return _0x15897f['checkChild'](_0x534939['parent'],'codeBlock');}(_0x1891a8,_0x444267['schema'])):Array['from'](_0x53d363['getSelectedBlocks']())['filter'](_0x233b99=>co(_0x233b99));const _0x404dc6=to(_0x1e25b8,_0x444267);_0x444267['change'](()=>{for(const _0x166c28 of _0x404dc6)_0x46f09b['markBlockFormat'](_0x166c28,{'commandName':'codeBlock','commandParams':[{..._0x4bc546,'forceValue':_0x557c3f}],'formatGroupId':'blockName'});});}),(_0x46f09b['descriptionFactory']['registerElementLabel']('codeBlock',_0x3b49e7=>o(_0x417f37,'ELEMENT_CODE_BLOCK',_0x3b49e7)),_0x46f09b['descriptionFactory']['registerDescriptionCallback'](_0x4c60d0=>{if('formatBlock'!=_0x4c60d0['type'])return;const _0x386a1f=_0x417f37['t'],{data:_0x26366e}=_0x4c60d0;if(!_0x26366e||'codeBlock'!=_0x26366e['commandName'])return;const _0x126542=_0x26366e['commandParams'][0x0]['language'],_0x33325d=_0x386a1f(_0x3d9663['find'](_0x167602=>_0x167602['language']===_0x126542)['label'])['toLowerCase']();return _0x26366e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x417f37,'*Set\x20format:*\x20%0',o(_0x417f37,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x33325d+')')}:{'type':'format','content':o(_0x417f37,'*Remove\x20format:*\x20%0',o(_0x417f37,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x4e58ad){return'codeBlock'==_0x4e58ad['name'];}class z extends _0x452242{['afterInit'](){const _0x1bc333=this['editor'];if(!_0x1bc333['plugins']['has']('CommentsEditing'))return;_0x1bc333['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x452242{static get['requires'](){return[_0x526afb];}['init'](){const _0x5c05e2=this['editor'],_0x2a0fb6=_0x5c05e2['plugins']['get']('TrackChangesEditing');_0x2a0fb6['enableCommand']('delete');const _0x3164d4=_0x5c05e2['commands']['get']('deleteForward');_0x2a0fb6['enableCommand']('deleteForward',(_0x44f09b,_0x4e9bf1={})=>{const _0x5a9af6=_0x5c05e2['model']['createSelection'](_0x5c05e2['model']['document']['selection']);_0x5a9af6['isCollapsed']&&_0x5c05e2['model']['modifySelection'](_0x5a9af6,{'direction':'forward','unit':_0x4e9bf1['unit']});const _0x24e2dc=_0x5a9af6['getFirstRange'](),_0x196c55=_0x1506cc['fromRange'](_0x24e2dc);let _0x30254e;_0x44f09b(_0x4e9bf1),_0x30254e='$graveyard'==_0x196c55['root']['rootName']?_0x5c05e2['model']['createRange'](_0x24e2dc['start']):_0x5c05e2['model']['createRange'](_0x196c55['start'],_0x196c55['end']),_0x196c55['detach'](),_0x5c05e2['model']['enqueueChange'](_0x3164d4['buffer']['batch'],_0x28dbe1=>{_0x3164d4['buffer']['lock'](),_0x28dbe1['setSelection'](_0x28dbe1['createRange'](_0x30254e['end'])),_0x3164d4['buffer']['unlock']();});});}}class W extends _0x452242{['afterInit'](){const _0x291676=this['editor'];if(!_0x291676['plugins']['has']('ListEditing'))return;const _0x1b0837=_0x291676['locale'],_0x49da49=_0x291676['plugins']['get']('TrackChangesEditing'),_0xc9c4ce=_0x291676['plugins']['has']('TodoListEditing'),_0x1d0946=!!_0x291676['config']['get']('list.multiBlock');function _0x1a2c19(_0x4466ca){return{'type':'format','content':''+o(_0x1b0837,'*Set\x20format:*\x20%0',_0x4466ca)};}function _0x14a3b5(_0x4afbaa){return{'type':'format','content':''+o(_0x1b0837,'*Remove\x20format:*\x20%0',_0x4afbaa)};}_0x49da49['enableDefaultAttributesIntegration']('numberedList'),_0x49da49['enableDefaultAttributesIntegration']('bulletedList'),_0x49da49['enableDefaultAttributesIntegration']('customNumberedList'),_0x49da49['enableDefaultAttributesIntegration']('customBulletedList'),_0x49da49['enableDefaultAttributesIntegration']('indentList'),_0x49da49['enableDefaultAttributesIntegration']('outdentList'),_0x49da49['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x49da49['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1d0946&&(_0x49da49['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x49da49['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xc9c4ce&&(_0x49da49['enableDefaultAttributesIntegration']('todoList'),_0x49da49['enableDefaultAttributesIntegration']('checkTodoList'),_0x49da49['descriptionFactory']['registerDescriptionCallback'](_0x414f0a=>{const {data:_0x3ceb03}=_0x414f0a;if(_0x3ceb03&&'todoListChecked'==_0x3ceb03['key'])return{'type':'format','content':_0x3ceb03['newValue']?o(_0x1b0837,'*Check\x20item*'):o(_0x1b0837,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x410420=>{if(_0x410420['batch']['isUndo'])return!0x1;let _0x18c441=!0x1;const _0x59ad6d=_0x49da49['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xd0d4b7=>'todoListChecked'===_0x49da49['_getAttributeKey'](_0xd0d4b7));for(const _0x54045c of _0x59ad6d){'todo'!=_0x54045c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x49da49['_findSuggestions'](_0x54045c['getFirstRange'](),'attribute')['find'](_0x332949=>'listType'===_0x49da49['_getAttributeKey'](_0x332949['suggestion']))||(_0x410420['removeMarker'](_0x54045c['getFirstMarker']()),_0x18c441=!0x0));}return _0x18c441;})),_0x49da49['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1b0837,'FORMAT_INDENT'));const _0x77dd92={'type':'format','content':''};_0x49da49['descriptionFactory']['registerDescriptionCallback'](_0x73000c=>{const {data:_0x720ec1}=_0x73000c;if(!_0x720ec1||'listType'!=_0x720ec1['key'])return;let _0x5dd3f5=_0x73000c['head'];for(;_0x5dd3f5;){if(_0x5dd3f5['data']&&(('listStyle'==_0x5dd3f5['data']['key']||'listMarkerStyle'==_0x5dd3f5['data']['key'])&&(_0x5dd3f5['data']['newValue']&&'default'!=_0x5dd3f5['data']['newValue']||'default'!=_0x5dd3f5['data']['oldValue']&&!_0x720ec1['newValue'])||!_0x1d0946&&_0x5dd3f5['data']['key']==m))return _0x77dd92;_0x5dd3f5=_0x5dd3f5['next'];}if(null==_0x720ec1['newValue'])switch(_0x720ec1['oldValue']){case'bulleted':return _0x14a3b5(o(_0x1b0837,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x14a3b5(o(_0x1b0837,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x14a3b5(o(_0x1b0837,'ELEMENT_TODO_LIST'));}switch(_0x720ec1['newValue']){case'bulleted':return _0x1a2c19(o(_0x1b0837,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1a2c19(o(_0x1b0837,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1a2c19(o(_0x1b0837,'ELEMENT_TODO_LIST'));}}),_0x49da49['descriptionFactory']['registerDescriptionCallback'](_0x5d2efb=>{const {data:_0x48965a}=_0x5d2efb;if(_0x48965a&&'listIndent'==_0x48965a['key'])return null==_0x48965a['newValue']||null==_0x48965a['oldValue']&&0x0==_0x48965a['newValue']?_0x77dd92:void 0x0;}),_0x49da49['descriptionFactory']['registerDescriptionCallback'](_0x335225=>{if('attribute'!=_0x335225['type'])return;const {data:_0x4042f9}=_0x335225;if(!_0x4042f9||'listItemId'!=_0x4042f9['key'])return;const _0x50bbf3=Te(_0x335225);return'newValue'==_0x50bbf3?{'type':'format','content':o(_0x1b0837,'*Merge:*\x20list\x20item')}:'oldValue'==_0x50bbf3?{'type':'format','content':o(_0x1b0837,'*Split:*\x20list\x20item')}:_0x77dd92;}),_0x291676['model']['document']['registerPostFixer'](_0x2835a3=>this['listItemIdFixer'](_0x2835a3)),_0x291676['model']['document']['registerPostFixer'](_0x53c47c=>this['noTrackChangesFixer'](_0x53c47c)),_0x291676['model']['document']['on']('change:data',(_0x536979,_0x6841ac)=>{if(_0x6841ac['isUndo']||!_0x6841ac['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3ff609){if(_0x3ff609['batch']['isUndo']||!_0x3ff609['batch']['isLocal'])return!0x1;let _0x1c6b9f=!0x1;const _0x1550fb=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4c0c62=>_0x4c0c62['data']&&'listItemId'==_0x4c0c62['data']['key'])['filter'](_0x408655=>_0x408655['data']['newValue']&&_0x408655['data']['oldValue']);for(const _0x27561a of _0x1550fb)Te(_0x27561a)||(_0x3ff609['removeMarker'](_0x27561a['getFirstMarker']()),_0x1c6b9f=!0x0);return _0x1c6b9f;}['noTrackChangesFixer'](_0x213eab){if(_0x213eab['batch']['isUndo']||!_0x213eab['batch']['isLocal'])return!0x1;const _0x2a52dc=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2a52dc['trackChangesCommand']['value'])return!0x1;let _0x45f89a=!0x1;const _0x34bccb=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2b2e4b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5a3c38=>'attribute'==_0x5a3c38['type'])['filter'](_0x3a9c9b=>_0x34bccb['includes'](_0x3a9c9b['attributeKey']));if(0x0==_0x2b2e4b['length'])return _0x45f89a;for(const _0x5dac20 of _0x2b2e4b){const _0x18c6f3=_0x2a52dc['_findSuggestions'](_0x5dac20['range'],'attribute')['filter'](_0x224f69=>!_0x224f69['meta']['isNextTo'])['map'](_0xfc4bd1=>_0xfc4bd1['suggestion'])['filter'](_0x5a8678=>{const _0x467bd9=_0x2a52dc['_getAttributeKey'](_0x5a8678);return _0x34bccb['includes'](_0x467bd9);});if(_0x18c6f3['length']){for(const _0x40b7b9 of _0x18c6f3)_0x213eab['removeMarker'](_0x40b7b9['getFirstMarker']());_0x45f89a=!0x0;}}return _0x45f89a;}['assureChains'](){const _0x35051f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55db8c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xde7f64;const _0x14aad5=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x21e263=>{if(_0x21e263['data']['oldRange']||!_0x21e263['data']['newRange'])return null;if(!_0x21e263['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2e2d52}=_0x35051f['_splitMarkerName'](_0x21e263['name']);if(!_0x35051f['hasSuggestion'](_0x2e2d52))return null;const _0x2617b9=_0x35051f['getSuggestion'](_0x2e2d52);return _0x55db8c['includes'](_0x2617b9['data']['key']);})['map'](_0x4ec8e7=>{const {id:_0x2025b1}=_0x35051f['_splitMarkerName'](_0x4ec8e7['name']),_0x19c2a1=_0x35051f['getSuggestion'](_0x2025b1);return _0xde7f64=_0x19c2a1['attributes']['groupId'],_0x19c2a1['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x14aad5['size'])return;const _0x9ed582=_0x35051f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f5ef1=>'attribute'==_0x3f5ef1['type']&&_0x3f5ef1['data']&&_0x55db8c['includes'](_0x3f5ef1['data']['key'])&&_0x3f5ef1['attributes']['groupId']!=_0xde7f64)['map'](_0x5c5689=>({'listItem':_0x5c5689['getFirstRange']()['start']['nodeAfter'],'groupId':_0x5c5689['attributes']['groupId']})),_0x1a90cb=new Set();for(const {groupId:_0x34fec6,listItem:_0x30fad5}of _0x9ed582)_0x14aad5['has'](_0x30fad5)&&_0x1a90cb['add'](_0x34fec6);for(const _0x1db969 of _0x35051f['getSuggestions']())_0x1a90cb['has'](_0x1db969['attributes']['groupId'])&&_0x1db969['setAttribute']('groupId',_0xde7f64);}['_supportLegacySuggestions'](){const _0x2395cf=this['editor'],_0x222114=_0x2395cf['locale'],_0x4c150e=_0x2395cf['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4c150e['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x278faf,_0x517f26){const _0x4792b8=[];for(let _0xe963d8 of _0x278faf)_0xe963d8['start']['nodeAfter']===_0xe963d8['end']['parent']&&(_0xe963d8=_0x2395cf['model']['createRange'](_0x2395cf['model']['createPositionAt'](_0xe963d8['start']['nodeAfter'],0x0))),_0x4792b8['push'](_0xe963d8);_0x2395cf['model']['change'](_0x38a63c=>{const _0x501d75=_0x2395cf['model']['document']['selection'],_0x3fdcbb=Array['from'](_0x501d75['getRanges']())['map'](_0x2b3f99=>_0x1506cc['fromRange'](_0x2b3f99));_0x38a63c['setSelection'](_0x4792b8),_0x2395cf['commands']['get'](_0x517f26['commandName'])['refresh'](),_0x517f26['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2395cf['execute'](_0x517f26['commandName'],..._0x517f26['commandParams']),_0x38a63c['setSelection'](_0x3fdcbb);for(const _0x536d0c of _0x3fdcbb)_0x536d0c['detach']();});}),_0x4c150e['descriptionFactory']['registerElementLabel'](function(_0x2ee738){const _0x31f4af=!_0x2395cf['model']['schema']['isObject'](_0x2ee738),_0x59d0bd=_0x2ee738['previousSibling'],_0x34e71b=_0x2ee738['nextSibling'],_0x14eba2=_0x2ee738['getAttribute']('listItemId'),_0x537dc2=!_0x59d0bd||_0x59d0bd['getAttribute']('listItemId')!==_0x14eba2,_0x2dbbf8=!_0x34e71b||_0x34e71b['getAttribute']('listItemId')!==_0x14eba2;return _0x31f4af&&Boolean(_0x14eba2)&&_0x537dc2&&_0x2dbbf8;},_0x52245b=>o(_0x222114,'ELEMENT_LIST_ITEM',_0x52245b));}['_registerLegacyDescription'](){const _0x426f2b=this['editor'],_0x31b5e8=_0x426f2b['locale'];function _0x1821ed(_0x5ac914){const _0x2291a9=_0x426f2b['commands']['get']('bulletedList')['value'],_0x3f71b7=_0x426f2b['commands']['get']('numberedList')['value'];return'numberedList'===_0x5ac914?_0x2291a9:_0x3f71b7;}_0x426f2b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x348d18){if('formatBlock'!=_0x348d18['type'])return;const {data:_0xaa46f2}=_0x348d18;if(!_0xaa46f2)return;let _0xd94180,_0xec7a27,_0x63ff5b,_0x211f61;switch(_0xaa46f2['commandName']){case'bulletedList':_0x63ff5b=_0xaa46f2['commandParams'][0x0]['forceValue'],_0x211f61=_0x1821ed(_0xaa46f2['commandName']),_0xd94180=_0x63ff5b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x211f61&&_0x426f2b['config']['get']('list.multiBlock')||(_0xd94180='*Change\x20to:*\x20%0'),_0xec7a27={'type':'format','content':o(_0x31b5e8,_0xd94180,o(_0x31b5e8,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x63ff5b=_0xaa46f2['commandParams'][0x0]['forceValue'],_0x211f61=_0x1821ed(_0xaa46f2['commandName']),_0xd94180=_0x63ff5b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x211f61&&_0x426f2b['config']['get']('list.multiBlock')||(_0xd94180='*Change\x20to:*\x20%0'),_0xec7a27={'type':'format','content':o(_0x31b5e8,_0xd94180,o(_0x31b5e8,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xd94180='*Indent:*\x20%0',_0xec7a27={'type':'format','content':o(_0x31b5e8,_0xd94180,o(_0x31b5e8,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xd94180=function(_0x327edd){const _0x503612=_0x327edd['getFirstRange']();let _0x578c49=_0x503612['start']['nodeAfter'];for(;_0x578c49&&_0x503612['containsItem'](_0x578c49);){if(_0x578c49['getAttribute']('listIndent')>0x0)return!0x1;_0x578c49=_0x578c49['nextSibling'];}return!0x0;}(_0x348d18)?o(_0x31b5e8,'*Format:*\x20remove\x20from\x20%0',o(_0x31b5e8,function(_0x18d797){return'ELEMENT_'+_0x18d797['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x348d18))):o(_0x31b5e8,'*Outdent:*\x20%0',o(_0x31b5e8,'ELEMENT_LIST_ITEM')),_0xec7a27={'type':'format','content':_0xd94180};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xaa46f2['multipleBlocks']&&(_0xd94180='*Merge:*\x20%0',_0xec7a27={'type':'deletion','content':o(_0x31b5e8,_0xd94180,o(_0x31b5e8,'ELEMENT_LIST_ITEM'))});}return _0xec7a27;});}}function Te(_0x3e647f){let _0x59bfdf=_0x3e647f['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x59bfdf;){const _0x394a4c=_0x59bfdf['getAttribute']('listItemId');if(!_0x394a4c)return!0x1;if(_0x394a4c==_0x3e647f['data']['newValue'])return'newValue';if(_0x394a4c==_0x3e647f['data']['oldValue'])return'oldValue';_0x59bfdf=_0x59bfdf['previousSibling'];}return!0x1;}class H extends _0x452242{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3cffc6=this['editor']['config']['get']('list.properties'),_0x4c21c3=this['editor']['plugins']['get']('TrackChangesEditing');_0x3cffc6['styles']&&_0x4c21c3['enableDefaultAttributesIntegration']('listStyle'),_0x3cffc6['reversed']&&_0x4c21c3['enableDefaultAttributesIntegration']('listReversed'),_0x3cffc6['startIndex']&&_0x4c21c3['enableDefaultAttributesIntegration']('listStart');const _0x270adf={'type':'format','content':''};_0x4c21c3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5adc34=this['editor']['locale'];_0x4c21c3['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x5adc34,'FORMAT_LIST_REVERSED')),_0x4c21c3['descriptionFactory']['registerDescriptionCallback'](_0x1a29b0=>{const {data:_0x460311}=_0x1a29b0;if(_0x460311&&'listReversed'==_0x460311['key'])return null==_0x460311['newValue']||0x0==_0x460311['newValue']&&null==_0x460311['oldValue']?_0x270adf:void 0x0;}),_0x4c21c3['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x5adc34,'FORMAT_LIST_START')),_0x4c21c3['descriptionFactory']['registerDescriptionCallback'](_0x59a30c=>{const {data:_0x448a75}=_0x59a30c;if(_0x448a75&&'listStart'==_0x448a75['key'])return null==_0x448a75['newValue']||0x1==_0x448a75['newValue']&&null==_0x448a75['oldValue']?_0x270adf:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5be4da=>{if(_0x5be4da['batch']['isUndo'])return!0x1;let _0x2ae14e=!0x1;const _0x406159=_0x4c21c3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x22a7c5=>{const _0x378fe0=_0x4c21c3['_getAttributeKey'](_0x22a7c5);return'listStart'==_0x378fe0||'listReversed'==_0x378fe0;});for(const _0x95abfa of _0x406159){const _0x3f665f=_0x95abfa['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3f665f||'customNumbered'==_0x3f665f)continue;_0x4c21c3['_findSuggestions'](_0x95abfa['getFirstRange'](),'attribute')['find'](_0x22e060=>'listType'==_0x4c21c3['_getAttributeKey'](_0x22e060['suggestion']))||(_0x5be4da['removeMarker'](_0x95abfa['getFirstMarker']()),_0x2ae14e=!0x0);}return _0x2ae14e;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1bb972){const _0x1097c5=this['editor']['locale'],{data:_0x139b00}=_0x1bb972,_0x1c55b1={'type':'format','content':''};if(!_0x139b00||'listStyle'!=_0x139b00['key'])return;if(!_0x139b00['oldValue'])return'default'==_0x139b00['newValue']?_0x1c55b1:{'type':'format','content':''+o(_0x1097c5,'*Set\x20format:*\x20%0',o(_0x1097c5,this['_getTranslationKeyForListStyle'](_0x139b00['newValue'])))};if(!_0x139b00['newValue']){if('default'==_0x139b00['oldValue'])return _0x1c55b1;let _0x35e73f=_0x1bb972['head'];for(;_0x35e73f;){if(_0x35e73f['data']&&'listType'==_0x35e73f['data']['key']&&_0x35e73f['data']['newValue'])return _0x1c55b1;_0x35e73f=_0x35e73f['next'];}return{'type':'format','content':''+o(_0x1097c5,'*Remove\x20format:*\x20%0',o(_0x1097c5,this['_getTranslationKeyForListStyle'](_0x139b00['oldValue'])))};}if('default'!=_0x139b00['newValue'])return{'type':'format','content':''+o(_0x1097c5,'*Set\x20format:*\x20%0',o(_0x1097c5,this['_getTranslationKeyForListStyle'](_0x139b00['newValue'])))};let _0x40f915=_0x1bb972['head'];for(;_0x40f915;){if(_0x40f915['data']&&'listType'==_0x40f915['data']['key']&&_0x40f915['data']['newValue']&&_0x40f915['data']['oldValue'])return _0x1c55b1;_0x40f915=_0x40f915['next'];}return{'type':'format','content':o(_0x1097c5,'*Set\x20format:*\x20%0',o(_0x1097c5,'ELEMENT_'+_0x1bb972['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x275bd2=this['editor'],_0x2392dc=_0x275bd2['locale'];_0x275bd2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48dcf9=>{if('formatBlock'!=_0x48dcf9['type'])return;const {data:_0x19ccd5}=_0x48dcf9;if(!_0x19ccd5)return;let _0x2668e8,_0x37cf67;switch(_0x19ccd5['commandName']){case'listStyle':_0x2668e8='*Change\x20to:*\x20%0',_0x37cf67={'type':'format','content':o(_0x2392dc,_0x2668e8,o(_0x2392dc,this['_getTranslationKeyForListStyle'](_0x19ccd5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2668e8=_0x19ccd5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x37cf67={'type':'format','content':o(_0x2392dc,_0x2668e8)};break;case'listStart':_0x2668e8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x37cf67={'type':'format','content':o(_0x2392dc,_0x2668e8,_0x19ccd5['commandParams'][0x0]['startIndex'])};}return _0x37cf67;});}['_getTranslationKeyForListStyle'](_0x26ffe1){return'ELEMENT_'+function(_0x4245e5){if(ye['includes'](_0x4245e5))return'bulleted';if(Se['includes'](_0x4245e5))return'numbered';return null;}(_0x26ffe1)['toUpperCase']()+'_LIST_'+_0x26ffe1['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x452242{['afterInit'](){const _0x4ba34c=this['editor'];_0x4ba34c['commands']['get']('emoji')&&_0x4ba34c['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x452242{static get['requires'](){return[_0x25e692];}['init'](){const _0x7bafe3=this['editor'],_0x55acda=_0x7bafe3['plugins']['get']('TrackChangesEditing'),_0x3adae6=_0x7bafe3['commands']['get']('enter');_0x55acda['enableCommand']('enter',()=>{_0x7bafe3['model']['change'](_0x5212e9=>{const _0x35e1c0=_0x7bafe3['model']['document']['selection'],_0xaa9e9=_0x35e1c0['getFirstPosition'](),_0x9327e5=_0x1506cc['fromRange'](_0x35e1c0['getFirstRange']());if(_0x3adae6['enterBlock'](_0x5212e9)){const _0x3d05bd=_0x7bafe3['model']['createPositionAt'](_0xaa9e9['parent']['nextSibling'],0x0),_0x346610=_0x5212e9['createRange'](_0xaa9e9,_0x3d05bd);_0x55acda['markInsertion'](_0x346610);}else _0x5212e9['setSelection'](_0x5212e9['createRange'](_0x9327e5['end']));_0x9327e5['detach'](),_0x3adae6['fire']('afterExecute',{'writer':_0x5212e9});});});}}class Y extends _0x452242{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3fe8cc=this['editor']['plugins']['get']('TrackChangesEditing');_0x3fe8cc['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3fe8cc['enableCommand']('findNext'),_0x3fe8cc['enableCommand']('findPrevious'),_0x3fe8cc['enableCommand']('replace'),_0x3fe8cc['enableCommand']('replaceAll');}['handleFindCommand'](_0x1b9398,_0x3d393e,_0x2799ae={}){const _0x3f06ee=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1b9398(_0xa5a781=>{let _0x5e45a9=('string'==typeof _0x3d393e?_0x3f06ee['findByTextCallback'](_0x3d393e,_0x2799ae):_0x3d393e)(_0xa5a781);Array['isArray'](_0x5e45a9)&&(_0x5e45a9={'results':_0x5e45a9,'searchText':'string'==typeof _0x3d393e?_0x3d393e:''});const _0x2d563b=_0x5e45a9['results']['filter'](_0x141e90=>!0x1===this['_isInDeletionRange'](_0x141e90,_0xa5a781['item']));return{..._0x5e45a9,'results':_0x2d563b};},_0x2799ae);}['_isInDeletionRange'](_0x439627,_0x4038c0){const _0x74f912=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4038c0,_0x439627['start']),this['editor']['model']['createPositionAt'](_0x4038c0,_0x439627['end']));for(const _0x5e5c4a of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x74f912['getIntersection'](_0x5e5c4a['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 _0x452242{['afterInit'](){const _0x39c135=this['editor']['locale'],_0x5711a7=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3b4eb1,commandName:_0x4d0488}of eo)this['editor']['plugins']['has'](_0x3b4eb1)&&_0x5711a7['enableDefaultAttributesIntegration'](_0x4d0488);_0x5711a7['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x39c135,'FORMAT_FONT_SIZE')),_0x5711a7['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x39c135,'FORMAT_FONT_FAMILY')),_0x5711a7['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x39c135,'FORMAT_FONT_COLOR')),_0x5711a7['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x39c135,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc47bc2=this['editor'],_0x371913=_0xc47bc2['locale'];_0xc47bc2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x251327=>{const _0x32af50=_0x371913['t'];if('formatInline'!=_0x251327['type'])return;const {data:_0x5f29e9}=_0x251327;if(null!=_0x5f29e9){if('fontSize'==_0x5f29e9['commandName']){const _0x323402=_0x5f29e9['commandParams'][0x0]['value'];if(_0x323402){const _0x4a2633=_0x32af50(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x12c39e=>_0x12c39e['model']==_0x323402)['title'])['toLowerCase']();return{'type':'format','content':o(_0x371913,'*Set\x20font\x20size:*\x20%0',_0x4a2633)};}return{'type':'format','content':o(_0x371913,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5f29e9['commandName']){const _0x2a4dda=_0x5f29e9['commandParams'][0x0]['value'];return _0x2a4dda?{'type':'format','content':o(_0x371913,'*Set\x20font\x20family:*\x20%0',_0x2a4dda)}:{'type':'format','content':o(_0x371913,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5f29e9['commandName']){const _0x6adee9=_0x5f29e9['commandParams'][0x0]['value'];if(_0x6adee9){const _0x10da05=_0x3376c9(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1aefcb=>_0x1aefcb['model']==_0x6adee9);let _0x836e68=_0x6adee9,_0x2641ed='';return _0x10da05&&(_0x836e68=_0x10da05['label'],_0x2641ed=_0x32af50(_0x836e68)['toLowerCase']()),{'type':'format','content':o(_0x371913,'*Set\x20font\x20color:*\x20%0',_0x2641ed)['trim'](),'color':{'value':_0x6adee9,'title':_0x2641ed||_0x836e68}};}return{'type':'format','content':o(_0x371913,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5f29e9['commandName']){const _0x358905=_0x5f29e9['commandParams'][0x0]['value'];if(_0x358905){const _0x4e7d7a=_0x3376c9(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3d9a9c=>_0x3d9a9c['model']==_0x358905);let _0xe80396=_0x358905,_0x34610e='';return _0x4e7d7a&&(_0xe80396=_0x4e7d7a['label'],_0x34610e=_0x32af50(_0xe80396)['toLowerCase']()),{'type':'format','content':o(_0x371913,'*Set\x20font\x20background\x20color:*\x20%0',_0x34610e)['trim'](),'color':{'value':_0x358905,'title':_0x34610e||_0xe80396}};}return{'type':'format','content':o(_0x371913,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x452242{['afterInit'](){const {plugins:_0x56157d}=this['editor'];_0x56157d['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x56157d['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x3aa50a,plugins:_0x6c8019,commands:_0x1b3351}=this['editor'],_0x5de071=_0x6c8019['get']('TrackChangesEditing');_0x1b3351['get']('footnotesStyle')&&_0x5de071['enableDefaultAttributesIntegration']('footnotesStyle'),_0x1b3351['get']('footnotesStart')&&_0x5de071['enableDefaultAttributesIntegration']('footnotesStart'),_0x5de071['registerBlockAttribute']('footnotesListStyle'),_0x5de071['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x3aa50a,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x5de071['registerBlockAttribute']('footnotesListStart'),_0x5de071['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x3aa50a,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x154a30=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x457e40,commands:_0x561716}=this['editor'];_0x561716['get']('insertFootnote')&&_0x154a30['enableCommand']('insertFootnote'),_0x154a30['descriptionFactory']['registerElementLabel']('footnoteRef',_0x190c75=>o(_0x457e40,'ELEMENT_FOOTNOTE_REF',_0x190c75)),_0x154a30['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x5e1c8a=>o(_0x457e40,'ELEMENT_FOOTNOTE_DEFINITION',_0x5e1c8a)),_0x154a30['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x464df1=>o(_0x457e40,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x464df1));}}class nt extends _0x452242{['afterInit'](){const _0x4f3ff0=this['editor'],_0x3c20ff=_0x4f3ff0['plugins']['get']('TrackChangesEditing'),_0xf7ec4e=_0x4f3ff0['commands']['get']('copyFormat'),_0x17df5f=_0x4f3ff0['commands']['get']('pasteFormat');_0xf7ec4e&&_0x17df5f&&(_0x3c20ff['enableDefaultAttributesIntegration']('pasteFormat'),_0x3c20ff['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x120b50=this['editor'],_0x3ecab6=_0x120b50['locale'];_0x120b50['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42254b=>{if('formatBlock'!=_0x42254b['type']&&'formatInline'!=_0x42254b['type'])return;const {data:_0x264ba7}=_0x42254b;if(_0x264ba7&&'pasteFormat'===_0x264ba7['commandName']){const _0x3f0c8b=[],_0x5d6add=_0x264ba7['commandParams'][0x0];for(const [_0x3043b1,_0x5db44d]of Object['entries'](_0x5d6add))_0x3f0c8b['push'](ro(_0x120b50,_0x3043b1,_0x5db44d));return _0x3f0c8b['length']?{'type':'format','content':o(_0x3ecab6,'*Set\x20format\x20to:*\x20%0',_0x3f0c8b['join'](',\x20'))}:{'type':'format','content':o(_0x3ecab6,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x255e39,_0x4dcb8b,_0x1c2829){const _0xa6c155=_0x255e39['locale']['t'],_0x5c35ef=_0x4dcb8b['split'](/(?=[A-Z])/)['join']('\x20'),_0xfd5467=_0xa6c155(_0x5c35ef['charAt'](0x0)['toUpperCase']()+_0x5c35ef['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1c2829)return _0xfd5467;if('fontColor'===_0x4dcb8b||'fontBackgroundColor'===_0x4dcb8b){const _0x22f1cf=_0x3376c9(_0x255e39['config']['get']('fontColor.colors'))['find'](_0x2c0232=>_0x2c0232['model']==_0x1c2829);return _0xfd5467+'\x20('+(_0x22f1cf?_0xa6c155(_0x22f1cf['label'])['toLowerCase']():_0x1c2829)+')';}if('fontSize'===_0x4dcb8b&&isNaN(parseFloat(_0x1c2829))){const _0x444e09=_0x255e39['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x255e39['config']['get']('fontSize.options'))['find'](_0x489b2d=>_0x489b2d['model']==_0x1c2829);return _0xfd5467+'\x20('+(_0x444e09?_0xa6c155(_0x444e09['title'])['toLowerCase']():_0x1c2829)+')';}return _0xfd5467+'\x20('+_0x1c2829+')';}class it extends _0x452242{['_headingOptions'];['afterInit'](){const _0x374b1b=this['editor'];if(!_0x374b1b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x374b1b['config']['get']('heading.options');const _0x48a7aa=_0x374b1b['locale'],_0xd0d054=_0x374b1b['plugins']['get']('TrackChangesEditing');_0xd0d054['enableDefaultAttributesIntegration']('heading');for(const _0x5c410f of this['_headingOptions'])'paragraph'!=_0x5c410f['model']&&_0xd0d054['descriptionFactory']['registerElementLabel'](_0x5c410f['model'],_0x58ad6d=>{const _0x49f4ed=this['_getHeadingLevel'](_0x5c410f['model']);return null!==_0x49f4ed?_0x3689ee(_0x58ad6d,_0x49f4ed):_0x3b2498(_0x58ad6d,_0x5c410f['title']);});function _0x3689ee(_0x434ae8,_0x27a66c){return o(_0x48a7aa,'ELEMENT_HEADING',[_0x434ae8,_0x27a66c]);}function _0x3b2498(_0x1bcc1f,_0x12bacc){return o(_0x48a7aa,'ELEMENT_HEADING_CUSTOM',[_0x1bcc1f,_0x12bacc]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x263cc1=this['editor'],_0x4b4599=_0x263cc1['locale'];function _0x3f7d84(_0x607277,_0x227bd7){return o(_0x4b4599,'ELEMENT_HEADING_CUSTOM',[_0x607277,_0x227bd7]);}_0x263cc1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d736c=>{if('formatBlock'!=_0x5d736c['type'])return;const {data:_0x36a02b}=_0x5d736c;if(_0x36a02b&&'heading'==_0x36a02b['commandName']){const _0x28c3fb=_0x36a02b['commandParams'][0x0]['value'],_0x262433=this['_getHeadingLevel'](_0x28c3fb);if(null!==_0x262433)return{'type':'format','content':o(_0x4b4599,'*Change\x20to:*\x20%0',(_0x1d41c5=0x1,_0x2a3969=_0x262433,o(_0x4b4599,'ELEMENT_HEADING',[_0x1d41c5,_0x2a3969])))};const _0x58bea4=this['_headingOptions']['find'](_0x4080a1=>_0x4080a1['model']===_0x28c3fb)['title'];return{'type':'format','content':o(_0x4b4599,'*Change\x20to:*\x20%0',_0x3f7d84(0x1,_0x58bea4))};}var _0x1d41c5,_0x2a3969;});}['_getHeadingLevel'](_0x790652){const _0x3750b1=_0x790652['match'](/^heading(\d+)/);if(_0x3750b1)return _0x3750b1[0x1];const _0xc22188=this['_headingOptions']?.['find'](_0x1f37a6=>_0x1f37a6['model']==_0x790652);if(_0xc22188&&_0xc22188['view']){const _0x3f2d7f=_0xc22188['view'],_0x38ee4c=(_0x3f2d7f['name']??_0x3f2d7f)['match'](/^h(\d+)/);if(_0x38ee4c)return _0x38ee4c[0x1];}return null;}}class et extends _0x452242{['afterInit'](){const _0x1340c0=this['editor'];if(!_0x1340c0['plugins']['has']('HighlightEditing'))return;const _0x1504bc=_0x1340c0['plugins']['get']('TrackChangesEditing'),_0x5523af=_0x1340c0['locale'];_0x1504bc['enableDefaultAttributesIntegration']('highlight'),_0x1504bc['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5523af,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e1c86=this['editor'],_0x2b5b54=_0x5e1c86['locale'];_0x5e1c86['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x262027=>{if('formatInline'!=_0x262027['type'])return;const {data:_0x415ffb}=_0x262027;if(_0x415ffb&&'highlight'==_0x415ffb['commandName']){const _0x249372=_0x2b5b54['t'],_0x5f43b6=_0x415ffb['commandParams'][0x0]['value'];if(_0x5f43b6){const _0x5886c2=_0x5e1c86['config']['get']('highlight.options')['find'](_0x19e78b=>_0x19e78b['model']==_0x5f43b6),_0x4b8721=_0x249372(_0x5886c2['title'])['toLowerCase']();return{'type':'format','content':o(_0x2b5b54,'*Set\x20highlight:*\x20%0',_0x4b8721),'color':{'value':_0x5886c2['color'],'title':_0x5886c2['title']}};}return{'type':'format','content':o(_0x2b5b54,'*Remove\x20highlight*',o(_0x2b5b54,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x452242{['afterInit'](){const _0x155454=this['editor'];if(!_0x155454['plugins']['has']('HorizontalLineEditing'))return;_0x155454['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x578b2c=_0x155454['plugins']['get']('TrackChangesEditing'),_0x382895=_0x155454['locale'];_0x578b2c['descriptionFactory']['registerElementLabel']('horizontalLine',_0x362aca=>o(_0x382895,'ELEMENT_HORIZONTAL_LINE',_0x362aca));}}class ot extends _0x452242{['afterInit'](){const _0x489ef2=this['editor'];if(!_0x489ef2['plugins']['has']('HtmlEmbed'))return;const _0x4ac149=_0x489ef2['plugins']['get']('TrackChangesEditing'),_0xf90d1e=_0x489ef2['locale'];_0x4ac149['descriptionFactory']['registerElementLabel']('rawHtml',_0x29b74f=>o(_0xf90d1e,'ELEMENT_HTML_EMBED',_0x29b74f)),_0x4ac149['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4ac149['descriptionFactory']['registerDescriptionCallback'](_0x2b1d75=>{if('attribute'!=_0x2b1d75['type'])return;const {data:_0x30ab5c}=_0x2b1d75;if(_0x30ab5c&&'value'==_0x30ab5c['key']&&_0x2b1d75['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2e6f26=o(_0xf90d1e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xf90d1e,'*Change\x20%0\x20content*',_0x2e6f26)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25b77c=this['editor'],_0x51ed29=_0x25b77c['locale'];_0x25b77c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5dbb1a=>{if('formatBlock'!=_0x5dbb1a['type'])return;const {data:_0x2ebdb8}=_0x5dbb1a;if(_0x2ebdb8&&'htmlEmbed'==_0x2ebdb8['commandName']){const _0x422427=o(_0x51ed29,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x51ed29,'*Change\x20%0\x20content*',_0x422427)};}});}}class rt extends _0x452242{['afterInit'](){const _0x14f186=this['editor'];if(!_0x14f186['plugins']['has']('ImageEditing'))return;const _0xb90620=_0x14f186['plugins']['get']('TrackChangesEditing'),_0x3cc1a9=_0x14f186['plugins']['get']('ImageUtils'),_0x3d989e=_0x14f186['locale'];_0xb90620['enableCommand']('insertImage'),_0xb90620['descriptionFactory']['registerElementLabel']('imageBlock',_0x44a3d3=>o(_0x3d989e,'ELEMENT_IMAGE',_0x44a3d3)),_0xb90620['descriptionFactory']['registerElementLabel']('imageInline',_0x4331c3=>o(_0x3d989e,'ELEMENT_INLINE_IMAGE',_0x4331c3)),_0xb90620['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3d989e,'ELEMENT_CAPTION')),_0x14f186['plugins']['has']('ImageUploadEditing')&&_0xb90620['enableCommand']('uploadImage'),_0x14f186['plugins']['has']('ImageBlockEditing')&&_0x14f186['plugins']['has']('ImageInlineEditing')&&(_0xb90620['enableCommand']('imageTypeInline',(_0x2af636,_0x3500b6)=>{const _0x52d088=_0x3cc1a9['getClosestSelectedImageElement'](_0x14f186['model']['document']['selection']);_0x14f186['model']['change'](()=>{_0xb90620['markBlockFormat'](_0x52d088,{'commandName':'imageTypeInline','commandParams':[_0x3500b6]},[],'convertBlockImageToInline');});}),_0xb90620['enableCommand']('imageTypeBlock',(_0x4b959f,_0x48ba0a)=>{_0x14f186['model']['change'](_0x268442=>{let _0x249c3a=_0x3cc1a9['getClosestSelectedImageElement'](_0x14f186['model']['document']['selection']),_0x56e420=_0x268442['createRangeOn'](_0x249c3a);const _0x177ec4=_0x56d8cf['fromPosition'](_0x56e420['start'],'toPrevious'),_0x5cad2b=_0x56d8cf['fromPosition'](_0x56e420['end'],'toNext');_0xb90620['forceDefaultExecution'](()=>_0x4b959f(_0x48ba0a)),_0x249c3a=_0x3cc1a9['getClosestSelectedImageElement'](_0x14f186['model']['document']['selection']),_0x56e420=_0x268442['createRangeOn'](_0x249c3a);const _0x2067a8=_0x268442['createRange'](_0x177ec4,_0x5cad2b);_0x177ec4['detach'](),_0x5cad2b['detach'](),_0xb90620['markBlockFormat'](_0x249c3a,{'commandName':'imageTypeInline','commandParams':[_0x48ba0a]},[],'convertInlineImageToBlock'),_0x2067a8['start']['isBefore'](_0x56e420['start'])&&_0xb90620['markInsertion'](_0x268442['createRange'](_0x2067a8['start'],_0x56e420['start']),'convertInlineImageToBlock'),_0x56e420['end']['isBefore'](_0x2067a8['end'])&&_0xb90620['markInsertion'](_0x268442['createRange'](_0x56e420['end'],_0x2067a8['end']),'convertInlineImageToBlock');});}),_0xb90620['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xb90620['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xb90620['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xb90620['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xb90620['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xb90620['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3ae349])=>{const _0x178831=_0xb90620['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4a2563=_0x3ae349['start'],_0x319c5e=_0x3ae349['end'];const _0x1a553a=_0x14f186['model']['schema']['getNearestSelectionRange'](_0x4a2563,'backward'),_0x400f6f=_0x14f186['model']['schema']['getNearestSelectionRange'](_0x319c5e,'forward');_0x1a553a['isCollapsed']&&(_0x4a2563=_0x1a553a['start']),_0x400f6f['isCollapsed']&&(_0x319c5e=_0x400f6f['end']),_0x178831([_0x14f186['model']['createRange'](_0x4a2563,_0x319c5e)]);}),_0xb90620['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1ea84a),_0xb90620['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1ea84a)),_0x14f186['plugins']['has']('ImageCaptionEditing')&&(_0xb90620['enableCommand']('toggleImageCaption',(_0x577377,_0x431c2b)=>{const _0x54eedd=_0x14f186['plugins']['get']('ImageCaptionUtils');let _0x4b5081=_0x3cc1a9['getClosestSelectedImageElement'](_0x14f186['model']['document']['selection']),_0x18cff7=_0x54eedd['getCaptionFromImageModelElement'](_0x4b5081);_0x14f186['model']['change'](()=>{if(_0x18cff7)return void _0xb90620['markDeletion'](_0x14f186['model']['createRangeOn'](_0x18cff7));const _0x430f44=_0x3cc1a9['isBlockImage'](_0x4b5081);_0x577377(_0x431c2b),_0x4b5081=_0x3cc1a9['getClosestSelectedImageElement'](_0x14f186['model']['document']['selection']),_0x18cff7=_0x54eedd['getCaptionFromImageModelElement'](_0x4b5081),_0xb90620['markInsertion'](_0x14f186['model']['createRangeOn'](_0x18cff7),_0x430f44?null:'imageCaption');});}),_0xb90620['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1ea84a));const _0x59dd36=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5cf2fa(_0x48db34,_0xa5a235){const _0x43a3a1=_0x59dd36['findIndex'](({type:_0x58c03e,subType:_0x5d6718})=>_0x48db34['type']==_0x58c03e&&_0x48db34['subType']==_0x5d6718),_0x848938=_0x59dd36['findIndex'](({type:_0x2aa41a,subType:_0x7afbde})=>_0xa5a235['type']==_0x2aa41a&&_0xa5a235['subType']==_0x7afbde);if(_0x43a3a1<0x0||_0x848938<0x0)return!0x1;const _0x3a4a1b=_0x48db34['getFirstRange'](),_0x599d69=_0xa5a235['getFirstRange']();if((0x0==_0x43a3a1||0x1==_0x43a3a1)&&0x2==_0x848938&&_0x3a4a1b['isIntersecting'](_0x599d69))return!0x0;if(0x2==_0x43a3a1&&0x3==_0x848938){const _0x24f6de=_0xb90620['_findSuggestions'](_0x3a4a1b,'insertion')['filter'](({suggestion:_0x112a45,meta:_0x4cc1c1})=>_0x4cc1c1['isOwn']&&'convertInlineImageToBlock'==_0x112a45['subType']);if(_0x24f6de['length']>0x1&&_0x599d69['end']['isEqual'](_0x3a4a1b['start']))return!0x0;if(0x1==_0x24f6de['length']&&(_0x3a4a1b['start']['isEqual'](_0x599d69['end'])||_0x3a4a1b['end']['isEqual'](_0x599d69['start'])))return!0x0;}if(0x3==_0x43a3a1&&0x3==_0x848938&&_0x3a4a1b['start']['isBefore'](_0x599d69['start'])){const _0x58b39f=_0x3a4a1b['end']['nodeAfter'],_0xf705a2=_0x599d69['start']['nodeBefore'];return _0x3cc1a9['isBlockImage'](_0x58b39f)&&_0x58b39f===_0xf705a2;}return!0x1;}function _0x1ea84a(_0x23dd66,_0x2d191a){return _0x5cf2fa(_0x23dd66,_0x2d191a)?[_0x23dd66,_0x2d191a]:_0x5cf2fa(_0x2d191a,_0x23dd66)?[_0x2d191a,_0x23dd66]:null;}_0x14f186['plugins']['has']('ImageResize')&&(_0xb90620['enableDefaultAttributesIntegration']('resizeImage'),_0xb90620['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3d989e,'FORMAT_IMAGE_SIZE'))),_0x14f186['plugins']['has']('ImageTextAlternativeEditing')&&_0xb90620['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x14f186['plugins']['has']('PictureEditing')&&_0xb90620['descriptionFactory']['registerDescriptionCallback'](_0x4cd595=>{if('attribute'!=_0x4cd595['type'])return;const {data:_0x2c8ed5}=_0x4cd595;return _0x2c8ed5&&'sources'==_0x2c8ed5['key']?{'type':'format','content':''}:void 0x0;}),_0x14f186['plugins']['has']('ImageSizeAttributes')&&_0xb90620['descriptionFactory']['registerDescriptionCallback'](_0x4dd628=>{if('attribute'!=_0x4dd628['type'])return;const {data:_0x12bacf}=_0x4dd628;return!_0x12bacf||'width'!=_0x12bacf['key']&&'height'!=_0x12bacf['key']?void 0x0:{'type':'format','content':''};}),_0xb90620['descriptionFactory']['registerDescriptionCallback'](_0x480503=>{if(!!_0x59dd36['find'](({type:_0xadf84d,subType:_0x4e4745})=>_0x480503['type']==_0xadf84d&&_0x480503['subType']==_0x4e4745))return _0x480503['previous']?{}:void 0x0;}),_0xb90620['descriptionFactory']['registerDescriptionCallback'](_0x3932e7=>{if('insertion'==_0x3932e7['type']||'deletion'==_0x3932e7['type']){const _0x528a78=_0x3932e7['getContainedElement']();if(_0x528a78&&_0x528a78['is']('element','caption'))return{'type':'insertion'==_0x3932e7['type']?'addObject':'removeObject','element':_0x528a78,'quantity':0x1};}}),_0xb90620['descriptionFactory']['registerDescriptionCallback'](_0x523fd9=>'formatBlock'==_0x523fd9['type']&&'convertInlineImageToBlock'==_0x523fd9['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x523fd9['type']&&'convertBlockImageToInline'==_0x523fd9['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xb90620['descriptionFactory']['registerDescriptionCallback'](_0xdd8a9f=>{if('attribute'!=_0xdd8a9f['type'])return;const {data:_0x2743f5}=_0xdd8a9f;if(!_0x2743f5||'alt'!=_0x2743f5['key'])return;const _0x2c8438=_0x2743f5['newValue'];return _0x2c8438?{'type':'format','content':o(_0x3d989e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2c8438+'\x22')}:{'type':'format','content':o(_0x3d989e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x532e83=this['editor'],_0x55f09e=_0x532e83['locale'];_0x532e83['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x374f68=>{if('formatBlock'!=_0x374f68['type']&&'formatInline'!=_0x374f68['type'])return;const {data:_0x1662dc}=_0x374f68;if(_0x1662dc){if('imageTextAlternative'==_0x1662dc['commandName']){const _0x44919c=_0x1662dc['commandParams'][0x0]['newValue'];return _0x44919c?{'type':'format','content':o(_0x55f09e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x44919c+'\x22')}:{'type':'format','content':o(_0x55f09e,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1662dc['commandName']){const _0x3a91a6=_0x1662dc['commandParams'][0x0]['width'];return _0x3a91a6?{'type':'format','content':o(_0x55f09e,'*Set\x20image\x20width:*\x20%0',_0x3a91a6)}:{'type':'format','content':o(_0x55f09e,'*Reset\x20image\x20width*')};}}});}}class at extends _0x452242{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x508656=this['editor']['locale'],_0x3610b3=this['editor']['plugins']['get']('TrackChangesEditing');_0x3610b3['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3610b3['descriptionFactory']['registerDescriptionCallback'](_0x12eff9=>{if('attribute'!=_0x12eff9['type'])return;const {data:_0x42e73}=_0x12eff9;return _0x42e73&&'src'==_0x42e73['key']?_0x42e73['newValue']&&_0x42e73['oldValue']?{'type':'format','content':o(_0x508656,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1fbd68=this['editor']['plugins']['get']('TrackChangesEditing');_0x1fbd68['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1fbd68['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1fbd68['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1fbd68['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c14a3=this['editor'],_0x4bfa2d=_0x1c14a3['locale'];_0x1c14a3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x410c7b=>{if('formatBlock'!=_0x410c7b['type']&&'formatInline'!=_0x410c7b['type'])return;const {data:_0x266e84}=_0x410c7b;if(!_0x266e84||'replaceImageSource'!=_0x266e84['commandName'])return;return{'type':'format','content':o(_0x4bfa2d,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x452242{['afterInit'](){const _0x1c8816=this['editor'];if(!_0x1c8816['plugins']['has']('ImageStyleEditing'))return;const _0x3d1fc4=_0x1c8816['plugins']['get']('TrackChangesEditing'),_0x9fa65e=_0x1c8816['plugins']['get']('ImageUtils'),_0x14ae2d={};_0x3d1fc4['enableCommand']('imageStyle',(_0x1e865e,_0x2e4f03)=>{const _0x320bc3=_0x1c8816['plugins']['get']('Users')['me'],_0x3f3874=_0x1c8816['commands']['get']('imageStyle');let _0x2e0534=_0x9fa65e['getClosestSelectedImageElement'](_0x1c8816['model']['document']['selection']),_0x5a9787=_0x1c8816['model']['createRangeOn'](_0x2e0534),_0xfc664f=_0x3f3874['value'];if(_0xfc664f==_0x2e4f03['value'])return;const _0x3d502d={'commandName':'imageStyle','commandParams':[_0x2e4f03],'formatGroupId':_0x3da106()};_0x1c8816['model']['change'](()=>{if(_0x3d1fc4['getSuggestions']()['filter'](_0x2cd617=>_0x2cd617['isInContent']&&_0x320bc3==_0x2cd617['author']&&('formatBlock'==_0x2cd617['type']||'formatInline'==_0x2cd617['type'])&&('imageStylePreApply'==_0x2cd617['subType']||'imageStylePostApply'==_0x2cd617['subType'])&&_0x2cd617['getFirstRange']()['isEqual'](_0x5a9787))['forEach'](_0x270463=>_0x3d1fc4['discardSuggestion'](_0x270463['head'])),_0x2e0534=_0x9fa65e['getClosestSelectedImageElement'](_0x1c8816['model']['document']['selection']),_0x5a9787=_0x1c8816['model']['createRangeOn'](_0x2e0534),_0x3f3874['refresh'](),_0x1c8816['commands']['get']('imageTypeInline')['refresh'](),_0x1c8816['commands']['get']('imageTypeBlock')['refresh'](),_0xfc664f=_0x3f3874['value'],_0xfc664f!=_0x2e4f03['value'])return _0x9fa65e['isInlineImage'](_0x2e0534)&&_0x3f3874['shouldConvertImageType'](_0x2e4f03['value'],_0x2e0534)?(_0x1e865e({..._0x2e4f03,'setImageSizes':!0x1}),_0x2e0534=_0x9fa65e['getClosestSelectedImageElement'](_0x1c8816['model']['document']['selection']),void _0x3d1fc4['markBlockFormat'](_0x2e0534,{..._0x3d502d,'commandReversedParams':[{'value':_0xfc664f||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x9fa65e['isBlockImage'](_0x2e0534)?_0x3d1fc4['markBlockFormat'](_0x2e0534,_0x3d502d,[],'imageStylePostApply'):_0x3d1fc4['markInlineFormat'](_0x5a9787,_0x3d502d,'imageStylePostApply'));});});for(const _0x500a5b of _0x1c8816['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x14ae2d[_0x500a5b['name']]=_0x500a5b['title']['toLowerCase']();_0x3d1fc4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3d1fc4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3d1fc4['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3d1fc4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x19f662])=>{_0x9fa65e['setImageNaturalSizeAttributes'](_0x19f662['getContainedElement']());}),_0x3d1fc4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3d4bb5,_0x1723ec)=>{_0x3d1fc4['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3d4bb5,{'commandName':_0x1723ec['commandName'],'commandParams':_0x1723ec['commandReversedParams']});}),_0x3d1fc4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x109851,_0x1867b9){if(_0x39bd3b(_0x109851,_0x1867b9))return[_0x109851,_0x1867b9];if(_0x39bd3b(_0x1867b9,_0x109851))return[_0x1867b9,_0x109851];return null;});const _0x20a82e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x39bd3b(_0x1df512,_0x970516){const _0x1cdea2=_0x20a82e['findIndex'](({type:_0xc161e8,subType:_0x390bc1})=>_0x1df512['type']==_0xc161e8&&_0x1df512['subType']==_0x390bc1),_0x42c18b=_0x20a82e['findIndex'](({type:_0x386fa5,subType:_0x3046c3})=>_0x970516['type']==_0x386fa5&&_0x970516['subType']==_0x3046c3);if(_0x1cdea2<0x0||_0x42c18b<0x0)return!0x1;const _0x48841e=_0x1df512['getFirstRange'](),_0x50835d=_0x970516['getFirstRange']();if((0x0==_0x1cdea2||0x1==_0x1cdea2)&&0x2==_0x42c18b&&_0x48841e['isIntersecting'](_0x50835d))return!0x0;if(0x2==_0x1cdea2&&0x3==_0x42c18b){const _0x36ee23=_0x3d1fc4['_findSuggestions'](_0x48841e,'insertion')['filter'](({suggestion:_0x151f21,meta:_0x54fcc2})=>_0x54fcc2['isOwn']&&'convertInlineImageToBlock'==_0x151f21['subType']);if(_0x36ee23['length']>0x1&&_0x50835d['end']['isEqual'](_0x48841e['start']))return!0x0;if(0x1==_0x36ee23['length']&&(_0x48841e['start']['isEqual'](_0x50835d['end'])||_0x48841e['end']['isEqual'](_0x50835d['start'])))return!0x0;}if(0x3==_0x1cdea2&&0x3==_0x42c18b&&_0x48841e['start']['isBefore'](_0x50835d['start'])){const _0x3244b4=_0x48841e['end']['nodeAfter'],_0x2ccc1e=_0x50835d['start']['nodeBefore'];return _0x9fa65e['isBlockImage'](_0x3244b4)&&_0x3244b4===_0x2ccc1e;}return!0x1;}_0x1c8816['model']['document']['registerPostFixer'](()=>{let _0x435f22=!0x1;const _0x4dd898=Array['from'](_0x1c8816['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x171c60,data:_0x35a1ce}of _0x4dd898){const {group:_0x3fb973,type:_0x2aa9d1,subType:_0x18f1ec,id:_0xee8d6}=_0x3d1fc4['_splitMarkerName'](_0x171c60);if('suggestion'==_0x3fb973&&_0x3d1fc4['hasSuggestion'](_0xee8d6)){if('formatBlock'==_0x2aa9d1&&('imageStylePreApply'==_0x18f1ec||'imageStylePostApply'==_0x18f1ec)){const _0x39431c=_0x3d1fc4['getSuggestion'](_0xee8d6);if(_0x35a1ce['newRange']){const _0xedc2b7=_0x39431c['getFirstRange']()['getContainedElement']();if(_0x9fa65e['isBlockImage'](_0xedc2b7))continue;_0x3d1fc4['discardSuggestion'](_0x39431c),_0x435f22=!0x0;}}if('insertion'==_0x2aa9d1&&'imageCaption'==_0x18f1ec&&!_0x35a1ce['newRange']){const _0x424ba0=_0x3d1fc4['getSuggestion'](_0xee8d6);_0x424ba0['next']&&_0x424ba0['next']['isInContent']&&(_0x3d1fc4['discardSuggestion'](_0x424ba0['next']),_0x435f22=!0x0);}}}return _0x435f22;}),this['_registerLegacyDescription'](_0x14ae2d);}['_registerLegacyDescription'](_0x5a7495){const _0x40bfa9=this['editor'],_0x3ffba3=_0x40bfa9['locale'];_0x40bfa9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44b46a=>{if('formatBlock'!=_0x44b46a['type']&&'formatInline'!=_0x44b46a['type'])return;const {data:_0x11ff98}=_0x44b46a;if(!_0x11ff98||'imageStyle'!=_0x11ff98['commandName'])return;const _0x2d863c=_0x11ff98['commandParams'][0x0]['value'];return _0x44240e('side'===_0x2d863c?o(_0x3ffba3,'FORMAT_SIDE_IMAGE'):_0x5a7495[_0x2d863c]||_0x2d863c);function _0x44240e(_0x18559d){return{'type':'format','content':o(_0x3ffba3,'*Format:*\x20%0',_0x18559d)};}});}}class ut extends _0x452242{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x440d38){super(_0x440d38),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1169fa=this['editor'],_0xf954d1=_0x1169fa['commands']['get']('importWord'),_0x2814b4=_0x1169fa['commands']['get']('trackChanges');_0xf954d1&&(_0xf954d1['on']('execute',(_0x50ff8d,[,_0x5b0849])=>{this['_trackChangesValueDuringImport']=_0x2814b4['value'],_0x5b0849['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xf954d1,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xf954d1,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2814b4['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1169fa['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x33dc4c,_0x271dee){const {suggestions:_0x1e5581}=_0x271dee,_0x344929=this['editor']['commands']['get']('trackChanges'),_0x2664d1=_0x344929['value'];this['_trackChangesValueDuringImport']!==_0x2664d1&&(_0x344929['execute'](),this['_trackChangesExecuted']=!0x0),_0x1e5581&&_0x1e5581['forEach'](({id:_0x48aa59,type:_0x25d641,author:_0x113dff,created_at:_0x5c67bc})=>{const _0x1f0566={'id':_0x48aa59,'type':_0x25d641,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x113dff,'createdAt':_0x5c67bc?new Date(_0x5c67bc):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1f0566);});}}class ft extends _0x452242{['afterInit'](){const _0x53cccd=this['editor'],_0x503e0f=_0x53cccd['plugins']['get']('TrackChangesEditing');if(_0x53cccd['plugins']['has']('IndentEditing')&&(_0x503e0f['enableCommand']('indent'),_0x503e0f['enableCommand']('outdent')),_0x53cccd['plugins']['has']('IndentBlock')){for(const _0x17556c of['indentBlock','outdentBlock'])_0x503e0f['enableDefaultAttributesIntegration'](_0x17556c);}const _0x4493d2=_0x53cccd['locale'];_0x503e0f['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4493d2,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2455b1=this['editor'],_0x5c18c6=_0x2455b1['locale'],_0x4a20b7=_0x2455b1['plugins']['get']('TrackChangesEditing');_0x4a20b7['descriptionFactory']['registerDescriptionCallback'](_0x488165=>{if('formatBlock'!=_0x488165['type'])return;const {data:_0xe044d}=_0x488165;if(!_0xe044d)return;if('indentBlock'!=_0xe044d['commandName']&&'outdentBlock'!=_0xe044d['commandName'])return;const _0x4741c9=_0x488165['getItems']()[0x0],_0x2737d7=_0x4a20b7['descriptionFactory']['getItemLabel'](_0x4741c9);return'indentBlock'==_0xe044d['commandName']?{'type':'format','content':o(_0x5c18c6,'*Indent:*\x20%0',_0x2737d7)}:'outdentBlock'==_0xe044d['commandName']?{'type':'format','content':o(_0x5c18c6,'*Outdent:*\x20%0',_0x2737d7)}:void 0x0;});}}class ht extends _0x452242{static get['requires'](){return[_0x19a581];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x452242{['afterInit'](){const _0x3f4af1=this['editor'];if(!_0x3f4af1['plugins']['has']('LinkEditing'))return;const _0x9517b5=_0x3f4af1['plugins']['get']('TrackChangesEditing'),_0x20e872=_0x3f4af1['commands']['get']('link');_0x9517b5['enableDefaultAttributesIntegration']('link'),_0x9517b5['enableDefaultAttributesIntegration']('unlink');for(const _0x2042bd of _0x20e872['manualDecorators'])_0x9517b5['descriptionFactory']['registerAttributeLabel'](_0x2042bd['id'],'link\x20('+_0x2042bd['label']['toLowerCase']()+')');_0x9517b5['descriptionFactory']['registerDescriptionCallback'](_0x39564a=>{if('attribute'!=_0x39564a['type'])return;const {data:_0x23206e}=_0x39564a;if(!_0x23206e||'linkHref'!=_0x23206e['key'])return;const _0xc4fd85=_0x23206e['newValue'],_0x13a294=_0x3f4af1['locale'];return{'type':'format','content':null==_0xc4fd85?o(_0x13a294,'*Remove\x20link*'):o(_0x13a294,'*Set\x20link:*\x20%0','\x22'+_0xc4fd85+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x341b09=this['editor'],_0xcf73a3=_0x341b09['locale'];_0x341b09['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x106b7d=>{if('formatInline'!=_0x106b7d['type'])return;const {data:_0x5712ef}=_0x106b7d;if(_0x5712ef){if('link'==_0x5712ef['commandName']){const _0x5ade67=_0x5712ef['commandParams'][0x0];return{'type':'format','content':o(_0xcf73a3,'*Set\x20link:*\x20%0','\x22'+_0x5ade67+'\x22')};}return'unlink'==_0x5712ef['commandName']?{'type':'format','content':o(_0xcf73a3,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x452242{['afterInit'](){const _0x1ac20c=this['editor'],_0x413e1c=_0x1ac20c['locale'];if(!_0x1ac20c['plugins']['has']('LegacyListEditing'))return;const _0x36e6e4=_0x1ac20c['plugins']['get']('TrackChangesEditing'),_0x592f62=_0x1ac20c['plugins']['has']('LegacyTodoListEditing');function _0x504742(_0x58c5d6){return()=>{const _0x19c648=_0x1ac20c['model']['document']['selection'],_0x12f161=_0x1ac20c['commands']['get'](_0x58c5d6);if(_0x12f161['value'])return void _0x1ac20c['execute']('paragraph',{});const _0x28d887=_0x58c5d6['slice'](0x0,-0x4),_0x31467f=function(_0x3f7ce1,_0x29cf20,_0xc2bd22){let _0x55d688=Array['from'](_0x3f7ce1)['filter'](_0x3dc157=>function(_0x51864b,_0x55bf5f){return _0x55bf5f['checkChild'](_0x51864b['parent'],'listItem')&&!_0x55bf5f['isObject'](_0x51864b);}(_0x3dc157,_0xc2bd22));_0x55d688=_0x55d688['filter'](_0x22e002=>!_0x22e002['is']('element','listItem')||_0x22e002['getAttribute']('listType')!=_0x29cf20);const _0x30c202=new Set();for(const _0x58827f of _0x55d688)_0x58827f['is']('element','listItem')?_0x30c202['add'](Le(_0x58827f)):_0x30c202['add'](_0x58827f);return Array['from'](_0x30c202);}(_0x19c648['getSelectedBlocks'](),_0x28d887,_0x1ac20c['model']['schema']);_0x1ac20c['model']['change'](()=>{for(const _0x1a1edd of _0x31467f)_0x36e6e4['markBlockFormat'](_0x1a1edd,{'commandName':_0x58c5d6,'commandParams':[{'forceValue':!_0x12f161['value']}],'formatGroupId':'blockName'},Ee(_0x1a1edd));});};}function _0x40d05b(_0x2a494e){return()=>{const _0x30fcce=function(_0xd05ca7){let _0x161728=Array['from'](_0xd05ca7);const _0x30c970=_0x161728['findIndex'](_0x43ae86=>'listItem'!=_0x43ae86['name']);return _0x30c970>-0x1&&(_0x161728=_0x161728['slice'](0x0,_0x30c970)),_0x161728;}(_0x1ac20c['model']['document']['selection']['getSelectedBlocks']()),_0x9ccbf5=_0x1ac20c['model']['createRange'](_0x1ac20c['model']['createPositionAt'](_0x30fcce[0x0],'before'),_0x1ac20c['model']['createPositionAt'](_0x30fcce[_0x30fcce['length']-0x1],'end'));_0x1ac20c['model']['change'](()=>{_0x36e6e4['markBlockFormat'](_0x9ccbf5,{'commandName':_0x2a494e,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1718f4){const _0x5a1c9c=new Set();for(const _0x557ec1 of _0x1718f4){let _0x4311d8=_0x557ec1['nextSibling'];for(;_0x4311d8&&_0x4311d8['getAttribute']('listIndent')>_0x557ec1['getAttribute']('listIndent');)_0x5a1c9c['add'](_0x4311d8),_0x4311d8=_0x4311d8['nextSibling'];}return Array['from'](_0x5a1c9c);}(_0x30fcce));});};}_0x36e6e4['enableCommand']('numberedList',_0x504742('numberedList')),_0x36e6e4['enableCommand']('bulletedList',_0x504742('bulletedList')),_0x592f62&&_0x36e6e4['enableCommand']('todoList',_0x504742('todoList')),_0x36e6e4['enableCommand']('indentList',_0x40d05b('indentList')),_0x36e6e4['enableCommand']('outdentList',_0x40d05b('outdentList')),_0x592f62&&_0x36e6e4['enableCommand']('checkTodoList',()=>{const _0x5d8908=_0x1ac20c['commands']['get']('checkTodoList'),_0x4b99ba=Array['from'](_0x5d8908['_selectedElements']);_0x4b99ba['filter'](_0x43d0fc=>_0x43d0fc['getAttribute']('todoListChecked')!=_0x5d8908['value']),_0x1ac20c['model']['change'](()=>{for(const _0x1cfd6d of _0x4b99ba)_0x36e6e4['markBlockFormat'](_0x1cfd6d,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5d8908['value']}]});});}),_0x36e6e4['descriptionFactory']['registerElementLabel']('listItem',_0x5d190b=>o(_0x413e1c,'ELEMENT_LIST_ITEM',_0x5d190b)),_0x36e6e4['descriptionFactory']['registerDescriptionCallback'](_0x395b86=>{if('formatBlock'!=_0x395b86['type']&&'formatInline'!=_0x395b86['type'])return;const {data:_0x12c5f7}=_0x395b86;if(_0x12c5f7){if('numberedList'==_0x12c5f7['commandName']||'bulletedList'==_0x12c5f7['commandName']||'todoList'==_0x12c5f7['commandName'])switch(_0x12c5f7['commandName']['replace']('List','')){case'bulleted':return _0x5369ec(o(_0x413e1c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5369ec(o(_0x413e1c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5369ec(o(_0x413e1c,'ELEMENT_TODO_LIST'));}if('indentList'==_0x12c5f7['commandName'])return{'type':'format','content':o(_0x413e1c,'*Indent:*\x20%0',o(_0x413e1c,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x12c5f7['commandName'])return{'type':'format','content':o(_0x413e1c,'*Outdent:*\x20%0',o(_0x413e1c,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x12c5f7['commandName'])return _0x12c5f7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x413e1c,'*Check\x20item*')}:{'type':'format','content':o(_0x413e1c,'*Uncheck\x20item*')};}function _0x5369ec(_0x1ceab4){return{'type':'format','content':o(_0x413e1c,'*Change\x20to:*\x20%0',_0x1ceab4)};}});}}function Le(_0xad468f){const _0x3dc1c8=_0xad468f['getAttribute']('listIndent');if(0x0==_0x3dc1c8)return _0xad468f;let _0x54cc02=_0xad468f;for(;_0xad468f['previousSibling']&&_0xad468f['previousSibling']['is']('element','listItem');){const _0x19431b=_0xad468f['previousSibling']['getAttribute']('listIndent');if(_0x19431b==_0x3dc1c8)_0x54cc02=_0xad468f['previousSibling'];else{if(_0x19431b<_0x3dc1c8)break;}_0xad468f=_0xad468f['previousSibling'];}return _0x54cc02;}function Ee(_0x3caf64){const _0x28856f=[];if(_0x3caf64['is']('element','listItem')&&_0x3caf64['getAttribute']('listIndent')>0x0){let _0x5d49bf=_0x3caf64['nextSibling'];for(;_0x5d49bf&&'listItem'==_0x5d49bf['name']&&_0x5d49bf['getAttribute']('listIndent')==_0x3caf64['getAttribute']('listIndent');)_0x28856f['push'](_0x5d49bf),_0x5d49bf=_0x5d49bf['nextSibling'];}return _0x28856f;}class mt extends _0x452242{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5be01a=this['editor']['config']['get']('list.properties'),_0x1bc787=this['editor']['plugins']['get']('TrackChangesEditing');_0x5be01a['styles']&&_0x1bc787['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5be01a['reversed']&&_0x1bc787['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5be01a['startIndex']&&_0x1bc787['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1bc787['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x33dbc4,_0x5d5b4d={}){const _0x45eea0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5dda87=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x45eea0['markMultiRangeBlockFormat'](_0x5dda87,{'commandName':'listStyle','commandParams':[{'type':_0x5d5b4d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x23f6bb,_0x1fe098={}){const _0x8bf6b1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29a35c=this['_getSuggestionBlocks'](_0x18d9ba=>_0x18d9ba['is']('element','listItem')&&'numbered'===_0x18d9ba['getAttribute']('listType'));if(_0x29a35c['length']<0x1)return;const _0x1f221b=_0x29a35c['map'](_0x4e0e21=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4e0e21,'before'),this['editor']['model']['createPositionAt'](_0x4e0e21,0x0)));this['editor']['model']['change'](()=>{_0x8bf6b1['markMultiRangeBlockFormat'](_0x1f221b,{'commandName':'listReversed','commandParams':[{'reversed':_0x1fe098['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x21d54e,_0x32a887={}){const _0x7958f8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d4e4b=this['_getSuggestionBlocks'](_0x1e7380=>_0x1e7380['is']('element','listItem')&&'numbered'===_0x1e7380['getAttribute']('listType'));if(_0x2d4e4b['length']<0x1)return;const _0x131190=_0x2d4e4b['map'](_0x2910ba=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2910ba,'before'),this['editor']['model']['createPositionAt'](_0x2910ba,0x0)));this['editor']['model']['change'](()=>{_0x7958f8['markMultiRangeBlockFormat'](_0x131190,{'commandName':'listStart','commandParams':[{'startIndex':_0x32a887['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2bab8a){if('formatBlock'!=_0x2bab8a['type']&&'formatInline'!=_0x2bab8a['type'])return;const _0x29534b=this['editor']['locale'],{data:_0x2de2bd}=_0x2bab8a;if(!_0x2de2bd)return;let _0x3a3958,_0x5d3470;switch(_0x2de2bd['commandName']){case'listStyle':_0x3a3958='*Change\x20to:*\x20%0',_0x5d3470={'type':'format','content':o(_0x29534b,_0x3a3958,o(_0x29534b,this['_getTranslationKeyForListStyle'](_0x2de2bd['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3a3958=_0x2de2bd['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5d3470={'type':'format','content':o(_0x29534b,_0x3a3958)};break;case'listStart':_0x3a3958='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5d3470={'type':'format','content':o(_0x29534b,_0x3a3958,_0x2de2bd['commandParams'][0x0]['startIndex'])};}return _0x5d3470;}['_getSuggestionBlocksForListStyle'](){const _0x197ec6=this['editor']['plugins']['get']('LegacyListUtils');let _0x315bfe=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x315bfe[0x0]?.['is']('element','listItem')&&_0x315bfe['unshift'](..._0x197ec6['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x315bfe[_0x315bfe['length']-0x1]?.['is']('element','listItem')&&_0x315bfe['push'](..._0x197ec6['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x315bfe=[...new Set(_0x315bfe)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x315bfe=_0x315bfe['filter'](_0x17283c=>_0x17283c['is']('element','listItem'))),_0x315bfe;}['_getSuggestionBlocks'](_0x408e85){const _0x78214=this['editor']['plugins']['get']('LegacyListUtils');let _0x191157=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x408e85)['map'](_0x3b2308=>{const _0x29161a=this['editor']['model']['createPositionAt'](_0x3b2308,0x0);return[..._0x78214['getSiblingNodes'](_0x29161a,'backward'),..._0x78214['getSiblingNodes'](_0x29161a,'forward')];})['flat']();return _0x191157=[...new Set(_0x191157)],_0x191157;}['_getTranslationKeyForListStyle'](_0x5e7f04){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5e7f04)||'default')['toUpperCase']()+'_LIST_'+_0x5e7f04['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x452242{['afterInit'](){const _0x1ff44e=this['editor'];if(!_0x1ff44e['plugins']['has']('MediaEmbedEditing'))return;const _0x2ed411=_0x1ff44e['plugins']['get']('TrackChangesEditing'),_0x3655bf=_0x1ff44e['locale'];_0x2ed411['enableCommand']('mediaEmbed'),_0x2ed411['descriptionFactory']['registerElementLabel']('media',_0x457e55=>o(_0x3655bf,'ELEMENT_MEDIA',_0x457e55));}}class pt extends _0x452242{['afterInit'](){const _0x133541=this['editor'];_0x133541['plugins']['has']('MentionEditing')&&_0x133541['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x452242{['afterInit'](){const _0x451f6d=this['editor'];if(!_0x451f6d['plugins']['has']('MergeFieldsEditing'))return;const _0x24ec02=_0x451f6d['plugins']['get']('TrackChangesEditing'),_0x1be03f=_0x451f6d['locale'];_0x24ec02['enableCommand']('insertMergeField'),_0x24ec02['enableCommand']('insertMergeFieldBlock'),_0x24ec02['enableCommand']('insertMergeFieldImage'),_0x24ec02['descriptionFactory']['registerElementLabel']('mergeField',_0x2d9958=>o(_0x1be03f,'ELEMENT_MERGE_FIELD',_0x2d9958)),_0x24ec02['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x307ebc=>o(_0x1be03f,'ELEMENT_MERGE_FIELD',_0x307ebc)),_0x24ec02['descriptionFactory']['registerDescriptionCallback'](_0x1e2322=>{if('insertion'!=_0x1e2322['type']&&'deletion'!=_0x1e2322['type'])return;const _0x1b32d3=_0x1e2322['getContainedElement']();if(null==_0x1b32d3)return;const _0x483805=_0x451f6d['plugins']['get']('MergeFieldsEditing');let _0x541a58;switch(_0x483805['getMergeFieldType'](_0x1b32d3)){case null:return;case'image':{const _0x181c67=_0x483805['unwrapAffixes'](_0x1b32d3['getAttribute']('src'));_0x541a58=_0x483805['getLabel'](_0x181c67)||_0x181c67;break;}default:{const _0x65d228=_0x1b32d3['getAttribute']('id');_0x541a58=_0x483805['getLabel'](_0x65d228)||_0x65d228;break;}}return'insertion'==_0x1e2322['type']?{'type':'insertion','content':o(_0x1be03f,'*Insert:*\x20%0','\x22'+_0x541a58+'\x22\x20'+o(_0x1be03f,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x1be03f,'*Remove:*\x20%0','\x22'+_0x541a58+'\x22\x20'+o(_0x1be03f,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x452242{['afterInit'](){const _0x4d1d5b=this['editor'],_0x5b7381=_0x4d1d5b['plugins']['get']('TrackChangesEditing');_0x4d1d5b['plugins']['has']('MultiLevelList')&&(_0x5b7381['enableDefaultAttributesIntegration']('multiLevelList'),_0x5b7381['descriptionFactory']['registerDescriptionCallback'](_0x27108c=>this['handleDescriptions'](_0x27108c)));}['handleDescriptions'](_0x1d1de1){const _0x582dbe=this['editor']['locale'],{data:_0x3ff595}=_0x1d1de1,_0x2db42f={'type':'format','content':''};if(_0x3ff595&&'listMarkerStyle'==_0x3ff595['key']){if(!_0x3ff595['oldValue'])return{'type':'format','content':o(_0x582dbe,'*Set\x20format:*\x20%0',o(_0x582dbe,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3ff595['newValue']+')'};if(!_0x3ff595['newValue']){let _0xd9c6e6=_0x1d1de1['head'];for(;_0xd9c6e6;){if(_0xd9c6e6['data']&&'listType'==_0xd9c6e6['data']['key']&&_0xd9c6e6['data']['newValue'])return _0x2db42f;_0xd9c6e6=_0xd9c6e6['next'];}return{'type':'format','content':o(_0x582dbe,'*Remove\x20format:*\x20%0',o(_0x582dbe,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3ff595['oldValue']+')'};}}}}class bt extends _0x452242{['afterInit'](){const _0x590177=this['editor'];if(!_0x590177['plugins']['has']('PageBreakEditing'))return;_0x590177['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x48aec0=_0x590177['plugins']['get']('TrackChangesEditing'),_0xb25501=_0x590177['locale'];_0x48aec0['descriptionFactory']['registerElementLabel']('pageBreak',_0x28dc4f=>o(_0xb25501,'ELEMENT_PAGE_BREAK',_0x28dc4f));}}class yt extends _0x452242{['afterInit'](){const _0x5d2c31=this['editor'];if(!_0x5d2c31['plugins']['has']('Paragraph'))return;const _0x3eac23=_0x5d2c31['locale'],_0x44bfd2=_0x5d2c31['plugins']['get']('TrackChangesEditing');_0x44bfd2['descriptionFactory']['registerElementLabel']('paragraph',_0x141306=>o(_0x3eac23,'ELEMENT_PARAGRAPH',_0x141306)),_0x44bfd2['enableDefaultAttributesIntegration']('paragraph'),_0x44bfd2['enableCommand']('insertParagraph');const _0x53a4c2=_0x44bfd2['descriptionFactory'];_0x53a4c2['registerDescriptionCallback'](_0xcbcb41=>{if('insertion'!==_0xcbcb41['type'])return;const {start:_0x6da103,end:_0x226d0f}=_0xcbcb41['getFirstRange']();if(!_0x6da103['isTouching'](_0x226d0f)||!_0x6da103['nodeAfter'])return;const _0x57cfba=_0x5d2c31['model']['schema'],_0x536db2=_0x6da103['nodeAfter'];return _0x57cfba['isBlock'](_0x536db2)&&!_0x57cfba['isLimit'](_0x536db2)&&_0x57cfba['checkChild'](_0x536db2,'$text')?{'type':'insertion','content':o(_0x3eac23,'*Insert:*\x20%0',_0x53a4c2['getItemLabel'](_0x536db2,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cd42e=this['editor'],_0x34059e=_0x3cd42e['locale'];_0x3cd42e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x117bee=>{if('formatBlock'!=_0x117bee['type'])return;const {data:_0x5db587}=_0x117bee;return _0x5db587&&'paragraph'==_0x5db587['commandName']?{'type':'format','content':o(_0x34059e,'*Change\x20to:*\x20%0',o(_0x34059e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x452242{['afterInit'](){const _0x229fd1=this['editor'];_0x229fd1['commands']['get']('replaceSource')&&_0x229fd1['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x452242{['afterInit'](){const _0xe96239=this['editor'];if(!_0xe96239['plugins']['has']('RemoveFormatEditing'))return;_0xe96239['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e68b6=this['editor'];_0x2e68b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d57ed=>{if('formatBlock'!=_0x4d57ed['type']&&'formatInline'!=_0x4d57ed['type'])return;const {data:_0x3538ae}=_0x4d57ed;return _0x3538ae&&'removeFormat'==_0x3538ae['commandName']?{'type':'format','content':o(_0x2e68b6['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x452242{['afterInit'](){const _0x1ab66b=this['editor'];if(!_0x1ab66b['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5a7c8e=_0x1ab66b['plugins']['get']('TrackChangesEditing');_0x5a7c8e['enableCommand']('goToPreviousRestrictedEditingException'),_0x5a7c8e['enableCommand']('goToNextRestrictedEditingException');const _0x528b53=_0x1ab66b['plugins']['get']('RestrictedEditingModeEditing');_0x528b53['enableCommand']('trackChanges'),_0x528b53['enableCommand']('acceptSuggestion'),_0x528b53['enableCommand']('discardSuggestion'),_0x528b53['enableCommand']('acceptAllSuggestions'),_0x528b53['enableCommand']('discardAllSuggestions'),_0x528b53['enableCommand']('acceptSelectedSuggestions'),_0x528b53['enableCommand']('discardSelectedSuggestions');}}class At extends _0x452242{['afterInit'](){const _0x498edf=this['editor'];if(!_0x498edf['plugins']['has']('ShiftEnter'))return;const _0x3f61ce=_0x498edf['plugins']['get']('TrackChangesEditing');_0x3f61ce['enableCommand']('shiftEnter'),_0x3f61ce['descriptionFactory']['registerElementLabel']('softBreak',_0x5977c3=>o(_0x498edf['locale'],'ELEMENT_LINE_BREAK',_0x5977c3));}}function an(_0x4ff309,_0x544917,_0x3354e3){const _0x385242=[];for(const _0x201527 of _0x544917['getItems']())_0x201527['hasAttribute'](_0x4ff309)&&_0x385242['push'](_0x3354e3['createRangeOn'](_0x201527));return _0x385242;}class _t extends _0x452242{['afterInit'](){const _0x5a5be7=this['editor'],_0x5adee7=_0x5a5be7['plugins']['get']('TrackChangesEditing');_0x5a5be7['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x5adee7['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0xf58541=this['editor'],_0x5da2dc=_0xf58541['model'],_0x30a178=_0xf58541['locale'],_0x400829=_0xf58541['plugins']['get']('TrackChangesEditing'),_0x1f315c='restrictedEditingException',_0x11b96d=_0xf58541['commands']['get'](_0x1f315c);_0x400829['enableCommand'](_0x1f315c,(_0x17f35c,_0x24c0b5={})=>{const _0x46e2f6=_0x5da2dc['document']['selection'];if(_0x46e2f6['isCollapsed'])return void _0x17f35c(_0x24c0b5);const _0x36cad2=void 0x0!==_0x24c0b5['forceValue']?_0x24c0b5['forceValue']:!_0x11b96d['value'];_0x5da2dc['change'](()=>{const _0x4b311b=Array['from'](_0x46e2f6['getRanges']());for(const _0x2e2098 of _0x4b311b){const _0x5cc643=_0x36cad2?[_0x2e2098]:an(_0x1f315c,_0x2e2098,_0x5da2dc);for(const _0x5eb9d6 of _0x5cc643)_0x400829['markInlineFormat'](_0x5eb9d6,{'commandName':_0x1f315c,'commandParams':[{'forceValue':_0x36cad2}]});}});}),_0x400829['descriptionFactory']['registerDescriptionCallback'](_0x14e315=>{if('formatBlock'!=_0x14e315['type']&&'formatInline'!=_0x14e315['type'])return;const {data:_0x4b88f1}=_0x14e315;return _0x4b88f1&&_0x4b88f1['commandName']==_0x1f315c?_0x4b88f1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x30a178,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x30a178,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x31f595=this['editor'],_0x5925c9=_0x31f595['locale'],_0x330cdc=_0x31f595['plugins']['get']('TrackChangesEditing'),_0x21890c='restrictedEditingExceptionBlock',_0x3dccdd=this['editor']['commands']['get'](_0x21890c);_0x330cdc['enableCommand'](_0x21890c,(_0x3ad028,_0xb1ceac={})=>{const _0x40d065=this['editor']['model']['document']['selection'],_0x43a0b7=_0xb1ceac&&void 0x0!==_0xb1ceac['forceValue']?_0xb1ceac['forceValue']:!_0x3dccdd['value'];let _0x5088c7=[];if(_0x43a0b7){const _0x4d8bfd=Array['from'](_0x40d065['getSelectedBlocks']())['filter'](_0x209385=>function(_0xd9259c){return!!_0xd9259c['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x209385)||function(_0x19c167,_0x225d5f){const _0x1f9f3e=_0x225d5f['createContext'](_0x19c167['parent']);if(!_0x225d5f['checkChild'](_0x1f9f3e,'restrictedEditingException'))return!0x1;if(!_0x225d5f['checkChild'](_0x1f9f3e['push']('restrictedEditingException'),_0x19c167))return!0x1;return!0x0;}(_0x209385,this['editor']['model']['schema']));_0x5088c7=to(_0x4d8bfd,_0x31f595['model']);}else{const _0x24d3b3=Array['from'](_0x40d065['getSelectedBlocks']())['map'](_0x5a5b2b=>function(_0x21ed2a){let _0x3bb624=_0x21ed2a;for(;_0x3bb624['parent'];){if('restrictedEditingException'==_0x3bb624['parent']['name'])return _0x3bb624;_0x3bb624=_0x3bb624['parent'];}return null;}(_0x5a5b2b))['filter'](_0x58919e=>!!_0x58919e);_0x5088c7=to(_0x24d3b3,_0x31f595['model']);}_0x31f595['model']['change'](()=>{for(const _0x18f0ca of _0x5088c7)_0x330cdc['markBlockFormat'](_0x18f0ca,{'commandName':_0x21890c,'commandParams':[{'forceValue':_0x43a0b7}]});});}),_0x330cdc['descriptionFactory']['registerDescriptionCallback'](_0x4dc288=>{const {data:_0x232909}=_0x4dc288;if(_0x232909&&_0x232909['commandName']==_0x21890c)return _0x232909['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5925c9,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5925c9,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x452242{['afterInit'](){const _0x309acf=this['editor'];if(!_0x309acf['plugins']['has']('Style')||!_0x309acf['plugins']['has']('DataSchema'))return;const _0x50a5af=_0x309acf['plugins']['get']('TrackChangesEditing'),_0x5c1a74=_0x309acf['locale'],_0x3569ff=_0x309acf['config']['get']('style')||{},_0x15f329=_0x309acf['plugins']['get']('GeneralHtmlSupport'),_0x4a2831=_0x309acf['plugins']['get']('StyleUtils')['normalizeConfig'](_0x309acf['plugins']['get']('DataSchema'),_0x3569ff['definitions']);_0x50a5af['enableDefaultAttributesIntegration']('style');const _0xef7b1e=new Set();for(const _0x37adc9 of _0x4a2831['block']){const _0x4d450a=_0x15f329['getGhsAttributeNameForElement'](_0x37adc9['element']);_0xef7b1e['add'](_0x4d450a);}const _0x58196b=new Set();for(const _0x3e5580 of _0x4a2831['inline']){const _0x459052=_0x15f329['getGhsAttributeNameForElement'](_0x3e5580['element']);_0x58196b['add'](_0x459052);for(const _0x3de324 of _0x3e5580['ghsAttributes'])_0x58196b['add'](_0x3de324);}for(const _0x265efe of _0xef7b1e)_0x50a5af['descriptionFactory']['registerAttributeLabel'](_0x265efe,o(_0x5c1a74,'FORMAT_STYLE'));for(const _0x382f13 of _0x58196b)_0x50a5af['descriptionFactory']['registerAttributeLabel'](_0x382f13,o(_0x5c1a74,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d1bfe=this['editor'],_0x39a5c8=_0x3d1bfe['locale'];_0x3d1bfe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43567f=>{if('formatBlock'!=_0x43567f['type']&&'formatInline'!=_0x43567f['type'])return;const {data:_0x5ef772}=_0x43567f;return _0x5ef772&&'style'===_0x5ef772['commandName']?_0x5ef772['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x39a5c8,'*Set\x20format:*\x20%0',_0x5ef772['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x39a5c8,'*Remove\x20format:*\x20%0',_0x5ef772['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x452242{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x541466){super(_0x541466),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5928a3=this['editor'],_0x1f64b4=_0x5928a3['model']['document']['selection'];if(!_0x5928a3['plugins']['has']('TableEditing'))return;const _0x722c3f=_0x5928a3['locale'],_0x399a2d=_0x5928a3['plugins']['get']('TrackChangesEditing'),_0x1c7a12=_0x5928a3['plugins']['get']('TableUtils');_0x399a2d['descriptionFactory']['registerElementLabel']('table',_0x364293=>o(_0x722c3f,'ELEMENT_TABLE',_0x364293)),this['_setupColumnsRowsFixing'](),_0x399a2d['enableCommand']('insertTable'),_0x399a2d['enableCommand']('selectTableRow'),_0x399a2d['enableCommand']('selectTableColumn');for(const _0x39308c of['insertTableRowAbove','insertTableRowBelow']){const _0x4313ef=_0x5928a3['commands']['get'](_0x39308c);_0x399a2d['enableCommand'](_0x39308c,_0x363c61=>{_0x5928a3['model']['change'](_0x47c91c=>{_0x363c61();const _0x33f9af='above'===_0x4313ef['order'],_0x3888e7=_0x1c7a12['getSelectionAffectedTableCells'](_0x1f64b4),_0x2debaf=_0x1c7a12['getRowIndexes'](_0x3888e7),_0x516332=_0x33f9af?_0x2debaf['first']-0x1:_0x2debaf['last']+0x1,_0x1aabec=_0x3888e7[0x0]['findAncestor']('table'),_0x17a50b=_0x1c7a12['createTableWalker'](_0x1aabec,{'startRow':_0x516332,'endRow':_0x516332}),_0x50dd8e=Array['from'](_0x17a50b)['map'](_0x1ebb05=>_0x47c91c['createRangeOn'](_0x1ebb05['cell']));_0x399a2d['markMultiRangeInsertion'](_0x50dd8e,'tableRow');});});}for(const _0x243e05 of['insertTableColumnLeft','insertTableColumnRight']){const _0x12e02d=_0x5928a3['commands']['get'](_0x243e05);_0x399a2d['enableCommand'](_0x243e05,_0x557480=>{_0x5928a3['model']['change'](_0x2d586b=>{_0x557480();const _0x59b5f7='left'===_0x12e02d['order'],_0x2d99d7=_0x1c7a12['getSelectionAffectedTableCells'](_0x1f64b4),_0x353038=_0x1c7a12['getColumnIndexes'](_0x2d99d7),_0x92e3ff=_0x59b5f7?_0x353038['first']-0x1:_0x353038['last']+0x1,_0x928679=_0x2d99d7[0x0]['findAncestor']('table'),_0x5d5637=_0x1c7a12['createTableWalker'](_0x928679,{'startRow':0x0,'column':_0x92e3ff,'includeAllSlots':!0x1}),_0x2fafca=Array['from'](_0x5d5637)['map'](_0x336677=>_0x2d586b['createRangeOn'](_0x336677['cell']));_0x399a2d['markMultiRangeInsertion'](_0x2fafca,'tableColumn');});});}for(const _0x5e744d of['removeTableRow','removeTableColumn']){const _0x1ab9e7=_0x5e744d['substr'](0xb),_0x26ed80=_0x1ab9e7['toLowerCase'](),_0x2cbb8=_0x26ed80['substr'](0x0,0x3)+'span',_0x14ee98='table'+_0x1ab9e7,_0x3e39d5='min'+_0x1ab9e7,_0x303c14='max'+_0x1ab9e7;_0x399a2d['enableCommand'](_0x5e744d,()=>{_0x5928a3['model']['change'](_0x282ccf=>{const _0xf5c508=_0x1c7a12['getSelectionAffectedTableCells'](_0x1f64b4),_0x22aa47=_0xf5c508[0x0]['findAncestor']('table');let _0x4c62a6;if('removeTableRow'==_0x5e744d){const _0x3c6d34=_0x1c7a12['getRowIndexes'](_0xf5c508);_0x4c62a6={'startRow':_0x3c6d34['first'],'endRow':_0x3c6d34['last'],'includeAllSlots':!0x0};}else{const _0x2eedbe=_0x1c7a12['getColumnIndexes'](_0xf5c508);_0x4c62a6={'startColumn':_0x2eedbe['first'],'endColumn':_0x2eedbe['last'],'includeAllSlots':!0x0};}const _0x4c836f=_0x1c7a12['createTableWalker'](_0x22aa47,_0x4c62a6),_0x3d7faa=Array['from'](_0x4c836f)['map'](({cell:_0x39f48f})=>_0x39f48f),_0x1d0351=_e(_0x3d7faa['filter'](_0x49427b=>_0x49427b['hasAttribute'](_0x2cbb8))),_0x2b45df=_e(_0x3d7faa['filter'](_0xdaec7e=>!_0xdaec7e['hasAttribute'](_0x2cbb8)))['map'](_0x554ed0=>_0x282ccf['createRangeOn'](_0x554ed0)),_0x4ba754=_0x399a2d['markMultiRangeDeletion'](_0x2b45df,_0x14ee98);if(_0x4ba754&&('tableRow'==_0x4ba754['subType']||'tableColumn'==_0x4ba754['subType'])){const _0x12595a=this['_getSuggestionCoords'](_0x4ba754);for(const _0x20c5a8 of _0x1d0351){const _0x37e900=_0x282ccf['createRangeOn'](_0x20c5a8),_0x3e108d=_0x1c7a12['getCellLocation'](_0x20c5a8),_0x597ea7=_0x20c5a8['getAttribute'](_0x2cbb8)-0x1,_0x5382eb=_0x12595a[_0x3e39d5],_0x4d8b6c=_0x12595a[_0x303c14];_0x5382eb<=_0x3e108d[_0x26ed80]&&_0x3e108d[_0x26ed80]+_0x597ea7<=_0x4d8b6c&&_0x4ba754['addRange'](_0x37e900);}}});});}function _0x568b2a(_0x2bc3d8){const _0x5d8575=Array['from'](_0x1f64b4['getRanges']())['map'](_0x34f3ad=>_0x1506cc['fromRange'](_0x34f3ad));_0x5928a3['model']['change'](_0x2398ad=>{const _0x48cc10=_0x2398ad['batch'];_0x2bc3d8=_0x2bc3d8['filter'](_0x4d117f=>'$graveyard'!=_0x4d117f['root']['rootName']),_0x2398ad['setSelection'](_0x2bc3d8),_0x5928a3['commands']['get']('removeTableRow')['refresh'](),_0x5928a3['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5928a3['model']['enqueueChange'](()=>{_0x5928a3['model']['enqueueChange'](_0x48cc10,_0x26c684=>{const _0x4d2b2b=_0x5d8575['filter'](_0x3f7402=>'$graveyard'!=_0x3f7402['root']['rootName']);_0x4d2b2b['length']>0x0&&_0x26c684['setSelection'](_0x4d2b2b);for(const _0x5cc5d4 of _0x5d8575)_0x5cc5d4['detach']();});});});}function _0x34a607(_0x2ccc2a){_0x5928a3['model']['change'](_0x4814f5=>{const _0x3d27bc=Array['from'](_0x1f64b4['getRanges']())['map'](_0x444e30=>_0x1506cc['fromRange'](_0x444e30)),_0x5d62e6=[];for(const _0x316bba of _0x2ccc2a)for(const _0x43b65d of _0x316bba['getItems']({'shallow':!0x0}))_0x5d62e6['push'](_0x43b65d);for(const _0x4ea2b1 of _0x5d62e6)'$graveyard'!=_0x4ea2b1['root']['rootName']&&(_0x4814f5['setSelection'](_0x4814f5['createPositionAt'](_0x4ea2b1,0x0)),_0x5928a3['commands']['get']('removeTableColumn')['refresh'](),_0x5928a3['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3e5b0a=_0x3d27bc['filter'](_0x2430de=>'$graveyard'!=_0x2430de['root']['rootName']);_0x3e5b0a['length']>0x0&&_0x4814f5['setSelection'](_0x3e5b0a);for(const _0x310573 of _0x3d27bc)_0x310573['detach']();});}function _0x5663b5(_0xce6664,_0x2f24f2){return _0x2f24f2['every'](_0x497916=>_0xce6664['some'](_0x5a61c2=>_0x5a61c2['end']['isEqual'](_0x497916['start'])||_0x497916['end']['isEqual'](_0x5a61c2['start'])));}function _0x4786b8(_0x3fc6a9,_0x46adad){return!_0x3fc6a9['some'](_0xb5fc86=>_0x46adad['some'](_0x22022e=>_0xb5fc86['isIntersecting'](_0x22022e)))&&_0x3fc6a9['some'](_0x5487f1=>_0x46adad['some'](_0x1a9cfe=>_0x5487f1['end']['isTouching'](_0x1a9cfe['start'])));}_0x399a2d['descriptionFactory']['registerDescriptionCallback'](_0x276325=>{if('insertion'!=_0x276325['type']&&'deletion'!=_0x276325['type'])return;const _0x22b65f=_0x276325['getContainedElement']();if(null!=_0x22b65f&&_0x22b65f['is']('element','table')){if('insertion'==_0x276325['type']){const _0x342dd4=_0x276325['getItems']()['filter'](_0x536be9=>_0x536be9['is']('$textProxy'))['map'](_0x49e2e3=>_0x49e2e3['data']);if(_0x342dd4['length'])return{'type':'insertion','content':o(_0x722c3f,'*Insert:*\x20%0',o(_0x722c3f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x342dd4['join']('\x20')+'\x22'))};}if('deletion'==_0x276325['type']){const _0x3f2aa4=_0x276325['getItems']()['filter'](_0x1825de=>_0x1825de['is']('$textProxy'))['map'](_0x53575b=>_0x53575b['data']);if(_0x3f2aa4['length'])return{'type':'deletion','content':o(_0x722c3f,'*Remove:*\x20%0',o(_0x722c3f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3f2aa4['join']('\x20')+'\x22'))};}}}),_0x399a2d['descriptionFactory']['registerDescriptionCallback'](_0x2c0b0c=>{if('tableRow'==_0x2c0b0c['subType']){const _0x3bf00a=_0x2c0b0c['getItems']()['filter'](_0x5177a6=>_0x5177a6['is']('$textProxy'))['map'](_0x4d5969=>_0x4d5969['data']),_0x48a89a=this['_getSuggestionCoords'](_0x2c0b0c),_0x57af79=_0x48a89a['maxRow']-_0x48a89a['minRow']+0x1;if('insertion'==_0x2c0b0c['type'])return _0x3bf00a['length']?{'type':'insertion','content':o(_0x722c3f,'*Insert:*\x20%0',o(_0x722c3f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x57af79,'\x22'+_0x3bf00a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x722c3f,'*Insert:*\x20%0',o(_0x722c3f,'ELEMENT_TABLE_ROW',_0x57af79))};if('deletion'==_0x2c0b0c['type'])return _0x3bf00a['length']?{'type':'deletion','content':o(_0x722c3f,'*Remove:*\x20%0',o(_0x722c3f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x57af79,'\x22'+_0x3bf00a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x722c3f,'*Remove:*\x20%0',o(_0x722c3f,'ELEMENT_TABLE_ROW',_0x57af79))};}if('tableColumn'==_0x2c0b0c['subType']){const _0x53c92a=_0x2c0b0c['getItems']()['filter'](_0x10fa30=>_0x10fa30['is']('$textProxy'))['map'](_0x3f22ba=>_0x3f22ba['data']),_0x47fdec=this['_getSuggestionCoords'](_0x2c0b0c),_0x461e27=_0x47fdec['maxColumn']-_0x47fdec['minColumn']+0x1;if('insertion'==_0x2c0b0c['type'])return _0x53c92a['length']?{'type':'insertion','content':o(_0x722c3f,'*Insert:*\x20%0',o(_0x722c3f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x461e27,'\x22'+_0x53c92a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x722c3f,'*Insert:*\x20%0',o(_0x722c3f,'ELEMENT_TABLE_COLUMN',_0x461e27))};if('deletion'==_0x2c0b0c['type'])return _0x53c92a['length']?{'type':'deletion','content':o(_0x722c3f,'*Remove:*\x20%0',o(_0x722c3f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x461e27,'\x22'+_0x53c92a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x722c3f,'*Remove:*\x20%0',o(_0x722c3f,'ELEMENT_TABLE_COLUMN',_0x461e27))};}}),_0x399a2d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x568b2a),_0x399a2d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x568b2a),_0x399a2d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x34a607),_0x399a2d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x34a607),_0x399a2d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5663b5),_0x399a2d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5663b5),_0x399a2d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4786b8),_0x399a2d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4786b8);}['_acceptFormatSuggestionCallbackFactory'](){const _0x16dfcb=this['editor'],_0x5e77d1=_0x16dfcb['model']['document']['selection'];return(_0x8f28e7,_0x378e45)=>{_0x16dfcb['model']['change'](_0x18d5ad=>{const {commandName:_0x3e98ec,commandParams:_0x58c320}=_0x378e45;let _0x30f34a=_0x8f28e7[0x0]['end']['nodeBefore'];_0x58c320&&_0x58c320[0x0]&&!0x1===_0x58c320[0x0]['forceValue']&&(_0x30f34a=_0x8f28e7[0x0]['start']['nodeAfter']);const _0x7fa16=_0x18d5ad['createRangeIn'](_0x30f34a);if('$graveyard'==_0x7fa16['root']['rootName'])return;const _0x2a7d8e=Array['from'](_0x5e77d1['getRanges']())['map'](_0x2b7c1a=>_0x1506cc['fromRange'](_0x2b7c1a));_0x18d5ad['setSelection'](_0x7fa16),_0x16dfcb['commands']['get'](_0x3e98ec)['refresh'](),_0x58c320['push']({'forceDefaultExecution':!0x0}),_0x16dfcb['execute'](_0x3e98ec,..._0x58c320);const _0x27c9d3=_0x2a7d8e['filter'](_0x543ac7=>'$graveyard'!=_0x543ac7['root']['rootName']);_0x27c9d3['length']>0x0&&_0x18d5ad['setSelection'](_0x27c9d3);for(const _0x2358d3 of _0x2a7d8e)_0x2358d3['detach']();});};}['_getCoordsForCells'](_0xb07a3c){const _0x5a2f66=this['editor']['plugins']['get']('TableUtils');let _0x3bd8c0=Number['MAX_SAFE_INTEGER'],_0xa9b1c8=Number['MIN_SAFE_INTEGER'],_0x4b8900=Number['MAX_SAFE_INTEGER'],_0x274143=Number['MIN_SAFE_INTEGER'];for(const _0x5bff77 of _0xb07a3c){if('$graveyard'==_0x5bff77['root']['rootName'])continue;const {row:_0x22e79a,column:_0x419809}=_0x5a2f66['getCellLocation'](_0x5bff77),_0xf48f9f=_0x5bff77['hasAttribute']('rowspan')?_0x5bff77['getAttribute']('rowspan')-0x1:0x0,_0xec925=_0x5bff77['hasAttribute']('colspan')?_0x5bff77['getAttribute']('colspan')-0x1:0x0;_0x3bd8c0=_0x22e79a<_0x3bd8c0?_0x22e79a:_0x3bd8c0,_0xa9b1c8=_0x22e79a+_0xf48f9f>_0xa9b1c8?_0x22e79a+_0xf48f9f:_0xa9b1c8,_0x4b8900=_0x419809<_0x4b8900?_0x419809:_0x4b8900,_0x274143=_0x419809+_0xec925>_0x274143?_0x419809+_0xec925:_0x274143;}return{'minRow':_0x3bd8c0,'maxRow':_0xa9b1c8,'minColumn':_0x4b8900,'maxColumn':_0x274143};}['_setupColumnsRowsFixing'](){const _0x5c7e6b=this['editor'],_0x2ea2ba=_0x5c7e6b['plugins']['get']('TrackChangesEditing'),_0x1c94c9=_0x5c7e6b['plugins']['get']('TableUtils');_0x5c7e6b['model']['document']['on']('change:data',()=>{const _0x30b704=Array['from'](_0x5c7e6b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3bba41,data:_0x3fdb38}of _0x30b704){const {group:_0x57ce13,id:_0x1d9b45,subType:_0x3610bf}=_0x2ea2ba['_splitMarkerName'](_0x3bba41);if('suggestion'!=_0x57ce13)continue;if(null!=_0x3fdb38['oldRange'])continue;const _0x3573cf=_0x2ea2ba['getSuggestion'](_0x1d9b45);this['_tablePostFixingSubtypes']['includes'](_0x3610bf)&&this['_tableSuggestions']['add'](_0x3573cf);}},{'priority':'low'});const _0x35e905=(_0x235e0a,_0x259647)=>{let _0x58e92a=!0x1;const _0x3a52ca=_0x259647['createRangeOn'](_0x235e0a),_0x462c64=_0x235e0a['findAncestor']('table'),_0x4b5e55=_0x1c94c9['getCellLocation'](_0x235e0a);for(const _0xf68c61 of this['_tableSuggestions']){const _0x1e5101=_0xf68c61['subType'],_0x5e627b=_0x1e5101['startsWith']('tablePaste'),_0x5214b3=_0x1e5101['substr'](_0x5e627b?0xa:0x5),_0x30ed36=_0x5214b3['toLowerCase'](),_0x378545=_0x30ed36['substr'](0x0,0x3)+'span',_0x3d0716='min'+_0x5214b3,_0x77d460='max'+_0x5214b3;if(!_0xf68c61['isInContent'])continue;if(_0x462c64!=_0xf68c61['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xf68c61['isIntersectingWithRange'](_0x3a52ca))continue;const _0x3c5535=_0x235e0a['hasAttribute'](_0x378545)?_0x235e0a['getAttribute'](_0x378545)-0x1:0x0,_0x64e91a=this['_getSuggestionCoords'](_0xf68c61),_0x4cc902=_0x64e91a[_0x3d0716],_0x5727cc=_0x64e91a[_0x77d460];_0x4cc902<=_0x4b5e55[_0x30ed36]&&_0x4b5e55[_0x30ed36]+_0x3c5535<=_0x5727cc&&(_0xf68c61['addRange'](_0x3a52ca),_0x58e92a=!0x0);}return _0x58e92a;};_0x5c7e6b['model']['document']['registerPostFixer'](_0x8d197f=>{let _0x589c81=!0x1;for(const _0x12ac77 of _0x5c7e6b['model']['document']['differ']['getChanges']())if('insert'==_0x12ac77['type']){if('tableRow'==_0x12ac77['name']){for(const _0x55f75e of _0x12ac77['position']['nodeAfter']['getChildren']())_0x589c81=_0x589c81||_0x35e905(_0x55f75e,_0x8d197f);}else'tableCell'==_0x12ac77['name']&&(_0x589c81=_0x589c81||_0x35e905(_0x12ac77['position']['nodeAfter'],_0x8d197f));}return _0x589c81;});}['_getSuggestionCoords'](_0x3f1f82){return this['_getCoordsForCells'](_0x3f1f82['getRanges']()['map'](_0x43c3b0=>_0x43c3b0['start']['nodeAfter']));}}function _e(_0x1702e0){return Array['from'](new Set(_0x1702e0)['values']());}class $t extends _0x452242{static get['requires'](){return[Nt];}['afterInit'](){const _0x3a61fd=this['editor'],_0x3f8f94=_0x3a61fd['model']['document']['selection'],_0x59a87b=_0x3a61fd['locale'];if(!_0x3a61fd['plugins']['has']('TableEditing'))return;const _0x9579f3=_0x3a61fd['plugins']['get']('TrackChangesEditing'),_0x1310e7=_0x3a61fd['plugins']['get']('TableUtils'),_0x5cf663=_0x3a61fd['plugins']['get'](Nt);_0x5cf663['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x9579f3['enableCommand']('mergeTableCells',()=>{const _0xccf9a=_0x1310e7['getSelectionAffectedTableCells'](_0x3a61fd['model']['document']['selection']);_0x3a61fd['model']['change'](()=>{_0x9579f3['markMultiRangeBlockFormat'](_0xccf9a,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3a61fd['commands']['get']('mergeTableCells')['on']('execute',(_0xbedbe5,_0x2a8e82)=>{_0x3a61fd['commands']['get']('trackChanges')['value']&&(_0x2a8e82['length']>0x0&&_0x2a8e82[_0x2a8e82['length']-0x1]&&_0x2a8e82[_0x2a8e82['length']-0x1]['forceDefaultExecution']||_0x9579f3['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xbedbe5['stop']());},{'priority':'highest'});for(const _0x35bc3d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xd69e4b=_0x3a61fd['commands']['get'](_0x35bc3d);_0x9579f3['enableCommand'](_0x35bc3d,()=>{const _0xc96453=_0x3a61fd['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x172d1c=>_0x172d1c['is']('element','tableCell')),_0x3b6df9=_0xd69e4b['value'];_0x3a61fd['model']['change'](()=>{_0x9579f3['markMultiRangeBlockFormat']([_0xc96453,_0x3b6df9],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x252009 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x54d37d=_0x3a61fd['commands']['get'](_0x252009);_0x9579f3['enableCommand'](_0x252009,()=>{const _0x754516=_0x1310e7['getSelectionAffectedTableCells'](_0x3a61fd['model']['document']['selection'])[0x0],_0x2270e8=_0x754516['findAncestor']('table'),{column:_0x5b9995,row:_0x16cc81}=_0x1310e7['getCellLocation'](_0x754516);let _0x208a67=[];if('horizontally'==_0x54d37d['direction']){const _0x1f159f=_0x1310e7['createTableWalker'](_0x2270e8,{'startRow':_0x16cc81,'endRow':_0x16cc81,'includeAllSlots':!0x0});_0x208a67=Array['from'](_0x1f159f)['map'](_0x1b9fae=>_0x1b9fae['cell']);}else{const _0x2cf154=_0x1310e7['createTableWalker'](_0x2270e8,{'column':_0x5b9995,'includeAllSlots':!0x0});_0x208a67=Array['from'](_0x2cf154)['map'](_0x3d85f8=>_0x3d85f8['cell']);}_0x3a61fd['model']['change'](_0xdba32=>{_0x9579f3['markBlockFormat'](_0xdba32['createRangeOn'](_0x754516),{'commandName':_0x252009,'commandParams':[]},_0x208a67,_0x252009);});});}_0x9579f3['descriptionFactory']['registerDescriptionCallback'](_0x4c12da=>{if('formatBlock'!=_0x4c12da['type']&&'formatInline'!=_0x4c12da['type'])return;const {data:_0x34612f}=_0x4c12da;return _0x34612f&&'mergeTableCells'==_0x34612f['commandName']?{'type':'format','content':o(_0x59a87b,'*Merge\x20cells*')}:void 0x0;}),_0x9579f3['descriptionFactory']['registerDescriptionCallback'](_0x3a1139=>{if('formatBlock'!=_0x3a1139['type']&&'formatInline'!=_0x3a1139['type'])return;const {data:_0x528eb7}=_0x3a1139;return _0x528eb7?'splitTableCellVertically'==_0x528eb7['commandName']?{'type':'format','content':o(_0x59a87b,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x528eb7['commandName']?{'type':'format','content':o(_0x59a87b,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2cad3e=_0x5cf663['_acceptFormatSuggestionCallbackFactory']();for(const _0x2709d3 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x9579f3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2709d3,'accept',_0x2cad3e);for(const _0x399b91 of['splitTableCellVertically','splitTableCellHorizontally'])_0x9579f3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x399b91,'accept',_0x2cad3e);_0x9579f3['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2e6839=>{_0x3a61fd['model']['change'](_0x95a291=>{const _0x1f2f7f=Array['from'](_0x3f8f94['getRanges']())['map'](_0x123f18=>_0x1506cc['fromRange'](_0x123f18));_0x95a291['setSelection'](_0x2e6839),_0x3a61fd['commands']['get']('mergeTableCells')['refresh'](),_0x3a61fd['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x36c228=_0x1f2f7f['filter'](_0x4a3a95=>'$graveyard'!=_0x4a3a95['root']['rootName']);_0x36c228['length']>0x0&&_0x95a291['setSelection'](_0x36c228);for(const _0x2ec82b of _0x1f2f7f)_0x2ec82b['detach']();});});for(const _0x4108e6 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5d193d=_0x3a61fd['commands']['get'](_0x4108e6);_0x5d193d['on']('set:isEnabled',(_0x29f150,_0x4cdb9e,_0x118a8e)=>{if(_0x118a8e){const _0x2ed827=_0x3a61fd['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1a82c7=>_0x1a82c7['is']('element','tableCell'));this['_areMergableCells'](_0x5d193d['value'],_0x2ed827)||(_0x29f150['return']=!0x1,_0x29f150['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5237e4=this['editor']['commands']['get']('mergeTableCells'),_0x1afdec=this['editor']['plugins']['get']('TableUtils');if(!_0x5237e4['isEnabled'])return!0x1;const _0x5456ec=_0x1afdec['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x18b8b1 of _0x5456ec)for(const _0x4d9607 of _0x5456ec)if(_0x18b8b1!=_0x4d9607&&!this['_areMergableCells'](_0x18b8b1,_0x4d9607))return!0x1;return!0x0;}['_areMergableCells'](_0x1f2127,_0x2d74ba){const _0x1d93ae=this['editor']['plugins']['get']('TrackChangesEditing'),_0x757c08=this['editor']['model']['createRangeOn'](_0x1f2127),_0x5531e0=this['editor']['model']['createRangeOn'](_0x2d74ba),_0x28dc23=new Set(),_0x133a86=new Set();for(const _0x5b79cb of _0x1d93ae['getSuggestions']())if(('insertion'==_0x5b79cb['type']||'deletion'==_0x5b79cb['type']||'mergeTableCells'==_0x5b79cb['subType'])&&_0x5b79cb['isInContent']){for(const _0x30b1cb of _0x5b79cb['getRanges']())_0x30b1cb['containsRange'](_0x757c08,!0x0)&&_0x28dc23['add'](_0x5b79cb['type']+':'+_0x5b79cb['author']['id']),_0x30b1cb['containsRange'](_0x5531e0,!0x0)&&_0x133a86['add'](_0x5b79cb['type']+':'+_0x5b79cb['author']['id']);}if(_0x28dc23['size']!=_0x133a86['size'])return!0x1;for(const _0x4394de of _0x28dc23)if(!_0x133a86['has'](_0x4394de))return!0x1;return!0x0;}}class vt extends _0x452242{static get['requires'](){return[Nt];}['afterInit'](){const _0x39c7f8=this['editor'];if(!_0x39c7f8['plugins']['has']('TableEditing'))return;const _0x5c5d4d=_0x39c7f8['locale'],_0xeeb0d=_0x39c7f8['plugins']['get']('TrackChangesEditing');_0xeeb0d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xeeb0d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xeeb0d['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5c5d4d,'FORMAT_HEADER_ROW')),_0xeeb0d['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5c5d4d,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x398ed3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x43c2c1=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x398ed3['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x43c2c1),_0x398ed3['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x43c2c1),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x28e1af=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f53b7=this['editor']['plugins']['get']('TableUtils');function _0x147b44({showActiveMarker:_0x2e60e2=!0x0,setDataAttribute:_0x4bd8e2=!0x0}={}){return(_0x1d0dc6,_0x2f4fa0,_0x408470)=>{const {type:_0x9d5838,id:_0x146f2c}=_0x28e1af['_splitMarkerName'](_0x2f4fa0['markerName']);if(!_0x28e1af['hasSuggestion'](_0x146f2c))return;const _0x483476=_0x28e1af['getSuggestion'](_0x146f2c),_0x2af24f=_0x483476['data'];if('formatBlock'!=_0x483476['type']||!_0x2af24f||'setTableColumnHeader'!=_0x2af24f['commandName'])return;if(_0x2f4fa0['item'])return void _0x1d0dc6['stop']();if(!_0x408470['consumable']['consume'](_0x2f4fa0['markerRange'],_0x1d0dc6['name']))return;const _0x1b450a=_0x2f4fa0['markerRange']['start']['nodeAfter'],_0x541549=_0x2f4fa0['markerRange']['end']['nodeBefore'],_0x1b0692=_0x1b450a['parent']['parent'],{column:_0x2ff607}=_0x3f53b7['getCellLocation'](_0x1b450a),{column:_0x3e4773}=_0x3f53b7['getCellLocation'](_0x541549);for(let _0x5caba1=_0x2ff607;_0x5caba1<=_0x3e4773;_0x5caba1++){const _0x285921=_0x3f53b7['createTableWalker'](_0x1b0692,{'column':_0x5caba1,'includeAllSlots':!0x1});for(const _0x4540d4 of _0x285921){const _0x3c4d53=_0x4540d4['cell'],_0x13b831=_0x408470['mapper']['toViewElement'](_0x3c4d53);_0x408470['writer']['addClass']('ck-suggestion-marker-'+_0x9d5838,_0x13b831),_0x4bd8e2&&_0x408470['writer']['setAttribute']('data-suggestion',_0x146f2c,_0x13b831),_0x408470['mapper']['bindElementToMarker'](_0x13b831,_0x2f4fa0['markerName']),_0x2e60e2&&(_0x28e1af['activeMarkers']['includes'](_0x2f4fa0['markerName'])?_0x408470['writer']['addClass']('ck-suggestion-marker--active',_0x13b831):_0x408470['writer']['removeClass']('ck-suggestion-marker--active',_0x13b831));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x147b44(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1a3cbc,_0x491aa9,_0x108da6)=>{_0x108da6['options']['showSuggestionHighlights']&&_0x147b44({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1a3cbc,_0x491aa9,_0x108da6);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x368ecf,_0x54c7b8,_0x19014a)=>{const {type:_0x474d6b,id:_0x11c772}=_0x28e1af['_splitMarkerName'](_0x54c7b8['markerName']);if(!_0x28e1af['hasSuggestion'](_0x11c772))return;const _0x30f633=_0x28e1af['getSuggestion'](_0x11c772),_0x2a7c24=_0x30f633['data'];if('formatBlock'!=_0x30f633['type']||!_0x2a7c24||'setTableColumnHeader'!=_0x2a7c24['commandName'])return;const _0x54e16a=_0x19014a['mapper']['markerNameToElements'](_0x54c7b8['markerName']);if(_0x54e16a){for(const _0x1179c6 of _0x54e16a)_0x19014a['writer']['removeClass']('ck-suggestion-marker-'+_0x474d6b,_0x1179c6),_0x19014a['writer']['removeClass']('ck-suggestion-marker--active',_0x1179c6),_0x19014a['writer']['removeAttribute']('data-suggestion',_0x1179c6),_0x19014a['mapper']['unbindElementFromMarkerName'](_0x1179c6,_0x54c7b8['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x2a0c1e=this['editor'],_0x1744a9=_0x2a0c1e['locale'];function _0x5dd04b(_0x475b55){return{'type':'format','content':o(_0x1744a9,'*Format:*\x20%0',_0x475b55)};}_0x2a0c1e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2dcc02=>{if('formatBlock'!=_0x2dcc02['type'])return;const {data:_0x54bc06}=_0x2dcc02;if(_0x54bc06){if('setTableRowHeader'==_0x54bc06['commandName']){const _0x2823f6=_0x54bc06['commandParams'][0x0]['forceValue'];return _0x5dd04b(o(_0x1744a9,_0x2823f6?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x54bc06['commandName']){const _0x56b1f9=_0x54bc06['commandParams'][0x0]['forceValue'];return _0x5dd04b(o(_0x1744a9,_0x56b1f9?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x452242{['afterInit'](){const _0x580f5f=this['editor'],_0x412b15=_0x580f5f['locale'],_0xe5b19e=_0x580f5f['plugins']['get']('TrackChangesEditing');function _0x2a6f6a(_0x27deb8){return{'type':'format','content':''+o(_0x412b15,'*Set\x20table\x20type:*\x20%0',_0x27deb8)};}_0x580f5f['plugins']['has']('TableLayout')&&(_0xe5b19e['enableCommand']('insertTableLayout'),_0xe5b19e['enableDefaultAttributesIntegration']('tableType'),_0xe5b19e['descriptionFactory']['registerElementLabel'](_0x389798=>_0x389798['is']('element','table')&&'layout'===_0x389798['getAttribute']('tableType'),_0xa0e606=>o(_0x412b15,'ELEMENT_LAYOUT_TABLE',_0xa0e606)),_0xe5b19e['descriptionFactory']['registerDescriptionCallback'](_0x5575d2=>{const {data:_0x5b16f2}=_0x5575d2;if(_0x5b16f2&&'tableType'==_0x5b16f2['key'])switch(_0x5b16f2['newValue']){case'layout':return _0x2a6f6a(o(_0x412b15,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x2a6f6a(o(_0x412b15,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Re['map'](_0x204d47=>[_0x204d47,null]));class Bt extends _0x452242{static get['requires'](){return[Nt];}['afterInit'](){const _0x17314c=this['editor'];if(!_0x17314c['plugins']['has']('TableClipboard'))return;const _0x430de9=_0x17314c['plugins']['get']('TrackChangesEditing'),_0x41abd5=_0x17314c['plugins']['get']('TableUtils'),_0xf28e68=_0x17314c['plugins']['get'](Nt),_0x365382=_0x17314c['plugins']['get']('TableClipboard'),_0x3ab1a8=_0x17314c['plugins']['get']('TableSelection'),_0x4327dd=_0x17314c['plugins']['get'](_0x2f252d);_0xf28e68['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x17314c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x17314c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2ffe04=null,_0x4485b1=!0x1;_0x4327dd['on']('contentInsertion',(_0x34961b,_0x2afc72)=>{_0x4485b1='paste'===_0x2afc72['method'];}),_0x17314c['model']['on']('insertContent',(_0x48998e,_0x5478a9)=>{if(!_0x4485b1&&null===_0x3ab1a8['getSelectedTableCells']())return;const [_0x26c759,_0x177511]=_0x5478a9,_0x13b222=_0x5478a9[_0x5478a9['length']-0x1];_0x13b222&&_0x13b222['forceDefaultExecution']||_0x430de9['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x97d9a4,_0x9df531,_0x6e0d62,_0x5ead06,_0x3979f0){if(_0x9df531&&!_0x9df531['is']('documentSelection'))return!0x1;const _0x4c619f=_0x3979f0['getTableIfOnlyTableInContent'](_0x97d9a4,_0x6e0d62);if(!_0x4c619f||!Oe(_0x4c619f,void 0x0,_0x5ead06))return!0x1;const _0x4e5f5d=_0x5ead06['getSelectionAffectedTableCells'](_0x6e0d62['document']['selection']);if(!_0x4e5f5d['length'])return!0x1;const _0x565fa1=_0x4e5f5d[0x0]['findAncestor']('table'),_0x3a9232=_0x5ead06['getRowIndexes'](_0x4e5f5d),_0x1b1de4=_0x5ead06['getColumnIndexes'](_0x4e5f5d),_0x3ab5ce={'startRow':_0x3a9232['first'],'endRow':_0x3a9232['last'],'startColumn':_0x1b1de4['first'],'endColumn':_0x1b1de4['last']};return 0x1==_0x4e5f5d['length']&&(_0x3ab5ce['endRow']+=_0x5ead06['getRows'](_0x4c619f)-0x1,_0x3ab5ce['endColumn']+=_0x5ead06['getColumns'](_0x4c619f)-0x1),Oe(_0x565fa1,_0x3ab5ce,_0x5ead06);}(_0x26c759,_0x177511,_0x17314c['model'],_0x41abd5,_0x365382)&&(_0x48998e['stop'](),_0x2ffe04={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x17314c['model']['change'](()=>{_0x17314c['model']['insertContent'](_0x5478a9[0x0],_0x5478a9[0x1],_0x5478a9[0x2],{'forceDefaultExecution':!0x0});const _0x4d7d4e=_0x3da106(),{rowInsertionRanges:_0x148d58,columnInsertionRanges:_0x14ff41,insertionRanges:_0x2735da,deletionRanges:_0x35d23d,cells:_0x12e768}=_0x2ffe04;_0x148d58['length']&&_0x430de9['markMultiRangeInsertion'](_0x148d58,'tablePasteRow',{'tablePasteChainId':_0x4d7d4e}),_0x14ff41['length']&&_0x430de9['markMultiRangeInsertion'](_0x14ff41,'tablePasteColumn',{'tablePasteChainId':_0x4d7d4e}),_0x2735da['length']&&(_0x430de9['markMultiRangeInsertion'](_0x2735da,'tablePaste',{'tablePasteChainId':_0x4d7d4e,'skipNestingCheck':!0x0}),_0x2735da['forEach'](_0x282fff=>_0x282fff['detach']?.())),_0x35d23d['length']&&(_0x430de9['markMultiRangeDeletion'](_0x35d23d,'tablePaste',{'tablePasteChainId':_0x4d7d4e,'skipNestingCheck':!0x0}),_0x35d23d['forEach'](_0x597306=>_0x597306['detach']?.()));const _0x41d82b=_0x430de9['markMultiRangeBlockFormat'](_0x12e768['map'](({element:_0x1b5d14})=>_0x1b5d14),{'formatGroupId':_0x3da106()},[],'tablePasteCell',{'tablePasteChainId':_0x4d7d4e});if(_0x41d82b){const _0x548d74=_0x41d82b['getMarkers'](),_0x1850df=[];for(const {element:_0x484fe8,attributes:_0x105358}of _0x12e768){if(!_0x105358)continue;const _0x261881=_0x17314c['model']['createRangeOn'](_0x484fe8),_0x57025=_0x548d74['find'](_0x355051=>_0x355051['getRange']()['isEqual'](_0x261881));_0x57025&&_0x1850df['push']([_0x57025['name'],_0x105358]);}_0x1850df['length']&&_0x41d82b['setAttribute']('markerAttributes',Object['fromEntries'](_0x1850df));}_0x2ffe04=null;}));},{'priority':_0x1a1f89['high']+0xa}),_0x4327dd['on']('contentInsertion',()=>{_0x4485b1=!0x1;},{'priority':'lowest'}),_0x17314c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x47f93e,_0x4ca124)=>{const [_0x5424f3,_0x35ba94,,_0x2cf641]=_0x4ca124;if(!_0x2ffe04)return;_0x47f93e['stop']();const _0x54e144=_0x5424f3['cell'],_0x436dd7=_0x35ba94,_0x202f17=Be(_0x54e144),_0x295f6a=Be(_0x436dd7);_0x47f93e['return']=_0x54e144;let _0x443ed7=null,_0x1ed775=null;if(_0x295f6a||_0x202f17){if(_0x202f17&&!_0x295f6a){_0x2cf641['remove'](_0x54e144['getChild'](0x0));for(const _0x349088 of Array['from'](_0x436dd7['getChildren']()))_0x2cf641['insert'](_0x349088,_0x54e144,'end');const _0x5ecb48=_0x2ffe04['rowInsertionIndexes']['includes'](_0x5424f3['row']),_0x5b9736=_0x2ffe04['columnInsertionIndexes']['includes'](_0x5424f3['column']);_0x5ecb48||_0x5b9736||(_0x443ed7=_0x1506cc['fromRange'](_0x2cf641['createRangeIn'](_0x54e144)));}else _0x295f6a&&!_0x202f17&&(_0x1ed775=_0x2cf641['createRangeIn'](_0x54e144));}else{const _0x1a0a56=_0x2cf641['createElement']('tableCellSuggestion'),_0x4b03f2=_0x2cf641['createElement']('tableCellSuggestion');_0x2cf641['wrap'](_0x2cf641['createRangeIn'](_0x54e144),_0x4b03f2),_0x2cf641['insert'](_0x1a0a56,_0x54e144,0x0);for(const _0x5a1995 of Array['from'](_0x436dd7['getChildren']()))_0x2cf641['insert'](_0x5a1995,_0x1a0a56,'end');_0x443ed7=_0x1506cc['fromRange'](_0x2cf641['createRangeOn'](_0x1a0a56)),_0x1ed775=_0x1506cc['fromRange'](_0x2cf641['createRangeOn'](_0x4b03f2));}const _0x2d6591=Array['from'](_0x436dd7['getAttributes']())['filter'](([_0x199c00])=>Re['includes'](_0x199c00));_0x2ffe04['cells']['push']({'element':_0x54e144,'attributes':_0x2d6591['length']?Object['fromEntries'](_0x2d6591):null}),_0x443ed7&&_0x2ffe04['insertionRanges']['push'](_0x443ed7),_0x1ed775&&_0x2ffe04['deletionRanges']['push'](_0x1ed775);},{'priority':'high'}),_0x41abd5['on']('insertColumns',(_0x4298f6,_0x2b272d)=>{const [_0x21242,_0x11f99c={}]=_0x2b272d;if(!_0x2ffe04)return;const _0x384aa3=_0x11f99c['at']||0x0,_0x4c35a5=_0x11f99c['columns']||0x1;_0x2ffe04['columnInsertionIndexes']=new Array(_0x4c35a5)['fill'](_0x384aa3)['map']((_0x2c0440,_0x1429c4)=>_0x2c0440+_0x1429c4);for(const {cell:_0x26bbdc}of _0x41abd5['createTableWalker'](_0x21242,{'startColumn':_0x384aa3,'endColumn':_0x384aa3+_0x4c35a5-0x1}))_0x2ffe04['columnInsertionRanges']['push'](_0x17314c['model']['createRangeOn'](_0x26bbdc));},{'priority':'low'}),_0x41abd5['on']('insertRows',(_0x2b59f1,_0x297ce0)=>{const [_0x175f89,_0x498f9c={}]=_0x297ce0;if(!_0x2ffe04)return;const _0x1b7d76=_0x498f9c['at']||0x0,_0x2c02b4=_0x498f9c['rows']||0x1;_0x2ffe04['rowInsertionIndexes']=new Array(_0x2c02b4)['fill'](_0x1b7d76)['map']((_0x29a203,_0x58b0c1)=>_0x29a203+_0x58b0c1);for(const {cell:_0x29d5cc}of _0x41abd5['createTableWalker'](_0x175f89,{'startRow':_0x1b7d76,'endRow':_0x1b7d76+_0x2c02b4-0x1}))_0x2ffe04['rowInsertionRanges']['push'](_0x17314c['model']['createRangeOn'](_0x29d5cc));},{'priority':'low'}),_0x430de9['descriptionFactory']['registerDescriptionCallback'](_0x265a3e=>{if(_0x265a3e['subType']&&_0x265a3e['subType']['startsWith']('tablePaste'))return _0x265a3e['previous']?{}:{'type':'insertion','content':o(_0x17314c['locale'],'*Replace\x20table\x20cells*')};});const _0x1aa9bf=()=>!0x1;for(const _0x25d34c of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x430de9['_suggestionFactory']['registerCustomCallback']('insertion',_0x25d34c,'join',_0x1aa9bf),_0x430de9['_suggestionFactory']['registerCustomCallback']('deletion',_0x25d34c,'join',_0x1aa9bf),_0x430de9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x25d34c,'join',_0x1aa9bf);_0x430de9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1aa9bf),_0x430de9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xc10c4b,_0x4ced9d,_0x235d28)=>{const _0x5e4776=_0xc10c4b['map'](_0xdb4363=>_0xdb4363['getContainedElement']())['filter'](_0x3be077=>_0x3be077),_0x5a7c24=new Map(_0x5e4776['map'](_0x572b25=>[_0x572b25,null]));if(_0x2ffe04){for(const {element:_0x1a43a4,attributes:_0x38cd90}of _0x2ffe04['cells'])_0x38cd90&&_0x5a7c24['set'](_0x1a43a4,_0x38cd90);}else{if(_0x235d28&&_0x235d28['markerAttributes'])for(const [_0x3fdf2b,_0x288fac]of Object['entries'](_0x235d28['markerAttributes'])){const _0xcd9e86=_0x17314c['model']['markers']['get'](_0x3fdf2b),_0x22f2dc=_0xcd9e86?_0xcd9e86['getRange']()['getContainedElement']():null;_0x22f2dc&&_0x5a7c24['set'](_0x22f2dc,_0x288fac);}}_0x17314c['model']['change'](_0x4b3f9a=>{for(const [_0x486aa0,_0x2a4c63]of _0x5a7c24)_0x4b3f9a['setAttributes']({...Ae,..._0x2a4c63},_0x486aa0);});});const _0x39b82f=(_0x582fe0,_0x28fe77)=>{_0x430de9['_suggestionFactory']['registerCustomCallback'](_0x582fe0,'tablePaste',_0x28fe77,(_0x1b76f5,_0xb2dc22,_0x28a18e)=>{_0x17314c['model']['change'](_0x2dfc45=>{const _0xed9617=[];for(const _0x14b64f of _0x1b76f5){const _0x4e02ea=_0x14b64f['start']['nodeAfter'];_0x4e02ea['is']('element','tableCellSuggestion')&&_0xed9617['push'](_0x4e02ea);}_0x430de9['_suggestionFactory']['getSuggestionCallback'](_0x582fe0,null,_0x28fe77)(_0x1b76f5,_0xb2dc22,_0x28a18e);for(const _0x3fdcef of _0xed9617)'$graveyard'!=_0x3fdcef['root']['rootName']&&_0x2dfc45['unwrap'](_0x3fdcef);});});};_0x39b82f('insertion','accept'),_0x39b82f('insertion','discard'),_0x39b82f('deletion','accept'),_0x39b82f('deletion','discard'),_0x430de9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5c600e=>{const _0xa6792d=_0x5c600e['map'](_0x3e75ef=>_0x3e75ef['getContainedElement']()),_0xc8a19d=_0xa6792d[0x0]['findAncestor']('table'),{minRow:_0x1d2e0e,maxRow:_0x47e322}=_0xf28e68['_getCoordsForCells'](_0xa6792d);_0x41abd5['removeRows'](_0xc8a19d,{'at':_0x1d2e0e,'rows':_0x47e322-_0x1d2e0e+0x1});}),_0x430de9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x15a699=>{const _0x32d903=_0x15a699['map'](_0x527c34=>_0x527c34['getContainedElement']()),_0x23cfdf=_0x32d903[0x0]['findAncestor']('table'),{minColumn:_0x49cca8,maxColumn:_0x332f55}=_0xf28e68['_getCoordsForCells'](_0x32d903);_0x41abd5['removeColumns'](_0x23cfdf,{'at':_0x49cca8,'columns':_0x332f55-_0x49cca8+0x1});});const _0x336231=(_0x53a62d,_0x56a4c8)=>{if(!_0x56a4c8['subType']||!_0x56a4c8['subType']['startsWith']('tablePaste'))return;const _0xad9e28=_0x56a4c8['attributes']['tablePasteChainId'],_0x212115=_0x430de9['getSuggestions']()['filter'](_0x5ae82b=>_0x5ae82b['isInContent']&&_0x5ae82b['attributes']&&_0x5ae82b['attributes']['tablePasteChainId']==_0xad9e28);_0x212115['length']&&_0x56a4c8['getAllAdjacentSuggestions']()['length']!=_0x212115['length']&&_0x212115['reduce']((_0x259a06,_0x577df4)=>(_0x259a06['next']=_0x577df4,_0x577df4['previous']=_0x259a06,_0x577df4));};function _0x1c14bb(_0x4293f7,_0x18403a=!0x0){const {id:_0x3e1ea9,authorId:_0x2c4750}=_0x430de9['_splitMarkerName'](_0x4293f7['markerName']),_0x59c14a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1128a0=_0x430de9['activeMarkers']['includes'](_0x4293f7['markerName']);return _0x1128a0&&_0x59c14a['push']('ck-suggestion-marker--active'),{'classes':_0x59c14a,'attributes':{'data-suggestion':_0x3e1ea9,'data-author-id':_0x2c4750},'priority':_0x1128a0&&_0x18403a?0xbc2:0xbb8};}_0x430de9['on']('suggestionLoaded',_0x336231,{'priority':'high'}),_0x430de9['on']('suggestionUnloaded',_0x336231,{'priority':'high'}),_0x17314c['model']['document']['registerPostFixer'](()=>{let _0xbbb534=!0x1;const _0x127208=Array['from'](_0x17314c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x35ee0e,data:_0x56c559}of _0x127208){const {group:_0x12e6af,type:_0x37c44d,id:_0x5df8f7}=_0x430de9['_splitMarkerName'](_0x35ee0e);if('suggestion'!=_0x12e6af||'deletion'!=_0x37c44d||_0x56c559['oldRange'])continue;if(!_0x430de9['hasSuggestion'](_0x5df8f7))continue;const _0x1f4c8d=_0x430de9['getSuggestion'](_0x5df8f7)['getRanges'](),_0x3a22ea=_0x17314c['plugins']['get']('Users')['me'];for(const _0x15583b of _0x430de9['getSuggestions']()){if(!_0x15583b['isInContent']||_0x15583b['author']!=_0x3a22ea)continue;if('formatBlock'!=_0x15583b['type']||'tablePasteCell'!=_0x15583b['subType'])continue;if(_0x15583b['getRanges']()['every'](_0x39c1f8=>_0x1f4c8d['some'](_0x4ce96c=>_0x4ce96c['containsRange'](_0x39c1f8,!0x0)))){for(const _0x32106d of _0x15583b['getAllAdjacentSuggestions']())_0x32106d['isInContent']&&(_0x32106d['discard'](),_0xbbb534=!0x0);}}}return _0xbbb534;}),_0x17314c['model']['document']['registerPostFixer'](_0x360f36=>{const _0x3b0b0f=_0x17314c['commands']['get']('redo');if(!_0x3b0b0f||!_0x3b0b0f['_createdBatches']['has'](_0x360f36['batch']))return!0x1;let _0x17b1c4=!0x1;const _0x50f6fe=_0x17314c['plugins']['get']('Users')['me'],_0x528ffa=_0x17314c['model']['document']['differ']['getChanges'](),_0x2e97c6=Array['from'](_0x17314c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1a1228,data:_0x1de06c})=>{const {group:_0x2e58df,subType:_0x3b1759,authorId:_0x579150}=_0x430de9['_splitMarkerName'](_0x1a1228);return'suggestion'==_0x2e58df&&'tablePaste'==_0x3b1759&&_0x579150==_0x50f6fe['id']&&!_0x1de06c['oldRange'];});for(const _0x5db172 of _0x528ffa){if('insert'!=_0x5db172['type']||'tableCellSuggestion'!=_0x5db172['name']||0x1!=_0x5db172['length'])continue;const _0x2c74be=_0x360f36['createRange'](_0x5db172['position'],_0x5db172['position']['getShiftedBy'](0x1));if(!_0x2e97c6['find'](({data:_0x49fce6})=>_0x49fce6['newRange']['isEqual'](_0x2c74be))){for(const {name:_0x3a33f6,data:_0x57d084}of _0x2e97c6)if(_0x2c74be['containsRange'](_0x57d084['newRange'])){_0x360f36['updateMarker'](_0x3a33f6,{'range':_0x2c74be}),_0x17b1c4=!0x0;break;}}}return _0x17b1c4;}),_0x17314c['model']['document']['registerPostFixer'](_0x4a247c=>{let _0x3f9e79=!0x1;const _0x3f2386=_0x17314c['plugins']['get']('Users')['me'],_0x2132f9=_0x430de9['getSuggestions']()['filter'](_0x1726dc=>_0x1726dc['isInContent']&&_0x1726dc['author']==_0x3f2386),_0x713041=new Set(),_0x5cc7a8=new Set();for(const _0x42a784 of _0x2132f9)if('tablePaste'==_0x42a784['subType'])for(const _0x5edc81 of _0x42a784['getMarkers']()){const _0xb97bf2=_0x5edc81['getRange']()['getContainedElement']();if(_0xb97bf2){if(_0xb97bf2['is']('element','tableCellSuggestion')&&Be(_0xb97bf2)){_0x42a784['removeMarker'](_0x5edc81['name']),_0x713041['add'](_0xb97bf2),_0x3f9e79=!0x0;const _0x8141bb=_0xb97bf2['nextSibling'],_0x23c61a=_0xb97bf2['previousSibling'],_0x19a886=_0x8141bb&&_0x8141bb['is']('element','tableCellSuggestion'),_0xd57d41=_0x23c61a&&_0x23c61a['is']('element','tableCellSuggestion');_0x19a886&&!_0x713041['has'](_0x8141bb)&&_0x5cc7a8['add'](_0x8141bb),_0xd57d41&&!_0x713041['has'](_0x23c61a)&&_0x5cc7a8['add'](_0x23c61a);}else _0xb97bf2['is']('element','paragraph')&&_0xb97bf2['isEmpty']&&(_0x42a784['removeMarker'](_0x5edc81['name']),_0x3f9e79=!0x0);}}else{if('tablePasteCell'==_0x42a784['subType']){if(!_0x42a784['attributes']||!_0x42a784['attributes']['tablePasteChainId'])continue;const _0x859fde=_0x42a784['attributes']['markerAttributes'];if(_0x859fde&&Object['keys'](_0x859fde)['length'])continue;const _0x5087b5=_0x42a784['attributes']['tablePasteChainId'];let _0x218b94=!0x0,_0x26cd77=!0x0;for(const _0x43fc0f of _0x2132f9)if(_0x43fc0f['subType']&&_0x43fc0f['subType']['startsWith']('tablePaste')){if(!_0x43fc0f['attributes']['tablePasteChainId']){_0x26cd77=!0x1;break;}if(_0x43fc0f['id']!=_0x42a784['id']&&_0x43fc0f['attributes']['tablePasteChainId']==_0x5087b5){_0x218b94=!0x1;break;}}_0x26cd77&&_0x218b94&&(_0x42a784['removeMarkers'](),_0x3f9e79=!0x0);}}for(const _0x4d104e of _0x713041)_0x4a247c['remove'](_0x4d104e);for(const _0xc5fa7a of _0x5cc7a8)_0x4a247c['unwrap'](_0xc5fa7a);return _0x3f9e79;}),_0x17314c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1d2623=>_0x1c14bb(_0x1d2623),'converterPriority':'high'}),_0x17314c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4cf8d5,_0x2957df)=>_0x2957df['options']['showSuggestionHighlights']?_0x1c14bb(_0x4cf8d5,!0x1):null,'converterPriority':'high'});const _0x1602f0=_0x17314c['editing']['view'];this['listenTo'](_0x1602f0['document'],'clipboardOutput',(_0x5f2abb,_0x1e8b74)=>{const _0x17deac=[];for(const _0x49d3cf of _0x1602f0['createRangeIn'](_0x1e8b74['content'])['getItems']())_0x49d3cf['is']('element','suggestion-td')&&_0x17deac['push'](_0x49d3cf);_0x1602f0['change'](_0x2b58a4=>{for(const _0x404cfb of _0x17deac)_0x2b58a4['move'](_0x2b58a4['createRangeIn'](_0x404cfb),_0x2b58a4['createPositionBefore'](_0x404cfb)),_0x2b58a4['remove'](_0x404cfb);});});}}function Be(_0x330ffc){if(_0x330ffc['isEmpty'])return!0x0;const _0x133535=_0x330ffc['getChild'](0x0);return _0x133535['is']('element','paragraph')&&_0x133535['isEmpty'];}function Oe(_0xc5e782,_0x4d9554={},_0x341f65){for(const {isAnchor:_0x17b104,cellHeight:_0x432c86,cellWidth:_0x210bf2}of _0x341f65['createTableWalker'](_0xc5e782,{'includeAllSlots':!0x0,..._0x4d9554}))if(!_0x17b104||0x1!=_0x432c86||0x1!=_0x210bf2)return!0x1;return!0x0;}class Ot extends _0x452242{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x651ea5=this['editor']['plugins']['get']('TrackChangesEditing');_0x651ea5['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x651ea5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x651ea5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x651ea5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x651ea5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x651ea5['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x186bd0,_0x4b44d3){const _0x25dd4e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x215e2d=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x51cf8a=_0x4b44d3['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xbe1bcb=_0x215e2d['getColumnGroupElement'](_0x51cf8a);let _0x5e381e=_0xbe1bcb?_0x215e2d['getTableColumnsWidths'](_0xbe1bcb):null,_0x20f2fa=_0x51cf8a['getAttribute']('tableWidth')||null;const _0x1f9c10=_0x4b44d3['tableWidth']||_0x20f2fa,_0x2b9423=_0x4b44d3['columnWidths']||_0x5e381e,_0x4ee9ab=this['editor']['plugins']['get']('Users')['me'];for(const _0x404887 of _0x25dd4e['getSuggestions']()){const _0x97cd32=_0x404887['getContainedElement']();if('resizeTable'===_0x404887['subType']&&_0x97cd32===_0x51cf8a){_0x404887['author']!==_0x4ee9ab&&_0x404887['discard']();const _0x338ec0=_0x404887['data']['commandParams'];_0x20f2fa=_0x338ec0[0x0]['tableWidth'],_0x5e381e=_0x338ec0[0x0]['columnWidths'];break;}}_0x186bd0({'table':_0x51cf8a,'tableWidth':_0x1f9c10,'columnWidths':_0x2b9423}),_0x25dd4e['markBlockFormat'](_0x51cf8a,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x20f2fa,'columnWidths':_0x5e381e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1bc8ac){if('formatBlock'!=_0x1bc8ac['type']&&'formatInline'!=_0x1bc8ac['type'])return;const {data:_0x1b0225}=_0x1bc8ac;if(_0x1b0225&&'resizeTable'===_0x1b0225['formatGroupId']){const _0x51d85a='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x51d85a)};}}}class xt extends _0x452242{['afterInit'](){const _0x291dc2=this['editor'];_0x291dc2['plugins']['has']('Template')&&_0x291dc2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x452242{['afterInit'](){const _0x6b0b3d=this['editor'];if(!_0x6b0b3d['commands']['get']('insertTableOfContents'))return;_0x6b0b3d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5d869b=_0x6b0b3d['plugins']['get']('TrackChangesEditing'),_0x44ba7f=_0x6b0b3d['locale'];_0x5d869b['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3090d3=>o(_0x44ba7f,'ELEMENT_TABLE_OF_CONTENTS',_0x3090d3));}}class Rt extends _0x452242{['afterInit'](){const _0x2cfb86=this['editor'];if(!_0x2cfb86['plugins']['has']('Title'))return;const _0xfe3516=_0x2cfb86['plugins']['get']('TrackChangesEditing');_0xfe3516['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2cfb86['locale'],'ELEMENT_TITLE')),_0x2cfb86['model']['document']['registerPostFixer'](_0x3e638b=>{let _0x1a609a=!0x1;const _0x3849d6=Array['from'](_0x2cfb86['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x40ab5d,data:_0x4b6647}of _0x3849d6){const {group:_0x44a1cd}=_0xfe3516['_splitMarkerName'](_0x40ab5d);if('suggestion'!==_0x44a1cd||!_0x4b6647['newRange'])continue;const _0x3cca11=_0x4b6647['newRange'],_0x129d4a=_0x3cca11['end']['nodeBefore'];if(!_0x129d4a||!_0x129d4a['is']('element','title-content'))continue;if(!_0x3cca11['start']['isTouching'](_0x3cca11['end']))continue;const _0x53f4b4=_0x2cfb86['model']['schema']['getNearestSelectionRange'](_0x3cca11['end'],'forward');if(_0x53f4b4&&_0x53f4b4['isCollapsed']){const _0x4a5fa4=_0x3e638b['createRange'](_0x3cca11['start'],_0x53f4b4['start']);_0x4a5fa4['isEqual'](_0x3cca11)||(_0x3e638b['updateMarker'](_0x40ab5d,{'range':_0x4a5fa4}),_0x1a609a=!0x0);}_0x1a609a||(_0x3e638b['removeMarker'](_0x40ab5d),_0x1a609a=!0x0);}return _0x1a609a;});}}class Tt extends _0x452242{['afterInit'](){const _0x4676a4=this['editor'],_0x564e83=_0x4676a4['plugins']['get']('TrackChangesEditing');_0x4676a4['plugins']['has']('Uploadcare')&&(_0x564e83['enableCommand']('uploadcare'),_0x4676a4['plugins']['has']('UploadcareImageEdit')&&(_0x564e83['enableCommand']('uploadcareImageEdit'),_0x564e83['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x564e83['descriptionFactory']['registerDescriptionCallback'](_0x1470fd=>{if('attribute'!=_0x1470fd['type'])return;const {data:_0x3e60fe}=_0x1470fd;return _0x3e60fe&&'uploadcareImageId'==_0x3e60fe['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x452242{['afterInit'](){const _0x117b0f=this['editor'],_0x3f9d37=_0x117b0f['plugins']['get']('TrackChangesEditing');_0x117b0f['plugins']['has']('UndoEditing')&&(_0x3f9d37['enableCommand']('undo'),_0x3f9d37['enableCommand']('redo'));}}class Ut extends _0x452242{static get['requires'](){return[Nt];}['afterInit'](){const _0x169a54=this['editor'];if(!_0x169a54['plugins']['has']('TableCaptionEditing'))return;_0x169a54['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x452242{['tableProperties'];['tableCellProperties'];constructor(_0x146fae){super(_0x146fae),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x146fae['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x4cedbc=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3a1c43 of this['tableProperties'])_0x4cedbc['enableCommand'](_0x3a1c43,(_0x4d1d0d,_0x30369a)=>{const _0x1edb1c=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3a1c43,[_0x1edb1c],this['tableProperties'],'tableProperties',_0x4d1d0d,_0x30369a);});_0x4cedbc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4cedbc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4cedbc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x574ce0,_0x461765)=>this['handleDiscardAction'](this['tableProperties'],_0x574ce0,_0x461765)),_0x4cedbc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1d6df1 of this['tableCellProperties'])this['editor']['commands']['get'](_0x1d6df1)&&_0x4cedbc['enableCommand'](_0x1d6df1,(_0x3714ae,_0x29d711)=>{const _0xd08b82=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1d6df1,_0xd08b82,this['tableCellProperties'],'tableCellProperties',_0x3714ae,_0x29d711);});_0x4cedbc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4cedbc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4cedbc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1733ad,_0xefb7e)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1733ad,_0xefb7e)),_0x4cedbc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&(_0x4cedbc['registerBlockAttribute']('tableCellType'),_0x4cedbc['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE')));}_0x4cedbc['descriptionFactory']['registerDescriptionCallback'](_0x328379=>this['handleSuggestionDescription'](_0x328379)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x37fe8e,_0x388869,_0x3aa7c0,_0x374041,_0x5c339a,_0x1eab17){const _0x498111=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1eab17['batch'],()=>{for(const _0x176e8c of _0x388869){if(this['_getSuggestion'](_0x176e8c,_0x374041))_0x5c339a(_0x1eab17);else{const _0x4de040={};for(const _0x56e0ef of _0x3aa7c0){const _0x344a2d=_0x176e8c['getAttribute'](_0x56e0ef);void 0x0!==_0x344a2d&&(_0x4de040[_0x56e0ef]=_0x344a2d);}_0x5c339a(_0x1eab17),_0x498111['markBlockFormat'](_0x176e8c,{'commandParams':[_0x4de040]},[],_0x374041);}}});}['handleDiscardAction'](_0x1c4a3e,_0x10d927,_0x3c03d8){const _0x3d482c=_0x10d927[0x0]['start']['nodeAfter'],_0x32c795=_0x3c03d8['commandParams'][0x0];this['editor']['model']['change'](_0x4bd204=>{for(const _0x1410ae of _0x1c4a3e)void 0x0!==_0x32c795[_0x1410ae]?_0x4bd204['setAttribute'](_0x1410ae,_0x32c795[_0x1410ae],_0x3d482c):_0x4bd204['removeAttribute'](_0x1410ae,_0x3d482c);});}['handleSuggestionDescription'](_0x2d78b6){if(_0x2d78b6['data'])switch(_0x2d78b6['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'](_0x3e949f,_0x185980){const _0x3eebe0=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3edc51 of _0x3eebe0['getSuggestions']({'skipNotAttached':!0x0})){const _0x19a4ec=_0x3edc51['getContainedElement']();if(_0x3edc51['subType']===_0x185980&&_0x19a4ec===_0x3e949f)return _0x3edc51;}return null;}['_registerTablePropertiesAttributes'](){const _0x4de748=this['editor']['plugins']['get']('TrackChangesEditing'),_0x53b470=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x3db2c6 of _0x53b470){const _0x260367=_0x3db2c6['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x4de748['descriptionFactory']['registerAttributeLabel'](_0x3db2c6,o(this['editor']['locale'],'FORMAT_'+_0x260367));}}}class Ft extends _0x452242{['afterInit'](){const _0x390cbd=this['editor'];if(!_0x390cbd['plugins']['has']('LineHeight'))return;const _0x1aaccf=_0x390cbd['plugins']['get']('TrackChangesEditing'),_0x4f20f0=_0x390cbd['locale'];_0x1aaccf['enableDefaultAttributesIntegration']('lineHeight'),_0x1aaccf['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x4f20f0,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x452242{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0x5123b8,_0x5a281d,_0x3ddfd3,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(_0x5c9fd3){super(_0x5c9fd3),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5efc74,_0x36cbfd,_0x40aef2,_0x1baf2f)=>{this['_model']['change'](()=>{for(const _0x119cc7 of[..._0x1baf2f,..._0x40aef2])this['_model']['markers']['has'](_0x119cc7)&&_0x5c9fd3['editing']['reconvertMarker'](_0x119cc7);});}),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']=_0x5c9fd3['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x5c9fd3['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5c9fd3['config']['get']('trackChanges.trackFormatChanges'),_0x5c9fd3['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5c9fd3['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x5c9fd3,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2491e0=this['editor'];_0x2491e0['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x37f873,{writer:_0x37eddc})=>{let _0x348fb9='suggestion:'+_0x37f873['getAttribute']('suggestion-type')+':'+_0x37f873['getAttribute']('id');return _0x37f873['getAttribute']('marker-count')&&(_0x348fb9+=':'+_0x37f873['getAttribute']('marker-count')),_0x37eddc['createElement']('$marker',{'data-name':_0x348fb9});}}),_0x2491e0['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2491e0['model']['document']['registerPostFixer'](_0xd74b6d=>{let _0x475798=!0x1;const _0x44d30a=Array['from'](_0x2491e0['model']['document']['differ']['getChangedMarkers']()),_0x113ce7=new Set();for(const {name:_0x3b8760,data:_0x172e2b}of _0x44d30a){const {group:_0x56a373,type:_0x52edc4,subType:_0x257e05,id:_0x4439a6}=this['_splitMarkerName'](_0x3b8760);if('suggestion'!==_0x56a373)continue;const _0x43f9cd=_0x257e05?'suggestion:'+_0x52edc4+':'+_0x257e05+':'+_0x4439a6:'suggestion:'+_0x52edc4+':'+_0x4439a6,_0x212abc=_0x2491e0['model']['markers']['getMarkersGroup'](_0x43f9cd),_0x164a76=_0x2491e0['model']['markers']['get'](_0x3b8760),_0x455e45=this['_suggestions']['get'](_0x4439a6);if(null!=_0x172e2b['newRange']){'formatInline'==_0x52edc4&&(_0x475798=_0x475798||Wt(_0x172e2b['newRange'],_0x3b8760,_0xd74b6d,_0x2491e0['model']['schema']));const _0x1fe93b='attribute'==_0x52edc4&&this['_isBlockAttribute'](_0x257e05['split']('|')[0x0]),_0x2adbe9='attribute'==_0x52edc4&&this['_isInlineAttribute'](_0x257e05['split']('|')[0x0]);if(_0x172e2b['newRange']['isCollapsed']||'$graveyard'==_0x172e2b['newRange']['root']['rootName']||'formatBlock'==_0x52edc4&&!Qt(_0x172e2b['newRange'])||_0x1fe93b&&!Qt(_0x172e2b['newRange'])||_0x2adbe9&&Xt(_0x172e2b['newRange'])||'deletion'==_0x52edc4&&Xt(_0x172e2b['newRange'])||_0x164a76&&Yt(_0x164a76,_0x212abc))_0xd74b6d['removeMarker'](_0x3b8760),_0x475798=!0x0;else{if(!_0x455e45||!_0x455e45['isInContent'])continue;if(_0x172e2b['newRange']&&_0x172e2b['oldRange']&&_0x172e2b['newRange']['isEqual'](_0x172e2b['oldRange']))continue;_0x113ce7['add'](_0x455e45);}}}return _0x113ce7['size']>0x0&&(_0x475798=!!this['_joinWithAdjacentSuggestions'](_0x113ce7)||_0x475798),_0x475798;}),_0x2491e0['model']['document']['registerPostFixer'](_0x556c4a=>{let _0x273f39=!0x1;for(const _0x375762 of _0x2491e0['model']['document']['differ']['getChanges']())if('insert'==_0x375762['type'])for(const _0x53e41e of this['_suggestions']['values']()){if(_0x53e41e['isMultiRange']||!_0x53e41e['isInContent'])continue;const _0x53b240='formatBlock'==_0x53e41e['type'],_0x308d96=this['_getAttributeKey'](_0x53e41e),_0x45886d=_0x308d96&&this['_isBlockAttribute'](_0x308d96);if(!_0x53b240&&!_0x45886d)continue;const _0x9220f1=_0x53e41e['getFirstRange']();if(_0x9220f1['start']['parent']!=_0x9220f1['end']['parent']&&!_0x9220f1['end']['isAtEnd']){const _0x7a0b18=_0x2491e0['model']['createPositionAt'](_0x9220f1['start']['nodeAfter'],'end'),_0x51fb13=_0x2491e0['model']['createRange'](_0x9220f1['start'],_0x7a0b18);_0x556c4a['updateMarker'](_0x53e41e['getFirstMarker'](),{'range':_0x51fb13}),_0x273f39=!0x0;}}return _0x273f39;}),_0x2491e0['model']['document']['registerPostFixer'](_0x55f94c=>this['_processAttributeChanges'](_0x55f94c)),_0x2491e0['model']['document']['registerPostFixer'](_0x2666ff=>!_0x2666ff['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2666ff)),_0x2491e0['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2491e0['model']['document']['on']('change:data',(_0x561c6b,_0xea8ec3)=>{if(!_0xea8ec3['isLocal']||_0xea8ec3['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3374ab=_0x2491e0['model']['document']['differ']['getChanges']();if(0x0==_0x3374ab['length'])return;const _0x5433d2=[],_0x2b782e=_0x3374ab['filter'](_0x463a56=>'attribute'==_0x463a56['type']),_0x4b2be4=_0x3374ab['filter'](_0x23a572=>'insert'==_0x23a572['type']&&'$text'!=_0x23a572['name']);for(const _0x49217a of _0x2b782e)this['_isRegisteredAttribute'](_0x49217a['attributeKey'])&&_0x5433d2['push']({'key':_0x49217a['attributeKey'],'newValue':_0x49217a['attributeNewValue'],'oldValue':_0x49217a['attributeOldValue'],'range':Zt(_0x49217a['range'],_0x2491e0['model'])});for(const _0x1ef27c of _0x4b2be4){if('rename'!=_0x1ef27c['action']&&'refresh'!=_0x1ef27c['action'])continue;const _0x5adc00=tn(_0x1ef27c['position']['nodeAfter'],_0x2491e0['model']),_0x16e59c=_0x1ef27c['before'];'rename'==_0x1ef27c['action']&&_0x5433d2['push']({'key':m,'newValue':_0x1ef27c['name'],'oldValue':_0x16e59c['name'],'range':_0x5adc00});for(const [_0x2af8e7,_0x5ce377]of _0x16e59c['attributes']){if(!this['_isRegisteredAttribute'](_0x2af8e7))continue;const _0x29b15f=_0x1ef27c['attributes']['get'](_0x2af8e7);_0x5ce377!==_0x29b15f&&_0x5433d2['push']({'key':_0x2af8e7,'newValue':_0x29b15f,'oldValue':_0x5ce377,'range':_0x5adc00});}for(const [_0x34bda5,_0x4cfea8]of _0x1ef27c['attributes'])this['_isRegisteredAttribute'](_0x34bda5)&&(_0x16e59c['attributes']['has'](_0x34bda5)||_0x5433d2['push']({'key':_0x34bda5,'newValue':_0x4cfea8,'oldValue':null,'range':_0x5adc00}));}0x0!=_0x5433d2['length']&&_0x2491e0['model']['enqueueChange'](_0xea8ec3,_0x45118d=>{const _0x4a1e05=_0x3da106();for(const {range:_0x49feee,key:_0x589851,oldValue:_0x575996,newValue:_0x271673}of _0x5433d2)this['markAttributeChange'](_0x49feee,_0x589851,_0x575996,_0x271673,{'groupId':_0x4a1e05});this['_reduceExistingSuggestions'](_0x45118d,_0x5433d2);});},{'priority':'lowest'}),_0x2491e0['model']['markers']['on']('update:suggestion',(_0x28e417,_0x5a83ac,_0x163ba3)=>{if(null==_0x163ba3){const {id:_0x2eee8b}=this['_splitMarkerName'](_0x5a83ac['name']),_0x5f44f6=this['_suggestions']['get'](_0x2eee8b);_0x5f44f6&&_0x5f44f6['addMarkerName'](_0x5a83ac['name']);}}),_0x2491e0['model']['document']['on']('change:data',()=>{const _0x3f0acc=Array['from'](_0x2491e0['model']['document']['differ']['getChangedMarkers']())['filter'](_0x280576=>'suggestion'===this['_splitMarkerName'](_0x280576['name'])['group']);if(0x0===_0x3f0acc['length'])return;_0x3f0acc['sort']((_0x4705e4,_0x4877d2)=>{const _0xd82c0c=_0x4705e4['data']['oldRange'],_0x565108=_0x4877d2['data']['oldRange'];return null===_0xd82c0c&&null===_0x565108?0x0:null===_0xd82c0c&&null!==_0x565108?-0x1:null!==_0xd82c0c&&null===_0x565108?0x1:_0xd82c0c['start']['isBefore'](_0x565108['start'])?-0x1:0x1;});const _0x347534=new Set(),_0x14b347=new Set();for(const {name:_0x427c7f,data:_0x442c87}of _0x3f0acc){const {id:_0x3d19e9}=this['_splitMarkerName'](_0x427c7f);if(null===_0x442c87['oldRange']){const _0x41500b=this['_handleNewSuggestionMarker'](_0x427c7f);_0x14b347['add'](_0x41500b);}else{const _0x1a8543=this['_suggestions']['get'](_0x3d19e9);null!==_0x442c87['newRange']||_0x1a8543['isInContent']?(_0x347534['add'](_0x1a8543['head']),_0x14b347['add'](_0x1a8543)):this['_removeSuggestion'](_0x1a8543);}}_0x14b347['size']>0x0&&this['_refreshSuggestionsChain'](_0x14b347);for(const _0x6a324 of _0x347534)this['fire']('suggestionChanged',_0x6a324);}),_0x2491e0['model']['on']('applyOperation',(_0x5c5ec9,_0x4bbd50)=>{const _0x4a41f9=_0x4bbd50[0x0];if(!this['_suggestions']['size'])return;if(!_0x4a41f9['isDocumentOperation'])return;if(_0x4a41f9['batch']['isUndo']||!_0x4a41f9['batch']['isLocal'])return;let _0x276652,_0x5986b4;switch(_0x4a41f9['type']){case'insert':_0x276652=_0x2491e0['model']['createPositionAt'](_0x4a41f9['position']),_0x5986b4=_0x276652['getShiftedBy'](_0x4a41f9['howMany']);break;case'split':_0x276652=_0x2491e0['model']['createPositionAt'](_0x4a41f9['splitPosition']),_0x5986b4=_0x2491e0['model']['createPositionAt'](_0x4a41f9['moveTargetPosition']);break;case'move':_0x276652=_0x2491e0['model']['createPositionAt'](_0x4a41f9['targetPosition']),_0x5986b4=_0x276652['getShiftedBy'](_0x4a41f9['howMany']);break;default:return;}const _0x201dff=_0x2491e0['model']['createRange'](_0x276652,_0x5986b4);_0x2491e0['model']['change'](()=>{for(const {suggestion:_0x18d1d0,meta:_0x19eaa8}of this['_findSuggestions'](_0x201dff)){if(_0x18d1d0['isMultiRange'])continue;if('formatInline'==_0x18d1d0['type'])continue;const _0x498463=this['_getAttributeKey'](_0x18d1d0);if(_0x498463&&this['_isBlockAttribute'](_0x498463)&&'split'!=_0x4a41f9['type'])continue;const _0x3a06a3=_0x18d1d0['data']&&_0x18d1d0['data']['multipleBlocks'];('formatBlock'!=_0x18d1d0['type']||'split'==_0x4a41f9['type']&&!_0x3a06a3)&&(_0x19eaa8['containsRangeInObject']||'insertion'==_0x18d1d0['type']&&_0x19eaa8['isOwn']||_0x18d1d0['getFirstRange']()['containsRange'](_0x201dff)&&this['_breakSuggestionMarker'](_0x18d1d0,_0x276652,_0x5986b4));}});},{'priority':'lowest'}),_0x2491e0['model']['on']('deleteContent',(_0x3b745c,_0x2c5ce1)=>{const _0x5eafe3=_0x2c5ce1[0x0],_0x463d9e=_0x2c5ce1[0x1];if(_0x463d9e&&_0x463d9e['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5eafe3['isCollapsed'])return;const _0x19fc13=_0x2491e0['model']['schema'],{start:_0x3a9c5f,end:_0x46ea97}=_0x5eafe3['getFirstRange'](),_0x44658e=_0x3a9c5f['nodeAfter']&&_0x19fc13['isLimit'](_0x3a9c5f['nodeAfter'])?null:_0x19fc13['getNearestSelectionRange'](_0x3a9c5f,'forward'),_0x5789b2=_0x46ea97['nodeBefore']&&_0x19fc13['isLimit'](_0x46ea97['nodeBefore'])?null:_0x19fc13['getNearestSelectionRange'](_0x46ea97,'backward'),_0x48fb85=_0x2491e0['model']['createRange'](_0x44658e?_0x44658e['start']:_0x3a9c5f,_0x5789b2?_0x5789b2['end']:_0x46ea97);_0x2491e0['model']['change'](_0x43c67c=>{this['markDeletion'](_0x48fb85);const _0x2e698e=_0x2491e0['model']['schema']['getNearestSelectionRange'](_0x48fb85['start']);_0x5eafe3['is']('documentSelection')?_0x43c67c['setSelection'](_0x2e698e):_0x5eafe3['setTo'](_0x2e698e);}),_0x3b745c['stop']();},{'priority':_0x1a1f89['normal']+0xa}),_0x2491e0['model']['on']('insertContent',(_0x12f9c5,_0x4ee331)=>{const _0x239050=_0x4ee331[_0x4ee331['length']-0x1];_0x239050&&_0x239050['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2491e0['model']['change'](()=>{let _0xc42914=_0x2491e0['model']['insertContent'](_0x4ee331[0x0],_0x4ee331[0x1],_0x4ee331[0x2],{'forceDefaultExecution':!0x0});if(!_0xc42914)return;_0x12f9c5['return']=_0xc42914['clone']();const _0x250c9b=_0xc42914['end']['nodeBefore'],_0xda9419=_0x2491e0['model']['schema'];_0x250c9b&&_0xda9419['isBlock'](_0x250c9b)&&!_0xda9419['isObject'](_0x250c9b)&&(_0xc42914=_0x2491e0['model']['createRange'](_0xc42914['start'],_0x2491e0['model']['createPositionAt'](_0x250c9b,'end'))),this['markInsertion'](_0xc42914);}),_0x12f9c5['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xd27035=new v(_0x2491e0,this['_suggestions']);_0x2491e0['commands']['add']('acceptSuggestion',_0xd27035),this['enableCommand']('acceptSuggestion');const _0x527b49=new D(_0x2491e0,this['_suggestions']);_0x2491e0['commands']['add']('discardSuggestion',_0x527b49),this['enableCommand']('discardSuggestion'),_0x2491e0['commands']['add']('acceptAllSuggestions',new B(_0x2491e0,_0xd27035,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2491e0['commands']['add']('discardAllSuggestions',new B(_0x2491e0,_0x527b49,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2491e0['commands']['add']('acceptSelectedSuggestions',new O(_0x2491e0,_0xd27035,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2491e0['commands']['add']('discardSelectedSuggestions',new O(_0x2491e0,_0x527b49,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x242ef8=_0x2491e0['plugins']['get']('CommentsRepository');this['listenTo'](_0x242ef8,'addComment',(_0x6137c,{threadId:_0x3483d6})=>{const _0x14b419=this['_suggestions']['get'](_0x3483d6);_0x14b419&&_0x14b419['commentThread']&&0x1===_0x14b419['commentThread']['length']&&this['_updateSuggestionData'](_0x3483d6,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x242ef8,'removeComment',(_0x4cc56a,{threadId:_0x2a73d7})=>{const _0x51195f=this['_suggestions']['get'](_0x2a73d7);_0x51195f&&_0x51195f['commentThread']&&!_0x51195f['commentThread']['length']&&this['_updateSuggestionData'](_0x2a73d7,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2fa187){const _0xbd1b75=_0x5db2c1([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]),_0x35b513=0x3d8d0df,_0x226045=0x3dfae17^_0x35b513,_0x3fc022=window[_0x5db2c1([0x44,0x61,0x74,0x65])][_0x5db2c1([0x6e,0x6f,0x77])](),_0x1cead5=_0x2fa187[_0x5db2c1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4cbf1c=new window[(_0x5db2c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bf3fb=>{_0x1cead5[_0x5db2c1([0x6f,0x6e,0x63,0x65])](_0x5db2c1([0x72,0x65,0x61,0x64,0x79]),_0x3bf3fb);}),_0x3a6cc9={[_0x5db2c1([0x6b,0x74,0x79])]:_0x5db2c1([0x45,0x43]),[_0x5db2c1([0x75,0x73,0x65])]:_0x5db2c1([0x73,0x69,0x67]),[_0x5db2c1([0x63,0x72,0x76])]:_0x5db2c1([0x50,0x2d,0x32,0x35,0x36]),[_0x5db2c1([0x78])]:_0x5db2c1([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]),[_0x5db2c1([0x79])]:_0x5db2c1([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]),[_0x5db2c1([0x61,0x6c,0x67])]:_0x5db2c1([0x45,0x53,0x32,0x35,0x36])},_0x242b22=_0x1cead5[_0x5db2c1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5db2c1([0x67,0x65,0x74])](_0x5db2c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xc6b747(){let _0x26798f,_0x34f809=null,_0x4e956e=null;try{if(_0x242b22==_0x5db2c1([0x47,0x50,0x4c]))return _0x5db2c1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x26798f=_0x4048dc(),!_0x26798f)return _0x5db2c1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x26798f[_0x5db2c1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4e956e=_0x33cb85(_0x26798f[_0x5db2c1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x26798f[_0x5db2c1([0x6a,0x74,0x69])])),await _0x1a73a4()?_0x1c659e()?_0x5d9ccf()?_0x5db2c1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x579af4()?(_0x26798f[_0x5db2c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5db2c1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x34f809=_0x4296f8(_0x5db2c1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x57a58b()):_0x5db2c1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5db2c1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5db2c1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5db2c1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5d9ccf(){const _0x4e9a4b=[_0x5db2c1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5db2c1([0x74,0x72,0x69,0x61,0x6c])][_0x5db2c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26798f[_0x5db2c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3fc022/0x3e8:0xe10*_0x226045;return _0x26798f[_0x5db2c1([0x65,0x78,0x70])]<_0x4e9a4b;}function _0x1c659e(){const _0x5a292a=_0x26798f[_0x5db2c1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5a292a)return!0x1;if(_0x5a292a[_0x5db2c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5db2c1([0x2a])))return!0x0;if(_0x5a292a[_0x5db2c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5db2c1([0x54,0x43])))return!0x0;if(_0x5a292a[_0x5db2c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5db2c1([0x52,0x54,0x43]))){if(_0x2e4cfc())return!0x0;if(_0x4a49c2()||_0x555064())return!0x0;}return!0x1;}function _0x579af4(){const _0x5e69b0=_0x26798f[_0x5db2c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5e69b0||0x0==_0x5e69b0[_0x5db2c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x29088d}=new URL(window[_0x5db2c1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5e69b0[_0x5db2c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29088d))return!0x0;const _0x346ee3=_0x29088d[_0x5db2c1([0x73,0x70,0x6c,0x69,0x74])](_0x5db2c1([0x2e]));return _0x5e69b0[_0x5db2c1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x412170=>_0x412170[_0x5db2c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5db2c1([0x2a])))[_0x5db2c1([0x6d,0x61,0x70])](_0x520223=>_0x520223[_0x5db2c1([0x73,0x70,0x6c,0x69,0x74])](_0x5db2c1([0x2e])))[_0x5db2c1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x20a9c8=>_0x20a9c8[_0x5db2c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x346ee3[_0x5db2c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5db2c1([0x6d,0x61,0x70])](_0x2153b0=>Array(_0x346ee3[_0x5db2c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2153b0[_0x5db2c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5db2c1([0x66,0x69,0x6c,0x6c])](_0x2153b0[0x0]===_0x5db2c1([0x2a])?_0x5db2c1([0x2a]):'')[_0x5db2c1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2153b0))[_0x5db2c1([0x73,0x6f,0x6d,0x65])](_0x17bbbb=>_0x346ee3[_0x5db2c1([0x65,0x76,0x65,0x72,0x79])]((_0x49b085,_0x30f60e)=>_0x17bbbb[_0x30f60e]===_0x49b085||_0x17bbbb[_0x30f60e]===_0x5db2c1([0x2a])));}function _0x57a58b(){return _0x34f809&&_0x4e956e?new window[(_0x5db2c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x41b766,_0x2f8c13)=>{_0x34f809[_0x5db2c1([0x74,0x68,0x65,0x6e])](_0x41b766,_0x2f8c13),_0x4e956e[_0x5db2c1([0x74,0x68,0x65,0x6e])](_0x2e6fb8=>{_0x2e6fb8!=_0x5db2c1([0x56,0x61,0x6c,0x69,0x64])&&_0x41b766(_0x2e6fb8);},_0x2f8c13);}):_0x34f809||_0x4e956e||_0x5db2c1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x33cb85(_0x502dd1,_0x3a176a){return new window[(_0x5db2c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4aa564=>{if(_0x16bd79())return _0x4aa564(_0x5db2c1([0x56,0x61,0x6c,0x69,0x64]));_0x3097b2(),_0x1cead5[_0x5db2c1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5db2c1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xe5f5d2=!0x1;const _0x1b21ae=_0x3da106();function _0x2944a0(_0x3a2eba){return!!_0x3a2eba&&(typeof _0x3a2eba===_0x5db2c1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3a2eba===_0x5db2c1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3a2eba[_0x5db2c1([0x74,0x68,0x65,0x6e])]===_0x5db2c1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3a2eba[_0x5db2c1([0x63,0x61,0x74,0x63,0x68])]===_0x5db2c1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3072fa(_0x4b6169){_0x1a00db(_0x4b6169)[_0x5db2c1([0x74,0x68,0x65,0x6e])](_0x26fd91=>{if(!_0x26fd91||_0x26fd91[_0x5db2c1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5db2c1([0x6f,0x6b]))return _0x5db2c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2a876e(_0x27d22b(_0x1b21ae+_0x3a176a))!=_0x26fd91[_0x5db2c1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5db2c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5db2c1([0x56,0x61,0x6c,0x69,0x64]);})[_0x5db2c1([0x74,0x68,0x65,0x6e])](_0x6f911b=>(_0xd812b6(),_0x6f911b),()=>{const _0x7ca2aa=_0x56a318();return null==_0x7ca2aa?(_0xd812b6(),_0x5db2c1([0x56,0x61,0x6c,0x69,0x64])):_0x5db2c1(_0x3fc022-_0x7ca2aa>(0x27d454df^_0x35b513)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5db2c1([0x74,0x68,0x65,0x6e])](_0x4aa564)[_0x5db2c1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4aa564(_0x5db2c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2850eb=0x3ee3e5f^_0x35b513;function _0xd812b6(){const _0x4cdee1=_0x5db2c1([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a876e(_0x27d22b(_0x502dd1)),_0x3c4866=_0x3e89d0(_0x2a876e(window[_0x5db2c1([0x4d,0x61,0x74,0x68])][_0x5db2c1([0x63,0x65,0x69,0x6c])](_0x3fc022/_0x2850eb)));window[_0x5db2c1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5db2c1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4cdee1,_0x3c4866);}function _0x56a318(){const _0x5cec81=_0x5db2c1([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a876e(_0x27d22b(_0x502dd1)),_0x3199ee=window[_0x5db2c1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5db2c1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5cec81);return _0x3199ee?window[_0x5db2c1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e89d0(_0x3199ee),0x10)*_0x2850eb:null;}function _0x1a00db(_0x41fcbd){return new window[(_0x5db2c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c5bb4,_0x3b1706)=>{_0x41fcbd[_0x5db2c1([0x74,0x68,0x65,0x6e])](_0x5c5bb4,_0x3b1706),window[_0x5db2c1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3b1706,0x3d9041f^_0x35b513);});}}_0x1cead5[_0x5db2c1([0x6f,0x6e])](_0x5db2c1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1ae5ed,_0x191387)=>{if(_0x191387[0x0]!=_0x502dd1)return _0x4aa564(_0x5db2c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x191387[0x1]={..._0x191387[0x1],[_0x5db2c1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1b21ae};},{[_0x5db2c1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5db2c1([0x68,0x69,0x67,0x68])}),_0x1cead5[_0x5db2c1([0x6f,0x6e])](_0x5db2c1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xcc4646=>{_0x2944a0(_0xcc4646[_0x5db2c1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xe5f5d2=!0x0,_0x3072fa(_0xcc4646[_0x5db2c1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5db2c1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5db2c1([0x6c,0x6f,0x77])}),_0x4cbf1c[_0x5db2c1([0x74,0x68,0x65,0x6e])](()=>{_0xe5f5d2||_0x4aa564(_0x5db2c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x16bd79(){return _0x1cead5[_0x5db2c1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5db2c1([0x76,0x69,0x65,0x77])][_0x5db2c1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5db2c1([0x61,0x75,0x74,0x6f]);}function _0x3097b2(){_0x1cead5[_0x5db2c1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5db2c1([0x76,0x69,0x65,0x77])][_0x5db2c1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5db2c1([0x61,0x75,0x74,0x6f]);}}function _0x4296f8(_0x195877){const _0x1940a4=[new window[(_0x5db2c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe349e3=>setTimeout(_0xe349e3,0x3d1ee13^_0x35b513)),_0x4cbf1c[_0x5db2c1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5db2c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e1276=>{let _0x18ad64=0x0;_0x1cead5[_0x5db2c1([0x6d,0x6f,0x64,0x65,0x6c])][_0x5db2c1([0x6f,0x6e])](_0x5db2c1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x176452,_0x20c318)=>{_0x20c318[0x0][_0x5db2c1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x18ad64++,_0x18ad64==(0x3d8d537^_0x35b513)&&(_0x4e1276(),_0x176452[_0x5db2c1([0x6f,0x66,0x66])]());});}))];return window[_0x5db2c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5db2c1([0x72,0x61,0x63,0x65])](_0x1940a4)[_0x5db2c1([0x74,0x68,0x65,0x6e])](()=>_0x195877);}async function _0x437e6e(){await _0x4cbf1c,_0x1cead5[_0x5db2c1([0x6d,0x6f,0x64,0x65,0x6c])][_0x5db2c1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x554bd2,_0x1cead5[_0x5db2c1([0x6d,0x6f,0x64,0x65,0x6c])][_0x5db2c1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x554bd2,_0x1cead5[_0x5db2c1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5db2c1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2e4cfc(){return _0x524b78(_0x5db2c1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x28d97c(_0x5db2c1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5db2c1([0x73,0x74,0x61,0x74,0x65])]==_0x5db2c1([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4a49c2(){return _0x524b78(_0x5db2c1([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 _0x555064(){return _0x524b78(_0x5db2c1([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3159d1(_0x14406d){const _0x355e17=_0x55ba54();_0x1cead5[_0x355e17]=_0x5db2c1([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x14406d,_0x14406d!=_0x5db2c1([0x56,0x61,0x6c,0x69,0x64])&&_0x437e6e();}function _0x55ba54(){const _0x33263c=window[_0x5db2c1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5db2c1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5db2c1([0x6e,0x6f,0x77])]())[_0x5db2c1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5db2c1([0x2e]),'');let _0x2bb3ea=_0x5db2c1([0x52]);for(let _0x494fd4=0x0;_0x494fd4<_0x33263c[_0x5db2c1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x494fd4+=0x2){let _0x2ce5b8=window[_0x5db2c1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33263c[_0x5db2c1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x494fd4,_0x494fd4+0x2));_0x2ce5b8>=_0xbd1b75[_0x5db2c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2ce5b8-=_0xbd1b75[_0x5db2c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2bb3ea+=_0xbd1b75[_0x2ce5b8];}return _0x2bb3ea;}function _0x4048dc(){const _0x561b3d=_0x242b22[_0x5db2c1([0x73,0x70,0x6c,0x69,0x74])](_0x5db2c1([0x2e]));if(0x3!=_0x561b3d[_0x5db2c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4b893e(_0x561b3d[0x1]);function _0x4b893e(_0xa6ba42){const _0xe2f98f=_0x538ddb(_0xa6ba42);return _0xe2f98f&&_0x5e2d13()?_0xe2f98f:null;function _0x5e2d13(){const _0x371949=_0xe2f98f[_0x5db2c1([0x6a,0x74,0x69])],_0xbbeeb5=window[_0x5db2c1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x371949[_0x5db2c1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x371949[_0x5db2c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x395d2d={..._0xe2f98f,[_0x5db2c1([0x6a,0x74,0x69])]:_0x371949[_0x5db2c1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x371949[_0x5db2c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x395d2d[_0x5db2c1([0x76,0x63])],_0x27d22b(_0x395d2d)==_0xbbeeb5;}}}async function _0x1a73a4(){let _0x4df3a5=!0x0;try{const _0x4adf9e=_0x242b22[_0x5db2c1([0x73,0x70,0x6c,0x69,0x74])](_0x5db2c1([0x2e])),[_0x162d7c,_0x459bc3,_0x194b91]=_0x4adf9e;return _0x33cfc2(_0x162d7c),await _0x338eb7(_0x162d7c,_0x459bc3,_0x194b91),_0x4df3a5;}catch{return!0x1;}function _0x33cfc2(_0xb12d0e){const _0x652d3b=_0x538ddb(_0xb12d0e);_0x652d3b&&_0x652d3b[_0x5db2c1([0x61,0x6c,0x67])]==_0x5db2c1([0x45,0x53,0x32,0x35,0x36])||(_0x4df3a5=!0x1);}async function _0x338eb7(_0x480d4d,_0x2db8fd,_0x4310bd){const _0x18c35d=window[_0x5db2c1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5db2c1([0x66,0x72,0x6f,0x6d])](_0x19b989(_0x4310bd),_0x2334d0=>_0x2334d0[_0x5db2c1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xcac6de=new window[(_0x5db2c1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5db2c1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x480d4d+_0x5db2c1([0x2e])+_0x2db8fd),_0x5e6444=window[_0x5db2c1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5db2c1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5e6444)return;const _0xceb901=await _0x5e6444[_0x5db2c1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5db2c1([0x6a,0x77,0x6b]),_0x3a6cc9,{[_0x5db2c1([0x6e,0x61,0x6d,0x65])]:_0x5db2c1([0x45,0x43,0x44,0x53,0x41]),[_0x5db2c1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5db2c1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5db2c1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5e6444[_0x5db2c1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5db2c1([0x6e,0x61,0x6d,0x65])]:_0x5db2c1([0x45,0x43,0x44,0x53,0x41]),[_0x5db2c1([0x68,0x61,0x73,0x68])]:{[_0x5db2c1([0x6e,0x61,0x6d,0x65])]:_0x5db2c1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xceb901,_0x18c35d,_0xcac6de)||(_0x4df3a5=!0x1);}}function _0x538ddb(_0x5e5f5f){return _0x5e5f5f[_0x5db2c1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5db2c1([0x65,0x79]))?JSON[_0x5db2c1([0x70,0x61,0x72,0x73,0x65])](_0x19b989(_0x5e5f5f)):null;}function _0x19b989(_0x534505){return window[_0x5db2c1([0x61,0x74,0x6f,0x62])](_0x534505[_0x5db2c1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5db2c1([0x2b]))[_0x5db2c1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5db2c1([0x2f])));}function _0x27d22b(_0x179fdc){let _0x2ee4c2=0x1505;function _0x268a2f(_0x137081){for(let _0x381580=0x0;_0x381580<_0x137081[_0x5db2c1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x381580++){const _0xbcd493=_0x137081[_0x5db2c1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x381580);_0x2ee4c2=(_0x2ee4c2<<0x5)+_0x2ee4c2+_0xbcd493,_0x2ee4c2&=_0x2ee4c2;}}function _0x3c3942(_0x3b7145){Array[_0x5db2c1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3b7145)?_0x3b7145[_0x5db2c1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3c3942):_0x3b7145&&typeof _0x3b7145==_0x5db2c1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5db2c1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3b7145)[_0x5db2c1([0x73,0x6f,0x72,0x74])]()[_0x5db2c1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x253296,_0x4ef87e])=>{_0x268a2f(_0x253296),_0x3c3942(_0x4ef87e);}):_0x268a2f(window[_0x5db2c1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3b7145));}return _0x3c3942(_0x179fdc),_0x2ee4c2>>>0x0;}function _0x2a876e(_0x4c12d8){return _0x4c12d8[_0x5db2c1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5db2c1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5db2c1([0x30]));}function _0x3e89d0(_0x7e051){return _0x7e051[_0x5db2c1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5db2c1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5db2c1([0x6a,0x6f,0x69,0x6e])]('');}function _0x524b78(_0x4d3a2d){return _0x1cead5[_0x5db2c1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5db2c1([0x68,0x61,0x73])](_0x4d3a2d);}function _0x28d97c(_0x52ce11){return _0x1cead5[_0x5db2c1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5db2c1([0x67,0x65,0x74])](_0x52ce11);}function _0x554bd2(){}function _0x5db2c1(_0x5da323){return _0x5da323['map'](_0x16f9d6=>String['fromCharCode'](_0x16f9d6))['join']('');}_0x3159d1(await _0xc6b747());}(this);}set['adapter'](_0x48e76d){if(this['_adapter'])throw new _0x3fdb7b('track-changes-adapter-already-set',this);this['_adapter']=_0x48e76d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xaf682a=!0x1,toJSON:_0xd9bc6e=!0x1}={}){const _0x3b7bc1=[];for(const _0x4f19a0 of this['_suggestions']['values']())_0xaf682a&&!_0x4f19a0['isInContent']||_0x3b7bc1['push'](_0x4f19a0);return _0xd9bc6e?_0x3b7bc1['map'](_0x294935=>_0x294935['toJSON']()):_0x3b7bc1;}['getSuggestion'](_0x3ae8d8){const _0x40cee8=this['_suggestions']['get'](_0x3ae8d8);if(!_0x40cee8)throw new _0x3fdb7b('track-changes-suggestion-not-found',this);return _0x40cee8;}['hasSuggestion'](_0x3f665a){return this['_suggestions']['has'](_0x3f665a);}['addSuggestionData'](_0x4d66f9){const {authorId:_0x5caca9,id:_0x2a877c,originalSuggestionId:_0x122a0d,attributes:_0x2973ce}=_0x4d66f9,[_0x5e7e17,_0x5e114e]=_0x4d66f9['type']['split'](':'),_0x463bad=this['_suggestions']['get'](_0x2a877c)||this['_createSuggestion'](_0x5e7e17,_0x5e114e,_0x2a877c,_0x5caca9,_0x2973ce,_0x122a0d);if(this['_addThreadToSuggestion'](_0x463bad),this['_checkSuggestionCorrectness'](_0x463bad,_0x5e7e17,_0x5e114e||null,_0x5caca9),_0x463bad['createdAt']=_0x4d66f9['createdAt'],_0x463bad['_isDataLoaded']=!0x0,_0x2973ce&&_0x2973ce['@external']){const _0x140f89=_0x2973ce['@external'],_0x2f6178=this['_getExternalAuthor'](_0x140f89['authorName']);_0x463bad['authoredAt']=_0x140f89['createdAt'],_0x463bad['author']=_0x2f6178,_0x463bad['isExternal']=!0x0;}else _0x463bad['authoredAt']=_0x4d66f9['createdAt'];switch(_0x4d66f9['data']&&(_0x463bad['data']=_0x4d66f9['data']),_0x4d66f9['attributes']&&(_0x463bad['attributes']=_0x4d66f9['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x463bad['_saved']=!0x0),this['_suggestionState']['get'](_0x463bad)){case'notReady':this['_suggestionState']['set'](_0x463bad,'dataReady');break;case'markerReady':_0x463bad['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x463bad])),this['_refreshSuggestionsChain'](new Set([_0x463bad])),this['_suggestionState']['set'](_0x463bad,'ready'),this['fire']('suggestionLoaded',_0x463bad)):this['_suggestionState']['set'](_0x463bad,'removed');}return _0x463bad;}['acceptSuggestion'](_0x34d4f6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1c4c3d of _0x34d4f6['getAllAdjacentSuggestions']())_0x1c4c3d['accept']();});});}['discardSuggestion'](_0x97f980){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4bdc46 of _0x97f980['getAllAdjacentSuggestions']())_0x4bdc46['discard']();});});}['enableCommand'](_0x174155,_0x58532a){const _0x38b1a7=this['editor']['commands']['get'](_0x174155);if(!_0x38b1a7)throw new _0x3fdb7b('track-changes-command-not-found',this,{'commandName':_0x174155});if(this['_enabledCommands']['has'](_0x38b1a7))throw new _0x3fdb7b('track-changes-enable-command-twice',this,{'commandName':_0x174155});this['_enabledCommands']['add'](_0x38b1a7),_0x58532a&&_0x38b1a7['on']('execute',(_0x2b7b0b,_0x2e1198)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2e1198['length']>0x0&&_0x2e1198[_0x2e1198['length']-0x1]&&_0x2e1198[_0x2e1198['length']-0x1]['forceDefaultExecution']?_0x2e1198['pop']():(_0x2b7b0b['return']=_0x58532a((..._0x2d44f8)=>_0x38b1a7['execute'](..._0x2d44f8,{'forceDefaultExecution':!0x0}),..._0x2e1198),_0x2b7b0b['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x25a309){let _0x55db6b,_0x4da61c;const _0x519039=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x55db6b=_0x25a309();}catch(_0x57b18f){_0x4da61c=_0x57b18f;}return _0x519039||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4da61c&&_0x3fdb7b['rethrowUnexpectedError'](_0x4da61c,this),_0x55db6b;}['markInsertion'](_0x38c6bf,_0x3d2ab2=null,_0x2eebe9={}){if(_0x38c6bf['isCollapsed'])return null;const _0x224847=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x2eebe9['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x53da83,meta:_0xf5c246}of this['_findSuggestions'](_0x38c6bf,'insertion'))if(_0xf5c246['isOwn']){if(!_0xf5c246['isNextTo']){if(_0xf5c246['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x53da83,_0x2eebe9))continue;return _0x53da83;}if(sn(_0x53da83,_0x2eebe9))return _0x53da83;this['_breakSuggestionMarker'](_0x53da83,_0x38c6bf['start'],_0x38c6bf['end']);break;}if(_0x3d2ab2==_0x53da83['subType']&&sn(_0x53da83,_0x2eebe9)){const _0xa94df4=_0x53da83['getFirstRange']();return _0xa94df4['start']['isEqual'](_0x38c6bf['end'])?this['_setSuggestionRange'](_0x53da83,this['_model']['createRange'](_0x38c6bf['start'],_0xa94df4['end'])):this['_setSuggestionRange'](_0x53da83,this['_model']['createRange'](_0xa94df4['start'],_0x38c6bf['end'])),_0x53da83;}}const _0x1535be=_0x3da106(),_0x256a0d=_0x224847['id'],_0x8ce1a0=_0x3d2ab2?'insertion:'+_0x3d2ab2:'insertion',_0x5e0952=this['_setSuggestionData']({'id':_0x1535be,'type':_0x8ce1a0,'createdAt':new Date(),'authorId':_0x256a0d,'attributes':_0x2eebe9});return this['_addSuggestionMarker'](_0x8ce1a0,_0x1535be,_0x256a0d,_0x38c6bf),_0x5e0952;}['markMultiRangeInsertion'](_0x420d3e,_0x9933ab='multi',_0x1acb14={}){const _0x3c1ef2=this['editor']['plugins']['get']('Users')['me'],_0x308fc3=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x9933ab,'join');this['_trackingSessionId']&&(_0x1acb14['trackingSessionId']=this['_trackingSessionId']);for(const _0x304f27 of this['getSuggestions']())if(_0x304f27['author']['id']==_0x3c1ef2['id']&&'insertion'==_0x304f27['type']&&_0x304f27['subType']==_0x9933ab&&sn(_0x304f27,_0x1acb14)&&(_0x308fc3(_0x304f27['getRanges'](),_0x420d3e)||_0x308fc3(_0x420d3e,_0x304f27['getRanges']()))){for(const _0x15b31d of _0x420d3e)_0x304f27['addRange'](_0x15b31d);return _0x304f27;}for(const {suggestion:_0x5627a8,meta:_0x2e04fe}of this['_findSuggestions'](_0x420d3e,'insertion')){if(!_0x2e04fe['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2e04fe['containsRangeInObject'])continue;if(!sn(_0x5627a8,_0x1acb14))continue;let _0x1f2b35=!0x0;for(const _0x41c77c of _0x5627a8['getRanges']())for(const _0x2f26ef of _0x420d3e)if(!_0x41c77c['containsRange'](_0x2f26ef)){_0x1f2b35=!0x1;break;}if(_0x1f2b35)return _0x5627a8;}const _0x2e5115=_0x3da106(),_0x4f2094=_0x3c1ef2['id'],_0x200a1f='insertion:'+_0x9933ab,_0x46369d=this['_setSuggestionData']({'id':_0x2e5115,'type':_0x200a1f,'createdAt':new Date(),'authorId':_0x4f2094,'attributes':_0x1acb14});for(const _0x12dd85 of _0x420d3e)this['_addSuggestionMarker'](_0x200a1f,_0x2e5115,_0x4f2094,_0x12dd85,x['getMultiRangeId']());return _0x46369d;}['markInlineFormat'](_0x49969f,_0x301952,_0x113ee9=null,_0x158d4b={}){if(_0x113ee9=_0x113ee9||Ht(_0x301952),_0x49969f['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x158d4b['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4ff29b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x113ee9,'accept');return this['forceDefaultExecution'](()=>_0x4ff29b([_0x49969f],_0x301952,_0x158d4b)),null;}const _0x40bebf=this['editor']['plugins']['get']('Users')['me'],_0x872909=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x55384b,meta:_0x3ddbf9}of this['_findSuggestions'](_0x49969f,'insertion'))_0x3ddbf9['isOwn']&&!_0x3ddbf9['isInsideObject']&&_0x872909['push'](..._0x55384b['getRanges']());}const _0x144d5c=function(_0x36ea9c,_0x45dc61){const _0x43b34e=[];for(const _0x407a80 of _0x45dc61){const _0x3e4b29=_0x36ea9c['getIntersection'](_0x407a80);_0x3e4b29&&_0x43b34e['push'](_0x3e4b29);}return _0x43b34e;}(_0x49969f,_0x872909),_0xb1f047=function(_0x4b2cd1,_0x51c471){const _0x317beb=[_0x4b2cd1];for(const _0x642899 of _0x51c471){let _0x2a66a2=0x0;for(;_0x2a66a2<_0x317beb['length'];){const _0x3cabdb=_0x317beb[_0x2a66a2]['getDifference'](_0x642899);_0x317beb['splice'](_0x2a66a2,0x1,..._0x3cabdb),_0x2a66a2+=_0x3cabdb['length'];}}return _0x317beb;}(_0x49969f,_0x872909);_0x144d5c['length']&&this['_model']['change'](()=>{for(const _0x234a27 of _0x144d5c){const _0x15692a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x113ee9,'accept');this['forceDefaultExecution'](()=>_0x15692a([_0x234a27],_0x301952,_0x158d4b));}});for(const _0x22ec96 of _0xb1f047){let _0xd513fb=null,_0x4be9ea=_0x22ec96['start'],_0x44505b=_0x22ec96['end'];for(const {suggestion:_0x12fd59,meta:_0x38f0b9}of this['_findSuggestions'](_0x22ec96,'formatInline')){if(!_0x38f0b9['isOwn'])continue;if(_0x12fd59['subType']!=_0x113ee9)continue;if(!sn(_0x12fd59,_0x158d4b))continue;const _0x1e8136=_0x12fd59['getFirstRange']();if(_0x1e8136['containsRange'](_0x22ec96,!0x0))return null;_0x4be9ea=_0x4be9ea['isBefore'](_0x1e8136['start'])?_0x4be9ea:_0x1e8136['start'],_0x44505b=_0x44505b['isAfter'](_0x1e8136['end'])?_0x44505b:_0x1e8136['end'],_0xd513fb?_0x1e8136['start']['isBefore'](_0xd513fb['getFirstRange']()['start'])?(_0xd513fb['removeMarkers'](),_0xd513fb=_0x12fd59):_0x12fd59['removeMarkers']():_0xd513fb=_0x12fd59;}const _0x40c338=this['_model']['createRange'](_0x4be9ea,_0x44505b);if(_0xd513fb)this['_setSuggestionRange'](_0xd513fb,_0x40c338);else{const _0x4a75fd=_0x3da106(),_0x382cee=_0x40bebf['id'];this['_setSuggestionData']({'id':_0x4a75fd,'type':'formatInline:'+_0x113ee9,'data':_0x301952,'createdAt':new Date(),'authorId':_0x382cee,'attributes':_0x158d4b}),this['_addSuggestionMarker']('formatInline:'+_0x113ee9,_0x4a75fd,_0x382cee,_0x40c338);}}return null;}['markBlockFormat'](_0x340c36,_0x37eed5,_0x4d5722=[],_0xf3fedc=null,_0x315a96={}){_0x37eed5['formatGroupId']||(_0x37eed5['formatGroupId']=_0x37eed5['commandName']),_0x37eed5['multipleBlocks']=_0x340c36['is']('range'),_0xf3fedc=_0xf3fedc||Ht(_0x37eed5);const _0x10d9dd=_0x4d5722['map'](_0x230fdc=>tn(_0x230fdc,this['_model'])),_0x3f2dea=_0x340c36['is']('range')?_0x340c36:tn(_0x340c36,this['_model']);if(this['_trackingSessionId']&&(_0x315a96['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5f5900=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf3fedc,'accept');return this['forceDefaultExecution'](()=>_0x5f5900([_0x3f2dea],_0x37eed5,_0x315a96)),null;}_0x10d9dd['push'](_0x3f2dea);let _0x319f9f=!0x0;for(const _0x31ee4b of _0x10d9dd)if(!this['_rangeIsInLocalUserInsertion'](_0x31ee4b)){_0x319f9f=!0x1;break;}if(_0x319f9f&&'always'!==this['_trackFormatChanges']){const _0x55993a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf3fedc,'accept');return this['forceDefaultExecution'](()=>_0x55993a([_0x3f2dea],_0x37eed5,_0x315a96)),null;}let _0x22d8e9=null,_0x58c14e=_0x3f2dea['start'],_0x5d58d4=_0x3f2dea['end'];for(const {suggestion:_0x5dbb04,meta:_0x546474}of this['_findSuggestions'](_0x3f2dea,'formatBlock')){if(!_0x546474['isOwn'])continue;if(_0x546474['isNextTo']||_0x546474['containsRangeInObject']||_0x546474['isInsideObject'])continue;if(_0x5dbb04['data']['formatGroupId']!=_0x37eed5['formatGroupId'])continue;if(!sn(_0x5dbb04,_0x315a96))continue;const _0x55b909=_0x5dbb04['getFirstRange']();if(_0x5dbb04['subType']==_0xf3fedc){if(_0x55b909['containsRange'](_0x3f2dea,!0x0))return null;_0x58c14e=_0x58c14e['isBefore'](_0x55b909['start'])?_0x58c14e:_0x55b909['start'],_0x5d58d4=_0x5d58d4['isAfter'](_0x55b909['end'])?_0x5d58d4:_0x55b909['end'],_0x22d8e9?_0x55b909['start']['isBefore'](_0x22d8e9['getFirstRange']()['start'])?(_0x22d8e9['removeMarkers'](),_0x22d8e9=_0x5dbb04):_0x5dbb04['removeMarkers']():_0x22d8e9=_0x5dbb04;}else{const _0x48d6b9=_0x3f2dea['getIntersection'](_0x55b909);this['_cutOutSuggestionMarker'](_0x5dbb04,_0x48d6b9);}}const _0x734fe8=this['editor']['plugins']['get']('Users')['me'],_0x596a79=_0x3da106(),_0x2e12a8=_0x734fe8['id'];if(_0x22d8e9)return this['_setSuggestionRange'](_0x22d8e9,this['_model']['createRange'](_0x58c14e,_0x5d58d4)),_0x22d8e9;{const _0x262be1=this['_setSuggestionData']({'id':_0x596a79,'type':'formatBlock:'+_0xf3fedc,'data':_0x37eed5,'createdAt':new Date(),'authorId':_0x2e12a8,'attributes':_0x315a96});return this['_addSuggestionMarker']('formatBlock:'+_0xf3fedc,_0x596a79,_0x2e12a8,this['_model']['createRange'](_0x58c14e,_0x5d58d4)),_0x262be1;}}['markMultiRangeBlockFormat'](_0x2bf319,_0x18be12,_0x3c4b38=[],_0x26fd10=null,_0x148aab={}){_0x18be12['formatGroupId']||(_0x18be12['formatGroupId']=_0x18be12['commandName']);const _0x761f5c=_0x2bf319[0x0];_0x18be12['multipleBlocks']=_0x761f5c['is']('range'),_0x26fd10=_0x26fd10||Ht(_0x18be12);const _0x2149b4=_0x3c4b38['map'](_0x24dfd4=>tn(_0x24dfd4,this['_model'])),_0x849925=_0x761f5c['is']('range')?_0x2bf319:_0x2bf319['map'](_0x1c868d=>tn(_0x1c868d,this['_model']));if(this['_trackingSessionId']&&(_0x148aab['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x292773=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x26fd10,'accept');return this['forceDefaultExecution'](()=>_0x292773(_0x849925,_0x18be12,_0x148aab)),null;}_0x2149b4['push'](..._0x849925);let _0x363062=!0x0;for(const _0x211767 of _0x2149b4)if(!this['_rangeIsInLocalUserInsertion'](_0x211767)){_0x363062=!0x1;break;}if(_0x363062&&'always'!==this['_trackFormatChanges']){const _0x124ea3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x26fd10,'accept');return this['forceDefaultExecution'](()=>_0x124ea3(_0x849925,_0x18be12,_0x148aab)),null;}const _0x152397=this['editor']['plugins']['get']('Users')['me'];for(const _0x37a442 of this['getSuggestions']()){const _0x122762=_0x37a442['data'];if(_0x37a442['author']['id']!=_0x152397['id'])continue;if('formatBlock'!=_0x37a442['type']||_0x122762['formatGroupId']!=_0x18be12['formatGroupId'])continue;if(!sn(_0x37a442,_0x148aab))continue;const _0x501cae=_0x37a442['subType']==_0x26fd10;for(let _0x109c87=0x0;_0x109c87<_0x849925['length'];_0x109c87++){const _0x619e5f=_0x849925[_0x109c87];for(const _0x29b8fc of _0x37a442['getMarkers']()){const _0x288d7f=_0x29b8fc['getRange']();if(_0x619e5f['isEqual'](_0x288d7f)){_0x501cae?(_0x849925['splice'](_0x109c87,0x1),_0x109c87--):_0x37a442['removeMarker'](_0x29b8fc['name']);break;}}}}if(0x0==_0x849925['length'])return null;const _0x1bb538=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x26fd10,'join');for(const _0x5aa506 of this['getSuggestions']()){const _0x25c406=_0x5aa506['data'];if(_0x5aa506['author']['id']==_0x152397['id']&&('formatBlock'==_0x5aa506['type']&&_0x25c406['formatGroupId']==_0x18be12['formatGroupId']&&_0x5aa506['subType']==_0x26fd10&&sn(_0x5aa506,_0x148aab)&&(_0x1bb538(_0x5aa506['getRanges'](),_0x849925)||_0x1bb538(_0x849925,_0x5aa506['getRanges']())))){for(const _0x55cc5c of _0x849925)_0x5aa506['addRange'](_0x55cc5c);return _0x5aa506;}}const _0x4b9d72=_0x3da106(),_0x289677=_0x152397['id'],_0x3c00ee='formatBlock:'+_0x26fd10,_0xc86f84=this['_setSuggestionData']({'id':_0x4b9d72,'type':_0x3c00ee,'data':_0x18be12,'createdAt':new Date(),'authorId':_0x289677,'attributes':_0x148aab});for(const _0x5ac981 of _0x849925)this['_addSuggestionMarker'](_0x3c00ee,_0x4b9d72,_0x289677,_0x5ac981,x['getMultiRangeId']());return _0xc86f84;}['markDeletion'](_0x3c355d,_0x5bdc05=null,_0x114557={}){if(_0x3c355d['isCollapsed'])return null;const _0x179148=this['editor']['plugins']['get']('Users')['me'],_0x2e44d0=new _0x1506cc(_0x3c355d['start'],_0x3c355d['end']);this['_trackingSessionId']&&(_0x114557['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x42d226,meta:_0x346778}of this['_findSuggestions'](_0x2e44d0,'insertion'))if(_0x346778['isOwn']&&!_0x346778['isNextTo']){if(_0x42d226['isMultiRange']){const _0x536fcc=_0x42d226['getRanges']()['filter'](_0x3a44a8=>'$graveyard'!=_0x3a44a8['root']['rootName']);_0x536fcc['every'](_0x4651e9=>_0x2e44d0['containsRange'](_0x4651e9,!0x0))&&_0x42d226['discard']();if(_0x536fcc['some'](_0x373517=>_0x373517['containsRange'](_0x2e44d0,!0x0))){const _0x5c30c0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5bdc05,'accept');return this['forceDefaultExecution'](()=>_0x5c30c0([_0x2e44d0],null,_0x114557)),null;}}else{const _0x28ccee=_0x2e44d0['getIntersection'](_0x42d226['getFirstRange']());null!==_0x28ccee&&_0x42d226['_onDiscard']([_0x28ccee],null,_0x114557);}}if(_0x2e44d0['detach'](),_0x2e44d0['isCollapsed']||'$graveyard'==_0x2e44d0['root']['rootName'])return null;let _0x47dbbc=null,_0xd0e4b0=_0x2e44d0['start'],_0x3ea646=_0x2e44d0['end'];const _0x2fd8b2=this['_findSuggestions'](_0x2e44d0,'deletion');for(const {suggestion:_0x550d45,meta:_0x3cb7f2}of _0x2fd8b2){const _0x407a2e=this['_model']['createRange'](_0xd0e4b0,_0x3ea646);if(_0x3cb7f2['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3cb7f2['containsRangeInObject']&&!_0x3cb7f2['isInsideObject'])){if(_0x550d45['isMultiRange']){if(!sn(_0x550d45,_0x114557))continue;let _0x1f2e6e=!0x0;for(const _0x444da6 of _0x550d45['getRanges']()){if(_0x444da6['containsRange'](_0x407a2e,!0x0))return _0x550d45;_0x407a2e['containsRange'](_0x444da6)||(_0x1f2e6e=!0x1);}_0x1f2e6e&&_0x550d45['discard']();}else{const _0x476829=_0x550d45['getFirstRange']();if(_0x476829['containsRange'](_0x407a2e,!0x0))return _0x550d45;if(!sn(_0x550d45,_0x114557)){_0x407a2e['containsRange'](_0x476829)?_0x550d45['removeMarkers']():_0x476829['containsPosition'](_0xd0e4b0)?_0xd0e4b0=_0x476829['end']:_0x476829['containsPosition'](_0x3ea646)&&(_0x3ea646=_0x476829['start']);continue;}_0xd0e4b0=_0xd0e4b0['isBefore'](_0x476829['start'])?_0xd0e4b0:_0x476829['start'],_0x3ea646=_0x3ea646['isAfter'](_0x476829['end'])?_0x3ea646:_0x476829['end'],_0x114557=Object['assign']({},_0x550d45['attributes']),_0x47dbbc?_0x476829['start']['isBefore'](_0x47dbbc['getFirstRange']()['start'])?(_0x47dbbc['removeMarkers'](),_0x47dbbc=_0x550d45):_0x550d45['removeMarkers']():_0x47dbbc=_0x550d45;}}}if(_0x47dbbc)return this['_setSuggestionRange'](_0x47dbbc,this['_model']['createRange'](_0xd0e4b0,_0x3ea646)),_0x47dbbc;{const _0x52545a=_0x3da106(),_0x31ac35=this['_model']['createRange'](_0xd0e4b0,_0x3ea646),_0x55c5c3=_0x179148['id'],_0x168573=_0x5bdc05?'deletion:'+_0x5bdc05:'deletion',_0x369aca=this['_setSuggestionData']({'id':_0x52545a,'type':_0x168573,'createdAt':new Date(),'authorId':_0x55c5c3,'attributes':_0x114557});return this['_addSuggestionMarker'](_0x168573,_0x52545a,_0x55c5c3,_0x31ac35),_0x369aca;}}['markMultiRangeDeletion'](_0x159602,_0x32590a='multi',_0x4f7850={}){const _0x4c8b21=this['editor']['plugins']['get']('Users')['me'],_0x256398=_0x159602['map'](_0x495e1b=>new _0x1506cc(_0x495e1b['start'],_0x495e1b['end'])),_0x49712c=new Set();this['_trackingSessionId']&&(_0x4f7850['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x43854f,meta:_0x2aeba2}of this['_findSuggestions'](_0x256398,'insertion'))_0x2aeba2['isOwn']&&!_0x2aeba2['isNextTo']&&_0x49712c['add'](_0x43854f);for(const _0x2b6f8f of _0x49712c)if(_0x2b6f8f['isMultiRange']){const _0x11253e=_0x2b6f8f['getRanges']();(!_0x2b6f8f['attributes']||!_0x2b6f8f['attributes']['skipNestingCheck'])&&(_0x11253e['every'](_0x4a4b65=>_0x256398['some'](_0x403ad4=>_0x403ad4['containsRange'](_0x4a4b65,!0x0)))&&_0x2b6f8f['discard']());if(_0x256398['every'](_0x3c212f=>_0x11253e['some'](_0x2571ba=>_0x2571ba['containsRange'](_0x3c212f,!0x0)))){const _0x13ff84=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x32590a,'accept');return this['forceDefaultExecution'](()=>_0x13ff84(_0x159602,null,_0x4f7850)),null;}}else{const _0x57fbfe=_0x2b6f8f['getFirstRange']();_0x256398['some'](_0x13729e=>_0x13729e['containsRange'](_0x57fbfe,!0x0))&&_0x2b6f8f['discard']();if(_0x256398['every'](_0x210129=>_0x57fbfe['containsRange'](_0x210129,!0x0))){const _0x577e6c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x32590a,'accept');return this['forceDefaultExecution'](()=>_0x577e6c(_0x256398,null,_0x4f7850)),null;}}const _0x1de5ef=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x32590a,'join');let _0x44fb08=null;for(const _0x2d736c of this['getSuggestions']())if(_0x2d736c['author']['id']==_0x4c8b21['id']&&_0x2d736c['isInContent']&&'deletion'==_0x2d736c['type']&&_0x2d736c['subType']==_0x32590a&&sn(_0x2d736c,_0x4f7850)&&(_0x1de5ef(_0x2d736c['getRanges'](),_0x256398)||_0x1de5ef(_0x256398,_0x2d736c['getRanges']()))){if(_0x44fb08){if(_0x2d736c['commentThread']&&_0x2d736c['commentThread']['length'])continue;for(const _0x4dc9c5 of _0x2d736c['getRanges']())_0x44fb08['isIntersectingWithRange'](_0x4dc9c5)||_0x44fb08['addRange'](_0x4dc9c5);_0x2d736c['removeMarkers']();}else{_0x44fb08=_0x2d736c;for(const _0x8ff21c of _0x256398)_0x2d736c['isIntersectingWithRange'](_0x8ff21c)||_0x2d736c['addRange'](_0x8ff21c);}}if(_0x44fb08)return _0x44fb08;_0x49712c['clear']();for(const {suggestion:_0x2c3a2a,meta:_0x49fa5a}of this['_findSuggestions'](_0x256398,'deletion'))_0x49fa5a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x49fa5a['containsRangeInObject']&&!_0x49fa5a['isInsideObject'])&&sn(_0x2c3a2a,_0x4f7850)&&_0x49712c['add'](_0x2c3a2a);for(const _0x7f5a3a of _0x49712c){const _0x4468ff=_0x7f5a3a['getRanges']();if(!_0x4f7850||!_0x4f7850['skipNestingCheck']){if(_0x256398['every'](_0x516238=>_0x4468ff['some'](_0x60c49b=>_0x60c49b['containsRange'](_0x516238,!0x0))))return _0x7f5a3a;}(!_0x7f5a3a['attributes']||!_0x7f5a3a['attributes']['skipNestingCheck'])&&(_0x4468ff['every'](_0x58b7bc=>_0x256398['some'](_0x1da9a0=>_0x1da9a0['containsRange'](_0x58b7bc,!0x0)))&&_0x7f5a3a['discard']());}const _0xb8f923=_0x3da106(),_0x391219=_0x4c8b21['id'],_0x38f442='deletion:'+_0x32590a,_0x32210a=this['_setSuggestionData']({'id':_0xb8f923,'type':_0x38f442,'createdAt':new Date(),'authorId':_0x391219,'attributes':_0x4f7850});for(const _0x9af9ab of _0x256398)_0x9af9ab['detach'](),_0x9af9ab['isCollapsed']||'$graveyard'==_0x9af9ab['root']['rootName']||this['_addSuggestionMarker'](_0x38f442,_0xb8f923,_0x391219,_0x9af9ab,x['getMultiRangeId']());return _0x32210a;}['markAttributeChange'](_0x4592b9,_0x4947e0,_0xa6b6e,_0x33ebc6,_0x58df87){if(_0x4592b9['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x6bcc13=this['editor']['plugins']['get']('Users')['me']['id'],_0x535e28=Array['from'](this['_suggestions']['values']())['filter'](_0x2a8ba8=>'attribute'==_0x2a8ba8['type']&&_0x2a8ba8['data']['key']==_0x4947e0&&_0x2a8ba8['isIntersectingWithRange'](_0x4592b9));if(this['_trackingSessionId']&&(_0x58df87['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4aa87c=this['_findSuggestions'](_0x4592b9,'insertion')['filter'](({meta:_0x4165bb})=>_0x4165bb['isOwn']&&!_0x4165bb['isInsideObject']&&!_0x4165bb['isNextTo'])['map'](({suggestion:_0x349827})=>_0x349827);_0x535e28['unshift'](..._0x4aa87c);}const _0x27cf3d=new Map([[_0x4592b9,_0xa6b6e]]);for(const _0x107bbc of _0x535e28){const _0x401798='attribute'==_0x107bbc['type']?_0x107bbc['data']['oldValue']:void 0x0,_0xb3abfc=_0x107bbc['getFirstRange'](),_0xaa3834=Array['from'](_0x27cf3d['keys']())['find'](_0xe7f0a1=>_0xe7f0a1['isIntersecting'](_0xb3abfc));if(!_0xaa3834)continue;const _0x243e57=_0xaa3834['getDifference'](_0xb3abfc);this['_isBlockAttribute'](_0x4947e0)&&'insertion'==_0x107bbc['type']&&0x0!=_0x243e57['length']||(_0x27cf3d['delete'](_0xaa3834),_0x243e57['forEach'](_0x50363c=>{_0x27cf3d['set'](_0x50363c,_0xa6b6e);}),'insertion'!=_0x107bbc['type']&&_0x401798!=_0x33ebc6&&_0x27cf3d['set'](_0xaa3834['getIntersection'](_0xb3abfc),_0x401798));}const _0x552e95=[];for(const [_0x403884,_0x444d4d]of _0x27cf3d){const _0x3be294=_0x3da106(),_0xa4734d={'key':_0x4947e0,'oldValue':_0x444d4d,'newValue':_0x33ebc6};_0x4947e0['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':_0x4947e0});const _0x201e9a=('attribute:'+(_0x4947e0+'|'+Ht({'newValue':_0x33ebc6})))['substring'](0x0,0x3c),_0xfdfbd7=this['_setSuggestionData']({'id':_0x3be294,'type':_0x201e9a,'data':_0xa4734d,'createdAt':new Date(),'authorId':_0x6bcc13,'attributes':_0x58df87});_0x552e95['push'](_0xfdfbd7),this['_addSuggestionMarker'](_0x201e9a,_0x3be294,_0x6bcc13,_0x403884);}return _0x552e95;}['enableDefaultAttributesIntegration'](_0x2b3832){this['enableCommand'](_0x2b3832,(_0x25e4c4,..._0x48f1ce)=>{this['recordAttributeChanges'](()=>{_0x25e4c4(..._0x48f1ce);});});}['registerBlockAttribute'](_0x52fd62){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0x52fd62);}['registerInlineAttribute'](_0x588b8d){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x588b8d);}['startTrackingSession'](_0x2b40a1){return this['_trackingSessionId']=void 0x0!==_0x2b40a1?_0x2b40a1:_0x3da106(),this['_trackingSessionId'];}['_getAttributeKey'](_0xd488a1){return'attribute'==_0xd488a1['type']?_0xd488a1['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x28c826){if(0x0==_0x28c826['length'])return;const _0x42f23b=this['editor'],_0x2b57a0=_0x42f23b['plugins']['get'](_0x3ddfd3),_0xdd824e=[];_0x42f23b['model']['change'](_0x5c57fc=>{for(let _0x5ba779=0x0;_0x5ba779<_0x28c826['length'];_0x5ba779++){const _0x22454e=_0x28c826[_0x5ba779];if(_0x22454e['baseVersion']=_0x42f23b['model']['document']['version'],_0x22454e['isDocumentOperation']=!0x0,_0x2b57a0['isMarkedRemoveOperation'](_0x22454e)){const _0x2a3f52=Lt(_0x22454e['newRange'],_0x42f23b['model']);_0xdd824e['unshift'](_0x1506cc['fromRange'](_0x2a3f52));}else switch(_0x22454e['type']){case'rename':{const _0x460bfa=_0x22454e['oldName'],_0x4c622e=_0x22454e['newName'];if(_0x460bfa==_0x4c622e)break;_0x5c57fc['batch']['addOperation'](_0x22454e),_0x42f23b['model']['applyOperation'](_0x22454e);const _0x50fdd1='$elementName',_0x1e02cd=_0x22454e['position'],_0x354ce0=_0x42f23b['model']['createRange'](_0x1e02cd,_0x42f23b['model']['createPositionAt'](_0x1e02cd['nodeAfter'],'end'));this['markAttributeChange'](_0x354ce0,_0x50fdd1,_0x460bfa,_0x4c622e,{'groupId':_0x3da106()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x4d7b3c=_0x22454e['oldValue'],_0x259d8b=_0x22454e['newValue'];if(_0x4d7b3c==_0x259d8b)break;_0x5c57fc['batch']['addOperation'](_0x22454e),_0x42f23b['model']['applyOperation'](_0x22454e);const _0x35d516=_0x22454e['key'];if(!this['_isRegisteredAttribute'](_0x35d516))break;const _0x308107=Lt(_0x22454e['range'],_0x42f23b['model']);this['markAttributeChange'](_0x308107,_0x35d516,_0x4d7b3c,_0x259d8b,{'groupId':_0x3da106()});break;}case'insert':{_0x5c57fc['batch']['addOperation'](_0x22454e),_0x42f23b['model']['applyOperation'](_0x22454e);if(_0x28c826[_0x5ba779+0x1]&&'move'==_0x28c826[_0x5ba779+0x1]['type'])break;const _0x2f1755=_0x22454e['position'],_0x1e3bdc=_0x22454e['howMany'],_0x303e3c=Lt(_0x42f23b['model']['createRange'](_0x2f1755,_0x2f1755['getShiftedBy'](_0x1e3bdc)),_0x42f23b['model']);this['markInsertion'](_0x303e3c);break;}case'split':{_0x5c57fc['batch']['addOperation'](_0x22454e),_0x42f23b['model']['applyOperation'](_0x22454e);const _0x1efb8b=_0x22454e['splitPosition'],_0x53e7f7=_0x22454e['moveTargetPosition'];this['markInsertion'](_0x42f23b['model']['createRange'](_0x1efb8b,_0x53e7f7));break;}case'move':case'remove':_0x5c57fc['batch']['addOperation'](_0x22454e),_0x42f23b['model']['applyOperation'](_0x22454e);}}for(const _0xe76168 of _0xdd824e)_0xe76168['detach'](),this['markDeletion'](_0xe76168);});}['_setSuggestionRange'](_0x284816,_0x50caed){const _0x51213c=_0x284816['getFirstMarker']();this['_model']['change'](_0x47b56c=>{_0x47b56c['updateMarker'](_0x51213c,{'range':_0x50caed});});}['_addThreadToSuggestion'](_0x34af6a){const _0x533c2e=_0x34af6a['id'],_0x25d4f1=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x533c2e)||this['_commentsRepository']['addCommentThread']({'channelId':_0x25d4f1,'threadId':_0x533c2e,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x156979=this['_commentsRepository']['getCommentThread'](_0x533c2e);_0x156979['unbind']('isRemovable'),_0x156979['isRemovable']=!0x1,_0x34af6a['commentThread']=_0x156979;}['_checkSuggestionCorrectness'](_0x911c99,_0x57c4fa,_0x1251b7,_0x257394){if(_0x911c99['type']!=_0x57c4fa||_0x911c99['subType']!=_0x1251b7||_0x911c99['creator']['id']!=_0x257394)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3fdb7b('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3ca3fb,_0x484c93){const _0x4663f5=_0x3ca3fb['getFirstRange']();if(_0x484c93['isEqual'](_0x4663f5))_0x3ca3fb['removeMarkers']();else{if(_0x4663f5['containsRange'](_0x484c93)){const _0x273e97=this['_model']['createPositionAt'](_0x484c93['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3ca3fb,this['_model']['createRange'](_0x4663f5['start'],_0x273e97));const _0x5787b7=_0x3da106(),_0x2325cc=_0x3ca3fb['creator']['id'],_0x261b41=_0x3ca3fb['type']+':'+_0x3ca3fb['subType'];this['_setSuggestionData']({'id':_0x5787b7,'type':_0x261b41,'createdAt':new Date(),'authorId':_0x2325cc,'data':_0x3ca3fb['data'],'attributes':_0x3ca3fb['attributes']});const _0x2c18b5=this['_model']['createPositionAt'](_0x484c93['end']['parent'],'after'),_0x105dff=this['_model']['createRange'](_0x2c18b5,_0x4663f5['end']);this['_addSuggestionMarker'](_0x261b41,_0x5787b7,_0x2325cc,_0x105dff);}else{if(_0x4663f5['containsPosition'](_0x484c93['start'])){const _0x233520=this['_model']['createPositionAt'](_0x484c93['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3ca3fb,this['_model']['createRange'](_0x4663f5['start'],_0x233520));}else{const _0x1d7730=this['_model']['createPositionAt'](_0x484c93['end']['parent'],'after');this['_setSuggestionRange'](_0x3ca3fb,this['_model']['createRange'](_0x1d7730,_0x4663f5['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x25798c){for(const {suggestion:_0x3a9b24,meta:_0x1a4195}of this['_findSuggestions'](_0x25798c,'insertion')){if(!_0x1a4195['isOwn'])continue;const _0x1cc2fb=_0x3a9b24['getRanges']();for(const _0x4f36f6 of _0x1cc2fb)if(!_0x25798c['getDifference'](_0x4f36f6)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x598d79){return this['editor']['plugins']['get']('Users')['getUser'](_0x598d79);}['_getExternalAuthor'](_0x4c8db3){const _0x3d5232=this['editor']['plugins']['get']('Users'),_0x31db98=_0x6a7a5e('external:'+_0x4c8db3),_0x16ea55=_0x3d5232['getUser'](_0x31db98);return _0x16ea55||_0x3d5232['addUser']({'id':_0x31db98,'name':_0x4c8db3});}['_createSuggestion'](_0x1ff29d,_0x1dc916,_0x39e738,_0x5b0857,_0x5cdd93,_0x15d973){const _0x566371=this['_getAuthorFromId'](_0x5b0857);if(!_0x566371)throw new _0x3fdb7b('track-changes-user-not-found',this,{'authorId':_0x5b0857,'suggestionId':_0x39e738});const _0x300665=this['_suggestionFactory']['buildSuggestion'](_0x1ff29d,_0x1dc916,_0x39e738,_0x566371,_0x5cdd93,_0x1b7eec=>{this['_updateSuggestionData'](_0x39e738,{'attributes':_0x1b7eec});const _0x59ffee=this['getSuggestion'](_0x39e738);this['_joinWithAdjacentSuggestions'](new Set([_0x59ffee])),this['_refreshSuggestionsChain'](new Set([_0x59ffee]));},_0x15d973);return this['listenTo'](_0x300665,'accept',()=>{this['_updateSuggestionData'](_0x39e738,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x300665,'discard',()=>{this['_updateSuggestionData'](_0x39e738,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x39e738,_0x300665),this['_suggestionState']['set'](_0x300665,'notReady'),_0x300665;}['_splitMarkerName'](_0xae324e){return Gt(_0xae324e);}['_breakSuggestionMarker'](_0x1ab95e,_0x4d134a,_0x571865){const _0xca55ec=_0x1ab95e['getFirstRange'](),_0x211924=_0xca55ec['start'],_0x566dfe=_0xca55ec['end'];this['_setSuggestionRange'](_0x1ab95e,this['_model']['createRange'](_0x211924,_0x4d134a));const _0x16292a=_0x3da106(),_0x16faf3=_0x1ab95e['creator']['id'],_0x3625a7=_0x1ab95e['type']+(_0x1ab95e['subType']?':'+_0x1ab95e['subType']:'');this['_setSuggestionData']({'id':_0x16292a,'type':_0x3625a7,'createdAt':new Date(),'authorId':_0x16faf3,'originalSuggestionId':_0x1ab95e['_originalSuggestionId']||_0x1ab95e['id'],'attributes':_0x1ab95e['attributes'],'data':_0x1ab95e['data']});const _0x11555d=this['_getAttributeKey'](_0x1ab95e);('formatBlock'==_0x1ab95e['type']||_0x11555d&&this['_isBlockAttribute'](_0x11555d))&&(_0x571865=this['_model']['createPositionBefore'](_0x571865['parent'])),this['_addSuggestionMarker'](_0x3625a7,_0x16292a,_0x16faf3,this['_model']['createRange'](_0x571865,_0x566dfe));}['_findSuggestions'](_0x11b38c,_0x102e70=null){const _0x5b45f8=[],_0x13b85b=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x11b38c)||(_0x11b38c=[_0x11b38c]);for(const _0x543fc0 of this['getSuggestions']()){if(!_0x543fc0['isInContent'])continue;if(_0x102e70&&_0x543fc0['type']!=_0x102e70)continue;let _0x11ebc1=!0x1;for(const _0x24c0c4 of _0x543fc0['getRanges']()){for(const _0x44a57 of _0x11b38c){const _0x45a137=_0x44a57['start']['isEqual'](_0x24c0c4['end'])||_0x44a57['end']['isEqual'](_0x24c0c4['start']);if(_0x45a137||_0x44a57['getIntersection'](_0x24c0c4)){const _0xd24c0a=_0x44a57['containsRange'](_0x24c0c4)&&zt(this['_model']['schema'],_0x24c0c4['start'],_0x44a57),_0x2f966f=_0x24c0c4['containsRange'](_0x44a57)&&zt(this['_model']['schema'],_0x44a57['start'],_0x24c0c4);_0x5b45f8['push']({'suggestion':_0x543fc0,'meta':{'isOwn':_0x13b85b==_0x543fc0['author'],'isNextTo':_0x45a137,'isInsideObject':_0xd24c0a,'containsRangeInObject':_0x2f966f}}),_0x11ebc1=!0x0;break;}}if(_0x11ebc1)break;}}return _0x5b45f8;}['_addSuggestionMarker'](_0x45b2fe,_0x52aec5,_0x29469b,_0x2a0d9b,_0x3fcc59){this['_model']['change'](_0x29c871=>{let _0xfed1b0='suggestion:'+_0x45b2fe+':'+_0x52aec5+':'+_0x29469b;_0x3fcc59&&(_0xfed1b0=_0xfed1b0+':'+_0x3fcc59),_0x29c871['addMarker'](_0xfed1b0,{'range':_0x2a0d9b,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x59a633){const _0x3ecfbf=_0x59a633['previous'],_0x53a3b7=_0x59a633['next'];_0x59a633['previous']=null,_0x59a633['next']=null,null!=_0x3ecfbf&&_0x3ecfbf['next']==_0x59a633&&(_0x3ecfbf['next']=_0x53a3b7),null!=_0x53a3b7&&_0x53a3b7['previous']==_0x59a633&&(_0x53a3b7['previous']=_0x3ecfbf),'ready'==this['_suggestionState']['get'](_0x59a633)&&(this['_suggestionState']['set'](_0x59a633,'removed'),this['fire']('suggestionUnloaded',_0x59a633,_0x3ecfbf,_0x53a3b7));}['_setSuggestionData'](_0x9598dc){const _0x42f53b=_0x9598dc['id'],_0x50a5cb=this['addSuggestionData'](_0x9598dc);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3569bc=this['editor']['plugins']['get']('PendingActions'),_0x34500f=_0x50a5cb['hasComments'],_0x25346d=_0x50a5cb['subType']?_0x50a5cb['type']+':'+_0x50a5cb['subType']:_0x50a5cb['type'],_0x4fbab5=this['editor']['locale'],_0x3b1d10=_0x3569bc['add'](o(_0x4fbab5,'PENDING_ACTION_SUGGESTION')),_0x3bd6ee={'id':_0x42f53b,'type':_0x25346d,'hasComments':_0x34500f,'data':_0x9598dc['data']||null,'originalSuggestionId':_0x9598dc['originalSuggestionId']||null,'attributes':_0x50a5cb['attributes']};this['_adapter']['addSuggestion'](_0x3bd6ee)['then'](_0x5a2e16=>{_0x50a5cb['_saved']=!0x0,_0x3569bc['remove'](_0x3b1d10),_0x5a2e16&&_0x5a2e16['createdAt']&&(this['_suggestions']['get'](_0x42f53b)['createdAt']=_0x5a2e16['createdAt']);})['catch'](_0x21300d=>{throw _0x8196e7('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x50a5cb['discard']();}),_0x50a5cb['stopListening'](),this['_suggestions']['delete'](_0x50a5cb['id']),this['_suggestionState']['delete'](_0x50a5cb),_0x21300d;});}return _0x50a5cb;}['_isBlockAttribute'](_0x4d5908){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0x4d5908);}['_isInlineAttribute'](_0x1110b0){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x1110b0);}['_updateSuggestionData'](_0x59d3f1,_0x1f2a07){const _0x5648e7=this['editor']['plugins']['get']('PendingActions'),_0x2d1f97=this['getSuggestion'](_0x59d3f1);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2d1f97['_saved']){const _0x294040=_0x5648e7['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x59d3f1,_0x1f2a07)['then'](()=>{_0x5648e7['remove'](_0x294040);});}else _0x2d1f97['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x59d3f1,_0x1f2a07);});}}['_getSuggestionData'](_0x6a742b){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3fdb7b('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x6a742b);}['_handleNewSuggestionMarker'](_0x57f3dc){const {id:_0x34d5ad,type:_0xa6f7de,subType:_0x12f8ae,authorId:_0x39b635}=this['_splitMarkerName'](_0x57f3dc),_0x372ab9=this['_suggestions']['get'](_0x34d5ad)||this['_createSuggestion'](_0xa6f7de,_0x12f8ae,_0x34d5ad,_0x39b635,{});switch(this['_checkSuggestionCorrectness'](_0x372ab9,_0xa6f7de,_0x12f8ae,_0x39b635),this['_suggestionState']['get'](_0x372ab9)){case'notReady':this['_getSuggestionData'](_0x34d5ad)['then'](_0x3f0040=>{let _0x1dc8c3=Promise['resolve']();_0x3f0040['hasComments']&&(_0x1dc8c3=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x34d5ad})),_0x1dc8c3['then'](()=>{this['addSuggestionData'](_0x3f0040)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x372ab9,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x34d5ad,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x372ab9,'ready'),this['fire']('suggestionLoaded',_0x372ab9);break;case'ready':this['fire']('suggestionChanged',_0x372ab9);}return _0x372ab9['addMarkerName'](_0x57f3dc),_0x372ab9;}['_refreshSuggestionsChain'](_0x64c89b){const _0x1c93ea=Array['from'](_0x64c89b),_0x4cd92d=_0x1c93ea['filter'](_0x5bb781=>'attribute'==_0x5bb781['type']);this['_refreshAttributeSuggestionsChain'](_0x4cd92d);const _0xc46aff=_0x1c93ea['filter'](_0x3e1fcc=>!_0x3e1fcc['isMultiRange']&&'attribute'!=_0x3e1fcc['type']),_0x426e7f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2e3722=>!_0x2e3722['isMultiRange']&&'attribute'!=_0x2e3722['type']),_0x1caa89=_0x426e7f['filter'](_0x3bdc05=>!_0x64c89b['has'](_0x3bdc05)),_0x4ffeb6=new Map(_0x426e7f['map'](_0xe6b714=>[_0xe6b714,this['_suggestionFactory']['getSuggestionCallback'](_0xe6b714['type'],_0xe6b714['subType'],'chain')])),_0x19fa35=new Map(_0x426e7f['map'](_0x31b95a=>[_0x31b95a,_0x31b95a['getFirstRange']()])),_0x409adf=new Set(),_0x5a85aa=new Set();for(let _0x48494a=0x0;_0x48494a<_0xc46aff['length'];_0x48494a++)_0x31663d(_0xc46aff[_0x48494a],_0xc46aff,_0x48494a+0x1);for(let _0x4e0e2d=0x0;_0x4e0e2d<_0xc46aff['length'];_0x4e0e2d++)_0x31663d(_0xc46aff[_0x4e0e2d],_0x1caa89,0x0);const _0x2441db=new Set();for(let _0x431b86=0x0;_0x431b86<_0xc46aff['length'];_0x431b86++){const _0x2fc65d=_0xc46aff[_0x431b86];!_0x5a85aa['has'](_0x2fc65d)&&_0x2fc65d['previous']&&(_0x2441db['add'](_0x2fc65d['previous']),_0x2fc65d['previous']['next']===_0x2fc65d&&(_0x2fc65d['previous']['next']=null),_0x2fc65d['previous']=null),!_0x409adf['has'](_0x2fc65d)&&_0x2fc65d['next']&&(_0x2441db['add'](_0x2fc65d['next']),_0x2fc65d['next']['previous']===_0x2fc65d&&(_0x2fc65d['next']['previous']=null),_0x2fc65d['next']=null);}function _0x31663d(_0x12edc8,_0x49edd7,_0x227ec2){for(let _0x7b3b92=_0x227ec2;_0x7b3b92<_0x49edd7['length'];_0x7b3b92++){const _0x4ed1df=_0x19244b(_0x12edc8,_0x49edd7[_0x7b3b92]);_0x4ed1df&&(_0x4ed1df[0x0]['next']=_0x4ed1df[0x1],_0x4ed1df[0x1]['previous']=_0x4ed1df[0x0],_0x409adf['add'](_0x4ed1df[0x0]),_0x5a85aa['add'](_0x4ed1df[0x1]));}}function _0x19244b(_0x497ff1,_0x4520bd){if(_0x497ff1['author']['id']!==_0x4520bd['author']['id'])return null;const _0x573cb5=_0x4ffeb6['get'](_0x497ff1)(_0x497ff1,_0x4520bd,_0x19fa35['get'](_0x497ff1),_0x19fa35['get'](_0x4520bd));if(!_0x573cb5)return null;return _0x4ffeb6['get'](_0x4520bd)(_0x497ff1,_0x4520bd,_0x19fa35['get'](_0x497ff1),_0x19fa35['get'](_0x4520bd))?_0x573cb5[0x1]['commentThread']&&_0x573cb5[0x1]['commentThread']['length']?null:_0x573cb5:null;}_0x2441db['size']&&this['_refreshSuggestionsChain'](_0x2441db);}['_refreshAttributeSuggestionsChain'](_0x401e37){if(0x0==_0x401e37['length'])return;const _0x23648a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ec38d=>'attribute'==_0x3ec38d['type']&&_0x3ec38d['_isDataLoaded']),_0x482086=[],_0x2b6008=new Map();for(const _0x3e15f9 of _0x23648a){const _0x4eeffe=_0x6a7a5e(_0x3e15f9['attributes']);_0x2b6008['has'](_0x4eeffe)||(_0x2b6008['set'](_0x4eeffe,_0x482086['length']),_0x482086['push']([]));const _0x244f0a=_0x2b6008['get'](_0x4eeffe);_0x482086[_0x244f0a]['push'](_0x3e15f9);}!(function(){_0x482086['sort']((_0x1a9283,_0x3e348a)=>{const _0x33bf5d=_0x1a9283[0x0]['createdAt'],_0x3ed715=_0x3e348a[0x0]['createdAt'];return _0x33bf5d==_0x3ed715?_0x1a9283[0x0]['attributes']['groupId']<_0x3e348a[0x0]['attributes']['groupId']?-0x1:0x1:_0x33bf5d<_0x3ed715?-0x1:0x1;});for(const _0x296326 of _0x482086)_0x296326['sort']((_0x13bef8,_0x304080)=>_0x13bef8['id']<_0x304080['id']?-0x1:0x1);}());for(let _0x152afa=0x0;_0x152afa<_0x482086['length'];_0x152afa++){if(0x0==_0x482086[_0x152afa]['length'])continue;const _0x3cbf1f=[];for(let _0x140726=_0x152afa+0x1;_0x140726<_0x482086['length'];_0x140726++)0x0!=_0x482086[_0x140726]['length']&&_0x1d6bf2(_0x482086[_0x152afa],_0x482086[_0x140726])&&_0x3cbf1f['push'](_0x140726);for(const _0x37f4a6 of _0x3cbf1f)_0x482086[_0x152afa]=_0x482086[_0x152afa]['concat'](_0x482086[_0x37f4a6]),_0x482086[_0x37f4a6]=[];}for(const _0x591456 of _0x482086)for(let _0xfd2cd9=0x0;_0xfd2cd9<_0x591456['length'];_0xfd2cd9++){const _0x454840=_0x591456[_0xfd2cd9+0x1]||null;_0x591456[_0xfd2cd9]['next']!==_0x454840&&(_0x591456[_0xfd2cd9]['next']=_0x454840);}for(const _0x3a5a20 of _0x482086)for(let _0x549c50=0x0;_0x549c50<_0x3a5a20['length'];_0x549c50++){const _0x2141fa=_0x3a5a20[_0x549c50-0x1]||null;_0x3a5a20[_0x549c50]['previous']!==_0x2141fa&&(_0x3a5a20[_0x549c50]['previous']=_0x2141fa);}function _0x1d6bf2(_0x1a315f,_0x7f0a5f){if(_0x1a315f[0x0]['attributes']['groupId']!==_0x7f0a5f[0x0]['attributes']['groupId']&&_0x1a315f[0x0]['author']!==_0x7f0a5f[0x0]['author'])return!0x1;if(!function(_0x5b826c,_0x56175c){if(!_0x5b826c['hasComments']&&!_0x56175c['hasComments'])return!0x0;if(_0x5b826c['hasComments']&&_0x56175c['hasComments'])return!0x1;if(_0x5b826c['hasComments']&&_0x56175c['createdAt']<_0x5b826c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x56175c['hasComments']&&_0x5b826c['createdAt']<_0x56175c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1a315f[0x0],_0x7f0a5f[0x0]))return!0x1;const _0x2b92af=Pt(_0x1a315f[0x0]['attributes'],['groupId','trackingSessionId']),_0x2b23d2=Pt(_0x7f0a5f[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x21a076(_0x2b92af,_0x2b23d2))return!0x1;if(_0x1a315f[0x0]['attributes']['groupId']==_0x7f0a5f[0x0]['attributes']['groupId'])return!0x0;if(_0x1a315f[0x0]['attributes']['trackingSessionId']!==_0x7f0a5f[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x1a315f['every'](_0x42c114=>_0x7f0a5f['some'](_0x4b693f=>_0x42c114['getFirstRange']()['isEqual'](_0x4b693f['getFirstRange']())))&&_0x7f0a5f['every'](_0x27e288=>_0x1a315f['some'](_0x268ef4=>_0x27e288['getFirstRange']()['isEqual'](_0x268ef4['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x10ebf5){const _0x23d347=Array['from'](_0x10ebf5),_0x393cd2=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4ea018=_0x393cd2['filter'](_0x53580c=>!_0x10ebf5['has'](_0x53580c)),_0x4c3c76=new Map(_0x23d347['map'](_0x56d82b=>[_0x56d82b,this['_suggestionFactory']['getSuggestionCallback'](_0x56d82b['type'],_0x56d82b['subType'],'join')])),_0x11307e=new Map(_0x393cd2['map'](_0x2d4683=>[_0x2d4683,_0x2d4683['getRanges']()]));for(let _0x4b17e5=0x0;_0x4b17e5<_0x23d347['length'];_0x4b17e5++){if(_0x4997ad(this,_0x23d347[_0x4b17e5],_0x23d347,_0x4b17e5+0x1))return!0x0;}for(let _0x2634fa=0x0;_0x2634fa<_0x23d347['length'];_0x2634fa++){if(_0x4997ad(this,_0x23d347[_0x2634fa],_0x4ea018,0x0))return!0x0;}return!0x1;function _0x4997ad(_0x33a1b7,_0x412b5b,_0x5c9237,_0x2b5871){for(let _0x2a0dd2=_0x2b5871;_0x2a0dd2<_0x5c9237['length'];_0x2a0dd2++){const _0x546b13=_0x5c9237[_0x2a0dd2];if(_0x546b13['type']!==_0x412b5b['type']||_0x546b13['author']['id']!==_0x412b5b['author']['id']||_0x546b13['subType']!==_0x412b5b['subType'])continue;if(!en(_0x412b5b,_0x546b13))continue;if('attribute'==_0x412b5b['type']&&_0x412b5b['data']['oldValue']!=_0x546b13['data']['oldValue'])continue;if('attribute'==_0x412b5b['type']&&_0x33a1b7['_isBlockAttribute'](_0x412b5b['data']['key']))continue;if('formatBlock'==_0x412b5b['type']){const _0x468782=_0x33a1b7['editor']['model'],_0xee4b00=_0x412b5b['getContainedElement']();if(_0xee4b00&&(_0x468782['schema']['isObject'](_0xee4b00)||_0x468782['schema']['isLimit'](_0xee4b00)))continue;}const _0x58fa88=_0x4c3c76['get'](_0x412b5b),_0x16214d=_0x11307e['get'](_0x412b5b),_0x58e5e5=_0x11307e['get'](_0x546b13),_0x2ad4e6=_0x412b5b['commentThread']&&_0x412b5b['commentThread']['length'],_0x29e4a5=_0x546b13['commentThread']&&_0x546b13['commentThread']['length'];if(!_0x2ad4e6&&_0x58fa88(_0x58e5e5,_0x16214d))return _0x33a1b7['_joinSuggestions'](_0x546b13,_0x412b5b),_0x11307e['delete'](_0x412b5b),!0x0;if(!_0x29e4a5&&_0x58fa88(_0x16214d,_0x58e5e5))return _0x33a1b7['_joinSuggestions'](_0x412b5b,_0x546b13),_0x11307e['delete'](_0x546b13),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2a59b8,_0x2aec4f){if(_0x2a59b8['isMultiRange']){for(const _0x2da35f of _0x2aec4f['getRanges']())_0x2a59b8['addRange'](_0x2da35f);}else{const _0x1db61e=_0x2aec4f['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2a59b8,this['_model']['createRange'](_0x2a59b8['getFirstRange']()['start'],_0x1db61e));}_0x2aec4f['removeMarkers']();}['_getMarkerAnnouncementText'](_0x25dd2f,_0x20e53a,_0x3ad13b){const _0x4c0536=_0x25dd2f['startsWith']('format')||_0x25dd2f['startsWith']('attribute')?'FORMATTING':_0x25dd2f['toUpperCase']();return o(this['editor']['locale'],_0x20e53a+'_'+_0x4c0536+'_SUGGESTION_ANNOUNCEMENT',_0x3ad13b);}['_initAriaMarkerChangeAnnouncements'](){const _0x1f31b8=this['editor'];if(!_0x1f31b8['ui'])return;const {ariaLiveAnnouncer:_0x54b5e1}=_0x1f31b8['ui'];_0x365d21(this['_model'],({left:_0x867f93,entered:_0x1356ef})=>{for(const _0x17f79c of _0x867f93){const {group:_0x22608f,type:_0xcbcfd}=this['_splitMarkerName'](_0x17f79c['name']);if('suggestion'===_0x22608f){_0x54b5e1['announce'](this['_getMarkerAnnouncementText'](_0xcbcfd,'LEAVE'));break;}}for(const _0x35722d of _0x1356ef){const {group:_0x409f51,type:_0x1dd5c6}=this['_splitMarkerName'](_0x35722d['name']);if('suggestion'===_0x409f51){_0x54b5e1['announce'](this['_getMarkerAnnouncementText'](_0x1dd5c6,'ENTER',_0x3e17e8(_0x3c83d2)));break;}}});}['_processAttributeChanges'](_0x59f2e8){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3977d=this['editor'],_0x2326d8=_0x3977d['model']['document']['differ']['getChanges']();if(0x0==_0x2326d8['length'])return!0x1;const _0xea629=[],_0x9032f9=_0x2326d8['filter'](_0x163e0a=>'attribute'==_0x163e0a['type']),_0x52b5e8=_0x2326d8['filter'](_0x324dd9=>'insert'==_0x324dd9['type']&&'$text'!=_0x324dd9['name']),_0x3e06b9=_0x2326d8['filter'](_0x8c2238=>'remove'==_0x8c2238['type']&&'$text'!=_0x8c2238['name']);for(const _0x546177 of _0x9032f9)_0xea629['push']({'key':_0x546177['attributeKey'],'newValue':_0x546177['attributeNewValue'],'oldValue':_0x546177['attributeOldValue'],'range':Zt(_0x546177['range'],_0x3977d['model'])});for(const _0x12c21b of _0x52b5e8){const _0x33e67c=_0x3e06b9['find'](_0x1b1148=>_0x1b1148['position']['isEqual'](_0x12c21b['position']));_0x33e67c&&_0xea629['push']({'key':m,'newValue':_0x12c21b['name'],'oldValue':_0x33e67c['name'],'range':_0x3977d['model']['createRangeOn'](_0x12c21b['position']['nodeAfter'])});}return 0x0!=_0xea629['length']&&this['_reduceExistingSuggestions'](_0x59f2e8,_0xea629);}['_processAttributeSuggestions'](_0x2d789e){let _0x3de33c=!0x1;const _0x40ec8f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1a3eb9=>_0x1a3eb9['data']['newRange']&&_0x1a3eb9['name']['startsWith']('suggestion:attribute:'));for(const _0x15825c of _0x40ec8f){const {subType:_0x1b7d52,id:_0x378ad2}=this['_splitMarkerName'](_0x15825c['name']),_0xafeaf7=_0x1b7d52['split']('|')[0x0];for(const _0x105a7a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x105a7a['id']!=_0x378ad2&&'attribute'==_0x105a7a['type']&&_0x105a7a['data']&&_0x105a7a['data']['key']==_0xafeaf7&&_0x105a7a['getFirstRange']()['isIntersecting'](_0x15825c['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x105a7a,_0x15825c['data']['newRange'],_0x2d789e),_0x3de33c=!0x0);}return _0x3de33c;}['recordAttributeChanges'](_0x23e47c){this['_recordAttributeSuggestions']=!0x0,_0x23e47c();}['_isRegisteredAttribute'](_0x2ba33a){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x2ba33a);}['_reduceExistingSuggestions'](_0x247144,_0x1dedc7){if(0x0==_0x1dedc7['length'])return!0x1;let _0x4d472e=!0x1;for(const _0x324e4f of _0x1dedc7){const _0x33ac70=this['_findSuggestions'](_0x324e4f['range'],'attribute')['filter'](_0x3444cc=>!_0x3444cc['meta']['isNextTo'])['map'](_0x3f6fc6=>_0x3f6fc6['suggestion']),_0xd45354=_0x6a7a5e({'newValue':_0x324e4f['newValue']});_0x33ac70['filter'](_0x55bec8=>{const [_0x47787e,_0x512530]=_0x55bec8['subType']['split']('|');return _0x47787e==_0x324e4f['key']&&_0x512530!=_0xd45354;})['forEach'](_0x48afc4=>{this['_reduceSuggestionAttributeRange'](_0x48afc4,_0x324e4f['range'],_0x247144),_0x4d472e=!0x0;});}return _0x4d472e;}['_reduceSuggestionAttributeRange'](_0x258e60,_0x5bd327,_0x1ec374){const _0x4f0b44=_0x258e60['getFirstRange']()['getDifference'](_0x5bd327);0x0!==_0x4f0b44['length']?0x1!==_0x4f0b44['length']?this['_breakSuggestionMarker'](_0x258e60,_0x5bd327['start'],_0x5bd327['end']):this['_setSuggestionRange'](_0x258e60,_0x4f0b44[0x0]):_0x1ec374['removeMarker'](_0x258e60['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5e49f1){this['_editor']=_0x5e49f1,this['_model']=_0x5e49f1['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4f693d,_0x52c0ff,_0x347a7b,_0x132ae7,_0x508461,_0x55ac10,_0x597621){return new x(this['_model'],{'type':_0x4f693d,'subType':_0x52c0ff,'id':_0x347a7b,'originalSuggestionId':_0x597621,'author':_0x132ae7,'creator':_0x132ae7,'attributes':_0x508461,'onAttributesChange':_0x55ac10,'onAccept':(..._0x39dcab)=>this['getSuggestionCallback'](_0x4f693d,_0x52c0ff,'accept')(..._0x39dcab),'onDiscard':(..._0x5c8d10)=>this['getSuggestionCallback'](_0x4f693d,_0x52c0ff,'discard')(..._0x5c8d10)});}['registerCustomCallback'](_0x325025,_0x5df660,_0x4ecc68,_0x5f03ea){const _0x239b95=_0x325025+':'+_0x5df660+':'+_0x4ecc68;this['_customCallbacks']['set'](_0x239b95,_0x5f03ea);}['getSuggestionCallback'](_0x435566,_0x136e88,_0x409721){const _0x27a0ec=_0x435566+':'+_0x136e88+':'+_0x409721;return this['_customCallbacks']['get'](_0x27a0ec)||this['_defaultCallbacks']['get'](_0x435566+':'+_0x409721);}['_registerDefaultCallbacks'](){const _0x421da2=()=>!0x1,_0x3d83d5=_0x55f197=>{_0x55f197['sort']((_0x23a458,_0x152c49)=>_0x23a458['start']['isBefore'](_0x152c49['start'])?0x1:-0x1),this['_model']['change'](_0x8ec1bf=>{for(const _0x136959 of _0x55f197){let _0x4a919e;_0x4a919e=_0x136959['end']['isAtEnd']&&_0x136959['end']['parent']==_0x136959['start']['nodeAfter']?_0x8ec1bf['createSelection'](_0x136959['start']['nodeAfter'],'on'):_0x8ec1bf['createSelection'](_0x136959),this['_model']['deleteContent'](_0x4a919e,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x49f8c5=(_0x16a5c2,_0x5a5f14)=>{_0x5a5f14&&this['_model']['change'](_0x5f0eec=>{const {commandName:_0x1fe93d,commandParams:_0xed1fe3=[]}=_0x5a5f14,_0x5f22f8=_0x16a5c2['map'](_0x30b302=>(Kt(_0x30b302)&&(_0x30b302=this['_model']['createRange'](_0x30b302['end'])),_0x30b302))['filter'](_0x47b90a=>'$graveyard'!==_0x47b90a['root']['rootName']);if(_0x5f22f8['length']<0x1)return;const _0x355769=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x34cbed=>_0x1506cc['fromRange'](_0x34cbed));_0x5f0eec['setSelection'](_0x5f22f8);for(const _0x3b7cc6 of this['_editor']['commands']['commands']())_0x3b7cc6['refresh']();_0xed1fe3['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1fe93d,..._0xed1fe3);const _0x28060d=_0x355769['filter'](_0x547b18=>'$graveyard'!=_0x547b18['root']['rootName']);_0x28060d['length']>0x0&&_0x5f0eec['setSelection'](_0x28060d);for(const _0x50b6a5 of _0x355769)_0x50b6a5['detach']();});},_0x3ad1f3=(_0x620cab,_0x4fe385)=>0x1==_0x620cab['length']&&0x1==_0x4fe385['length']&&_0x620cab[0x0]['end']['isEqual'](_0x4fe385[0x0]['start']),_0x1ab461=(_0x522a52,_0x52f6ee,_0x77a1b7,_0x4c4042)=>nn(_0x522a52,_0x52f6ee,_0x77a1b7,_0x4c4042)?[_0x522a52,_0x52f6ee]:nn(_0x52f6ee,_0x522a52,_0x4c4042,_0x77a1b7)?[_0x52f6ee,_0x522a52]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x421da2),this['_defaultCallbacks']['set']('insertion:discard',_0x3d83d5),this['_defaultCallbacks']['set']('insertion:join',_0x3ad1f3),this['_defaultCallbacks']['set']('insertion:chain',_0x1ab461),this['_defaultCallbacks']['set']('deletion:accept',_0x3d83d5),this['_defaultCallbacks']['set']('deletion:discard',_0x421da2),this['_defaultCallbacks']['set']('deletion:join',_0x3ad1f3),this['_defaultCallbacks']['set']('deletion:chain',_0x1ab461),this['_defaultCallbacks']['set']('formatInline:accept',_0x49f8c5),this['_defaultCallbacks']['set']('formatInline:discard',_0x421da2),this['_defaultCallbacks']['set']('formatInline:join',_0x3ad1f3),this['_defaultCallbacks']['set']('formatInline:chain',_0x421da2),this['_defaultCallbacks']['set']('formatBlock:accept',_0x49f8c5),this['_defaultCallbacks']['set']('formatBlock:discard',_0x421da2),this['_defaultCallbacks']['set']('formatBlock:join',_0x3ad1f3),this['_defaultCallbacks']['set']('formatBlock:chain',_0x421da2),this['_defaultCallbacks']['set']('attribute:accept',_0x421da2),this['_defaultCallbacks']['set']('attribute:discard',(_0x198046,_0x3b5c4d)=>{if(!_0x3b5c4d)return;const _0x4c5acf=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x2a3af7=>{if(_0x3b5c4d['key']==m)for(const _0x16f2ec of _0x198046){const _0x568b4b=_0x16f2ec['start']['nodeAfter'],_0x54b8a2=_0x3b5c4d['oldValue'];_0x2a3af7['rename'](_0x568b4b,_0x54b8a2);}else{if(_0x4c5acf['_isBlockAttribute'](_0x3b5c4d['key'])){for(const _0x428dc2 of _0x198046)void 0x0!==_0x3b5c4d['oldValue']?_0x2a3af7['setAttribute'](_0x3b5c4d['key'],_0x3b5c4d['oldValue'],_0x428dc2['start']['nodeAfter']):_0x2a3af7['removeAttribute'](_0x3b5c4d['key'],_0x428dc2['start']['nodeAfter']);}else{for(const _0x3b91f0 of _0x198046)_0x3b5c4d['oldValue']?_0x2a3af7['setAttribute'](_0x3b5c4d['key'],_0x3b5c4d['oldValue'],_0x3b91f0):_0x2a3af7['removeAttribute'](_0x3b5c4d['key'],_0x3b91f0);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3ad1f3);}}function zt(_0x3b0114,_0x25a367,_0x5ecc39){for(const _0x18f432 of _0x25a367['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x18f432['root']==_0x18f432)return!0x1;if(!_0x5ecc39['containsItem'](_0x18f432))return!0x1;if(_0x3b0114['isObject'](_0x18f432)||_0x3b0114['isLimit'](_0x18f432))return!0x0;}return!0x1;}function Kt(_0x43ae5f){return _0x43ae5f['end']['parent']==_0x43ae5f['start']['nodeAfter']&&_0x43ae5f['end']['isAtStart'];}function Wt(_0x124d78,_0x1ec5a3,_0x196f6a,_0x289e10){const _0x3fe2f2=_0x280b4d=>!_0x280b4d['item']['is']('$textProxy')&&!_0x289e10['isObject'](_0x280b4d['item']),_0x85a1dd=_0x124d78['start']['getLastMatchingPosition'](_0x3fe2f2),_0x52f24d=_0x124d78['end']['getLastMatchingPosition'](_0x3fe2f2,{'direction':'backward'});return(!_0x124d78['start']['isEqual'](_0x85a1dd)||!_0x124d78['end']['isEqual'](_0x52f24d))&&(_0x85a1dd['isBefore'](_0x52f24d)?_0x196f6a['updateMarker'](_0x1ec5a3,{'range':_0x196f6a['createRange'](_0x85a1dd,_0x52f24d)}):_0x196f6a['removeMarker'](_0x1ec5a3),!0x0);}function Ht(_0x21b19d){return _0x6a7a5e(_0x21b19d);}function Qt(_0x5b1088){const _0x34678d=_0x5b1088['start']['nodeAfter'];return _0x34678d&&_0x34678d['is']('element');}function Xt(_0x5012f8){return Kt(_0x5012f8)||function(_0x25d803){return _0x25d803['start']['parent']==_0x25d803['end']['nodeBefore']&&_0x25d803['start']['isAtEnd'];}(_0x5012f8);}function Yt(_0x41509b,_0x229e0a){try{const _0x51db0a=_0x41509b['getRange']();for(const _0x162faa of _0x229e0a)if(_0x41509b!==_0x162faa&&_0x51db0a&&_0x51db0a['isIntersecting'](_0x162faa['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x2979d6,_0x2f03ff){return null==_0x2979d6['end']['nodeBefore']&&_0x2979d6['end']['parent']==_0x2979d6['start']['nodeAfter']?tn(_0x2979d6['start']['nodeAfter'],_0x2f03ff):_0x2979d6;}function tn(_0x47834a,_0x5e77f7){const _0x1390b8=_0x5e77f7['schema']['isObject'](_0x47834a)||_0x5e77f7['schema']['isSelectable'](_0x47834a);return _0x5e77f7['createRange'](_0x5e77f7['createPositionAt'](_0x47834a,'before'),_0x1390b8?_0x5e77f7['createPositionAfter'](_0x47834a):_0x5e77f7['createPositionAt'](_0x47834a,'end'));}function nn(_0x462e4b,_0x52fd4e,_0x4ede29,_0x31cfb5){return!!en(_0x462e4b,_0x52fd4e)&&_0x4ede29['end']['isEqual'](_0x31cfb5['start']);}function en(_0x259478,_0x107b8a){if(!_0x259478['_isDataLoaded']||!_0x107b8a['_isDataLoaded'])return!0x1;const _0x4f240f=new Set(Object['keys'](_0x259478['attributes'])),_0x4c637e=new Set(Object['keys'](_0x107b8a['attributes']));if(_0x4f240f['delete']('groupId'),_0x4c637e['delete']('groupId'),0x0==_0x4f240f['size']&&0x0==_0x4c637e['size'])return!0x0;if(_0x4f240f['size']!=_0x4c637e['size'])return!0x1;const _0x20b68a={..._0x259478['attributes']},_0x5488f3={..._0x107b8a['attributes']};return delete _0x20b68a['groupId'],delete _0x5488f3['groupId'],JSON['stringify'](_0x20b68a)==JSON['stringify'](_0x5488f3);}function sn(_0x230822,_0x2fe74f){const _0x1c79fd=on(_0x230822['attributes']),_0x51096d=on(_0x2fe74f);if(!_0x230822['_isDataLoaded'])return!0x1;for(const _0x3ec661 of Object['keys'](_0x51096d))if(!_0x21a076(_0x1c79fd[_0x3ec661],_0x51096d[_0x3ec661]))return!0x1;return!0x0;}function on(_0x2c7fe9){const _0x48ef99=Object['assign']({},_0x2c7fe9);return delete _0x48ef99['skipNestingCheck'],delete _0x48ef99['tablePasteChainId'],_0x48ef99;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0x3cf1a1(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0xb7f6c9,_0x37a46e,_0x1dad14,_0x3c6394){super(),this['model']=_0x37a46e,this['view']=_0x1dad14,this['commentThreadController']=_0x3c6394,this['_editor']=_0xb7f6c9,this['_acceptCommand']=_0xb7f6c9['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xb7f6c9['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x40aed6,_0x15b371)=>_0x40aed6||_0x15b371),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3858c5=>_0x3858c5&&this['_editor']['model']['canEditAt'](_0x37a46e['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x44a95d=>_0x44a95d&&this['_editor']['model']['canEditAt'](_0x37a46e['getRanges']())),this['_pendingAction']=null,_0x1dad14['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1dad14,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1dad14,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1dad14,'change:isDirty',()=>{_0x1dad14['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 _0x3b81d9=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3b81d9);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x456a2c{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x44c941,_0x49b000,_0x33d7d7,_0x66acf2){super(_0x44c941),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x557dc3(_0x44c941,o(_0x44c941,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x49b000['authoredAt']),this['bind']('authoredAt')['to'](_0x49b000),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',_0x49b000,'authoredAt',this,'descriptionParts',(_0x66fccc,_0x281e04,_0x54ad19)=>{const _0x3ff1cc=_0x54ad19['map'](_0x4cdd75=>ls(_0x4cdd75['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x66fccc-0x1,_0x49b000['author']['name'],_0x281e04?_0x66acf2['formatDateTime'](_0x281e04):'',new DOMParser()['parseFromString'](_0x3ff1cc,'text/html')['body']['textContent']]);}),this['focusables']=new _0xd7b16e(),this['focusTracker']=new _0x5a142d(),this['keystrokes']=new _0x3d7300(),this['focusCycler']=new _0x417dd8({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x51f478=>_0x51f478['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x49b000,this['_localUser']=_0x33d7d7,this['_config']=_0x66acf2,_0x66acf2['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x245efb(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x25e010}=this['_config'];this['commentsListView']=new _0x25e010(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',_0x5570a5=>_0x5570a5+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x146246,_0x37980a)=>_0x146246||!!_0x37980a);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2910e9}=this['_config'],_0xb01d3=new _0x2910e9(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x538a3f=_0xb01d3['commentInputView'];return _0xb01d3['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x538a3f,'value',(_0x15f1c6,_0x3f9dde,_0x2818e1)=>!!_0x2818e1||_0x15f1c6&&!_0x3f9dde),_0x538a3f['on']('submit',(_0x48f3d7,_0x63f38)=>{this['fire']('addComment',_0x63f38),_0x538a3f['editor']['setData']('');}),_0x538a3f['on']('cancel',()=>this['focus']()),_0x538a3f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xb01d3;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x53df45,_0x3438c2,_0x511796,_0x32131d){super(_0x53df45,_0x3438c2,_0x511796,_0x32131d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2cfc10=>_0x2cfc10&&_0x2cfc10[0x0]?_0x2cfc10[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2d55b1,_0x336d20)=>{let _0x92a52f='';for(const _0x42bdf7 of _0x2d55b1)_0x92a52f+='<p>'+ls(_0x42bdf7['content'],_0x42bdf7['color'])+'</p>';return _0x336d20?_0x92a52f:_0x3f118a(_0x92a52f,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x32131d['SuggestionView'](_0x53df45,_0x3438c2,{'formatDateTime':_0x32131d['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 _0x39f8c0=this['bindTemplate'],_0x4b91f9=[this['suggestionView']];return this['commentsListView']&&_0x4b91f9['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4b91f9['push'](this['commentThreadInputView']),_0x4b91f9['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x39f8c0['if']('isActive','ck-suggestion-wrapper--active'),_0x39f8c0['to']('type',_0x3c5f23=>'ck-suggestion-'+_0x3c5f23),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':_0x39f8c0['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4b91f9};}['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 _0x456a2c{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x299b16,_0x3181ca,_0x4ff7aa){super(_0x299b16),this['_model']=_0x3181ca,this['_config']=_0x4ff7aa,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3181ca),this['acceptButton']=this['_createButton'](o(_0x299b16,'Accept\x20suggestion'),_0x273bcd,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x299b16,'Discard\x20suggestion'),_0x14c686,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3a19d5(_0x299b16,_0x3181ca['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xd7b16e([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5a142d(),this['keystrokes']=new _0x3d7300(),this['focusCycler']=new _0x417dd8({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x30e1a3=>_0x30e1a3['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x83ffc6=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x83ffc6['innerHTML']=this['description'],this['on']('change:description',(_0x346596,_0x263006,_0x44a621)=>{_0x83ffc6['innerHTML']=_0x44a621;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x37b47d=this['bindTemplate'],_0x3a80b0=[{'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':_0x37b47d['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x37b47d['to']('authoredAt',_0xcde25a=>this['_config']['formatDateTime'](_0xcde25a))}]}]},{'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']&&_0x3a80b0['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':_0x3a80b0}]};}['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'](_0x513d80,_0x176746,_0xe8bf84,_0x5e0965,_0x525bed){const _0x3bb58=new _0x232955(this['locale']);return _0x3bb58['set']({'label':_0x513d80,'icon':_0x176746,'tooltip':!0x0,'tooltipPosition':_0x525bed}),_0x3bb58['extendTemplate']({'attributes':{'class':_0xe8bf84}}),_0x3bb58['on']('execute',()=>{this['fire'](_0x5e0965,this['_model']['id']);}),_0x3bb58;}['_setupKeyboardNavigation'](){const _0x484057=this['element'];this['keystrokes']['listenTo'](_0x484057);for(const _0x563463 of this['focusables'])this['focusTracker']['add'](_0x563463['element']),this['keystrokes']['listenTo'](_0x563463['element']);this['keystrokes']['set']('enter',(_0x5ad058,_0x594b7c)=>{_0x484057===_0x5ad058['target']&&(this['focusCycler']['focusFirst'](),_0x594b7c());}),this['keystrokes']['set']('esc',(_0x2d9e4c,_0x196565)=>{_0x484057!==_0x2d9e4c['target']&&(this['focus'](),_0x196565());});}}class u extends _0x452242{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x5123b8,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x267552){super(_0x267552),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x519135=this['editor']['config'];_0x519135['define']('trackChanges.SuggestionThreadView',fe),_0x519135['define']('trackChanges.SuggestionView',we),_0x519135['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x519135['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4f3d45,_0x557c9e){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1cce2c,_0x5c2bbc]of this['_handleControllerBuffer']){const _0x52b010=this['_suggestionToController']['has'](_0x1cce2c);_0x52b010||_0x5c2bbc?_0x52b010&&_0x5c2bbc&&this['_destroyController'](_0x1cce2c):this['_initializeController'](_0x1cce2c);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4f3d45,_0x557c9e);}['init'](){const _0x51422c=this['editor'],_0x5c99fc=_0x51422c['plugins']['get']('TrackChangesEditing'),_0x146033=_0x51422c['plugins']['get']('Annotations'),_0x588202=_0x51422c['plugins']['get']('EditorAnnotations'),_0x4c6bda=_0x51422c['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x588202['addSourceCollector'](()=>{const _0x2b244e=[];for(const [_0x4476ec,_0x1b77e1]of Array['from'](this['_suggestionToController'])){const _0x34d579=_0x4476ec['getAllAdjacentSuggestions'](),_0x3c3a54=[];for(const _0x2e04f5 of _0x34d579){if(!_0x2e04f5['isInContent'])continue;if(_0x2e04f5['isMultiRange']){_0x3c3a54['push'](..._0x2e04f5['getRanges']());continue;}const _0x22a205=_0x2e04f5['getFirstRange']();if(_0x3c3a54['length']>0x0){const _0x37883f=_0x3c3a54[0x0]['getJoined'](_0x22a205);if(_0x37883f){_0x3c3a54[0x0]=_0x37883f;continue;}}_0x3c3a54['push'](_0x22a205);}_0x2b244e['push']([_0x1b77e1['view'],_0x3c3a54]);}return _0x2b244e;}),this['listenTo'](_0x5c99fc,'suggestionLoaded',(_0x293be8,_0x2cced8)=>{this['listenTo'](_0x2cced8,'change:previous',(_0x5088f8,_0x36e077,_0x1db106,_0xeb3a23)=>{_0x2cced8['isInContent']&&(null==_0x1db106?(this['_updateController'](_0xeb3a23['head']),this['_handleSuggestionControllerDelayed'](_0x2cced8,!0x1)):(this['_updateController'](_0x1db106['head']),null==_0xeb3a23&&this['_handleSuggestionControllerDelayed'](_0x2cced8,!0x0)));}),null!==_0x2cced8['previous']?this['_updateController'](_0x2cced8['head']):this['_handleSuggestionControllerDelayed'](_0x2cced8,!0x1);}),this['listenTo'](_0x5c99fc,'suggestionUnloaded',(_0x4175e8,_0x5980de,_0x161d8a)=>{this['stopListening'](_0x5980de,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5980de),this['_suggestionToController']['has'](_0x5980de)&&this['_destroyController'](_0x5980de),_0x161d8a&&this['_updateController'](_0x161d8a['head']);}),this['listenTo'](_0x5c99fc,'suggestionChanged',(_0x3c7afe,_0x3511d7)=>{this['_updateController'](_0x3511d7);}),this['listenTo'](_0x146033,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4c6bda,'addComment',(_0x294efa,{threadId:_0x3c8ca7,isFromAdapter:_0x927f4e})=>{if(_0x927f4e||!_0x5c99fc['hasSuggestion'](_0x3c8ca7))return;const _0x158897=_0x5c99fc['getSuggestion'](_0x3c8ca7);this['_suggestionToController']['get'](_0x158897)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2e1e31=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x398458;for(const _0x44f2e0 in _0x2e1e31){const _0x1c6380=_0x44f2e0,_0x30e127=_0x2e1e31[_0x1c6380];if('trackChangesLicenseKeyValid'==_0x30e127||'trackChangesLicenseKeyInvalid'==_0x30e127||'trackChangesLicenseKeyExpired'==_0x30e127||'trackChangesLicenseKeyDomainLimit'==_0x30e127||'trackChangesLicenseKeyNotAllowed'==_0x30e127||'trackChangesLicenseKeyEvaluationLimit'==_0x30e127||'trackChangesLicenseKeyUsageLimit'==_0x30e127){delete _0x2e1e31[_0x1c6380],_0x398458=_0x30e127,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x398458&&_0x2e1e31['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x398458&&_0x2e1e31['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x398458&&_0x2e1e31['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x398458&&_0x2e1e31['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x398458&&_0x2e1e31['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x398458&&_0x2e1e31['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x375709){const _0x45cb46=this['_suggestionToController']['get'](_0x375709);if(!_0x45cb46)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x45cb46['view'])||null;}['getSuggestionForAnnotation'](_0x2de13a){const _0x342a4d=this['_viewToController']['get'](_0x2de13a['innerView']);return _0x342a4d?_0x342a4d['model']:null;}['_refreshActiveMarkers'](){const _0x3a379d=this['editor']['plugins']['get']('Annotations'),_0x2c5074=this['editor']['plugins']['get']('TrackChangesEditing'),_0x119067=Array['from'](_0x3a379d['activeAnnotations'],_0x14c851=>_0x14c851['innerView'])['filter'](_0x43b517=>this['_viewToController']['has'](_0x43b517)),_0x3545b6=[];for(const _0x5867e7 of _0x119067){const _0x2921e4=this['_viewToController']['get'](_0x5867e7)['model']['getAllAdjacentSuggestions']();_0x3545b6['push'](..._0x2921e4['reduce']((_0x5f01c6,_0x5ca5ee)=>[..._0x5f01c6,..._0x5ca5ee['getMarkerNames']()],[]));}_0x2c5074['activeMarkers']=_0x3545b6;}['_addUIComponentsToFactory'](){const _0x258b10=this['editor'],_0x3868c8=_0x258b10['locale'],_0x170bd=o(_0x3868c8,'Track\x20changes'),_0x2488c3=new _0x4de9d4([{'type':'switchbutton','model':new _0x46ef39({'withText':!0x0,'isToggleable':!0x0,'label':_0x170bd,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x46ef39({'withText':!0x0,'label':o(_0x3868c8,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x46ef39({'withText':!0x0,'label':o(_0x3868c8,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x46ef39({'withText':!0x0,'label':o(_0x3868c8,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x46ef39({'withText':!0x0,'label':o(_0x3868c8,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x258b10['plugins']['has']('TrackChangesPreview')&&_0x2488c3['addMany']([{'type':'separator'},{'type':'button','model':new _0x46ef39({'withText':!0x0,'label':o(_0x3868c8,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x32def1 of _0x2488c3)if(ke(_0x32def1)){const _0x5668b0=_0x258b10['commands']['get'](_0x32def1['model']['commandName']);_0x32def1['model']['bind']('isOn','isEnabled')['to'](_0x5668b0,'value','isEnabled');}_0x258b10['ui']['componentFactory']['add']('trackChanges',_0x5d5adf=>this['_createToolbarButton'](_0x5d5adf,_0x2488c3,_0x170bd)),_0x258b10['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4dabac=>this['_createMenuBarMenu'](_0x4dabac,_0x2488c3,_0x170bd));}['_createToolbarButton'](_0x5584d9,_0x16ef81,_0x165424){const _0x2818b8=_0xecc729(_0x5584d9,_0x368a78),_0x944c77=this['editor']['commands']['get']('trackChanges');_0x2818b8['buttonView']['set']({'tooltip':_0x165424,'label':_0x165424,'icon':_0x3bf8e9}),_0x2818b8['buttonView']['bind']('isOn')['to'](_0x944c77,'value'),_0x2818b8['buttonView']['on']('execute',()=>{_0x944c77['execute'](),this['editor']['editing']['view']['focus']();}),_0x8a486(_0x2818b8,_0x16ef81,{'role':'menu'});const _0x5e29d2=[];for(const _0x5506a6 of _0x16ef81)ke(_0x5506a6)&&_0x5e29d2['push'](this['editor']['commands']['get'](_0x5506a6['model']['commandName']));const _0x1f0dcd=_0x2818b8['buttonView'];return _0x1f0dcd['actionView']['unbind']('isEnabled'),_0x1f0dcd['arrowView']['unbind']('isEnabled'),_0x1f0dcd['actionView']['bind']('isEnabled')['to'](_0x944c77,'isEnabled'),_0x1f0dcd['arrowView']['bind']('isEnabled')['toMany'](_0x5e29d2,'isEnabled',(..._0x3de524)=>_0x3de524['some'](_0x3028bf=>_0x3028bf)),_0x2818b8['on']('execute',_0x4947dc=>{this['editor']['execute'](_0x4947dc['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2818b8;}['_createMenuBarMenu'](_0x2400bc,_0xf481ed,_0x2dfb76){const _0x218df3=new _0x21810e(_0x2400bc),_0x2bb9a9=this['editor']['commands']['get']('trackChanges');_0x218df3['buttonView']['set']({'label':_0x2dfb76,'icon':_0x3bf8e9});const _0x16bb3d=new _0x43d21a(_0x2400bc);for(const _0x103424 of _0xf481ed){if('separator'==_0x103424['type']){_0x16bb3d['items']['add'](new _0x5b1174(_0x2400bc));continue;}const _0x291665=new _0x547d1c(_0x2400bc,_0x218df3),_0x4f1f42=new _0x666110(_0x2400bc),_0x3421a3=_0x103424['model'];_0x4f1f42['bind'](...Object['keys'](_0x3421a3))['to'](_0x3421a3),_0x4f1f42['delegate']('execute')['to'](_0x218df3),_0x4f1f42['on']('execute',()=>{this['editor']['execute'](_0x3421a3['commandName']),this['editor']['editing']['view']['focus']();}),_0x291665['children']['add'](_0x4f1f42),_0x16bb3d['items']['add'](_0x291665);}return _0x218df3['bind']('isEnabled')['to'](_0x2bb9a9,'isEnabled'),_0x218df3['panelView']['children']['add'](_0x16bb3d),_0x218df3;}['_initializeController'](_0x5e3028){const _0x18c66b=this['editor'],_0x566f37=_0x18c66b['config'],_0x58d286=_0x18c66b['plugins']['get']('Annotations'),_0x1f1fd8=_0x18c66b['plugins']['get']('CommentsRepository'),_0x532514=_0x18c66b['plugins']['get']('EditorAnnotations'),_0x2ea395=_0x18c66b['plugins']['get'](_0x5123b8)['me'],_0x2a6d47=_0x566f37['get']('trackChanges')['SuggestionThreadView'],_0x57a9c4=_0x566f37['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3322a7,CommentThreadInputView:_0x560875}=_0x18c66b['plugins']['get']('CommentsUI');let _0x1e1ed5,_0x1eb8a0,_0x44a875;this['_annotationViews']['has'](_0x5e3028['id'])?(_0x1eb8a0=this['_annotationViews']['get'](_0x5e3028['id']),_0x1e1ed5=_0x1eb8a0['mainView']):(_0x1e1ed5=new _0x2a6d47(_0x18c66b['locale'],_0x5e3028,_0x2ea395,{'disableComments':this['_disableComments'],'editorConfig':{..._0x566f37['get']('comments.editorConfig'),'licenseKey':_0x566f37['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x566f37['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x566f37['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x566f37['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2d3c76(_0x566f37['get']('locale'),_0x18c66b['locale']),'CommentView':_0x566f37['get']('comments')['CommentView'],'CommentsListView':_0x3322a7,'CommentThreadInputView':_0x560875,'SuggestionView':_0x57a9c4}),_0x1e1ed5['suggestionView']['acceptButton']['on']('execute',()=>{_0x18c66b['editing']['view']['focus']();}),_0x1e1ed5['suggestionView']['discardButton']['on']('execute',()=>{_0x18c66b['editing']['view']['focus']();}),_0x1eb8a0=_0x58d286['createAnnotationView'](this['editor']['locale'],_0x1e1ed5),_0x1eb8a0['bind']('isDirty')['to'](_0x1e1ed5,'isDirty'),_0x1eb8a0['bind']('length')['to'](_0x1e1ed5),_0x1eb8a0['bind']('type')['to'](_0x1e1ed5,'type',_0x2bfc94=>'suggestion-'+_0x2bfc94),_0x1e1ed5['on']('escape',()=>{_0x44a875['fire']('escape');}),this['_annotationViews']['set'](_0x5e3028['id'],_0x1eb8a0));const _0x81b5ac=_0x1f1fd8['createCommentThreadController'](_0x5e3028['commentThread'],_0x1e1ed5),_0x2b4e0d=new pe(_0x18c66b,_0x5e3028,_0x1e1ed5,_0x81b5ac),_0x4a2346=_0x5e3028['getAllAdjacentSuggestions']()['filter'](_0x1d14df=>_0x1d14df['isInContent']);_0x1e1ed5['descriptionParts']=_0x18c66b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4a2346),this['_suggestionToController']['set'](_0x5e3028,_0x2b4e0d),this['_viewToController']['set'](_0x1e1ed5,_0x2b4e0d);const _0x29ce71=()=>{const _0x1b65a2=[],_0x8787ef=_0x5e3028['getAllAdjacentSuggestions']()['filter'](_0x288fde=>_0x288fde['isInContent']);for(const _0x58b6d4 of _0x8787ef)_0x1b65a2['push'](..._0x58b6d4['getMarkers']());return _0x5dc1b7(_0x18c66b['editing'],_0x1b65a2);};_0x44a875=_0x58d286['createAnnotation']({'view':_0x1eb8a0,'target':_0x29ce71,'type':()=>'suggestion-'+_0x2b4e0d['view']['type'],'isVisible':!!_0x29ce71()}),_0x1f1fd8['_bindAnnotationToEditors'](_0x1e1ed5,_0x44a875),_0x58d286['add'](_0x44a875),_0x532514['registerAnnotation'](_0x44a875);}['_destroyController'](_0x10f170){const _0x382dc7=this['editor']['plugins']['get']('CommentsRepository'),_0x23e4d2=this['editor']['plugins']['get']('Annotations'),_0x4fe8a4=this['_suggestionToController']['get'](_0x10f170),_0x2b4341=_0x4fe8a4['view'],_0x1c2299=_0x23e4d2['getByInnerView'](_0x2b4341);_0x382dc7['_unbindEditors'](_0x2b4341),_0x1c2299&&_0x23e4d2['remove'](_0x1c2299),this['_suggestionToController']['delete'](_0x10f170),this['_viewToController']['delete'](_0x2b4341),_0x4fe8a4['destroy']();}['_updateController'](_0xbe31f6){if(!_0xbe31f6['isInContent']||!this['_suggestionToController']['has'](_0xbe31f6))return;const _0x37b668=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5f44c6=this['_suggestionToController']['get'](_0xbe31f6),_0x3d3550=_0xbe31f6['getAllAdjacentSuggestions']();_0x5f44c6['view']['descriptionParts']=_0x37b668['descriptionFactory']['getDescriptions'](_0x3d3550);}['destroy'](){for(const _0x829295 of this['_suggestionToController']['keys']())this['_destroyController'](_0x829295);for(const _0x18cfd0 of this['_annotationViews']['values']())_0x18cfd0['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0xe8675){return'model'in _0xe8675;}class Ne extends _0x452242{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x34e514){this['editor']['plugins']['get'](d)['adapter']=_0x34e514;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x490fcb){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x490fcb);}['getSuggestions']({skipNotAttached:_0x87b1f6=!0x1,toJSON:_0x5575dd=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x87b1f6,'toJSON':_0x5575dd});}['getSuggestion'](_0x4c7842){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x4c7842);}}const p=['Pagination'];class re extends _0x452242{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x53aee9=this['editor'];if(_0x53aee9['config']['define']('trackChangesData.editorCreator',_0xbfe168=>{const _0x5e2aeb=_0x53aee9['model']['document']['getRootNames']()['reduce']((_0x14c75e,_0x504cee)=>(_0x14c75e[_0x504cee]='',_0x14c75e),{});return _0x53aee9['constructor']['create'](_0x5e2aeb,_0xbfe168);}),'function'!=typeof _0x53aee9['config']['get']('trackChangesData')['editorCreator'])throw new _0x3fdb7b('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x209913){return P(this['editor'],!0x0,_0x209913);}['getDataWithDiscardedSuggestions'](_0xd78edd){return P(this['editor'],!0x1,_0xd78edd);}}class Fe extends _0x452242{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x50986e){function _0x59db69(_0xe969c0){return _0xe969c0['map'](_0x8139d1=>String['fromCharCode'](_0x8139d1))['join']('');}super(_0x50986e),this['result']='end',_0x50986e[_0x59db69([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59db69([0x76,0x69,0x65,0x77])][_0x59db69([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x59db69([0x61,0x75,0x74,0x6f]),_0x50986e[_0x59db69([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x59db69([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x59db69([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x59db69([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x59db69([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(_0x188f39){return void 0x0!==_0x188f39['getRootsAttributes'];}async function P(_0x441cd3,_0x37e5ec,_0x50e485){const _0x343d6f=_0x215386(_0x441cd3,p);_0x343d6f['plugins']['push'](d,Fe),_0x343d6f['rootsAttributes']=De(_0x441cd3)?_0x441cd3['getRootsAttributes']():void 0x0;const _0x2b24fb=document['createDocumentFragment'](),_0x267131=_0x441cd3['config']['get']('trackChangesData')['editorCreator'],_0x5d0582=await _0x267131(_0x343d6f,()=>function(_0x2092c0){const _0x57854c=document['createElement']('div');return _0x2092c0['appendChild'](_0x57854c),_0x57854c;}(_0x2b24fb));!function(_0x1ea9d1,_0x383e76){const _0x4ffbef=_0x1ea9d1['model']['document']['getRootNames']()['reduce']((_0x31df42,_0xf225cb)=>(_0x31df42[_0xf225cb]=_0x1ea9d1['data']['get']({'rootName':_0xf225cb}),_0x31df42),{}),_0x17147c=_0x1ea9d1['plugins']['get']('Users')['users']['map'](_0x57f023=>({'id':_0x57f023['id'],'name':_0x57f023['name']})),_0x57075c=_0x1ea9d1['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x20cfc0=_0x1ea9d1['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xe6d87d=_0x383e76['plugins']['get']('Users'),_0x778bfd=_0x383e76['plugins']['get']('TrackChangesEditing'),_0x2a5688=_0x383e76['plugins']['get']('CommentsRepository');for(const _0x21f6d5 of _0x2a5688['getCommentThreads']())_0x21f6d5['remove']();for(const _0xfdbdb of _0x17147c)_0xe6d87d['getUser'](_0xfdbdb['id'])||_0xe6d87d['addUser'](_0xfdbdb);_0xe6d87d['me']||_0xe6d87d['useAnonymousUser']();for(const _0x11426b of _0x20cfc0)_0x2a5688['addCommentThread'](_0x11426b);for(const _0x19e4bb of _0x57075c)_0x778bfd['addSuggestionData'](_0x19e4bb);_0x383e76['data']['set'](_0x4ffbef);}(_0x441cd3,_0x5d0582),_0x5d0582['execute'](_0x37e5ec?'acceptAllSuggestions':'discardAllSuggestions');const _0x59634e=De(_0x5d0582)?_0x5d0582['getFullData'](_0x50e485):_0x5d0582['data']['get'](_0x50e485);return await _0x5d0582['destroy'](),_0x59634e;}class Me extends _0x456a2c{['options'];constructor(_0x435238,_0x471dba){super(_0x435238),this['options']=_0x471dba,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'](_0x495711,_0xf563d){if(!this['element'])return;const _0x3b2b2a=[];for(const [_0xd4f342,_0x55c3a0]of _0x495711){const _0x13c7e=document['createElement']('div');_0x13c7e['setAttribute']('data-ck-root-name',_0xd4f342),_0x13c7e['className']=_0x55c3a0['classes']+'\x20ck-track-changes-preview__root-container',_0x13c7e['innerHTML']=_0x55c3a0['content'],_0x3b2b2a['push'](_0x13c7e);}_0xf563d(this['element'],_0x3b2b2a),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x2f06c1{constructor(_0x152153){super(_0x152153),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x480375=this['editor'],_0x521d5d=_0x480375['locale'],_0x4e1439=_0x480375['plugins']['get']('Dialog');let _0x6ecef1;const _0x4f00c6=function(_0x389b37){const _0x1cacb8={};if('editables'in _0x389b37['ui']['view']){for(const [_0x3ca001,_0x1cf592]of Object['entries'](_0x389b37['ui']['view']['editables']))_0x1cacb8[_0x3ca001]=_0x1cf592['element'];}else _0x1cacb8[_0x389b37['model']['document']['getRootNames']()[0x0]]=_0x389b37['ui']['view']['editable']['element'];return _0x1cacb8;}(_0x480375),_0x123315=function(_0x1bce75){let _0x2b954e=0x0;for(const _0x413a31 of Object['values'](_0x1bce75))_0x2b954e=Math['max'](_0x2b954e,_0x413a31['getBoundingClientRect']()['width']);let _0x5a6f76=0x0;for(const _0x38bd56 of Object['values'](_0x1bce75))_0x5a6f76+=_0x38bd56['getBoundingClientRect']()['height'];const _0x19ac4b=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x30fc5a=Math['min'](_0x5a6f76,_0x19ac4b);return{'width':_0x2b954e,'height':_0x30fc5a};}(_0x4f00c6);_0x4e1439['show']({'id':'finalContentPreview','title':o(_0x521d5d,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x521d5d,{'dialogRects':_0x123315}),'onHide':()=>{_0x6ecef1['detachFromDom']();},'onShow':()=>{_0x480375['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x86f7d6=>{const _0x33ed15=this['_standarizeRootsData'](_0x86f7d6,_0x480375,_0x4f00c6);_0x4e1439['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x33ed15,_0x480375['config']['get']('trackChanges.preview.renderFunction'));}),_0x6ecef1=new _0x267ee8(_0x521d5d,[_0x4e1439['view']]),_0x6ecef1['attachToDom'](),_0x6ecef1['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x480375['once']('destroy',()=>{_0x6ecef1['detachFromDom']();});const _0x3970e2=_0x4e1439['view']['headerView']['class'];_0x4e1439['view']['headerView']['class']=_0x3970e2?_0x3970e2+'\x20ck-reset_all':'ck-reset_all',_0x4e1439['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x4e1439['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x37bfc3=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3e67f7=_0x37bfc3['previewMode'],_0x52a625={};if('$labels'===_0x3e67f7){for(const _0x44aaa0 of _0x37bfc3['getMergeFieldsIds']())_0x52a625[_0x44aaa0]=_0x37bfc3['getLabel'](_0x44aaa0)||_0x44aaa0;}else{const _0x346c5e='$defaultValues'===_0x3e67f7?_0x37bfc3['getDefaultValues']():_0x37bfc3['getDataSetValues'](_0x3e67f7,!0x0);for(const _0x4da913 of Object['entries'](_0x346c5e)){const [_0x8d6d7f,_0x17b653]=_0x4da913;_0x52a625[_0x8d6d7f]=null!==_0x17b653?_0x17b653:_0x37bfc3['getLabel'](_0x8d6d7f)||_0x8d6d7f;}}return{'mergeFieldsData':_0x52a625};}['_standarizeRootsData'](_0x122915,_0x30d248,_0xf3239a){let _0x599347;if('string'==typeof _0x122915){const _0x3ffacd=_0x30d248['model']['document']['getRootNames']()[0x0];_0x599347={[_0x3ffacd]:_0x122915};}else _0x599347=_0x122915;const _0x5f4b60=this['_fixMediaEmbeds'](_0x599347,_0x30d248),_0x386aef=function(_0x538038,_0x22c035){for(const [_0x1fe666,_0x1cd709]of _0x538038)_0x1cd709['classes']=_0x22c035[_0x1fe666]['classList']['value']['replace']('ck-focused','');return _0x538038;}(this['_sortRoots'](_0x30d248)['reduce']((_0xcd3f1f,_0x537a74)=>(_0xcd3f1f['push']([_0x537a74,{'content':_0x5f4b60[_0x537a74],'classes':''}]),_0xcd3f1f),[]),_0xf3239a);return _0x386aef;}['_fixMediaEmbeds'](_0x185f4c,_0x55177f){if(!_0x55177f['plugins']['has']('MediaEmbedEditing'))return _0x185f4c;const _0x105a26=_0x55177f['plugins']['get']('MediaEmbedEditing');for(const [_0x135366,_0xa3903]of Object['entries'](_0x185f4c)){const _0xa638e1=document['createElement']('div');_0xa638e1['innerHTML']=_0xa3903,(_0xa638e1['querySelectorAll']('figure.media')['forEach'](_0x46434b=>{const _0x5b4e27=_0x46434b['querySelector']('oembed');if(_0x5b4e27){const _0x18bf6d=_0x5b4e27['getAttribute']('url');if(_0x18bf6d){const _0x4e961a=_0x105a26['registry']['getMediaViewElement'](new _0x33312e(_0x55177f['editing']['view']['document']),_0x18bf6d,{'elementName':'','renderForEditingView':!0x0}),_0x346d27=document['createElement']('div');_0x346d27['classList']['add']('ck-media__wrapper'),_0x4e961a['render'](_0x346d27,_0x55177f['editing']['view']['domConverter']),_0x5b4e27['replaceWith'](_0x346d27);}}}),_0x185f4c[_0x135366]=_0xa638e1['innerHTML']);}return _0x185f4c;}['_sortRoots'](_0x37ee26){if(!function(_0x35c4d4){return void 0x0!==_0x35c4d4['getRootsAttributes'];}(_0x37ee26))return _0x37ee26['model']['document']['getRootNames']();const _0x242ee2=[],_0x31fb96=new Map();for(const _0x494d7a of _0x37ee26['model']['document']['getRootNames']()){const _0x20fb05=_0x37ee26['editing']['view']['getDomRoot'](_0x494d7a)['getClientRects']()['item'](0x0);_0x242ee2['push'](_0x494d7a),_0x31fb96['set'](_0x494d7a,_0x20fb05);}return _0x242ee2['sort']((_0x187ee3,_0x3d89e5)=>{const _0x5b1929=_0x31fb96['get'](_0x187ee3),_0x48f4cd=_0x31fb96['get'](_0x3d89e5);return _0x5b1929['y']-_0x48f4cd['y']||_0x5b1929['x']-_0x48f4cd['x'];}),_0x242ee2;}}class Ue extends _0x452242{static get['requires'](){return[re,_0x23f825];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4638b5){super(_0x4638b5),_0x4638b5['commands']['add']('previewFinalContent',new te(this['editor'])),_0x4638b5['config']['define']('trackChanges.preview.renderFunction',(_0x4fab95,_0x457355)=>{for(const _0x19f6ea of _0x457355)_0x4fab95['appendChild'](_0x19f6ea);});}}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};