@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240706.0 → 0.0.0-nightly-20240707.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as ts,Plugin as _0x5031ea,PendingActions as _0x557551,icons as _0x51bd8c}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xcb8e69,ObservableMixin as _0x38558f,uid as _0x9738cc,insertToPriorityArray as _0x4c5bcd,priorities as _0x80f00,logWarning as _0x3ea243,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x3cb264,View as _0x158dd9,ButtonView as _0x504626,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x18a2fd,hashObject as _0xba8f4d,surroundingMarkersDetector as _0x884ab3,trimHtml as _0x4a8f86,UserView as _0x5bd74a,getDateTimeFormatter as _0x3d18b4,getAllMarkersDomElementsSorted as _0x1dec96,sanitizeEditorConfig as _0x54a125}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x29f458,LiveRange as _0x108983,LivePosition as _0x215307}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x1d1b80,toWidget as _0x587dc6}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x279d7c,set as _0x11c0d5,isEqual as _0x491897,unset as _0x559da3,omit as Bt}from'lodash-es';import{Delete as _0x330ae7,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x394f73,ShiftEnter as _0x4111ef}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x56fbf5,_0x1386d1){super(_0x56fbf5),this['_enabledCommands']=_0x1386d1,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 _0x19d947 of this['editor']['commands']['commands']())_0x19d947['affectsData']&&!this['_enabledCommands']['has'](_0x19d947)&&_0x19d947['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x60c8d8 of this['editor']['commands']['commands']())_0x60c8d8['affectsData']&&!this['_enabledCommands']['has'](_0x60c8d8)&&_0x60c8d8['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x2c45d0,_0x468517){super(_0x2c45d0),this['_suggestions']=_0x468517,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2bb51a){const _0x506d15=this['_suggestions']['get'](_0x2bb51a);if(!_0x506d15)throw new _0xcb8e69('track-changes-accept-suggestion-not-found',this);const _0x41a9e7=_0x506d15['getRanges']();this['editor']['model']['canEditAt'](_0x41a9e7)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x506d15);}}class B extends ts{['_suggestions'];constructor(_0x1d34d8,_0x5c8a2f){super(_0x1d34d8),this['_suggestions']=_0x5c8a2f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xcbcd81){const _0x583583=this['_suggestions']['get'](_0xcbcd81);if(!_0x583583)throw new _0xcb8e69('track-changes-discard-suggestion-not-found',this);const _0x58588d=_0x583583['getRanges']();this['editor']['model']['canEditAt'](_0x58588d)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x583583);}}function ss(_0x1a8204){return _0x1a8204['sort']((_0x4d2ff8,_0x44c6d0)=>'deletion'==_0x4d2ff8['type']&&'deletion'!=_0x44c6d0['type']?-0x1:'deletion'!=_0x4d2ff8['type']&&'deletion'==_0x44c6d0['type']?0x1:0x0);}function to(_0x6dae7b,_0x5b398e){let _0x44b0b3,_0x55371f=0x0;const _0xabc005=[],_0x1f2d0c=_0x5b398e['schema'];for(;_0x55371f<_0x6dae7b['length'];){const _0x1c5fd6=_0x6dae7b[_0x55371f],_0x445bfb=_0x6dae7b[_0x55371f+0x1];_0x44b0b3||(_0x44b0b3=_0x5b398e['createPositionBefore'](_0x1c5fd6)),co(_0x5b398e,_0x1c5fd6,_0x445bfb)||(_0xabc005['push'](_0x5b398e['createRange'](_0x44b0b3,_0x1f2d0c['isObject'](_0x1c5fd6)?_0x5b398e['createPositionAfter'](_0x1c5fd6):_0x5b398e['createPositionAt'](_0x1c5fd6,'end'))),_0x44b0b3=null),_0x55371f++;}return _0xabc005;}function co(_0x47e685,_0x2ae14d,_0x1179dc){if(!_0x1179dc)return!0x1;const _0x5841b6=_0x47e685['createPositionAfter'](_0x2ae14d),_0x2bbd6e=_0x47e685['createPositionBefore'](_0x1179dc);return _0x5841b6['isTouching'](_0x2bbd6e);}function rs(_0x1112f5,_0x3d24c5,_0x27529e){for(;_0x27529e['length'];){const _0xc9cb23=_0x27529e['splice'](0x0,0x64);_0x1112f5['change'](()=>{for(const _0x5a54c6 of _0xc9cb23)_0x5a54c6['isInContent']&&_0x3d24c5['execute'](_0x5a54c6['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0xe01f61,_0x4ff3e,_0x167bc2){super(_0xe01f61),this['_command']=_0x4ff3e,this['_suggestions']=_0x167bc2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4c869c=Array['from'](this['_suggestions']['values']())['some'](_0x189311=>_0x189311['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4c869c;}['execute'](){const _0x293bb2=ss(Array['from'](this['_suggestions']['values']()));for(const _0x3a8db5 of _0x293bb2){const _0x25402f=_0x3a8db5['getRanges']();if(!this['editor']['model']['canEditAt'](_0x25402f))return;}rs(this['editor']['model'],this['_command'],_0x293bb2);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x51ae1d,_0x116b5b,_0x4645e0){super(_0x51ae1d),this['_command']=_0x116b5b,this['_suggestions']=_0x4645e0,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1be933=this['editor']['model']['document']['selection'],_0x49246e=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x18526c,_0x2e4967){const _0xedca39=Array['from'](_0x18526c['getRanges']()),_0x4221a2=new Set();for(const _0x150410 of _0x2e4967)if(_0x150410['isInContent']){for(const _0xc9fa52 of _0xedca39)for(const _0x2b55d8 of _0x150410['getRanges']())(_0xc9fa52['isIntersecting'](_0x2b55d8)||_0x18526c['isCollapsed']&&!_0x150410['isMultiRange']&&_0x150410['next']&&_0x2b55d8['end']['isTouching'](_0xc9fa52['start']))&&_0x4221a2['add'](_0x150410);}return _0x4221a2;}(_0x1be933,_0x49246e),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x400ed4=ss(Array['from'](this['_selectedSuggestions']));for(const _0x13aa57 of _0x400ed4){const _0x817e73=_0x13aa57['getRanges']();if(!this['editor']['model']['canEditAt'](_0x817e73))return;}rs(this['editor']['model'],this['_command'],_0x400ed4);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x38558f(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xfe4b35,_0xcdcd7){super(),this['id']=_0xcdcd7['id'],this['type']=_0xcdcd7['type'],this['subType']=_0xcdcd7['subType']||null,this['author']=_0xcdcd7['author'],this['creator']=_0xcdcd7['creator']||_0xcdcd7['author'],this['isExternal']=Boolean(_0xcdcd7['attributes']&&_0xcdcd7['attributes']['@external']),this['data']=null,this['_model']=_0xfe4b35,this['_onAccept']=_0xcdcd7['onAccept'],this['_onDiscard']=_0xcdcd7['onDiscard'],this['_onAttributesChange']=_0xcdcd7['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xcdcd7['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 _0x1001e6=this;for(;_0x1001e6['previous'];)_0x1001e6=_0x1001e6['previous'];return _0x1001e6;}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'](_0xc26d43){this['_markerNames']['add'](_0xc26d43);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x34eea8=>this['_model']['markers']['get'](_0x34eea8))['filter'](_0x2aaa29=>_0x2aaa29);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2f6c60=>{for(const _0x37463a of this['getMarkers']())_0x2f6c60['removeMarker'](_0x37463a);}),this['_markerNames']['clear']();}['removeMarker'](_0x3f8c25){this['_model']['change'](_0x47a4f5=>{_0x47a4f5['removeMarker'](_0x3f8c25);}),this['_markerNames']['delete'](_0x3f8c25);}['addRange'](_0x325ae6){const _0x3fb2e2='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x3fb2e2),this['_model']['change'](_0x4e9a07=>{_0x4e9a07['addMarker'](_0x3fb2e2,{'range':_0x325ae6,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5a7c64){for(const _0x390ee1 of this['getRanges']())if(_0x390ee1['isIntersecting'](_0x5a7c64))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x11831d=>_0x11831d['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5ce3c4,_0x5e2c54)=>[..._0x5ce3c4,..._0x5e2c54['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1bf7a1=this['getRanges']();if(0x1!=_0x1bf7a1['length'])return null;const _0x5f3685=_0x1bf7a1[0x0],_0x3f4cfc=_0x5f3685['start']['nodeAfter'],_0x9e0664=_0x5f3685['end']['nodeBefore'];return _0x3f4cfc instanceof _0x29f458?_0x3f4cfc!=_0x9e0664?null:_0x3f4cfc: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 _0x4823e0=[];let _0x387115=this['head'];for(;_0x387115;)_0x4823e0['push'](_0x387115),_0x387115=_0x387115['next'];return _0x4823e0;}['setAttribute'](_0x1d8a6d,_0x3fdb1a){const _0x2f6327=_0x279d7c(this['attributes']);_0x11c0d5(_0x2f6327,_0x1d8a6d,_0x3fdb1a),_0x491897(_0x2f6327,this['attributes'])||(this['attributes']=_0x2f6327,this['_onAttributesChange'](_0x2f6327));}['removeAttribute'](_0x52c130){const _0x4ba8ef=_0x279d7c(this['attributes']);_0x559da3(_0x4ba8ef,_0x52c130),_0x491897(_0x4ba8ef,this['attributes'])||(this['attributes']=_0x4ba8ef,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 _0x9738cc()['substr'](0x1,0x5);}}function o(_0x3fab9e,_0x556d5c,_0x126a3c){const t=_0x3fab9e['t'];switch(_0x556d5c){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x126a3c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x126a3c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x126a3c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x126a3c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x126a3c);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',_0x126a3c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x126a3c);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x126a3c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x126a3c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x126a3c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x126a3c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x126a3c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x126a3c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x126a3c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x126a3c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x126a3c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x126a3c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x126a3c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x126a3c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x126a3c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x126a3c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x126a3c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x126a3c);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'},_0x126a3c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x126a3c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x126a3c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x126a3c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x126a3c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x126a3c);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'},_0x126a3c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x126a3c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x126a3c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x126a3c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x126a3c);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'},_0x126a3c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x126a3c);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'},_0x126a3c);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x126a3c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x126a3c);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'},_0x126a3c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x126a3c);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'},_0x126a3c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x126a3c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x126a3c);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x126a3c);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x126a3c);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x556d5c;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x560415,_0x5b6085){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x560415,this['_locale']=_0x5b6085;}['getDescriptions'](_0x40cbc7){const _0x365864=[],_0x29cc27=new Set(),_0x5de20f=new Set();for(let _0x4b1702=0x0;_0x4b1702<_0x40cbc7['length'];_0x4b1702++){const _0x3831bb=_0x40cbc7[_0x4b1702];if(!_0x3831bb['isInContent'])continue;const _0x359d90=this['_handleCustomCallbackDescription'](_0x3831bb);if(_0x359d90){if(null!=_0x3831bb['subType']){if(_0x29cc27['has'](_0x3831bb['subType']))continue;_0x29cc27['add'](_0x3831bb['subType']);}_0x365864['push'](_0x359d90);}else{if('attribute'!=_0x3831bb['type'])'insertion'!=_0x3831bb['type']&&'deletion'!=_0x3831bb['type']||this['_handleInsertRemoveSuggestionDescription'](_0x365864,_0x3831bb,_0x40cbc7[_0x4b1702+0x1]);else{const _0x4c3c99=_0x3831bb['data']['key'];if(_0x5de20f['has'](_0x4c3c99))continue;_0x5de20f['add'](_0x3831bb['data']['key']),_0x4c3c99==m?this['_handleRenameSuggestionDescription'](_0x365864,_0x3831bb):this['_handleAttributeSuggestionDescription'](_0x365864,_0x3831bb);}}}return this['_resolveDescriptionItems'](_0x365864);}['registerDescriptionCallback'](_0x430a53){this['_customCallbacks']['push'](_0x430a53);}['registerElementLabel'](_0x3420f0,_0x3fb9ce,_0x3340f2=_0x80f00['normal']){'function'==typeof _0x3420f0?_0x4c5bcd(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3420f0,'label':_0x3fb9ce,'priority':_0x3340f2}):this['_itemLabels']['set'](_0x3420f0,_0x3fb9ce);}['registerAttributeLabel'](_0x5782ec,_0x5bb3b8){this['_attributeLabels']['set'](_0x5782ec,_0x5bb3b8);}['getItemLabel'](_0x27f4fb,_0xed82d3=0x1){let _0x9bbdb7;for(const _0x39761c of this['_itemLabelsCallbacks'])if(_0x39761c['matchingCallback'](_0x27f4fb)){_0x9bbdb7=_0x39761c['label'];break;}return _0x9bbdb7||(_0x9bbdb7=this['_itemLabels']['get'](_0x27f4fb['name'])),_0x9bbdb7?_0x9bbdb7(_0xed82d3):0x1!==_0xed82d3?_0xed82d3+'\x20'+_0x27f4fb['name']+'s':''+_0x27f4fb['name'];}['_addDescriptionItems'](_0x57c30f,_0x125016){const _0x3be613=_0x125016['getFirstRange']()['getWalker'](),_0x122726='insertion'==_0x125016['type']?'add':'remove';for(const _0x12561a of _0x3be613){const _0x601383=_0x12561a['item'],_0x1c14db=_0x57c30f[_0x57c30f['length']-0x1];if(_0x601383['is']('$textProxy'))_0x1c14db&&_0x1c14db['type']['indexOf']('Container')>-0x1&&_0x57c30f['pop'](),_0x1c14db&&'text'==_0x1c14db['type']?_0x1c14db[_0x122726]+=_0x601383['data']:_0x57c30f['push']({'type':'text','add':'add'==_0x122726?_0x601383['data']:'','remove':'remove'==_0x122726?_0x601383['data']:''});else{if(this['_schema']['isObject'](_0x601383)){const _0x3ed930=_0x601383;if(_0x1c14db&&_0x1c14db['type']['indexOf']('Container')>-0x1&&_0x57c30f['pop'](),'elementEnd'==_0x12561a['type'])continue;_0x1c14db&&_0x1c14db['type']==_0x122726+'Object'&&_0x1c14db['element']['name']==_0x3ed930['name']?_0x1c14db['quantity']++:_0x57c30f['push']({'type':_0x122726+'Object','element':_0x3ed930,'quantity':0x1}),_0x3be613['skip'](_0x513943=>!('elementEnd'==_0x513943['type']&&_0x513943['item']==_0x601383));}else{if(this['_schema']['checkChild'](_0x601383,'$text')||_0x601383['is']('element','softBreak')){const _0x5ec223=_0x601383;if('add'==_0x122726&&'elementStart'==_0x12561a['type']||'remove'==_0x122726&&'elementEnd'==_0x12561a['type'])continue;if(_0x1c14db&&-0x1==_0x1c14db['type']['indexOf']('Container')){'text'==_0x1c14db['type']&&(_0x1c14db[_0x122726]+='\x0a');continue;}let _0x1db556;if(_0x1db556='add'==_0x122726?_0x5ec223['nextSibling']&&!this['_schema']['isObject'](_0x5ec223['nextSibling'])?_0x5ec223['nextSibling']:null:_0x5ec223['previousSibling']&&!this['_schema']['isObject'](_0x5ec223['previousSibling'])?_0x5ec223['previousSibling']:null,_0x5ec223['isEmpty']||_0x1db556&&_0x1db556['isEmpty']){const _0x136fb5=_0x1db556&&_0x1db556['isEmpty']?_0x1db556:_0x5ec223;_0x1c14db&&_0x1c14db['type']==_0x122726+'EmptyContainer'&&_0x1c14db['element']['name']==_0x136fb5['name']?_0x1c14db['quantity']++:_0x57c30f['push']({'type':_0x122726+'EmptyContainer','element':_0x136fb5,'quantity':0x1});}else _0x57c30f['push']({'type':_0x122726+'Container','element':_0x5ec223});}}}}}['_resolveDescriptionItems'](_0x1e914b){const _0x148ef1=this['_locale'],_0x428f21=[],_0x70bea9=[],_0x2d97d3=[];for(const _0x535a86 of _0x1e914b)switch(_0x535a86['type']){case'text':if(_0x535a86['add']=_0x535a86['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x535a86['remove']=_0x535a86['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x535a86['add']&&''!=_0x535a86['remove']){_0x428f21['push']({'type':'replace','content':o(_0x148ef1,'REPLACE_TEXT',['\x22'+_0x535a86['remove']+'\x22','\x22'+_0x535a86['add']+'\x22'])});continue;}if(null!=_0x535a86['add']['match'](/^ +$/)){_0x428f21['push']({'type':'insertion','content':o(_0x148ef1,'*Insert:*\x20%0',o(_0x148ef1,'ELEMENT_SPACE',_0x535a86['add']['length']))});continue;}if(null!=_0x535a86['remove']['match'](/^ +$/)){_0x428f21['push']({'type':'deletion','content':o(_0x148ef1,'*Remove:*\x20%0',o(_0x148ef1,'ELEMENT_SPACE',_0x535a86['remove']['length']))});continue;}if(''!=_0x535a86['add']){_0x428f21['push']({'type':'insertion','content':o(_0x148ef1,'*Insert:*\x20%0','\x22'+_0x535a86['add']+'\x22')});continue;}_0x428f21['push']({'type':'deletion','content':o(_0x148ef1,'*Remove:*\x20%0','\x22'+_0x535a86['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x428f21['push']({'type':'insertion','content':o(_0x148ef1,'*Insert:*\x20%0',this['getItemLabel'](_0x535a86['element'],_0x535a86['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x428f21['push']({'type':'deletion','content':o(_0x148ef1,'*Remove:*\x20%0',this['getItemLabel'](_0x535a86['element'],_0x535a86['quantity']))});continue;case'addContainer':_0x428f21['push']({'type':'insertion','content':o(_0x148ef1,'*Split:*\x20%0',this['getItemLabel'](_0x535a86['element'],_0x535a86['quantity']))});continue;case'removeContainer':_0x428f21['push']({'type':'deletion','content':o(_0x148ef1,'*Merge:*\x20%0',this['getItemLabel'](_0x535a86['element'],_0x535a86['quantity']))});continue;case'addFormat':_0x70bea9['push'](_0x535a86['key']);continue;case'removeFormat':_0x2d97d3['push'](_0x535a86['key']);continue;default:_0x428f21['push'](_0x535a86);}if(_0x70bea9['length']){const _0x32f1e9=_0x70bea9['map'](_0x127e69=>this['_attributeLabels']['has'](_0x127e69)?this['_attributeLabels']['get'](_0x127e69):_0x127e69)['join'](',\x20');_0x428f21['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x32f1e9)});}if(_0x2d97d3['length']){const _0x35464c=_0x2d97d3['map'](_0x73b3d=>this['_attributeLabels']['has'](_0x73b3d)?this['_attributeLabels']['get'](_0x73b3d):_0x73b3d)['join'](',\x20');_0x428f21['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x35464c)});}return _0x428f21;}['_handleCustomCallbackDescription'](_0x3ccf51){for(const _0x3bb5d1 of this['_customCallbacks']){const _0x131809=_0x3bb5d1(_0x3ccf51);if(_0x131809&&'type'in _0x131809)return _0x131809;}}['_handleAttributeSuggestionDescription'](_0x2c63a1,_0x29c9f0){const _0x5a5942=_0x29c9f0['data'],_0x24c299=void 0x0===_0x5a5942['newValue']?'removeFormat':'addFormat';_0x2c63a1['push']({'type':_0x24c299,'key':_0x5a5942['key']});}['_handleRenameSuggestionDescription'](_0x5f4928,_0x164641){_0x5f4928['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x164641['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xdd4d28,_0x3215d0,_0x32997f){if(this['_addDescriptionItems'](_0xdd4d28,_0x3215d0),_0x32997f&&_0x32997f['getFirstRange']()&&!_0x3215d0['getFirstRange']()['end']['isEqual'](_0x32997f['getFirstRange']()['start'])){const _0x20d350=_0xdd4d28[_0xdd4d28['length']-0x1],_0x35b775='insertion'==_0x3215d0['type']?'add':'remove';_0x20d350&&'text'==_0x20d350['type']&&(_0x20d350[_0x35b775]+='\x0a');}}}class E extends _0x5031ea{['afterInit'](){const _0x4de0e6=this['editor'],_0x59ff0b=_0x4de0e6['plugins']['get']('TrackChangesEditing');_0x4de0e6['commands']['get']('showAIAssistant')&&_0x59ff0b['enableCommand']('showAIAssistant');}}class V extends _0x5031ea{['afterInit'](){const _0x4d01af=this['editor'],_0x1bf5f2=_0x4d01af['locale'];if(!_0x4d01af['plugins']['has']('AlignmentEditing'))return;const _0x1a1ae5=_0x4d01af['plugins']['get']('TrackChangesEditing');_0x1a1ae5['enableDefaultAttributesIntegration']('alignment'),_0x1a1ae5['registerBlockAttribute']('alignment'),_0x1a1ae5['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1bf5f2,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ac5b7=this['editor'],_0x16333d=_0x2ac5b7['locale'];_0x2ac5b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ea714=>{if('formatBlock'!=_0x1ea714['type'])return;const {data:_0x12c41b}=_0x1ea714;if(_0x12c41b&&'alignment'==_0x12c41b['commandName']){const _0xf78f2b=_0x12c41b['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x16333d,'*Format:*\x20%0',function(_0x20d578){switch(_0x20d578){case'left':return o(_0x16333d,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x16333d,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x16333d,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x16333d,'FORMAT_JUSTIFY_TEXT');}}(_0xf78f2b))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x5031ea{['afterInit'](){const _0x160aa6=this['editor'],_0x38268b=_0x160aa6['plugins']['get']('TrackChangesEditing'),_0x27a2eb=_0x160aa6['locale'];for(const _0x3b078e of ti){if(!_0x160aa6['plugins']['has'](_0x3b078e))continue;const _0xf51d4c=_0x3b078e['slice'](0x0,-0x7)['toLowerCase'](),_0xea0547='FORMAT_'+_0xf51d4c['toUpperCase']();_0x38268b['enableDefaultAttributesIntegration'](_0xf51d4c),_0x38268b['registerInlineAttribute'](_0xf51d4c),_0x38268b['descriptionFactory']['registerAttributeLabel'](_0xf51d4c,o(_0x27a2eb,_0xea0547));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51aa79=this['editor'],_0x348fc3=_0x51aa79['locale'],_0x19102c=_0x51aa79['plugins']['get']('TrackChangesEditing');function _0x36a3ca(_0x5878e6,_0x216713){_0x19102c['descriptionFactory']['registerDescriptionCallback'](_0x1e5684=>{if('formatInline'!=_0x1e5684['type'])return;const {data:_0x16e8ba}=_0x1e5684;return _0x16e8ba&&_0x16e8ba['commandName']===_0x5878e6?_0x16e8ba['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x348fc3,'*Format:*\x20%0',_0x216713)}:{'type':'format','content':o(_0x348fc3,'*Remove\x20format:*\x20%0',_0x216713)}:void 0x0;});}_0x36a3ca('bold',o(_0x348fc3,'FORMAT_BOLD')),_0x36a3ca('italic',o(_0x348fc3,'FORMAT_ITALIC')),_0x36a3ca('underline',o(_0x348fc3,'FORMAT_UNDERLINE')),_0x36a3ca('code',o(_0x348fc3,'FORMAT_CODE')),_0x36a3ca('strikethrough',o(_0x348fc3,'FORMAT_STRIKETHROUGH')),_0x36a3ca('subscript',o(_0x348fc3,'FORMAT_SUBSCRIPT')),_0x36a3ca('superscript',o(_0x348fc3,'FORMAT_SUPERSCRIPT'));}}class O extends _0x5031ea{['afterInit'](){const _0x2a11a8=this['editor'],_0x29e631=_0x2a11a8['locale'];if(!_0x2a11a8['plugins']['has']('BlockQuoteEditing'))return;const _0x1ed397=_0x2a11a8['plugins']['get']('TrackChangesEditing'),_0x1aa253=this['editor']['commands']['get']('blockQuote');_0x1ed397['enableCommand']('blockQuote',(_0x50a18c,_0x376450={})=>{const _0x3515e4=this['editor']['model']['document']['selection'],_0x479f66=_0x376450&&void 0x0!==_0x376450['forceValue']?_0x376450['forceValue']:!_0x1aa253['value'];let _0x3f4166=[];if(_0x479f66){const _0x28bb84=Array['from'](_0x3515e4['getSelectedBlocks']())['filter'](_0x1941ca=>oo(_0x1941ca)||function(_0x4252cc,_0x28e826){const _0x1cfe78=_0x28e826['checkChild'](_0x4252cc['parent'],'blockQuote'),_0x59f77b=_0x28e826['checkChild'](['$root','blockQuote'],_0x4252cc);return _0x1cfe78&&_0x59f77b;}(_0x1941ca,this['editor']['model']['schema']));_0x3f4166=to(_0x28bb84,_0x2a11a8['model']);}else{const _0x16834d=Array['from'](_0x3515e4['getSelectedBlocks']())['filter'](_0x3d5b43=>oo(_0x3d5b43));_0x3f4166=to(_0x16834d,_0x2a11a8['model']);}_0x2a11a8['model']['change'](()=>{for(const _0x2de0be of _0x3f4166)_0x1ed397['markBlockFormat'](_0x2de0be,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x479f66}]});});}),_0x1ed397['descriptionFactory']['registerDescriptionCallback'](_0x52dfa9=>{const {data:_0x26f6c2}=_0x52dfa9;if(_0x26f6c2&&'blockQuote'==_0x26f6c2['commandName']){const _0x35d425=o(_0x29e631,'ELEMENT_BLOCK_QUOTE');return _0x26f6c2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x29e631,'*Set\x20format:*\x20%0',_0x35d425)}:{'type':'format','content':o(_0x29e631,'*Remove\x20format:*\x20%0',_0x35d425)};}});}}function oo(_0x8a8a8b){return'blockQuote'==_0x8a8a8b['parent']['name'];}class G extends _0x5031ea{['afterInit'](){const _0x50f92e=this['editor'];_0x50f92e['plugins']['has']('CaseChange')&&(_0x50f92e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x50f92e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x50f92e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x5031ea{['afterInit'](){const _0x5dd9b5=this['editor'];_0x5dd9b5['commands']['get']('ckbox')&&_0x5dd9b5['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x5031ea{['afterInit'](){const _0xb0da3a=this['editor'];if(!_0xb0da3a['plugins']['has']('CodeBlock'))return;const _0x4105b2=_0xb0da3a['plugins']['get']('TrackChangesEditing'),_0x4d173f=_0xb0da3a['locale'],_0x59bd60=_0xb0da3a['config']['get']('codeBlock')['languages'],_0x19bc2d=_0xb0da3a['commands']['get']('codeBlock');_0x4105b2['enableCommand']('indentCodeBlock'),_0x4105b2['enableCommand']('outdentCodeBlock'),_0x4105b2['enableCommand']('codeBlock',(_0x47c5d6,_0x44cf64={})=>{const _0x25171a=_0xb0da3a['model'],_0x4d2e0d=_0xb0da3a['model']['document']['selection'],_0x258f79=_0x44cf64&&void 0x0!==_0x44cf64['forceValue']?_0x44cf64['forceValue']:!_0x19bc2d['value'];let _0xaa226c;_0x44cf64['language']||(_0x44cf64['language']=_0x59bd60[0x0]['language']),_0xaa226c=_0x258f79?Array['from'](_0x4d2e0d['getSelectedBlocks']())['filter'](_0x18771b=>eo(_0x18771b)||function(_0x4cf35d,_0x36af2e){if(_0x4cf35d['is']('rootElement')||_0x36af2e['isLimit'](_0x4cf35d))return!0x1;return _0x36af2e['checkChild'](_0x4cf35d['parent'],'codeBlock');}(_0x18771b,_0x25171a['schema'])):Array['from'](_0x4d2e0d['getSelectedBlocks']())['filter'](_0x26838a=>eo(_0x26838a));const _0x31d94b=to(_0xaa226c,_0x25171a);_0x25171a['change'](()=>{for(const _0x40e38e of _0x31d94b)_0x4105b2['markBlockFormat'](_0x40e38e,{'commandName':'codeBlock','commandParams':[{..._0x44cf64,'forceValue':_0x258f79}],'formatGroupId':'blockName'});});}),(_0x4105b2['descriptionFactory']['registerElementLabel']('codeBlock',_0x56e224=>o(_0x4d173f,'ELEMENT_CODE_BLOCK',_0x56e224)),_0x4105b2['descriptionFactory']['registerDescriptionCallback'](_0x58b1b4=>{if('formatBlock'!=_0x58b1b4['type'])return;const _0x3932dc=_0x4d173f['t'],{data:_0x1bf777}=_0x58b1b4;if(!_0x1bf777||'codeBlock'!=_0x1bf777['commandName'])return;const _0x4453f0=_0x1bf777['commandParams'][0x0]['language'],_0x9f4364=_0x3932dc(_0x59bd60['find'](_0x4471be=>_0x4471be['language']===_0x4453f0)['label'])['toLowerCase']();return _0x1bf777['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4d173f,'*Set\x20format:*\x20%0',o(_0x4d173f,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x9f4364+')')}:{'type':'format','content':o(_0x4d173f,'*Remove\x20format:*\x20%0',o(_0x4d173f,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x107860){return'codeBlock'==_0x107860['name'];}class H extends _0x5031ea{['afterInit'](){const _0x50b0b5=this['editor'];if(!_0x50b0b5['plugins']['has']('CommentsEditing'))return;_0x50b0b5['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4121f6,_0x494e1b,_0x55efbc){const _0x330cf2=[];for(const _0x5e681b of _0x494e1b['getItems']())_0x5e681b['hasAttribute'](_0x4121f6)&&_0x330cf2['push'](_0x55efbc['createRangeOn'](_0x5e681b));return _0x330cf2;}function _e(_0x5689e3,_0x461831,{showActiveMarker:_0x4686a4=!0x0}={}){const _0x5a85eb=_0x5689e3['plugins']['get']('TrackChangesEditing');return(_0x959af3,_0x3094b6,_0xe3b041)=>{if(!_0xe3b041['consumable']['test'](_0x3094b6['markerRange'],_0x959af3['name']))return;const _0x5be091=_0x3094b6['markerRange']['getWalker'](),_0x1ed3c2=_0x3094b6['markerRange']['start'],_0x4494ec=_0x5689e3['model']['schema'];let _0x55ac45=null,_0x2f49cf=null,_0x48c1c9=!0x1,_0x33939e=!0x1;for(const _0x2d5d01 of _0x5be091){const _0x175ac4=_0x2d5d01['item'];_0x48c1c9=_0x48c1c9||_0x4494ec['isContent'](_0x175ac4);const _0x3ebe81=_0xe3b041['mapper']['toViewElement'](_0x175ac4);if(_0x3ebe81&&_0x3ebe81['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2d5d01['type']&&(_0x4494ec['isBlock'](_0x175ac4)&&!_0x4494ec['isLimit'](_0x175ac4)&&(_0x175ac4['nextSibling']||_0x1ed3c2['isAtEnd']?_0x55ac45&&_0x55ac45['parent']==_0x175ac4||(_0x55ac45=_0x175ac4,_0x6f557f(_0x2d5d01['previousPosition']),_0x33939e=!0x0):_0x2f49cf=_0x2f49cf||_0x2d5d01['previousPosition']));}function _0x6f557f(_0x3f05ab){const _0x8ebf15=_0xe3b041['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x461831}),_0x50550a=_0xe3b041['mapper']['toViewPosition'](_0x3f05ab);_0x4686a4&&_0x5a85eb['activeMarkers']['includes'](_0x3094b6['markerName'])&&_0xe3b041['writer']['addClass']('ck-suggestion-marker--active',_0x8ebf15),_0xe3b041['writer']['insert'](_0x50550a,_0x8ebf15),_0xe3b041['mapper']['bindElementToMarker'](_0x8ebf15,_0x3094b6['markerName']);}_0x48c1c9||_0x33939e||!_0x2f49cf||_0x6f557f(_0x2f49cf);};}class q extends _0x5031ea{static get['requires'](){return[_0x330ae7];}['init'](){const _0x2dcfe9=this['editor'],_0x3a45c3=_0x2dcfe9['plugins']['get']('TrackChangesEditing');_0x3a45c3['enableCommand']('delete');const _0xa5d891=_0x2dcfe9['commands']['get']('deleteForward');_0x3a45c3['enableCommand']('deleteForward',(_0x495e32,_0xbb8f1a={})=>{const _0x288b64=_0x2dcfe9['model']['createSelection'](_0x2dcfe9['model']['document']['selection']);_0x288b64['isCollapsed']&&_0x2dcfe9['model']['modifySelection'](_0x288b64,{'direction':'forward','unit':_0xbb8f1a['unit']});const _0x4541fa=_0x288b64['getFirstRange'](),_0x1a51c0=_0x108983['fromRange'](_0x4541fa);let _0x337c4b;_0x495e32(_0xbb8f1a),_0x337c4b='$graveyard'==_0x1a51c0['root']['rootName']?_0x2dcfe9['model']['createRange'](_0x4541fa['start']):_0x2dcfe9['model']['createRange'](_0x1a51c0['start'],_0x1a51c0['end']),_0x1a51c0['detach'](),_0x2dcfe9['model']['enqueueChange'](_0xa5d891['buffer']['batch'],_0x5404ed=>{_0xa5d891['buffer']['lock'](),_0x5404ed['setSelection'](_0x5404ed['createRange'](_0x337c4b['end'])),_0xa5d891['buffer']['unlock']();});}),_0x2dcfe9['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x2dcfe9,'merge'),{'priority':'high'}),_0x2dcfe9['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x15629c,_0x42ae13,_0x1e524e)=>{_0x1e524e['options']['showSuggestionHighlights']&&_e(_0x2dcfe9,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x15629c,_0x42ae13,_0x1e524e);},{'priority':'high'}),_0x2dcfe9['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x24c52f,_0x54dd7b,_0x1a0223)=>{const _0x4377a1=_0x1a0223['mapper']['markerNameToElements'](_0x54dd7b['markerName']);if(_0x4377a1){for(const _0x417f5c of _0x4377a1)_0x417f5c['is']('uiElement')&&(_0x1a0223['mapper']['unbindElementFromMarkerName'](_0x417f5c,_0x54dd7b['markerName']),_0x1a0223['writer']['remove'](_0x417f5c));}},{'priority':'high'});}}class z extends _0x5031ea{['afterInit'](){const _0x291748=this['editor'];if(!_0x291748['plugins']['has']('ListEditing'))return;const _0x33145a=_0x291748['locale'],_0x5b2661=_0x291748['plugins']['get']('TrackChangesEditing'),_0x5ed434=_0x291748['plugins']['has']('TodoListEditing'),_0x1efe44=!!_0x291748['config']['get']('list.multiBlock');function _0x52016a(_0x35eaaf){return{'type':'format','content':''+o(_0x33145a,'*Set\x20format:*\x20%0',_0x35eaaf)};}function _0x10f821(_0x1f90cc){return{'type':'format','content':''+o(_0x33145a,'*Remove\x20format:*\x20%0',_0x1f90cc)};}_0x5b2661['enableDefaultAttributesIntegration']('numberedList'),_0x5b2661['enableDefaultAttributesIntegration']('bulletedList'),_0x5b2661['enableDefaultAttributesIntegration']('customNumberedList'),_0x5b2661['enableDefaultAttributesIntegration']('customBulletedList'),_0x5b2661['enableDefaultAttributesIntegration']('indentList'),_0x5b2661['enableDefaultAttributesIntegration']('outdentList'),_0x5b2661['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5b2661['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5b2661['registerBlockAttribute']('listItemId'),_0x5b2661['registerBlockAttribute']('listType'),_0x5b2661['registerBlockAttribute']('listIndent'),_0x1efe44&&(_0x5b2661['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5b2661['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5ed434&&(_0x5b2661['enableDefaultAttributesIntegration']('todoList'),_0x5b2661['enableDefaultAttributesIntegration']('checkTodoList'),_0x5b2661['registerBlockAttribute']('todoListChecked'),_0x5b2661['descriptionFactory']['registerDescriptionCallback'](_0x3801be=>{const {data:_0x554f59}=_0x3801be;if(_0x554f59&&'todoListChecked'==_0x554f59['key'])return{'type':'format','content':_0x554f59['newValue']?o(_0x33145a,'*Check\x20item*'):o(_0x33145a,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5c57b3=>{if(_0x5c57b3['batch']['isUndo'])return!0x1;let _0x3b54ed=!0x1;const _0x6a161b=_0x5b2661['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c69db=>'todoListChecked'===_0x5b2661['_getAttributeKey'](_0x5c69db));for(const _0x3d05ab of _0x6a161b){'todo'!=_0x3d05ab['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5b2661['_findSuggestions'](_0x3d05ab['getFirstRange'](),'attribute')['find'](_0x3ad46a=>'listType'===_0x5b2661['_getAttributeKey'](_0x3ad46a['suggestion']))||(_0x5c57b3['removeMarker'](_0x3d05ab['getFirstMarker']()),_0x3b54ed=!0x0));}return _0x3b54ed;})),_0x5b2661['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x33145a,'FORMAT_INDENT'));const _0x3930a1={'type':'format','content':''};_0x5b2661['descriptionFactory']['registerDescriptionCallback'](_0x251eab=>{const {data:_0x85e720}=_0x251eab;if(!_0x85e720||'listType'!=_0x85e720['key'])return;let _0x3aa4a2=_0x251eab['head'];for(;_0x3aa4a2;){if(_0x3aa4a2['data']&&(('listStyle'==_0x3aa4a2['data']['key']||'listMarkerStyle'==_0x3aa4a2['data']['key'])&&(_0x3aa4a2['data']['newValue']&&'default'!=_0x3aa4a2['data']['newValue']||'default'!=_0x3aa4a2['data']['oldValue']&&!_0x85e720['newValue'])||!_0x1efe44&&_0x3aa4a2['data']['key']==m))return _0x3930a1;_0x3aa4a2=_0x3aa4a2['next'];}if(null==_0x85e720['newValue'])switch(_0x85e720['oldValue']){case'bulleted':return _0x10f821(o(_0x33145a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x10f821(o(_0x33145a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x10f821(o(_0x33145a,'ELEMENT_TODO_LIST'));}switch(_0x85e720['newValue']){case'bulleted':return _0x52016a(o(_0x33145a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x52016a(o(_0x33145a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x52016a(o(_0x33145a,'ELEMENT_TODO_LIST'));}}),_0x5b2661['descriptionFactory']['registerDescriptionCallback'](_0x49b71b=>{const {data:_0x2e552b}=_0x49b71b;if(_0x2e552b&&'listIndent'==_0x2e552b['key'])return null==_0x2e552b['newValue']||null==_0x2e552b['oldValue']&&0x0==_0x2e552b['newValue']?_0x3930a1:void 0x0;}),_0x5b2661['descriptionFactory']['registerDescriptionCallback'](_0x15f290=>{if('attribute'!=_0x15f290['type'])return;const {data:_0x46151a}=_0x15f290;if(!_0x46151a||'listItemId'!=_0x46151a['key'])return;const _0x10a30b=le(_0x15f290);return'newValue'==_0x10a30b?{'type':'format','content':o(_0x33145a,'*Merge:*\x20list\x20item')}:'oldValue'==_0x10a30b?{'type':'format','content':o(_0x33145a,'*Split:*\x20list\x20item')}:_0x3930a1;}),_0x291748['model']['document']['registerPostFixer'](_0x4bc9bf=>this['listItemIdFixer'](_0x4bc9bf)),_0x291748['model']['document']['registerPostFixer'](_0x4c5ae2=>this['noTrackChangesFixer'](_0x4c5ae2)),_0x291748['model']['document']['registerPostFixer'](_0x35e48e=>this['assureChains'](_0x35e48e)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x275273){if(_0x275273['batch']['isUndo']||!_0x275273['batch']['isLocal'])return!0x1;let _0x4dbec1=!0x1;const _0x21ce41=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x26cd77=>_0x26cd77['data']&&'listItemId'==_0x26cd77['data']['key'])['filter'](_0x4af111=>_0x4af111['data']['newValue']&&_0x4af111['data']['oldValue']);for(const _0x3d12e1 of _0x21ce41)le(_0x3d12e1)||(_0x275273['removeMarker'](_0x3d12e1['getFirstMarker']()),_0x4dbec1=!0x0);return _0x4dbec1;}['noTrackChangesFixer'](_0x1e7f74){if(_0x1e7f74['batch']['isUndo']||!_0x1e7f74['batch']['isLocal'])return!0x1;const _0x5214c9=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5214c9['trackChangesCommand']['value'])return!0x1;let _0x46e642=!0x1;const _0x675d3=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x225b81=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x177813=>'attribute'==_0x177813['type'])['filter'](_0x3c76a9=>_0x675d3['includes'](_0x3c76a9['attributeKey']));if(0x0==_0x225b81['length'])return _0x46e642;for(const _0x23415d of _0x225b81){const _0x31945f=_0x5214c9['_findSuggestions'](_0x23415d['range'],'attribute')['filter'](_0xb9f23a=>!_0xb9f23a['meta']['isNextTo'])['map'](_0x1ead50=>_0x1ead50['suggestion'])['filter'](_0x7425ef=>{const _0x2a8319=_0x5214c9['_getAttributeKey'](_0x7425ef);return _0x675d3['includes'](_0x2a8319);});if(_0x31945f['length']){for(const _0x3d2981 of _0x31945f)_0x1e7f74['removeMarker'](_0x3d2981['getFirstMarker']());_0x46e642=!0x0;}}return _0x46e642;}['assureChains'](_0x45790a){if(_0x45790a['batch']['isUndo']||!_0x45790a['batch']['isLocal'])return!0x1;const _0x24f141=this['editor']['plugins']['get']('TrackChangesEditing');let _0x2ba540=!0x1;const _0x216ca4=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0xe63721 of _0x24f141['getSuggestions']({'skipNotAttached':!0x0})){const _0x420a67=_0x24f141['_findSuggestions'](_0xe63721['getFirstRange'](),'attribute')['map'](_0x20581b=>_0x20581b['suggestion'])['filter'](_0x5a59d0=>_0x5a59d0['data']&&_0x216ca4['includes'](_0x5a59d0['data']['key']));if(!_0x420a67['length'])continue;const _0x2dc860=_0x420a67[0x0]['head']['attributes']['groupId'];if(!_0x420a67['every'](_0x1cb08a=>_0x1cb08a['attributes']['groupId']===_0x2dc860)){for(const _0x13dca3 of _0x420a67)_0x34b119(_0x13dca3,_0x2dc860)&&(_0x2ba540=!0x0);}}return _0x2ba540;function _0x2ecdda(_0x347eb0,_0x41de78){for(const _0x55cf01 of _0x24f141['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x229829=>'attribute'==_0x229829['type']&&_0x229829['attributes']['groupId']==_0x347eb0))_0x55cf01['setAttribute']('groupId',_0x41de78);}function _0x34b119(_0x2c6f9f,_0x53ac52){let _0x3917ae=_0x2c6f9f['head'],_0x41e262=!0x1;for(;_0x3917ae;)_0x3917ae['attributes']['groupId']!=_0x53ac52&&(_0x2ecdda(_0x3917ae['attributes']['groupId'],_0x53ac52),_0x3917ae['setAttribute']('groupId',_0x53ac52),_0x41e262=!0x0),_0x3917ae=_0x3917ae['next'];return _0x41e262;}}['_supportLegacySuggestions'](){const _0x4ae137=this['editor'],_0x40292b=_0x4ae137['locale'],_0x5df40f=_0x4ae137['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5df40f['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x38aa72,_0x4e4349){const _0x4332dc=[];for(let _0x26dfb2 of _0x38aa72)_0x26dfb2['start']['nodeAfter']===_0x26dfb2['end']['parent']&&(_0x26dfb2=_0x4ae137['model']['createRange'](_0x4ae137['model']['createPositionAt'](_0x26dfb2['start']['nodeAfter'],0x0))),_0x4332dc['push'](_0x26dfb2);_0x4ae137['model']['change'](_0x1dac50=>{const _0x4a2ed9=_0x4ae137['model']['document']['selection'],_0x130b5b=Array['from'](_0x4a2ed9['getRanges']())['map'](_0x5eae2e=>_0x108983['fromRange'](_0x5eae2e));_0x1dac50['setSelection'](_0x4332dc),_0x4ae137['commands']['get'](_0x4e4349['commandName'])['refresh'](),_0x4e4349['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4ae137['execute'](_0x4e4349['commandName'],..._0x4e4349['commandParams']),_0x1dac50['setSelection'](_0x130b5b);for(const _0x52b064 of _0x130b5b)_0x52b064['detach']();});}),_0x5df40f['descriptionFactory']['registerElementLabel'](function(_0x5ba590){const _0x4154f8=!_0x4ae137['model']['schema']['isObject'](_0x5ba590),_0x341a4a=_0x5ba590['previousSibling'],_0x494e7a=_0x5ba590['nextSibling'],_0x560806=_0x5ba590['getAttribute']('listItemId'),_0x5abe5e=!_0x341a4a||_0x341a4a['getAttribute']('listItemId')!==_0x560806,_0x171c63=!_0x494e7a||_0x494e7a['getAttribute']('listItemId')!==_0x560806;return _0x4154f8&&Boolean(_0x560806)&&_0x5abe5e&&_0x171c63;},_0x19e030=>o(_0x40292b,'ELEMENT_LIST_ITEM',_0x19e030));}['_registerLegacyDescription'](){const _0xccef65=this['editor'],_0x2671cb=_0xccef65['locale'];function _0x157448(_0x35782b){const _0xa17d5b=_0xccef65['commands']['get']('bulletedList')['value'],_0x41bcc0=_0xccef65['commands']['get']('numberedList')['value'];return'numberedList'===_0x35782b?_0xa17d5b:_0x41bcc0;}_0xccef65['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x173448){if('formatBlock'!=_0x173448['type'])return;const {data:_0x3a3769}=_0x173448;if(!_0x3a3769)return;let _0x71ca7f,_0x24b95f,_0x1598c4,_0x2348f3;switch(_0x3a3769['commandName']){case'bulletedList':_0x1598c4=_0x3a3769['commandParams'][0x0]['forceValue'],_0x2348f3=_0x157448(_0x3a3769['commandName']),_0x71ca7f=_0x1598c4?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2348f3&&_0xccef65['config']['get']('list.multiBlock')||(_0x71ca7f='*Change\x20to:*\x20%0'),_0x24b95f={'type':'format','content':o(_0x2671cb,_0x71ca7f,o(_0x2671cb,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1598c4=_0x3a3769['commandParams'][0x0]['forceValue'],_0x2348f3=_0x157448(_0x3a3769['commandName']),_0x71ca7f=_0x1598c4?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2348f3&&_0xccef65['config']['get']('list.multiBlock')||(_0x71ca7f='*Change\x20to:*\x20%0'),_0x24b95f={'type':'format','content':o(_0x2671cb,_0x71ca7f,o(_0x2671cb,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x71ca7f='*Indent:*\x20%0',_0x24b95f={'type':'format','content':o(_0x2671cb,_0x71ca7f,o(_0x2671cb,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x71ca7f=function(_0x29ee95){const _0x16174f=_0x29ee95['getFirstRange']();let _0x4cb237=_0x16174f['start']['nodeAfter'];for(;_0x4cb237&&_0x16174f['containsItem'](_0x4cb237);){if(_0x4cb237['getAttribute']('listIndent')>0x0)return!0x1;_0x4cb237=_0x4cb237['nextSibling'];}return!0x0;}(_0x173448)?o(_0x2671cb,'*Format:*\x20remove\x20from\x20%0',o(_0x2671cb,function(_0x5c9d8e){return'ELEMENT_'+_0x5c9d8e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x173448))):o(_0x2671cb,'*Outdent:*\x20%0',o(_0x2671cb,'ELEMENT_LIST_ITEM')),_0x24b95f={'type':'format','content':_0x71ca7f};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3a3769['multipleBlocks']&&(_0x71ca7f='*Merge:*\x20%0',_0x24b95f={'type':'deletion','content':o(_0x2671cb,_0x71ca7f,o(_0x2671cb,'ELEMENT_LIST_ITEM'))});}return _0x24b95f;});}}function le(_0x3be931){let _0x328b55=_0x3be931['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x328b55;){const _0x2c3d55=_0x328b55['getAttribute']('listItemId');if(!_0x2c3d55)return!0x1;if(_0x2c3d55==_0x3be931['data']['newValue'])return'newValue';if(_0x2c3d55==_0x3be931['data']['oldValue'])return'oldValue';_0x328b55=_0x328b55['previousSibling'];}return!0x1;}class ue extends _0x5031ea{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x47df7b=this['editor']['config']['get']('list.properties'),_0x567166=this['editor']['plugins']['get']('TrackChangesEditing');_0x47df7b['styles']&&(_0x567166['enableDefaultAttributesIntegration']('listStyle'),_0x567166['registerBlockAttribute']('listStyle')),_0x47df7b['reversed']&&(_0x567166['enableDefaultAttributesIntegration']('listReversed'),_0x567166['registerBlockAttribute']('listReversed')),_0x47df7b['startIndex']&&(_0x567166['enableDefaultAttributesIntegration']('listStart'),_0x567166['registerBlockAttribute']('listStart'));const _0x16025d={'type':'format','content':''};_0x567166['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x24605d=this['editor']['locale'];_0x567166['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x24605d,'FORMAT_LIST_REVERSED')),_0x567166['descriptionFactory']['registerDescriptionCallback'](_0x10162b=>{const {data:_0x48c1eb}=_0x10162b;if(_0x48c1eb&&'listReversed'==_0x48c1eb['key'])return null==_0x48c1eb['newValue']||0x0==_0x48c1eb['newValue']&&null==_0x48c1eb['oldValue']?_0x16025d:void 0x0;}),_0x567166['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x24605d,'FORMAT_LIST_START')),_0x567166['descriptionFactory']['registerDescriptionCallback'](_0x1e0b5a=>{const {data:_0xcf8712}=_0x1e0b5a;if(_0xcf8712&&'listStart'==_0xcf8712['key'])return null==_0xcf8712['newValue']||0x1==_0xcf8712['newValue']&&null==_0xcf8712['oldValue']?_0x16025d:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3646fd=>{if(_0x3646fd['batch']['isUndo'])return!0x1;let _0x589b11=!0x1;const _0x301cca=_0x567166['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2fd386=>{const _0xc9aa32=_0x567166['_getAttributeKey'](_0x2fd386);return'listStart'==_0xc9aa32||'listReversed'==_0xc9aa32;});for(const _0xf1fc23 of _0x301cca){const _0x1221de=_0xf1fc23['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1221de||'customNumbered'==_0x1221de)continue;_0x567166['_findSuggestions'](_0xf1fc23['getFirstRange'](),'attribute')['find'](_0x44fd9a=>'listType'==_0x567166['_getAttributeKey'](_0x44fd9a['suggestion']))||(_0x3646fd['removeMarker'](_0xf1fc23['getFirstMarker']()),_0x589b11=!0x0);}return _0x589b11;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x12c67d){const _0x27c440=this['editor']['locale'],{data:_0x16792f}=_0x12c67d,_0x522dd0={'type':'format','content':''};if(!_0x16792f||'listStyle'!=_0x16792f['key'])return;if(!_0x16792f['oldValue'])return'default'==_0x16792f['newValue']?_0x522dd0:{'type':'format','content':''+o(_0x27c440,'*Set\x20format:*\x20%0',o(_0x27c440,this['_getTranslationKeyForListStyle'](_0x16792f['newValue'])))};if(!_0x16792f['newValue']){if('default'==_0x16792f['oldValue'])return _0x522dd0;let _0x14bf96=_0x12c67d['head'];for(;_0x14bf96;){if(_0x14bf96['data']&&'listType'==_0x14bf96['data']['key']&&_0x14bf96['data']['newValue'])return _0x522dd0;_0x14bf96=_0x14bf96['next'];}return{'type':'format','content':''+o(_0x27c440,'*Remove\x20format:*\x20%0',o(_0x27c440,this['_getTranslationKeyForListStyle'](_0x16792f['oldValue'])))};}if('default'!=_0x16792f['newValue'])return{'type':'format','content':''+o(_0x27c440,'*Set\x20format:*\x20%0',o(_0x27c440,this['_getTranslationKeyForListStyle'](_0x16792f['newValue'])))};let _0x4a06ad=_0x12c67d['head'];for(;_0x4a06ad;){if(_0x4a06ad['data']&&'listType'==_0x4a06ad['data']['key']&&_0x4a06ad['data']['newValue']&&_0x4a06ad['data']['oldValue'])return _0x522dd0;_0x4a06ad=_0x4a06ad['next'];}return{'type':'format','content':o(_0x27c440,'*Set\x20format:*\x20%0',o(_0x27c440,'ELEMENT_'+_0x12c67d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3ee50b=this['editor'],_0x5d1cfb=_0x3ee50b['locale'];_0x3ee50b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fd4ec=>{if('formatBlock'!=_0x4fd4ec['type'])return;const {data:_0x1af195}=_0x4fd4ec;if(!_0x1af195)return;let _0x2e5a0d,_0x41ca4c;switch(_0x1af195['commandName']){case'listStyle':_0x2e5a0d='*Change\x20to:*\x20%0',_0x41ca4c={'type':'format','content':o(_0x5d1cfb,_0x2e5a0d,o(_0x5d1cfb,this['_getTranslationKeyForListStyle'](_0x1af195['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2e5a0d=_0x1af195['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x41ca4c={'type':'format','content':o(_0x5d1cfb,_0x2e5a0d)};break;case'listStart':_0x2e5a0d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x41ca4c={'type':'format','content':o(_0x5d1cfb,_0x2e5a0d,_0x1af195['commandParams'][0x0]['startIndex'])};}return _0x41ca4c;});}['_getTranslationKeyForListStyle'](_0x47d62b){return'ELEMENT_'+function(_0x11390b){if(pe['includes'](_0x11390b))return'bulleted';if(ye['includes'](_0x11390b))return'numbered';return null;}(_0x47d62b)['toUpperCase']()+'_LIST_'+_0x47d62b['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x5031ea{static get['requires'](){return[_0x394f73];}['init'](){const _0x305575=this['editor'],_0x32daf4=_0x305575['plugins']['get']('TrackChangesEditing'),_0x40c201=_0x305575['commands']['get']('enter');_0x32daf4['enableCommand']('enter',()=>{_0x305575['model']['change'](_0x288898=>{const _0x322bc6=_0x305575['model']['document']['selection'],_0x5e1240=_0x322bc6['getFirstPosition'](),_0x58ee9b=_0x108983['fromRange'](_0x322bc6['getFirstRange']());if(_0x40c201['enterBlock'](_0x288898)){const _0x2dfbad=_0x305575['model']['createPositionAt'](_0x5e1240['parent']['nextSibling'],0x0),_0xc0d7d7=_0x288898['createRange'](_0x5e1240,_0x2dfbad);_0x32daf4['markInsertion'](_0xc0d7d7);}else _0x288898['setSelection'](_0x288898['createRange'](_0x58ee9b['end']));_0x58ee9b['detach'](),_0x40c201['fire']('afterExecute',{'writer':_0x288898});});}),_0x305575['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x305575,'split'),{'priority':'high'}),_0x305575['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1c4bb5,_0xb1ebd8,_0x4cde04)=>{const _0x5efd63=_0x4cde04['mapper']['markerNameToElements'](_0xb1ebd8['markerName']);if(_0x5efd63){for(const _0x21d3ad of _0x5efd63)_0x21d3ad['hasClass']('ck-suggestion-marker-split')&&(_0x4cde04['mapper']['unbindElementFromMarkerName'](_0x21d3ad,_0xb1ebd8['markerName']),_0x4cde04['writer']['remove'](_0x21d3ad));}},{'priority':'high'}),_0x305575['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x40725f,_0xe4dce7,_0x5ed868)=>{_0x5ed868['options']['showSuggestionHighlights']&&_e(_0x305575,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x40725f,_0xe4dce7,_0x5ed868);},{'priority':'high'});}}class J extends _0x5031ea{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3a7cf2=this['editor']['plugins']['get']('TrackChangesEditing');_0x3a7cf2['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3a7cf2['enableCommand']('findNext'),_0x3a7cf2['enableCommand']('findPrevious'),_0x3a7cf2['enableCommand']('replace'),_0x3a7cf2['enableCommand']('replaceAll');}['handleFindCommand'](_0x1f16d7,_0x2fcad0,_0x444624={}){const _0x2f5bae=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1f16d7(_0x5e0ec6=>{let _0x590be3=('string'==typeof _0x2fcad0?_0x2f5bae['findByTextCallback'](_0x2fcad0,_0x444624):_0x2fcad0)(_0x5e0ec6);Array['isArray'](_0x590be3)&&(_0x590be3={'results':_0x590be3,'searchText':'string'==typeof _0x2fcad0?_0x2fcad0:''});const _0x204202=_0x590be3['results']['filter'](_0x259aae=>!0x1===this['_isInDeletionRange'](_0x259aae,_0x5e0ec6['item']));return{..._0x590be3,'results':_0x204202};},_0x444624);}['_isInDeletionRange'](_0x217a56,_0x553b4f){const _0x5ab78a=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x553b4f,_0x217a56['start']),this['editor']['model']['createPositionAt'](_0x553b4f,_0x217a56['end']));for(const _0x49b2fe of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5ab78a['getIntersection'](_0x49b2fe['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x5031ea{['afterInit'](){const _0x1f9b98=this['editor']['locale'],_0x329386=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5c800c,commandName:_0x4eff9c}of ro)this['editor']['plugins']['has'](_0x5c800c)&&(_0x329386['enableDefaultAttributesIntegration'](_0x4eff9c),_0x329386['registerInlineAttribute'](_0x4eff9c));_0x329386['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1f9b98,'FORMAT_FONT_SIZE')),_0x329386['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1f9b98,'FORMAT_FONT_FAMILY')),_0x329386['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1f9b98,'FORMAT_FONT_COLOR')),_0x329386['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1f9b98,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5bdd8c=this['editor'],_0x23d1b7=_0x5bdd8c['locale'];_0x5bdd8c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1558f7=>{const _0x174f72=_0x23d1b7['t'];if('formatInline'!=_0x1558f7['type'])return;const {data:_0x2bb5c2}=_0x1558f7;if(null!=_0x2bb5c2){if('fontSize'==_0x2bb5c2['commandName']){const _0x396e67=_0x2bb5c2['commandParams'][0x0]['value'];if(_0x396e67){const _0x275557=_0x174f72(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x12d17e=>_0x12d17e['model']==_0x396e67)['title'])['toLowerCase']();return{'type':'format','content':o(_0x23d1b7,'*Set\x20font\x20size:*\x20%0',_0x275557)};}return{'type':'format','content':o(_0x23d1b7,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2bb5c2['commandName']){const _0x9a4a5b=_0x2bb5c2['commandParams'][0x0]['value'];return _0x9a4a5b?{'type':'format','content':o(_0x23d1b7,'*Set\x20font\x20family:*\x20%0',_0x9a4a5b)}:{'type':'format','content':o(_0x23d1b7,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2bb5c2['commandName']){const _0x1503d9=_0x2bb5c2['commandParams'][0x0]['value'];if(_0x1503d9){const _0xac51ba=_0x3cb264(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3fc364=>_0x3fc364['model']==_0x1503d9);let _0x2026a9=_0x1503d9,_0x30eeee='';return _0xac51ba&&(_0x2026a9=_0xac51ba['label'],_0x30eeee=_0x174f72(_0x2026a9)['toLowerCase']()),{'type':'format','content':o(_0x23d1b7,'*Set\x20font\x20color:*\x20%0',_0x30eeee)['trim'](),'color':{'value':_0x1503d9,'title':_0x30eeee||_0x2026a9}};}return{'type':'format','content':o(_0x23d1b7,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2bb5c2['commandName']){const _0x3e2529=_0x2bb5c2['commandParams'][0x0]['value'];if(_0x3e2529){const _0x404cb3=_0x3cb264(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5989f1=>_0x5989f1['model']==_0x3e2529);let _0x43f015=_0x3e2529,_0x4b46b7='';return _0x404cb3&&(_0x43f015=_0x404cb3['label'],_0x4b46b7=_0x174f72(_0x43f015)['toLowerCase']()),{'type':'format','content':o(_0x23d1b7,'*Set\x20font\x20background\x20color:*\x20%0',_0x4b46b7)['trim'](),'color':{'value':_0x3e2529,'title':_0x4b46b7||_0x43f015}};}return{'type':'format','content':o(_0x23d1b7,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x5031ea{['afterInit'](){const _0x1ad831=this['editor'],_0x46d2e5=_0x1ad831['plugins']['get']('TrackChangesEditing'),_0x1158ab=_0x1ad831['commands']['get']('copyFormat'),_0x26b62a=_0x1ad831['commands']['get']('pasteFormat');_0x1158ab&&_0x26b62a&&(_0x46d2e5['enableDefaultAttributesIntegration']('pasteFormat'),_0x46d2e5['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5b82cd=this['editor'],_0xaa0135=_0x5b82cd['locale'];_0x5b82cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xae0f7e=>{if('formatBlock'!=_0xae0f7e['type']&&'formatInline'!=_0xae0f7e['type'])return;const {data:_0x4998ec}=_0xae0f7e;if(_0x4998ec&&'pasteFormat'===_0x4998ec['commandName']){const _0x28f144=[],_0x5d1bb2=_0x4998ec['commandParams'][0x0];for(const [_0x43e191,_0x5e628b]of Object['entries'](_0x5d1bb2))_0x28f144['push'](so(_0x5b82cd,_0x43e191,_0x5e628b));return _0x28f144['length']?{'type':'format','content':o(_0xaa0135,'*Set\x20format\x20to:*\x20%0',_0x28f144['join'](',\x20'))}:{'type':'format','content':o(_0xaa0135,'*Remove\x20all\x20formatting*')};}});}}function so(_0xd5d3ad,_0x386543,_0x40b82f){const _0x77aed1=_0xd5d3ad['locale']['t'],_0x3b10b7=_0x386543['split'](/(?=[A-Z])/)['join']('\x20'),_0x3c936b=_0x77aed1(_0x3b10b7['charAt'](0x0)['toUpperCase']()+_0x3b10b7['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x40b82f)return _0x3c936b;if('fontColor'===_0x386543||'fontBackgroundColor'===_0x386543){const _0x494b19=_0x3cb264(_0xd5d3ad['config']['get']('fontColor.colors'))['find'](_0x534368=>_0x534368['model']==_0x40b82f);return _0x3c936b+'\x20('+(_0x494b19?_0x77aed1(_0x494b19['label'])['toLowerCase']():_0x40b82f)+')';}if('fontSize'===_0x386543&&isNaN(parseFloat(_0x40b82f))){const _0x5dbe6e=_0xd5d3ad['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xd5d3ad['config']['get']('fontSize.options'))['find'](_0x5b842d=>_0x5b842d['model']==_0x40b82f);return _0x3c936b+'\x20('+(_0x5dbe6e?_0x77aed1(_0x5dbe6e['title'])['toLowerCase']():_0x40b82f)+')';}return _0x3c936b+'\x20('+_0x40b82f+')';}class Y extends _0x5031ea{['_headingOptions'];['afterInit'](){const _0x5c064f=this['editor'];if(!_0x5c064f['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5c064f['config']['get']('heading.options');const _0x3883e0=_0x5c064f['locale'],_0x2309ea=_0x5c064f['plugins']['get']('TrackChangesEditing');_0x2309ea['enableDefaultAttributesIntegration']('heading');for(const _0x4451a5 of this['_headingOptions'])'paragraph'!=_0x4451a5['model']&&_0x2309ea['descriptionFactory']['registerElementLabel'](_0x4451a5['model'],_0x292f54=>{const _0xb261d2=this['_getHeadingLevel'](_0x4451a5['model']);return null!==_0xb261d2?_0x2e7e31(_0x292f54,_0xb261d2):_0x32b5dd(_0x292f54,_0x4451a5['title']);});function _0x2e7e31(_0x32573c,_0x3acc11){return o(_0x3883e0,'ELEMENT_HEADING',[_0x32573c,_0x3acc11]);}function _0x32b5dd(_0x5e04af,_0x3df1e1){return o(_0x3883e0,'ELEMENT_HEADING_CUSTOM',[_0x5e04af,_0x3df1e1]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1fe408=this['editor'],_0xd146fb=_0x1fe408['locale'];function _0x4f3801(_0x4d7e6d,_0x570b4f){return o(_0xd146fb,'ELEMENT_HEADING_CUSTOM',[_0x4d7e6d,_0x570b4f]);}_0x1fe408['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x421eb1=>{if('formatBlock'!=_0x421eb1['type'])return;const {data:_0x280bad}=_0x421eb1;if(_0x280bad&&'heading'==_0x280bad['commandName']){const _0x3ceb28=_0x280bad['commandParams'][0x0]['value'],_0x1c9d07=this['_getHeadingLevel'](_0x3ceb28);if(null!==_0x1c9d07)return{'type':'format','content':o(_0xd146fb,'*Change\x20to:*\x20%0',(_0x4336d0=0x1,_0x5abe1c=_0x1c9d07,o(_0xd146fb,'ELEMENT_HEADING',[_0x4336d0,_0x5abe1c])))};const _0x43ee74=this['_headingOptions']['find'](_0x5ae289=>_0x5ae289['model']===_0x3ceb28)['title'];return{'type':'format','content':o(_0xd146fb,'*Change\x20to:*\x20%0',_0x4f3801(0x1,_0x43ee74))};}var _0x4336d0,_0x5abe1c;});}['_getHeadingLevel'](_0x28f308){const _0x410677=_0x28f308['match'](/^heading(\d+)/);if(_0x410677)return _0x410677[0x1];const _0x5753de=this['_headingOptions']?.['find'](_0x25b480=>_0x25b480['model']==_0x28f308);if(_0x5753de&&_0x5753de['view']){const _0xbfb8f8=_0x5753de['view'],_0x442198=(_0xbfb8f8['name']??_0xbfb8f8)['match'](/^h(\d+)/);if(_0x442198)return _0x442198[0x1];}return null;}}class Z extends _0x5031ea{['afterInit'](){const _0xae90e7=this['editor'];if(!_0xae90e7['plugins']['has']('HighlightEditing'))return;const _0x3a8bf2=_0xae90e7['plugins']['get']('TrackChangesEditing'),_0x2f2589=_0xae90e7['locale'];_0x3a8bf2['enableDefaultAttributesIntegration']('highlight'),_0x3a8bf2['registerInlineAttribute']('highlight'),_0x3a8bf2['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2f2589,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x271c8f=this['editor'],_0x584d13=_0x271c8f['locale'];_0x271c8f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x553c6e=>{if('formatInline'!=_0x553c6e['type'])return;const {data:_0x5b2009}=_0x553c6e;if(_0x5b2009&&'highlight'==_0x5b2009['commandName']){const _0x1000a0=_0x584d13['t'],_0x3af2aa=_0x5b2009['commandParams'][0x0]['value'];if(_0x3af2aa){const _0x3c4557=_0x271c8f['config']['get']('highlight.options')['find'](_0x3c2a4c=>_0x3c2a4c['model']==_0x3af2aa),_0x4d11ee=_0x1000a0(_0x3c4557['title'])['toLowerCase']();return{'type':'format','content':o(_0x584d13,'*Set\x20highlight:*\x20%0',_0x4d11ee),'color':{'value':_0x3c4557['color'],'title':_0x3c4557['title']}};}return{'type':'format','content':o(_0x584d13,'*Remove\x20highlight*',o(_0x584d13,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x5031ea{['afterInit'](){const _0x3912b6=this['editor'];if(!_0x3912b6['plugins']['has']('HorizontalLineEditing'))return;_0x3912b6['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x563209=_0x3912b6['plugins']['get']('TrackChangesEditing'),_0x10e870=_0x3912b6['locale'];_0x563209['descriptionFactory']['registerElementLabel']('horizontalLine',_0x130978=>o(_0x10e870,'ELEMENT_HORIZONTAL_LINE',_0x130978)),_0x3912b6['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x6db7b3,{writer:_0x2df481,options:_0x59cda6})=>{if(!_0x59cda6['showSuggestionHighlights'])return null;const _0x111ceb=_0x2df481['createContainerElement']('div'),_0x193316=_0x2df481['createEmptyElement']('hr');return _0x2df481['addClass']('ck-horizontal-line',_0x111ceb),_0x2df481['insert'](_0x2df481['createPositionAt'](_0x111ceb,0x0),_0x193316),_0x111ceb;},'converterPriority':'high'});}}class et extends _0x5031ea{['afterInit'](){const _0x52bfc2=this['editor'];if(!_0x52bfc2['plugins']['has']('HtmlEmbed'))return;const _0x582082=_0x52bfc2['plugins']['get']('TrackChangesEditing'),_0x2fa024=_0x52bfc2['locale'];_0x582082['descriptionFactory']['registerElementLabel']('rawHtml',_0x131f72=>o(_0x2fa024,'ELEMENT_HTML_EMBED',_0x131f72)),_0x582082['enableDefaultAttributesIntegration']('htmlEmbed'),_0x582082['registerBlockAttribute']('value'),_0x582082['descriptionFactory']['registerDescriptionCallback'](_0xaa62d3=>{if('attribute'!=_0xaa62d3['type'])return;const {data:_0x4f7772}=_0xaa62d3;if(_0x4f7772&&'value'==_0x4f7772['key']&&_0xaa62d3['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x243a27=o(_0x2fa024,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2fa024,'*Change\x20%0\x20content*',_0x243a27)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4df5c9=this['editor'],_0x5a35dd=_0x4df5c9['locale'];_0x4df5c9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2355f5=>{if('formatBlock'!=_0x2355f5['type'])return;const {data:_0x33f547}=_0x2355f5;if(_0x33f547&&'htmlEmbed'==_0x33f547['commandName']){const _0x110e5b=o(_0x5a35dd,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5a35dd,'*Change\x20%0\x20content*',_0x110e5b)};}});}}class it extends _0x5031ea{['afterInit'](){const _0x598006=this['editor'];if(!_0x598006['plugins']['has']('ImageEditing'))return;const _0x429004=_0x598006['plugins']['get']('TrackChangesEditing'),_0x254718=_0x598006['plugins']['get']('ImageUtils'),_0x358230=_0x598006['locale'];_0x429004['enableCommand']('insertImage'),_0x429004['descriptionFactory']['registerElementLabel']('imageBlock',_0xcd0e03=>o(_0x358230,'ELEMENT_IMAGE',_0xcd0e03)),_0x429004['descriptionFactory']['registerElementLabel']('imageInline',_0x30ca98=>o(_0x358230,'ELEMENT_INLINE_IMAGE',_0x30ca98)),_0x429004['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x358230,'ELEMENT_CAPTION')),_0x598006['plugins']['has']('ImageUploadEditing')&&_0x429004['enableCommand']('uploadImage'),_0x598006['plugins']['has']('ImageBlockEditing')&&_0x598006['plugins']['has']('ImageInlineEditing')&&(_0x429004['enableCommand']('imageTypeInline',(_0x115994,_0x293dd3)=>{const _0x2716c1=_0x254718['getClosestSelectedImageElement'](_0x598006['model']['document']['selection']);_0x598006['model']['change'](()=>{_0x429004['markBlockFormat'](_0x2716c1,{'commandName':'imageTypeInline','commandParams':[_0x293dd3]},[],'convertBlockImageToInline');});}),_0x429004['enableCommand']('imageTypeBlock',(_0x299e0e,_0x35a9ed)=>{_0x598006['model']['change'](_0x58e9d1=>{let _0x17080a=_0x254718['getClosestSelectedImageElement'](_0x598006['model']['document']['selection']),_0x479159=_0x58e9d1['createRangeOn'](_0x17080a);const _0x3169d7=_0x215307['fromPosition'](_0x479159['start'],'toPrevious'),_0x1a90d3=_0x215307['fromPosition'](_0x479159['end'],'toNext');_0x429004['forceDefaultExecution'](()=>_0x299e0e(_0x35a9ed)),_0x17080a=_0x254718['getClosestSelectedImageElement'](_0x598006['model']['document']['selection']),_0x479159=_0x58e9d1['createRangeOn'](_0x17080a);const _0x2cd5c7=_0x58e9d1['createRange'](_0x3169d7,_0x1a90d3);_0x3169d7['detach'](),_0x1a90d3['detach'](),_0x429004['markBlockFormat'](_0x17080a,{'commandName':'imageTypeInline','commandParams':[_0x35a9ed]},[],'convertInlineImageToBlock'),_0x2cd5c7['start']['isBefore'](_0x479159['start'])&&_0x429004['markInsertion'](_0x58e9d1['createRange'](_0x2cd5c7['start'],_0x479159['start']),'convertInlineImageToBlock'),_0x479159['end']['isBefore'](_0x2cd5c7['end'])&&_0x429004['markInsertion'](_0x58e9d1['createRange'](_0x479159['end'],_0x2cd5c7['end']),'convertInlineImageToBlock');});}),_0x429004['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x429004['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x429004['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x429004['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x429004['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x429004['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x42f584])=>{const _0x36ac92=_0x429004['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5cb381=_0x42f584['start'],_0x15c6a2=_0x42f584['end'];const _0x356572=_0x598006['model']['schema']['getNearestSelectionRange'](_0x5cb381,'backward'),_0x4e006b=_0x598006['model']['schema']['getNearestSelectionRange'](_0x15c6a2,'forward');_0x356572['isCollapsed']&&(_0x5cb381=_0x356572['start']),_0x4e006b['isCollapsed']&&(_0x15c6a2=_0x4e006b['end']),_0x36ac92([_0x598006['model']['createRange'](_0x5cb381,_0x15c6a2)]);}),_0x429004['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xbc4741),_0x429004['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xbc4741)),_0x598006['plugins']['has']('ImageCaptionEditing')&&(_0x429004['enableCommand']('toggleImageCaption',(_0x5e5495,_0x5efe74)=>{const _0x521102=_0x598006['plugins']['get']('ImageCaptionUtils');let _0x451c2d=_0x254718['getClosestSelectedImageElement'](_0x598006['model']['document']['selection']),_0x4b7300=_0x521102['getCaptionFromImageModelElement'](_0x451c2d);_0x598006['model']['change'](()=>{if(_0x4b7300)return void _0x429004['markDeletion'](_0x598006['model']['createRangeOn'](_0x4b7300));const _0x50a96b=_0x254718['isBlockImage'](_0x451c2d);_0x5e5495(_0x5efe74),_0x451c2d=_0x254718['getClosestSelectedImageElement'](_0x598006['model']['document']['selection']),_0x4b7300=_0x521102['getCaptionFromImageModelElement'](_0x451c2d),_0x429004['markInsertion'](_0x598006['model']['createRangeOn'](_0x4b7300),_0x50a96b?null:'imageCaption');});}),_0x429004['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xbc4741));const _0x91de49=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4c02eb(_0x14a4aa,_0x39acb0){const _0x2affa4=_0x91de49['findIndex'](({type:_0x179267,subType:_0x502c8a})=>_0x14a4aa['type']==_0x179267&&_0x14a4aa['subType']==_0x502c8a),_0x150151=_0x91de49['findIndex'](({type:_0x1647e3,subType:_0x2fddd6})=>_0x39acb0['type']==_0x1647e3&&_0x39acb0['subType']==_0x2fddd6);if(_0x2affa4<0x0||_0x150151<0x0)return!0x1;const _0x155dd6=_0x14a4aa['getFirstRange'](),_0x1f9e83=_0x39acb0['getFirstRange']();if((0x0==_0x2affa4||0x1==_0x2affa4)&&0x2==_0x150151&&_0x155dd6['isIntersecting'](_0x1f9e83))return!0x0;if(0x2==_0x2affa4&&0x3==_0x150151){const _0x3892a9=_0x429004['_findSuggestions'](_0x155dd6,'insertion')['filter'](({suggestion:_0x49c5cd,meta:_0x2611b0})=>_0x2611b0['isOwn']&&'convertInlineImageToBlock'==_0x49c5cd['subType']);if(_0x3892a9['length']>0x1&&_0x1f9e83['end']['isEqual'](_0x155dd6['start']))return!0x0;if(0x1==_0x3892a9['length']&&(_0x155dd6['start']['isEqual'](_0x1f9e83['end'])||_0x155dd6['end']['isEqual'](_0x1f9e83['start'])))return!0x0;}if(0x3==_0x2affa4&&0x3==_0x150151&&_0x155dd6['start']['isBefore'](_0x1f9e83['start'])){const _0x4c75a0=_0x155dd6['end']['nodeAfter'],_0x2d29a3=_0x1f9e83['start']['nodeBefore'];return _0x254718['isBlockImage'](_0x4c75a0)&&_0x4c75a0===_0x2d29a3;}return!0x1;}function _0xbc4741(_0x116d6f,_0x5c1ca0){return _0x4c02eb(_0x116d6f,_0x5c1ca0)?[_0x116d6f,_0x5c1ca0]:_0x4c02eb(_0x5c1ca0,_0x116d6f)?[_0x5c1ca0,_0x116d6f]:null;}_0x598006['plugins']['has']('ImageResize')&&(_0x429004['enableDefaultAttributesIntegration']('resizeImage'),_0x429004['registerBlockAttribute']('resizedWidth'),_0x429004['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x358230,'FORMAT_IMAGE_SIZE'))),_0x598006['plugins']['has']('ImageTextAlternativeEditing')&&(_0x429004['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x429004['registerBlockAttribute']('alt')),_0x429004['descriptionFactory']['registerDescriptionCallback'](_0x1edaeb=>{if(!!_0x91de49['find'](({type:_0x53c662,subType:_0x444953})=>_0x1edaeb['type']==_0x53c662&&_0x1edaeb['subType']==_0x444953))return _0x1edaeb['previous']?{}:void 0x0;}),_0x429004['descriptionFactory']['registerDescriptionCallback'](_0x238d3f=>{if('insertion'==_0x238d3f['type']||'deletion'==_0x238d3f['type']){const _0x447517=_0x238d3f['getContainedElement']();if(_0x447517&&_0x447517['is']('element','caption'))return{'type':'insertion'==_0x238d3f['type']?'addObject':'removeObject','element':_0x447517,'quantity':0x1};}}),_0x429004['descriptionFactory']['registerDescriptionCallback'](_0x45a569=>'formatBlock'==_0x45a569['type']&&'convertInlineImageToBlock'==_0x45a569['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x45a569['type']&&'convertBlockImageToInline'==_0x45a569['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x429004['descriptionFactory']['registerDescriptionCallback'](_0x434707=>{if('attribute'!=_0x434707['type'])return;const {data:_0x92ee37}=_0x434707;if(!_0x92ee37||'alt'!=_0x92ee37['key'])return;const _0xf696ee=_0x92ee37['newValue'];return _0xf696ee?{'type':'format','content':o(_0x358230,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xf696ee+'\x22')}:{'type':'format','content':o(_0x358230,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x414135=this['editor'],_0x49a705=_0x414135['locale'];_0x414135['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f4365=>{if('formatBlock'!=_0x2f4365['type']&&'formatInline'!=_0x2f4365['type'])return;const {data:_0x28376b}=_0x2f4365;if(_0x28376b){if('imageTextAlternative'==_0x28376b['commandName']){const _0x2ad9d7=_0x28376b['commandParams'][0x0]['newValue'];return _0x2ad9d7?{'type':'format','content':o(_0x49a705,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2ad9d7+'\x22')}:{'type':'format','content':o(_0x49a705,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x28376b['commandName']){const _0x13fc49=_0x28376b['commandParams'][0x0]['width'];return _0x13fc49?{'type':'format','content':o(_0x49a705,'*Set\x20image\x20width:*\x20%0',_0x13fc49)}:{'type':'format','content':o(_0x49a705,'*Reset\x20image\x20width*')};}}});}}class st extends _0x5031ea{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x116e8=this['editor']['locale'],_0x36928d=this['editor']['plugins']['get']('TrackChangesEditing');_0x36928d['enableDefaultAttributesIntegration']('replaceImageSource'),_0x36928d['registerBlockAttribute']('src'),_0x36928d['descriptionFactory']['registerDescriptionCallback'](_0x35d2e4=>{if('attribute'!=_0x35d2e4['type'])return;const {data:_0x54cbfe}=_0x35d2e4;return _0x54cbfe&&'src'==_0x54cbfe['key']?_0x54cbfe['newValue']&&_0x54cbfe['oldValue']?{'type':'format','content':o(_0x116e8,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1fc89b=this['editor']['plugins']['get']('TrackChangesEditing');_0x1fc89b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1fc89b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1fc89b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1fc89b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x152b75=this['editor'],_0xb65b86=_0x152b75['locale'];_0x152b75['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe7b547=>{if('formatBlock'!=_0xe7b547['type']&&'formatInline'!=_0xe7b547['type'])return;const {data:_0x1d22d5}=_0xe7b547;if(!_0x1d22d5||'replaceImageSource'!=_0x1d22d5['commandName'])return;return{'type':'format','content':o(_0xb65b86,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x5031ea{['afterInit'](){const _0x1d339e=this['editor'];if(!_0x1d339e['plugins']['has']('ImageStyleEditing'))return;const _0x3939c8=_0x1d339e['plugins']['get']('TrackChangesEditing'),_0x52b7ec=_0x1d339e['plugins']['get']('ImageUtils'),_0x3c5975={};_0x3939c8['enableCommand']('imageStyle',(_0x279422,_0x229ed5)=>{const _0x20d6cc=_0x1d339e['plugins']['get']('Users')['me'],_0x2c01e5=_0x1d339e['commands']['get']('imageStyle');let _0x5b922b=_0x52b7ec['getClosestSelectedImageElement'](_0x1d339e['model']['document']['selection']),_0x1d5843=_0x1d339e['model']['createRangeOn'](_0x5b922b),_0x284f3d=_0x2c01e5['value'];if(_0x284f3d==_0x229ed5['value'])return;const _0x105f66={'commandName':'imageStyle','commandParams':[_0x229ed5],'formatGroupId':_0x9738cc()};_0x1d339e['model']['change'](()=>{if(_0x3939c8['getSuggestions']()['filter'](_0x5261d4=>_0x5261d4['isInContent']&&_0x20d6cc==_0x5261d4['author']&&('formatBlock'==_0x5261d4['type']||'formatInline'==_0x5261d4['type'])&&('imageStylePreApply'==_0x5261d4['subType']||'imageStylePostApply'==_0x5261d4['subType'])&&_0x5261d4['getFirstRange']()['isEqual'](_0x1d5843))['forEach'](_0x40f2ff=>_0x3939c8['discardSuggestion'](_0x40f2ff['head'])),_0x5b922b=_0x52b7ec['getClosestSelectedImageElement'](_0x1d339e['model']['document']['selection']),_0x1d5843=_0x1d339e['model']['createRangeOn'](_0x5b922b),_0x2c01e5['refresh'](),_0x1d339e['commands']['get']('imageTypeInline')['refresh'](),_0x1d339e['commands']['get']('imageTypeBlock')['refresh'](),_0x284f3d=_0x2c01e5['value'],_0x284f3d!=_0x229ed5['value'])return _0x52b7ec['isInlineImage'](_0x5b922b)&&_0x2c01e5['shouldConvertImageType'](_0x229ed5['value'],_0x5b922b)?(_0x279422({..._0x229ed5,'setImageSizes':!0x1}),_0x5b922b=_0x52b7ec['getClosestSelectedImageElement'](_0x1d339e['model']['document']['selection']),void _0x3939c8['markBlockFormat'](_0x5b922b,{..._0x105f66,'commandReversedParams':[{'value':_0x284f3d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x52b7ec['isBlockImage'](_0x5b922b)?_0x3939c8['markBlockFormat'](_0x5b922b,_0x105f66,[],'imageStylePostApply'):_0x3939c8['markInlineFormat'](_0x1d5843,_0x105f66,'imageStylePostApply'));});});for(const _0x3f765a of _0x1d339e['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3c5975[_0x3f765a['name']]=_0x3f765a['title']['toLowerCase']();_0x3939c8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3939c8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3939c8['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3939c8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x521399])=>{_0x52b7ec['setImageNaturalSizeAttributes'](_0x521399['getContainedElement']());}),_0x3939c8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5ed077,_0x4946f4)=>{_0x3939c8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5ed077,{'commandName':_0x4946f4['commandName'],'commandParams':_0x4946f4['commandReversedParams']});}),_0x3939c8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x20ee4b,_0x1bd567){if(_0x456bb3(_0x20ee4b,_0x1bd567))return[_0x20ee4b,_0x1bd567];if(_0x456bb3(_0x1bd567,_0x20ee4b))return[_0x1bd567,_0x20ee4b];return null;});const _0x1b43ca=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x456bb3(_0x21619c,_0x39a453){const _0x5e0264=_0x1b43ca['findIndex'](({type:_0x6035f8,subType:_0x63b130})=>_0x21619c['type']==_0x6035f8&&_0x21619c['subType']==_0x63b130),_0x46d113=_0x1b43ca['findIndex'](({type:_0x2c7e36,subType:_0x572c68})=>_0x39a453['type']==_0x2c7e36&&_0x39a453['subType']==_0x572c68);if(_0x5e0264<0x0||_0x46d113<0x0)return!0x1;const _0x49cb44=_0x21619c['getFirstRange'](),_0x8cd733=_0x39a453['getFirstRange']();if((0x0==_0x5e0264||0x1==_0x5e0264)&&0x2==_0x46d113&&_0x49cb44['isIntersecting'](_0x8cd733))return!0x0;if(0x2==_0x5e0264&&0x3==_0x46d113){const _0x5cf86d=_0x3939c8['_findSuggestions'](_0x49cb44,'insertion')['filter'](({suggestion:_0x40ddae,meta:_0x51fd81})=>_0x51fd81['isOwn']&&'convertInlineImageToBlock'==_0x40ddae['subType']);if(_0x5cf86d['length']>0x1&&_0x8cd733['end']['isEqual'](_0x49cb44['start']))return!0x0;if(0x1==_0x5cf86d['length']&&(_0x49cb44['start']['isEqual'](_0x8cd733['end'])||_0x49cb44['end']['isEqual'](_0x8cd733['start'])))return!0x0;}if(0x3==_0x5e0264&&0x3==_0x46d113&&_0x49cb44['start']['isBefore'](_0x8cd733['start'])){const _0x314827=_0x49cb44['end']['nodeAfter'],_0x3594fa=_0x8cd733['start']['nodeBefore'];return _0x52b7ec['isBlockImage'](_0x314827)&&_0x314827===_0x3594fa;}return!0x1;}_0x1d339e['model']['document']['registerPostFixer'](()=>{let _0x2dd8be=!0x1;const _0x576b42=Array['from'](_0x1d339e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5568b6,data:_0x52d24f}of _0x576b42){const {group:_0x143794,type:_0x59b367,subType:_0x5a6232,id:_0x37c556}=_0x3939c8['_splitMarkerName'](_0x5568b6);if('suggestion'==_0x143794&&_0x3939c8['hasSuggestion'](_0x37c556)){if('formatBlock'==_0x59b367&&('imageStylePreApply'==_0x5a6232||'imageStylePostApply'==_0x5a6232)){const _0x15086d=_0x3939c8['getSuggestion'](_0x37c556);if(_0x52d24f['newRange']){const _0x3929f1=_0x15086d['getFirstRange']()['getContainedElement']();if(_0x52b7ec['isBlockImage'](_0x3929f1))continue;_0x3939c8['discardSuggestion'](_0x15086d),_0x2dd8be=!0x0;}}if('insertion'==_0x59b367&&'imageCaption'==_0x5a6232&&!_0x52d24f['newRange']){const _0x2a6ad5=_0x3939c8['getSuggestion'](_0x37c556);_0x2a6ad5['next']&&_0x2a6ad5['next']['isInContent']&&(_0x3939c8['discardSuggestion'](_0x2a6ad5['next']),_0x2dd8be=!0x0);}}}return _0x2dd8be;}),this['_registerLegacyDescription'](_0x3c5975);}['_registerLegacyDescription'](_0xef67f9){const _0x1528a4=this['editor'],_0x32b0fa=_0x1528a4['locale'];_0x1528a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f18ca=>{if('formatBlock'!=_0x2f18ca['type']&&'formatInline'!=_0x2f18ca['type'])return;const {data:_0x18d3bc}=_0x2f18ca;if(!_0x18d3bc||'imageStyle'!=_0x18d3bc['commandName'])return;const _0x4020f0=_0x18d3bc['commandParams'][0x0]['value'];return _0x3c4a69('side'===_0x4020f0?o(_0x32b0fa,'FORMAT_SIDE_IMAGE'):_0xef67f9[_0x4020f0]||_0x4020f0);function _0x3c4a69(_0x53daf4){return{'type':'format','content':o(_0x32b0fa,'*Format:*\x20%0',_0x53daf4)};}});}}class ot extends _0x5031ea{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xcb6e98){super(_0xcb6e98),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1cee3e=this['editor'],_0x661d75=_0x1cee3e['commands']['get']('importWord'),_0x369a24=_0x1cee3e['commands']['get']('trackChanges');_0x661d75&&(_0x661d75['on']('execute',(_0x4e410c,[,_0x4dbd70])=>{this['_trackChangesValueDuringImport']=_0x369a24['value'],_0x4dbd70['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x661d75,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x661d75,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x369a24['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1cee3e['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x16a7fa,_0x6a7d2b){const {suggestions:_0x4aa1c1}=_0x6a7d2b,_0x4f33af=this['editor']['commands']['get']('trackChanges'),_0x78c3f8=_0x4f33af['value'];this['_trackChangesValueDuringImport']!==_0x78c3f8&&(_0x4f33af['execute'](),this['_trackChangesExecuted']=!0x0),_0x4aa1c1&&_0x4aa1c1['forEach'](({id:_0x1a1d1,type:_0x531242,author:_0x15c88b,created_at:_0x55efce})=>{const _0x52697d={'id':_0x1a1d1,'type':_0x531242,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x15c88b,'createdAt':_0x55efce?new Date(_0x55efce):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x52697d);});}}class rt extends _0x5031ea{['afterInit'](){const _0x3248f3=this['editor'],_0x1a000f=_0x3248f3['plugins']['get']('TrackChangesEditing');if(_0x3248f3['plugins']['has']('IndentEditing')&&(_0x1a000f['enableCommand']('indent'),_0x1a000f['enableCommand']('outdent')),_0x3248f3['plugins']['has']('IndentBlock')){for(const _0x426b5a of['indentBlock','outdentBlock'])_0x1a000f['enableDefaultAttributesIntegration'](_0x426b5a);}const _0x29b48c=_0x3248f3['locale'];_0x1a000f['registerBlockAttribute']('blockIndent'),_0x1a000f['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x29b48c,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f2f27=this['editor'],_0x5b553f=_0x3f2f27['locale'],_0x297271=_0x3f2f27['plugins']['get']('TrackChangesEditing');_0x297271['descriptionFactory']['registerDescriptionCallback'](_0x449d26=>{if('formatBlock'!=_0x449d26['type'])return;const {data:_0x2d85e9}=_0x449d26;if(!_0x2d85e9)return;if('indentBlock'!=_0x2d85e9['commandName']&&'outdentBlock'!=_0x2d85e9['commandName'])return;const _0x44af43=_0x449d26['getItems']()[0x0],_0x4ecc13=_0x297271['descriptionFactory']['getItemLabel'](_0x44af43);return'indentBlock'==_0x2d85e9['commandName']?{'type':'format','content':o(_0x5b553f,'*Indent:*\x20%0',_0x4ecc13)}:'outdentBlock'==_0x2d85e9['commandName']?{'type':'format','content':o(_0x5b553f,'*Outdent:*\x20%0',_0x4ecc13)}:void 0x0;});}}class at extends _0x5031ea{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x5031ea{['afterInit'](){const _0x15acf6=this['editor'];if(!_0x15acf6['plugins']['has']('LinkEditing'))return;const _0x574d6f=_0x15acf6['plugins']['get']('TrackChangesEditing'),_0x1f9f48=_0x15acf6['commands']['get']('link');_0x574d6f['enableDefaultAttributesIntegration']('link'),_0x574d6f['enableDefaultAttributesIntegration']('unlink'),_0x574d6f['registerInlineAttribute']('linkHref');for(const _0x20fd4b of _0x1f9f48['manualDecorators'])_0x574d6f['registerInlineAttribute'](_0x20fd4b['id']),_0x574d6f['descriptionFactory']['registerAttributeLabel'](_0x20fd4b['id'],'link\x20('+_0x20fd4b['label']['toLowerCase']()+')');_0x574d6f['descriptionFactory']['registerDescriptionCallback'](_0x3204c4=>{if('attribute'!=_0x3204c4['type'])return;const {data:_0x2f9035}=_0x3204c4;if(!_0x2f9035||'linkHref'!=_0x2f9035['key'])return;const _0x70a81c=_0x2f9035['newValue'],_0x6e5c5d=_0x15acf6['locale'];return{'type':'format','content':null==_0x70a81c?o(_0x6e5c5d,'*Remove\x20link*'):o(_0x6e5c5d,'*Set\x20link:*\x20%0','\x22'+_0x70a81c+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4aed0d=this['editor'],_0x4fff04=_0x4aed0d['locale'];_0x4aed0d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5481b5=>{if('formatInline'!=_0x5481b5['type'])return;const {data:_0x1ebd5b}=_0x5481b5;if(_0x1ebd5b){if('link'==_0x1ebd5b['commandName']){const _0x3f378b=_0x1ebd5b['commandParams'][0x0];return{'type':'format','content':o(_0x4fff04,'*Set\x20link:*\x20%0','\x22'+_0x3f378b+'\x22')};}return'unlink'==_0x1ebd5b['commandName']?{'type':'format','content':o(_0x4fff04,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x5031ea{['afterInit'](){const _0x1e56ee=this['editor'],_0x3cc4d6=_0x1e56ee['locale'];if(!_0x1e56ee['plugins']['has']('LegacyListEditing'))return;const _0x90fb13=_0x1e56ee['plugins']['get']('TrackChangesEditing'),_0x3e6e41=_0x1e56ee['plugins']['has']('LegacyTodoListEditing');function _0x3a4d2f(_0x2fce67){return()=>{const _0x29a16d=_0x1e56ee['model']['document']['selection'],_0x5bce67=_0x1e56ee['commands']['get'](_0x2fce67);if(_0x5bce67['value'])return void _0x1e56ee['execute']('paragraph',{});const _0x2a1207=_0x2fce67['slice'](0x0,-0x4),_0x37600f=function(_0x1afe2b,_0x4aa260,_0x1c71d3){let _0x148b0a=Array['from'](_0x1afe2b)['filter'](_0x44164d=>function(_0x3920c8,_0x4bda08){return _0x4bda08['checkChild'](_0x3920c8['parent'],'listItem')&&!_0x4bda08['isObject'](_0x3920c8);}(_0x44164d,_0x1c71d3));_0x148b0a=_0x148b0a['filter'](_0x10ea09=>!_0x10ea09['is']('element','listItem')||_0x10ea09['getAttribute']('listType')!=_0x4aa260);const _0x3eb0c1=new Set();for(const _0x2997c4 of _0x148b0a)_0x2997c4['is']('element','listItem')?_0x3eb0c1['add'](me(_0x2997c4)):_0x3eb0c1['add'](_0x2997c4);return Array['from'](_0x3eb0c1);}(_0x29a16d['getSelectedBlocks'](),_0x2a1207,_0x1e56ee['model']['schema']);_0x1e56ee['model']['change'](()=>{for(const _0x22ad4c of _0x37600f)_0x90fb13['markBlockFormat'](_0x22ad4c,{'commandName':_0x2fce67,'commandParams':[{'forceValue':!_0x5bce67['value']}],'formatGroupId':'blockName'},fe(_0x22ad4c));});};}function _0x38e464(_0x4d3cd5){return()=>{const _0x91cfca=function(_0x2a7a19){let _0x5397ed=Array['from'](_0x2a7a19);const _0xdfcaf4=_0x5397ed['findIndex'](_0x5f8283=>'listItem'!=_0x5f8283['name']);return _0xdfcaf4>-0x1&&(_0x5397ed=_0x5397ed['slice'](0x0,_0xdfcaf4)),_0x5397ed;}(_0x1e56ee['model']['document']['selection']['getSelectedBlocks']()),_0xb274f4=_0x1e56ee['model']['createRange'](_0x1e56ee['model']['createPositionAt'](_0x91cfca[0x0],'before'),_0x1e56ee['model']['createPositionAt'](_0x91cfca[_0x91cfca['length']-0x1],'end'));_0x1e56ee['model']['change'](()=>{_0x90fb13['markBlockFormat'](_0xb274f4,{'commandName':_0x4d3cd5,'commandParams':[],'formatGroupId':'listIndent'},function(_0x17ab93){const _0x11545c=new Set();for(const _0x44fb37 of _0x17ab93){let _0x19080d=_0x44fb37['nextSibling'];for(;_0x19080d&&_0x19080d['getAttribute']('listIndent')>_0x44fb37['getAttribute']('listIndent');)_0x11545c['add'](_0x19080d),_0x19080d=_0x19080d['nextSibling'];}return Array['from'](_0x11545c);}(_0x91cfca));});};}_0x90fb13['enableCommand']('numberedList',_0x3a4d2f('numberedList')),_0x90fb13['enableCommand']('bulletedList',_0x3a4d2f('bulletedList')),_0x3e6e41&&_0x90fb13['enableCommand']('todoList',_0x3a4d2f('todoList')),_0x90fb13['enableCommand']('indentList',_0x38e464('indentList')),_0x90fb13['enableCommand']('outdentList',_0x38e464('outdentList')),_0x3e6e41&&_0x90fb13['enableCommand']('checkTodoList',()=>{const _0x246ba3=_0x1e56ee['commands']['get']('checkTodoList'),_0x5643e7=Array['from'](_0x246ba3['_selectedElements']);_0x5643e7['filter'](_0x14bb8f=>_0x14bb8f['getAttribute']('todoListChecked')!=_0x246ba3['value']),_0x1e56ee['model']['change'](()=>{for(const _0x5ced5f of _0x5643e7)_0x90fb13['markBlockFormat'](_0x5ced5f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x246ba3['value']}]});});}),_0x90fb13['descriptionFactory']['registerElementLabel']('listItem',_0x2418c4=>o(_0x3cc4d6,'ELEMENT_LIST_ITEM',_0x2418c4)),_0x90fb13['descriptionFactory']['registerDescriptionCallback'](_0xd15812=>{if('formatBlock'!=_0xd15812['type']&&'formatInline'!=_0xd15812['type'])return;const {data:_0x1c4193}=_0xd15812;if(_0x1c4193){if('numberedList'==_0x1c4193['commandName']||'bulletedList'==_0x1c4193['commandName']||'todoList'==_0x1c4193['commandName'])switch(_0x1c4193['commandName']['replace']('List','')){case'bulleted':return _0x2206b8(o(_0x3cc4d6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2206b8(o(_0x3cc4d6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2206b8(o(_0x3cc4d6,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1c4193['commandName'])return{'type':'format','content':o(_0x3cc4d6,'*Indent:*\x20%0',o(_0x3cc4d6,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1c4193['commandName'])return{'type':'format','content':o(_0x3cc4d6,'*Outdent:*\x20%0',o(_0x3cc4d6,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1c4193['commandName'])return _0x1c4193['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3cc4d6,'*Check\x20item*')}:{'type':'format','content':o(_0x3cc4d6,'*Uncheck\x20item*')};}function _0x2206b8(_0x4effb4){return{'type':'format','content':o(_0x3cc4d6,'*Change\x20to:*\x20%0',_0x4effb4)};}});}}function me(_0x189d61){const _0x196b3e=_0x189d61['getAttribute']('listIndent');if(0x0==_0x196b3e)return _0x189d61;let _0x1de152=_0x189d61;for(;_0x189d61['previousSibling']&&_0x189d61['previousSibling']['is']('element','listItem');){const _0x4dbdaf=_0x189d61['previousSibling']['getAttribute']('listIndent');if(_0x4dbdaf==_0x196b3e)_0x1de152=_0x189d61['previousSibling'];else{if(_0x4dbdaf<_0x196b3e)break;}_0x189d61=_0x189d61['previousSibling'];}return _0x1de152;}function fe(_0x5c572f){const _0x22d37d=[];if(_0x5c572f['is']('element','listItem')&&_0x5c572f['getAttribute']('listIndent')>0x0){let _0x52c440=_0x5c572f['nextSibling'];for(;_0x52c440&&'listItem'==_0x52c440['name']&&_0x52c440['getAttribute']('listIndent')==_0x5c572f['getAttribute']('listIndent');)_0x22d37d['push'](_0x52c440),_0x52c440=_0x52c440['nextSibling'];}return _0x22d37d;}class K extends _0x5031ea{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4366c4=this['editor']['config']['get']('list.properties'),_0x812425=this['editor']['plugins']['get']('TrackChangesEditing');_0x4366c4['styles']&&_0x812425['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4366c4['reversed']&&_0x812425['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4366c4['startIndex']&&_0x812425['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x812425['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x466d7f,_0x4d92d5={}){const _0x3c0518=this['editor']['plugins']['get']('TrackChangesEditing'),_0xfb0768=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3c0518['markMultiRangeBlockFormat'](_0xfb0768,{'commandName':'listStyle','commandParams':[{'type':_0x4d92d5['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x41db24,_0x42392d={}){const _0x5dd92d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x474964=this['_getSuggestionBlocks'](_0x5e23e9=>_0x5e23e9['is']('element','listItem')&&'numbered'===_0x5e23e9['getAttribute']('listType'));if(_0x474964['length']<0x1)return;const _0x1ed604=_0x474964['map'](_0x3e9638=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3e9638,'before'),this['editor']['model']['createPositionAt'](_0x3e9638,0x0)));this['editor']['model']['change'](()=>{_0x5dd92d['markMultiRangeBlockFormat'](_0x1ed604,{'commandName':'listReversed','commandParams':[{'reversed':_0x42392d['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5b101d,_0x1fcb88={}){const _0x47b0e1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b8263=this['_getSuggestionBlocks'](_0x2898b0=>_0x2898b0['is']('element','listItem')&&'numbered'===_0x2898b0['getAttribute']('listType'));if(_0x4b8263['length']<0x1)return;const _0x48d4d5=_0x4b8263['map'](_0x555194=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x555194,'before'),this['editor']['model']['createPositionAt'](_0x555194,0x0)));this['editor']['model']['change'](()=>{_0x47b0e1['markMultiRangeBlockFormat'](_0x48d4d5,{'commandName':'listStart','commandParams':[{'startIndex':_0x1fcb88['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x17aa9f){if('formatBlock'!=_0x17aa9f['type']&&'formatInline'!=_0x17aa9f['type'])return;const _0x25fe12=this['editor']['locale'],{data:_0x4fd1a8}=_0x17aa9f;if(!_0x4fd1a8)return;let _0x2e99fb,_0x499c39;switch(_0x4fd1a8['commandName']){case'listStyle':_0x2e99fb='*Change\x20to:*\x20%0',_0x499c39={'type':'format','content':o(_0x25fe12,_0x2e99fb,o(_0x25fe12,this['_getTranslationKeyForListStyle'](_0x4fd1a8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2e99fb=_0x4fd1a8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x499c39={'type':'format','content':o(_0x25fe12,_0x2e99fb)};break;case'listStart':_0x2e99fb='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x499c39={'type':'format','content':o(_0x25fe12,_0x2e99fb,_0x4fd1a8['commandParams'][0x0]['startIndex'])};}return _0x499c39;}['_getSuggestionBlocksForListStyle'](){const _0x169fdd=this['editor']['plugins']['get']('LegacyListUtils');let _0x419c72=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x419c72[0x0]?.['is']('element','listItem')&&_0x419c72['unshift'](..._0x169fdd['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x419c72[_0x419c72['length']-0x1]?.['is']('element','listItem')&&_0x419c72['push'](..._0x169fdd['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x419c72=[...new Set(_0x419c72)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x419c72=_0x419c72['filter'](_0xebad21=>_0xebad21['is']('element','listItem'))),_0x419c72;}['_getSuggestionBlocks'](_0x1c35f1){const _0x12f907=this['editor']['plugins']['get']('LegacyListUtils');let _0x36cba4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1c35f1)['map'](_0x403aa0=>{const _0x40f610=this['editor']['model']['createPositionAt'](_0x403aa0,0x0);return[..._0x12f907['getSiblingNodes'](_0x40f610,'backward'),..._0x12f907['getSiblingNodes'](_0x40f610,'forward')];})['flat']();return _0x36cba4=[...new Set(_0x36cba4)],_0x36cba4;}['_getTranslationKeyForListStyle'](_0x197e72){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x197e72)||'default')['toUpperCase']()+'_LIST_'+_0x197e72['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x5031ea{['afterInit'](){const _0x188353=this['editor'];if(!_0x188353['plugins']['has']('MediaEmbedEditing'))return;const _0x46da56=_0x188353['plugins']['get']('TrackChangesEditing'),_0x58c9e0=_0x188353['locale'];_0x46da56['enableCommand']('mediaEmbed'),_0x46da56['descriptionFactory']['registerElementLabel']('media',_0x52cf6a=>o(_0x58c9e0,'ELEMENT_MEDIA',_0x52cf6a)),_0x188353['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3a7ca1,{writer:_0xdfbf09,options:_0x50c9f7})=>{if(_0x50c9f7['showSuggestionHighlights'])return _0xdfbf09['createEmptyElement']('div');},'converterPriority':'high'}),_0x188353['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5161f7,_0x5c560d,_0x36c596)=>{_0x36c596['options']['showSuggestionHighlights']&&_0x5161f7['stop']();},{'priority':'high'});}}class gt extends _0x5031ea{['afterInit'](){const _0x3ce410=this['editor'];_0x3ce410['plugins']['has']('MentionEditing')&&_0x3ce410['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x5031ea{['afterInit'](){const _0xe23fca=this['editor'],_0x58c3d2=_0xe23fca['plugins']['get']('TrackChangesEditing');_0xe23fca['plugins']['has']('MultiLevelList')&&(_0x58c3d2['enableDefaultAttributesIntegration']('multiLevelList'),_0x58c3d2['registerBlockAttribute']('listMarkerStyle'),_0x58c3d2['descriptionFactory']['registerDescriptionCallback'](_0x562fd2=>this['handleDescriptions'](_0x562fd2)));}['handleDescriptions'](_0x2f2c1b){const _0x426587=this['editor']['locale'],{data:_0x312a26}=_0x2f2c1b,_0x37fde8={'type':'format','content':''};if(_0x312a26&&'listMarkerStyle'==_0x312a26['key']){if(!_0x312a26['oldValue'])return{'type':'format','content':o(_0x426587,'*Set\x20format:*\x20%0',o(_0x426587,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x312a26['newValue']+')'};if(!_0x312a26['newValue']){let _0x22dd87=_0x2f2c1b['head'];for(;_0x22dd87;){if(_0x22dd87['data']&&'listType'==_0x22dd87['data']['key']&&_0x22dd87['data']['newValue'])return _0x37fde8;_0x22dd87=_0x22dd87['next'];}return{'type':'format','content':o(_0x426587,'*Remove\x20format:*\x20%0',o(_0x426587,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x312a26['oldValue']+')'};}}}}class mt extends _0x5031ea{['afterInit'](){const _0x59030e=this['editor'];if(!_0x59030e['plugins']['has']('PageBreakEditing'))return;_0x59030e['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4b6ffb=_0x59030e['plugins']['get']('TrackChangesEditing'),_0x33f2c4=_0x59030e['locale'];_0x4b6ffb['descriptionFactory']['registerElementLabel']('pageBreak',_0xe302eb=>o(_0x33f2c4,'ELEMENT_PAGE_BREAK',_0xe302eb));}}class dt extends _0x5031ea{['afterInit'](){const _0x3488dd=this['editor'];if(!_0x3488dd['plugins']['has']('Paragraph'))return;const _0x4ac57d=_0x3488dd['locale'],_0x5ae688=_0x3488dd['plugins']['get']('TrackChangesEditing');_0x5ae688['descriptionFactory']['registerElementLabel']('paragraph',_0x11d1a7=>o(_0x4ac57d,'ELEMENT_PARAGRAPH',_0x11d1a7)),_0x5ae688['enableDefaultAttributesIntegration']('paragraph'),_0x5ae688['enableCommand']('insertParagraph'),_0x3488dd['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3488dd),{'priority':'highest'}),_0x3488dd['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3ea65f,_0x12640d,_0x5d1133)=>{_0x5d1133['options']['showSuggestionHighlights']&&nr(_0x3488dd,{'showActiveMarker':!0x1})(_0x3ea65f,_0x12640d,_0x5d1133);},{'priority':'highest'});const _0xa6b21c=_0x5ae688['descriptionFactory'];_0xa6b21c['registerDescriptionCallback'](_0x32e20e=>{if('insertion'!==_0x32e20e['type'])return;const {start:_0x130c25,end:_0x2b65d9}=_0x32e20e['getFirstRange']();if(!_0x130c25['isTouching'](_0x2b65d9)||!_0x130c25['nodeAfter'])return;const _0x61cc66=_0x3488dd['model']['schema'],_0x218e43=_0x130c25['nodeAfter'];return _0x61cc66['isBlock'](_0x218e43)&&!_0x61cc66['isLimit'](_0x218e43)&&_0x61cc66['checkChild'](_0x218e43,'$text')?{'type':'insertion','content':o(_0x4ac57d,'*Insert:*\x20%0',_0xa6b21c['getItemLabel'](_0x218e43,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x134723=this['editor'],_0x446804=_0x134723['locale'];_0x134723['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf5ee58=>{if('formatBlock'!=_0xf5ee58['type'])return;const {data:_0x2774dc}=_0xf5ee58;return _0x2774dc&&'paragraph'==_0x2774dc['commandName']?{'type':'format','content':o(_0x446804,'*Change\x20to:*\x20%0',o(_0x446804,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x217774,{showActiveMarker:_0x11a16a=!0x0}={}){return(_0x4204fa,_0x40ed51,_0x13a84f)=>{const _0x5e08de=_0x217774['plugins']['get']('TrackChangesEditing'),_0x44b5c4=_0x40ed51['markerRange']['start'],_0x2feb97=_0x40ed51['markerRange']['end'],_0x4413dd=_0x217774['model']['schema'];if(!_0x44b5c4['isTouching'](_0x2feb97)||!_0x44b5c4['nodeAfter'])return;const _0x41563f=_0x44b5c4['nodeAfter'];if(_0x4413dd['isBlock'](_0x41563f)&&!_0x4413dd['isLimit'](_0x41563f)&&_0x4413dd['checkChild'](_0x41563f,'$text')){if(!_0x13a84f['consumable']['consume'](_0x40ed51['markerRange'],_0x4204fa['name']))return;const _0x4dcf67=_0x13a84f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x30b901=_0x13a84f['mapper']['toViewPosition'](_0x2feb97);_0x11a16a&&_0x5e08de['activeMarkers']['includes'](_0x40ed51['markerName'])&&_0x13a84f['writer']['addClass']('ck-suggestion-marker--active',_0x4dcf67),_0x13a84f['writer']['insert'](_0x30b901,_0x4dcf67),_0x13a84f['mapper']['bindElementToMarker'](_0x4dcf67,_0x40ed51['markerName']);}};}class pt extends _0x5031ea{['afterInit'](){const _0x2f1a55=this['editor'];if(!_0x2f1a55['plugins']['has']('RemoveFormatEditing'))return;_0x2f1a55['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xac4ddd=this['editor'];_0xac4ddd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b0874=>{if('formatBlock'!=_0x5b0874['type']&&'formatInline'!=_0x5b0874['type'])return;const {data:_0x1721a8}=_0x5b0874;return _0x1721a8&&'removeFormat'==_0x1721a8['commandName']?{'type':'format','content':o(_0xac4ddd['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x5031ea{['afterInit'](){const _0x422302=this['editor'];if(!_0x422302['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3b3f7=_0x422302['plugins']['get']('TrackChangesEditing');_0x3b3f7['enableCommand']('goToPreviousRestrictedEditingException'),_0x3b3f7['enableCommand']('goToNextRestrictedEditingException');const _0x5c5c83=_0x422302['plugins']['get']('RestrictedEditingModeEditing');_0x5c5c83['enableCommand']('trackChanges'),_0x5c5c83['enableCommand']('acceptSuggestion'),_0x5c5c83['enableCommand']('discardSuggestion'),_0x5c5c83['enableCommand']('acceptAllSuggestions'),_0x5c5c83['enableCommand']('discardAllSuggestions'),_0x5c5c83['enableCommand']('acceptSelectedSuggestions'),_0x5c5c83['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x5031ea{static get['requires'](){return[_0x4111ef];}['init'](){const _0x2099bf=this['editor'],_0x4aaecc=_0x2099bf['plugins']['get']('TrackChangesEditing');_0x4aaecc['enableCommand']('shiftEnter'),_0x2099bf['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x2099bf),{'priority':'high'}),_0x2099bf['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x2099bf),{'priority':'high'}),_0x2099bf['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x51c775,_0x36a288,_0x4f26f7)=>{_0x4f26f7['options']['showSuggestionHighlights']&&de(_0x2099bf,{'showActiveMarker':!0x1})(_0x51c775,_0x36a288,_0x4f26f7);}),_0x4aaecc['descriptionFactory']['registerElementLabel']('softBreak',_0x38b2dd=>o(_0x2099bf['locale'],'ELEMENT_LINE_BREAK',_0x38b2dd));}}function de(_0x38ea3c,{showActiveMarker:_0x39d040=!0x0}={}){return(_0x588c42,_0x3cd5f6,_0x568e15)=>{const _0x536b89=_0x38ea3c['plugins']['get']('TrackChangesEditing');if(!_0x568e15['consumable']['test'](_0x3cd5f6['markerRange'],_0x588c42['name']))return;const _0x3a5efb=_0x38ea3c['model'];for(const _0x3f4191 of _0x3cd5f6['markerRange']['getItems']()){if(!_0x3f4191['is']('element','softBreak'))continue;const _0x4e177f='deletion'==_0x3cd5f6['markerName']['split'](':')[0x1]?'merge':'split',_0x205e9b=_0x568e15['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4e177f}),_0x208dc3=_0x568e15['mapper']['toViewPosition'](_0x3a5efb['createPositionBefore'](_0x3f4191));_0x39d040&&_0x536b89['activeMarkers']['includes'](_0x3cd5f6['markerName'])&&_0x568e15['writer']['addClass']('ck-suggestion-marker--active',_0x205e9b),_0x568e15['writer']['insert'](_0x208dc3,_0x205e9b),_0x568e15['mapper']['bindElementToMarker'](_0x205e9b,_0x3cd5f6['markerName']);}};}class wt extends _0x5031ea{['afterInit'](){const _0x19b5da=this['editor'],_0xc47364=_0x19b5da['model'],_0x5d25ed=_0x19b5da['locale'];if(!_0x19b5da['plugins']['has']('StandardEditingModeEditing'))return;const _0x41cf6b=_0x19b5da['plugins']['get']('TrackChangesEditing'),_0x2ee9e0='restrictedEditingException',_0x4d5595=_0x19b5da['commands']['get'](_0x2ee9e0);_0x41cf6b['enableCommand'](_0x2ee9e0,(_0x2efd4b,_0x10a0b3={})=>{const _0x52cd01=_0xc47364['document']['selection'];if(_0x52cd01['isCollapsed'])return void _0x2efd4b(_0x10a0b3);const _0x1656fc=void 0x0!==_0x10a0b3['forceValue']?_0x10a0b3['forceValue']:!_0x4d5595['value'];_0xc47364['change'](()=>{const _0xead7dc=Array['from'](_0x52cd01['getRanges']());for(const _0x594d09 of _0xead7dc){const _0x87835a=_0x1656fc?[_0x594d09]:io(_0x2ee9e0,_0x594d09,_0xc47364);for(const _0x4ddf94 of _0x87835a)_0x41cf6b['markInlineFormat'](_0x4ddf94,{'commandName':_0x2ee9e0,'commandParams':[{'forceValue':_0x1656fc}]});}});}),_0x41cf6b['descriptionFactory']['registerDescriptionCallback'](_0x1c9e6c=>{if('formatBlock'!=_0x1c9e6c['type']&&'formatInline'!=_0x1c9e6c['type'])return;const {data:_0x4c3aeb}=_0x1c9e6c;return _0x4c3aeb&&_0x4c3aeb['commandName']==_0x2ee9e0?_0x4c3aeb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5d25ed,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5d25ed,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x5031ea{['afterInit'](){const _0x661da2=this['editor'];if(!_0x661da2['plugins']['has']('Style')||!_0x661da2['plugins']['has']('DataSchema'))return;const _0x3b5807=_0x661da2['plugins']['get']('TrackChangesEditing'),_0x4cb0b7=_0x661da2['locale'],_0x2d01f7=_0x661da2['config']['get']('style')||{},_0x54383b=_0x661da2['plugins']['get']('GeneralHtmlSupport'),_0x1debb8=_0x661da2['plugins']['get']('StyleUtils')['normalizeConfig'](_0x661da2['plugins']['get']('DataSchema'),_0x2d01f7['definitions']);_0x3b5807['enableDefaultAttributesIntegration']('style');const _0x380d9c=new Set();for(const _0x25a41f of _0x1debb8['block']){const _0xa3ac71=_0x54383b['getGhsAttributeNameForElement'](_0x25a41f['element']);_0x380d9c['add'](_0xa3ac71);}const _0x39de2f=new Set();for(const _0x4ab01a of _0x1debb8['inline']){const _0x56b2c8=_0x54383b['getGhsAttributeNameForElement'](_0x4ab01a['element']);_0x39de2f['add'](_0x56b2c8);for(const _0x35db7e of _0x4ab01a['ghsAttributes'])_0x39de2f['add'](_0x35db7e);}for(const _0xfe9231 of _0x380d9c)_0x3b5807['registerBlockAttribute'](_0xfe9231),_0x3b5807['descriptionFactory']['registerAttributeLabel'](_0xfe9231,o(_0x4cb0b7,'FORMAT_STYLE'));for(const _0x4f07ac of _0x39de2f)_0x3b5807['registerInlineAttribute'](_0x4f07ac),_0x3b5807['descriptionFactory']['registerAttributeLabel'](_0x4f07ac,o(_0x4cb0b7,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2cd2b2=this['editor'],_0x344a19=_0x2cd2b2['locale'];_0x2cd2b2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x545f3d=>{if('formatBlock'!=_0x545f3d['type']&&'formatInline'!=_0x545f3d['type'])return;const {data:_0x42540c}=_0x545f3d;return _0x42540c&&'style'===_0x42540c['commandName']?_0x42540c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x344a19,'*Set\x20format:*\x20%0',_0x42540c['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x344a19,'*Remove\x20format:*\x20%0',_0x42540c['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x5031ea{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x26f27c){super(_0x26f27c),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x46ee65=this['editor'],_0x5a560f=_0x46ee65['model']['document']['selection'];if(!_0x46ee65['plugins']['has']('TableEditing'))return;const _0x2554f8=_0x46ee65['locale'],_0x2bc3d7=_0x46ee65['plugins']['get']('TrackChangesEditing'),_0x422c42=_0x46ee65['plugins']['get']('TableUtils');_0x2bc3d7['descriptionFactory']['registerElementLabel']('table',_0x56304f=>o(_0x2554f8,'ELEMENT_TABLE',_0x56304f)),this['_setupColumnsRowsFixing'](),_0x2bc3d7['enableCommand']('insertTable'),_0x2bc3d7['enableCommand']('selectTableRow'),_0x2bc3d7['enableCommand']('selectTableColumn');for(const _0x18a876 of['insertTableRowAbove','insertTableRowBelow']){const _0x5dc31b=_0x46ee65['commands']['get'](_0x18a876);_0x2bc3d7['enableCommand'](_0x18a876,_0x521e7c=>{_0x46ee65['model']['change'](_0x4ee2c3=>{_0x521e7c();const _0x4b316a='above'===_0x5dc31b['order'],_0x5e24f7=_0x422c42['getSelectionAffectedTableCells'](_0x5a560f),_0x28a614=_0x422c42['getRowIndexes'](_0x5e24f7),_0x5bbca3=_0x4b316a?_0x28a614['first']-0x1:_0x28a614['last']+0x1,_0x3e497f=_0x5e24f7[0x0]['findAncestor']('table'),_0x19b13a=_0x422c42['createTableWalker'](_0x3e497f,{'startRow':_0x5bbca3,'endRow':_0x5bbca3}),_0x5952c2=Array['from'](_0x19b13a)['map'](_0x3ac6fa=>_0x4ee2c3['createRangeOn'](_0x3ac6fa['cell']));_0x2bc3d7['markMultiRangeInsertion'](_0x5952c2,'tableRow');});});}for(const _0x2b27f0 of['insertTableColumnLeft','insertTableColumnRight']){const _0x142051=_0x46ee65['commands']['get'](_0x2b27f0);_0x2bc3d7['enableCommand'](_0x2b27f0,_0x375a56=>{_0x46ee65['model']['change'](_0x192d46=>{_0x375a56();const _0x9b4a23='left'===_0x142051['order'],_0x5f40d5=_0x422c42['getSelectionAffectedTableCells'](_0x5a560f),_0x465993=_0x422c42['getColumnIndexes'](_0x5f40d5),_0x4efc45=_0x9b4a23?_0x465993['first']-0x1:_0x465993['last']+0x1,_0x5b9d08=_0x5f40d5[0x0]['findAncestor']('table'),_0x570942=_0x422c42['createTableWalker'](_0x5b9d08,{'startRow':0x0,'column':_0x4efc45,'includeAllSlots':!0x1}),_0x46e4f1=Array['from'](_0x570942)['map'](_0x579899=>_0x192d46['createRangeOn'](_0x579899['cell']));_0x2bc3d7['markMultiRangeInsertion'](_0x46e4f1,'tableColumn');});});}for(const _0x4929d9 of['removeTableRow','removeTableColumn']){const _0x38b0a7=_0x4929d9['substr'](0xb),_0x2fc827=_0x38b0a7['toLowerCase'](),_0x2cba5b=_0x2fc827['substr'](0x0,0x3)+'span',_0x37bce8='table'+_0x38b0a7,_0x1a1743='min'+_0x38b0a7,_0x278868='max'+_0x38b0a7;_0x2bc3d7['enableCommand'](_0x4929d9,()=>{_0x46ee65['model']['change'](_0x127df6=>{const _0x331b39=_0x422c42['getSelectionAffectedTableCells'](_0x5a560f),_0x230645=_0x331b39[0x0]['findAncestor']('table');let _0x24fddb;if('removeTableRow'==_0x4929d9){const _0x3680db=_0x422c42['getRowIndexes'](_0x331b39);_0x24fddb={'startRow':_0x3680db['first'],'endRow':_0x3680db['last'],'includeAllSlots':!0x0};}else{const _0x3f46e2=_0x422c42['getColumnIndexes'](_0x331b39);_0x24fddb={'startColumn':_0x3f46e2['first'],'endColumn':_0x3f46e2['last'],'includeAllSlots':!0x0};}const _0x4f7954=_0x422c42['createTableWalker'](_0x230645,_0x24fddb),_0x2dd3c1=Array['from'](_0x4f7954)['map'](({cell:_0x103342})=>_0x103342),_0x543f19=Ee(_0x2dd3c1['filter'](_0x248481=>_0x248481['hasAttribute'](_0x2cba5b))),_0x463c36=Ee(_0x2dd3c1['filter'](_0x424036=>!_0x424036['hasAttribute'](_0x2cba5b)))['map'](_0x5b07fb=>_0x127df6['createRangeOn'](_0x5b07fb)),_0x274e97=_0x2bc3d7['markMultiRangeDeletion'](_0x463c36,_0x37bce8);if(_0x274e97&&('tableRow'==_0x274e97['subType']||'tableColumn'==_0x274e97['subType'])){const _0x1da891=this['_getSuggestionCoords'](_0x274e97);for(const _0x57fbe3 of _0x543f19){const _0x7c6c7=_0x127df6['createRangeOn'](_0x57fbe3),_0x4ef80e=_0x422c42['getCellLocation'](_0x57fbe3),_0x38cd8e=_0x57fbe3['getAttribute'](_0x2cba5b)-0x1,_0x4b3d89=_0x1da891[_0x1a1743],_0x518310=_0x1da891[_0x278868];_0x4b3d89<=_0x4ef80e[_0x2fc827]&&_0x4ef80e[_0x2fc827]+_0x38cd8e<=_0x518310&&_0x274e97['addRange'](_0x7c6c7);}}});});}function _0x734c50(_0x5913e6){const _0x3d6c9a=Array['from'](_0x5a560f['getRanges']())['map'](_0x2f8bf8=>_0x108983['fromRange'](_0x2f8bf8));_0x46ee65['model']['change'](_0x4e329d=>{const _0x17e4dd=_0x4e329d['batch'];_0x5913e6=_0x5913e6['filter'](_0x2245a5=>'$graveyard'!=_0x2245a5['root']['rootName']),_0x4e329d['setSelection'](_0x5913e6),_0x46ee65['commands']['get']('removeTableRow')['refresh'](),_0x46ee65['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x46ee65['model']['enqueueChange'](()=>{_0x46ee65['model']['enqueueChange'](_0x17e4dd,_0x9a4753=>{const _0x1d9fb6=_0x3d6c9a['filter'](_0x5bd697=>'$graveyard'!=_0x5bd697['root']['rootName']);_0x1d9fb6['length']>0x0&&_0x9a4753['setSelection'](_0x1d9fb6);for(const _0x5a3834 of _0x3d6c9a)_0x5a3834['detach']();});});});}function _0xff9485(_0x7464ae){_0x46ee65['model']['change'](_0x27afc4=>{const _0x49f976=Array['from'](_0x5a560f['getRanges']())['map'](_0x1b9316=>_0x108983['fromRange'](_0x1b9316)),_0x220fd9=[];for(const _0x139597 of _0x7464ae)for(const _0x1edc25 of _0x139597['getItems']({'shallow':!0x0}))_0x220fd9['push'](_0x1edc25);for(const _0xee93c9 of _0x220fd9)'$graveyard'!=_0xee93c9['root']['rootName']&&(_0x27afc4['setSelection'](_0x27afc4['createPositionAt'](_0xee93c9,0x0)),_0x46ee65['commands']['get']('removeTableColumn')['refresh'](),_0x46ee65['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5bb4f7=_0x49f976['filter'](_0x3f810c=>'$graveyard'!=_0x3f810c['root']['rootName']);_0x5bb4f7['length']>0x0&&_0x27afc4['setSelection'](_0x5bb4f7);for(const _0x5a1e38 of _0x49f976)_0x5a1e38['detach']();});}function _0x50aa8e(_0x24ceb4,_0x16ee9c){return _0x16ee9c['every'](_0x15ecc4=>_0x24ceb4['some'](_0x564064=>_0x564064['end']['isEqual'](_0x15ecc4['start'])||_0x15ecc4['end']['isEqual'](_0x564064['start'])));}function _0x22a6cc(_0x1ec9df,_0x96a730){return!_0x1ec9df['some'](_0x462f1d=>_0x96a730['some'](_0x573b4d=>_0x462f1d['isIntersecting'](_0x573b4d)))&&_0x1ec9df['some'](_0x3bd6ac=>_0x96a730['some'](_0x453eb8=>_0x3bd6ac['end']['isTouching'](_0x453eb8['start'])));}_0x46ee65['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x36505e,_0x127884,_0x59c476)=>{if(!_0x59c476['options']['showSuggestionHighlights'])return;const _0x2c9b14=_0x127884['item'];if(!_0x2c9b14)return;const _0x2d1b22=_0x59c476['mapper']['toViewElement'](_0x2c9b14);function _0x54b227(_0x20612a){return Array['isArray'](_0x20612a)?_0x20612a:[_0x20612a];}_0x2d1b22&&'tableCell'===_0x2c9b14['name']&&_0x1d1b80(_0x2d1b22,_0x59c476['writer'],(_0x2b6e6f,_0x1499d2,_0x160bdc)=>_0x160bdc['addClass'](_0x54b227(_0x1499d2['classes']),_0x2b6e6f),(_0x1ba085,_0x305e0f,_0x40d0d6)=>_0x40d0d6['removeClass'](_0x54b227(_0x305e0f['classes']),_0x1ba085));},{'priority':'highest'}),_0x2bc3d7['descriptionFactory']['registerDescriptionCallback'](_0xc6ccda=>{if('insertion'!=_0xc6ccda['type']&&'deletion'!=_0xc6ccda['type'])return;const _0x2f2392=_0xc6ccda['getContainedElement']();if(null!=_0x2f2392&&_0x2f2392['is']('element','table')){if('insertion'==_0xc6ccda['type']){const _0x187733=_0xc6ccda['getItems']()['filter'](_0x24f701=>_0x24f701['is']('$textProxy'))['map'](_0x1513f7=>_0x1513f7['data']);if(_0x187733['length'])return{'type':'insertion','content':o(_0x2554f8,'*Insert:*\x20%0',o(_0x2554f8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x187733['join']('\x20')+'\x22'))};}if('deletion'==_0xc6ccda['type']){const _0x288318=_0xc6ccda['getItems']()['filter'](_0x380d1b=>_0x380d1b['is']('$textProxy'))['map'](_0x9c26bc=>_0x9c26bc['data']);if(_0x288318['length'])return{'type':'deletion','content':o(_0x2554f8,'*Remove:*\x20%0',o(_0x2554f8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x288318['join']('\x20')+'\x22'))};}}}),_0x2bc3d7['descriptionFactory']['registerDescriptionCallback'](_0x26ca83=>{if('tableRow'==_0x26ca83['subType']){const _0x20e13c=_0x26ca83['getItems']()['filter'](_0x147892=>_0x147892['is']('$textProxy'))['map'](_0x21d7e6=>_0x21d7e6['data']),_0x737448=this['_getSuggestionCoords'](_0x26ca83),_0x141b15=_0x737448['maxRow']-_0x737448['minRow']+0x1;if('insertion'==_0x26ca83['type'])return _0x20e13c['length']?{'type':'insertion','content':o(_0x2554f8,'*Insert:*\x20%0',o(_0x2554f8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x141b15,'\x22'+_0x20e13c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2554f8,'*Insert:*\x20%0',o(_0x2554f8,'ELEMENT_TABLE_ROW',_0x141b15))};if('deletion'==_0x26ca83['type'])return _0x20e13c['length']?{'type':'deletion','content':o(_0x2554f8,'*Remove:*\x20%0',o(_0x2554f8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x141b15,'\x22'+_0x20e13c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2554f8,'*Remove:*\x20%0',o(_0x2554f8,'ELEMENT_TABLE_ROW',_0x141b15))};}if('tableColumn'==_0x26ca83['subType']){const _0x5c024e=_0x26ca83['getItems']()['filter'](_0x4fcbde=>_0x4fcbde['is']('$textProxy'))['map'](_0x164825=>_0x164825['data']),_0x49ef9f=this['_getSuggestionCoords'](_0x26ca83),_0x1095b5=_0x49ef9f['maxColumn']-_0x49ef9f['minColumn']+0x1;if('insertion'==_0x26ca83['type'])return _0x5c024e['length']?{'type':'insertion','content':o(_0x2554f8,'*Insert:*\x20%0',o(_0x2554f8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1095b5,'\x22'+_0x5c024e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2554f8,'*Insert:*\x20%0',o(_0x2554f8,'ELEMENT_TABLE_COLUMN',_0x1095b5))};if('deletion'==_0x26ca83['type'])return _0x5c024e['length']?{'type':'deletion','content':o(_0x2554f8,'*Remove:*\x20%0',o(_0x2554f8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1095b5,'\x22'+_0x5c024e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2554f8,'*Remove:*\x20%0',o(_0x2554f8,'ELEMENT_TABLE_COLUMN',_0x1095b5))};}}),_0x2bc3d7['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x734c50),_0x2bc3d7['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x734c50),_0x2bc3d7['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xff9485),_0x2bc3d7['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xff9485),_0x2bc3d7['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x50aa8e),_0x2bc3d7['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x50aa8e),_0x2bc3d7['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x22a6cc),_0x2bc3d7['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x22a6cc);}['_acceptFormatSuggestionCallbackFactory'](){const _0xbca276=this['editor'],_0x3cec2a=_0xbca276['model']['document']['selection'];return(_0x56dc7a,_0xd1f772)=>{_0xbca276['model']['change'](_0x5bedec=>{const {commandName:_0x2e8727,commandParams:_0x3af3ac}=_0xd1f772;let _0x228527=_0x56dc7a[0x0]['end']['nodeBefore'];_0x3af3ac&&_0x3af3ac[0x0]&&!0x1===_0x3af3ac[0x0]['forceValue']&&(_0x228527=_0x56dc7a[0x0]['start']['nodeAfter']);const _0x28b5ce=_0x5bedec['createRangeIn'](_0x228527);if('$graveyard'==_0x28b5ce['root']['rootName'])return;const _0x2fee41=Array['from'](_0x3cec2a['getRanges']())['map'](_0x4445d9=>_0x108983['fromRange'](_0x4445d9));_0x5bedec['setSelection'](_0x28b5ce),_0xbca276['commands']['get'](_0x2e8727)['refresh'](),_0x3af3ac['push']({'forceDefaultExecution':!0x0}),_0xbca276['execute'](_0x2e8727,..._0x3af3ac);const _0x1ca742=_0x2fee41['filter'](_0x3123d7=>'$graveyard'!=_0x3123d7['root']['rootName']);_0x1ca742['length']>0x0&&_0x5bedec['setSelection'](_0x1ca742);for(const _0x1ea51d of _0x2fee41)_0x1ea51d['detach']();});};}['_getCoordsForCells'](_0x15b105){const _0x4a5df0=this['editor']['plugins']['get']('TableUtils');let _0xe99f2c=Number['MAX_SAFE_INTEGER'],_0x3241be=Number['MIN_SAFE_INTEGER'],_0x26928d=Number['MAX_SAFE_INTEGER'],_0x45e409=Number['MIN_SAFE_INTEGER'];for(const _0x5de316 of _0x15b105){if('$graveyard'==_0x5de316['root']['rootName'])continue;const {row:_0x2a17c5,column:_0x2e7821}=_0x4a5df0['getCellLocation'](_0x5de316),_0x44e5d1=_0x5de316['hasAttribute']('rowspan')?_0x5de316['getAttribute']('rowspan')-0x1:0x0,_0x269d42=_0x5de316['hasAttribute']('colspan')?_0x5de316['getAttribute']('colspan')-0x1:0x0;_0xe99f2c=_0x2a17c5<_0xe99f2c?_0x2a17c5:_0xe99f2c,_0x3241be=_0x2a17c5+_0x44e5d1>_0x3241be?_0x2a17c5+_0x44e5d1:_0x3241be,_0x26928d=_0x2e7821<_0x26928d?_0x2e7821:_0x26928d,_0x45e409=_0x2e7821+_0x269d42>_0x45e409?_0x2e7821+_0x269d42:_0x45e409;}return{'minRow':_0xe99f2c,'maxRow':_0x3241be,'minColumn':_0x26928d,'maxColumn':_0x45e409};}['_setupColumnsRowsFixing'](){const _0x4de54d=this['editor'],_0x1137ae=_0x4de54d['plugins']['get']('TrackChangesEditing'),_0x5df5d5=_0x4de54d['plugins']['get']('TableUtils');_0x4de54d['model']['document']['on']('change:data',()=>{const _0x290c6e=Array['from'](_0x4de54d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x467fb4,data:_0x3abb8b}of _0x290c6e){const {group:_0x3337a3,id:_0x299856,subType:_0xfc0d8e}=_0x1137ae['_splitMarkerName'](_0x467fb4);if('suggestion'!=_0x3337a3)continue;if(null!=_0x3abb8b['oldRange'])continue;const _0x3b5894=_0x1137ae['getSuggestion'](_0x299856);this['_tablePostFixingSubtypes']['includes'](_0xfc0d8e)&&this['_tableSuggestions']['add'](_0x3b5894);}},{'priority':'low'});const _0x587816=(_0x22a962,_0x1203ad)=>{let _0x2466b4=!0x1;const _0x19a575=_0x1203ad['createRangeOn'](_0x22a962),_0x1913f2=_0x22a962['findAncestor']('table'),_0xbba886=_0x5df5d5['getCellLocation'](_0x22a962);for(const _0x1410b3 of this['_tableSuggestions']){const _0x304ef9=_0x1410b3['subType'],_0x39884c=_0x304ef9['startsWith']('tablePaste'),_0xe0cd89=_0x304ef9['substr'](_0x39884c?0xa:0x5),_0x4080f4=_0xe0cd89['toLowerCase'](),_0x169818=_0x4080f4['substr'](0x0,0x3)+'span',_0x451415='min'+_0xe0cd89,_0x3c2e1e='max'+_0xe0cd89;if(!_0x1410b3['isInContent'])continue;if(_0x1913f2!=_0x1410b3['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1410b3['isIntersectingWithRange'](_0x19a575))continue;const _0x3fd375=_0x22a962['hasAttribute'](_0x169818)?_0x22a962['getAttribute'](_0x169818)-0x1:0x0,_0x221013=this['_getSuggestionCoords'](_0x1410b3),_0x4f7282=_0x221013[_0x451415],_0x4c7285=_0x221013[_0x3c2e1e];_0x4f7282<=_0xbba886[_0x4080f4]&&_0xbba886[_0x4080f4]+_0x3fd375<=_0x4c7285&&(_0x1410b3['addRange'](_0x19a575),_0x2466b4=!0x0);}return _0x2466b4;};_0x4de54d['model']['document']['registerPostFixer'](_0x1410e6=>{let _0x4f4d42=!0x1;for(const _0x4221f3 of _0x4de54d['model']['document']['differ']['getChanges']())if('insert'==_0x4221f3['type']){if('tableRow'==_0x4221f3['name']){for(const _0x1142cc of _0x4221f3['position']['nodeAfter']['getChildren']())_0x4f4d42=_0x4f4d42||_0x587816(_0x1142cc,_0x1410e6);}else'tableCell'==_0x4221f3['name']&&(_0x4f4d42=_0x4f4d42||_0x587816(_0x4221f3['position']['nodeAfter'],_0x1410e6));}return _0x4f4d42;});}['_getSuggestionCoords'](_0x1c0ec2){return this['_getCoordsForCells'](_0x1c0ec2['getRanges']()['map'](_0x22f614=>_0x22f614['start']['nodeAfter']));}}function Ee(_0x41044c){return Array['from'](new Set(_0x41044c)['values']());}class St extends _0x5031ea{static get['requires'](){return[jt];}['afterInit'](){const _0x103592=this['editor'],_0x1ccf9f=_0x103592['model']['document']['selection'],_0x36442a=_0x103592['locale'];if(!_0x103592['plugins']['has']('TableEditing'))return;const _0x179503=_0x103592['plugins']['get']('TrackChangesEditing'),_0x23f8d5=_0x103592['plugins']['get']('TableUtils'),_0x4fa6b3=_0x103592['plugins']['get'](jt);_0x4fa6b3['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x179503['enableCommand']('mergeTableCells',()=>{const _0x58bdd7=_0x23f8d5['getSelectionAffectedTableCells'](_0x103592['model']['document']['selection']);_0x103592['model']['change'](()=>{_0x179503['markMultiRangeBlockFormat'](_0x58bdd7,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x103592['commands']['get']('mergeTableCells')['on']('execute',(_0x2b50dc,_0xdba575)=>{_0x103592['commands']['get']('trackChanges')['value']&&(_0xdba575['length']>0x0&&_0xdba575[_0xdba575['length']-0x1]&&_0xdba575[_0xdba575['length']-0x1]['forceDefaultExecution']||_0x179503['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2b50dc['stop']());},{'priority':'highest'});for(const _0x36cdc1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x44ff8d=_0x103592['commands']['get'](_0x36cdc1);_0x179503['enableCommand'](_0x36cdc1,()=>{const _0x3fdb2e=_0x103592['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x330da3=>_0x330da3['is']('element','tableCell')),_0x4bc353=_0x44ff8d['value'];_0x103592['model']['change'](()=>{_0x179503['markMultiRangeBlockFormat']([_0x3fdb2e,_0x4bc353],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0xbcf616 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x32f428=_0x103592['commands']['get'](_0xbcf616);_0x179503['enableCommand'](_0xbcf616,()=>{const _0x86c3ab=_0x23f8d5['getSelectionAffectedTableCells'](_0x103592['model']['document']['selection'])[0x0],_0xc91961=_0x86c3ab['findAncestor']('table'),{column:_0x50ade8,row:_0x878e02}=_0x23f8d5['getCellLocation'](_0x86c3ab);let _0x9b52be=[];if('horizontally'==_0x32f428['direction']){const _0x941694=_0x23f8d5['createTableWalker'](_0xc91961,{'startRow':_0x878e02,'endRow':_0x878e02,'includeAllSlots':!0x0});_0x9b52be=Array['from'](_0x941694)['map'](_0x30e7a8=>_0x30e7a8['cell']);}else{const _0x491e65=_0x23f8d5['createTableWalker'](_0xc91961,{'column':_0x50ade8,'includeAllSlots':!0x0});_0x9b52be=Array['from'](_0x491e65)['map'](_0x4712cc=>_0x4712cc['cell']);}_0x103592['model']['change'](_0x53b8e2=>{_0x179503['markBlockFormat'](_0x53b8e2['createRangeOn'](_0x86c3ab),{'commandName':_0xbcf616,'commandParams':[]},_0x9b52be,_0xbcf616);});});}_0x179503['descriptionFactory']['registerDescriptionCallback'](_0x48c71a=>{if('formatBlock'!=_0x48c71a['type']&&'formatInline'!=_0x48c71a['type'])return;const {data:_0xcbb18d}=_0x48c71a;return _0xcbb18d&&'mergeTableCells'==_0xcbb18d['commandName']?{'type':'format','content':o(_0x36442a,'*Merge\x20cells*')}:void 0x0;}),_0x179503['descriptionFactory']['registerDescriptionCallback'](_0x16c1a0=>{if('formatBlock'!=_0x16c1a0['type']&&'formatInline'!=_0x16c1a0['type'])return;const {data:_0x3f241e}=_0x16c1a0;return _0x3f241e?'splitTableCellVertically'==_0x3f241e['commandName']?{'type':'format','content':o(_0x36442a,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3f241e['commandName']?{'type':'format','content':o(_0x36442a,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x48dd05=_0x4fa6b3['_acceptFormatSuggestionCallbackFactory']();for(const _0x140b4d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x179503['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x140b4d,'accept',_0x48dd05);for(const _0x257e1f of['splitTableCellVertically','splitTableCellHorizontally'])_0x179503['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x257e1f,'accept',_0x48dd05);_0x179503['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x32facc=>{_0x103592['model']['change'](_0x39e382=>{const _0x1c97ff=Array['from'](_0x1ccf9f['getRanges']())['map'](_0x57b7f4=>_0x108983['fromRange'](_0x57b7f4));_0x39e382['setSelection'](_0x32facc),_0x103592['commands']['get']('mergeTableCells')['refresh'](),_0x103592['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x96e25=_0x1c97ff['filter'](_0x525fb2=>'$graveyard'!=_0x525fb2['root']['rootName']);_0x96e25['length']>0x0&&_0x39e382['setSelection'](_0x96e25);for(const _0x28dd80 of _0x1c97ff)_0x28dd80['detach']();});});for(const _0x42ef02 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x287412=_0x103592['commands']['get'](_0x42ef02);_0x287412['on']('set:isEnabled',(_0x2fab6d,_0x18df2b,_0x403e08)=>{if(_0x403e08){const _0x2048c2=_0x103592['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x85526=>_0x85526['is']('element','tableCell'));this['_areMergableCells'](_0x287412['value'],_0x2048c2)||(_0x2fab6d['return']=!0x1,_0x2fab6d['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x21fa3c=this['editor']['commands']['get']('mergeTableCells'),_0x270bc5=this['editor']['plugins']['get']('TableUtils');if(!_0x21fa3c['isEnabled'])return!0x1;const _0x18f058=_0x270bc5['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5d1042 of _0x18f058)for(const _0x4253a8 of _0x18f058)if(_0x5d1042!=_0x4253a8&&!this['_areMergableCells'](_0x5d1042,_0x4253a8))return!0x1;return!0x0;}['_areMergableCells'](_0x45689c,_0x1f1f12){const _0x43520f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x6acb38=this['editor']['model']['createRangeOn'](_0x45689c),_0x58e3b0=this['editor']['model']['createRangeOn'](_0x1f1f12),_0x392f2f=new Set(),_0x45a0a6=new Set();for(const _0x23c410 of _0x43520f['getSuggestions']())if(('insertion'==_0x23c410['type']||'deletion'==_0x23c410['type']||'mergeTableCells'==_0x23c410['subType'])&&_0x23c410['isInContent']){for(const _0x22b419 of _0x23c410['getRanges']())_0x22b419['containsRange'](_0x6acb38,!0x0)&&_0x392f2f['add'](_0x23c410['type']+':'+_0x23c410['author']['id']),_0x22b419['containsRange'](_0x58e3b0,!0x0)&&_0x45a0a6['add'](_0x23c410['type']+':'+_0x23c410['author']['id']);}if(_0x392f2f['size']!=_0x45a0a6['size'])return!0x1;for(const _0x35ba38 of _0x392f2f)if(!_0x45a0a6['has'](_0x35ba38))return!0x1;return!0x0;}}class At extends _0x5031ea{static get['requires'](){return[jt];}['afterInit'](){const _0x32112b=this['editor'];if(!_0x32112b['plugins']['has']('TableEditing'))return;const _0x56c7a0=_0x32112b['locale'],_0x3309e6=_0x32112b['plugins']['get']('TrackChangesEditing');_0x3309e6['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3309e6['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3309e6['registerBlockAttribute']('headingRows'),_0x3309e6['registerBlockAttribute']('headingColumns'),_0x3309e6['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x56c7a0,'FORMAT_HEADER_ROW')),_0x3309e6['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x56c7a0,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1f451b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f08c4=this['editor']['plugins']['get']('TableUtils'),_0x226044=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x431ed1({showActiveMarker:_0x44edd9=!0x0,setDataAttribute:_0x1ab3eb=!0x0}={}){return(_0x1de34a,_0x51f8f8,_0x50c535)=>{const {type:_0x18f015,id:_0x15ac09}=_0x1f451b['_splitMarkerName'](_0x51f8f8['markerName']),_0x143f1b=_0x1f451b['getSuggestion'](_0x15ac09),_0x1a2e5e=_0x143f1b['data'];if('formatBlock'!=_0x143f1b['type']||!_0x1a2e5e||'setTableColumnHeader'!=_0x1a2e5e['commandName'])return;if(_0x51f8f8['item'])return void _0x1de34a['stop']();if(!_0x50c535['consumable']['consume'](_0x51f8f8['markerRange'],_0x1de34a['name']))return;const _0x17deb3=_0x51f8f8['markerRange']['start']['nodeAfter'],_0x13fb8e=_0x51f8f8['markerRange']['end']['nodeBefore'],_0x12559c=_0x17deb3['parent']['parent'],{column:_0x10e017}=_0x2f08c4['getCellLocation'](_0x17deb3),{column:_0x4d4039}=_0x2f08c4['getCellLocation'](_0x13fb8e);for(let _0x5e76a9=_0x10e017;_0x5e76a9<=_0x4d4039;_0x5e76a9++){const _0x2597b5=_0x2f08c4['createTableWalker'](_0x12559c,{'column':_0x5e76a9,'includeAllSlots':!0x1});for(const _0x5b9cf4 of _0x2597b5){const _0x543fb6=_0x5b9cf4['cell'],_0x263dd2=_0x50c535['mapper']['toViewElement'](_0x543fb6);_0x50c535['writer']['addClass']('ck-suggestion-marker-'+_0x18f015,_0x263dd2),_0x1ab3eb&&_0x50c535['writer']['setAttribute']('data-suggestion',_0x15ac09,_0x263dd2),_0x50c535['mapper']['bindElementToMarker'](_0x263dd2,_0x51f8f8['markerName']),_0x44edd9&&(_0x1f451b['activeMarkers']['includes'](_0x51f8f8['markerName'])?_0x50c535['writer']['addClass']('ck-suggestion-marker--active',_0x263dd2):_0x50c535['writer']['removeClass']('ck-suggestion-marker--active',_0x263dd2));}}};}_0x1f451b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x226044),_0x1f451b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x226044),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x431ed1(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4ed019,_0xcafae2,_0x16b229)=>{_0x16b229['options']['showSuggestionHighlights']&&_0x431ed1({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4ed019,_0xcafae2,_0x16b229);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x55d781,_0x5b1698,_0x2a308f)=>{const {type:_0x5a23bd,id:_0x275823}=_0x1f451b['_splitMarkerName'](_0x5b1698['markerName']),_0x5acca9=_0x1f451b['getSuggestion'](_0x275823),_0x572d3b=_0x5acca9['data'];if('formatBlock'!=_0x5acca9['type']||!_0x572d3b||'setTableColumnHeader'!=_0x572d3b['commandName'])return;const _0x24c00b=_0x2a308f['mapper']['markerNameToElements'](_0x5b1698['markerName']);if(_0x24c00b){for(const _0x4466a5 of _0x24c00b)_0x2a308f['writer']['removeClass']('ck-suggestion-marker-'+_0x5a23bd,_0x4466a5),_0x2a308f['writer']['removeClass']('ck-suggestion-marker--active',_0x4466a5),_0x2a308f['writer']['removeAttribute']('data-suggestion',_0x4466a5),_0x2a308f['mapper']['unbindElementFromMarkerName'](_0x4466a5,_0x5b1698['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1be6c0=this['editor'],_0x277b6f=_0x1be6c0['locale'];function _0x5e0272(_0x14fb00){return{'type':'format','content':o(_0x277b6f,'*Format:*\x20%0',_0x14fb00)};}_0x1be6c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38ecab=>{if('formatBlock'!=_0x38ecab['type'])return;const {data:_0x553bee}=_0x38ecab;if(_0x553bee){if('setTableRowHeader'==_0x553bee['commandName']){const _0x36c4b6=_0x553bee['commandParams'][0x0]['forceValue'];return _0x5e0272(o(_0x277b6f,_0x36c4b6?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x553bee['commandName']){const _0x11df79=_0x553bee['commandParams'][0x0]['forceValue'];return _0x5e0272(o(_0x277b6f,_0x11df79?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x561c9a=>[_0x561c9a,null]));class It extends _0x5031ea{static get['requires'](){return[jt];}['afterInit'](){const _0x346ba9=this['editor'];if(!_0x346ba9['plugins']['has']('TableClipboard'))return;const _0x51c16a=_0x346ba9['plugins']['get']('TrackChangesEditing'),_0x5c2938=_0x346ba9['plugins']['get']('TableUtils'),_0x4671b9=_0x346ba9['plugins']['get'](jt),_0x123bb1=_0x346ba9['plugins']['get']('TableClipboard');_0x4671b9['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x346ba9['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x346ba9['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x807ca8=null;_0x346ba9['model']['on']('insertContent',(_0x22f0a4,_0x116776)=>{const [_0x2d8bba,_0x3e20d5]=_0x116776,_0x4649b7=_0x116776[_0x116776['length']-0x1];_0x4649b7&&_0x4649b7['forceDefaultExecution']||_0x51c16a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x179294,_0x2fc027,_0x4d348f,_0x4fe592,_0x4902c3){if(_0x2fc027&&!_0x2fc027['is']('documentSelection'))return!0x1;const _0x3b24ce=_0x4902c3['getTableIfOnlyTableInContent'](_0x179294,_0x4d348f);if(!_0x3b24ce||!he(_0x3b24ce,void 0x0,_0x4fe592))return!0x1;const _0x1ada94=_0x4fe592['getSelectionAffectedTableCells'](_0x4d348f['document']['selection']);if(!_0x1ada94['length'])return!0x1;const _0x41cf62=_0x1ada94[0x0]['findAncestor']('table'),_0x1c4ea4=_0x4fe592['getRowIndexes'](_0x1ada94),_0x3923fe=_0x4fe592['getColumnIndexes'](_0x1ada94),_0x3874c={'startRow':_0x1c4ea4['first'],'endRow':_0x1c4ea4['last'],'startColumn':_0x3923fe['first'],'endColumn':_0x3923fe['last']};return 0x1==_0x1ada94['length']&&(_0x3874c['endRow']+=_0x4fe592['getRows'](_0x3b24ce)-0x1,_0x3874c['endColumn']+=_0x4fe592['getColumns'](_0x3b24ce)-0x1),he(_0x41cf62,_0x3874c,_0x4fe592);}(_0x2d8bba,_0x3e20d5,_0x346ba9['model'],_0x5c2938,_0x123bb1)&&(_0x22f0a4['stop'](),_0x807ca8={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x346ba9['model']['change'](()=>{_0x346ba9['model']['insertContent'](_0x116776[0x0],_0x116776[0x1],_0x116776[0x2],{'forceDefaultExecution':!0x0});const _0x4a9952=_0x9738cc(),{rowInsertionRanges:_0x533865,columnInsertionRanges:_0xe848d1,insertionRanges:_0x13847f,deletionRanges:_0x5264ac,cells:_0x2e1840}=_0x807ca8;_0x533865['length']&&_0x51c16a['markMultiRangeInsertion'](_0x533865,'tablePasteRow',{'tablePasteChainId':_0x4a9952}),_0xe848d1['length']&&_0x51c16a['markMultiRangeInsertion'](_0xe848d1,'tablePasteColumn',{'tablePasteChainId':_0x4a9952}),_0x13847f['length']&&(_0x51c16a['markMultiRangeInsertion'](_0x13847f,'tablePaste',{'tablePasteChainId':_0x4a9952,'skipNestingCheck':!0x0}),_0x13847f['forEach'](_0x58b3ee=>_0x58b3ee['detach']?.())),_0x5264ac['length']&&(_0x51c16a['markMultiRangeDeletion'](_0x5264ac,'tablePaste',{'tablePasteChainId':_0x4a9952,'skipNestingCheck':!0x0}),_0x5264ac['forEach'](_0x3a42d2=>_0x3a42d2['detach']?.()));const _0x2f46d9=_0x51c16a['markMultiRangeBlockFormat'](_0x2e1840['map'](({element:_0x56cb3d})=>_0x56cb3d),{'formatGroupId':_0x9738cc()},[],'tablePasteCell',{'tablePasteChainId':_0x4a9952});if(_0x2f46d9){const _0x20b205=_0x2f46d9['getMarkers'](),_0x512fb7=[];for(const {element:_0x1bacbf,attributes:_0x19ea6e}of _0x2e1840){if(!_0x19ea6e)continue;const _0x24aa5e=_0x346ba9['model']['createRangeOn'](_0x1bacbf),_0x23e110=_0x20b205['find'](_0x555e39=>_0x555e39['getRange']()['isEqual'](_0x24aa5e));_0x23e110&&_0x512fb7['push']([_0x23e110['name'],_0x19ea6e]);}_0x512fb7['length']&&_0x2f46d9['setAttribute']('markerAttributes',Object['fromEntries'](_0x512fb7));}_0x807ca8=null;}));},{'priority':_0x80f00['high']+0xa}),_0x346ba9['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xb456f4,_0x3e2486)=>{const [_0x37d745,_0x188380,,_0xcc162b]=_0x3e2486;if(!_0x807ca8)return;_0xb456f4['stop']();const _0x8ceb9=_0x37d745['cell'],_0x3713fb=_0x188380,_0x5c7d89=Pe(_0x8ceb9),_0x1166f8=Pe(_0x3713fb);_0xb456f4['return']=_0x8ceb9;let _0xe38d0=null,_0x2ab8a0=null;if(_0x1166f8||_0x5c7d89){if(_0x5c7d89&&!_0x1166f8){_0xcc162b['remove'](_0x8ceb9['getChild'](0x0));for(const _0x1ba30f of Array['from'](_0x3713fb['getChildren']()))_0xcc162b['insert'](_0x1ba30f,_0x8ceb9,'end');const _0xbd20c6=_0x807ca8['rowInsertionIndexes']['includes'](_0x37d745['row']),_0x3608cf=_0x807ca8['columnInsertionIndexes']['includes'](_0x37d745['column']);_0xbd20c6||_0x3608cf||(_0xe38d0=_0x108983['fromRange'](_0xcc162b['createRangeIn'](_0x8ceb9)));}else _0x1166f8&&!_0x5c7d89&&(_0x2ab8a0=_0xcc162b['createRangeIn'](_0x8ceb9));}else{const _0x5c2b1c=_0xcc162b['createElement']('tableCellSuggestion'),_0xfece4f=_0xcc162b['createElement']('tableCellSuggestion');_0xcc162b['wrap'](_0xcc162b['createRangeIn'](_0x8ceb9),_0xfece4f),_0xcc162b['insert'](_0x5c2b1c,_0x8ceb9,0x0);for(const _0x1ec27b of Array['from'](_0x3713fb['getChildren']()))_0xcc162b['insert'](_0x1ec27b,_0x5c2b1c,'end');_0xe38d0=_0x108983['fromRange'](_0xcc162b['createRangeOn'](_0x5c2b1c)),_0x2ab8a0=_0x108983['fromRange'](_0xcc162b['createRangeOn'](_0xfece4f));}const _0x53efae=Array['from'](_0x3713fb['getAttributes']())['filter'](([_0x5b8990])=>ge['includes'](_0x5b8990));_0x807ca8['cells']['push']({'element':_0x8ceb9,'attributes':_0x53efae['length']?Object['fromEntries'](_0x53efae):null}),_0xe38d0&&_0x807ca8['insertionRanges']['push'](_0xe38d0),_0x2ab8a0&&_0x807ca8['deletionRanges']['push'](_0x2ab8a0);},{'priority':'high'}),_0x5c2938['on']('insertColumns',(_0x273927,_0x2c203d)=>{const [_0x4e4c6f,_0x95a041={}]=_0x2c203d;if(!_0x807ca8)return;const _0x57e8e1=_0x95a041['at']||0x0,_0x59256b=_0x95a041['columns']||0x1;_0x807ca8['columnInsertionIndexes']=new Array(_0x59256b)['fill'](_0x57e8e1)['map']((_0xba276,_0x371718)=>_0xba276+_0x371718);for(const {cell:_0x1e9e80}of _0x5c2938['createTableWalker'](_0x4e4c6f,{'startColumn':_0x57e8e1,'endColumn':_0x57e8e1+_0x59256b-0x1}))_0x807ca8['columnInsertionRanges']['push'](_0x346ba9['model']['createRangeOn'](_0x1e9e80));},{'priority':'low'}),_0x5c2938['on']('insertRows',(_0x1b7299,_0x3bb5cd)=>{const [_0x101028,_0x300e93={}]=_0x3bb5cd;if(!_0x807ca8)return;const _0x53888b=_0x300e93['at']||0x0,_0x2e36e2=_0x300e93['rows']||0x1;_0x807ca8['rowInsertionIndexes']=new Array(_0x2e36e2)['fill'](_0x53888b)['map']((_0x48c112,_0x50da91)=>_0x48c112+_0x50da91);for(const {cell:_0x2914fb}of _0x5c2938['createTableWalker'](_0x101028,{'startRow':_0x53888b,'endRow':_0x53888b+_0x2e36e2-0x1}))_0x807ca8['rowInsertionRanges']['push'](_0x346ba9['model']['createRangeOn'](_0x2914fb));},{'priority':'low'}),_0x51c16a['descriptionFactory']['registerDescriptionCallback'](_0x1cca63=>{if(_0x1cca63['subType']&&_0x1cca63['subType']['startsWith']('tablePaste'))return _0x1cca63['previous']?{}:{'type':'insertion','content':o(_0x346ba9['locale'],'*Replace\x20table\x20cells*')};});const _0x11b217=()=>!0x1;for(const _0x49c256 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x51c16a['_suggestionFactory']['registerCustomCallback']('insertion',_0x49c256,'join',_0x11b217),_0x51c16a['_suggestionFactory']['registerCustomCallback']('deletion',_0x49c256,'join',_0x11b217),_0x51c16a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x49c256,'join',_0x11b217);_0x51c16a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x11b217),_0x51c16a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5bef42,_0x14d53d,_0x57a258)=>{const _0x4aae3f=_0x5bef42['map'](_0x335c3b=>_0x335c3b['getContainedElement']())['filter'](_0x52069c=>_0x52069c),_0x367bd1=new Map(_0x4aae3f['map'](_0x4c3ef5=>[_0x4c3ef5,null]));if(_0x807ca8){for(const {element:_0x48a367,attributes:_0x2424d4}of _0x807ca8['cells'])_0x2424d4&&_0x367bd1['set'](_0x48a367,_0x2424d4);}else{if(_0x57a258&&_0x57a258['markerAttributes'])for(const [_0x46e802,_0x3491d6]of Object['entries'](_0x57a258['markerAttributes'])){const _0x4b9d74=_0x346ba9['model']['markers']['get'](_0x46e802),_0x46eacf=_0x4b9d74?_0x4b9d74['getRange']()['getContainedElement']():null;_0x46eacf&&_0x367bd1['set'](_0x46eacf,_0x3491d6);}}_0x346ba9['model']['change'](_0x2bf4b1=>{for(const [_0x2f132d,_0x76cbc0]of _0x367bd1)_0x2bf4b1['setAttributes']({...Ce,..._0x76cbc0},_0x2f132d);});});const _0x3b8d7=(_0xb55624,_0x1d9471)=>{_0x51c16a['_suggestionFactory']['registerCustomCallback'](_0xb55624,'tablePaste',_0x1d9471,(_0x240293,_0x444632,_0x14b719)=>{_0x346ba9['model']['change'](_0x5513a7=>{const _0x3f0f4f=[];for(const _0x91fbd7 of _0x240293){const _0x3a19ce=_0x91fbd7['start']['nodeAfter'];_0x3a19ce['is']('element','tableCellSuggestion')&&_0x3f0f4f['push'](_0x3a19ce);}_0x51c16a['_suggestionFactory']['getSuggestionCallback'](_0xb55624,null,_0x1d9471)(_0x240293,_0x444632,_0x14b719);for(const _0x3bd875 of _0x3f0f4f)'$graveyard'!=_0x3bd875['root']['rootName']&&_0x5513a7['unwrap'](_0x3bd875);});});};_0x3b8d7('insertion','accept'),_0x3b8d7('insertion','discard'),_0x3b8d7('deletion','accept'),_0x3b8d7('deletion','discard'),_0x51c16a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x173c85=>{const _0x2803bc=_0x173c85['map'](_0x2ce2b4=>_0x2ce2b4['getContainedElement']()),_0x47950c=_0x2803bc[0x0]['findAncestor']('table'),{minRow:_0x28a4e6,maxRow:_0x2468e4}=_0x4671b9['_getCoordsForCells'](_0x2803bc);_0x5c2938['removeRows'](_0x47950c,{'at':_0x28a4e6,'rows':_0x2468e4-_0x28a4e6+0x1});}),_0x51c16a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5e16d1=>{const _0x2ee05a=_0x5e16d1['map'](_0x828fd8=>_0x828fd8['getContainedElement']()),_0xa198a5=_0x2ee05a[0x0]['findAncestor']('table'),{minColumn:_0x5e1e3d,maxColumn:_0x4183af}=_0x4671b9['_getCoordsForCells'](_0x2ee05a);_0x5c2938['removeColumns'](_0xa198a5,{'at':_0x5e1e3d,'columns':_0x4183af-_0x5e1e3d+0x1});});const _0x34ff37=(_0x5bc5d5,_0xefd1e0)=>{if(!_0xefd1e0['subType']||!_0xefd1e0['subType']['startsWith']('tablePaste'))return;const _0x3c0edd=_0xefd1e0['attributes']['tablePasteChainId'],_0x271a2b=_0x51c16a['getSuggestions']()['filter'](_0x5a0f07=>_0x5a0f07['isInContent']&&_0x5a0f07['attributes']&&_0x5a0f07['attributes']['tablePasteChainId']==_0x3c0edd);_0x271a2b['length']&&_0xefd1e0['getAllAdjacentSuggestions']()['length']!=_0x271a2b['length']&&_0x271a2b['reduce']((_0x4f093f,_0x3f13d2)=>(_0x4f093f['next']=_0x3f13d2,_0x3f13d2['previous']=_0x4f093f,_0x3f13d2));};function _0x576d85(_0x3fbf89,_0x3bd089=!0x0){const {id:_0x15ac92}=_0x51c16a['_splitMarkerName'](_0x3fbf89['markerName']),_0x444323=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xdb1bb0=_0x51c16a['activeMarkers']['includes'](_0x3fbf89['markerName']);return _0xdb1bb0&&_0x444323['push']('ck-suggestion-marker--active'),{'classes':_0x444323,'attributes':{'data-suggestion':_0x15ac92},'priority':_0xdb1bb0&&_0x3bd089?0xbc2:0xbb8};}_0x51c16a['on']('suggestionLoaded',_0x34ff37,{'priority':'high'}),_0x51c16a['on']('suggestionUnloaded',_0x34ff37,{'priority':'high'}),_0x346ba9['model']['document']['registerPostFixer'](()=>{let _0x2ad077=!0x1;const _0x4a5bb3=Array['from'](_0x346ba9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x42a199,data:_0x2d50f0}of _0x4a5bb3){const {group:_0x396b17,type:_0x43dfca,id:_0x155179}=_0x51c16a['_splitMarkerName'](_0x42a199);if('suggestion'!=_0x396b17||'deletion'!=_0x43dfca||_0x2d50f0['oldRange'])continue;if(!_0x51c16a['hasSuggestion'](_0x155179))continue;const _0x8a9826=_0x51c16a['getSuggestion'](_0x155179)['getRanges'](),_0x395718=_0x346ba9['plugins']['get']('Users')['me'];for(const _0x15363d of _0x51c16a['getSuggestions']()){if(!_0x15363d['isInContent']||_0x15363d['author']!=_0x395718)continue;if('formatBlock'!=_0x15363d['type']||'tablePasteCell'!=_0x15363d['subType'])continue;if(_0x15363d['getRanges']()['every'](_0x3af877=>_0x8a9826['some'](_0x49845a=>_0x49845a['containsRange'](_0x3af877,!0x0)))){for(const _0x40ba51 of _0x15363d['getAllAdjacentSuggestions']())_0x40ba51['isInContent']&&(_0x40ba51['discard'](),_0x2ad077=!0x0);}}}return _0x2ad077;}),_0x346ba9['model']['document']['registerPostFixer'](_0x5dcff2=>{const _0x48795e=_0x346ba9['commands']['get']('redo');if(!_0x48795e||!_0x48795e['_createdBatches']['has'](_0x5dcff2['batch']))return!0x1;let _0x7b7821=!0x1;const _0x11aea2=_0x346ba9['plugins']['get']('Users')['me'],_0x282d62=_0x346ba9['model']['document']['differ']['getChanges'](),_0x49a563=Array['from'](_0x346ba9['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3449cc,data:_0x2d48f2})=>{const {group:_0xb20ddb,subType:_0x155ad3,authorId:_0x404e34}=_0x51c16a['_splitMarkerName'](_0x3449cc);return'suggestion'==_0xb20ddb&&'tablePaste'==_0x155ad3&&_0x404e34==_0x11aea2['id']&&!_0x2d48f2['oldRange'];});for(const _0x46519f of _0x282d62){if('insert'!=_0x46519f['type']||'tableCellSuggestion'!=_0x46519f['name']||0x1!=_0x46519f['length'])continue;const _0x25654f=_0x5dcff2['createRange'](_0x46519f['position'],_0x46519f['position']['getShiftedBy'](0x1));if(!_0x49a563['find'](({data:_0x51d8b3})=>_0x51d8b3['newRange']['isEqual'](_0x25654f))){for(const {name:_0x473a70,data:_0x51cffb}of _0x49a563)if(_0x25654f['containsRange'](_0x51cffb['newRange'])){_0x5dcff2['updateMarker'](_0x473a70,{'range':_0x25654f}),_0x7b7821=!0x0;break;}}}return _0x7b7821;}),_0x346ba9['model']['document']['registerPostFixer'](_0x5df91e=>{let _0x28a24c=!0x1;const _0x3b7c0a=_0x346ba9['plugins']['get']('Users')['me'],_0x43421c=_0x51c16a['getSuggestions']()['filter'](_0xda221e=>_0xda221e['isInContent']&&_0xda221e['author']==_0x3b7c0a),_0x58d63a=new Set(),_0x3935a0=new Set();for(const _0x5d6a69 of _0x43421c)if('tablePaste'==_0x5d6a69['subType'])for(const _0x569ce8 of _0x5d6a69['getMarkers']()){const _0xa559b=_0x569ce8['getRange']()['getContainedElement']();if(_0xa559b){if(_0xa559b['is']('element','tableCellSuggestion')&&Pe(_0xa559b)){_0x5d6a69['removeMarker'](_0x569ce8['name']),_0x58d63a['add'](_0xa559b),_0x28a24c=!0x0;const _0x2bd883=_0xa559b['nextSibling'],_0x1fa54b=_0xa559b['previousSibling'],_0x42cfe6=_0x2bd883&&_0x2bd883['is']('element','tableCellSuggestion'),_0x2f59fa=_0x1fa54b&&_0x1fa54b['is']('element','tableCellSuggestion');_0x42cfe6&&!_0x58d63a['has'](_0x2bd883)&&_0x3935a0['add'](_0x2bd883),_0x2f59fa&&!_0x58d63a['has'](_0x1fa54b)&&_0x3935a0['add'](_0x1fa54b);}else _0xa559b['is']('element','paragraph')&&_0xa559b['isEmpty']&&(_0x5d6a69['removeMarker'](_0x569ce8['name']),_0x28a24c=!0x0);}}else{if('tablePasteCell'==_0x5d6a69['subType']){if(!_0x5d6a69['attributes']||!_0x5d6a69['attributes']['tablePasteChainId'])continue;const _0x43e885=_0x5d6a69['attributes']['markerAttributes'];if(_0x43e885&&Object['keys'](_0x43e885)['length'])continue;const _0x1b9d7c=_0x5d6a69['attributes']['tablePasteChainId'];let _0x31e433=!0x0,_0x3f9703=!0x0;for(const _0x4636eb of _0x43421c)if(_0x4636eb['subType']&&_0x4636eb['subType']['startsWith']('tablePaste')){if(!_0x4636eb['attributes']['tablePasteChainId']){_0x3f9703=!0x1;break;}if(_0x4636eb['id']!=_0x5d6a69['id']&&_0x4636eb['attributes']['tablePasteChainId']==_0x1b9d7c){_0x31e433=!0x1;break;}}_0x3f9703&&_0x31e433&&(_0x5d6a69['removeMarkers'](),_0x28a24c=!0x0);}}for(const _0x19ab32 of _0x58d63a)_0x5df91e['remove'](_0x19ab32);for(const _0x9de401 of _0x3935a0)_0x5df91e['unwrap'](_0x9de401);return _0x28a24c;}),_0x346ba9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x369ad,_0x231dd2)=>_0x576d85(_0x369ad),'converterPriority':'high'}),_0x346ba9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xfd5f37,_0x475480)=>_0x475480['options']['showSuggestionHighlights']?_0x576d85(_0xfd5f37,!0x1):null,'converterPriority':'high'});const _0x5f41b7=_0x346ba9['editing']['view'];this['listenTo'](_0x5f41b7['document'],'clipboardOutput',(_0x5b74c2,_0x27091b)=>{const _0x3c44e5=[];for(const _0xcefb61 of _0x5f41b7['createRangeIn'](_0x27091b['content'])['getItems']())_0xcefb61['is']('element','suggestion-td')&&_0x3c44e5['push'](_0xcefb61);_0x5f41b7['change'](_0x277aa9=>{for(const _0x3efa6f of _0x3c44e5)_0x277aa9['move'](_0x277aa9['createRangeIn'](_0x3efa6f),_0x277aa9['createPositionBefore'](_0x3efa6f)),_0x277aa9['remove'](_0x3efa6f);});});}}function Pe(_0x3e902c){if(_0x3e902c['isEmpty'])return!0x0;const _0x5e9e54=_0x3e902c['getChild'](0x0);return _0x5e9e54['is']('element','paragraph')&&_0x5e9e54['isEmpty'];}function he(_0x5db4a3,_0xdf648e={},_0x17fb3c){for(const {isAnchor:_0x3c8eba,cellHeight:_0x2ac4da,cellWidth:_0x2ca779}of _0x17fb3c['createTableWalker'](_0x5db4a3,{'includeAllSlots':!0x0,..._0xdf648e}))if(!_0x3c8eba||0x1!=_0x2ac4da||0x1!=_0x2ca779)return!0x1;return!0x0;}class vt extends _0x5031ea{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x137621=this['editor']['plugins']['get']('TrackChangesEditing');_0x137621['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x137621['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x137621['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x137621['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x137621['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x137621['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x235050,_0x1dea60){const _0x3f9173=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5797bf=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x594b65=_0x1dea60['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x20b643=_0x5797bf['getColumnGroupElement'](_0x594b65);let _0x58befb=_0x20b643?_0x5797bf['getTableColumnsWidths'](_0x20b643):null,_0x5722ae=_0x594b65['getAttribute']('tableWidth')||null;const _0x2c79e5=_0x1dea60['tableWidth']||_0x5722ae,_0x4b4509=_0x1dea60['columnWidths']||_0x58befb,_0x7865a5=this['editor']['plugins']['get']('Users')['me'];for(const _0x3086b0 of _0x3f9173['getSuggestions']()){const _0x53c8e3=_0x3086b0['getContainedElement']();if('resizeTable'===_0x3086b0['subType']&&_0x53c8e3===_0x594b65){_0x3086b0['author']!==_0x7865a5&&_0x3086b0['discard']();const _0x511b50=_0x3086b0['data']['commandParams'];_0x5722ae=_0x511b50[0x0]['tableWidth'],_0x58befb=_0x511b50[0x0]['columnWidths'];break;}}_0x235050({'table':_0x594b65,'tableWidth':_0x2c79e5,'columnWidths':_0x4b4509}),_0x3f9173['markBlockFormat'](_0x594b65,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5722ae,'columnWidths':_0x58befb}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1f026a){if('formatBlock'!=_0x1f026a['type']&&'formatInline'!=_0x1f026a['type'])return;const {data:_0x34d6e7}=_0x1f026a;if(_0x34d6e7&&'resizeTable'===_0x34d6e7['formatGroupId']){const _0x328a09='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x328a09)};}}}class Ct extends _0x5031ea{['afterInit'](){const _0x29ddad=this['editor'];_0x29ddad['plugins']['has']('Template')&&_0x29ddad['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x5031ea{['afterInit'](){const _0x27bf9c=this['editor'];if(!_0x27bf9c['commands']['get']('insertTableOfContents'))return;_0x27bf9c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1ced8e=_0x27bf9c['plugins']['get']('TrackChangesEditing'),_0x52052f=_0x27bf9c['locale'];_0x1ced8e['descriptionFactory']['registerElementLabel']('tableOfContents',_0x199376=>o(_0x52052f,'ELEMENT_TABLE_OF_CONTENTS',_0x199376));}}class Dt extends _0x5031ea{['afterInit'](){const _0x4e1d02=this['editor'];if(!_0x4e1d02['plugins']['has']('Title'))return;const _0x952888=_0x4e1d02['plugins']['get']('TrackChangesEditing');_0x952888['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4e1d02['locale'],'ELEMENT_TITLE')),_0x4e1d02['model']['document']['registerPostFixer'](_0x1eeda8=>{let _0x16f658=!0x1;const _0x270736=Array['from'](_0x4e1d02['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4b0878,data:_0x463c10}of _0x270736){const {group:_0x194786}=_0x952888['_splitMarkerName'](_0x4b0878);if('suggestion'!==_0x194786||!_0x463c10['newRange'])continue;const _0x52ae51=_0x463c10['newRange'],_0x19d65d=_0x52ae51['end']['nodeBefore'];if(!_0x19d65d||!_0x19d65d['is']('element','title-content'))continue;if(!_0x52ae51['start']['isTouching'](_0x52ae51['end']))continue;const _0x52f7ce=_0x4e1d02['model']['schema']['getNearestSelectionRange'](_0x52ae51['end'],'forward');if(_0x52f7ce&&_0x52f7ce['isCollapsed']){const _0x3d2fe0=_0x1eeda8['createRange'](_0x52ae51['start'],_0x52f7ce['start']);_0x3d2fe0['isEqual'](_0x52ae51)||(_0x1eeda8['updateMarker'](_0x4b0878,{'range':_0x3d2fe0}),_0x16f658=!0x0);}_0x16f658||(_0x1eeda8['removeMarker'](_0x4b0878),_0x16f658=!0x0);}return _0x16f658;});}}class Nt extends _0x5031ea{['afterInit'](){const _0x102ab9=this['editor'],_0x216a91=_0x102ab9['plugins']['get']('TrackChangesEditing');_0x102ab9['plugins']['has']('UndoEditing')&&(_0x216a91['enableCommand']('undo'),_0x216a91['enableCommand']('redo'));}}class Mt extends _0x5031ea{static get['requires'](){return[jt];}['afterInit'](){const _0x495cde=this['editor'];if(!_0x495cde['plugins']['has']('TableCaptionEditing'))return;_0x495cde['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x5031ea{['tableProperties'];['tableCellProperties'];constructor(_0x3da7ad){super(_0x3da7ad),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x2ef25d=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x50c684 of this['tableProperties'])_0x2ef25d['enableCommand'](_0x50c684,(_0x40eacc,_0x4bfef7)=>{const _0x4f910f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x50c684,[_0x4f910f],this['tableProperties'],'tableProperties',_0x40eacc,_0x4bfef7);});_0x2ef25d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2ef25d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2ef25d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x26c883,_0x4b864b)=>this['handleDiscardAction'](this['tableProperties'],_0x26c883,_0x4b864b)),_0x2ef25d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x485117 of this['tableCellProperties'])_0x2ef25d['enableCommand'](_0x485117,(_0x3ac838,_0x30b3fc)=>{const _0xb1fda0=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x485117,_0xb1fda0,this['tableCellProperties'],'tableCellProperties',_0x3ac838,_0x30b3fc);});_0x2ef25d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2ef25d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2ef25d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x49c485,_0x3439f3)=>this['handleDiscardAction'](this['tableCellProperties'],_0x49c485,_0x3439f3)),_0x2ef25d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2ef25d['descriptionFactory']['registerDescriptionCallback'](_0x4782bb=>this['handleSuggestionDescription'](_0x4782bb));}['_handlePropertyChange'](_0x12f99c,_0x5cf42f,_0x11c68c,_0x3843e6,_0x2e68bc,_0x1d6d27){const _0x3f8d88=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1d6d27['batch'],()=>{for(const _0x2b1772 of _0x5cf42f){if(this['_getSuggestion'](_0x2b1772,_0x3843e6))_0x2e68bc(_0x1d6d27);else{const _0x1f5e6d={};for(const _0x5389b6 of _0x11c68c){const _0x5324b6=_0x2b1772['getAttribute'](_0x5389b6);void 0x0!==_0x5324b6&&(_0x1f5e6d[_0x5389b6]=_0x5324b6);}_0x2e68bc(_0x1d6d27),_0x3f8d88['markBlockFormat'](_0x2b1772,{'commandParams':[_0x1f5e6d]},[],_0x3843e6);}}});}['handleDiscardAction'](_0x1bedc0,_0x4124e4,_0x24b7b7){const _0x303df3=_0x4124e4[0x0]['start']['nodeAfter'],_0x269745=_0x24b7b7['commandParams'][0x0];this['editor']['model']['change'](_0x27f0a7=>{for(const _0x4a79bd of _0x1bedc0)void 0x0!==_0x269745[_0x4a79bd]?_0x27f0a7['setAttribute'](_0x4a79bd,_0x269745[_0x4a79bd],_0x303df3):_0x27f0a7['removeAttribute'](_0x4a79bd,_0x303df3);});}['handleSuggestionDescription'](_0xd034fc){if(_0xd034fc['data'])switch(_0xd034fc['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'](_0x42afa6,_0x3ad429){const _0x377b5a=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x26f67d of _0x377b5a['getSuggestions']({'skipNotAttached':!0x0})){const _0x174b84=_0x26f67d['getContainedElement']();if(_0x26f67d['subType']===_0x3ad429&&_0x174b84===_0x42afa6)return _0x26f67d;}return null;}}const m='$elementName';class p extends _0x5031ea{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x18a2fd,_0x557551,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x222c98){function _0x1dca63(_0x2c1c48){return _0x2c1c48['map'](_0x53f30d=>String['fromCharCode'](_0x53f30d))['join']('');}super(_0x222c98),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x536a60,_0x5eb61b,_0x4d5e27,_0x131ba4)=>{this['_model']['change'](()=>{for(const _0x1521db of[..._0x131ba4,..._0x4d5e27])this['_model']['markers']['has'](_0x1521db)&&_0x222c98['editing']['reconvertMarker'](_0x1521db);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x222c98['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x222c98['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x222c98['config']['get']('trackChanges.trackFormatChanges'),_0x222c98['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x222c98['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x222c98,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x1dca63([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1dca63([0x34,0x30,0x34,0x38,0x31,0x34,0x31,0x32]);}['init'](){const _0x5b167e=this['editor'],_0x47b8fc=(_0x3e1196,_0x18d553)=>{if('attribute'!=_0x3e1196)return'ck-suggestion-marker-'+_0x3e1196;const _0x51b03f=_0x18d553['split']('|')[0x0];return this['_isBlockAttribute'](_0x51b03f)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5b167e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x298491=>{const {id:_0xb9070b,type:_0x92ab73,subType:_0x40384f}=this['_splitMarkerName'](_0x298491['markerName']),_0x1f2572=['ck-suggestion-marker',_0x47b8fc(_0x92ab73,_0x40384f)];let _0x1d537f=0xbb8;return this['activeMarkers']['includes'](_0x298491['markerName'])&&(_0x1f2572['push']('ck-suggestion-marker--active'),_0x1d537f=0xbc2),'deletion'==_0x92ab73&&(_0x1d537f+=0x5),{'classes':_0x1f2572,'attributes':{'data-suggestion':_0xb9070b},'priority':_0x1d537f};}}),_0x5b167e['conversion']['for']('dataDowncast')['add'](_0x3e277e=>{_0x3e277e['on']('addMarker:suggestion',(_0x20dedf,_0x23dacd,_0x4a9291)=>{if(!_0x4a9291['options']['showSuggestionHighlights'])return;const _0x47b441=_0x23dacd['item'];if(!_0x47b441)return;const _0x333e7f=_0x4a9291['mapper']['toViewElement'](_0x47b441);_0x5b167e['model']['schema']['isObject'](_0x47b441)&&_0x333e7f&&!_0x333e7f['getCustomProperty']('widget')&&_0x333e7f['is']('containerElement')&&_0x587dc6(_0x333e7f,_0x4a9291['writer']);},{'priority':'high'});}),_0x5b167e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x375e3e,_0x3ef85d)=>{if(!_0x3ef85d['options']['showSuggestionHighlights'])return null;const {type:_0xd85739,subType:_0x3177c5}=this['_splitMarkerName'](_0x375e3e['markerName']);return{'classes':['ck-suggestion-marker',_0x47b8fc(_0xd85739,_0x3177c5)],'priority':0xbb8};}});const _0x52ad75=({showActiveMarkers:_0xb1783a=!0x0,isAttributeSuggestion:_0x2624ee=!0x1}={})=>(_0x2cda76,_0x3ffa41,_0x187e85)=>{if(!_0x3ffa41['item'])return;const {id:_0x149281}=this['_splitMarkerName'](_0x3ffa41['markerName']);if(_0x2624ee){const _0x5d9fa2=this['_suggestions']['get'](_0x149281),_0x4084cc=this['_getAttributeKey'](_0x5d9fa2);if(!this['_isBlockAttribute'](_0x4084cc))return;}if(_0x3ffa41['item']['is']('selection'))return void _0x187e85['consumable']['consume'](_0x3ffa41['item'],_0x2cda76['name']);const _0x46a45d=_0x187e85['mapper']['toViewElement'](_0x3ffa41['item']);if(_0x3ffa41['item']['is']('element')&&_0x5b167e['model']['schema']['isBlock'](_0x3ffa41['item'])&&!_0x46a45d['getCustomProperty']('addHighlight')){_0x187e85['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x46a45d),_0x187e85['writer']['setAttribute']('data-suggestion',_0x149281,_0x46a45d),_0x187e85['mapper']['bindElementToMarker'](_0x46a45d,_0x3ffa41['markerName']),_0xb1783a&&(this['activeMarkers']['includes'](_0x3ffa41['markerName'])?_0x187e85['writer']['addClass']('ck-suggestion-marker--active',_0x46a45d):_0x187e85['writer']['removeClass']('ck-suggestion-marker--active',_0x46a45d));for(const _0x355691 of _0x5b167e['model']['createRangeIn'](_0x3ffa41['item'])['getItems']())_0x187e85['consumable']['consume'](_0x355691,_0x2cda76['name']);_0x187e85['consumable']['consume'](_0x3ffa41['item'],_0x2cda76['name']);}};_0x5b167e['conversion']['for']('dataDowncast')['add'](_0x128dfc=>{_0x128dfc['on']('addMarker:suggestion:formatBlock',(_0x54d63f,_0x1f7e80,_0x2b8f2b)=>{_0x2b8f2b['options']['showSuggestionHighlights']&&_0x52ad75({'showActiveMarkers':!0x1})(_0x54d63f,_0x1f7e80,_0x2b8f2b);},{'priority':'highest'});}),_0x5b167e['conversion']['for']('dataDowncast')['add'](_0x4c29ec=>{_0x4c29ec['on']('addMarker:suggestion:attribute',(_0x3e70cf,_0xcd7a36,_0x813680)=>{_0x813680['options']['showSuggestionHighlights']&&_0x52ad75({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3e70cf,_0xcd7a36,_0x813680);},{'priority':'highest'});}),_0x5b167e['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x23c7c9,_0xb38add)=>_0xb38add['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x23c7c9['substr'](0xb)}}),_0x5b167e['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x527142,{writer:_0x835f35})=>{let _0x4420e1='suggestion:'+_0x527142['getAttribute']('suggestion-type')+':'+_0x527142['getAttribute']('id');return _0x527142['getAttribute']('marker-count')&&(_0x4420e1+=':'+_0x527142['getAttribute']('marker-count')),_0x835f35['createElement']('$marker',{'data-name':_0x4420e1});}}),_0x5b167e['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5b167e['conversion']['for']('editingDowncast')['add'](_0x36a338=>{_0x36a338['on']('addMarker:suggestion:formatBlock',_0x52ad75(),{'priority':'high'});}),_0x5b167e['conversion']['for']('editingDowncast')['add'](_0x15938d=>{_0x15938d['on']('addMarker:suggestion:attribute',_0x52ad75({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5b167e['conversion']['for']('editingDowncast')['add'](_0x3cc46b=>{_0x3cc46b['on']('removeMarker:suggestion:formatBlock',(_0x199c3d,_0x5b2a7d,_0x6607c)=>{const _0x272d3b=_0x6607c['mapper']['markerNameToElements'](_0x5b2a7d['markerName']);if(_0x272d3b){for(const _0x2a2a9d of _0x272d3b)_0x2a2a9d['getCustomProperty']('addHighlight')||(_0x6607c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2a2a9d),_0x6607c['writer']['removeAttribute']('data-suggestion',_0x2a2a9d),_0x6607c['mapper']['unbindElementFromMarkerName'](_0x2a2a9d,_0x5b2a7d['markerName']));}},{'priority':'high'});}),_0x5b167e['conversion']['for']('editingDowncast')['add'](_0x1300db=>{_0x1300db['on']('removeMarker:suggestion:attribute',(_0x407b06,_0x27c3f5,_0x1d90b3)=>{const _0x4afbcb=_0x1d90b3['mapper']['markerNameToElements'](_0x27c3f5['markerName']);if(!_0x4afbcb)return;const {id:_0x598635}=this['_splitMarkerName'](_0x27c3f5['markerName']),_0xc967ee=this['_suggestions']['get'](_0x598635),_0x51540f=this['_getAttributeKey'](_0xc967ee);if(this['_isBlockAttribute'](_0x51540f)){for(const _0x4ae059 of _0x4afbcb)_0x4ae059['getCustomProperty']('addHighlight')||(_0x1d90b3['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4ae059),_0x1d90b3['writer']['removeAttribute']('data-suggestion',_0x4ae059),_0x1d90b3['mapper']['unbindElementFromMarkerName'](_0x4ae059,_0x27c3f5['markerName']));}},{'priority':'high'});}),_0x5b167e['model']['document']['registerPostFixer'](_0x30c6b4=>{let _0x2a5f20=!0x1;const _0x282c7a=Array['from'](_0x5b167e['model']['document']['differ']['getChangedMarkers']()),_0x2ece36=new Set();for(const {name:_0x3d8a75,data:_0x3583b5}of _0x282c7a){const {group:_0x58d194,type:_0x59415b,subType:_0x1e9432,id:_0x1603cd}=this['_splitMarkerName'](_0x3d8a75);if('suggestion'!==_0x58d194)continue;const _0x40f787=this['_suggestions']['get'](_0x1603cd);if(null!=_0x3583b5['newRange']){'formatInline'==_0x59415b&&(_0x2a5f20=_0x2a5f20||Et(_0x3583b5['newRange'],_0x3d8a75,_0x30c6b4,_0x5b167e['model']['schema']));const _0x27c086='attribute'==_0x59415b&&this['_isBlockAttribute'](_0x1e9432['split']('|')[0x0]);if(_0x3583b5['newRange']['isCollapsed']||'$graveyard'==_0x3583b5['newRange']['root']['rootName']||'formatBlock'==_0x59415b&&!Ut(_0x3583b5['newRange'])||_0x27c086&&!Ut(_0x3583b5['newRange'])||'deletion'==_0x59415b&&!(!Tt(_0x279556=_0x3583b5['newRange'])&&!function(_0x32b743){return _0x32b743['start']['parent']==_0x32b743['end']['nodeBefore']&&_0x32b743['start']['isAtEnd'];}(_0x279556)))_0x30c6b4['removeMarker'](_0x3d8a75),_0x2a5f20=!0x0;else{if(!_0x40f787||!_0x40f787['isInContent'])continue;_0x2ece36['add'](_0x40f787);}}}var _0x279556;return _0x2ece36['size']>0x0&&(_0x2a5f20=!!this['_joinWithAdjacentSuggestions'](_0x2ece36)||_0x2a5f20),_0x2a5f20;}),_0x5b167e['model']['document']['registerPostFixer'](_0x3f0eec=>{let _0x36afff=!0x1;for(const _0x166d87 of _0x5b167e['model']['document']['differ']['getChanges']())if('insert'==_0x166d87['type'])for(const _0x297673 of this['_suggestions']['values']()){if(_0x297673['isMultiRange']||!_0x297673['isInContent'])continue;const _0x219afb='formatBlock'==_0x297673['type'],_0x2fd614=this['_getAttributeKey'](_0x297673),_0x2a41f7=_0x2fd614&&this['_isBlockAttribute'](_0x2fd614);if(!_0x219afb&&!_0x2a41f7)continue;const _0x13baea=_0x297673['getFirstRange']();if(_0x13baea['start']['parent']!=_0x13baea['end']['parent']&&!_0x13baea['end']['isAtEnd']){const _0x238bd6=_0x5b167e['model']['createPositionAt'](_0x13baea['start']['nodeAfter'],'end'),_0x37e637=_0x5b167e['model']['createRange'](_0x13baea['start'],_0x238bd6);_0x3f0eec['updateMarker'](_0x297673['getFirstMarker'](),{'range':_0x37e637}),_0x36afff=!0x0;}}return _0x36afff;}),_0x5b167e['model']['document']['registerPostFixer'](_0x423387=>this['_processAttributeChanges'](_0x423387)),_0x5b167e['model']['document']['registerPostFixer'](_0x8b8408=>!_0x8b8408['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x8b8408)),_0x5b167e['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5b167e['model']['document']['on']('change:data',(_0x41d42,_0x2008c1)=>{if(!_0x2008c1['isLocal']||_0x2008c1['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2d064e=_0x5b167e['model']['document']['differ']['getChanges']();if(0x0==_0x2d064e['length'])return;const _0x1b7a9a=[],_0xb2ffe4=_0x2d064e['filter'](_0x5eaaec=>'attribute'==_0x5eaaec['type']),_0x547cdc=_0x2d064e['filter'](_0xa7ab49=>'insert'==_0xa7ab49['type']&&'$text'!=_0xa7ab49['name']);for(const _0x1b8034 of _0xb2ffe4)this['_isRegisteredAttribute'](_0x1b8034['attributeKey'])&&_0x1b7a9a['push']({'key':_0x1b8034['attributeKey'],'newValue':_0x1b8034['attributeNewValue'],'oldValue':_0x1b8034['attributeOldValue'],'range':Ot(_0x1b8034['range'],_0x5b167e['model'])});for(const _0x327bdb of _0x547cdc){if('rename'!=_0x327bdb['action']&&'refresh'!=_0x327bdb['action'])continue;const _0x147f40=Gt(_0x327bdb['position']['nodeAfter'],_0x5b167e['model']),_0x56de54=_0x327bdb['before'];'rename'==_0x327bdb['action']&&_0x1b7a9a['push']({'key':m,'newValue':_0x327bdb['name'],'oldValue':_0x56de54['name'],'range':_0x147f40});for(const [_0x5ea9fc,_0x1f8a41]of _0x56de54['attributes']){if(!this['_isRegisteredAttribute'](_0x5ea9fc))continue;const _0x1de1a5=_0x327bdb['attributes']['get'](_0x5ea9fc);_0x1f8a41!==_0x1de1a5&&_0x1b7a9a['push']({'key':_0x5ea9fc,'newValue':_0x1de1a5,'oldValue':_0x1f8a41,'range':_0x147f40});}for(const [_0x484557,_0x5ce87d]of _0x327bdb['attributes'])this['_isRegisteredAttribute'](_0x484557)&&(_0x56de54['attributes']['has'](_0x484557)||_0x1b7a9a['push']({'key':_0x484557,'newValue':_0x5ce87d,'oldValue':null,'range':_0x147f40}));}0x0!=_0x1b7a9a['length']&&_0x5b167e['model']['enqueueChange'](_0x2008c1,_0x18c36c=>{const _0x465500=_0x9738cc();for(const {range:_0x4c3bdc,key:_0x4a7b29,oldValue:_0x150f42,newValue:_0x10ef7d}of _0x1b7a9a)this['markAttributeChange'](_0x4c3bdc,_0x4a7b29,_0x150f42,_0x10ef7d,{'groupId':_0x465500});this['_reduceExistingSuggestions'](_0x18c36c,_0x1b7a9a);});},{'priority':'lowest'}),_0x5b167e['model']['markers']['on']('update:suggestion',(_0x5546b2,_0x5b3bc5,_0x2c018d)=>{if(null==_0x2c018d){const {id:_0x592fda}=this['_splitMarkerName'](_0x5b3bc5['name']),_0x586fb5=this['_suggestions']['get'](_0x592fda);_0x586fb5&&_0x586fb5['addMarkerName'](_0x5b3bc5['name']);}}),_0x5b167e['model']['document']['on']('change:data',()=>{const _0x904528=Array['from'](_0x5b167e['model']['document']['differ']['getChangedMarkers']())['filter'](_0x171de7=>'suggestion'===this['_splitMarkerName'](_0x171de7['name'])['group']);if(0x0===_0x904528['length'])return;_0x904528['sort']((_0x52c3ee,_0x47e407)=>{const _0x5d759b=_0x52c3ee['data']['oldRange'],_0x424651=_0x47e407['data']['oldRange'];return null===_0x5d759b&&null===_0x424651?0x0:null===_0x5d759b&&null!==_0x424651?-0x1:null!==_0x5d759b&&null===_0x424651?0x1:_0x5d759b['start']['isBefore'](_0x424651['start'])?-0x1:0x1;});const _0x412768=new Set(),_0x594f83=new Set();for(const {name:_0x446937,data:_0x45a86e}of _0x904528){const {id:_0x5df81f}=this['_splitMarkerName'](_0x446937);if(null===_0x45a86e['oldRange']){const _0x407988=this['_handleNewSuggestionMarker'](_0x446937);_0x594f83['add'](_0x407988);}else{const _0x2e9713=this['_suggestions']['get'](_0x5df81f);null!==_0x45a86e['newRange']||_0x2e9713['isInContent']?(_0x412768['add'](_0x2e9713['head']),_0x594f83['add'](_0x2e9713)):this['_removeSuggestion'](_0x2e9713);}}_0x594f83['size']>0x0&&this['_refreshSuggestionsChain'](_0x594f83);for(const _0xeb06ae of _0x412768)this['fire']('suggestionChanged',_0xeb06ae);}),_0x5b167e['model']['on']('applyOperation',(_0x2f5cb1,_0x4086c8)=>{const _0x5a9fc2=_0x4086c8[0x0];if(!this['_suggestions']['size'])return;if(!_0x5a9fc2['isDocumentOperation'])return;if(_0x5a9fc2['batch']['isUndo']||!_0x5a9fc2['batch']['isLocal'])return;let _0x1d6a08,_0x4d138c;switch(_0x5a9fc2['type']){case'insert':_0x1d6a08=_0x5b167e['model']['createPositionAt'](_0x5a9fc2['position']),_0x4d138c=_0x1d6a08['getShiftedBy'](_0x5a9fc2['howMany']);break;case'split':_0x1d6a08=_0x5b167e['model']['createPositionAt'](_0x5a9fc2['splitPosition']),_0x4d138c=_0x5b167e['model']['createPositionAt'](_0x5a9fc2['moveTargetPosition']);break;case'move':_0x1d6a08=_0x5b167e['model']['createPositionAt'](_0x5a9fc2['targetPosition']),_0x4d138c=_0x1d6a08['getShiftedBy'](_0x5a9fc2['howMany']);break;default:return;}const _0x23f859=_0x5b167e['model']['createRange'](_0x1d6a08,_0x4d138c);_0x5b167e['model']['change'](()=>{for(const {suggestion:_0x512629,meta:_0x28786c}of this['_findSuggestions'](_0x23f859)){if(_0x512629['isMultiRange'])continue;if('formatInline'==_0x512629['type'])continue;const _0x233968=this['_getAttributeKey'](_0x512629);if(_0x233968&&this['_isBlockAttribute'](_0x233968)&&'split'!=_0x5a9fc2['type'])continue;const _0x5e725b=_0x512629['data']&&_0x512629['data']['multipleBlocks'];('formatBlock'!=_0x512629['type']||'split'==_0x5a9fc2['type']&&!_0x5e725b)&&(_0x28786c['containsRangeInObject']||'insertion'==_0x512629['type']&&_0x28786c['isOwn']||_0x512629['getFirstRange']()['containsRange'](_0x23f859)&&this['_breakSuggestionMarker'](_0x512629,_0x1d6a08,_0x4d138c));}});},{'priority':'lowest'}),_0x5b167e['model']['on']('deleteContent',(_0x6ee628,_0x534fd3)=>{const _0x15ae8c=_0x534fd3[0x0],_0x4ef694=_0x534fd3[0x1];if(_0x4ef694&&_0x4ef694['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x15ae8c['isCollapsed'])return;const _0x3bc332=_0x5b167e['model']['schema'],{start:_0x58173a,end:_0x27b883}=_0x15ae8c['getFirstRange'](),_0x330a6d=_0x58173a['nodeAfter']&&_0x3bc332['isLimit'](_0x58173a['nodeAfter'])?null:_0x3bc332['getNearestSelectionRange'](_0x58173a,'forward'),_0x2a04ca=_0x27b883['nodeBefore']&&_0x3bc332['isLimit'](_0x27b883['nodeBefore'])?null:_0x3bc332['getNearestSelectionRange'](_0x27b883,'backward'),_0x59b757=_0x5b167e['model']['createRange'](_0x330a6d?_0x330a6d['start']:_0x58173a,_0x2a04ca?_0x2a04ca['end']:_0x27b883);_0x5b167e['model']['change'](_0x493b81=>{this['markDeletion'](_0x59b757);const _0x4957bc=_0x5b167e['model']['schema']['getNearestSelectionRange'](_0x59b757['start']);_0x15ae8c['is']('documentSelection')?_0x493b81['setSelection'](_0x4957bc):_0x15ae8c['setTo'](_0x4957bc);}),_0x6ee628['stop']();},{'priority':_0x80f00['normal']+0xa}),_0x5b167e['model']['on']('insertContent',(_0x3cf48d,_0xbbbf21)=>{const _0x472d2b=_0xbbbf21[_0xbbbf21['length']-0x1];_0x472d2b&&_0x472d2b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5b167e['model']['change'](()=>{let _0xf7879c=_0x5b167e['model']['insertContent'](_0xbbbf21[0x0],_0xbbbf21[0x1],_0xbbbf21[0x2],{'forceDefaultExecution':!0x0});if(!_0xf7879c)return;_0x3cf48d['return']=_0xf7879c['clone']();const _0x5cd855=_0xf7879c['end']['nodeBefore'],_0x10c91b=_0x5b167e['model']['schema'];_0x5cd855&&_0x10c91b['isBlock'](_0x5cd855)&&!_0x10c91b['isObject'](_0x5cd855)&&(_0xf7879c=_0x5b167e['model']['createRange'](_0xf7879c['start'],_0x5b167e['model']['createPositionAt'](_0x5cd855,'end'))),this['markInsertion'](_0xf7879c);}),_0x3cf48d['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x442b3c=new $(_0x5b167e,this['_suggestions']);_0x5b167e['commands']['add']('acceptSuggestion',_0x442b3c),this['enableCommand']('acceptSuggestion');const _0x3c3f77=new B(_0x5b167e,this['_suggestions']);_0x5b167e['commands']['add']('discardSuggestion',_0x3c3f77),this['enableCommand']('discardSuggestion'),_0x5b167e['commands']['add']('acceptAllSuggestions',new x(_0x5b167e,_0x442b3c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5b167e['commands']['add']('discardAllSuggestions',new x(_0x5b167e,_0x3c3f77,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5b167e['commands']['add']('acceptSelectedSuggestions',new R(_0x5b167e,_0x442b3c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5b167e['commands']['add']('discardSelectedSuggestions',new R(_0x5b167e,_0x3c3f77,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x52b04c=_0x5b167e['plugins']['get']('CommentsRepository');this['listenTo'](_0x52b04c,'addComment',(_0x90f375,{threadId:_0x600443})=>{const _0x9c7b7f=this['_suggestions']['get'](_0x600443);_0x9c7b7f&&_0x9c7b7f['commentThread']&&0x1===_0x9c7b7f['commentThread']['length']&&this['_updateSuggestionData'](_0x600443,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x52b04c,'removeComment',(_0x106be0,{threadId:_0x1be916})=>{const _0x296c31=this['_suggestions']['get'](_0x1be916);_0x296c31&&_0x296c31['commentThread']&&!_0x296c31['commentThread']['length']&&this['_updateSuggestionData'](_0x1be916,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x3da7f1){if(this['_adapter'])throw new _0xcb8e69('track-changes-adapter-already-set',this);this['_adapter']=_0x3da7f1;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2a434c=!0x1,toJSON:_0x50613c=!0x1}={}){const _0x3b36b7=[];for(const _0x2eb268 of this['_suggestions']['values']())_0x2a434c&&!_0x2eb268['isInContent']||_0x3b36b7['push'](_0x2eb268);return _0x50613c?_0x3b36b7['map'](_0x4df541=>_0x4df541['toJSON']()):_0x3b36b7;}['getSuggestion'](_0x222031){const _0x529044=this['_suggestions']['get'](_0x222031);if(!_0x529044)throw new _0xcb8e69('track-changes-suggestion-not-found',this);return _0x529044;}['hasSuggestion'](_0x5de736){return this['_suggestions']['has'](_0x5de736);}['addSuggestionData'](_0x3b742e){const {authorId:_0x2d2cd1,id:_0x1e1af5,attributes:_0x40e416}=_0x3b742e,[_0x27eede,_0x2dd2f1]=_0x3b742e['type']['split'](':'),_0x4b3bd6=this['_suggestions']['get'](_0x1e1af5)||this['_createSuggestion'](_0x27eede,_0x2dd2f1,_0x1e1af5,_0x2d2cd1,_0x40e416);if(this['_addThreadToSuggestion'](_0x4b3bd6),this['_checkSuggestionCorrectness'](_0x4b3bd6,_0x27eede,_0x2dd2f1||null,_0x2d2cd1),_0x4b3bd6['createdAt']=_0x3b742e['createdAt'],_0x4b3bd6['_isDataLoaded']=!0x0,_0x40e416&&_0x40e416['@external']){const _0x52b06d=_0x40e416['@external'],_0x73495c=this['_getExternalAuthor'](_0x52b06d['authorName']);_0x4b3bd6['authoredAt']=_0x52b06d['createdAt'],_0x4b3bd6['author']=_0x73495c,_0x4b3bd6['isExternal']=!0x0;}else _0x4b3bd6['authoredAt']=_0x3b742e['createdAt'];switch(_0x3b742e['data']&&(_0x4b3bd6['data']=_0x3b742e['data']),_0x3b742e['attributes']&&(_0x4b3bd6['attributes']=_0x3b742e['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4b3bd6['_saved']=!0x0),this['_suggestionState']['get'](_0x4b3bd6)){case'notReady':this['_suggestionState']['set'](_0x4b3bd6,'dataReady');break;case'markerReady':_0x4b3bd6['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4b3bd6])),this['_refreshSuggestionsChain'](new Set([_0x4b3bd6])),this['_suggestionState']['set'](_0x4b3bd6,'ready'),this['fire']('suggestionLoaded',_0x4b3bd6)):this['_suggestionState']['set'](_0x4b3bd6,'removed');}return _0x4b3bd6;}['acceptSuggestion'](_0x2b9325){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x32d87f of _0x2b9325['getAllAdjacentSuggestions']())_0x32d87f['accept']();});});}['discardSuggestion'](_0x27d94f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4e0339 of _0x27d94f['getAllAdjacentSuggestions']())_0x4e0339['discard']();});});}['enableCommand'](_0x112af3,_0x2403dd){const _0x169ba0=this['editor']['commands']['get'](_0x112af3);if(!_0x169ba0)throw new _0xcb8e69('track-changes-command-not-found',this,{'commandName':_0x112af3});if(this['_enabledCommands']['has'](_0x169ba0))throw new _0xcb8e69('track-changes-enable-command-twice',this,{'commandName':_0x112af3});this['_enabledCommands']['add'](_0x169ba0),_0x2403dd&&_0x169ba0['on']('execute',(_0x59610e,_0x3ac7f9)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3ac7f9['length']>0x0&&_0x3ac7f9[_0x3ac7f9['length']-0x1]&&_0x3ac7f9[_0x3ac7f9['length']-0x1]['forceDefaultExecution']?_0x3ac7f9['pop']():(_0x59610e['return']=_0x2403dd((..._0x32bfd3)=>_0x169ba0['execute'](..._0x32bfd3,{'forceDefaultExecution':!0x0}),..._0x3ac7f9),_0x59610e['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5f070e){let _0x42774f,_0x2ee160;const _0x43c59d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x42774f=_0x5f070e();}catch(_0x30a3e3){_0x2ee160=_0x30a3e3;}return _0x43c59d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2ee160&&_0xcb8e69['rethrowUnexpectedError'](_0x2ee160,this),_0x42774f;}['markInsertion'](_0x1ba302,_0x15a257=null,_0x9da2d4={}){if(_0x1ba302['isCollapsed'])return null;const _0x472099=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x12d8f6,meta:_0x5f1139}of this['_findSuggestions'](_0x1ba302,'insertion'))if(_0x5f1139['isOwn']){if(!_0x5f1139['isNextTo']){if(_0x5f1139['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x12d8f6,_0x9da2d4))continue;return _0x12d8f6;}if(Lt(_0x12d8f6,_0x9da2d4))return _0x12d8f6;this['_breakSuggestionMarker'](_0x12d8f6,_0x1ba302['start'],_0x1ba302['end']);break;}if(_0x15a257==_0x12d8f6['subType']&&Lt(_0x12d8f6,_0x9da2d4)){const _0x5ad1bb=_0x12d8f6['getFirstRange']();return _0x5ad1bb['start']['isEqual'](_0x1ba302['end'])?this['_setSuggestionRange'](_0x12d8f6,this['_model']['createRange'](_0x1ba302['start'],_0x5ad1bb['end'])):this['_setSuggestionRange'](_0x12d8f6,this['_model']['createRange'](_0x5ad1bb['start'],_0x1ba302['end'])),_0x12d8f6;}}const _0x177192=_0x9738cc(),_0x413a69=_0x472099['id'],_0x390473=_0x15a257?'insertion:'+_0x15a257:'insertion',_0x2a247a=this['_setSuggestionData']({'id':_0x177192,'type':_0x390473,'createdAt':new Date(),'authorId':_0x413a69,'attributes':_0x9da2d4});return this['_addSuggestionMarker'](_0x390473,_0x177192,_0x413a69,_0x1ba302),_0x2a247a;}['markMultiRangeInsertion'](_0x4d09d2,_0x2e0a9d='multi',_0x566548={}){const _0xe5fef=this['editor']['plugins']['get']('Users')['me'],_0x474984=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2e0a9d,'join');for(const _0x1cc99c of this['getSuggestions']())if(_0x1cc99c['author']['id']==_0xe5fef['id']&&'insertion'==_0x1cc99c['type']&&_0x1cc99c['subType']==_0x2e0a9d&&Lt(_0x1cc99c,_0x566548)&&(_0x474984(_0x1cc99c['getRanges'](),_0x4d09d2)||_0x474984(_0x4d09d2,_0x1cc99c['getRanges']()))){for(const _0xeb208e of _0x4d09d2)_0x1cc99c['addRange'](_0xeb208e);return _0x1cc99c;}for(const {suggestion:_0x38030f,meta:_0x242dc4}of this['_findSuggestions'](_0x4d09d2,'insertion')){if(!_0x242dc4['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x242dc4['containsRangeInObject'])continue;if(!Lt(_0x38030f,_0x566548))continue;let _0x1abf46=!0x0;for(const _0x1f5b32 of _0x38030f['getRanges']())for(const _0x511f33 of _0x4d09d2)if(!_0x1f5b32['containsRange'](_0x511f33)){_0x1abf46=!0x1;break;}if(_0x1abf46)return _0x38030f;}const _0x8b7d8a=_0x9738cc(),_0x46a7ad=_0xe5fef['id'],_0x2402f9='insertion:'+_0x2e0a9d,_0x195534=this['_setSuggestionData']({'id':_0x8b7d8a,'type':_0x2402f9,'createdAt':new Date(),'authorId':_0x46a7ad,'attributes':_0x566548});for(const _0x274161 of _0x4d09d2)this['_addSuggestionMarker'](_0x2402f9,_0x8b7d8a,_0x46a7ad,_0x274161,u['getMultiRangeId']());return _0x195534;}['markInlineFormat'](_0x42a70c,_0x1d3076,_0x253ba6=null,_0x2079f1={}){if(_0x253ba6=_0x253ba6||Vt(_0x1d3076),_0x42a70c['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5aef22=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x253ba6,'accept');return this['forceDefaultExecution'](()=>_0x5aef22([_0x42a70c],_0x1d3076,_0x2079f1)),null;}const _0x1c9008=this['editor']['plugins']['get']('Users')['me'],_0x1d5640=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x209d1e,meta:_0x289f73}of this['_findSuggestions'](_0x42a70c,'insertion'))_0x289f73['isOwn']&&!_0x289f73['isInsideObject']&&_0x1d5640['push'](..._0x209d1e['getRanges']());}const _0x297ebd=function(_0x3917b5,_0x1aba58){const _0x239ac3=[];for(const _0x3ebd70 of _0x1aba58){const _0x39b66b=_0x3917b5['getIntersection'](_0x3ebd70);_0x39b66b&&_0x239ac3['push'](_0x39b66b);}return _0x239ac3;}(_0x42a70c,_0x1d5640),_0x18d729=function(_0x2871ac,_0x588fbb){const _0x565be3=[_0x2871ac];for(const _0x3c4853 of _0x588fbb){let _0x401675=0x0;for(;_0x401675<_0x565be3['length'];){const _0x4c38ce=_0x565be3[_0x401675]['getDifference'](_0x3c4853);_0x565be3['splice'](_0x401675,0x1,..._0x4c38ce),_0x401675+=_0x4c38ce['length'];}}return _0x565be3;}(_0x42a70c,_0x1d5640);_0x297ebd['length']&&this['_model']['change'](()=>{for(const _0x5ef3af of _0x297ebd){const _0x1c262e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x253ba6,'accept');this['forceDefaultExecution'](()=>_0x1c262e([_0x5ef3af],_0x1d3076,_0x2079f1));}});for(const _0x1e6f83 of _0x18d729){let _0x59b39f=null,_0x502a4f=_0x1e6f83['start'],_0x37bb97=_0x1e6f83['end'];for(const {suggestion:_0x552db3,meta:_0x1f0e34}of this['_findSuggestions'](_0x1e6f83,'formatInline')){if(!_0x1f0e34['isOwn'])continue;if(_0x552db3['subType']!=_0x253ba6)continue;if(!Lt(_0x552db3,_0x2079f1))continue;const _0x10e9ce=_0x552db3['getFirstRange']();if(_0x10e9ce['containsRange'](_0x1e6f83,!0x0))return null;_0x502a4f=_0x502a4f['isBefore'](_0x10e9ce['start'])?_0x502a4f:_0x10e9ce['start'],_0x37bb97=_0x37bb97['isAfter'](_0x10e9ce['end'])?_0x37bb97:_0x10e9ce['end'],_0x59b39f?_0x10e9ce['start']['isBefore'](_0x59b39f['getFirstRange']()['start'])?(_0x59b39f['removeMarkers'](),_0x59b39f=_0x552db3):_0x552db3['removeMarkers']():_0x59b39f=_0x552db3;}const _0x535ca0=this['_model']['createRange'](_0x502a4f,_0x37bb97);if(_0x59b39f)this['_setSuggestionRange'](_0x59b39f,_0x535ca0);else{const _0x25cba5=_0x9738cc(),_0x536a8a=_0x1c9008['id'];this['_setSuggestionData']({'id':_0x25cba5,'type':'formatInline:'+_0x253ba6,'data':_0x1d3076,'createdAt':new Date(),'authorId':_0x536a8a,'attributes':_0x2079f1}),this['_addSuggestionMarker']('formatInline:'+_0x253ba6,_0x25cba5,_0x536a8a,_0x535ca0);}}return null;}['markBlockFormat'](_0x3a5ac1,_0x21e52a,_0x5957b6=[],_0x3c3067=null,_0x5c0f8b={}){_0x21e52a['formatGroupId']||(_0x21e52a['formatGroupId']=_0x21e52a['commandName']),_0x21e52a['multipleBlocks']=_0x3a5ac1['is']('range'),_0x3c3067=_0x3c3067||Vt(_0x21e52a);const _0x5ed6aa=_0x5957b6['map'](_0x553652=>Gt(_0x553652,this['_model'])),_0x1f3dcd=_0x3a5ac1['is']('range')?_0x3a5ac1:Gt(_0x3a5ac1,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5dcb97=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3c3067,'accept');return this['forceDefaultExecution'](()=>_0x5dcb97([_0x1f3dcd],_0x21e52a,_0x5c0f8b)),null;}_0x5ed6aa['push'](_0x1f3dcd);let _0x5d4a79=!0x0;for(const _0x3026a2 of _0x5ed6aa)if(!this['_rangeIsInLocalUserInsertion'](_0x3026a2)){_0x5d4a79=!0x1;break;}if(_0x5d4a79&&'always'!==this['_trackFormatChanges']){const _0x1ff2be=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3c3067,'accept');return this['forceDefaultExecution'](()=>_0x1ff2be([_0x1f3dcd],_0x21e52a,_0x5c0f8b)),null;}let _0x3838d1=null,_0x3e7f4c=_0x1f3dcd['start'],_0x1569b4=_0x1f3dcd['end'];for(const {suggestion:_0x22392d,meta:_0x5080cb}of this['_findSuggestions'](_0x1f3dcd,'formatBlock')){if(!_0x5080cb['isOwn'])continue;if(_0x5080cb['isNextTo']||_0x5080cb['containsRangeInObject']||_0x5080cb['isInsideObject'])continue;if(_0x22392d['data']['formatGroupId']!=_0x21e52a['formatGroupId'])continue;if(!Lt(_0x22392d,_0x5c0f8b))continue;const _0x3b5c0d=_0x22392d['getFirstRange']();if(_0x22392d['subType']==_0x3c3067){if(_0x3b5c0d['containsRange'](_0x1f3dcd,!0x0))return null;_0x3e7f4c=_0x3e7f4c['isBefore'](_0x3b5c0d['start'])?_0x3e7f4c:_0x3b5c0d['start'],_0x1569b4=_0x1569b4['isAfter'](_0x3b5c0d['end'])?_0x1569b4:_0x3b5c0d['end'],_0x3838d1?_0x3b5c0d['start']['isBefore'](_0x3838d1['getFirstRange']()['start'])?(_0x3838d1['removeMarkers'](),_0x3838d1=_0x22392d):_0x22392d['removeMarkers']():_0x3838d1=_0x22392d;}else{const _0x2a5e05=_0x1f3dcd['getIntersection'](_0x3b5c0d);this['_cutOutSuggestionMarker'](_0x22392d,_0x2a5e05);}}const _0x5d9665=this['editor']['plugins']['get']('Users')['me'],_0x5e11b6=_0x9738cc(),_0x49f489=_0x5d9665['id'];if(_0x3838d1)return this['_setSuggestionRange'](_0x3838d1,this['_model']['createRange'](_0x3e7f4c,_0x1569b4)),_0x3838d1;{const _0x2c2602=this['_setSuggestionData']({'id':_0x5e11b6,'type':'formatBlock:'+_0x3c3067,'data':_0x21e52a,'createdAt':new Date(),'authorId':_0x49f489,'attributes':_0x5c0f8b});return this['_addSuggestionMarker']('formatBlock:'+_0x3c3067,_0x5e11b6,_0x49f489,this['_model']['createRange'](_0x3e7f4c,_0x1569b4)),_0x2c2602;}}['markMultiRangeBlockFormat'](_0x35dbee,_0xfeb8c2,_0x53f1a3=[],_0x1d268a=null,_0x481c3a={}){_0xfeb8c2['formatGroupId']||(_0xfeb8c2['formatGroupId']=_0xfeb8c2['commandName']);const _0x54e131=_0x35dbee[0x0];_0xfeb8c2['multipleBlocks']=_0x54e131['is']('range'),_0x1d268a=_0x1d268a||Vt(_0xfeb8c2);const _0x5e81cb=_0x53f1a3['map'](_0x138f7f=>Gt(_0x138f7f,this['_model'])),_0xcdef83=_0x54e131['is']('range')?_0x35dbee:_0x35dbee['map'](_0x2daffa=>Gt(_0x2daffa,this['_model']));if('never'===this['_trackFormatChanges']){const _0x41c8ed=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1d268a,'accept');return this['forceDefaultExecution'](()=>_0x41c8ed(_0xcdef83,_0xfeb8c2,_0x481c3a)),null;}_0x5e81cb['push'](..._0xcdef83);let _0x4320b4=!0x0;for(const _0x55331c of _0x5e81cb)if(!this['_rangeIsInLocalUserInsertion'](_0x55331c)){_0x4320b4=!0x1;break;}if(_0x4320b4&&'always'!==this['_trackFormatChanges']){const _0x4cbc56=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1d268a,'accept');return this['forceDefaultExecution'](()=>_0x4cbc56(_0xcdef83,_0xfeb8c2,_0x481c3a)),null;}const _0x4d09c4=this['editor']['plugins']['get']('Users')['me'];for(const _0x3af4c8 of this['getSuggestions']()){if(_0x3af4c8['author']['id']!=_0x4d09c4['id'])continue;if('formatBlock'!=_0x3af4c8['type']||_0x3af4c8['data']['formatGroupId']!=_0xfeb8c2['formatGroupId'])continue;if(!Lt(_0x3af4c8,_0x481c3a))continue;const _0x3c08ea=_0x3af4c8['subType']==_0x1d268a;for(let _0x5103df=0x0;_0x5103df<_0xcdef83['length'];_0x5103df++){const _0x32e404=_0xcdef83[_0x5103df];for(const _0x498a13 of _0x3af4c8['getMarkers']()){const _0x30c590=_0x498a13['getRange']();if(_0x32e404['isEqual'](_0x30c590)){_0x3c08ea?(_0xcdef83['splice'](_0x5103df,0x1),_0x5103df--):_0x3af4c8['removeMarker'](_0x498a13['name']);break;}}}}if(0x0==_0xcdef83['length'])return null;const _0x5da41f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1d268a,'join');for(const _0x187e91 of this['getSuggestions']())if(_0x187e91['author']['id']==_0x4d09c4['id']&&'formatBlock'==_0x187e91['type']&&_0x187e91['data']['formatGroupId']==_0xfeb8c2['formatGroupId']&&_0x187e91['subType']==_0x1d268a&&Lt(_0x187e91,_0x481c3a)&&(_0x5da41f(_0x187e91['getRanges'](),_0xcdef83)||_0x5da41f(_0xcdef83,_0x187e91['getRanges']()))){for(const _0x1969f1 of _0xcdef83)_0x187e91['addRange'](_0x1969f1);return _0x187e91;}const _0x4f960c=_0x9738cc(),_0x5d4306=_0x4d09c4['id'],_0x2d33a6='formatBlock:'+_0x1d268a,_0x2fb2f3=this['_setSuggestionData']({'id':_0x4f960c,'type':_0x2d33a6,'data':_0xfeb8c2,'createdAt':new Date(),'authorId':_0x5d4306,'attributes':_0x481c3a});for(const _0x433a6f of _0xcdef83)this['_addSuggestionMarker'](_0x2d33a6,_0x4f960c,_0x5d4306,_0x433a6f,u['getMultiRangeId']());return _0x2fb2f3;}['markDeletion'](_0x1e51e7,_0xf3ca12=null,_0x5c9b3f={}){if(_0x1e51e7['isCollapsed'])return null;const _0x56c44f=this['editor']['plugins']['get']('Users')['me'],_0x3dd486=new _0x108983(_0x1e51e7['start'],_0x1e51e7['end']);for(const {suggestion:_0x4167d1,meta:_0x38cb22}of this['_findSuggestions'](_0x3dd486,'insertion'))if(_0x38cb22['isOwn']&&!_0x38cb22['isNextTo']){if(_0x4167d1['isMultiRange']){const _0x29ed86=_0x4167d1['getRanges']()['filter'](_0xbaf9c7=>'$graveyard'!=_0xbaf9c7['root']['rootName']);_0x29ed86['every'](_0x23ed1c=>_0x3dd486['containsRange'](_0x23ed1c,!0x0))&&_0x4167d1['discard']();if(_0x29ed86['some'](_0x2c05e=>_0x2c05e['containsRange'](_0x3dd486,!0x0))){const _0x3e6da7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xf3ca12,'accept');return this['forceDefaultExecution'](()=>_0x3e6da7([_0x3dd486],null,_0x5c9b3f)),null;}}else{const _0x5b2663=_0x3dd486['getIntersection'](_0x4167d1['getFirstRange']());null!==_0x5b2663&&_0x4167d1['_onDiscard']([_0x5b2663],null,_0x5c9b3f);}}if(_0x3dd486['detach'](),_0x3dd486['isCollapsed']||'$graveyard'==_0x3dd486['root']['rootName'])return null;let _0x1cdbee=null,_0x3b81e7=_0x3dd486['start'],_0x108dae=_0x3dd486['end'];const _0x54d5b3=this['_findSuggestions'](_0x3dd486,'deletion');for(const {suggestion:_0x1acf49,meta:_0x1c795a}of _0x54d5b3){const _0x34dc42=this['_model']['createRange'](_0x3b81e7,_0x108dae);if(_0x1c795a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1c795a['containsRangeInObject']&&!_0x1c795a['isInsideObject'])){if(_0x1acf49['isMultiRange']){if(!Lt(_0x1acf49,_0x5c9b3f))continue;let _0x5a3223=!0x0;for(const _0x23fbcd of _0x1acf49['getRanges']()){if(_0x23fbcd['containsRange'](_0x34dc42,!0x0))return _0x1acf49;_0x34dc42['containsRange'](_0x23fbcd)||(_0x5a3223=!0x1);}_0x5a3223&&_0x1acf49['discard']();}else{const _0x2da06b=_0x1acf49['getFirstRange']();if(_0x2da06b['containsRange'](_0x34dc42,!0x0))return _0x1acf49;if(!Lt(_0x1acf49,_0x5c9b3f)){_0x34dc42['containsRange'](_0x2da06b)?_0x1acf49['removeMarkers']():_0x2da06b['containsPosition'](_0x3b81e7)?_0x3b81e7=_0x2da06b['end']:_0x2da06b['containsPosition'](_0x108dae)&&(_0x108dae=_0x2da06b['start']);continue;}_0x3b81e7=_0x3b81e7['isBefore'](_0x2da06b['start'])?_0x3b81e7:_0x2da06b['start'],_0x108dae=_0x108dae['isAfter'](_0x2da06b['end'])?_0x108dae:_0x2da06b['end'],_0x5c9b3f=Object['assign']({},_0x1acf49['attributes']),_0x1cdbee?_0x2da06b['start']['isBefore'](_0x1cdbee['getFirstRange']()['start'])?(_0x1cdbee['removeMarkers'](),_0x1cdbee=_0x1acf49):_0x1acf49['removeMarkers']():_0x1cdbee=_0x1acf49;}}}if(_0x1cdbee)return this['_setSuggestionRange'](_0x1cdbee,this['_model']['createRange'](_0x3b81e7,_0x108dae)),_0x1cdbee;{const _0x10fe06=_0x9738cc(),_0x56a7c1=this['_model']['createRange'](_0x3b81e7,_0x108dae),_0x4fc7ef=_0x56c44f['id'],_0x3b7efb=_0xf3ca12?'deletion:'+_0xf3ca12:'deletion',_0x368449=this['_setSuggestionData']({'id':_0x10fe06,'type':_0x3b7efb,'createdAt':new Date(),'authorId':_0x4fc7ef,'attributes':_0x5c9b3f});return this['_addSuggestionMarker'](_0x3b7efb,_0x10fe06,_0x4fc7ef,_0x56a7c1),_0x368449;}}['markMultiRangeDeletion'](_0x7408e2,_0x3c3b53='multi',_0x18a11b={}){const _0x4985f4=this['editor']['plugins']['get']('Users')['me'],_0x5eba46=_0x7408e2['map'](_0x13b7cc=>new _0x108983(_0x13b7cc['start'],_0x13b7cc['end'])),_0x2eebc6=new Set();for(const {suggestion:_0x8ebc26,meta:_0x52899f}of this['_findSuggestions'](_0x5eba46,'insertion'))_0x52899f['isOwn']&&!_0x52899f['isNextTo']&&_0x2eebc6['add'](_0x8ebc26);for(const _0x982b66 of _0x2eebc6)if(_0x982b66['isMultiRange']){const _0x6a8283=_0x982b66['getRanges']();(!_0x982b66['attributes']||!_0x982b66['attributes']['skipNestingCheck'])&&(_0x6a8283['every'](_0x165afd=>_0x5eba46['some'](_0x19b194=>_0x19b194['containsRange'](_0x165afd,!0x0)))&&_0x982b66['discard']());if(_0x5eba46['every'](_0x562335=>_0x6a8283['some'](_0x2dca8b=>_0x2dca8b['containsRange'](_0x562335,!0x0)))){const _0x4e9693=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3c3b53,'accept');return this['forceDefaultExecution'](()=>_0x4e9693(_0x7408e2,null,_0x18a11b)),null;}}else{const _0xd11f59=_0x982b66['getFirstRange']();_0x5eba46['some'](_0xffab8a=>_0xffab8a['containsRange'](_0xd11f59,!0x0))&&_0x982b66['discard']();if(_0x5eba46['every'](_0x28ed24=>_0xd11f59['containsRange'](_0x28ed24,!0x0))){const _0x12cbcc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3c3b53,'accept');return this['forceDefaultExecution'](()=>_0x12cbcc(_0x5eba46,null,_0x18a11b)),null;}}const _0x2fdb0d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3c3b53,'join');let _0x292212=null;for(const _0x3218f4 of this['getSuggestions']())if(_0x3218f4['author']['id']==_0x4985f4['id']&&_0x3218f4['isInContent']&&'deletion'==_0x3218f4['type']&&_0x3218f4['subType']==_0x3c3b53&&Lt(_0x3218f4,_0x18a11b)&&(_0x2fdb0d(_0x3218f4['getRanges'](),_0x5eba46)||_0x2fdb0d(_0x5eba46,_0x3218f4['getRanges']()))){if(_0x292212){if(_0x3218f4['commentThread']&&_0x3218f4['commentThread']['length'])continue;for(const _0x3211a4 of _0x3218f4['getRanges']())_0x292212['isIntersectingWithRange'](_0x3211a4)||_0x292212['addRange'](_0x3211a4);_0x3218f4['removeMarkers']();}else{_0x292212=_0x3218f4;for(const _0x4e57dc of _0x5eba46)_0x3218f4['isIntersectingWithRange'](_0x4e57dc)||_0x3218f4['addRange'](_0x4e57dc);}}if(_0x292212)return _0x292212;_0x2eebc6['clear']();for(const {suggestion:_0x1aed33,meta:_0x2081c5}of this['_findSuggestions'](_0x5eba46,'deletion'))_0x2081c5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2081c5['containsRangeInObject']&&!_0x2081c5['isInsideObject'])&&Lt(_0x1aed33,_0x18a11b)&&_0x2eebc6['add'](_0x1aed33);for(const _0x1f1341 of _0x2eebc6){const _0x4c3b26=_0x1f1341['getRanges']();if(!_0x18a11b||!_0x18a11b['skipNestingCheck']){if(_0x5eba46['every'](_0xe9a92b=>_0x4c3b26['some'](_0x1b245e=>_0x1b245e['containsRange'](_0xe9a92b,!0x0))))return _0x1f1341;}(!_0x1f1341['attributes']||!_0x1f1341['attributes']['skipNestingCheck'])&&(_0x4c3b26['every'](_0x2939da=>_0x5eba46['some'](_0x45aba6=>_0x45aba6['containsRange'](_0x2939da,!0x0)))&&_0x1f1341['discard']());}const _0x1eb68c=_0x9738cc(),_0x19cbab=_0x4985f4['id'],_0x2c9a5d='deletion:'+_0x3c3b53,_0x494a34=this['_setSuggestionData']({'id':_0x1eb68c,'type':_0x2c9a5d,'createdAt':new Date(),'authorId':_0x19cbab,'attributes':_0x18a11b});for(const _0x9b9c44 of _0x5eba46)_0x9b9c44['detach'](),_0x9b9c44['isCollapsed']||'$graveyard'==_0x9b9c44['root']['rootName']||this['_addSuggestionMarker'](_0x2c9a5d,_0x1eb68c,_0x19cbab,_0x9b9c44,u['getMultiRangeId']());return _0x494a34;}['markAttributeChange'](_0x293883,_0x42d2cb,_0x55bbca,_0x188c90,_0x479d16){if(_0x293883['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5ef124=this['editor']['plugins']['get']('Users')['me']['id'],_0x415f18=Array['from'](this['_suggestions']['values']())['filter'](_0x47d1f6=>'attribute'==_0x47d1f6['type']&&_0x47d1f6['data']['key']==_0x42d2cb&&_0x47d1f6['isIntersectingWithRange'](_0x293883));if('default'===this['_trackFormatChanges']){const _0x1ec999=this['_findSuggestions'](_0x293883,'insertion')['filter'](({meta:_0x43e76d})=>_0x43e76d['isOwn']&&!_0x43e76d['isInsideObject']&&!_0x43e76d['isNextTo'])['map'](({suggestion:_0x19d860})=>_0x19d860);_0x415f18['unshift'](..._0x1ec999);}const _0x114836=new Map([[_0x293883,_0x55bbca]]);for(const _0x78ff0b of _0x415f18){const _0x620eec='attribute'==_0x78ff0b['type']?_0x78ff0b['data']['oldValue']:void 0x0,_0x30f3e5=_0x78ff0b['getFirstRange'](),_0x15fb71=Array['from'](_0x114836['keys']())['find'](_0x334bbe=>_0x334bbe['isIntersecting'](_0x30f3e5));if(!_0x15fb71)continue;const _0x5b075a=_0x15fb71['getDifference'](_0x30f3e5);this['_isBlockAttribute'](_0x42d2cb)&&'insertion'==_0x78ff0b['type']&&0x0!=_0x5b075a['length']||(_0x114836['delete'](_0x15fb71),_0x5b075a['forEach'](_0x7bd5d4=>{_0x114836['set'](_0x7bd5d4,_0x55bbca);}),'insertion'!=_0x78ff0b['type']&&_0x620eec!=_0x188c90&&_0x114836['set'](_0x15fb71['getIntersection'](_0x30f3e5),_0x620eec));}const _0x5c70ec=[];for(const [_0x52663e,_0x383c0c]of _0x114836){const _0x2c31f6=_0x9738cc(),_0x9f3bb6={'key':_0x42d2cb,'oldValue':_0x383c0c,'newValue':_0x188c90};_0x42d2cb['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':_0x42d2cb});const _0x13f266=('attribute:'+(_0x42d2cb+'|'+Vt({'newValue':_0x188c90})))['substring'](0x0,0x3c),_0x134e50=this['_setSuggestionData']({'id':_0x2c31f6,'type':_0x13f266,'data':_0x9f3bb6,'createdAt':new Date(),'authorId':_0x5ef124,'attributes':_0x479d16});_0x5c70ec['push'](_0x134e50),this['_addSuggestionMarker'](_0x13f266,_0x2c31f6,_0x5ef124,_0x52663e);}return _0x5c70ec;}['enableDefaultAttributesIntegration'](_0x296d8b){this['enableCommand'](_0x296d8b,(_0x462f2a,..._0xddd894)=>{this['_recordAttributeChanges'](()=>{_0x462f2a(..._0xddd894);});});}['registerBlockAttribute'](_0x38f202){this['_blockAttributeKeys']['add'](_0x38f202);}['registerInlineAttribute'](_0x44a5eb){this['_inlineAttributeKeys']['add'](_0x44a5eb);}['_getAttributeKey'](_0x4104a2){return'attribute'==_0x4104a2['type']?_0x4104a2['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1190e8,_0x23b307){const _0x22d162=_0x1190e8['getFirstMarker']();this['_model']['change'](_0x4b6693=>{_0x4b6693['updateMarker'](_0x22d162,{'range':_0x23b307});});}['_addThreadToSuggestion'](_0x161fe2){const _0x35efe7=_0x161fe2['id'],_0x5a23bc=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x35efe7)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5a23bc,'threadId':_0x35efe7,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x43c48d=this['_commentsRepository']['getCommentThread'](_0x35efe7);_0x43c48d['unbind']('isRemovable'),_0x43c48d['isRemovable']=!0x1,_0x161fe2['commentThread']=_0x43c48d;}['_checkSuggestionCorrectness'](_0xfffa48,_0x4303f9,_0x2d9f6a,_0x3c10de){if(_0xfffa48['type']!=_0x4303f9||_0xfffa48['subType']!=_0x2d9f6a||_0xfffa48['creator']['id']!=_0x3c10de)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xcb8e69('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4001c8,_0x2d3bf1){const _0xe8437a=_0x4001c8['getFirstRange']();if(_0x2d3bf1['isEqual'](_0xe8437a))_0x4001c8['removeMarkers']();else{if(_0xe8437a['containsRange'](_0x2d3bf1)){const _0x192e08=this['_model']['createPositionAt'](_0x2d3bf1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4001c8,this['_model']['createRange'](_0xe8437a['start'],_0x192e08));const _0x3ae759=_0x9738cc(),_0x19848c=_0x4001c8['creator']['id'],_0x103bfa=_0x4001c8['type']+':'+_0x4001c8['subType'];this['_setSuggestionData']({'id':_0x3ae759,'type':_0x103bfa,'createdAt':new Date(),'authorId':_0x19848c,'data':_0x4001c8['data'],'attributes':_0x4001c8['attributes']});const _0x5c5f44=this['_model']['createPositionAt'](_0x2d3bf1['end']['parent'],'after'),_0x4e6430=this['_model']['createRange'](_0x5c5f44,_0xe8437a['end']);this['_addSuggestionMarker'](_0x103bfa,_0x3ae759,_0x19848c,_0x4e6430);}else{if(_0xe8437a['containsPosition'](_0x2d3bf1['start'])){const _0x8e1369=this['_model']['createPositionAt'](_0x2d3bf1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4001c8,this['_model']['createRange'](_0xe8437a['start'],_0x8e1369));}else{const _0x4be517=this['_model']['createPositionAt'](_0x2d3bf1['end']['parent'],'after');this['_setSuggestionRange'](_0x4001c8,this['_model']['createRange'](_0x4be517,_0xe8437a['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5c32ba){for(const {suggestion:_0x5d3c41,meta:_0x634798}of this['_findSuggestions'](_0x5c32ba,'insertion')){if(!_0x634798['isOwn'])continue;const _0x5db904=_0x5d3c41['getRanges']();for(const _0x3b76a0 of _0x5db904)if(!_0x5c32ba['getDifference'](_0x3b76a0)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x503aff){const _0x26f0b1=this['editor']['plugins']['get']('Users')['getUser'](_0x503aff);if(!_0x26f0b1)throw new _0xcb8e69('track-changes-user-not-found',this);return _0x26f0b1;}['_getExternalAuthor'](_0x464ccd){const _0xc71ae2=this['editor']['plugins']['get']('Users'),_0x2b5050=_0xba8f4d('external:'+_0x464ccd),_0x5a3749=_0xc71ae2['getUser'](_0x2b5050);return _0x5a3749||_0xc71ae2['addUser']({'id':_0x2b5050,'name':_0x464ccd});}['_createSuggestion'](_0x5f1886,_0x31bcb7,_0x1a5d5a,_0x118eea,_0x380f38){const _0x2d1c7a=this['_getAuthorFromId'](_0x118eea),_0xaf7090=this['_suggestionFactory']['buildSuggestion'](_0x5f1886,_0x31bcb7,_0x1a5d5a,_0x2d1c7a,_0x380f38,_0x440ba0=>{this['_updateSuggestionData'](_0x1a5d5a,{'attributes':_0x440ba0});const _0x218dd9=this['getSuggestion'](_0x1a5d5a);this['_joinWithAdjacentSuggestions'](new Set([_0x218dd9])),this['_refreshSuggestionsChain'](new Set([_0x218dd9]));});return this['listenTo'](_0xaf7090,'accept',()=>{this['_updateSuggestionData'](_0x1a5d5a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xaf7090,'discard',()=>{this['_updateSuggestionData'](_0x1a5d5a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1a5d5a,_0xaf7090),this['_suggestionState']['set'](_0xaf7090,'notReady'),_0xaf7090;}['_splitMarkerName'](_0x439a46){const _0xb40d13=_0x439a46['split'](':');return{'group':_0xb40d13[0x0],'type':_0xb40d13[0x1],'subType':_0xb40d13['length']>=0x5?_0xb40d13[0x2]:null,'id':_0xb40d13['length']<0x5?_0xb40d13[0x2]:_0xb40d13[0x3],'authorId':_0xb40d13['length']<0x5?_0xb40d13[0x3]:_0xb40d13[0x4],'markerCount':0x6==_0xb40d13['length']?_0xb40d13[0x5]:null};}['_breakSuggestionMarker'](_0x447d57,_0x6fc909,_0x164ce4){const _0x5ccf82=_0x447d57['getFirstRange'](),_0x550a00=_0x5ccf82['start'],_0x72de50=_0x5ccf82['end'];this['_setSuggestionRange'](_0x447d57,this['_model']['createRange'](_0x550a00,_0x6fc909));const _0x51bcea=_0x9738cc(),_0x555f85=_0x447d57['creator']['id'],_0x41f121=_0x447d57['type']+(_0x447d57['subType']?':'+_0x447d57['subType']:'');this['_setSuggestionData']({'id':_0x51bcea,'type':_0x41f121,'createdAt':new Date(),'authorId':_0x555f85,'originalSuggestionId':_0x447d57['id'],'attributes':_0x447d57['attributes'],'data':_0x447d57['data']});const _0x3d111d=this['_getAttributeKey'](_0x447d57);('formatBlock'==_0x447d57['type']||_0x3d111d&&this['_isBlockAttribute'](_0x3d111d))&&(_0x164ce4=this['_model']['createPositionBefore'](_0x164ce4['parent'])),this['_addSuggestionMarker'](_0x41f121,_0x51bcea,_0x555f85,this['_model']['createRange'](_0x164ce4,_0x72de50));}['_findSuggestions'](_0x44beaa,_0x2d563b=null){const _0x3b338f=[],_0x5060c9=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x44beaa)||(_0x44beaa=[_0x44beaa]);for(const _0x4e2da6 of this['getSuggestions']()){if(!_0x4e2da6['isInContent'])continue;if(_0x2d563b&&_0x4e2da6['type']!=_0x2d563b)continue;let _0xb31a18=!0x1;for(const _0x20a175 of _0x4e2da6['getRanges']()){for(const _0x51ad37 of _0x44beaa){const _0x77a845=_0x51ad37['start']['isEqual'](_0x20a175['end'])||_0x51ad37['end']['isEqual'](_0x20a175['start']);if(_0x77a845||_0x51ad37['getIntersection'](_0x20a175)){const _0x3fbc46=_0x51ad37['containsRange'](_0x20a175)&&Rt(this['_model']['schema'],_0x20a175['start'],_0x51ad37),_0x7d835e=_0x20a175['containsRange'](_0x51ad37)&&Rt(this['_model']['schema'],_0x51ad37['start'],_0x20a175);_0x3b338f['push']({'suggestion':_0x4e2da6,'meta':{'isOwn':_0x5060c9==_0x4e2da6['author'],'isNextTo':_0x77a845,'isInsideObject':_0x3fbc46,'containsRangeInObject':_0x7d835e}}),_0xb31a18=!0x0;break;}}if(_0xb31a18)break;}}return _0x3b338f;}['_addSuggestionMarker'](_0x1d9db0,_0xe31fed,_0x4e513c,_0x3b16a9,_0x184c5a){this['_model']['change'](_0x2ecae3=>{let _0x5d9760='suggestion:'+_0x1d9db0+':'+_0xe31fed+':'+_0x4e513c;_0x184c5a&&(_0x5d9760=_0x5d9760+':'+_0x184c5a),_0x2ecae3['addMarker'](_0x5d9760,{'range':_0x3b16a9,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x17606f){const _0x2011f6=_0x17606f['previous'],_0x4825b7=_0x17606f['next'];_0x17606f['previous']=null,_0x17606f['next']=null,null!=_0x2011f6&&_0x2011f6['next']==_0x17606f&&(_0x2011f6['next']=_0x4825b7),null!=_0x4825b7&&_0x4825b7['previous']==_0x17606f&&(_0x4825b7['previous']=_0x2011f6),'ready'==this['_suggestionState']['get'](_0x17606f)&&(this['_suggestionState']['set'](_0x17606f,'removed'),this['fire']('suggestionUnloaded',_0x17606f,_0x2011f6,_0x4825b7));}['_setSuggestionData'](_0x1609fc){const _0x1bcd39=_0x1609fc['id'],_0x56a106=this['addSuggestionData'](_0x1609fc);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1f6743=this['editor']['plugins']['get']('PendingActions'),_0x1735b2=_0x56a106['hasComments'],_0x14564e=_0x56a106['subType']?_0x56a106['type']+':'+_0x56a106['subType']:_0x56a106['type'],_0x7e64c9=this['editor']['locale'],_0x1b82b7=_0x1f6743['add'](o(_0x7e64c9,'PENDING_ACTION_SUGGESTION')),_0xb82f9c={'id':_0x1bcd39,'type':_0x14564e,'hasComments':_0x1735b2,'data':_0x1609fc['data']||null,'originalSuggestionId':_0x1609fc['originalSuggestionId']||null,'attributes':_0x56a106['attributes']};this['_adapter']['addSuggestion'](_0xb82f9c)['then'](_0x4d2370=>{_0x56a106['_saved']=!0x0,_0x1f6743['remove'](_0x1b82b7),_0x4d2370&&_0x4d2370['createdAt']&&(this['_suggestions']['get'](_0x1bcd39)['createdAt']=_0x4d2370['createdAt']);})['catch'](_0x432dfe=>{throw _0x3ea243('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x56a106['discard']();}),_0x56a106['stopListening'](),this['_suggestions']['delete'](_0x56a106['id']),this['_suggestionState']['delete'](_0x56a106),_0x432dfe;});}return _0x56a106;}['_isBlockAttribute'](_0x46faae){return this['_blockAttributeKeys']['has'](_0x46faae);}['_updateSuggestionData'](_0xa35d44,_0x38eed6){const _0x4d41e3=this['editor']['plugins']['get']('PendingActions'),_0x2da2d1=this['getSuggestion'](_0xa35d44);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2da2d1['_saved']){const _0x4174f7=_0x4d41e3['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xa35d44,_0x38eed6)['then'](()=>{_0x4d41e3['remove'](_0x4174f7);});}else _0x2da2d1['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xa35d44,_0x38eed6);});}}['_getSuggestionData'](_0x480d39){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xcb8e69('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x480d39);}['_handleNewSuggestionMarker'](_0x313794){const {id:_0x1e6285,type:_0x544f0d,subType:_0xd6182a,authorId:_0x2480cd}=this['_splitMarkerName'](_0x313794),_0x4ee10a=this['_suggestions']['get'](_0x1e6285)||this['_createSuggestion'](_0x544f0d,_0xd6182a,_0x1e6285,_0x2480cd,{});switch(this['_checkSuggestionCorrectness'](_0x4ee10a,_0x544f0d,_0xd6182a,_0x2480cd),this['_suggestionState']['get'](_0x4ee10a)){case'notReady':this['_getSuggestionData'](_0x1e6285)['then'](_0x2b474e=>{let _0x5519c5=Promise['resolve']();_0x2b474e['hasComments']&&(_0x5519c5=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1e6285})),_0x5519c5['then'](()=>{this['addSuggestionData'](_0x2b474e)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4ee10a,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1e6285,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4ee10a,'ready'),this['fire']('suggestionLoaded',_0x4ee10a);break;case'ready':this['fire']('suggestionChanged',_0x4ee10a);}return _0x4ee10a['addMarkerName'](_0x313794),_0x4ee10a;}['_refreshSuggestionsChain'](_0x49b26a){const _0x2f4938=Array['from'](_0x49b26a),_0x5d41be=_0x2f4938['filter'](_0x5eded5=>'attribute'==_0x5eded5['type']);this['_refreshAttributeSuggestionsChain'](_0x5d41be);const _0x49d6ca=_0x2f4938['filter'](_0x2eea20=>!_0x2eea20['isMultiRange']&&'attribute'!=_0x2eea20['type']),_0x35c565=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x37982f=>!_0x37982f['isMultiRange']&&'attribute'!=_0x37982f['type']),_0x3b9b1e=_0x35c565['filter'](_0x411a6e=>!_0x49b26a['has'](_0x411a6e)),_0x2ba67f=new Map(_0x35c565['map'](_0x5391e3=>[_0x5391e3,this['_suggestionFactory']['getSuggestionCallback'](_0x5391e3['type'],_0x5391e3['subType'],'chain')])),_0x99cc1d=new Map(_0x35c565['map'](_0x3009c8=>[_0x3009c8,_0x3009c8['getFirstRange']()])),_0x1e2e8a=new Set(),_0x59b6f4=new Set();for(let _0x7894a2=0x0;_0x7894a2<_0x49d6ca['length'];_0x7894a2++)_0x5cf67c(_0x49d6ca[_0x7894a2],_0x49d6ca,_0x7894a2+0x1);for(let _0x4cbf91=0x0;_0x4cbf91<_0x49d6ca['length'];_0x4cbf91++)_0x5cf67c(_0x49d6ca[_0x4cbf91],_0x3b9b1e,0x0);const _0x5976e3=new Set();for(let _0x20d4b4=0x0;_0x20d4b4<_0x49d6ca['length'];_0x20d4b4++){const _0x440d8c=_0x49d6ca[_0x20d4b4];!_0x59b6f4['has'](_0x440d8c)&&_0x440d8c['previous']&&(_0x5976e3['add'](_0x440d8c['previous']),_0x440d8c['previous']['next']===_0x440d8c&&(_0x440d8c['previous']['next']=null),_0x440d8c['previous']=null),!_0x1e2e8a['has'](_0x440d8c)&&_0x440d8c['next']&&(_0x5976e3['add'](_0x440d8c['next']),_0x440d8c['next']['previous']===_0x440d8c&&(_0x440d8c['next']['previous']=null),_0x440d8c['next']=null);}function _0x5cf67c(_0x557354,_0x2c1ba0,_0x28f0d0){for(let _0x1a808e=_0x28f0d0;_0x1a808e<_0x2c1ba0['length'];_0x1a808e++){const _0xc76830=_0x175b00(_0x557354,_0x2c1ba0[_0x1a808e]);_0xc76830&&(_0xc76830[0x0]['next']=_0xc76830[0x1],_0xc76830[0x1]['previous']=_0xc76830[0x0],_0x1e2e8a['add'](_0xc76830[0x0]),_0x59b6f4['add'](_0xc76830[0x1]));}}function _0x175b00(_0x3a8d7b,_0x2156e2){if(_0x3a8d7b['author']['id']!==_0x2156e2['author']['id'])return null;const _0x629eb6=_0x2ba67f['get'](_0x3a8d7b)(_0x3a8d7b,_0x2156e2,_0x99cc1d['get'](_0x3a8d7b),_0x99cc1d['get'](_0x2156e2));if(!_0x629eb6)return null;return _0x2ba67f['get'](_0x2156e2)(_0x3a8d7b,_0x2156e2,_0x99cc1d['get'](_0x3a8d7b),_0x99cc1d['get'](_0x2156e2))?_0x629eb6[0x1]['commentThread']&&_0x629eb6[0x1]['commentThread']['length']?null:_0x629eb6:null;}_0x5976e3['size']&&this['_refreshSuggestionsChain'](_0x5976e3);}['_refreshAttributeSuggestionsChain'](_0x10820d){if(0x0==_0x10820d['length'])return;const _0x4618ea=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xa02433=>'attribute'==_0xa02433['type']&&_0xa02433['_isDataLoaded']),_0x56b96d=[],_0x3921cc=new Map();for(const _0x324731 of _0x4618ea){const _0x1fa4c8=_0xba8f4d(_0x324731['attributes']);_0x3921cc['has'](_0x1fa4c8)||(_0x3921cc['set'](_0x1fa4c8,_0x56b96d['length']),_0x56b96d['push']([]));const _0x27d630=_0x3921cc['get'](_0x1fa4c8);_0x56b96d[_0x27d630]['push'](_0x324731);}!(function(){_0x56b96d['sort']((_0x56dfa9,_0x2f7a44)=>{const _0x26acc1=_0x56dfa9[0x0]['createdAt'],_0x27dc5b=_0x2f7a44[0x0]['createdAt'];return _0x26acc1==_0x27dc5b?_0x56dfa9[0x0]['attributes']['groupId']<_0x2f7a44[0x0]['attributes']['groupId']?-0x1:0x1:_0x26acc1<_0x27dc5b?-0x1:0x1;});for(const _0x3f85be of _0x56b96d)_0x3f85be['sort']((_0x24c55c,_0x1b5eb7)=>_0x24c55c['id']<_0x1b5eb7['id']?-0x1:0x1);}());for(let _0x342cf=0x0;_0x342cf<_0x56b96d['length'];_0x342cf++){if(0x0==_0x56b96d[_0x342cf]['length'])continue;const _0x3d491b=[];for(let _0x388af6=_0x342cf+0x1;_0x388af6<_0x56b96d['length'];_0x388af6++)0x0!=_0x56b96d[_0x388af6]['length']&&_0x13b255(_0x56b96d[_0x342cf],_0x56b96d[_0x388af6])&&_0x3d491b['push'](_0x388af6);for(const _0x331616 of _0x3d491b)_0x56b96d[_0x342cf]=_0x56b96d[_0x342cf]['concat'](_0x56b96d[_0x331616]),_0x56b96d[_0x331616]=[];}for(const _0x45b4f5 of _0x56b96d)for(let _0x472a8=0x0;_0x472a8<_0x45b4f5['length'];_0x472a8++)_0x45b4f5[_0x472a8]['next']=_0x45b4f5[_0x472a8+0x1]||null;for(const _0x445b65 of _0x56b96d)for(let _0x4f6937=0x0;_0x4f6937<_0x445b65['length'];_0x4f6937++)_0x445b65[_0x4f6937]['previous']=_0x445b65[_0x4f6937-0x1]||null;function _0x13b255(_0x5e1cc4,_0x20dba8){if(_0x5e1cc4[0x0]['attributes']['groupId']!==_0x20dba8[0x0]['attributes']['groupId']&&_0x5e1cc4[0x0]['author']!==_0x20dba8[0x0]['author'])return!0x1;if(!function(_0x1012f3,_0x1289e8){if(!_0x1012f3['hasComments']&&!_0x1289e8['hasComments'])return!0x0;if(_0x1012f3['hasComments']&&_0x1289e8['hasComments'])return!0x1;if(_0x1012f3['hasComments']&&_0x1289e8['createdAt']<_0x1012f3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1289e8['hasComments']&&_0x1012f3['createdAt']<_0x1289e8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5e1cc4[0x0],_0x20dba8[0x0]))return!0x1;const _0x3adf2e=Bt(_0x5e1cc4[0x0]['attributes'],'groupId'),_0x5be54d=Bt(_0x20dba8[0x0]['attributes'],'groupId');if(!_0x491897(_0x3adf2e,_0x5be54d))return!0x1;return!!_0x5e1cc4['every'](_0x69cab7=>_0x20dba8['some'](_0x2870d5=>_0x69cab7['getFirstRange']()['isEqual'](_0x2870d5['getFirstRange']())))&&_0x20dba8['every'](_0x39b2e4=>_0x5e1cc4['some'](_0x2241df=>_0x39b2e4['getFirstRange']()['isEqual'](_0x2241df['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2b7232){const _0x6a8e21=Array['from'](_0x2b7232),_0x43732b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x23babc=_0x43732b['filter'](_0x1d5b1a=>!_0x2b7232['has'](_0x1d5b1a)),_0x1346a9=new Map(_0x6a8e21['map'](_0x57cbf7=>[_0x57cbf7,this['_suggestionFactory']['getSuggestionCallback'](_0x57cbf7['type'],_0x57cbf7['subType'],'join')])),_0x385d45=new Map(_0x43732b['map'](_0x89dc27=>[_0x89dc27,_0x89dc27['getRanges']()]));for(let _0x585b69=0x0;_0x585b69<_0x6a8e21['length'];_0x585b69++){if(_0x1655d4(this,_0x6a8e21[_0x585b69],_0x6a8e21,_0x585b69+0x1))return!0x0;}for(let _0x5bcd3a=0x0;_0x5bcd3a<_0x6a8e21['length'];_0x5bcd3a++){if(_0x1655d4(this,_0x6a8e21[_0x5bcd3a],_0x23babc,0x0))return!0x0;}return!0x1;function _0x1655d4(_0x54faf6,_0x485ce6,_0x66d9fd,_0x53d966){for(let _0x3c2f1b=_0x53d966;_0x3c2f1b<_0x66d9fd['length'];_0x3c2f1b++){const _0x33212b=_0x66d9fd[_0x3c2f1b];if(_0x33212b['type']!==_0x485ce6['type']||_0x33212b['author']['id']!==_0x485ce6['author']['id']||_0x33212b['subType']!==_0x485ce6['subType'])continue;if(!Pt(_0x485ce6,_0x33212b,['groupId']))continue;if('attribute'==_0x485ce6['type']&&_0x485ce6['data']['oldValue']!=_0x33212b['data']['oldValue'])continue;if('attribute'==_0x485ce6['type']&&_0x54faf6['_isBlockAttribute'](_0x485ce6['data']['key']))continue;if('formatBlock'==_0x485ce6['type']){const _0x4d9c8b=_0x54faf6['editor']['model'],_0x12b062=_0x485ce6['getContainedElement']();if(_0x12b062&&(_0x4d9c8b['schema']['isObject'](_0x12b062)||_0x4d9c8b['schema']['isLimit'](_0x12b062)))continue;}const _0x2606e9=_0x1346a9['get'](_0x485ce6),_0x1accb1=_0x385d45['get'](_0x485ce6),_0x2f67ef=_0x385d45['get'](_0x33212b),_0x204198=_0x485ce6['commentThread']&&_0x485ce6['commentThread']['length'],_0x1da693=_0x33212b['commentThread']&&_0x33212b['commentThread']['length'];if(!_0x204198&&_0x2606e9(_0x2f67ef,_0x1accb1))return _0x54faf6['_joinSuggestions'](_0x33212b,_0x485ce6),_0x385d45['delete'](_0x485ce6),!0x0;if(!_0x1da693&&_0x2606e9(_0x1accb1,_0x2f67ef))return _0x54faf6['_joinSuggestions'](_0x485ce6,_0x33212b),_0x385d45['delete'](_0x33212b),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2e07a4,_0x6d54bb){if(_0x2e07a4['isMultiRange']){for(const _0x2f3fe1 of _0x6d54bb['getRanges']())_0x2e07a4['addRange'](_0x2f3fe1);}else{const _0x2bff03=_0x6d54bb['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2e07a4,this['_model']['createRange'](_0x2e07a4['getFirstRange']()['start'],_0x2bff03));}_0x6d54bb['removeMarkers']();}['_getMarkerAnnouncementText'](_0x582f3c,_0x4533e0){const _0x1cf5cb=_0x582f3c['startsWith']('format')||_0x582f3c['startsWith']('attribute')?'FORMATTING':_0x582f3c['toUpperCase']();return o(this['editor']['locale'],_0x4533e0+'_'+_0x1cf5cb+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0xef5a1f=this['editor'];if(!_0xef5a1f['ui'])return;const {ariaLiveAnnouncer:_0x1afc93}=_0xef5a1f['ui'];_0x884ab3(this['_model'],({left:_0x395cf4,entered:_0xc9b5a9})=>{for(const _0x4b12de of _0x395cf4){const {group:_0x5ee8fd,type:_0x262ec2}=this['_splitMarkerName'](_0x4b12de['name']);if('suggestion'===_0x5ee8fd){_0x1afc93['announce'](this['_getMarkerAnnouncementText'](_0x262ec2,'LEAVE'));break;}}for(const _0x5c8f45 of _0xc9b5a9){const {group:_0x2082e1,type:_0x5600d1}=this['_splitMarkerName'](_0x5c8f45['name']);if('suggestion'===_0x2082e1){_0x1afc93['announce'](this['_getMarkerAnnouncementText'](_0x5600d1,'ENTER'));break;}}});}['_processAttributeChanges'](_0xcd8579){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1db039=this['editor'],_0x7eecff=_0x1db039['model']['document']['differ']['getChanges']();if(0x0==_0x7eecff['length'])return!0x1;const _0x6105bc=[],_0xf7ef99=_0x7eecff['filter'](_0x43f9e2=>'attribute'==_0x43f9e2['type']),_0x525115=_0x7eecff['filter'](_0x1a44be=>'insert'==_0x1a44be['type']&&'$text'!=_0x1a44be['name']),_0x4b8175=_0x7eecff['filter'](_0x4afc2d=>'remove'==_0x4afc2d['type']&&'$text'!=_0x4afc2d['name']);for(const _0x3f717b of _0xf7ef99)_0x6105bc['push']({'key':_0x3f717b['attributeKey'],'newValue':_0x3f717b['attributeNewValue'],'oldValue':_0x3f717b['attributeOldValue'],'range':Ot(_0x3f717b['range'],_0x1db039['model'])});for(const _0xe3d57e of _0x525115){const _0x2c1fc3=_0x4b8175['find'](_0x10162f=>_0x10162f['position']['isEqual'](_0xe3d57e['position']));_0x2c1fc3&&_0x6105bc['push']({'key':m,'newValue':_0xe3d57e['name'],'oldValue':_0x2c1fc3['name'],'range':_0x1db039['model']['createRangeOn'](_0xe3d57e['position']['nodeAfter'])});}return 0x0!=_0x6105bc['length']&&this['_reduceExistingSuggestions'](_0xcd8579,_0x6105bc);}['_processAttributeSuggestions'](_0x1111c8){let _0x36fd77=!0x1;const _0x16b382=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x588929=>_0x588929['data']['newRange']&&_0x588929['name']['startsWith']('suggestion:attribute:'));for(const _0x243822 of _0x16b382){const {subType:_0x284425,id:_0x3c2f97}=this['_splitMarkerName'](_0x243822['name']),_0x145de0=_0x284425['split']('|')[0x0];for(const _0x3cbba9 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3cbba9['id']!=_0x3c2f97&&'attribute'==_0x3cbba9['type']&&_0x3cbba9['data']&&_0x3cbba9['data']['key']==_0x145de0&&_0x3cbba9['getFirstRange']()['isIntersecting'](_0x243822['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3cbba9,_0x243822['data']['newRange'],_0x1111c8),_0x36fd77=!0x0);}return _0x36fd77;}['_recordAttributeChanges'](_0x5185fe){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x5185fe();}['_isRegisteredAttribute'](_0x3f6976){const _0x2b99eb=this['_isBlockAttribute'](_0x3f6976),_0x1c81b2=this['_inlineAttributeKeys']['has'](_0x3f6976);return _0x2b99eb||_0x1c81b2;}['_reduceExistingSuggestions'](_0x1ba505,_0x364585){if(0x0==_0x364585['length'])return!0x1;let _0x2bac6c=!0x1;for(const _0x5e75bb of _0x364585){const _0x508385=this['_findSuggestions'](_0x5e75bb['range'],'attribute')['filter'](_0x3b63b2=>!_0x3b63b2['meta']['isNextTo'])['map'](_0x2d43e7=>_0x2d43e7['suggestion']),_0x3fae85=_0xba8f4d({'newValue':_0x5e75bb['newValue']});_0x508385['filter'](_0x3f7005=>{const [_0x571afc,_0x31d436]=_0x3f7005['subType']['split']('|');return _0x571afc==_0x5e75bb['key']&&_0x31d436!=_0x3fae85;})['forEach'](_0x2809e3=>{this['_reduceSuggestionAttributeRange'](_0x2809e3,_0x5e75bb['range'],_0x1ba505),_0x2bac6c=!0x0;});}return _0x2bac6c;}['_reduceSuggestionAttributeRange'](_0x53ddef,_0x3bdbf9,_0x43cc4d){const _0x4e7e55=_0x53ddef['getFirstRange']()['getDifference'](_0x3bdbf9);0x0!==_0x4e7e55['length']?0x1!==_0x4e7e55['length']?this['_breakSuggestionMarker'](_0x53ddef,_0x3bdbf9['start'],_0x3bdbf9['end']):this['_setSuggestionRange'](_0x53ddef,_0x4e7e55[0x0]):_0x43cc4d['removeMarker'](_0x53ddef['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x32a5c8){this['_editor']=_0x32a5c8,this['_model']=_0x32a5c8['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x29f6f9,_0x3a7fc5,_0x38b44c,_0x5e7364,_0x25b9ab,_0x30c413){return new u(this['_model'],{'type':_0x29f6f9,'subType':_0x3a7fc5,'id':_0x38b44c,'author':_0x5e7364,'creator':_0x5e7364,'attributes':_0x25b9ab,'onAttributesChange':_0x30c413,'onAccept':(..._0xc08414)=>this['getSuggestionCallback'](_0x29f6f9,_0x3a7fc5,'accept')(..._0xc08414),'onDiscard':(..._0x3e0b47)=>this['getSuggestionCallback'](_0x29f6f9,_0x3a7fc5,'discard')(..._0x3e0b47)});}['registerCustomCallback'](_0xa28e95,_0x32b9a6,_0x130297,_0x5a8404){const _0x480345=_0xa28e95+':'+_0x32b9a6+':'+_0x130297;this['_customCallbacks']['set'](_0x480345,_0x5a8404);}['getSuggestionCallback'](_0x1829ae,_0x286f7b,_0x4b3f8d){const _0x1415ed=_0x1829ae+':'+_0x286f7b+':'+_0x4b3f8d;return this['_customCallbacks']['get'](_0x1415ed)||this['_defaultCallbacks']['get'](_0x1829ae+':'+_0x4b3f8d);}['_registerDefaultCallbacks'](){const _0x5065e4=()=>!0x1,_0x4c5da6=_0xbc5fae=>{_0xbc5fae['sort']((_0x5e6b7c,_0x3f3624)=>_0x5e6b7c['start']['isBefore'](_0x3f3624['start'])?0x1:-0x1),this['_model']['change'](_0x112415=>{for(const _0x593f8e of _0xbc5fae){let _0x26ac3a;_0x26ac3a=_0x593f8e['end']['isAtEnd']&&_0x593f8e['end']['parent']==_0x593f8e['start']['nodeAfter']?_0x112415['createSelection'](_0x593f8e['start']['nodeAfter'],'on'):_0x112415['createSelection'](_0x593f8e),this['_model']['deleteContent'](_0x26ac3a,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x424ed8=(_0x48e87b,_0x1bb589)=>{_0x1bb589&&this['_model']['change'](_0x19b375=>{const {commandName:_0x3c73d,commandParams:_0x468d00=[]}=_0x1bb589,_0x245dcb=_0x48e87b['map'](_0x4cd7db=>(Tt(_0x4cd7db)&&(_0x4cd7db=this['_model']['createRange'](_0x4cd7db['end'])),_0x4cd7db))['filter'](_0x174504=>'$graveyard'!==_0x174504['root']['rootName']);if(_0x245dcb['length']<0x1)return;const _0x4c2776=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4e366f=>_0x108983['fromRange'](_0x4e366f));_0x19b375['setSelection'](_0x245dcb);for(const _0x4cbfda of this['_editor']['commands']['commands']())_0x4cbfda['refresh']();_0x468d00['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3c73d,..._0x468d00);const _0x147254=_0x4c2776['filter'](_0x5e4017=>'$graveyard'!=_0x5e4017['root']['rootName']);_0x147254['length']>0x0&&_0x19b375['setSelection'](_0x147254);for(const _0x2b5eeb of _0x4c2776)_0x2b5eeb['detach']();});},_0x3c6135=(_0x753716,_0x9ecb6b)=>0x1==_0x753716['length']&&0x1==_0x9ecb6b['length']&&_0x753716[0x0]['end']['isEqual'](_0x9ecb6b[0x0]['start']),_0x387cb7=(_0x11098d,_0x407970,_0x34ae3a,_0x1179d0)=>Ft(_0x11098d,_0x407970,_0x34ae3a,_0x1179d0,this['_model'])?[_0x11098d,_0x407970]:Ft(_0x407970,_0x11098d,_0x1179d0,_0x34ae3a,this['_model'])?[_0x407970,_0x11098d]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5065e4),this['_defaultCallbacks']['set']('insertion:discard',_0x4c5da6),this['_defaultCallbacks']['set']('insertion:join',_0x3c6135),this['_defaultCallbacks']['set']('insertion:chain',_0x387cb7),this['_defaultCallbacks']['set']('deletion:accept',_0x4c5da6),this['_defaultCallbacks']['set']('deletion:discard',_0x5065e4),this['_defaultCallbacks']['set']('deletion:join',_0x3c6135),this['_defaultCallbacks']['set']('deletion:chain',_0x387cb7),this['_defaultCallbacks']['set']('formatInline:accept',_0x424ed8),this['_defaultCallbacks']['set']('formatInline:discard',_0x5065e4),this['_defaultCallbacks']['set']('formatInline:join',_0x3c6135),this['_defaultCallbacks']['set']('formatInline:chain',_0x5065e4),this['_defaultCallbacks']['set']('formatBlock:accept',_0x424ed8),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5065e4),this['_defaultCallbacks']['set']('formatBlock:join',_0x3c6135),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5065e4),this['_defaultCallbacks']['set']('attribute:accept',_0x5065e4),this['_defaultCallbacks']['set']('attribute:discard',(_0x571b0a,_0x5a4347)=>{if(!_0x5a4347)return;const _0x170c6a=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2ae574=>{if(_0x5a4347['key']==m)for(const _0x4f6ce6 of _0x571b0a){const _0x5607a7=_0x4f6ce6['start']['nodeAfter'],_0x345cfb=_0x5a4347['oldValue'];_0x2ae574['rename'](_0x5607a7,_0x345cfb);}else{if(_0x170c6a['_isBlockAttribute'](_0x5a4347['key'])){for(const _0xa9899d of _0x571b0a)void 0x0!==_0x5a4347['oldValue']?_0x2ae574['setAttribute'](_0x5a4347['key'],_0x5a4347['oldValue'],_0xa9899d['start']['nodeAfter']):_0x2ae574['removeAttribute'](_0x5a4347['key'],_0xa9899d['start']['nodeAfter']);}else{for(const _0x1f7daf of _0x571b0a)_0x5a4347['oldValue']?_0x2ae574['setAttribute'](_0x5a4347['key'],_0x5a4347['oldValue'],_0x1f7daf):_0x2ae574['removeAttribute'](_0x5a4347['key'],_0x1f7daf);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3c6135);}}function Rt(_0x5422f7,_0x2edc7e,_0x2628dd){for(const _0x573446 of _0x2edc7e['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x573446['root']==_0x573446)return!0x1;if(!_0x2628dd['containsItem'](_0x573446))return!0x1;if(_0x5422f7['isObject'](_0x573446)||_0x5422f7['isLimit'](_0x573446))return!0x0;}return!0x1;}function Tt(_0x3ba1d1){return _0x3ba1d1['end']['parent']==_0x3ba1d1['start']['nodeAfter']&&_0x3ba1d1['end']['isAtStart'];}function Et(_0x1729ae,_0x2d00d4,_0x134ddb,_0x461751){const _0x2af9ec=_0x462d83=>!_0x462d83['item']['is']('$textProxy')&&!_0x461751['isObject'](_0x462d83['item']),_0x1053c6=_0x1729ae['start']['getLastMatchingPosition'](_0x2af9ec),_0x179897=_0x1729ae['end']['getLastMatchingPosition'](_0x2af9ec,{'direction':'backward'});return(!_0x1729ae['start']['isEqual'](_0x1053c6)||!_0x1729ae['end']['isEqual'](_0x179897))&&(_0x1053c6['isBefore'](_0x179897)?_0x134ddb['updateMarker'](_0x2d00d4,{'range':_0x134ddb['createRange'](_0x1053c6,_0x179897)}):_0x134ddb['removeMarker'](_0x2d00d4),!0x0);}function Vt(_0x36d0df){return _0xba8f4d(_0x36d0df);}function Ut(_0x610934){const _0x3b7070=_0x610934['start']['nodeAfter'];return _0x3b7070&&_0x3b7070['is']('element');}function Ot(_0x11ecb4,_0x3ad9a6){return null==_0x11ecb4['end']['nodeBefore']&&_0x11ecb4['end']['parent']==_0x11ecb4['start']['nodeAfter']?Gt(_0x11ecb4['start']['nodeAfter'],_0x3ad9a6):_0x11ecb4;}function Gt(_0x378fb1,_0x546ee5){const _0x10fcf6=_0x546ee5['schema']['isObject'](_0x378fb1)||_0x546ee5['schema']['isSelectable'](_0x378fb1);return _0x546ee5['createRange'](_0x546ee5['createPositionAt'](_0x378fb1,'before'),_0x10fcf6?_0x546ee5['createPositionAfter'](_0x378fb1):_0x546ee5['createPositionAt'](_0x378fb1,'end'));}function Ft(_0x21c8cd,_0x52ed87,_0x10ca84,_0x183680,_0x5074af){if(!Pt(_0x21c8cd,_0x52ed87))return!0x1;if(_0x10ca84['end']['isEqual'](_0x183680['start']))return!0x0;if(_0x21c8cd['type']!=_0x52ed87['type'])return!0x1;if(!_0x10ca84['end']['isTouching'](_0x183680['start']))return!0x1;const _0x3d93c9=_0x5074af['createRange'](_0x10ca84['end'],_0x183680['start'])['getWalker']();for(const _0x5922d1 of _0x3d93c9)if(['elementStart','elementEnd']['includes'](_0x5922d1['type'])&&_0x5074af['schema']['isLimit'](_0x5922d1['item']))return!0x1;return!0x0;}function Pt(_0x5a92fd,_0x2d6385,_0x48e278=[]){return!(!_0x5a92fd['_isDataLoaded']||!_0x2d6385['_isDataLoaded'])&&_0x491897(Bt(_0x5a92fd['attributes'],_0x48e278),Bt(_0x2d6385['attributes'],_0x48e278));}function Lt(_0x597e81,_0x2d1d90){const _0x43349a=Ht(_0x597e81['attributes']),_0x6ca2d0=Ht(_0x2d1d90);if(!_0x597e81['_isDataLoaded'])return!0x1;for(const _0x559b04 of Object['keys'](_0x6ca2d0))if(!_0x491897(_0x43349a[_0x559b04],_0x6ca2d0[_0x559b04]))return!0x1;return!0x0;}function Ht(_0x47f5cb){const _0x413fbb=Object['assign']({},_0x47f5cb);return delete _0x413fbb['skipNestingCheck'],delete _0x413fbb['tablePasteChainId'],_0x413fbb;}class oe extends/* #__PURE__ -- @preserve */
25
- _0x38558f(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3ae8f7,_0x32df7b,_0x231a3a,_0x420626){super(),this['model']=_0x32df7b,this['view']=_0x231a3a,this['commentThreadController']=_0x420626,this['_editor']=_0x3ae8f7,this['_acceptCommand']=_0x3ae8f7['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3ae8f7['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3bdcc4,_0x4f5363)=>_0x3bdcc4||_0x4f5363),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x27f623=>_0x27f623&&this['_editor']['model']['canEditAt'](_0x32df7b['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2a1965=>_0x2a1965&&this['_editor']['model']['canEditAt'](_0x32df7b['getRanges']())),this['_pendingAction']=null,_0x231a3a['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x231a3a,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x231a3a,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x231a3a,'change:isDirty',()=>{_0x231a3a['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 _0x29c7f0=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x29c7f0);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x158dd9{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0xc977bc,_0x51bf20,_0x302ec9,_0x50e29a){super(_0xc977bc),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x51bf20['authoredAt']),this['bind']('authoredAt')['to'](_0x51bf20),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x51bf20,this['_localUser']=_0x302ec9,this['_config']=_0x50e29a,_0x50e29a['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x21e4d7}=this['_config'];this['commentsListView']=new _0x21e4d7(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',_0x1d5187=>_0x1d5187+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1d06fd,_0x19fa51)=>_0x1d06fd||!!_0x19fa51);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x52f29a}=this['_config'],_0x1f1448=new _0x52f29a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x53ec91=_0x1f1448['commentInputView'];return _0x1f1448['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x53ec91,'value',(_0x240b6a,_0x141cf2,_0x45d5be)=>!!_0x45d5be||_0x240b6a&&!_0x141cf2),_0x53ec91['on']('submit',(_0x32f086,_0x5124b3)=>{this['fire']('addComment',_0x5124b3),_0x53ec91['editor']['setData']('');}),_0x53ec91['on']('cancel',()=>this['focus']()),_0x53ec91['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1f1448;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x112e60,_0x4ca969,_0x20dda9,_0x1ae3a4){super(_0x112e60,_0x4ca969,_0x20dda9,_0x1ae3a4),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x49b85b=>_0x49b85b&&_0x49b85b[0x0]?_0x49b85b[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x408f53,_0x2b3fab)=>{let _0x1f4aae='';for(const _0x378ff1 of _0x408f53)_0x1f4aae+='<p>'+ds(_0x378ff1['content'],_0x378ff1['color'])+'</p>';return _0x2b3fab?_0x1f4aae:_0x4a8f86(_0x1f4aae,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x112e60,'Accept\x20suggestion'),_0x51bd8c['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x112e60,'Discard\x20suggestion'),_0x51bd8c['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x5bd74a(_0x112e60,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x2d34bc=this['bindTemplate'],_0x484160=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x2d34bc['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2d34bc['to']('authoredAt',_0x87e0bb=>this['_config']['formatDateTime'](_0x87e0bb))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x484160['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x2e3c6a={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x2d34bc['if']('isActive','ck-suggestion-wrapper--active'),_0x2d34bc['to']('type',_0x3a5dea=>'ck-suggestion-'+_0x3a5dea),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':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x484160}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x2e3c6a['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x2e3c6a;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x451916,_0x68514a,_0x5da3d9)=>{this['_descriptionElement']['innerHTML']=_0x5da3d9;});}['_createButton'](_0x5512f3,_0x417e00,_0x444ce8,_0x24bd5a,_0x1b017d){const _0x1b9d56=new _0x504626(this['locale']);return _0x1b9d56['set']({'label':_0x5512f3,'icon':_0x417e00,'tooltip':!0x0,'tooltipPosition':_0x1b017d}),_0x1b9d56['extendTemplate']({'attributes':{'class':_0x444ce8}}),_0x1b9d56['on']('execute',()=>{this['fire'](_0x24bd5a,this['_model']['id']);}),_0x1b9d56;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['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;}}function ds(_0x5b7b7b,_0x14635c){let _0x5cd639='';return _0x5cd639+=_0x5b7b7b['split']('*')['map']((_0x158439,_0x261c26)=>_0x261c26%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x158439)+'</span>':us(_0x158439))['join'](''),_0x14635c&&(_0x5cd639+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x14635c['value']+'\x22\x20title=\x22'+_0x14635c['title']+'\x22></span>'),_0x5cd639;}function us(_0x82a5fa){const _0x57a9dc=document['createElement']('span');return _0x57a9dc['innerText']=_0x82a5fa,_0x57a9dc['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x5031ea{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x18a2fd,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x51ce97){super(_0x51ce97),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4b6343=this['editor']['config'];_0x4b6343['define']('trackChanges.SuggestionThreadView',ne),_0x4b6343['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4b6343['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xc8d970,_0x747c85){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x30880f,_0x26358b]of this['_handleControllerBuffer']){const _0x549867=this['_suggestionToController']['has'](_0x30880f);_0x549867||_0x26358b?_0x549867&&_0x26358b&&this['_destroyController'](_0x30880f):this['_initializeController'](_0x30880f);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xc8d970,_0x747c85);}['init'](){const _0x49a1e2=this['editor'],_0x4be26e=_0x49a1e2['plugins']['get']('TrackChangesEditing'),_0x367d7b=_0x49a1e2['plugins']['get']('Annotations'),_0x1d02cc=_0x49a1e2['plugins']['get']('EditorAnnotations'),_0x5daeea=_0x49a1e2['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1d02cc['addSourceCollector'](()=>{const _0x45c395=[];for(const [_0x5cfb52,_0x45b021]of Array['from'](this['_suggestionToController'])){const _0x32861e=_0x5cfb52['getAllAdjacentSuggestions'](),_0x553458=[];for(const _0x2bb680 of _0x32861e){if(!_0x2bb680['isInContent'])continue;if(_0x2bb680['isMultiRange']){_0x553458['push'](..._0x2bb680['getRanges']());continue;}const _0x17a7cf=_0x2bb680['getFirstRange']();if(_0x553458['length']>0x0){const _0xea6855=_0x553458[0x0]['getJoined'](_0x17a7cf);if(_0xea6855){_0x553458[0x0]=_0xea6855;continue;}}_0x553458['push'](_0x17a7cf);}_0x45c395['push']([_0x45b021['view'],_0x553458]);}return _0x45c395;}),this['listenTo'](_0x4be26e,'suggestionLoaded',(_0x30fb87,_0x3f61c3)=>{this['listenTo'](_0x3f61c3,'change:previous',(_0x3e8292,_0x46a2b5,_0x47d12d,_0x1b0bde)=>{_0x3f61c3['isInContent']&&(null==_0x47d12d?(this['_updateController'](_0x1b0bde['head']),this['_handleSuggestionControllerDelayed'](_0x3f61c3,!0x1)):(this['_updateController'](_0x47d12d['head']),null==_0x1b0bde&&this['_handleSuggestionControllerDelayed'](_0x3f61c3,!0x0)));}),null!==_0x3f61c3['previous']?this['_updateController'](_0x3f61c3['head']):this['_handleSuggestionControllerDelayed'](_0x3f61c3,!0x1);}),this['listenTo'](_0x4be26e,'suggestionUnloaded',(_0x583ce2,_0x22d318,_0x2e146f)=>{this['stopListening'](_0x22d318,'change:previous'),this['_handleControllerBuffer']['delete'](_0x22d318),this['_suggestionToController']['has'](_0x22d318)&&this['_destroyController'](_0x22d318),_0x2e146f&&this['_updateController'](_0x2e146f['head']);}),this['listenTo'](_0x4be26e,'suggestionChanged',(_0x153fd6,_0x53e692)=>{this['_updateController'](_0x53e692);}),this['listenTo'](_0x367d7b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5daeea,'addComment',(_0x30df7f,{threadId:_0x4eb93d,isFromAdapter:_0x3927e2})=>{if(_0x3927e2||!_0x4be26e['hasSuggestion'](_0x4eb93d))return;const _0x4b778e=_0x4be26e['getSuggestion'](_0x4eb93d);this['_suggestionToController']['get'](_0x4b778e)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x7808df=this['editor']['plugins']['get']('Annotations'),_0x47144b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x314437=Array['from'](_0x7808df['activeAnnotations'],_0x497634=>_0x497634['innerView'])['filter'](_0x44e20a=>this['_viewToController']['has'](_0x44e20a)),_0x4cd7f5=[];for(const _0x25f403 of _0x314437){const _0x56f647=this['_viewToController']['get'](_0x25f403)['model']['getAllAdjacentSuggestions']();_0x4cd7f5['push'](..._0x56f647['reduce']((_0x3cb9ca,_0x194845)=>[..._0x3cb9ca,..._0x194845['getMarkerNames']()],[]));}_0x47144b['activeMarkers']=_0x4cd7f5;}['_addUIComponentsToFactory'](){const _0x5c5ac4=this['editor'],_0x28c42d=_0x5c5ac4['locale'],_0xa92929=o(_0x28c42d,'Track\x20changes'),_0x5e3639=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'isToggleable':!0x0,'label':_0xa92929,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x28c42d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x28c42d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x28c42d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x28c42d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x189436 of _0x5e3639)if(ae(_0x189436)){const _0x18ea00=_0x5c5ac4['commands']['get'](_0x189436['model']['commandName']);_0x189436['model']['bind']('isOn','isEnabled')['to'](_0x18ea00,'value','isEnabled');}_0x5c5ac4['ui']['componentFactory']['add']('trackChanges',_0xe6516a=>this['_createToolbarButton'](_0xe6516a,_0x5e3639,_0xa92929)),_0x5c5ac4['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2ad1a6=>this['_createMenuBarMenu'](_0x2ad1a6,_0x5e3639,_0xa92929));}['_createToolbarButton'](_0x1133ab,_0x134937,_0x410a4b){const _0xdbbbf7=zt(_0x1133ab,Zt),_0xfa3fc1=this['editor']['commands']['get']('trackChanges');_0xdbbbf7['buttonView']['set']({'tooltip':_0x410a4b,'label':_0x410a4b,'icon':ie}),_0xdbbbf7['buttonView']['bind']('isOn')['to'](_0xfa3fc1,'value'),_0xdbbbf7['buttonView']['on']('execute',()=>{_0xfa3fc1['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0xdbbbf7,_0x134937,{'role':'menu'});const _0xfd313f=[];for(const _0x999cd6 of _0x134937)ae(_0x999cd6)&&_0xfd313f['push'](this['editor']['commands']['get'](_0x999cd6['model']['commandName']));const _0x39e450=_0xdbbbf7['buttonView'];return _0x39e450['actionView']['unbind']('isEnabled'),_0x39e450['arrowView']['unbind']('isEnabled'),_0x39e450['actionView']['bind']('isEnabled')['to'](_0xfa3fc1,'isEnabled'),_0x39e450['arrowView']['bind']('isEnabled')['toMany'](_0xfd313f,'isEnabled',(..._0x4d6ef6)=>_0x4d6ef6['some'](_0x7a6042=>_0x7a6042)),_0xdbbbf7['on']('execute',_0x14a666=>{this['editor']['execute'](_0x14a666['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xdbbbf7;}['_createMenuBarMenu'](_0x3b0b2b,_0x30f62f,_0xd9bc91){const _0x48e997=new Kt(_0x3b0b2b),_0x4ae245=this['editor']['commands']['get']('trackChanges');_0x48e997['buttonView']['set']({'label':_0xd9bc91,'icon':ie});const _0x48a27b=new Qt(_0x3b0b2b);for(const _0x1397f1 of _0x30f62f){if('separator'==_0x1397f1['type']){_0x48a27b['items']['add'](new Jt(_0x3b0b2b));continue;}const _0x5751ce=new Xt(_0x3b0b2b,_0x48e997),_0x5389ed=new Yt(_0x3b0b2b),_0x1357d7=_0x1397f1['model'];_0x5389ed['bind'](...Object['keys'](_0x1357d7))['to'](_0x1357d7),_0x5389ed['delegate']('execute')['to'](_0x48e997),_0x5389ed['on']('execute',()=>{this['editor']['execute'](_0x1357d7['commandName']),this['editor']['editing']['view']['focus']();}),_0x5751ce['children']['add'](_0x5389ed),_0x48a27b['items']['add'](_0x5751ce);}return _0x48e997['bind']('isEnabled')['to'](_0x4ae245,'isEnabled'),_0x48e997['panelView']['children']['add'](_0x48a27b),_0x48e997;}['_initializeController'](_0x436504){const _0x2f5d8a=this['editor'],_0x53c74e=_0x2f5d8a['config'],_0xceea11=_0x2f5d8a['plugins']['get']('Annotations'),_0x114851=_0x2f5d8a['plugins']['get']('CommentsRepository'),_0x4afdca=_0x2f5d8a['plugins']['get']('EditorAnnotations'),_0x4ef3fb=_0x2f5d8a['plugins']['get'](_0x18a2fd)['me'],_0x238f13=_0x53c74e['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x3bbc50,CommentThreadInputView:_0x487585}=_0x2f5d8a['plugins']['get']('CommentsUI');let _0x38b810,_0x2a49c0;this['_annotationViews']['has'](_0x436504['id'])?(_0x2a49c0=this['_annotationViews']['get'](_0x436504['id']),_0x38b810=_0x2a49c0['mainView']):(_0x38b810=new _0x238f13(_0x2f5d8a['locale'],_0x436504,_0x4ef3fb,{'disableComments':this['_disableComments'],'editorConfig':_0x53c74e['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x53c74e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x53c74e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x53c74e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3d18b4(_0x53c74e['get']('locale')),'CommentView':_0x53c74e['get']('comments')['CommentView'],'CommentsListView':_0x3bbc50,'CommentThreadInputView':_0x487585}),_0x38b810['acceptButton']['on']('execute',()=>{_0x2f5d8a['editing']['view']['focus']();}),_0x38b810['discardButton']['on']('execute',()=>{_0x2f5d8a['editing']['view']['focus']();}),_0x2a49c0=_0xceea11['createAnnotationView'](this['editor']['locale'],_0x38b810),_0x2a49c0['bind']('isDirty')['to'](_0x38b810,'isDirty'),_0x2a49c0['bind']('length')['to'](_0x38b810),_0x2a49c0['bind']('type')['to'](_0x38b810,'type',_0x5c8812=>'suggestion-'+_0x5c8812),this['_annotationViews']['set'](_0x436504['id'],_0x2a49c0));const _0x16cfd0=_0x114851['createCommentThreadController'](_0x436504['commentThread'],_0x38b810),_0x2312e1=new oe(_0x2f5d8a,_0x436504,_0x38b810,_0x16cfd0),_0x21ec3b=_0x436504['getAllAdjacentSuggestions']()['filter'](_0x98601e=>_0x98601e['isInContent']);_0x38b810['descriptionParts']=_0x2f5d8a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x21ec3b),this['_suggestionToController']['set'](_0x436504,_0x2312e1),this['_viewToController']['set'](_0x38b810,_0x2312e1);const _0x33549c=_0xceea11['createAnnotation']({'view':_0x2a49c0,'target':()=>{const _0x36c2c2=[],_0x510b39=_0x436504['getAllAdjacentSuggestions']()['filter'](_0x55d192=>_0x55d192['isInContent']);for(const _0xd5c1d of _0x510b39)_0x36c2c2['push'](..._0xd5c1d['getMarkers']());return _0x1dec96(_0x2f5d8a['editing'],_0x36c2c2);},'type':()=>'suggestion-'+_0x2312e1['view']['type']});_0x114851['_bindAnnotationToEditors'](_0x38b810,_0x33549c),_0xceea11['add'](_0x33549c),_0x4afdca['registerAnnotation'](_0x33549c);}['_destroyController'](_0x4bd988){const _0x3e9316=this['editor']['plugins']['get']('CommentsRepository'),_0x392175=this['editor']['plugins']['get']('Annotations'),_0x2e1c94=this['_suggestionToController']['get'](_0x4bd988),_0x8ca93c=_0x2e1c94['view'],_0x340111=_0x392175['getByInnerView'](_0x8ca93c);_0x3e9316['_unbindEditors'](_0x8ca93c),_0x340111&&_0x392175['remove'](_0x340111),this['_suggestionToController']['delete'](_0x4bd988),this['_viewToController']['delete'](_0x8ca93c),_0x2e1c94['destroy']();}['_updateController'](_0x1e7886){if(!_0x1e7886['isInContent']||!this['_suggestionToController']['has'](_0x1e7886))return;const _0x1bc9fe=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54d9b0=this['_suggestionToController']['get'](_0x1e7886),_0x2efdd4=_0x1e7886['getAllAdjacentSuggestions']();_0x54d9b0['view']['descriptionParts']=_0x1bc9fe['descriptionFactory']['getDescriptions'](_0x2efdd4);}['destroy'](){for(const _0x3c1289 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3c1289);for(const _0x1cbfff of this['_annotationViews']['values']())_0x1cbfff['mainView']['destroy']();super['destroy']();}}function ae(_0x1267e0){return'model'in _0x1267e0;}class k extends _0x5031ea{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x2b9a87){this['editor']['plugins']['get'](p)['adapter']=_0x2b9a87;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3f9fd0){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3f9fd0);}['getSuggestions']({skipNotAttached:_0x369dbf=!0x1,toJSON:_0x3dde6e=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x369dbf,'toJSON':_0x3dde6e});}['getSuggestion'](_0x134fb9){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x134fb9);}}const T=['Pagination'];class P extends _0x5031ea{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x44b19d=this['editor'];if(_0x44b19d['config']['define']('trackChangesData.editorCreator',_0x3edac2=>{const _0x2739db=_0x44b19d['model']['document']['getRootNames']()['reduce']((_0x82bd84,_0x3e5218)=>(_0x82bd84[_0x3e5218]='',_0x82bd84),{});return _0x44b19d['constructor']['create'](_0x2739db,_0x3edac2);}),'function'!=typeof _0x44b19d['config']['get']('trackChangesData')['editorCreator'])throw new _0xcb8e69('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x41ca39){return N(this['editor'],!0x0,_0x41ca39);}['getDataWithDiscardedSuggestions'](_0x3e8092){return N(this['editor'],!0x1,_0x3e8092);}}class D extends _0x5031ea{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x2d087e){super(_0x2d087e),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x435b20){return void 0x0!==_0x435b20['getRootsAttributes'];}async function N(_0x315b1c,_0x21b3cc,_0xd65ab8){const _0x143a75=_0x54a125(_0x315b1c,T);_0x143a75['plugins']['push'](p,D),_0x143a75['rootsAttributes']=v(_0x315b1c)?_0x315b1c['getRootsAttributes']():void 0x0;const _0xf19acf=document['createDocumentFragment'](),_0x23e259=_0x315b1c['config']['get']('trackChangesData')['editorCreator'],_0x415a07=await _0x23e259(_0x143a75,()=>function(_0x452ea6){const _0x38830c=document['createElement']('div');return _0x452ea6['appendChild'](_0x38830c),_0x38830c;}(_0xf19acf));!function(_0x2eb83f,_0x494c52){const _0x143be2=_0x2eb83f['model']['document']['getRootNames']()['reduce']((_0x3b9ac9,_0x4dd1f3)=>(_0x3b9ac9[_0x4dd1f3]=_0x2eb83f['data']['get']({'rootName':_0x4dd1f3}),_0x3b9ac9),{}),_0x52d683=_0x2eb83f['plugins']['get']('Users')['users']['map'](_0x552033=>({'id':_0x552033['id'],'name':_0x552033['name']})),_0x268274=_0x2eb83f['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x139174=_0x2eb83f['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x27db91=_0x494c52['plugins']['get']('Users'),_0x1603ee=_0x494c52['plugins']['get']('TrackChangesEditing'),_0x21a113=_0x494c52['plugins']['get']('CommentsRepository');for(const _0x478f6d of _0x52d683)_0x27db91['getUser'](_0x478f6d['id'])||_0x27db91['addUser'](_0x478f6d);_0x27db91['me']||_0x27db91['useAnonymousUser']();for(const _0x5ad42f of _0x139174)_0x21a113['addCommentThread'](_0x5ad42f);for(const _0x561d96 of _0x268274)_0x1603ee['addSuggestionData'](_0x561d96);_0x494c52['data']['set'](_0x143be2);}(_0x315b1c,_0x415a07),_0x415a07['execute'](_0x21b3cc?'acceptAllSuggestions':'discardAllSuggestions');const _0x44b99e=v(_0x415a07)?_0x415a07['getFullData'](_0xd65ab8):_0x415a07['data']['get'](_0xd65ab8);return await _0x415a07['destroy'](),_0x44b99e;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x1dc395,PendingActions as _0x4d8020,icons as _0x51c65d}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x197e78,ObservableMixin as _0x511707,uid as _0x497177,insertToPriorityArray as _0x55dca7,priorities as _0x244548,logWarning as _0xe6849e,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x41c95d,View as _0x1f4890,ButtonView as _0x486fa,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4c39fc,hashObject as _0x4e2023,surroundingMarkersDetector as _0x19ad9e,trimHtml as _0x21e9b6,UserView as _0x40e36d,getDateTimeFormatter as _0x2f1ee9,getAllMarkersDomElementsSorted as _0x3246a6,sanitizeEditorConfig as _0x2a7688}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3aa03a,LiveRange as _0x5e8b6d,LivePosition as _0x285ecd}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3c8cc7,toWidget as _0x20341e}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x129508,set as _0xbec47,isEqual as _0x260467,unset as _0x276a4d,omit as Bt}from'lodash-es';import{Delete as _0x12412c,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x46754e,ShiftEnter as _0x5d8131}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x2a5b1a,_0x366009){super(_0x2a5b1a),this['_enabledCommands']=_0x366009,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 _0x5d0367 of this['editor']['commands']['commands']())_0x5d0367['affectsData']&&!this['_enabledCommands']['has'](_0x5d0367)&&_0x5d0367['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xe97c4 of this['editor']['commands']['commands']())_0xe97c4['affectsData']&&!this['_enabledCommands']['has'](_0xe97c4)&&_0xe97c4['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x185c9c,_0x3c5f2a){super(_0x185c9c),this['_suggestions']=_0x3c5f2a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1ac74d){const _0x6c84cc=this['_suggestions']['get'](_0x1ac74d);if(!_0x6c84cc)throw new _0x197e78('track-changes-accept-suggestion-not-found',this);const _0x20f109=_0x6c84cc['getRanges']();this['editor']['model']['canEditAt'](_0x20f109)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x6c84cc);}}class B extends ts{['_suggestions'];constructor(_0x2f12bd,_0x20228d){super(_0x2f12bd),this['_suggestions']=_0x20228d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3e38ee){const _0xd63381=this['_suggestions']['get'](_0x3e38ee);if(!_0xd63381)throw new _0x197e78('track-changes-discard-suggestion-not-found',this);const _0x4c071d=_0xd63381['getRanges']();this['editor']['model']['canEditAt'](_0x4c071d)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xd63381);}}function ss(_0x2f795f){return _0x2f795f['sort']((_0x334080,_0x70dbd0)=>'deletion'==_0x334080['type']&&'deletion'!=_0x70dbd0['type']?-0x1:'deletion'!=_0x334080['type']&&'deletion'==_0x70dbd0['type']?0x1:0x0);}function to(_0x2cd98c,_0x37345f){let _0x4310db,_0x2e96e1=0x0;const _0x55e3f2=[],_0x5e8d08=_0x37345f['schema'];for(;_0x2e96e1<_0x2cd98c['length'];){const _0x3e590e=_0x2cd98c[_0x2e96e1],_0x83275=_0x2cd98c[_0x2e96e1+0x1];_0x4310db||(_0x4310db=_0x37345f['createPositionBefore'](_0x3e590e)),co(_0x37345f,_0x3e590e,_0x83275)||(_0x55e3f2['push'](_0x37345f['createRange'](_0x4310db,_0x5e8d08['isObject'](_0x3e590e)?_0x37345f['createPositionAfter'](_0x3e590e):_0x37345f['createPositionAt'](_0x3e590e,'end'))),_0x4310db=null),_0x2e96e1++;}return _0x55e3f2;}function co(_0x2f58c4,_0x3d954a,_0x28647c){if(!_0x28647c)return!0x1;const _0x3cb1d6=_0x2f58c4['createPositionAfter'](_0x3d954a),_0x5b11ca=_0x2f58c4['createPositionBefore'](_0x28647c);return _0x3cb1d6['isTouching'](_0x5b11ca);}function rs(_0x9763cd,_0x58fb96,_0x4e7e29){for(;_0x4e7e29['length'];){const _0x5fbd79=_0x4e7e29['splice'](0x0,0x64);_0x9763cd['change'](()=>{for(const _0x1cb44c of _0x5fbd79)_0x1cb44c['isInContent']&&_0x58fb96['execute'](_0x1cb44c['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0xac479a,_0x45ef0c,_0xafcff1){super(_0xac479a),this['_command']=_0x45ef0c,this['_suggestions']=_0xafcff1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x148fbd=Array['from'](this['_suggestions']['values']())['some'](_0x213636=>_0x213636['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x148fbd;}['execute'](){const _0x46f9cd=ss(Array['from'](this['_suggestions']['values']()));for(const _0x38b023 of _0x46f9cd){const _0x1f024c=_0x38b023['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1f024c))return;}rs(this['editor']['model'],this['_command'],_0x46f9cd);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5ed96b,_0x39d921,_0x5923bb){super(_0x5ed96b),this['_command']=_0x39d921,this['_suggestions']=_0x5923bb,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xade4db=this['editor']['model']['document']['selection'],_0x143ef6=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x180074,_0x2856fb){const _0x591c02=Array['from'](_0x180074['getRanges']()),_0x3cee45=new Set();for(const _0x3b70e0 of _0x2856fb)if(_0x3b70e0['isInContent']){for(const _0x41b533 of _0x591c02)for(const _0x134575 of _0x3b70e0['getRanges']())(_0x41b533['isIntersecting'](_0x134575)||_0x180074['isCollapsed']&&!_0x3b70e0['isMultiRange']&&_0x3b70e0['next']&&_0x134575['end']['isTouching'](_0x41b533['start']))&&_0x3cee45['add'](_0x3b70e0);}return _0x3cee45;}(_0xade4db,_0x143ef6),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x571778=ss(Array['from'](this['_selectedSuggestions']));for(const _0x55883d of _0x571778){const _0x982c7a=_0x55883d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x982c7a))return;}rs(this['editor']['model'],this['_command'],_0x571778);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x511707(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x31a7c0,_0x12f2bf){super(),this['id']=_0x12f2bf['id'],this['type']=_0x12f2bf['type'],this['subType']=_0x12f2bf['subType']||null,this['author']=_0x12f2bf['author'],this['creator']=_0x12f2bf['creator']||_0x12f2bf['author'],this['isExternal']=Boolean(_0x12f2bf['attributes']&&_0x12f2bf['attributes']['@external']),this['data']=null,this['_model']=_0x31a7c0,this['_onAccept']=_0x12f2bf['onAccept'],this['_onDiscard']=_0x12f2bf['onDiscard'],this['_onAttributesChange']=_0x12f2bf['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x12f2bf['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 _0x398b06=this;for(;_0x398b06['previous'];)_0x398b06=_0x398b06['previous'];return _0x398b06;}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'](_0x53bc8f){this['_markerNames']['add'](_0x53bc8f);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x466cb1=>this['_model']['markers']['get'](_0x466cb1))['filter'](_0x5ad094=>_0x5ad094);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x286b38=>{for(const _0x422a4d of this['getMarkers']())_0x286b38['removeMarker'](_0x422a4d);}),this['_markerNames']['clear']();}['removeMarker'](_0x320627){this['_model']['change'](_0x21a9cf=>{_0x21a9cf['removeMarker'](_0x320627);}),this['_markerNames']['delete'](_0x320627);}['addRange'](_0x26ff78){const _0x35d5fc='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x35d5fc),this['_model']['change'](_0x311ece=>{_0x311ece['addMarker'](_0x35d5fc,{'range':_0x26ff78,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x11fa25){for(const _0x27d57b of this['getRanges']())if(_0x27d57b['isIntersecting'](_0x11fa25))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1b7efb=>_0x1b7efb['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2bd4ff,_0x26c42d)=>[..._0x2bd4ff,..._0x26c42d['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x33db1e=this['getRanges']();if(0x1!=_0x33db1e['length'])return null;const _0x3f7fac=_0x33db1e[0x0],_0x5c1a31=_0x3f7fac['start']['nodeAfter'],_0x508abe=_0x3f7fac['end']['nodeBefore'];return _0x5c1a31 instanceof _0x3aa03a?_0x5c1a31!=_0x508abe?null:_0x5c1a31: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 _0x1bb2ec=[];let _0x2f9082=this['head'];for(;_0x2f9082;)_0x1bb2ec['push'](_0x2f9082),_0x2f9082=_0x2f9082['next'];return _0x1bb2ec;}['setAttribute'](_0x2db040,_0x1edc7c){const _0x5280e7=_0x129508(this['attributes']);_0xbec47(_0x5280e7,_0x2db040,_0x1edc7c),_0x260467(_0x5280e7,this['attributes'])||(this['attributes']=_0x5280e7,this['_onAttributesChange'](_0x5280e7));}['removeAttribute'](_0x113f73){const _0x459f5e=_0x129508(this['attributes']);_0x276a4d(_0x459f5e,_0x113f73),_0x260467(_0x459f5e,this['attributes'])||(this['attributes']=_0x459f5e,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 _0x497177()['substr'](0x1,0x5);}}function o(_0x112b42,_0x521da8,_0x24c27c){const t=_0x112b42['t'];switch(_0x521da8){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x24c27c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x24c27c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x24c27c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x24c27c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x24c27c);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',_0x24c27c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x24c27c);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x24c27c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x24c27c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x24c27c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x24c27c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x24c27c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x24c27c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x24c27c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x24c27c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x24c27c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x24c27c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x24c27c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x24c27c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x24c27c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x24c27c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x24c27c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x24c27c);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'},_0x24c27c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x24c27c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x24c27c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x24c27c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x24c27c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x24c27c);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'},_0x24c27c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x24c27c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x24c27c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x24c27c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x24c27c);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'},_0x24c27c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x24c27c);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'},_0x24c27c);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x24c27c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x24c27c);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'},_0x24c27c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x24c27c);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'},_0x24c27c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x24c27c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x24c27c);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x24c27c);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x24c27c);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x521da8;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x22ea2e,_0x239ee5){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x22ea2e,this['_locale']=_0x239ee5;}['getDescriptions'](_0x15c72f){const _0x4a6bae=[],_0x18a28e=new Set(),_0x3adab3=new Set();for(let _0x2893c2=0x0;_0x2893c2<_0x15c72f['length'];_0x2893c2++){const _0x4ed0a1=_0x15c72f[_0x2893c2];if(!_0x4ed0a1['isInContent'])continue;const _0x5fc0cb=this['_handleCustomCallbackDescription'](_0x4ed0a1);if(_0x5fc0cb){if(null!=_0x4ed0a1['subType']){if(_0x18a28e['has'](_0x4ed0a1['subType']))continue;_0x18a28e['add'](_0x4ed0a1['subType']);}_0x4a6bae['push'](_0x5fc0cb);}else{if('attribute'!=_0x4ed0a1['type'])'insertion'!=_0x4ed0a1['type']&&'deletion'!=_0x4ed0a1['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4a6bae,_0x4ed0a1,_0x15c72f[_0x2893c2+0x1]);else{const _0x6aee01=_0x4ed0a1['data']['key'];if(_0x3adab3['has'](_0x6aee01))continue;_0x3adab3['add'](_0x4ed0a1['data']['key']),_0x6aee01==m?this['_handleRenameSuggestionDescription'](_0x4a6bae,_0x4ed0a1):this['_handleAttributeSuggestionDescription'](_0x4a6bae,_0x4ed0a1);}}}return this['_resolveDescriptionItems'](_0x4a6bae);}['registerDescriptionCallback'](_0x28464b){this['_customCallbacks']['push'](_0x28464b);}['registerElementLabel'](_0x4a8241,_0x2d0245,_0x1c37ae=_0x244548['normal']){'function'==typeof _0x4a8241?_0x55dca7(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4a8241,'label':_0x2d0245,'priority':_0x1c37ae}):this['_itemLabels']['set'](_0x4a8241,_0x2d0245);}['registerAttributeLabel'](_0x59d627,_0x11921e){this['_attributeLabels']['set'](_0x59d627,_0x11921e);}['getItemLabel'](_0x30ee98,_0x1f2ed5=0x1){let _0x3f2848;for(const _0x123d2d of this['_itemLabelsCallbacks'])if(_0x123d2d['matchingCallback'](_0x30ee98)){_0x3f2848=_0x123d2d['label'];break;}return _0x3f2848||(_0x3f2848=this['_itemLabels']['get'](_0x30ee98['name'])),_0x3f2848?_0x3f2848(_0x1f2ed5):0x1!==_0x1f2ed5?_0x1f2ed5+'\x20'+_0x30ee98['name']+'s':''+_0x30ee98['name'];}['_addDescriptionItems'](_0x24d222,_0x14eb51){const _0x402c2e=_0x14eb51['getFirstRange']()['getWalker'](),_0x385b20='insertion'==_0x14eb51['type']?'add':'remove';for(const _0x5c2a0a of _0x402c2e){const _0x345532=_0x5c2a0a['item'],_0x4d9e9e=_0x24d222[_0x24d222['length']-0x1];if(_0x345532['is']('$textProxy'))_0x4d9e9e&&_0x4d9e9e['type']['indexOf']('Container')>-0x1&&_0x24d222['pop'](),_0x4d9e9e&&'text'==_0x4d9e9e['type']?_0x4d9e9e[_0x385b20]+=_0x345532['data']:_0x24d222['push']({'type':'text','add':'add'==_0x385b20?_0x345532['data']:'','remove':'remove'==_0x385b20?_0x345532['data']:''});else{if(this['_schema']['isObject'](_0x345532)){const _0x19bf90=_0x345532;if(_0x4d9e9e&&_0x4d9e9e['type']['indexOf']('Container')>-0x1&&_0x24d222['pop'](),'elementEnd'==_0x5c2a0a['type'])continue;_0x4d9e9e&&_0x4d9e9e['type']==_0x385b20+'Object'&&_0x4d9e9e['element']['name']==_0x19bf90['name']?_0x4d9e9e['quantity']++:_0x24d222['push']({'type':_0x385b20+'Object','element':_0x19bf90,'quantity':0x1}),_0x402c2e['skip'](_0x1d0f53=>!('elementEnd'==_0x1d0f53['type']&&_0x1d0f53['item']==_0x345532));}else{if(this['_schema']['checkChild'](_0x345532,'$text')||_0x345532['is']('element','softBreak')){const _0x41e93b=_0x345532;if('add'==_0x385b20&&'elementStart'==_0x5c2a0a['type']||'remove'==_0x385b20&&'elementEnd'==_0x5c2a0a['type'])continue;if(_0x4d9e9e&&-0x1==_0x4d9e9e['type']['indexOf']('Container')){'text'==_0x4d9e9e['type']&&(_0x4d9e9e[_0x385b20]+='\x0a');continue;}let _0x3a7a1b;if(_0x3a7a1b='add'==_0x385b20?_0x41e93b['nextSibling']&&!this['_schema']['isObject'](_0x41e93b['nextSibling'])?_0x41e93b['nextSibling']:null:_0x41e93b['previousSibling']&&!this['_schema']['isObject'](_0x41e93b['previousSibling'])?_0x41e93b['previousSibling']:null,_0x41e93b['isEmpty']||_0x3a7a1b&&_0x3a7a1b['isEmpty']){const _0x5bc424=_0x3a7a1b&&_0x3a7a1b['isEmpty']?_0x3a7a1b:_0x41e93b;_0x4d9e9e&&_0x4d9e9e['type']==_0x385b20+'EmptyContainer'&&_0x4d9e9e['element']['name']==_0x5bc424['name']?_0x4d9e9e['quantity']++:_0x24d222['push']({'type':_0x385b20+'EmptyContainer','element':_0x5bc424,'quantity':0x1});}else _0x24d222['push']({'type':_0x385b20+'Container','element':_0x41e93b});}}}}}['_resolveDescriptionItems'](_0x282cff){const _0x18b6d3=this['_locale'],_0x174051=[],_0x1aba94=[],_0x4ba9d0=[];for(const _0x400ff1 of _0x282cff)switch(_0x400ff1['type']){case'text':if(_0x400ff1['add']=_0x400ff1['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x400ff1['remove']=_0x400ff1['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x400ff1['add']&&''!=_0x400ff1['remove']){_0x174051['push']({'type':'replace','content':o(_0x18b6d3,'REPLACE_TEXT',['\x22'+_0x400ff1['remove']+'\x22','\x22'+_0x400ff1['add']+'\x22'])});continue;}if(null!=_0x400ff1['add']['match'](/^ +$/)){_0x174051['push']({'type':'insertion','content':o(_0x18b6d3,'*Insert:*\x20%0',o(_0x18b6d3,'ELEMENT_SPACE',_0x400ff1['add']['length']))});continue;}if(null!=_0x400ff1['remove']['match'](/^ +$/)){_0x174051['push']({'type':'deletion','content':o(_0x18b6d3,'*Remove:*\x20%0',o(_0x18b6d3,'ELEMENT_SPACE',_0x400ff1['remove']['length']))});continue;}if(''!=_0x400ff1['add']){_0x174051['push']({'type':'insertion','content':o(_0x18b6d3,'*Insert:*\x20%0','\x22'+_0x400ff1['add']+'\x22')});continue;}_0x174051['push']({'type':'deletion','content':o(_0x18b6d3,'*Remove:*\x20%0','\x22'+_0x400ff1['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x174051['push']({'type':'insertion','content':o(_0x18b6d3,'*Insert:*\x20%0',this['getItemLabel'](_0x400ff1['element'],_0x400ff1['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x174051['push']({'type':'deletion','content':o(_0x18b6d3,'*Remove:*\x20%0',this['getItemLabel'](_0x400ff1['element'],_0x400ff1['quantity']))});continue;case'addContainer':_0x174051['push']({'type':'insertion','content':o(_0x18b6d3,'*Split:*\x20%0',this['getItemLabel'](_0x400ff1['element'],_0x400ff1['quantity']))});continue;case'removeContainer':_0x174051['push']({'type':'deletion','content':o(_0x18b6d3,'*Merge:*\x20%0',this['getItemLabel'](_0x400ff1['element'],_0x400ff1['quantity']))});continue;case'addFormat':_0x1aba94['push'](_0x400ff1['key']);continue;case'removeFormat':_0x4ba9d0['push'](_0x400ff1['key']);continue;default:_0x174051['push'](_0x400ff1);}if(_0x1aba94['length']){const _0x20e320=_0x1aba94['map'](_0x1e3b4f=>this['_attributeLabels']['has'](_0x1e3b4f)?this['_attributeLabels']['get'](_0x1e3b4f):_0x1e3b4f)['join'](',\x20');_0x174051['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x20e320)});}if(_0x4ba9d0['length']){const _0x254a62=_0x4ba9d0['map'](_0x21ef45=>this['_attributeLabels']['has'](_0x21ef45)?this['_attributeLabels']['get'](_0x21ef45):_0x21ef45)['join'](',\x20');_0x174051['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x254a62)});}return _0x174051;}['_handleCustomCallbackDescription'](_0x616727){for(const _0x23c802 of this['_customCallbacks']){const _0x464593=_0x23c802(_0x616727);if(_0x464593&&'type'in _0x464593)return _0x464593;}}['_handleAttributeSuggestionDescription'](_0x5d52cd,_0xdce194){const _0x294c40=_0xdce194['data'],_0xc78441=void 0x0===_0x294c40['newValue']?'removeFormat':'addFormat';_0x5d52cd['push']({'type':_0xc78441,'key':_0x294c40['key']});}['_handleRenameSuggestionDescription'](_0x5517f3,_0x6b0c2f){_0x5517f3['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x6b0c2f['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x194ec5,_0x2bbe5c,_0x24eeb1){if(this['_addDescriptionItems'](_0x194ec5,_0x2bbe5c),_0x24eeb1&&_0x24eeb1['getFirstRange']()&&!_0x2bbe5c['getFirstRange']()['end']['isEqual'](_0x24eeb1['getFirstRange']()['start'])){const _0x5af99d=_0x194ec5[_0x194ec5['length']-0x1],_0x30cd92='insertion'==_0x2bbe5c['type']?'add':'remove';_0x5af99d&&'text'==_0x5af99d['type']&&(_0x5af99d[_0x30cd92]+='\x0a');}}}class E extends _0x1dc395{['afterInit'](){const _0x42d222=this['editor'],_0x543137=_0x42d222['plugins']['get']('TrackChangesEditing');_0x42d222['commands']['get']('showAIAssistant')&&_0x543137['enableCommand']('showAIAssistant');}}class V extends _0x1dc395{['afterInit'](){const _0x3d9136=this['editor'],_0x51f5b9=_0x3d9136['locale'];if(!_0x3d9136['plugins']['has']('AlignmentEditing'))return;const _0x4a26b1=_0x3d9136['plugins']['get']('TrackChangesEditing');_0x4a26b1['enableDefaultAttributesIntegration']('alignment'),_0x4a26b1['registerBlockAttribute']('alignment'),_0x4a26b1['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x51f5b9,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ae7d6=this['editor'],_0x3dd16f=_0x4ae7d6['locale'];_0x4ae7d6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d2203=>{if('formatBlock'!=_0x3d2203['type'])return;const {data:_0x3766fc}=_0x3d2203;if(_0x3766fc&&'alignment'==_0x3766fc['commandName']){const _0x84c3d4=_0x3766fc['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3dd16f,'*Format:*\x20%0',function(_0x3401a4){switch(_0x3401a4){case'left':return o(_0x3dd16f,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3dd16f,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3dd16f,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3dd16f,'FORMAT_JUSTIFY_TEXT');}}(_0x84c3d4))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x1dc395{['afterInit'](){const _0x210650=this['editor'],_0x288b7f=_0x210650['plugins']['get']('TrackChangesEditing'),_0x2b2ccc=_0x210650['locale'];for(const _0x4a42dd of ti){if(!_0x210650['plugins']['has'](_0x4a42dd))continue;const _0x3337e3=_0x4a42dd['slice'](0x0,-0x7)['toLowerCase'](),_0x1b7f20='FORMAT_'+_0x3337e3['toUpperCase']();_0x288b7f['enableDefaultAttributesIntegration'](_0x3337e3),_0x288b7f['registerInlineAttribute'](_0x3337e3),_0x288b7f['descriptionFactory']['registerAttributeLabel'](_0x3337e3,o(_0x2b2ccc,_0x1b7f20));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcf90d7=this['editor'],_0x3154b4=_0xcf90d7['locale'],_0x9e056b=_0xcf90d7['plugins']['get']('TrackChangesEditing');function _0x435aa7(_0x45e6c7,_0xe8a12c){_0x9e056b['descriptionFactory']['registerDescriptionCallback'](_0x178360=>{if('formatInline'!=_0x178360['type'])return;const {data:_0x9dd1c0}=_0x178360;return _0x9dd1c0&&_0x9dd1c0['commandName']===_0x45e6c7?_0x9dd1c0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3154b4,'*Format:*\x20%0',_0xe8a12c)}:{'type':'format','content':o(_0x3154b4,'*Remove\x20format:*\x20%0',_0xe8a12c)}:void 0x0;});}_0x435aa7('bold',o(_0x3154b4,'FORMAT_BOLD')),_0x435aa7('italic',o(_0x3154b4,'FORMAT_ITALIC')),_0x435aa7('underline',o(_0x3154b4,'FORMAT_UNDERLINE')),_0x435aa7('code',o(_0x3154b4,'FORMAT_CODE')),_0x435aa7('strikethrough',o(_0x3154b4,'FORMAT_STRIKETHROUGH')),_0x435aa7('subscript',o(_0x3154b4,'FORMAT_SUBSCRIPT')),_0x435aa7('superscript',o(_0x3154b4,'FORMAT_SUPERSCRIPT'));}}class O extends _0x1dc395{['afterInit'](){const _0xef3307=this['editor'],_0xb86df6=_0xef3307['locale'];if(!_0xef3307['plugins']['has']('BlockQuoteEditing'))return;const _0x5814f1=_0xef3307['plugins']['get']('TrackChangesEditing'),_0x38c6c0=this['editor']['commands']['get']('blockQuote');_0x5814f1['enableCommand']('blockQuote',(_0x5dfa44,_0x37c0f={})=>{const _0x21fa9e=this['editor']['model']['document']['selection'],_0x50ae3f=_0x37c0f&&void 0x0!==_0x37c0f['forceValue']?_0x37c0f['forceValue']:!_0x38c6c0['value'];let _0x520c20=[];if(_0x50ae3f){const _0x38874b=Array['from'](_0x21fa9e['getSelectedBlocks']())['filter'](_0x41c122=>oo(_0x41c122)||function(_0x586454,_0x2a2b5d){const _0x31547a=_0x2a2b5d['checkChild'](_0x586454['parent'],'blockQuote'),_0xa04d01=_0x2a2b5d['checkChild'](['$root','blockQuote'],_0x586454);return _0x31547a&&_0xa04d01;}(_0x41c122,this['editor']['model']['schema']));_0x520c20=to(_0x38874b,_0xef3307['model']);}else{const _0x30baea=Array['from'](_0x21fa9e['getSelectedBlocks']())['filter'](_0x2d26df=>oo(_0x2d26df));_0x520c20=to(_0x30baea,_0xef3307['model']);}_0xef3307['model']['change'](()=>{for(const _0x43fdaf of _0x520c20)_0x5814f1['markBlockFormat'](_0x43fdaf,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x50ae3f}]});});}),_0x5814f1['descriptionFactory']['registerDescriptionCallback'](_0x4bb417=>{const {data:_0x2e7c2a}=_0x4bb417;if(_0x2e7c2a&&'blockQuote'==_0x2e7c2a['commandName']){const _0x2e733e=o(_0xb86df6,'ELEMENT_BLOCK_QUOTE');return _0x2e7c2a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb86df6,'*Set\x20format:*\x20%0',_0x2e733e)}:{'type':'format','content':o(_0xb86df6,'*Remove\x20format:*\x20%0',_0x2e733e)};}});}}function oo(_0x5b1a72){return'blockQuote'==_0x5b1a72['parent']['name'];}class G extends _0x1dc395{['afterInit'](){const _0x1b6985=this['editor'];_0x1b6985['plugins']['has']('CaseChange')&&(_0x1b6985['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1b6985['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1b6985['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x1dc395{['afterInit'](){const _0x5e088a=this['editor'];_0x5e088a['commands']['get']('ckbox')&&_0x5e088a['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x1dc395{['afterInit'](){const _0x6bdd05=this['editor'];if(!_0x6bdd05['plugins']['has']('CodeBlock'))return;const _0x5ea30c=_0x6bdd05['plugins']['get']('TrackChangesEditing'),_0x2a0ee3=_0x6bdd05['locale'],_0x2243c4=_0x6bdd05['config']['get']('codeBlock')['languages'],_0x4d6fd0=_0x6bdd05['commands']['get']('codeBlock');_0x5ea30c['enableCommand']('indentCodeBlock'),_0x5ea30c['enableCommand']('outdentCodeBlock'),_0x5ea30c['enableCommand']('codeBlock',(_0x28ca17,_0x273f21={})=>{const _0x5fd3c8=_0x6bdd05['model'],_0x17ac18=_0x6bdd05['model']['document']['selection'],_0x23f531=_0x273f21&&void 0x0!==_0x273f21['forceValue']?_0x273f21['forceValue']:!_0x4d6fd0['value'];let _0x2b22ce;_0x273f21['language']||(_0x273f21['language']=_0x2243c4[0x0]['language']),_0x2b22ce=_0x23f531?Array['from'](_0x17ac18['getSelectedBlocks']())['filter'](_0x102510=>eo(_0x102510)||function(_0x427d5f,_0x22f3f7){if(_0x427d5f['is']('rootElement')||_0x22f3f7['isLimit'](_0x427d5f))return!0x1;return _0x22f3f7['checkChild'](_0x427d5f['parent'],'codeBlock');}(_0x102510,_0x5fd3c8['schema'])):Array['from'](_0x17ac18['getSelectedBlocks']())['filter'](_0xe64e75=>eo(_0xe64e75));const _0x57471e=to(_0x2b22ce,_0x5fd3c8);_0x5fd3c8['change'](()=>{for(const _0x3e8968 of _0x57471e)_0x5ea30c['markBlockFormat'](_0x3e8968,{'commandName':'codeBlock','commandParams':[{..._0x273f21,'forceValue':_0x23f531}],'formatGroupId':'blockName'});});}),(_0x5ea30c['descriptionFactory']['registerElementLabel']('codeBlock',_0x1086bf=>o(_0x2a0ee3,'ELEMENT_CODE_BLOCK',_0x1086bf)),_0x5ea30c['descriptionFactory']['registerDescriptionCallback'](_0x54047d=>{if('formatBlock'!=_0x54047d['type'])return;const _0x37cd2b=_0x2a0ee3['t'],{data:_0x11b394}=_0x54047d;if(!_0x11b394||'codeBlock'!=_0x11b394['commandName'])return;const _0x2e7c20=_0x11b394['commandParams'][0x0]['language'],_0x3a1d4a=_0x37cd2b(_0x2243c4['find'](_0x4a8090=>_0x4a8090['language']===_0x2e7c20)['label'])['toLowerCase']();return _0x11b394['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2a0ee3,'*Set\x20format:*\x20%0',o(_0x2a0ee3,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3a1d4a+')')}:{'type':'format','content':o(_0x2a0ee3,'*Remove\x20format:*\x20%0',o(_0x2a0ee3,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0xeeec06){return'codeBlock'==_0xeeec06['name'];}class H extends _0x1dc395{['afterInit'](){const _0x597f89=this['editor'];if(!_0x597f89['plugins']['has']('CommentsEditing'))return;_0x597f89['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4d4db3,_0x36fc40,_0x10b0e0){const _0x5bad8d=[];for(const _0x64d0 of _0x36fc40['getItems']())_0x64d0['hasAttribute'](_0x4d4db3)&&_0x5bad8d['push'](_0x10b0e0['createRangeOn'](_0x64d0));return _0x5bad8d;}function _e(_0x3681a0,_0x9fbbb1,{showActiveMarker:_0x2bd2f7=!0x0}={}){const _0x1983a0=_0x3681a0['plugins']['get']('TrackChangesEditing');return(_0x5ade11,_0x2c7526,_0x4201f3)=>{if(!_0x4201f3['consumable']['test'](_0x2c7526['markerRange'],_0x5ade11['name']))return;const _0x413d9a=_0x2c7526['markerRange']['getWalker'](),_0x4a8787=_0x2c7526['markerRange']['start'],_0x5374f0=_0x3681a0['model']['schema'];let _0x195908=null,_0x1cada3=null,_0x12a0d6=!0x1,_0x52fdfc=!0x1;for(const _0xbe86f0 of _0x413d9a){const _0x508cc7=_0xbe86f0['item'];_0x12a0d6=_0x12a0d6||_0x5374f0['isContent'](_0x508cc7);const _0x164137=_0x4201f3['mapper']['toViewElement'](_0x508cc7);if(_0x164137&&_0x164137['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xbe86f0['type']&&(_0x5374f0['isBlock'](_0x508cc7)&&!_0x5374f0['isLimit'](_0x508cc7)&&(_0x508cc7['nextSibling']||_0x4a8787['isAtEnd']?_0x195908&&_0x195908['parent']==_0x508cc7||(_0x195908=_0x508cc7,_0x2011b3(_0xbe86f0['previousPosition']),_0x52fdfc=!0x0):_0x1cada3=_0x1cada3||_0xbe86f0['previousPosition']));}function _0x2011b3(_0x4c3a2a){const _0x3c6305=_0x4201f3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x9fbbb1}),_0x26625f=_0x4201f3['mapper']['toViewPosition'](_0x4c3a2a);_0x2bd2f7&&_0x1983a0['activeMarkers']['includes'](_0x2c7526['markerName'])&&_0x4201f3['writer']['addClass']('ck-suggestion-marker--active',_0x3c6305),_0x4201f3['writer']['insert'](_0x26625f,_0x3c6305),_0x4201f3['mapper']['bindElementToMarker'](_0x3c6305,_0x2c7526['markerName']);}_0x12a0d6||_0x52fdfc||!_0x1cada3||_0x2011b3(_0x1cada3);};}class q extends _0x1dc395{static get['requires'](){return[_0x12412c];}['init'](){const _0x3f1833=this['editor'],_0x5a3120=_0x3f1833['plugins']['get']('TrackChangesEditing');_0x5a3120['enableCommand']('delete');const _0xb31807=_0x3f1833['commands']['get']('deleteForward');_0x5a3120['enableCommand']('deleteForward',(_0x5bd7af,_0x23ae98={})=>{const _0x18ff38=_0x3f1833['model']['createSelection'](_0x3f1833['model']['document']['selection']);_0x18ff38['isCollapsed']&&_0x3f1833['model']['modifySelection'](_0x18ff38,{'direction':'forward','unit':_0x23ae98['unit']});const _0x300af3=_0x18ff38['getFirstRange'](),_0x4dc656=_0x5e8b6d['fromRange'](_0x300af3);let _0x282bbb;_0x5bd7af(_0x23ae98),_0x282bbb='$graveyard'==_0x4dc656['root']['rootName']?_0x3f1833['model']['createRange'](_0x300af3['start']):_0x3f1833['model']['createRange'](_0x4dc656['start'],_0x4dc656['end']),_0x4dc656['detach'](),_0x3f1833['model']['enqueueChange'](_0xb31807['buffer']['batch'],_0x583af3=>{_0xb31807['buffer']['lock'](),_0x583af3['setSelection'](_0x583af3['createRange'](_0x282bbb['end'])),_0xb31807['buffer']['unlock']();});}),_0x3f1833['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x3f1833,'merge'),{'priority':'high'}),_0x3f1833['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1fe406,_0x1d97c6,_0x23a16f)=>{_0x23a16f['options']['showSuggestionHighlights']&&_e(_0x3f1833,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1fe406,_0x1d97c6,_0x23a16f);},{'priority':'high'}),_0x3f1833['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3f15ff,_0x567da5,_0x3b6755)=>{const _0x316ab2=_0x3b6755['mapper']['markerNameToElements'](_0x567da5['markerName']);if(_0x316ab2){for(const _0x21ddda of _0x316ab2)_0x21ddda['is']('uiElement')&&(_0x3b6755['mapper']['unbindElementFromMarkerName'](_0x21ddda,_0x567da5['markerName']),_0x3b6755['writer']['remove'](_0x21ddda));}},{'priority':'high'});}}class z extends _0x1dc395{['afterInit'](){const _0x471cae=this['editor'];if(!_0x471cae['plugins']['has']('ListEditing'))return;const _0x283219=_0x471cae['locale'],_0x55aec6=_0x471cae['plugins']['get']('TrackChangesEditing'),_0x286ae4=_0x471cae['plugins']['has']('TodoListEditing'),_0x187a3b=!!_0x471cae['config']['get']('list.multiBlock');function _0x1a28cb(_0x22051d){return{'type':'format','content':''+o(_0x283219,'*Set\x20format:*\x20%0',_0x22051d)};}function _0x177090(_0x1aa3ac){return{'type':'format','content':''+o(_0x283219,'*Remove\x20format:*\x20%0',_0x1aa3ac)};}_0x55aec6['enableDefaultAttributesIntegration']('numberedList'),_0x55aec6['enableDefaultAttributesIntegration']('bulletedList'),_0x55aec6['enableDefaultAttributesIntegration']('customNumberedList'),_0x55aec6['enableDefaultAttributesIntegration']('customBulletedList'),_0x55aec6['enableDefaultAttributesIntegration']('indentList'),_0x55aec6['enableDefaultAttributesIntegration']('outdentList'),_0x55aec6['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x55aec6['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x55aec6['registerBlockAttribute']('listItemId'),_0x55aec6['registerBlockAttribute']('listType'),_0x55aec6['registerBlockAttribute']('listIndent'),_0x187a3b&&(_0x55aec6['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x55aec6['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x286ae4&&(_0x55aec6['enableDefaultAttributesIntegration']('todoList'),_0x55aec6['enableDefaultAttributesIntegration']('checkTodoList'),_0x55aec6['registerBlockAttribute']('todoListChecked'),_0x55aec6['descriptionFactory']['registerDescriptionCallback'](_0x2d3f07=>{const {data:_0x2ef5c9}=_0x2d3f07;if(_0x2ef5c9&&'todoListChecked'==_0x2ef5c9['key'])return{'type':'format','content':_0x2ef5c9['newValue']?o(_0x283219,'*Check\x20item*'):o(_0x283219,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x587785=>{if(_0x587785['batch']['isUndo'])return!0x1;let _0xedd77e=!0x1;const _0x4916a5=_0x55aec6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x269754=>'todoListChecked'===_0x55aec6['_getAttributeKey'](_0x269754));for(const _0x5609d3 of _0x4916a5){'todo'!=_0x5609d3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x55aec6['_findSuggestions'](_0x5609d3['getFirstRange'](),'attribute')['find'](_0x369e0d=>'listType'===_0x55aec6['_getAttributeKey'](_0x369e0d['suggestion']))||(_0x587785['removeMarker'](_0x5609d3['getFirstMarker']()),_0xedd77e=!0x0));}return _0xedd77e;})),_0x55aec6['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x283219,'FORMAT_INDENT'));const _0x8f22ec={'type':'format','content':''};_0x55aec6['descriptionFactory']['registerDescriptionCallback'](_0x499bb5=>{const {data:_0x3c24cf}=_0x499bb5;if(!_0x3c24cf||'listType'!=_0x3c24cf['key'])return;let _0x556d89=_0x499bb5['head'];for(;_0x556d89;){if(_0x556d89['data']&&(('listStyle'==_0x556d89['data']['key']||'listMarkerStyle'==_0x556d89['data']['key'])&&(_0x556d89['data']['newValue']&&'default'!=_0x556d89['data']['newValue']||'default'!=_0x556d89['data']['oldValue']&&!_0x3c24cf['newValue'])||!_0x187a3b&&_0x556d89['data']['key']==m))return _0x8f22ec;_0x556d89=_0x556d89['next'];}if(null==_0x3c24cf['newValue'])switch(_0x3c24cf['oldValue']){case'bulleted':return _0x177090(o(_0x283219,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x177090(o(_0x283219,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x177090(o(_0x283219,'ELEMENT_TODO_LIST'));}switch(_0x3c24cf['newValue']){case'bulleted':return _0x1a28cb(o(_0x283219,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1a28cb(o(_0x283219,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1a28cb(o(_0x283219,'ELEMENT_TODO_LIST'));}}),_0x55aec6['descriptionFactory']['registerDescriptionCallback'](_0xca6346=>{const {data:_0x480f29}=_0xca6346;if(_0x480f29&&'listIndent'==_0x480f29['key'])return null==_0x480f29['newValue']||null==_0x480f29['oldValue']&&0x0==_0x480f29['newValue']?_0x8f22ec:void 0x0;}),_0x55aec6['descriptionFactory']['registerDescriptionCallback'](_0x271b3e=>{if('attribute'!=_0x271b3e['type'])return;const {data:_0x70c9be}=_0x271b3e;if(!_0x70c9be||'listItemId'!=_0x70c9be['key'])return;const _0x4bd986=le(_0x271b3e);return'newValue'==_0x4bd986?{'type':'format','content':o(_0x283219,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4bd986?{'type':'format','content':o(_0x283219,'*Split:*\x20list\x20item')}:_0x8f22ec;}),_0x471cae['model']['document']['registerPostFixer'](_0xb2df3d=>this['listItemIdFixer'](_0xb2df3d)),_0x471cae['model']['document']['registerPostFixer'](_0x2d1604=>this['noTrackChangesFixer'](_0x2d1604)),_0x471cae['model']['document']['registerPostFixer'](_0x24c725=>this['assureChains'](_0x24c725)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x593a92){if(_0x593a92['batch']['isUndo']||!_0x593a92['batch']['isLocal'])return!0x1;let _0x156d31=!0x1;const _0x2b53a2=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f2d4b=>_0x3f2d4b['data']&&'listItemId'==_0x3f2d4b['data']['key'])['filter'](_0x49d50c=>_0x49d50c['data']['newValue']&&_0x49d50c['data']['oldValue']);for(const _0x2cdf77 of _0x2b53a2)le(_0x2cdf77)||(_0x593a92['removeMarker'](_0x2cdf77['getFirstMarker']()),_0x156d31=!0x0);return _0x156d31;}['noTrackChangesFixer'](_0x5083d1){if(_0x5083d1['batch']['isUndo']||!_0x5083d1['batch']['isLocal'])return!0x1;const _0x490eb3=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x490eb3['trackChangesCommand']['value'])return!0x1;let _0x5f0da9=!0x1;const _0x1eda48=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x50c391=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2b966f=>'attribute'==_0x2b966f['type'])['filter'](_0x42f261=>_0x1eda48['includes'](_0x42f261['attributeKey']));if(0x0==_0x50c391['length'])return _0x5f0da9;for(const _0x31f678 of _0x50c391){const _0x55530d=_0x490eb3['_findSuggestions'](_0x31f678['range'],'attribute')['filter'](_0x145b66=>!_0x145b66['meta']['isNextTo'])['map'](_0x227166=>_0x227166['suggestion'])['filter'](_0x51c7d3=>{const _0x409d3d=_0x490eb3['_getAttributeKey'](_0x51c7d3);return _0x1eda48['includes'](_0x409d3d);});if(_0x55530d['length']){for(const _0x4eff42 of _0x55530d)_0x5083d1['removeMarker'](_0x4eff42['getFirstMarker']());_0x5f0da9=!0x0;}}return _0x5f0da9;}['assureChains'](_0x1fdea9){if(_0x1fdea9['batch']['isUndo']||!_0x1fdea9['batch']['isLocal'])return!0x1;const _0x34b850=this['editor']['plugins']['get']('TrackChangesEditing');let _0xc2e515=!0x1;const _0x57671a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x2086cb of _0x34b850['getSuggestions']({'skipNotAttached':!0x0})){const _0x269075=_0x34b850['_findSuggestions'](_0x2086cb['getFirstRange'](),'attribute')['map'](_0x1c7177=>_0x1c7177['suggestion'])['filter'](_0x5344e5=>_0x5344e5['data']&&_0x57671a['includes'](_0x5344e5['data']['key']));if(!_0x269075['length'])continue;const _0x13b9fd=_0x269075[0x0]['head']['attributes']['groupId'];if(!_0x269075['every'](_0x2433e8=>_0x2433e8['attributes']['groupId']===_0x13b9fd)){for(const _0x1ddb1a of _0x269075)_0x115143(_0x1ddb1a,_0x13b9fd)&&(_0xc2e515=!0x0);}}return _0xc2e515;function _0x16530e(_0x4763ef,_0x3bddee){for(const _0x4f934a of _0x34b850['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3fcaee=>'attribute'==_0x3fcaee['type']&&_0x3fcaee['attributes']['groupId']==_0x4763ef))_0x4f934a['setAttribute']('groupId',_0x3bddee);}function _0x115143(_0x176da9,_0x416771){let _0x1c8ecb=_0x176da9['head'],_0x36ef7d=!0x1;for(;_0x1c8ecb;)_0x1c8ecb['attributes']['groupId']!=_0x416771&&(_0x16530e(_0x1c8ecb['attributes']['groupId'],_0x416771),_0x1c8ecb['setAttribute']('groupId',_0x416771),_0x36ef7d=!0x0),_0x1c8ecb=_0x1c8ecb['next'];return _0x36ef7d;}}['_supportLegacySuggestions'](){const _0x17f3a0=this['editor'],_0x4f66b0=_0x17f3a0['locale'],_0x3a7984=_0x17f3a0['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3a7984['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x42d260,_0x3acca5){const _0x28ca9c=[];for(let _0x5e0aca of _0x42d260)_0x5e0aca['start']['nodeAfter']===_0x5e0aca['end']['parent']&&(_0x5e0aca=_0x17f3a0['model']['createRange'](_0x17f3a0['model']['createPositionAt'](_0x5e0aca['start']['nodeAfter'],0x0))),_0x28ca9c['push'](_0x5e0aca);_0x17f3a0['model']['change'](_0x546f9b=>{const _0x2e0387=_0x17f3a0['model']['document']['selection'],_0x5582a3=Array['from'](_0x2e0387['getRanges']())['map'](_0x48f938=>_0x5e8b6d['fromRange'](_0x48f938));_0x546f9b['setSelection'](_0x28ca9c),_0x17f3a0['commands']['get'](_0x3acca5['commandName'])['refresh'](),_0x3acca5['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x17f3a0['execute'](_0x3acca5['commandName'],..._0x3acca5['commandParams']),_0x546f9b['setSelection'](_0x5582a3);for(const _0x5cb091 of _0x5582a3)_0x5cb091['detach']();});}),_0x3a7984['descriptionFactory']['registerElementLabel'](function(_0x351877){const _0x7a8643=!_0x17f3a0['model']['schema']['isObject'](_0x351877),_0x1877e9=_0x351877['previousSibling'],_0x20c739=_0x351877['nextSibling'],_0x32036e=_0x351877['getAttribute']('listItemId'),_0x346ea1=!_0x1877e9||_0x1877e9['getAttribute']('listItemId')!==_0x32036e,_0x544a63=!_0x20c739||_0x20c739['getAttribute']('listItemId')!==_0x32036e;return _0x7a8643&&Boolean(_0x32036e)&&_0x346ea1&&_0x544a63;},_0x1978e4=>o(_0x4f66b0,'ELEMENT_LIST_ITEM',_0x1978e4));}['_registerLegacyDescription'](){const _0xef0f3=this['editor'],_0x5ca2de=_0xef0f3['locale'];function _0x5cf5dc(_0xd35b0b){const _0x2cf84b=_0xef0f3['commands']['get']('bulletedList')['value'],_0x1c45f8=_0xef0f3['commands']['get']('numberedList')['value'];return'numberedList'===_0xd35b0b?_0x2cf84b:_0x1c45f8;}_0xef0f3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1b318c){if('formatBlock'!=_0x1b318c['type'])return;const {data:_0x5dc2f2}=_0x1b318c;if(!_0x5dc2f2)return;let _0x5ad5a0,_0x2d5db6,_0x5b4110,_0x19b1fe;switch(_0x5dc2f2['commandName']){case'bulletedList':_0x5b4110=_0x5dc2f2['commandParams'][0x0]['forceValue'],_0x19b1fe=_0x5cf5dc(_0x5dc2f2['commandName']),_0x5ad5a0=_0x5b4110?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x19b1fe&&_0xef0f3['config']['get']('list.multiBlock')||(_0x5ad5a0='*Change\x20to:*\x20%0'),_0x2d5db6={'type':'format','content':o(_0x5ca2de,_0x5ad5a0,o(_0x5ca2de,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5b4110=_0x5dc2f2['commandParams'][0x0]['forceValue'],_0x19b1fe=_0x5cf5dc(_0x5dc2f2['commandName']),_0x5ad5a0=_0x5b4110?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x19b1fe&&_0xef0f3['config']['get']('list.multiBlock')||(_0x5ad5a0='*Change\x20to:*\x20%0'),_0x2d5db6={'type':'format','content':o(_0x5ca2de,_0x5ad5a0,o(_0x5ca2de,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5ad5a0='*Indent:*\x20%0',_0x2d5db6={'type':'format','content':o(_0x5ca2de,_0x5ad5a0,o(_0x5ca2de,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5ad5a0=function(_0x3d9a45){const _0x5e6720=_0x3d9a45['getFirstRange']();let _0xcf5f3a=_0x5e6720['start']['nodeAfter'];for(;_0xcf5f3a&&_0x5e6720['containsItem'](_0xcf5f3a);){if(_0xcf5f3a['getAttribute']('listIndent')>0x0)return!0x1;_0xcf5f3a=_0xcf5f3a['nextSibling'];}return!0x0;}(_0x1b318c)?o(_0x5ca2de,'*Format:*\x20remove\x20from\x20%0',o(_0x5ca2de,function(_0x33e256){return'ELEMENT_'+_0x33e256['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1b318c))):o(_0x5ca2de,'*Outdent:*\x20%0',o(_0x5ca2de,'ELEMENT_LIST_ITEM')),_0x2d5db6={'type':'format','content':_0x5ad5a0};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5dc2f2['multipleBlocks']&&(_0x5ad5a0='*Merge:*\x20%0',_0x2d5db6={'type':'deletion','content':o(_0x5ca2de,_0x5ad5a0,o(_0x5ca2de,'ELEMENT_LIST_ITEM'))});}return _0x2d5db6;});}}function le(_0x51369d){let _0x4826f5=_0x51369d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4826f5;){const _0x77198=_0x4826f5['getAttribute']('listItemId');if(!_0x77198)return!0x1;if(_0x77198==_0x51369d['data']['newValue'])return'newValue';if(_0x77198==_0x51369d['data']['oldValue'])return'oldValue';_0x4826f5=_0x4826f5['previousSibling'];}return!0x1;}class ue extends _0x1dc395{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x13f388=this['editor']['config']['get']('list.properties'),_0x497656=this['editor']['plugins']['get']('TrackChangesEditing');_0x13f388['styles']&&(_0x497656['enableDefaultAttributesIntegration']('listStyle'),_0x497656['registerBlockAttribute']('listStyle')),_0x13f388['reversed']&&(_0x497656['enableDefaultAttributesIntegration']('listReversed'),_0x497656['registerBlockAttribute']('listReversed')),_0x13f388['startIndex']&&(_0x497656['enableDefaultAttributesIntegration']('listStart'),_0x497656['registerBlockAttribute']('listStart'));const _0x5823c1={'type':'format','content':''};_0x497656['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x582fd6=this['editor']['locale'];_0x497656['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x582fd6,'FORMAT_LIST_REVERSED')),_0x497656['descriptionFactory']['registerDescriptionCallback'](_0x289a29=>{const {data:_0x277418}=_0x289a29;if(_0x277418&&'listReversed'==_0x277418['key'])return null==_0x277418['newValue']||0x0==_0x277418['newValue']&&null==_0x277418['oldValue']?_0x5823c1:void 0x0;}),_0x497656['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x582fd6,'FORMAT_LIST_START')),_0x497656['descriptionFactory']['registerDescriptionCallback'](_0x2b6b82=>{const {data:_0x10c930}=_0x2b6b82;if(_0x10c930&&'listStart'==_0x10c930['key'])return null==_0x10c930['newValue']||0x1==_0x10c930['newValue']&&null==_0x10c930['oldValue']?_0x5823c1:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x108120=>{if(_0x108120['batch']['isUndo'])return!0x1;let _0x236e12=!0x1;const _0x92fb24=_0x497656['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x195516=>{const _0x25bf83=_0x497656['_getAttributeKey'](_0x195516);return'listStart'==_0x25bf83||'listReversed'==_0x25bf83;});for(const _0x16c050 of _0x92fb24){const _0x3a3bb4=_0x16c050['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3a3bb4||'customNumbered'==_0x3a3bb4)continue;_0x497656['_findSuggestions'](_0x16c050['getFirstRange'](),'attribute')['find'](_0xe8e516=>'listType'==_0x497656['_getAttributeKey'](_0xe8e516['suggestion']))||(_0x108120['removeMarker'](_0x16c050['getFirstMarker']()),_0x236e12=!0x0);}return _0x236e12;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1d4ba7){const _0x5d2275=this['editor']['locale'],{data:_0x24b154}=_0x1d4ba7,_0x2dfbd5={'type':'format','content':''};if(!_0x24b154||'listStyle'!=_0x24b154['key'])return;if(!_0x24b154['oldValue'])return'default'==_0x24b154['newValue']?_0x2dfbd5:{'type':'format','content':''+o(_0x5d2275,'*Set\x20format:*\x20%0',o(_0x5d2275,this['_getTranslationKeyForListStyle'](_0x24b154['newValue'])))};if(!_0x24b154['newValue']){if('default'==_0x24b154['oldValue'])return _0x2dfbd5;let _0x24efc4=_0x1d4ba7['head'];for(;_0x24efc4;){if(_0x24efc4['data']&&'listType'==_0x24efc4['data']['key']&&_0x24efc4['data']['newValue'])return _0x2dfbd5;_0x24efc4=_0x24efc4['next'];}return{'type':'format','content':''+o(_0x5d2275,'*Remove\x20format:*\x20%0',o(_0x5d2275,this['_getTranslationKeyForListStyle'](_0x24b154['oldValue'])))};}if('default'!=_0x24b154['newValue'])return{'type':'format','content':''+o(_0x5d2275,'*Set\x20format:*\x20%0',o(_0x5d2275,this['_getTranslationKeyForListStyle'](_0x24b154['newValue'])))};let _0x9bc2d4=_0x1d4ba7['head'];for(;_0x9bc2d4;){if(_0x9bc2d4['data']&&'listType'==_0x9bc2d4['data']['key']&&_0x9bc2d4['data']['newValue']&&_0x9bc2d4['data']['oldValue'])return _0x2dfbd5;_0x9bc2d4=_0x9bc2d4['next'];}return{'type':'format','content':o(_0x5d2275,'*Set\x20format:*\x20%0',o(_0x5d2275,'ELEMENT_'+_0x1d4ba7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x30abc6=this['editor'],_0x16916c=_0x30abc6['locale'];_0x30abc6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39781a=>{if('formatBlock'!=_0x39781a['type'])return;const {data:_0x1aa433}=_0x39781a;if(!_0x1aa433)return;let _0x25d649,_0x2ca966;switch(_0x1aa433['commandName']){case'listStyle':_0x25d649='*Change\x20to:*\x20%0',_0x2ca966={'type':'format','content':o(_0x16916c,_0x25d649,o(_0x16916c,this['_getTranslationKeyForListStyle'](_0x1aa433['commandParams'][0x0]['type'])))};break;case'listReversed':_0x25d649=_0x1aa433['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2ca966={'type':'format','content':o(_0x16916c,_0x25d649)};break;case'listStart':_0x25d649='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2ca966={'type':'format','content':o(_0x16916c,_0x25d649,_0x1aa433['commandParams'][0x0]['startIndex'])};}return _0x2ca966;});}['_getTranslationKeyForListStyle'](_0x346aa9){return'ELEMENT_'+function(_0x23a4a7){if(pe['includes'](_0x23a4a7))return'bulleted';if(ye['includes'](_0x23a4a7))return'numbered';return null;}(_0x346aa9)['toUpperCase']()+'_LIST_'+_0x346aa9['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x1dc395{static get['requires'](){return[_0x46754e];}['init'](){const _0x5cb59b=this['editor'],_0x5423a4=_0x5cb59b['plugins']['get']('TrackChangesEditing'),_0x23de0e=_0x5cb59b['commands']['get']('enter');_0x5423a4['enableCommand']('enter',()=>{_0x5cb59b['model']['change'](_0x73d0d8=>{const _0x4f7f48=_0x5cb59b['model']['document']['selection'],_0x28026b=_0x4f7f48['getFirstPosition'](),_0x2de9ed=_0x5e8b6d['fromRange'](_0x4f7f48['getFirstRange']());if(_0x23de0e['enterBlock'](_0x73d0d8)){const _0x2dfcf3=_0x5cb59b['model']['createPositionAt'](_0x28026b['parent']['nextSibling'],0x0),_0x3430d0=_0x73d0d8['createRange'](_0x28026b,_0x2dfcf3);_0x5423a4['markInsertion'](_0x3430d0);}else _0x73d0d8['setSelection'](_0x73d0d8['createRange'](_0x2de9ed['end']));_0x2de9ed['detach'](),_0x23de0e['fire']('afterExecute',{'writer':_0x73d0d8});});}),_0x5cb59b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x5cb59b,'split'),{'priority':'high'}),_0x5cb59b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x459f2b,_0x3f05b7,_0x32c48b)=>{const _0x1f56a1=_0x32c48b['mapper']['markerNameToElements'](_0x3f05b7['markerName']);if(_0x1f56a1){for(const _0x122317 of _0x1f56a1)_0x122317['hasClass']('ck-suggestion-marker-split')&&(_0x32c48b['mapper']['unbindElementFromMarkerName'](_0x122317,_0x3f05b7['markerName']),_0x32c48b['writer']['remove'](_0x122317));}},{'priority':'high'}),_0x5cb59b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x43d023,_0x2f975c,_0x5e7758)=>{_0x5e7758['options']['showSuggestionHighlights']&&_e(_0x5cb59b,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x43d023,_0x2f975c,_0x5e7758);},{'priority':'high'});}}class J extends _0x1dc395{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5cc413=this['editor']['plugins']['get']('TrackChangesEditing');_0x5cc413['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5cc413['enableCommand']('findNext'),_0x5cc413['enableCommand']('findPrevious'),_0x5cc413['enableCommand']('replace'),_0x5cc413['enableCommand']('replaceAll');}['handleFindCommand'](_0x21ae09,_0x2b27fe,_0x52f427={}){const _0x2059f6=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x21ae09(_0x31049a=>{let _0x4ff8d9=('string'==typeof _0x2b27fe?_0x2059f6['findByTextCallback'](_0x2b27fe,_0x52f427):_0x2b27fe)(_0x31049a);Array['isArray'](_0x4ff8d9)&&(_0x4ff8d9={'results':_0x4ff8d9,'searchText':'string'==typeof _0x2b27fe?_0x2b27fe:''});const _0x46efe6=_0x4ff8d9['results']['filter'](_0x3153b7=>!0x1===this['_isInDeletionRange'](_0x3153b7,_0x31049a['item']));return{..._0x4ff8d9,'results':_0x46efe6};},_0x52f427);}['_isInDeletionRange'](_0x1c132b,_0x15a7dd){const _0x23e41d=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x15a7dd,_0x1c132b['start']),this['editor']['model']['createPositionAt'](_0x15a7dd,_0x1c132b['end']));for(const _0x599d04 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x23e41d['getIntersection'](_0x599d04['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x1dc395{['afterInit'](){const _0x101fbf=this['editor']['locale'],_0x136a69=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xf75fb7,commandName:_0x887a81}of ro)this['editor']['plugins']['has'](_0xf75fb7)&&(_0x136a69['enableDefaultAttributesIntegration'](_0x887a81),_0x136a69['registerInlineAttribute'](_0x887a81));_0x136a69['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x101fbf,'FORMAT_FONT_SIZE')),_0x136a69['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x101fbf,'FORMAT_FONT_FAMILY')),_0x136a69['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x101fbf,'FORMAT_FONT_COLOR')),_0x136a69['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x101fbf,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b8b70=this['editor'],_0x31d049=_0x1b8b70['locale'];_0x1b8b70['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33d334=>{const _0x5e7aef=_0x31d049['t'];if('formatInline'!=_0x33d334['type'])return;const {data:_0x11c382}=_0x33d334;if(null!=_0x11c382){if('fontSize'==_0x11c382['commandName']){const _0x52c39c=_0x11c382['commandParams'][0x0]['value'];if(_0x52c39c){const _0x3525df=_0x5e7aef(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4f7b0c=>_0x4f7b0c['model']==_0x52c39c)['title'])['toLowerCase']();return{'type':'format','content':o(_0x31d049,'*Set\x20font\x20size:*\x20%0',_0x3525df)};}return{'type':'format','content':o(_0x31d049,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x11c382['commandName']){const _0x14962b=_0x11c382['commandParams'][0x0]['value'];return _0x14962b?{'type':'format','content':o(_0x31d049,'*Set\x20font\x20family:*\x20%0',_0x14962b)}:{'type':'format','content':o(_0x31d049,'*Reset\x20font\x20family*')};}if('fontColor'==_0x11c382['commandName']){const _0xdf10a0=_0x11c382['commandParams'][0x0]['value'];if(_0xdf10a0){const _0x19e552=_0x41c95d(this['editor']['config']['get']('fontColor.colors'))['find'](_0x500570=>_0x500570['model']==_0xdf10a0);let _0x1a663e=_0xdf10a0,_0x5a4d90='';return _0x19e552&&(_0x1a663e=_0x19e552['label'],_0x5a4d90=_0x5e7aef(_0x1a663e)['toLowerCase']()),{'type':'format','content':o(_0x31d049,'*Set\x20font\x20color:*\x20%0',_0x5a4d90)['trim'](),'color':{'value':_0xdf10a0,'title':_0x5a4d90||_0x1a663e}};}return{'type':'format','content':o(_0x31d049,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x11c382['commandName']){const _0x4b0ed3=_0x11c382['commandParams'][0x0]['value'];if(_0x4b0ed3){const _0x41c6c9=_0x41c95d(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x328ea7=>_0x328ea7['model']==_0x4b0ed3);let _0x58ba2e=_0x4b0ed3,_0x1c128f='';return _0x41c6c9&&(_0x58ba2e=_0x41c6c9['label'],_0x1c128f=_0x5e7aef(_0x58ba2e)['toLowerCase']()),{'type':'format','content':o(_0x31d049,'*Set\x20font\x20background\x20color:*\x20%0',_0x1c128f)['trim'](),'color':{'value':_0x4b0ed3,'title':_0x1c128f||_0x58ba2e}};}return{'type':'format','content':o(_0x31d049,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x1dc395{['afterInit'](){const _0x4e4d4b=this['editor'],_0x579e9e=_0x4e4d4b['plugins']['get']('TrackChangesEditing'),_0x173ff4=_0x4e4d4b['commands']['get']('copyFormat'),_0x3c2aac=_0x4e4d4b['commands']['get']('pasteFormat');_0x173ff4&&_0x3c2aac&&(_0x579e9e['enableDefaultAttributesIntegration']('pasteFormat'),_0x579e9e['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4789ad=this['editor'],_0x184dd9=_0x4789ad['locale'];_0x4789ad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50f169=>{if('formatBlock'!=_0x50f169['type']&&'formatInline'!=_0x50f169['type'])return;const {data:_0x2b3db2}=_0x50f169;if(_0x2b3db2&&'pasteFormat'===_0x2b3db2['commandName']){const _0x45be64=[],_0x35cf89=_0x2b3db2['commandParams'][0x0];for(const [_0x21eb75,_0x1ced3b]of Object['entries'](_0x35cf89))_0x45be64['push'](so(_0x4789ad,_0x21eb75,_0x1ced3b));return _0x45be64['length']?{'type':'format','content':o(_0x184dd9,'*Set\x20format\x20to:*\x20%0',_0x45be64['join'](',\x20'))}:{'type':'format','content':o(_0x184dd9,'*Remove\x20all\x20formatting*')};}});}}function so(_0x11d3d8,_0x9cc203,_0x412db0){const _0x15fb38=_0x11d3d8['locale']['t'],_0x2e95bd=_0x9cc203['split'](/(?=[A-Z])/)['join']('\x20'),_0x7d5c69=_0x15fb38(_0x2e95bd['charAt'](0x0)['toUpperCase']()+_0x2e95bd['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x412db0)return _0x7d5c69;if('fontColor'===_0x9cc203||'fontBackgroundColor'===_0x9cc203){const _0x24f98b=_0x41c95d(_0x11d3d8['config']['get']('fontColor.colors'))['find'](_0x559f09=>_0x559f09['model']==_0x412db0);return _0x7d5c69+'\x20('+(_0x24f98b?_0x15fb38(_0x24f98b['label'])['toLowerCase']():_0x412db0)+')';}if('fontSize'===_0x9cc203&&isNaN(parseFloat(_0x412db0))){const _0x249a4d=_0x11d3d8['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x11d3d8['config']['get']('fontSize.options'))['find'](_0x58a1c1=>_0x58a1c1['model']==_0x412db0);return _0x7d5c69+'\x20('+(_0x249a4d?_0x15fb38(_0x249a4d['title'])['toLowerCase']():_0x412db0)+')';}return _0x7d5c69+'\x20('+_0x412db0+')';}class Y extends _0x1dc395{['_headingOptions'];['afterInit'](){const _0x33d9e1=this['editor'];if(!_0x33d9e1['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x33d9e1['config']['get']('heading.options');const _0x435d57=_0x33d9e1['locale'],_0x3ee117=_0x33d9e1['plugins']['get']('TrackChangesEditing');_0x3ee117['enableDefaultAttributesIntegration']('heading');for(const _0x27011d of this['_headingOptions'])'paragraph'!=_0x27011d['model']&&_0x3ee117['descriptionFactory']['registerElementLabel'](_0x27011d['model'],_0x3b41d6=>{const _0x4a07c6=this['_getHeadingLevel'](_0x27011d['model']);return null!==_0x4a07c6?_0x3e684e(_0x3b41d6,_0x4a07c6):_0x808f7f(_0x3b41d6,_0x27011d['title']);});function _0x3e684e(_0x47cb69,_0x26c250){return o(_0x435d57,'ELEMENT_HEADING',[_0x47cb69,_0x26c250]);}function _0x808f7f(_0x33bc5d,_0x4ce7a0){return o(_0x435d57,'ELEMENT_HEADING_CUSTOM',[_0x33bc5d,_0x4ce7a0]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5853e3=this['editor'],_0x5f0667=_0x5853e3['locale'];function _0x33340a(_0x44714a,_0xcdad7c){return o(_0x5f0667,'ELEMENT_HEADING_CUSTOM',[_0x44714a,_0xcdad7c]);}_0x5853e3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57c059=>{if('formatBlock'!=_0x57c059['type'])return;const {data:_0x1570e3}=_0x57c059;if(_0x1570e3&&'heading'==_0x1570e3['commandName']){const _0x27fc39=_0x1570e3['commandParams'][0x0]['value'],_0x1a9b06=this['_getHeadingLevel'](_0x27fc39);if(null!==_0x1a9b06)return{'type':'format','content':o(_0x5f0667,'*Change\x20to:*\x20%0',(_0x33b7b9=0x1,_0x3d19dd=_0x1a9b06,o(_0x5f0667,'ELEMENT_HEADING',[_0x33b7b9,_0x3d19dd])))};const _0x4b4361=this['_headingOptions']['find'](_0x4abbd6=>_0x4abbd6['model']===_0x27fc39)['title'];return{'type':'format','content':o(_0x5f0667,'*Change\x20to:*\x20%0',_0x33340a(0x1,_0x4b4361))};}var _0x33b7b9,_0x3d19dd;});}['_getHeadingLevel'](_0x38996b){const _0x3228c5=_0x38996b['match'](/^heading(\d+)/);if(_0x3228c5)return _0x3228c5[0x1];const _0x347345=this['_headingOptions']?.['find'](_0x16c563=>_0x16c563['model']==_0x38996b);if(_0x347345&&_0x347345['view']){const _0x4fca53=_0x347345['view'],_0x22baaa=(_0x4fca53['name']??_0x4fca53)['match'](/^h(\d+)/);if(_0x22baaa)return _0x22baaa[0x1];}return null;}}class Z extends _0x1dc395{['afterInit'](){const _0xd8530e=this['editor'];if(!_0xd8530e['plugins']['has']('HighlightEditing'))return;const _0x46b8fa=_0xd8530e['plugins']['get']('TrackChangesEditing'),_0x2cb947=_0xd8530e['locale'];_0x46b8fa['enableDefaultAttributesIntegration']('highlight'),_0x46b8fa['registerInlineAttribute']('highlight'),_0x46b8fa['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2cb947,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f4705=this['editor'],_0x345c3d=_0x5f4705['locale'];_0x5f4705['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27655d=>{if('formatInline'!=_0x27655d['type'])return;const {data:_0x13bc16}=_0x27655d;if(_0x13bc16&&'highlight'==_0x13bc16['commandName']){const _0x704f11=_0x345c3d['t'],_0x39f91e=_0x13bc16['commandParams'][0x0]['value'];if(_0x39f91e){const _0x1efa70=_0x5f4705['config']['get']('highlight.options')['find'](_0x5e62fa=>_0x5e62fa['model']==_0x39f91e),_0x30d287=_0x704f11(_0x1efa70['title'])['toLowerCase']();return{'type':'format','content':o(_0x345c3d,'*Set\x20highlight:*\x20%0',_0x30d287),'color':{'value':_0x1efa70['color'],'title':_0x1efa70['title']}};}return{'type':'format','content':o(_0x345c3d,'*Remove\x20highlight*',o(_0x345c3d,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x1dc395{['afterInit'](){const _0x5f1f21=this['editor'];if(!_0x5f1f21['plugins']['has']('HorizontalLineEditing'))return;_0x5f1f21['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4d2a99=_0x5f1f21['plugins']['get']('TrackChangesEditing'),_0x10f894=_0x5f1f21['locale'];_0x4d2a99['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3d5e59=>o(_0x10f894,'ELEMENT_HORIZONTAL_LINE',_0x3d5e59)),_0x5f1f21['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4738ff,{writer:_0x54be81,options:_0x5090da})=>{if(!_0x5090da['showSuggestionHighlights'])return null;const _0x27607d=_0x54be81['createContainerElement']('div'),_0x169912=_0x54be81['createEmptyElement']('hr');return _0x54be81['addClass']('ck-horizontal-line',_0x27607d),_0x54be81['insert'](_0x54be81['createPositionAt'](_0x27607d,0x0),_0x169912),_0x27607d;},'converterPriority':'high'});}}class et extends _0x1dc395{['afterInit'](){const _0x201d5d=this['editor'];if(!_0x201d5d['plugins']['has']('HtmlEmbed'))return;const _0x49e386=_0x201d5d['plugins']['get']('TrackChangesEditing'),_0x4bf7bd=_0x201d5d['locale'];_0x49e386['descriptionFactory']['registerElementLabel']('rawHtml',_0x1f6c12=>o(_0x4bf7bd,'ELEMENT_HTML_EMBED',_0x1f6c12)),_0x49e386['enableDefaultAttributesIntegration']('htmlEmbed'),_0x49e386['registerBlockAttribute']('value'),_0x49e386['descriptionFactory']['registerDescriptionCallback'](_0x9e5a5c=>{if('attribute'!=_0x9e5a5c['type'])return;const {data:_0x4a43f1}=_0x9e5a5c;if(_0x4a43f1&&'value'==_0x4a43f1['key']&&_0x9e5a5c['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x8a0ba3=o(_0x4bf7bd,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4bf7bd,'*Change\x20%0\x20content*',_0x8a0ba3)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x420e9a=this['editor'],_0x15d868=_0x420e9a['locale'];_0x420e9a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ecd4f=>{if('formatBlock'!=_0x5ecd4f['type'])return;const {data:_0x12ee8a}=_0x5ecd4f;if(_0x12ee8a&&'htmlEmbed'==_0x12ee8a['commandName']){const _0xfbc5c7=o(_0x15d868,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x15d868,'*Change\x20%0\x20content*',_0xfbc5c7)};}});}}class it extends _0x1dc395{['afterInit'](){const _0x1b5a3e=this['editor'];if(!_0x1b5a3e['plugins']['has']('ImageEditing'))return;const _0x1cf449=_0x1b5a3e['plugins']['get']('TrackChangesEditing'),_0x10a04e=_0x1b5a3e['plugins']['get']('ImageUtils'),_0x5ebcea=_0x1b5a3e['locale'];_0x1cf449['enableCommand']('insertImage'),_0x1cf449['descriptionFactory']['registerElementLabel']('imageBlock',_0x1cfafa=>o(_0x5ebcea,'ELEMENT_IMAGE',_0x1cfafa)),_0x1cf449['descriptionFactory']['registerElementLabel']('imageInline',_0x5c9814=>o(_0x5ebcea,'ELEMENT_INLINE_IMAGE',_0x5c9814)),_0x1cf449['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5ebcea,'ELEMENT_CAPTION')),_0x1b5a3e['plugins']['has']('ImageUploadEditing')&&_0x1cf449['enableCommand']('uploadImage'),_0x1b5a3e['plugins']['has']('ImageBlockEditing')&&_0x1b5a3e['plugins']['has']('ImageInlineEditing')&&(_0x1cf449['enableCommand']('imageTypeInline',(_0xa1d91b,_0x20623e)=>{const _0x2f5832=_0x10a04e['getClosestSelectedImageElement'](_0x1b5a3e['model']['document']['selection']);_0x1b5a3e['model']['change'](()=>{_0x1cf449['markBlockFormat'](_0x2f5832,{'commandName':'imageTypeInline','commandParams':[_0x20623e]},[],'convertBlockImageToInline');});}),_0x1cf449['enableCommand']('imageTypeBlock',(_0x222310,_0xa23b50)=>{_0x1b5a3e['model']['change'](_0xdbeb78=>{let _0x2f1307=_0x10a04e['getClosestSelectedImageElement'](_0x1b5a3e['model']['document']['selection']),_0x2e9646=_0xdbeb78['createRangeOn'](_0x2f1307);const _0x3df9dd=_0x285ecd['fromPosition'](_0x2e9646['start'],'toPrevious'),_0x439d72=_0x285ecd['fromPosition'](_0x2e9646['end'],'toNext');_0x1cf449['forceDefaultExecution'](()=>_0x222310(_0xa23b50)),_0x2f1307=_0x10a04e['getClosestSelectedImageElement'](_0x1b5a3e['model']['document']['selection']),_0x2e9646=_0xdbeb78['createRangeOn'](_0x2f1307);const _0x5148ad=_0xdbeb78['createRange'](_0x3df9dd,_0x439d72);_0x3df9dd['detach'](),_0x439d72['detach'](),_0x1cf449['markBlockFormat'](_0x2f1307,{'commandName':'imageTypeInline','commandParams':[_0xa23b50]},[],'convertInlineImageToBlock'),_0x5148ad['start']['isBefore'](_0x2e9646['start'])&&_0x1cf449['markInsertion'](_0xdbeb78['createRange'](_0x5148ad['start'],_0x2e9646['start']),'convertInlineImageToBlock'),_0x2e9646['end']['isBefore'](_0x5148ad['end'])&&_0x1cf449['markInsertion'](_0xdbeb78['createRange'](_0x2e9646['end'],_0x5148ad['end']),'convertInlineImageToBlock');});}),_0x1cf449['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1cf449['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1cf449['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1cf449['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1cf449['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1cf449['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4a216b])=>{const _0x26493d=_0x1cf449['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x59c5a1=_0x4a216b['start'],_0x3546fb=_0x4a216b['end'];const _0x108a92=_0x1b5a3e['model']['schema']['getNearestSelectionRange'](_0x59c5a1,'backward'),_0x5a436b=_0x1b5a3e['model']['schema']['getNearestSelectionRange'](_0x3546fb,'forward');_0x108a92['isCollapsed']&&(_0x59c5a1=_0x108a92['start']),_0x5a436b['isCollapsed']&&(_0x3546fb=_0x5a436b['end']),_0x26493d([_0x1b5a3e['model']['createRange'](_0x59c5a1,_0x3546fb)]);}),_0x1cf449['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5bef74),_0x1cf449['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5bef74)),_0x1b5a3e['plugins']['has']('ImageCaptionEditing')&&(_0x1cf449['enableCommand']('toggleImageCaption',(_0x400b5d,_0x5dd0da)=>{const _0x15a332=_0x1b5a3e['plugins']['get']('ImageCaptionUtils');let _0x17c3d4=_0x10a04e['getClosestSelectedImageElement'](_0x1b5a3e['model']['document']['selection']),_0x57064c=_0x15a332['getCaptionFromImageModelElement'](_0x17c3d4);_0x1b5a3e['model']['change'](()=>{if(_0x57064c)return void _0x1cf449['markDeletion'](_0x1b5a3e['model']['createRangeOn'](_0x57064c));const _0x95697d=_0x10a04e['isBlockImage'](_0x17c3d4);_0x400b5d(_0x5dd0da),_0x17c3d4=_0x10a04e['getClosestSelectedImageElement'](_0x1b5a3e['model']['document']['selection']),_0x57064c=_0x15a332['getCaptionFromImageModelElement'](_0x17c3d4),_0x1cf449['markInsertion'](_0x1b5a3e['model']['createRangeOn'](_0x57064c),_0x95697d?null:'imageCaption');});}),_0x1cf449['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5bef74));const _0x54f73a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xab3a24(_0x4c93d4,_0x530169){const _0x3b9737=_0x54f73a['findIndex'](({type:_0x184dda,subType:_0xfa5e88})=>_0x4c93d4['type']==_0x184dda&&_0x4c93d4['subType']==_0xfa5e88),_0xe305f9=_0x54f73a['findIndex'](({type:_0x4b13b3,subType:_0xee7854})=>_0x530169['type']==_0x4b13b3&&_0x530169['subType']==_0xee7854);if(_0x3b9737<0x0||_0xe305f9<0x0)return!0x1;const _0x536f11=_0x4c93d4['getFirstRange'](),_0x4cf1d2=_0x530169['getFirstRange']();if((0x0==_0x3b9737||0x1==_0x3b9737)&&0x2==_0xe305f9&&_0x536f11['isIntersecting'](_0x4cf1d2))return!0x0;if(0x2==_0x3b9737&&0x3==_0xe305f9){const _0x481e42=_0x1cf449['_findSuggestions'](_0x536f11,'insertion')['filter'](({suggestion:_0x385ab3,meta:_0x5d8f41})=>_0x5d8f41['isOwn']&&'convertInlineImageToBlock'==_0x385ab3['subType']);if(_0x481e42['length']>0x1&&_0x4cf1d2['end']['isEqual'](_0x536f11['start']))return!0x0;if(0x1==_0x481e42['length']&&(_0x536f11['start']['isEqual'](_0x4cf1d2['end'])||_0x536f11['end']['isEqual'](_0x4cf1d2['start'])))return!0x0;}if(0x3==_0x3b9737&&0x3==_0xe305f9&&_0x536f11['start']['isBefore'](_0x4cf1d2['start'])){const _0x1b239a=_0x536f11['end']['nodeAfter'],_0x4dfddf=_0x4cf1d2['start']['nodeBefore'];return _0x10a04e['isBlockImage'](_0x1b239a)&&_0x1b239a===_0x4dfddf;}return!0x1;}function _0x5bef74(_0x7c2086,_0x3a5a2c){return _0xab3a24(_0x7c2086,_0x3a5a2c)?[_0x7c2086,_0x3a5a2c]:_0xab3a24(_0x3a5a2c,_0x7c2086)?[_0x3a5a2c,_0x7c2086]:null;}_0x1b5a3e['plugins']['has']('ImageResize')&&(_0x1cf449['enableDefaultAttributesIntegration']('resizeImage'),_0x1cf449['registerBlockAttribute']('resizedWidth'),_0x1cf449['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5ebcea,'FORMAT_IMAGE_SIZE'))),_0x1b5a3e['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1cf449['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1cf449['registerBlockAttribute']('alt')),_0x1cf449['descriptionFactory']['registerDescriptionCallback'](_0x455e3f=>{if(!!_0x54f73a['find'](({type:_0x30f7b0,subType:_0x3ed747})=>_0x455e3f['type']==_0x30f7b0&&_0x455e3f['subType']==_0x3ed747))return _0x455e3f['previous']?{}:void 0x0;}),_0x1cf449['descriptionFactory']['registerDescriptionCallback'](_0x4bdf75=>{if('insertion'==_0x4bdf75['type']||'deletion'==_0x4bdf75['type']){const _0x3d6ac6=_0x4bdf75['getContainedElement']();if(_0x3d6ac6&&_0x3d6ac6['is']('element','caption'))return{'type':'insertion'==_0x4bdf75['type']?'addObject':'removeObject','element':_0x3d6ac6,'quantity':0x1};}}),_0x1cf449['descriptionFactory']['registerDescriptionCallback'](_0x2799d3=>'formatBlock'==_0x2799d3['type']&&'convertInlineImageToBlock'==_0x2799d3['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2799d3['type']&&'convertBlockImageToInline'==_0x2799d3['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1cf449['descriptionFactory']['registerDescriptionCallback'](_0x59e3db=>{if('attribute'!=_0x59e3db['type'])return;const {data:_0x20425b}=_0x59e3db;if(!_0x20425b||'alt'!=_0x20425b['key'])return;const _0x431a08=_0x20425b['newValue'];return _0x431a08?{'type':'format','content':o(_0x5ebcea,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x431a08+'\x22')}:{'type':'format','content':o(_0x5ebcea,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23dece=this['editor'],_0x16814c=_0x23dece['locale'];_0x23dece['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x130ccd=>{if('formatBlock'!=_0x130ccd['type']&&'formatInline'!=_0x130ccd['type'])return;const {data:_0x3bad32}=_0x130ccd;if(_0x3bad32){if('imageTextAlternative'==_0x3bad32['commandName']){const _0x32a6c6=_0x3bad32['commandParams'][0x0]['newValue'];return _0x32a6c6?{'type':'format','content':o(_0x16814c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x32a6c6+'\x22')}:{'type':'format','content':o(_0x16814c,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3bad32['commandName']){const _0x4c19f1=_0x3bad32['commandParams'][0x0]['width'];return _0x4c19f1?{'type':'format','content':o(_0x16814c,'*Set\x20image\x20width:*\x20%0',_0x4c19f1)}:{'type':'format','content':o(_0x16814c,'*Reset\x20image\x20width*')};}}});}}class st extends _0x1dc395{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x55f8f7=this['editor']['locale'],_0x49f7b6=this['editor']['plugins']['get']('TrackChangesEditing');_0x49f7b6['enableDefaultAttributesIntegration']('replaceImageSource'),_0x49f7b6['registerBlockAttribute']('src'),_0x49f7b6['descriptionFactory']['registerDescriptionCallback'](_0x2b478b=>{if('attribute'!=_0x2b478b['type'])return;const {data:_0x1792a3}=_0x2b478b;return _0x1792a3&&'src'==_0x1792a3['key']?_0x1792a3['newValue']&&_0x1792a3['oldValue']?{'type':'format','content':o(_0x55f8f7,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xfe751f=this['editor']['plugins']['get']('TrackChangesEditing');_0xfe751f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xfe751f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xfe751f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xfe751f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49655c=this['editor'],_0x2227f2=_0x49655c['locale'];_0x49655c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xce3d00=>{if('formatBlock'!=_0xce3d00['type']&&'formatInline'!=_0xce3d00['type'])return;const {data:_0x22484e}=_0xce3d00;if(!_0x22484e||'replaceImageSource'!=_0x22484e['commandName'])return;return{'type':'format','content':o(_0x2227f2,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x1dc395{['afterInit'](){const _0xad19ec=this['editor'];if(!_0xad19ec['plugins']['has']('ImageStyleEditing'))return;const _0x53a230=_0xad19ec['plugins']['get']('TrackChangesEditing'),_0x19ea52=_0xad19ec['plugins']['get']('ImageUtils'),_0x164724={};_0x53a230['enableCommand']('imageStyle',(_0x4cacd5,_0x218a3d)=>{const _0x4f739b=_0xad19ec['plugins']['get']('Users')['me'],_0xc6df3c=_0xad19ec['commands']['get']('imageStyle');let _0x37325f=_0x19ea52['getClosestSelectedImageElement'](_0xad19ec['model']['document']['selection']),_0x4d1193=_0xad19ec['model']['createRangeOn'](_0x37325f),_0x4be67b=_0xc6df3c['value'];if(_0x4be67b==_0x218a3d['value'])return;const _0x3e0e86={'commandName':'imageStyle','commandParams':[_0x218a3d],'formatGroupId':_0x497177()};_0xad19ec['model']['change'](()=>{if(_0x53a230['getSuggestions']()['filter'](_0x2175cd=>_0x2175cd['isInContent']&&_0x4f739b==_0x2175cd['author']&&('formatBlock'==_0x2175cd['type']||'formatInline'==_0x2175cd['type'])&&('imageStylePreApply'==_0x2175cd['subType']||'imageStylePostApply'==_0x2175cd['subType'])&&_0x2175cd['getFirstRange']()['isEqual'](_0x4d1193))['forEach'](_0x11e8fd=>_0x53a230['discardSuggestion'](_0x11e8fd['head'])),_0x37325f=_0x19ea52['getClosestSelectedImageElement'](_0xad19ec['model']['document']['selection']),_0x4d1193=_0xad19ec['model']['createRangeOn'](_0x37325f),_0xc6df3c['refresh'](),_0xad19ec['commands']['get']('imageTypeInline')['refresh'](),_0xad19ec['commands']['get']('imageTypeBlock')['refresh'](),_0x4be67b=_0xc6df3c['value'],_0x4be67b!=_0x218a3d['value'])return _0x19ea52['isInlineImage'](_0x37325f)&&_0xc6df3c['shouldConvertImageType'](_0x218a3d['value'],_0x37325f)?(_0x4cacd5({..._0x218a3d,'setImageSizes':!0x1}),_0x37325f=_0x19ea52['getClosestSelectedImageElement'](_0xad19ec['model']['document']['selection']),void _0x53a230['markBlockFormat'](_0x37325f,{..._0x3e0e86,'commandReversedParams':[{'value':_0x4be67b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x19ea52['isBlockImage'](_0x37325f)?_0x53a230['markBlockFormat'](_0x37325f,_0x3e0e86,[],'imageStylePostApply'):_0x53a230['markInlineFormat'](_0x4d1193,_0x3e0e86,'imageStylePostApply'));});});for(const _0x49c102 of _0xad19ec['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x164724[_0x49c102['name']]=_0x49c102['title']['toLowerCase']();_0x53a230['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x53a230['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x53a230['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x53a230['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3e1e97])=>{_0x19ea52['setImageNaturalSizeAttributes'](_0x3e1e97['getContainedElement']());}),_0x53a230['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4f1aa4,_0x3904fd)=>{_0x53a230['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4f1aa4,{'commandName':_0x3904fd['commandName'],'commandParams':_0x3904fd['commandReversedParams']});}),_0x53a230['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x409024,_0x5dc40c){if(_0x52afe3(_0x409024,_0x5dc40c))return[_0x409024,_0x5dc40c];if(_0x52afe3(_0x5dc40c,_0x409024))return[_0x5dc40c,_0x409024];return null;});const _0x23e2b2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x52afe3(_0x30bfaa,_0x133545){const _0x565082=_0x23e2b2['findIndex'](({type:_0x56a722,subType:_0x190be2})=>_0x30bfaa['type']==_0x56a722&&_0x30bfaa['subType']==_0x190be2),_0x4a2594=_0x23e2b2['findIndex'](({type:_0x31f651,subType:_0x4fd872})=>_0x133545['type']==_0x31f651&&_0x133545['subType']==_0x4fd872);if(_0x565082<0x0||_0x4a2594<0x0)return!0x1;const _0x11f2c2=_0x30bfaa['getFirstRange'](),_0x559408=_0x133545['getFirstRange']();if((0x0==_0x565082||0x1==_0x565082)&&0x2==_0x4a2594&&_0x11f2c2['isIntersecting'](_0x559408))return!0x0;if(0x2==_0x565082&&0x3==_0x4a2594){const _0x42330c=_0x53a230['_findSuggestions'](_0x11f2c2,'insertion')['filter'](({suggestion:_0x2add80,meta:_0x1e3964})=>_0x1e3964['isOwn']&&'convertInlineImageToBlock'==_0x2add80['subType']);if(_0x42330c['length']>0x1&&_0x559408['end']['isEqual'](_0x11f2c2['start']))return!0x0;if(0x1==_0x42330c['length']&&(_0x11f2c2['start']['isEqual'](_0x559408['end'])||_0x11f2c2['end']['isEqual'](_0x559408['start'])))return!0x0;}if(0x3==_0x565082&&0x3==_0x4a2594&&_0x11f2c2['start']['isBefore'](_0x559408['start'])){const _0x24c04d=_0x11f2c2['end']['nodeAfter'],_0xd5fb1f=_0x559408['start']['nodeBefore'];return _0x19ea52['isBlockImage'](_0x24c04d)&&_0x24c04d===_0xd5fb1f;}return!0x1;}_0xad19ec['model']['document']['registerPostFixer'](()=>{let _0x36f896=!0x1;const _0x352dbb=Array['from'](_0xad19ec['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x484505,data:_0x3a9e58}of _0x352dbb){const {group:_0x395a86,type:_0xc2a2a0,subType:_0x174640,id:_0x8e66aa}=_0x53a230['_splitMarkerName'](_0x484505);if('suggestion'==_0x395a86&&_0x53a230['hasSuggestion'](_0x8e66aa)){if('formatBlock'==_0xc2a2a0&&('imageStylePreApply'==_0x174640||'imageStylePostApply'==_0x174640)){const _0x249927=_0x53a230['getSuggestion'](_0x8e66aa);if(_0x3a9e58['newRange']){const _0x46b850=_0x249927['getFirstRange']()['getContainedElement']();if(_0x19ea52['isBlockImage'](_0x46b850))continue;_0x53a230['discardSuggestion'](_0x249927),_0x36f896=!0x0;}}if('insertion'==_0xc2a2a0&&'imageCaption'==_0x174640&&!_0x3a9e58['newRange']){const _0x21ea41=_0x53a230['getSuggestion'](_0x8e66aa);_0x21ea41['next']&&_0x21ea41['next']['isInContent']&&(_0x53a230['discardSuggestion'](_0x21ea41['next']),_0x36f896=!0x0);}}}return _0x36f896;}),this['_registerLegacyDescription'](_0x164724);}['_registerLegacyDescription'](_0x99db85){const _0xf7ee3a=this['editor'],_0x4f8603=_0xf7ee3a['locale'];_0xf7ee3a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28aee4=>{if('formatBlock'!=_0x28aee4['type']&&'formatInline'!=_0x28aee4['type'])return;const {data:_0x4c1006}=_0x28aee4;if(!_0x4c1006||'imageStyle'!=_0x4c1006['commandName'])return;const _0x44a2f6=_0x4c1006['commandParams'][0x0]['value'];return _0xa32046('side'===_0x44a2f6?o(_0x4f8603,'FORMAT_SIDE_IMAGE'):_0x99db85[_0x44a2f6]||_0x44a2f6);function _0xa32046(_0x2bcad5){return{'type':'format','content':o(_0x4f8603,'*Format:*\x20%0',_0x2bcad5)};}});}}class ot extends _0x1dc395{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x30e50e){super(_0x30e50e),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x41ec97=this['editor'],_0x1b6e5c=_0x41ec97['commands']['get']('importWord'),_0x257a1f=_0x41ec97['commands']['get']('trackChanges');_0x1b6e5c&&(_0x1b6e5c['on']('execute',(_0x1c2c2e,[,_0x3e3aff])=>{this['_trackChangesValueDuringImport']=_0x257a1f['value'],_0x3e3aff['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1b6e5c,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1b6e5c,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x257a1f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x41ec97['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5a2fa2,_0x29da1e){const {suggestions:_0x5597c8}=_0x29da1e,_0x11c754=this['editor']['commands']['get']('trackChanges'),_0x191b17=_0x11c754['value'];this['_trackChangesValueDuringImport']!==_0x191b17&&(_0x11c754['execute'](),this['_trackChangesExecuted']=!0x0),_0x5597c8&&_0x5597c8['forEach'](({id:_0x571028,type:_0x5d846b,author:_0x2aea3a,created_at:_0xc7866d})=>{const _0x2cf8f2={'id':_0x571028,'type':_0x5d846b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2aea3a,'createdAt':_0xc7866d?new Date(_0xc7866d):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2cf8f2);});}}class rt extends _0x1dc395{['afterInit'](){const _0x41dcba=this['editor'],_0x3842b8=_0x41dcba['plugins']['get']('TrackChangesEditing');if(_0x41dcba['plugins']['has']('IndentEditing')&&(_0x3842b8['enableCommand']('indent'),_0x3842b8['enableCommand']('outdent')),_0x41dcba['plugins']['has']('IndentBlock')){for(const _0x517f77 of['indentBlock','outdentBlock'])_0x3842b8['enableDefaultAttributesIntegration'](_0x517f77);}const _0x479ece=_0x41dcba['locale'];_0x3842b8['registerBlockAttribute']('blockIndent'),_0x3842b8['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x479ece,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58a2ee=this['editor'],_0x4d5728=_0x58a2ee['locale'],_0x288655=_0x58a2ee['plugins']['get']('TrackChangesEditing');_0x288655['descriptionFactory']['registerDescriptionCallback'](_0x5a2bd0=>{if('formatBlock'!=_0x5a2bd0['type'])return;const {data:_0x1087d0}=_0x5a2bd0;if(!_0x1087d0)return;if('indentBlock'!=_0x1087d0['commandName']&&'outdentBlock'!=_0x1087d0['commandName'])return;const _0x3e1c78=_0x5a2bd0['getItems']()[0x0],_0x22c93f=_0x288655['descriptionFactory']['getItemLabel'](_0x3e1c78);return'indentBlock'==_0x1087d0['commandName']?{'type':'format','content':o(_0x4d5728,'*Indent:*\x20%0',_0x22c93f)}:'outdentBlock'==_0x1087d0['commandName']?{'type':'format','content':o(_0x4d5728,'*Outdent:*\x20%0',_0x22c93f)}:void 0x0;});}}class at extends _0x1dc395{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x1dc395{['afterInit'](){const _0x147d00=this['editor'];if(!_0x147d00['plugins']['has']('LinkEditing'))return;const _0x1b2f01=_0x147d00['plugins']['get']('TrackChangesEditing'),_0x2693bf=_0x147d00['commands']['get']('link');_0x1b2f01['enableDefaultAttributesIntegration']('link'),_0x1b2f01['enableDefaultAttributesIntegration']('unlink'),_0x1b2f01['registerInlineAttribute']('linkHref');for(const _0x328904 of _0x2693bf['manualDecorators'])_0x1b2f01['registerInlineAttribute'](_0x328904['id']),_0x1b2f01['descriptionFactory']['registerAttributeLabel'](_0x328904['id'],'link\x20('+_0x328904['label']['toLowerCase']()+')');_0x1b2f01['descriptionFactory']['registerDescriptionCallback'](_0x2936d5=>{if('attribute'!=_0x2936d5['type'])return;const {data:_0x32ef36}=_0x2936d5;if(!_0x32ef36||'linkHref'!=_0x32ef36['key'])return;const _0x215ebb=_0x32ef36['newValue'],_0x57d38f=_0x147d00['locale'];return{'type':'format','content':null==_0x215ebb?o(_0x57d38f,'*Remove\x20link*'):o(_0x57d38f,'*Set\x20link:*\x20%0','\x22'+_0x215ebb+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20b5d2=this['editor'],_0x1a6fd2=_0x20b5d2['locale'];_0x20b5d2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bbaee=>{if('formatInline'!=_0x3bbaee['type'])return;const {data:_0x177aad}=_0x3bbaee;if(_0x177aad){if('link'==_0x177aad['commandName']){const _0xefb095=_0x177aad['commandParams'][0x0];return{'type':'format','content':o(_0x1a6fd2,'*Set\x20link:*\x20%0','\x22'+_0xefb095+'\x22')};}return'unlink'==_0x177aad['commandName']?{'type':'format','content':o(_0x1a6fd2,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x1dc395{['afterInit'](){const _0x90924b=this['editor'],_0xf97ccd=_0x90924b['locale'];if(!_0x90924b['plugins']['has']('LegacyListEditing'))return;const _0x44e781=_0x90924b['plugins']['get']('TrackChangesEditing'),_0x272810=_0x90924b['plugins']['has']('LegacyTodoListEditing');function _0x53eb31(_0x2a623d){return()=>{const _0x43b38f=_0x90924b['model']['document']['selection'],_0x225843=_0x90924b['commands']['get'](_0x2a623d);if(_0x225843['value'])return void _0x90924b['execute']('paragraph',{});const _0x265289=_0x2a623d['slice'](0x0,-0x4),_0x17a73a=function(_0x5b8ca1,_0x1e47b6,_0x4a3f7c){let _0x2985dc=Array['from'](_0x5b8ca1)['filter'](_0x3ae1f4=>function(_0x5caa34,_0xf5888d){return _0xf5888d['checkChild'](_0x5caa34['parent'],'listItem')&&!_0xf5888d['isObject'](_0x5caa34);}(_0x3ae1f4,_0x4a3f7c));_0x2985dc=_0x2985dc['filter'](_0x4e4c66=>!_0x4e4c66['is']('element','listItem')||_0x4e4c66['getAttribute']('listType')!=_0x1e47b6);const _0x3411db=new Set();for(const _0x29fdf8 of _0x2985dc)_0x29fdf8['is']('element','listItem')?_0x3411db['add'](me(_0x29fdf8)):_0x3411db['add'](_0x29fdf8);return Array['from'](_0x3411db);}(_0x43b38f['getSelectedBlocks'](),_0x265289,_0x90924b['model']['schema']);_0x90924b['model']['change'](()=>{for(const _0x58b826 of _0x17a73a)_0x44e781['markBlockFormat'](_0x58b826,{'commandName':_0x2a623d,'commandParams':[{'forceValue':!_0x225843['value']}],'formatGroupId':'blockName'},fe(_0x58b826));});};}function _0x124cc3(_0x40081f){return()=>{const _0x2cbb1a=function(_0x4b3565){let _0x12adc2=Array['from'](_0x4b3565);const _0x384c1d=_0x12adc2['findIndex'](_0x48fb51=>'listItem'!=_0x48fb51['name']);return _0x384c1d>-0x1&&(_0x12adc2=_0x12adc2['slice'](0x0,_0x384c1d)),_0x12adc2;}(_0x90924b['model']['document']['selection']['getSelectedBlocks']()),_0x2f30c2=_0x90924b['model']['createRange'](_0x90924b['model']['createPositionAt'](_0x2cbb1a[0x0],'before'),_0x90924b['model']['createPositionAt'](_0x2cbb1a[_0x2cbb1a['length']-0x1],'end'));_0x90924b['model']['change'](()=>{_0x44e781['markBlockFormat'](_0x2f30c2,{'commandName':_0x40081f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2f88b5){const _0x1dbc0a=new Set();for(const _0x23bd49 of _0x2f88b5){let _0x374319=_0x23bd49['nextSibling'];for(;_0x374319&&_0x374319['getAttribute']('listIndent')>_0x23bd49['getAttribute']('listIndent');)_0x1dbc0a['add'](_0x374319),_0x374319=_0x374319['nextSibling'];}return Array['from'](_0x1dbc0a);}(_0x2cbb1a));});};}_0x44e781['enableCommand']('numberedList',_0x53eb31('numberedList')),_0x44e781['enableCommand']('bulletedList',_0x53eb31('bulletedList')),_0x272810&&_0x44e781['enableCommand']('todoList',_0x53eb31('todoList')),_0x44e781['enableCommand']('indentList',_0x124cc3('indentList')),_0x44e781['enableCommand']('outdentList',_0x124cc3('outdentList')),_0x272810&&_0x44e781['enableCommand']('checkTodoList',()=>{const _0x216239=_0x90924b['commands']['get']('checkTodoList'),_0x1695f4=Array['from'](_0x216239['_selectedElements']);_0x1695f4['filter'](_0x442eae=>_0x442eae['getAttribute']('todoListChecked')!=_0x216239['value']),_0x90924b['model']['change'](()=>{for(const _0x10a11e of _0x1695f4)_0x44e781['markBlockFormat'](_0x10a11e,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x216239['value']}]});});}),_0x44e781['descriptionFactory']['registerElementLabel']('listItem',_0x5d7661=>o(_0xf97ccd,'ELEMENT_LIST_ITEM',_0x5d7661)),_0x44e781['descriptionFactory']['registerDescriptionCallback'](_0x2db180=>{if('formatBlock'!=_0x2db180['type']&&'formatInline'!=_0x2db180['type'])return;const {data:_0x26375e}=_0x2db180;if(_0x26375e){if('numberedList'==_0x26375e['commandName']||'bulletedList'==_0x26375e['commandName']||'todoList'==_0x26375e['commandName'])switch(_0x26375e['commandName']['replace']('List','')){case'bulleted':return _0x5a65e9(o(_0xf97ccd,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5a65e9(o(_0xf97ccd,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5a65e9(o(_0xf97ccd,'ELEMENT_TODO_LIST'));}if('indentList'==_0x26375e['commandName'])return{'type':'format','content':o(_0xf97ccd,'*Indent:*\x20%0',o(_0xf97ccd,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x26375e['commandName'])return{'type':'format','content':o(_0xf97ccd,'*Outdent:*\x20%0',o(_0xf97ccd,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x26375e['commandName'])return _0x26375e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xf97ccd,'*Check\x20item*')}:{'type':'format','content':o(_0xf97ccd,'*Uncheck\x20item*')};}function _0x5a65e9(_0x235b91){return{'type':'format','content':o(_0xf97ccd,'*Change\x20to:*\x20%0',_0x235b91)};}});}}function me(_0xe33ae5){const _0x1f26fe=_0xe33ae5['getAttribute']('listIndent');if(0x0==_0x1f26fe)return _0xe33ae5;let _0x426104=_0xe33ae5;for(;_0xe33ae5['previousSibling']&&_0xe33ae5['previousSibling']['is']('element','listItem');){const _0x340238=_0xe33ae5['previousSibling']['getAttribute']('listIndent');if(_0x340238==_0x1f26fe)_0x426104=_0xe33ae5['previousSibling'];else{if(_0x340238<_0x1f26fe)break;}_0xe33ae5=_0xe33ae5['previousSibling'];}return _0x426104;}function fe(_0x571164){const _0x27e59e=[];if(_0x571164['is']('element','listItem')&&_0x571164['getAttribute']('listIndent')>0x0){let _0x1d9307=_0x571164['nextSibling'];for(;_0x1d9307&&'listItem'==_0x1d9307['name']&&_0x1d9307['getAttribute']('listIndent')==_0x571164['getAttribute']('listIndent');)_0x27e59e['push'](_0x1d9307),_0x1d9307=_0x1d9307['nextSibling'];}return _0x27e59e;}class K extends _0x1dc395{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2870fc=this['editor']['config']['get']('list.properties'),_0x1cf35a=this['editor']['plugins']['get']('TrackChangesEditing');_0x2870fc['styles']&&_0x1cf35a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2870fc['reversed']&&_0x1cf35a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2870fc['startIndex']&&_0x1cf35a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1cf35a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5dc770,_0x43d04b={}){const _0x26726f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3dfb92=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x26726f['markMultiRangeBlockFormat'](_0x3dfb92,{'commandName':'listStyle','commandParams':[{'type':_0x43d04b['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x594971,_0x564cce={}){const _0x13de92=this['editor']['plugins']['get']('TrackChangesEditing'),_0x63b90e=this['_getSuggestionBlocks'](_0xa967ba=>_0xa967ba['is']('element','listItem')&&'numbered'===_0xa967ba['getAttribute']('listType'));if(_0x63b90e['length']<0x1)return;const _0x138e9c=_0x63b90e['map'](_0x286fa1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x286fa1,'before'),this['editor']['model']['createPositionAt'](_0x286fa1,0x0)));this['editor']['model']['change'](()=>{_0x13de92['markMultiRangeBlockFormat'](_0x138e9c,{'commandName':'listReversed','commandParams':[{'reversed':_0x564cce['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x567b53,_0x129572={}){const _0x2c277c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x46383a=this['_getSuggestionBlocks'](_0x571c7b=>_0x571c7b['is']('element','listItem')&&'numbered'===_0x571c7b['getAttribute']('listType'));if(_0x46383a['length']<0x1)return;const _0x9feb43=_0x46383a['map'](_0x2e42a8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2e42a8,'before'),this['editor']['model']['createPositionAt'](_0x2e42a8,0x0)));this['editor']['model']['change'](()=>{_0x2c277c['markMultiRangeBlockFormat'](_0x9feb43,{'commandName':'listStart','commandParams':[{'startIndex':_0x129572['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x31f3df){if('formatBlock'!=_0x31f3df['type']&&'formatInline'!=_0x31f3df['type'])return;const _0x3a410f=this['editor']['locale'],{data:_0x1f4811}=_0x31f3df;if(!_0x1f4811)return;let _0x4217b1,_0xaea7cf;switch(_0x1f4811['commandName']){case'listStyle':_0x4217b1='*Change\x20to:*\x20%0',_0xaea7cf={'type':'format','content':o(_0x3a410f,_0x4217b1,o(_0x3a410f,this['_getTranslationKeyForListStyle'](_0x1f4811['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4217b1=_0x1f4811['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xaea7cf={'type':'format','content':o(_0x3a410f,_0x4217b1)};break;case'listStart':_0x4217b1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xaea7cf={'type':'format','content':o(_0x3a410f,_0x4217b1,_0x1f4811['commandParams'][0x0]['startIndex'])};}return _0xaea7cf;}['_getSuggestionBlocksForListStyle'](){const _0x100e8a=this['editor']['plugins']['get']('LegacyListUtils');let _0x43dda1=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x43dda1[0x0]?.['is']('element','listItem')&&_0x43dda1['unshift'](..._0x100e8a['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x43dda1[_0x43dda1['length']-0x1]?.['is']('element','listItem')&&_0x43dda1['push'](..._0x100e8a['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x43dda1=[...new Set(_0x43dda1)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x43dda1=_0x43dda1['filter'](_0xa85567=>_0xa85567['is']('element','listItem'))),_0x43dda1;}['_getSuggestionBlocks'](_0x15320c){const _0x44f160=this['editor']['plugins']['get']('LegacyListUtils');let _0x16dea7=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x15320c)['map'](_0x351ab9=>{const _0x58cf18=this['editor']['model']['createPositionAt'](_0x351ab9,0x0);return[..._0x44f160['getSiblingNodes'](_0x58cf18,'backward'),..._0x44f160['getSiblingNodes'](_0x58cf18,'forward')];})['flat']();return _0x16dea7=[...new Set(_0x16dea7)],_0x16dea7;}['_getTranslationKeyForListStyle'](_0x1bfd63){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1bfd63)||'default')['toUpperCase']()+'_LIST_'+_0x1bfd63['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x1dc395{['afterInit'](){const _0xa2912d=this['editor'];if(!_0xa2912d['plugins']['has']('MediaEmbedEditing'))return;const _0x3218ca=_0xa2912d['plugins']['get']('TrackChangesEditing'),_0x1bf705=_0xa2912d['locale'];_0x3218ca['enableCommand']('mediaEmbed'),_0x3218ca['descriptionFactory']['registerElementLabel']('media',_0x1f35b5=>o(_0x1bf705,'ELEMENT_MEDIA',_0x1f35b5)),_0xa2912d['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2bf5a0,{writer:_0x3016f6,options:_0x247706})=>{if(_0x247706['showSuggestionHighlights'])return _0x3016f6['createEmptyElement']('div');},'converterPriority':'high'}),_0xa2912d['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4bf915,_0x581d1c,_0x266c86)=>{_0x266c86['options']['showSuggestionHighlights']&&_0x4bf915['stop']();},{'priority':'high'});}}class gt extends _0x1dc395{['afterInit'](){const _0x5eedb0=this['editor'];_0x5eedb0['plugins']['has']('MentionEditing')&&_0x5eedb0['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x1dc395{['afterInit'](){const _0x43f84b=this['editor'],_0x3a5cb2=_0x43f84b['plugins']['get']('TrackChangesEditing');_0x43f84b['plugins']['has']('MultiLevelList')&&(_0x3a5cb2['enableDefaultAttributesIntegration']('multiLevelList'),_0x3a5cb2['registerBlockAttribute']('listMarkerStyle'),_0x3a5cb2['descriptionFactory']['registerDescriptionCallback'](_0x5ccf15=>this['handleDescriptions'](_0x5ccf15)));}['handleDescriptions'](_0x52739f){const _0x19b3be=this['editor']['locale'],{data:_0x50de3b}=_0x52739f,_0x4e39fb={'type':'format','content':''};if(_0x50de3b&&'listMarkerStyle'==_0x50de3b['key']){if(!_0x50de3b['oldValue'])return{'type':'format','content':o(_0x19b3be,'*Set\x20format:*\x20%0',o(_0x19b3be,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x50de3b['newValue']+')'};if(!_0x50de3b['newValue']){let _0x2a4dd5=_0x52739f['head'];for(;_0x2a4dd5;){if(_0x2a4dd5['data']&&'listType'==_0x2a4dd5['data']['key']&&_0x2a4dd5['data']['newValue'])return _0x4e39fb;_0x2a4dd5=_0x2a4dd5['next'];}return{'type':'format','content':o(_0x19b3be,'*Remove\x20format:*\x20%0',o(_0x19b3be,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x50de3b['oldValue']+')'};}}}}class mt extends _0x1dc395{['afterInit'](){const _0xe784da=this['editor'];if(!_0xe784da['plugins']['has']('PageBreakEditing'))return;_0xe784da['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x27cb57=_0xe784da['plugins']['get']('TrackChangesEditing'),_0x4d788c=_0xe784da['locale'];_0x27cb57['descriptionFactory']['registerElementLabel']('pageBreak',_0x3b0315=>o(_0x4d788c,'ELEMENT_PAGE_BREAK',_0x3b0315));}}class dt extends _0x1dc395{['afterInit'](){const _0x3d08e2=this['editor'];if(!_0x3d08e2['plugins']['has']('Paragraph'))return;const _0x3afb6d=_0x3d08e2['locale'],_0x45d455=_0x3d08e2['plugins']['get']('TrackChangesEditing');_0x45d455['descriptionFactory']['registerElementLabel']('paragraph',_0x10d9c4=>o(_0x3afb6d,'ELEMENT_PARAGRAPH',_0x10d9c4)),_0x45d455['enableDefaultAttributesIntegration']('paragraph'),_0x45d455['enableCommand']('insertParagraph'),_0x3d08e2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3d08e2),{'priority':'highest'}),_0x3d08e2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x207867,_0x3ea4a2,_0x5bdd64)=>{_0x5bdd64['options']['showSuggestionHighlights']&&nr(_0x3d08e2,{'showActiveMarker':!0x1})(_0x207867,_0x3ea4a2,_0x5bdd64);},{'priority':'highest'});const _0x1262d2=_0x45d455['descriptionFactory'];_0x1262d2['registerDescriptionCallback'](_0x41bb06=>{if('insertion'!==_0x41bb06['type'])return;const {start:_0x5e2b20,end:_0xa0abb0}=_0x41bb06['getFirstRange']();if(!_0x5e2b20['isTouching'](_0xa0abb0)||!_0x5e2b20['nodeAfter'])return;const _0x34c60c=_0x3d08e2['model']['schema'],_0x5a4b94=_0x5e2b20['nodeAfter'];return _0x34c60c['isBlock'](_0x5a4b94)&&!_0x34c60c['isLimit'](_0x5a4b94)&&_0x34c60c['checkChild'](_0x5a4b94,'$text')?{'type':'insertion','content':o(_0x3afb6d,'*Insert:*\x20%0',_0x1262d2['getItemLabel'](_0x5a4b94,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x291067=this['editor'],_0x43a637=_0x291067['locale'];_0x291067['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6330c4=>{if('formatBlock'!=_0x6330c4['type'])return;const {data:_0x5eda87}=_0x6330c4;return _0x5eda87&&'paragraph'==_0x5eda87['commandName']?{'type':'format','content':o(_0x43a637,'*Change\x20to:*\x20%0',o(_0x43a637,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3064ba,{showActiveMarker:_0x5bf789=!0x0}={}){return(_0x5686ba,_0x505794,_0x96f0f2)=>{const _0x2b9034=_0x3064ba['plugins']['get']('TrackChangesEditing'),_0x2bf81d=_0x505794['markerRange']['start'],_0x167182=_0x505794['markerRange']['end'],_0x2ce986=_0x3064ba['model']['schema'];if(!_0x2bf81d['isTouching'](_0x167182)||!_0x2bf81d['nodeAfter'])return;const _0x4d99d7=_0x2bf81d['nodeAfter'];if(_0x2ce986['isBlock'](_0x4d99d7)&&!_0x2ce986['isLimit'](_0x4d99d7)&&_0x2ce986['checkChild'](_0x4d99d7,'$text')){if(!_0x96f0f2['consumable']['consume'](_0x505794['markerRange'],_0x5686ba['name']))return;const _0x1f0ae6=_0x96f0f2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x5c34c3=_0x96f0f2['mapper']['toViewPosition'](_0x167182);_0x5bf789&&_0x2b9034['activeMarkers']['includes'](_0x505794['markerName'])&&_0x96f0f2['writer']['addClass']('ck-suggestion-marker--active',_0x1f0ae6),_0x96f0f2['writer']['insert'](_0x5c34c3,_0x1f0ae6),_0x96f0f2['mapper']['bindElementToMarker'](_0x1f0ae6,_0x505794['markerName']);}};}class pt extends _0x1dc395{['afterInit'](){const _0x13aaff=this['editor'];if(!_0x13aaff['plugins']['has']('RemoveFormatEditing'))return;_0x13aaff['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a5039=this['editor'];_0x4a5039['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54ea72=>{if('formatBlock'!=_0x54ea72['type']&&'formatInline'!=_0x54ea72['type'])return;const {data:_0x2e5e0d}=_0x54ea72;return _0x2e5e0d&&'removeFormat'==_0x2e5e0d['commandName']?{'type':'format','content':o(_0x4a5039['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x1dc395{['afterInit'](){const _0x2e8062=this['editor'];if(!_0x2e8062['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5fab2e=_0x2e8062['plugins']['get']('TrackChangesEditing');_0x5fab2e['enableCommand']('goToPreviousRestrictedEditingException'),_0x5fab2e['enableCommand']('goToNextRestrictedEditingException');const _0x3e77ba=_0x2e8062['plugins']['get']('RestrictedEditingModeEditing');_0x3e77ba['enableCommand']('trackChanges'),_0x3e77ba['enableCommand']('acceptSuggestion'),_0x3e77ba['enableCommand']('discardSuggestion'),_0x3e77ba['enableCommand']('acceptAllSuggestions'),_0x3e77ba['enableCommand']('discardAllSuggestions'),_0x3e77ba['enableCommand']('acceptSelectedSuggestions'),_0x3e77ba['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x1dc395{static get['requires'](){return[_0x5d8131];}['init'](){const _0x610504=this['editor'],_0x32850b=_0x610504['plugins']['get']('TrackChangesEditing');_0x32850b['enableCommand']('shiftEnter'),_0x610504['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x610504),{'priority':'high'}),_0x610504['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x610504),{'priority':'high'}),_0x610504['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1d8f7b,_0x4ef0ff,_0x3265cc)=>{_0x3265cc['options']['showSuggestionHighlights']&&de(_0x610504,{'showActiveMarker':!0x1})(_0x1d8f7b,_0x4ef0ff,_0x3265cc);}),_0x32850b['descriptionFactory']['registerElementLabel']('softBreak',_0xa2c83d=>o(_0x610504['locale'],'ELEMENT_LINE_BREAK',_0xa2c83d));}}function de(_0x376a9f,{showActiveMarker:_0x2b4943=!0x0}={}){return(_0x5a5302,_0x678f97,_0x38f457)=>{const _0x2baecb=_0x376a9f['plugins']['get']('TrackChangesEditing');if(!_0x38f457['consumable']['test'](_0x678f97['markerRange'],_0x5a5302['name']))return;const _0x4bb6d4=_0x376a9f['model'];for(const _0x382399 of _0x678f97['markerRange']['getItems']()){if(!_0x382399['is']('element','softBreak'))continue;const _0x1d0e39='deletion'==_0x678f97['markerName']['split'](':')[0x1]?'merge':'split',_0x17ef51=_0x38f457['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1d0e39}),_0x40109c=_0x38f457['mapper']['toViewPosition'](_0x4bb6d4['createPositionBefore'](_0x382399));_0x2b4943&&_0x2baecb['activeMarkers']['includes'](_0x678f97['markerName'])&&_0x38f457['writer']['addClass']('ck-suggestion-marker--active',_0x17ef51),_0x38f457['writer']['insert'](_0x40109c,_0x17ef51),_0x38f457['mapper']['bindElementToMarker'](_0x17ef51,_0x678f97['markerName']);}};}class wt extends _0x1dc395{['afterInit'](){const _0x5800eb=this['editor'],_0x201aa3=_0x5800eb['model'],_0x3974f2=_0x5800eb['locale'];if(!_0x5800eb['plugins']['has']('StandardEditingModeEditing'))return;const _0x1c4bd7=_0x5800eb['plugins']['get']('TrackChangesEditing'),_0x2b46da='restrictedEditingException',_0x4021c8=_0x5800eb['commands']['get'](_0x2b46da);_0x1c4bd7['enableCommand'](_0x2b46da,(_0x23e9a0,_0x5299d2={})=>{const _0x357dc0=_0x201aa3['document']['selection'];if(_0x357dc0['isCollapsed'])return void _0x23e9a0(_0x5299d2);const _0x42a1e5=void 0x0!==_0x5299d2['forceValue']?_0x5299d2['forceValue']:!_0x4021c8['value'];_0x201aa3['change'](()=>{const _0x2ef628=Array['from'](_0x357dc0['getRanges']());for(const _0x50c96a of _0x2ef628){const _0x5f38e1=_0x42a1e5?[_0x50c96a]:io(_0x2b46da,_0x50c96a,_0x201aa3);for(const _0x58c876 of _0x5f38e1)_0x1c4bd7['markInlineFormat'](_0x58c876,{'commandName':_0x2b46da,'commandParams':[{'forceValue':_0x42a1e5}]});}});}),_0x1c4bd7['descriptionFactory']['registerDescriptionCallback'](_0x9712ee=>{if('formatBlock'!=_0x9712ee['type']&&'formatInline'!=_0x9712ee['type'])return;const {data:_0x4587b8}=_0x9712ee;return _0x4587b8&&_0x4587b8['commandName']==_0x2b46da?_0x4587b8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3974f2,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3974f2,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x1dc395{['afterInit'](){const _0x4b06e5=this['editor'];if(!_0x4b06e5['plugins']['has']('Style')||!_0x4b06e5['plugins']['has']('DataSchema'))return;const _0x45076b=_0x4b06e5['plugins']['get']('TrackChangesEditing'),_0x1645e3=_0x4b06e5['locale'],_0x73f546=_0x4b06e5['config']['get']('style')||{},_0x4a25ba=_0x4b06e5['plugins']['get']('GeneralHtmlSupport'),_0x4e402c=_0x4b06e5['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4b06e5['plugins']['get']('DataSchema'),_0x73f546['definitions']);_0x45076b['enableDefaultAttributesIntegration']('style');const _0x1bccdf=new Set();for(const _0x19a950 of _0x4e402c['block']){const _0x49ddb8=_0x4a25ba['getGhsAttributeNameForElement'](_0x19a950['element']);_0x1bccdf['add'](_0x49ddb8);}const _0x2cc712=new Set();for(const _0x304943 of _0x4e402c['inline']){const _0x37673b=_0x4a25ba['getGhsAttributeNameForElement'](_0x304943['element']);_0x2cc712['add'](_0x37673b);for(const _0x57ef08 of _0x304943['ghsAttributes'])_0x2cc712['add'](_0x57ef08);}for(const _0x5921a2 of _0x1bccdf)_0x45076b['registerBlockAttribute'](_0x5921a2),_0x45076b['descriptionFactory']['registerAttributeLabel'](_0x5921a2,o(_0x1645e3,'FORMAT_STYLE'));for(const _0x2b6975 of _0x2cc712)_0x45076b['registerInlineAttribute'](_0x2b6975),_0x45076b['descriptionFactory']['registerAttributeLabel'](_0x2b6975,o(_0x1645e3,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x530055=this['editor'],_0x1492d8=_0x530055['locale'];_0x530055['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26a772=>{if('formatBlock'!=_0x26a772['type']&&'formatInline'!=_0x26a772['type'])return;const {data:_0x4e4524}=_0x26a772;return _0x4e4524&&'style'===_0x4e4524['commandName']?_0x4e4524['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1492d8,'*Set\x20format:*\x20%0',_0x4e4524['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x1492d8,'*Remove\x20format:*\x20%0',_0x4e4524['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x1dc395{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x13d5fb){super(_0x13d5fb),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2fe85c=this['editor'],_0x354777=_0x2fe85c['model']['document']['selection'];if(!_0x2fe85c['plugins']['has']('TableEditing'))return;const _0xdeec4c=_0x2fe85c['locale'],_0x193feb=_0x2fe85c['plugins']['get']('TrackChangesEditing'),_0xd4db1f=_0x2fe85c['plugins']['get']('TableUtils');_0x193feb['descriptionFactory']['registerElementLabel']('table',_0x1f65c3=>o(_0xdeec4c,'ELEMENT_TABLE',_0x1f65c3)),this['_setupColumnsRowsFixing'](),_0x193feb['enableCommand']('insertTable'),_0x193feb['enableCommand']('selectTableRow'),_0x193feb['enableCommand']('selectTableColumn');for(const _0x38bd3a of['insertTableRowAbove','insertTableRowBelow']){const _0x20634c=_0x2fe85c['commands']['get'](_0x38bd3a);_0x193feb['enableCommand'](_0x38bd3a,_0x32b948=>{_0x2fe85c['model']['change'](_0x3cf8d0=>{_0x32b948();const _0x3060c0='above'===_0x20634c['order'],_0x2dfa20=_0xd4db1f['getSelectionAffectedTableCells'](_0x354777),_0x5933d5=_0xd4db1f['getRowIndexes'](_0x2dfa20),_0x262f6e=_0x3060c0?_0x5933d5['first']-0x1:_0x5933d5['last']+0x1,_0x2566bd=_0x2dfa20[0x0]['findAncestor']('table'),_0x5daad2=_0xd4db1f['createTableWalker'](_0x2566bd,{'startRow':_0x262f6e,'endRow':_0x262f6e}),_0x43a7e9=Array['from'](_0x5daad2)['map'](_0x10f12d=>_0x3cf8d0['createRangeOn'](_0x10f12d['cell']));_0x193feb['markMultiRangeInsertion'](_0x43a7e9,'tableRow');});});}for(const _0x18f20e of['insertTableColumnLeft','insertTableColumnRight']){const _0x390f56=_0x2fe85c['commands']['get'](_0x18f20e);_0x193feb['enableCommand'](_0x18f20e,_0x4ce86d=>{_0x2fe85c['model']['change'](_0x4ce9b4=>{_0x4ce86d();const _0x1495e5='left'===_0x390f56['order'],_0x1f84ea=_0xd4db1f['getSelectionAffectedTableCells'](_0x354777),_0x5ba456=_0xd4db1f['getColumnIndexes'](_0x1f84ea),_0x59a9bb=_0x1495e5?_0x5ba456['first']-0x1:_0x5ba456['last']+0x1,_0x3a4051=_0x1f84ea[0x0]['findAncestor']('table'),_0x219850=_0xd4db1f['createTableWalker'](_0x3a4051,{'startRow':0x0,'column':_0x59a9bb,'includeAllSlots':!0x1}),_0x27c7b9=Array['from'](_0x219850)['map'](_0x59c523=>_0x4ce9b4['createRangeOn'](_0x59c523['cell']));_0x193feb['markMultiRangeInsertion'](_0x27c7b9,'tableColumn');});});}for(const _0x1a61e4 of['removeTableRow','removeTableColumn']){const _0x5c74cd=_0x1a61e4['substr'](0xb),_0x5100a1=_0x5c74cd['toLowerCase'](),_0x3ddef0=_0x5100a1['substr'](0x0,0x3)+'span',_0x2219d6='table'+_0x5c74cd,_0x2096fa='min'+_0x5c74cd,_0x22d370='max'+_0x5c74cd;_0x193feb['enableCommand'](_0x1a61e4,()=>{_0x2fe85c['model']['change'](_0x19e06f=>{const _0x4cab89=_0xd4db1f['getSelectionAffectedTableCells'](_0x354777),_0x576939=_0x4cab89[0x0]['findAncestor']('table');let _0x497f90;if('removeTableRow'==_0x1a61e4){const _0x4c74a1=_0xd4db1f['getRowIndexes'](_0x4cab89);_0x497f90={'startRow':_0x4c74a1['first'],'endRow':_0x4c74a1['last'],'includeAllSlots':!0x0};}else{const _0x53c48c=_0xd4db1f['getColumnIndexes'](_0x4cab89);_0x497f90={'startColumn':_0x53c48c['first'],'endColumn':_0x53c48c['last'],'includeAllSlots':!0x0};}const _0x19816d=_0xd4db1f['createTableWalker'](_0x576939,_0x497f90),_0x35b25b=Array['from'](_0x19816d)['map'](({cell:_0x1a29e9})=>_0x1a29e9),_0xb37d8d=Ee(_0x35b25b['filter'](_0x5efa37=>_0x5efa37['hasAttribute'](_0x3ddef0))),_0x5eb4fe=Ee(_0x35b25b['filter'](_0x42f606=>!_0x42f606['hasAttribute'](_0x3ddef0)))['map'](_0xd69fac=>_0x19e06f['createRangeOn'](_0xd69fac)),_0x3107f5=_0x193feb['markMultiRangeDeletion'](_0x5eb4fe,_0x2219d6);if(_0x3107f5&&('tableRow'==_0x3107f5['subType']||'tableColumn'==_0x3107f5['subType'])){const _0x1a1e59=this['_getSuggestionCoords'](_0x3107f5);for(const _0x1c2dae of _0xb37d8d){const _0x310999=_0x19e06f['createRangeOn'](_0x1c2dae),_0x2c7822=_0xd4db1f['getCellLocation'](_0x1c2dae),_0x2ff7d3=_0x1c2dae['getAttribute'](_0x3ddef0)-0x1,_0x55352f=_0x1a1e59[_0x2096fa],_0x22b748=_0x1a1e59[_0x22d370];_0x55352f<=_0x2c7822[_0x5100a1]&&_0x2c7822[_0x5100a1]+_0x2ff7d3<=_0x22b748&&_0x3107f5['addRange'](_0x310999);}}});});}function _0x4b4e08(_0x317a0a){const _0x24205e=Array['from'](_0x354777['getRanges']())['map'](_0x14a2e9=>_0x5e8b6d['fromRange'](_0x14a2e9));_0x2fe85c['model']['change'](_0x3850a6=>{const _0x3e673f=_0x3850a6['batch'];_0x317a0a=_0x317a0a['filter'](_0x2fe47e=>'$graveyard'!=_0x2fe47e['root']['rootName']),_0x3850a6['setSelection'](_0x317a0a),_0x2fe85c['commands']['get']('removeTableRow')['refresh'](),_0x2fe85c['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2fe85c['model']['enqueueChange'](()=>{_0x2fe85c['model']['enqueueChange'](_0x3e673f,_0x13f344=>{const _0x39be68=_0x24205e['filter'](_0x5b6da0=>'$graveyard'!=_0x5b6da0['root']['rootName']);_0x39be68['length']>0x0&&_0x13f344['setSelection'](_0x39be68);for(const _0x169d44 of _0x24205e)_0x169d44['detach']();});});});}function _0x3cebc3(_0x35b706){_0x2fe85c['model']['change'](_0x2b0ae1=>{const _0x3a71d4=Array['from'](_0x354777['getRanges']())['map'](_0x5ddd8f=>_0x5e8b6d['fromRange'](_0x5ddd8f)),_0x24dfb3=[];for(const _0x1b647d of _0x35b706)for(const _0x327c8a of _0x1b647d['getItems']({'shallow':!0x0}))_0x24dfb3['push'](_0x327c8a);for(const _0x185b4f of _0x24dfb3)'$graveyard'!=_0x185b4f['root']['rootName']&&(_0x2b0ae1['setSelection'](_0x2b0ae1['createPositionAt'](_0x185b4f,0x0)),_0x2fe85c['commands']['get']('removeTableColumn')['refresh'](),_0x2fe85c['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x476be9=_0x3a71d4['filter'](_0x3b9d26=>'$graveyard'!=_0x3b9d26['root']['rootName']);_0x476be9['length']>0x0&&_0x2b0ae1['setSelection'](_0x476be9);for(const _0x14f74f of _0x3a71d4)_0x14f74f['detach']();});}function _0x598b5f(_0x37a17e,_0x2e7e3b){return _0x2e7e3b['every'](_0x432ace=>_0x37a17e['some'](_0x20bed6=>_0x20bed6['end']['isEqual'](_0x432ace['start'])||_0x432ace['end']['isEqual'](_0x20bed6['start'])));}function _0x2d29ba(_0x5e5ec0,_0x400eef){return!_0x5e5ec0['some'](_0x4fff0c=>_0x400eef['some'](_0x13f523=>_0x4fff0c['isIntersecting'](_0x13f523)))&&_0x5e5ec0['some'](_0x4101ac=>_0x400eef['some'](_0x5596a9=>_0x4101ac['end']['isTouching'](_0x5596a9['start'])));}_0x2fe85c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x58a94a,_0x1151a0,_0x4bcd71)=>{if(!_0x4bcd71['options']['showSuggestionHighlights'])return;const _0x8aec=_0x1151a0['item'];if(!_0x8aec)return;const _0x57e893=_0x4bcd71['mapper']['toViewElement'](_0x8aec);function _0x3657e8(_0x48de76){return Array['isArray'](_0x48de76)?_0x48de76:[_0x48de76];}_0x57e893&&'tableCell'===_0x8aec['name']&&_0x3c8cc7(_0x57e893,_0x4bcd71['writer'],(_0x82e1a0,_0x203a05,_0x5ced49)=>_0x5ced49['addClass'](_0x3657e8(_0x203a05['classes']),_0x82e1a0),(_0x639a78,_0x4b0b56,_0x4b70d9)=>_0x4b70d9['removeClass'](_0x3657e8(_0x4b0b56['classes']),_0x639a78));},{'priority':'highest'}),_0x193feb['descriptionFactory']['registerDescriptionCallback'](_0xd1e628=>{if('insertion'!=_0xd1e628['type']&&'deletion'!=_0xd1e628['type'])return;const _0x4b1d6e=_0xd1e628['getContainedElement']();if(null!=_0x4b1d6e&&_0x4b1d6e['is']('element','table')){if('insertion'==_0xd1e628['type']){const _0x1d06fb=_0xd1e628['getItems']()['filter'](_0x389948=>_0x389948['is']('$textProxy'))['map'](_0x20c287=>_0x20c287['data']);if(_0x1d06fb['length'])return{'type':'insertion','content':o(_0xdeec4c,'*Insert:*\x20%0',o(_0xdeec4c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1d06fb['join']('\x20')+'\x22'))};}if('deletion'==_0xd1e628['type']){const _0x2a88d6=_0xd1e628['getItems']()['filter'](_0x69203a=>_0x69203a['is']('$textProxy'))['map'](_0xcb5a71=>_0xcb5a71['data']);if(_0x2a88d6['length'])return{'type':'deletion','content':o(_0xdeec4c,'*Remove:*\x20%0',o(_0xdeec4c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2a88d6['join']('\x20')+'\x22'))};}}}),_0x193feb['descriptionFactory']['registerDescriptionCallback'](_0x3ed1ed=>{if('tableRow'==_0x3ed1ed['subType']){const _0xbeea8a=_0x3ed1ed['getItems']()['filter'](_0x517357=>_0x517357['is']('$textProxy'))['map'](_0x561e22=>_0x561e22['data']),_0x2ef747=this['_getSuggestionCoords'](_0x3ed1ed),_0x18d6d7=_0x2ef747['maxRow']-_0x2ef747['minRow']+0x1;if('insertion'==_0x3ed1ed['type'])return _0xbeea8a['length']?{'type':'insertion','content':o(_0xdeec4c,'*Insert:*\x20%0',o(_0xdeec4c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x18d6d7,'\x22'+_0xbeea8a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xdeec4c,'*Insert:*\x20%0',o(_0xdeec4c,'ELEMENT_TABLE_ROW',_0x18d6d7))};if('deletion'==_0x3ed1ed['type'])return _0xbeea8a['length']?{'type':'deletion','content':o(_0xdeec4c,'*Remove:*\x20%0',o(_0xdeec4c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x18d6d7,'\x22'+_0xbeea8a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xdeec4c,'*Remove:*\x20%0',o(_0xdeec4c,'ELEMENT_TABLE_ROW',_0x18d6d7))};}if('tableColumn'==_0x3ed1ed['subType']){const _0x3a5a3b=_0x3ed1ed['getItems']()['filter'](_0x5c10ad=>_0x5c10ad['is']('$textProxy'))['map'](_0x471114=>_0x471114['data']),_0x4deded=this['_getSuggestionCoords'](_0x3ed1ed),_0x28dd13=_0x4deded['maxColumn']-_0x4deded['minColumn']+0x1;if('insertion'==_0x3ed1ed['type'])return _0x3a5a3b['length']?{'type':'insertion','content':o(_0xdeec4c,'*Insert:*\x20%0',o(_0xdeec4c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x28dd13,'\x22'+_0x3a5a3b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xdeec4c,'*Insert:*\x20%0',o(_0xdeec4c,'ELEMENT_TABLE_COLUMN',_0x28dd13))};if('deletion'==_0x3ed1ed['type'])return _0x3a5a3b['length']?{'type':'deletion','content':o(_0xdeec4c,'*Remove:*\x20%0',o(_0xdeec4c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x28dd13,'\x22'+_0x3a5a3b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xdeec4c,'*Remove:*\x20%0',o(_0xdeec4c,'ELEMENT_TABLE_COLUMN',_0x28dd13))};}}),_0x193feb['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4b4e08),_0x193feb['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4b4e08),_0x193feb['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3cebc3),_0x193feb['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3cebc3),_0x193feb['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x598b5f),_0x193feb['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x598b5f),_0x193feb['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2d29ba),_0x193feb['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2d29ba);}['_acceptFormatSuggestionCallbackFactory'](){const _0x6351dd=this['editor'],_0x46bdb0=_0x6351dd['model']['document']['selection'];return(_0x5c40d1,_0x15c8c6)=>{_0x6351dd['model']['change'](_0x2197fc=>{const {commandName:_0x2705a9,commandParams:_0x2394d7}=_0x15c8c6;let _0x21e7db=_0x5c40d1[0x0]['end']['nodeBefore'];_0x2394d7&&_0x2394d7[0x0]&&!0x1===_0x2394d7[0x0]['forceValue']&&(_0x21e7db=_0x5c40d1[0x0]['start']['nodeAfter']);const _0x39c614=_0x2197fc['createRangeIn'](_0x21e7db);if('$graveyard'==_0x39c614['root']['rootName'])return;const _0xe9bc46=Array['from'](_0x46bdb0['getRanges']())['map'](_0x1e7e2e=>_0x5e8b6d['fromRange'](_0x1e7e2e));_0x2197fc['setSelection'](_0x39c614),_0x6351dd['commands']['get'](_0x2705a9)['refresh'](),_0x2394d7['push']({'forceDefaultExecution':!0x0}),_0x6351dd['execute'](_0x2705a9,..._0x2394d7);const _0x3b44a8=_0xe9bc46['filter'](_0x2aa578=>'$graveyard'!=_0x2aa578['root']['rootName']);_0x3b44a8['length']>0x0&&_0x2197fc['setSelection'](_0x3b44a8);for(const _0xff89b1 of _0xe9bc46)_0xff89b1['detach']();});};}['_getCoordsForCells'](_0x4140e0){const _0x9ac02=this['editor']['plugins']['get']('TableUtils');let _0x1873d7=Number['MAX_SAFE_INTEGER'],_0x3aca49=Number['MIN_SAFE_INTEGER'],_0x4792e7=Number['MAX_SAFE_INTEGER'],_0x56b766=Number['MIN_SAFE_INTEGER'];for(const _0x45bea6 of _0x4140e0){if('$graveyard'==_0x45bea6['root']['rootName'])continue;const {row:_0x20dbeb,column:_0x11f2a6}=_0x9ac02['getCellLocation'](_0x45bea6),_0x2c461d=_0x45bea6['hasAttribute']('rowspan')?_0x45bea6['getAttribute']('rowspan')-0x1:0x0,_0x20d1ca=_0x45bea6['hasAttribute']('colspan')?_0x45bea6['getAttribute']('colspan')-0x1:0x0;_0x1873d7=_0x20dbeb<_0x1873d7?_0x20dbeb:_0x1873d7,_0x3aca49=_0x20dbeb+_0x2c461d>_0x3aca49?_0x20dbeb+_0x2c461d:_0x3aca49,_0x4792e7=_0x11f2a6<_0x4792e7?_0x11f2a6:_0x4792e7,_0x56b766=_0x11f2a6+_0x20d1ca>_0x56b766?_0x11f2a6+_0x20d1ca:_0x56b766;}return{'minRow':_0x1873d7,'maxRow':_0x3aca49,'minColumn':_0x4792e7,'maxColumn':_0x56b766};}['_setupColumnsRowsFixing'](){const _0x27fe74=this['editor'],_0x360aa3=_0x27fe74['plugins']['get']('TrackChangesEditing'),_0x2daea4=_0x27fe74['plugins']['get']('TableUtils');_0x27fe74['model']['document']['on']('change:data',()=>{const _0x19391d=Array['from'](_0x27fe74['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x462df1,data:_0x442239}of _0x19391d){const {group:_0x18598b,id:_0x1f855e,subType:_0x83319e}=_0x360aa3['_splitMarkerName'](_0x462df1);if('suggestion'!=_0x18598b)continue;if(null!=_0x442239['oldRange'])continue;const _0x305f2d=_0x360aa3['getSuggestion'](_0x1f855e);this['_tablePostFixingSubtypes']['includes'](_0x83319e)&&this['_tableSuggestions']['add'](_0x305f2d);}},{'priority':'low'});const _0x21748d=(_0x297db4,_0x18d164)=>{let _0x4d45e8=!0x1;const _0x2cd7e1=_0x18d164['createRangeOn'](_0x297db4),_0x3ad485=_0x297db4['findAncestor']('table'),_0x14ace4=_0x2daea4['getCellLocation'](_0x297db4);for(const _0x10f4fb of this['_tableSuggestions']){const _0x1857a4=_0x10f4fb['subType'],_0x3b4652=_0x1857a4['startsWith']('tablePaste'),_0x34233e=_0x1857a4['substr'](_0x3b4652?0xa:0x5),_0x4104e8=_0x34233e['toLowerCase'](),_0x25d69f=_0x4104e8['substr'](0x0,0x3)+'span',_0x977516='min'+_0x34233e,_0xee077c='max'+_0x34233e;if(!_0x10f4fb['isInContent'])continue;if(_0x3ad485!=_0x10f4fb['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x10f4fb['isIntersectingWithRange'](_0x2cd7e1))continue;const _0x40ae63=_0x297db4['hasAttribute'](_0x25d69f)?_0x297db4['getAttribute'](_0x25d69f)-0x1:0x0,_0x1c6be3=this['_getSuggestionCoords'](_0x10f4fb),_0x458b4a=_0x1c6be3[_0x977516],_0x4dc258=_0x1c6be3[_0xee077c];_0x458b4a<=_0x14ace4[_0x4104e8]&&_0x14ace4[_0x4104e8]+_0x40ae63<=_0x4dc258&&(_0x10f4fb['addRange'](_0x2cd7e1),_0x4d45e8=!0x0);}return _0x4d45e8;};_0x27fe74['model']['document']['registerPostFixer'](_0xb66777=>{let _0xfa281a=!0x1;for(const _0x1318f0 of _0x27fe74['model']['document']['differ']['getChanges']())if('insert'==_0x1318f0['type']){if('tableRow'==_0x1318f0['name']){for(const _0x244953 of _0x1318f0['position']['nodeAfter']['getChildren']())_0xfa281a=_0xfa281a||_0x21748d(_0x244953,_0xb66777);}else'tableCell'==_0x1318f0['name']&&(_0xfa281a=_0xfa281a||_0x21748d(_0x1318f0['position']['nodeAfter'],_0xb66777));}return _0xfa281a;});}['_getSuggestionCoords'](_0x1525c7){return this['_getCoordsForCells'](_0x1525c7['getRanges']()['map'](_0x38fcba=>_0x38fcba['start']['nodeAfter']));}}function Ee(_0x1977db){return Array['from'](new Set(_0x1977db)['values']());}class St extends _0x1dc395{static get['requires'](){return[jt];}['afterInit'](){const _0x5b190f=this['editor'],_0x1f7e20=_0x5b190f['model']['document']['selection'],_0x54ac6f=_0x5b190f['locale'];if(!_0x5b190f['plugins']['has']('TableEditing'))return;const _0x631ba2=_0x5b190f['plugins']['get']('TrackChangesEditing'),_0x3f6b75=_0x5b190f['plugins']['get']('TableUtils'),_0x3a2c35=_0x5b190f['plugins']['get'](jt);_0x3a2c35['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x631ba2['enableCommand']('mergeTableCells',()=>{const _0x1e713c=_0x3f6b75['getSelectionAffectedTableCells'](_0x5b190f['model']['document']['selection']);_0x5b190f['model']['change'](()=>{_0x631ba2['markMultiRangeBlockFormat'](_0x1e713c,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5b190f['commands']['get']('mergeTableCells')['on']('execute',(_0x36c83f,_0x3d16b0)=>{_0x5b190f['commands']['get']('trackChanges')['value']&&(_0x3d16b0['length']>0x0&&_0x3d16b0[_0x3d16b0['length']-0x1]&&_0x3d16b0[_0x3d16b0['length']-0x1]['forceDefaultExecution']||_0x631ba2['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x36c83f['stop']());},{'priority':'highest'});for(const _0xd61cc0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x156507=_0x5b190f['commands']['get'](_0xd61cc0);_0x631ba2['enableCommand'](_0xd61cc0,()=>{const _0xefdaea=_0x5b190f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x594ff9=>_0x594ff9['is']('element','tableCell')),_0x2e5516=_0x156507['value'];_0x5b190f['model']['change'](()=>{_0x631ba2['markMultiRangeBlockFormat']([_0xefdaea,_0x2e5516],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1a876a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x8b3335=_0x5b190f['commands']['get'](_0x1a876a);_0x631ba2['enableCommand'](_0x1a876a,()=>{const _0x3247c4=_0x3f6b75['getSelectionAffectedTableCells'](_0x5b190f['model']['document']['selection'])[0x0],_0x4c18f4=_0x3247c4['findAncestor']('table'),{column:_0x2ef5b0,row:_0x191cea}=_0x3f6b75['getCellLocation'](_0x3247c4);let _0xca3e8f=[];if('horizontally'==_0x8b3335['direction']){const _0x20d575=_0x3f6b75['createTableWalker'](_0x4c18f4,{'startRow':_0x191cea,'endRow':_0x191cea,'includeAllSlots':!0x0});_0xca3e8f=Array['from'](_0x20d575)['map'](_0x22ee46=>_0x22ee46['cell']);}else{const _0x224888=_0x3f6b75['createTableWalker'](_0x4c18f4,{'column':_0x2ef5b0,'includeAllSlots':!0x0});_0xca3e8f=Array['from'](_0x224888)['map'](_0x27eee8=>_0x27eee8['cell']);}_0x5b190f['model']['change'](_0x5b6435=>{_0x631ba2['markBlockFormat'](_0x5b6435['createRangeOn'](_0x3247c4),{'commandName':_0x1a876a,'commandParams':[]},_0xca3e8f,_0x1a876a);});});}_0x631ba2['descriptionFactory']['registerDescriptionCallback'](_0x3aa48f=>{if('formatBlock'!=_0x3aa48f['type']&&'formatInline'!=_0x3aa48f['type'])return;const {data:_0x11e16a}=_0x3aa48f;return _0x11e16a&&'mergeTableCells'==_0x11e16a['commandName']?{'type':'format','content':o(_0x54ac6f,'*Merge\x20cells*')}:void 0x0;}),_0x631ba2['descriptionFactory']['registerDescriptionCallback'](_0x50414a=>{if('formatBlock'!=_0x50414a['type']&&'formatInline'!=_0x50414a['type'])return;const {data:_0x254bba}=_0x50414a;return _0x254bba?'splitTableCellVertically'==_0x254bba['commandName']?{'type':'format','content':o(_0x54ac6f,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x254bba['commandName']?{'type':'format','content':o(_0x54ac6f,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x32f77d=_0x3a2c35['_acceptFormatSuggestionCallbackFactory']();for(const _0x4dae87 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x631ba2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4dae87,'accept',_0x32f77d);for(const _0x10b0a9 of['splitTableCellVertically','splitTableCellHorizontally'])_0x631ba2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x10b0a9,'accept',_0x32f77d);_0x631ba2['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x338bee=>{_0x5b190f['model']['change'](_0x159e53=>{const _0x1cbd4a=Array['from'](_0x1f7e20['getRanges']())['map'](_0x110184=>_0x5e8b6d['fromRange'](_0x110184));_0x159e53['setSelection'](_0x338bee),_0x5b190f['commands']['get']('mergeTableCells')['refresh'](),_0x5b190f['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x583612=_0x1cbd4a['filter'](_0x5251a4=>'$graveyard'!=_0x5251a4['root']['rootName']);_0x583612['length']>0x0&&_0x159e53['setSelection'](_0x583612);for(const _0x475d00 of _0x1cbd4a)_0x475d00['detach']();});});for(const _0x355db7 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5173f2=_0x5b190f['commands']['get'](_0x355db7);_0x5173f2['on']('set:isEnabled',(_0x577fa3,_0x127a8e,_0x23bdd7)=>{if(_0x23bdd7){const _0x4083b2=_0x5b190f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5cacec=>_0x5cacec['is']('element','tableCell'));this['_areMergableCells'](_0x5173f2['value'],_0x4083b2)||(_0x577fa3['return']=!0x1,_0x577fa3['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3be64b=this['editor']['commands']['get']('mergeTableCells'),_0xf1adb3=this['editor']['plugins']['get']('TableUtils');if(!_0x3be64b['isEnabled'])return!0x1;const _0x5d491d=_0xf1adb3['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2edef8 of _0x5d491d)for(const _0x3ab443 of _0x5d491d)if(_0x2edef8!=_0x3ab443&&!this['_areMergableCells'](_0x2edef8,_0x3ab443))return!0x1;return!0x0;}['_areMergableCells'](_0x22ed41,_0xba5f50){const _0x39f61b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x153c20=this['editor']['model']['createRangeOn'](_0x22ed41),_0x485e4d=this['editor']['model']['createRangeOn'](_0xba5f50),_0x32785e=new Set(),_0x2471b9=new Set();for(const _0x2b9f02 of _0x39f61b['getSuggestions']())if(('insertion'==_0x2b9f02['type']||'deletion'==_0x2b9f02['type']||'mergeTableCells'==_0x2b9f02['subType'])&&_0x2b9f02['isInContent']){for(const _0x1ba1ea of _0x2b9f02['getRanges']())_0x1ba1ea['containsRange'](_0x153c20,!0x0)&&_0x32785e['add'](_0x2b9f02['type']+':'+_0x2b9f02['author']['id']),_0x1ba1ea['containsRange'](_0x485e4d,!0x0)&&_0x2471b9['add'](_0x2b9f02['type']+':'+_0x2b9f02['author']['id']);}if(_0x32785e['size']!=_0x2471b9['size'])return!0x1;for(const _0x3953b4 of _0x32785e)if(!_0x2471b9['has'](_0x3953b4))return!0x1;return!0x0;}}class At extends _0x1dc395{static get['requires'](){return[jt];}['afterInit'](){const _0x3f676c=this['editor'];if(!_0x3f676c['plugins']['has']('TableEditing'))return;const _0x246e76=_0x3f676c['locale'],_0x4d6027=_0x3f676c['plugins']['get']('TrackChangesEditing');_0x4d6027['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4d6027['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4d6027['registerBlockAttribute']('headingRows'),_0x4d6027['registerBlockAttribute']('headingColumns'),_0x4d6027['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x246e76,'FORMAT_HEADER_ROW')),_0x4d6027['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x246e76,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x148266=this['editor']['plugins']['get']('TrackChangesEditing'),_0x424607=this['editor']['plugins']['get']('TableUtils'),_0x112a20=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x122a27({showActiveMarker:_0x2c2949=!0x0,setDataAttribute:_0x4dc322=!0x0}={}){return(_0x9a7294,_0x20d4ed,_0x2871e0)=>{const {type:_0x4301f0,id:_0xa46b16}=_0x148266['_splitMarkerName'](_0x20d4ed['markerName']),_0x23bc37=_0x148266['getSuggestion'](_0xa46b16),_0x37e8a0=_0x23bc37['data'];if('formatBlock'!=_0x23bc37['type']||!_0x37e8a0||'setTableColumnHeader'!=_0x37e8a0['commandName'])return;if(_0x20d4ed['item'])return void _0x9a7294['stop']();if(!_0x2871e0['consumable']['consume'](_0x20d4ed['markerRange'],_0x9a7294['name']))return;const _0x3e425d=_0x20d4ed['markerRange']['start']['nodeAfter'],_0x2b7d2c=_0x20d4ed['markerRange']['end']['nodeBefore'],_0x259219=_0x3e425d['parent']['parent'],{column:_0x16c247}=_0x424607['getCellLocation'](_0x3e425d),{column:_0x10a35d}=_0x424607['getCellLocation'](_0x2b7d2c);for(let _0xff0bf=_0x16c247;_0xff0bf<=_0x10a35d;_0xff0bf++){const _0x31a426=_0x424607['createTableWalker'](_0x259219,{'column':_0xff0bf,'includeAllSlots':!0x1});for(const _0x8cd3f6 of _0x31a426){const _0x93d740=_0x8cd3f6['cell'],_0x3655e8=_0x2871e0['mapper']['toViewElement'](_0x93d740);_0x2871e0['writer']['addClass']('ck-suggestion-marker-'+_0x4301f0,_0x3655e8),_0x4dc322&&_0x2871e0['writer']['setAttribute']('data-suggestion',_0xa46b16,_0x3655e8),_0x2871e0['mapper']['bindElementToMarker'](_0x3655e8,_0x20d4ed['markerName']),_0x2c2949&&(_0x148266['activeMarkers']['includes'](_0x20d4ed['markerName'])?_0x2871e0['writer']['addClass']('ck-suggestion-marker--active',_0x3655e8):_0x2871e0['writer']['removeClass']('ck-suggestion-marker--active',_0x3655e8));}}};}_0x148266['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x112a20),_0x148266['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x112a20),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x122a27(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x586417,_0x5b0b7e,_0x35e830)=>{_0x35e830['options']['showSuggestionHighlights']&&_0x122a27({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x586417,_0x5b0b7e,_0x35e830);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x367373,_0x46d9d7,_0x34fcd2)=>{const {type:_0x4e89c2,id:_0xcc2a38}=_0x148266['_splitMarkerName'](_0x46d9d7['markerName']),_0x1c388a=_0x148266['getSuggestion'](_0xcc2a38),_0x14ac1c=_0x1c388a['data'];if('formatBlock'!=_0x1c388a['type']||!_0x14ac1c||'setTableColumnHeader'!=_0x14ac1c['commandName'])return;const _0xea02e4=_0x34fcd2['mapper']['markerNameToElements'](_0x46d9d7['markerName']);if(_0xea02e4){for(const _0x1070e3 of _0xea02e4)_0x34fcd2['writer']['removeClass']('ck-suggestion-marker-'+_0x4e89c2,_0x1070e3),_0x34fcd2['writer']['removeClass']('ck-suggestion-marker--active',_0x1070e3),_0x34fcd2['writer']['removeAttribute']('data-suggestion',_0x1070e3),_0x34fcd2['mapper']['unbindElementFromMarkerName'](_0x1070e3,_0x46d9d7['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1163f5=this['editor'],_0xb91a6d=_0x1163f5['locale'];function _0x378ab4(_0x3db6c1){return{'type':'format','content':o(_0xb91a6d,'*Format:*\x20%0',_0x3db6c1)};}_0x1163f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cc623=>{if('formatBlock'!=_0x3cc623['type'])return;const {data:_0x26d858}=_0x3cc623;if(_0x26d858){if('setTableRowHeader'==_0x26d858['commandName']){const _0x34c153=_0x26d858['commandParams'][0x0]['forceValue'];return _0x378ab4(o(_0xb91a6d,_0x34c153?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x26d858['commandName']){const _0x419021=_0x26d858['commandParams'][0x0]['forceValue'];return _0x378ab4(o(_0xb91a6d,_0x419021?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x22f2c0=>[_0x22f2c0,null]));class It extends _0x1dc395{static get['requires'](){return[jt];}['afterInit'](){const _0x2c2cb8=this['editor'];if(!_0x2c2cb8['plugins']['has']('TableClipboard'))return;const _0x24a07f=_0x2c2cb8['plugins']['get']('TrackChangesEditing'),_0x4a75f3=_0x2c2cb8['plugins']['get']('TableUtils'),_0x16bb1e=_0x2c2cb8['plugins']['get'](jt),_0x3e8329=_0x2c2cb8['plugins']['get']('TableClipboard');_0x16bb1e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2c2cb8['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2c2cb8['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x48249e=null;_0x2c2cb8['model']['on']('insertContent',(_0x4f1715,_0x292939)=>{const [_0x2822fc,_0x4d1002]=_0x292939,_0x29923d=_0x292939[_0x292939['length']-0x1];_0x29923d&&_0x29923d['forceDefaultExecution']||_0x24a07f['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x133c5b,_0x88bf43,_0x5e23a9,_0x545eb3,_0x4a0f9d){if(_0x88bf43&&!_0x88bf43['is']('documentSelection'))return!0x1;const _0x4535ce=_0x4a0f9d['getTableIfOnlyTableInContent'](_0x133c5b,_0x5e23a9);if(!_0x4535ce||!he(_0x4535ce,void 0x0,_0x545eb3))return!0x1;const _0xd71bed=_0x545eb3['getSelectionAffectedTableCells'](_0x5e23a9['document']['selection']);if(!_0xd71bed['length'])return!0x1;const _0x393571=_0xd71bed[0x0]['findAncestor']('table'),_0x4ba26c=_0x545eb3['getRowIndexes'](_0xd71bed),_0x8c0205=_0x545eb3['getColumnIndexes'](_0xd71bed),_0x20bd20={'startRow':_0x4ba26c['first'],'endRow':_0x4ba26c['last'],'startColumn':_0x8c0205['first'],'endColumn':_0x8c0205['last']};return 0x1==_0xd71bed['length']&&(_0x20bd20['endRow']+=_0x545eb3['getRows'](_0x4535ce)-0x1,_0x20bd20['endColumn']+=_0x545eb3['getColumns'](_0x4535ce)-0x1),he(_0x393571,_0x20bd20,_0x545eb3);}(_0x2822fc,_0x4d1002,_0x2c2cb8['model'],_0x4a75f3,_0x3e8329)&&(_0x4f1715['stop'](),_0x48249e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2c2cb8['model']['change'](()=>{_0x2c2cb8['model']['insertContent'](_0x292939[0x0],_0x292939[0x1],_0x292939[0x2],{'forceDefaultExecution':!0x0});const _0x23bd24=_0x497177(),{rowInsertionRanges:_0x5a91d8,columnInsertionRanges:_0x3649f5,insertionRanges:_0x5915d3,deletionRanges:_0x233900,cells:_0x171244}=_0x48249e;_0x5a91d8['length']&&_0x24a07f['markMultiRangeInsertion'](_0x5a91d8,'tablePasteRow',{'tablePasteChainId':_0x23bd24}),_0x3649f5['length']&&_0x24a07f['markMultiRangeInsertion'](_0x3649f5,'tablePasteColumn',{'tablePasteChainId':_0x23bd24}),_0x5915d3['length']&&(_0x24a07f['markMultiRangeInsertion'](_0x5915d3,'tablePaste',{'tablePasteChainId':_0x23bd24,'skipNestingCheck':!0x0}),_0x5915d3['forEach'](_0x4f9748=>_0x4f9748['detach']?.())),_0x233900['length']&&(_0x24a07f['markMultiRangeDeletion'](_0x233900,'tablePaste',{'tablePasteChainId':_0x23bd24,'skipNestingCheck':!0x0}),_0x233900['forEach'](_0x2c12d0=>_0x2c12d0['detach']?.()));const _0x2d55d7=_0x24a07f['markMultiRangeBlockFormat'](_0x171244['map'](({element:_0x544ab4})=>_0x544ab4),{'formatGroupId':_0x497177()},[],'tablePasteCell',{'tablePasteChainId':_0x23bd24});if(_0x2d55d7){const _0x30c2d7=_0x2d55d7['getMarkers'](),_0x5f266b=[];for(const {element:_0x248376,attributes:_0x2f1d9d}of _0x171244){if(!_0x2f1d9d)continue;const _0x20d4d8=_0x2c2cb8['model']['createRangeOn'](_0x248376),_0x55279e=_0x30c2d7['find'](_0x4b558d=>_0x4b558d['getRange']()['isEqual'](_0x20d4d8));_0x55279e&&_0x5f266b['push']([_0x55279e['name'],_0x2f1d9d]);}_0x5f266b['length']&&_0x2d55d7['setAttribute']('markerAttributes',Object['fromEntries'](_0x5f266b));}_0x48249e=null;}));},{'priority':_0x244548['high']+0xa}),_0x2c2cb8['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3ba206,_0x20e759)=>{const [_0xe05496,_0xd7fc5,,_0x2654e1]=_0x20e759;if(!_0x48249e)return;_0x3ba206['stop']();const _0x17dbdc=_0xe05496['cell'],_0x2804c4=_0xd7fc5,_0x5392da=Pe(_0x17dbdc),_0x1c4cc4=Pe(_0x2804c4);_0x3ba206['return']=_0x17dbdc;let _0xe79286=null,_0x15bb1d=null;if(_0x1c4cc4||_0x5392da){if(_0x5392da&&!_0x1c4cc4){_0x2654e1['remove'](_0x17dbdc['getChild'](0x0));for(const _0x1e64e2 of Array['from'](_0x2804c4['getChildren']()))_0x2654e1['insert'](_0x1e64e2,_0x17dbdc,'end');const _0x3f6828=_0x48249e['rowInsertionIndexes']['includes'](_0xe05496['row']),_0x45cd9a=_0x48249e['columnInsertionIndexes']['includes'](_0xe05496['column']);_0x3f6828||_0x45cd9a||(_0xe79286=_0x5e8b6d['fromRange'](_0x2654e1['createRangeIn'](_0x17dbdc)));}else _0x1c4cc4&&!_0x5392da&&(_0x15bb1d=_0x2654e1['createRangeIn'](_0x17dbdc));}else{const _0x384afa=_0x2654e1['createElement']('tableCellSuggestion'),_0x501f72=_0x2654e1['createElement']('tableCellSuggestion');_0x2654e1['wrap'](_0x2654e1['createRangeIn'](_0x17dbdc),_0x501f72),_0x2654e1['insert'](_0x384afa,_0x17dbdc,0x0);for(const _0xe0cc3d of Array['from'](_0x2804c4['getChildren']()))_0x2654e1['insert'](_0xe0cc3d,_0x384afa,'end');_0xe79286=_0x5e8b6d['fromRange'](_0x2654e1['createRangeOn'](_0x384afa)),_0x15bb1d=_0x5e8b6d['fromRange'](_0x2654e1['createRangeOn'](_0x501f72));}const _0x4acbf5=Array['from'](_0x2804c4['getAttributes']())['filter'](([_0x567a4b])=>ge['includes'](_0x567a4b));_0x48249e['cells']['push']({'element':_0x17dbdc,'attributes':_0x4acbf5['length']?Object['fromEntries'](_0x4acbf5):null}),_0xe79286&&_0x48249e['insertionRanges']['push'](_0xe79286),_0x15bb1d&&_0x48249e['deletionRanges']['push'](_0x15bb1d);},{'priority':'high'}),_0x4a75f3['on']('insertColumns',(_0x2045b8,_0x4c91e9)=>{const [_0x4ea56a,_0x280cec={}]=_0x4c91e9;if(!_0x48249e)return;const _0x53999d=_0x280cec['at']||0x0,_0x30060e=_0x280cec['columns']||0x1;_0x48249e['columnInsertionIndexes']=new Array(_0x30060e)['fill'](_0x53999d)['map']((_0x394e0e,_0x303c77)=>_0x394e0e+_0x303c77);for(const {cell:_0x3b77fc}of _0x4a75f3['createTableWalker'](_0x4ea56a,{'startColumn':_0x53999d,'endColumn':_0x53999d+_0x30060e-0x1}))_0x48249e['columnInsertionRanges']['push'](_0x2c2cb8['model']['createRangeOn'](_0x3b77fc));},{'priority':'low'}),_0x4a75f3['on']('insertRows',(_0x28745e,_0xdc074e)=>{const [_0x1de614,_0x387d0f={}]=_0xdc074e;if(!_0x48249e)return;const _0x36f0d2=_0x387d0f['at']||0x0,_0x38a84c=_0x387d0f['rows']||0x1;_0x48249e['rowInsertionIndexes']=new Array(_0x38a84c)['fill'](_0x36f0d2)['map']((_0x2b419e,_0x1c7b39)=>_0x2b419e+_0x1c7b39);for(const {cell:_0x34c5c8}of _0x4a75f3['createTableWalker'](_0x1de614,{'startRow':_0x36f0d2,'endRow':_0x36f0d2+_0x38a84c-0x1}))_0x48249e['rowInsertionRanges']['push'](_0x2c2cb8['model']['createRangeOn'](_0x34c5c8));},{'priority':'low'}),_0x24a07f['descriptionFactory']['registerDescriptionCallback'](_0x458885=>{if(_0x458885['subType']&&_0x458885['subType']['startsWith']('tablePaste'))return _0x458885['previous']?{}:{'type':'insertion','content':o(_0x2c2cb8['locale'],'*Replace\x20table\x20cells*')};});const _0x42a273=()=>!0x1;for(const _0x3b43ec of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x24a07f['_suggestionFactory']['registerCustomCallback']('insertion',_0x3b43ec,'join',_0x42a273),_0x24a07f['_suggestionFactory']['registerCustomCallback']('deletion',_0x3b43ec,'join',_0x42a273),_0x24a07f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3b43ec,'join',_0x42a273);_0x24a07f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x42a273),_0x24a07f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2bb22b,_0x1eb82e,_0x14977e)=>{const _0x53462c=_0x2bb22b['map'](_0x39f57a=>_0x39f57a['getContainedElement']())['filter'](_0x32fd5f=>_0x32fd5f),_0x3ebf42=new Map(_0x53462c['map'](_0x5bcb35=>[_0x5bcb35,null]));if(_0x48249e){for(const {element:_0x57b9c8,attributes:_0x252f95}of _0x48249e['cells'])_0x252f95&&_0x3ebf42['set'](_0x57b9c8,_0x252f95);}else{if(_0x14977e&&_0x14977e['markerAttributes'])for(const [_0x541527,_0x19b87b]of Object['entries'](_0x14977e['markerAttributes'])){const _0x135a75=_0x2c2cb8['model']['markers']['get'](_0x541527),_0x3c8aa2=_0x135a75?_0x135a75['getRange']()['getContainedElement']():null;_0x3c8aa2&&_0x3ebf42['set'](_0x3c8aa2,_0x19b87b);}}_0x2c2cb8['model']['change'](_0x566e7a=>{for(const [_0x3dbd73,_0x300985]of _0x3ebf42)_0x566e7a['setAttributes']({...Ce,..._0x300985},_0x3dbd73);});});const _0x4a1015=(_0x38c4b3,_0x434dac)=>{_0x24a07f['_suggestionFactory']['registerCustomCallback'](_0x38c4b3,'tablePaste',_0x434dac,(_0x13fb5a,_0x3305bf,_0x29d938)=>{_0x2c2cb8['model']['change'](_0x2aeed6=>{const _0x254ffc=[];for(const _0xb3005 of _0x13fb5a){const _0x7283d9=_0xb3005['start']['nodeAfter'];_0x7283d9['is']('element','tableCellSuggestion')&&_0x254ffc['push'](_0x7283d9);}_0x24a07f['_suggestionFactory']['getSuggestionCallback'](_0x38c4b3,null,_0x434dac)(_0x13fb5a,_0x3305bf,_0x29d938);for(const _0x33ae85 of _0x254ffc)'$graveyard'!=_0x33ae85['root']['rootName']&&_0x2aeed6['unwrap'](_0x33ae85);});});};_0x4a1015('insertion','accept'),_0x4a1015('insertion','discard'),_0x4a1015('deletion','accept'),_0x4a1015('deletion','discard'),_0x24a07f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4ff22a=>{const _0x537f89=_0x4ff22a['map'](_0x142ea3=>_0x142ea3['getContainedElement']()),_0xf3b5f2=_0x537f89[0x0]['findAncestor']('table'),{minRow:_0x380583,maxRow:_0x5dc41d}=_0x16bb1e['_getCoordsForCells'](_0x537f89);_0x4a75f3['removeRows'](_0xf3b5f2,{'at':_0x380583,'rows':_0x5dc41d-_0x380583+0x1});}),_0x24a07f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x39a802=>{const _0x5872c2=_0x39a802['map'](_0x4f9e32=>_0x4f9e32['getContainedElement']()),_0x1c31ca=_0x5872c2[0x0]['findAncestor']('table'),{minColumn:_0x571ec3,maxColumn:_0x38b8a7}=_0x16bb1e['_getCoordsForCells'](_0x5872c2);_0x4a75f3['removeColumns'](_0x1c31ca,{'at':_0x571ec3,'columns':_0x38b8a7-_0x571ec3+0x1});});const _0x37854b=(_0x51fc62,_0x1fa2f0)=>{if(!_0x1fa2f0['subType']||!_0x1fa2f0['subType']['startsWith']('tablePaste'))return;const _0x5e10e8=_0x1fa2f0['attributes']['tablePasteChainId'],_0x287aec=_0x24a07f['getSuggestions']()['filter'](_0xa3ba38=>_0xa3ba38['isInContent']&&_0xa3ba38['attributes']&&_0xa3ba38['attributes']['tablePasteChainId']==_0x5e10e8);_0x287aec['length']&&_0x1fa2f0['getAllAdjacentSuggestions']()['length']!=_0x287aec['length']&&_0x287aec['reduce']((_0x1705d6,_0x3aa1f2)=>(_0x1705d6['next']=_0x3aa1f2,_0x3aa1f2['previous']=_0x1705d6,_0x3aa1f2));};function _0x4f422d(_0x2a6efa,_0x2fa4a0=!0x0){const {id:_0x2fd308}=_0x24a07f['_splitMarkerName'](_0x2a6efa['markerName']),_0x79e5c4=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x16045e=_0x24a07f['activeMarkers']['includes'](_0x2a6efa['markerName']);return _0x16045e&&_0x79e5c4['push']('ck-suggestion-marker--active'),{'classes':_0x79e5c4,'attributes':{'data-suggestion':_0x2fd308},'priority':_0x16045e&&_0x2fa4a0?0xbc2:0xbb8};}_0x24a07f['on']('suggestionLoaded',_0x37854b,{'priority':'high'}),_0x24a07f['on']('suggestionUnloaded',_0x37854b,{'priority':'high'}),_0x2c2cb8['model']['document']['registerPostFixer'](()=>{let _0x30ae18=!0x1;const _0x245d75=Array['from'](_0x2c2cb8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x54ccad,data:_0xa069a2}of _0x245d75){const {group:_0x24ae93,type:_0x3e223f,id:_0x5e74e0}=_0x24a07f['_splitMarkerName'](_0x54ccad);if('suggestion'!=_0x24ae93||'deletion'!=_0x3e223f||_0xa069a2['oldRange'])continue;if(!_0x24a07f['hasSuggestion'](_0x5e74e0))continue;const _0x5964af=_0x24a07f['getSuggestion'](_0x5e74e0)['getRanges'](),_0x42008d=_0x2c2cb8['plugins']['get']('Users')['me'];for(const _0x41a7a5 of _0x24a07f['getSuggestions']()){if(!_0x41a7a5['isInContent']||_0x41a7a5['author']!=_0x42008d)continue;if('formatBlock'!=_0x41a7a5['type']||'tablePasteCell'!=_0x41a7a5['subType'])continue;if(_0x41a7a5['getRanges']()['every'](_0x115f86=>_0x5964af['some'](_0x27b1b4=>_0x27b1b4['containsRange'](_0x115f86,!0x0)))){for(const _0x191587 of _0x41a7a5['getAllAdjacentSuggestions']())_0x191587['isInContent']&&(_0x191587['discard'](),_0x30ae18=!0x0);}}}return _0x30ae18;}),_0x2c2cb8['model']['document']['registerPostFixer'](_0x4ff48d=>{const _0x4290b5=_0x2c2cb8['commands']['get']('redo');if(!_0x4290b5||!_0x4290b5['_createdBatches']['has'](_0x4ff48d['batch']))return!0x1;let _0xce6ea4=!0x1;const _0x99108a=_0x2c2cb8['plugins']['get']('Users')['me'],_0x279cec=_0x2c2cb8['model']['document']['differ']['getChanges'](),_0x364034=Array['from'](_0x2c2cb8['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2cf84c,data:_0x20031a})=>{const {group:_0x2a94c1,subType:_0x21e11e,authorId:_0x11217e}=_0x24a07f['_splitMarkerName'](_0x2cf84c);return'suggestion'==_0x2a94c1&&'tablePaste'==_0x21e11e&&_0x11217e==_0x99108a['id']&&!_0x20031a['oldRange'];});for(const _0x328d6b of _0x279cec){if('insert'!=_0x328d6b['type']||'tableCellSuggestion'!=_0x328d6b['name']||0x1!=_0x328d6b['length'])continue;const _0x7db09c=_0x4ff48d['createRange'](_0x328d6b['position'],_0x328d6b['position']['getShiftedBy'](0x1));if(!_0x364034['find'](({data:_0xfcafaa})=>_0xfcafaa['newRange']['isEqual'](_0x7db09c))){for(const {name:_0x4033e4,data:_0x372528}of _0x364034)if(_0x7db09c['containsRange'](_0x372528['newRange'])){_0x4ff48d['updateMarker'](_0x4033e4,{'range':_0x7db09c}),_0xce6ea4=!0x0;break;}}}return _0xce6ea4;}),_0x2c2cb8['model']['document']['registerPostFixer'](_0x262bf0=>{let _0x54175c=!0x1;const _0x222089=_0x2c2cb8['plugins']['get']('Users')['me'],_0x24322e=_0x24a07f['getSuggestions']()['filter'](_0xfc8fcc=>_0xfc8fcc['isInContent']&&_0xfc8fcc['author']==_0x222089),_0x5972c1=new Set(),_0xc0cd24=new Set();for(const _0x645dc of _0x24322e)if('tablePaste'==_0x645dc['subType'])for(const _0x1b92d0 of _0x645dc['getMarkers']()){const _0x9ab707=_0x1b92d0['getRange']()['getContainedElement']();if(_0x9ab707){if(_0x9ab707['is']('element','tableCellSuggestion')&&Pe(_0x9ab707)){_0x645dc['removeMarker'](_0x1b92d0['name']),_0x5972c1['add'](_0x9ab707),_0x54175c=!0x0;const _0x342f01=_0x9ab707['nextSibling'],_0xd1c0a4=_0x9ab707['previousSibling'],_0x2a0d81=_0x342f01&&_0x342f01['is']('element','tableCellSuggestion'),_0xc6f945=_0xd1c0a4&&_0xd1c0a4['is']('element','tableCellSuggestion');_0x2a0d81&&!_0x5972c1['has'](_0x342f01)&&_0xc0cd24['add'](_0x342f01),_0xc6f945&&!_0x5972c1['has'](_0xd1c0a4)&&_0xc0cd24['add'](_0xd1c0a4);}else _0x9ab707['is']('element','paragraph')&&_0x9ab707['isEmpty']&&(_0x645dc['removeMarker'](_0x1b92d0['name']),_0x54175c=!0x0);}}else{if('tablePasteCell'==_0x645dc['subType']){if(!_0x645dc['attributes']||!_0x645dc['attributes']['tablePasteChainId'])continue;const _0x2464fe=_0x645dc['attributes']['markerAttributes'];if(_0x2464fe&&Object['keys'](_0x2464fe)['length'])continue;const _0x5584b6=_0x645dc['attributes']['tablePasteChainId'];let _0xbe39e7=!0x0,_0x77ac56=!0x0;for(const _0x28900a of _0x24322e)if(_0x28900a['subType']&&_0x28900a['subType']['startsWith']('tablePaste')){if(!_0x28900a['attributes']['tablePasteChainId']){_0x77ac56=!0x1;break;}if(_0x28900a['id']!=_0x645dc['id']&&_0x28900a['attributes']['tablePasteChainId']==_0x5584b6){_0xbe39e7=!0x1;break;}}_0x77ac56&&_0xbe39e7&&(_0x645dc['removeMarkers'](),_0x54175c=!0x0);}}for(const _0x1a53f1 of _0x5972c1)_0x262bf0['remove'](_0x1a53f1);for(const _0x41d9e9 of _0xc0cd24)_0x262bf0['unwrap'](_0x41d9e9);return _0x54175c;}),_0x2c2cb8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3effc8,_0x2d1407)=>_0x4f422d(_0x3effc8),'converterPriority':'high'}),_0x2c2cb8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2c4cbb,_0x352682)=>_0x352682['options']['showSuggestionHighlights']?_0x4f422d(_0x2c4cbb,!0x1):null,'converterPriority':'high'});const _0x17f091=_0x2c2cb8['editing']['view'];this['listenTo'](_0x17f091['document'],'clipboardOutput',(_0x21da5e,_0x4fb20c)=>{const _0x2eed1b=[];for(const _0x929ec9 of _0x17f091['createRangeIn'](_0x4fb20c['content'])['getItems']())_0x929ec9['is']('element','suggestion-td')&&_0x2eed1b['push'](_0x929ec9);_0x17f091['change'](_0x34b3e8=>{for(const _0x11325a of _0x2eed1b)_0x34b3e8['move'](_0x34b3e8['createRangeIn'](_0x11325a),_0x34b3e8['createPositionBefore'](_0x11325a)),_0x34b3e8['remove'](_0x11325a);});});}}function Pe(_0x2e6598){if(_0x2e6598['isEmpty'])return!0x0;const _0x53754d=_0x2e6598['getChild'](0x0);return _0x53754d['is']('element','paragraph')&&_0x53754d['isEmpty'];}function he(_0x2e45b1,_0x402db6={},_0x56a539){for(const {isAnchor:_0x576408,cellHeight:_0x591913,cellWidth:_0x87c432}of _0x56a539['createTableWalker'](_0x2e45b1,{'includeAllSlots':!0x0,..._0x402db6}))if(!_0x576408||0x1!=_0x591913||0x1!=_0x87c432)return!0x1;return!0x0;}class vt extends _0x1dc395{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x135481=this['editor']['plugins']['get']('TrackChangesEditing');_0x135481['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x135481['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x135481['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x135481['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x135481['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x135481['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4e5cae,_0xa84eb4){const _0x3d3d06=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ef8a8=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x8cb0b7=_0xa84eb4['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2db949=_0x1ef8a8['getColumnGroupElement'](_0x8cb0b7);let _0x27d2b7=_0x2db949?_0x1ef8a8['getTableColumnsWidths'](_0x2db949):null,_0x33adf9=_0x8cb0b7['getAttribute']('tableWidth')||null;const _0x1f86b4=_0xa84eb4['tableWidth']||_0x33adf9,_0x76d307=_0xa84eb4['columnWidths']||_0x27d2b7,_0x30039b=this['editor']['plugins']['get']('Users')['me'];for(const _0x4ff4dd of _0x3d3d06['getSuggestions']()){const _0x322ad0=_0x4ff4dd['getContainedElement']();if('resizeTable'===_0x4ff4dd['subType']&&_0x322ad0===_0x8cb0b7){_0x4ff4dd['author']!==_0x30039b&&_0x4ff4dd['discard']();const _0x76172b=_0x4ff4dd['data']['commandParams'];_0x33adf9=_0x76172b[0x0]['tableWidth'],_0x27d2b7=_0x76172b[0x0]['columnWidths'];break;}}_0x4e5cae({'table':_0x8cb0b7,'tableWidth':_0x1f86b4,'columnWidths':_0x76d307}),_0x3d3d06['markBlockFormat'](_0x8cb0b7,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x33adf9,'columnWidths':_0x27d2b7}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4ae6b0){if('formatBlock'!=_0x4ae6b0['type']&&'formatInline'!=_0x4ae6b0['type'])return;const {data:_0x20bd57}=_0x4ae6b0;if(_0x20bd57&&'resizeTable'===_0x20bd57['formatGroupId']){const _0x8eda95='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x8eda95)};}}}class Ct extends _0x1dc395{['afterInit'](){const _0x4de5e6=this['editor'];_0x4de5e6['plugins']['has']('Template')&&_0x4de5e6['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x1dc395{['afterInit'](){const _0x19f4bf=this['editor'];if(!_0x19f4bf['commands']['get']('insertTableOfContents'))return;_0x19f4bf['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4ddb6d=_0x19f4bf['plugins']['get']('TrackChangesEditing'),_0x1d1a3e=_0x19f4bf['locale'];_0x4ddb6d['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3661fc=>o(_0x1d1a3e,'ELEMENT_TABLE_OF_CONTENTS',_0x3661fc));}}class Dt extends _0x1dc395{['afterInit'](){const _0x58467d=this['editor'];if(!_0x58467d['plugins']['has']('Title'))return;const _0x1d5946=_0x58467d['plugins']['get']('TrackChangesEditing');_0x1d5946['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x58467d['locale'],'ELEMENT_TITLE')),_0x58467d['model']['document']['registerPostFixer'](_0x1a331b=>{let _0x360a6e=!0x1;const _0x2f4157=Array['from'](_0x58467d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1c11df,data:_0x42eee6}of _0x2f4157){const {group:_0x347aee}=_0x1d5946['_splitMarkerName'](_0x1c11df);if('suggestion'!==_0x347aee||!_0x42eee6['newRange'])continue;const _0xde7f26=_0x42eee6['newRange'],_0x529839=_0xde7f26['end']['nodeBefore'];if(!_0x529839||!_0x529839['is']('element','title-content'))continue;if(!_0xde7f26['start']['isTouching'](_0xde7f26['end']))continue;const _0x445be4=_0x58467d['model']['schema']['getNearestSelectionRange'](_0xde7f26['end'],'forward');if(_0x445be4&&_0x445be4['isCollapsed']){const _0x3d5722=_0x1a331b['createRange'](_0xde7f26['start'],_0x445be4['start']);_0x3d5722['isEqual'](_0xde7f26)||(_0x1a331b['updateMarker'](_0x1c11df,{'range':_0x3d5722}),_0x360a6e=!0x0);}_0x360a6e||(_0x1a331b['removeMarker'](_0x1c11df),_0x360a6e=!0x0);}return _0x360a6e;});}}class Nt extends _0x1dc395{['afterInit'](){const _0x337845=this['editor'],_0x35b3f8=_0x337845['plugins']['get']('TrackChangesEditing');_0x337845['plugins']['has']('UndoEditing')&&(_0x35b3f8['enableCommand']('undo'),_0x35b3f8['enableCommand']('redo'));}}class Mt extends _0x1dc395{static get['requires'](){return[jt];}['afterInit'](){const _0x517a0a=this['editor'];if(!_0x517a0a['plugins']['has']('TableCaptionEditing'))return;_0x517a0a['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x1dc395{['tableProperties'];['tableCellProperties'];constructor(_0x250ea6){super(_0x250ea6),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x59a0e7=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x44126d of this['tableProperties'])_0x59a0e7['enableCommand'](_0x44126d,(_0x30eab,_0x1fbfaf)=>{const _0x399578=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x44126d,[_0x399578],this['tableProperties'],'tableProperties',_0x30eab,_0x1fbfaf);});_0x59a0e7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x59a0e7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x59a0e7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x500bdf,_0x2def7a)=>this['handleDiscardAction'](this['tableProperties'],_0x500bdf,_0x2def7a)),_0x59a0e7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x169ffe of this['tableCellProperties'])_0x59a0e7['enableCommand'](_0x169ffe,(_0x2fb8e4,_0x15cd00)=>{const _0x41ad77=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x169ffe,_0x41ad77,this['tableCellProperties'],'tableCellProperties',_0x2fb8e4,_0x15cd00);});_0x59a0e7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x59a0e7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x59a0e7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x231c28,_0x4f04a0)=>this['handleDiscardAction'](this['tableCellProperties'],_0x231c28,_0x4f04a0)),_0x59a0e7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x59a0e7['descriptionFactory']['registerDescriptionCallback'](_0x96e7e5=>this['handleSuggestionDescription'](_0x96e7e5));}['_handlePropertyChange'](_0x119a60,_0x4fd923,_0x14f677,_0x2e23d8,_0x5a9d75,_0x320af9){const _0x25730b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x320af9['batch'],()=>{for(const _0x176570 of _0x4fd923){if(this['_getSuggestion'](_0x176570,_0x2e23d8))_0x5a9d75(_0x320af9);else{const _0x4c9e7a={};for(const _0x4631b0 of _0x14f677){const _0xb03e9e=_0x176570['getAttribute'](_0x4631b0);void 0x0!==_0xb03e9e&&(_0x4c9e7a[_0x4631b0]=_0xb03e9e);}_0x5a9d75(_0x320af9),_0x25730b['markBlockFormat'](_0x176570,{'commandParams':[_0x4c9e7a]},[],_0x2e23d8);}}});}['handleDiscardAction'](_0x592b15,_0x32f9df,_0x36d064){const _0x12e246=_0x32f9df[0x0]['start']['nodeAfter'],_0xb20ca6=_0x36d064['commandParams'][0x0];this['editor']['model']['change'](_0x43ff92=>{for(const _0x2b86da of _0x592b15)void 0x0!==_0xb20ca6[_0x2b86da]?_0x43ff92['setAttribute'](_0x2b86da,_0xb20ca6[_0x2b86da],_0x12e246):_0x43ff92['removeAttribute'](_0x2b86da,_0x12e246);});}['handleSuggestionDescription'](_0x29c252){if(_0x29c252['data'])switch(_0x29c252['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'](_0xce7d14,_0x1b2b10){const _0x7518a1=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x50f3a1 of _0x7518a1['getSuggestions']({'skipNotAttached':!0x0})){const _0x592ee4=_0x50f3a1['getContainedElement']();if(_0x50f3a1['subType']===_0x1b2b10&&_0x592ee4===_0xce7d14)return _0x50f3a1;}return null;}}const m='$elementName';class p extends _0x1dc395{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4c39fc,_0x4d8020,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x59cedb){function _0x2e6adc(_0x36b13d){return _0x36b13d['map'](_0x410a29=>String['fromCharCode'](_0x410a29))['join']('');}super(_0x59cedb),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x56c57c,_0x19eb21,_0x4bae64,_0x5c169c)=>{this['_model']['change'](()=>{for(const _0x233242 of[..._0x5c169c,..._0x4bae64])this['_model']['markers']['has'](_0x233242)&&_0x59cedb['editing']['reconvertMarker'](_0x233242);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x59cedb['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x59cedb['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x59cedb['config']['get']('trackChanges.trackFormatChanges'),_0x59cedb['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x59cedb['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x59cedb,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x2e6adc([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x2e6adc([0x34,0x30,0x34,0x38,0x31,0x34,0x31,0x34]);}['init'](){const _0x48f1b7=this['editor'],_0xe8864d=(_0x25d2bc,_0x58e5fc)=>{if('attribute'!=_0x25d2bc)return'ck-suggestion-marker-'+_0x25d2bc;const _0x321bbe=_0x58e5fc['split']('|')[0x0];return this['_isBlockAttribute'](_0x321bbe)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x48f1b7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xd3baaf=>{const {id:_0x349cb9,type:_0xdc05a3,subType:_0x498fff}=this['_splitMarkerName'](_0xd3baaf['markerName']),_0x126cfd=['ck-suggestion-marker',_0xe8864d(_0xdc05a3,_0x498fff)];let _0x4b2624=0xbb8;return this['activeMarkers']['includes'](_0xd3baaf['markerName'])&&(_0x126cfd['push']('ck-suggestion-marker--active'),_0x4b2624=0xbc2),'deletion'==_0xdc05a3&&(_0x4b2624+=0x5),{'classes':_0x126cfd,'attributes':{'data-suggestion':_0x349cb9},'priority':_0x4b2624};}}),_0x48f1b7['conversion']['for']('dataDowncast')['add'](_0x48295b=>{_0x48295b['on']('addMarker:suggestion',(_0x366bab,_0x28224f,_0x55d75c)=>{if(!_0x55d75c['options']['showSuggestionHighlights'])return;const _0x2565c8=_0x28224f['item'];if(!_0x2565c8)return;const _0x25b4e6=_0x55d75c['mapper']['toViewElement'](_0x2565c8);_0x48f1b7['model']['schema']['isObject'](_0x2565c8)&&_0x25b4e6&&!_0x25b4e6['getCustomProperty']('widget')&&_0x25b4e6['is']('containerElement')&&_0x20341e(_0x25b4e6,_0x55d75c['writer']);},{'priority':'high'});}),_0x48f1b7['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x65db28,_0x4b81e7)=>{if(!_0x4b81e7['options']['showSuggestionHighlights'])return null;const {type:_0x4ccc0a,subType:_0x822ce3}=this['_splitMarkerName'](_0x65db28['markerName']);return{'classes':['ck-suggestion-marker',_0xe8864d(_0x4ccc0a,_0x822ce3)],'priority':0xbb8};}});const _0xae1a3c=({showActiveMarkers:_0x4bde86=!0x0,isAttributeSuggestion:_0x55b071=!0x1}={})=>(_0x64be0c,_0x516bd3,_0x5744a7)=>{if(!_0x516bd3['item'])return;const {id:_0x4feb77}=this['_splitMarkerName'](_0x516bd3['markerName']);if(_0x55b071){const _0x43d8a2=this['_suggestions']['get'](_0x4feb77),_0xe9790a=this['_getAttributeKey'](_0x43d8a2);if(!this['_isBlockAttribute'](_0xe9790a))return;}if(_0x516bd3['item']['is']('selection'))return void _0x5744a7['consumable']['consume'](_0x516bd3['item'],_0x64be0c['name']);const _0x4235e6=_0x5744a7['mapper']['toViewElement'](_0x516bd3['item']);if(_0x516bd3['item']['is']('element')&&_0x48f1b7['model']['schema']['isBlock'](_0x516bd3['item'])&&!_0x4235e6['getCustomProperty']('addHighlight')){_0x5744a7['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4235e6),_0x5744a7['writer']['setAttribute']('data-suggestion',_0x4feb77,_0x4235e6),_0x5744a7['mapper']['bindElementToMarker'](_0x4235e6,_0x516bd3['markerName']),_0x4bde86&&(this['activeMarkers']['includes'](_0x516bd3['markerName'])?_0x5744a7['writer']['addClass']('ck-suggestion-marker--active',_0x4235e6):_0x5744a7['writer']['removeClass']('ck-suggestion-marker--active',_0x4235e6));for(const _0x25630e of _0x48f1b7['model']['createRangeIn'](_0x516bd3['item'])['getItems']())_0x5744a7['consumable']['consume'](_0x25630e,_0x64be0c['name']);_0x5744a7['consumable']['consume'](_0x516bd3['item'],_0x64be0c['name']);}};_0x48f1b7['conversion']['for']('dataDowncast')['add'](_0x182c64=>{_0x182c64['on']('addMarker:suggestion:formatBlock',(_0x3da0ef,_0x1cfb7c,_0x385140)=>{_0x385140['options']['showSuggestionHighlights']&&_0xae1a3c({'showActiveMarkers':!0x1})(_0x3da0ef,_0x1cfb7c,_0x385140);},{'priority':'highest'});}),_0x48f1b7['conversion']['for']('dataDowncast')['add'](_0x41a22c=>{_0x41a22c['on']('addMarker:suggestion:attribute',(_0x5a16e8,_0x34de91,_0x5e37dc)=>{_0x5e37dc['options']['showSuggestionHighlights']&&_0xae1a3c({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5a16e8,_0x34de91,_0x5e37dc);},{'priority':'highest'});}),_0x48f1b7['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xdbeeee,_0x289156)=>_0x289156['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xdbeeee['substr'](0xb)}}),_0x48f1b7['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1062fa,{writer:_0xf5d55d})=>{let _0x14770a='suggestion:'+_0x1062fa['getAttribute']('suggestion-type')+':'+_0x1062fa['getAttribute']('id');return _0x1062fa['getAttribute']('marker-count')&&(_0x14770a+=':'+_0x1062fa['getAttribute']('marker-count')),_0xf5d55d['createElement']('$marker',{'data-name':_0x14770a});}}),_0x48f1b7['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x48f1b7['conversion']['for']('editingDowncast')['add'](_0xce122f=>{_0xce122f['on']('addMarker:suggestion:formatBlock',_0xae1a3c(),{'priority':'high'});}),_0x48f1b7['conversion']['for']('editingDowncast')['add'](_0x11efbc=>{_0x11efbc['on']('addMarker:suggestion:attribute',_0xae1a3c({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x48f1b7['conversion']['for']('editingDowncast')['add'](_0x53b6df=>{_0x53b6df['on']('removeMarker:suggestion:formatBlock',(_0x13ec5b,_0x3d878d,_0x522af0)=>{const _0x1d149e=_0x522af0['mapper']['markerNameToElements'](_0x3d878d['markerName']);if(_0x1d149e){for(const _0x4fbc8a of _0x1d149e)_0x4fbc8a['getCustomProperty']('addHighlight')||(_0x522af0['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4fbc8a),_0x522af0['writer']['removeAttribute']('data-suggestion',_0x4fbc8a),_0x522af0['mapper']['unbindElementFromMarkerName'](_0x4fbc8a,_0x3d878d['markerName']));}},{'priority':'high'});}),_0x48f1b7['conversion']['for']('editingDowncast')['add'](_0x268381=>{_0x268381['on']('removeMarker:suggestion:attribute',(_0x1f3b91,_0x5de80a,_0x9b9cce)=>{const _0x1e8534=_0x9b9cce['mapper']['markerNameToElements'](_0x5de80a['markerName']);if(!_0x1e8534)return;const {id:_0x51b61c}=this['_splitMarkerName'](_0x5de80a['markerName']),_0x30e0b9=this['_suggestions']['get'](_0x51b61c),_0x10cf55=this['_getAttributeKey'](_0x30e0b9);if(this['_isBlockAttribute'](_0x10cf55)){for(const _0x3506fb of _0x1e8534)_0x3506fb['getCustomProperty']('addHighlight')||(_0x9b9cce['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3506fb),_0x9b9cce['writer']['removeAttribute']('data-suggestion',_0x3506fb),_0x9b9cce['mapper']['unbindElementFromMarkerName'](_0x3506fb,_0x5de80a['markerName']));}},{'priority':'high'});}),_0x48f1b7['model']['document']['registerPostFixer'](_0x18fc04=>{let _0x12103e=!0x1;const _0x57a754=Array['from'](_0x48f1b7['model']['document']['differ']['getChangedMarkers']()),_0x492f11=new Set();for(const {name:_0x409f33,data:_0x268ee9}of _0x57a754){const {group:_0x310ec2,type:_0x3eaf3f,subType:_0x6e7a89,id:_0x10d73b}=this['_splitMarkerName'](_0x409f33);if('suggestion'!==_0x310ec2)continue;const _0x1b4a73=this['_suggestions']['get'](_0x10d73b);if(null!=_0x268ee9['newRange']){'formatInline'==_0x3eaf3f&&(_0x12103e=_0x12103e||Et(_0x268ee9['newRange'],_0x409f33,_0x18fc04,_0x48f1b7['model']['schema']));const _0xa7ee62='attribute'==_0x3eaf3f&&this['_isBlockAttribute'](_0x6e7a89['split']('|')[0x0]);if(_0x268ee9['newRange']['isCollapsed']||'$graveyard'==_0x268ee9['newRange']['root']['rootName']||'formatBlock'==_0x3eaf3f&&!Ut(_0x268ee9['newRange'])||_0xa7ee62&&!Ut(_0x268ee9['newRange'])||'deletion'==_0x3eaf3f&&!(!Tt(_0x3ca4de=_0x268ee9['newRange'])&&!function(_0x303faf){return _0x303faf['start']['parent']==_0x303faf['end']['nodeBefore']&&_0x303faf['start']['isAtEnd'];}(_0x3ca4de)))_0x18fc04['removeMarker'](_0x409f33),_0x12103e=!0x0;else{if(!_0x1b4a73||!_0x1b4a73['isInContent'])continue;_0x492f11['add'](_0x1b4a73);}}}var _0x3ca4de;return _0x492f11['size']>0x0&&(_0x12103e=!!this['_joinWithAdjacentSuggestions'](_0x492f11)||_0x12103e),_0x12103e;}),_0x48f1b7['model']['document']['registerPostFixer'](_0x2f3384=>{let _0x49c404=!0x1;for(const _0x7dc7fb of _0x48f1b7['model']['document']['differ']['getChanges']())if('insert'==_0x7dc7fb['type'])for(const _0x5f2d22 of this['_suggestions']['values']()){if(_0x5f2d22['isMultiRange']||!_0x5f2d22['isInContent'])continue;const _0x5c06a6='formatBlock'==_0x5f2d22['type'],_0x2d9cd6=this['_getAttributeKey'](_0x5f2d22),_0x138d77=_0x2d9cd6&&this['_isBlockAttribute'](_0x2d9cd6);if(!_0x5c06a6&&!_0x138d77)continue;const _0x32c61b=_0x5f2d22['getFirstRange']();if(_0x32c61b['start']['parent']!=_0x32c61b['end']['parent']&&!_0x32c61b['end']['isAtEnd']){const _0x27d141=_0x48f1b7['model']['createPositionAt'](_0x32c61b['start']['nodeAfter'],'end'),_0x1993c4=_0x48f1b7['model']['createRange'](_0x32c61b['start'],_0x27d141);_0x2f3384['updateMarker'](_0x5f2d22['getFirstMarker'](),{'range':_0x1993c4}),_0x49c404=!0x0;}}return _0x49c404;}),_0x48f1b7['model']['document']['registerPostFixer'](_0x1496ea=>this['_processAttributeChanges'](_0x1496ea)),_0x48f1b7['model']['document']['registerPostFixer'](_0x12095b=>!_0x12095b['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x12095b)),_0x48f1b7['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x48f1b7['model']['document']['on']('change:data',(_0x15722c,_0x57bb62)=>{if(!_0x57bb62['isLocal']||_0x57bb62['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4b9c13=_0x48f1b7['model']['document']['differ']['getChanges']();if(0x0==_0x4b9c13['length'])return;const _0x5731ec=[],_0x242b66=_0x4b9c13['filter'](_0x1ad0d5=>'attribute'==_0x1ad0d5['type']),_0x3c2e18=_0x4b9c13['filter'](_0xdd8b82=>'insert'==_0xdd8b82['type']&&'$text'!=_0xdd8b82['name']);for(const _0x1f37db of _0x242b66)this['_isRegisteredAttribute'](_0x1f37db['attributeKey'])&&_0x5731ec['push']({'key':_0x1f37db['attributeKey'],'newValue':_0x1f37db['attributeNewValue'],'oldValue':_0x1f37db['attributeOldValue'],'range':Ot(_0x1f37db['range'],_0x48f1b7['model'])});for(const _0x3cb5e2 of _0x3c2e18){if('rename'!=_0x3cb5e2['action']&&'refresh'!=_0x3cb5e2['action'])continue;const _0x11fbd8=Gt(_0x3cb5e2['position']['nodeAfter'],_0x48f1b7['model']),_0x5266e6=_0x3cb5e2['before'];'rename'==_0x3cb5e2['action']&&_0x5731ec['push']({'key':m,'newValue':_0x3cb5e2['name'],'oldValue':_0x5266e6['name'],'range':_0x11fbd8});for(const [_0x259239,_0x4e0fc0]of _0x5266e6['attributes']){if(!this['_isRegisteredAttribute'](_0x259239))continue;const _0x517786=_0x3cb5e2['attributes']['get'](_0x259239);_0x4e0fc0!==_0x517786&&_0x5731ec['push']({'key':_0x259239,'newValue':_0x517786,'oldValue':_0x4e0fc0,'range':_0x11fbd8});}for(const [_0x4f7a33,_0x450680]of _0x3cb5e2['attributes'])this['_isRegisteredAttribute'](_0x4f7a33)&&(_0x5266e6['attributes']['has'](_0x4f7a33)||_0x5731ec['push']({'key':_0x4f7a33,'newValue':_0x450680,'oldValue':null,'range':_0x11fbd8}));}0x0!=_0x5731ec['length']&&_0x48f1b7['model']['enqueueChange'](_0x57bb62,_0x2c5cbd=>{const _0xd0e5ed=_0x497177();for(const {range:_0x3fee81,key:_0x1353d1,oldValue:_0x3d810c,newValue:_0x20bd9a}of _0x5731ec)this['markAttributeChange'](_0x3fee81,_0x1353d1,_0x3d810c,_0x20bd9a,{'groupId':_0xd0e5ed});this['_reduceExistingSuggestions'](_0x2c5cbd,_0x5731ec);});},{'priority':'lowest'}),_0x48f1b7['model']['markers']['on']('update:suggestion',(_0x31c0b3,_0x28878f,_0x280580)=>{if(null==_0x280580){const {id:_0x269fe3}=this['_splitMarkerName'](_0x28878f['name']),_0x278a18=this['_suggestions']['get'](_0x269fe3);_0x278a18&&_0x278a18['addMarkerName'](_0x28878f['name']);}}),_0x48f1b7['model']['document']['on']('change:data',()=>{const _0x4a70ec=Array['from'](_0x48f1b7['model']['document']['differ']['getChangedMarkers']())['filter'](_0x508fc9=>'suggestion'===this['_splitMarkerName'](_0x508fc9['name'])['group']);if(0x0===_0x4a70ec['length'])return;_0x4a70ec['sort']((_0x3af4d9,_0x5bb262)=>{const _0x57d54f=_0x3af4d9['data']['oldRange'],_0x3c13be=_0x5bb262['data']['oldRange'];return null===_0x57d54f&&null===_0x3c13be?0x0:null===_0x57d54f&&null!==_0x3c13be?-0x1:null!==_0x57d54f&&null===_0x3c13be?0x1:_0x57d54f['start']['isBefore'](_0x3c13be['start'])?-0x1:0x1;});const _0x418827=new Set(),_0x12ecac=new Set();for(const {name:_0x13511e,data:_0x1b07bf}of _0x4a70ec){const {id:_0x4d2372}=this['_splitMarkerName'](_0x13511e);if(null===_0x1b07bf['oldRange']){const _0x55e9b7=this['_handleNewSuggestionMarker'](_0x13511e);_0x12ecac['add'](_0x55e9b7);}else{const _0x49c69d=this['_suggestions']['get'](_0x4d2372);null!==_0x1b07bf['newRange']||_0x49c69d['isInContent']?(_0x418827['add'](_0x49c69d['head']),_0x12ecac['add'](_0x49c69d)):this['_removeSuggestion'](_0x49c69d);}}_0x12ecac['size']>0x0&&this['_refreshSuggestionsChain'](_0x12ecac);for(const _0x1c0756 of _0x418827)this['fire']('suggestionChanged',_0x1c0756);}),_0x48f1b7['model']['on']('applyOperation',(_0x125cb4,_0x2dd9cb)=>{const _0x56c448=_0x2dd9cb[0x0];if(!this['_suggestions']['size'])return;if(!_0x56c448['isDocumentOperation'])return;if(_0x56c448['batch']['isUndo']||!_0x56c448['batch']['isLocal'])return;let _0x1062cf,_0x349f1e;switch(_0x56c448['type']){case'insert':_0x1062cf=_0x48f1b7['model']['createPositionAt'](_0x56c448['position']),_0x349f1e=_0x1062cf['getShiftedBy'](_0x56c448['howMany']);break;case'split':_0x1062cf=_0x48f1b7['model']['createPositionAt'](_0x56c448['splitPosition']),_0x349f1e=_0x48f1b7['model']['createPositionAt'](_0x56c448['moveTargetPosition']);break;case'move':_0x1062cf=_0x48f1b7['model']['createPositionAt'](_0x56c448['targetPosition']),_0x349f1e=_0x1062cf['getShiftedBy'](_0x56c448['howMany']);break;default:return;}const _0x5ad0f7=_0x48f1b7['model']['createRange'](_0x1062cf,_0x349f1e);_0x48f1b7['model']['change'](()=>{for(const {suggestion:_0x518fd6,meta:_0x46e9bc}of this['_findSuggestions'](_0x5ad0f7)){if(_0x518fd6['isMultiRange'])continue;if('formatInline'==_0x518fd6['type'])continue;const _0x497825=this['_getAttributeKey'](_0x518fd6);if(_0x497825&&this['_isBlockAttribute'](_0x497825)&&'split'!=_0x56c448['type'])continue;const _0x5b000a=_0x518fd6['data']&&_0x518fd6['data']['multipleBlocks'];('formatBlock'!=_0x518fd6['type']||'split'==_0x56c448['type']&&!_0x5b000a)&&(_0x46e9bc['containsRangeInObject']||'insertion'==_0x518fd6['type']&&_0x46e9bc['isOwn']||_0x518fd6['getFirstRange']()['containsRange'](_0x5ad0f7)&&this['_breakSuggestionMarker'](_0x518fd6,_0x1062cf,_0x349f1e));}});},{'priority':'lowest'}),_0x48f1b7['model']['on']('deleteContent',(_0x408003,_0x198001)=>{const _0x1c85ad=_0x198001[0x0],_0x871f7a=_0x198001[0x1];if(_0x871f7a&&_0x871f7a['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1c85ad['isCollapsed'])return;const _0x2568e1=_0x48f1b7['model']['schema'],{start:_0x265ddd,end:_0x2012e2}=_0x1c85ad['getFirstRange'](),_0x403abe=_0x265ddd['nodeAfter']&&_0x2568e1['isLimit'](_0x265ddd['nodeAfter'])?null:_0x2568e1['getNearestSelectionRange'](_0x265ddd,'forward'),_0xc30d74=_0x2012e2['nodeBefore']&&_0x2568e1['isLimit'](_0x2012e2['nodeBefore'])?null:_0x2568e1['getNearestSelectionRange'](_0x2012e2,'backward'),_0x211cf0=_0x48f1b7['model']['createRange'](_0x403abe?_0x403abe['start']:_0x265ddd,_0xc30d74?_0xc30d74['end']:_0x2012e2);_0x48f1b7['model']['change'](_0x3d3fff=>{this['markDeletion'](_0x211cf0);const _0x5b0419=_0x48f1b7['model']['schema']['getNearestSelectionRange'](_0x211cf0['start']);_0x1c85ad['is']('documentSelection')?_0x3d3fff['setSelection'](_0x5b0419):_0x1c85ad['setTo'](_0x5b0419);}),_0x408003['stop']();},{'priority':_0x244548['normal']+0xa}),_0x48f1b7['model']['on']('insertContent',(_0x142bf0,_0x23fb1a)=>{const _0x201706=_0x23fb1a[_0x23fb1a['length']-0x1];_0x201706&&_0x201706['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x48f1b7['model']['change'](()=>{let _0x137f48=_0x48f1b7['model']['insertContent'](_0x23fb1a[0x0],_0x23fb1a[0x1],_0x23fb1a[0x2],{'forceDefaultExecution':!0x0});if(!_0x137f48)return;_0x142bf0['return']=_0x137f48['clone']();const _0xdad938=_0x137f48['end']['nodeBefore'],_0x3d1400=_0x48f1b7['model']['schema'];_0xdad938&&_0x3d1400['isBlock'](_0xdad938)&&!_0x3d1400['isObject'](_0xdad938)&&(_0x137f48=_0x48f1b7['model']['createRange'](_0x137f48['start'],_0x48f1b7['model']['createPositionAt'](_0xdad938,'end'))),this['markInsertion'](_0x137f48);}),_0x142bf0['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3ccdc7=new $(_0x48f1b7,this['_suggestions']);_0x48f1b7['commands']['add']('acceptSuggestion',_0x3ccdc7),this['enableCommand']('acceptSuggestion');const _0x273d08=new B(_0x48f1b7,this['_suggestions']);_0x48f1b7['commands']['add']('discardSuggestion',_0x273d08),this['enableCommand']('discardSuggestion'),_0x48f1b7['commands']['add']('acceptAllSuggestions',new x(_0x48f1b7,_0x3ccdc7,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x48f1b7['commands']['add']('discardAllSuggestions',new x(_0x48f1b7,_0x273d08,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x48f1b7['commands']['add']('acceptSelectedSuggestions',new R(_0x48f1b7,_0x3ccdc7,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x48f1b7['commands']['add']('discardSelectedSuggestions',new R(_0x48f1b7,_0x273d08,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x388e92=_0x48f1b7['plugins']['get']('CommentsRepository');this['listenTo'](_0x388e92,'addComment',(_0x40c865,{threadId:_0x679b76})=>{const _0x492d54=this['_suggestions']['get'](_0x679b76);_0x492d54&&_0x492d54['commentThread']&&0x1===_0x492d54['commentThread']['length']&&this['_updateSuggestionData'](_0x679b76,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x388e92,'removeComment',(_0x5d9d28,{threadId:_0x4b4e4})=>{const _0x4c2c95=this['_suggestions']['get'](_0x4b4e4);_0x4c2c95&&_0x4c2c95['commentThread']&&!_0x4c2c95['commentThread']['length']&&this['_updateSuggestionData'](_0x4b4e4,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x48f055){if(this['_adapter'])throw new _0x197e78('track-changes-adapter-already-set',this);this['_adapter']=_0x48f055;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2d3326=!0x1,toJSON:_0x193c25=!0x1}={}){const _0x135529=[];for(const _0xe69911 of this['_suggestions']['values']())_0x2d3326&&!_0xe69911['isInContent']||_0x135529['push'](_0xe69911);return _0x193c25?_0x135529['map'](_0x3c74c1=>_0x3c74c1['toJSON']()):_0x135529;}['getSuggestion'](_0x4529fc){const _0x491b0e=this['_suggestions']['get'](_0x4529fc);if(!_0x491b0e)throw new _0x197e78('track-changes-suggestion-not-found',this);return _0x491b0e;}['hasSuggestion'](_0xd42233){return this['_suggestions']['has'](_0xd42233);}['addSuggestionData'](_0x547c5d){const {authorId:_0x13b5ed,id:_0x1e5a76,attributes:_0x551929}=_0x547c5d,[_0x2a7f0a,_0x146362]=_0x547c5d['type']['split'](':'),_0x3ff055=this['_suggestions']['get'](_0x1e5a76)||this['_createSuggestion'](_0x2a7f0a,_0x146362,_0x1e5a76,_0x13b5ed,_0x551929);if(this['_addThreadToSuggestion'](_0x3ff055),this['_checkSuggestionCorrectness'](_0x3ff055,_0x2a7f0a,_0x146362||null,_0x13b5ed),_0x3ff055['createdAt']=_0x547c5d['createdAt'],_0x3ff055['_isDataLoaded']=!0x0,_0x551929&&_0x551929['@external']){const _0x5f2483=_0x551929['@external'],_0x40285f=this['_getExternalAuthor'](_0x5f2483['authorName']);_0x3ff055['authoredAt']=_0x5f2483['createdAt'],_0x3ff055['author']=_0x40285f,_0x3ff055['isExternal']=!0x0;}else _0x3ff055['authoredAt']=_0x547c5d['createdAt'];switch(_0x547c5d['data']&&(_0x3ff055['data']=_0x547c5d['data']),_0x547c5d['attributes']&&(_0x3ff055['attributes']=_0x547c5d['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3ff055['_saved']=!0x0),this['_suggestionState']['get'](_0x3ff055)){case'notReady':this['_suggestionState']['set'](_0x3ff055,'dataReady');break;case'markerReady':_0x3ff055['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3ff055])),this['_refreshSuggestionsChain'](new Set([_0x3ff055])),this['_suggestionState']['set'](_0x3ff055,'ready'),this['fire']('suggestionLoaded',_0x3ff055)):this['_suggestionState']['set'](_0x3ff055,'removed');}return _0x3ff055;}['acceptSuggestion'](_0xf60993){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3d5da1 of _0xf60993['getAllAdjacentSuggestions']())_0x3d5da1['accept']();});});}['discardSuggestion'](_0xf3ab2e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x31a8e3 of _0xf3ab2e['getAllAdjacentSuggestions']())_0x31a8e3['discard']();});});}['enableCommand'](_0x5bb543,_0x588dcc){const _0x199782=this['editor']['commands']['get'](_0x5bb543);if(!_0x199782)throw new _0x197e78('track-changes-command-not-found',this,{'commandName':_0x5bb543});if(this['_enabledCommands']['has'](_0x199782))throw new _0x197e78('track-changes-enable-command-twice',this,{'commandName':_0x5bb543});this['_enabledCommands']['add'](_0x199782),_0x588dcc&&_0x199782['on']('execute',(_0x2e2148,_0x51d5c9)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x51d5c9['length']>0x0&&_0x51d5c9[_0x51d5c9['length']-0x1]&&_0x51d5c9[_0x51d5c9['length']-0x1]['forceDefaultExecution']?_0x51d5c9['pop']():(_0x2e2148['return']=_0x588dcc((..._0x28c190)=>_0x199782['execute'](..._0x28c190,{'forceDefaultExecution':!0x0}),..._0x51d5c9),_0x2e2148['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x13d4e3){let _0x4e346d,_0x4f578f;const _0x2f0dca=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4e346d=_0x13d4e3();}catch(_0x5f0c5d){_0x4f578f=_0x5f0c5d;}return _0x2f0dca||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4f578f&&_0x197e78['rethrowUnexpectedError'](_0x4f578f,this),_0x4e346d;}['markInsertion'](_0x1815d6,_0x2ee97c=null,_0x5e4eb8={}){if(_0x1815d6['isCollapsed'])return null;const _0x59c7e1=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3c21c2,meta:_0x2917af}of this['_findSuggestions'](_0x1815d6,'insertion'))if(_0x2917af['isOwn']){if(!_0x2917af['isNextTo']){if(_0x2917af['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x3c21c2,_0x5e4eb8))continue;return _0x3c21c2;}if(Lt(_0x3c21c2,_0x5e4eb8))return _0x3c21c2;this['_breakSuggestionMarker'](_0x3c21c2,_0x1815d6['start'],_0x1815d6['end']);break;}if(_0x2ee97c==_0x3c21c2['subType']&&Lt(_0x3c21c2,_0x5e4eb8)){const _0x4235d1=_0x3c21c2['getFirstRange']();return _0x4235d1['start']['isEqual'](_0x1815d6['end'])?this['_setSuggestionRange'](_0x3c21c2,this['_model']['createRange'](_0x1815d6['start'],_0x4235d1['end'])):this['_setSuggestionRange'](_0x3c21c2,this['_model']['createRange'](_0x4235d1['start'],_0x1815d6['end'])),_0x3c21c2;}}const _0x1ea876=_0x497177(),_0x19ceab=_0x59c7e1['id'],_0x14cae0=_0x2ee97c?'insertion:'+_0x2ee97c:'insertion',_0x5677de=this['_setSuggestionData']({'id':_0x1ea876,'type':_0x14cae0,'createdAt':new Date(),'authorId':_0x19ceab,'attributes':_0x5e4eb8});return this['_addSuggestionMarker'](_0x14cae0,_0x1ea876,_0x19ceab,_0x1815d6),_0x5677de;}['markMultiRangeInsertion'](_0xdf67eb,_0xcaa47a='multi',_0x169e56={}){const _0x3fd1b0=this['editor']['plugins']['get']('Users')['me'],_0x56d25d=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xcaa47a,'join');for(const _0x1dab63 of this['getSuggestions']())if(_0x1dab63['author']['id']==_0x3fd1b0['id']&&'insertion'==_0x1dab63['type']&&_0x1dab63['subType']==_0xcaa47a&&Lt(_0x1dab63,_0x169e56)&&(_0x56d25d(_0x1dab63['getRanges'](),_0xdf67eb)||_0x56d25d(_0xdf67eb,_0x1dab63['getRanges']()))){for(const _0x477ede of _0xdf67eb)_0x1dab63['addRange'](_0x477ede);return _0x1dab63;}for(const {suggestion:_0x246fb4,meta:_0x297e60}of this['_findSuggestions'](_0xdf67eb,'insertion')){if(!_0x297e60['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x297e60['containsRangeInObject'])continue;if(!Lt(_0x246fb4,_0x169e56))continue;let _0x1761e2=!0x0;for(const _0x350275 of _0x246fb4['getRanges']())for(const _0x7473a7 of _0xdf67eb)if(!_0x350275['containsRange'](_0x7473a7)){_0x1761e2=!0x1;break;}if(_0x1761e2)return _0x246fb4;}const _0x22bf03=_0x497177(),_0x1555e0=_0x3fd1b0['id'],_0x5999c1='insertion:'+_0xcaa47a,_0x3ecd14=this['_setSuggestionData']({'id':_0x22bf03,'type':_0x5999c1,'createdAt':new Date(),'authorId':_0x1555e0,'attributes':_0x169e56});for(const _0x4e2107 of _0xdf67eb)this['_addSuggestionMarker'](_0x5999c1,_0x22bf03,_0x1555e0,_0x4e2107,u['getMultiRangeId']());return _0x3ecd14;}['markInlineFormat'](_0x580dd5,_0xe8ced6,_0x4d1a36=null,_0xc7167e={}){if(_0x4d1a36=_0x4d1a36||Vt(_0xe8ced6),_0x580dd5['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x35997d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4d1a36,'accept');return this['forceDefaultExecution'](()=>_0x35997d([_0x580dd5],_0xe8ced6,_0xc7167e)),null;}const _0x451298=this['editor']['plugins']['get']('Users')['me'],_0x1a7384=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x23f7db,meta:_0x3b219e}of this['_findSuggestions'](_0x580dd5,'insertion'))_0x3b219e['isOwn']&&!_0x3b219e['isInsideObject']&&_0x1a7384['push'](..._0x23f7db['getRanges']());}const _0x26f93d=function(_0x565c8d,_0x3542e6){const _0x2b7df5=[];for(const _0x595de6 of _0x3542e6){const _0x37af1e=_0x565c8d['getIntersection'](_0x595de6);_0x37af1e&&_0x2b7df5['push'](_0x37af1e);}return _0x2b7df5;}(_0x580dd5,_0x1a7384),_0x220ec8=function(_0x3e12e2,_0x3080dd){const _0x2c7a19=[_0x3e12e2];for(const _0x1914a6 of _0x3080dd){let _0x530675=0x0;for(;_0x530675<_0x2c7a19['length'];){const _0x1fb7ac=_0x2c7a19[_0x530675]['getDifference'](_0x1914a6);_0x2c7a19['splice'](_0x530675,0x1,..._0x1fb7ac),_0x530675+=_0x1fb7ac['length'];}}return _0x2c7a19;}(_0x580dd5,_0x1a7384);_0x26f93d['length']&&this['_model']['change'](()=>{for(const _0x3cf59c of _0x26f93d){const _0x38a262=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4d1a36,'accept');this['forceDefaultExecution'](()=>_0x38a262([_0x3cf59c],_0xe8ced6,_0xc7167e));}});for(const _0x578725 of _0x220ec8){let _0x133b0f=null,_0x247ea5=_0x578725['start'],_0x3afa62=_0x578725['end'];for(const {suggestion:_0x41453e,meta:_0x4b0bdd}of this['_findSuggestions'](_0x578725,'formatInline')){if(!_0x4b0bdd['isOwn'])continue;if(_0x41453e['subType']!=_0x4d1a36)continue;if(!Lt(_0x41453e,_0xc7167e))continue;const _0x263acf=_0x41453e['getFirstRange']();if(_0x263acf['containsRange'](_0x578725,!0x0))return null;_0x247ea5=_0x247ea5['isBefore'](_0x263acf['start'])?_0x247ea5:_0x263acf['start'],_0x3afa62=_0x3afa62['isAfter'](_0x263acf['end'])?_0x3afa62:_0x263acf['end'],_0x133b0f?_0x263acf['start']['isBefore'](_0x133b0f['getFirstRange']()['start'])?(_0x133b0f['removeMarkers'](),_0x133b0f=_0x41453e):_0x41453e['removeMarkers']():_0x133b0f=_0x41453e;}const _0xfa46ee=this['_model']['createRange'](_0x247ea5,_0x3afa62);if(_0x133b0f)this['_setSuggestionRange'](_0x133b0f,_0xfa46ee);else{const _0x530d98=_0x497177(),_0x195ad6=_0x451298['id'];this['_setSuggestionData']({'id':_0x530d98,'type':'formatInline:'+_0x4d1a36,'data':_0xe8ced6,'createdAt':new Date(),'authorId':_0x195ad6,'attributes':_0xc7167e}),this['_addSuggestionMarker']('formatInline:'+_0x4d1a36,_0x530d98,_0x195ad6,_0xfa46ee);}}return null;}['markBlockFormat'](_0x385710,_0x512cf1,_0x43558c=[],_0x3ef470=null,_0x2d4d87={}){_0x512cf1['formatGroupId']||(_0x512cf1['formatGroupId']=_0x512cf1['commandName']),_0x512cf1['multipleBlocks']=_0x385710['is']('range'),_0x3ef470=_0x3ef470||Vt(_0x512cf1);const _0x429f96=_0x43558c['map'](_0x2d0cbb=>Gt(_0x2d0cbb,this['_model'])),_0x258e73=_0x385710['is']('range')?_0x385710:Gt(_0x385710,this['_model']);if('never'===this['_trackFormatChanges']){const _0x21df8b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ef470,'accept');return this['forceDefaultExecution'](()=>_0x21df8b([_0x258e73],_0x512cf1,_0x2d4d87)),null;}_0x429f96['push'](_0x258e73);let _0x22ebc0=!0x0;for(const _0x53631d of _0x429f96)if(!this['_rangeIsInLocalUserInsertion'](_0x53631d)){_0x22ebc0=!0x1;break;}if(_0x22ebc0&&'always'!==this['_trackFormatChanges']){const _0x4a4743=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ef470,'accept');return this['forceDefaultExecution'](()=>_0x4a4743([_0x258e73],_0x512cf1,_0x2d4d87)),null;}let _0x378f3a=null,_0x2492f8=_0x258e73['start'],_0x3e683e=_0x258e73['end'];for(const {suggestion:_0x16b3b9,meta:_0x504581}of this['_findSuggestions'](_0x258e73,'formatBlock')){if(!_0x504581['isOwn'])continue;if(_0x504581['isNextTo']||_0x504581['containsRangeInObject']||_0x504581['isInsideObject'])continue;if(_0x16b3b9['data']['formatGroupId']!=_0x512cf1['formatGroupId'])continue;if(!Lt(_0x16b3b9,_0x2d4d87))continue;const _0x2dc25b=_0x16b3b9['getFirstRange']();if(_0x16b3b9['subType']==_0x3ef470){if(_0x2dc25b['containsRange'](_0x258e73,!0x0))return null;_0x2492f8=_0x2492f8['isBefore'](_0x2dc25b['start'])?_0x2492f8:_0x2dc25b['start'],_0x3e683e=_0x3e683e['isAfter'](_0x2dc25b['end'])?_0x3e683e:_0x2dc25b['end'],_0x378f3a?_0x2dc25b['start']['isBefore'](_0x378f3a['getFirstRange']()['start'])?(_0x378f3a['removeMarkers'](),_0x378f3a=_0x16b3b9):_0x16b3b9['removeMarkers']():_0x378f3a=_0x16b3b9;}else{const _0x33cdb5=_0x258e73['getIntersection'](_0x2dc25b);this['_cutOutSuggestionMarker'](_0x16b3b9,_0x33cdb5);}}const _0x299b03=this['editor']['plugins']['get']('Users')['me'],_0x6e4010=_0x497177(),_0x5aab72=_0x299b03['id'];if(_0x378f3a)return this['_setSuggestionRange'](_0x378f3a,this['_model']['createRange'](_0x2492f8,_0x3e683e)),_0x378f3a;{const _0x57b9a0=this['_setSuggestionData']({'id':_0x6e4010,'type':'formatBlock:'+_0x3ef470,'data':_0x512cf1,'createdAt':new Date(),'authorId':_0x5aab72,'attributes':_0x2d4d87});return this['_addSuggestionMarker']('formatBlock:'+_0x3ef470,_0x6e4010,_0x5aab72,this['_model']['createRange'](_0x2492f8,_0x3e683e)),_0x57b9a0;}}['markMultiRangeBlockFormat'](_0x494661,_0x33dd9e,_0x2540c0=[],_0x2bca1d=null,_0xab21b5={}){_0x33dd9e['formatGroupId']||(_0x33dd9e['formatGroupId']=_0x33dd9e['commandName']);const _0xbc2315=_0x494661[0x0];_0x33dd9e['multipleBlocks']=_0xbc2315['is']('range'),_0x2bca1d=_0x2bca1d||Vt(_0x33dd9e);const _0x5d0ef0=_0x2540c0['map'](_0x290a0f=>Gt(_0x290a0f,this['_model'])),_0x495869=_0xbc2315['is']('range')?_0x494661:_0x494661['map'](_0x17c5c8=>Gt(_0x17c5c8,this['_model']));if('never'===this['_trackFormatChanges']){const _0x38ef72=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2bca1d,'accept');return this['forceDefaultExecution'](()=>_0x38ef72(_0x495869,_0x33dd9e,_0xab21b5)),null;}_0x5d0ef0['push'](..._0x495869);let _0x3122b5=!0x0;for(const _0x17a150 of _0x5d0ef0)if(!this['_rangeIsInLocalUserInsertion'](_0x17a150)){_0x3122b5=!0x1;break;}if(_0x3122b5&&'always'!==this['_trackFormatChanges']){const _0x3d6d7f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2bca1d,'accept');return this['forceDefaultExecution'](()=>_0x3d6d7f(_0x495869,_0x33dd9e,_0xab21b5)),null;}const _0x4e848e=this['editor']['plugins']['get']('Users')['me'];for(const _0x1b1ba0 of this['getSuggestions']()){if(_0x1b1ba0['author']['id']!=_0x4e848e['id'])continue;if('formatBlock'!=_0x1b1ba0['type']||_0x1b1ba0['data']['formatGroupId']!=_0x33dd9e['formatGroupId'])continue;if(!Lt(_0x1b1ba0,_0xab21b5))continue;const _0x4ae81b=_0x1b1ba0['subType']==_0x2bca1d;for(let _0x53f6d4=0x0;_0x53f6d4<_0x495869['length'];_0x53f6d4++){const _0xe22e91=_0x495869[_0x53f6d4];for(const _0x4efd6c of _0x1b1ba0['getMarkers']()){const _0x5b01f2=_0x4efd6c['getRange']();if(_0xe22e91['isEqual'](_0x5b01f2)){_0x4ae81b?(_0x495869['splice'](_0x53f6d4,0x1),_0x53f6d4--):_0x1b1ba0['removeMarker'](_0x4efd6c['name']);break;}}}}if(0x0==_0x495869['length'])return null;const _0xf83b0f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2bca1d,'join');for(const _0x37fe98 of this['getSuggestions']())if(_0x37fe98['author']['id']==_0x4e848e['id']&&'formatBlock'==_0x37fe98['type']&&_0x37fe98['data']['formatGroupId']==_0x33dd9e['formatGroupId']&&_0x37fe98['subType']==_0x2bca1d&&Lt(_0x37fe98,_0xab21b5)&&(_0xf83b0f(_0x37fe98['getRanges'](),_0x495869)||_0xf83b0f(_0x495869,_0x37fe98['getRanges']()))){for(const _0x43e5e5 of _0x495869)_0x37fe98['addRange'](_0x43e5e5);return _0x37fe98;}const _0x561137=_0x497177(),_0x9c6ab7=_0x4e848e['id'],_0xfcab02='formatBlock:'+_0x2bca1d,_0x1c1185=this['_setSuggestionData']({'id':_0x561137,'type':_0xfcab02,'data':_0x33dd9e,'createdAt':new Date(),'authorId':_0x9c6ab7,'attributes':_0xab21b5});for(const _0x1b5687 of _0x495869)this['_addSuggestionMarker'](_0xfcab02,_0x561137,_0x9c6ab7,_0x1b5687,u['getMultiRangeId']());return _0x1c1185;}['markDeletion'](_0x50c0e0,_0x5929a9=null,_0xe745d={}){if(_0x50c0e0['isCollapsed'])return null;const _0x59392=this['editor']['plugins']['get']('Users')['me'],_0x4f6e20=new _0x5e8b6d(_0x50c0e0['start'],_0x50c0e0['end']);for(const {suggestion:_0x34991b,meta:_0x30c37a}of this['_findSuggestions'](_0x4f6e20,'insertion'))if(_0x30c37a['isOwn']&&!_0x30c37a['isNextTo']){if(_0x34991b['isMultiRange']){const _0x23d3ad=_0x34991b['getRanges']()['filter'](_0x4948d6=>'$graveyard'!=_0x4948d6['root']['rootName']);_0x23d3ad['every'](_0xc6def2=>_0x4f6e20['containsRange'](_0xc6def2,!0x0))&&_0x34991b['discard']();if(_0x23d3ad['some'](_0x513ae6=>_0x513ae6['containsRange'](_0x4f6e20,!0x0))){const _0x39267a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5929a9,'accept');return this['forceDefaultExecution'](()=>_0x39267a([_0x4f6e20],null,_0xe745d)),null;}}else{const _0x38f7d1=_0x4f6e20['getIntersection'](_0x34991b['getFirstRange']());null!==_0x38f7d1&&_0x34991b['_onDiscard']([_0x38f7d1],null,_0xe745d);}}if(_0x4f6e20['detach'](),_0x4f6e20['isCollapsed']||'$graveyard'==_0x4f6e20['root']['rootName'])return null;let _0x547bab=null,_0x48c3cf=_0x4f6e20['start'],_0x36ac68=_0x4f6e20['end'];const _0x5791cc=this['_findSuggestions'](_0x4f6e20,'deletion');for(const {suggestion:_0x5080c7,meta:_0x265659}of _0x5791cc){const _0x121908=this['_model']['createRange'](_0x48c3cf,_0x36ac68);if(_0x265659['isOwn']&&(this['_mergeNestedSuggestions']||!_0x265659['containsRangeInObject']&&!_0x265659['isInsideObject'])){if(_0x5080c7['isMultiRange']){if(!Lt(_0x5080c7,_0xe745d))continue;let _0x1bf63b=!0x0;for(const _0x40de9c of _0x5080c7['getRanges']()){if(_0x40de9c['containsRange'](_0x121908,!0x0))return _0x5080c7;_0x121908['containsRange'](_0x40de9c)||(_0x1bf63b=!0x1);}_0x1bf63b&&_0x5080c7['discard']();}else{const _0x26f098=_0x5080c7['getFirstRange']();if(_0x26f098['containsRange'](_0x121908,!0x0))return _0x5080c7;if(!Lt(_0x5080c7,_0xe745d)){_0x121908['containsRange'](_0x26f098)?_0x5080c7['removeMarkers']():_0x26f098['containsPosition'](_0x48c3cf)?_0x48c3cf=_0x26f098['end']:_0x26f098['containsPosition'](_0x36ac68)&&(_0x36ac68=_0x26f098['start']);continue;}_0x48c3cf=_0x48c3cf['isBefore'](_0x26f098['start'])?_0x48c3cf:_0x26f098['start'],_0x36ac68=_0x36ac68['isAfter'](_0x26f098['end'])?_0x36ac68:_0x26f098['end'],_0xe745d=Object['assign']({},_0x5080c7['attributes']),_0x547bab?_0x26f098['start']['isBefore'](_0x547bab['getFirstRange']()['start'])?(_0x547bab['removeMarkers'](),_0x547bab=_0x5080c7):_0x5080c7['removeMarkers']():_0x547bab=_0x5080c7;}}}if(_0x547bab)return this['_setSuggestionRange'](_0x547bab,this['_model']['createRange'](_0x48c3cf,_0x36ac68)),_0x547bab;{const _0x3bb9a6=_0x497177(),_0x4bd28a=this['_model']['createRange'](_0x48c3cf,_0x36ac68),_0x4caa6a=_0x59392['id'],_0x5f5df6=_0x5929a9?'deletion:'+_0x5929a9:'deletion',_0x41c866=this['_setSuggestionData']({'id':_0x3bb9a6,'type':_0x5f5df6,'createdAt':new Date(),'authorId':_0x4caa6a,'attributes':_0xe745d});return this['_addSuggestionMarker'](_0x5f5df6,_0x3bb9a6,_0x4caa6a,_0x4bd28a),_0x41c866;}}['markMultiRangeDeletion'](_0x2dfedf,_0x4a2fa9='multi',_0x221df3={}){const _0x201fae=this['editor']['plugins']['get']('Users')['me'],_0xfd48fd=_0x2dfedf['map'](_0x2dddf9=>new _0x5e8b6d(_0x2dddf9['start'],_0x2dddf9['end'])),_0x481d95=new Set();for(const {suggestion:_0x315b1c,meta:_0x3f9e7e}of this['_findSuggestions'](_0xfd48fd,'insertion'))_0x3f9e7e['isOwn']&&!_0x3f9e7e['isNextTo']&&_0x481d95['add'](_0x315b1c);for(const _0x3de159 of _0x481d95)if(_0x3de159['isMultiRange']){const _0x51225d=_0x3de159['getRanges']();(!_0x3de159['attributes']||!_0x3de159['attributes']['skipNestingCheck'])&&(_0x51225d['every'](_0x30e732=>_0xfd48fd['some'](_0xdeaebe=>_0xdeaebe['containsRange'](_0x30e732,!0x0)))&&_0x3de159['discard']());if(_0xfd48fd['every'](_0xb8a5d0=>_0x51225d['some'](_0x558733=>_0x558733['containsRange'](_0xb8a5d0,!0x0)))){const _0x4bf486=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4a2fa9,'accept');return this['forceDefaultExecution'](()=>_0x4bf486(_0x2dfedf,null,_0x221df3)),null;}}else{const _0x1ebb90=_0x3de159['getFirstRange']();_0xfd48fd['some'](_0x42816e=>_0x42816e['containsRange'](_0x1ebb90,!0x0))&&_0x3de159['discard']();if(_0xfd48fd['every'](_0x25999c=>_0x1ebb90['containsRange'](_0x25999c,!0x0))){const _0x231da8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4a2fa9,'accept');return this['forceDefaultExecution'](()=>_0x231da8(_0xfd48fd,null,_0x221df3)),null;}}const _0x47ff95=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4a2fa9,'join');let _0x14c2a6=null;for(const _0x50c15a of this['getSuggestions']())if(_0x50c15a['author']['id']==_0x201fae['id']&&_0x50c15a['isInContent']&&'deletion'==_0x50c15a['type']&&_0x50c15a['subType']==_0x4a2fa9&&Lt(_0x50c15a,_0x221df3)&&(_0x47ff95(_0x50c15a['getRanges'](),_0xfd48fd)||_0x47ff95(_0xfd48fd,_0x50c15a['getRanges']()))){if(_0x14c2a6){if(_0x50c15a['commentThread']&&_0x50c15a['commentThread']['length'])continue;for(const _0x148212 of _0x50c15a['getRanges']())_0x14c2a6['isIntersectingWithRange'](_0x148212)||_0x14c2a6['addRange'](_0x148212);_0x50c15a['removeMarkers']();}else{_0x14c2a6=_0x50c15a;for(const _0x2f08f0 of _0xfd48fd)_0x50c15a['isIntersectingWithRange'](_0x2f08f0)||_0x50c15a['addRange'](_0x2f08f0);}}if(_0x14c2a6)return _0x14c2a6;_0x481d95['clear']();for(const {suggestion:_0x36948d,meta:_0x1667c0}of this['_findSuggestions'](_0xfd48fd,'deletion'))_0x1667c0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1667c0['containsRangeInObject']&&!_0x1667c0['isInsideObject'])&&Lt(_0x36948d,_0x221df3)&&_0x481d95['add'](_0x36948d);for(const _0x28cf77 of _0x481d95){const _0x32aa96=_0x28cf77['getRanges']();if(!_0x221df3||!_0x221df3['skipNestingCheck']){if(_0xfd48fd['every'](_0x5d811e=>_0x32aa96['some'](_0x3eb46f=>_0x3eb46f['containsRange'](_0x5d811e,!0x0))))return _0x28cf77;}(!_0x28cf77['attributes']||!_0x28cf77['attributes']['skipNestingCheck'])&&(_0x32aa96['every'](_0x5ac1bd=>_0xfd48fd['some'](_0x3b37cd=>_0x3b37cd['containsRange'](_0x5ac1bd,!0x0)))&&_0x28cf77['discard']());}const _0x15b3d5=_0x497177(),_0x505aec=_0x201fae['id'],_0x2afbdd='deletion:'+_0x4a2fa9,_0x423930=this['_setSuggestionData']({'id':_0x15b3d5,'type':_0x2afbdd,'createdAt':new Date(),'authorId':_0x505aec,'attributes':_0x221df3});for(const _0x1afafd of _0xfd48fd)_0x1afafd['detach'](),_0x1afafd['isCollapsed']||'$graveyard'==_0x1afafd['root']['rootName']||this['_addSuggestionMarker'](_0x2afbdd,_0x15b3d5,_0x505aec,_0x1afafd,u['getMultiRangeId']());return _0x423930;}['markAttributeChange'](_0x2ee701,_0x520cab,_0x404d9f,_0x5aa770,_0x32a26b){if(_0x2ee701['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x33908f=this['editor']['plugins']['get']('Users')['me']['id'],_0x53344d=Array['from'](this['_suggestions']['values']())['filter'](_0x321076=>'attribute'==_0x321076['type']&&_0x321076['data']['key']==_0x520cab&&_0x321076['isIntersectingWithRange'](_0x2ee701));if('default'===this['_trackFormatChanges']){const _0x130d96=this['_findSuggestions'](_0x2ee701,'insertion')['filter'](({meta:_0x271eea})=>_0x271eea['isOwn']&&!_0x271eea['isInsideObject']&&!_0x271eea['isNextTo'])['map'](({suggestion:_0x541f57})=>_0x541f57);_0x53344d['unshift'](..._0x130d96);}const _0xbdf234=new Map([[_0x2ee701,_0x404d9f]]);for(const _0x1e30d1 of _0x53344d){const _0x5ebb0f='attribute'==_0x1e30d1['type']?_0x1e30d1['data']['oldValue']:void 0x0,_0x2d2cd4=_0x1e30d1['getFirstRange'](),_0x12e1a4=Array['from'](_0xbdf234['keys']())['find'](_0x26990c=>_0x26990c['isIntersecting'](_0x2d2cd4));if(!_0x12e1a4)continue;const _0x6451fe=_0x12e1a4['getDifference'](_0x2d2cd4);this['_isBlockAttribute'](_0x520cab)&&'insertion'==_0x1e30d1['type']&&0x0!=_0x6451fe['length']||(_0xbdf234['delete'](_0x12e1a4),_0x6451fe['forEach'](_0x5e5826=>{_0xbdf234['set'](_0x5e5826,_0x404d9f);}),'insertion'!=_0x1e30d1['type']&&_0x5ebb0f!=_0x5aa770&&_0xbdf234['set'](_0x12e1a4['getIntersection'](_0x2d2cd4),_0x5ebb0f));}const _0x5ed822=[];for(const [_0x55b040,_0xd8bd8]of _0xbdf234){const _0xd3301e=_0x497177(),_0x13b9fc={'key':_0x520cab,'oldValue':_0xd8bd8,'newValue':_0x5aa770};_0x520cab['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':_0x520cab});const _0x189fc8=('attribute:'+(_0x520cab+'|'+Vt({'newValue':_0x5aa770})))['substring'](0x0,0x3c),_0x239b74=this['_setSuggestionData']({'id':_0xd3301e,'type':_0x189fc8,'data':_0x13b9fc,'createdAt':new Date(),'authorId':_0x33908f,'attributes':_0x32a26b});_0x5ed822['push'](_0x239b74),this['_addSuggestionMarker'](_0x189fc8,_0xd3301e,_0x33908f,_0x55b040);}return _0x5ed822;}['enableDefaultAttributesIntegration'](_0x1de0cc){this['enableCommand'](_0x1de0cc,(_0x2a373f,..._0x28275f)=>{this['_recordAttributeChanges'](()=>{_0x2a373f(..._0x28275f);});});}['registerBlockAttribute'](_0x1caadd){this['_blockAttributeKeys']['add'](_0x1caadd);}['registerInlineAttribute'](_0x22f112){this['_inlineAttributeKeys']['add'](_0x22f112);}['_getAttributeKey'](_0x9e0675){return'attribute'==_0x9e0675['type']?_0x9e0675['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xb63cc5,_0x5e81b7){const _0x180675=_0xb63cc5['getFirstMarker']();this['_model']['change'](_0x4b43af=>{_0x4b43af['updateMarker'](_0x180675,{'range':_0x5e81b7});});}['_addThreadToSuggestion'](_0x206de1){const _0x10245f=_0x206de1['id'],_0x534453=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x10245f)||this['_commentsRepository']['addCommentThread']({'channelId':_0x534453,'threadId':_0x10245f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x12347b=this['_commentsRepository']['getCommentThread'](_0x10245f);_0x12347b['unbind']('isRemovable'),_0x12347b['isRemovable']=!0x1,_0x206de1['commentThread']=_0x12347b;}['_checkSuggestionCorrectness'](_0x232ebb,_0x539b43,_0x32e4ae,_0x41b1c0){if(_0x232ebb['type']!=_0x539b43||_0x232ebb['subType']!=_0x32e4ae||_0x232ebb['creator']['id']!=_0x41b1c0)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x197e78('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3dc910,_0x1c2440){const _0x397297=_0x3dc910['getFirstRange']();if(_0x1c2440['isEqual'](_0x397297))_0x3dc910['removeMarkers']();else{if(_0x397297['containsRange'](_0x1c2440)){const _0x56ed1f=this['_model']['createPositionAt'](_0x1c2440['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3dc910,this['_model']['createRange'](_0x397297['start'],_0x56ed1f));const _0x58d23=_0x497177(),_0xb8f8e4=_0x3dc910['creator']['id'],_0x5efaa8=_0x3dc910['type']+':'+_0x3dc910['subType'];this['_setSuggestionData']({'id':_0x58d23,'type':_0x5efaa8,'createdAt':new Date(),'authorId':_0xb8f8e4,'data':_0x3dc910['data'],'attributes':_0x3dc910['attributes']});const _0x2ca62b=this['_model']['createPositionAt'](_0x1c2440['end']['parent'],'after'),_0x1e8dc4=this['_model']['createRange'](_0x2ca62b,_0x397297['end']);this['_addSuggestionMarker'](_0x5efaa8,_0x58d23,_0xb8f8e4,_0x1e8dc4);}else{if(_0x397297['containsPosition'](_0x1c2440['start'])){const _0x2ceac7=this['_model']['createPositionAt'](_0x1c2440['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3dc910,this['_model']['createRange'](_0x397297['start'],_0x2ceac7));}else{const _0x43a388=this['_model']['createPositionAt'](_0x1c2440['end']['parent'],'after');this['_setSuggestionRange'](_0x3dc910,this['_model']['createRange'](_0x43a388,_0x397297['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x26a67c){for(const {suggestion:_0x248bed,meta:_0x3fe686}of this['_findSuggestions'](_0x26a67c,'insertion')){if(!_0x3fe686['isOwn'])continue;const _0x250c76=_0x248bed['getRanges']();for(const _0x1a0296 of _0x250c76)if(!_0x26a67c['getDifference'](_0x1a0296)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x224686){const _0x157b6f=this['editor']['plugins']['get']('Users')['getUser'](_0x224686);if(!_0x157b6f)throw new _0x197e78('track-changes-user-not-found',this);return _0x157b6f;}['_getExternalAuthor'](_0x456d1a){const _0x25c9ce=this['editor']['plugins']['get']('Users'),_0xa5650=_0x4e2023('external:'+_0x456d1a),_0x2adffd=_0x25c9ce['getUser'](_0xa5650);return _0x2adffd||_0x25c9ce['addUser']({'id':_0xa5650,'name':_0x456d1a});}['_createSuggestion'](_0x27e5a9,_0x39d746,_0x2f0446,_0x5ddf97,_0xc2fa0b){const _0x388026=this['_getAuthorFromId'](_0x5ddf97),_0x1d2394=this['_suggestionFactory']['buildSuggestion'](_0x27e5a9,_0x39d746,_0x2f0446,_0x388026,_0xc2fa0b,_0x40fd39=>{this['_updateSuggestionData'](_0x2f0446,{'attributes':_0x40fd39});const _0x1529df=this['getSuggestion'](_0x2f0446);this['_joinWithAdjacentSuggestions'](new Set([_0x1529df])),this['_refreshSuggestionsChain'](new Set([_0x1529df]));});return this['listenTo'](_0x1d2394,'accept',()=>{this['_updateSuggestionData'](_0x2f0446,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1d2394,'discard',()=>{this['_updateSuggestionData'](_0x2f0446,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2f0446,_0x1d2394),this['_suggestionState']['set'](_0x1d2394,'notReady'),_0x1d2394;}['_splitMarkerName'](_0x2d536a){const _0x4fc771=_0x2d536a['split'](':');return{'group':_0x4fc771[0x0],'type':_0x4fc771[0x1],'subType':_0x4fc771['length']>=0x5?_0x4fc771[0x2]:null,'id':_0x4fc771['length']<0x5?_0x4fc771[0x2]:_0x4fc771[0x3],'authorId':_0x4fc771['length']<0x5?_0x4fc771[0x3]:_0x4fc771[0x4],'markerCount':0x6==_0x4fc771['length']?_0x4fc771[0x5]:null};}['_breakSuggestionMarker'](_0x554d40,_0x29c630,_0x197047){const _0x2eb36a=_0x554d40['getFirstRange'](),_0xf20e80=_0x2eb36a['start'],_0x53cdfd=_0x2eb36a['end'];this['_setSuggestionRange'](_0x554d40,this['_model']['createRange'](_0xf20e80,_0x29c630));const _0x46078b=_0x497177(),_0x40c824=_0x554d40['creator']['id'],_0x390af0=_0x554d40['type']+(_0x554d40['subType']?':'+_0x554d40['subType']:'');this['_setSuggestionData']({'id':_0x46078b,'type':_0x390af0,'createdAt':new Date(),'authorId':_0x40c824,'originalSuggestionId':_0x554d40['id'],'attributes':_0x554d40['attributes'],'data':_0x554d40['data']});const _0x398f17=this['_getAttributeKey'](_0x554d40);('formatBlock'==_0x554d40['type']||_0x398f17&&this['_isBlockAttribute'](_0x398f17))&&(_0x197047=this['_model']['createPositionBefore'](_0x197047['parent'])),this['_addSuggestionMarker'](_0x390af0,_0x46078b,_0x40c824,this['_model']['createRange'](_0x197047,_0x53cdfd));}['_findSuggestions'](_0x52f13e,_0x3d53aa=null){const _0x226808=[],_0x320b38=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x52f13e)||(_0x52f13e=[_0x52f13e]);for(const _0xf1a5a4 of this['getSuggestions']()){if(!_0xf1a5a4['isInContent'])continue;if(_0x3d53aa&&_0xf1a5a4['type']!=_0x3d53aa)continue;let _0xdd0b9c=!0x1;for(const _0x76a1dc of _0xf1a5a4['getRanges']()){for(const _0x2877db of _0x52f13e){const _0x3f4d0c=_0x2877db['start']['isEqual'](_0x76a1dc['end'])||_0x2877db['end']['isEqual'](_0x76a1dc['start']);if(_0x3f4d0c||_0x2877db['getIntersection'](_0x76a1dc)){const _0x54ccb9=_0x2877db['containsRange'](_0x76a1dc)&&Rt(this['_model']['schema'],_0x76a1dc['start'],_0x2877db),_0x1bd58b=_0x76a1dc['containsRange'](_0x2877db)&&Rt(this['_model']['schema'],_0x2877db['start'],_0x76a1dc);_0x226808['push']({'suggestion':_0xf1a5a4,'meta':{'isOwn':_0x320b38==_0xf1a5a4['author'],'isNextTo':_0x3f4d0c,'isInsideObject':_0x54ccb9,'containsRangeInObject':_0x1bd58b}}),_0xdd0b9c=!0x0;break;}}if(_0xdd0b9c)break;}}return _0x226808;}['_addSuggestionMarker'](_0x3807e8,_0x48a180,_0x278526,_0x5c4a67,_0x58c388){this['_model']['change'](_0x4bf8d2=>{let _0x34ace8='suggestion:'+_0x3807e8+':'+_0x48a180+':'+_0x278526;_0x58c388&&(_0x34ace8=_0x34ace8+':'+_0x58c388),_0x4bf8d2['addMarker'](_0x34ace8,{'range':_0x5c4a67,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4aeb4b){const _0x14d527=_0x4aeb4b['previous'],_0x2d0d81=_0x4aeb4b['next'];_0x4aeb4b['previous']=null,_0x4aeb4b['next']=null,null!=_0x14d527&&_0x14d527['next']==_0x4aeb4b&&(_0x14d527['next']=_0x2d0d81),null!=_0x2d0d81&&_0x2d0d81['previous']==_0x4aeb4b&&(_0x2d0d81['previous']=_0x14d527),'ready'==this['_suggestionState']['get'](_0x4aeb4b)&&(this['_suggestionState']['set'](_0x4aeb4b,'removed'),this['fire']('suggestionUnloaded',_0x4aeb4b,_0x14d527,_0x2d0d81));}['_setSuggestionData'](_0xd9485b){const _0x1af3c1=_0xd9485b['id'],_0x916f78=this['addSuggestionData'](_0xd9485b);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x116a4a=this['editor']['plugins']['get']('PendingActions'),_0x5f4d2e=_0x916f78['hasComments'],_0x38ad83=_0x916f78['subType']?_0x916f78['type']+':'+_0x916f78['subType']:_0x916f78['type'],_0x2291c4=this['editor']['locale'],_0x539079=_0x116a4a['add'](o(_0x2291c4,'PENDING_ACTION_SUGGESTION')),_0x48d638={'id':_0x1af3c1,'type':_0x38ad83,'hasComments':_0x5f4d2e,'data':_0xd9485b['data']||null,'originalSuggestionId':_0xd9485b['originalSuggestionId']||null,'attributes':_0x916f78['attributes']};this['_adapter']['addSuggestion'](_0x48d638)['then'](_0x30db0a=>{_0x916f78['_saved']=!0x0,_0x116a4a['remove'](_0x539079),_0x30db0a&&_0x30db0a['createdAt']&&(this['_suggestions']['get'](_0x1af3c1)['createdAt']=_0x30db0a['createdAt']);})['catch'](_0x18a35b=>{throw _0xe6849e('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x916f78['discard']();}),_0x916f78['stopListening'](),this['_suggestions']['delete'](_0x916f78['id']),this['_suggestionState']['delete'](_0x916f78),_0x18a35b;});}return _0x916f78;}['_isBlockAttribute'](_0x3b438c){return this['_blockAttributeKeys']['has'](_0x3b438c);}['_updateSuggestionData'](_0x1635d9,_0x17ed8a){const _0x4e2f26=this['editor']['plugins']['get']('PendingActions'),_0xf93d8b=this['getSuggestion'](_0x1635d9);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xf93d8b['_saved']){const _0x429b5b=_0x4e2f26['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1635d9,_0x17ed8a)['then'](()=>{_0x4e2f26['remove'](_0x429b5b);});}else _0xf93d8b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1635d9,_0x17ed8a);});}}['_getSuggestionData'](_0x13d1d4){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x197e78('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x13d1d4);}['_handleNewSuggestionMarker'](_0x456f64){const {id:_0x1c3ce9,type:_0x3b5473,subType:_0x18cf85,authorId:_0x49e693}=this['_splitMarkerName'](_0x456f64),_0x4d977b=this['_suggestions']['get'](_0x1c3ce9)||this['_createSuggestion'](_0x3b5473,_0x18cf85,_0x1c3ce9,_0x49e693,{});switch(this['_checkSuggestionCorrectness'](_0x4d977b,_0x3b5473,_0x18cf85,_0x49e693),this['_suggestionState']['get'](_0x4d977b)){case'notReady':this['_getSuggestionData'](_0x1c3ce9)['then'](_0x188141=>{let _0x52c515=Promise['resolve']();_0x188141['hasComments']&&(_0x52c515=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1c3ce9})),_0x52c515['then'](()=>{this['addSuggestionData'](_0x188141)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4d977b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1c3ce9,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4d977b,'ready'),this['fire']('suggestionLoaded',_0x4d977b);break;case'ready':this['fire']('suggestionChanged',_0x4d977b);}return _0x4d977b['addMarkerName'](_0x456f64),_0x4d977b;}['_refreshSuggestionsChain'](_0x367a07){const _0x2c0a7f=Array['from'](_0x367a07),_0x4f0f20=_0x2c0a7f['filter'](_0x4c6c9a=>'attribute'==_0x4c6c9a['type']);this['_refreshAttributeSuggestionsChain'](_0x4f0f20);const _0x48a903=_0x2c0a7f['filter'](_0x734fc8=>!_0x734fc8['isMultiRange']&&'attribute'!=_0x734fc8['type']),_0x1b6672=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3b721c=>!_0x3b721c['isMultiRange']&&'attribute'!=_0x3b721c['type']),_0x4679d0=_0x1b6672['filter'](_0x4f58d3=>!_0x367a07['has'](_0x4f58d3)),_0x5a2d52=new Map(_0x1b6672['map'](_0x3a4042=>[_0x3a4042,this['_suggestionFactory']['getSuggestionCallback'](_0x3a4042['type'],_0x3a4042['subType'],'chain')])),_0x3868ad=new Map(_0x1b6672['map'](_0x425852=>[_0x425852,_0x425852['getFirstRange']()])),_0x8d0ec0=new Set(),_0x5e87bb=new Set();for(let _0x45fbc0=0x0;_0x45fbc0<_0x48a903['length'];_0x45fbc0++)_0x187f5d(_0x48a903[_0x45fbc0],_0x48a903,_0x45fbc0+0x1);for(let _0x67f33c=0x0;_0x67f33c<_0x48a903['length'];_0x67f33c++)_0x187f5d(_0x48a903[_0x67f33c],_0x4679d0,0x0);const _0x57cc8d=new Set();for(let _0x486d54=0x0;_0x486d54<_0x48a903['length'];_0x486d54++){const _0x2971be=_0x48a903[_0x486d54];!_0x5e87bb['has'](_0x2971be)&&_0x2971be['previous']&&(_0x57cc8d['add'](_0x2971be['previous']),_0x2971be['previous']['next']===_0x2971be&&(_0x2971be['previous']['next']=null),_0x2971be['previous']=null),!_0x8d0ec0['has'](_0x2971be)&&_0x2971be['next']&&(_0x57cc8d['add'](_0x2971be['next']),_0x2971be['next']['previous']===_0x2971be&&(_0x2971be['next']['previous']=null),_0x2971be['next']=null);}function _0x187f5d(_0x2ddbe3,_0xef98a5,_0xe83e2f){for(let _0x475cb4=_0xe83e2f;_0x475cb4<_0xef98a5['length'];_0x475cb4++){const _0x3189d7=_0x381c60(_0x2ddbe3,_0xef98a5[_0x475cb4]);_0x3189d7&&(_0x3189d7[0x0]['next']=_0x3189d7[0x1],_0x3189d7[0x1]['previous']=_0x3189d7[0x0],_0x8d0ec0['add'](_0x3189d7[0x0]),_0x5e87bb['add'](_0x3189d7[0x1]));}}function _0x381c60(_0x29e707,_0x1c1868){if(_0x29e707['author']['id']!==_0x1c1868['author']['id'])return null;const _0x1fee8f=_0x5a2d52['get'](_0x29e707)(_0x29e707,_0x1c1868,_0x3868ad['get'](_0x29e707),_0x3868ad['get'](_0x1c1868));if(!_0x1fee8f)return null;return _0x5a2d52['get'](_0x1c1868)(_0x29e707,_0x1c1868,_0x3868ad['get'](_0x29e707),_0x3868ad['get'](_0x1c1868))?_0x1fee8f[0x1]['commentThread']&&_0x1fee8f[0x1]['commentThread']['length']?null:_0x1fee8f:null;}_0x57cc8d['size']&&this['_refreshSuggestionsChain'](_0x57cc8d);}['_refreshAttributeSuggestionsChain'](_0x368108){if(0x0==_0x368108['length'])return;const _0x8fe40c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1c6471=>'attribute'==_0x1c6471['type']&&_0x1c6471['_isDataLoaded']),_0x518792=[],_0x419587=new Map();for(const _0x5e9898 of _0x8fe40c){const _0x45767d=_0x4e2023(_0x5e9898['attributes']);_0x419587['has'](_0x45767d)||(_0x419587['set'](_0x45767d,_0x518792['length']),_0x518792['push']([]));const _0x18eba5=_0x419587['get'](_0x45767d);_0x518792[_0x18eba5]['push'](_0x5e9898);}!(function(){_0x518792['sort']((_0x55a810,_0x1f597f)=>{const _0x3adb52=_0x55a810[0x0]['createdAt'],_0x35eb44=_0x1f597f[0x0]['createdAt'];return _0x3adb52==_0x35eb44?_0x55a810[0x0]['attributes']['groupId']<_0x1f597f[0x0]['attributes']['groupId']?-0x1:0x1:_0x3adb52<_0x35eb44?-0x1:0x1;});for(const _0x284ad0 of _0x518792)_0x284ad0['sort']((_0x1b8550,_0x18790a)=>_0x1b8550['id']<_0x18790a['id']?-0x1:0x1);}());for(let _0x4998e4=0x0;_0x4998e4<_0x518792['length'];_0x4998e4++){if(0x0==_0x518792[_0x4998e4]['length'])continue;const _0x3f31a7=[];for(let _0x141e4a=_0x4998e4+0x1;_0x141e4a<_0x518792['length'];_0x141e4a++)0x0!=_0x518792[_0x141e4a]['length']&&_0x34d332(_0x518792[_0x4998e4],_0x518792[_0x141e4a])&&_0x3f31a7['push'](_0x141e4a);for(const _0x552e3f of _0x3f31a7)_0x518792[_0x4998e4]=_0x518792[_0x4998e4]['concat'](_0x518792[_0x552e3f]),_0x518792[_0x552e3f]=[];}for(const _0x2a4fbc of _0x518792)for(let _0x407726=0x0;_0x407726<_0x2a4fbc['length'];_0x407726++)_0x2a4fbc[_0x407726]['next']=_0x2a4fbc[_0x407726+0x1]||null;for(const _0x41ed84 of _0x518792)for(let _0x406c3e=0x0;_0x406c3e<_0x41ed84['length'];_0x406c3e++)_0x41ed84[_0x406c3e]['previous']=_0x41ed84[_0x406c3e-0x1]||null;function _0x34d332(_0x437db5,_0xd83699){if(_0x437db5[0x0]['attributes']['groupId']!==_0xd83699[0x0]['attributes']['groupId']&&_0x437db5[0x0]['author']!==_0xd83699[0x0]['author'])return!0x1;if(!function(_0x21fefc,_0x44fcc2){if(!_0x21fefc['hasComments']&&!_0x44fcc2['hasComments'])return!0x0;if(_0x21fefc['hasComments']&&_0x44fcc2['hasComments'])return!0x1;if(_0x21fefc['hasComments']&&_0x44fcc2['createdAt']<_0x21fefc['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x44fcc2['hasComments']&&_0x21fefc['createdAt']<_0x44fcc2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x437db5[0x0],_0xd83699[0x0]))return!0x1;const _0x4833bc=Bt(_0x437db5[0x0]['attributes'],'groupId'),_0x46733c=Bt(_0xd83699[0x0]['attributes'],'groupId');if(!_0x260467(_0x4833bc,_0x46733c))return!0x1;return!!_0x437db5['every'](_0x251afd=>_0xd83699['some'](_0x1eee83=>_0x251afd['getFirstRange']()['isEqual'](_0x1eee83['getFirstRange']())))&&_0xd83699['every'](_0x559870=>_0x437db5['some'](_0x2b9b18=>_0x559870['getFirstRange']()['isEqual'](_0x2b9b18['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4279d3){const _0x3b7de2=Array['from'](_0x4279d3),_0x2f5a7f=this['getSuggestions']({'skipNotAttached':!0x0}),_0xb8047f=_0x2f5a7f['filter'](_0x56607c=>!_0x4279d3['has'](_0x56607c)),_0x24adf8=new Map(_0x3b7de2['map'](_0x66cf79=>[_0x66cf79,this['_suggestionFactory']['getSuggestionCallback'](_0x66cf79['type'],_0x66cf79['subType'],'join')])),_0x48992f=new Map(_0x2f5a7f['map'](_0x37005d=>[_0x37005d,_0x37005d['getRanges']()]));for(let _0x15cb55=0x0;_0x15cb55<_0x3b7de2['length'];_0x15cb55++){if(_0x1d710d(this,_0x3b7de2[_0x15cb55],_0x3b7de2,_0x15cb55+0x1))return!0x0;}for(let _0x3bb85b=0x0;_0x3bb85b<_0x3b7de2['length'];_0x3bb85b++){if(_0x1d710d(this,_0x3b7de2[_0x3bb85b],_0xb8047f,0x0))return!0x0;}return!0x1;function _0x1d710d(_0x44c8a1,_0x3cdcb4,_0x34b00f,_0xb65255){for(let _0x1c8b18=_0xb65255;_0x1c8b18<_0x34b00f['length'];_0x1c8b18++){const _0x5b8659=_0x34b00f[_0x1c8b18];if(_0x5b8659['type']!==_0x3cdcb4['type']||_0x5b8659['author']['id']!==_0x3cdcb4['author']['id']||_0x5b8659['subType']!==_0x3cdcb4['subType'])continue;if(!Pt(_0x3cdcb4,_0x5b8659,['groupId']))continue;if('attribute'==_0x3cdcb4['type']&&_0x3cdcb4['data']['oldValue']!=_0x5b8659['data']['oldValue'])continue;if('attribute'==_0x3cdcb4['type']&&_0x44c8a1['_isBlockAttribute'](_0x3cdcb4['data']['key']))continue;if('formatBlock'==_0x3cdcb4['type']){const _0x52f7ae=_0x44c8a1['editor']['model'],_0x512f5c=_0x3cdcb4['getContainedElement']();if(_0x512f5c&&(_0x52f7ae['schema']['isObject'](_0x512f5c)||_0x52f7ae['schema']['isLimit'](_0x512f5c)))continue;}const _0x73342b=_0x24adf8['get'](_0x3cdcb4),_0x19b281=_0x48992f['get'](_0x3cdcb4),_0x1ac776=_0x48992f['get'](_0x5b8659),_0x2692ac=_0x3cdcb4['commentThread']&&_0x3cdcb4['commentThread']['length'],_0x3ba61d=_0x5b8659['commentThread']&&_0x5b8659['commentThread']['length'];if(!_0x2692ac&&_0x73342b(_0x1ac776,_0x19b281))return _0x44c8a1['_joinSuggestions'](_0x5b8659,_0x3cdcb4),_0x48992f['delete'](_0x3cdcb4),!0x0;if(!_0x3ba61d&&_0x73342b(_0x19b281,_0x1ac776))return _0x44c8a1['_joinSuggestions'](_0x3cdcb4,_0x5b8659),_0x48992f['delete'](_0x5b8659),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1b461a,_0x5e39da){if(_0x1b461a['isMultiRange']){for(const _0x175fb6 of _0x5e39da['getRanges']())_0x1b461a['addRange'](_0x175fb6);}else{const _0xdfaee0=_0x5e39da['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1b461a,this['_model']['createRange'](_0x1b461a['getFirstRange']()['start'],_0xdfaee0));}_0x5e39da['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2a9432,_0xa8f3d0){const _0x488c5e=_0x2a9432['startsWith']('format')||_0x2a9432['startsWith']('attribute')?'FORMATTING':_0x2a9432['toUpperCase']();return o(this['editor']['locale'],_0xa8f3d0+'_'+_0x488c5e+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x348819=this['editor'];if(!_0x348819['ui'])return;const {ariaLiveAnnouncer:_0x77898}=_0x348819['ui'];_0x19ad9e(this['_model'],({left:_0x558522,entered:_0x1d2cd4})=>{for(const _0x2bf4b3 of _0x558522){const {group:_0x401ee5,type:_0x4d1452}=this['_splitMarkerName'](_0x2bf4b3['name']);if('suggestion'===_0x401ee5){_0x77898['announce'](this['_getMarkerAnnouncementText'](_0x4d1452,'LEAVE'));break;}}for(const _0x2f5e10 of _0x1d2cd4){const {group:_0x1af61b,type:_0x4736da}=this['_splitMarkerName'](_0x2f5e10['name']);if('suggestion'===_0x1af61b){_0x77898['announce'](this['_getMarkerAnnouncementText'](_0x4736da,'ENTER'));break;}}});}['_processAttributeChanges'](_0x57595a){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2a9301=this['editor'],_0x353396=_0x2a9301['model']['document']['differ']['getChanges']();if(0x0==_0x353396['length'])return!0x1;const _0x28a7fd=[],_0x329aa8=_0x353396['filter'](_0x14c226=>'attribute'==_0x14c226['type']),_0x5723b5=_0x353396['filter'](_0x45daba=>'insert'==_0x45daba['type']&&'$text'!=_0x45daba['name']),_0x3ec9f8=_0x353396['filter'](_0x2ad434=>'remove'==_0x2ad434['type']&&'$text'!=_0x2ad434['name']);for(const _0x14f7f2 of _0x329aa8)_0x28a7fd['push']({'key':_0x14f7f2['attributeKey'],'newValue':_0x14f7f2['attributeNewValue'],'oldValue':_0x14f7f2['attributeOldValue'],'range':Ot(_0x14f7f2['range'],_0x2a9301['model'])});for(const _0x3aa8ea of _0x5723b5){const _0x31e36c=_0x3ec9f8['find'](_0x47bbc1=>_0x47bbc1['position']['isEqual'](_0x3aa8ea['position']));_0x31e36c&&_0x28a7fd['push']({'key':m,'newValue':_0x3aa8ea['name'],'oldValue':_0x31e36c['name'],'range':_0x2a9301['model']['createRangeOn'](_0x3aa8ea['position']['nodeAfter'])});}return 0x0!=_0x28a7fd['length']&&this['_reduceExistingSuggestions'](_0x57595a,_0x28a7fd);}['_processAttributeSuggestions'](_0x383509){let _0x35429e=!0x1;const _0x1b35b4=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x13a851=>_0x13a851['data']['newRange']&&_0x13a851['name']['startsWith']('suggestion:attribute:'));for(const _0x111fa3 of _0x1b35b4){const {subType:_0x234743,id:_0x57479f}=this['_splitMarkerName'](_0x111fa3['name']),_0x22c7b1=_0x234743['split']('|')[0x0];for(const _0x2b674e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2b674e['id']!=_0x57479f&&'attribute'==_0x2b674e['type']&&_0x2b674e['data']&&_0x2b674e['data']['key']==_0x22c7b1&&_0x2b674e['getFirstRange']()['isIntersecting'](_0x111fa3['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2b674e,_0x111fa3['data']['newRange'],_0x383509),_0x35429e=!0x0);}return _0x35429e;}['_recordAttributeChanges'](_0x3b28c9){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x3b28c9();}['_isRegisteredAttribute'](_0x347b84){const _0x4e8dbe=this['_isBlockAttribute'](_0x347b84),_0xc1a10c=this['_inlineAttributeKeys']['has'](_0x347b84);return _0x4e8dbe||_0xc1a10c;}['_reduceExistingSuggestions'](_0x215d32,_0x42f904){if(0x0==_0x42f904['length'])return!0x1;let _0x63a8a=!0x1;for(const _0x3a832f of _0x42f904){const _0x24958f=this['_findSuggestions'](_0x3a832f['range'],'attribute')['filter'](_0x368d80=>!_0x368d80['meta']['isNextTo'])['map'](_0x7bd304=>_0x7bd304['suggestion']),_0x57845a=_0x4e2023({'newValue':_0x3a832f['newValue']});_0x24958f['filter'](_0x2fb499=>{const [_0x3295fc,_0x28b344]=_0x2fb499['subType']['split']('|');return _0x3295fc==_0x3a832f['key']&&_0x28b344!=_0x57845a;})['forEach'](_0x1127e1=>{this['_reduceSuggestionAttributeRange'](_0x1127e1,_0x3a832f['range'],_0x215d32),_0x63a8a=!0x0;});}return _0x63a8a;}['_reduceSuggestionAttributeRange'](_0x13e80f,_0x39fcdd,_0x1fa07a){const _0x2d7543=_0x13e80f['getFirstRange']()['getDifference'](_0x39fcdd);0x0!==_0x2d7543['length']?0x1!==_0x2d7543['length']?this['_breakSuggestionMarker'](_0x13e80f,_0x39fcdd['start'],_0x39fcdd['end']):this['_setSuggestionRange'](_0x13e80f,_0x2d7543[0x0]):_0x1fa07a['removeMarker'](_0x13e80f['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x332aac){this['_editor']=_0x332aac,this['_model']=_0x332aac['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x468584,_0x89569e,_0x153d85,_0x19206d,_0x4a9b4,_0xb69263){return new u(this['_model'],{'type':_0x468584,'subType':_0x89569e,'id':_0x153d85,'author':_0x19206d,'creator':_0x19206d,'attributes':_0x4a9b4,'onAttributesChange':_0xb69263,'onAccept':(..._0x4c6d76)=>this['getSuggestionCallback'](_0x468584,_0x89569e,'accept')(..._0x4c6d76),'onDiscard':(..._0x2e30fb)=>this['getSuggestionCallback'](_0x468584,_0x89569e,'discard')(..._0x2e30fb)});}['registerCustomCallback'](_0x2af31f,_0x1f30a1,_0x5958cb,_0x24d720){const _0x3fad06=_0x2af31f+':'+_0x1f30a1+':'+_0x5958cb;this['_customCallbacks']['set'](_0x3fad06,_0x24d720);}['getSuggestionCallback'](_0x41124e,_0x351550,_0x5df0b8){const _0x43f4fa=_0x41124e+':'+_0x351550+':'+_0x5df0b8;return this['_customCallbacks']['get'](_0x43f4fa)||this['_defaultCallbacks']['get'](_0x41124e+':'+_0x5df0b8);}['_registerDefaultCallbacks'](){const _0x280b94=()=>!0x1,_0x1f18f8=_0x28c605=>{_0x28c605['sort']((_0x32d8c8,_0x45da17)=>_0x32d8c8['start']['isBefore'](_0x45da17['start'])?0x1:-0x1),this['_model']['change'](_0x4f7881=>{for(const _0x2b1917 of _0x28c605){let _0x3e7fbe;_0x3e7fbe=_0x2b1917['end']['isAtEnd']&&_0x2b1917['end']['parent']==_0x2b1917['start']['nodeAfter']?_0x4f7881['createSelection'](_0x2b1917['start']['nodeAfter'],'on'):_0x4f7881['createSelection'](_0x2b1917),this['_model']['deleteContent'](_0x3e7fbe,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x9728c7=(_0x1bdb57,_0x47d379)=>{_0x47d379&&this['_model']['change'](_0x48e1ce=>{const {commandName:_0x40b245,commandParams:_0x552200=[]}=_0x47d379,_0x33b6e7=_0x1bdb57['map'](_0x7e4a88=>(Tt(_0x7e4a88)&&(_0x7e4a88=this['_model']['createRange'](_0x7e4a88['end'])),_0x7e4a88))['filter'](_0x549d3e=>'$graveyard'!==_0x549d3e['root']['rootName']);if(_0x33b6e7['length']<0x1)return;const _0x26c8c9=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1106f5=>_0x5e8b6d['fromRange'](_0x1106f5));_0x48e1ce['setSelection'](_0x33b6e7);for(const _0x2fd6e6 of this['_editor']['commands']['commands']())_0x2fd6e6['refresh']();_0x552200['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x40b245,..._0x552200);const _0x5602c5=_0x26c8c9['filter'](_0x103368=>'$graveyard'!=_0x103368['root']['rootName']);_0x5602c5['length']>0x0&&_0x48e1ce['setSelection'](_0x5602c5);for(const _0x175400 of _0x26c8c9)_0x175400['detach']();});},_0x39b9e3=(_0x535ef2,_0x544740)=>0x1==_0x535ef2['length']&&0x1==_0x544740['length']&&_0x535ef2[0x0]['end']['isEqual'](_0x544740[0x0]['start']),_0x923642=(_0x21c874,_0x19dbdd,_0x561fa8,_0x1bbfbb)=>Ft(_0x21c874,_0x19dbdd,_0x561fa8,_0x1bbfbb,this['_model'])?[_0x21c874,_0x19dbdd]:Ft(_0x19dbdd,_0x21c874,_0x1bbfbb,_0x561fa8,this['_model'])?[_0x19dbdd,_0x21c874]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x280b94),this['_defaultCallbacks']['set']('insertion:discard',_0x1f18f8),this['_defaultCallbacks']['set']('insertion:join',_0x39b9e3),this['_defaultCallbacks']['set']('insertion:chain',_0x923642),this['_defaultCallbacks']['set']('deletion:accept',_0x1f18f8),this['_defaultCallbacks']['set']('deletion:discard',_0x280b94),this['_defaultCallbacks']['set']('deletion:join',_0x39b9e3),this['_defaultCallbacks']['set']('deletion:chain',_0x923642),this['_defaultCallbacks']['set']('formatInline:accept',_0x9728c7),this['_defaultCallbacks']['set']('formatInline:discard',_0x280b94),this['_defaultCallbacks']['set']('formatInline:join',_0x39b9e3),this['_defaultCallbacks']['set']('formatInline:chain',_0x280b94),this['_defaultCallbacks']['set']('formatBlock:accept',_0x9728c7),this['_defaultCallbacks']['set']('formatBlock:discard',_0x280b94),this['_defaultCallbacks']['set']('formatBlock:join',_0x39b9e3),this['_defaultCallbacks']['set']('formatBlock:chain',_0x280b94),this['_defaultCallbacks']['set']('attribute:accept',_0x280b94),this['_defaultCallbacks']['set']('attribute:discard',(_0x176f9e,_0x41d946)=>{if(!_0x41d946)return;const _0x25631d=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x155373=>{if(_0x41d946['key']==m)for(const _0x13028b of _0x176f9e){const _0x4e71f4=_0x13028b['start']['nodeAfter'],_0x33ecdb=_0x41d946['oldValue'];_0x155373['rename'](_0x4e71f4,_0x33ecdb);}else{if(_0x25631d['_isBlockAttribute'](_0x41d946['key'])){for(const _0x57ae50 of _0x176f9e)void 0x0!==_0x41d946['oldValue']?_0x155373['setAttribute'](_0x41d946['key'],_0x41d946['oldValue'],_0x57ae50['start']['nodeAfter']):_0x155373['removeAttribute'](_0x41d946['key'],_0x57ae50['start']['nodeAfter']);}else{for(const _0x230130 of _0x176f9e)_0x41d946['oldValue']?_0x155373['setAttribute'](_0x41d946['key'],_0x41d946['oldValue'],_0x230130):_0x155373['removeAttribute'](_0x41d946['key'],_0x230130);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x39b9e3);}}function Rt(_0x37b587,_0x5e444c,_0x582e82){for(const _0x26863b of _0x5e444c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x26863b['root']==_0x26863b)return!0x1;if(!_0x582e82['containsItem'](_0x26863b))return!0x1;if(_0x37b587['isObject'](_0x26863b)||_0x37b587['isLimit'](_0x26863b))return!0x0;}return!0x1;}function Tt(_0x161629){return _0x161629['end']['parent']==_0x161629['start']['nodeAfter']&&_0x161629['end']['isAtStart'];}function Et(_0x1cc308,_0x19a97a,_0x1f2edc,_0x1b661a){const _0x353921=_0x4f2da6=>!_0x4f2da6['item']['is']('$textProxy')&&!_0x1b661a['isObject'](_0x4f2da6['item']),_0x441532=_0x1cc308['start']['getLastMatchingPosition'](_0x353921),_0x3aebac=_0x1cc308['end']['getLastMatchingPosition'](_0x353921,{'direction':'backward'});return(!_0x1cc308['start']['isEqual'](_0x441532)||!_0x1cc308['end']['isEqual'](_0x3aebac))&&(_0x441532['isBefore'](_0x3aebac)?_0x1f2edc['updateMarker'](_0x19a97a,{'range':_0x1f2edc['createRange'](_0x441532,_0x3aebac)}):_0x1f2edc['removeMarker'](_0x19a97a),!0x0);}function Vt(_0x21f8af){return _0x4e2023(_0x21f8af);}function Ut(_0x371ffb){const _0x4c92be=_0x371ffb['start']['nodeAfter'];return _0x4c92be&&_0x4c92be['is']('element');}function Ot(_0x1c2244,_0x5b3077){return null==_0x1c2244['end']['nodeBefore']&&_0x1c2244['end']['parent']==_0x1c2244['start']['nodeAfter']?Gt(_0x1c2244['start']['nodeAfter'],_0x5b3077):_0x1c2244;}function Gt(_0x20fc0b,_0x563d97){const _0x571097=_0x563d97['schema']['isObject'](_0x20fc0b)||_0x563d97['schema']['isSelectable'](_0x20fc0b);return _0x563d97['createRange'](_0x563d97['createPositionAt'](_0x20fc0b,'before'),_0x571097?_0x563d97['createPositionAfter'](_0x20fc0b):_0x563d97['createPositionAt'](_0x20fc0b,'end'));}function Ft(_0x593737,_0x192885,_0x483af9,_0x2b0871,_0x2d2310){if(!Pt(_0x593737,_0x192885))return!0x1;if(_0x483af9['end']['isEqual'](_0x2b0871['start']))return!0x0;if(_0x593737['type']!=_0x192885['type'])return!0x1;if(!_0x483af9['end']['isTouching'](_0x2b0871['start']))return!0x1;const _0x228413=_0x2d2310['createRange'](_0x483af9['end'],_0x2b0871['start'])['getWalker']();for(const _0x4b57c1 of _0x228413)if(['elementStart','elementEnd']['includes'](_0x4b57c1['type'])&&_0x2d2310['schema']['isLimit'](_0x4b57c1['item']))return!0x1;return!0x0;}function Pt(_0xd2c644,_0x1bf407,_0x3070a6=[]){return!(!_0xd2c644['_isDataLoaded']||!_0x1bf407['_isDataLoaded'])&&_0x260467(Bt(_0xd2c644['attributes'],_0x3070a6),Bt(_0x1bf407['attributes'],_0x3070a6));}function Lt(_0x55e08a,_0x1f3017){const _0x11e541=Ht(_0x55e08a['attributes']),_0x4f8885=Ht(_0x1f3017);if(!_0x55e08a['_isDataLoaded'])return!0x1;for(const _0x4072aa of Object['keys'](_0x4f8885))if(!_0x260467(_0x11e541[_0x4072aa],_0x4f8885[_0x4072aa]))return!0x1;return!0x0;}function Ht(_0x2ec1bc){const _0x1f75c2=Object['assign']({},_0x2ec1bc);return delete _0x1f75c2['skipNestingCheck'],delete _0x1f75c2['tablePasteChainId'],_0x1f75c2;}class oe extends/* #__PURE__ -- @preserve */
25
+ _0x511707(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x596f68,_0x3df1f7,_0x21fbb4,_0x539904){super(),this['model']=_0x3df1f7,this['view']=_0x21fbb4,this['commentThreadController']=_0x539904,this['_editor']=_0x596f68,this['_acceptCommand']=_0x596f68['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x596f68['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2e90d5,_0x2c8f79)=>_0x2e90d5||_0x2c8f79),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x219f98=>_0x219f98&&this['_editor']['model']['canEditAt'](_0x3df1f7['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5737c5=>_0x5737c5&&this['_editor']['model']['canEditAt'](_0x3df1f7['getRanges']())),this['_pendingAction']=null,_0x21fbb4['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x21fbb4,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x21fbb4,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x21fbb4,'change:isDirty',()=>{_0x21fbb4['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 _0xa7fc1=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xa7fc1);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x1f4890{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x52a8e3,_0x491105,_0x280839,_0x3b643b){super(_0x52a8e3),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x491105['authoredAt']),this['bind']('authoredAt')['to'](_0x491105),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x491105,this['_localUser']=_0x280839,this['_config']=_0x3b643b,_0x3b643b['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3948b4}=this['_config'];this['commentsListView']=new _0x3948b4(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',_0x18c064=>_0x18c064+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4fa1ac,_0x5176f0)=>_0x4fa1ac||!!_0x5176f0);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1ce6a4}=this['_config'],_0x1e967a=new _0x1ce6a4(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xa2af85=_0x1e967a['commentInputView'];return _0x1e967a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xa2af85,'value',(_0xaf7a88,_0x7f5116,_0x2fd538)=>!!_0x2fd538||_0xaf7a88&&!_0x7f5116),_0xa2af85['on']('submit',(_0x48a1be,_0x1cca61)=>{this['fire']('addComment',_0x1cca61),_0xa2af85['editor']['setData']('');}),_0xa2af85['on']('cancel',()=>this['focus']()),_0xa2af85['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1e967a;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x382407,_0x17fbaa,_0x3b9058,_0x38eb76){super(_0x382407,_0x17fbaa,_0x3b9058,_0x38eb76),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3c7cbf=>_0x3c7cbf&&_0x3c7cbf[0x0]?_0x3c7cbf[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1c7919,_0x1261b8)=>{let _0x4136ce='';for(const _0x3a4c61 of _0x1c7919)_0x4136ce+='<p>'+ds(_0x3a4c61['content'],_0x3a4c61['color'])+'</p>';return _0x1261b8?_0x4136ce:_0x21e9b6(_0x4136ce,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x382407,'Accept\x20suggestion'),_0x51c65d['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x382407,'Discard\x20suggestion'),_0x51c65d['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x40e36d(_0x382407,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x49e067=this['bindTemplate'],_0x4e9483=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x49e067['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x49e067['to']('authoredAt',_0x4c278f=>this['_config']['formatDateTime'](_0x4c278f))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x4e9483['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x4f6af9={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x49e067['if']('isActive','ck-suggestion-wrapper--active'),_0x49e067['to']('type',_0x33165e=>'ck-suggestion-'+_0x33165e),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':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x4e9483}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x4f6af9['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x4f6af9;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x333cdb,_0x1d0915,_0x122ca6)=>{this['_descriptionElement']['innerHTML']=_0x122ca6;});}['_createButton'](_0x203643,_0x49e154,_0x29ed46,_0x5bf671,_0x13a37e){const _0x33a6bf=new _0x486fa(this['locale']);return _0x33a6bf['set']({'label':_0x203643,'icon':_0x49e154,'tooltip':!0x0,'tooltipPosition':_0x13a37e}),_0x33a6bf['extendTemplate']({'attributes':{'class':_0x29ed46}}),_0x33a6bf['on']('execute',()=>{this['fire'](_0x5bf671,this['_model']['id']);}),_0x33a6bf;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['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;}}function ds(_0x56a914,_0x22f2a4){let _0x339f99='';return _0x339f99+=_0x56a914['split']('*')['map']((_0x5cc0f8,_0x3167b3)=>_0x3167b3%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x5cc0f8)+'</span>':us(_0x5cc0f8))['join'](''),_0x22f2a4&&(_0x339f99+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x22f2a4['value']+'\x22\x20title=\x22'+_0x22f2a4['title']+'\x22></span>'),_0x339f99;}function us(_0x41cbb5){const _0x4f92eb=document['createElement']('span');return _0x4f92eb['innerText']=_0x41cbb5,_0x4f92eb['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x1dc395{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4c39fc,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x493d7b){super(_0x493d7b),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1df048=this['editor']['config'];_0x1df048['define']('trackChanges.SuggestionThreadView',ne),_0x1df048['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1df048['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1f01a9,_0xca68ce){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x56acbc,_0xfd44a5]of this['_handleControllerBuffer']){const _0x964715=this['_suggestionToController']['has'](_0x56acbc);_0x964715||_0xfd44a5?_0x964715&&_0xfd44a5&&this['_destroyController'](_0x56acbc):this['_initializeController'](_0x56acbc);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1f01a9,_0xca68ce);}['init'](){const _0x2e0785=this['editor'],_0x2470e3=_0x2e0785['plugins']['get']('TrackChangesEditing'),_0x56b51d=_0x2e0785['plugins']['get']('Annotations'),_0x49df60=_0x2e0785['plugins']['get']('EditorAnnotations'),_0x376fee=_0x2e0785['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x49df60['addSourceCollector'](()=>{const _0x3368e1=[];for(const [_0x416654,_0x1a4e3e]of Array['from'](this['_suggestionToController'])){const _0x49fe83=_0x416654['getAllAdjacentSuggestions'](),_0x23e79b=[];for(const _0x521829 of _0x49fe83){if(!_0x521829['isInContent'])continue;if(_0x521829['isMultiRange']){_0x23e79b['push'](..._0x521829['getRanges']());continue;}const _0x5cec35=_0x521829['getFirstRange']();if(_0x23e79b['length']>0x0){const _0x42fc36=_0x23e79b[0x0]['getJoined'](_0x5cec35);if(_0x42fc36){_0x23e79b[0x0]=_0x42fc36;continue;}}_0x23e79b['push'](_0x5cec35);}_0x3368e1['push']([_0x1a4e3e['view'],_0x23e79b]);}return _0x3368e1;}),this['listenTo'](_0x2470e3,'suggestionLoaded',(_0x4da607,_0x3e8c81)=>{this['listenTo'](_0x3e8c81,'change:previous',(_0x50a44c,_0x3c28df,_0x10c5ad,_0x1e4611)=>{_0x3e8c81['isInContent']&&(null==_0x10c5ad?(this['_updateController'](_0x1e4611['head']),this['_handleSuggestionControllerDelayed'](_0x3e8c81,!0x1)):(this['_updateController'](_0x10c5ad['head']),null==_0x1e4611&&this['_handleSuggestionControllerDelayed'](_0x3e8c81,!0x0)));}),null!==_0x3e8c81['previous']?this['_updateController'](_0x3e8c81['head']):this['_handleSuggestionControllerDelayed'](_0x3e8c81,!0x1);}),this['listenTo'](_0x2470e3,'suggestionUnloaded',(_0x4fa4e5,_0x29417c,_0x57d68f)=>{this['stopListening'](_0x29417c,'change:previous'),this['_handleControllerBuffer']['delete'](_0x29417c),this['_suggestionToController']['has'](_0x29417c)&&this['_destroyController'](_0x29417c),_0x57d68f&&this['_updateController'](_0x57d68f['head']);}),this['listenTo'](_0x2470e3,'suggestionChanged',(_0x4e0e8c,_0x5a0bd4)=>{this['_updateController'](_0x5a0bd4);}),this['listenTo'](_0x56b51d,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x376fee,'addComment',(_0x43f9ac,{threadId:_0x5aa2e5,isFromAdapter:_0x1660fe})=>{if(_0x1660fe||!_0x2470e3['hasSuggestion'](_0x5aa2e5))return;const _0x316a14=_0x2470e3['getSuggestion'](_0x5aa2e5);this['_suggestionToController']['get'](_0x316a14)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x29d363=this['editor']['plugins']['get']('Annotations'),_0x3abde8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51c74c=Array['from'](_0x29d363['activeAnnotations'],_0x5c5c1f=>_0x5c5c1f['innerView'])['filter'](_0x248dc8=>this['_viewToController']['has'](_0x248dc8)),_0x4627dc=[];for(const _0x500fcf of _0x51c74c){const _0x24e6a3=this['_viewToController']['get'](_0x500fcf)['model']['getAllAdjacentSuggestions']();_0x4627dc['push'](..._0x24e6a3['reduce']((_0x62867b,_0x56b7ec)=>[..._0x62867b,..._0x56b7ec['getMarkerNames']()],[]));}_0x3abde8['activeMarkers']=_0x4627dc;}['_addUIComponentsToFactory'](){const _0x24ae49=this['editor'],_0x4c82d4=_0x24ae49['locale'],_0x1687f9=o(_0x4c82d4,'Track\x20changes'),_0x5bed4e=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'isToggleable':!0x0,'label':_0x1687f9,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4c82d4,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4c82d4,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4c82d4,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4c82d4,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x1682a6 of _0x5bed4e)if(ae(_0x1682a6)){const _0x555160=_0x24ae49['commands']['get'](_0x1682a6['model']['commandName']);_0x1682a6['model']['bind']('isOn','isEnabled')['to'](_0x555160,'value','isEnabled');}_0x24ae49['ui']['componentFactory']['add']('trackChanges',_0x3d3aa5=>this['_createToolbarButton'](_0x3d3aa5,_0x5bed4e,_0x1687f9)),_0x24ae49['ui']['componentFactory']['add']('menuBar:trackChanges',_0xf4fc06=>this['_createMenuBarMenu'](_0xf4fc06,_0x5bed4e,_0x1687f9));}['_createToolbarButton'](_0x1fe024,_0x817e88,_0x5f0464){const _0x447034=zt(_0x1fe024,Zt),_0x34837c=this['editor']['commands']['get']('trackChanges');_0x447034['buttonView']['set']({'tooltip':_0x5f0464,'label':_0x5f0464,'icon':ie}),_0x447034['buttonView']['bind']('isOn')['to'](_0x34837c,'value'),_0x447034['buttonView']['on']('execute',()=>{_0x34837c['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x447034,_0x817e88,{'role':'menu'});const _0x249ad1=[];for(const _0x5d9a37 of _0x817e88)ae(_0x5d9a37)&&_0x249ad1['push'](this['editor']['commands']['get'](_0x5d9a37['model']['commandName']));const _0x245d9a=_0x447034['buttonView'];return _0x245d9a['actionView']['unbind']('isEnabled'),_0x245d9a['arrowView']['unbind']('isEnabled'),_0x245d9a['actionView']['bind']('isEnabled')['to'](_0x34837c,'isEnabled'),_0x245d9a['arrowView']['bind']('isEnabled')['toMany'](_0x249ad1,'isEnabled',(..._0x22a185)=>_0x22a185['some'](_0x38ab90=>_0x38ab90)),_0x447034['on']('execute',_0x3cd937=>{this['editor']['execute'](_0x3cd937['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x447034;}['_createMenuBarMenu'](_0x522ba8,_0x450230,_0xd818e7){const _0x547ac1=new Kt(_0x522ba8),_0x52e9f0=this['editor']['commands']['get']('trackChanges');_0x547ac1['buttonView']['set']({'label':_0xd818e7,'icon':ie});const _0x44dcf7=new Qt(_0x522ba8);for(const _0x6c5cd3 of _0x450230){if('separator'==_0x6c5cd3['type']){_0x44dcf7['items']['add'](new Jt(_0x522ba8));continue;}const _0x3ae812=new Xt(_0x522ba8,_0x547ac1),_0x4f3d8c=new Yt(_0x522ba8),_0x361b59=_0x6c5cd3['model'];_0x4f3d8c['bind'](...Object['keys'](_0x361b59))['to'](_0x361b59),_0x4f3d8c['delegate']('execute')['to'](_0x547ac1),_0x4f3d8c['on']('execute',()=>{this['editor']['execute'](_0x361b59['commandName']),this['editor']['editing']['view']['focus']();}),_0x3ae812['children']['add'](_0x4f3d8c),_0x44dcf7['items']['add'](_0x3ae812);}return _0x547ac1['bind']('isEnabled')['to'](_0x52e9f0,'isEnabled'),_0x547ac1['panelView']['children']['add'](_0x44dcf7),_0x547ac1;}['_initializeController'](_0x3b0657){const _0x2b92e3=this['editor'],_0x2b135a=_0x2b92e3['config'],_0x391c40=_0x2b92e3['plugins']['get']('Annotations'),_0x305a8e=_0x2b92e3['plugins']['get']('CommentsRepository'),_0x194637=_0x2b92e3['plugins']['get']('EditorAnnotations'),_0x259991=_0x2b92e3['plugins']['get'](_0x4c39fc)['me'],_0x56db93=_0x2b135a['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x36176b,CommentThreadInputView:_0x273553}=_0x2b92e3['plugins']['get']('CommentsUI');let _0x191365,_0x28be54;this['_annotationViews']['has'](_0x3b0657['id'])?(_0x28be54=this['_annotationViews']['get'](_0x3b0657['id']),_0x191365=_0x28be54['mainView']):(_0x191365=new _0x56db93(_0x2b92e3['locale'],_0x3b0657,_0x259991,{'disableComments':this['_disableComments'],'editorConfig':_0x2b135a['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x2b135a['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2b135a['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2b135a['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2f1ee9(_0x2b135a['get']('locale')),'CommentView':_0x2b135a['get']('comments')['CommentView'],'CommentsListView':_0x36176b,'CommentThreadInputView':_0x273553}),_0x191365['acceptButton']['on']('execute',()=>{_0x2b92e3['editing']['view']['focus']();}),_0x191365['discardButton']['on']('execute',()=>{_0x2b92e3['editing']['view']['focus']();}),_0x28be54=_0x391c40['createAnnotationView'](this['editor']['locale'],_0x191365),_0x28be54['bind']('isDirty')['to'](_0x191365,'isDirty'),_0x28be54['bind']('length')['to'](_0x191365),_0x28be54['bind']('type')['to'](_0x191365,'type',_0x820a81=>'suggestion-'+_0x820a81),this['_annotationViews']['set'](_0x3b0657['id'],_0x28be54));const _0x50698d=_0x305a8e['createCommentThreadController'](_0x3b0657['commentThread'],_0x191365),_0x500646=new oe(_0x2b92e3,_0x3b0657,_0x191365,_0x50698d),_0xeb0bbf=_0x3b0657['getAllAdjacentSuggestions']()['filter'](_0x2212eb=>_0x2212eb['isInContent']);_0x191365['descriptionParts']=_0x2b92e3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xeb0bbf),this['_suggestionToController']['set'](_0x3b0657,_0x500646),this['_viewToController']['set'](_0x191365,_0x500646);const _0x57b55e=_0x391c40['createAnnotation']({'view':_0x28be54,'target':()=>{const _0x4c66fb=[],_0x40c69b=_0x3b0657['getAllAdjacentSuggestions']()['filter'](_0x5687ee=>_0x5687ee['isInContent']);for(const _0x17d71f of _0x40c69b)_0x4c66fb['push'](..._0x17d71f['getMarkers']());return _0x3246a6(_0x2b92e3['editing'],_0x4c66fb);},'type':()=>'suggestion-'+_0x500646['view']['type']});_0x305a8e['_bindAnnotationToEditors'](_0x191365,_0x57b55e),_0x391c40['add'](_0x57b55e),_0x194637['registerAnnotation'](_0x57b55e);}['_destroyController'](_0x272971){const _0x3a6372=this['editor']['plugins']['get']('CommentsRepository'),_0x10d907=this['editor']['plugins']['get']('Annotations'),_0x48b81d=this['_suggestionToController']['get'](_0x272971),_0x3b7c08=_0x48b81d['view'],_0x39c573=_0x10d907['getByInnerView'](_0x3b7c08);_0x3a6372['_unbindEditors'](_0x3b7c08),_0x39c573&&_0x10d907['remove'](_0x39c573),this['_suggestionToController']['delete'](_0x272971),this['_viewToController']['delete'](_0x3b7c08),_0x48b81d['destroy']();}['_updateController'](_0x399145){if(!_0x399145['isInContent']||!this['_suggestionToController']['has'](_0x399145))return;const _0x29a223=this['editor']['plugins']['get']('TrackChangesEditing'),_0x10df2a=this['_suggestionToController']['get'](_0x399145),_0xc99453=_0x399145['getAllAdjacentSuggestions']();_0x10df2a['view']['descriptionParts']=_0x29a223['descriptionFactory']['getDescriptions'](_0xc99453);}['destroy'](){for(const _0x1fd80d of this['_suggestionToController']['keys']())this['_destroyController'](_0x1fd80d);for(const _0x5daf01 of this['_annotationViews']['values']())_0x5daf01['mainView']['destroy']();super['destroy']();}}function ae(_0x257ba7){return'model'in _0x257ba7;}class k extends _0x1dc395{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x135803){this['editor']['plugins']['get'](p)['adapter']=_0x135803;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x55ad8a){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x55ad8a);}['getSuggestions']({skipNotAttached:_0x1ce33d=!0x1,toJSON:_0x122771=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1ce33d,'toJSON':_0x122771});}['getSuggestion'](_0x3a8b72){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x3a8b72);}}const T=['Pagination'];class P extends _0x1dc395{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4cf855=this['editor'];if(_0x4cf855['config']['define']('trackChangesData.editorCreator',_0x56afce=>{const _0xd21ab5=_0x4cf855['model']['document']['getRootNames']()['reduce']((_0x1dcb5c,_0x75752)=>(_0x1dcb5c[_0x75752]='',_0x1dcb5c),{});return _0x4cf855['constructor']['create'](_0xd21ab5,_0x56afce);}),'function'!=typeof _0x4cf855['config']['get']('trackChangesData')['editorCreator'])throw new _0x197e78('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xa77037){return N(this['editor'],!0x0,_0xa77037);}['getDataWithDiscardedSuggestions'](_0x479e44){return N(this['editor'],!0x1,_0x479e44);}}class D extends _0x1dc395{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x381159){super(_0x381159),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x3911){return void 0x0!==_0x3911['getRootsAttributes'];}async function N(_0x4b3012,_0x5ac2d4,_0x34f837){const _0x97ce7e=_0x2a7688(_0x4b3012,T);_0x97ce7e['plugins']['push'](p,D),_0x97ce7e['rootsAttributes']=v(_0x4b3012)?_0x4b3012['getRootsAttributes']():void 0x0;const _0x1c4c84=document['createDocumentFragment'](),_0x2f6643=_0x4b3012['config']['get']('trackChangesData')['editorCreator'],_0x5df4ca=await _0x2f6643(_0x97ce7e,()=>function(_0x4120ce){const _0xed45b4=document['createElement']('div');return _0x4120ce['appendChild'](_0xed45b4),_0xed45b4;}(_0x1c4c84));!function(_0x5a430e,_0x36c744){const _0x28ece7=_0x5a430e['model']['document']['getRootNames']()['reduce']((_0x5418b8,_0x4ffad5)=>(_0x5418b8[_0x4ffad5]=_0x5a430e['data']['get']({'rootName':_0x4ffad5}),_0x5418b8),{}),_0x5758d9=_0x5a430e['plugins']['get']('Users')['users']['map'](_0x21eb0b=>({'id':_0x21eb0b['id'],'name':_0x21eb0b['name']})),_0x4687dd=_0x5a430e['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x15ce54=_0x5a430e['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3fc1d4=_0x36c744['plugins']['get']('Users'),_0x1792e8=_0x36c744['plugins']['get']('TrackChangesEditing'),_0x239f49=_0x36c744['plugins']['get']('CommentsRepository');for(const _0x3bbe04 of _0x5758d9)_0x3fc1d4['getUser'](_0x3bbe04['id'])||_0x3fc1d4['addUser'](_0x3bbe04);_0x3fc1d4['me']||_0x3fc1d4['useAnonymousUser']();for(const _0x81397e of _0x15ce54)_0x239f49['addCommentThread'](_0x81397e);for(const _0x21a017 of _0x4687dd)_0x1792e8['addSuggestionData'](_0x21a017);_0x36c744['data']['set'](_0x28ece7);}(_0x4b3012,_0x5df4ca),_0x5df4ca['execute'](_0x5ac2d4?'acceptAllSuggestions':'discardAllSuggestions');const _0x5c1173=v(_0x5df4ca)?_0x5df4ca['getFullData'](_0x34f837):_0x5df4ca['data']['get'](_0x34f837);return await _0x5df4ca['destroy'](),_0x5c1173;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};