@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240501.0 → 0.0.0-nightly-20240503.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as ts,Plugin as _0x1e79ec,PendingActions as _0xa7374,icons as _0x18221a}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x46c804,ObservableMixin as _0x229435,uid as _0x109dee,insertToPriorityArray as _0x1e1e22,priorities as _0x3ba2dc,logWarning as _0x27ca85,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x387b0f,View as _0x4bb07a,ButtonView as _0x1c8755,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 _0x15e88b,hashObject as _0x37c233,surroundingMarkersDetector as _0x751978,trimHtml as _0x2519d9,UserView as _0x26a901,getDateTimeFormatter as _0x42f9a7,getAllMarkersDomElementsSorted as _0x3fdb71,sanitizeEditorConfig as _0x207bf7}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x309129,LiveRange as _0x43239f,LivePosition as _0x27d4fa}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x1d6a2b,toWidget as _0x31e57b}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x202113,set as _0x1d3b7f,isEqual as _0xa08454,unset as _0x356563,omit as Bt}from'lodash-es';import{Delete as _0x432acf,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4385a8,ShiftEnter as _0x3b3aa8}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x317672 of this['editor']['commands']['commands']())_0x317672['affectsData']&&!this['_enabledCommands']['has'](_0x317672)&&_0x317672['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xe57471 of this['editor']['commands']['commands']())_0xe57471['affectsData']&&!this['_enabledCommands']['has'](_0xe57471)&&_0xe57471['clearForceDisabled']('TrackChangesCommand');}constructor(_0x8b83ca,_0x1df23f){super(_0x8b83ca),this['_enabledCommands']=_0x1df23f,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class $ extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x299f72){const _0x15f48f=this['_suggestions']['get'](_0x299f72);if(!_0x15f48f)throw new _0x46c804('track-changes-accept-suggestion-not-found',this);const _0x1055d5=_0x15f48f['getRanges']();this['editor']['model']['canEditAt'](_0x1055d5)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x15f48f);}constructor(_0x20d0db,_0x35860b){super(_0x20d0db),this['_suggestions']=_0x35860b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class B extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1fc6d4){const _0x214a0c=this['_suggestions']['get'](_0x1fc6d4);if(!_0x214a0c)throw new _0x46c804('track-changes-discard-suggestion-not-found',this);const _0x204dbf=_0x214a0c['getRanges']();this['editor']['model']['canEditAt'](_0x204dbf)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x214a0c);}constructor(_0x44f5ac,_0x1af027){super(_0x44f5ac),this['_suggestions']=_0x1af027,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}function ss(_0x53ed45){return _0x53ed45['sort']((_0x3c05d9,_0x3699d3)=>'deletion'==_0x3c05d9['type']&&'deletion'!=_0x3699d3['type']?-0x1:'deletion'!=_0x3c05d9['type']&&'deletion'==_0x3699d3['type']?0x1:0x0);}function to(_0x432db2,_0x52277e){let _0x2e279a,_0x5670c8=0x0;const _0x25e6da=[],_0x3c62a4=_0x52277e['schema'];for(;_0x5670c8<_0x432db2['length'];){const _0x2b512b=_0x432db2[_0x5670c8],_0x15fc4b=_0x432db2[_0x5670c8+0x1];_0x2e279a||(_0x2e279a=_0x52277e['createPositionBefore'](_0x2b512b)),co(_0x52277e,_0x2b512b,_0x15fc4b)||(_0x25e6da['push'](_0x52277e['createRange'](_0x2e279a,_0x3c62a4['isObject'](_0x2b512b)?_0x52277e['createPositionAfter'](_0x2b512b):_0x52277e['createPositionAt'](_0x2b512b,'end'))),_0x2e279a=null),_0x5670c8++;}return _0x25e6da;}function co(_0x55ffc2,_0x899c87,_0x599a3c){if(!_0x599a3c)return!0x1;const _0x2449a6=_0x55ffc2['createPositionAfter'](_0x899c87),_0x4c7f8a=_0x55ffc2['createPositionBefore'](_0x599a3c);return _0x2449a6['isTouching'](_0x4c7f8a);}function rs(_0x137760,_0x15b04c,_0x9de1cd){for(;_0x9de1cd['length'];){const _0x29f93e=_0x9de1cd['splice'](0x0,0x64);_0x137760['change'](()=>{for(const _0xaa483f of _0x29f93e)_0xaa483f['isInContent']&&_0x15b04c['execute'](_0xaa483f['id']);});}}class x extends ts{['refresh'](){const _0x1ff1df=Array['from'](this['_suggestions']['values']())['some'](_0x384da4=>_0x384da4['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1ff1df;}['execute'](){const _0x48dda1=ss(Array['from'](this['_suggestions']['values']()));for(const _0xb1ff51 of _0x48dda1){const _0xff5ce6=_0xb1ff51['getRanges']();if(!this['editor']['model']['canEditAt'](_0xff5ce6))return;}rs(this['editor']['model'],this['_command'],_0x48dda1);}constructor(_0x16ea8b,_0x7a0d0f,_0x51fb74){super(_0x16ea8b),this['_command']=_0x7a0d0f,this['_suggestions']=_0x51fb74,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class R extends ts{['refresh'](){const _0x433780=this['editor']['model']['document']['selection'],_0x3db715=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4c19f7,_0x56c552){const _0x225ac8=Array['from'](_0x4c19f7['getRanges']()),_0x30bc45=new Set();for(const _0x1b394b of _0x56c552)if(_0x1b394b['isInContent']){for(const _0x1d7469 of _0x225ac8)for(const _0x10e5f1 of _0x1b394b['getRanges']())(_0x1d7469['isIntersecting'](_0x10e5f1)||_0x4c19f7['isCollapsed']&&!_0x1b394b['isMultiRange']&&_0x1b394b['next']&&_0x10e5f1['end']['isTouching'](_0x1d7469['start']))&&_0x30bc45['add'](_0x1b394b);}return _0x30bc45;}(_0x433780,_0x3db715),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xcc1434=ss(Array['from'](this['_selectedSuggestions']));for(const _0x505b1c of _0xcc1434){const _0x6f7c70=_0x505b1c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x6f7c70))return;}rs(this['editor']['model'],this['_command'],_0xcc1434);}constructor(_0xbe2171,_0xaee75d,_0xe3135b){super(_0xbe2171),this['_command']=_0xaee75d,this['_suggestions']=_0xe3135b,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class u extends _0x229435(){get['head'](){let _0x59646b=this;for(;_0x59646b['previous'];)_0x59646b=_0x59646b['previous'];return _0x59646b;}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'](_0x493a6f){this['_markerNames']['add'](_0x493a6f);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x21d103=>this['_model']['markers']['get'](_0x21d103))['filter'](_0x113c65=>_0x113c65);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3c1fc0=>{for(const _0x2ccb19 of this['getMarkers']())_0x3c1fc0['removeMarker'](_0x2ccb19);}),this['_markerNames']['clear']();}['removeMarker'](_0x2f21cc){this['_model']['change'](_0x207944=>{_0x207944['removeMarker'](_0x2f21cc);}),this['_markerNames']['delete'](_0x2f21cc);}['addRange'](_0x7a5741){const _0x2160c3='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x2160c3),this['_model']['change'](_0x4cb6e3=>{_0x4cb6e3['addMarker'](_0x2160c3,{'range':_0x7a5741,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x7e6dbe){for(const _0x4a8d8d of this['getRanges']())if(_0x4a8d8d['isIntersecting'](_0x7e6dbe))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x22e04a=>_0x22e04a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xb6a089,_0x50dcf2)=>[..._0xb6a089,..._0x50dcf2['getItems']()],[]);}['getFirstRange'](){var _0x487430;return(null===(_0x487430=this['getFirstMarker']())||void 0x0===_0x487430?void 0x0:_0x487430['getRange']())||null;}['getContainedElement'](){const _0x3346e0=this['getRanges']();if(0x1!=_0x3346e0['length'])return null;const _0x514f0e=_0x3346e0[0x0],_0x5d9f8b=_0x514f0e['start']['nodeAfter'],_0x276942=_0x514f0e['end']['nodeBefore'];return _0x5d9f8b instanceof _0x309129?_0x5d9f8b!=_0x276942?null:_0x5d9f8b: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 _0x34880d=[];let _0x3c0e6f=this['head'];for(;_0x3c0e6f;)_0x34880d['push'](_0x3c0e6f),_0x3c0e6f=_0x3c0e6f['next'];return _0x34880d;}['setAttribute'](_0x4e2479,_0x2b8896){const _0x509b29=_0x202113(this['attributes']);_0x1d3b7f(_0x509b29,_0x4e2479,_0x2b8896),_0xa08454(_0x509b29,this['attributes'])||(this['attributes']=_0x509b29,this['_onAttributesChange'](_0x509b29));}['removeAttribute'](_0x542995){const _0x5e15dc=_0x202113(this['attributes']);_0x356563(_0x5e15dc,_0x542995),_0xa08454(_0x5e15dc,this['attributes'])||(this['attributes']=_0x5e15dc,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 _0x109dee()['substr'](0x1,0x5);}constructor(_0x2a093e,_0x84f1df){super(),this['_isDataLoaded']=!0x1,this['id']=_0x84f1df['id'],this['type']=_0x84f1df['type'],this['subType']=_0x84f1df['subType']||null,this['author']=_0x84f1df['author'],this['creator']=_0x84f1df['creator']||_0x84f1df['author'],this['isExternal']=Boolean(_0x84f1df['attributes']&&_0x84f1df['attributes']['@external']),this['data']=null,this['_model']=_0x2a093e,this['_onAccept']=_0x84f1df['onAccept'],this['_onDiscard']=_0x84f1df['onDiscard'],this['_onAttributesChange']=_0x84f1df['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x84f1df['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}}function o(_0x23437e,_0x4a53ec,_0x9e36e4){const t=_0x23437e['t'];switch(_0x4a53ec){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',_0x9e36e4);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x9e36e4);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x9e36e4);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x9e36e4);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x9e36e4);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',_0x9e36e4);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x9e36e4);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',_0x9e36e4);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x9e36e4);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x9e36e4);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x9e36e4);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x9e36e4);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x9e36e4);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x9e36e4);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x9e36e4);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x9e36e4);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x9e36e4);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x9e36e4);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x9e36e4);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x9e36e4);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x9e36e4);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x9e36e4);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x9e36e4);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'},_0x9e36e4);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x9e36e4);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x9e36e4);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x9e36e4);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x9e36e4);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x9e36e4);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'},_0x9e36e4);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x9e36e4);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x9e36e4);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x9e36e4);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x9e36e4);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'},_0x9e36e4);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x9e36e4);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'},_0x9e36e4);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'},_0x9e36e4);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x9e36e4);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'},_0x9e36e4);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x9e36e4);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'},_0x9e36e4);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x9e36e4);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x9e36e4);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'},_0x9e36e4);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'},_0x9e36e4);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 _0x4a53ec;}}class f{['getDescriptions'](_0x22006c){const _0x1f53dd=[],_0x50ee5c=new Set(),_0x239f23=new Set();for(let _0x49d164=0x0;_0x49d164<_0x22006c['length'];_0x49d164++){const _0xe434a6=_0x22006c[_0x49d164];if(!_0xe434a6['isInContent'])continue;const _0x11fad3=this['_handleCustomCallbackDescription'](_0xe434a6);if(_0x11fad3){if(null!=_0xe434a6['subType']){if(_0x50ee5c['has'](_0xe434a6['subType']))continue;_0x50ee5c['add'](_0xe434a6['subType']);}_0x1f53dd['push'](_0x11fad3);}else{if('attribute'!=_0xe434a6['type'])'insertion'!=_0xe434a6['type']&&'deletion'!=_0xe434a6['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1f53dd,_0xe434a6,_0x22006c[_0x49d164+0x1]);else{const _0x201e50=_0xe434a6['data']['key'];if(_0x239f23['has'](_0x201e50))continue;_0x239f23['add'](_0xe434a6['data']['key']),_0x201e50==m?this['_handleRenameSuggestionDescription'](_0x1f53dd,_0xe434a6):this['_handleAttributeSuggestionDescription'](_0x1f53dd,_0xe434a6);}}}return this['_resolveDescriptionItems'](_0x1f53dd);}['registerDescriptionCallback'](_0x414611){this['_customCallbacks']['push'](_0x414611);}['registerElementLabel'](_0x59ff7f,_0x1229af,_0x49d4dd=_0x3ba2dc['normal']){'function'==typeof _0x59ff7f?_0x1e1e22(this['_itemLabelsCallbacks'],{'matchingCallback':_0x59ff7f,'label':_0x1229af,'priority':_0x49d4dd}):this['_itemLabels']['set'](_0x59ff7f,_0x1229af);}['registerAttributeLabel'](_0x396eb9,_0x57069c){this['_attributeLabels']['set'](_0x396eb9,_0x57069c);}['getItemLabel'](_0x4efa39,_0x26f59e=0x1){let _0x22a9fc;for(const _0x261afa of this['_itemLabelsCallbacks'])if(_0x261afa['matchingCallback'](_0x4efa39)){_0x22a9fc=_0x261afa['label'];break;}return _0x22a9fc||(_0x22a9fc=this['_itemLabels']['get'](_0x4efa39['name'])),_0x22a9fc?_0x22a9fc(_0x26f59e):0x1!==_0x26f59e?_0x26f59e+'\x20'+_0x4efa39['name']+'s':''+_0x4efa39['name'];}['_addDescriptionItems'](_0x234dd9,_0x38d495){const _0x1c60a3=_0x38d495['getFirstRange']()['getWalker'](),_0x2bd102='insertion'==_0x38d495['type']?'add':'remove';for(const _0x35f434 of _0x1c60a3){const _0x301ebc=_0x35f434['item'],_0x2f5be5=_0x234dd9[_0x234dd9['length']-0x1];if(_0x301ebc['is']('$textProxy'))_0x2f5be5&&_0x2f5be5['type']['indexOf']('Container')>-0x1&&_0x234dd9['pop'](),_0x2f5be5&&'text'==_0x2f5be5['type']?_0x2f5be5[_0x2bd102]+=_0x301ebc['data']:_0x234dd9['push']({'type':'text','add':'add'==_0x2bd102?_0x301ebc['data']:'','remove':'remove'==_0x2bd102?_0x301ebc['data']:''});else{if(this['_schema']['isObject'](_0x301ebc)){const _0x297ce8=_0x301ebc;if(_0x2f5be5&&_0x2f5be5['type']['indexOf']('Container')>-0x1&&_0x234dd9['pop'](),'elementEnd'==_0x35f434['type'])continue;_0x2f5be5&&_0x2f5be5['type']==_0x2bd102+'Object'&&_0x2f5be5['element']['name']==_0x297ce8['name']?_0x2f5be5['quantity']++:_0x234dd9['push']({'type':_0x2bd102+'Object','element':_0x297ce8,'quantity':0x1}),_0x1c60a3['skip'](_0x164919=>!('elementEnd'==_0x164919['type']&&_0x164919['item']==_0x301ebc));}else{if(this['_schema']['checkChild'](_0x301ebc,'$text')||_0x301ebc['is']('element','softBreak')){const _0x20b15c=_0x301ebc;if('add'==_0x2bd102&&'elementStart'==_0x35f434['type']||'remove'==_0x2bd102&&'elementEnd'==_0x35f434['type'])continue;if(_0x2f5be5&&-0x1==_0x2f5be5['type']['indexOf']('Container')){'text'==_0x2f5be5['type']&&(_0x2f5be5[_0x2bd102]+='\x0a');continue;}let _0x59bd9f;if(_0x59bd9f='add'==_0x2bd102?_0x20b15c['nextSibling']&&!this['_schema']['isObject'](_0x20b15c['nextSibling'])?_0x20b15c['nextSibling']:null:_0x20b15c['previousSibling']&&!this['_schema']['isObject'](_0x20b15c['previousSibling'])?_0x20b15c['previousSibling']:null,_0x20b15c['isEmpty']||_0x59bd9f&&_0x59bd9f['isEmpty']){const _0x3a4535=_0x59bd9f&&_0x59bd9f['isEmpty']?_0x59bd9f:_0x20b15c;_0x2f5be5&&_0x2f5be5['type']==_0x2bd102+'EmptyContainer'&&_0x2f5be5['element']['name']==_0x3a4535['name']?_0x2f5be5['quantity']++:_0x234dd9['push']({'type':_0x2bd102+'EmptyContainer','element':_0x3a4535,'quantity':0x1});}else _0x234dd9['push']({'type':_0x2bd102+'Container','element':_0x20b15c});}}}}}['_resolveDescriptionItems'](_0x22e92b){const _0x5bf65d=this['_locale'],_0x220755=[],_0x2702c4=[],_0x1fc0f2=[];for(const _0x389e27 of _0x22e92b)switch(_0x389e27['type']){case'text':if(_0x389e27['add']=_0x389e27['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x389e27['remove']=_0x389e27['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x389e27['add']&&''!=_0x389e27['remove']){_0x220755['push']({'type':'replace','content':o(_0x5bf65d,'REPLACE_TEXT',['\x22'+_0x389e27['remove']+'\x22','\x22'+_0x389e27['add']+'\x22'])});continue;}if(null!=_0x389e27['add']['match'](/^ +$/)){_0x220755['push']({'type':'insertion','content':o(_0x5bf65d,'*Insert:*\x20%0',o(_0x5bf65d,'ELEMENT_SPACE',_0x389e27['add']['length']))});continue;}if(null!=_0x389e27['remove']['match'](/^ +$/)){_0x220755['push']({'type':'deletion','content':o(_0x5bf65d,'*Remove:*\x20%0',o(_0x5bf65d,'ELEMENT_SPACE',_0x389e27['remove']['length']))});continue;}if(''!=_0x389e27['add']){_0x220755['push']({'type':'insertion','content':o(_0x5bf65d,'*Insert:*\x20%0','\x22'+_0x389e27['add']+'\x22')});continue;}_0x220755['push']({'type':'deletion','content':o(_0x5bf65d,'*Remove:*\x20%0','\x22'+_0x389e27['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x220755['push']({'type':'insertion','content':o(_0x5bf65d,'*Insert:*\x20%0',this['getItemLabel'](_0x389e27['element'],_0x389e27['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x220755['push']({'type':'deletion','content':o(_0x5bf65d,'*Remove:*\x20%0',this['getItemLabel'](_0x389e27['element'],_0x389e27['quantity']))});continue;case'addContainer':_0x220755['push']({'type':'insertion','content':o(_0x5bf65d,'*Split:*\x20%0',this['getItemLabel'](_0x389e27['element'],_0x389e27['quantity']))});continue;case'removeContainer':_0x220755['push']({'type':'deletion','content':o(_0x5bf65d,'*Merge:*\x20%0',this['getItemLabel'](_0x389e27['element'],_0x389e27['quantity']))});continue;case'addFormat':_0x2702c4['push'](_0x389e27['key']);continue;case'removeFormat':_0x1fc0f2['push'](_0x389e27['key']);continue;default:_0x220755['push'](_0x389e27);}if(_0x2702c4['length']){const _0x2f0b98=_0x2702c4['map'](_0x114891=>this['_attributeLabels']['has'](_0x114891)?this['_attributeLabels']['get'](_0x114891):_0x114891)['join'](',\x20');_0x220755['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2f0b98)});}if(_0x1fc0f2['length']){const _0x133750=_0x1fc0f2['map'](_0x228d3c=>this['_attributeLabels']['has'](_0x228d3c)?this['_attributeLabels']['get'](_0x228d3c):_0x228d3c)['join'](',\x20');_0x220755['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x133750)});}return _0x220755;}['_handleCustomCallbackDescription'](_0x4b9034){for(const _0x985036 of this['_customCallbacks']){const _0x590e0b=_0x985036(_0x4b9034);if(_0x590e0b&&'type'in _0x590e0b)return _0x590e0b;}}['_handleAttributeSuggestionDescription'](_0x4ff98c,_0x11caa1){const _0x5b0885=_0x11caa1['data'],_0xc5d283=void 0x0===_0x5b0885['newValue']?'removeFormat':'addFormat';_0x4ff98c['push']({'type':_0xc5d283,'key':_0x5b0885['key']});}['_handleRenameSuggestionDescription'](_0x2e0b1c,_0x3f5255){_0x2e0b1c['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3f5255['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x22e7be,_0x227312,_0x57cde4){if(this['_addDescriptionItems'](_0x22e7be,_0x227312),_0x57cde4&&_0x57cde4['getFirstRange']()&&!_0x227312['getFirstRange']()['end']['isEqual'](_0x57cde4['getFirstRange']()['start'])){const _0x1e75e0=_0x22e7be[_0x22e7be['length']-0x1],_0x4443d9='insertion'==_0x227312['type']?'add':'remove';_0x1e75e0&&'text'==_0x1e75e0['type']&&(_0x1e75e0[_0x4443d9]+='\x0a');}}constructor(_0x72ee0,_0x465651){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x72ee0,this['_locale']=_0x465651;}}class E extends _0x1e79ec{['afterInit'](){const _0x21b1b7=this['editor'],_0xa91fb3=_0x21b1b7['plugins']['get']('TrackChangesEditing');_0x21b1b7['commands']['get']('showAIAssistant')&&_0xa91fb3['enableCommand']('showAIAssistant');}}class V extends _0x1e79ec{['afterInit'](){const _0x4db47e=this['editor'],_0x26c23d=_0x4db47e['locale'];if(!_0x4db47e['plugins']['has']('AlignmentEditing'))return;const _0x5d06ab=_0x4db47e['plugins']['get']('TrackChangesEditing');_0x5d06ab['enableDefaultAttributesIntegration']('alignment'),_0x5d06ab['registerBlockAttribute']('alignment'),_0x5d06ab['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x26c23d,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f7ad6=this['editor'],_0x2e4e03=_0x4f7ad6['locale'];_0x4f7ad6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44708d=>{if('formatBlock'!=_0x44708d['type'])return;const {data:_0x31798a}=_0x44708d;if(_0x31798a&&'alignment'==_0x31798a['commandName']){const _0x2f71ab=_0x31798a['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2e4e03,'*Format:*\x20%0',function(_0x33f5d7){switch(_0x33f5d7){case'left':return o(_0x2e4e03,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2e4e03,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2e4e03,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2e4e03,'FORMAT_JUSTIFY_TEXT');}}(_0x2f71ab))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x1e79ec{['afterInit'](){const _0x49c142=this['editor'],_0x3859cf=_0x49c142['plugins']['get']('TrackChangesEditing'),_0x329aac=_0x49c142['locale'];for(const _0x109338 of ti){if(!_0x49c142['plugins']['has'](_0x109338))continue;const _0x23d856=_0x109338['slice'](0x0,-0x7)['toLowerCase'](),_0x5f14ff='FORMAT_'+_0x23d856['toUpperCase']();_0x3859cf['enableDefaultAttributesIntegration'](_0x23d856),_0x3859cf['registerInlineAttribute'](_0x23d856),_0x3859cf['descriptionFactory']['registerAttributeLabel'](_0x23d856,o(_0x329aac,_0x5f14ff));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9429b=this['editor'],_0x1dfb36=_0x9429b['locale'],_0x58ec8e=_0x9429b['plugins']['get']('TrackChangesEditing');function _0x28c2cc(_0x2ba428,_0x4599ef){_0x58ec8e['descriptionFactory']['registerDescriptionCallback'](_0x55e09b=>{if('formatInline'!=_0x55e09b['type'])return;const {data:_0x47bac9}=_0x55e09b;return _0x47bac9&&_0x47bac9['commandName']===_0x2ba428?_0x47bac9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1dfb36,'*Format:*\x20%0',_0x4599ef)}:{'type':'format','content':o(_0x1dfb36,'*Remove\x20format:*\x20%0',_0x4599ef)}:void 0x0;});}_0x28c2cc('bold',o(_0x1dfb36,'FORMAT_BOLD')),_0x28c2cc('italic',o(_0x1dfb36,'FORMAT_ITALIC')),_0x28c2cc('underline',o(_0x1dfb36,'FORMAT_UNDERLINE')),_0x28c2cc('code',o(_0x1dfb36,'FORMAT_CODE')),_0x28c2cc('strikethrough',o(_0x1dfb36,'FORMAT_STRIKETHROUGH')),_0x28c2cc('subscript',o(_0x1dfb36,'FORMAT_SUBSCRIPT')),_0x28c2cc('superscript',o(_0x1dfb36,'FORMAT_SUPERSCRIPT'));}}class O extends _0x1e79ec{['afterInit'](){const _0x1908a3=this['editor'],_0x2a5dee=_0x1908a3['locale'];if(!_0x1908a3['plugins']['has']('BlockQuoteEditing'))return;const _0xae3982=_0x1908a3['plugins']['get']('TrackChangesEditing'),_0x2f1ccb=this['editor']['commands']['get']('blockQuote');_0xae3982['enableCommand']('blockQuote',(_0x62422d,_0x41161c={})=>{const _0x15e5a5=this['editor']['model']['document']['selection'],_0x120d7d=_0x41161c&&void 0x0!==_0x41161c['forceValue']?_0x41161c['forceValue']:!_0x2f1ccb['value'];let _0x304c38=[];if(_0x120d7d){const _0x5172a3=Array['from'](_0x15e5a5['getSelectedBlocks']())['filter'](_0x19a28d=>oo(_0x19a28d)||function(_0x3a6215,_0x54bfb7){const _0x5099fc=_0x54bfb7['checkChild'](_0x3a6215['parent'],'blockQuote'),_0x480816=_0x54bfb7['checkChild'](['$root','blockQuote'],_0x3a6215);return _0x5099fc&&_0x480816;}(_0x19a28d,this['editor']['model']['schema']));_0x304c38=to(_0x5172a3,_0x1908a3['model']);}else{const _0x56b638=Array['from'](_0x15e5a5['getSelectedBlocks']())['filter'](_0x4885ee=>oo(_0x4885ee));_0x304c38=to(_0x56b638,_0x1908a3['model']);}_0x1908a3['model']['change'](()=>{for(const _0x38bb47 of _0x304c38)_0xae3982['markBlockFormat'](_0x38bb47,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x120d7d}]});});}),_0xae3982['descriptionFactory']['registerDescriptionCallback'](_0x4912c1=>{const {data:_0x562605}=_0x4912c1;if(_0x562605&&'blockQuote'==_0x562605['commandName']){const _0x4e8b9f=o(_0x2a5dee,'ELEMENT_BLOCK_QUOTE');return _0x562605['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2a5dee,'*Set\x20format:*\x20%0',_0x4e8b9f)}:{'type':'format','content':o(_0x2a5dee,'*Remove\x20format:*\x20%0',_0x4e8b9f)};}});}}function oo(_0x149d18){return'blockQuote'==_0x149d18['parent']['name'];}class F extends _0x1e79ec{['afterInit'](){const _0x1df1ee=this['editor'];_0x1df1ee['plugins']['has']('CaseChange')&&(_0x1df1ee['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1df1ee['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1df1ee['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x1e79ec{['afterInit'](){const _0x4f9dd4=this['editor'];_0x4f9dd4['commands']['get']('ckbox')&&_0x4f9dd4['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x1e79ec{['afterInit'](){const _0x5b2d59=this['editor'];if(!_0x5b2d59['plugins']['has']('CodeBlock'))return;const _0x225a95=_0x5b2d59['plugins']['get']('TrackChangesEditing'),_0x3e321f=_0x5b2d59['locale'],_0x1ba06c=_0x5b2d59['config']['get']('codeBlock')['languages'],_0x1e8925=_0x5b2d59['commands']['get']('codeBlock');_0x225a95['enableCommand']('indentCodeBlock'),_0x225a95['enableCommand']('outdentCodeBlock'),_0x225a95['enableCommand']('codeBlock',(_0x2dcb99,_0x5588bc={})=>{const _0x59d844=_0x5b2d59['model'],_0x390909=_0x5b2d59['model']['document']['selection'],_0x23f3d9=_0x5588bc&&void 0x0!==_0x5588bc['forceValue']?_0x5588bc['forceValue']:!_0x1e8925['value'];let _0x31bd05;_0x5588bc['language']||(_0x5588bc['language']=_0x1ba06c[0x0]['language']),_0x31bd05=_0x23f3d9?Array['from'](_0x390909['getSelectedBlocks']())['filter'](_0x344dec=>eo(_0x344dec)||function(_0xb3ce38,_0x4e13b3){if(_0xb3ce38['is']('rootElement')||_0x4e13b3['isLimit'](_0xb3ce38))return!0x1;return _0x4e13b3['checkChild'](_0xb3ce38['parent'],'codeBlock');}(_0x344dec,_0x59d844['schema'])):Array['from'](_0x390909['getSelectedBlocks']())['filter'](_0x4d7a6c=>eo(_0x4d7a6c));const _0x820429=to(_0x31bd05,_0x59d844);_0x59d844['change'](()=>{for(const _0x1235b4 of _0x820429)_0x225a95['markBlockFormat'](_0x1235b4,{'commandName':'codeBlock','commandParams':[{..._0x5588bc,'forceValue':_0x23f3d9}],'formatGroupId':'blockName'});});}),(_0x225a95['descriptionFactory']['registerElementLabel']('codeBlock',_0x1d8b75=>o(_0x3e321f,'ELEMENT_CODE_BLOCK',_0x1d8b75)),_0x225a95['descriptionFactory']['registerDescriptionCallback'](_0x5476c5=>{if('formatBlock'!=_0x5476c5['type'])return;const _0x1af923=_0x3e321f['t'],{data:_0x506404}=_0x5476c5;if(!_0x506404||'codeBlock'!=_0x506404['commandName'])return;const _0x30417e=_0x506404['commandParams'][0x0]['language'],_0x56e5eb=_0x1af923(_0x1ba06c['find'](_0x9bb326=>_0x9bb326['language']===_0x30417e)['label'])['toLowerCase']();return _0x506404['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3e321f,'*Set\x20format:*\x20%0',o(_0x3e321f,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x56e5eb+')')}:{'type':'format','content':o(_0x3e321f,'*Remove\x20format:*\x20%0',o(_0x3e321f,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x1d50c1){return'codeBlock'==_0x1d50c1['name'];}class H extends _0x1e79ec{['afterInit'](){const _0x584781=this['editor'];if(!_0x584781['plugins']['has']('CommentsEditing'))return;_0x584781['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x485a18,_0x33029f,_0x47ec63){const _0xd10e04=[];for(const _0x41c5c7 of _0x33029f['getItems']())_0x41c5c7['hasAttribute'](_0x485a18)&&_0xd10e04['push'](_0x47ec63['createRangeOn'](_0x41c5c7));return _0xd10e04;}function _e(_0x1eaa89,_0xdd973,{showActiveMarker:_0x55b7d2=!0x0}={}){const _0x16f4c0=_0x1eaa89['plugins']['get']('TrackChangesEditing');return(_0x50d46c,_0x4e4f61,_0x505399)=>{if(!_0x505399['consumable']['test'](_0x4e4f61['markerRange'],_0x50d46c['name']))return;const _0x5c55ed=_0x4e4f61['markerRange']['getWalker'](),_0x215be6=_0x4e4f61['markerRange']['start'],_0x16836a=_0x1eaa89['model']['schema'];let _0x561e36=null,_0x16402e=null,_0x4eeab0=!0x1,_0x5c39a0=!0x1;for(const _0x5509bb of _0x5c55ed){const _0x40f6f8=_0x5509bb['item'];_0x4eeab0=_0x4eeab0||_0x16836a['isContent'](_0x40f6f8);const _0x3fd28d=_0x505399['mapper']['toViewElement'](_0x40f6f8);if(_0x3fd28d&&_0x3fd28d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5509bb['type']&&(_0x16836a['isBlock'](_0x40f6f8)&&!_0x16836a['isLimit'](_0x40f6f8)&&(_0x40f6f8['nextSibling']||_0x215be6['isAtEnd']?_0x561e36&&_0x561e36['parent']==_0x40f6f8||(_0x561e36=_0x40f6f8,_0x58f44a(_0x5509bb['previousPosition']),_0x5c39a0=!0x0):_0x16402e=_0x16402e||_0x5509bb['previousPosition']));}function _0x58f44a(_0x488e8a){const _0x1f0848=_0x505399['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xdd973}),_0x15cac5=_0x505399['mapper']['toViewPosition'](_0x488e8a);_0x55b7d2&&_0x16f4c0['activeMarkers']['includes'](_0x4e4f61['markerName'])&&_0x505399['writer']['addClass']('ck-suggestion-marker--active',_0x1f0848),_0x505399['writer']['insert'](_0x15cac5,_0x1f0848),_0x505399['mapper']['bindElementToMarker'](_0x1f0848,_0x4e4f61['markerName']);}_0x4eeab0||_0x5c39a0||!_0x16402e||_0x58f44a(_0x16402e);};}class q extends _0x1e79ec{static get['requires'](){return[_0x432acf];}['init'](){const _0x1a99c3=this['editor'],_0x260362=_0x1a99c3['plugins']['get']('TrackChangesEditing');_0x260362['enableCommand']('delete');const _0x154c3f=_0x1a99c3['commands']['get']('deleteForward');_0x260362['enableCommand']('deleteForward',(_0x4680d7,_0x5d642a={})=>{const _0x62289d=_0x1a99c3['model']['createSelection'](_0x1a99c3['model']['document']['selection']);_0x62289d['isCollapsed']&&_0x1a99c3['model']['modifySelection'](_0x62289d,{'direction':'forward','unit':_0x5d642a['unit']});const _0x5b6235=_0x62289d['getFirstRange'](),_0x36e53b=_0x43239f['fromRange'](_0x5b6235);let _0x3d1448;_0x4680d7(_0x5d642a),_0x3d1448='$graveyard'==_0x36e53b['root']['rootName']?_0x1a99c3['model']['createRange'](_0x5b6235['start']):_0x1a99c3['model']['createRange'](_0x36e53b['start'],_0x36e53b['end']),_0x36e53b['detach'](),_0x1a99c3['model']['enqueueChange'](_0x154c3f['buffer']['batch'],_0x320eec=>{_0x154c3f['buffer']['lock'](),_0x320eec['setSelection'](_0x320eec['createRange'](_0x3d1448['end'])),_0x154c3f['buffer']['unlock']();});}),_0x1a99c3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x1a99c3,'merge'),{'priority':'high'}),_0x1a99c3['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x592936,_0x546e57,_0x284216)=>{_0x284216['options']['showSuggestionHighlights']&&_e(_0x1a99c3,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x592936,_0x546e57,_0x284216);},{'priority':'high'}),_0x1a99c3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x11bc7c,_0x5db0ff,_0x1b950a)=>{const _0x42939c=_0x1b950a['mapper']['markerNameToElements'](_0x5db0ff['markerName']);if(_0x42939c){for(const _0x19ce2d of _0x42939c)_0x19ce2d['is']('uiElement')&&(_0x1b950a['mapper']['unbindElementFromMarkerName'](_0x19ce2d,_0x5db0ff['markerName']),_0x1b950a['writer']['remove'](_0x19ce2d));}},{'priority':'high'});}}class z extends _0x1e79ec{['afterInit'](){const _0x82e26c=this['editor'];if(!_0x82e26c['plugins']['has']('ListEditing'))return;const _0x114cd0=_0x82e26c['locale'],_0x3f68ca=_0x82e26c['plugins']['get']('TrackChangesEditing'),_0x375dec=_0x82e26c['plugins']['has']('TodoListEditing'),_0x3b0412=!!_0x82e26c['config']['get']('list.multiBlock');function _0x208cef(_0x381932){return{'type':'format','content':''+o(_0x114cd0,'*Set\x20format:*\x20%0',_0x381932)};}function _0x468d06(_0x5802eb){return{'type':'format','content':''+o(_0x114cd0,'*Remove\x20format:*\x20%0',_0x5802eb)};}_0x3f68ca['enableDefaultAttributesIntegration']('numberedList'),_0x3f68ca['enableDefaultAttributesIntegration']('bulletedList'),_0x3f68ca['enableDefaultAttributesIntegration']('customNumberedList'),_0x3f68ca['enableDefaultAttributesIntegration']('customBulletedList'),_0x3f68ca['enableDefaultAttributesIntegration']('indentList'),_0x3f68ca['enableDefaultAttributesIntegration']('outdentList'),_0x3f68ca['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3f68ca['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3f68ca['registerBlockAttribute']('listItemId'),_0x3f68ca['registerBlockAttribute']('listType'),_0x3f68ca['registerBlockAttribute']('listIndent'),_0x3b0412&&(_0x3f68ca['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3f68ca['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x375dec&&(_0x3f68ca['enableDefaultAttributesIntegration']('todoList'),_0x3f68ca['enableDefaultAttributesIntegration']('checkTodoList'),_0x3f68ca['registerBlockAttribute']('todoListChecked'),_0x3f68ca['descriptionFactory']['registerDescriptionCallback'](_0x21bcbc=>{const {data:_0x4e9c0f}=_0x21bcbc;if(_0x4e9c0f&&'todoListChecked'==_0x4e9c0f['key'])return{'type':'format','content':_0x4e9c0f['newValue']?o(_0x114cd0,'*Check\x20item*'):o(_0x114cd0,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x55a749=>{if(_0x55a749['batch']['isUndo'])return!0x1;let _0x294625=!0x1;const _0x550d40=_0x3f68ca['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x51a643=>'todoListChecked'===_0x3f68ca['_getAttributeKey'](_0x51a643));for(const _0x431493 of _0x550d40){'todo'!=_0x431493['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3f68ca['_findSuggestions'](_0x431493['getFirstRange'](),'attribute')['find'](_0x3244c1=>'listType'===_0x3f68ca['_getAttributeKey'](_0x3244c1['suggestion']))||(_0x55a749['removeMarker'](_0x431493['getFirstMarker']()),_0x294625=!0x0));}return _0x294625;})),_0x3f68ca['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x114cd0,'FORMAT_INDENT'));const _0x3a6acc={'type':'format','content':''};_0x3f68ca['descriptionFactory']['registerDescriptionCallback'](_0x47d20b=>{const {data:_0x563125}=_0x47d20b;if(!_0x563125||'listType'!=_0x563125['key'])return;let _0x26e22e=_0x47d20b['head'];for(;_0x26e22e;){if(_0x26e22e['data']&&(('listStyle'==_0x26e22e['data']['key']||'listMarkerStyle'==_0x26e22e['data']['key'])&&(_0x26e22e['data']['newValue']&&'default'!=_0x26e22e['data']['newValue']||'default'!=_0x26e22e['data']['oldValue']&&!_0x563125['newValue'])||!_0x3b0412&&_0x26e22e['data']['key']==m))return _0x3a6acc;_0x26e22e=_0x26e22e['next'];}if(null==_0x563125['newValue'])switch(_0x563125['oldValue']){case'bulleted':return _0x468d06(o(_0x114cd0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x468d06(o(_0x114cd0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x468d06(o(_0x114cd0,'ELEMENT_TODO_LIST'));}switch(_0x563125['newValue']){case'bulleted':return _0x208cef(o(_0x114cd0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x208cef(o(_0x114cd0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x208cef(o(_0x114cd0,'ELEMENT_TODO_LIST'));}}),_0x3f68ca['descriptionFactory']['registerDescriptionCallback'](_0x18b7c3=>{const {data:_0x3a39fa}=_0x18b7c3;if(_0x3a39fa&&'listIndent'==_0x3a39fa['key'])return null==_0x3a39fa['newValue']||null==_0x3a39fa['oldValue']&&0x0==_0x3a39fa['newValue']?_0x3a6acc:void 0x0;}),_0x3f68ca['descriptionFactory']['registerDescriptionCallback'](_0x5751a5=>{if('attribute'!=_0x5751a5['type'])return;const {data:_0x5762c4}=_0x5751a5;if(!_0x5762c4||'listItemId'!=_0x5762c4['key'])return;const _0x1820f9=le(_0x5751a5);return'newValue'==_0x1820f9?{'type':'format','content':o(_0x114cd0,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1820f9?{'type':'format','content':o(_0x114cd0,'*Split:*\x20list\x20item')}:_0x3a6acc;}),_0x82e26c['model']['document']['registerPostFixer'](_0xdafe0b=>this['listItemIdFixer'](_0xdafe0b)),_0x82e26c['model']['document']['registerPostFixer'](_0x1ba3ec=>this['noTrackChangesFixer'](_0x1ba3ec)),_0x82e26c['model']['document']['registerPostFixer'](_0x4e05a3=>this['assureChains'](_0x4e05a3)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2903c8){if(_0x2903c8['batch']['isUndo']||!_0x2903c8['batch']['isLocal'])return!0x1;let _0x509452=!0x1;const _0x496a5c=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x44a03f=>_0x44a03f['data']&&'listItemId'==_0x44a03f['data']['key'])['filter'](_0x143d56=>_0x143d56['data']['newValue']&&_0x143d56['data']['oldValue']);for(const _0x18e882 of _0x496a5c)le(_0x18e882)||(_0x2903c8['removeMarker'](_0x18e882['getFirstMarker']()),_0x509452=!0x0);return _0x509452;}['noTrackChangesFixer'](_0x202f84){if(_0x202f84['batch']['isUndo']||!_0x202f84['batch']['isLocal'])return!0x1;const _0x2427c6=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2427c6['trackChangesCommand']['value'])return!0x1;let _0x3f2001=!0x1;const _0x33344b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x143593=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x48a248=>'attribute'==_0x48a248['type'])['filter'](_0x2bcadd=>_0x33344b['includes'](_0x2bcadd['attributeKey']));if(0x0==_0x143593['length'])return _0x3f2001;for(const _0x26229f of _0x143593){const _0xdb5e0a=_0x2427c6['_findSuggestions'](_0x26229f['range'],'attribute')['filter'](_0xb969a4=>!_0xb969a4['meta']['isNextTo'])['map'](_0xd0b0dd=>_0xd0b0dd['suggestion'])['filter'](_0x3ec394=>{const _0x15c6f1=_0x2427c6['_getAttributeKey'](_0x3ec394);return _0x33344b['includes'](_0x15c6f1);});if(_0xdb5e0a['length']){for(const _0x6dbf98 of _0xdb5e0a)_0x202f84['removeMarker'](_0x6dbf98['getFirstMarker']());_0x3f2001=!0x0;}}return _0x3f2001;}['assureChains'](_0x39bd1a){if(_0x39bd1a['batch']['isUndo']||!_0x39bd1a['batch']['isLocal'])return!0x1;const _0x2da24f=this['editor']['plugins']['get']('TrackChangesEditing');let _0x182d7f=!0x1;const _0x5ebbfc=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x5b499d of _0x2da24f['getSuggestions']({'skipNotAttached':!0x0})){const _0x455519=_0x2da24f['_findSuggestions'](_0x5b499d['getFirstRange'](),'attribute')['map'](_0xff74e=>_0xff74e['suggestion'])['filter'](_0x4b04fa=>_0x4b04fa['data']&&_0x5ebbfc['includes'](_0x4b04fa['data']['key']));if(!_0x455519['length'])continue;const _0x1e2480=_0x455519[0x0]['head']['attributes']['groupId'];if(!_0x455519['every'](_0x688f4b=>_0x688f4b['attributes']['groupId']===_0x1e2480)){for(const _0x5e54c9 of _0x455519)_0x28cb69(_0x5e54c9,_0x1e2480)&&(_0x182d7f=!0x0);}}return _0x182d7f;function _0x3f7f8e(_0x277255,_0x19107f){for(const _0x4b0937 of _0x2da24f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x351161=>'attribute'==_0x351161['type']&&_0x351161['attributes']['groupId']==_0x277255))_0x4b0937['setAttribute']('groupId',_0x19107f);}function _0x28cb69(_0x54ca02,_0x4ca8c3){let _0x42e330=_0x54ca02['head'],_0x9a8790=!0x1;for(;_0x42e330;)_0x42e330['attributes']['groupId']!=_0x4ca8c3&&(_0x3f7f8e(_0x42e330['attributes']['groupId'],_0x4ca8c3),_0x42e330['setAttribute']('groupId',_0x4ca8c3),_0x9a8790=!0x0),_0x42e330=_0x42e330['next'];return _0x9a8790;}}['_supportLegacySuggestions'](){const _0xc70e3c=this['editor'],_0x188426=_0xc70e3c['locale'],_0x1366b3=_0xc70e3c['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1366b3['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x45b358,_0x165c29){const _0x1a21e8=[];for(let _0x3faebf of _0x45b358)_0x3faebf['start']['nodeAfter']===_0x3faebf['end']['parent']&&(_0x3faebf=_0xc70e3c['model']['createRange'](_0xc70e3c['model']['createPositionAt'](_0x3faebf['start']['nodeAfter'],0x0))),_0x1a21e8['push'](_0x3faebf);_0xc70e3c['model']['change'](_0x5ba1ba=>{const _0x39646f=_0xc70e3c['model']['document']['selection'],_0x15094e=Array['from'](_0x39646f['getRanges']())['map'](_0x505e98=>_0x43239f['fromRange'](_0x505e98));_0x5ba1ba['setSelection'](_0x1a21e8),_0xc70e3c['commands']['get'](_0x165c29['commandName'])['refresh'](),_0x165c29['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xc70e3c['execute'](_0x165c29['commandName'],..._0x165c29['commandParams']),_0x5ba1ba['setSelection'](_0x15094e);for(const _0xbc8bbe of _0x15094e)_0xbc8bbe['detach']();});}),_0x1366b3['descriptionFactory']['registerElementLabel'](function(_0x357e52){const _0x12cf04=!_0xc70e3c['model']['schema']['isObject'](_0x357e52),_0x35e80b=_0x357e52['previousSibling'],_0x2fb95e=_0x357e52['nextSibling'],_0x16a5d7=_0x357e52['getAttribute']('listItemId'),_0x3d0c6c=!_0x35e80b||_0x35e80b['getAttribute']('listItemId')!==_0x16a5d7,_0x369f99=!_0x2fb95e||_0x2fb95e['getAttribute']('listItemId')!==_0x16a5d7;return _0x12cf04&&Boolean(_0x16a5d7)&&_0x3d0c6c&&_0x369f99;},_0x9d205e=>o(_0x188426,'ELEMENT_LIST_ITEM',_0x9d205e));}['_registerLegacyDescription'](){const _0x4f5380=this['editor'],_0x2c2de6=_0x4f5380['locale'];function _0x177e7a(_0x421a38){const _0x55dfef=_0x4f5380['commands']['get']('bulletedList')['value'],_0x355753=_0x4f5380['commands']['get']('numberedList')['value'];return'numberedList'===_0x421a38?_0x55dfef:_0x355753;}_0x4f5380['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x51d465){if('formatBlock'!=_0x51d465['type'])return;const {data:_0x482946}=_0x51d465;if(!_0x482946)return;let _0x40b1ab,_0x2ac37d,_0x12c024,_0x2a25f5;switch(_0x482946['commandName']){case'bulletedList':_0x12c024=_0x482946['commandParams'][0x0]['forceValue'],_0x2a25f5=_0x177e7a(_0x482946['commandName']),_0x40b1ab=_0x12c024?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2a25f5&&_0x4f5380['config']['get']('list.multiBlock')||(_0x40b1ab='*Change\x20to:*\x20%0'),_0x2ac37d={'type':'format','content':o(_0x2c2de6,_0x40b1ab,o(_0x2c2de6,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x12c024=_0x482946['commandParams'][0x0]['forceValue'],_0x2a25f5=_0x177e7a(_0x482946['commandName']),_0x40b1ab=_0x12c024?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2a25f5&&_0x4f5380['config']['get']('list.multiBlock')||(_0x40b1ab='*Change\x20to:*\x20%0'),_0x2ac37d={'type':'format','content':o(_0x2c2de6,_0x40b1ab,o(_0x2c2de6,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x40b1ab='*Indent:*\x20%0',_0x2ac37d={'type':'format','content':o(_0x2c2de6,_0x40b1ab,o(_0x2c2de6,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x40b1ab=function(_0x5cea0f){const _0x4760f8=_0x5cea0f['getFirstRange']();let _0x58335d=_0x4760f8['start']['nodeAfter'];for(;_0x58335d&&_0x4760f8['containsItem'](_0x58335d);){if(_0x58335d['getAttribute']('listIndent')>0x0)return!0x1;_0x58335d=_0x58335d['nextSibling'];}return!0x0;}(_0x51d465)?o(_0x2c2de6,'*Format:*\x20remove\x20from\x20%0',o(_0x2c2de6,function(_0x2816c8){return'ELEMENT_'+_0x2816c8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x51d465))):o(_0x2c2de6,'*Outdent:*\x20%0',o(_0x2c2de6,'ELEMENT_LIST_ITEM')),_0x2ac37d={'type':'format','content':_0x40b1ab};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x482946['multipleBlocks']&&(_0x40b1ab='*Merge:*\x20%0',_0x2ac37d={'type':'deletion','content':o(_0x2c2de6,_0x40b1ab,o(_0x2c2de6,'ELEMENT_LIST_ITEM'))});}return _0x2ac37d;});}}function le(_0x532c1e){let _0x3cea4c=_0x532c1e['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3cea4c;){const _0x486648=_0x3cea4c['getAttribute']('listItemId');if(!_0x486648)return!0x1;if(_0x486648==_0x532c1e['data']['newValue'])return'newValue';if(_0x486648==_0x532c1e['data']['oldValue'])return'oldValue';_0x3cea4c=_0x3cea4c['previousSibling'];}return!0x1;}class ue extends _0x1e79ec{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2950bc=this['editor']['config']['get']('list.properties'),_0x391dec=this['editor']['plugins']['get']('TrackChangesEditing');_0x2950bc['styles']&&(_0x391dec['enableDefaultAttributesIntegration']('listStyle'),_0x391dec['registerBlockAttribute']('listStyle')),_0x2950bc['reversed']&&(_0x391dec['enableDefaultAttributesIntegration']('listReversed'),_0x391dec['registerBlockAttribute']('listReversed')),_0x2950bc['startIndex']&&(_0x391dec['enableDefaultAttributesIntegration']('listStart'),_0x391dec['registerBlockAttribute']('listStart'));const _0xe9f580={'type':'format','content':''};_0x391dec['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x6de0b4=this['editor']['locale'];_0x391dec['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x6de0b4,'FORMAT_LIST_REVERSED')),_0x391dec['descriptionFactory']['registerDescriptionCallback'](_0x320824=>{const {data:_0x1e5c03}=_0x320824;if(_0x1e5c03&&'listReversed'==_0x1e5c03['key'])return null==_0x1e5c03['newValue']||0x0==_0x1e5c03['newValue']&&null==_0x1e5c03['oldValue']?_0xe9f580:void 0x0;}),_0x391dec['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x6de0b4,'FORMAT_LIST_START')),_0x391dec['descriptionFactory']['registerDescriptionCallback'](_0x41806e=>{const {data:_0x285806}=_0x41806e;if(_0x285806&&'listStart'==_0x285806['key'])return null==_0x285806['newValue']||0x1==_0x285806['newValue']&&null==_0x285806['oldValue']?_0xe9f580:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1ccde8=>{if(_0x1ccde8['batch']['isUndo'])return!0x1;let _0x423027=!0x1;const _0x3e4729=_0x391dec['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x55a872=>{const _0x355b67=_0x391dec['_getAttributeKey'](_0x55a872);return'listStart'==_0x355b67||'listReversed'==_0x355b67;});for(const _0x7199b3 of _0x3e4729){const _0x1eb680=_0x7199b3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1eb680||'customNumbered'==_0x1eb680)continue;_0x391dec['_findSuggestions'](_0x7199b3['getFirstRange'](),'attribute')['find'](_0x5a6885=>'listType'==_0x391dec['_getAttributeKey'](_0x5a6885['suggestion']))||(_0x1ccde8['removeMarker'](_0x7199b3['getFirstMarker']()),_0x423027=!0x0);}return _0x423027;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4567b3){const _0x52b1c8=this['editor']['locale'],{data:_0x38b6ef}=_0x4567b3,_0x3810c9={'type':'format','content':''};if(!_0x38b6ef||'listStyle'!=_0x38b6ef['key'])return;if(!_0x38b6ef['oldValue'])return'default'==_0x38b6ef['newValue']?_0x3810c9:{'type':'format','content':''+o(_0x52b1c8,'*Set\x20format:*\x20%0',o(_0x52b1c8,this['_getTranslationKeyForListStyle'](_0x38b6ef['newValue'])))};if(!_0x38b6ef['newValue']){if('default'==_0x38b6ef['oldValue'])return _0x3810c9;let _0x104bf7=_0x4567b3['head'];for(;_0x104bf7;){if(_0x104bf7['data']&&'listType'==_0x104bf7['data']['key']&&_0x104bf7['data']['newValue'])return _0x3810c9;_0x104bf7=_0x104bf7['next'];}return{'type':'format','content':''+o(_0x52b1c8,'*Remove\x20format:*\x20%0',o(_0x52b1c8,this['_getTranslationKeyForListStyle'](_0x38b6ef['oldValue'])))};}if('default'!=_0x38b6ef['newValue'])return{'type':'format','content':''+o(_0x52b1c8,'*Set\x20format:*\x20%0',o(_0x52b1c8,this['_getTranslationKeyForListStyle'](_0x38b6ef['newValue'])))};let _0x2818f0=_0x4567b3['head'];for(;_0x2818f0;){if(_0x2818f0['data']&&'listType'==_0x2818f0['data']['key']&&_0x2818f0['data']['newValue']&&_0x2818f0['data']['oldValue'])return _0x3810c9;_0x2818f0=_0x2818f0['next'];}return{'type':'format','content':o(_0x52b1c8,'*Set\x20format:*\x20%0',o(_0x52b1c8,'ELEMENT_'+_0x4567b3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x412ad8=this['editor'],_0x5daf8e=_0x412ad8['locale'];_0x412ad8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x145c61=>{if('formatBlock'!=_0x145c61['type'])return;const {data:_0x44940b}=_0x145c61;if(!_0x44940b)return;let _0x12e17e,_0x3e0fe7;switch(_0x44940b['commandName']){case'listStyle':_0x12e17e='*Change\x20to:*\x20%0',_0x3e0fe7={'type':'format','content':o(_0x5daf8e,_0x12e17e,o(_0x5daf8e,this['_getTranslationKeyForListStyle'](_0x44940b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x12e17e=_0x44940b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3e0fe7={'type':'format','content':o(_0x5daf8e,_0x12e17e)};break;case'listStart':_0x12e17e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3e0fe7={'type':'format','content':o(_0x5daf8e,_0x12e17e,_0x44940b['commandParams'][0x0]['startIndex'])};}return _0x3e0fe7;});}['_getTranslationKeyForListStyle'](_0x35708f){return'ELEMENT_'+function(_0x1e7081){if(pe['includes'](_0x1e7081))return'bulleted';if(ye['includes'](_0x1e7081))return'numbered';return null;}(_0x35708f)['toUpperCase']()+'_LIST_'+_0x35708f['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x1e79ec{static get['requires'](){return[_0x4385a8];}['init'](){const _0x20f7bf=this['editor'],_0x4be535=_0x20f7bf['plugins']['get']('TrackChangesEditing'),_0x2056fc=_0x20f7bf['commands']['get']('enter');_0x4be535['enableCommand']('enter',()=>{_0x20f7bf['model']['change'](_0x112a78=>{const _0x27759a=_0x20f7bf['model']['document']['selection'],_0x3cf6a2=_0x27759a['getFirstPosition'](),_0x59f5bd=_0x43239f['fromRange'](_0x27759a['getFirstRange']());if(_0x2056fc['enterBlock'](_0x112a78)){const _0x1b6300=_0x20f7bf['model']['createPositionAt'](_0x3cf6a2['parent']['nextSibling'],0x0),_0x2f5986=_0x112a78['createRange'](_0x3cf6a2,_0x1b6300);_0x4be535['markInsertion'](_0x2f5986);}else _0x112a78['setSelection'](_0x112a78['createRange'](_0x59f5bd['end']));_0x59f5bd['detach'](),_0x2056fc['fire']('afterExecute',{'writer':_0x112a78});});}),_0x20f7bf['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x20f7bf,'split'),{'priority':'high'}),_0x20f7bf['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1b3385,_0x5069ba,_0x59678c)=>{const _0x3bf023=_0x59678c['mapper']['markerNameToElements'](_0x5069ba['markerName']);if(_0x3bf023){for(const _0x30ab23 of _0x3bf023)_0x30ab23['hasClass']('ck-suggestion-marker-split')&&(_0x59678c['mapper']['unbindElementFromMarkerName'](_0x30ab23,_0x5069ba['markerName']),_0x59678c['writer']['remove'](_0x30ab23));}},{'priority':'high'}),_0x20f7bf['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x16ede3,_0x10e6b7,_0x3049ca)=>{_0x3049ca['options']['showSuggestionHighlights']&&_e(_0x20f7bf,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x16ede3,_0x10e6b7,_0x3049ca);},{'priority':'high'});}}class J extends _0x1e79ec{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x441892=this['editor']['plugins']['get']('TrackChangesEditing');_0x441892['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x441892['enableCommand']('findNext'),_0x441892['enableCommand']('findPrevious'),_0x441892['enableCommand']('replace'),_0x441892['enableCommand']('replaceAll');}['handleFindCommand'](_0x25daef,_0x2d1ac8,_0x3776ff={}){const _0x49c568=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x25daef(_0x5d51d1=>('string'==typeof _0x2d1ac8?_0x49c568['findByTextCallback'](_0x2d1ac8,_0x3776ff):_0x2d1ac8)(_0x5d51d1)['filter'](_0x3021d6=>!0x1===this['_isInDeletionRange'](_0x3021d6,_0x5d51d1['item'])),_0x3776ff);}['_isInDeletionRange'](_0x1174c5,_0x1ac39e){const _0x2840aa=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1ac39e,_0x1174c5['start']),this['editor']['model']['createPositionAt'](_0x1ac39e,_0x1174c5['end']));for(const _0x419153 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2840aa['getIntersection'](_0x419153['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 _0x1e79ec{['afterInit'](){const _0x5662e3=this['editor']['locale'],_0x450058=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x296a8b,commandName:_0x353310}of ro)this['editor']['plugins']['has'](_0x296a8b)&&(_0x450058['enableDefaultAttributesIntegration'](_0x353310),_0x450058['registerInlineAttribute'](_0x353310));_0x5662e3['t'],_0x450058['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5662e3,'FORMAT_FONT_SIZE')),_0x450058['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5662e3,'FORMAT_FONT_FAMILY')),_0x450058['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5662e3,'FORMAT_FONT_COLOR')),_0x450058['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5662e3,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59c395=this['editor'],_0xb7a6dd=_0x59c395['locale'];_0x59c395['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x697a58=>{const _0x847386=_0xb7a6dd['t'];if('formatInline'!=_0x697a58['type'])return;const {data:_0x5a6893}=_0x697a58;if(null!=_0x5a6893){if('fontSize'==_0x5a6893['commandName']){const _0x42b196=_0x5a6893['commandParams'][0x0]['value'];if(_0x42b196){const _0x5859dd=_0x847386(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3f1feb=>_0x3f1feb['model']==_0x42b196)['title'])['toLowerCase']();return{'type':'format','content':o(_0xb7a6dd,'*Set\x20font\x20size:*\x20%0',_0x5859dd)};}return{'type':'format','content':o(_0xb7a6dd,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5a6893['commandName']){const _0x163ea3=_0x5a6893['commandParams'][0x0]['value'];return _0x163ea3?{'type':'format','content':o(_0xb7a6dd,'*Set\x20font\x20family:*\x20%0',_0x163ea3)}:{'type':'format','content':o(_0xb7a6dd,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5a6893['commandName']){const _0x4abdb2=_0x5a6893['commandParams'][0x0]['value'];if(_0x4abdb2){const _0x4d7830=_0x387b0f(this['editor']['config']['get']('fontColor.colors'))['find'](_0x99f131=>_0x99f131['model']==_0x4abdb2);let _0x162b9c=_0x4abdb2,_0x416a5b='';return _0x4d7830&&(_0x162b9c=_0x4d7830['label'],_0x416a5b=_0x847386(_0x162b9c)['toLowerCase']()),{'type':'format','content':o(_0xb7a6dd,'*Set\x20font\x20color:*\x20%0',_0x416a5b)['trim'](),'color':{'value':_0x4abdb2,'title':_0x416a5b||_0x162b9c}};}return{'type':'format','content':o(_0xb7a6dd,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5a6893['commandName']){const _0x39c0c4=_0x5a6893['commandParams'][0x0]['value'];if(_0x39c0c4){const _0x5d0ba9=_0x387b0f(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1d82ca=>_0x1d82ca['model']==_0x39c0c4);let _0x4fa112=_0x39c0c4,_0x598ee9='';return _0x5d0ba9&&(_0x4fa112=_0x5d0ba9['label'],_0x598ee9=_0x847386(_0x4fa112)['toLowerCase']()),{'type':'format','content':o(_0xb7a6dd,'*Set\x20font\x20background\x20color:*\x20%0',_0x598ee9)['trim'](),'color':{'value':_0x39c0c4,'title':_0x598ee9||_0x4fa112}};}return{'type':'format','content':o(_0xb7a6dd,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x1e79ec{['afterInit'](){const _0x605399=this['editor'],_0x5acbba=_0x605399['plugins']['get']('TrackChangesEditing'),_0x504d67=_0x605399['commands']['get']('copyFormat'),_0x1fbeb8=_0x605399['commands']['get']('pasteFormat');_0x504d67&&_0x1fbeb8&&(_0x5acbba['enableDefaultAttributesIntegration']('pasteFormat'),_0x5acbba['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1795cb=this['editor'],_0x530a66=_0x1795cb['locale'];_0x1795cb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a47ae=>{if('formatBlock'!=_0x5a47ae['type']&&'formatInline'!=_0x5a47ae['type'])return;const {data:_0x4d699b}=_0x5a47ae;if(_0x4d699b&&'pasteFormat'===_0x4d699b['commandName']){const _0x5ef19d=[],_0xdb35ea=_0x4d699b['commandParams'][0x0];for(const [_0x57e338,_0x2549ee]of Object['entries'](_0xdb35ea))_0x5ef19d['push'](so(_0x1795cb,_0x57e338,_0x2549ee));return _0x5ef19d['length']?{'type':'format','content':o(_0x530a66,'*Set\x20format\x20to:*\x20%0',_0x5ef19d['join'](',\x20'))}:{'type':'format','content':o(_0x530a66,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1d6ef6,_0x322cc3,_0x5b770d){const _0xd0a8c4=_0x1d6ef6['locale']['t'],_0x47d4d1=_0x322cc3['split'](/(?=[A-Z])/)['join']('\x20'),_0x5401ec=_0xd0a8c4(_0x47d4d1['charAt'](0x0)['toUpperCase']()+_0x47d4d1['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5b770d)return _0x5401ec;if('fontColor'===_0x322cc3||'fontBackgroundColor'===_0x322cc3){const _0x263b07=_0x387b0f(_0x1d6ef6['config']['get']('fontColor.colors'))['find'](_0x340aae=>_0x340aae['model']==_0x5b770d);return _0x5401ec+'\x20('+(_0x263b07?_0xd0a8c4(_0x263b07['label'])['toLowerCase']():_0x5b770d)+')';}if('fontSize'===_0x322cc3&&isNaN(parseFloat(_0x5b770d))){const _0x2fda42=_0x1d6ef6['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1d6ef6['config']['get']('fontSize.options'))['find'](_0x129102=>_0x129102['model']==_0x5b770d);return _0x5401ec+'\x20('+(_0x2fda42?_0xd0a8c4(_0x2fda42['title'])['toLowerCase']():_0x5b770d)+')';}return _0x5401ec+'\x20('+_0x5b770d+')';}class Y extends _0x1e79ec{['afterInit'](){const _0x5eb669=this['editor'];if(!_0x5eb669['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5eb669['config']['get']('heading.options');const _0xf97c91=_0x5eb669['locale'],_0x400c0d=_0x5eb669['plugins']['get']('TrackChangesEditing');_0x400c0d['enableDefaultAttributesIntegration']('heading');for(const _0x47c2f1 of this['_headingOptions'])'paragraph'!=_0x47c2f1['model']&&_0x400c0d['descriptionFactory']['registerElementLabel'](_0x47c2f1['model'],_0x3b81a7=>{const _0x1c06ac=this['_getHeadingLevel'](_0x47c2f1['model']);return null!==_0x1c06ac?_0x1f3042(_0x3b81a7,_0x1c06ac):_0x57bf4b(_0x3b81a7,_0x47c2f1['title']);});function _0x1f3042(_0x4e76cb,_0x15161c){return o(_0xf97c91,'ELEMENT_HEADING',[_0x4e76cb,_0x15161c]);}function _0x57bf4b(_0x242f1f,_0x2d1af0){return o(_0xf97c91,'ELEMENT_HEADING_CUSTOM',[_0x242f1f,_0x2d1af0]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c1876=this['editor'],_0x43b3d3=_0x2c1876['locale'];function _0x454a19(_0xff1a2b,_0x307080){return o(_0x43b3d3,'ELEMENT_HEADING_CUSTOM',[_0xff1a2b,_0x307080]);}_0x2c1876['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22adbc=>{if('formatBlock'!=_0x22adbc['type'])return;const {data:_0x4c0677}=_0x22adbc;if(_0x4c0677&&'heading'==_0x4c0677['commandName']){const _0x46a299=_0x4c0677['commandParams'][0x0]['value'],_0x39256f=this['_getHeadingLevel'](_0x46a299);if(null!==_0x39256f)return{'type':'format','content':o(_0x43b3d3,'*Change\x20to:*\x20%0',(_0x3f0fa6=0x1,_0x1b9c7e=_0x39256f,o(_0x43b3d3,'ELEMENT_HEADING',[_0x3f0fa6,_0x1b9c7e])))};const _0x3e6e50=this['_headingOptions']['find'](_0x292542=>_0x292542['model']===_0x46a299)['title'];return{'type':'format','content':o(_0x43b3d3,'*Change\x20to:*\x20%0',_0x454a19(0x1,_0x3e6e50))};}var _0x3f0fa6,_0x1b9c7e;});}['_getHeadingLevel'](_0x5a4ba5){var _0x49723e,_0x26cec0;const _0x5ce38d=_0x5a4ba5['match'](/^heading(\d+)/);if(_0x5ce38d)return _0x5ce38d[0x1];const _0x4b3919=null===(_0x49723e=this['_headingOptions'])||void 0x0===_0x49723e?void 0x0:_0x49723e['find'](_0x302208=>_0x302208['model']==_0x5a4ba5);if(_0x4b3919&&_0x4b3919['view']){const _0x1379df=_0x4b3919['view'],_0x3441ec=(null!==(_0x26cec0=_0x1379df['name'])&&void 0x0!==_0x26cec0?_0x26cec0:_0x1379df)['match'](/^h(\d+)/);if(_0x3441ec)return _0x3441ec[0x1];}return null;}}class Z extends _0x1e79ec{['afterInit'](){const _0x48ef79=this['editor'];if(!_0x48ef79['plugins']['has']('HighlightEditing'))return;const _0x1461d5=_0x48ef79['plugins']['get']('TrackChangesEditing'),_0x37e506=_0x48ef79['locale'];_0x1461d5['enableDefaultAttributesIntegration']('highlight'),_0x1461d5['registerInlineAttribute']('highlight'),_0x1461d5['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x37e506,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b0549=this['editor'],_0x1f6120=_0x4b0549['locale'];_0x4b0549['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56e879=>{if('formatInline'!=_0x56e879['type'])return;const {data:_0x120a22}=_0x56e879;if(_0x120a22&&'highlight'==_0x120a22['commandName']){const _0x33334d=_0x1f6120['t'],_0xa08fef=_0x120a22['commandParams'][0x0]['value'];if(_0xa08fef){const _0xd346ea=_0x4b0549['config']['get']('highlight.options')['find'](_0x1c2cc2=>_0x1c2cc2['model']==_0xa08fef),_0x3aebce=_0x33334d(_0xd346ea['title'])['toLowerCase']();return{'type':'format','content':o(_0x1f6120,'*Set\x20highlight:*\x20%0',_0x3aebce),'color':{'value':_0xd346ea['color'],'title':_0xd346ea['title']}};}return{'type':'format','content':o(_0x1f6120,'*Remove\x20highlight*',o(_0x1f6120,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x1e79ec{['afterInit'](){const _0x395b48=this['editor'];if(!_0x395b48['plugins']['has']('HorizontalLineEditing'))return;_0x395b48['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x493a8f=_0x395b48['plugins']['get']('TrackChangesEditing'),_0x1ed551=_0x395b48['locale'];_0x493a8f['descriptionFactory']['registerElementLabel']('horizontalLine',_0x432936=>o(_0x1ed551,'ELEMENT_HORIZONTAL_LINE',_0x432936)),_0x395b48['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x40e89b,{writer:_0x439c21,options:_0x3110ac})=>{if(!_0x3110ac['showSuggestionHighlights'])return null;const _0x2289bb=_0x439c21['createContainerElement']('div'),_0x119c61=_0x439c21['createEmptyElement']('hr');return _0x439c21['addClass']('ck-horizontal-line',_0x2289bb),_0x439c21['insert'](_0x439c21['createPositionAt'](_0x2289bb,0x0),_0x119c61),_0x2289bb;},'converterPriority':'high'});}}class et extends _0x1e79ec{['afterInit'](){const _0x554bc2=this['editor'];if(!_0x554bc2['plugins']['has']('HtmlEmbed'))return;const _0x255a66=_0x554bc2['plugins']['get']('TrackChangesEditing'),_0x6df868=_0x554bc2['locale'];_0x255a66['descriptionFactory']['registerElementLabel']('rawHtml',_0x135e34=>o(_0x6df868,'ELEMENT_HTML_EMBED',_0x135e34)),_0x255a66['enableDefaultAttributesIntegration']('htmlEmbed'),_0x255a66['registerBlockAttribute']('value'),_0x255a66['descriptionFactory']['registerDescriptionCallback'](_0x5d4eeb=>{if('attribute'!=_0x5d4eeb['type'])return;const {data:_0xe47093}=_0x5d4eeb;if(_0xe47093&&'value'==_0xe47093['key']&&_0x5d4eeb['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x171f86=o(_0x6df868,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x6df868,'*Change\x20%0\x20content*',_0x171f86)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f1129=this['editor'],_0x1ad763=_0x4f1129['locale'];_0x4f1129['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48191a=>{if('formatBlock'!=_0x48191a['type'])return;const {data:_0x800aa1}=_0x48191a;if(_0x800aa1&&'htmlEmbed'==_0x800aa1['commandName']){const _0x3e3547=o(_0x1ad763,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1ad763,'*Change\x20%0\x20content*',_0x3e3547)};}});}}class it extends _0x1e79ec{['afterInit'](){const _0x5a14f4=this['editor'];if(!_0x5a14f4['plugins']['has']('ImageEditing'))return;const _0x13726f=_0x5a14f4['plugins']['get']('TrackChangesEditing'),_0x108f9e=_0x5a14f4['plugins']['get']('ImageUtils'),_0x35cf26=_0x5a14f4['locale'];_0x13726f['enableCommand']('insertImage'),_0x13726f['descriptionFactory']['registerElementLabel']('imageBlock',_0xb6cadd=>o(_0x35cf26,'ELEMENT_IMAGE',_0xb6cadd)),_0x13726f['descriptionFactory']['registerElementLabel']('imageInline',_0x11c1c4=>o(_0x35cf26,'ELEMENT_INLINE_IMAGE',_0x11c1c4)),_0x13726f['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x35cf26,'ELEMENT_CAPTION')),_0x5a14f4['plugins']['has']('ImageUploadEditing')&&_0x13726f['enableCommand']('uploadImage'),_0x5a14f4['plugins']['has']('ImageBlockEditing')&&_0x5a14f4['plugins']['has']('ImageInlineEditing')&&(_0x13726f['enableCommand']('imageTypeInline',(_0x222b33,_0x2a614a)=>{const _0x4ba358=_0x108f9e['getClosestSelectedImageElement'](_0x5a14f4['model']['document']['selection']);_0x5a14f4['model']['change'](()=>{_0x13726f['markBlockFormat'](_0x4ba358,{'commandName':'imageTypeInline','commandParams':[_0x2a614a]},[],'convertBlockImageToInline');});}),_0x13726f['enableCommand']('imageTypeBlock',(_0x38920a,_0x1d380b)=>{_0x5a14f4['model']['change'](_0x1689e9=>{let _0x345eeb=_0x108f9e['getClosestSelectedImageElement'](_0x5a14f4['model']['document']['selection']),_0x26c2c6=_0x1689e9['createRangeOn'](_0x345eeb);const _0x5ef674=_0x27d4fa['fromPosition'](_0x26c2c6['start'],'toPrevious'),_0x39b44e=_0x27d4fa['fromPosition'](_0x26c2c6['end'],'toNext');_0x13726f['forceDefaultExecution'](()=>_0x38920a(_0x1d380b)),_0x345eeb=_0x108f9e['getClosestSelectedImageElement'](_0x5a14f4['model']['document']['selection']),_0x26c2c6=_0x1689e9['createRangeOn'](_0x345eeb);const _0x10048d=_0x1689e9['createRange'](_0x5ef674,_0x39b44e);_0x5ef674['detach'](),_0x39b44e['detach'](),_0x13726f['markBlockFormat'](_0x345eeb,{'commandName':'imageTypeInline','commandParams':[_0x1d380b]},[],'convertInlineImageToBlock'),_0x10048d['start']['isBefore'](_0x26c2c6['start'])&&_0x13726f['markInsertion'](_0x1689e9['createRange'](_0x10048d['start'],_0x26c2c6['start']),'convertInlineImageToBlock'),_0x26c2c6['end']['isBefore'](_0x10048d['end'])&&_0x13726f['markInsertion'](_0x1689e9['createRange'](_0x26c2c6['end'],_0x10048d['end']),'convertInlineImageToBlock');});}),_0x13726f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x13726f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x13726f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x13726f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x13726f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x13726f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4f4b06])=>{const _0x3d52da=_0x13726f['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x441481=_0x4f4b06['start'],_0x3d08ff=_0x4f4b06['end'];const _0x3856a9=_0x5a14f4['model']['schema']['getNearestSelectionRange'](_0x441481,'backward'),_0x4e62ba=_0x5a14f4['model']['schema']['getNearestSelectionRange'](_0x3d08ff,'forward');_0x3856a9['isCollapsed']&&(_0x441481=_0x3856a9['start']),_0x4e62ba['isCollapsed']&&(_0x3d08ff=_0x4e62ba['end']),_0x3d52da([_0x5a14f4['model']['createRange'](_0x441481,_0x3d08ff)]);}),_0x13726f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4aebc6),_0x13726f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4aebc6)),_0x5a14f4['plugins']['has']('ImageCaptionEditing')&&(_0x13726f['enableCommand']('toggleImageCaption',(_0xfb8486,_0x183fe9)=>{const _0x33ac6c=_0x5a14f4['plugins']['get']('ImageCaptionUtils');let _0x4f330d=_0x108f9e['getClosestSelectedImageElement'](_0x5a14f4['model']['document']['selection']),_0x3a730d=_0x33ac6c['getCaptionFromImageModelElement'](_0x4f330d);_0x5a14f4['model']['change'](()=>{if(_0x3a730d)return void _0x13726f['markDeletion'](_0x5a14f4['model']['createRangeOn'](_0x3a730d));const _0x182f68=_0x108f9e['isBlockImage'](_0x4f330d);_0xfb8486(_0x183fe9),_0x4f330d=_0x108f9e['getClosestSelectedImageElement'](_0x5a14f4['model']['document']['selection']),_0x3a730d=_0x33ac6c['getCaptionFromImageModelElement'](_0x4f330d),_0x13726f['markInsertion'](_0x5a14f4['model']['createRangeOn'](_0x3a730d),_0x182f68?null:'imageCaption');});}),_0x13726f['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4aebc6));const _0x5137b5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2fdc3f(_0x5359b1,_0x450d10){const _0x1eeb77=_0x5137b5['findIndex'](({type:_0x30e5ef,subType:_0x2c8ca0})=>_0x5359b1['type']==_0x30e5ef&&_0x5359b1['subType']==_0x2c8ca0),_0xf6eb75=_0x5137b5['findIndex'](({type:_0x187cc0,subType:_0x50586b})=>_0x450d10['type']==_0x187cc0&&_0x450d10['subType']==_0x50586b);if(_0x1eeb77<0x0||_0xf6eb75<0x0)return!0x1;const _0xd03d91=_0x5359b1['getFirstRange'](),_0x14b744=_0x450d10['getFirstRange']();if((0x0==_0x1eeb77||0x1==_0x1eeb77)&&0x2==_0xf6eb75&&_0xd03d91['isIntersecting'](_0x14b744))return!0x0;if(0x2==_0x1eeb77&&0x3==_0xf6eb75){const _0x54fb9b=_0x13726f['_findSuggestions'](_0xd03d91,'insertion')['filter'](({suggestion:_0x452328,meta:_0x1e37c5})=>_0x1e37c5['isOwn']&&'convertInlineImageToBlock'==_0x452328['subType']);if(_0x54fb9b['length']>0x1&&_0x14b744['end']['isEqual'](_0xd03d91['start']))return!0x0;if(0x1==_0x54fb9b['length']&&(_0xd03d91['start']['isEqual'](_0x14b744['end'])||_0xd03d91['end']['isEqual'](_0x14b744['start'])))return!0x0;}if(0x3==_0x1eeb77&&0x3==_0xf6eb75&&_0xd03d91['start']['isBefore'](_0x14b744['start'])){const _0x568bf1=_0xd03d91['end']['nodeAfter'],_0x2de405=_0x14b744['start']['nodeBefore'];return _0x108f9e['isBlockImage'](_0x568bf1)&&_0x568bf1===_0x2de405;}return!0x1;}function _0x4aebc6(_0x2981d0,_0x30619b){return _0x2fdc3f(_0x2981d0,_0x30619b)?[_0x2981d0,_0x30619b]:_0x2fdc3f(_0x30619b,_0x2981d0)?[_0x30619b,_0x2981d0]:null;}_0x5a14f4['plugins']['has']('ImageResize')&&(_0x13726f['enableDefaultAttributesIntegration']('resizeImage'),_0x13726f['registerBlockAttribute']('resizedWidth'),_0x13726f['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x35cf26,'FORMAT_IMAGE_SIZE'))),_0x5a14f4['plugins']['has']('ImageTextAlternativeEditing')&&(_0x13726f['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x13726f['registerBlockAttribute']('alt')),_0x13726f['descriptionFactory']['registerDescriptionCallback'](_0x405aed=>{if(!!_0x5137b5['find'](({type:_0x4b175b,subType:_0x363c2e})=>_0x405aed['type']==_0x4b175b&&_0x405aed['subType']==_0x363c2e))return _0x405aed['previous']?{}:void 0x0;}),_0x13726f['descriptionFactory']['registerDescriptionCallback'](_0xd0e968=>{if('insertion'==_0xd0e968['type']||'deletion'==_0xd0e968['type']){const _0x1f06dc=_0xd0e968['getContainedElement']();if(_0x1f06dc&&_0x1f06dc['is']('element','caption'))return{'type':'insertion'==_0xd0e968['type']?'addObject':'removeObject','element':_0x1f06dc,'quantity':0x1};}}),_0x13726f['descriptionFactory']['registerDescriptionCallback'](_0x52fe1d=>'formatBlock'==_0x52fe1d['type']&&'convertInlineImageToBlock'==_0x52fe1d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x52fe1d['type']&&'convertBlockImageToInline'==_0x52fe1d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x13726f['descriptionFactory']['registerDescriptionCallback'](_0x592ee2=>{if('attribute'!=_0x592ee2['type'])return;const {data:_0x217517}=_0x592ee2;if(!_0x217517||'alt'!=_0x217517['key'])return;const _0x332401=_0x217517['newValue'];return _0x332401?{'type':'format','content':o(_0x35cf26,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x332401+'\x22')}:{'type':'format','content':o(_0x35cf26,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12b143=this['editor'],_0x443f90=_0x12b143['locale'];_0x12b143['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x244876=>{if('formatBlock'!=_0x244876['type']&&'formatInline'!=_0x244876['type'])return;const {data:_0x493a9d}=_0x244876;if(_0x493a9d){if('imageTextAlternative'==_0x493a9d['commandName']){const _0x100abf=_0x493a9d['commandParams'][0x0]['newValue'];return _0x100abf?{'type':'format','content':o(_0x443f90,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x100abf+'\x22')}:{'type':'format','content':o(_0x443f90,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x493a9d['commandName']){const _0x167657=_0x493a9d['commandParams'][0x0]['width'];return _0x167657?{'type':'format','content':o(_0x443f90,'*Set\x20image\x20width:*\x20%0',_0x167657)}:{'type':'format','content':o(_0x443f90,'*Reset\x20image\x20width*')};}}});}}class st extends _0x1e79ec{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x49606a=this['editor']['locale'],_0x43b639=this['editor']['plugins']['get']('TrackChangesEditing');_0x43b639['enableDefaultAttributesIntegration']('replaceImageSource'),_0x43b639['registerBlockAttribute']('src'),_0x43b639['descriptionFactory']['registerDescriptionCallback'](_0x2d8f44=>{if('attribute'!=_0x2d8f44['type'])return;const {data:_0x30ecc4}=_0x2d8f44;return _0x30ecc4&&'src'==_0x30ecc4['key']?_0x30ecc4['newValue']&&_0x30ecc4['oldValue']?{'type':'format','content':o(_0x49606a,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4b9c1c=this['editor']['plugins']['get']('TrackChangesEditing');_0x4b9c1c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4b9c1c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4b9c1c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4b9c1c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18f24a=this['editor'],_0x38386f=_0x18f24a['locale'];_0x18f24a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36a557=>{if('formatBlock'!=_0x36a557['type']&&'formatInline'!=_0x36a557['type'])return;const {data:_0x31e1b2}=_0x36a557;if(!_0x31e1b2||'replaceImageSource'!=_0x31e1b2['commandName'])return;return{'type':'format','content':o(_0x38386f,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x1e79ec{['afterInit'](){const _0x18dea8=this['editor'];if(!_0x18dea8['plugins']['has']('ImageStyleEditing'))return;const _0x5da930=_0x18dea8['plugins']['get']('TrackChangesEditing'),_0x358a0d=_0x18dea8['plugins']['get']('ImageUtils'),_0x2b6dd5={};_0x5da930['enableCommand']('imageStyle',(_0x5b73c3,_0x59ed3b)=>{const _0x2a9e42=_0x18dea8['plugins']['get']('Users')['me'],_0x33dc73=_0x18dea8['commands']['get']('imageStyle');let _0x198631=_0x358a0d['getClosestSelectedImageElement'](_0x18dea8['model']['document']['selection']),_0x15291f=_0x18dea8['model']['createRangeOn'](_0x198631),_0x45a4b2=_0x33dc73['value'];if(_0x45a4b2==_0x59ed3b['value'])return;const _0x58d73f={'commandName':'imageStyle','commandParams':[_0x59ed3b],'formatGroupId':_0x109dee()};_0x18dea8['model']['change'](()=>{if(_0x5da930['getSuggestions']()['filter'](_0x150e09=>_0x150e09['isInContent']&&_0x2a9e42==_0x150e09['author']&&('formatBlock'==_0x150e09['type']||'formatInline'==_0x150e09['type'])&&('imageStylePreApply'==_0x150e09['subType']||'imageStylePostApply'==_0x150e09['subType'])&&_0x150e09['getFirstRange']()['isEqual'](_0x15291f))['forEach'](_0x421e04=>_0x5da930['discardSuggestion'](_0x421e04['head'])),_0x198631=_0x358a0d['getClosestSelectedImageElement'](_0x18dea8['model']['document']['selection']),_0x15291f=_0x18dea8['model']['createRangeOn'](_0x198631),_0x33dc73['refresh'](),_0x18dea8['commands']['get']('imageTypeInline')['refresh'](),_0x18dea8['commands']['get']('imageTypeBlock')['refresh'](),_0x45a4b2=_0x33dc73['value'],_0x45a4b2!=_0x59ed3b['value'])return _0x358a0d['isInlineImage'](_0x198631)&&_0x33dc73['shouldConvertImageType'](_0x59ed3b['value'],_0x198631)?(_0x5b73c3({..._0x59ed3b,'setImageSizes':!0x1}),_0x198631=_0x358a0d['getClosestSelectedImageElement'](_0x18dea8['model']['document']['selection']),void _0x5da930['markBlockFormat'](_0x198631,{..._0x58d73f,'commandReversedParams':[{'value':_0x45a4b2||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x358a0d['isBlockImage'](_0x198631)?_0x5da930['markBlockFormat'](_0x198631,_0x58d73f,[],'imageStylePostApply'):_0x5da930['markInlineFormat'](_0x15291f,_0x58d73f,'imageStylePostApply'));});});for(const _0x64501 of _0x18dea8['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2b6dd5[_0x64501['name']]=_0x64501['title']['toLowerCase']();_0x5da930['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5da930['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5da930['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5da930['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1dde7b])=>{_0x358a0d['setImageNaturalSizeAttributes'](_0x1dde7b['getContainedElement']());}),_0x5da930['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3b80fc,_0x211140)=>{_0x5da930['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3b80fc,{'commandName':_0x211140['commandName'],'commandParams':_0x211140['commandReversedParams']});}),_0x5da930['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x18a56c,_0x5dae1e){if(_0x13ffa9(_0x18a56c,_0x5dae1e))return[_0x18a56c,_0x5dae1e];if(_0x13ffa9(_0x5dae1e,_0x18a56c))return[_0x5dae1e,_0x18a56c];return null;});const _0x5e8655=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x13ffa9(_0x33387f,_0xd3a77f){const _0x23204d=_0x5e8655['findIndex'](({type:_0x3bbe4d,subType:_0x2166b})=>_0x33387f['type']==_0x3bbe4d&&_0x33387f['subType']==_0x2166b),_0x18899e=_0x5e8655['findIndex'](({type:_0x47cfc5,subType:_0x28877b})=>_0xd3a77f['type']==_0x47cfc5&&_0xd3a77f['subType']==_0x28877b);if(_0x23204d<0x0||_0x18899e<0x0)return!0x1;const _0x5bbbe6=_0x33387f['getFirstRange'](),_0x322efc=_0xd3a77f['getFirstRange']();if((0x0==_0x23204d||0x1==_0x23204d)&&0x2==_0x18899e&&_0x5bbbe6['isIntersecting'](_0x322efc))return!0x0;if(0x2==_0x23204d&&0x3==_0x18899e){const _0x1d54c6=_0x5da930['_findSuggestions'](_0x5bbbe6,'insertion')['filter'](({suggestion:_0x1edeac,meta:_0xe82648})=>_0xe82648['isOwn']&&'convertInlineImageToBlock'==_0x1edeac['subType']);if(_0x1d54c6['length']>0x1&&_0x322efc['end']['isEqual'](_0x5bbbe6['start']))return!0x0;if(0x1==_0x1d54c6['length']&&(_0x5bbbe6['start']['isEqual'](_0x322efc['end'])||_0x5bbbe6['end']['isEqual'](_0x322efc['start'])))return!0x0;}if(0x3==_0x23204d&&0x3==_0x18899e&&_0x5bbbe6['start']['isBefore'](_0x322efc['start'])){const _0x20e897=_0x5bbbe6['end']['nodeAfter'],_0x33caaa=_0x322efc['start']['nodeBefore'];return _0x358a0d['isBlockImage'](_0x20e897)&&_0x20e897===_0x33caaa;}return!0x1;}_0x18dea8['model']['document']['registerPostFixer'](()=>{let _0x447392=!0x1;const _0x4170ba=Array['from'](_0x18dea8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x22bf5,data:_0xe36a4c}of _0x4170ba){const {group:_0x3bb49a,type:_0x20d8ad,subType:_0x2cb909,id:_0x3ccd97}=_0x5da930['_splitMarkerName'](_0x22bf5);if('suggestion'==_0x3bb49a&&_0x5da930['hasSuggestion'](_0x3ccd97)){if('formatBlock'==_0x20d8ad&&('imageStylePreApply'==_0x2cb909||'imageStylePostApply'==_0x2cb909)){const _0x260685=_0x5da930['getSuggestion'](_0x3ccd97);if(_0xe36a4c['newRange']){const _0x2ae64b=_0x260685['getFirstRange']()['getContainedElement']();if(_0x358a0d['isBlockImage'](_0x2ae64b))continue;_0x5da930['discardSuggestion'](_0x260685),_0x447392=!0x0;}}if('insertion'==_0x20d8ad&&'imageCaption'==_0x2cb909&&!_0xe36a4c['newRange']){const _0x18abd1=_0x5da930['getSuggestion'](_0x3ccd97);_0x18abd1['next']&&_0x18abd1['next']['isInContent']&&(_0x5da930['discardSuggestion'](_0x18abd1['next']),_0x447392=!0x0);}}}return _0x447392;}),this['_registerLegacyDescription'](_0x2b6dd5);}['_registerLegacyDescription'](_0x5806c5){const _0x421924=this['editor'],_0x25f77a=_0x421924['locale'];_0x421924['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8bd285=>{if('formatBlock'!=_0x8bd285['type']&&'formatInline'!=_0x8bd285['type'])return;const {data:_0x482eeb}=_0x8bd285;if(!_0x482eeb||'imageStyle'!=_0x482eeb['commandName'])return;const _0x5dd768=_0x482eeb['commandParams'][0x0]['value'];return _0x5cb2c1('side'===_0x5dd768?o(_0x25f77a,'FORMAT_SIDE_IMAGE'):_0x5806c5[_0x5dd768]||_0x5dd768);function _0x5cb2c1(_0x259ed9){return{'type':'format','content':o(_0x25f77a,'*Format:*\x20%0',_0x259ed9)};}});}}class ot extends _0x1e79ec{['afterInit'](){const _0x427d5a=this['editor'],_0x3c2aa7=_0x427d5a['commands']['get']('importWord'),_0x21430c=_0x427d5a['commands']['get']('trackChanges');_0x3c2aa7&&(_0x3c2aa7['on']('execute',(_0x594372,[,_0x7b7543])=>{this['_trackChangesValueDuringImport']=_0x21430c['value'],_0x7b7543['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3c2aa7,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3c2aa7,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x21430c['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x427d5a['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3c20c2,_0x10f6e0){const {suggestions:_0xfd20c3}=_0x10f6e0,_0x13680b=this['editor']['commands']['get']('trackChanges'),_0x491e5a=_0x13680b['value'];this['_trackChangesValueDuringImport']!==_0x491e5a&&(_0x13680b['execute'](),this['_trackChangesExecuted']=!0x0),_0xfd20c3&&_0xfd20c3['forEach'](({id:_0x1c0f55,type:_0x436d1c,author:_0x32526d,created_at:_0x220acb})=>{const _0x1c4016={'id':_0x1c0f55,'type':_0x436d1c,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x32526d,'createdAt':_0x220acb?new Date(_0x220acb):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1c4016);});}constructor(_0x524232){super(_0x524232),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}}class rt extends _0x1e79ec{['afterInit'](){const _0x4cc5ef=this['editor'],_0x962ef4=_0x4cc5ef['plugins']['get']('TrackChangesEditing');if(_0x4cc5ef['plugins']['has']('IndentEditing')&&(_0x962ef4['enableCommand']('indent'),_0x962ef4['enableCommand']('outdent')),_0x4cc5ef['plugins']['has']('IndentBlock')){for(const _0x3fcd63 of['indentBlock','outdentBlock'])_0x962ef4['enableDefaultAttributesIntegration'](_0x3fcd63);}const _0x251e7b=_0x4cc5ef['locale'];_0x962ef4['registerBlockAttribute']('blockIndent'),_0x962ef4['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x251e7b,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x540a24=this['editor'],_0x379eaa=_0x540a24['locale'],_0x26fa26=_0x540a24['plugins']['get']('TrackChangesEditing');_0x26fa26['descriptionFactory']['registerDescriptionCallback'](_0x2cdee4=>{if('formatBlock'!=_0x2cdee4['type'])return;const {data:_0x9f537c}=_0x2cdee4;if(!_0x9f537c)return;if('indentBlock'!=_0x9f537c['commandName']&&'outdentBlock'!=_0x9f537c['commandName'])return;const _0x2dac01=_0x2cdee4['getItems']()[0x0],_0x24dfb3=_0x26fa26['descriptionFactory']['getItemLabel'](_0x2dac01);return'indentBlock'==_0x9f537c['commandName']?{'type':'format','content':o(_0x379eaa,'*Indent:*\x20%0',_0x24dfb3)}:'outdentBlock'==_0x9f537c['commandName']?{'type':'format','content':o(_0x379eaa,'*Outdent:*\x20%0',_0x24dfb3)}:void 0x0;});}}class at extends _0x1e79ec{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x1e79ec{['afterInit'](){const _0x114397=this['editor'];if(!_0x114397['plugins']['has']('LinkEditing'))return;const _0x171934=_0x114397['plugins']['get']('TrackChangesEditing'),_0x24e05b=_0x114397['commands']['get']('link');_0x171934['enableDefaultAttributesIntegration']('link'),_0x171934['enableDefaultAttributesIntegration']('unlink'),_0x171934['registerInlineAttribute']('linkHref');for(const _0x19cdc9 of _0x24e05b['manualDecorators'])_0x171934['registerInlineAttribute'](_0x19cdc9['id']),_0x171934['descriptionFactory']['registerAttributeLabel'](_0x19cdc9['id'],'link\x20('+_0x19cdc9['label']['toLowerCase']()+')');_0x171934['descriptionFactory']['registerDescriptionCallback'](_0x2c36ed=>{if('attribute'!=_0x2c36ed['type'])return;const {data:_0x5b0ad6}=_0x2c36ed;if(!_0x5b0ad6||'linkHref'!=_0x5b0ad6['key'])return;const _0x21741f=_0x5b0ad6['newValue'],_0x398324=_0x114397['locale'];return{'type':'format','content':null==_0x21741f?o(_0x398324,'*Remove\x20link*'):o(_0x398324,'*Set\x20link:*\x20%0','\x22'+_0x21741f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x317f80=this['editor'],_0x5f33cb=_0x317f80['locale'];_0x317f80['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29be54=>{if('formatInline'!=_0x29be54['type'])return;const {data:_0x5833ab}=_0x29be54;if(_0x5833ab){if('link'==_0x5833ab['commandName']){const _0x47506c=_0x5833ab['commandParams'][0x0];return{'type':'format','content':o(_0x5f33cb,'*Set\x20link:*\x20%0','\x22'+_0x47506c+'\x22')};}return'unlink'==_0x5833ab['commandName']?{'type':'format','content':o(_0x5f33cb,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x1e79ec{['afterInit'](){const _0x1f8d1c=this['editor'],_0x53f256=_0x1f8d1c['locale'];if(!_0x1f8d1c['plugins']['has']('LegacyListEditing'))return;const _0x19dc2e=_0x1f8d1c['plugins']['get']('TrackChangesEditing'),_0x34801b=_0x1f8d1c['plugins']['has']('LegacyTodoListEditing');function _0xac8e3a(_0x18aa62){return()=>{const _0x220bf4=_0x1f8d1c['model']['document']['selection'],_0x24d78a=_0x1f8d1c['commands']['get'](_0x18aa62);if(_0x24d78a['value'])return void _0x1f8d1c['execute']('paragraph',{});const _0x1186d4=_0x18aa62['slice'](0x0,-0x4),_0x599386=function(_0xf07fa8,_0xc13b9e,_0x37d4fe){let _0x1bde0c=Array['from'](_0xf07fa8)['filter'](_0x475266=>function(_0x50e0c5,_0x2a6762){return _0x2a6762['checkChild'](_0x50e0c5['parent'],'listItem')&&!_0x2a6762['isObject'](_0x50e0c5);}(_0x475266,_0x37d4fe));_0x1bde0c=_0x1bde0c['filter'](_0x4f8ccd=>!_0x4f8ccd['is']('element','listItem')||_0x4f8ccd['getAttribute']('listType')!=_0xc13b9e);const _0x192b98=new Set();for(const _0x5a04b8 of _0x1bde0c)_0x5a04b8['is']('element','listItem')?_0x192b98['add'](me(_0x5a04b8)):_0x192b98['add'](_0x5a04b8);return Array['from'](_0x192b98);}(_0x220bf4['getSelectedBlocks'](),_0x1186d4,_0x1f8d1c['model']['schema']);_0x1f8d1c['model']['change'](()=>{for(const _0x514ef3 of _0x599386)_0x19dc2e['markBlockFormat'](_0x514ef3,{'commandName':_0x18aa62,'commandParams':[{'forceValue':!_0x24d78a['value']}],'formatGroupId':'blockName'},fe(_0x514ef3));});};}function _0x8b3fb1(_0x2fa199){return()=>{const _0x1629b0=function(_0x23977b){let _0x11b2cc=Array['from'](_0x23977b);const _0x48026c=_0x11b2cc['findIndex'](_0x3f686f=>'listItem'!=_0x3f686f['name']);return _0x48026c>-0x1&&(_0x11b2cc=_0x11b2cc['slice'](0x0,_0x48026c)),_0x11b2cc;}(_0x1f8d1c['model']['document']['selection']['getSelectedBlocks']()),_0x3143b7=_0x1f8d1c['model']['createRange'](_0x1f8d1c['model']['createPositionAt'](_0x1629b0[0x0],'before'),_0x1f8d1c['model']['createPositionAt'](_0x1629b0[_0x1629b0['length']-0x1],'end'));_0x1f8d1c['model']['change'](()=>{_0x19dc2e['markBlockFormat'](_0x3143b7,{'commandName':_0x2fa199,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3e10bb){const _0x246dd8=new Set();for(const _0x4fd6ef of _0x3e10bb){let _0x5885ac=_0x4fd6ef['nextSibling'];for(;_0x5885ac&&_0x5885ac['getAttribute']('listIndent')>_0x4fd6ef['getAttribute']('listIndent');)_0x246dd8['add'](_0x5885ac),_0x5885ac=_0x5885ac['nextSibling'];}return Array['from'](_0x246dd8);}(_0x1629b0));});};}_0x19dc2e['enableCommand']('numberedList',_0xac8e3a('numberedList')),_0x19dc2e['enableCommand']('bulletedList',_0xac8e3a('bulletedList')),_0x34801b&&_0x19dc2e['enableCommand']('todoList',_0xac8e3a('todoList')),_0x19dc2e['enableCommand']('indentList',_0x8b3fb1('indentList')),_0x19dc2e['enableCommand']('outdentList',_0x8b3fb1('outdentList')),_0x34801b&&_0x19dc2e['enableCommand']('checkTodoList',()=>{const _0x5cb322=_0x1f8d1c['commands']['get']('checkTodoList'),_0x7f94c4=Array['from'](_0x5cb322['_selectedElements']);_0x7f94c4['filter'](_0x283634=>_0x283634['getAttribute']('todoListChecked')!=_0x5cb322['value']),_0x1f8d1c['model']['change'](()=>{for(const _0x26bcda of _0x7f94c4)_0x19dc2e['markBlockFormat'](_0x26bcda,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5cb322['value']}]});});}),_0x19dc2e['descriptionFactory']['registerElementLabel']('listItem',_0x2e4448=>o(_0x53f256,'ELEMENT_LIST_ITEM',_0x2e4448)),_0x19dc2e['descriptionFactory']['registerDescriptionCallback'](_0x4ded61=>{if('formatBlock'!=_0x4ded61['type']&&'formatInline'!=_0x4ded61['type'])return;const {data:_0x231204}=_0x4ded61;if(_0x231204){if('numberedList'==_0x231204['commandName']||'bulletedList'==_0x231204['commandName']||'todoList'==_0x231204['commandName'])switch(_0x231204['commandName']['replace']('List','')){case'bulleted':return _0x53fc48(o(_0x53f256,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x53fc48(o(_0x53f256,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x53fc48(o(_0x53f256,'ELEMENT_TODO_LIST'));}if('indentList'==_0x231204['commandName'])return{'type':'format','content':o(_0x53f256,'*Indent:*\x20%0',o(_0x53f256,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x231204['commandName'])return{'type':'format','content':o(_0x53f256,'*Outdent:*\x20%0',o(_0x53f256,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x231204['commandName'])return _0x231204['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x53f256,'*Check\x20item*')}:{'type':'format','content':o(_0x53f256,'*Uncheck\x20item*')};}function _0x53fc48(_0x49e0e0){return{'type':'format','content':o(_0x53f256,'*Change\x20to:*\x20%0',_0x49e0e0)};}});}}function me(_0x2683ef){const _0x501695=_0x2683ef['getAttribute']('listIndent');if(0x0==_0x501695)return _0x2683ef;let _0x12bfcc=_0x2683ef;for(;_0x2683ef['previousSibling']&&_0x2683ef['previousSibling']['is']('element','listItem');){const _0x2d3a69=_0x2683ef['previousSibling']['getAttribute']('listIndent');if(_0x2d3a69==_0x501695)_0x12bfcc=_0x2683ef['previousSibling'];else{if(_0x2d3a69<_0x501695)break;}_0x2683ef=_0x2683ef['previousSibling'];}return _0x12bfcc;}function fe(_0x41df47){const _0x3816c7=[];if(_0x41df47['is']('element','listItem')&&_0x41df47['getAttribute']('listIndent')>0x0){let _0x125b9d=_0x41df47['nextSibling'];for(;_0x125b9d&&'listItem'==_0x125b9d['name']&&_0x125b9d['getAttribute']('listIndent')==_0x41df47['getAttribute']('listIndent');)_0x3816c7['push'](_0x125b9d),_0x125b9d=_0x125b9d['nextSibling'];}return _0x3816c7;}class K extends _0x1e79ec{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x53fb1a=this['editor']['config']['get']('list.properties'),_0x11b1a8=this['editor']['plugins']['get']('TrackChangesEditing');_0x53fb1a['styles']&&_0x11b1a8['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x53fb1a['reversed']&&_0x11b1a8['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x53fb1a['startIndex']&&_0x11b1a8['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x11b1a8['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xa349be,_0x37b0fb={}){const _0x5f476c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x501c75=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5f476c['markMultiRangeBlockFormat'](_0x501c75,{'commandName':'listStyle','commandParams':[{'type':_0x37b0fb['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1b75b6,_0x1f3989={}){const _0xdadb57=this['editor']['plugins']['get']('TrackChangesEditing'),_0x100f11=this['_getSuggestionBlocks'](_0x249b3e=>_0x249b3e['is']('element','listItem')&&'numbered'===_0x249b3e['getAttribute']('listType'));if(_0x100f11['length']<0x1)return;const _0x20e771=_0x100f11['map'](_0x4bb121=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4bb121,'before'),this['editor']['model']['createPositionAt'](_0x4bb121,0x0)));this['editor']['model']['change'](()=>{_0xdadb57['markMultiRangeBlockFormat'](_0x20e771,{'commandName':'listReversed','commandParams':[{'reversed':_0x1f3989['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xadfe06,_0x2f9bb7={}){const _0x4ee041=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ad7e6=this['_getSuggestionBlocks'](_0x4fe40c=>_0x4fe40c['is']('element','listItem')&&'numbered'===_0x4fe40c['getAttribute']('listType'));if(_0x2ad7e6['length']<0x1)return;const _0x4d50d7=_0x2ad7e6['map'](_0x1edfab=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1edfab,'before'),this['editor']['model']['createPositionAt'](_0x1edfab,0x0)));this['editor']['model']['change'](()=>{_0x4ee041['markMultiRangeBlockFormat'](_0x4d50d7,{'commandName':'listStart','commandParams':[{'startIndex':_0x2f9bb7['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x39f8ae){if('formatBlock'!=_0x39f8ae['type']&&'formatInline'!=_0x39f8ae['type'])return;const _0x37e5aa=this['editor']['locale'],{data:_0x28ff6a}=_0x39f8ae;if(!_0x28ff6a)return;let _0x558ba4,_0x147f9a;switch(_0x28ff6a['commandName']){case'listStyle':_0x558ba4='*Change\x20to:*\x20%0',_0x147f9a={'type':'format','content':o(_0x37e5aa,_0x558ba4,o(_0x37e5aa,this['_getTranslationKeyForListStyle'](_0x28ff6a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x558ba4=_0x28ff6a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x147f9a={'type':'format','content':o(_0x37e5aa,_0x558ba4)};break;case'listStart':_0x558ba4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x147f9a={'type':'format','content':o(_0x37e5aa,_0x558ba4,_0x28ff6a['commandParams'][0x0]['startIndex'])};}return _0x147f9a;}['_getSuggestionBlocksForListStyle'](){var _0x13f3a0,_0x4a30d0,_0x18d97c,_0x1381a4;const _0x29cc91=this['editor']['plugins']['get']('LegacyListUtils');let _0x12f718=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return(null===(_0x13f3a0=_0x12f718[0x0])||void 0x0===_0x13f3a0?void 0x0:_0x13f3a0['is']('element','listItem'))&&_0x12f718['unshift'](..._0x29cc91['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),(null===(_0x4a30d0=_0x12f718[_0x12f718['length']-0x1])||void 0x0===_0x4a30d0?void 0x0:_0x4a30d0['is']('element','listItem'))&&_0x12f718['push'](..._0x29cc91['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x12f718=[...new Set(_0x12f718)],(null===(_0x1381a4=null===(_0x18d97c=this['editor']['model']['document']['selection']['getFirstPosition']())||void 0x0===_0x18d97c?void 0x0:_0x18d97c['parent'])||void 0x0===_0x1381a4?void 0x0:_0x1381a4['is']('element','listItem'))&&(_0x12f718=_0x12f718['filter'](_0x56069d=>_0x56069d['is']('element','listItem'))),_0x12f718;}['_getSuggestionBlocks'](_0x1ef315){const _0x98a546=this['editor']['plugins']['get']('LegacyListUtils');let _0x4e888b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1ef315)['map'](_0x1b3e79=>{const _0x404572=this['editor']['model']['createPositionAt'](_0x1b3e79,0x0);return[..._0x98a546['getSiblingNodes'](_0x404572,'backward'),..._0x98a546['getSiblingNodes'](_0x404572,'forward')];})['flat']();return _0x4e888b=[...new Set(_0x4e888b)],_0x4e888b;}['_getTranslationKeyForListStyle'](_0x4f9a47){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4f9a47)||'default')['toUpperCase']()+'_LIST_'+_0x4f9a47['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x1e79ec{['afterInit'](){const _0x38001c=this['editor'];if(!_0x38001c['plugins']['has']('MediaEmbedEditing'))return;const _0x215c5c=_0x38001c['plugins']['get']('TrackChangesEditing'),_0x4d7276=_0x38001c['locale'];_0x215c5c['enableCommand']('mediaEmbed'),_0x215c5c['descriptionFactory']['registerElementLabel']('media',_0xe8f328=>o(_0x4d7276,'ELEMENT_MEDIA',_0xe8f328)),_0x38001c['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x31c703,{writer:_0x37c27c,options:_0xbd8fa3})=>{if(_0xbd8fa3['showSuggestionHighlights'])return _0x37c27c['createEmptyElement']('div');},'converterPriority':'high'}),_0x38001c['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1f5a29,_0x51778e,_0x29d645)=>{_0x29d645['options']['showSuggestionHighlights']&&_0x1f5a29['stop']();},{'priority':'high'});}}class gt extends _0x1e79ec{['afterInit'](){const _0x18e74a=this['editor'];_0x18e74a['plugins']['has']('MentionEditing')&&_0x18e74a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x1e79ec{['afterInit'](){const _0xdfe463=this['editor'],_0x10c194=_0xdfe463['plugins']['get']('TrackChangesEditing');_0xdfe463['plugins']['has']('MultiLevelList')&&(_0x10c194['enableDefaultAttributesIntegration']('multiLevelList'),_0x10c194['registerBlockAttribute']('listMarkerStyle'),_0x10c194['descriptionFactory']['registerDescriptionCallback'](_0x54a7b4=>this['handleDescriptions'](_0x54a7b4)));}['handleDescriptions'](_0x57840a){const _0x4bd0c4=this['editor']['locale'],{data:_0x4447e2}=_0x57840a,_0x32238b={'type':'format','content':''};if(_0x4447e2&&'listMarkerStyle'==_0x4447e2['key']){if(!_0x4447e2['oldValue'])return{'type':'format','content':o(_0x4bd0c4,'*Set\x20format:*\x20%0',o(_0x4bd0c4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4447e2['newValue']+')'};if(!_0x4447e2['newValue']){let _0x1ff01d=_0x57840a['head'];for(;_0x1ff01d;){if(_0x1ff01d['data']&&'listType'==_0x1ff01d['data']['key']&&_0x1ff01d['data']['newValue'])return _0x32238b;_0x1ff01d=_0x1ff01d['next'];}return{'type':'format','content':o(_0x4bd0c4,'*Remove\x20format:*\x20%0',o(_0x4bd0c4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4447e2['oldValue']+')'};}}}}class mt extends _0x1e79ec{['afterInit'](){const _0x5a3870=this['editor'];if(!_0x5a3870['plugins']['has']('PageBreakEditing'))return;_0x5a3870['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2b46cb=_0x5a3870['plugins']['get']('TrackChangesEditing'),_0x5c6fbf=_0x5a3870['locale'];_0x2b46cb['descriptionFactory']['registerElementLabel']('pageBreak',_0x44c30d=>o(_0x5c6fbf,'ELEMENT_PAGE_BREAK',_0x44c30d));}}class dt extends _0x1e79ec{['afterInit'](){const _0x59591b=this['editor'];if(!_0x59591b['plugins']['has']('Paragraph'))return;const _0x15565c=_0x59591b['locale'],_0x47aa85=_0x59591b['plugins']['get']('TrackChangesEditing');_0x47aa85['descriptionFactory']['registerElementLabel']('paragraph',_0x34b208=>o(_0x15565c,'ELEMENT_PARAGRAPH',_0x34b208)),_0x47aa85['enableDefaultAttributesIntegration']('paragraph'),_0x47aa85['enableCommand']('insertParagraph'),_0x59591b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x59591b),{'priority':'highest'}),_0x59591b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1e8be3,_0x36c8be,_0x27c55d)=>{_0x27c55d['options']['showSuggestionHighlights']&&nr(_0x59591b,{'showActiveMarker':!0x1})(_0x1e8be3,_0x36c8be,_0x27c55d);},{'priority':'highest'});const _0x2eb784=_0x47aa85['descriptionFactory'];_0x2eb784['registerDescriptionCallback'](_0x417757=>{if('insertion'!==_0x417757['type'])return;const {start:_0x2b2c7a,end:_0x4a964a}=_0x417757['getFirstRange']();if(!_0x2b2c7a['isTouching'](_0x4a964a)||!_0x2b2c7a['nodeAfter'])return;const _0x54e24d=_0x59591b['model']['schema'],_0x4be4d4=_0x2b2c7a['nodeAfter'];return _0x54e24d['isBlock'](_0x4be4d4)&&!_0x54e24d['isLimit'](_0x4be4d4)&&_0x54e24d['checkChild'](_0x4be4d4,'$text')?{'type':'insertion','content':o(_0x15565c,'*Insert:*\x20%0',_0x2eb784['getItemLabel'](_0x4be4d4,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x323f40=this['editor'],_0x2be08d=_0x323f40['locale'];_0x323f40['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10317c=>{if('formatBlock'!=_0x10317c['type'])return;const {data:_0x18f6eb}=_0x10317c;return _0x18f6eb&&'paragraph'==_0x18f6eb['commandName']?{'type':'format','content':o(_0x2be08d,'*Change\x20to:*\x20%0',o(_0x2be08d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x36a9c2,{showActiveMarker:_0x442d85=!0x0}={}){return(_0x5b5160,_0x3c0789,_0x77cf20)=>{const _0x64841f=_0x36a9c2['plugins']['get']('TrackChangesEditing'),_0x2a76de=_0x3c0789['markerRange']['start'],_0x4cfda8=_0x3c0789['markerRange']['end'],_0x4f0403=_0x36a9c2['model']['schema'];if(!_0x2a76de['isTouching'](_0x4cfda8)||!_0x2a76de['nodeAfter'])return;const _0x249277=_0x2a76de['nodeAfter'];if(_0x4f0403['isBlock'](_0x249277)&&!_0x4f0403['isLimit'](_0x249277)&&_0x4f0403['checkChild'](_0x249277,'$text')){if(!_0x77cf20['consumable']['consume'](_0x3c0789['markerRange'],_0x5b5160['name']))return;const _0x20387f=_0x77cf20['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x18c02a=_0x77cf20['mapper']['toViewPosition'](_0x4cfda8);_0x442d85&&_0x64841f['activeMarkers']['includes'](_0x3c0789['markerName'])&&_0x77cf20['writer']['addClass']('ck-suggestion-marker--active',_0x20387f),_0x77cf20['writer']['insert'](_0x18c02a,_0x20387f),_0x77cf20['mapper']['bindElementToMarker'](_0x20387f,_0x3c0789['markerName']);}};}class pt extends _0x1e79ec{['afterInit'](){const _0x29b2ee=this['editor'];if(!_0x29b2ee['plugins']['has']('RemoveFormatEditing'))return;_0x29b2ee['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x593ab4=this['editor'];_0x593ab4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c8425=>{if('formatBlock'!=_0x3c8425['type']&&'formatInline'!=_0x3c8425['type'])return;const {data:_0x1d65a2}=_0x3c8425;return _0x1d65a2&&'removeFormat'==_0x1d65a2['commandName']?{'type':'format','content':o(_0x593ab4['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x1e79ec{['afterInit'](){const _0x58385a=this['editor'];if(!_0x58385a['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2ebce5=_0x58385a['plugins']['get']('TrackChangesEditing');_0x2ebce5['enableCommand']('goToPreviousRestrictedEditingException'),_0x2ebce5['enableCommand']('goToNextRestrictedEditingException');const _0x4fcec0=_0x58385a['plugins']['get']('RestrictedEditingModeEditing');_0x4fcec0['enableCommand']('trackChanges'),_0x4fcec0['enableCommand']('acceptSuggestion'),_0x4fcec0['enableCommand']('discardSuggestion'),_0x4fcec0['enableCommand']('acceptAllSuggestions'),_0x4fcec0['enableCommand']('discardAllSuggestions'),_0x4fcec0['enableCommand']('acceptSelectedSuggestions'),_0x4fcec0['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x1e79ec{static get['requires'](){return[_0x3b3aa8];}['init'](){const _0x5b72e6=this['editor'],_0x567e53=_0x5b72e6['plugins']['get']('TrackChangesEditing');_0x567e53['enableCommand']('shiftEnter'),_0x5b72e6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x5b72e6),{'priority':'high'}),_0x5b72e6['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x5b72e6),{'priority':'high'}),_0x5b72e6['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4bee93,_0x161fe1,_0x3d9b3d)=>{_0x3d9b3d['options']['showSuggestionHighlights']&&de(_0x5b72e6,{'showActiveMarker':!0x1})(_0x4bee93,_0x161fe1,_0x3d9b3d);}),_0x567e53['descriptionFactory']['registerElementLabel']('softBreak',_0x714617=>o(_0x5b72e6['locale'],'ELEMENT_LINE_BREAK',_0x714617));}}function de(_0x37e57b,{showActiveMarker:_0x2fc40b=!0x0}={}){return(_0x22390e,_0x427a57,_0x987252)=>{const _0x7f02ee=_0x37e57b['plugins']['get']('TrackChangesEditing');if(!_0x987252['consumable']['test'](_0x427a57['markerRange'],_0x22390e['name']))return;const _0x3a6630=_0x37e57b['model'];for(const _0x48cb50 of _0x427a57['markerRange']['getItems']()){if(!_0x48cb50['is']('element','softBreak'))continue;const _0x4e27cc='deletion'==_0x427a57['markerName']['split'](':')[0x1]?'merge':'split',_0x2964d8=_0x987252['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4e27cc}),_0x42d6cd=_0x987252['mapper']['toViewPosition'](_0x3a6630['createPositionBefore'](_0x48cb50));_0x2fc40b&&_0x7f02ee['activeMarkers']['includes'](_0x427a57['markerName'])&&_0x987252['writer']['addClass']('ck-suggestion-marker--active',_0x2964d8),_0x987252['writer']['insert'](_0x42d6cd,_0x2964d8),_0x987252['mapper']['bindElementToMarker'](_0x2964d8,_0x427a57['markerName']);}};}class wt extends _0x1e79ec{['afterInit'](){const _0x232253=this['editor'],_0x435249=_0x232253['model'],_0x11eba5=_0x232253['locale'];if(!_0x232253['plugins']['has']('StandardEditingModeEditing'))return;const _0x15d214=_0x232253['plugins']['get']('TrackChangesEditing'),_0xc007bd='restrictedEditingException',_0x309b7b=_0x232253['commands']['get'](_0xc007bd);_0x15d214['enableCommand'](_0xc007bd,(_0x4eaba8,_0x216416={})=>{const _0x503fd5=_0x435249['document']['selection'];if(_0x503fd5['isCollapsed'])return void _0x4eaba8(_0x216416);const _0x2e4a59=void 0x0!==_0x216416['forceValue']?_0x216416['forceValue']:!_0x309b7b['value'];_0x435249['change'](()=>{const _0x37c90d=Array['from'](_0x503fd5['getRanges']());for(const _0x2961fd of _0x37c90d){const _0x14ddc7=_0x2e4a59?[_0x2961fd]:io(_0xc007bd,_0x2961fd,_0x435249);for(const _0x147a37 of _0x14ddc7)_0x15d214['markInlineFormat'](_0x147a37,{'commandName':_0xc007bd,'commandParams':[{'forceValue':_0x2e4a59}]});}});}),_0x15d214['descriptionFactory']['registerDescriptionCallback'](_0x5ac16c=>{if('formatBlock'!=_0x5ac16c['type']&&'formatInline'!=_0x5ac16c['type'])return;const {data:_0x47fcbd}=_0x5ac16c;return _0x47fcbd&&_0x47fcbd['commandName']==_0xc007bd?_0x47fcbd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x11eba5,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x11eba5,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x1e79ec{['afterInit'](){const _0x85d004=this['editor'];if(!_0x85d004['plugins']['has']('Style')||!_0x85d004['plugins']['has']('DataSchema'))return;const _0x31a7a0=_0x85d004['plugins']['get']('TrackChangesEditing'),_0x4ed98b=_0x85d004['locale'],_0x3945a5=_0x85d004['config']['get']('style')||{},_0x1452a0=_0x85d004['plugins']['get']('GeneralHtmlSupport'),_0x25a367=_0x85d004['plugins']['get']('StyleUtils')['normalizeConfig'](_0x85d004['plugins']['get']('DataSchema'),_0x3945a5['definitions']);_0x31a7a0['enableDefaultAttributesIntegration']('style');const _0x78f95e=new Set();for(const _0x399031 of _0x25a367['block']){const _0x2d4e7c=_0x1452a0['getGhsAttributeNameForElement'](_0x399031['element']);_0x78f95e['add'](_0x2d4e7c);}const _0x32f887=new Set();for(const _0x510a54 of _0x25a367['inline']){const _0x311004=_0x1452a0['getGhsAttributeNameForElement'](_0x510a54['element']);_0x32f887['add'](_0x311004);for(const _0xf24ad2 of _0x510a54['ghsAttributes'])_0x32f887['add'](_0xf24ad2);}for(const _0x1272d8 of _0x78f95e)_0x31a7a0['registerBlockAttribute'](_0x1272d8),_0x31a7a0['descriptionFactory']['registerAttributeLabel'](_0x1272d8,o(_0x4ed98b,'FORMAT_STYLE'));for(const _0x3dfd9b of _0x32f887)_0x31a7a0['registerInlineAttribute'](_0x3dfd9b),_0x31a7a0['descriptionFactory']['registerAttributeLabel'](_0x3dfd9b,o(_0x4ed98b,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26d341=this['editor'],_0x584ad7=_0x26d341['locale'];_0x26d341['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d6134=>{if('formatBlock'!=_0x4d6134['type']&&'formatInline'!=_0x4d6134['type'])return;const {data:_0x18b174}=_0x4d6134;return _0x18b174&&'style'===_0x18b174['commandName']?_0x18b174['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x584ad7,'*Set\x20format:*\x20%0',_0x18b174['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x584ad7,'*Remove\x20format:*\x20%0',_0x18b174['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x1e79ec{['afterInit'](){const _0x202b09=this['editor'],_0x43f192=_0x202b09['model']['document']['selection'];if(!_0x202b09['plugins']['has']('TableEditing'))return;const _0x8df656=_0x202b09['locale'],_0x4053ae=_0x202b09['plugins']['get']('TrackChangesEditing'),_0x16046c=_0x202b09['plugins']['get']('TableUtils');_0x4053ae['descriptionFactory']['registerElementLabel']('table',_0x666eb1=>o(_0x8df656,'ELEMENT_TABLE',_0x666eb1)),this['_setupColumnsRowsFixing'](),_0x4053ae['enableCommand']('insertTable'),_0x4053ae['enableCommand']('selectTableRow'),_0x4053ae['enableCommand']('selectTableColumn');for(const _0x5d857d of['insertTableRowAbove','insertTableRowBelow']){const _0x188ed9=_0x202b09['commands']['get'](_0x5d857d);_0x4053ae['enableCommand'](_0x5d857d,_0x9f73ed=>{_0x202b09['model']['change'](_0x3488d3=>{_0x9f73ed();const _0x5c0707='above'===_0x188ed9['order'],_0x2cec06=_0x16046c['getSelectionAffectedTableCells'](_0x43f192),_0x2a9f28=_0x16046c['getRowIndexes'](_0x2cec06),_0xc60ea=_0x5c0707?_0x2a9f28['first']-0x1:_0x2a9f28['last']+0x1,_0x707b8a=_0x2cec06[0x0]['findAncestor']('table'),_0x5d7c6c=_0x16046c['createTableWalker'](_0x707b8a,{'startRow':_0xc60ea,'endRow':_0xc60ea}),_0x3984ef=Array['from'](_0x5d7c6c)['map'](_0x478083=>_0x3488d3['createRangeOn'](_0x478083['cell']));_0x4053ae['markMultiRangeInsertion'](_0x3984ef,'tableRow');});});}for(const _0x9bed68 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2b1b26=_0x202b09['commands']['get'](_0x9bed68);_0x4053ae['enableCommand'](_0x9bed68,_0x3ba575=>{_0x202b09['model']['change'](_0x2d6b5a=>{_0x3ba575();const _0x5059d3='left'===_0x2b1b26['order'],_0x4e6535=_0x16046c['getSelectionAffectedTableCells'](_0x43f192),_0x56957b=_0x16046c['getColumnIndexes'](_0x4e6535),_0x14d55d=_0x5059d3?_0x56957b['first']-0x1:_0x56957b['last']+0x1,_0x123a83=_0x4e6535[0x0]['findAncestor']('table'),_0x42ad12=_0x16046c['createTableWalker'](_0x123a83,{'startRow':0x0,'column':_0x14d55d,'includeAllSlots':!0x1}),_0x571cef=Array['from'](_0x42ad12)['map'](_0x635d4c=>_0x2d6b5a['createRangeOn'](_0x635d4c['cell']));_0x4053ae['markMultiRangeInsertion'](_0x571cef,'tableColumn');});});}for(const _0x27a692 of['removeTableRow','removeTableColumn']){const _0x247c77=_0x27a692['substr'](0xb),_0x3c1767=_0x247c77['toLowerCase'](),_0x362443=_0x3c1767['substr'](0x0,0x3)+'span',_0x29193d='table'+_0x247c77,_0x1131aa='min'+_0x247c77,_0x2ae80d='max'+_0x247c77;_0x4053ae['enableCommand'](_0x27a692,()=>{_0x202b09['model']['change'](_0x1564b0=>{const _0x4c1832=_0x16046c['getSelectionAffectedTableCells'](_0x43f192),_0x35abc2=_0x4c1832[0x0]['findAncestor']('table');let _0x15f727;if('removeTableRow'==_0x27a692){const _0x477da4=_0x16046c['getRowIndexes'](_0x4c1832);_0x15f727={'startRow':_0x477da4['first'],'endRow':_0x477da4['last'],'includeAllSlots':!0x0};}else{const _0x554c1c=_0x16046c['getColumnIndexes'](_0x4c1832);_0x15f727={'startColumn':_0x554c1c['first'],'endColumn':_0x554c1c['last'],'includeAllSlots':!0x0};}const _0x4c39cf=_0x16046c['createTableWalker'](_0x35abc2,_0x15f727),_0xabe033=Array['from'](_0x4c39cf)['map'](({cell:_0x2298c2})=>_0x2298c2),_0x1e9b00=Ee(_0xabe033['filter'](_0x5b9942=>_0x5b9942['hasAttribute'](_0x362443))),_0x5cef65=Ee(_0xabe033['filter'](_0x2a11bd=>!_0x2a11bd['hasAttribute'](_0x362443)))['map'](_0x4c805a=>_0x1564b0['createRangeOn'](_0x4c805a)),_0x536eb7=_0x4053ae['markMultiRangeDeletion'](_0x5cef65,_0x29193d);if(_0x536eb7&&('tableRow'==_0x536eb7['subType']||'tableColumn'==_0x536eb7['subType'])){const _0x43e4ae=this['_getSuggestionCoords'](_0x536eb7);for(const _0x475ac0 of _0x1e9b00){const _0x4c3160=_0x1564b0['createRangeOn'](_0x475ac0),_0x2b64fd=_0x16046c['getCellLocation'](_0x475ac0),_0x344d6e=_0x475ac0['getAttribute'](_0x362443)-0x1,_0xf1fec3=_0x43e4ae[_0x1131aa],_0x507a52=_0x43e4ae[_0x2ae80d];_0xf1fec3<=_0x2b64fd[_0x3c1767]&&_0x2b64fd[_0x3c1767]+_0x344d6e<=_0x507a52&&_0x536eb7['addRange'](_0x4c3160);}}});});}function _0x20489a(_0x37e49c){const _0xe575f5=Array['from'](_0x43f192['getRanges']())['map'](_0x9df8f9=>_0x43239f['fromRange'](_0x9df8f9));_0x202b09['model']['change'](_0x27afe9=>{const _0x228192=_0x27afe9['batch'];_0x37e49c=_0x37e49c['filter'](_0xdc202e=>'$graveyard'!=_0xdc202e['root']['rootName']),_0x27afe9['setSelection'](_0x37e49c),_0x202b09['commands']['get']('removeTableRow')['refresh'](),_0x202b09['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x202b09['model']['enqueueChange'](()=>{_0x202b09['model']['enqueueChange'](_0x228192,_0x48f501=>{const _0xb57637=_0xe575f5['filter'](_0x419aca=>'$graveyard'!=_0x419aca['root']['rootName']);_0xb57637['length']>0x0&&_0x48f501['setSelection'](_0xb57637);for(const _0x2ff16f of _0xe575f5)_0x2ff16f['detach']();});});});}function _0x5ab930(_0x1a202d){_0x202b09['model']['change'](_0x226278=>{const _0x482be7=Array['from'](_0x43f192['getRanges']())['map'](_0x2ece0a=>_0x43239f['fromRange'](_0x2ece0a)),_0x2e7b4f=[];for(const _0x3d39a1 of _0x1a202d)for(const _0x418d4c of _0x3d39a1['getItems']({'shallow':!0x0}))_0x2e7b4f['push'](_0x418d4c);for(const _0x14bdfd of _0x2e7b4f)'$graveyard'!=_0x14bdfd['root']['rootName']&&(_0x226278['setSelection'](_0x226278['createPositionAt'](_0x14bdfd,0x0)),_0x202b09['commands']['get']('removeTableColumn')['refresh'](),_0x202b09['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5f51bf=_0x482be7['filter'](_0x35fbf8=>'$graveyard'!=_0x35fbf8['root']['rootName']);_0x5f51bf['length']>0x0&&_0x226278['setSelection'](_0x5f51bf);for(const _0x119a7e of _0x482be7)_0x119a7e['detach']();});}function _0x2772c7(_0x508d5e,_0x25429a){return _0x25429a['every'](_0x44a8f2=>_0x508d5e['some'](_0x2b806f=>_0x2b806f['end']['isEqual'](_0x44a8f2['start'])||_0x44a8f2['end']['isEqual'](_0x2b806f['start'])));}function _0x1dd9f2(_0x460844,_0xabe044){return _0x460844['some'](_0x5c7b83=>_0xabe044['some'](_0x3c79ab=>_0x5c7b83['end']['isTouching'](_0x3c79ab['start'])));}_0x202b09['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x530d36,_0x4b0b60,_0x4e3679)=>{if(!_0x4e3679['options']['showSuggestionHighlights'])return;const _0x1098b1=_0x4b0b60['item'];if(!_0x1098b1)return;const _0x4c5ccb=_0x4e3679['mapper']['toViewElement'](_0x1098b1);function _0xe8b5d(_0x26cd13){return Array['isArray'](_0x26cd13)?_0x26cd13:[_0x26cd13];}_0x4c5ccb&&'tableCell'===_0x1098b1['name']&&_0x1d6a2b(_0x4c5ccb,_0x4e3679['writer'],(_0x5077ba,_0x372b2c,_0x1a9b6a)=>_0x1a9b6a['addClass'](_0xe8b5d(_0x372b2c['classes']),_0x5077ba),(_0x22ea5c,_0x7b2eff,_0x12d0d8)=>_0x12d0d8['removeClass'](_0xe8b5d(_0x7b2eff['classes']),_0x22ea5c));},{'priority':'highest'}),_0x4053ae['descriptionFactory']['registerDescriptionCallback'](_0x547094=>{if('insertion'!=_0x547094['type']&&'deletion'!=_0x547094['type'])return;const _0x47e89b=_0x547094['getContainedElement']();if(null!=_0x47e89b&&_0x47e89b['is']('element','table')){if('insertion'==_0x547094['type']){const _0x257016=_0x547094['getItems']()['filter'](_0x597ffb=>_0x597ffb['is']('$textProxy'))['map'](_0x5dc2b1=>_0x5dc2b1['data']);if(_0x257016['length'])return{'type':'insertion','content':o(_0x8df656,'*Insert:*\x20%0',o(_0x8df656,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x257016['join']('\x20')+'\x22'))};}if('deletion'==_0x547094['type']){const _0x353d2d=_0x547094['getItems']()['filter'](_0x57d824=>_0x57d824['is']('$textProxy'))['map'](_0x507221=>_0x507221['data']);if(_0x353d2d['length'])return{'type':'deletion','content':o(_0x8df656,'*Remove:*\x20%0',o(_0x8df656,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x353d2d['join']('\x20')+'\x22'))};}}}),_0x4053ae['descriptionFactory']['registerDescriptionCallback'](_0x44682f=>{if('tableRow'==_0x44682f['subType']){const _0x2353a1=_0x44682f['getItems']()['filter'](_0x42466f=>_0x42466f['is']('$textProxy'))['map'](_0x213805=>_0x213805['data']),_0x5d7b48=this['_getSuggestionCoords'](_0x44682f),_0x3e28c5=_0x5d7b48['maxRow']-_0x5d7b48['minRow']+0x1;if('insertion'==_0x44682f['type'])return _0x2353a1['length']?{'type':'insertion','content':o(_0x8df656,'*Insert:*\x20%0',o(_0x8df656,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3e28c5,'\x22'+_0x2353a1['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x8df656,'*Insert:*\x20%0',o(_0x8df656,'ELEMENT_TABLE_ROW',_0x3e28c5))};if('deletion'==_0x44682f['type'])return _0x2353a1['length']?{'type':'deletion','content':o(_0x8df656,'*Remove:*\x20%0',o(_0x8df656,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3e28c5,'\x22'+_0x2353a1['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x8df656,'*Remove:*\x20%0',o(_0x8df656,'ELEMENT_TABLE_ROW',_0x3e28c5))};}if('tableColumn'==_0x44682f['subType']){const _0x4924e5=_0x44682f['getItems']()['filter'](_0x5df6cb=>_0x5df6cb['is']('$textProxy'))['map'](_0x2939fc=>_0x2939fc['data']),_0x2efd45=this['_getSuggestionCoords'](_0x44682f),_0x42d6af=_0x2efd45['maxColumn']-_0x2efd45['minColumn']+0x1;if('insertion'==_0x44682f['type'])return _0x4924e5['length']?{'type':'insertion','content':o(_0x8df656,'*Insert:*\x20%0',o(_0x8df656,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x42d6af,'\x22'+_0x4924e5['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x8df656,'*Insert:*\x20%0',o(_0x8df656,'ELEMENT_TABLE_COLUMN',_0x42d6af))};if('deletion'==_0x44682f['type'])return _0x4924e5['length']?{'type':'deletion','content':o(_0x8df656,'*Remove:*\x20%0',o(_0x8df656,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x42d6af,'\x22'+_0x4924e5['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x8df656,'*Remove:*\x20%0',o(_0x8df656,'ELEMENT_TABLE_COLUMN',_0x42d6af))};}}),_0x4053ae['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x20489a),_0x4053ae['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x20489a),_0x4053ae['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5ab930),_0x4053ae['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5ab930),_0x4053ae['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2772c7),_0x4053ae['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2772c7),_0x4053ae['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1dd9f2),_0x4053ae['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1dd9f2);}['_acceptFormatSuggestionCallbackFactory'](){const _0x8c5f6d=this['editor'],_0x25ddef=_0x8c5f6d['model']['document']['selection'];return(_0x297861,_0x166a60)=>{_0x8c5f6d['model']['change'](_0x4e068b=>{const {commandName:_0x316ff7,commandParams:_0x13558b}=_0x166a60;let _0x42726a=_0x297861[0x0]['end']['nodeBefore'];_0x13558b&&_0x13558b[0x0]&&!0x1===_0x13558b[0x0]['forceValue']&&(_0x42726a=_0x297861[0x0]['start']['nodeAfter']);const _0x20086f=_0x4e068b['createRangeIn'](_0x42726a);if('$graveyard'==_0x20086f['root']['rootName'])return;const _0x44c249=Array['from'](_0x25ddef['getRanges']())['map'](_0x38898a=>_0x43239f['fromRange'](_0x38898a));_0x4e068b['setSelection'](_0x20086f),_0x8c5f6d['commands']['get'](_0x316ff7)['refresh'](),_0x13558b['push']({'forceDefaultExecution':!0x0}),_0x8c5f6d['execute'](_0x316ff7,..._0x13558b);const _0x323787=_0x44c249['filter'](_0xdc9d42=>'$graveyard'!=_0xdc9d42['root']['rootName']);_0x323787['length']>0x0&&_0x4e068b['setSelection'](_0x323787);for(const _0x436c63 of _0x44c249)_0x436c63['detach']();});};}['_getCoordsForCells'](_0x364c0f){const _0x19a9a7=this['editor']['plugins']['get']('TableUtils');let _0x20d88e=Number['MAX_SAFE_INTEGER'],_0x391088=Number['MIN_SAFE_INTEGER'],_0x32e51=Number['MAX_SAFE_INTEGER'],_0x24179d=Number['MIN_SAFE_INTEGER'];for(const _0x2f5855 of _0x364c0f){if('$graveyard'==_0x2f5855['root']['rootName'])continue;const {row:_0x4eb984,column:_0x3aebfd}=_0x19a9a7['getCellLocation'](_0x2f5855),_0x1ef525=_0x2f5855['hasAttribute']('rowspan')?_0x2f5855['getAttribute']('rowspan')-0x1:0x0,_0x5d89b4=_0x2f5855['hasAttribute']('colspan')?_0x2f5855['getAttribute']('colspan')-0x1:0x0;_0x20d88e=_0x4eb984<_0x20d88e?_0x4eb984:_0x20d88e,_0x391088=_0x4eb984+_0x1ef525>_0x391088?_0x4eb984+_0x1ef525:_0x391088,_0x32e51=_0x3aebfd<_0x32e51?_0x3aebfd:_0x32e51,_0x24179d=_0x3aebfd+_0x5d89b4>_0x24179d?_0x3aebfd+_0x5d89b4:_0x24179d;}return{'minRow':_0x20d88e,'maxRow':_0x391088,'minColumn':_0x32e51,'maxColumn':_0x24179d};}['_setupColumnsRowsFixing'](){const _0x361814=this['editor'],_0x289f17=_0x361814['plugins']['get']('TrackChangesEditing'),_0x45c39f=_0x361814['plugins']['get']('TableUtils');_0x361814['model']['document']['on']('change:data',()=>{const _0x128ab7=Array['from'](_0x361814['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x469f46,data:_0x3c000a}of _0x128ab7){const {group:_0xb43000,id:_0xbb7de1,subType:_0x2ee07a}=_0x289f17['_splitMarkerName'](_0x469f46);if('suggestion'!=_0xb43000)continue;if(null!=_0x3c000a['oldRange'])continue;const _0x490c8d=_0x289f17['getSuggestion'](_0xbb7de1);this['_tablePostFixingSubtypes']['includes'](_0x2ee07a)&&this['_tableSuggestions']['add'](_0x490c8d);}},{'priority':'low'});const _0x34822d=(_0x488005,_0x5588c1)=>{let _0xe228d2=!0x1;const _0x3830d8=_0x5588c1['createRangeOn'](_0x488005),_0x43de88=_0x488005['findAncestor']('table'),_0xba981=_0x45c39f['getCellLocation'](_0x488005);for(const _0x8d3bf5 of this['_tableSuggestions']){const _0x35380c=_0x8d3bf5['subType'],_0x4047a8=_0x35380c['startsWith']('tablePaste'),_0x2c25e2=_0x35380c['substr'](_0x4047a8?0xa:0x5),_0x3e5174=_0x2c25e2['toLowerCase'](),_0x12e8f9=_0x3e5174['substr'](0x0,0x3)+'span',_0x43df22='min'+_0x2c25e2,_0x5d8d84='max'+_0x2c25e2;if(!_0x8d3bf5['isInContent'])continue;if(_0x43de88!=_0x8d3bf5['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x8d3bf5['isIntersectingWithRange'](_0x3830d8))continue;const _0x5915af=_0x488005['hasAttribute'](_0x12e8f9)?_0x488005['getAttribute'](_0x12e8f9)-0x1:0x0,_0x237b3a=this['_getSuggestionCoords'](_0x8d3bf5),_0x36b0f7=_0x237b3a[_0x43df22],_0x54a5d2=_0x237b3a[_0x5d8d84];_0x36b0f7<=_0xba981[_0x3e5174]&&_0xba981[_0x3e5174]+_0x5915af<=_0x54a5d2&&(_0x8d3bf5['addRange'](_0x3830d8),_0xe228d2=!0x0);}return _0xe228d2;};_0x361814['model']['document']['registerPostFixer'](_0x272eab=>{let _0x4bc320=!0x1;for(const _0x28d105 of _0x361814['model']['document']['differ']['getChanges']())if('insert'==_0x28d105['type']){if('tableRow'==_0x28d105['name']){for(const _0x1668fa of _0x28d105['position']['nodeAfter']['getChildren']())_0x4bc320=_0x4bc320||_0x34822d(_0x1668fa,_0x272eab);}else'tableCell'==_0x28d105['name']&&(_0x4bc320=_0x4bc320||_0x34822d(_0x28d105['position']['nodeAfter'],_0x272eab));}return _0x4bc320;});}['_getSuggestionCoords'](_0x3e379b){return this['_getCoordsForCells'](_0x3e379b['getRanges']()['map'](_0x2b3a59=>_0x2b3a59['start']['nodeAfter']));}constructor(_0xad409e){super(_0xad409e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}}function Ee(_0x850e47){return Array['from'](new Set(_0x850e47)['values']());}class St extends _0x1e79ec{static get['requires'](){return[jt];}['afterInit'](){const _0x397e26=this['editor'],_0xc2f46e=_0x397e26['model']['document']['selection'],_0x44e0bb=_0x397e26['locale'];if(!_0x397e26['plugins']['has']('TableEditing'))return;const _0x22637b=_0x397e26['plugins']['get']('TrackChangesEditing'),_0x410d23=_0x397e26['plugins']['get']('TableUtils'),_0x5b979c=_0x397e26['plugins']['get'](jt);_0x5b979c['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x22637b['enableCommand']('mergeTableCells',()=>{const _0x1b994d=_0x410d23['getSelectionAffectedTableCells'](_0x397e26['model']['document']['selection']);_0x397e26['model']['change'](()=>{_0x22637b['markMultiRangeBlockFormat'](_0x1b994d,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x397e26['commands']['get']('mergeTableCells')['on']('execute',(_0x209091,_0xd220ed)=>{_0x397e26['commands']['get']('trackChanges')['value']&&(_0xd220ed['length']>0x0&&_0xd220ed[_0xd220ed['length']-0x1]&&_0xd220ed[_0xd220ed['length']-0x1]['forceDefaultExecution']||_0x22637b['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x209091['stop']());},{'priority':'highest'});for(const _0x53bf7f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x359f9f=_0x397e26['commands']['get'](_0x53bf7f);_0x22637b['enableCommand'](_0x53bf7f,()=>{const _0x36c7f4=_0x397e26['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x454f68=>_0x454f68['is']('element','tableCell')),_0x56b097=_0x359f9f['value'];_0x397e26['model']['change'](()=>{_0x22637b['markMultiRangeBlockFormat']([_0x36c7f4,_0x56b097],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3f2f4b of['splitTableCellVertically','splitTableCellHorizontally']){const _0x23b5f7=_0x397e26['commands']['get'](_0x3f2f4b);_0x22637b['enableCommand'](_0x3f2f4b,()=>{const _0x1c6767=_0x410d23['getSelectionAffectedTableCells'](_0x397e26['model']['document']['selection'])[0x0],_0x57cfdd=_0x1c6767['findAncestor']('table'),{column:_0x19dd4e,row:_0x5c73f0}=_0x410d23['getCellLocation'](_0x1c6767);let _0x29092d=[];if('horizontally'==_0x23b5f7['direction']){const _0x5b9e1a=_0x410d23['createTableWalker'](_0x57cfdd,{'startRow':_0x5c73f0,'endRow':_0x5c73f0,'includeAllSlots':!0x0});_0x29092d=Array['from'](_0x5b9e1a)['map'](_0x26aefd=>_0x26aefd['cell']);}else{const _0x3f33ae=_0x410d23['createTableWalker'](_0x57cfdd,{'column':_0x19dd4e,'includeAllSlots':!0x0});_0x29092d=Array['from'](_0x3f33ae)['map'](_0x531f9a=>_0x531f9a['cell']);}_0x397e26['model']['change'](_0x3654c1=>{_0x22637b['markBlockFormat'](_0x3654c1['createRangeOn'](_0x1c6767),{'commandName':_0x3f2f4b,'commandParams':[]},_0x29092d,_0x3f2f4b);});});}_0x22637b['descriptionFactory']['registerDescriptionCallback'](_0x32d149=>{if('formatBlock'!=_0x32d149['type']&&'formatInline'!=_0x32d149['type'])return;const {data:_0x7bd8b3}=_0x32d149;return _0x7bd8b3&&'mergeTableCells'==_0x7bd8b3['commandName']?{'type':'format','content':o(_0x44e0bb,'*Merge\x20cells*')}:void 0x0;}),_0x22637b['descriptionFactory']['registerDescriptionCallback'](_0x2a1b4a=>{if('formatBlock'!=_0x2a1b4a['type']&&'formatInline'!=_0x2a1b4a['type'])return;const {data:_0x55bb74}=_0x2a1b4a;return _0x55bb74?'splitTableCellVertically'==_0x55bb74['commandName']?{'type':'format','content':o(_0x44e0bb,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x55bb74['commandName']?{'type':'format','content':o(_0x44e0bb,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x36b895=_0x5b979c['_acceptFormatSuggestionCallbackFactory']();for(const _0x1f27d0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x22637b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1f27d0,'accept',_0x36b895);for(const _0x169800 of['splitTableCellVertically','splitTableCellHorizontally'])_0x22637b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x169800,'accept',_0x36b895);_0x22637b['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x587e15=>{_0x397e26['model']['change'](_0x48fe24=>{const _0x47b061=Array['from'](_0xc2f46e['getRanges']())['map'](_0x5d37b2=>_0x43239f['fromRange'](_0x5d37b2));_0x48fe24['setSelection'](_0x587e15),_0x397e26['commands']['get']('mergeTableCells')['refresh'](),_0x397e26['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x389a67=_0x47b061['filter'](_0x162d9a=>'$graveyard'!=_0x162d9a['root']['rootName']);_0x389a67['length']>0x0&&_0x48fe24['setSelection'](_0x389a67);for(const _0x2090ef of _0x47b061)_0x2090ef['detach']();});});for(const _0x537c88 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5ba9e2=_0x397e26['commands']['get'](_0x537c88);_0x5ba9e2['on']('set:isEnabled',(_0x524a7f,_0x3ca202,_0x47a93d)=>{if(_0x47a93d){const _0x3d7a32=_0x397e26['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2fa0b4=>_0x2fa0b4['is']('element','tableCell'));this['_areMergableCells'](_0x5ba9e2['value'],_0x3d7a32)||(_0x524a7f['return']=!0x1,_0x524a7f['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5c06b0=this['editor']['commands']['get']('mergeTableCells'),_0x2285a9=this['editor']['plugins']['get']('TableUtils');if(!_0x5c06b0['isEnabled'])return!0x1;const _0x4872da=_0x2285a9['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x422ac8 of _0x4872da)for(const _0x1fbdda of _0x4872da)if(_0x422ac8!=_0x1fbdda&&!this['_areMergableCells'](_0x422ac8,_0x1fbdda))return!0x1;return!0x0;}['_areMergableCells'](_0x194938,_0x409abd){const _0x4a3b2a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20cfd6=this['editor']['model']['createRangeOn'](_0x194938),_0x46b85e=this['editor']['model']['createRangeOn'](_0x409abd),_0xfad74a=new Set(),_0x32ea9d=new Set();for(const _0x282685 of _0x4a3b2a['getSuggestions']())if(('insertion'==_0x282685['type']||'deletion'==_0x282685['type']||'mergeTableCells'==_0x282685['subType'])&&_0x282685['isInContent']){for(const _0x4d0af8 of _0x282685['getRanges']())_0x4d0af8['containsRange'](_0x20cfd6,!0x0)&&_0xfad74a['add'](_0x282685['type']+':'+_0x282685['author']['id']),_0x4d0af8['containsRange'](_0x46b85e,!0x0)&&_0x32ea9d['add'](_0x282685['type']+':'+_0x282685['author']['id']);}if(_0xfad74a['size']!=_0x32ea9d['size'])return!0x1;for(const _0x358135 of _0xfad74a)if(!_0x32ea9d['has'](_0x358135))return!0x1;return!0x0;}}class At extends _0x1e79ec{static get['requires'](){return[jt];}['afterInit'](){const _0x8deb3d=this['editor'];if(!_0x8deb3d['plugins']['has']('TableEditing'))return;const _0x25b4c9=_0x8deb3d['locale'],_0xc42196=_0x8deb3d['plugins']['get']('TrackChangesEditing');_0xc42196['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xc42196['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xc42196['registerBlockAttribute']('headingRows'),_0xc42196['registerBlockAttribute']('headingColumns'),_0xc42196['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x25b4c9,'FORMAT_HEADER_ROW')),_0xc42196['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x25b4c9,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3e613f=this['editor']['plugins']['get']('TrackChangesEditing'),_0xca334=this['editor']['plugins']['get']('TableUtils'),_0x10b06c=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x175060({showActiveMarker:_0x2b14a9=!0x0,setDataAttribute:_0x286228=!0x0}={}){return(_0x419084,_0x2cd8c2,_0x24ba3e)=>{const {type:_0x40bc8e,id:_0x453d88}=_0x3e613f['_splitMarkerName'](_0x2cd8c2['markerName']),_0x4a60d9=_0x3e613f['getSuggestion'](_0x453d88),_0x495a61=_0x4a60d9['data'];if('formatBlock'!=_0x4a60d9['type']||!_0x495a61||'setTableColumnHeader'!=_0x495a61['commandName'])return;if(_0x2cd8c2['item'])return void _0x419084['stop']();if(!_0x24ba3e['consumable']['consume'](_0x2cd8c2['markerRange'],_0x419084['name']))return;const _0x55f875=_0x2cd8c2['markerRange']['start']['nodeAfter'],_0x160e5a=_0x2cd8c2['markerRange']['end']['nodeBefore'],_0x57fad7=_0x55f875['parent']['parent'],{column:_0x18b79f}=_0xca334['getCellLocation'](_0x55f875),{column:_0xc204eb}=_0xca334['getCellLocation'](_0x160e5a);for(let _0x534d82=_0x18b79f;_0x534d82<=_0xc204eb;_0x534d82++){const _0x3831dd=_0xca334['createTableWalker'](_0x57fad7,{'column':_0x534d82,'includeAllSlots':!0x1});for(const _0x54ac2c of _0x3831dd){const _0x1f42cc=_0x54ac2c['cell'],_0x4ddee5=_0x24ba3e['mapper']['toViewElement'](_0x1f42cc);_0x24ba3e['writer']['addClass']('ck-suggestion-marker-'+_0x40bc8e,_0x4ddee5),_0x286228&&_0x24ba3e['writer']['setAttribute']('data-suggestion',_0x453d88,_0x4ddee5),_0x24ba3e['mapper']['bindElementToMarker'](_0x4ddee5,_0x2cd8c2['markerName']),_0x2b14a9&&(_0x3e613f['activeMarkers']['includes'](_0x2cd8c2['markerName'])?_0x24ba3e['writer']['addClass']('ck-suggestion-marker--active',_0x4ddee5):_0x24ba3e['writer']['removeClass']('ck-suggestion-marker--active',_0x4ddee5));}}};}_0x3e613f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x10b06c),_0x3e613f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x10b06c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x175060(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4f216d,_0x4e3917,_0x5d71f3)=>{_0x5d71f3['options']['showSuggestionHighlights']&&_0x175060({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4f216d,_0x4e3917,_0x5d71f3);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x25500a,_0x5a46c2,_0x15b9c9)=>{const {type:_0x55d368,id:_0x476b86}=_0x3e613f['_splitMarkerName'](_0x5a46c2['markerName']),_0x8f9f56=_0x3e613f['getSuggestion'](_0x476b86),_0x5332bd=_0x8f9f56['data'];if('formatBlock'!=_0x8f9f56['type']||!_0x5332bd||'setTableColumnHeader'!=_0x5332bd['commandName'])return;const _0x26f208=_0x15b9c9['mapper']['markerNameToElements'](_0x5a46c2['markerName']);if(_0x26f208){for(const _0x329017 of _0x26f208)_0x15b9c9['writer']['removeClass']('ck-suggestion-marker-'+_0x55d368,_0x329017),_0x15b9c9['writer']['removeClass']('ck-suggestion-marker--active',_0x329017),_0x15b9c9['writer']['removeAttribute']('data-suggestion',_0x329017),_0x15b9c9['mapper']['unbindElementFromMarkerName'](_0x329017,_0x5a46c2['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x320791=this['editor'],_0x18dc31=_0x320791['locale'];function _0x3309c9(_0x209f1a){return{'type':'format','content':o(_0x18dc31,'*Format:*\x20%0',_0x209f1a)};}_0x320791['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ae5a7=>{if('formatBlock'!=_0x1ae5a7['type'])return;const {data:_0x157ad9}=_0x1ae5a7;if(_0x157ad9){if('setTableRowHeader'==_0x157ad9['commandName']){const _0x4cd864=_0x157ad9['commandParams'][0x0]['forceValue'];return _0x3309c9(o(_0x18dc31,_0x4cd864?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x157ad9['commandName']){const _0x28293b=_0x157ad9['commandParams'][0x0]['forceValue'];return _0x3309c9(o(_0x18dc31,_0x28293b?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x2cb0d1=>[_0x2cb0d1,null]));class It extends _0x1e79ec{static get['requires'](){return[jt];}['afterInit'](){const _0x332bbf=this['editor'];if(!_0x332bbf['plugins']['has']('TableClipboard'))return;const _0x5a9396=_0x332bbf['plugins']['get']('TrackChangesEditing'),_0x1ec0cb=_0x332bbf['plugins']['get']('TableUtils'),_0x3b8247=_0x332bbf['plugins']['get'](jt),_0x3dd364=_0x332bbf['plugins']['get']('TableClipboard');_0x3b8247['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x332bbf['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x332bbf['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5c3f4e=null;_0x332bbf['model']['on']('insertContent',(_0x2b0ec9,_0x66403f)=>{const [_0xca4e6c,_0x26fee9]=_0x66403f,_0xc01319=_0x66403f[_0x66403f['length']-0x1];_0xc01319&&_0xc01319['forceDefaultExecution']||_0x5a9396['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x8283a5,_0x335cb7,_0x5353ae,_0x11fdbb,_0x1b999f){if(_0x335cb7&&!_0x335cb7['is']('documentSelection'))return!0x1;const _0x5a68a2=_0x1b999f['getTableIfOnlyTableInContent'](_0x8283a5,_0x5353ae);if(!_0x5a68a2||!he(_0x5a68a2,void 0x0,_0x11fdbb))return!0x1;const _0x2fdb6c=_0x11fdbb['getSelectionAffectedTableCells'](_0x5353ae['document']['selection']);if(!_0x2fdb6c['length'])return!0x1;const _0x37a850=_0x2fdb6c[0x0]['findAncestor']('table'),_0x5d8b4f=_0x11fdbb['getRowIndexes'](_0x2fdb6c),_0x4065df=_0x11fdbb['getColumnIndexes'](_0x2fdb6c),_0x392ae8={'startRow':_0x5d8b4f['first'],'endRow':_0x5d8b4f['last'],'startColumn':_0x4065df['first'],'endColumn':_0x4065df['last']};return 0x1==_0x2fdb6c['length']&&(_0x392ae8['endRow']+=_0x11fdbb['getRows'](_0x5a68a2)-0x1,_0x392ae8['endColumn']+=_0x11fdbb['getColumns'](_0x5a68a2)-0x1),he(_0x37a850,_0x392ae8,_0x11fdbb);}(_0xca4e6c,_0x26fee9,_0x332bbf['model'],_0x1ec0cb,_0x3dd364)&&(_0x2b0ec9['stop'](),_0x5c3f4e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x332bbf['model']['change'](()=>{_0x332bbf['model']['insertContent'](_0x66403f[0x0],_0x66403f[0x1],_0x66403f[0x2],{'forceDefaultExecution':!0x0});const _0x20fc2b=_0x109dee(),{rowInsertionRanges:_0x373748,columnInsertionRanges:_0x7a56c9,insertionRanges:_0x1fd7b6,deletionRanges:_0x1b45e6,cells:_0x13533d}=_0x5c3f4e;_0x373748['length']&&_0x5a9396['markMultiRangeInsertion'](_0x373748,'tablePasteRow',{'tablePasteChainId':_0x20fc2b}),_0x7a56c9['length']&&_0x5a9396['markMultiRangeInsertion'](_0x7a56c9,'tablePasteColumn',{'tablePasteChainId':_0x20fc2b}),_0x1fd7b6['length']&&(_0x5a9396['markMultiRangeInsertion'](_0x1fd7b6,'tablePaste',{'tablePasteChainId':_0x20fc2b,'skipNestingCheck':!0x0}),_0x1fd7b6['forEach'](_0x4d8bfd=>{var _0x667851;return null===(_0x667851=_0x4d8bfd['detach'])||void 0x0===_0x667851?void 0x0:_0x667851['call'](_0x4d8bfd);})),_0x1b45e6['length']&&(_0x5a9396['markMultiRangeDeletion'](_0x1b45e6,'tablePaste',{'tablePasteChainId':_0x20fc2b,'skipNestingCheck':!0x0}),_0x1b45e6['forEach'](_0x3a007b=>{var _0x6e5898;return null===(_0x6e5898=_0x3a007b['detach'])||void 0x0===_0x6e5898?void 0x0:_0x6e5898['call'](_0x3a007b);}));const _0x5eda22=_0x5a9396['markMultiRangeBlockFormat'](_0x13533d['map'](({element:_0x24dcd2})=>_0x24dcd2),{'formatGroupId':_0x109dee()},[],'tablePasteCell',{'tablePasteChainId':_0x20fc2b});if(_0x5eda22){const _0x1e7456=_0x5eda22['getMarkers'](),_0x18efe4=[];for(const {element:_0x1b59e9,attributes:_0x206e1b}of _0x13533d){if(!_0x206e1b)continue;const _0x574b68=_0x332bbf['model']['createRangeOn'](_0x1b59e9),_0x7347d4=_0x1e7456['find'](_0x504f42=>_0x504f42['getRange']()['isEqual'](_0x574b68));_0x7347d4&&_0x18efe4['push']([_0x7347d4['name'],_0x206e1b]);}_0x18efe4['length']&&_0x5eda22['setAttribute']('markerAttributes',Object['fromEntries'](_0x18efe4));}_0x5c3f4e=null;}));},{'priority':_0x3ba2dc['high']+0xa}),_0x332bbf['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x409ecb,_0x40b551)=>{const [_0x25aa86,_0xd138a3,,_0x7d2129]=_0x40b551;if(!_0x5c3f4e)return;_0x409ecb['stop']();const _0x552520=_0x25aa86['cell'],_0x395f7b=_0xd138a3,_0x42f875=Pe(_0x552520),_0x2610d0=Pe(_0x395f7b);_0x409ecb['return']=_0x552520;let _0x4aeda8=null,_0x2e34b0=null;if(_0x2610d0||_0x42f875){if(_0x42f875&&!_0x2610d0){_0x7d2129['remove'](_0x552520['getChild'](0x0));for(const _0x1b1a16 of Array['from'](_0x395f7b['getChildren']()))_0x7d2129['insert'](_0x1b1a16,_0x552520,'end');const _0x58a114=_0x5c3f4e['rowInsertionIndexes']['includes'](_0x25aa86['row']),_0x4b6a5f=_0x5c3f4e['columnInsertionIndexes']['includes'](_0x25aa86['column']);_0x58a114||_0x4b6a5f||(_0x4aeda8=_0x43239f['fromRange'](_0x7d2129['createRangeIn'](_0x552520)));}else _0x2610d0&&!_0x42f875&&(_0x2e34b0=_0x7d2129['createRangeIn'](_0x552520));}else{const _0x16572f=_0x7d2129['createElement']('tableCellSuggestion'),_0x510cc7=_0x7d2129['createElement']('tableCellSuggestion');_0x7d2129['wrap'](_0x7d2129['createRangeIn'](_0x552520),_0x510cc7),_0x7d2129['insert'](_0x16572f,_0x552520,0x0);for(const _0x4154c9 of Array['from'](_0x395f7b['getChildren']()))_0x7d2129['insert'](_0x4154c9,_0x16572f,'end');_0x4aeda8=_0x43239f['fromRange'](_0x7d2129['createRangeOn'](_0x16572f)),_0x2e34b0=_0x43239f['fromRange'](_0x7d2129['createRangeOn'](_0x510cc7));}const _0x534390=Array['from'](_0x395f7b['getAttributes']())['filter'](([_0x53b860])=>ge['includes'](_0x53b860));_0x5c3f4e['cells']['push']({'element':_0x552520,'attributes':_0x534390['length']?Object['fromEntries'](_0x534390):null}),_0x4aeda8&&_0x5c3f4e['insertionRanges']['push'](_0x4aeda8),_0x2e34b0&&_0x5c3f4e['deletionRanges']['push'](_0x2e34b0);},{'priority':'high'}),_0x1ec0cb['on']('insertColumns',(_0x583ae8,_0x532b81)=>{const [_0x103535,_0x390f5c={}]=_0x532b81;if(!_0x5c3f4e)return;const _0x52aa67=_0x390f5c['at']||0x0,_0x534f4e=_0x390f5c['columns']||0x1;_0x5c3f4e['columnInsertionIndexes']=new Array(_0x534f4e)['fill'](_0x52aa67)['map']((_0x3bddc1,_0x4afbcc)=>_0x3bddc1+_0x4afbcc);for(const {cell:_0x3bfd15}of _0x1ec0cb['createTableWalker'](_0x103535,{'startColumn':_0x52aa67,'endColumn':_0x52aa67+_0x534f4e-0x1}))_0x5c3f4e['columnInsertionRanges']['push'](_0x332bbf['model']['createRangeOn'](_0x3bfd15));},{'priority':'low'}),_0x1ec0cb['on']('insertRows',(_0x1ffc9f,_0x55f8c9)=>{const [_0x4491e0,_0x4a7a9a={}]=_0x55f8c9;if(!_0x5c3f4e)return;const _0x388b3b=_0x4a7a9a['at']||0x0,_0x1f6bbc=_0x4a7a9a['rows']||0x1;_0x5c3f4e['rowInsertionIndexes']=new Array(_0x1f6bbc)['fill'](_0x388b3b)['map']((_0x4d08a9,_0x57ac52)=>_0x4d08a9+_0x57ac52);for(const {cell:_0xb778a5}of _0x1ec0cb['createTableWalker'](_0x4491e0,{'startRow':_0x388b3b,'endRow':_0x388b3b+_0x1f6bbc-0x1}))_0x5c3f4e['rowInsertionRanges']['push'](_0x332bbf['model']['createRangeOn'](_0xb778a5));},{'priority':'low'}),_0x5a9396['descriptionFactory']['registerDescriptionCallback'](_0x2d254a=>{if(_0x2d254a['subType']&&_0x2d254a['subType']['startsWith']('tablePaste'))return _0x2d254a['previous']?{}:{'type':'insertion','content':o(_0x332bbf['locale'],'*Replace\x20table\x20cells*')};});const _0x2cd7ab=()=>!0x1;for(const _0x68be40 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5a9396['_suggestionFactory']['registerCustomCallback']('insertion',_0x68be40,'join',_0x2cd7ab),_0x5a9396['_suggestionFactory']['registerCustomCallback']('deletion',_0x68be40,'join',_0x2cd7ab),_0x5a9396['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x68be40,'join',_0x2cd7ab);_0x5a9396['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2cd7ab),_0x5a9396['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x26278b,_0x3cd174,_0x3ede1c)=>{const _0x3c7943=_0x26278b['map'](_0x18756a=>_0x18756a['getContainedElement']())['filter'](_0x46f7a4=>_0x46f7a4),_0xfaf8ea=new Map(_0x3c7943['map'](_0x87de18=>[_0x87de18,null]));if(_0x5c3f4e){for(const {element:_0x2c95cc,attributes:_0x3901b5}of _0x5c3f4e['cells'])_0x3901b5&&_0xfaf8ea['set'](_0x2c95cc,_0x3901b5);}else{if(_0x3ede1c&&_0x3ede1c['markerAttributes'])for(const [_0x5b8ac4,_0x438d82]of Object['entries'](_0x3ede1c['markerAttributes'])){const _0x4873d0=_0x332bbf['model']['markers']['get'](_0x5b8ac4),_0x43e69f=_0x4873d0?_0x4873d0['getRange']()['getContainedElement']():null;_0x43e69f&&_0xfaf8ea['set'](_0x43e69f,_0x438d82);}}_0x332bbf['model']['change'](_0x530f3b=>{for(const [_0x53cf3e,_0x2ace5d]of _0xfaf8ea)_0x530f3b['setAttributes']({...Ce,..._0x2ace5d},_0x53cf3e);});});const _0x1bc447=(_0x185d5a,_0x2efa44)=>{_0x5a9396['_suggestionFactory']['registerCustomCallback'](_0x185d5a,'tablePaste',_0x2efa44,(_0xa75a7e,_0x3643bf,_0x4b0adb)=>{_0x332bbf['model']['change'](_0x10481b=>{const _0x48ffd5=[];for(const _0x1b22d4 of _0xa75a7e){const _0x2de8c2=_0x1b22d4['start']['nodeAfter'];_0x2de8c2['is']('element','tableCellSuggestion')&&_0x48ffd5['push'](_0x2de8c2);}_0x5a9396['_suggestionFactory']['getSuggestionCallback'](_0x185d5a,null,_0x2efa44)(_0xa75a7e,_0x3643bf,_0x4b0adb);for(const _0x10368e of _0x48ffd5)'$graveyard'!=_0x10368e['root']['rootName']&&_0x10481b['unwrap'](_0x10368e);});});};_0x1bc447('insertion','accept'),_0x1bc447('insertion','discard'),_0x1bc447('deletion','accept'),_0x1bc447('deletion','discard'),_0x5a9396['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5911f9=>{const _0xb136e1=_0x5911f9['map'](_0x3fd28b=>_0x3fd28b['getContainedElement']()),_0xbfc7f=_0xb136e1[0x0]['findAncestor']('table'),{minRow:_0x17bc54,maxRow:_0x20b847}=_0x3b8247['_getCoordsForCells'](_0xb136e1);_0x1ec0cb['removeRows'](_0xbfc7f,{'at':_0x17bc54,'rows':_0x20b847-_0x17bc54+0x1});}),_0x5a9396['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x49f280=>{const _0xb6bfaf=_0x49f280['map'](_0x40aede=>_0x40aede['getContainedElement']()),_0x149155=_0xb6bfaf[0x0]['findAncestor']('table'),{minColumn:_0x23e8b0,maxColumn:_0x58abfa}=_0x3b8247['_getCoordsForCells'](_0xb6bfaf);_0x1ec0cb['removeColumns'](_0x149155,{'at':_0x23e8b0,'columns':_0x58abfa-_0x23e8b0+0x1});});const _0x7ed7d1=(_0x790b8a,_0x2a42df)=>{if(!_0x2a42df['subType']||!_0x2a42df['subType']['startsWith']('tablePaste'))return;const _0x46451f=_0x2a42df['attributes']['tablePasteChainId'],_0x531459=_0x5a9396['getSuggestions']()['filter'](_0x3f11be=>_0x3f11be['isInContent']&&_0x3f11be['attributes']&&_0x3f11be['attributes']['tablePasteChainId']==_0x46451f);_0x531459['length']&&_0x2a42df['getAllAdjacentSuggestions']()['length']!=_0x531459['length']&&_0x531459['reduce']((_0x5cf39d,_0x73bbcd)=>(_0x5cf39d['next']=_0x73bbcd,_0x73bbcd['previous']=_0x5cf39d,_0x73bbcd));};function _0x1439d3(_0x3e6a42,_0xc22dd8=!0x0){const {id:_0x3ff930}=_0x5a9396['_splitMarkerName'](_0x3e6a42['markerName']),_0x58dabd=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xba13ac=_0x5a9396['activeMarkers']['includes'](_0x3e6a42['markerName']);return _0xba13ac&&_0x58dabd['push']('ck-suggestion-marker--active'),{'classes':_0x58dabd,'attributes':{'data-suggestion':_0x3ff930},'priority':_0xba13ac&&_0xc22dd8?0xbc2:0xbb8};}_0x5a9396['on']('suggestionLoaded',_0x7ed7d1,{'priority':'high'}),_0x5a9396['on']('suggestionUnloaded',_0x7ed7d1,{'priority':'high'}),_0x332bbf['model']['document']['registerPostFixer'](()=>{let _0x34e1fb=!0x1;const _0x53a7f4=Array['from'](_0x332bbf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1f191c,data:_0x59ee49}of _0x53a7f4){const {group:_0xb6d3ad,type:_0x519a8a,id:_0x1754ca}=_0x5a9396['_splitMarkerName'](_0x1f191c);if('suggestion'!=_0xb6d3ad||'deletion'!=_0x519a8a||_0x59ee49['oldRange'])continue;if(!_0x5a9396['hasSuggestion'](_0x1754ca))continue;const _0x147fa1=_0x5a9396['getSuggestion'](_0x1754ca)['getRanges'](),_0x135f23=_0x332bbf['plugins']['get']('Users')['me'];for(const _0x1e1b88 of _0x5a9396['getSuggestions']()){if(!_0x1e1b88['isInContent']||_0x1e1b88['author']!=_0x135f23)continue;if('formatBlock'!=_0x1e1b88['type']||'tablePasteCell'!=_0x1e1b88['subType'])continue;if(_0x1e1b88['getRanges']()['every'](_0x1fe309=>_0x147fa1['some'](_0xc0ef5f=>_0xc0ef5f['containsRange'](_0x1fe309,!0x0)))){for(const _0xab61e6 of _0x1e1b88['getAllAdjacentSuggestions']())_0xab61e6['isInContent']&&(_0xab61e6['discard'](),_0x34e1fb=!0x0);}}}return _0x34e1fb;}),_0x332bbf['model']['document']['registerPostFixer'](_0x3bf1df=>{const _0x1339e0=_0x332bbf['commands']['get']('redo');if(!_0x1339e0||!_0x1339e0['_createdBatches']['has'](_0x3bf1df['batch']))return!0x1;let _0x12952f=!0x1;const _0x5c6eb0=_0x332bbf['plugins']['get']('Users')['me'],_0x244d10=_0x332bbf['model']['document']['differ']['getChanges'](),_0x405aae=Array['from'](_0x332bbf['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1ed016,data:_0x56b46a})=>{const {group:_0xbcdcc8,subType:_0x3b391c,authorId:_0xa56b15}=_0x5a9396['_splitMarkerName'](_0x1ed016);return'suggestion'==_0xbcdcc8&&'tablePaste'==_0x3b391c&&_0xa56b15==_0x5c6eb0['id']&&!_0x56b46a['oldRange'];});for(const _0x996a3a of _0x244d10){if('insert'!=_0x996a3a['type']||'tableCellSuggestion'!=_0x996a3a['name']||0x1!=_0x996a3a['length'])continue;const _0x188f28=_0x3bf1df['createRange'](_0x996a3a['position'],_0x996a3a['position']['getShiftedBy'](0x1));if(!_0x405aae['find'](({data:_0x1430de})=>_0x1430de['newRange']['isEqual'](_0x188f28))){for(const {name:_0x84d62d,data:_0x5f4886}of _0x405aae)if(_0x188f28['containsRange'](_0x5f4886['newRange'])){_0x3bf1df['updateMarker'](_0x84d62d,{'range':_0x188f28}),_0x12952f=!0x0;break;}}}return _0x12952f;}),_0x332bbf['model']['document']['registerPostFixer'](_0x22f573=>{let _0x576bbe=!0x1;const _0x2ac341=_0x332bbf['plugins']['get']('Users')['me'],_0x1ad562=_0x5a9396['getSuggestions']()['filter'](_0x4305b3=>_0x4305b3['isInContent']&&_0x4305b3['author']==_0x2ac341),_0x39f9a9=new Set(),_0x5735f8=new Set();for(const _0x113ccd of _0x1ad562)if('tablePaste'==_0x113ccd['subType'])for(const _0x1d7461 of _0x113ccd['getMarkers']()){const _0x541a59=_0x1d7461['getRange']()['getContainedElement']();if(_0x541a59){if(_0x541a59['is']('element','tableCellSuggestion')&&Pe(_0x541a59)){_0x113ccd['removeMarker'](_0x1d7461['name']),_0x39f9a9['add'](_0x541a59),_0x576bbe=!0x0;const _0x141077=_0x541a59['nextSibling'],_0x39c09b=_0x541a59['previousSibling'],_0x4a17af=_0x141077&&_0x141077['is']('element','tableCellSuggestion'),_0x595ff3=_0x39c09b&&_0x39c09b['is']('element','tableCellSuggestion');_0x4a17af&&!_0x39f9a9['has'](_0x141077)&&_0x5735f8['add'](_0x141077),_0x595ff3&&!_0x39f9a9['has'](_0x39c09b)&&_0x5735f8['add'](_0x39c09b);}else _0x541a59['is']('element','paragraph')&&_0x541a59['isEmpty']&&(_0x113ccd['removeMarker'](_0x1d7461['name']),_0x576bbe=!0x0);}}else{if('tablePasteCell'==_0x113ccd['subType']){if(!_0x113ccd['attributes']||!_0x113ccd['attributes']['tablePasteChainId'])continue;const _0x48764c=_0x113ccd['attributes']['markerAttributes'];if(_0x48764c&&Object['keys'](_0x48764c)['length'])continue;const _0x2a45d6=_0x113ccd['attributes']['tablePasteChainId'];let _0x1e6884=!0x0,_0x384615=!0x0;for(const _0x211467 of _0x1ad562)if(_0x211467['subType']&&_0x211467['subType']['startsWith']('tablePaste')){if(!_0x211467['attributes']['tablePasteChainId']){_0x384615=!0x1;break;}if(_0x211467['id']!=_0x113ccd['id']&&_0x211467['attributes']['tablePasteChainId']==_0x2a45d6){_0x1e6884=!0x1;break;}}_0x384615&&_0x1e6884&&(_0x113ccd['removeMarkers'](),_0x576bbe=!0x0);}}for(const _0x17b336 of _0x39f9a9)_0x22f573['remove'](_0x17b336);for(const _0x277006 of _0x5735f8)_0x22f573['unwrap'](_0x277006);return _0x576bbe;}),_0x332bbf['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x108c75,_0x593db3)=>_0x1439d3(_0x108c75),'converterPriority':'high'}),_0x332bbf['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x555308,_0x23d197)=>_0x23d197['options']['showSuggestionHighlights']?_0x1439d3(_0x555308,!0x1):null,'converterPriority':'high'});const _0x14a854=_0x332bbf['editing']['view'];this['listenTo'](_0x14a854['document'],'clipboardOutput',(_0x1bb5d5,_0x132239)=>{const _0x1fa0d1=[];for(const _0x361b28 of _0x14a854['createRangeIn'](_0x132239['content'])['getItems']())_0x361b28['is']('element','suggestion-td')&&_0x1fa0d1['push'](_0x361b28);_0x14a854['change'](_0x5901d9=>{for(const _0x148e29 of _0x1fa0d1)_0x5901d9['move'](_0x5901d9['createRangeIn'](_0x148e29),_0x5901d9['createPositionBefore'](_0x148e29)),_0x5901d9['remove'](_0x148e29);});});}}function Pe(_0x10593a){if(_0x10593a['isEmpty'])return!0x0;const _0x512b50=_0x10593a['getChild'](0x0);return _0x512b50['is']('element','paragraph')&&_0x512b50['isEmpty'];}function he(_0x22ef6f,_0x57f456={},_0x473839){for(const {isAnchor:_0x2f0794,cellHeight:_0x113248,cellWidth:_0x15d3c9}of _0x473839['createTableWalker'](_0x22ef6f,{'includeAllSlots':!0x0,..._0x57f456}))if(!_0x2f0794||0x1!=_0x113248||0x1!=_0x15d3c9)return!0x1;return!0x0;}class vt extends _0x1e79ec{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3e9f90=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e9f90['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3e9f90['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3e9f90['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3e9f90['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3e9f90['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3e9f90['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4bbe4e,_0x18a2df){const _0x42e88f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x45daa0=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x54ce10=_0x18a2df['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x30b95a=_0x45daa0['getColumnGroupElement'](_0x54ce10);let _0x45ec7e=_0x30b95a?_0x45daa0['getTableColumnsWidths'](_0x30b95a):null,_0x586175=_0x54ce10['getAttribute']('tableWidth')||null;const _0x5932ad=_0x18a2df['tableWidth']||_0x586175,_0x5d2b6d=_0x18a2df['columnWidths']||_0x45ec7e,_0x15ca86=this['editor']['plugins']['get']('Users')['me'];for(const _0x4c78ec of _0x42e88f['getSuggestions']()){const _0x4a30b6=_0x4c78ec['getContainedElement']();if('resizeTable'===_0x4c78ec['subType']&&_0x4a30b6===_0x54ce10){_0x4c78ec['author']!==_0x15ca86&&_0x4c78ec['discard']();const _0x288cf9=_0x4c78ec['data']['commandParams'];_0x586175=_0x288cf9[0x0]['tableWidth'],_0x45ec7e=_0x288cf9[0x0]['columnWidths'];break;}}_0x4bbe4e({'table':_0x54ce10,'tableWidth':_0x5932ad,'columnWidths':_0x5d2b6d}),_0x42e88f['markBlockFormat'](_0x54ce10,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x586175,'columnWidths':_0x45ec7e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5e236f){if('formatBlock'!=_0x5e236f['type']&&'formatInline'!=_0x5e236f['type'])return;const {data:_0x2c43a6}=_0x5e236f;if(_0x2c43a6&&'resizeTable'===_0x2c43a6['formatGroupId']){const _0x4c8373='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4c8373)};}}}class _t extends _0x1e79ec{['afterInit'](){const _0x204ade=this['editor'];_0x204ade['plugins']['has']('Template')&&_0x204ade['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x1e79ec{['afterInit'](){const _0x37e179=this['editor'];if(!_0x37e179['commands']['get']('insertTableOfContents'))return;_0x37e179['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x573abd=_0x37e179['plugins']['get']('TrackChangesEditing'),_0x160d23=_0x37e179['locale'];_0x573abd['descriptionFactory']['registerElementLabel']('tableOfContents',_0x464102=>o(_0x160d23,'ELEMENT_TABLE_OF_CONTENTS',_0x464102));}}class Dt extends _0x1e79ec{['afterInit'](){const _0x3a15a8=this['editor'];if(!_0x3a15a8['plugins']['has']('Title'))return;const _0x301614=_0x3a15a8['plugins']['get']('TrackChangesEditing');_0x301614['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x3a15a8['locale'],'ELEMENT_TITLE')),_0x3a15a8['model']['document']['registerPostFixer'](_0x3c1c78=>{let _0x14c4b1=!0x1;const _0x119e84=Array['from'](_0x3a15a8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3b2779,data:_0x52cbac}of _0x119e84){const {group:_0x6bf172}=_0x301614['_splitMarkerName'](_0x3b2779);if('suggestion'!==_0x6bf172||!_0x52cbac['newRange'])continue;const _0xf7bd69=_0x52cbac['newRange'],_0x433d94=_0xf7bd69['end']['nodeBefore'];if(!_0x433d94||!_0x433d94['is']('element','title-content'))continue;if(!_0xf7bd69['start']['isTouching'](_0xf7bd69['end']))continue;const _0x19b10d=_0x3a15a8['model']['schema']['getNearestSelectionRange'](_0xf7bd69['end'],'forward');if(_0x19b10d&&_0x19b10d['isCollapsed']){const _0x54c578=_0x3c1c78['createRange'](_0xf7bd69['start'],_0x19b10d['start']);_0x54c578['isEqual'](_0xf7bd69)||(_0x3c1c78['updateMarker'](_0x3b2779,{'range':_0x54c578}),_0x14c4b1=!0x0);}_0x14c4b1||(_0x3c1c78['removeMarker'](_0x3b2779),_0x14c4b1=!0x0);}return _0x14c4b1;});}}class Nt extends _0x1e79ec{['afterInit'](){const _0x980c8d=this['editor'],_0x3ac5b2=_0x980c8d['plugins']['get']('TrackChangesEditing');_0x980c8d['plugins']['has']('UndoEditing')&&(_0x3ac5b2['enableCommand']('undo'),_0x3ac5b2['enableCommand']('redo'));}}class Mt extends _0x1e79ec{static get['requires'](){return[jt];}['afterInit'](){const _0x5006da=this['editor'];if(!_0x5006da['plugins']['has']('TableCaptionEditing'))return;_0x5006da['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x1e79ec{static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x504fc6=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1e7679 of this['tableProperties'])_0x504fc6['enableCommand'](_0x1e7679,(_0x1d6fa5,_0x531099)=>{const _0x410b16=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1e7679,[_0x410b16],this['tableProperties'],'tableProperties',_0x1d6fa5,_0x531099);});_0x504fc6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x504fc6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x504fc6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2ef851,_0x361f9b)=>this['handleDiscardAction'](this['tableProperties'],_0x2ef851,_0x361f9b)),_0x504fc6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x45fe54 of this['tableCellProperties'])_0x504fc6['enableCommand'](_0x45fe54,(_0x3dbab8,_0x1c0e65)=>{const _0xf913a4=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x45fe54,_0xf913a4,this['tableCellProperties'],'tableCellProperties',_0x3dbab8,_0x1c0e65);});_0x504fc6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x504fc6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x504fc6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2cdb24,_0x1b0daf)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2cdb24,_0x1b0daf)),_0x504fc6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x504fc6['descriptionFactory']['registerDescriptionCallback'](_0xc3d63=>this['handleSuggestionDescription'](_0xc3d63));}['_handlePropertyChange'](_0x44172a,_0x58b7e9,_0x7a6ad4,_0x574750,_0x37d8c0,_0x2704f6){const _0x591d4a=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2704f6['batch'],()=>{for(const _0x38c5f2 of _0x58b7e9){if(this['_getSuggestion'](_0x38c5f2,_0x574750))_0x37d8c0(_0x2704f6);else{const _0x2edfb2={};for(const _0x4f7826 of _0x7a6ad4){const _0x4ba9e5=_0x38c5f2['getAttribute'](_0x4f7826);void 0x0!==_0x4ba9e5&&(_0x2edfb2[_0x4f7826]=_0x4ba9e5);}_0x37d8c0(_0x2704f6),_0x591d4a['markBlockFormat'](_0x38c5f2,{'commandParams':[_0x2edfb2]},[],_0x574750);}}});}['handleDiscardAction'](_0x3163d9,_0x5b66e3,_0x612272){const _0x55202e=_0x5b66e3[0x0]['start']['nodeAfter'],_0x4ba0de=_0x612272['commandParams'][0x0];this['editor']['model']['change'](_0x404f99=>{for(const _0x155c3c of _0x3163d9)void 0x0!==_0x4ba0de[_0x155c3c]?_0x404f99['setAttribute'](_0x155c3c,_0x4ba0de[_0x155c3c],_0x55202e):_0x404f99['removeAttribute'](_0x155c3c,_0x55202e);});}['handleSuggestionDescription'](_0x41192c){if(_0x41192c['data'])switch(_0x41192c['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'](_0x48c49e,_0x1289a9){const _0x42e043=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xf0b136 of _0x42e043['getSuggestions']({'skipNotAttached':!0x0})){const _0x1a0f62=_0xf0b136['getContainedElement']();if(_0xf0b136['subType']===_0x1289a9&&_0x1a0f62===_0x48c49e)return _0xf0b136;}return null;}constructor(_0x1dd626){super(_0x1dd626),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}}const m='$elementName';class p extends _0x1e79ec{static get['requires'](){return['CommentsRepository',_0x15e88b,_0xa7374,E,V,U,O,G,F,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,Ct,$t,_t,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}get['_descriptionFactory'](){return this['descriptionFactory'];}['init'](){const _0x33e422=this['editor'],_0x191ea7=(_0x4dde85,_0x3689c6)=>{if('attribute'!=_0x4dde85)return'ck-suggestion-marker-'+_0x4dde85;const _0x1fd751=_0x3689c6['split']('|')[0x0];return this['_isBlockAttribute'](_0x1fd751)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x33e422['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x43599e=>{const {id:_0x483e6d,type:_0x39caf2,subType:_0x247c6f}=this['_splitMarkerName'](_0x43599e['markerName']),_0x546a76=['ck-suggestion-marker',_0x191ea7(_0x39caf2,_0x247c6f)];let _0x357a3c=0xbb8;return this['activeMarkers']['includes'](_0x43599e['markerName'])&&(_0x546a76['push']('ck-suggestion-marker--active'),_0x357a3c=0xbc2),'deletion'==_0x39caf2&&(_0x357a3c+=0x5),{'classes':_0x546a76,'attributes':{'data-suggestion':_0x483e6d},'priority':_0x357a3c};}}),_0x33e422['conversion']['for']('dataDowncast')['add'](_0x503cd9=>{_0x503cd9['on']('addMarker:suggestion',(_0xf4a5a2,_0x115f4c,_0x5054a6)=>{if(!_0x5054a6['options']['showSuggestionHighlights'])return;const _0x159b4b=_0x115f4c['item'];if(!_0x159b4b)return;const _0x5e4cad=_0x5054a6['mapper']['toViewElement'](_0x159b4b);_0x33e422['model']['schema']['isObject'](_0x159b4b)&&_0x5e4cad&&!_0x5e4cad['getCustomProperty']('widget')&&_0x5e4cad['is']('containerElement')&&_0x31e57b(_0x5e4cad,_0x5054a6['writer']);},{'priority':'high'});}),_0x33e422['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5ce561,_0x341bd8)=>{if(!_0x341bd8['options']['showSuggestionHighlights'])return null;const {type:_0x42e050,subType:_0x44ef17}=this['_splitMarkerName'](_0x5ce561['markerName']);return{'classes':['ck-suggestion-marker',_0x191ea7(_0x42e050,_0x44ef17)],'priority':0xbb8};}});const _0x4a38a3=({showActiveMarkers:_0xdbc83a=!0x0,isAttributeSuggestion:_0x5620ec=!0x1}={})=>(_0xdde3a3,_0x3248bc,_0x2ed0de)=>{if(!_0x3248bc['item'])return;const {id:_0x3558da}=this['_splitMarkerName'](_0x3248bc['markerName']);if(_0x5620ec){const _0x163e39=this['_suggestions']['get'](_0x3558da),_0x3a41d6=this['_getAttributeKey'](_0x163e39);if(!this['_isBlockAttribute'](_0x3a41d6))return;}if(_0x3248bc['item']['is']('selection'))return void _0x2ed0de['consumable']['consume'](_0x3248bc['item'],_0xdde3a3['name']);const _0x164414=_0x2ed0de['mapper']['toViewElement'](_0x3248bc['item']);if(_0x3248bc['item']['is']('element')&&_0x33e422['model']['schema']['isBlock'](_0x3248bc['item'])&&!_0x164414['getCustomProperty']('addHighlight')){_0x2ed0de['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x164414),_0x2ed0de['writer']['setAttribute']('data-suggestion',_0x3558da,_0x164414),_0x2ed0de['mapper']['bindElementToMarker'](_0x164414,_0x3248bc['markerName']),_0xdbc83a&&(this['activeMarkers']['includes'](_0x3248bc['markerName'])?_0x2ed0de['writer']['addClass']('ck-suggestion-marker--active',_0x164414):_0x2ed0de['writer']['removeClass']('ck-suggestion-marker--active',_0x164414));for(const _0x3d8057 of _0x33e422['model']['createRangeIn'](_0x3248bc['item'])['getItems']())_0x2ed0de['consumable']['consume'](_0x3d8057,_0xdde3a3['name']);_0x2ed0de['consumable']['consume'](_0x3248bc['item'],_0xdde3a3['name']);}};_0x33e422['conversion']['for']('dataDowncast')['add'](_0x48b940=>{_0x48b940['on']('addMarker:suggestion:formatBlock',(_0x370eff,_0x8d03e7,_0x1bcb2a)=>{_0x1bcb2a['options']['showSuggestionHighlights']&&_0x4a38a3({'showActiveMarkers':!0x1})(_0x370eff,_0x8d03e7,_0x1bcb2a);},{'priority':'highest'});}),_0x33e422['conversion']['for']('dataDowncast')['add'](_0x198a6a=>{_0x198a6a['on']('addMarker:suggestion:attribute',(_0x55f025,_0x1ec2cb,_0x3bc246)=>{_0x3bc246['options']['showSuggestionHighlights']&&_0x4a38a3({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x55f025,_0x1ec2cb,_0x3bc246);},{'priority':'highest'});}),_0x33e422['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1e4672,_0x5cf7b5)=>_0x5cf7b5['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1e4672['substr'](0xb)}}),_0x33e422['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2eeaa4,{writer:_0x4f486f})=>{let _0x442001='suggestion:'+_0x2eeaa4['getAttribute']('suggestion-type')+':'+_0x2eeaa4['getAttribute']('id');return _0x2eeaa4['getAttribute']('marker-count')&&(_0x442001+=':'+_0x2eeaa4['getAttribute']('marker-count')),_0x4f486f['createElement']('$marker',{'data-name':_0x442001});}}),_0x33e422['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x33e422['conversion']['for']('editingDowncast')['add'](_0x384ace=>{_0x384ace['on']('addMarker:suggestion:formatBlock',_0x4a38a3(),{'priority':'high'});}),_0x33e422['conversion']['for']('editingDowncast')['add'](_0x443daa=>{_0x443daa['on']('addMarker:suggestion:attribute',_0x4a38a3({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x33e422['conversion']['for']('editingDowncast')['add'](_0xb382a0=>{_0xb382a0['on']('removeMarker:suggestion:formatBlock',(_0x3c2369,_0x5a6940,_0x149bfc)=>{const _0x223025=_0x149bfc['mapper']['markerNameToElements'](_0x5a6940['markerName']);if(_0x223025){for(const _0x1f49d7 of _0x223025)_0x1f49d7['getCustomProperty']('addHighlight')||(_0x149bfc['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1f49d7),_0x149bfc['writer']['removeAttribute']('data-suggestion',_0x1f49d7),_0x149bfc['mapper']['unbindElementFromMarkerName'](_0x1f49d7,_0x5a6940['markerName']));}},{'priority':'high'});}),_0x33e422['conversion']['for']('editingDowncast')['add'](_0x133c04=>{_0x133c04['on']('removeMarker:suggestion:attribute',(_0x1fe2a5,_0x20ea09,_0x5d1b99)=>{const _0x23880e=_0x5d1b99['mapper']['markerNameToElements'](_0x20ea09['markerName']);if(!_0x23880e)return;const {id:_0x1a364f}=this['_splitMarkerName'](_0x20ea09['markerName']),_0x33a09b=this['_suggestions']['get'](_0x1a364f),_0x59e50f=this['_getAttributeKey'](_0x33a09b);if(this['_isBlockAttribute'](_0x59e50f)){for(const _0x35e878 of _0x23880e)_0x35e878['getCustomProperty']('addHighlight')||(_0x5d1b99['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x35e878),_0x5d1b99['writer']['removeAttribute']('data-suggestion',_0x35e878),_0x5d1b99['mapper']['unbindElementFromMarkerName'](_0x35e878,_0x20ea09['markerName']));}},{'priority':'high'});}),_0x33e422['model']['document']['registerPostFixer'](_0x5d0e12=>{let _0x53ec2e=!0x1;const _0x257fe2=Array['from'](_0x33e422['model']['document']['differ']['getChangedMarkers']()),_0xb279dd=new Set();for(const {name:_0x3e131c,data:_0x5da6bd}of _0x257fe2){const {group:_0x358f16,type:_0x44b0d5,subType:_0x6dd292,id:_0x527505}=this['_splitMarkerName'](_0x3e131c);if('suggestion'!==_0x358f16)continue;const _0x5a0c6a=this['_suggestions']['get'](_0x527505);if(null!=_0x5da6bd['newRange']){'formatInline'==_0x44b0d5&&(_0x53ec2e=_0x53ec2e||Et(_0x5da6bd['newRange'],_0x3e131c,_0x5d0e12,_0x33e422['model']['schema']));const _0x21414f='attribute'==_0x44b0d5&&this['_isBlockAttribute'](_0x6dd292['split']('|')[0x0]);if(_0x5da6bd['newRange']['isCollapsed']||'$graveyard'==_0x5da6bd['newRange']['root']['rootName']||'formatBlock'==_0x44b0d5&&!Ut(_0x5da6bd['newRange'])||_0x21414f&&!Ut(_0x5da6bd['newRange'])||'deletion'==_0x44b0d5&&!(!Tt(_0x3b0304=_0x5da6bd['newRange'])&&!function(_0x572015){return _0x572015['start']['parent']==_0x572015['end']['nodeBefore']&&_0x572015['start']['isAtEnd'];}(_0x3b0304)))_0x5d0e12['removeMarker'](_0x3e131c),_0x53ec2e=!0x0;else{if(!_0x5a0c6a||!_0x5a0c6a['isInContent'])continue;_0xb279dd['add'](_0x5a0c6a);}}}var _0x3b0304;return _0xb279dd['size']>0x0&&(_0x53ec2e=!!this['_joinWithAdjacentSuggestions'](_0xb279dd)||_0x53ec2e),_0x53ec2e;}),_0x33e422['model']['document']['registerPostFixer'](_0x5dfd6f=>{let _0x44fac4=!0x1;for(const _0x27160f of _0x33e422['model']['document']['differ']['getChanges']())if('insert'==_0x27160f['type'])for(const _0x25805f of this['_suggestions']['values']()){if(_0x25805f['isMultiRange']||!_0x25805f['isInContent'])continue;const _0x55f977='formatBlock'==_0x25805f['type'],_0x59a054=this['_getAttributeKey'](_0x25805f),_0x566f4b=_0x59a054&&this['_isBlockAttribute'](_0x59a054);if(!_0x55f977&&!_0x566f4b)continue;const _0x47e5cd=_0x25805f['getFirstRange']();if(_0x47e5cd['start']['parent']!=_0x47e5cd['end']['parent']&&!_0x47e5cd['end']['isAtEnd']){const _0x136e4d=_0x33e422['model']['createPositionAt'](_0x47e5cd['start']['nodeAfter'],'end'),_0x1ae222=_0x33e422['model']['createRange'](_0x47e5cd['start'],_0x136e4d);_0x5dfd6f['updateMarker'](_0x25805f['getFirstMarker'](),{'range':_0x1ae222}),_0x44fac4=!0x0;}}return _0x44fac4;}),_0x33e422['model']['document']['registerPostFixer'](_0x4f7ad3=>this['_processAttributeChanges'](_0x4f7ad3)),_0x33e422['model']['document']['registerPostFixer'](_0x53fda3=>!_0x53fda3['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x53fda3)),_0x33e422['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x33e422['model']['document']['on']('change:data',(_0x4617b,_0x5be513)=>{if(!_0x5be513['isLocal']||_0x5be513['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x15accc=_0x33e422['model']['document']['differ']['getChanges']();if(0x0==_0x15accc['length'])return;const _0xf3972=[],_0x1b0ba2=_0x15accc['filter'](_0x430dd3=>'attribute'==_0x430dd3['type']),_0x3f364e=_0x15accc['filter'](_0x3045d8=>'insert'==_0x3045d8['type']&&'$text'!=_0x3045d8['name']),_0x25ad0e=_0x15accc['filter'](_0x23627a=>'remove'==_0x23627a['type']&&'$text'!=_0x23627a['name']);for(const _0x51d2fb of _0x1b0ba2)this['_isRegisteredAttribute'](_0x51d2fb['attributeKey'])&&_0xf3972['push']({'key':_0x51d2fb['attributeKey'],'newValue':_0x51d2fb['attributeNewValue'],'oldValue':_0x51d2fb['attributeOldValue'],'range':Ot(_0x51d2fb['range'],_0x33e422['model'])});for(const _0x4d1b15 of _0x3f364e){const _0x2240c8=_0x25ad0e['find'](_0x14e3d0=>_0x14e3d0['_element']===_0x4d1b15['_element']);if(_0x2240c8){const _0xbb8da6=Ft(_0x4d1b15['position']['nodeAfter'],_0x33e422['model']);_0x2240c8['name']!==_0x4d1b15['name']&&_0xf3972['push']({'key':m,'newValue':_0x4d1b15['name'],'oldValue':_0x2240c8['name'],'range':_0xbb8da6});for(const [_0x185c54,_0x5c1bfe]of _0x2240c8['attributes']){if(!this['_isRegisteredAttribute'](_0x185c54))continue;const _0x49d32c=_0x4d1b15['attributes']['get'](_0x185c54);_0x5c1bfe!==_0x49d32c&&_0xf3972['push']({'key':_0x185c54,'newValue':_0x49d32c,'oldValue':_0x5c1bfe,'range':_0xbb8da6});}for(const [_0x4ea78a,_0x2c6da3]of _0x4d1b15['attributes'])this['_isRegisteredAttribute'](_0x4ea78a)&&(_0x2240c8['attributes']['has'](_0x4ea78a)||_0xf3972['push']({'key':_0x4ea78a,'newValue':_0x2c6da3,'oldValue':null,'range':_0xbb8da6}));}}0x0!=_0xf3972['length']&&_0x33e422['model']['enqueueChange'](_0x5be513,_0x28d85f=>{const _0x13da09=_0x109dee();for(const {range:_0x3cdc11,key:_0x3049a8,oldValue:_0x5da50c,newValue:_0x1c3898}of _0xf3972)this['markAttributeChange'](_0x3cdc11,_0x3049a8,_0x5da50c,_0x1c3898,{'groupId':_0x13da09});this['_reduceExistingSuggestions'](_0x28d85f,_0xf3972);});},{'priority':'lowest'}),_0x33e422['model']['markers']['on']('update:suggestion',(_0x52c743,_0x1e708b,_0x18b4ac)=>{if(null==_0x18b4ac){const {id:_0x4d77ba}=this['_splitMarkerName'](_0x1e708b['name']),_0x230d39=this['_suggestions']['get'](_0x4d77ba);_0x230d39&&_0x230d39['addMarkerName'](_0x1e708b['name']);}}),_0x33e422['model']['document']['on']('change:data',()=>{const _0x91a10f=Array['from'](_0x33e422['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1fa6dc=>'suggestion'===this['_splitMarkerName'](_0x1fa6dc['name'])['group']);if(0x0===_0x91a10f['length'])return;_0x91a10f['sort']((_0x3a2ee4,_0x18d470)=>{const _0x4437b5=_0x3a2ee4['data']['oldRange'],_0x442fe9=_0x18d470['data']['oldRange'];return null===_0x4437b5&&null===_0x442fe9?0x0:null===_0x4437b5&&null!==_0x442fe9?-0x1:null!==_0x4437b5&&null===_0x442fe9?0x1:_0x4437b5['start']['isBefore'](_0x442fe9['start'])?-0x1:0x1;});const _0x5ddf40=new Set(),_0x10f4c9=new Set();for(const {name:_0x4514f8,data:_0x312afd}of _0x91a10f){const {id:_0x2a9c7e}=this['_splitMarkerName'](_0x4514f8);if(null===_0x312afd['oldRange']){const _0x55eebb=this['_handleNewSuggestionMarker'](_0x4514f8);_0x10f4c9['add'](_0x55eebb);}else{const _0x5ef72a=this['_suggestions']['get'](_0x2a9c7e);null!==_0x312afd['newRange']||_0x5ef72a['isInContent']?(_0x5ddf40['add'](_0x5ef72a['head']),_0x10f4c9['add'](_0x5ef72a)):this['_removeSuggestion'](_0x5ef72a);}}_0x10f4c9['size']>0x0&&this['_refreshSuggestionsChain'](_0x10f4c9);for(const _0x2e9073 of _0x5ddf40)this['fire']('suggestionChanged',_0x2e9073);}),_0x33e422['model']['on']('applyOperation',(_0x16e2b2,_0x46ca25)=>{const _0x31b8d0=_0x46ca25[0x0];if(!this['_suggestions']['size'])return;if(!_0x31b8d0['isDocumentOperation'])return;if(_0x31b8d0['batch']['isUndo']||!_0x31b8d0['batch']['isLocal'])return;let _0x2eb3aa,_0x435ce5;switch(_0x31b8d0['type']){case'insert':_0x2eb3aa=_0x33e422['model']['createPositionAt'](_0x31b8d0['position']),_0x435ce5=_0x2eb3aa['getShiftedBy'](_0x31b8d0['howMany']);break;case'split':_0x2eb3aa=_0x33e422['model']['createPositionAt'](_0x31b8d0['splitPosition']),_0x435ce5=_0x33e422['model']['createPositionAt'](_0x31b8d0['moveTargetPosition']);break;case'move':_0x2eb3aa=_0x33e422['model']['createPositionAt'](_0x31b8d0['targetPosition']),_0x435ce5=_0x2eb3aa['getShiftedBy'](_0x31b8d0['howMany']);break;default:return;}const _0x1a145b=_0x33e422['model']['createRange'](_0x2eb3aa,_0x435ce5);_0x33e422['model']['change'](()=>{for(const {suggestion:_0x12d4b0,meta:_0x37e7cc}of this['_findSuggestions'](_0x1a145b)){if(_0x12d4b0['isMultiRange'])continue;if('formatInline'==_0x12d4b0['type'])continue;const _0x9f915e=this['_getAttributeKey'](_0x12d4b0);if(_0x9f915e&&this['_isBlockAttribute'](_0x9f915e)&&'split'!=_0x31b8d0['type'])continue;const _0x34d6cd=_0x12d4b0['data']&&_0x12d4b0['data']['multipleBlocks'];('formatBlock'!=_0x12d4b0['type']||'split'==_0x31b8d0['type']&&!_0x34d6cd)&&(_0x37e7cc['containsRangeInObject']||'insertion'==_0x12d4b0['type']&&_0x37e7cc['isOwn']||_0x12d4b0['getFirstRange']()['containsRange'](_0x1a145b)&&this['_breakSuggestionMarker'](_0x12d4b0,_0x2eb3aa,_0x435ce5));}});},{'priority':'lowest'}),_0x33e422['model']['on']('deleteContent',(_0x1745b4,_0xc4f3cc)=>{const _0xf3f22b=_0xc4f3cc[0x0],_0x5a3667=_0xc4f3cc[0x1];if(_0x5a3667&&_0x5a3667['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xf3f22b['isCollapsed'])return;const _0x3c0ee8=_0x33e422['model']['schema'],{start:_0x3645bf,end:_0x1f9ffe}=_0xf3f22b['getFirstRange'](),_0x50fe23=_0x3645bf['nodeAfter']&&_0x3c0ee8['isLimit'](_0x3645bf['nodeAfter'])?null:_0x3c0ee8['getNearestSelectionRange'](_0x3645bf,'forward'),_0x46edd9=_0x1f9ffe['nodeBefore']&&_0x3c0ee8['isLimit'](_0x1f9ffe['nodeBefore'])?null:_0x3c0ee8['getNearestSelectionRange'](_0x1f9ffe,'backward'),_0x5ef359=_0x33e422['model']['createRange'](_0x50fe23?_0x50fe23['start']:_0x3645bf,_0x46edd9?_0x46edd9['end']:_0x1f9ffe);_0x33e422['model']['change'](_0x524c26=>{this['markDeletion'](_0x5ef359);const _0x2242fc=_0x33e422['model']['schema']['getNearestSelectionRange'](_0x5ef359['start']);_0xf3f22b['is']('documentSelection')?_0x524c26['setSelection'](_0x2242fc):_0xf3f22b['setTo'](_0x2242fc);}),_0x1745b4['stop']();},{'priority':_0x3ba2dc['normal']+0xa}),_0x33e422['model']['on']('insertContent',(_0x2e379f,_0xa80835)=>{const _0x4d7c46=_0xa80835[_0xa80835['length']-0x1];_0x4d7c46&&_0x4d7c46['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x33e422['model']['change'](()=>{let _0xa59cab=_0x33e422['model']['insertContent'](_0xa80835[0x0],_0xa80835[0x1],_0xa80835[0x2],{'forceDefaultExecution':!0x0});if(!_0xa59cab)return;_0x2e379f['return']=_0xa59cab['clone']();const _0x129d40=_0xa59cab['end']['nodeBefore'],_0x305407=_0x33e422['model']['schema'];_0x129d40&&_0x305407['isBlock'](_0x129d40)&&!_0x305407['isObject'](_0x129d40)&&(_0xa59cab=_0x33e422['model']['createRange'](_0xa59cab['start'],_0x33e422['model']['createPositionAt'](_0x129d40,'end'))),this['markInsertion'](_0xa59cab);}),_0x2e379f['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x121c2a=new $(_0x33e422,this['_suggestions']);_0x33e422['commands']['add']('acceptSuggestion',_0x121c2a),this['enableCommand']('acceptSuggestion');const _0x2841ff=new B(_0x33e422,this['_suggestions']);_0x33e422['commands']['add']('discardSuggestion',_0x2841ff),this['enableCommand']('discardSuggestion'),_0x33e422['commands']['add']('acceptAllSuggestions',new x(_0x33e422,_0x121c2a,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x33e422['commands']['add']('discardAllSuggestions',new x(_0x33e422,_0x2841ff,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x33e422['commands']['add']('acceptSelectedSuggestions',new R(_0x33e422,_0x121c2a,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x33e422['commands']['add']('discardSelectedSuggestions',new R(_0x33e422,_0x2841ff,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xff3fce=_0x33e422['plugins']['get']('CommentsRepository');this['listenTo'](_0xff3fce,'addComment',(_0x37faa1,{threadId:_0x43a4ee})=>{const _0x27d4c9=this['_suggestions']['get'](_0x43a4ee);_0x27d4c9&&_0x27d4c9['commentThread']&&0x1===_0x27d4c9['commentThread']['length']&&this['_updateSuggestionData'](_0x43a4ee,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xff3fce,'removeComment',(_0x78980d,{threadId:_0x4a6a87})=>{const _0xf0b37f=this['_suggestions']['get'](_0x4a6a87);_0xf0b37f&&_0xf0b37f['commentThread']&&!_0xf0b37f['commentThread']['length']&&this['_updateSuggestionData'](_0x4a6a87,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x4a3119){if(this['_adapter'])throw new _0x46c804('track-changes-adapter-already-set',this);this['_adapter']=_0x4a3119;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x93de31=!0x1,toJSON:_0x152138=!0x1}={}){const _0x4d97c9=[];for(const _0x2b2523 of this['_suggestions']['values']())_0x93de31&&!_0x2b2523['isInContent']||_0x4d97c9['push'](_0x2b2523);return _0x152138?_0x4d97c9['map'](_0x3e5a77=>_0x3e5a77['toJSON']()):_0x4d97c9;}['getSuggestion'](_0x4dbfb0){const _0x3b32f3=this['_suggestions']['get'](_0x4dbfb0);if(!_0x3b32f3)throw new _0x46c804('track-changes-suggestion-not-found',this);return _0x3b32f3;}['hasSuggestion'](_0x5d832d){return this['_suggestions']['has'](_0x5d832d);}['addSuggestionData'](_0x4e72b5){const {authorId:_0x320bde,id:_0x23e7aa,attributes:_0x389114}=_0x4e72b5,[_0x475b8f,_0x30a847]=_0x4e72b5['type']['split'](':'),_0x4f5e13=this['_suggestions']['get'](_0x23e7aa)||this['_createSuggestion'](_0x475b8f,_0x30a847,_0x23e7aa,_0x320bde,_0x389114);if(this['_addThreadToSuggestion'](_0x4f5e13),this['_checkSuggestionCorrectness'](_0x4f5e13,_0x475b8f,_0x30a847||null,_0x320bde),_0x4f5e13['createdAt']=_0x4e72b5['createdAt'],_0x4f5e13['_isDataLoaded']=!0x0,_0x389114&&_0x389114['@external']){const _0x10fa9a=_0x389114['@external'],_0xdeade5=this['_getExternalAuthor'](_0x10fa9a['authorName']);_0x4f5e13['authoredAt']=_0x10fa9a['createdAt'],_0x4f5e13['author']=_0xdeade5,_0x4f5e13['isExternal']=!0x0;}else _0x4f5e13['authoredAt']=_0x4e72b5['createdAt'];switch(_0x4e72b5['data']&&(_0x4f5e13['data']=_0x4e72b5['data']),_0x4e72b5['attributes']&&(_0x4f5e13['attributes']=_0x4e72b5['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4f5e13['_saved']=!0x0),this['_suggestionState']['get'](_0x4f5e13)){case'notReady':this['_suggestionState']['set'](_0x4f5e13,'dataReady');break;case'markerReady':_0x4f5e13['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4f5e13])),this['_refreshSuggestionsChain'](new Set([_0x4f5e13])),this['_suggestionState']['set'](_0x4f5e13,'ready'),this['fire']('suggestionLoaded',_0x4f5e13)):this['_suggestionState']['set'](_0x4f5e13,'removed');}return _0x4f5e13;}['acceptSuggestion'](_0x52fe1e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x41f7f0 of _0x52fe1e['getAllAdjacentSuggestions']())_0x41f7f0['accept']();});});}['discardSuggestion'](_0x441010){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5aba93 of _0x441010['getAllAdjacentSuggestions']())_0x5aba93['discard']();});});}['enableCommand'](_0x4dbeec,_0x56c710){const _0x246fd2=this['editor']['commands']['get'](_0x4dbeec);if(!_0x246fd2)throw new _0x46c804('track-changes-command-not-found',this,{'commandName':_0x4dbeec});if(this['_enabledCommands']['has'](_0x246fd2))throw new _0x46c804('track-changes-enable-command-twice',this,{'commandName':_0x4dbeec});this['_enabledCommands']['add'](_0x246fd2),_0x56c710&&_0x246fd2['on']('execute',(_0xdddfa5,_0x713dcf)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x713dcf['length']>0x0&&_0x713dcf[_0x713dcf['length']-0x1]&&_0x713dcf[_0x713dcf['length']-0x1]['forceDefaultExecution']?_0x713dcf['pop']():(_0xdddfa5['return']=_0x56c710((..._0x58013d)=>_0x246fd2['execute'](..._0x58013d,{'forceDefaultExecution':!0x0}),..._0x713dcf),_0xdddfa5['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x19d0c4){let _0x186177,_0x341569;const _0x3ed1c9=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x186177=_0x19d0c4();}catch(_0x3bb15e){_0x341569=_0x3bb15e;}return _0x3ed1c9||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x341569&&_0x46c804['rethrowUnexpectedError'](_0x341569,this),_0x186177;}['markInsertion'](_0x15e416,_0x260c44=null,_0x5270c4={}){if(_0x15e416['isCollapsed'])return null;const _0x22d636=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x678572,meta:_0xa09906}of this['_findSuggestions'](_0x15e416,'insertion'))if(_0xa09906['isOwn']){if(!_0xa09906['isNextTo']){if(_0xa09906['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x678572,_0x5270c4))continue;return _0x678572;}if(Lt(_0x678572,_0x5270c4))return _0x678572;this['_breakSuggestionMarker'](_0x678572,_0x15e416['start'],_0x15e416['end']);break;}if(_0x260c44==_0x678572['subType']&&Lt(_0x678572,_0x5270c4)){const _0x39bf2f=_0x678572['getFirstRange']();return _0x39bf2f['start']['isEqual'](_0x15e416['end'])?this['_setSuggestionRange'](_0x678572,this['_model']['createRange'](_0x15e416['start'],_0x39bf2f['end'])):this['_setSuggestionRange'](_0x678572,this['_model']['createRange'](_0x39bf2f['start'],_0x15e416['end'])),_0x678572;}}const _0x3464eb=_0x109dee(),_0x50ef3e=_0x22d636['id'],_0xd90f49=_0x260c44?'insertion:'+_0x260c44:'insertion',_0x209469=this['_setSuggestionData']({'id':_0x3464eb,'type':_0xd90f49,'createdAt':new Date(),'authorId':_0x50ef3e,'attributes':_0x5270c4});return this['_addSuggestionMarker'](_0xd90f49,_0x3464eb,_0x50ef3e,_0x15e416),_0x209469;}['markMultiRangeInsertion'](_0x7d20ed,_0x29ba7f='multi',_0x586461={}){const _0x41cbd8=this['editor']['plugins']['get']('Users')['me'],_0x463e9b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x29ba7f,'join');for(const _0x49c602 of this['getSuggestions']())if(_0x49c602['author']['id']==_0x41cbd8['id']&&'insertion'==_0x49c602['type']&&_0x49c602['subType']==_0x29ba7f&&Lt(_0x49c602,_0x586461)&&(_0x463e9b(_0x49c602['getRanges'](),_0x7d20ed)||_0x463e9b(_0x7d20ed,_0x49c602['getRanges']()))){for(const _0x4bdc93 of _0x7d20ed)_0x49c602['addRange'](_0x4bdc93);return _0x49c602;}for(const {suggestion:_0x4bd486,meta:_0x2b4088}of this['_findSuggestions'](_0x7d20ed,'insertion')){if(!_0x2b4088['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2b4088['containsRangeInObject'])continue;if(!Lt(_0x4bd486,_0x586461))continue;let _0x308737=!0x0;for(const _0x1da37d of _0x4bd486['getRanges']())for(const _0x30942c of _0x7d20ed)if(!_0x1da37d['containsRange'](_0x30942c)){_0x308737=!0x1;break;}if(_0x308737)return _0x4bd486;}const _0x4613a5=_0x109dee(),_0x53253c=_0x41cbd8['id'],_0x5054f7='insertion:'+_0x29ba7f,_0x418b56=this['_setSuggestionData']({'id':_0x4613a5,'type':_0x5054f7,'createdAt':new Date(),'authorId':_0x53253c,'attributes':_0x586461});for(const _0xc9889a of _0x7d20ed)this['_addSuggestionMarker'](_0x5054f7,_0x4613a5,_0x53253c,_0xc9889a,u['getMultiRangeId']());return _0x418b56;}['markInlineFormat'](_0x16eeb2,_0x2b6188,_0x23e7c5=null,_0x14af6b={}){if(_0x23e7c5=_0x23e7c5||Vt(_0x2b6188),_0x16eeb2['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x19973a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x23e7c5,'accept');return this['forceDefaultExecution'](()=>_0x19973a([_0x16eeb2],_0x2b6188,_0x14af6b)),null;}const _0x266f9c=this['editor']['plugins']['get']('Users')['me'],_0x6a531d=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x28e678,meta:_0x12cb72}of this['_findSuggestions'](_0x16eeb2,'insertion'))_0x12cb72['isOwn']&&!_0x12cb72['isInsideObject']&&_0x6a531d['push'](..._0x28e678['getRanges']());}const _0x51f084=function(_0x1b2d2d,_0x109775){const _0x333cba=[];for(const _0x164990 of _0x109775){const _0x238d6a=_0x1b2d2d['getIntersection'](_0x164990);_0x238d6a&&_0x333cba['push'](_0x238d6a);}return _0x333cba;}(_0x16eeb2,_0x6a531d),_0x219885=function(_0x344014,_0x5f26b1){const _0x28e303=[_0x344014];for(const _0x5653c0 of _0x5f26b1){let _0x910ba3=0x0;for(;_0x910ba3<_0x28e303['length'];){const _0x514d59=_0x28e303[_0x910ba3]['getDifference'](_0x5653c0);_0x28e303['splice'](_0x910ba3,0x1,..._0x514d59),_0x910ba3+=_0x514d59['length'];}}return _0x28e303;}(_0x16eeb2,_0x6a531d);_0x51f084['length']&&this['_model']['change'](()=>{for(const _0x402d1b of _0x51f084){const _0x3c8e26=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x23e7c5,'accept');this['forceDefaultExecution'](()=>_0x3c8e26([_0x402d1b],_0x2b6188,_0x14af6b));}});for(const _0x3bb223 of _0x219885){let _0xa6ad7=null,_0x2eefd2=_0x3bb223['start'],_0x17fe1f=_0x3bb223['end'];for(const {suggestion:_0x4c72e5,meta:_0x2ca15b}of this['_findSuggestions'](_0x3bb223,'formatInline')){if(!_0x2ca15b['isOwn'])continue;if(_0x4c72e5['subType']!=_0x23e7c5)continue;if(!Lt(_0x4c72e5,_0x14af6b))continue;const _0x387c31=_0x4c72e5['getFirstRange']();if(_0x387c31['containsRange'](_0x3bb223,!0x0))return null;_0x2eefd2=_0x2eefd2['isBefore'](_0x387c31['start'])?_0x2eefd2:_0x387c31['start'],_0x17fe1f=_0x17fe1f['isAfter'](_0x387c31['end'])?_0x17fe1f:_0x387c31['end'],_0xa6ad7?_0x387c31['start']['isBefore'](_0xa6ad7['getFirstRange']()['start'])?(_0xa6ad7['removeMarkers'](),_0xa6ad7=_0x4c72e5):_0x4c72e5['removeMarkers']():_0xa6ad7=_0x4c72e5;}const _0xf28f52=this['_model']['createRange'](_0x2eefd2,_0x17fe1f);if(_0xa6ad7)this['_setSuggestionRange'](_0xa6ad7,_0xf28f52);else{const _0x85d760=_0x109dee(),_0x5cb9d3=_0x266f9c['id'];this['_setSuggestionData']({'id':_0x85d760,'type':'formatInline:'+_0x23e7c5,'data':_0x2b6188,'createdAt':new Date(),'authorId':_0x5cb9d3,'attributes':_0x14af6b}),this['_addSuggestionMarker']('formatInline:'+_0x23e7c5,_0x85d760,_0x5cb9d3,_0xf28f52);}}return null;}['markBlockFormat'](_0x1184a2,_0x5c654c,_0x397cb4=[],_0x98a395=null,_0x1ea0ab={}){_0x5c654c['formatGroupId']||(_0x5c654c['formatGroupId']=_0x5c654c['commandName']),_0x5c654c['multipleBlocks']=_0x1184a2['is']('range'),_0x98a395=_0x98a395||Vt(_0x5c654c);const _0x4c6026=_0x397cb4['map'](_0x44246c=>Ft(_0x44246c,this['_model'])),_0x99f88d=_0x1184a2['is']('range')?_0x1184a2:Ft(_0x1184a2,this['_model']);if('never'===this['_trackFormatChanges']){const _0x13e179=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x98a395,'accept');return this['forceDefaultExecution'](()=>_0x13e179([_0x99f88d],_0x5c654c,_0x1ea0ab)),null;}_0x4c6026['push'](_0x99f88d);let _0x546444=!0x0;for(const _0x417c04 of _0x4c6026)if(!this['_rangeIsInLocalUserInsertion'](_0x417c04)){_0x546444=!0x1;break;}if(_0x546444&&'always'!==this['_trackFormatChanges']){const _0xd32660=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x98a395,'accept');return this['forceDefaultExecution'](()=>_0xd32660([_0x99f88d],_0x5c654c,_0x1ea0ab)),null;}let _0x46a65a=null,_0x1e3123=_0x99f88d['start'],_0x59304e=_0x99f88d['end'];for(const {suggestion:_0x189a26,meta:_0x275d80}of this['_findSuggestions'](_0x99f88d,'formatBlock')){if(!_0x275d80['isOwn'])continue;if(_0x275d80['isNextTo']||_0x275d80['containsRangeInObject']||_0x275d80['isInsideObject'])continue;if(_0x189a26['data']['formatGroupId']!=_0x5c654c['formatGroupId'])continue;if(!Lt(_0x189a26,_0x1ea0ab))continue;const _0x91d61b=_0x189a26['getFirstRange']();if(_0x189a26['subType']==_0x98a395){if(_0x91d61b['containsRange'](_0x99f88d,!0x0))return null;_0x1e3123=_0x1e3123['isBefore'](_0x91d61b['start'])?_0x1e3123:_0x91d61b['start'],_0x59304e=_0x59304e['isAfter'](_0x91d61b['end'])?_0x59304e:_0x91d61b['end'],_0x46a65a?_0x91d61b['start']['isBefore'](_0x46a65a['getFirstRange']()['start'])?(_0x46a65a['removeMarkers'](),_0x46a65a=_0x189a26):_0x189a26['removeMarkers']():_0x46a65a=_0x189a26;}else{const _0x3ac70c=_0x99f88d['getIntersection'](_0x91d61b);this['_cutOutSuggestionMarker'](_0x189a26,_0x3ac70c);}}const _0x10af5d=this['editor']['plugins']['get']('Users')['me'],_0x177d5e=_0x109dee(),_0x4035b6=_0x10af5d['id'];if(_0x46a65a)return this['_setSuggestionRange'](_0x46a65a,this['_model']['createRange'](_0x1e3123,_0x59304e)),_0x46a65a;{const _0x81db1f=this['_setSuggestionData']({'id':_0x177d5e,'type':'formatBlock:'+_0x98a395,'data':_0x5c654c,'createdAt':new Date(),'authorId':_0x4035b6,'attributes':_0x1ea0ab});return this['_addSuggestionMarker']('formatBlock:'+_0x98a395,_0x177d5e,_0x4035b6,this['_model']['createRange'](_0x1e3123,_0x59304e)),_0x81db1f;}}['markMultiRangeBlockFormat'](_0xe3a10d,_0x3e4c3c,_0x2e1fef=[],_0x59a7d6=null,_0x555cb0={}){_0x3e4c3c['formatGroupId']||(_0x3e4c3c['formatGroupId']=_0x3e4c3c['commandName']);const _0x42c7aa=_0xe3a10d[0x0];_0x3e4c3c['multipleBlocks']=_0x42c7aa['is']('range'),_0x59a7d6=_0x59a7d6||Vt(_0x3e4c3c);const _0x273c93=_0x2e1fef['map'](_0x3b131b=>Ft(_0x3b131b,this['_model'])),_0x2cd7cb=_0x42c7aa['is']('range')?_0xe3a10d:_0xe3a10d['map'](_0x50a86f=>Ft(_0x50a86f,this['_model']));if('never'===this['_trackFormatChanges']){const _0x22fdae=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x59a7d6,'accept');return this['forceDefaultExecution'](()=>_0x22fdae(_0x2cd7cb,_0x3e4c3c,_0x555cb0)),null;}_0x273c93['push'](..._0x2cd7cb);let _0x4ed527=!0x0;for(const _0x46c47e of _0x273c93)if(!this['_rangeIsInLocalUserInsertion'](_0x46c47e)){_0x4ed527=!0x1;break;}if(_0x4ed527&&'always'!==this['_trackFormatChanges']){const _0x177347=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x59a7d6,'accept');return this['forceDefaultExecution'](()=>_0x177347(_0x2cd7cb,_0x3e4c3c,_0x555cb0)),null;}const _0x1808c1=this['editor']['plugins']['get']('Users')['me'];for(const _0x101b36 of this['getSuggestions']()){if(_0x101b36['author']['id']!=_0x1808c1['id'])continue;if('formatBlock'!=_0x101b36['type']||_0x101b36['data']['formatGroupId']!=_0x3e4c3c['formatGroupId'])continue;if(!Lt(_0x101b36,_0x555cb0))continue;const _0x255cd0=_0x101b36['subType']==_0x59a7d6;for(let _0x5354dd=0x0;_0x5354dd<_0x2cd7cb['length'];_0x5354dd++){const _0x16c399=_0x2cd7cb[_0x5354dd];for(const _0x216eee of _0x101b36['getMarkers']()){const _0x5d11d0=_0x216eee['getRange']();if(_0x16c399['isEqual'](_0x5d11d0)){_0x255cd0?(_0x2cd7cb['splice'](_0x5354dd,0x1),_0x5354dd--):_0x101b36['removeMarker'](_0x216eee['name']);break;}}}}if(0x0==_0x2cd7cb['length'])return null;const _0x5dac46=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x59a7d6,'join');for(const _0x3f2a77 of this['getSuggestions']())if(_0x3f2a77['author']['id']==_0x1808c1['id']&&'formatBlock'==_0x3f2a77['type']&&_0x3f2a77['data']['formatGroupId']==_0x3e4c3c['formatGroupId']&&_0x3f2a77['subType']==_0x59a7d6&&Lt(_0x3f2a77,_0x555cb0)&&(_0x5dac46(_0x3f2a77['getRanges'](),_0x2cd7cb)||_0x5dac46(_0x2cd7cb,_0x3f2a77['getRanges']()))){for(const _0xd4acaa of _0x2cd7cb)_0x3f2a77['addRange'](_0xd4acaa);return _0x3f2a77;}const _0x118f39=_0x109dee(),_0x11d0e1=_0x1808c1['id'],_0x20b828='formatBlock:'+_0x59a7d6,_0x3c0b77=this['_setSuggestionData']({'id':_0x118f39,'type':_0x20b828,'data':_0x3e4c3c,'createdAt':new Date(),'authorId':_0x11d0e1,'attributes':_0x555cb0});for(const _0x3ca5ba of _0x2cd7cb)this['_addSuggestionMarker'](_0x20b828,_0x118f39,_0x11d0e1,_0x3ca5ba,u['getMultiRangeId']());return _0x3c0b77;}['markDeletion'](_0x318f45,_0x28f7d8=null,_0x4d72f1={}){if(_0x318f45['isCollapsed'])return null;const _0x5a9378=this['editor']['plugins']['get']('Users')['me'],_0x485527=new _0x43239f(_0x318f45['start'],_0x318f45['end']);for(const {suggestion:_0x10758a,meta:_0x93903}of this['_findSuggestions'](_0x485527,'insertion'))if(_0x93903['isOwn']&&!_0x93903['isNextTo']){if(_0x10758a['isMultiRange']){const _0x2c5145=_0x10758a['getRanges']()['filter'](_0x98425e=>'$graveyard'!=_0x98425e['root']['rootName']);_0x2c5145['every'](_0x5d9d44=>_0x485527['containsRange'](_0x5d9d44,!0x0))&&_0x10758a['discard']();if(_0x2c5145['some'](_0x2515bf=>_0x2515bf['containsRange'](_0x485527,!0x0))){const _0x22431b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x28f7d8,'accept');return this['forceDefaultExecution'](()=>_0x22431b([_0x485527],null,_0x4d72f1)),null;}}else{const _0x195beb=_0x485527['getIntersection'](_0x10758a['getFirstRange']());null!==_0x195beb&&_0x10758a['_onDiscard']([_0x195beb],null,_0x4d72f1);}}if(_0x485527['detach'](),_0x485527['isCollapsed']||'$graveyard'==_0x485527['root']['rootName'])return null;let _0x23657c=null,_0x238d34=_0x485527['start'],_0x3b97ef=_0x485527['end'];const _0x1d4ece=this['_findSuggestions'](_0x485527,'deletion');for(const {suggestion:_0x5b1b03,meta:_0x595b90}of _0x1d4ece){const _0x5d1a31=this['_model']['createRange'](_0x238d34,_0x3b97ef);if(_0x595b90['isOwn']&&(this['_mergeNestedSuggestions']||!_0x595b90['containsRangeInObject']&&!_0x595b90['isInsideObject'])){if(_0x5b1b03['isMultiRange']){if(!Lt(_0x5b1b03,_0x4d72f1))continue;let _0x2b95f0=!0x0;for(const _0xbcaaf5 of _0x5b1b03['getRanges']()){if(_0xbcaaf5['containsRange'](_0x5d1a31,!0x0))return _0x5b1b03;_0x5d1a31['containsRange'](_0xbcaaf5)||(_0x2b95f0=!0x1);}_0x2b95f0&&_0x5b1b03['discard']();}else{const _0x5ae928=_0x5b1b03['getFirstRange']();if(_0x5ae928['containsRange'](_0x5d1a31,!0x0))return _0x5b1b03;if(!Lt(_0x5b1b03,_0x4d72f1)){_0x5d1a31['containsRange'](_0x5ae928)?_0x5b1b03['removeMarkers']():_0x5ae928['containsPosition'](_0x238d34)?_0x238d34=_0x5ae928['end']:_0x5ae928['containsPosition'](_0x3b97ef)&&(_0x3b97ef=_0x5ae928['start']);continue;}_0x238d34=_0x238d34['isBefore'](_0x5ae928['start'])?_0x238d34:_0x5ae928['start'],_0x3b97ef=_0x3b97ef['isAfter'](_0x5ae928['end'])?_0x3b97ef:_0x5ae928['end'],_0x4d72f1=Object['assign']({},_0x5b1b03['attributes']),_0x23657c?_0x5ae928['start']['isBefore'](_0x23657c['getFirstRange']()['start'])?(_0x23657c['removeMarkers'](),_0x23657c=_0x5b1b03):_0x5b1b03['removeMarkers']():_0x23657c=_0x5b1b03;}}}if(_0x23657c)return this['_setSuggestionRange'](_0x23657c,this['_model']['createRange'](_0x238d34,_0x3b97ef)),_0x23657c;{const _0xbda848=_0x109dee(),_0x425b25=this['_model']['createRange'](_0x238d34,_0x3b97ef),_0x3fcd4d=_0x5a9378['id'],_0x491cfd=_0x28f7d8?'deletion:'+_0x28f7d8:'deletion',_0x5e8e3b=this['_setSuggestionData']({'id':_0xbda848,'type':_0x491cfd,'createdAt':new Date(),'authorId':_0x3fcd4d,'attributes':_0x4d72f1});return this['_addSuggestionMarker'](_0x491cfd,_0xbda848,_0x3fcd4d,_0x425b25),_0x5e8e3b;}}['markMultiRangeDeletion'](_0x5e0f50,_0x1dce41='multi',_0x243df2={}){const _0x42d831=this['editor']['plugins']['get']('Users')['me'],_0x37191d=_0x5e0f50['map'](_0x322abe=>new _0x43239f(_0x322abe['start'],_0x322abe['end'])),_0x119e88=new Set();for(const {suggestion:_0x1f10ba,meta:_0x470697}of this['_findSuggestions'](_0x37191d,'insertion'))_0x470697['isOwn']&&!_0x470697['isNextTo']&&_0x119e88['add'](_0x1f10ba);for(const _0x5ae1d6 of _0x119e88)if(_0x5ae1d6['isMultiRange']){const _0x3283a8=_0x5ae1d6['getRanges']();(!_0x5ae1d6['attributes']||!_0x5ae1d6['attributes']['skipNestingCheck'])&&(_0x3283a8['every'](_0x55e699=>_0x37191d['some'](_0x3379c3=>_0x3379c3['containsRange'](_0x55e699,!0x0)))&&_0x5ae1d6['discard']());if(_0x37191d['every'](_0xe4bdcb=>_0x3283a8['some'](_0x539304=>_0x539304['containsRange'](_0xe4bdcb,!0x0)))){const _0x223a5e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1dce41,'accept');return this['forceDefaultExecution'](()=>_0x223a5e(_0x5e0f50,null,_0x243df2)),null;}}else{const _0x5615cc=_0x5ae1d6['getFirstRange']();_0x37191d['some'](_0x59c56a=>_0x59c56a['containsRange'](_0x5615cc,!0x0))&&_0x5ae1d6['discard']();if(_0x37191d['every'](_0x24785a=>_0x5615cc['containsRange'](_0x24785a,!0x0))){const _0xe1c0c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1dce41,'accept');return this['forceDefaultExecution'](()=>_0xe1c0c(_0x37191d,null,_0x243df2)),null;}}const _0x5cac7a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1dce41,'join');let _0x21f7d3=null;for(const _0x41898e of this['getSuggestions']())if(_0x41898e['author']['id']==_0x42d831['id']&&_0x41898e['isInContent']&&'deletion'==_0x41898e['type']&&_0x41898e['subType']==_0x1dce41&&Lt(_0x41898e,_0x243df2)&&(_0x5cac7a(_0x41898e['getRanges'](),_0x37191d)||_0x5cac7a(_0x37191d,_0x41898e['getRanges']()))){if(_0x21f7d3){if(_0x41898e['commentThread']&&_0x41898e['commentThread']['length'])continue;for(const _0xc174bc of _0x41898e['getRanges']())_0x21f7d3['isIntersectingWithRange'](_0xc174bc)||_0x21f7d3['addRange'](_0xc174bc);_0x41898e['removeMarkers']();}else{_0x21f7d3=_0x41898e;for(const _0x20af81 of _0x37191d)_0x41898e['isIntersectingWithRange'](_0x20af81)||_0x41898e['addRange'](_0x20af81);}}if(_0x21f7d3)return _0x21f7d3;_0x119e88['clear']();for(const {suggestion:_0x4fbab1,meta:_0x3f3fd1}of this['_findSuggestions'](_0x37191d,'deletion'))_0x3f3fd1['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3f3fd1['containsRangeInObject']&&!_0x3f3fd1['isInsideObject'])&&Lt(_0x4fbab1,_0x243df2)&&_0x119e88['add'](_0x4fbab1);for(const _0x3d3f89 of _0x119e88){const _0x2a9be6=_0x3d3f89['getRanges']();if(!_0x243df2||!_0x243df2['skipNestingCheck']){if(_0x37191d['every'](_0x3ff8d3=>_0x2a9be6['some'](_0x176165=>_0x176165['containsRange'](_0x3ff8d3,!0x0))))return _0x3d3f89;}(!_0x3d3f89['attributes']||!_0x3d3f89['attributes']['skipNestingCheck'])&&(_0x2a9be6['every'](_0x4218d6=>_0x37191d['some'](_0x2a70ce=>_0x2a70ce['containsRange'](_0x4218d6,!0x0)))&&_0x3d3f89['discard']());}const _0x291553=_0x109dee(),_0x18db44=_0x42d831['id'],_0x39fbdb='deletion:'+_0x1dce41,_0xaf4c0d=this['_setSuggestionData']({'id':_0x291553,'type':_0x39fbdb,'createdAt':new Date(),'authorId':_0x18db44,'attributes':_0x243df2});for(const _0x523ff6 of _0x37191d)_0x523ff6['detach'](),_0x523ff6['isCollapsed']||'$graveyard'==_0x523ff6['root']['rootName']||this['_addSuggestionMarker'](_0x39fbdb,_0x291553,_0x18db44,_0x523ff6,u['getMultiRangeId']());return _0xaf4c0d;}['markAttributeChange'](_0x1ae96e,_0xd99046,_0x15ec7b,_0x53e8d6,_0x4f0556){if(_0x1ae96e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x586ff4=this['editor']['plugins']['get']('Users')['me']['id'],_0x415f10=Array['from'](this['_suggestions']['values']())['filter'](_0x422f58=>'attribute'==_0x422f58['type']&&_0x422f58['data']['key']==_0xd99046&&_0x422f58['isIntersectingWithRange'](_0x1ae96e));if('default'===this['_trackFormatChanges']){const _0x274d4c=this['_findSuggestions'](_0x1ae96e,'insertion')['filter'](({meta:_0x3051f2})=>_0x3051f2['isOwn']&&!_0x3051f2['isInsideObject']&&!_0x3051f2['isNextTo'])['map'](({suggestion:_0x127322})=>_0x127322);_0x415f10['unshift'](..._0x274d4c);}const _0x28ce27=new Map([[_0x1ae96e,_0x15ec7b]]);for(const _0x5e7bd8 of _0x415f10){const _0x3688f4='attribute'==_0x5e7bd8['type']?_0x5e7bd8['data']['oldValue']:void 0x0,_0x26ad0b=_0x5e7bd8['getFirstRange'](),_0xd20517=Array['from'](_0x28ce27['keys']())['find'](_0x4fbff5=>_0x4fbff5['isIntersecting'](_0x26ad0b));if(!_0xd20517)continue;const _0x7db6f2=_0xd20517['getDifference'](_0x26ad0b);this['_isBlockAttribute'](_0xd99046)&&'insertion'==_0x5e7bd8['type']&&0x0!=_0x7db6f2['length']||(_0x28ce27['delete'](_0xd20517),_0x7db6f2['forEach'](_0x3f53d6=>{_0x28ce27['set'](_0x3f53d6,_0x15ec7b);}),'insertion'!=_0x5e7bd8['type']&&_0x3688f4!=_0x53e8d6&&_0x28ce27['set'](_0xd20517['getIntersection'](_0x26ad0b),_0x3688f4));}const _0x47228b=[];for(const [_0x151b6e,_0x2ae158]of _0x28ce27){const _0x1c5ed0=_0x109dee(),_0x10b3fa={'key':_0xd99046,'oldValue':_0x2ae158,'newValue':_0x53e8d6};_0xd99046['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':_0xd99046});const _0x47c7b5=('attribute:'+(_0xd99046+'|'+Vt({'newValue':_0x53e8d6})))['substring'](0x0,0x3c),_0x53893f=this['_setSuggestionData']({'id':_0x1c5ed0,'type':_0x47c7b5,'data':_0x10b3fa,'createdAt':new Date(),'authorId':_0x586ff4,'attributes':_0x4f0556});_0x47228b['push'](_0x53893f),this['_addSuggestionMarker'](_0x47c7b5,_0x1c5ed0,_0x586ff4,_0x151b6e);}return _0x47228b;}['enableDefaultAttributesIntegration'](_0x11cf23){this['enableCommand'](_0x11cf23,(_0x52ef2c,..._0x2d0847)=>{this['_recordAttributeChanges'](()=>{_0x52ef2c(..._0x2d0847);});});}['registerBlockAttribute'](_0x49c61f){this['_blockAttributeKeys']['add'](_0x49c61f);}['registerInlineAttribute'](_0x49f135){this['_inlineAttributeKeys']['add'](_0x49f135);}['_getAttributeKey'](_0x1df3f9){return'attribute'==_0x1df3f9['type']?_0x1df3f9['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x195756,_0x5975a5){const _0x2f18d1=_0x195756['getFirstMarker']();this['_model']['change'](_0x104c18=>{_0x104c18['updateMarker'](_0x2f18d1,{'range':_0x5975a5});});}['_addThreadToSuggestion'](_0x196076){const _0x2d52ee=_0x196076['id'],_0x57812f=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2d52ee)||this['_commentsRepository']['addCommentThread']({'channelId':_0x57812f,'threadId':_0x2d52ee,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x55a3b4=this['_commentsRepository']['getCommentThread'](_0x2d52ee);_0x55a3b4['unbind']('isRemovable'),_0x55a3b4['isRemovable']=!0x1,_0x196076['commentThread']=_0x55a3b4;}['_checkSuggestionCorrectness'](_0xc0f698,_0x109fe0,_0x2e87dc,_0x375fc1){if(_0xc0f698['type']!=_0x109fe0||_0xc0f698['subType']!=_0x2e87dc||_0xc0f698['creator']['id']!=_0x375fc1)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x46c804('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x27f13e,_0x125f28){const _0x19524d=_0x27f13e['getFirstRange']();if(_0x125f28['isEqual'](_0x19524d))_0x27f13e['removeMarkers']();else{if(_0x19524d['containsRange'](_0x125f28)){const _0x493de5=this['_model']['createPositionAt'](_0x125f28['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x27f13e,this['_model']['createRange'](_0x19524d['start'],_0x493de5));const _0x578420=_0x109dee(),_0x50f70b=_0x27f13e['creator']['id'],_0x5ae473=_0x27f13e['type']+':'+_0x27f13e['subType'];this['_setSuggestionData']({'id':_0x578420,'type':_0x5ae473,'createdAt':new Date(),'authorId':_0x50f70b,'data':_0x27f13e['data'],'attributes':_0x27f13e['attributes']});const _0x39a574=this['_model']['createPositionAt'](_0x125f28['end']['parent'],'after'),_0x2a84ec=this['_model']['createRange'](_0x39a574,_0x19524d['end']);this['_addSuggestionMarker'](_0x5ae473,_0x578420,_0x50f70b,_0x2a84ec);}else{if(_0x19524d['containsPosition'](_0x125f28['start'])){const _0x5475df=this['_model']['createPositionAt'](_0x125f28['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x27f13e,this['_model']['createRange'](_0x19524d['start'],_0x5475df));}else{const _0x46e17c=this['_model']['createPositionAt'](_0x125f28['end']['parent'],'after');this['_setSuggestionRange'](_0x27f13e,this['_model']['createRange'](_0x46e17c,_0x19524d['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4c2a1a){for(const {suggestion:_0x4a13f3,meta:_0x27da3f}of this['_findSuggestions'](_0x4c2a1a,'insertion')){if(!_0x27da3f['isOwn'])continue;const _0x1932f8=_0x4a13f3['getRanges']();for(const _0x8c5739 of _0x1932f8)if(!_0x4c2a1a['getDifference'](_0x8c5739)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4f322d){const _0x16d854=this['editor']['plugins']['get']('Users')['getUser'](_0x4f322d);if(!_0x16d854)throw new _0x46c804('track-changes-user-not-found',this);return _0x16d854;}['_getExternalAuthor'](_0xbe7868){const _0x24f077=this['editor']['plugins']['get']('Users'),_0x595751=_0x37c233('external:'+_0xbe7868),_0x3548d2=_0x24f077['getUser'](_0x595751);return _0x3548d2||_0x24f077['addUser']({'id':_0x595751,'name':_0xbe7868});}['_createSuggestion'](_0x54c6c2,_0x5a626e,_0x4dd649,_0x5639cf,_0x57bc17){const _0x54a900=this['_getAuthorFromId'](_0x5639cf),_0xed9c4e=this['_suggestionFactory']['buildSuggestion'](_0x54c6c2,_0x5a626e,_0x4dd649,_0x54a900,_0x57bc17,_0x46e1d8=>{this['_updateSuggestionData'](_0x4dd649,{'attributes':_0x46e1d8});const _0xbc8049=this['getSuggestion'](_0x4dd649);this['_joinWithAdjacentSuggestions'](new Set([_0xbc8049])),this['_refreshSuggestionsChain'](new Set([_0xbc8049]));});return this['listenTo'](_0xed9c4e,'accept',()=>{this['_updateSuggestionData'](_0x4dd649,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xed9c4e,'discard',()=>{this['_updateSuggestionData'](_0x4dd649,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4dd649,_0xed9c4e),this['_suggestionState']['set'](_0xed9c4e,'notReady'),_0xed9c4e;}['_splitMarkerName'](_0x4c29a8){const _0x212881=_0x4c29a8['split'](':');return{'group':_0x212881[0x0],'type':_0x212881[0x1],'subType':_0x212881['length']>=0x5?_0x212881[0x2]:null,'id':_0x212881['length']<0x5?_0x212881[0x2]:_0x212881[0x3],'authorId':_0x212881['length']<0x5?_0x212881[0x3]:_0x212881[0x4],'markerCount':0x6==_0x212881['length']?_0x212881[0x5]:null};}['_breakSuggestionMarker'](_0x79fc85,_0x24f167,_0x48bbc8){const _0x1d50b4=_0x79fc85['getFirstRange'](),_0x1df98c=_0x1d50b4['start'],_0x300bac=_0x1d50b4['end'];this['_setSuggestionRange'](_0x79fc85,this['_model']['createRange'](_0x1df98c,_0x24f167));const _0x3f5b80=_0x109dee(),_0x533c3c=_0x79fc85['creator']['id'],_0x4b8e16=_0x79fc85['type']+(_0x79fc85['subType']?':'+_0x79fc85['subType']:'');this['_setSuggestionData']({'id':_0x3f5b80,'type':_0x4b8e16,'createdAt':new Date(),'authorId':_0x533c3c,'originalSuggestionId':_0x79fc85['id'],'attributes':_0x79fc85['attributes'],'data':_0x79fc85['data']});const _0x2a8fa1=this['_getAttributeKey'](_0x79fc85);('formatBlock'==_0x79fc85['type']||_0x2a8fa1&&this['_isBlockAttribute'](_0x2a8fa1))&&(_0x48bbc8=this['_model']['createPositionBefore'](_0x48bbc8['parent'])),this['_addSuggestionMarker'](_0x4b8e16,_0x3f5b80,_0x533c3c,this['_model']['createRange'](_0x48bbc8,_0x300bac));}['_findSuggestions'](_0x408937,_0x71d9e9=null){const _0x337298=[],_0x4656b2=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x408937)||(_0x408937=[_0x408937]);for(const _0x5dd594 of this['getSuggestions']()){if(!_0x5dd594['isInContent'])continue;if(_0x71d9e9&&_0x5dd594['type']!=_0x71d9e9)continue;let _0x760c3e=!0x1;for(const _0x2ae82f of _0x5dd594['getRanges']()){for(const _0x32ca18 of _0x408937){const _0x1de1a6=_0x32ca18['start']['isEqual'](_0x2ae82f['end'])||_0x32ca18['end']['isEqual'](_0x2ae82f['start']);if(_0x1de1a6||_0x32ca18['getIntersection'](_0x2ae82f)){const _0x17abde=_0x32ca18['containsRange'](_0x2ae82f)&&Rt(this['_model']['schema'],_0x2ae82f['start'],_0x32ca18),_0x502768=_0x2ae82f['containsRange'](_0x32ca18)&&Rt(this['_model']['schema'],_0x32ca18['start'],_0x2ae82f);_0x337298['push']({'suggestion':_0x5dd594,'meta':{'isOwn':_0x4656b2==_0x5dd594['author'],'isNextTo':_0x1de1a6,'isInsideObject':_0x17abde,'containsRangeInObject':_0x502768}}),_0x760c3e=!0x0;break;}}if(_0x760c3e)break;}}return _0x337298;}['_addSuggestionMarker'](_0x37178a,_0x35c2dd,_0x3e2c72,_0x33257a,_0xa4a35){this['_model']['change'](_0x3f23ee=>{let _0x43a344='suggestion:'+_0x37178a+':'+_0x35c2dd+':'+_0x3e2c72;_0xa4a35&&(_0x43a344=_0x43a344+':'+_0xa4a35),_0x3f23ee['addMarker'](_0x43a344,{'range':_0x33257a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5c0572){const _0x545e4c=_0x5c0572['previous'],_0x4a4c8b=_0x5c0572['next'];_0x5c0572['previous']=null,_0x5c0572['next']=null,null!=_0x545e4c&&_0x545e4c['next']==_0x5c0572&&(_0x545e4c['next']=_0x4a4c8b),null!=_0x4a4c8b&&_0x4a4c8b['previous']==_0x5c0572&&(_0x4a4c8b['previous']=_0x545e4c),'ready'==this['_suggestionState']['get'](_0x5c0572)&&(this['_suggestionState']['set'](_0x5c0572,'removed'),this['fire']('suggestionUnloaded',_0x5c0572,_0x545e4c,_0x4a4c8b));}['_setSuggestionData'](_0x59ed65){const _0x55bfb2=_0x59ed65['id'],_0x69f496=this['addSuggestionData'](_0x59ed65);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x259139=this['editor']['plugins']['get']('PendingActions'),_0x496a11=_0x69f496['hasComments'],_0x31fb10=_0x69f496['subType']?_0x69f496['type']+':'+_0x69f496['subType']:_0x69f496['type'],_0xa9f1a8=this['editor']['locale'],_0x5726f2=_0x259139['add'](o(_0xa9f1a8,'PENDING_ACTION_SUGGESTION')),_0x350124={'id':_0x55bfb2,'type':_0x31fb10,'hasComments':_0x496a11,'data':_0x59ed65['data']||null,'originalSuggestionId':_0x59ed65['originalSuggestionId']||null,'attributes':_0x69f496['attributes']};this['_adapter']['addSuggestion'](_0x350124)['then'](_0x186aa4=>{_0x69f496['_saved']=!0x0,_0x259139['remove'](_0x5726f2),_0x186aa4&&_0x186aa4['createdAt']&&(this['_suggestions']['get'](_0x55bfb2)['createdAt']=_0x186aa4['createdAt']);})['catch'](_0x194403=>{throw _0x27ca85('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x69f496['discard']();}),_0x69f496['stopListening'](),this['_suggestions']['delete'](_0x69f496['id']),this['_suggestionState']['delete'](_0x69f496),_0x194403;});}return _0x69f496;}['_isBlockAttribute'](_0x250707){return this['_blockAttributeKeys']['has'](_0x250707);}['_updateSuggestionData'](_0x2702e7,_0x3b8867){const _0x3b1031=this['editor']['plugins']['get']('PendingActions'),_0x48e90b=this['getSuggestion'](_0x2702e7);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x48e90b['_saved']){const _0x17aeb6=_0x3b1031['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2702e7,_0x3b8867)['then'](()=>{_0x3b1031['remove'](_0x17aeb6);});}else _0x48e90b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2702e7,_0x3b8867);});}}['_getSuggestionData'](_0x5d5111){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x46c804('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5d5111);}['_handleNewSuggestionMarker'](_0x435a4d){const {id:_0x4fdbaa,type:_0x595f59,subType:_0xd95109,authorId:_0x509f41}=this['_splitMarkerName'](_0x435a4d),_0x563b75=this['_suggestions']['get'](_0x4fdbaa)||this['_createSuggestion'](_0x595f59,_0xd95109,_0x4fdbaa,_0x509f41,{});switch(this['_checkSuggestionCorrectness'](_0x563b75,_0x595f59,_0xd95109,_0x509f41),this['_suggestionState']['get'](_0x563b75)){case'notReady':this['_getSuggestionData'](_0x4fdbaa)['then'](_0xaae0ac=>{let _0x5210dc=Promise['resolve']();_0xaae0ac['hasComments']&&(_0x5210dc=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4fdbaa})),_0x5210dc['then'](()=>{this['addSuggestionData'](_0xaae0ac)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x563b75,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4fdbaa,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x563b75,'ready'),this['fire']('suggestionLoaded',_0x563b75);break;case'ready':this['fire']('suggestionChanged',_0x563b75);}return _0x563b75['addMarkerName'](_0x435a4d),_0x563b75;}['_refreshSuggestionsChain'](_0x9b6efe){const _0x4167f2=Array['from'](_0x9b6efe),_0x148df7=_0x4167f2['filter'](_0x5e50c8=>'attribute'==_0x5e50c8['type']);this['_refreshAttributeSuggestionsChain'](_0x148df7);const _0x62338b=_0x4167f2['filter'](_0x2f56bf=>!_0x2f56bf['isMultiRange']&&'attribute'!=_0x2f56bf['type']),_0x4ce596=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x53b6a5=>!_0x53b6a5['isMultiRange']&&'attribute'!=_0x53b6a5['type']),_0x139f2f=_0x4ce596['filter'](_0x3a3b6a=>!_0x9b6efe['has'](_0x3a3b6a)),_0x588689=new Map(_0x4ce596['map'](_0x211d8f=>[_0x211d8f,this['_suggestionFactory']['getSuggestionCallback'](_0x211d8f['type'],_0x211d8f['subType'],'chain')])),_0xeb8367=new Map(_0x4ce596['map'](_0x87be14=>[_0x87be14,_0x87be14['getFirstRange']()])),_0x5adc66=new Set(),_0x4b2e71=new Set();for(let _0x39216c=0x0;_0x39216c<_0x62338b['length'];_0x39216c++)_0x27b92e(_0x62338b[_0x39216c],_0x62338b,_0x39216c+0x1);for(let _0x43f7c9=0x0;_0x43f7c9<_0x62338b['length'];_0x43f7c9++)_0x27b92e(_0x62338b[_0x43f7c9],_0x139f2f,0x0);const _0x19bce2=new Set();for(let _0x202aa6=0x0;_0x202aa6<_0x62338b['length'];_0x202aa6++){const _0x3ae37=_0x62338b[_0x202aa6];!_0x4b2e71['has'](_0x3ae37)&&_0x3ae37['previous']&&(_0x19bce2['add'](_0x3ae37['previous']),_0x3ae37['previous']['next']===_0x3ae37&&(_0x3ae37['previous']['next']=null),_0x3ae37['previous']=null),!_0x5adc66['has'](_0x3ae37)&&_0x3ae37['next']&&(_0x19bce2['add'](_0x3ae37['next']),_0x3ae37['next']['previous']===_0x3ae37&&(_0x3ae37['next']['previous']=null),_0x3ae37['next']=null);}function _0x27b92e(_0x4b21fc,_0x2b3812,_0x3eaea7){for(let _0x29103d=_0x3eaea7;_0x29103d<_0x2b3812['length'];_0x29103d++){const _0x3121c9=_0x221055(_0x4b21fc,_0x2b3812[_0x29103d]);_0x3121c9&&(_0x3121c9[0x0]['next']=_0x3121c9[0x1],_0x3121c9[0x1]['previous']=_0x3121c9[0x0],_0x5adc66['add'](_0x3121c9[0x0]),_0x4b2e71['add'](_0x3121c9[0x1]));}}function _0x221055(_0x5757d2,_0x275463){if(_0x5757d2['author']['id']!==_0x275463['author']['id'])return null;const _0x1c7625=_0x588689['get'](_0x5757d2)(_0x5757d2,_0x275463,_0xeb8367['get'](_0x5757d2),_0xeb8367['get'](_0x275463));if(!_0x1c7625)return null;return _0x588689['get'](_0x275463)(_0x5757d2,_0x275463,_0xeb8367['get'](_0x5757d2),_0xeb8367['get'](_0x275463))?_0x1c7625[0x1]['commentThread']&&_0x1c7625[0x1]['commentThread']['length']?null:_0x1c7625:null;}_0x19bce2['size']&&this['_refreshSuggestionsChain'](_0x19bce2);}['_refreshAttributeSuggestionsChain'](_0x4e77b7){if(0x0==_0x4e77b7['length'])return;const _0x11b79b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5db6e4=>'attribute'==_0x5db6e4['type']&&_0x5db6e4['_isDataLoaded']),_0x2262d9=[],_0x2f7191=new Map();for(const _0x351d9b of _0x11b79b){const _0x4e4dfb=_0x37c233(_0x351d9b['attributes']);_0x2f7191['has'](_0x4e4dfb)||(_0x2f7191['set'](_0x4e4dfb,_0x2262d9['length']),_0x2262d9['push']([]));const _0x1e7952=_0x2f7191['get'](_0x4e4dfb);_0x2262d9[_0x1e7952]['push'](_0x351d9b);}!(function(){_0x2262d9['sort']((_0xbd2661,_0x1c53cb)=>{const _0x351400=_0xbd2661[0x0]['createdAt'],_0x156cac=_0x1c53cb[0x0]['createdAt'];return _0x351400==_0x156cac?_0xbd2661[0x0]['attributes']['groupId']<_0x1c53cb[0x0]['attributes']['groupId']?-0x1:0x1:_0x351400<_0x156cac?-0x1:0x1;});for(const _0x2fb025 of _0x2262d9)_0x2fb025['sort']((_0x2b9174,_0x3bd75e)=>_0x2b9174['id']<_0x3bd75e['id']?-0x1:0x1);}());for(let _0x1caa2a=0x0;_0x1caa2a<_0x2262d9['length'];_0x1caa2a++){if(0x0==_0x2262d9[_0x1caa2a]['length'])continue;const _0x50523a=[];for(let _0x4eff91=_0x1caa2a+0x1;_0x4eff91<_0x2262d9['length'];_0x4eff91++)0x0!=_0x2262d9[_0x4eff91]['length']&&_0xc89c08(_0x2262d9[_0x1caa2a],_0x2262d9[_0x4eff91])&&_0x50523a['push'](_0x4eff91);for(const _0x5f17a3 of _0x50523a)_0x2262d9[_0x1caa2a]=_0x2262d9[_0x1caa2a]['concat'](_0x2262d9[_0x5f17a3]),_0x2262d9[_0x5f17a3]=[];}for(const _0x1e855c of _0x2262d9)for(let _0x3ad176=0x0;_0x3ad176<_0x1e855c['length'];_0x3ad176++)_0x1e855c[_0x3ad176]['next']=_0x1e855c[_0x3ad176+0x1]||null;for(const _0x2773c2 of _0x2262d9)for(let _0xedc940=0x0;_0xedc940<_0x2773c2['length'];_0xedc940++)_0x2773c2[_0xedc940]['previous']=_0x2773c2[_0xedc940-0x1]||null;function _0xc89c08(_0x4877c8,_0x2f9b73){if(_0x4877c8[0x0]['attributes']['groupId']!==_0x2f9b73[0x0]['attributes']['groupId']&&_0x4877c8[0x0]['author']!==_0x2f9b73[0x0]['author'])return!0x1;if(!function(_0x1fd831,_0x4c2ef9){if(!_0x1fd831['hasComments']&&!_0x4c2ef9['hasComments'])return!0x0;if(_0x1fd831['hasComments']&&_0x4c2ef9['hasComments'])return!0x1;if(_0x1fd831['hasComments']&&_0x4c2ef9['createdAt']<_0x1fd831['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4c2ef9['hasComments']&&_0x1fd831['createdAt']<_0x4c2ef9['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4877c8[0x0],_0x2f9b73[0x0]))return!0x1;const _0x36dc59=Bt(_0x4877c8[0x0]['attributes'],'groupId'),_0x175918=Bt(_0x2f9b73[0x0]['attributes'],'groupId');if(!_0xa08454(_0x36dc59,_0x175918))return!0x1;return!!_0x4877c8['every'](_0x1977ea=>_0x2f9b73['some'](_0x45d404=>_0x1977ea['getFirstRange']()['isEqual'](_0x45d404['getFirstRange']())))&&_0x2f9b73['every'](_0x16db89=>_0x4877c8['some'](_0x5960dc=>_0x16db89['getFirstRange']()['isEqual'](_0x5960dc['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5c4cbc){const _0x3879ee=Array['from'](_0x5c4cbc),_0x3b4a3f=this['getSuggestions']({'skipNotAttached':!0x0}),_0x203ceb=_0x3b4a3f['filter'](_0x16bca8=>!_0x5c4cbc['has'](_0x16bca8)),_0x222415=new Map(_0x3879ee['map'](_0x47036b=>[_0x47036b,this['_suggestionFactory']['getSuggestionCallback'](_0x47036b['type'],_0x47036b['subType'],'join')])),_0x50115d=new Map(_0x3b4a3f['map'](_0x1b269a=>[_0x1b269a,_0x1b269a['getRanges']()]));for(let _0x5afc9a=0x0;_0x5afc9a<_0x3879ee['length'];_0x5afc9a++){if(_0x32a834(this,_0x3879ee[_0x5afc9a],_0x3879ee,_0x5afc9a+0x1))return!0x0;}for(let _0x58383d=0x0;_0x58383d<_0x3879ee['length'];_0x58383d++){if(_0x32a834(this,_0x3879ee[_0x58383d],_0x203ceb,0x0))return!0x0;}return!0x1;function _0x32a834(_0x1b208d,_0x3434ca,_0x40cad0,_0x374700){for(let _0x3dc61b=_0x374700;_0x3dc61b<_0x40cad0['length'];_0x3dc61b++){const _0x59754f=_0x40cad0[_0x3dc61b];if(_0x59754f['type']!==_0x3434ca['type']||_0x59754f['author']['id']!==_0x3434ca['author']['id']||_0x59754f['subType']!==_0x3434ca['subType'])continue;if(!Pt(_0x3434ca,_0x59754f,['groupId']))continue;if('attribute'==_0x3434ca['type']&&_0x3434ca['data']['oldValue']!=_0x59754f['data']['oldValue'])continue;if('attribute'==_0x3434ca['type']&&_0x1b208d['_isBlockAttribute'](_0x3434ca['data']['key']))continue;if('formatBlock'==_0x3434ca['type']){const _0x1ad76d=_0x1b208d['editor']['model'],_0x186e1d=_0x3434ca['getContainedElement']();if(_0x186e1d&&(_0x1ad76d['schema']['isObject'](_0x186e1d)||_0x1ad76d['schema']['isLimit'](_0x186e1d)))continue;}const _0x2d46ae=_0x222415['get'](_0x3434ca),_0x13900a=_0x50115d['get'](_0x3434ca),_0xc61f4c=_0x50115d['get'](_0x59754f),_0xb128c7=_0x3434ca['commentThread']&&_0x3434ca['commentThread']['length'],_0x569f3d=_0x59754f['commentThread']&&_0x59754f['commentThread']['length'];if(!_0xb128c7&&_0x2d46ae(_0xc61f4c,_0x13900a))return _0x1b208d['_joinSuggestions'](_0x59754f,_0x3434ca),_0x50115d['delete'](_0x3434ca),!0x0;if(!_0x569f3d&&_0x2d46ae(_0x13900a,_0xc61f4c))return _0x1b208d['_joinSuggestions'](_0x3434ca,_0x59754f),_0x50115d['delete'](_0x59754f),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3a7588,_0x1bfdbe){if(_0x3a7588['isMultiRange']){for(const _0x403805 of _0x1bfdbe['getRanges']())_0x3a7588['addRange'](_0x403805);}else{const _0x3800f7=_0x1bfdbe['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3a7588,this['_model']['createRange'](_0x3a7588['getFirstRange']()['start'],_0x3800f7));}_0x1bfdbe['removeMarkers']();}['_getMarkerAnnouncementText'](_0x18cf04,_0xa92baf){const _0x345449=_0x18cf04['startsWith']('format')||_0x18cf04['startsWith']('attribute')?'FORMATTING':_0x18cf04['toUpperCase']();return o(this['editor']['locale'],_0xa92baf+'_'+_0x345449+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x5db762=this['editor'];if(!_0x5db762['ui'])return;const {ariaLiveAnnouncer:_0x172dbf}=_0x5db762['ui'];_0x751978(this['_model'],({left:_0x496691,entered:_0x1711e8})=>{for(const _0x18f442 of _0x496691){const {group:_0x24bfb3,type:_0xb5c064}=this['_splitMarkerName'](_0x18f442['name']);if('suggestion'===_0x24bfb3){_0x172dbf['announce'](this['_getMarkerAnnouncementText'](_0xb5c064,'LEAVE'));break;}}for(const _0x557649 of _0x1711e8){const {group:_0x50d7d3,type:_0x4dd07b}=this['_splitMarkerName'](_0x557649['name']);if('suggestion'===_0x50d7d3){_0x172dbf['announce'](this['_getMarkerAnnouncementText'](_0x4dd07b,'ENTER'));break;}}});}['_processAttributeChanges'](_0x51264c){if(this['_recordAttributeSuggestions'])return!0x1;const _0xad00ef=this['editor'],_0x13b49c=_0xad00ef['model']['document']['differ']['getChanges']();if(0x0==_0x13b49c['length'])return!0x1;const _0xee7be8=[],_0x21cb2a=_0x13b49c['filter'](_0x11ab4d=>'attribute'==_0x11ab4d['type']),_0x27d6c6=_0x13b49c['filter'](_0x955653=>'insert'==_0x955653['type']&&'$text'!=_0x955653['name']),_0x30eeae=_0x13b49c['filter'](_0x3a9567=>'remove'==_0x3a9567['type']&&'$text'!=_0x3a9567['name']);for(const _0x573466 of _0x21cb2a)_0xee7be8['push']({'key':_0x573466['attributeKey'],'newValue':_0x573466['attributeNewValue'],'oldValue':_0x573466['attributeOldValue'],'range':Ot(_0x573466['range'],_0xad00ef['model'])});for(const _0x511703 of _0x27d6c6){const _0x7ced9e=_0x30eeae['find'](_0x32c04a=>_0x32c04a['position']['isEqual'](_0x511703['position']));_0x7ced9e&&_0xee7be8['push']({'key':m,'newValue':_0x511703['name'],'oldValue':_0x7ced9e['name'],'range':_0xad00ef['model']['createRangeOn'](_0x511703['position']['nodeAfter'])});}return 0x0!=_0xee7be8['length']&&this['_reduceExistingSuggestions'](_0x51264c,_0xee7be8);}['_processAttributeSuggestions'](_0x5985cf){let _0x41b52f=!0x1;const _0x11f5e9=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x200a4b=>_0x200a4b['data']['newRange']&&_0x200a4b['name']['startsWith']('suggestion:attribute:'));for(const _0x388f5a of _0x11f5e9){const {subType:_0x129824,id:_0x492a04}=this['_splitMarkerName'](_0x388f5a['name']),_0x5106a3=_0x129824['split']('|')[0x0];for(const _0x5ee161 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5ee161['id']!=_0x492a04&&'attribute'==_0x5ee161['type']&&_0x5ee161['data']&&_0x5ee161['data']['key']==_0x5106a3&&_0x5ee161['getFirstRange']()['isIntersecting'](_0x388f5a['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5ee161,_0x388f5a['data']['newRange'],_0x5985cf),_0x41b52f=!0x0);}return _0x41b52f;}['_recordAttributeChanges'](_0x331a85){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x331a85();}['_isRegisteredAttribute'](_0x6d92b2){const _0x5ab6e8=this['_isBlockAttribute'](_0x6d92b2),_0x2e2bbb=this['_inlineAttributeKeys']['has'](_0x6d92b2);return _0x5ab6e8||_0x2e2bbb;}['_reduceExistingSuggestions'](_0x31a683,_0x2ba4cf){if(0x0==_0x2ba4cf['length'])return!0x1;let _0x54cfdd=!0x1;for(const _0x4554a0 of _0x2ba4cf){const _0x392413=this['_findSuggestions'](_0x4554a0['range'],'attribute')['filter'](_0x55fa96=>!_0x55fa96['meta']['isNextTo'])['map'](_0x178af0=>_0x178af0['suggestion']),_0xda8b00=_0x37c233({'newValue':_0x4554a0['newValue']});_0x392413['filter'](_0x1c2fdf=>{const [_0x31cfd6,_0x5d3ec7]=_0x1c2fdf['subType']['split']('|');return _0x31cfd6==_0x4554a0['key']&&_0x5d3ec7!=_0xda8b00;})['forEach'](_0x5232a5=>{this['_reduceSuggestionAttributeRange'](_0x5232a5,_0x4554a0['range'],_0x31a683),_0x54cfdd=!0x0;});}return _0x54cfdd;}['_reduceSuggestionAttributeRange'](_0x4cce7e,_0x17ea5a,_0x58f017){const _0x18c7ea=_0x4cce7e['getFirstRange']()['getDifference'](_0x17ea5a);0x0!==_0x18c7ea['length']?0x1!==_0x18c7ea['length']?this['_breakSuggestionMarker'](_0x4cce7e,_0x17ea5a['start'],_0x17ea5a['end']):this['_setSuggestionRange'](_0x4cce7e,_0x18c7ea[0x0]):_0x58f017['removeMarker'](_0x4cce7e['getFirstMarker']());}constructor(_0xc8d2b2){function _0xadd9ef(_0x2c9402){return _0x2c9402['map'](_0x31f30c=>String['fromCharCode'](_0x31f30c))['join']('');}super(_0xc8d2b2),this['_recordAttributeSuggestions']=!0x1,this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x370e27,_0x171dee,_0x366070,_0x26a58b)=>{this['_model']['change'](()=>{for(const _0x5dbcb2 of[..._0x26a58b,..._0x366070])this['_model']['markers']['has'](_0x5dbcb2)&&_0xc8d2b2['editing']['reconvertMarker'](_0x5dbcb2);});}),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']=_0xc8d2b2['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(),_0xc8d2b2['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xc8d2b2['config']['get']('trackChanges.trackFormatChanges'),_0xc8d2b2['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xc8d2b2['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0xc8d2b2,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0xadd9ef([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0xadd9ef([0x34,0x30,0x34,0x38,0x31,0x30,0x30,0x32]);}}class xt{['buildSuggestion'](_0x219d0c,_0x30905f,_0x259f59,_0x2136aa,_0x5c1c25,_0x37db26){return new u(this['_model'],{'type':_0x219d0c,'subType':_0x30905f,'id':_0x259f59,'author':_0x2136aa,'creator':_0x2136aa,'attributes':_0x5c1c25,'onAttributesChange':_0x37db26,'onAccept':(..._0x3de1ce)=>this['getSuggestionCallback'](_0x219d0c,_0x30905f,'accept')(..._0x3de1ce),'onDiscard':(..._0x2ea97c)=>this['getSuggestionCallback'](_0x219d0c,_0x30905f,'discard')(..._0x2ea97c)});}['registerCustomCallback'](_0x402e49,_0x2b0ab9,_0x2dfb68,_0x4141d0){const _0x5ad1ef=_0x402e49+':'+_0x2b0ab9+':'+_0x2dfb68;this['_customCallbacks']['set'](_0x5ad1ef,_0x4141d0);}['getSuggestionCallback'](_0x21c588,_0x41bb33,_0x2ad785){const _0x1a0742=_0x21c588+':'+_0x41bb33+':'+_0x2ad785;return this['_customCallbacks']['get'](_0x1a0742)||this['_defaultCallbacks']['get'](_0x21c588+':'+_0x2ad785);}['_registerDefaultCallbacks'](){const _0x5cf3bd=()=>!0x1,_0x1ca2eb=_0x505678=>{_0x505678['sort']((_0x2c3eac,_0x522d7d)=>_0x2c3eac['start']['isBefore'](_0x522d7d['start'])?0x1:-0x1),this['_model']['change'](_0x56f53b=>{for(const _0x39b230 of _0x505678){let _0x3ce097;_0x3ce097=_0x39b230['end']['isAtEnd']&&_0x39b230['end']['parent']==_0x39b230['start']['nodeAfter']?_0x56f53b['createSelection'](_0x39b230['start']['nodeAfter'],'on'):_0x56f53b['createSelection'](_0x39b230),this['_model']['deleteContent'](_0x3ce097,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4cda36=(_0x3a10ae,_0x538b9b)=>{_0x538b9b&&this['_model']['change'](_0x3a2c1b=>{const {commandName:_0x165fec,commandParams:_0x57468c=[]}=_0x538b9b,_0xa3491=_0x3a10ae['map'](_0xe12609=>(Tt(_0xe12609)&&(_0xe12609=this['_model']['createRange'](_0xe12609['end'])),_0xe12609))['filter'](_0x432db7=>'$graveyard'!==_0x432db7['root']['rootName']);if(_0xa3491['length']<0x1)return;const _0xe00177=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x500f8f=>_0x43239f['fromRange'](_0x500f8f));_0x3a2c1b['setSelection'](_0xa3491);for(const _0x1904c2 of this['_editor']['commands']['commands']())_0x1904c2['refresh']();_0x57468c['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x165fec,..._0x57468c);const _0x2946f0=_0xe00177['filter'](_0x41c0aa=>'$graveyard'!=_0x41c0aa['root']['rootName']);_0x2946f0['length']>0x0&&_0x3a2c1b['setSelection'](_0x2946f0);for(const _0x1e84d4 of _0xe00177)_0x1e84d4['detach']();});},_0x1a5c0a=(_0x179812,_0x3d4546)=>0x1==_0x179812['length']&&0x1==_0x3d4546['length']&&_0x179812[0x0]['end']['isEqual'](_0x3d4546[0x0]['start']),_0x9031e7=(_0x34beef,_0x56e00d,_0x4e4793,_0x235b50)=>Gt(_0x34beef,_0x56e00d,_0x4e4793,_0x235b50,this['_model'])?[_0x34beef,_0x56e00d]:Gt(_0x56e00d,_0x34beef,_0x235b50,_0x4e4793,this['_model'])?[_0x56e00d,_0x34beef]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5cf3bd),this['_defaultCallbacks']['set']('insertion:discard',_0x1ca2eb),this['_defaultCallbacks']['set']('insertion:join',_0x1a5c0a),this['_defaultCallbacks']['set']('insertion:chain',_0x9031e7),this['_defaultCallbacks']['set']('deletion:accept',_0x1ca2eb),this['_defaultCallbacks']['set']('deletion:discard',_0x5cf3bd),this['_defaultCallbacks']['set']('deletion:join',_0x1a5c0a),this['_defaultCallbacks']['set']('deletion:chain',_0x9031e7),this['_defaultCallbacks']['set']('formatInline:accept',_0x4cda36),this['_defaultCallbacks']['set']('formatInline:discard',_0x5cf3bd),this['_defaultCallbacks']['set']('formatInline:join',_0x1a5c0a),this['_defaultCallbacks']['set']('formatInline:chain',_0x5cf3bd),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4cda36),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5cf3bd),this['_defaultCallbacks']['set']('formatBlock:join',_0x1a5c0a),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5cf3bd),this['_defaultCallbacks']['set']('attribute:accept',_0x5cf3bd),this['_defaultCallbacks']['set']('attribute:discard',(_0x22b07f,_0xf03854)=>{if(!_0xf03854)return;const _0x4a7236=this['_editor']['plugins']['get'](p);this['_model']['change'](_0xd4b3ed=>{if(_0xf03854['key']==m)for(const _0x5c8350 of _0x22b07f){const _0x45f849=_0x5c8350['start']['nodeAfter'],_0x377721=_0xf03854['oldValue'];_0xd4b3ed['rename'](_0x45f849,_0x377721);}else{if(_0x4a7236['_isBlockAttribute'](_0xf03854['key'])){for(const _0x500426 of _0x22b07f)void 0x0!==_0xf03854['oldValue']?_0xd4b3ed['setAttribute'](_0xf03854['key'],_0xf03854['oldValue'],_0x500426['start']['nodeAfter']):_0xd4b3ed['removeAttribute'](_0xf03854['key'],_0x500426['start']['nodeAfter']);}else{for(const _0xfd69d6 of _0x22b07f)_0xf03854['oldValue']?_0xd4b3ed['setAttribute'](_0xf03854['key'],_0xf03854['oldValue'],_0xfd69d6):_0xd4b3ed['removeAttribute'](_0xf03854['key'],_0xfd69d6);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1a5c0a);}constructor(_0x328864){this['_editor']=_0x328864,this['_model']=_0x328864['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}}function Rt(_0x1e1144,_0x185aa1,_0x191765){for(const _0x49f45d of _0x185aa1['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x49f45d['root']==_0x49f45d)return!0x1;if(!_0x191765['containsItem'](_0x49f45d))return!0x1;if(_0x1e1144['isObject'](_0x49f45d)||_0x1e1144['isLimit'](_0x49f45d))return!0x0;}return!0x1;}function Tt(_0x5f3522){return _0x5f3522['end']['parent']==_0x5f3522['start']['nodeAfter']&&_0x5f3522['end']['isAtStart'];}function Et(_0x2eca79,_0x4e5a98,_0x1096b6,_0x31fa7a){const _0x3c11eb=_0x24eb0d=>!_0x24eb0d['item']['is']('$textProxy')&&!_0x31fa7a['isObject'](_0x24eb0d['item']),_0x1edd86=_0x2eca79['start']['getLastMatchingPosition'](_0x3c11eb),_0x3f8284=_0x2eca79['end']['getLastMatchingPosition'](_0x3c11eb,{'direction':'backward'});return(!_0x2eca79['start']['isEqual'](_0x1edd86)||!_0x2eca79['end']['isEqual'](_0x3f8284))&&(_0x1edd86['isBefore'](_0x3f8284)?_0x1096b6['updateMarker'](_0x4e5a98,{'range':_0x1096b6['createRange'](_0x1edd86,_0x3f8284)}):_0x1096b6['removeMarker'](_0x4e5a98),!0x0);}function Vt(_0x9f3c7e){return _0x37c233(_0x9f3c7e);}function Ut(_0x4ce002){const _0x4c63d4=_0x4ce002['start']['nodeAfter'];return _0x4c63d4&&_0x4c63d4['is']('element');}function Ot(_0x4cd3b4,_0xbfd573){return null==_0x4cd3b4['end']['nodeBefore']&&_0x4cd3b4['end']['parent']==_0x4cd3b4['start']['nodeAfter']?Ft(_0x4cd3b4['start']['nodeAfter'],_0xbfd573):_0x4cd3b4;}function Ft(_0x5cef1b,_0x54739a){const _0x51f8d3=_0x54739a['schema']['isObject'](_0x5cef1b)||_0x54739a['schema']['isSelectable'](_0x5cef1b);return _0x54739a['createRange'](_0x54739a['createPositionAt'](_0x5cef1b,'before'),_0x51f8d3?_0x54739a['createPositionAfter'](_0x5cef1b):_0x54739a['createPositionAt'](_0x5cef1b,'end'));}function Gt(_0x3bcf23,_0x541904,_0x3d6def,_0x5329da,_0x4f866a){if(!Pt(_0x3bcf23,_0x541904))return!0x1;if(_0x3d6def['end']['isEqual'](_0x5329da['start']))return!0x0;if(_0x3bcf23['type']!=_0x541904['type'])return!0x1;if(!_0x3d6def['end']['isTouching'](_0x5329da['start']))return!0x1;const _0x5c45a6=_0x4f866a['createRange'](_0x3d6def['end'],_0x5329da['start'])['getWalker']();for(const _0x42b515 of _0x5c45a6)if(['elementStart','elementEnd']['includes'](_0x42b515['type'])&&_0x4f866a['schema']['isLimit'](_0x42b515['item']))return!0x1;return!0x0;}function Pt(_0x1b9171,_0x3b985f,_0x2a92da=[]){return!(!_0x1b9171['_isDataLoaded']||!_0x3b985f['_isDataLoaded'])&&_0xa08454(Bt(_0x1b9171['attributes'],_0x2a92da),Bt(_0x3b985f['attributes'],_0x2a92da));}function Lt(_0x3a0a18,_0x489b0c){const _0x45fc6f=Ht(_0x3a0a18['attributes']),_0x44f586=Ht(_0x489b0c);if(!_0x3a0a18['_isDataLoaded'])return!0x1;for(const _0x3382f7 of Object['keys'](_0x44f586))if(!_0xa08454(_0x45fc6f[_0x3382f7],_0x44f586[_0x3382f7]))return!0x1;return!0x0;}function Ht(_0x4cdf2c){const _0x2b23e8=Object['assign']({},_0x4cdf2c);return delete _0x2b23e8['skipNestingCheck'],delete _0x2b23e8['tablePasteChainId'],_0x2b23e8;}class oe extends _0x229435(){['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 _0x1c724f=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1c724f);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}constructor(_0x4c0843,_0x4903fd,_0x5d3fae,_0x2f6265){super(),this['model']=_0x4903fd,this['view']=_0x5d3fae,this['commentThreadController']=_0x2f6265,this['_editor']=_0x4c0843,this['_acceptCommand']=_0x4c0843['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4c0843['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3a6051,_0xbcfab9)=>_0x3a6051||_0xbcfab9),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xcddff6=>_0xcddff6&&this['_editor']['model']['canEditAt'](_0x4903fd['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3c887d=>_0x3c887d&&this['_editor']['model']['canEditAt'](_0x4903fd['getRanges']())),this['_pendingAction']=null,_0x5d3fae['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5d3fae,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5d3fae,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5d3fae,'change:isDirty',()=>{_0x5d3fae['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}}class es extends _0x4bb07a{['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5069cb}=this['_config'];this['commentsListView']=new _0x5069cb(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',_0x20cdcb=>_0x20cdcb+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x29b9a1,_0x5cb996)=>_0x29b9a1||!!_0x5cb996);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2c8f76}=this['_config'],_0x801f0c=new _0x2c8f76(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3fc3c1=_0x801f0c['commentInputView'];return _0x801f0c['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3fc3c1,'value',(_0x227ebd,_0x18eca1,_0x5ca685)=>!!_0x5ca685||_0x227ebd&&!_0x18eca1),_0x3fc3c1['on']('submit',(_0x5d8cc7,_0x10cdab)=>{this['fire']('addComment',_0x10cdab),_0x3fc3c1['editor']['setData']('');}),_0x3fc3c1['on']('cancel',()=>this['focus']()),_0x3fc3c1['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x801f0c;}constructor(_0x4c847c,_0x1579e7,_0x20d4b6,_0x18e55a){super(_0x4c847c),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x1579e7['authoredAt']),this['bind']('authoredAt')['to'](_0x1579e7),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x1579e7,this['_localUser']=_0x20d4b6,this['_config']=_0x18e55a,_0x18e55a['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}}class ne extends es{['getTemplate'](){const _0x5cb772=this['bindTemplate'],_0x4ad4dc=[{'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':_0x5cb772['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5cb772['to']('authoredAt',_0x5473e6=>this['_config']['formatDateTime'](_0x5473e6))}]}]},{'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']&&_0x4ad4dc['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x16c56d={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x5cb772['if']('isActive','ck-suggestion-wrapper--active'),_0x5cb772['to']('type',_0x350f9e=>'ck-suggestion-'+_0x350f9e),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':_0x4ad4dc}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x16c56d['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)),_0x16c56d;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x1169b0,_0x571730,_0xf1b04d)=>{this['_descriptionElement']['innerHTML']=_0xf1b04d;});}['_createButton'](_0x5948dc,_0x25d26a,_0x449fac,_0x1f6071,_0x377aae){const _0x58c310=new _0x1c8755(this['locale']);return _0x58c310['set']({'label':_0x5948dc,'icon':_0x25d26a,'tooltip':!0x0,'tooltipPosition':_0x377aae}),_0x58c310['extendTemplate']({'attributes':{'class':_0x449fac}}),_0x58c310['on']('execute',()=>{this['fire'](_0x1f6071,this['_model']['id']);}),_0x58c310;}['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;}constructor(_0x7f1be5,_0x24d66d,_0x302c6d,_0x48197a){super(_0x7f1be5,_0x24d66d,_0x302c6d,_0x48197a),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4621f6=>_0x4621f6&&_0x4621f6[0x0]?_0x4621f6[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xfa9f7,_0x54c806)=>{let _0x520cc8='';for(const _0x1ae310 of _0xfa9f7)_0x520cc8+='<p>'+ds(_0x1ae310['content'],_0x1ae310['color'])+'</p>';return _0x54c806?_0x520cc8:_0x2519d9(_0x520cc8,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x7f1be5,'Accept\x20suggestion'),_0x18221a['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x7f1be5,'Discard\x20suggestion'),_0x18221a['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x26a901(_0x7f1be5,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}}function ds(_0x1465a4,_0x1bf9a3){let _0x501da5='';return _0x501da5+=_0x1465a4['split']('*')['map']((_0xc77ae,_0x2bedf6)=>_0x2bedf6%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0xc77ae)+'</span>':us(_0xc77ae))['join'](''),_0x1bf9a3&&(_0x501da5+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1bf9a3['value']+'\x22\x20title=\x22'+_0x1bf9a3['title']+'\x22></span>'),_0x501da5;}function us(_0x37d031){const _0x595900=document['createElement']('span');return _0x595900['innerText']=_0x37d031,_0x595900['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 _0x1e79ec{static get['requires'](){return[p,_0x15e88b,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}['_handleSuggestionControllerDelayed'](_0x4ab6bd,_0x21f918){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x36db88,_0xd24bcf]of this['_handleControllerBuffer']){const _0x216212=this['_suggestionToController']['has'](_0x36db88);_0x216212||_0xd24bcf?_0x216212&&_0xd24bcf&&this['_destroyController'](_0x36db88):this['_initializeController'](_0x36db88);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4ab6bd,_0x21f918);}['init'](){const _0x3d67af=this['editor'],_0x13b70f=_0x3d67af['plugins']['get']('TrackChangesEditing'),_0x5db6ca=_0x3d67af['plugins']['get']('Annotations'),_0x24cd5f=_0x3d67af['plugins']['get']('EditorAnnotations'),_0x27be98=_0x3d67af['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x24cd5f['addSourceCollector'](()=>{const _0x48f821=[];for(const [_0x3d6e3e,_0x1b7472]of Array['from'](this['_suggestionToController'])){const _0x56edc3=_0x3d6e3e['getAllAdjacentSuggestions'](),_0x1cbcf6=[];for(const _0x65d0db of _0x56edc3){if(!_0x65d0db['isInContent'])continue;if(_0x65d0db['isMultiRange']){_0x1cbcf6['push'](..._0x65d0db['getRanges']());continue;}const _0x4fe8b3=_0x65d0db['getFirstRange']();if(_0x1cbcf6['length']>0x0){const _0x5db09d=_0x1cbcf6[0x0]['getJoined'](_0x4fe8b3);if(_0x5db09d){_0x1cbcf6[0x0]=_0x5db09d;continue;}}_0x1cbcf6['push'](_0x4fe8b3);}_0x48f821['push']([_0x1b7472['view'],_0x1cbcf6]);}return _0x48f821;}),this['listenTo'](_0x13b70f,'suggestionLoaded',(_0x1d736b,_0x2d3f5a)=>{this['listenTo'](_0x2d3f5a,'change:previous',(_0x5e7f4a,_0x46450e,_0x5da201,_0x45c297)=>{_0x2d3f5a['isInContent']&&(null==_0x5da201?(this['_updateController'](_0x45c297['head']),this['_handleSuggestionControllerDelayed'](_0x2d3f5a,!0x1)):(this['_updateController'](_0x5da201['head']),null==_0x45c297&&this['_handleSuggestionControllerDelayed'](_0x2d3f5a,!0x0)));}),null!==_0x2d3f5a['previous']?this['_updateController'](_0x2d3f5a['head']):this['_handleSuggestionControllerDelayed'](_0x2d3f5a,!0x1);}),this['listenTo'](_0x13b70f,'suggestionUnloaded',(_0x2bd163,_0x22360a,_0x3b8e4f)=>{this['stopListening'](_0x22360a,'change:previous'),this['_handleControllerBuffer']['delete'](_0x22360a),this['_suggestionToController']['has'](_0x22360a)&&this['_destroyController'](_0x22360a),_0x3b8e4f&&this['_updateController'](_0x3b8e4f['head']);}),this['listenTo'](_0x13b70f,'suggestionChanged',(_0x1b07ae,_0x12dd7f)=>{this['_updateController'](_0x12dd7f);}),this['listenTo'](_0x5db6ca,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x27be98,'addComment',(_0xf7e758,{threadId:_0x31d67d,isFromAdapter:_0x7923b6})=>{if(_0x7923b6||!_0x13b70f['hasSuggestion'](_0x31d67d))return;const _0x4f05d6=_0x13b70f['getSuggestion'](_0x31d67d);this['_suggestionToController']['get'](_0x4f05d6)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x4ee06d=this['editor']['plugins']['get']('Annotations'),_0x506abf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x317b4b=Array['from'](_0x4ee06d['activeAnnotations'],_0xc42582=>_0xc42582['innerView'])['filter'](_0xd0669f=>this['_viewToController']['has'](_0xd0669f)),_0x58df3d=[];for(const _0x25dc37 of _0x317b4b){const _0xceffc0=this['_viewToController']['get'](_0x25dc37)['model']['getAllAdjacentSuggestions']();_0x58df3d['push'](..._0xceffc0['reduce']((_0x5a3f59,_0x3ca403)=>[..._0x5a3f59,..._0x3ca403['getMarkerNames']()],[]));}_0x506abf['activeMarkers']=_0x58df3d;}['_addUIComponentsToFactory'](){const _0x5973a3=this['editor'],_0x1bccbc=_0x5973a3['locale'],_0x28be1f=o(_0x1bccbc,'Track\x20changes'),_0x521e04=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x28be1f,'commandName':'trackChanges'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1bccbc,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1bccbc,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1bccbc,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1bccbc,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'})}]);for(const _0x4364c0 of _0x521e04)if(ae(_0x4364c0)){const _0x2c9025=_0x5973a3['commands']['get'](_0x4364c0['model']['commandName']);_0x4364c0['model']['bind']('isOn','isEnabled')['to'](_0x2c9025,'value','isEnabled');}_0x5973a3['ui']['componentFactory']['add']('trackChanges',_0x257ba0=>this['_createToolbarButton'](_0x257ba0,_0x521e04,_0x28be1f)),_0x5973a3['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3afcfd=>this['_createMenuBarMenu'](_0x3afcfd,_0x521e04,_0x28be1f));}['_createToolbarButton'](_0x382577,_0x12a899,_0x463f23){const _0x2b52ea=zt(_0x382577,Zt),_0x145311=this['editor']['commands']['get']('trackChanges');_0x2b52ea['buttonView']['set']({'tooltip':_0x463f23,'label':_0x463f23,'icon':ie}),_0x2b52ea['buttonView']['bind']('isOn')['to'](_0x145311,'value'),_0x2b52ea['buttonView']['on']('execute',()=>{_0x145311['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x2b52ea,_0x12a899);const _0x1922c7=[];for(const _0x2e45be of _0x12a899)ae(_0x2e45be)&&_0x1922c7['push'](this['editor']['commands']['get'](_0x2e45be['model']['commandName']));const _0x17f735=_0x2b52ea['buttonView'];return _0x17f735['actionView']['unbind']('isEnabled'),_0x17f735['arrowView']['unbind']('isEnabled'),_0x17f735['actionView']['bind']('isEnabled')['to'](_0x145311,'isEnabled'),_0x17f735['arrowView']['bind']('isEnabled')['toMany'](_0x1922c7,'isEnabled',(..._0x2dfd8a)=>_0x2dfd8a['some'](_0x53b9d4=>_0x53b9d4)),_0x2b52ea['on']('execute',_0x443788=>{this['editor']['execute'](_0x443788['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2b52ea;}['_createMenuBarMenu'](_0x120433,_0x5e42a9,_0x72a533){const _0x342468=new Kt(_0x120433),_0x160e83=this['editor']['commands']['get']('trackChanges');_0x342468['buttonView']['set']({'label':_0x72a533,'icon':ie});const _0x52426f=new Qt(_0x120433);for(const _0x39015d of _0x5e42a9){if('separator'==_0x39015d['type']){_0x52426f['items']['add'](new Jt(_0x120433));continue;}const _0x3f12c6=new Xt(_0x120433,_0x342468),_0x1e9307=new Yt(_0x120433),_0x43ecef=_0x39015d['model'];_0x1e9307['bind'](...Object['keys'](_0x43ecef))['to'](_0x43ecef),_0x1e9307['delegate']('execute')['to'](_0x342468),_0x1e9307['on']('execute',()=>{this['editor']['execute'](_0x43ecef['commandName']),this['editor']['editing']['view']['focus']();}),_0x3f12c6['children']['add'](_0x1e9307),_0x52426f['items']['add'](_0x3f12c6);}return _0x342468['bind']('isEnabled')['to'](_0x160e83,'isEnabled'),_0x342468['panelView']['children']['add'](_0x52426f),_0x342468;}['_initializeController'](_0x3b5db8){const _0x19a30b=this['editor'],_0x32860c=_0x19a30b['config'],_0x5df97c=_0x19a30b['plugins']['get']('Annotations'),_0x387160=_0x19a30b['plugins']['get']('CommentsRepository'),_0xc0d632=_0x19a30b['plugins']['get']('EditorAnnotations'),_0x13a3d6=_0x19a30b['plugins']['get'](_0x15e88b)['me'],_0x15bebf=_0x32860c['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0xc9ca8b,CommentThreadInputView:_0x49bc17}=_0x19a30b['plugins']['get']('CommentsUI');let _0xad91d2,_0x3e28e1;this['_annotationViews']['has'](_0x3b5db8['id'])?(_0x3e28e1=this['_annotationViews']['get'](_0x3b5db8['id']),_0xad91d2=_0x3e28e1['mainView']):(_0xad91d2=new _0x15bebf(_0x19a30b['locale'],_0x3b5db8,_0x13a3d6,{'disableComments':this['_disableComments'],'editorConfig':_0x32860c['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x32860c['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x32860c['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x32860c['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x42f9a7(_0x32860c['get']('locale')),'CommentView':_0x32860c['get']('comments')['CommentView'],'CommentsListView':_0xc9ca8b,'CommentThreadInputView':_0x49bc17}),_0xad91d2['acceptButton']['on']('execute',()=>{_0x19a30b['editing']['view']['focus']();}),_0xad91d2['discardButton']['on']('execute',()=>{_0x19a30b['editing']['view']['focus']();}),_0x3e28e1=_0x5df97c['createAnnotationView'](this['editor']['locale'],_0xad91d2),_0x3e28e1['bind']('isDirty')['to'](_0xad91d2,'isDirty'),_0x3e28e1['bind']('length')['to'](_0xad91d2),_0x3e28e1['bind']('type')['to'](_0xad91d2,'type',_0x4d925c=>'suggestion-'+_0x4d925c),this['_annotationViews']['set'](_0x3b5db8['id'],_0x3e28e1));const _0x5029d9=_0x387160['createCommentThreadController'](_0x3b5db8['commentThread'],_0xad91d2),_0x40dc5d=new oe(_0x19a30b,_0x3b5db8,_0xad91d2,_0x5029d9),_0x9ef1bf=_0x3b5db8['getAllAdjacentSuggestions']()['filter'](_0x30ed75=>_0x30ed75['isInContent']);_0xad91d2['descriptionParts']=_0x19a30b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x9ef1bf),this['_suggestionToController']['set'](_0x3b5db8,_0x40dc5d),this['_viewToController']['set'](_0xad91d2,_0x40dc5d);const _0xb261b3=_0x5df97c['createAnnotation']({'view':_0x3e28e1,'target':()=>{const _0x2fb8b0=[],_0xd5f2ac=_0x3b5db8['getAllAdjacentSuggestions']()['filter'](_0x2ba810=>_0x2ba810['isInContent']);for(const _0x41c796 of _0xd5f2ac)_0x2fb8b0['push'](..._0x41c796['getMarkers']());return _0x3fdb71(_0x19a30b['editing'],_0x2fb8b0);},'type':()=>'suggestion-'+_0x40dc5d['view']['type']});_0x387160['_bindAnnotationToEditors'](_0xad91d2,_0xb261b3),_0x5df97c['add'](_0xb261b3),_0xc0d632['registerAnnotation'](_0xb261b3);}['_destroyController'](_0x9ac16f){const _0x12e418=this['editor']['plugins']['get']('CommentsRepository'),_0xa0be68=this['editor']['plugins']['get']('Annotations'),_0x330e2b=this['_suggestionToController']['get'](_0x9ac16f),_0x50dd55=_0x330e2b['view'],_0x32458e=_0xa0be68['getByInnerView'](_0x50dd55);_0x12e418['_unbindEditors'](_0x50dd55),_0x32458e&&_0xa0be68['remove'](_0x32458e),this['_suggestionToController']['delete'](_0x9ac16f),this['_viewToController']['delete'](_0x50dd55),_0x330e2b['destroy']();}['_updateController'](_0x2e6bcd){if(!_0x2e6bcd['isInContent']||!this['_suggestionToController']['has'](_0x2e6bcd))return;const _0x1714e1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e8783=this['_suggestionToController']['get'](_0x2e6bcd),_0x80f1f7=_0x2e6bcd['getAllAdjacentSuggestions']();_0x3e8783['view']['descriptionParts']=_0x1714e1['descriptionFactory']['getDescriptions'](_0x80f1f7);}['destroy'](){for(const _0x2d5ce5 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2d5ce5);for(const _0x39fab9 of this['_annotationViews']['values']())_0x39fab9['mainView']['destroy']();super['destroy']();}constructor(_0x2615b5){super(_0x2615b5),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x276d78=this['editor']['config'];_0x276d78['define']('trackChanges.SuggestionThreadView',ne),_0x276d78['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x276d78['get']('trackChanges.disableComments');}}function ae(_0x5708ed){return'model'in _0x5708ed;}class k extends _0x1e79ec{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x4360e4){this['editor']['plugins']['get'](p)['adapter']=_0x4360e4;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x1a0168){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x1a0168);}['getSuggestions']({skipNotAttached:_0x2d87d7=!0x1,toJSON:_0x25da29=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2d87d7,'toJSON':_0x25da29});}['getSuggestion'](_0x1cb06e){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1cb06e);}}const T=['Pagination'];class P extends _0x1e79ec{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x3a22a1=this['editor'];if(_0x3a22a1['config']['define']('trackChangesData.editorCreator',_0x1b0063=>{const _0x1242e0=_0x3a22a1['model']['document']['getRootNames']()['reduce']((_0x2fdeac,_0x213155)=>(_0x2fdeac[_0x213155]='',_0x2fdeac),{});return _0x3a22a1['constructor']['create'](_0x1242e0,_0x1b0063);}),'function'!=typeof _0x3a22a1['config']['get']('trackChangesData')['editorCreator'])throw new _0x46c804('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x330e20){return N(this['editor'],!0x0,_0x330e20);}['getDataWithDiscardedSuggestions'](_0x5791f3){return N(this['editor'],!0x1,_0x5791f3);}}class D extends _0x1e79ec{static get['pluginName'](){return'TrackChangesDataGetter';}['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;}constructor(_0x492e44){super(_0x492e44),this['result']='end';}}function v(_0xbfc681){return void 0x0!==_0xbfc681['getRootsAttributes'];}async function N(_0x5a2efc,_0x38bcaa,_0x689315){const _0x3d7f19=_0x207bf7(_0x5a2efc,T);_0x3d7f19['plugins']['push'](p,D),_0x3d7f19['rootsAttributes']=v(_0x5a2efc)?_0x5a2efc['getRootsAttributes']():void 0x0;const _0xc00cf5=document['createDocumentFragment'](),_0x305863=_0x5a2efc['config']['get']('trackChangesData')['editorCreator'],_0xbbe06f=await _0x305863(_0x3d7f19,()=>function(_0x1dad1e){const _0x554376=document['createElement']('div');return _0x1dad1e['appendChild'](_0x554376),_0x554376;}(_0xc00cf5));!function(_0x49e661,_0x570f87){const _0x32e5b2=_0x49e661['model']['document']['getRootNames']()['reduce']((_0x59f950,_0x405c7f)=>(_0x59f950[_0x405c7f]=_0x49e661['data']['get']({'rootName':_0x405c7f}),_0x59f950),{}),_0x271544=_0x49e661['plugins']['get']('Users')['users']['map'](_0x4b46ed=>({'id':_0x4b46ed['id'],'name':_0x4b46ed['name']})),_0x58e480=_0x49e661['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x174eb6=_0x49e661['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x141528=_0x570f87['plugins']['get']('Users'),_0x5e7050=_0x570f87['plugins']['get']('TrackChangesEditing'),_0x351afd=_0x570f87['plugins']['get']('CommentsRepository');for(const _0x576372 of _0x271544)_0x141528['getUser'](_0x576372['id'])||_0x141528['addUser'](_0x576372);_0x141528['me']||_0x141528['useAnonymousUser']();for(const _0x106e44 of _0x58e480)_0x5e7050['addSuggestionData'](_0x106e44);for(const _0x5656ca of _0x174eb6)_0x351afd['addCommentThread'](_0x5656ca);_0x570f87['data']['set'](_0x32e5b2);}(_0x5a2efc,_0xbbe06f),_0xbbe06f['execute'](_0x38bcaa?'acceptAllSuggestions':'discardAllSuggestions');const _0x26a165=v(_0xbbe06f)?_0xbbe06f['getFullData'](_0x689315):_0xbbe06f['data']['get'](_0x689315);return await _0xbbe06f['destroy'](),_0x26a165;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x61eb43,PendingActions as _0x2b0188,icons as _0x1ce30b}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xa5fb70,ObservableMixin as _0x5279e5,uid as _0xdda64a,insertToPriorityArray as _0x6d11c3,priorities as _0x5190c6,logWarning as _0x25c1e2,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x5a7d3d,View as _0x2d0858,ButtonView as _0x26344e,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 _0x281dca,hashObject as _0x40f9c5,surroundingMarkersDetector as _0x5ac0e4,trimHtml as _0x4706ba,UserView as _0x236e25,getDateTimeFormatter as _0x194375,getAllMarkersDomElementsSorted as _0x8037d8,sanitizeEditorConfig as _0x103d13}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x4bddb3,LiveRange as _0x2819a3,LivePosition as _0x1f9f89}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x5b1021,toWidget as _0x324286}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0xe225ca,set as _0x596791,isEqual as _0x2da674,unset as _0x2ef1e6,omit as Bt}from'lodash-es';import{Delete as _0x2b1bb1,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x46f1e2,ShiftEnter as _0x5c8d28}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x42ca56 of this['editor']['commands']['commands']())_0x42ca56['affectsData']&&!this['_enabledCommands']['has'](_0x42ca56)&&_0x42ca56['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x491df6 of this['editor']['commands']['commands']())_0x491df6['affectsData']&&!this['_enabledCommands']['has'](_0x491df6)&&_0x491df6['clearForceDisabled']('TrackChangesCommand');}constructor(_0x4b43bd,_0x7974b5){super(_0x4b43bd),this['_enabledCommands']=_0x7974b5,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class $ extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x29efd0){const _0x327b9b=this['_suggestions']['get'](_0x29efd0);if(!_0x327b9b)throw new _0xa5fb70('track-changes-accept-suggestion-not-found',this);const _0xf47d3b=_0x327b9b['getRanges']();this['editor']['model']['canEditAt'](_0xf47d3b)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x327b9b);}constructor(_0x2df61d,_0x3c4c32){super(_0x2df61d),this['_suggestions']=_0x3c4c32,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class B extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5e51d4){const _0x2d9731=this['_suggestions']['get'](_0x5e51d4);if(!_0x2d9731)throw new _0xa5fb70('track-changes-discard-suggestion-not-found',this);const _0x4cdd98=_0x2d9731['getRanges']();this['editor']['model']['canEditAt'](_0x4cdd98)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2d9731);}constructor(_0x2ce038,_0x246060){super(_0x2ce038),this['_suggestions']=_0x246060,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}function ss(_0x3c02e3){return _0x3c02e3['sort']((_0x23c26f,_0x3f403e)=>'deletion'==_0x23c26f['type']&&'deletion'!=_0x3f403e['type']?-0x1:'deletion'!=_0x23c26f['type']&&'deletion'==_0x3f403e['type']?0x1:0x0);}function to(_0x41a6a5,_0x245b35){let _0x2a8244,_0x34e8b9=0x0;const _0x290a67=[],_0x374d8d=_0x245b35['schema'];for(;_0x34e8b9<_0x41a6a5['length'];){const _0xa8e1f5=_0x41a6a5[_0x34e8b9],_0xe4d34a=_0x41a6a5[_0x34e8b9+0x1];_0x2a8244||(_0x2a8244=_0x245b35['createPositionBefore'](_0xa8e1f5)),co(_0x245b35,_0xa8e1f5,_0xe4d34a)||(_0x290a67['push'](_0x245b35['createRange'](_0x2a8244,_0x374d8d['isObject'](_0xa8e1f5)?_0x245b35['createPositionAfter'](_0xa8e1f5):_0x245b35['createPositionAt'](_0xa8e1f5,'end'))),_0x2a8244=null),_0x34e8b9++;}return _0x290a67;}function co(_0x54f7ea,_0x2f4460,_0x4fbae0){if(!_0x4fbae0)return!0x1;const _0x217ae4=_0x54f7ea['createPositionAfter'](_0x2f4460),_0x4d4131=_0x54f7ea['createPositionBefore'](_0x4fbae0);return _0x217ae4['isTouching'](_0x4d4131);}function rs(_0x139086,_0x24f9c1,_0x258bda){for(;_0x258bda['length'];){const _0x5e3fee=_0x258bda['splice'](0x0,0x64);_0x139086['change'](()=>{for(const _0x1a5acc of _0x5e3fee)_0x1a5acc['isInContent']&&_0x24f9c1['execute'](_0x1a5acc['id']);});}}class x extends ts{['refresh'](){const _0x298238=Array['from'](this['_suggestions']['values']())['some'](_0x35f322=>_0x35f322['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x298238;}['execute'](){const _0x4e1f57=ss(Array['from'](this['_suggestions']['values']()));for(const _0x1f8c21 of _0x4e1f57){const _0x49bd16=_0x1f8c21['getRanges']();if(!this['editor']['model']['canEditAt'](_0x49bd16))return;}rs(this['editor']['model'],this['_command'],_0x4e1f57);}constructor(_0x5dcf5b,_0x4b972f,_0x455c16){super(_0x5dcf5b),this['_command']=_0x4b972f,this['_suggestions']=_0x455c16,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class R extends ts{['refresh'](){const _0x442e83=this['editor']['model']['document']['selection'],_0x414b74=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3fe49f,_0x3cf271){const _0x12784f=Array['from'](_0x3fe49f['getRanges']()),_0x3cca23=new Set();for(const _0xae5b6a of _0x3cf271)if(_0xae5b6a['isInContent']){for(const _0x59179a of _0x12784f)for(const _0x4a0109 of _0xae5b6a['getRanges']())(_0x59179a['isIntersecting'](_0x4a0109)||_0x3fe49f['isCollapsed']&&!_0xae5b6a['isMultiRange']&&_0xae5b6a['next']&&_0x4a0109['end']['isTouching'](_0x59179a['start']))&&_0x3cca23['add'](_0xae5b6a);}return _0x3cca23;}(_0x442e83,_0x414b74),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x418620=ss(Array['from'](this['_selectedSuggestions']));for(const _0x1a18f0 of _0x418620){const _0x30e588=_0x1a18f0['getRanges']();if(!this['editor']['model']['canEditAt'](_0x30e588))return;}rs(this['editor']['model'],this['_command'],_0x418620);}constructor(_0x24dd5e,_0x2be051,_0x53f215){super(_0x24dd5e),this['_command']=_0x2be051,this['_suggestions']=_0x53f215,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class u extends _0x5279e5(){get['head'](){let _0x1eb26c=this;for(;_0x1eb26c['previous'];)_0x1eb26c=_0x1eb26c['previous'];return _0x1eb26c;}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'](_0x463e04){this['_markerNames']['add'](_0x463e04);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3364c4=>this['_model']['markers']['get'](_0x3364c4))['filter'](_0x35ffff=>_0x35ffff);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x6a1521=>{for(const _0x3c28a3 of this['getMarkers']())_0x6a1521['removeMarker'](_0x3c28a3);}),this['_markerNames']['clear']();}['removeMarker'](_0x58e07b){this['_model']['change'](_0x40cab0=>{_0x40cab0['removeMarker'](_0x58e07b);}),this['_markerNames']['delete'](_0x58e07b);}['addRange'](_0x113243){const _0x165145='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x165145),this['_model']['change'](_0x4483f8=>{_0x4483f8['addMarker'](_0x165145,{'range':_0x113243,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x35686d){for(const _0x23b8e9 of this['getRanges']())if(_0x23b8e9['isIntersecting'](_0x35686d))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5ee80d=>_0x5ee80d['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x21934a,_0x41f255)=>[..._0x21934a,..._0x41f255['getItems']()],[]);}['getFirstRange'](){var _0x36af95;return(null===(_0x36af95=this['getFirstMarker']())||void 0x0===_0x36af95?void 0x0:_0x36af95['getRange']())||null;}['getContainedElement'](){const _0x34ce85=this['getRanges']();if(0x1!=_0x34ce85['length'])return null;const _0x508512=_0x34ce85[0x0],_0x46bdf4=_0x508512['start']['nodeAfter'],_0x2c9302=_0x508512['end']['nodeBefore'];return _0x46bdf4 instanceof _0x4bddb3?_0x46bdf4!=_0x2c9302?null:_0x46bdf4: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 _0xa4147c=[];let _0x6de630=this['head'];for(;_0x6de630;)_0xa4147c['push'](_0x6de630),_0x6de630=_0x6de630['next'];return _0xa4147c;}['setAttribute'](_0x29c07b,_0x4f2c31){const _0x2f6dca=_0xe225ca(this['attributes']);_0x596791(_0x2f6dca,_0x29c07b,_0x4f2c31),_0x2da674(_0x2f6dca,this['attributes'])||(this['attributes']=_0x2f6dca,this['_onAttributesChange'](_0x2f6dca));}['removeAttribute'](_0x4d3b05){const _0x2c0444=_0xe225ca(this['attributes']);_0x2ef1e6(_0x2c0444,_0x4d3b05),_0x2da674(_0x2c0444,this['attributes'])||(this['attributes']=_0x2c0444,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 _0xdda64a()['substr'](0x1,0x5);}constructor(_0x7d1990,_0x5538e2){super(),this['_isDataLoaded']=!0x1,this['id']=_0x5538e2['id'],this['type']=_0x5538e2['type'],this['subType']=_0x5538e2['subType']||null,this['author']=_0x5538e2['author'],this['creator']=_0x5538e2['creator']||_0x5538e2['author'],this['isExternal']=Boolean(_0x5538e2['attributes']&&_0x5538e2['attributes']['@external']),this['data']=null,this['_model']=_0x7d1990,this['_onAccept']=_0x5538e2['onAccept'],this['_onDiscard']=_0x5538e2['onDiscard'],this['_onAttributesChange']=_0x5538e2['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5538e2['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}}function o(_0x4aa10f,_0x2957f5,_0x40e22b){const t=_0x4aa10f['t'];switch(_0x2957f5){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',_0x40e22b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x40e22b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x40e22b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x40e22b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x40e22b);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',_0x40e22b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x40e22b);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',_0x40e22b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x40e22b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x40e22b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x40e22b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x40e22b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x40e22b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x40e22b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x40e22b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x40e22b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x40e22b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x40e22b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x40e22b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x40e22b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x40e22b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x40e22b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x40e22b);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'},_0x40e22b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x40e22b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x40e22b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x40e22b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x40e22b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x40e22b);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'},_0x40e22b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x40e22b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x40e22b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x40e22b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x40e22b);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'},_0x40e22b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x40e22b);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'},_0x40e22b);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'},_0x40e22b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x40e22b);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'},_0x40e22b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x40e22b);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'},_0x40e22b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x40e22b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x40e22b);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'},_0x40e22b);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'},_0x40e22b);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 _0x2957f5;}}class f{['getDescriptions'](_0x33a129){const _0x5cc454=[],_0x1f3db7=new Set(),_0x55f53d=new Set();for(let _0x29c7b6=0x0;_0x29c7b6<_0x33a129['length'];_0x29c7b6++){const _0x3fa7e0=_0x33a129[_0x29c7b6];if(!_0x3fa7e0['isInContent'])continue;const _0x343f87=this['_handleCustomCallbackDescription'](_0x3fa7e0);if(_0x343f87){if(null!=_0x3fa7e0['subType']){if(_0x1f3db7['has'](_0x3fa7e0['subType']))continue;_0x1f3db7['add'](_0x3fa7e0['subType']);}_0x5cc454['push'](_0x343f87);}else{if('attribute'!=_0x3fa7e0['type'])'insertion'!=_0x3fa7e0['type']&&'deletion'!=_0x3fa7e0['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5cc454,_0x3fa7e0,_0x33a129[_0x29c7b6+0x1]);else{const _0x4b4be3=_0x3fa7e0['data']['key'];if(_0x55f53d['has'](_0x4b4be3))continue;_0x55f53d['add'](_0x3fa7e0['data']['key']),_0x4b4be3==m?this['_handleRenameSuggestionDescription'](_0x5cc454,_0x3fa7e0):this['_handleAttributeSuggestionDescription'](_0x5cc454,_0x3fa7e0);}}}return this['_resolveDescriptionItems'](_0x5cc454);}['registerDescriptionCallback'](_0x49e909){this['_customCallbacks']['push'](_0x49e909);}['registerElementLabel'](_0x549e93,_0x518a22,_0x3b64a1=_0x5190c6['normal']){'function'==typeof _0x549e93?_0x6d11c3(this['_itemLabelsCallbacks'],{'matchingCallback':_0x549e93,'label':_0x518a22,'priority':_0x3b64a1}):this['_itemLabels']['set'](_0x549e93,_0x518a22);}['registerAttributeLabel'](_0xb6da4e,_0x10a4fa){this['_attributeLabels']['set'](_0xb6da4e,_0x10a4fa);}['getItemLabel'](_0x1442cf,_0x4c0b9b=0x1){let _0x38ee92;for(const _0x1b3898 of this['_itemLabelsCallbacks'])if(_0x1b3898['matchingCallback'](_0x1442cf)){_0x38ee92=_0x1b3898['label'];break;}return _0x38ee92||(_0x38ee92=this['_itemLabels']['get'](_0x1442cf['name'])),_0x38ee92?_0x38ee92(_0x4c0b9b):0x1!==_0x4c0b9b?_0x4c0b9b+'\x20'+_0x1442cf['name']+'s':''+_0x1442cf['name'];}['_addDescriptionItems'](_0x1f5c1a,_0x530d2f){const _0x235b0e=_0x530d2f['getFirstRange']()['getWalker'](),_0x54066f='insertion'==_0x530d2f['type']?'add':'remove';for(const _0x14268c of _0x235b0e){const _0x4c1050=_0x14268c['item'],_0x2ea04f=_0x1f5c1a[_0x1f5c1a['length']-0x1];if(_0x4c1050['is']('$textProxy'))_0x2ea04f&&_0x2ea04f['type']['indexOf']('Container')>-0x1&&_0x1f5c1a['pop'](),_0x2ea04f&&'text'==_0x2ea04f['type']?_0x2ea04f[_0x54066f]+=_0x4c1050['data']:_0x1f5c1a['push']({'type':'text','add':'add'==_0x54066f?_0x4c1050['data']:'','remove':'remove'==_0x54066f?_0x4c1050['data']:''});else{if(this['_schema']['isObject'](_0x4c1050)){const _0x5e047e=_0x4c1050;if(_0x2ea04f&&_0x2ea04f['type']['indexOf']('Container')>-0x1&&_0x1f5c1a['pop'](),'elementEnd'==_0x14268c['type'])continue;_0x2ea04f&&_0x2ea04f['type']==_0x54066f+'Object'&&_0x2ea04f['element']['name']==_0x5e047e['name']?_0x2ea04f['quantity']++:_0x1f5c1a['push']({'type':_0x54066f+'Object','element':_0x5e047e,'quantity':0x1}),_0x235b0e['skip'](_0x5a12ec=>!('elementEnd'==_0x5a12ec['type']&&_0x5a12ec['item']==_0x4c1050));}else{if(this['_schema']['checkChild'](_0x4c1050,'$text')||_0x4c1050['is']('element','softBreak')){const _0x6b81db=_0x4c1050;if('add'==_0x54066f&&'elementStart'==_0x14268c['type']||'remove'==_0x54066f&&'elementEnd'==_0x14268c['type'])continue;if(_0x2ea04f&&-0x1==_0x2ea04f['type']['indexOf']('Container')){'text'==_0x2ea04f['type']&&(_0x2ea04f[_0x54066f]+='\x0a');continue;}let _0x2e9973;if(_0x2e9973='add'==_0x54066f?_0x6b81db['nextSibling']&&!this['_schema']['isObject'](_0x6b81db['nextSibling'])?_0x6b81db['nextSibling']:null:_0x6b81db['previousSibling']&&!this['_schema']['isObject'](_0x6b81db['previousSibling'])?_0x6b81db['previousSibling']:null,_0x6b81db['isEmpty']||_0x2e9973&&_0x2e9973['isEmpty']){const _0x27d2e3=_0x2e9973&&_0x2e9973['isEmpty']?_0x2e9973:_0x6b81db;_0x2ea04f&&_0x2ea04f['type']==_0x54066f+'EmptyContainer'&&_0x2ea04f['element']['name']==_0x27d2e3['name']?_0x2ea04f['quantity']++:_0x1f5c1a['push']({'type':_0x54066f+'EmptyContainer','element':_0x27d2e3,'quantity':0x1});}else _0x1f5c1a['push']({'type':_0x54066f+'Container','element':_0x6b81db});}}}}}['_resolveDescriptionItems'](_0xbae996){const _0xf2b5de=this['_locale'],_0x30906e=[],_0x17ed0f=[],_0x2a7fcd=[];for(const _0x337dcf of _0xbae996)switch(_0x337dcf['type']){case'text':if(_0x337dcf['add']=_0x337dcf['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x337dcf['remove']=_0x337dcf['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x337dcf['add']&&''!=_0x337dcf['remove']){_0x30906e['push']({'type':'replace','content':o(_0xf2b5de,'REPLACE_TEXT',['\x22'+_0x337dcf['remove']+'\x22','\x22'+_0x337dcf['add']+'\x22'])});continue;}if(null!=_0x337dcf['add']['match'](/^ +$/)){_0x30906e['push']({'type':'insertion','content':o(_0xf2b5de,'*Insert:*\x20%0',o(_0xf2b5de,'ELEMENT_SPACE',_0x337dcf['add']['length']))});continue;}if(null!=_0x337dcf['remove']['match'](/^ +$/)){_0x30906e['push']({'type':'deletion','content':o(_0xf2b5de,'*Remove:*\x20%0',o(_0xf2b5de,'ELEMENT_SPACE',_0x337dcf['remove']['length']))});continue;}if(''!=_0x337dcf['add']){_0x30906e['push']({'type':'insertion','content':o(_0xf2b5de,'*Insert:*\x20%0','\x22'+_0x337dcf['add']+'\x22')});continue;}_0x30906e['push']({'type':'deletion','content':o(_0xf2b5de,'*Remove:*\x20%0','\x22'+_0x337dcf['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x30906e['push']({'type':'insertion','content':o(_0xf2b5de,'*Insert:*\x20%0',this['getItemLabel'](_0x337dcf['element'],_0x337dcf['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x30906e['push']({'type':'deletion','content':o(_0xf2b5de,'*Remove:*\x20%0',this['getItemLabel'](_0x337dcf['element'],_0x337dcf['quantity']))});continue;case'addContainer':_0x30906e['push']({'type':'insertion','content':o(_0xf2b5de,'*Split:*\x20%0',this['getItemLabel'](_0x337dcf['element'],_0x337dcf['quantity']))});continue;case'removeContainer':_0x30906e['push']({'type':'deletion','content':o(_0xf2b5de,'*Merge:*\x20%0',this['getItemLabel'](_0x337dcf['element'],_0x337dcf['quantity']))});continue;case'addFormat':_0x17ed0f['push'](_0x337dcf['key']);continue;case'removeFormat':_0x2a7fcd['push'](_0x337dcf['key']);continue;default:_0x30906e['push'](_0x337dcf);}if(_0x17ed0f['length']){const _0x200f18=_0x17ed0f['map'](_0x27ac90=>this['_attributeLabels']['has'](_0x27ac90)?this['_attributeLabels']['get'](_0x27ac90):_0x27ac90)['join'](',\x20');_0x30906e['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x200f18)});}if(_0x2a7fcd['length']){const _0x1bd886=_0x2a7fcd['map'](_0x22658a=>this['_attributeLabels']['has'](_0x22658a)?this['_attributeLabels']['get'](_0x22658a):_0x22658a)['join'](',\x20');_0x30906e['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1bd886)});}return _0x30906e;}['_handleCustomCallbackDescription'](_0x202a50){for(const _0x2a2dc3 of this['_customCallbacks']){const _0x4c78e7=_0x2a2dc3(_0x202a50);if(_0x4c78e7&&'type'in _0x4c78e7)return _0x4c78e7;}}['_handleAttributeSuggestionDescription'](_0x51eb11,_0x4d7e6a){const _0xef7b53=_0x4d7e6a['data'],_0x21bcf1=void 0x0===_0xef7b53['newValue']?'removeFormat':'addFormat';_0x51eb11['push']({'type':_0x21bcf1,'key':_0xef7b53['key']});}['_handleRenameSuggestionDescription'](_0xe94a17,_0x21e805){_0xe94a17['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x21e805['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2f064d,_0x257116,_0x3b8340){if(this['_addDescriptionItems'](_0x2f064d,_0x257116),_0x3b8340&&_0x3b8340['getFirstRange']()&&!_0x257116['getFirstRange']()['end']['isEqual'](_0x3b8340['getFirstRange']()['start'])){const _0x2f7dec=_0x2f064d[_0x2f064d['length']-0x1],_0x3b9d3e='insertion'==_0x257116['type']?'add':'remove';_0x2f7dec&&'text'==_0x2f7dec['type']&&(_0x2f7dec[_0x3b9d3e]+='\x0a');}}constructor(_0x1e0476,_0x25b5cd){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1e0476,this['_locale']=_0x25b5cd;}}class E extends _0x61eb43{['afterInit'](){const _0x2d0b46=this['editor'],_0x4d301a=_0x2d0b46['plugins']['get']('TrackChangesEditing');_0x2d0b46['commands']['get']('showAIAssistant')&&_0x4d301a['enableCommand']('showAIAssistant');}}class V extends _0x61eb43{['afterInit'](){const _0x200d64=this['editor'],_0x1605e8=_0x200d64['locale'];if(!_0x200d64['plugins']['has']('AlignmentEditing'))return;const _0x1b5d64=_0x200d64['plugins']['get']('TrackChangesEditing');_0x1b5d64['enableDefaultAttributesIntegration']('alignment'),_0x1b5d64['registerBlockAttribute']('alignment'),_0x1b5d64['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1605e8,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39c730=this['editor'],_0x277313=_0x39c730['locale'];_0x39c730['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x311fe8=>{if('formatBlock'!=_0x311fe8['type'])return;const {data:_0x530b9f}=_0x311fe8;if(_0x530b9f&&'alignment'==_0x530b9f['commandName']){const _0xf53738=_0x530b9f['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x277313,'*Format:*\x20%0',function(_0x59fe4f){switch(_0x59fe4f){case'left':return o(_0x277313,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x277313,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x277313,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x277313,'FORMAT_JUSTIFY_TEXT');}}(_0xf53738))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x61eb43{['afterInit'](){const _0x47f75e=this['editor'],_0x921071=_0x47f75e['plugins']['get']('TrackChangesEditing'),_0x24d8c6=_0x47f75e['locale'];for(const _0x20fe27 of ti){if(!_0x47f75e['plugins']['has'](_0x20fe27))continue;const _0x457c3a=_0x20fe27['slice'](0x0,-0x7)['toLowerCase'](),_0x2fa6f5='FORMAT_'+_0x457c3a['toUpperCase']();_0x921071['enableDefaultAttributesIntegration'](_0x457c3a),_0x921071['registerInlineAttribute'](_0x457c3a),_0x921071['descriptionFactory']['registerAttributeLabel'](_0x457c3a,o(_0x24d8c6,_0x2fa6f5));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x939235=this['editor'],_0x2a37e2=_0x939235['locale'],_0x10ccac=_0x939235['plugins']['get']('TrackChangesEditing');function _0x204f5b(_0x57e95c,_0x4fcdd6){_0x10ccac['descriptionFactory']['registerDescriptionCallback'](_0xc793a1=>{if('formatInline'!=_0xc793a1['type'])return;const {data:_0x3f071e}=_0xc793a1;return _0x3f071e&&_0x3f071e['commandName']===_0x57e95c?_0x3f071e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2a37e2,'*Format:*\x20%0',_0x4fcdd6)}:{'type':'format','content':o(_0x2a37e2,'*Remove\x20format:*\x20%0',_0x4fcdd6)}:void 0x0;});}_0x204f5b('bold',o(_0x2a37e2,'FORMAT_BOLD')),_0x204f5b('italic',o(_0x2a37e2,'FORMAT_ITALIC')),_0x204f5b('underline',o(_0x2a37e2,'FORMAT_UNDERLINE')),_0x204f5b('code',o(_0x2a37e2,'FORMAT_CODE')),_0x204f5b('strikethrough',o(_0x2a37e2,'FORMAT_STRIKETHROUGH')),_0x204f5b('subscript',o(_0x2a37e2,'FORMAT_SUBSCRIPT')),_0x204f5b('superscript',o(_0x2a37e2,'FORMAT_SUPERSCRIPT'));}}class O extends _0x61eb43{['afterInit'](){const _0x39156c=this['editor'],_0x5086b=_0x39156c['locale'];if(!_0x39156c['plugins']['has']('BlockQuoteEditing'))return;const _0x5c42a6=_0x39156c['plugins']['get']('TrackChangesEditing'),_0x29e24f=this['editor']['commands']['get']('blockQuote');_0x5c42a6['enableCommand']('blockQuote',(_0xf273f8,_0x54e633={})=>{const _0x508cf4=this['editor']['model']['document']['selection'],_0x36bbec=_0x54e633&&void 0x0!==_0x54e633['forceValue']?_0x54e633['forceValue']:!_0x29e24f['value'];let _0x30a6d9=[];if(_0x36bbec){const _0x197171=Array['from'](_0x508cf4['getSelectedBlocks']())['filter'](_0x8f29ae=>oo(_0x8f29ae)||function(_0x22184e,_0x407e50){const _0xa79b17=_0x407e50['checkChild'](_0x22184e['parent'],'blockQuote'),_0x3ce314=_0x407e50['checkChild'](['$root','blockQuote'],_0x22184e);return _0xa79b17&&_0x3ce314;}(_0x8f29ae,this['editor']['model']['schema']));_0x30a6d9=to(_0x197171,_0x39156c['model']);}else{const _0x1bde6e=Array['from'](_0x508cf4['getSelectedBlocks']())['filter'](_0x55a7d5=>oo(_0x55a7d5));_0x30a6d9=to(_0x1bde6e,_0x39156c['model']);}_0x39156c['model']['change'](()=>{for(const _0xf26726 of _0x30a6d9)_0x5c42a6['markBlockFormat'](_0xf26726,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x36bbec}]});});}),_0x5c42a6['descriptionFactory']['registerDescriptionCallback'](_0x4efb84=>{const {data:_0x120b40}=_0x4efb84;if(_0x120b40&&'blockQuote'==_0x120b40['commandName']){const _0x3e2619=o(_0x5086b,'ELEMENT_BLOCK_QUOTE');return _0x120b40['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5086b,'*Set\x20format:*\x20%0',_0x3e2619)}:{'type':'format','content':o(_0x5086b,'*Remove\x20format:*\x20%0',_0x3e2619)};}});}}function oo(_0x9b8ad6){return'blockQuote'==_0x9b8ad6['parent']['name'];}class F extends _0x61eb43{['afterInit'](){const _0x53c99a=this['editor'];_0x53c99a['plugins']['has']('CaseChange')&&(_0x53c99a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x53c99a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x53c99a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x61eb43{['afterInit'](){const _0x231a3f=this['editor'];_0x231a3f['commands']['get']('ckbox')&&_0x231a3f['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x61eb43{['afterInit'](){const _0x3603ea=this['editor'];if(!_0x3603ea['plugins']['has']('CodeBlock'))return;const _0x48f076=_0x3603ea['plugins']['get']('TrackChangesEditing'),_0x3172e4=_0x3603ea['locale'],_0xa2d790=_0x3603ea['config']['get']('codeBlock')['languages'],_0xa431e6=_0x3603ea['commands']['get']('codeBlock');_0x48f076['enableCommand']('indentCodeBlock'),_0x48f076['enableCommand']('outdentCodeBlock'),_0x48f076['enableCommand']('codeBlock',(_0x2fd4e8,_0x38337e={})=>{const _0x18620a=_0x3603ea['model'],_0x4b3e83=_0x3603ea['model']['document']['selection'],_0x49a618=_0x38337e&&void 0x0!==_0x38337e['forceValue']?_0x38337e['forceValue']:!_0xa431e6['value'];let _0x2ee57a;_0x38337e['language']||(_0x38337e['language']=_0xa2d790[0x0]['language']),_0x2ee57a=_0x49a618?Array['from'](_0x4b3e83['getSelectedBlocks']())['filter'](_0x57891d=>eo(_0x57891d)||function(_0x44accd,_0x537623){if(_0x44accd['is']('rootElement')||_0x537623['isLimit'](_0x44accd))return!0x1;return _0x537623['checkChild'](_0x44accd['parent'],'codeBlock');}(_0x57891d,_0x18620a['schema'])):Array['from'](_0x4b3e83['getSelectedBlocks']())['filter'](_0x5d7952=>eo(_0x5d7952));const _0x5ebb04=to(_0x2ee57a,_0x18620a);_0x18620a['change'](()=>{for(const _0x5bb376 of _0x5ebb04)_0x48f076['markBlockFormat'](_0x5bb376,{'commandName':'codeBlock','commandParams':[{..._0x38337e,'forceValue':_0x49a618}],'formatGroupId':'blockName'});});}),(_0x48f076['descriptionFactory']['registerElementLabel']('codeBlock',_0x47a1c1=>o(_0x3172e4,'ELEMENT_CODE_BLOCK',_0x47a1c1)),_0x48f076['descriptionFactory']['registerDescriptionCallback'](_0x330b40=>{if('formatBlock'!=_0x330b40['type'])return;const _0x2aa257=_0x3172e4['t'],{data:_0x5b2b4a}=_0x330b40;if(!_0x5b2b4a||'codeBlock'!=_0x5b2b4a['commandName'])return;const _0x43f7a5=_0x5b2b4a['commandParams'][0x0]['language'],_0x35b658=_0x2aa257(_0xa2d790['find'](_0xfbdd8=>_0xfbdd8['language']===_0x43f7a5)['label'])['toLowerCase']();return _0x5b2b4a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3172e4,'*Set\x20format:*\x20%0',o(_0x3172e4,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x35b658+')')}:{'type':'format','content':o(_0x3172e4,'*Remove\x20format:*\x20%0',o(_0x3172e4,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x1a2933){return'codeBlock'==_0x1a2933['name'];}class H extends _0x61eb43{['afterInit'](){const _0x59ec84=this['editor'];if(!_0x59ec84['plugins']['has']('CommentsEditing'))return;_0x59ec84['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x331887,_0x349a75,_0x1471c2){const _0x352292=[];for(const _0x77dc6a of _0x349a75['getItems']())_0x77dc6a['hasAttribute'](_0x331887)&&_0x352292['push'](_0x1471c2['createRangeOn'](_0x77dc6a));return _0x352292;}function _e(_0xf92133,_0x533fc9,{showActiveMarker:_0x3df6c4=!0x0}={}){const _0x44f636=_0xf92133['plugins']['get']('TrackChangesEditing');return(_0xb2391,_0xaa9c31,_0x1550ae)=>{if(!_0x1550ae['consumable']['test'](_0xaa9c31['markerRange'],_0xb2391['name']))return;const _0x30a865=_0xaa9c31['markerRange']['getWalker'](),_0xde298c=_0xaa9c31['markerRange']['start'],_0x47509c=_0xf92133['model']['schema'];let _0x2bfccc=null,_0x2162e0=null,_0xfd5d3c=!0x1,_0x47f085=!0x1;for(const _0xa20b8e of _0x30a865){const _0x1d0bfa=_0xa20b8e['item'];_0xfd5d3c=_0xfd5d3c||_0x47509c['isContent'](_0x1d0bfa);const _0x3c5b92=_0x1550ae['mapper']['toViewElement'](_0x1d0bfa);if(_0x3c5b92&&_0x3c5b92['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xa20b8e['type']&&(_0x47509c['isBlock'](_0x1d0bfa)&&!_0x47509c['isLimit'](_0x1d0bfa)&&(_0x1d0bfa['nextSibling']||_0xde298c['isAtEnd']?_0x2bfccc&&_0x2bfccc['parent']==_0x1d0bfa||(_0x2bfccc=_0x1d0bfa,_0x67ff1(_0xa20b8e['previousPosition']),_0x47f085=!0x0):_0x2162e0=_0x2162e0||_0xa20b8e['previousPosition']));}function _0x67ff1(_0x1ced19){const _0x25fa38=_0x1550ae['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x533fc9}),_0x538716=_0x1550ae['mapper']['toViewPosition'](_0x1ced19);_0x3df6c4&&_0x44f636['activeMarkers']['includes'](_0xaa9c31['markerName'])&&_0x1550ae['writer']['addClass']('ck-suggestion-marker--active',_0x25fa38),_0x1550ae['writer']['insert'](_0x538716,_0x25fa38),_0x1550ae['mapper']['bindElementToMarker'](_0x25fa38,_0xaa9c31['markerName']);}_0xfd5d3c||_0x47f085||!_0x2162e0||_0x67ff1(_0x2162e0);};}class q extends _0x61eb43{static get['requires'](){return[_0x2b1bb1];}['init'](){const _0x1cf4ac=this['editor'],_0x529306=_0x1cf4ac['plugins']['get']('TrackChangesEditing');_0x529306['enableCommand']('delete');const _0x295a96=_0x1cf4ac['commands']['get']('deleteForward');_0x529306['enableCommand']('deleteForward',(_0xd00559,_0x453474={})=>{const _0x152afc=_0x1cf4ac['model']['createSelection'](_0x1cf4ac['model']['document']['selection']);_0x152afc['isCollapsed']&&_0x1cf4ac['model']['modifySelection'](_0x152afc,{'direction':'forward','unit':_0x453474['unit']});const _0x423221=_0x152afc['getFirstRange'](),_0x3f5ebd=_0x2819a3['fromRange'](_0x423221);let _0x5ab871;_0xd00559(_0x453474),_0x5ab871='$graveyard'==_0x3f5ebd['root']['rootName']?_0x1cf4ac['model']['createRange'](_0x423221['start']):_0x1cf4ac['model']['createRange'](_0x3f5ebd['start'],_0x3f5ebd['end']),_0x3f5ebd['detach'](),_0x1cf4ac['model']['enqueueChange'](_0x295a96['buffer']['batch'],_0x74099d=>{_0x295a96['buffer']['lock'](),_0x74099d['setSelection'](_0x74099d['createRange'](_0x5ab871['end'])),_0x295a96['buffer']['unlock']();});}),_0x1cf4ac['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x1cf4ac,'merge'),{'priority':'high'}),_0x1cf4ac['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x405f5e,_0x530b16,_0x17cec6)=>{_0x17cec6['options']['showSuggestionHighlights']&&_e(_0x1cf4ac,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x405f5e,_0x530b16,_0x17cec6);},{'priority':'high'}),_0x1cf4ac['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4c93bb,_0x11e7ad,_0x3731fc)=>{const _0x330ef9=_0x3731fc['mapper']['markerNameToElements'](_0x11e7ad['markerName']);if(_0x330ef9){for(const _0x1bc62d of _0x330ef9)_0x1bc62d['is']('uiElement')&&(_0x3731fc['mapper']['unbindElementFromMarkerName'](_0x1bc62d,_0x11e7ad['markerName']),_0x3731fc['writer']['remove'](_0x1bc62d));}},{'priority':'high'});}}class z extends _0x61eb43{['afterInit'](){const _0x53cbcd=this['editor'];if(!_0x53cbcd['plugins']['has']('ListEditing'))return;const _0x3ca8b7=_0x53cbcd['locale'],_0x48c74c=_0x53cbcd['plugins']['get']('TrackChangesEditing'),_0x24de1d=_0x53cbcd['plugins']['has']('TodoListEditing'),_0x55c266=!!_0x53cbcd['config']['get']('list.multiBlock');function _0x17121b(_0x210828){return{'type':'format','content':''+o(_0x3ca8b7,'*Set\x20format:*\x20%0',_0x210828)};}function _0x1e4172(_0x5e1472){return{'type':'format','content':''+o(_0x3ca8b7,'*Remove\x20format:*\x20%0',_0x5e1472)};}_0x48c74c['enableDefaultAttributesIntegration']('numberedList'),_0x48c74c['enableDefaultAttributesIntegration']('bulletedList'),_0x48c74c['enableDefaultAttributesIntegration']('customNumberedList'),_0x48c74c['enableDefaultAttributesIntegration']('customBulletedList'),_0x48c74c['enableDefaultAttributesIntegration']('indentList'),_0x48c74c['enableDefaultAttributesIntegration']('outdentList'),_0x48c74c['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x48c74c['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x48c74c['registerBlockAttribute']('listItemId'),_0x48c74c['registerBlockAttribute']('listType'),_0x48c74c['registerBlockAttribute']('listIndent'),_0x55c266&&(_0x48c74c['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x48c74c['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x24de1d&&(_0x48c74c['enableDefaultAttributesIntegration']('todoList'),_0x48c74c['enableDefaultAttributesIntegration']('checkTodoList'),_0x48c74c['registerBlockAttribute']('todoListChecked'),_0x48c74c['descriptionFactory']['registerDescriptionCallback'](_0x35f923=>{const {data:_0x494c2c}=_0x35f923;if(_0x494c2c&&'todoListChecked'==_0x494c2c['key'])return{'type':'format','content':_0x494c2c['newValue']?o(_0x3ca8b7,'*Check\x20item*'):o(_0x3ca8b7,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x362071=>{if(_0x362071['batch']['isUndo'])return!0x1;let _0x31e4f8=!0x1;const _0x1684f0=_0x48c74c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe7558c=>'todoListChecked'===_0x48c74c['_getAttributeKey'](_0xe7558c));for(const _0x53f4c of _0x1684f0){'todo'!=_0x53f4c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x48c74c['_findSuggestions'](_0x53f4c['getFirstRange'](),'attribute')['find'](_0x7e39c5=>'listType'===_0x48c74c['_getAttributeKey'](_0x7e39c5['suggestion']))||(_0x362071['removeMarker'](_0x53f4c['getFirstMarker']()),_0x31e4f8=!0x0));}return _0x31e4f8;})),_0x48c74c['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x3ca8b7,'FORMAT_INDENT'));const _0xa41052={'type':'format','content':''};_0x48c74c['descriptionFactory']['registerDescriptionCallback'](_0x4f0a63=>{const {data:_0x2b5fb1}=_0x4f0a63;if(!_0x2b5fb1||'listType'!=_0x2b5fb1['key'])return;let _0x3baae8=_0x4f0a63['head'];for(;_0x3baae8;){if(_0x3baae8['data']&&(('listStyle'==_0x3baae8['data']['key']||'listMarkerStyle'==_0x3baae8['data']['key'])&&(_0x3baae8['data']['newValue']&&'default'!=_0x3baae8['data']['newValue']||'default'!=_0x3baae8['data']['oldValue']&&!_0x2b5fb1['newValue'])||!_0x55c266&&_0x3baae8['data']['key']==m))return _0xa41052;_0x3baae8=_0x3baae8['next'];}if(null==_0x2b5fb1['newValue'])switch(_0x2b5fb1['oldValue']){case'bulleted':return _0x1e4172(o(_0x3ca8b7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1e4172(o(_0x3ca8b7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1e4172(o(_0x3ca8b7,'ELEMENT_TODO_LIST'));}switch(_0x2b5fb1['newValue']){case'bulleted':return _0x17121b(o(_0x3ca8b7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x17121b(o(_0x3ca8b7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x17121b(o(_0x3ca8b7,'ELEMENT_TODO_LIST'));}}),_0x48c74c['descriptionFactory']['registerDescriptionCallback'](_0x5c8dff=>{const {data:_0xc7de00}=_0x5c8dff;if(_0xc7de00&&'listIndent'==_0xc7de00['key'])return null==_0xc7de00['newValue']||null==_0xc7de00['oldValue']&&0x0==_0xc7de00['newValue']?_0xa41052:void 0x0;}),_0x48c74c['descriptionFactory']['registerDescriptionCallback'](_0x521719=>{if('attribute'!=_0x521719['type'])return;const {data:_0x5a46e0}=_0x521719;if(!_0x5a46e0||'listItemId'!=_0x5a46e0['key'])return;const _0x2d0b3d=le(_0x521719);return'newValue'==_0x2d0b3d?{'type':'format','content':o(_0x3ca8b7,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2d0b3d?{'type':'format','content':o(_0x3ca8b7,'*Split:*\x20list\x20item')}:_0xa41052;}),_0x53cbcd['model']['document']['registerPostFixer'](_0x2ea7e4=>this['listItemIdFixer'](_0x2ea7e4)),_0x53cbcd['model']['document']['registerPostFixer'](_0x986477=>this['noTrackChangesFixer'](_0x986477)),_0x53cbcd['model']['document']['registerPostFixer'](_0x128441=>this['assureChains'](_0x128441)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5bbbdc){if(_0x5bbbdc['batch']['isUndo']||!_0x5bbbdc['batch']['isLocal'])return!0x1;let _0x1be83f=!0x1;const _0x3a9a88=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1d6fe6=>_0x1d6fe6['data']&&'listItemId'==_0x1d6fe6['data']['key'])['filter'](_0x778eb4=>_0x778eb4['data']['newValue']&&_0x778eb4['data']['oldValue']);for(const _0x3c0f6e of _0x3a9a88)le(_0x3c0f6e)||(_0x5bbbdc['removeMarker'](_0x3c0f6e['getFirstMarker']()),_0x1be83f=!0x0);return _0x1be83f;}['noTrackChangesFixer'](_0x11cd99){if(_0x11cd99['batch']['isUndo']||!_0x11cd99['batch']['isLocal'])return!0x1;const _0x41efe9=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x41efe9['trackChangesCommand']['value'])return!0x1;let _0x5f58ce=!0x1;const _0xa83e6d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4fbb00=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4698bf=>'attribute'==_0x4698bf['type'])['filter'](_0x585048=>_0xa83e6d['includes'](_0x585048['attributeKey']));if(0x0==_0x4fbb00['length'])return _0x5f58ce;for(const _0x358a1c of _0x4fbb00){const _0x172b7d=_0x41efe9['_findSuggestions'](_0x358a1c['range'],'attribute')['filter'](_0x495601=>!_0x495601['meta']['isNextTo'])['map'](_0x4e0570=>_0x4e0570['suggestion'])['filter'](_0x3640cb=>{const _0x3b7330=_0x41efe9['_getAttributeKey'](_0x3640cb);return _0xa83e6d['includes'](_0x3b7330);});if(_0x172b7d['length']){for(const _0x513385 of _0x172b7d)_0x11cd99['removeMarker'](_0x513385['getFirstMarker']());_0x5f58ce=!0x0;}}return _0x5f58ce;}['assureChains'](_0x122eaa){if(_0x122eaa['batch']['isUndo']||!_0x122eaa['batch']['isLocal'])return!0x1;const _0x4823f2=this['editor']['plugins']['get']('TrackChangesEditing');let _0x2b2e6e=!0x1;const _0x12d288=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x195013 of _0x4823f2['getSuggestions']({'skipNotAttached':!0x0})){const _0x38757a=_0x4823f2['_findSuggestions'](_0x195013['getFirstRange'](),'attribute')['map'](_0x4ee8dd=>_0x4ee8dd['suggestion'])['filter'](_0x20b434=>_0x20b434['data']&&_0x12d288['includes'](_0x20b434['data']['key']));if(!_0x38757a['length'])continue;const _0xb25bb0=_0x38757a[0x0]['head']['attributes']['groupId'];if(!_0x38757a['every'](_0x3a8b58=>_0x3a8b58['attributes']['groupId']===_0xb25bb0)){for(const _0x2402d7 of _0x38757a)_0x355804(_0x2402d7,_0xb25bb0)&&(_0x2b2e6e=!0x0);}}return _0x2b2e6e;function _0x2c9063(_0x149237,_0x41d567){for(const _0x5bd498 of _0x4823f2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d6431=>'attribute'==_0x3d6431['type']&&_0x3d6431['attributes']['groupId']==_0x149237))_0x5bd498['setAttribute']('groupId',_0x41d567);}function _0x355804(_0x17c2ae,_0x3fabf5){let _0x1a9926=_0x17c2ae['head'],_0x3bd7ac=!0x1;for(;_0x1a9926;)_0x1a9926['attributes']['groupId']!=_0x3fabf5&&(_0x2c9063(_0x1a9926['attributes']['groupId'],_0x3fabf5),_0x1a9926['setAttribute']('groupId',_0x3fabf5),_0x3bd7ac=!0x0),_0x1a9926=_0x1a9926['next'];return _0x3bd7ac;}}['_supportLegacySuggestions'](){const _0x13d11a=this['editor'],_0x3d5038=_0x13d11a['locale'],_0x44a6ac=_0x13d11a['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x44a6ac['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4ed36e,_0x20c1d1){const _0x31c859=[];for(let _0x146569 of _0x4ed36e)_0x146569['start']['nodeAfter']===_0x146569['end']['parent']&&(_0x146569=_0x13d11a['model']['createRange'](_0x13d11a['model']['createPositionAt'](_0x146569['start']['nodeAfter'],0x0))),_0x31c859['push'](_0x146569);_0x13d11a['model']['change'](_0x2e1ca8=>{const _0x119ebc=_0x13d11a['model']['document']['selection'],_0x1d618b=Array['from'](_0x119ebc['getRanges']())['map'](_0x8224c0=>_0x2819a3['fromRange'](_0x8224c0));_0x2e1ca8['setSelection'](_0x31c859),_0x13d11a['commands']['get'](_0x20c1d1['commandName'])['refresh'](),_0x20c1d1['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x13d11a['execute'](_0x20c1d1['commandName'],..._0x20c1d1['commandParams']),_0x2e1ca8['setSelection'](_0x1d618b);for(const _0x19b278 of _0x1d618b)_0x19b278['detach']();});}),_0x44a6ac['descriptionFactory']['registerElementLabel'](function(_0x4f6f55){const _0x328bc1=!_0x13d11a['model']['schema']['isObject'](_0x4f6f55),_0x4377f7=_0x4f6f55['previousSibling'],_0xe31ad6=_0x4f6f55['nextSibling'],_0xf4012d=_0x4f6f55['getAttribute']('listItemId'),_0xf7beac=!_0x4377f7||_0x4377f7['getAttribute']('listItemId')!==_0xf4012d,_0x3e8ef7=!_0xe31ad6||_0xe31ad6['getAttribute']('listItemId')!==_0xf4012d;return _0x328bc1&&Boolean(_0xf4012d)&&_0xf7beac&&_0x3e8ef7;},_0x1e4408=>o(_0x3d5038,'ELEMENT_LIST_ITEM',_0x1e4408));}['_registerLegacyDescription'](){const _0x498f32=this['editor'],_0x25bb8a=_0x498f32['locale'];function _0x921d81(_0xac9905){const _0x36428c=_0x498f32['commands']['get']('bulletedList')['value'],_0x1c7af6=_0x498f32['commands']['get']('numberedList')['value'];return'numberedList'===_0xac9905?_0x36428c:_0x1c7af6;}_0x498f32['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xcac629){if('formatBlock'!=_0xcac629['type'])return;const {data:_0x4dba95}=_0xcac629;if(!_0x4dba95)return;let _0x304d2d,_0x2ed37f,_0x5522be,_0x19a6da;switch(_0x4dba95['commandName']){case'bulletedList':_0x5522be=_0x4dba95['commandParams'][0x0]['forceValue'],_0x19a6da=_0x921d81(_0x4dba95['commandName']),_0x304d2d=_0x5522be?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x19a6da&&_0x498f32['config']['get']('list.multiBlock')||(_0x304d2d='*Change\x20to:*\x20%0'),_0x2ed37f={'type':'format','content':o(_0x25bb8a,_0x304d2d,o(_0x25bb8a,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5522be=_0x4dba95['commandParams'][0x0]['forceValue'],_0x19a6da=_0x921d81(_0x4dba95['commandName']),_0x304d2d=_0x5522be?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x19a6da&&_0x498f32['config']['get']('list.multiBlock')||(_0x304d2d='*Change\x20to:*\x20%0'),_0x2ed37f={'type':'format','content':o(_0x25bb8a,_0x304d2d,o(_0x25bb8a,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x304d2d='*Indent:*\x20%0',_0x2ed37f={'type':'format','content':o(_0x25bb8a,_0x304d2d,o(_0x25bb8a,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x304d2d=function(_0x8208a9){const _0xd94f0d=_0x8208a9['getFirstRange']();let _0x2d2f91=_0xd94f0d['start']['nodeAfter'];for(;_0x2d2f91&&_0xd94f0d['containsItem'](_0x2d2f91);){if(_0x2d2f91['getAttribute']('listIndent')>0x0)return!0x1;_0x2d2f91=_0x2d2f91['nextSibling'];}return!0x0;}(_0xcac629)?o(_0x25bb8a,'*Format:*\x20remove\x20from\x20%0',o(_0x25bb8a,function(_0x3e5572){return'ELEMENT_'+_0x3e5572['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xcac629))):o(_0x25bb8a,'*Outdent:*\x20%0',o(_0x25bb8a,'ELEMENT_LIST_ITEM')),_0x2ed37f={'type':'format','content':_0x304d2d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4dba95['multipleBlocks']&&(_0x304d2d='*Merge:*\x20%0',_0x2ed37f={'type':'deletion','content':o(_0x25bb8a,_0x304d2d,o(_0x25bb8a,'ELEMENT_LIST_ITEM'))});}return _0x2ed37f;});}}function le(_0x2d8d66){let _0x438bea=_0x2d8d66['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x438bea;){const _0xbaaffa=_0x438bea['getAttribute']('listItemId');if(!_0xbaaffa)return!0x1;if(_0xbaaffa==_0x2d8d66['data']['newValue'])return'newValue';if(_0xbaaffa==_0x2d8d66['data']['oldValue'])return'oldValue';_0x438bea=_0x438bea['previousSibling'];}return!0x1;}class ue extends _0x61eb43{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5f1bb2=this['editor']['config']['get']('list.properties'),_0x15d26b=this['editor']['plugins']['get']('TrackChangesEditing');_0x5f1bb2['styles']&&(_0x15d26b['enableDefaultAttributesIntegration']('listStyle'),_0x15d26b['registerBlockAttribute']('listStyle')),_0x5f1bb2['reversed']&&(_0x15d26b['enableDefaultAttributesIntegration']('listReversed'),_0x15d26b['registerBlockAttribute']('listReversed')),_0x5f1bb2['startIndex']&&(_0x15d26b['enableDefaultAttributesIntegration']('listStart'),_0x15d26b['registerBlockAttribute']('listStart'));const _0x24de89={'type':'format','content':''};_0x15d26b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1f33b0=this['editor']['locale'];_0x15d26b['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x1f33b0,'FORMAT_LIST_REVERSED')),_0x15d26b['descriptionFactory']['registerDescriptionCallback'](_0x1a9745=>{const {data:_0x3be96c}=_0x1a9745;if(_0x3be96c&&'listReversed'==_0x3be96c['key'])return null==_0x3be96c['newValue']||0x0==_0x3be96c['newValue']&&null==_0x3be96c['oldValue']?_0x24de89:void 0x0;}),_0x15d26b['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x1f33b0,'FORMAT_LIST_START')),_0x15d26b['descriptionFactory']['registerDescriptionCallback'](_0x86dbca=>{const {data:_0x2962b4}=_0x86dbca;if(_0x2962b4&&'listStart'==_0x2962b4['key'])return null==_0x2962b4['newValue']||0x1==_0x2962b4['newValue']&&null==_0x2962b4['oldValue']?_0x24de89:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2de28e=>{if(_0x2de28e['batch']['isUndo'])return!0x1;let _0x4f890f=!0x1;const _0x36c91a=_0x15d26b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x44bb44=>{const _0x18aa34=_0x15d26b['_getAttributeKey'](_0x44bb44);return'listStart'==_0x18aa34||'listReversed'==_0x18aa34;});for(const _0x5cdb3c of _0x36c91a){const _0x39055d=_0x5cdb3c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x39055d||'customNumbered'==_0x39055d)continue;_0x15d26b['_findSuggestions'](_0x5cdb3c['getFirstRange'](),'attribute')['find'](_0x589a12=>'listType'==_0x15d26b['_getAttributeKey'](_0x589a12['suggestion']))||(_0x2de28e['removeMarker'](_0x5cdb3c['getFirstMarker']()),_0x4f890f=!0x0);}return _0x4f890f;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xa7d8f9){const _0x24cab9=this['editor']['locale'],{data:_0x4dd2cb}=_0xa7d8f9,_0x223bd6={'type':'format','content':''};if(!_0x4dd2cb||'listStyle'!=_0x4dd2cb['key'])return;if(!_0x4dd2cb['oldValue'])return'default'==_0x4dd2cb['newValue']?_0x223bd6:{'type':'format','content':''+o(_0x24cab9,'*Set\x20format:*\x20%0',o(_0x24cab9,this['_getTranslationKeyForListStyle'](_0x4dd2cb['newValue'])))};if(!_0x4dd2cb['newValue']){if('default'==_0x4dd2cb['oldValue'])return _0x223bd6;let _0x4bfa6a=_0xa7d8f9['head'];for(;_0x4bfa6a;){if(_0x4bfa6a['data']&&'listType'==_0x4bfa6a['data']['key']&&_0x4bfa6a['data']['newValue'])return _0x223bd6;_0x4bfa6a=_0x4bfa6a['next'];}return{'type':'format','content':''+o(_0x24cab9,'*Remove\x20format:*\x20%0',o(_0x24cab9,this['_getTranslationKeyForListStyle'](_0x4dd2cb['oldValue'])))};}if('default'!=_0x4dd2cb['newValue'])return{'type':'format','content':''+o(_0x24cab9,'*Set\x20format:*\x20%0',o(_0x24cab9,this['_getTranslationKeyForListStyle'](_0x4dd2cb['newValue'])))};let _0x598c3b=_0xa7d8f9['head'];for(;_0x598c3b;){if(_0x598c3b['data']&&'listType'==_0x598c3b['data']['key']&&_0x598c3b['data']['newValue']&&_0x598c3b['data']['oldValue'])return _0x223bd6;_0x598c3b=_0x598c3b['next'];}return{'type':'format','content':o(_0x24cab9,'*Set\x20format:*\x20%0',o(_0x24cab9,'ELEMENT_'+_0xa7d8f9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x302b6a=this['editor'],_0x33eca3=_0x302b6a['locale'];_0x302b6a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x97cbcb=>{if('formatBlock'!=_0x97cbcb['type'])return;const {data:_0x2efcc0}=_0x97cbcb;if(!_0x2efcc0)return;let _0x1768ea,_0x339804;switch(_0x2efcc0['commandName']){case'listStyle':_0x1768ea='*Change\x20to:*\x20%0',_0x339804={'type':'format','content':o(_0x33eca3,_0x1768ea,o(_0x33eca3,this['_getTranslationKeyForListStyle'](_0x2efcc0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1768ea=_0x2efcc0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x339804={'type':'format','content':o(_0x33eca3,_0x1768ea)};break;case'listStart':_0x1768ea='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x339804={'type':'format','content':o(_0x33eca3,_0x1768ea,_0x2efcc0['commandParams'][0x0]['startIndex'])};}return _0x339804;});}['_getTranslationKeyForListStyle'](_0x5375a2){return'ELEMENT_'+function(_0x450186){if(pe['includes'](_0x450186))return'bulleted';if(ye['includes'](_0x450186))return'numbered';return null;}(_0x5375a2)['toUpperCase']()+'_LIST_'+_0x5375a2['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x61eb43{static get['requires'](){return[_0x46f1e2];}['init'](){const _0x212905=this['editor'],_0x34aa3f=_0x212905['plugins']['get']('TrackChangesEditing'),_0x196b40=_0x212905['commands']['get']('enter');_0x34aa3f['enableCommand']('enter',()=>{_0x212905['model']['change'](_0x5177ee=>{const _0x44f738=_0x212905['model']['document']['selection'],_0x3ad461=_0x44f738['getFirstPosition'](),_0x4efab9=_0x2819a3['fromRange'](_0x44f738['getFirstRange']());if(_0x196b40['enterBlock'](_0x5177ee)){const _0x2bdad0=_0x212905['model']['createPositionAt'](_0x3ad461['parent']['nextSibling'],0x0),_0x35c132=_0x5177ee['createRange'](_0x3ad461,_0x2bdad0);_0x34aa3f['markInsertion'](_0x35c132);}else _0x5177ee['setSelection'](_0x5177ee['createRange'](_0x4efab9['end']));_0x4efab9['detach'](),_0x196b40['fire']('afterExecute',{'writer':_0x5177ee});});}),_0x212905['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x212905,'split'),{'priority':'high'}),_0x212905['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xac25d2,_0x5eba1f,_0x2ba746)=>{const _0x1c2647=_0x2ba746['mapper']['markerNameToElements'](_0x5eba1f['markerName']);if(_0x1c2647){for(const _0x1b983f of _0x1c2647)_0x1b983f['hasClass']('ck-suggestion-marker-split')&&(_0x2ba746['mapper']['unbindElementFromMarkerName'](_0x1b983f,_0x5eba1f['markerName']),_0x2ba746['writer']['remove'](_0x1b983f));}},{'priority':'high'}),_0x212905['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x555b11,_0x4df7cd,_0x48b4af)=>{_0x48b4af['options']['showSuggestionHighlights']&&_e(_0x212905,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x555b11,_0x4df7cd,_0x48b4af);},{'priority':'high'});}}class J extends _0x61eb43{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4721da=this['editor']['plugins']['get']('TrackChangesEditing');_0x4721da['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4721da['enableCommand']('findNext'),_0x4721da['enableCommand']('findPrevious'),_0x4721da['enableCommand']('replace'),_0x4721da['enableCommand']('replaceAll');}['handleFindCommand'](_0x103117,_0x407798,_0x4d3f8d={}){const _0x4f4981=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x103117(_0x2a6bf0=>('string'==typeof _0x407798?_0x4f4981['findByTextCallback'](_0x407798,_0x4d3f8d):_0x407798)(_0x2a6bf0)['filter'](_0x2a2998=>!0x1===this['_isInDeletionRange'](_0x2a2998,_0x2a6bf0['item'])),_0x4d3f8d);}['_isInDeletionRange'](_0x3c841e,_0x2c1776){const _0x5d3972=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2c1776,_0x3c841e['start']),this['editor']['model']['createPositionAt'](_0x2c1776,_0x3c841e['end']));for(const _0x1ce12e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5d3972['getIntersection'](_0x1ce12e['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 _0x61eb43{['afterInit'](){const _0x36cec4=this['editor']['locale'],_0x4ca5e9=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x22cf4a,commandName:_0x2cac78}of ro)this['editor']['plugins']['has'](_0x22cf4a)&&(_0x4ca5e9['enableDefaultAttributesIntegration'](_0x2cac78),_0x4ca5e9['registerInlineAttribute'](_0x2cac78));_0x36cec4['t'],_0x4ca5e9['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x36cec4,'FORMAT_FONT_SIZE')),_0x4ca5e9['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x36cec4,'FORMAT_FONT_FAMILY')),_0x4ca5e9['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x36cec4,'FORMAT_FONT_COLOR')),_0x4ca5e9['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x36cec4,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b55aa=this['editor'],_0x4ee54b=_0x2b55aa['locale'];_0x2b55aa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x460883=>{const _0x41e105=_0x4ee54b['t'];if('formatInline'!=_0x460883['type'])return;const {data:_0x2a6b16}=_0x460883;if(null!=_0x2a6b16){if('fontSize'==_0x2a6b16['commandName']){const _0xea9f0=_0x2a6b16['commandParams'][0x0]['value'];if(_0xea9f0){const _0x308f80=_0x41e105(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2290d3=>_0x2290d3['model']==_0xea9f0)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4ee54b,'*Set\x20font\x20size:*\x20%0',_0x308f80)};}return{'type':'format','content':o(_0x4ee54b,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2a6b16['commandName']){const _0x391be0=_0x2a6b16['commandParams'][0x0]['value'];return _0x391be0?{'type':'format','content':o(_0x4ee54b,'*Set\x20font\x20family:*\x20%0',_0x391be0)}:{'type':'format','content':o(_0x4ee54b,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2a6b16['commandName']){const _0x151fdf=_0x2a6b16['commandParams'][0x0]['value'];if(_0x151fdf){const _0x58ddd9=_0x5a7d3d(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2711ac=>_0x2711ac['model']==_0x151fdf);let _0x23ae12=_0x151fdf,_0x2921c2='';return _0x58ddd9&&(_0x23ae12=_0x58ddd9['label'],_0x2921c2=_0x41e105(_0x23ae12)['toLowerCase']()),{'type':'format','content':o(_0x4ee54b,'*Set\x20font\x20color:*\x20%0',_0x2921c2)['trim'](),'color':{'value':_0x151fdf,'title':_0x2921c2||_0x23ae12}};}return{'type':'format','content':o(_0x4ee54b,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2a6b16['commandName']){const _0x16aac5=_0x2a6b16['commandParams'][0x0]['value'];if(_0x16aac5){const _0x294642=_0x5a7d3d(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x305ce9=>_0x305ce9['model']==_0x16aac5);let _0x399431=_0x16aac5,_0x306403='';return _0x294642&&(_0x399431=_0x294642['label'],_0x306403=_0x41e105(_0x399431)['toLowerCase']()),{'type':'format','content':o(_0x4ee54b,'*Set\x20font\x20background\x20color:*\x20%0',_0x306403)['trim'](),'color':{'value':_0x16aac5,'title':_0x306403||_0x399431}};}return{'type':'format','content':o(_0x4ee54b,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x61eb43{['afterInit'](){const _0x58ae89=this['editor'],_0x196ca9=_0x58ae89['plugins']['get']('TrackChangesEditing'),_0x1e21b2=_0x58ae89['commands']['get']('copyFormat'),_0x5a7697=_0x58ae89['commands']['get']('pasteFormat');_0x1e21b2&&_0x5a7697&&(_0x196ca9['enableDefaultAttributesIntegration']('pasteFormat'),_0x196ca9['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1ca1e8=this['editor'],_0x928d95=_0x1ca1e8['locale'];_0x1ca1e8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19a185=>{if('formatBlock'!=_0x19a185['type']&&'formatInline'!=_0x19a185['type'])return;const {data:_0x35b1c1}=_0x19a185;if(_0x35b1c1&&'pasteFormat'===_0x35b1c1['commandName']){const _0x4f56c8=[],_0x4445c3=_0x35b1c1['commandParams'][0x0];for(const [_0x3b4e35,_0x2c2126]of Object['entries'](_0x4445c3))_0x4f56c8['push'](so(_0x1ca1e8,_0x3b4e35,_0x2c2126));return _0x4f56c8['length']?{'type':'format','content':o(_0x928d95,'*Set\x20format\x20to:*\x20%0',_0x4f56c8['join'](',\x20'))}:{'type':'format','content':o(_0x928d95,'*Remove\x20all\x20formatting*')};}});}}function so(_0x3b1d38,_0x49af31,_0x4a09f7){const _0x336dea=_0x3b1d38['locale']['t'],_0x8231c=_0x49af31['split'](/(?=[A-Z])/)['join']('\x20'),_0x51c96d=_0x336dea(_0x8231c['charAt'](0x0)['toUpperCase']()+_0x8231c['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4a09f7)return _0x51c96d;if('fontColor'===_0x49af31||'fontBackgroundColor'===_0x49af31){const _0x46be6b=_0x5a7d3d(_0x3b1d38['config']['get']('fontColor.colors'))['find'](_0x34770a=>_0x34770a['model']==_0x4a09f7);return _0x51c96d+'\x20('+(_0x46be6b?_0x336dea(_0x46be6b['label'])['toLowerCase']():_0x4a09f7)+')';}if('fontSize'===_0x49af31&&isNaN(parseFloat(_0x4a09f7))){const _0x403ea4=_0x3b1d38['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3b1d38['config']['get']('fontSize.options'))['find'](_0x765d90=>_0x765d90['model']==_0x4a09f7);return _0x51c96d+'\x20('+(_0x403ea4?_0x336dea(_0x403ea4['title'])['toLowerCase']():_0x4a09f7)+')';}return _0x51c96d+'\x20('+_0x4a09f7+')';}class Y extends _0x61eb43{['afterInit'](){const _0x4fd947=this['editor'];if(!_0x4fd947['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4fd947['config']['get']('heading.options');const _0x3be84d=_0x4fd947['locale'],_0x3e92a7=_0x4fd947['plugins']['get']('TrackChangesEditing');_0x3e92a7['enableDefaultAttributesIntegration']('heading');for(const _0x2d0fcb of this['_headingOptions'])'paragraph'!=_0x2d0fcb['model']&&_0x3e92a7['descriptionFactory']['registerElementLabel'](_0x2d0fcb['model'],_0x40b359=>{const _0x4d13ad=this['_getHeadingLevel'](_0x2d0fcb['model']);return null!==_0x4d13ad?_0x49f03c(_0x40b359,_0x4d13ad):_0x509d12(_0x40b359,_0x2d0fcb['title']);});function _0x49f03c(_0x52e8ff,_0x148d19){return o(_0x3be84d,'ELEMENT_HEADING',[_0x52e8ff,_0x148d19]);}function _0x509d12(_0x4d4faf,_0x3aa0af){return o(_0x3be84d,'ELEMENT_HEADING_CUSTOM',[_0x4d4faf,_0x3aa0af]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2bed4b=this['editor'],_0x23b7d9=_0x2bed4b['locale'];function _0x310ee5(_0x45adf9,_0x65c53){return o(_0x23b7d9,'ELEMENT_HEADING_CUSTOM',[_0x45adf9,_0x65c53]);}_0x2bed4b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4425e2=>{if('formatBlock'!=_0x4425e2['type'])return;const {data:_0x420949}=_0x4425e2;if(_0x420949&&'heading'==_0x420949['commandName']){const _0x597334=_0x420949['commandParams'][0x0]['value'],_0x2d1096=this['_getHeadingLevel'](_0x597334);if(null!==_0x2d1096)return{'type':'format','content':o(_0x23b7d9,'*Change\x20to:*\x20%0',(_0x209d6a=0x1,_0x4dd3b6=_0x2d1096,o(_0x23b7d9,'ELEMENT_HEADING',[_0x209d6a,_0x4dd3b6])))};const _0xaee09b=this['_headingOptions']['find'](_0x391caf=>_0x391caf['model']===_0x597334)['title'];return{'type':'format','content':o(_0x23b7d9,'*Change\x20to:*\x20%0',_0x310ee5(0x1,_0xaee09b))};}var _0x209d6a,_0x4dd3b6;});}['_getHeadingLevel'](_0x272d18){var _0x4964cd,_0x723c49;const _0x122553=_0x272d18['match'](/^heading(\d+)/);if(_0x122553)return _0x122553[0x1];const _0x34e3c8=null===(_0x4964cd=this['_headingOptions'])||void 0x0===_0x4964cd?void 0x0:_0x4964cd['find'](_0xe094e8=>_0xe094e8['model']==_0x272d18);if(_0x34e3c8&&_0x34e3c8['view']){const _0xb0a1a5=_0x34e3c8['view'],_0x504c36=(null!==(_0x723c49=_0xb0a1a5['name'])&&void 0x0!==_0x723c49?_0x723c49:_0xb0a1a5)['match'](/^h(\d+)/);if(_0x504c36)return _0x504c36[0x1];}return null;}}class Z extends _0x61eb43{['afterInit'](){const _0x1f1dc0=this['editor'];if(!_0x1f1dc0['plugins']['has']('HighlightEditing'))return;const _0x24658c=_0x1f1dc0['plugins']['get']('TrackChangesEditing'),_0x33658f=_0x1f1dc0['locale'];_0x24658c['enableDefaultAttributesIntegration']('highlight'),_0x24658c['registerInlineAttribute']('highlight'),_0x24658c['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x33658f,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f1a0e=this['editor'],_0x4014d9=_0x3f1a0e['locale'];_0x3f1a0e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e4761=>{if('formatInline'!=_0x4e4761['type'])return;const {data:_0x555859}=_0x4e4761;if(_0x555859&&'highlight'==_0x555859['commandName']){const _0x3cc827=_0x4014d9['t'],_0x4a653f=_0x555859['commandParams'][0x0]['value'];if(_0x4a653f){const _0x248139=_0x3f1a0e['config']['get']('highlight.options')['find'](_0x4245d4=>_0x4245d4['model']==_0x4a653f),_0x5133ac=_0x3cc827(_0x248139['title'])['toLowerCase']();return{'type':'format','content':o(_0x4014d9,'*Set\x20highlight:*\x20%0',_0x5133ac),'color':{'value':_0x248139['color'],'title':_0x248139['title']}};}return{'type':'format','content':o(_0x4014d9,'*Remove\x20highlight*',o(_0x4014d9,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x61eb43{['afterInit'](){const _0x138277=this['editor'];if(!_0x138277['plugins']['has']('HorizontalLineEditing'))return;_0x138277['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x46d545=_0x138277['plugins']['get']('TrackChangesEditing'),_0x18015c=_0x138277['locale'];_0x46d545['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2688eb=>o(_0x18015c,'ELEMENT_HORIZONTAL_LINE',_0x2688eb)),_0x138277['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3fdaac,{writer:_0x941b45,options:_0x27bde7})=>{if(!_0x27bde7['showSuggestionHighlights'])return null;const _0x2a777f=_0x941b45['createContainerElement']('div'),_0x7446c=_0x941b45['createEmptyElement']('hr');return _0x941b45['addClass']('ck-horizontal-line',_0x2a777f),_0x941b45['insert'](_0x941b45['createPositionAt'](_0x2a777f,0x0),_0x7446c),_0x2a777f;},'converterPriority':'high'});}}class et extends _0x61eb43{['afterInit'](){const _0x894b43=this['editor'];if(!_0x894b43['plugins']['has']('HtmlEmbed'))return;const _0x3f15e2=_0x894b43['plugins']['get']('TrackChangesEditing'),_0x462c15=_0x894b43['locale'];_0x3f15e2['descriptionFactory']['registerElementLabel']('rawHtml',_0x23541b=>o(_0x462c15,'ELEMENT_HTML_EMBED',_0x23541b)),_0x3f15e2['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3f15e2['registerBlockAttribute']('value'),_0x3f15e2['descriptionFactory']['registerDescriptionCallback'](_0x122fdf=>{if('attribute'!=_0x122fdf['type'])return;const {data:_0x3550a0}=_0x122fdf;if(_0x3550a0&&'value'==_0x3550a0['key']&&_0x122fdf['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x18bdeb=o(_0x462c15,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x462c15,'*Change\x20%0\x20content*',_0x18bdeb)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b5369=this['editor'],_0x480bec=_0x1b5369['locale'];_0x1b5369['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d7b5e=>{if('formatBlock'!=_0x4d7b5e['type'])return;const {data:_0x3b2fd5}=_0x4d7b5e;if(_0x3b2fd5&&'htmlEmbed'==_0x3b2fd5['commandName']){const _0x48afed=o(_0x480bec,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x480bec,'*Change\x20%0\x20content*',_0x48afed)};}});}}class it extends _0x61eb43{['afterInit'](){const _0x90106=this['editor'];if(!_0x90106['plugins']['has']('ImageEditing'))return;const _0x545d8d=_0x90106['plugins']['get']('TrackChangesEditing'),_0x2edbef=_0x90106['plugins']['get']('ImageUtils'),_0x25a49e=_0x90106['locale'];_0x545d8d['enableCommand']('insertImage'),_0x545d8d['descriptionFactory']['registerElementLabel']('imageBlock',_0x5094b7=>o(_0x25a49e,'ELEMENT_IMAGE',_0x5094b7)),_0x545d8d['descriptionFactory']['registerElementLabel']('imageInline',_0x2d721f=>o(_0x25a49e,'ELEMENT_INLINE_IMAGE',_0x2d721f)),_0x545d8d['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x25a49e,'ELEMENT_CAPTION')),_0x90106['plugins']['has']('ImageUploadEditing')&&_0x545d8d['enableCommand']('uploadImage'),_0x90106['plugins']['has']('ImageBlockEditing')&&_0x90106['plugins']['has']('ImageInlineEditing')&&(_0x545d8d['enableCommand']('imageTypeInline',(_0x1c2d55,_0x4f5b3b)=>{const _0x84a88=_0x2edbef['getClosestSelectedImageElement'](_0x90106['model']['document']['selection']);_0x90106['model']['change'](()=>{_0x545d8d['markBlockFormat'](_0x84a88,{'commandName':'imageTypeInline','commandParams':[_0x4f5b3b]},[],'convertBlockImageToInline');});}),_0x545d8d['enableCommand']('imageTypeBlock',(_0x365ada,_0x29d760)=>{_0x90106['model']['change'](_0x32383c=>{let _0x321d75=_0x2edbef['getClosestSelectedImageElement'](_0x90106['model']['document']['selection']),_0x40a9b8=_0x32383c['createRangeOn'](_0x321d75);const _0x2f28e0=_0x1f9f89['fromPosition'](_0x40a9b8['start'],'toPrevious'),_0xf626d=_0x1f9f89['fromPosition'](_0x40a9b8['end'],'toNext');_0x545d8d['forceDefaultExecution'](()=>_0x365ada(_0x29d760)),_0x321d75=_0x2edbef['getClosestSelectedImageElement'](_0x90106['model']['document']['selection']),_0x40a9b8=_0x32383c['createRangeOn'](_0x321d75);const _0x2dccfa=_0x32383c['createRange'](_0x2f28e0,_0xf626d);_0x2f28e0['detach'](),_0xf626d['detach'](),_0x545d8d['markBlockFormat'](_0x321d75,{'commandName':'imageTypeInline','commandParams':[_0x29d760]},[],'convertInlineImageToBlock'),_0x2dccfa['start']['isBefore'](_0x40a9b8['start'])&&_0x545d8d['markInsertion'](_0x32383c['createRange'](_0x2dccfa['start'],_0x40a9b8['start']),'convertInlineImageToBlock'),_0x40a9b8['end']['isBefore'](_0x2dccfa['end'])&&_0x545d8d['markInsertion'](_0x32383c['createRange'](_0x40a9b8['end'],_0x2dccfa['end']),'convertInlineImageToBlock');});}),_0x545d8d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x545d8d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x545d8d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x545d8d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x545d8d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x545d8d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3bacd1])=>{const _0x14bc30=_0x545d8d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3e8fb4=_0x3bacd1['start'],_0x54cddc=_0x3bacd1['end'];const _0x2a81ec=_0x90106['model']['schema']['getNearestSelectionRange'](_0x3e8fb4,'backward'),_0x25f7d3=_0x90106['model']['schema']['getNearestSelectionRange'](_0x54cddc,'forward');_0x2a81ec['isCollapsed']&&(_0x3e8fb4=_0x2a81ec['start']),_0x25f7d3['isCollapsed']&&(_0x54cddc=_0x25f7d3['end']),_0x14bc30([_0x90106['model']['createRange'](_0x3e8fb4,_0x54cddc)]);}),_0x545d8d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2d2f7d),_0x545d8d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2d2f7d)),_0x90106['plugins']['has']('ImageCaptionEditing')&&(_0x545d8d['enableCommand']('toggleImageCaption',(_0x1ef791,_0x84320)=>{const _0x29a659=_0x90106['plugins']['get']('ImageCaptionUtils');let _0x30960f=_0x2edbef['getClosestSelectedImageElement'](_0x90106['model']['document']['selection']),_0x3c0da0=_0x29a659['getCaptionFromImageModelElement'](_0x30960f);_0x90106['model']['change'](()=>{if(_0x3c0da0)return void _0x545d8d['markDeletion'](_0x90106['model']['createRangeOn'](_0x3c0da0));const _0x39f899=_0x2edbef['isBlockImage'](_0x30960f);_0x1ef791(_0x84320),_0x30960f=_0x2edbef['getClosestSelectedImageElement'](_0x90106['model']['document']['selection']),_0x3c0da0=_0x29a659['getCaptionFromImageModelElement'](_0x30960f),_0x545d8d['markInsertion'](_0x90106['model']['createRangeOn'](_0x3c0da0),_0x39f899?null:'imageCaption');});}),_0x545d8d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2d2f7d));const _0x3f4cf7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x260f69(_0x3b72ec,_0x3fc2ac){const _0x4da6be=_0x3f4cf7['findIndex'](({type:_0x3faf7b,subType:_0x2505b3})=>_0x3b72ec['type']==_0x3faf7b&&_0x3b72ec['subType']==_0x2505b3),_0x79a278=_0x3f4cf7['findIndex'](({type:_0x39c5ac,subType:_0x48a60b})=>_0x3fc2ac['type']==_0x39c5ac&&_0x3fc2ac['subType']==_0x48a60b);if(_0x4da6be<0x0||_0x79a278<0x0)return!0x1;const _0x240f7c=_0x3b72ec['getFirstRange'](),_0x25acb0=_0x3fc2ac['getFirstRange']();if((0x0==_0x4da6be||0x1==_0x4da6be)&&0x2==_0x79a278&&_0x240f7c['isIntersecting'](_0x25acb0))return!0x0;if(0x2==_0x4da6be&&0x3==_0x79a278){const _0xcf90f7=_0x545d8d['_findSuggestions'](_0x240f7c,'insertion')['filter'](({suggestion:_0x458a68,meta:_0x1ad8e3})=>_0x1ad8e3['isOwn']&&'convertInlineImageToBlock'==_0x458a68['subType']);if(_0xcf90f7['length']>0x1&&_0x25acb0['end']['isEqual'](_0x240f7c['start']))return!0x0;if(0x1==_0xcf90f7['length']&&(_0x240f7c['start']['isEqual'](_0x25acb0['end'])||_0x240f7c['end']['isEqual'](_0x25acb0['start'])))return!0x0;}if(0x3==_0x4da6be&&0x3==_0x79a278&&_0x240f7c['start']['isBefore'](_0x25acb0['start'])){const _0x741d73=_0x240f7c['end']['nodeAfter'],_0xbc1dce=_0x25acb0['start']['nodeBefore'];return _0x2edbef['isBlockImage'](_0x741d73)&&_0x741d73===_0xbc1dce;}return!0x1;}function _0x2d2f7d(_0x1061bb,_0x1477c5){return _0x260f69(_0x1061bb,_0x1477c5)?[_0x1061bb,_0x1477c5]:_0x260f69(_0x1477c5,_0x1061bb)?[_0x1477c5,_0x1061bb]:null;}_0x90106['plugins']['has']('ImageResize')&&(_0x545d8d['enableDefaultAttributesIntegration']('resizeImage'),_0x545d8d['registerBlockAttribute']('resizedWidth'),_0x545d8d['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x25a49e,'FORMAT_IMAGE_SIZE'))),_0x90106['plugins']['has']('ImageTextAlternativeEditing')&&(_0x545d8d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x545d8d['registerBlockAttribute']('alt')),_0x545d8d['descriptionFactory']['registerDescriptionCallback'](_0x3734c7=>{if(!!_0x3f4cf7['find'](({type:_0x17163b,subType:_0x2eb87a})=>_0x3734c7['type']==_0x17163b&&_0x3734c7['subType']==_0x2eb87a))return _0x3734c7['previous']?{}:void 0x0;}),_0x545d8d['descriptionFactory']['registerDescriptionCallback'](_0x1a1f85=>{if('insertion'==_0x1a1f85['type']||'deletion'==_0x1a1f85['type']){const _0x5dde11=_0x1a1f85['getContainedElement']();if(_0x5dde11&&_0x5dde11['is']('element','caption'))return{'type':'insertion'==_0x1a1f85['type']?'addObject':'removeObject','element':_0x5dde11,'quantity':0x1};}}),_0x545d8d['descriptionFactory']['registerDescriptionCallback'](_0x51c88d=>'formatBlock'==_0x51c88d['type']&&'convertInlineImageToBlock'==_0x51c88d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x51c88d['type']&&'convertBlockImageToInline'==_0x51c88d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x545d8d['descriptionFactory']['registerDescriptionCallback'](_0x547d7f=>{if('attribute'!=_0x547d7f['type'])return;const {data:_0x138517}=_0x547d7f;if(!_0x138517||'alt'!=_0x138517['key'])return;const _0x53b01d=_0x138517['newValue'];return _0x53b01d?{'type':'format','content':o(_0x25a49e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x53b01d+'\x22')}:{'type':'format','content':o(_0x25a49e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c3ccf=this['editor'],_0x39df89=_0x4c3ccf['locale'];_0x4c3ccf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f9f4e=>{if('formatBlock'!=_0x2f9f4e['type']&&'formatInline'!=_0x2f9f4e['type'])return;const {data:_0x3ae1b7}=_0x2f9f4e;if(_0x3ae1b7){if('imageTextAlternative'==_0x3ae1b7['commandName']){const _0x5a3b33=_0x3ae1b7['commandParams'][0x0]['newValue'];return _0x5a3b33?{'type':'format','content':o(_0x39df89,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5a3b33+'\x22')}:{'type':'format','content':o(_0x39df89,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3ae1b7['commandName']){const _0x3b90a6=_0x3ae1b7['commandParams'][0x0]['width'];return _0x3b90a6?{'type':'format','content':o(_0x39df89,'*Set\x20image\x20width:*\x20%0',_0x3b90a6)}:{'type':'format','content':o(_0x39df89,'*Reset\x20image\x20width*')};}}});}}class st extends _0x61eb43{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x48cda3=this['editor']['locale'],_0x4fb502=this['editor']['plugins']['get']('TrackChangesEditing');_0x4fb502['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4fb502['registerBlockAttribute']('src'),_0x4fb502['descriptionFactory']['registerDescriptionCallback'](_0x19ca1a=>{if('attribute'!=_0x19ca1a['type'])return;const {data:_0x7e92c3}=_0x19ca1a;return _0x7e92c3&&'src'==_0x7e92c3['key']?_0x7e92c3['newValue']&&_0x7e92c3['oldValue']?{'type':'format','content':o(_0x48cda3,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x371819=this['editor']['plugins']['get']('TrackChangesEditing');_0x371819['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x371819['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x371819['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x371819['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d6d6c=this['editor'],_0x42ddc6=_0x2d6d6c['locale'];_0x2d6d6c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a9324=>{if('formatBlock'!=_0x5a9324['type']&&'formatInline'!=_0x5a9324['type'])return;const {data:_0x59325f}=_0x5a9324;if(!_0x59325f||'replaceImageSource'!=_0x59325f['commandName'])return;return{'type':'format','content':o(_0x42ddc6,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x61eb43{['afterInit'](){const _0x49d98c=this['editor'];if(!_0x49d98c['plugins']['has']('ImageStyleEditing'))return;const _0xd03a78=_0x49d98c['plugins']['get']('TrackChangesEditing'),_0x477c12=_0x49d98c['plugins']['get']('ImageUtils'),_0x1b2593={};_0xd03a78['enableCommand']('imageStyle',(_0x269f79,_0x17c199)=>{const _0x1d8c35=_0x49d98c['plugins']['get']('Users')['me'],_0x8e1c9f=_0x49d98c['commands']['get']('imageStyle');let _0x1c1e49=_0x477c12['getClosestSelectedImageElement'](_0x49d98c['model']['document']['selection']),_0xe68e2d=_0x49d98c['model']['createRangeOn'](_0x1c1e49),_0x182b79=_0x8e1c9f['value'];if(_0x182b79==_0x17c199['value'])return;const _0x45ddae={'commandName':'imageStyle','commandParams':[_0x17c199],'formatGroupId':_0xdda64a()};_0x49d98c['model']['change'](()=>{if(_0xd03a78['getSuggestions']()['filter'](_0x18b5b4=>_0x18b5b4['isInContent']&&_0x1d8c35==_0x18b5b4['author']&&('formatBlock'==_0x18b5b4['type']||'formatInline'==_0x18b5b4['type'])&&('imageStylePreApply'==_0x18b5b4['subType']||'imageStylePostApply'==_0x18b5b4['subType'])&&_0x18b5b4['getFirstRange']()['isEqual'](_0xe68e2d))['forEach'](_0x23b15f=>_0xd03a78['discardSuggestion'](_0x23b15f['head'])),_0x1c1e49=_0x477c12['getClosestSelectedImageElement'](_0x49d98c['model']['document']['selection']),_0xe68e2d=_0x49d98c['model']['createRangeOn'](_0x1c1e49),_0x8e1c9f['refresh'](),_0x49d98c['commands']['get']('imageTypeInline')['refresh'](),_0x49d98c['commands']['get']('imageTypeBlock')['refresh'](),_0x182b79=_0x8e1c9f['value'],_0x182b79!=_0x17c199['value'])return _0x477c12['isInlineImage'](_0x1c1e49)&&_0x8e1c9f['shouldConvertImageType'](_0x17c199['value'],_0x1c1e49)?(_0x269f79({..._0x17c199,'setImageSizes':!0x1}),_0x1c1e49=_0x477c12['getClosestSelectedImageElement'](_0x49d98c['model']['document']['selection']),void _0xd03a78['markBlockFormat'](_0x1c1e49,{..._0x45ddae,'commandReversedParams':[{'value':_0x182b79||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x477c12['isBlockImage'](_0x1c1e49)?_0xd03a78['markBlockFormat'](_0x1c1e49,_0x45ddae,[],'imageStylePostApply'):_0xd03a78['markInlineFormat'](_0xe68e2d,_0x45ddae,'imageStylePostApply'));});});for(const _0x542b6c of _0x49d98c['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1b2593[_0x542b6c['name']]=_0x542b6c['title']['toLowerCase']();_0xd03a78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xd03a78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xd03a78['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xd03a78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4ae2bc])=>{_0x477c12['setImageNaturalSizeAttributes'](_0x4ae2bc['getContainedElement']());}),_0xd03a78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4de33c,_0x521955)=>{_0xd03a78['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4de33c,{'commandName':_0x521955['commandName'],'commandParams':_0x521955['commandReversedParams']});}),_0xd03a78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1a3fbd,_0x43e945){if(_0x5a2ef0(_0x1a3fbd,_0x43e945))return[_0x1a3fbd,_0x43e945];if(_0x5a2ef0(_0x43e945,_0x1a3fbd))return[_0x43e945,_0x1a3fbd];return null;});const _0x521c26=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5a2ef0(_0x45a811,_0x29b93c){const _0x4709a6=_0x521c26['findIndex'](({type:_0x16e005,subType:_0x9fb6d3})=>_0x45a811['type']==_0x16e005&&_0x45a811['subType']==_0x9fb6d3),_0x4220de=_0x521c26['findIndex'](({type:_0xe32422,subType:_0x4011f0})=>_0x29b93c['type']==_0xe32422&&_0x29b93c['subType']==_0x4011f0);if(_0x4709a6<0x0||_0x4220de<0x0)return!0x1;const _0x399ead=_0x45a811['getFirstRange'](),_0x12aa33=_0x29b93c['getFirstRange']();if((0x0==_0x4709a6||0x1==_0x4709a6)&&0x2==_0x4220de&&_0x399ead['isIntersecting'](_0x12aa33))return!0x0;if(0x2==_0x4709a6&&0x3==_0x4220de){const _0x7ca09=_0xd03a78['_findSuggestions'](_0x399ead,'insertion')['filter'](({suggestion:_0x116e3d,meta:_0x4abed8})=>_0x4abed8['isOwn']&&'convertInlineImageToBlock'==_0x116e3d['subType']);if(_0x7ca09['length']>0x1&&_0x12aa33['end']['isEqual'](_0x399ead['start']))return!0x0;if(0x1==_0x7ca09['length']&&(_0x399ead['start']['isEqual'](_0x12aa33['end'])||_0x399ead['end']['isEqual'](_0x12aa33['start'])))return!0x0;}if(0x3==_0x4709a6&&0x3==_0x4220de&&_0x399ead['start']['isBefore'](_0x12aa33['start'])){const _0x1e4106=_0x399ead['end']['nodeAfter'],_0x3455ad=_0x12aa33['start']['nodeBefore'];return _0x477c12['isBlockImage'](_0x1e4106)&&_0x1e4106===_0x3455ad;}return!0x1;}_0x49d98c['model']['document']['registerPostFixer'](()=>{let _0x5b4c64=!0x1;const _0x319116=Array['from'](_0x49d98c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x21a94a,data:_0x500c1b}of _0x319116){const {group:_0x1e9d6b,type:_0x2b4f54,subType:_0x33a6c0,id:_0xbe33f5}=_0xd03a78['_splitMarkerName'](_0x21a94a);if('suggestion'==_0x1e9d6b&&_0xd03a78['hasSuggestion'](_0xbe33f5)){if('formatBlock'==_0x2b4f54&&('imageStylePreApply'==_0x33a6c0||'imageStylePostApply'==_0x33a6c0)){const _0x3d50f8=_0xd03a78['getSuggestion'](_0xbe33f5);if(_0x500c1b['newRange']){const _0x560f82=_0x3d50f8['getFirstRange']()['getContainedElement']();if(_0x477c12['isBlockImage'](_0x560f82))continue;_0xd03a78['discardSuggestion'](_0x3d50f8),_0x5b4c64=!0x0;}}if('insertion'==_0x2b4f54&&'imageCaption'==_0x33a6c0&&!_0x500c1b['newRange']){const _0x4ca97b=_0xd03a78['getSuggestion'](_0xbe33f5);_0x4ca97b['next']&&_0x4ca97b['next']['isInContent']&&(_0xd03a78['discardSuggestion'](_0x4ca97b['next']),_0x5b4c64=!0x0);}}}return _0x5b4c64;}),this['_registerLegacyDescription'](_0x1b2593);}['_registerLegacyDescription'](_0x2908bd){const _0x5ccce9=this['editor'],_0x18a2cd=_0x5ccce9['locale'];_0x5ccce9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x214f5d=>{if('formatBlock'!=_0x214f5d['type']&&'formatInline'!=_0x214f5d['type'])return;const {data:_0x3f2adf}=_0x214f5d;if(!_0x3f2adf||'imageStyle'!=_0x3f2adf['commandName'])return;const _0x5c6cb6=_0x3f2adf['commandParams'][0x0]['value'];return _0x2d2ca7('side'===_0x5c6cb6?o(_0x18a2cd,'FORMAT_SIDE_IMAGE'):_0x2908bd[_0x5c6cb6]||_0x5c6cb6);function _0x2d2ca7(_0x9a7f77){return{'type':'format','content':o(_0x18a2cd,'*Format:*\x20%0',_0x9a7f77)};}});}}class ot extends _0x61eb43{['afterInit'](){const _0x298958=this['editor'],_0x1e020e=_0x298958['commands']['get']('importWord'),_0x28c2f4=_0x298958['commands']['get']('trackChanges');_0x1e020e&&(_0x1e020e['on']('execute',(_0x39999e,[,_0x596144])=>{this['_trackChangesValueDuringImport']=_0x28c2f4['value'],_0x596144['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1e020e,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1e020e,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x28c2f4['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x298958['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1b0d98,_0x102203){const {suggestions:_0x3729f7}=_0x102203,_0x23767c=this['editor']['commands']['get']('trackChanges'),_0x2a7e30=_0x23767c['value'];this['_trackChangesValueDuringImport']!==_0x2a7e30&&(_0x23767c['execute'](),this['_trackChangesExecuted']=!0x0),_0x3729f7&&_0x3729f7['forEach'](({id:_0x5b01b6,type:_0x128bf5,author:_0x273e04,created_at:_0x52e5bf})=>{const _0x511f08={'id':_0x5b01b6,'type':_0x128bf5,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x273e04,'createdAt':_0x52e5bf?new Date(_0x52e5bf):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x511f08);});}constructor(_0x412fe9){super(_0x412fe9),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}}class rt extends _0x61eb43{['afterInit'](){const _0x1eed43=this['editor'],_0x176813=_0x1eed43['plugins']['get']('TrackChangesEditing');if(_0x1eed43['plugins']['has']('IndentEditing')&&(_0x176813['enableCommand']('indent'),_0x176813['enableCommand']('outdent')),_0x1eed43['plugins']['has']('IndentBlock')){for(const _0x387ef7 of['indentBlock','outdentBlock'])_0x176813['enableDefaultAttributesIntegration'](_0x387ef7);}const _0x5bb4be=_0x1eed43['locale'];_0x176813['registerBlockAttribute']('blockIndent'),_0x176813['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5bb4be,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x282838=this['editor'],_0x21554e=_0x282838['locale'],_0x9e78b8=_0x282838['plugins']['get']('TrackChangesEditing');_0x9e78b8['descriptionFactory']['registerDescriptionCallback'](_0x38fbf5=>{if('formatBlock'!=_0x38fbf5['type'])return;const {data:_0x289c34}=_0x38fbf5;if(!_0x289c34)return;if('indentBlock'!=_0x289c34['commandName']&&'outdentBlock'!=_0x289c34['commandName'])return;const _0x181de9=_0x38fbf5['getItems']()[0x0],_0x1a4c03=_0x9e78b8['descriptionFactory']['getItemLabel'](_0x181de9);return'indentBlock'==_0x289c34['commandName']?{'type':'format','content':o(_0x21554e,'*Indent:*\x20%0',_0x1a4c03)}:'outdentBlock'==_0x289c34['commandName']?{'type':'format','content':o(_0x21554e,'*Outdent:*\x20%0',_0x1a4c03)}:void 0x0;});}}class at extends _0x61eb43{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x61eb43{['afterInit'](){const _0x31bbf4=this['editor'];if(!_0x31bbf4['plugins']['has']('LinkEditing'))return;const _0x5c9fd0=_0x31bbf4['plugins']['get']('TrackChangesEditing'),_0x5232e6=_0x31bbf4['commands']['get']('link');_0x5c9fd0['enableDefaultAttributesIntegration']('link'),_0x5c9fd0['enableDefaultAttributesIntegration']('unlink'),_0x5c9fd0['registerInlineAttribute']('linkHref');for(const _0x1b722c of _0x5232e6['manualDecorators'])_0x5c9fd0['registerInlineAttribute'](_0x1b722c['id']),_0x5c9fd0['descriptionFactory']['registerAttributeLabel'](_0x1b722c['id'],'link\x20('+_0x1b722c['label']['toLowerCase']()+')');_0x5c9fd0['descriptionFactory']['registerDescriptionCallback'](_0x4fe09b=>{if('attribute'!=_0x4fe09b['type'])return;const {data:_0x257b21}=_0x4fe09b;if(!_0x257b21||'linkHref'!=_0x257b21['key'])return;const _0x36116f=_0x257b21['newValue'],_0x1835d1=_0x31bbf4['locale'];return{'type':'format','content':null==_0x36116f?o(_0x1835d1,'*Remove\x20link*'):o(_0x1835d1,'*Set\x20link:*\x20%0','\x22'+_0x36116f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1203e3=this['editor'],_0x39b7f6=_0x1203e3['locale'];_0x1203e3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x550821=>{if('formatInline'!=_0x550821['type'])return;const {data:_0x10aec7}=_0x550821;if(_0x10aec7){if('link'==_0x10aec7['commandName']){const _0x1884ac=_0x10aec7['commandParams'][0x0];return{'type':'format','content':o(_0x39b7f6,'*Set\x20link:*\x20%0','\x22'+_0x1884ac+'\x22')};}return'unlink'==_0x10aec7['commandName']?{'type':'format','content':o(_0x39b7f6,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x61eb43{['afterInit'](){const _0x462f47=this['editor'],_0x10d949=_0x462f47['locale'];if(!_0x462f47['plugins']['has']('LegacyListEditing'))return;const _0x14bc60=_0x462f47['plugins']['get']('TrackChangesEditing'),_0x3a212d=_0x462f47['plugins']['has']('LegacyTodoListEditing');function _0xc5611b(_0x1f84f0){return()=>{const _0x1d3366=_0x462f47['model']['document']['selection'],_0x20423b=_0x462f47['commands']['get'](_0x1f84f0);if(_0x20423b['value'])return void _0x462f47['execute']('paragraph',{});const _0x49dc48=_0x1f84f0['slice'](0x0,-0x4),_0x104511=function(_0x1784fe,_0x421875,_0x3fc588){let _0x2ed7b8=Array['from'](_0x1784fe)['filter'](_0x27e551=>function(_0x24c286,_0x5826b8){return _0x5826b8['checkChild'](_0x24c286['parent'],'listItem')&&!_0x5826b8['isObject'](_0x24c286);}(_0x27e551,_0x3fc588));_0x2ed7b8=_0x2ed7b8['filter'](_0x13ccf0=>!_0x13ccf0['is']('element','listItem')||_0x13ccf0['getAttribute']('listType')!=_0x421875);const _0x4b2eed=new Set();for(const _0x3500e4 of _0x2ed7b8)_0x3500e4['is']('element','listItem')?_0x4b2eed['add'](me(_0x3500e4)):_0x4b2eed['add'](_0x3500e4);return Array['from'](_0x4b2eed);}(_0x1d3366['getSelectedBlocks'](),_0x49dc48,_0x462f47['model']['schema']);_0x462f47['model']['change'](()=>{for(const _0x42f9dd of _0x104511)_0x14bc60['markBlockFormat'](_0x42f9dd,{'commandName':_0x1f84f0,'commandParams':[{'forceValue':!_0x20423b['value']}],'formatGroupId':'blockName'},fe(_0x42f9dd));});};}function _0x366265(_0x4c5c8d){return()=>{const _0x1f7596=function(_0x2c4db0){let _0x44dfb5=Array['from'](_0x2c4db0);const _0x4757c8=_0x44dfb5['findIndex'](_0x16c028=>'listItem'!=_0x16c028['name']);return _0x4757c8>-0x1&&(_0x44dfb5=_0x44dfb5['slice'](0x0,_0x4757c8)),_0x44dfb5;}(_0x462f47['model']['document']['selection']['getSelectedBlocks']()),_0x3af5bc=_0x462f47['model']['createRange'](_0x462f47['model']['createPositionAt'](_0x1f7596[0x0],'before'),_0x462f47['model']['createPositionAt'](_0x1f7596[_0x1f7596['length']-0x1],'end'));_0x462f47['model']['change'](()=>{_0x14bc60['markBlockFormat'](_0x3af5bc,{'commandName':_0x4c5c8d,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2a68a8){const _0x5d08ec=new Set();for(const _0x17a361 of _0x2a68a8){let _0x4d83a6=_0x17a361['nextSibling'];for(;_0x4d83a6&&_0x4d83a6['getAttribute']('listIndent')>_0x17a361['getAttribute']('listIndent');)_0x5d08ec['add'](_0x4d83a6),_0x4d83a6=_0x4d83a6['nextSibling'];}return Array['from'](_0x5d08ec);}(_0x1f7596));});};}_0x14bc60['enableCommand']('numberedList',_0xc5611b('numberedList')),_0x14bc60['enableCommand']('bulletedList',_0xc5611b('bulletedList')),_0x3a212d&&_0x14bc60['enableCommand']('todoList',_0xc5611b('todoList')),_0x14bc60['enableCommand']('indentList',_0x366265('indentList')),_0x14bc60['enableCommand']('outdentList',_0x366265('outdentList')),_0x3a212d&&_0x14bc60['enableCommand']('checkTodoList',()=>{const _0x11e136=_0x462f47['commands']['get']('checkTodoList'),_0x3ef8a7=Array['from'](_0x11e136['_selectedElements']);_0x3ef8a7['filter'](_0x33f445=>_0x33f445['getAttribute']('todoListChecked')!=_0x11e136['value']),_0x462f47['model']['change'](()=>{for(const _0x452599 of _0x3ef8a7)_0x14bc60['markBlockFormat'](_0x452599,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x11e136['value']}]});});}),_0x14bc60['descriptionFactory']['registerElementLabel']('listItem',_0x396896=>o(_0x10d949,'ELEMENT_LIST_ITEM',_0x396896)),_0x14bc60['descriptionFactory']['registerDescriptionCallback'](_0x1edc9c=>{if('formatBlock'!=_0x1edc9c['type']&&'formatInline'!=_0x1edc9c['type'])return;const {data:_0x1c4aa5}=_0x1edc9c;if(_0x1c4aa5){if('numberedList'==_0x1c4aa5['commandName']||'bulletedList'==_0x1c4aa5['commandName']||'todoList'==_0x1c4aa5['commandName'])switch(_0x1c4aa5['commandName']['replace']('List','')){case'bulleted':return _0x18e651(o(_0x10d949,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x18e651(o(_0x10d949,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x18e651(o(_0x10d949,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1c4aa5['commandName'])return{'type':'format','content':o(_0x10d949,'*Indent:*\x20%0',o(_0x10d949,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1c4aa5['commandName'])return{'type':'format','content':o(_0x10d949,'*Outdent:*\x20%0',o(_0x10d949,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1c4aa5['commandName'])return _0x1c4aa5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x10d949,'*Check\x20item*')}:{'type':'format','content':o(_0x10d949,'*Uncheck\x20item*')};}function _0x18e651(_0x415ca5){return{'type':'format','content':o(_0x10d949,'*Change\x20to:*\x20%0',_0x415ca5)};}});}}function me(_0x562335){const _0x1b28f5=_0x562335['getAttribute']('listIndent');if(0x0==_0x1b28f5)return _0x562335;let _0x1dcd8c=_0x562335;for(;_0x562335['previousSibling']&&_0x562335['previousSibling']['is']('element','listItem');){const _0xdfc9c7=_0x562335['previousSibling']['getAttribute']('listIndent');if(_0xdfc9c7==_0x1b28f5)_0x1dcd8c=_0x562335['previousSibling'];else{if(_0xdfc9c7<_0x1b28f5)break;}_0x562335=_0x562335['previousSibling'];}return _0x1dcd8c;}function fe(_0x5004d1){const _0x12ef60=[];if(_0x5004d1['is']('element','listItem')&&_0x5004d1['getAttribute']('listIndent')>0x0){let _0x47734d=_0x5004d1['nextSibling'];for(;_0x47734d&&'listItem'==_0x47734d['name']&&_0x47734d['getAttribute']('listIndent')==_0x5004d1['getAttribute']('listIndent');)_0x12ef60['push'](_0x47734d),_0x47734d=_0x47734d['nextSibling'];}return _0x12ef60;}class K extends _0x61eb43{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x35c42b=this['editor']['config']['get']('list.properties'),_0x4d6382=this['editor']['plugins']['get']('TrackChangesEditing');_0x35c42b['styles']&&_0x4d6382['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x35c42b['reversed']&&_0x4d6382['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x35c42b['startIndex']&&_0x4d6382['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4d6382['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1e9150,_0x2ff629={}){const _0x34f082=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2fd127=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x34f082['markMultiRangeBlockFormat'](_0x2fd127,{'commandName':'listStyle','commandParams':[{'type':_0x2ff629['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x58a221,_0x1a7575={}){const _0x23f93f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x8a83b3=this['_getSuggestionBlocks'](_0x24fba7=>_0x24fba7['is']('element','listItem')&&'numbered'===_0x24fba7['getAttribute']('listType'));if(_0x8a83b3['length']<0x1)return;const _0x77a9bf=_0x8a83b3['map'](_0x3e37e7=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3e37e7,'before'),this['editor']['model']['createPositionAt'](_0x3e37e7,0x0)));this['editor']['model']['change'](()=>{_0x23f93f['markMultiRangeBlockFormat'](_0x77a9bf,{'commandName':'listReversed','commandParams':[{'reversed':_0x1a7575['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x7014a4,_0x16f574={}){const _0x4108b8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2bb310=this['_getSuggestionBlocks'](_0x537106=>_0x537106['is']('element','listItem')&&'numbered'===_0x537106['getAttribute']('listType'));if(_0x2bb310['length']<0x1)return;const _0xdfc694=_0x2bb310['map'](_0xd57d86=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xd57d86,'before'),this['editor']['model']['createPositionAt'](_0xd57d86,0x0)));this['editor']['model']['change'](()=>{_0x4108b8['markMultiRangeBlockFormat'](_0xdfc694,{'commandName':'listStart','commandParams':[{'startIndex':_0x16f574['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5ed637){if('formatBlock'!=_0x5ed637['type']&&'formatInline'!=_0x5ed637['type'])return;const _0x25233b=this['editor']['locale'],{data:_0x19a733}=_0x5ed637;if(!_0x19a733)return;let _0x2bd0fd,_0x3f82cf;switch(_0x19a733['commandName']){case'listStyle':_0x2bd0fd='*Change\x20to:*\x20%0',_0x3f82cf={'type':'format','content':o(_0x25233b,_0x2bd0fd,o(_0x25233b,this['_getTranslationKeyForListStyle'](_0x19a733['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2bd0fd=_0x19a733['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3f82cf={'type':'format','content':o(_0x25233b,_0x2bd0fd)};break;case'listStart':_0x2bd0fd='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3f82cf={'type':'format','content':o(_0x25233b,_0x2bd0fd,_0x19a733['commandParams'][0x0]['startIndex'])};}return _0x3f82cf;}['_getSuggestionBlocksForListStyle'](){var _0x56a19b,_0x35fec5,_0x54048e,_0x386dc8;const _0x17f8a7=this['editor']['plugins']['get']('LegacyListUtils');let _0x4b3b69=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return(null===(_0x56a19b=_0x4b3b69[0x0])||void 0x0===_0x56a19b?void 0x0:_0x56a19b['is']('element','listItem'))&&_0x4b3b69['unshift'](..._0x17f8a7['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),(null===(_0x35fec5=_0x4b3b69[_0x4b3b69['length']-0x1])||void 0x0===_0x35fec5?void 0x0:_0x35fec5['is']('element','listItem'))&&_0x4b3b69['push'](..._0x17f8a7['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4b3b69=[...new Set(_0x4b3b69)],(null===(_0x386dc8=null===(_0x54048e=this['editor']['model']['document']['selection']['getFirstPosition']())||void 0x0===_0x54048e?void 0x0:_0x54048e['parent'])||void 0x0===_0x386dc8?void 0x0:_0x386dc8['is']('element','listItem'))&&(_0x4b3b69=_0x4b3b69['filter'](_0x3a215c=>_0x3a215c['is']('element','listItem'))),_0x4b3b69;}['_getSuggestionBlocks'](_0x18dfc2){const _0x4e83aa=this['editor']['plugins']['get']('LegacyListUtils');let _0x3ae4ad=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x18dfc2)['map'](_0x3ab032=>{const _0x9c0450=this['editor']['model']['createPositionAt'](_0x3ab032,0x0);return[..._0x4e83aa['getSiblingNodes'](_0x9c0450,'backward'),..._0x4e83aa['getSiblingNodes'](_0x9c0450,'forward')];})['flat']();return _0x3ae4ad=[...new Set(_0x3ae4ad)],_0x3ae4ad;}['_getTranslationKeyForListStyle'](_0x65dfc4){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x65dfc4)||'default')['toUpperCase']()+'_LIST_'+_0x65dfc4['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x61eb43{['afterInit'](){const _0x3594f3=this['editor'];if(!_0x3594f3['plugins']['has']('MediaEmbedEditing'))return;const _0x468258=_0x3594f3['plugins']['get']('TrackChangesEditing'),_0x29bac7=_0x3594f3['locale'];_0x468258['enableCommand']('mediaEmbed'),_0x468258['descriptionFactory']['registerElementLabel']('media',_0x181318=>o(_0x29bac7,'ELEMENT_MEDIA',_0x181318)),_0x3594f3['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4d87a6,{writer:_0x4b4b2e,options:_0xfac6bf})=>{if(_0xfac6bf['showSuggestionHighlights'])return _0x4b4b2e['createEmptyElement']('div');},'converterPriority':'high'}),_0x3594f3['data']['downcastDispatcher']['on']('attribute:url:media',(_0x132dbc,_0xabdb4d,_0x15bcc9)=>{_0x15bcc9['options']['showSuggestionHighlights']&&_0x132dbc['stop']();},{'priority':'high'});}}class gt extends _0x61eb43{['afterInit'](){const _0x5a4d18=this['editor'];_0x5a4d18['plugins']['has']('MentionEditing')&&_0x5a4d18['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x61eb43{['afterInit'](){const _0x4b6fe9=this['editor'],_0x535e1c=_0x4b6fe9['plugins']['get']('TrackChangesEditing');_0x4b6fe9['plugins']['has']('MultiLevelList')&&(_0x535e1c['enableDefaultAttributesIntegration']('multiLevelList'),_0x535e1c['registerBlockAttribute']('listMarkerStyle'),_0x535e1c['descriptionFactory']['registerDescriptionCallback'](_0x5e16bc=>this['handleDescriptions'](_0x5e16bc)));}['handleDescriptions'](_0x326534){const _0x1e6d5a=this['editor']['locale'],{data:_0x35b244}=_0x326534,_0x5a571d={'type':'format','content':''};if(_0x35b244&&'listMarkerStyle'==_0x35b244['key']){if(!_0x35b244['oldValue'])return{'type':'format','content':o(_0x1e6d5a,'*Set\x20format:*\x20%0',o(_0x1e6d5a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x35b244['newValue']+')'};if(!_0x35b244['newValue']){let _0x5c4498=_0x326534['head'];for(;_0x5c4498;){if(_0x5c4498['data']&&'listType'==_0x5c4498['data']['key']&&_0x5c4498['data']['newValue'])return _0x5a571d;_0x5c4498=_0x5c4498['next'];}return{'type':'format','content':o(_0x1e6d5a,'*Remove\x20format:*\x20%0',o(_0x1e6d5a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x35b244['oldValue']+')'};}}}}class mt extends _0x61eb43{['afterInit'](){const _0x31562c=this['editor'];if(!_0x31562c['plugins']['has']('PageBreakEditing'))return;_0x31562c['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x45e415=_0x31562c['plugins']['get']('TrackChangesEditing'),_0x3099af=_0x31562c['locale'];_0x45e415['descriptionFactory']['registerElementLabel']('pageBreak',_0x5cff9e=>o(_0x3099af,'ELEMENT_PAGE_BREAK',_0x5cff9e));}}class dt extends _0x61eb43{['afterInit'](){const _0x3a9752=this['editor'];if(!_0x3a9752['plugins']['has']('Paragraph'))return;const _0x5b063d=_0x3a9752['locale'],_0x15c5ee=_0x3a9752['plugins']['get']('TrackChangesEditing');_0x15c5ee['descriptionFactory']['registerElementLabel']('paragraph',_0x3e9100=>o(_0x5b063d,'ELEMENT_PARAGRAPH',_0x3e9100)),_0x15c5ee['enableDefaultAttributesIntegration']('paragraph'),_0x15c5ee['enableCommand']('insertParagraph'),_0x3a9752['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3a9752),{'priority':'highest'}),_0x3a9752['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x272a10,_0x42a2ef,_0x4cde03)=>{_0x4cde03['options']['showSuggestionHighlights']&&nr(_0x3a9752,{'showActiveMarker':!0x1})(_0x272a10,_0x42a2ef,_0x4cde03);},{'priority':'highest'});const _0x5ddee8=_0x15c5ee['descriptionFactory'];_0x5ddee8['registerDescriptionCallback'](_0x2053e5=>{if('insertion'!==_0x2053e5['type'])return;const {start:_0x2f8a0d,end:_0x49d315}=_0x2053e5['getFirstRange']();if(!_0x2f8a0d['isTouching'](_0x49d315)||!_0x2f8a0d['nodeAfter'])return;const _0x773900=_0x3a9752['model']['schema'],_0x25e1f1=_0x2f8a0d['nodeAfter'];return _0x773900['isBlock'](_0x25e1f1)&&!_0x773900['isLimit'](_0x25e1f1)&&_0x773900['checkChild'](_0x25e1f1,'$text')?{'type':'insertion','content':o(_0x5b063d,'*Insert:*\x20%0',_0x5ddee8['getItemLabel'](_0x25e1f1,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5200ae=this['editor'],_0x14bfac=_0x5200ae['locale'];_0x5200ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5621d0=>{if('formatBlock'!=_0x5621d0['type'])return;const {data:_0x355fc9}=_0x5621d0;return _0x355fc9&&'paragraph'==_0x355fc9['commandName']?{'type':'format','content':o(_0x14bfac,'*Change\x20to:*\x20%0',o(_0x14bfac,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x43bf92,{showActiveMarker:_0xc59b25=!0x0}={}){return(_0x51a197,_0x42b93e,_0x1b2b17)=>{const _0x42e099=_0x43bf92['plugins']['get']('TrackChangesEditing'),_0x40f5b8=_0x42b93e['markerRange']['start'],_0x30e739=_0x42b93e['markerRange']['end'],_0xe01ef4=_0x43bf92['model']['schema'];if(!_0x40f5b8['isTouching'](_0x30e739)||!_0x40f5b8['nodeAfter'])return;const _0x445dbe=_0x40f5b8['nodeAfter'];if(_0xe01ef4['isBlock'](_0x445dbe)&&!_0xe01ef4['isLimit'](_0x445dbe)&&_0xe01ef4['checkChild'](_0x445dbe,'$text')){if(!_0x1b2b17['consumable']['consume'](_0x42b93e['markerRange'],_0x51a197['name']))return;const _0x6f07e5=_0x1b2b17['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x4e2c80=_0x1b2b17['mapper']['toViewPosition'](_0x30e739);_0xc59b25&&_0x42e099['activeMarkers']['includes'](_0x42b93e['markerName'])&&_0x1b2b17['writer']['addClass']('ck-suggestion-marker--active',_0x6f07e5),_0x1b2b17['writer']['insert'](_0x4e2c80,_0x6f07e5),_0x1b2b17['mapper']['bindElementToMarker'](_0x6f07e5,_0x42b93e['markerName']);}};}class pt extends _0x61eb43{['afterInit'](){const _0x42fc77=this['editor'];if(!_0x42fc77['plugins']['has']('RemoveFormatEditing'))return;_0x42fc77['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e749b=this['editor'];_0x1e749b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b21c8=>{if('formatBlock'!=_0x5b21c8['type']&&'formatInline'!=_0x5b21c8['type'])return;const {data:_0x3b4f30}=_0x5b21c8;return _0x3b4f30&&'removeFormat'==_0x3b4f30['commandName']?{'type':'format','content':o(_0x1e749b['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x61eb43{['afterInit'](){const _0x3b5a58=this['editor'];if(!_0x3b5a58['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5e23cd=_0x3b5a58['plugins']['get']('TrackChangesEditing');_0x5e23cd['enableCommand']('goToPreviousRestrictedEditingException'),_0x5e23cd['enableCommand']('goToNextRestrictedEditingException');const _0x55575f=_0x3b5a58['plugins']['get']('RestrictedEditingModeEditing');_0x55575f['enableCommand']('trackChanges'),_0x55575f['enableCommand']('acceptSuggestion'),_0x55575f['enableCommand']('discardSuggestion'),_0x55575f['enableCommand']('acceptAllSuggestions'),_0x55575f['enableCommand']('discardAllSuggestions'),_0x55575f['enableCommand']('acceptSelectedSuggestions'),_0x55575f['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x61eb43{static get['requires'](){return[_0x5c8d28];}['init'](){const _0x1096ea=this['editor'],_0x57da6d=_0x1096ea['plugins']['get']('TrackChangesEditing');_0x57da6d['enableCommand']('shiftEnter'),_0x1096ea['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x1096ea),{'priority':'high'}),_0x1096ea['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x1096ea),{'priority':'high'}),_0x1096ea['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1b664c,_0x4dd840,_0x2edbdf)=>{_0x2edbdf['options']['showSuggestionHighlights']&&de(_0x1096ea,{'showActiveMarker':!0x1})(_0x1b664c,_0x4dd840,_0x2edbdf);}),_0x57da6d['descriptionFactory']['registerElementLabel']('softBreak',_0x531d37=>o(_0x1096ea['locale'],'ELEMENT_LINE_BREAK',_0x531d37));}}function de(_0x42c589,{showActiveMarker:_0x4a22f8=!0x0}={}){return(_0x10e132,_0x29a62e,_0x2339a9)=>{const _0x3473c7=_0x42c589['plugins']['get']('TrackChangesEditing');if(!_0x2339a9['consumable']['test'](_0x29a62e['markerRange'],_0x10e132['name']))return;const _0x5296c9=_0x42c589['model'];for(const _0x3d572b of _0x29a62e['markerRange']['getItems']()){if(!_0x3d572b['is']('element','softBreak'))continue;const _0xc97200='deletion'==_0x29a62e['markerName']['split'](':')[0x1]?'merge':'split',_0x2e553d=_0x2339a9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xc97200}),_0x4fedc1=_0x2339a9['mapper']['toViewPosition'](_0x5296c9['createPositionBefore'](_0x3d572b));_0x4a22f8&&_0x3473c7['activeMarkers']['includes'](_0x29a62e['markerName'])&&_0x2339a9['writer']['addClass']('ck-suggestion-marker--active',_0x2e553d),_0x2339a9['writer']['insert'](_0x4fedc1,_0x2e553d),_0x2339a9['mapper']['bindElementToMarker'](_0x2e553d,_0x29a62e['markerName']);}};}class wt extends _0x61eb43{['afterInit'](){const _0xb1fecc=this['editor'],_0x2d6c62=_0xb1fecc['model'],_0x3ef83f=_0xb1fecc['locale'];if(!_0xb1fecc['plugins']['has']('StandardEditingModeEditing'))return;const _0x53f30c=_0xb1fecc['plugins']['get']('TrackChangesEditing'),_0x489356='restrictedEditingException',_0x1189e8=_0xb1fecc['commands']['get'](_0x489356);_0x53f30c['enableCommand'](_0x489356,(_0x1d20cd,_0xab558d={})=>{const _0x15b185=_0x2d6c62['document']['selection'];if(_0x15b185['isCollapsed'])return void _0x1d20cd(_0xab558d);const _0x302279=void 0x0!==_0xab558d['forceValue']?_0xab558d['forceValue']:!_0x1189e8['value'];_0x2d6c62['change'](()=>{const _0x96d22b=Array['from'](_0x15b185['getRanges']());for(const _0x262fda of _0x96d22b){const _0x81267a=_0x302279?[_0x262fda]:io(_0x489356,_0x262fda,_0x2d6c62);for(const _0xd6b299 of _0x81267a)_0x53f30c['markInlineFormat'](_0xd6b299,{'commandName':_0x489356,'commandParams':[{'forceValue':_0x302279}]});}});}),_0x53f30c['descriptionFactory']['registerDescriptionCallback'](_0x3f499f=>{if('formatBlock'!=_0x3f499f['type']&&'formatInline'!=_0x3f499f['type'])return;const {data:_0xfe3b9f}=_0x3f499f;return _0xfe3b9f&&_0xfe3b9f['commandName']==_0x489356?_0xfe3b9f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3ef83f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3ef83f,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x61eb43{['afterInit'](){const _0x49d0e7=this['editor'];if(!_0x49d0e7['plugins']['has']('Style')||!_0x49d0e7['plugins']['has']('DataSchema'))return;const _0x2a3393=_0x49d0e7['plugins']['get']('TrackChangesEditing'),_0x231a85=_0x49d0e7['locale'],_0x5c7139=_0x49d0e7['config']['get']('style')||{},_0x50cce0=_0x49d0e7['plugins']['get']('GeneralHtmlSupport'),_0x1978e8=_0x49d0e7['plugins']['get']('StyleUtils')['normalizeConfig'](_0x49d0e7['plugins']['get']('DataSchema'),_0x5c7139['definitions']);_0x2a3393['enableDefaultAttributesIntegration']('style');const _0xe15235=new Set();for(const _0xe1bedb of _0x1978e8['block']){const _0xa51f1d=_0x50cce0['getGhsAttributeNameForElement'](_0xe1bedb['element']);_0xe15235['add'](_0xa51f1d);}const _0x9b2cfd=new Set();for(const _0x1db8c5 of _0x1978e8['inline']){const _0x25812f=_0x50cce0['getGhsAttributeNameForElement'](_0x1db8c5['element']);_0x9b2cfd['add'](_0x25812f);for(const _0x1feff8 of _0x1db8c5['ghsAttributes'])_0x9b2cfd['add'](_0x1feff8);}for(const _0x34a6a0 of _0xe15235)_0x2a3393['registerBlockAttribute'](_0x34a6a0),_0x2a3393['descriptionFactory']['registerAttributeLabel'](_0x34a6a0,o(_0x231a85,'FORMAT_STYLE'));for(const _0x130323 of _0x9b2cfd)_0x2a3393['registerInlineAttribute'](_0x130323),_0x2a3393['descriptionFactory']['registerAttributeLabel'](_0x130323,o(_0x231a85,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd479d4=this['editor'],_0x26ccbb=_0xd479d4['locale'];_0xd479d4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x189749=>{if('formatBlock'!=_0x189749['type']&&'formatInline'!=_0x189749['type'])return;const {data:_0x355872}=_0x189749;return _0x355872&&'style'===_0x355872['commandName']?_0x355872['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x26ccbb,'*Set\x20format:*\x20%0',_0x355872['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x26ccbb,'*Remove\x20format:*\x20%0',_0x355872['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x61eb43{['afterInit'](){const _0x2a036e=this['editor'],_0x553a86=_0x2a036e['model']['document']['selection'];if(!_0x2a036e['plugins']['has']('TableEditing'))return;const _0x55aad5=_0x2a036e['locale'],_0x1984c7=_0x2a036e['plugins']['get']('TrackChangesEditing'),_0x365572=_0x2a036e['plugins']['get']('TableUtils');_0x1984c7['descriptionFactory']['registerElementLabel']('table',_0x442ae3=>o(_0x55aad5,'ELEMENT_TABLE',_0x442ae3)),this['_setupColumnsRowsFixing'](),_0x1984c7['enableCommand']('insertTable'),_0x1984c7['enableCommand']('selectTableRow'),_0x1984c7['enableCommand']('selectTableColumn');for(const _0x274074 of['insertTableRowAbove','insertTableRowBelow']){const _0x5390c2=_0x2a036e['commands']['get'](_0x274074);_0x1984c7['enableCommand'](_0x274074,_0x5c589b=>{_0x2a036e['model']['change'](_0x4eab11=>{_0x5c589b();const _0x5dae94='above'===_0x5390c2['order'],_0x49b2b2=_0x365572['getSelectionAffectedTableCells'](_0x553a86),_0xd5bb3b=_0x365572['getRowIndexes'](_0x49b2b2),_0x2ba575=_0x5dae94?_0xd5bb3b['first']-0x1:_0xd5bb3b['last']+0x1,_0x1a5144=_0x49b2b2[0x0]['findAncestor']('table'),_0x47e886=_0x365572['createTableWalker'](_0x1a5144,{'startRow':_0x2ba575,'endRow':_0x2ba575}),_0x5c9df3=Array['from'](_0x47e886)['map'](_0x5f1972=>_0x4eab11['createRangeOn'](_0x5f1972['cell']));_0x1984c7['markMultiRangeInsertion'](_0x5c9df3,'tableRow');});});}for(const _0x36881d of['insertTableColumnLeft','insertTableColumnRight']){const _0x24d37c=_0x2a036e['commands']['get'](_0x36881d);_0x1984c7['enableCommand'](_0x36881d,_0x809602=>{_0x2a036e['model']['change'](_0x715cfb=>{_0x809602();const _0x2637a2='left'===_0x24d37c['order'],_0x20c6fd=_0x365572['getSelectionAffectedTableCells'](_0x553a86),_0x14cff6=_0x365572['getColumnIndexes'](_0x20c6fd),_0x24808d=_0x2637a2?_0x14cff6['first']-0x1:_0x14cff6['last']+0x1,_0x5e5ea7=_0x20c6fd[0x0]['findAncestor']('table'),_0x2cc58f=_0x365572['createTableWalker'](_0x5e5ea7,{'startRow':0x0,'column':_0x24808d,'includeAllSlots':!0x1}),_0x48a1f1=Array['from'](_0x2cc58f)['map'](_0x178c30=>_0x715cfb['createRangeOn'](_0x178c30['cell']));_0x1984c7['markMultiRangeInsertion'](_0x48a1f1,'tableColumn');});});}for(const _0xfaedff of['removeTableRow','removeTableColumn']){const _0x42143a=_0xfaedff['substr'](0xb),_0x4e5814=_0x42143a['toLowerCase'](),_0x538df5=_0x4e5814['substr'](0x0,0x3)+'span',_0x1cc2d6='table'+_0x42143a,_0x19cc9c='min'+_0x42143a,_0xa59ba0='max'+_0x42143a;_0x1984c7['enableCommand'](_0xfaedff,()=>{_0x2a036e['model']['change'](_0x34504a=>{const _0x27e277=_0x365572['getSelectionAffectedTableCells'](_0x553a86),_0xda525c=_0x27e277[0x0]['findAncestor']('table');let _0x273cf7;if('removeTableRow'==_0xfaedff){const _0x510cd3=_0x365572['getRowIndexes'](_0x27e277);_0x273cf7={'startRow':_0x510cd3['first'],'endRow':_0x510cd3['last'],'includeAllSlots':!0x0};}else{const _0x440936=_0x365572['getColumnIndexes'](_0x27e277);_0x273cf7={'startColumn':_0x440936['first'],'endColumn':_0x440936['last'],'includeAllSlots':!0x0};}const _0x2cf074=_0x365572['createTableWalker'](_0xda525c,_0x273cf7),_0x48e7f7=Array['from'](_0x2cf074)['map'](({cell:_0x4fc8b3})=>_0x4fc8b3),_0xd351ad=Ee(_0x48e7f7['filter'](_0x4c961c=>_0x4c961c['hasAttribute'](_0x538df5))),_0x48ff34=Ee(_0x48e7f7['filter'](_0x2cbf65=>!_0x2cbf65['hasAttribute'](_0x538df5)))['map'](_0x524ef9=>_0x34504a['createRangeOn'](_0x524ef9)),_0x23dd4f=_0x1984c7['markMultiRangeDeletion'](_0x48ff34,_0x1cc2d6);if(_0x23dd4f&&('tableRow'==_0x23dd4f['subType']||'tableColumn'==_0x23dd4f['subType'])){const _0x21a2ec=this['_getSuggestionCoords'](_0x23dd4f);for(const _0x443027 of _0xd351ad){const _0x1ee47d=_0x34504a['createRangeOn'](_0x443027),_0x8c2eee=_0x365572['getCellLocation'](_0x443027),_0x324601=_0x443027['getAttribute'](_0x538df5)-0x1,_0x382194=_0x21a2ec[_0x19cc9c],_0x58985d=_0x21a2ec[_0xa59ba0];_0x382194<=_0x8c2eee[_0x4e5814]&&_0x8c2eee[_0x4e5814]+_0x324601<=_0x58985d&&_0x23dd4f['addRange'](_0x1ee47d);}}});});}function _0x2b0cd5(_0x5910f1){const _0x2dbcab=Array['from'](_0x553a86['getRanges']())['map'](_0x40fc46=>_0x2819a3['fromRange'](_0x40fc46));_0x2a036e['model']['change'](_0x384145=>{const _0x185e58=_0x384145['batch'];_0x5910f1=_0x5910f1['filter'](_0x345438=>'$graveyard'!=_0x345438['root']['rootName']),_0x384145['setSelection'](_0x5910f1),_0x2a036e['commands']['get']('removeTableRow')['refresh'](),_0x2a036e['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2a036e['model']['enqueueChange'](()=>{_0x2a036e['model']['enqueueChange'](_0x185e58,_0x5c9542=>{const _0x55ea70=_0x2dbcab['filter'](_0x3f74d4=>'$graveyard'!=_0x3f74d4['root']['rootName']);_0x55ea70['length']>0x0&&_0x5c9542['setSelection'](_0x55ea70);for(const _0x1fe0c6 of _0x2dbcab)_0x1fe0c6['detach']();});});});}function _0x23f2f0(_0xacf16e){_0x2a036e['model']['change'](_0x223fdf=>{const _0x4d5384=Array['from'](_0x553a86['getRanges']())['map'](_0xd8b098=>_0x2819a3['fromRange'](_0xd8b098)),_0x1b0c2f=[];for(const _0x4c5242 of _0xacf16e)for(const _0x46d424 of _0x4c5242['getItems']({'shallow':!0x0}))_0x1b0c2f['push'](_0x46d424);for(const _0x328456 of _0x1b0c2f)'$graveyard'!=_0x328456['root']['rootName']&&(_0x223fdf['setSelection'](_0x223fdf['createPositionAt'](_0x328456,0x0)),_0x2a036e['commands']['get']('removeTableColumn')['refresh'](),_0x2a036e['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x59ece8=_0x4d5384['filter'](_0xa640b1=>'$graveyard'!=_0xa640b1['root']['rootName']);_0x59ece8['length']>0x0&&_0x223fdf['setSelection'](_0x59ece8);for(const _0x1dad7d of _0x4d5384)_0x1dad7d['detach']();});}function _0x2c4698(_0x49357b,_0x24099d){return _0x24099d['every'](_0x12641a=>_0x49357b['some'](_0x445429=>_0x445429['end']['isEqual'](_0x12641a['start'])||_0x12641a['end']['isEqual'](_0x445429['start'])));}function _0x5b0642(_0x1656d4,_0x1bf97a){return _0x1656d4['some'](_0x4a032a=>_0x1bf97a['some'](_0x39947d=>_0x4a032a['end']['isTouching'](_0x39947d['start'])));}_0x2a036e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4716c8,_0x221ff6,_0x5dd693)=>{if(!_0x5dd693['options']['showSuggestionHighlights'])return;const _0x5b5557=_0x221ff6['item'];if(!_0x5b5557)return;const _0x3dc65a=_0x5dd693['mapper']['toViewElement'](_0x5b5557);function _0x3d526c(_0x3fbdbe){return Array['isArray'](_0x3fbdbe)?_0x3fbdbe:[_0x3fbdbe];}_0x3dc65a&&'tableCell'===_0x5b5557['name']&&_0x5b1021(_0x3dc65a,_0x5dd693['writer'],(_0x3c0416,_0x203db9,_0x315d29)=>_0x315d29['addClass'](_0x3d526c(_0x203db9['classes']),_0x3c0416),(_0x5b95c0,_0x34a146,_0x3c3606)=>_0x3c3606['removeClass'](_0x3d526c(_0x34a146['classes']),_0x5b95c0));},{'priority':'highest'}),_0x1984c7['descriptionFactory']['registerDescriptionCallback'](_0x480a3a=>{if('insertion'!=_0x480a3a['type']&&'deletion'!=_0x480a3a['type'])return;const _0x48b3f7=_0x480a3a['getContainedElement']();if(null!=_0x48b3f7&&_0x48b3f7['is']('element','table')){if('insertion'==_0x480a3a['type']){const _0x22f3cd=_0x480a3a['getItems']()['filter'](_0xe78e60=>_0xe78e60['is']('$textProxy'))['map'](_0x35d49c=>_0x35d49c['data']);if(_0x22f3cd['length'])return{'type':'insertion','content':o(_0x55aad5,'*Insert:*\x20%0',o(_0x55aad5,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x22f3cd['join']('\x20')+'\x22'))};}if('deletion'==_0x480a3a['type']){const _0x2b520e=_0x480a3a['getItems']()['filter'](_0xe0a848=>_0xe0a848['is']('$textProxy'))['map'](_0xe78d66=>_0xe78d66['data']);if(_0x2b520e['length'])return{'type':'deletion','content':o(_0x55aad5,'*Remove:*\x20%0',o(_0x55aad5,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2b520e['join']('\x20')+'\x22'))};}}}),_0x1984c7['descriptionFactory']['registerDescriptionCallback'](_0x463fc8=>{if('tableRow'==_0x463fc8['subType']){const _0x1af925=_0x463fc8['getItems']()['filter'](_0x26add7=>_0x26add7['is']('$textProxy'))['map'](_0x1ebc23=>_0x1ebc23['data']),_0x38cdf6=this['_getSuggestionCoords'](_0x463fc8),_0x2509ec=_0x38cdf6['maxRow']-_0x38cdf6['minRow']+0x1;if('insertion'==_0x463fc8['type'])return _0x1af925['length']?{'type':'insertion','content':o(_0x55aad5,'*Insert:*\x20%0',o(_0x55aad5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2509ec,'\x22'+_0x1af925['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x55aad5,'*Insert:*\x20%0',o(_0x55aad5,'ELEMENT_TABLE_ROW',_0x2509ec))};if('deletion'==_0x463fc8['type'])return _0x1af925['length']?{'type':'deletion','content':o(_0x55aad5,'*Remove:*\x20%0',o(_0x55aad5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2509ec,'\x22'+_0x1af925['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x55aad5,'*Remove:*\x20%0',o(_0x55aad5,'ELEMENT_TABLE_ROW',_0x2509ec))};}if('tableColumn'==_0x463fc8['subType']){const _0x52a7de=_0x463fc8['getItems']()['filter'](_0x192536=>_0x192536['is']('$textProxy'))['map'](_0x39f3d8=>_0x39f3d8['data']),_0x3194d2=this['_getSuggestionCoords'](_0x463fc8),_0x466345=_0x3194d2['maxColumn']-_0x3194d2['minColumn']+0x1;if('insertion'==_0x463fc8['type'])return _0x52a7de['length']?{'type':'insertion','content':o(_0x55aad5,'*Insert:*\x20%0',o(_0x55aad5,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x466345,'\x22'+_0x52a7de['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x55aad5,'*Insert:*\x20%0',o(_0x55aad5,'ELEMENT_TABLE_COLUMN',_0x466345))};if('deletion'==_0x463fc8['type'])return _0x52a7de['length']?{'type':'deletion','content':o(_0x55aad5,'*Remove:*\x20%0',o(_0x55aad5,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x466345,'\x22'+_0x52a7de['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x55aad5,'*Remove:*\x20%0',o(_0x55aad5,'ELEMENT_TABLE_COLUMN',_0x466345))};}}),_0x1984c7['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2b0cd5),_0x1984c7['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2b0cd5),_0x1984c7['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x23f2f0),_0x1984c7['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x23f2f0),_0x1984c7['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2c4698),_0x1984c7['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2c4698),_0x1984c7['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5b0642),_0x1984c7['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5b0642);}['_acceptFormatSuggestionCallbackFactory'](){const _0x549334=this['editor'],_0x107424=_0x549334['model']['document']['selection'];return(_0x3e0dc6,_0xb46140)=>{_0x549334['model']['change'](_0x47f8b6=>{const {commandName:_0x159798,commandParams:_0x5bce2c}=_0xb46140;let _0x3ebce5=_0x3e0dc6[0x0]['end']['nodeBefore'];_0x5bce2c&&_0x5bce2c[0x0]&&!0x1===_0x5bce2c[0x0]['forceValue']&&(_0x3ebce5=_0x3e0dc6[0x0]['start']['nodeAfter']);const _0x22eb08=_0x47f8b6['createRangeIn'](_0x3ebce5);if('$graveyard'==_0x22eb08['root']['rootName'])return;const _0x55339b=Array['from'](_0x107424['getRanges']())['map'](_0x7e2f33=>_0x2819a3['fromRange'](_0x7e2f33));_0x47f8b6['setSelection'](_0x22eb08),_0x549334['commands']['get'](_0x159798)['refresh'](),_0x5bce2c['push']({'forceDefaultExecution':!0x0}),_0x549334['execute'](_0x159798,..._0x5bce2c);const _0x3fba56=_0x55339b['filter'](_0x3bf53f=>'$graveyard'!=_0x3bf53f['root']['rootName']);_0x3fba56['length']>0x0&&_0x47f8b6['setSelection'](_0x3fba56);for(const _0x14ce20 of _0x55339b)_0x14ce20['detach']();});};}['_getCoordsForCells'](_0x5f30f9){const _0x457da5=this['editor']['plugins']['get']('TableUtils');let _0x47e7fd=Number['MAX_SAFE_INTEGER'],_0x51bf4e=Number['MIN_SAFE_INTEGER'],_0x453c28=Number['MAX_SAFE_INTEGER'],_0x42ea5=Number['MIN_SAFE_INTEGER'];for(const _0x40b748 of _0x5f30f9){if('$graveyard'==_0x40b748['root']['rootName'])continue;const {row:_0x236711,column:_0x336494}=_0x457da5['getCellLocation'](_0x40b748),_0x4f4148=_0x40b748['hasAttribute']('rowspan')?_0x40b748['getAttribute']('rowspan')-0x1:0x0,_0x373a46=_0x40b748['hasAttribute']('colspan')?_0x40b748['getAttribute']('colspan')-0x1:0x0;_0x47e7fd=_0x236711<_0x47e7fd?_0x236711:_0x47e7fd,_0x51bf4e=_0x236711+_0x4f4148>_0x51bf4e?_0x236711+_0x4f4148:_0x51bf4e,_0x453c28=_0x336494<_0x453c28?_0x336494:_0x453c28,_0x42ea5=_0x336494+_0x373a46>_0x42ea5?_0x336494+_0x373a46:_0x42ea5;}return{'minRow':_0x47e7fd,'maxRow':_0x51bf4e,'minColumn':_0x453c28,'maxColumn':_0x42ea5};}['_setupColumnsRowsFixing'](){const _0x1ac4dd=this['editor'],_0x28f485=_0x1ac4dd['plugins']['get']('TrackChangesEditing'),_0x3d7a8b=_0x1ac4dd['plugins']['get']('TableUtils');_0x1ac4dd['model']['document']['on']('change:data',()=>{const _0x50e534=Array['from'](_0x1ac4dd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x50f286,data:_0x249de2}of _0x50e534){const {group:_0x1349da,id:_0x56f004,subType:_0x1e3e9b}=_0x28f485['_splitMarkerName'](_0x50f286);if('suggestion'!=_0x1349da)continue;if(null!=_0x249de2['oldRange'])continue;const _0x359bd3=_0x28f485['getSuggestion'](_0x56f004);this['_tablePostFixingSubtypes']['includes'](_0x1e3e9b)&&this['_tableSuggestions']['add'](_0x359bd3);}},{'priority':'low'});const _0x2e1080=(_0x53b576,_0x29f8db)=>{let _0x15f10a=!0x1;const _0x11aa8f=_0x29f8db['createRangeOn'](_0x53b576),_0x20717a=_0x53b576['findAncestor']('table'),_0x4aca9b=_0x3d7a8b['getCellLocation'](_0x53b576);for(const _0x355b9d of this['_tableSuggestions']){const _0x5442a3=_0x355b9d['subType'],_0x29ac82=_0x5442a3['startsWith']('tablePaste'),_0xf479c7=_0x5442a3['substr'](_0x29ac82?0xa:0x5),_0x530864=_0xf479c7['toLowerCase'](),_0x4774d0=_0x530864['substr'](0x0,0x3)+'span',_0x212c40='min'+_0xf479c7,_0x597def='max'+_0xf479c7;if(!_0x355b9d['isInContent'])continue;if(_0x20717a!=_0x355b9d['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x355b9d['isIntersectingWithRange'](_0x11aa8f))continue;const _0x3b58ad=_0x53b576['hasAttribute'](_0x4774d0)?_0x53b576['getAttribute'](_0x4774d0)-0x1:0x0,_0x2a7675=this['_getSuggestionCoords'](_0x355b9d),_0x4cdb8b=_0x2a7675[_0x212c40],_0x4d0688=_0x2a7675[_0x597def];_0x4cdb8b<=_0x4aca9b[_0x530864]&&_0x4aca9b[_0x530864]+_0x3b58ad<=_0x4d0688&&(_0x355b9d['addRange'](_0x11aa8f),_0x15f10a=!0x0);}return _0x15f10a;};_0x1ac4dd['model']['document']['registerPostFixer'](_0x4d0d01=>{let _0x112706=!0x1;for(const _0x5d3711 of _0x1ac4dd['model']['document']['differ']['getChanges']())if('insert'==_0x5d3711['type']){if('tableRow'==_0x5d3711['name']){for(const _0x2dbee5 of _0x5d3711['position']['nodeAfter']['getChildren']())_0x112706=_0x112706||_0x2e1080(_0x2dbee5,_0x4d0d01);}else'tableCell'==_0x5d3711['name']&&(_0x112706=_0x112706||_0x2e1080(_0x5d3711['position']['nodeAfter'],_0x4d0d01));}return _0x112706;});}['_getSuggestionCoords'](_0x129e6d){return this['_getCoordsForCells'](_0x129e6d['getRanges']()['map'](_0x2cd681=>_0x2cd681['start']['nodeAfter']));}constructor(_0x6028d3){super(_0x6028d3),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}}function Ee(_0x5dc63c){return Array['from'](new Set(_0x5dc63c)['values']());}class St extends _0x61eb43{static get['requires'](){return[jt];}['afterInit'](){const _0x22e302=this['editor'],_0x52980b=_0x22e302['model']['document']['selection'],_0x58846c=_0x22e302['locale'];if(!_0x22e302['plugins']['has']('TableEditing'))return;const _0x950a4e=_0x22e302['plugins']['get']('TrackChangesEditing'),_0x47809a=_0x22e302['plugins']['get']('TableUtils'),_0x3aebdd=_0x22e302['plugins']['get'](jt);_0x3aebdd['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x950a4e['enableCommand']('mergeTableCells',()=>{const _0x295024=_0x47809a['getSelectionAffectedTableCells'](_0x22e302['model']['document']['selection']);_0x22e302['model']['change'](()=>{_0x950a4e['markMultiRangeBlockFormat'](_0x295024,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x22e302['commands']['get']('mergeTableCells')['on']('execute',(_0x52e7ef,_0x1098d1)=>{_0x22e302['commands']['get']('trackChanges')['value']&&(_0x1098d1['length']>0x0&&_0x1098d1[_0x1098d1['length']-0x1]&&_0x1098d1[_0x1098d1['length']-0x1]['forceDefaultExecution']||_0x950a4e['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x52e7ef['stop']());},{'priority':'highest'});for(const _0x23158f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3ea2af=_0x22e302['commands']['get'](_0x23158f);_0x950a4e['enableCommand'](_0x23158f,()=>{const _0x2ad498=_0x22e302['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x58cfd5=>_0x58cfd5['is']('element','tableCell')),_0x2f1d3a=_0x3ea2af['value'];_0x22e302['model']['change'](()=>{_0x950a4e['markMultiRangeBlockFormat']([_0x2ad498,_0x2f1d3a],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5eace8 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x437cf3=_0x22e302['commands']['get'](_0x5eace8);_0x950a4e['enableCommand'](_0x5eace8,()=>{const _0x38906f=_0x47809a['getSelectionAffectedTableCells'](_0x22e302['model']['document']['selection'])[0x0],_0x47b0fe=_0x38906f['findAncestor']('table'),{column:_0x327c67,row:_0x5a4804}=_0x47809a['getCellLocation'](_0x38906f);let _0x12045e=[];if('horizontally'==_0x437cf3['direction']){const _0x1aec87=_0x47809a['createTableWalker'](_0x47b0fe,{'startRow':_0x5a4804,'endRow':_0x5a4804,'includeAllSlots':!0x0});_0x12045e=Array['from'](_0x1aec87)['map'](_0x5cdf4f=>_0x5cdf4f['cell']);}else{const _0x5cd31b=_0x47809a['createTableWalker'](_0x47b0fe,{'column':_0x327c67,'includeAllSlots':!0x0});_0x12045e=Array['from'](_0x5cd31b)['map'](_0x4ddee7=>_0x4ddee7['cell']);}_0x22e302['model']['change'](_0x3672e0=>{_0x950a4e['markBlockFormat'](_0x3672e0['createRangeOn'](_0x38906f),{'commandName':_0x5eace8,'commandParams':[]},_0x12045e,_0x5eace8);});});}_0x950a4e['descriptionFactory']['registerDescriptionCallback'](_0x536ca7=>{if('formatBlock'!=_0x536ca7['type']&&'formatInline'!=_0x536ca7['type'])return;const {data:_0x47bf95}=_0x536ca7;return _0x47bf95&&'mergeTableCells'==_0x47bf95['commandName']?{'type':'format','content':o(_0x58846c,'*Merge\x20cells*')}:void 0x0;}),_0x950a4e['descriptionFactory']['registerDescriptionCallback'](_0x3270f9=>{if('formatBlock'!=_0x3270f9['type']&&'formatInline'!=_0x3270f9['type'])return;const {data:_0x56d8b3}=_0x3270f9;return _0x56d8b3?'splitTableCellVertically'==_0x56d8b3['commandName']?{'type':'format','content':o(_0x58846c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x56d8b3['commandName']?{'type':'format','content':o(_0x58846c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x472132=_0x3aebdd['_acceptFormatSuggestionCallbackFactory']();for(const _0x40a8f4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x950a4e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x40a8f4,'accept',_0x472132);for(const _0x389609 of['splitTableCellVertically','splitTableCellHorizontally'])_0x950a4e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x389609,'accept',_0x472132);_0x950a4e['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5ca66b=>{_0x22e302['model']['change'](_0x11c45c=>{const _0x189124=Array['from'](_0x52980b['getRanges']())['map'](_0xf5057=>_0x2819a3['fromRange'](_0xf5057));_0x11c45c['setSelection'](_0x5ca66b),_0x22e302['commands']['get']('mergeTableCells')['refresh'](),_0x22e302['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1fc7be=_0x189124['filter'](_0x4e9932=>'$graveyard'!=_0x4e9932['root']['rootName']);_0x1fc7be['length']>0x0&&_0x11c45c['setSelection'](_0x1fc7be);for(const _0x495bce of _0x189124)_0x495bce['detach']();});});for(const _0x3b82e1 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x58cf70=_0x22e302['commands']['get'](_0x3b82e1);_0x58cf70['on']('set:isEnabled',(_0x36607e,_0x32c84b,_0x5563b2)=>{if(_0x5563b2){const _0x17ca2f=_0x22e302['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1f9ad9=>_0x1f9ad9['is']('element','tableCell'));this['_areMergableCells'](_0x58cf70['value'],_0x17ca2f)||(_0x36607e['return']=!0x1,_0x36607e['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4c99e4=this['editor']['commands']['get']('mergeTableCells'),_0x51980c=this['editor']['plugins']['get']('TableUtils');if(!_0x4c99e4['isEnabled'])return!0x1;const _0xce328b=_0x51980c['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1efcc1 of _0xce328b)for(const _0x379858 of _0xce328b)if(_0x1efcc1!=_0x379858&&!this['_areMergableCells'](_0x1efcc1,_0x379858))return!0x1;return!0x0;}['_areMergableCells'](_0x12dbbf,_0x27380b){const _0x40c532=this['editor']['plugins']['get']('TrackChangesEditing'),_0x547a9b=this['editor']['model']['createRangeOn'](_0x12dbbf),_0x29add2=this['editor']['model']['createRangeOn'](_0x27380b),_0x1a0464=new Set(),_0x170c8b=new Set();for(const _0x93f6dd of _0x40c532['getSuggestions']())if(('insertion'==_0x93f6dd['type']||'deletion'==_0x93f6dd['type']||'mergeTableCells'==_0x93f6dd['subType'])&&_0x93f6dd['isInContent']){for(const _0xb75855 of _0x93f6dd['getRanges']())_0xb75855['containsRange'](_0x547a9b,!0x0)&&_0x1a0464['add'](_0x93f6dd['type']+':'+_0x93f6dd['author']['id']),_0xb75855['containsRange'](_0x29add2,!0x0)&&_0x170c8b['add'](_0x93f6dd['type']+':'+_0x93f6dd['author']['id']);}if(_0x1a0464['size']!=_0x170c8b['size'])return!0x1;for(const _0x43929f of _0x1a0464)if(!_0x170c8b['has'](_0x43929f))return!0x1;return!0x0;}}class At extends _0x61eb43{static get['requires'](){return[jt];}['afterInit'](){const _0x557479=this['editor'];if(!_0x557479['plugins']['has']('TableEditing'))return;const _0x50a337=_0x557479['locale'],_0x298db2=_0x557479['plugins']['get']('TrackChangesEditing');_0x298db2['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x298db2['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x298db2['registerBlockAttribute']('headingRows'),_0x298db2['registerBlockAttribute']('headingColumns'),_0x298db2['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x50a337,'FORMAT_HEADER_ROW')),_0x298db2['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x50a337,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4f30fb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x553dab=this['editor']['plugins']['get']('TableUtils'),_0x292fb3=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x195e1f({showActiveMarker:_0x30e821=!0x0,setDataAttribute:_0x2b4212=!0x0}={}){return(_0x14abd0,_0x460dd4,_0x5f4c14)=>{const {type:_0x10ec95,id:_0x2d5dae}=_0x4f30fb['_splitMarkerName'](_0x460dd4['markerName']),_0x2acbfe=_0x4f30fb['getSuggestion'](_0x2d5dae),_0x201116=_0x2acbfe['data'];if('formatBlock'!=_0x2acbfe['type']||!_0x201116||'setTableColumnHeader'!=_0x201116['commandName'])return;if(_0x460dd4['item'])return void _0x14abd0['stop']();if(!_0x5f4c14['consumable']['consume'](_0x460dd4['markerRange'],_0x14abd0['name']))return;const _0x304c8f=_0x460dd4['markerRange']['start']['nodeAfter'],_0x2c4255=_0x460dd4['markerRange']['end']['nodeBefore'],_0x2f22e3=_0x304c8f['parent']['parent'],{column:_0x4f4bbe}=_0x553dab['getCellLocation'](_0x304c8f),{column:_0x2126df}=_0x553dab['getCellLocation'](_0x2c4255);for(let _0x3cc1bd=_0x4f4bbe;_0x3cc1bd<=_0x2126df;_0x3cc1bd++){const _0x9ef46e=_0x553dab['createTableWalker'](_0x2f22e3,{'column':_0x3cc1bd,'includeAllSlots':!0x1});for(const _0x3c9f86 of _0x9ef46e){const _0x14597f=_0x3c9f86['cell'],_0x5e2ade=_0x5f4c14['mapper']['toViewElement'](_0x14597f);_0x5f4c14['writer']['addClass']('ck-suggestion-marker-'+_0x10ec95,_0x5e2ade),_0x2b4212&&_0x5f4c14['writer']['setAttribute']('data-suggestion',_0x2d5dae,_0x5e2ade),_0x5f4c14['mapper']['bindElementToMarker'](_0x5e2ade,_0x460dd4['markerName']),_0x30e821&&(_0x4f30fb['activeMarkers']['includes'](_0x460dd4['markerName'])?_0x5f4c14['writer']['addClass']('ck-suggestion-marker--active',_0x5e2ade):_0x5f4c14['writer']['removeClass']('ck-suggestion-marker--active',_0x5e2ade));}}};}_0x4f30fb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x292fb3),_0x4f30fb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x292fb3),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x195e1f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x179d54,_0x511c06,_0x160761)=>{_0x160761['options']['showSuggestionHighlights']&&_0x195e1f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x179d54,_0x511c06,_0x160761);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x155de8,_0x4753b0,_0x393774)=>{const {type:_0x2ec1f6,id:_0x39fe0e}=_0x4f30fb['_splitMarkerName'](_0x4753b0['markerName']),_0x193424=_0x4f30fb['getSuggestion'](_0x39fe0e),_0x42eced=_0x193424['data'];if('formatBlock'!=_0x193424['type']||!_0x42eced||'setTableColumnHeader'!=_0x42eced['commandName'])return;const _0x493b1a=_0x393774['mapper']['markerNameToElements'](_0x4753b0['markerName']);if(_0x493b1a){for(const _0x3163f6 of _0x493b1a)_0x393774['writer']['removeClass']('ck-suggestion-marker-'+_0x2ec1f6,_0x3163f6),_0x393774['writer']['removeClass']('ck-suggestion-marker--active',_0x3163f6),_0x393774['writer']['removeAttribute']('data-suggestion',_0x3163f6),_0x393774['mapper']['unbindElementFromMarkerName'](_0x3163f6,_0x4753b0['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2403ef=this['editor'],_0x4a2c23=_0x2403ef['locale'];function _0x221cf8(_0xc2d318){return{'type':'format','content':o(_0x4a2c23,'*Format:*\x20%0',_0xc2d318)};}_0x2403ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2431f3=>{if('formatBlock'!=_0x2431f3['type'])return;const {data:_0x1133c9}=_0x2431f3;if(_0x1133c9){if('setTableRowHeader'==_0x1133c9['commandName']){const _0x5174d4=_0x1133c9['commandParams'][0x0]['forceValue'];return _0x221cf8(o(_0x4a2c23,_0x5174d4?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1133c9['commandName']){const _0x258c62=_0x1133c9['commandParams'][0x0]['forceValue'];return _0x221cf8(o(_0x4a2c23,_0x258c62?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x236c0a=>[_0x236c0a,null]));class It extends _0x61eb43{static get['requires'](){return[jt];}['afterInit'](){const _0x2104c6=this['editor'];if(!_0x2104c6['plugins']['has']('TableClipboard'))return;const _0x32abae=_0x2104c6['plugins']['get']('TrackChangesEditing'),_0x2725a3=_0x2104c6['plugins']['get']('TableUtils'),_0x2e8b4d=_0x2104c6['plugins']['get'](jt),_0x4fee90=_0x2104c6['plugins']['get']('TableClipboard');_0x2e8b4d['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2104c6['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2104c6['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x59b657=null;_0x2104c6['model']['on']('insertContent',(_0x50f68e,_0x1af330)=>{const [_0x33cf7f,_0x44dcf6]=_0x1af330,_0x45877d=_0x1af330[_0x1af330['length']-0x1];_0x45877d&&_0x45877d['forceDefaultExecution']||_0x32abae['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5b90ef,_0x55da11,_0x2eb898,_0x3d9cc9,_0x2724a5){if(_0x55da11&&!_0x55da11['is']('documentSelection'))return!0x1;const _0x3e79b5=_0x2724a5['getTableIfOnlyTableInContent'](_0x5b90ef,_0x2eb898);if(!_0x3e79b5||!he(_0x3e79b5,void 0x0,_0x3d9cc9))return!0x1;const _0x1d2046=_0x3d9cc9['getSelectionAffectedTableCells'](_0x2eb898['document']['selection']);if(!_0x1d2046['length'])return!0x1;const _0x51bf57=_0x1d2046[0x0]['findAncestor']('table'),_0xa0bcae=_0x3d9cc9['getRowIndexes'](_0x1d2046),_0x1c722e=_0x3d9cc9['getColumnIndexes'](_0x1d2046),_0x386644={'startRow':_0xa0bcae['first'],'endRow':_0xa0bcae['last'],'startColumn':_0x1c722e['first'],'endColumn':_0x1c722e['last']};return 0x1==_0x1d2046['length']&&(_0x386644['endRow']+=_0x3d9cc9['getRows'](_0x3e79b5)-0x1,_0x386644['endColumn']+=_0x3d9cc9['getColumns'](_0x3e79b5)-0x1),he(_0x51bf57,_0x386644,_0x3d9cc9);}(_0x33cf7f,_0x44dcf6,_0x2104c6['model'],_0x2725a3,_0x4fee90)&&(_0x50f68e['stop'](),_0x59b657={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2104c6['model']['change'](()=>{_0x2104c6['model']['insertContent'](_0x1af330[0x0],_0x1af330[0x1],_0x1af330[0x2],{'forceDefaultExecution':!0x0});const _0xb3cee5=_0xdda64a(),{rowInsertionRanges:_0x5d1438,columnInsertionRanges:_0x366e30,insertionRanges:_0x1f4ca3,deletionRanges:_0x369b31,cells:_0x13240d}=_0x59b657;_0x5d1438['length']&&_0x32abae['markMultiRangeInsertion'](_0x5d1438,'tablePasteRow',{'tablePasteChainId':_0xb3cee5}),_0x366e30['length']&&_0x32abae['markMultiRangeInsertion'](_0x366e30,'tablePasteColumn',{'tablePasteChainId':_0xb3cee5}),_0x1f4ca3['length']&&(_0x32abae['markMultiRangeInsertion'](_0x1f4ca3,'tablePaste',{'tablePasteChainId':_0xb3cee5,'skipNestingCheck':!0x0}),_0x1f4ca3['forEach'](_0x1efca4=>{var _0x484ab1;return null===(_0x484ab1=_0x1efca4['detach'])||void 0x0===_0x484ab1?void 0x0:_0x484ab1['call'](_0x1efca4);})),_0x369b31['length']&&(_0x32abae['markMultiRangeDeletion'](_0x369b31,'tablePaste',{'tablePasteChainId':_0xb3cee5,'skipNestingCheck':!0x0}),_0x369b31['forEach'](_0x18a141=>{var _0x3f11a2;return null===(_0x3f11a2=_0x18a141['detach'])||void 0x0===_0x3f11a2?void 0x0:_0x3f11a2['call'](_0x18a141);}));const _0x37aa83=_0x32abae['markMultiRangeBlockFormat'](_0x13240d['map'](({element:_0x988cd8})=>_0x988cd8),{'formatGroupId':_0xdda64a()},[],'tablePasteCell',{'tablePasteChainId':_0xb3cee5});if(_0x37aa83){const _0x401e44=_0x37aa83['getMarkers'](),_0x223a7=[];for(const {element:_0x2ec3dc,attributes:_0x17bf74}of _0x13240d){if(!_0x17bf74)continue;const _0x5cb29a=_0x2104c6['model']['createRangeOn'](_0x2ec3dc),_0x5b4c5f=_0x401e44['find'](_0x5995b8=>_0x5995b8['getRange']()['isEqual'](_0x5cb29a));_0x5b4c5f&&_0x223a7['push']([_0x5b4c5f['name'],_0x17bf74]);}_0x223a7['length']&&_0x37aa83['setAttribute']('markerAttributes',Object['fromEntries'](_0x223a7));}_0x59b657=null;}));},{'priority':_0x5190c6['high']+0xa}),_0x2104c6['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3faeb8,_0x522c42)=>{const [_0x481200,_0x1a463c,,_0x3b0eeb]=_0x522c42;if(!_0x59b657)return;_0x3faeb8['stop']();const _0x4e9a42=_0x481200['cell'],_0x5c2946=_0x1a463c,_0x5200e1=Pe(_0x4e9a42),_0x2f03e2=Pe(_0x5c2946);_0x3faeb8['return']=_0x4e9a42;let _0x31ba30=null,_0x30422e=null;if(_0x2f03e2||_0x5200e1){if(_0x5200e1&&!_0x2f03e2){_0x3b0eeb['remove'](_0x4e9a42['getChild'](0x0));for(const _0x5df5ef of Array['from'](_0x5c2946['getChildren']()))_0x3b0eeb['insert'](_0x5df5ef,_0x4e9a42,'end');const _0x2b2012=_0x59b657['rowInsertionIndexes']['includes'](_0x481200['row']),_0x8650ba=_0x59b657['columnInsertionIndexes']['includes'](_0x481200['column']);_0x2b2012||_0x8650ba||(_0x31ba30=_0x2819a3['fromRange'](_0x3b0eeb['createRangeIn'](_0x4e9a42)));}else _0x2f03e2&&!_0x5200e1&&(_0x30422e=_0x3b0eeb['createRangeIn'](_0x4e9a42));}else{const _0x18ddc4=_0x3b0eeb['createElement']('tableCellSuggestion'),_0x4a3e8a=_0x3b0eeb['createElement']('tableCellSuggestion');_0x3b0eeb['wrap'](_0x3b0eeb['createRangeIn'](_0x4e9a42),_0x4a3e8a),_0x3b0eeb['insert'](_0x18ddc4,_0x4e9a42,0x0);for(const _0x5dc7ed of Array['from'](_0x5c2946['getChildren']()))_0x3b0eeb['insert'](_0x5dc7ed,_0x18ddc4,'end');_0x31ba30=_0x2819a3['fromRange'](_0x3b0eeb['createRangeOn'](_0x18ddc4)),_0x30422e=_0x2819a3['fromRange'](_0x3b0eeb['createRangeOn'](_0x4a3e8a));}const _0x39708c=Array['from'](_0x5c2946['getAttributes']())['filter'](([_0x3c4b03])=>ge['includes'](_0x3c4b03));_0x59b657['cells']['push']({'element':_0x4e9a42,'attributes':_0x39708c['length']?Object['fromEntries'](_0x39708c):null}),_0x31ba30&&_0x59b657['insertionRanges']['push'](_0x31ba30),_0x30422e&&_0x59b657['deletionRanges']['push'](_0x30422e);},{'priority':'high'}),_0x2725a3['on']('insertColumns',(_0x5e67ca,_0x1309e1)=>{const [_0xb38759,_0x544a2d={}]=_0x1309e1;if(!_0x59b657)return;const _0x50ce47=_0x544a2d['at']||0x0,_0x15ee20=_0x544a2d['columns']||0x1;_0x59b657['columnInsertionIndexes']=new Array(_0x15ee20)['fill'](_0x50ce47)['map']((_0x4096bd,_0x447565)=>_0x4096bd+_0x447565);for(const {cell:_0x5844e6}of _0x2725a3['createTableWalker'](_0xb38759,{'startColumn':_0x50ce47,'endColumn':_0x50ce47+_0x15ee20-0x1}))_0x59b657['columnInsertionRanges']['push'](_0x2104c6['model']['createRangeOn'](_0x5844e6));},{'priority':'low'}),_0x2725a3['on']('insertRows',(_0x5deb65,_0x37337d)=>{const [_0x480bc8,_0x589333={}]=_0x37337d;if(!_0x59b657)return;const _0x588581=_0x589333['at']||0x0,_0x58c80c=_0x589333['rows']||0x1;_0x59b657['rowInsertionIndexes']=new Array(_0x58c80c)['fill'](_0x588581)['map']((_0x2c6821,_0x58f738)=>_0x2c6821+_0x58f738);for(const {cell:_0x2b18fe}of _0x2725a3['createTableWalker'](_0x480bc8,{'startRow':_0x588581,'endRow':_0x588581+_0x58c80c-0x1}))_0x59b657['rowInsertionRanges']['push'](_0x2104c6['model']['createRangeOn'](_0x2b18fe));},{'priority':'low'}),_0x32abae['descriptionFactory']['registerDescriptionCallback'](_0x556332=>{if(_0x556332['subType']&&_0x556332['subType']['startsWith']('tablePaste'))return _0x556332['previous']?{}:{'type':'insertion','content':o(_0x2104c6['locale'],'*Replace\x20table\x20cells*')};});const _0xa285a6=()=>!0x1;for(const _0xe9f83a of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x32abae['_suggestionFactory']['registerCustomCallback']('insertion',_0xe9f83a,'join',_0xa285a6),_0x32abae['_suggestionFactory']['registerCustomCallback']('deletion',_0xe9f83a,'join',_0xa285a6),_0x32abae['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xe9f83a,'join',_0xa285a6);_0x32abae['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xa285a6),_0x32abae['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xf40d6d,_0x23188d,_0x2dba5b)=>{const _0x3d252c=_0xf40d6d['map'](_0x2b3ebd=>_0x2b3ebd['getContainedElement']())['filter'](_0x127bf3=>_0x127bf3),_0x55311c=new Map(_0x3d252c['map'](_0x36ae0b=>[_0x36ae0b,null]));if(_0x59b657){for(const {element:_0x25801c,attributes:_0x5da3df}of _0x59b657['cells'])_0x5da3df&&_0x55311c['set'](_0x25801c,_0x5da3df);}else{if(_0x2dba5b&&_0x2dba5b['markerAttributes'])for(const [_0x36fcf3,_0x42f45c]of Object['entries'](_0x2dba5b['markerAttributes'])){const _0x43fbae=_0x2104c6['model']['markers']['get'](_0x36fcf3),_0x744fa9=_0x43fbae?_0x43fbae['getRange']()['getContainedElement']():null;_0x744fa9&&_0x55311c['set'](_0x744fa9,_0x42f45c);}}_0x2104c6['model']['change'](_0x29ab4c=>{for(const [_0x38e69d,_0x444b11]of _0x55311c)_0x29ab4c['setAttributes']({...Ce,..._0x444b11},_0x38e69d);});});const _0x5b1364=(_0x31e55c,_0x25629f)=>{_0x32abae['_suggestionFactory']['registerCustomCallback'](_0x31e55c,'tablePaste',_0x25629f,(_0x28f00a,_0x15c29c,_0x250853)=>{_0x2104c6['model']['change'](_0x1e517d=>{const _0x218e32=[];for(const _0x166bc4 of _0x28f00a){const _0xa431a1=_0x166bc4['start']['nodeAfter'];_0xa431a1['is']('element','tableCellSuggestion')&&_0x218e32['push'](_0xa431a1);}_0x32abae['_suggestionFactory']['getSuggestionCallback'](_0x31e55c,null,_0x25629f)(_0x28f00a,_0x15c29c,_0x250853);for(const _0x3acdc4 of _0x218e32)'$graveyard'!=_0x3acdc4['root']['rootName']&&_0x1e517d['unwrap'](_0x3acdc4);});});};_0x5b1364('insertion','accept'),_0x5b1364('insertion','discard'),_0x5b1364('deletion','accept'),_0x5b1364('deletion','discard'),_0x32abae['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x355b4f=>{const _0x2d137a=_0x355b4f['map'](_0x312f0b=>_0x312f0b['getContainedElement']()),_0x2e47d4=_0x2d137a[0x0]['findAncestor']('table'),{minRow:_0xf7a0f9,maxRow:_0x4f1a6c}=_0x2e8b4d['_getCoordsForCells'](_0x2d137a);_0x2725a3['removeRows'](_0x2e47d4,{'at':_0xf7a0f9,'rows':_0x4f1a6c-_0xf7a0f9+0x1});}),_0x32abae['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3ef419=>{const _0x12aec7=_0x3ef419['map'](_0x3cfd11=>_0x3cfd11['getContainedElement']()),_0x5b75df=_0x12aec7[0x0]['findAncestor']('table'),{minColumn:_0x51099b,maxColumn:_0x2a0580}=_0x2e8b4d['_getCoordsForCells'](_0x12aec7);_0x2725a3['removeColumns'](_0x5b75df,{'at':_0x51099b,'columns':_0x2a0580-_0x51099b+0x1});});const _0x46c679=(_0x84280e,_0x1f45b5)=>{if(!_0x1f45b5['subType']||!_0x1f45b5['subType']['startsWith']('tablePaste'))return;const _0x546090=_0x1f45b5['attributes']['tablePasteChainId'],_0x433141=_0x32abae['getSuggestions']()['filter'](_0x15af7c=>_0x15af7c['isInContent']&&_0x15af7c['attributes']&&_0x15af7c['attributes']['tablePasteChainId']==_0x546090);_0x433141['length']&&_0x1f45b5['getAllAdjacentSuggestions']()['length']!=_0x433141['length']&&_0x433141['reduce']((_0x2970dc,_0x343820)=>(_0x2970dc['next']=_0x343820,_0x343820['previous']=_0x2970dc,_0x343820));};function _0x19741b(_0x1bb103,_0x5d4ad=!0x0){const {id:_0x3fe60b}=_0x32abae['_splitMarkerName'](_0x1bb103['markerName']),_0x246250=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2e28b7=_0x32abae['activeMarkers']['includes'](_0x1bb103['markerName']);return _0x2e28b7&&_0x246250['push']('ck-suggestion-marker--active'),{'classes':_0x246250,'attributes':{'data-suggestion':_0x3fe60b},'priority':_0x2e28b7&&_0x5d4ad?0xbc2:0xbb8};}_0x32abae['on']('suggestionLoaded',_0x46c679,{'priority':'high'}),_0x32abae['on']('suggestionUnloaded',_0x46c679,{'priority':'high'}),_0x2104c6['model']['document']['registerPostFixer'](()=>{let _0x320342=!0x1;const _0x5767d3=Array['from'](_0x2104c6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x17ec64,data:_0x189f76}of _0x5767d3){const {group:_0xee4278,type:_0x494608,id:_0x4c057f}=_0x32abae['_splitMarkerName'](_0x17ec64);if('suggestion'!=_0xee4278||'deletion'!=_0x494608||_0x189f76['oldRange'])continue;if(!_0x32abae['hasSuggestion'](_0x4c057f))continue;const _0x57ca70=_0x32abae['getSuggestion'](_0x4c057f)['getRanges'](),_0x185096=_0x2104c6['plugins']['get']('Users')['me'];for(const _0x2b6d7f of _0x32abae['getSuggestions']()){if(!_0x2b6d7f['isInContent']||_0x2b6d7f['author']!=_0x185096)continue;if('formatBlock'!=_0x2b6d7f['type']||'tablePasteCell'!=_0x2b6d7f['subType'])continue;if(_0x2b6d7f['getRanges']()['every'](_0x173df6=>_0x57ca70['some'](_0x54d707=>_0x54d707['containsRange'](_0x173df6,!0x0)))){for(const _0x18dc47 of _0x2b6d7f['getAllAdjacentSuggestions']())_0x18dc47['isInContent']&&(_0x18dc47['discard'](),_0x320342=!0x0);}}}return _0x320342;}),_0x2104c6['model']['document']['registerPostFixer'](_0x493226=>{const _0x554307=_0x2104c6['commands']['get']('redo');if(!_0x554307||!_0x554307['_createdBatches']['has'](_0x493226['batch']))return!0x1;let _0x5959ac=!0x1;const _0xb59d1d=_0x2104c6['plugins']['get']('Users')['me'],_0x27994f=_0x2104c6['model']['document']['differ']['getChanges'](),_0x446523=Array['from'](_0x2104c6['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x25b0a7,data:_0x1e313f})=>{const {group:_0x1310fc,subType:_0x4fc1e2,authorId:_0x11d148}=_0x32abae['_splitMarkerName'](_0x25b0a7);return'suggestion'==_0x1310fc&&'tablePaste'==_0x4fc1e2&&_0x11d148==_0xb59d1d['id']&&!_0x1e313f['oldRange'];});for(const _0x154e6 of _0x27994f){if('insert'!=_0x154e6['type']||'tableCellSuggestion'!=_0x154e6['name']||0x1!=_0x154e6['length'])continue;const _0x382352=_0x493226['createRange'](_0x154e6['position'],_0x154e6['position']['getShiftedBy'](0x1));if(!_0x446523['find'](({data:_0x13266c})=>_0x13266c['newRange']['isEqual'](_0x382352))){for(const {name:_0x603b34,data:_0x2942c9}of _0x446523)if(_0x382352['containsRange'](_0x2942c9['newRange'])){_0x493226['updateMarker'](_0x603b34,{'range':_0x382352}),_0x5959ac=!0x0;break;}}}return _0x5959ac;}),_0x2104c6['model']['document']['registerPostFixer'](_0x546d4e=>{let _0x190bff=!0x1;const _0x4b71f6=_0x2104c6['plugins']['get']('Users')['me'],_0x2428da=_0x32abae['getSuggestions']()['filter'](_0x2f7fe2=>_0x2f7fe2['isInContent']&&_0x2f7fe2['author']==_0x4b71f6),_0x5e71c0=new Set(),_0x26cf6b=new Set();for(const _0x53db23 of _0x2428da)if('tablePaste'==_0x53db23['subType'])for(const _0x2ad21e of _0x53db23['getMarkers']()){const _0x59484e=_0x2ad21e['getRange']()['getContainedElement']();if(_0x59484e){if(_0x59484e['is']('element','tableCellSuggestion')&&Pe(_0x59484e)){_0x53db23['removeMarker'](_0x2ad21e['name']),_0x5e71c0['add'](_0x59484e),_0x190bff=!0x0;const _0x1e0936=_0x59484e['nextSibling'],_0x35d21f=_0x59484e['previousSibling'],_0x56eeee=_0x1e0936&&_0x1e0936['is']('element','tableCellSuggestion'),_0x3bec27=_0x35d21f&&_0x35d21f['is']('element','tableCellSuggestion');_0x56eeee&&!_0x5e71c0['has'](_0x1e0936)&&_0x26cf6b['add'](_0x1e0936),_0x3bec27&&!_0x5e71c0['has'](_0x35d21f)&&_0x26cf6b['add'](_0x35d21f);}else _0x59484e['is']('element','paragraph')&&_0x59484e['isEmpty']&&(_0x53db23['removeMarker'](_0x2ad21e['name']),_0x190bff=!0x0);}}else{if('tablePasteCell'==_0x53db23['subType']){if(!_0x53db23['attributes']||!_0x53db23['attributes']['tablePasteChainId'])continue;const _0x28f31e=_0x53db23['attributes']['markerAttributes'];if(_0x28f31e&&Object['keys'](_0x28f31e)['length'])continue;const _0x3ccafc=_0x53db23['attributes']['tablePasteChainId'];let _0x179661=!0x0,_0x524e69=!0x0;for(const _0x293cee of _0x2428da)if(_0x293cee['subType']&&_0x293cee['subType']['startsWith']('tablePaste')){if(!_0x293cee['attributes']['tablePasteChainId']){_0x524e69=!0x1;break;}if(_0x293cee['id']!=_0x53db23['id']&&_0x293cee['attributes']['tablePasteChainId']==_0x3ccafc){_0x179661=!0x1;break;}}_0x524e69&&_0x179661&&(_0x53db23['removeMarkers'](),_0x190bff=!0x0);}}for(const _0xfa19c0 of _0x5e71c0)_0x546d4e['remove'](_0xfa19c0);for(const _0x10c66d of _0x26cf6b)_0x546d4e['unwrap'](_0x10c66d);return _0x190bff;}),_0x2104c6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1b84ff,_0x165990)=>_0x19741b(_0x1b84ff),'converterPriority':'high'}),_0x2104c6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3eba8b,_0xcbb9a5)=>_0xcbb9a5['options']['showSuggestionHighlights']?_0x19741b(_0x3eba8b,!0x1):null,'converterPriority':'high'});const _0x1d4fc1=_0x2104c6['editing']['view'];this['listenTo'](_0x1d4fc1['document'],'clipboardOutput',(_0x2b5455,_0x12f31e)=>{const _0x44dec7=[];for(const _0x407ab7 of _0x1d4fc1['createRangeIn'](_0x12f31e['content'])['getItems']())_0x407ab7['is']('element','suggestion-td')&&_0x44dec7['push'](_0x407ab7);_0x1d4fc1['change'](_0xf93d37=>{for(const _0x16cef9 of _0x44dec7)_0xf93d37['move'](_0xf93d37['createRangeIn'](_0x16cef9),_0xf93d37['createPositionBefore'](_0x16cef9)),_0xf93d37['remove'](_0x16cef9);});});}}function Pe(_0x47d55f){if(_0x47d55f['isEmpty'])return!0x0;const _0x211047=_0x47d55f['getChild'](0x0);return _0x211047['is']('element','paragraph')&&_0x211047['isEmpty'];}function he(_0x295b91,_0x34145b={},_0x20d1ef){for(const {isAnchor:_0x5ca3ec,cellHeight:_0x59b0ba,cellWidth:_0x5edf0d}of _0x20d1ef['createTableWalker'](_0x295b91,{'includeAllSlots':!0x0,..._0x34145b}))if(!_0x5ca3ec||0x1!=_0x59b0ba||0x1!=_0x5edf0d)return!0x1;return!0x0;}class vt extends _0x61eb43{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1b77f2=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b77f2['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1b77f2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1b77f2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1b77f2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1b77f2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1b77f2['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5e6b54,_0x51963d){const _0x547edf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x48f701=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x16a353=_0x51963d['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x10b427=_0x48f701['getColumnGroupElement'](_0x16a353);let _0x232125=_0x10b427?_0x48f701['getTableColumnsWidths'](_0x10b427):null,_0x3b9a1f=_0x16a353['getAttribute']('tableWidth')||null;const _0x18313c=_0x51963d['tableWidth']||_0x3b9a1f,_0x393bf3=_0x51963d['columnWidths']||_0x232125,_0x3f54ee=this['editor']['plugins']['get']('Users')['me'];for(const _0xbcf20f of _0x547edf['getSuggestions']()){const _0x35c9ce=_0xbcf20f['getContainedElement']();if('resizeTable'===_0xbcf20f['subType']&&_0x35c9ce===_0x16a353){_0xbcf20f['author']!==_0x3f54ee&&_0xbcf20f['discard']();const _0x1a66fa=_0xbcf20f['data']['commandParams'];_0x3b9a1f=_0x1a66fa[0x0]['tableWidth'],_0x232125=_0x1a66fa[0x0]['columnWidths'];break;}}_0x5e6b54({'table':_0x16a353,'tableWidth':_0x18313c,'columnWidths':_0x393bf3}),_0x547edf['markBlockFormat'](_0x16a353,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3b9a1f,'columnWidths':_0x232125}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xd695c1){if('formatBlock'!=_0xd695c1['type']&&'formatInline'!=_0xd695c1['type'])return;const {data:_0x58c529}=_0xd695c1;if(_0x58c529&&'resizeTable'===_0x58c529['formatGroupId']){const _0x2ccc46='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2ccc46)};}}}class _t extends _0x61eb43{['afterInit'](){const _0x10900e=this['editor'];_0x10900e['plugins']['has']('Template')&&_0x10900e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x61eb43{['afterInit'](){const _0x565e82=this['editor'];if(!_0x565e82['commands']['get']('insertTableOfContents'))return;_0x565e82['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x8052ef=_0x565e82['plugins']['get']('TrackChangesEditing'),_0x4f1d9c=_0x565e82['locale'];_0x8052ef['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1f019e=>o(_0x4f1d9c,'ELEMENT_TABLE_OF_CONTENTS',_0x1f019e));}}class Dt extends _0x61eb43{['afterInit'](){const _0x1879ec=this['editor'];if(!_0x1879ec['plugins']['has']('Title'))return;const _0x367248=_0x1879ec['plugins']['get']('TrackChangesEditing');_0x367248['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1879ec['locale'],'ELEMENT_TITLE')),_0x1879ec['model']['document']['registerPostFixer'](_0x30e363=>{let _0xdb6b50=!0x1;const _0x532262=Array['from'](_0x1879ec['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5b9941,data:_0x56ad80}of _0x532262){const {group:_0x46c901}=_0x367248['_splitMarkerName'](_0x5b9941);if('suggestion'!==_0x46c901||!_0x56ad80['newRange'])continue;const _0x563787=_0x56ad80['newRange'],_0xcd0932=_0x563787['end']['nodeBefore'];if(!_0xcd0932||!_0xcd0932['is']('element','title-content'))continue;if(!_0x563787['start']['isTouching'](_0x563787['end']))continue;const _0x229c70=_0x1879ec['model']['schema']['getNearestSelectionRange'](_0x563787['end'],'forward');if(_0x229c70&&_0x229c70['isCollapsed']){const _0xd19987=_0x30e363['createRange'](_0x563787['start'],_0x229c70['start']);_0xd19987['isEqual'](_0x563787)||(_0x30e363['updateMarker'](_0x5b9941,{'range':_0xd19987}),_0xdb6b50=!0x0);}_0xdb6b50||(_0x30e363['removeMarker'](_0x5b9941),_0xdb6b50=!0x0);}return _0xdb6b50;});}}class Nt extends _0x61eb43{['afterInit'](){const _0x449353=this['editor'],_0x1d3661=_0x449353['plugins']['get']('TrackChangesEditing');_0x449353['plugins']['has']('UndoEditing')&&(_0x1d3661['enableCommand']('undo'),_0x1d3661['enableCommand']('redo'));}}class Mt extends _0x61eb43{static get['requires'](){return[jt];}['afterInit'](){const _0x12ea94=this['editor'];if(!_0x12ea94['plugins']['has']('TableCaptionEditing'))return;_0x12ea94['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x61eb43{static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0xc18db4=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5c8cd7 of this['tableProperties'])_0xc18db4['enableCommand'](_0x5c8cd7,(_0x319fb1,_0x4e819f)=>{const _0x1fc1a8=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5c8cd7,[_0x1fc1a8],this['tableProperties'],'tableProperties',_0x319fb1,_0x4e819f);});_0xc18db4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xc18db4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xc18db4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0xafad0,_0x4a1222)=>this['handleDiscardAction'](this['tableProperties'],_0xafad0,_0x4a1222)),_0xc18db4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xbb7d57 of this['tableCellProperties'])_0xc18db4['enableCommand'](_0xbb7d57,(_0x1857dc,_0x3f10ce)=>{const _0x1cb1bd=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xbb7d57,_0x1cb1bd,this['tableCellProperties'],'tableCellProperties',_0x1857dc,_0x3f10ce);});_0xc18db4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xc18db4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xc18db4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x20b0e1,_0x1f09d0)=>this['handleDiscardAction'](this['tableCellProperties'],_0x20b0e1,_0x1f09d0)),_0xc18db4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xc18db4['descriptionFactory']['registerDescriptionCallback'](_0x4297e4=>this['handleSuggestionDescription'](_0x4297e4));}['_handlePropertyChange'](_0x4cc87c,_0x437556,_0x4308e9,_0x1830ae,_0x1e9406,_0x45d4f2){const _0x37c5b3=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x45d4f2['batch'],()=>{for(const _0x69cc2a of _0x437556){if(this['_getSuggestion'](_0x69cc2a,_0x1830ae))_0x1e9406(_0x45d4f2);else{const _0x1dcea6={};for(const _0x574344 of _0x4308e9){const _0x55ffd2=_0x69cc2a['getAttribute'](_0x574344);void 0x0!==_0x55ffd2&&(_0x1dcea6[_0x574344]=_0x55ffd2);}_0x1e9406(_0x45d4f2),_0x37c5b3['markBlockFormat'](_0x69cc2a,{'commandParams':[_0x1dcea6]},[],_0x1830ae);}}});}['handleDiscardAction'](_0x1a3268,_0x18289b,_0x11cf26){const _0x3a93a0=_0x18289b[0x0]['start']['nodeAfter'],_0x5720ae=_0x11cf26['commandParams'][0x0];this['editor']['model']['change'](_0x2b7926=>{for(const _0x49827d of _0x1a3268)void 0x0!==_0x5720ae[_0x49827d]?_0x2b7926['setAttribute'](_0x49827d,_0x5720ae[_0x49827d],_0x3a93a0):_0x2b7926['removeAttribute'](_0x49827d,_0x3a93a0);});}['handleSuggestionDescription'](_0x866742){if(_0x866742['data'])switch(_0x866742['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'](_0x45b941,_0x59e1c4){const _0x4c118a=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2f4422 of _0x4c118a['getSuggestions']({'skipNotAttached':!0x0})){const _0x379c86=_0x2f4422['getContainedElement']();if(_0x2f4422['subType']===_0x59e1c4&&_0x379c86===_0x45b941)return _0x2f4422;}return null;}constructor(_0x41d156){super(_0x41d156),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}}const m='$elementName';class p extends _0x61eb43{static get['requires'](){return['CommentsRepository',_0x281dca,_0x2b0188,E,V,U,O,G,F,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,Ct,$t,_t,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}get['_descriptionFactory'](){return this['descriptionFactory'];}['init'](){const _0x477bf3=this['editor'],_0x547608=(_0x1e5e1c,_0x446aed)=>{if('attribute'!=_0x1e5e1c)return'ck-suggestion-marker-'+_0x1e5e1c;const _0x287373=_0x446aed['split']('|')[0x0];return this['_isBlockAttribute'](_0x287373)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x477bf3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x35a8bd=>{const {id:_0x44ed4b,type:_0x5e4735,subType:_0xbafc20}=this['_splitMarkerName'](_0x35a8bd['markerName']),_0x1f1dcf=['ck-suggestion-marker',_0x547608(_0x5e4735,_0xbafc20)];let _0x5380ab=0xbb8;return this['activeMarkers']['includes'](_0x35a8bd['markerName'])&&(_0x1f1dcf['push']('ck-suggestion-marker--active'),_0x5380ab=0xbc2),'deletion'==_0x5e4735&&(_0x5380ab+=0x5),{'classes':_0x1f1dcf,'attributes':{'data-suggestion':_0x44ed4b},'priority':_0x5380ab};}}),_0x477bf3['conversion']['for']('dataDowncast')['add'](_0x587943=>{_0x587943['on']('addMarker:suggestion',(_0x4c26c8,_0x4bb3e2,_0x24ee8a)=>{if(!_0x24ee8a['options']['showSuggestionHighlights'])return;const _0x5429ce=_0x4bb3e2['item'];if(!_0x5429ce)return;const _0x312340=_0x24ee8a['mapper']['toViewElement'](_0x5429ce);_0x477bf3['model']['schema']['isObject'](_0x5429ce)&&_0x312340&&!_0x312340['getCustomProperty']('widget')&&_0x312340['is']('containerElement')&&_0x324286(_0x312340,_0x24ee8a['writer']);},{'priority':'high'});}),_0x477bf3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4c3d4b,_0x2dceac)=>{if(!_0x2dceac['options']['showSuggestionHighlights'])return null;const {type:_0x18bbbb,subType:_0x1cb9f6}=this['_splitMarkerName'](_0x4c3d4b['markerName']);return{'classes':['ck-suggestion-marker',_0x547608(_0x18bbbb,_0x1cb9f6)],'priority':0xbb8};}});const _0x576fa0=({showActiveMarkers:_0x4d27a0=!0x0,isAttributeSuggestion:_0xcf6a84=!0x1}={})=>(_0x16812a,_0x10c287,_0x371e5b)=>{if(!_0x10c287['item'])return;const {id:_0x3125ec}=this['_splitMarkerName'](_0x10c287['markerName']);if(_0xcf6a84){const _0x2dd838=this['_suggestions']['get'](_0x3125ec),_0x58c90d=this['_getAttributeKey'](_0x2dd838);if(!this['_isBlockAttribute'](_0x58c90d))return;}if(_0x10c287['item']['is']('selection'))return void _0x371e5b['consumable']['consume'](_0x10c287['item'],_0x16812a['name']);const _0x80d797=_0x371e5b['mapper']['toViewElement'](_0x10c287['item']);if(_0x10c287['item']['is']('element')&&_0x477bf3['model']['schema']['isBlock'](_0x10c287['item'])&&!_0x80d797['getCustomProperty']('addHighlight')){_0x371e5b['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x80d797),_0x371e5b['writer']['setAttribute']('data-suggestion',_0x3125ec,_0x80d797),_0x371e5b['mapper']['bindElementToMarker'](_0x80d797,_0x10c287['markerName']),_0x4d27a0&&(this['activeMarkers']['includes'](_0x10c287['markerName'])?_0x371e5b['writer']['addClass']('ck-suggestion-marker--active',_0x80d797):_0x371e5b['writer']['removeClass']('ck-suggestion-marker--active',_0x80d797));for(const _0x767fde of _0x477bf3['model']['createRangeIn'](_0x10c287['item'])['getItems']())_0x371e5b['consumable']['consume'](_0x767fde,_0x16812a['name']);_0x371e5b['consumable']['consume'](_0x10c287['item'],_0x16812a['name']);}};_0x477bf3['conversion']['for']('dataDowncast')['add'](_0x35fa90=>{_0x35fa90['on']('addMarker:suggestion:formatBlock',(_0x115223,_0x281ee2,_0x17ed07)=>{_0x17ed07['options']['showSuggestionHighlights']&&_0x576fa0({'showActiveMarkers':!0x1})(_0x115223,_0x281ee2,_0x17ed07);},{'priority':'highest'});}),_0x477bf3['conversion']['for']('dataDowncast')['add'](_0x345bd4=>{_0x345bd4['on']('addMarker:suggestion:attribute',(_0xd937b3,_0x5d39c3,_0x433256)=>{_0x433256['options']['showSuggestionHighlights']&&_0x576fa0({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xd937b3,_0x5d39c3,_0x433256);},{'priority':'highest'});}),_0x477bf3['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x78d227,_0x47ca16)=>_0x47ca16['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x78d227['substr'](0xb)}}),_0x477bf3['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x496e49,{writer:_0x270b9d})=>{let _0x57edde='suggestion:'+_0x496e49['getAttribute']('suggestion-type')+':'+_0x496e49['getAttribute']('id');return _0x496e49['getAttribute']('marker-count')&&(_0x57edde+=':'+_0x496e49['getAttribute']('marker-count')),_0x270b9d['createElement']('$marker',{'data-name':_0x57edde});}}),_0x477bf3['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x477bf3['conversion']['for']('editingDowncast')['add'](_0x3c56d3=>{_0x3c56d3['on']('addMarker:suggestion:formatBlock',_0x576fa0(),{'priority':'high'});}),_0x477bf3['conversion']['for']('editingDowncast')['add'](_0x3f22d7=>{_0x3f22d7['on']('addMarker:suggestion:attribute',_0x576fa0({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x477bf3['conversion']['for']('editingDowncast')['add'](_0x809a3a=>{_0x809a3a['on']('removeMarker:suggestion:formatBlock',(_0x21fb3a,_0x3f06d0,_0x81658b)=>{const _0x59d885=_0x81658b['mapper']['markerNameToElements'](_0x3f06d0['markerName']);if(_0x59d885){for(const _0x1f9d6c of _0x59d885)_0x1f9d6c['getCustomProperty']('addHighlight')||(_0x81658b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1f9d6c),_0x81658b['writer']['removeAttribute']('data-suggestion',_0x1f9d6c),_0x81658b['mapper']['unbindElementFromMarkerName'](_0x1f9d6c,_0x3f06d0['markerName']));}},{'priority':'high'});}),_0x477bf3['conversion']['for']('editingDowncast')['add'](_0x4b0e92=>{_0x4b0e92['on']('removeMarker:suggestion:attribute',(_0x44c1b7,_0x31ed09,_0x149125)=>{const _0x216d42=_0x149125['mapper']['markerNameToElements'](_0x31ed09['markerName']);if(!_0x216d42)return;const {id:_0x4b0463}=this['_splitMarkerName'](_0x31ed09['markerName']),_0x558d4e=this['_suggestions']['get'](_0x4b0463),_0x3ee84f=this['_getAttributeKey'](_0x558d4e);if(this['_isBlockAttribute'](_0x3ee84f)){for(const _0x14ac6c of _0x216d42)_0x14ac6c['getCustomProperty']('addHighlight')||(_0x149125['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x14ac6c),_0x149125['writer']['removeAttribute']('data-suggestion',_0x14ac6c),_0x149125['mapper']['unbindElementFromMarkerName'](_0x14ac6c,_0x31ed09['markerName']));}},{'priority':'high'});}),_0x477bf3['model']['document']['registerPostFixer'](_0x12a918=>{let _0x4eb05f=!0x1;const _0x480afb=Array['from'](_0x477bf3['model']['document']['differ']['getChangedMarkers']()),_0x180bd8=new Set();for(const {name:_0x5e3972,data:_0xc86b62}of _0x480afb){const {group:_0x127b74,type:_0x194a2d,subType:_0x2370d3,id:_0x2e3b65}=this['_splitMarkerName'](_0x5e3972);if('suggestion'!==_0x127b74)continue;const _0x178bfd=this['_suggestions']['get'](_0x2e3b65);if(null!=_0xc86b62['newRange']){'formatInline'==_0x194a2d&&(_0x4eb05f=_0x4eb05f||Et(_0xc86b62['newRange'],_0x5e3972,_0x12a918,_0x477bf3['model']['schema']));const _0x341faa='attribute'==_0x194a2d&&this['_isBlockAttribute'](_0x2370d3['split']('|')[0x0]);if(_0xc86b62['newRange']['isCollapsed']||'$graveyard'==_0xc86b62['newRange']['root']['rootName']||'formatBlock'==_0x194a2d&&!Ut(_0xc86b62['newRange'])||_0x341faa&&!Ut(_0xc86b62['newRange'])||'deletion'==_0x194a2d&&!(!Tt(_0x4eca7c=_0xc86b62['newRange'])&&!function(_0x10f01e){return _0x10f01e['start']['parent']==_0x10f01e['end']['nodeBefore']&&_0x10f01e['start']['isAtEnd'];}(_0x4eca7c)))_0x12a918['removeMarker'](_0x5e3972),_0x4eb05f=!0x0;else{if(!_0x178bfd||!_0x178bfd['isInContent'])continue;_0x180bd8['add'](_0x178bfd);}}}var _0x4eca7c;return _0x180bd8['size']>0x0&&(_0x4eb05f=!!this['_joinWithAdjacentSuggestions'](_0x180bd8)||_0x4eb05f),_0x4eb05f;}),_0x477bf3['model']['document']['registerPostFixer'](_0xd0bf36=>{let _0x20796f=!0x1;for(const _0x14c1ae of _0x477bf3['model']['document']['differ']['getChanges']())if('insert'==_0x14c1ae['type'])for(const _0x2a2dd2 of this['_suggestions']['values']()){if(_0x2a2dd2['isMultiRange']||!_0x2a2dd2['isInContent'])continue;const _0x372703='formatBlock'==_0x2a2dd2['type'],_0x2a2252=this['_getAttributeKey'](_0x2a2dd2),_0x12dc47=_0x2a2252&&this['_isBlockAttribute'](_0x2a2252);if(!_0x372703&&!_0x12dc47)continue;const _0x290686=_0x2a2dd2['getFirstRange']();if(_0x290686['start']['parent']!=_0x290686['end']['parent']&&!_0x290686['end']['isAtEnd']){const _0x760b01=_0x477bf3['model']['createPositionAt'](_0x290686['start']['nodeAfter'],'end'),_0x2ea9dd=_0x477bf3['model']['createRange'](_0x290686['start'],_0x760b01);_0xd0bf36['updateMarker'](_0x2a2dd2['getFirstMarker'](),{'range':_0x2ea9dd}),_0x20796f=!0x0;}}return _0x20796f;}),_0x477bf3['model']['document']['registerPostFixer'](_0x23f34a=>this['_processAttributeChanges'](_0x23f34a)),_0x477bf3['model']['document']['registerPostFixer'](_0xa950af=>!_0xa950af['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xa950af)),_0x477bf3['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x477bf3['model']['document']['on']('change:data',(_0x257a49,_0xe093f7)=>{if(!_0xe093f7['isLocal']||_0xe093f7['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x38d943=_0x477bf3['model']['document']['differ']['getChanges']();if(0x0==_0x38d943['length'])return;const _0x18dd5e=[],_0x1d0ed5=_0x38d943['filter'](_0x5a17e5=>'attribute'==_0x5a17e5['type']),_0x5b7d7b=_0x38d943['filter'](_0x4b5883=>'insert'==_0x4b5883['type']&&'$text'!=_0x4b5883['name']),_0x4d39b1=_0x38d943['filter'](_0x200f23=>'remove'==_0x200f23['type']&&'$text'!=_0x200f23['name']);for(const _0x4e9866 of _0x1d0ed5)this['_isRegisteredAttribute'](_0x4e9866['attributeKey'])&&_0x18dd5e['push']({'key':_0x4e9866['attributeKey'],'newValue':_0x4e9866['attributeNewValue'],'oldValue':_0x4e9866['attributeOldValue'],'range':Ot(_0x4e9866['range'],_0x477bf3['model'])});for(const _0xd3ed73 of _0x5b7d7b){const _0x3f996e=_0x4d39b1['find'](_0x3829e0=>_0x3829e0['_element']===_0xd3ed73['_element']);if(_0x3f996e){const _0x47d780=Ft(_0xd3ed73['position']['nodeAfter'],_0x477bf3['model']);_0x3f996e['name']!==_0xd3ed73['name']&&_0x18dd5e['push']({'key':m,'newValue':_0xd3ed73['name'],'oldValue':_0x3f996e['name'],'range':_0x47d780});for(const [_0x4acf4b,_0x59229d]of _0x3f996e['attributes']){if(!this['_isRegisteredAttribute'](_0x4acf4b))continue;const _0x7ff8fb=_0xd3ed73['attributes']['get'](_0x4acf4b);_0x59229d!==_0x7ff8fb&&_0x18dd5e['push']({'key':_0x4acf4b,'newValue':_0x7ff8fb,'oldValue':_0x59229d,'range':_0x47d780});}for(const [_0x22da9e,_0x22086f]of _0xd3ed73['attributes'])this['_isRegisteredAttribute'](_0x22da9e)&&(_0x3f996e['attributes']['has'](_0x22da9e)||_0x18dd5e['push']({'key':_0x22da9e,'newValue':_0x22086f,'oldValue':null,'range':_0x47d780}));}}0x0!=_0x18dd5e['length']&&_0x477bf3['model']['enqueueChange'](_0xe093f7,_0x2b85b5=>{const _0xea2bff=_0xdda64a();for(const {range:_0x4994cd,key:_0x224644,oldValue:_0x4c1876,newValue:_0x3e2f76}of _0x18dd5e)this['markAttributeChange'](_0x4994cd,_0x224644,_0x4c1876,_0x3e2f76,{'groupId':_0xea2bff});this['_reduceExistingSuggestions'](_0x2b85b5,_0x18dd5e);});},{'priority':'lowest'}),_0x477bf3['model']['markers']['on']('update:suggestion',(_0x518ba2,_0x16aeba,_0x298504)=>{if(null==_0x298504){const {id:_0x39a64c}=this['_splitMarkerName'](_0x16aeba['name']),_0x26b585=this['_suggestions']['get'](_0x39a64c);_0x26b585&&_0x26b585['addMarkerName'](_0x16aeba['name']);}}),_0x477bf3['model']['document']['on']('change:data',()=>{const _0x5a04c5=Array['from'](_0x477bf3['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5dfcce=>'suggestion'===this['_splitMarkerName'](_0x5dfcce['name'])['group']);if(0x0===_0x5a04c5['length'])return;_0x5a04c5['sort']((_0x28aea7,_0x51ab2f)=>{const _0x16a1fc=_0x28aea7['data']['oldRange'],_0x1801bf=_0x51ab2f['data']['oldRange'];return null===_0x16a1fc&&null===_0x1801bf?0x0:null===_0x16a1fc&&null!==_0x1801bf?-0x1:null!==_0x16a1fc&&null===_0x1801bf?0x1:_0x16a1fc['start']['isBefore'](_0x1801bf['start'])?-0x1:0x1;});const _0x21ba63=new Set(),_0x246fda=new Set();for(const {name:_0x3dfbf7,data:_0x1a7fa0}of _0x5a04c5){const {id:_0x3de85d}=this['_splitMarkerName'](_0x3dfbf7);if(null===_0x1a7fa0['oldRange']){const _0x45543c=this['_handleNewSuggestionMarker'](_0x3dfbf7);_0x246fda['add'](_0x45543c);}else{const _0x9801ee=this['_suggestions']['get'](_0x3de85d);null!==_0x1a7fa0['newRange']||_0x9801ee['isInContent']?(_0x21ba63['add'](_0x9801ee['head']),_0x246fda['add'](_0x9801ee)):this['_removeSuggestion'](_0x9801ee);}}_0x246fda['size']>0x0&&this['_refreshSuggestionsChain'](_0x246fda);for(const _0x408a39 of _0x21ba63)this['fire']('suggestionChanged',_0x408a39);}),_0x477bf3['model']['on']('applyOperation',(_0x146e8a,_0x2b7066)=>{const _0xfcbca5=_0x2b7066[0x0];if(!this['_suggestions']['size'])return;if(!_0xfcbca5['isDocumentOperation'])return;if(_0xfcbca5['batch']['isUndo']||!_0xfcbca5['batch']['isLocal'])return;let _0x539a9a,_0x1795d3;switch(_0xfcbca5['type']){case'insert':_0x539a9a=_0x477bf3['model']['createPositionAt'](_0xfcbca5['position']),_0x1795d3=_0x539a9a['getShiftedBy'](_0xfcbca5['howMany']);break;case'split':_0x539a9a=_0x477bf3['model']['createPositionAt'](_0xfcbca5['splitPosition']),_0x1795d3=_0x477bf3['model']['createPositionAt'](_0xfcbca5['moveTargetPosition']);break;case'move':_0x539a9a=_0x477bf3['model']['createPositionAt'](_0xfcbca5['targetPosition']),_0x1795d3=_0x539a9a['getShiftedBy'](_0xfcbca5['howMany']);break;default:return;}const _0x4ffcfb=_0x477bf3['model']['createRange'](_0x539a9a,_0x1795d3);_0x477bf3['model']['change'](()=>{for(const {suggestion:_0x3b59ae,meta:_0x1ae8d1}of this['_findSuggestions'](_0x4ffcfb)){if(_0x3b59ae['isMultiRange'])continue;if('formatInline'==_0x3b59ae['type'])continue;const _0x20c51a=this['_getAttributeKey'](_0x3b59ae);if(_0x20c51a&&this['_isBlockAttribute'](_0x20c51a)&&'split'!=_0xfcbca5['type'])continue;const _0x5cfc56=_0x3b59ae['data']&&_0x3b59ae['data']['multipleBlocks'];('formatBlock'!=_0x3b59ae['type']||'split'==_0xfcbca5['type']&&!_0x5cfc56)&&(_0x1ae8d1['containsRangeInObject']||'insertion'==_0x3b59ae['type']&&_0x1ae8d1['isOwn']||_0x3b59ae['getFirstRange']()['containsRange'](_0x4ffcfb)&&this['_breakSuggestionMarker'](_0x3b59ae,_0x539a9a,_0x1795d3));}});},{'priority':'lowest'}),_0x477bf3['model']['on']('deleteContent',(_0x5deaf5,_0x448531)=>{const _0x322f20=_0x448531[0x0],_0x393b9c=_0x448531[0x1];if(_0x393b9c&&_0x393b9c['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x322f20['isCollapsed'])return;const _0x4953f3=_0x477bf3['model']['schema'],{start:_0x140d23,end:_0x272c30}=_0x322f20['getFirstRange'](),_0x2e0e34=_0x140d23['nodeAfter']&&_0x4953f3['isLimit'](_0x140d23['nodeAfter'])?null:_0x4953f3['getNearestSelectionRange'](_0x140d23,'forward'),_0x452cd4=_0x272c30['nodeBefore']&&_0x4953f3['isLimit'](_0x272c30['nodeBefore'])?null:_0x4953f3['getNearestSelectionRange'](_0x272c30,'backward'),_0x340da1=_0x477bf3['model']['createRange'](_0x2e0e34?_0x2e0e34['start']:_0x140d23,_0x452cd4?_0x452cd4['end']:_0x272c30);_0x477bf3['model']['change'](_0x4d47ad=>{this['markDeletion'](_0x340da1);const _0x26a870=_0x477bf3['model']['schema']['getNearestSelectionRange'](_0x340da1['start']);_0x322f20['is']('documentSelection')?_0x4d47ad['setSelection'](_0x26a870):_0x322f20['setTo'](_0x26a870);}),_0x5deaf5['stop']();},{'priority':_0x5190c6['normal']+0xa}),_0x477bf3['model']['on']('insertContent',(_0x208918,_0x5e3c31)=>{const _0x4881d6=_0x5e3c31[_0x5e3c31['length']-0x1];_0x4881d6&&_0x4881d6['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x477bf3['model']['change'](()=>{let _0x1a7651=_0x477bf3['model']['insertContent'](_0x5e3c31[0x0],_0x5e3c31[0x1],_0x5e3c31[0x2],{'forceDefaultExecution':!0x0});if(!_0x1a7651)return;_0x208918['return']=_0x1a7651['clone']();const _0x53e088=_0x1a7651['end']['nodeBefore'],_0x1acded=_0x477bf3['model']['schema'];_0x53e088&&_0x1acded['isBlock'](_0x53e088)&&!_0x1acded['isObject'](_0x53e088)&&(_0x1a7651=_0x477bf3['model']['createRange'](_0x1a7651['start'],_0x477bf3['model']['createPositionAt'](_0x53e088,'end'))),this['markInsertion'](_0x1a7651);}),_0x208918['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3931e5=new $(_0x477bf3,this['_suggestions']);_0x477bf3['commands']['add']('acceptSuggestion',_0x3931e5),this['enableCommand']('acceptSuggestion');const _0x4d23aa=new B(_0x477bf3,this['_suggestions']);_0x477bf3['commands']['add']('discardSuggestion',_0x4d23aa),this['enableCommand']('discardSuggestion'),_0x477bf3['commands']['add']('acceptAllSuggestions',new x(_0x477bf3,_0x3931e5,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x477bf3['commands']['add']('discardAllSuggestions',new x(_0x477bf3,_0x4d23aa,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x477bf3['commands']['add']('acceptSelectedSuggestions',new R(_0x477bf3,_0x3931e5,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x477bf3['commands']['add']('discardSelectedSuggestions',new R(_0x477bf3,_0x4d23aa,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x46d811=_0x477bf3['plugins']['get']('CommentsRepository');this['listenTo'](_0x46d811,'addComment',(_0x2a362a,{threadId:_0x124166})=>{const _0x420738=this['_suggestions']['get'](_0x124166);_0x420738&&_0x420738['commentThread']&&0x1===_0x420738['commentThread']['length']&&this['_updateSuggestionData'](_0x124166,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x46d811,'removeComment',(_0x30450b,{threadId:_0xdf83bc})=>{const _0x10d376=this['_suggestions']['get'](_0xdf83bc);_0x10d376&&_0x10d376['commentThread']&&!_0x10d376['commentThread']['length']&&this['_updateSuggestionData'](_0xdf83bc,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x44671a){if(this['_adapter'])throw new _0xa5fb70('track-changes-adapter-already-set',this);this['_adapter']=_0x44671a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x8246c6=!0x1,toJSON:_0x859571=!0x1}={}){const _0xd40214=[];for(const _0x46d02a of this['_suggestions']['values']())_0x8246c6&&!_0x46d02a['isInContent']||_0xd40214['push'](_0x46d02a);return _0x859571?_0xd40214['map'](_0x58425d=>_0x58425d['toJSON']()):_0xd40214;}['getSuggestion'](_0x5d9afd){const _0xb22870=this['_suggestions']['get'](_0x5d9afd);if(!_0xb22870)throw new _0xa5fb70('track-changes-suggestion-not-found',this);return _0xb22870;}['hasSuggestion'](_0x497332){return this['_suggestions']['has'](_0x497332);}['addSuggestionData'](_0x12ddff){const {authorId:_0x6fb462,id:_0xe7ba57,attributes:_0x3c876e}=_0x12ddff,[_0x5bbc8b,_0x13b50f]=_0x12ddff['type']['split'](':'),_0x58b583=this['_suggestions']['get'](_0xe7ba57)||this['_createSuggestion'](_0x5bbc8b,_0x13b50f,_0xe7ba57,_0x6fb462,_0x3c876e);if(this['_addThreadToSuggestion'](_0x58b583),this['_checkSuggestionCorrectness'](_0x58b583,_0x5bbc8b,_0x13b50f||null,_0x6fb462),_0x58b583['createdAt']=_0x12ddff['createdAt'],_0x58b583['_isDataLoaded']=!0x0,_0x3c876e&&_0x3c876e['@external']){const _0x1969e6=_0x3c876e['@external'],_0x53c1af=this['_getExternalAuthor'](_0x1969e6['authorName']);_0x58b583['authoredAt']=_0x1969e6['createdAt'],_0x58b583['author']=_0x53c1af,_0x58b583['isExternal']=!0x0;}else _0x58b583['authoredAt']=_0x12ddff['createdAt'];switch(_0x12ddff['data']&&(_0x58b583['data']=_0x12ddff['data']),_0x12ddff['attributes']&&(_0x58b583['attributes']=_0x12ddff['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x58b583['_saved']=!0x0),this['_suggestionState']['get'](_0x58b583)){case'notReady':this['_suggestionState']['set'](_0x58b583,'dataReady');break;case'markerReady':_0x58b583['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x58b583])),this['_refreshSuggestionsChain'](new Set([_0x58b583])),this['_suggestionState']['set'](_0x58b583,'ready'),this['fire']('suggestionLoaded',_0x58b583)):this['_suggestionState']['set'](_0x58b583,'removed');}return _0x58b583;}['acceptSuggestion'](_0x4f68f0){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xf8469b of _0x4f68f0['getAllAdjacentSuggestions']())_0xf8469b['accept']();});});}['discardSuggestion'](_0x790ad2){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5483dd of _0x790ad2['getAllAdjacentSuggestions']())_0x5483dd['discard']();});});}['enableCommand'](_0x541749,_0x5cad59){const _0x2ef1d2=this['editor']['commands']['get'](_0x541749);if(!_0x2ef1d2)throw new _0xa5fb70('track-changes-command-not-found',this,{'commandName':_0x541749});if(this['_enabledCommands']['has'](_0x2ef1d2))throw new _0xa5fb70('track-changes-enable-command-twice',this,{'commandName':_0x541749});this['_enabledCommands']['add'](_0x2ef1d2),_0x5cad59&&_0x2ef1d2['on']('execute',(_0x1e4b44,_0x4a1b39)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4a1b39['length']>0x0&&_0x4a1b39[_0x4a1b39['length']-0x1]&&_0x4a1b39[_0x4a1b39['length']-0x1]['forceDefaultExecution']?_0x4a1b39['pop']():(_0x1e4b44['return']=_0x5cad59((..._0x30db3f)=>_0x2ef1d2['execute'](..._0x30db3f,{'forceDefaultExecution':!0x0}),..._0x4a1b39),_0x1e4b44['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3da641){let _0x245edc,_0x45fc55;const _0x2bca8f=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x245edc=_0x3da641();}catch(_0x365315){_0x45fc55=_0x365315;}return _0x2bca8f||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x45fc55&&_0xa5fb70['rethrowUnexpectedError'](_0x45fc55,this),_0x245edc;}['markInsertion'](_0x16e939,_0x2cb67b=null,_0xd6cea={}){if(_0x16e939['isCollapsed'])return null;const _0x4622c1=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x690668,meta:_0x362d20}of this['_findSuggestions'](_0x16e939,'insertion'))if(_0x362d20['isOwn']){if(!_0x362d20['isNextTo']){if(_0x362d20['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x690668,_0xd6cea))continue;return _0x690668;}if(Lt(_0x690668,_0xd6cea))return _0x690668;this['_breakSuggestionMarker'](_0x690668,_0x16e939['start'],_0x16e939['end']);break;}if(_0x2cb67b==_0x690668['subType']&&Lt(_0x690668,_0xd6cea)){const _0x78ae28=_0x690668['getFirstRange']();return _0x78ae28['start']['isEqual'](_0x16e939['end'])?this['_setSuggestionRange'](_0x690668,this['_model']['createRange'](_0x16e939['start'],_0x78ae28['end'])):this['_setSuggestionRange'](_0x690668,this['_model']['createRange'](_0x78ae28['start'],_0x16e939['end'])),_0x690668;}}const _0x4c939c=_0xdda64a(),_0x2e643a=_0x4622c1['id'],_0x55b3d0=_0x2cb67b?'insertion:'+_0x2cb67b:'insertion',_0x4604ca=this['_setSuggestionData']({'id':_0x4c939c,'type':_0x55b3d0,'createdAt':new Date(),'authorId':_0x2e643a,'attributes':_0xd6cea});return this['_addSuggestionMarker'](_0x55b3d0,_0x4c939c,_0x2e643a,_0x16e939),_0x4604ca;}['markMultiRangeInsertion'](_0x3c9f1f,_0x40e12b='multi',_0x24d0ac={}){const _0x4d0ad1=this['editor']['plugins']['get']('Users')['me'],_0x2e024e=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x40e12b,'join');for(const _0x4b5959 of this['getSuggestions']())if(_0x4b5959['author']['id']==_0x4d0ad1['id']&&'insertion'==_0x4b5959['type']&&_0x4b5959['subType']==_0x40e12b&&Lt(_0x4b5959,_0x24d0ac)&&(_0x2e024e(_0x4b5959['getRanges'](),_0x3c9f1f)||_0x2e024e(_0x3c9f1f,_0x4b5959['getRanges']()))){for(const _0x2ea64a of _0x3c9f1f)_0x4b5959['addRange'](_0x2ea64a);return _0x4b5959;}for(const {suggestion:_0x17246f,meta:_0x1f2fd7}of this['_findSuggestions'](_0x3c9f1f,'insertion')){if(!_0x1f2fd7['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1f2fd7['containsRangeInObject'])continue;if(!Lt(_0x17246f,_0x24d0ac))continue;let _0x4d8cfe=!0x0;for(const _0x448afc of _0x17246f['getRanges']())for(const _0x287440 of _0x3c9f1f)if(!_0x448afc['containsRange'](_0x287440)){_0x4d8cfe=!0x1;break;}if(_0x4d8cfe)return _0x17246f;}const _0x2b6b8b=_0xdda64a(),_0x32731c=_0x4d0ad1['id'],_0x87a9ab='insertion:'+_0x40e12b,_0x39d2ac=this['_setSuggestionData']({'id':_0x2b6b8b,'type':_0x87a9ab,'createdAt':new Date(),'authorId':_0x32731c,'attributes':_0x24d0ac});for(const _0x4f6bc9 of _0x3c9f1f)this['_addSuggestionMarker'](_0x87a9ab,_0x2b6b8b,_0x32731c,_0x4f6bc9,u['getMultiRangeId']());return _0x39d2ac;}['markInlineFormat'](_0x503705,_0xa2cae,_0x5f54e5=null,_0x46f9a9={}){if(_0x5f54e5=_0x5f54e5||Vt(_0xa2cae),_0x503705['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5149ae=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5f54e5,'accept');return this['forceDefaultExecution'](()=>_0x5149ae([_0x503705],_0xa2cae,_0x46f9a9)),null;}const _0x2888c3=this['editor']['plugins']['get']('Users')['me'],_0x5de6a1=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x52e38a,meta:_0x3dacb7}of this['_findSuggestions'](_0x503705,'insertion'))_0x3dacb7['isOwn']&&!_0x3dacb7['isInsideObject']&&_0x5de6a1['push'](..._0x52e38a['getRanges']());}const _0x32d240=function(_0x3ccb12,_0x2219cd){const _0x7f634=[];for(const _0x28dfea of _0x2219cd){const _0x203ace=_0x3ccb12['getIntersection'](_0x28dfea);_0x203ace&&_0x7f634['push'](_0x203ace);}return _0x7f634;}(_0x503705,_0x5de6a1),_0x259b73=function(_0xf989f5,_0x428461){const _0x224b21=[_0xf989f5];for(const _0x31376f of _0x428461){let _0xaf35e4=0x0;for(;_0xaf35e4<_0x224b21['length'];){const _0x5bc291=_0x224b21[_0xaf35e4]['getDifference'](_0x31376f);_0x224b21['splice'](_0xaf35e4,0x1,..._0x5bc291),_0xaf35e4+=_0x5bc291['length'];}}return _0x224b21;}(_0x503705,_0x5de6a1);_0x32d240['length']&&this['_model']['change'](()=>{for(const _0x4a0845 of _0x32d240){const _0x3fcc99=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5f54e5,'accept');this['forceDefaultExecution'](()=>_0x3fcc99([_0x4a0845],_0xa2cae,_0x46f9a9));}});for(const _0x5c3c23 of _0x259b73){let _0x47fe3b=null,_0x464b26=_0x5c3c23['start'],_0x17cae5=_0x5c3c23['end'];for(const {suggestion:_0x410cd6,meta:_0x2b5d05}of this['_findSuggestions'](_0x5c3c23,'formatInline')){if(!_0x2b5d05['isOwn'])continue;if(_0x410cd6['subType']!=_0x5f54e5)continue;if(!Lt(_0x410cd6,_0x46f9a9))continue;const _0x4b5081=_0x410cd6['getFirstRange']();if(_0x4b5081['containsRange'](_0x5c3c23,!0x0))return null;_0x464b26=_0x464b26['isBefore'](_0x4b5081['start'])?_0x464b26:_0x4b5081['start'],_0x17cae5=_0x17cae5['isAfter'](_0x4b5081['end'])?_0x17cae5:_0x4b5081['end'],_0x47fe3b?_0x4b5081['start']['isBefore'](_0x47fe3b['getFirstRange']()['start'])?(_0x47fe3b['removeMarkers'](),_0x47fe3b=_0x410cd6):_0x410cd6['removeMarkers']():_0x47fe3b=_0x410cd6;}const _0x78ae9e=this['_model']['createRange'](_0x464b26,_0x17cae5);if(_0x47fe3b)this['_setSuggestionRange'](_0x47fe3b,_0x78ae9e);else{const _0x384971=_0xdda64a(),_0x393fa5=_0x2888c3['id'];this['_setSuggestionData']({'id':_0x384971,'type':'formatInline:'+_0x5f54e5,'data':_0xa2cae,'createdAt':new Date(),'authorId':_0x393fa5,'attributes':_0x46f9a9}),this['_addSuggestionMarker']('formatInline:'+_0x5f54e5,_0x384971,_0x393fa5,_0x78ae9e);}}return null;}['markBlockFormat'](_0x21f3d4,_0x1b0a24,_0x45c3dd=[],_0x4b5065=null,_0x4444c7={}){_0x1b0a24['formatGroupId']||(_0x1b0a24['formatGroupId']=_0x1b0a24['commandName']),_0x1b0a24['multipleBlocks']=_0x21f3d4['is']('range'),_0x4b5065=_0x4b5065||Vt(_0x1b0a24);const _0x2f0f1f=_0x45c3dd['map'](_0x17ba7a=>Ft(_0x17ba7a,this['_model'])),_0x425ce0=_0x21f3d4['is']('range')?_0x21f3d4:Ft(_0x21f3d4,this['_model']);if('never'===this['_trackFormatChanges']){const _0x49c326=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b5065,'accept');return this['forceDefaultExecution'](()=>_0x49c326([_0x425ce0],_0x1b0a24,_0x4444c7)),null;}_0x2f0f1f['push'](_0x425ce0);let _0x32d653=!0x0;for(const _0x4252c1 of _0x2f0f1f)if(!this['_rangeIsInLocalUserInsertion'](_0x4252c1)){_0x32d653=!0x1;break;}if(_0x32d653&&'always'!==this['_trackFormatChanges']){const _0x5f20b5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b5065,'accept');return this['forceDefaultExecution'](()=>_0x5f20b5([_0x425ce0],_0x1b0a24,_0x4444c7)),null;}let _0x2a9b48=null,_0x592814=_0x425ce0['start'],_0x203faf=_0x425ce0['end'];for(const {suggestion:_0x2f1c6c,meta:_0x58d86f}of this['_findSuggestions'](_0x425ce0,'formatBlock')){if(!_0x58d86f['isOwn'])continue;if(_0x58d86f['isNextTo']||_0x58d86f['containsRangeInObject']||_0x58d86f['isInsideObject'])continue;if(_0x2f1c6c['data']['formatGroupId']!=_0x1b0a24['formatGroupId'])continue;if(!Lt(_0x2f1c6c,_0x4444c7))continue;const _0x195352=_0x2f1c6c['getFirstRange']();if(_0x2f1c6c['subType']==_0x4b5065){if(_0x195352['containsRange'](_0x425ce0,!0x0))return null;_0x592814=_0x592814['isBefore'](_0x195352['start'])?_0x592814:_0x195352['start'],_0x203faf=_0x203faf['isAfter'](_0x195352['end'])?_0x203faf:_0x195352['end'],_0x2a9b48?_0x195352['start']['isBefore'](_0x2a9b48['getFirstRange']()['start'])?(_0x2a9b48['removeMarkers'](),_0x2a9b48=_0x2f1c6c):_0x2f1c6c['removeMarkers']():_0x2a9b48=_0x2f1c6c;}else{const _0x60a6cd=_0x425ce0['getIntersection'](_0x195352);this['_cutOutSuggestionMarker'](_0x2f1c6c,_0x60a6cd);}}const _0xf3bb9d=this['editor']['plugins']['get']('Users')['me'],_0x5bf046=_0xdda64a(),_0x1e88c8=_0xf3bb9d['id'];if(_0x2a9b48)return this['_setSuggestionRange'](_0x2a9b48,this['_model']['createRange'](_0x592814,_0x203faf)),_0x2a9b48;{const _0x2933ac=this['_setSuggestionData']({'id':_0x5bf046,'type':'formatBlock:'+_0x4b5065,'data':_0x1b0a24,'createdAt':new Date(),'authorId':_0x1e88c8,'attributes':_0x4444c7});return this['_addSuggestionMarker']('formatBlock:'+_0x4b5065,_0x5bf046,_0x1e88c8,this['_model']['createRange'](_0x592814,_0x203faf)),_0x2933ac;}}['markMultiRangeBlockFormat'](_0x24feac,_0x516f39,_0x246fdb=[],_0x5bf8bc=null,_0x25da98={}){_0x516f39['formatGroupId']||(_0x516f39['formatGroupId']=_0x516f39['commandName']);const _0x49857e=_0x24feac[0x0];_0x516f39['multipleBlocks']=_0x49857e['is']('range'),_0x5bf8bc=_0x5bf8bc||Vt(_0x516f39);const _0x5d54ad=_0x246fdb['map'](_0x39146a=>Ft(_0x39146a,this['_model'])),_0xac6989=_0x49857e['is']('range')?_0x24feac:_0x24feac['map'](_0x5353fe=>Ft(_0x5353fe,this['_model']));if('never'===this['_trackFormatChanges']){const _0x4eda20=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5bf8bc,'accept');return this['forceDefaultExecution'](()=>_0x4eda20(_0xac6989,_0x516f39,_0x25da98)),null;}_0x5d54ad['push'](..._0xac6989);let _0x5c4642=!0x0;for(const _0x2a6364 of _0x5d54ad)if(!this['_rangeIsInLocalUserInsertion'](_0x2a6364)){_0x5c4642=!0x1;break;}if(_0x5c4642&&'always'!==this['_trackFormatChanges']){const _0x173553=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5bf8bc,'accept');return this['forceDefaultExecution'](()=>_0x173553(_0xac6989,_0x516f39,_0x25da98)),null;}const _0x5adf05=this['editor']['plugins']['get']('Users')['me'];for(const _0x1bb584 of this['getSuggestions']()){if(_0x1bb584['author']['id']!=_0x5adf05['id'])continue;if('formatBlock'!=_0x1bb584['type']||_0x1bb584['data']['formatGroupId']!=_0x516f39['formatGroupId'])continue;if(!Lt(_0x1bb584,_0x25da98))continue;const _0x181acf=_0x1bb584['subType']==_0x5bf8bc;for(let _0x2bc5c9=0x0;_0x2bc5c9<_0xac6989['length'];_0x2bc5c9++){const _0x8dfe14=_0xac6989[_0x2bc5c9];for(const _0x509fa0 of _0x1bb584['getMarkers']()){const _0x52c3dc=_0x509fa0['getRange']();if(_0x8dfe14['isEqual'](_0x52c3dc)){_0x181acf?(_0xac6989['splice'](_0x2bc5c9,0x1),_0x2bc5c9--):_0x1bb584['removeMarker'](_0x509fa0['name']);break;}}}}if(0x0==_0xac6989['length'])return null;const _0x1a5621=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5bf8bc,'join');for(const _0x6a46bb of this['getSuggestions']())if(_0x6a46bb['author']['id']==_0x5adf05['id']&&'formatBlock'==_0x6a46bb['type']&&_0x6a46bb['data']['formatGroupId']==_0x516f39['formatGroupId']&&_0x6a46bb['subType']==_0x5bf8bc&&Lt(_0x6a46bb,_0x25da98)&&(_0x1a5621(_0x6a46bb['getRanges'](),_0xac6989)||_0x1a5621(_0xac6989,_0x6a46bb['getRanges']()))){for(const _0x3812ac of _0xac6989)_0x6a46bb['addRange'](_0x3812ac);return _0x6a46bb;}const _0x358742=_0xdda64a(),_0x38ca88=_0x5adf05['id'],_0x41db5d='formatBlock:'+_0x5bf8bc,_0x3a1d24=this['_setSuggestionData']({'id':_0x358742,'type':_0x41db5d,'data':_0x516f39,'createdAt':new Date(),'authorId':_0x38ca88,'attributes':_0x25da98});for(const _0x227573 of _0xac6989)this['_addSuggestionMarker'](_0x41db5d,_0x358742,_0x38ca88,_0x227573,u['getMultiRangeId']());return _0x3a1d24;}['markDeletion'](_0x495988,_0x11d1f7=null,_0x59a0fa={}){if(_0x495988['isCollapsed'])return null;const _0xa17426=this['editor']['plugins']['get']('Users')['me'],_0x57bdd6=new _0x2819a3(_0x495988['start'],_0x495988['end']);for(const {suggestion:_0x540545,meta:_0x2dbd51}of this['_findSuggestions'](_0x57bdd6,'insertion'))if(_0x2dbd51['isOwn']&&!_0x2dbd51['isNextTo']){if(_0x540545['isMultiRange']){const _0x26d041=_0x540545['getRanges']()['filter'](_0xc81ac3=>'$graveyard'!=_0xc81ac3['root']['rootName']);_0x26d041['every'](_0x285c7f=>_0x57bdd6['containsRange'](_0x285c7f,!0x0))&&_0x540545['discard']();if(_0x26d041['some'](_0x19700a=>_0x19700a['containsRange'](_0x57bdd6,!0x0))){const _0x5ecf67=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x11d1f7,'accept');return this['forceDefaultExecution'](()=>_0x5ecf67([_0x57bdd6],null,_0x59a0fa)),null;}}else{const _0x1a85a0=_0x57bdd6['getIntersection'](_0x540545['getFirstRange']());null!==_0x1a85a0&&_0x540545['_onDiscard']([_0x1a85a0],null,_0x59a0fa);}}if(_0x57bdd6['detach'](),_0x57bdd6['isCollapsed']||'$graveyard'==_0x57bdd6['root']['rootName'])return null;let _0x3c446f=null,_0x4d1b57=_0x57bdd6['start'],_0x1d7ca0=_0x57bdd6['end'];const _0x69327=this['_findSuggestions'](_0x57bdd6,'deletion');for(const {suggestion:_0xe48d7c,meta:_0x504b3f}of _0x69327){const _0x197c0b=this['_model']['createRange'](_0x4d1b57,_0x1d7ca0);if(_0x504b3f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x504b3f['containsRangeInObject']&&!_0x504b3f['isInsideObject'])){if(_0xe48d7c['isMultiRange']){if(!Lt(_0xe48d7c,_0x59a0fa))continue;let _0x3d4d88=!0x0;for(const _0x4f2293 of _0xe48d7c['getRanges']()){if(_0x4f2293['containsRange'](_0x197c0b,!0x0))return _0xe48d7c;_0x197c0b['containsRange'](_0x4f2293)||(_0x3d4d88=!0x1);}_0x3d4d88&&_0xe48d7c['discard']();}else{const _0xaa6a90=_0xe48d7c['getFirstRange']();if(_0xaa6a90['containsRange'](_0x197c0b,!0x0))return _0xe48d7c;if(!Lt(_0xe48d7c,_0x59a0fa)){_0x197c0b['containsRange'](_0xaa6a90)?_0xe48d7c['removeMarkers']():_0xaa6a90['containsPosition'](_0x4d1b57)?_0x4d1b57=_0xaa6a90['end']:_0xaa6a90['containsPosition'](_0x1d7ca0)&&(_0x1d7ca0=_0xaa6a90['start']);continue;}_0x4d1b57=_0x4d1b57['isBefore'](_0xaa6a90['start'])?_0x4d1b57:_0xaa6a90['start'],_0x1d7ca0=_0x1d7ca0['isAfter'](_0xaa6a90['end'])?_0x1d7ca0:_0xaa6a90['end'],_0x59a0fa=Object['assign']({},_0xe48d7c['attributes']),_0x3c446f?_0xaa6a90['start']['isBefore'](_0x3c446f['getFirstRange']()['start'])?(_0x3c446f['removeMarkers'](),_0x3c446f=_0xe48d7c):_0xe48d7c['removeMarkers']():_0x3c446f=_0xe48d7c;}}}if(_0x3c446f)return this['_setSuggestionRange'](_0x3c446f,this['_model']['createRange'](_0x4d1b57,_0x1d7ca0)),_0x3c446f;{const _0x13b969=_0xdda64a(),_0x2db32c=this['_model']['createRange'](_0x4d1b57,_0x1d7ca0),_0x59a23b=_0xa17426['id'],_0x40a896=_0x11d1f7?'deletion:'+_0x11d1f7:'deletion',_0x48eed4=this['_setSuggestionData']({'id':_0x13b969,'type':_0x40a896,'createdAt':new Date(),'authorId':_0x59a23b,'attributes':_0x59a0fa});return this['_addSuggestionMarker'](_0x40a896,_0x13b969,_0x59a23b,_0x2db32c),_0x48eed4;}}['markMultiRangeDeletion'](_0xb7d433,_0x328560='multi',_0x14da7b={}){const _0x3883a7=this['editor']['plugins']['get']('Users')['me'],_0x245995=_0xb7d433['map'](_0x19d1bb=>new _0x2819a3(_0x19d1bb['start'],_0x19d1bb['end'])),_0xe31efa=new Set();for(const {suggestion:_0x123cf3,meta:_0xf93fb2}of this['_findSuggestions'](_0x245995,'insertion'))_0xf93fb2['isOwn']&&!_0xf93fb2['isNextTo']&&_0xe31efa['add'](_0x123cf3);for(const _0x336d4f of _0xe31efa)if(_0x336d4f['isMultiRange']){const _0x22fe66=_0x336d4f['getRanges']();(!_0x336d4f['attributes']||!_0x336d4f['attributes']['skipNestingCheck'])&&(_0x22fe66['every'](_0x3ab839=>_0x245995['some'](_0xd65c3d=>_0xd65c3d['containsRange'](_0x3ab839,!0x0)))&&_0x336d4f['discard']());if(_0x245995['every'](_0x260900=>_0x22fe66['some'](_0x172b95=>_0x172b95['containsRange'](_0x260900,!0x0)))){const _0x3c7279=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x328560,'accept');return this['forceDefaultExecution'](()=>_0x3c7279(_0xb7d433,null,_0x14da7b)),null;}}else{const _0x1eeaf3=_0x336d4f['getFirstRange']();_0x245995['some'](_0x556a26=>_0x556a26['containsRange'](_0x1eeaf3,!0x0))&&_0x336d4f['discard']();if(_0x245995['every'](_0x4933bc=>_0x1eeaf3['containsRange'](_0x4933bc,!0x0))){const _0x55a65b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x328560,'accept');return this['forceDefaultExecution'](()=>_0x55a65b(_0x245995,null,_0x14da7b)),null;}}const _0x5f36eb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x328560,'join');let _0x2c2f3b=null;for(const _0x2b07b3 of this['getSuggestions']())if(_0x2b07b3['author']['id']==_0x3883a7['id']&&_0x2b07b3['isInContent']&&'deletion'==_0x2b07b3['type']&&_0x2b07b3['subType']==_0x328560&&Lt(_0x2b07b3,_0x14da7b)&&(_0x5f36eb(_0x2b07b3['getRanges'](),_0x245995)||_0x5f36eb(_0x245995,_0x2b07b3['getRanges']()))){if(_0x2c2f3b){if(_0x2b07b3['commentThread']&&_0x2b07b3['commentThread']['length'])continue;for(const _0x21cc23 of _0x2b07b3['getRanges']())_0x2c2f3b['isIntersectingWithRange'](_0x21cc23)||_0x2c2f3b['addRange'](_0x21cc23);_0x2b07b3['removeMarkers']();}else{_0x2c2f3b=_0x2b07b3;for(const _0x1aa2d9 of _0x245995)_0x2b07b3['isIntersectingWithRange'](_0x1aa2d9)||_0x2b07b3['addRange'](_0x1aa2d9);}}if(_0x2c2f3b)return _0x2c2f3b;_0xe31efa['clear']();for(const {suggestion:_0x4b53ed,meta:_0x3c49b3}of this['_findSuggestions'](_0x245995,'deletion'))_0x3c49b3['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3c49b3['containsRangeInObject']&&!_0x3c49b3['isInsideObject'])&&Lt(_0x4b53ed,_0x14da7b)&&_0xe31efa['add'](_0x4b53ed);for(const _0x545128 of _0xe31efa){const _0x1c62ac=_0x545128['getRanges']();if(!_0x14da7b||!_0x14da7b['skipNestingCheck']){if(_0x245995['every'](_0x190e34=>_0x1c62ac['some'](_0x834091=>_0x834091['containsRange'](_0x190e34,!0x0))))return _0x545128;}(!_0x545128['attributes']||!_0x545128['attributes']['skipNestingCheck'])&&(_0x1c62ac['every'](_0x25e548=>_0x245995['some'](_0x4863cc=>_0x4863cc['containsRange'](_0x25e548,!0x0)))&&_0x545128['discard']());}const _0x49532b=_0xdda64a(),_0x3907b8=_0x3883a7['id'],_0x22dc2f='deletion:'+_0x328560,_0x2c4c41=this['_setSuggestionData']({'id':_0x49532b,'type':_0x22dc2f,'createdAt':new Date(),'authorId':_0x3907b8,'attributes':_0x14da7b});for(const _0x14dd76 of _0x245995)_0x14dd76['detach'](),_0x14dd76['isCollapsed']||'$graveyard'==_0x14dd76['root']['rootName']||this['_addSuggestionMarker'](_0x22dc2f,_0x49532b,_0x3907b8,_0x14dd76,u['getMultiRangeId']());return _0x2c4c41;}['markAttributeChange'](_0x59fd91,_0x355843,_0x2aea3c,_0x58e4e4,_0x481889){if(_0x59fd91['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x24cb75=this['editor']['plugins']['get']('Users')['me']['id'],_0x27dd96=Array['from'](this['_suggestions']['values']())['filter'](_0x41fdc5=>'attribute'==_0x41fdc5['type']&&_0x41fdc5['data']['key']==_0x355843&&_0x41fdc5['isIntersectingWithRange'](_0x59fd91));if('default'===this['_trackFormatChanges']){const _0x2e55be=this['_findSuggestions'](_0x59fd91,'insertion')['filter'](({meta:_0x5165ea})=>_0x5165ea['isOwn']&&!_0x5165ea['isInsideObject']&&!_0x5165ea['isNextTo'])['map'](({suggestion:_0x44953d})=>_0x44953d);_0x27dd96['unshift'](..._0x2e55be);}const _0x31d680=new Map([[_0x59fd91,_0x2aea3c]]);for(const _0x1f8e95 of _0x27dd96){const _0x5b03cc='attribute'==_0x1f8e95['type']?_0x1f8e95['data']['oldValue']:void 0x0,_0x13cdf4=_0x1f8e95['getFirstRange'](),_0x149981=Array['from'](_0x31d680['keys']())['find'](_0x2d2664=>_0x2d2664['isIntersecting'](_0x13cdf4));if(!_0x149981)continue;const _0x1a73a5=_0x149981['getDifference'](_0x13cdf4);this['_isBlockAttribute'](_0x355843)&&'insertion'==_0x1f8e95['type']&&0x0!=_0x1a73a5['length']||(_0x31d680['delete'](_0x149981),_0x1a73a5['forEach'](_0x4565a7=>{_0x31d680['set'](_0x4565a7,_0x2aea3c);}),'insertion'!=_0x1f8e95['type']&&_0x5b03cc!=_0x58e4e4&&_0x31d680['set'](_0x149981['getIntersection'](_0x13cdf4),_0x5b03cc));}const _0xaa1dff=[];for(const [_0x189f0d,_0x1bfa01]of _0x31d680){const _0x45dcbd=_0xdda64a(),_0x670547={'key':_0x355843,'oldValue':_0x1bfa01,'newValue':_0x58e4e4};_0x355843['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':_0x355843});const _0x6c4588=('attribute:'+(_0x355843+'|'+Vt({'newValue':_0x58e4e4})))['substring'](0x0,0x3c),_0x428ca2=this['_setSuggestionData']({'id':_0x45dcbd,'type':_0x6c4588,'data':_0x670547,'createdAt':new Date(),'authorId':_0x24cb75,'attributes':_0x481889});_0xaa1dff['push'](_0x428ca2),this['_addSuggestionMarker'](_0x6c4588,_0x45dcbd,_0x24cb75,_0x189f0d);}return _0xaa1dff;}['enableDefaultAttributesIntegration'](_0x201723){this['enableCommand'](_0x201723,(_0x24a699,..._0x41de79)=>{this['_recordAttributeChanges'](()=>{_0x24a699(..._0x41de79);});});}['registerBlockAttribute'](_0x253756){this['_blockAttributeKeys']['add'](_0x253756);}['registerInlineAttribute'](_0x535fde){this['_inlineAttributeKeys']['add'](_0x535fde);}['_getAttributeKey'](_0x4b564e){return'attribute'==_0x4b564e['type']?_0x4b564e['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x28b7b4,_0x2828ee){const _0x40b458=_0x28b7b4['getFirstMarker']();this['_model']['change'](_0x137229=>{_0x137229['updateMarker'](_0x40b458,{'range':_0x2828ee});});}['_addThreadToSuggestion'](_0xfef713){const _0x33da62=_0xfef713['id'],_0x1ecb84=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x33da62)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1ecb84,'threadId':_0x33da62,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5567d4=this['_commentsRepository']['getCommentThread'](_0x33da62);_0x5567d4['unbind']('isRemovable'),_0x5567d4['isRemovable']=!0x1,_0xfef713['commentThread']=_0x5567d4;}['_checkSuggestionCorrectness'](_0x1ea063,_0x5758fe,_0x1d61af,_0xcb84b9){if(_0x1ea063['type']!=_0x5758fe||_0x1ea063['subType']!=_0x1d61af||_0x1ea063['creator']['id']!=_0xcb84b9)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xa5fb70('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3fd83b,_0x556593){const _0x4b381b=_0x3fd83b['getFirstRange']();if(_0x556593['isEqual'](_0x4b381b))_0x3fd83b['removeMarkers']();else{if(_0x4b381b['containsRange'](_0x556593)){const _0x590c1d=this['_model']['createPositionAt'](_0x556593['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3fd83b,this['_model']['createRange'](_0x4b381b['start'],_0x590c1d));const _0x1daf3a=_0xdda64a(),_0x27a3a7=_0x3fd83b['creator']['id'],_0x16997d=_0x3fd83b['type']+':'+_0x3fd83b['subType'];this['_setSuggestionData']({'id':_0x1daf3a,'type':_0x16997d,'createdAt':new Date(),'authorId':_0x27a3a7,'data':_0x3fd83b['data'],'attributes':_0x3fd83b['attributes']});const _0x212df1=this['_model']['createPositionAt'](_0x556593['end']['parent'],'after'),_0x4c5580=this['_model']['createRange'](_0x212df1,_0x4b381b['end']);this['_addSuggestionMarker'](_0x16997d,_0x1daf3a,_0x27a3a7,_0x4c5580);}else{if(_0x4b381b['containsPosition'](_0x556593['start'])){const _0x2e6d29=this['_model']['createPositionAt'](_0x556593['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3fd83b,this['_model']['createRange'](_0x4b381b['start'],_0x2e6d29));}else{const _0x5629ef=this['_model']['createPositionAt'](_0x556593['end']['parent'],'after');this['_setSuggestionRange'](_0x3fd83b,this['_model']['createRange'](_0x5629ef,_0x4b381b['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x46fc2e){for(const {suggestion:_0x354973,meta:_0x28be86}of this['_findSuggestions'](_0x46fc2e,'insertion')){if(!_0x28be86['isOwn'])continue;const _0x2a1ebd=_0x354973['getRanges']();for(const _0x2bd3ca of _0x2a1ebd)if(!_0x46fc2e['getDifference'](_0x2bd3ca)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x47b2d2){const _0x1747c6=this['editor']['plugins']['get']('Users')['getUser'](_0x47b2d2);if(!_0x1747c6)throw new _0xa5fb70('track-changes-user-not-found',this);return _0x1747c6;}['_getExternalAuthor'](_0x422599){const _0x57791d=this['editor']['plugins']['get']('Users'),_0x23bca3=_0x40f9c5('external:'+_0x422599),_0x2b0833=_0x57791d['getUser'](_0x23bca3);return _0x2b0833||_0x57791d['addUser']({'id':_0x23bca3,'name':_0x422599});}['_createSuggestion'](_0x4daa16,_0x146645,_0x42ee47,_0x4a0cb8,_0x41e587){const _0x399eb0=this['_getAuthorFromId'](_0x4a0cb8),_0x192f5f=this['_suggestionFactory']['buildSuggestion'](_0x4daa16,_0x146645,_0x42ee47,_0x399eb0,_0x41e587,_0x36e5db=>{this['_updateSuggestionData'](_0x42ee47,{'attributes':_0x36e5db});const _0x5b4a40=this['getSuggestion'](_0x42ee47);this['_joinWithAdjacentSuggestions'](new Set([_0x5b4a40])),this['_refreshSuggestionsChain'](new Set([_0x5b4a40]));});return this['listenTo'](_0x192f5f,'accept',()=>{this['_updateSuggestionData'](_0x42ee47,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x192f5f,'discard',()=>{this['_updateSuggestionData'](_0x42ee47,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x42ee47,_0x192f5f),this['_suggestionState']['set'](_0x192f5f,'notReady'),_0x192f5f;}['_splitMarkerName'](_0xfe49cb){const _0x324b6d=_0xfe49cb['split'](':');return{'group':_0x324b6d[0x0],'type':_0x324b6d[0x1],'subType':_0x324b6d['length']>=0x5?_0x324b6d[0x2]:null,'id':_0x324b6d['length']<0x5?_0x324b6d[0x2]:_0x324b6d[0x3],'authorId':_0x324b6d['length']<0x5?_0x324b6d[0x3]:_0x324b6d[0x4],'markerCount':0x6==_0x324b6d['length']?_0x324b6d[0x5]:null};}['_breakSuggestionMarker'](_0x331ab6,_0xd49ac0,_0x3f7346){const _0x570e74=_0x331ab6['getFirstRange'](),_0x8515b5=_0x570e74['start'],_0x20a98b=_0x570e74['end'];this['_setSuggestionRange'](_0x331ab6,this['_model']['createRange'](_0x8515b5,_0xd49ac0));const _0x1883da=_0xdda64a(),_0x6d2cc2=_0x331ab6['creator']['id'],_0x4b047=_0x331ab6['type']+(_0x331ab6['subType']?':'+_0x331ab6['subType']:'');this['_setSuggestionData']({'id':_0x1883da,'type':_0x4b047,'createdAt':new Date(),'authorId':_0x6d2cc2,'originalSuggestionId':_0x331ab6['id'],'attributes':_0x331ab6['attributes'],'data':_0x331ab6['data']});const _0x37ea5b=this['_getAttributeKey'](_0x331ab6);('formatBlock'==_0x331ab6['type']||_0x37ea5b&&this['_isBlockAttribute'](_0x37ea5b))&&(_0x3f7346=this['_model']['createPositionBefore'](_0x3f7346['parent'])),this['_addSuggestionMarker'](_0x4b047,_0x1883da,_0x6d2cc2,this['_model']['createRange'](_0x3f7346,_0x20a98b));}['_findSuggestions'](_0x415ce2,_0x490cdd=null){const _0x292ad=[],_0x2501fa=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x415ce2)||(_0x415ce2=[_0x415ce2]);for(const _0x359ada of this['getSuggestions']()){if(!_0x359ada['isInContent'])continue;if(_0x490cdd&&_0x359ada['type']!=_0x490cdd)continue;let _0x99e64=!0x1;for(const _0x465251 of _0x359ada['getRanges']()){for(const _0x496336 of _0x415ce2){const _0x3b6f5c=_0x496336['start']['isEqual'](_0x465251['end'])||_0x496336['end']['isEqual'](_0x465251['start']);if(_0x3b6f5c||_0x496336['getIntersection'](_0x465251)){const _0x555173=_0x496336['containsRange'](_0x465251)&&Rt(this['_model']['schema'],_0x465251['start'],_0x496336),_0xbc6457=_0x465251['containsRange'](_0x496336)&&Rt(this['_model']['schema'],_0x496336['start'],_0x465251);_0x292ad['push']({'suggestion':_0x359ada,'meta':{'isOwn':_0x2501fa==_0x359ada['author'],'isNextTo':_0x3b6f5c,'isInsideObject':_0x555173,'containsRangeInObject':_0xbc6457}}),_0x99e64=!0x0;break;}}if(_0x99e64)break;}}return _0x292ad;}['_addSuggestionMarker'](_0x52118d,_0x407496,_0x3d88d2,_0x89be88,_0x46a30b){this['_model']['change'](_0x4ca988=>{let _0x1b8eed='suggestion:'+_0x52118d+':'+_0x407496+':'+_0x3d88d2;_0x46a30b&&(_0x1b8eed=_0x1b8eed+':'+_0x46a30b),_0x4ca988['addMarker'](_0x1b8eed,{'range':_0x89be88,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x479fc5){const _0x32b9ee=_0x479fc5['previous'],_0x2738d9=_0x479fc5['next'];_0x479fc5['previous']=null,_0x479fc5['next']=null,null!=_0x32b9ee&&_0x32b9ee['next']==_0x479fc5&&(_0x32b9ee['next']=_0x2738d9),null!=_0x2738d9&&_0x2738d9['previous']==_0x479fc5&&(_0x2738d9['previous']=_0x32b9ee),'ready'==this['_suggestionState']['get'](_0x479fc5)&&(this['_suggestionState']['set'](_0x479fc5,'removed'),this['fire']('suggestionUnloaded',_0x479fc5,_0x32b9ee,_0x2738d9));}['_setSuggestionData'](_0x35a3bb){const _0x55e62d=_0x35a3bb['id'],_0x5f4f2c=this['addSuggestionData'](_0x35a3bb);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5adab1=this['editor']['plugins']['get']('PendingActions'),_0x466b59=_0x5f4f2c['hasComments'],_0x4ba488=_0x5f4f2c['subType']?_0x5f4f2c['type']+':'+_0x5f4f2c['subType']:_0x5f4f2c['type'],_0x3a4d90=this['editor']['locale'],_0x5be5ab=_0x5adab1['add'](o(_0x3a4d90,'PENDING_ACTION_SUGGESTION')),_0x43d34e={'id':_0x55e62d,'type':_0x4ba488,'hasComments':_0x466b59,'data':_0x35a3bb['data']||null,'originalSuggestionId':_0x35a3bb['originalSuggestionId']||null,'attributes':_0x5f4f2c['attributes']};this['_adapter']['addSuggestion'](_0x43d34e)['then'](_0x35b602=>{_0x5f4f2c['_saved']=!0x0,_0x5adab1['remove'](_0x5be5ab),_0x35b602&&_0x35b602['createdAt']&&(this['_suggestions']['get'](_0x55e62d)['createdAt']=_0x35b602['createdAt']);})['catch'](_0x29f7cf=>{throw _0x25c1e2('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5f4f2c['discard']();}),_0x5f4f2c['stopListening'](),this['_suggestions']['delete'](_0x5f4f2c['id']),this['_suggestionState']['delete'](_0x5f4f2c),_0x29f7cf;});}return _0x5f4f2c;}['_isBlockAttribute'](_0x473a0c){return this['_blockAttributeKeys']['has'](_0x473a0c);}['_updateSuggestionData'](_0x59fdd3,_0xcec067){const _0x298d89=this['editor']['plugins']['get']('PendingActions'),_0xb5ea2b=this['getSuggestion'](_0x59fdd3);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xb5ea2b['_saved']){const _0x3d07f3=_0x298d89['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x59fdd3,_0xcec067)['then'](()=>{_0x298d89['remove'](_0x3d07f3);});}else _0xb5ea2b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x59fdd3,_0xcec067);});}}['_getSuggestionData'](_0x50ce8c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xa5fb70('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x50ce8c);}['_handleNewSuggestionMarker'](_0x18063a){const {id:_0x54fbf4,type:_0x5e7fbd,subType:_0x3a26d1,authorId:_0x159242}=this['_splitMarkerName'](_0x18063a),_0x1fe53c=this['_suggestions']['get'](_0x54fbf4)||this['_createSuggestion'](_0x5e7fbd,_0x3a26d1,_0x54fbf4,_0x159242,{});switch(this['_checkSuggestionCorrectness'](_0x1fe53c,_0x5e7fbd,_0x3a26d1,_0x159242),this['_suggestionState']['get'](_0x1fe53c)){case'notReady':this['_getSuggestionData'](_0x54fbf4)['then'](_0x3d9d63=>{let _0x4665db=Promise['resolve']();_0x3d9d63['hasComments']&&(_0x4665db=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x54fbf4})),_0x4665db['then'](()=>{this['addSuggestionData'](_0x3d9d63)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1fe53c,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x54fbf4,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1fe53c,'ready'),this['fire']('suggestionLoaded',_0x1fe53c);break;case'ready':this['fire']('suggestionChanged',_0x1fe53c);}return _0x1fe53c['addMarkerName'](_0x18063a),_0x1fe53c;}['_refreshSuggestionsChain'](_0x290c23){const _0xa0af84=Array['from'](_0x290c23),_0x3fde0d=_0xa0af84['filter'](_0x35d886=>'attribute'==_0x35d886['type']);this['_refreshAttributeSuggestionsChain'](_0x3fde0d);const _0x4b2342=_0xa0af84['filter'](_0x43195c=>!_0x43195c['isMultiRange']&&'attribute'!=_0x43195c['type']),_0x36c597=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe09c3=>!_0xe09c3['isMultiRange']&&'attribute'!=_0xe09c3['type']),_0x36d207=_0x36c597['filter'](_0x1a6019=>!_0x290c23['has'](_0x1a6019)),_0x1382bd=new Map(_0x36c597['map'](_0x3be8ac=>[_0x3be8ac,this['_suggestionFactory']['getSuggestionCallback'](_0x3be8ac['type'],_0x3be8ac['subType'],'chain')])),_0x305e65=new Map(_0x36c597['map'](_0x1c4305=>[_0x1c4305,_0x1c4305['getFirstRange']()])),_0x24091f=new Set(),_0xb30200=new Set();for(let _0x4d3c46=0x0;_0x4d3c46<_0x4b2342['length'];_0x4d3c46++)_0x4192db(_0x4b2342[_0x4d3c46],_0x4b2342,_0x4d3c46+0x1);for(let _0x4e980a=0x0;_0x4e980a<_0x4b2342['length'];_0x4e980a++)_0x4192db(_0x4b2342[_0x4e980a],_0x36d207,0x0);const _0x29b4fb=new Set();for(let _0x34498f=0x0;_0x34498f<_0x4b2342['length'];_0x34498f++){const _0x3cc50e=_0x4b2342[_0x34498f];!_0xb30200['has'](_0x3cc50e)&&_0x3cc50e['previous']&&(_0x29b4fb['add'](_0x3cc50e['previous']),_0x3cc50e['previous']['next']===_0x3cc50e&&(_0x3cc50e['previous']['next']=null),_0x3cc50e['previous']=null),!_0x24091f['has'](_0x3cc50e)&&_0x3cc50e['next']&&(_0x29b4fb['add'](_0x3cc50e['next']),_0x3cc50e['next']['previous']===_0x3cc50e&&(_0x3cc50e['next']['previous']=null),_0x3cc50e['next']=null);}function _0x4192db(_0x54fa02,_0x5389ae,_0x45437e){for(let _0x96e09e=_0x45437e;_0x96e09e<_0x5389ae['length'];_0x96e09e++){const _0x252cd9=_0xfe5461(_0x54fa02,_0x5389ae[_0x96e09e]);_0x252cd9&&(_0x252cd9[0x0]['next']=_0x252cd9[0x1],_0x252cd9[0x1]['previous']=_0x252cd9[0x0],_0x24091f['add'](_0x252cd9[0x0]),_0xb30200['add'](_0x252cd9[0x1]));}}function _0xfe5461(_0x1e97e9,_0x1d93f3){if(_0x1e97e9['author']['id']!==_0x1d93f3['author']['id'])return null;const _0x3065a0=_0x1382bd['get'](_0x1e97e9)(_0x1e97e9,_0x1d93f3,_0x305e65['get'](_0x1e97e9),_0x305e65['get'](_0x1d93f3));if(!_0x3065a0)return null;return _0x1382bd['get'](_0x1d93f3)(_0x1e97e9,_0x1d93f3,_0x305e65['get'](_0x1e97e9),_0x305e65['get'](_0x1d93f3))?_0x3065a0[0x1]['commentThread']&&_0x3065a0[0x1]['commentThread']['length']?null:_0x3065a0:null;}_0x29b4fb['size']&&this['_refreshSuggestionsChain'](_0x29b4fb);}['_refreshAttributeSuggestionsChain'](_0x3c7b8f){if(0x0==_0x3c7b8f['length'])return;const _0x291f39=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x340b08=>'attribute'==_0x340b08['type']&&_0x340b08['_isDataLoaded']),_0x20137f=[],_0x1c4b12=new Map();for(const _0x5301d2 of _0x291f39){const _0x421fed=_0x40f9c5(_0x5301d2['attributes']);_0x1c4b12['has'](_0x421fed)||(_0x1c4b12['set'](_0x421fed,_0x20137f['length']),_0x20137f['push']([]));const _0x450d65=_0x1c4b12['get'](_0x421fed);_0x20137f[_0x450d65]['push'](_0x5301d2);}!(function(){_0x20137f['sort']((_0xd967f8,_0x40d087)=>{const _0x2775d9=_0xd967f8[0x0]['createdAt'],_0x4a3bd1=_0x40d087[0x0]['createdAt'];return _0x2775d9==_0x4a3bd1?_0xd967f8[0x0]['attributes']['groupId']<_0x40d087[0x0]['attributes']['groupId']?-0x1:0x1:_0x2775d9<_0x4a3bd1?-0x1:0x1;});for(const _0x56d560 of _0x20137f)_0x56d560['sort']((_0x1ee08c,_0x3883e6)=>_0x1ee08c['id']<_0x3883e6['id']?-0x1:0x1);}());for(let _0x1ee398=0x0;_0x1ee398<_0x20137f['length'];_0x1ee398++){if(0x0==_0x20137f[_0x1ee398]['length'])continue;const _0x395bde=[];for(let _0x23cb9f=_0x1ee398+0x1;_0x23cb9f<_0x20137f['length'];_0x23cb9f++)0x0!=_0x20137f[_0x23cb9f]['length']&&_0x7c4f02(_0x20137f[_0x1ee398],_0x20137f[_0x23cb9f])&&_0x395bde['push'](_0x23cb9f);for(const _0x3123f8 of _0x395bde)_0x20137f[_0x1ee398]=_0x20137f[_0x1ee398]['concat'](_0x20137f[_0x3123f8]),_0x20137f[_0x3123f8]=[];}for(const _0x50b8f3 of _0x20137f)for(let _0xe810c7=0x0;_0xe810c7<_0x50b8f3['length'];_0xe810c7++)_0x50b8f3[_0xe810c7]['next']=_0x50b8f3[_0xe810c7+0x1]||null;for(const _0x231b01 of _0x20137f)for(let _0x1b5d36=0x0;_0x1b5d36<_0x231b01['length'];_0x1b5d36++)_0x231b01[_0x1b5d36]['previous']=_0x231b01[_0x1b5d36-0x1]||null;function _0x7c4f02(_0x429778,_0x30f498){if(_0x429778[0x0]['attributes']['groupId']!==_0x30f498[0x0]['attributes']['groupId']&&_0x429778[0x0]['author']!==_0x30f498[0x0]['author'])return!0x1;if(!function(_0x45f655,_0x45ef01){if(!_0x45f655['hasComments']&&!_0x45ef01['hasComments'])return!0x0;if(_0x45f655['hasComments']&&_0x45ef01['hasComments'])return!0x1;if(_0x45f655['hasComments']&&_0x45ef01['createdAt']<_0x45f655['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x45ef01['hasComments']&&_0x45f655['createdAt']<_0x45ef01['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x429778[0x0],_0x30f498[0x0]))return!0x1;const _0x2bed22=Bt(_0x429778[0x0]['attributes'],'groupId'),_0xc1fc80=Bt(_0x30f498[0x0]['attributes'],'groupId');if(!_0x2da674(_0x2bed22,_0xc1fc80))return!0x1;return!!_0x429778['every'](_0x329156=>_0x30f498['some'](_0x3de964=>_0x329156['getFirstRange']()['isEqual'](_0x3de964['getFirstRange']())))&&_0x30f498['every'](_0x3a1994=>_0x429778['some'](_0x1f2f96=>_0x3a1994['getFirstRange']()['isEqual'](_0x1f2f96['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x492d81){const _0x3dbacd=Array['from'](_0x492d81),_0x466a02=this['getSuggestions']({'skipNotAttached':!0x0}),_0x199068=_0x466a02['filter'](_0x1480d9=>!_0x492d81['has'](_0x1480d9)),_0x30c1fa=new Map(_0x3dbacd['map'](_0x59d9fe=>[_0x59d9fe,this['_suggestionFactory']['getSuggestionCallback'](_0x59d9fe['type'],_0x59d9fe['subType'],'join')])),_0x31590e=new Map(_0x466a02['map'](_0x980cf7=>[_0x980cf7,_0x980cf7['getRanges']()]));for(let _0x2af6d5=0x0;_0x2af6d5<_0x3dbacd['length'];_0x2af6d5++){if(_0x24ca54(this,_0x3dbacd[_0x2af6d5],_0x3dbacd,_0x2af6d5+0x1))return!0x0;}for(let _0x54e758=0x0;_0x54e758<_0x3dbacd['length'];_0x54e758++){if(_0x24ca54(this,_0x3dbacd[_0x54e758],_0x199068,0x0))return!0x0;}return!0x1;function _0x24ca54(_0x4b4b6b,_0x354b1a,_0x39f69e,_0x127911){for(let _0x5a6117=_0x127911;_0x5a6117<_0x39f69e['length'];_0x5a6117++){const _0x14b999=_0x39f69e[_0x5a6117];if(_0x14b999['type']!==_0x354b1a['type']||_0x14b999['author']['id']!==_0x354b1a['author']['id']||_0x14b999['subType']!==_0x354b1a['subType'])continue;if(!Pt(_0x354b1a,_0x14b999,['groupId']))continue;if('attribute'==_0x354b1a['type']&&_0x354b1a['data']['oldValue']!=_0x14b999['data']['oldValue'])continue;if('attribute'==_0x354b1a['type']&&_0x4b4b6b['_isBlockAttribute'](_0x354b1a['data']['key']))continue;if('formatBlock'==_0x354b1a['type']){const _0x44f7a4=_0x4b4b6b['editor']['model'],_0xf7409d=_0x354b1a['getContainedElement']();if(_0xf7409d&&(_0x44f7a4['schema']['isObject'](_0xf7409d)||_0x44f7a4['schema']['isLimit'](_0xf7409d)))continue;}const _0x5c7c6c=_0x30c1fa['get'](_0x354b1a),_0x192a13=_0x31590e['get'](_0x354b1a),_0x25f86b=_0x31590e['get'](_0x14b999),_0x3bc187=_0x354b1a['commentThread']&&_0x354b1a['commentThread']['length'],_0x2d6623=_0x14b999['commentThread']&&_0x14b999['commentThread']['length'];if(!_0x3bc187&&_0x5c7c6c(_0x25f86b,_0x192a13))return _0x4b4b6b['_joinSuggestions'](_0x14b999,_0x354b1a),_0x31590e['delete'](_0x354b1a),!0x0;if(!_0x2d6623&&_0x5c7c6c(_0x192a13,_0x25f86b))return _0x4b4b6b['_joinSuggestions'](_0x354b1a,_0x14b999),_0x31590e['delete'](_0x14b999),!0x0;}return!0x1;}}['_joinSuggestions'](_0x10155b,_0x33c3c4){if(_0x10155b['isMultiRange']){for(const _0x3f5f15 of _0x33c3c4['getRanges']())_0x10155b['addRange'](_0x3f5f15);}else{const _0x132b10=_0x33c3c4['getFirstRange']()['end'];this['_setSuggestionRange'](_0x10155b,this['_model']['createRange'](_0x10155b['getFirstRange']()['start'],_0x132b10));}_0x33c3c4['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4dd7c0,_0x526523){const _0x3120ad=_0x4dd7c0['startsWith']('format')||_0x4dd7c0['startsWith']('attribute')?'FORMATTING':_0x4dd7c0['toUpperCase']();return o(this['editor']['locale'],_0x526523+'_'+_0x3120ad+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x4dd0bb=this['editor'];if(!_0x4dd0bb['ui'])return;const {ariaLiveAnnouncer:_0x5e3eae}=_0x4dd0bb['ui'];_0x5ac0e4(this['_model'],({left:_0x97a860,entered:_0x72264})=>{for(const _0x451d90 of _0x97a860){const {group:_0x206680,type:_0x58de7e}=this['_splitMarkerName'](_0x451d90['name']);if('suggestion'===_0x206680){_0x5e3eae['announce'](this['_getMarkerAnnouncementText'](_0x58de7e,'LEAVE'));break;}}for(const _0x1e4a1a of _0x72264){const {group:_0xa260b6,type:_0x237f64}=this['_splitMarkerName'](_0x1e4a1a['name']);if('suggestion'===_0xa260b6){_0x5e3eae['announce'](this['_getMarkerAnnouncementText'](_0x237f64,'ENTER'));break;}}});}['_processAttributeChanges'](_0x18cc3e){if(this['_recordAttributeSuggestions'])return!0x1;const _0x257c67=this['editor'],_0x2e2a10=_0x257c67['model']['document']['differ']['getChanges']();if(0x0==_0x2e2a10['length'])return!0x1;const _0x448e7e=[],_0x58d68f=_0x2e2a10['filter'](_0x4aec0d=>'attribute'==_0x4aec0d['type']),_0x40d759=_0x2e2a10['filter'](_0x5b7452=>'insert'==_0x5b7452['type']&&'$text'!=_0x5b7452['name']),_0x506738=_0x2e2a10['filter'](_0xc58e62=>'remove'==_0xc58e62['type']&&'$text'!=_0xc58e62['name']);for(const _0x1af1fe of _0x58d68f)_0x448e7e['push']({'key':_0x1af1fe['attributeKey'],'newValue':_0x1af1fe['attributeNewValue'],'oldValue':_0x1af1fe['attributeOldValue'],'range':Ot(_0x1af1fe['range'],_0x257c67['model'])});for(const _0xcf322b of _0x40d759){const _0x3785ac=_0x506738['find'](_0x27f633=>_0x27f633['position']['isEqual'](_0xcf322b['position']));_0x3785ac&&_0x448e7e['push']({'key':m,'newValue':_0xcf322b['name'],'oldValue':_0x3785ac['name'],'range':_0x257c67['model']['createRangeOn'](_0xcf322b['position']['nodeAfter'])});}return 0x0!=_0x448e7e['length']&&this['_reduceExistingSuggestions'](_0x18cc3e,_0x448e7e);}['_processAttributeSuggestions'](_0x4c0c9e){let _0x9723e=!0x1;const _0x36a2de=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x447401=>_0x447401['data']['newRange']&&_0x447401['name']['startsWith']('suggestion:attribute:'));for(const _0x4a56ef of _0x36a2de){const {subType:_0x19a403,id:_0x93a2d0}=this['_splitMarkerName'](_0x4a56ef['name']),_0x3269e8=_0x19a403['split']('|')[0x0];for(const _0x203b09 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x203b09['id']!=_0x93a2d0&&'attribute'==_0x203b09['type']&&_0x203b09['data']&&_0x203b09['data']['key']==_0x3269e8&&_0x203b09['getFirstRange']()['isIntersecting'](_0x4a56ef['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x203b09,_0x4a56ef['data']['newRange'],_0x4c0c9e),_0x9723e=!0x0);}return _0x9723e;}['_recordAttributeChanges'](_0x39a974){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x39a974();}['_isRegisteredAttribute'](_0x5878a5){const _0x5143ef=this['_isBlockAttribute'](_0x5878a5),_0x22fc80=this['_inlineAttributeKeys']['has'](_0x5878a5);return _0x5143ef||_0x22fc80;}['_reduceExistingSuggestions'](_0x15bbd1,_0x9e15e7){if(0x0==_0x9e15e7['length'])return!0x1;let _0x4200a7=!0x1;for(const _0x33d5ef of _0x9e15e7){const _0x2d1028=this['_findSuggestions'](_0x33d5ef['range'],'attribute')['filter'](_0x29de42=>!_0x29de42['meta']['isNextTo'])['map'](_0x3ad4ad=>_0x3ad4ad['suggestion']),_0x5c16f3=_0x40f9c5({'newValue':_0x33d5ef['newValue']});_0x2d1028['filter'](_0x343053=>{const [_0x55f1f3,_0x56f9f1]=_0x343053['subType']['split']('|');return _0x55f1f3==_0x33d5ef['key']&&_0x56f9f1!=_0x5c16f3;})['forEach'](_0x3aa0c7=>{this['_reduceSuggestionAttributeRange'](_0x3aa0c7,_0x33d5ef['range'],_0x15bbd1),_0x4200a7=!0x0;});}return _0x4200a7;}['_reduceSuggestionAttributeRange'](_0x4886e2,_0x3bcf9d,_0x6e400b){const _0x486e5b=_0x4886e2['getFirstRange']()['getDifference'](_0x3bcf9d);0x0!==_0x486e5b['length']?0x1!==_0x486e5b['length']?this['_breakSuggestionMarker'](_0x4886e2,_0x3bcf9d['start'],_0x3bcf9d['end']):this['_setSuggestionRange'](_0x4886e2,_0x486e5b[0x0]):_0x6e400b['removeMarker'](_0x4886e2['getFirstMarker']());}constructor(_0x21ff2f){function _0x18c3f9(_0x50163c){return _0x50163c['map'](_0x134861=>String['fromCharCode'](_0x134861))['join']('');}super(_0x21ff2f),this['_recordAttributeSuggestions']=!0x1,this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x8054a0,_0x48df81,_0x303737,_0x23565f)=>{this['_model']['change'](()=>{for(const _0x301f17 of[..._0x23565f,..._0x303737])this['_model']['markers']['has'](_0x301f17)&&_0x21ff2f['editing']['reconvertMarker'](_0x301f17);});}),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']=_0x21ff2f['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(),_0x21ff2f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x21ff2f['config']['get']('trackChanges.trackFormatChanges'),_0x21ff2f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x21ff2f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x21ff2f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x18c3f9([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x18c3f9([0x34,0x30,0x34,0x38,0x31,0x30,0x30,0x36]);}}class xt{['buildSuggestion'](_0x1abad1,_0x1ec963,_0x1d5c0b,_0x4fb479,_0x3a6d70,_0x59b206){return new u(this['_model'],{'type':_0x1abad1,'subType':_0x1ec963,'id':_0x1d5c0b,'author':_0x4fb479,'creator':_0x4fb479,'attributes':_0x3a6d70,'onAttributesChange':_0x59b206,'onAccept':(..._0x142d9e)=>this['getSuggestionCallback'](_0x1abad1,_0x1ec963,'accept')(..._0x142d9e),'onDiscard':(..._0xa82ea7)=>this['getSuggestionCallback'](_0x1abad1,_0x1ec963,'discard')(..._0xa82ea7)});}['registerCustomCallback'](_0x3f5dc7,_0x1c8159,_0x23b9b3,_0x1f5920){const _0x48c776=_0x3f5dc7+':'+_0x1c8159+':'+_0x23b9b3;this['_customCallbacks']['set'](_0x48c776,_0x1f5920);}['getSuggestionCallback'](_0x27d5b0,_0x432752,_0x5fa5ac){const _0x4696a8=_0x27d5b0+':'+_0x432752+':'+_0x5fa5ac;return this['_customCallbacks']['get'](_0x4696a8)||this['_defaultCallbacks']['get'](_0x27d5b0+':'+_0x5fa5ac);}['_registerDefaultCallbacks'](){const _0x300931=()=>!0x1,_0x53f945=_0x225fc0=>{_0x225fc0['sort']((_0x140a59,_0x4a5784)=>_0x140a59['start']['isBefore'](_0x4a5784['start'])?0x1:-0x1),this['_model']['change'](_0x1436d9=>{for(const _0x5cbeba of _0x225fc0){let _0x3cf875;_0x3cf875=_0x5cbeba['end']['isAtEnd']&&_0x5cbeba['end']['parent']==_0x5cbeba['start']['nodeAfter']?_0x1436d9['createSelection'](_0x5cbeba['start']['nodeAfter'],'on'):_0x1436d9['createSelection'](_0x5cbeba),this['_model']['deleteContent'](_0x3cf875,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x26653f=(_0x21eb31,_0x263825)=>{_0x263825&&this['_model']['change'](_0x19ede4=>{const {commandName:_0x1a19ae,commandParams:_0x1c312d=[]}=_0x263825,_0x2105c2=_0x21eb31['map'](_0x28a981=>(Tt(_0x28a981)&&(_0x28a981=this['_model']['createRange'](_0x28a981['end'])),_0x28a981))['filter'](_0x1c9803=>'$graveyard'!==_0x1c9803['root']['rootName']);if(_0x2105c2['length']<0x1)return;const _0x19489a=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1ae0ec=>_0x2819a3['fromRange'](_0x1ae0ec));_0x19ede4['setSelection'](_0x2105c2);for(const _0x3cd16e of this['_editor']['commands']['commands']())_0x3cd16e['refresh']();_0x1c312d['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1a19ae,..._0x1c312d);const _0x1261df=_0x19489a['filter'](_0x2342f0=>'$graveyard'!=_0x2342f0['root']['rootName']);_0x1261df['length']>0x0&&_0x19ede4['setSelection'](_0x1261df);for(const _0xe0008b of _0x19489a)_0xe0008b['detach']();});},_0x419ca5=(_0x480689,_0x400172)=>0x1==_0x480689['length']&&0x1==_0x400172['length']&&_0x480689[0x0]['end']['isEqual'](_0x400172[0x0]['start']),_0x3d5e87=(_0x4025f2,_0x856bbb,_0x97be9c,_0x19739a)=>Gt(_0x4025f2,_0x856bbb,_0x97be9c,_0x19739a,this['_model'])?[_0x4025f2,_0x856bbb]:Gt(_0x856bbb,_0x4025f2,_0x19739a,_0x97be9c,this['_model'])?[_0x856bbb,_0x4025f2]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x300931),this['_defaultCallbacks']['set']('insertion:discard',_0x53f945),this['_defaultCallbacks']['set']('insertion:join',_0x419ca5),this['_defaultCallbacks']['set']('insertion:chain',_0x3d5e87),this['_defaultCallbacks']['set']('deletion:accept',_0x53f945),this['_defaultCallbacks']['set']('deletion:discard',_0x300931),this['_defaultCallbacks']['set']('deletion:join',_0x419ca5),this['_defaultCallbacks']['set']('deletion:chain',_0x3d5e87),this['_defaultCallbacks']['set']('formatInline:accept',_0x26653f),this['_defaultCallbacks']['set']('formatInline:discard',_0x300931),this['_defaultCallbacks']['set']('formatInline:join',_0x419ca5),this['_defaultCallbacks']['set']('formatInline:chain',_0x300931),this['_defaultCallbacks']['set']('formatBlock:accept',_0x26653f),this['_defaultCallbacks']['set']('formatBlock:discard',_0x300931),this['_defaultCallbacks']['set']('formatBlock:join',_0x419ca5),this['_defaultCallbacks']['set']('formatBlock:chain',_0x300931),this['_defaultCallbacks']['set']('attribute:accept',_0x300931),this['_defaultCallbacks']['set']('attribute:discard',(_0x5f34b5,_0x3a4c83)=>{if(!_0x3a4c83)return;const _0x16eae7=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x50faad=>{if(_0x3a4c83['key']==m)for(const _0x2852c9 of _0x5f34b5){const _0x4ba836=_0x2852c9['start']['nodeAfter'],_0x3d94f3=_0x3a4c83['oldValue'];_0x50faad['rename'](_0x4ba836,_0x3d94f3);}else{if(_0x16eae7['_isBlockAttribute'](_0x3a4c83['key'])){for(const _0x44aa5d of _0x5f34b5)void 0x0!==_0x3a4c83['oldValue']?_0x50faad['setAttribute'](_0x3a4c83['key'],_0x3a4c83['oldValue'],_0x44aa5d['start']['nodeAfter']):_0x50faad['removeAttribute'](_0x3a4c83['key'],_0x44aa5d['start']['nodeAfter']);}else{for(const _0x532583 of _0x5f34b5)_0x3a4c83['oldValue']?_0x50faad['setAttribute'](_0x3a4c83['key'],_0x3a4c83['oldValue'],_0x532583):_0x50faad['removeAttribute'](_0x3a4c83['key'],_0x532583);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x419ca5);}constructor(_0x58b3f6){this['_editor']=_0x58b3f6,this['_model']=_0x58b3f6['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}}function Rt(_0x19c791,_0x2c1555,_0x3c8d8c){for(const _0x18b086 of _0x2c1555['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x18b086['root']==_0x18b086)return!0x1;if(!_0x3c8d8c['containsItem'](_0x18b086))return!0x1;if(_0x19c791['isObject'](_0x18b086)||_0x19c791['isLimit'](_0x18b086))return!0x0;}return!0x1;}function Tt(_0xa48a21){return _0xa48a21['end']['parent']==_0xa48a21['start']['nodeAfter']&&_0xa48a21['end']['isAtStart'];}function Et(_0x3e476b,_0x2c8ac5,_0x3fe926,_0x2e6b3a){const _0x438afb=_0x15ae31=>!_0x15ae31['item']['is']('$textProxy')&&!_0x2e6b3a['isObject'](_0x15ae31['item']),_0x1424bb=_0x3e476b['start']['getLastMatchingPosition'](_0x438afb),_0x59b296=_0x3e476b['end']['getLastMatchingPosition'](_0x438afb,{'direction':'backward'});return(!_0x3e476b['start']['isEqual'](_0x1424bb)||!_0x3e476b['end']['isEqual'](_0x59b296))&&(_0x1424bb['isBefore'](_0x59b296)?_0x3fe926['updateMarker'](_0x2c8ac5,{'range':_0x3fe926['createRange'](_0x1424bb,_0x59b296)}):_0x3fe926['removeMarker'](_0x2c8ac5),!0x0);}function Vt(_0x12676e){return _0x40f9c5(_0x12676e);}function Ut(_0x3865a5){const _0x5e6792=_0x3865a5['start']['nodeAfter'];return _0x5e6792&&_0x5e6792['is']('element');}function Ot(_0x500fbf,_0x36ae4e){return null==_0x500fbf['end']['nodeBefore']&&_0x500fbf['end']['parent']==_0x500fbf['start']['nodeAfter']?Ft(_0x500fbf['start']['nodeAfter'],_0x36ae4e):_0x500fbf;}function Ft(_0x129afa,_0xb7a857){const _0x40776e=_0xb7a857['schema']['isObject'](_0x129afa)||_0xb7a857['schema']['isSelectable'](_0x129afa);return _0xb7a857['createRange'](_0xb7a857['createPositionAt'](_0x129afa,'before'),_0x40776e?_0xb7a857['createPositionAfter'](_0x129afa):_0xb7a857['createPositionAt'](_0x129afa,'end'));}function Gt(_0x3158bc,_0x21dd2c,_0x363400,_0x55b2e2,_0x2e7797){if(!Pt(_0x3158bc,_0x21dd2c))return!0x1;if(_0x363400['end']['isEqual'](_0x55b2e2['start']))return!0x0;if(_0x3158bc['type']!=_0x21dd2c['type'])return!0x1;if(!_0x363400['end']['isTouching'](_0x55b2e2['start']))return!0x1;const _0xfe9d1d=_0x2e7797['createRange'](_0x363400['end'],_0x55b2e2['start'])['getWalker']();for(const _0x53a103 of _0xfe9d1d)if(['elementStart','elementEnd']['includes'](_0x53a103['type'])&&_0x2e7797['schema']['isLimit'](_0x53a103['item']))return!0x1;return!0x0;}function Pt(_0x28357b,_0x4940ab,_0x2af550=[]){return!(!_0x28357b['_isDataLoaded']||!_0x4940ab['_isDataLoaded'])&&_0x2da674(Bt(_0x28357b['attributes'],_0x2af550),Bt(_0x4940ab['attributes'],_0x2af550));}function Lt(_0x42a09f,_0x3aa9b8){const _0x543462=Ht(_0x42a09f['attributes']),_0x30b371=Ht(_0x3aa9b8);if(!_0x42a09f['_isDataLoaded'])return!0x1;for(const _0x20f35e of Object['keys'](_0x30b371))if(!_0x2da674(_0x543462[_0x20f35e],_0x30b371[_0x20f35e]))return!0x1;return!0x0;}function Ht(_0x25d208){const _0x27c090=Object['assign']({},_0x25d208);return delete _0x27c090['skipNestingCheck'],delete _0x27c090['tablePasteChainId'],_0x27c090;}class oe extends _0x5279e5(){['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 _0x3ca021=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3ca021);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}constructor(_0x463b95,_0x903cd4,_0x496e3e,_0x264b55){super(),this['model']=_0x903cd4,this['view']=_0x496e3e,this['commentThreadController']=_0x264b55,this['_editor']=_0x463b95,this['_acceptCommand']=_0x463b95['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x463b95['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x46ba79,_0x142161)=>_0x46ba79||_0x142161),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1bc330=>_0x1bc330&&this['_editor']['model']['canEditAt'](_0x903cd4['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x28e3d9=>_0x28e3d9&&this['_editor']['model']['canEditAt'](_0x903cd4['getRanges']())),this['_pendingAction']=null,_0x496e3e['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x496e3e,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x496e3e,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x496e3e,'change:isDirty',()=>{_0x496e3e['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}}class es extends _0x2d0858{['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3d4d6e}=this['_config'];this['commentsListView']=new _0x3d4d6e(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',_0x29bc70=>_0x29bc70+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x224814,_0x3fa3db)=>_0x224814||!!_0x3fa3db);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3dc05d}=this['_config'],_0x7818e6=new _0x3dc05d(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3ec9f8=_0x7818e6['commentInputView'];return _0x7818e6['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3ec9f8,'value',(_0x5593fa,_0x4096ec,_0x3cbde1)=>!!_0x3cbde1||_0x5593fa&&!_0x4096ec),_0x3ec9f8['on']('submit',(_0x26723a,_0x10cdb0)=>{this['fire']('addComment',_0x10cdb0),_0x3ec9f8['editor']['setData']('');}),_0x3ec9f8['on']('cancel',()=>this['focus']()),_0x3ec9f8['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x7818e6;}constructor(_0x195bd3,_0x40eeb4,_0x1175d9,_0x5a140e){super(_0x195bd3),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x40eeb4['authoredAt']),this['bind']('authoredAt')['to'](_0x40eeb4),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x40eeb4,this['_localUser']=_0x1175d9,this['_config']=_0x5a140e,_0x5a140e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}}class ne extends es{['getTemplate'](){const _0x13f823=this['bindTemplate'],_0x1ceaa9=[{'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':_0x13f823['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x13f823['to']('authoredAt',_0x257392=>this['_config']['formatDateTime'](_0x257392))}]}]},{'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']&&_0x1ceaa9['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x23bcb7={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x13f823['if']('isActive','ck-suggestion-wrapper--active'),_0x13f823['to']('type',_0x4f8ce7=>'ck-suggestion-'+_0x4f8ce7),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':_0x1ceaa9}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x23bcb7['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)),_0x23bcb7;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0xe57525,_0x4daec3,_0x3eb948)=>{this['_descriptionElement']['innerHTML']=_0x3eb948;});}['_createButton'](_0x4aadff,_0x531a7d,_0x2333a7,_0x53156a,_0x5b01a2){const _0x179048=new _0x26344e(this['locale']);return _0x179048['set']({'label':_0x4aadff,'icon':_0x531a7d,'tooltip':!0x0,'tooltipPosition':_0x5b01a2}),_0x179048['extendTemplate']({'attributes':{'class':_0x2333a7}}),_0x179048['on']('execute',()=>{this['fire'](_0x53156a,this['_model']['id']);}),_0x179048;}['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;}constructor(_0xf471c2,_0x109b4c,_0x58c36f,_0x117509){super(_0xf471c2,_0x109b4c,_0x58c36f,_0x117509),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x171ffb=>_0x171ffb&&_0x171ffb[0x0]?_0x171ffb[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2a1173,_0x466a6d)=>{let _0xf41162='';for(const _0x284c2d of _0x2a1173)_0xf41162+='<p>'+ds(_0x284c2d['content'],_0x284c2d['color'])+'</p>';return _0x466a6d?_0xf41162:_0x4706ba(_0xf41162,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0xf471c2,'Accept\x20suggestion'),_0x1ce30b['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0xf471c2,'Discard\x20suggestion'),_0x1ce30b['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x236e25(_0xf471c2,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}}function ds(_0x321bbb,_0x43c3e6){let _0x52da0f='';return _0x52da0f+=_0x321bbb['split']('*')['map']((_0xfacfe4,_0x4dd4ec)=>_0x4dd4ec%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0xfacfe4)+'</span>':us(_0xfacfe4))['join'](''),_0x43c3e6&&(_0x52da0f+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x43c3e6['value']+'\x22\x20title=\x22'+_0x43c3e6['title']+'\x22></span>'),_0x52da0f;}function us(_0x98abdd){const _0xa95326=document['createElement']('span');return _0xa95326['innerText']=_0x98abdd,_0xa95326['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 _0x61eb43{static get['requires'](){return[p,_0x281dca,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}['_handleSuggestionControllerDelayed'](_0x2873ba,_0x188eeb){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x40ed66,_0x5d7d26]of this['_handleControllerBuffer']){const _0x31274a=this['_suggestionToController']['has'](_0x40ed66);_0x31274a||_0x5d7d26?_0x31274a&&_0x5d7d26&&this['_destroyController'](_0x40ed66):this['_initializeController'](_0x40ed66);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2873ba,_0x188eeb);}['init'](){const _0x58b49f=this['editor'],_0x4e477b=_0x58b49f['plugins']['get']('TrackChangesEditing'),_0xa13116=_0x58b49f['plugins']['get']('Annotations'),_0x4b7c69=_0x58b49f['plugins']['get']('EditorAnnotations'),_0xfe507a=_0x58b49f['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4b7c69['addSourceCollector'](()=>{const _0x5791f7=[];for(const [_0x3ce29f,_0x34095e]of Array['from'](this['_suggestionToController'])){const _0x6f3125=_0x3ce29f['getAllAdjacentSuggestions'](),_0x274612=[];for(const _0x48858f of _0x6f3125){if(!_0x48858f['isInContent'])continue;if(_0x48858f['isMultiRange']){_0x274612['push'](..._0x48858f['getRanges']());continue;}const _0x46d78c=_0x48858f['getFirstRange']();if(_0x274612['length']>0x0){const _0x3b09e1=_0x274612[0x0]['getJoined'](_0x46d78c);if(_0x3b09e1){_0x274612[0x0]=_0x3b09e1;continue;}}_0x274612['push'](_0x46d78c);}_0x5791f7['push']([_0x34095e['view'],_0x274612]);}return _0x5791f7;}),this['listenTo'](_0x4e477b,'suggestionLoaded',(_0x76f7d8,_0x1f20d5)=>{this['listenTo'](_0x1f20d5,'change:previous',(_0x3e80ee,_0x6c6de5,_0x1e81a0,_0x49a4e8)=>{_0x1f20d5['isInContent']&&(null==_0x1e81a0?(this['_updateController'](_0x49a4e8['head']),this['_handleSuggestionControllerDelayed'](_0x1f20d5,!0x1)):(this['_updateController'](_0x1e81a0['head']),null==_0x49a4e8&&this['_handleSuggestionControllerDelayed'](_0x1f20d5,!0x0)));}),null!==_0x1f20d5['previous']?this['_updateController'](_0x1f20d5['head']):this['_handleSuggestionControllerDelayed'](_0x1f20d5,!0x1);}),this['listenTo'](_0x4e477b,'suggestionUnloaded',(_0x1af79f,_0x197a22,_0x315be5)=>{this['stopListening'](_0x197a22,'change:previous'),this['_handleControllerBuffer']['delete'](_0x197a22),this['_suggestionToController']['has'](_0x197a22)&&this['_destroyController'](_0x197a22),_0x315be5&&this['_updateController'](_0x315be5['head']);}),this['listenTo'](_0x4e477b,'suggestionChanged',(_0x29a2bd,_0x7e1883)=>{this['_updateController'](_0x7e1883);}),this['listenTo'](_0xa13116,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xfe507a,'addComment',(_0x2292bb,{threadId:_0x587303,isFromAdapter:_0x2d3125})=>{if(_0x2d3125||!_0x4e477b['hasSuggestion'](_0x587303))return;const _0x39de13=_0x4e477b['getSuggestion'](_0x587303);this['_suggestionToController']['get'](_0x39de13)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x36b3b7=this['editor']['plugins']['get']('Annotations'),_0x51419e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x121cb5=Array['from'](_0x36b3b7['activeAnnotations'],_0x47ca92=>_0x47ca92['innerView'])['filter'](_0x21443e=>this['_viewToController']['has'](_0x21443e)),_0x308bf7=[];for(const _0x2f4b17 of _0x121cb5){const _0x1c7138=this['_viewToController']['get'](_0x2f4b17)['model']['getAllAdjacentSuggestions']();_0x308bf7['push'](..._0x1c7138['reduce']((_0x32e0bd,_0x2e0308)=>[..._0x32e0bd,..._0x2e0308['getMarkerNames']()],[]));}_0x51419e['activeMarkers']=_0x308bf7;}['_addUIComponentsToFactory'](){const _0x29bf65=this['editor'],_0x5eb6e5=_0x29bf65['locale'],_0x1cbceb=o(_0x5eb6e5,'Track\x20changes'),_0x3bec66=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x1cbceb,'commandName':'trackChanges'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5eb6e5,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5eb6e5,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5eb6e5,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5eb6e5,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'})}]);for(const _0x6d5281 of _0x3bec66)if(ae(_0x6d5281)){const _0x12ed4a=_0x29bf65['commands']['get'](_0x6d5281['model']['commandName']);_0x6d5281['model']['bind']('isOn','isEnabled')['to'](_0x12ed4a,'value','isEnabled');}_0x29bf65['ui']['componentFactory']['add']('trackChanges',_0x8f646f=>this['_createToolbarButton'](_0x8f646f,_0x3bec66,_0x1cbceb)),_0x29bf65['ui']['componentFactory']['add']('menuBar:trackChanges',_0x16f53a=>this['_createMenuBarMenu'](_0x16f53a,_0x3bec66,_0x1cbceb));}['_createToolbarButton'](_0x1a32c1,_0xc400c4,_0x1ea82e){const _0x18c9d7=zt(_0x1a32c1,Zt),_0x5a462c=this['editor']['commands']['get']('trackChanges');_0x18c9d7['buttonView']['set']({'tooltip':_0x1ea82e,'label':_0x1ea82e,'icon':ie}),_0x18c9d7['buttonView']['bind']('isOn')['to'](_0x5a462c,'value'),_0x18c9d7['buttonView']['on']('execute',()=>{_0x5a462c['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x18c9d7,_0xc400c4);const _0x485ac0=[];for(const _0x5c63c8 of _0xc400c4)ae(_0x5c63c8)&&_0x485ac0['push'](this['editor']['commands']['get'](_0x5c63c8['model']['commandName']));const _0x3c173c=_0x18c9d7['buttonView'];return _0x3c173c['actionView']['unbind']('isEnabled'),_0x3c173c['arrowView']['unbind']('isEnabled'),_0x3c173c['actionView']['bind']('isEnabled')['to'](_0x5a462c,'isEnabled'),_0x3c173c['arrowView']['bind']('isEnabled')['toMany'](_0x485ac0,'isEnabled',(..._0x5df849)=>_0x5df849['some'](_0x1c4329=>_0x1c4329)),_0x18c9d7['on']('execute',_0xa7e329=>{this['editor']['execute'](_0xa7e329['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x18c9d7;}['_createMenuBarMenu'](_0x4cd49d,_0x184d0b,_0x537720){const _0x2e0b57=new Kt(_0x4cd49d),_0x58273f=this['editor']['commands']['get']('trackChanges');_0x2e0b57['buttonView']['set']({'label':_0x537720,'icon':ie});const _0x7aaee2=new Qt(_0x4cd49d);for(const _0x913bc4 of _0x184d0b){if('separator'==_0x913bc4['type']){_0x7aaee2['items']['add'](new Jt(_0x4cd49d));continue;}const _0xca3536=new Xt(_0x4cd49d,_0x2e0b57),_0x3ec43c=new Yt(_0x4cd49d),_0x49ff3d=_0x913bc4['model'];_0x3ec43c['bind'](...Object['keys'](_0x49ff3d))['to'](_0x49ff3d),_0x3ec43c['delegate']('execute')['to'](_0x2e0b57),_0x3ec43c['on']('execute',()=>{this['editor']['execute'](_0x49ff3d['commandName']),this['editor']['editing']['view']['focus']();}),_0xca3536['children']['add'](_0x3ec43c),_0x7aaee2['items']['add'](_0xca3536);}return _0x2e0b57['bind']('isEnabled')['to'](_0x58273f,'isEnabled'),_0x2e0b57['panelView']['children']['add'](_0x7aaee2),_0x2e0b57;}['_initializeController'](_0x3d79b8){const _0x29ebae=this['editor'],_0x1baa65=_0x29ebae['config'],_0xa0831b=_0x29ebae['plugins']['get']('Annotations'),_0x105e91=_0x29ebae['plugins']['get']('CommentsRepository'),_0x3604b1=_0x29ebae['plugins']['get']('EditorAnnotations'),_0x5113bb=_0x29ebae['plugins']['get'](_0x281dca)['me'],_0x1c2762=_0x1baa65['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x4641bd,CommentThreadInputView:_0x271248}=_0x29ebae['plugins']['get']('CommentsUI');let _0x3430a9,_0x141724;this['_annotationViews']['has'](_0x3d79b8['id'])?(_0x141724=this['_annotationViews']['get'](_0x3d79b8['id']),_0x3430a9=_0x141724['mainView']):(_0x3430a9=new _0x1c2762(_0x29ebae['locale'],_0x3d79b8,_0x5113bb,{'disableComments':this['_disableComments'],'editorConfig':_0x1baa65['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x1baa65['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1baa65['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1baa65['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x194375(_0x1baa65['get']('locale')),'CommentView':_0x1baa65['get']('comments')['CommentView'],'CommentsListView':_0x4641bd,'CommentThreadInputView':_0x271248}),_0x3430a9['acceptButton']['on']('execute',()=>{_0x29ebae['editing']['view']['focus']();}),_0x3430a9['discardButton']['on']('execute',()=>{_0x29ebae['editing']['view']['focus']();}),_0x141724=_0xa0831b['createAnnotationView'](this['editor']['locale'],_0x3430a9),_0x141724['bind']('isDirty')['to'](_0x3430a9,'isDirty'),_0x141724['bind']('length')['to'](_0x3430a9),_0x141724['bind']('type')['to'](_0x3430a9,'type',_0x2f2016=>'suggestion-'+_0x2f2016),this['_annotationViews']['set'](_0x3d79b8['id'],_0x141724));const _0x1de878=_0x105e91['createCommentThreadController'](_0x3d79b8['commentThread'],_0x3430a9),_0x21558b=new oe(_0x29ebae,_0x3d79b8,_0x3430a9,_0x1de878),_0x2a2bd0=_0x3d79b8['getAllAdjacentSuggestions']()['filter'](_0x5af2b0=>_0x5af2b0['isInContent']);_0x3430a9['descriptionParts']=_0x29ebae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2a2bd0),this['_suggestionToController']['set'](_0x3d79b8,_0x21558b),this['_viewToController']['set'](_0x3430a9,_0x21558b);const _0x3b776c=_0xa0831b['createAnnotation']({'view':_0x141724,'target':()=>{const _0x314320=[],_0x5b7ad8=_0x3d79b8['getAllAdjacentSuggestions']()['filter'](_0x100120=>_0x100120['isInContent']);for(const _0xa95456 of _0x5b7ad8)_0x314320['push'](..._0xa95456['getMarkers']());return _0x8037d8(_0x29ebae['editing'],_0x314320);},'type':()=>'suggestion-'+_0x21558b['view']['type']});_0x105e91['_bindAnnotationToEditors'](_0x3430a9,_0x3b776c),_0xa0831b['add'](_0x3b776c),_0x3604b1['registerAnnotation'](_0x3b776c);}['_destroyController'](_0x41195d){const _0x268df8=this['editor']['plugins']['get']('CommentsRepository'),_0x9dd691=this['editor']['plugins']['get']('Annotations'),_0xb2d820=this['_suggestionToController']['get'](_0x41195d),_0x116bdb=_0xb2d820['view'],_0x4f77f1=_0x9dd691['getByInnerView'](_0x116bdb);_0x268df8['_unbindEditors'](_0x116bdb),_0x4f77f1&&_0x9dd691['remove'](_0x4f77f1),this['_suggestionToController']['delete'](_0x41195d),this['_viewToController']['delete'](_0x116bdb),_0xb2d820['destroy']();}['_updateController'](_0x4763e8){if(!_0x4763e8['isInContent']||!this['_suggestionToController']['has'](_0x4763e8))return;const _0x1fba3f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59ed6e=this['_suggestionToController']['get'](_0x4763e8),_0x426ef5=_0x4763e8['getAllAdjacentSuggestions']();_0x59ed6e['view']['descriptionParts']=_0x1fba3f['descriptionFactory']['getDescriptions'](_0x426ef5);}['destroy'](){for(const _0x282305 of this['_suggestionToController']['keys']())this['_destroyController'](_0x282305);for(const _0x4a14a2 of this['_annotationViews']['values']())_0x4a14a2['mainView']['destroy']();super['destroy']();}constructor(_0x58d590){super(_0x58d590),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x40cd2d=this['editor']['config'];_0x40cd2d['define']('trackChanges.SuggestionThreadView',ne),_0x40cd2d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x40cd2d['get']('trackChanges.disableComments');}}function ae(_0x488e69){return'model'in _0x488e69;}class k extends _0x61eb43{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x358838){this['editor']['plugins']['get'](p)['adapter']=_0x358838;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0xca440f){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0xca440f);}['getSuggestions']({skipNotAttached:_0x175a9f=!0x1,toJSON:_0x4fc4af=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x175a9f,'toJSON':_0x4fc4af});}['getSuggestion'](_0x37cc57){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x37cc57);}}const T=['Pagination'];class P extends _0x61eb43{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4f83b7=this['editor'];if(_0x4f83b7['config']['define']('trackChangesData.editorCreator',_0xa1d959=>{const _0x143cfe=_0x4f83b7['model']['document']['getRootNames']()['reduce']((_0x2f1ce9,_0x336541)=>(_0x2f1ce9[_0x336541]='',_0x2f1ce9),{});return _0x4f83b7['constructor']['create'](_0x143cfe,_0xa1d959);}),'function'!=typeof _0x4f83b7['config']['get']('trackChangesData')['editorCreator'])throw new _0xa5fb70('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x49c770){return N(this['editor'],!0x0,_0x49c770);}['getDataWithDiscardedSuggestions'](_0x303020){return N(this['editor'],!0x1,_0x303020);}}class D extends _0x61eb43{static get['pluginName'](){return'TrackChangesDataGetter';}['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;}constructor(_0x2b1f21){super(_0x2b1f21),this['result']='end';}}function v(_0x4b8ac5){return void 0x0!==_0x4b8ac5['getRootsAttributes'];}async function N(_0x162b86,_0x55c88d,_0x3f68d8){const _0x375bc5=_0x103d13(_0x162b86,T);_0x375bc5['plugins']['push'](p,D),_0x375bc5['rootsAttributes']=v(_0x162b86)?_0x162b86['getRootsAttributes']():void 0x0;const _0x156c18=document['createDocumentFragment'](),_0x7a676e=_0x162b86['config']['get']('trackChangesData')['editorCreator'],_0x257b5b=await _0x7a676e(_0x375bc5,()=>function(_0x76b26d){const _0x2ca063=document['createElement']('div');return _0x76b26d['appendChild'](_0x2ca063),_0x2ca063;}(_0x156c18));!function(_0xe244f,_0x21c7fb){const _0x541389=_0xe244f['model']['document']['getRootNames']()['reduce']((_0x3658eb,_0x583ee7)=>(_0x3658eb[_0x583ee7]=_0xe244f['data']['get']({'rootName':_0x583ee7}),_0x3658eb),{}),_0x412fc2=_0xe244f['plugins']['get']('Users')['users']['map'](_0x47bd85=>({'id':_0x47bd85['id'],'name':_0x47bd85['name']})),_0x49b53f=_0xe244f['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x29085e=_0xe244f['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x59ef7c=_0x21c7fb['plugins']['get']('Users'),_0x5f2e47=_0x21c7fb['plugins']['get']('TrackChangesEditing'),_0x944023=_0x21c7fb['plugins']['get']('CommentsRepository');for(const _0x57ff14 of _0x412fc2)_0x59ef7c['getUser'](_0x57ff14['id'])||_0x59ef7c['addUser'](_0x57ff14);_0x59ef7c['me']||_0x59ef7c['useAnonymousUser']();for(const _0x1197b6 of _0x49b53f)_0x5f2e47['addSuggestionData'](_0x1197b6);for(const _0x5f4366 of _0x29085e)_0x944023['addCommentThread'](_0x5f4366);_0x21c7fb['data']['set'](_0x541389);}(_0x162b86,_0x257b5b),_0x257b5b['execute'](_0x55c88d?'acceptAllSuggestions':'discardAllSuggestions');const _0x5c8016=v(_0x257b5b)?_0x257b5b['getFullData'](_0x3f68d8):_0x257b5b['data']['get'](_0x3f68d8);return await _0x257b5b['destroy'](),_0x5c8016;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};