@ckeditor/ckeditor5-track-changes 42.0.2-alpha.0 → 42.0.2-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as ts,Plugin as _0x3cf114,PendingActions as _0x9b188d,icons as _0x161f69}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x9391a,ObservableMixin as _0x5c2606,uid as _0x2dd115,insertToPriorityArray as _0xf4ef19,priorities as _0x2b5f0a,logWarning as _0x4266f5,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x107a8d,View as _0x773267,ButtonView as _0x16fa56,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 _0x188410,hashObject as _0x58ab75,surroundingMarkersDetector as _0x17149d,trimHtml as _0x5521ea,UserView as _0x307376,getDateTimeFormatter as _0x1b6479,getAllMarkersDomElementsSorted as _0xd9568a,sanitizeEditorConfig as _0x24751a}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x19677a,LiveRange as _0x150295,LivePosition as _0x23a885}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x233cfd,toWidget as _0x125844}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x579904,set as _0x1524a0,isEqual as _0x10efed,unset as _0x53e984,omit as Bt}from'lodash-es';import{Delete as _0x42bf9b,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5476d9,ShiftEnter as _0x4ea829}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x14800c,_0x13e1eb){super(_0x14800c),this['_enabledCommands']=_0x13e1eb,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 _0x4990a7 of this['editor']['commands']['commands']())_0x4990a7['affectsData']&&!this['_enabledCommands']['has'](_0x4990a7)&&_0x4990a7['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5e381d of this['editor']['commands']['commands']())_0x5e381d['affectsData']&&!this['_enabledCommands']['has'](_0x5e381d)&&_0x5e381d['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0xfe36f0,_0x4aad46){super(_0xfe36f0),this['_suggestions']=_0x4aad46,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1b940b){const _0x1b9059=this['_suggestions']['get'](_0x1b940b);if(!_0x1b9059)throw new _0x9391a('track-changes-accept-suggestion-not-found',this);const _0x257737=_0x1b9059['getRanges']();this['editor']['model']['canEditAt'](_0x257737)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1b9059);}}class B extends ts{['_suggestions'];constructor(_0x152273,_0x1d0f69){super(_0x152273),this['_suggestions']=_0x1d0f69,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2b0643){const _0x1fcfb2=this['_suggestions']['get'](_0x2b0643);if(!_0x1fcfb2)throw new _0x9391a('track-changes-discard-suggestion-not-found',this);const _0x1b6031=_0x1fcfb2['getRanges']();this['editor']['model']['canEditAt'](_0x1b6031)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1fcfb2);}}function ss(_0xa53f5a){return _0xa53f5a['sort']((_0x1962f9,_0x52a596)=>'deletion'==_0x1962f9['type']&&'deletion'!=_0x52a596['type']?-0x1:'deletion'!=_0x1962f9['type']&&'deletion'==_0x52a596['type']?0x1:0x0);}function to(_0x1b705c,_0x590d55){let _0x41bde5,_0x3a81f9=0x0;const _0x3a0bcd=[],_0x58f572=_0x590d55['schema'];for(;_0x3a81f9<_0x1b705c['length'];){const _0x22951e=_0x1b705c[_0x3a81f9],_0x425c60=_0x1b705c[_0x3a81f9+0x1];_0x41bde5||(_0x41bde5=_0x590d55['createPositionBefore'](_0x22951e)),co(_0x590d55,_0x22951e,_0x425c60)||(_0x3a0bcd['push'](_0x590d55['createRange'](_0x41bde5,_0x58f572['isObject'](_0x22951e)?_0x590d55['createPositionAfter'](_0x22951e):_0x590d55['createPositionAt'](_0x22951e,'end'))),_0x41bde5=null),_0x3a81f9++;}return _0x3a0bcd;}function co(_0xc72f61,_0x20f6e4,_0x34c2c4){if(!_0x34c2c4)return!0x1;const _0x39d599=_0xc72f61['createPositionAfter'](_0x20f6e4),_0x3656e2=_0xc72f61['createPositionBefore'](_0x34c2c4);return _0x39d599['isTouching'](_0x3656e2);}function rs(_0x403c8b,_0x56b7f8,_0x3d7f29){for(;_0x3d7f29['length'];){const _0x3efa0b=_0x3d7f29['splice'](0x0,0x64);_0x403c8b['change'](()=>{for(const _0x40a5da of _0x3efa0b)_0x40a5da['isInContent']&&_0x56b7f8['execute'](_0x40a5da['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x3ba9a3,_0x2cc9fa,_0x3ed187){super(_0x3ba9a3),this['_command']=_0x2cc9fa,this['_suggestions']=_0x3ed187,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x22e5de=Array['from'](this['_suggestions']['values']())['some'](_0x1c3fb0=>_0x1c3fb0['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x22e5de;}['execute'](){const _0x687c0a=ss(Array['from'](this['_suggestions']['values']()));for(const _0x5ea424 of _0x687c0a){const _0x310614=_0x5ea424['getRanges']();if(!this['editor']['model']['canEditAt'](_0x310614))return;}rs(this['editor']['model'],this['_command'],_0x687c0a);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3b676c,_0x1d5fa5,_0x331a48){super(_0x3b676c),this['_command']=_0x1d5fa5,this['_suggestions']=_0x331a48,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4ae41c=this['editor']['model']['document']['selection'],_0x46d74e=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1c17f6,_0x1afdea){const _0x56bb16=Array['from'](_0x1c17f6['getRanges']()),_0x371208=new Set();for(const _0xe1f1f4 of _0x1afdea)if(_0xe1f1f4['isInContent']){for(const _0x494c24 of _0x56bb16)for(const _0x36c24a of _0xe1f1f4['getRanges']())(_0x494c24['isIntersecting'](_0x36c24a)||_0x1c17f6['isCollapsed']&&!_0xe1f1f4['isMultiRange']&&_0xe1f1f4['next']&&_0x36c24a['end']['isTouching'](_0x494c24['start']))&&_0x371208['add'](_0xe1f1f4);}return _0x371208;}(_0x4ae41c,_0x46d74e),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x516d4e=ss(Array['from'](this['_selectedSuggestions']));for(const _0x3fc0cd of _0x516d4e){const _0x2eae07=_0x3fc0cd['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2eae07))return;}rs(this['editor']['model'],this['_command'],_0x516d4e);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x5c2606(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1e019e,_0x244b12){super(),this['id']=_0x244b12['id'],this['type']=_0x244b12['type'],this['subType']=_0x244b12['subType']||null,this['author']=_0x244b12['author'],this['creator']=_0x244b12['creator']||_0x244b12['author'],this['isExternal']=Boolean(_0x244b12['attributes']&&_0x244b12['attributes']['@external']),this['data']=null,this['_model']=_0x1e019e,this['_onAccept']=_0x244b12['onAccept'],this['_onDiscard']=_0x244b12['onDiscard'],this['_onAttributesChange']=_0x244b12['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x244b12['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 _0x2400cf=this;for(;_0x2400cf['previous'];)_0x2400cf=_0x2400cf['previous'];return _0x2400cf;}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'](_0x30ad55){this['_markerNames']['add'](_0x30ad55);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x30882c=>this['_model']['markers']['get'](_0x30882c))['filter'](_0x310701=>_0x310701);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1c8da8=>{for(const _0x3dba1a of this['getMarkers']())_0x1c8da8['removeMarker'](_0x3dba1a);}),this['_markerNames']['clear']();}['removeMarker'](_0x29883a){this['_model']['change'](_0x31f997=>{_0x31f997['removeMarker'](_0x29883a);}),this['_markerNames']['delete'](_0x29883a);}['addRange'](_0x34bfc3){const _0x4b01a2='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x4b01a2),this['_model']['change'](_0x1b020b=>{_0x1b020b['addMarker'](_0x4b01a2,{'range':_0x34bfc3,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x259140){for(const _0x221596 of this['getRanges']())if(_0x221596['isIntersecting'](_0x259140))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x276e16=>_0x276e16['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xb9912e,_0x2aec3a)=>[..._0xb9912e,..._0x2aec3a['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x337cb9=this['getRanges']();if(0x1!=_0x337cb9['length'])return null;const _0x338d1f=_0x337cb9[0x0],_0x405d24=_0x338d1f['start']['nodeAfter'],_0x3cdf54=_0x338d1f['end']['nodeBefore'];return _0x405d24 instanceof _0x19677a?_0x405d24!=_0x3cdf54?null:_0x405d24: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 _0xcadfd9=[];let _0x3e4756=this['head'];for(;_0x3e4756;)_0xcadfd9['push'](_0x3e4756),_0x3e4756=_0x3e4756['next'];return _0xcadfd9;}['setAttribute'](_0x84c4d1,_0x348bc7){const _0x3bc1c7=_0x579904(this['attributes']);_0x1524a0(_0x3bc1c7,_0x84c4d1,_0x348bc7),_0x10efed(_0x3bc1c7,this['attributes'])||(this['attributes']=_0x3bc1c7,this['_onAttributesChange'](_0x3bc1c7));}['removeAttribute'](_0x193b5c){const _0x568640=_0x579904(this['attributes']);_0x53e984(_0x568640,_0x193b5c),_0x10efed(_0x568640,this['attributes'])||(this['attributes']=_0x568640,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 _0x2dd115()['substr'](0x1,0x5);}}function o(_0x434da8,_0x34d3fb,_0x339f3f){const t=_0x434da8['t'];switch(_0x34d3fb){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',_0x339f3f);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x339f3f);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x339f3f);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x339f3f);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x339f3f);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',_0x339f3f);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x339f3f);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',_0x339f3f);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x339f3f);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x339f3f);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x339f3f);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x339f3f);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x339f3f);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x339f3f);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x339f3f);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x339f3f);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x339f3f);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x339f3f);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x339f3f);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x339f3f);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x339f3f);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x339f3f);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x339f3f);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'},_0x339f3f);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x339f3f);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x339f3f);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x339f3f);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x339f3f);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x339f3f);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'},_0x339f3f);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x339f3f);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x339f3f);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x339f3f);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x339f3f);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'},_0x339f3f);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x339f3f);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'},_0x339f3f);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'},_0x339f3f);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x339f3f);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'},_0x339f3f);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x339f3f);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'},_0x339f3f);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x339f3f);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x339f3f);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'},_0x339f3f);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'},_0x339f3f);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 _0x34d3fb;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x43bbae,_0x4acd23){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x43bbae,this['_locale']=_0x4acd23;}['getDescriptions'](_0x3b3e62){const _0x14dd49=[],_0x31ba6d=new Set(),_0xc54eb5=new Set();for(let _0x5a110c=0x0;_0x5a110c<_0x3b3e62['length'];_0x5a110c++){const _0x4be402=_0x3b3e62[_0x5a110c];if(!_0x4be402['isInContent'])continue;const _0x38791a=this['_handleCustomCallbackDescription'](_0x4be402);if(_0x38791a){if(null!=_0x4be402['subType']){if(_0x31ba6d['has'](_0x4be402['subType']))continue;_0x31ba6d['add'](_0x4be402['subType']);}_0x14dd49['push'](_0x38791a);}else{if('attribute'!=_0x4be402['type'])'insertion'!=_0x4be402['type']&&'deletion'!=_0x4be402['type']||this['_handleInsertRemoveSuggestionDescription'](_0x14dd49,_0x4be402,_0x3b3e62[_0x5a110c+0x1]);else{const _0x4083a9=_0x4be402['data']['key'];if(_0xc54eb5['has'](_0x4083a9))continue;_0xc54eb5['add'](_0x4be402['data']['key']),_0x4083a9==m?this['_handleRenameSuggestionDescription'](_0x14dd49,_0x4be402):this['_handleAttributeSuggestionDescription'](_0x14dd49,_0x4be402);}}}return this['_resolveDescriptionItems'](_0x14dd49);}['registerDescriptionCallback'](_0x5d1770){this['_customCallbacks']['push'](_0x5d1770);}['registerElementLabel'](_0xc2af92,_0x1d5ee9,_0x153b98=_0x2b5f0a['normal']){'function'==typeof _0xc2af92?_0xf4ef19(this['_itemLabelsCallbacks'],{'matchingCallback':_0xc2af92,'label':_0x1d5ee9,'priority':_0x153b98}):this['_itemLabels']['set'](_0xc2af92,_0x1d5ee9);}['registerAttributeLabel'](_0x34f80b,_0x3cb746){this['_attributeLabels']['set'](_0x34f80b,_0x3cb746);}['getItemLabel'](_0x341fc8,_0x23c7bc=0x1){let _0x4e906a;for(const _0x3d4007 of this['_itemLabelsCallbacks'])if(_0x3d4007['matchingCallback'](_0x341fc8)){_0x4e906a=_0x3d4007['label'];break;}return _0x4e906a||(_0x4e906a=this['_itemLabels']['get'](_0x341fc8['name'])),_0x4e906a?_0x4e906a(_0x23c7bc):0x1!==_0x23c7bc?_0x23c7bc+'\x20'+_0x341fc8['name']+'s':''+_0x341fc8['name'];}['_addDescriptionItems'](_0x4caae6,_0x2f7613){const _0xc9ed6e=_0x2f7613['getFirstRange']()['getWalker'](),_0x1635af='insertion'==_0x2f7613['type']?'add':'remove';for(const _0x1e23d9 of _0xc9ed6e){const _0x102249=_0x1e23d9['item'],_0x55a61f=_0x4caae6[_0x4caae6['length']-0x1];if(_0x102249['is']('$textProxy'))_0x55a61f&&_0x55a61f['type']['indexOf']('Container')>-0x1&&_0x4caae6['pop'](),_0x55a61f&&'text'==_0x55a61f['type']?_0x55a61f[_0x1635af]+=_0x102249['data']:_0x4caae6['push']({'type':'text','add':'add'==_0x1635af?_0x102249['data']:'','remove':'remove'==_0x1635af?_0x102249['data']:''});else{if(this['_schema']['isObject'](_0x102249)){const _0x53864f=_0x102249;if(_0x55a61f&&_0x55a61f['type']['indexOf']('Container')>-0x1&&_0x4caae6['pop'](),'elementEnd'==_0x1e23d9['type'])continue;_0x55a61f&&_0x55a61f['type']==_0x1635af+'Object'&&_0x55a61f['element']['name']==_0x53864f['name']?_0x55a61f['quantity']++:_0x4caae6['push']({'type':_0x1635af+'Object','element':_0x53864f,'quantity':0x1}),_0xc9ed6e['skip'](_0x125910=>!('elementEnd'==_0x125910['type']&&_0x125910['item']==_0x102249));}else{if(this['_schema']['checkChild'](_0x102249,'$text')||_0x102249['is']('element','softBreak')){const _0xe44153=_0x102249;if('add'==_0x1635af&&'elementStart'==_0x1e23d9['type']||'remove'==_0x1635af&&'elementEnd'==_0x1e23d9['type'])continue;if(_0x55a61f&&-0x1==_0x55a61f['type']['indexOf']('Container')){'text'==_0x55a61f['type']&&(_0x55a61f[_0x1635af]+='\x0a');continue;}let _0x457783;if(_0x457783='add'==_0x1635af?_0xe44153['nextSibling']&&!this['_schema']['isObject'](_0xe44153['nextSibling'])?_0xe44153['nextSibling']:null:_0xe44153['previousSibling']&&!this['_schema']['isObject'](_0xe44153['previousSibling'])?_0xe44153['previousSibling']:null,_0xe44153['isEmpty']||_0x457783&&_0x457783['isEmpty']){const _0x38d845=_0x457783&&_0x457783['isEmpty']?_0x457783:_0xe44153;_0x55a61f&&_0x55a61f['type']==_0x1635af+'EmptyContainer'&&_0x55a61f['element']['name']==_0x38d845['name']?_0x55a61f['quantity']++:_0x4caae6['push']({'type':_0x1635af+'EmptyContainer','element':_0x38d845,'quantity':0x1});}else _0x4caae6['push']({'type':_0x1635af+'Container','element':_0xe44153});}}}}}['_resolveDescriptionItems'](_0x40811e){const _0x47b84d=this['_locale'],_0x2dc43b=[],_0x1729cf=[],_0xada58b=[];for(const _0x1fc238 of _0x40811e)switch(_0x1fc238['type']){case'text':if(_0x1fc238['add']=_0x1fc238['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1fc238['remove']=_0x1fc238['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1fc238['add']&&''!=_0x1fc238['remove']){_0x2dc43b['push']({'type':'replace','content':o(_0x47b84d,'REPLACE_TEXT',['\x22'+_0x1fc238['remove']+'\x22','\x22'+_0x1fc238['add']+'\x22'])});continue;}if(null!=_0x1fc238['add']['match'](/^ +$/)){_0x2dc43b['push']({'type':'insertion','content':o(_0x47b84d,'*Insert:*\x20%0',o(_0x47b84d,'ELEMENT_SPACE',_0x1fc238['add']['length']))});continue;}if(null!=_0x1fc238['remove']['match'](/^ +$/)){_0x2dc43b['push']({'type':'deletion','content':o(_0x47b84d,'*Remove:*\x20%0',o(_0x47b84d,'ELEMENT_SPACE',_0x1fc238['remove']['length']))});continue;}if(''!=_0x1fc238['add']){_0x2dc43b['push']({'type':'insertion','content':o(_0x47b84d,'*Insert:*\x20%0','\x22'+_0x1fc238['add']+'\x22')});continue;}_0x2dc43b['push']({'type':'deletion','content':o(_0x47b84d,'*Remove:*\x20%0','\x22'+_0x1fc238['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2dc43b['push']({'type':'insertion','content':o(_0x47b84d,'*Insert:*\x20%0',this['getItemLabel'](_0x1fc238['element'],_0x1fc238['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2dc43b['push']({'type':'deletion','content':o(_0x47b84d,'*Remove:*\x20%0',this['getItemLabel'](_0x1fc238['element'],_0x1fc238['quantity']))});continue;case'addContainer':_0x2dc43b['push']({'type':'insertion','content':o(_0x47b84d,'*Split:*\x20%0',this['getItemLabel'](_0x1fc238['element'],_0x1fc238['quantity']))});continue;case'removeContainer':_0x2dc43b['push']({'type':'deletion','content':o(_0x47b84d,'*Merge:*\x20%0',this['getItemLabel'](_0x1fc238['element'],_0x1fc238['quantity']))});continue;case'addFormat':_0x1729cf['push'](_0x1fc238['key']);continue;case'removeFormat':_0xada58b['push'](_0x1fc238['key']);continue;default:_0x2dc43b['push'](_0x1fc238);}if(_0x1729cf['length']){const _0x599744=_0x1729cf['map'](_0x5ec7d5=>this['_attributeLabels']['has'](_0x5ec7d5)?this['_attributeLabels']['get'](_0x5ec7d5):_0x5ec7d5)['join'](',\x20');_0x2dc43b['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x599744)});}if(_0xada58b['length']){const _0x3591aa=_0xada58b['map'](_0x3a703a=>this['_attributeLabels']['has'](_0x3a703a)?this['_attributeLabels']['get'](_0x3a703a):_0x3a703a)['join'](',\x20');_0x2dc43b['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3591aa)});}return _0x2dc43b;}['_handleCustomCallbackDescription'](_0x2cea8c){for(const _0x304775 of this['_customCallbacks']){const _0x1444ca=_0x304775(_0x2cea8c);if(_0x1444ca&&'type'in _0x1444ca)return _0x1444ca;}}['_handleAttributeSuggestionDescription'](_0x5f19f9,_0x2e8679){const _0x44af48=_0x2e8679['data'],_0x263da0=void 0x0===_0x44af48['newValue']?'removeFormat':'addFormat';_0x5f19f9['push']({'type':_0x263da0,'key':_0x44af48['key']});}['_handleRenameSuggestionDescription'](_0x5d18d2,_0x19cefc){_0x5d18d2['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x19cefc['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x57abe2,_0xd40803,_0x27d807){if(this['_addDescriptionItems'](_0x57abe2,_0xd40803),_0x27d807&&_0x27d807['getFirstRange']()&&!_0xd40803['getFirstRange']()['end']['isEqual'](_0x27d807['getFirstRange']()['start'])){const _0x5f47f7=_0x57abe2[_0x57abe2['length']-0x1],_0x261415='insertion'==_0xd40803['type']?'add':'remove';_0x5f47f7&&'text'==_0x5f47f7['type']&&(_0x5f47f7[_0x261415]+='\x0a');}}}class E extends _0x3cf114{['afterInit'](){const _0x297b11=this['editor'],_0x4a0f1e=_0x297b11['plugins']['get']('TrackChangesEditing');_0x297b11['commands']['get']('showAIAssistant')&&_0x4a0f1e['enableCommand']('showAIAssistant');}}class O extends _0x3cf114{['afterInit'](){const _0x20633d=this['editor'],_0x210c1f=_0x20633d['locale'];if(!_0x20633d['plugins']['has']('AlignmentEditing'))return;const _0x200271=_0x20633d['plugins']['get']('TrackChangesEditing');_0x200271['enableDefaultAttributesIntegration']('alignment'),_0x200271['registerBlockAttribute']('alignment'),_0x200271['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x210c1f,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x394ede=this['editor'],_0x30c105=_0x394ede['locale'];_0x394ede['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e552=>{if('formatBlock'!=_0x2e552['type'])return;const {data:_0x24e91f}=_0x2e552;if(_0x24e91f&&'alignment'==_0x24e91f['commandName']){const _0x15591b=_0x24e91f['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x30c105,'*Format:*\x20%0',function(_0x4fad26){switch(_0x4fad26){case'left':return o(_0x30c105,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x30c105,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x30c105,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x30c105,'FORMAT_JUSTIFY_TEXT');}}(_0x15591b))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x3cf114{['afterInit'](){const _0x3cce3b=this['editor'],_0x4994a1=_0x3cce3b['plugins']['get']('TrackChangesEditing'),_0x5e7ed2=_0x3cce3b['locale'];for(const _0x13db34 of ti){if(!_0x3cce3b['plugins']['has'](_0x13db34))continue;const _0x560e96=_0x13db34['slice'](0x0,-0x7)['toLowerCase'](),_0x357828='FORMAT_'+_0x560e96['toUpperCase']();_0x4994a1['enableDefaultAttributesIntegration'](_0x560e96),_0x4994a1['registerInlineAttribute'](_0x560e96),_0x4994a1['descriptionFactory']['registerAttributeLabel'](_0x560e96,o(_0x5e7ed2,_0x357828));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x63c4f7=this['editor'],_0x5db41a=_0x63c4f7['locale'],_0x3f5d0b=_0x63c4f7['plugins']['get']('TrackChangesEditing');function _0x463ed6(_0x453e14,_0x6eef50){_0x3f5d0b['descriptionFactory']['registerDescriptionCallback'](_0x215369=>{if('formatInline'!=_0x215369['type'])return;const {data:_0x27a55f}=_0x215369;return _0x27a55f&&_0x27a55f['commandName']===_0x453e14?_0x27a55f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5db41a,'*Format:*\x20%0',_0x6eef50)}:{'type':'format','content':o(_0x5db41a,'*Remove\x20format:*\x20%0',_0x6eef50)}:void 0x0;});}_0x463ed6('bold',o(_0x5db41a,'FORMAT_BOLD')),_0x463ed6('italic',o(_0x5db41a,'FORMAT_ITALIC')),_0x463ed6('underline',o(_0x5db41a,'FORMAT_UNDERLINE')),_0x463ed6('code',o(_0x5db41a,'FORMAT_CODE')),_0x463ed6('strikethrough',o(_0x5db41a,'FORMAT_STRIKETHROUGH')),_0x463ed6('subscript',o(_0x5db41a,'FORMAT_SUBSCRIPT')),_0x463ed6('superscript',o(_0x5db41a,'FORMAT_SUPERSCRIPT'));}}class U extends _0x3cf114{['afterInit'](){const _0x3e66ed=this['editor'],_0x1cd774=_0x3e66ed['locale'];if(!_0x3e66ed['plugins']['has']('BlockQuoteEditing'))return;const _0x2480e3=_0x3e66ed['plugins']['get']('TrackChangesEditing'),_0x16fe29=this['editor']['commands']['get']('blockQuote');_0x2480e3['enableCommand']('blockQuote',(_0x5834b2,_0x5b2e13={})=>{const _0x507f09=this['editor']['model']['document']['selection'],_0x115b03=_0x5b2e13&&void 0x0!==_0x5b2e13['forceValue']?_0x5b2e13['forceValue']:!_0x16fe29['value'];let _0x2ac443=[];if(_0x115b03){const _0x1eaa16=Array['from'](_0x507f09['getSelectedBlocks']())['filter'](_0x27c746=>oo(_0x27c746)||function(_0x352e14,_0x2dc2b5){const _0x23151b=_0x2dc2b5['checkChild'](_0x352e14['parent'],'blockQuote'),_0x9f830=_0x2dc2b5['checkChild'](['$root','blockQuote'],_0x352e14);return _0x23151b&&_0x9f830;}(_0x27c746,this['editor']['model']['schema']));_0x2ac443=to(_0x1eaa16,_0x3e66ed['model']);}else{const _0x1960ec=Array['from'](_0x507f09['getSelectedBlocks']())['filter'](_0x8da99d=>oo(_0x8da99d));_0x2ac443=to(_0x1960ec,_0x3e66ed['model']);}_0x3e66ed['model']['change'](()=>{for(const _0x242a80 of _0x2ac443)_0x2480e3['markBlockFormat'](_0x242a80,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x115b03}]});});}),_0x2480e3['descriptionFactory']['registerDescriptionCallback'](_0x41496c=>{const {data:_0x1fe829}=_0x41496c;if(_0x1fe829&&'blockQuote'==_0x1fe829['commandName']){const _0x14e4cb=o(_0x1cd774,'ELEMENT_BLOCK_QUOTE');return _0x1fe829['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1cd774,'*Set\x20format:*\x20%0',_0x14e4cb)}:{'type':'format','content':o(_0x1cd774,'*Remove\x20format:*\x20%0',_0x14e4cb)};}});}}function oo(_0x3b8c34){return'blockQuote'==_0x3b8c34['parent']['name'];}class G extends _0x3cf114{['afterInit'](){const _0x3bf6cb=this['editor'];_0x3bf6cb['plugins']['has']('CaseChange')&&(_0x3bf6cb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3bf6cb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3bf6cb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x3cf114{['afterInit'](){const _0x578053=this['editor'];_0x578053['commands']['get']('ckbox')&&_0x578053['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x3cf114{['afterInit'](){const _0x4a659e=this['editor'];if(!_0x4a659e['plugins']['has']('CodeBlock'))return;const _0x5e5c6d=_0x4a659e['plugins']['get']('TrackChangesEditing'),_0x144729=_0x4a659e['locale'],_0x5290bd=_0x4a659e['config']['get']('codeBlock')['languages'],_0x1492a8=_0x4a659e['commands']['get']('codeBlock');_0x5e5c6d['enableCommand']('indentCodeBlock'),_0x5e5c6d['enableCommand']('outdentCodeBlock'),_0x5e5c6d['enableCommand']('codeBlock',(_0x215cc6,_0x2338c6={})=>{const _0x4a4244=_0x4a659e['model'],_0xb521f1=_0x4a659e['model']['document']['selection'],_0x3ec2fc=_0x2338c6&&void 0x0!==_0x2338c6['forceValue']?_0x2338c6['forceValue']:!_0x1492a8['value'];let _0x592b12;_0x2338c6['language']||(_0x2338c6['language']=_0x5290bd[0x0]['language']),_0x592b12=_0x3ec2fc?Array['from'](_0xb521f1['getSelectedBlocks']())['filter'](_0x164e78=>eo(_0x164e78)||function(_0x1988ef,_0x51cb44){if(_0x1988ef['is']('rootElement')||_0x51cb44['isLimit'](_0x1988ef))return!0x1;return _0x51cb44['checkChild'](_0x1988ef['parent'],'codeBlock');}(_0x164e78,_0x4a4244['schema'])):Array['from'](_0xb521f1['getSelectedBlocks']())['filter'](_0x3cdac5=>eo(_0x3cdac5));const _0x4493db=to(_0x592b12,_0x4a4244);_0x4a4244['change'](()=>{for(const _0x17e23c of _0x4493db)_0x5e5c6d['markBlockFormat'](_0x17e23c,{'commandName':'codeBlock','commandParams':[{..._0x2338c6,'forceValue':_0x3ec2fc}],'formatGroupId':'blockName'});});}),(_0x5e5c6d['descriptionFactory']['registerElementLabel']('codeBlock',_0x15b2e3=>o(_0x144729,'ELEMENT_CODE_BLOCK',_0x15b2e3)),_0x5e5c6d['descriptionFactory']['registerDescriptionCallback'](_0x53e41b=>{if('formatBlock'!=_0x53e41b['type'])return;const _0x5906a8=_0x144729['t'],{data:_0x33da6d}=_0x53e41b;if(!_0x33da6d||'codeBlock'!=_0x33da6d['commandName'])return;const _0x1de904=_0x33da6d['commandParams'][0x0]['language'],_0x4e78e7=_0x5906a8(_0x5290bd['find'](_0x1e1774=>_0x1e1774['language']===_0x1de904)['label'])['toLowerCase']();return _0x33da6d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x144729,'*Set\x20format:*\x20%0',o(_0x144729,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4e78e7+')')}:{'type':'format','content':o(_0x144729,'*Remove\x20format:*\x20%0',o(_0x144729,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0xe4192d){return'codeBlock'==_0xe4192d['name'];}class H extends _0x3cf114{['afterInit'](){const _0x3f29ab=this['editor'];if(!_0x3f29ab['plugins']['has']('CommentsEditing'))return;_0x3f29ab['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x783165,_0x40d78b,_0xbc70bb){const _0x5b1fd5=[];for(const _0x50a984 of _0x40d78b['getItems']())_0x50a984['hasAttribute'](_0x783165)&&_0x5b1fd5['push'](_0xbc70bb['createRangeOn'](_0x50a984));return _0x5b1fd5;}function _e(_0x2693ce,_0x2700ec,{showActiveMarker:_0x1db980=!0x0}={}){const _0xb04805=_0x2693ce['plugins']['get']('TrackChangesEditing');return(_0x31f9f4,_0xe0299a,_0x2c7046)=>{if(!_0x2c7046['consumable']['test'](_0xe0299a['markerRange'],_0x31f9f4['name']))return;const _0x224cd6=_0xe0299a['markerRange']['getWalker'](),_0x2eb4ad=_0xe0299a['markerRange']['start'],_0x36649b=_0x2693ce['model']['schema'];let _0x27db19=null,_0x544331=null,_0x409f91=!0x1,_0xefe4ef=!0x1;for(const _0x253fda of _0x224cd6){const _0x49a670=_0x253fda['item'];_0x409f91=_0x409f91||_0x36649b['isContent'](_0x49a670);const _0x4a6717=_0x2c7046['mapper']['toViewElement'](_0x49a670);if(_0x4a6717&&_0x4a6717['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x253fda['type']&&(_0x36649b['isBlock'](_0x49a670)&&!_0x36649b['isLimit'](_0x49a670)&&(_0x49a670['nextSibling']||_0x2eb4ad['isAtEnd']?_0x27db19&&_0x27db19['parent']==_0x49a670||(_0x27db19=_0x49a670,_0xdd6830(_0x253fda['previousPosition']),_0xefe4ef=!0x0):_0x544331=_0x544331||_0x253fda['previousPosition']));}function _0xdd6830(_0xab0924){const _0x900f09=_0x2c7046['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2700ec}),_0x5780a9=_0x2c7046['mapper']['toViewPosition'](_0xab0924);_0x1db980&&_0xb04805['activeMarkers']['includes'](_0xe0299a['markerName'])&&_0x2c7046['writer']['addClass']('ck-suggestion-marker--active',_0x900f09),_0x2c7046['writer']['insert'](_0x5780a9,_0x900f09),_0x2c7046['mapper']['bindElementToMarker'](_0x900f09,_0xe0299a['markerName']);}_0x409f91||_0xefe4ef||!_0x544331||_0xdd6830(_0x544331);};}class J extends _0x3cf114{static get['requires'](){return[_0x42bf9b];}['init'](){const _0x83c915=this['editor'],_0x721c3a=_0x83c915['plugins']['get']('TrackChangesEditing');_0x721c3a['enableCommand']('delete');const _0x2f3537=_0x83c915['commands']['get']('deleteForward');_0x721c3a['enableCommand']('deleteForward',(_0x52ee18,_0x58438b={})=>{const _0x14960e=_0x83c915['model']['createSelection'](_0x83c915['model']['document']['selection']);_0x14960e['isCollapsed']&&_0x83c915['model']['modifySelection'](_0x14960e,{'direction':'forward','unit':_0x58438b['unit']});const _0x5a8397=_0x14960e['getFirstRange'](),_0x37e543=_0x150295['fromRange'](_0x5a8397);let _0xca4565;_0x52ee18(_0x58438b),_0xca4565='$graveyard'==_0x37e543['root']['rootName']?_0x83c915['model']['createRange'](_0x5a8397['start']):_0x83c915['model']['createRange'](_0x37e543['start'],_0x37e543['end']),_0x37e543['detach'](),_0x83c915['model']['enqueueChange'](_0x2f3537['buffer']['batch'],_0x4c0cd4=>{_0x2f3537['buffer']['lock'](),_0x4c0cd4['setSelection'](_0x4c0cd4['createRange'](_0xca4565['end'])),_0x2f3537['buffer']['unlock']();});}),_0x83c915['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x83c915,'merge'),{'priority':'high'}),_0x83c915['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x40e201,_0x353092,_0x19fe37)=>{_0x19fe37['options']['showSuggestionHighlights']&&_e(_0x83c915,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x40e201,_0x353092,_0x19fe37);},{'priority':'high'}),_0x83c915['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x536168,_0x4d03d5,_0x2553bd)=>{const _0x55601f=_0x2553bd['mapper']['markerNameToElements'](_0x4d03d5['markerName']);if(_0x55601f){for(const _0x21bfe8 of _0x55601f)_0x21bfe8['is']('uiElement')&&(_0x2553bd['mapper']['unbindElementFromMarkerName'](_0x21bfe8,_0x4d03d5['markerName']),_0x2553bd['writer']['remove'](_0x21bfe8));}},{'priority':'high'});}}class q extends _0x3cf114{['afterInit'](){const _0x2da4f7=this['editor'];if(!_0x2da4f7['plugins']['has']('ListEditing'))return;const _0x524804=_0x2da4f7['locale'],_0x24abf6=_0x2da4f7['plugins']['get']('TrackChangesEditing'),_0x15e829=_0x2da4f7['plugins']['has']('TodoListEditing'),_0x45931a=!!_0x2da4f7['config']['get']('list.multiBlock');function _0x446f62(_0xc269f6){return{'type':'format','content':''+o(_0x524804,'*Set\x20format:*\x20%0',_0xc269f6)};}function _0x351927(_0x2a2d0e){return{'type':'format','content':''+o(_0x524804,'*Remove\x20format:*\x20%0',_0x2a2d0e)};}_0x24abf6['enableDefaultAttributesIntegration']('numberedList'),_0x24abf6['enableDefaultAttributesIntegration']('bulletedList'),_0x24abf6['enableDefaultAttributesIntegration']('customNumberedList'),_0x24abf6['enableDefaultAttributesIntegration']('customBulletedList'),_0x24abf6['enableDefaultAttributesIntegration']('indentList'),_0x24abf6['enableDefaultAttributesIntegration']('outdentList'),_0x24abf6['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x24abf6['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x24abf6['registerBlockAttribute']('listItemId'),_0x24abf6['registerBlockAttribute']('listType'),_0x24abf6['registerBlockAttribute']('listIndent'),_0x45931a&&(_0x24abf6['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x24abf6['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x15e829&&(_0x24abf6['enableDefaultAttributesIntegration']('todoList'),_0x24abf6['enableDefaultAttributesIntegration']('checkTodoList'),_0x24abf6['registerBlockAttribute']('todoListChecked'),_0x24abf6['descriptionFactory']['registerDescriptionCallback'](_0x3fd2ae=>{const {data:_0x39140a}=_0x3fd2ae;if(_0x39140a&&'todoListChecked'==_0x39140a['key'])return{'type':'format','content':_0x39140a['newValue']?o(_0x524804,'*Check\x20item*'):o(_0x524804,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x475582=>{if(_0x475582['batch']['isUndo'])return!0x1;let _0x5c3ed6=!0x1;const _0x4bc5a8=_0x24abf6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4e4cb7=>'todoListChecked'===_0x24abf6['_getAttributeKey'](_0x4e4cb7));for(const _0x287500 of _0x4bc5a8){'todo'!=_0x287500['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x24abf6['_findSuggestions'](_0x287500['getFirstRange'](),'attribute')['find'](_0x2467df=>'listType'===_0x24abf6['_getAttributeKey'](_0x2467df['suggestion']))||(_0x475582['removeMarker'](_0x287500['getFirstMarker']()),_0x5c3ed6=!0x0));}return _0x5c3ed6;})),_0x24abf6['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x524804,'FORMAT_INDENT'));const _0x567617={'type':'format','content':''};_0x24abf6['descriptionFactory']['registerDescriptionCallback'](_0x58a163=>{const {data:_0x3c8e0d}=_0x58a163;if(!_0x3c8e0d||'listType'!=_0x3c8e0d['key'])return;let _0x3d17cc=_0x58a163['head'];for(;_0x3d17cc;){if(_0x3d17cc['data']&&(('listStyle'==_0x3d17cc['data']['key']||'listMarkerStyle'==_0x3d17cc['data']['key'])&&(_0x3d17cc['data']['newValue']&&'default'!=_0x3d17cc['data']['newValue']||'default'!=_0x3d17cc['data']['oldValue']&&!_0x3c8e0d['newValue'])||!_0x45931a&&_0x3d17cc['data']['key']==m))return _0x567617;_0x3d17cc=_0x3d17cc['next'];}if(null==_0x3c8e0d['newValue'])switch(_0x3c8e0d['oldValue']){case'bulleted':return _0x351927(o(_0x524804,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x351927(o(_0x524804,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x351927(o(_0x524804,'ELEMENT_TODO_LIST'));}switch(_0x3c8e0d['newValue']){case'bulleted':return _0x446f62(o(_0x524804,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x446f62(o(_0x524804,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x446f62(o(_0x524804,'ELEMENT_TODO_LIST'));}}),_0x24abf6['descriptionFactory']['registerDescriptionCallback'](_0x349d1d=>{const {data:_0x1b4d45}=_0x349d1d;if(_0x1b4d45&&'listIndent'==_0x1b4d45['key'])return null==_0x1b4d45['newValue']||null==_0x1b4d45['oldValue']&&0x0==_0x1b4d45['newValue']?_0x567617:void 0x0;}),_0x24abf6['descriptionFactory']['registerDescriptionCallback'](_0x34ca53=>{if('attribute'!=_0x34ca53['type'])return;const {data:_0x3b135e}=_0x34ca53;if(!_0x3b135e||'listItemId'!=_0x3b135e['key'])return;const _0x46f2c3=le(_0x34ca53);return'newValue'==_0x46f2c3?{'type':'format','content':o(_0x524804,'*Merge:*\x20list\x20item')}:'oldValue'==_0x46f2c3?{'type':'format','content':o(_0x524804,'*Split:*\x20list\x20item')}:_0x567617;}),_0x2da4f7['model']['document']['registerPostFixer'](_0x4858c7=>this['listItemIdFixer'](_0x4858c7)),_0x2da4f7['model']['document']['registerPostFixer'](_0x269495=>this['noTrackChangesFixer'](_0x269495)),_0x2da4f7['model']['document']['on']('change:data',(_0x396be6,_0x2dd439)=>{if(_0x2dd439['isUndo']||!_0x2dd439['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2cfa01){if(_0x2cfa01['batch']['isUndo']||!_0x2cfa01['batch']['isLocal'])return!0x1;let _0xeb3990=!0x1;const _0x57c8f6=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4e07be=>_0x4e07be['data']&&'listItemId'==_0x4e07be['data']['key'])['filter'](_0x5f063c=>_0x5f063c['data']['newValue']&&_0x5f063c['data']['oldValue']);for(const _0x1da93d of _0x57c8f6)le(_0x1da93d)||(_0x2cfa01['removeMarker'](_0x1da93d['getFirstMarker']()),_0xeb3990=!0x0);return _0xeb3990;}['noTrackChangesFixer'](_0x4494ef){if(_0x4494ef['batch']['isUndo']||!_0x4494ef['batch']['isLocal'])return!0x1;const _0x51ff1a=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x51ff1a['trackChangesCommand']['value'])return!0x1;let _0x223fa=!0x1;const _0xd81496=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x37d115=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3f32d6=>'attribute'==_0x3f32d6['type'])['filter'](_0x5b0a48=>_0xd81496['includes'](_0x5b0a48['attributeKey']));if(0x0==_0x37d115['length'])return _0x223fa;for(const _0xdb3cc3 of _0x37d115){const _0x1c0209=_0x51ff1a['_findSuggestions'](_0xdb3cc3['range'],'attribute')['filter'](_0x3ad7c9=>!_0x3ad7c9['meta']['isNextTo'])['map'](_0x30c029=>_0x30c029['suggestion'])['filter'](_0x4536af=>{const _0x22ab34=_0x51ff1a['_getAttributeKey'](_0x4536af);return _0xd81496['includes'](_0x22ab34);});if(_0x1c0209['length']){for(const _0x3bbfa8 of _0x1c0209)_0x4494ef['removeMarker'](_0x3bbfa8['getFirstMarker']());_0x223fa=!0x0;}}return _0x223fa;}['assureChains'](){const _0x509893=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e3427=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x339360;const _0x39111d=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5dd83b=>{if(_0x5dd83b['data']['oldRange']||!_0x5dd83b['data']['newRange'])return null;if(!_0x5dd83b['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4ecb61}=_0x509893['_splitMarkerName'](_0x5dd83b['name']);if(!_0x509893['hasSuggestion'](_0x4ecb61))return null;const _0x302c50=_0x509893['getSuggestion'](_0x4ecb61);return _0x3e3427['includes'](_0x302c50['data']['key']);})['map'](_0x476d1c=>{const {id:_0x4f5182}=_0x509893['_splitMarkerName'](_0x476d1c['name']),_0x2a3f34=_0x509893['getSuggestion'](_0x4f5182);return _0x339360=_0x2a3f34['attributes']['groupId'],_0x2a3f34['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x39111d['size'])return;const _0x3d8996=_0x509893['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x54459e=>'attribute'==_0x54459e['type']&&_0x54459e['data']&&_0x3e3427['includes'](_0x54459e['data']['key'])&&_0x54459e['attributes']['groupId']!=_0x339360)['map'](_0x148ebb=>({'listItem':_0x148ebb['getFirstRange']()['start']['nodeAfter'],'groupId':_0x148ebb['attributes']['groupId']})),_0x1555ad=new Set();for(const {groupId:_0x59ee5e,listItem:_0x37ceb0}of _0x3d8996)_0x39111d['has'](_0x37ceb0)&&_0x1555ad['add'](_0x59ee5e);for(const _0x55cd84 of _0x509893['getSuggestions']())_0x1555ad['has'](_0x55cd84['attributes']['groupId'])&&_0x55cd84['setAttribute']('groupId',_0x339360);}['_supportLegacySuggestions'](){const _0x13fe1b=this['editor'],_0x1f268b=_0x13fe1b['locale'],_0xbfe562=_0x13fe1b['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xbfe562['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x51821f,_0x15a516){const _0x438a97=[];for(let _0x2d7a8f of _0x51821f)_0x2d7a8f['start']['nodeAfter']===_0x2d7a8f['end']['parent']&&(_0x2d7a8f=_0x13fe1b['model']['createRange'](_0x13fe1b['model']['createPositionAt'](_0x2d7a8f['start']['nodeAfter'],0x0))),_0x438a97['push'](_0x2d7a8f);_0x13fe1b['model']['change'](_0x164c45=>{const _0x15233a=_0x13fe1b['model']['document']['selection'],_0x30d881=Array['from'](_0x15233a['getRanges']())['map'](_0x2c1223=>_0x150295['fromRange'](_0x2c1223));_0x164c45['setSelection'](_0x438a97),_0x13fe1b['commands']['get'](_0x15a516['commandName'])['refresh'](),_0x15a516['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x13fe1b['execute'](_0x15a516['commandName'],..._0x15a516['commandParams']),_0x164c45['setSelection'](_0x30d881);for(const _0x9a75e5 of _0x30d881)_0x9a75e5['detach']();});}),_0xbfe562['descriptionFactory']['registerElementLabel'](function(_0x4ffdaa){const _0x10d51c=!_0x13fe1b['model']['schema']['isObject'](_0x4ffdaa),_0x25d2fa=_0x4ffdaa['previousSibling'],_0x328b63=_0x4ffdaa['nextSibling'],_0x162c97=_0x4ffdaa['getAttribute']('listItemId'),_0x44e3f9=!_0x25d2fa||_0x25d2fa['getAttribute']('listItemId')!==_0x162c97,_0x32c3de=!_0x328b63||_0x328b63['getAttribute']('listItemId')!==_0x162c97;return _0x10d51c&&Boolean(_0x162c97)&&_0x44e3f9&&_0x32c3de;},_0x501d72=>o(_0x1f268b,'ELEMENT_LIST_ITEM',_0x501d72));}['_registerLegacyDescription'](){const _0x5499ac=this['editor'],_0x265006=_0x5499ac['locale'];function _0x134886(_0x39bcb2){const _0x38cdc5=_0x5499ac['commands']['get']('bulletedList')['value'],_0x224766=_0x5499ac['commands']['get']('numberedList')['value'];return'numberedList'===_0x39bcb2?_0x38cdc5:_0x224766;}_0x5499ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x145a09){if('formatBlock'!=_0x145a09['type'])return;const {data:_0x5394c4}=_0x145a09;if(!_0x5394c4)return;let _0x3ccb1a,_0x47ec2c,_0x35d423,_0xe09b7c;switch(_0x5394c4['commandName']){case'bulletedList':_0x35d423=_0x5394c4['commandParams'][0x0]['forceValue'],_0xe09b7c=_0x134886(_0x5394c4['commandName']),_0x3ccb1a=_0x35d423?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xe09b7c&&_0x5499ac['config']['get']('list.multiBlock')||(_0x3ccb1a='*Change\x20to:*\x20%0'),_0x47ec2c={'type':'format','content':o(_0x265006,_0x3ccb1a,o(_0x265006,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x35d423=_0x5394c4['commandParams'][0x0]['forceValue'],_0xe09b7c=_0x134886(_0x5394c4['commandName']),_0x3ccb1a=_0x35d423?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xe09b7c&&_0x5499ac['config']['get']('list.multiBlock')||(_0x3ccb1a='*Change\x20to:*\x20%0'),_0x47ec2c={'type':'format','content':o(_0x265006,_0x3ccb1a,o(_0x265006,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3ccb1a='*Indent:*\x20%0',_0x47ec2c={'type':'format','content':o(_0x265006,_0x3ccb1a,o(_0x265006,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3ccb1a=function(_0x5c7fe7){const _0x4dc4b9=_0x5c7fe7['getFirstRange']();let _0x4641b0=_0x4dc4b9['start']['nodeAfter'];for(;_0x4641b0&&_0x4dc4b9['containsItem'](_0x4641b0);){if(_0x4641b0['getAttribute']('listIndent')>0x0)return!0x1;_0x4641b0=_0x4641b0['nextSibling'];}return!0x0;}(_0x145a09)?o(_0x265006,'*Format:*\x20remove\x20from\x20%0',o(_0x265006,function(_0xc418e1){return'ELEMENT_'+_0xc418e1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x145a09))):o(_0x265006,'*Outdent:*\x20%0',o(_0x265006,'ELEMENT_LIST_ITEM')),_0x47ec2c={'type':'format','content':_0x3ccb1a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5394c4['multipleBlocks']&&(_0x3ccb1a='*Merge:*\x20%0',_0x47ec2c={'type':'deletion','content':o(_0x265006,_0x3ccb1a,o(_0x265006,'ELEMENT_LIST_ITEM'))});}return _0x47ec2c;});}}function le(_0x48c4d3){let _0x28a496=_0x48c4d3['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x28a496;){const _0x14df2e=_0x28a496['getAttribute']('listItemId');if(!_0x14df2e)return!0x1;if(_0x14df2e==_0x48c4d3['data']['newValue'])return'newValue';if(_0x14df2e==_0x48c4d3['data']['oldValue'])return'oldValue';_0x28a496=_0x28a496['previousSibling'];}return!0x1;}class ue extends _0x3cf114{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x548edf=this['editor']['config']['get']('list.properties'),_0x19a8b5=this['editor']['plugins']['get']('TrackChangesEditing');_0x548edf['styles']&&(_0x19a8b5['enableDefaultAttributesIntegration']('listStyle'),_0x19a8b5['registerBlockAttribute']('listStyle')),_0x548edf['reversed']&&(_0x19a8b5['enableDefaultAttributesIntegration']('listReversed'),_0x19a8b5['registerBlockAttribute']('listReversed')),_0x548edf['startIndex']&&(_0x19a8b5['enableDefaultAttributesIntegration']('listStart'),_0x19a8b5['registerBlockAttribute']('listStart'));const _0xc15b01={'type':'format','content':''};_0x19a8b5['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x15cf2c=this['editor']['locale'];_0x19a8b5['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x15cf2c,'FORMAT_LIST_REVERSED')),_0x19a8b5['descriptionFactory']['registerDescriptionCallback'](_0x22ceb9=>{const {data:_0xf0dab4}=_0x22ceb9;if(_0xf0dab4&&'listReversed'==_0xf0dab4['key'])return null==_0xf0dab4['newValue']||0x0==_0xf0dab4['newValue']&&null==_0xf0dab4['oldValue']?_0xc15b01:void 0x0;}),_0x19a8b5['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x15cf2c,'FORMAT_LIST_START')),_0x19a8b5['descriptionFactory']['registerDescriptionCallback'](_0x4a8270=>{const {data:_0x3bfb24}=_0x4a8270;if(_0x3bfb24&&'listStart'==_0x3bfb24['key'])return null==_0x3bfb24['newValue']||0x1==_0x3bfb24['newValue']&&null==_0x3bfb24['oldValue']?_0xc15b01:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5530f0=>{if(_0x5530f0['batch']['isUndo'])return!0x1;let _0x5d789b=!0x1;const _0x50a296=_0x19a8b5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x58f7e1=>{const _0x5d68df=_0x19a8b5['_getAttributeKey'](_0x58f7e1);return'listStart'==_0x5d68df||'listReversed'==_0x5d68df;});for(const _0x2cf317 of _0x50a296){const _0x1e433b=_0x2cf317['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1e433b||'customNumbered'==_0x1e433b)continue;_0x19a8b5['_findSuggestions'](_0x2cf317['getFirstRange'](),'attribute')['find'](_0x25b271=>'listType'==_0x19a8b5['_getAttributeKey'](_0x25b271['suggestion']))||(_0x5530f0['removeMarker'](_0x2cf317['getFirstMarker']()),_0x5d789b=!0x0);}return _0x5d789b;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2bb90f){const _0x3ba914=this['editor']['locale'],{data:_0x357b92}=_0x2bb90f,_0x22d7d={'type':'format','content':''};if(!_0x357b92||'listStyle'!=_0x357b92['key'])return;if(!_0x357b92['oldValue'])return'default'==_0x357b92['newValue']?_0x22d7d:{'type':'format','content':''+o(_0x3ba914,'*Set\x20format:*\x20%0',o(_0x3ba914,this['_getTranslationKeyForListStyle'](_0x357b92['newValue'])))};if(!_0x357b92['newValue']){if('default'==_0x357b92['oldValue'])return _0x22d7d;let _0xa56be1=_0x2bb90f['head'];for(;_0xa56be1;){if(_0xa56be1['data']&&'listType'==_0xa56be1['data']['key']&&_0xa56be1['data']['newValue'])return _0x22d7d;_0xa56be1=_0xa56be1['next'];}return{'type':'format','content':''+o(_0x3ba914,'*Remove\x20format:*\x20%0',o(_0x3ba914,this['_getTranslationKeyForListStyle'](_0x357b92['oldValue'])))};}if('default'!=_0x357b92['newValue'])return{'type':'format','content':''+o(_0x3ba914,'*Set\x20format:*\x20%0',o(_0x3ba914,this['_getTranslationKeyForListStyle'](_0x357b92['newValue'])))};let _0x1fdaba=_0x2bb90f['head'];for(;_0x1fdaba;){if(_0x1fdaba['data']&&'listType'==_0x1fdaba['data']['key']&&_0x1fdaba['data']['newValue']&&_0x1fdaba['data']['oldValue'])return _0x22d7d;_0x1fdaba=_0x1fdaba['next'];}return{'type':'format','content':o(_0x3ba914,'*Set\x20format:*\x20%0',o(_0x3ba914,'ELEMENT_'+_0x2bb90f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x116389=this['editor'],_0x27f9dd=_0x116389['locale'];_0x116389['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ff56b=>{if('formatBlock'!=_0x1ff56b['type'])return;const {data:_0x4159dc}=_0x1ff56b;if(!_0x4159dc)return;let _0x10bbff,_0x215f23;switch(_0x4159dc['commandName']){case'listStyle':_0x10bbff='*Change\x20to:*\x20%0',_0x215f23={'type':'format','content':o(_0x27f9dd,_0x10bbff,o(_0x27f9dd,this['_getTranslationKeyForListStyle'](_0x4159dc['commandParams'][0x0]['type'])))};break;case'listReversed':_0x10bbff=_0x4159dc['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x215f23={'type':'format','content':o(_0x27f9dd,_0x10bbff)};break;case'listStart':_0x10bbff='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x215f23={'type':'format','content':o(_0x27f9dd,_0x10bbff,_0x4159dc['commandParams'][0x0]['startIndex'])};}return _0x215f23;});}['_getTranslationKeyForListStyle'](_0x2c3d60){return'ELEMENT_'+function(_0x40c480){if(pe['includes'](_0x40c480))return'bulleted';if(ye['includes'](_0x40c480))return'numbered';return null;}(_0x2c3d60)['toUpperCase']()+'_LIST_'+_0x2c3d60['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class K extends _0x3cf114{static get['requires'](){return[_0x5476d9];}['init'](){const _0x1733c7=this['editor'],_0x3f4449=_0x1733c7['plugins']['get']('TrackChangesEditing'),_0x314700=_0x1733c7['commands']['get']('enter');_0x3f4449['enableCommand']('enter',()=>{_0x1733c7['model']['change'](_0x2cdae9=>{const _0x2f7572=_0x1733c7['model']['document']['selection'],_0x5000b4=_0x2f7572['getFirstPosition'](),_0x535df2=_0x150295['fromRange'](_0x2f7572['getFirstRange']());if(_0x314700['enterBlock'](_0x2cdae9)){const _0x4696b9=_0x1733c7['model']['createPositionAt'](_0x5000b4['parent']['nextSibling'],0x0),_0x28efff=_0x2cdae9['createRange'](_0x5000b4,_0x4696b9);_0x3f4449['markInsertion'](_0x28efff);}else _0x2cdae9['setSelection'](_0x2cdae9['createRange'](_0x535df2['end']));_0x535df2['detach'](),_0x314700['fire']('afterExecute',{'writer':_0x2cdae9});});}),_0x1733c7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x1733c7,'split'),{'priority':'high'}),_0x1733c7['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5b11b9,_0x1eeade,_0x403d65)=>{const _0x91e54d=_0x403d65['mapper']['markerNameToElements'](_0x1eeade['markerName']);if(_0x91e54d){for(const _0x4bcc43 of _0x91e54d)_0x4bcc43['hasClass']('ck-suggestion-marker-split')&&(_0x403d65['mapper']['unbindElementFromMarkerName'](_0x4bcc43,_0x1eeade['markerName']),_0x403d65['writer']['remove'](_0x4bcc43));}},{'priority':'high'}),_0x1733c7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xe06bf1,_0x910629,_0x3842fd)=>{_0x3842fd['options']['showSuggestionHighlights']&&_e(_0x1733c7,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xe06bf1,_0x910629,_0x3842fd);},{'priority':'high'});}}class W extends _0x3cf114{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4158e6=this['editor']['plugins']['get']('TrackChangesEditing');_0x4158e6['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4158e6['enableCommand']('findNext'),_0x4158e6['enableCommand']('findPrevious'),_0x4158e6['enableCommand']('replace'),_0x4158e6['enableCommand']('replaceAll');}['handleFindCommand'](_0x4a8a33,_0x511f7b,_0x59e5fd={}){const _0x383d9a=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4a8a33(_0x26b02c=>('string'==typeof _0x511f7b?_0x383d9a['findByTextCallback'](_0x511f7b,_0x59e5fd):_0x511f7b)(_0x26b02c)['filter'](_0x3f96f8=>!0x1===this['_isInDeletionRange'](_0x3f96f8,_0x26b02c['item'])),_0x59e5fd);}['_isInDeletionRange'](_0x68a2fe,_0x179ba8){const _0xd0ca8=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x179ba8,_0x68a2fe['start']),this['editor']['model']['createPositionAt'](_0x179ba8,_0x68a2fe['end']));for(const _0x2156ad of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xd0ca8['getIntersection'](_0x2156ad['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 _0x3cf114{['afterInit'](){const _0x1b2e9f=this['editor']['locale'],_0x51e3c3=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2139fd,commandName:_0x5ed351}of ro)this['editor']['plugins']['has'](_0x2139fd)&&(_0x51e3c3['enableDefaultAttributesIntegration'](_0x5ed351),_0x51e3c3['registerInlineAttribute'](_0x5ed351));_0x1b2e9f['t'],_0x51e3c3['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1b2e9f,'FORMAT_FONT_SIZE')),_0x51e3c3['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1b2e9f,'FORMAT_FONT_FAMILY')),_0x51e3c3['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1b2e9f,'FORMAT_FONT_COLOR')),_0x51e3c3['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1b2e9f,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf133d8=this['editor'],_0x4454f2=_0xf133d8['locale'];_0xf133d8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x193b4f=>{const _0x38d5c8=_0x4454f2['t'];if('formatInline'!=_0x193b4f['type'])return;const {data:_0x1d0a8d}=_0x193b4f;if(null!=_0x1d0a8d){if('fontSize'==_0x1d0a8d['commandName']){const _0xb67b6b=_0x1d0a8d['commandParams'][0x0]['value'];if(_0xb67b6b){const _0x17da8e=_0x38d5c8(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2196c5=>_0x2196c5['model']==_0xb67b6b)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4454f2,'*Set\x20font\x20size:*\x20%0',_0x17da8e)};}return{'type':'format','content':o(_0x4454f2,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1d0a8d['commandName']){const _0x486d44=_0x1d0a8d['commandParams'][0x0]['value'];return _0x486d44?{'type':'format','content':o(_0x4454f2,'*Set\x20font\x20family:*\x20%0',_0x486d44)}:{'type':'format','content':o(_0x4454f2,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1d0a8d['commandName']){const _0x334c6c=_0x1d0a8d['commandParams'][0x0]['value'];if(_0x334c6c){const _0x35bfd8=_0x107a8d(this['editor']['config']['get']('fontColor.colors'))['find'](_0xa93eb9=>_0xa93eb9['model']==_0x334c6c);let _0x15d21a=_0x334c6c,_0x1947c3='';return _0x35bfd8&&(_0x15d21a=_0x35bfd8['label'],_0x1947c3=_0x38d5c8(_0x15d21a)['toLowerCase']()),{'type':'format','content':o(_0x4454f2,'*Set\x20font\x20color:*\x20%0',_0x1947c3)['trim'](),'color':{'value':_0x334c6c,'title':_0x1947c3||_0x15d21a}};}return{'type':'format','content':o(_0x4454f2,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1d0a8d['commandName']){const _0x51173f=_0x1d0a8d['commandParams'][0x0]['value'];if(_0x51173f){const _0x9498de=_0x107a8d(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x537962=>_0x537962['model']==_0x51173f);let _0x1f1a33=_0x51173f,_0x11cae8='';return _0x9498de&&(_0x1f1a33=_0x9498de['label'],_0x11cae8=_0x38d5c8(_0x1f1a33)['toLowerCase']()),{'type':'format','content':o(_0x4454f2,'*Set\x20font\x20background\x20color:*\x20%0',_0x11cae8)['trim'](),'color':{'value':_0x51173f,'title':_0x11cae8||_0x1f1a33}};}return{'type':'format','content':o(_0x4454f2,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x3cf114{['afterInit'](){const _0x586362=this['editor'],_0x97ddf8=_0x586362['plugins']['get']('TrackChangesEditing'),_0x4d6006=_0x586362['commands']['get']('copyFormat'),_0x40f48f=_0x586362['commands']['get']('pasteFormat');_0x4d6006&&_0x40f48f&&(_0x97ddf8['enableDefaultAttributesIntegration']('pasteFormat'),_0x97ddf8['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5088e=this['editor'],_0x3a7a16=_0x5088e['locale'];_0x5088e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a1a8c=>{if('formatBlock'!=_0x2a1a8c['type']&&'formatInline'!=_0x2a1a8c['type'])return;const {data:_0x1bc16e}=_0x2a1a8c;if(_0x1bc16e&&'pasteFormat'===_0x1bc16e['commandName']){const _0x48399d=[],_0x36ef06=_0x1bc16e['commandParams'][0x0];for(const [_0x383a1d,_0x111258]of Object['entries'](_0x36ef06))_0x48399d['push'](so(_0x5088e,_0x383a1d,_0x111258));return _0x48399d['length']?{'type':'format','content':o(_0x3a7a16,'*Set\x20format\x20to:*\x20%0',_0x48399d['join'](',\x20'))}:{'type':'format','content':o(_0x3a7a16,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1cea80,_0x4e8178,_0x3aebda){const _0x2294ec=_0x1cea80['locale']['t'],_0x2f54f2=_0x4e8178['split'](/(?=[A-Z])/)['join']('\x20'),_0x36bb8c=_0x2294ec(_0x2f54f2['charAt'](0x0)['toUpperCase']()+_0x2f54f2['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3aebda)return _0x36bb8c;if('fontColor'===_0x4e8178||'fontBackgroundColor'===_0x4e8178){const _0x5da958=_0x107a8d(_0x1cea80['config']['get']('fontColor.colors'))['find'](_0x35c991=>_0x35c991['model']==_0x3aebda);return _0x36bb8c+'\x20('+(_0x5da958?_0x2294ec(_0x5da958['label'])['toLowerCase']():_0x3aebda)+')';}if('fontSize'===_0x4e8178&&isNaN(parseFloat(_0x3aebda))){const _0x19046d=_0x1cea80['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1cea80['config']['get']('fontSize.options'))['find'](_0x3ac51e=>_0x3ac51e['model']==_0x3aebda);return _0x36bb8c+'\x20('+(_0x19046d?_0x2294ec(_0x19046d['title'])['toLowerCase']():_0x3aebda)+')';}return _0x36bb8c+'\x20('+_0x3aebda+')';}class Y extends _0x3cf114{['_headingOptions'];['afterInit'](){const _0x215d76=this['editor'];if(!_0x215d76['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x215d76['config']['get']('heading.options');const _0x439bd9=_0x215d76['locale'],_0x450c21=_0x215d76['plugins']['get']('TrackChangesEditing');_0x450c21['enableDefaultAttributesIntegration']('heading');for(const _0x4f6945 of this['_headingOptions'])'paragraph'!=_0x4f6945['model']&&_0x450c21['descriptionFactory']['registerElementLabel'](_0x4f6945['model'],_0x9e543=>{const _0x273843=this['_getHeadingLevel'](_0x4f6945['model']);return null!==_0x273843?_0x4d9969(_0x9e543,_0x273843):_0x38198f(_0x9e543,_0x4f6945['title']);});function _0x4d9969(_0x3ba2dd,_0xd7a818){return o(_0x439bd9,'ELEMENT_HEADING',[_0x3ba2dd,_0xd7a818]);}function _0x38198f(_0x292973,_0x3afe2a){return o(_0x439bd9,'ELEMENT_HEADING_CUSTOM',[_0x292973,_0x3afe2a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b7f68=this['editor'],_0x5c3a3c=_0x2b7f68['locale'];function _0x176b44(_0x227043,_0x26f652){return o(_0x5c3a3c,'ELEMENT_HEADING_CUSTOM',[_0x227043,_0x26f652]);}_0x2b7f68['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23ff0b=>{if('formatBlock'!=_0x23ff0b['type'])return;const {data:_0x37c74b}=_0x23ff0b;if(_0x37c74b&&'heading'==_0x37c74b['commandName']){const _0x1276a5=_0x37c74b['commandParams'][0x0]['value'],_0xad423=this['_getHeadingLevel'](_0x1276a5);if(null!==_0xad423)return{'type':'format','content':o(_0x5c3a3c,'*Change\x20to:*\x20%0',(_0x8ec63f=0x1,_0x50fcf5=_0xad423,o(_0x5c3a3c,'ELEMENT_HEADING',[_0x8ec63f,_0x50fcf5])))};const _0x8300f1=this['_headingOptions']['find'](_0x3d7fb3=>_0x3d7fb3['model']===_0x1276a5)['title'];return{'type':'format','content':o(_0x5c3a3c,'*Change\x20to:*\x20%0',_0x176b44(0x1,_0x8300f1))};}var _0x8ec63f,_0x50fcf5;});}['_getHeadingLevel'](_0x244e60){const _0x21efd6=_0x244e60['match'](/^heading(\d+)/);if(_0x21efd6)return _0x21efd6[0x1];const _0x10432e=this['_headingOptions']?.['find'](_0x3a34f0=>_0x3a34f0['model']==_0x244e60);if(_0x10432e&&_0x10432e['view']){const _0xdeb55=_0x10432e['view'],_0x347ca2=(_0xdeb55['name']??_0xdeb55)['match'](/^h(\d+)/);if(_0x347ca2)return _0x347ca2[0x1];}return null;}}class Z extends _0x3cf114{['afterInit'](){const _0x34cdf7=this['editor'];if(!_0x34cdf7['plugins']['has']('HighlightEditing'))return;const _0x4c0be5=_0x34cdf7['plugins']['get']('TrackChangesEditing'),_0x5e9a63=_0x34cdf7['locale'];_0x4c0be5['enableDefaultAttributesIntegration']('highlight'),_0x4c0be5['registerInlineAttribute']('highlight'),_0x4c0be5['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5e9a63,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51c956=this['editor'],_0x4c7a77=_0x51c956['locale'];_0x51c956['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x129cc3=>{if('formatInline'!=_0x129cc3['type'])return;const {data:_0x4fb741}=_0x129cc3;if(_0x4fb741&&'highlight'==_0x4fb741['commandName']){const _0x3a0039=_0x4c7a77['t'],_0x536c76=_0x4fb741['commandParams'][0x0]['value'];if(_0x536c76){const _0x91f30c=_0x51c956['config']['get']('highlight.options')['find'](_0x391379=>_0x391379['model']==_0x536c76),_0x213cef=_0x3a0039(_0x91f30c['title'])['toLowerCase']();return{'type':'format','content':o(_0x4c7a77,'*Set\x20highlight:*\x20%0',_0x213cef),'color':{'value':_0x91f30c['color'],'title':_0x91f30c['title']}};}return{'type':'format','content':o(_0x4c7a77,'*Remove\x20highlight*',o(_0x4c7a77,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x3cf114{['afterInit'](){const _0x4b7c1e=this['editor'];if(!_0x4b7c1e['plugins']['has']('HorizontalLineEditing'))return;_0x4b7c1e['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5853f9=_0x4b7c1e['plugins']['get']('TrackChangesEditing'),_0x2eb4fe=_0x4b7c1e['locale'];_0x5853f9['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1794c1=>o(_0x2eb4fe,'ELEMENT_HORIZONTAL_LINE',_0x1794c1)),_0x4b7c1e['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3d899e,{writer:_0x91347e,options:_0x4fa654})=>{if(!_0x4fa654['showSuggestionHighlights'])return null;const _0x15956e=_0x91347e['createContainerElement']('div'),_0x4f8b24=_0x91347e['createEmptyElement']('hr');return _0x91347e['addClass']('ck-horizontal-line',_0x15956e),_0x91347e['insert'](_0x91347e['createPositionAt'](_0x15956e,0x0),_0x4f8b24),_0x15956e;},'converterPriority':'high'});}}class et extends _0x3cf114{['afterInit'](){const _0x1fdbf9=this['editor'];if(!_0x1fdbf9['plugins']['has']('HtmlEmbed'))return;const _0xa66142=_0x1fdbf9['plugins']['get']('TrackChangesEditing'),_0x53cdc6=_0x1fdbf9['locale'];_0xa66142['descriptionFactory']['registerElementLabel']('rawHtml',_0x570f42=>o(_0x53cdc6,'ELEMENT_HTML_EMBED',_0x570f42)),_0xa66142['enableDefaultAttributesIntegration']('htmlEmbed'),_0xa66142['registerBlockAttribute']('value'),_0xa66142['descriptionFactory']['registerDescriptionCallback'](_0x53c198=>{if('attribute'!=_0x53c198['type'])return;const {data:_0x46f245}=_0x53c198;if(_0x46f245&&'value'==_0x46f245['key']&&_0x53c198['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1d4c45=o(_0x53cdc6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x53cdc6,'*Change\x20%0\x20content*',_0x1d4c45)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5610ef=this['editor'],_0x7b7647=_0x5610ef['locale'];_0x5610ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20f636=>{if('formatBlock'!=_0x20f636['type'])return;const {data:_0x6e5afa}=_0x20f636;if(_0x6e5afa&&'htmlEmbed'==_0x6e5afa['commandName']){const _0x12ea0d=o(_0x7b7647,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x7b7647,'*Change\x20%0\x20content*',_0x12ea0d)};}});}}class it extends _0x3cf114{['afterInit'](){const _0xf44ffb=this['editor'];if(!_0xf44ffb['plugins']['has']('ImageEditing'))return;const _0x43c768=_0xf44ffb['plugins']['get']('TrackChangesEditing'),_0xbd787e=_0xf44ffb['plugins']['get']('ImageUtils'),_0x2471b7=_0xf44ffb['locale'];_0x43c768['enableCommand']('insertImage'),_0x43c768['descriptionFactory']['registerElementLabel']('imageBlock',_0xa295b6=>o(_0x2471b7,'ELEMENT_IMAGE',_0xa295b6)),_0x43c768['descriptionFactory']['registerElementLabel']('imageInline',_0x1e784e=>o(_0x2471b7,'ELEMENT_INLINE_IMAGE',_0x1e784e)),_0x43c768['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2471b7,'ELEMENT_CAPTION')),_0xf44ffb['plugins']['has']('ImageUploadEditing')&&_0x43c768['enableCommand']('uploadImage'),_0xf44ffb['plugins']['has']('ImageBlockEditing')&&_0xf44ffb['plugins']['has']('ImageInlineEditing')&&(_0x43c768['enableCommand']('imageTypeInline',(_0x9641,_0x4b23af)=>{const _0x56ef0c=_0xbd787e['getClosestSelectedImageElement'](_0xf44ffb['model']['document']['selection']);_0xf44ffb['model']['change'](()=>{_0x43c768['markBlockFormat'](_0x56ef0c,{'commandName':'imageTypeInline','commandParams':[_0x4b23af]},[],'convertBlockImageToInline');});}),_0x43c768['enableCommand']('imageTypeBlock',(_0xdfdb2a,_0x188c49)=>{_0xf44ffb['model']['change'](_0x21648c=>{let _0x985715=_0xbd787e['getClosestSelectedImageElement'](_0xf44ffb['model']['document']['selection']),_0xe44fc3=_0x21648c['createRangeOn'](_0x985715);const _0x1e2893=_0x23a885['fromPosition'](_0xe44fc3['start'],'toPrevious'),_0x345a5b=_0x23a885['fromPosition'](_0xe44fc3['end'],'toNext');_0x43c768['forceDefaultExecution'](()=>_0xdfdb2a(_0x188c49)),_0x985715=_0xbd787e['getClosestSelectedImageElement'](_0xf44ffb['model']['document']['selection']),_0xe44fc3=_0x21648c['createRangeOn'](_0x985715);const _0x40f069=_0x21648c['createRange'](_0x1e2893,_0x345a5b);_0x1e2893['detach'](),_0x345a5b['detach'](),_0x43c768['markBlockFormat'](_0x985715,{'commandName':'imageTypeInline','commandParams':[_0x188c49]},[],'convertInlineImageToBlock'),_0x40f069['start']['isBefore'](_0xe44fc3['start'])&&_0x43c768['markInsertion'](_0x21648c['createRange'](_0x40f069['start'],_0xe44fc3['start']),'convertInlineImageToBlock'),_0xe44fc3['end']['isBefore'](_0x40f069['end'])&&_0x43c768['markInsertion'](_0x21648c['createRange'](_0xe44fc3['end'],_0x40f069['end']),'convertInlineImageToBlock');});}),_0x43c768['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x43c768['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x43c768['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x43c768['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x43c768['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x43c768['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x50f6dd])=>{const _0x14c9bc=_0x43c768['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3abdac=_0x50f6dd['start'],_0x4c6fa3=_0x50f6dd['end'];const _0x4305e6=_0xf44ffb['model']['schema']['getNearestSelectionRange'](_0x3abdac,'backward'),_0x294859=_0xf44ffb['model']['schema']['getNearestSelectionRange'](_0x4c6fa3,'forward');_0x4305e6['isCollapsed']&&(_0x3abdac=_0x4305e6['start']),_0x294859['isCollapsed']&&(_0x4c6fa3=_0x294859['end']),_0x14c9bc([_0xf44ffb['model']['createRange'](_0x3abdac,_0x4c6fa3)]);}),_0x43c768['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x262e54),_0x43c768['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x262e54)),_0xf44ffb['plugins']['has']('ImageCaptionEditing')&&(_0x43c768['enableCommand']('toggleImageCaption',(_0x166a58,_0x4cee65)=>{const _0xb472ab=_0xf44ffb['plugins']['get']('ImageCaptionUtils');let _0x57a41d=_0xbd787e['getClosestSelectedImageElement'](_0xf44ffb['model']['document']['selection']),_0x16118d=_0xb472ab['getCaptionFromImageModelElement'](_0x57a41d);_0xf44ffb['model']['change'](()=>{if(_0x16118d)return void _0x43c768['markDeletion'](_0xf44ffb['model']['createRangeOn'](_0x16118d));const _0x214ca1=_0xbd787e['isBlockImage'](_0x57a41d);_0x166a58(_0x4cee65),_0x57a41d=_0xbd787e['getClosestSelectedImageElement'](_0xf44ffb['model']['document']['selection']),_0x16118d=_0xb472ab['getCaptionFromImageModelElement'](_0x57a41d),_0x43c768['markInsertion'](_0xf44ffb['model']['createRangeOn'](_0x16118d),_0x214ca1?null:'imageCaption');});}),_0x43c768['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x262e54));const _0x218899=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xb60bc7(_0x1bf687,_0x3bb727){const _0x26de7e=_0x218899['findIndex'](({type:_0x472a2e,subType:_0x4e7573})=>_0x1bf687['type']==_0x472a2e&&_0x1bf687['subType']==_0x4e7573),_0x4e4486=_0x218899['findIndex'](({type:_0x69a979,subType:_0x12d713})=>_0x3bb727['type']==_0x69a979&&_0x3bb727['subType']==_0x12d713);if(_0x26de7e<0x0||_0x4e4486<0x0)return!0x1;const _0xc2e1b4=_0x1bf687['getFirstRange'](),_0x2264d8=_0x3bb727['getFirstRange']();if((0x0==_0x26de7e||0x1==_0x26de7e)&&0x2==_0x4e4486&&_0xc2e1b4['isIntersecting'](_0x2264d8))return!0x0;if(0x2==_0x26de7e&&0x3==_0x4e4486){const _0x361f6d=_0x43c768['_findSuggestions'](_0xc2e1b4,'insertion')['filter'](({suggestion:_0x1a60ff,meta:_0x594290})=>_0x594290['isOwn']&&'convertInlineImageToBlock'==_0x1a60ff['subType']);if(_0x361f6d['length']>0x1&&_0x2264d8['end']['isEqual'](_0xc2e1b4['start']))return!0x0;if(0x1==_0x361f6d['length']&&(_0xc2e1b4['start']['isEqual'](_0x2264d8['end'])||_0xc2e1b4['end']['isEqual'](_0x2264d8['start'])))return!0x0;}if(0x3==_0x26de7e&&0x3==_0x4e4486&&_0xc2e1b4['start']['isBefore'](_0x2264d8['start'])){const _0xa1ab30=_0xc2e1b4['end']['nodeAfter'],_0x1c8611=_0x2264d8['start']['nodeBefore'];return _0xbd787e['isBlockImage'](_0xa1ab30)&&_0xa1ab30===_0x1c8611;}return!0x1;}function _0x262e54(_0x5c7f9d,_0x530f7e){return _0xb60bc7(_0x5c7f9d,_0x530f7e)?[_0x5c7f9d,_0x530f7e]:_0xb60bc7(_0x530f7e,_0x5c7f9d)?[_0x530f7e,_0x5c7f9d]:null;}_0xf44ffb['plugins']['has']('ImageResize')&&(_0x43c768['enableDefaultAttributesIntegration']('resizeImage'),_0x43c768['registerBlockAttribute']('resizedWidth'),_0x43c768['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2471b7,'FORMAT_IMAGE_SIZE'))),_0xf44ffb['plugins']['has']('ImageTextAlternativeEditing')&&(_0x43c768['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x43c768['registerBlockAttribute']('alt')),_0x43c768['descriptionFactory']['registerDescriptionCallback'](_0x3a7a17=>{if(!!_0x218899['find'](({type:_0x2c846c,subType:_0x43f69f})=>_0x3a7a17['type']==_0x2c846c&&_0x3a7a17['subType']==_0x43f69f))return _0x3a7a17['previous']?{}:void 0x0;}),_0x43c768['descriptionFactory']['registerDescriptionCallback'](_0x20f035=>{if('insertion'==_0x20f035['type']||'deletion'==_0x20f035['type']){const _0x3ba895=_0x20f035['getContainedElement']();if(_0x3ba895&&_0x3ba895['is']('element','caption'))return{'type':'insertion'==_0x20f035['type']?'addObject':'removeObject','element':_0x3ba895,'quantity':0x1};}}),_0x43c768['descriptionFactory']['registerDescriptionCallback'](_0x309e2b=>'formatBlock'==_0x309e2b['type']&&'convertInlineImageToBlock'==_0x309e2b['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x309e2b['type']&&'convertBlockImageToInline'==_0x309e2b['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x43c768['descriptionFactory']['registerDescriptionCallback'](_0x1d0eb6=>{if('attribute'!=_0x1d0eb6['type'])return;const {data:_0x96b155}=_0x1d0eb6;if(!_0x96b155||'alt'!=_0x96b155['key'])return;const _0x5a004e=_0x96b155['newValue'];return _0x5a004e?{'type':'format','content':o(_0x2471b7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5a004e+'\x22')}:{'type':'format','content':o(_0x2471b7,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x417e95=this['editor'],_0x35fdab=_0x417e95['locale'];_0x417e95['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7c043c=>{if('formatBlock'!=_0x7c043c['type']&&'formatInline'!=_0x7c043c['type'])return;const {data:_0x19989f}=_0x7c043c;if(_0x19989f){if('imageTextAlternative'==_0x19989f['commandName']){const _0x233ee5=_0x19989f['commandParams'][0x0]['newValue'];return _0x233ee5?{'type':'format','content':o(_0x35fdab,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x233ee5+'\x22')}:{'type':'format','content':o(_0x35fdab,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x19989f['commandName']){const _0x471ce0=_0x19989f['commandParams'][0x0]['width'];return _0x471ce0?{'type':'format','content':o(_0x35fdab,'*Set\x20image\x20width:*\x20%0',_0x471ce0)}:{'type':'format','content':o(_0x35fdab,'*Reset\x20image\x20width*')};}}});}}class st extends _0x3cf114{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2bc137=this['editor']['locale'],_0x2a10f1=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a10f1['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2a10f1['registerBlockAttribute']('src'),_0x2a10f1['descriptionFactory']['registerDescriptionCallback'](_0x2a00b8=>{if('attribute'!=_0x2a00b8['type'])return;const {data:_0x290b3a}=_0x2a00b8;return _0x290b3a&&'src'==_0x290b3a['key']?_0x290b3a['newValue']&&_0x290b3a['oldValue']?{'type':'format','content':o(_0x2bc137,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x141650=this['editor']['plugins']['get']('TrackChangesEditing');_0x141650['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x141650['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x141650['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x141650['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe1d627=this['editor'],_0xeec66d=_0xe1d627['locale'];_0xe1d627['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x375b27=>{if('formatBlock'!=_0x375b27['type']&&'formatInline'!=_0x375b27['type'])return;const {data:_0x5cbc08}=_0x375b27;if(!_0x5cbc08||'replaceImageSource'!=_0x5cbc08['commandName'])return;return{'type':'format','content':o(_0xeec66d,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x3cf114{['afterInit'](){const _0x55bda1=this['editor'];if(!_0x55bda1['plugins']['has']('ImageStyleEditing'))return;const _0x461139=_0x55bda1['plugins']['get']('TrackChangesEditing'),_0x59545c=_0x55bda1['plugins']['get']('ImageUtils'),_0x2e4bba={};_0x461139['enableCommand']('imageStyle',(_0x48c821,_0xe22bfd)=>{const _0x2174cc=_0x55bda1['plugins']['get']('Users')['me'],_0xa71b45=_0x55bda1['commands']['get']('imageStyle');let _0x4b6546=_0x59545c['getClosestSelectedImageElement'](_0x55bda1['model']['document']['selection']),_0x44961d=_0x55bda1['model']['createRangeOn'](_0x4b6546),_0x4a66f9=_0xa71b45['value'];if(_0x4a66f9==_0xe22bfd['value'])return;const _0x5e86d1={'commandName':'imageStyle','commandParams':[_0xe22bfd],'formatGroupId':_0x2dd115()};_0x55bda1['model']['change'](()=>{if(_0x461139['getSuggestions']()['filter'](_0x59300e=>_0x59300e['isInContent']&&_0x2174cc==_0x59300e['author']&&('formatBlock'==_0x59300e['type']||'formatInline'==_0x59300e['type'])&&('imageStylePreApply'==_0x59300e['subType']||'imageStylePostApply'==_0x59300e['subType'])&&_0x59300e['getFirstRange']()['isEqual'](_0x44961d))['forEach'](_0x28f66b=>_0x461139['discardSuggestion'](_0x28f66b['head'])),_0x4b6546=_0x59545c['getClosestSelectedImageElement'](_0x55bda1['model']['document']['selection']),_0x44961d=_0x55bda1['model']['createRangeOn'](_0x4b6546),_0xa71b45['refresh'](),_0x55bda1['commands']['get']('imageTypeInline')['refresh'](),_0x55bda1['commands']['get']('imageTypeBlock')['refresh'](),_0x4a66f9=_0xa71b45['value'],_0x4a66f9!=_0xe22bfd['value'])return _0x59545c['isInlineImage'](_0x4b6546)&&_0xa71b45['shouldConvertImageType'](_0xe22bfd['value'],_0x4b6546)?(_0x48c821({..._0xe22bfd,'setImageSizes':!0x1}),_0x4b6546=_0x59545c['getClosestSelectedImageElement'](_0x55bda1['model']['document']['selection']),void _0x461139['markBlockFormat'](_0x4b6546,{..._0x5e86d1,'commandReversedParams':[{'value':_0x4a66f9||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x59545c['isBlockImage'](_0x4b6546)?_0x461139['markBlockFormat'](_0x4b6546,_0x5e86d1,[],'imageStylePostApply'):_0x461139['markInlineFormat'](_0x44961d,_0x5e86d1,'imageStylePostApply'));});});for(const _0xc83125 of _0x55bda1['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2e4bba[_0xc83125['name']]=_0xc83125['title']['toLowerCase']();_0x461139['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x461139['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x461139['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x461139['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xb46a21])=>{_0x59545c['setImageNaturalSizeAttributes'](_0xb46a21['getContainedElement']());}),_0x461139['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x30f555,_0x4cfc38)=>{_0x461139['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x30f555,{'commandName':_0x4cfc38['commandName'],'commandParams':_0x4cfc38['commandReversedParams']});}),_0x461139['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x47f672,_0x17a933){if(_0x451ce4(_0x47f672,_0x17a933))return[_0x47f672,_0x17a933];if(_0x451ce4(_0x17a933,_0x47f672))return[_0x17a933,_0x47f672];return null;});const _0x17bf84=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x451ce4(_0x317211,_0x124a92){const _0x449c1e=_0x17bf84['findIndex'](({type:_0x2ba857,subType:_0x5b8221})=>_0x317211['type']==_0x2ba857&&_0x317211['subType']==_0x5b8221),_0x55765d=_0x17bf84['findIndex'](({type:_0x323d04,subType:_0xa26688})=>_0x124a92['type']==_0x323d04&&_0x124a92['subType']==_0xa26688);if(_0x449c1e<0x0||_0x55765d<0x0)return!0x1;const _0x27dbb6=_0x317211['getFirstRange'](),_0x5aa625=_0x124a92['getFirstRange']();if((0x0==_0x449c1e||0x1==_0x449c1e)&&0x2==_0x55765d&&_0x27dbb6['isIntersecting'](_0x5aa625))return!0x0;if(0x2==_0x449c1e&&0x3==_0x55765d){const _0x1b51c7=_0x461139['_findSuggestions'](_0x27dbb6,'insertion')['filter'](({suggestion:_0x1b4e87,meta:_0x3af28d})=>_0x3af28d['isOwn']&&'convertInlineImageToBlock'==_0x1b4e87['subType']);if(_0x1b51c7['length']>0x1&&_0x5aa625['end']['isEqual'](_0x27dbb6['start']))return!0x0;if(0x1==_0x1b51c7['length']&&(_0x27dbb6['start']['isEqual'](_0x5aa625['end'])||_0x27dbb6['end']['isEqual'](_0x5aa625['start'])))return!0x0;}if(0x3==_0x449c1e&&0x3==_0x55765d&&_0x27dbb6['start']['isBefore'](_0x5aa625['start'])){const _0x1778a5=_0x27dbb6['end']['nodeAfter'],_0x1f6021=_0x5aa625['start']['nodeBefore'];return _0x59545c['isBlockImage'](_0x1778a5)&&_0x1778a5===_0x1f6021;}return!0x1;}_0x55bda1['model']['document']['registerPostFixer'](()=>{let _0x4faa65=!0x1;const _0x29ff95=Array['from'](_0x55bda1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x34d786,data:_0x141033}of _0x29ff95){const {group:_0xfbf600,type:_0xfce662,subType:_0x43bcfb,id:_0x54a0fe}=_0x461139['_splitMarkerName'](_0x34d786);if('suggestion'==_0xfbf600&&_0x461139['hasSuggestion'](_0x54a0fe)){if('formatBlock'==_0xfce662&&('imageStylePreApply'==_0x43bcfb||'imageStylePostApply'==_0x43bcfb)){const _0x2aa0e6=_0x461139['getSuggestion'](_0x54a0fe);if(_0x141033['newRange']){const _0x1259be=_0x2aa0e6['getFirstRange']()['getContainedElement']();if(_0x59545c['isBlockImage'](_0x1259be))continue;_0x461139['discardSuggestion'](_0x2aa0e6),_0x4faa65=!0x0;}}if('insertion'==_0xfce662&&'imageCaption'==_0x43bcfb&&!_0x141033['newRange']){const _0x256cb3=_0x461139['getSuggestion'](_0x54a0fe);_0x256cb3['next']&&_0x256cb3['next']['isInContent']&&(_0x461139['discardSuggestion'](_0x256cb3['next']),_0x4faa65=!0x0);}}}return _0x4faa65;}),this['_registerLegacyDescription'](_0x2e4bba);}['_registerLegacyDescription'](_0x2d5f55){const _0x13494e=this['editor'],_0x2b95bb=_0x13494e['locale'];_0x13494e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x73d423=>{if('formatBlock'!=_0x73d423['type']&&'formatInline'!=_0x73d423['type'])return;const {data:_0x55f672}=_0x73d423;if(!_0x55f672||'imageStyle'!=_0x55f672['commandName'])return;const _0x4c9f27=_0x55f672['commandParams'][0x0]['value'];return _0x2610c9('side'===_0x4c9f27?o(_0x2b95bb,'FORMAT_SIDE_IMAGE'):_0x2d5f55[_0x4c9f27]||_0x4c9f27);function _0x2610c9(_0x4204c6){return{'type':'format','content':o(_0x2b95bb,'*Format:*\x20%0',_0x4204c6)};}});}}class ot extends _0x3cf114{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x299c3c){super(_0x299c3c),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x357bdb=this['editor'],_0x5a9036=_0x357bdb['commands']['get']('importWord'),_0x2089b0=_0x357bdb['commands']['get']('trackChanges');_0x5a9036&&(_0x5a9036['on']('execute',(_0x4f4fb3,[,_0x5dc375])=>{this['_trackChangesValueDuringImport']=_0x2089b0['value'],_0x5dc375['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5a9036,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5a9036,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2089b0['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x357bdb['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x54a14f,_0x419289){const {suggestions:_0xf48d02}=_0x419289,_0x467865=this['editor']['commands']['get']('trackChanges'),_0x27b1bd=_0x467865['value'];this['_trackChangesValueDuringImport']!==_0x27b1bd&&(_0x467865['execute'](),this['_trackChangesExecuted']=!0x0),_0xf48d02&&_0xf48d02['forEach'](({id:_0x2e979f,type:_0x11a910,author:_0x27c3fb,created_at:_0x206e0e})=>{const _0x2a28a1={'id':_0x2e979f,'type':_0x11a910,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x27c3fb,'createdAt':_0x206e0e?new Date(_0x206e0e):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2a28a1);});}}class rt extends _0x3cf114{['afterInit'](){const _0x4b885d=this['editor'],_0xdeeb5f=_0x4b885d['plugins']['get']('TrackChangesEditing');if(_0x4b885d['plugins']['has']('IndentEditing')&&(_0xdeeb5f['enableCommand']('indent'),_0xdeeb5f['enableCommand']('outdent')),_0x4b885d['plugins']['has']('IndentBlock')){for(const _0x29dc81 of['indentBlock','outdentBlock'])_0xdeeb5f['enableDefaultAttributesIntegration'](_0x29dc81);}const _0x57afad=_0x4b885d['locale'];_0xdeeb5f['registerBlockAttribute']('blockIndent'),_0xdeeb5f['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x57afad,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b926b=this['editor'],_0x2650fe=_0x3b926b['locale'],_0x349d0d=_0x3b926b['plugins']['get']('TrackChangesEditing');_0x349d0d['descriptionFactory']['registerDescriptionCallback'](_0x57ecbe=>{if('formatBlock'!=_0x57ecbe['type'])return;const {data:_0x447ecd}=_0x57ecbe;if(!_0x447ecd)return;if('indentBlock'!=_0x447ecd['commandName']&&'outdentBlock'!=_0x447ecd['commandName'])return;const _0x2cbfcf=_0x57ecbe['getItems']()[0x0],_0x1d3ffb=_0x349d0d['descriptionFactory']['getItemLabel'](_0x2cbfcf);return'indentBlock'==_0x447ecd['commandName']?{'type':'format','content':o(_0x2650fe,'*Indent:*\x20%0',_0x1d3ffb)}:'outdentBlock'==_0x447ecd['commandName']?{'type':'format','content':o(_0x2650fe,'*Outdent:*\x20%0',_0x1d3ffb)}:void 0x0;});}}class at extends _0x3cf114{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x3cf114{['afterInit'](){const _0x93b706=this['editor'];if(!_0x93b706['plugins']['has']('LinkEditing'))return;const _0x14928e=_0x93b706['plugins']['get']('TrackChangesEditing'),_0x510b2e=_0x93b706['commands']['get']('link');_0x14928e['enableDefaultAttributesIntegration']('link'),_0x14928e['enableDefaultAttributesIntegration']('unlink'),_0x14928e['registerInlineAttribute']('linkHref');for(const _0x588ec8 of _0x510b2e['manualDecorators'])_0x14928e['registerInlineAttribute'](_0x588ec8['id']),_0x14928e['descriptionFactory']['registerAttributeLabel'](_0x588ec8['id'],'link\x20('+_0x588ec8['label']['toLowerCase']()+')');_0x14928e['descriptionFactory']['registerDescriptionCallback'](_0x535394=>{if('attribute'!=_0x535394['type'])return;const {data:_0x167c3c}=_0x535394;if(!_0x167c3c||'linkHref'!=_0x167c3c['key'])return;const _0x4217cf=_0x167c3c['newValue'],_0x295a81=_0x93b706['locale'];return{'type':'format','content':null==_0x4217cf?o(_0x295a81,'*Remove\x20link*'):o(_0x295a81,'*Set\x20link:*\x20%0','\x22'+_0x4217cf+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x362ec0=this['editor'],_0x143815=_0x362ec0['locale'];_0x362ec0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x175f71=>{if('formatInline'!=_0x175f71['type'])return;const {data:_0x367ac2}=_0x175f71;if(_0x367ac2){if('link'==_0x367ac2['commandName']){const _0x55b7e5=_0x367ac2['commandParams'][0x0];return{'type':'format','content':o(_0x143815,'*Set\x20link:*\x20%0','\x22'+_0x55b7e5+'\x22')};}return'unlink'==_0x367ac2['commandName']?{'type':'format','content':o(_0x143815,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x3cf114{['afterInit'](){const _0x494e81=this['editor'],_0x576661=_0x494e81['locale'];if(!_0x494e81['plugins']['has']('LegacyListEditing'))return;const _0x82bdfc=_0x494e81['plugins']['get']('TrackChangesEditing'),_0x4e91ab=_0x494e81['plugins']['has']('LegacyTodoListEditing');function _0x46816c(_0x3ada4b){return()=>{const _0x41c04c=_0x494e81['model']['document']['selection'],_0x3a1046=_0x494e81['commands']['get'](_0x3ada4b);if(_0x3a1046['value'])return void _0x494e81['execute']('paragraph',{});const _0xf8dbb1=_0x3ada4b['slice'](0x0,-0x4),_0x1bacc7=function(_0x525148,_0x3e2eb6,_0x20990b){let _0x819f29=Array['from'](_0x525148)['filter'](_0x1e8a58=>function(_0x56990d,_0x51e30d){return _0x51e30d['checkChild'](_0x56990d['parent'],'listItem')&&!_0x51e30d['isObject'](_0x56990d);}(_0x1e8a58,_0x20990b));_0x819f29=_0x819f29['filter'](_0x15a420=>!_0x15a420['is']('element','listItem')||_0x15a420['getAttribute']('listType')!=_0x3e2eb6);const _0x19f22e=new Set();for(const _0x26c4e8 of _0x819f29)_0x26c4e8['is']('element','listItem')?_0x19f22e['add'](me(_0x26c4e8)):_0x19f22e['add'](_0x26c4e8);return Array['from'](_0x19f22e);}(_0x41c04c['getSelectedBlocks'](),_0xf8dbb1,_0x494e81['model']['schema']);_0x494e81['model']['change'](()=>{for(const _0x35a2fb of _0x1bacc7)_0x82bdfc['markBlockFormat'](_0x35a2fb,{'commandName':_0x3ada4b,'commandParams':[{'forceValue':!_0x3a1046['value']}],'formatGroupId':'blockName'},fe(_0x35a2fb));});};}function _0x517f39(_0x388d16){return()=>{const _0x514744=function(_0x44ca4c){let _0x55d20b=Array['from'](_0x44ca4c);const _0x4e9a91=_0x55d20b['findIndex'](_0x48718a=>'listItem'!=_0x48718a['name']);return _0x4e9a91>-0x1&&(_0x55d20b=_0x55d20b['slice'](0x0,_0x4e9a91)),_0x55d20b;}(_0x494e81['model']['document']['selection']['getSelectedBlocks']()),_0xa3aab9=_0x494e81['model']['createRange'](_0x494e81['model']['createPositionAt'](_0x514744[0x0],'before'),_0x494e81['model']['createPositionAt'](_0x514744[_0x514744['length']-0x1],'end'));_0x494e81['model']['change'](()=>{_0x82bdfc['markBlockFormat'](_0xa3aab9,{'commandName':_0x388d16,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1eefa9){const _0x20a59d=new Set();for(const _0x3d0597 of _0x1eefa9){let _0x1509f0=_0x3d0597['nextSibling'];for(;_0x1509f0&&_0x1509f0['getAttribute']('listIndent')>_0x3d0597['getAttribute']('listIndent');)_0x20a59d['add'](_0x1509f0),_0x1509f0=_0x1509f0['nextSibling'];}return Array['from'](_0x20a59d);}(_0x514744));});};}_0x82bdfc['enableCommand']('numberedList',_0x46816c('numberedList')),_0x82bdfc['enableCommand']('bulletedList',_0x46816c('bulletedList')),_0x4e91ab&&_0x82bdfc['enableCommand']('todoList',_0x46816c('todoList')),_0x82bdfc['enableCommand']('indentList',_0x517f39('indentList')),_0x82bdfc['enableCommand']('outdentList',_0x517f39('outdentList')),_0x4e91ab&&_0x82bdfc['enableCommand']('checkTodoList',()=>{const _0x8e3339=_0x494e81['commands']['get']('checkTodoList'),_0xe64bd5=Array['from'](_0x8e3339['_selectedElements']);_0xe64bd5['filter'](_0x6963e7=>_0x6963e7['getAttribute']('todoListChecked')!=_0x8e3339['value']),_0x494e81['model']['change'](()=>{for(const _0x5b9f87 of _0xe64bd5)_0x82bdfc['markBlockFormat'](_0x5b9f87,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x8e3339['value']}]});});}),_0x82bdfc['descriptionFactory']['registerElementLabel']('listItem',_0x5d8935=>o(_0x576661,'ELEMENT_LIST_ITEM',_0x5d8935)),_0x82bdfc['descriptionFactory']['registerDescriptionCallback'](_0x2041d6=>{if('formatBlock'!=_0x2041d6['type']&&'formatInline'!=_0x2041d6['type'])return;const {data:_0x1109d8}=_0x2041d6;if(_0x1109d8){if('numberedList'==_0x1109d8['commandName']||'bulletedList'==_0x1109d8['commandName']||'todoList'==_0x1109d8['commandName'])switch(_0x1109d8['commandName']['replace']('List','')){case'bulleted':return _0x20515a(o(_0x576661,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x20515a(o(_0x576661,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x20515a(o(_0x576661,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1109d8['commandName'])return{'type':'format','content':o(_0x576661,'*Indent:*\x20%0',o(_0x576661,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1109d8['commandName'])return{'type':'format','content':o(_0x576661,'*Outdent:*\x20%0',o(_0x576661,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1109d8['commandName'])return _0x1109d8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x576661,'*Check\x20item*')}:{'type':'format','content':o(_0x576661,'*Uncheck\x20item*')};}function _0x20515a(_0x1e8eed){return{'type':'format','content':o(_0x576661,'*Change\x20to:*\x20%0',_0x1e8eed)};}});}}function me(_0x1426d0){const _0x1a7d8c=_0x1426d0['getAttribute']('listIndent');if(0x0==_0x1a7d8c)return _0x1426d0;let _0x537c5f=_0x1426d0;for(;_0x1426d0['previousSibling']&&_0x1426d0['previousSibling']['is']('element','listItem');){const _0x40da20=_0x1426d0['previousSibling']['getAttribute']('listIndent');if(_0x40da20==_0x1a7d8c)_0x537c5f=_0x1426d0['previousSibling'];else{if(_0x40da20<_0x1a7d8c)break;}_0x1426d0=_0x1426d0['previousSibling'];}return _0x537c5f;}function fe(_0x55c2d7){const _0x3f2665=[];if(_0x55c2d7['is']('element','listItem')&&_0x55c2d7['getAttribute']('listIndent')>0x0){let _0x39424a=_0x55c2d7['nextSibling'];for(;_0x39424a&&'listItem'==_0x39424a['name']&&_0x39424a['getAttribute']('listIndent')==_0x55c2d7['getAttribute']('listIndent');)_0x3f2665['push'](_0x39424a),_0x39424a=_0x39424a['nextSibling'];}return _0x3f2665;}class z extends _0x3cf114{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2941e6=this['editor']['config']['get']('list.properties'),_0x326b91=this['editor']['plugins']['get']('TrackChangesEditing');_0x2941e6['styles']&&_0x326b91['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2941e6['reversed']&&_0x326b91['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2941e6['startIndex']&&_0x326b91['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x326b91['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x56b063,_0x148d4e={}){const _0x552042=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a84c9=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x552042['markMultiRangeBlockFormat'](_0x4a84c9,{'commandName':'listStyle','commandParams':[{'type':_0x148d4e['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xe51152,_0x154670={}){const _0xe31946=this['editor']['plugins']['get']('TrackChangesEditing'),_0x58f55a=this['_getSuggestionBlocks'](_0xce8adc=>_0xce8adc['is']('element','listItem')&&'numbered'===_0xce8adc['getAttribute']('listType'));if(_0x58f55a['length']<0x1)return;const _0x5639f2=_0x58f55a['map'](_0x3172ea=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3172ea,'before'),this['editor']['model']['createPositionAt'](_0x3172ea,0x0)));this['editor']['model']['change'](()=>{_0xe31946['markMultiRangeBlockFormat'](_0x5639f2,{'commandName':'listReversed','commandParams':[{'reversed':_0x154670['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xc10e38,_0x253e82={}){const _0x2de8a0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ed54b=this['_getSuggestionBlocks'](_0x9ef9bc=>_0x9ef9bc['is']('element','listItem')&&'numbered'===_0x9ef9bc['getAttribute']('listType'));if(_0x5ed54b['length']<0x1)return;const _0x168dcc=_0x5ed54b['map'](_0x413db4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x413db4,'before'),this['editor']['model']['createPositionAt'](_0x413db4,0x0)));this['editor']['model']['change'](()=>{_0x2de8a0['markMultiRangeBlockFormat'](_0x168dcc,{'commandName':'listStart','commandParams':[{'startIndex':_0x253e82['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x34f8f9){if('formatBlock'!=_0x34f8f9['type']&&'formatInline'!=_0x34f8f9['type'])return;const _0x57ebd9=this['editor']['locale'],{data:_0x52d0b8}=_0x34f8f9;if(!_0x52d0b8)return;let _0x3f441b,_0x3c0c00;switch(_0x52d0b8['commandName']){case'listStyle':_0x3f441b='*Change\x20to:*\x20%0',_0x3c0c00={'type':'format','content':o(_0x57ebd9,_0x3f441b,o(_0x57ebd9,this['_getTranslationKeyForListStyle'](_0x52d0b8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3f441b=_0x52d0b8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3c0c00={'type':'format','content':o(_0x57ebd9,_0x3f441b)};break;case'listStart':_0x3f441b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3c0c00={'type':'format','content':o(_0x57ebd9,_0x3f441b,_0x52d0b8['commandParams'][0x0]['startIndex'])};}return _0x3c0c00;}['_getSuggestionBlocksForListStyle'](){const _0x44d529=this['editor']['plugins']['get']('LegacyListUtils');let _0x781e2b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x781e2b[0x0]?.['is']('element','listItem')&&_0x781e2b['unshift'](..._0x44d529['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x781e2b[_0x781e2b['length']-0x1]?.['is']('element','listItem')&&_0x781e2b['push'](..._0x44d529['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x781e2b=[...new Set(_0x781e2b)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x781e2b=_0x781e2b['filter'](_0x140095=>_0x140095['is']('element','listItem'))),_0x781e2b;}['_getSuggestionBlocks'](_0x3c1bcd){const _0x24d4f9=this['editor']['plugins']['get']('LegacyListUtils');let _0x30292f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3c1bcd)['map'](_0x289482=>{const _0x25c361=this['editor']['model']['createPositionAt'](_0x289482,0x0);return[..._0x24d4f9['getSiblingNodes'](_0x25c361,'backward'),..._0x24d4f9['getSiblingNodes'](_0x25c361,'forward')];})['flat']();return _0x30292f=[...new Set(_0x30292f)],_0x30292f;}['_getTranslationKeyForListStyle'](_0x122b3f){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x122b3f)||'default')['toUpperCase']()+'_LIST_'+_0x122b3f['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x3cf114{['afterInit'](){const _0x268a1b=this['editor'];if(!_0x268a1b['plugins']['has']('MediaEmbedEditing'))return;const _0x56a28b=_0x268a1b['plugins']['get']('TrackChangesEditing'),_0x25d155=_0x268a1b['locale'];_0x56a28b['enableCommand']('mediaEmbed'),_0x56a28b['descriptionFactory']['registerElementLabel']('media',_0x14f7a5=>o(_0x25d155,'ELEMENT_MEDIA',_0x14f7a5)),_0x268a1b['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x271d6b,{writer:_0x19d89f,options:_0x2db713})=>{if(_0x2db713['showSuggestionHighlights'])return _0x19d89f['createEmptyElement']('div');},'converterPriority':'high'}),_0x268a1b['data']['downcastDispatcher']['on']('attribute:url:media',(_0x27dcba,_0x13d620,_0x41b04a)=>{_0x41b04a['options']['showSuggestionHighlights']&&_0x27dcba['stop']();},{'priority':'high'});}}class gt extends _0x3cf114{['afterInit'](){const _0x57fcd5=this['editor'];_0x57fcd5['plugins']['has']('MentionEditing')&&_0x57fcd5['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x3cf114{['afterInit'](){const _0x5e309b=this['editor'],_0x537ddc=_0x5e309b['plugins']['get']('TrackChangesEditing');_0x5e309b['plugins']['has']('MultiLevelList')&&(_0x537ddc['enableDefaultAttributesIntegration']('multiLevelList'),_0x537ddc['registerBlockAttribute']('listMarkerStyle'),_0x537ddc['descriptionFactory']['registerDescriptionCallback'](_0x59740=>this['handleDescriptions'](_0x59740)));}['handleDescriptions'](_0x4749c3){const _0x2ad310=this['editor']['locale'],{data:_0x30415a}=_0x4749c3,_0x2e4f2f={'type':'format','content':''};if(_0x30415a&&'listMarkerStyle'==_0x30415a['key']){if(!_0x30415a['oldValue'])return{'type':'format','content':o(_0x2ad310,'*Set\x20format:*\x20%0',o(_0x2ad310,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x30415a['newValue']+')'};if(!_0x30415a['newValue']){let _0x57f78d=_0x4749c3['head'];for(;_0x57f78d;){if(_0x57f78d['data']&&'listType'==_0x57f78d['data']['key']&&_0x57f78d['data']['newValue'])return _0x2e4f2f;_0x57f78d=_0x57f78d['next'];}return{'type':'format','content':o(_0x2ad310,'*Remove\x20format:*\x20%0',o(_0x2ad310,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x30415a['oldValue']+')'};}}}}class mt extends _0x3cf114{['afterInit'](){const _0x5ce95d=this['editor'];if(!_0x5ce95d['plugins']['has']('PageBreakEditing'))return;_0x5ce95d['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x497b3a=_0x5ce95d['plugins']['get']('TrackChangesEditing'),_0x1a7e82=_0x5ce95d['locale'];_0x497b3a['descriptionFactory']['registerElementLabel']('pageBreak',_0x1937ae=>o(_0x1a7e82,'ELEMENT_PAGE_BREAK',_0x1937ae));}}class dt extends _0x3cf114{['afterInit'](){const _0xe35022=this['editor'];if(!_0xe35022['plugins']['has']('Paragraph'))return;const _0x37b3b8=_0xe35022['locale'],_0x4b615b=_0xe35022['plugins']['get']('TrackChangesEditing');_0x4b615b['descriptionFactory']['registerElementLabel']('paragraph',_0x454b69=>o(_0x37b3b8,'ELEMENT_PARAGRAPH',_0x454b69)),_0x4b615b['enableDefaultAttributesIntegration']('paragraph'),_0x4b615b['enableCommand']('insertParagraph'),_0xe35022['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xe35022),{'priority':'highest'}),_0xe35022['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x15ab7d,_0x318829,_0x5b7372)=>{_0x5b7372['options']['showSuggestionHighlights']&&nr(_0xe35022,{'showActiveMarker':!0x1})(_0x15ab7d,_0x318829,_0x5b7372);},{'priority':'highest'});const _0x20492a=_0x4b615b['descriptionFactory'];_0x20492a['registerDescriptionCallback'](_0x3347b1=>{if('insertion'!==_0x3347b1['type'])return;const {start:_0x55f4ab,end:_0x464e14}=_0x3347b1['getFirstRange']();if(!_0x55f4ab['isTouching'](_0x464e14)||!_0x55f4ab['nodeAfter'])return;const _0x1c1455=_0xe35022['model']['schema'],_0x2aa5bd=_0x55f4ab['nodeAfter'];return _0x1c1455['isBlock'](_0x2aa5bd)&&!_0x1c1455['isLimit'](_0x2aa5bd)&&_0x1c1455['checkChild'](_0x2aa5bd,'$text')?{'type':'insertion','content':o(_0x37b3b8,'*Insert:*\x20%0',_0x20492a['getItemLabel'](_0x2aa5bd,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x208889=this['editor'],_0x3362b1=_0x208889['locale'];_0x208889['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38e431=>{if('formatBlock'!=_0x38e431['type'])return;const {data:_0x241484}=_0x38e431;return _0x241484&&'paragraph'==_0x241484['commandName']?{'type':'format','content':o(_0x3362b1,'*Change\x20to:*\x20%0',o(_0x3362b1,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3000b6,{showActiveMarker:_0x508aea=!0x0}={}){return(_0x4bb8a6,_0x4220ae,_0x39544a)=>{const _0x4c6974=_0x3000b6['plugins']['get']('TrackChangesEditing'),_0x38e50d=_0x4220ae['markerRange']['start'],_0x42a1e7=_0x4220ae['markerRange']['end'],_0x1b3307=_0x3000b6['model']['schema'];if(!_0x38e50d['isTouching'](_0x42a1e7)||!_0x38e50d['nodeAfter'])return;const _0x1acd1e=_0x38e50d['nodeAfter'];if(_0x1b3307['isBlock'](_0x1acd1e)&&!_0x1b3307['isLimit'](_0x1acd1e)&&_0x1b3307['checkChild'](_0x1acd1e,'$text')){if(!_0x39544a['consumable']['consume'](_0x4220ae['markerRange'],_0x4bb8a6['name']))return;const _0x4aa87b=_0x39544a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x1d4606=_0x39544a['mapper']['toViewPosition'](_0x42a1e7);_0x508aea&&_0x4c6974['activeMarkers']['includes'](_0x4220ae['markerName'])&&_0x39544a['writer']['addClass']('ck-suggestion-marker--active',_0x4aa87b),_0x39544a['writer']['insert'](_0x1d4606,_0x4aa87b),_0x39544a['mapper']['bindElementToMarker'](_0x4aa87b,_0x4220ae['markerName']);}};}class pt extends _0x3cf114{['afterInit'](){const _0x259834=this['editor'];if(!_0x259834['plugins']['has']('RemoveFormatEditing'))return;_0x259834['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ebcb0=this['editor'];_0x1ebcb0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a74c8=>{if('formatBlock'!=_0x1a74c8['type']&&'formatInline'!=_0x1a74c8['type'])return;const {data:_0x49f405}=_0x1a74c8;return _0x49f405&&'removeFormat'==_0x49f405['commandName']?{'type':'format','content':o(_0x1ebcb0['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x3cf114{['afterInit'](){const _0xb808c=this['editor'];if(!_0xb808c['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4d7b8e=_0xb808c['plugins']['get']('TrackChangesEditing');_0x4d7b8e['enableCommand']('goToPreviousRestrictedEditingException'),_0x4d7b8e['enableCommand']('goToNextRestrictedEditingException');const _0x270883=_0xb808c['plugins']['get']('RestrictedEditingModeEditing');_0x270883['enableCommand']('trackChanges'),_0x270883['enableCommand']('acceptSuggestion'),_0x270883['enableCommand']('discardSuggestion'),_0x270883['enableCommand']('acceptAllSuggestions'),_0x270883['enableCommand']('discardAllSuggestions'),_0x270883['enableCommand']('acceptSelectedSuggestions'),_0x270883['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x3cf114{static get['requires'](){return[_0x4ea829];}['init'](){const _0x521358=this['editor'],_0x4639e0=_0x521358['plugins']['get']('TrackChangesEditing');_0x4639e0['enableCommand']('shiftEnter'),_0x521358['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x521358),{'priority':'high'}),_0x521358['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x521358),{'priority':'high'}),_0x521358['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x341b3e,_0xd48088,_0x16586a)=>{_0x16586a['options']['showSuggestionHighlights']&&de(_0x521358,{'showActiveMarker':!0x1})(_0x341b3e,_0xd48088,_0x16586a);}),_0x4639e0['descriptionFactory']['registerElementLabel']('softBreak',_0x15f408=>o(_0x521358['locale'],'ELEMENT_LINE_BREAK',_0x15f408));}}function de(_0x33c7ff,{showActiveMarker:_0x2103eb=!0x0}={}){return(_0x4ec7a4,_0x340e41,_0x32ad2c)=>{const _0x13cf17=_0x33c7ff['plugins']['get']('TrackChangesEditing');if(!_0x32ad2c['consumable']['test'](_0x340e41['markerRange'],_0x4ec7a4['name']))return;const _0x53b84f=_0x33c7ff['model'];for(const _0x42cccc of _0x340e41['markerRange']['getItems']()){if(!_0x42cccc['is']('element','softBreak'))continue;const _0x33ae6e='deletion'==_0x340e41['markerName']['split'](':')[0x1]?'merge':'split',_0x125de0=_0x32ad2c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x33ae6e}),_0x1e1841=_0x32ad2c['mapper']['toViewPosition'](_0x53b84f['createPositionBefore'](_0x42cccc));_0x2103eb&&_0x13cf17['activeMarkers']['includes'](_0x340e41['markerName'])&&_0x32ad2c['writer']['addClass']('ck-suggestion-marker--active',_0x125de0),_0x32ad2c['writer']['insert'](_0x1e1841,_0x125de0),_0x32ad2c['mapper']['bindElementToMarker'](_0x125de0,_0x340e41['markerName']);}};}class wt extends _0x3cf114{['afterInit'](){const _0x3b9c57=this['editor'],_0x5aad15=_0x3b9c57['model'],_0x13e0dd=_0x3b9c57['locale'];if(!_0x3b9c57['plugins']['has']('StandardEditingModeEditing'))return;const _0x53a180=_0x3b9c57['plugins']['get']('TrackChangesEditing'),_0x363f5e='restrictedEditingException',_0x23c67e=_0x3b9c57['commands']['get'](_0x363f5e);_0x53a180['enableCommand'](_0x363f5e,(_0x9862fc,_0x1a6f79={})=>{const _0x17cc82=_0x5aad15['document']['selection'];if(_0x17cc82['isCollapsed'])return void _0x9862fc(_0x1a6f79);const _0x504d3e=void 0x0!==_0x1a6f79['forceValue']?_0x1a6f79['forceValue']:!_0x23c67e['value'];_0x5aad15['change'](()=>{const _0x40d09b=Array['from'](_0x17cc82['getRanges']());for(const _0x2db0c5 of _0x40d09b){const _0x338e3f=_0x504d3e?[_0x2db0c5]:io(_0x363f5e,_0x2db0c5,_0x5aad15);for(const _0x59c5e4 of _0x338e3f)_0x53a180['markInlineFormat'](_0x59c5e4,{'commandName':_0x363f5e,'commandParams':[{'forceValue':_0x504d3e}]});}});}),_0x53a180['descriptionFactory']['registerDescriptionCallback'](_0x304674=>{if('formatBlock'!=_0x304674['type']&&'formatInline'!=_0x304674['type'])return;const {data:_0x2ce9a9}=_0x304674;return _0x2ce9a9&&_0x2ce9a9['commandName']==_0x363f5e?_0x2ce9a9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x13e0dd,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x13e0dd,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x3cf114{['afterInit'](){const _0x416ee8=this['editor'];if(!_0x416ee8['plugins']['has']('Style')||!_0x416ee8['plugins']['has']('DataSchema'))return;const _0x57679b=_0x416ee8['plugins']['get']('TrackChangesEditing'),_0x17d8b4=_0x416ee8['locale'],_0x5751a9=_0x416ee8['config']['get']('style')||{},_0x871754=_0x416ee8['plugins']['get']('GeneralHtmlSupport'),_0x16833a=_0x416ee8['plugins']['get']('StyleUtils')['normalizeConfig'](_0x416ee8['plugins']['get']('DataSchema'),_0x5751a9['definitions']);_0x57679b['enableDefaultAttributesIntegration']('style');const _0x662407=new Set();for(const _0xc102be of _0x16833a['block']){const _0x26242c=_0x871754['getGhsAttributeNameForElement'](_0xc102be['element']);_0x662407['add'](_0x26242c);}const _0x16e6d0=new Set();for(const _0xc3c2a3 of _0x16833a['inline']){const _0x399983=_0x871754['getGhsAttributeNameForElement'](_0xc3c2a3['element']);_0x16e6d0['add'](_0x399983);for(const _0x55cf57 of _0xc3c2a3['ghsAttributes'])_0x16e6d0['add'](_0x55cf57);}for(const _0x5d6473 of _0x662407)_0x57679b['registerBlockAttribute'](_0x5d6473),_0x57679b['descriptionFactory']['registerAttributeLabel'](_0x5d6473,o(_0x17d8b4,'FORMAT_STYLE'));for(const _0x1dd60f of _0x16e6d0)_0x57679b['registerInlineAttribute'](_0x1dd60f),_0x57679b['descriptionFactory']['registerAttributeLabel'](_0x1dd60f,o(_0x17d8b4,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f266b=this['editor'],_0x2d60a4=_0x1f266b['locale'];_0x1f266b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33d69c=>{if('formatBlock'!=_0x33d69c['type']&&'formatInline'!=_0x33d69c['type'])return;const {data:_0x1ed38b}=_0x33d69c;return _0x1ed38b&&'style'===_0x1ed38b['commandName']?_0x1ed38b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2d60a4,'*Set\x20format:*\x20%0',_0x1ed38b['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2d60a4,'*Remove\x20format:*\x20%0',_0x1ed38b['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x3cf114{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x9184be){super(_0x9184be),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x197264=this['editor'],_0x2a0b79=_0x197264['model']['document']['selection'];if(!_0x197264['plugins']['has']('TableEditing'))return;const _0x506f08=_0x197264['locale'],_0x2707a5=_0x197264['plugins']['get']('TrackChangesEditing'),_0x3e3123=_0x197264['plugins']['get']('TableUtils');_0x2707a5['descriptionFactory']['registerElementLabel']('table',_0x286698=>o(_0x506f08,'ELEMENT_TABLE',_0x286698)),this['_setupColumnsRowsFixing'](),_0x2707a5['enableCommand']('insertTable'),_0x2707a5['enableCommand']('selectTableRow'),_0x2707a5['enableCommand']('selectTableColumn');for(const _0x1a6b31 of['insertTableRowAbove','insertTableRowBelow']){const _0x5db402=_0x197264['commands']['get'](_0x1a6b31);_0x2707a5['enableCommand'](_0x1a6b31,_0x3a9933=>{_0x197264['model']['change'](_0x3177d0=>{_0x3a9933();const _0x314d2c='above'===_0x5db402['order'],_0x19a042=_0x3e3123['getSelectionAffectedTableCells'](_0x2a0b79),_0x4b15c6=_0x3e3123['getRowIndexes'](_0x19a042),_0x3af9b8=_0x314d2c?_0x4b15c6['first']-0x1:_0x4b15c6['last']+0x1,_0x49ab67=_0x19a042[0x0]['findAncestor']('table'),_0x1ca902=_0x3e3123['createTableWalker'](_0x49ab67,{'startRow':_0x3af9b8,'endRow':_0x3af9b8}),_0x2ccf28=Array['from'](_0x1ca902)['map'](_0x12d89e=>_0x3177d0['createRangeOn'](_0x12d89e['cell']));_0x2707a5['markMultiRangeInsertion'](_0x2ccf28,'tableRow');});});}for(const _0x42206f of['insertTableColumnLeft','insertTableColumnRight']){const _0x118618=_0x197264['commands']['get'](_0x42206f);_0x2707a5['enableCommand'](_0x42206f,_0x1d1f0f=>{_0x197264['model']['change'](_0x373345=>{_0x1d1f0f();const _0x58eb88='left'===_0x118618['order'],_0x1141c7=_0x3e3123['getSelectionAffectedTableCells'](_0x2a0b79),_0x1a38d4=_0x3e3123['getColumnIndexes'](_0x1141c7),_0x8ff5d6=_0x58eb88?_0x1a38d4['first']-0x1:_0x1a38d4['last']+0x1,_0xe89e34=_0x1141c7[0x0]['findAncestor']('table'),_0x59b58c=_0x3e3123['createTableWalker'](_0xe89e34,{'startRow':0x0,'column':_0x8ff5d6,'includeAllSlots':!0x1}),_0x381102=Array['from'](_0x59b58c)['map'](_0x5b7b13=>_0x373345['createRangeOn'](_0x5b7b13['cell']));_0x2707a5['markMultiRangeInsertion'](_0x381102,'tableColumn');});});}for(const _0x997ad6 of['removeTableRow','removeTableColumn']){const _0x341c06=_0x997ad6['substr'](0xb),_0x2880fe=_0x341c06['toLowerCase'](),_0x3c9bc6=_0x2880fe['substr'](0x0,0x3)+'span',_0x4acf9b='table'+_0x341c06,_0x38136c='min'+_0x341c06,_0x46cf6b='max'+_0x341c06;_0x2707a5['enableCommand'](_0x997ad6,()=>{_0x197264['model']['change'](_0x27a997=>{const _0x203f2e=_0x3e3123['getSelectionAffectedTableCells'](_0x2a0b79),_0x2b630d=_0x203f2e[0x0]['findAncestor']('table');let _0x229292;if('removeTableRow'==_0x997ad6){const _0x3b9ed3=_0x3e3123['getRowIndexes'](_0x203f2e);_0x229292={'startRow':_0x3b9ed3['first'],'endRow':_0x3b9ed3['last'],'includeAllSlots':!0x0};}else{const _0x50aeb2=_0x3e3123['getColumnIndexes'](_0x203f2e);_0x229292={'startColumn':_0x50aeb2['first'],'endColumn':_0x50aeb2['last'],'includeAllSlots':!0x0};}const _0x42f4ae=_0x3e3123['createTableWalker'](_0x2b630d,_0x229292),_0x27541a=Array['from'](_0x42f4ae)['map'](({cell:_0x559af3})=>_0x559af3),_0xcd418e=Ee(_0x27541a['filter'](_0x4a26d1=>_0x4a26d1['hasAttribute'](_0x3c9bc6))),_0x177404=Ee(_0x27541a['filter'](_0x2eae84=>!_0x2eae84['hasAttribute'](_0x3c9bc6)))['map'](_0x4ab437=>_0x27a997['createRangeOn'](_0x4ab437)),_0x12dd7a=_0x2707a5['markMultiRangeDeletion'](_0x177404,_0x4acf9b);if(_0x12dd7a&&('tableRow'==_0x12dd7a['subType']||'tableColumn'==_0x12dd7a['subType'])){const _0x53bd04=this['_getSuggestionCoords'](_0x12dd7a);for(const _0xf129dc of _0xcd418e){const _0x5a003a=_0x27a997['createRangeOn'](_0xf129dc),_0x45bf3c=_0x3e3123['getCellLocation'](_0xf129dc),_0x3316ec=_0xf129dc['getAttribute'](_0x3c9bc6)-0x1,_0x685233=_0x53bd04[_0x38136c],_0x2da7b9=_0x53bd04[_0x46cf6b];_0x685233<=_0x45bf3c[_0x2880fe]&&_0x45bf3c[_0x2880fe]+_0x3316ec<=_0x2da7b9&&_0x12dd7a['addRange'](_0x5a003a);}}});});}function _0x54a168(_0x5900d1){const _0x13471e=Array['from'](_0x2a0b79['getRanges']())['map'](_0x454923=>_0x150295['fromRange'](_0x454923));_0x197264['model']['change'](_0x1e7b47=>{const _0x2264a7=_0x1e7b47['batch'];_0x5900d1=_0x5900d1['filter'](_0x45cbdd=>'$graveyard'!=_0x45cbdd['root']['rootName']),_0x1e7b47['setSelection'](_0x5900d1),_0x197264['commands']['get']('removeTableRow')['refresh'](),_0x197264['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x197264['model']['enqueueChange'](()=>{_0x197264['model']['enqueueChange'](_0x2264a7,_0x442587=>{const _0x289b76=_0x13471e['filter'](_0x33c8d3=>'$graveyard'!=_0x33c8d3['root']['rootName']);_0x289b76['length']>0x0&&_0x442587['setSelection'](_0x289b76);for(const _0x4483b5 of _0x13471e)_0x4483b5['detach']();});});});}function _0x3c3d6a(_0x1ee6c8){_0x197264['model']['change'](_0x5aa7c9=>{const _0x12de87=Array['from'](_0x2a0b79['getRanges']())['map'](_0x25529a=>_0x150295['fromRange'](_0x25529a)),_0xdfed1d=[];for(const _0x29177f of _0x1ee6c8)for(const _0x5c46fd of _0x29177f['getItems']({'shallow':!0x0}))_0xdfed1d['push'](_0x5c46fd);for(const _0x417eb8 of _0xdfed1d)'$graveyard'!=_0x417eb8['root']['rootName']&&(_0x5aa7c9['setSelection'](_0x5aa7c9['createPositionAt'](_0x417eb8,0x0)),_0x197264['commands']['get']('removeTableColumn')['refresh'](),_0x197264['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4382f6=_0x12de87['filter'](_0x4ebd46=>'$graveyard'!=_0x4ebd46['root']['rootName']);_0x4382f6['length']>0x0&&_0x5aa7c9['setSelection'](_0x4382f6);for(const _0x56359 of _0x12de87)_0x56359['detach']();});}function _0x3ea10b(_0x5df6d8,_0x59366b){return _0x59366b['every'](_0x31c930=>_0x5df6d8['some'](_0x30340b=>_0x30340b['end']['isEqual'](_0x31c930['start'])||_0x31c930['end']['isEqual'](_0x30340b['start'])));}function _0x19f89d(_0x2be4d4,_0x4801d0){return!_0x2be4d4['some'](_0x594648=>_0x4801d0['some'](_0x5d7645=>_0x594648['isIntersecting'](_0x5d7645)))&&_0x2be4d4['some'](_0x1dcfab=>_0x4801d0['some'](_0x5bae67=>_0x1dcfab['end']['isTouching'](_0x5bae67['start'])));}_0x197264['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x7680fe,_0x50b8ce,_0x1eaa13)=>{if(!_0x1eaa13['options']['showSuggestionHighlights'])return;const _0x2fa34e=_0x50b8ce['item'];if(!_0x2fa34e)return;const _0x265ef4=_0x1eaa13['mapper']['toViewElement'](_0x2fa34e);function _0x55a704(_0x5a1208){return Array['isArray'](_0x5a1208)?_0x5a1208:[_0x5a1208];}_0x265ef4&&'tableCell'===_0x2fa34e['name']&&_0x233cfd(_0x265ef4,_0x1eaa13['writer'],(_0x34a486,_0x3cc1b3,_0x324eb6)=>_0x324eb6['addClass'](_0x55a704(_0x3cc1b3['classes']),_0x34a486),(_0x45ffa1,_0x302339,_0x125de6)=>_0x125de6['removeClass'](_0x55a704(_0x302339['classes']),_0x45ffa1));},{'priority':'highest'}),_0x2707a5['descriptionFactory']['registerDescriptionCallback'](_0x14120d=>{if('insertion'!=_0x14120d['type']&&'deletion'!=_0x14120d['type'])return;const _0xcd679=_0x14120d['getContainedElement']();if(null!=_0xcd679&&_0xcd679['is']('element','table')){if('insertion'==_0x14120d['type']){const _0x576aec=_0x14120d['getItems']()['filter'](_0x510b47=>_0x510b47['is']('$textProxy'))['map'](_0x465105=>_0x465105['data']);if(_0x576aec['length'])return{'type':'insertion','content':o(_0x506f08,'*Insert:*\x20%0',o(_0x506f08,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x576aec['join']('\x20')+'\x22'))};}if('deletion'==_0x14120d['type']){const _0x7025a9=_0x14120d['getItems']()['filter'](_0x38039c=>_0x38039c['is']('$textProxy'))['map'](_0x2d4a4b=>_0x2d4a4b['data']);if(_0x7025a9['length'])return{'type':'deletion','content':o(_0x506f08,'*Remove:*\x20%0',o(_0x506f08,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x7025a9['join']('\x20')+'\x22'))};}}}),_0x2707a5['descriptionFactory']['registerDescriptionCallback'](_0x5c579b=>{if('tableRow'==_0x5c579b['subType']){const _0x48fc23=_0x5c579b['getItems']()['filter'](_0x9b0655=>_0x9b0655['is']('$textProxy'))['map'](_0x38670f=>_0x38670f['data']),_0x2bd097=this['_getSuggestionCoords'](_0x5c579b),_0x1e8a0f=_0x2bd097['maxRow']-_0x2bd097['minRow']+0x1;if('insertion'==_0x5c579b['type'])return _0x48fc23['length']?{'type':'insertion','content':o(_0x506f08,'*Insert:*\x20%0',o(_0x506f08,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1e8a0f,'\x22'+_0x48fc23['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x506f08,'*Insert:*\x20%0',o(_0x506f08,'ELEMENT_TABLE_ROW',_0x1e8a0f))};if('deletion'==_0x5c579b['type'])return _0x48fc23['length']?{'type':'deletion','content':o(_0x506f08,'*Remove:*\x20%0',o(_0x506f08,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1e8a0f,'\x22'+_0x48fc23['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x506f08,'*Remove:*\x20%0',o(_0x506f08,'ELEMENT_TABLE_ROW',_0x1e8a0f))};}if('tableColumn'==_0x5c579b['subType']){const _0x5e79f2=_0x5c579b['getItems']()['filter'](_0x4115e1=>_0x4115e1['is']('$textProxy'))['map'](_0x295de8=>_0x295de8['data']),_0x3dba96=this['_getSuggestionCoords'](_0x5c579b),_0x257c2e=_0x3dba96['maxColumn']-_0x3dba96['minColumn']+0x1;if('insertion'==_0x5c579b['type'])return _0x5e79f2['length']?{'type':'insertion','content':o(_0x506f08,'*Insert:*\x20%0',o(_0x506f08,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x257c2e,'\x22'+_0x5e79f2['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x506f08,'*Insert:*\x20%0',o(_0x506f08,'ELEMENT_TABLE_COLUMN',_0x257c2e))};if('deletion'==_0x5c579b['type'])return _0x5e79f2['length']?{'type':'deletion','content':o(_0x506f08,'*Remove:*\x20%0',o(_0x506f08,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x257c2e,'\x22'+_0x5e79f2['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x506f08,'*Remove:*\x20%0',o(_0x506f08,'ELEMENT_TABLE_COLUMN',_0x257c2e))};}}),_0x2707a5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x54a168),_0x2707a5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x54a168),_0x2707a5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3c3d6a),_0x2707a5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3c3d6a),_0x2707a5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3ea10b),_0x2707a5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3ea10b),_0x2707a5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x19f89d),_0x2707a5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x19f89d);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3a5b93=this['editor'],_0x185250=_0x3a5b93['model']['document']['selection'];return(_0x981216,_0x4d12cf)=>{_0x3a5b93['model']['change'](_0x4efab9=>{const {commandName:_0x11ed9f,commandParams:_0x3628de}=_0x4d12cf;let _0x449846=_0x981216[0x0]['end']['nodeBefore'];_0x3628de&&_0x3628de[0x0]&&!0x1===_0x3628de[0x0]['forceValue']&&(_0x449846=_0x981216[0x0]['start']['nodeAfter']);const _0x5a2953=_0x4efab9['createRangeIn'](_0x449846);if('$graveyard'==_0x5a2953['root']['rootName'])return;const _0x1fa23f=Array['from'](_0x185250['getRanges']())['map'](_0x2b9533=>_0x150295['fromRange'](_0x2b9533));_0x4efab9['setSelection'](_0x5a2953),_0x3a5b93['commands']['get'](_0x11ed9f)['refresh'](),_0x3628de['push']({'forceDefaultExecution':!0x0}),_0x3a5b93['execute'](_0x11ed9f,..._0x3628de);const _0x4bfec6=_0x1fa23f['filter'](_0x1c1414=>'$graveyard'!=_0x1c1414['root']['rootName']);_0x4bfec6['length']>0x0&&_0x4efab9['setSelection'](_0x4bfec6);for(const _0x214daa of _0x1fa23f)_0x214daa['detach']();});};}['_getCoordsForCells'](_0x443eb3){const _0x57aa03=this['editor']['plugins']['get']('TableUtils');let _0x6e0757=Number['MAX_SAFE_INTEGER'],_0x188f19=Number['MIN_SAFE_INTEGER'],_0x248c7d=Number['MAX_SAFE_INTEGER'],_0x351ec7=Number['MIN_SAFE_INTEGER'];for(const _0x282e35 of _0x443eb3){if('$graveyard'==_0x282e35['root']['rootName'])continue;const {row:_0x44bd9f,column:_0x86cb9b}=_0x57aa03['getCellLocation'](_0x282e35),_0x3f4c62=_0x282e35['hasAttribute']('rowspan')?_0x282e35['getAttribute']('rowspan')-0x1:0x0,_0x4ca2e9=_0x282e35['hasAttribute']('colspan')?_0x282e35['getAttribute']('colspan')-0x1:0x0;_0x6e0757=_0x44bd9f<_0x6e0757?_0x44bd9f:_0x6e0757,_0x188f19=_0x44bd9f+_0x3f4c62>_0x188f19?_0x44bd9f+_0x3f4c62:_0x188f19,_0x248c7d=_0x86cb9b<_0x248c7d?_0x86cb9b:_0x248c7d,_0x351ec7=_0x86cb9b+_0x4ca2e9>_0x351ec7?_0x86cb9b+_0x4ca2e9:_0x351ec7;}return{'minRow':_0x6e0757,'maxRow':_0x188f19,'minColumn':_0x248c7d,'maxColumn':_0x351ec7};}['_setupColumnsRowsFixing'](){const _0x453b71=this['editor'],_0x41971c=_0x453b71['plugins']['get']('TrackChangesEditing'),_0x5e4690=_0x453b71['plugins']['get']('TableUtils');_0x453b71['model']['document']['on']('change:data',()=>{const _0xdada53=Array['from'](_0x453b71['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x8349d9,data:_0x1a1707}of _0xdada53){const {group:_0x2c97f1,id:_0x19d98a,subType:_0x4375ff}=_0x41971c['_splitMarkerName'](_0x8349d9);if('suggestion'!=_0x2c97f1)continue;if(null!=_0x1a1707['oldRange'])continue;const _0x328f9c=_0x41971c['getSuggestion'](_0x19d98a);this['_tablePostFixingSubtypes']['includes'](_0x4375ff)&&this['_tableSuggestions']['add'](_0x328f9c);}},{'priority':'low'});const _0x2188cc=(_0x408a01,_0x20c5d7)=>{let _0x3ff874=!0x1;const _0x40cbba=_0x20c5d7['createRangeOn'](_0x408a01),_0x3b9e39=_0x408a01['findAncestor']('table'),_0x3fa687=_0x5e4690['getCellLocation'](_0x408a01);for(const _0x83b4e9 of this['_tableSuggestions']){const _0x22c2f9=_0x83b4e9['subType'],_0x3c7a33=_0x22c2f9['startsWith']('tablePaste'),_0x57c903=_0x22c2f9['substr'](_0x3c7a33?0xa:0x5),_0x4adae4=_0x57c903['toLowerCase'](),_0x294b4b=_0x4adae4['substr'](0x0,0x3)+'span',_0xdccc37='min'+_0x57c903,_0x3bf201='max'+_0x57c903;if(!_0x83b4e9['isInContent'])continue;if(_0x3b9e39!=_0x83b4e9['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x83b4e9['isIntersectingWithRange'](_0x40cbba))continue;const _0x27be6e=_0x408a01['hasAttribute'](_0x294b4b)?_0x408a01['getAttribute'](_0x294b4b)-0x1:0x0,_0x1ca786=this['_getSuggestionCoords'](_0x83b4e9),_0x29a7c0=_0x1ca786[_0xdccc37],_0x3117d1=_0x1ca786[_0x3bf201];_0x29a7c0<=_0x3fa687[_0x4adae4]&&_0x3fa687[_0x4adae4]+_0x27be6e<=_0x3117d1&&(_0x83b4e9['addRange'](_0x40cbba),_0x3ff874=!0x0);}return _0x3ff874;};_0x453b71['model']['document']['registerPostFixer'](_0x217493=>{let _0x45287a=!0x1;for(const _0x35b82e of _0x453b71['model']['document']['differ']['getChanges']())if('insert'==_0x35b82e['type']){if('tableRow'==_0x35b82e['name']){for(const _0x4e8fe1 of _0x35b82e['position']['nodeAfter']['getChildren']())_0x45287a=_0x45287a||_0x2188cc(_0x4e8fe1,_0x217493);}else'tableCell'==_0x35b82e['name']&&(_0x45287a=_0x45287a||_0x2188cc(_0x35b82e['position']['nodeAfter'],_0x217493));}return _0x45287a;});}['_getSuggestionCoords'](_0x4c7466){return this['_getCoordsForCells'](_0x4c7466['getRanges']()['map'](_0x52a6d3=>_0x52a6d3['start']['nodeAfter']));}}function Ee(_0x27b6c9){return Array['from'](new Set(_0x27b6c9)['values']());}class St extends _0x3cf114{static get['requires'](){return[jt];}['afterInit'](){const _0x4b3bd1=this['editor'],_0x9cd46a=_0x4b3bd1['model']['document']['selection'],_0xc1b928=_0x4b3bd1['locale'];if(!_0x4b3bd1['plugins']['has']('TableEditing'))return;const _0x5db7e0=_0x4b3bd1['plugins']['get']('TrackChangesEditing'),_0xd0d6ef=_0x4b3bd1['plugins']['get']('TableUtils'),_0x4da732=_0x4b3bd1['plugins']['get'](jt);_0x4da732['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5db7e0['enableCommand']('mergeTableCells',()=>{const _0x36ae5d=_0xd0d6ef['getSelectionAffectedTableCells'](_0x4b3bd1['model']['document']['selection']);_0x4b3bd1['model']['change'](()=>{_0x5db7e0['markMultiRangeBlockFormat'](_0x36ae5d,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4b3bd1['commands']['get']('mergeTableCells')['on']('execute',(_0x46fdea,_0x323673)=>{_0x4b3bd1['commands']['get']('trackChanges')['value']&&(_0x323673['length']>0x0&&_0x323673[_0x323673['length']-0x1]&&_0x323673[_0x323673['length']-0x1]['forceDefaultExecution']||_0x5db7e0['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x46fdea['stop']());},{'priority':'highest'});for(const _0x25ccbc of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2580b4=_0x4b3bd1['commands']['get'](_0x25ccbc);_0x5db7e0['enableCommand'](_0x25ccbc,()=>{const _0x44d235=_0x4b3bd1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x42c96a=>_0x42c96a['is']('element','tableCell')),_0x2d57a7=_0x2580b4['value'];_0x4b3bd1['model']['change'](()=>{_0x5db7e0['markMultiRangeBlockFormat']([_0x44d235,_0x2d57a7],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3af77e of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4c0c90=_0x4b3bd1['commands']['get'](_0x3af77e);_0x5db7e0['enableCommand'](_0x3af77e,()=>{const _0x49e423=_0xd0d6ef['getSelectionAffectedTableCells'](_0x4b3bd1['model']['document']['selection'])[0x0],_0x5ef72b=_0x49e423['findAncestor']('table'),{column:_0xb22f70,row:_0x1121d8}=_0xd0d6ef['getCellLocation'](_0x49e423);let _0x999802=[];if('horizontally'==_0x4c0c90['direction']){const _0x262450=_0xd0d6ef['createTableWalker'](_0x5ef72b,{'startRow':_0x1121d8,'endRow':_0x1121d8,'includeAllSlots':!0x0});_0x999802=Array['from'](_0x262450)['map'](_0x30afb6=>_0x30afb6['cell']);}else{const _0x329e99=_0xd0d6ef['createTableWalker'](_0x5ef72b,{'column':_0xb22f70,'includeAllSlots':!0x0});_0x999802=Array['from'](_0x329e99)['map'](_0x297114=>_0x297114['cell']);}_0x4b3bd1['model']['change'](_0x30bbd6=>{_0x5db7e0['markBlockFormat'](_0x30bbd6['createRangeOn'](_0x49e423),{'commandName':_0x3af77e,'commandParams':[]},_0x999802,_0x3af77e);});});}_0x5db7e0['descriptionFactory']['registerDescriptionCallback'](_0xc51461=>{if('formatBlock'!=_0xc51461['type']&&'formatInline'!=_0xc51461['type'])return;const {data:_0x56c4a1}=_0xc51461;return _0x56c4a1&&'mergeTableCells'==_0x56c4a1['commandName']?{'type':'format','content':o(_0xc1b928,'*Merge\x20cells*')}:void 0x0;}),_0x5db7e0['descriptionFactory']['registerDescriptionCallback'](_0x4b526e=>{if('formatBlock'!=_0x4b526e['type']&&'formatInline'!=_0x4b526e['type'])return;const {data:_0x4d48cf}=_0x4b526e;return _0x4d48cf?'splitTableCellVertically'==_0x4d48cf['commandName']?{'type':'format','content':o(_0xc1b928,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4d48cf['commandName']?{'type':'format','content':o(_0xc1b928,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2e89bc=_0x4da732['_acceptFormatSuggestionCallbackFactory']();for(const _0x21d3eb of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5db7e0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x21d3eb,'accept',_0x2e89bc);for(const _0x5c05be of['splitTableCellVertically','splitTableCellHorizontally'])_0x5db7e0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5c05be,'accept',_0x2e89bc);_0x5db7e0['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x19bf28=>{_0x4b3bd1['model']['change'](_0x3c02ba=>{const _0x48c136=Array['from'](_0x9cd46a['getRanges']())['map'](_0x38cd74=>_0x150295['fromRange'](_0x38cd74));_0x3c02ba['setSelection'](_0x19bf28),_0x4b3bd1['commands']['get']('mergeTableCells')['refresh'](),_0x4b3bd1['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3db99b=_0x48c136['filter'](_0x56cb4d=>'$graveyard'!=_0x56cb4d['root']['rootName']);_0x3db99b['length']>0x0&&_0x3c02ba['setSelection'](_0x3db99b);for(const _0x56e018 of _0x48c136)_0x56e018['detach']();});});for(const _0x371404 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x427301=_0x4b3bd1['commands']['get'](_0x371404);_0x427301['on']('set:isEnabled',(_0x5dfa64,_0x149a22,_0xc6f7d9)=>{if(_0xc6f7d9){const _0x1e4003=_0x4b3bd1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x421220=>_0x421220['is']('element','tableCell'));this['_areMergableCells'](_0x427301['value'],_0x1e4003)||(_0x5dfa64['return']=!0x1,_0x5dfa64['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3092dc=this['editor']['commands']['get']('mergeTableCells'),_0x542e8a=this['editor']['plugins']['get']('TableUtils');if(!_0x3092dc['isEnabled'])return!0x1;const _0x18cc5d=_0x542e8a['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x30ea3c of _0x18cc5d)for(const _0x2c128d of _0x18cc5d)if(_0x30ea3c!=_0x2c128d&&!this['_areMergableCells'](_0x30ea3c,_0x2c128d))return!0x1;return!0x0;}['_areMergableCells'](_0x5e5190,_0x15acd7){const _0x251ac8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x548225=this['editor']['model']['createRangeOn'](_0x5e5190),_0x4243d9=this['editor']['model']['createRangeOn'](_0x15acd7),_0x54b2ee=new Set(),_0x1ceb3c=new Set();for(const _0x2f9844 of _0x251ac8['getSuggestions']())if(('insertion'==_0x2f9844['type']||'deletion'==_0x2f9844['type']||'mergeTableCells'==_0x2f9844['subType'])&&_0x2f9844['isInContent']){for(const _0x2c279e of _0x2f9844['getRanges']())_0x2c279e['containsRange'](_0x548225,!0x0)&&_0x54b2ee['add'](_0x2f9844['type']+':'+_0x2f9844['author']['id']),_0x2c279e['containsRange'](_0x4243d9,!0x0)&&_0x1ceb3c['add'](_0x2f9844['type']+':'+_0x2f9844['author']['id']);}if(_0x54b2ee['size']!=_0x1ceb3c['size'])return!0x1;for(const _0x424421 of _0x54b2ee)if(!_0x1ceb3c['has'](_0x424421))return!0x1;return!0x0;}}class At extends _0x3cf114{static get['requires'](){return[jt];}['afterInit'](){const _0x48fc85=this['editor'];if(!_0x48fc85['plugins']['has']('TableEditing'))return;const _0x3c126b=_0x48fc85['locale'],_0x2a00c6=_0x48fc85['plugins']['get']('TrackChangesEditing');_0x2a00c6['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2a00c6['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2a00c6['registerBlockAttribute']('headingRows'),_0x2a00c6['registerBlockAttribute']('headingColumns'),_0x2a00c6['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3c126b,'FORMAT_HEADER_ROW')),_0x2a00c6['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3c126b,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2083f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x19360d=this['editor']['plugins']['get']('TableUtils'),_0x3a63f4=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x1466cd({showActiveMarker:_0x243110=!0x0,setDataAttribute:_0x55440a=!0x0}={}){return(_0x124cec,_0x701ae8,_0x3a0ce0)=>{const {type:_0x3d6a90,id:_0x23ee8f}=_0x2083f['_splitMarkerName'](_0x701ae8['markerName']),_0x2fb233=_0x2083f['getSuggestion'](_0x23ee8f),_0x2f0a3e=_0x2fb233['data'];if('formatBlock'!=_0x2fb233['type']||!_0x2f0a3e||'setTableColumnHeader'!=_0x2f0a3e['commandName'])return;if(_0x701ae8['item'])return void _0x124cec['stop']();if(!_0x3a0ce0['consumable']['consume'](_0x701ae8['markerRange'],_0x124cec['name']))return;const _0x41b5a6=_0x701ae8['markerRange']['start']['nodeAfter'],_0x72fc5c=_0x701ae8['markerRange']['end']['nodeBefore'],_0x2acee6=_0x41b5a6['parent']['parent'],{column:_0x4ef435}=_0x19360d['getCellLocation'](_0x41b5a6),{column:_0x526cf9}=_0x19360d['getCellLocation'](_0x72fc5c);for(let _0x254d86=_0x4ef435;_0x254d86<=_0x526cf9;_0x254d86++){const _0x519fea=_0x19360d['createTableWalker'](_0x2acee6,{'column':_0x254d86,'includeAllSlots':!0x1});for(const _0x34bfdc of _0x519fea){const _0x3c55da=_0x34bfdc['cell'],_0x4e3a1b=_0x3a0ce0['mapper']['toViewElement'](_0x3c55da);_0x3a0ce0['writer']['addClass']('ck-suggestion-marker-'+_0x3d6a90,_0x4e3a1b),_0x55440a&&_0x3a0ce0['writer']['setAttribute']('data-suggestion',_0x23ee8f,_0x4e3a1b),_0x3a0ce0['mapper']['bindElementToMarker'](_0x4e3a1b,_0x701ae8['markerName']),_0x243110&&(_0x2083f['activeMarkers']['includes'](_0x701ae8['markerName'])?_0x3a0ce0['writer']['addClass']('ck-suggestion-marker--active',_0x4e3a1b):_0x3a0ce0['writer']['removeClass']('ck-suggestion-marker--active',_0x4e3a1b));}}};}_0x2083f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3a63f4),_0x2083f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3a63f4),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1466cd(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x297553,_0x4e7b6e,_0x426e5e)=>{_0x426e5e['options']['showSuggestionHighlights']&&_0x1466cd({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x297553,_0x4e7b6e,_0x426e5e);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xfee740,_0x122b46,_0x4ec567)=>{const {type:_0x27defd,id:_0x4e2492}=_0x2083f['_splitMarkerName'](_0x122b46['markerName']),_0x2225a6=_0x2083f['getSuggestion'](_0x4e2492),_0x156de9=_0x2225a6['data'];if('formatBlock'!=_0x2225a6['type']||!_0x156de9||'setTableColumnHeader'!=_0x156de9['commandName'])return;const _0x5c451a=_0x4ec567['mapper']['markerNameToElements'](_0x122b46['markerName']);if(_0x5c451a){for(const _0x3e4a87 of _0x5c451a)_0x4ec567['writer']['removeClass']('ck-suggestion-marker-'+_0x27defd,_0x3e4a87),_0x4ec567['writer']['removeClass']('ck-suggestion-marker--active',_0x3e4a87),_0x4ec567['writer']['removeAttribute']('data-suggestion',_0x3e4a87),_0x4ec567['mapper']['unbindElementFromMarkerName'](_0x3e4a87,_0x122b46['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f555d=this['editor'],_0x5b522e=_0x3f555d['locale'];function _0x52ce41(_0x210247){return{'type':'format','content':o(_0x5b522e,'*Format:*\x20%0',_0x210247)};}_0x3f555d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40d31d=>{if('formatBlock'!=_0x40d31d['type'])return;const {data:_0x11eded}=_0x40d31d;if(_0x11eded){if('setTableRowHeader'==_0x11eded['commandName']){const _0xb663c8=_0x11eded['commandParams'][0x0]['forceValue'];return _0x52ce41(o(_0x5b522e,_0xb663c8?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x11eded['commandName']){const _0x593399=_0x11eded['commandParams'][0x0]['forceValue'];return _0x52ce41(o(_0x5b522e,_0x593399?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0xef6774=>[_0xef6774,null]));class It extends _0x3cf114{static get['requires'](){return[jt];}['afterInit'](){const _0x3971c6=this['editor'];if(!_0x3971c6['plugins']['has']('TableClipboard'))return;const _0x16cfbd=_0x3971c6['plugins']['get']('TrackChangesEditing'),_0x17a8d2=_0x3971c6['plugins']['get']('TableUtils'),_0x2d9b8c=_0x3971c6['plugins']['get'](jt),_0x21a710=_0x3971c6['plugins']['get']('TableClipboard');_0x2d9b8c['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3971c6['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3971c6['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4834e4=null;_0x3971c6['model']['on']('insertContent',(_0x81b908,_0x20a2fb)=>{const [_0x56c817,_0x2b26d7]=_0x20a2fb,_0x11ac2e=_0x20a2fb[_0x20a2fb['length']-0x1];_0x11ac2e&&_0x11ac2e['forceDefaultExecution']||_0x16cfbd['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x156791,_0x23b8c7,_0x6459d0,_0x4d0b07,_0x28b29d){if(_0x23b8c7&&!_0x23b8c7['is']('documentSelection'))return!0x1;const _0x4c9702=_0x28b29d['getTableIfOnlyTableInContent'](_0x156791,_0x6459d0);if(!_0x4c9702||!he(_0x4c9702,void 0x0,_0x4d0b07))return!0x1;const _0x30f2a8=_0x4d0b07['getSelectionAffectedTableCells'](_0x6459d0['document']['selection']);if(!_0x30f2a8['length'])return!0x1;const _0x28b912=_0x30f2a8[0x0]['findAncestor']('table'),_0x2f8829=_0x4d0b07['getRowIndexes'](_0x30f2a8),_0x518c28=_0x4d0b07['getColumnIndexes'](_0x30f2a8),_0x8dcd04={'startRow':_0x2f8829['first'],'endRow':_0x2f8829['last'],'startColumn':_0x518c28['first'],'endColumn':_0x518c28['last']};return 0x1==_0x30f2a8['length']&&(_0x8dcd04['endRow']+=_0x4d0b07['getRows'](_0x4c9702)-0x1,_0x8dcd04['endColumn']+=_0x4d0b07['getColumns'](_0x4c9702)-0x1),he(_0x28b912,_0x8dcd04,_0x4d0b07);}(_0x56c817,_0x2b26d7,_0x3971c6['model'],_0x17a8d2,_0x21a710)&&(_0x81b908['stop'](),_0x4834e4={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3971c6['model']['change'](()=>{_0x3971c6['model']['insertContent'](_0x20a2fb[0x0],_0x20a2fb[0x1],_0x20a2fb[0x2],{'forceDefaultExecution':!0x0});const _0x1f8c25=_0x2dd115(),{rowInsertionRanges:_0x15cec8,columnInsertionRanges:_0x1a8f9d,insertionRanges:_0x5c9120,deletionRanges:_0x4129d8,cells:_0x42c1f9}=_0x4834e4;_0x15cec8['length']&&_0x16cfbd['markMultiRangeInsertion'](_0x15cec8,'tablePasteRow',{'tablePasteChainId':_0x1f8c25}),_0x1a8f9d['length']&&_0x16cfbd['markMultiRangeInsertion'](_0x1a8f9d,'tablePasteColumn',{'tablePasteChainId':_0x1f8c25}),_0x5c9120['length']&&(_0x16cfbd['markMultiRangeInsertion'](_0x5c9120,'tablePaste',{'tablePasteChainId':_0x1f8c25,'skipNestingCheck':!0x0}),_0x5c9120['forEach'](_0x385b40=>_0x385b40['detach']?.())),_0x4129d8['length']&&(_0x16cfbd['markMultiRangeDeletion'](_0x4129d8,'tablePaste',{'tablePasteChainId':_0x1f8c25,'skipNestingCheck':!0x0}),_0x4129d8['forEach'](_0x42c876=>_0x42c876['detach']?.()));const _0x125c83=_0x16cfbd['markMultiRangeBlockFormat'](_0x42c1f9['map'](({element:_0x3104b9})=>_0x3104b9),{'formatGroupId':_0x2dd115()},[],'tablePasteCell',{'tablePasteChainId':_0x1f8c25});if(_0x125c83){const _0x5a9b5d=_0x125c83['getMarkers'](),_0x3b75bc=[];for(const {element:_0x14df3f,attributes:_0x38d69f}of _0x42c1f9){if(!_0x38d69f)continue;const _0xa6412b=_0x3971c6['model']['createRangeOn'](_0x14df3f),_0x1c5fb3=_0x5a9b5d['find'](_0x1c8cf0=>_0x1c8cf0['getRange']()['isEqual'](_0xa6412b));_0x1c5fb3&&_0x3b75bc['push']([_0x1c5fb3['name'],_0x38d69f]);}_0x3b75bc['length']&&_0x125c83['setAttribute']('markerAttributes',Object['fromEntries'](_0x3b75bc));}_0x4834e4=null;}));},{'priority':_0x2b5f0a['high']+0xa}),_0x3971c6['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3ed2f7,_0x2c827f)=>{const [_0xc48dc4,_0x1fe986,,_0x384932]=_0x2c827f;if(!_0x4834e4)return;_0x3ed2f7['stop']();const _0x4ed0d4=_0xc48dc4['cell'],_0x4d2c91=_0x1fe986,_0x4bcbf7=Pe(_0x4ed0d4),_0x598425=Pe(_0x4d2c91);_0x3ed2f7['return']=_0x4ed0d4;let _0x4bedec=null,_0x224792=null;if(_0x598425||_0x4bcbf7){if(_0x4bcbf7&&!_0x598425){_0x384932['remove'](_0x4ed0d4['getChild'](0x0));for(const _0x46da9a of Array['from'](_0x4d2c91['getChildren']()))_0x384932['insert'](_0x46da9a,_0x4ed0d4,'end');const _0x3facc9=_0x4834e4['rowInsertionIndexes']['includes'](_0xc48dc4['row']),_0x13f0b1=_0x4834e4['columnInsertionIndexes']['includes'](_0xc48dc4['column']);_0x3facc9||_0x13f0b1||(_0x4bedec=_0x150295['fromRange'](_0x384932['createRangeIn'](_0x4ed0d4)));}else _0x598425&&!_0x4bcbf7&&(_0x224792=_0x384932['createRangeIn'](_0x4ed0d4));}else{const _0x14e6df=_0x384932['createElement']('tableCellSuggestion'),_0x2adcdd=_0x384932['createElement']('tableCellSuggestion');_0x384932['wrap'](_0x384932['createRangeIn'](_0x4ed0d4),_0x2adcdd),_0x384932['insert'](_0x14e6df,_0x4ed0d4,0x0);for(const _0x5ccf85 of Array['from'](_0x4d2c91['getChildren']()))_0x384932['insert'](_0x5ccf85,_0x14e6df,'end');_0x4bedec=_0x150295['fromRange'](_0x384932['createRangeOn'](_0x14e6df)),_0x224792=_0x150295['fromRange'](_0x384932['createRangeOn'](_0x2adcdd));}const _0x46519b=Array['from'](_0x4d2c91['getAttributes']())['filter'](([_0x36b0f3])=>ge['includes'](_0x36b0f3));_0x4834e4['cells']['push']({'element':_0x4ed0d4,'attributes':_0x46519b['length']?Object['fromEntries'](_0x46519b):null}),_0x4bedec&&_0x4834e4['insertionRanges']['push'](_0x4bedec),_0x224792&&_0x4834e4['deletionRanges']['push'](_0x224792);},{'priority':'high'}),_0x17a8d2['on']('insertColumns',(_0x4297a5,_0x2ab876)=>{const [_0x338c64,_0x3aad22={}]=_0x2ab876;if(!_0x4834e4)return;const _0x44475e=_0x3aad22['at']||0x0,_0x1bfb80=_0x3aad22['columns']||0x1;_0x4834e4['columnInsertionIndexes']=new Array(_0x1bfb80)['fill'](_0x44475e)['map']((_0x32b612,_0x3dfacb)=>_0x32b612+_0x3dfacb);for(const {cell:_0x512b78}of _0x17a8d2['createTableWalker'](_0x338c64,{'startColumn':_0x44475e,'endColumn':_0x44475e+_0x1bfb80-0x1}))_0x4834e4['columnInsertionRanges']['push'](_0x3971c6['model']['createRangeOn'](_0x512b78));},{'priority':'low'}),_0x17a8d2['on']('insertRows',(_0x34b067,_0x29e4c0)=>{const [_0x266926,_0x59899c={}]=_0x29e4c0;if(!_0x4834e4)return;const _0x59db0f=_0x59899c['at']||0x0,_0x184961=_0x59899c['rows']||0x1;_0x4834e4['rowInsertionIndexes']=new Array(_0x184961)['fill'](_0x59db0f)['map']((_0x516558,_0x490a4b)=>_0x516558+_0x490a4b);for(const {cell:_0x21a460}of _0x17a8d2['createTableWalker'](_0x266926,{'startRow':_0x59db0f,'endRow':_0x59db0f+_0x184961-0x1}))_0x4834e4['rowInsertionRanges']['push'](_0x3971c6['model']['createRangeOn'](_0x21a460));},{'priority':'low'}),_0x16cfbd['descriptionFactory']['registerDescriptionCallback'](_0x50f881=>{if(_0x50f881['subType']&&_0x50f881['subType']['startsWith']('tablePaste'))return _0x50f881['previous']?{}:{'type':'insertion','content':o(_0x3971c6['locale'],'*Replace\x20table\x20cells*')};});const _0x3ccd8f=()=>!0x1;for(const _0x8076c0 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x16cfbd['_suggestionFactory']['registerCustomCallback']('insertion',_0x8076c0,'join',_0x3ccd8f),_0x16cfbd['_suggestionFactory']['registerCustomCallback']('deletion',_0x8076c0,'join',_0x3ccd8f),_0x16cfbd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x8076c0,'join',_0x3ccd8f);_0x16cfbd['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3ccd8f),_0x16cfbd['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x57d90a,_0x40a3b2,_0x4842aa)=>{const _0x7ac7db=_0x57d90a['map'](_0x32ee4c=>_0x32ee4c['getContainedElement']())['filter'](_0x50e1c4=>_0x50e1c4),_0x2e3144=new Map(_0x7ac7db['map'](_0x1a4085=>[_0x1a4085,null]));if(_0x4834e4){for(const {element:_0x13ee72,attributes:_0x550bec}of _0x4834e4['cells'])_0x550bec&&_0x2e3144['set'](_0x13ee72,_0x550bec);}else{if(_0x4842aa&&_0x4842aa['markerAttributes'])for(const [_0x26ae87,_0x479958]of Object['entries'](_0x4842aa['markerAttributes'])){const _0x2b52db=_0x3971c6['model']['markers']['get'](_0x26ae87),_0x4a9350=_0x2b52db?_0x2b52db['getRange']()['getContainedElement']():null;_0x4a9350&&_0x2e3144['set'](_0x4a9350,_0x479958);}}_0x3971c6['model']['change'](_0x3d8b1b=>{for(const [_0x1693b0,_0x25b0f5]of _0x2e3144)_0x3d8b1b['setAttributes']({...Ce,..._0x25b0f5},_0x1693b0);});});const _0x292131=(_0x65f337,_0x4f2d90)=>{_0x16cfbd['_suggestionFactory']['registerCustomCallback'](_0x65f337,'tablePaste',_0x4f2d90,(_0x4f5b55,_0x40693b,_0x4f8df5)=>{_0x3971c6['model']['change'](_0x5b2ef8=>{const _0x4ba84f=[];for(const _0x2350a2 of _0x4f5b55){const _0x58bcb4=_0x2350a2['start']['nodeAfter'];_0x58bcb4['is']('element','tableCellSuggestion')&&_0x4ba84f['push'](_0x58bcb4);}_0x16cfbd['_suggestionFactory']['getSuggestionCallback'](_0x65f337,null,_0x4f2d90)(_0x4f5b55,_0x40693b,_0x4f8df5);for(const _0x183c4f of _0x4ba84f)'$graveyard'!=_0x183c4f['root']['rootName']&&_0x5b2ef8['unwrap'](_0x183c4f);});});};_0x292131('insertion','accept'),_0x292131('insertion','discard'),_0x292131('deletion','accept'),_0x292131('deletion','discard'),_0x16cfbd['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2b28d0=>{const _0x38cd19=_0x2b28d0['map'](_0x294fa9=>_0x294fa9['getContainedElement']()),_0x1a8c62=_0x38cd19[0x0]['findAncestor']('table'),{minRow:_0x420078,maxRow:_0x207a3e}=_0x2d9b8c['_getCoordsForCells'](_0x38cd19);_0x17a8d2['removeRows'](_0x1a8c62,{'at':_0x420078,'rows':_0x207a3e-_0x420078+0x1});}),_0x16cfbd['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x50e103=>{const _0x1b03f3=_0x50e103['map'](_0x1c9539=>_0x1c9539['getContainedElement']()),_0x363c2d=_0x1b03f3[0x0]['findAncestor']('table'),{minColumn:_0x1b59a9,maxColumn:_0x3a73dd}=_0x2d9b8c['_getCoordsForCells'](_0x1b03f3);_0x17a8d2['removeColumns'](_0x363c2d,{'at':_0x1b59a9,'columns':_0x3a73dd-_0x1b59a9+0x1});});const _0x1d1dff=(_0x4f1bdf,_0x374c18)=>{if(!_0x374c18['subType']||!_0x374c18['subType']['startsWith']('tablePaste'))return;const _0x2b7c57=_0x374c18['attributes']['tablePasteChainId'],_0x5bcc4b=_0x16cfbd['getSuggestions']()['filter'](_0x23e1c7=>_0x23e1c7['isInContent']&&_0x23e1c7['attributes']&&_0x23e1c7['attributes']['tablePasteChainId']==_0x2b7c57);_0x5bcc4b['length']&&_0x374c18['getAllAdjacentSuggestions']()['length']!=_0x5bcc4b['length']&&_0x5bcc4b['reduce']((_0xce3733,_0xc219d0)=>(_0xce3733['next']=_0xc219d0,_0xc219d0['previous']=_0xce3733,_0xc219d0));};function _0x30cbbd(_0x3bba0d,_0x5d5022=!0x0){const {id:_0x2afa23}=_0x16cfbd['_splitMarkerName'](_0x3bba0d['markerName']),_0x1c9062=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x8e1265=_0x16cfbd['activeMarkers']['includes'](_0x3bba0d['markerName']);return _0x8e1265&&_0x1c9062['push']('ck-suggestion-marker--active'),{'classes':_0x1c9062,'attributes':{'data-suggestion':_0x2afa23},'priority':_0x8e1265&&_0x5d5022?0xbc2:0xbb8};}_0x16cfbd['on']('suggestionLoaded',_0x1d1dff,{'priority':'high'}),_0x16cfbd['on']('suggestionUnloaded',_0x1d1dff,{'priority':'high'}),_0x3971c6['model']['document']['registerPostFixer'](()=>{let _0x1371bd=!0x1;const _0x443470=Array['from'](_0x3971c6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2c0ba4,data:_0x533fe7}of _0x443470){const {group:_0x1669d1,type:_0x219e23,id:_0x3da987}=_0x16cfbd['_splitMarkerName'](_0x2c0ba4);if('suggestion'!=_0x1669d1||'deletion'!=_0x219e23||_0x533fe7['oldRange'])continue;if(!_0x16cfbd['hasSuggestion'](_0x3da987))continue;const _0x12ad46=_0x16cfbd['getSuggestion'](_0x3da987)['getRanges'](),_0x4cc30f=_0x3971c6['plugins']['get']('Users')['me'];for(const _0xf2f655 of _0x16cfbd['getSuggestions']()){if(!_0xf2f655['isInContent']||_0xf2f655['author']!=_0x4cc30f)continue;if('formatBlock'!=_0xf2f655['type']||'tablePasteCell'!=_0xf2f655['subType'])continue;if(_0xf2f655['getRanges']()['every'](_0x1d51d9=>_0x12ad46['some'](_0x52df25=>_0x52df25['containsRange'](_0x1d51d9,!0x0)))){for(const _0xff90c4 of _0xf2f655['getAllAdjacentSuggestions']())_0xff90c4['isInContent']&&(_0xff90c4['discard'](),_0x1371bd=!0x0);}}}return _0x1371bd;}),_0x3971c6['model']['document']['registerPostFixer'](_0x4ade1e=>{const _0x432c6e=_0x3971c6['commands']['get']('redo');if(!_0x432c6e||!_0x432c6e['_createdBatches']['has'](_0x4ade1e['batch']))return!0x1;let _0x3fa46f=!0x1;const _0x2b5d2d=_0x3971c6['plugins']['get']('Users')['me'],_0x3645e9=_0x3971c6['model']['document']['differ']['getChanges'](),_0x36967f=Array['from'](_0x3971c6['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x553745,data:_0x401db2})=>{const {group:_0xe34367,subType:_0x14ea2c,authorId:_0x164808}=_0x16cfbd['_splitMarkerName'](_0x553745);return'suggestion'==_0xe34367&&'tablePaste'==_0x14ea2c&&_0x164808==_0x2b5d2d['id']&&!_0x401db2['oldRange'];});for(const _0x27af45 of _0x3645e9){if('insert'!=_0x27af45['type']||'tableCellSuggestion'!=_0x27af45['name']||0x1!=_0x27af45['length'])continue;const _0x31ee0c=_0x4ade1e['createRange'](_0x27af45['position'],_0x27af45['position']['getShiftedBy'](0x1));if(!_0x36967f['find'](({data:_0x430d1b})=>_0x430d1b['newRange']['isEqual'](_0x31ee0c))){for(const {name:_0xec090d,data:_0x857b17}of _0x36967f)if(_0x31ee0c['containsRange'](_0x857b17['newRange'])){_0x4ade1e['updateMarker'](_0xec090d,{'range':_0x31ee0c}),_0x3fa46f=!0x0;break;}}}return _0x3fa46f;}),_0x3971c6['model']['document']['registerPostFixer'](_0x2b887e=>{let _0x2749eb=!0x1;const _0x4a741f=_0x3971c6['plugins']['get']('Users')['me'],_0x3cb102=_0x16cfbd['getSuggestions']()['filter'](_0x454e7a=>_0x454e7a['isInContent']&&_0x454e7a['author']==_0x4a741f),_0x55252a=new Set(),_0x3328fc=new Set();for(const _0x9e6bdb of _0x3cb102)if('tablePaste'==_0x9e6bdb['subType'])for(const _0x2ce742 of _0x9e6bdb['getMarkers']()){const _0x4cdcf9=_0x2ce742['getRange']()['getContainedElement']();if(_0x4cdcf9){if(_0x4cdcf9['is']('element','tableCellSuggestion')&&Pe(_0x4cdcf9)){_0x9e6bdb['removeMarker'](_0x2ce742['name']),_0x55252a['add'](_0x4cdcf9),_0x2749eb=!0x0;const _0x1ff6a7=_0x4cdcf9['nextSibling'],_0x5d54ff=_0x4cdcf9['previousSibling'],_0x2361b0=_0x1ff6a7&&_0x1ff6a7['is']('element','tableCellSuggestion'),_0x3820f8=_0x5d54ff&&_0x5d54ff['is']('element','tableCellSuggestion');_0x2361b0&&!_0x55252a['has'](_0x1ff6a7)&&_0x3328fc['add'](_0x1ff6a7),_0x3820f8&&!_0x55252a['has'](_0x5d54ff)&&_0x3328fc['add'](_0x5d54ff);}else _0x4cdcf9['is']('element','paragraph')&&_0x4cdcf9['isEmpty']&&(_0x9e6bdb['removeMarker'](_0x2ce742['name']),_0x2749eb=!0x0);}}else{if('tablePasteCell'==_0x9e6bdb['subType']){if(!_0x9e6bdb['attributes']||!_0x9e6bdb['attributes']['tablePasteChainId'])continue;const _0x2b3e63=_0x9e6bdb['attributes']['markerAttributes'];if(_0x2b3e63&&Object['keys'](_0x2b3e63)['length'])continue;const _0x36e3ac=_0x9e6bdb['attributes']['tablePasteChainId'];let _0x6babb9=!0x0,_0x244291=!0x0;for(const _0x3d5778 of _0x3cb102)if(_0x3d5778['subType']&&_0x3d5778['subType']['startsWith']('tablePaste')){if(!_0x3d5778['attributes']['tablePasteChainId']){_0x244291=!0x1;break;}if(_0x3d5778['id']!=_0x9e6bdb['id']&&_0x3d5778['attributes']['tablePasteChainId']==_0x36e3ac){_0x6babb9=!0x1;break;}}_0x244291&&_0x6babb9&&(_0x9e6bdb['removeMarkers'](),_0x2749eb=!0x0);}}for(const _0x1ceb70 of _0x55252a)_0x2b887e['remove'](_0x1ceb70);for(const _0x329d09 of _0x3328fc)_0x2b887e['unwrap'](_0x329d09);return _0x2749eb;}),_0x3971c6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x14bcfa,_0xb11bf5)=>_0x30cbbd(_0x14bcfa),'converterPriority':'high'}),_0x3971c6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4ab0fb,_0x5af90f)=>_0x5af90f['options']['showSuggestionHighlights']?_0x30cbbd(_0x4ab0fb,!0x1):null,'converterPriority':'high'});const _0x3e3bbf=_0x3971c6['editing']['view'];this['listenTo'](_0x3e3bbf['document'],'clipboardOutput',(_0x18ab0b,_0x19d445)=>{const _0x25c6f7=[];for(const _0x57b823 of _0x3e3bbf['createRangeIn'](_0x19d445['content'])['getItems']())_0x57b823['is']('element','suggestion-td')&&_0x25c6f7['push'](_0x57b823);_0x3e3bbf['change'](_0x58d041=>{for(const _0x280df2 of _0x25c6f7)_0x58d041['move'](_0x58d041['createRangeIn'](_0x280df2),_0x58d041['createPositionBefore'](_0x280df2)),_0x58d041['remove'](_0x280df2);});});}}function Pe(_0x1ba826){if(_0x1ba826['isEmpty'])return!0x0;const _0x1568b0=_0x1ba826['getChild'](0x0);return _0x1568b0['is']('element','paragraph')&&_0x1568b0['isEmpty'];}function he(_0x49e345,_0x2f4743={},_0x4177c9){for(const {isAnchor:_0x945bb0,cellHeight:_0x54f09a,cellWidth:_0x5dafe3}of _0x4177c9['createTableWalker'](_0x49e345,{'includeAllSlots':!0x0,..._0x2f4743}))if(!_0x945bb0||0x1!=_0x54f09a||0x1!=_0x5dafe3)return!0x1;return!0x0;}class vt extends _0x3cf114{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3818e8=this['editor']['plugins']['get']('TrackChangesEditing');_0x3818e8['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3818e8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3818e8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3818e8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3818e8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3818e8['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x11adbd,_0x516789){const _0x1688b0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x353622=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xb72aa9=_0x516789['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x30176b=_0x353622['getColumnGroupElement'](_0xb72aa9);let _0x1f058f=_0x30176b?_0x353622['getTableColumnsWidths'](_0x30176b):null,_0xa6e6d7=_0xb72aa9['getAttribute']('tableWidth')||null;const _0x41d482=_0x516789['tableWidth']||_0xa6e6d7,_0x2c3625=_0x516789['columnWidths']||_0x1f058f,_0x156cb1=this['editor']['plugins']['get']('Users')['me'];for(const _0x32f2c3 of _0x1688b0['getSuggestions']()){const _0x6ea80c=_0x32f2c3['getContainedElement']();if('resizeTable'===_0x32f2c3['subType']&&_0x6ea80c===_0xb72aa9){_0x32f2c3['author']!==_0x156cb1&&_0x32f2c3['discard']();const _0x267fc3=_0x32f2c3['data']['commandParams'];_0xa6e6d7=_0x267fc3[0x0]['tableWidth'],_0x1f058f=_0x267fc3[0x0]['columnWidths'];break;}}_0x11adbd({'table':_0xb72aa9,'tableWidth':_0x41d482,'columnWidths':_0x2c3625}),_0x1688b0['markBlockFormat'](_0xb72aa9,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xa6e6d7,'columnWidths':_0x1f058f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xcd83a9){if('formatBlock'!=_0xcd83a9['type']&&'formatInline'!=_0xcd83a9['type'])return;const {data:_0x337c85}=_0xcd83a9;if(_0x337c85&&'resizeTable'===_0x337c85['formatGroupId']){const _0x435400='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x435400)};}}}class Ct extends _0x3cf114{['afterInit'](){const _0x292acc=this['editor'];_0x292acc['plugins']['has']('Template')&&_0x292acc['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x3cf114{['afterInit'](){const _0x38f1d4=this['editor'];if(!_0x38f1d4['commands']['get']('insertTableOfContents'))return;_0x38f1d4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x413a95=_0x38f1d4['plugins']['get']('TrackChangesEditing'),_0xe403e7=_0x38f1d4['locale'];_0x413a95['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2b73ce=>o(_0xe403e7,'ELEMENT_TABLE_OF_CONTENTS',_0x2b73ce));}}class Nt extends _0x3cf114{['afterInit'](){const _0x16a1a1=this['editor'];if(!_0x16a1a1['plugins']['has']('Title'))return;const _0xffe33a=_0x16a1a1['plugins']['get']('TrackChangesEditing');_0xffe33a['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x16a1a1['locale'],'ELEMENT_TITLE')),_0x16a1a1['model']['document']['registerPostFixer'](_0x3b88e7=>{let _0x28ace5=!0x1;const _0x2a0ef1=Array['from'](_0x16a1a1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x7ba71a,data:_0xc159f5}of _0x2a0ef1){const {group:_0x3c3d84}=_0xffe33a['_splitMarkerName'](_0x7ba71a);if('suggestion'!==_0x3c3d84||!_0xc159f5['newRange'])continue;const _0x1acc9f=_0xc159f5['newRange'],_0x82d068=_0x1acc9f['end']['nodeBefore'];if(!_0x82d068||!_0x82d068['is']('element','title-content'))continue;if(!_0x1acc9f['start']['isTouching'](_0x1acc9f['end']))continue;const _0x520cec=_0x16a1a1['model']['schema']['getNearestSelectionRange'](_0x1acc9f['end'],'forward');if(_0x520cec&&_0x520cec['isCollapsed']){const _0x8a977e=_0x3b88e7['createRange'](_0x1acc9f['start'],_0x520cec['start']);_0x8a977e['isEqual'](_0x1acc9f)||(_0x3b88e7['updateMarker'](_0x7ba71a,{'range':_0x8a977e}),_0x28ace5=!0x0);}_0x28ace5||(_0x3b88e7['removeMarker'](_0x7ba71a),_0x28ace5=!0x0);}return _0x28ace5;});}}class Dt extends _0x3cf114{['afterInit'](){const _0x496d32=this['editor'],_0x4d5516=_0x496d32['plugins']['get']('TrackChangesEditing');_0x496d32['plugins']['has']('UndoEditing')&&(_0x4d5516['enableCommand']('undo'),_0x4d5516['enableCommand']('redo'));}}class Mt extends _0x3cf114{static get['requires'](){return[jt];}['afterInit'](){const _0x189d40=this['editor'];if(!_0x189d40['plugins']['has']('TableCaptionEditing'))return;_0x189d40['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x3cf114{['tableProperties'];['tableCellProperties'];constructor(_0x4461ee){super(_0x4461ee),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 _0x2e5c45=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5772f8 of this['tableProperties'])_0x2e5c45['enableCommand'](_0x5772f8,(_0x4f0519,_0x9b44ec)=>{const _0x478277=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5772f8,[_0x478277],this['tableProperties'],'tableProperties',_0x4f0519,_0x9b44ec);});_0x2e5c45['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2e5c45['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2e5c45['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3f3045,_0xdce498)=>this['handleDiscardAction'](this['tableProperties'],_0x3f3045,_0xdce498)),_0x2e5c45['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x148529 of this['tableCellProperties'])_0x2e5c45['enableCommand'](_0x148529,(_0x74e12a,_0x227451)=>{const _0x4d75c7=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x148529,_0x4d75c7,this['tableCellProperties'],'tableCellProperties',_0x74e12a,_0x227451);});_0x2e5c45['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2e5c45['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2e5c45['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x44dfa0,_0x53d6ce)=>this['handleDiscardAction'](this['tableCellProperties'],_0x44dfa0,_0x53d6ce)),_0x2e5c45['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2e5c45['descriptionFactory']['registerDescriptionCallback'](_0x252f09=>this['handleSuggestionDescription'](_0x252f09));}['_handlePropertyChange'](_0x5327b2,_0x410a18,_0xb3002b,_0x4ad47c,_0x334f04,_0x45c944){const _0x10473c=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x45c944['batch'],()=>{for(const _0x49a0f1 of _0x410a18){if(this['_getSuggestion'](_0x49a0f1,_0x4ad47c))_0x334f04(_0x45c944);else{const _0x50f011={};for(const _0x200377 of _0xb3002b){const _0x46175d=_0x49a0f1['getAttribute'](_0x200377);void 0x0!==_0x46175d&&(_0x50f011[_0x200377]=_0x46175d);}_0x334f04(_0x45c944),_0x10473c['markBlockFormat'](_0x49a0f1,{'commandParams':[_0x50f011]},[],_0x4ad47c);}}});}['handleDiscardAction'](_0x4648f6,_0x87f29d,_0x623a3b){const _0x528cd0=_0x87f29d[0x0]['start']['nodeAfter'],_0x520a70=_0x623a3b['commandParams'][0x0];this['editor']['model']['change'](_0x14bfec=>{for(const _0x4d121d of _0x4648f6)void 0x0!==_0x520a70[_0x4d121d]?_0x14bfec['setAttribute'](_0x4d121d,_0x520a70[_0x4d121d],_0x528cd0):_0x14bfec['removeAttribute'](_0x4d121d,_0x528cd0);});}['handleSuggestionDescription'](_0x2534d5){if(_0x2534d5['data'])switch(_0x2534d5['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'](_0x23fee4,_0x4471c5){const _0x1bf40c=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4c1d12 of _0x1bf40c['getSuggestions']({'skipNotAttached':!0x0})){const _0x208caa=_0x4c1d12['getContainedElement']();if(_0x4c1d12['subType']===_0x4471c5&&_0x208caa===_0x23fee4)return _0x4c1d12;}return null;}}const m='$elementName';class p extends _0x3cf114{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x188410,_0x9b188d,E,O,V,U,F,G,L,H,J,K,W,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,z,lt,ct,q,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Nt,Dt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x461b42){function _0x481c5a(_0x44d1ae){return _0x44d1ae['map'](_0x3ffa72=>String['fromCharCode'](_0x3ffa72))['join']('');}super(_0x461b42),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2f413d,_0x3c455b,_0x36b385,_0x57c0a0)=>{this['_model']['change'](()=>{for(const _0x124846 of[..._0x57c0a0,..._0x36b385])this['_model']['markers']['has'](_0x124846)&&_0x461b42['editing']['reconvertMarker'](_0x124846);});}),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']=_0x461b42['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(),_0x461b42['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x461b42['config']['get']('trackChanges.trackFormatChanges'),_0x461b42['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x461b42['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x461b42,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x481c5a([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x481c5a([0x34,0x30,0x34,0x38,0x31,0x34,0x34,0x36]);}['init'](){const _0x3e112d=this['editor'],_0x2d5cca=(_0x388dbf,_0x55919d)=>{if('attribute'!=_0x388dbf)return'ck-suggestion-marker-'+_0x388dbf;const _0x48088f=_0x55919d['split']('|')[0x0];return this['_isBlockAttribute'](_0x48088f)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3e112d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x56c375=>{const {id:_0x508a7d,type:_0x555a14,subType:_0x1c5d9b}=this['_splitMarkerName'](_0x56c375['markerName']),_0xe06d4a=['ck-suggestion-marker',_0x2d5cca(_0x555a14,_0x1c5d9b)];let _0x337ca6=0xbb8;return this['activeMarkers']['includes'](_0x56c375['markerName'])&&(_0xe06d4a['push']('ck-suggestion-marker--active'),_0x337ca6=0xbc2),'deletion'==_0x555a14&&(_0x337ca6+=0x5),{'classes':_0xe06d4a,'attributes':{'data-suggestion':_0x508a7d},'priority':_0x337ca6};}}),_0x3e112d['conversion']['for']('dataDowncast')['add'](_0x2c1b94=>{_0x2c1b94['on']('addMarker:suggestion',(_0x29d6c5,_0xa5c4f8,_0x33aa84)=>{if(!_0x33aa84['options']['showSuggestionHighlights'])return;const _0x198dac=_0xa5c4f8['item'];if(!_0x198dac)return;const _0x643191=_0x33aa84['mapper']['toViewElement'](_0x198dac);_0x3e112d['model']['schema']['isObject'](_0x198dac)&&_0x643191&&!_0x643191['getCustomProperty']('widget')&&_0x643191['is']('containerElement')&&_0x125844(_0x643191,_0x33aa84['writer']);},{'priority':'high'});}),_0x3e112d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x300ef4,_0x129ea2)=>{if(!_0x129ea2['options']['showSuggestionHighlights'])return null;const {type:_0x4b55aa,subType:_0x3ef283}=this['_splitMarkerName'](_0x300ef4['markerName']);return{'classes':['ck-suggestion-marker',_0x2d5cca(_0x4b55aa,_0x3ef283)],'priority':0xbb8};}});const _0x3b2a0b=({showActiveMarkers:_0x149dc9=!0x0,isAttributeSuggestion:_0x43d951=!0x1}={})=>(_0x31b834,_0x112194,_0x50be09)=>{if(!_0x112194['item'])return;const {id:_0x5a9d72}=this['_splitMarkerName'](_0x112194['markerName']);if(_0x43d951){const _0x11c4fb=this['_suggestions']['get'](_0x5a9d72),_0x36f773=this['_getAttributeKey'](_0x11c4fb);if(!this['_isBlockAttribute'](_0x36f773))return;}if(_0x112194['item']['is']('selection'))return void _0x50be09['consumable']['consume'](_0x112194['item'],_0x31b834['name']);const _0x30f805=_0x50be09['mapper']['toViewElement'](_0x112194['item']);if(_0x112194['item']['is']('element')&&_0x3e112d['model']['schema']['isBlock'](_0x112194['item'])&&!_0x30f805['getCustomProperty']('addHighlight')){_0x50be09['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x30f805),_0x50be09['writer']['setAttribute']('data-suggestion',_0x5a9d72,_0x30f805),_0x50be09['mapper']['bindElementToMarker'](_0x30f805,_0x112194['markerName']),_0x149dc9&&(this['activeMarkers']['includes'](_0x112194['markerName'])?_0x50be09['writer']['addClass']('ck-suggestion-marker--active',_0x30f805):_0x50be09['writer']['removeClass']('ck-suggestion-marker--active',_0x30f805));for(const _0x1a114d of _0x3e112d['model']['createRangeIn'](_0x112194['item'])['getItems']())_0x50be09['consumable']['consume'](_0x1a114d,_0x31b834['name']);_0x50be09['consumable']['consume'](_0x112194['item'],_0x31b834['name']);}};_0x3e112d['conversion']['for']('dataDowncast')['add'](_0x17ac9d=>{_0x17ac9d['on']('addMarker:suggestion:formatBlock',(_0x340a9d,_0x300af4,_0xca0490)=>{_0xca0490['options']['showSuggestionHighlights']&&_0x3b2a0b({'showActiveMarkers':!0x1})(_0x340a9d,_0x300af4,_0xca0490);},{'priority':'highest'});}),_0x3e112d['conversion']['for']('dataDowncast')['add'](_0xfe64d8=>{_0xfe64d8['on']('addMarker:suggestion:attribute',(_0x1cd107,_0x23ac57,_0x595b5c)=>{_0x595b5c['options']['showSuggestionHighlights']&&_0x3b2a0b({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1cd107,_0x23ac57,_0x595b5c);},{'priority':'highest'});}),_0x3e112d['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4f3e2f,_0x5430a0)=>_0x5430a0['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4f3e2f['substr'](0xb)}}),_0x3e112d['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5f064e,{writer:_0x4778b8})=>{let _0x1bf253='suggestion:'+_0x5f064e['getAttribute']('suggestion-type')+':'+_0x5f064e['getAttribute']('id');return _0x5f064e['getAttribute']('marker-count')&&(_0x1bf253+=':'+_0x5f064e['getAttribute']('marker-count')),_0x4778b8['createElement']('$marker',{'data-name':_0x1bf253});}}),_0x3e112d['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3e112d['conversion']['for']('editingDowncast')['add'](_0x15be94=>{_0x15be94['on']('addMarker:suggestion:formatBlock',_0x3b2a0b(),{'priority':'high'});}),_0x3e112d['conversion']['for']('editingDowncast')['add'](_0x1ed362=>{_0x1ed362['on']('addMarker:suggestion:attribute',_0x3b2a0b({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3e112d['conversion']['for']('editingDowncast')['add'](_0x472985=>{_0x472985['on']('removeMarker:suggestion:formatBlock',(_0x1615a1,_0x55de11,_0x33f987)=>{const _0x5776ad=_0x33f987['mapper']['markerNameToElements'](_0x55de11['markerName']);if(_0x5776ad){for(const _0x1112f2 of _0x5776ad)_0x1112f2['getCustomProperty']('addHighlight')||(_0x33f987['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1112f2),_0x33f987['writer']['removeAttribute']('data-suggestion',_0x1112f2),_0x33f987['mapper']['unbindElementFromMarkerName'](_0x1112f2,_0x55de11['markerName']));}},{'priority':'high'});}),_0x3e112d['conversion']['for']('editingDowncast')['add'](_0x1f48f9=>{_0x1f48f9['on']('removeMarker:suggestion:attribute',(_0x10c4c3,_0x5af274,_0x47bef1)=>{const _0x5c3b44=_0x47bef1['mapper']['markerNameToElements'](_0x5af274['markerName']);if(!_0x5c3b44)return;const {id:_0x21eadf}=this['_splitMarkerName'](_0x5af274['markerName']),_0x300ae5=this['_suggestions']['get'](_0x21eadf),_0x1a49ea=this['_getAttributeKey'](_0x300ae5);if(this['_isBlockAttribute'](_0x1a49ea)){for(const _0x118da9 of _0x5c3b44)_0x118da9['getCustomProperty']('addHighlight')||(_0x47bef1['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x118da9),_0x47bef1['writer']['removeAttribute']('data-suggestion',_0x118da9),_0x47bef1['mapper']['unbindElementFromMarkerName'](_0x118da9,_0x5af274['markerName']));}},{'priority':'high'});}),_0x3e112d['model']['document']['registerPostFixer'](_0x3920dc=>{let _0xedaf40=!0x1;const _0x3b5284=Array['from'](_0x3e112d['model']['document']['differ']['getChangedMarkers']()),_0x16cfbf=new Set();for(const {name:_0x348ea5,data:_0x1a2411}of _0x3b5284){const {group:_0x3997f6,type:_0x24e12a,subType:_0x1fc313,id:_0xda1ccc}=this['_splitMarkerName'](_0x348ea5);if('suggestion'!==_0x3997f6)continue;const _0x79238c=this['_suggestions']['get'](_0xda1ccc);if(null!=_0x1a2411['newRange']){'formatInline'==_0x24e12a&&(_0xedaf40=_0xedaf40||Et(_0x1a2411['newRange'],_0x348ea5,_0x3920dc,_0x3e112d['model']['schema']));const _0x4645c5='attribute'==_0x24e12a&&this['_isBlockAttribute'](_0x1fc313['split']('|')[0x0]);if(_0x1a2411['newRange']['isCollapsed']||'$graveyard'==_0x1a2411['newRange']['root']['rootName']||'formatBlock'==_0x24e12a&&!Vt(_0x1a2411['newRange'])||_0x4645c5&&!Vt(_0x1a2411['newRange'])||'deletion'==_0x24e12a&&!(!Tt(_0x5b9bca=_0x1a2411['newRange'])&&!function(_0x43b3ab){return _0x43b3ab['start']['parent']==_0x43b3ab['end']['nodeBefore']&&_0x43b3ab['start']['isAtEnd'];}(_0x5b9bca)))_0x3920dc['removeMarker'](_0x348ea5),_0xedaf40=!0x0;else{if(!_0x79238c||!_0x79238c['isInContent'])continue;if(_0x1a2411['newRange']&&_0x1a2411['oldRange']&&_0x1a2411['newRange']['isEqual'](_0x1a2411['oldRange']))continue;_0x16cfbf['add'](_0x79238c);}}}var _0x5b9bca;return _0x16cfbf['size']>0x0&&(_0xedaf40=!!this['_joinWithAdjacentSuggestions'](_0x16cfbf)||_0xedaf40),_0xedaf40;}),_0x3e112d['model']['document']['registerPostFixer'](_0x17f3fe=>{let _0x5caf0b=!0x1;for(const _0x50ac87 of _0x3e112d['model']['document']['differ']['getChanges']())if('insert'==_0x50ac87['type'])for(const _0x5be0bb of this['_suggestions']['values']()){if(_0x5be0bb['isMultiRange']||!_0x5be0bb['isInContent'])continue;const _0x48f3bc='formatBlock'==_0x5be0bb['type'],_0x4724b6=this['_getAttributeKey'](_0x5be0bb),_0x506d33=_0x4724b6&&this['_isBlockAttribute'](_0x4724b6);if(!_0x48f3bc&&!_0x506d33)continue;const _0x1f7547=_0x5be0bb['getFirstRange']();if(_0x1f7547['start']['parent']!=_0x1f7547['end']['parent']&&!_0x1f7547['end']['isAtEnd']){const _0x1867c8=_0x3e112d['model']['createPositionAt'](_0x1f7547['start']['nodeAfter'],'end'),_0x1b0f6e=_0x3e112d['model']['createRange'](_0x1f7547['start'],_0x1867c8);_0x17f3fe['updateMarker'](_0x5be0bb['getFirstMarker'](),{'range':_0x1b0f6e}),_0x5caf0b=!0x0;}}return _0x5caf0b;}),_0x3e112d['model']['document']['registerPostFixer'](_0x316d14=>this['_processAttributeChanges'](_0x316d14)),_0x3e112d['model']['document']['registerPostFixer'](_0x20dcc8=>!_0x20dcc8['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x20dcc8)),_0x3e112d['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3e112d['model']['document']['on']('change:data',(_0x39dcc5,_0x42e3f4)=>{if(!_0x42e3f4['isLocal']||_0x42e3f4['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x42e8fb=_0x3e112d['model']['document']['differ']['getChanges']();if(0x0==_0x42e8fb['length'])return;const _0x327fec=[],_0x4aa921=_0x42e8fb['filter'](_0x422193=>'attribute'==_0x422193['type']),_0x232f2c=_0x42e8fb['filter'](_0x43a08a=>'insert'==_0x43a08a['type']&&'$text'!=_0x43a08a['name']);for(const _0x24a803 of _0x4aa921)this['_isRegisteredAttribute'](_0x24a803['attributeKey'])&&_0x327fec['push']({'key':_0x24a803['attributeKey'],'newValue':_0x24a803['attributeNewValue'],'oldValue':_0x24a803['attributeOldValue'],'range':Ut(_0x24a803['range'],_0x3e112d['model'])});for(const _0x4a62e7 of _0x232f2c){if('rename'!=_0x4a62e7['action']&&'refresh'!=_0x4a62e7['action'])continue;const _0x5986f=Gt(_0x4a62e7['position']['nodeAfter'],_0x3e112d['model']),_0xa499e0=_0x4a62e7['before'];'rename'==_0x4a62e7['action']&&_0x327fec['push']({'key':m,'newValue':_0x4a62e7['name'],'oldValue':_0xa499e0['name'],'range':_0x5986f});for(const [_0x34933c,_0x2b486a]of _0xa499e0['attributes']){if(!this['_isRegisteredAttribute'](_0x34933c))continue;const _0x2f1521=_0x4a62e7['attributes']['get'](_0x34933c);_0x2b486a!==_0x2f1521&&_0x327fec['push']({'key':_0x34933c,'newValue':_0x2f1521,'oldValue':_0x2b486a,'range':_0x5986f});}for(const [_0x28cada,_0x4ec5a2]of _0x4a62e7['attributes'])this['_isRegisteredAttribute'](_0x28cada)&&(_0xa499e0['attributes']['has'](_0x28cada)||_0x327fec['push']({'key':_0x28cada,'newValue':_0x4ec5a2,'oldValue':null,'range':_0x5986f}));}0x0!=_0x327fec['length']&&_0x3e112d['model']['enqueueChange'](_0x42e3f4,_0x502091=>{const _0x8867d7=_0x2dd115();for(const {range:_0x90c030,key:_0x4fd9df,oldValue:_0x2572b0,newValue:_0x19e32a}of _0x327fec)this['markAttributeChange'](_0x90c030,_0x4fd9df,_0x2572b0,_0x19e32a,{'groupId':_0x8867d7});this['_reduceExistingSuggestions'](_0x502091,_0x327fec);});},{'priority':'lowest'}),_0x3e112d['model']['markers']['on']('update:suggestion',(_0x4e38b3,_0x23dfdc,_0x436f36)=>{if(null==_0x436f36){const {id:_0x42f33c}=this['_splitMarkerName'](_0x23dfdc['name']),_0x20a049=this['_suggestions']['get'](_0x42f33c);_0x20a049&&_0x20a049['addMarkerName'](_0x23dfdc['name']);}}),_0x3e112d['model']['document']['on']('change:data',()=>{const _0x46864f=Array['from'](_0x3e112d['model']['document']['differ']['getChangedMarkers']())['filter'](_0x55d433=>'suggestion'===this['_splitMarkerName'](_0x55d433['name'])['group']);if(0x0===_0x46864f['length'])return;_0x46864f['sort']((_0x3cd7ad,_0x1ecee9)=>{const _0x1a45cc=_0x3cd7ad['data']['oldRange'],_0x6b5e74=_0x1ecee9['data']['oldRange'];return null===_0x1a45cc&&null===_0x6b5e74?0x0:null===_0x1a45cc&&null!==_0x6b5e74?-0x1:null!==_0x1a45cc&&null===_0x6b5e74?0x1:_0x1a45cc['start']['isBefore'](_0x6b5e74['start'])?-0x1:0x1;});const _0x4cdb06=new Set(),_0x476fcd=new Set();for(const {name:_0x19fef7,data:_0x18780a}of _0x46864f){const {id:_0x34c3e6}=this['_splitMarkerName'](_0x19fef7);if(null===_0x18780a['oldRange']){const _0x24696c=this['_handleNewSuggestionMarker'](_0x19fef7);_0x476fcd['add'](_0x24696c);}else{const _0x36b63d=this['_suggestions']['get'](_0x34c3e6);null!==_0x18780a['newRange']||_0x36b63d['isInContent']?(_0x4cdb06['add'](_0x36b63d['head']),_0x476fcd['add'](_0x36b63d)):this['_removeSuggestion'](_0x36b63d);}}_0x476fcd['size']>0x0&&this['_refreshSuggestionsChain'](_0x476fcd);for(const _0x215742 of _0x4cdb06)this['fire']('suggestionChanged',_0x215742);}),_0x3e112d['model']['on']('applyOperation',(_0x2bcd47,_0x6cd853)=>{const _0x5871b6=_0x6cd853[0x0];if(!this['_suggestions']['size'])return;if(!_0x5871b6['isDocumentOperation'])return;if(_0x5871b6['batch']['isUndo']||!_0x5871b6['batch']['isLocal'])return;let _0x57379b,_0x30c924;switch(_0x5871b6['type']){case'insert':_0x57379b=_0x3e112d['model']['createPositionAt'](_0x5871b6['position']),_0x30c924=_0x57379b['getShiftedBy'](_0x5871b6['howMany']);break;case'split':_0x57379b=_0x3e112d['model']['createPositionAt'](_0x5871b6['splitPosition']),_0x30c924=_0x3e112d['model']['createPositionAt'](_0x5871b6['moveTargetPosition']);break;case'move':_0x57379b=_0x3e112d['model']['createPositionAt'](_0x5871b6['targetPosition']),_0x30c924=_0x57379b['getShiftedBy'](_0x5871b6['howMany']);break;default:return;}const _0x3e68a6=_0x3e112d['model']['createRange'](_0x57379b,_0x30c924);_0x3e112d['model']['change'](()=>{for(const {suggestion:_0x1950c3,meta:_0x18e6b2}of this['_findSuggestions'](_0x3e68a6)){if(_0x1950c3['isMultiRange'])continue;if('formatInline'==_0x1950c3['type'])continue;const _0x1f0d6d=this['_getAttributeKey'](_0x1950c3);if(_0x1f0d6d&&this['_isBlockAttribute'](_0x1f0d6d)&&'split'!=_0x5871b6['type'])continue;const _0x2ce7d7=_0x1950c3['data']&&_0x1950c3['data']['multipleBlocks'];('formatBlock'!=_0x1950c3['type']||'split'==_0x5871b6['type']&&!_0x2ce7d7)&&(_0x18e6b2['containsRangeInObject']||'insertion'==_0x1950c3['type']&&_0x18e6b2['isOwn']||_0x1950c3['getFirstRange']()['containsRange'](_0x3e68a6)&&this['_breakSuggestionMarker'](_0x1950c3,_0x57379b,_0x30c924));}});},{'priority':'lowest'}),_0x3e112d['model']['on']('deleteContent',(_0x94a936,_0x22352e)=>{const _0x22d72d=_0x22352e[0x0],_0x1b105e=_0x22352e[0x1];if(_0x1b105e&&_0x1b105e['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x22d72d['isCollapsed'])return;const _0x3f1460=_0x3e112d['model']['schema'],{start:_0x54074a,end:_0x4bfecf}=_0x22d72d['getFirstRange'](),_0x59e65a=_0x54074a['nodeAfter']&&_0x3f1460['isLimit'](_0x54074a['nodeAfter'])?null:_0x3f1460['getNearestSelectionRange'](_0x54074a,'forward'),_0x5d3cbd=_0x4bfecf['nodeBefore']&&_0x3f1460['isLimit'](_0x4bfecf['nodeBefore'])?null:_0x3f1460['getNearestSelectionRange'](_0x4bfecf,'backward'),_0x47f17c=_0x3e112d['model']['createRange'](_0x59e65a?_0x59e65a['start']:_0x54074a,_0x5d3cbd?_0x5d3cbd['end']:_0x4bfecf);_0x3e112d['model']['change'](_0x2078d7=>{this['markDeletion'](_0x47f17c);const _0x3eecc7=_0x3e112d['model']['schema']['getNearestSelectionRange'](_0x47f17c['start']);_0x22d72d['is']('documentSelection')?_0x2078d7['setSelection'](_0x3eecc7):_0x22d72d['setTo'](_0x3eecc7);}),_0x94a936['stop']();},{'priority':_0x2b5f0a['normal']+0xa}),_0x3e112d['model']['on']('insertContent',(_0x1a1b9f,_0x1cb0ca)=>{const _0x484260=_0x1cb0ca[_0x1cb0ca['length']-0x1];_0x484260&&_0x484260['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3e112d['model']['change'](()=>{let _0x309ddc=_0x3e112d['model']['insertContent'](_0x1cb0ca[0x0],_0x1cb0ca[0x1],_0x1cb0ca[0x2],{'forceDefaultExecution':!0x0});if(!_0x309ddc)return;_0x1a1b9f['return']=_0x309ddc['clone']();const _0x543447=_0x309ddc['end']['nodeBefore'],_0x36d9c3=_0x3e112d['model']['schema'];_0x543447&&_0x36d9c3['isBlock'](_0x543447)&&!_0x36d9c3['isObject'](_0x543447)&&(_0x309ddc=_0x3e112d['model']['createRange'](_0x309ddc['start'],_0x3e112d['model']['createPositionAt'](_0x543447,'end'))),this['markInsertion'](_0x309ddc);}),_0x1a1b9f['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x48dc0f=new $(_0x3e112d,this['_suggestions']);_0x3e112d['commands']['add']('acceptSuggestion',_0x48dc0f),this['enableCommand']('acceptSuggestion');const _0x3a0601=new B(_0x3e112d,this['_suggestions']);_0x3e112d['commands']['add']('discardSuggestion',_0x3a0601),this['enableCommand']('discardSuggestion'),_0x3e112d['commands']['add']('acceptAllSuggestions',new x(_0x3e112d,_0x48dc0f,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3e112d['commands']['add']('discardAllSuggestions',new x(_0x3e112d,_0x3a0601,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3e112d['commands']['add']('acceptSelectedSuggestions',new R(_0x3e112d,_0x48dc0f,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3e112d['commands']['add']('discardSelectedSuggestions',new R(_0x3e112d,_0x3a0601,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4a5a0e=_0x3e112d['plugins']['get']('CommentsRepository');this['listenTo'](_0x4a5a0e,'addComment',(_0x33393f,{threadId:_0xbb82a1})=>{const _0x3cab1b=this['_suggestions']['get'](_0xbb82a1);_0x3cab1b&&_0x3cab1b['commentThread']&&0x1===_0x3cab1b['commentThread']['length']&&this['_updateSuggestionData'](_0xbb82a1,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4a5a0e,'removeComment',(_0x583621,{threadId:_0x217c85})=>{const _0x35c0a3=this['_suggestions']['get'](_0x217c85);_0x35c0a3&&_0x35c0a3['commentThread']&&!_0x35c0a3['commentThread']['length']&&this['_updateSuggestionData'](_0x217c85,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x50cd09){if(this['_adapter'])throw new _0x9391a('track-changes-adapter-already-set',this);this['_adapter']=_0x50cd09;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x249779=!0x1,toJSON:_0x3895ac=!0x1}={}){const _0x1d4a4e=[];for(const _0x4d54ea of this['_suggestions']['values']())_0x249779&&!_0x4d54ea['isInContent']||_0x1d4a4e['push'](_0x4d54ea);return _0x3895ac?_0x1d4a4e['map'](_0x2ec688=>_0x2ec688['toJSON']()):_0x1d4a4e;}['getSuggestion'](_0x177ae0){const _0x5ade38=this['_suggestions']['get'](_0x177ae0);if(!_0x5ade38)throw new _0x9391a('track-changes-suggestion-not-found',this);return _0x5ade38;}['hasSuggestion'](_0x2e42a7){return this['_suggestions']['has'](_0x2e42a7);}['addSuggestionData'](_0x2d73ae){const {authorId:_0x3998fe,id:_0x46b3a8,attributes:_0x2868bd}=_0x2d73ae,[_0x3bf213,_0x1702e5]=_0x2d73ae['type']['split'](':'),_0x38b99b=this['_suggestions']['get'](_0x46b3a8)||this['_createSuggestion'](_0x3bf213,_0x1702e5,_0x46b3a8,_0x3998fe,_0x2868bd);if(this['_addThreadToSuggestion'](_0x38b99b),this['_checkSuggestionCorrectness'](_0x38b99b,_0x3bf213,_0x1702e5||null,_0x3998fe),_0x38b99b['createdAt']=_0x2d73ae['createdAt'],_0x38b99b['_isDataLoaded']=!0x0,_0x2868bd&&_0x2868bd['@external']){const _0x2a6cb8=_0x2868bd['@external'],_0x26a945=this['_getExternalAuthor'](_0x2a6cb8['authorName']);_0x38b99b['authoredAt']=_0x2a6cb8['createdAt'],_0x38b99b['author']=_0x26a945,_0x38b99b['isExternal']=!0x0;}else _0x38b99b['authoredAt']=_0x2d73ae['createdAt'];switch(_0x2d73ae['data']&&(_0x38b99b['data']=_0x2d73ae['data']),_0x2d73ae['attributes']&&(_0x38b99b['attributes']=_0x2d73ae['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x38b99b['_saved']=!0x0),this['_suggestionState']['get'](_0x38b99b)){case'notReady':this['_suggestionState']['set'](_0x38b99b,'dataReady');break;case'markerReady':_0x38b99b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x38b99b])),this['_refreshSuggestionsChain'](new Set([_0x38b99b])),this['_suggestionState']['set'](_0x38b99b,'ready'),this['fire']('suggestionLoaded',_0x38b99b)):this['_suggestionState']['set'](_0x38b99b,'removed');}return _0x38b99b;}['acceptSuggestion'](_0x28bb0d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x453925 of _0x28bb0d['getAllAdjacentSuggestions']())_0x453925['accept']();});});}['discardSuggestion'](_0x182664){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1cb73f of _0x182664['getAllAdjacentSuggestions']())_0x1cb73f['discard']();});});}['enableCommand'](_0x40c02d,_0x4df965){const _0x563b9e=this['editor']['commands']['get'](_0x40c02d);if(!_0x563b9e)throw new _0x9391a('track-changes-command-not-found',this,{'commandName':_0x40c02d});if(this['_enabledCommands']['has'](_0x563b9e))throw new _0x9391a('track-changes-enable-command-twice',this,{'commandName':_0x40c02d});this['_enabledCommands']['add'](_0x563b9e),_0x4df965&&_0x563b9e['on']('execute',(_0xd3a37,_0x2f7d6d)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2f7d6d['length']>0x0&&_0x2f7d6d[_0x2f7d6d['length']-0x1]&&_0x2f7d6d[_0x2f7d6d['length']-0x1]['forceDefaultExecution']?_0x2f7d6d['pop']():(_0xd3a37['return']=_0x4df965((..._0x410e22)=>_0x563b9e['execute'](..._0x410e22,{'forceDefaultExecution':!0x0}),..._0x2f7d6d),_0xd3a37['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4e4901){let _0x50d646,_0x2fa4f8;const _0x24c6ce=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x50d646=_0x4e4901();}catch(_0x574177){_0x2fa4f8=_0x574177;}return _0x24c6ce||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2fa4f8&&_0x9391a['rethrowUnexpectedError'](_0x2fa4f8,this),_0x50d646;}['markInsertion'](_0x433ee7,_0x6455a3=null,_0x156267={}){if(_0x433ee7['isCollapsed'])return null;const _0x583112=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x23391,meta:_0x44f965}of this['_findSuggestions'](_0x433ee7,'insertion'))if(_0x44f965['isOwn']){if(!_0x44f965['isNextTo']){if(_0x44f965['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x23391,_0x156267))continue;return _0x23391;}if(Lt(_0x23391,_0x156267))return _0x23391;this['_breakSuggestionMarker'](_0x23391,_0x433ee7['start'],_0x433ee7['end']);break;}if(_0x6455a3==_0x23391['subType']&&Lt(_0x23391,_0x156267)){const _0x307b6c=_0x23391['getFirstRange']();return _0x307b6c['start']['isEqual'](_0x433ee7['end'])?this['_setSuggestionRange'](_0x23391,this['_model']['createRange'](_0x433ee7['start'],_0x307b6c['end'])):this['_setSuggestionRange'](_0x23391,this['_model']['createRange'](_0x307b6c['start'],_0x433ee7['end'])),_0x23391;}}const _0x5b8dd9=_0x2dd115(),_0x4c9266=_0x583112['id'],_0x1af54e=_0x6455a3?'insertion:'+_0x6455a3:'insertion',_0x3c0c32=this['_setSuggestionData']({'id':_0x5b8dd9,'type':_0x1af54e,'createdAt':new Date(),'authorId':_0x4c9266,'attributes':_0x156267});return this['_addSuggestionMarker'](_0x1af54e,_0x5b8dd9,_0x4c9266,_0x433ee7),_0x3c0c32;}['markMultiRangeInsertion'](_0x264022,_0x36cb24='multi',_0x747bd3={}){const _0x25442c=this['editor']['plugins']['get']('Users')['me'],_0x4d5110=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x36cb24,'join');for(const _0x3b4c09 of this['getSuggestions']())if(_0x3b4c09['author']['id']==_0x25442c['id']&&'insertion'==_0x3b4c09['type']&&_0x3b4c09['subType']==_0x36cb24&&Lt(_0x3b4c09,_0x747bd3)&&(_0x4d5110(_0x3b4c09['getRanges'](),_0x264022)||_0x4d5110(_0x264022,_0x3b4c09['getRanges']()))){for(const _0x1b723e of _0x264022)_0x3b4c09['addRange'](_0x1b723e);return _0x3b4c09;}for(const {suggestion:_0x1f8067,meta:_0x2c4028}of this['_findSuggestions'](_0x264022,'insertion')){if(!_0x2c4028['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2c4028['containsRangeInObject'])continue;if(!Lt(_0x1f8067,_0x747bd3))continue;let _0x13c649=!0x0;for(const _0x53b194 of _0x1f8067['getRanges']())for(const _0x2686e9 of _0x264022)if(!_0x53b194['containsRange'](_0x2686e9)){_0x13c649=!0x1;break;}if(_0x13c649)return _0x1f8067;}const _0x49c020=_0x2dd115(),_0x469149=_0x25442c['id'],_0x4b6378='insertion:'+_0x36cb24,_0x42ee1c=this['_setSuggestionData']({'id':_0x49c020,'type':_0x4b6378,'createdAt':new Date(),'authorId':_0x469149,'attributes':_0x747bd3});for(const _0x1b2528 of _0x264022)this['_addSuggestionMarker'](_0x4b6378,_0x49c020,_0x469149,_0x1b2528,u['getMultiRangeId']());return _0x42ee1c;}['markInlineFormat'](_0x57ddbd,_0x1d2f11,_0x2a1055=null,_0x24e6ce={}){if(_0x2a1055=_0x2a1055||Ot(_0x1d2f11),_0x57ddbd['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x305910=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2a1055,'accept');return this['forceDefaultExecution'](()=>_0x305910([_0x57ddbd],_0x1d2f11,_0x24e6ce)),null;}const _0xefb32c=this['editor']['plugins']['get']('Users')['me'],_0x30b04e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x512f52,meta:_0x5be74b}of this['_findSuggestions'](_0x57ddbd,'insertion'))_0x5be74b['isOwn']&&!_0x5be74b['isInsideObject']&&_0x30b04e['push'](..._0x512f52['getRanges']());}const _0x1fa694=function(_0x1a8871,_0x33c5d6){const _0x4523a5=[];for(const _0x61fd00 of _0x33c5d6){const _0x15bf5a=_0x1a8871['getIntersection'](_0x61fd00);_0x15bf5a&&_0x4523a5['push'](_0x15bf5a);}return _0x4523a5;}(_0x57ddbd,_0x30b04e),_0x5d3d79=function(_0x3241fc,_0x308d63){const _0x3a911f=[_0x3241fc];for(const _0x266a32 of _0x308d63){let _0x489ce6=0x0;for(;_0x489ce6<_0x3a911f['length'];){const _0x1f5397=_0x3a911f[_0x489ce6]['getDifference'](_0x266a32);_0x3a911f['splice'](_0x489ce6,0x1,..._0x1f5397),_0x489ce6+=_0x1f5397['length'];}}return _0x3a911f;}(_0x57ddbd,_0x30b04e);_0x1fa694['length']&&this['_model']['change'](()=>{for(const _0x46ffdf of _0x1fa694){const _0x1da4c5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2a1055,'accept');this['forceDefaultExecution'](()=>_0x1da4c5([_0x46ffdf],_0x1d2f11,_0x24e6ce));}});for(const _0x350d29 of _0x5d3d79){let _0x18d898=null,_0x1b96c3=_0x350d29['start'],_0x548769=_0x350d29['end'];for(const {suggestion:_0x21a9f1,meta:_0x5ea066}of this['_findSuggestions'](_0x350d29,'formatInline')){if(!_0x5ea066['isOwn'])continue;if(_0x21a9f1['subType']!=_0x2a1055)continue;if(!Lt(_0x21a9f1,_0x24e6ce))continue;const _0x243a6f=_0x21a9f1['getFirstRange']();if(_0x243a6f['containsRange'](_0x350d29,!0x0))return null;_0x1b96c3=_0x1b96c3['isBefore'](_0x243a6f['start'])?_0x1b96c3:_0x243a6f['start'],_0x548769=_0x548769['isAfter'](_0x243a6f['end'])?_0x548769:_0x243a6f['end'],_0x18d898?_0x243a6f['start']['isBefore'](_0x18d898['getFirstRange']()['start'])?(_0x18d898['removeMarkers'](),_0x18d898=_0x21a9f1):_0x21a9f1['removeMarkers']():_0x18d898=_0x21a9f1;}const _0x4d92c4=this['_model']['createRange'](_0x1b96c3,_0x548769);if(_0x18d898)this['_setSuggestionRange'](_0x18d898,_0x4d92c4);else{const _0x4bce7e=_0x2dd115(),_0x5243db=_0xefb32c['id'];this['_setSuggestionData']({'id':_0x4bce7e,'type':'formatInline:'+_0x2a1055,'data':_0x1d2f11,'createdAt':new Date(),'authorId':_0x5243db,'attributes':_0x24e6ce}),this['_addSuggestionMarker']('formatInline:'+_0x2a1055,_0x4bce7e,_0x5243db,_0x4d92c4);}}return null;}['markBlockFormat'](_0x5b0626,_0x5b4083,_0x39531d=[],_0x276cf7=null,_0x3dc4c8={}){_0x5b4083['formatGroupId']||(_0x5b4083['formatGroupId']=_0x5b4083['commandName']),_0x5b4083['multipleBlocks']=_0x5b0626['is']('range'),_0x276cf7=_0x276cf7||Ot(_0x5b4083);const _0x285b0b=_0x39531d['map'](_0x415a1a=>Gt(_0x415a1a,this['_model'])),_0xd6f86b=_0x5b0626['is']('range')?_0x5b0626:Gt(_0x5b0626,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3a5ba4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x276cf7,'accept');return this['forceDefaultExecution'](()=>_0x3a5ba4([_0xd6f86b],_0x5b4083,_0x3dc4c8)),null;}_0x285b0b['push'](_0xd6f86b);let _0x27196a=!0x0;for(const _0xaa760e of _0x285b0b)if(!this['_rangeIsInLocalUserInsertion'](_0xaa760e)){_0x27196a=!0x1;break;}if(_0x27196a&&'always'!==this['_trackFormatChanges']){const _0x4cbb33=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x276cf7,'accept');return this['forceDefaultExecution'](()=>_0x4cbb33([_0xd6f86b],_0x5b4083,_0x3dc4c8)),null;}let _0x516049=null,_0x2aff24=_0xd6f86b['start'],_0x2de99f=_0xd6f86b['end'];for(const {suggestion:_0x4e6db7,meta:_0xf4d1b5}of this['_findSuggestions'](_0xd6f86b,'formatBlock')){if(!_0xf4d1b5['isOwn'])continue;if(_0xf4d1b5['isNextTo']||_0xf4d1b5['containsRangeInObject']||_0xf4d1b5['isInsideObject'])continue;if(_0x4e6db7['data']['formatGroupId']!=_0x5b4083['formatGroupId'])continue;if(!Lt(_0x4e6db7,_0x3dc4c8))continue;const _0x14087f=_0x4e6db7['getFirstRange']();if(_0x4e6db7['subType']==_0x276cf7){if(_0x14087f['containsRange'](_0xd6f86b,!0x0))return null;_0x2aff24=_0x2aff24['isBefore'](_0x14087f['start'])?_0x2aff24:_0x14087f['start'],_0x2de99f=_0x2de99f['isAfter'](_0x14087f['end'])?_0x2de99f:_0x14087f['end'],_0x516049?_0x14087f['start']['isBefore'](_0x516049['getFirstRange']()['start'])?(_0x516049['removeMarkers'](),_0x516049=_0x4e6db7):_0x4e6db7['removeMarkers']():_0x516049=_0x4e6db7;}else{const _0xe7f850=_0xd6f86b['getIntersection'](_0x14087f);this['_cutOutSuggestionMarker'](_0x4e6db7,_0xe7f850);}}const _0x2c01b0=this['editor']['plugins']['get']('Users')['me'],_0x1c7bff=_0x2dd115(),_0x33d2bf=_0x2c01b0['id'];if(_0x516049)return this['_setSuggestionRange'](_0x516049,this['_model']['createRange'](_0x2aff24,_0x2de99f)),_0x516049;{const _0x5378c2=this['_setSuggestionData']({'id':_0x1c7bff,'type':'formatBlock:'+_0x276cf7,'data':_0x5b4083,'createdAt':new Date(),'authorId':_0x33d2bf,'attributes':_0x3dc4c8});return this['_addSuggestionMarker']('formatBlock:'+_0x276cf7,_0x1c7bff,_0x33d2bf,this['_model']['createRange'](_0x2aff24,_0x2de99f)),_0x5378c2;}}['markMultiRangeBlockFormat'](_0x52ad8b,_0x277506,_0x59485a=[],_0x3f204f=null,_0x1a7003={}){_0x277506['formatGroupId']||(_0x277506['formatGroupId']=_0x277506['commandName']);const _0x19439c=_0x52ad8b[0x0];_0x277506['multipleBlocks']=_0x19439c['is']('range'),_0x3f204f=_0x3f204f||Ot(_0x277506);const _0x298a3e=_0x59485a['map'](_0x2e4ecb=>Gt(_0x2e4ecb,this['_model'])),_0x160b82=_0x19439c['is']('range')?_0x52ad8b:_0x52ad8b['map'](_0x5c2286=>Gt(_0x5c2286,this['_model']));if('never'===this['_trackFormatChanges']){const _0x589448=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f204f,'accept');return this['forceDefaultExecution'](()=>_0x589448(_0x160b82,_0x277506,_0x1a7003)),null;}_0x298a3e['push'](..._0x160b82);let _0x23394d=!0x0;for(const _0x1de15c of _0x298a3e)if(!this['_rangeIsInLocalUserInsertion'](_0x1de15c)){_0x23394d=!0x1;break;}if(_0x23394d&&'always'!==this['_trackFormatChanges']){const _0x2d24c9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f204f,'accept');return this['forceDefaultExecution'](()=>_0x2d24c9(_0x160b82,_0x277506,_0x1a7003)),null;}const _0xb3a24c=this['editor']['plugins']['get']('Users')['me'];for(const _0x23632b of this['getSuggestions']()){if(_0x23632b['author']['id']!=_0xb3a24c['id'])continue;if('formatBlock'!=_0x23632b['type']||_0x23632b['data']['formatGroupId']!=_0x277506['formatGroupId'])continue;if(!Lt(_0x23632b,_0x1a7003))continue;const _0x37ff8d=_0x23632b['subType']==_0x3f204f;for(let _0x2614eb=0x0;_0x2614eb<_0x160b82['length'];_0x2614eb++){const _0x2a61c3=_0x160b82[_0x2614eb];for(const _0x5909ad of _0x23632b['getMarkers']()){const _0x2f916e=_0x5909ad['getRange']();if(_0x2a61c3['isEqual'](_0x2f916e)){_0x37ff8d?(_0x160b82['splice'](_0x2614eb,0x1),_0x2614eb--):_0x23632b['removeMarker'](_0x5909ad['name']);break;}}}}if(0x0==_0x160b82['length'])return null;const _0x37bda3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f204f,'join');for(const _0x70b69a of this['getSuggestions']())if(_0x70b69a['author']['id']==_0xb3a24c['id']&&'formatBlock'==_0x70b69a['type']&&_0x70b69a['data']['formatGroupId']==_0x277506['formatGroupId']&&_0x70b69a['subType']==_0x3f204f&&Lt(_0x70b69a,_0x1a7003)&&(_0x37bda3(_0x70b69a['getRanges'](),_0x160b82)||_0x37bda3(_0x160b82,_0x70b69a['getRanges']()))){for(const _0x258ded of _0x160b82)_0x70b69a['addRange'](_0x258ded);return _0x70b69a;}const _0x265289=_0x2dd115(),_0x4e7128=_0xb3a24c['id'],_0x54253e='formatBlock:'+_0x3f204f,_0xf42eb9=this['_setSuggestionData']({'id':_0x265289,'type':_0x54253e,'data':_0x277506,'createdAt':new Date(),'authorId':_0x4e7128,'attributes':_0x1a7003});for(const _0x15d1c6 of _0x160b82)this['_addSuggestionMarker'](_0x54253e,_0x265289,_0x4e7128,_0x15d1c6,u['getMultiRangeId']());return _0xf42eb9;}['markDeletion'](_0x478a31,_0x249475=null,_0x569ef7={}){if(_0x478a31['isCollapsed'])return null;const _0x3d2aaf=this['editor']['plugins']['get']('Users')['me'],_0xd987df=new _0x150295(_0x478a31['start'],_0x478a31['end']);for(const {suggestion:_0x2bbca1,meta:_0x20fcfe}of this['_findSuggestions'](_0xd987df,'insertion'))if(_0x20fcfe['isOwn']&&!_0x20fcfe['isNextTo']){if(_0x2bbca1['isMultiRange']){const _0x365ea2=_0x2bbca1['getRanges']()['filter'](_0x4407c9=>'$graveyard'!=_0x4407c9['root']['rootName']);_0x365ea2['every'](_0x101b76=>_0xd987df['containsRange'](_0x101b76,!0x0))&&_0x2bbca1['discard']();if(_0x365ea2['some'](_0x6386a6=>_0x6386a6['containsRange'](_0xd987df,!0x0))){const _0x4cd98a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x249475,'accept');return this['forceDefaultExecution'](()=>_0x4cd98a([_0xd987df],null,_0x569ef7)),null;}}else{const _0x4add66=_0xd987df['getIntersection'](_0x2bbca1['getFirstRange']());null!==_0x4add66&&_0x2bbca1['_onDiscard']([_0x4add66],null,_0x569ef7);}}if(_0xd987df['detach'](),_0xd987df['isCollapsed']||'$graveyard'==_0xd987df['root']['rootName'])return null;let _0x3e068b=null,_0x3bfb10=_0xd987df['start'],_0x1ac09c=_0xd987df['end'];const _0x51f3bf=this['_findSuggestions'](_0xd987df,'deletion');for(const {suggestion:_0x7b1d2c,meta:_0x2a4e87}of _0x51f3bf){const _0x335a83=this['_model']['createRange'](_0x3bfb10,_0x1ac09c);if(_0x2a4e87['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2a4e87['containsRangeInObject']&&!_0x2a4e87['isInsideObject'])){if(_0x7b1d2c['isMultiRange']){if(!Lt(_0x7b1d2c,_0x569ef7))continue;let _0x3ccf43=!0x0;for(const _0x5badb4 of _0x7b1d2c['getRanges']()){if(_0x5badb4['containsRange'](_0x335a83,!0x0))return _0x7b1d2c;_0x335a83['containsRange'](_0x5badb4)||(_0x3ccf43=!0x1);}_0x3ccf43&&_0x7b1d2c['discard']();}else{const _0x93a27=_0x7b1d2c['getFirstRange']();if(_0x93a27['containsRange'](_0x335a83,!0x0))return _0x7b1d2c;if(!Lt(_0x7b1d2c,_0x569ef7)){_0x335a83['containsRange'](_0x93a27)?_0x7b1d2c['removeMarkers']():_0x93a27['containsPosition'](_0x3bfb10)?_0x3bfb10=_0x93a27['end']:_0x93a27['containsPosition'](_0x1ac09c)&&(_0x1ac09c=_0x93a27['start']);continue;}_0x3bfb10=_0x3bfb10['isBefore'](_0x93a27['start'])?_0x3bfb10:_0x93a27['start'],_0x1ac09c=_0x1ac09c['isAfter'](_0x93a27['end'])?_0x1ac09c:_0x93a27['end'],_0x569ef7=Object['assign']({},_0x7b1d2c['attributes']),_0x3e068b?_0x93a27['start']['isBefore'](_0x3e068b['getFirstRange']()['start'])?(_0x3e068b['removeMarkers'](),_0x3e068b=_0x7b1d2c):_0x7b1d2c['removeMarkers']():_0x3e068b=_0x7b1d2c;}}}if(_0x3e068b)return this['_setSuggestionRange'](_0x3e068b,this['_model']['createRange'](_0x3bfb10,_0x1ac09c)),_0x3e068b;{const _0x17ad46=_0x2dd115(),_0x38fe7c=this['_model']['createRange'](_0x3bfb10,_0x1ac09c),_0x20a4a4=_0x3d2aaf['id'],_0x2312f8=_0x249475?'deletion:'+_0x249475:'deletion',_0x8b14e7=this['_setSuggestionData']({'id':_0x17ad46,'type':_0x2312f8,'createdAt':new Date(),'authorId':_0x20a4a4,'attributes':_0x569ef7});return this['_addSuggestionMarker'](_0x2312f8,_0x17ad46,_0x20a4a4,_0x38fe7c),_0x8b14e7;}}['markMultiRangeDeletion'](_0x2a2e54,_0x584faf='multi',_0x3a7e3f={}){const _0xceff6b=this['editor']['plugins']['get']('Users')['me'],_0x3a2168=_0x2a2e54['map'](_0x4d68e3=>new _0x150295(_0x4d68e3['start'],_0x4d68e3['end'])),_0x5b60af=new Set();for(const {suggestion:_0x3d7b47,meta:_0x35e02b}of this['_findSuggestions'](_0x3a2168,'insertion'))_0x35e02b['isOwn']&&!_0x35e02b['isNextTo']&&_0x5b60af['add'](_0x3d7b47);for(const _0x3753ce of _0x5b60af)if(_0x3753ce['isMultiRange']){const _0x11c162=_0x3753ce['getRanges']();(!_0x3753ce['attributes']||!_0x3753ce['attributes']['skipNestingCheck'])&&(_0x11c162['every'](_0x536b9e=>_0x3a2168['some'](_0x1ecf20=>_0x1ecf20['containsRange'](_0x536b9e,!0x0)))&&_0x3753ce['discard']());if(_0x3a2168['every'](_0x5cae49=>_0x11c162['some'](_0x23186b=>_0x23186b['containsRange'](_0x5cae49,!0x0)))){const _0x149e70=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x584faf,'accept');return this['forceDefaultExecution'](()=>_0x149e70(_0x2a2e54,null,_0x3a7e3f)),null;}}else{const _0x38ee32=_0x3753ce['getFirstRange']();_0x3a2168['some'](_0x545426=>_0x545426['containsRange'](_0x38ee32,!0x0))&&_0x3753ce['discard']();if(_0x3a2168['every'](_0x5a81bd=>_0x38ee32['containsRange'](_0x5a81bd,!0x0))){const _0x446688=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x584faf,'accept');return this['forceDefaultExecution'](()=>_0x446688(_0x3a2168,null,_0x3a7e3f)),null;}}const _0x8f8e85=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x584faf,'join');let _0x2ebc2f=null;for(const _0x49b99b of this['getSuggestions']())if(_0x49b99b['author']['id']==_0xceff6b['id']&&_0x49b99b['isInContent']&&'deletion'==_0x49b99b['type']&&_0x49b99b['subType']==_0x584faf&&Lt(_0x49b99b,_0x3a7e3f)&&(_0x8f8e85(_0x49b99b['getRanges'](),_0x3a2168)||_0x8f8e85(_0x3a2168,_0x49b99b['getRanges']()))){if(_0x2ebc2f){if(_0x49b99b['commentThread']&&_0x49b99b['commentThread']['length'])continue;for(const _0x500590 of _0x49b99b['getRanges']())_0x2ebc2f['isIntersectingWithRange'](_0x500590)||_0x2ebc2f['addRange'](_0x500590);_0x49b99b['removeMarkers']();}else{_0x2ebc2f=_0x49b99b;for(const _0x48fbed of _0x3a2168)_0x49b99b['isIntersectingWithRange'](_0x48fbed)||_0x49b99b['addRange'](_0x48fbed);}}if(_0x2ebc2f)return _0x2ebc2f;_0x5b60af['clear']();for(const {suggestion:_0x3d730c,meta:_0x2bb6a3}of this['_findSuggestions'](_0x3a2168,'deletion'))_0x2bb6a3['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2bb6a3['containsRangeInObject']&&!_0x2bb6a3['isInsideObject'])&&Lt(_0x3d730c,_0x3a7e3f)&&_0x5b60af['add'](_0x3d730c);for(const _0x11262e of _0x5b60af){const _0x47003f=_0x11262e['getRanges']();if(!_0x3a7e3f||!_0x3a7e3f['skipNestingCheck']){if(_0x3a2168['every'](_0x1e655b=>_0x47003f['some'](_0x378c57=>_0x378c57['containsRange'](_0x1e655b,!0x0))))return _0x11262e;}(!_0x11262e['attributes']||!_0x11262e['attributes']['skipNestingCheck'])&&(_0x47003f['every'](_0x19b338=>_0x3a2168['some'](_0x162f33=>_0x162f33['containsRange'](_0x19b338,!0x0)))&&_0x11262e['discard']());}const _0x8b20a8=_0x2dd115(),_0x250cc7=_0xceff6b['id'],_0x29e2af='deletion:'+_0x584faf,_0x23adb8=this['_setSuggestionData']({'id':_0x8b20a8,'type':_0x29e2af,'createdAt':new Date(),'authorId':_0x250cc7,'attributes':_0x3a7e3f});for(const _0x47182f of _0x3a2168)_0x47182f['detach'](),_0x47182f['isCollapsed']||'$graveyard'==_0x47182f['root']['rootName']||this['_addSuggestionMarker'](_0x29e2af,_0x8b20a8,_0x250cc7,_0x47182f,u['getMultiRangeId']());return _0x23adb8;}['markAttributeChange'](_0x4692be,_0x51d9aa,_0x49a755,_0x2a0c0b,_0xc93c7d){if(_0x4692be['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2149b5=this['editor']['plugins']['get']('Users')['me']['id'],_0x1793fd=Array['from'](this['_suggestions']['values']())['filter'](_0x2ba265=>'attribute'==_0x2ba265['type']&&_0x2ba265['data']['key']==_0x51d9aa&&_0x2ba265['isIntersectingWithRange'](_0x4692be));if('default'===this['_trackFormatChanges']){const _0x461fe0=this['_findSuggestions'](_0x4692be,'insertion')['filter'](({meta:_0x5a3603})=>_0x5a3603['isOwn']&&!_0x5a3603['isInsideObject']&&!_0x5a3603['isNextTo'])['map'](({suggestion:_0x2ee4d5})=>_0x2ee4d5);_0x1793fd['unshift'](..._0x461fe0);}const _0x5249e7=new Map([[_0x4692be,_0x49a755]]);for(const _0x26ba7a of _0x1793fd){const _0x5791cb='attribute'==_0x26ba7a['type']?_0x26ba7a['data']['oldValue']:void 0x0,_0x13fc63=_0x26ba7a['getFirstRange'](),_0x840def=Array['from'](_0x5249e7['keys']())['find'](_0x385af6=>_0x385af6['isIntersecting'](_0x13fc63));if(!_0x840def)continue;const _0x3d934e=_0x840def['getDifference'](_0x13fc63);this['_isBlockAttribute'](_0x51d9aa)&&'insertion'==_0x26ba7a['type']&&0x0!=_0x3d934e['length']||(_0x5249e7['delete'](_0x840def),_0x3d934e['forEach'](_0x1b578e=>{_0x5249e7['set'](_0x1b578e,_0x49a755);}),'insertion'!=_0x26ba7a['type']&&_0x5791cb!=_0x2a0c0b&&_0x5249e7['set'](_0x840def['getIntersection'](_0x13fc63),_0x5791cb));}const _0x5340be=[];for(const [_0x3d2bd9,_0x47a355]of _0x5249e7){const _0x436ce4=_0x2dd115(),_0x22d054={'key':_0x51d9aa,'oldValue':_0x47a355,'newValue':_0x2a0c0b};_0x51d9aa['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':_0x51d9aa});const _0x9954a6=('attribute:'+(_0x51d9aa+'|'+Ot({'newValue':_0x2a0c0b})))['substring'](0x0,0x3c),_0x3dcb31=this['_setSuggestionData']({'id':_0x436ce4,'type':_0x9954a6,'data':_0x22d054,'createdAt':new Date(),'authorId':_0x2149b5,'attributes':_0xc93c7d});_0x5340be['push'](_0x3dcb31),this['_addSuggestionMarker'](_0x9954a6,_0x436ce4,_0x2149b5,_0x3d2bd9);}return _0x5340be;}['enableDefaultAttributesIntegration'](_0xdb098e){this['enableCommand'](_0xdb098e,(_0x2c852e,..._0x23b335)=>{this['_recordAttributeChanges'](()=>{_0x2c852e(..._0x23b335);});});}['registerBlockAttribute'](_0x30d43e){this['_blockAttributeKeys']['add'](_0x30d43e);}['registerInlineAttribute'](_0x5e72e6){this['_inlineAttributeKeys']['add'](_0x5e72e6);}['_getAttributeKey'](_0x275ed2){return'attribute'==_0x275ed2['type']?_0x275ed2['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1cc929,_0x25a04f){const _0x521654=_0x1cc929['getFirstMarker']();this['_model']['change'](_0x138550=>{_0x138550['updateMarker'](_0x521654,{'range':_0x25a04f});});}['_addThreadToSuggestion'](_0x535197){const _0x300434=_0x535197['id'],_0x26d0be=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x300434)||this['_commentsRepository']['addCommentThread']({'channelId':_0x26d0be,'threadId':_0x300434,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x317f70=this['_commentsRepository']['getCommentThread'](_0x300434);_0x317f70['unbind']('isRemovable'),_0x317f70['isRemovable']=!0x1,_0x535197['commentThread']=_0x317f70;}['_checkSuggestionCorrectness'](_0x26e6f0,_0x59605c,_0x11cd16,_0x44fb5f){if(_0x26e6f0['type']!=_0x59605c||_0x26e6f0['subType']!=_0x11cd16||_0x26e6f0['creator']['id']!=_0x44fb5f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x9391a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1848b5,_0xa66e){const _0x123e4b=_0x1848b5['getFirstRange']();if(_0xa66e['isEqual'](_0x123e4b))_0x1848b5['removeMarkers']();else{if(_0x123e4b['containsRange'](_0xa66e)){const _0x23e045=this['_model']['createPositionAt'](_0xa66e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1848b5,this['_model']['createRange'](_0x123e4b['start'],_0x23e045));const _0x368100=_0x2dd115(),_0x26b6f8=_0x1848b5['creator']['id'],_0x273179=_0x1848b5['type']+':'+_0x1848b5['subType'];this['_setSuggestionData']({'id':_0x368100,'type':_0x273179,'createdAt':new Date(),'authorId':_0x26b6f8,'data':_0x1848b5['data'],'attributes':_0x1848b5['attributes']});const _0x4db737=this['_model']['createPositionAt'](_0xa66e['end']['parent'],'after'),_0x48163f=this['_model']['createRange'](_0x4db737,_0x123e4b['end']);this['_addSuggestionMarker'](_0x273179,_0x368100,_0x26b6f8,_0x48163f);}else{if(_0x123e4b['containsPosition'](_0xa66e['start'])){const _0x12cfe2=this['_model']['createPositionAt'](_0xa66e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1848b5,this['_model']['createRange'](_0x123e4b['start'],_0x12cfe2));}else{const _0x3ea06c=this['_model']['createPositionAt'](_0xa66e['end']['parent'],'after');this['_setSuggestionRange'](_0x1848b5,this['_model']['createRange'](_0x3ea06c,_0x123e4b['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x514677){for(const {suggestion:_0x5e9770,meta:_0xe57056}of this['_findSuggestions'](_0x514677,'insertion')){if(!_0xe57056['isOwn'])continue;const _0x4e7bec=_0x5e9770['getRanges']();for(const _0x2fd44a of _0x4e7bec)if(!_0x514677['getDifference'](_0x2fd44a)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3c1419){const _0x13fbfa=this['editor']['plugins']['get']('Users')['getUser'](_0x3c1419);if(!_0x13fbfa)throw new _0x9391a('track-changes-user-not-found',this);return _0x13fbfa;}['_getExternalAuthor'](_0x32fcc8){const _0xde8674=this['editor']['plugins']['get']('Users'),_0x5712fc=_0x58ab75('external:'+_0x32fcc8),_0x428652=_0xde8674['getUser'](_0x5712fc);return _0x428652||_0xde8674['addUser']({'id':_0x5712fc,'name':_0x32fcc8});}['_createSuggestion'](_0x2a18e7,_0x47e90a,_0x1e982f,_0x2410d7,_0x4c4748){const _0xa4bf85=this['_getAuthorFromId'](_0x2410d7),_0x533f0c=this['_suggestionFactory']['buildSuggestion'](_0x2a18e7,_0x47e90a,_0x1e982f,_0xa4bf85,_0x4c4748,_0x525f7c=>{this['_updateSuggestionData'](_0x1e982f,{'attributes':_0x525f7c});const _0x336096=this['getSuggestion'](_0x1e982f);this['_joinWithAdjacentSuggestions'](new Set([_0x336096])),this['_refreshSuggestionsChain'](new Set([_0x336096]));});return this['listenTo'](_0x533f0c,'accept',()=>{this['_updateSuggestionData'](_0x1e982f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x533f0c,'discard',()=>{this['_updateSuggestionData'](_0x1e982f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1e982f,_0x533f0c),this['_suggestionState']['set'](_0x533f0c,'notReady'),_0x533f0c;}['_splitMarkerName'](_0x3959fe){const _0x1c9c8a=_0x3959fe['split'](':');return{'group':_0x1c9c8a[0x0],'type':_0x1c9c8a[0x1],'subType':_0x1c9c8a['length']>=0x5?_0x1c9c8a[0x2]:null,'id':_0x1c9c8a['length']<0x5?_0x1c9c8a[0x2]:_0x1c9c8a[0x3],'authorId':_0x1c9c8a['length']<0x5?_0x1c9c8a[0x3]:_0x1c9c8a[0x4],'markerCount':0x6==_0x1c9c8a['length']?_0x1c9c8a[0x5]:null};}['_breakSuggestionMarker'](_0x4c387a,_0x21b514,_0x511153){const _0xa397b8=_0x4c387a['getFirstRange'](),_0x213e7d=_0xa397b8['start'],_0x4be7af=_0xa397b8['end'];this['_setSuggestionRange'](_0x4c387a,this['_model']['createRange'](_0x213e7d,_0x21b514));const _0x3a858c=_0x2dd115(),_0x2dd4cd=_0x4c387a['creator']['id'],_0x451420=_0x4c387a['type']+(_0x4c387a['subType']?':'+_0x4c387a['subType']:'');this['_setSuggestionData']({'id':_0x3a858c,'type':_0x451420,'createdAt':new Date(),'authorId':_0x2dd4cd,'originalSuggestionId':_0x4c387a['id'],'attributes':_0x4c387a['attributes'],'data':_0x4c387a['data']});const _0x2f39d7=this['_getAttributeKey'](_0x4c387a);('formatBlock'==_0x4c387a['type']||_0x2f39d7&&this['_isBlockAttribute'](_0x2f39d7))&&(_0x511153=this['_model']['createPositionBefore'](_0x511153['parent'])),this['_addSuggestionMarker'](_0x451420,_0x3a858c,_0x2dd4cd,this['_model']['createRange'](_0x511153,_0x4be7af));}['_findSuggestions'](_0xab3914,_0x22b2d4=null){const _0x37e295=[],_0x246c9c=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xab3914)||(_0xab3914=[_0xab3914]);for(const _0x4333db of this['getSuggestions']()){if(!_0x4333db['isInContent'])continue;if(_0x22b2d4&&_0x4333db['type']!=_0x22b2d4)continue;let _0x35e119=!0x1;for(const _0x438041 of _0x4333db['getRanges']()){for(const _0x2abda0 of _0xab3914){const _0x2541eb=_0x2abda0['start']['isEqual'](_0x438041['end'])||_0x2abda0['end']['isEqual'](_0x438041['start']);if(_0x2541eb||_0x2abda0['getIntersection'](_0x438041)){const _0x24ac68=_0x2abda0['containsRange'](_0x438041)&&Rt(this['_model']['schema'],_0x438041['start'],_0x2abda0),_0x5c8f05=_0x438041['containsRange'](_0x2abda0)&&Rt(this['_model']['schema'],_0x2abda0['start'],_0x438041);_0x37e295['push']({'suggestion':_0x4333db,'meta':{'isOwn':_0x246c9c==_0x4333db['author'],'isNextTo':_0x2541eb,'isInsideObject':_0x24ac68,'containsRangeInObject':_0x5c8f05}}),_0x35e119=!0x0;break;}}if(_0x35e119)break;}}return _0x37e295;}['_addSuggestionMarker'](_0x145d46,_0x122905,_0xdeaee3,_0x105ca4,_0x522bfd){this['_model']['change'](_0x29bc4a=>{let _0x4026ae='suggestion:'+_0x145d46+':'+_0x122905+':'+_0xdeaee3;_0x522bfd&&(_0x4026ae=_0x4026ae+':'+_0x522bfd),_0x29bc4a['addMarker'](_0x4026ae,{'range':_0x105ca4,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x95d669){const _0x192566=_0x95d669['previous'],_0x8856fd=_0x95d669['next'];_0x95d669['previous']=null,_0x95d669['next']=null,null!=_0x192566&&_0x192566['next']==_0x95d669&&(_0x192566['next']=_0x8856fd),null!=_0x8856fd&&_0x8856fd['previous']==_0x95d669&&(_0x8856fd['previous']=_0x192566),'ready'==this['_suggestionState']['get'](_0x95d669)&&(this['_suggestionState']['set'](_0x95d669,'removed'),this['fire']('suggestionUnloaded',_0x95d669,_0x192566,_0x8856fd));}['_setSuggestionData'](_0x163003){const _0x2a8433=_0x163003['id'],_0x33cef4=this['addSuggestionData'](_0x163003);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xb9dc04=this['editor']['plugins']['get']('PendingActions'),_0x754fce=_0x33cef4['hasComments'],_0xee17f1=_0x33cef4['subType']?_0x33cef4['type']+':'+_0x33cef4['subType']:_0x33cef4['type'],_0x15229a=this['editor']['locale'],_0x52cb42=_0xb9dc04['add'](o(_0x15229a,'PENDING_ACTION_SUGGESTION')),_0x5c779f={'id':_0x2a8433,'type':_0xee17f1,'hasComments':_0x754fce,'data':_0x163003['data']||null,'originalSuggestionId':_0x163003['originalSuggestionId']||null,'attributes':_0x33cef4['attributes']};this['_adapter']['addSuggestion'](_0x5c779f)['then'](_0x10fa2b=>{_0x33cef4['_saved']=!0x0,_0xb9dc04['remove'](_0x52cb42),_0x10fa2b&&_0x10fa2b['createdAt']&&(this['_suggestions']['get'](_0x2a8433)['createdAt']=_0x10fa2b['createdAt']);})['catch'](_0x4eb75f=>{throw _0x4266f5('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x33cef4['discard']();}),_0x33cef4['stopListening'](),this['_suggestions']['delete'](_0x33cef4['id']),this['_suggestionState']['delete'](_0x33cef4),_0x4eb75f;});}return _0x33cef4;}['_isBlockAttribute'](_0x310414){return this['_blockAttributeKeys']['has'](_0x310414);}['_updateSuggestionData'](_0x2605b0,_0x570414){const _0x368285=this['editor']['plugins']['get']('PendingActions'),_0x358bd7=this['getSuggestion'](_0x2605b0);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x358bd7['_saved']){const _0x1b677f=_0x368285['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2605b0,_0x570414)['then'](()=>{_0x368285['remove'](_0x1b677f);});}else _0x358bd7['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2605b0,_0x570414);});}}['_getSuggestionData'](_0x4ac081){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x9391a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4ac081);}['_handleNewSuggestionMarker'](_0x38e475){const {id:_0x322e5f,type:_0x5b436f,subType:_0x33ff93,authorId:_0x3ab0f0}=this['_splitMarkerName'](_0x38e475),_0x3d66b8=this['_suggestions']['get'](_0x322e5f)||this['_createSuggestion'](_0x5b436f,_0x33ff93,_0x322e5f,_0x3ab0f0,{});switch(this['_checkSuggestionCorrectness'](_0x3d66b8,_0x5b436f,_0x33ff93,_0x3ab0f0),this['_suggestionState']['get'](_0x3d66b8)){case'notReady':this['_getSuggestionData'](_0x322e5f)['then'](_0x10f6d7=>{let _0x316ef0=Promise['resolve']();_0x10f6d7['hasComments']&&(_0x316ef0=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x322e5f})),_0x316ef0['then'](()=>{this['addSuggestionData'](_0x10f6d7)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3d66b8,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x322e5f,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3d66b8,'ready'),this['fire']('suggestionLoaded',_0x3d66b8);break;case'ready':this['fire']('suggestionChanged',_0x3d66b8);}return _0x3d66b8['addMarkerName'](_0x38e475),_0x3d66b8;}['_refreshSuggestionsChain'](_0x1adf90){const _0x4e339e=Array['from'](_0x1adf90),_0x580190=_0x4e339e['filter'](_0x310c1a=>'attribute'==_0x310c1a['type']);this['_refreshAttributeSuggestionsChain'](_0x580190);const _0x3f1525=_0x4e339e['filter'](_0x97b285=>!_0x97b285['isMultiRange']&&'attribute'!=_0x97b285['type']),_0x579cd6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xb8bdb3=>!_0xb8bdb3['isMultiRange']&&'attribute'!=_0xb8bdb3['type']),_0x467303=_0x579cd6['filter'](_0x2650c5=>!_0x1adf90['has'](_0x2650c5)),_0x2f3686=new Map(_0x579cd6['map'](_0x3bf348=>[_0x3bf348,this['_suggestionFactory']['getSuggestionCallback'](_0x3bf348['type'],_0x3bf348['subType'],'chain')])),_0x34916f=new Map(_0x579cd6['map'](_0x8a10ed=>[_0x8a10ed,_0x8a10ed['getFirstRange']()])),_0x745c5d=new Set(),_0x566c39=new Set();for(let _0x5cb069=0x0;_0x5cb069<_0x3f1525['length'];_0x5cb069++)_0x1787c2(_0x3f1525[_0x5cb069],_0x3f1525,_0x5cb069+0x1);for(let _0x26fe20=0x0;_0x26fe20<_0x3f1525['length'];_0x26fe20++)_0x1787c2(_0x3f1525[_0x26fe20],_0x467303,0x0);const _0x32bb0a=new Set();for(let _0x1495cd=0x0;_0x1495cd<_0x3f1525['length'];_0x1495cd++){const _0xfc8218=_0x3f1525[_0x1495cd];!_0x566c39['has'](_0xfc8218)&&_0xfc8218['previous']&&(_0x32bb0a['add'](_0xfc8218['previous']),_0xfc8218['previous']['next']===_0xfc8218&&(_0xfc8218['previous']['next']=null),_0xfc8218['previous']=null),!_0x745c5d['has'](_0xfc8218)&&_0xfc8218['next']&&(_0x32bb0a['add'](_0xfc8218['next']),_0xfc8218['next']['previous']===_0xfc8218&&(_0xfc8218['next']['previous']=null),_0xfc8218['next']=null);}function _0x1787c2(_0x620fe1,_0x5932d7,_0x985ca){for(let _0x448bf1=_0x985ca;_0x448bf1<_0x5932d7['length'];_0x448bf1++){const _0x12d7cf=_0xd285d6(_0x620fe1,_0x5932d7[_0x448bf1]);_0x12d7cf&&(_0x12d7cf[0x0]['next']=_0x12d7cf[0x1],_0x12d7cf[0x1]['previous']=_0x12d7cf[0x0],_0x745c5d['add'](_0x12d7cf[0x0]),_0x566c39['add'](_0x12d7cf[0x1]));}}function _0xd285d6(_0x1dd0c2,_0x328dd9){if(_0x1dd0c2['author']['id']!==_0x328dd9['author']['id'])return null;const _0x3940f3=_0x2f3686['get'](_0x1dd0c2)(_0x1dd0c2,_0x328dd9,_0x34916f['get'](_0x1dd0c2),_0x34916f['get'](_0x328dd9));if(!_0x3940f3)return null;return _0x2f3686['get'](_0x328dd9)(_0x1dd0c2,_0x328dd9,_0x34916f['get'](_0x1dd0c2),_0x34916f['get'](_0x328dd9))?_0x3940f3[0x1]['commentThread']&&_0x3940f3[0x1]['commentThread']['length']?null:_0x3940f3:null;}_0x32bb0a['size']&&this['_refreshSuggestionsChain'](_0x32bb0a);}['_refreshAttributeSuggestionsChain'](_0x412955){if(0x0==_0x412955['length'])return;const _0x5becb4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x67c9b7=>'attribute'==_0x67c9b7['type']&&_0x67c9b7['_isDataLoaded']),_0x392316=[],_0x2cb9c5=new Map();for(const _0x2619cf of _0x5becb4){const _0x1585e4=_0x58ab75(_0x2619cf['attributes']);_0x2cb9c5['has'](_0x1585e4)||(_0x2cb9c5['set'](_0x1585e4,_0x392316['length']),_0x392316['push']([]));const _0x263061=_0x2cb9c5['get'](_0x1585e4);_0x392316[_0x263061]['push'](_0x2619cf);}!(function(){_0x392316['sort']((_0x5c689b,_0x4c1634)=>{const _0x7b8c33=_0x5c689b[0x0]['createdAt'],_0x13a0e1=_0x4c1634[0x0]['createdAt'];return _0x7b8c33==_0x13a0e1?_0x5c689b[0x0]['attributes']['groupId']<_0x4c1634[0x0]['attributes']['groupId']?-0x1:0x1:_0x7b8c33<_0x13a0e1?-0x1:0x1;});for(const _0x1eb92b of _0x392316)_0x1eb92b['sort']((_0x3e7352,_0x58d187)=>_0x3e7352['id']<_0x58d187['id']?-0x1:0x1);}());for(let _0x3f515c=0x0;_0x3f515c<_0x392316['length'];_0x3f515c++){if(0x0==_0x392316[_0x3f515c]['length'])continue;const _0x2808c6=[];for(let _0x1793ac=_0x3f515c+0x1;_0x1793ac<_0x392316['length'];_0x1793ac++)0x0!=_0x392316[_0x1793ac]['length']&&_0x3e3907(_0x392316[_0x3f515c],_0x392316[_0x1793ac])&&_0x2808c6['push'](_0x1793ac);for(const _0x3a1a5b of _0x2808c6)_0x392316[_0x3f515c]=_0x392316[_0x3f515c]['concat'](_0x392316[_0x3a1a5b]),_0x392316[_0x3a1a5b]=[];}for(const _0x7213f8 of _0x392316)for(let _0x54ff99=0x0;_0x54ff99<_0x7213f8['length'];_0x54ff99++){const _0x13268c=_0x7213f8[_0x54ff99+0x1]||null;_0x7213f8[_0x54ff99]['next']!==_0x13268c&&(_0x7213f8[_0x54ff99]['next']=_0x13268c);}for(const _0x4c1869 of _0x392316)for(let _0xc535c3=0x0;_0xc535c3<_0x4c1869['length'];_0xc535c3++){const _0x7e614c=_0x4c1869[_0xc535c3-0x1]||null;_0x4c1869[_0xc535c3]['previous']!==_0x7e614c&&(_0x4c1869[_0xc535c3]['previous']=_0x7e614c);}function _0x3e3907(_0x2ca8ce,_0x5f5788){if(_0x2ca8ce[0x0]['attributes']['groupId']!==_0x5f5788[0x0]['attributes']['groupId']&&_0x2ca8ce[0x0]['author']!==_0x5f5788[0x0]['author'])return!0x1;if(!function(_0xb34b4f,_0x2f332b){if(!_0xb34b4f['hasComments']&&!_0x2f332b['hasComments'])return!0x0;if(_0xb34b4f['hasComments']&&_0x2f332b['hasComments'])return!0x1;if(_0xb34b4f['hasComments']&&_0x2f332b['createdAt']<_0xb34b4f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2f332b['hasComments']&&_0xb34b4f['createdAt']<_0x2f332b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2ca8ce[0x0],_0x5f5788[0x0]))return!0x1;const _0x533fa7=Bt(_0x2ca8ce[0x0]['attributes'],'groupId'),_0x52b8c8=Bt(_0x5f5788[0x0]['attributes'],'groupId');if(!_0x10efed(_0x533fa7,_0x52b8c8))return!0x1;return!!_0x2ca8ce['every'](_0x2cf78f=>_0x5f5788['some'](_0x593d2c=>_0x2cf78f['getFirstRange']()['isEqual'](_0x593d2c['getFirstRange']())))&&_0x5f5788['every'](_0x4b0c06=>_0x2ca8ce['some'](_0x1c942c=>_0x4b0c06['getFirstRange']()['isEqual'](_0x1c942c['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4ae9a6){const _0x472ac9=Array['from'](_0x4ae9a6),_0x377475=this['getSuggestions']({'skipNotAttached':!0x0}),_0x14f8a5=_0x377475['filter'](_0x3be1c4=>!_0x4ae9a6['has'](_0x3be1c4)),_0x5a9711=new Map(_0x472ac9['map'](_0x494c41=>[_0x494c41,this['_suggestionFactory']['getSuggestionCallback'](_0x494c41['type'],_0x494c41['subType'],'join')])),_0x4e4c5d=new Map(_0x377475['map'](_0x41802e=>[_0x41802e,_0x41802e['getRanges']()]));for(let _0x57b20c=0x0;_0x57b20c<_0x472ac9['length'];_0x57b20c++){if(_0x5bdcdb(this,_0x472ac9[_0x57b20c],_0x472ac9,_0x57b20c+0x1))return!0x0;}for(let _0x4f9608=0x0;_0x4f9608<_0x472ac9['length'];_0x4f9608++){if(_0x5bdcdb(this,_0x472ac9[_0x4f9608],_0x14f8a5,0x0))return!0x0;}return!0x1;function _0x5bdcdb(_0x4d9182,_0x10f5ae,_0x426f9b,_0x4f56a2){for(let _0x185658=_0x4f56a2;_0x185658<_0x426f9b['length'];_0x185658++){const _0x283ddd=_0x426f9b[_0x185658];if(_0x283ddd['type']!==_0x10f5ae['type']||_0x283ddd['author']['id']!==_0x10f5ae['author']['id']||_0x283ddd['subType']!==_0x10f5ae['subType'])continue;if(!Pt(_0x10f5ae,_0x283ddd))continue;if('attribute'==_0x10f5ae['type']&&_0x10f5ae['data']['oldValue']!=_0x283ddd['data']['oldValue'])continue;if('attribute'==_0x10f5ae['type']&&_0x4d9182['_isBlockAttribute'](_0x10f5ae['data']['key']))continue;if('formatBlock'==_0x10f5ae['type']){const _0x14aa5a=_0x4d9182['editor']['model'],_0x3bbcc1=_0x10f5ae['getContainedElement']();if(_0x3bbcc1&&(_0x14aa5a['schema']['isObject'](_0x3bbcc1)||_0x14aa5a['schema']['isLimit'](_0x3bbcc1)))continue;}const _0x2f9121=_0x5a9711['get'](_0x10f5ae),_0x50521e=_0x4e4c5d['get'](_0x10f5ae),_0x53a36c=_0x4e4c5d['get'](_0x283ddd),_0x4349db=_0x10f5ae['commentThread']&&_0x10f5ae['commentThread']['length'],_0x4070d6=_0x283ddd['commentThread']&&_0x283ddd['commentThread']['length'];if(!_0x4349db&&_0x2f9121(_0x53a36c,_0x50521e))return _0x4d9182['_joinSuggestions'](_0x283ddd,_0x10f5ae),_0x4e4c5d['delete'](_0x10f5ae),!0x0;if(!_0x4070d6&&_0x2f9121(_0x50521e,_0x53a36c))return _0x4d9182['_joinSuggestions'](_0x10f5ae,_0x283ddd),_0x4e4c5d['delete'](_0x283ddd),!0x0;}return!0x1;}}['_joinSuggestions'](_0xee9d8c,_0x2c1302){if(_0xee9d8c['isMultiRange']){for(const _0x4269de of _0x2c1302['getRanges']())_0xee9d8c['addRange'](_0x4269de);}else{const _0x3de37c=_0x2c1302['getFirstRange']()['end'];this['_setSuggestionRange'](_0xee9d8c,this['_model']['createRange'](_0xee9d8c['getFirstRange']()['start'],_0x3de37c));}_0x2c1302['removeMarkers']();}['_getMarkerAnnouncementText'](_0x26300,_0x295fd0){const _0x161145=_0x26300['startsWith']('format')||_0x26300['startsWith']('attribute')?'FORMATTING':_0x26300['toUpperCase']();return o(this['editor']['locale'],_0x295fd0+'_'+_0x161145+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x68622b=this['editor'];if(!_0x68622b['ui'])return;const {ariaLiveAnnouncer:_0x19db5f}=_0x68622b['ui'];_0x17149d(this['_model'],({left:_0x3d320c,entered:_0x592d15})=>{for(const _0x3f6f59 of _0x3d320c){const {group:_0x4b670f,type:_0x52c41d}=this['_splitMarkerName'](_0x3f6f59['name']);if('suggestion'===_0x4b670f){_0x19db5f['announce'](this['_getMarkerAnnouncementText'](_0x52c41d,'LEAVE'));break;}}for(const _0x57271b of _0x592d15){const {group:_0x267df6,type:_0x5a2c83}=this['_splitMarkerName'](_0x57271b['name']);if('suggestion'===_0x267df6){_0x19db5f['announce'](this['_getMarkerAnnouncementText'](_0x5a2c83,'ENTER'));break;}}});}['_processAttributeChanges'](_0x130b65){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3a5c58=this['editor'],_0x3aabb1=_0x3a5c58['model']['document']['differ']['getChanges']();if(0x0==_0x3aabb1['length'])return!0x1;const _0x59e116=[],_0x149b29=_0x3aabb1['filter'](_0x2f410e=>'attribute'==_0x2f410e['type']),_0x45933d=_0x3aabb1['filter'](_0x125698=>'insert'==_0x125698['type']&&'$text'!=_0x125698['name']),_0x34033b=_0x3aabb1['filter'](_0x48a3a0=>'remove'==_0x48a3a0['type']&&'$text'!=_0x48a3a0['name']);for(const _0x5868ad of _0x149b29)_0x59e116['push']({'key':_0x5868ad['attributeKey'],'newValue':_0x5868ad['attributeNewValue'],'oldValue':_0x5868ad['attributeOldValue'],'range':Ut(_0x5868ad['range'],_0x3a5c58['model'])});for(const _0x37ed65 of _0x45933d){const _0x43bfb8=_0x34033b['find'](_0x2aba6e=>_0x2aba6e['position']['isEqual'](_0x37ed65['position']));_0x43bfb8&&_0x59e116['push']({'key':m,'newValue':_0x37ed65['name'],'oldValue':_0x43bfb8['name'],'range':_0x3a5c58['model']['createRangeOn'](_0x37ed65['position']['nodeAfter'])});}return 0x0!=_0x59e116['length']&&this['_reduceExistingSuggestions'](_0x130b65,_0x59e116);}['_processAttributeSuggestions'](_0x5d97f6){let _0x4694eb=!0x1;const _0x29f27c=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x338c94=>_0x338c94['data']['newRange']&&_0x338c94['name']['startsWith']('suggestion:attribute:'));for(const _0x13efd1 of _0x29f27c){const {subType:_0x38d374,id:_0x70c87a}=this['_splitMarkerName'](_0x13efd1['name']),_0x5c8110=_0x38d374['split']('|')[0x0];for(const _0x486328 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x486328['id']!=_0x70c87a&&'attribute'==_0x486328['type']&&_0x486328['data']&&_0x486328['data']['key']==_0x5c8110&&_0x486328['getFirstRange']()['isIntersecting'](_0x13efd1['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x486328,_0x13efd1['data']['newRange'],_0x5d97f6),_0x4694eb=!0x0);}return _0x4694eb;}['_recordAttributeChanges'](_0x3da6a8){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x3da6a8();}['_isRegisteredAttribute'](_0x1edbc8){const _0x45f33a=this['_isBlockAttribute'](_0x1edbc8),_0x3752b8=this['_inlineAttributeKeys']['has'](_0x1edbc8);return _0x45f33a||_0x3752b8;}['_reduceExistingSuggestions'](_0xcf1aa4,_0x3e7dda){if(0x0==_0x3e7dda['length'])return!0x1;let _0x194127=!0x1;for(const _0x343da5 of _0x3e7dda){const _0x584253=this['_findSuggestions'](_0x343da5['range'],'attribute')['filter'](_0x45021c=>!_0x45021c['meta']['isNextTo'])['map'](_0xdc48e2=>_0xdc48e2['suggestion']),_0x1f25c4=_0x58ab75({'newValue':_0x343da5['newValue']});_0x584253['filter'](_0x48b786=>{const [_0x53cffb,_0x5c9a29]=_0x48b786['subType']['split']('|');return _0x53cffb==_0x343da5['key']&&_0x5c9a29!=_0x1f25c4;})['forEach'](_0x15faf8=>{this['_reduceSuggestionAttributeRange'](_0x15faf8,_0x343da5['range'],_0xcf1aa4),_0x194127=!0x0;});}return _0x194127;}['_reduceSuggestionAttributeRange'](_0x326a91,_0x4ae883,_0x15098e){const _0x12053c=_0x326a91['getFirstRange']()['getDifference'](_0x4ae883);0x0!==_0x12053c['length']?0x1!==_0x12053c['length']?this['_breakSuggestionMarker'](_0x326a91,_0x4ae883['start'],_0x4ae883['end']):this['_setSuggestionRange'](_0x326a91,_0x12053c[0x0]):_0x15098e['removeMarker'](_0x326a91['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1db2a6){this['_editor']=_0x1db2a6,this['_model']=_0x1db2a6['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2cf2a,_0x1f6b60,_0x56b52b,_0x12040a,_0x12f732,_0x2850fc){return new u(this['_model'],{'type':_0x2cf2a,'subType':_0x1f6b60,'id':_0x56b52b,'author':_0x12040a,'creator':_0x12040a,'attributes':_0x12f732,'onAttributesChange':_0x2850fc,'onAccept':(..._0x2624bb)=>this['getSuggestionCallback'](_0x2cf2a,_0x1f6b60,'accept')(..._0x2624bb),'onDiscard':(..._0x3d3b76)=>this['getSuggestionCallback'](_0x2cf2a,_0x1f6b60,'discard')(..._0x3d3b76)});}['registerCustomCallback'](_0x10ee11,_0x3f4607,_0x1fa4b5,_0x59207b){const _0x1daa41=_0x10ee11+':'+_0x3f4607+':'+_0x1fa4b5;this['_customCallbacks']['set'](_0x1daa41,_0x59207b);}['getSuggestionCallback'](_0x580a04,_0x28a39a,_0xc81562){const _0x376536=_0x580a04+':'+_0x28a39a+':'+_0xc81562;return this['_customCallbacks']['get'](_0x376536)||this['_defaultCallbacks']['get'](_0x580a04+':'+_0xc81562);}['_registerDefaultCallbacks'](){const _0x2c2354=()=>!0x1,_0x6a734b=_0x32f0dd=>{_0x32f0dd['sort']((_0x18f98a,_0x86bde2)=>_0x18f98a['start']['isBefore'](_0x86bde2['start'])?0x1:-0x1),this['_model']['change'](_0xc35aa2=>{for(const _0x52c740 of _0x32f0dd){let _0x4e6cea;_0x4e6cea=_0x52c740['end']['isAtEnd']&&_0x52c740['end']['parent']==_0x52c740['start']['nodeAfter']?_0xc35aa2['createSelection'](_0x52c740['start']['nodeAfter'],'on'):_0xc35aa2['createSelection'](_0x52c740),this['_model']['deleteContent'](_0x4e6cea,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1ac157=(_0x1558db,_0x4ce14e)=>{_0x4ce14e&&this['_model']['change'](_0x50484a=>{const {commandName:_0x4b3893,commandParams:_0xb091ef=[]}=_0x4ce14e,_0x5a8a39=_0x1558db['map'](_0x464167=>(Tt(_0x464167)&&(_0x464167=this['_model']['createRange'](_0x464167['end'])),_0x464167))['filter'](_0x3eadb7=>'$graveyard'!==_0x3eadb7['root']['rootName']);if(_0x5a8a39['length']<0x1)return;const _0x1b1f05=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1ce94a=>_0x150295['fromRange'](_0x1ce94a));_0x50484a['setSelection'](_0x5a8a39);for(const _0x568903 of this['_editor']['commands']['commands']())_0x568903['refresh']();_0xb091ef['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4b3893,..._0xb091ef);const _0xccd4b7=_0x1b1f05['filter'](_0x1c2496=>'$graveyard'!=_0x1c2496['root']['rootName']);_0xccd4b7['length']>0x0&&_0x50484a['setSelection'](_0xccd4b7);for(const _0x4230cb of _0x1b1f05)_0x4230cb['detach']();});},_0xe8295b=(_0x28054f,_0x39ad7c)=>0x1==_0x28054f['length']&&0x1==_0x39ad7c['length']&&_0x28054f[0x0]['end']['isEqual'](_0x39ad7c[0x0]['start']),_0x2384cf=(_0x1a9479,_0x2b0221,_0x431627,_0x21de73)=>Ft(_0x1a9479,_0x2b0221,_0x431627,_0x21de73,this['_model'])?[_0x1a9479,_0x2b0221]:Ft(_0x2b0221,_0x1a9479,_0x21de73,_0x431627,this['_model'])?[_0x2b0221,_0x1a9479]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2c2354),this['_defaultCallbacks']['set']('insertion:discard',_0x6a734b),this['_defaultCallbacks']['set']('insertion:join',_0xe8295b),this['_defaultCallbacks']['set']('insertion:chain',_0x2384cf),this['_defaultCallbacks']['set']('deletion:accept',_0x6a734b),this['_defaultCallbacks']['set']('deletion:discard',_0x2c2354),this['_defaultCallbacks']['set']('deletion:join',_0xe8295b),this['_defaultCallbacks']['set']('deletion:chain',_0x2384cf),this['_defaultCallbacks']['set']('formatInline:accept',_0x1ac157),this['_defaultCallbacks']['set']('formatInline:discard',_0x2c2354),this['_defaultCallbacks']['set']('formatInline:join',_0xe8295b),this['_defaultCallbacks']['set']('formatInline:chain',_0x2c2354),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1ac157),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2c2354),this['_defaultCallbacks']['set']('formatBlock:join',_0xe8295b),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2c2354),this['_defaultCallbacks']['set']('attribute:accept',_0x2c2354),this['_defaultCallbacks']['set']('attribute:discard',(_0x350821,_0xd775c6)=>{if(!_0xd775c6)return;const _0x2b9f5a=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x588a61=>{if(_0xd775c6['key']==m)for(const _0xf0e7f2 of _0x350821){const _0x14ce10=_0xf0e7f2['start']['nodeAfter'],_0x439d77=_0xd775c6['oldValue'];_0x588a61['rename'](_0x14ce10,_0x439d77);}else{if(_0x2b9f5a['_isBlockAttribute'](_0xd775c6['key'])){for(const _0x264a02 of _0x350821)void 0x0!==_0xd775c6['oldValue']?_0x588a61['setAttribute'](_0xd775c6['key'],_0xd775c6['oldValue'],_0x264a02['start']['nodeAfter']):_0x588a61['removeAttribute'](_0xd775c6['key'],_0x264a02['start']['nodeAfter']);}else{for(const _0x10d129 of _0x350821)_0xd775c6['oldValue']?_0x588a61['setAttribute'](_0xd775c6['key'],_0xd775c6['oldValue'],_0x10d129):_0x588a61['removeAttribute'](_0xd775c6['key'],_0x10d129);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xe8295b);}}function Rt(_0x4b4e50,_0x106bc6,_0x2aa6a6){for(const _0x46eaa1 of _0x106bc6['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x46eaa1['root']==_0x46eaa1)return!0x1;if(!_0x2aa6a6['containsItem'](_0x46eaa1))return!0x1;if(_0x4b4e50['isObject'](_0x46eaa1)||_0x4b4e50['isLimit'](_0x46eaa1))return!0x0;}return!0x1;}function Tt(_0x19ad47){return _0x19ad47['end']['parent']==_0x19ad47['start']['nodeAfter']&&_0x19ad47['end']['isAtStart'];}function Et(_0xd499bd,_0x167d7d,_0x486462,_0xb6bc5a){const _0x44757e=_0x15c6b4=>!_0x15c6b4['item']['is']('$textProxy')&&!_0xb6bc5a['isObject'](_0x15c6b4['item']),_0x51176f=_0xd499bd['start']['getLastMatchingPosition'](_0x44757e),_0x15dd1b=_0xd499bd['end']['getLastMatchingPosition'](_0x44757e,{'direction':'backward'});return(!_0xd499bd['start']['isEqual'](_0x51176f)||!_0xd499bd['end']['isEqual'](_0x15dd1b))&&(_0x51176f['isBefore'](_0x15dd1b)?_0x486462['updateMarker'](_0x167d7d,{'range':_0x486462['createRange'](_0x51176f,_0x15dd1b)}):_0x486462['removeMarker'](_0x167d7d),!0x0);}function Ot(_0x2df70f){return _0x58ab75(_0x2df70f);}function Vt(_0x4c2b48){const _0x41aeb6=_0x4c2b48['start']['nodeAfter'];return _0x41aeb6&&_0x41aeb6['is']('element');}function Ut(_0x4c80b1,_0x55823b){return null==_0x4c80b1['end']['nodeBefore']&&_0x4c80b1['end']['parent']==_0x4c80b1['start']['nodeAfter']?Gt(_0x4c80b1['start']['nodeAfter'],_0x55823b):_0x4c80b1;}function Gt(_0x16e3de,_0x56c23d){const _0x2df4e8=_0x56c23d['schema']['isObject'](_0x16e3de)||_0x56c23d['schema']['isSelectable'](_0x16e3de);return _0x56c23d['createRange'](_0x56c23d['createPositionAt'](_0x16e3de,'before'),_0x2df4e8?_0x56c23d['createPositionAfter'](_0x16e3de):_0x56c23d['createPositionAt'](_0x16e3de,'end'));}function Ft(_0x4101d0,_0x189dc0,_0xa61ec9,_0x3c8dbe,_0x55ccec){if(!Pt(_0x4101d0,_0x189dc0))return!0x1;if(_0xa61ec9['end']['isEqual'](_0x3c8dbe['start']))return!0x0;if(_0x4101d0['type']!=_0x189dc0['type'])return!0x1;if(!_0xa61ec9['end']['isTouching'](_0x3c8dbe['start']))return!0x1;const _0x125ec6=_0x55ccec['createRange'](_0xa61ec9['end'],_0x3c8dbe['start'])['getWalker']();for(const _0x5336db of _0x125ec6)if(['elementStart','elementEnd']['includes'](_0x5336db['type'])&&_0x55ccec['schema']['isLimit'](_0x5336db['item']))return!0x1;return!0x0;}function Pt(_0x56f803,_0x8c25a9){if(!_0x56f803['_isDataLoaded']||!_0x8c25a9['_isDataLoaded'])return!0x1;const _0x2c9c9a=new Set(Object['keys'](_0x56f803['attributes'])),_0x3cf4cb=new Set(Object['keys'](_0x8c25a9['attributes']));if(_0x2c9c9a['delete']('groupId'),_0x3cf4cb['delete']('groupId'),0x0==_0x2c9c9a['size']&&0x0==_0x3cf4cb['size'])return!0x0;if(_0x2c9c9a['size']!=_0x3cf4cb['size'])return!0x1;const _0x337aeb={..._0x56f803['attributes']},_0x317cc2={..._0x8c25a9['attributes']};return delete _0x337aeb['groupId'],delete _0x317cc2['groupId'],JSON['stringify'](_0x337aeb)==JSON['stringify'](_0x317cc2);}function Lt(_0x471234,_0x302612){const _0x5c9f75=Ht(_0x471234['attributes']),_0x35ff15=Ht(_0x302612);if(!_0x471234['_isDataLoaded'])return!0x1;for(const _0xe307b1 of Object['keys'](_0x35ff15))if(!_0x10efed(_0x5c9f75[_0xe307b1],_0x35ff15[_0xe307b1]))return!0x1;return!0x0;}function Ht(_0x4e99d9){const _0x11e745=Object['assign']({},_0x4e99d9);return delete _0x11e745['skipNestingCheck'],delete _0x11e745['tablePasteChainId'],_0x11e745;}class oe extends/* #__PURE__ -- @preserve */
25
- _0x5c2606(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4d5ead,_0x570ec4,_0x24f834,_0x16f078){super(),this['model']=_0x570ec4,this['view']=_0x24f834,this['commentThreadController']=_0x16f078,this['_editor']=_0x4d5ead,this['_acceptCommand']=_0x4d5ead['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4d5ead['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x19534d,_0x2dfcc7)=>_0x19534d||_0x2dfcc7),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x478e17=>_0x478e17&&this['_editor']['model']['canEditAt'](_0x570ec4['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x48594d=>_0x48594d&&this['_editor']['model']['canEditAt'](_0x570ec4['getRanges']())),this['_pendingAction']=null,_0x24f834['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x24f834,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x24f834,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x24f834,'change:isDirty',()=>{_0x24f834['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 _0x53d795=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x53d795);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x773267{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x46de50,_0x4749f8,_0x499d67,_0x526c9f){super(_0x46de50),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x4749f8['authoredAt']),this['bind']('authoredAt')['to'](_0x4749f8),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x4749f8,this['_localUser']=_0x499d67,this['_config']=_0x526c9f,_0x526c9f['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:_0x2bb059}=this['_config'];this['commentsListView']=new _0x2bb059(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',_0x346a43=>_0x346a43+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x510082,_0x11b180)=>_0x510082||!!_0x11b180);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2bd571}=this['_config'],_0x5a4b5f=new _0x2bd571(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x532b69=_0x5a4b5f['commentInputView'];return _0x5a4b5f['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x532b69,'value',(_0x1105ba,_0xf2be09,_0x5b1dba)=>!!_0x5b1dba||_0x1105ba&&!_0xf2be09),_0x532b69['on']('submit',(_0x4186d8,_0x58d352)=>{this['fire']('addComment',_0x58d352),_0x532b69['editor']['setData']('');}),_0x532b69['on']('cancel',()=>this['focus']()),_0x532b69['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5a4b5f;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x35c28b,_0x1fc9d5,_0x159c8e,_0x55d813){super(_0x35c28b,_0x1fc9d5,_0x159c8e,_0x55d813),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x174119=>_0x174119&&_0x174119[0x0]?_0x174119[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1e35a5,_0xb43578)=>{let _0x5888a9='';for(const _0x545f92 of _0x1e35a5)_0x5888a9+='<p>'+ds(_0x545f92['content'],_0x545f92['color'])+'</p>';return _0xb43578?_0x5888a9:_0x5521ea(_0x5888a9,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x35c28b,'Accept\x20suggestion'),_0x161f69['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x35c28b,'Discard\x20suggestion'),_0x161f69['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x307376(_0x35c28b,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x222103=this['bindTemplate'],_0x23da07=[{'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':_0x222103['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x222103['to']('authoredAt',_0x1bf2b5=>this['_config']['formatDateTime'](_0x1bf2b5))}]}]},{'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']&&_0x23da07['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x47ab7d={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x222103['if']('isActive','ck-suggestion-wrapper--active'),_0x222103['to']('type',_0x14c31a=>'ck-suggestion-'+_0x14c31a),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':_0x23da07}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x47ab7d['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)),_0x47ab7d;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x28f4ce,_0x1f5537,_0x2e2a2c)=>{this['_descriptionElement']['innerHTML']=_0x2e2a2c;});}['_createButton'](_0x509392,_0x229d97,_0x4e3aa8,_0x423581,_0x27bfb3){const _0x5a9051=new _0x16fa56(this['locale']);return _0x5a9051['set']({'label':_0x509392,'icon':_0x229d97,'tooltip':!0x0,'tooltipPosition':_0x27bfb3}),_0x5a9051['extendTemplate']({'attributes':{'class':_0x4e3aa8}}),_0x5a9051['on']('execute',()=>{this['fire'](_0x423581,this['_model']['id']);}),_0x5a9051;}['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(_0x3dabc7,_0x5bc3fd){let _0x5193d8='';return _0x5193d8+=_0x3dabc7['split']('*')['map']((_0x47854f,_0x36d305)=>_0x36d305%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x47854f)+'</span>':us(_0x47854f))['join'](''),_0x5bc3fd&&(_0x5193d8+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5bc3fd['value']+'\x22\x20title=\x22'+_0x5bc3fd['title']+'\x22></span>'),_0x5193d8;}function us(_0x82606c){const _0x3bae79=document['createElement']('span');return _0x3bae79['innerText']=_0x82606c,_0x3bae79['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 _0x3cf114{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x188410,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x18c9f3){super(_0x18c9f3),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3b309a=this['editor']['config'];_0x3b309a['define']('trackChanges.SuggestionThreadView',ne),_0x3b309a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3b309a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4123a9,_0x4da85f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x63a30f,_0x186408]of this['_handleControllerBuffer']){const _0xcf6c71=this['_suggestionToController']['has'](_0x63a30f);_0xcf6c71||_0x186408?_0xcf6c71&&_0x186408&&this['_destroyController'](_0x63a30f):this['_initializeController'](_0x63a30f);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4123a9,_0x4da85f);}['init'](){const _0x1545ee=this['editor'],_0x462e90=_0x1545ee['plugins']['get']('TrackChangesEditing'),_0x2c0884=_0x1545ee['plugins']['get']('Annotations'),_0x4f40d8=_0x1545ee['plugins']['get']('EditorAnnotations'),_0x29b10c=_0x1545ee['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4f40d8['addSourceCollector'](()=>{const _0xc09fe5=[];for(const [_0x1da47e,_0x1c9b22]of Array['from'](this['_suggestionToController'])){const _0x1c1b8a=_0x1da47e['getAllAdjacentSuggestions'](),_0x1e6d14=[];for(const _0x22b01d of _0x1c1b8a){if(!_0x22b01d['isInContent'])continue;if(_0x22b01d['isMultiRange']){_0x1e6d14['push'](..._0x22b01d['getRanges']());continue;}const _0x955249=_0x22b01d['getFirstRange']();if(_0x1e6d14['length']>0x0){const _0x44931e=_0x1e6d14[0x0]['getJoined'](_0x955249);if(_0x44931e){_0x1e6d14[0x0]=_0x44931e;continue;}}_0x1e6d14['push'](_0x955249);}_0xc09fe5['push']([_0x1c9b22['view'],_0x1e6d14]);}return _0xc09fe5;}),this['listenTo'](_0x462e90,'suggestionLoaded',(_0x1e339e,_0x21bc3f)=>{this['listenTo'](_0x21bc3f,'change:previous',(_0x57cfab,_0x1291d3,_0x50013e,_0xad7d50)=>{_0x21bc3f['isInContent']&&(null==_0x50013e?(this['_updateController'](_0xad7d50['head']),this['_handleSuggestionControllerDelayed'](_0x21bc3f,!0x1)):(this['_updateController'](_0x50013e['head']),null==_0xad7d50&&this['_handleSuggestionControllerDelayed'](_0x21bc3f,!0x0)));}),null!==_0x21bc3f['previous']?this['_updateController'](_0x21bc3f['head']):this['_handleSuggestionControllerDelayed'](_0x21bc3f,!0x1);}),this['listenTo'](_0x462e90,'suggestionUnloaded',(_0x5912c0,_0x46ce0f,_0x2a15c5)=>{this['stopListening'](_0x46ce0f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x46ce0f),this['_suggestionToController']['has'](_0x46ce0f)&&this['_destroyController'](_0x46ce0f),_0x2a15c5&&this['_updateController'](_0x2a15c5['head']);}),this['listenTo'](_0x462e90,'suggestionChanged',(_0x540ac7,_0x193369)=>{this['_updateController'](_0x193369);}),this['listenTo'](_0x2c0884,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x29b10c,'addComment',(_0x4c0601,{threadId:_0x485066,isFromAdapter:_0x1b85b3})=>{if(_0x1b85b3||!_0x462e90['hasSuggestion'](_0x485066))return;const _0x40a35a=_0x462e90['getSuggestion'](_0x485066);this['_suggestionToController']['get'](_0x40a35a)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x10c8b6=this['editor']['plugins']['get']('Annotations'),_0x1d1d89=this['editor']['plugins']['get']('TrackChangesEditing'),_0x302d15=Array['from'](_0x10c8b6['activeAnnotations'],_0x51ec1c=>_0x51ec1c['innerView'])['filter'](_0x34aa3=>this['_viewToController']['has'](_0x34aa3)),_0x550535=[];for(const _0x45be34 of _0x302d15){const _0x1c5f53=this['_viewToController']['get'](_0x45be34)['model']['getAllAdjacentSuggestions']();_0x550535['push'](..._0x1c5f53['reduce']((_0x13e4bb,_0x24ed99)=>[..._0x13e4bb,..._0x24ed99['getMarkerNames']()],[]));}_0x1d1d89['activeMarkers']=_0x550535;}['_addUIComponentsToFactory'](){const _0x20946a=this['editor'],_0x129d3d=_0x20946a['locale'],_0x305742=o(_0x129d3d,'Track\x20changes'),_0x4d5538=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x305742,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x129d3d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x129d3d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x129d3d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x129d3d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x258372 of _0x4d5538)if(ae(_0x258372)){const _0x40223b=_0x20946a['commands']['get'](_0x258372['model']['commandName']);_0x258372['model']['bind']('isOn','isEnabled')['to'](_0x40223b,'value','isEnabled');}_0x20946a['ui']['componentFactory']['add']('trackChanges',_0x3cc4c7=>this['_createToolbarButton'](_0x3cc4c7,_0x4d5538,_0x305742)),_0x20946a['ui']['componentFactory']['add']('menuBar:trackChanges',_0x47157d=>this['_createMenuBarMenu'](_0x47157d,_0x4d5538,_0x305742));}['_createToolbarButton'](_0x1e639a,_0x3a6ab3,_0x3709ba){const _0x346f13=zt(_0x1e639a,Zt),_0x4aa526=this['editor']['commands']['get']('trackChanges');_0x346f13['buttonView']['set']({'tooltip':_0x3709ba,'label':_0x3709ba,'icon':ie}),_0x346f13['buttonView']['bind']('isOn')['to'](_0x4aa526,'value'),_0x346f13['buttonView']['on']('execute',()=>{_0x4aa526['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x346f13,_0x3a6ab3,{'role':'menu'});const _0x58ebe5=[];for(const _0x552388 of _0x3a6ab3)ae(_0x552388)&&_0x58ebe5['push'](this['editor']['commands']['get'](_0x552388['model']['commandName']));const _0x398409=_0x346f13['buttonView'];return _0x398409['actionView']['unbind']('isEnabled'),_0x398409['arrowView']['unbind']('isEnabled'),_0x398409['actionView']['bind']('isEnabled')['to'](_0x4aa526,'isEnabled'),_0x398409['arrowView']['bind']('isEnabled')['toMany'](_0x58ebe5,'isEnabled',(..._0x39840c)=>_0x39840c['some'](_0x5a063e=>_0x5a063e)),_0x346f13['on']('execute',_0x153505=>{this['editor']['execute'](_0x153505['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x346f13;}['_createMenuBarMenu'](_0x3d8671,_0x22c4bf,_0x4611f5){const _0x410dde=new Kt(_0x3d8671),_0x3ab142=this['editor']['commands']['get']('trackChanges');_0x410dde['buttonView']['set']({'label':_0x4611f5,'icon':ie});const _0x3cdd31=new Qt(_0x3d8671);for(const _0xba442a of _0x22c4bf){if('separator'==_0xba442a['type']){_0x3cdd31['items']['add'](new Jt(_0x3d8671));continue;}const _0x46d43d=new Xt(_0x3d8671,_0x410dde),_0x3dbb07=new Yt(_0x3d8671),_0x16606c=_0xba442a['model'];_0x3dbb07['bind'](...Object['keys'](_0x16606c))['to'](_0x16606c),_0x3dbb07['delegate']('execute')['to'](_0x410dde),_0x3dbb07['on']('execute',()=>{this['editor']['execute'](_0x16606c['commandName']),this['editor']['editing']['view']['focus']();}),_0x46d43d['children']['add'](_0x3dbb07),_0x3cdd31['items']['add'](_0x46d43d);}return _0x410dde['bind']('isEnabled')['to'](_0x3ab142,'isEnabled'),_0x410dde['panelView']['children']['add'](_0x3cdd31),_0x410dde;}['_initializeController'](_0x137915){const _0x216cf6=this['editor'],_0x214ad7=_0x216cf6['config'],_0x17fb38=_0x216cf6['plugins']['get']('Annotations'),_0x3702f3=_0x216cf6['plugins']['get']('CommentsRepository'),_0x5a7f9b=_0x216cf6['plugins']['get']('EditorAnnotations'),_0x298b89=_0x216cf6['plugins']['get'](_0x188410)['me'],_0x686429=_0x214ad7['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x39b179,CommentThreadInputView:_0x44ef73}=_0x216cf6['plugins']['get']('CommentsUI');let _0x30291e,_0x32a739;this['_annotationViews']['has'](_0x137915['id'])?(_0x32a739=this['_annotationViews']['get'](_0x137915['id']),_0x30291e=_0x32a739['mainView']):(_0x30291e=new _0x686429(_0x216cf6['locale'],_0x137915,_0x298b89,{'disableComments':this['_disableComments'],'editorConfig':_0x214ad7['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x214ad7['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x214ad7['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x214ad7['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1b6479(_0x214ad7['get']('locale')),'CommentView':_0x214ad7['get']('comments')['CommentView'],'CommentsListView':_0x39b179,'CommentThreadInputView':_0x44ef73}),_0x30291e['acceptButton']['on']('execute',()=>{_0x216cf6['editing']['view']['focus']();}),_0x30291e['discardButton']['on']('execute',()=>{_0x216cf6['editing']['view']['focus']();}),_0x32a739=_0x17fb38['createAnnotationView'](this['editor']['locale'],_0x30291e),_0x32a739['bind']('isDirty')['to'](_0x30291e,'isDirty'),_0x32a739['bind']('length')['to'](_0x30291e),_0x32a739['bind']('type')['to'](_0x30291e,'type',_0x50ae69=>'suggestion-'+_0x50ae69),this['_annotationViews']['set'](_0x137915['id'],_0x32a739));const _0x3a380c=_0x3702f3['createCommentThreadController'](_0x137915['commentThread'],_0x30291e),_0xd6fb6d=new oe(_0x216cf6,_0x137915,_0x30291e,_0x3a380c),_0x308b5e=_0x137915['getAllAdjacentSuggestions']()['filter'](_0x4a5f1a=>_0x4a5f1a['isInContent']);_0x30291e['descriptionParts']=_0x216cf6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x308b5e),this['_suggestionToController']['set'](_0x137915,_0xd6fb6d),this['_viewToController']['set'](_0x30291e,_0xd6fb6d);const _0x4ba508=_0x17fb38['createAnnotation']({'view':_0x32a739,'target':()=>{const _0x2b1b45=[],_0x2ef368=_0x137915['getAllAdjacentSuggestions']()['filter'](_0x1c91f1=>_0x1c91f1['isInContent']);for(const _0x21f013 of _0x2ef368)_0x2b1b45['push'](..._0x21f013['getMarkers']());return _0xd9568a(_0x216cf6['editing'],_0x2b1b45);},'type':()=>'suggestion-'+_0xd6fb6d['view']['type']});_0x3702f3['_bindAnnotationToEditors'](_0x30291e,_0x4ba508),_0x17fb38['add'](_0x4ba508),_0x5a7f9b['registerAnnotation'](_0x4ba508);}['_destroyController'](_0x3c0edd){const _0x54441a=this['editor']['plugins']['get']('CommentsRepository'),_0xd24ea4=this['editor']['plugins']['get']('Annotations'),_0x4cf93a=this['_suggestionToController']['get'](_0x3c0edd),_0xa8e9d6=_0x4cf93a['view'],_0x310d45=_0xd24ea4['getByInnerView'](_0xa8e9d6);_0x54441a['_unbindEditors'](_0xa8e9d6),_0x310d45&&_0xd24ea4['remove'](_0x310d45),this['_suggestionToController']['delete'](_0x3c0edd),this['_viewToController']['delete'](_0xa8e9d6),_0x4cf93a['destroy']();}['_updateController'](_0x1b66f6){if(!_0x1b66f6['isInContent']||!this['_suggestionToController']['has'](_0x1b66f6))return;const _0x5205f3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3444a5=this['_suggestionToController']['get'](_0x1b66f6),_0x81d4fe=_0x1b66f6['getAllAdjacentSuggestions']();_0x3444a5['view']['descriptionParts']=_0x5205f3['descriptionFactory']['getDescriptions'](_0x81d4fe);}['destroy'](){for(const _0x4a19c8 of this['_suggestionToController']['keys']())this['_destroyController'](_0x4a19c8);for(const _0x1f15a0 of this['_annotationViews']['values']())_0x1f15a0['mainView']['destroy']();super['destroy']();}}function ae(_0x136cd8){return'model'in _0x136cd8;}class k extends _0x3cf114{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x3e833e){this['editor']['plugins']['get'](p)['adapter']=_0x3e833e;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x146cca){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x146cca);}['getSuggestions']({skipNotAttached:_0x915a98=!0x1,toJSON:_0x49b58a=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x915a98,'toJSON':_0x49b58a});}['getSuggestion'](_0x222b31){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x222b31);}}const T=['Pagination'];class P extends _0x3cf114{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x3a0962=this['editor'];if(_0x3a0962['config']['define']('trackChangesData.editorCreator',_0x65b0d2=>{const _0x51e7e2=_0x3a0962['model']['document']['getRootNames']()['reduce']((_0x3693ed,_0x162a18)=>(_0x3693ed[_0x162a18]='',_0x3693ed),{});return _0x3a0962['constructor']['create'](_0x51e7e2,_0x65b0d2);}),'function'!=typeof _0x3a0962['config']['get']('trackChangesData')['editorCreator'])throw new _0x9391a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x41073b){return N(this['editor'],!0x0,_0x41073b);}['getDataWithDiscardedSuggestions'](_0xd19371){return N(this['editor'],!0x1,_0xd19371);}}class D extends _0x3cf114{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x142208){super(_0x142208),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(_0x1cb1f1){return void 0x0!==_0x1cb1f1['getRootsAttributes'];}async function N(_0x4ad51a,_0x195cc6,_0x2a9904){const _0x34d342=_0x24751a(_0x4ad51a,T);_0x34d342['plugins']['push'](p,D),_0x34d342['rootsAttributes']=v(_0x4ad51a)?_0x4ad51a['getRootsAttributes']():void 0x0;const _0x125973=document['createDocumentFragment'](),_0x1b5cb2=_0x4ad51a['config']['get']('trackChangesData')['editorCreator'],_0x34af76=await _0x1b5cb2(_0x34d342,()=>function(_0x312922){const _0x22a356=document['createElement']('div');return _0x312922['appendChild'](_0x22a356),_0x22a356;}(_0x125973));!function(_0xdd7cc5,_0xd8d9a3){const _0x20463c=_0xdd7cc5['model']['document']['getRootNames']()['reduce']((_0x3e0e46,_0x4a3b75)=>(_0x3e0e46[_0x4a3b75]=_0xdd7cc5['data']['get']({'rootName':_0x4a3b75}),_0x3e0e46),{}),_0x4d71d8=_0xdd7cc5['plugins']['get']('Users')['users']['map'](_0x219cc5=>({'id':_0x219cc5['id'],'name':_0x219cc5['name']})),_0x3f12c3=_0xdd7cc5['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3d4435=_0xdd7cc5['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4a61f3=_0xd8d9a3['plugins']['get']('Users'),_0x38f976=_0xd8d9a3['plugins']['get']('TrackChangesEditing'),_0x402906=_0xd8d9a3['plugins']['get']('CommentsRepository');for(const _0x29750e of _0x4d71d8)_0x4a61f3['getUser'](_0x29750e['id'])||_0x4a61f3['addUser'](_0x29750e);_0x4a61f3['me']||_0x4a61f3['useAnonymousUser']();for(const _0x272fab of _0x3d4435)_0x402906['addCommentThread'](_0x272fab);for(const _0x1957be of _0x3f12c3)_0x38f976['addSuggestionData'](_0x1957be);_0xd8d9a3['data']['set'](_0x20463c);}(_0x4ad51a,_0x34af76),_0x34af76['execute'](_0x195cc6?'acceptAllSuggestions':'discardAllSuggestions');const _0x3fb710=v(_0x34af76)?_0x34af76['getFullData'](_0x2a9904):_0x34af76['data']['get'](_0x2a9904);return await _0x34af76['destroy'](),_0x3fb710;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x36bcf3,PendingActions as _0x13cfed,icons as _0x4eb76a}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x596a61,ObservableMixin as _0x4adab8,uid as _0x3b3746,insertToPriorityArray as _0x543615,priorities as _0xd2770e,logWarning as _0x899063,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x5b66b8,View as _0x41cb96,ButtonView as _0x4dccfe,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 _0x4d2226,hashObject as _0x1d0dee,surroundingMarkersDetector as _0x2c5dfd,trimHtml as _0x17044,UserView as _0x3a9c83,getDateTimeFormatter as _0x3a4ed1,getAllMarkersDomElementsSorted as _0x4abf7f,sanitizeEditorConfig as _0x3a88d0}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x391070,LiveRange as _0x48ab0a,LivePosition as _0x2d55e6}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3aefd7,toWidget as _0x481485}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1a2900,set as _0x3d3884,isEqual as _0x123701,unset as _0x56a6b7,omit as Bt}from'lodash-es';import{Delete as _0x540f94,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x2ffecf,ShiftEnter as _0x1e35f4}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x2b92bf,_0x48d6e5){super(_0x2b92bf),this['_enabledCommands']=_0x48d6e5,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 _0x2dbde9 of this['editor']['commands']['commands']())_0x2dbde9['affectsData']&&!this['_enabledCommands']['has'](_0x2dbde9)&&_0x2dbde9['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3056bb of this['editor']['commands']['commands']())_0x3056bb['affectsData']&&!this['_enabledCommands']['has'](_0x3056bb)&&_0x3056bb['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x4e4438,_0x3dedaf){super(_0x4e4438),this['_suggestions']=_0x3dedaf,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1a286a){const _0x55b196=this['_suggestions']['get'](_0x1a286a);if(!_0x55b196)throw new _0x596a61('track-changes-accept-suggestion-not-found',this);const _0x2a62f8=_0x55b196['getRanges']();this['editor']['model']['canEditAt'](_0x2a62f8)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x55b196);}}class B extends ts{['_suggestions'];constructor(_0xd55d0a,_0xd600a9){super(_0xd55d0a),this['_suggestions']=_0xd600a9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x523dd6){const _0x3008da=this['_suggestions']['get'](_0x523dd6);if(!_0x3008da)throw new _0x596a61('track-changes-discard-suggestion-not-found',this);const _0x2a86b9=_0x3008da['getRanges']();this['editor']['model']['canEditAt'](_0x2a86b9)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3008da);}}function ss(_0x4a2bc8){return _0x4a2bc8['sort']((_0x9b829e,_0x1e9491)=>'deletion'==_0x9b829e['type']&&'deletion'!=_0x1e9491['type']?-0x1:'deletion'!=_0x9b829e['type']&&'deletion'==_0x1e9491['type']?0x1:0x0);}function to(_0x34863c,_0x3bbf58){let _0x17472b,_0x385c0e=0x0;const _0x152379=[],_0x161d74=_0x3bbf58['schema'];for(;_0x385c0e<_0x34863c['length'];){const _0x17f2b0=_0x34863c[_0x385c0e],_0x4b4bc9=_0x34863c[_0x385c0e+0x1];_0x17472b||(_0x17472b=_0x3bbf58['createPositionBefore'](_0x17f2b0)),co(_0x3bbf58,_0x17f2b0,_0x4b4bc9)||(_0x152379['push'](_0x3bbf58['createRange'](_0x17472b,_0x161d74['isObject'](_0x17f2b0)?_0x3bbf58['createPositionAfter'](_0x17f2b0):_0x3bbf58['createPositionAt'](_0x17f2b0,'end'))),_0x17472b=null),_0x385c0e++;}return _0x152379;}function co(_0x2abe26,_0x4a5911,_0x135e95){if(!_0x135e95)return!0x1;const _0x1e84b5=_0x2abe26['createPositionAfter'](_0x4a5911),_0x54dca4=_0x2abe26['createPositionBefore'](_0x135e95);return _0x1e84b5['isTouching'](_0x54dca4);}function rs(_0x7f60cf,_0x4c940f,_0x471e51){for(;_0x471e51['length'];){const _0x479e9f=_0x471e51['splice'](0x0,0x64);_0x7f60cf['change'](()=>{for(const _0x5afbca of _0x479e9f)_0x5afbca['isInContent']&&_0x4c940f['execute'](_0x5afbca['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0xe2e4d,_0xfbc8f5,_0x29d361){super(_0xe2e4d),this['_command']=_0xfbc8f5,this['_suggestions']=_0x29d361,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5f3482=Array['from'](this['_suggestions']['values']())['some'](_0x52e18f=>_0x52e18f['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5f3482;}['execute'](){const _0x5a5ef3=ss(Array['from'](this['_suggestions']['values']()));for(const _0x2dec9f of _0x5a5ef3){const _0x223ced=_0x2dec9f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x223ced))return;}rs(this['editor']['model'],this['_command'],_0x5a5ef3);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5599a7,_0x25d9e6,_0x23f700){super(_0x5599a7),this['_command']=_0x25d9e6,this['_suggestions']=_0x23f700,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4b8c3d=this['editor']['model']['document']['selection'],_0xd42290=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x18402d,_0x34b289){const _0x5dea74=Array['from'](_0x18402d['getRanges']()),_0x51e5ed=new Set();for(const _0xd1839c of _0x34b289)if(_0xd1839c['isInContent']){for(const _0x4e0dec of _0x5dea74)for(const _0x213d9c of _0xd1839c['getRanges']())(_0x4e0dec['isIntersecting'](_0x213d9c)||_0x18402d['isCollapsed']&&!_0xd1839c['isMultiRange']&&_0xd1839c['next']&&_0x213d9c['end']['isTouching'](_0x4e0dec['start']))&&_0x51e5ed['add'](_0xd1839c);}return _0x51e5ed;}(_0x4b8c3d,_0xd42290),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x38cfec=ss(Array['from'](this['_selectedSuggestions']));for(const _0x1414eb of _0x38cfec){const _0x501fae=_0x1414eb['getRanges']();if(!this['editor']['model']['canEditAt'](_0x501fae))return;}rs(this['editor']['model'],this['_command'],_0x38cfec);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x4adab8(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x29409f,_0x4e7837){super(),this['id']=_0x4e7837['id'],this['type']=_0x4e7837['type'],this['subType']=_0x4e7837['subType']||null,this['author']=_0x4e7837['author'],this['creator']=_0x4e7837['creator']||_0x4e7837['author'],this['isExternal']=Boolean(_0x4e7837['attributes']&&_0x4e7837['attributes']['@external']),this['data']=null,this['_model']=_0x29409f,this['_onAccept']=_0x4e7837['onAccept'],this['_onDiscard']=_0x4e7837['onDiscard'],this['_onAttributesChange']=_0x4e7837['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4e7837['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 _0x431c46=this;for(;_0x431c46['previous'];)_0x431c46=_0x431c46['previous'];return _0x431c46;}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'](_0x1428f3){this['_markerNames']['add'](_0x1428f3);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1053f2=>this['_model']['markers']['get'](_0x1053f2))['filter'](_0x2d377f=>_0x2d377f);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x248d31=>{for(const _0xfd0f83 of this['getMarkers']())_0x248d31['removeMarker'](_0xfd0f83);}),this['_markerNames']['clear']();}['removeMarker'](_0x184eeb){this['_model']['change'](_0x116db2=>{_0x116db2['removeMarker'](_0x184eeb);}),this['_markerNames']['delete'](_0x184eeb);}['addRange'](_0x1dfbfd){const _0x2a1e41='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x2a1e41),this['_model']['change'](_0x4167a3=>{_0x4167a3['addMarker'](_0x2a1e41,{'range':_0x1dfbfd,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x43fba8){for(const _0xf19846 of this['getRanges']())if(_0xf19846['isIntersecting'](_0x43fba8))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5bbf70=>_0x5bbf70['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4d1771,_0x547f4f)=>[..._0x4d1771,..._0x547f4f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xcb8ce0=this['getRanges']();if(0x1!=_0xcb8ce0['length'])return null;const _0x1b7185=_0xcb8ce0[0x0],_0x38c749=_0x1b7185['start']['nodeAfter'],_0x105893=_0x1b7185['end']['nodeBefore'];return _0x38c749 instanceof _0x391070?_0x38c749!=_0x105893?null:_0x38c749: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 _0x1d8398=[];let _0x3fb9b1=this['head'];for(;_0x3fb9b1;)_0x1d8398['push'](_0x3fb9b1),_0x3fb9b1=_0x3fb9b1['next'];return _0x1d8398;}['setAttribute'](_0x1198da,_0x21e4ed){const _0x15cb03=_0x1a2900(this['attributes']);_0x3d3884(_0x15cb03,_0x1198da,_0x21e4ed),_0x123701(_0x15cb03,this['attributes'])||(this['attributes']=_0x15cb03,this['_onAttributesChange'](_0x15cb03));}['removeAttribute'](_0x232f25){const _0xb1f32c=_0x1a2900(this['attributes']);_0x56a6b7(_0xb1f32c,_0x232f25),_0x123701(_0xb1f32c,this['attributes'])||(this['attributes']=_0xb1f32c,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 _0x3b3746()['substr'](0x1,0x5);}}function o(_0x5bb079,_0x3866af,_0x158d73){const t=_0x5bb079['t'];switch(_0x3866af){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',_0x158d73);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x158d73);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x158d73);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x158d73);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x158d73);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',_0x158d73);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x158d73);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',_0x158d73);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x158d73);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x158d73);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x158d73);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x158d73);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x158d73);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x158d73);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x158d73);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x158d73);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x158d73);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x158d73);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x158d73);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x158d73);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x158d73);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x158d73);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x158d73);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'},_0x158d73);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x158d73);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x158d73);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x158d73);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x158d73);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x158d73);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'},_0x158d73);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x158d73);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x158d73);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x158d73);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x158d73);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'},_0x158d73);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x158d73);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'},_0x158d73);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'},_0x158d73);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x158d73);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'},_0x158d73);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x158d73);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'},_0x158d73);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x158d73);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x158d73);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'},_0x158d73);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'},_0x158d73);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 _0x3866af;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xfa18,_0x5553e1){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xfa18,this['_locale']=_0x5553e1;}['getDescriptions'](_0x34ef19){const _0x48f9e1=[],_0x2e9be6=new Set(),_0x2678d8=new Set();for(let _0x1d0f9c=0x0;_0x1d0f9c<_0x34ef19['length'];_0x1d0f9c++){const _0x134667=_0x34ef19[_0x1d0f9c];if(!_0x134667['isInContent'])continue;const _0x2c9b84=this['_handleCustomCallbackDescription'](_0x134667);if(_0x2c9b84){if(null!=_0x134667['subType']){if(_0x2e9be6['has'](_0x134667['subType']))continue;_0x2e9be6['add'](_0x134667['subType']);}_0x48f9e1['push'](_0x2c9b84);}else{if('attribute'!=_0x134667['type'])'insertion'!=_0x134667['type']&&'deletion'!=_0x134667['type']||this['_handleInsertRemoveSuggestionDescription'](_0x48f9e1,_0x134667,_0x34ef19[_0x1d0f9c+0x1]);else{const _0x318678=_0x134667['data']['key'];if(_0x2678d8['has'](_0x318678))continue;_0x2678d8['add'](_0x134667['data']['key']),_0x318678==m?this['_handleRenameSuggestionDescription'](_0x48f9e1,_0x134667):this['_handleAttributeSuggestionDescription'](_0x48f9e1,_0x134667);}}}return this['_resolveDescriptionItems'](_0x48f9e1);}['registerDescriptionCallback'](_0x4269a3){this['_customCallbacks']['push'](_0x4269a3);}['registerElementLabel'](_0x5b7a41,_0x535de3,_0x511a9d=_0xd2770e['normal']){'function'==typeof _0x5b7a41?_0x543615(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5b7a41,'label':_0x535de3,'priority':_0x511a9d}):this['_itemLabels']['set'](_0x5b7a41,_0x535de3);}['registerAttributeLabel'](_0x46dfd6,_0x2598fc){this['_attributeLabels']['set'](_0x46dfd6,_0x2598fc);}['getItemLabel'](_0x3a036e,_0x5c737d=0x1){let _0x354713;for(const _0x1d3d37 of this['_itemLabelsCallbacks'])if(_0x1d3d37['matchingCallback'](_0x3a036e)){_0x354713=_0x1d3d37['label'];break;}return _0x354713||(_0x354713=this['_itemLabels']['get'](_0x3a036e['name'])),_0x354713?_0x354713(_0x5c737d):0x1!==_0x5c737d?_0x5c737d+'\x20'+_0x3a036e['name']+'s':''+_0x3a036e['name'];}['_addDescriptionItems'](_0x2960ee,_0x58fb4a){const _0x59e3f7=_0x58fb4a['getFirstRange']()['getWalker'](),_0x2371dd='insertion'==_0x58fb4a['type']?'add':'remove';for(const _0x14c5e7 of _0x59e3f7){const _0x3f9b60=_0x14c5e7['item'],_0x188783=_0x2960ee[_0x2960ee['length']-0x1];if(_0x3f9b60['is']('$textProxy'))_0x188783&&_0x188783['type']['indexOf']('Container')>-0x1&&_0x2960ee['pop'](),_0x188783&&'text'==_0x188783['type']?_0x188783[_0x2371dd]+=_0x3f9b60['data']:_0x2960ee['push']({'type':'text','add':'add'==_0x2371dd?_0x3f9b60['data']:'','remove':'remove'==_0x2371dd?_0x3f9b60['data']:''});else{if(this['_schema']['isObject'](_0x3f9b60)){const _0x4db0f8=_0x3f9b60;if(_0x188783&&_0x188783['type']['indexOf']('Container')>-0x1&&_0x2960ee['pop'](),'elementEnd'==_0x14c5e7['type'])continue;_0x188783&&_0x188783['type']==_0x2371dd+'Object'&&_0x188783['element']['name']==_0x4db0f8['name']?_0x188783['quantity']++:_0x2960ee['push']({'type':_0x2371dd+'Object','element':_0x4db0f8,'quantity':0x1}),_0x59e3f7['skip'](_0x2a4bd2=>!('elementEnd'==_0x2a4bd2['type']&&_0x2a4bd2['item']==_0x3f9b60));}else{if(this['_schema']['checkChild'](_0x3f9b60,'$text')||_0x3f9b60['is']('element','softBreak')){const _0x1353f2=_0x3f9b60;if('add'==_0x2371dd&&'elementStart'==_0x14c5e7['type']||'remove'==_0x2371dd&&'elementEnd'==_0x14c5e7['type'])continue;if(_0x188783&&-0x1==_0x188783['type']['indexOf']('Container')){'text'==_0x188783['type']&&(_0x188783[_0x2371dd]+='\x0a');continue;}let _0x5ebaf5;if(_0x5ebaf5='add'==_0x2371dd?_0x1353f2['nextSibling']&&!this['_schema']['isObject'](_0x1353f2['nextSibling'])?_0x1353f2['nextSibling']:null:_0x1353f2['previousSibling']&&!this['_schema']['isObject'](_0x1353f2['previousSibling'])?_0x1353f2['previousSibling']:null,_0x1353f2['isEmpty']||_0x5ebaf5&&_0x5ebaf5['isEmpty']){const _0x18c96e=_0x5ebaf5&&_0x5ebaf5['isEmpty']?_0x5ebaf5:_0x1353f2;_0x188783&&_0x188783['type']==_0x2371dd+'EmptyContainer'&&_0x188783['element']['name']==_0x18c96e['name']?_0x188783['quantity']++:_0x2960ee['push']({'type':_0x2371dd+'EmptyContainer','element':_0x18c96e,'quantity':0x1});}else _0x2960ee['push']({'type':_0x2371dd+'Container','element':_0x1353f2});}}}}}['_resolveDescriptionItems'](_0x22ed76){const _0x220117=this['_locale'],_0x441901=[],_0x3b02f7=[],_0x21f74f=[];for(const _0x2643ab of _0x22ed76)switch(_0x2643ab['type']){case'text':if(_0x2643ab['add']=_0x2643ab['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2643ab['remove']=_0x2643ab['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2643ab['add']&&''!=_0x2643ab['remove']){_0x441901['push']({'type':'replace','content':o(_0x220117,'REPLACE_TEXT',['\x22'+_0x2643ab['remove']+'\x22','\x22'+_0x2643ab['add']+'\x22'])});continue;}if(null!=_0x2643ab['add']['match'](/^ +$/)){_0x441901['push']({'type':'insertion','content':o(_0x220117,'*Insert:*\x20%0',o(_0x220117,'ELEMENT_SPACE',_0x2643ab['add']['length']))});continue;}if(null!=_0x2643ab['remove']['match'](/^ +$/)){_0x441901['push']({'type':'deletion','content':o(_0x220117,'*Remove:*\x20%0',o(_0x220117,'ELEMENT_SPACE',_0x2643ab['remove']['length']))});continue;}if(''!=_0x2643ab['add']){_0x441901['push']({'type':'insertion','content':o(_0x220117,'*Insert:*\x20%0','\x22'+_0x2643ab['add']+'\x22')});continue;}_0x441901['push']({'type':'deletion','content':o(_0x220117,'*Remove:*\x20%0','\x22'+_0x2643ab['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x441901['push']({'type':'insertion','content':o(_0x220117,'*Insert:*\x20%0',this['getItemLabel'](_0x2643ab['element'],_0x2643ab['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x441901['push']({'type':'deletion','content':o(_0x220117,'*Remove:*\x20%0',this['getItemLabel'](_0x2643ab['element'],_0x2643ab['quantity']))});continue;case'addContainer':_0x441901['push']({'type':'insertion','content':o(_0x220117,'*Split:*\x20%0',this['getItemLabel'](_0x2643ab['element'],_0x2643ab['quantity']))});continue;case'removeContainer':_0x441901['push']({'type':'deletion','content':o(_0x220117,'*Merge:*\x20%0',this['getItemLabel'](_0x2643ab['element'],_0x2643ab['quantity']))});continue;case'addFormat':_0x3b02f7['push'](_0x2643ab['key']);continue;case'removeFormat':_0x21f74f['push'](_0x2643ab['key']);continue;default:_0x441901['push'](_0x2643ab);}if(_0x3b02f7['length']){const _0xb619ed=_0x3b02f7['map'](_0x2e1367=>this['_attributeLabels']['has'](_0x2e1367)?this['_attributeLabels']['get'](_0x2e1367):_0x2e1367)['join'](',\x20');_0x441901['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xb619ed)});}if(_0x21f74f['length']){const _0x2f714a=_0x21f74f['map'](_0x5d76bf=>this['_attributeLabels']['has'](_0x5d76bf)?this['_attributeLabels']['get'](_0x5d76bf):_0x5d76bf)['join'](',\x20');_0x441901['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x2f714a)});}return _0x441901;}['_handleCustomCallbackDescription'](_0x483750){for(const _0x1c2360 of this['_customCallbacks']){const _0x3a408c=_0x1c2360(_0x483750);if(_0x3a408c&&'type'in _0x3a408c)return _0x3a408c;}}['_handleAttributeSuggestionDescription'](_0x1110d5,_0x2dfedc){const _0x3d5f79=_0x2dfedc['data'],_0x58100a=void 0x0===_0x3d5f79['newValue']?'removeFormat':'addFormat';_0x1110d5['push']({'type':_0x58100a,'key':_0x3d5f79['key']});}['_handleRenameSuggestionDescription'](_0x1d3fc4,_0x580699){_0x1d3fc4['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x580699['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4606a7,_0x3b788a,_0x2ca449){if(this['_addDescriptionItems'](_0x4606a7,_0x3b788a),_0x2ca449&&_0x2ca449['getFirstRange']()&&!_0x3b788a['getFirstRange']()['end']['isEqual'](_0x2ca449['getFirstRange']()['start'])){const _0x10c5f6=_0x4606a7[_0x4606a7['length']-0x1],_0x51cf01='insertion'==_0x3b788a['type']?'add':'remove';_0x10c5f6&&'text'==_0x10c5f6['type']&&(_0x10c5f6[_0x51cf01]+='\x0a');}}}class E extends _0x36bcf3{['afterInit'](){const _0x3d6bba=this['editor'],_0x5b2546=_0x3d6bba['plugins']['get']('TrackChangesEditing');_0x3d6bba['commands']['get']('showAIAssistant')&&_0x5b2546['enableCommand']('showAIAssistant');}}class O extends _0x36bcf3{['afterInit'](){const _0x448b70=this['editor'],_0x1cdf10=_0x448b70['locale'];if(!_0x448b70['plugins']['has']('AlignmentEditing'))return;const _0x10d044=_0x448b70['plugins']['get']('TrackChangesEditing');_0x10d044['enableDefaultAttributesIntegration']('alignment'),_0x10d044['registerBlockAttribute']('alignment'),_0x10d044['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1cdf10,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x575ec8=this['editor'],_0x246b17=_0x575ec8['locale'];_0x575ec8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38db8b=>{if('formatBlock'!=_0x38db8b['type'])return;const {data:_0x2e658a}=_0x38db8b;if(_0x2e658a&&'alignment'==_0x2e658a['commandName']){const _0x4377c0=_0x2e658a['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x246b17,'*Format:*\x20%0',function(_0x833bea){switch(_0x833bea){case'left':return o(_0x246b17,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x246b17,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x246b17,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x246b17,'FORMAT_JUSTIFY_TEXT');}}(_0x4377c0))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x36bcf3{['afterInit'](){const _0x2fdc6f=this['editor'],_0x21b854=_0x2fdc6f['plugins']['get']('TrackChangesEditing'),_0x3d73ef=_0x2fdc6f['locale'];for(const _0x1633d1 of ti){if(!_0x2fdc6f['plugins']['has'](_0x1633d1))continue;const _0x1e6c7b=_0x1633d1['slice'](0x0,-0x7)['toLowerCase'](),_0x3225dd='FORMAT_'+_0x1e6c7b['toUpperCase']();_0x21b854['enableDefaultAttributesIntegration'](_0x1e6c7b),_0x21b854['registerInlineAttribute'](_0x1e6c7b),_0x21b854['descriptionFactory']['registerAttributeLabel'](_0x1e6c7b,o(_0x3d73ef,_0x3225dd));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x169e68=this['editor'],_0x59718c=_0x169e68['locale'],_0x247df7=_0x169e68['plugins']['get']('TrackChangesEditing');function _0x45450b(_0x29ee26,_0x3a0b2a){_0x247df7['descriptionFactory']['registerDescriptionCallback'](_0x5aedc8=>{if('formatInline'!=_0x5aedc8['type'])return;const {data:_0x41016f}=_0x5aedc8;return _0x41016f&&_0x41016f['commandName']===_0x29ee26?_0x41016f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x59718c,'*Format:*\x20%0',_0x3a0b2a)}:{'type':'format','content':o(_0x59718c,'*Remove\x20format:*\x20%0',_0x3a0b2a)}:void 0x0;});}_0x45450b('bold',o(_0x59718c,'FORMAT_BOLD')),_0x45450b('italic',o(_0x59718c,'FORMAT_ITALIC')),_0x45450b('underline',o(_0x59718c,'FORMAT_UNDERLINE')),_0x45450b('code',o(_0x59718c,'FORMAT_CODE')),_0x45450b('strikethrough',o(_0x59718c,'FORMAT_STRIKETHROUGH')),_0x45450b('subscript',o(_0x59718c,'FORMAT_SUBSCRIPT')),_0x45450b('superscript',o(_0x59718c,'FORMAT_SUPERSCRIPT'));}}class U extends _0x36bcf3{['afterInit'](){const _0x1f9218=this['editor'],_0x5d85fe=_0x1f9218['locale'];if(!_0x1f9218['plugins']['has']('BlockQuoteEditing'))return;const _0x21c18d=_0x1f9218['plugins']['get']('TrackChangesEditing'),_0x6f690f=this['editor']['commands']['get']('blockQuote');_0x21c18d['enableCommand']('blockQuote',(_0x2055d2,_0x22f8c0={})=>{const _0x265ecc=this['editor']['model']['document']['selection'],_0x542b41=_0x22f8c0&&void 0x0!==_0x22f8c0['forceValue']?_0x22f8c0['forceValue']:!_0x6f690f['value'];let _0x1171c1=[];if(_0x542b41){const _0x96da49=Array['from'](_0x265ecc['getSelectedBlocks']())['filter'](_0x22746a=>oo(_0x22746a)||function(_0x57ab18,_0x4443e6){const _0x59cdb4=_0x4443e6['checkChild'](_0x57ab18['parent'],'blockQuote'),_0x1c0d5e=_0x4443e6['checkChild'](['$root','blockQuote'],_0x57ab18);return _0x59cdb4&&_0x1c0d5e;}(_0x22746a,this['editor']['model']['schema']));_0x1171c1=to(_0x96da49,_0x1f9218['model']);}else{const _0x2aa343=Array['from'](_0x265ecc['getSelectedBlocks']())['filter'](_0x2bf30a=>oo(_0x2bf30a));_0x1171c1=to(_0x2aa343,_0x1f9218['model']);}_0x1f9218['model']['change'](()=>{for(const _0xb5a9c3 of _0x1171c1)_0x21c18d['markBlockFormat'](_0xb5a9c3,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x542b41}]});});}),_0x21c18d['descriptionFactory']['registerDescriptionCallback'](_0x4b52c7=>{const {data:_0x10154d}=_0x4b52c7;if(_0x10154d&&'blockQuote'==_0x10154d['commandName']){const _0x47f154=o(_0x5d85fe,'ELEMENT_BLOCK_QUOTE');return _0x10154d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5d85fe,'*Set\x20format:*\x20%0',_0x47f154)}:{'type':'format','content':o(_0x5d85fe,'*Remove\x20format:*\x20%0',_0x47f154)};}});}}function oo(_0x2086e0){return'blockQuote'==_0x2086e0['parent']['name'];}class G extends _0x36bcf3{['afterInit'](){const _0x38410d=this['editor'];_0x38410d['plugins']['has']('CaseChange')&&(_0x38410d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x38410d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x38410d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x36bcf3{['afterInit'](){const _0x110605=this['editor'];_0x110605['commands']['get']('ckbox')&&_0x110605['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x36bcf3{['afterInit'](){const _0x8415be=this['editor'];if(!_0x8415be['plugins']['has']('CodeBlock'))return;const _0x4fd366=_0x8415be['plugins']['get']('TrackChangesEditing'),_0x27cfac=_0x8415be['locale'],_0x51a634=_0x8415be['config']['get']('codeBlock')['languages'],_0x5cee54=_0x8415be['commands']['get']('codeBlock');_0x4fd366['enableCommand']('indentCodeBlock'),_0x4fd366['enableCommand']('outdentCodeBlock'),_0x4fd366['enableCommand']('codeBlock',(_0x12ddd3,_0x1bee25={})=>{const _0x3d56a7=_0x8415be['model'],_0xa74865=_0x8415be['model']['document']['selection'],_0xc157d0=_0x1bee25&&void 0x0!==_0x1bee25['forceValue']?_0x1bee25['forceValue']:!_0x5cee54['value'];let _0x5d8f45;_0x1bee25['language']||(_0x1bee25['language']=_0x51a634[0x0]['language']),_0x5d8f45=_0xc157d0?Array['from'](_0xa74865['getSelectedBlocks']())['filter'](_0x9ad7f5=>eo(_0x9ad7f5)||function(_0x7f49aa,_0x3ebf2e){if(_0x7f49aa['is']('rootElement')||_0x3ebf2e['isLimit'](_0x7f49aa))return!0x1;return _0x3ebf2e['checkChild'](_0x7f49aa['parent'],'codeBlock');}(_0x9ad7f5,_0x3d56a7['schema'])):Array['from'](_0xa74865['getSelectedBlocks']())['filter'](_0x542806=>eo(_0x542806));const _0x5a47cf=to(_0x5d8f45,_0x3d56a7);_0x3d56a7['change'](()=>{for(const _0x45b1a3 of _0x5a47cf)_0x4fd366['markBlockFormat'](_0x45b1a3,{'commandName':'codeBlock','commandParams':[{..._0x1bee25,'forceValue':_0xc157d0}],'formatGroupId':'blockName'});});}),(_0x4fd366['descriptionFactory']['registerElementLabel']('codeBlock',_0x227a7f=>o(_0x27cfac,'ELEMENT_CODE_BLOCK',_0x227a7f)),_0x4fd366['descriptionFactory']['registerDescriptionCallback'](_0x21efd4=>{if('formatBlock'!=_0x21efd4['type'])return;const _0x412005=_0x27cfac['t'],{data:_0x5a19df}=_0x21efd4;if(!_0x5a19df||'codeBlock'!=_0x5a19df['commandName'])return;const _0x415647=_0x5a19df['commandParams'][0x0]['language'],_0x383e6a=_0x412005(_0x51a634['find'](_0x9075ca=>_0x9075ca['language']===_0x415647)['label'])['toLowerCase']();return _0x5a19df['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x27cfac,'*Set\x20format:*\x20%0',o(_0x27cfac,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x383e6a+')')}:{'type':'format','content':o(_0x27cfac,'*Remove\x20format:*\x20%0',o(_0x27cfac,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0xab5cac){return'codeBlock'==_0xab5cac['name'];}class H extends _0x36bcf3{['afterInit'](){const _0xe34780=this['editor'];if(!_0xe34780['plugins']['has']('CommentsEditing'))return;_0xe34780['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xf3d7b6,_0x5bfe9d,_0x2ab280){const _0x5af5ce=[];for(const _0x586848 of _0x5bfe9d['getItems']())_0x586848['hasAttribute'](_0xf3d7b6)&&_0x5af5ce['push'](_0x2ab280['createRangeOn'](_0x586848));return _0x5af5ce;}function _e(_0x4c4e6f,_0x153ff1,{showActiveMarker:_0x1d4233=!0x0}={}){const _0x567987=_0x4c4e6f['plugins']['get']('TrackChangesEditing');return(_0x2ebba6,_0xeed056,_0x214375)=>{if(!_0x214375['consumable']['test'](_0xeed056['markerRange'],_0x2ebba6['name']))return;const _0x1ff186=_0xeed056['markerRange']['getWalker'](),_0x40d312=_0xeed056['markerRange']['start'],_0x1529a8=_0x4c4e6f['model']['schema'];let _0x28b0a0=null,_0x2fccde=null,_0x1941ee=!0x1,_0xf3956f=!0x1;for(const _0x40ddb0 of _0x1ff186){const _0x24caa3=_0x40ddb0['item'];_0x1941ee=_0x1941ee||_0x1529a8['isContent'](_0x24caa3);const _0x19c706=_0x214375['mapper']['toViewElement'](_0x24caa3);if(_0x19c706&&_0x19c706['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x40ddb0['type']&&(_0x1529a8['isBlock'](_0x24caa3)&&!_0x1529a8['isLimit'](_0x24caa3)&&(_0x24caa3['nextSibling']||_0x40d312['isAtEnd']?_0x28b0a0&&_0x28b0a0['parent']==_0x24caa3||(_0x28b0a0=_0x24caa3,_0x581cc9(_0x40ddb0['previousPosition']),_0xf3956f=!0x0):_0x2fccde=_0x2fccde||_0x40ddb0['previousPosition']));}function _0x581cc9(_0x27a33d){const _0x1dfd82=_0x214375['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x153ff1}),_0x2bbc20=_0x214375['mapper']['toViewPosition'](_0x27a33d);_0x1d4233&&_0x567987['activeMarkers']['includes'](_0xeed056['markerName'])&&_0x214375['writer']['addClass']('ck-suggestion-marker--active',_0x1dfd82),_0x214375['writer']['insert'](_0x2bbc20,_0x1dfd82),_0x214375['mapper']['bindElementToMarker'](_0x1dfd82,_0xeed056['markerName']);}_0x1941ee||_0xf3956f||!_0x2fccde||_0x581cc9(_0x2fccde);};}class J extends _0x36bcf3{static get['requires'](){return[_0x540f94];}['init'](){const _0x462725=this['editor'],_0x353f61=_0x462725['plugins']['get']('TrackChangesEditing');_0x353f61['enableCommand']('delete');const _0x2406dc=_0x462725['commands']['get']('deleteForward');_0x353f61['enableCommand']('deleteForward',(_0x36c9d4,_0x5186e2={})=>{const _0x11f294=_0x462725['model']['createSelection'](_0x462725['model']['document']['selection']);_0x11f294['isCollapsed']&&_0x462725['model']['modifySelection'](_0x11f294,{'direction':'forward','unit':_0x5186e2['unit']});const _0x2fdac0=_0x11f294['getFirstRange'](),_0x2e3204=_0x48ab0a['fromRange'](_0x2fdac0);let _0x15d415;_0x36c9d4(_0x5186e2),_0x15d415='$graveyard'==_0x2e3204['root']['rootName']?_0x462725['model']['createRange'](_0x2fdac0['start']):_0x462725['model']['createRange'](_0x2e3204['start'],_0x2e3204['end']),_0x2e3204['detach'](),_0x462725['model']['enqueueChange'](_0x2406dc['buffer']['batch'],_0xee2486=>{_0x2406dc['buffer']['lock'](),_0xee2486['setSelection'](_0xee2486['createRange'](_0x15d415['end'])),_0x2406dc['buffer']['unlock']();});}),_0x462725['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x462725,'merge'),{'priority':'high'}),_0x462725['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x121cd7,_0x398ade,_0x30414c)=>{_0x30414c['options']['showSuggestionHighlights']&&_e(_0x462725,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x121cd7,_0x398ade,_0x30414c);},{'priority':'high'}),_0x462725['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4bbd47,_0x24cfdb,_0x206bd1)=>{const _0x4b28a3=_0x206bd1['mapper']['markerNameToElements'](_0x24cfdb['markerName']);if(_0x4b28a3){for(const _0x2552d3 of _0x4b28a3)_0x2552d3['is']('uiElement')&&(_0x206bd1['mapper']['unbindElementFromMarkerName'](_0x2552d3,_0x24cfdb['markerName']),_0x206bd1['writer']['remove'](_0x2552d3));}},{'priority':'high'});}}class q extends _0x36bcf3{['afterInit'](){const _0x3ab96e=this['editor'];if(!_0x3ab96e['plugins']['has']('ListEditing'))return;const _0x51ed13=_0x3ab96e['locale'],_0x3813d8=_0x3ab96e['plugins']['get']('TrackChangesEditing'),_0x1b206a=_0x3ab96e['plugins']['has']('TodoListEditing'),_0x3fcac1=!!_0x3ab96e['config']['get']('list.multiBlock');function _0xa5125c(_0x43159b){return{'type':'format','content':''+o(_0x51ed13,'*Set\x20format:*\x20%0',_0x43159b)};}function _0x17b3cc(_0x1fc73f){return{'type':'format','content':''+o(_0x51ed13,'*Remove\x20format:*\x20%0',_0x1fc73f)};}_0x3813d8['enableDefaultAttributesIntegration']('numberedList'),_0x3813d8['enableDefaultAttributesIntegration']('bulletedList'),_0x3813d8['enableDefaultAttributesIntegration']('customNumberedList'),_0x3813d8['enableDefaultAttributesIntegration']('customBulletedList'),_0x3813d8['enableDefaultAttributesIntegration']('indentList'),_0x3813d8['enableDefaultAttributesIntegration']('outdentList'),_0x3813d8['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3813d8['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3813d8['registerBlockAttribute']('listItemId'),_0x3813d8['registerBlockAttribute']('listType'),_0x3813d8['registerBlockAttribute']('listIndent'),_0x3fcac1&&(_0x3813d8['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3813d8['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1b206a&&(_0x3813d8['enableDefaultAttributesIntegration']('todoList'),_0x3813d8['enableDefaultAttributesIntegration']('checkTodoList'),_0x3813d8['registerBlockAttribute']('todoListChecked'),_0x3813d8['descriptionFactory']['registerDescriptionCallback'](_0x1c7b85=>{const {data:_0x10585b}=_0x1c7b85;if(_0x10585b&&'todoListChecked'==_0x10585b['key'])return{'type':'format','content':_0x10585b['newValue']?o(_0x51ed13,'*Check\x20item*'):o(_0x51ed13,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x494079=>{if(_0x494079['batch']['isUndo'])return!0x1;let _0x3fd642=!0x1;const _0x16525b=_0x3813d8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x44dde0=>'todoListChecked'===_0x3813d8['_getAttributeKey'](_0x44dde0));for(const _0x4eacd3 of _0x16525b){'todo'!=_0x4eacd3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3813d8['_findSuggestions'](_0x4eacd3['getFirstRange'](),'attribute')['find'](_0x57169b=>'listType'===_0x3813d8['_getAttributeKey'](_0x57169b['suggestion']))||(_0x494079['removeMarker'](_0x4eacd3['getFirstMarker']()),_0x3fd642=!0x0));}return _0x3fd642;})),_0x3813d8['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x51ed13,'FORMAT_INDENT'));const _0x16c442={'type':'format','content':''};_0x3813d8['descriptionFactory']['registerDescriptionCallback'](_0x47067e=>{const {data:_0x41a551}=_0x47067e;if(!_0x41a551||'listType'!=_0x41a551['key'])return;let _0xe67619=_0x47067e['head'];for(;_0xe67619;){if(_0xe67619['data']&&(('listStyle'==_0xe67619['data']['key']||'listMarkerStyle'==_0xe67619['data']['key'])&&(_0xe67619['data']['newValue']&&'default'!=_0xe67619['data']['newValue']||'default'!=_0xe67619['data']['oldValue']&&!_0x41a551['newValue'])||!_0x3fcac1&&_0xe67619['data']['key']==m))return _0x16c442;_0xe67619=_0xe67619['next'];}if(null==_0x41a551['newValue'])switch(_0x41a551['oldValue']){case'bulleted':return _0x17b3cc(o(_0x51ed13,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x17b3cc(o(_0x51ed13,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x17b3cc(o(_0x51ed13,'ELEMENT_TODO_LIST'));}switch(_0x41a551['newValue']){case'bulleted':return _0xa5125c(o(_0x51ed13,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xa5125c(o(_0x51ed13,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xa5125c(o(_0x51ed13,'ELEMENT_TODO_LIST'));}}),_0x3813d8['descriptionFactory']['registerDescriptionCallback'](_0x1d713d=>{const {data:_0x36242b}=_0x1d713d;if(_0x36242b&&'listIndent'==_0x36242b['key'])return null==_0x36242b['newValue']||null==_0x36242b['oldValue']&&0x0==_0x36242b['newValue']?_0x16c442:void 0x0;}),_0x3813d8['descriptionFactory']['registerDescriptionCallback'](_0x1e9dbb=>{if('attribute'!=_0x1e9dbb['type'])return;const {data:_0x395907}=_0x1e9dbb;if(!_0x395907||'listItemId'!=_0x395907['key'])return;const _0x45c08e=le(_0x1e9dbb);return'newValue'==_0x45c08e?{'type':'format','content':o(_0x51ed13,'*Merge:*\x20list\x20item')}:'oldValue'==_0x45c08e?{'type':'format','content':o(_0x51ed13,'*Split:*\x20list\x20item')}:_0x16c442;}),_0x3ab96e['model']['document']['registerPostFixer'](_0x263036=>this['listItemIdFixer'](_0x263036)),_0x3ab96e['model']['document']['registerPostFixer'](_0xfefac=>this['noTrackChangesFixer'](_0xfefac)),_0x3ab96e['model']['document']['on']('change:data',(_0x58feae,_0x4fd710)=>{if(_0x4fd710['isUndo']||!_0x4fd710['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1c97e1){if(_0x1c97e1['batch']['isUndo']||!_0x1c97e1['batch']['isLocal'])return!0x1;let _0x152e30=!0x1;const _0x31dda5=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2c8078=>_0x2c8078['data']&&'listItemId'==_0x2c8078['data']['key'])['filter'](_0x50ddec=>_0x50ddec['data']['newValue']&&_0x50ddec['data']['oldValue']);for(const _0x2658cc of _0x31dda5)le(_0x2658cc)||(_0x1c97e1['removeMarker'](_0x2658cc['getFirstMarker']()),_0x152e30=!0x0);return _0x152e30;}['noTrackChangesFixer'](_0x1eaa17){if(_0x1eaa17['batch']['isUndo']||!_0x1eaa17['batch']['isLocal'])return!0x1;const _0x31d332=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x31d332['trackChangesCommand']['value'])return!0x1;let _0x281a82=!0x1;const _0x4a93f0=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x133a31=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x26956b=>'attribute'==_0x26956b['type'])['filter'](_0x21e680=>_0x4a93f0['includes'](_0x21e680['attributeKey']));if(0x0==_0x133a31['length'])return _0x281a82;for(const _0xcc2dac of _0x133a31){const _0x3269a4=_0x31d332['_findSuggestions'](_0xcc2dac['range'],'attribute')['filter'](_0x5c7e36=>!_0x5c7e36['meta']['isNextTo'])['map'](_0xf70f3f=>_0xf70f3f['suggestion'])['filter'](_0x46d44d=>{const _0x336477=_0x31d332['_getAttributeKey'](_0x46d44d);return _0x4a93f0['includes'](_0x336477);});if(_0x3269a4['length']){for(const _0x1e8234 of _0x3269a4)_0x1eaa17['removeMarker'](_0x1e8234['getFirstMarker']());_0x281a82=!0x0;}}return _0x281a82;}['assureChains'](){const _0x210b66=this['editor']['plugins']['get']('TrackChangesEditing'),_0x504ca5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xaae254;const _0x9c6ad1=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x51fd69=>{if(_0x51fd69['data']['oldRange']||!_0x51fd69['data']['newRange'])return null;if(!_0x51fd69['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x125c60}=_0x210b66['_splitMarkerName'](_0x51fd69['name']);if(!_0x210b66['hasSuggestion'](_0x125c60))return null;const _0x125d87=_0x210b66['getSuggestion'](_0x125c60);return _0x504ca5['includes'](_0x125d87['data']['key']);})['map'](_0x36be31=>{const {id:_0x5e8f22}=_0x210b66['_splitMarkerName'](_0x36be31['name']),_0x5b36ee=_0x210b66['getSuggestion'](_0x5e8f22);return _0xaae254=_0x5b36ee['attributes']['groupId'],_0x5b36ee['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x9c6ad1['size'])return;const _0x22a0dd=_0x210b66['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3e1e63=>'attribute'==_0x3e1e63['type']&&_0x3e1e63['data']&&_0x504ca5['includes'](_0x3e1e63['data']['key'])&&_0x3e1e63['attributes']['groupId']!=_0xaae254)['map'](_0x227732=>({'listItem':_0x227732['getFirstRange']()['start']['nodeAfter'],'groupId':_0x227732['attributes']['groupId']})),_0x392e7d=new Set();for(const {groupId:_0x4940a1,listItem:_0x59dc33}of _0x22a0dd)_0x9c6ad1['has'](_0x59dc33)&&_0x392e7d['add'](_0x4940a1);for(const _0x2f776c of _0x210b66['getSuggestions']())_0x392e7d['has'](_0x2f776c['attributes']['groupId'])&&_0x2f776c['setAttribute']('groupId',_0xaae254);}['_supportLegacySuggestions'](){const _0xe03c1b=this['editor'],_0x2e68f8=_0xe03c1b['locale'],_0x4266f2=_0xe03c1b['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4266f2['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4e2a47,_0x3265dd){const _0x1d22b6=[];for(let _0x340f2c of _0x4e2a47)_0x340f2c['start']['nodeAfter']===_0x340f2c['end']['parent']&&(_0x340f2c=_0xe03c1b['model']['createRange'](_0xe03c1b['model']['createPositionAt'](_0x340f2c['start']['nodeAfter'],0x0))),_0x1d22b6['push'](_0x340f2c);_0xe03c1b['model']['change'](_0x473aa0=>{const _0x54f7ed=_0xe03c1b['model']['document']['selection'],_0x26e4d4=Array['from'](_0x54f7ed['getRanges']())['map'](_0x843044=>_0x48ab0a['fromRange'](_0x843044));_0x473aa0['setSelection'](_0x1d22b6),_0xe03c1b['commands']['get'](_0x3265dd['commandName'])['refresh'](),_0x3265dd['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xe03c1b['execute'](_0x3265dd['commandName'],..._0x3265dd['commandParams']),_0x473aa0['setSelection'](_0x26e4d4);for(const _0x4b1473 of _0x26e4d4)_0x4b1473['detach']();});}),_0x4266f2['descriptionFactory']['registerElementLabel'](function(_0x342d48){const _0x1a3117=!_0xe03c1b['model']['schema']['isObject'](_0x342d48),_0x710f72=_0x342d48['previousSibling'],_0x575831=_0x342d48['nextSibling'],_0x37317b=_0x342d48['getAttribute']('listItemId'),_0x1b7db2=!_0x710f72||_0x710f72['getAttribute']('listItemId')!==_0x37317b,_0x4cd753=!_0x575831||_0x575831['getAttribute']('listItemId')!==_0x37317b;return _0x1a3117&&Boolean(_0x37317b)&&_0x1b7db2&&_0x4cd753;},_0x16b635=>o(_0x2e68f8,'ELEMENT_LIST_ITEM',_0x16b635));}['_registerLegacyDescription'](){const _0x20da87=this['editor'],_0x3c91dc=_0x20da87['locale'];function _0x5d1732(_0x38f62a){const _0x329966=_0x20da87['commands']['get']('bulletedList')['value'],_0x2b6a34=_0x20da87['commands']['get']('numberedList')['value'];return'numberedList'===_0x38f62a?_0x329966:_0x2b6a34;}_0x20da87['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xf7ee77){if('formatBlock'!=_0xf7ee77['type'])return;const {data:_0x36b4ba}=_0xf7ee77;if(!_0x36b4ba)return;let _0x2e74ec,_0x2f2f85,_0x480f92,_0x2637eb;switch(_0x36b4ba['commandName']){case'bulletedList':_0x480f92=_0x36b4ba['commandParams'][0x0]['forceValue'],_0x2637eb=_0x5d1732(_0x36b4ba['commandName']),_0x2e74ec=_0x480f92?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2637eb&&_0x20da87['config']['get']('list.multiBlock')||(_0x2e74ec='*Change\x20to:*\x20%0'),_0x2f2f85={'type':'format','content':o(_0x3c91dc,_0x2e74ec,o(_0x3c91dc,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x480f92=_0x36b4ba['commandParams'][0x0]['forceValue'],_0x2637eb=_0x5d1732(_0x36b4ba['commandName']),_0x2e74ec=_0x480f92?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2637eb&&_0x20da87['config']['get']('list.multiBlock')||(_0x2e74ec='*Change\x20to:*\x20%0'),_0x2f2f85={'type':'format','content':o(_0x3c91dc,_0x2e74ec,o(_0x3c91dc,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2e74ec='*Indent:*\x20%0',_0x2f2f85={'type':'format','content':o(_0x3c91dc,_0x2e74ec,o(_0x3c91dc,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2e74ec=function(_0x5959c0){const _0x534922=_0x5959c0['getFirstRange']();let _0x15572d=_0x534922['start']['nodeAfter'];for(;_0x15572d&&_0x534922['containsItem'](_0x15572d);){if(_0x15572d['getAttribute']('listIndent')>0x0)return!0x1;_0x15572d=_0x15572d['nextSibling'];}return!0x0;}(_0xf7ee77)?o(_0x3c91dc,'*Format:*\x20remove\x20from\x20%0',o(_0x3c91dc,function(_0x566499){return'ELEMENT_'+_0x566499['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xf7ee77))):o(_0x3c91dc,'*Outdent:*\x20%0',o(_0x3c91dc,'ELEMENT_LIST_ITEM')),_0x2f2f85={'type':'format','content':_0x2e74ec};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x36b4ba['multipleBlocks']&&(_0x2e74ec='*Merge:*\x20%0',_0x2f2f85={'type':'deletion','content':o(_0x3c91dc,_0x2e74ec,o(_0x3c91dc,'ELEMENT_LIST_ITEM'))});}return _0x2f2f85;});}}function le(_0x5767ce){let _0x15e52f=_0x5767ce['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x15e52f;){const _0xac1580=_0x15e52f['getAttribute']('listItemId');if(!_0xac1580)return!0x1;if(_0xac1580==_0x5767ce['data']['newValue'])return'newValue';if(_0xac1580==_0x5767ce['data']['oldValue'])return'oldValue';_0x15e52f=_0x15e52f['previousSibling'];}return!0x1;}class ue extends _0x36bcf3{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x29b837=this['editor']['config']['get']('list.properties'),_0x246589=this['editor']['plugins']['get']('TrackChangesEditing');_0x29b837['styles']&&(_0x246589['enableDefaultAttributesIntegration']('listStyle'),_0x246589['registerBlockAttribute']('listStyle')),_0x29b837['reversed']&&(_0x246589['enableDefaultAttributesIntegration']('listReversed'),_0x246589['registerBlockAttribute']('listReversed')),_0x29b837['startIndex']&&(_0x246589['enableDefaultAttributesIntegration']('listStart'),_0x246589['registerBlockAttribute']('listStart'));const _0x36cdb9={'type':'format','content':''};_0x246589['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x204b32=this['editor']['locale'];_0x246589['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x204b32,'FORMAT_LIST_REVERSED')),_0x246589['descriptionFactory']['registerDescriptionCallback'](_0x70a2e2=>{const {data:_0x4d562a}=_0x70a2e2;if(_0x4d562a&&'listReversed'==_0x4d562a['key'])return null==_0x4d562a['newValue']||0x0==_0x4d562a['newValue']&&null==_0x4d562a['oldValue']?_0x36cdb9:void 0x0;}),_0x246589['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x204b32,'FORMAT_LIST_START')),_0x246589['descriptionFactory']['registerDescriptionCallback'](_0x226538=>{const {data:_0xf72aec}=_0x226538;if(_0xf72aec&&'listStart'==_0xf72aec['key'])return null==_0xf72aec['newValue']||0x1==_0xf72aec['newValue']&&null==_0xf72aec['oldValue']?_0x36cdb9:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x415d14=>{if(_0x415d14['batch']['isUndo'])return!0x1;let _0x9a6175=!0x1;const _0x3d46f1=_0x246589['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d51f8=>{const _0x20a28a=_0x246589['_getAttributeKey'](_0x3d51f8);return'listStart'==_0x20a28a||'listReversed'==_0x20a28a;});for(const _0x2c94cb of _0x3d46f1){const _0x273918=_0x2c94cb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x273918||'customNumbered'==_0x273918)continue;_0x246589['_findSuggestions'](_0x2c94cb['getFirstRange'](),'attribute')['find'](_0xb1c9ef=>'listType'==_0x246589['_getAttributeKey'](_0xb1c9ef['suggestion']))||(_0x415d14['removeMarker'](_0x2c94cb['getFirstMarker']()),_0x9a6175=!0x0);}return _0x9a6175;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x550c9d){const _0x47dd18=this['editor']['locale'],{data:_0x320dc5}=_0x550c9d,_0x242f95={'type':'format','content':''};if(!_0x320dc5||'listStyle'!=_0x320dc5['key'])return;if(!_0x320dc5['oldValue'])return'default'==_0x320dc5['newValue']?_0x242f95:{'type':'format','content':''+o(_0x47dd18,'*Set\x20format:*\x20%0',o(_0x47dd18,this['_getTranslationKeyForListStyle'](_0x320dc5['newValue'])))};if(!_0x320dc5['newValue']){if('default'==_0x320dc5['oldValue'])return _0x242f95;let _0x18d175=_0x550c9d['head'];for(;_0x18d175;){if(_0x18d175['data']&&'listType'==_0x18d175['data']['key']&&_0x18d175['data']['newValue'])return _0x242f95;_0x18d175=_0x18d175['next'];}return{'type':'format','content':''+o(_0x47dd18,'*Remove\x20format:*\x20%0',o(_0x47dd18,this['_getTranslationKeyForListStyle'](_0x320dc5['oldValue'])))};}if('default'!=_0x320dc5['newValue'])return{'type':'format','content':''+o(_0x47dd18,'*Set\x20format:*\x20%0',o(_0x47dd18,this['_getTranslationKeyForListStyle'](_0x320dc5['newValue'])))};let _0x237f53=_0x550c9d['head'];for(;_0x237f53;){if(_0x237f53['data']&&'listType'==_0x237f53['data']['key']&&_0x237f53['data']['newValue']&&_0x237f53['data']['oldValue'])return _0x242f95;_0x237f53=_0x237f53['next'];}return{'type':'format','content':o(_0x47dd18,'*Set\x20format:*\x20%0',o(_0x47dd18,'ELEMENT_'+_0x550c9d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x222988=this['editor'],_0x488bc0=_0x222988['locale'];_0x222988['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x247b54=>{if('formatBlock'!=_0x247b54['type'])return;const {data:_0x281856}=_0x247b54;if(!_0x281856)return;let _0x1553e6,_0x4814f1;switch(_0x281856['commandName']){case'listStyle':_0x1553e6='*Change\x20to:*\x20%0',_0x4814f1={'type':'format','content':o(_0x488bc0,_0x1553e6,o(_0x488bc0,this['_getTranslationKeyForListStyle'](_0x281856['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1553e6=_0x281856['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4814f1={'type':'format','content':o(_0x488bc0,_0x1553e6)};break;case'listStart':_0x1553e6='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4814f1={'type':'format','content':o(_0x488bc0,_0x1553e6,_0x281856['commandParams'][0x0]['startIndex'])};}return _0x4814f1;});}['_getTranslationKeyForListStyle'](_0xab09b2){return'ELEMENT_'+function(_0x5a6ee4){if(pe['includes'](_0x5a6ee4))return'bulleted';if(ye['includes'](_0x5a6ee4))return'numbered';return null;}(_0xab09b2)['toUpperCase']()+'_LIST_'+_0xab09b2['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class K extends _0x36bcf3{static get['requires'](){return[_0x2ffecf];}['init'](){const _0x15ba4b=this['editor'],_0x2a1961=_0x15ba4b['plugins']['get']('TrackChangesEditing'),_0x5eaa77=_0x15ba4b['commands']['get']('enter');_0x2a1961['enableCommand']('enter',()=>{_0x15ba4b['model']['change'](_0x342ae2=>{const _0x1067c1=_0x15ba4b['model']['document']['selection'],_0x45fcd0=_0x1067c1['getFirstPosition'](),_0x136ff6=_0x48ab0a['fromRange'](_0x1067c1['getFirstRange']());if(_0x5eaa77['enterBlock'](_0x342ae2)){const _0x260cd6=_0x15ba4b['model']['createPositionAt'](_0x45fcd0['parent']['nextSibling'],0x0),_0x321d62=_0x342ae2['createRange'](_0x45fcd0,_0x260cd6);_0x2a1961['markInsertion'](_0x321d62);}else _0x342ae2['setSelection'](_0x342ae2['createRange'](_0x136ff6['end']));_0x136ff6['detach'](),_0x5eaa77['fire']('afterExecute',{'writer':_0x342ae2});});}),_0x15ba4b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x15ba4b,'split'),{'priority':'high'}),_0x15ba4b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x19a226,_0x5ecbab,_0x579f47)=>{const _0x823941=_0x579f47['mapper']['markerNameToElements'](_0x5ecbab['markerName']);if(_0x823941){for(const _0x48d1c7 of _0x823941)_0x48d1c7['hasClass']('ck-suggestion-marker-split')&&(_0x579f47['mapper']['unbindElementFromMarkerName'](_0x48d1c7,_0x5ecbab['markerName']),_0x579f47['writer']['remove'](_0x48d1c7));}},{'priority':'high'}),_0x15ba4b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x488959,_0x4ff4df,_0x5cdc6c)=>{_0x5cdc6c['options']['showSuggestionHighlights']&&_e(_0x15ba4b,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x488959,_0x4ff4df,_0x5cdc6c);},{'priority':'high'});}}class W extends _0x36bcf3{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x41086f=this['editor']['plugins']['get']('TrackChangesEditing');_0x41086f['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x41086f['enableCommand']('findNext'),_0x41086f['enableCommand']('findPrevious'),_0x41086f['enableCommand']('replace'),_0x41086f['enableCommand']('replaceAll');}['handleFindCommand'](_0x18128b,_0x59cfab,_0x512925={}){const _0x75606=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x18128b(_0x4adca0=>('string'==typeof _0x59cfab?_0x75606['findByTextCallback'](_0x59cfab,_0x512925):_0x59cfab)(_0x4adca0)['filter'](_0x55d04b=>!0x1===this['_isInDeletionRange'](_0x55d04b,_0x4adca0['item'])),_0x512925);}['_isInDeletionRange'](_0x1ce6c6,_0x4db0fc){const _0x5a3149=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4db0fc,_0x1ce6c6['start']),this['editor']['model']['createPositionAt'](_0x4db0fc,_0x1ce6c6['end']));for(const _0x171d54 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5a3149['getIntersection'](_0x171d54['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 _0x36bcf3{['afterInit'](){const _0x5d5f0e=this['editor']['locale'],_0x397197=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x19da1a,commandName:_0x5e4752}of ro)this['editor']['plugins']['has'](_0x19da1a)&&(_0x397197['enableDefaultAttributesIntegration'](_0x5e4752),_0x397197['registerInlineAttribute'](_0x5e4752));_0x5d5f0e['t'],_0x397197['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5d5f0e,'FORMAT_FONT_SIZE')),_0x397197['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5d5f0e,'FORMAT_FONT_FAMILY')),_0x397197['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5d5f0e,'FORMAT_FONT_COLOR')),_0x397197['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5d5f0e,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13e8af=this['editor'],_0x2f238c=_0x13e8af['locale'];_0x13e8af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5de7f2=>{const _0x3fe9d5=_0x2f238c['t'];if('formatInline'!=_0x5de7f2['type'])return;const {data:_0x44af27}=_0x5de7f2;if(null!=_0x44af27){if('fontSize'==_0x44af27['commandName']){const _0x3b75f2=_0x44af27['commandParams'][0x0]['value'];if(_0x3b75f2){const _0x2e78c2=_0x3fe9d5(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5a5d5d=>_0x5a5d5d['model']==_0x3b75f2)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2f238c,'*Set\x20font\x20size:*\x20%0',_0x2e78c2)};}return{'type':'format','content':o(_0x2f238c,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x44af27['commandName']){const _0x18888b=_0x44af27['commandParams'][0x0]['value'];return _0x18888b?{'type':'format','content':o(_0x2f238c,'*Set\x20font\x20family:*\x20%0',_0x18888b)}:{'type':'format','content':o(_0x2f238c,'*Reset\x20font\x20family*')};}if('fontColor'==_0x44af27['commandName']){const _0x5293c1=_0x44af27['commandParams'][0x0]['value'];if(_0x5293c1){const _0x9ac0dc=_0x5b66b8(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5a0f68=>_0x5a0f68['model']==_0x5293c1);let _0x38e323=_0x5293c1,_0x3a5957='';return _0x9ac0dc&&(_0x38e323=_0x9ac0dc['label'],_0x3a5957=_0x3fe9d5(_0x38e323)['toLowerCase']()),{'type':'format','content':o(_0x2f238c,'*Set\x20font\x20color:*\x20%0',_0x3a5957)['trim'](),'color':{'value':_0x5293c1,'title':_0x3a5957||_0x38e323}};}return{'type':'format','content':o(_0x2f238c,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x44af27['commandName']){const _0x23f54d=_0x44af27['commandParams'][0x0]['value'];if(_0x23f54d){const _0x1e87a1=_0x5b66b8(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x51782b=>_0x51782b['model']==_0x23f54d);let _0x4bf61e=_0x23f54d,_0xf8a54d='';return _0x1e87a1&&(_0x4bf61e=_0x1e87a1['label'],_0xf8a54d=_0x3fe9d5(_0x4bf61e)['toLowerCase']()),{'type':'format','content':o(_0x2f238c,'*Set\x20font\x20background\x20color:*\x20%0',_0xf8a54d)['trim'](),'color':{'value':_0x23f54d,'title':_0xf8a54d||_0x4bf61e}};}return{'type':'format','content':o(_0x2f238c,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x36bcf3{['afterInit'](){const _0x9f1c29=this['editor'],_0x4686d5=_0x9f1c29['plugins']['get']('TrackChangesEditing'),_0x105f9e=_0x9f1c29['commands']['get']('copyFormat'),_0x1f4f4d=_0x9f1c29['commands']['get']('pasteFormat');_0x105f9e&&_0x1f4f4d&&(_0x4686d5['enableDefaultAttributesIntegration']('pasteFormat'),_0x4686d5['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2523cd=this['editor'],_0x2bc551=_0x2523cd['locale'];_0x2523cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x263fb5=>{if('formatBlock'!=_0x263fb5['type']&&'formatInline'!=_0x263fb5['type'])return;const {data:_0x33df57}=_0x263fb5;if(_0x33df57&&'pasteFormat'===_0x33df57['commandName']){const _0x4ea2c3=[],_0x25a5c2=_0x33df57['commandParams'][0x0];for(const [_0x1016b1,_0xdb176a]of Object['entries'](_0x25a5c2))_0x4ea2c3['push'](so(_0x2523cd,_0x1016b1,_0xdb176a));return _0x4ea2c3['length']?{'type':'format','content':o(_0x2bc551,'*Set\x20format\x20to:*\x20%0',_0x4ea2c3['join'](',\x20'))}:{'type':'format','content':o(_0x2bc551,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1bba6a,_0x35c66e,_0x84c69d){const _0x9ec1b2=_0x1bba6a['locale']['t'],_0x26174d=_0x35c66e['split'](/(?=[A-Z])/)['join']('\x20'),_0x55111b=_0x9ec1b2(_0x26174d['charAt'](0x0)['toUpperCase']()+_0x26174d['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x84c69d)return _0x55111b;if('fontColor'===_0x35c66e||'fontBackgroundColor'===_0x35c66e){const _0x16acbc=_0x5b66b8(_0x1bba6a['config']['get']('fontColor.colors'))['find'](_0x3e8822=>_0x3e8822['model']==_0x84c69d);return _0x55111b+'\x20('+(_0x16acbc?_0x9ec1b2(_0x16acbc['label'])['toLowerCase']():_0x84c69d)+')';}if('fontSize'===_0x35c66e&&isNaN(parseFloat(_0x84c69d))){const _0x4f9d68=_0x1bba6a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1bba6a['config']['get']('fontSize.options'))['find'](_0x245507=>_0x245507['model']==_0x84c69d);return _0x55111b+'\x20('+(_0x4f9d68?_0x9ec1b2(_0x4f9d68['title'])['toLowerCase']():_0x84c69d)+')';}return _0x55111b+'\x20('+_0x84c69d+')';}class Y extends _0x36bcf3{['_headingOptions'];['afterInit'](){const _0x36de2d=this['editor'];if(!_0x36de2d['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x36de2d['config']['get']('heading.options');const _0x5ef91f=_0x36de2d['locale'],_0x54f40a=_0x36de2d['plugins']['get']('TrackChangesEditing');_0x54f40a['enableDefaultAttributesIntegration']('heading');for(const _0x2748e8 of this['_headingOptions'])'paragraph'!=_0x2748e8['model']&&_0x54f40a['descriptionFactory']['registerElementLabel'](_0x2748e8['model'],_0x55b3d5=>{const _0x19b8d3=this['_getHeadingLevel'](_0x2748e8['model']);return null!==_0x19b8d3?_0x44eddf(_0x55b3d5,_0x19b8d3):_0x5c448e(_0x55b3d5,_0x2748e8['title']);});function _0x44eddf(_0x3080b7,_0x35960e){return o(_0x5ef91f,'ELEMENT_HEADING',[_0x3080b7,_0x35960e]);}function _0x5c448e(_0x260d3f,_0x5c5f75){return o(_0x5ef91f,'ELEMENT_HEADING_CUSTOM',[_0x260d3f,_0x5c5f75]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3214bc=this['editor'],_0x217be8=_0x3214bc['locale'];function _0x1c55d7(_0x529dd8,_0x2703fd){return o(_0x217be8,'ELEMENT_HEADING_CUSTOM',[_0x529dd8,_0x2703fd]);}_0x3214bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x537c33=>{if('formatBlock'!=_0x537c33['type'])return;const {data:_0x5110d}=_0x537c33;if(_0x5110d&&'heading'==_0x5110d['commandName']){const _0x1c53f5=_0x5110d['commandParams'][0x0]['value'],_0x19a81d=this['_getHeadingLevel'](_0x1c53f5);if(null!==_0x19a81d)return{'type':'format','content':o(_0x217be8,'*Change\x20to:*\x20%0',(_0x551def=0x1,_0x2e8e63=_0x19a81d,o(_0x217be8,'ELEMENT_HEADING',[_0x551def,_0x2e8e63])))};const _0x5da226=this['_headingOptions']['find'](_0x3c93e4=>_0x3c93e4['model']===_0x1c53f5)['title'];return{'type':'format','content':o(_0x217be8,'*Change\x20to:*\x20%0',_0x1c55d7(0x1,_0x5da226))};}var _0x551def,_0x2e8e63;});}['_getHeadingLevel'](_0x4d6388){const _0x239126=_0x4d6388['match'](/^heading(\d+)/);if(_0x239126)return _0x239126[0x1];const _0x186789=this['_headingOptions']?.['find'](_0x4b5170=>_0x4b5170['model']==_0x4d6388);if(_0x186789&&_0x186789['view']){const _0x50bc69=_0x186789['view'],_0x519b4d=(_0x50bc69['name']??_0x50bc69)['match'](/^h(\d+)/);if(_0x519b4d)return _0x519b4d[0x1];}return null;}}class Z extends _0x36bcf3{['afterInit'](){const _0x3d1e86=this['editor'];if(!_0x3d1e86['plugins']['has']('HighlightEditing'))return;const _0x33cd66=_0x3d1e86['plugins']['get']('TrackChangesEditing'),_0x4867a4=_0x3d1e86['locale'];_0x33cd66['enableDefaultAttributesIntegration']('highlight'),_0x33cd66['registerInlineAttribute']('highlight'),_0x33cd66['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4867a4,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf530c9=this['editor'],_0x5e42c7=_0xf530c9['locale'];_0xf530c9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52378f=>{if('formatInline'!=_0x52378f['type'])return;const {data:_0x205e3a}=_0x52378f;if(_0x205e3a&&'highlight'==_0x205e3a['commandName']){const _0x263228=_0x5e42c7['t'],_0x4d27c2=_0x205e3a['commandParams'][0x0]['value'];if(_0x4d27c2){const _0x5bf5ad=_0xf530c9['config']['get']('highlight.options')['find'](_0x3ba80d=>_0x3ba80d['model']==_0x4d27c2),_0x52e406=_0x263228(_0x5bf5ad['title'])['toLowerCase']();return{'type':'format','content':o(_0x5e42c7,'*Set\x20highlight:*\x20%0',_0x52e406),'color':{'value':_0x5bf5ad['color'],'title':_0x5bf5ad['title']}};}return{'type':'format','content':o(_0x5e42c7,'*Remove\x20highlight*',o(_0x5e42c7,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x36bcf3{['afterInit'](){const _0x3f2f86=this['editor'];if(!_0x3f2f86['plugins']['has']('HorizontalLineEditing'))return;_0x3f2f86['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1a44e8=_0x3f2f86['plugins']['get']('TrackChangesEditing'),_0x472776=_0x3f2f86['locale'];_0x1a44e8['descriptionFactory']['registerElementLabel']('horizontalLine',_0x50ebfa=>o(_0x472776,'ELEMENT_HORIZONTAL_LINE',_0x50ebfa)),_0x3f2f86['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1aee63,{writer:_0x32786f,options:_0x546181})=>{if(!_0x546181['showSuggestionHighlights'])return null;const _0x2ffec2=_0x32786f['createContainerElement']('div'),_0x4fa67d=_0x32786f['createEmptyElement']('hr');return _0x32786f['addClass']('ck-horizontal-line',_0x2ffec2),_0x32786f['insert'](_0x32786f['createPositionAt'](_0x2ffec2,0x0),_0x4fa67d),_0x2ffec2;},'converterPriority':'high'});}}class et extends _0x36bcf3{['afterInit'](){const _0x138d4f=this['editor'];if(!_0x138d4f['plugins']['has']('HtmlEmbed'))return;const _0x4b7571=_0x138d4f['plugins']['get']('TrackChangesEditing'),_0x29048a=_0x138d4f['locale'];_0x4b7571['descriptionFactory']['registerElementLabel']('rawHtml',_0x2ad830=>o(_0x29048a,'ELEMENT_HTML_EMBED',_0x2ad830)),_0x4b7571['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4b7571['registerBlockAttribute']('value'),_0x4b7571['descriptionFactory']['registerDescriptionCallback'](_0x26e158=>{if('attribute'!=_0x26e158['type'])return;const {data:_0x562215}=_0x26e158;if(_0x562215&&'value'==_0x562215['key']&&_0x26e158['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5a6706=o(_0x29048a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x29048a,'*Change\x20%0\x20content*',_0x5a6706)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21666b=this['editor'],_0x5c8443=_0x21666b['locale'];_0x21666b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f5d4c=>{if('formatBlock'!=_0x3f5d4c['type'])return;const {data:_0x2310b2}=_0x3f5d4c;if(_0x2310b2&&'htmlEmbed'==_0x2310b2['commandName']){const _0xee9ad4=o(_0x5c8443,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5c8443,'*Change\x20%0\x20content*',_0xee9ad4)};}});}}class it extends _0x36bcf3{['afterInit'](){const _0x174e64=this['editor'];if(!_0x174e64['plugins']['has']('ImageEditing'))return;const _0x210279=_0x174e64['plugins']['get']('TrackChangesEditing'),_0x13dea5=_0x174e64['plugins']['get']('ImageUtils'),_0x24f89f=_0x174e64['locale'];_0x210279['enableCommand']('insertImage'),_0x210279['descriptionFactory']['registerElementLabel']('imageBlock',_0x1bb601=>o(_0x24f89f,'ELEMENT_IMAGE',_0x1bb601)),_0x210279['descriptionFactory']['registerElementLabel']('imageInline',_0x188a96=>o(_0x24f89f,'ELEMENT_INLINE_IMAGE',_0x188a96)),_0x210279['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x24f89f,'ELEMENT_CAPTION')),_0x174e64['plugins']['has']('ImageUploadEditing')&&_0x210279['enableCommand']('uploadImage'),_0x174e64['plugins']['has']('ImageBlockEditing')&&_0x174e64['plugins']['has']('ImageInlineEditing')&&(_0x210279['enableCommand']('imageTypeInline',(_0xe30c1e,_0x416796)=>{const _0x337d09=_0x13dea5['getClosestSelectedImageElement'](_0x174e64['model']['document']['selection']);_0x174e64['model']['change'](()=>{_0x210279['markBlockFormat'](_0x337d09,{'commandName':'imageTypeInline','commandParams':[_0x416796]},[],'convertBlockImageToInline');});}),_0x210279['enableCommand']('imageTypeBlock',(_0x5cce6a,_0x2f7c40)=>{_0x174e64['model']['change'](_0x5f026f=>{let _0x4480b8=_0x13dea5['getClosestSelectedImageElement'](_0x174e64['model']['document']['selection']),_0x177bba=_0x5f026f['createRangeOn'](_0x4480b8);const _0x34ff51=_0x2d55e6['fromPosition'](_0x177bba['start'],'toPrevious'),_0x295506=_0x2d55e6['fromPosition'](_0x177bba['end'],'toNext');_0x210279['forceDefaultExecution'](()=>_0x5cce6a(_0x2f7c40)),_0x4480b8=_0x13dea5['getClosestSelectedImageElement'](_0x174e64['model']['document']['selection']),_0x177bba=_0x5f026f['createRangeOn'](_0x4480b8);const _0x22fcac=_0x5f026f['createRange'](_0x34ff51,_0x295506);_0x34ff51['detach'](),_0x295506['detach'](),_0x210279['markBlockFormat'](_0x4480b8,{'commandName':'imageTypeInline','commandParams':[_0x2f7c40]},[],'convertInlineImageToBlock'),_0x22fcac['start']['isBefore'](_0x177bba['start'])&&_0x210279['markInsertion'](_0x5f026f['createRange'](_0x22fcac['start'],_0x177bba['start']),'convertInlineImageToBlock'),_0x177bba['end']['isBefore'](_0x22fcac['end'])&&_0x210279['markInsertion'](_0x5f026f['createRange'](_0x177bba['end'],_0x22fcac['end']),'convertInlineImageToBlock');});}),_0x210279['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x210279['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x210279['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x210279['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x210279['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x210279['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3cc6d0])=>{const _0x7bce21=_0x210279['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xbe6e8c=_0x3cc6d0['start'],_0xba0044=_0x3cc6d0['end'];const _0x1d6706=_0x174e64['model']['schema']['getNearestSelectionRange'](_0xbe6e8c,'backward'),_0xdb15df=_0x174e64['model']['schema']['getNearestSelectionRange'](_0xba0044,'forward');_0x1d6706['isCollapsed']&&(_0xbe6e8c=_0x1d6706['start']),_0xdb15df['isCollapsed']&&(_0xba0044=_0xdb15df['end']),_0x7bce21([_0x174e64['model']['createRange'](_0xbe6e8c,_0xba0044)]);}),_0x210279['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x163f9f),_0x210279['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x163f9f)),_0x174e64['plugins']['has']('ImageCaptionEditing')&&(_0x210279['enableCommand']('toggleImageCaption',(_0x4f8ee2,_0x29472d)=>{const _0x58616f=_0x174e64['plugins']['get']('ImageCaptionUtils');let _0x36e820=_0x13dea5['getClosestSelectedImageElement'](_0x174e64['model']['document']['selection']),_0x154cd8=_0x58616f['getCaptionFromImageModelElement'](_0x36e820);_0x174e64['model']['change'](()=>{if(_0x154cd8)return void _0x210279['markDeletion'](_0x174e64['model']['createRangeOn'](_0x154cd8));const _0x37866a=_0x13dea5['isBlockImage'](_0x36e820);_0x4f8ee2(_0x29472d),_0x36e820=_0x13dea5['getClosestSelectedImageElement'](_0x174e64['model']['document']['selection']),_0x154cd8=_0x58616f['getCaptionFromImageModelElement'](_0x36e820),_0x210279['markInsertion'](_0x174e64['model']['createRangeOn'](_0x154cd8),_0x37866a?null:'imageCaption');});}),_0x210279['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x163f9f));const _0x3f17ed=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2c6369(_0xe2f78,_0x1359d4){const _0x54245c=_0x3f17ed['findIndex'](({type:_0x1ef603,subType:_0x190cf3})=>_0xe2f78['type']==_0x1ef603&&_0xe2f78['subType']==_0x190cf3),_0x2c9935=_0x3f17ed['findIndex'](({type:_0x3c76f1,subType:_0x20fec8})=>_0x1359d4['type']==_0x3c76f1&&_0x1359d4['subType']==_0x20fec8);if(_0x54245c<0x0||_0x2c9935<0x0)return!0x1;const _0x144604=_0xe2f78['getFirstRange'](),_0x187e15=_0x1359d4['getFirstRange']();if((0x0==_0x54245c||0x1==_0x54245c)&&0x2==_0x2c9935&&_0x144604['isIntersecting'](_0x187e15))return!0x0;if(0x2==_0x54245c&&0x3==_0x2c9935){const _0x1b9f2d=_0x210279['_findSuggestions'](_0x144604,'insertion')['filter'](({suggestion:_0xda2ae,meta:_0x13e6a8})=>_0x13e6a8['isOwn']&&'convertInlineImageToBlock'==_0xda2ae['subType']);if(_0x1b9f2d['length']>0x1&&_0x187e15['end']['isEqual'](_0x144604['start']))return!0x0;if(0x1==_0x1b9f2d['length']&&(_0x144604['start']['isEqual'](_0x187e15['end'])||_0x144604['end']['isEqual'](_0x187e15['start'])))return!0x0;}if(0x3==_0x54245c&&0x3==_0x2c9935&&_0x144604['start']['isBefore'](_0x187e15['start'])){const _0xbcd74e=_0x144604['end']['nodeAfter'],_0x2cffe7=_0x187e15['start']['nodeBefore'];return _0x13dea5['isBlockImage'](_0xbcd74e)&&_0xbcd74e===_0x2cffe7;}return!0x1;}function _0x163f9f(_0x4a50c8,_0x32eebf){return _0x2c6369(_0x4a50c8,_0x32eebf)?[_0x4a50c8,_0x32eebf]:_0x2c6369(_0x32eebf,_0x4a50c8)?[_0x32eebf,_0x4a50c8]:null;}_0x174e64['plugins']['has']('ImageResize')&&(_0x210279['enableDefaultAttributesIntegration']('resizeImage'),_0x210279['registerBlockAttribute']('resizedWidth'),_0x210279['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x24f89f,'FORMAT_IMAGE_SIZE'))),_0x174e64['plugins']['has']('ImageTextAlternativeEditing')&&(_0x210279['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x210279['registerBlockAttribute']('alt')),_0x210279['descriptionFactory']['registerDescriptionCallback'](_0x501999=>{if(!!_0x3f17ed['find'](({type:_0xbf4301,subType:_0x1b3c60})=>_0x501999['type']==_0xbf4301&&_0x501999['subType']==_0x1b3c60))return _0x501999['previous']?{}:void 0x0;}),_0x210279['descriptionFactory']['registerDescriptionCallback'](_0x59c896=>{if('insertion'==_0x59c896['type']||'deletion'==_0x59c896['type']){const _0x593997=_0x59c896['getContainedElement']();if(_0x593997&&_0x593997['is']('element','caption'))return{'type':'insertion'==_0x59c896['type']?'addObject':'removeObject','element':_0x593997,'quantity':0x1};}}),_0x210279['descriptionFactory']['registerDescriptionCallback'](_0x200b51=>'formatBlock'==_0x200b51['type']&&'convertInlineImageToBlock'==_0x200b51['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x200b51['type']&&'convertBlockImageToInline'==_0x200b51['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x210279['descriptionFactory']['registerDescriptionCallback'](_0x1d37b6=>{if('attribute'!=_0x1d37b6['type'])return;const {data:_0x5bdd09}=_0x1d37b6;if(!_0x5bdd09||'alt'!=_0x5bdd09['key'])return;const _0x575ad9=_0x5bdd09['newValue'];return _0x575ad9?{'type':'format','content':o(_0x24f89f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x575ad9+'\x22')}:{'type':'format','content':o(_0x24f89f,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x97c855=this['editor'],_0x432dc5=_0x97c855['locale'];_0x97c855['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43a17c=>{if('formatBlock'!=_0x43a17c['type']&&'formatInline'!=_0x43a17c['type'])return;const {data:_0x4c6b34}=_0x43a17c;if(_0x4c6b34){if('imageTextAlternative'==_0x4c6b34['commandName']){const _0xba1c3c=_0x4c6b34['commandParams'][0x0]['newValue'];return _0xba1c3c?{'type':'format','content':o(_0x432dc5,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xba1c3c+'\x22')}:{'type':'format','content':o(_0x432dc5,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4c6b34['commandName']){const _0x37bce7=_0x4c6b34['commandParams'][0x0]['width'];return _0x37bce7?{'type':'format','content':o(_0x432dc5,'*Set\x20image\x20width:*\x20%0',_0x37bce7)}:{'type':'format','content':o(_0x432dc5,'*Reset\x20image\x20width*')};}}});}}class st extends _0x36bcf3{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x381f2b=this['editor']['locale'],_0x2a7738=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a7738['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2a7738['registerBlockAttribute']('src'),_0x2a7738['descriptionFactory']['registerDescriptionCallback'](_0x5be88a=>{if('attribute'!=_0x5be88a['type'])return;const {data:_0x45ab2f}=_0x5be88a;return _0x45ab2f&&'src'==_0x45ab2f['key']?_0x45ab2f['newValue']&&_0x45ab2f['oldValue']?{'type':'format','content':o(_0x381f2b,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x440739=this['editor']['plugins']['get']('TrackChangesEditing');_0x440739['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x440739['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x440739['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x440739['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4470fd=this['editor'],_0x36c47b=_0x4470fd['locale'];_0x4470fd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e3cdb=>{if('formatBlock'!=_0x2e3cdb['type']&&'formatInline'!=_0x2e3cdb['type'])return;const {data:_0x398da0}=_0x2e3cdb;if(!_0x398da0||'replaceImageSource'!=_0x398da0['commandName'])return;return{'type':'format','content':o(_0x36c47b,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x36bcf3{['afterInit'](){const _0x5889b2=this['editor'];if(!_0x5889b2['plugins']['has']('ImageStyleEditing'))return;const _0x15617e=_0x5889b2['plugins']['get']('TrackChangesEditing'),_0x573922=_0x5889b2['plugins']['get']('ImageUtils'),_0x4db258={};_0x15617e['enableCommand']('imageStyle',(_0x4107a1,_0x2b90f9)=>{const _0x4a72a6=_0x5889b2['plugins']['get']('Users')['me'],_0x2d3d73=_0x5889b2['commands']['get']('imageStyle');let _0x661eb0=_0x573922['getClosestSelectedImageElement'](_0x5889b2['model']['document']['selection']),_0x44c8f0=_0x5889b2['model']['createRangeOn'](_0x661eb0),_0x33b0ad=_0x2d3d73['value'];if(_0x33b0ad==_0x2b90f9['value'])return;const _0x820095={'commandName':'imageStyle','commandParams':[_0x2b90f9],'formatGroupId':_0x3b3746()};_0x5889b2['model']['change'](()=>{if(_0x15617e['getSuggestions']()['filter'](_0x3d2f1f=>_0x3d2f1f['isInContent']&&_0x4a72a6==_0x3d2f1f['author']&&('formatBlock'==_0x3d2f1f['type']||'formatInline'==_0x3d2f1f['type'])&&('imageStylePreApply'==_0x3d2f1f['subType']||'imageStylePostApply'==_0x3d2f1f['subType'])&&_0x3d2f1f['getFirstRange']()['isEqual'](_0x44c8f0))['forEach'](_0x18cd16=>_0x15617e['discardSuggestion'](_0x18cd16['head'])),_0x661eb0=_0x573922['getClosestSelectedImageElement'](_0x5889b2['model']['document']['selection']),_0x44c8f0=_0x5889b2['model']['createRangeOn'](_0x661eb0),_0x2d3d73['refresh'](),_0x5889b2['commands']['get']('imageTypeInline')['refresh'](),_0x5889b2['commands']['get']('imageTypeBlock')['refresh'](),_0x33b0ad=_0x2d3d73['value'],_0x33b0ad!=_0x2b90f9['value'])return _0x573922['isInlineImage'](_0x661eb0)&&_0x2d3d73['shouldConvertImageType'](_0x2b90f9['value'],_0x661eb0)?(_0x4107a1({..._0x2b90f9,'setImageSizes':!0x1}),_0x661eb0=_0x573922['getClosestSelectedImageElement'](_0x5889b2['model']['document']['selection']),void _0x15617e['markBlockFormat'](_0x661eb0,{..._0x820095,'commandReversedParams':[{'value':_0x33b0ad||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x573922['isBlockImage'](_0x661eb0)?_0x15617e['markBlockFormat'](_0x661eb0,_0x820095,[],'imageStylePostApply'):_0x15617e['markInlineFormat'](_0x44c8f0,_0x820095,'imageStylePostApply'));});});for(const _0x2b753f of _0x5889b2['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4db258[_0x2b753f['name']]=_0x2b753f['title']['toLowerCase']();_0x15617e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x15617e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x15617e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x15617e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x52ec34])=>{_0x573922['setImageNaturalSizeAttributes'](_0x52ec34['getContainedElement']());}),_0x15617e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5205df,_0x48e90b)=>{_0x15617e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5205df,{'commandName':_0x48e90b['commandName'],'commandParams':_0x48e90b['commandReversedParams']});}),_0x15617e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x29e835,_0x43e3fc){if(_0x1301f4(_0x29e835,_0x43e3fc))return[_0x29e835,_0x43e3fc];if(_0x1301f4(_0x43e3fc,_0x29e835))return[_0x43e3fc,_0x29e835];return null;});const _0x22bf22=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1301f4(_0x4a0b5b,_0x345b14){const _0x4c317e=_0x22bf22['findIndex'](({type:_0x480829,subType:_0x5c77e8})=>_0x4a0b5b['type']==_0x480829&&_0x4a0b5b['subType']==_0x5c77e8),_0x43de5e=_0x22bf22['findIndex'](({type:_0x139597,subType:_0x34f862})=>_0x345b14['type']==_0x139597&&_0x345b14['subType']==_0x34f862);if(_0x4c317e<0x0||_0x43de5e<0x0)return!0x1;const _0x4dd443=_0x4a0b5b['getFirstRange'](),_0x3fb93f=_0x345b14['getFirstRange']();if((0x0==_0x4c317e||0x1==_0x4c317e)&&0x2==_0x43de5e&&_0x4dd443['isIntersecting'](_0x3fb93f))return!0x0;if(0x2==_0x4c317e&&0x3==_0x43de5e){const _0x2eb942=_0x15617e['_findSuggestions'](_0x4dd443,'insertion')['filter'](({suggestion:_0x535b35,meta:_0x3d7dc0})=>_0x3d7dc0['isOwn']&&'convertInlineImageToBlock'==_0x535b35['subType']);if(_0x2eb942['length']>0x1&&_0x3fb93f['end']['isEqual'](_0x4dd443['start']))return!0x0;if(0x1==_0x2eb942['length']&&(_0x4dd443['start']['isEqual'](_0x3fb93f['end'])||_0x4dd443['end']['isEqual'](_0x3fb93f['start'])))return!0x0;}if(0x3==_0x4c317e&&0x3==_0x43de5e&&_0x4dd443['start']['isBefore'](_0x3fb93f['start'])){const _0x3c2887=_0x4dd443['end']['nodeAfter'],_0xd6f074=_0x3fb93f['start']['nodeBefore'];return _0x573922['isBlockImage'](_0x3c2887)&&_0x3c2887===_0xd6f074;}return!0x1;}_0x5889b2['model']['document']['registerPostFixer'](()=>{let _0x10790d=!0x1;const _0x2a9218=Array['from'](_0x5889b2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xab3b8,data:_0x56a43c}of _0x2a9218){const {group:_0x16acf0,type:_0x1c456e,subType:_0x7b6fc0,id:_0x447919}=_0x15617e['_splitMarkerName'](_0xab3b8);if('suggestion'==_0x16acf0&&_0x15617e['hasSuggestion'](_0x447919)){if('formatBlock'==_0x1c456e&&('imageStylePreApply'==_0x7b6fc0||'imageStylePostApply'==_0x7b6fc0)){const _0x556da5=_0x15617e['getSuggestion'](_0x447919);if(_0x56a43c['newRange']){const _0x48abfe=_0x556da5['getFirstRange']()['getContainedElement']();if(_0x573922['isBlockImage'](_0x48abfe))continue;_0x15617e['discardSuggestion'](_0x556da5),_0x10790d=!0x0;}}if('insertion'==_0x1c456e&&'imageCaption'==_0x7b6fc0&&!_0x56a43c['newRange']){const _0x19a976=_0x15617e['getSuggestion'](_0x447919);_0x19a976['next']&&_0x19a976['next']['isInContent']&&(_0x15617e['discardSuggestion'](_0x19a976['next']),_0x10790d=!0x0);}}}return _0x10790d;}),this['_registerLegacyDescription'](_0x4db258);}['_registerLegacyDescription'](_0x38de35){const _0x3394a7=this['editor'],_0x246e26=_0x3394a7['locale'];_0x3394a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1aa7cd=>{if('formatBlock'!=_0x1aa7cd['type']&&'formatInline'!=_0x1aa7cd['type'])return;const {data:_0xe1b947}=_0x1aa7cd;if(!_0xe1b947||'imageStyle'!=_0xe1b947['commandName'])return;const _0x136411=_0xe1b947['commandParams'][0x0]['value'];return _0x9a34eb('side'===_0x136411?o(_0x246e26,'FORMAT_SIDE_IMAGE'):_0x38de35[_0x136411]||_0x136411);function _0x9a34eb(_0x3d6827){return{'type':'format','content':o(_0x246e26,'*Format:*\x20%0',_0x3d6827)};}});}}class ot extends _0x36bcf3{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xb73866){super(_0xb73866),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x557ceb=this['editor'],_0x4e98c7=_0x557ceb['commands']['get']('importWord'),_0xa395be=_0x557ceb['commands']['get']('trackChanges');_0x4e98c7&&(_0x4e98c7['on']('execute',(_0x386e0f,[,_0x27cd1e])=>{this['_trackChangesValueDuringImport']=_0xa395be['value'],_0x27cd1e['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4e98c7,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4e98c7,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xa395be['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x557ceb['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x58da5d,_0x5c5c6e){const {suggestions:_0x2ee22d}=_0x5c5c6e,_0x57b984=this['editor']['commands']['get']('trackChanges'),_0x1a2420=_0x57b984['value'];this['_trackChangesValueDuringImport']!==_0x1a2420&&(_0x57b984['execute'](),this['_trackChangesExecuted']=!0x0),_0x2ee22d&&_0x2ee22d['forEach'](({id:_0x58880b,type:_0x4a7955,author:_0x1b315a,created_at:_0x1ea665})=>{const _0x404b70={'id':_0x58880b,'type':_0x4a7955,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1b315a,'createdAt':_0x1ea665?new Date(_0x1ea665):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x404b70);});}}class rt extends _0x36bcf3{['afterInit'](){const _0x4ecd51=this['editor'],_0x56ddf0=_0x4ecd51['plugins']['get']('TrackChangesEditing');if(_0x4ecd51['plugins']['has']('IndentEditing')&&(_0x56ddf0['enableCommand']('indent'),_0x56ddf0['enableCommand']('outdent')),_0x4ecd51['plugins']['has']('IndentBlock')){for(const _0x269fd9 of['indentBlock','outdentBlock'])_0x56ddf0['enableDefaultAttributesIntegration'](_0x269fd9);}const _0x302e2f=_0x4ecd51['locale'];_0x56ddf0['registerBlockAttribute']('blockIndent'),_0x56ddf0['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x302e2f,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1db8a2=this['editor'],_0x5b95d0=_0x1db8a2['locale'],_0x3395ac=_0x1db8a2['plugins']['get']('TrackChangesEditing');_0x3395ac['descriptionFactory']['registerDescriptionCallback'](_0x5666bb=>{if('formatBlock'!=_0x5666bb['type'])return;const {data:_0x376560}=_0x5666bb;if(!_0x376560)return;if('indentBlock'!=_0x376560['commandName']&&'outdentBlock'!=_0x376560['commandName'])return;const _0xc56fa1=_0x5666bb['getItems']()[0x0],_0x3a9480=_0x3395ac['descriptionFactory']['getItemLabel'](_0xc56fa1);return'indentBlock'==_0x376560['commandName']?{'type':'format','content':o(_0x5b95d0,'*Indent:*\x20%0',_0x3a9480)}:'outdentBlock'==_0x376560['commandName']?{'type':'format','content':o(_0x5b95d0,'*Outdent:*\x20%0',_0x3a9480)}:void 0x0;});}}class at extends _0x36bcf3{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x36bcf3{['afterInit'](){const _0x1ae9b7=this['editor'];if(!_0x1ae9b7['plugins']['has']('LinkEditing'))return;const _0x44f756=_0x1ae9b7['plugins']['get']('TrackChangesEditing'),_0x530140=_0x1ae9b7['commands']['get']('link');_0x44f756['enableDefaultAttributesIntegration']('link'),_0x44f756['enableDefaultAttributesIntegration']('unlink'),_0x44f756['registerInlineAttribute']('linkHref');for(const _0xce757b of _0x530140['manualDecorators'])_0x44f756['registerInlineAttribute'](_0xce757b['id']),_0x44f756['descriptionFactory']['registerAttributeLabel'](_0xce757b['id'],'link\x20('+_0xce757b['label']['toLowerCase']()+')');_0x44f756['descriptionFactory']['registerDescriptionCallback'](_0x1536bd=>{if('attribute'!=_0x1536bd['type'])return;const {data:_0x3e75f1}=_0x1536bd;if(!_0x3e75f1||'linkHref'!=_0x3e75f1['key'])return;const _0x233adc=_0x3e75f1['newValue'],_0x31fbc6=_0x1ae9b7['locale'];return{'type':'format','content':null==_0x233adc?o(_0x31fbc6,'*Remove\x20link*'):o(_0x31fbc6,'*Set\x20link:*\x20%0','\x22'+_0x233adc+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x447ccb=this['editor'],_0x5827ae=_0x447ccb['locale'];_0x447ccb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36248d=>{if('formatInline'!=_0x36248d['type'])return;const {data:_0x2e13dc}=_0x36248d;if(_0x2e13dc){if('link'==_0x2e13dc['commandName']){const _0x1c4f39=_0x2e13dc['commandParams'][0x0];return{'type':'format','content':o(_0x5827ae,'*Set\x20link:*\x20%0','\x22'+_0x1c4f39+'\x22')};}return'unlink'==_0x2e13dc['commandName']?{'type':'format','content':o(_0x5827ae,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x36bcf3{['afterInit'](){const _0x2699bb=this['editor'],_0x49a05b=_0x2699bb['locale'];if(!_0x2699bb['plugins']['has']('LegacyListEditing'))return;const _0x428a0b=_0x2699bb['plugins']['get']('TrackChangesEditing'),_0x3db079=_0x2699bb['plugins']['has']('LegacyTodoListEditing');function _0x5d2e9d(_0x17a118){return()=>{const _0x13160b=_0x2699bb['model']['document']['selection'],_0xb4f6ee=_0x2699bb['commands']['get'](_0x17a118);if(_0xb4f6ee['value'])return void _0x2699bb['execute']('paragraph',{});const _0x5dc57a=_0x17a118['slice'](0x0,-0x4),_0x4b8026=function(_0x46a3b8,_0x1a929e,_0x290d77){let _0x146a04=Array['from'](_0x46a3b8)['filter'](_0x18e08f=>function(_0x2a5aee,_0xf5ee4d){return _0xf5ee4d['checkChild'](_0x2a5aee['parent'],'listItem')&&!_0xf5ee4d['isObject'](_0x2a5aee);}(_0x18e08f,_0x290d77));_0x146a04=_0x146a04['filter'](_0x8e4edf=>!_0x8e4edf['is']('element','listItem')||_0x8e4edf['getAttribute']('listType')!=_0x1a929e);const _0x2c38a0=new Set();for(const _0x2d9edd of _0x146a04)_0x2d9edd['is']('element','listItem')?_0x2c38a0['add'](me(_0x2d9edd)):_0x2c38a0['add'](_0x2d9edd);return Array['from'](_0x2c38a0);}(_0x13160b['getSelectedBlocks'](),_0x5dc57a,_0x2699bb['model']['schema']);_0x2699bb['model']['change'](()=>{for(const _0x4b7aba of _0x4b8026)_0x428a0b['markBlockFormat'](_0x4b7aba,{'commandName':_0x17a118,'commandParams':[{'forceValue':!_0xb4f6ee['value']}],'formatGroupId':'blockName'},fe(_0x4b7aba));});};}function _0x323c68(_0x41705c){return()=>{const _0x213d9f=function(_0x1866e3){let _0xe7755=Array['from'](_0x1866e3);const _0x454fe5=_0xe7755['findIndex'](_0xc9f64a=>'listItem'!=_0xc9f64a['name']);return _0x454fe5>-0x1&&(_0xe7755=_0xe7755['slice'](0x0,_0x454fe5)),_0xe7755;}(_0x2699bb['model']['document']['selection']['getSelectedBlocks']()),_0x50942d=_0x2699bb['model']['createRange'](_0x2699bb['model']['createPositionAt'](_0x213d9f[0x0],'before'),_0x2699bb['model']['createPositionAt'](_0x213d9f[_0x213d9f['length']-0x1],'end'));_0x2699bb['model']['change'](()=>{_0x428a0b['markBlockFormat'](_0x50942d,{'commandName':_0x41705c,'commandParams':[],'formatGroupId':'listIndent'},function(_0xc33518){const _0xc9970f=new Set();for(const _0xb1f265 of _0xc33518){let _0x5a1c79=_0xb1f265['nextSibling'];for(;_0x5a1c79&&_0x5a1c79['getAttribute']('listIndent')>_0xb1f265['getAttribute']('listIndent');)_0xc9970f['add'](_0x5a1c79),_0x5a1c79=_0x5a1c79['nextSibling'];}return Array['from'](_0xc9970f);}(_0x213d9f));});};}_0x428a0b['enableCommand']('numberedList',_0x5d2e9d('numberedList')),_0x428a0b['enableCommand']('bulletedList',_0x5d2e9d('bulletedList')),_0x3db079&&_0x428a0b['enableCommand']('todoList',_0x5d2e9d('todoList')),_0x428a0b['enableCommand']('indentList',_0x323c68('indentList')),_0x428a0b['enableCommand']('outdentList',_0x323c68('outdentList')),_0x3db079&&_0x428a0b['enableCommand']('checkTodoList',()=>{const _0x2a32da=_0x2699bb['commands']['get']('checkTodoList'),_0x2272bc=Array['from'](_0x2a32da['_selectedElements']);_0x2272bc['filter'](_0x19f0af=>_0x19f0af['getAttribute']('todoListChecked')!=_0x2a32da['value']),_0x2699bb['model']['change'](()=>{for(const _0x23532f of _0x2272bc)_0x428a0b['markBlockFormat'](_0x23532f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2a32da['value']}]});});}),_0x428a0b['descriptionFactory']['registerElementLabel']('listItem',_0x25846e=>o(_0x49a05b,'ELEMENT_LIST_ITEM',_0x25846e)),_0x428a0b['descriptionFactory']['registerDescriptionCallback'](_0x4c59ce=>{if('formatBlock'!=_0x4c59ce['type']&&'formatInline'!=_0x4c59ce['type'])return;const {data:_0x323d45}=_0x4c59ce;if(_0x323d45){if('numberedList'==_0x323d45['commandName']||'bulletedList'==_0x323d45['commandName']||'todoList'==_0x323d45['commandName'])switch(_0x323d45['commandName']['replace']('List','')){case'bulleted':return _0x49c982(o(_0x49a05b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x49c982(o(_0x49a05b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x49c982(o(_0x49a05b,'ELEMENT_TODO_LIST'));}if('indentList'==_0x323d45['commandName'])return{'type':'format','content':o(_0x49a05b,'*Indent:*\x20%0',o(_0x49a05b,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x323d45['commandName'])return{'type':'format','content':o(_0x49a05b,'*Outdent:*\x20%0',o(_0x49a05b,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x323d45['commandName'])return _0x323d45['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x49a05b,'*Check\x20item*')}:{'type':'format','content':o(_0x49a05b,'*Uncheck\x20item*')};}function _0x49c982(_0x58abc7){return{'type':'format','content':o(_0x49a05b,'*Change\x20to:*\x20%0',_0x58abc7)};}});}}function me(_0x57b4c4){const _0x1716bd=_0x57b4c4['getAttribute']('listIndent');if(0x0==_0x1716bd)return _0x57b4c4;let _0x623d6f=_0x57b4c4;for(;_0x57b4c4['previousSibling']&&_0x57b4c4['previousSibling']['is']('element','listItem');){const _0x4a352c=_0x57b4c4['previousSibling']['getAttribute']('listIndent');if(_0x4a352c==_0x1716bd)_0x623d6f=_0x57b4c4['previousSibling'];else{if(_0x4a352c<_0x1716bd)break;}_0x57b4c4=_0x57b4c4['previousSibling'];}return _0x623d6f;}function fe(_0x2b45d7){const _0x25e995=[];if(_0x2b45d7['is']('element','listItem')&&_0x2b45d7['getAttribute']('listIndent')>0x0){let _0x2fc7fb=_0x2b45d7['nextSibling'];for(;_0x2fc7fb&&'listItem'==_0x2fc7fb['name']&&_0x2fc7fb['getAttribute']('listIndent')==_0x2b45d7['getAttribute']('listIndent');)_0x25e995['push'](_0x2fc7fb),_0x2fc7fb=_0x2fc7fb['nextSibling'];}return _0x25e995;}class z extends _0x36bcf3{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x368d60=this['editor']['config']['get']('list.properties'),_0x570c28=this['editor']['plugins']['get']('TrackChangesEditing');_0x368d60['styles']&&_0x570c28['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x368d60['reversed']&&_0x570c28['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x368d60['startIndex']&&_0x570c28['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x570c28['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x59f446,_0x75fc0f={}){const _0x2d9a05=this['editor']['plugins']['get']('TrackChangesEditing'),_0x587ac0=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2d9a05['markMultiRangeBlockFormat'](_0x587ac0,{'commandName':'listStyle','commandParams':[{'type':_0x75fc0f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x51ac13,_0x2d750f={}){const _0x1cb5a2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x349de7=this['_getSuggestionBlocks'](_0x57b9e3=>_0x57b9e3['is']('element','listItem')&&'numbered'===_0x57b9e3['getAttribute']('listType'));if(_0x349de7['length']<0x1)return;const _0x2b931e=_0x349de7['map'](_0x35612b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x35612b,'before'),this['editor']['model']['createPositionAt'](_0x35612b,0x0)));this['editor']['model']['change'](()=>{_0x1cb5a2['markMultiRangeBlockFormat'](_0x2b931e,{'commandName':'listReversed','commandParams':[{'reversed':_0x2d750f['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x24b487,_0x34df1b={}){const _0xead7d6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30dbef=this['_getSuggestionBlocks'](_0x9a0849=>_0x9a0849['is']('element','listItem')&&'numbered'===_0x9a0849['getAttribute']('listType'));if(_0x30dbef['length']<0x1)return;const _0x44b57d=_0x30dbef['map'](_0x2ff09e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2ff09e,'before'),this['editor']['model']['createPositionAt'](_0x2ff09e,0x0)));this['editor']['model']['change'](()=>{_0xead7d6['markMultiRangeBlockFormat'](_0x44b57d,{'commandName':'listStart','commandParams':[{'startIndex':_0x34df1b['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2a4d91){if('formatBlock'!=_0x2a4d91['type']&&'formatInline'!=_0x2a4d91['type'])return;const _0x5c0437=this['editor']['locale'],{data:_0x3830b4}=_0x2a4d91;if(!_0x3830b4)return;let _0x1588ad,_0x440a72;switch(_0x3830b4['commandName']){case'listStyle':_0x1588ad='*Change\x20to:*\x20%0',_0x440a72={'type':'format','content':o(_0x5c0437,_0x1588ad,o(_0x5c0437,this['_getTranslationKeyForListStyle'](_0x3830b4['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1588ad=_0x3830b4['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x440a72={'type':'format','content':o(_0x5c0437,_0x1588ad)};break;case'listStart':_0x1588ad='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x440a72={'type':'format','content':o(_0x5c0437,_0x1588ad,_0x3830b4['commandParams'][0x0]['startIndex'])};}return _0x440a72;}['_getSuggestionBlocksForListStyle'](){const _0x322a60=this['editor']['plugins']['get']('LegacyListUtils');let _0x47d58a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x47d58a[0x0]?.['is']('element','listItem')&&_0x47d58a['unshift'](..._0x322a60['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x47d58a[_0x47d58a['length']-0x1]?.['is']('element','listItem')&&_0x47d58a['push'](..._0x322a60['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x47d58a=[...new Set(_0x47d58a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x47d58a=_0x47d58a['filter'](_0x476861=>_0x476861['is']('element','listItem'))),_0x47d58a;}['_getSuggestionBlocks'](_0x1d5deb){const _0x15b23e=this['editor']['plugins']['get']('LegacyListUtils');let _0x120697=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1d5deb)['map'](_0x12eabb=>{const _0xb999ef=this['editor']['model']['createPositionAt'](_0x12eabb,0x0);return[..._0x15b23e['getSiblingNodes'](_0xb999ef,'backward'),..._0x15b23e['getSiblingNodes'](_0xb999ef,'forward')];})['flat']();return _0x120697=[...new Set(_0x120697)],_0x120697;}['_getTranslationKeyForListStyle'](_0x2efae3){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2efae3)||'default')['toUpperCase']()+'_LIST_'+_0x2efae3['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x36bcf3{['afterInit'](){const _0x46dc88=this['editor'];if(!_0x46dc88['plugins']['has']('MediaEmbedEditing'))return;const _0x171a3f=_0x46dc88['plugins']['get']('TrackChangesEditing'),_0x42b2c1=_0x46dc88['locale'];_0x171a3f['enableCommand']('mediaEmbed'),_0x171a3f['descriptionFactory']['registerElementLabel']('media',_0x47b90f=>o(_0x42b2c1,'ELEMENT_MEDIA',_0x47b90f)),_0x46dc88['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x333c7a,{writer:_0x5d44d1,options:_0x53fd55})=>{if(_0x53fd55['showSuggestionHighlights'])return _0x5d44d1['createEmptyElement']('div');},'converterPriority':'high'}),_0x46dc88['data']['downcastDispatcher']['on']('attribute:url:media',(_0x23c614,_0x234f51,_0x26500a)=>{_0x26500a['options']['showSuggestionHighlights']&&_0x23c614['stop']();},{'priority':'high'});}}class gt extends _0x36bcf3{['afterInit'](){const _0x2246d6=this['editor'];_0x2246d6['plugins']['has']('MentionEditing')&&_0x2246d6['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x36bcf3{['afterInit'](){const _0x2283a9=this['editor'],_0x291d96=_0x2283a9['plugins']['get']('TrackChangesEditing');_0x2283a9['plugins']['has']('MultiLevelList')&&(_0x291d96['enableDefaultAttributesIntegration']('multiLevelList'),_0x291d96['registerBlockAttribute']('listMarkerStyle'),_0x291d96['descriptionFactory']['registerDescriptionCallback'](_0x3580e8=>this['handleDescriptions'](_0x3580e8)));}['handleDescriptions'](_0x19ddba){const _0x25af1a=this['editor']['locale'],{data:_0x57b6e1}=_0x19ddba,_0x197833={'type':'format','content':''};if(_0x57b6e1&&'listMarkerStyle'==_0x57b6e1['key']){if(!_0x57b6e1['oldValue'])return{'type':'format','content':o(_0x25af1a,'*Set\x20format:*\x20%0',o(_0x25af1a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x57b6e1['newValue']+')'};if(!_0x57b6e1['newValue']){let _0x8f6502=_0x19ddba['head'];for(;_0x8f6502;){if(_0x8f6502['data']&&'listType'==_0x8f6502['data']['key']&&_0x8f6502['data']['newValue'])return _0x197833;_0x8f6502=_0x8f6502['next'];}return{'type':'format','content':o(_0x25af1a,'*Remove\x20format:*\x20%0',o(_0x25af1a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x57b6e1['oldValue']+')'};}}}}class mt extends _0x36bcf3{['afterInit'](){const _0x52db02=this['editor'];if(!_0x52db02['plugins']['has']('PageBreakEditing'))return;_0x52db02['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5bcee2=_0x52db02['plugins']['get']('TrackChangesEditing'),_0x30cc9f=_0x52db02['locale'];_0x5bcee2['descriptionFactory']['registerElementLabel']('pageBreak',_0x16c4a7=>o(_0x30cc9f,'ELEMENT_PAGE_BREAK',_0x16c4a7));}}class dt extends _0x36bcf3{['afterInit'](){const _0x2a483b=this['editor'];if(!_0x2a483b['plugins']['has']('Paragraph'))return;const _0x3c00d1=_0x2a483b['locale'],_0x1fa7e1=_0x2a483b['plugins']['get']('TrackChangesEditing');_0x1fa7e1['descriptionFactory']['registerElementLabel']('paragraph',_0x320cf2=>o(_0x3c00d1,'ELEMENT_PARAGRAPH',_0x320cf2)),_0x1fa7e1['enableDefaultAttributesIntegration']('paragraph'),_0x1fa7e1['enableCommand']('insertParagraph'),_0x2a483b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2a483b),{'priority':'highest'}),_0x2a483b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x560a0e,_0x5579e7,_0x1bb33e)=>{_0x1bb33e['options']['showSuggestionHighlights']&&nr(_0x2a483b,{'showActiveMarker':!0x1})(_0x560a0e,_0x5579e7,_0x1bb33e);},{'priority':'highest'});const _0x1d09a2=_0x1fa7e1['descriptionFactory'];_0x1d09a2['registerDescriptionCallback'](_0x312676=>{if('insertion'!==_0x312676['type'])return;const {start:_0x674b45,end:_0x42728a}=_0x312676['getFirstRange']();if(!_0x674b45['isTouching'](_0x42728a)||!_0x674b45['nodeAfter'])return;const _0x42a397=_0x2a483b['model']['schema'],_0x1553c9=_0x674b45['nodeAfter'];return _0x42a397['isBlock'](_0x1553c9)&&!_0x42a397['isLimit'](_0x1553c9)&&_0x42a397['checkChild'](_0x1553c9,'$text')?{'type':'insertion','content':o(_0x3c00d1,'*Insert:*\x20%0',_0x1d09a2['getItemLabel'](_0x1553c9,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c870e=this['editor'],_0x5c62f3=_0x4c870e['locale'];_0x4c870e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x236dcf=>{if('formatBlock'!=_0x236dcf['type'])return;const {data:_0x59593a}=_0x236dcf;return _0x59593a&&'paragraph'==_0x59593a['commandName']?{'type':'format','content':o(_0x5c62f3,'*Change\x20to:*\x20%0',o(_0x5c62f3,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3d7ed3,{showActiveMarker:_0x53f76e=!0x0}={}){return(_0x519985,_0x3cdefe,_0x208143)=>{const _0x5c753a=_0x3d7ed3['plugins']['get']('TrackChangesEditing'),_0x355819=_0x3cdefe['markerRange']['start'],_0x194aba=_0x3cdefe['markerRange']['end'],_0x393f49=_0x3d7ed3['model']['schema'];if(!_0x355819['isTouching'](_0x194aba)||!_0x355819['nodeAfter'])return;const _0x43fb4c=_0x355819['nodeAfter'];if(_0x393f49['isBlock'](_0x43fb4c)&&!_0x393f49['isLimit'](_0x43fb4c)&&_0x393f49['checkChild'](_0x43fb4c,'$text')){if(!_0x208143['consumable']['consume'](_0x3cdefe['markerRange'],_0x519985['name']))return;const _0x44daf6=_0x208143['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x421931=_0x208143['mapper']['toViewPosition'](_0x194aba);_0x53f76e&&_0x5c753a['activeMarkers']['includes'](_0x3cdefe['markerName'])&&_0x208143['writer']['addClass']('ck-suggestion-marker--active',_0x44daf6),_0x208143['writer']['insert'](_0x421931,_0x44daf6),_0x208143['mapper']['bindElementToMarker'](_0x44daf6,_0x3cdefe['markerName']);}};}class pt extends _0x36bcf3{['afterInit'](){const _0x4a1430=this['editor'];if(!_0x4a1430['plugins']['has']('RemoveFormatEditing'))return;_0x4a1430['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x462e1a=this['editor'];_0x462e1a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1878e2=>{if('formatBlock'!=_0x1878e2['type']&&'formatInline'!=_0x1878e2['type'])return;const {data:_0x5b2837}=_0x1878e2;return _0x5b2837&&'removeFormat'==_0x5b2837['commandName']?{'type':'format','content':o(_0x462e1a['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x36bcf3{['afterInit'](){const _0x1ffe77=this['editor'];if(!_0x1ffe77['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3f52e5=_0x1ffe77['plugins']['get']('TrackChangesEditing');_0x3f52e5['enableCommand']('goToPreviousRestrictedEditingException'),_0x3f52e5['enableCommand']('goToNextRestrictedEditingException');const _0x13567e=_0x1ffe77['plugins']['get']('RestrictedEditingModeEditing');_0x13567e['enableCommand']('trackChanges'),_0x13567e['enableCommand']('acceptSuggestion'),_0x13567e['enableCommand']('discardSuggestion'),_0x13567e['enableCommand']('acceptAllSuggestions'),_0x13567e['enableCommand']('discardAllSuggestions'),_0x13567e['enableCommand']('acceptSelectedSuggestions'),_0x13567e['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x36bcf3{static get['requires'](){return[_0x1e35f4];}['init'](){const _0x2cb7e1=this['editor'],_0x11a558=_0x2cb7e1['plugins']['get']('TrackChangesEditing');_0x11a558['enableCommand']('shiftEnter'),_0x2cb7e1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x2cb7e1),{'priority':'high'}),_0x2cb7e1['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x2cb7e1),{'priority':'high'}),_0x2cb7e1['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xd7249,_0x5e7d06,_0x437fcf)=>{_0x437fcf['options']['showSuggestionHighlights']&&de(_0x2cb7e1,{'showActiveMarker':!0x1})(_0xd7249,_0x5e7d06,_0x437fcf);}),_0x11a558['descriptionFactory']['registerElementLabel']('softBreak',_0x4f4d86=>o(_0x2cb7e1['locale'],'ELEMENT_LINE_BREAK',_0x4f4d86));}}function de(_0x30d5c6,{showActiveMarker:_0xb368c2=!0x0}={}){return(_0x5096cb,_0x136245,_0x31d737)=>{const _0x52e8e9=_0x30d5c6['plugins']['get']('TrackChangesEditing');if(!_0x31d737['consumable']['test'](_0x136245['markerRange'],_0x5096cb['name']))return;const _0x12e868=_0x30d5c6['model'];for(const _0x5ee14e of _0x136245['markerRange']['getItems']()){if(!_0x5ee14e['is']('element','softBreak'))continue;const _0x2c56ba='deletion'==_0x136245['markerName']['split'](':')[0x1]?'merge':'split',_0x25033a=_0x31d737['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2c56ba}),_0x14ab39=_0x31d737['mapper']['toViewPosition'](_0x12e868['createPositionBefore'](_0x5ee14e));_0xb368c2&&_0x52e8e9['activeMarkers']['includes'](_0x136245['markerName'])&&_0x31d737['writer']['addClass']('ck-suggestion-marker--active',_0x25033a),_0x31d737['writer']['insert'](_0x14ab39,_0x25033a),_0x31d737['mapper']['bindElementToMarker'](_0x25033a,_0x136245['markerName']);}};}class wt extends _0x36bcf3{['afterInit'](){const _0x164b33=this['editor'],_0x3bee1d=_0x164b33['model'],_0x148f67=_0x164b33['locale'];if(!_0x164b33['plugins']['has']('StandardEditingModeEditing'))return;const _0x4c3c7d=_0x164b33['plugins']['get']('TrackChangesEditing'),_0x2fe965='restrictedEditingException',_0x233931=_0x164b33['commands']['get'](_0x2fe965);_0x4c3c7d['enableCommand'](_0x2fe965,(_0x2ff5f9,_0x587682={})=>{const _0x21b4ea=_0x3bee1d['document']['selection'];if(_0x21b4ea['isCollapsed'])return void _0x2ff5f9(_0x587682);const _0x23537c=void 0x0!==_0x587682['forceValue']?_0x587682['forceValue']:!_0x233931['value'];_0x3bee1d['change'](()=>{const _0x20ecbf=Array['from'](_0x21b4ea['getRanges']());for(const _0x422bbb of _0x20ecbf){const _0x4d7c5a=_0x23537c?[_0x422bbb]:io(_0x2fe965,_0x422bbb,_0x3bee1d);for(const _0x4ad207 of _0x4d7c5a)_0x4c3c7d['markInlineFormat'](_0x4ad207,{'commandName':_0x2fe965,'commandParams':[{'forceValue':_0x23537c}]});}});}),_0x4c3c7d['descriptionFactory']['registerDescriptionCallback'](_0x187a73=>{if('formatBlock'!=_0x187a73['type']&&'formatInline'!=_0x187a73['type'])return;const {data:_0x17ca8e}=_0x187a73;return _0x17ca8e&&_0x17ca8e['commandName']==_0x2fe965?_0x17ca8e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x148f67,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x148f67,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x36bcf3{['afterInit'](){const _0x4aa8c7=this['editor'];if(!_0x4aa8c7['plugins']['has']('Style')||!_0x4aa8c7['plugins']['has']('DataSchema'))return;const _0x22a90a=_0x4aa8c7['plugins']['get']('TrackChangesEditing'),_0x472397=_0x4aa8c7['locale'],_0x1b3152=_0x4aa8c7['config']['get']('style')||{},_0x268741=_0x4aa8c7['plugins']['get']('GeneralHtmlSupport'),_0x2b51fb=_0x4aa8c7['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4aa8c7['plugins']['get']('DataSchema'),_0x1b3152['definitions']);_0x22a90a['enableDefaultAttributesIntegration']('style');const _0x16935a=new Set();for(const _0x461c5e of _0x2b51fb['block']){const _0x184452=_0x268741['getGhsAttributeNameForElement'](_0x461c5e['element']);_0x16935a['add'](_0x184452);}const _0x32461a=new Set();for(const _0x20ccfd of _0x2b51fb['inline']){const _0x3b88ab=_0x268741['getGhsAttributeNameForElement'](_0x20ccfd['element']);_0x32461a['add'](_0x3b88ab);for(const _0x3ddb0a of _0x20ccfd['ghsAttributes'])_0x32461a['add'](_0x3ddb0a);}for(const _0x519e70 of _0x16935a)_0x22a90a['registerBlockAttribute'](_0x519e70),_0x22a90a['descriptionFactory']['registerAttributeLabel'](_0x519e70,o(_0x472397,'FORMAT_STYLE'));for(const _0xbddc17 of _0x32461a)_0x22a90a['registerInlineAttribute'](_0xbddc17),_0x22a90a['descriptionFactory']['registerAttributeLabel'](_0xbddc17,o(_0x472397,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4dda2e=this['editor'],_0x4914c6=_0x4dda2e['locale'];_0x4dda2e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18642b=>{if('formatBlock'!=_0x18642b['type']&&'formatInline'!=_0x18642b['type'])return;const {data:_0xb35f0f}=_0x18642b;return _0xb35f0f&&'style'===_0xb35f0f['commandName']?_0xb35f0f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4914c6,'*Set\x20format:*\x20%0',_0xb35f0f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4914c6,'*Remove\x20format:*\x20%0',_0xb35f0f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x36bcf3{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2a5624){super(_0x2a5624),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4eb1bc=this['editor'],_0xdf81c4=_0x4eb1bc['model']['document']['selection'];if(!_0x4eb1bc['plugins']['has']('TableEditing'))return;const _0x3c576e=_0x4eb1bc['locale'],_0x3bc42b=_0x4eb1bc['plugins']['get']('TrackChangesEditing'),_0x3fbc05=_0x4eb1bc['plugins']['get']('TableUtils');_0x3bc42b['descriptionFactory']['registerElementLabel']('table',_0x4e6497=>o(_0x3c576e,'ELEMENT_TABLE',_0x4e6497)),this['_setupColumnsRowsFixing'](),_0x3bc42b['enableCommand']('insertTable'),_0x3bc42b['enableCommand']('selectTableRow'),_0x3bc42b['enableCommand']('selectTableColumn');for(const _0x3054ff of['insertTableRowAbove','insertTableRowBelow']){const _0x1890bb=_0x4eb1bc['commands']['get'](_0x3054ff);_0x3bc42b['enableCommand'](_0x3054ff,_0x41f8e9=>{_0x4eb1bc['model']['change'](_0x2edf41=>{_0x41f8e9();const _0x283d73='above'===_0x1890bb['order'],_0x27708b=_0x3fbc05['getSelectionAffectedTableCells'](_0xdf81c4),_0x145841=_0x3fbc05['getRowIndexes'](_0x27708b),_0x6c94f=_0x283d73?_0x145841['first']-0x1:_0x145841['last']+0x1,_0x4ad8c6=_0x27708b[0x0]['findAncestor']('table'),_0x5dabf1=_0x3fbc05['createTableWalker'](_0x4ad8c6,{'startRow':_0x6c94f,'endRow':_0x6c94f}),_0x206afd=Array['from'](_0x5dabf1)['map'](_0x302361=>_0x2edf41['createRangeOn'](_0x302361['cell']));_0x3bc42b['markMultiRangeInsertion'](_0x206afd,'tableRow');});});}for(const _0x2c562e of['insertTableColumnLeft','insertTableColumnRight']){const _0x55a87f=_0x4eb1bc['commands']['get'](_0x2c562e);_0x3bc42b['enableCommand'](_0x2c562e,_0x529fe2=>{_0x4eb1bc['model']['change'](_0x5a72b3=>{_0x529fe2();const _0x55bb76='left'===_0x55a87f['order'],_0xfa7216=_0x3fbc05['getSelectionAffectedTableCells'](_0xdf81c4),_0x540141=_0x3fbc05['getColumnIndexes'](_0xfa7216),_0x5d280=_0x55bb76?_0x540141['first']-0x1:_0x540141['last']+0x1,_0x3bab24=_0xfa7216[0x0]['findAncestor']('table'),_0x471fd6=_0x3fbc05['createTableWalker'](_0x3bab24,{'startRow':0x0,'column':_0x5d280,'includeAllSlots':!0x1}),_0x2bddd6=Array['from'](_0x471fd6)['map'](_0x40798d=>_0x5a72b3['createRangeOn'](_0x40798d['cell']));_0x3bc42b['markMultiRangeInsertion'](_0x2bddd6,'tableColumn');});});}for(const _0xc71e05 of['removeTableRow','removeTableColumn']){const _0x31df03=_0xc71e05['substr'](0xb),_0x313265=_0x31df03['toLowerCase'](),_0x2f3fe0=_0x313265['substr'](0x0,0x3)+'span',_0x4ed344='table'+_0x31df03,_0x224bba='min'+_0x31df03,_0x235e34='max'+_0x31df03;_0x3bc42b['enableCommand'](_0xc71e05,()=>{_0x4eb1bc['model']['change'](_0x1765df=>{const _0x36ebfa=_0x3fbc05['getSelectionAffectedTableCells'](_0xdf81c4),_0x39cf02=_0x36ebfa[0x0]['findAncestor']('table');let _0x5276ba;if('removeTableRow'==_0xc71e05){const _0x49a298=_0x3fbc05['getRowIndexes'](_0x36ebfa);_0x5276ba={'startRow':_0x49a298['first'],'endRow':_0x49a298['last'],'includeAllSlots':!0x0};}else{const _0x4e49e4=_0x3fbc05['getColumnIndexes'](_0x36ebfa);_0x5276ba={'startColumn':_0x4e49e4['first'],'endColumn':_0x4e49e4['last'],'includeAllSlots':!0x0};}const _0x2ede3c=_0x3fbc05['createTableWalker'](_0x39cf02,_0x5276ba),_0x406346=Array['from'](_0x2ede3c)['map'](({cell:_0x18dedd})=>_0x18dedd),_0xb72326=Ee(_0x406346['filter'](_0x64e028=>_0x64e028['hasAttribute'](_0x2f3fe0))),_0x46d9aa=Ee(_0x406346['filter'](_0x192890=>!_0x192890['hasAttribute'](_0x2f3fe0)))['map'](_0x3d7d4f=>_0x1765df['createRangeOn'](_0x3d7d4f)),_0x220785=_0x3bc42b['markMultiRangeDeletion'](_0x46d9aa,_0x4ed344);if(_0x220785&&('tableRow'==_0x220785['subType']||'tableColumn'==_0x220785['subType'])){const _0x57ba92=this['_getSuggestionCoords'](_0x220785);for(const _0x1a0684 of _0xb72326){const _0x519814=_0x1765df['createRangeOn'](_0x1a0684),_0x175d3a=_0x3fbc05['getCellLocation'](_0x1a0684),_0x38b766=_0x1a0684['getAttribute'](_0x2f3fe0)-0x1,_0x1e0a60=_0x57ba92[_0x224bba],_0x472b86=_0x57ba92[_0x235e34];_0x1e0a60<=_0x175d3a[_0x313265]&&_0x175d3a[_0x313265]+_0x38b766<=_0x472b86&&_0x220785['addRange'](_0x519814);}}});});}function _0x1bad53(_0x202438){const _0x2ea72d=Array['from'](_0xdf81c4['getRanges']())['map'](_0x37b07e=>_0x48ab0a['fromRange'](_0x37b07e));_0x4eb1bc['model']['change'](_0x19ab57=>{const _0x5d1a5d=_0x19ab57['batch'];_0x202438=_0x202438['filter'](_0x573211=>'$graveyard'!=_0x573211['root']['rootName']),_0x19ab57['setSelection'](_0x202438),_0x4eb1bc['commands']['get']('removeTableRow')['refresh'](),_0x4eb1bc['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4eb1bc['model']['enqueueChange'](()=>{_0x4eb1bc['model']['enqueueChange'](_0x5d1a5d,_0x100910=>{const _0x2aa31d=_0x2ea72d['filter'](_0x1325fb=>'$graveyard'!=_0x1325fb['root']['rootName']);_0x2aa31d['length']>0x0&&_0x100910['setSelection'](_0x2aa31d);for(const _0x36cc10 of _0x2ea72d)_0x36cc10['detach']();});});});}function _0x3c3a15(_0x5b3a67){_0x4eb1bc['model']['change'](_0x25bbce=>{const _0x2f83f7=Array['from'](_0xdf81c4['getRanges']())['map'](_0x1cee20=>_0x48ab0a['fromRange'](_0x1cee20)),_0x10a963=[];for(const _0xbf37b of _0x5b3a67)for(const _0x52322d of _0xbf37b['getItems']({'shallow':!0x0}))_0x10a963['push'](_0x52322d);for(const _0x351b2b of _0x10a963)'$graveyard'!=_0x351b2b['root']['rootName']&&(_0x25bbce['setSelection'](_0x25bbce['createPositionAt'](_0x351b2b,0x0)),_0x4eb1bc['commands']['get']('removeTableColumn')['refresh'](),_0x4eb1bc['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x165ab9=_0x2f83f7['filter'](_0xecf34e=>'$graveyard'!=_0xecf34e['root']['rootName']);_0x165ab9['length']>0x0&&_0x25bbce['setSelection'](_0x165ab9);for(const _0x218695 of _0x2f83f7)_0x218695['detach']();});}function _0x1e46f4(_0x4ee8c8,_0x25e618){return _0x25e618['every'](_0x587a2a=>_0x4ee8c8['some'](_0x31d305=>_0x31d305['end']['isEqual'](_0x587a2a['start'])||_0x587a2a['end']['isEqual'](_0x31d305['start'])));}function _0x1f52d6(_0x3eba47,_0x1b9b6b){return!_0x3eba47['some'](_0x3a71be=>_0x1b9b6b['some'](_0x9908c5=>_0x3a71be['isIntersecting'](_0x9908c5)))&&_0x3eba47['some'](_0x3a9eff=>_0x1b9b6b['some'](_0x31a1e8=>_0x3a9eff['end']['isTouching'](_0x31a1e8['start'])));}_0x4eb1bc['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x342965,_0x220e5e,_0x30c9cf)=>{if(!_0x30c9cf['options']['showSuggestionHighlights'])return;const _0x50ba8b=_0x220e5e['item'];if(!_0x50ba8b)return;const _0x5d0e2d=_0x30c9cf['mapper']['toViewElement'](_0x50ba8b);function _0x5f2ff6(_0x4073b4){return Array['isArray'](_0x4073b4)?_0x4073b4:[_0x4073b4];}_0x5d0e2d&&'tableCell'===_0x50ba8b['name']&&_0x3aefd7(_0x5d0e2d,_0x30c9cf['writer'],(_0x38f1c6,_0x23aa3d,_0x22cbfe)=>_0x22cbfe['addClass'](_0x5f2ff6(_0x23aa3d['classes']),_0x38f1c6),(_0x8aa261,_0x2cfdaa,_0x2f3a36)=>_0x2f3a36['removeClass'](_0x5f2ff6(_0x2cfdaa['classes']),_0x8aa261));},{'priority':'highest'}),_0x3bc42b['descriptionFactory']['registerDescriptionCallback'](_0x523805=>{if('insertion'!=_0x523805['type']&&'deletion'!=_0x523805['type'])return;const _0x15559f=_0x523805['getContainedElement']();if(null!=_0x15559f&&_0x15559f['is']('element','table')){if('insertion'==_0x523805['type']){const _0x1f95cc=_0x523805['getItems']()['filter'](_0x435fa6=>_0x435fa6['is']('$textProxy'))['map'](_0x1d7cbc=>_0x1d7cbc['data']);if(_0x1f95cc['length'])return{'type':'insertion','content':o(_0x3c576e,'*Insert:*\x20%0',o(_0x3c576e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1f95cc['join']('\x20')+'\x22'))};}if('deletion'==_0x523805['type']){const _0x29842c=_0x523805['getItems']()['filter'](_0x29ad51=>_0x29ad51['is']('$textProxy'))['map'](_0x2ae18f=>_0x2ae18f['data']);if(_0x29842c['length'])return{'type':'deletion','content':o(_0x3c576e,'*Remove:*\x20%0',o(_0x3c576e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x29842c['join']('\x20')+'\x22'))};}}}),_0x3bc42b['descriptionFactory']['registerDescriptionCallback'](_0xfb7af3=>{if('tableRow'==_0xfb7af3['subType']){const _0x3b0a8e=_0xfb7af3['getItems']()['filter'](_0xa6efea=>_0xa6efea['is']('$textProxy'))['map'](_0x20dc7d=>_0x20dc7d['data']),_0x433ec6=this['_getSuggestionCoords'](_0xfb7af3),_0x571467=_0x433ec6['maxRow']-_0x433ec6['minRow']+0x1;if('insertion'==_0xfb7af3['type'])return _0x3b0a8e['length']?{'type':'insertion','content':o(_0x3c576e,'*Insert:*\x20%0',o(_0x3c576e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x571467,'\x22'+_0x3b0a8e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3c576e,'*Insert:*\x20%0',o(_0x3c576e,'ELEMENT_TABLE_ROW',_0x571467))};if('deletion'==_0xfb7af3['type'])return _0x3b0a8e['length']?{'type':'deletion','content':o(_0x3c576e,'*Remove:*\x20%0',o(_0x3c576e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x571467,'\x22'+_0x3b0a8e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3c576e,'*Remove:*\x20%0',o(_0x3c576e,'ELEMENT_TABLE_ROW',_0x571467))};}if('tableColumn'==_0xfb7af3['subType']){const _0x1bc840=_0xfb7af3['getItems']()['filter'](_0x1bdf7b=>_0x1bdf7b['is']('$textProxy'))['map'](_0x444891=>_0x444891['data']),_0x49790d=this['_getSuggestionCoords'](_0xfb7af3),_0x2ddcaf=_0x49790d['maxColumn']-_0x49790d['minColumn']+0x1;if('insertion'==_0xfb7af3['type'])return _0x1bc840['length']?{'type':'insertion','content':o(_0x3c576e,'*Insert:*\x20%0',o(_0x3c576e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2ddcaf,'\x22'+_0x1bc840['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3c576e,'*Insert:*\x20%0',o(_0x3c576e,'ELEMENT_TABLE_COLUMN',_0x2ddcaf))};if('deletion'==_0xfb7af3['type'])return _0x1bc840['length']?{'type':'deletion','content':o(_0x3c576e,'*Remove:*\x20%0',o(_0x3c576e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2ddcaf,'\x22'+_0x1bc840['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3c576e,'*Remove:*\x20%0',o(_0x3c576e,'ELEMENT_TABLE_COLUMN',_0x2ddcaf))};}}),_0x3bc42b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1bad53),_0x3bc42b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1bad53),_0x3bc42b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3c3a15),_0x3bc42b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3c3a15),_0x3bc42b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1e46f4),_0x3bc42b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1e46f4),_0x3bc42b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1f52d6),_0x3bc42b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1f52d6);}['_acceptFormatSuggestionCallbackFactory'](){const _0xf68f80=this['editor'],_0x15604d=_0xf68f80['model']['document']['selection'];return(_0x235c9e,_0x144bbd)=>{_0xf68f80['model']['change'](_0x1777d1=>{const {commandName:_0x415b0b,commandParams:_0x528e85}=_0x144bbd;let _0x263ae5=_0x235c9e[0x0]['end']['nodeBefore'];_0x528e85&&_0x528e85[0x0]&&!0x1===_0x528e85[0x0]['forceValue']&&(_0x263ae5=_0x235c9e[0x0]['start']['nodeAfter']);const _0x251cbd=_0x1777d1['createRangeIn'](_0x263ae5);if('$graveyard'==_0x251cbd['root']['rootName'])return;const _0x43df1a=Array['from'](_0x15604d['getRanges']())['map'](_0x586652=>_0x48ab0a['fromRange'](_0x586652));_0x1777d1['setSelection'](_0x251cbd),_0xf68f80['commands']['get'](_0x415b0b)['refresh'](),_0x528e85['push']({'forceDefaultExecution':!0x0}),_0xf68f80['execute'](_0x415b0b,..._0x528e85);const _0x18a4af=_0x43df1a['filter'](_0x1dc185=>'$graveyard'!=_0x1dc185['root']['rootName']);_0x18a4af['length']>0x0&&_0x1777d1['setSelection'](_0x18a4af);for(const _0x7d023a of _0x43df1a)_0x7d023a['detach']();});};}['_getCoordsForCells'](_0x582b86){const _0x5e6526=this['editor']['plugins']['get']('TableUtils');let _0x1ec60d=Number['MAX_SAFE_INTEGER'],_0x4d51bb=Number['MIN_SAFE_INTEGER'],_0x561f53=Number['MAX_SAFE_INTEGER'],_0x3c3e75=Number['MIN_SAFE_INTEGER'];for(const _0x206bc6 of _0x582b86){if('$graveyard'==_0x206bc6['root']['rootName'])continue;const {row:_0x187e42,column:_0x3e713c}=_0x5e6526['getCellLocation'](_0x206bc6),_0x5aad13=_0x206bc6['hasAttribute']('rowspan')?_0x206bc6['getAttribute']('rowspan')-0x1:0x0,_0x119383=_0x206bc6['hasAttribute']('colspan')?_0x206bc6['getAttribute']('colspan')-0x1:0x0;_0x1ec60d=_0x187e42<_0x1ec60d?_0x187e42:_0x1ec60d,_0x4d51bb=_0x187e42+_0x5aad13>_0x4d51bb?_0x187e42+_0x5aad13:_0x4d51bb,_0x561f53=_0x3e713c<_0x561f53?_0x3e713c:_0x561f53,_0x3c3e75=_0x3e713c+_0x119383>_0x3c3e75?_0x3e713c+_0x119383:_0x3c3e75;}return{'minRow':_0x1ec60d,'maxRow':_0x4d51bb,'minColumn':_0x561f53,'maxColumn':_0x3c3e75};}['_setupColumnsRowsFixing'](){const _0x389974=this['editor'],_0x39634d=_0x389974['plugins']['get']('TrackChangesEditing'),_0x1da6f0=_0x389974['plugins']['get']('TableUtils');_0x389974['model']['document']['on']('change:data',()=>{const _0x990aa8=Array['from'](_0x389974['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x8823a2,data:_0x486d0b}of _0x990aa8){const {group:_0x508522,id:_0x189d38,subType:_0x115e0e}=_0x39634d['_splitMarkerName'](_0x8823a2);if('suggestion'!=_0x508522)continue;if(null!=_0x486d0b['oldRange'])continue;const _0x49b9fe=_0x39634d['getSuggestion'](_0x189d38);this['_tablePostFixingSubtypes']['includes'](_0x115e0e)&&this['_tableSuggestions']['add'](_0x49b9fe);}},{'priority':'low'});const _0x2a8f40=(_0x20b19e,_0x3f61ba)=>{let _0x38064e=!0x1;const _0x53406a=_0x3f61ba['createRangeOn'](_0x20b19e),_0x888e45=_0x20b19e['findAncestor']('table'),_0x1f4f40=_0x1da6f0['getCellLocation'](_0x20b19e);for(const _0x9f394e of this['_tableSuggestions']){const _0x53ede0=_0x9f394e['subType'],_0x1673f3=_0x53ede0['startsWith']('tablePaste'),_0xdbc1c3=_0x53ede0['substr'](_0x1673f3?0xa:0x5),_0x53e09a=_0xdbc1c3['toLowerCase'](),_0xfffe4c=_0x53e09a['substr'](0x0,0x3)+'span',_0x508a00='min'+_0xdbc1c3,_0x52ebda='max'+_0xdbc1c3;if(!_0x9f394e['isInContent'])continue;if(_0x888e45!=_0x9f394e['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x9f394e['isIntersectingWithRange'](_0x53406a))continue;const _0x2a327e=_0x20b19e['hasAttribute'](_0xfffe4c)?_0x20b19e['getAttribute'](_0xfffe4c)-0x1:0x0,_0x3d08d8=this['_getSuggestionCoords'](_0x9f394e),_0x5918d1=_0x3d08d8[_0x508a00],_0x5d3a8a=_0x3d08d8[_0x52ebda];_0x5918d1<=_0x1f4f40[_0x53e09a]&&_0x1f4f40[_0x53e09a]+_0x2a327e<=_0x5d3a8a&&(_0x9f394e['addRange'](_0x53406a),_0x38064e=!0x0);}return _0x38064e;};_0x389974['model']['document']['registerPostFixer'](_0xa6a232=>{let _0x5c1455=!0x1;for(const _0x5d0eed of _0x389974['model']['document']['differ']['getChanges']())if('insert'==_0x5d0eed['type']){if('tableRow'==_0x5d0eed['name']){for(const _0x11e5a1 of _0x5d0eed['position']['nodeAfter']['getChildren']())_0x5c1455=_0x5c1455||_0x2a8f40(_0x11e5a1,_0xa6a232);}else'tableCell'==_0x5d0eed['name']&&(_0x5c1455=_0x5c1455||_0x2a8f40(_0x5d0eed['position']['nodeAfter'],_0xa6a232));}return _0x5c1455;});}['_getSuggestionCoords'](_0x57a5ff){return this['_getCoordsForCells'](_0x57a5ff['getRanges']()['map'](_0x9f5b64=>_0x9f5b64['start']['nodeAfter']));}}function Ee(_0x281c79){return Array['from'](new Set(_0x281c79)['values']());}class St extends _0x36bcf3{static get['requires'](){return[jt];}['afterInit'](){const _0x24633e=this['editor'],_0xfbff24=_0x24633e['model']['document']['selection'],_0x53414d=_0x24633e['locale'];if(!_0x24633e['plugins']['has']('TableEditing'))return;const _0x261879=_0x24633e['plugins']['get']('TrackChangesEditing'),_0x10fa7f=_0x24633e['plugins']['get']('TableUtils'),_0x3dd997=_0x24633e['plugins']['get'](jt);_0x3dd997['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x261879['enableCommand']('mergeTableCells',()=>{const _0xcf2d38=_0x10fa7f['getSelectionAffectedTableCells'](_0x24633e['model']['document']['selection']);_0x24633e['model']['change'](()=>{_0x261879['markMultiRangeBlockFormat'](_0xcf2d38,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x24633e['commands']['get']('mergeTableCells')['on']('execute',(_0x3b9d4f,_0x4cf0b6)=>{_0x24633e['commands']['get']('trackChanges')['value']&&(_0x4cf0b6['length']>0x0&&_0x4cf0b6[_0x4cf0b6['length']-0x1]&&_0x4cf0b6[_0x4cf0b6['length']-0x1]['forceDefaultExecution']||_0x261879['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3b9d4f['stop']());},{'priority':'highest'});for(const _0x4b0224 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x58a2aa=_0x24633e['commands']['get'](_0x4b0224);_0x261879['enableCommand'](_0x4b0224,()=>{const _0x1f8853=_0x24633e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x50cff8=>_0x50cff8['is']('element','tableCell')),_0x4f6c47=_0x58a2aa['value'];_0x24633e['model']['change'](()=>{_0x261879['markMultiRangeBlockFormat']([_0x1f8853,_0x4f6c47],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4907d1 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x18df08=_0x24633e['commands']['get'](_0x4907d1);_0x261879['enableCommand'](_0x4907d1,()=>{const _0xa63765=_0x10fa7f['getSelectionAffectedTableCells'](_0x24633e['model']['document']['selection'])[0x0],_0xe29f5e=_0xa63765['findAncestor']('table'),{column:_0x6174bd,row:_0x33d4c0}=_0x10fa7f['getCellLocation'](_0xa63765);let _0x23110d=[];if('horizontally'==_0x18df08['direction']){const _0xb60156=_0x10fa7f['createTableWalker'](_0xe29f5e,{'startRow':_0x33d4c0,'endRow':_0x33d4c0,'includeAllSlots':!0x0});_0x23110d=Array['from'](_0xb60156)['map'](_0x331f04=>_0x331f04['cell']);}else{const _0x1a8d91=_0x10fa7f['createTableWalker'](_0xe29f5e,{'column':_0x6174bd,'includeAllSlots':!0x0});_0x23110d=Array['from'](_0x1a8d91)['map'](_0x296403=>_0x296403['cell']);}_0x24633e['model']['change'](_0x47dde5=>{_0x261879['markBlockFormat'](_0x47dde5['createRangeOn'](_0xa63765),{'commandName':_0x4907d1,'commandParams':[]},_0x23110d,_0x4907d1);});});}_0x261879['descriptionFactory']['registerDescriptionCallback'](_0x5b0784=>{if('formatBlock'!=_0x5b0784['type']&&'formatInline'!=_0x5b0784['type'])return;const {data:_0x583651}=_0x5b0784;return _0x583651&&'mergeTableCells'==_0x583651['commandName']?{'type':'format','content':o(_0x53414d,'*Merge\x20cells*')}:void 0x0;}),_0x261879['descriptionFactory']['registerDescriptionCallback'](_0x4f1f1f=>{if('formatBlock'!=_0x4f1f1f['type']&&'formatInline'!=_0x4f1f1f['type'])return;const {data:_0x121bdf}=_0x4f1f1f;return _0x121bdf?'splitTableCellVertically'==_0x121bdf['commandName']?{'type':'format','content':o(_0x53414d,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x121bdf['commandName']?{'type':'format','content':o(_0x53414d,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x31c81e=_0x3dd997['_acceptFormatSuggestionCallbackFactory']();for(const _0x430942 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x261879['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x430942,'accept',_0x31c81e);for(const _0x3f4483 of['splitTableCellVertically','splitTableCellHorizontally'])_0x261879['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3f4483,'accept',_0x31c81e);_0x261879['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x55bfe6=>{_0x24633e['model']['change'](_0x5a3374=>{const _0x107c66=Array['from'](_0xfbff24['getRanges']())['map'](_0x508a9a=>_0x48ab0a['fromRange'](_0x508a9a));_0x5a3374['setSelection'](_0x55bfe6),_0x24633e['commands']['get']('mergeTableCells')['refresh'](),_0x24633e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xd24b9c=_0x107c66['filter'](_0x3a5628=>'$graveyard'!=_0x3a5628['root']['rootName']);_0xd24b9c['length']>0x0&&_0x5a3374['setSelection'](_0xd24b9c);for(const _0x30ace4 of _0x107c66)_0x30ace4['detach']();});});for(const _0x114ad7 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x491f9b=_0x24633e['commands']['get'](_0x114ad7);_0x491f9b['on']('set:isEnabled',(_0x37a2,_0x1a38f1,_0x6579d1)=>{if(_0x6579d1){const _0x52551c=_0x24633e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4f9944=>_0x4f9944['is']('element','tableCell'));this['_areMergableCells'](_0x491f9b['value'],_0x52551c)||(_0x37a2['return']=!0x1,_0x37a2['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xabde7d=this['editor']['commands']['get']('mergeTableCells'),_0x1c5f04=this['editor']['plugins']['get']('TableUtils');if(!_0xabde7d['isEnabled'])return!0x1;const _0x16bd51=_0x1c5f04['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x29f51a of _0x16bd51)for(const _0x4d1f34 of _0x16bd51)if(_0x29f51a!=_0x4d1f34&&!this['_areMergableCells'](_0x29f51a,_0x4d1f34))return!0x1;return!0x0;}['_areMergableCells'](_0xca0124,_0x30ba55){const _0x2776d2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x321432=this['editor']['model']['createRangeOn'](_0xca0124),_0x4675ae=this['editor']['model']['createRangeOn'](_0x30ba55),_0x3eab35=new Set(),_0x4a5ee0=new Set();for(const _0x4c7d03 of _0x2776d2['getSuggestions']())if(('insertion'==_0x4c7d03['type']||'deletion'==_0x4c7d03['type']||'mergeTableCells'==_0x4c7d03['subType'])&&_0x4c7d03['isInContent']){for(const _0x160e04 of _0x4c7d03['getRanges']())_0x160e04['containsRange'](_0x321432,!0x0)&&_0x3eab35['add'](_0x4c7d03['type']+':'+_0x4c7d03['author']['id']),_0x160e04['containsRange'](_0x4675ae,!0x0)&&_0x4a5ee0['add'](_0x4c7d03['type']+':'+_0x4c7d03['author']['id']);}if(_0x3eab35['size']!=_0x4a5ee0['size'])return!0x1;for(const _0x3bba55 of _0x3eab35)if(!_0x4a5ee0['has'](_0x3bba55))return!0x1;return!0x0;}}class At extends _0x36bcf3{static get['requires'](){return[jt];}['afterInit'](){const _0x4fbd3a=this['editor'];if(!_0x4fbd3a['plugins']['has']('TableEditing'))return;const _0xeb9c7e=_0x4fbd3a['locale'],_0x556655=_0x4fbd3a['plugins']['get']('TrackChangesEditing');_0x556655['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x556655['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x556655['registerBlockAttribute']('headingRows'),_0x556655['registerBlockAttribute']('headingColumns'),_0x556655['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0xeb9c7e,'FORMAT_HEADER_ROW')),_0x556655['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0xeb9c7e,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5728e7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x98be06=this['editor']['plugins']['get']('TableUtils'),_0x32512b=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x506713({showActiveMarker:_0x2c5d8a=!0x0,setDataAttribute:_0x112098=!0x0}={}){return(_0x49ceef,_0x5a75c0,_0x24da61)=>{const {type:_0x575059,id:_0x4c5022}=_0x5728e7['_splitMarkerName'](_0x5a75c0['markerName']),_0x236584=_0x5728e7['getSuggestion'](_0x4c5022),_0x174e63=_0x236584['data'];if('formatBlock'!=_0x236584['type']||!_0x174e63||'setTableColumnHeader'!=_0x174e63['commandName'])return;if(_0x5a75c0['item'])return void _0x49ceef['stop']();if(!_0x24da61['consumable']['consume'](_0x5a75c0['markerRange'],_0x49ceef['name']))return;const _0x997442=_0x5a75c0['markerRange']['start']['nodeAfter'],_0x38dcac=_0x5a75c0['markerRange']['end']['nodeBefore'],_0x5d6405=_0x997442['parent']['parent'],{column:_0x3dc6c4}=_0x98be06['getCellLocation'](_0x997442),{column:_0x1fd1fd}=_0x98be06['getCellLocation'](_0x38dcac);for(let _0x2df45f=_0x3dc6c4;_0x2df45f<=_0x1fd1fd;_0x2df45f++){const _0x2b86d9=_0x98be06['createTableWalker'](_0x5d6405,{'column':_0x2df45f,'includeAllSlots':!0x1});for(const _0x30bd9c of _0x2b86d9){const _0x442237=_0x30bd9c['cell'],_0x4d9079=_0x24da61['mapper']['toViewElement'](_0x442237);_0x24da61['writer']['addClass']('ck-suggestion-marker-'+_0x575059,_0x4d9079),_0x112098&&_0x24da61['writer']['setAttribute']('data-suggestion',_0x4c5022,_0x4d9079),_0x24da61['mapper']['bindElementToMarker'](_0x4d9079,_0x5a75c0['markerName']),_0x2c5d8a&&(_0x5728e7['activeMarkers']['includes'](_0x5a75c0['markerName'])?_0x24da61['writer']['addClass']('ck-suggestion-marker--active',_0x4d9079):_0x24da61['writer']['removeClass']('ck-suggestion-marker--active',_0x4d9079));}}};}_0x5728e7['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x32512b),_0x5728e7['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x32512b),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x506713(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x50160a,_0x1cf17b,_0x83ba6c)=>{_0x83ba6c['options']['showSuggestionHighlights']&&_0x506713({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x50160a,_0x1cf17b,_0x83ba6c);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x52dbe3,_0x24e6e3,_0x4c6a47)=>{const {type:_0x3baf9a,id:_0x335c77}=_0x5728e7['_splitMarkerName'](_0x24e6e3['markerName']),_0x19738e=_0x5728e7['getSuggestion'](_0x335c77),_0x4813b7=_0x19738e['data'];if('formatBlock'!=_0x19738e['type']||!_0x4813b7||'setTableColumnHeader'!=_0x4813b7['commandName'])return;const _0x3c5488=_0x4c6a47['mapper']['markerNameToElements'](_0x24e6e3['markerName']);if(_0x3c5488){for(const _0x30320e of _0x3c5488)_0x4c6a47['writer']['removeClass']('ck-suggestion-marker-'+_0x3baf9a,_0x30320e),_0x4c6a47['writer']['removeClass']('ck-suggestion-marker--active',_0x30320e),_0x4c6a47['writer']['removeAttribute']('data-suggestion',_0x30320e),_0x4c6a47['mapper']['unbindElementFromMarkerName'](_0x30320e,_0x24e6e3['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd99f81=this['editor'],_0x48bcc3=_0xd99f81['locale'];function _0x14a833(_0x1bcb1a){return{'type':'format','content':o(_0x48bcc3,'*Format:*\x20%0',_0x1bcb1a)};}_0xd99f81['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5fedf4=>{if('formatBlock'!=_0x5fedf4['type'])return;const {data:_0x334dad}=_0x5fedf4;if(_0x334dad){if('setTableRowHeader'==_0x334dad['commandName']){const _0x3f01b1=_0x334dad['commandParams'][0x0]['forceValue'];return _0x14a833(o(_0x48bcc3,_0x3f01b1?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x334dad['commandName']){const _0x4a2460=_0x334dad['commandParams'][0x0]['forceValue'];return _0x14a833(o(_0x48bcc3,_0x4a2460?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x3b904a=>[_0x3b904a,null]));class It extends _0x36bcf3{static get['requires'](){return[jt];}['afterInit'](){const _0xb62c91=this['editor'];if(!_0xb62c91['plugins']['has']('TableClipboard'))return;const _0x46a615=_0xb62c91['plugins']['get']('TrackChangesEditing'),_0x295e35=_0xb62c91['plugins']['get']('TableUtils'),_0x4ef014=_0xb62c91['plugins']['get'](jt),_0x50b48e=_0xb62c91['plugins']['get']('TableClipboard');_0x4ef014['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xb62c91['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xb62c91['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2e3266=null;_0xb62c91['model']['on']('insertContent',(_0x33cfb6,_0x42df47)=>{const [_0x3660c9,_0x4f5718]=_0x42df47,_0x53ca56=_0x42df47[_0x42df47['length']-0x1];_0x53ca56&&_0x53ca56['forceDefaultExecution']||_0x46a615['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x37285d,_0x30164e,_0xdc6c85,_0x1ee065,_0xb30a00){if(_0x30164e&&!_0x30164e['is']('documentSelection'))return!0x1;const _0x5cbb00=_0xb30a00['getTableIfOnlyTableInContent'](_0x37285d,_0xdc6c85);if(!_0x5cbb00||!he(_0x5cbb00,void 0x0,_0x1ee065))return!0x1;const _0x3939ce=_0x1ee065['getSelectionAffectedTableCells'](_0xdc6c85['document']['selection']);if(!_0x3939ce['length'])return!0x1;const _0x5ae667=_0x3939ce[0x0]['findAncestor']('table'),_0x5890b5=_0x1ee065['getRowIndexes'](_0x3939ce),_0x422e41=_0x1ee065['getColumnIndexes'](_0x3939ce),_0x20e67d={'startRow':_0x5890b5['first'],'endRow':_0x5890b5['last'],'startColumn':_0x422e41['first'],'endColumn':_0x422e41['last']};return 0x1==_0x3939ce['length']&&(_0x20e67d['endRow']+=_0x1ee065['getRows'](_0x5cbb00)-0x1,_0x20e67d['endColumn']+=_0x1ee065['getColumns'](_0x5cbb00)-0x1),he(_0x5ae667,_0x20e67d,_0x1ee065);}(_0x3660c9,_0x4f5718,_0xb62c91['model'],_0x295e35,_0x50b48e)&&(_0x33cfb6['stop'](),_0x2e3266={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xb62c91['model']['change'](()=>{_0xb62c91['model']['insertContent'](_0x42df47[0x0],_0x42df47[0x1],_0x42df47[0x2],{'forceDefaultExecution':!0x0});const _0x8a3dd1=_0x3b3746(),{rowInsertionRanges:_0x5785c9,columnInsertionRanges:_0x15607a,insertionRanges:_0x3f3d45,deletionRanges:_0x5a743b,cells:_0x3fa68f}=_0x2e3266;_0x5785c9['length']&&_0x46a615['markMultiRangeInsertion'](_0x5785c9,'tablePasteRow',{'tablePasteChainId':_0x8a3dd1}),_0x15607a['length']&&_0x46a615['markMultiRangeInsertion'](_0x15607a,'tablePasteColumn',{'tablePasteChainId':_0x8a3dd1}),_0x3f3d45['length']&&(_0x46a615['markMultiRangeInsertion'](_0x3f3d45,'tablePaste',{'tablePasteChainId':_0x8a3dd1,'skipNestingCheck':!0x0}),_0x3f3d45['forEach'](_0x2be916=>_0x2be916['detach']?.())),_0x5a743b['length']&&(_0x46a615['markMultiRangeDeletion'](_0x5a743b,'tablePaste',{'tablePasteChainId':_0x8a3dd1,'skipNestingCheck':!0x0}),_0x5a743b['forEach'](_0xd07709=>_0xd07709['detach']?.()));const _0x1c0588=_0x46a615['markMultiRangeBlockFormat'](_0x3fa68f['map'](({element:_0x437aa5})=>_0x437aa5),{'formatGroupId':_0x3b3746()},[],'tablePasteCell',{'tablePasteChainId':_0x8a3dd1});if(_0x1c0588){const _0x5a78d4=_0x1c0588['getMarkers'](),_0x13458c=[];for(const {element:_0x28fa74,attributes:_0x50de04}of _0x3fa68f){if(!_0x50de04)continue;const _0x3c4130=_0xb62c91['model']['createRangeOn'](_0x28fa74),_0x33dbfd=_0x5a78d4['find'](_0x2890ce=>_0x2890ce['getRange']()['isEqual'](_0x3c4130));_0x33dbfd&&_0x13458c['push']([_0x33dbfd['name'],_0x50de04]);}_0x13458c['length']&&_0x1c0588['setAttribute']('markerAttributes',Object['fromEntries'](_0x13458c));}_0x2e3266=null;}));},{'priority':_0xd2770e['high']+0xa}),_0xb62c91['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3891d5,_0x3c69fe)=>{const [_0x406236,_0x57fca8,,_0x3d92bc]=_0x3c69fe;if(!_0x2e3266)return;_0x3891d5['stop']();const _0xa66282=_0x406236['cell'],_0x123e64=_0x57fca8,_0x498036=Pe(_0xa66282),_0x16f272=Pe(_0x123e64);_0x3891d5['return']=_0xa66282;let _0x281674=null,_0x585cb7=null;if(_0x16f272||_0x498036){if(_0x498036&&!_0x16f272){_0x3d92bc['remove'](_0xa66282['getChild'](0x0));for(const _0x23f49f of Array['from'](_0x123e64['getChildren']()))_0x3d92bc['insert'](_0x23f49f,_0xa66282,'end');const _0x5b890e=_0x2e3266['rowInsertionIndexes']['includes'](_0x406236['row']),_0x5ce51c=_0x2e3266['columnInsertionIndexes']['includes'](_0x406236['column']);_0x5b890e||_0x5ce51c||(_0x281674=_0x48ab0a['fromRange'](_0x3d92bc['createRangeIn'](_0xa66282)));}else _0x16f272&&!_0x498036&&(_0x585cb7=_0x3d92bc['createRangeIn'](_0xa66282));}else{const _0x4dd4a4=_0x3d92bc['createElement']('tableCellSuggestion'),_0x5ec846=_0x3d92bc['createElement']('tableCellSuggestion');_0x3d92bc['wrap'](_0x3d92bc['createRangeIn'](_0xa66282),_0x5ec846),_0x3d92bc['insert'](_0x4dd4a4,_0xa66282,0x0);for(const _0xa32bed of Array['from'](_0x123e64['getChildren']()))_0x3d92bc['insert'](_0xa32bed,_0x4dd4a4,'end');_0x281674=_0x48ab0a['fromRange'](_0x3d92bc['createRangeOn'](_0x4dd4a4)),_0x585cb7=_0x48ab0a['fromRange'](_0x3d92bc['createRangeOn'](_0x5ec846));}const _0x1e46c8=Array['from'](_0x123e64['getAttributes']())['filter'](([_0x5d146c])=>ge['includes'](_0x5d146c));_0x2e3266['cells']['push']({'element':_0xa66282,'attributes':_0x1e46c8['length']?Object['fromEntries'](_0x1e46c8):null}),_0x281674&&_0x2e3266['insertionRanges']['push'](_0x281674),_0x585cb7&&_0x2e3266['deletionRanges']['push'](_0x585cb7);},{'priority':'high'}),_0x295e35['on']('insertColumns',(_0x421191,_0x4b2161)=>{const [_0x401338,_0x170c39={}]=_0x4b2161;if(!_0x2e3266)return;const _0x3ccf6e=_0x170c39['at']||0x0,_0xbcdd9f=_0x170c39['columns']||0x1;_0x2e3266['columnInsertionIndexes']=new Array(_0xbcdd9f)['fill'](_0x3ccf6e)['map']((_0x9668d4,_0x388d8c)=>_0x9668d4+_0x388d8c);for(const {cell:_0x3ebdb1}of _0x295e35['createTableWalker'](_0x401338,{'startColumn':_0x3ccf6e,'endColumn':_0x3ccf6e+_0xbcdd9f-0x1}))_0x2e3266['columnInsertionRanges']['push'](_0xb62c91['model']['createRangeOn'](_0x3ebdb1));},{'priority':'low'}),_0x295e35['on']('insertRows',(_0x565764,_0x284ec1)=>{const [_0x3af331,_0x2ec455={}]=_0x284ec1;if(!_0x2e3266)return;const _0xc6ead3=_0x2ec455['at']||0x0,_0x343f3f=_0x2ec455['rows']||0x1;_0x2e3266['rowInsertionIndexes']=new Array(_0x343f3f)['fill'](_0xc6ead3)['map']((_0x32ee76,_0x437fba)=>_0x32ee76+_0x437fba);for(const {cell:_0x17ddbd}of _0x295e35['createTableWalker'](_0x3af331,{'startRow':_0xc6ead3,'endRow':_0xc6ead3+_0x343f3f-0x1}))_0x2e3266['rowInsertionRanges']['push'](_0xb62c91['model']['createRangeOn'](_0x17ddbd));},{'priority':'low'}),_0x46a615['descriptionFactory']['registerDescriptionCallback'](_0x1abd3f=>{if(_0x1abd3f['subType']&&_0x1abd3f['subType']['startsWith']('tablePaste'))return _0x1abd3f['previous']?{}:{'type':'insertion','content':o(_0xb62c91['locale'],'*Replace\x20table\x20cells*')};});const _0x26c055=()=>!0x1;for(const _0x1f3bb3 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x46a615['_suggestionFactory']['registerCustomCallback']('insertion',_0x1f3bb3,'join',_0x26c055),_0x46a615['_suggestionFactory']['registerCustomCallback']('deletion',_0x1f3bb3,'join',_0x26c055),_0x46a615['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1f3bb3,'join',_0x26c055);_0x46a615['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x26c055),_0x46a615['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x324ea1,_0xfaa949,_0x249db8)=>{const _0x37614a=_0x324ea1['map'](_0x145264=>_0x145264['getContainedElement']())['filter'](_0x444910=>_0x444910),_0xfe57a9=new Map(_0x37614a['map'](_0x3ced2f=>[_0x3ced2f,null]));if(_0x2e3266){for(const {element:_0x2f4750,attributes:_0x26fa37}of _0x2e3266['cells'])_0x26fa37&&_0xfe57a9['set'](_0x2f4750,_0x26fa37);}else{if(_0x249db8&&_0x249db8['markerAttributes'])for(const [_0x260cae,_0x18ec52]of Object['entries'](_0x249db8['markerAttributes'])){const _0x13c9f4=_0xb62c91['model']['markers']['get'](_0x260cae),_0x3915e2=_0x13c9f4?_0x13c9f4['getRange']()['getContainedElement']():null;_0x3915e2&&_0xfe57a9['set'](_0x3915e2,_0x18ec52);}}_0xb62c91['model']['change'](_0x1f2408=>{for(const [_0x12e4ab,_0xf24542]of _0xfe57a9)_0x1f2408['setAttributes']({...Ce,..._0xf24542},_0x12e4ab);});});const _0xc359e3=(_0x3cab0a,_0x48944a)=>{_0x46a615['_suggestionFactory']['registerCustomCallback'](_0x3cab0a,'tablePaste',_0x48944a,(_0x33fe6f,_0x452797,_0x47759b)=>{_0xb62c91['model']['change'](_0x20785f=>{const _0x5a27d7=[];for(const _0x4419ce of _0x33fe6f){const _0x14e5f3=_0x4419ce['start']['nodeAfter'];_0x14e5f3['is']('element','tableCellSuggestion')&&_0x5a27d7['push'](_0x14e5f3);}_0x46a615['_suggestionFactory']['getSuggestionCallback'](_0x3cab0a,null,_0x48944a)(_0x33fe6f,_0x452797,_0x47759b);for(const _0x5aa503 of _0x5a27d7)'$graveyard'!=_0x5aa503['root']['rootName']&&_0x20785f['unwrap'](_0x5aa503);});});};_0xc359e3('insertion','accept'),_0xc359e3('insertion','discard'),_0xc359e3('deletion','accept'),_0xc359e3('deletion','discard'),_0x46a615['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5336d1=>{const _0x2ae2e7=_0x5336d1['map'](_0x1e3dc2=>_0x1e3dc2['getContainedElement']()),_0x39f141=_0x2ae2e7[0x0]['findAncestor']('table'),{minRow:_0x3c00fb,maxRow:_0xbb7d2e}=_0x4ef014['_getCoordsForCells'](_0x2ae2e7);_0x295e35['removeRows'](_0x39f141,{'at':_0x3c00fb,'rows':_0xbb7d2e-_0x3c00fb+0x1});}),_0x46a615['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4c4ec7=>{const _0x1820f3=_0x4c4ec7['map'](_0x308459=>_0x308459['getContainedElement']()),_0x5a5b57=_0x1820f3[0x0]['findAncestor']('table'),{minColumn:_0x4d07d5,maxColumn:_0x14cc2a}=_0x4ef014['_getCoordsForCells'](_0x1820f3);_0x295e35['removeColumns'](_0x5a5b57,{'at':_0x4d07d5,'columns':_0x14cc2a-_0x4d07d5+0x1});});const _0x1ea3d2=(_0x177165,_0x54fe1a)=>{if(!_0x54fe1a['subType']||!_0x54fe1a['subType']['startsWith']('tablePaste'))return;const _0x4ca0c7=_0x54fe1a['attributes']['tablePasteChainId'],_0x4f1d40=_0x46a615['getSuggestions']()['filter'](_0x46c5fa=>_0x46c5fa['isInContent']&&_0x46c5fa['attributes']&&_0x46c5fa['attributes']['tablePasteChainId']==_0x4ca0c7);_0x4f1d40['length']&&_0x54fe1a['getAllAdjacentSuggestions']()['length']!=_0x4f1d40['length']&&_0x4f1d40['reduce']((_0x19a9bb,_0x17f466)=>(_0x19a9bb['next']=_0x17f466,_0x17f466['previous']=_0x19a9bb,_0x17f466));};function _0x41bef4(_0x36d964,_0x1b0c28=!0x0){const {id:_0x3304a1}=_0x46a615['_splitMarkerName'](_0x36d964['markerName']),_0x339882=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1630ba=_0x46a615['activeMarkers']['includes'](_0x36d964['markerName']);return _0x1630ba&&_0x339882['push']('ck-suggestion-marker--active'),{'classes':_0x339882,'attributes':{'data-suggestion':_0x3304a1},'priority':_0x1630ba&&_0x1b0c28?0xbc2:0xbb8};}_0x46a615['on']('suggestionLoaded',_0x1ea3d2,{'priority':'high'}),_0x46a615['on']('suggestionUnloaded',_0x1ea3d2,{'priority':'high'}),_0xb62c91['model']['document']['registerPostFixer'](()=>{let _0x10ec19=!0x1;const _0x4e6417=Array['from'](_0xb62c91['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25813c,data:_0x36e97b}of _0x4e6417){const {group:_0x19509e,type:_0x305f86,id:_0x458698}=_0x46a615['_splitMarkerName'](_0x25813c);if('suggestion'!=_0x19509e||'deletion'!=_0x305f86||_0x36e97b['oldRange'])continue;if(!_0x46a615['hasSuggestion'](_0x458698))continue;const _0x233886=_0x46a615['getSuggestion'](_0x458698)['getRanges'](),_0x3fa1c8=_0xb62c91['plugins']['get']('Users')['me'];for(const _0x2d22c4 of _0x46a615['getSuggestions']()){if(!_0x2d22c4['isInContent']||_0x2d22c4['author']!=_0x3fa1c8)continue;if('formatBlock'!=_0x2d22c4['type']||'tablePasteCell'!=_0x2d22c4['subType'])continue;if(_0x2d22c4['getRanges']()['every'](_0x13b006=>_0x233886['some'](_0x4f0681=>_0x4f0681['containsRange'](_0x13b006,!0x0)))){for(const _0xa9cafb of _0x2d22c4['getAllAdjacentSuggestions']())_0xa9cafb['isInContent']&&(_0xa9cafb['discard'](),_0x10ec19=!0x0);}}}return _0x10ec19;}),_0xb62c91['model']['document']['registerPostFixer'](_0x57b980=>{const _0x3cb173=_0xb62c91['commands']['get']('redo');if(!_0x3cb173||!_0x3cb173['_createdBatches']['has'](_0x57b980['batch']))return!0x1;let _0x29c117=!0x1;const _0x914a2a=_0xb62c91['plugins']['get']('Users')['me'],_0xcfd4f0=_0xb62c91['model']['document']['differ']['getChanges'](),_0x137871=Array['from'](_0xb62c91['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2e2752,data:_0x2c19a6})=>{const {group:_0x171f73,subType:_0x4cf44b,authorId:_0x303a3e}=_0x46a615['_splitMarkerName'](_0x2e2752);return'suggestion'==_0x171f73&&'tablePaste'==_0x4cf44b&&_0x303a3e==_0x914a2a['id']&&!_0x2c19a6['oldRange'];});for(const _0x32e410 of _0xcfd4f0){if('insert'!=_0x32e410['type']||'tableCellSuggestion'!=_0x32e410['name']||0x1!=_0x32e410['length'])continue;const _0x5dbf12=_0x57b980['createRange'](_0x32e410['position'],_0x32e410['position']['getShiftedBy'](0x1));if(!_0x137871['find'](({data:_0x94ac7b})=>_0x94ac7b['newRange']['isEqual'](_0x5dbf12))){for(const {name:_0x1133b6,data:_0x3c656e}of _0x137871)if(_0x5dbf12['containsRange'](_0x3c656e['newRange'])){_0x57b980['updateMarker'](_0x1133b6,{'range':_0x5dbf12}),_0x29c117=!0x0;break;}}}return _0x29c117;}),_0xb62c91['model']['document']['registerPostFixer'](_0x29f0be=>{let _0x41d13e=!0x1;const _0x2e9396=_0xb62c91['plugins']['get']('Users')['me'],_0xc2d077=_0x46a615['getSuggestions']()['filter'](_0x5089a4=>_0x5089a4['isInContent']&&_0x5089a4['author']==_0x2e9396),_0x4842fc=new Set(),_0x55e8d7=new Set();for(const _0x1a282b of _0xc2d077)if('tablePaste'==_0x1a282b['subType'])for(const _0x50591c of _0x1a282b['getMarkers']()){const _0x4e80da=_0x50591c['getRange']()['getContainedElement']();if(_0x4e80da){if(_0x4e80da['is']('element','tableCellSuggestion')&&Pe(_0x4e80da)){_0x1a282b['removeMarker'](_0x50591c['name']),_0x4842fc['add'](_0x4e80da),_0x41d13e=!0x0;const _0x449fb8=_0x4e80da['nextSibling'],_0xdc0c98=_0x4e80da['previousSibling'],_0xe27514=_0x449fb8&&_0x449fb8['is']('element','tableCellSuggestion'),_0xf6b7f9=_0xdc0c98&&_0xdc0c98['is']('element','tableCellSuggestion');_0xe27514&&!_0x4842fc['has'](_0x449fb8)&&_0x55e8d7['add'](_0x449fb8),_0xf6b7f9&&!_0x4842fc['has'](_0xdc0c98)&&_0x55e8d7['add'](_0xdc0c98);}else _0x4e80da['is']('element','paragraph')&&_0x4e80da['isEmpty']&&(_0x1a282b['removeMarker'](_0x50591c['name']),_0x41d13e=!0x0);}}else{if('tablePasteCell'==_0x1a282b['subType']){if(!_0x1a282b['attributes']||!_0x1a282b['attributes']['tablePasteChainId'])continue;const _0x5f27d9=_0x1a282b['attributes']['markerAttributes'];if(_0x5f27d9&&Object['keys'](_0x5f27d9)['length'])continue;const _0x387c47=_0x1a282b['attributes']['tablePasteChainId'];let _0x102b73=!0x0,_0x1cdedb=!0x0;for(const _0x20d13b of _0xc2d077)if(_0x20d13b['subType']&&_0x20d13b['subType']['startsWith']('tablePaste')){if(!_0x20d13b['attributes']['tablePasteChainId']){_0x1cdedb=!0x1;break;}if(_0x20d13b['id']!=_0x1a282b['id']&&_0x20d13b['attributes']['tablePasteChainId']==_0x387c47){_0x102b73=!0x1;break;}}_0x1cdedb&&_0x102b73&&(_0x1a282b['removeMarkers'](),_0x41d13e=!0x0);}}for(const _0x1b30a4 of _0x4842fc)_0x29f0be['remove'](_0x1b30a4);for(const _0x135dca of _0x55e8d7)_0x29f0be['unwrap'](_0x135dca);return _0x41d13e;}),_0xb62c91['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5eea4a,_0x193b92)=>_0x41bef4(_0x5eea4a),'converterPriority':'high'}),_0xb62c91['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x19f17c,_0x4c6a54)=>_0x4c6a54['options']['showSuggestionHighlights']?_0x41bef4(_0x19f17c,!0x1):null,'converterPriority':'high'});const _0x46247d=_0xb62c91['editing']['view'];this['listenTo'](_0x46247d['document'],'clipboardOutput',(_0x45a21d,_0x461883)=>{const _0x53887b=[];for(const _0x340a89 of _0x46247d['createRangeIn'](_0x461883['content'])['getItems']())_0x340a89['is']('element','suggestion-td')&&_0x53887b['push'](_0x340a89);_0x46247d['change'](_0x4a24ba=>{for(const _0x20d3a of _0x53887b)_0x4a24ba['move'](_0x4a24ba['createRangeIn'](_0x20d3a),_0x4a24ba['createPositionBefore'](_0x20d3a)),_0x4a24ba['remove'](_0x20d3a);});});}}function Pe(_0x4f344e){if(_0x4f344e['isEmpty'])return!0x0;const _0x3290dc=_0x4f344e['getChild'](0x0);return _0x3290dc['is']('element','paragraph')&&_0x3290dc['isEmpty'];}function he(_0x42ab2a,_0x3dac5b={},_0x4f4829){for(const {isAnchor:_0x40c4a8,cellHeight:_0x1c3713,cellWidth:_0x4388ef}of _0x4f4829['createTableWalker'](_0x42ab2a,{'includeAllSlots':!0x0,..._0x3dac5b}))if(!_0x40c4a8||0x1!=_0x1c3713||0x1!=_0x4388ef)return!0x1;return!0x0;}class vt extends _0x36bcf3{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x271764=this['editor']['plugins']['get']('TrackChangesEditing');_0x271764['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x271764['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x271764['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x271764['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x271764['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x271764['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2bd207,_0x3063f8){const _0x82c32e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d245c=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4dcb0f=_0x3063f8['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5092c5=_0x3d245c['getColumnGroupElement'](_0x4dcb0f);let _0x36f63d=_0x5092c5?_0x3d245c['getTableColumnsWidths'](_0x5092c5):null,_0x3806d1=_0x4dcb0f['getAttribute']('tableWidth')||null;const _0x4890f3=_0x3063f8['tableWidth']||_0x3806d1,_0x23e6a7=_0x3063f8['columnWidths']||_0x36f63d,_0x51c720=this['editor']['plugins']['get']('Users')['me'];for(const _0x46a5ef of _0x82c32e['getSuggestions']()){const _0x12f05b=_0x46a5ef['getContainedElement']();if('resizeTable'===_0x46a5ef['subType']&&_0x12f05b===_0x4dcb0f){_0x46a5ef['author']!==_0x51c720&&_0x46a5ef['discard']();const _0x54046c=_0x46a5ef['data']['commandParams'];_0x3806d1=_0x54046c[0x0]['tableWidth'],_0x36f63d=_0x54046c[0x0]['columnWidths'];break;}}_0x2bd207({'table':_0x4dcb0f,'tableWidth':_0x4890f3,'columnWidths':_0x23e6a7}),_0x82c32e['markBlockFormat'](_0x4dcb0f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3806d1,'columnWidths':_0x36f63d}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x481f35){if('formatBlock'!=_0x481f35['type']&&'formatInline'!=_0x481f35['type'])return;const {data:_0xc7378c}=_0x481f35;if(_0xc7378c&&'resizeTable'===_0xc7378c['formatGroupId']){const _0x4f045='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4f045)};}}}class Ct extends _0x36bcf3{['afterInit'](){const _0x5e505b=this['editor'];_0x5e505b['plugins']['has']('Template')&&_0x5e505b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x36bcf3{['afterInit'](){const _0x32fe67=this['editor'];if(!_0x32fe67['commands']['get']('insertTableOfContents'))return;_0x32fe67['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3faf8a=_0x32fe67['plugins']['get']('TrackChangesEditing'),_0xb2e2d5=_0x32fe67['locale'];_0x3faf8a['descriptionFactory']['registerElementLabel']('tableOfContents',_0x182833=>o(_0xb2e2d5,'ELEMENT_TABLE_OF_CONTENTS',_0x182833));}}class Nt extends _0x36bcf3{['afterInit'](){const _0x148573=this['editor'];if(!_0x148573['plugins']['has']('Title'))return;const _0x39bbdc=_0x148573['plugins']['get']('TrackChangesEditing');_0x39bbdc['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x148573['locale'],'ELEMENT_TITLE')),_0x148573['model']['document']['registerPostFixer'](_0x2ae2a1=>{let _0x333a35=!0x1;const _0x1d2004=Array['from'](_0x148573['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x393896,data:_0x51a2ec}of _0x1d2004){const {group:_0x57f7f1}=_0x39bbdc['_splitMarkerName'](_0x393896);if('suggestion'!==_0x57f7f1||!_0x51a2ec['newRange'])continue;const _0x13942a=_0x51a2ec['newRange'],_0x3940a4=_0x13942a['end']['nodeBefore'];if(!_0x3940a4||!_0x3940a4['is']('element','title-content'))continue;if(!_0x13942a['start']['isTouching'](_0x13942a['end']))continue;const _0x3402f7=_0x148573['model']['schema']['getNearestSelectionRange'](_0x13942a['end'],'forward');if(_0x3402f7&&_0x3402f7['isCollapsed']){const _0x599459=_0x2ae2a1['createRange'](_0x13942a['start'],_0x3402f7['start']);_0x599459['isEqual'](_0x13942a)||(_0x2ae2a1['updateMarker'](_0x393896,{'range':_0x599459}),_0x333a35=!0x0);}_0x333a35||(_0x2ae2a1['removeMarker'](_0x393896),_0x333a35=!0x0);}return _0x333a35;});}}class Dt extends _0x36bcf3{['afterInit'](){const _0x2efd72=this['editor'],_0x32e0b0=_0x2efd72['plugins']['get']('TrackChangesEditing');_0x2efd72['plugins']['has']('UndoEditing')&&(_0x32e0b0['enableCommand']('undo'),_0x32e0b0['enableCommand']('redo'));}}class Mt extends _0x36bcf3{static get['requires'](){return[jt];}['afterInit'](){const _0x584b2a=this['editor'];if(!_0x584b2a['plugins']['has']('TableCaptionEditing'))return;_0x584b2a['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x36bcf3{['tableProperties'];['tableCellProperties'];constructor(_0x27984f){super(_0x27984f),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 _0x47c7ab=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x24e995 of this['tableProperties'])_0x47c7ab['enableCommand'](_0x24e995,(_0x2dfa1d,_0x4ce999)=>{const _0x19cd8e=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x24e995,[_0x19cd8e],this['tableProperties'],'tableProperties',_0x2dfa1d,_0x4ce999);});_0x47c7ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x47c7ab['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x47c7ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x56c1cb,_0x2915c1)=>this['handleDiscardAction'](this['tableProperties'],_0x56c1cb,_0x2915c1)),_0x47c7ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x135dee of this['tableCellProperties'])_0x47c7ab['enableCommand'](_0x135dee,(_0x1477f5,_0x564d99)=>{const _0x26872f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x135dee,_0x26872f,this['tableCellProperties'],'tableCellProperties',_0x1477f5,_0x564d99);});_0x47c7ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x47c7ab['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x47c7ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x428d97,_0x240421)=>this['handleDiscardAction'](this['tableCellProperties'],_0x428d97,_0x240421)),_0x47c7ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x47c7ab['descriptionFactory']['registerDescriptionCallback'](_0x2ca6a2=>this['handleSuggestionDescription'](_0x2ca6a2));}['_handlePropertyChange'](_0x4da5c1,_0x3872d9,_0x389d76,_0x32c17e,_0x22ba44,_0xc98e81){const _0x60726c=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xc98e81['batch'],()=>{for(const _0x563de8 of _0x3872d9){if(this['_getSuggestion'](_0x563de8,_0x32c17e))_0x22ba44(_0xc98e81);else{const _0x40dab6={};for(const _0x1a070b of _0x389d76){const _0x21eeb4=_0x563de8['getAttribute'](_0x1a070b);void 0x0!==_0x21eeb4&&(_0x40dab6[_0x1a070b]=_0x21eeb4);}_0x22ba44(_0xc98e81),_0x60726c['markBlockFormat'](_0x563de8,{'commandParams':[_0x40dab6]},[],_0x32c17e);}}});}['handleDiscardAction'](_0x5efd30,_0xf1d897,_0x46a0d4){const _0x2403b1=_0xf1d897[0x0]['start']['nodeAfter'],_0x1d9ac9=_0x46a0d4['commandParams'][0x0];this['editor']['model']['change'](_0xc77709=>{for(const _0x5ef20c of _0x5efd30)void 0x0!==_0x1d9ac9[_0x5ef20c]?_0xc77709['setAttribute'](_0x5ef20c,_0x1d9ac9[_0x5ef20c],_0x2403b1):_0xc77709['removeAttribute'](_0x5ef20c,_0x2403b1);});}['handleSuggestionDescription'](_0x536c14){if(_0x536c14['data'])switch(_0x536c14['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'](_0x4323cc,_0x2f9e74){const _0x4c7d50=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x705378 of _0x4c7d50['getSuggestions']({'skipNotAttached':!0x0})){const _0x444acb=_0x705378['getContainedElement']();if(_0x705378['subType']===_0x2f9e74&&_0x444acb===_0x4323cc)return _0x705378;}return null;}}const m='$elementName';class p extends _0x36bcf3{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4d2226,_0x13cfed,E,O,V,U,F,G,L,H,J,K,W,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,z,lt,ct,q,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Nt,Dt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x43fb50){function _0x3d98ac(_0x36586f){return _0x36586f['map'](_0x3ac9c8=>String['fromCharCode'](_0x3ac9c8))['join']('');}super(_0x43fb50),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4ef6f4,_0x13ddf1,_0x5c84c8,_0x39eaee)=>{this['_model']['change'](()=>{for(const _0x5952a1 of[..._0x39eaee,..._0x5c84c8])this['_model']['markers']['has'](_0x5952a1)&&_0x43fb50['editing']['reconvertMarker'](_0x5952a1);});}),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']=_0x43fb50['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(),_0x43fb50['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x43fb50['config']['get']('trackChanges.trackFormatChanges'),_0x43fb50['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x43fb50['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x43fb50,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x3d98ac([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3d98ac([0x34,0x30,0x34,0x38,0x31,0x34,0x35,0x30]);}['init'](){const _0x9eecd0=this['editor'],_0x5e3dad=(_0x517eae,_0x468d1d)=>{if('attribute'!=_0x517eae)return'ck-suggestion-marker-'+_0x517eae;const _0x139714=_0x468d1d['split']('|')[0x0];return this['_isBlockAttribute'](_0x139714)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x9eecd0['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x38462c=>{const {id:_0x30eedf,type:_0x410a10,subType:_0x542cd4}=this['_splitMarkerName'](_0x38462c['markerName']),_0xacc73b=['ck-suggestion-marker',_0x5e3dad(_0x410a10,_0x542cd4)];let _0xae73e8=0xbb8;return this['activeMarkers']['includes'](_0x38462c['markerName'])&&(_0xacc73b['push']('ck-suggestion-marker--active'),_0xae73e8=0xbc2),'deletion'==_0x410a10&&(_0xae73e8+=0x5),{'classes':_0xacc73b,'attributes':{'data-suggestion':_0x30eedf},'priority':_0xae73e8};}}),_0x9eecd0['conversion']['for']('dataDowncast')['add'](_0x169f07=>{_0x169f07['on']('addMarker:suggestion',(_0x2914c8,_0x2f176d,_0x20e52f)=>{if(!_0x20e52f['options']['showSuggestionHighlights'])return;const _0x4adf8e=_0x2f176d['item'];if(!_0x4adf8e)return;const _0x2bd77e=_0x20e52f['mapper']['toViewElement'](_0x4adf8e);_0x9eecd0['model']['schema']['isObject'](_0x4adf8e)&&_0x2bd77e&&!_0x2bd77e['getCustomProperty']('widget')&&_0x2bd77e['is']('containerElement')&&_0x481485(_0x2bd77e,_0x20e52f['writer']);},{'priority':'high'});}),_0x9eecd0['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x6709e8,_0x14ea8f)=>{if(!_0x14ea8f['options']['showSuggestionHighlights'])return null;const {type:_0x360ff5,subType:_0x5644e3}=this['_splitMarkerName'](_0x6709e8['markerName']);return{'classes':['ck-suggestion-marker',_0x5e3dad(_0x360ff5,_0x5644e3)],'priority':0xbb8};}});const _0x292a6a=({showActiveMarkers:_0x45c70e=!0x0,isAttributeSuggestion:_0x3dbc4b=!0x1}={})=>(_0x3b69fd,_0x553c05,_0x2ad08c)=>{if(!_0x553c05['item'])return;const {id:_0x9e4606}=this['_splitMarkerName'](_0x553c05['markerName']);if(_0x3dbc4b){const _0x4bfd68=this['_suggestions']['get'](_0x9e4606),_0x17410f=this['_getAttributeKey'](_0x4bfd68);if(!this['_isBlockAttribute'](_0x17410f))return;}if(_0x553c05['item']['is']('selection'))return void _0x2ad08c['consumable']['consume'](_0x553c05['item'],_0x3b69fd['name']);const _0x228adb=_0x2ad08c['mapper']['toViewElement'](_0x553c05['item']);if(_0x553c05['item']['is']('element')&&_0x9eecd0['model']['schema']['isBlock'](_0x553c05['item'])&&!_0x228adb['getCustomProperty']('addHighlight')){_0x2ad08c['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x228adb),_0x2ad08c['writer']['setAttribute']('data-suggestion',_0x9e4606,_0x228adb),_0x2ad08c['mapper']['bindElementToMarker'](_0x228adb,_0x553c05['markerName']),_0x45c70e&&(this['activeMarkers']['includes'](_0x553c05['markerName'])?_0x2ad08c['writer']['addClass']('ck-suggestion-marker--active',_0x228adb):_0x2ad08c['writer']['removeClass']('ck-suggestion-marker--active',_0x228adb));for(const _0x24b85a of _0x9eecd0['model']['createRangeIn'](_0x553c05['item'])['getItems']())_0x2ad08c['consumable']['consume'](_0x24b85a,_0x3b69fd['name']);_0x2ad08c['consumable']['consume'](_0x553c05['item'],_0x3b69fd['name']);}};_0x9eecd0['conversion']['for']('dataDowncast')['add'](_0x2cf0de=>{_0x2cf0de['on']('addMarker:suggestion:formatBlock',(_0x5674ed,_0x4901ea,_0x3b55b7)=>{_0x3b55b7['options']['showSuggestionHighlights']&&_0x292a6a({'showActiveMarkers':!0x1})(_0x5674ed,_0x4901ea,_0x3b55b7);},{'priority':'highest'});}),_0x9eecd0['conversion']['for']('dataDowncast')['add'](_0x5eb11c=>{_0x5eb11c['on']('addMarker:suggestion:attribute',(_0x304b27,_0x4560eb,_0x264efd)=>{_0x264efd['options']['showSuggestionHighlights']&&_0x292a6a({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x304b27,_0x4560eb,_0x264efd);},{'priority':'highest'});}),_0x9eecd0['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1c63df,_0x400067)=>_0x400067['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1c63df['substr'](0xb)}}),_0x9eecd0['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4732ae,{writer:_0xdfbbdd})=>{let _0xdf68be='suggestion:'+_0x4732ae['getAttribute']('suggestion-type')+':'+_0x4732ae['getAttribute']('id');return _0x4732ae['getAttribute']('marker-count')&&(_0xdf68be+=':'+_0x4732ae['getAttribute']('marker-count')),_0xdfbbdd['createElement']('$marker',{'data-name':_0xdf68be});}}),_0x9eecd0['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x9eecd0['conversion']['for']('editingDowncast')['add'](_0x239760=>{_0x239760['on']('addMarker:suggestion:formatBlock',_0x292a6a(),{'priority':'high'});}),_0x9eecd0['conversion']['for']('editingDowncast')['add'](_0x1b774a=>{_0x1b774a['on']('addMarker:suggestion:attribute',_0x292a6a({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x9eecd0['conversion']['for']('editingDowncast')['add'](_0x26ef0f=>{_0x26ef0f['on']('removeMarker:suggestion:formatBlock',(_0xb68ab8,_0x3fe52d,_0x5bbe12)=>{const _0x3f01e7=_0x5bbe12['mapper']['markerNameToElements'](_0x3fe52d['markerName']);if(_0x3f01e7){for(const _0x5e729b of _0x3f01e7)_0x5e729b['getCustomProperty']('addHighlight')||(_0x5bbe12['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5e729b),_0x5bbe12['writer']['removeAttribute']('data-suggestion',_0x5e729b),_0x5bbe12['mapper']['unbindElementFromMarkerName'](_0x5e729b,_0x3fe52d['markerName']));}},{'priority':'high'});}),_0x9eecd0['conversion']['for']('editingDowncast')['add'](_0xe8825b=>{_0xe8825b['on']('removeMarker:suggestion:attribute',(_0x503010,_0x5d3c06,_0x3bc6eb)=>{const _0x28d8fd=_0x3bc6eb['mapper']['markerNameToElements'](_0x5d3c06['markerName']);if(!_0x28d8fd)return;const {id:_0xccadbb}=this['_splitMarkerName'](_0x5d3c06['markerName']),_0x3e1f41=this['_suggestions']['get'](_0xccadbb),_0x44ebe1=this['_getAttributeKey'](_0x3e1f41);if(this['_isBlockAttribute'](_0x44ebe1)){for(const _0x4d703a of _0x28d8fd)_0x4d703a['getCustomProperty']('addHighlight')||(_0x3bc6eb['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4d703a),_0x3bc6eb['writer']['removeAttribute']('data-suggestion',_0x4d703a),_0x3bc6eb['mapper']['unbindElementFromMarkerName'](_0x4d703a,_0x5d3c06['markerName']));}},{'priority':'high'});}),_0x9eecd0['model']['document']['registerPostFixer'](_0x1130d4=>{let _0x3b11ea=!0x1;const _0x51d294=Array['from'](_0x9eecd0['model']['document']['differ']['getChangedMarkers']()),_0x2329dc=new Set();for(const {name:_0x15229f,data:_0x103dce}of _0x51d294){const {group:_0x575a23,type:_0x523335,subType:_0x1d60b0,id:_0x32239a}=this['_splitMarkerName'](_0x15229f);if('suggestion'!==_0x575a23)continue;const _0x43691c=this['_suggestions']['get'](_0x32239a);if(null!=_0x103dce['newRange']){'formatInline'==_0x523335&&(_0x3b11ea=_0x3b11ea||Et(_0x103dce['newRange'],_0x15229f,_0x1130d4,_0x9eecd0['model']['schema']));const _0xafb185='attribute'==_0x523335&&this['_isBlockAttribute'](_0x1d60b0['split']('|')[0x0]);if(_0x103dce['newRange']['isCollapsed']||'$graveyard'==_0x103dce['newRange']['root']['rootName']||'formatBlock'==_0x523335&&!Vt(_0x103dce['newRange'])||_0xafb185&&!Vt(_0x103dce['newRange'])||'deletion'==_0x523335&&!(!Tt(_0x56b5ad=_0x103dce['newRange'])&&!function(_0xf18393){return _0xf18393['start']['parent']==_0xf18393['end']['nodeBefore']&&_0xf18393['start']['isAtEnd'];}(_0x56b5ad)))_0x1130d4['removeMarker'](_0x15229f),_0x3b11ea=!0x0;else{if(!_0x43691c||!_0x43691c['isInContent'])continue;if(_0x103dce['newRange']&&_0x103dce['oldRange']&&_0x103dce['newRange']['isEqual'](_0x103dce['oldRange']))continue;_0x2329dc['add'](_0x43691c);}}}var _0x56b5ad;return _0x2329dc['size']>0x0&&(_0x3b11ea=!!this['_joinWithAdjacentSuggestions'](_0x2329dc)||_0x3b11ea),_0x3b11ea;}),_0x9eecd0['model']['document']['registerPostFixer'](_0x445080=>{let _0x41f156=!0x1;for(const _0x438f2e of _0x9eecd0['model']['document']['differ']['getChanges']())if('insert'==_0x438f2e['type'])for(const _0x374260 of this['_suggestions']['values']()){if(_0x374260['isMultiRange']||!_0x374260['isInContent'])continue;const _0x14cb03='formatBlock'==_0x374260['type'],_0x302bac=this['_getAttributeKey'](_0x374260),_0x4f3965=_0x302bac&&this['_isBlockAttribute'](_0x302bac);if(!_0x14cb03&&!_0x4f3965)continue;const _0x5d6cfa=_0x374260['getFirstRange']();if(_0x5d6cfa['start']['parent']!=_0x5d6cfa['end']['parent']&&!_0x5d6cfa['end']['isAtEnd']){const _0x1f5fcd=_0x9eecd0['model']['createPositionAt'](_0x5d6cfa['start']['nodeAfter'],'end'),_0x3eac31=_0x9eecd0['model']['createRange'](_0x5d6cfa['start'],_0x1f5fcd);_0x445080['updateMarker'](_0x374260['getFirstMarker'](),{'range':_0x3eac31}),_0x41f156=!0x0;}}return _0x41f156;}),_0x9eecd0['model']['document']['registerPostFixer'](_0x2cdad8=>this['_processAttributeChanges'](_0x2cdad8)),_0x9eecd0['model']['document']['registerPostFixer'](_0x41efcc=>!_0x41efcc['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x41efcc)),_0x9eecd0['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x9eecd0['model']['document']['on']('change:data',(_0x45079e,_0x323eb3)=>{if(!_0x323eb3['isLocal']||_0x323eb3['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x13e27a=_0x9eecd0['model']['document']['differ']['getChanges']();if(0x0==_0x13e27a['length'])return;const _0x2dcecf=[],_0x45d93e=_0x13e27a['filter'](_0x158250=>'attribute'==_0x158250['type']),_0x428f30=_0x13e27a['filter'](_0x4c498b=>'insert'==_0x4c498b['type']&&'$text'!=_0x4c498b['name']);for(const _0x1ab9af of _0x45d93e)this['_isRegisteredAttribute'](_0x1ab9af['attributeKey'])&&_0x2dcecf['push']({'key':_0x1ab9af['attributeKey'],'newValue':_0x1ab9af['attributeNewValue'],'oldValue':_0x1ab9af['attributeOldValue'],'range':Ut(_0x1ab9af['range'],_0x9eecd0['model'])});for(const _0x2dcfeb of _0x428f30){if('rename'!=_0x2dcfeb['action']&&'refresh'!=_0x2dcfeb['action'])continue;const _0x4f95c4=Gt(_0x2dcfeb['position']['nodeAfter'],_0x9eecd0['model']),_0x4f9d50=_0x2dcfeb['before'];'rename'==_0x2dcfeb['action']&&_0x2dcecf['push']({'key':m,'newValue':_0x2dcfeb['name'],'oldValue':_0x4f9d50['name'],'range':_0x4f95c4});for(const [_0xbbd44c,_0x28e765]of _0x4f9d50['attributes']){if(!this['_isRegisteredAttribute'](_0xbbd44c))continue;const _0x38231d=_0x2dcfeb['attributes']['get'](_0xbbd44c);_0x28e765!==_0x38231d&&_0x2dcecf['push']({'key':_0xbbd44c,'newValue':_0x38231d,'oldValue':_0x28e765,'range':_0x4f95c4});}for(const [_0x26228c,_0x258b26]of _0x2dcfeb['attributes'])this['_isRegisteredAttribute'](_0x26228c)&&(_0x4f9d50['attributes']['has'](_0x26228c)||_0x2dcecf['push']({'key':_0x26228c,'newValue':_0x258b26,'oldValue':null,'range':_0x4f95c4}));}0x0!=_0x2dcecf['length']&&_0x9eecd0['model']['enqueueChange'](_0x323eb3,_0x2f1a30=>{const _0x4b65b5=_0x3b3746();for(const {range:_0x13ed80,key:_0x1485ef,oldValue:_0x4a44a3,newValue:_0x297a52}of _0x2dcecf)this['markAttributeChange'](_0x13ed80,_0x1485ef,_0x4a44a3,_0x297a52,{'groupId':_0x4b65b5});this['_reduceExistingSuggestions'](_0x2f1a30,_0x2dcecf);});},{'priority':'lowest'}),_0x9eecd0['model']['markers']['on']('update:suggestion',(_0x5cb3a6,_0x3af3f7,_0x193a9a)=>{if(null==_0x193a9a){const {id:_0x1bfc7a}=this['_splitMarkerName'](_0x3af3f7['name']),_0x5c6816=this['_suggestions']['get'](_0x1bfc7a);_0x5c6816&&_0x5c6816['addMarkerName'](_0x3af3f7['name']);}}),_0x9eecd0['model']['document']['on']('change:data',()=>{const _0x494a76=Array['from'](_0x9eecd0['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3bb593=>'suggestion'===this['_splitMarkerName'](_0x3bb593['name'])['group']);if(0x0===_0x494a76['length'])return;_0x494a76['sort']((_0x12adf1,_0x24388d)=>{const _0x56d399=_0x12adf1['data']['oldRange'],_0x1ff5e0=_0x24388d['data']['oldRange'];return null===_0x56d399&&null===_0x1ff5e0?0x0:null===_0x56d399&&null!==_0x1ff5e0?-0x1:null!==_0x56d399&&null===_0x1ff5e0?0x1:_0x56d399['start']['isBefore'](_0x1ff5e0['start'])?-0x1:0x1;});const _0x2a226a=new Set(),_0x187032=new Set();for(const {name:_0x4e8311,data:_0x2724b3}of _0x494a76){const {id:_0x6ed256}=this['_splitMarkerName'](_0x4e8311);if(null===_0x2724b3['oldRange']){const _0xe6f700=this['_handleNewSuggestionMarker'](_0x4e8311);_0x187032['add'](_0xe6f700);}else{const _0x6effc7=this['_suggestions']['get'](_0x6ed256);null!==_0x2724b3['newRange']||_0x6effc7['isInContent']?(_0x2a226a['add'](_0x6effc7['head']),_0x187032['add'](_0x6effc7)):this['_removeSuggestion'](_0x6effc7);}}_0x187032['size']>0x0&&this['_refreshSuggestionsChain'](_0x187032);for(const _0x5b3e64 of _0x2a226a)this['fire']('suggestionChanged',_0x5b3e64);}),_0x9eecd0['model']['on']('applyOperation',(_0x562e1e,_0x35df3f)=>{const _0x3cbed9=_0x35df3f[0x0];if(!this['_suggestions']['size'])return;if(!_0x3cbed9['isDocumentOperation'])return;if(_0x3cbed9['batch']['isUndo']||!_0x3cbed9['batch']['isLocal'])return;let _0x4ac997,_0x128568;switch(_0x3cbed9['type']){case'insert':_0x4ac997=_0x9eecd0['model']['createPositionAt'](_0x3cbed9['position']),_0x128568=_0x4ac997['getShiftedBy'](_0x3cbed9['howMany']);break;case'split':_0x4ac997=_0x9eecd0['model']['createPositionAt'](_0x3cbed9['splitPosition']),_0x128568=_0x9eecd0['model']['createPositionAt'](_0x3cbed9['moveTargetPosition']);break;case'move':_0x4ac997=_0x9eecd0['model']['createPositionAt'](_0x3cbed9['targetPosition']),_0x128568=_0x4ac997['getShiftedBy'](_0x3cbed9['howMany']);break;default:return;}const _0xc14922=_0x9eecd0['model']['createRange'](_0x4ac997,_0x128568);_0x9eecd0['model']['change'](()=>{for(const {suggestion:_0x2640bc,meta:_0x43417a}of this['_findSuggestions'](_0xc14922)){if(_0x2640bc['isMultiRange'])continue;if('formatInline'==_0x2640bc['type'])continue;const _0x5ed97e=this['_getAttributeKey'](_0x2640bc);if(_0x5ed97e&&this['_isBlockAttribute'](_0x5ed97e)&&'split'!=_0x3cbed9['type'])continue;const _0x4c3465=_0x2640bc['data']&&_0x2640bc['data']['multipleBlocks'];('formatBlock'!=_0x2640bc['type']||'split'==_0x3cbed9['type']&&!_0x4c3465)&&(_0x43417a['containsRangeInObject']||'insertion'==_0x2640bc['type']&&_0x43417a['isOwn']||_0x2640bc['getFirstRange']()['containsRange'](_0xc14922)&&this['_breakSuggestionMarker'](_0x2640bc,_0x4ac997,_0x128568));}});},{'priority':'lowest'}),_0x9eecd0['model']['on']('deleteContent',(_0x2eff03,_0x28735a)=>{const _0x1712d0=_0x28735a[0x0],_0x4bc260=_0x28735a[0x1];if(_0x4bc260&&_0x4bc260['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1712d0['isCollapsed'])return;const _0x590092=_0x9eecd0['model']['schema'],{start:_0xbdb1df,end:_0x715ab9}=_0x1712d0['getFirstRange'](),_0x549f4e=_0xbdb1df['nodeAfter']&&_0x590092['isLimit'](_0xbdb1df['nodeAfter'])?null:_0x590092['getNearestSelectionRange'](_0xbdb1df,'forward'),_0x52f481=_0x715ab9['nodeBefore']&&_0x590092['isLimit'](_0x715ab9['nodeBefore'])?null:_0x590092['getNearestSelectionRange'](_0x715ab9,'backward'),_0x3a3ed5=_0x9eecd0['model']['createRange'](_0x549f4e?_0x549f4e['start']:_0xbdb1df,_0x52f481?_0x52f481['end']:_0x715ab9);_0x9eecd0['model']['change'](_0xc5d5c3=>{this['markDeletion'](_0x3a3ed5);const _0x1701b9=_0x9eecd0['model']['schema']['getNearestSelectionRange'](_0x3a3ed5['start']);_0x1712d0['is']('documentSelection')?_0xc5d5c3['setSelection'](_0x1701b9):_0x1712d0['setTo'](_0x1701b9);}),_0x2eff03['stop']();},{'priority':_0xd2770e['normal']+0xa}),_0x9eecd0['model']['on']('insertContent',(_0x3f08b0,_0x49d16d)=>{const _0xa0a3a8=_0x49d16d[_0x49d16d['length']-0x1];_0xa0a3a8&&_0xa0a3a8['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x9eecd0['model']['change'](()=>{let _0x24ec23=_0x9eecd0['model']['insertContent'](_0x49d16d[0x0],_0x49d16d[0x1],_0x49d16d[0x2],{'forceDefaultExecution':!0x0});if(!_0x24ec23)return;_0x3f08b0['return']=_0x24ec23['clone']();const _0x2a0d95=_0x24ec23['end']['nodeBefore'],_0x408c08=_0x9eecd0['model']['schema'];_0x2a0d95&&_0x408c08['isBlock'](_0x2a0d95)&&!_0x408c08['isObject'](_0x2a0d95)&&(_0x24ec23=_0x9eecd0['model']['createRange'](_0x24ec23['start'],_0x9eecd0['model']['createPositionAt'](_0x2a0d95,'end'))),this['markInsertion'](_0x24ec23);}),_0x3f08b0['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xfb8d45=new $(_0x9eecd0,this['_suggestions']);_0x9eecd0['commands']['add']('acceptSuggestion',_0xfb8d45),this['enableCommand']('acceptSuggestion');const _0x169d3e=new B(_0x9eecd0,this['_suggestions']);_0x9eecd0['commands']['add']('discardSuggestion',_0x169d3e),this['enableCommand']('discardSuggestion'),_0x9eecd0['commands']['add']('acceptAllSuggestions',new x(_0x9eecd0,_0xfb8d45,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x9eecd0['commands']['add']('discardAllSuggestions',new x(_0x9eecd0,_0x169d3e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x9eecd0['commands']['add']('acceptSelectedSuggestions',new R(_0x9eecd0,_0xfb8d45,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x9eecd0['commands']['add']('discardSelectedSuggestions',new R(_0x9eecd0,_0x169d3e,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x12cd95=_0x9eecd0['plugins']['get']('CommentsRepository');this['listenTo'](_0x12cd95,'addComment',(_0x22151e,{threadId:_0x3c94bf})=>{const _0x335dfc=this['_suggestions']['get'](_0x3c94bf);_0x335dfc&&_0x335dfc['commentThread']&&0x1===_0x335dfc['commentThread']['length']&&this['_updateSuggestionData'](_0x3c94bf,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x12cd95,'removeComment',(_0x259f09,{threadId:_0x456c5c})=>{const _0x28a269=this['_suggestions']['get'](_0x456c5c);_0x28a269&&_0x28a269['commentThread']&&!_0x28a269['commentThread']['length']&&this['_updateSuggestionData'](_0x456c5c,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x6c4978){if(this['_adapter'])throw new _0x596a61('track-changes-adapter-already-set',this);this['_adapter']=_0x6c4978;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5bf3d1=!0x1,toJSON:_0x5c90a7=!0x1}={}){const _0x3aced3=[];for(const _0x5cdf6e of this['_suggestions']['values']())_0x5bf3d1&&!_0x5cdf6e['isInContent']||_0x3aced3['push'](_0x5cdf6e);return _0x5c90a7?_0x3aced3['map'](_0x53e534=>_0x53e534['toJSON']()):_0x3aced3;}['getSuggestion'](_0x402820){const _0x519964=this['_suggestions']['get'](_0x402820);if(!_0x519964)throw new _0x596a61('track-changes-suggestion-not-found',this);return _0x519964;}['hasSuggestion'](_0x1f1851){return this['_suggestions']['has'](_0x1f1851);}['addSuggestionData'](_0x55e3d8){const {authorId:_0x3b875a,id:_0x2b9be6,attributes:_0x3d7cb7}=_0x55e3d8,[_0x1d410d,_0x313b27]=_0x55e3d8['type']['split'](':'),_0x426a3c=this['_suggestions']['get'](_0x2b9be6)||this['_createSuggestion'](_0x1d410d,_0x313b27,_0x2b9be6,_0x3b875a,_0x3d7cb7);if(this['_addThreadToSuggestion'](_0x426a3c),this['_checkSuggestionCorrectness'](_0x426a3c,_0x1d410d,_0x313b27||null,_0x3b875a),_0x426a3c['createdAt']=_0x55e3d8['createdAt'],_0x426a3c['_isDataLoaded']=!0x0,_0x3d7cb7&&_0x3d7cb7['@external']){const _0x7a9835=_0x3d7cb7['@external'],_0x89dbfd=this['_getExternalAuthor'](_0x7a9835['authorName']);_0x426a3c['authoredAt']=_0x7a9835['createdAt'],_0x426a3c['author']=_0x89dbfd,_0x426a3c['isExternal']=!0x0;}else _0x426a3c['authoredAt']=_0x55e3d8['createdAt'];switch(_0x55e3d8['data']&&(_0x426a3c['data']=_0x55e3d8['data']),_0x55e3d8['attributes']&&(_0x426a3c['attributes']=_0x55e3d8['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x426a3c['_saved']=!0x0),this['_suggestionState']['get'](_0x426a3c)){case'notReady':this['_suggestionState']['set'](_0x426a3c,'dataReady');break;case'markerReady':_0x426a3c['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x426a3c])),this['_refreshSuggestionsChain'](new Set([_0x426a3c])),this['_suggestionState']['set'](_0x426a3c,'ready'),this['fire']('suggestionLoaded',_0x426a3c)):this['_suggestionState']['set'](_0x426a3c,'removed');}return _0x426a3c;}['acceptSuggestion'](_0x287ca9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1a45b6 of _0x287ca9['getAllAdjacentSuggestions']())_0x1a45b6['accept']();});});}['discardSuggestion'](_0x4c095e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2c4562 of _0x4c095e['getAllAdjacentSuggestions']())_0x2c4562['discard']();});});}['enableCommand'](_0x4b4740,_0x3f7431){const _0x74be20=this['editor']['commands']['get'](_0x4b4740);if(!_0x74be20)throw new _0x596a61('track-changes-command-not-found',this,{'commandName':_0x4b4740});if(this['_enabledCommands']['has'](_0x74be20))throw new _0x596a61('track-changes-enable-command-twice',this,{'commandName':_0x4b4740});this['_enabledCommands']['add'](_0x74be20),_0x3f7431&&_0x74be20['on']('execute',(_0x1d19c3,_0xa6dbd)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0xa6dbd['length']>0x0&&_0xa6dbd[_0xa6dbd['length']-0x1]&&_0xa6dbd[_0xa6dbd['length']-0x1]['forceDefaultExecution']?_0xa6dbd['pop']():(_0x1d19c3['return']=_0x3f7431((..._0x31f4ab)=>_0x74be20['execute'](..._0x31f4ab,{'forceDefaultExecution':!0x0}),..._0xa6dbd),_0x1d19c3['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x332588){let _0x3f86fc,_0x58b54b;const _0x5bb690=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3f86fc=_0x332588();}catch(_0x1fcd1e){_0x58b54b=_0x1fcd1e;}return _0x5bb690||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x58b54b&&_0x596a61['rethrowUnexpectedError'](_0x58b54b,this),_0x3f86fc;}['markInsertion'](_0x34a2b1,_0x1d2991=null,_0x57289b={}){if(_0x34a2b1['isCollapsed'])return null;const _0x59abbb=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1f652e,meta:_0x9f8ff4}of this['_findSuggestions'](_0x34a2b1,'insertion'))if(_0x9f8ff4['isOwn']){if(!_0x9f8ff4['isNextTo']){if(_0x9f8ff4['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x1f652e,_0x57289b))continue;return _0x1f652e;}if(Lt(_0x1f652e,_0x57289b))return _0x1f652e;this['_breakSuggestionMarker'](_0x1f652e,_0x34a2b1['start'],_0x34a2b1['end']);break;}if(_0x1d2991==_0x1f652e['subType']&&Lt(_0x1f652e,_0x57289b)){const _0x4052d8=_0x1f652e['getFirstRange']();return _0x4052d8['start']['isEqual'](_0x34a2b1['end'])?this['_setSuggestionRange'](_0x1f652e,this['_model']['createRange'](_0x34a2b1['start'],_0x4052d8['end'])):this['_setSuggestionRange'](_0x1f652e,this['_model']['createRange'](_0x4052d8['start'],_0x34a2b1['end'])),_0x1f652e;}}const _0x2e9e61=_0x3b3746(),_0x16a95a=_0x59abbb['id'],_0x2579b2=_0x1d2991?'insertion:'+_0x1d2991:'insertion',_0x1e1205=this['_setSuggestionData']({'id':_0x2e9e61,'type':_0x2579b2,'createdAt':new Date(),'authorId':_0x16a95a,'attributes':_0x57289b});return this['_addSuggestionMarker'](_0x2579b2,_0x2e9e61,_0x16a95a,_0x34a2b1),_0x1e1205;}['markMultiRangeInsertion'](_0x405769,_0xbcb389='multi',_0x1d9c43={}){const _0x20bf09=this['editor']['plugins']['get']('Users')['me'],_0x5d454c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xbcb389,'join');for(const _0x448e8f of this['getSuggestions']())if(_0x448e8f['author']['id']==_0x20bf09['id']&&'insertion'==_0x448e8f['type']&&_0x448e8f['subType']==_0xbcb389&&Lt(_0x448e8f,_0x1d9c43)&&(_0x5d454c(_0x448e8f['getRanges'](),_0x405769)||_0x5d454c(_0x405769,_0x448e8f['getRanges']()))){for(const _0x28b7bb of _0x405769)_0x448e8f['addRange'](_0x28b7bb);return _0x448e8f;}for(const {suggestion:_0x2a168d,meta:_0x435662}of this['_findSuggestions'](_0x405769,'insertion')){if(!_0x435662['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x435662['containsRangeInObject'])continue;if(!Lt(_0x2a168d,_0x1d9c43))continue;let _0x5ee2ce=!0x0;for(const _0x1091f8 of _0x2a168d['getRanges']())for(const _0x3f10d9 of _0x405769)if(!_0x1091f8['containsRange'](_0x3f10d9)){_0x5ee2ce=!0x1;break;}if(_0x5ee2ce)return _0x2a168d;}const _0x4248ef=_0x3b3746(),_0x4a6658=_0x20bf09['id'],_0x560e82='insertion:'+_0xbcb389,_0x5cd69a=this['_setSuggestionData']({'id':_0x4248ef,'type':_0x560e82,'createdAt':new Date(),'authorId':_0x4a6658,'attributes':_0x1d9c43});for(const _0x4d4427 of _0x405769)this['_addSuggestionMarker'](_0x560e82,_0x4248ef,_0x4a6658,_0x4d4427,u['getMultiRangeId']());return _0x5cd69a;}['markInlineFormat'](_0x1b99e3,_0x37c13d,_0x3e1790=null,_0x3178ae={}){if(_0x3e1790=_0x3e1790||Ot(_0x37c13d),_0x1b99e3['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x284992=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3e1790,'accept');return this['forceDefaultExecution'](()=>_0x284992([_0x1b99e3],_0x37c13d,_0x3178ae)),null;}const _0x1b1fac=this['editor']['plugins']['get']('Users')['me'],_0x4c0043=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4c4def,meta:_0x55ad26}of this['_findSuggestions'](_0x1b99e3,'insertion'))_0x55ad26['isOwn']&&!_0x55ad26['isInsideObject']&&_0x4c0043['push'](..._0x4c4def['getRanges']());}const _0x1ac995=function(_0x23a911,_0x11980e){const _0x1c3c35=[];for(const _0x3d5437 of _0x11980e){const _0x23bd49=_0x23a911['getIntersection'](_0x3d5437);_0x23bd49&&_0x1c3c35['push'](_0x23bd49);}return _0x1c3c35;}(_0x1b99e3,_0x4c0043),_0xcca0a=function(_0x122a57,_0x282fe9){const _0x1ddce7=[_0x122a57];for(const _0x413cf6 of _0x282fe9){let _0x22ac79=0x0;for(;_0x22ac79<_0x1ddce7['length'];){const _0xc3170a=_0x1ddce7[_0x22ac79]['getDifference'](_0x413cf6);_0x1ddce7['splice'](_0x22ac79,0x1,..._0xc3170a),_0x22ac79+=_0xc3170a['length'];}}return _0x1ddce7;}(_0x1b99e3,_0x4c0043);_0x1ac995['length']&&this['_model']['change'](()=>{for(const _0xe09528 of _0x1ac995){const _0x31384b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3e1790,'accept');this['forceDefaultExecution'](()=>_0x31384b([_0xe09528],_0x37c13d,_0x3178ae));}});for(const _0x41e696 of _0xcca0a){let _0x549dc9=null,_0xd1bb3b=_0x41e696['start'],_0x2281ec=_0x41e696['end'];for(const {suggestion:_0x56bc3d,meta:_0x354da7}of this['_findSuggestions'](_0x41e696,'formatInline')){if(!_0x354da7['isOwn'])continue;if(_0x56bc3d['subType']!=_0x3e1790)continue;if(!Lt(_0x56bc3d,_0x3178ae))continue;const _0x125927=_0x56bc3d['getFirstRange']();if(_0x125927['containsRange'](_0x41e696,!0x0))return null;_0xd1bb3b=_0xd1bb3b['isBefore'](_0x125927['start'])?_0xd1bb3b:_0x125927['start'],_0x2281ec=_0x2281ec['isAfter'](_0x125927['end'])?_0x2281ec:_0x125927['end'],_0x549dc9?_0x125927['start']['isBefore'](_0x549dc9['getFirstRange']()['start'])?(_0x549dc9['removeMarkers'](),_0x549dc9=_0x56bc3d):_0x56bc3d['removeMarkers']():_0x549dc9=_0x56bc3d;}const _0x2459f9=this['_model']['createRange'](_0xd1bb3b,_0x2281ec);if(_0x549dc9)this['_setSuggestionRange'](_0x549dc9,_0x2459f9);else{const _0x23df8e=_0x3b3746(),_0x7c5a40=_0x1b1fac['id'];this['_setSuggestionData']({'id':_0x23df8e,'type':'formatInline:'+_0x3e1790,'data':_0x37c13d,'createdAt':new Date(),'authorId':_0x7c5a40,'attributes':_0x3178ae}),this['_addSuggestionMarker']('formatInline:'+_0x3e1790,_0x23df8e,_0x7c5a40,_0x2459f9);}}return null;}['markBlockFormat'](_0x7c0c5c,_0x36ee18,_0x497212=[],_0x2fb42d=null,_0x2846ac={}){_0x36ee18['formatGroupId']||(_0x36ee18['formatGroupId']=_0x36ee18['commandName']),_0x36ee18['multipleBlocks']=_0x7c0c5c['is']('range'),_0x2fb42d=_0x2fb42d||Ot(_0x36ee18);const _0x5e8e0c=_0x497212['map'](_0xac5138=>Gt(_0xac5138,this['_model'])),_0x505578=_0x7c0c5c['is']('range')?_0x7c0c5c:Gt(_0x7c0c5c,this['_model']);if('never'===this['_trackFormatChanges']){const _0x2734d9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2fb42d,'accept');return this['forceDefaultExecution'](()=>_0x2734d9([_0x505578],_0x36ee18,_0x2846ac)),null;}_0x5e8e0c['push'](_0x505578);let _0x2fce83=!0x0;for(const _0x54abc4 of _0x5e8e0c)if(!this['_rangeIsInLocalUserInsertion'](_0x54abc4)){_0x2fce83=!0x1;break;}if(_0x2fce83&&'always'!==this['_trackFormatChanges']){const _0x3c434e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2fb42d,'accept');return this['forceDefaultExecution'](()=>_0x3c434e([_0x505578],_0x36ee18,_0x2846ac)),null;}let _0x13cf5e=null,_0x43ccfc=_0x505578['start'],_0x5207eb=_0x505578['end'];for(const {suggestion:_0x360e0b,meta:_0x568dda}of this['_findSuggestions'](_0x505578,'formatBlock')){if(!_0x568dda['isOwn'])continue;if(_0x568dda['isNextTo']||_0x568dda['containsRangeInObject']||_0x568dda['isInsideObject'])continue;if(_0x360e0b['data']['formatGroupId']!=_0x36ee18['formatGroupId'])continue;if(!Lt(_0x360e0b,_0x2846ac))continue;const _0x5ab32c=_0x360e0b['getFirstRange']();if(_0x360e0b['subType']==_0x2fb42d){if(_0x5ab32c['containsRange'](_0x505578,!0x0))return null;_0x43ccfc=_0x43ccfc['isBefore'](_0x5ab32c['start'])?_0x43ccfc:_0x5ab32c['start'],_0x5207eb=_0x5207eb['isAfter'](_0x5ab32c['end'])?_0x5207eb:_0x5ab32c['end'],_0x13cf5e?_0x5ab32c['start']['isBefore'](_0x13cf5e['getFirstRange']()['start'])?(_0x13cf5e['removeMarkers'](),_0x13cf5e=_0x360e0b):_0x360e0b['removeMarkers']():_0x13cf5e=_0x360e0b;}else{const _0x3a2881=_0x505578['getIntersection'](_0x5ab32c);this['_cutOutSuggestionMarker'](_0x360e0b,_0x3a2881);}}const _0x5f270b=this['editor']['plugins']['get']('Users')['me'],_0x193723=_0x3b3746(),_0x16894c=_0x5f270b['id'];if(_0x13cf5e)return this['_setSuggestionRange'](_0x13cf5e,this['_model']['createRange'](_0x43ccfc,_0x5207eb)),_0x13cf5e;{const _0x543207=this['_setSuggestionData']({'id':_0x193723,'type':'formatBlock:'+_0x2fb42d,'data':_0x36ee18,'createdAt':new Date(),'authorId':_0x16894c,'attributes':_0x2846ac});return this['_addSuggestionMarker']('formatBlock:'+_0x2fb42d,_0x193723,_0x16894c,this['_model']['createRange'](_0x43ccfc,_0x5207eb)),_0x543207;}}['markMultiRangeBlockFormat'](_0x59507c,_0x2e0af3,_0x38f355=[],_0x483f0f=null,_0x434a05={}){_0x2e0af3['formatGroupId']||(_0x2e0af3['formatGroupId']=_0x2e0af3['commandName']);const _0x156f6b=_0x59507c[0x0];_0x2e0af3['multipleBlocks']=_0x156f6b['is']('range'),_0x483f0f=_0x483f0f||Ot(_0x2e0af3);const _0x4150cb=_0x38f355['map'](_0x13e854=>Gt(_0x13e854,this['_model'])),_0x40586d=_0x156f6b['is']('range')?_0x59507c:_0x59507c['map'](_0x490cde=>Gt(_0x490cde,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2b6394=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x483f0f,'accept');return this['forceDefaultExecution'](()=>_0x2b6394(_0x40586d,_0x2e0af3,_0x434a05)),null;}_0x4150cb['push'](..._0x40586d);let _0x1bcc34=!0x0;for(const _0x187437 of _0x4150cb)if(!this['_rangeIsInLocalUserInsertion'](_0x187437)){_0x1bcc34=!0x1;break;}if(_0x1bcc34&&'always'!==this['_trackFormatChanges']){const _0x3da8ef=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x483f0f,'accept');return this['forceDefaultExecution'](()=>_0x3da8ef(_0x40586d,_0x2e0af3,_0x434a05)),null;}const _0x440adb=this['editor']['plugins']['get']('Users')['me'];for(const _0x2717c7 of this['getSuggestions']()){if(_0x2717c7['author']['id']!=_0x440adb['id'])continue;if('formatBlock'!=_0x2717c7['type']||_0x2717c7['data']['formatGroupId']!=_0x2e0af3['formatGroupId'])continue;if(!Lt(_0x2717c7,_0x434a05))continue;const _0x377d53=_0x2717c7['subType']==_0x483f0f;for(let _0x3a44b0=0x0;_0x3a44b0<_0x40586d['length'];_0x3a44b0++){const _0x166752=_0x40586d[_0x3a44b0];for(const _0x50c608 of _0x2717c7['getMarkers']()){const _0x8c5812=_0x50c608['getRange']();if(_0x166752['isEqual'](_0x8c5812)){_0x377d53?(_0x40586d['splice'](_0x3a44b0,0x1),_0x3a44b0--):_0x2717c7['removeMarker'](_0x50c608['name']);break;}}}}if(0x0==_0x40586d['length'])return null;const _0x21b13f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x483f0f,'join');for(const _0x1e7164 of this['getSuggestions']())if(_0x1e7164['author']['id']==_0x440adb['id']&&'formatBlock'==_0x1e7164['type']&&_0x1e7164['data']['formatGroupId']==_0x2e0af3['formatGroupId']&&_0x1e7164['subType']==_0x483f0f&&Lt(_0x1e7164,_0x434a05)&&(_0x21b13f(_0x1e7164['getRanges'](),_0x40586d)||_0x21b13f(_0x40586d,_0x1e7164['getRanges']()))){for(const _0x46e560 of _0x40586d)_0x1e7164['addRange'](_0x46e560);return _0x1e7164;}const _0x25051a=_0x3b3746(),_0x14a702=_0x440adb['id'],_0x5cf6b4='formatBlock:'+_0x483f0f,_0x4883dd=this['_setSuggestionData']({'id':_0x25051a,'type':_0x5cf6b4,'data':_0x2e0af3,'createdAt':new Date(),'authorId':_0x14a702,'attributes':_0x434a05});for(const _0x30f898 of _0x40586d)this['_addSuggestionMarker'](_0x5cf6b4,_0x25051a,_0x14a702,_0x30f898,u['getMultiRangeId']());return _0x4883dd;}['markDeletion'](_0x2e3e6b,_0x2f1b6e=null,_0x43b64a={}){if(_0x2e3e6b['isCollapsed'])return null;const _0x1b906d=this['editor']['plugins']['get']('Users')['me'],_0x496c4e=new _0x48ab0a(_0x2e3e6b['start'],_0x2e3e6b['end']);for(const {suggestion:_0x1d1d47,meta:_0x29693d}of this['_findSuggestions'](_0x496c4e,'insertion'))if(_0x29693d['isOwn']&&!_0x29693d['isNextTo']){if(_0x1d1d47['isMultiRange']){const _0x51950f=_0x1d1d47['getRanges']()['filter'](_0x3d6c3d=>'$graveyard'!=_0x3d6c3d['root']['rootName']);_0x51950f['every'](_0x132827=>_0x496c4e['containsRange'](_0x132827,!0x0))&&_0x1d1d47['discard']();if(_0x51950f['some'](_0x2ee8fe=>_0x2ee8fe['containsRange'](_0x496c4e,!0x0))){const _0x3e725b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f1b6e,'accept');return this['forceDefaultExecution'](()=>_0x3e725b([_0x496c4e],null,_0x43b64a)),null;}}else{const _0x163f89=_0x496c4e['getIntersection'](_0x1d1d47['getFirstRange']());null!==_0x163f89&&_0x1d1d47['_onDiscard']([_0x163f89],null,_0x43b64a);}}if(_0x496c4e['detach'](),_0x496c4e['isCollapsed']||'$graveyard'==_0x496c4e['root']['rootName'])return null;let _0x185050=null,_0x497612=_0x496c4e['start'],_0x1f63ec=_0x496c4e['end'];const _0x3802a5=this['_findSuggestions'](_0x496c4e,'deletion');for(const {suggestion:_0x13ff2d,meta:_0x32a70f}of _0x3802a5){const _0x36f91a=this['_model']['createRange'](_0x497612,_0x1f63ec);if(_0x32a70f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x32a70f['containsRangeInObject']&&!_0x32a70f['isInsideObject'])){if(_0x13ff2d['isMultiRange']){if(!Lt(_0x13ff2d,_0x43b64a))continue;let _0x5e3702=!0x0;for(const _0x46a29a of _0x13ff2d['getRanges']()){if(_0x46a29a['containsRange'](_0x36f91a,!0x0))return _0x13ff2d;_0x36f91a['containsRange'](_0x46a29a)||(_0x5e3702=!0x1);}_0x5e3702&&_0x13ff2d['discard']();}else{const _0xecdb23=_0x13ff2d['getFirstRange']();if(_0xecdb23['containsRange'](_0x36f91a,!0x0))return _0x13ff2d;if(!Lt(_0x13ff2d,_0x43b64a)){_0x36f91a['containsRange'](_0xecdb23)?_0x13ff2d['removeMarkers']():_0xecdb23['containsPosition'](_0x497612)?_0x497612=_0xecdb23['end']:_0xecdb23['containsPosition'](_0x1f63ec)&&(_0x1f63ec=_0xecdb23['start']);continue;}_0x497612=_0x497612['isBefore'](_0xecdb23['start'])?_0x497612:_0xecdb23['start'],_0x1f63ec=_0x1f63ec['isAfter'](_0xecdb23['end'])?_0x1f63ec:_0xecdb23['end'],_0x43b64a=Object['assign']({},_0x13ff2d['attributes']),_0x185050?_0xecdb23['start']['isBefore'](_0x185050['getFirstRange']()['start'])?(_0x185050['removeMarkers'](),_0x185050=_0x13ff2d):_0x13ff2d['removeMarkers']():_0x185050=_0x13ff2d;}}}if(_0x185050)return this['_setSuggestionRange'](_0x185050,this['_model']['createRange'](_0x497612,_0x1f63ec)),_0x185050;{const _0x4f2867=_0x3b3746(),_0x3c4d23=this['_model']['createRange'](_0x497612,_0x1f63ec),_0x4057fe=_0x1b906d['id'],_0x5bbce4=_0x2f1b6e?'deletion:'+_0x2f1b6e:'deletion',_0x3d26ea=this['_setSuggestionData']({'id':_0x4f2867,'type':_0x5bbce4,'createdAt':new Date(),'authorId':_0x4057fe,'attributes':_0x43b64a});return this['_addSuggestionMarker'](_0x5bbce4,_0x4f2867,_0x4057fe,_0x3c4d23),_0x3d26ea;}}['markMultiRangeDeletion'](_0x423b8,_0x280231='multi',_0x16ee57={}){const _0x3f8783=this['editor']['plugins']['get']('Users')['me'],_0x58ebca=_0x423b8['map'](_0x40c553=>new _0x48ab0a(_0x40c553['start'],_0x40c553['end'])),_0x318aa4=new Set();for(const {suggestion:_0x4ed133,meta:_0x3addc1}of this['_findSuggestions'](_0x58ebca,'insertion'))_0x3addc1['isOwn']&&!_0x3addc1['isNextTo']&&_0x318aa4['add'](_0x4ed133);for(const _0x5a7a81 of _0x318aa4)if(_0x5a7a81['isMultiRange']){const _0x1d4cc2=_0x5a7a81['getRanges']();(!_0x5a7a81['attributes']||!_0x5a7a81['attributes']['skipNestingCheck'])&&(_0x1d4cc2['every'](_0x4a1113=>_0x58ebca['some'](_0x3d7fe9=>_0x3d7fe9['containsRange'](_0x4a1113,!0x0)))&&_0x5a7a81['discard']());if(_0x58ebca['every'](_0x429385=>_0x1d4cc2['some'](_0x53ddf8=>_0x53ddf8['containsRange'](_0x429385,!0x0)))){const _0x2d0d71=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x280231,'accept');return this['forceDefaultExecution'](()=>_0x2d0d71(_0x423b8,null,_0x16ee57)),null;}}else{const _0xc3ddac=_0x5a7a81['getFirstRange']();_0x58ebca['some'](_0x11ee74=>_0x11ee74['containsRange'](_0xc3ddac,!0x0))&&_0x5a7a81['discard']();if(_0x58ebca['every'](_0x2d4967=>_0xc3ddac['containsRange'](_0x2d4967,!0x0))){const _0x140b4d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x280231,'accept');return this['forceDefaultExecution'](()=>_0x140b4d(_0x58ebca,null,_0x16ee57)),null;}}const _0x39f9bc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x280231,'join');let _0x363944=null;for(const _0x2e393b of this['getSuggestions']())if(_0x2e393b['author']['id']==_0x3f8783['id']&&_0x2e393b['isInContent']&&'deletion'==_0x2e393b['type']&&_0x2e393b['subType']==_0x280231&&Lt(_0x2e393b,_0x16ee57)&&(_0x39f9bc(_0x2e393b['getRanges'](),_0x58ebca)||_0x39f9bc(_0x58ebca,_0x2e393b['getRanges']()))){if(_0x363944){if(_0x2e393b['commentThread']&&_0x2e393b['commentThread']['length'])continue;for(const _0x126263 of _0x2e393b['getRanges']())_0x363944['isIntersectingWithRange'](_0x126263)||_0x363944['addRange'](_0x126263);_0x2e393b['removeMarkers']();}else{_0x363944=_0x2e393b;for(const _0x25d71 of _0x58ebca)_0x2e393b['isIntersectingWithRange'](_0x25d71)||_0x2e393b['addRange'](_0x25d71);}}if(_0x363944)return _0x363944;_0x318aa4['clear']();for(const {suggestion:_0x55ccfd,meta:_0x1459e0}of this['_findSuggestions'](_0x58ebca,'deletion'))_0x1459e0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1459e0['containsRangeInObject']&&!_0x1459e0['isInsideObject'])&&Lt(_0x55ccfd,_0x16ee57)&&_0x318aa4['add'](_0x55ccfd);for(const _0x2e3897 of _0x318aa4){const _0x1aff24=_0x2e3897['getRanges']();if(!_0x16ee57||!_0x16ee57['skipNestingCheck']){if(_0x58ebca['every'](_0x30bee5=>_0x1aff24['some'](_0x4d37b8=>_0x4d37b8['containsRange'](_0x30bee5,!0x0))))return _0x2e3897;}(!_0x2e3897['attributes']||!_0x2e3897['attributes']['skipNestingCheck'])&&(_0x1aff24['every'](_0x383516=>_0x58ebca['some'](_0xb30940=>_0xb30940['containsRange'](_0x383516,!0x0)))&&_0x2e3897['discard']());}const _0x3066af=_0x3b3746(),_0x60c75d=_0x3f8783['id'],_0x303d0f='deletion:'+_0x280231,_0x4f91ae=this['_setSuggestionData']({'id':_0x3066af,'type':_0x303d0f,'createdAt':new Date(),'authorId':_0x60c75d,'attributes':_0x16ee57});for(const _0x1ddd1d of _0x58ebca)_0x1ddd1d['detach'](),_0x1ddd1d['isCollapsed']||'$graveyard'==_0x1ddd1d['root']['rootName']||this['_addSuggestionMarker'](_0x303d0f,_0x3066af,_0x60c75d,_0x1ddd1d,u['getMultiRangeId']());return _0x4f91ae;}['markAttributeChange'](_0x3f5956,_0x150de5,_0x6a29c6,_0x202ad6,_0x3e0601){if(_0x3f5956['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x375fef=this['editor']['plugins']['get']('Users')['me']['id'],_0x5771f1=Array['from'](this['_suggestions']['values']())['filter'](_0x32a348=>'attribute'==_0x32a348['type']&&_0x32a348['data']['key']==_0x150de5&&_0x32a348['isIntersectingWithRange'](_0x3f5956));if('default'===this['_trackFormatChanges']){const _0x3e1afd=this['_findSuggestions'](_0x3f5956,'insertion')['filter'](({meta:_0xc83ba})=>_0xc83ba['isOwn']&&!_0xc83ba['isInsideObject']&&!_0xc83ba['isNextTo'])['map'](({suggestion:_0x1f65a3})=>_0x1f65a3);_0x5771f1['unshift'](..._0x3e1afd);}const _0x22e1be=new Map([[_0x3f5956,_0x6a29c6]]);for(const _0xe9332f of _0x5771f1){const _0x35f5dd='attribute'==_0xe9332f['type']?_0xe9332f['data']['oldValue']:void 0x0,_0x1cc8ad=_0xe9332f['getFirstRange'](),_0x3eadac=Array['from'](_0x22e1be['keys']())['find'](_0x3880e4=>_0x3880e4['isIntersecting'](_0x1cc8ad));if(!_0x3eadac)continue;const _0x5e9af6=_0x3eadac['getDifference'](_0x1cc8ad);this['_isBlockAttribute'](_0x150de5)&&'insertion'==_0xe9332f['type']&&0x0!=_0x5e9af6['length']||(_0x22e1be['delete'](_0x3eadac),_0x5e9af6['forEach'](_0x87929e=>{_0x22e1be['set'](_0x87929e,_0x6a29c6);}),'insertion'!=_0xe9332f['type']&&_0x35f5dd!=_0x202ad6&&_0x22e1be['set'](_0x3eadac['getIntersection'](_0x1cc8ad),_0x35f5dd));}const _0x2e8d5f=[];for(const [_0x145bbc,_0xf2b313]of _0x22e1be){const _0x44e84f=_0x3b3746(),_0x1c11ff={'key':_0x150de5,'oldValue':_0xf2b313,'newValue':_0x202ad6};_0x150de5['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':_0x150de5});const _0x5e7965=('attribute:'+(_0x150de5+'|'+Ot({'newValue':_0x202ad6})))['substring'](0x0,0x3c),_0x2961c7=this['_setSuggestionData']({'id':_0x44e84f,'type':_0x5e7965,'data':_0x1c11ff,'createdAt':new Date(),'authorId':_0x375fef,'attributes':_0x3e0601});_0x2e8d5f['push'](_0x2961c7),this['_addSuggestionMarker'](_0x5e7965,_0x44e84f,_0x375fef,_0x145bbc);}return _0x2e8d5f;}['enableDefaultAttributesIntegration'](_0x424638){this['enableCommand'](_0x424638,(_0x324b0e,..._0x43a056)=>{this['_recordAttributeChanges'](()=>{_0x324b0e(..._0x43a056);});});}['registerBlockAttribute'](_0x50cd4e){this['_blockAttributeKeys']['add'](_0x50cd4e);}['registerInlineAttribute'](_0x2debf0){this['_inlineAttributeKeys']['add'](_0x2debf0);}['_getAttributeKey'](_0x5607a2){return'attribute'==_0x5607a2['type']?_0x5607a2['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x40eec5,_0x5aa8ab){const _0x2268e2=_0x40eec5['getFirstMarker']();this['_model']['change'](_0x4319a8=>{_0x4319a8['updateMarker'](_0x2268e2,{'range':_0x5aa8ab});});}['_addThreadToSuggestion'](_0x2cab9d){const _0x22de6f=_0x2cab9d['id'],_0x5942f4=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x22de6f)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5942f4,'threadId':_0x22de6f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x407ea0=this['_commentsRepository']['getCommentThread'](_0x22de6f);_0x407ea0['unbind']('isRemovable'),_0x407ea0['isRemovable']=!0x1,_0x2cab9d['commentThread']=_0x407ea0;}['_checkSuggestionCorrectness'](_0x5b0f33,_0x4ceb77,_0x23d96e,_0x2c138e){if(_0x5b0f33['type']!=_0x4ceb77||_0x5b0f33['subType']!=_0x23d96e||_0x5b0f33['creator']['id']!=_0x2c138e)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x596a61('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3fd488,_0x46bfe1){const _0x4ecfee=_0x3fd488['getFirstRange']();if(_0x46bfe1['isEqual'](_0x4ecfee))_0x3fd488['removeMarkers']();else{if(_0x4ecfee['containsRange'](_0x46bfe1)){const _0x55dcac=this['_model']['createPositionAt'](_0x46bfe1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3fd488,this['_model']['createRange'](_0x4ecfee['start'],_0x55dcac));const _0x32bc14=_0x3b3746(),_0x511bf9=_0x3fd488['creator']['id'],_0x248b62=_0x3fd488['type']+':'+_0x3fd488['subType'];this['_setSuggestionData']({'id':_0x32bc14,'type':_0x248b62,'createdAt':new Date(),'authorId':_0x511bf9,'data':_0x3fd488['data'],'attributes':_0x3fd488['attributes']});const _0x14cf01=this['_model']['createPositionAt'](_0x46bfe1['end']['parent'],'after'),_0x5153d8=this['_model']['createRange'](_0x14cf01,_0x4ecfee['end']);this['_addSuggestionMarker'](_0x248b62,_0x32bc14,_0x511bf9,_0x5153d8);}else{if(_0x4ecfee['containsPosition'](_0x46bfe1['start'])){const _0x2869b8=this['_model']['createPositionAt'](_0x46bfe1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3fd488,this['_model']['createRange'](_0x4ecfee['start'],_0x2869b8));}else{const _0x3efc6d=this['_model']['createPositionAt'](_0x46bfe1['end']['parent'],'after');this['_setSuggestionRange'](_0x3fd488,this['_model']['createRange'](_0x3efc6d,_0x4ecfee['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x592df8){for(const {suggestion:_0x5de2e5,meta:_0x19d3f8}of this['_findSuggestions'](_0x592df8,'insertion')){if(!_0x19d3f8['isOwn'])continue;const _0x3cb801=_0x5de2e5['getRanges']();for(const _0x1e294f of _0x3cb801)if(!_0x592df8['getDifference'](_0x1e294f)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x29b19a){const _0x59841a=this['editor']['plugins']['get']('Users')['getUser'](_0x29b19a);if(!_0x59841a)throw new _0x596a61('track-changes-user-not-found',this);return _0x59841a;}['_getExternalAuthor'](_0x2d94b5){const _0x4abeb7=this['editor']['plugins']['get']('Users'),_0x40857e=_0x1d0dee('external:'+_0x2d94b5),_0x3dc8ad=_0x4abeb7['getUser'](_0x40857e);return _0x3dc8ad||_0x4abeb7['addUser']({'id':_0x40857e,'name':_0x2d94b5});}['_createSuggestion'](_0x13659c,_0x1b1e18,_0x17d140,_0x4c7085,_0x101ebf){const _0x2d361c=this['_getAuthorFromId'](_0x4c7085),_0x5bad02=this['_suggestionFactory']['buildSuggestion'](_0x13659c,_0x1b1e18,_0x17d140,_0x2d361c,_0x101ebf,_0x5843cd=>{this['_updateSuggestionData'](_0x17d140,{'attributes':_0x5843cd});const _0x460a3f=this['getSuggestion'](_0x17d140);this['_joinWithAdjacentSuggestions'](new Set([_0x460a3f])),this['_refreshSuggestionsChain'](new Set([_0x460a3f]));});return this['listenTo'](_0x5bad02,'accept',()=>{this['_updateSuggestionData'](_0x17d140,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5bad02,'discard',()=>{this['_updateSuggestionData'](_0x17d140,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x17d140,_0x5bad02),this['_suggestionState']['set'](_0x5bad02,'notReady'),_0x5bad02;}['_splitMarkerName'](_0x211d86){const _0x3dcd2a=_0x211d86['split'](':');return{'group':_0x3dcd2a[0x0],'type':_0x3dcd2a[0x1],'subType':_0x3dcd2a['length']>=0x5?_0x3dcd2a[0x2]:null,'id':_0x3dcd2a['length']<0x5?_0x3dcd2a[0x2]:_0x3dcd2a[0x3],'authorId':_0x3dcd2a['length']<0x5?_0x3dcd2a[0x3]:_0x3dcd2a[0x4],'markerCount':0x6==_0x3dcd2a['length']?_0x3dcd2a[0x5]:null};}['_breakSuggestionMarker'](_0xb71e9f,_0xf66ae3,_0x1f38af){const _0xcc971=_0xb71e9f['getFirstRange'](),_0x2d7455=_0xcc971['start'],_0x2a29f1=_0xcc971['end'];this['_setSuggestionRange'](_0xb71e9f,this['_model']['createRange'](_0x2d7455,_0xf66ae3));const _0xb0850e=_0x3b3746(),_0x5de53e=_0xb71e9f['creator']['id'],_0x29da1a=_0xb71e9f['type']+(_0xb71e9f['subType']?':'+_0xb71e9f['subType']:'');this['_setSuggestionData']({'id':_0xb0850e,'type':_0x29da1a,'createdAt':new Date(),'authorId':_0x5de53e,'originalSuggestionId':_0xb71e9f['id'],'attributes':_0xb71e9f['attributes'],'data':_0xb71e9f['data']});const _0x2857b2=this['_getAttributeKey'](_0xb71e9f);('formatBlock'==_0xb71e9f['type']||_0x2857b2&&this['_isBlockAttribute'](_0x2857b2))&&(_0x1f38af=this['_model']['createPositionBefore'](_0x1f38af['parent'])),this['_addSuggestionMarker'](_0x29da1a,_0xb0850e,_0x5de53e,this['_model']['createRange'](_0x1f38af,_0x2a29f1));}['_findSuggestions'](_0x54ec0b,_0x1f0589=null){const _0x4b2c5f=[],_0x5c286e=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x54ec0b)||(_0x54ec0b=[_0x54ec0b]);for(const _0x5f4ed4 of this['getSuggestions']()){if(!_0x5f4ed4['isInContent'])continue;if(_0x1f0589&&_0x5f4ed4['type']!=_0x1f0589)continue;let _0x435198=!0x1;for(const _0x3826d4 of _0x5f4ed4['getRanges']()){for(const _0x3885d6 of _0x54ec0b){const _0x8ec968=_0x3885d6['start']['isEqual'](_0x3826d4['end'])||_0x3885d6['end']['isEqual'](_0x3826d4['start']);if(_0x8ec968||_0x3885d6['getIntersection'](_0x3826d4)){const _0x229799=_0x3885d6['containsRange'](_0x3826d4)&&Rt(this['_model']['schema'],_0x3826d4['start'],_0x3885d6),_0x4b3933=_0x3826d4['containsRange'](_0x3885d6)&&Rt(this['_model']['schema'],_0x3885d6['start'],_0x3826d4);_0x4b2c5f['push']({'suggestion':_0x5f4ed4,'meta':{'isOwn':_0x5c286e==_0x5f4ed4['author'],'isNextTo':_0x8ec968,'isInsideObject':_0x229799,'containsRangeInObject':_0x4b3933}}),_0x435198=!0x0;break;}}if(_0x435198)break;}}return _0x4b2c5f;}['_addSuggestionMarker'](_0x101955,_0x46d9a9,_0x30d169,_0x3c4ae1,_0x1007f7){this['_model']['change'](_0x1a9bb8=>{let _0x5d0711='suggestion:'+_0x101955+':'+_0x46d9a9+':'+_0x30d169;_0x1007f7&&(_0x5d0711=_0x5d0711+':'+_0x1007f7),_0x1a9bb8['addMarker'](_0x5d0711,{'range':_0x3c4ae1,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x17d347){const _0x17560a=_0x17d347['previous'],_0x53d2c4=_0x17d347['next'];_0x17d347['previous']=null,_0x17d347['next']=null,null!=_0x17560a&&_0x17560a['next']==_0x17d347&&(_0x17560a['next']=_0x53d2c4),null!=_0x53d2c4&&_0x53d2c4['previous']==_0x17d347&&(_0x53d2c4['previous']=_0x17560a),'ready'==this['_suggestionState']['get'](_0x17d347)&&(this['_suggestionState']['set'](_0x17d347,'removed'),this['fire']('suggestionUnloaded',_0x17d347,_0x17560a,_0x53d2c4));}['_setSuggestionData'](_0x1e3be5){const _0x3c91f7=_0x1e3be5['id'],_0x589b9b=this['addSuggestionData'](_0x1e3be5);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5f3388=this['editor']['plugins']['get']('PendingActions'),_0x141b67=_0x589b9b['hasComments'],_0x15acd1=_0x589b9b['subType']?_0x589b9b['type']+':'+_0x589b9b['subType']:_0x589b9b['type'],_0x3e508c=this['editor']['locale'],_0x280e18=_0x5f3388['add'](o(_0x3e508c,'PENDING_ACTION_SUGGESTION')),_0x5a13ea={'id':_0x3c91f7,'type':_0x15acd1,'hasComments':_0x141b67,'data':_0x1e3be5['data']||null,'originalSuggestionId':_0x1e3be5['originalSuggestionId']||null,'attributes':_0x589b9b['attributes']};this['_adapter']['addSuggestion'](_0x5a13ea)['then'](_0x143547=>{_0x589b9b['_saved']=!0x0,_0x5f3388['remove'](_0x280e18),_0x143547&&_0x143547['createdAt']&&(this['_suggestions']['get'](_0x3c91f7)['createdAt']=_0x143547['createdAt']);})['catch'](_0x4fbeff=>{throw _0x899063('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x589b9b['discard']();}),_0x589b9b['stopListening'](),this['_suggestions']['delete'](_0x589b9b['id']),this['_suggestionState']['delete'](_0x589b9b),_0x4fbeff;});}return _0x589b9b;}['_isBlockAttribute'](_0x298c96){return this['_blockAttributeKeys']['has'](_0x298c96);}['_updateSuggestionData'](_0x323e92,_0x46ee3b){const _0x4bf858=this['editor']['plugins']['get']('PendingActions'),_0x4b1a0a=this['getSuggestion'](_0x323e92);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4b1a0a['_saved']){const _0x55fd27=_0x4bf858['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x323e92,_0x46ee3b)['then'](()=>{_0x4bf858['remove'](_0x55fd27);});}else _0x4b1a0a['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x323e92,_0x46ee3b);});}}['_getSuggestionData'](_0x3f686b){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x596a61('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3f686b);}['_handleNewSuggestionMarker'](_0x3f6e5e){const {id:_0x16ad2d,type:_0x402b63,subType:_0x3c51e4,authorId:_0x5c91b8}=this['_splitMarkerName'](_0x3f6e5e),_0x465ea7=this['_suggestions']['get'](_0x16ad2d)||this['_createSuggestion'](_0x402b63,_0x3c51e4,_0x16ad2d,_0x5c91b8,{});switch(this['_checkSuggestionCorrectness'](_0x465ea7,_0x402b63,_0x3c51e4,_0x5c91b8),this['_suggestionState']['get'](_0x465ea7)){case'notReady':this['_getSuggestionData'](_0x16ad2d)['then'](_0x6e116a=>{let _0x236b8d=Promise['resolve']();_0x6e116a['hasComments']&&(_0x236b8d=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x16ad2d})),_0x236b8d['then'](()=>{this['addSuggestionData'](_0x6e116a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x465ea7,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x16ad2d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x465ea7,'ready'),this['fire']('suggestionLoaded',_0x465ea7);break;case'ready':this['fire']('suggestionChanged',_0x465ea7);}return _0x465ea7['addMarkerName'](_0x3f6e5e),_0x465ea7;}['_refreshSuggestionsChain'](_0x5bef70){const _0x1a10c5=Array['from'](_0x5bef70),_0x4a68f4=_0x1a10c5['filter'](_0x3fd5d4=>'attribute'==_0x3fd5d4['type']);this['_refreshAttributeSuggestionsChain'](_0x4a68f4);const _0xd47b9a=_0x1a10c5['filter'](_0x4a477d=>!_0x4a477d['isMultiRange']&&'attribute'!=_0x4a477d['type']),_0x2e0844=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x30c7ec=>!_0x30c7ec['isMultiRange']&&'attribute'!=_0x30c7ec['type']),_0x23ff05=_0x2e0844['filter'](_0x2dcb41=>!_0x5bef70['has'](_0x2dcb41)),_0x2e9d00=new Map(_0x2e0844['map'](_0x50226a=>[_0x50226a,this['_suggestionFactory']['getSuggestionCallback'](_0x50226a['type'],_0x50226a['subType'],'chain')])),_0x2e007e=new Map(_0x2e0844['map'](_0x4a0fd4=>[_0x4a0fd4,_0x4a0fd4['getFirstRange']()])),_0x348cac=new Set(),_0x1e6ab6=new Set();for(let _0x5be431=0x0;_0x5be431<_0xd47b9a['length'];_0x5be431++)_0x5a6f90(_0xd47b9a[_0x5be431],_0xd47b9a,_0x5be431+0x1);for(let _0x586b2c=0x0;_0x586b2c<_0xd47b9a['length'];_0x586b2c++)_0x5a6f90(_0xd47b9a[_0x586b2c],_0x23ff05,0x0);const _0x4e9359=new Set();for(let _0x42dc68=0x0;_0x42dc68<_0xd47b9a['length'];_0x42dc68++){const _0x5e565e=_0xd47b9a[_0x42dc68];!_0x1e6ab6['has'](_0x5e565e)&&_0x5e565e['previous']&&(_0x4e9359['add'](_0x5e565e['previous']),_0x5e565e['previous']['next']===_0x5e565e&&(_0x5e565e['previous']['next']=null),_0x5e565e['previous']=null),!_0x348cac['has'](_0x5e565e)&&_0x5e565e['next']&&(_0x4e9359['add'](_0x5e565e['next']),_0x5e565e['next']['previous']===_0x5e565e&&(_0x5e565e['next']['previous']=null),_0x5e565e['next']=null);}function _0x5a6f90(_0x54690c,_0x43b658,_0x4fc7d6){for(let _0x14fc5a=_0x4fc7d6;_0x14fc5a<_0x43b658['length'];_0x14fc5a++){const _0x499e53=_0x28efff(_0x54690c,_0x43b658[_0x14fc5a]);_0x499e53&&(_0x499e53[0x0]['next']=_0x499e53[0x1],_0x499e53[0x1]['previous']=_0x499e53[0x0],_0x348cac['add'](_0x499e53[0x0]),_0x1e6ab6['add'](_0x499e53[0x1]));}}function _0x28efff(_0x22bc34,_0x8b1bce){if(_0x22bc34['author']['id']!==_0x8b1bce['author']['id'])return null;const _0x8fff25=_0x2e9d00['get'](_0x22bc34)(_0x22bc34,_0x8b1bce,_0x2e007e['get'](_0x22bc34),_0x2e007e['get'](_0x8b1bce));if(!_0x8fff25)return null;return _0x2e9d00['get'](_0x8b1bce)(_0x22bc34,_0x8b1bce,_0x2e007e['get'](_0x22bc34),_0x2e007e['get'](_0x8b1bce))?_0x8fff25[0x1]['commentThread']&&_0x8fff25[0x1]['commentThread']['length']?null:_0x8fff25:null;}_0x4e9359['size']&&this['_refreshSuggestionsChain'](_0x4e9359);}['_refreshAttributeSuggestionsChain'](_0x1caf37){if(0x0==_0x1caf37['length'])return;const _0x15b2ad=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x140665=>'attribute'==_0x140665['type']&&_0x140665['_isDataLoaded']),_0x434d63=[],_0x57f3f9=new Map();for(const _0x4b72ef of _0x15b2ad){const _0x38d919=_0x1d0dee(_0x4b72ef['attributes']);_0x57f3f9['has'](_0x38d919)||(_0x57f3f9['set'](_0x38d919,_0x434d63['length']),_0x434d63['push']([]));const _0x2a3bbc=_0x57f3f9['get'](_0x38d919);_0x434d63[_0x2a3bbc]['push'](_0x4b72ef);}!(function(){_0x434d63['sort']((_0x111727,_0x1a1391)=>{const _0x1501f3=_0x111727[0x0]['createdAt'],_0x5c9dab=_0x1a1391[0x0]['createdAt'];return _0x1501f3==_0x5c9dab?_0x111727[0x0]['attributes']['groupId']<_0x1a1391[0x0]['attributes']['groupId']?-0x1:0x1:_0x1501f3<_0x5c9dab?-0x1:0x1;});for(const _0x38485e of _0x434d63)_0x38485e['sort']((_0x368917,_0x1007e4)=>_0x368917['id']<_0x1007e4['id']?-0x1:0x1);}());for(let _0x1df598=0x0;_0x1df598<_0x434d63['length'];_0x1df598++){if(0x0==_0x434d63[_0x1df598]['length'])continue;const _0xd925b7=[];for(let _0x42aa39=_0x1df598+0x1;_0x42aa39<_0x434d63['length'];_0x42aa39++)0x0!=_0x434d63[_0x42aa39]['length']&&_0x317d28(_0x434d63[_0x1df598],_0x434d63[_0x42aa39])&&_0xd925b7['push'](_0x42aa39);for(const _0xc84fd5 of _0xd925b7)_0x434d63[_0x1df598]=_0x434d63[_0x1df598]['concat'](_0x434d63[_0xc84fd5]),_0x434d63[_0xc84fd5]=[];}for(const _0x4a04c0 of _0x434d63)for(let _0x358d1c=0x0;_0x358d1c<_0x4a04c0['length'];_0x358d1c++){const _0x53f778=_0x4a04c0[_0x358d1c+0x1]||null;_0x4a04c0[_0x358d1c]['next']!==_0x53f778&&(_0x4a04c0[_0x358d1c]['next']=_0x53f778);}for(const _0x20b31c of _0x434d63)for(let _0x238689=0x0;_0x238689<_0x20b31c['length'];_0x238689++){const _0x26d5cf=_0x20b31c[_0x238689-0x1]||null;_0x20b31c[_0x238689]['previous']!==_0x26d5cf&&(_0x20b31c[_0x238689]['previous']=_0x26d5cf);}function _0x317d28(_0x2b0d0c,_0x21e36f){if(_0x2b0d0c[0x0]['attributes']['groupId']!==_0x21e36f[0x0]['attributes']['groupId']&&_0x2b0d0c[0x0]['author']!==_0x21e36f[0x0]['author'])return!0x1;if(!function(_0x5f2f8b,_0x2de7b8){if(!_0x5f2f8b['hasComments']&&!_0x2de7b8['hasComments'])return!0x0;if(_0x5f2f8b['hasComments']&&_0x2de7b8['hasComments'])return!0x1;if(_0x5f2f8b['hasComments']&&_0x2de7b8['createdAt']<_0x5f2f8b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2de7b8['hasComments']&&_0x5f2f8b['createdAt']<_0x2de7b8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2b0d0c[0x0],_0x21e36f[0x0]))return!0x1;const _0x2b558c=Bt(_0x2b0d0c[0x0]['attributes'],'groupId'),_0x43f215=Bt(_0x21e36f[0x0]['attributes'],'groupId');if(!_0x123701(_0x2b558c,_0x43f215))return!0x1;return!!_0x2b0d0c['every'](_0x5637f5=>_0x21e36f['some'](_0x9399d3=>_0x5637f5['getFirstRange']()['isEqual'](_0x9399d3['getFirstRange']())))&&_0x21e36f['every'](_0x59dcb8=>_0x2b0d0c['some'](_0x48a5f6=>_0x59dcb8['getFirstRange']()['isEqual'](_0x48a5f6['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x26fc50){const _0x3ef1f9=Array['from'](_0x26fc50),_0x8fa757=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3e72f4=_0x8fa757['filter'](_0x2652ed=>!_0x26fc50['has'](_0x2652ed)),_0x318e93=new Map(_0x3ef1f9['map'](_0x1456af=>[_0x1456af,this['_suggestionFactory']['getSuggestionCallback'](_0x1456af['type'],_0x1456af['subType'],'join')])),_0xf69eba=new Map(_0x8fa757['map'](_0x4d1c40=>[_0x4d1c40,_0x4d1c40['getRanges']()]));for(let _0x141702=0x0;_0x141702<_0x3ef1f9['length'];_0x141702++){if(_0x54b869(this,_0x3ef1f9[_0x141702],_0x3ef1f9,_0x141702+0x1))return!0x0;}for(let _0x53316e=0x0;_0x53316e<_0x3ef1f9['length'];_0x53316e++){if(_0x54b869(this,_0x3ef1f9[_0x53316e],_0x3e72f4,0x0))return!0x0;}return!0x1;function _0x54b869(_0xdb0bb0,_0x4c01b7,_0x21b9a1,_0x3144cb){for(let _0x5e4334=_0x3144cb;_0x5e4334<_0x21b9a1['length'];_0x5e4334++){const _0x1a3341=_0x21b9a1[_0x5e4334];if(_0x1a3341['type']!==_0x4c01b7['type']||_0x1a3341['author']['id']!==_0x4c01b7['author']['id']||_0x1a3341['subType']!==_0x4c01b7['subType'])continue;if(!Pt(_0x4c01b7,_0x1a3341))continue;if('attribute'==_0x4c01b7['type']&&_0x4c01b7['data']['oldValue']!=_0x1a3341['data']['oldValue'])continue;if('attribute'==_0x4c01b7['type']&&_0xdb0bb0['_isBlockAttribute'](_0x4c01b7['data']['key']))continue;if('formatBlock'==_0x4c01b7['type']){const _0x26e7b2=_0xdb0bb0['editor']['model'],_0x2be203=_0x4c01b7['getContainedElement']();if(_0x2be203&&(_0x26e7b2['schema']['isObject'](_0x2be203)||_0x26e7b2['schema']['isLimit'](_0x2be203)))continue;}const _0x125e83=_0x318e93['get'](_0x4c01b7),_0x576990=_0xf69eba['get'](_0x4c01b7),_0x42a675=_0xf69eba['get'](_0x1a3341),_0x3ec88a=_0x4c01b7['commentThread']&&_0x4c01b7['commentThread']['length'],_0x5c081e=_0x1a3341['commentThread']&&_0x1a3341['commentThread']['length'];if(!_0x3ec88a&&_0x125e83(_0x42a675,_0x576990))return _0xdb0bb0['_joinSuggestions'](_0x1a3341,_0x4c01b7),_0xf69eba['delete'](_0x4c01b7),!0x0;if(!_0x5c081e&&_0x125e83(_0x576990,_0x42a675))return _0xdb0bb0['_joinSuggestions'](_0x4c01b7,_0x1a3341),_0xf69eba['delete'](_0x1a3341),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5b456e,_0x588737){if(_0x5b456e['isMultiRange']){for(const _0x9b35ce of _0x588737['getRanges']())_0x5b456e['addRange'](_0x9b35ce);}else{const _0x27c8d5=_0x588737['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5b456e,this['_model']['createRange'](_0x5b456e['getFirstRange']()['start'],_0x27c8d5));}_0x588737['removeMarkers']();}['_getMarkerAnnouncementText'](_0x587236,_0x1e06fb){const _0x449247=_0x587236['startsWith']('format')||_0x587236['startsWith']('attribute')?'FORMATTING':_0x587236['toUpperCase']();return o(this['editor']['locale'],_0x1e06fb+'_'+_0x449247+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x4e83ad=this['editor'];if(!_0x4e83ad['ui'])return;const {ariaLiveAnnouncer:_0x1ca546}=_0x4e83ad['ui'];_0x2c5dfd(this['_model'],({left:_0xd0bc1,entered:_0x248f1e})=>{for(const _0x4a8fb4 of _0xd0bc1){const {group:_0x2f8992,type:_0x13db81}=this['_splitMarkerName'](_0x4a8fb4['name']);if('suggestion'===_0x2f8992){_0x1ca546['announce'](this['_getMarkerAnnouncementText'](_0x13db81,'LEAVE'));break;}}for(const _0x301174 of _0x248f1e){const {group:_0x229492,type:_0x42d63e}=this['_splitMarkerName'](_0x301174['name']);if('suggestion'===_0x229492){_0x1ca546['announce'](this['_getMarkerAnnouncementText'](_0x42d63e,'ENTER'));break;}}});}['_processAttributeChanges'](_0xbb4eeb){if(this['_recordAttributeSuggestions'])return!0x1;const _0x213a96=this['editor'],_0x13337e=_0x213a96['model']['document']['differ']['getChanges']();if(0x0==_0x13337e['length'])return!0x1;const _0x1a184c=[],_0x2aef7f=_0x13337e['filter'](_0x280b73=>'attribute'==_0x280b73['type']),_0x57fe43=_0x13337e['filter'](_0xc24832=>'insert'==_0xc24832['type']&&'$text'!=_0xc24832['name']),_0x17eb5a=_0x13337e['filter'](_0x4565a3=>'remove'==_0x4565a3['type']&&'$text'!=_0x4565a3['name']);for(const _0x506679 of _0x2aef7f)_0x1a184c['push']({'key':_0x506679['attributeKey'],'newValue':_0x506679['attributeNewValue'],'oldValue':_0x506679['attributeOldValue'],'range':Ut(_0x506679['range'],_0x213a96['model'])});for(const _0x592582 of _0x57fe43){const _0x1daabb=_0x17eb5a['find'](_0x5282b0=>_0x5282b0['position']['isEqual'](_0x592582['position']));_0x1daabb&&_0x1a184c['push']({'key':m,'newValue':_0x592582['name'],'oldValue':_0x1daabb['name'],'range':_0x213a96['model']['createRangeOn'](_0x592582['position']['nodeAfter'])});}return 0x0!=_0x1a184c['length']&&this['_reduceExistingSuggestions'](_0xbb4eeb,_0x1a184c);}['_processAttributeSuggestions'](_0x32d1bd){let _0x3226d2=!0x1;const _0x42ff73=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x50baae=>_0x50baae['data']['newRange']&&_0x50baae['name']['startsWith']('suggestion:attribute:'));for(const _0x955c88 of _0x42ff73){const {subType:_0x40c918,id:_0x376e6c}=this['_splitMarkerName'](_0x955c88['name']),_0x50cef1=_0x40c918['split']('|')[0x0];for(const _0x4a7489 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4a7489['id']!=_0x376e6c&&'attribute'==_0x4a7489['type']&&_0x4a7489['data']&&_0x4a7489['data']['key']==_0x50cef1&&_0x4a7489['getFirstRange']()['isIntersecting'](_0x955c88['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4a7489,_0x955c88['data']['newRange'],_0x32d1bd),_0x3226d2=!0x0);}return _0x3226d2;}['_recordAttributeChanges'](_0x80ffb){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x80ffb();}['_isRegisteredAttribute'](_0x420b8f){const _0x277002=this['_isBlockAttribute'](_0x420b8f),_0xe8548b=this['_inlineAttributeKeys']['has'](_0x420b8f);return _0x277002||_0xe8548b;}['_reduceExistingSuggestions'](_0x516426,_0x5d1363){if(0x0==_0x5d1363['length'])return!0x1;let _0x393373=!0x1;for(const _0x28e708 of _0x5d1363){const _0x5577da=this['_findSuggestions'](_0x28e708['range'],'attribute')['filter'](_0x3fe21a=>!_0x3fe21a['meta']['isNextTo'])['map'](_0x151d19=>_0x151d19['suggestion']),_0x17ab5d=_0x1d0dee({'newValue':_0x28e708['newValue']});_0x5577da['filter'](_0x3d6adc=>{const [_0x4eea00,_0xa1d192]=_0x3d6adc['subType']['split']('|');return _0x4eea00==_0x28e708['key']&&_0xa1d192!=_0x17ab5d;})['forEach'](_0x47c466=>{this['_reduceSuggestionAttributeRange'](_0x47c466,_0x28e708['range'],_0x516426),_0x393373=!0x0;});}return _0x393373;}['_reduceSuggestionAttributeRange'](_0x197326,_0x22a81a,_0x24fdee){const _0x36304b=_0x197326['getFirstRange']()['getDifference'](_0x22a81a);0x0!==_0x36304b['length']?0x1!==_0x36304b['length']?this['_breakSuggestionMarker'](_0x197326,_0x22a81a['start'],_0x22a81a['end']):this['_setSuggestionRange'](_0x197326,_0x36304b[0x0]):_0x24fdee['removeMarker'](_0x197326['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x23025e){this['_editor']=_0x23025e,this['_model']=_0x23025e['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x10c391,_0x481563,_0x5a9e5f,_0x552bf9,_0x5c4a3b,_0x271cf1){return new u(this['_model'],{'type':_0x10c391,'subType':_0x481563,'id':_0x5a9e5f,'author':_0x552bf9,'creator':_0x552bf9,'attributes':_0x5c4a3b,'onAttributesChange':_0x271cf1,'onAccept':(..._0x5a9e5d)=>this['getSuggestionCallback'](_0x10c391,_0x481563,'accept')(..._0x5a9e5d),'onDiscard':(..._0x53e150)=>this['getSuggestionCallback'](_0x10c391,_0x481563,'discard')(..._0x53e150)});}['registerCustomCallback'](_0x2d93b6,_0x498c02,_0x4564e4,_0xeac0f7){const _0x2fe367=_0x2d93b6+':'+_0x498c02+':'+_0x4564e4;this['_customCallbacks']['set'](_0x2fe367,_0xeac0f7);}['getSuggestionCallback'](_0x54a249,_0x5ddbce,_0x5e90d6){const _0x54cf69=_0x54a249+':'+_0x5ddbce+':'+_0x5e90d6;return this['_customCallbacks']['get'](_0x54cf69)||this['_defaultCallbacks']['get'](_0x54a249+':'+_0x5e90d6);}['_registerDefaultCallbacks'](){const _0x106edb=()=>!0x1,_0x2abc41=_0x45c9e4=>{_0x45c9e4['sort']((_0x2d4edd,_0x345edb)=>_0x2d4edd['start']['isBefore'](_0x345edb['start'])?0x1:-0x1),this['_model']['change'](_0x3e77a5=>{for(const _0x2e4319 of _0x45c9e4){let _0x5e65a7;_0x5e65a7=_0x2e4319['end']['isAtEnd']&&_0x2e4319['end']['parent']==_0x2e4319['start']['nodeAfter']?_0x3e77a5['createSelection'](_0x2e4319['start']['nodeAfter'],'on'):_0x3e77a5['createSelection'](_0x2e4319),this['_model']['deleteContent'](_0x5e65a7,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xf0f0e3=(_0x37e370,_0x284fc6)=>{_0x284fc6&&this['_model']['change'](_0xa59b10=>{const {commandName:_0x2a6c45,commandParams:_0x97bd5e=[]}=_0x284fc6,_0x1450ce=_0x37e370['map'](_0x1aa927=>(Tt(_0x1aa927)&&(_0x1aa927=this['_model']['createRange'](_0x1aa927['end'])),_0x1aa927))['filter'](_0x378730=>'$graveyard'!==_0x378730['root']['rootName']);if(_0x1450ce['length']<0x1)return;const _0x2c7a54=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x26fe43=>_0x48ab0a['fromRange'](_0x26fe43));_0xa59b10['setSelection'](_0x1450ce);for(const _0x112265 of this['_editor']['commands']['commands']())_0x112265['refresh']();_0x97bd5e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2a6c45,..._0x97bd5e);const _0x466c0d=_0x2c7a54['filter'](_0x2f8ebe=>'$graveyard'!=_0x2f8ebe['root']['rootName']);_0x466c0d['length']>0x0&&_0xa59b10['setSelection'](_0x466c0d);for(const _0x1ccb33 of _0x2c7a54)_0x1ccb33['detach']();});},_0x2a4250=(_0x1a79a3,_0x53289b)=>0x1==_0x1a79a3['length']&&0x1==_0x53289b['length']&&_0x1a79a3[0x0]['end']['isEqual'](_0x53289b[0x0]['start']),_0x336fb3=(_0x5a7aa0,_0x2acebc,_0x500a7b,_0x5fa521)=>Ft(_0x5a7aa0,_0x2acebc,_0x500a7b,_0x5fa521,this['_model'])?[_0x5a7aa0,_0x2acebc]:Ft(_0x2acebc,_0x5a7aa0,_0x5fa521,_0x500a7b,this['_model'])?[_0x2acebc,_0x5a7aa0]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x106edb),this['_defaultCallbacks']['set']('insertion:discard',_0x2abc41),this['_defaultCallbacks']['set']('insertion:join',_0x2a4250),this['_defaultCallbacks']['set']('insertion:chain',_0x336fb3),this['_defaultCallbacks']['set']('deletion:accept',_0x2abc41),this['_defaultCallbacks']['set']('deletion:discard',_0x106edb),this['_defaultCallbacks']['set']('deletion:join',_0x2a4250),this['_defaultCallbacks']['set']('deletion:chain',_0x336fb3),this['_defaultCallbacks']['set']('formatInline:accept',_0xf0f0e3),this['_defaultCallbacks']['set']('formatInline:discard',_0x106edb),this['_defaultCallbacks']['set']('formatInline:join',_0x2a4250),this['_defaultCallbacks']['set']('formatInline:chain',_0x106edb),this['_defaultCallbacks']['set']('formatBlock:accept',_0xf0f0e3),this['_defaultCallbacks']['set']('formatBlock:discard',_0x106edb),this['_defaultCallbacks']['set']('formatBlock:join',_0x2a4250),this['_defaultCallbacks']['set']('formatBlock:chain',_0x106edb),this['_defaultCallbacks']['set']('attribute:accept',_0x106edb),this['_defaultCallbacks']['set']('attribute:discard',(_0x3ef6ae,_0x12c946)=>{if(!_0x12c946)return;const _0x799f47=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x25ffae=>{if(_0x12c946['key']==m)for(const _0x2a4bba of _0x3ef6ae){const _0x1a8866=_0x2a4bba['start']['nodeAfter'],_0x41ca1c=_0x12c946['oldValue'];_0x25ffae['rename'](_0x1a8866,_0x41ca1c);}else{if(_0x799f47['_isBlockAttribute'](_0x12c946['key'])){for(const _0x27d7f4 of _0x3ef6ae)void 0x0!==_0x12c946['oldValue']?_0x25ffae['setAttribute'](_0x12c946['key'],_0x12c946['oldValue'],_0x27d7f4['start']['nodeAfter']):_0x25ffae['removeAttribute'](_0x12c946['key'],_0x27d7f4['start']['nodeAfter']);}else{for(const _0x5e2b09 of _0x3ef6ae)_0x12c946['oldValue']?_0x25ffae['setAttribute'](_0x12c946['key'],_0x12c946['oldValue'],_0x5e2b09):_0x25ffae['removeAttribute'](_0x12c946['key'],_0x5e2b09);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2a4250);}}function Rt(_0x383313,_0x22c071,_0xc7828c){for(const _0x147f13 of _0x22c071['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x147f13['root']==_0x147f13)return!0x1;if(!_0xc7828c['containsItem'](_0x147f13))return!0x1;if(_0x383313['isObject'](_0x147f13)||_0x383313['isLimit'](_0x147f13))return!0x0;}return!0x1;}function Tt(_0x5e9c0f){return _0x5e9c0f['end']['parent']==_0x5e9c0f['start']['nodeAfter']&&_0x5e9c0f['end']['isAtStart'];}function Et(_0x5885f9,_0x3c22e9,_0x2194bc,_0x28ad3a){const _0x2ff506=_0x120a38=>!_0x120a38['item']['is']('$textProxy')&&!_0x28ad3a['isObject'](_0x120a38['item']),_0x50b716=_0x5885f9['start']['getLastMatchingPosition'](_0x2ff506),_0x3a23a4=_0x5885f9['end']['getLastMatchingPosition'](_0x2ff506,{'direction':'backward'});return(!_0x5885f9['start']['isEqual'](_0x50b716)||!_0x5885f9['end']['isEqual'](_0x3a23a4))&&(_0x50b716['isBefore'](_0x3a23a4)?_0x2194bc['updateMarker'](_0x3c22e9,{'range':_0x2194bc['createRange'](_0x50b716,_0x3a23a4)}):_0x2194bc['removeMarker'](_0x3c22e9),!0x0);}function Ot(_0x5414cc){return _0x1d0dee(_0x5414cc);}function Vt(_0x54aeaa){const _0x515b2a=_0x54aeaa['start']['nodeAfter'];return _0x515b2a&&_0x515b2a['is']('element');}function Ut(_0x50ea4e,_0x539b53){return null==_0x50ea4e['end']['nodeBefore']&&_0x50ea4e['end']['parent']==_0x50ea4e['start']['nodeAfter']?Gt(_0x50ea4e['start']['nodeAfter'],_0x539b53):_0x50ea4e;}function Gt(_0x376b68,_0x171441){const _0x39c7be=_0x171441['schema']['isObject'](_0x376b68)||_0x171441['schema']['isSelectable'](_0x376b68);return _0x171441['createRange'](_0x171441['createPositionAt'](_0x376b68,'before'),_0x39c7be?_0x171441['createPositionAfter'](_0x376b68):_0x171441['createPositionAt'](_0x376b68,'end'));}function Ft(_0x16ce34,_0x5e99da,_0x1cfa55,_0xda4b44,_0x4917f2){if(!Pt(_0x16ce34,_0x5e99da))return!0x1;if(_0x1cfa55['end']['isEqual'](_0xda4b44['start']))return!0x0;if(_0x16ce34['type']!=_0x5e99da['type'])return!0x1;if(!_0x1cfa55['end']['isTouching'](_0xda4b44['start']))return!0x1;const _0x56eb16=_0x4917f2['createRange'](_0x1cfa55['end'],_0xda4b44['start'])['getWalker']();for(const _0x6c326b of _0x56eb16)if(['elementStart','elementEnd']['includes'](_0x6c326b['type'])&&_0x4917f2['schema']['isLimit'](_0x6c326b['item']))return!0x1;return!0x0;}function Pt(_0x190bc3,_0xae7a26){if(!_0x190bc3['_isDataLoaded']||!_0xae7a26['_isDataLoaded'])return!0x1;const _0x346151=new Set(Object['keys'](_0x190bc3['attributes'])),_0x23e875=new Set(Object['keys'](_0xae7a26['attributes']));if(_0x346151['delete']('groupId'),_0x23e875['delete']('groupId'),0x0==_0x346151['size']&&0x0==_0x23e875['size'])return!0x0;if(_0x346151['size']!=_0x23e875['size'])return!0x1;const _0x3a6740={..._0x190bc3['attributes']},_0x2b02f4={..._0xae7a26['attributes']};return delete _0x3a6740['groupId'],delete _0x2b02f4['groupId'],JSON['stringify'](_0x3a6740)==JSON['stringify'](_0x2b02f4);}function Lt(_0x9a33aa,_0x55c39b){const _0x408998=Ht(_0x9a33aa['attributes']),_0x1f9ec0=Ht(_0x55c39b);if(!_0x9a33aa['_isDataLoaded'])return!0x1;for(const _0x7a7337 of Object['keys'](_0x1f9ec0))if(!_0x123701(_0x408998[_0x7a7337],_0x1f9ec0[_0x7a7337]))return!0x1;return!0x0;}function Ht(_0x3080a5){const _0x92e1e8=Object['assign']({},_0x3080a5);return delete _0x92e1e8['skipNestingCheck'],delete _0x92e1e8['tablePasteChainId'],_0x92e1e8;}class oe extends/* #__PURE__ -- @preserve */
25
+ _0x4adab8(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4891f3,_0x370963,_0x103ebd,_0x271f60){super(),this['model']=_0x370963,this['view']=_0x103ebd,this['commentThreadController']=_0x271f60,this['_editor']=_0x4891f3,this['_acceptCommand']=_0x4891f3['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4891f3['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3f8e81,_0x1794db)=>_0x3f8e81||_0x1794db),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4ee89d=>_0x4ee89d&&this['_editor']['model']['canEditAt'](_0x370963['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5a3378=>_0x5a3378&&this['_editor']['model']['canEditAt'](_0x370963['getRanges']())),this['_pendingAction']=null,_0x103ebd['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x103ebd,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x103ebd,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x103ebd,'change:isDirty',()=>{_0x103ebd['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 _0x58a3a8=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x58a3a8);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x41cb96{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x488320,_0x1ddbd1,_0x1ab129,_0x15a6fb){super(_0x488320),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x1ddbd1['authoredAt']),this['bind']('authoredAt')['to'](_0x1ddbd1),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x1ddbd1,this['_localUser']=_0x1ab129,this['_config']=_0x15a6fb,_0x15a6fb['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:_0x545bde}=this['_config'];this['commentsListView']=new _0x545bde(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',_0x5c96e8=>_0x5c96e8+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5b0c2c,_0x2cae86)=>_0x5b0c2c||!!_0x2cae86);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x55f292}=this['_config'],_0x5dcad8=new _0x55f292(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1495e9=_0x5dcad8['commentInputView'];return _0x5dcad8['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1495e9,'value',(_0x26cfdb,_0x5ea4ba,_0x30249c)=>!!_0x30249c||_0x26cfdb&&!_0x5ea4ba),_0x1495e9['on']('submit',(_0x107092,_0x2653e5)=>{this['fire']('addComment',_0x2653e5),_0x1495e9['editor']['setData']('');}),_0x1495e9['on']('cancel',()=>this['focus']()),_0x1495e9['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5dcad8;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x57f91d,_0x4eb055,_0x53738f,_0x56b80e){super(_0x57f91d,_0x4eb055,_0x53738f,_0x56b80e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2a8630=>_0x2a8630&&_0x2a8630[0x0]?_0x2a8630[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x34e9b6,_0x222925)=>{let _0x5ce0e0='';for(const _0x1dfbac of _0x34e9b6)_0x5ce0e0+='<p>'+ds(_0x1dfbac['content'],_0x1dfbac['color'])+'</p>';return _0x222925?_0x5ce0e0:_0x17044(_0x5ce0e0,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x57f91d,'Accept\x20suggestion'),_0x4eb76a['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x57f91d,'Discard\x20suggestion'),_0x4eb76a['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x3a9c83(_0x57f91d,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x2b682b=this['bindTemplate'],_0x2eb3e0=[{'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':_0x2b682b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2b682b['to']('authoredAt',_0x15ad39=>this['_config']['formatDateTime'](_0x15ad39))}]}]},{'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']&&_0x2eb3e0['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x3c8532={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x2b682b['if']('isActive','ck-suggestion-wrapper--active'),_0x2b682b['to']('type',_0x27e0af=>'ck-suggestion-'+_0x27e0af),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':_0x2eb3e0}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x3c8532['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)),_0x3c8532;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x3b3bd3,_0xb6ff4a,_0x30b600)=>{this['_descriptionElement']['innerHTML']=_0x30b600;});}['_createButton'](_0x27c205,_0x37e25b,_0x52acbf,_0x57a1f3,_0x4d4383){const _0x27cac7=new _0x4dccfe(this['locale']);return _0x27cac7['set']({'label':_0x27c205,'icon':_0x37e25b,'tooltip':!0x0,'tooltipPosition':_0x4d4383}),_0x27cac7['extendTemplate']({'attributes':{'class':_0x52acbf}}),_0x27cac7['on']('execute',()=>{this['fire'](_0x57a1f3,this['_model']['id']);}),_0x27cac7;}['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(_0x3739e1,_0x4be13d){let _0x472b53='';return _0x472b53+=_0x3739e1['split']('*')['map']((_0xe4d60f,_0x55dc7e)=>_0x55dc7e%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0xe4d60f)+'</span>':us(_0xe4d60f))['join'](''),_0x4be13d&&(_0x472b53+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4be13d['value']+'\x22\x20title=\x22'+_0x4be13d['title']+'\x22></span>'),_0x472b53;}function us(_0x30befd){const _0x5ae531=document['createElement']('span');return _0x5ae531['innerText']=_0x30befd,_0x5ae531['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 _0x36bcf3{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4d2226,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x4e379b){super(_0x4e379b),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2d3fbe=this['editor']['config'];_0x2d3fbe['define']('trackChanges.SuggestionThreadView',ne),_0x2d3fbe['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2d3fbe['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x53b6e9,_0x383565){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4b64ca,_0x4d8b4b]of this['_handleControllerBuffer']){const _0x40ee9c=this['_suggestionToController']['has'](_0x4b64ca);_0x40ee9c||_0x4d8b4b?_0x40ee9c&&_0x4d8b4b&&this['_destroyController'](_0x4b64ca):this['_initializeController'](_0x4b64ca);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x53b6e9,_0x383565);}['init'](){const _0x35bab1=this['editor'],_0x235fae=_0x35bab1['plugins']['get']('TrackChangesEditing'),_0x14b834=_0x35bab1['plugins']['get']('Annotations'),_0x3979b1=_0x35bab1['plugins']['get']('EditorAnnotations'),_0x2a4ca1=_0x35bab1['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3979b1['addSourceCollector'](()=>{const _0x3072cc=[];for(const [_0x24d6a0,_0x432af5]of Array['from'](this['_suggestionToController'])){const _0xe561ef=_0x24d6a0['getAllAdjacentSuggestions'](),_0x427670=[];for(const _0x1e5d0f of _0xe561ef){if(!_0x1e5d0f['isInContent'])continue;if(_0x1e5d0f['isMultiRange']){_0x427670['push'](..._0x1e5d0f['getRanges']());continue;}const _0x3b679d=_0x1e5d0f['getFirstRange']();if(_0x427670['length']>0x0){const _0x22cb74=_0x427670[0x0]['getJoined'](_0x3b679d);if(_0x22cb74){_0x427670[0x0]=_0x22cb74;continue;}}_0x427670['push'](_0x3b679d);}_0x3072cc['push']([_0x432af5['view'],_0x427670]);}return _0x3072cc;}),this['listenTo'](_0x235fae,'suggestionLoaded',(_0x58a761,_0x4bf4ef)=>{this['listenTo'](_0x4bf4ef,'change:previous',(_0x395ba1,_0x5338aa,_0x13a490,_0x471ade)=>{_0x4bf4ef['isInContent']&&(null==_0x13a490?(this['_updateController'](_0x471ade['head']),this['_handleSuggestionControllerDelayed'](_0x4bf4ef,!0x1)):(this['_updateController'](_0x13a490['head']),null==_0x471ade&&this['_handleSuggestionControllerDelayed'](_0x4bf4ef,!0x0)));}),null!==_0x4bf4ef['previous']?this['_updateController'](_0x4bf4ef['head']):this['_handleSuggestionControllerDelayed'](_0x4bf4ef,!0x1);}),this['listenTo'](_0x235fae,'suggestionUnloaded',(_0x3fceed,_0x1985c0,_0x42186e)=>{this['stopListening'](_0x1985c0,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1985c0),this['_suggestionToController']['has'](_0x1985c0)&&this['_destroyController'](_0x1985c0),_0x42186e&&this['_updateController'](_0x42186e['head']);}),this['listenTo'](_0x235fae,'suggestionChanged',(_0x11b974,_0x5ce1d6)=>{this['_updateController'](_0x5ce1d6);}),this['listenTo'](_0x14b834,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2a4ca1,'addComment',(_0x134a61,{threadId:_0x130cc9,isFromAdapter:_0x5cfc7a})=>{if(_0x5cfc7a||!_0x235fae['hasSuggestion'](_0x130cc9))return;const _0x218cf2=_0x235fae['getSuggestion'](_0x130cc9);this['_suggestionToController']['get'](_0x218cf2)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x415e83=this['editor']['plugins']['get']('Annotations'),_0x599692=this['editor']['plugins']['get']('TrackChangesEditing'),_0x48ec31=Array['from'](_0x415e83['activeAnnotations'],_0x2d57c0=>_0x2d57c0['innerView'])['filter'](_0x1d2b74=>this['_viewToController']['has'](_0x1d2b74)),_0x46b83a=[];for(const _0xa7c7f9 of _0x48ec31){const _0x4497f4=this['_viewToController']['get'](_0xa7c7f9)['model']['getAllAdjacentSuggestions']();_0x46b83a['push'](..._0x4497f4['reduce']((_0x20a180,_0x17a0f3)=>[..._0x20a180,..._0x17a0f3['getMarkerNames']()],[]));}_0x599692['activeMarkers']=_0x46b83a;}['_addUIComponentsToFactory'](){const _0x29b80a=this['editor'],_0x154b7e=_0x29b80a['locale'],_0x3b727f=o(_0x154b7e,'Track\x20changes'),_0xf4ec2d=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x3b727f,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x154b7e,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x154b7e,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x154b7e,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x154b7e,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0xc4c0f6 of _0xf4ec2d)if(ae(_0xc4c0f6)){const _0x3792c1=_0x29b80a['commands']['get'](_0xc4c0f6['model']['commandName']);_0xc4c0f6['model']['bind']('isOn','isEnabled')['to'](_0x3792c1,'value','isEnabled');}_0x29b80a['ui']['componentFactory']['add']('trackChanges',_0x53d686=>this['_createToolbarButton'](_0x53d686,_0xf4ec2d,_0x3b727f)),_0x29b80a['ui']['componentFactory']['add']('menuBar:trackChanges',_0x18f72c=>this['_createMenuBarMenu'](_0x18f72c,_0xf4ec2d,_0x3b727f));}['_createToolbarButton'](_0x53eb56,_0xb78a49,_0x2f9693){const _0x5c2006=zt(_0x53eb56,Zt),_0x5812b9=this['editor']['commands']['get']('trackChanges');_0x5c2006['buttonView']['set']({'tooltip':_0x2f9693,'label':_0x2f9693,'icon':ie}),_0x5c2006['buttonView']['bind']('isOn')['to'](_0x5812b9,'value'),_0x5c2006['buttonView']['on']('execute',()=>{_0x5812b9['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x5c2006,_0xb78a49,{'role':'menu'});const _0xf66657=[];for(const _0x40129e of _0xb78a49)ae(_0x40129e)&&_0xf66657['push'](this['editor']['commands']['get'](_0x40129e['model']['commandName']));const _0x536ddc=_0x5c2006['buttonView'];return _0x536ddc['actionView']['unbind']('isEnabled'),_0x536ddc['arrowView']['unbind']('isEnabled'),_0x536ddc['actionView']['bind']('isEnabled')['to'](_0x5812b9,'isEnabled'),_0x536ddc['arrowView']['bind']('isEnabled')['toMany'](_0xf66657,'isEnabled',(..._0x5da147)=>_0x5da147['some'](_0x4cff4c=>_0x4cff4c)),_0x5c2006['on']('execute',_0x511430=>{this['editor']['execute'](_0x511430['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5c2006;}['_createMenuBarMenu'](_0x36b0e9,_0x122278,_0x438d2d){const _0x50835b=new Kt(_0x36b0e9),_0x4f6dce=this['editor']['commands']['get']('trackChanges');_0x50835b['buttonView']['set']({'label':_0x438d2d,'icon':ie});const _0x3b01e0=new Qt(_0x36b0e9);for(const _0x578ffc of _0x122278){if('separator'==_0x578ffc['type']){_0x3b01e0['items']['add'](new Jt(_0x36b0e9));continue;}const _0x2aeb50=new Xt(_0x36b0e9,_0x50835b),_0x377649=new Yt(_0x36b0e9),_0x56b3e4=_0x578ffc['model'];_0x377649['bind'](...Object['keys'](_0x56b3e4))['to'](_0x56b3e4),_0x377649['delegate']('execute')['to'](_0x50835b),_0x377649['on']('execute',()=>{this['editor']['execute'](_0x56b3e4['commandName']),this['editor']['editing']['view']['focus']();}),_0x2aeb50['children']['add'](_0x377649),_0x3b01e0['items']['add'](_0x2aeb50);}return _0x50835b['bind']('isEnabled')['to'](_0x4f6dce,'isEnabled'),_0x50835b['panelView']['children']['add'](_0x3b01e0),_0x50835b;}['_initializeController'](_0x1b87bc){const _0x3b9a73=this['editor'],_0x39388c=_0x3b9a73['config'],_0x260c5d=_0x3b9a73['plugins']['get']('Annotations'),_0x205e6f=_0x3b9a73['plugins']['get']('CommentsRepository'),_0xd21e56=_0x3b9a73['plugins']['get']('EditorAnnotations'),_0x21ce84=_0x3b9a73['plugins']['get'](_0x4d2226)['me'],_0x14b28b=_0x39388c['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0xb2f793,CommentThreadInputView:_0x5eb45c}=_0x3b9a73['plugins']['get']('CommentsUI');let _0x38e03d,_0x3d152a;this['_annotationViews']['has'](_0x1b87bc['id'])?(_0x3d152a=this['_annotationViews']['get'](_0x1b87bc['id']),_0x38e03d=_0x3d152a['mainView']):(_0x38e03d=new _0x14b28b(_0x3b9a73['locale'],_0x1b87bc,_0x21ce84,{'disableComments':this['_disableComments'],'editorConfig':_0x39388c['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x39388c['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x39388c['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x39388c['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3a4ed1(_0x39388c['get']('locale')),'CommentView':_0x39388c['get']('comments')['CommentView'],'CommentsListView':_0xb2f793,'CommentThreadInputView':_0x5eb45c}),_0x38e03d['acceptButton']['on']('execute',()=>{_0x3b9a73['editing']['view']['focus']();}),_0x38e03d['discardButton']['on']('execute',()=>{_0x3b9a73['editing']['view']['focus']();}),_0x3d152a=_0x260c5d['createAnnotationView'](this['editor']['locale'],_0x38e03d),_0x3d152a['bind']('isDirty')['to'](_0x38e03d,'isDirty'),_0x3d152a['bind']('length')['to'](_0x38e03d),_0x3d152a['bind']('type')['to'](_0x38e03d,'type',_0x51f82a=>'suggestion-'+_0x51f82a),this['_annotationViews']['set'](_0x1b87bc['id'],_0x3d152a));const _0x3297e7=_0x205e6f['createCommentThreadController'](_0x1b87bc['commentThread'],_0x38e03d),_0x4c3d37=new oe(_0x3b9a73,_0x1b87bc,_0x38e03d,_0x3297e7),_0x579074=_0x1b87bc['getAllAdjacentSuggestions']()['filter'](_0x16f43b=>_0x16f43b['isInContent']);_0x38e03d['descriptionParts']=_0x3b9a73['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x579074),this['_suggestionToController']['set'](_0x1b87bc,_0x4c3d37),this['_viewToController']['set'](_0x38e03d,_0x4c3d37);const _0x50288f=_0x260c5d['createAnnotation']({'view':_0x3d152a,'target':()=>{const _0x2b56c6=[],_0x173867=_0x1b87bc['getAllAdjacentSuggestions']()['filter'](_0x28ddb6=>_0x28ddb6['isInContent']);for(const _0x21c9df of _0x173867)_0x2b56c6['push'](..._0x21c9df['getMarkers']());return _0x4abf7f(_0x3b9a73['editing'],_0x2b56c6);},'type':()=>'suggestion-'+_0x4c3d37['view']['type']});_0x205e6f['_bindAnnotationToEditors'](_0x38e03d,_0x50288f),_0x260c5d['add'](_0x50288f),_0xd21e56['registerAnnotation'](_0x50288f);}['_destroyController'](_0xc74708){const _0xbc9143=this['editor']['plugins']['get']('CommentsRepository'),_0x38fdf4=this['editor']['plugins']['get']('Annotations'),_0xf5aa93=this['_suggestionToController']['get'](_0xc74708),_0x4de252=_0xf5aa93['view'],_0x4b3015=_0x38fdf4['getByInnerView'](_0x4de252);_0xbc9143['_unbindEditors'](_0x4de252),_0x4b3015&&_0x38fdf4['remove'](_0x4b3015),this['_suggestionToController']['delete'](_0xc74708),this['_viewToController']['delete'](_0x4de252),_0xf5aa93['destroy']();}['_updateController'](_0x4ba0c4){if(!_0x4ba0c4['isInContent']||!this['_suggestionToController']['has'](_0x4ba0c4))return;const _0x1de3db=this['editor']['plugins']['get']('TrackChangesEditing'),_0x33dc67=this['_suggestionToController']['get'](_0x4ba0c4),_0xb5069d=_0x4ba0c4['getAllAdjacentSuggestions']();_0x33dc67['view']['descriptionParts']=_0x1de3db['descriptionFactory']['getDescriptions'](_0xb5069d);}['destroy'](){for(const _0x533d47 of this['_suggestionToController']['keys']())this['_destroyController'](_0x533d47);for(const _0x3a7621 of this['_annotationViews']['values']())_0x3a7621['mainView']['destroy']();super['destroy']();}}function ae(_0x273c2d){return'model'in _0x273c2d;}class k extends _0x36bcf3{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x560bca){this['editor']['plugins']['get'](p)['adapter']=_0x560bca;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3993d4){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3993d4);}['getSuggestions']({skipNotAttached:_0x5d7787=!0x1,toJSON:_0x2bd342=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5d7787,'toJSON':_0x2bd342});}['getSuggestion'](_0xcb9849){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xcb9849);}}const T=['Pagination'];class P extends _0x36bcf3{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x3cea6b=this['editor'];if(_0x3cea6b['config']['define']('trackChangesData.editorCreator',_0x51c2b8=>{const _0x157331=_0x3cea6b['model']['document']['getRootNames']()['reduce']((_0x43384f,_0x5da30f)=>(_0x43384f[_0x5da30f]='',_0x43384f),{});return _0x3cea6b['constructor']['create'](_0x157331,_0x51c2b8);}),'function'!=typeof _0x3cea6b['config']['get']('trackChangesData')['editorCreator'])throw new _0x596a61('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x330b04){return N(this['editor'],!0x0,_0x330b04);}['getDataWithDiscardedSuggestions'](_0x27f0bb){return N(this['editor'],!0x1,_0x27f0bb);}}class D extends _0x36bcf3{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x19c1f4){super(_0x19c1f4),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(_0x436e96){return void 0x0!==_0x436e96['getRootsAttributes'];}async function N(_0x373be8,_0x335b32,_0x154ea7){const _0x18b90c=_0x3a88d0(_0x373be8,T);_0x18b90c['plugins']['push'](p,D),_0x18b90c['rootsAttributes']=v(_0x373be8)?_0x373be8['getRootsAttributes']():void 0x0;const _0x5ebea8=document['createDocumentFragment'](),_0xdaa90=_0x373be8['config']['get']('trackChangesData')['editorCreator'],_0x32071a=await _0xdaa90(_0x18b90c,()=>function(_0x123014){const _0x2a4765=document['createElement']('div');return _0x123014['appendChild'](_0x2a4765),_0x2a4765;}(_0x5ebea8));!function(_0x5f0e70,_0x4f6c3e){const _0x5947ef=_0x5f0e70['model']['document']['getRootNames']()['reduce']((_0x392ade,_0x5d3051)=>(_0x392ade[_0x5d3051]=_0x5f0e70['data']['get']({'rootName':_0x5d3051}),_0x392ade),{}),_0x991642=_0x5f0e70['plugins']['get']('Users')['users']['map'](_0x12e755=>({'id':_0x12e755['id'],'name':_0x12e755['name']})),_0x54da8e=_0x5f0e70['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x49ab0a=_0x5f0e70['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3ee188=_0x4f6c3e['plugins']['get']('Users'),_0x3e189b=_0x4f6c3e['plugins']['get']('TrackChangesEditing'),_0x4cc5c2=_0x4f6c3e['plugins']['get']('CommentsRepository');for(const _0x274285 of _0x991642)_0x3ee188['getUser'](_0x274285['id'])||_0x3ee188['addUser'](_0x274285);_0x3ee188['me']||_0x3ee188['useAnonymousUser']();for(const _0x3d1f71 of _0x49ab0a)_0x4cc5c2['addCommentThread'](_0x3d1f71);for(const _0x53b801 of _0x54da8e)_0x3e189b['addSuggestionData'](_0x53b801);_0x4f6c3e['data']['set'](_0x5947ef);}(_0x373be8,_0x32071a),_0x32071a['execute'](_0x335b32?'acceptAllSuggestions':'discardAllSuggestions');const _0x1ef961=v(_0x32071a)?_0x32071a['getFullData'](_0x154ea7):_0x32071a['data']['get'](_0x154ea7);return await _0x32071a['destroy'](),_0x1ef961;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};