@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240504.0 → 0.0.0-nightly-20240506.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 _0x454bf4,PendingActions as _0x4a6417,icons as _0x55580e}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x514bf6,ObservableMixin as _0x31fb1d,uid as _0x278a82,insertToPriorityArray as _0xf1e320,priorities as _0x65f0b9,logWarning as _0x320ee5,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x102f80,View as _0x574b81,ButtonView as _0x2ae4b7,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 _0x542b67,hashObject as _0x35a39a,surroundingMarkersDetector as _0x55508a,trimHtml as _0xf381dc,UserView as _0x413f19,getDateTimeFormatter as _0x371728,getAllMarkersDomElementsSorted as _0x34c6b3,sanitizeEditorConfig as _0x1ce457}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x131e67,LiveRange as _0xb3bd9b,LivePosition as _0x3a5bde}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2c8377,toWidget as _0x18b848}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x2ddff0,set as _0xee87ff,isEqual as _0x3c4be2,unset as _0x3d875d,omit as Bt}from'lodash-es';import{Delete as _0x36e4c2,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x53f9bd,ShiftEnter as _0x202832}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 _0x29ea9c of this['editor']['commands']['commands']())_0x29ea9c['affectsData']&&!this['_enabledCommands']['has'](_0x29ea9c)&&_0x29ea9c['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5be0dc of this['editor']['commands']['commands']())_0x5be0dc['affectsData']&&!this['_enabledCommands']['has'](_0x5be0dc)&&_0x5be0dc['clearForceDisabled']('TrackChangesCommand');}constructor(_0x44cd71,_0x213c26){super(_0x44cd71),this['_enabledCommands']=_0x213c26,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class $ extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xd31586){const _0x522997=this['_suggestions']['get'](_0xd31586);if(!_0x522997)throw new _0x514bf6('track-changes-accept-suggestion-not-found',this);const _0x7c37f7=_0x522997['getRanges']();this['editor']['model']['canEditAt'](_0x7c37f7)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x522997);}constructor(_0x1321a7,_0x395d05){super(_0x1321a7),this['_suggestions']=_0x395d05,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class B extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3b01fe){const _0x1708c9=this['_suggestions']['get'](_0x3b01fe);if(!_0x1708c9)throw new _0x514bf6('track-changes-discard-suggestion-not-found',this);const _0xa29aa9=_0x1708c9['getRanges']();this['editor']['model']['canEditAt'](_0xa29aa9)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1708c9);}constructor(_0x55c574,_0x54c3ca){super(_0x55c574),this['_suggestions']=_0x54c3ca,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}function ss(_0x399118){return _0x399118['sort']((_0x23d675,_0x3a687c)=>'deletion'==_0x23d675['type']&&'deletion'!=_0x3a687c['type']?-0x1:'deletion'!=_0x23d675['type']&&'deletion'==_0x3a687c['type']?0x1:0x0);}function to(_0x4e1163,_0x59ec5b){let _0x2037c3,_0x496cce=0x0;const _0x481478=[],_0x393e8a=_0x59ec5b['schema'];for(;_0x496cce<_0x4e1163['length'];){const _0x1c4ac7=_0x4e1163[_0x496cce],_0x512327=_0x4e1163[_0x496cce+0x1];_0x2037c3||(_0x2037c3=_0x59ec5b['createPositionBefore'](_0x1c4ac7)),co(_0x59ec5b,_0x1c4ac7,_0x512327)||(_0x481478['push'](_0x59ec5b['createRange'](_0x2037c3,_0x393e8a['isObject'](_0x1c4ac7)?_0x59ec5b['createPositionAfter'](_0x1c4ac7):_0x59ec5b['createPositionAt'](_0x1c4ac7,'end'))),_0x2037c3=null),_0x496cce++;}return _0x481478;}function co(_0x29c74d,_0x1166d6,_0x52ac23){if(!_0x52ac23)return!0x1;const _0x46a434=_0x29c74d['createPositionAfter'](_0x1166d6),_0x1e061c=_0x29c74d['createPositionBefore'](_0x52ac23);return _0x46a434['isTouching'](_0x1e061c);}function rs(_0x43f0e7,_0x4c3b35,_0x5f1ca7){for(;_0x5f1ca7['length'];){const _0x26d4f6=_0x5f1ca7['splice'](0x0,0x64);_0x43f0e7['change'](()=>{for(const _0x4bbe5d of _0x26d4f6)_0x4bbe5d['isInContent']&&_0x4c3b35['execute'](_0x4bbe5d['id']);});}}class x extends ts{['refresh'](){const _0x1014e2=Array['from'](this['_suggestions']['values']())['some'](_0x5c9015=>_0x5c9015['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1014e2;}['execute'](){const _0x4c9c5b=ss(Array['from'](this['_suggestions']['values']()));for(const _0x3b98ef of _0x4c9c5b){const _0x42c90b=_0x3b98ef['getRanges']();if(!this['editor']['model']['canEditAt'](_0x42c90b))return;}rs(this['editor']['model'],this['_command'],_0x4c9c5b);}constructor(_0x300b66,_0x3f7fef,_0x113421){super(_0x300b66),this['_command']=_0x3f7fef,this['_suggestions']=_0x113421,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class R extends ts{['refresh'](){const _0x49a293=this['editor']['model']['document']['selection'],_0x45309d=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x12f438,_0x5c68a9){const _0x1ec9bd=Array['from'](_0x12f438['getRanges']()),_0x7c17dd=new Set();for(const _0x172774 of _0x5c68a9)if(_0x172774['isInContent']){for(const _0x91b8ab of _0x1ec9bd)for(const _0x298ace of _0x172774['getRanges']())(_0x91b8ab['isIntersecting'](_0x298ace)||_0x12f438['isCollapsed']&&!_0x172774['isMultiRange']&&_0x172774['next']&&_0x298ace['end']['isTouching'](_0x91b8ab['start']))&&_0x7c17dd['add'](_0x172774);}return _0x7c17dd;}(_0x49a293,_0x45309d),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2c1c87=ss(Array['from'](this['_selectedSuggestions']));for(const _0xe77b56 of _0x2c1c87){const _0x332725=_0xe77b56['getRanges']();if(!this['editor']['model']['canEditAt'](_0x332725))return;}rs(this['editor']['model'],this['_command'],_0x2c1c87);}constructor(_0x2e41a6,_0x2c360b,_0x5f45fb){super(_0x2e41a6),this['_command']=_0x2c360b,this['_suggestions']=_0x5f45fb,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class u extends _0x31fb1d(){get['head'](){let _0x58339e=this;for(;_0x58339e['previous'];)_0x58339e=_0x58339e['previous'];return _0x58339e;}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'](_0x428b57){this['_markerNames']['add'](_0x428b57);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x42cdf1=>this['_model']['markers']['get'](_0x42cdf1))['filter'](_0x326407=>_0x326407);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4790ae=>{for(const _0xb87933 of this['getMarkers']())_0x4790ae['removeMarker'](_0xb87933);}),this['_markerNames']['clear']();}['removeMarker'](_0x2d23ed){this['_model']['change'](_0x5adcbf=>{_0x5adcbf['removeMarker'](_0x2d23ed);}),this['_markerNames']['delete'](_0x2d23ed);}['addRange'](_0x4a291c){const _0x4dd523='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x4dd523),this['_model']['change'](_0xc659fb=>{_0xc659fb['addMarker'](_0x4dd523,{'range':_0x4a291c,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x229547){for(const _0x5373ff of this['getRanges']())if(_0x5373ff['isIntersecting'](_0x229547))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x37849c=>_0x37849c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xc0d6b9,_0x3af556)=>[..._0xc0d6b9,..._0x3af556['getItems']()],[]);}['getFirstRange'](){var _0x408436;return(null===(_0x408436=this['getFirstMarker']())||void 0x0===_0x408436?void 0x0:_0x408436['getRange']())||null;}['getContainedElement'](){const _0x4ffff2=this['getRanges']();if(0x1!=_0x4ffff2['length'])return null;const _0x32018b=_0x4ffff2[0x0],_0x2f1c2b=_0x32018b['start']['nodeAfter'],_0x4cea93=_0x32018b['end']['nodeBefore'];return _0x2f1c2b instanceof _0x131e67?_0x2f1c2b!=_0x4cea93?null:_0x2f1c2b: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 _0x490021=[];let _0x22f5b9=this['head'];for(;_0x22f5b9;)_0x490021['push'](_0x22f5b9),_0x22f5b9=_0x22f5b9['next'];return _0x490021;}['setAttribute'](_0xe14d7b,_0x29d311){const _0x242cd1=_0x2ddff0(this['attributes']);_0xee87ff(_0x242cd1,_0xe14d7b,_0x29d311),_0x3c4be2(_0x242cd1,this['attributes'])||(this['attributes']=_0x242cd1,this['_onAttributesChange'](_0x242cd1));}['removeAttribute'](_0x1b4f45){const _0x1c5791=_0x2ddff0(this['attributes']);_0x3d875d(_0x1c5791,_0x1b4f45),_0x3c4be2(_0x1c5791,this['attributes'])||(this['attributes']=_0x1c5791,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 _0x278a82()['substr'](0x1,0x5);}constructor(_0x5a601b,_0x3c13f9){super(),this['_isDataLoaded']=!0x1,this['id']=_0x3c13f9['id'],this['type']=_0x3c13f9['type'],this['subType']=_0x3c13f9['subType']||null,this['author']=_0x3c13f9['author'],this['creator']=_0x3c13f9['creator']||_0x3c13f9['author'],this['isExternal']=Boolean(_0x3c13f9['attributes']&&_0x3c13f9['attributes']['@external']),this['data']=null,this['_model']=_0x5a601b,this['_onAccept']=_0x3c13f9['onAccept'],this['_onDiscard']=_0x3c13f9['onDiscard'],this['_onAttributesChange']=_0x3c13f9['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3c13f9['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(_0x3c77aa,_0x51ece3,_0x26cbfb){const t=_0x3c77aa['t'];switch(_0x51ece3){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',_0x26cbfb);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x26cbfb);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x26cbfb);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x26cbfb);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x26cbfb);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',_0x26cbfb);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x26cbfb);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',_0x26cbfb);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x26cbfb);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x26cbfb);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x26cbfb);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x26cbfb);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x26cbfb);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x26cbfb);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x26cbfb);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x26cbfb);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x26cbfb);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x26cbfb);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x26cbfb);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x26cbfb);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x26cbfb);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x26cbfb);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x26cbfb);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'},_0x26cbfb);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x26cbfb);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x26cbfb);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x26cbfb);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x26cbfb);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x26cbfb);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'},_0x26cbfb);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x26cbfb);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x26cbfb);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x26cbfb);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x26cbfb);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'},_0x26cbfb);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x26cbfb);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'},_0x26cbfb);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'},_0x26cbfb);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x26cbfb);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'},_0x26cbfb);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x26cbfb);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'},_0x26cbfb);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x26cbfb);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x26cbfb);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'},_0x26cbfb);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'},_0x26cbfb);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 _0x51ece3;}}class f{['getDescriptions'](_0xce127c){const _0x2dd20b=[],_0x3e5fb8=new Set(),_0x375fb8=new Set();for(let _0x4c603e=0x0;_0x4c603e<_0xce127c['length'];_0x4c603e++){const _0x3cc46b=_0xce127c[_0x4c603e];if(!_0x3cc46b['isInContent'])continue;const _0x51eb0e=this['_handleCustomCallbackDescription'](_0x3cc46b);if(_0x51eb0e){if(null!=_0x3cc46b['subType']){if(_0x3e5fb8['has'](_0x3cc46b['subType']))continue;_0x3e5fb8['add'](_0x3cc46b['subType']);}_0x2dd20b['push'](_0x51eb0e);}else{if('attribute'!=_0x3cc46b['type'])'insertion'!=_0x3cc46b['type']&&'deletion'!=_0x3cc46b['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2dd20b,_0x3cc46b,_0xce127c[_0x4c603e+0x1]);else{const _0x443e5b=_0x3cc46b['data']['key'];if(_0x375fb8['has'](_0x443e5b))continue;_0x375fb8['add'](_0x3cc46b['data']['key']),_0x443e5b==m?this['_handleRenameSuggestionDescription'](_0x2dd20b,_0x3cc46b):this['_handleAttributeSuggestionDescription'](_0x2dd20b,_0x3cc46b);}}}return this['_resolveDescriptionItems'](_0x2dd20b);}['registerDescriptionCallback'](_0x2a25c3){this['_customCallbacks']['push'](_0x2a25c3);}['registerElementLabel'](_0xb39312,_0x1efaf6,_0x4fef07=_0x65f0b9['normal']){'function'==typeof _0xb39312?_0xf1e320(this['_itemLabelsCallbacks'],{'matchingCallback':_0xb39312,'label':_0x1efaf6,'priority':_0x4fef07}):this['_itemLabels']['set'](_0xb39312,_0x1efaf6);}['registerAttributeLabel'](_0x150ffe,_0x5a20eb){this['_attributeLabels']['set'](_0x150ffe,_0x5a20eb);}['getItemLabel'](_0x4cf751,_0x36464a=0x1){let _0x208340;for(const _0x112561 of this['_itemLabelsCallbacks'])if(_0x112561['matchingCallback'](_0x4cf751)){_0x208340=_0x112561['label'];break;}return _0x208340||(_0x208340=this['_itemLabels']['get'](_0x4cf751['name'])),_0x208340?_0x208340(_0x36464a):0x1!==_0x36464a?_0x36464a+'\x20'+_0x4cf751['name']+'s':''+_0x4cf751['name'];}['_addDescriptionItems'](_0x5436b3,_0x171aeb){const _0x115ad1=_0x171aeb['getFirstRange']()['getWalker'](),_0x80c4c5='insertion'==_0x171aeb['type']?'add':'remove';for(const _0x5171f1 of _0x115ad1){const _0x48c153=_0x5171f1['item'],_0x2fb456=_0x5436b3[_0x5436b3['length']-0x1];if(_0x48c153['is']('$textProxy'))_0x2fb456&&_0x2fb456['type']['indexOf']('Container')>-0x1&&_0x5436b3['pop'](),_0x2fb456&&'text'==_0x2fb456['type']?_0x2fb456[_0x80c4c5]+=_0x48c153['data']:_0x5436b3['push']({'type':'text','add':'add'==_0x80c4c5?_0x48c153['data']:'','remove':'remove'==_0x80c4c5?_0x48c153['data']:''});else{if(this['_schema']['isObject'](_0x48c153)){const _0x5643fa=_0x48c153;if(_0x2fb456&&_0x2fb456['type']['indexOf']('Container')>-0x1&&_0x5436b3['pop'](),'elementEnd'==_0x5171f1['type'])continue;_0x2fb456&&_0x2fb456['type']==_0x80c4c5+'Object'&&_0x2fb456['element']['name']==_0x5643fa['name']?_0x2fb456['quantity']++:_0x5436b3['push']({'type':_0x80c4c5+'Object','element':_0x5643fa,'quantity':0x1}),_0x115ad1['skip'](_0x247501=>!('elementEnd'==_0x247501['type']&&_0x247501['item']==_0x48c153));}else{if(this['_schema']['checkChild'](_0x48c153,'$text')||_0x48c153['is']('element','softBreak')){const _0xa99201=_0x48c153;if('add'==_0x80c4c5&&'elementStart'==_0x5171f1['type']||'remove'==_0x80c4c5&&'elementEnd'==_0x5171f1['type'])continue;if(_0x2fb456&&-0x1==_0x2fb456['type']['indexOf']('Container')){'text'==_0x2fb456['type']&&(_0x2fb456[_0x80c4c5]+='\x0a');continue;}let _0x1f16a2;if(_0x1f16a2='add'==_0x80c4c5?_0xa99201['nextSibling']&&!this['_schema']['isObject'](_0xa99201['nextSibling'])?_0xa99201['nextSibling']:null:_0xa99201['previousSibling']&&!this['_schema']['isObject'](_0xa99201['previousSibling'])?_0xa99201['previousSibling']:null,_0xa99201['isEmpty']||_0x1f16a2&&_0x1f16a2['isEmpty']){const _0x38b177=_0x1f16a2&&_0x1f16a2['isEmpty']?_0x1f16a2:_0xa99201;_0x2fb456&&_0x2fb456['type']==_0x80c4c5+'EmptyContainer'&&_0x2fb456['element']['name']==_0x38b177['name']?_0x2fb456['quantity']++:_0x5436b3['push']({'type':_0x80c4c5+'EmptyContainer','element':_0x38b177,'quantity':0x1});}else _0x5436b3['push']({'type':_0x80c4c5+'Container','element':_0xa99201});}}}}}['_resolveDescriptionItems'](_0x4a8dab){const _0x5afeab=this['_locale'],_0x4532e9=[],_0x209381=[],_0x2bcdc0=[];for(const _0x506100 of _0x4a8dab)switch(_0x506100['type']){case'text':if(_0x506100['add']=_0x506100['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x506100['remove']=_0x506100['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x506100['add']&&''!=_0x506100['remove']){_0x4532e9['push']({'type':'replace','content':o(_0x5afeab,'REPLACE_TEXT',['\x22'+_0x506100['remove']+'\x22','\x22'+_0x506100['add']+'\x22'])});continue;}if(null!=_0x506100['add']['match'](/^ +$/)){_0x4532e9['push']({'type':'insertion','content':o(_0x5afeab,'*Insert:*\x20%0',o(_0x5afeab,'ELEMENT_SPACE',_0x506100['add']['length']))});continue;}if(null!=_0x506100['remove']['match'](/^ +$/)){_0x4532e9['push']({'type':'deletion','content':o(_0x5afeab,'*Remove:*\x20%0',o(_0x5afeab,'ELEMENT_SPACE',_0x506100['remove']['length']))});continue;}if(''!=_0x506100['add']){_0x4532e9['push']({'type':'insertion','content':o(_0x5afeab,'*Insert:*\x20%0','\x22'+_0x506100['add']+'\x22')});continue;}_0x4532e9['push']({'type':'deletion','content':o(_0x5afeab,'*Remove:*\x20%0','\x22'+_0x506100['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4532e9['push']({'type':'insertion','content':o(_0x5afeab,'*Insert:*\x20%0',this['getItemLabel'](_0x506100['element'],_0x506100['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4532e9['push']({'type':'deletion','content':o(_0x5afeab,'*Remove:*\x20%0',this['getItemLabel'](_0x506100['element'],_0x506100['quantity']))});continue;case'addContainer':_0x4532e9['push']({'type':'insertion','content':o(_0x5afeab,'*Split:*\x20%0',this['getItemLabel'](_0x506100['element'],_0x506100['quantity']))});continue;case'removeContainer':_0x4532e9['push']({'type':'deletion','content':o(_0x5afeab,'*Merge:*\x20%0',this['getItemLabel'](_0x506100['element'],_0x506100['quantity']))});continue;case'addFormat':_0x209381['push'](_0x506100['key']);continue;case'removeFormat':_0x2bcdc0['push'](_0x506100['key']);continue;default:_0x4532e9['push'](_0x506100);}if(_0x209381['length']){const _0x4e7a20=_0x209381['map'](_0x2b60d2=>this['_attributeLabels']['has'](_0x2b60d2)?this['_attributeLabels']['get'](_0x2b60d2):_0x2b60d2)['join'](',\x20');_0x4532e9['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4e7a20)});}if(_0x2bcdc0['length']){const _0x291f60=_0x2bcdc0['map'](_0x132ea4=>this['_attributeLabels']['has'](_0x132ea4)?this['_attributeLabels']['get'](_0x132ea4):_0x132ea4)['join'](',\x20');_0x4532e9['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x291f60)});}return _0x4532e9;}['_handleCustomCallbackDescription'](_0xf77834){for(const _0x394ed7 of this['_customCallbacks']){const _0x2eb613=_0x394ed7(_0xf77834);if(_0x2eb613&&'type'in _0x2eb613)return _0x2eb613;}}['_handleAttributeSuggestionDescription'](_0xf7002b,_0x323495){const _0x167161=_0x323495['data'],_0x5664c5=void 0x0===_0x167161['newValue']?'removeFormat':'addFormat';_0xf7002b['push']({'type':_0x5664c5,'key':_0x167161['key']});}['_handleRenameSuggestionDescription'](_0x1fb2d1,_0x17151a){_0x1fb2d1['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x17151a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x56d40d,_0x6ecd47,_0x55c2ea){if(this['_addDescriptionItems'](_0x56d40d,_0x6ecd47),_0x55c2ea&&_0x55c2ea['getFirstRange']()&&!_0x6ecd47['getFirstRange']()['end']['isEqual'](_0x55c2ea['getFirstRange']()['start'])){const _0x1a21c1=_0x56d40d[_0x56d40d['length']-0x1],_0xd963b6='insertion'==_0x6ecd47['type']?'add':'remove';_0x1a21c1&&'text'==_0x1a21c1['type']&&(_0x1a21c1[_0xd963b6]+='\x0a');}}constructor(_0x402245,_0xa8fd2){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x402245,this['_locale']=_0xa8fd2;}}class E extends _0x454bf4{['afterInit'](){const _0x47e6b8=this['editor'],_0x21a177=_0x47e6b8['plugins']['get']('TrackChangesEditing');_0x47e6b8['commands']['get']('showAIAssistant')&&_0x21a177['enableCommand']('showAIAssistant');}}class V extends _0x454bf4{['afterInit'](){const _0x28400e=this['editor'],_0x738f1c=_0x28400e['locale'];if(!_0x28400e['plugins']['has']('AlignmentEditing'))return;const _0x44f870=_0x28400e['plugins']['get']('TrackChangesEditing');_0x44f870['enableDefaultAttributesIntegration']('alignment'),_0x44f870['registerBlockAttribute']('alignment'),_0x44f870['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x738f1c,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1be43f=this['editor'],_0x438b2a=_0x1be43f['locale'];_0x1be43f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf233e3=>{if('formatBlock'!=_0xf233e3['type'])return;const {data:_0x43fb74}=_0xf233e3;if(_0x43fb74&&'alignment'==_0x43fb74['commandName']){const _0x197a6c=_0x43fb74['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x438b2a,'*Format:*\x20%0',function(_0x252721){switch(_0x252721){case'left':return o(_0x438b2a,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x438b2a,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x438b2a,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x438b2a,'FORMAT_JUSTIFY_TEXT');}}(_0x197a6c))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x454bf4{['afterInit'](){const _0x19aaba=this['editor'],_0x588f6d=_0x19aaba['plugins']['get']('TrackChangesEditing'),_0x1c5712=_0x19aaba['locale'];for(const _0x38c1ff of ti){if(!_0x19aaba['plugins']['has'](_0x38c1ff))continue;const _0x542d9c=_0x38c1ff['slice'](0x0,-0x7)['toLowerCase'](),_0x14b7b7='FORMAT_'+_0x542d9c['toUpperCase']();_0x588f6d['enableDefaultAttributesIntegration'](_0x542d9c),_0x588f6d['registerInlineAttribute'](_0x542d9c),_0x588f6d['descriptionFactory']['registerAttributeLabel'](_0x542d9c,o(_0x1c5712,_0x14b7b7));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe390af=this['editor'],_0x5a2015=_0xe390af['locale'],_0x2d97af=_0xe390af['plugins']['get']('TrackChangesEditing');function _0x428638(_0x3e649d,_0xb4c497){_0x2d97af['descriptionFactory']['registerDescriptionCallback'](_0x32f943=>{if('formatInline'!=_0x32f943['type'])return;const {data:_0x1f7b0a}=_0x32f943;return _0x1f7b0a&&_0x1f7b0a['commandName']===_0x3e649d?_0x1f7b0a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5a2015,'*Format:*\x20%0',_0xb4c497)}:{'type':'format','content':o(_0x5a2015,'*Remove\x20format:*\x20%0',_0xb4c497)}:void 0x0;});}_0x428638('bold',o(_0x5a2015,'FORMAT_BOLD')),_0x428638('italic',o(_0x5a2015,'FORMAT_ITALIC')),_0x428638('underline',o(_0x5a2015,'FORMAT_UNDERLINE')),_0x428638('code',o(_0x5a2015,'FORMAT_CODE')),_0x428638('strikethrough',o(_0x5a2015,'FORMAT_STRIKETHROUGH')),_0x428638('subscript',o(_0x5a2015,'FORMAT_SUBSCRIPT')),_0x428638('superscript',o(_0x5a2015,'FORMAT_SUPERSCRIPT'));}}class O extends _0x454bf4{['afterInit'](){const _0x12a4d9=this['editor'],_0x431462=_0x12a4d9['locale'];if(!_0x12a4d9['plugins']['has']('BlockQuoteEditing'))return;const _0xbaaf28=_0x12a4d9['plugins']['get']('TrackChangesEditing'),_0x28b0a2=this['editor']['commands']['get']('blockQuote');_0xbaaf28['enableCommand']('blockQuote',(_0x2f79ab,_0x16cc9a={})=>{const _0x1d668a=this['editor']['model']['document']['selection'],_0x454e94=_0x16cc9a&&void 0x0!==_0x16cc9a['forceValue']?_0x16cc9a['forceValue']:!_0x28b0a2['value'];let _0x3c31c2=[];if(_0x454e94){const _0x2fc8db=Array['from'](_0x1d668a['getSelectedBlocks']())['filter'](_0x387f7e=>oo(_0x387f7e)||function(_0x5bacc2,_0x347b30){const _0x2c6e16=_0x347b30['checkChild'](_0x5bacc2['parent'],'blockQuote'),_0x31b98d=_0x347b30['checkChild'](['$root','blockQuote'],_0x5bacc2);return _0x2c6e16&&_0x31b98d;}(_0x387f7e,this['editor']['model']['schema']));_0x3c31c2=to(_0x2fc8db,_0x12a4d9['model']);}else{const _0x2b5de2=Array['from'](_0x1d668a['getSelectedBlocks']())['filter'](_0x423f04=>oo(_0x423f04));_0x3c31c2=to(_0x2b5de2,_0x12a4d9['model']);}_0x12a4d9['model']['change'](()=>{for(const _0x4070c2 of _0x3c31c2)_0xbaaf28['markBlockFormat'](_0x4070c2,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x454e94}]});});}),_0xbaaf28['descriptionFactory']['registerDescriptionCallback'](_0x1900fd=>{const {data:_0x4ce2f8}=_0x1900fd;if(_0x4ce2f8&&'blockQuote'==_0x4ce2f8['commandName']){const _0x58152a=o(_0x431462,'ELEMENT_BLOCK_QUOTE');return _0x4ce2f8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x431462,'*Set\x20format:*\x20%0',_0x58152a)}:{'type':'format','content':o(_0x431462,'*Remove\x20format:*\x20%0',_0x58152a)};}});}}function oo(_0x349d3e){return'blockQuote'==_0x349d3e['parent']['name'];}class F extends _0x454bf4{['afterInit'](){const _0x39ac42=this['editor'];_0x39ac42['plugins']['has']('CaseChange')&&(_0x39ac42['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x39ac42['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x39ac42['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x454bf4{['afterInit'](){const _0x3b28cd=this['editor'];_0x3b28cd['commands']['get']('ckbox')&&_0x3b28cd['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x454bf4{['afterInit'](){const _0x5a9af7=this['editor'];if(!_0x5a9af7['plugins']['has']('CodeBlock'))return;const _0x5e09b8=_0x5a9af7['plugins']['get']('TrackChangesEditing'),_0x5db5b4=_0x5a9af7['locale'],_0x35c40c=_0x5a9af7['config']['get']('codeBlock')['languages'],_0x42b12a=_0x5a9af7['commands']['get']('codeBlock');_0x5e09b8['enableCommand']('indentCodeBlock'),_0x5e09b8['enableCommand']('outdentCodeBlock'),_0x5e09b8['enableCommand']('codeBlock',(_0x1dcb1e,_0x1bdb2e={})=>{const _0x10730b=_0x5a9af7['model'],_0x38a7d7=_0x5a9af7['model']['document']['selection'],_0x4014f3=_0x1bdb2e&&void 0x0!==_0x1bdb2e['forceValue']?_0x1bdb2e['forceValue']:!_0x42b12a['value'];let _0x50ca84;_0x1bdb2e['language']||(_0x1bdb2e['language']=_0x35c40c[0x0]['language']),_0x50ca84=_0x4014f3?Array['from'](_0x38a7d7['getSelectedBlocks']())['filter'](_0x4828fc=>eo(_0x4828fc)||function(_0x214bf0,_0x5b5089){if(_0x214bf0['is']('rootElement')||_0x5b5089['isLimit'](_0x214bf0))return!0x1;return _0x5b5089['checkChild'](_0x214bf0['parent'],'codeBlock');}(_0x4828fc,_0x10730b['schema'])):Array['from'](_0x38a7d7['getSelectedBlocks']())['filter'](_0x117f4c=>eo(_0x117f4c));const _0x545199=to(_0x50ca84,_0x10730b);_0x10730b['change'](()=>{for(const _0x501edf of _0x545199)_0x5e09b8['markBlockFormat'](_0x501edf,{'commandName':'codeBlock','commandParams':[{..._0x1bdb2e,'forceValue':_0x4014f3}],'formatGroupId':'blockName'});});}),(_0x5e09b8['descriptionFactory']['registerElementLabel']('codeBlock',_0xb4ce87=>o(_0x5db5b4,'ELEMENT_CODE_BLOCK',_0xb4ce87)),_0x5e09b8['descriptionFactory']['registerDescriptionCallback'](_0x51de30=>{if('formatBlock'!=_0x51de30['type'])return;const _0x37b466=_0x5db5b4['t'],{data:_0x4843e0}=_0x51de30;if(!_0x4843e0||'codeBlock'!=_0x4843e0['commandName'])return;const _0x213955=_0x4843e0['commandParams'][0x0]['language'],_0x5b66bc=_0x37b466(_0x35c40c['find'](_0xb604c6=>_0xb604c6['language']===_0x213955)['label'])['toLowerCase']();return _0x4843e0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5db5b4,'*Set\x20format:*\x20%0',o(_0x5db5b4,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5b66bc+')')}:{'type':'format','content':o(_0x5db5b4,'*Remove\x20format:*\x20%0',o(_0x5db5b4,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x2269f1){return'codeBlock'==_0x2269f1['name'];}class H extends _0x454bf4{['afterInit'](){const _0x10946e=this['editor'];if(!_0x10946e['plugins']['has']('CommentsEditing'))return;_0x10946e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x42a2de,_0x2c7616,_0x43907a){const _0x469235=[];for(const _0x500eec of _0x2c7616['getItems']())_0x500eec['hasAttribute'](_0x42a2de)&&_0x469235['push'](_0x43907a['createRangeOn'](_0x500eec));return _0x469235;}function _e(_0x59a3c2,_0x485338,{showActiveMarker:_0x2801dd=!0x0}={}){const _0xaecac0=_0x59a3c2['plugins']['get']('TrackChangesEditing');return(_0x1b647c,_0x5f4673,_0x5b1d0d)=>{if(!_0x5b1d0d['consumable']['test'](_0x5f4673['markerRange'],_0x1b647c['name']))return;const _0x248a66=_0x5f4673['markerRange']['getWalker'](),_0x29810a=_0x5f4673['markerRange']['start'],_0x210dba=_0x59a3c2['model']['schema'];let _0x72d79=null,_0x1950ee=null,_0x2cd5e5=!0x1,_0x1531f0=!0x1;for(const _0x524619 of _0x248a66){const _0x340863=_0x524619['item'];_0x2cd5e5=_0x2cd5e5||_0x210dba['isContent'](_0x340863);const _0x1df357=_0x5b1d0d['mapper']['toViewElement'](_0x340863);if(_0x1df357&&_0x1df357['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x524619['type']&&(_0x210dba['isBlock'](_0x340863)&&!_0x210dba['isLimit'](_0x340863)&&(_0x340863['nextSibling']||_0x29810a['isAtEnd']?_0x72d79&&_0x72d79['parent']==_0x340863||(_0x72d79=_0x340863,_0x43d9b7(_0x524619['previousPosition']),_0x1531f0=!0x0):_0x1950ee=_0x1950ee||_0x524619['previousPosition']));}function _0x43d9b7(_0x5e3cab){const _0x197309=_0x5b1d0d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x485338}),_0xe9d8e8=_0x5b1d0d['mapper']['toViewPosition'](_0x5e3cab);_0x2801dd&&_0xaecac0['activeMarkers']['includes'](_0x5f4673['markerName'])&&_0x5b1d0d['writer']['addClass']('ck-suggestion-marker--active',_0x197309),_0x5b1d0d['writer']['insert'](_0xe9d8e8,_0x197309),_0x5b1d0d['mapper']['bindElementToMarker'](_0x197309,_0x5f4673['markerName']);}_0x2cd5e5||_0x1531f0||!_0x1950ee||_0x43d9b7(_0x1950ee);};}class q extends _0x454bf4{static get['requires'](){return[_0x36e4c2];}['init'](){const _0x44e65a=this['editor'],_0x2d5156=_0x44e65a['plugins']['get']('TrackChangesEditing');_0x2d5156['enableCommand']('delete');const _0x5da40c=_0x44e65a['commands']['get']('deleteForward');_0x2d5156['enableCommand']('deleteForward',(_0x5428e1,_0x1aaed0={})=>{const _0x504c34=_0x44e65a['model']['createSelection'](_0x44e65a['model']['document']['selection']);_0x504c34['isCollapsed']&&_0x44e65a['model']['modifySelection'](_0x504c34,{'direction':'forward','unit':_0x1aaed0['unit']});const _0x3e61fd=_0x504c34['getFirstRange'](),_0x58482b=_0xb3bd9b['fromRange'](_0x3e61fd);let _0x52221d;_0x5428e1(_0x1aaed0),_0x52221d='$graveyard'==_0x58482b['root']['rootName']?_0x44e65a['model']['createRange'](_0x3e61fd['start']):_0x44e65a['model']['createRange'](_0x58482b['start'],_0x58482b['end']),_0x58482b['detach'](),_0x44e65a['model']['enqueueChange'](_0x5da40c['buffer']['batch'],_0x22caf4=>{_0x5da40c['buffer']['lock'](),_0x22caf4['setSelection'](_0x22caf4['createRange'](_0x52221d['end'])),_0x5da40c['buffer']['unlock']();});}),_0x44e65a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x44e65a,'merge'),{'priority':'high'}),_0x44e65a['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x38d428,_0x29c594,_0x104df0)=>{_0x104df0['options']['showSuggestionHighlights']&&_e(_0x44e65a,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x38d428,_0x29c594,_0x104df0);},{'priority':'high'}),_0x44e65a['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4ab5d9,_0x51a935,_0x4dfc5e)=>{const _0x2bb8cf=_0x4dfc5e['mapper']['markerNameToElements'](_0x51a935['markerName']);if(_0x2bb8cf){for(const _0x229e49 of _0x2bb8cf)_0x229e49['is']('uiElement')&&(_0x4dfc5e['mapper']['unbindElementFromMarkerName'](_0x229e49,_0x51a935['markerName']),_0x4dfc5e['writer']['remove'](_0x229e49));}},{'priority':'high'});}}class z extends _0x454bf4{['afterInit'](){const _0x4a998c=this['editor'];if(!_0x4a998c['plugins']['has']('ListEditing'))return;const _0x32cdc5=_0x4a998c['locale'],_0x2d87db=_0x4a998c['plugins']['get']('TrackChangesEditing'),_0x52e026=_0x4a998c['plugins']['has']('TodoListEditing'),_0xdf49a8=!!_0x4a998c['config']['get']('list.multiBlock');function _0x193261(_0x1fd940){return{'type':'format','content':''+o(_0x32cdc5,'*Set\x20format:*\x20%0',_0x1fd940)};}function _0x31e144(_0x2adec8){return{'type':'format','content':''+o(_0x32cdc5,'*Remove\x20format:*\x20%0',_0x2adec8)};}_0x2d87db['enableDefaultAttributesIntegration']('numberedList'),_0x2d87db['enableDefaultAttributesIntegration']('bulletedList'),_0x2d87db['enableDefaultAttributesIntegration']('customNumberedList'),_0x2d87db['enableDefaultAttributesIntegration']('customBulletedList'),_0x2d87db['enableDefaultAttributesIntegration']('indentList'),_0x2d87db['enableDefaultAttributesIntegration']('outdentList'),_0x2d87db['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2d87db['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2d87db['registerBlockAttribute']('listItemId'),_0x2d87db['registerBlockAttribute']('listType'),_0x2d87db['registerBlockAttribute']('listIndent'),_0xdf49a8&&(_0x2d87db['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2d87db['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x52e026&&(_0x2d87db['enableDefaultAttributesIntegration']('todoList'),_0x2d87db['enableDefaultAttributesIntegration']('checkTodoList'),_0x2d87db['registerBlockAttribute']('todoListChecked'),_0x2d87db['descriptionFactory']['registerDescriptionCallback'](_0x258ee8=>{const {data:_0x5a3b5b}=_0x258ee8;if(_0x5a3b5b&&'todoListChecked'==_0x5a3b5b['key'])return{'type':'format','content':_0x5a3b5b['newValue']?o(_0x32cdc5,'*Check\x20item*'):o(_0x32cdc5,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4626a0=>{if(_0x4626a0['batch']['isUndo'])return!0x1;let _0x1f9ff2=!0x1;const _0x1ce8cc=_0x2d87db['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x380590=>'todoListChecked'===_0x2d87db['_getAttributeKey'](_0x380590));for(const _0x21970a of _0x1ce8cc){'todo'!=_0x21970a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2d87db['_findSuggestions'](_0x21970a['getFirstRange'](),'attribute')['find'](_0x47e84e=>'listType'===_0x2d87db['_getAttributeKey'](_0x47e84e['suggestion']))||(_0x4626a0['removeMarker'](_0x21970a['getFirstMarker']()),_0x1f9ff2=!0x0));}return _0x1f9ff2;})),_0x2d87db['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x32cdc5,'FORMAT_INDENT'));const _0x29641d={'type':'format','content':''};_0x2d87db['descriptionFactory']['registerDescriptionCallback'](_0x1722cc=>{const {data:_0xa42caa}=_0x1722cc;if(!_0xa42caa||'listType'!=_0xa42caa['key'])return;let _0x42ca04=_0x1722cc['head'];for(;_0x42ca04;){if(_0x42ca04['data']&&(('listStyle'==_0x42ca04['data']['key']||'listMarkerStyle'==_0x42ca04['data']['key'])&&(_0x42ca04['data']['newValue']&&'default'!=_0x42ca04['data']['newValue']||'default'!=_0x42ca04['data']['oldValue']&&!_0xa42caa['newValue'])||!_0xdf49a8&&_0x42ca04['data']['key']==m))return _0x29641d;_0x42ca04=_0x42ca04['next'];}if(null==_0xa42caa['newValue'])switch(_0xa42caa['oldValue']){case'bulleted':return _0x31e144(o(_0x32cdc5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x31e144(o(_0x32cdc5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x31e144(o(_0x32cdc5,'ELEMENT_TODO_LIST'));}switch(_0xa42caa['newValue']){case'bulleted':return _0x193261(o(_0x32cdc5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x193261(o(_0x32cdc5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x193261(o(_0x32cdc5,'ELEMENT_TODO_LIST'));}}),_0x2d87db['descriptionFactory']['registerDescriptionCallback'](_0x2de107=>{const {data:_0x5d492f}=_0x2de107;if(_0x5d492f&&'listIndent'==_0x5d492f['key'])return null==_0x5d492f['newValue']||null==_0x5d492f['oldValue']&&0x0==_0x5d492f['newValue']?_0x29641d:void 0x0;}),_0x2d87db['descriptionFactory']['registerDescriptionCallback'](_0x5caa3f=>{if('attribute'!=_0x5caa3f['type'])return;const {data:_0x275e1d}=_0x5caa3f;if(!_0x275e1d||'listItemId'!=_0x275e1d['key'])return;const _0x106579=le(_0x5caa3f);return'newValue'==_0x106579?{'type':'format','content':o(_0x32cdc5,'*Merge:*\x20list\x20item')}:'oldValue'==_0x106579?{'type':'format','content':o(_0x32cdc5,'*Split:*\x20list\x20item')}:_0x29641d;}),_0x4a998c['model']['document']['registerPostFixer'](_0x49de1f=>this['listItemIdFixer'](_0x49de1f)),_0x4a998c['model']['document']['registerPostFixer'](_0xd79647=>this['noTrackChangesFixer'](_0xd79647)),_0x4a998c['model']['document']['registerPostFixer'](_0x3c9937=>this['assureChains'](_0x3c9937)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4f5791){if(_0x4f5791['batch']['isUndo']||!_0x4f5791['batch']['isLocal'])return!0x1;let _0x1fc244=!0x1;const _0xd2c116=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf276fe=>_0xf276fe['data']&&'listItemId'==_0xf276fe['data']['key'])['filter'](_0x5e5f99=>_0x5e5f99['data']['newValue']&&_0x5e5f99['data']['oldValue']);for(const _0x570cea of _0xd2c116)le(_0x570cea)||(_0x4f5791['removeMarker'](_0x570cea['getFirstMarker']()),_0x1fc244=!0x0);return _0x1fc244;}['noTrackChangesFixer'](_0x31a515){if(_0x31a515['batch']['isUndo']||!_0x31a515['batch']['isLocal'])return!0x1;const _0x264e8f=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x264e8f['trackChangesCommand']['value'])return!0x1;let _0x277a1e=!0x1;const _0x6ed113=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x43294b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x426c21=>'attribute'==_0x426c21['type'])['filter'](_0x573014=>_0x6ed113['includes'](_0x573014['attributeKey']));if(0x0==_0x43294b['length'])return _0x277a1e;for(const _0x206e36 of _0x43294b){const _0x36ee23=_0x264e8f['_findSuggestions'](_0x206e36['range'],'attribute')['filter'](_0x2912eb=>!_0x2912eb['meta']['isNextTo'])['map'](_0x151a71=>_0x151a71['suggestion'])['filter'](_0x27f933=>{const _0x47e5c7=_0x264e8f['_getAttributeKey'](_0x27f933);return _0x6ed113['includes'](_0x47e5c7);});if(_0x36ee23['length']){for(const _0x5e87da of _0x36ee23)_0x31a515['removeMarker'](_0x5e87da['getFirstMarker']());_0x277a1e=!0x0;}}return _0x277a1e;}['assureChains'](_0x11d0be){if(_0x11d0be['batch']['isUndo']||!_0x11d0be['batch']['isLocal'])return!0x1;const _0x14f675=this['editor']['plugins']['get']('TrackChangesEditing');let _0x25a083=!0x1;const _0x343250=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x5755b1 of _0x14f675['getSuggestions']({'skipNotAttached':!0x0})){const _0xeb4b1=_0x14f675['_findSuggestions'](_0x5755b1['getFirstRange'](),'attribute')['map'](_0x180cb7=>_0x180cb7['suggestion'])['filter'](_0x2792a6=>_0x2792a6['data']&&_0x343250['includes'](_0x2792a6['data']['key']));if(!_0xeb4b1['length'])continue;const _0x1b65e8=_0xeb4b1[0x0]['head']['attributes']['groupId'];if(!_0xeb4b1['every'](_0x270fdb=>_0x270fdb['attributes']['groupId']===_0x1b65e8)){for(const _0x5357a6 of _0xeb4b1)_0x174f2e(_0x5357a6,_0x1b65e8)&&(_0x25a083=!0x0);}}return _0x25a083;function _0x1950c2(_0x349458,_0xe14642){for(const _0x432fc8 of _0x14f675['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2586c5=>'attribute'==_0x2586c5['type']&&_0x2586c5['attributes']['groupId']==_0x349458))_0x432fc8['setAttribute']('groupId',_0xe14642);}function _0x174f2e(_0x194b31,_0x4184f0){let _0x47dcd0=_0x194b31['head'],_0x19951a=!0x1;for(;_0x47dcd0;)_0x47dcd0['attributes']['groupId']!=_0x4184f0&&(_0x1950c2(_0x47dcd0['attributes']['groupId'],_0x4184f0),_0x47dcd0['setAttribute']('groupId',_0x4184f0),_0x19951a=!0x0),_0x47dcd0=_0x47dcd0['next'];return _0x19951a;}}['_supportLegacySuggestions'](){const _0x7497c1=this['editor'],_0x201b89=_0x7497c1['locale'],_0x1eaac7=_0x7497c1['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1eaac7['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4dc021,_0x5e11a7){const _0x32c272=[];for(let _0x961f21 of _0x4dc021)_0x961f21['start']['nodeAfter']===_0x961f21['end']['parent']&&(_0x961f21=_0x7497c1['model']['createRange'](_0x7497c1['model']['createPositionAt'](_0x961f21['start']['nodeAfter'],0x0))),_0x32c272['push'](_0x961f21);_0x7497c1['model']['change'](_0x2fb51c=>{const _0x42222c=_0x7497c1['model']['document']['selection'],_0x2c99c4=Array['from'](_0x42222c['getRanges']())['map'](_0x1f935d=>_0xb3bd9b['fromRange'](_0x1f935d));_0x2fb51c['setSelection'](_0x32c272),_0x7497c1['commands']['get'](_0x5e11a7['commandName'])['refresh'](),_0x5e11a7['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x7497c1['execute'](_0x5e11a7['commandName'],..._0x5e11a7['commandParams']),_0x2fb51c['setSelection'](_0x2c99c4);for(const _0x3b1a55 of _0x2c99c4)_0x3b1a55['detach']();});}),_0x1eaac7['descriptionFactory']['registerElementLabel'](function(_0x59e321){const _0x27620d=!_0x7497c1['model']['schema']['isObject'](_0x59e321),_0x16671f=_0x59e321['previousSibling'],_0x7414d=_0x59e321['nextSibling'],_0x3225cf=_0x59e321['getAttribute']('listItemId'),_0x358599=!_0x16671f||_0x16671f['getAttribute']('listItemId')!==_0x3225cf,_0x116584=!_0x7414d||_0x7414d['getAttribute']('listItemId')!==_0x3225cf;return _0x27620d&&Boolean(_0x3225cf)&&_0x358599&&_0x116584;},_0x100115=>o(_0x201b89,'ELEMENT_LIST_ITEM',_0x100115));}['_registerLegacyDescription'](){const _0x2e8de7=this['editor'],_0x289ad9=_0x2e8de7['locale'];function _0x3780d3(_0x85dd62){const _0x159edb=_0x2e8de7['commands']['get']('bulletedList')['value'],_0x2e8695=_0x2e8de7['commands']['get']('numberedList')['value'];return'numberedList'===_0x85dd62?_0x159edb:_0x2e8695;}_0x2e8de7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4ba775){if('formatBlock'!=_0x4ba775['type'])return;const {data:_0x379e72}=_0x4ba775;if(!_0x379e72)return;let _0x14ac65,_0x50b3e2,_0x461bd1,_0x2a6407;switch(_0x379e72['commandName']){case'bulletedList':_0x461bd1=_0x379e72['commandParams'][0x0]['forceValue'],_0x2a6407=_0x3780d3(_0x379e72['commandName']),_0x14ac65=_0x461bd1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2a6407&&_0x2e8de7['config']['get']('list.multiBlock')||(_0x14ac65='*Change\x20to:*\x20%0'),_0x50b3e2={'type':'format','content':o(_0x289ad9,_0x14ac65,o(_0x289ad9,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x461bd1=_0x379e72['commandParams'][0x0]['forceValue'],_0x2a6407=_0x3780d3(_0x379e72['commandName']),_0x14ac65=_0x461bd1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2a6407&&_0x2e8de7['config']['get']('list.multiBlock')||(_0x14ac65='*Change\x20to:*\x20%0'),_0x50b3e2={'type':'format','content':o(_0x289ad9,_0x14ac65,o(_0x289ad9,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x14ac65='*Indent:*\x20%0',_0x50b3e2={'type':'format','content':o(_0x289ad9,_0x14ac65,o(_0x289ad9,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x14ac65=function(_0x4fe2f0){const _0x2bb166=_0x4fe2f0['getFirstRange']();let _0x3a1d4e=_0x2bb166['start']['nodeAfter'];for(;_0x3a1d4e&&_0x2bb166['containsItem'](_0x3a1d4e);){if(_0x3a1d4e['getAttribute']('listIndent')>0x0)return!0x1;_0x3a1d4e=_0x3a1d4e['nextSibling'];}return!0x0;}(_0x4ba775)?o(_0x289ad9,'*Format:*\x20remove\x20from\x20%0',o(_0x289ad9,function(_0x122e0c){return'ELEMENT_'+_0x122e0c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4ba775))):o(_0x289ad9,'*Outdent:*\x20%0',o(_0x289ad9,'ELEMENT_LIST_ITEM')),_0x50b3e2={'type':'format','content':_0x14ac65};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x379e72['multipleBlocks']&&(_0x14ac65='*Merge:*\x20%0',_0x50b3e2={'type':'deletion','content':o(_0x289ad9,_0x14ac65,o(_0x289ad9,'ELEMENT_LIST_ITEM'))});}return _0x50b3e2;});}}function le(_0x247eeb){let _0x6f40cf=_0x247eeb['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x6f40cf;){const _0x393d43=_0x6f40cf['getAttribute']('listItemId');if(!_0x393d43)return!0x1;if(_0x393d43==_0x247eeb['data']['newValue'])return'newValue';if(_0x393d43==_0x247eeb['data']['oldValue'])return'oldValue';_0x6f40cf=_0x6f40cf['previousSibling'];}return!0x1;}class ue extends _0x454bf4{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x56c8cd=this['editor']['config']['get']('list.properties'),_0x4f51d2=this['editor']['plugins']['get']('TrackChangesEditing');_0x56c8cd['styles']&&(_0x4f51d2['enableDefaultAttributesIntegration']('listStyle'),_0x4f51d2['registerBlockAttribute']('listStyle')),_0x56c8cd['reversed']&&(_0x4f51d2['enableDefaultAttributesIntegration']('listReversed'),_0x4f51d2['registerBlockAttribute']('listReversed')),_0x56c8cd['startIndex']&&(_0x4f51d2['enableDefaultAttributesIntegration']('listStart'),_0x4f51d2['registerBlockAttribute']('listStart'));const _0x219937={'type':'format','content':''};_0x4f51d2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x235929=this['editor']['locale'];_0x4f51d2['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x235929,'FORMAT_LIST_REVERSED')),_0x4f51d2['descriptionFactory']['registerDescriptionCallback'](_0x3f8993=>{const {data:_0x1db362}=_0x3f8993;if(_0x1db362&&'listReversed'==_0x1db362['key'])return null==_0x1db362['newValue']||0x0==_0x1db362['newValue']&&null==_0x1db362['oldValue']?_0x219937:void 0x0;}),_0x4f51d2['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x235929,'FORMAT_LIST_START')),_0x4f51d2['descriptionFactory']['registerDescriptionCallback'](_0x5ace9d=>{const {data:_0x41e20a}=_0x5ace9d;if(_0x41e20a&&'listStart'==_0x41e20a['key'])return null==_0x41e20a['newValue']||0x1==_0x41e20a['newValue']&&null==_0x41e20a['oldValue']?_0x219937:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3f6ccd=>{if(_0x3f6ccd['batch']['isUndo'])return!0x1;let _0x5487aa=!0x1;const _0xc1b034=_0x4f51d2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x216368=>{const _0x4c606f=_0x4f51d2['_getAttributeKey'](_0x216368);return'listStart'==_0x4c606f||'listReversed'==_0x4c606f;});for(const _0x490453 of _0xc1b034){const _0x2a277d=_0x490453['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2a277d||'customNumbered'==_0x2a277d)continue;_0x4f51d2['_findSuggestions'](_0x490453['getFirstRange'](),'attribute')['find'](_0xa6f58e=>'listType'==_0x4f51d2['_getAttributeKey'](_0xa6f58e['suggestion']))||(_0x3f6ccd['removeMarker'](_0x490453['getFirstMarker']()),_0x5487aa=!0x0);}return _0x5487aa;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x39285a){const _0xadda51=this['editor']['locale'],{data:_0x38e69a}=_0x39285a,_0x2297ba={'type':'format','content':''};if(!_0x38e69a||'listStyle'!=_0x38e69a['key'])return;if(!_0x38e69a['oldValue'])return'default'==_0x38e69a['newValue']?_0x2297ba:{'type':'format','content':''+o(_0xadda51,'*Set\x20format:*\x20%0',o(_0xadda51,this['_getTranslationKeyForListStyle'](_0x38e69a['newValue'])))};if(!_0x38e69a['newValue']){if('default'==_0x38e69a['oldValue'])return _0x2297ba;let _0x3eacf0=_0x39285a['head'];for(;_0x3eacf0;){if(_0x3eacf0['data']&&'listType'==_0x3eacf0['data']['key']&&_0x3eacf0['data']['newValue'])return _0x2297ba;_0x3eacf0=_0x3eacf0['next'];}return{'type':'format','content':''+o(_0xadda51,'*Remove\x20format:*\x20%0',o(_0xadda51,this['_getTranslationKeyForListStyle'](_0x38e69a['oldValue'])))};}if('default'!=_0x38e69a['newValue'])return{'type':'format','content':''+o(_0xadda51,'*Set\x20format:*\x20%0',o(_0xadda51,this['_getTranslationKeyForListStyle'](_0x38e69a['newValue'])))};let _0x2f898f=_0x39285a['head'];for(;_0x2f898f;){if(_0x2f898f['data']&&'listType'==_0x2f898f['data']['key']&&_0x2f898f['data']['newValue']&&_0x2f898f['data']['oldValue'])return _0x2297ba;_0x2f898f=_0x2f898f['next'];}return{'type':'format','content':o(_0xadda51,'*Set\x20format:*\x20%0',o(_0xadda51,'ELEMENT_'+_0x39285a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5d93af=this['editor'],_0xc3ead8=_0x5d93af['locale'];_0x5d93af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18a6b0=>{if('formatBlock'!=_0x18a6b0['type'])return;const {data:_0x380402}=_0x18a6b0;if(!_0x380402)return;let _0x1eebd5,_0x38a0c0;switch(_0x380402['commandName']){case'listStyle':_0x1eebd5='*Change\x20to:*\x20%0',_0x38a0c0={'type':'format','content':o(_0xc3ead8,_0x1eebd5,o(_0xc3ead8,this['_getTranslationKeyForListStyle'](_0x380402['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1eebd5=_0x380402['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x38a0c0={'type':'format','content':o(_0xc3ead8,_0x1eebd5)};break;case'listStart':_0x1eebd5='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x38a0c0={'type':'format','content':o(_0xc3ead8,_0x1eebd5,_0x380402['commandParams'][0x0]['startIndex'])};}return _0x38a0c0;});}['_getTranslationKeyForListStyle'](_0x433b77){return'ELEMENT_'+function(_0x129e15){if(pe['includes'](_0x129e15))return'bulleted';if(ye['includes'](_0x129e15))return'numbered';return null;}(_0x433b77)['toUpperCase']()+'_LIST_'+_0x433b77['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x454bf4{static get['requires'](){return[_0x53f9bd];}['init'](){const _0xdd71c4=this['editor'],_0x5c4ca6=_0xdd71c4['plugins']['get']('TrackChangesEditing'),_0x366ef1=_0xdd71c4['commands']['get']('enter');_0x5c4ca6['enableCommand']('enter',()=>{_0xdd71c4['model']['change'](_0x14c37c=>{const _0x341df6=_0xdd71c4['model']['document']['selection'],_0x3eda09=_0x341df6['getFirstPosition'](),_0x2f498d=_0xb3bd9b['fromRange'](_0x341df6['getFirstRange']());if(_0x366ef1['enterBlock'](_0x14c37c)){const _0xbc94ce=_0xdd71c4['model']['createPositionAt'](_0x3eda09['parent']['nextSibling'],0x0),_0x4a93fd=_0x14c37c['createRange'](_0x3eda09,_0xbc94ce);_0x5c4ca6['markInsertion'](_0x4a93fd);}else _0x14c37c['setSelection'](_0x14c37c['createRange'](_0x2f498d['end']));_0x2f498d['detach'](),_0x366ef1['fire']('afterExecute',{'writer':_0x14c37c});});}),_0xdd71c4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0xdd71c4,'split'),{'priority':'high'}),_0xdd71c4['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x443278,_0x40ebf9,_0x295985)=>{const _0x1f46ce=_0x295985['mapper']['markerNameToElements'](_0x40ebf9['markerName']);if(_0x1f46ce){for(const _0x43efa8 of _0x1f46ce)_0x43efa8['hasClass']('ck-suggestion-marker-split')&&(_0x295985['mapper']['unbindElementFromMarkerName'](_0x43efa8,_0x40ebf9['markerName']),_0x295985['writer']['remove'](_0x43efa8));}},{'priority':'high'}),_0xdd71c4['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x54c968,_0x2cd4d4,_0x3b789d)=>{_0x3b789d['options']['showSuggestionHighlights']&&_e(_0xdd71c4,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x54c968,_0x2cd4d4,_0x3b789d);},{'priority':'high'});}}class J extends _0x454bf4{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x265840=this['editor']['plugins']['get']('TrackChangesEditing');_0x265840['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x265840['enableCommand']('findNext'),_0x265840['enableCommand']('findPrevious'),_0x265840['enableCommand']('replace'),_0x265840['enableCommand']('replaceAll');}['handleFindCommand'](_0x9a8031,_0x1f31a7,_0x27f8ee={}){const _0x490b4f=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x9a8031(_0x48df98=>('string'==typeof _0x1f31a7?_0x490b4f['findByTextCallback'](_0x1f31a7,_0x27f8ee):_0x1f31a7)(_0x48df98)['filter'](_0x4d59d1=>!0x1===this['_isInDeletionRange'](_0x4d59d1,_0x48df98['item'])),_0x27f8ee);}['_isInDeletionRange'](_0x2eaffd,_0x2a2720){const _0x246fe1=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2a2720,_0x2eaffd['start']),this['editor']['model']['createPositionAt'](_0x2a2720,_0x2eaffd['end']));for(const _0x108951 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x246fe1['getIntersection'](_0x108951['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 _0x454bf4{['afterInit'](){const _0x346347=this['editor']['locale'],_0x45b4df=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x19b47b,commandName:_0x514b44}of ro)this['editor']['plugins']['has'](_0x19b47b)&&(_0x45b4df['enableDefaultAttributesIntegration'](_0x514b44),_0x45b4df['registerInlineAttribute'](_0x514b44));_0x346347['t'],_0x45b4df['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x346347,'FORMAT_FONT_SIZE')),_0x45b4df['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x346347,'FORMAT_FONT_FAMILY')),_0x45b4df['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x346347,'FORMAT_FONT_COLOR')),_0x45b4df['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x346347,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59ff2d=this['editor'],_0x516bd6=_0x59ff2d['locale'];_0x59ff2d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e8317=>{const _0x211e30=_0x516bd6['t'];if('formatInline'!=_0x5e8317['type'])return;const {data:_0x2370c2}=_0x5e8317;if(null!=_0x2370c2){if('fontSize'==_0x2370c2['commandName']){const _0x3c5559=_0x2370c2['commandParams'][0x0]['value'];if(_0x3c5559){const _0x317949=_0x211e30(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xe452c8=>_0xe452c8['model']==_0x3c5559)['title'])['toLowerCase']();return{'type':'format','content':o(_0x516bd6,'*Set\x20font\x20size:*\x20%0',_0x317949)};}return{'type':'format','content':o(_0x516bd6,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2370c2['commandName']){const _0x4099c5=_0x2370c2['commandParams'][0x0]['value'];return _0x4099c5?{'type':'format','content':o(_0x516bd6,'*Set\x20font\x20family:*\x20%0',_0x4099c5)}:{'type':'format','content':o(_0x516bd6,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2370c2['commandName']){const _0x25fac8=_0x2370c2['commandParams'][0x0]['value'];if(_0x25fac8){const _0x1afda2=_0x102f80(this['editor']['config']['get']('fontColor.colors'))['find'](_0x348d4a=>_0x348d4a['model']==_0x25fac8);let _0x477368=_0x25fac8,_0x14895b='';return _0x1afda2&&(_0x477368=_0x1afda2['label'],_0x14895b=_0x211e30(_0x477368)['toLowerCase']()),{'type':'format','content':o(_0x516bd6,'*Set\x20font\x20color:*\x20%0',_0x14895b)['trim'](),'color':{'value':_0x25fac8,'title':_0x14895b||_0x477368}};}return{'type':'format','content':o(_0x516bd6,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2370c2['commandName']){const _0x370758=_0x2370c2['commandParams'][0x0]['value'];if(_0x370758){const _0x500d70=_0x102f80(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x216d41=>_0x216d41['model']==_0x370758);let _0x23f57c=_0x370758,_0x1aa910='';return _0x500d70&&(_0x23f57c=_0x500d70['label'],_0x1aa910=_0x211e30(_0x23f57c)['toLowerCase']()),{'type':'format','content':o(_0x516bd6,'*Set\x20font\x20background\x20color:*\x20%0',_0x1aa910)['trim'](),'color':{'value':_0x370758,'title':_0x1aa910||_0x23f57c}};}return{'type':'format','content':o(_0x516bd6,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x454bf4{['afterInit'](){const _0x1ca9a9=this['editor'],_0x1c007b=_0x1ca9a9['plugins']['get']('TrackChangesEditing'),_0xb21fe2=_0x1ca9a9['commands']['get']('copyFormat'),_0x2434b4=_0x1ca9a9['commands']['get']('pasteFormat');_0xb21fe2&&_0x2434b4&&(_0x1c007b['enableDefaultAttributesIntegration']('pasteFormat'),_0x1c007b['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x8facd0=this['editor'],_0xfbc43b=_0x8facd0['locale'];_0x8facd0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e45f7=>{if('formatBlock'!=_0x3e45f7['type']&&'formatInline'!=_0x3e45f7['type'])return;const {data:_0x562359}=_0x3e45f7;if(_0x562359&&'pasteFormat'===_0x562359['commandName']){const _0x5c3b34=[],_0x633c04=_0x562359['commandParams'][0x0];for(const [_0x1fdc07,_0x4cd545]of Object['entries'](_0x633c04))_0x5c3b34['push'](so(_0x8facd0,_0x1fdc07,_0x4cd545));return _0x5c3b34['length']?{'type':'format','content':o(_0xfbc43b,'*Set\x20format\x20to:*\x20%0',_0x5c3b34['join'](',\x20'))}:{'type':'format','content':o(_0xfbc43b,'*Remove\x20all\x20formatting*')};}});}}function so(_0x2210a4,_0x4d4d9e,_0xcef1e0){const _0x2ccdbe=_0x2210a4['locale']['t'],_0x56d131=_0x4d4d9e['split'](/(?=[A-Z])/)['join']('\x20'),_0x22473c=_0x2ccdbe(_0x56d131['charAt'](0x0)['toUpperCase']()+_0x56d131['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xcef1e0)return _0x22473c;if('fontColor'===_0x4d4d9e||'fontBackgroundColor'===_0x4d4d9e){const _0x5745f6=_0x102f80(_0x2210a4['config']['get']('fontColor.colors'))['find'](_0xa3ca56=>_0xa3ca56['model']==_0xcef1e0);return _0x22473c+'\x20('+(_0x5745f6?_0x2ccdbe(_0x5745f6['label'])['toLowerCase']():_0xcef1e0)+')';}if('fontSize'===_0x4d4d9e&&isNaN(parseFloat(_0xcef1e0))){const _0x1111d0=_0x2210a4['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2210a4['config']['get']('fontSize.options'))['find'](_0x2d745f=>_0x2d745f['model']==_0xcef1e0);return _0x22473c+'\x20('+(_0x1111d0?_0x2ccdbe(_0x1111d0['title'])['toLowerCase']():_0xcef1e0)+')';}return _0x22473c+'\x20('+_0xcef1e0+')';}class Y extends _0x454bf4{['afterInit'](){const _0xab7c5e=this['editor'];if(!_0xab7c5e['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xab7c5e['config']['get']('heading.options');const _0x230d38=_0xab7c5e['locale'],_0x4cb4eb=_0xab7c5e['plugins']['get']('TrackChangesEditing');_0x4cb4eb['enableDefaultAttributesIntegration']('heading');for(const _0x17938f of this['_headingOptions'])'paragraph'!=_0x17938f['model']&&_0x4cb4eb['descriptionFactory']['registerElementLabel'](_0x17938f['model'],_0x59191c=>{const _0x9513ef=this['_getHeadingLevel'](_0x17938f['model']);return null!==_0x9513ef?_0x2d864f(_0x59191c,_0x9513ef):_0x28ee2c(_0x59191c,_0x17938f['title']);});function _0x2d864f(_0x93e738,_0x5ea704){return o(_0x230d38,'ELEMENT_HEADING',[_0x93e738,_0x5ea704]);}function _0x28ee2c(_0x2a8677,_0x5584be){return o(_0x230d38,'ELEMENT_HEADING_CUSTOM',[_0x2a8677,_0x5584be]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb6227d=this['editor'],_0x1df22c=_0xb6227d['locale'];function _0x3a5289(_0x4ca656,_0x1f1fc1){return o(_0x1df22c,'ELEMENT_HEADING_CUSTOM',[_0x4ca656,_0x1f1fc1]);}_0xb6227d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x580bf3=>{if('formatBlock'!=_0x580bf3['type'])return;const {data:_0x29ead6}=_0x580bf3;if(_0x29ead6&&'heading'==_0x29ead6['commandName']){const _0x30bc16=_0x29ead6['commandParams'][0x0]['value'],_0x2ea346=this['_getHeadingLevel'](_0x30bc16);if(null!==_0x2ea346)return{'type':'format','content':o(_0x1df22c,'*Change\x20to:*\x20%0',(_0x32d4fd=0x1,_0xee00e5=_0x2ea346,o(_0x1df22c,'ELEMENT_HEADING',[_0x32d4fd,_0xee00e5])))};const _0x3de6d5=this['_headingOptions']['find'](_0x5a1f62=>_0x5a1f62['model']===_0x30bc16)['title'];return{'type':'format','content':o(_0x1df22c,'*Change\x20to:*\x20%0',_0x3a5289(0x1,_0x3de6d5))};}var _0x32d4fd,_0xee00e5;});}['_getHeadingLevel'](_0xc94c64){var _0x5ebe08,_0x14726f;const _0x2cb110=_0xc94c64['match'](/^heading(\d+)/);if(_0x2cb110)return _0x2cb110[0x1];const _0x1a37f2=null===(_0x5ebe08=this['_headingOptions'])||void 0x0===_0x5ebe08?void 0x0:_0x5ebe08['find'](_0x5f5a6f=>_0x5f5a6f['model']==_0xc94c64);if(_0x1a37f2&&_0x1a37f2['view']){const _0x45dbb9=_0x1a37f2['view'],_0x5b8c48=(null!==(_0x14726f=_0x45dbb9['name'])&&void 0x0!==_0x14726f?_0x14726f:_0x45dbb9)['match'](/^h(\d+)/);if(_0x5b8c48)return _0x5b8c48[0x1];}return null;}}class Z extends _0x454bf4{['afterInit'](){const _0x1323d1=this['editor'];if(!_0x1323d1['plugins']['has']('HighlightEditing'))return;const _0x1b1482=_0x1323d1['plugins']['get']('TrackChangesEditing'),_0xeb832=_0x1323d1['locale'];_0x1b1482['enableDefaultAttributesIntegration']('highlight'),_0x1b1482['registerInlineAttribute']('highlight'),_0x1b1482['descriptionFactory']['registerAttributeLabel']('highlight',o(_0xeb832,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19cfaf=this['editor'],_0x449ee4=_0x19cfaf['locale'];_0x19cfaf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d4d40=>{if('formatInline'!=_0x5d4d40['type'])return;const {data:_0xf8b9e5}=_0x5d4d40;if(_0xf8b9e5&&'highlight'==_0xf8b9e5['commandName']){const _0x4108ee=_0x449ee4['t'],_0x4c29f3=_0xf8b9e5['commandParams'][0x0]['value'];if(_0x4c29f3){const _0x33e7c2=_0x19cfaf['config']['get']('highlight.options')['find'](_0x1b2b1c=>_0x1b2b1c['model']==_0x4c29f3),_0x11c249=_0x4108ee(_0x33e7c2['title'])['toLowerCase']();return{'type':'format','content':o(_0x449ee4,'*Set\x20highlight:*\x20%0',_0x11c249),'color':{'value':_0x33e7c2['color'],'title':_0x33e7c2['title']}};}return{'type':'format','content':o(_0x449ee4,'*Remove\x20highlight*',o(_0x449ee4,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x454bf4{['afterInit'](){const _0x125eb0=this['editor'];if(!_0x125eb0['plugins']['has']('HorizontalLineEditing'))return;_0x125eb0['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x27cfc3=_0x125eb0['plugins']['get']('TrackChangesEditing'),_0x2439fb=_0x125eb0['locale'];_0x27cfc3['descriptionFactory']['registerElementLabel']('horizontalLine',_0x144fc8=>o(_0x2439fb,'ELEMENT_HORIZONTAL_LINE',_0x144fc8)),_0x125eb0['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x40c23c,{writer:_0x5dff59,options:_0xe9575f})=>{if(!_0xe9575f['showSuggestionHighlights'])return null;const _0x2735e0=_0x5dff59['createContainerElement']('div'),_0x2854cf=_0x5dff59['createEmptyElement']('hr');return _0x5dff59['addClass']('ck-horizontal-line',_0x2735e0),_0x5dff59['insert'](_0x5dff59['createPositionAt'](_0x2735e0,0x0),_0x2854cf),_0x2735e0;},'converterPriority':'high'});}}class et extends _0x454bf4{['afterInit'](){const _0x281c40=this['editor'];if(!_0x281c40['plugins']['has']('HtmlEmbed'))return;const _0x38bb7e=_0x281c40['plugins']['get']('TrackChangesEditing'),_0x1c10b3=_0x281c40['locale'];_0x38bb7e['descriptionFactory']['registerElementLabel']('rawHtml',_0x52180f=>o(_0x1c10b3,'ELEMENT_HTML_EMBED',_0x52180f)),_0x38bb7e['enableDefaultAttributesIntegration']('htmlEmbed'),_0x38bb7e['registerBlockAttribute']('value'),_0x38bb7e['descriptionFactory']['registerDescriptionCallback'](_0x28ea16=>{if('attribute'!=_0x28ea16['type'])return;const {data:_0x2f8620}=_0x28ea16;if(_0x2f8620&&'value'==_0x2f8620['key']&&_0x28ea16['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x23863f=o(_0x1c10b3,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1c10b3,'*Change\x20%0\x20content*',_0x23863f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x581a5a=this['editor'],_0x1717dd=_0x581a5a['locale'];_0x581a5a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19e710=>{if('formatBlock'!=_0x19e710['type'])return;const {data:_0xbd47a7}=_0x19e710;if(_0xbd47a7&&'htmlEmbed'==_0xbd47a7['commandName']){const _0x3226d1=o(_0x1717dd,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1717dd,'*Change\x20%0\x20content*',_0x3226d1)};}});}}class it extends _0x454bf4{['afterInit'](){const _0x595258=this['editor'];if(!_0x595258['plugins']['has']('ImageEditing'))return;const _0x5949f9=_0x595258['plugins']['get']('TrackChangesEditing'),_0x50b558=_0x595258['plugins']['get']('ImageUtils'),_0xb797a3=_0x595258['locale'];_0x5949f9['enableCommand']('insertImage'),_0x5949f9['descriptionFactory']['registerElementLabel']('imageBlock',_0x4213d8=>o(_0xb797a3,'ELEMENT_IMAGE',_0x4213d8)),_0x5949f9['descriptionFactory']['registerElementLabel']('imageInline',_0x3a4aff=>o(_0xb797a3,'ELEMENT_INLINE_IMAGE',_0x3a4aff)),_0x5949f9['descriptionFactory']['registerElementLabel']('caption',()=>o(_0xb797a3,'ELEMENT_CAPTION')),_0x595258['plugins']['has']('ImageUploadEditing')&&_0x5949f9['enableCommand']('uploadImage'),_0x595258['plugins']['has']('ImageBlockEditing')&&_0x595258['plugins']['has']('ImageInlineEditing')&&(_0x5949f9['enableCommand']('imageTypeInline',(_0xb308be,_0x77ddee)=>{const _0x218e91=_0x50b558['getClosestSelectedImageElement'](_0x595258['model']['document']['selection']);_0x595258['model']['change'](()=>{_0x5949f9['markBlockFormat'](_0x218e91,{'commandName':'imageTypeInline','commandParams':[_0x77ddee]},[],'convertBlockImageToInline');});}),_0x5949f9['enableCommand']('imageTypeBlock',(_0x38e18d,_0x7f69c1)=>{_0x595258['model']['change'](_0x440e10=>{let _0x10cf76=_0x50b558['getClosestSelectedImageElement'](_0x595258['model']['document']['selection']),_0x31d05b=_0x440e10['createRangeOn'](_0x10cf76);const _0x4702d0=_0x3a5bde['fromPosition'](_0x31d05b['start'],'toPrevious'),_0x4e6bb1=_0x3a5bde['fromPosition'](_0x31d05b['end'],'toNext');_0x5949f9['forceDefaultExecution'](()=>_0x38e18d(_0x7f69c1)),_0x10cf76=_0x50b558['getClosestSelectedImageElement'](_0x595258['model']['document']['selection']),_0x31d05b=_0x440e10['createRangeOn'](_0x10cf76);const _0x480591=_0x440e10['createRange'](_0x4702d0,_0x4e6bb1);_0x4702d0['detach'](),_0x4e6bb1['detach'](),_0x5949f9['markBlockFormat'](_0x10cf76,{'commandName':'imageTypeInline','commandParams':[_0x7f69c1]},[],'convertInlineImageToBlock'),_0x480591['start']['isBefore'](_0x31d05b['start'])&&_0x5949f9['markInsertion'](_0x440e10['createRange'](_0x480591['start'],_0x31d05b['start']),'convertInlineImageToBlock'),_0x31d05b['end']['isBefore'](_0x480591['end'])&&_0x5949f9['markInsertion'](_0x440e10['createRange'](_0x31d05b['end'],_0x480591['end']),'convertInlineImageToBlock');});}),_0x5949f9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5949f9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5949f9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5949f9['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5949f9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5949f9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x434f73])=>{const _0x1f3285=_0x5949f9['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x41215c=_0x434f73['start'],_0x1de930=_0x434f73['end'];const _0x2b3879=_0x595258['model']['schema']['getNearestSelectionRange'](_0x41215c,'backward'),_0x285c55=_0x595258['model']['schema']['getNearestSelectionRange'](_0x1de930,'forward');_0x2b3879['isCollapsed']&&(_0x41215c=_0x2b3879['start']),_0x285c55['isCollapsed']&&(_0x1de930=_0x285c55['end']),_0x1f3285([_0x595258['model']['createRange'](_0x41215c,_0x1de930)]);}),_0x5949f9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x457f1d),_0x5949f9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x457f1d)),_0x595258['plugins']['has']('ImageCaptionEditing')&&(_0x5949f9['enableCommand']('toggleImageCaption',(_0x2404a3,_0x4186ad)=>{const _0x44c3a4=_0x595258['plugins']['get']('ImageCaptionUtils');let _0x16b0ee=_0x50b558['getClosestSelectedImageElement'](_0x595258['model']['document']['selection']),_0x2f0b81=_0x44c3a4['getCaptionFromImageModelElement'](_0x16b0ee);_0x595258['model']['change'](()=>{if(_0x2f0b81)return void _0x5949f9['markDeletion'](_0x595258['model']['createRangeOn'](_0x2f0b81));const _0x5b66e2=_0x50b558['isBlockImage'](_0x16b0ee);_0x2404a3(_0x4186ad),_0x16b0ee=_0x50b558['getClosestSelectedImageElement'](_0x595258['model']['document']['selection']),_0x2f0b81=_0x44c3a4['getCaptionFromImageModelElement'](_0x16b0ee),_0x5949f9['markInsertion'](_0x595258['model']['createRangeOn'](_0x2f0b81),_0x5b66e2?null:'imageCaption');});}),_0x5949f9['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x457f1d));const _0x35d126=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4782e3(_0x32a74f,_0x4e6dfc){const _0x270997=_0x35d126['findIndex'](({type:_0x39e8eb,subType:_0x36a38b})=>_0x32a74f['type']==_0x39e8eb&&_0x32a74f['subType']==_0x36a38b),_0x4f5df6=_0x35d126['findIndex'](({type:_0x2bce51,subType:_0x5339ba})=>_0x4e6dfc['type']==_0x2bce51&&_0x4e6dfc['subType']==_0x5339ba);if(_0x270997<0x0||_0x4f5df6<0x0)return!0x1;const _0xf671cc=_0x32a74f['getFirstRange'](),_0x25f860=_0x4e6dfc['getFirstRange']();if((0x0==_0x270997||0x1==_0x270997)&&0x2==_0x4f5df6&&_0xf671cc['isIntersecting'](_0x25f860))return!0x0;if(0x2==_0x270997&&0x3==_0x4f5df6){const _0x31d1e5=_0x5949f9['_findSuggestions'](_0xf671cc,'insertion')['filter'](({suggestion:_0x38a2ff,meta:_0x53aa0b})=>_0x53aa0b['isOwn']&&'convertInlineImageToBlock'==_0x38a2ff['subType']);if(_0x31d1e5['length']>0x1&&_0x25f860['end']['isEqual'](_0xf671cc['start']))return!0x0;if(0x1==_0x31d1e5['length']&&(_0xf671cc['start']['isEqual'](_0x25f860['end'])||_0xf671cc['end']['isEqual'](_0x25f860['start'])))return!0x0;}if(0x3==_0x270997&&0x3==_0x4f5df6&&_0xf671cc['start']['isBefore'](_0x25f860['start'])){const _0xba051f=_0xf671cc['end']['nodeAfter'],_0x1c0989=_0x25f860['start']['nodeBefore'];return _0x50b558['isBlockImage'](_0xba051f)&&_0xba051f===_0x1c0989;}return!0x1;}function _0x457f1d(_0xa19bc7,_0x3fd2d3){return _0x4782e3(_0xa19bc7,_0x3fd2d3)?[_0xa19bc7,_0x3fd2d3]:_0x4782e3(_0x3fd2d3,_0xa19bc7)?[_0x3fd2d3,_0xa19bc7]:null;}_0x595258['plugins']['has']('ImageResize')&&(_0x5949f9['enableDefaultAttributesIntegration']('resizeImage'),_0x5949f9['registerBlockAttribute']('resizedWidth'),_0x5949f9['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0xb797a3,'FORMAT_IMAGE_SIZE'))),_0x595258['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5949f9['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5949f9['registerBlockAttribute']('alt')),_0x5949f9['descriptionFactory']['registerDescriptionCallback'](_0x161fc1=>{if(!!_0x35d126['find'](({type:_0x3bc782,subType:_0x5ec6b8})=>_0x161fc1['type']==_0x3bc782&&_0x161fc1['subType']==_0x5ec6b8))return _0x161fc1['previous']?{}:void 0x0;}),_0x5949f9['descriptionFactory']['registerDescriptionCallback'](_0x498c4a=>{if('insertion'==_0x498c4a['type']||'deletion'==_0x498c4a['type']){const _0x3679eb=_0x498c4a['getContainedElement']();if(_0x3679eb&&_0x3679eb['is']('element','caption'))return{'type':'insertion'==_0x498c4a['type']?'addObject':'removeObject','element':_0x3679eb,'quantity':0x1};}}),_0x5949f9['descriptionFactory']['registerDescriptionCallback'](_0x1824a9=>'formatBlock'==_0x1824a9['type']&&'convertInlineImageToBlock'==_0x1824a9['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1824a9['type']&&'convertBlockImageToInline'==_0x1824a9['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5949f9['descriptionFactory']['registerDescriptionCallback'](_0x5ea6f6=>{if('attribute'!=_0x5ea6f6['type'])return;const {data:_0x385f2a}=_0x5ea6f6;if(!_0x385f2a||'alt'!=_0x385f2a['key'])return;const _0x24c028=_0x385f2a['newValue'];return _0x24c028?{'type':'format','content':o(_0xb797a3,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x24c028+'\x22')}:{'type':'format','content':o(_0xb797a3,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x374391=this['editor'],_0x186bbf=_0x374391['locale'];_0x374391['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1fcbe5=>{if('formatBlock'!=_0x1fcbe5['type']&&'formatInline'!=_0x1fcbe5['type'])return;const {data:_0x2bb04f}=_0x1fcbe5;if(_0x2bb04f){if('imageTextAlternative'==_0x2bb04f['commandName']){const _0x308eb6=_0x2bb04f['commandParams'][0x0]['newValue'];return _0x308eb6?{'type':'format','content':o(_0x186bbf,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x308eb6+'\x22')}:{'type':'format','content':o(_0x186bbf,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2bb04f['commandName']){const _0x455cb0=_0x2bb04f['commandParams'][0x0]['width'];return _0x455cb0?{'type':'format','content':o(_0x186bbf,'*Set\x20image\x20width:*\x20%0',_0x455cb0)}:{'type':'format','content':o(_0x186bbf,'*Reset\x20image\x20width*')};}}});}}class st extends _0x454bf4{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1fdd17=this['editor']['locale'],_0x43b88a=this['editor']['plugins']['get']('TrackChangesEditing');_0x43b88a['enableDefaultAttributesIntegration']('replaceImageSource'),_0x43b88a['registerBlockAttribute']('src'),_0x43b88a['descriptionFactory']['registerDescriptionCallback'](_0x427eb=>{if('attribute'!=_0x427eb['type'])return;const {data:_0x2cdd06}=_0x427eb;return _0x2cdd06&&'src'==_0x2cdd06['key']?_0x2cdd06['newValue']&&_0x2cdd06['oldValue']?{'type':'format','content':o(_0x1fdd17,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x498036=this['editor']['plugins']['get']('TrackChangesEditing');_0x498036['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x498036['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x498036['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x498036['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2200ae=this['editor'],_0x157718=_0x2200ae['locale'];_0x2200ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a0c83=>{if('formatBlock'!=_0x1a0c83['type']&&'formatInline'!=_0x1a0c83['type'])return;const {data:_0x27cae4}=_0x1a0c83;if(!_0x27cae4||'replaceImageSource'!=_0x27cae4['commandName'])return;return{'type':'format','content':o(_0x157718,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x454bf4{['afterInit'](){const _0x57b0ea=this['editor'];if(!_0x57b0ea['plugins']['has']('ImageStyleEditing'))return;const _0x3a4573=_0x57b0ea['plugins']['get']('TrackChangesEditing'),_0x5034a0=_0x57b0ea['plugins']['get']('ImageUtils'),_0x33b6d6={};_0x3a4573['enableCommand']('imageStyle',(_0x50aa6b,_0xfe312d)=>{const _0x3961c6=_0x57b0ea['plugins']['get']('Users')['me'],_0x17a47b=_0x57b0ea['commands']['get']('imageStyle');let _0x221afa=_0x5034a0['getClosestSelectedImageElement'](_0x57b0ea['model']['document']['selection']),_0x4f859a=_0x57b0ea['model']['createRangeOn'](_0x221afa),_0x5dc229=_0x17a47b['value'];if(_0x5dc229==_0xfe312d['value'])return;const _0x320f3e={'commandName':'imageStyle','commandParams':[_0xfe312d],'formatGroupId':_0x278a82()};_0x57b0ea['model']['change'](()=>{if(_0x3a4573['getSuggestions']()['filter'](_0x195ec8=>_0x195ec8['isInContent']&&_0x3961c6==_0x195ec8['author']&&('formatBlock'==_0x195ec8['type']||'formatInline'==_0x195ec8['type'])&&('imageStylePreApply'==_0x195ec8['subType']||'imageStylePostApply'==_0x195ec8['subType'])&&_0x195ec8['getFirstRange']()['isEqual'](_0x4f859a))['forEach'](_0x46bd93=>_0x3a4573['discardSuggestion'](_0x46bd93['head'])),_0x221afa=_0x5034a0['getClosestSelectedImageElement'](_0x57b0ea['model']['document']['selection']),_0x4f859a=_0x57b0ea['model']['createRangeOn'](_0x221afa),_0x17a47b['refresh'](),_0x57b0ea['commands']['get']('imageTypeInline')['refresh'](),_0x57b0ea['commands']['get']('imageTypeBlock')['refresh'](),_0x5dc229=_0x17a47b['value'],_0x5dc229!=_0xfe312d['value'])return _0x5034a0['isInlineImage'](_0x221afa)&&_0x17a47b['shouldConvertImageType'](_0xfe312d['value'],_0x221afa)?(_0x50aa6b({..._0xfe312d,'setImageSizes':!0x1}),_0x221afa=_0x5034a0['getClosestSelectedImageElement'](_0x57b0ea['model']['document']['selection']),void _0x3a4573['markBlockFormat'](_0x221afa,{..._0x320f3e,'commandReversedParams':[{'value':_0x5dc229||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5034a0['isBlockImage'](_0x221afa)?_0x3a4573['markBlockFormat'](_0x221afa,_0x320f3e,[],'imageStylePostApply'):_0x3a4573['markInlineFormat'](_0x4f859a,_0x320f3e,'imageStylePostApply'));});});for(const _0x2bc547 of _0x57b0ea['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x33b6d6[_0x2bc547['name']]=_0x2bc547['title']['toLowerCase']();_0x3a4573['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3a4573['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3a4573['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3a4573['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4694eb])=>{_0x5034a0['setImageNaturalSizeAttributes'](_0x4694eb['getContainedElement']());}),_0x3a4573['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1f5a18,_0x512a74)=>{_0x3a4573['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1f5a18,{'commandName':_0x512a74['commandName'],'commandParams':_0x512a74['commandReversedParams']});}),_0x3a4573['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x486620,_0x1f9424){if(_0x1beb27(_0x486620,_0x1f9424))return[_0x486620,_0x1f9424];if(_0x1beb27(_0x1f9424,_0x486620))return[_0x1f9424,_0x486620];return null;});const _0x1ef85f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1beb27(_0x5ce363,_0xf9cfad){const _0x119905=_0x1ef85f['findIndex'](({type:_0x50c122,subType:_0x47b4d5})=>_0x5ce363['type']==_0x50c122&&_0x5ce363['subType']==_0x47b4d5),_0x29e66c=_0x1ef85f['findIndex'](({type:_0x561510,subType:_0x2f77eb})=>_0xf9cfad['type']==_0x561510&&_0xf9cfad['subType']==_0x2f77eb);if(_0x119905<0x0||_0x29e66c<0x0)return!0x1;const _0x2c0f57=_0x5ce363['getFirstRange'](),_0x2d4774=_0xf9cfad['getFirstRange']();if((0x0==_0x119905||0x1==_0x119905)&&0x2==_0x29e66c&&_0x2c0f57['isIntersecting'](_0x2d4774))return!0x0;if(0x2==_0x119905&&0x3==_0x29e66c){const _0x5df955=_0x3a4573['_findSuggestions'](_0x2c0f57,'insertion')['filter'](({suggestion:_0x541b7a,meta:_0x394148})=>_0x394148['isOwn']&&'convertInlineImageToBlock'==_0x541b7a['subType']);if(_0x5df955['length']>0x1&&_0x2d4774['end']['isEqual'](_0x2c0f57['start']))return!0x0;if(0x1==_0x5df955['length']&&(_0x2c0f57['start']['isEqual'](_0x2d4774['end'])||_0x2c0f57['end']['isEqual'](_0x2d4774['start'])))return!0x0;}if(0x3==_0x119905&&0x3==_0x29e66c&&_0x2c0f57['start']['isBefore'](_0x2d4774['start'])){const _0x4569fa=_0x2c0f57['end']['nodeAfter'],_0x2cddda=_0x2d4774['start']['nodeBefore'];return _0x5034a0['isBlockImage'](_0x4569fa)&&_0x4569fa===_0x2cddda;}return!0x1;}_0x57b0ea['model']['document']['registerPostFixer'](()=>{let _0x20b799=!0x1;const _0xb29adc=Array['from'](_0x57b0ea['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x16f109,data:_0x4e248f}of _0xb29adc){const {group:_0x27eb05,type:_0x2ec399,subType:_0x23b2be,id:_0x240ea6}=_0x3a4573['_splitMarkerName'](_0x16f109);if('suggestion'==_0x27eb05&&_0x3a4573['hasSuggestion'](_0x240ea6)){if('formatBlock'==_0x2ec399&&('imageStylePreApply'==_0x23b2be||'imageStylePostApply'==_0x23b2be)){const _0x4d8868=_0x3a4573['getSuggestion'](_0x240ea6);if(_0x4e248f['newRange']){const _0xcc1c90=_0x4d8868['getFirstRange']()['getContainedElement']();if(_0x5034a0['isBlockImage'](_0xcc1c90))continue;_0x3a4573['discardSuggestion'](_0x4d8868),_0x20b799=!0x0;}}if('insertion'==_0x2ec399&&'imageCaption'==_0x23b2be&&!_0x4e248f['newRange']){const _0x5b263b=_0x3a4573['getSuggestion'](_0x240ea6);_0x5b263b['next']&&_0x5b263b['next']['isInContent']&&(_0x3a4573['discardSuggestion'](_0x5b263b['next']),_0x20b799=!0x0);}}}return _0x20b799;}),this['_registerLegacyDescription'](_0x33b6d6);}['_registerLegacyDescription'](_0x41fad1){const _0xd6ec63=this['editor'],_0x5057bf=_0xd6ec63['locale'];_0xd6ec63['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b4348=>{if('formatBlock'!=_0x1b4348['type']&&'formatInline'!=_0x1b4348['type'])return;const {data:_0x20112e}=_0x1b4348;if(!_0x20112e||'imageStyle'!=_0x20112e['commandName'])return;const _0x192d0e=_0x20112e['commandParams'][0x0]['value'];return _0x37f1ae('side'===_0x192d0e?o(_0x5057bf,'FORMAT_SIDE_IMAGE'):_0x41fad1[_0x192d0e]||_0x192d0e);function _0x37f1ae(_0x4d156e){return{'type':'format','content':o(_0x5057bf,'*Format:*\x20%0',_0x4d156e)};}});}}class ot extends _0x454bf4{['afterInit'](){const _0x556e8f=this['editor'],_0x455cdb=_0x556e8f['commands']['get']('importWord'),_0x178f8e=_0x556e8f['commands']['get']('trackChanges');_0x455cdb&&(_0x455cdb['on']('execute',(_0x2f7045,[,_0x2ccb72])=>{this['_trackChangesValueDuringImport']=_0x178f8e['value'],_0x2ccb72['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x455cdb,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x455cdb,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x178f8e['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x556e8f['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3c8473,_0x109889){const {suggestions:_0x441da2}=_0x109889,_0x3c80a3=this['editor']['commands']['get']('trackChanges'),_0x6d0399=_0x3c80a3['value'];this['_trackChangesValueDuringImport']!==_0x6d0399&&(_0x3c80a3['execute'](),this['_trackChangesExecuted']=!0x0),_0x441da2&&_0x441da2['forEach'](({id:_0x4a6ea8,type:_0x2bc7a9,author:_0x52d77a,created_at:_0x249d89})=>{const _0x17b866={'id':_0x4a6ea8,'type':_0x2bc7a9,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x52d77a,'createdAt':_0x249d89?new Date(_0x249d89):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x17b866);});}constructor(_0x1029c8){super(_0x1029c8),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}}class rt extends _0x454bf4{['afterInit'](){const _0x13f3c0=this['editor'],_0x55055c=_0x13f3c0['plugins']['get']('TrackChangesEditing');if(_0x13f3c0['plugins']['has']('IndentEditing')&&(_0x55055c['enableCommand']('indent'),_0x55055c['enableCommand']('outdent')),_0x13f3c0['plugins']['has']('IndentBlock')){for(const _0x39f96b of['indentBlock','outdentBlock'])_0x55055c['enableDefaultAttributesIntegration'](_0x39f96b);}const _0x253157=_0x13f3c0['locale'];_0x55055c['registerBlockAttribute']('blockIndent'),_0x55055c['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x253157,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56351a=this['editor'],_0x36720b=_0x56351a['locale'],_0x2b22f9=_0x56351a['plugins']['get']('TrackChangesEditing');_0x2b22f9['descriptionFactory']['registerDescriptionCallback'](_0x52e099=>{if('formatBlock'!=_0x52e099['type'])return;const {data:_0xcf45e7}=_0x52e099;if(!_0xcf45e7)return;if('indentBlock'!=_0xcf45e7['commandName']&&'outdentBlock'!=_0xcf45e7['commandName'])return;const _0x116f0d=_0x52e099['getItems']()[0x0],_0x7bd26e=_0x2b22f9['descriptionFactory']['getItemLabel'](_0x116f0d);return'indentBlock'==_0xcf45e7['commandName']?{'type':'format','content':o(_0x36720b,'*Indent:*\x20%0',_0x7bd26e)}:'outdentBlock'==_0xcf45e7['commandName']?{'type':'format','content':o(_0x36720b,'*Outdent:*\x20%0',_0x7bd26e)}:void 0x0;});}}class at extends _0x454bf4{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x454bf4{['afterInit'](){const _0x3433ae=this['editor'];if(!_0x3433ae['plugins']['has']('LinkEditing'))return;const _0x245d70=_0x3433ae['plugins']['get']('TrackChangesEditing'),_0x37e2f6=_0x3433ae['commands']['get']('link');_0x245d70['enableDefaultAttributesIntegration']('link'),_0x245d70['enableDefaultAttributesIntegration']('unlink'),_0x245d70['registerInlineAttribute']('linkHref');for(const _0x3a709c of _0x37e2f6['manualDecorators'])_0x245d70['registerInlineAttribute'](_0x3a709c['id']),_0x245d70['descriptionFactory']['registerAttributeLabel'](_0x3a709c['id'],'link\x20('+_0x3a709c['label']['toLowerCase']()+')');_0x245d70['descriptionFactory']['registerDescriptionCallback'](_0x5c4c58=>{if('attribute'!=_0x5c4c58['type'])return;const {data:_0x12678d}=_0x5c4c58;if(!_0x12678d||'linkHref'!=_0x12678d['key'])return;const _0x5274a0=_0x12678d['newValue'],_0x3a7fd0=_0x3433ae['locale'];return{'type':'format','content':null==_0x5274a0?o(_0x3a7fd0,'*Remove\x20link*'):o(_0x3a7fd0,'*Set\x20link:*\x20%0','\x22'+_0x5274a0+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38a81d=this['editor'],_0xe2811d=_0x38a81d['locale'];_0x38a81d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1af5f6=>{if('formatInline'!=_0x1af5f6['type'])return;const {data:_0x259b92}=_0x1af5f6;if(_0x259b92){if('link'==_0x259b92['commandName']){const _0x5c24e0=_0x259b92['commandParams'][0x0];return{'type':'format','content':o(_0xe2811d,'*Set\x20link:*\x20%0','\x22'+_0x5c24e0+'\x22')};}return'unlink'==_0x259b92['commandName']?{'type':'format','content':o(_0xe2811d,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x454bf4{['afterInit'](){const _0x22faf5=this['editor'],_0x3fb691=_0x22faf5['locale'];if(!_0x22faf5['plugins']['has']('LegacyListEditing'))return;const _0x3ee729=_0x22faf5['plugins']['get']('TrackChangesEditing'),_0x3a9642=_0x22faf5['plugins']['has']('LegacyTodoListEditing');function _0x52df53(_0x4f41aa){return()=>{const _0x8c3f53=_0x22faf5['model']['document']['selection'],_0x42b5f4=_0x22faf5['commands']['get'](_0x4f41aa);if(_0x42b5f4['value'])return void _0x22faf5['execute']('paragraph',{});const _0x3581c8=_0x4f41aa['slice'](0x0,-0x4),_0x3847b8=function(_0x572cab,_0x337222,_0x3eb9c8){let _0x3a2b5d=Array['from'](_0x572cab)['filter'](_0x42bf7b=>function(_0x2d8caa,_0x4e5b28){return _0x4e5b28['checkChild'](_0x2d8caa['parent'],'listItem')&&!_0x4e5b28['isObject'](_0x2d8caa);}(_0x42bf7b,_0x3eb9c8));_0x3a2b5d=_0x3a2b5d['filter'](_0x191c9d=>!_0x191c9d['is']('element','listItem')||_0x191c9d['getAttribute']('listType')!=_0x337222);const _0x5c4722=new Set();for(const _0x2c8fd7 of _0x3a2b5d)_0x2c8fd7['is']('element','listItem')?_0x5c4722['add'](me(_0x2c8fd7)):_0x5c4722['add'](_0x2c8fd7);return Array['from'](_0x5c4722);}(_0x8c3f53['getSelectedBlocks'](),_0x3581c8,_0x22faf5['model']['schema']);_0x22faf5['model']['change'](()=>{for(const _0x1ffbcd of _0x3847b8)_0x3ee729['markBlockFormat'](_0x1ffbcd,{'commandName':_0x4f41aa,'commandParams':[{'forceValue':!_0x42b5f4['value']}],'formatGroupId':'blockName'},fe(_0x1ffbcd));});};}function _0x2d6efc(_0x54a5eb){return()=>{const _0x232b28=function(_0xc90fd8){let _0x4d0d39=Array['from'](_0xc90fd8);const _0x357851=_0x4d0d39['findIndex'](_0x4d6484=>'listItem'!=_0x4d6484['name']);return _0x357851>-0x1&&(_0x4d0d39=_0x4d0d39['slice'](0x0,_0x357851)),_0x4d0d39;}(_0x22faf5['model']['document']['selection']['getSelectedBlocks']()),_0x252040=_0x22faf5['model']['createRange'](_0x22faf5['model']['createPositionAt'](_0x232b28[0x0],'before'),_0x22faf5['model']['createPositionAt'](_0x232b28[_0x232b28['length']-0x1],'end'));_0x22faf5['model']['change'](()=>{_0x3ee729['markBlockFormat'](_0x252040,{'commandName':_0x54a5eb,'commandParams':[],'formatGroupId':'listIndent'},function(_0x99151f){const _0x5c8cac=new Set();for(const _0xa52bf6 of _0x99151f){let _0x32fb01=_0xa52bf6['nextSibling'];for(;_0x32fb01&&_0x32fb01['getAttribute']('listIndent')>_0xa52bf6['getAttribute']('listIndent');)_0x5c8cac['add'](_0x32fb01),_0x32fb01=_0x32fb01['nextSibling'];}return Array['from'](_0x5c8cac);}(_0x232b28));});};}_0x3ee729['enableCommand']('numberedList',_0x52df53('numberedList')),_0x3ee729['enableCommand']('bulletedList',_0x52df53('bulletedList')),_0x3a9642&&_0x3ee729['enableCommand']('todoList',_0x52df53('todoList')),_0x3ee729['enableCommand']('indentList',_0x2d6efc('indentList')),_0x3ee729['enableCommand']('outdentList',_0x2d6efc('outdentList')),_0x3a9642&&_0x3ee729['enableCommand']('checkTodoList',()=>{const _0x44aa76=_0x22faf5['commands']['get']('checkTodoList'),_0xd2b09=Array['from'](_0x44aa76['_selectedElements']);_0xd2b09['filter'](_0x33ff0c=>_0x33ff0c['getAttribute']('todoListChecked')!=_0x44aa76['value']),_0x22faf5['model']['change'](()=>{for(const _0x120a3f of _0xd2b09)_0x3ee729['markBlockFormat'](_0x120a3f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x44aa76['value']}]});});}),_0x3ee729['descriptionFactory']['registerElementLabel']('listItem',_0x4fccd7=>o(_0x3fb691,'ELEMENT_LIST_ITEM',_0x4fccd7)),_0x3ee729['descriptionFactory']['registerDescriptionCallback'](_0xa2d71d=>{if('formatBlock'!=_0xa2d71d['type']&&'formatInline'!=_0xa2d71d['type'])return;const {data:_0x579583}=_0xa2d71d;if(_0x579583){if('numberedList'==_0x579583['commandName']||'bulletedList'==_0x579583['commandName']||'todoList'==_0x579583['commandName'])switch(_0x579583['commandName']['replace']('List','')){case'bulleted':return _0x657d48(o(_0x3fb691,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x657d48(o(_0x3fb691,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x657d48(o(_0x3fb691,'ELEMENT_TODO_LIST'));}if('indentList'==_0x579583['commandName'])return{'type':'format','content':o(_0x3fb691,'*Indent:*\x20%0',o(_0x3fb691,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x579583['commandName'])return{'type':'format','content':o(_0x3fb691,'*Outdent:*\x20%0',o(_0x3fb691,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x579583['commandName'])return _0x579583['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3fb691,'*Check\x20item*')}:{'type':'format','content':o(_0x3fb691,'*Uncheck\x20item*')};}function _0x657d48(_0x5d132e){return{'type':'format','content':o(_0x3fb691,'*Change\x20to:*\x20%0',_0x5d132e)};}});}}function me(_0x3b30e0){const _0xc935e3=_0x3b30e0['getAttribute']('listIndent');if(0x0==_0xc935e3)return _0x3b30e0;let _0x5f155c=_0x3b30e0;for(;_0x3b30e0['previousSibling']&&_0x3b30e0['previousSibling']['is']('element','listItem');){const _0x4c281c=_0x3b30e0['previousSibling']['getAttribute']('listIndent');if(_0x4c281c==_0xc935e3)_0x5f155c=_0x3b30e0['previousSibling'];else{if(_0x4c281c<_0xc935e3)break;}_0x3b30e0=_0x3b30e0['previousSibling'];}return _0x5f155c;}function fe(_0x4d1529){const _0x1c347a=[];if(_0x4d1529['is']('element','listItem')&&_0x4d1529['getAttribute']('listIndent')>0x0){let _0x3c22e8=_0x4d1529['nextSibling'];for(;_0x3c22e8&&'listItem'==_0x3c22e8['name']&&_0x3c22e8['getAttribute']('listIndent')==_0x4d1529['getAttribute']('listIndent');)_0x1c347a['push'](_0x3c22e8),_0x3c22e8=_0x3c22e8['nextSibling'];}return _0x1c347a;}class K extends _0x454bf4{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x32e3bc=this['editor']['config']['get']('list.properties'),_0x5c82e8=this['editor']['plugins']['get']('TrackChangesEditing');_0x32e3bc['styles']&&_0x5c82e8['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x32e3bc['reversed']&&_0x5c82e8['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x32e3bc['startIndex']&&_0x5c82e8['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5c82e8['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xb7db40,_0x879aee={}){const _0x264ced=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f75c7=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x264ced['markMultiRangeBlockFormat'](_0x4f75c7,{'commandName':'listStyle','commandParams':[{'type':_0x879aee['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4f24f1,_0x1113d1={}){const _0xed2dd5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x32b86d=this['_getSuggestionBlocks'](_0x4ea791=>_0x4ea791['is']('element','listItem')&&'numbered'===_0x4ea791['getAttribute']('listType'));if(_0x32b86d['length']<0x1)return;const _0x4cc0ab=_0x32b86d['map'](_0x9c50b4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x9c50b4,'before'),this['editor']['model']['createPositionAt'](_0x9c50b4,0x0)));this['editor']['model']['change'](()=>{_0xed2dd5['markMultiRangeBlockFormat'](_0x4cc0ab,{'commandName':'listReversed','commandParams':[{'reversed':_0x1113d1['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2e5d10,_0x2540af={}){const _0x136bca=this['editor']['plugins']['get']('TrackChangesEditing'),_0xce510a=this['_getSuggestionBlocks'](_0x1d6e2b=>_0x1d6e2b['is']('element','listItem')&&'numbered'===_0x1d6e2b['getAttribute']('listType'));if(_0xce510a['length']<0x1)return;const _0x404b03=_0xce510a['map'](_0x12d505=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x12d505,'before'),this['editor']['model']['createPositionAt'](_0x12d505,0x0)));this['editor']['model']['change'](()=>{_0x136bca['markMultiRangeBlockFormat'](_0x404b03,{'commandName':'listStart','commandParams':[{'startIndex':_0x2540af['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xb5b77){if('formatBlock'!=_0xb5b77['type']&&'formatInline'!=_0xb5b77['type'])return;const _0x372761=this['editor']['locale'],{data:_0x4e4122}=_0xb5b77;if(!_0x4e4122)return;let _0xaa6875,_0x55e3fa;switch(_0x4e4122['commandName']){case'listStyle':_0xaa6875='*Change\x20to:*\x20%0',_0x55e3fa={'type':'format','content':o(_0x372761,_0xaa6875,o(_0x372761,this['_getTranslationKeyForListStyle'](_0x4e4122['commandParams'][0x0]['type'])))};break;case'listReversed':_0xaa6875=_0x4e4122['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x55e3fa={'type':'format','content':o(_0x372761,_0xaa6875)};break;case'listStart':_0xaa6875='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x55e3fa={'type':'format','content':o(_0x372761,_0xaa6875,_0x4e4122['commandParams'][0x0]['startIndex'])};}return _0x55e3fa;}['_getSuggestionBlocksForListStyle'](){var _0x4438fa,_0x2c3416,_0x5e434a,_0x44276f;const _0x24dab8=this['editor']['plugins']['get']('LegacyListUtils');let _0xdab60f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return(null===(_0x4438fa=_0xdab60f[0x0])||void 0x0===_0x4438fa?void 0x0:_0x4438fa['is']('element','listItem'))&&_0xdab60f['unshift'](..._0x24dab8['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),(null===(_0x2c3416=_0xdab60f[_0xdab60f['length']-0x1])||void 0x0===_0x2c3416?void 0x0:_0x2c3416['is']('element','listItem'))&&_0xdab60f['push'](..._0x24dab8['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xdab60f=[...new Set(_0xdab60f)],(null===(_0x44276f=null===(_0x5e434a=this['editor']['model']['document']['selection']['getFirstPosition']())||void 0x0===_0x5e434a?void 0x0:_0x5e434a['parent'])||void 0x0===_0x44276f?void 0x0:_0x44276f['is']('element','listItem'))&&(_0xdab60f=_0xdab60f['filter'](_0x5e4265=>_0x5e4265['is']('element','listItem'))),_0xdab60f;}['_getSuggestionBlocks'](_0x2ed110){const _0xbb29bd=this['editor']['plugins']['get']('LegacyListUtils');let _0xac25b5=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2ed110)['map'](_0x5888cb=>{const _0x2d6f6c=this['editor']['model']['createPositionAt'](_0x5888cb,0x0);return[..._0xbb29bd['getSiblingNodes'](_0x2d6f6c,'backward'),..._0xbb29bd['getSiblingNodes'](_0x2d6f6c,'forward')];})['flat']();return _0xac25b5=[...new Set(_0xac25b5)],_0xac25b5;}['_getTranslationKeyForListStyle'](_0x2655f5){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2655f5)||'default')['toUpperCase']()+'_LIST_'+_0x2655f5['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x454bf4{['afterInit'](){const _0xeb9346=this['editor'];if(!_0xeb9346['plugins']['has']('MediaEmbedEditing'))return;const _0x2c577d=_0xeb9346['plugins']['get']('TrackChangesEditing'),_0x3f798d=_0xeb9346['locale'];_0x2c577d['enableCommand']('mediaEmbed'),_0x2c577d['descriptionFactory']['registerElementLabel']('media',_0x34d7d5=>o(_0x3f798d,'ELEMENT_MEDIA',_0x34d7d5)),_0xeb9346['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4f719d,{writer:_0x5dcff6,options:_0x5a2397})=>{if(_0x5a2397['showSuggestionHighlights'])return _0x5dcff6['createEmptyElement']('div');},'converterPriority':'high'}),_0xeb9346['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3eeef7,_0x46cc77,_0x3f208a)=>{_0x3f208a['options']['showSuggestionHighlights']&&_0x3eeef7['stop']();},{'priority':'high'});}}class gt extends _0x454bf4{['afterInit'](){const _0x820fe8=this['editor'];_0x820fe8['plugins']['has']('MentionEditing')&&_0x820fe8['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x454bf4{['afterInit'](){const _0x423406=this['editor'],_0x45327f=_0x423406['plugins']['get']('TrackChangesEditing');_0x423406['plugins']['has']('MultiLevelList')&&(_0x45327f['enableDefaultAttributesIntegration']('multiLevelList'),_0x45327f['registerBlockAttribute']('listMarkerStyle'),_0x45327f['descriptionFactory']['registerDescriptionCallback'](_0x46271a=>this['handleDescriptions'](_0x46271a)));}['handleDescriptions'](_0x5925af){const _0x8d614a=this['editor']['locale'],{data:_0x4bc358}=_0x5925af,_0x6ae089={'type':'format','content':''};if(_0x4bc358&&'listMarkerStyle'==_0x4bc358['key']){if(!_0x4bc358['oldValue'])return{'type':'format','content':o(_0x8d614a,'*Set\x20format:*\x20%0',o(_0x8d614a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4bc358['newValue']+')'};if(!_0x4bc358['newValue']){let _0x382575=_0x5925af['head'];for(;_0x382575;){if(_0x382575['data']&&'listType'==_0x382575['data']['key']&&_0x382575['data']['newValue'])return _0x6ae089;_0x382575=_0x382575['next'];}return{'type':'format','content':o(_0x8d614a,'*Remove\x20format:*\x20%0',o(_0x8d614a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4bc358['oldValue']+')'};}}}}class mt extends _0x454bf4{['afterInit'](){const _0x2d192d=this['editor'];if(!_0x2d192d['plugins']['has']('PageBreakEditing'))return;_0x2d192d['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x8c680c=_0x2d192d['plugins']['get']('TrackChangesEditing'),_0x677aa1=_0x2d192d['locale'];_0x8c680c['descriptionFactory']['registerElementLabel']('pageBreak',_0xe7213b=>o(_0x677aa1,'ELEMENT_PAGE_BREAK',_0xe7213b));}}class dt extends _0x454bf4{['afterInit'](){const _0x2b6ab3=this['editor'];if(!_0x2b6ab3['plugins']['has']('Paragraph'))return;const _0x18780c=_0x2b6ab3['locale'],_0x28fa0e=_0x2b6ab3['plugins']['get']('TrackChangesEditing');_0x28fa0e['descriptionFactory']['registerElementLabel']('paragraph',_0x2c201c=>o(_0x18780c,'ELEMENT_PARAGRAPH',_0x2c201c)),_0x28fa0e['enableDefaultAttributesIntegration']('paragraph'),_0x28fa0e['enableCommand']('insertParagraph'),_0x2b6ab3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2b6ab3),{'priority':'highest'}),_0x2b6ab3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3c8e9b,_0x3e72f5,_0x33cdb8)=>{_0x33cdb8['options']['showSuggestionHighlights']&&nr(_0x2b6ab3,{'showActiveMarker':!0x1})(_0x3c8e9b,_0x3e72f5,_0x33cdb8);},{'priority':'highest'});const _0x399ae3=_0x28fa0e['descriptionFactory'];_0x399ae3['registerDescriptionCallback'](_0x20607b=>{if('insertion'!==_0x20607b['type'])return;const {start:_0x140fba,end:_0x5e6851}=_0x20607b['getFirstRange']();if(!_0x140fba['isTouching'](_0x5e6851)||!_0x140fba['nodeAfter'])return;const _0x1c8236=_0x2b6ab3['model']['schema'],_0x2edcad=_0x140fba['nodeAfter'];return _0x1c8236['isBlock'](_0x2edcad)&&!_0x1c8236['isLimit'](_0x2edcad)&&_0x1c8236['checkChild'](_0x2edcad,'$text')?{'type':'insertion','content':o(_0x18780c,'*Insert:*\x20%0',_0x399ae3['getItemLabel'](_0x2edcad,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x446e79=this['editor'],_0x23fb21=_0x446e79['locale'];_0x446e79['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa30747=>{if('formatBlock'!=_0xa30747['type'])return;const {data:_0x231f66}=_0xa30747;return _0x231f66&&'paragraph'==_0x231f66['commandName']?{'type':'format','content':o(_0x23fb21,'*Change\x20to:*\x20%0',o(_0x23fb21,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x4374c5,{showActiveMarker:_0x3e0b3c=!0x0}={}){return(_0x2d17e2,_0x407ffa,_0x308c58)=>{const _0x27beec=_0x4374c5['plugins']['get']('TrackChangesEditing'),_0x1b46b7=_0x407ffa['markerRange']['start'],_0x36fcce=_0x407ffa['markerRange']['end'],_0x4ea21d=_0x4374c5['model']['schema'];if(!_0x1b46b7['isTouching'](_0x36fcce)||!_0x1b46b7['nodeAfter'])return;const _0x344b8e=_0x1b46b7['nodeAfter'];if(_0x4ea21d['isBlock'](_0x344b8e)&&!_0x4ea21d['isLimit'](_0x344b8e)&&_0x4ea21d['checkChild'](_0x344b8e,'$text')){if(!_0x308c58['consumable']['consume'](_0x407ffa['markerRange'],_0x2d17e2['name']))return;const _0x31414f=_0x308c58['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x30e0b0=_0x308c58['mapper']['toViewPosition'](_0x36fcce);_0x3e0b3c&&_0x27beec['activeMarkers']['includes'](_0x407ffa['markerName'])&&_0x308c58['writer']['addClass']('ck-suggestion-marker--active',_0x31414f),_0x308c58['writer']['insert'](_0x30e0b0,_0x31414f),_0x308c58['mapper']['bindElementToMarker'](_0x31414f,_0x407ffa['markerName']);}};}class pt extends _0x454bf4{['afterInit'](){const _0x95ac47=this['editor'];if(!_0x95ac47['plugins']['has']('RemoveFormatEditing'))return;_0x95ac47['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41a5f6=this['editor'];_0x41a5f6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1828bd=>{if('formatBlock'!=_0x1828bd['type']&&'formatInline'!=_0x1828bd['type'])return;const {data:_0x1e24bb}=_0x1828bd;return _0x1e24bb&&'removeFormat'==_0x1e24bb['commandName']?{'type':'format','content':o(_0x41a5f6['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x454bf4{['afterInit'](){const _0x57a35b=this['editor'];if(!_0x57a35b['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2c6f70=_0x57a35b['plugins']['get']('TrackChangesEditing');_0x2c6f70['enableCommand']('goToPreviousRestrictedEditingException'),_0x2c6f70['enableCommand']('goToNextRestrictedEditingException');const _0x1aa1e4=_0x57a35b['plugins']['get']('RestrictedEditingModeEditing');_0x1aa1e4['enableCommand']('trackChanges'),_0x1aa1e4['enableCommand']('acceptSuggestion'),_0x1aa1e4['enableCommand']('discardSuggestion'),_0x1aa1e4['enableCommand']('acceptAllSuggestions'),_0x1aa1e4['enableCommand']('discardAllSuggestions'),_0x1aa1e4['enableCommand']('acceptSelectedSuggestions'),_0x1aa1e4['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x454bf4{static get['requires'](){return[_0x202832];}['init'](){const _0x4dc3aa=this['editor'],_0x5676b5=_0x4dc3aa['plugins']['get']('TrackChangesEditing');_0x5676b5['enableCommand']('shiftEnter'),_0x4dc3aa['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x4dc3aa),{'priority':'high'}),_0x4dc3aa['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x4dc3aa),{'priority':'high'}),_0x4dc3aa['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x229756,_0x452f67,_0x20d4e9)=>{_0x20d4e9['options']['showSuggestionHighlights']&&de(_0x4dc3aa,{'showActiveMarker':!0x1})(_0x229756,_0x452f67,_0x20d4e9);}),_0x5676b5['descriptionFactory']['registerElementLabel']('softBreak',_0x1b1b26=>o(_0x4dc3aa['locale'],'ELEMENT_LINE_BREAK',_0x1b1b26));}}function de(_0xc13cb,{showActiveMarker:_0x44745e=!0x0}={}){return(_0x2f49e3,_0x3c2d1c,_0x2f8d62)=>{const _0x3c42a9=_0xc13cb['plugins']['get']('TrackChangesEditing');if(!_0x2f8d62['consumable']['test'](_0x3c2d1c['markerRange'],_0x2f49e3['name']))return;const _0x536812=_0xc13cb['model'];for(const _0x4df6bb of _0x3c2d1c['markerRange']['getItems']()){if(!_0x4df6bb['is']('element','softBreak'))continue;const _0x260753='deletion'==_0x3c2d1c['markerName']['split'](':')[0x1]?'merge':'split',_0x8827c=_0x2f8d62['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x260753}),_0x220b74=_0x2f8d62['mapper']['toViewPosition'](_0x536812['createPositionBefore'](_0x4df6bb));_0x44745e&&_0x3c42a9['activeMarkers']['includes'](_0x3c2d1c['markerName'])&&_0x2f8d62['writer']['addClass']('ck-suggestion-marker--active',_0x8827c),_0x2f8d62['writer']['insert'](_0x220b74,_0x8827c),_0x2f8d62['mapper']['bindElementToMarker'](_0x8827c,_0x3c2d1c['markerName']);}};}class wt extends _0x454bf4{['afterInit'](){const _0x456d8e=this['editor'],_0x401df6=_0x456d8e['model'],_0x353d1e=_0x456d8e['locale'];if(!_0x456d8e['plugins']['has']('StandardEditingModeEditing'))return;const _0x21a047=_0x456d8e['plugins']['get']('TrackChangesEditing'),_0x3d232c='restrictedEditingException',_0x2821b1=_0x456d8e['commands']['get'](_0x3d232c);_0x21a047['enableCommand'](_0x3d232c,(_0x26d504,_0xa6629d={})=>{const _0xaec098=_0x401df6['document']['selection'];if(_0xaec098['isCollapsed'])return void _0x26d504(_0xa6629d);const _0x6a2fed=void 0x0!==_0xa6629d['forceValue']?_0xa6629d['forceValue']:!_0x2821b1['value'];_0x401df6['change'](()=>{const _0x265635=Array['from'](_0xaec098['getRanges']());for(const _0x42c40d of _0x265635){const _0xe34852=_0x6a2fed?[_0x42c40d]:io(_0x3d232c,_0x42c40d,_0x401df6);for(const _0xe29d3c of _0xe34852)_0x21a047['markInlineFormat'](_0xe29d3c,{'commandName':_0x3d232c,'commandParams':[{'forceValue':_0x6a2fed}]});}});}),_0x21a047['descriptionFactory']['registerDescriptionCallback'](_0x49b439=>{if('formatBlock'!=_0x49b439['type']&&'formatInline'!=_0x49b439['type'])return;const {data:_0x2484c7}=_0x49b439;return _0x2484c7&&_0x2484c7['commandName']==_0x3d232c?_0x2484c7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x353d1e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x353d1e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x454bf4{['afterInit'](){const _0x117f65=this['editor'];if(!_0x117f65['plugins']['has']('Style')||!_0x117f65['plugins']['has']('DataSchema'))return;const _0x1c3d4e=_0x117f65['plugins']['get']('TrackChangesEditing'),_0x1d4fd7=_0x117f65['locale'],_0x46e659=_0x117f65['config']['get']('style')||{},_0x31796d=_0x117f65['plugins']['get']('GeneralHtmlSupport'),_0x162eb8=_0x117f65['plugins']['get']('StyleUtils')['normalizeConfig'](_0x117f65['plugins']['get']('DataSchema'),_0x46e659['definitions']);_0x1c3d4e['enableDefaultAttributesIntegration']('style');const _0x3b2a1f=new Set();for(const _0x3c7134 of _0x162eb8['block']){const _0x23b1c5=_0x31796d['getGhsAttributeNameForElement'](_0x3c7134['element']);_0x3b2a1f['add'](_0x23b1c5);}const _0x2c7200=new Set();for(const _0x24c8e1 of _0x162eb8['inline']){const _0x3a1ead=_0x31796d['getGhsAttributeNameForElement'](_0x24c8e1['element']);_0x2c7200['add'](_0x3a1ead);for(const _0x5d0af3 of _0x24c8e1['ghsAttributes'])_0x2c7200['add'](_0x5d0af3);}for(const _0x3d6a4d of _0x3b2a1f)_0x1c3d4e['registerBlockAttribute'](_0x3d6a4d),_0x1c3d4e['descriptionFactory']['registerAttributeLabel'](_0x3d6a4d,o(_0x1d4fd7,'FORMAT_STYLE'));for(const _0xcf28a4 of _0x2c7200)_0x1c3d4e['registerInlineAttribute'](_0xcf28a4),_0x1c3d4e['descriptionFactory']['registerAttributeLabel'](_0xcf28a4,o(_0x1d4fd7,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25aff3=this['editor'],_0xf823f8=_0x25aff3['locale'];_0x25aff3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bd1ec=>{if('formatBlock'!=_0x2bd1ec['type']&&'formatInline'!=_0x2bd1ec['type'])return;const {data:_0x1dff1b}=_0x2bd1ec;return _0x1dff1b&&'style'===_0x1dff1b['commandName']?_0x1dff1b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xf823f8,'*Set\x20format:*\x20%0',_0x1dff1b['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xf823f8,'*Remove\x20format:*\x20%0',_0x1dff1b['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x454bf4{['afterInit'](){const _0x10ce02=this['editor'],_0x3e2bf7=_0x10ce02['model']['document']['selection'];if(!_0x10ce02['plugins']['has']('TableEditing'))return;const _0x36e39f=_0x10ce02['locale'],_0x521f03=_0x10ce02['plugins']['get']('TrackChangesEditing'),_0x164022=_0x10ce02['plugins']['get']('TableUtils');_0x521f03['descriptionFactory']['registerElementLabel']('table',_0x559283=>o(_0x36e39f,'ELEMENT_TABLE',_0x559283)),this['_setupColumnsRowsFixing'](),_0x521f03['enableCommand']('insertTable'),_0x521f03['enableCommand']('selectTableRow'),_0x521f03['enableCommand']('selectTableColumn');for(const _0x3c1913 of['insertTableRowAbove','insertTableRowBelow']){const _0xedf742=_0x10ce02['commands']['get'](_0x3c1913);_0x521f03['enableCommand'](_0x3c1913,_0x21a099=>{_0x10ce02['model']['change'](_0x5177a6=>{_0x21a099();const _0x256833='above'===_0xedf742['order'],_0xbed638=_0x164022['getSelectionAffectedTableCells'](_0x3e2bf7),_0x54c161=_0x164022['getRowIndexes'](_0xbed638),_0xa9800f=_0x256833?_0x54c161['first']-0x1:_0x54c161['last']+0x1,_0x2ce32a=_0xbed638[0x0]['findAncestor']('table'),_0x4fdc23=_0x164022['createTableWalker'](_0x2ce32a,{'startRow':_0xa9800f,'endRow':_0xa9800f}),_0x4b549b=Array['from'](_0x4fdc23)['map'](_0x476809=>_0x5177a6['createRangeOn'](_0x476809['cell']));_0x521f03['markMultiRangeInsertion'](_0x4b549b,'tableRow');});});}for(const _0x56a20d of['insertTableColumnLeft','insertTableColumnRight']){const _0x522cc3=_0x10ce02['commands']['get'](_0x56a20d);_0x521f03['enableCommand'](_0x56a20d,_0x4788d8=>{_0x10ce02['model']['change'](_0x44abec=>{_0x4788d8();const _0x3ef172='left'===_0x522cc3['order'],_0x3ce483=_0x164022['getSelectionAffectedTableCells'](_0x3e2bf7),_0x3b5d7b=_0x164022['getColumnIndexes'](_0x3ce483),_0x205667=_0x3ef172?_0x3b5d7b['first']-0x1:_0x3b5d7b['last']+0x1,_0x7db3d8=_0x3ce483[0x0]['findAncestor']('table'),_0x3def6d=_0x164022['createTableWalker'](_0x7db3d8,{'startRow':0x0,'column':_0x205667,'includeAllSlots':!0x1}),_0x4809c8=Array['from'](_0x3def6d)['map'](_0x4818e6=>_0x44abec['createRangeOn'](_0x4818e6['cell']));_0x521f03['markMultiRangeInsertion'](_0x4809c8,'tableColumn');});});}for(const _0x58de7a of['removeTableRow','removeTableColumn']){const _0x56bf72=_0x58de7a['substr'](0xb),_0x48e495=_0x56bf72['toLowerCase'](),_0x57343b=_0x48e495['substr'](0x0,0x3)+'span',_0x504521='table'+_0x56bf72,_0x57ce91='min'+_0x56bf72,_0x473496='max'+_0x56bf72;_0x521f03['enableCommand'](_0x58de7a,()=>{_0x10ce02['model']['change'](_0x1df4c1=>{const _0xd0f245=_0x164022['getSelectionAffectedTableCells'](_0x3e2bf7),_0x3572c6=_0xd0f245[0x0]['findAncestor']('table');let _0x564a76;if('removeTableRow'==_0x58de7a){const _0x1bd782=_0x164022['getRowIndexes'](_0xd0f245);_0x564a76={'startRow':_0x1bd782['first'],'endRow':_0x1bd782['last'],'includeAllSlots':!0x0};}else{const _0x10053c=_0x164022['getColumnIndexes'](_0xd0f245);_0x564a76={'startColumn':_0x10053c['first'],'endColumn':_0x10053c['last'],'includeAllSlots':!0x0};}const _0x6600f1=_0x164022['createTableWalker'](_0x3572c6,_0x564a76),_0x1f483a=Array['from'](_0x6600f1)['map'](({cell:_0x1ea8dc})=>_0x1ea8dc),_0x2bad9d=Ee(_0x1f483a['filter'](_0x4a8df0=>_0x4a8df0['hasAttribute'](_0x57343b))),_0x270ce3=Ee(_0x1f483a['filter'](_0x478592=>!_0x478592['hasAttribute'](_0x57343b)))['map'](_0x53f468=>_0x1df4c1['createRangeOn'](_0x53f468)),_0x4c9142=_0x521f03['markMultiRangeDeletion'](_0x270ce3,_0x504521);if(_0x4c9142&&('tableRow'==_0x4c9142['subType']||'tableColumn'==_0x4c9142['subType'])){const _0x539267=this['_getSuggestionCoords'](_0x4c9142);for(const _0x1b8fd0 of _0x2bad9d){const _0x32643b=_0x1df4c1['createRangeOn'](_0x1b8fd0),_0x2b13be=_0x164022['getCellLocation'](_0x1b8fd0),_0x439ec8=_0x1b8fd0['getAttribute'](_0x57343b)-0x1,_0x786e3a=_0x539267[_0x57ce91],_0x21c1f0=_0x539267[_0x473496];_0x786e3a<=_0x2b13be[_0x48e495]&&_0x2b13be[_0x48e495]+_0x439ec8<=_0x21c1f0&&_0x4c9142['addRange'](_0x32643b);}}});});}function _0x507ec1(_0x51e4af){const _0x28f9ac=Array['from'](_0x3e2bf7['getRanges']())['map'](_0x4a5b04=>_0xb3bd9b['fromRange'](_0x4a5b04));_0x10ce02['model']['change'](_0x11793c=>{const _0x50bb16=_0x11793c['batch'];_0x51e4af=_0x51e4af['filter'](_0xca42b7=>'$graveyard'!=_0xca42b7['root']['rootName']),_0x11793c['setSelection'](_0x51e4af),_0x10ce02['commands']['get']('removeTableRow')['refresh'](),_0x10ce02['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x10ce02['model']['enqueueChange'](()=>{_0x10ce02['model']['enqueueChange'](_0x50bb16,_0x340efe=>{const _0x435581=_0x28f9ac['filter'](_0x26ceed=>'$graveyard'!=_0x26ceed['root']['rootName']);_0x435581['length']>0x0&&_0x340efe['setSelection'](_0x435581);for(const _0x225d43 of _0x28f9ac)_0x225d43['detach']();});});});}function _0x3943e4(_0x1a082b){_0x10ce02['model']['change'](_0x1b81cd=>{const _0x263758=Array['from'](_0x3e2bf7['getRanges']())['map'](_0x1dbe0a=>_0xb3bd9b['fromRange'](_0x1dbe0a)),_0x122b00=[];for(const _0x37bc6d of _0x1a082b)for(const _0x3d5196 of _0x37bc6d['getItems']({'shallow':!0x0}))_0x122b00['push'](_0x3d5196);for(const _0x4d4083 of _0x122b00)'$graveyard'!=_0x4d4083['root']['rootName']&&(_0x1b81cd['setSelection'](_0x1b81cd['createPositionAt'](_0x4d4083,0x0)),_0x10ce02['commands']['get']('removeTableColumn')['refresh'](),_0x10ce02['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x20fce4=_0x263758['filter'](_0x2ed7c3=>'$graveyard'!=_0x2ed7c3['root']['rootName']);_0x20fce4['length']>0x0&&_0x1b81cd['setSelection'](_0x20fce4);for(const _0x571cd9 of _0x263758)_0x571cd9['detach']();});}function _0x2df4e6(_0x26bb99,_0x49eca5){return _0x49eca5['every'](_0x25942c=>_0x26bb99['some'](_0x4a7733=>_0x4a7733['end']['isEqual'](_0x25942c['start'])||_0x25942c['end']['isEqual'](_0x4a7733['start'])));}function _0x47687b(_0x1c2296,_0x5aa4dc){return _0x1c2296['some'](_0x3d5426=>_0x5aa4dc['some'](_0x39ec05=>_0x3d5426['end']['isTouching'](_0x39ec05['start'])));}_0x10ce02['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4f9172,_0x212cd7,_0x2cce63)=>{if(!_0x2cce63['options']['showSuggestionHighlights'])return;const _0x193057=_0x212cd7['item'];if(!_0x193057)return;const _0x435933=_0x2cce63['mapper']['toViewElement'](_0x193057);function _0x42ac6d(_0x40f8da){return Array['isArray'](_0x40f8da)?_0x40f8da:[_0x40f8da];}_0x435933&&'tableCell'===_0x193057['name']&&_0x2c8377(_0x435933,_0x2cce63['writer'],(_0x2cabed,_0xe22f04,_0x1c0789)=>_0x1c0789['addClass'](_0x42ac6d(_0xe22f04['classes']),_0x2cabed),(_0x7e2c97,_0xc445fd,_0x143045)=>_0x143045['removeClass'](_0x42ac6d(_0xc445fd['classes']),_0x7e2c97));},{'priority':'highest'}),_0x521f03['descriptionFactory']['registerDescriptionCallback'](_0x4dd8ec=>{if('insertion'!=_0x4dd8ec['type']&&'deletion'!=_0x4dd8ec['type'])return;const _0x20d508=_0x4dd8ec['getContainedElement']();if(null!=_0x20d508&&_0x20d508['is']('element','table')){if('insertion'==_0x4dd8ec['type']){const _0x13d277=_0x4dd8ec['getItems']()['filter'](_0x27929e=>_0x27929e['is']('$textProxy'))['map'](_0x56c3b5=>_0x56c3b5['data']);if(_0x13d277['length'])return{'type':'insertion','content':o(_0x36e39f,'*Insert:*\x20%0',o(_0x36e39f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x13d277['join']('\x20')+'\x22'))};}if('deletion'==_0x4dd8ec['type']){const _0xea56c4=_0x4dd8ec['getItems']()['filter'](_0x13a976=>_0x13a976['is']('$textProxy'))['map'](_0x298772=>_0x298772['data']);if(_0xea56c4['length'])return{'type':'deletion','content':o(_0x36e39f,'*Remove:*\x20%0',o(_0x36e39f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xea56c4['join']('\x20')+'\x22'))};}}}),_0x521f03['descriptionFactory']['registerDescriptionCallback'](_0x2b37f8=>{if('tableRow'==_0x2b37f8['subType']){const _0x12f896=_0x2b37f8['getItems']()['filter'](_0x4d1e7d=>_0x4d1e7d['is']('$textProxy'))['map'](_0x20669f=>_0x20669f['data']),_0x1c993f=this['_getSuggestionCoords'](_0x2b37f8),_0xca9210=_0x1c993f['maxRow']-_0x1c993f['minRow']+0x1;if('insertion'==_0x2b37f8['type'])return _0x12f896['length']?{'type':'insertion','content':o(_0x36e39f,'*Insert:*\x20%0',o(_0x36e39f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xca9210,'\x22'+_0x12f896['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x36e39f,'*Insert:*\x20%0',o(_0x36e39f,'ELEMENT_TABLE_ROW',_0xca9210))};if('deletion'==_0x2b37f8['type'])return _0x12f896['length']?{'type':'deletion','content':o(_0x36e39f,'*Remove:*\x20%0',o(_0x36e39f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xca9210,'\x22'+_0x12f896['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x36e39f,'*Remove:*\x20%0',o(_0x36e39f,'ELEMENT_TABLE_ROW',_0xca9210))};}if('tableColumn'==_0x2b37f8['subType']){const _0x1e89fa=_0x2b37f8['getItems']()['filter'](_0x14af4b=>_0x14af4b['is']('$textProxy'))['map'](_0x439a12=>_0x439a12['data']),_0x454053=this['_getSuggestionCoords'](_0x2b37f8),_0x1eab99=_0x454053['maxColumn']-_0x454053['minColumn']+0x1;if('insertion'==_0x2b37f8['type'])return _0x1e89fa['length']?{'type':'insertion','content':o(_0x36e39f,'*Insert:*\x20%0',o(_0x36e39f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1eab99,'\x22'+_0x1e89fa['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x36e39f,'*Insert:*\x20%0',o(_0x36e39f,'ELEMENT_TABLE_COLUMN',_0x1eab99))};if('deletion'==_0x2b37f8['type'])return _0x1e89fa['length']?{'type':'deletion','content':o(_0x36e39f,'*Remove:*\x20%0',o(_0x36e39f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1eab99,'\x22'+_0x1e89fa['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x36e39f,'*Remove:*\x20%0',o(_0x36e39f,'ELEMENT_TABLE_COLUMN',_0x1eab99))};}}),_0x521f03['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x507ec1),_0x521f03['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x507ec1),_0x521f03['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3943e4),_0x521f03['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3943e4),_0x521f03['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2df4e6),_0x521f03['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2df4e6),_0x521f03['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x47687b),_0x521f03['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x47687b);}['_acceptFormatSuggestionCallbackFactory'](){const _0x121030=this['editor'],_0x56a77c=_0x121030['model']['document']['selection'];return(_0x22c540,_0x10b10b)=>{_0x121030['model']['change'](_0x586256=>{const {commandName:_0x5a3391,commandParams:_0xfd7c83}=_0x10b10b;let _0x271a23=_0x22c540[0x0]['end']['nodeBefore'];_0xfd7c83&&_0xfd7c83[0x0]&&!0x1===_0xfd7c83[0x0]['forceValue']&&(_0x271a23=_0x22c540[0x0]['start']['nodeAfter']);const _0x1c1067=_0x586256['createRangeIn'](_0x271a23);if('$graveyard'==_0x1c1067['root']['rootName'])return;const _0x2940ba=Array['from'](_0x56a77c['getRanges']())['map'](_0x469002=>_0xb3bd9b['fromRange'](_0x469002));_0x586256['setSelection'](_0x1c1067),_0x121030['commands']['get'](_0x5a3391)['refresh'](),_0xfd7c83['push']({'forceDefaultExecution':!0x0}),_0x121030['execute'](_0x5a3391,..._0xfd7c83);const _0x560a22=_0x2940ba['filter'](_0x118307=>'$graveyard'!=_0x118307['root']['rootName']);_0x560a22['length']>0x0&&_0x586256['setSelection'](_0x560a22);for(const _0x1286b3 of _0x2940ba)_0x1286b3['detach']();});};}['_getCoordsForCells'](_0x244795){const _0x239b54=this['editor']['plugins']['get']('TableUtils');let _0x2bde3a=Number['MAX_SAFE_INTEGER'],_0x376694=Number['MIN_SAFE_INTEGER'],_0xb646e6=Number['MAX_SAFE_INTEGER'],_0x4c7ccf=Number['MIN_SAFE_INTEGER'];for(const _0x1e9d94 of _0x244795){if('$graveyard'==_0x1e9d94['root']['rootName'])continue;const {row:_0x1c2842,column:_0xc1013a}=_0x239b54['getCellLocation'](_0x1e9d94),_0x1a4ec6=_0x1e9d94['hasAttribute']('rowspan')?_0x1e9d94['getAttribute']('rowspan')-0x1:0x0,_0x16bf77=_0x1e9d94['hasAttribute']('colspan')?_0x1e9d94['getAttribute']('colspan')-0x1:0x0;_0x2bde3a=_0x1c2842<_0x2bde3a?_0x1c2842:_0x2bde3a,_0x376694=_0x1c2842+_0x1a4ec6>_0x376694?_0x1c2842+_0x1a4ec6:_0x376694,_0xb646e6=_0xc1013a<_0xb646e6?_0xc1013a:_0xb646e6,_0x4c7ccf=_0xc1013a+_0x16bf77>_0x4c7ccf?_0xc1013a+_0x16bf77:_0x4c7ccf;}return{'minRow':_0x2bde3a,'maxRow':_0x376694,'minColumn':_0xb646e6,'maxColumn':_0x4c7ccf};}['_setupColumnsRowsFixing'](){const _0x398ae3=this['editor'],_0x191da6=_0x398ae3['plugins']['get']('TrackChangesEditing'),_0x55af3a=_0x398ae3['plugins']['get']('TableUtils');_0x398ae3['model']['document']['on']('change:data',()=>{const _0x16a4c9=Array['from'](_0x398ae3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x39a4a7,data:_0x145619}of _0x16a4c9){const {group:_0x15dae6,id:_0x1a1c71,subType:_0x2db1fc}=_0x191da6['_splitMarkerName'](_0x39a4a7);if('suggestion'!=_0x15dae6)continue;if(null!=_0x145619['oldRange'])continue;const _0x5bd7e7=_0x191da6['getSuggestion'](_0x1a1c71);this['_tablePostFixingSubtypes']['includes'](_0x2db1fc)&&this['_tableSuggestions']['add'](_0x5bd7e7);}},{'priority':'low'});const _0x5d561d=(_0x235ce4,_0x32477f)=>{let _0x1127eb=!0x1;const _0x55bef6=_0x32477f['createRangeOn'](_0x235ce4),_0x15a141=_0x235ce4['findAncestor']('table'),_0x2cb861=_0x55af3a['getCellLocation'](_0x235ce4);for(const _0x112a81 of this['_tableSuggestions']){const _0x23df2f=_0x112a81['subType'],_0x2bea02=_0x23df2f['startsWith']('tablePaste'),_0x4e5025=_0x23df2f['substr'](_0x2bea02?0xa:0x5),_0x11eb1f=_0x4e5025['toLowerCase'](),_0x3c997a=_0x11eb1f['substr'](0x0,0x3)+'span',_0x341727='min'+_0x4e5025,_0xafe5a='max'+_0x4e5025;if(!_0x112a81['isInContent'])continue;if(_0x15a141!=_0x112a81['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x112a81['isIntersectingWithRange'](_0x55bef6))continue;const _0x288517=_0x235ce4['hasAttribute'](_0x3c997a)?_0x235ce4['getAttribute'](_0x3c997a)-0x1:0x0,_0x5f4462=this['_getSuggestionCoords'](_0x112a81),_0x3948a1=_0x5f4462[_0x341727],_0x171da5=_0x5f4462[_0xafe5a];_0x3948a1<=_0x2cb861[_0x11eb1f]&&_0x2cb861[_0x11eb1f]+_0x288517<=_0x171da5&&(_0x112a81['addRange'](_0x55bef6),_0x1127eb=!0x0);}return _0x1127eb;};_0x398ae3['model']['document']['registerPostFixer'](_0x438d2f=>{let _0x5f0678=!0x1;for(const _0x46061e of _0x398ae3['model']['document']['differ']['getChanges']())if('insert'==_0x46061e['type']){if('tableRow'==_0x46061e['name']){for(const _0x503f4c of _0x46061e['position']['nodeAfter']['getChildren']())_0x5f0678=_0x5f0678||_0x5d561d(_0x503f4c,_0x438d2f);}else'tableCell'==_0x46061e['name']&&(_0x5f0678=_0x5f0678||_0x5d561d(_0x46061e['position']['nodeAfter'],_0x438d2f));}return _0x5f0678;});}['_getSuggestionCoords'](_0x2ba43d){return this['_getCoordsForCells'](_0x2ba43d['getRanges']()['map'](_0x558afc=>_0x558afc['start']['nodeAfter']));}constructor(_0x357470){super(_0x357470),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}}function Ee(_0x582858){return Array['from'](new Set(_0x582858)['values']());}class St extends _0x454bf4{static get['requires'](){return[jt];}['afterInit'](){const _0x23dd8a=this['editor'],_0x3446b6=_0x23dd8a['model']['document']['selection'],_0x2e478e=_0x23dd8a['locale'];if(!_0x23dd8a['plugins']['has']('TableEditing'))return;const _0x2176e3=_0x23dd8a['plugins']['get']('TrackChangesEditing'),_0x4084b8=_0x23dd8a['plugins']['get']('TableUtils'),_0x31a5bf=_0x23dd8a['plugins']['get'](jt);_0x31a5bf['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2176e3['enableCommand']('mergeTableCells',()=>{const _0x2b41e3=_0x4084b8['getSelectionAffectedTableCells'](_0x23dd8a['model']['document']['selection']);_0x23dd8a['model']['change'](()=>{_0x2176e3['markMultiRangeBlockFormat'](_0x2b41e3,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x23dd8a['commands']['get']('mergeTableCells')['on']('execute',(_0x39edeb,_0x56e26d)=>{_0x23dd8a['commands']['get']('trackChanges')['value']&&(_0x56e26d['length']>0x0&&_0x56e26d[_0x56e26d['length']-0x1]&&_0x56e26d[_0x56e26d['length']-0x1]['forceDefaultExecution']||_0x2176e3['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x39edeb['stop']());},{'priority':'highest'});for(const _0x21ee7e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x16ae9c=_0x23dd8a['commands']['get'](_0x21ee7e);_0x2176e3['enableCommand'](_0x21ee7e,()=>{const _0x530cf0=_0x23dd8a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x271504=>_0x271504['is']('element','tableCell')),_0x204c21=_0x16ae9c['value'];_0x23dd8a['model']['change'](()=>{_0x2176e3['markMultiRangeBlockFormat']([_0x530cf0,_0x204c21],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3c4dc7 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x279638=_0x23dd8a['commands']['get'](_0x3c4dc7);_0x2176e3['enableCommand'](_0x3c4dc7,()=>{const _0x4e98c9=_0x4084b8['getSelectionAffectedTableCells'](_0x23dd8a['model']['document']['selection'])[0x0],_0x4f0997=_0x4e98c9['findAncestor']('table'),{column:_0x5e527a,row:_0x54bac5}=_0x4084b8['getCellLocation'](_0x4e98c9);let _0x31eb1f=[];if('horizontally'==_0x279638['direction']){const _0x4b37db=_0x4084b8['createTableWalker'](_0x4f0997,{'startRow':_0x54bac5,'endRow':_0x54bac5,'includeAllSlots':!0x0});_0x31eb1f=Array['from'](_0x4b37db)['map'](_0xb55282=>_0xb55282['cell']);}else{const _0x2f71d3=_0x4084b8['createTableWalker'](_0x4f0997,{'column':_0x5e527a,'includeAllSlots':!0x0});_0x31eb1f=Array['from'](_0x2f71d3)['map'](_0x1de62c=>_0x1de62c['cell']);}_0x23dd8a['model']['change'](_0x2245fd=>{_0x2176e3['markBlockFormat'](_0x2245fd['createRangeOn'](_0x4e98c9),{'commandName':_0x3c4dc7,'commandParams':[]},_0x31eb1f,_0x3c4dc7);});});}_0x2176e3['descriptionFactory']['registerDescriptionCallback'](_0xa0e198=>{if('formatBlock'!=_0xa0e198['type']&&'formatInline'!=_0xa0e198['type'])return;const {data:_0x1f8813}=_0xa0e198;return _0x1f8813&&'mergeTableCells'==_0x1f8813['commandName']?{'type':'format','content':o(_0x2e478e,'*Merge\x20cells*')}:void 0x0;}),_0x2176e3['descriptionFactory']['registerDescriptionCallback'](_0x53bbb1=>{if('formatBlock'!=_0x53bbb1['type']&&'formatInline'!=_0x53bbb1['type'])return;const {data:_0x5122c4}=_0x53bbb1;return _0x5122c4?'splitTableCellVertically'==_0x5122c4['commandName']?{'type':'format','content':o(_0x2e478e,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5122c4['commandName']?{'type':'format','content':o(_0x2e478e,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x8118df=_0x31a5bf['_acceptFormatSuggestionCallbackFactory']();for(const _0x458bef of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2176e3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x458bef,'accept',_0x8118df);for(const _0x2c7929 of['splitTableCellVertically','splitTableCellHorizontally'])_0x2176e3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2c7929,'accept',_0x8118df);_0x2176e3['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1283ba=>{_0x23dd8a['model']['change'](_0x1d5026=>{const _0x595255=Array['from'](_0x3446b6['getRanges']())['map'](_0x53c24f=>_0xb3bd9b['fromRange'](_0x53c24f));_0x1d5026['setSelection'](_0x1283ba),_0x23dd8a['commands']['get']('mergeTableCells')['refresh'](),_0x23dd8a['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3c1038=_0x595255['filter'](_0x21c0eb=>'$graveyard'!=_0x21c0eb['root']['rootName']);_0x3c1038['length']>0x0&&_0x1d5026['setSelection'](_0x3c1038);for(const _0x5012b8 of _0x595255)_0x5012b8['detach']();});});for(const _0x1d6ec0 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2cbc3b=_0x23dd8a['commands']['get'](_0x1d6ec0);_0x2cbc3b['on']('set:isEnabled',(_0x3626d9,_0x1fea3e,_0x49a7ca)=>{if(_0x49a7ca){const _0x427162=_0x23dd8a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3155e6=>_0x3155e6['is']('element','tableCell'));this['_areMergableCells'](_0x2cbc3b['value'],_0x427162)||(_0x3626d9['return']=!0x1,_0x3626d9['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x280a11=this['editor']['commands']['get']('mergeTableCells'),_0xc6c3b0=this['editor']['plugins']['get']('TableUtils');if(!_0x280a11['isEnabled'])return!0x1;const _0x2fae43=_0xc6c3b0['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2b563a of _0x2fae43)for(const _0x2fd104 of _0x2fae43)if(_0x2b563a!=_0x2fd104&&!this['_areMergableCells'](_0x2b563a,_0x2fd104))return!0x1;return!0x0;}['_areMergableCells'](_0x5d01af,_0x15739a){const _0x58a979=this['editor']['plugins']['get']('TrackChangesEditing'),_0x320da4=this['editor']['model']['createRangeOn'](_0x5d01af),_0x41e1ba=this['editor']['model']['createRangeOn'](_0x15739a),_0x15083e=new Set(),_0x27f0b7=new Set();for(const _0x1bdbee of _0x58a979['getSuggestions']())if(('insertion'==_0x1bdbee['type']||'deletion'==_0x1bdbee['type']||'mergeTableCells'==_0x1bdbee['subType'])&&_0x1bdbee['isInContent']){for(const _0x587474 of _0x1bdbee['getRanges']())_0x587474['containsRange'](_0x320da4,!0x0)&&_0x15083e['add'](_0x1bdbee['type']+':'+_0x1bdbee['author']['id']),_0x587474['containsRange'](_0x41e1ba,!0x0)&&_0x27f0b7['add'](_0x1bdbee['type']+':'+_0x1bdbee['author']['id']);}if(_0x15083e['size']!=_0x27f0b7['size'])return!0x1;for(const _0x28fd1d of _0x15083e)if(!_0x27f0b7['has'](_0x28fd1d))return!0x1;return!0x0;}}class At extends _0x454bf4{static get['requires'](){return[jt];}['afterInit'](){const _0x2c275c=this['editor'];if(!_0x2c275c['plugins']['has']('TableEditing'))return;const _0x527efd=_0x2c275c['locale'],_0x1b8095=_0x2c275c['plugins']['get']('TrackChangesEditing');_0x1b8095['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1b8095['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1b8095['registerBlockAttribute']('headingRows'),_0x1b8095['registerBlockAttribute']('headingColumns'),_0x1b8095['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x527efd,'FORMAT_HEADER_ROW')),_0x1b8095['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x527efd,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x431153=this['editor']['plugins']['get']('TrackChangesEditing'),_0x115a1c=this['editor']['plugins']['get']('TableUtils'),_0x3048c2=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x3c90c3({showActiveMarker:_0x5854e2=!0x0,setDataAttribute:_0x4ad46d=!0x0}={}){return(_0x348c48,_0x291c2d,_0x55369f)=>{const {type:_0x4f81d1,id:_0x1f49ef}=_0x431153['_splitMarkerName'](_0x291c2d['markerName']),_0x2e8cb7=_0x431153['getSuggestion'](_0x1f49ef),_0x31f5aa=_0x2e8cb7['data'];if('formatBlock'!=_0x2e8cb7['type']||!_0x31f5aa||'setTableColumnHeader'!=_0x31f5aa['commandName'])return;if(_0x291c2d['item'])return void _0x348c48['stop']();if(!_0x55369f['consumable']['consume'](_0x291c2d['markerRange'],_0x348c48['name']))return;const _0x503e20=_0x291c2d['markerRange']['start']['nodeAfter'],_0xc24759=_0x291c2d['markerRange']['end']['nodeBefore'],_0x1e8b5e=_0x503e20['parent']['parent'],{column:_0x3bc310}=_0x115a1c['getCellLocation'](_0x503e20),{column:_0x17d3c5}=_0x115a1c['getCellLocation'](_0xc24759);for(let _0x29b29c=_0x3bc310;_0x29b29c<=_0x17d3c5;_0x29b29c++){const _0xdc12c6=_0x115a1c['createTableWalker'](_0x1e8b5e,{'column':_0x29b29c,'includeAllSlots':!0x1});for(const _0x503408 of _0xdc12c6){const _0x3bc1c1=_0x503408['cell'],_0x117948=_0x55369f['mapper']['toViewElement'](_0x3bc1c1);_0x55369f['writer']['addClass']('ck-suggestion-marker-'+_0x4f81d1,_0x117948),_0x4ad46d&&_0x55369f['writer']['setAttribute']('data-suggestion',_0x1f49ef,_0x117948),_0x55369f['mapper']['bindElementToMarker'](_0x117948,_0x291c2d['markerName']),_0x5854e2&&(_0x431153['activeMarkers']['includes'](_0x291c2d['markerName'])?_0x55369f['writer']['addClass']('ck-suggestion-marker--active',_0x117948):_0x55369f['writer']['removeClass']('ck-suggestion-marker--active',_0x117948));}}};}_0x431153['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3048c2),_0x431153['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3048c2),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3c90c3(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xdedba6,_0x52b06e,_0x149312)=>{_0x149312['options']['showSuggestionHighlights']&&_0x3c90c3({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xdedba6,_0x52b06e,_0x149312);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x106c38,_0x3b8904,_0x42e988)=>{const {type:_0x140298,id:_0x260ed1}=_0x431153['_splitMarkerName'](_0x3b8904['markerName']),_0x57d4b6=_0x431153['getSuggestion'](_0x260ed1),_0x590f47=_0x57d4b6['data'];if('formatBlock'!=_0x57d4b6['type']||!_0x590f47||'setTableColumnHeader'!=_0x590f47['commandName'])return;const _0xf54e9=_0x42e988['mapper']['markerNameToElements'](_0x3b8904['markerName']);if(_0xf54e9){for(const _0x2b83a5 of _0xf54e9)_0x42e988['writer']['removeClass']('ck-suggestion-marker-'+_0x140298,_0x2b83a5),_0x42e988['writer']['removeClass']('ck-suggestion-marker--active',_0x2b83a5),_0x42e988['writer']['removeAttribute']('data-suggestion',_0x2b83a5),_0x42e988['mapper']['unbindElementFromMarkerName'](_0x2b83a5,_0x3b8904['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e867f=this['editor'],_0x2085d8=_0x4e867f['locale'];function _0x68a677(_0x2c7ef7){return{'type':'format','content':o(_0x2085d8,'*Format:*\x20%0',_0x2c7ef7)};}_0x4e867f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d93c4=>{if('formatBlock'!=_0x1d93c4['type'])return;const {data:_0x40b998}=_0x1d93c4;if(_0x40b998){if('setTableRowHeader'==_0x40b998['commandName']){const _0x3e7c1d=_0x40b998['commandParams'][0x0]['forceValue'];return _0x68a677(o(_0x2085d8,_0x3e7c1d?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x40b998['commandName']){const _0x1c927f=_0x40b998['commandParams'][0x0]['forceValue'];return _0x68a677(o(_0x2085d8,_0x1c927f?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x11d171=>[_0x11d171,null]));class It extends _0x454bf4{static get['requires'](){return[jt];}['afterInit'](){const _0x43e2f8=this['editor'];if(!_0x43e2f8['plugins']['has']('TableClipboard'))return;const _0x54d72f=_0x43e2f8['plugins']['get']('TrackChangesEditing'),_0x631e65=_0x43e2f8['plugins']['get']('TableUtils'),_0x38d829=_0x43e2f8['plugins']['get'](jt),_0x328f30=_0x43e2f8['plugins']['get']('TableClipboard');_0x38d829['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x43e2f8['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x43e2f8['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x49e2bf=null;_0x43e2f8['model']['on']('insertContent',(_0x192a3b,_0x2cccf4)=>{const [_0x14e248,_0x380b73]=_0x2cccf4,_0x2c6c5b=_0x2cccf4[_0x2cccf4['length']-0x1];_0x2c6c5b&&_0x2c6c5b['forceDefaultExecution']||_0x54d72f['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x29e4c5,_0x3dafb8,_0x5530db,_0x32b676,_0x39449b){if(_0x3dafb8&&!_0x3dafb8['is']('documentSelection'))return!0x1;const _0x49728c=_0x39449b['getTableIfOnlyTableInContent'](_0x29e4c5,_0x5530db);if(!_0x49728c||!he(_0x49728c,void 0x0,_0x32b676))return!0x1;const _0x537d5a=_0x32b676['getSelectionAffectedTableCells'](_0x5530db['document']['selection']);if(!_0x537d5a['length'])return!0x1;const _0x27a59d=_0x537d5a[0x0]['findAncestor']('table'),_0x3677db=_0x32b676['getRowIndexes'](_0x537d5a),_0x2ed2c6=_0x32b676['getColumnIndexes'](_0x537d5a),_0x409442={'startRow':_0x3677db['first'],'endRow':_0x3677db['last'],'startColumn':_0x2ed2c6['first'],'endColumn':_0x2ed2c6['last']};return 0x1==_0x537d5a['length']&&(_0x409442['endRow']+=_0x32b676['getRows'](_0x49728c)-0x1,_0x409442['endColumn']+=_0x32b676['getColumns'](_0x49728c)-0x1),he(_0x27a59d,_0x409442,_0x32b676);}(_0x14e248,_0x380b73,_0x43e2f8['model'],_0x631e65,_0x328f30)&&(_0x192a3b['stop'](),_0x49e2bf={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x43e2f8['model']['change'](()=>{_0x43e2f8['model']['insertContent'](_0x2cccf4[0x0],_0x2cccf4[0x1],_0x2cccf4[0x2],{'forceDefaultExecution':!0x0});const _0x30bf7e=_0x278a82(),{rowInsertionRanges:_0x3ac1f0,columnInsertionRanges:_0x268595,insertionRanges:_0x72d08b,deletionRanges:_0x2cca8c,cells:_0x198e17}=_0x49e2bf;_0x3ac1f0['length']&&_0x54d72f['markMultiRangeInsertion'](_0x3ac1f0,'tablePasteRow',{'tablePasteChainId':_0x30bf7e}),_0x268595['length']&&_0x54d72f['markMultiRangeInsertion'](_0x268595,'tablePasteColumn',{'tablePasteChainId':_0x30bf7e}),_0x72d08b['length']&&(_0x54d72f['markMultiRangeInsertion'](_0x72d08b,'tablePaste',{'tablePasteChainId':_0x30bf7e,'skipNestingCheck':!0x0}),_0x72d08b['forEach'](_0x17fbb7=>{var _0xfc1172;return null===(_0xfc1172=_0x17fbb7['detach'])||void 0x0===_0xfc1172?void 0x0:_0xfc1172['call'](_0x17fbb7);})),_0x2cca8c['length']&&(_0x54d72f['markMultiRangeDeletion'](_0x2cca8c,'tablePaste',{'tablePasteChainId':_0x30bf7e,'skipNestingCheck':!0x0}),_0x2cca8c['forEach'](_0x2a00c4=>{var _0x40c3ed;return null===(_0x40c3ed=_0x2a00c4['detach'])||void 0x0===_0x40c3ed?void 0x0:_0x40c3ed['call'](_0x2a00c4);}));const _0x16990c=_0x54d72f['markMultiRangeBlockFormat'](_0x198e17['map'](({element:_0x22f594})=>_0x22f594),{'formatGroupId':_0x278a82()},[],'tablePasteCell',{'tablePasteChainId':_0x30bf7e});if(_0x16990c){const _0x1d7f21=_0x16990c['getMarkers'](),_0x47cf07=[];for(const {element:_0x477197,attributes:_0x206808}of _0x198e17){if(!_0x206808)continue;const _0x4b40ce=_0x43e2f8['model']['createRangeOn'](_0x477197),_0x1d0643=_0x1d7f21['find'](_0x5ec346=>_0x5ec346['getRange']()['isEqual'](_0x4b40ce));_0x1d0643&&_0x47cf07['push']([_0x1d0643['name'],_0x206808]);}_0x47cf07['length']&&_0x16990c['setAttribute']('markerAttributes',Object['fromEntries'](_0x47cf07));}_0x49e2bf=null;}));},{'priority':_0x65f0b9['high']+0xa}),_0x43e2f8['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3dec9b,_0x54d6b2)=>{const [_0x7cc2db,_0xb94f29,,_0x175274]=_0x54d6b2;if(!_0x49e2bf)return;_0x3dec9b['stop']();const _0x48abe8=_0x7cc2db['cell'],_0x243a13=_0xb94f29,_0x4eb465=Pe(_0x48abe8),_0x4ad4bb=Pe(_0x243a13);_0x3dec9b['return']=_0x48abe8;let _0x48a153=null,_0x15eb32=null;if(_0x4ad4bb||_0x4eb465){if(_0x4eb465&&!_0x4ad4bb){_0x175274['remove'](_0x48abe8['getChild'](0x0));for(const _0x2b82bc of Array['from'](_0x243a13['getChildren']()))_0x175274['insert'](_0x2b82bc,_0x48abe8,'end');const _0x5c5526=_0x49e2bf['rowInsertionIndexes']['includes'](_0x7cc2db['row']),_0x4bed96=_0x49e2bf['columnInsertionIndexes']['includes'](_0x7cc2db['column']);_0x5c5526||_0x4bed96||(_0x48a153=_0xb3bd9b['fromRange'](_0x175274['createRangeIn'](_0x48abe8)));}else _0x4ad4bb&&!_0x4eb465&&(_0x15eb32=_0x175274['createRangeIn'](_0x48abe8));}else{const _0xcbf377=_0x175274['createElement']('tableCellSuggestion'),_0x241fdc=_0x175274['createElement']('tableCellSuggestion');_0x175274['wrap'](_0x175274['createRangeIn'](_0x48abe8),_0x241fdc),_0x175274['insert'](_0xcbf377,_0x48abe8,0x0);for(const _0x4c681e of Array['from'](_0x243a13['getChildren']()))_0x175274['insert'](_0x4c681e,_0xcbf377,'end');_0x48a153=_0xb3bd9b['fromRange'](_0x175274['createRangeOn'](_0xcbf377)),_0x15eb32=_0xb3bd9b['fromRange'](_0x175274['createRangeOn'](_0x241fdc));}const _0x57b38a=Array['from'](_0x243a13['getAttributes']())['filter'](([_0x5c1b51])=>ge['includes'](_0x5c1b51));_0x49e2bf['cells']['push']({'element':_0x48abe8,'attributes':_0x57b38a['length']?Object['fromEntries'](_0x57b38a):null}),_0x48a153&&_0x49e2bf['insertionRanges']['push'](_0x48a153),_0x15eb32&&_0x49e2bf['deletionRanges']['push'](_0x15eb32);},{'priority':'high'}),_0x631e65['on']('insertColumns',(_0x388062,_0x4682c1)=>{const [_0x446edb,_0x4e3638={}]=_0x4682c1;if(!_0x49e2bf)return;const _0x50ff23=_0x4e3638['at']||0x0,_0x2eccee=_0x4e3638['columns']||0x1;_0x49e2bf['columnInsertionIndexes']=new Array(_0x2eccee)['fill'](_0x50ff23)['map']((_0x2e7fab,_0x53640c)=>_0x2e7fab+_0x53640c);for(const {cell:_0x5df47f}of _0x631e65['createTableWalker'](_0x446edb,{'startColumn':_0x50ff23,'endColumn':_0x50ff23+_0x2eccee-0x1}))_0x49e2bf['columnInsertionRanges']['push'](_0x43e2f8['model']['createRangeOn'](_0x5df47f));},{'priority':'low'}),_0x631e65['on']('insertRows',(_0xf9e1d0,_0x2226be)=>{const [_0x5ba683,_0x395987={}]=_0x2226be;if(!_0x49e2bf)return;const _0x418774=_0x395987['at']||0x0,_0x4cc14c=_0x395987['rows']||0x1;_0x49e2bf['rowInsertionIndexes']=new Array(_0x4cc14c)['fill'](_0x418774)['map']((_0x3641a6,_0x5f2b47)=>_0x3641a6+_0x5f2b47);for(const {cell:_0x1766b7}of _0x631e65['createTableWalker'](_0x5ba683,{'startRow':_0x418774,'endRow':_0x418774+_0x4cc14c-0x1}))_0x49e2bf['rowInsertionRanges']['push'](_0x43e2f8['model']['createRangeOn'](_0x1766b7));},{'priority':'low'}),_0x54d72f['descriptionFactory']['registerDescriptionCallback'](_0x15c31c=>{if(_0x15c31c['subType']&&_0x15c31c['subType']['startsWith']('tablePaste'))return _0x15c31c['previous']?{}:{'type':'insertion','content':o(_0x43e2f8['locale'],'*Replace\x20table\x20cells*')};});const _0x1a173d=()=>!0x1;for(const _0x15d8c1 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x54d72f['_suggestionFactory']['registerCustomCallback']('insertion',_0x15d8c1,'join',_0x1a173d),_0x54d72f['_suggestionFactory']['registerCustomCallback']('deletion',_0x15d8c1,'join',_0x1a173d),_0x54d72f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x15d8c1,'join',_0x1a173d);_0x54d72f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1a173d),_0x54d72f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4da073,_0x14b83f,_0x341eda)=>{const _0x38c81a=_0x4da073['map'](_0x75eee6=>_0x75eee6['getContainedElement']())['filter'](_0x378a34=>_0x378a34),_0xc8552b=new Map(_0x38c81a['map'](_0x7006c1=>[_0x7006c1,null]));if(_0x49e2bf){for(const {element:_0x3fdce3,attributes:_0x2da92e}of _0x49e2bf['cells'])_0x2da92e&&_0xc8552b['set'](_0x3fdce3,_0x2da92e);}else{if(_0x341eda&&_0x341eda['markerAttributes'])for(const [_0x49e86c,_0x4d81eb]of Object['entries'](_0x341eda['markerAttributes'])){const _0x54a288=_0x43e2f8['model']['markers']['get'](_0x49e86c),_0xe8d6fb=_0x54a288?_0x54a288['getRange']()['getContainedElement']():null;_0xe8d6fb&&_0xc8552b['set'](_0xe8d6fb,_0x4d81eb);}}_0x43e2f8['model']['change'](_0x1b5859=>{for(const [_0x4053a3,_0x11b543]of _0xc8552b)_0x1b5859['setAttributes']({...Ce,..._0x11b543},_0x4053a3);});});const _0x1156d5=(_0x7b3abc,_0x2db128)=>{_0x54d72f['_suggestionFactory']['registerCustomCallback'](_0x7b3abc,'tablePaste',_0x2db128,(_0x207523,_0x3330cd,_0x5e4df2)=>{_0x43e2f8['model']['change'](_0x7513d5=>{const _0x2c7e4e=[];for(const _0x1e7eb1 of _0x207523){const _0x136675=_0x1e7eb1['start']['nodeAfter'];_0x136675['is']('element','tableCellSuggestion')&&_0x2c7e4e['push'](_0x136675);}_0x54d72f['_suggestionFactory']['getSuggestionCallback'](_0x7b3abc,null,_0x2db128)(_0x207523,_0x3330cd,_0x5e4df2);for(const _0x4c30e3 of _0x2c7e4e)'$graveyard'!=_0x4c30e3['root']['rootName']&&_0x7513d5['unwrap'](_0x4c30e3);});});};_0x1156d5('insertion','accept'),_0x1156d5('insertion','discard'),_0x1156d5('deletion','accept'),_0x1156d5('deletion','discard'),_0x54d72f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x171aa0=>{const _0x19d139=_0x171aa0['map'](_0x536694=>_0x536694['getContainedElement']()),_0x50267a=_0x19d139[0x0]['findAncestor']('table'),{minRow:_0x8949e,maxRow:_0x9e847f}=_0x38d829['_getCoordsForCells'](_0x19d139);_0x631e65['removeRows'](_0x50267a,{'at':_0x8949e,'rows':_0x9e847f-_0x8949e+0x1});}),_0x54d72f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x40e38a=>{const _0x17499f=_0x40e38a['map'](_0x4822d2=>_0x4822d2['getContainedElement']()),_0x4ba655=_0x17499f[0x0]['findAncestor']('table'),{minColumn:_0x7af178,maxColumn:_0x58ec39}=_0x38d829['_getCoordsForCells'](_0x17499f);_0x631e65['removeColumns'](_0x4ba655,{'at':_0x7af178,'columns':_0x58ec39-_0x7af178+0x1});});const _0x45bf44=(_0x472495,_0x24e75f)=>{if(!_0x24e75f['subType']||!_0x24e75f['subType']['startsWith']('tablePaste'))return;const _0x3dcbea=_0x24e75f['attributes']['tablePasteChainId'],_0x215734=_0x54d72f['getSuggestions']()['filter'](_0xe7ad8=>_0xe7ad8['isInContent']&&_0xe7ad8['attributes']&&_0xe7ad8['attributes']['tablePasteChainId']==_0x3dcbea);_0x215734['length']&&_0x24e75f['getAllAdjacentSuggestions']()['length']!=_0x215734['length']&&_0x215734['reduce']((_0x5fa66a,_0x24dce7)=>(_0x5fa66a['next']=_0x24dce7,_0x24dce7['previous']=_0x5fa66a,_0x24dce7));};function _0x35c650(_0xc3ace,_0x6568c7=!0x0){const {id:_0x4a9060}=_0x54d72f['_splitMarkerName'](_0xc3ace['markerName']),_0x483779=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x10fb67=_0x54d72f['activeMarkers']['includes'](_0xc3ace['markerName']);return _0x10fb67&&_0x483779['push']('ck-suggestion-marker--active'),{'classes':_0x483779,'attributes':{'data-suggestion':_0x4a9060},'priority':_0x10fb67&&_0x6568c7?0xbc2:0xbb8};}_0x54d72f['on']('suggestionLoaded',_0x45bf44,{'priority':'high'}),_0x54d72f['on']('suggestionUnloaded',_0x45bf44,{'priority':'high'}),_0x43e2f8['model']['document']['registerPostFixer'](()=>{let _0x5d9c9a=!0x1;const _0x58ec19=Array['from'](_0x43e2f8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4b9844,data:_0x5e1b60}of _0x58ec19){const {group:_0x3e9382,type:_0x4e4291,id:_0x38a6c2}=_0x54d72f['_splitMarkerName'](_0x4b9844);if('suggestion'!=_0x3e9382||'deletion'!=_0x4e4291||_0x5e1b60['oldRange'])continue;if(!_0x54d72f['hasSuggestion'](_0x38a6c2))continue;const _0x34eaf6=_0x54d72f['getSuggestion'](_0x38a6c2)['getRanges'](),_0x4df4cb=_0x43e2f8['plugins']['get']('Users')['me'];for(const _0x2e273a of _0x54d72f['getSuggestions']()){if(!_0x2e273a['isInContent']||_0x2e273a['author']!=_0x4df4cb)continue;if('formatBlock'!=_0x2e273a['type']||'tablePasteCell'!=_0x2e273a['subType'])continue;if(_0x2e273a['getRanges']()['every'](_0x168780=>_0x34eaf6['some'](_0x307b80=>_0x307b80['containsRange'](_0x168780,!0x0)))){for(const _0x3622cc of _0x2e273a['getAllAdjacentSuggestions']())_0x3622cc['isInContent']&&(_0x3622cc['discard'](),_0x5d9c9a=!0x0);}}}return _0x5d9c9a;}),_0x43e2f8['model']['document']['registerPostFixer'](_0x168ee1=>{const _0x40cc90=_0x43e2f8['commands']['get']('redo');if(!_0x40cc90||!_0x40cc90['_createdBatches']['has'](_0x168ee1['batch']))return!0x1;let _0x4af22c=!0x1;const _0x24f966=_0x43e2f8['plugins']['get']('Users')['me'],_0x3fc7af=_0x43e2f8['model']['document']['differ']['getChanges'](),_0x32dfad=Array['from'](_0x43e2f8['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x119b0c,data:_0x434e35})=>{const {group:_0xf2cfe5,subType:_0xff5d59,authorId:_0x539ef6}=_0x54d72f['_splitMarkerName'](_0x119b0c);return'suggestion'==_0xf2cfe5&&'tablePaste'==_0xff5d59&&_0x539ef6==_0x24f966['id']&&!_0x434e35['oldRange'];});for(const _0x27006d of _0x3fc7af){if('insert'!=_0x27006d['type']||'tableCellSuggestion'!=_0x27006d['name']||0x1!=_0x27006d['length'])continue;const _0x941865=_0x168ee1['createRange'](_0x27006d['position'],_0x27006d['position']['getShiftedBy'](0x1));if(!_0x32dfad['find'](({data:_0x1576da})=>_0x1576da['newRange']['isEqual'](_0x941865))){for(const {name:_0x532f6e,data:_0x5c4553}of _0x32dfad)if(_0x941865['containsRange'](_0x5c4553['newRange'])){_0x168ee1['updateMarker'](_0x532f6e,{'range':_0x941865}),_0x4af22c=!0x0;break;}}}return _0x4af22c;}),_0x43e2f8['model']['document']['registerPostFixer'](_0x198598=>{let _0x62a21d=!0x1;const _0x11d762=_0x43e2f8['plugins']['get']('Users')['me'],_0x17dfd9=_0x54d72f['getSuggestions']()['filter'](_0x11271d=>_0x11271d['isInContent']&&_0x11271d['author']==_0x11d762),_0x4483a1=new Set(),_0x31f5a2=new Set();for(const _0x3f6e77 of _0x17dfd9)if('tablePaste'==_0x3f6e77['subType'])for(const _0x3ed99 of _0x3f6e77['getMarkers']()){const _0x15da5e=_0x3ed99['getRange']()['getContainedElement']();if(_0x15da5e){if(_0x15da5e['is']('element','tableCellSuggestion')&&Pe(_0x15da5e)){_0x3f6e77['removeMarker'](_0x3ed99['name']),_0x4483a1['add'](_0x15da5e),_0x62a21d=!0x0;const _0x598b5c=_0x15da5e['nextSibling'],_0x43c145=_0x15da5e['previousSibling'],_0x4c3e21=_0x598b5c&&_0x598b5c['is']('element','tableCellSuggestion'),_0x55bf7c=_0x43c145&&_0x43c145['is']('element','tableCellSuggestion');_0x4c3e21&&!_0x4483a1['has'](_0x598b5c)&&_0x31f5a2['add'](_0x598b5c),_0x55bf7c&&!_0x4483a1['has'](_0x43c145)&&_0x31f5a2['add'](_0x43c145);}else _0x15da5e['is']('element','paragraph')&&_0x15da5e['isEmpty']&&(_0x3f6e77['removeMarker'](_0x3ed99['name']),_0x62a21d=!0x0);}}else{if('tablePasteCell'==_0x3f6e77['subType']){if(!_0x3f6e77['attributes']||!_0x3f6e77['attributes']['tablePasteChainId'])continue;const _0x4c90ed=_0x3f6e77['attributes']['markerAttributes'];if(_0x4c90ed&&Object['keys'](_0x4c90ed)['length'])continue;const _0x181749=_0x3f6e77['attributes']['tablePasteChainId'];let _0xbfb856=!0x0,_0x44d4f1=!0x0;for(const _0x4d2c83 of _0x17dfd9)if(_0x4d2c83['subType']&&_0x4d2c83['subType']['startsWith']('tablePaste')){if(!_0x4d2c83['attributes']['tablePasteChainId']){_0x44d4f1=!0x1;break;}if(_0x4d2c83['id']!=_0x3f6e77['id']&&_0x4d2c83['attributes']['tablePasteChainId']==_0x181749){_0xbfb856=!0x1;break;}}_0x44d4f1&&_0xbfb856&&(_0x3f6e77['removeMarkers'](),_0x62a21d=!0x0);}}for(const _0x3833f0 of _0x4483a1)_0x198598['remove'](_0x3833f0);for(const _0x468ccb of _0x31f5a2)_0x198598['unwrap'](_0x468ccb);return _0x62a21d;}),_0x43e2f8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x423175,_0x491201)=>_0x35c650(_0x423175),'converterPriority':'high'}),_0x43e2f8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x31801c,_0x1e90b2)=>_0x1e90b2['options']['showSuggestionHighlights']?_0x35c650(_0x31801c,!0x1):null,'converterPriority':'high'});const _0x16d19a=_0x43e2f8['editing']['view'];this['listenTo'](_0x16d19a['document'],'clipboardOutput',(_0x787499,_0x4d31c1)=>{const _0x195fac=[];for(const _0x14d00c of _0x16d19a['createRangeIn'](_0x4d31c1['content'])['getItems']())_0x14d00c['is']('element','suggestion-td')&&_0x195fac['push'](_0x14d00c);_0x16d19a['change'](_0x5bc128=>{for(const _0x59c931 of _0x195fac)_0x5bc128['move'](_0x5bc128['createRangeIn'](_0x59c931),_0x5bc128['createPositionBefore'](_0x59c931)),_0x5bc128['remove'](_0x59c931);});});}}function Pe(_0x499fff){if(_0x499fff['isEmpty'])return!0x0;const _0x3477c4=_0x499fff['getChild'](0x0);return _0x3477c4['is']('element','paragraph')&&_0x3477c4['isEmpty'];}function he(_0x525a96,_0x5e5668={},_0x302040){for(const {isAnchor:_0x341ce1,cellHeight:_0x225a3f,cellWidth:_0x567442}of _0x302040['createTableWalker'](_0x525a96,{'includeAllSlots':!0x0,..._0x5e5668}))if(!_0x341ce1||0x1!=_0x225a3f||0x1!=_0x567442)return!0x1;return!0x0;}class vt extends _0x454bf4{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xfc64a0=this['editor']['plugins']['get']('TrackChangesEditing');_0xfc64a0['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xfc64a0['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xfc64a0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xfc64a0['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xfc64a0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xfc64a0['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2f4dee,_0x5e00e3){const _0x2c4388=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28e08d=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x223a77=_0x5e00e3['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xfcc97a=_0x28e08d['getColumnGroupElement'](_0x223a77);let _0x5dcaf5=_0xfcc97a?_0x28e08d['getTableColumnsWidths'](_0xfcc97a):null,_0x2c3072=_0x223a77['getAttribute']('tableWidth')||null;const _0x363626=_0x5e00e3['tableWidth']||_0x2c3072,_0x5b07e4=_0x5e00e3['columnWidths']||_0x5dcaf5,_0x2278c5=this['editor']['plugins']['get']('Users')['me'];for(const _0x4e1fe8 of _0x2c4388['getSuggestions']()){const _0x5b13c2=_0x4e1fe8['getContainedElement']();if('resizeTable'===_0x4e1fe8['subType']&&_0x5b13c2===_0x223a77){_0x4e1fe8['author']!==_0x2278c5&&_0x4e1fe8['discard']();const _0x3137e3=_0x4e1fe8['data']['commandParams'];_0x2c3072=_0x3137e3[0x0]['tableWidth'],_0x5dcaf5=_0x3137e3[0x0]['columnWidths'];break;}}_0x2f4dee({'table':_0x223a77,'tableWidth':_0x363626,'columnWidths':_0x5b07e4}),_0x2c4388['markBlockFormat'](_0x223a77,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2c3072,'columnWidths':_0x5dcaf5}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x48038e){if('formatBlock'!=_0x48038e['type']&&'formatInline'!=_0x48038e['type'])return;const {data:_0x474a84}=_0x48038e;if(_0x474a84&&'resizeTable'===_0x474a84['formatGroupId']){const _0x6c0d94='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x6c0d94)};}}}class _t extends _0x454bf4{['afterInit'](){const _0x86eed0=this['editor'];_0x86eed0['plugins']['has']('Template')&&_0x86eed0['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x454bf4{['afterInit'](){const _0x209e1d=this['editor'];if(!_0x209e1d['commands']['get']('insertTableOfContents'))return;_0x209e1d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x336803=_0x209e1d['plugins']['get']('TrackChangesEditing'),_0x49000a=_0x209e1d['locale'];_0x336803['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2773e5=>o(_0x49000a,'ELEMENT_TABLE_OF_CONTENTS',_0x2773e5));}}class Dt extends _0x454bf4{['afterInit'](){const _0x56bb17=this['editor'];if(!_0x56bb17['plugins']['has']('Title'))return;const _0x2e5893=_0x56bb17['plugins']['get']('TrackChangesEditing');_0x2e5893['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x56bb17['locale'],'ELEMENT_TITLE')),_0x56bb17['model']['document']['registerPostFixer'](_0x2d2b2b=>{let _0x593839=!0x1;const _0x37db66=Array['from'](_0x56bb17['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x546cdd,data:_0x5693cf}of _0x37db66){const {group:_0x32f8c1}=_0x2e5893['_splitMarkerName'](_0x546cdd);if('suggestion'!==_0x32f8c1||!_0x5693cf['newRange'])continue;const _0x33b5d1=_0x5693cf['newRange'],_0x2f38ce=_0x33b5d1['end']['nodeBefore'];if(!_0x2f38ce||!_0x2f38ce['is']('element','title-content'))continue;if(!_0x33b5d1['start']['isTouching'](_0x33b5d1['end']))continue;const _0x49fe7e=_0x56bb17['model']['schema']['getNearestSelectionRange'](_0x33b5d1['end'],'forward');if(_0x49fe7e&&_0x49fe7e['isCollapsed']){const _0x23d76f=_0x2d2b2b['createRange'](_0x33b5d1['start'],_0x49fe7e['start']);_0x23d76f['isEqual'](_0x33b5d1)||(_0x2d2b2b['updateMarker'](_0x546cdd,{'range':_0x23d76f}),_0x593839=!0x0);}_0x593839||(_0x2d2b2b['removeMarker'](_0x546cdd),_0x593839=!0x0);}return _0x593839;});}}class Nt extends _0x454bf4{['afterInit'](){const _0x143816=this['editor'],_0x2aa432=_0x143816['plugins']['get']('TrackChangesEditing');_0x143816['plugins']['has']('UndoEditing')&&(_0x2aa432['enableCommand']('undo'),_0x2aa432['enableCommand']('redo'));}}class Mt extends _0x454bf4{static get['requires'](){return[jt];}['afterInit'](){const _0x3d1f04=this['editor'];if(!_0x3d1f04['plugins']['has']('TableCaptionEditing'))return;_0x3d1f04['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x454bf4{static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x3eb7be=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x114482 of this['tableProperties'])_0x3eb7be['enableCommand'](_0x114482,(_0x1e4b95,_0x49e7ce)=>{const _0x96e664=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x114482,[_0x96e664],this['tableProperties'],'tableProperties',_0x1e4b95,_0x49e7ce);});_0x3eb7be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3eb7be['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3eb7be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3d21ab,_0x5ba1bf)=>this['handleDiscardAction'](this['tableProperties'],_0x3d21ab,_0x5ba1bf)),_0x3eb7be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3aec07 of this['tableCellProperties'])_0x3eb7be['enableCommand'](_0x3aec07,(_0x3c5912,_0x4962c0)=>{const _0x10e9fd=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3aec07,_0x10e9fd,this['tableCellProperties'],'tableCellProperties',_0x3c5912,_0x4962c0);});_0x3eb7be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3eb7be['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3eb7be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x34037e,_0x22b2f9)=>this['handleDiscardAction'](this['tableCellProperties'],_0x34037e,_0x22b2f9)),_0x3eb7be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3eb7be['descriptionFactory']['registerDescriptionCallback'](_0x4a1f7f=>this['handleSuggestionDescription'](_0x4a1f7f));}['_handlePropertyChange'](_0x193022,_0x5a8c11,_0x11e92e,_0xbc81c6,_0x3fae69,_0x494d31){const _0x154698=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x494d31['batch'],()=>{for(const _0x3848b7 of _0x5a8c11){if(this['_getSuggestion'](_0x3848b7,_0xbc81c6))_0x3fae69(_0x494d31);else{const _0x100021={};for(const _0x478de3 of _0x11e92e){const _0x25f25c=_0x3848b7['getAttribute'](_0x478de3);void 0x0!==_0x25f25c&&(_0x100021[_0x478de3]=_0x25f25c);}_0x3fae69(_0x494d31),_0x154698['markBlockFormat'](_0x3848b7,{'commandParams':[_0x100021]},[],_0xbc81c6);}}});}['handleDiscardAction'](_0x244fa9,_0x3ce18d,_0x50c8b7){const _0x20ba72=_0x3ce18d[0x0]['start']['nodeAfter'],_0x5e7d3e=_0x50c8b7['commandParams'][0x0];this['editor']['model']['change'](_0x4496d9=>{for(const _0x57cd6f of _0x244fa9)void 0x0!==_0x5e7d3e[_0x57cd6f]?_0x4496d9['setAttribute'](_0x57cd6f,_0x5e7d3e[_0x57cd6f],_0x20ba72):_0x4496d9['removeAttribute'](_0x57cd6f,_0x20ba72);});}['handleSuggestionDescription'](_0x59f59b){if(_0x59f59b['data'])switch(_0x59f59b['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'](_0x296b49,_0x535b36){const _0x5551f0=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3cb3b6 of _0x5551f0['getSuggestions']({'skipNotAttached':!0x0})){const _0x35fbbb=_0x3cb3b6['getContainedElement']();if(_0x3cb3b6['subType']===_0x535b36&&_0x35fbbb===_0x296b49)return _0x3cb3b6;}return null;}constructor(_0x5b67be){super(_0x5b67be),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 _0x454bf4{static get['requires'](){return['CommentsRepository',_0x542b67,_0x4a6417,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 _0x1af962=this['editor'],_0x1302d4=(_0x4a4c85,_0x2d5213)=>{if('attribute'!=_0x4a4c85)return'ck-suggestion-marker-'+_0x4a4c85;const _0x5849b2=_0x2d5213['split']('|')[0x0];return this['_isBlockAttribute'](_0x5849b2)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1af962['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xae5b15=>{const {id:_0x20721b,type:_0x2347b5,subType:_0x545fd0}=this['_splitMarkerName'](_0xae5b15['markerName']),_0x40deac=['ck-suggestion-marker',_0x1302d4(_0x2347b5,_0x545fd0)];let _0x239528=0xbb8;return this['activeMarkers']['includes'](_0xae5b15['markerName'])&&(_0x40deac['push']('ck-suggestion-marker--active'),_0x239528=0xbc2),'deletion'==_0x2347b5&&(_0x239528+=0x5),{'classes':_0x40deac,'attributes':{'data-suggestion':_0x20721b},'priority':_0x239528};}}),_0x1af962['conversion']['for']('dataDowncast')['add'](_0x5a7a13=>{_0x5a7a13['on']('addMarker:suggestion',(_0x1517af,_0x1cadc8,_0x743a60)=>{if(!_0x743a60['options']['showSuggestionHighlights'])return;const _0x13ddec=_0x1cadc8['item'];if(!_0x13ddec)return;const _0xcc86ce=_0x743a60['mapper']['toViewElement'](_0x13ddec);_0x1af962['model']['schema']['isObject'](_0x13ddec)&&_0xcc86ce&&!_0xcc86ce['getCustomProperty']('widget')&&_0xcc86ce['is']('containerElement')&&_0x18b848(_0xcc86ce,_0x743a60['writer']);},{'priority':'high'});}),_0x1af962['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x502ba0,_0x32485e)=>{if(!_0x32485e['options']['showSuggestionHighlights'])return null;const {type:_0x23d03f,subType:_0x1da9f0}=this['_splitMarkerName'](_0x502ba0['markerName']);return{'classes':['ck-suggestion-marker',_0x1302d4(_0x23d03f,_0x1da9f0)],'priority':0xbb8};}});const _0x5a6e1d=({showActiveMarkers:_0xe6775f=!0x0,isAttributeSuggestion:_0x1469cd=!0x1}={})=>(_0x55abd3,_0x14d266,_0x363ee5)=>{if(!_0x14d266['item'])return;const {id:_0x5a3009}=this['_splitMarkerName'](_0x14d266['markerName']);if(_0x1469cd){const _0x3a7861=this['_suggestions']['get'](_0x5a3009),_0x137d46=this['_getAttributeKey'](_0x3a7861);if(!this['_isBlockAttribute'](_0x137d46))return;}if(_0x14d266['item']['is']('selection'))return void _0x363ee5['consumable']['consume'](_0x14d266['item'],_0x55abd3['name']);const _0x1436bb=_0x363ee5['mapper']['toViewElement'](_0x14d266['item']);if(_0x14d266['item']['is']('element')&&_0x1af962['model']['schema']['isBlock'](_0x14d266['item'])&&!_0x1436bb['getCustomProperty']('addHighlight')){_0x363ee5['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1436bb),_0x363ee5['writer']['setAttribute']('data-suggestion',_0x5a3009,_0x1436bb),_0x363ee5['mapper']['bindElementToMarker'](_0x1436bb,_0x14d266['markerName']),_0xe6775f&&(this['activeMarkers']['includes'](_0x14d266['markerName'])?_0x363ee5['writer']['addClass']('ck-suggestion-marker--active',_0x1436bb):_0x363ee5['writer']['removeClass']('ck-suggestion-marker--active',_0x1436bb));for(const _0x8069cc of _0x1af962['model']['createRangeIn'](_0x14d266['item'])['getItems']())_0x363ee5['consumable']['consume'](_0x8069cc,_0x55abd3['name']);_0x363ee5['consumable']['consume'](_0x14d266['item'],_0x55abd3['name']);}};_0x1af962['conversion']['for']('dataDowncast')['add'](_0x854bfa=>{_0x854bfa['on']('addMarker:suggestion:formatBlock',(_0x23a55b,_0x12fed2,_0x2a6aec)=>{_0x2a6aec['options']['showSuggestionHighlights']&&_0x5a6e1d({'showActiveMarkers':!0x1})(_0x23a55b,_0x12fed2,_0x2a6aec);},{'priority':'highest'});}),_0x1af962['conversion']['for']('dataDowncast')['add'](_0x11fb7e=>{_0x11fb7e['on']('addMarker:suggestion:attribute',(_0x1895ef,_0x4bb46b,_0x4d9c9c)=>{_0x4d9c9c['options']['showSuggestionHighlights']&&_0x5a6e1d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1895ef,_0x4bb46b,_0x4d9c9c);},{'priority':'highest'});}),_0x1af962['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2b340e,_0x4cd298)=>_0x4cd298['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x2b340e['substr'](0xb)}}),_0x1af962['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x56c9ba,{writer:_0x37ef70})=>{let _0x5e4dfe='suggestion:'+_0x56c9ba['getAttribute']('suggestion-type')+':'+_0x56c9ba['getAttribute']('id');return _0x56c9ba['getAttribute']('marker-count')&&(_0x5e4dfe+=':'+_0x56c9ba['getAttribute']('marker-count')),_0x37ef70['createElement']('$marker',{'data-name':_0x5e4dfe});}}),_0x1af962['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1af962['conversion']['for']('editingDowncast')['add'](_0x14cf1d=>{_0x14cf1d['on']('addMarker:suggestion:formatBlock',_0x5a6e1d(),{'priority':'high'});}),_0x1af962['conversion']['for']('editingDowncast')['add'](_0x33e421=>{_0x33e421['on']('addMarker:suggestion:attribute',_0x5a6e1d({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1af962['conversion']['for']('editingDowncast')['add'](_0x510e29=>{_0x510e29['on']('removeMarker:suggestion:formatBlock',(_0x3b4daa,_0x41324e,_0x57758b)=>{const _0x121750=_0x57758b['mapper']['markerNameToElements'](_0x41324e['markerName']);if(_0x121750){for(const _0x5bb49e of _0x121750)_0x5bb49e['getCustomProperty']('addHighlight')||(_0x57758b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5bb49e),_0x57758b['writer']['removeAttribute']('data-suggestion',_0x5bb49e),_0x57758b['mapper']['unbindElementFromMarkerName'](_0x5bb49e,_0x41324e['markerName']));}},{'priority':'high'});}),_0x1af962['conversion']['for']('editingDowncast')['add'](_0x12d878=>{_0x12d878['on']('removeMarker:suggestion:attribute',(_0x44185a,_0x4c8abd,_0x44c514)=>{const _0x346836=_0x44c514['mapper']['markerNameToElements'](_0x4c8abd['markerName']);if(!_0x346836)return;const {id:_0x3d9987}=this['_splitMarkerName'](_0x4c8abd['markerName']),_0x4c89da=this['_suggestions']['get'](_0x3d9987),_0x31a1fc=this['_getAttributeKey'](_0x4c89da);if(this['_isBlockAttribute'](_0x31a1fc)){for(const _0x14ccc2 of _0x346836)_0x14ccc2['getCustomProperty']('addHighlight')||(_0x44c514['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x14ccc2),_0x44c514['writer']['removeAttribute']('data-suggestion',_0x14ccc2),_0x44c514['mapper']['unbindElementFromMarkerName'](_0x14ccc2,_0x4c8abd['markerName']));}},{'priority':'high'});}),_0x1af962['model']['document']['registerPostFixer'](_0x13ba01=>{let _0x324e9e=!0x1;const _0x2e96e6=Array['from'](_0x1af962['model']['document']['differ']['getChangedMarkers']()),_0x3e42b7=new Set();for(const {name:_0x244c1c,data:_0x26f298}of _0x2e96e6){const {group:_0x38941e,type:_0x38c6b6,subType:_0x5a28f1,id:_0x447a60}=this['_splitMarkerName'](_0x244c1c);if('suggestion'!==_0x38941e)continue;const _0x2e4d77=this['_suggestions']['get'](_0x447a60);if(null!=_0x26f298['newRange']){'formatInline'==_0x38c6b6&&(_0x324e9e=_0x324e9e||Et(_0x26f298['newRange'],_0x244c1c,_0x13ba01,_0x1af962['model']['schema']));const _0x5185e8='attribute'==_0x38c6b6&&this['_isBlockAttribute'](_0x5a28f1['split']('|')[0x0]);if(_0x26f298['newRange']['isCollapsed']||'$graveyard'==_0x26f298['newRange']['root']['rootName']||'formatBlock'==_0x38c6b6&&!Ut(_0x26f298['newRange'])||_0x5185e8&&!Ut(_0x26f298['newRange'])||'deletion'==_0x38c6b6&&!(!Tt(_0x2c28b7=_0x26f298['newRange'])&&!function(_0x504cf9){return _0x504cf9['start']['parent']==_0x504cf9['end']['nodeBefore']&&_0x504cf9['start']['isAtEnd'];}(_0x2c28b7)))_0x13ba01['removeMarker'](_0x244c1c),_0x324e9e=!0x0;else{if(!_0x2e4d77||!_0x2e4d77['isInContent'])continue;_0x3e42b7['add'](_0x2e4d77);}}}var _0x2c28b7;return _0x3e42b7['size']>0x0&&(_0x324e9e=!!this['_joinWithAdjacentSuggestions'](_0x3e42b7)||_0x324e9e),_0x324e9e;}),_0x1af962['model']['document']['registerPostFixer'](_0x5616c0=>{let _0x3a9521=!0x1;for(const _0x4354c7 of _0x1af962['model']['document']['differ']['getChanges']())if('insert'==_0x4354c7['type'])for(const _0x5304fd of this['_suggestions']['values']()){if(_0x5304fd['isMultiRange']||!_0x5304fd['isInContent'])continue;const _0x412172='formatBlock'==_0x5304fd['type'],_0x5012e8=this['_getAttributeKey'](_0x5304fd),_0x5f4804=_0x5012e8&&this['_isBlockAttribute'](_0x5012e8);if(!_0x412172&&!_0x5f4804)continue;const _0x90d355=_0x5304fd['getFirstRange']();if(_0x90d355['start']['parent']!=_0x90d355['end']['parent']&&!_0x90d355['end']['isAtEnd']){const _0x39d1f7=_0x1af962['model']['createPositionAt'](_0x90d355['start']['nodeAfter'],'end'),_0x39c997=_0x1af962['model']['createRange'](_0x90d355['start'],_0x39d1f7);_0x5616c0['updateMarker'](_0x5304fd['getFirstMarker'](),{'range':_0x39c997}),_0x3a9521=!0x0;}}return _0x3a9521;}),_0x1af962['model']['document']['registerPostFixer'](_0x325d84=>this['_processAttributeChanges'](_0x325d84)),_0x1af962['model']['document']['registerPostFixer'](_0x4d2ed5=>!_0x4d2ed5['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4d2ed5)),_0x1af962['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1af962['model']['document']['on']('change:data',(_0x45e2a7,_0x39cb39)=>{if(!_0x39cb39['isLocal']||_0x39cb39['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4dceca=_0x1af962['model']['document']['differ']['getChanges']();if(0x0==_0x4dceca['length'])return;const _0x377edf=[],_0x48238b=_0x4dceca['filter'](_0xd8d562=>'attribute'==_0xd8d562['type']),_0x5b29f8=_0x4dceca['filter'](_0x63ea6b=>'insert'==_0x63ea6b['type']&&'$text'!=_0x63ea6b['name']),_0x29cc35=_0x4dceca['filter'](_0x34aa5b=>'remove'==_0x34aa5b['type']&&'$text'!=_0x34aa5b['name']);for(const _0x523b4c of _0x48238b)this['_isRegisteredAttribute'](_0x523b4c['attributeKey'])&&_0x377edf['push']({'key':_0x523b4c['attributeKey'],'newValue':_0x523b4c['attributeNewValue'],'oldValue':_0x523b4c['attributeOldValue'],'range':Ot(_0x523b4c['range'],_0x1af962['model'])});for(const _0x4533d2 of _0x5b29f8){const _0x55c92e=_0x29cc35['find'](_0x56ce4c=>_0x56ce4c['_element']===_0x4533d2['_element']);if(_0x55c92e){const _0x146e90=Ft(_0x4533d2['position']['nodeAfter'],_0x1af962['model']);_0x55c92e['name']!==_0x4533d2['name']&&_0x377edf['push']({'key':m,'newValue':_0x4533d2['name'],'oldValue':_0x55c92e['name'],'range':_0x146e90});for(const [_0x46b7d0,_0x566a9c]of _0x55c92e['attributes']){if(!this['_isRegisteredAttribute'](_0x46b7d0))continue;const _0x57c6a5=_0x4533d2['attributes']['get'](_0x46b7d0);_0x566a9c!==_0x57c6a5&&_0x377edf['push']({'key':_0x46b7d0,'newValue':_0x57c6a5,'oldValue':_0x566a9c,'range':_0x146e90});}for(const [_0x2a6e7b,_0x1c30ac]of _0x4533d2['attributes'])this['_isRegisteredAttribute'](_0x2a6e7b)&&(_0x55c92e['attributes']['has'](_0x2a6e7b)||_0x377edf['push']({'key':_0x2a6e7b,'newValue':_0x1c30ac,'oldValue':null,'range':_0x146e90}));}}0x0!=_0x377edf['length']&&_0x1af962['model']['enqueueChange'](_0x39cb39,_0x2fb7b9=>{const _0x3ef24f=_0x278a82();for(const {range:_0x157448,key:_0x3597f4,oldValue:_0x7cdf04,newValue:_0x511dfc}of _0x377edf)this['markAttributeChange'](_0x157448,_0x3597f4,_0x7cdf04,_0x511dfc,{'groupId':_0x3ef24f});this['_reduceExistingSuggestions'](_0x2fb7b9,_0x377edf);});},{'priority':'lowest'}),_0x1af962['model']['markers']['on']('update:suggestion',(_0x10f25d,_0x3c20d5,_0x156cad)=>{if(null==_0x156cad){const {id:_0x388e85}=this['_splitMarkerName'](_0x3c20d5['name']),_0x2ecbd6=this['_suggestions']['get'](_0x388e85);_0x2ecbd6&&_0x2ecbd6['addMarkerName'](_0x3c20d5['name']);}}),_0x1af962['model']['document']['on']('change:data',()=>{const _0x338a44=Array['from'](_0x1af962['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2ae49b=>'suggestion'===this['_splitMarkerName'](_0x2ae49b['name'])['group']);if(0x0===_0x338a44['length'])return;_0x338a44['sort']((_0xb2c4e7,_0xb06039)=>{const _0x7512dc=_0xb2c4e7['data']['oldRange'],_0x49f5e2=_0xb06039['data']['oldRange'];return null===_0x7512dc&&null===_0x49f5e2?0x0:null===_0x7512dc&&null!==_0x49f5e2?-0x1:null!==_0x7512dc&&null===_0x49f5e2?0x1:_0x7512dc['start']['isBefore'](_0x49f5e2['start'])?-0x1:0x1;});const _0x19e7c0=new Set(),_0x434c58=new Set();for(const {name:_0x30472d,data:_0x472ffc}of _0x338a44){const {id:_0x51ba25}=this['_splitMarkerName'](_0x30472d);if(null===_0x472ffc['oldRange']){const _0x1784ef=this['_handleNewSuggestionMarker'](_0x30472d);_0x434c58['add'](_0x1784ef);}else{const _0x4ab3b2=this['_suggestions']['get'](_0x51ba25);null!==_0x472ffc['newRange']||_0x4ab3b2['isInContent']?(_0x19e7c0['add'](_0x4ab3b2['head']),_0x434c58['add'](_0x4ab3b2)):this['_removeSuggestion'](_0x4ab3b2);}}_0x434c58['size']>0x0&&this['_refreshSuggestionsChain'](_0x434c58);for(const _0x2ec991 of _0x19e7c0)this['fire']('suggestionChanged',_0x2ec991);}),_0x1af962['model']['on']('applyOperation',(_0x2972a6,_0x1e6cf1)=>{const _0x358000=_0x1e6cf1[0x0];if(!this['_suggestions']['size'])return;if(!_0x358000['isDocumentOperation'])return;if(_0x358000['batch']['isUndo']||!_0x358000['batch']['isLocal'])return;let _0x1af115,_0x33eb2b;switch(_0x358000['type']){case'insert':_0x1af115=_0x1af962['model']['createPositionAt'](_0x358000['position']),_0x33eb2b=_0x1af115['getShiftedBy'](_0x358000['howMany']);break;case'split':_0x1af115=_0x1af962['model']['createPositionAt'](_0x358000['splitPosition']),_0x33eb2b=_0x1af962['model']['createPositionAt'](_0x358000['moveTargetPosition']);break;case'move':_0x1af115=_0x1af962['model']['createPositionAt'](_0x358000['targetPosition']),_0x33eb2b=_0x1af115['getShiftedBy'](_0x358000['howMany']);break;default:return;}const _0x3b0371=_0x1af962['model']['createRange'](_0x1af115,_0x33eb2b);_0x1af962['model']['change'](()=>{for(const {suggestion:_0x3093cc,meta:_0x827ae8}of this['_findSuggestions'](_0x3b0371)){if(_0x3093cc['isMultiRange'])continue;if('formatInline'==_0x3093cc['type'])continue;const _0x470d56=this['_getAttributeKey'](_0x3093cc);if(_0x470d56&&this['_isBlockAttribute'](_0x470d56)&&'split'!=_0x358000['type'])continue;const _0x41c51=_0x3093cc['data']&&_0x3093cc['data']['multipleBlocks'];('formatBlock'!=_0x3093cc['type']||'split'==_0x358000['type']&&!_0x41c51)&&(_0x827ae8['containsRangeInObject']||'insertion'==_0x3093cc['type']&&_0x827ae8['isOwn']||_0x3093cc['getFirstRange']()['containsRange'](_0x3b0371)&&this['_breakSuggestionMarker'](_0x3093cc,_0x1af115,_0x33eb2b));}});},{'priority':'lowest'}),_0x1af962['model']['on']('deleteContent',(_0x4431fd,_0x1b85c0)=>{const _0x2e748f=_0x1b85c0[0x0],_0x3ab63b=_0x1b85c0[0x1];if(_0x3ab63b&&_0x3ab63b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2e748f['isCollapsed'])return;const _0x44911b=_0x1af962['model']['schema'],{start:_0x439145,end:_0x19fa41}=_0x2e748f['getFirstRange'](),_0x280b32=_0x439145['nodeAfter']&&_0x44911b['isLimit'](_0x439145['nodeAfter'])?null:_0x44911b['getNearestSelectionRange'](_0x439145,'forward'),_0x4ac288=_0x19fa41['nodeBefore']&&_0x44911b['isLimit'](_0x19fa41['nodeBefore'])?null:_0x44911b['getNearestSelectionRange'](_0x19fa41,'backward'),_0x25535f=_0x1af962['model']['createRange'](_0x280b32?_0x280b32['start']:_0x439145,_0x4ac288?_0x4ac288['end']:_0x19fa41);_0x1af962['model']['change'](_0x4207e5=>{this['markDeletion'](_0x25535f);const _0x5a46de=_0x1af962['model']['schema']['getNearestSelectionRange'](_0x25535f['start']);_0x2e748f['is']('documentSelection')?_0x4207e5['setSelection'](_0x5a46de):_0x2e748f['setTo'](_0x5a46de);}),_0x4431fd['stop']();},{'priority':_0x65f0b9['normal']+0xa}),_0x1af962['model']['on']('insertContent',(_0x10933b,_0x464612)=>{const _0x1e3803=_0x464612[_0x464612['length']-0x1];_0x1e3803&&_0x1e3803['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1af962['model']['change'](()=>{let _0x3e9543=_0x1af962['model']['insertContent'](_0x464612[0x0],_0x464612[0x1],_0x464612[0x2],{'forceDefaultExecution':!0x0});if(!_0x3e9543)return;_0x10933b['return']=_0x3e9543['clone']();const _0x70703b=_0x3e9543['end']['nodeBefore'],_0x58dd6c=_0x1af962['model']['schema'];_0x70703b&&_0x58dd6c['isBlock'](_0x70703b)&&!_0x58dd6c['isObject'](_0x70703b)&&(_0x3e9543=_0x1af962['model']['createRange'](_0x3e9543['start'],_0x1af962['model']['createPositionAt'](_0x70703b,'end'))),this['markInsertion'](_0x3e9543);}),_0x10933b['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x100ac4=new $(_0x1af962,this['_suggestions']);_0x1af962['commands']['add']('acceptSuggestion',_0x100ac4),this['enableCommand']('acceptSuggestion');const _0x3e5f99=new B(_0x1af962,this['_suggestions']);_0x1af962['commands']['add']('discardSuggestion',_0x3e5f99),this['enableCommand']('discardSuggestion'),_0x1af962['commands']['add']('acceptAllSuggestions',new x(_0x1af962,_0x100ac4,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1af962['commands']['add']('discardAllSuggestions',new x(_0x1af962,_0x3e5f99,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1af962['commands']['add']('acceptSelectedSuggestions',new R(_0x1af962,_0x100ac4,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1af962['commands']['add']('discardSelectedSuggestions',new R(_0x1af962,_0x3e5f99,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x587391=_0x1af962['plugins']['get']('CommentsRepository');this['listenTo'](_0x587391,'addComment',(_0x4db92e,{threadId:_0x455c27})=>{const _0x16dd8c=this['_suggestions']['get'](_0x455c27);_0x16dd8c&&_0x16dd8c['commentThread']&&0x1===_0x16dd8c['commentThread']['length']&&this['_updateSuggestionData'](_0x455c27,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x587391,'removeComment',(_0x1a0abb,{threadId:_0x30e186})=>{const _0x875f6e=this['_suggestions']['get'](_0x30e186);_0x875f6e&&_0x875f6e['commentThread']&&!_0x875f6e['commentThread']['length']&&this['_updateSuggestionData'](_0x30e186,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x598a33){if(this['_adapter'])throw new _0x514bf6('track-changes-adapter-already-set',this);this['_adapter']=_0x598a33;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x40baf2=!0x1,toJSON:_0x179e53=!0x1}={}){const _0x34f108=[];for(const _0x2b10dd of this['_suggestions']['values']())_0x40baf2&&!_0x2b10dd['isInContent']||_0x34f108['push'](_0x2b10dd);return _0x179e53?_0x34f108['map'](_0x275b2d=>_0x275b2d['toJSON']()):_0x34f108;}['getSuggestion'](_0x38c0e2){const _0x10633a=this['_suggestions']['get'](_0x38c0e2);if(!_0x10633a)throw new _0x514bf6('track-changes-suggestion-not-found',this);return _0x10633a;}['hasSuggestion'](_0x40b9d6){return this['_suggestions']['has'](_0x40b9d6);}['addSuggestionData'](_0x1474e4){const {authorId:_0x2c65cb,id:_0x4a5ace,attributes:_0x11ed2b}=_0x1474e4,[_0x25e230,_0x22a5d2]=_0x1474e4['type']['split'](':'),_0x1eaeac=this['_suggestions']['get'](_0x4a5ace)||this['_createSuggestion'](_0x25e230,_0x22a5d2,_0x4a5ace,_0x2c65cb,_0x11ed2b);if(this['_addThreadToSuggestion'](_0x1eaeac),this['_checkSuggestionCorrectness'](_0x1eaeac,_0x25e230,_0x22a5d2||null,_0x2c65cb),_0x1eaeac['createdAt']=_0x1474e4['createdAt'],_0x1eaeac['_isDataLoaded']=!0x0,_0x11ed2b&&_0x11ed2b['@external']){const _0x211324=_0x11ed2b['@external'],_0x394512=this['_getExternalAuthor'](_0x211324['authorName']);_0x1eaeac['authoredAt']=_0x211324['createdAt'],_0x1eaeac['author']=_0x394512,_0x1eaeac['isExternal']=!0x0;}else _0x1eaeac['authoredAt']=_0x1474e4['createdAt'];switch(_0x1474e4['data']&&(_0x1eaeac['data']=_0x1474e4['data']),_0x1474e4['attributes']&&(_0x1eaeac['attributes']=_0x1474e4['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1eaeac['_saved']=!0x0),this['_suggestionState']['get'](_0x1eaeac)){case'notReady':this['_suggestionState']['set'](_0x1eaeac,'dataReady');break;case'markerReady':_0x1eaeac['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1eaeac])),this['_refreshSuggestionsChain'](new Set([_0x1eaeac])),this['_suggestionState']['set'](_0x1eaeac,'ready'),this['fire']('suggestionLoaded',_0x1eaeac)):this['_suggestionState']['set'](_0x1eaeac,'removed');}return _0x1eaeac;}['acceptSuggestion'](_0xc76b4){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x57eb4b of _0xc76b4['getAllAdjacentSuggestions']())_0x57eb4b['accept']();});});}['discardSuggestion'](_0x5b187a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2557c8 of _0x5b187a['getAllAdjacentSuggestions']())_0x2557c8['discard']();});});}['enableCommand'](_0x4121ce,_0x5a24d7){const _0x5a93de=this['editor']['commands']['get'](_0x4121ce);if(!_0x5a93de)throw new _0x514bf6('track-changes-command-not-found',this,{'commandName':_0x4121ce});if(this['_enabledCommands']['has'](_0x5a93de))throw new _0x514bf6('track-changes-enable-command-twice',this,{'commandName':_0x4121ce});this['_enabledCommands']['add'](_0x5a93de),_0x5a24d7&&_0x5a93de['on']('execute',(_0x1e223e,_0x1db548)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1db548['length']>0x0&&_0x1db548[_0x1db548['length']-0x1]&&_0x1db548[_0x1db548['length']-0x1]['forceDefaultExecution']?_0x1db548['pop']():(_0x1e223e['return']=_0x5a24d7((..._0x4b05e3)=>_0x5a93de['execute'](..._0x4b05e3,{'forceDefaultExecution':!0x0}),..._0x1db548),_0x1e223e['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x8a16f4){let _0x53f601,_0x17bf9c;const _0x171c77=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x53f601=_0x8a16f4();}catch(_0xab7934){_0x17bf9c=_0xab7934;}return _0x171c77||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x17bf9c&&_0x514bf6['rethrowUnexpectedError'](_0x17bf9c,this),_0x53f601;}['markInsertion'](_0x1558fc,_0x595356=null,_0x18f882={}){if(_0x1558fc['isCollapsed'])return null;const _0x2ff971=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x5c3a2b,meta:_0x1eca8b}of this['_findSuggestions'](_0x1558fc,'insertion'))if(_0x1eca8b['isOwn']){if(!_0x1eca8b['isNextTo']){if(_0x1eca8b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x5c3a2b,_0x18f882))continue;return _0x5c3a2b;}if(Lt(_0x5c3a2b,_0x18f882))return _0x5c3a2b;this['_breakSuggestionMarker'](_0x5c3a2b,_0x1558fc['start'],_0x1558fc['end']);break;}if(_0x595356==_0x5c3a2b['subType']&&Lt(_0x5c3a2b,_0x18f882)){const _0x5ccc2a=_0x5c3a2b['getFirstRange']();return _0x5ccc2a['start']['isEqual'](_0x1558fc['end'])?this['_setSuggestionRange'](_0x5c3a2b,this['_model']['createRange'](_0x1558fc['start'],_0x5ccc2a['end'])):this['_setSuggestionRange'](_0x5c3a2b,this['_model']['createRange'](_0x5ccc2a['start'],_0x1558fc['end'])),_0x5c3a2b;}}const _0x58def7=_0x278a82(),_0x2a8c13=_0x2ff971['id'],_0x9f4ce1=_0x595356?'insertion:'+_0x595356:'insertion',_0x523609=this['_setSuggestionData']({'id':_0x58def7,'type':_0x9f4ce1,'createdAt':new Date(),'authorId':_0x2a8c13,'attributes':_0x18f882});return this['_addSuggestionMarker'](_0x9f4ce1,_0x58def7,_0x2a8c13,_0x1558fc),_0x523609;}['markMultiRangeInsertion'](_0x2f0113,_0x26f148='multi',_0x3b514d={}){const _0x4dfdf4=this['editor']['plugins']['get']('Users')['me'],_0x230312=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x26f148,'join');for(const _0x5f5519 of this['getSuggestions']())if(_0x5f5519['author']['id']==_0x4dfdf4['id']&&'insertion'==_0x5f5519['type']&&_0x5f5519['subType']==_0x26f148&&Lt(_0x5f5519,_0x3b514d)&&(_0x230312(_0x5f5519['getRanges'](),_0x2f0113)||_0x230312(_0x2f0113,_0x5f5519['getRanges']()))){for(const _0x6ee810 of _0x2f0113)_0x5f5519['addRange'](_0x6ee810);return _0x5f5519;}for(const {suggestion:_0x1f8dc3,meta:_0xd1aa40}of this['_findSuggestions'](_0x2f0113,'insertion')){if(!_0xd1aa40['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xd1aa40['containsRangeInObject'])continue;if(!Lt(_0x1f8dc3,_0x3b514d))continue;let _0x25d206=!0x0;for(const _0x2620e0 of _0x1f8dc3['getRanges']())for(const _0x4d6f2f of _0x2f0113)if(!_0x2620e0['containsRange'](_0x4d6f2f)){_0x25d206=!0x1;break;}if(_0x25d206)return _0x1f8dc3;}const _0x745e2f=_0x278a82(),_0x2476ec=_0x4dfdf4['id'],_0x573194='insertion:'+_0x26f148,_0x3d27f3=this['_setSuggestionData']({'id':_0x745e2f,'type':_0x573194,'createdAt':new Date(),'authorId':_0x2476ec,'attributes':_0x3b514d});for(const _0x497a4b of _0x2f0113)this['_addSuggestionMarker'](_0x573194,_0x745e2f,_0x2476ec,_0x497a4b,u['getMultiRangeId']());return _0x3d27f3;}['markInlineFormat'](_0x5b33eb,_0x173c0f,_0x1eb326=null,_0xe77468={}){if(_0x1eb326=_0x1eb326||Vt(_0x173c0f),_0x5b33eb['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x39df37=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1eb326,'accept');return this['forceDefaultExecution'](()=>_0x39df37([_0x5b33eb],_0x173c0f,_0xe77468)),null;}const _0x269ee3=this['editor']['plugins']['get']('Users')['me'],_0x250e11=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x32803f,meta:_0x5553ba}of this['_findSuggestions'](_0x5b33eb,'insertion'))_0x5553ba['isOwn']&&!_0x5553ba['isInsideObject']&&_0x250e11['push'](..._0x32803f['getRanges']());}const _0x1b91ca=function(_0x90a5a2,_0x2f0c79){const _0x121257=[];for(const _0x5cdedc of _0x2f0c79){const _0x2fedb3=_0x90a5a2['getIntersection'](_0x5cdedc);_0x2fedb3&&_0x121257['push'](_0x2fedb3);}return _0x121257;}(_0x5b33eb,_0x250e11),_0x4303b4=function(_0x4c3466,_0x53bedf){const _0x28f34a=[_0x4c3466];for(const _0x4d9af5 of _0x53bedf){let _0x1da077=0x0;for(;_0x1da077<_0x28f34a['length'];){const _0x10bd10=_0x28f34a[_0x1da077]['getDifference'](_0x4d9af5);_0x28f34a['splice'](_0x1da077,0x1,..._0x10bd10),_0x1da077+=_0x10bd10['length'];}}return _0x28f34a;}(_0x5b33eb,_0x250e11);_0x1b91ca['length']&&this['_model']['change'](()=>{for(const _0x4fb74e of _0x1b91ca){const _0x5d0b8a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1eb326,'accept');this['forceDefaultExecution'](()=>_0x5d0b8a([_0x4fb74e],_0x173c0f,_0xe77468));}});for(const _0x3a615c of _0x4303b4){let _0xe39943=null,_0x5336dc=_0x3a615c['start'],_0x2ef02c=_0x3a615c['end'];for(const {suggestion:_0x4803eb,meta:_0x37b4f5}of this['_findSuggestions'](_0x3a615c,'formatInline')){if(!_0x37b4f5['isOwn'])continue;if(_0x4803eb['subType']!=_0x1eb326)continue;if(!Lt(_0x4803eb,_0xe77468))continue;const _0x2c80cd=_0x4803eb['getFirstRange']();if(_0x2c80cd['containsRange'](_0x3a615c,!0x0))return null;_0x5336dc=_0x5336dc['isBefore'](_0x2c80cd['start'])?_0x5336dc:_0x2c80cd['start'],_0x2ef02c=_0x2ef02c['isAfter'](_0x2c80cd['end'])?_0x2ef02c:_0x2c80cd['end'],_0xe39943?_0x2c80cd['start']['isBefore'](_0xe39943['getFirstRange']()['start'])?(_0xe39943['removeMarkers'](),_0xe39943=_0x4803eb):_0x4803eb['removeMarkers']():_0xe39943=_0x4803eb;}const _0x1add42=this['_model']['createRange'](_0x5336dc,_0x2ef02c);if(_0xe39943)this['_setSuggestionRange'](_0xe39943,_0x1add42);else{const _0x3e83d1=_0x278a82(),_0x229270=_0x269ee3['id'];this['_setSuggestionData']({'id':_0x3e83d1,'type':'formatInline:'+_0x1eb326,'data':_0x173c0f,'createdAt':new Date(),'authorId':_0x229270,'attributes':_0xe77468}),this['_addSuggestionMarker']('formatInline:'+_0x1eb326,_0x3e83d1,_0x229270,_0x1add42);}}return null;}['markBlockFormat'](_0x43a9d1,_0x5a5120,_0x4e8c4a=[],_0x2239f3=null,_0x1d5856={}){_0x5a5120['formatGroupId']||(_0x5a5120['formatGroupId']=_0x5a5120['commandName']),_0x5a5120['multipleBlocks']=_0x43a9d1['is']('range'),_0x2239f3=_0x2239f3||Vt(_0x5a5120);const _0x53f85c=_0x4e8c4a['map'](_0x5504eb=>Ft(_0x5504eb,this['_model'])),_0x1353fe=_0x43a9d1['is']('range')?_0x43a9d1:Ft(_0x43a9d1,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3b92f4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2239f3,'accept');return this['forceDefaultExecution'](()=>_0x3b92f4([_0x1353fe],_0x5a5120,_0x1d5856)),null;}_0x53f85c['push'](_0x1353fe);let _0x15334a=!0x0;for(const _0x51cd13 of _0x53f85c)if(!this['_rangeIsInLocalUserInsertion'](_0x51cd13)){_0x15334a=!0x1;break;}if(_0x15334a&&'always'!==this['_trackFormatChanges']){const _0x3ec7f3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2239f3,'accept');return this['forceDefaultExecution'](()=>_0x3ec7f3([_0x1353fe],_0x5a5120,_0x1d5856)),null;}let _0x4d8109=null,_0x3d2c9a=_0x1353fe['start'],_0x41a023=_0x1353fe['end'];for(const {suggestion:_0x4c137e,meta:_0x8f8edd}of this['_findSuggestions'](_0x1353fe,'formatBlock')){if(!_0x8f8edd['isOwn'])continue;if(_0x8f8edd['isNextTo']||_0x8f8edd['containsRangeInObject']||_0x8f8edd['isInsideObject'])continue;if(_0x4c137e['data']['formatGroupId']!=_0x5a5120['formatGroupId'])continue;if(!Lt(_0x4c137e,_0x1d5856))continue;const _0x4e5c1a=_0x4c137e['getFirstRange']();if(_0x4c137e['subType']==_0x2239f3){if(_0x4e5c1a['containsRange'](_0x1353fe,!0x0))return null;_0x3d2c9a=_0x3d2c9a['isBefore'](_0x4e5c1a['start'])?_0x3d2c9a:_0x4e5c1a['start'],_0x41a023=_0x41a023['isAfter'](_0x4e5c1a['end'])?_0x41a023:_0x4e5c1a['end'],_0x4d8109?_0x4e5c1a['start']['isBefore'](_0x4d8109['getFirstRange']()['start'])?(_0x4d8109['removeMarkers'](),_0x4d8109=_0x4c137e):_0x4c137e['removeMarkers']():_0x4d8109=_0x4c137e;}else{const _0x5854c9=_0x1353fe['getIntersection'](_0x4e5c1a);this['_cutOutSuggestionMarker'](_0x4c137e,_0x5854c9);}}const _0x4de701=this['editor']['plugins']['get']('Users')['me'],_0x45fe28=_0x278a82(),_0x5efdaf=_0x4de701['id'];if(_0x4d8109)return this['_setSuggestionRange'](_0x4d8109,this['_model']['createRange'](_0x3d2c9a,_0x41a023)),_0x4d8109;{const _0x5153f3=this['_setSuggestionData']({'id':_0x45fe28,'type':'formatBlock:'+_0x2239f3,'data':_0x5a5120,'createdAt':new Date(),'authorId':_0x5efdaf,'attributes':_0x1d5856});return this['_addSuggestionMarker']('formatBlock:'+_0x2239f3,_0x45fe28,_0x5efdaf,this['_model']['createRange'](_0x3d2c9a,_0x41a023)),_0x5153f3;}}['markMultiRangeBlockFormat'](_0x5469a6,_0x584c6c,_0x5d55a2=[],_0x564ae7=null,_0x4d0233={}){_0x584c6c['formatGroupId']||(_0x584c6c['formatGroupId']=_0x584c6c['commandName']);const _0x291f69=_0x5469a6[0x0];_0x584c6c['multipleBlocks']=_0x291f69['is']('range'),_0x564ae7=_0x564ae7||Vt(_0x584c6c);const _0x536026=_0x5d55a2['map'](_0x1ce8b2=>Ft(_0x1ce8b2,this['_model'])),_0x5a3d64=_0x291f69['is']('range')?_0x5469a6:_0x5469a6['map'](_0x52a06f=>Ft(_0x52a06f,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3bf4f2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x564ae7,'accept');return this['forceDefaultExecution'](()=>_0x3bf4f2(_0x5a3d64,_0x584c6c,_0x4d0233)),null;}_0x536026['push'](..._0x5a3d64);let _0x405cd3=!0x0;for(const _0x24e6c9 of _0x536026)if(!this['_rangeIsInLocalUserInsertion'](_0x24e6c9)){_0x405cd3=!0x1;break;}if(_0x405cd3&&'always'!==this['_trackFormatChanges']){const _0xb25151=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x564ae7,'accept');return this['forceDefaultExecution'](()=>_0xb25151(_0x5a3d64,_0x584c6c,_0x4d0233)),null;}const _0x15e93d=this['editor']['plugins']['get']('Users')['me'];for(const _0x39b95e of this['getSuggestions']()){if(_0x39b95e['author']['id']!=_0x15e93d['id'])continue;if('formatBlock'!=_0x39b95e['type']||_0x39b95e['data']['formatGroupId']!=_0x584c6c['formatGroupId'])continue;if(!Lt(_0x39b95e,_0x4d0233))continue;const _0x18563d=_0x39b95e['subType']==_0x564ae7;for(let _0x3bd5d9=0x0;_0x3bd5d9<_0x5a3d64['length'];_0x3bd5d9++){const _0x190fbf=_0x5a3d64[_0x3bd5d9];for(const _0x300548 of _0x39b95e['getMarkers']()){const _0x1c630a=_0x300548['getRange']();if(_0x190fbf['isEqual'](_0x1c630a)){_0x18563d?(_0x5a3d64['splice'](_0x3bd5d9,0x1),_0x3bd5d9--):_0x39b95e['removeMarker'](_0x300548['name']);break;}}}}if(0x0==_0x5a3d64['length'])return null;const _0x345d0a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x564ae7,'join');for(const _0x1a1e78 of this['getSuggestions']())if(_0x1a1e78['author']['id']==_0x15e93d['id']&&'formatBlock'==_0x1a1e78['type']&&_0x1a1e78['data']['formatGroupId']==_0x584c6c['formatGroupId']&&_0x1a1e78['subType']==_0x564ae7&&Lt(_0x1a1e78,_0x4d0233)&&(_0x345d0a(_0x1a1e78['getRanges'](),_0x5a3d64)||_0x345d0a(_0x5a3d64,_0x1a1e78['getRanges']()))){for(const _0x520240 of _0x5a3d64)_0x1a1e78['addRange'](_0x520240);return _0x1a1e78;}const _0x10f10c=_0x278a82(),_0x3e2e9c=_0x15e93d['id'],_0x4887fb='formatBlock:'+_0x564ae7,_0x4c9d27=this['_setSuggestionData']({'id':_0x10f10c,'type':_0x4887fb,'data':_0x584c6c,'createdAt':new Date(),'authorId':_0x3e2e9c,'attributes':_0x4d0233});for(const _0x2d04a3 of _0x5a3d64)this['_addSuggestionMarker'](_0x4887fb,_0x10f10c,_0x3e2e9c,_0x2d04a3,u['getMultiRangeId']());return _0x4c9d27;}['markDeletion'](_0x540ccf,_0x30ce3d=null,_0x509abf={}){if(_0x540ccf['isCollapsed'])return null;const _0x527278=this['editor']['plugins']['get']('Users')['me'],_0x3b0715=new _0xb3bd9b(_0x540ccf['start'],_0x540ccf['end']);for(const {suggestion:_0x4cff24,meta:_0x507055}of this['_findSuggestions'](_0x3b0715,'insertion'))if(_0x507055['isOwn']&&!_0x507055['isNextTo']){if(_0x4cff24['isMultiRange']){const _0x2ff699=_0x4cff24['getRanges']()['filter'](_0x354ce3=>'$graveyard'!=_0x354ce3['root']['rootName']);_0x2ff699['every'](_0x211244=>_0x3b0715['containsRange'](_0x211244,!0x0))&&_0x4cff24['discard']();if(_0x2ff699['some'](_0x2ee8ae=>_0x2ee8ae['containsRange'](_0x3b0715,!0x0))){const _0x4e70e1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x30ce3d,'accept');return this['forceDefaultExecution'](()=>_0x4e70e1([_0x3b0715],null,_0x509abf)),null;}}else{const _0x17564a=_0x3b0715['getIntersection'](_0x4cff24['getFirstRange']());null!==_0x17564a&&_0x4cff24['_onDiscard']([_0x17564a],null,_0x509abf);}}if(_0x3b0715['detach'](),_0x3b0715['isCollapsed']||'$graveyard'==_0x3b0715['root']['rootName'])return null;let _0x5b2cde=null,_0x4a00ee=_0x3b0715['start'],_0x10b0f1=_0x3b0715['end'];const _0x13c4c8=this['_findSuggestions'](_0x3b0715,'deletion');for(const {suggestion:_0x167139,meta:_0x33ff89}of _0x13c4c8){const _0x39cfd0=this['_model']['createRange'](_0x4a00ee,_0x10b0f1);if(_0x33ff89['isOwn']&&(this['_mergeNestedSuggestions']||!_0x33ff89['containsRangeInObject']&&!_0x33ff89['isInsideObject'])){if(_0x167139['isMultiRange']){if(!Lt(_0x167139,_0x509abf))continue;let _0x4a34ef=!0x0;for(const _0x57b1e8 of _0x167139['getRanges']()){if(_0x57b1e8['containsRange'](_0x39cfd0,!0x0))return _0x167139;_0x39cfd0['containsRange'](_0x57b1e8)||(_0x4a34ef=!0x1);}_0x4a34ef&&_0x167139['discard']();}else{const _0x2e5166=_0x167139['getFirstRange']();if(_0x2e5166['containsRange'](_0x39cfd0,!0x0))return _0x167139;if(!Lt(_0x167139,_0x509abf)){_0x39cfd0['containsRange'](_0x2e5166)?_0x167139['removeMarkers']():_0x2e5166['containsPosition'](_0x4a00ee)?_0x4a00ee=_0x2e5166['end']:_0x2e5166['containsPosition'](_0x10b0f1)&&(_0x10b0f1=_0x2e5166['start']);continue;}_0x4a00ee=_0x4a00ee['isBefore'](_0x2e5166['start'])?_0x4a00ee:_0x2e5166['start'],_0x10b0f1=_0x10b0f1['isAfter'](_0x2e5166['end'])?_0x10b0f1:_0x2e5166['end'],_0x509abf=Object['assign']({},_0x167139['attributes']),_0x5b2cde?_0x2e5166['start']['isBefore'](_0x5b2cde['getFirstRange']()['start'])?(_0x5b2cde['removeMarkers'](),_0x5b2cde=_0x167139):_0x167139['removeMarkers']():_0x5b2cde=_0x167139;}}}if(_0x5b2cde)return this['_setSuggestionRange'](_0x5b2cde,this['_model']['createRange'](_0x4a00ee,_0x10b0f1)),_0x5b2cde;{const _0x4d4a67=_0x278a82(),_0x21e463=this['_model']['createRange'](_0x4a00ee,_0x10b0f1),_0x57f3ca=_0x527278['id'],_0x35f476=_0x30ce3d?'deletion:'+_0x30ce3d:'deletion',_0x2aeb9d=this['_setSuggestionData']({'id':_0x4d4a67,'type':_0x35f476,'createdAt':new Date(),'authorId':_0x57f3ca,'attributes':_0x509abf});return this['_addSuggestionMarker'](_0x35f476,_0x4d4a67,_0x57f3ca,_0x21e463),_0x2aeb9d;}}['markMultiRangeDeletion'](_0x234122,_0x1fc865='multi',_0x1715fa={}){const _0x3cb4ac=this['editor']['plugins']['get']('Users')['me'],_0xc508ce=_0x234122['map'](_0x3b5684=>new _0xb3bd9b(_0x3b5684['start'],_0x3b5684['end'])),_0x4f23c3=new Set();for(const {suggestion:_0x6ee97a,meta:_0x36d5a7}of this['_findSuggestions'](_0xc508ce,'insertion'))_0x36d5a7['isOwn']&&!_0x36d5a7['isNextTo']&&_0x4f23c3['add'](_0x6ee97a);for(const _0x410b72 of _0x4f23c3)if(_0x410b72['isMultiRange']){const _0x50525b=_0x410b72['getRanges']();(!_0x410b72['attributes']||!_0x410b72['attributes']['skipNestingCheck'])&&(_0x50525b['every'](_0x3a15aa=>_0xc508ce['some'](_0x342348=>_0x342348['containsRange'](_0x3a15aa,!0x0)))&&_0x410b72['discard']());if(_0xc508ce['every'](_0x5d02bc=>_0x50525b['some'](_0x3711a8=>_0x3711a8['containsRange'](_0x5d02bc,!0x0)))){const _0x436e7e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1fc865,'accept');return this['forceDefaultExecution'](()=>_0x436e7e(_0x234122,null,_0x1715fa)),null;}}else{const _0x1e8550=_0x410b72['getFirstRange']();_0xc508ce['some'](_0x3a0c3e=>_0x3a0c3e['containsRange'](_0x1e8550,!0x0))&&_0x410b72['discard']();if(_0xc508ce['every'](_0x50644e=>_0x1e8550['containsRange'](_0x50644e,!0x0))){const _0x4d8a12=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1fc865,'accept');return this['forceDefaultExecution'](()=>_0x4d8a12(_0xc508ce,null,_0x1715fa)),null;}}const _0x3cb959=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1fc865,'join');let _0x120809=null;for(const _0x346457 of this['getSuggestions']())if(_0x346457['author']['id']==_0x3cb4ac['id']&&_0x346457['isInContent']&&'deletion'==_0x346457['type']&&_0x346457['subType']==_0x1fc865&&Lt(_0x346457,_0x1715fa)&&(_0x3cb959(_0x346457['getRanges'](),_0xc508ce)||_0x3cb959(_0xc508ce,_0x346457['getRanges']()))){if(_0x120809){if(_0x346457['commentThread']&&_0x346457['commentThread']['length'])continue;for(const _0x188106 of _0x346457['getRanges']())_0x120809['isIntersectingWithRange'](_0x188106)||_0x120809['addRange'](_0x188106);_0x346457['removeMarkers']();}else{_0x120809=_0x346457;for(const _0x5b09d2 of _0xc508ce)_0x346457['isIntersectingWithRange'](_0x5b09d2)||_0x346457['addRange'](_0x5b09d2);}}if(_0x120809)return _0x120809;_0x4f23c3['clear']();for(const {suggestion:_0x1266de,meta:_0x34cec9}of this['_findSuggestions'](_0xc508ce,'deletion'))_0x34cec9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x34cec9['containsRangeInObject']&&!_0x34cec9['isInsideObject'])&&Lt(_0x1266de,_0x1715fa)&&_0x4f23c3['add'](_0x1266de);for(const _0x24d09b of _0x4f23c3){const _0x18692b=_0x24d09b['getRanges']();if(!_0x1715fa||!_0x1715fa['skipNestingCheck']){if(_0xc508ce['every'](_0x5c8d8f=>_0x18692b['some'](_0x1ebd66=>_0x1ebd66['containsRange'](_0x5c8d8f,!0x0))))return _0x24d09b;}(!_0x24d09b['attributes']||!_0x24d09b['attributes']['skipNestingCheck'])&&(_0x18692b['every'](_0x40e643=>_0xc508ce['some'](_0x40fab6=>_0x40fab6['containsRange'](_0x40e643,!0x0)))&&_0x24d09b['discard']());}const _0x6dfb19=_0x278a82(),_0x54ccda=_0x3cb4ac['id'],_0xab016d='deletion:'+_0x1fc865,_0x5abb63=this['_setSuggestionData']({'id':_0x6dfb19,'type':_0xab016d,'createdAt':new Date(),'authorId':_0x54ccda,'attributes':_0x1715fa});for(const _0x3461d3 of _0xc508ce)_0x3461d3['detach'](),_0x3461d3['isCollapsed']||'$graveyard'==_0x3461d3['root']['rootName']||this['_addSuggestionMarker'](_0xab016d,_0x6dfb19,_0x54ccda,_0x3461d3,u['getMultiRangeId']());return _0x5abb63;}['markAttributeChange'](_0x19d017,_0x22e2a1,_0x27d648,_0x2f56d2,_0x1f8422){if(_0x19d017['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x557a8d=this['editor']['plugins']['get']('Users')['me']['id'],_0x56bb10=Array['from'](this['_suggestions']['values']())['filter'](_0x4e57af=>'attribute'==_0x4e57af['type']&&_0x4e57af['data']['key']==_0x22e2a1&&_0x4e57af['isIntersectingWithRange'](_0x19d017));if('default'===this['_trackFormatChanges']){const _0x278544=this['_findSuggestions'](_0x19d017,'insertion')['filter'](({meta:_0x4f88b4})=>_0x4f88b4['isOwn']&&!_0x4f88b4['isInsideObject']&&!_0x4f88b4['isNextTo'])['map'](({suggestion:_0x4e0621})=>_0x4e0621);_0x56bb10['unshift'](..._0x278544);}const _0x269dcc=new Map([[_0x19d017,_0x27d648]]);for(const _0x1e1f5c of _0x56bb10){const _0x3fc28f='attribute'==_0x1e1f5c['type']?_0x1e1f5c['data']['oldValue']:void 0x0,_0x6389ec=_0x1e1f5c['getFirstRange'](),_0x12160d=Array['from'](_0x269dcc['keys']())['find'](_0x149964=>_0x149964['isIntersecting'](_0x6389ec));if(!_0x12160d)continue;const _0x14e576=_0x12160d['getDifference'](_0x6389ec);this['_isBlockAttribute'](_0x22e2a1)&&'insertion'==_0x1e1f5c['type']&&0x0!=_0x14e576['length']||(_0x269dcc['delete'](_0x12160d),_0x14e576['forEach'](_0x5154b4=>{_0x269dcc['set'](_0x5154b4,_0x27d648);}),'insertion'!=_0x1e1f5c['type']&&_0x3fc28f!=_0x2f56d2&&_0x269dcc['set'](_0x12160d['getIntersection'](_0x6389ec),_0x3fc28f));}const _0x2ee3e6=[];for(const [_0xaf35f,_0x5468a7]of _0x269dcc){const _0x3fe0be=_0x278a82(),_0x225c11={'key':_0x22e2a1,'oldValue':_0x5468a7,'newValue':_0x2f56d2};_0x22e2a1['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':_0x22e2a1});const _0x4b2083=('attribute:'+(_0x22e2a1+'|'+Vt({'newValue':_0x2f56d2})))['substring'](0x0,0x3c),_0x479e8c=this['_setSuggestionData']({'id':_0x3fe0be,'type':_0x4b2083,'data':_0x225c11,'createdAt':new Date(),'authorId':_0x557a8d,'attributes':_0x1f8422});_0x2ee3e6['push'](_0x479e8c),this['_addSuggestionMarker'](_0x4b2083,_0x3fe0be,_0x557a8d,_0xaf35f);}return _0x2ee3e6;}['enableDefaultAttributesIntegration'](_0x4083ff){this['enableCommand'](_0x4083ff,(_0x4fbc82,..._0x27e01e)=>{this['_recordAttributeChanges'](()=>{_0x4fbc82(..._0x27e01e);});});}['registerBlockAttribute'](_0x3b7629){this['_blockAttributeKeys']['add'](_0x3b7629);}['registerInlineAttribute'](_0x566095){this['_inlineAttributeKeys']['add'](_0x566095);}['_getAttributeKey'](_0x18a6dc){return'attribute'==_0x18a6dc['type']?_0x18a6dc['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4084d8,_0x56d2b5){const _0x19d0ab=_0x4084d8['getFirstMarker']();this['_model']['change'](_0x527223=>{_0x527223['updateMarker'](_0x19d0ab,{'range':_0x56d2b5});});}['_addThreadToSuggestion'](_0x5e4785){const _0x16f293=_0x5e4785['id'],_0x3f48fb=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x16f293)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3f48fb,'threadId':_0x16f293,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x121172=this['_commentsRepository']['getCommentThread'](_0x16f293);_0x121172['unbind']('isRemovable'),_0x121172['isRemovable']=!0x1,_0x5e4785['commentThread']=_0x121172;}['_checkSuggestionCorrectness'](_0xe2e8e1,_0x861c00,_0x590bee,_0x4ab92f){if(_0xe2e8e1['type']!=_0x861c00||_0xe2e8e1['subType']!=_0x590bee||_0xe2e8e1['creator']['id']!=_0x4ab92f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x514bf6('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x574843,_0x3b0fce){const _0x4f23e5=_0x574843['getFirstRange']();if(_0x3b0fce['isEqual'](_0x4f23e5))_0x574843['removeMarkers']();else{if(_0x4f23e5['containsRange'](_0x3b0fce)){const _0x1eadcf=this['_model']['createPositionAt'](_0x3b0fce['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x574843,this['_model']['createRange'](_0x4f23e5['start'],_0x1eadcf));const _0x1ac393=_0x278a82(),_0x16e28e=_0x574843['creator']['id'],_0x51e6f2=_0x574843['type']+':'+_0x574843['subType'];this['_setSuggestionData']({'id':_0x1ac393,'type':_0x51e6f2,'createdAt':new Date(),'authorId':_0x16e28e,'data':_0x574843['data'],'attributes':_0x574843['attributes']});const _0xcdd02f=this['_model']['createPositionAt'](_0x3b0fce['end']['parent'],'after'),_0x3ee160=this['_model']['createRange'](_0xcdd02f,_0x4f23e5['end']);this['_addSuggestionMarker'](_0x51e6f2,_0x1ac393,_0x16e28e,_0x3ee160);}else{if(_0x4f23e5['containsPosition'](_0x3b0fce['start'])){const _0x519589=this['_model']['createPositionAt'](_0x3b0fce['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x574843,this['_model']['createRange'](_0x4f23e5['start'],_0x519589));}else{const _0x2c03dd=this['_model']['createPositionAt'](_0x3b0fce['end']['parent'],'after');this['_setSuggestionRange'](_0x574843,this['_model']['createRange'](_0x2c03dd,_0x4f23e5['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xf2123f){for(const {suggestion:_0x2dbc03,meta:_0x405e4b}of this['_findSuggestions'](_0xf2123f,'insertion')){if(!_0x405e4b['isOwn'])continue;const _0x3b3a98=_0x2dbc03['getRanges']();for(const _0x951aa of _0x3b3a98)if(!_0xf2123f['getDifference'](_0x951aa)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x43da33){const _0xa93614=this['editor']['plugins']['get']('Users')['getUser'](_0x43da33);if(!_0xa93614)throw new _0x514bf6('track-changes-user-not-found',this);return _0xa93614;}['_getExternalAuthor'](_0x3fa2eb){const _0x26bffd=this['editor']['plugins']['get']('Users'),_0x4b9ae8=_0x35a39a('external:'+_0x3fa2eb),_0x34524a=_0x26bffd['getUser'](_0x4b9ae8);return _0x34524a||_0x26bffd['addUser']({'id':_0x4b9ae8,'name':_0x3fa2eb});}['_createSuggestion'](_0x2070a3,_0xc0c429,_0x48b18b,_0xf26042,_0x4346d0){const _0x6512c2=this['_getAuthorFromId'](_0xf26042),_0x1149d3=this['_suggestionFactory']['buildSuggestion'](_0x2070a3,_0xc0c429,_0x48b18b,_0x6512c2,_0x4346d0,_0xedac67=>{this['_updateSuggestionData'](_0x48b18b,{'attributes':_0xedac67});const _0x3f8a5d=this['getSuggestion'](_0x48b18b);this['_joinWithAdjacentSuggestions'](new Set([_0x3f8a5d])),this['_refreshSuggestionsChain'](new Set([_0x3f8a5d]));});return this['listenTo'](_0x1149d3,'accept',()=>{this['_updateSuggestionData'](_0x48b18b,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1149d3,'discard',()=>{this['_updateSuggestionData'](_0x48b18b,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x48b18b,_0x1149d3),this['_suggestionState']['set'](_0x1149d3,'notReady'),_0x1149d3;}['_splitMarkerName'](_0x4fb8f2){const _0x5f337b=_0x4fb8f2['split'](':');return{'group':_0x5f337b[0x0],'type':_0x5f337b[0x1],'subType':_0x5f337b['length']>=0x5?_0x5f337b[0x2]:null,'id':_0x5f337b['length']<0x5?_0x5f337b[0x2]:_0x5f337b[0x3],'authorId':_0x5f337b['length']<0x5?_0x5f337b[0x3]:_0x5f337b[0x4],'markerCount':0x6==_0x5f337b['length']?_0x5f337b[0x5]:null};}['_breakSuggestionMarker'](_0x40b317,_0x1cab42,_0x330fd9){const _0xfd1bec=_0x40b317['getFirstRange'](),_0x32016c=_0xfd1bec['start'],_0x4cc945=_0xfd1bec['end'];this['_setSuggestionRange'](_0x40b317,this['_model']['createRange'](_0x32016c,_0x1cab42));const _0xcd90d=_0x278a82(),_0x478e7f=_0x40b317['creator']['id'],_0x8e222c=_0x40b317['type']+(_0x40b317['subType']?':'+_0x40b317['subType']:'');this['_setSuggestionData']({'id':_0xcd90d,'type':_0x8e222c,'createdAt':new Date(),'authorId':_0x478e7f,'originalSuggestionId':_0x40b317['id'],'attributes':_0x40b317['attributes'],'data':_0x40b317['data']});const _0x2d05a0=this['_getAttributeKey'](_0x40b317);('formatBlock'==_0x40b317['type']||_0x2d05a0&&this['_isBlockAttribute'](_0x2d05a0))&&(_0x330fd9=this['_model']['createPositionBefore'](_0x330fd9['parent'])),this['_addSuggestionMarker'](_0x8e222c,_0xcd90d,_0x478e7f,this['_model']['createRange'](_0x330fd9,_0x4cc945));}['_findSuggestions'](_0x1319ba,_0x5e74bf=null){const _0x90a1c7=[],_0xfd2f0e=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1319ba)||(_0x1319ba=[_0x1319ba]);for(const _0x524437 of this['getSuggestions']()){if(!_0x524437['isInContent'])continue;if(_0x5e74bf&&_0x524437['type']!=_0x5e74bf)continue;let _0xd1afb5=!0x1;for(const _0x141e9c of _0x524437['getRanges']()){for(const _0x3cdd60 of _0x1319ba){const _0x162638=_0x3cdd60['start']['isEqual'](_0x141e9c['end'])||_0x3cdd60['end']['isEqual'](_0x141e9c['start']);if(_0x162638||_0x3cdd60['getIntersection'](_0x141e9c)){const _0x2bb050=_0x3cdd60['containsRange'](_0x141e9c)&&Rt(this['_model']['schema'],_0x141e9c['start'],_0x3cdd60),_0x47ab62=_0x141e9c['containsRange'](_0x3cdd60)&&Rt(this['_model']['schema'],_0x3cdd60['start'],_0x141e9c);_0x90a1c7['push']({'suggestion':_0x524437,'meta':{'isOwn':_0xfd2f0e==_0x524437['author'],'isNextTo':_0x162638,'isInsideObject':_0x2bb050,'containsRangeInObject':_0x47ab62}}),_0xd1afb5=!0x0;break;}}if(_0xd1afb5)break;}}return _0x90a1c7;}['_addSuggestionMarker'](_0x11d3a2,_0x20c4ec,_0x38ef84,_0x26cf26,_0x451778){this['_model']['change'](_0x4dd00d=>{let _0xc2844e='suggestion:'+_0x11d3a2+':'+_0x20c4ec+':'+_0x38ef84;_0x451778&&(_0xc2844e=_0xc2844e+':'+_0x451778),_0x4dd00d['addMarker'](_0xc2844e,{'range':_0x26cf26,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3723b3){const _0x30c898=_0x3723b3['previous'],_0x55f911=_0x3723b3['next'];_0x3723b3['previous']=null,_0x3723b3['next']=null,null!=_0x30c898&&_0x30c898['next']==_0x3723b3&&(_0x30c898['next']=_0x55f911),null!=_0x55f911&&_0x55f911['previous']==_0x3723b3&&(_0x55f911['previous']=_0x30c898),'ready'==this['_suggestionState']['get'](_0x3723b3)&&(this['_suggestionState']['set'](_0x3723b3,'removed'),this['fire']('suggestionUnloaded',_0x3723b3,_0x30c898,_0x55f911));}['_setSuggestionData'](_0x2950e3){const _0x9dcb9=_0x2950e3['id'],_0x4ca2a3=this['addSuggestionData'](_0x2950e3);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x34fa8b=this['editor']['plugins']['get']('PendingActions'),_0x5d77c6=_0x4ca2a3['hasComments'],_0x1f3f36=_0x4ca2a3['subType']?_0x4ca2a3['type']+':'+_0x4ca2a3['subType']:_0x4ca2a3['type'],_0x1fcde5=this['editor']['locale'],_0x42e36b=_0x34fa8b['add'](o(_0x1fcde5,'PENDING_ACTION_SUGGESTION')),_0x1f6793={'id':_0x9dcb9,'type':_0x1f3f36,'hasComments':_0x5d77c6,'data':_0x2950e3['data']||null,'originalSuggestionId':_0x2950e3['originalSuggestionId']||null,'attributes':_0x4ca2a3['attributes']};this['_adapter']['addSuggestion'](_0x1f6793)['then'](_0x12ae9c=>{_0x4ca2a3['_saved']=!0x0,_0x34fa8b['remove'](_0x42e36b),_0x12ae9c&&_0x12ae9c['createdAt']&&(this['_suggestions']['get'](_0x9dcb9)['createdAt']=_0x12ae9c['createdAt']);})['catch'](_0x1978f1=>{throw _0x320ee5('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4ca2a3['discard']();}),_0x4ca2a3['stopListening'](),this['_suggestions']['delete'](_0x4ca2a3['id']),this['_suggestionState']['delete'](_0x4ca2a3),_0x1978f1;});}return _0x4ca2a3;}['_isBlockAttribute'](_0x953030){return this['_blockAttributeKeys']['has'](_0x953030);}['_updateSuggestionData'](_0x45eee3,_0xd9df89){const _0x457297=this['editor']['plugins']['get']('PendingActions'),_0x405775=this['getSuggestion'](_0x45eee3);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x405775['_saved']){const _0x1ea397=_0x457297['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x45eee3,_0xd9df89)['then'](()=>{_0x457297['remove'](_0x1ea397);});}else _0x405775['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x45eee3,_0xd9df89);});}}['_getSuggestionData'](_0x2e7610){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x514bf6('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2e7610);}['_handleNewSuggestionMarker'](_0xaf7fe1){const {id:_0x4d409b,type:_0x1cb583,subType:_0x33417a,authorId:_0x3a3a33}=this['_splitMarkerName'](_0xaf7fe1),_0x217cb0=this['_suggestions']['get'](_0x4d409b)||this['_createSuggestion'](_0x1cb583,_0x33417a,_0x4d409b,_0x3a3a33,{});switch(this['_checkSuggestionCorrectness'](_0x217cb0,_0x1cb583,_0x33417a,_0x3a3a33),this['_suggestionState']['get'](_0x217cb0)){case'notReady':this['_getSuggestionData'](_0x4d409b)['then'](_0x2f8bf9=>{let _0x47ac13=Promise['resolve']();_0x2f8bf9['hasComments']&&(_0x47ac13=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4d409b})),_0x47ac13['then'](()=>{this['addSuggestionData'](_0x2f8bf9)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x217cb0,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4d409b,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x217cb0,'ready'),this['fire']('suggestionLoaded',_0x217cb0);break;case'ready':this['fire']('suggestionChanged',_0x217cb0);}return _0x217cb0['addMarkerName'](_0xaf7fe1),_0x217cb0;}['_refreshSuggestionsChain'](_0xa82537){const _0x1b4a22=Array['from'](_0xa82537),_0x56e39d=_0x1b4a22['filter'](_0x45dea3=>'attribute'==_0x45dea3['type']);this['_refreshAttributeSuggestionsChain'](_0x56e39d);const _0x5d1ea3=_0x1b4a22['filter'](_0x2736ba=>!_0x2736ba['isMultiRange']&&'attribute'!=_0x2736ba['type']),_0x14a8c4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x553535=>!_0x553535['isMultiRange']&&'attribute'!=_0x553535['type']),_0x1101bb=_0x14a8c4['filter'](_0x53de2a=>!_0xa82537['has'](_0x53de2a)),_0x40e1b9=new Map(_0x14a8c4['map'](_0x367ad9=>[_0x367ad9,this['_suggestionFactory']['getSuggestionCallback'](_0x367ad9['type'],_0x367ad9['subType'],'chain')])),_0x32ecd3=new Map(_0x14a8c4['map'](_0x139f71=>[_0x139f71,_0x139f71['getFirstRange']()])),_0x2d3b7a=new Set(),_0x49375e=new Set();for(let _0x15f321=0x0;_0x15f321<_0x5d1ea3['length'];_0x15f321++)_0x48177c(_0x5d1ea3[_0x15f321],_0x5d1ea3,_0x15f321+0x1);for(let _0x4efbe5=0x0;_0x4efbe5<_0x5d1ea3['length'];_0x4efbe5++)_0x48177c(_0x5d1ea3[_0x4efbe5],_0x1101bb,0x0);const _0x5b3b7f=new Set();for(let _0xf5dde8=0x0;_0xf5dde8<_0x5d1ea3['length'];_0xf5dde8++){const _0x1b2027=_0x5d1ea3[_0xf5dde8];!_0x49375e['has'](_0x1b2027)&&_0x1b2027['previous']&&(_0x5b3b7f['add'](_0x1b2027['previous']),_0x1b2027['previous']['next']===_0x1b2027&&(_0x1b2027['previous']['next']=null),_0x1b2027['previous']=null),!_0x2d3b7a['has'](_0x1b2027)&&_0x1b2027['next']&&(_0x5b3b7f['add'](_0x1b2027['next']),_0x1b2027['next']['previous']===_0x1b2027&&(_0x1b2027['next']['previous']=null),_0x1b2027['next']=null);}function _0x48177c(_0x4fcf23,_0x2ba9e4,_0x2ed95b){for(let _0x4639d0=_0x2ed95b;_0x4639d0<_0x2ba9e4['length'];_0x4639d0++){const _0x551720=_0x2f04dc(_0x4fcf23,_0x2ba9e4[_0x4639d0]);_0x551720&&(_0x551720[0x0]['next']=_0x551720[0x1],_0x551720[0x1]['previous']=_0x551720[0x0],_0x2d3b7a['add'](_0x551720[0x0]),_0x49375e['add'](_0x551720[0x1]));}}function _0x2f04dc(_0x20a042,_0xc67d3b){if(_0x20a042['author']['id']!==_0xc67d3b['author']['id'])return null;const _0x3eb664=_0x40e1b9['get'](_0x20a042)(_0x20a042,_0xc67d3b,_0x32ecd3['get'](_0x20a042),_0x32ecd3['get'](_0xc67d3b));if(!_0x3eb664)return null;return _0x40e1b9['get'](_0xc67d3b)(_0x20a042,_0xc67d3b,_0x32ecd3['get'](_0x20a042),_0x32ecd3['get'](_0xc67d3b))?_0x3eb664[0x1]['commentThread']&&_0x3eb664[0x1]['commentThread']['length']?null:_0x3eb664:null;}_0x5b3b7f['size']&&this['_refreshSuggestionsChain'](_0x5b3b7f);}['_refreshAttributeSuggestionsChain'](_0x2a33f1){if(0x0==_0x2a33f1['length'])return;const _0x111d7f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x31d33c=>'attribute'==_0x31d33c['type']&&_0x31d33c['_isDataLoaded']),_0x167aba=[],_0x309bbb=new Map();for(const _0x408277 of _0x111d7f){const _0x439f15=_0x35a39a(_0x408277['attributes']);_0x309bbb['has'](_0x439f15)||(_0x309bbb['set'](_0x439f15,_0x167aba['length']),_0x167aba['push']([]));const _0xc1f75e=_0x309bbb['get'](_0x439f15);_0x167aba[_0xc1f75e]['push'](_0x408277);}!(function(){_0x167aba['sort']((_0x591780,_0x198c3a)=>{const _0x5afe41=_0x591780[0x0]['createdAt'],_0xfbce45=_0x198c3a[0x0]['createdAt'];return _0x5afe41==_0xfbce45?_0x591780[0x0]['attributes']['groupId']<_0x198c3a[0x0]['attributes']['groupId']?-0x1:0x1:_0x5afe41<_0xfbce45?-0x1:0x1;});for(const _0x2f0faa of _0x167aba)_0x2f0faa['sort']((_0x303c74,_0x1b693f)=>_0x303c74['id']<_0x1b693f['id']?-0x1:0x1);}());for(let _0x1af3bc=0x0;_0x1af3bc<_0x167aba['length'];_0x1af3bc++){if(0x0==_0x167aba[_0x1af3bc]['length'])continue;const _0x15dfa3=[];for(let _0x3da38e=_0x1af3bc+0x1;_0x3da38e<_0x167aba['length'];_0x3da38e++)0x0!=_0x167aba[_0x3da38e]['length']&&_0x2c90ac(_0x167aba[_0x1af3bc],_0x167aba[_0x3da38e])&&_0x15dfa3['push'](_0x3da38e);for(const _0x2f1057 of _0x15dfa3)_0x167aba[_0x1af3bc]=_0x167aba[_0x1af3bc]['concat'](_0x167aba[_0x2f1057]),_0x167aba[_0x2f1057]=[];}for(const _0x326f43 of _0x167aba)for(let _0xb7726f=0x0;_0xb7726f<_0x326f43['length'];_0xb7726f++)_0x326f43[_0xb7726f]['next']=_0x326f43[_0xb7726f+0x1]||null;for(const _0x564a2b of _0x167aba)for(let _0x3017ad=0x0;_0x3017ad<_0x564a2b['length'];_0x3017ad++)_0x564a2b[_0x3017ad]['previous']=_0x564a2b[_0x3017ad-0x1]||null;function _0x2c90ac(_0x32a085,_0x3a6ca6){if(_0x32a085[0x0]['attributes']['groupId']!==_0x3a6ca6[0x0]['attributes']['groupId']&&_0x32a085[0x0]['author']!==_0x3a6ca6[0x0]['author'])return!0x1;if(!function(_0x1ff0c6,_0x34febd){if(!_0x1ff0c6['hasComments']&&!_0x34febd['hasComments'])return!0x0;if(_0x1ff0c6['hasComments']&&_0x34febd['hasComments'])return!0x1;if(_0x1ff0c6['hasComments']&&_0x34febd['createdAt']<_0x1ff0c6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x34febd['hasComments']&&_0x1ff0c6['createdAt']<_0x34febd['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x32a085[0x0],_0x3a6ca6[0x0]))return!0x1;const _0x1ca2d6=Bt(_0x32a085[0x0]['attributes'],'groupId'),_0x11f18f=Bt(_0x3a6ca6[0x0]['attributes'],'groupId');if(!_0x3c4be2(_0x1ca2d6,_0x11f18f))return!0x1;return!!_0x32a085['every'](_0x30f4cc=>_0x3a6ca6['some'](_0x42b1be=>_0x30f4cc['getFirstRange']()['isEqual'](_0x42b1be['getFirstRange']())))&&_0x3a6ca6['every'](_0x455a5f=>_0x32a085['some'](_0x6e9b44=>_0x455a5f['getFirstRange']()['isEqual'](_0x6e9b44['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xe4d6f0){const _0x4cc5d1=Array['from'](_0xe4d6f0),_0x2bc99a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2c3dad=_0x2bc99a['filter'](_0x49569a=>!_0xe4d6f0['has'](_0x49569a)),_0x23d0e0=new Map(_0x4cc5d1['map'](_0x347eb2=>[_0x347eb2,this['_suggestionFactory']['getSuggestionCallback'](_0x347eb2['type'],_0x347eb2['subType'],'join')])),_0x45b4e8=new Map(_0x2bc99a['map'](_0x246c5b=>[_0x246c5b,_0x246c5b['getRanges']()]));for(let _0x4a72ad=0x0;_0x4a72ad<_0x4cc5d1['length'];_0x4a72ad++){if(_0xaa2c52(this,_0x4cc5d1[_0x4a72ad],_0x4cc5d1,_0x4a72ad+0x1))return!0x0;}for(let _0x4869eb=0x0;_0x4869eb<_0x4cc5d1['length'];_0x4869eb++){if(_0xaa2c52(this,_0x4cc5d1[_0x4869eb],_0x2c3dad,0x0))return!0x0;}return!0x1;function _0xaa2c52(_0x17b8a4,_0x4a1eef,_0x5442b5,_0x2057ec){for(let _0x1ad39c=_0x2057ec;_0x1ad39c<_0x5442b5['length'];_0x1ad39c++){const _0x26c0cb=_0x5442b5[_0x1ad39c];if(_0x26c0cb['type']!==_0x4a1eef['type']||_0x26c0cb['author']['id']!==_0x4a1eef['author']['id']||_0x26c0cb['subType']!==_0x4a1eef['subType'])continue;if(!Pt(_0x4a1eef,_0x26c0cb,['groupId']))continue;if('attribute'==_0x4a1eef['type']&&_0x4a1eef['data']['oldValue']!=_0x26c0cb['data']['oldValue'])continue;if('attribute'==_0x4a1eef['type']&&_0x17b8a4['_isBlockAttribute'](_0x4a1eef['data']['key']))continue;if('formatBlock'==_0x4a1eef['type']){const _0x1f4b60=_0x17b8a4['editor']['model'],_0x53a06d=_0x4a1eef['getContainedElement']();if(_0x53a06d&&(_0x1f4b60['schema']['isObject'](_0x53a06d)||_0x1f4b60['schema']['isLimit'](_0x53a06d)))continue;}const _0x1e2274=_0x23d0e0['get'](_0x4a1eef),_0xd32b85=_0x45b4e8['get'](_0x4a1eef),_0x83066c=_0x45b4e8['get'](_0x26c0cb),_0x227147=_0x4a1eef['commentThread']&&_0x4a1eef['commentThread']['length'],_0x325f4f=_0x26c0cb['commentThread']&&_0x26c0cb['commentThread']['length'];if(!_0x227147&&_0x1e2274(_0x83066c,_0xd32b85))return _0x17b8a4['_joinSuggestions'](_0x26c0cb,_0x4a1eef),_0x45b4e8['delete'](_0x4a1eef),!0x0;if(!_0x325f4f&&_0x1e2274(_0xd32b85,_0x83066c))return _0x17b8a4['_joinSuggestions'](_0x4a1eef,_0x26c0cb),_0x45b4e8['delete'](_0x26c0cb),!0x0;}return!0x1;}}['_joinSuggestions'](_0x906615,_0x2ed321){if(_0x906615['isMultiRange']){for(const _0x553c73 of _0x2ed321['getRanges']())_0x906615['addRange'](_0x553c73);}else{const _0x4e3441=_0x2ed321['getFirstRange']()['end'];this['_setSuggestionRange'](_0x906615,this['_model']['createRange'](_0x906615['getFirstRange']()['start'],_0x4e3441));}_0x2ed321['removeMarkers']();}['_getMarkerAnnouncementText'](_0x27bbf3,_0x4ad50e){const _0x46385a=_0x27bbf3['startsWith']('format')||_0x27bbf3['startsWith']('attribute')?'FORMATTING':_0x27bbf3['toUpperCase']();return o(this['editor']['locale'],_0x4ad50e+'_'+_0x46385a+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x39727b=this['editor'];if(!_0x39727b['ui'])return;const {ariaLiveAnnouncer:_0x222735}=_0x39727b['ui'];_0x55508a(this['_model'],({left:_0x817905,entered:_0x248a03})=>{for(const _0x487a1e of _0x817905){const {group:_0x25a554,type:_0x384387}=this['_splitMarkerName'](_0x487a1e['name']);if('suggestion'===_0x25a554){_0x222735['announce'](this['_getMarkerAnnouncementText'](_0x384387,'LEAVE'));break;}}for(const _0x4664b2 of _0x248a03){const {group:_0x51074a,type:_0x3b971c}=this['_splitMarkerName'](_0x4664b2['name']);if('suggestion'===_0x51074a){_0x222735['announce'](this['_getMarkerAnnouncementText'](_0x3b971c,'ENTER'));break;}}});}['_processAttributeChanges'](_0x53c9ec){if(this['_recordAttributeSuggestions'])return!0x1;const _0x30fcf9=this['editor'],_0x1167fe=_0x30fcf9['model']['document']['differ']['getChanges']();if(0x0==_0x1167fe['length'])return!0x1;const _0x27f7d0=[],_0x45d270=_0x1167fe['filter'](_0x3d1f0c=>'attribute'==_0x3d1f0c['type']),_0x310997=_0x1167fe['filter'](_0x157474=>'insert'==_0x157474['type']&&'$text'!=_0x157474['name']),_0x1467ae=_0x1167fe['filter'](_0x551c66=>'remove'==_0x551c66['type']&&'$text'!=_0x551c66['name']);for(const _0x39beef of _0x45d270)_0x27f7d0['push']({'key':_0x39beef['attributeKey'],'newValue':_0x39beef['attributeNewValue'],'oldValue':_0x39beef['attributeOldValue'],'range':Ot(_0x39beef['range'],_0x30fcf9['model'])});for(const _0x45b2f0 of _0x310997){const _0x484121=_0x1467ae['find'](_0x1895d5=>_0x1895d5['position']['isEqual'](_0x45b2f0['position']));_0x484121&&_0x27f7d0['push']({'key':m,'newValue':_0x45b2f0['name'],'oldValue':_0x484121['name'],'range':_0x30fcf9['model']['createRangeOn'](_0x45b2f0['position']['nodeAfter'])});}return 0x0!=_0x27f7d0['length']&&this['_reduceExistingSuggestions'](_0x53c9ec,_0x27f7d0);}['_processAttributeSuggestions'](_0xea90bb){let _0x195801=!0x1;const _0x8f2c93=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4d6842=>_0x4d6842['data']['newRange']&&_0x4d6842['name']['startsWith']('suggestion:attribute:'));for(const _0x5c1635 of _0x8f2c93){const {subType:_0x2699e3,id:_0xedb77b}=this['_splitMarkerName'](_0x5c1635['name']),_0x33c823=_0x2699e3['split']('|')[0x0];for(const _0x784c6 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x784c6['id']!=_0xedb77b&&'attribute'==_0x784c6['type']&&_0x784c6['data']&&_0x784c6['data']['key']==_0x33c823&&_0x784c6['getFirstRange']()['isIntersecting'](_0x5c1635['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x784c6,_0x5c1635['data']['newRange'],_0xea90bb),_0x195801=!0x0);}return _0x195801;}['_recordAttributeChanges'](_0x422ac3){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x422ac3();}['_isRegisteredAttribute'](_0x5d6dc5){const _0x328c9d=this['_isBlockAttribute'](_0x5d6dc5),_0x17cb4e=this['_inlineAttributeKeys']['has'](_0x5d6dc5);return _0x328c9d||_0x17cb4e;}['_reduceExistingSuggestions'](_0x42dad1,_0x29a2c3){if(0x0==_0x29a2c3['length'])return!0x1;let _0x2786c7=!0x1;for(const _0x471006 of _0x29a2c3){const _0x3e4100=this['_findSuggestions'](_0x471006['range'],'attribute')['filter'](_0x3a26cb=>!_0x3a26cb['meta']['isNextTo'])['map'](_0x39919f=>_0x39919f['suggestion']),_0x12f239=_0x35a39a({'newValue':_0x471006['newValue']});_0x3e4100['filter'](_0x4f03d1=>{const [_0x495d2b,_0xf0a0c6]=_0x4f03d1['subType']['split']('|');return _0x495d2b==_0x471006['key']&&_0xf0a0c6!=_0x12f239;})['forEach'](_0x1875ab=>{this['_reduceSuggestionAttributeRange'](_0x1875ab,_0x471006['range'],_0x42dad1),_0x2786c7=!0x0;});}return _0x2786c7;}['_reduceSuggestionAttributeRange'](_0x566961,_0x21ee0a,_0x44aa18){const _0x574775=_0x566961['getFirstRange']()['getDifference'](_0x21ee0a);0x0!==_0x574775['length']?0x1!==_0x574775['length']?this['_breakSuggestionMarker'](_0x566961,_0x21ee0a['start'],_0x21ee0a['end']):this['_setSuggestionRange'](_0x566961,_0x574775[0x0]):_0x44aa18['removeMarker'](_0x566961['getFirstMarker']());}constructor(_0x7a63a5){function _0x5b262e(_0x25b2c0){return _0x25b2c0['map'](_0x299388=>String['fromCharCode'](_0x299388))['join']('');}super(_0x7a63a5),this['_recordAttributeSuggestions']=!0x1,this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4527a0,_0x5d695f,_0x2ce6e0,_0x4097db)=>{this['_model']['change'](()=>{for(const _0x2b5d7b of[..._0x4097db,..._0x2ce6e0])this['_model']['markers']['has'](_0x2b5d7b)&&_0x7a63a5['editing']['reconvertMarker'](_0x2b5d7b);});}),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']=_0x7a63a5['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(),_0x7a63a5['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x7a63a5['config']['get']('trackChanges.trackFormatChanges'),_0x7a63a5['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x7a63a5['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x7a63a5,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x5b262e([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x5b262e([0x34,0x30,0x34,0x38,0x31,0x30,0x30,0x38]);}}class xt{['buildSuggestion'](_0x2b6568,_0x51e748,_0x98c160,_0x20fd99,_0x700b29,_0x11e315){return new u(this['_model'],{'type':_0x2b6568,'subType':_0x51e748,'id':_0x98c160,'author':_0x20fd99,'creator':_0x20fd99,'attributes':_0x700b29,'onAttributesChange':_0x11e315,'onAccept':(..._0x23ea10)=>this['getSuggestionCallback'](_0x2b6568,_0x51e748,'accept')(..._0x23ea10),'onDiscard':(..._0x36d493)=>this['getSuggestionCallback'](_0x2b6568,_0x51e748,'discard')(..._0x36d493)});}['registerCustomCallback'](_0x3027aa,_0xb773b0,_0x206343,_0x48f06d){const _0x4f8064=_0x3027aa+':'+_0xb773b0+':'+_0x206343;this['_customCallbacks']['set'](_0x4f8064,_0x48f06d);}['getSuggestionCallback'](_0x43bfd9,_0x3b8c0f,_0x35891f){const _0xd4124a=_0x43bfd9+':'+_0x3b8c0f+':'+_0x35891f;return this['_customCallbacks']['get'](_0xd4124a)||this['_defaultCallbacks']['get'](_0x43bfd9+':'+_0x35891f);}['_registerDefaultCallbacks'](){const _0x14dff6=()=>!0x1,_0x2c45d0=_0x5bc659=>{_0x5bc659['sort']((_0x188291,_0x2ca19f)=>_0x188291['start']['isBefore'](_0x2ca19f['start'])?0x1:-0x1),this['_model']['change'](_0x5edf21=>{for(const _0x3e5533 of _0x5bc659){let _0x3100a7;_0x3100a7=_0x3e5533['end']['isAtEnd']&&_0x3e5533['end']['parent']==_0x3e5533['start']['nodeAfter']?_0x5edf21['createSelection'](_0x3e5533['start']['nodeAfter'],'on'):_0x5edf21['createSelection'](_0x3e5533),this['_model']['deleteContent'](_0x3100a7,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3fa1d9=(_0x5643ed,_0x159a80)=>{_0x159a80&&this['_model']['change'](_0x44b194=>{const {commandName:_0x4fcad0,commandParams:_0x19a42d=[]}=_0x159a80,_0x1700bb=_0x5643ed['map'](_0x878551=>(Tt(_0x878551)&&(_0x878551=this['_model']['createRange'](_0x878551['end'])),_0x878551))['filter'](_0x509481=>'$graveyard'!==_0x509481['root']['rootName']);if(_0x1700bb['length']<0x1)return;const _0x412bb7=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5e79bf=>_0xb3bd9b['fromRange'](_0x5e79bf));_0x44b194['setSelection'](_0x1700bb);for(const _0x3cdb1e of this['_editor']['commands']['commands']())_0x3cdb1e['refresh']();_0x19a42d['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4fcad0,..._0x19a42d);const _0x565aa9=_0x412bb7['filter'](_0x1d014b=>'$graveyard'!=_0x1d014b['root']['rootName']);_0x565aa9['length']>0x0&&_0x44b194['setSelection'](_0x565aa9);for(const _0xa62969 of _0x412bb7)_0xa62969['detach']();});},_0x2a0ef6=(_0x1c9729,_0x52ea01)=>0x1==_0x1c9729['length']&&0x1==_0x52ea01['length']&&_0x1c9729[0x0]['end']['isEqual'](_0x52ea01[0x0]['start']),_0x3df625=(_0x249a17,_0x428989,_0x258add,_0x3fd0fb)=>Gt(_0x249a17,_0x428989,_0x258add,_0x3fd0fb,this['_model'])?[_0x249a17,_0x428989]:Gt(_0x428989,_0x249a17,_0x3fd0fb,_0x258add,this['_model'])?[_0x428989,_0x249a17]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x14dff6),this['_defaultCallbacks']['set']('insertion:discard',_0x2c45d0),this['_defaultCallbacks']['set']('insertion:join',_0x2a0ef6),this['_defaultCallbacks']['set']('insertion:chain',_0x3df625),this['_defaultCallbacks']['set']('deletion:accept',_0x2c45d0),this['_defaultCallbacks']['set']('deletion:discard',_0x14dff6),this['_defaultCallbacks']['set']('deletion:join',_0x2a0ef6),this['_defaultCallbacks']['set']('deletion:chain',_0x3df625),this['_defaultCallbacks']['set']('formatInline:accept',_0x3fa1d9),this['_defaultCallbacks']['set']('formatInline:discard',_0x14dff6),this['_defaultCallbacks']['set']('formatInline:join',_0x2a0ef6),this['_defaultCallbacks']['set']('formatInline:chain',_0x14dff6),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3fa1d9),this['_defaultCallbacks']['set']('formatBlock:discard',_0x14dff6),this['_defaultCallbacks']['set']('formatBlock:join',_0x2a0ef6),this['_defaultCallbacks']['set']('formatBlock:chain',_0x14dff6),this['_defaultCallbacks']['set']('attribute:accept',_0x14dff6),this['_defaultCallbacks']['set']('attribute:discard',(_0x59cffc,_0x372276)=>{if(!_0x372276)return;const _0x4029b8=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x50dcbd=>{if(_0x372276['key']==m)for(const _0x3272d1 of _0x59cffc){const _0x42edae=_0x3272d1['start']['nodeAfter'],_0x5ed0e8=_0x372276['oldValue'];_0x50dcbd['rename'](_0x42edae,_0x5ed0e8);}else{if(_0x4029b8['_isBlockAttribute'](_0x372276['key'])){for(const _0x3468f4 of _0x59cffc)void 0x0!==_0x372276['oldValue']?_0x50dcbd['setAttribute'](_0x372276['key'],_0x372276['oldValue'],_0x3468f4['start']['nodeAfter']):_0x50dcbd['removeAttribute'](_0x372276['key'],_0x3468f4['start']['nodeAfter']);}else{for(const _0x58dace of _0x59cffc)_0x372276['oldValue']?_0x50dcbd['setAttribute'](_0x372276['key'],_0x372276['oldValue'],_0x58dace):_0x50dcbd['removeAttribute'](_0x372276['key'],_0x58dace);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2a0ef6);}constructor(_0x217cfc){this['_editor']=_0x217cfc,this['_model']=_0x217cfc['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}}function Rt(_0x2cebf3,_0x4deb23,_0x3ae636){for(const _0x27334b of _0x4deb23['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x27334b['root']==_0x27334b)return!0x1;if(!_0x3ae636['containsItem'](_0x27334b))return!0x1;if(_0x2cebf3['isObject'](_0x27334b)||_0x2cebf3['isLimit'](_0x27334b))return!0x0;}return!0x1;}function Tt(_0x342656){return _0x342656['end']['parent']==_0x342656['start']['nodeAfter']&&_0x342656['end']['isAtStart'];}function Et(_0x30c675,_0x12cbb3,_0x41f7ea,_0x2c9bfc){const _0x2b3c7a=_0x405a06=>!_0x405a06['item']['is']('$textProxy')&&!_0x2c9bfc['isObject'](_0x405a06['item']),_0x3a2a29=_0x30c675['start']['getLastMatchingPosition'](_0x2b3c7a),_0x5becdc=_0x30c675['end']['getLastMatchingPosition'](_0x2b3c7a,{'direction':'backward'});return(!_0x30c675['start']['isEqual'](_0x3a2a29)||!_0x30c675['end']['isEqual'](_0x5becdc))&&(_0x3a2a29['isBefore'](_0x5becdc)?_0x41f7ea['updateMarker'](_0x12cbb3,{'range':_0x41f7ea['createRange'](_0x3a2a29,_0x5becdc)}):_0x41f7ea['removeMarker'](_0x12cbb3),!0x0);}function Vt(_0x138896){return _0x35a39a(_0x138896);}function Ut(_0x31b190){const _0x25c00d=_0x31b190['start']['nodeAfter'];return _0x25c00d&&_0x25c00d['is']('element');}function Ot(_0x2035da,_0x182c42){return null==_0x2035da['end']['nodeBefore']&&_0x2035da['end']['parent']==_0x2035da['start']['nodeAfter']?Ft(_0x2035da['start']['nodeAfter'],_0x182c42):_0x2035da;}function Ft(_0x2fbe4d,_0x2dc55c){const _0x2b57fc=_0x2dc55c['schema']['isObject'](_0x2fbe4d)||_0x2dc55c['schema']['isSelectable'](_0x2fbe4d);return _0x2dc55c['createRange'](_0x2dc55c['createPositionAt'](_0x2fbe4d,'before'),_0x2b57fc?_0x2dc55c['createPositionAfter'](_0x2fbe4d):_0x2dc55c['createPositionAt'](_0x2fbe4d,'end'));}function Gt(_0x55f157,_0x4f9dd8,_0x400138,_0x349008,_0x3c08c0){if(!Pt(_0x55f157,_0x4f9dd8))return!0x1;if(_0x400138['end']['isEqual'](_0x349008['start']))return!0x0;if(_0x55f157['type']!=_0x4f9dd8['type'])return!0x1;if(!_0x400138['end']['isTouching'](_0x349008['start']))return!0x1;const _0x440b52=_0x3c08c0['createRange'](_0x400138['end'],_0x349008['start'])['getWalker']();for(const _0x4f6cd1 of _0x440b52)if(['elementStart','elementEnd']['includes'](_0x4f6cd1['type'])&&_0x3c08c0['schema']['isLimit'](_0x4f6cd1['item']))return!0x1;return!0x0;}function Pt(_0xde9641,_0x2befae,_0x34e18c=[]){return!(!_0xde9641['_isDataLoaded']||!_0x2befae['_isDataLoaded'])&&_0x3c4be2(Bt(_0xde9641['attributes'],_0x34e18c),Bt(_0x2befae['attributes'],_0x34e18c));}function Lt(_0x53d93c,_0x4c964a){const _0xe169bb=Ht(_0x53d93c['attributes']),_0x27713f=Ht(_0x4c964a);if(!_0x53d93c['_isDataLoaded'])return!0x1;for(const _0x427ffa of Object['keys'](_0x27713f))if(!_0x3c4be2(_0xe169bb[_0x427ffa],_0x27713f[_0x427ffa]))return!0x1;return!0x0;}function Ht(_0x2d86bd){const _0x2634c4=Object['assign']({},_0x2d86bd);return delete _0x2634c4['skipNestingCheck'],delete _0x2634c4['tablePasteChainId'],_0x2634c4;}class oe extends _0x31fb1d(){['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 _0x5b7918=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5b7918);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}constructor(_0x478533,_0x19427a,_0x384981,_0x5b4638){super(),this['model']=_0x19427a,this['view']=_0x384981,this['commentThreadController']=_0x5b4638,this['_editor']=_0x478533,this['_acceptCommand']=_0x478533['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x478533['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x26fec5,_0x347801)=>_0x26fec5||_0x347801),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3954c9=>_0x3954c9&&this['_editor']['model']['canEditAt'](_0x19427a['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x10282a=>_0x10282a&&this['_editor']['model']['canEditAt'](_0x19427a['getRanges']())),this['_pendingAction']=null,_0x384981['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x384981,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x384981,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x384981,'change:isDirty',()=>{_0x384981['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}}class es extends _0x574b81{['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x49c9d4}=this['_config'];this['commentsListView']=new _0x49c9d4(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',_0x50049a=>_0x50049a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x58028f,_0x92e2a3)=>_0x58028f||!!_0x92e2a3);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3f108f}=this['_config'],_0xb1590c=new _0x3f108f(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3caac1=_0xb1590c['commentInputView'];return _0xb1590c['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3caac1,'value',(_0x3a1b4,_0x407b88,_0x390ba0)=>!!_0x390ba0||_0x3a1b4&&!_0x407b88),_0x3caac1['on']('submit',(_0x50f8ca,_0x3167d5)=>{this['fire']('addComment',_0x3167d5),_0x3caac1['editor']['setData']('');}),_0x3caac1['on']('cancel',()=>this['focus']()),_0x3caac1['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xb1590c;}constructor(_0x1872cc,_0x364600,_0x411401,_0x389c93){super(_0x1872cc),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x364600['authoredAt']),this['bind']('authoredAt')['to'](_0x364600),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x364600,this['_localUser']=_0x411401,this['_config']=_0x389c93,_0x389c93['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}}class ne extends es{['getTemplate'](){const _0x57383c=this['bindTemplate'],_0x3b397e=[{'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':_0x57383c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x57383c['to']('authoredAt',_0x4aa22d=>this['_config']['formatDateTime'](_0x4aa22d))}]}]},{'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']&&_0x3b397e['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x56aec8={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x57383c['if']('isActive','ck-suggestion-wrapper--active'),_0x57383c['to']('type',_0x149cf3=>'ck-suggestion-'+_0x149cf3),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':_0x3b397e}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x56aec8['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)),_0x56aec8;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x2b2536,_0x298400,_0x4d1e5a)=>{this['_descriptionElement']['innerHTML']=_0x4d1e5a;});}['_createButton'](_0x408710,_0x170360,_0x3422d0,_0x130802,_0x2c153c){const _0x9d24e2=new _0x2ae4b7(this['locale']);return _0x9d24e2['set']({'label':_0x408710,'icon':_0x170360,'tooltip':!0x0,'tooltipPosition':_0x2c153c}),_0x9d24e2['extendTemplate']({'attributes':{'class':_0x3422d0}}),_0x9d24e2['on']('execute',()=>{this['fire'](_0x130802,this['_model']['id']);}),_0x9d24e2;}['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(_0x3a65d6,_0x411a6a,_0x40f62d,_0x24ed96){super(_0x3a65d6,_0x411a6a,_0x40f62d,_0x24ed96),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xe48882=>_0xe48882&&_0xe48882[0x0]?_0xe48882[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x59098a,_0x24a8f6)=>{let _0x2dd619='';for(const _0x3570d3 of _0x59098a)_0x2dd619+='<p>'+ds(_0x3570d3['content'],_0x3570d3['color'])+'</p>';return _0x24a8f6?_0x2dd619:_0xf381dc(_0x2dd619,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x3a65d6,'Accept\x20suggestion'),_0x55580e['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x3a65d6,'Discard\x20suggestion'),_0x55580e['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x413f19(_0x3a65d6,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}}function ds(_0x45ac91,_0x3ef730){let _0x441466='';return _0x441466+=_0x45ac91['split']('*')['map']((_0x578144,_0x210ded)=>_0x210ded%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x578144)+'</span>':us(_0x578144))['join'](''),_0x3ef730&&(_0x441466+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3ef730['value']+'\x22\x20title=\x22'+_0x3ef730['title']+'\x22></span>'),_0x441466;}function us(_0xfd7d77){const _0x4cbfde=document['createElement']('span');return _0x4cbfde['innerText']=_0xfd7d77,_0x4cbfde['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 _0x454bf4{static get['requires'](){return[p,_0x542b67,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}['_handleSuggestionControllerDelayed'](_0x56ac0d,_0x8b0d7c){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x241b3a,_0x53c466]of this['_handleControllerBuffer']){const _0x403025=this['_suggestionToController']['has'](_0x241b3a);_0x403025||_0x53c466?_0x403025&&_0x53c466&&this['_destroyController'](_0x241b3a):this['_initializeController'](_0x241b3a);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x56ac0d,_0x8b0d7c);}['init'](){const _0x38e077=this['editor'],_0x9bf017=_0x38e077['plugins']['get']('TrackChangesEditing'),_0xffc0c1=_0x38e077['plugins']['get']('Annotations'),_0x5bb3fc=_0x38e077['plugins']['get']('EditorAnnotations'),_0x75a223=_0x38e077['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5bb3fc['addSourceCollector'](()=>{const _0x2c561e=[];for(const [_0x5200e3,_0x1d3b8d]of Array['from'](this['_suggestionToController'])){const _0x26e3d8=_0x5200e3['getAllAdjacentSuggestions'](),_0x1030da=[];for(const _0x2432eb of _0x26e3d8){if(!_0x2432eb['isInContent'])continue;if(_0x2432eb['isMultiRange']){_0x1030da['push'](..._0x2432eb['getRanges']());continue;}const _0x42db38=_0x2432eb['getFirstRange']();if(_0x1030da['length']>0x0){const _0x3c8e40=_0x1030da[0x0]['getJoined'](_0x42db38);if(_0x3c8e40){_0x1030da[0x0]=_0x3c8e40;continue;}}_0x1030da['push'](_0x42db38);}_0x2c561e['push']([_0x1d3b8d['view'],_0x1030da]);}return _0x2c561e;}),this['listenTo'](_0x9bf017,'suggestionLoaded',(_0x315c76,_0x477d2b)=>{this['listenTo'](_0x477d2b,'change:previous',(_0x233262,_0x2b2041,_0x2aa6b2,_0x586877)=>{_0x477d2b['isInContent']&&(null==_0x2aa6b2?(this['_updateController'](_0x586877['head']),this['_handleSuggestionControllerDelayed'](_0x477d2b,!0x1)):(this['_updateController'](_0x2aa6b2['head']),null==_0x586877&&this['_handleSuggestionControllerDelayed'](_0x477d2b,!0x0)));}),null!==_0x477d2b['previous']?this['_updateController'](_0x477d2b['head']):this['_handleSuggestionControllerDelayed'](_0x477d2b,!0x1);}),this['listenTo'](_0x9bf017,'suggestionUnloaded',(_0x28603f,_0x28b126,_0x1c4b99)=>{this['stopListening'](_0x28b126,'change:previous'),this['_handleControllerBuffer']['delete'](_0x28b126),this['_suggestionToController']['has'](_0x28b126)&&this['_destroyController'](_0x28b126),_0x1c4b99&&this['_updateController'](_0x1c4b99['head']);}),this['listenTo'](_0x9bf017,'suggestionChanged',(_0x3a4f47,_0x528d63)=>{this['_updateController'](_0x528d63);}),this['listenTo'](_0xffc0c1,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x75a223,'addComment',(_0x1f2586,{threadId:_0x20837b,isFromAdapter:_0x423a6d})=>{if(_0x423a6d||!_0x9bf017['hasSuggestion'](_0x20837b))return;const _0x232668=_0x9bf017['getSuggestion'](_0x20837b);this['_suggestionToController']['get'](_0x232668)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x134e1f=this['editor']['plugins']['get']('Annotations'),_0x1817d4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a7387=Array['from'](_0x134e1f['activeAnnotations'],_0x54f2cd=>_0x54f2cd['innerView'])['filter'](_0x3fbfd9=>this['_viewToController']['has'](_0x3fbfd9)),_0x51b465=[];for(const _0x58a63b of _0x4a7387){const _0xb256f9=this['_viewToController']['get'](_0x58a63b)['model']['getAllAdjacentSuggestions']();_0x51b465['push'](..._0xb256f9['reduce']((_0x220379,_0x46dc9b)=>[..._0x220379,..._0x46dc9b['getMarkerNames']()],[]));}_0x1817d4['activeMarkers']=_0x51b465;}['_addUIComponentsToFactory'](){const _0x50af9f=this['editor'],_0x422d41=_0x50af9f['locale'],_0x38c78c=o(_0x422d41,'Track\x20changes'),_0x1f17c0=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x38c78c,'commandName':'trackChanges'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x422d41,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x422d41,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x422d41,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x422d41,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'})}]);for(const _0x46f0c2 of _0x1f17c0)if(ae(_0x46f0c2)){const _0x36bc54=_0x50af9f['commands']['get'](_0x46f0c2['model']['commandName']);_0x46f0c2['model']['bind']('isOn','isEnabled')['to'](_0x36bc54,'value','isEnabled');}_0x50af9f['ui']['componentFactory']['add']('trackChanges',_0x584a3c=>this['_createToolbarButton'](_0x584a3c,_0x1f17c0,_0x38c78c)),_0x50af9f['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1d9df8=>this['_createMenuBarMenu'](_0x1d9df8,_0x1f17c0,_0x38c78c));}['_createToolbarButton'](_0xf48131,_0x33b2b5,_0x3a64f5){const _0x49fdff=zt(_0xf48131,Zt),_0xcd9be3=this['editor']['commands']['get']('trackChanges');_0x49fdff['buttonView']['set']({'tooltip':_0x3a64f5,'label':_0x3a64f5,'icon':ie}),_0x49fdff['buttonView']['bind']('isOn')['to'](_0xcd9be3,'value'),_0x49fdff['buttonView']['on']('execute',()=>{_0xcd9be3['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x49fdff,_0x33b2b5);const _0x9c4903=[];for(const _0x4373ad of _0x33b2b5)ae(_0x4373ad)&&_0x9c4903['push'](this['editor']['commands']['get'](_0x4373ad['model']['commandName']));const _0x5f237d=_0x49fdff['buttonView'];return _0x5f237d['actionView']['unbind']('isEnabled'),_0x5f237d['arrowView']['unbind']('isEnabled'),_0x5f237d['actionView']['bind']('isEnabled')['to'](_0xcd9be3,'isEnabled'),_0x5f237d['arrowView']['bind']('isEnabled')['toMany'](_0x9c4903,'isEnabled',(..._0x11f02e)=>_0x11f02e['some'](_0xf558b2=>_0xf558b2)),_0x49fdff['on']('execute',_0x19c4fe=>{this['editor']['execute'](_0x19c4fe['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x49fdff;}['_createMenuBarMenu'](_0x994c93,_0x296c8b,_0x23e743){const _0x34fe39=new Kt(_0x994c93),_0x17c592=this['editor']['commands']['get']('trackChanges');_0x34fe39['buttonView']['set']({'label':_0x23e743,'icon':ie});const _0x1f9a18=new Qt(_0x994c93);for(const _0x4fc531 of _0x296c8b){if('separator'==_0x4fc531['type']){_0x1f9a18['items']['add'](new Jt(_0x994c93));continue;}const _0x1384ff=new Xt(_0x994c93,_0x34fe39),_0x4a579c=new Yt(_0x994c93),_0x506066=_0x4fc531['model'];_0x4a579c['bind'](...Object['keys'](_0x506066))['to'](_0x506066),_0x4a579c['delegate']('execute')['to'](_0x34fe39),_0x4a579c['on']('execute',()=>{this['editor']['execute'](_0x506066['commandName']),this['editor']['editing']['view']['focus']();}),_0x1384ff['children']['add'](_0x4a579c),_0x1f9a18['items']['add'](_0x1384ff);}return _0x34fe39['bind']('isEnabled')['to'](_0x17c592,'isEnabled'),_0x34fe39['panelView']['children']['add'](_0x1f9a18),_0x34fe39;}['_initializeController'](_0xb56235){const _0x44d8bd=this['editor'],_0x90b070=_0x44d8bd['config'],_0x602d81=_0x44d8bd['plugins']['get']('Annotations'),_0x295914=_0x44d8bd['plugins']['get']('CommentsRepository'),_0x47dbe5=_0x44d8bd['plugins']['get']('EditorAnnotations'),_0x35eedf=_0x44d8bd['plugins']['get'](_0x542b67)['me'],_0x41316d=_0x90b070['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x2d1aeb,CommentThreadInputView:_0x189e0f}=_0x44d8bd['plugins']['get']('CommentsUI');let _0x170461,_0x200c5d;this['_annotationViews']['has'](_0xb56235['id'])?(_0x200c5d=this['_annotationViews']['get'](_0xb56235['id']),_0x170461=_0x200c5d['mainView']):(_0x170461=new _0x41316d(_0x44d8bd['locale'],_0xb56235,_0x35eedf,{'disableComments':this['_disableComments'],'editorConfig':_0x90b070['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x90b070['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x90b070['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x90b070['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x371728(_0x90b070['get']('locale')),'CommentView':_0x90b070['get']('comments')['CommentView'],'CommentsListView':_0x2d1aeb,'CommentThreadInputView':_0x189e0f}),_0x170461['acceptButton']['on']('execute',()=>{_0x44d8bd['editing']['view']['focus']();}),_0x170461['discardButton']['on']('execute',()=>{_0x44d8bd['editing']['view']['focus']();}),_0x200c5d=_0x602d81['createAnnotationView'](this['editor']['locale'],_0x170461),_0x200c5d['bind']('isDirty')['to'](_0x170461,'isDirty'),_0x200c5d['bind']('length')['to'](_0x170461),_0x200c5d['bind']('type')['to'](_0x170461,'type',_0x3c1b7a=>'suggestion-'+_0x3c1b7a),this['_annotationViews']['set'](_0xb56235['id'],_0x200c5d));const _0x37be82=_0x295914['createCommentThreadController'](_0xb56235['commentThread'],_0x170461),_0xa865d4=new oe(_0x44d8bd,_0xb56235,_0x170461,_0x37be82),_0x89e47d=_0xb56235['getAllAdjacentSuggestions']()['filter'](_0x5ddc8c=>_0x5ddc8c['isInContent']);_0x170461['descriptionParts']=_0x44d8bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x89e47d),this['_suggestionToController']['set'](_0xb56235,_0xa865d4),this['_viewToController']['set'](_0x170461,_0xa865d4);const _0x568a23=_0x602d81['createAnnotation']({'view':_0x200c5d,'target':()=>{const _0x46718e=[],_0x22db39=_0xb56235['getAllAdjacentSuggestions']()['filter'](_0x114142=>_0x114142['isInContent']);for(const _0x3e507b of _0x22db39)_0x46718e['push'](..._0x3e507b['getMarkers']());return _0x34c6b3(_0x44d8bd['editing'],_0x46718e);},'type':()=>'suggestion-'+_0xa865d4['view']['type']});_0x295914['_bindAnnotationToEditors'](_0x170461,_0x568a23),_0x602d81['add'](_0x568a23),_0x47dbe5['registerAnnotation'](_0x568a23);}['_destroyController'](_0x5a5343){const _0x15827a=this['editor']['plugins']['get']('CommentsRepository'),_0x3077fc=this['editor']['plugins']['get']('Annotations'),_0x46cae1=this['_suggestionToController']['get'](_0x5a5343),_0x1f8808=_0x46cae1['view'],_0x2d134a=_0x3077fc['getByInnerView'](_0x1f8808);_0x15827a['_unbindEditors'](_0x1f8808),_0x2d134a&&_0x3077fc['remove'](_0x2d134a),this['_suggestionToController']['delete'](_0x5a5343),this['_viewToController']['delete'](_0x1f8808),_0x46cae1['destroy']();}['_updateController'](_0x2799dc){if(!_0x2799dc['isInContent']||!this['_suggestionToController']['has'](_0x2799dc))return;const _0x550eec=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d569b=this['_suggestionToController']['get'](_0x2799dc),_0x48642c=_0x2799dc['getAllAdjacentSuggestions']();_0x3d569b['view']['descriptionParts']=_0x550eec['descriptionFactory']['getDescriptions'](_0x48642c);}['destroy'](){for(const _0x1de876 of this['_suggestionToController']['keys']())this['_destroyController'](_0x1de876);for(const _0x4d1693 of this['_annotationViews']['values']())_0x4d1693['mainView']['destroy']();super['destroy']();}constructor(_0xbac758){super(_0xbac758),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x12f455=this['editor']['config'];_0x12f455['define']('trackChanges.SuggestionThreadView',ne),_0x12f455['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x12f455['get']('trackChanges.disableComments');}}function ae(_0x594230){return'model'in _0x594230;}class k extends _0x454bf4{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x11fef5){this['editor']['plugins']['get'](p)['adapter']=_0x11fef5;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x30f1e4){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x30f1e4);}['getSuggestions']({skipNotAttached:_0xe6b83a=!0x1,toJSON:_0x38ae54=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xe6b83a,'toJSON':_0x38ae54});}['getSuggestion'](_0x462771){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x462771);}}const T=['Pagination'];class P extends _0x454bf4{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x1965f1=this['editor'];if(_0x1965f1['config']['define']('trackChangesData.editorCreator',_0x20a37d=>{const _0x24aae0=_0x1965f1['model']['document']['getRootNames']()['reduce']((_0x175117,_0x3caf85)=>(_0x175117[_0x3caf85]='',_0x175117),{});return _0x1965f1['constructor']['create'](_0x24aae0,_0x20a37d);}),'function'!=typeof _0x1965f1['config']['get']('trackChangesData')['editorCreator'])throw new _0x514bf6('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3e118b){return N(this['editor'],!0x0,_0x3e118b);}['getDataWithDiscardedSuggestions'](_0x4dbacb){return N(this['editor'],!0x1,_0x4dbacb);}}class D extends _0x454bf4{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(_0x4ec640){super(_0x4ec640),this['result']='end';}}function v(_0x333a16){return void 0x0!==_0x333a16['getRootsAttributes'];}async function N(_0x22697b,_0x557f54,_0x26c035){const _0x15ef9a=_0x1ce457(_0x22697b,T);_0x15ef9a['plugins']['push'](p,D),_0x15ef9a['rootsAttributes']=v(_0x22697b)?_0x22697b['getRootsAttributes']():void 0x0;const _0x3880f5=document['createDocumentFragment'](),_0x3bba8a=_0x22697b['config']['get']('trackChangesData')['editorCreator'],_0x47ec7d=await _0x3bba8a(_0x15ef9a,()=>function(_0x4f708e){const _0x5b2cf8=document['createElement']('div');return _0x4f708e['appendChild'](_0x5b2cf8),_0x5b2cf8;}(_0x3880f5));!function(_0x3f136c,_0x3294ce){const _0x15532b=_0x3f136c['model']['document']['getRootNames']()['reduce']((_0x3c6f41,_0x2db625)=>(_0x3c6f41[_0x2db625]=_0x3f136c['data']['get']({'rootName':_0x2db625}),_0x3c6f41),{}),_0x34032b=_0x3f136c['plugins']['get']('Users')['users']['map'](_0x53d6d1=>({'id':_0x53d6d1['id'],'name':_0x53d6d1['name']})),_0xfd9112=_0x3f136c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2f51fc=_0x3f136c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x237d2d=_0x3294ce['plugins']['get']('Users'),_0x639cc5=_0x3294ce['plugins']['get']('TrackChangesEditing'),_0x442228=_0x3294ce['plugins']['get']('CommentsRepository');for(const _0x25ad26 of _0x34032b)_0x237d2d['getUser'](_0x25ad26['id'])||_0x237d2d['addUser'](_0x25ad26);_0x237d2d['me']||_0x237d2d['useAnonymousUser']();for(const _0x540ede of _0xfd9112)_0x639cc5['addSuggestionData'](_0x540ede);for(const _0x5c546f of _0x2f51fc)_0x442228['addCommentThread'](_0x5c546f);_0x3294ce['data']['set'](_0x15532b);}(_0x22697b,_0x47ec7d),_0x47ec7d['execute'](_0x557f54?'acceptAllSuggestions':'discardAllSuggestions');const _0x6bb89c=v(_0x47ec7d)?_0x47ec7d['getFullData'](_0x26c035):_0x47ec7d['data']['get'](_0x26c035);return await _0x47ec7d['destroy'](),_0x6bb89c;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x5511a1,PendingActions as _0x1cf68b,icons as _0x22772e}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5a2cc3,ObservableMixin as _0x4cd08f,uid as _0x4c61b3,insertToPriorityArray as _0x50029c,priorities as _0x4b8876,logWarning as _0x396ae6,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x20bde1,View as _0x299e5d,ButtonView as _0x58c753,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 _0xd07c79,hashObject as _0x18968b,surroundingMarkersDetector as _0x572aad,trimHtml as _0x2acff3,UserView as _0x4cc9e8,getDateTimeFormatter as _0x2638f4,getAllMarkersDomElementsSorted as _0x1f8725,sanitizeEditorConfig as _0x261009}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x524355,LiveRange as _0x2f3de9,LivePosition as _0x583a2a}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4fc2c1,toWidget as _0x16e8d3}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3e6b1b,set as _0x1a7e69,isEqual as _0x2368d0,unset as _0xf2efe1,omit as Bt}from'lodash-es';import{Delete as _0x32994f,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x33bee5,ShiftEnter as _0x1b9530}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 _0x3db13d of this['editor']['commands']['commands']())_0x3db13d['affectsData']&&!this['_enabledCommands']['has'](_0x3db13d)&&_0x3db13d['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x53898c of this['editor']['commands']['commands']())_0x53898c['affectsData']&&!this['_enabledCommands']['has'](_0x53898c)&&_0x53898c['clearForceDisabled']('TrackChangesCommand');}constructor(_0x4ab4d1,_0x2b7f6e){super(_0x4ab4d1),this['_enabledCommands']=_0x2b7f6e,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class $ extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4521b8){const _0x1a0ef1=this['_suggestions']['get'](_0x4521b8);if(!_0x1a0ef1)throw new _0x5a2cc3('track-changes-accept-suggestion-not-found',this);const _0x2f1b9e=_0x1a0ef1['getRanges']();this['editor']['model']['canEditAt'](_0x2f1b9e)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1a0ef1);}constructor(_0x4723c6,_0x54a7c4){super(_0x4723c6),this['_suggestions']=_0x54a7c4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class B extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x498c29){const _0x5ad7f6=this['_suggestions']['get'](_0x498c29);if(!_0x5ad7f6)throw new _0x5a2cc3('track-changes-discard-suggestion-not-found',this);const _0x233759=_0x5ad7f6['getRanges']();this['editor']['model']['canEditAt'](_0x233759)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x5ad7f6);}constructor(_0x290bc3,_0x5e69d1){super(_0x290bc3),this['_suggestions']=_0x5e69d1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}function ss(_0x2a4e0c){return _0x2a4e0c['sort']((_0x2c62c9,_0x153a00)=>'deletion'==_0x2c62c9['type']&&'deletion'!=_0x153a00['type']?-0x1:'deletion'!=_0x2c62c9['type']&&'deletion'==_0x153a00['type']?0x1:0x0);}function to(_0x16b059,_0x4f0cc9){let _0x61168f,_0x13efbb=0x0;const _0x188f41=[],_0x153c54=_0x4f0cc9['schema'];for(;_0x13efbb<_0x16b059['length'];){const _0x2ad40e=_0x16b059[_0x13efbb],_0x2d2a57=_0x16b059[_0x13efbb+0x1];_0x61168f||(_0x61168f=_0x4f0cc9['createPositionBefore'](_0x2ad40e)),co(_0x4f0cc9,_0x2ad40e,_0x2d2a57)||(_0x188f41['push'](_0x4f0cc9['createRange'](_0x61168f,_0x153c54['isObject'](_0x2ad40e)?_0x4f0cc9['createPositionAfter'](_0x2ad40e):_0x4f0cc9['createPositionAt'](_0x2ad40e,'end'))),_0x61168f=null),_0x13efbb++;}return _0x188f41;}function co(_0x45779b,_0x18f08c,_0x443579){if(!_0x443579)return!0x1;const _0x6c753f=_0x45779b['createPositionAfter'](_0x18f08c),_0x4be965=_0x45779b['createPositionBefore'](_0x443579);return _0x6c753f['isTouching'](_0x4be965);}function rs(_0x458f13,_0x3e48db,_0x2de2c3){for(;_0x2de2c3['length'];){const _0x1c9937=_0x2de2c3['splice'](0x0,0x64);_0x458f13['change'](()=>{for(const _0x5bd924 of _0x1c9937)_0x5bd924['isInContent']&&_0x3e48db['execute'](_0x5bd924['id']);});}}class x extends ts{['refresh'](){const _0x1ddc33=Array['from'](this['_suggestions']['values']())['some'](_0x3ae50f=>_0x3ae50f['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1ddc33;}['execute'](){const _0x414204=ss(Array['from'](this['_suggestions']['values']()));for(const _0xe52605 of _0x414204){const _0x175fe7=_0xe52605['getRanges']();if(!this['editor']['model']['canEditAt'](_0x175fe7))return;}rs(this['editor']['model'],this['_command'],_0x414204);}constructor(_0x2a5d01,_0x5d1c54,_0x578e0b){super(_0x2a5d01),this['_command']=_0x5d1c54,this['_suggestions']=_0x578e0b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class R extends ts{['refresh'](){const _0x4cbd27=this['editor']['model']['document']['selection'],_0x4d1e33=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x2d9b8e,_0x2a7e71){const _0x1d83c9=Array['from'](_0x2d9b8e['getRanges']()),_0x839948=new Set();for(const _0x5ba49f of _0x2a7e71)if(_0x5ba49f['isInContent']){for(const _0x4f4a95 of _0x1d83c9)for(const _0x59181a of _0x5ba49f['getRanges']())(_0x4f4a95['isIntersecting'](_0x59181a)||_0x2d9b8e['isCollapsed']&&!_0x5ba49f['isMultiRange']&&_0x5ba49f['next']&&_0x59181a['end']['isTouching'](_0x4f4a95['start']))&&_0x839948['add'](_0x5ba49f);}return _0x839948;}(_0x4cbd27,_0x4d1e33),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x45e6b3=ss(Array['from'](this['_selectedSuggestions']));for(const _0x40d816 of _0x45e6b3){const _0x552b6a=_0x40d816['getRanges']();if(!this['editor']['model']['canEditAt'](_0x552b6a))return;}rs(this['editor']['model'],this['_command'],_0x45e6b3);}constructor(_0x46383d,_0x4ea2ad,_0x326a17){super(_0x46383d),this['_command']=_0x4ea2ad,this['_suggestions']=_0x326a17,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class u extends _0x4cd08f(){get['head'](){let _0x1cee3a=this;for(;_0x1cee3a['previous'];)_0x1cee3a=_0x1cee3a['previous'];return _0x1cee3a;}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'](_0x36b45f){this['_markerNames']['add'](_0x36b45f);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x392526=>this['_model']['markers']['get'](_0x392526))['filter'](_0x4c8bcb=>_0x4c8bcb);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3f97a3=>{for(const _0x406ab2 of this['getMarkers']())_0x3f97a3['removeMarker'](_0x406ab2);}),this['_markerNames']['clear']();}['removeMarker'](_0x44932a){this['_model']['change'](_0x5c6fe3=>{_0x5c6fe3['removeMarker'](_0x44932a);}),this['_markerNames']['delete'](_0x44932a);}['addRange'](_0x3887b8){const _0x514679='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x514679),this['_model']['change'](_0x5dcf46=>{_0x5dcf46['addMarker'](_0x514679,{'range':_0x3887b8,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x267dbb){for(const _0x3582f0 of this['getRanges']())if(_0x3582f0['isIntersecting'](_0x267dbb))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x463e54=>_0x463e54['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x26f69f,_0x26dd3e)=>[..._0x26f69f,..._0x26dd3e['getItems']()],[]);}['getFirstRange'](){var _0x243308;return(null===(_0x243308=this['getFirstMarker']())||void 0x0===_0x243308?void 0x0:_0x243308['getRange']())||null;}['getContainedElement'](){const _0x180a73=this['getRanges']();if(0x1!=_0x180a73['length'])return null;const _0x1f5958=_0x180a73[0x0],_0xc1cc7f=_0x1f5958['start']['nodeAfter'],_0x2e0c01=_0x1f5958['end']['nodeBefore'];return _0xc1cc7f instanceof _0x524355?_0xc1cc7f!=_0x2e0c01?null:_0xc1cc7f: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 _0x19a6e6=[];let _0xee249c=this['head'];for(;_0xee249c;)_0x19a6e6['push'](_0xee249c),_0xee249c=_0xee249c['next'];return _0x19a6e6;}['setAttribute'](_0x2aa53c,_0x1cd880){const _0x3c7936=_0x3e6b1b(this['attributes']);_0x1a7e69(_0x3c7936,_0x2aa53c,_0x1cd880),_0x2368d0(_0x3c7936,this['attributes'])||(this['attributes']=_0x3c7936,this['_onAttributesChange'](_0x3c7936));}['removeAttribute'](_0x179880){const _0x5a2a7d=_0x3e6b1b(this['attributes']);_0xf2efe1(_0x5a2a7d,_0x179880),_0x2368d0(_0x5a2a7d,this['attributes'])||(this['attributes']=_0x5a2a7d,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 _0x4c61b3()['substr'](0x1,0x5);}constructor(_0x226597,_0x749121){super(),this['_isDataLoaded']=!0x1,this['id']=_0x749121['id'],this['type']=_0x749121['type'],this['subType']=_0x749121['subType']||null,this['author']=_0x749121['author'],this['creator']=_0x749121['creator']||_0x749121['author'],this['isExternal']=Boolean(_0x749121['attributes']&&_0x749121['attributes']['@external']),this['data']=null,this['_model']=_0x226597,this['_onAccept']=_0x749121['onAccept'],this['_onDiscard']=_0x749121['onDiscard'],this['_onAttributesChange']=_0x749121['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x749121['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(_0x430956,_0x2d2313,_0x5e60e1){const t=_0x430956['t'];switch(_0x2d2313){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',_0x5e60e1);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5e60e1);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5e60e1);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5e60e1);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5e60e1);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',_0x5e60e1);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5e60e1);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',_0x5e60e1);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5e60e1);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5e60e1);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5e60e1);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5e60e1);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5e60e1);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5e60e1);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5e60e1);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5e60e1);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5e60e1);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5e60e1);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5e60e1);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5e60e1);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5e60e1);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5e60e1);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5e60e1);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'},_0x5e60e1);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5e60e1);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5e60e1);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5e60e1);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5e60e1);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5e60e1);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'},_0x5e60e1);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5e60e1);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5e60e1);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5e60e1);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5e60e1);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'},_0x5e60e1);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5e60e1);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'},_0x5e60e1);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'},_0x5e60e1);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5e60e1);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'},_0x5e60e1);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5e60e1);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'},_0x5e60e1);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5e60e1);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5e60e1);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'},_0x5e60e1);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'},_0x5e60e1);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 _0x2d2313;}}class f{['getDescriptions'](_0x479635){const _0x55fdcc=[],_0x39d5a0=new Set(),_0x600cae=new Set();for(let _0xf0abc7=0x0;_0xf0abc7<_0x479635['length'];_0xf0abc7++){const _0x5d4f34=_0x479635[_0xf0abc7];if(!_0x5d4f34['isInContent'])continue;const _0x391ecd=this['_handleCustomCallbackDescription'](_0x5d4f34);if(_0x391ecd){if(null!=_0x5d4f34['subType']){if(_0x39d5a0['has'](_0x5d4f34['subType']))continue;_0x39d5a0['add'](_0x5d4f34['subType']);}_0x55fdcc['push'](_0x391ecd);}else{if('attribute'!=_0x5d4f34['type'])'insertion'!=_0x5d4f34['type']&&'deletion'!=_0x5d4f34['type']||this['_handleInsertRemoveSuggestionDescription'](_0x55fdcc,_0x5d4f34,_0x479635[_0xf0abc7+0x1]);else{const _0x56256d=_0x5d4f34['data']['key'];if(_0x600cae['has'](_0x56256d))continue;_0x600cae['add'](_0x5d4f34['data']['key']),_0x56256d==m?this['_handleRenameSuggestionDescription'](_0x55fdcc,_0x5d4f34):this['_handleAttributeSuggestionDescription'](_0x55fdcc,_0x5d4f34);}}}return this['_resolveDescriptionItems'](_0x55fdcc);}['registerDescriptionCallback'](_0x1fc493){this['_customCallbacks']['push'](_0x1fc493);}['registerElementLabel'](_0x224468,_0x103866,_0x3452b8=_0x4b8876['normal']){'function'==typeof _0x224468?_0x50029c(this['_itemLabelsCallbacks'],{'matchingCallback':_0x224468,'label':_0x103866,'priority':_0x3452b8}):this['_itemLabels']['set'](_0x224468,_0x103866);}['registerAttributeLabel'](_0x122034,_0x15f6d0){this['_attributeLabels']['set'](_0x122034,_0x15f6d0);}['getItemLabel'](_0x3b2722,_0x4cbe98=0x1){let _0x127528;for(const _0x544df3 of this['_itemLabelsCallbacks'])if(_0x544df3['matchingCallback'](_0x3b2722)){_0x127528=_0x544df3['label'];break;}return _0x127528||(_0x127528=this['_itemLabels']['get'](_0x3b2722['name'])),_0x127528?_0x127528(_0x4cbe98):0x1!==_0x4cbe98?_0x4cbe98+'\x20'+_0x3b2722['name']+'s':''+_0x3b2722['name'];}['_addDescriptionItems'](_0x9b3b5c,_0xba20d7){const _0x1c4c05=_0xba20d7['getFirstRange']()['getWalker'](),_0x1a925f='insertion'==_0xba20d7['type']?'add':'remove';for(const _0x5dec66 of _0x1c4c05){const _0x4b2d66=_0x5dec66['item'],_0x3e09a1=_0x9b3b5c[_0x9b3b5c['length']-0x1];if(_0x4b2d66['is']('$textProxy'))_0x3e09a1&&_0x3e09a1['type']['indexOf']('Container')>-0x1&&_0x9b3b5c['pop'](),_0x3e09a1&&'text'==_0x3e09a1['type']?_0x3e09a1[_0x1a925f]+=_0x4b2d66['data']:_0x9b3b5c['push']({'type':'text','add':'add'==_0x1a925f?_0x4b2d66['data']:'','remove':'remove'==_0x1a925f?_0x4b2d66['data']:''});else{if(this['_schema']['isObject'](_0x4b2d66)){const _0x2b0fb9=_0x4b2d66;if(_0x3e09a1&&_0x3e09a1['type']['indexOf']('Container')>-0x1&&_0x9b3b5c['pop'](),'elementEnd'==_0x5dec66['type'])continue;_0x3e09a1&&_0x3e09a1['type']==_0x1a925f+'Object'&&_0x3e09a1['element']['name']==_0x2b0fb9['name']?_0x3e09a1['quantity']++:_0x9b3b5c['push']({'type':_0x1a925f+'Object','element':_0x2b0fb9,'quantity':0x1}),_0x1c4c05['skip'](_0xe619ac=>!('elementEnd'==_0xe619ac['type']&&_0xe619ac['item']==_0x4b2d66));}else{if(this['_schema']['checkChild'](_0x4b2d66,'$text')||_0x4b2d66['is']('element','softBreak')){const _0x2784b6=_0x4b2d66;if('add'==_0x1a925f&&'elementStart'==_0x5dec66['type']||'remove'==_0x1a925f&&'elementEnd'==_0x5dec66['type'])continue;if(_0x3e09a1&&-0x1==_0x3e09a1['type']['indexOf']('Container')){'text'==_0x3e09a1['type']&&(_0x3e09a1[_0x1a925f]+='\x0a');continue;}let _0x2d4076;if(_0x2d4076='add'==_0x1a925f?_0x2784b6['nextSibling']&&!this['_schema']['isObject'](_0x2784b6['nextSibling'])?_0x2784b6['nextSibling']:null:_0x2784b6['previousSibling']&&!this['_schema']['isObject'](_0x2784b6['previousSibling'])?_0x2784b6['previousSibling']:null,_0x2784b6['isEmpty']||_0x2d4076&&_0x2d4076['isEmpty']){const _0x370d22=_0x2d4076&&_0x2d4076['isEmpty']?_0x2d4076:_0x2784b6;_0x3e09a1&&_0x3e09a1['type']==_0x1a925f+'EmptyContainer'&&_0x3e09a1['element']['name']==_0x370d22['name']?_0x3e09a1['quantity']++:_0x9b3b5c['push']({'type':_0x1a925f+'EmptyContainer','element':_0x370d22,'quantity':0x1});}else _0x9b3b5c['push']({'type':_0x1a925f+'Container','element':_0x2784b6});}}}}}['_resolveDescriptionItems'](_0x87f4a8){const _0x527611=this['_locale'],_0x4a7cc9=[],_0x3d51b6=[],_0x1e50bb=[];for(const _0x3a5108 of _0x87f4a8)switch(_0x3a5108['type']){case'text':if(_0x3a5108['add']=_0x3a5108['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3a5108['remove']=_0x3a5108['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3a5108['add']&&''!=_0x3a5108['remove']){_0x4a7cc9['push']({'type':'replace','content':o(_0x527611,'REPLACE_TEXT',['\x22'+_0x3a5108['remove']+'\x22','\x22'+_0x3a5108['add']+'\x22'])});continue;}if(null!=_0x3a5108['add']['match'](/^ +$/)){_0x4a7cc9['push']({'type':'insertion','content':o(_0x527611,'*Insert:*\x20%0',o(_0x527611,'ELEMENT_SPACE',_0x3a5108['add']['length']))});continue;}if(null!=_0x3a5108['remove']['match'](/^ +$/)){_0x4a7cc9['push']({'type':'deletion','content':o(_0x527611,'*Remove:*\x20%0',o(_0x527611,'ELEMENT_SPACE',_0x3a5108['remove']['length']))});continue;}if(''!=_0x3a5108['add']){_0x4a7cc9['push']({'type':'insertion','content':o(_0x527611,'*Insert:*\x20%0','\x22'+_0x3a5108['add']+'\x22')});continue;}_0x4a7cc9['push']({'type':'deletion','content':o(_0x527611,'*Remove:*\x20%0','\x22'+_0x3a5108['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4a7cc9['push']({'type':'insertion','content':o(_0x527611,'*Insert:*\x20%0',this['getItemLabel'](_0x3a5108['element'],_0x3a5108['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4a7cc9['push']({'type':'deletion','content':o(_0x527611,'*Remove:*\x20%0',this['getItemLabel'](_0x3a5108['element'],_0x3a5108['quantity']))});continue;case'addContainer':_0x4a7cc9['push']({'type':'insertion','content':o(_0x527611,'*Split:*\x20%0',this['getItemLabel'](_0x3a5108['element'],_0x3a5108['quantity']))});continue;case'removeContainer':_0x4a7cc9['push']({'type':'deletion','content':o(_0x527611,'*Merge:*\x20%0',this['getItemLabel'](_0x3a5108['element'],_0x3a5108['quantity']))});continue;case'addFormat':_0x3d51b6['push'](_0x3a5108['key']);continue;case'removeFormat':_0x1e50bb['push'](_0x3a5108['key']);continue;default:_0x4a7cc9['push'](_0x3a5108);}if(_0x3d51b6['length']){const _0x456077=_0x3d51b6['map'](_0x40c4fa=>this['_attributeLabels']['has'](_0x40c4fa)?this['_attributeLabels']['get'](_0x40c4fa):_0x40c4fa)['join'](',\x20');_0x4a7cc9['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x456077)});}if(_0x1e50bb['length']){const _0x4acd8a=_0x1e50bb['map'](_0x533e38=>this['_attributeLabels']['has'](_0x533e38)?this['_attributeLabels']['get'](_0x533e38):_0x533e38)['join'](',\x20');_0x4a7cc9['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4acd8a)});}return _0x4a7cc9;}['_handleCustomCallbackDescription'](_0x2e6c09){for(const _0x4cee6f of this['_customCallbacks']){const _0x5e964b=_0x4cee6f(_0x2e6c09);if(_0x5e964b&&'type'in _0x5e964b)return _0x5e964b;}}['_handleAttributeSuggestionDescription'](_0x21a5d0,_0x2115f7){const _0x1bbb57=_0x2115f7['data'],_0x31d2e2=void 0x0===_0x1bbb57['newValue']?'removeFormat':'addFormat';_0x21a5d0['push']({'type':_0x31d2e2,'key':_0x1bbb57['key']});}['_handleRenameSuggestionDescription'](_0x364511,_0x39a94a){_0x364511['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x39a94a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x29fe84,_0x3cc961,_0x5479d1){if(this['_addDescriptionItems'](_0x29fe84,_0x3cc961),_0x5479d1&&_0x5479d1['getFirstRange']()&&!_0x3cc961['getFirstRange']()['end']['isEqual'](_0x5479d1['getFirstRange']()['start'])){const _0x486a3a=_0x29fe84[_0x29fe84['length']-0x1],_0x18b773='insertion'==_0x3cc961['type']?'add':'remove';_0x486a3a&&'text'==_0x486a3a['type']&&(_0x486a3a[_0x18b773]+='\x0a');}}constructor(_0x4410fe,_0x21bdad){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4410fe,this['_locale']=_0x21bdad;}}class E extends _0x5511a1{['afterInit'](){const _0x4e40ae=this['editor'],_0x3fb47c=_0x4e40ae['plugins']['get']('TrackChangesEditing');_0x4e40ae['commands']['get']('showAIAssistant')&&_0x3fb47c['enableCommand']('showAIAssistant');}}class V extends _0x5511a1{['afterInit'](){const _0x299a4d=this['editor'],_0x49329b=_0x299a4d['locale'];if(!_0x299a4d['plugins']['has']('AlignmentEditing'))return;const _0x33e123=_0x299a4d['plugins']['get']('TrackChangesEditing');_0x33e123['enableDefaultAttributesIntegration']('alignment'),_0x33e123['registerBlockAttribute']('alignment'),_0x33e123['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x49329b,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f4cb4=this['editor'],_0x61dc04=_0x2f4cb4['locale'];_0x2f4cb4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5da172=>{if('formatBlock'!=_0x5da172['type'])return;const {data:_0x10dca9}=_0x5da172;if(_0x10dca9&&'alignment'==_0x10dca9['commandName']){const _0x5ba70e=_0x10dca9['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x61dc04,'*Format:*\x20%0',function(_0x1e52fd){switch(_0x1e52fd){case'left':return o(_0x61dc04,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x61dc04,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x61dc04,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x61dc04,'FORMAT_JUSTIFY_TEXT');}}(_0x5ba70e))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x5511a1{['afterInit'](){const _0x2368fd=this['editor'],_0x4d7128=_0x2368fd['plugins']['get']('TrackChangesEditing'),_0x1c447a=_0x2368fd['locale'];for(const _0x4d5eae of ti){if(!_0x2368fd['plugins']['has'](_0x4d5eae))continue;const _0x5019c7=_0x4d5eae['slice'](0x0,-0x7)['toLowerCase'](),_0x446d4d='FORMAT_'+_0x5019c7['toUpperCase']();_0x4d7128['enableDefaultAttributesIntegration'](_0x5019c7),_0x4d7128['registerInlineAttribute'](_0x5019c7),_0x4d7128['descriptionFactory']['registerAttributeLabel'](_0x5019c7,o(_0x1c447a,_0x446d4d));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x593186=this['editor'],_0x33c829=_0x593186['locale'],_0x5aab9e=_0x593186['plugins']['get']('TrackChangesEditing');function _0x22a9a(_0x49564d,_0x4a7ad9){_0x5aab9e['descriptionFactory']['registerDescriptionCallback'](_0x1d3101=>{if('formatInline'!=_0x1d3101['type'])return;const {data:_0x1b0617}=_0x1d3101;return _0x1b0617&&_0x1b0617['commandName']===_0x49564d?_0x1b0617['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x33c829,'*Format:*\x20%0',_0x4a7ad9)}:{'type':'format','content':o(_0x33c829,'*Remove\x20format:*\x20%0',_0x4a7ad9)}:void 0x0;});}_0x22a9a('bold',o(_0x33c829,'FORMAT_BOLD')),_0x22a9a('italic',o(_0x33c829,'FORMAT_ITALIC')),_0x22a9a('underline',o(_0x33c829,'FORMAT_UNDERLINE')),_0x22a9a('code',o(_0x33c829,'FORMAT_CODE')),_0x22a9a('strikethrough',o(_0x33c829,'FORMAT_STRIKETHROUGH')),_0x22a9a('subscript',o(_0x33c829,'FORMAT_SUBSCRIPT')),_0x22a9a('superscript',o(_0x33c829,'FORMAT_SUPERSCRIPT'));}}class O extends _0x5511a1{['afterInit'](){const _0x425ff1=this['editor'],_0x52207b=_0x425ff1['locale'];if(!_0x425ff1['plugins']['has']('BlockQuoteEditing'))return;const _0x5f2b19=_0x425ff1['plugins']['get']('TrackChangesEditing'),_0x1a6fb4=this['editor']['commands']['get']('blockQuote');_0x5f2b19['enableCommand']('blockQuote',(_0x2619f5,_0x4687b3={})=>{const _0x152241=this['editor']['model']['document']['selection'],_0x2b3069=_0x4687b3&&void 0x0!==_0x4687b3['forceValue']?_0x4687b3['forceValue']:!_0x1a6fb4['value'];let _0x1569f6=[];if(_0x2b3069){const _0x42abad=Array['from'](_0x152241['getSelectedBlocks']())['filter'](_0x33dd71=>oo(_0x33dd71)||function(_0x145682,_0x18f2e2){const _0x3720a9=_0x18f2e2['checkChild'](_0x145682['parent'],'blockQuote'),_0x334ac8=_0x18f2e2['checkChild'](['$root','blockQuote'],_0x145682);return _0x3720a9&&_0x334ac8;}(_0x33dd71,this['editor']['model']['schema']));_0x1569f6=to(_0x42abad,_0x425ff1['model']);}else{const _0xe15e96=Array['from'](_0x152241['getSelectedBlocks']())['filter'](_0x308be3=>oo(_0x308be3));_0x1569f6=to(_0xe15e96,_0x425ff1['model']);}_0x425ff1['model']['change'](()=>{for(const _0x39b104 of _0x1569f6)_0x5f2b19['markBlockFormat'](_0x39b104,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2b3069}]});});}),_0x5f2b19['descriptionFactory']['registerDescriptionCallback'](_0x515cb2=>{const {data:_0x11d801}=_0x515cb2;if(_0x11d801&&'blockQuote'==_0x11d801['commandName']){const _0x418012=o(_0x52207b,'ELEMENT_BLOCK_QUOTE');return _0x11d801['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x52207b,'*Set\x20format:*\x20%0',_0x418012)}:{'type':'format','content':o(_0x52207b,'*Remove\x20format:*\x20%0',_0x418012)};}});}}function oo(_0x57a8eb){return'blockQuote'==_0x57a8eb['parent']['name'];}class F extends _0x5511a1{['afterInit'](){const _0x29d1b8=this['editor'];_0x29d1b8['plugins']['has']('CaseChange')&&(_0x29d1b8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x29d1b8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x29d1b8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x5511a1{['afterInit'](){const _0x98edb1=this['editor'];_0x98edb1['commands']['get']('ckbox')&&_0x98edb1['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x5511a1{['afterInit'](){const _0x5a81f0=this['editor'];if(!_0x5a81f0['plugins']['has']('CodeBlock'))return;const _0x1c51c3=_0x5a81f0['plugins']['get']('TrackChangesEditing'),_0x478b66=_0x5a81f0['locale'],_0x521db3=_0x5a81f0['config']['get']('codeBlock')['languages'],_0x1c7c6f=_0x5a81f0['commands']['get']('codeBlock');_0x1c51c3['enableCommand']('indentCodeBlock'),_0x1c51c3['enableCommand']('outdentCodeBlock'),_0x1c51c3['enableCommand']('codeBlock',(_0x3d3de7,_0x5dd070={})=>{const _0x4b725a=_0x5a81f0['model'],_0x415a29=_0x5a81f0['model']['document']['selection'],_0x371144=_0x5dd070&&void 0x0!==_0x5dd070['forceValue']?_0x5dd070['forceValue']:!_0x1c7c6f['value'];let _0x44e405;_0x5dd070['language']||(_0x5dd070['language']=_0x521db3[0x0]['language']),_0x44e405=_0x371144?Array['from'](_0x415a29['getSelectedBlocks']())['filter'](_0x297625=>eo(_0x297625)||function(_0x28126c,_0x2e09f6){if(_0x28126c['is']('rootElement')||_0x2e09f6['isLimit'](_0x28126c))return!0x1;return _0x2e09f6['checkChild'](_0x28126c['parent'],'codeBlock');}(_0x297625,_0x4b725a['schema'])):Array['from'](_0x415a29['getSelectedBlocks']())['filter'](_0x30b458=>eo(_0x30b458));const _0x5f102e=to(_0x44e405,_0x4b725a);_0x4b725a['change'](()=>{for(const _0x33915e of _0x5f102e)_0x1c51c3['markBlockFormat'](_0x33915e,{'commandName':'codeBlock','commandParams':[{..._0x5dd070,'forceValue':_0x371144}],'formatGroupId':'blockName'});});}),(_0x1c51c3['descriptionFactory']['registerElementLabel']('codeBlock',_0x2a5bed=>o(_0x478b66,'ELEMENT_CODE_BLOCK',_0x2a5bed)),_0x1c51c3['descriptionFactory']['registerDescriptionCallback'](_0x712e99=>{if('formatBlock'!=_0x712e99['type'])return;const _0x3d5d81=_0x478b66['t'],{data:_0x4ef45c}=_0x712e99;if(!_0x4ef45c||'codeBlock'!=_0x4ef45c['commandName'])return;const _0x164002=_0x4ef45c['commandParams'][0x0]['language'],_0x2ead8d=_0x3d5d81(_0x521db3['find'](_0x2e32ba=>_0x2e32ba['language']===_0x164002)['label'])['toLowerCase']();return _0x4ef45c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x478b66,'*Set\x20format:*\x20%0',o(_0x478b66,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2ead8d+')')}:{'type':'format','content':o(_0x478b66,'*Remove\x20format:*\x20%0',o(_0x478b66,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x23a829){return'codeBlock'==_0x23a829['name'];}class H extends _0x5511a1{['afterInit'](){const _0x5a4ce9=this['editor'];if(!_0x5a4ce9['plugins']['has']('CommentsEditing'))return;_0x5a4ce9['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3429e9,_0x40ad51,_0x41b846){const _0x5920f=[];for(const _0x784484 of _0x40ad51['getItems']())_0x784484['hasAttribute'](_0x3429e9)&&_0x5920f['push'](_0x41b846['createRangeOn'](_0x784484));return _0x5920f;}function _e(_0xda879a,_0x295fdf,{showActiveMarker:_0x5c2a3b=!0x0}={}){const _0x5db7b6=_0xda879a['plugins']['get']('TrackChangesEditing');return(_0x4a992b,_0x854d5b,_0x21052c)=>{if(!_0x21052c['consumable']['test'](_0x854d5b['markerRange'],_0x4a992b['name']))return;const _0x278caf=_0x854d5b['markerRange']['getWalker'](),_0x294c0b=_0x854d5b['markerRange']['start'],_0x5505b1=_0xda879a['model']['schema'];let _0x44bf52=null,_0x11cb4b=null,_0x33d424=!0x1,_0x61d818=!0x1;for(const _0x16272b of _0x278caf){const _0x4031f1=_0x16272b['item'];_0x33d424=_0x33d424||_0x5505b1['isContent'](_0x4031f1);const _0x2bb75b=_0x21052c['mapper']['toViewElement'](_0x4031f1);if(_0x2bb75b&&_0x2bb75b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x16272b['type']&&(_0x5505b1['isBlock'](_0x4031f1)&&!_0x5505b1['isLimit'](_0x4031f1)&&(_0x4031f1['nextSibling']||_0x294c0b['isAtEnd']?_0x44bf52&&_0x44bf52['parent']==_0x4031f1||(_0x44bf52=_0x4031f1,_0x44f83a(_0x16272b['previousPosition']),_0x61d818=!0x0):_0x11cb4b=_0x11cb4b||_0x16272b['previousPosition']));}function _0x44f83a(_0x4f132f){const _0x2c7ce1=_0x21052c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x295fdf}),_0xa6ead2=_0x21052c['mapper']['toViewPosition'](_0x4f132f);_0x5c2a3b&&_0x5db7b6['activeMarkers']['includes'](_0x854d5b['markerName'])&&_0x21052c['writer']['addClass']('ck-suggestion-marker--active',_0x2c7ce1),_0x21052c['writer']['insert'](_0xa6ead2,_0x2c7ce1),_0x21052c['mapper']['bindElementToMarker'](_0x2c7ce1,_0x854d5b['markerName']);}_0x33d424||_0x61d818||!_0x11cb4b||_0x44f83a(_0x11cb4b);};}class q extends _0x5511a1{static get['requires'](){return[_0x32994f];}['init'](){const _0x166ad5=this['editor'],_0x5717b2=_0x166ad5['plugins']['get']('TrackChangesEditing');_0x5717b2['enableCommand']('delete');const _0x96ae31=_0x166ad5['commands']['get']('deleteForward');_0x5717b2['enableCommand']('deleteForward',(_0xd0927d,_0x142a9e={})=>{const _0xad4254=_0x166ad5['model']['createSelection'](_0x166ad5['model']['document']['selection']);_0xad4254['isCollapsed']&&_0x166ad5['model']['modifySelection'](_0xad4254,{'direction':'forward','unit':_0x142a9e['unit']});const _0x54b2c5=_0xad4254['getFirstRange'](),_0x4604f7=_0x2f3de9['fromRange'](_0x54b2c5);let _0x2f2efe;_0xd0927d(_0x142a9e),_0x2f2efe='$graveyard'==_0x4604f7['root']['rootName']?_0x166ad5['model']['createRange'](_0x54b2c5['start']):_0x166ad5['model']['createRange'](_0x4604f7['start'],_0x4604f7['end']),_0x4604f7['detach'](),_0x166ad5['model']['enqueueChange'](_0x96ae31['buffer']['batch'],_0x41741f=>{_0x96ae31['buffer']['lock'](),_0x41741f['setSelection'](_0x41741f['createRange'](_0x2f2efe['end'])),_0x96ae31['buffer']['unlock']();});}),_0x166ad5['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x166ad5,'merge'),{'priority':'high'}),_0x166ad5['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3d040c,_0x4ab52d,_0x228cec)=>{_0x228cec['options']['showSuggestionHighlights']&&_e(_0x166ad5,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3d040c,_0x4ab52d,_0x228cec);},{'priority':'high'}),_0x166ad5['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4dc142,_0x27b8fc,_0x4bf49e)=>{const _0x38aa71=_0x4bf49e['mapper']['markerNameToElements'](_0x27b8fc['markerName']);if(_0x38aa71){for(const _0x573cb8 of _0x38aa71)_0x573cb8['is']('uiElement')&&(_0x4bf49e['mapper']['unbindElementFromMarkerName'](_0x573cb8,_0x27b8fc['markerName']),_0x4bf49e['writer']['remove'](_0x573cb8));}},{'priority':'high'});}}class z extends _0x5511a1{['afterInit'](){const _0x569147=this['editor'];if(!_0x569147['plugins']['has']('ListEditing'))return;const _0x44962f=_0x569147['locale'],_0x156d10=_0x569147['plugins']['get']('TrackChangesEditing'),_0x2aac20=_0x569147['plugins']['has']('TodoListEditing'),_0xa86d0f=!!_0x569147['config']['get']('list.multiBlock');function _0x1653a7(_0x2c8622){return{'type':'format','content':''+o(_0x44962f,'*Set\x20format:*\x20%0',_0x2c8622)};}function _0x186401(_0x3c567a){return{'type':'format','content':''+o(_0x44962f,'*Remove\x20format:*\x20%0',_0x3c567a)};}_0x156d10['enableDefaultAttributesIntegration']('numberedList'),_0x156d10['enableDefaultAttributesIntegration']('bulletedList'),_0x156d10['enableDefaultAttributesIntegration']('customNumberedList'),_0x156d10['enableDefaultAttributesIntegration']('customBulletedList'),_0x156d10['enableDefaultAttributesIntegration']('indentList'),_0x156d10['enableDefaultAttributesIntegration']('outdentList'),_0x156d10['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x156d10['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x156d10['registerBlockAttribute']('listItemId'),_0x156d10['registerBlockAttribute']('listType'),_0x156d10['registerBlockAttribute']('listIndent'),_0xa86d0f&&(_0x156d10['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x156d10['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2aac20&&(_0x156d10['enableDefaultAttributesIntegration']('todoList'),_0x156d10['enableDefaultAttributesIntegration']('checkTodoList'),_0x156d10['registerBlockAttribute']('todoListChecked'),_0x156d10['descriptionFactory']['registerDescriptionCallback'](_0x166427=>{const {data:_0x3a1c05}=_0x166427;if(_0x3a1c05&&'todoListChecked'==_0x3a1c05['key'])return{'type':'format','content':_0x3a1c05['newValue']?o(_0x44962f,'*Check\x20item*'):o(_0x44962f,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x19abf3=>{if(_0x19abf3['batch']['isUndo'])return!0x1;let _0x58eba4=!0x1;const _0x5f120e=_0x156d10['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4dcb34=>'todoListChecked'===_0x156d10['_getAttributeKey'](_0x4dcb34));for(const _0x583b4b of _0x5f120e){'todo'!=_0x583b4b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x156d10['_findSuggestions'](_0x583b4b['getFirstRange'](),'attribute')['find'](_0x12e77e=>'listType'===_0x156d10['_getAttributeKey'](_0x12e77e['suggestion']))||(_0x19abf3['removeMarker'](_0x583b4b['getFirstMarker']()),_0x58eba4=!0x0));}return _0x58eba4;})),_0x156d10['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x44962f,'FORMAT_INDENT'));const _0x4aafd3={'type':'format','content':''};_0x156d10['descriptionFactory']['registerDescriptionCallback'](_0x3313a1=>{const {data:_0x443162}=_0x3313a1;if(!_0x443162||'listType'!=_0x443162['key'])return;let _0x3bfeb0=_0x3313a1['head'];for(;_0x3bfeb0;){if(_0x3bfeb0['data']&&(('listStyle'==_0x3bfeb0['data']['key']||'listMarkerStyle'==_0x3bfeb0['data']['key'])&&(_0x3bfeb0['data']['newValue']&&'default'!=_0x3bfeb0['data']['newValue']||'default'!=_0x3bfeb0['data']['oldValue']&&!_0x443162['newValue'])||!_0xa86d0f&&_0x3bfeb0['data']['key']==m))return _0x4aafd3;_0x3bfeb0=_0x3bfeb0['next'];}if(null==_0x443162['newValue'])switch(_0x443162['oldValue']){case'bulleted':return _0x186401(o(_0x44962f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x186401(o(_0x44962f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x186401(o(_0x44962f,'ELEMENT_TODO_LIST'));}switch(_0x443162['newValue']){case'bulleted':return _0x1653a7(o(_0x44962f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1653a7(o(_0x44962f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1653a7(o(_0x44962f,'ELEMENT_TODO_LIST'));}}),_0x156d10['descriptionFactory']['registerDescriptionCallback'](_0x391e86=>{const {data:_0x452d40}=_0x391e86;if(_0x452d40&&'listIndent'==_0x452d40['key'])return null==_0x452d40['newValue']||null==_0x452d40['oldValue']&&0x0==_0x452d40['newValue']?_0x4aafd3:void 0x0;}),_0x156d10['descriptionFactory']['registerDescriptionCallback'](_0x288fbc=>{if('attribute'!=_0x288fbc['type'])return;const {data:_0x1d58d8}=_0x288fbc;if(!_0x1d58d8||'listItemId'!=_0x1d58d8['key'])return;const _0xaf391=le(_0x288fbc);return'newValue'==_0xaf391?{'type':'format','content':o(_0x44962f,'*Merge:*\x20list\x20item')}:'oldValue'==_0xaf391?{'type':'format','content':o(_0x44962f,'*Split:*\x20list\x20item')}:_0x4aafd3;}),_0x569147['model']['document']['registerPostFixer'](_0x5da4c0=>this['listItemIdFixer'](_0x5da4c0)),_0x569147['model']['document']['registerPostFixer'](_0x158742=>this['noTrackChangesFixer'](_0x158742)),_0x569147['model']['document']['registerPostFixer'](_0x4c5484=>this['assureChains'](_0x4c5484)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x15aab4){if(_0x15aab4['batch']['isUndo']||!_0x15aab4['batch']['isLocal'])return!0x1;let _0x3a6fef=!0x1;const _0x22f7c6=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2c4606=>_0x2c4606['data']&&'listItemId'==_0x2c4606['data']['key'])['filter'](_0x153e64=>_0x153e64['data']['newValue']&&_0x153e64['data']['oldValue']);for(const _0x1b3623 of _0x22f7c6)le(_0x1b3623)||(_0x15aab4['removeMarker'](_0x1b3623['getFirstMarker']()),_0x3a6fef=!0x0);return _0x3a6fef;}['noTrackChangesFixer'](_0x435358){if(_0x435358['batch']['isUndo']||!_0x435358['batch']['isLocal'])return!0x1;const _0x556384=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x556384['trackChangesCommand']['value'])return!0x1;let _0x14a43a=!0x1;const _0x2a4d7f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xf0c92c=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x349a48=>'attribute'==_0x349a48['type'])['filter'](_0x45df4f=>_0x2a4d7f['includes'](_0x45df4f['attributeKey']));if(0x0==_0xf0c92c['length'])return _0x14a43a;for(const _0x28583b of _0xf0c92c){const _0x3771a0=_0x556384['_findSuggestions'](_0x28583b['range'],'attribute')['filter'](_0x17b58a=>!_0x17b58a['meta']['isNextTo'])['map'](_0x55174d=>_0x55174d['suggestion'])['filter'](_0x202f31=>{const _0x2e1db3=_0x556384['_getAttributeKey'](_0x202f31);return _0x2a4d7f['includes'](_0x2e1db3);});if(_0x3771a0['length']){for(const _0x41c3cd of _0x3771a0)_0x435358['removeMarker'](_0x41c3cd['getFirstMarker']());_0x14a43a=!0x0;}}return _0x14a43a;}['assureChains'](_0x4966c2){if(_0x4966c2['batch']['isUndo']||!_0x4966c2['batch']['isLocal'])return!0x1;const _0x2af4c6=this['editor']['plugins']['get']('TrackChangesEditing');let _0x388f19=!0x1;const _0x4cfb42=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x4282f8 of _0x2af4c6['getSuggestions']({'skipNotAttached':!0x0})){const _0x329a36=_0x2af4c6['_findSuggestions'](_0x4282f8['getFirstRange'](),'attribute')['map'](_0x208bd8=>_0x208bd8['suggestion'])['filter'](_0x3eb400=>_0x3eb400['data']&&_0x4cfb42['includes'](_0x3eb400['data']['key']));if(!_0x329a36['length'])continue;const _0x1ba1d1=_0x329a36[0x0]['head']['attributes']['groupId'];if(!_0x329a36['every'](_0x2c2c45=>_0x2c2c45['attributes']['groupId']===_0x1ba1d1)){for(const _0x5cc05d of _0x329a36)_0x188a8e(_0x5cc05d,_0x1ba1d1)&&(_0x388f19=!0x0);}}return _0x388f19;function _0x2e461c(_0x56008d,_0x456436){for(const _0x36d89c of _0x2af4c6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf52515=>'attribute'==_0xf52515['type']&&_0xf52515['attributes']['groupId']==_0x56008d))_0x36d89c['setAttribute']('groupId',_0x456436);}function _0x188a8e(_0x113e86,_0x4e7f5f){let _0x4838ad=_0x113e86['head'],_0x12aad2=!0x1;for(;_0x4838ad;)_0x4838ad['attributes']['groupId']!=_0x4e7f5f&&(_0x2e461c(_0x4838ad['attributes']['groupId'],_0x4e7f5f),_0x4838ad['setAttribute']('groupId',_0x4e7f5f),_0x12aad2=!0x0),_0x4838ad=_0x4838ad['next'];return _0x12aad2;}}['_supportLegacySuggestions'](){const _0x94b859=this['editor'],_0x528857=_0x94b859['locale'],_0x4b4f53=_0x94b859['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4b4f53['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1b4f99,_0x1c27bd){const _0x150d0a=[];for(let _0x55103e of _0x1b4f99)_0x55103e['start']['nodeAfter']===_0x55103e['end']['parent']&&(_0x55103e=_0x94b859['model']['createRange'](_0x94b859['model']['createPositionAt'](_0x55103e['start']['nodeAfter'],0x0))),_0x150d0a['push'](_0x55103e);_0x94b859['model']['change'](_0x1fdfb4=>{const _0x31aa8b=_0x94b859['model']['document']['selection'],_0x4fef6b=Array['from'](_0x31aa8b['getRanges']())['map'](_0x2156f7=>_0x2f3de9['fromRange'](_0x2156f7));_0x1fdfb4['setSelection'](_0x150d0a),_0x94b859['commands']['get'](_0x1c27bd['commandName'])['refresh'](),_0x1c27bd['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x94b859['execute'](_0x1c27bd['commandName'],..._0x1c27bd['commandParams']),_0x1fdfb4['setSelection'](_0x4fef6b);for(const _0x221617 of _0x4fef6b)_0x221617['detach']();});}),_0x4b4f53['descriptionFactory']['registerElementLabel'](function(_0x372b66){const _0x29f740=!_0x94b859['model']['schema']['isObject'](_0x372b66),_0x1dc035=_0x372b66['previousSibling'],_0x37f24a=_0x372b66['nextSibling'],_0x4fe1bd=_0x372b66['getAttribute']('listItemId'),_0x2bdea1=!_0x1dc035||_0x1dc035['getAttribute']('listItemId')!==_0x4fe1bd,_0x558cba=!_0x37f24a||_0x37f24a['getAttribute']('listItemId')!==_0x4fe1bd;return _0x29f740&&Boolean(_0x4fe1bd)&&_0x2bdea1&&_0x558cba;},_0x2abc25=>o(_0x528857,'ELEMENT_LIST_ITEM',_0x2abc25));}['_registerLegacyDescription'](){const _0x4b65fe=this['editor'],_0x2d364a=_0x4b65fe['locale'];function _0x265e3c(_0x2d5a20){const _0x237936=_0x4b65fe['commands']['get']('bulletedList')['value'],_0x5f5305=_0x4b65fe['commands']['get']('numberedList')['value'];return'numberedList'===_0x2d5a20?_0x237936:_0x5f5305;}_0x4b65fe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2bb670){if('formatBlock'!=_0x2bb670['type'])return;const {data:_0x4a4f0b}=_0x2bb670;if(!_0x4a4f0b)return;let _0x1c6c39,_0x848c3f,_0x2f208b,_0xac1e25;switch(_0x4a4f0b['commandName']){case'bulletedList':_0x2f208b=_0x4a4f0b['commandParams'][0x0]['forceValue'],_0xac1e25=_0x265e3c(_0x4a4f0b['commandName']),_0x1c6c39=_0x2f208b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xac1e25&&_0x4b65fe['config']['get']('list.multiBlock')||(_0x1c6c39='*Change\x20to:*\x20%0'),_0x848c3f={'type':'format','content':o(_0x2d364a,_0x1c6c39,o(_0x2d364a,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2f208b=_0x4a4f0b['commandParams'][0x0]['forceValue'],_0xac1e25=_0x265e3c(_0x4a4f0b['commandName']),_0x1c6c39=_0x2f208b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xac1e25&&_0x4b65fe['config']['get']('list.multiBlock')||(_0x1c6c39='*Change\x20to:*\x20%0'),_0x848c3f={'type':'format','content':o(_0x2d364a,_0x1c6c39,o(_0x2d364a,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1c6c39='*Indent:*\x20%0',_0x848c3f={'type':'format','content':o(_0x2d364a,_0x1c6c39,o(_0x2d364a,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1c6c39=function(_0x5e3dbf){const _0x50edf8=_0x5e3dbf['getFirstRange']();let _0x101f03=_0x50edf8['start']['nodeAfter'];for(;_0x101f03&&_0x50edf8['containsItem'](_0x101f03);){if(_0x101f03['getAttribute']('listIndent')>0x0)return!0x1;_0x101f03=_0x101f03['nextSibling'];}return!0x0;}(_0x2bb670)?o(_0x2d364a,'*Format:*\x20remove\x20from\x20%0',o(_0x2d364a,function(_0x5118dd){return'ELEMENT_'+_0x5118dd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2bb670))):o(_0x2d364a,'*Outdent:*\x20%0',o(_0x2d364a,'ELEMENT_LIST_ITEM')),_0x848c3f={'type':'format','content':_0x1c6c39};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4a4f0b['multipleBlocks']&&(_0x1c6c39='*Merge:*\x20%0',_0x848c3f={'type':'deletion','content':o(_0x2d364a,_0x1c6c39,o(_0x2d364a,'ELEMENT_LIST_ITEM'))});}return _0x848c3f;});}}function le(_0x355668){let _0x55f705=_0x355668['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x55f705;){const _0x3a5e73=_0x55f705['getAttribute']('listItemId');if(!_0x3a5e73)return!0x1;if(_0x3a5e73==_0x355668['data']['newValue'])return'newValue';if(_0x3a5e73==_0x355668['data']['oldValue'])return'oldValue';_0x55f705=_0x55f705['previousSibling'];}return!0x1;}class ue extends _0x5511a1{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x14ed68=this['editor']['config']['get']('list.properties'),_0x115ad0=this['editor']['plugins']['get']('TrackChangesEditing');_0x14ed68['styles']&&(_0x115ad0['enableDefaultAttributesIntegration']('listStyle'),_0x115ad0['registerBlockAttribute']('listStyle')),_0x14ed68['reversed']&&(_0x115ad0['enableDefaultAttributesIntegration']('listReversed'),_0x115ad0['registerBlockAttribute']('listReversed')),_0x14ed68['startIndex']&&(_0x115ad0['enableDefaultAttributesIntegration']('listStart'),_0x115ad0['registerBlockAttribute']('listStart'));const _0x1533cd={'type':'format','content':''};_0x115ad0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x79fe40=this['editor']['locale'];_0x115ad0['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x79fe40,'FORMAT_LIST_REVERSED')),_0x115ad0['descriptionFactory']['registerDescriptionCallback'](_0x508cc6=>{const {data:_0x3cd550}=_0x508cc6;if(_0x3cd550&&'listReversed'==_0x3cd550['key'])return null==_0x3cd550['newValue']||0x0==_0x3cd550['newValue']&&null==_0x3cd550['oldValue']?_0x1533cd:void 0x0;}),_0x115ad0['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x79fe40,'FORMAT_LIST_START')),_0x115ad0['descriptionFactory']['registerDescriptionCallback'](_0x4590a7=>{const {data:_0x4020a1}=_0x4590a7;if(_0x4020a1&&'listStart'==_0x4020a1['key'])return null==_0x4020a1['newValue']||0x1==_0x4020a1['newValue']&&null==_0x4020a1['oldValue']?_0x1533cd:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x29a68f=>{if(_0x29a68f['batch']['isUndo'])return!0x1;let _0x2a719f=!0x1;const _0x38dda0=_0x115ad0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5a0485=>{const _0x459a31=_0x115ad0['_getAttributeKey'](_0x5a0485);return'listStart'==_0x459a31||'listReversed'==_0x459a31;});for(const _0x2d6d26 of _0x38dda0){const _0x43208a=_0x2d6d26['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x43208a||'customNumbered'==_0x43208a)continue;_0x115ad0['_findSuggestions'](_0x2d6d26['getFirstRange'](),'attribute')['find'](_0x1ae9c3=>'listType'==_0x115ad0['_getAttributeKey'](_0x1ae9c3['suggestion']))||(_0x29a68f['removeMarker'](_0x2d6d26['getFirstMarker']()),_0x2a719f=!0x0);}return _0x2a719f;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x538481){const _0x1befb8=this['editor']['locale'],{data:_0xce6429}=_0x538481,_0x2e892f={'type':'format','content':''};if(!_0xce6429||'listStyle'!=_0xce6429['key'])return;if(!_0xce6429['oldValue'])return'default'==_0xce6429['newValue']?_0x2e892f:{'type':'format','content':''+o(_0x1befb8,'*Set\x20format:*\x20%0',o(_0x1befb8,this['_getTranslationKeyForListStyle'](_0xce6429['newValue'])))};if(!_0xce6429['newValue']){if('default'==_0xce6429['oldValue'])return _0x2e892f;let _0x52da54=_0x538481['head'];for(;_0x52da54;){if(_0x52da54['data']&&'listType'==_0x52da54['data']['key']&&_0x52da54['data']['newValue'])return _0x2e892f;_0x52da54=_0x52da54['next'];}return{'type':'format','content':''+o(_0x1befb8,'*Remove\x20format:*\x20%0',o(_0x1befb8,this['_getTranslationKeyForListStyle'](_0xce6429['oldValue'])))};}if('default'!=_0xce6429['newValue'])return{'type':'format','content':''+o(_0x1befb8,'*Set\x20format:*\x20%0',o(_0x1befb8,this['_getTranslationKeyForListStyle'](_0xce6429['newValue'])))};let _0x4e63da=_0x538481['head'];for(;_0x4e63da;){if(_0x4e63da['data']&&'listType'==_0x4e63da['data']['key']&&_0x4e63da['data']['newValue']&&_0x4e63da['data']['oldValue'])return _0x2e892f;_0x4e63da=_0x4e63da['next'];}return{'type':'format','content':o(_0x1befb8,'*Set\x20format:*\x20%0',o(_0x1befb8,'ELEMENT_'+_0x538481['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x14ffeb=this['editor'],_0x6435a6=_0x14ffeb['locale'];_0x14ffeb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x482cf9=>{if('formatBlock'!=_0x482cf9['type'])return;const {data:_0x313926}=_0x482cf9;if(!_0x313926)return;let _0x59d4b5,_0x4f308d;switch(_0x313926['commandName']){case'listStyle':_0x59d4b5='*Change\x20to:*\x20%0',_0x4f308d={'type':'format','content':o(_0x6435a6,_0x59d4b5,o(_0x6435a6,this['_getTranslationKeyForListStyle'](_0x313926['commandParams'][0x0]['type'])))};break;case'listReversed':_0x59d4b5=_0x313926['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4f308d={'type':'format','content':o(_0x6435a6,_0x59d4b5)};break;case'listStart':_0x59d4b5='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4f308d={'type':'format','content':o(_0x6435a6,_0x59d4b5,_0x313926['commandParams'][0x0]['startIndex'])};}return _0x4f308d;});}['_getTranslationKeyForListStyle'](_0x2f0cfc){return'ELEMENT_'+function(_0x5c3aed){if(pe['includes'](_0x5c3aed))return'bulleted';if(ye['includes'](_0x5c3aed))return'numbered';return null;}(_0x2f0cfc)['toUpperCase']()+'_LIST_'+_0x2f0cfc['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x5511a1{static get['requires'](){return[_0x33bee5];}['init'](){const _0x5e4146=this['editor'],_0x32b4a4=_0x5e4146['plugins']['get']('TrackChangesEditing'),_0xb3002d=_0x5e4146['commands']['get']('enter');_0x32b4a4['enableCommand']('enter',()=>{_0x5e4146['model']['change'](_0x2888ee=>{const _0x3b8423=_0x5e4146['model']['document']['selection'],_0x1bbaa0=_0x3b8423['getFirstPosition'](),_0x224f3f=_0x2f3de9['fromRange'](_0x3b8423['getFirstRange']());if(_0xb3002d['enterBlock'](_0x2888ee)){const _0x54a5d3=_0x5e4146['model']['createPositionAt'](_0x1bbaa0['parent']['nextSibling'],0x0),_0x96ebf8=_0x2888ee['createRange'](_0x1bbaa0,_0x54a5d3);_0x32b4a4['markInsertion'](_0x96ebf8);}else _0x2888ee['setSelection'](_0x2888ee['createRange'](_0x224f3f['end']));_0x224f3f['detach'](),_0xb3002d['fire']('afterExecute',{'writer':_0x2888ee});});}),_0x5e4146['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x5e4146,'split'),{'priority':'high'}),_0x5e4146['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3b57ca,_0x46f980,_0xc9443c)=>{const _0x10bddb=_0xc9443c['mapper']['markerNameToElements'](_0x46f980['markerName']);if(_0x10bddb){for(const _0x1df3ce of _0x10bddb)_0x1df3ce['hasClass']('ck-suggestion-marker-split')&&(_0xc9443c['mapper']['unbindElementFromMarkerName'](_0x1df3ce,_0x46f980['markerName']),_0xc9443c['writer']['remove'](_0x1df3ce));}},{'priority':'high'}),_0x5e4146['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x178389,_0x278a63,_0xaa60f6)=>{_0xaa60f6['options']['showSuggestionHighlights']&&_e(_0x5e4146,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x178389,_0x278a63,_0xaa60f6);},{'priority':'high'});}}class J extends _0x5511a1{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x47c8bf=this['editor']['plugins']['get']('TrackChangesEditing');_0x47c8bf['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x47c8bf['enableCommand']('findNext'),_0x47c8bf['enableCommand']('findPrevious'),_0x47c8bf['enableCommand']('replace'),_0x47c8bf['enableCommand']('replaceAll');}['handleFindCommand'](_0x2d306f,_0x34f28a,_0x299384={}){const _0x46ab04=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2d306f(_0x2ee991=>('string'==typeof _0x34f28a?_0x46ab04['findByTextCallback'](_0x34f28a,_0x299384):_0x34f28a)(_0x2ee991)['filter'](_0x37d5c0=>!0x1===this['_isInDeletionRange'](_0x37d5c0,_0x2ee991['item'])),_0x299384);}['_isInDeletionRange'](_0x37f11f,_0x92a81d){const _0x576c14=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x92a81d,_0x37f11f['start']),this['editor']['model']['createPositionAt'](_0x92a81d,_0x37f11f['end']));for(const _0x4412de of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x576c14['getIntersection'](_0x4412de['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 _0x5511a1{['afterInit'](){const _0x33d517=this['editor']['locale'],_0xac875e=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4815b0,commandName:_0xa3b9f5}of ro)this['editor']['plugins']['has'](_0x4815b0)&&(_0xac875e['enableDefaultAttributesIntegration'](_0xa3b9f5),_0xac875e['registerInlineAttribute'](_0xa3b9f5));_0x33d517['t'],_0xac875e['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x33d517,'FORMAT_FONT_SIZE')),_0xac875e['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x33d517,'FORMAT_FONT_FAMILY')),_0xac875e['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x33d517,'FORMAT_FONT_COLOR')),_0xac875e['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x33d517,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e168f=this['editor'],_0x42ec48=_0x3e168f['locale'];_0x3e168f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4042cd=>{const _0x1241dc=_0x42ec48['t'];if('formatInline'!=_0x4042cd['type'])return;const {data:_0x352c23}=_0x4042cd;if(null!=_0x352c23){if('fontSize'==_0x352c23['commandName']){const _0x1fc363=_0x352c23['commandParams'][0x0]['value'];if(_0x1fc363){const _0x2fd924=_0x1241dc(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2030df=>_0x2030df['model']==_0x1fc363)['title'])['toLowerCase']();return{'type':'format','content':o(_0x42ec48,'*Set\x20font\x20size:*\x20%0',_0x2fd924)};}return{'type':'format','content':o(_0x42ec48,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x352c23['commandName']){const _0xe7f3c2=_0x352c23['commandParams'][0x0]['value'];return _0xe7f3c2?{'type':'format','content':o(_0x42ec48,'*Set\x20font\x20family:*\x20%0',_0xe7f3c2)}:{'type':'format','content':o(_0x42ec48,'*Reset\x20font\x20family*')};}if('fontColor'==_0x352c23['commandName']){const _0x25bbad=_0x352c23['commandParams'][0x0]['value'];if(_0x25bbad){const _0x50e293=_0x20bde1(this['editor']['config']['get']('fontColor.colors'))['find'](_0x254e1d=>_0x254e1d['model']==_0x25bbad);let _0x5a26ec=_0x25bbad,_0x4f0bfd='';return _0x50e293&&(_0x5a26ec=_0x50e293['label'],_0x4f0bfd=_0x1241dc(_0x5a26ec)['toLowerCase']()),{'type':'format','content':o(_0x42ec48,'*Set\x20font\x20color:*\x20%0',_0x4f0bfd)['trim'](),'color':{'value':_0x25bbad,'title':_0x4f0bfd||_0x5a26ec}};}return{'type':'format','content':o(_0x42ec48,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x352c23['commandName']){const _0x3430d3=_0x352c23['commandParams'][0x0]['value'];if(_0x3430d3){const _0x2d835f=_0x20bde1(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x33f514=>_0x33f514['model']==_0x3430d3);let _0x2da9c7=_0x3430d3,_0x3a7b99='';return _0x2d835f&&(_0x2da9c7=_0x2d835f['label'],_0x3a7b99=_0x1241dc(_0x2da9c7)['toLowerCase']()),{'type':'format','content':o(_0x42ec48,'*Set\x20font\x20background\x20color:*\x20%0',_0x3a7b99)['trim'](),'color':{'value':_0x3430d3,'title':_0x3a7b99||_0x2da9c7}};}return{'type':'format','content':o(_0x42ec48,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x5511a1{['afterInit'](){const _0x3a84b1=this['editor'],_0x42bce0=_0x3a84b1['plugins']['get']('TrackChangesEditing'),_0x29aa0a=_0x3a84b1['commands']['get']('copyFormat'),_0x1214de=_0x3a84b1['commands']['get']('pasteFormat');_0x29aa0a&&_0x1214de&&(_0x42bce0['enableDefaultAttributesIntegration']('pasteFormat'),_0x42bce0['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2c683d=this['editor'],_0x37637a=_0x2c683d['locale'];_0x2c683d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x467ce1=>{if('formatBlock'!=_0x467ce1['type']&&'formatInline'!=_0x467ce1['type'])return;const {data:_0x55144b}=_0x467ce1;if(_0x55144b&&'pasteFormat'===_0x55144b['commandName']){const _0x3c0982=[],_0x3b5c6a=_0x55144b['commandParams'][0x0];for(const [_0x1c69e6,_0x131aa2]of Object['entries'](_0x3b5c6a))_0x3c0982['push'](so(_0x2c683d,_0x1c69e6,_0x131aa2));return _0x3c0982['length']?{'type':'format','content':o(_0x37637a,'*Set\x20format\x20to:*\x20%0',_0x3c0982['join'](',\x20'))}:{'type':'format','content':o(_0x37637a,'*Remove\x20all\x20formatting*')};}});}}function so(_0x384d1c,_0x273ca2,_0x8ba308){const _0xc6dbc4=_0x384d1c['locale']['t'],_0x5d86c6=_0x273ca2['split'](/(?=[A-Z])/)['join']('\x20'),_0x4b494f=_0xc6dbc4(_0x5d86c6['charAt'](0x0)['toUpperCase']()+_0x5d86c6['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x8ba308)return _0x4b494f;if('fontColor'===_0x273ca2||'fontBackgroundColor'===_0x273ca2){const _0x53bcab=_0x20bde1(_0x384d1c['config']['get']('fontColor.colors'))['find'](_0x4f74b4=>_0x4f74b4['model']==_0x8ba308);return _0x4b494f+'\x20('+(_0x53bcab?_0xc6dbc4(_0x53bcab['label'])['toLowerCase']():_0x8ba308)+')';}if('fontSize'===_0x273ca2&&isNaN(parseFloat(_0x8ba308))){const _0xea7580=_0x384d1c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x384d1c['config']['get']('fontSize.options'))['find'](_0xe01a38=>_0xe01a38['model']==_0x8ba308);return _0x4b494f+'\x20('+(_0xea7580?_0xc6dbc4(_0xea7580['title'])['toLowerCase']():_0x8ba308)+')';}return _0x4b494f+'\x20('+_0x8ba308+')';}class Y extends _0x5511a1{['afterInit'](){const _0xb764bf=this['editor'];if(!_0xb764bf['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xb764bf['config']['get']('heading.options');const _0xd400bf=_0xb764bf['locale'],_0x4288ad=_0xb764bf['plugins']['get']('TrackChangesEditing');_0x4288ad['enableDefaultAttributesIntegration']('heading');for(const _0xc5f3df of this['_headingOptions'])'paragraph'!=_0xc5f3df['model']&&_0x4288ad['descriptionFactory']['registerElementLabel'](_0xc5f3df['model'],_0x55b9f5=>{const _0x31f41e=this['_getHeadingLevel'](_0xc5f3df['model']);return null!==_0x31f41e?_0x43f999(_0x55b9f5,_0x31f41e):_0x1e3f45(_0x55b9f5,_0xc5f3df['title']);});function _0x43f999(_0x2123b1,_0x3c850a){return o(_0xd400bf,'ELEMENT_HEADING',[_0x2123b1,_0x3c850a]);}function _0x1e3f45(_0x23a1fa,_0x2e0ba6){return o(_0xd400bf,'ELEMENT_HEADING_CUSTOM',[_0x23a1fa,_0x2e0ba6]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24e941=this['editor'],_0xbb386d=_0x24e941['locale'];function _0x9dec61(_0xd14bf7,_0x46eadb){return o(_0xbb386d,'ELEMENT_HEADING_CUSTOM',[_0xd14bf7,_0x46eadb]);}_0x24e941['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x565dca=>{if('formatBlock'!=_0x565dca['type'])return;const {data:_0x5064ee}=_0x565dca;if(_0x5064ee&&'heading'==_0x5064ee['commandName']){const _0x47481a=_0x5064ee['commandParams'][0x0]['value'],_0x295a3f=this['_getHeadingLevel'](_0x47481a);if(null!==_0x295a3f)return{'type':'format','content':o(_0xbb386d,'*Change\x20to:*\x20%0',(_0x58fdc6=0x1,_0x2432be=_0x295a3f,o(_0xbb386d,'ELEMENT_HEADING',[_0x58fdc6,_0x2432be])))};const _0xe3d7aa=this['_headingOptions']['find'](_0x1649ca=>_0x1649ca['model']===_0x47481a)['title'];return{'type':'format','content':o(_0xbb386d,'*Change\x20to:*\x20%0',_0x9dec61(0x1,_0xe3d7aa))};}var _0x58fdc6,_0x2432be;});}['_getHeadingLevel'](_0xd49d9e){var _0x2714ce,_0x107c05;const _0x480313=_0xd49d9e['match'](/^heading(\d+)/);if(_0x480313)return _0x480313[0x1];const _0x25ed8e=null===(_0x2714ce=this['_headingOptions'])||void 0x0===_0x2714ce?void 0x0:_0x2714ce['find'](_0x29ee67=>_0x29ee67['model']==_0xd49d9e);if(_0x25ed8e&&_0x25ed8e['view']){const _0x407742=_0x25ed8e['view'],_0x176484=(null!==(_0x107c05=_0x407742['name'])&&void 0x0!==_0x107c05?_0x107c05:_0x407742)['match'](/^h(\d+)/);if(_0x176484)return _0x176484[0x1];}return null;}}class Z extends _0x5511a1{['afterInit'](){const _0x235956=this['editor'];if(!_0x235956['plugins']['has']('HighlightEditing'))return;const _0x244671=_0x235956['plugins']['get']('TrackChangesEditing'),_0x104793=_0x235956['locale'];_0x244671['enableDefaultAttributesIntegration']('highlight'),_0x244671['registerInlineAttribute']('highlight'),_0x244671['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x104793,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x340bd7=this['editor'],_0x2aa3a1=_0x340bd7['locale'];_0x340bd7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fd61f=>{if('formatInline'!=_0x2fd61f['type'])return;const {data:_0x39353f}=_0x2fd61f;if(_0x39353f&&'highlight'==_0x39353f['commandName']){const _0x10d808=_0x2aa3a1['t'],_0x466dcc=_0x39353f['commandParams'][0x0]['value'];if(_0x466dcc){const _0x2f4f15=_0x340bd7['config']['get']('highlight.options')['find'](_0x71ba8=>_0x71ba8['model']==_0x466dcc),_0x526429=_0x10d808(_0x2f4f15['title'])['toLowerCase']();return{'type':'format','content':o(_0x2aa3a1,'*Set\x20highlight:*\x20%0',_0x526429),'color':{'value':_0x2f4f15['color'],'title':_0x2f4f15['title']}};}return{'type':'format','content':o(_0x2aa3a1,'*Remove\x20highlight*',o(_0x2aa3a1,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x5511a1{['afterInit'](){const _0x2d6c18=this['editor'];if(!_0x2d6c18['plugins']['has']('HorizontalLineEditing'))return;_0x2d6c18['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3165ba=_0x2d6c18['plugins']['get']('TrackChangesEditing'),_0x348137=_0x2d6c18['locale'];_0x3165ba['descriptionFactory']['registerElementLabel']('horizontalLine',_0x21b25f=>o(_0x348137,'ELEMENT_HORIZONTAL_LINE',_0x21b25f)),_0x2d6c18['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x13928a,{writer:_0x3e080a,options:_0x1fb052})=>{if(!_0x1fb052['showSuggestionHighlights'])return null;const _0x4d049d=_0x3e080a['createContainerElement']('div'),_0x311164=_0x3e080a['createEmptyElement']('hr');return _0x3e080a['addClass']('ck-horizontal-line',_0x4d049d),_0x3e080a['insert'](_0x3e080a['createPositionAt'](_0x4d049d,0x0),_0x311164),_0x4d049d;},'converterPriority':'high'});}}class et extends _0x5511a1{['afterInit'](){const _0x48ef3e=this['editor'];if(!_0x48ef3e['plugins']['has']('HtmlEmbed'))return;const _0x36fc64=_0x48ef3e['plugins']['get']('TrackChangesEditing'),_0x2bd7b6=_0x48ef3e['locale'];_0x36fc64['descriptionFactory']['registerElementLabel']('rawHtml',_0x4178fd=>o(_0x2bd7b6,'ELEMENT_HTML_EMBED',_0x4178fd)),_0x36fc64['enableDefaultAttributesIntegration']('htmlEmbed'),_0x36fc64['registerBlockAttribute']('value'),_0x36fc64['descriptionFactory']['registerDescriptionCallback'](_0x58f5c3=>{if('attribute'!=_0x58f5c3['type'])return;const {data:_0x13107e}=_0x58f5c3;if(_0x13107e&&'value'==_0x13107e['key']&&_0x58f5c3['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2a3e42=o(_0x2bd7b6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2bd7b6,'*Change\x20%0\x20content*',_0x2a3e42)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1961d0=this['editor'],_0x3fd874=_0x1961d0['locale'];_0x1961d0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x354ec2=>{if('formatBlock'!=_0x354ec2['type'])return;const {data:_0x10ed08}=_0x354ec2;if(_0x10ed08&&'htmlEmbed'==_0x10ed08['commandName']){const _0x3242cd=o(_0x3fd874,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3fd874,'*Change\x20%0\x20content*',_0x3242cd)};}});}}class it extends _0x5511a1{['afterInit'](){const _0x52239e=this['editor'];if(!_0x52239e['plugins']['has']('ImageEditing'))return;const _0x55ae94=_0x52239e['plugins']['get']('TrackChangesEditing'),_0x3da80f=_0x52239e['plugins']['get']('ImageUtils'),_0x7edb00=_0x52239e['locale'];_0x55ae94['enableCommand']('insertImage'),_0x55ae94['descriptionFactory']['registerElementLabel']('imageBlock',_0x36bd3f=>o(_0x7edb00,'ELEMENT_IMAGE',_0x36bd3f)),_0x55ae94['descriptionFactory']['registerElementLabel']('imageInline',_0x4b1e0c=>o(_0x7edb00,'ELEMENT_INLINE_IMAGE',_0x4b1e0c)),_0x55ae94['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x7edb00,'ELEMENT_CAPTION')),_0x52239e['plugins']['has']('ImageUploadEditing')&&_0x55ae94['enableCommand']('uploadImage'),_0x52239e['plugins']['has']('ImageBlockEditing')&&_0x52239e['plugins']['has']('ImageInlineEditing')&&(_0x55ae94['enableCommand']('imageTypeInline',(_0x26de56,_0x48e355)=>{const _0x21ec83=_0x3da80f['getClosestSelectedImageElement'](_0x52239e['model']['document']['selection']);_0x52239e['model']['change'](()=>{_0x55ae94['markBlockFormat'](_0x21ec83,{'commandName':'imageTypeInline','commandParams':[_0x48e355]},[],'convertBlockImageToInline');});}),_0x55ae94['enableCommand']('imageTypeBlock',(_0x46918b,_0x2bfcd2)=>{_0x52239e['model']['change'](_0x588acb=>{let _0x3d0356=_0x3da80f['getClosestSelectedImageElement'](_0x52239e['model']['document']['selection']),_0x2e969c=_0x588acb['createRangeOn'](_0x3d0356);const _0x5b60b1=_0x583a2a['fromPosition'](_0x2e969c['start'],'toPrevious'),_0x1fd151=_0x583a2a['fromPosition'](_0x2e969c['end'],'toNext');_0x55ae94['forceDefaultExecution'](()=>_0x46918b(_0x2bfcd2)),_0x3d0356=_0x3da80f['getClosestSelectedImageElement'](_0x52239e['model']['document']['selection']),_0x2e969c=_0x588acb['createRangeOn'](_0x3d0356);const _0x218a23=_0x588acb['createRange'](_0x5b60b1,_0x1fd151);_0x5b60b1['detach'](),_0x1fd151['detach'](),_0x55ae94['markBlockFormat'](_0x3d0356,{'commandName':'imageTypeInline','commandParams':[_0x2bfcd2]},[],'convertInlineImageToBlock'),_0x218a23['start']['isBefore'](_0x2e969c['start'])&&_0x55ae94['markInsertion'](_0x588acb['createRange'](_0x218a23['start'],_0x2e969c['start']),'convertInlineImageToBlock'),_0x2e969c['end']['isBefore'](_0x218a23['end'])&&_0x55ae94['markInsertion'](_0x588acb['createRange'](_0x2e969c['end'],_0x218a23['end']),'convertInlineImageToBlock');});}),_0x55ae94['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x55ae94['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x55ae94['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x55ae94['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x55ae94['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x55ae94['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x37adcb])=>{const _0x35dc8c=_0x55ae94['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xa6049e=_0x37adcb['start'],_0x1d89ce=_0x37adcb['end'];const _0x5ce5a8=_0x52239e['model']['schema']['getNearestSelectionRange'](_0xa6049e,'backward'),_0x151475=_0x52239e['model']['schema']['getNearestSelectionRange'](_0x1d89ce,'forward');_0x5ce5a8['isCollapsed']&&(_0xa6049e=_0x5ce5a8['start']),_0x151475['isCollapsed']&&(_0x1d89ce=_0x151475['end']),_0x35dc8c([_0x52239e['model']['createRange'](_0xa6049e,_0x1d89ce)]);}),_0x55ae94['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x51f9bc),_0x55ae94['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x51f9bc)),_0x52239e['plugins']['has']('ImageCaptionEditing')&&(_0x55ae94['enableCommand']('toggleImageCaption',(_0x12190d,_0x1e8741)=>{const _0x4a8d30=_0x52239e['plugins']['get']('ImageCaptionUtils');let _0x5f58db=_0x3da80f['getClosestSelectedImageElement'](_0x52239e['model']['document']['selection']),_0x87b824=_0x4a8d30['getCaptionFromImageModelElement'](_0x5f58db);_0x52239e['model']['change'](()=>{if(_0x87b824)return void _0x55ae94['markDeletion'](_0x52239e['model']['createRangeOn'](_0x87b824));const _0x14c3a1=_0x3da80f['isBlockImage'](_0x5f58db);_0x12190d(_0x1e8741),_0x5f58db=_0x3da80f['getClosestSelectedImageElement'](_0x52239e['model']['document']['selection']),_0x87b824=_0x4a8d30['getCaptionFromImageModelElement'](_0x5f58db),_0x55ae94['markInsertion'](_0x52239e['model']['createRangeOn'](_0x87b824),_0x14c3a1?null:'imageCaption');});}),_0x55ae94['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x51f9bc));const _0x3b12f0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5ca580(_0x1de827,_0x51866d){const _0x44552e=_0x3b12f0['findIndex'](({type:_0x34c79b,subType:_0x376e18})=>_0x1de827['type']==_0x34c79b&&_0x1de827['subType']==_0x376e18),_0x115c82=_0x3b12f0['findIndex'](({type:_0x87127a,subType:_0x406bd4})=>_0x51866d['type']==_0x87127a&&_0x51866d['subType']==_0x406bd4);if(_0x44552e<0x0||_0x115c82<0x0)return!0x1;const _0x8e5bf0=_0x1de827['getFirstRange'](),_0x13061d=_0x51866d['getFirstRange']();if((0x0==_0x44552e||0x1==_0x44552e)&&0x2==_0x115c82&&_0x8e5bf0['isIntersecting'](_0x13061d))return!0x0;if(0x2==_0x44552e&&0x3==_0x115c82){const _0x389c0a=_0x55ae94['_findSuggestions'](_0x8e5bf0,'insertion')['filter'](({suggestion:_0x33cff6,meta:_0x29236b})=>_0x29236b['isOwn']&&'convertInlineImageToBlock'==_0x33cff6['subType']);if(_0x389c0a['length']>0x1&&_0x13061d['end']['isEqual'](_0x8e5bf0['start']))return!0x0;if(0x1==_0x389c0a['length']&&(_0x8e5bf0['start']['isEqual'](_0x13061d['end'])||_0x8e5bf0['end']['isEqual'](_0x13061d['start'])))return!0x0;}if(0x3==_0x44552e&&0x3==_0x115c82&&_0x8e5bf0['start']['isBefore'](_0x13061d['start'])){const _0x1bda57=_0x8e5bf0['end']['nodeAfter'],_0x517ff4=_0x13061d['start']['nodeBefore'];return _0x3da80f['isBlockImage'](_0x1bda57)&&_0x1bda57===_0x517ff4;}return!0x1;}function _0x51f9bc(_0x3af3f6,_0x37fc7d){return _0x5ca580(_0x3af3f6,_0x37fc7d)?[_0x3af3f6,_0x37fc7d]:_0x5ca580(_0x37fc7d,_0x3af3f6)?[_0x37fc7d,_0x3af3f6]:null;}_0x52239e['plugins']['has']('ImageResize')&&(_0x55ae94['enableDefaultAttributesIntegration']('resizeImage'),_0x55ae94['registerBlockAttribute']('resizedWidth'),_0x55ae94['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x7edb00,'FORMAT_IMAGE_SIZE'))),_0x52239e['plugins']['has']('ImageTextAlternativeEditing')&&(_0x55ae94['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x55ae94['registerBlockAttribute']('alt')),_0x55ae94['descriptionFactory']['registerDescriptionCallback'](_0x1bb726=>{if(!!_0x3b12f0['find'](({type:_0x41843a,subType:_0x1250a9})=>_0x1bb726['type']==_0x41843a&&_0x1bb726['subType']==_0x1250a9))return _0x1bb726['previous']?{}:void 0x0;}),_0x55ae94['descriptionFactory']['registerDescriptionCallback'](_0x5d0bfe=>{if('insertion'==_0x5d0bfe['type']||'deletion'==_0x5d0bfe['type']){const _0x53f63c=_0x5d0bfe['getContainedElement']();if(_0x53f63c&&_0x53f63c['is']('element','caption'))return{'type':'insertion'==_0x5d0bfe['type']?'addObject':'removeObject','element':_0x53f63c,'quantity':0x1};}}),_0x55ae94['descriptionFactory']['registerDescriptionCallback'](_0x37bdd0=>'formatBlock'==_0x37bdd0['type']&&'convertInlineImageToBlock'==_0x37bdd0['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x37bdd0['type']&&'convertBlockImageToInline'==_0x37bdd0['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x55ae94['descriptionFactory']['registerDescriptionCallback'](_0xb20704=>{if('attribute'!=_0xb20704['type'])return;const {data:_0x767885}=_0xb20704;if(!_0x767885||'alt'!=_0x767885['key'])return;const _0x55d11f=_0x767885['newValue'];return _0x55d11f?{'type':'format','content':o(_0x7edb00,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x55d11f+'\x22')}:{'type':'format','content':o(_0x7edb00,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcaa416=this['editor'],_0x562ccb=_0xcaa416['locale'];_0xcaa416['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x345c9d=>{if('formatBlock'!=_0x345c9d['type']&&'formatInline'!=_0x345c9d['type'])return;const {data:_0x1b6173}=_0x345c9d;if(_0x1b6173){if('imageTextAlternative'==_0x1b6173['commandName']){const _0x2324c8=_0x1b6173['commandParams'][0x0]['newValue'];return _0x2324c8?{'type':'format','content':o(_0x562ccb,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2324c8+'\x22')}:{'type':'format','content':o(_0x562ccb,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1b6173['commandName']){const _0xe07230=_0x1b6173['commandParams'][0x0]['width'];return _0xe07230?{'type':'format','content':o(_0x562ccb,'*Set\x20image\x20width:*\x20%0',_0xe07230)}:{'type':'format','content':o(_0x562ccb,'*Reset\x20image\x20width*')};}}});}}class st extends _0x5511a1{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2ba99c=this['editor']['locale'],_0x461a91=this['editor']['plugins']['get']('TrackChangesEditing');_0x461a91['enableDefaultAttributesIntegration']('replaceImageSource'),_0x461a91['registerBlockAttribute']('src'),_0x461a91['descriptionFactory']['registerDescriptionCallback'](_0x1d4366=>{if('attribute'!=_0x1d4366['type'])return;const {data:_0x48b4cf}=_0x1d4366;return _0x48b4cf&&'src'==_0x48b4cf['key']?_0x48b4cf['newValue']&&_0x48b4cf['oldValue']?{'type':'format','content':o(_0x2ba99c,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x210169=this['editor']['plugins']['get']('TrackChangesEditing');_0x210169['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x210169['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x210169['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x210169['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d1381=this['editor'],_0x149b5e=_0x4d1381['locale'];_0x4d1381['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc9b3bc=>{if('formatBlock'!=_0xc9b3bc['type']&&'formatInline'!=_0xc9b3bc['type'])return;const {data:_0x521c30}=_0xc9b3bc;if(!_0x521c30||'replaceImageSource'!=_0x521c30['commandName'])return;return{'type':'format','content':o(_0x149b5e,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x5511a1{['afterInit'](){const _0x2acd7a=this['editor'];if(!_0x2acd7a['plugins']['has']('ImageStyleEditing'))return;const _0x327d32=_0x2acd7a['plugins']['get']('TrackChangesEditing'),_0x6e8eb6=_0x2acd7a['plugins']['get']('ImageUtils'),_0x3d7013={};_0x327d32['enableCommand']('imageStyle',(_0x14f7c6,_0x51b880)=>{const _0x1b8fb4=_0x2acd7a['plugins']['get']('Users')['me'],_0x547242=_0x2acd7a['commands']['get']('imageStyle');let _0x4f4d7e=_0x6e8eb6['getClosestSelectedImageElement'](_0x2acd7a['model']['document']['selection']),_0xfd1178=_0x2acd7a['model']['createRangeOn'](_0x4f4d7e),_0x5aa104=_0x547242['value'];if(_0x5aa104==_0x51b880['value'])return;const _0xecc462={'commandName':'imageStyle','commandParams':[_0x51b880],'formatGroupId':_0x4c61b3()};_0x2acd7a['model']['change'](()=>{if(_0x327d32['getSuggestions']()['filter'](_0x26c927=>_0x26c927['isInContent']&&_0x1b8fb4==_0x26c927['author']&&('formatBlock'==_0x26c927['type']||'formatInline'==_0x26c927['type'])&&('imageStylePreApply'==_0x26c927['subType']||'imageStylePostApply'==_0x26c927['subType'])&&_0x26c927['getFirstRange']()['isEqual'](_0xfd1178))['forEach'](_0x4f1a99=>_0x327d32['discardSuggestion'](_0x4f1a99['head'])),_0x4f4d7e=_0x6e8eb6['getClosestSelectedImageElement'](_0x2acd7a['model']['document']['selection']),_0xfd1178=_0x2acd7a['model']['createRangeOn'](_0x4f4d7e),_0x547242['refresh'](),_0x2acd7a['commands']['get']('imageTypeInline')['refresh'](),_0x2acd7a['commands']['get']('imageTypeBlock')['refresh'](),_0x5aa104=_0x547242['value'],_0x5aa104!=_0x51b880['value'])return _0x6e8eb6['isInlineImage'](_0x4f4d7e)&&_0x547242['shouldConvertImageType'](_0x51b880['value'],_0x4f4d7e)?(_0x14f7c6({..._0x51b880,'setImageSizes':!0x1}),_0x4f4d7e=_0x6e8eb6['getClosestSelectedImageElement'](_0x2acd7a['model']['document']['selection']),void _0x327d32['markBlockFormat'](_0x4f4d7e,{..._0xecc462,'commandReversedParams':[{'value':_0x5aa104||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x6e8eb6['isBlockImage'](_0x4f4d7e)?_0x327d32['markBlockFormat'](_0x4f4d7e,_0xecc462,[],'imageStylePostApply'):_0x327d32['markInlineFormat'](_0xfd1178,_0xecc462,'imageStylePostApply'));});});for(const _0x44e1b0 of _0x2acd7a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3d7013[_0x44e1b0['name']]=_0x44e1b0['title']['toLowerCase']();_0x327d32['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x327d32['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x327d32['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x327d32['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2500af])=>{_0x6e8eb6['setImageNaturalSizeAttributes'](_0x2500af['getContainedElement']());}),_0x327d32['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5e872c,_0x39bcc7)=>{_0x327d32['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5e872c,{'commandName':_0x39bcc7['commandName'],'commandParams':_0x39bcc7['commandReversedParams']});}),_0x327d32['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x448d11,_0x1acad3){if(_0x49d171(_0x448d11,_0x1acad3))return[_0x448d11,_0x1acad3];if(_0x49d171(_0x1acad3,_0x448d11))return[_0x1acad3,_0x448d11];return null;});const _0x29923f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x49d171(_0x4ff797,_0x1a09b1){const _0x30d7b0=_0x29923f['findIndex'](({type:_0x5f24f5,subType:_0x23a42b})=>_0x4ff797['type']==_0x5f24f5&&_0x4ff797['subType']==_0x23a42b),_0x4b2c75=_0x29923f['findIndex'](({type:_0x4e9260,subType:_0xcfa0d8})=>_0x1a09b1['type']==_0x4e9260&&_0x1a09b1['subType']==_0xcfa0d8);if(_0x30d7b0<0x0||_0x4b2c75<0x0)return!0x1;const _0x5ba18e=_0x4ff797['getFirstRange'](),_0x1e9b5e=_0x1a09b1['getFirstRange']();if((0x0==_0x30d7b0||0x1==_0x30d7b0)&&0x2==_0x4b2c75&&_0x5ba18e['isIntersecting'](_0x1e9b5e))return!0x0;if(0x2==_0x30d7b0&&0x3==_0x4b2c75){const _0x29f9d6=_0x327d32['_findSuggestions'](_0x5ba18e,'insertion')['filter'](({suggestion:_0x419156,meta:_0x242739})=>_0x242739['isOwn']&&'convertInlineImageToBlock'==_0x419156['subType']);if(_0x29f9d6['length']>0x1&&_0x1e9b5e['end']['isEqual'](_0x5ba18e['start']))return!0x0;if(0x1==_0x29f9d6['length']&&(_0x5ba18e['start']['isEqual'](_0x1e9b5e['end'])||_0x5ba18e['end']['isEqual'](_0x1e9b5e['start'])))return!0x0;}if(0x3==_0x30d7b0&&0x3==_0x4b2c75&&_0x5ba18e['start']['isBefore'](_0x1e9b5e['start'])){const _0x1bf495=_0x5ba18e['end']['nodeAfter'],_0x2ba605=_0x1e9b5e['start']['nodeBefore'];return _0x6e8eb6['isBlockImage'](_0x1bf495)&&_0x1bf495===_0x2ba605;}return!0x1;}_0x2acd7a['model']['document']['registerPostFixer'](()=>{let _0x2e9a47=!0x1;const _0x5653ae=Array['from'](_0x2acd7a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x42e985,data:_0x5b75b7}of _0x5653ae){const {group:_0x2116be,type:_0xc55033,subType:_0x44ab84,id:_0x11bb31}=_0x327d32['_splitMarkerName'](_0x42e985);if('suggestion'==_0x2116be&&_0x327d32['hasSuggestion'](_0x11bb31)){if('formatBlock'==_0xc55033&&('imageStylePreApply'==_0x44ab84||'imageStylePostApply'==_0x44ab84)){const _0x11670e=_0x327d32['getSuggestion'](_0x11bb31);if(_0x5b75b7['newRange']){const _0xc92ea9=_0x11670e['getFirstRange']()['getContainedElement']();if(_0x6e8eb6['isBlockImage'](_0xc92ea9))continue;_0x327d32['discardSuggestion'](_0x11670e),_0x2e9a47=!0x0;}}if('insertion'==_0xc55033&&'imageCaption'==_0x44ab84&&!_0x5b75b7['newRange']){const _0x392e54=_0x327d32['getSuggestion'](_0x11bb31);_0x392e54['next']&&_0x392e54['next']['isInContent']&&(_0x327d32['discardSuggestion'](_0x392e54['next']),_0x2e9a47=!0x0);}}}return _0x2e9a47;}),this['_registerLegacyDescription'](_0x3d7013);}['_registerLegacyDescription'](_0x2fc5d2){const _0x538a1b=this['editor'],_0xc227e0=_0x538a1b['locale'];_0x538a1b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x403d33=>{if('formatBlock'!=_0x403d33['type']&&'formatInline'!=_0x403d33['type'])return;const {data:_0x54a6f6}=_0x403d33;if(!_0x54a6f6||'imageStyle'!=_0x54a6f6['commandName'])return;const _0x2fc860=_0x54a6f6['commandParams'][0x0]['value'];return _0xfdcd7c('side'===_0x2fc860?o(_0xc227e0,'FORMAT_SIDE_IMAGE'):_0x2fc5d2[_0x2fc860]||_0x2fc860);function _0xfdcd7c(_0x52a241){return{'type':'format','content':o(_0xc227e0,'*Format:*\x20%0',_0x52a241)};}});}}class ot extends _0x5511a1{['afterInit'](){const _0x1279b4=this['editor'],_0x35d88c=_0x1279b4['commands']['get']('importWord'),_0xe009b7=_0x1279b4['commands']['get']('trackChanges');_0x35d88c&&(_0x35d88c['on']('execute',(_0x119b96,[,_0x436c65])=>{this['_trackChangesValueDuringImport']=_0xe009b7['value'],_0x436c65['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x35d88c,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x35d88c,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xe009b7['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1279b4['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3ecbab,_0x1ec81f){const {suggestions:_0x118274}=_0x1ec81f,_0x1d9a21=this['editor']['commands']['get']('trackChanges'),_0x200753=_0x1d9a21['value'];this['_trackChangesValueDuringImport']!==_0x200753&&(_0x1d9a21['execute'](),this['_trackChangesExecuted']=!0x0),_0x118274&&_0x118274['forEach'](({id:_0x3d6a3c,type:_0x180ff6,author:_0x536f03,created_at:_0x391884})=>{const _0x29dd49={'id':_0x3d6a3c,'type':_0x180ff6,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x536f03,'createdAt':_0x391884?new Date(_0x391884):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x29dd49);});}constructor(_0x5bee70){super(_0x5bee70),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}}class rt extends _0x5511a1{['afterInit'](){const _0x57ce29=this['editor'],_0x44587f=_0x57ce29['plugins']['get']('TrackChangesEditing');if(_0x57ce29['plugins']['has']('IndentEditing')&&(_0x44587f['enableCommand']('indent'),_0x44587f['enableCommand']('outdent')),_0x57ce29['plugins']['has']('IndentBlock')){for(const _0x1ccfdf of['indentBlock','outdentBlock'])_0x44587f['enableDefaultAttributesIntegration'](_0x1ccfdf);}const _0x1148e1=_0x57ce29['locale'];_0x44587f['registerBlockAttribute']('blockIndent'),_0x44587f['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1148e1,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52d754=this['editor'],_0x295222=_0x52d754['locale'],_0x24a2f6=_0x52d754['plugins']['get']('TrackChangesEditing');_0x24a2f6['descriptionFactory']['registerDescriptionCallback'](_0x2c3f45=>{if('formatBlock'!=_0x2c3f45['type'])return;const {data:_0x101b98}=_0x2c3f45;if(!_0x101b98)return;if('indentBlock'!=_0x101b98['commandName']&&'outdentBlock'!=_0x101b98['commandName'])return;const _0x38a0f1=_0x2c3f45['getItems']()[0x0],_0x9d1e0d=_0x24a2f6['descriptionFactory']['getItemLabel'](_0x38a0f1);return'indentBlock'==_0x101b98['commandName']?{'type':'format','content':o(_0x295222,'*Indent:*\x20%0',_0x9d1e0d)}:'outdentBlock'==_0x101b98['commandName']?{'type':'format','content':o(_0x295222,'*Outdent:*\x20%0',_0x9d1e0d)}:void 0x0;});}}class at extends _0x5511a1{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x5511a1{['afterInit'](){const _0x2224d6=this['editor'];if(!_0x2224d6['plugins']['has']('LinkEditing'))return;const _0x3d3cd4=_0x2224d6['plugins']['get']('TrackChangesEditing'),_0x35cdce=_0x2224d6['commands']['get']('link');_0x3d3cd4['enableDefaultAttributesIntegration']('link'),_0x3d3cd4['enableDefaultAttributesIntegration']('unlink'),_0x3d3cd4['registerInlineAttribute']('linkHref');for(const _0x67bd1c of _0x35cdce['manualDecorators'])_0x3d3cd4['registerInlineAttribute'](_0x67bd1c['id']),_0x3d3cd4['descriptionFactory']['registerAttributeLabel'](_0x67bd1c['id'],'link\x20('+_0x67bd1c['label']['toLowerCase']()+')');_0x3d3cd4['descriptionFactory']['registerDescriptionCallback'](_0x15dff9=>{if('attribute'!=_0x15dff9['type'])return;const {data:_0x4fba36}=_0x15dff9;if(!_0x4fba36||'linkHref'!=_0x4fba36['key'])return;const _0x4775b5=_0x4fba36['newValue'],_0x4e1414=_0x2224d6['locale'];return{'type':'format','content':null==_0x4775b5?o(_0x4e1414,'*Remove\x20link*'):o(_0x4e1414,'*Set\x20link:*\x20%0','\x22'+_0x4775b5+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c28de=this['editor'],_0x19fa15=_0x3c28de['locale'];_0x3c28de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42c871=>{if('formatInline'!=_0x42c871['type'])return;const {data:_0x5046b1}=_0x42c871;if(_0x5046b1){if('link'==_0x5046b1['commandName']){const _0x4e0359=_0x5046b1['commandParams'][0x0];return{'type':'format','content':o(_0x19fa15,'*Set\x20link:*\x20%0','\x22'+_0x4e0359+'\x22')};}return'unlink'==_0x5046b1['commandName']?{'type':'format','content':o(_0x19fa15,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x5511a1{['afterInit'](){const _0x1dce58=this['editor'],_0x1671e6=_0x1dce58['locale'];if(!_0x1dce58['plugins']['has']('LegacyListEditing'))return;const _0x43ec4=_0x1dce58['plugins']['get']('TrackChangesEditing'),_0x1abc8b=_0x1dce58['plugins']['has']('LegacyTodoListEditing');function _0x65483d(_0x209299){return()=>{const _0x980e2c=_0x1dce58['model']['document']['selection'],_0x460fcb=_0x1dce58['commands']['get'](_0x209299);if(_0x460fcb['value'])return void _0x1dce58['execute']('paragraph',{});const _0x3dcfdc=_0x209299['slice'](0x0,-0x4),_0x10b5de=function(_0x4ac60d,_0x10d80c,_0x2be87c){let _0x139640=Array['from'](_0x4ac60d)['filter'](_0xa347a=>function(_0x3206bd,_0x438619){return _0x438619['checkChild'](_0x3206bd['parent'],'listItem')&&!_0x438619['isObject'](_0x3206bd);}(_0xa347a,_0x2be87c));_0x139640=_0x139640['filter'](_0x3381c7=>!_0x3381c7['is']('element','listItem')||_0x3381c7['getAttribute']('listType')!=_0x10d80c);const _0x433966=new Set();for(const _0x5b77bc of _0x139640)_0x5b77bc['is']('element','listItem')?_0x433966['add'](me(_0x5b77bc)):_0x433966['add'](_0x5b77bc);return Array['from'](_0x433966);}(_0x980e2c['getSelectedBlocks'](),_0x3dcfdc,_0x1dce58['model']['schema']);_0x1dce58['model']['change'](()=>{for(const _0x5a136e of _0x10b5de)_0x43ec4['markBlockFormat'](_0x5a136e,{'commandName':_0x209299,'commandParams':[{'forceValue':!_0x460fcb['value']}],'formatGroupId':'blockName'},fe(_0x5a136e));});};}function _0x227ffb(_0x6d1215){return()=>{const _0x5ca401=function(_0x148fb5){let _0x503503=Array['from'](_0x148fb5);const _0x6985c7=_0x503503['findIndex'](_0x4b097e=>'listItem'!=_0x4b097e['name']);return _0x6985c7>-0x1&&(_0x503503=_0x503503['slice'](0x0,_0x6985c7)),_0x503503;}(_0x1dce58['model']['document']['selection']['getSelectedBlocks']()),_0x4bd84d=_0x1dce58['model']['createRange'](_0x1dce58['model']['createPositionAt'](_0x5ca401[0x0],'before'),_0x1dce58['model']['createPositionAt'](_0x5ca401[_0x5ca401['length']-0x1],'end'));_0x1dce58['model']['change'](()=>{_0x43ec4['markBlockFormat'](_0x4bd84d,{'commandName':_0x6d1215,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2aa335){const _0x2d8a97=new Set();for(const _0xf20893 of _0x2aa335){let _0x4c4c32=_0xf20893['nextSibling'];for(;_0x4c4c32&&_0x4c4c32['getAttribute']('listIndent')>_0xf20893['getAttribute']('listIndent');)_0x2d8a97['add'](_0x4c4c32),_0x4c4c32=_0x4c4c32['nextSibling'];}return Array['from'](_0x2d8a97);}(_0x5ca401));});};}_0x43ec4['enableCommand']('numberedList',_0x65483d('numberedList')),_0x43ec4['enableCommand']('bulletedList',_0x65483d('bulletedList')),_0x1abc8b&&_0x43ec4['enableCommand']('todoList',_0x65483d('todoList')),_0x43ec4['enableCommand']('indentList',_0x227ffb('indentList')),_0x43ec4['enableCommand']('outdentList',_0x227ffb('outdentList')),_0x1abc8b&&_0x43ec4['enableCommand']('checkTodoList',()=>{const _0x21b4f5=_0x1dce58['commands']['get']('checkTodoList'),_0x4b6535=Array['from'](_0x21b4f5['_selectedElements']);_0x4b6535['filter'](_0x132293=>_0x132293['getAttribute']('todoListChecked')!=_0x21b4f5['value']),_0x1dce58['model']['change'](()=>{for(const _0x3acba2 of _0x4b6535)_0x43ec4['markBlockFormat'](_0x3acba2,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x21b4f5['value']}]});});}),_0x43ec4['descriptionFactory']['registerElementLabel']('listItem',_0x23c11d=>o(_0x1671e6,'ELEMENT_LIST_ITEM',_0x23c11d)),_0x43ec4['descriptionFactory']['registerDescriptionCallback'](_0x3bfffa=>{if('formatBlock'!=_0x3bfffa['type']&&'formatInline'!=_0x3bfffa['type'])return;const {data:_0x117ade}=_0x3bfffa;if(_0x117ade){if('numberedList'==_0x117ade['commandName']||'bulletedList'==_0x117ade['commandName']||'todoList'==_0x117ade['commandName'])switch(_0x117ade['commandName']['replace']('List','')){case'bulleted':return _0x1c42df(o(_0x1671e6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1c42df(o(_0x1671e6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1c42df(o(_0x1671e6,'ELEMENT_TODO_LIST'));}if('indentList'==_0x117ade['commandName'])return{'type':'format','content':o(_0x1671e6,'*Indent:*\x20%0',o(_0x1671e6,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x117ade['commandName'])return{'type':'format','content':o(_0x1671e6,'*Outdent:*\x20%0',o(_0x1671e6,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x117ade['commandName'])return _0x117ade['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1671e6,'*Check\x20item*')}:{'type':'format','content':o(_0x1671e6,'*Uncheck\x20item*')};}function _0x1c42df(_0xfe3321){return{'type':'format','content':o(_0x1671e6,'*Change\x20to:*\x20%0',_0xfe3321)};}});}}function me(_0x263fdb){const _0x1e7343=_0x263fdb['getAttribute']('listIndent');if(0x0==_0x1e7343)return _0x263fdb;let _0xd311a8=_0x263fdb;for(;_0x263fdb['previousSibling']&&_0x263fdb['previousSibling']['is']('element','listItem');){const _0x46dfc6=_0x263fdb['previousSibling']['getAttribute']('listIndent');if(_0x46dfc6==_0x1e7343)_0xd311a8=_0x263fdb['previousSibling'];else{if(_0x46dfc6<_0x1e7343)break;}_0x263fdb=_0x263fdb['previousSibling'];}return _0xd311a8;}function fe(_0x4c9c7a){const _0xae9fb1=[];if(_0x4c9c7a['is']('element','listItem')&&_0x4c9c7a['getAttribute']('listIndent')>0x0){let _0xb47aaf=_0x4c9c7a['nextSibling'];for(;_0xb47aaf&&'listItem'==_0xb47aaf['name']&&_0xb47aaf['getAttribute']('listIndent')==_0x4c9c7a['getAttribute']('listIndent');)_0xae9fb1['push'](_0xb47aaf),_0xb47aaf=_0xb47aaf['nextSibling'];}return _0xae9fb1;}class K extends _0x5511a1{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2668f2=this['editor']['config']['get']('list.properties'),_0xbe715=this['editor']['plugins']['get']('TrackChangesEditing');_0x2668f2['styles']&&_0xbe715['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2668f2['reversed']&&_0xbe715['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2668f2['startIndex']&&_0xbe715['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xbe715['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x298138,_0x5ccdc5={}){const _0x2a1ac3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5eadaf=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2a1ac3['markMultiRangeBlockFormat'](_0x5eadaf,{'commandName':'listStyle','commandParams':[{'type':_0x5ccdc5['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x547ee7,_0x1a3d0a={}){const _0x25c6be=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13c4c0=this['_getSuggestionBlocks'](_0x1fafee=>_0x1fafee['is']('element','listItem')&&'numbered'===_0x1fafee['getAttribute']('listType'));if(_0x13c4c0['length']<0x1)return;const _0x155685=_0x13c4c0['map'](_0x4dd7f4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4dd7f4,'before'),this['editor']['model']['createPositionAt'](_0x4dd7f4,0x0)));this['editor']['model']['change'](()=>{_0x25c6be['markMultiRangeBlockFormat'](_0x155685,{'commandName':'listReversed','commandParams':[{'reversed':_0x1a3d0a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x29890f,_0x1cf98c={}){const _0xfbcc74=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3936d2=this['_getSuggestionBlocks'](_0x4cc55a=>_0x4cc55a['is']('element','listItem')&&'numbered'===_0x4cc55a['getAttribute']('listType'));if(_0x3936d2['length']<0x1)return;const _0x300c0e=_0x3936d2['map'](_0x1e5b8d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1e5b8d,'before'),this['editor']['model']['createPositionAt'](_0x1e5b8d,0x0)));this['editor']['model']['change'](()=>{_0xfbcc74['markMultiRangeBlockFormat'](_0x300c0e,{'commandName':'listStart','commandParams':[{'startIndex':_0x1cf98c['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3911e9){if('formatBlock'!=_0x3911e9['type']&&'formatInline'!=_0x3911e9['type'])return;const _0x4ee327=this['editor']['locale'],{data:_0x57f716}=_0x3911e9;if(!_0x57f716)return;let _0x18068a,_0x14e427;switch(_0x57f716['commandName']){case'listStyle':_0x18068a='*Change\x20to:*\x20%0',_0x14e427={'type':'format','content':o(_0x4ee327,_0x18068a,o(_0x4ee327,this['_getTranslationKeyForListStyle'](_0x57f716['commandParams'][0x0]['type'])))};break;case'listReversed':_0x18068a=_0x57f716['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x14e427={'type':'format','content':o(_0x4ee327,_0x18068a)};break;case'listStart':_0x18068a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x14e427={'type':'format','content':o(_0x4ee327,_0x18068a,_0x57f716['commandParams'][0x0]['startIndex'])};}return _0x14e427;}['_getSuggestionBlocksForListStyle'](){var _0x54c1f7,_0x256584,_0x17568a,_0x54bb3d;const _0x42d8ac=this['editor']['plugins']['get']('LegacyListUtils');let _0x4103b4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return(null===(_0x54c1f7=_0x4103b4[0x0])||void 0x0===_0x54c1f7?void 0x0:_0x54c1f7['is']('element','listItem'))&&_0x4103b4['unshift'](..._0x42d8ac['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),(null===(_0x256584=_0x4103b4[_0x4103b4['length']-0x1])||void 0x0===_0x256584?void 0x0:_0x256584['is']('element','listItem'))&&_0x4103b4['push'](..._0x42d8ac['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4103b4=[...new Set(_0x4103b4)],(null===(_0x54bb3d=null===(_0x17568a=this['editor']['model']['document']['selection']['getFirstPosition']())||void 0x0===_0x17568a?void 0x0:_0x17568a['parent'])||void 0x0===_0x54bb3d?void 0x0:_0x54bb3d['is']('element','listItem'))&&(_0x4103b4=_0x4103b4['filter'](_0x4c6466=>_0x4c6466['is']('element','listItem'))),_0x4103b4;}['_getSuggestionBlocks'](_0x875eff){const _0x1569a5=this['editor']['plugins']['get']('LegacyListUtils');let _0x21dd89=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x875eff)['map'](_0x3be3d4=>{const _0x506a3d=this['editor']['model']['createPositionAt'](_0x3be3d4,0x0);return[..._0x1569a5['getSiblingNodes'](_0x506a3d,'backward'),..._0x1569a5['getSiblingNodes'](_0x506a3d,'forward')];})['flat']();return _0x21dd89=[...new Set(_0x21dd89)],_0x21dd89;}['_getTranslationKeyForListStyle'](_0x4576e1){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4576e1)||'default')['toUpperCase']()+'_LIST_'+_0x4576e1['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x5511a1{['afterInit'](){const _0x3c85b4=this['editor'];if(!_0x3c85b4['plugins']['has']('MediaEmbedEditing'))return;const _0x3f32d8=_0x3c85b4['plugins']['get']('TrackChangesEditing'),_0x5541c6=_0x3c85b4['locale'];_0x3f32d8['enableCommand']('mediaEmbed'),_0x3f32d8['descriptionFactory']['registerElementLabel']('media',_0x27a474=>o(_0x5541c6,'ELEMENT_MEDIA',_0x27a474)),_0x3c85b4['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4118bf,{writer:_0x547dea,options:_0x56f935})=>{if(_0x56f935['showSuggestionHighlights'])return _0x547dea['createEmptyElement']('div');},'converterPriority':'high'}),_0x3c85b4['data']['downcastDispatcher']['on']('attribute:url:media',(_0x26a8fe,_0x448fd8,_0x4a2bb5)=>{_0x4a2bb5['options']['showSuggestionHighlights']&&_0x26a8fe['stop']();},{'priority':'high'});}}class gt extends _0x5511a1{['afterInit'](){const _0x374e66=this['editor'];_0x374e66['plugins']['has']('MentionEditing')&&_0x374e66['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x5511a1{['afterInit'](){const _0x1fbe80=this['editor'],_0x592b1e=_0x1fbe80['plugins']['get']('TrackChangesEditing');_0x1fbe80['plugins']['has']('MultiLevelList')&&(_0x592b1e['enableDefaultAttributesIntegration']('multiLevelList'),_0x592b1e['registerBlockAttribute']('listMarkerStyle'),_0x592b1e['descriptionFactory']['registerDescriptionCallback'](_0x2e1af3=>this['handleDescriptions'](_0x2e1af3)));}['handleDescriptions'](_0x247d9a){const _0x3f5c84=this['editor']['locale'],{data:_0x47b20e}=_0x247d9a,_0x2289e4={'type':'format','content':''};if(_0x47b20e&&'listMarkerStyle'==_0x47b20e['key']){if(!_0x47b20e['oldValue'])return{'type':'format','content':o(_0x3f5c84,'*Set\x20format:*\x20%0',o(_0x3f5c84,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x47b20e['newValue']+')'};if(!_0x47b20e['newValue']){let _0x25950e=_0x247d9a['head'];for(;_0x25950e;){if(_0x25950e['data']&&'listType'==_0x25950e['data']['key']&&_0x25950e['data']['newValue'])return _0x2289e4;_0x25950e=_0x25950e['next'];}return{'type':'format','content':o(_0x3f5c84,'*Remove\x20format:*\x20%0',o(_0x3f5c84,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x47b20e['oldValue']+')'};}}}}class mt extends _0x5511a1{['afterInit'](){const _0x1f3118=this['editor'];if(!_0x1f3118['plugins']['has']('PageBreakEditing'))return;_0x1f3118['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2dc41c=_0x1f3118['plugins']['get']('TrackChangesEditing'),_0x1ee592=_0x1f3118['locale'];_0x2dc41c['descriptionFactory']['registerElementLabel']('pageBreak',_0x5670b4=>o(_0x1ee592,'ELEMENT_PAGE_BREAK',_0x5670b4));}}class dt extends _0x5511a1{['afterInit'](){const _0x287831=this['editor'];if(!_0x287831['plugins']['has']('Paragraph'))return;const _0x3c6516=_0x287831['locale'],_0x4b7044=_0x287831['plugins']['get']('TrackChangesEditing');_0x4b7044['descriptionFactory']['registerElementLabel']('paragraph',_0x39f8fa=>o(_0x3c6516,'ELEMENT_PARAGRAPH',_0x39f8fa)),_0x4b7044['enableDefaultAttributesIntegration']('paragraph'),_0x4b7044['enableCommand']('insertParagraph'),_0x287831['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x287831),{'priority':'highest'}),_0x287831['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x43a3c1,_0x1f2c4c,_0xb721b0)=>{_0xb721b0['options']['showSuggestionHighlights']&&nr(_0x287831,{'showActiveMarker':!0x1})(_0x43a3c1,_0x1f2c4c,_0xb721b0);},{'priority':'highest'});const _0x47a9db=_0x4b7044['descriptionFactory'];_0x47a9db['registerDescriptionCallback'](_0x4016e3=>{if('insertion'!==_0x4016e3['type'])return;const {start:_0x16970b,end:_0x2f91b5}=_0x4016e3['getFirstRange']();if(!_0x16970b['isTouching'](_0x2f91b5)||!_0x16970b['nodeAfter'])return;const _0x1c7573=_0x287831['model']['schema'],_0x53e383=_0x16970b['nodeAfter'];return _0x1c7573['isBlock'](_0x53e383)&&!_0x1c7573['isLimit'](_0x53e383)&&_0x1c7573['checkChild'](_0x53e383,'$text')?{'type':'insertion','content':o(_0x3c6516,'*Insert:*\x20%0',_0x47a9db['getItemLabel'](_0x53e383,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x302132=this['editor'],_0x45f385=_0x302132['locale'];_0x302132['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32c92c=>{if('formatBlock'!=_0x32c92c['type'])return;const {data:_0x28c9d8}=_0x32c92c;return _0x28c9d8&&'paragraph'==_0x28c9d8['commandName']?{'type':'format','content':o(_0x45f385,'*Change\x20to:*\x20%0',o(_0x45f385,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3c50d9,{showActiveMarker:_0x5cf783=!0x0}={}){return(_0x3d72d4,_0x174231,_0x4f57bf)=>{const _0x51b8f4=_0x3c50d9['plugins']['get']('TrackChangesEditing'),_0xc43e2a=_0x174231['markerRange']['start'],_0x413912=_0x174231['markerRange']['end'],_0x5744d1=_0x3c50d9['model']['schema'];if(!_0xc43e2a['isTouching'](_0x413912)||!_0xc43e2a['nodeAfter'])return;const _0x5877ec=_0xc43e2a['nodeAfter'];if(_0x5744d1['isBlock'](_0x5877ec)&&!_0x5744d1['isLimit'](_0x5877ec)&&_0x5744d1['checkChild'](_0x5877ec,'$text')){if(!_0x4f57bf['consumable']['consume'](_0x174231['markerRange'],_0x3d72d4['name']))return;const _0x1a10a7=_0x4f57bf['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x18fa44=_0x4f57bf['mapper']['toViewPosition'](_0x413912);_0x5cf783&&_0x51b8f4['activeMarkers']['includes'](_0x174231['markerName'])&&_0x4f57bf['writer']['addClass']('ck-suggestion-marker--active',_0x1a10a7),_0x4f57bf['writer']['insert'](_0x18fa44,_0x1a10a7),_0x4f57bf['mapper']['bindElementToMarker'](_0x1a10a7,_0x174231['markerName']);}};}class pt extends _0x5511a1{['afterInit'](){const _0x398309=this['editor'];if(!_0x398309['plugins']['has']('RemoveFormatEditing'))return;_0x398309['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1229b0=this['editor'];_0x1229b0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1af86a=>{if('formatBlock'!=_0x1af86a['type']&&'formatInline'!=_0x1af86a['type'])return;const {data:_0x24d1c0}=_0x1af86a;return _0x24d1c0&&'removeFormat'==_0x24d1c0['commandName']?{'type':'format','content':o(_0x1229b0['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x5511a1{['afterInit'](){const _0xa6486e=this['editor'];if(!_0xa6486e['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x28d470=_0xa6486e['plugins']['get']('TrackChangesEditing');_0x28d470['enableCommand']('goToPreviousRestrictedEditingException'),_0x28d470['enableCommand']('goToNextRestrictedEditingException');const _0x3c2118=_0xa6486e['plugins']['get']('RestrictedEditingModeEditing');_0x3c2118['enableCommand']('trackChanges'),_0x3c2118['enableCommand']('acceptSuggestion'),_0x3c2118['enableCommand']('discardSuggestion'),_0x3c2118['enableCommand']('acceptAllSuggestions'),_0x3c2118['enableCommand']('discardAllSuggestions'),_0x3c2118['enableCommand']('acceptSelectedSuggestions'),_0x3c2118['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x5511a1{static get['requires'](){return[_0x1b9530];}['init'](){const _0x12f95f=this['editor'],_0x5585d2=_0x12f95f['plugins']['get']('TrackChangesEditing');_0x5585d2['enableCommand']('shiftEnter'),_0x12f95f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x12f95f),{'priority':'high'}),_0x12f95f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x12f95f),{'priority':'high'}),_0x12f95f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x20a484,_0x5951a8,_0x5092ea)=>{_0x5092ea['options']['showSuggestionHighlights']&&de(_0x12f95f,{'showActiveMarker':!0x1})(_0x20a484,_0x5951a8,_0x5092ea);}),_0x5585d2['descriptionFactory']['registerElementLabel']('softBreak',_0x2c16ce=>o(_0x12f95f['locale'],'ELEMENT_LINE_BREAK',_0x2c16ce));}}function de(_0x25221a,{showActiveMarker:_0x1ce009=!0x0}={}){return(_0x8eb9f7,_0x4f9ba9,_0x46f43e)=>{const _0x1d3de5=_0x25221a['plugins']['get']('TrackChangesEditing');if(!_0x46f43e['consumable']['test'](_0x4f9ba9['markerRange'],_0x8eb9f7['name']))return;const _0x383ffa=_0x25221a['model'];for(const _0x2d97f2 of _0x4f9ba9['markerRange']['getItems']()){if(!_0x2d97f2['is']('element','softBreak'))continue;const _0x46fc5b='deletion'==_0x4f9ba9['markerName']['split'](':')[0x1]?'merge':'split',_0x4d2e72=_0x46f43e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x46fc5b}),_0x33af2d=_0x46f43e['mapper']['toViewPosition'](_0x383ffa['createPositionBefore'](_0x2d97f2));_0x1ce009&&_0x1d3de5['activeMarkers']['includes'](_0x4f9ba9['markerName'])&&_0x46f43e['writer']['addClass']('ck-suggestion-marker--active',_0x4d2e72),_0x46f43e['writer']['insert'](_0x33af2d,_0x4d2e72),_0x46f43e['mapper']['bindElementToMarker'](_0x4d2e72,_0x4f9ba9['markerName']);}};}class wt extends _0x5511a1{['afterInit'](){const _0x4889d1=this['editor'],_0x33d331=_0x4889d1['model'],_0x47403f=_0x4889d1['locale'];if(!_0x4889d1['plugins']['has']('StandardEditingModeEditing'))return;const _0x5a9e63=_0x4889d1['plugins']['get']('TrackChangesEditing'),_0x2abb28='restrictedEditingException',_0x4c7cde=_0x4889d1['commands']['get'](_0x2abb28);_0x5a9e63['enableCommand'](_0x2abb28,(_0x3c4542,_0x14f580={})=>{const _0x3508a5=_0x33d331['document']['selection'];if(_0x3508a5['isCollapsed'])return void _0x3c4542(_0x14f580);const _0x353001=void 0x0!==_0x14f580['forceValue']?_0x14f580['forceValue']:!_0x4c7cde['value'];_0x33d331['change'](()=>{const _0x5305ec=Array['from'](_0x3508a5['getRanges']());for(const _0xd8fda8 of _0x5305ec){const _0x4b8af9=_0x353001?[_0xd8fda8]:io(_0x2abb28,_0xd8fda8,_0x33d331);for(const _0x524b1a of _0x4b8af9)_0x5a9e63['markInlineFormat'](_0x524b1a,{'commandName':_0x2abb28,'commandParams':[{'forceValue':_0x353001}]});}});}),_0x5a9e63['descriptionFactory']['registerDescriptionCallback'](_0x3ac3d9=>{if('formatBlock'!=_0x3ac3d9['type']&&'formatInline'!=_0x3ac3d9['type'])return;const {data:_0x3e2a4a}=_0x3ac3d9;return _0x3e2a4a&&_0x3e2a4a['commandName']==_0x2abb28?_0x3e2a4a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x47403f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x47403f,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x5511a1{['afterInit'](){const _0x531303=this['editor'];if(!_0x531303['plugins']['has']('Style')||!_0x531303['plugins']['has']('DataSchema'))return;const _0x284976=_0x531303['plugins']['get']('TrackChangesEditing'),_0x50f467=_0x531303['locale'],_0x334350=_0x531303['config']['get']('style')||{},_0xa4872b=_0x531303['plugins']['get']('GeneralHtmlSupport'),_0x630721=_0x531303['plugins']['get']('StyleUtils')['normalizeConfig'](_0x531303['plugins']['get']('DataSchema'),_0x334350['definitions']);_0x284976['enableDefaultAttributesIntegration']('style');const _0x1cd0e1=new Set();for(const _0x1340da of _0x630721['block']){const _0x5639c8=_0xa4872b['getGhsAttributeNameForElement'](_0x1340da['element']);_0x1cd0e1['add'](_0x5639c8);}const _0x1cbcc3=new Set();for(const _0xb1a71e of _0x630721['inline']){const _0x4ee561=_0xa4872b['getGhsAttributeNameForElement'](_0xb1a71e['element']);_0x1cbcc3['add'](_0x4ee561);for(const _0x1b0099 of _0xb1a71e['ghsAttributes'])_0x1cbcc3['add'](_0x1b0099);}for(const _0x497836 of _0x1cd0e1)_0x284976['registerBlockAttribute'](_0x497836),_0x284976['descriptionFactory']['registerAttributeLabel'](_0x497836,o(_0x50f467,'FORMAT_STYLE'));for(const _0x3d932c of _0x1cbcc3)_0x284976['registerInlineAttribute'](_0x3d932c),_0x284976['descriptionFactory']['registerAttributeLabel'](_0x3d932c,o(_0x50f467,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x445ae0=this['editor'],_0x4696b1=_0x445ae0['locale'];_0x445ae0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2788d8=>{if('formatBlock'!=_0x2788d8['type']&&'formatInline'!=_0x2788d8['type'])return;const {data:_0x1594da}=_0x2788d8;return _0x1594da&&'style'===_0x1594da['commandName']?_0x1594da['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4696b1,'*Set\x20format:*\x20%0',_0x1594da['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4696b1,'*Remove\x20format:*\x20%0',_0x1594da['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x5511a1{['afterInit'](){const _0x20570b=this['editor'],_0x3fbbc6=_0x20570b['model']['document']['selection'];if(!_0x20570b['plugins']['has']('TableEditing'))return;const _0xe1662c=_0x20570b['locale'],_0x357bb0=_0x20570b['plugins']['get']('TrackChangesEditing'),_0x4b76cf=_0x20570b['plugins']['get']('TableUtils');_0x357bb0['descriptionFactory']['registerElementLabel']('table',_0x2c0fb7=>o(_0xe1662c,'ELEMENT_TABLE',_0x2c0fb7)),this['_setupColumnsRowsFixing'](),_0x357bb0['enableCommand']('insertTable'),_0x357bb0['enableCommand']('selectTableRow'),_0x357bb0['enableCommand']('selectTableColumn');for(const _0x3fa5c0 of['insertTableRowAbove','insertTableRowBelow']){const _0x2d3252=_0x20570b['commands']['get'](_0x3fa5c0);_0x357bb0['enableCommand'](_0x3fa5c0,_0x2c1693=>{_0x20570b['model']['change'](_0x1826d6=>{_0x2c1693();const _0x27bfea='above'===_0x2d3252['order'],_0x8531a7=_0x4b76cf['getSelectionAffectedTableCells'](_0x3fbbc6),_0x3bd33b=_0x4b76cf['getRowIndexes'](_0x8531a7),_0x434e5e=_0x27bfea?_0x3bd33b['first']-0x1:_0x3bd33b['last']+0x1,_0x25fcdf=_0x8531a7[0x0]['findAncestor']('table'),_0x26eb4a=_0x4b76cf['createTableWalker'](_0x25fcdf,{'startRow':_0x434e5e,'endRow':_0x434e5e}),_0x54eafc=Array['from'](_0x26eb4a)['map'](_0x346275=>_0x1826d6['createRangeOn'](_0x346275['cell']));_0x357bb0['markMultiRangeInsertion'](_0x54eafc,'tableRow');});});}for(const _0x3b9661 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2d1be7=_0x20570b['commands']['get'](_0x3b9661);_0x357bb0['enableCommand'](_0x3b9661,_0x3d98d4=>{_0x20570b['model']['change'](_0x296a4a=>{_0x3d98d4();const _0x45e97d='left'===_0x2d1be7['order'],_0x5c450a=_0x4b76cf['getSelectionAffectedTableCells'](_0x3fbbc6),_0xe080c3=_0x4b76cf['getColumnIndexes'](_0x5c450a),_0x3791b2=_0x45e97d?_0xe080c3['first']-0x1:_0xe080c3['last']+0x1,_0x145387=_0x5c450a[0x0]['findAncestor']('table'),_0x4f69cc=_0x4b76cf['createTableWalker'](_0x145387,{'startRow':0x0,'column':_0x3791b2,'includeAllSlots':!0x1}),_0x24c378=Array['from'](_0x4f69cc)['map'](_0xbd5449=>_0x296a4a['createRangeOn'](_0xbd5449['cell']));_0x357bb0['markMultiRangeInsertion'](_0x24c378,'tableColumn');});});}for(const _0x27351d of['removeTableRow','removeTableColumn']){const _0x34d441=_0x27351d['substr'](0xb),_0x5a9e2d=_0x34d441['toLowerCase'](),_0x4cf704=_0x5a9e2d['substr'](0x0,0x3)+'span',_0x339342='table'+_0x34d441,_0x4378e6='min'+_0x34d441,_0x37068f='max'+_0x34d441;_0x357bb0['enableCommand'](_0x27351d,()=>{_0x20570b['model']['change'](_0x2aa2f3=>{const _0x39487c=_0x4b76cf['getSelectionAffectedTableCells'](_0x3fbbc6),_0x4279d0=_0x39487c[0x0]['findAncestor']('table');let _0x588452;if('removeTableRow'==_0x27351d){const _0x43fbe1=_0x4b76cf['getRowIndexes'](_0x39487c);_0x588452={'startRow':_0x43fbe1['first'],'endRow':_0x43fbe1['last'],'includeAllSlots':!0x0};}else{const _0x21b069=_0x4b76cf['getColumnIndexes'](_0x39487c);_0x588452={'startColumn':_0x21b069['first'],'endColumn':_0x21b069['last'],'includeAllSlots':!0x0};}const _0x4f8003=_0x4b76cf['createTableWalker'](_0x4279d0,_0x588452),_0x2f8a41=Array['from'](_0x4f8003)['map'](({cell:_0x2c9ec7})=>_0x2c9ec7),_0x2e5027=Ee(_0x2f8a41['filter'](_0x2c9e33=>_0x2c9e33['hasAttribute'](_0x4cf704))),_0x197b80=Ee(_0x2f8a41['filter'](_0x1069c4=>!_0x1069c4['hasAttribute'](_0x4cf704)))['map'](_0x513d42=>_0x2aa2f3['createRangeOn'](_0x513d42)),_0x46fc39=_0x357bb0['markMultiRangeDeletion'](_0x197b80,_0x339342);if(_0x46fc39&&('tableRow'==_0x46fc39['subType']||'tableColumn'==_0x46fc39['subType'])){const _0x141c02=this['_getSuggestionCoords'](_0x46fc39);for(const _0x21b9bc of _0x2e5027){const _0x2442f0=_0x2aa2f3['createRangeOn'](_0x21b9bc),_0x55e6cf=_0x4b76cf['getCellLocation'](_0x21b9bc),_0x34df94=_0x21b9bc['getAttribute'](_0x4cf704)-0x1,_0x201058=_0x141c02[_0x4378e6],_0x59d306=_0x141c02[_0x37068f];_0x201058<=_0x55e6cf[_0x5a9e2d]&&_0x55e6cf[_0x5a9e2d]+_0x34df94<=_0x59d306&&_0x46fc39['addRange'](_0x2442f0);}}});});}function _0x2e1d90(_0x72233){const _0x550e67=Array['from'](_0x3fbbc6['getRanges']())['map'](_0x11f1ec=>_0x2f3de9['fromRange'](_0x11f1ec));_0x20570b['model']['change'](_0x5ab0f8=>{const _0x2c53a3=_0x5ab0f8['batch'];_0x72233=_0x72233['filter'](_0x3df261=>'$graveyard'!=_0x3df261['root']['rootName']),_0x5ab0f8['setSelection'](_0x72233),_0x20570b['commands']['get']('removeTableRow')['refresh'](),_0x20570b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x20570b['model']['enqueueChange'](()=>{_0x20570b['model']['enqueueChange'](_0x2c53a3,_0x5a12b2=>{const _0x4df4f5=_0x550e67['filter'](_0x1b5356=>'$graveyard'!=_0x1b5356['root']['rootName']);_0x4df4f5['length']>0x0&&_0x5a12b2['setSelection'](_0x4df4f5);for(const _0x41dc38 of _0x550e67)_0x41dc38['detach']();});});});}function _0x404147(_0x38c3c5){_0x20570b['model']['change'](_0x36f58c=>{const _0x1a7533=Array['from'](_0x3fbbc6['getRanges']())['map'](_0x120a14=>_0x2f3de9['fromRange'](_0x120a14)),_0x8db1f0=[];for(const _0x1acdb0 of _0x38c3c5)for(const _0x27ebfe of _0x1acdb0['getItems']({'shallow':!0x0}))_0x8db1f0['push'](_0x27ebfe);for(const _0x2cbc9c of _0x8db1f0)'$graveyard'!=_0x2cbc9c['root']['rootName']&&(_0x36f58c['setSelection'](_0x36f58c['createPositionAt'](_0x2cbc9c,0x0)),_0x20570b['commands']['get']('removeTableColumn')['refresh'](),_0x20570b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x22cda6=_0x1a7533['filter'](_0x51d3cd=>'$graveyard'!=_0x51d3cd['root']['rootName']);_0x22cda6['length']>0x0&&_0x36f58c['setSelection'](_0x22cda6);for(const _0x2d21b6 of _0x1a7533)_0x2d21b6['detach']();});}function _0x58828a(_0x7501d4,_0x15abaf){return _0x15abaf['every'](_0x2d05df=>_0x7501d4['some'](_0x490846=>_0x490846['end']['isEqual'](_0x2d05df['start'])||_0x2d05df['end']['isEqual'](_0x490846['start'])));}function _0x470d5f(_0x587c1c,_0x106b12){return _0x587c1c['some'](_0x2ea13f=>_0x106b12['some'](_0x31d0aa=>_0x2ea13f['end']['isTouching'](_0x31d0aa['start'])));}_0x20570b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x15ba63,_0x17921e,_0xa56e81)=>{if(!_0xa56e81['options']['showSuggestionHighlights'])return;const _0x4297ca=_0x17921e['item'];if(!_0x4297ca)return;const _0x191643=_0xa56e81['mapper']['toViewElement'](_0x4297ca);function _0x48dedd(_0x5f318d){return Array['isArray'](_0x5f318d)?_0x5f318d:[_0x5f318d];}_0x191643&&'tableCell'===_0x4297ca['name']&&_0x4fc2c1(_0x191643,_0xa56e81['writer'],(_0xadfdc4,_0x488300,_0xb54333)=>_0xb54333['addClass'](_0x48dedd(_0x488300['classes']),_0xadfdc4),(_0x10f794,_0x86ad73,_0xdc2c64)=>_0xdc2c64['removeClass'](_0x48dedd(_0x86ad73['classes']),_0x10f794));},{'priority':'highest'}),_0x357bb0['descriptionFactory']['registerDescriptionCallback'](_0x13c5cf=>{if('insertion'!=_0x13c5cf['type']&&'deletion'!=_0x13c5cf['type'])return;const _0x3837a0=_0x13c5cf['getContainedElement']();if(null!=_0x3837a0&&_0x3837a0['is']('element','table')){if('insertion'==_0x13c5cf['type']){const _0x4076a9=_0x13c5cf['getItems']()['filter'](_0x48e6a3=>_0x48e6a3['is']('$textProxy'))['map'](_0x35728b=>_0x35728b['data']);if(_0x4076a9['length'])return{'type':'insertion','content':o(_0xe1662c,'*Insert:*\x20%0',o(_0xe1662c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4076a9['join']('\x20')+'\x22'))};}if('deletion'==_0x13c5cf['type']){const _0x51eed5=_0x13c5cf['getItems']()['filter'](_0x353646=>_0x353646['is']('$textProxy'))['map'](_0x46b53e=>_0x46b53e['data']);if(_0x51eed5['length'])return{'type':'deletion','content':o(_0xe1662c,'*Remove:*\x20%0',o(_0xe1662c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x51eed5['join']('\x20')+'\x22'))};}}}),_0x357bb0['descriptionFactory']['registerDescriptionCallback'](_0x12cc83=>{if('tableRow'==_0x12cc83['subType']){const _0x3da1d5=_0x12cc83['getItems']()['filter'](_0x5ab082=>_0x5ab082['is']('$textProxy'))['map'](_0x369d76=>_0x369d76['data']),_0xe33e06=this['_getSuggestionCoords'](_0x12cc83),_0x5cb0b2=_0xe33e06['maxRow']-_0xe33e06['minRow']+0x1;if('insertion'==_0x12cc83['type'])return _0x3da1d5['length']?{'type':'insertion','content':o(_0xe1662c,'*Insert:*\x20%0',o(_0xe1662c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5cb0b2,'\x22'+_0x3da1d5['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xe1662c,'*Insert:*\x20%0',o(_0xe1662c,'ELEMENT_TABLE_ROW',_0x5cb0b2))};if('deletion'==_0x12cc83['type'])return _0x3da1d5['length']?{'type':'deletion','content':o(_0xe1662c,'*Remove:*\x20%0',o(_0xe1662c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5cb0b2,'\x22'+_0x3da1d5['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xe1662c,'*Remove:*\x20%0',o(_0xe1662c,'ELEMENT_TABLE_ROW',_0x5cb0b2))};}if('tableColumn'==_0x12cc83['subType']){const _0x217f84=_0x12cc83['getItems']()['filter'](_0x360bb0=>_0x360bb0['is']('$textProxy'))['map'](_0x5c4276=>_0x5c4276['data']),_0x2e8799=this['_getSuggestionCoords'](_0x12cc83),_0x44f53d=_0x2e8799['maxColumn']-_0x2e8799['minColumn']+0x1;if('insertion'==_0x12cc83['type'])return _0x217f84['length']?{'type':'insertion','content':o(_0xe1662c,'*Insert:*\x20%0',o(_0xe1662c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x44f53d,'\x22'+_0x217f84['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xe1662c,'*Insert:*\x20%0',o(_0xe1662c,'ELEMENT_TABLE_COLUMN',_0x44f53d))};if('deletion'==_0x12cc83['type'])return _0x217f84['length']?{'type':'deletion','content':o(_0xe1662c,'*Remove:*\x20%0',o(_0xe1662c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x44f53d,'\x22'+_0x217f84['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xe1662c,'*Remove:*\x20%0',o(_0xe1662c,'ELEMENT_TABLE_COLUMN',_0x44f53d))};}}),_0x357bb0['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2e1d90),_0x357bb0['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2e1d90),_0x357bb0['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x404147),_0x357bb0['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x404147),_0x357bb0['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x58828a),_0x357bb0['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x58828a),_0x357bb0['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x470d5f),_0x357bb0['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x470d5f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x37c41d=this['editor'],_0x1bd516=_0x37c41d['model']['document']['selection'];return(_0x2b9ced,_0x1e051c)=>{_0x37c41d['model']['change'](_0x3911bc=>{const {commandName:_0x4de968,commandParams:_0x2e6eab}=_0x1e051c;let _0x20ee94=_0x2b9ced[0x0]['end']['nodeBefore'];_0x2e6eab&&_0x2e6eab[0x0]&&!0x1===_0x2e6eab[0x0]['forceValue']&&(_0x20ee94=_0x2b9ced[0x0]['start']['nodeAfter']);const _0xf40847=_0x3911bc['createRangeIn'](_0x20ee94);if('$graveyard'==_0xf40847['root']['rootName'])return;const _0x35e3f5=Array['from'](_0x1bd516['getRanges']())['map'](_0x187812=>_0x2f3de9['fromRange'](_0x187812));_0x3911bc['setSelection'](_0xf40847),_0x37c41d['commands']['get'](_0x4de968)['refresh'](),_0x2e6eab['push']({'forceDefaultExecution':!0x0}),_0x37c41d['execute'](_0x4de968,..._0x2e6eab);const _0x8b03b=_0x35e3f5['filter'](_0xed21f1=>'$graveyard'!=_0xed21f1['root']['rootName']);_0x8b03b['length']>0x0&&_0x3911bc['setSelection'](_0x8b03b);for(const _0x3b27c2 of _0x35e3f5)_0x3b27c2['detach']();});};}['_getCoordsForCells'](_0x2c60e4){const _0x3a66f6=this['editor']['plugins']['get']('TableUtils');let _0x4a8ad7=Number['MAX_SAFE_INTEGER'],_0x2e56ee=Number['MIN_SAFE_INTEGER'],_0x3ecd90=Number['MAX_SAFE_INTEGER'],_0x4c1b27=Number['MIN_SAFE_INTEGER'];for(const _0x57c1f5 of _0x2c60e4){if('$graveyard'==_0x57c1f5['root']['rootName'])continue;const {row:_0x108a70,column:_0x37feb2}=_0x3a66f6['getCellLocation'](_0x57c1f5),_0x36b63f=_0x57c1f5['hasAttribute']('rowspan')?_0x57c1f5['getAttribute']('rowspan')-0x1:0x0,_0x26f128=_0x57c1f5['hasAttribute']('colspan')?_0x57c1f5['getAttribute']('colspan')-0x1:0x0;_0x4a8ad7=_0x108a70<_0x4a8ad7?_0x108a70:_0x4a8ad7,_0x2e56ee=_0x108a70+_0x36b63f>_0x2e56ee?_0x108a70+_0x36b63f:_0x2e56ee,_0x3ecd90=_0x37feb2<_0x3ecd90?_0x37feb2:_0x3ecd90,_0x4c1b27=_0x37feb2+_0x26f128>_0x4c1b27?_0x37feb2+_0x26f128:_0x4c1b27;}return{'minRow':_0x4a8ad7,'maxRow':_0x2e56ee,'minColumn':_0x3ecd90,'maxColumn':_0x4c1b27};}['_setupColumnsRowsFixing'](){const _0x46f5cc=this['editor'],_0x47f0d9=_0x46f5cc['plugins']['get']('TrackChangesEditing'),_0x21187f=_0x46f5cc['plugins']['get']('TableUtils');_0x46f5cc['model']['document']['on']('change:data',()=>{const _0x59a250=Array['from'](_0x46f5cc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xe5ca4,data:_0x5949b1}of _0x59a250){const {group:_0x5a3c37,id:_0x29d74b,subType:_0x44025e}=_0x47f0d9['_splitMarkerName'](_0xe5ca4);if('suggestion'!=_0x5a3c37)continue;if(null!=_0x5949b1['oldRange'])continue;const _0x30e1a5=_0x47f0d9['getSuggestion'](_0x29d74b);this['_tablePostFixingSubtypes']['includes'](_0x44025e)&&this['_tableSuggestions']['add'](_0x30e1a5);}},{'priority':'low'});const _0x5ee9e1=(_0x4d6b3f,_0x38f426)=>{let _0x3ea413=!0x1;const _0x2c7021=_0x38f426['createRangeOn'](_0x4d6b3f),_0xd8d8e4=_0x4d6b3f['findAncestor']('table'),_0x6453ae=_0x21187f['getCellLocation'](_0x4d6b3f);for(const _0x32d8e2 of this['_tableSuggestions']){const _0x15fd5a=_0x32d8e2['subType'],_0x54d060=_0x15fd5a['startsWith']('tablePaste'),_0x3f0c9e=_0x15fd5a['substr'](_0x54d060?0xa:0x5),_0x440997=_0x3f0c9e['toLowerCase'](),_0x21ad24=_0x440997['substr'](0x0,0x3)+'span',_0x274df8='min'+_0x3f0c9e,_0x561b91='max'+_0x3f0c9e;if(!_0x32d8e2['isInContent'])continue;if(_0xd8d8e4!=_0x32d8e2['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x32d8e2['isIntersectingWithRange'](_0x2c7021))continue;const _0x4854a4=_0x4d6b3f['hasAttribute'](_0x21ad24)?_0x4d6b3f['getAttribute'](_0x21ad24)-0x1:0x0,_0x2b35e4=this['_getSuggestionCoords'](_0x32d8e2),_0x27c2d3=_0x2b35e4[_0x274df8],_0x1db7e0=_0x2b35e4[_0x561b91];_0x27c2d3<=_0x6453ae[_0x440997]&&_0x6453ae[_0x440997]+_0x4854a4<=_0x1db7e0&&(_0x32d8e2['addRange'](_0x2c7021),_0x3ea413=!0x0);}return _0x3ea413;};_0x46f5cc['model']['document']['registerPostFixer'](_0x3d24ff=>{let _0x5c47c3=!0x1;for(const _0x257c83 of _0x46f5cc['model']['document']['differ']['getChanges']())if('insert'==_0x257c83['type']){if('tableRow'==_0x257c83['name']){for(const _0xf9cbbb of _0x257c83['position']['nodeAfter']['getChildren']())_0x5c47c3=_0x5c47c3||_0x5ee9e1(_0xf9cbbb,_0x3d24ff);}else'tableCell'==_0x257c83['name']&&(_0x5c47c3=_0x5c47c3||_0x5ee9e1(_0x257c83['position']['nodeAfter'],_0x3d24ff));}return _0x5c47c3;});}['_getSuggestionCoords'](_0x3347cd){return this['_getCoordsForCells'](_0x3347cd['getRanges']()['map'](_0x49e65e=>_0x49e65e['start']['nodeAfter']));}constructor(_0x4bdb55){super(_0x4bdb55),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}}function Ee(_0x1e4812){return Array['from'](new Set(_0x1e4812)['values']());}class St extends _0x5511a1{static get['requires'](){return[jt];}['afterInit'](){const _0x27ef7d=this['editor'],_0x54811b=_0x27ef7d['model']['document']['selection'],_0x51dece=_0x27ef7d['locale'];if(!_0x27ef7d['plugins']['has']('TableEditing'))return;const _0x11f9f8=_0x27ef7d['plugins']['get']('TrackChangesEditing'),_0x3fca9f=_0x27ef7d['plugins']['get']('TableUtils'),_0x344a57=_0x27ef7d['plugins']['get'](jt);_0x344a57['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x11f9f8['enableCommand']('mergeTableCells',()=>{const _0x5eb1e2=_0x3fca9f['getSelectionAffectedTableCells'](_0x27ef7d['model']['document']['selection']);_0x27ef7d['model']['change'](()=>{_0x11f9f8['markMultiRangeBlockFormat'](_0x5eb1e2,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x27ef7d['commands']['get']('mergeTableCells')['on']('execute',(_0x1fc82e,_0x1ea7ce)=>{_0x27ef7d['commands']['get']('trackChanges')['value']&&(_0x1ea7ce['length']>0x0&&_0x1ea7ce[_0x1ea7ce['length']-0x1]&&_0x1ea7ce[_0x1ea7ce['length']-0x1]['forceDefaultExecution']||_0x11f9f8['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1fc82e['stop']());},{'priority':'highest'});for(const _0x2ea913 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5d679f=_0x27ef7d['commands']['get'](_0x2ea913);_0x11f9f8['enableCommand'](_0x2ea913,()=>{const _0xe0a5df=_0x27ef7d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x363370=>_0x363370['is']('element','tableCell')),_0x3257ed=_0x5d679f['value'];_0x27ef7d['model']['change'](()=>{_0x11f9f8['markMultiRangeBlockFormat']([_0xe0a5df,_0x3257ed],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x31254a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x57c971=_0x27ef7d['commands']['get'](_0x31254a);_0x11f9f8['enableCommand'](_0x31254a,()=>{const _0xffa4f6=_0x3fca9f['getSelectionAffectedTableCells'](_0x27ef7d['model']['document']['selection'])[0x0],_0xa6ce8f=_0xffa4f6['findAncestor']('table'),{column:_0x3b5853,row:_0x5856eb}=_0x3fca9f['getCellLocation'](_0xffa4f6);let _0x2c922b=[];if('horizontally'==_0x57c971['direction']){const _0x3dd2b9=_0x3fca9f['createTableWalker'](_0xa6ce8f,{'startRow':_0x5856eb,'endRow':_0x5856eb,'includeAllSlots':!0x0});_0x2c922b=Array['from'](_0x3dd2b9)['map'](_0x4a451a=>_0x4a451a['cell']);}else{const _0x4fd56f=_0x3fca9f['createTableWalker'](_0xa6ce8f,{'column':_0x3b5853,'includeAllSlots':!0x0});_0x2c922b=Array['from'](_0x4fd56f)['map'](_0x5736f2=>_0x5736f2['cell']);}_0x27ef7d['model']['change'](_0x3af741=>{_0x11f9f8['markBlockFormat'](_0x3af741['createRangeOn'](_0xffa4f6),{'commandName':_0x31254a,'commandParams':[]},_0x2c922b,_0x31254a);});});}_0x11f9f8['descriptionFactory']['registerDescriptionCallback'](_0x25bb19=>{if('formatBlock'!=_0x25bb19['type']&&'formatInline'!=_0x25bb19['type'])return;const {data:_0x31bb16}=_0x25bb19;return _0x31bb16&&'mergeTableCells'==_0x31bb16['commandName']?{'type':'format','content':o(_0x51dece,'*Merge\x20cells*')}:void 0x0;}),_0x11f9f8['descriptionFactory']['registerDescriptionCallback'](_0x36491f=>{if('formatBlock'!=_0x36491f['type']&&'formatInline'!=_0x36491f['type'])return;const {data:_0x4e4bd5}=_0x36491f;return _0x4e4bd5?'splitTableCellVertically'==_0x4e4bd5['commandName']?{'type':'format','content':o(_0x51dece,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4e4bd5['commandName']?{'type':'format','content':o(_0x51dece,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x8200a=_0x344a57['_acceptFormatSuggestionCallbackFactory']();for(const _0xe7e75a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x11f9f8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xe7e75a,'accept',_0x8200a);for(const _0x1b89d6 of['splitTableCellVertically','splitTableCellHorizontally'])_0x11f9f8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1b89d6,'accept',_0x8200a);_0x11f9f8['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x12da1d=>{_0x27ef7d['model']['change'](_0x32df99=>{const _0x1fa0ac=Array['from'](_0x54811b['getRanges']())['map'](_0x359a8d=>_0x2f3de9['fromRange'](_0x359a8d));_0x32df99['setSelection'](_0x12da1d),_0x27ef7d['commands']['get']('mergeTableCells')['refresh'](),_0x27ef7d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xcecf62=_0x1fa0ac['filter'](_0x2d39cd=>'$graveyard'!=_0x2d39cd['root']['rootName']);_0xcecf62['length']>0x0&&_0x32df99['setSelection'](_0xcecf62);for(const _0x8528d6 of _0x1fa0ac)_0x8528d6['detach']();});});for(const _0x91d88f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x387d7f=_0x27ef7d['commands']['get'](_0x91d88f);_0x387d7f['on']('set:isEnabled',(_0x5eb05b,_0xf8673d,_0x355073)=>{if(_0x355073){const _0x6e5420=_0x27ef7d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x23e57c=>_0x23e57c['is']('element','tableCell'));this['_areMergableCells'](_0x387d7f['value'],_0x6e5420)||(_0x5eb05b['return']=!0x1,_0x5eb05b['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x173a44=this['editor']['commands']['get']('mergeTableCells'),_0x3b1af4=this['editor']['plugins']['get']('TableUtils');if(!_0x173a44['isEnabled'])return!0x1;const _0x3f2f02=_0x3b1af4['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4d1f25 of _0x3f2f02)for(const _0x3b4039 of _0x3f2f02)if(_0x4d1f25!=_0x3b4039&&!this['_areMergableCells'](_0x4d1f25,_0x3b4039))return!0x1;return!0x0;}['_areMergableCells'](_0xb9322d,_0x165054){const _0x12cfbd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x575a0e=this['editor']['model']['createRangeOn'](_0xb9322d),_0x3ed972=this['editor']['model']['createRangeOn'](_0x165054),_0x528c13=new Set(),_0x2968fc=new Set();for(const _0x36c578 of _0x12cfbd['getSuggestions']())if(('insertion'==_0x36c578['type']||'deletion'==_0x36c578['type']||'mergeTableCells'==_0x36c578['subType'])&&_0x36c578['isInContent']){for(const _0x51a255 of _0x36c578['getRanges']())_0x51a255['containsRange'](_0x575a0e,!0x0)&&_0x528c13['add'](_0x36c578['type']+':'+_0x36c578['author']['id']),_0x51a255['containsRange'](_0x3ed972,!0x0)&&_0x2968fc['add'](_0x36c578['type']+':'+_0x36c578['author']['id']);}if(_0x528c13['size']!=_0x2968fc['size'])return!0x1;for(const _0xa0b8db of _0x528c13)if(!_0x2968fc['has'](_0xa0b8db))return!0x1;return!0x0;}}class At extends _0x5511a1{static get['requires'](){return[jt];}['afterInit'](){const _0x54fc27=this['editor'];if(!_0x54fc27['plugins']['has']('TableEditing'))return;const _0x475c2a=_0x54fc27['locale'],_0x10963b=_0x54fc27['plugins']['get']('TrackChangesEditing');_0x10963b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x10963b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x10963b['registerBlockAttribute']('headingRows'),_0x10963b['registerBlockAttribute']('headingColumns'),_0x10963b['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x475c2a,'FORMAT_HEADER_ROW')),_0x10963b['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x475c2a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x45f045=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18ee49=this['editor']['plugins']['get']('TableUtils'),_0x5e90da=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x3c9546({showActiveMarker:_0x4978d7=!0x0,setDataAttribute:_0x3dde2c=!0x0}={}){return(_0x244485,_0xf3d0d,_0x512e26)=>{const {type:_0x2f7b8a,id:_0x45cc0b}=_0x45f045['_splitMarkerName'](_0xf3d0d['markerName']),_0x37beb1=_0x45f045['getSuggestion'](_0x45cc0b),_0x5838c1=_0x37beb1['data'];if('formatBlock'!=_0x37beb1['type']||!_0x5838c1||'setTableColumnHeader'!=_0x5838c1['commandName'])return;if(_0xf3d0d['item'])return void _0x244485['stop']();if(!_0x512e26['consumable']['consume'](_0xf3d0d['markerRange'],_0x244485['name']))return;const _0x297f40=_0xf3d0d['markerRange']['start']['nodeAfter'],_0x2955f8=_0xf3d0d['markerRange']['end']['nodeBefore'],_0x34a86f=_0x297f40['parent']['parent'],{column:_0x3d4914}=_0x18ee49['getCellLocation'](_0x297f40),{column:_0xcb78e}=_0x18ee49['getCellLocation'](_0x2955f8);for(let _0x135417=_0x3d4914;_0x135417<=_0xcb78e;_0x135417++){const _0x3a6e3d=_0x18ee49['createTableWalker'](_0x34a86f,{'column':_0x135417,'includeAllSlots':!0x1});for(const _0x315494 of _0x3a6e3d){const _0x587f24=_0x315494['cell'],_0x538970=_0x512e26['mapper']['toViewElement'](_0x587f24);_0x512e26['writer']['addClass']('ck-suggestion-marker-'+_0x2f7b8a,_0x538970),_0x3dde2c&&_0x512e26['writer']['setAttribute']('data-suggestion',_0x45cc0b,_0x538970),_0x512e26['mapper']['bindElementToMarker'](_0x538970,_0xf3d0d['markerName']),_0x4978d7&&(_0x45f045['activeMarkers']['includes'](_0xf3d0d['markerName'])?_0x512e26['writer']['addClass']('ck-suggestion-marker--active',_0x538970):_0x512e26['writer']['removeClass']('ck-suggestion-marker--active',_0x538970));}}};}_0x45f045['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5e90da),_0x45f045['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5e90da),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3c9546(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x24d76c,_0xa118ea,_0x2bd454)=>{_0x2bd454['options']['showSuggestionHighlights']&&_0x3c9546({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x24d76c,_0xa118ea,_0x2bd454);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x106ed5,_0x38ad0b,_0x4c50f0)=>{const {type:_0xd3a873,id:_0x1af68b}=_0x45f045['_splitMarkerName'](_0x38ad0b['markerName']),_0x283efe=_0x45f045['getSuggestion'](_0x1af68b),_0x2bc7c5=_0x283efe['data'];if('formatBlock'!=_0x283efe['type']||!_0x2bc7c5||'setTableColumnHeader'!=_0x2bc7c5['commandName'])return;const _0x13694c=_0x4c50f0['mapper']['markerNameToElements'](_0x38ad0b['markerName']);if(_0x13694c){for(const _0x1b5076 of _0x13694c)_0x4c50f0['writer']['removeClass']('ck-suggestion-marker-'+_0xd3a873,_0x1b5076),_0x4c50f0['writer']['removeClass']('ck-suggestion-marker--active',_0x1b5076),_0x4c50f0['writer']['removeAttribute']('data-suggestion',_0x1b5076),_0x4c50f0['mapper']['unbindElementFromMarkerName'](_0x1b5076,_0x38ad0b['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21669e=this['editor'],_0x3ccb36=_0x21669e['locale'];function _0x3224b5(_0x57608a){return{'type':'format','content':o(_0x3ccb36,'*Format:*\x20%0',_0x57608a)};}_0x21669e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xeabc0a=>{if('formatBlock'!=_0xeabc0a['type'])return;const {data:_0x151328}=_0xeabc0a;if(_0x151328){if('setTableRowHeader'==_0x151328['commandName']){const _0x373faf=_0x151328['commandParams'][0x0]['forceValue'];return _0x3224b5(o(_0x3ccb36,_0x373faf?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x151328['commandName']){const _0x246bb3=_0x151328['commandParams'][0x0]['forceValue'];return _0x3224b5(o(_0x3ccb36,_0x246bb3?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x4f64e0=>[_0x4f64e0,null]));class It extends _0x5511a1{static get['requires'](){return[jt];}['afterInit'](){const _0x4904d6=this['editor'];if(!_0x4904d6['plugins']['has']('TableClipboard'))return;const _0x7d4d57=_0x4904d6['plugins']['get']('TrackChangesEditing'),_0x41a1b6=_0x4904d6['plugins']['get']('TableUtils'),_0xd8ca26=_0x4904d6['plugins']['get'](jt),_0x4242f9=_0x4904d6['plugins']['get']('TableClipboard');_0xd8ca26['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4904d6['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4904d6['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x503fa2=null;_0x4904d6['model']['on']('insertContent',(_0x37f6ed,_0x3e6355)=>{const [_0x4187d1,_0x216630]=_0x3e6355,_0x463a6a=_0x3e6355[_0x3e6355['length']-0x1];_0x463a6a&&_0x463a6a['forceDefaultExecution']||_0x7d4d57['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x18ef9f,_0x174dce,_0x468677,_0x4d2abb,_0x3e8448){if(_0x174dce&&!_0x174dce['is']('documentSelection'))return!0x1;const _0x355218=_0x3e8448['getTableIfOnlyTableInContent'](_0x18ef9f,_0x468677);if(!_0x355218||!he(_0x355218,void 0x0,_0x4d2abb))return!0x1;const _0x462ed6=_0x4d2abb['getSelectionAffectedTableCells'](_0x468677['document']['selection']);if(!_0x462ed6['length'])return!0x1;const _0x44ece3=_0x462ed6[0x0]['findAncestor']('table'),_0x2045ab=_0x4d2abb['getRowIndexes'](_0x462ed6),_0x4f0905=_0x4d2abb['getColumnIndexes'](_0x462ed6),_0x47c781={'startRow':_0x2045ab['first'],'endRow':_0x2045ab['last'],'startColumn':_0x4f0905['first'],'endColumn':_0x4f0905['last']};return 0x1==_0x462ed6['length']&&(_0x47c781['endRow']+=_0x4d2abb['getRows'](_0x355218)-0x1,_0x47c781['endColumn']+=_0x4d2abb['getColumns'](_0x355218)-0x1),he(_0x44ece3,_0x47c781,_0x4d2abb);}(_0x4187d1,_0x216630,_0x4904d6['model'],_0x41a1b6,_0x4242f9)&&(_0x37f6ed['stop'](),_0x503fa2={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4904d6['model']['change'](()=>{_0x4904d6['model']['insertContent'](_0x3e6355[0x0],_0x3e6355[0x1],_0x3e6355[0x2],{'forceDefaultExecution':!0x0});const _0x95a81c=_0x4c61b3(),{rowInsertionRanges:_0x166266,columnInsertionRanges:_0x10d10b,insertionRanges:_0x4cd057,deletionRanges:_0xb24696,cells:_0x1b8392}=_0x503fa2;_0x166266['length']&&_0x7d4d57['markMultiRangeInsertion'](_0x166266,'tablePasteRow',{'tablePasteChainId':_0x95a81c}),_0x10d10b['length']&&_0x7d4d57['markMultiRangeInsertion'](_0x10d10b,'tablePasteColumn',{'tablePasteChainId':_0x95a81c}),_0x4cd057['length']&&(_0x7d4d57['markMultiRangeInsertion'](_0x4cd057,'tablePaste',{'tablePasteChainId':_0x95a81c,'skipNestingCheck':!0x0}),_0x4cd057['forEach'](_0x35ca89=>{var _0x270691;return null===(_0x270691=_0x35ca89['detach'])||void 0x0===_0x270691?void 0x0:_0x270691['call'](_0x35ca89);})),_0xb24696['length']&&(_0x7d4d57['markMultiRangeDeletion'](_0xb24696,'tablePaste',{'tablePasteChainId':_0x95a81c,'skipNestingCheck':!0x0}),_0xb24696['forEach'](_0x1037d9=>{var _0x2680b5;return null===(_0x2680b5=_0x1037d9['detach'])||void 0x0===_0x2680b5?void 0x0:_0x2680b5['call'](_0x1037d9);}));const _0x32ba73=_0x7d4d57['markMultiRangeBlockFormat'](_0x1b8392['map'](({element:_0x53d5cc})=>_0x53d5cc),{'formatGroupId':_0x4c61b3()},[],'tablePasteCell',{'tablePasteChainId':_0x95a81c});if(_0x32ba73){const _0x2ee3a5=_0x32ba73['getMarkers'](),_0x11ca68=[];for(const {element:_0x44be4e,attributes:_0x3b48c4}of _0x1b8392){if(!_0x3b48c4)continue;const _0x3a4cc0=_0x4904d6['model']['createRangeOn'](_0x44be4e),_0x341aff=_0x2ee3a5['find'](_0x1abef8=>_0x1abef8['getRange']()['isEqual'](_0x3a4cc0));_0x341aff&&_0x11ca68['push']([_0x341aff['name'],_0x3b48c4]);}_0x11ca68['length']&&_0x32ba73['setAttribute']('markerAttributes',Object['fromEntries'](_0x11ca68));}_0x503fa2=null;}));},{'priority':_0x4b8876['high']+0xa}),_0x4904d6['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x51ba9b,_0x5b5367)=>{const [_0x46fe0d,_0x1bd8bd,,_0xf649b6]=_0x5b5367;if(!_0x503fa2)return;_0x51ba9b['stop']();const _0x3195a8=_0x46fe0d['cell'],_0x388755=_0x1bd8bd,_0x14e179=Pe(_0x3195a8),_0x1ee833=Pe(_0x388755);_0x51ba9b['return']=_0x3195a8;let _0x112a53=null,_0xf5f570=null;if(_0x1ee833||_0x14e179){if(_0x14e179&&!_0x1ee833){_0xf649b6['remove'](_0x3195a8['getChild'](0x0));for(const _0x499625 of Array['from'](_0x388755['getChildren']()))_0xf649b6['insert'](_0x499625,_0x3195a8,'end');const _0x14c38b=_0x503fa2['rowInsertionIndexes']['includes'](_0x46fe0d['row']),_0x2d8545=_0x503fa2['columnInsertionIndexes']['includes'](_0x46fe0d['column']);_0x14c38b||_0x2d8545||(_0x112a53=_0x2f3de9['fromRange'](_0xf649b6['createRangeIn'](_0x3195a8)));}else _0x1ee833&&!_0x14e179&&(_0xf5f570=_0xf649b6['createRangeIn'](_0x3195a8));}else{const _0x4778de=_0xf649b6['createElement']('tableCellSuggestion'),_0x120404=_0xf649b6['createElement']('tableCellSuggestion');_0xf649b6['wrap'](_0xf649b6['createRangeIn'](_0x3195a8),_0x120404),_0xf649b6['insert'](_0x4778de,_0x3195a8,0x0);for(const _0x4760a4 of Array['from'](_0x388755['getChildren']()))_0xf649b6['insert'](_0x4760a4,_0x4778de,'end');_0x112a53=_0x2f3de9['fromRange'](_0xf649b6['createRangeOn'](_0x4778de)),_0xf5f570=_0x2f3de9['fromRange'](_0xf649b6['createRangeOn'](_0x120404));}const _0x1e8bcb=Array['from'](_0x388755['getAttributes']())['filter'](([_0x84bd56])=>ge['includes'](_0x84bd56));_0x503fa2['cells']['push']({'element':_0x3195a8,'attributes':_0x1e8bcb['length']?Object['fromEntries'](_0x1e8bcb):null}),_0x112a53&&_0x503fa2['insertionRanges']['push'](_0x112a53),_0xf5f570&&_0x503fa2['deletionRanges']['push'](_0xf5f570);},{'priority':'high'}),_0x41a1b6['on']('insertColumns',(_0x510cad,_0x549e8d)=>{const [_0x29df6e,_0x10b8fd={}]=_0x549e8d;if(!_0x503fa2)return;const _0x131000=_0x10b8fd['at']||0x0,_0x193bf4=_0x10b8fd['columns']||0x1;_0x503fa2['columnInsertionIndexes']=new Array(_0x193bf4)['fill'](_0x131000)['map']((_0x17777e,_0x5cf887)=>_0x17777e+_0x5cf887);for(const {cell:_0x1a70ff}of _0x41a1b6['createTableWalker'](_0x29df6e,{'startColumn':_0x131000,'endColumn':_0x131000+_0x193bf4-0x1}))_0x503fa2['columnInsertionRanges']['push'](_0x4904d6['model']['createRangeOn'](_0x1a70ff));},{'priority':'low'}),_0x41a1b6['on']('insertRows',(_0x2a9ef8,_0x13aafc)=>{const [_0x405d84,_0x67a0b5={}]=_0x13aafc;if(!_0x503fa2)return;const _0x135a31=_0x67a0b5['at']||0x0,_0x12e871=_0x67a0b5['rows']||0x1;_0x503fa2['rowInsertionIndexes']=new Array(_0x12e871)['fill'](_0x135a31)['map']((_0x446ac5,_0xc2b33a)=>_0x446ac5+_0xc2b33a);for(const {cell:_0x35afb5}of _0x41a1b6['createTableWalker'](_0x405d84,{'startRow':_0x135a31,'endRow':_0x135a31+_0x12e871-0x1}))_0x503fa2['rowInsertionRanges']['push'](_0x4904d6['model']['createRangeOn'](_0x35afb5));},{'priority':'low'}),_0x7d4d57['descriptionFactory']['registerDescriptionCallback'](_0x26862f=>{if(_0x26862f['subType']&&_0x26862f['subType']['startsWith']('tablePaste'))return _0x26862f['previous']?{}:{'type':'insertion','content':o(_0x4904d6['locale'],'*Replace\x20table\x20cells*')};});const _0x2a39a8=()=>!0x1;for(const _0x5c5c69 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x7d4d57['_suggestionFactory']['registerCustomCallback']('insertion',_0x5c5c69,'join',_0x2a39a8),_0x7d4d57['_suggestionFactory']['registerCustomCallback']('deletion',_0x5c5c69,'join',_0x2a39a8),_0x7d4d57['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5c5c69,'join',_0x2a39a8);_0x7d4d57['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2a39a8),_0x7d4d57['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x286535,_0x20bfbd,_0xd57780)=>{const _0x8c86d1=_0x286535['map'](_0x56bb4a=>_0x56bb4a['getContainedElement']())['filter'](_0x1032e3=>_0x1032e3),_0x36b323=new Map(_0x8c86d1['map'](_0x3fc096=>[_0x3fc096,null]));if(_0x503fa2){for(const {element:_0x50691a,attributes:_0x4738ce}of _0x503fa2['cells'])_0x4738ce&&_0x36b323['set'](_0x50691a,_0x4738ce);}else{if(_0xd57780&&_0xd57780['markerAttributes'])for(const [_0x5c3cb6,_0x4419ae]of Object['entries'](_0xd57780['markerAttributes'])){const _0x32d0ea=_0x4904d6['model']['markers']['get'](_0x5c3cb6),_0xd3de20=_0x32d0ea?_0x32d0ea['getRange']()['getContainedElement']():null;_0xd3de20&&_0x36b323['set'](_0xd3de20,_0x4419ae);}}_0x4904d6['model']['change'](_0x38c477=>{for(const [_0x41a6f3,_0x1554d4]of _0x36b323)_0x38c477['setAttributes']({...Ce,..._0x1554d4},_0x41a6f3);});});const _0x4bff1a=(_0xb72c72,_0x121d51)=>{_0x7d4d57['_suggestionFactory']['registerCustomCallback'](_0xb72c72,'tablePaste',_0x121d51,(_0x289ee6,_0x524779,_0x131b08)=>{_0x4904d6['model']['change'](_0x1a2276=>{const _0x530557=[];for(const _0x499e93 of _0x289ee6){const _0x4762cf=_0x499e93['start']['nodeAfter'];_0x4762cf['is']('element','tableCellSuggestion')&&_0x530557['push'](_0x4762cf);}_0x7d4d57['_suggestionFactory']['getSuggestionCallback'](_0xb72c72,null,_0x121d51)(_0x289ee6,_0x524779,_0x131b08);for(const _0x404d07 of _0x530557)'$graveyard'!=_0x404d07['root']['rootName']&&_0x1a2276['unwrap'](_0x404d07);});});};_0x4bff1a('insertion','accept'),_0x4bff1a('insertion','discard'),_0x4bff1a('deletion','accept'),_0x4bff1a('deletion','discard'),_0x7d4d57['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x333bd4=>{const _0x1f2664=_0x333bd4['map'](_0x3beb24=>_0x3beb24['getContainedElement']()),_0x5ee42f=_0x1f2664[0x0]['findAncestor']('table'),{minRow:_0x11f6c0,maxRow:_0x113d81}=_0xd8ca26['_getCoordsForCells'](_0x1f2664);_0x41a1b6['removeRows'](_0x5ee42f,{'at':_0x11f6c0,'rows':_0x113d81-_0x11f6c0+0x1});}),_0x7d4d57['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2172e7=>{const _0x46656f=_0x2172e7['map'](_0x1b608b=>_0x1b608b['getContainedElement']()),_0x3eaa06=_0x46656f[0x0]['findAncestor']('table'),{minColumn:_0x56c9bc,maxColumn:_0x12e483}=_0xd8ca26['_getCoordsForCells'](_0x46656f);_0x41a1b6['removeColumns'](_0x3eaa06,{'at':_0x56c9bc,'columns':_0x12e483-_0x56c9bc+0x1});});const _0xc23a63=(_0x466a4c,_0x1d4260)=>{if(!_0x1d4260['subType']||!_0x1d4260['subType']['startsWith']('tablePaste'))return;const _0x470dcc=_0x1d4260['attributes']['tablePasteChainId'],_0x2ff85a=_0x7d4d57['getSuggestions']()['filter'](_0x1c07c5=>_0x1c07c5['isInContent']&&_0x1c07c5['attributes']&&_0x1c07c5['attributes']['tablePasteChainId']==_0x470dcc);_0x2ff85a['length']&&_0x1d4260['getAllAdjacentSuggestions']()['length']!=_0x2ff85a['length']&&_0x2ff85a['reduce']((_0x92fc98,_0x726a3c)=>(_0x92fc98['next']=_0x726a3c,_0x726a3c['previous']=_0x92fc98,_0x726a3c));};function _0x53a8a8(_0x2b70fe,_0x4c3fc1=!0x0){const {id:_0xc9779a}=_0x7d4d57['_splitMarkerName'](_0x2b70fe['markerName']),_0x5eb835=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x19b93c=_0x7d4d57['activeMarkers']['includes'](_0x2b70fe['markerName']);return _0x19b93c&&_0x5eb835['push']('ck-suggestion-marker--active'),{'classes':_0x5eb835,'attributes':{'data-suggestion':_0xc9779a},'priority':_0x19b93c&&_0x4c3fc1?0xbc2:0xbb8};}_0x7d4d57['on']('suggestionLoaded',_0xc23a63,{'priority':'high'}),_0x7d4d57['on']('suggestionUnloaded',_0xc23a63,{'priority':'high'}),_0x4904d6['model']['document']['registerPostFixer'](()=>{let _0x234ef2=!0x1;const _0x5b0476=Array['from'](_0x4904d6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1bbbe3,data:_0x807946}of _0x5b0476){const {group:_0x4ed083,type:_0x3ad452,id:_0x26e5ab}=_0x7d4d57['_splitMarkerName'](_0x1bbbe3);if('suggestion'!=_0x4ed083||'deletion'!=_0x3ad452||_0x807946['oldRange'])continue;if(!_0x7d4d57['hasSuggestion'](_0x26e5ab))continue;const _0x5c332b=_0x7d4d57['getSuggestion'](_0x26e5ab)['getRanges'](),_0x425761=_0x4904d6['plugins']['get']('Users')['me'];for(const _0x4c5e96 of _0x7d4d57['getSuggestions']()){if(!_0x4c5e96['isInContent']||_0x4c5e96['author']!=_0x425761)continue;if('formatBlock'!=_0x4c5e96['type']||'tablePasteCell'!=_0x4c5e96['subType'])continue;if(_0x4c5e96['getRanges']()['every'](_0x25f36a=>_0x5c332b['some'](_0x5d82f4=>_0x5d82f4['containsRange'](_0x25f36a,!0x0)))){for(const _0x251044 of _0x4c5e96['getAllAdjacentSuggestions']())_0x251044['isInContent']&&(_0x251044['discard'](),_0x234ef2=!0x0);}}}return _0x234ef2;}),_0x4904d6['model']['document']['registerPostFixer'](_0x12fd3f=>{const _0x3609e0=_0x4904d6['commands']['get']('redo');if(!_0x3609e0||!_0x3609e0['_createdBatches']['has'](_0x12fd3f['batch']))return!0x1;let _0x586c5d=!0x1;const _0x3e2f08=_0x4904d6['plugins']['get']('Users')['me'],_0x57fccc=_0x4904d6['model']['document']['differ']['getChanges'](),_0x25730c=Array['from'](_0x4904d6['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x8179f0,data:_0x51bd5d})=>{const {group:_0x3b517a,subType:_0x5aa4d7,authorId:_0x5582e4}=_0x7d4d57['_splitMarkerName'](_0x8179f0);return'suggestion'==_0x3b517a&&'tablePaste'==_0x5aa4d7&&_0x5582e4==_0x3e2f08['id']&&!_0x51bd5d['oldRange'];});for(const _0x21b708 of _0x57fccc){if('insert'!=_0x21b708['type']||'tableCellSuggestion'!=_0x21b708['name']||0x1!=_0x21b708['length'])continue;const _0x14e29e=_0x12fd3f['createRange'](_0x21b708['position'],_0x21b708['position']['getShiftedBy'](0x1));if(!_0x25730c['find'](({data:_0x2af1d5})=>_0x2af1d5['newRange']['isEqual'](_0x14e29e))){for(const {name:_0x4eeb85,data:_0x250be7}of _0x25730c)if(_0x14e29e['containsRange'](_0x250be7['newRange'])){_0x12fd3f['updateMarker'](_0x4eeb85,{'range':_0x14e29e}),_0x586c5d=!0x0;break;}}}return _0x586c5d;}),_0x4904d6['model']['document']['registerPostFixer'](_0x48cdb1=>{let _0x196d22=!0x1;const _0x3f7b21=_0x4904d6['plugins']['get']('Users')['me'],_0x162811=_0x7d4d57['getSuggestions']()['filter'](_0x3e7a33=>_0x3e7a33['isInContent']&&_0x3e7a33['author']==_0x3f7b21),_0xda59a5=new Set(),_0x58d486=new Set();for(const _0x7d4fd8 of _0x162811)if('tablePaste'==_0x7d4fd8['subType'])for(const _0x5e434f of _0x7d4fd8['getMarkers']()){const _0x4edfe6=_0x5e434f['getRange']()['getContainedElement']();if(_0x4edfe6){if(_0x4edfe6['is']('element','tableCellSuggestion')&&Pe(_0x4edfe6)){_0x7d4fd8['removeMarker'](_0x5e434f['name']),_0xda59a5['add'](_0x4edfe6),_0x196d22=!0x0;const _0x52a742=_0x4edfe6['nextSibling'],_0x50c5e5=_0x4edfe6['previousSibling'],_0x1f96d3=_0x52a742&&_0x52a742['is']('element','tableCellSuggestion'),_0x5a0d2c=_0x50c5e5&&_0x50c5e5['is']('element','tableCellSuggestion');_0x1f96d3&&!_0xda59a5['has'](_0x52a742)&&_0x58d486['add'](_0x52a742),_0x5a0d2c&&!_0xda59a5['has'](_0x50c5e5)&&_0x58d486['add'](_0x50c5e5);}else _0x4edfe6['is']('element','paragraph')&&_0x4edfe6['isEmpty']&&(_0x7d4fd8['removeMarker'](_0x5e434f['name']),_0x196d22=!0x0);}}else{if('tablePasteCell'==_0x7d4fd8['subType']){if(!_0x7d4fd8['attributes']||!_0x7d4fd8['attributes']['tablePasteChainId'])continue;const _0x4a3981=_0x7d4fd8['attributes']['markerAttributes'];if(_0x4a3981&&Object['keys'](_0x4a3981)['length'])continue;const _0x557a11=_0x7d4fd8['attributes']['tablePasteChainId'];let _0x21a204=!0x0,_0x2abb5e=!0x0;for(const _0x12ddac of _0x162811)if(_0x12ddac['subType']&&_0x12ddac['subType']['startsWith']('tablePaste')){if(!_0x12ddac['attributes']['tablePasteChainId']){_0x2abb5e=!0x1;break;}if(_0x12ddac['id']!=_0x7d4fd8['id']&&_0x12ddac['attributes']['tablePasteChainId']==_0x557a11){_0x21a204=!0x1;break;}}_0x2abb5e&&_0x21a204&&(_0x7d4fd8['removeMarkers'](),_0x196d22=!0x0);}}for(const _0x5e6c3d of _0xda59a5)_0x48cdb1['remove'](_0x5e6c3d);for(const _0x1fa37d of _0x58d486)_0x48cdb1['unwrap'](_0x1fa37d);return _0x196d22;}),_0x4904d6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x959acf,_0x253595)=>_0x53a8a8(_0x959acf),'converterPriority':'high'}),_0x4904d6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2e9dfe,_0x2e8183)=>_0x2e8183['options']['showSuggestionHighlights']?_0x53a8a8(_0x2e9dfe,!0x1):null,'converterPriority':'high'});const _0x589929=_0x4904d6['editing']['view'];this['listenTo'](_0x589929['document'],'clipboardOutput',(_0x5c27bb,_0x1edc26)=>{const _0x4c8085=[];for(const _0x50c967 of _0x589929['createRangeIn'](_0x1edc26['content'])['getItems']())_0x50c967['is']('element','suggestion-td')&&_0x4c8085['push'](_0x50c967);_0x589929['change'](_0x425e70=>{for(const _0x4b5280 of _0x4c8085)_0x425e70['move'](_0x425e70['createRangeIn'](_0x4b5280),_0x425e70['createPositionBefore'](_0x4b5280)),_0x425e70['remove'](_0x4b5280);});});}}function Pe(_0x464623){if(_0x464623['isEmpty'])return!0x0;const _0x372ecb=_0x464623['getChild'](0x0);return _0x372ecb['is']('element','paragraph')&&_0x372ecb['isEmpty'];}function he(_0x136557,_0x3df435={},_0x19bf45){for(const {isAnchor:_0x596c95,cellHeight:_0x209751,cellWidth:_0x473172}of _0x19bf45['createTableWalker'](_0x136557,{'includeAllSlots':!0x0,..._0x3df435}))if(!_0x596c95||0x1!=_0x209751||0x1!=_0x473172)return!0x1;return!0x0;}class vt extends _0x5511a1{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x456148=this['editor']['plugins']['get']('TrackChangesEditing');_0x456148['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x456148['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x456148['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x456148['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x456148['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x456148['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x443b1b,_0x1ec158){const _0x5aa612=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd2bb44=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x193a21=_0x1ec158['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x7fa22c=_0xd2bb44['getColumnGroupElement'](_0x193a21);let _0x3079d9=_0x7fa22c?_0xd2bb44['getTableColumnsWidths'](_0x7fa22c):null,_0x297704=_0x193a21['getAttribute']('tableWidth')||null;const _0x5bf563=_0x1ec158['tableWidth']||_0x297704,_0x51d65d=_0x1ec158['columnWidths']||_0x3079d9,_0x497463=this['editor']['plugins']['get']('Users')['me'];for(const _0x5c1574 of _0x5aa612['getSuggestions']()){const _0x28df05=_0x5c1574['getContainedElement']();if('resizeTable'===_0x5c1574['subType']&&_0x28df05===_0x193a21){_0x5c1574['author']!==_0x497463&&_0x5c1574['discard']();const _0x1e13fc=_0x5c1574['data']['commandParams'];_0x297704=_0x1e13fc[0x0]['tableWidth'],_0x3079d9=_0x1e13fc[0x0]['columnWidths'];break;}}_0x443b1b({'table':_0x193a21,'tableWidth':_0x5bf563,'columnWidths':_0x51d65d}),_0x5aa612['markBlockFormat'](_0x193a21,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x297704,'columnWidths':_0x3079d9}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2d5205){if('formatBlock'!=_0x2d5205['type']&&'formatInline'!=_0x2d5205['type'])return;const {data:_0x1db3ed}=_0x2d5205;if(_0x1db3ed&&'resizeTable'===_0x1db3ed['formatGroupId']){const _0x51198d='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x51198d)};}}}class _t extends _0x5511a1{['afterInit'](){const _0x2bee96=this['editor'];_0x2bee96['plugins']['has']('Template')&&_0x2bee96['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x5511a1{['afterInit'](){const _0xdf1d66=this['editor'];if(!_0xdf1d66['commands']['get']('insertTableOfContents'))return;_0xdf1d66['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5b11fd=_0xdf1d66['plugins']['get']('TrackChangesEditing'),_0x359158=_0xdf1d66['locale'];_0x5b11fd['descriptionFactory']['registerElementLabel']('tableOfContents',_0x138141=>o(_0x359158,'ELEMENT_TABLE_OF_CONTENTS',_0x138141));}}class Dt extends _0x5511a1{['afterInit'](){const _0x55edc8=this['editor'];if(!_0x55edc8['plugins']['has']('Title'))return;const _0x1d3fdf=_0x55edc8['plugins']['get']('TrackChangesEditing');_0x1d3fdf['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x55edc8['locale'],'ELEMENT_TITLE')),_0x55edc8['model']['document']['registerPostFixer'](_0x5bbfb6=>{let _0x1d74d6=!0x1;const _0x4aaabb=Array['from'](_0x55edc8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2a775e,data:_0x4fb5b7}of _0x4aaabb){const {group:_0x5acc52}=_0x1d3fdf['_splitMarkerName'](_0x2a775e);if('suggestion'!==_0x5acc52||!_0x4fb5b7['newRange'])continue;const _0x14c9a7=_0x4fb5b7['newRange'],_0x2db760=_0x14c9a7['end']['nodeBefore'];if(!_0x2db760||!_0x2db760['is']('element','title-content'))continue;if(!_0x14c9a7['start']['isTouching'](_0x14c9a7['end']))continue;const _0x436eb9=_0x55edc8['model']['schema']['getNearestSelectionRange'](_0x14c9a7['end'],'forward');if(_0x436eb9&&_0x436eb9['isCollapsed']){const _0x54383c=_0x5bbfb6['createRange'](_0x14c9a7['start'],_0x436eb9['start']);_0x54383c['isEqual'](_0x14c9a7)||(_0x5bbfb6['updateMarker'](_0x2a775e,{'range':_0x54383c}),_0x1d74d6=!0x0);}_0x1d74d6||(_0x5bbfb6['removeMarker'](_0x2a775e),_0x1d74d6=!0x0);}return _0x1d74d6;});}}class Nt extends _0x5511a1{['afterInit'](){const _0x4bfd66=this['editor'],_0x2c7acb=_0x4bfd66['plugins']['get']('TrackChangesEditing');_0x4bfd66['plugins']['has']('UndoEditing')&&(_0x2c7acb['enableCommand']('undo'),_0x2c7acb['enableCommand']('redo'));}}class Mt extends _0x5511a1{static get['requires'](){return[jt];}['afterInit'](){const _0x33e0f3=this['editor'];if(!_0x33e0f3['plugins']['has']('TableCaptionEditing'))return;_0x33e0f3['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x5511a1{static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x893514=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2847ee of this['tableProperties'])_0x893514['enableCommand'](_0x2847ee,(_0x642404,_0x22e5bb)=>{const _0x501ab3=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2847ee,[_0x501ab3],this['tableProperties'],'tableProperties',_0x642404,_0x22e5bb);});_0x893514['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x893514['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x893514['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5032a3,_0x45f0b8)=>this['handleDiscardAction'](this['tableProperties'],_0x5032a3,_0x45f0b8)),_0x893514['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4dacb0 of this['tableCellProperties'])_0x893514['enableCommand'](_0x4dacb0,(_0x22c262,_0x337958)=>{const _0x1897e0=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4dacb0,_0x1897e0,this['tableCellProperties'],'tableCellProperties',_0x22c262,_0x337958);});_0x893514['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x893514['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x893514['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2f9344,_0x23f3af)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2f9344,_0x23f3af)),_0x893514['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x893514['descriptionFactory']['registerDescriptionCallback'](_0x284e5e=>this['handleSuggestionDescription'](_0x284e5e));}['_handlePropertyChange'](_0xd48d71,_0x287eca,_0x1e69cb,_0x45e9b4,_0x2ce32d,_0x407f57){const _0x928421=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x407f57['batch'],()=>{for(const _0x19761c of _0x287eca){if(this['_getSuggestion'](_0x19761c,_0x45e9b4))_0x2ce32d(_0x407f57);else{const _0x1e60a9={};for(const _0x5c573d of _0x1e69cb){const _0x4265b0=_0x19761c['getAttribute'](_0x5c573d);void 0x0!==_0x4265b0&&(_0x1e60a9[_0x5c573d]=_0x4265b0);}_0x2ce32d(_0x407f57),_0x928421['markBlockFormat'](_0x19761c,{'commandParams':[_0x1e60a9]},[],_0x45e9b4);}}});}['handleDiscardAction'](_0x720bc6,_0x1e0dae,_0x2016ed){const _0x43981a=_0x1e0dae[0x0]['start']['nodeAfter'],_0x51f7b7=_0x2016ed['commandParams'][0x0];this['editor']['model']['change'](_0x2fd97d=>{for(const _0x35a12e of _0x720bc6)void 0x0!==_0x51f7b7[_0x35a12e]?_0x2fd97d['setAttribute'](_0x35a12e,_0x51f7b7[_0x35a12e],_0x43981a):_0x2fd97d['removeAttribute'](_0x35a12e,_0x43981a);});}['handleSuggestionDescription'](_0x2cf56d){if(_0x2cf56d['data'])switch(_0x2cf56d['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'](_0x4d1ede,_0xe98c74){const _0x1c8ab4=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2dd8ee of _0x1c8ab4['getSuggestions']({'skipNotAttached':!0x0})){const _0x22b70b=_0x2dd8ee['getContainedElement']();if(_0x2dd8ee['subType']===_0xe98c74&&_0x22b70b===_0x4d1ede)return _0x2dd8ee;}return null;}constructor(_0xc4c4b7){super(_0xc4c4b7),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 _0x5511a1{static get['requires'](){return['CommentsRepository',_0xd07c79,_0x1cf68b,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 _0x4e4a27=this['editor'],_0x2a182a=(_0x52247f,_0x327b1e)=>{if('attribute'!=_0x52247f)return'ck-suggestion-marker-'+_0x52247f;const _0x41a93a=_0x327b1e['split']('|')[0x0];return this['_isBlockAttribute'](_0x41a93a)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4e4a27['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1ebecf=>{const {id:_0x17bbab,type:_0x5f11a4,subType:_0x5f1bea}=this['_splitMarkerName'](_0x1ebecf['markerName']),_0x2d557f=['ck-suggestion-marker',_0x2a182a(_0x5f11a4,_0x5f1bea)];let _0x57e4d0=0xbb8;return this['activeMarkers']['includes'](_0x1ebecf['markerName'])&&(_0x2d557f['push']('ck-suggestion-marker--active'),_0x57e4d0=0xbc2),'deletion'==_0x5f11a4&&(_0x57e4d0+=0x5),{'classes':_0x2d557f,'attributes':{'data-suggestion':_0x17bbab},'priority':_0x57e4d0};}}),_0x4e4a27['conversion']['for']('dataDowncast')['add'](_0x10340d=>{_0x10340d['on']('addMarker:suggestion',(_0x11997a,_0xe70bfc,_0x27290d)=>{if(!_0x27290d['options']['showSuggestionHighlights'])return;const _0x2ee726=_0xe70bfc['item'];if(!_0x2ee726)return;const _0x4da709=_0x27290d['mapper']['toViewElement'](_0x2ee726);_0x4e4a27['model']['schema']['isObject'](_0x2ee726)&&_0x4da709&&!_0x4da709['getCustomProperty']('widget')&&_0x4da709['is']('containerElement')&&_0x16e8d3(_0x4da709,_0x27290d['writer']);},{'priority':'high'});}),_0x4e4a27['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1a5909,_0x236366)=>{if(!_0x236366['options']['showSuggestionHighlights'])return null;const {type:_0x383911,subType:_0x36cc34}=this['_splitMarkerName'](_0x1a5909['markerName']);return{'classes':['ck-suggestion-marker',_0x2a182a(_0x383911,_0x36cc34)],'priority':0xbb8};}});const _0x23ae1d=({showActiveMarkers:_0x18a9a5=!0x0,isAttributeSuggestion:_0x58d3b6=!0x1}={})=>(_0x2950a8,_0x2feafc,_0x11dcea)=>{if(!_0x2feafc['item'])return;const {id:_0x55856b}=this['_splitMarkerName'](_0x2feafc['markerName']);if(_0x58d3b6){const _0x518014=this['_suggestions']['get'](_0x55856b),_0xa2f604=this['_getAttributeKey'](_0x518014);if(!this['_isBlockAttribute'](_0xa2f604))return;}if(_0x2feafc['item']['is']('selection'))return void _0x11dcea['consumable']['consume'](_0x2feafc['item'],_0x2950a8['name']);const _0x4d0762=_0x11dcea['mapper']['toViewElement'](_0x2feafc['item']);if(_0x2feafc['item']['is']('element')&&_0x4e4a27['model']['schema']['isBlock'](_0x2feafc['item'])&&!_0x4d0762['getCustomProperty']('addHighlight')){_0x11dcea['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4d0762),_0x11dcea['writer']['setAttribute']('data-suggestion',_0x55856b,_0x4d0762),_0x11dcea['mapper']['bindElementToMarker'](_0x4d0762,_0x2feafc['markerName']),_0x18a9a5&&(this['activeMarkers']['includes'](_0x2feafc['markerName'])?_0x11dcea['writer']['addClass']('ck-suggestion-marker--active',_0x4d0762):_0x11dcea['writer']['removeClass']('ck-suggestion-marker--active',_0x4d0762));for(const _0x539b7f of _0x4e4a27['model']['createRangeIn'](_0x2feafc['item'])['getItems']())_0x11dcea['consumable']['consume'](_0x539b7f,_0x2950a8['name']);_0x11dcea['consumable']['consume'](_0x2feafc['item'],_0x2950a8['name']);}};_0x4e4a27['conversion']['for']('dataDowncast')['add'](_0x51b543=>{_0x51b543['on']('addMarker:suggestion:formatBlock',(_0xf5f4d2,_0x290e06,_0x12ff88)=>{_0x12ff88['options']['showSuggestionHighlights']&&_0x23ae1d({'showActiveMarkers':!0x1})(_0xf5f4d2,_0x290e06,_0x12ff88);},{'priority':'highest'});}),_0x4e4a27['conversion']['for']('dataDowncast')['add'](_0x303501=>{_0x303501['on']('addMarker:suggestion:attribute',(_0x27efef,_0x27bdde,_0x2ec46a)=>{_0x2ec46a['options']['showSuggestionHighlights']&&_0x23ae1d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x27efef,_0x27bdde,_0x2ec46a);},{'priority':'highest'});}),_0x4e4a27['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3fa008,_0x3b640d)=>_0x3b640d['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3fa008['substr'](0xb)}}),_0x4e4a27['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x32a601,{writer:_0x43efb7})=>{let _0x471f13='suggestion:'+_0x32a601['getAttribute']('suggestion-type')+':'+_0x32a601['getAttribute']('id');return _0x32a601['getAttribute']('marker-count')&&(_0x471f13+=':'+_0x32a601['getAttribute']('marker-count')),_0x43efb7['createElement']('$marker',{'data-name':_0x471f13});}}),_0x4e4a27['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4e4a27['conversion']['for']('editingDowncast')['add'](_0x8c87ae=>{_0x8c87ae['on']('addMarker:suggestion:formatBlock',_0x23ae1d(),{'priority':'high'});}),_0x4e4a27['conversion']['for']('editingDowncast')['add'](_0x28e5be=>{_0x28e5be['on']('addMarker:suggestion:attribute',_0x23ae1d({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4e4a27['conversion']['for']('editingDowncast')['add'](_0x5a16a2=>{_0x5a16a2['on']('removeMarker:suggestion:formatBlock',(_0x47b2d8,_0x59be2c,_0x514a95)=>{const _0x24d05a=_0x514a95['mapper']['markerNameToElements'](_0x59be2c['markerName']);if(_0x24d05a){for(const _0x345aec of _0x24d05a)_0x345aec['getCustomProperty']('addHighlight')||(_0x514a95['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x345aec),_0x514a95['writer']['removeAttribute']('data-suggestion',_0x345aec),_0x514a95['mapper']['unbindElementFromMarkerName'](_0x345aec,_0x59be2c['markerName']));}},{'priority':'high'});}),_0x4e4a27['conversion']['for']('editingDowncast')['add'](_0x4a8c96=>{_0x4a8c96['on']('removeMarker:suggestion:attribute',(_0x5a891f,_0x9a166,_0x1b3b85)=>{const _0x128416=_0x1b3b85['mapper']['markerNameToElements'](_0x9a166['markerName']);if(!_0x128416)return;const {id:_0x225691}=this['_splitMarkerName'](_0x9a166['markerName']),_0x20c88e=this['_suggestions']['get'](_0x225691),_0x3de158=this['_getAttributeKey'](_0x20c88e);if(this['_isBlockAttribute'](_0x3de158)){for(const _0xe10997 of _0x128416)_0xe10997['getCustomProperty']('addHighlight')||(_0x1b3b85['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xe10997),_0x1b3b85['writer']['removeAttribute']('data-suggestion',_0xe10997),_0x1b3b85['mapper']['unbindElementFromMarkerName'](_0xe10997,_0x9a166['markerName']));}},{'priority':'high'});}),_0x4e4a27['model']['document']['registerPostFixer'](_0x1c585b=>{let _0x2c931d=!0x1;const _0x3556a3=Array['from'](_0x4e4a27['model']['document']['differ']['getChangedMarkers']()),_0x2c756e=new Set();for(const {name:_0x359c9e,data:_0x289a17}of _0x3556a3){const {group:_0x4ba0d4,type:_0x5f49e8,subType:_0x3f0e36,id:_0x4032b3}=this['_splitMarkerName'](_0x359c9e);if('suggestion'!==_0x4ba0d4)continue;const _0x79a185=this['_suggestions']['get'](_0x4032b3);if(null!=_0x289a17['newRange']){'formatInline'==_0x5f49e8&&(_0x2c931d=_0x2c931d||Et(_0x289a17['newRange'],_0x359c9e,_0x1c585b,_0x4e4a27['model']['schema']));const _0xf542df='attribute'==_0x5f49e8&&this['_isBlockAttribute'](_0x3f0e36['split']('|')[0x0]);if(_0x289a17['newRange']['isCollapsed']||'$graveyard'==_0x289a17['newRange']['root']['rootName']||'formatBlock'==_0x5f49e8&&!Ut(_0x289a17['newRange'])||_0xf542df&&!Ut(_0x289a17['newRange'])||'deletion'==_0x5f49e8&&!(!Tt(_0x4f225a=_0x289a17['newRange'])&&!function(_0x38f7e6){return _0x38f7e6['start']['parent']==_0x38f7e6['end']['nodeBefore']&&_0x38f7e6['start']['isAtEnd'];}(_0x4f225a)))_0x1c585b['removeMarker'](_0x359c9e),_0x2c931d=!0x0;else{if(!_0x79a185||!_0x79a185['isInContent'])continue;_0x2c756e['add'](_0x79a185);}}}var _0x4f225a;return _0x2c756e['size']>0x0&&(_0x2c931d=!!this['_joinWithAdjacentSuggestions'](_0x2c756e)||_0x2c931d),_0x2c931d;}),_0x4e4a27['model']['document']['registerPostFixer'](_0xb7c64e=>{let _0x371e69=!0x1;for(const _0x2e152d of _0x4e4a27['model']['document']['differ']['getChanges']())if('insert'==_0x2e152d['type'])for(const _0x56591c of this['_suggestions']['values']()){if(_0x56591c['isMultiRange']||!_0x56591c['isInContent'])continue;const _0x196f09='formatBlock'==_0x56591c['type'],_0x1cc561=this['_getAttributeKey'](_0x56591c),_0x1bb870=_0x1cc561&&this['_isBlockAttribute'](_0x1cc561);if(!_0x196f09&&!_0x1bb870)continue;const _0x12bcf0=_0x56591c['getFirstRange']();if(_0x12bcf0['start']['parent']!=_0x12bcf0['end']['parent']&&!_0x12bcf0['end']['isAtEnd']){const _0x519195=_0x4e4a27['model']['createPositionAt'](_0x12bcf0['start']['nodeAfter'],'end'),_0x39812d=_0x4e4a27['model']['createRange'](_0x12bcf0['start'],_0x519195);_0xb7c64e['updateMarker'](_0x56591c['getFirstMarker'](),{'range':_0x39812d}),_0x371e69=!0x0;}}return _0x371e69;}),_0x4e4a27['model']['document']['registerPostFixer'](_0x4737fd=>this['_processAttributeChanges'](_0x4737fd)),_0x4e4a27['model']['document']['registerPostFixer'](_0x12779a=>!_0x12779a['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x12779a)),_0x4e4a27['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4e4a27['model']['document']['on']('change:data',(_0x2377a3,_0x17929b)=>{if(!_0x17929b['isLocal']||_0x17929b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4a9522=_0x4e4a27['model']['document']['differ']['getChanges']();if(0x0==_0x4a9522['length'])return;const _0x29725e=[],_0x7d6684=_0x4a9522['filter'](_0x100077=>'attribute'==_0x100077['type']),_0x546af2=_0x4a9522['filter'](_0x576157=>'insert'==_0x576157['type']&&'$text'!=_0x576157['name']),_0x229297=_0x4a9522['filter'](_0x31d70f=>'remove'==_0x31d70f['type']&&'$text'!=_0x31d70f['name']);for(const _0x5169e1 of _0x7d6684)this['_isRegisteredAttribute'](_0x5169e1['attributeKey'])&&_0x29725e['push']({'key':_0x5169e1['attributeKey'],'newValue':_0x5169e1['attributeNewValue'],'oldValue':_0x5169e1['attributeOldValue'],'range':Ot(_0x5169e1['range'],_0x4e4a27['model'])});for(const _0x20952f of _0x546af2){const _0x40bb5c=_0x229297['find'](_0x46af23=>_0x46af23['_element']===_0x20952f['_element']);if(_0x40bb5c){const _0x4adf65=Ft(_0x20952f['position']['nodeAfter'],_0x4e4a27['model']);_0x40bb5c['name']!==_0x20952f['name']&&_0x29725e['push']({'key':m,'newValue':_0x20952f['name'],'oldValue':_0x40bb5c['name'],'range':_0x4adf65});for(const [_0x314208,_0x4005e7]of _0x40bb5c['attributes']){if(!this['_isRegisteredAttribute'](_0x314208))continue;const _0x1b607f=_0x20952f['attributes']['get'](_0x314208);_0x4005e7!==_0x1b607f&&_0x29725e['push']({'key':_0x314208,'newValue':_0x1b607f,'oldValue':_0x4005e7,'range':_0x4adf65});}for(const [_0xabd6f0,_0x159d6f]of _0x20952f['attributes'])this['_isRegisteredAttribute'](_0xabd6f0)&&(_0x40bb5c['attributes']['has'](_0xabd6f0)||_0x29725e['push']({'key':_0xabd6f0,'newValue':_0x159d6f,'oldValue':null,'range':_0x4adf65}));}}0x0!=_0x29725e['length']&&_0x4e4a27['model']['enqueueChange'](_0x17929b,_0x76754d=>{const _0x4b8e5e=_0x4c61b3();for(const {range:_0x3deae4,key:_0x29b45c,oldValue:_0x21024a,newValue:_0x1ab1c2}of _0x29725e)this['markAttributeChange'](_0x3deae4,_0x29b45c,_0x21024a,_0x1ab1c2,{'groupId':_0x4b8e5e});this['_reduceExistingSuggestions'](_0x76754d,_0x29725e);});},{'priority':'lowest'}),_0x4e4a27['model']['markers']['on']('update:suggestion',(_0x365201,_0x5db660,_0x5d56ae)=>{if(null==_0x5d56ae){const {id:_0x1b4c48}=this['_splitMarkerName'](_0x5db660['name']),_0x48d6f6=this['_suggestions']['get'](_0x1b4c48);_0x48d6f6&&_0x48d6f6['addMarkerName'](_0x5db660['name']);}}),_0x4e4a27['model']['document']['on']('change:data',()=>{const _0x23f22a=Array['from'](_0x4e4a27['model']['document']['differ']['getChangedMarkers']())['filter'](_0x46bc76=>'suggestion'===this['_splitMarkerName'](_0x46bc76['name'])['group']);if(0x0===_0x23f22a['length'])return;_0x23f22a['sort']((_0x22257e,_0x413518)=>{const _0x9809d4=_0x22257e['data']['oldRange'],_0x524f59=_0x413518['data']['oldRange'];return null===_0x9809d4&&null===_0x524f59?0x0:null===_0x9809d4&&null!==_0x524f59?-0x1:null!==_0x9809d4&&null===_0x524f59?0x1:_0x9809d4['start']['isBefore'](_0x524f59['start'])?-0x1:0x1;});const _0x4dc9cd=new Set(),_0x5b10ac=new Set();for(const {name:_0x2ed4cb,data:_0x737b00}of _0x23f22a){const {id:_0x1449b1}=this['_splitMarkerName'](_0x2ed4cb);if(null===_0x737b00['oldRange']){const _0x53a633=this['_handleNewSuggestionMarker'](_0x2ed4cb);_0x5b10ac['add'](_0x53a633);}else{const _0x28d466=this['_suggestions']['get'](_0x1449b1);null!==_0x737b00['newRange']||_0x28d466['isInContent']?(_0x4dc9cd['add'](_0x28d466['head']),_0x5b10ac['add'](_0x28d466)):this['_removeSuggestion'](_0x28d466);}}_0x5b10ac['size']>0x0&&this['_refreshSuggestionsChain'](_0x5b10ac);for(const _0x113b0b of _0x4dc9cd)this['fire']('suggestionChanged',_0x113b0b);}),_0x4e4a27['model']['on']('applyOperation',(_0xa7a0e7,_0x1ad1a2)=>{const _0xb1497a=_0x1ad1a2[0x0];if(!this['_suggestions']['size'])return;if(!_0xb1497a['isDocumentOperation'])return;if(_0xb1497a['batch']['isUndo']||!_0xb1497a['batch']['isLocal'])return;let _0x38ae61,_0x4051b3;switch(_0xb1497a['type']){case'insert':_0x38ae61=_0x4e4a27['model']['createPositionAt'](_0xb1497a['position']),_0x4051b3=_0x38ae61['getShiftedBy'](_0xb1497a['howMany']);break;case'split':_0x38ae61=_0x4e4a27['model']['createPositionAt'](_0xb1497a['splitPosition']),_0x4051b3=_0x4e4a27['model']['createPositionAt'](_0xb1497a['moveTargetPosition']);break;case'move':_0x38ae61=_0x4e4a27['model']['createPositionAt'](_0xb1497a['targetPosition']),_0x4051b3=_0x38ae61['getShiftedBy'](_0xb1497a['howMany']);break;default:return;}const _0x43b228=_0x4e4a27['model']['createRange'](_0x38ae61,_0x4051b3);_0x4e4a27['model']['change'](()=>{for(const {suggestion:_0xff9da5,meta:_0x11f453}of this['_findSuggestions'](_0x43b228)){if(_0xff9da5['isMultiRange'])continue;if('formatInline'==_0xff9da5['type'])continue;const _0x22921b=this['_getAttributeKey'](_0xff9da5);if(_0x22921b&&this['_isBlockAttribute'](_0x22921b)&&'split'!=_0xb1497a['type'])continue;const _0x5c748d=_0xff9da5['data']&&_0xff9da5['data']['multipleBlocks'];('formatBlock'!=_0xff9da5['type']||'split'==_0xb1497a['type']&&!_0x5c748d)&&(_0x11f453['containsRangeInObject']||'insertion'==_0xff9da5['type']&&_0x11f453['isOwn']||_0xff9da5['getFirstRange']()['containsRange'](_0x43b228)&&this['_breakSuggestionMarker'](_0xff9da5,_0x38ae61,_0x4051b3));}});},{'priority':'lowest'}),_0x4e4a27['model']['on']('deleteContent',(_0x26e115,_0x5c4194)=>{const _0x5eb3c1=_0x5c4194[0x0],_0x175559=_0x5c4194[0x1];if(_0x175559&&_0x175559['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5eb3c1['isCollapsed'])return;const _0x19f85b=_0x4e4a27['model']['schema'],{start:_0x34ee64,end:_0x7bb222}=_0x5eb3c1['getFirstRange'](),_0x75b9cd=_0x34ee64['nodeAfter']&&_0x19f85b['isLimit'](_0x34ee64['nodeAfter'])?null:_0x19f85b['getNearestSelectionRange'](_0x34ee64,'forward'),_0x21f2c2=_0x7bb222['nodeBefore']&&_0x19f85b['isLimit'](_0x7bb222['nodeBefore'])?null:_0x19f85b['getNearestSelectionRange'](_0x7bb222,'backward'),_0x5b8b99=_0x4e4a27['model']['createRange'](_0x75b9cd?_0x75b9cd['start']:_0x34ee64,_0x21f2c2?_0x21f2c2['end']:_0x7bb222);_0x4e4a27['model']['change'](_0x4322e1=>{this['markDeletion'](_0x5b8b99);const _0x217945=_0x4e4a27['model']['schema']['getNearestSelectionRange'](_0x5b8b99['start']);_0x5eb3c1['is']('documentSelection')?_0x4322e1['setSelection'](_0x217945):_0x5eb3c1['setTo'](_0x217945);}),_0x26e115['stop']();},{'priority':_0x4b8876['normal']+0xa}),_0x4e4a27['model']['on']('insertContent',(_0x1f56ef,_0x3bb1c5)=>{const _0x436208=_0x3bb1c5[_0x3bb1c5['length']-0x1];_0x436208&&_0x436208['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4e4a27['model']['change'](()=>{let _0x279b6d=_0x4e4a27['model']['insertContent'](_0x3bb1c5[0x0],_0x3bb1c5[0x1],_0x3bb1c5[0x2],{'forceDefaultExecution':!0x0});if(!_0x279b6d)return;_0x1f56ef['return']=_0x279b6d['clone']();const _0x3a9fb3=_0x279b6d['end']['nodeBefore'],_0x34e426=_0x4e4a27['model']['schema'];_0x3a9fb3&&_0x34e426['isBlock'](_0x3a9fb3)&&!_0x34e426['isObject'](_0x3a9fb3)&&(_0x279b6d=_0x4e4a27['model']['createRange'](_0x279b6d['start'],_0x4e4a27['model']['createPositionAt'](_0x3a9fb3,'end'))),this['markInsertion'](_0x279b6d);}),_0x1f56ef['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xdccfc0=new $(_0x4e4a27,this['_suggestions']);_0x4e4a27['commands']['add']('acceptSuggestion',_0xdccfc0),this['enableCommand']('acceptSuggestion');const _0xb48b5c=new B(_0x4e4a27,this['_suggestions']);_0x4e4a27['commands']['add']('discardSuggestion',_0xb48b5c),this['enableCommand']('discardSuggestion'),_0x4e4a27['commands']['add']('acceptAllSuggestions',new x(_0x4e4a27,_0xdccfc0,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4e4a27['commands']['add']('discardAllSuggestions',new x(_0x4e4a27,_0xb48b5c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4e4a27['commands']['add']('acceptSelectedSuggestions',new R(_0x4e4a27,_0xdccfc0,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4e4a27['commands']['add']('discardSelectedSuggestions',new R(_0x4e4a27,_0xb48b5c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4843af=_0x4e4a27['plugins']['get']('CommentsRepository');this['listenTo'](_0x4843af,'addComment',(_0x3c626d,{threadId:_0x22de98})=>{const _0x15bc8d=this['_suggestions']['get'](_0x22de98);_0x15bc8d&&_0x15bc8d['commentThread']&&0x1===_0x15bc8d['commentThread']['length']&&this['_updateSuggestionData'](_0x22de98,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4843af,'removeComment',(_0x3b0e84,{threadId:_0x3b6491})=>{const _0x16503f=this['_suggestions']['get'](_0x3b6491);_0x16503f&&_0x16503f['commentThread']&&!_0x16503f['commentThread']['length']&&this['_updateSuggestionData'](_0x3b6491,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x3ef95f){if(this['_adapter'])throw new _0x5a2cc3('track-changes-adapter-already-set',this);this['_adapter']=_0x3ef95f;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3fd386=!0x1,toJSON:_0x13ed6e=!0x1}={}){const _0x1fa7ff=[];for(const _0x3725fb of this['_suggestions']['values']())_0x3fd386&&!_0x3725fb['isInContent']||_0x1fa7ff['push'](_0x3725fb);return _0x13ed6e?_0x1fa7ff['map'](_0xc26895=>_0xc26895['toJSON']()):_0x1fa7ff;}['getSuggestion'](_0x142817){const _0x4b1010=this['_suggestions']['get'](_0x142817);if(!_0x4b1010)throw new _0x5a2cc3('track-changes-suggestion-not-found',this);return _0x4b1010;}['hasSuggestion'](_0x4a5b02){return this['_suggestions']['has'](_0x4a5b02);}['addSuggestionData'](_0x55915f){const {authorId:_0x2f7365,id:_0x53f78c,attributes:_0x2c9d84}=_0x55915f,[_0x4ff266,_0x143adb]=_0x55915f['type']['split'](':'),_0x3cb923=this['_suggestions']['get'](_0x53f78c)||this['_createSuggestion'](_0x4ff266,_0x143adb,_0x53f78c,_0x2f7365,_0x2c9d84);if(this['_addThreadToSuggestion'](_0x3cb923),this['_checkSuggestionCorrectness'](_0x3cb923,_0x4ff266,_0x143adb||null,_0x2f7365),_0x3cb923['createdAt']=_0x55915f['createdAt'],_0x3cb923['_isDataLoaded']=!0x0,_0x2c9d84&&_0x2c9d84['@external']){const _0x2e2f20=_0x2c9d84['@external'],_0x1bfeed=this['_getExternalAuthor'](_0x2e2f20['authorName']);_0x3cb923['authoredAt']=_0x2e2f20['createdAt'],_0x3cb923['author']=_0x1bfeed,_0x3cb923['isExternal']=!0x0;}else _0x3cb923['authoredAt']=_0x55915f['createdAt'];switch(_0x55915f['data']&&(_0x3cb923['data']=_0x55915f['data']),_0x55915f['attributes']&&(_0x3cb923['attributes']=_0x55915f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3cb923['_saved']=!0x0),this['_suggestionState']['get'](_0x3cb923)){case'notReady':this['_suggestionState']['set'](_0x3cb923,'dataReady');break;case'markerReady':_0x3cb923['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3cb923])),this['_refreshSuggestionsChain'](new Set([_0x3cb923])),this['_suggestionState']['set'](_0x3cb923,'ready'),this['fire']('suggestionLoaded',_0x3cb923)):this['_suggestionState']['set'](_0x3cb923,'removed');}return _0x3cb923;}['acceptSuggestion'](_0x4b4e9e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x45ff39 of _0x4b4e9e['getAllAdjacentSuggestions']())_0x45ff39['accept']();});});}['discardSuggestion'](_0x4ed5d6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xccda22 of _0x4ed5d6['getAllAdjacentSuggestions']())_0xccda22['discard']();});});}['enableCommand'](_0x5e80f5,_0x32cbe6){const _0xb5b164=this['editor']['commands']['get'](_0x5e80f5);if(!_0xb5b164)throw new _0x5a2cc3('track-changes-command-not-found',this,{'commandName':_0x5e80f5});if(this['_enabledCommands']['has'](_0xb5b164))throw new _0x5a2cc3('track-changes-enable-command-twice',this,{'commandName':_0x5e80f5});this['_enabledCommands']['add'](_0xb5b164),_0x32cbe6&&_0xb5b164['on']('execute',(_0x4abbe6,_0x5b544f)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5b544f['length']>0x0&&_0x5b544f[_0x5b544f['length']-0x1]&&_0x5b544f[_0x5b544f['length']-0x1]['forceDefaultExecution']?_0x5b544f['pop']():(_0x4abbe6['return']=_0x32cbe6((..._0x246ad9)=>_0xb5b164['execute'](..._0x246ad9,{'forceDefaultExecution':!0x0}),..._0x5b544f),_0x4abbe6['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x411e86){let _0x407d62,_0x5dc6b4;const _0x379b9f=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x407d62=_0x411e86();}catch(_0x1b22d0){_0x5dc6b4=_0x1b22d0;}return _0x379b9f||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5dc6b4&&_0x5a2cc3['rethrowUnexpectedError'](_0x5dc6b4,this),_0x407d62;}['markInsertion'](_0x4afaae,_0x5035dd=null,_0x371aad={}){if(_0x4afaae['isCollapsed'])return null;const _0x19b949=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x27fa82,meta:_0x343c17}of this['_findSuggestions'](_0x4afaae,'insertion'))if(_0x343c17['isOwn']){if(!_0x343c17['isNextTo']){if(_0x343c17['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x27fa82,_0x371aad))continue;return _0x27fa82;}if(Lt(_0x27fa82,_0x371aad))return _0x27fa82;this['_breakSuggestionMarker'](_0x27fa82,_0x4afaae['start'],_0x4afaae['end']);break;}if(_0x5035dd==_0x27fa82['subType']&&Lt(_0x27fa82,_0x371aad)){const _0x29ed42=_0x27fa82['getFirstRange']();return _0x29ed42['start']['isEqual'](_0x4afaae['end'])?this['_setSuggestionRange'](_0x27fa82,this['_model']['createRange'](_0x4afaae['start'],_0x29ed42['end'])):this['_setSuggestionRange'](_0x27fa82,this['_model']['createRange'](_0x29ed42['start'],_0x4afaae['end'])),_0x27fa82;}}const _0x5c3efb=_0x4c61b3(),_0x4a9f14=_0x19b949['id'],_0xf4cb42=_0x5035dd?'insertion:'+_0x5035dd:'insertion',_0x6abee1=this['_setSuggestionData']({'id':_0x5c3efb,'type':_0xf4cb42,'createdAt':new Date(),'authorId':_0x4a9f14,'attributes':_0x371aad});return this['_addSuggestionMarker'](_0xf4cb42,_0x5c3efb,_0x4a9f14,_0x4afaae),_0x6abee1;}['markMultiRangeInsertion'](_0x35bcfa,_0xfc962c='multi',_0x38110d={}){const _0x170c55=this['editor']['plugins']['get']('Users')['me'],_0x3ccfe9=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xfc962c,'join');for(const _0x33d5af of this['getSuggestions']())if(_0x33d5af['author']['id']==_0x170c55['id']&&'insertion'==_0x33d5af['type']&&_0x33d5af['subType']==_0xfc962c&&Lt(_0x33d5af,_0x38110d)&&(_0x3ccfe9(_0x33d5af['getRanges'](),_0x35bcfa)||_0x3ccfe9(_0x35bcfa,_0x33d5af['getRanges']()))){for(const _0x567be1 of _0x35bcfa)_0x33d5af['addRange'](_0x567be1);return _0x33d5af;}for(const {suggestion:_0x32e5ef,meta:_0xe878fb}of this['_findSuggestions'](_0x35bcfa,'insertion')){if(!_0xe878fb['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xe878fb['containsRangeInObject'])continue;if(!Lt(_0x32e5ef,_0x38110d))continue;let _0x3934b3=!0x0;for(const _0x1f87ed of _0x32e5ef['getRanges']())for(const _0x191554 of _0x35bcfa)if(!_0x1f87ed['containsRange'](_0x191554)){_0x3934b3=!0x1;break;}if(_0x3934b3)return _0x32e5ef;}const _0x44706b=_0x4c61b3(),_0x43ee8f=_0x170c55['id'],_0x569137='insertion:'+_0xfc962c,_0x32f2f9=this['_setSuggestionData']({'id':_0x44706b,'type':_0x569137,'createdAt':new Date(),'authorId':_0x43ee8f,'attributes':_0x38110d});for(const _0x319012 of _0x35bcfa)this['_addSuggestionMarker'](_0x569137,_0x44706b,_0x43ee8f,_0x319012,u['getMultiRangeId']());return _0x32f2f9;}['markInlineFormat'](_0x41f9c2,_0x999cec,_0x50045c=null,_0x9566ca={}){if(_0x50045c=_0x50045c||Vt(_0x999cec),_0x41f9c2['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5e50e6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x50045c,'accept');return this['forceDefaultExecution'](()=>_0x5e50e6([_0x41f9c2],_0x999cec,_0x9566ca)),null;}const _0x22b962=this['editor']['plugins']['get']('Users')['me'],_0x86629e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x40b632,meta:_0x16fc64}of this['_findSuggestions'](_0x41f9c2,'insertion'))_0x16fc64['isOwn']&&!_0x16fc64['isInsideObject']&&_0x86629e['push'](..._0x40b632['getRanges']());}const _0x28a45f=function(_0x530b13,_0x58c2da){const _0x51c4de=[];for(const _0x3c815d of _0x58c2da){const _0x3a1413=_0x530b13['getIntersection'](_0x3c815d);_0x3a1413&&_0x51c4de['push'](_0x3a1413);}return _0x51c4de;}(_0x41f9c2,_0x86629e),_0x1adce7=function(_0x2939b2,_0x326f6d){const _0x20d722=[_0x2939b2];for(const _0x488cfe of _0x326f6d){let _0x5f3165=0x0;for(;_0x5f3165<_0x20d722['length'];){const _0x268761=_0x20d722[_0x5f3165]['getDifference'](_0x488cfe);_0x20d722['splice'](_0x5f3165,0x1,..._0x268761),_0x5f3165+=_0x268761['length'];}}return _0x20d722;}(_0x41f9c2,_0x86629e);_0x28a45f['length']&&this['_model']['change'](()=>{for(const _0x329e6c of _0x28a45f){const _0x57b6d7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x50045c,'accept');this['forceDefaultExecution'](()=>_0x57b6d7([_0x329e6c],_0x999cec,_0x9566ca));}});for(const _0x184448 of _0x1adce7){let _0x358505=null,_0x2aef44=_0x184448['start'],_0x4fe0f6=_0x184448['end'];for(const {suggestion:_0x203530,meta:_0x3cb417}of this['_findSuggestions'](_0x184448,'formatInline')){if(!_0x3cb417['isOwn'])continue;if(_0x203530['subType']!=_0x50045c)continue;if(!Lt(_0x203530,_0x9566ca))continue;const _0xca57ac=_0x203530['getFirstRange']();if(_0xca57ac['containsRange'](_0x184448,!0x0))return null;_0x2aef44=_0x2aef44['isBefore'](_0xca57ac['start'])?_0x2aef44:_0xca57ac['start'],_0x4fe0f6=_0x4fe0f6['isAfter'](_0xca57ac['end'])?_0x4fe0f6:_0xca57ac['end'],_0x358505?_0xca57ac['start']['isBefore'](_0x358505['getFirstRange']()['start'])?(_0x358505['removeMarkers'](),_0x358505=_0x203530):_0x203530['removeMarkers']():_0x358505=_0x203530;}const _0x12b59b=this['_model']['createRange'](_0x2aef44,_0x4fe0f6);if(_0x358505)this['_setSuggestionRange'](_0x358505,_0x12b59b);else{const _0x512e96=_0x4c61b3(),_0xc2f54f=_0x22b962['id'];this['_setSuggestionData']({'id':_0x512e96,'type':'formatInline:'+_0x50045c,'data':_0x999cec,'createdAt':new Date(),'authorId':_0xc2f54f,'attributes':_0x9566ca}),this['_addSuggestionMarker']('formatInline:'+_0x50045c,_0x512e96,_0xc2f54f,_0x12b59b);}}return null;}['markBlockFormat'](_0x4f2f59,_0x2a951a,_0x4ef304=[],_0x579208=null,_0x5dc6d3={}){_0x2a951a['formatGroupId']||(_0x2a951a['formatGroupId']=_0x2a951a['commandName']),_0x2a951a['multipleBlocks']=_0x4f2f59['is']('range'),_0x579208=_0x579208||Vt(_0x2a951a);const _0x505690=_0x4ef304['map'](_0x278927=>Ft(_0x278927,this['_model'])),_0x2a7cc6=_0x4f2f59['is']('range')?_0x4f2f59:Ft(_0x4f2f59,this['_model']);if('never'===this['_trackFormatChanges']){const _0x1c05d4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x579208,'accept');return this['forceDefaultExecution'](()=>_0x1c05d4([_0x2a7cc6],_0x2a951a,_0x5dc6d3)),null;}_0x505690['push'](_0x2a7cc6);let _0x2e6d2f=!0x0;for(const _0x36c1a5 of _0x505690)if(!this['_rangeIsInLocalUserInsertion'](_0x36c1a5)){_0x2e6d2f=!0x1;break;}if(_0x2e6d2f&&'always'!==this['_trackFormatChanges']){const _0xef9194=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x579208,'accept');return this['forceDefaultExecution'](()=>_0xef9194([_0x2a7cc6],_0x2a951a,_0x5dc6d3)),null;}let _0x1936ac=null,_0x5c10f0=_0x2a7cc6['start'],_0x338ae3=_0x2a7cc6['end'];for(const {suggestion:_0x4492ac,meta:_0x3e4f88}of this['_findSuggestions'](_0x2a7cc6,'formatBlock')){if(!_0x3e4f88['isOwn'])continue;if(_0x3e4f88['isNextTo']||_0x3e4f88['containsRangeInObject']||_0x3e4f88['isInsideObject'])continue;if(_0x4492ac['data']['formatGroupId']!=_0x2a951a['formatGroupId'])continue;if(!Lt(_0x4492ac,_0x5dc6d3))continue;const _0x4c2b75=_0x4492ac['getFirstRange']();if(_0x4492ac['subType']==_0x579208){if(_0x4c2b75['containsRange'](_0x2a7cc6,!0x0))return null;_0x5c10f0=_0x5c10f0['isBefore'](_0x4c2b75['start'])?_0x5c10f0:_0x4c2b75['start'],_0x338ae3=_0x338ae3['isAfter'](_0x4c2b75['end'])?_0x338ae3:_0x4c2b75['end'],_0x1936ac?_0x4c2b75['start']['isBefore'](_0x1936ac['getFirstRange']()['start'])?(_0x1936ac['removeMarkers'](),_0x1936ac=_0x4492ac):_0x4492ac['removeMarkers']():_0x1936ac=_0x4492ac;}else{const _0xf2e37c=_0x2a7cc6['getIntersection'](_0x4c2b75);this['_cutOutSuggestionMarker'](_0x4492ac,_0xf2e37c);}}const _0x206dc7=this['editor']['plugins']['get']('Users')['me'],_0x3c2ec6=_0x4c61b3(),_0xccc48c=_0x206dc7['id'];if(_0x1936ac)return this['_setSuggestionRange'](_0x1936ac,this['_model']['createRange'](_0x5c10f0,_0x338ae3)),_0x1936ac;{const _0x2092b9=this['_setSuggestionData']({'id':_0x3c2ec6,'type':'formatBlock:'+_0x579208,'data':_0x2a951a,'createdAt':new Date(),'authorId':_0xccc48c,'attributes':_0x5dc6d3});return this['_addSuggestionMarker']('formatBlock:'+_0x579208,_0x3c2ec6,_0xccc48c,this['_model']['createRange'](_0x5c10f0,_0x338ae3)),_0x2092b9;}}['markMultiRangeBlockFormat'](_0x1a718a,_0x5322c8,_0x4bc7bd=[],_0x5db26c=null,_0x59ff92={}){_0x5322c8['formatGroupId']||(_0x5322c8['formatGroupId']=_0x5322c8['commandName']);const _0x1ba0be=_0x1a718a[0x0];_0x5322c8['multipleBlocks']=_0x1ba0be['is']('range'),_0x5db26c=_0x5db26c||Vt(_0x5322c8);const _0x507de0=_0x4bc7bd['map'](_0x31dbab=>Ft(_0x31dbab,this['_model'])),_0x465077=_0x1ba0be['is']('range')?_0x1a718a:_0x1a718a['map'](_0x51cfc5=>Ft(_0x51cfc5,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3f720b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5db26c,'accept');return this['forceDefaultExecution'](()=>_0x3f720b(_0x465077,_0x5322c8,_0x59ff92)),null;}_0x507de0['push'](..._0x465077);let _0xefef2=!0x0;for(const _0x33663b of _0x507de0)if(!this['_rangeIsInLocalUserInsertion'](_0x33663b)){_0xefef2=!0x1;break;}if(_0xefef2&&'always'!==this['_trackFormatChanges']){const _0x518786=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5db26c,'accept');return this['forceDefaultExecution'](()=>_0x518786(_0x465077,_0x5322c8,_0x59ff92)),null;}const _0x83aad1=this['editor']['plugins']['get']('Users')['me'];for(const _0x20d0dd of this['getSuggestions']()){if(_0x20d0dd['author']['id']!=_0x83aad1['id'])continue;if('formatBlock'!=_0x20d0dd['type']||_0x20d0dd['data']['formatGroupId']!=_0x5322c8['formatGroupId'])continue;if(!Lt(_0x20d0dd,_0x59ff92))continue;const _0x3ed49a=_0x20d0dd['subType']==_0x5db26c;for(let _0xfb5073=0x0;_0xfb5073<_0x465077['length'];_0xfb5073++){const _0x1ee534=_0x465077[_0xfb5073];for(const _0x1cab0e of _0x20d0dd['getMarkers']()){const _0x1a5659=_0x1cab0e['getRange']();if(_0x1ee534['isEqual'](_0x1a5659)){_0x3ed49a?(_0x465077['splice'](_0xfb5073,0x1),_0xfb5073--):_0x20d0dd['removeMarker'](_0x1cab0e['name']);break;}}}}if(0x0==_0x465077['length'])return null;const _0x17dc27=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5db26c,'join');for(const _0xe98ef of this['getSuggestions']())if(_0xe98ef['author']['id']==_0x83aad1['id']&&'formatBlock'==_0xe98ef['type']&&_0xe98ef['data']['formatGroupId']==_0x5322c8['formatGroupId']&&_0xe98ef['subType']==_0x5db26c&&Lt(_0xe98ef,_0x59ff92)&&(_0x17dc27(_0xe98ef['getRanges'](),_0x465077)||_0x17dc27(_0x465077,_0xe98ef['getRanges']()))){for(const _0x416a9c of _0x465077)_0xe98ef['addRange'](_0x416a9c);return _0xe98ef;}const _0x1180a6=_0x4c61b3(),_0x4a2aac=_0x83aad1['id'],_0x15f6bc='formatBlock:'+_0x5db26c,_0x180f82=this['_setSuggestionData']({'id':_0x1180a6,'type':_0x15f6bc,'data':_0x5322c8,'createdAt':new Date(),'authorId':_0x4a2aac,'attributes':_0x59ff92});for(const _0x3bfe2c of _0x465077)this['_addSuggestionMarker'](_0x15f6bc,_0x1180a6,_0x4a2aac,_0x3bfe2c,u['getMultiRangeId']());return _0x180f82;}['markDeletion'](_0x13ccbc,_0x25b4d4=null,_0x1660d6={}){if(_0x13ccbc['isCollapsed'])return null;const _0x23d9f5=this['editor']['plugins']['get']('Users')['me'],_0x71ceb3=new _0x2f3de9(_0x13ccbc['start'],_0x13ccbc['end']);for(const {suggestion:_0x3ff4ba,meta:_0x1f494f}of this['_findSuggestions'](_0x71ceb3,'insertion'))if(_0x1f494f['isOwn']&&!_0x1f494f['isNextTo']){if(_0x3ff4ba['isMultiRange']){const _0x19356b=_0x3ff4ba['getRanges']()['filter'](_0x14652c=>'$graveyard'!=_0x14652c['root']['rootName']);_0x19356b['every'](_0x285b21=>_0x71ceb3['containsRange'](_0x285b21,!0x0))&&_0x3ff4ba['discard']();if(_0x19356b['some'](_0x14a055=>_0x14a055['containsRange'](_0x71ceb3,!0x0))){const _0x54e9b2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25b4d4,'accept');return this['forceDefaultExecution'](()=>_0x54e9b2([_0x71ceb3],null,_0x1660d6)),null;}}else{const _0x393f65=_0x71ceb3['getIntersection'](_0x3ff4ba['getFirstRange']());null!==_0x393f65&&_0x3ff4ba['_onDiscard']([_0x393f65],null,_0x1660d6);}}if(_0x71ceb3['detach'](),_0x71ceb3['isCollapsed']||'$graveyard'==_0x71ceb3['root']['rootName'])return null;let _0xf88fbf=null,_0x4e0b8b=_0x71ceb3['start'],_0x32cc6b=_0x71ceb3['end'];const _0x503c47=this['_findSuggestions'](_0x71ceb3,'deletion');for(const {suggestion:_0x1f7a85,meta:_0x3792ad}of _0x503c47){const _0xd01e46=this['_model']['createRange'](_0x4e0b8b,_0x32cc6b);if(_0x3792ad['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3792ad['containsRangeInObject']&&!_0x3792ad['isInsideObject'])){if(_0x1f7a85['isMultiRange']){if(!Lt(_0x1f7a85,_0x1660d6))continue;let _0x19cb86=!0x0;for(const _0x191400 of _0x1f7a85['getRanges']()){if(_0x191400['containsRange'](_0xd01e46,!0x0))return _0x1f7a85;_0xd01e46['containsRange'](_0x191400)||(_0x19cb86=!0x1);}_0x19cb86&&_0x1f7a85['discard']();}else{const _0x2764d9=_0x1f7a85['getFirstRange']();if(_0x2764d9['containsRange'](_0xd01e46,!0x0))return _0x1f7a85;if(!Lt(_0x1f7a85,_0x1660d6)){_0xd01e46['containsRange'](_0x2764d9)?_0x1f7a85['removeMarkers']():_0x2764d9['containsPosition'](_0x4e0b8b)?_0x4e0b8b=_0x2764d9['end']:_0x2764d9['containsPosition'](_0x32cc6b)&&(_0x32cc6b=_0x2764d9['start']);continue;}_0x4e0b8b=_0x4e0b8b['isBefore'](_0x2764d9['start'])?_0x4e0b8b:_0x2764d9['start'],_0x32cc6b=_0x32cc6b['isAfter'](_0x2764d9['end'])?_0x32cc6b:_0x2764d9['end'],_0x1660d6=Object['assign']({},_0x1f7a85['attributes']),_0xf88fbf?_0x2764d9['start']['isBefore'](_0xf88fbf['getFirstRange']()['start'])?(_0xf88fbf['removeMarkers'](),_0xf88fbf=_0x1f7a85):_0x1f7a85['removeMarkers']():_0xf88fbf=_0x1f7a85;}}}if(_0xf88fbf)return this['_setSuggestionRange'](_0xf88fbf,this['_model']['createRange'](_0x4e0b8b,_0x32cc6b)),_0xf88fbf;{const _0x1fa8f3=_0x4c61b3(),_0x48e155=this['_model']['createRange'](_0x4e0b8b,_0x32cc6b),_0x3b91c7=_0x23d9f5['id'],_0xc93856=_0x25b4d4?'deletion:'+_0x25b4d4:'deletion',_0x40be8a=this['_setSuggestionData']({'id':_0x1fa8f3,'type':_0xc93856,'createdAt':new Date(),'authorId':_0x3b91c7,'attributes':_0x1660d6});return this['_addSuggestionMarker'](_0xc93856,_0x1fa8f3,_0x3b91c7,_0x48e155),_0x40be8a;}}['markMultiRangeDeletion'](_0x49644f,_0x438968='multi',_0x273992={}){const _0x23ca16=this['editor']['plugins']['get']('Users')['me'],_0x364a99=_0x49644f['map'](_0x386a5f=>new _0x2f3de9(_0x386a5f['start'],_0x386a5f['end'])),_0x10610d=new Set();for(const {suggestion:_0xa9b24c,meta:_0x1330a9}of this['_findSuggestions'](_0x364a99,'insertion'))_0x1330a9['isOwn']&&!_0x1330a9['isNextTo']&&_0x10610d['add'](_0xa9b24c);for(const _0x5dacf5 of _0x10610d)if(_0x5dacf5['isMultiRange']){const _0x53f15c=_0x5dacf5['getRanges']();(!_0x5dacf5['attributes']||!_0x5dacf5['attributes']['skipNestingCheck'])&&(_0x53f15c['every'](_0x3ea168=>_0x364a99['some'](_0x57c685=>_0x57c685['containsRange'](_0x3ea168,!0x0)))&&_0x5dacf5['discard']());if(_0x364a99['every'](_0x3a3790=>_0x53f15c['some'](_0x141b15=>_0x141b15['containsRange'](_0x3a3790,!0x0)))){const _0x2ba823=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x438968,'accept');return this['forceDefaultExecution'](()=>_0x2ba823(_0x49644f,null,_0x273992)),null;}}else{const _0x4ea60f=_0x5dacf5['getFirstRange']();_0x364a99['some'](_0x3d8b77=>_0x3d8b77['containsRange'](_0x4ea60f,!0x0))&&_0x5dacf5['discard']();if(_0x364a99['every'](_0x1de432=>_0x4ea60f['containsRange'](_0x1de432,!0x0))){const _0x1a71b8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x438968,'accept');return this['forceDefaultExecution'](()=>_0x1a71b8(_0x364a99,null,_0x273992)),null;}}const _0x3766d6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x438968,'join');let _0x290fda=null;for(const _0x4821b8 of this['getSuggestions']())if(_0x4821b8['author']['id']==_0x23ca16['id']&&_0x4821b8['isInContent']&&'deletion'==_0x4821b8['type']&&_0x4821b8['subType']==_0x438968&&Lt(_0x4821b8,_0x273992)&&(_0x3766d6(_0x4821b8['getRanges'](),_0x364a99)||_0x3766d6(_0x364a99,_0x4821b8['getRanges']()))){if(_0x290fda){if(_0x4821b8['commentThread']&&_0x4821b8['commentThread']['length'])continue;for(const _0x85fe2d of _0x4821b8['getRanges']())_0x290fda['isIntersectingWithRange'](_0x85fe2d)||_0x290fda['addRange'](_0x85fe2d);_0x4821b8['removeMarkers']();}else{_0x290fda=_0x4821b8;for(const _0x599ba0 of _0x364a99)_0x4821b8['isIntersectingWithRange'](_0x599ba0)||_0x4821b8['addRange'](_0x599ba0);}}if(_0x290fda)return _0x290fda;_0x10610d['clear']();for(const {suggestion:_0x4ef432,meta:_0xae4b5f}of this['_findSuggestions'](_0x364a99,'deletion'))_0xae4b5f['isOwn']&&(this['_mergeNestedSuggestions']||!_0xae4b5f['containsRangeInObject']&&!_0xae4b5f['isInsideObject'])&&Lt(_0x4ef432,_0x273992)&&_0x10610d['add'](_0x4ef432);for(const _0x2b417c of _0x10610d){const _0xb98d84=_0x2b417c['getRanges']();if(!_0x273992||!_0x273992['skipNestingCheck']){if(_0x364a99['every'](_0x495e17=>_0xb98d84['some'](_0x6881f=>_0x6881f['containsRange'](_0x495e17,!0x0))))return _0x2b417c;}(!_0x2b417c['attributes']||!_0x2b417c['attributes']['skipNestingCheck'])&&(_0xb98d84['every'](_0x581d42=>_0x364a99['some'](_0x2cbdc6=>_0x2cbdc6['containsRange'](_0x581d42,!0x0)))&&_0x2b417c['discard']());}const _0x5b74b0=_0x4c61b3(),_0x32e682=_0x23ca16['id'],_0x1fd1e4='deletion:'+_0x438968,_0xaa07f8=this['_setSuggestionData']({'id':_0x5b74b0,'type':_0x1fd1e4,'createdAt':new Date(),'authorId':_0x32e682,'attributes':_0x273992});for(const _0x300c93 of _0x364a99)_0x300c93['detach'](),_0x300c93['isCollapsed']||'$graveyard'==_0x300c93['root']['rootName']||this['_addSuggestionMarker'](_0x1fd1e4,_0x5b74b0,_0x32e682,_0x300c93,u['getMultiRangeId']());return _0xaa07f8;}['markAttributeChange'](_0x3ac28a,_0x32cb3c,_0xa2e48d,_0x3e519b,_0x3c17a7){if(_0x3ac28a['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2563c0=this['editor']['plugins']['get']('Users')['me']['id'],_0xb1021f=Array['from'](this['_suggestions']['values']())['filter'](_0x50d62a=>'attribute'==_0x50d62a['type']&&_0x50d62a['data']['key']==_0x32cb3c&&_0x50d62a['isIntersectingWithRange'](_0x3ac28a));if('default'===this['_trackFormatChanges']){const _0x362906=this['_findSuggestions'](_0x3ac28a,'insertion')['filter'](({meta:_0x3fa4c6})=>_0x3fa4c6['isOwn']&&!_0x3fa4c6['isInsideObject']&&!_0x3fa4c6['isNextTo'])['map'](({suggestion:_0x4bae9b})=>_0x4bae9b);_0xb1021f['unshift'](..._0x362906);}const _0x3007c0=new Map([[_0x3ac28a,_0xa2e48d]]);for(const _0x41b9e1 of _0xb1021f){const _0x4b8982='attribute'==_0x41b9e1['type']?_0x41b9e1['data']['oldValue']:void 0x0,_0x622875=_0x41b9e1['getFirstRange'](),_0x563a03=Array['from'](_0x3007c0['keys']())['find'](_0x5c237c=>_0x5c237c['isIntersecting'](_0x622875));if(!_0x563a03)continue;const _0x3dc124=_0x563a03['getDifference'](_0x622875);this['_isBlockAttribute'](_0x32cb3c)&&'insertion'==_0x41b9e1['type']&&0x0!=_0x3dc124['length']||(_0x3007c0['delete'](_0x563a03),_0x3dc124['forEach'](_0x1e0b90=>{_0x3007c0['set'](_0x1e0b90,_0xa2e48d);}),'insertion'!=_0x41b9e1['type']&&_0x4b8982!=_0x3e519b&&_0x3007c0['set'](_0x563a03['getIntersection'](_0x622875),_0x4b8982));}const _0x5d8d99=[];for(const [_0x574f36,_0x3886c6]of _0x3007c0){const _0x5b33f9=_0x4c61b3(),_0x22b57f={'key':_0x32cb3c,'oldValue':_0x3886c6,'newValue':_0x3e519b};_0x32cb3c['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':_0x32cb3c});const _0x199f03=('attribute:'+(_0x32cb3c+'|'+Vt({'newValue':_0x3e519b})))['substring'](0x0,0x3c),_0x4a4d0e=this['_setSuggestionData']({'id':_0x5b33f9,'type':_0x199f03,'data':_0x22b57f,'createdAt':new Date(),'authorId':_0x2563c0,'attributes':_0x3c17a7});_0x5d8d99['push'](_0x4a4d0e),this['_addSuggestionMarker'](_0x199f03,_0x5b33f9,_0x2563c0,_0x574f36);}return _0x5d8d99;}['enableDefaultAttributesIntegration'](_0x5d00a2){this['enableCommand'](_0x5d00a2,(_0x343bef,..._0x141863)=>{this['_recordAttributeChanges'](()=>{_0x343bef(..._0x141863);});});}['registerBlockAttribute'](_0x2ce806){this['_blockAttributeKeys']['add'](_0x2ce806);}['registerInlineAttribute'](_0x2752fe){this['_inlineAttributeKeys']['add'](_0x2752fe);}['_getAttributeKey'](_0x2d54f1){return'attribute'==_0x2d54f1['type']?_0x2d54f1['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x41fe11,_0x2127f1){const _0x2c9b9d=_0x41fe11['getFirstMarker']();this['_model']['change'](_0x429137=>{_0x429137['updateMarker'](_0x2c9b9d,{'range':_0x2127f1});});}['_addThreadToSuggestion'](_0x331aa4){const _0x47091c=_0x331aa4['id'],_0x3d0cdd=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x47091c)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3d0cdd,'threadId':_0x47091c,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xbbd05e=this['_commentsRepository']['getCommentThread'](_0x47091c);_0xbbd05e['unbind']('isRemovable'),_0xbbd05e['isRemovable']=!0x1,_0x331aa4['commentThread']=_0xbbd05e;}['_checkSuggestionCorrectness'](_0x1b7016,_0x1b7856,_0x4bab67,_0x1f77ec){if(_0x1b7016['type']!=_0x1b7856||_0x1b7016['subType']!=_0x4bab67||_0x1b7016['creator']['id']!=_0x1f77ec)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5a2cc3('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x28b4f2,_0x2225b5){const _0x31bca3=_0x28b4f2['getFirstRange']();if(_0x2225b5['isEqual'](_0x31bca3))_0x28b4f2['removeMarkers']();else{if(_0x31bca3['containsRange'](_0x2225b5)){const _0x225345=this['_model']['createPositionAt'](_0x2225b5['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x28b4f2,this['_model']['createRange'](_0x31bca3['start'],_0x225345));const _0x1c8d07=_0x4c61b3(),_0x509c4f=_0x28b4f2['creator']['id'],_0x5ec387=_0x28b4f2['type']+':'+_0x28b4f2['subType'];this['_setSuggestionData']({'id':_0x1c8d07,'type':_0x5ec387,'createdAt':new Date(),'authorId':_0x509c4f,'data':_0x28b4f2['data'],'attributes':_0x28b4f2['attributes']});const _0x41819c=this['_model']['createPositionAt'](_0x2225b5['end']['parent'],'after'),_0x274088=this['_model']['createRange'](_0x41819c,_0x31bca3['end']);this['_addSuggestionMarker'](_0x5ec387,_0x1c8d07,_0x509c4f,_0x274088);}else{if(_0x31bca3['containsPosition'](_0x2225b5['start'])){const _0x3f0b29=this['_model']['createPositionAt'](_0x2225b5['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x28b4f2,this['_model']['createRange'](_0x31bca3['start'],_0x3f0b29));}else{const _0x2bca87=this['_model']['createPositionAt'](_0x2225b5['end']['parent'],'after');this['_setSuggestionRange'](_0x28b4f2,this['_model']['createRange'](_0x2bca87,_0x31bca3['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x41c634){for(const {suggestion:_0x48e7b6,meta:_0xe188ae}of this['_findSuggestions'](_0x41c634,'insertion')){if(!_0xe188ae['isOwn'])continue;const _0x529fe2=_0x48e7b6['getRanges']();for(const _0x3a395e of _0x529fe2)if(!_0x41c634['getDifference'](_0x3a395e)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x493429){const _0x2f6a1f=this['editor']['plugins']['get']('Users')['getUser'](_0x493429);if(!_0x2f6a1f)throw new _0x5a2cc3('track-changes-user-not-found',this);return _0x2f6a1f;}['_getExternalAuthor'](_0x310603){const _0x108de4=this['editor']['plugins']['get']('Users'),_0x41ac85=_0x18968b('external:'+_0x310603),_0x400660=_0x108de4['getUser'](_0x41ac85);return _0x400660||_0x108de4['addUser']({'id':_0x41ac85,'name':_0x310603});}['_createSuggestion'](_0x40d641,_0x6b8644,_0x2a9c94,_0x38df5a,_0x44f498){const _0x4dcec0=this['_getAuthorFromId'](_0x38df5a),_0x55eed2=this['_suggestionFactory']['buildSuggestion'](_0x40d641,_0x6b8644,_0x2a9c94,_0x4dcec0,_0x44f498,_0x711af7=>{this['_updateSuggestionData'](_0x2a9c94,{'attributes':_0x711af7});const _0x2c32fa=this['getSuggestion'](_0x2a9c94);this['_joinWithAdjacentSuggestions'](new Set([_0x2c32fa])),this['_refreshSuggestionsChain'](new Set([_0x2c32fa]));});return this['listenTo'](_0x55eed2,'accept',()=>{this['_updateSuggestionData'](_0x2a9c94,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x55eed2,'discard',()=>{this['_updateSuggestionData'](_0x2a9c94,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2a9c94,_0x55eed2),this['_suggestionState']['set'](_0x55eed2,'notReady'),_0x55eed2;}['_splitMarkerName'](_0x40bb4f){const _0x1903fc=_0x40bb4f['split'](':');return{'group':_0x1903fc[0x0],'type':_0x1903fc[0x1],'subType':_0x1903fc['length']>=0x5?_0x1903fc[0x2]:null,'id':_0x1903fc['length']<0x5?_0x1903fc[0x2]:_0x1903fc[0x3],'authorId':_0x1903fc['length']<0x5?_0x1903fc[0x3]:_0x1903fc[0x4],'markerCount':0x6==_0x1903fc['length']?_0x1903fc[0x5]:null};}['_breakSuggestionMarker'](_0x32649d,_0x540a76,_0x125fc7){const _0x4d3201=_0x32649d['getFirstRange'](),_0x226d4f=_0x4d3201['start'],_0x4474e6=_0x4d3201['end'];this['_setSuggestionRange'](_0x32649d,this['_model']['createRange'](_0x226d4f,_0x540a76));const _0x2f4cfd=_0x4c61b3(),_0x3e3df8=_0x32649d['creator']['id'],_0x3664e8=_0x32649d['type']+(_0x32649d['subType']?':'+_0x32649d['subType']:'');this['_setSuggestionData']({'id':_0x2f4cfd,'type':_0x3664e8,'createdAt':new Date(),'authorId':_0x3e3df8,'originalSuggestionId':_0x32649d['id'],'attributes':_0x32649d['attributes'],'data':_0x32649d['data']});const _0x57f3db=this['_getAttributeKey'](_0x32649d);('formatBlock'==_0x32649d['type']||_0x57f3db&&this['_isBlockAttribute'](_0x57f3db))&&(_0x125fc7=this['_model']['createPositionBefore'](_0x125fc7['parent'])),this['_addSuggestionMarker'](_0x3664e8,_0x2f4cfd,_0x3e3df8,this['_model']['createRange'](_0x125fc7,_0x4474e6));}['_findSuggestions'](_0x42d4a6,_0x24d5a8=null){const _0x2b7013=[],_0x106c0b=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x42d4a6)||(_0x42d4a6=[_0x42d4a6]);for(const _0x3158db of this['getSuggestions']()){if(!_0x3158db['isInContent'])continue;if(_0x24d5a8&&_0x3158db['type']!=_0x24d5a8)continue;let _0x45df1c=!0x1;for(const _0x45695f of _0x3158db['getRanges']()){for(const _0x445e3e of _0x42d4a6){const _0x289d70=_0x445e3e['start']['isEqual'](_0x45695f['end'])||_0x445e3e['end']['isEqual'](_0x45695f['start']);if(_0x289d70||_0x445e3e['getIntersection'](_0x45695f)){const _0x3c1ab9=_0x445e3e['containsRange'](_0x45695f)&&Rt(this['_model']['schema'],_0x45695f['start'],_0x445e3e),_0xde25bd=_0x45695f['containsRange'](_0x445e3e)&&Rt(this['_model']['schema'],_0x445e3e['start'],_0x45695f);_0x2b7013['push']({'suggestion':_0x3158db,'meta':{'isOwn':_0x106c0b==_0x3158db['author'],'isNextTo':_0x289d70,'isInsideObject':_0x3c1ab9,'containsRangeInObject':_0xde25bd}}),_0x45df1c=!0x0;break;}}if(_0x45df1c)break;}}return _0x2b7013;}['_addSuggestionMarker'](_0x2a940b,_0x474c39,_0x3f00f5,_0x2978f8,_0x5be55d){this['_model']['change'](_0x29f6e6=>{let _0x47db74='suggestion:'+_0x2a940b+':'+_0x474c39+':'+_0x3f00f5;_0x5be55d&&(_0x47db74=_0x47db74+':'+_0x5be55d),_0x29f6e6['addMarker'](_0x47db74,{'range':_0x2978f8,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3d92d4){const _0x4f5664=_0x3d92d4['previous'],_0x4732fa=_0x3d92d4['next'];_0x3d92d4['previous']=null,_0x3d92d4['next']=null,null!=_0x4f5664&&_0x4f5664['next']==_0x3d92d4&&(_0x4f5664['next']=_0x4732fa),null!=_0x4732fa&&_0x4732fa['previous']==_0x3d92d4&&(_0x4732fa['previous']=_0x4f5664),'ready'==this['_suggestionState']['get'](_0x3d92d4)&&(this['_suggestionState']['set'](_0x3d92d4,'removed'),this['fire']('suggestionUnloaded',_0x3d92d4,_0x4f5664,_0x4732fa));}['_setSuggestionData'](_0x617f4d){const _0x455636=_0x617f4d['id'],_0xa0eb23=this['addSuggestionData'](_0x617f4d);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1017a7=this['editor']['plugins']['get']('PendingActions'),_0x51f8ad=_0xa0eb23['hasComments'],_0x33a00c=_0xa0eb23['subType']?_0xa0eb23['type']+':'+_0xa0eb23['subType']:_0xa0eb23['type'],_0x2685db=this['editor']['locale'],_0x17418e=_0x1017a7['add'](o(_0x2685db,'PENDING_ACTION_SUGGESTION')),_0x4f29e0={'id':_0x455636,'type':_0x33a00c,'hasComments':_0x51f8ad,'data':_0x617f4d['data']||null,'originalSuggestionId':_0x617f4d['originalSuggestionId']||null,'attributes':_0xa0eb23['attributes']};this['_adapter']['addSuggestion'](_0x4f29e0)['then'](_0xb257c4=>{_0xa0eb23['_saved']=!0x0,_0x1017a7['remove'](_0x17418e),_0xb257c4&&_0xb257c4['createdAt']&&(this['_suggestions']['get'](_0x455636)['createdAt']=_0xb257c4['createdAt']);})['catch'](_0x4e1c82=>{throw _0x396ae6('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xa0eb23['discard']();}),_0xa0eb23['stopListening'](),this['_suggestions']['delete'](_0xa0eb23['id']),this['_suggestionState']['delete'](_0xa0eb23),_0x4e1c82;});}return _0xa0eb23;}['_isBlockAttribute'](_0x4c3e0d){return this['_blockAttributeKeys']['has'](_0x4c3e0d);}['_updateSuggestionData'](_0x4acc96,_0x2073c6){const _0xee46c6=this['editor']['plugins']['get']('PendingActions'),_0x17127a=this['getSuggestion'](_0x4acc96);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x17127a['_saved']){const _0x16cadb=_0xee46c6['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4acc96,_0x2073c6)['then'](()=>{_0xee46c6['remove'](_0x16cadb);});}else _0x17127a['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4acc96,_0x2073c6);});}}['_getSuggestionData'](_0x3ad020){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5a2cc3('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3ad020);}['_handleNewSuggestionMarker'](_0x383a00){const {id:_0x512b58,type:_0x4455a5,subType:_0x3a40b8,authorId:_0x1f0e78}=this['_splitMarkerName'](_0x383a00),_0x4fb92b=this['_suggestions']['get'](_0x512b58)||this['_createSuggestion'](_0x4455a5,_0x3a40b8,_0x512b58,_0x1f0e78,{});switch(this['_checkSuggestionCorrectness'](_0x4fb92b,_0x4455a5,_0x3a40b8,_0x1f0e78),this['_suggestionState']['get'](_0x4fb92b)){case'notReady':this['_getSuggestionData'](_0x512b58)['then'](_0x25461d=>{let _0x468957=Promise['resolve']();_0x25461d['hasComments']&&(_0x468957=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x512b58})),_0x468957['then'](()=>{this['addSuggestionData'](_0x25461d)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4fb92b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x512b58,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4fb92b,'ready'),this['fire']('suggestionLoaded',_0x4fb92b);break;case'ready':this['fire']('suggestionChanged',_0x4fb92b);}return _0x4fb92b['addMarkerName'](_0x383a00),_0x4fb92b;}['_refreshSuggestionsChain'](_0x190cb2){const _0x2b6e35=Array['from'](_0x190cb2),_0xcec5d9=_0x2b6e35['filter'](_0x40419c=>'attribute'==_0x40419c['type']);this['_refreshAttributeSuggestionsChain'](_0xcec5d9);const _0x224d01=_0x2b6e35['filter'](_0x2d7776=>!_0x2d7776['isMultiRange']&&'attribute'!=_0x2d7776['type']),_0x1a096f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3108e3=>!_0x3108e3['isMultiRange']&&'attribute'!=_0x3108e3['type']),_0x53a1b1=_0x1a096f['filter'](_0x17f5a8=>!_0x190cb2['has'](_0x17f5a8)),_0x3ccee1=new Map(_0x1a096f['map'](_0xb84509=>[_0xb84509,this['_suggestionFactory']['getSuggestionCallback'](_0xb84509['type'],_0xb84509['subType'],'chain')])),_0x5e94b3=new Map(_0x1a096f['map'](_0x2aa459=>[_0x2aa459,_0x2aa459['getFirstRange']()])),_0x317d0b=new Set(),_0x357574=new Set();for(let _0x1dd0df=0x0;_0x1dd0df<_0x224d01['length'];_0x1dd0df++)_0x2dc247(_0x224d01[_0x1dd0df],_0x224d01,_0x1dd0df+0x1);for(let _0x1c294d=0x0;_0x1c294d<_0x224d01['length'];_0x1c294d++)_0x2dc247(_0x224d01[_0x1c294d],_0x53a1b1,0x0);const _0x159857=new Set();for(let _0x1ae714=0x0;_0x1ae714<_0x224d01['length'];_0x1ae714++){const _0x11581c=_0x224d01[_0x1ae714];!_0x357574['has'](_0x11581c)&&_0x11581c['previous']&&(_0x159857['add'](_0x11581c['previous']),_0x11581c['previous']['next']===_0x11581c&&(_0x11581c['previous']['next']=null),_0x11581c['previous']=null),!_0x317d0b['has'](_0x11581c)&&_0x11581c['next']&&(_0x159857['add'](_0x11581c['next']),_0x11581c['next']['previous']===_0x11581c&&(_0x11581c['next']['previous']=null),_0x11581c['next']=null);}function _0x2dc247(_0x472722,_0x1f1e3b,_0x38849c){for(let _0x4e6817=_0x38849c;_0x4e6817<_0x1f1e3b['length'];_0x4e6817++){const _0x20ae66=_0x118797(_0x472722,_0x1f1e3b[_0x4e6817]);_0x20ae66&&(_0x20ae66[0x0]['next']=_0x20ae66[0x1],_0x20ae66[0x1]['previous']=_0x20ae66[0x0],_0x317d0b['add'](_0x20ae66[0x0]),_0x357574['add'](_0x20ae66[0x1]));}}function _0x118797(_0xb5d7a8,_0x28e67){if(_0xb5d7a8['author']['id']!==_0x28e67['author']['id'])return null;const _0x414e61=_0x3ccee1['get'](_0xb5d7a8)(_0xb5d7a8,_0x28e67,_0x5e94b3['get'](_0xb5d7a8),_0x5e94b3['get'](_0x28e67));if(!_0x414e61)return null;return _0x3ccee1['get'](_0x28e67)(_0xb5d7a8,_0x28e67,_0x5e94b3['get'](_0xb5d7a8),_0x5e94b3['get'](_0x28e67))?_0x414e61[0x1]['commentThread']&&_0x414e61[0x1]['commentThread']['length']?null:_0x414e61:null;}_0x159857['size']&&this['_refreshSuggestionsChain'](_0x159857);}['_refreshAttributeSuggestionsChain'](_0x4a349b){if(0x0==_0x4a349b['length'])return;const _0x57e27b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x187740=>'attribute'==_0x187740['type']&&_0x187740['_isDataLoaded']),_0x4c0b4e=[],_0x110685=new Map();for(const _0x85da58 of _0x57e27b){const _0x87d26=_0x18968b(_0x85da58['attributes']);_0x110685['has'](_0x87d26)||(_0x110685['set'](_0x87d26,_0x4c0b4e['length']),_0x4c0b4e['push']([]));const _0x14078f=_0x110685['get'](_0x87d26);_0x4c0b4e[_0x14078f]['push'](_0x85da58);}!(function(){_0x4c0b4e['sort']((_0x5980b9,_0x24be23)=>{const _0x21728e=_0x5980b9[0x0]['createdAt'],_0x12bec6=_0x24be23[0x0]['createdAt'];return _0x21728e==_0x12bec6?_0x5980b9[0x0]['attributes']['groupId']<_0x24be23[0x0]['attributes']['groupId']?-0x1:0x1:_0x21728e<_0x12bec6?-0x1:0x1;});for(const _0x31b732 of _0x4c0b4e)_0x31b732['sort']((_0x30eca9,_0x3be671)=>_0x30eca9['id']<_0x3be671['id']?-0x1:0x1);}());for(let _0x4f7485=0x0;_0x4f7485<_0x4c0b4e['length'];_0x4f7485++){if(0x0==_0x4c0b4e[_0x4f7485]['length'])continue;const _0x5a94e3=[];for(let _0x2acedb=_0x4f7485+0x1;_0x2acedb<_0x4c0b4e['length'];_0x2acedb++)0x0!=_0x4c0b4e[_0x2acedb]['length']&&_0x469bd7(_0x4c0b4e[_0x4f7485],_0x4c0b4e[_0x2acedb])&&_0x5a94e3['push'](_0x2acedb);for(const _0x2d722 of _0x5a94e3)_0x4c0b4e[_0x4f7485]=_0x4c0b4e[_0x4f7485]['concat'](_0x4c0b4e[_0x2d722]),_0x4c0b4e[_0x2d722]=[];}for(const _0x1eeb3e of _0x4c0b4e)for(let _0x4ecd23=0x0;_0x4ecd23<_0x1eeb3e['length'];_0x4ecd23++)_0x1eeb3e[_0x4ecd23]['next']=_0x1eeb3e[_0x4ecd23+0x1]||null;for(const _0x2eb8f8 of _0x4c0b4e)for(let _0x3c9f68=0x0;_0x3c9f68<_0x2eb8f8['length'];_0x3c9f68++)_0x2eb8f8[_0x3c9f68]['previous']=_0x2eb8f8[_0x3c9f68-0x1]||null;function _0x469bd7(_0x45a70f,_0x122c1d){if(_0x45a70f[0x0]['attributes']['groupId']!==_0x122c1d[0x0]['attributes']['groupId']&&_0x45a70f[0x0]['author']!==_0x122c1d[0x0]['author'])return!0x1;if(!function(_0x22bb41,_0x210579){if(!_0x22bb41['hasComments']&&!_0x210579['hasComments'])return!0x0;if(_0x22bb41['hasComments']&&_0x210579['hasComments'])return!0x1;if(_0x22bb41['hasComments']&&_0x210579['createdAt']<_0x22bb41['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x210579['hasComments']&&_0x22bb41['createdAt']<_0x210579['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x45a70f[0x0],_0x122c1d[0x0]))return!0x1;const _0x497b7a=Bt(_0x45a70f[0x0]['attributes'],'groupId'),_0x3edcc2=Bt(_0x122c1d[0x0]['attributes'],'groupId');if(!_0x2368d0(_0x497b7a,_0x3edcc2))return!0x1;return!!_0x45a70f['every'](_0x20a6f9=>_0x122c1d['some'](_0x29e24c=>_0x20a6f9['getFirstRange']()['isEqual'](_0x29e24c['getFirstRange']())))&&_0x122c1d['every'](_0x4d4817=>_0x45a70f['some'](_0x57af42=>_0x4d4817['getFirstRange']()['isEqual'](_0x57af42['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1f9f70){const _0x51612d=Array['from'](_0x1f9f70),_0x33450c=this['getSuggestions']({'skipNotAttached':!0x0}),_0x38876c=_0x33450c['filter'](_0x5856bc=>!_0x1f9f70['has'](_0x5856bc)),_0x214b6e=new Map(_0x51612d['map'](_0x3d530f=>[_0x3d530f,this['_suggestionFactory']['getSuggestionCallback'](_0x3d530f['type'],_0x3d530f['subType'],'join')])),_0x3724b4=new Map(_0x33450c['map'](_0xafc0b3=>[_0xafc0b3,_0xafc0b3['getRanges']()]));for(let _0x1beebc=0x0;_0x1beebc<_0x51612d['length'];_0x1beebc++){if(_0xb22177(this,_0x51612d[_0x1beebc],_0x51612d,_0x1beebc+0x1))return!0x0;}for(let _0x1c6725=0x0;_0x1c6725<_0x51612d['length'];_0x1c6725++){if(_0xb22177(this,_0x51612d[_0x1c6725],_0x38876c,0x0))return!0x0;}return!0x1;function _0xb22177(_0xc90491,_0x120cd3,_0x5c1c82,_0xe9d010){for(let _0x5e9efd=_0xe9d010;_0x5e9efd<_0x5c1c82['length'];_0x5e9efd++){const _0x5e8e58=_0x5c1c82[_0x5e9efd];if(_0x5e8e58['type']!==_0x120cd3['type']||_0x5e8e58['author']['id']!==_0x120cd3['author']['id']||_0x5e8e58['subType']!==_0x120cd3['subType'])continue;if(!Pt(_0x120cd3,_0x5e8e58,['groupId']))continue;if('attribute'==_0x120cd3['type']&&_0x120cd3['data']['oldValue']!=_0x5e8e58['data']['oldValue'])continue;if('attribute'==_0x120cd3['type']&&_0xc90491['_isBlockAttribute'](_0x120cd3['data']['key']))continue;if('formatBlock'==_0x120cd3['type']){const _0x47cc14=_0xc90491['editor']['model'],_0x293f98=_0x120cd3['getContainedElement']();if(_0x293f98&&(_0x47cc14['schema']['isObject'](_0x293f98)||_0x47cc14['schema']['isLimit'](_0x293f98)))continue;}const _0x229dd3=_0x214b6e['get'](_0x120cd3),_0x4e8eda=_0x3724b4['get'](_0x120cd3),_0x59b062=_0x3724b4['get'](_0x5e8e58),_0x13d90f=_0x120cd3['commentThread']&&_0x120cd3['commentThread']['length'],_0x7266a5=_0x5e8e58['commentThread']&&_0x5e8e58['commentThread']['length'];if(!_0x13d90f&&_0x229dd3(_0x59b062,_0x4e8eda))return _0xc90491['_joinSuggestions'](_0x5e8e58,_0x120cd3),_0x3724b4['delete'](_0x120cd3),!0x0;if(!_0x7266a5&&_0x229dd3(_0x4e8eda,_0x59b062))return _0xc90491['_joinSuggestions'](_0x120cd3,_0x5e8e58),_0x3724b4['delete'](_0x5e8e58),!0x0;}return!0x1;}}['_joinSuggestions'](_0x303669,_0x5af4d2){if(_0x303669['isMultiRange']){for(const _0x31db06 of _0x5af4d2['getRanges']())_0x303669['addRange'](_0x31db06);}else{const _0x2e7214=_0x5af4d2['getFirstRange']()['end'];this['_setSuggestionRange'](_0x303669,this['_model']['createRange'](_0x303669['getFirstRange']()['start'],_0x2e7214));}_0x5af4d2['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2bc297,_0x4675fd){const _0x51f2cf=_0x2bc297['startsWith']('format')||_0x2bc297['startsWith']('attribute')?'FORMATTING':_0x2bc297['toUpperCase']();return o(this['editor']['locale'],_0x4675fd+'_'+_0x51f2cf+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x5db6c8=this['editor'];if(!_0x5db6c8['ui'])return;const {ariaLiveAnnouncer:_0x4a3cc7}=_0x5db6c8['ui'];_0x572aad(this['_model'],({left:_0x515156,entered:_0x5e474e})=>{for(const _0x5a77dc of _0x515156){const {group:_0x4c3736,type:_0x679044}=this['_splitMarkerName'](_0x5a77dc['name']);if('suggestion'===_0x4c3736){_0x4a3cc7['announce'](this['_getMarkerAnnouncementText'](_0x679044,'LEAVE'));break;}}for(const _0x569201 of _0x5e474e){const {group:_0x2133dc,type:_0x1548f4}=this['_splitMarkerName'](_0x569201['name']);if('suggestion'===_0x2133dc){_0x4a3cc7['announce'](this['_getMarkerAnnouncementText'](_0x1548f4,'ENTER'));break;}}});}['_processAttributeChanges'](_0x116349){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5242fd=this['editor'],_0x19f995=_0x5242fd['model']['document']['differ']['getChanges']();if(0x0==_0x19f995['length'])return!0x1;const _0x4eaa77=[],_0x523a9d=_0x19f995['filter'](_0x579a4a=>'attribute'==_0x579a4a['type']),_0x55cf1b=_0x19f995['filter'](_0x3b4ae3=>'insert'==_0x3b4ae3['type']&&'$text'!=_0x3b4ae3['name']),_0x27e8bd=_0x19f995['filter'](_0x247e33=>'remove'==_0x247e33['type']&&'$text'!=_0x247e33['name']);for(const _0x136fa2 of _0x523a9d)_0x4eaa77['push']({'key':_0x136fa2['attributeKey'],'newValue':_0x136fa2['attributeNewValue'],'oldValue':_0x136fa2['attributeOldValue'],'range':Ot(_0x136fa2['range'],_0x5242fd['model'])});for(const _0x4b6b62 of _0x55cf1b){const _0x474ae1=_0x27e8bd['find'](_0xd0b2a=>_0xd0b2a['position']['isEqual'](_0x4b6b62['position']));_0x474ae1&&_0x4eaa77['push']({'key':m,'newValue':_0x4b6b62['name'],'oldValue':_0x474ae1['name'],'range':_0x5242fd['model']['createRangeOn'](_0x4b6b62['position']['nodeAfter'])});}return 0x0!=_0x4eaa77['length']&&this['_reduceExistingSuggestions'](_0x116349,_0x4eaa77);}['_processAttributeSuggestions'](_0x296092){let _0xd53211=!0x1;const _0x18dbe6=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x52c9c5=>_0x52c9c5['data']['newRange']&&_0x52c9c5['name']['startsWith']('suggestion:attribute:'));for(const _0x150615 of _0x18dbe6){const {subType:_0x52474f,id:_0x3dd1ee}=this['_splitMarkerName'](_0x150615['name']),_0x426955=_0x52474f['split']('|')[0x0];for(const _0x44d67e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x44d67e['id']!=_0x3dd1ee&&'attribute'==_0x44d67e['type']&&_0x44d67e['data']&&_0x44d67e['data']['key']==_0x426955&&_0x44d67e['getFirstRange']()['isIntersecting'](_0x150615['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x44d67e,_0x150615['data']['newRange'],_0x296092),_0xd53211=!0x0);}return _0xd53211;}['_recordAttributeChanges'](_0x17a60e){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x17a60e();}['_isRegisteredAttribute'](_0x4a1aed){const _0x214543=this['_isBlockAttribute'](_0x4a1aed),_0x55bb07=this['_inlineAttributeKeys']['has'](_0x4a1aed);return _0x214543||_0x55bb07;}['_reduceExistingSuggestions'](_0x132562,_0x3b94f5){if(0x0==_0x3b94f5['length'])return!0x1;let _0x3d0f77=!0x1;for(const _0x434ccc of _0x3b94f5){const _0x51cdc6=this['_findSuggestions'](_0x434ccc['range'],'attribute')['filter'](_0x48a2e8=>!_0x48a2e8['meta']['isNextTo'])['map'](_0x4b1440=>_0x4b1440['suggestion']),_0x3a1da1=_0x18968b({'newValue':_0x434ccc['newValue']});_0x51cdc6['filter'](_0x69b92b=>{const [_0x3a7b57,_0x2adc99]=_0x69b92b['subType']['split']('|');return _0x3a7b57==_0x434ccc['key']&&_0x2adc99!=_0x3a1da1;})['forEach'](_0x5f4aa2=>{this['_reduceSuggestionAttributeRange'](_0x5f4aa2,_0x434ccc['range'],_0x132562),_0x3d0f77=!0x0;});}return _0x3d0f77;}['_reduceSuggestionAttributeRange'](_0x43b03b,_0x2a8184,_0xbd12e5){const _0x2722ac=_0x43b03b['getFirstRange']()['getDifference'](_0x2a8184);0x0!==_0x2722ac['length']?0x1!==_0x2722ac['length']?this['_breakSuggestionMarker'](_0x43b03b,_0x2a8184['start'],_0x2a8184['end']):this['_setSuggestionRange'](_0x43b03b,_0x2722ac[0x0]):_0xbd12e5['removeMarker'](_0x43b03b['getFirstMarker']());}constructor(_0x1396df){function _0x39a675(_0x19b676){return _0x19b676['map'](_0x125e66=>String['fromCharCode'](_0x125e66))['join']('');}super(_0x1396df),this['_recordAttributeSuggestions']=!0x1,this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x36fa21,_0x1d5d65,_0x31600a,_0x205589)=>{this['_model']['change'](()=>{for(const _0x2fdfe1 of[..._0x205589,..._0x31600a])this['_model']['markers']['has'](_0x2fdfe1)&&_0x1396df['editing']['reconvertMarker'](_0x2fdfe1);});}),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']=_0x1396df['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(),_0x1396df['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1396df['config']['get']('trackChanges.trackFormatChanges'),_0x1396df['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1396df['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x1396df,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x39a675([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x39a675([0x34,0x30,0x34,0x38,0x31,0x30,0x31,0x32]);}}class xt{['buildSuggestion'](_0x550341,_0x522fc2,_0x1e3c6c,_0x14f8af,_0x31facd,_0x25e375){return new u(this['_model'],{'type':_0x550341,'subType':_0x522fc2,'id':_0x1e3c6c,'author':_0x14f8af,'creator':_0x14f8af,'attributes':_0x31facd,'onAttributesChange':_0x25e375,'onAccept':(..._0x3efa17)=>this['getSuggestionCallback'](_0x550341,_0x522fc2,'accept')(..._0x3efa17),'onDiscard':(..._0x29b667)=>this['getSuggestionCallback'](_0x550341,_0x522fc2,'discard')(..._0x29b667)});}['registerCustomCallback'](_0x39b9eb,_0x543edb,_0x53aca6,_0x399050){const _0x2e4a99=_0x39b9eb+':'+_0x543edb+':'+_0x53aca6;this['_customCallbacks']['set'](_0x2e4a99,_0x399050);}['getSuggestionCallback'](_0x10a2a6,_0x1f67e2,_0x2c5aaa){const _0x5ecf8d=_0x10a2a6+':'+_0x1f67e2+':'+_0x2c5aaa;return this['_customCallbacks']['get'](_0x5ecf8d)||this['_defaultCallbacks']['get'](_0x10a2a6+':'+_0x2c5aaa);}['_registerDefaultCallbacks'](){const _0x5e7b3d=()=>!0x1,_0x12b596=_0x3951df=>{_0x3951df['sort']((_0x1f27a9,_0x3e61bc)=>_0x1f27a9['start']['isBefore'](_0x3e61bc['start'])?0x1:-0x1),this['_model']['change'](_0x1c2e3=>{for(const _0x438506 of _0x3951df){let _0x170a0c;_0x170a0c=_0x438506['end']['isAtEnd']&&_0x438506['end']['parent']==_0x438506['start']['nodeAfter']?_0x1c2e3['createSelection'](_0x438506['start']['nodeAfter'],'on'):_0x1c2e3['createSelection'](_0x438506),this['_model']['deleteContent'](_0x170a0c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x53764b=(_0x4b64fd,_0x2e8c53)=>{_0x2e8c53&&this['_model']['change'](_0x25a4e0=>{const {commandName:_0x28da57,commandParams:_0x57dfd7=[]}=_0x2e8c53,_0x1c3a9a=_0x4b64fd['map'](_0x5bc36f=>(Tt(_0x5bc36f)&&(_0x5bc36f=this['_model']['createRange'](_0x5bc36f['end'])),_0x5bc36f))['filter'](_0x54acdd=>'$graveyard'!==_0x54acdd['root']['rootName']);if(_0x1c3a9a['length']<0x1)return;const _0x813499=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xc3cb09=>_0x2f3de9['fromRange'](_0xc3cb09));_0x25a4e0['setSelection'](_0x1c3a9a);for(const _0x509991 of this['_editor']['commands']['commands']())_0x509991['refresh']();_0x57dfd7['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x28da57,..._0x57dfd7);const _0x548b27=_0x813499['filter'](_0x3bb1de=>'$graveyard'!=_0x3bb1de['root']['rootName']);_0x548b27['length']>0x0&&_0x25a4e0['setSelection'](_0x548b27);for(const _0x5b4e98 of _0x813499)_0x5b4e98['detach']();});},_0x5e7636=(_0x5cdc2c,_0x302a57)=>0x1==_0x5cdc2c['length']&&0x1==_0x302a57['length']&&_0x5cdc2c[0x0]['end']['isEqual'](_0x302a57[0x0]['start']),_0x48a93d=(_0x2d33a0,_0x124db7,_0x56690c,_0x150726)=>Gt(_0x2d33a0,_0x124db7,_0x56690c,_0x150726,this['_model'])?[_0x2d33a0,_0x124db7]:Gt(_0x124db7,_0x2d33a0,_0x150726,_0x56690c,this['_model'])?[_0x124db7,_0x2d33a0]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5e7b3d),this['_defaultCallbacks']['set']('insertion:discard',_0x12b596),this['_defaultCallbacks']['set']('insertion:join',_0x5e7636),this['_defaultCallbacks']['set']('insertion:chain',_0x48a93d),this['_defaultCallbacks']['set']('deletion:accept',_0x12b596),this['_defaultCallbacks']['set']('deletion:discard',_0x5e7b3d),this['_defaultCallbacks']['set']('deletion:join',_0x5e7636),this['_defaultCallbacks']['set']('deletion:chain',_0x48a93d),this['_defaultCallbacks']['set']('formatInline:accept',_0x53764b),this['_defaultCallbacks']['set']('formatInline:discard',_0x5e7b3d),this['_defaultCallbacks']['set']('formatInline:join',_0x5e7636),this['_defaultCallbacks']['set']('formatInline:chain',_0x5e7b3d),this['_defaultCallbacks']['set']('formatBlock:accept',_0x53764b),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5e7b3d),this['_defaultCallbacks']['set']('formatBlock:join',_0x5e7636),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5e7b3d),this['_defaultCallbacks']['set']('attribute:accept',_0x5e7b3d),this['_defaultCallbacks']['set']('attribute:discard',(_0x364fa1,_0x1177cd)=>{if(!_0x1177cd)return;const _0x294a80=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1099a4=>{if(_0x1177cd['key']==m)for(const _0x3c982 of _0x364fa1){const _0x4094e1=_0x3c982['start']['nodeAfter'],_0x53629f=_0x1177cd['oldValue'];_0x1099a4['rename'](_0x4094e1,_0x53629f);}else{if(_0x294a80['_isBlockAttribute'](_0x1177cd['key'])){for(const _0x286e39 of _0x364fa1)void 0x0!==_0x1177cd['oldValue']?_0x1099a4['setAttribute'](_0x1177cd['key'],_0x1177cd['oldValue'],_0x286e39['start']['nodeAfter']):_0x1099a4['removeAttribute'](_0x1177cd['key'],_0x286e39['start']['nodeAfter']);}else{for(const _0x455ab1 of _0x364fa1)_0x1177cd['oldValue']?_0x1099a4['setAttribute'](_0x1177cd['key'],_0x1177cd['oldValue'],_0x455ab1):_0x1099a4['removeAttribute'](_0x1177cd['key'],_0x455ab1);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5e7636);}constructor(_0x5af1a6){this['_editor']=_0x5af1a6,this['_model']=_0x5af1a6['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}}function Rt(_0x5b44e2,_0x18816c,_0x1c2b3c){for(const _0x415648 of _0x18816c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x415648['root']==_0x415648)return!0x1;if(!_0x1c2b3c['containsItem'](_0x415648))return!0x1;if(_0x5b44e2['isObject'](_0x415648)||_0x5b44e2['isLimit'](_0x415648))return!0x0;}return!0x1;}function Tt(_0x5ee895){return _0x5ee895['end']['parent']==_0x5ee895['start']['nodeAfter']&&_0x5ee895['end']['isAtStart'];}function Et(_0x5bb408,_0x45fa5d,_0x4c83cf,_0x4cd694){const _0x5f2f3d=_0x1ab886=>!_0x1ab886['item']['is']('$textProxy')&&!_0x4cd694['isObject'](_0x1ab886['item']),_0xe7d176=_0x5bb408['start']['getLastMatchingPosition'](_0x5f2f3d),_0x5ca055=_0x5bb408['end']['getLastMatchingPosition'](_0x5f2f3d,{'direction':'backward'});return(!_0x5bb408['start']['isEqual'](_0xe7d176)||!_0x5bb408['end']['isEqual'](_0x5ca055))&&(_0xe7d176['isBefore'](_0x5ca055)?_0x4c83cf['updateMarker'](_0x45fa5d,{'range':_0x4c83cf['createRange'](_0xe7d176,_0x5ca055)}):_0x4c83cf['removeMarker'](_0x45fa5d),!0x0);}function Vt(_0x462a2f){return _0x18968b(_0x462a2f);}function Ut(_0x398f36){const _0x4c9f39=_0x398f36['start']['nodeAfter'];return _0x4c9f39&&_0x4c9f39['is']('element');}function Ot(_0x1dbdd9,_0x2de15d){return null==_0x1dbdd9['end']['nodeBefore']&&_0x1dbdd9['end']['parent']==_0x1dbdd9['start']['nodeAfter']?Ft(_0x1dbdd9['start']['nodeAfter'],_0x2de15d):_0x1dbdd9;}function Ft(_0x37b979,_0x3d5837){const _0x2661cd=_0x3d5837['schema']['isObject'](_0x37b979)||_0x3d5837['schema']['isSelectable'](_0x37b979);return _0x3d5837['createRange'](_0x3d5837['createPositionAt'](_0x37b979,'before'),_0x2661cd?_0x3d5837['createPositionAfter'](_0x37b979):_0x3d5837['createPositionAt'](_0x37b979,'end'));}function Gt(_0x2397ec,_0x328445,_0x18ec31,_0x385850,_0x5a442f){if(!Pt(_0x2397ec,_0x328445))return!0x1;if(_0x18ec31['end']['isEqual'](_0x385850['start']))return!0x0;if(_0x2397ec['type']!=_0x328445['type'])return!0x1;if(!_0x18ec31['end']['isTouching'](_0x385850['start']))return!0x1;const _0x49299c=_0x5a442f['createRange'](_0x18ec31['end'],_0x385850['start'])['getWalker']();for(const _0x1ac3a0 of _0x49299c)if(['elementStart','elementEnd']['includes'](_0x1ac3a0['type'])&&_0x5a442f['schema']['isLimit'](_0x1ac3a0['item']))return!0x1;return!0x0;}function Pt(_0x2cb666,_0x12663f,_0x3839dd=[]){return!(!_0x2cb666['_isDataLoaded']||!_0x12663f['_isDataLoaded'])&&_0x2368d0(Bt(_0x2cb666['attributes'],_0x3839dd),Bt(_0x12663f['attributes'],_0x3839dd));}function Lt(_0x19ce64,_0x385114){const _0x58421b=Ht(_0x19ce64['attributes']),_0x2a7aa2=Ht(_0x385114);if(!_0x19ce64['_isDataLoaded'])return!0x1;for(const _0x37d967 of Object['keys'](_0x2a7aa2))if(!_0x2368d0(_0x58421b[_0x37d967],_0x2a7aa2[_0x37d967]))return!0x1;return!0x0;}function Ht(_0x43b7fd){const _0x465136=Object['assign']({},_0x43b7fd);return delete _0x465136['skipNestingCheck'],delete _0x465136['tablePasteChainId'],_0x465136;}class oe extends _0x4cd08f(){['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 _0xa2046e=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xa2046e);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}constructor(_0x3817a9,_0x4e9fa5,_0x366df8,_0x48491b){super(),this['model']=_0x4e9fa5,this['view']=_0x366df8,this['commentThreadController']=_0x48491b,this['_editor']=_0x3817a9,this['_acceptCommand']=_0x3817a9['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3817a9['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5738be,_0x6285e3)=>_0x5738be||_0x6285e3),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x407ae2=>_0x407ae2&&this['_editor']['model']['canEditAt'](_0x4e9fa5['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x35c798=>_0x35c798&&this['_editor']['model']['canEditAt'](_0x4e9fa5['getRanges']())),this['_pendingAction']=null,_0x366df8['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x366df8,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x366df8,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x366df8,'change:isDirty',()=>{_0x366df8['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}}class es extends _0x299e5d{['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5bb3b5}=this['_config'];this['commentsListView']=new _0x5bb3b5(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',_0x378a3e=>_0x378a3e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5189aa,_0x3f8138)=>_0x5189aa||!!_0x3f8138);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x406db7}=this['_config'],_0xe5adbf=new _0x406db7(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5899c6=_0xe5adbf['commentInputView'];return _0xe5adbf['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5899c6,'value',(_0x3c3ed6,_0x364320,_0x41f4a7)=>!!_0x41f4a7||_0x3c3ed6&&!_0x364320),_0x5899c6['on']('submit',(_0x254f76,_0x599bf6)=>{this['fire']('addComment',_0x599bf6),_0x5899c6['editor']['setData']('');}),_0x5899c6['on']('cancel',()=>this['focus']()),_0x5899c6['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xe5adbf;}constructor(_0x3ed3f8,_0x3137c4,_0x321c83,_0x3c8c14){super(_0x3ed3f8),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x3137c4['authoredAt']),this['bind']('authoredAt')['to'](_0x3137c4),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x3137c4,this['_localUser']=_0x321c83,this['_config']=_0x3c8c14,_0x3c8c14['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}}class ne extends es{['getTemplate'](){const _0x4fdc8c=this['bindTemplate'],_0x2f45cc=[{'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':_0x4fdc8c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4fdc8c['to']('authoredAt',_0x8832e0=>this['_config']['formatDateTime'](_0x8832e0))}]}]},{'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']&&_0x2f45cc['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x59d58b={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x4fdc8c['if']('isActive','ck-suggestion-wrapper--active'),_0x4fdc8c['to']('type',_0x50ad2f=>'ck-suggestion-'+_0x50ad2f),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':_0x2f45cc}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x59d58b['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)),_0x59d58b;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x2cc484,_0x31a15e,_0x11caac)=>{this['_descriptionElement']['innerHTML']=_0x11caac;});}['_createButton'](_0x5321c8,_0x4c8ff1,_0x3cc69b,_0xd38c73,_0x327425){const _0x378ad6=new _0x58c753(this['locale']);return _0x378ad6['set']({'label':_0x5321c8,'icon':_0x4c8ff1,'tooltip':!0x0,'tooltipPosition':_0x327425}),_0x378ad6['extendTemplate']({'attributes':{'class':_0x3cc69b}}),_0x378ad6['on']('execute',()=>{this['fire'](_0xd38c73,this['_model']['id']);}),_0x378ad6;}['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(_0x5891c6,_0x418959,_0x3dc9c9,_0x1c3dcb){super(_0x5891c6,_0x418959,_0x3dc9c9,_0x1c3dcb),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5cb1bb=>_0x5cb1bb&&_0x5cb1bb[0x0]?_0x5cb1bb[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x357eba,_0x137e69)=>{let _0x2c72='';for(const _0x253aa0 of _0x357eba)_0x2c72+='<p>'+ds(_0x253aa0['content'],_0x253aa0['color'])+'</p>';return _0x137e69?_0x2c72:_0x2acff3(_0x2c72,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x5891c6,'Accept\x20suggestion'),_0x22772e['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x5891c6,'Discard\x20suggestion'),_0x22772e['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x4cc9e8(_0x5891c6,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}}function ds(_0x29ae5b,_0x1462a8){let _0x46ae27='';return _0x46ae27+=_0x29ae5b['split']('*')['map']((_0x4bca44,_0x12956b)=>_0x12956b%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x4bca44)+'</span>':us(_0x4bca44))['join'](''),_0x1462a8&&(_0x46ae27+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1462a8['value']+'\x22\x20title=\x22'+_0x1462a8['title']+'\x22></span>'),_0x46ae27;}function us(_0x5a124f){const _0x3dfc88=document['createElement']('span');return _0x3dfc88['innerText']=_0x5a124f,_0x3dfc88['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 _0x5511a1{static get['requires'](){return[p,_0xd07c79,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}['_handleSuggestionControllerDelayed'](_0x44364e,_0x22ef76){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x45d594,_0x24f8d6]of this['_handleControllerBuffer']){const _0x32e255=this['_suggestionToController']['has'](_0x45d594);_0x32e255||_0x24f8d6?_0x32e255&&_0x24f8d6&&this['_destroyController'](_0x45d594):this['_initializeController'](_0x45d594);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x44364e,_0x22ef76);}['init'](){const _0x5d44b1=this['editor'],_0x31b151=_0x5d44b1['plugins']['get']('TrackChangesEditing'),_0x4a1812=_0x5d44b1['plugins']['get']('Annotations'),_0x58f9a4=_0x5d44b1['plugins']['get']('EditorAnnotations'),_0x39708a=_0x5d44b1['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x58f9a4['addSourceCollector'](()=>{const _0x9035df=[];for(const [_0x2e3ff0,_0x13e6eb]of Array['from'](this['_suggestionToController'])){const _0x39cccc=_0x2e3ff0['getAllAdjacentSuggestions'](),_0x29ca05=[];for(const _0x227da4 of _0x39cccc){if(!_0x227da4['isInContent'])continue;if(_0x227da4['isMultiRange']){_0x29ca05['push'](..._0x227da4['getRanges']());continue;}const _0x2cbd4a=_0x227da4['getFirstRange']();if(_0x29ca05['length']>0x0){const _0x4a6c8c=_0x29ca05[0x0]['getJoined'](_0x2cbd4a);if(_0x4a6c8c){_0x29ca05[0x0]=_0x4a6c8c;continue;}}_0x29ca05['push'](_0x2cbd4a);}_0x9035df['push']([_0x13e6eb['view'],_0x29ca05]);}return _0x9035df;}),this['listenTo'](_0x31b151,'suggestionLoaded',(_0x4c360f,_0x4330ca)=>{this['listenTo'](_0x4330ca,'change:previous',(_0x5088a7,_0xefa9c8,_0x14152d,_0x3ed7f2)=>{_0x4330ca['isInContent']&&(null==_0x14152d?(this['_updateController'](_0x3ed7f2['head']),this['_handleSuggestionControllerDelayed'](_0x4330ca,!0x1)):(this['_updateController'](_0x14152d['head']),null==_0x3ed7f2&&this['_handleSuggestionControllerDelayed'](_0x4330ca,!0x0)));}),null!==_0x4330ca['previous']?this['_updateController'](_0x4330ca['head']):this['_handleSuggestionControllerDelayed'](_0x4330ca,!0x1);}),this['listenTo'](_0x31b151,'suggestionUnloaded',(_0x502481,_0x21d389,_0x1a9f73)=>{this['stopListening'](_0x21d389,'change:previous'),this['_handleControllerBuffer']['delete'](_0x21d389),this['_suggestionToController']['has'](_0x21d389)&&this['_destroyController'](_0x21d389),_0x1a9f73&&this['_updateController'](_0x1a9f73['head']);}),this['listenTo'](_0x31b151,'suggestionChanged',(_0xa4c3b5,_0x259e34)=>{this['_updateController'](_0x259e34);}),this['listenTo'](_0x4a1812,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x39708a,'addComment',(_0x192fcd,{threadId:_0x4c5f05,isFromAdapter:_0x5a6aa6})=>{if(_0x5a6aa6||!_0x31b151['hasSuggestion'](_0x4c5f05))return;const _0x3ef595=_0x31b151['getSuggestion'](_0x4c5f05);this['_suggestionToController']['get'](_0x3ef595)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x141f51=this['editor']['plugins']['get']('Annotations'),_0x2a294a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d08b2=Array['from'](_0x141f51['activeAnnotations'],_0x3f9986=>_0x3f9986['innerView'])['filter'](_0x2759cf=>this['_viewToController']['has'](_0x2759cf)),_0x3880ee=[];for(const _0x3665b8 of _0x1d08b2){const _0x46e978=this['_viewToController']['get'](_0x3665b8)['model']['getAllAdjacentSuggestions']();_0x3880ee['push'](..._0x46e978['reduce']((_0x3fd4e1,_0x205760)=>[..._0x3fd4e1,..._0x205760['getMarkerNames']()],[]));}_0x2a294a['activeMarkers']=_0x3880ee;}['_addUIComponentsToFactory'](){const _0x262a80=this['editor'],_0x5b147d=_0x262a80['locale'],_0x320122=o(_0x5b147d,'Track\x20changes'),_0xc9790c=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x320122,'commandName':'trackChanges'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5b147d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5b147d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5b147d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5b147d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'})}]);for(const _0x45a80e of _0xc9790c)if(ae(_0x45a80e)){const _0x13af3c=_0x262a80['commands']['get'](_0x45a80e['model']['commandName']);_0x45a80e['model']['bind']('isOn','isEnabled')['to'](_0x13af3c,'value','isEnabled');}_0x262a80['ui']['componentFactory']['add']('trackChanges',_0x13f76d=>this['_createToolbarButton'](_0x13f76d,_0xc9790c,_0x320122)),_0x262a80['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5914a9=>this['_createMenuBarMenu'](_0x5914a9,_0xc9790c,_0x320122));}['_createToolbarButton'](_0x462394,_0x1cb8b6,_0x56cfe5){const _0x48270e=zt(_0x462394,Zt),_0x16c0b5=this['editor']['commands']['get']('trackChanges');_0x48270e['buttonView']['set']({'tooltip':_0x56cfe5,'label':_0x56cfe5,'icon':ie}),_0x48270e['buttonView']['bind']('isOn')['to'](_0x16c0b5,'value'),_0x48270e['buttonView']['on']('execute',()=>{_0x16c0b5['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x48270e,_0x1cb8b6);const _0x4dc7e3=[];for(const _0xb8c0a8 of _0x1cb8b6)ae(_0xb8c0a8)&&_0x4dc7e3['push'](this['editor']['commands']['get'](_0xb8c0a8['model']['commandName']));const _0xf8ecfc=_0x48270e['buttonView'];return _0xf8ecfc['actionView']['unbind']('isEnabled'),_0xf8ecfc['arrowView']['unbind']('isEnabled'),_0xf8ecfc['actionView']['bind']('isEnabled')['to'](_0x16c0b5,'isEnabled'),_0xf8ecfc['arrowView']['bind']('isEnabled')['toMany'](_0x4dc7e3,'isEnabled',(..._0x29de0e)=>_0x29de0e['some'](_0x254801=>_0x254801)),_0x48270e['on']('execute',_0x5d4094=>{this['editor']['execute'](_0x5d4094['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x48270e;}['_createMenuBarMenu'](_0x406c13,_0x529beb,_0x241ca6){const _0x228706=new Kt(_0x406c13),_0x4c7beb=this['editor']['commands']['get']('trackChanges');_0x228706['buttonView']['set']({'label':_0x241ca6,'icon':ie});const _0x2d101e=new Qt(_0x406c13);for(const _0x391d2c of _0x529beb){if('separator'==_0x391d2c['type']){_0x2d101e['items']['add'](new Jt(_0x406c13));continue;}const _0x2fdc34=new Xt(_0x406c13,_0x228706),_0x7ff113=new Yt(_0x406c13),_0x38db21=_0x391d2c['model'];_0x7ff113['bind'](...Object['keys'](_0x38db21))['to'](_0x38db21),_0x7ff113['delegate']('execute')['to'](_0x228706),_0x7ff113['on']('execute',()=>{this['editor']['execute'](_0x38db21['commandName']),this['editor']['editing']['view']['focus']();}),_0x2fdc34['children']['add'](_0x7ff113),_0x2d101e['items']['add'](_0x2fdc34);}return _0x228706['bind']('isEnabled')['to'](_0x4c7beb,'isEnabled'),_0x228706['panelView']['children']['add'](_0x2d101e),_0x228706;}['_initializeController'](_0x2e8e79){const _0x321748=this['editor'],_0x3fdfcd=_0x321748['config'],_0x27bacc=_0x321748['plugins']['get']('Annotations'),_0x186b7d=_0x321748['plugins']['get']('CommentsRepository'),_0x37fee5=_0x321748['plugins']['get']('EditorAnnotations'),_0x142ca2=_0x321748['plugins']['get'](_0xd07c79)['me'],_0x8bf83f=_0x3fdfcd['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0xd84fc5,CommentThreadInputView:_0x251a69}=_0x321748['plugins']['get']('CommentsUI');let _0x3aba7a,_0x18185f;this['_annotationViews']['has'](_0x2e8e79['id'])?(_0x18185f=this['_annotationViews']['get'](_0x2e8e79['id']),_0x3aba7a=_0x18185f['mainView']):(_0x3aba7a=new _0x8bf83f(_0x321748['locale'],_0x2e8e79,_0x142ca2,{'disableComments':this['_disableComments'],'editorConfig':_0x3fdfcd['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x3fdfcd['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3fdfcd['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3fdfcd['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2638f4(_0x3fdfcd['get']('locale')),'CommentView':_0x3fdfcd['get']('comments')['CommentView'],'CommentsListView':_0xd84fc5,'CommentThreadInputView':_0x251a69}),_0x3aba7a['acceptButton']['on']('execute',()=>{_0x321748['editing']['view']['focus']();}),_0x3aba7a['discardButton']['on']('execute',()=>{_0x321748['editing']['view']['focus']();}),_0x18185f=_0x27bacc['createAnnotationView'](this['editor']['locale'],_0x3aba7a),_0x18185f['bind']('isDirty')['to'](_0x3aba7a,'isDirty'),_0x18185f['bind']('length')['to'](_0x3aba7a),_0x18185f['bind']('type')['to'](_0x3aba7a,'type',_0x1677c0=>'suggestion-'+_0x1677c0),this['_annotationViews']['set'](_0x2e8e79['id'],_0x18185f));const _0x5d466c=_0x186b7d['createCommentThreadController'](_0x2e8e79['commentThread'],_0x3aba7a),_0x26fa7e=new oe(_0x321748,_0x2e8e79,_0x3aba7a,_0x5d466c),_0x39742c=_0x2e8e79['getAllAdjacentSuggestions']()['filter'](_0x3bdcb8=>_0x3bdcb8['isInContent']);_0x3aba7a['descriptionParts']=_0x321748['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x39742c),this['_suggestionToController']['set'](_0x2e8e79,_0x26fa7e),this['_viewToController']['set'](_0x3aba7a,_0x26fa7e);const _0x4102da=_0x27bacc['createAnnotation']({'view':_0x18185f,'target':()=>{const _0x110cb7=[],_0x127794=_0x2e8e79['getAllAdjacentSuggestions']()['filter'](_0x175bb3=>_0x175bb3['isInContent']);for(const _0x18fd7f of _0x127794)_0x110cb7['push'](..._0x18fd7f['getMarkers']());return _0x1f8725(_0x321748['editing'],_0x110cb7);},'type':()=>'suggestion-'+_0x26fa7e['view']['type']});_0x186b7d['_bindAnnotationToEditors'](_0x3aba7a,_0x4102da),_0x27bacc['add'](_0x4102da),_0x37fee5['registerAnnotation'](_0x4102da);}['_destroyController'](_0x1268da){const _0x27c1c6=this['editor']['plugins']['get']('CommentsRepository'),_0x18ad7a=this['editor']['plugins']['get']('Annotations'),_0x37f6e8=this['_suggestionToController']['get'](_0x1268da),_0x29dc28=_0x37f6e8['view'],_0x62907=_0x18ad7a['getByInnerView'](_0x29dc28);_0x27c1c6['_unbindEditors'](_0x29dc28),_0x62907&&_0x18ad7a['remove'](_0x62907),this['_suggestionToController']['delete'](_0x1268da),this['_viewToController']['delete'](_0x29dc28),_0x37f6e8['destroy']();}['_updateController'](_0x26c874){if(!_0x26c874['isInContent']||!this['_suggestionToController']['has'](_0x26c874))return;const _0x105298=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c5ece=this['_suggestionToController']['get'](_0x26c874),_0x57db35=_0x26c874['getAllAdjacentSuggestions']();_0x1c5ece['view']['descriptionParts']=_0x105298['descriptionFactory']['getDescriptions'](_0x57db35);}['destroy'](){for(const _0x2c5435 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2c5435);for(const _0x22b37d of this['_annotationViews']['values']())_0x22b37d['mainView']['destroy']();super['destroy']();}constructor(_0x467eab){super(_0x467eab),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4aff4c=this['editor']['config'];_0x4aff4c['define']('trackChanges.SuggestionThreadView',ne),_0x4aff4c['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4aff4c['get']('trackChanges.disableComments');}}function ae(_0x4867b8){return'model'in _0x4867b8;}class k extends _0x5511a1{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x347caa){this['editor']['plugins']['get'](p)['adapter']=_0x347caa;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x104b7c){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x104b7c);}['getSuggestions']({skipNotAttached:_0x39c8fb=!0x1,toJSON:_0x57cb4e=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x39c8fb,'toJSON':_0x57cb4e});}['getSuggestion'](_0x1217d2){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1217d2);}}const T=['Pagination'];class P extends _0x5511a1{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4cf8c1=this['editor'];if(_0x4cf8c1['config']['define']('trackChangesData.editorCreator',_0xf3cd24=>{const _0x1d7892=_0x4cf8c1['model']['document']['getRootNames']()['reduce']((_0x3bbb01,_0x27f5dd)=>(_0x3bbb01[_0x27f5dd]='',_0x3bbb01),{});return _0x4cf8c1['constructor']['create'](_0x1d7892,_0xf3cd24);}),'function'!=typeof _0x4cf8c1['config']['get']('trackChangesData')['editorCreator'])throw new _0x5a2cc3('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2367df){return N(this['editor'],!0x0,_0x2367df);}['getDataWithDiscardedSuggestions'](_0x4f3755){return N(this['editor'],!0x1,_0x4f3755);}}class D extends _0x5511a1{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(_0x35adf2){super(_0x35adf2),this['result']='end';}}function v(_0x47c070){return void 0x0!==_0x47c070['getRootsAttributes'];}async function N(_0x236721,_0x294856,_0x8205bf){const _0x230082=_0x261009(_0x236721,T);_0x230082['plugins']['push'](p,D),_0x230082['rootsAttributes']=v(_0x236721)?_0x236721['getRootsAttributes']():void 0x0;const _0x5cdc13=document['createDocumentFragment'](),_0x11a499=_0x236721['config']['get']('trackChangesData')['editorCreator'],_0x54d770=await _0x11a499(_0x230082,()=>function(_0x41c984){const _0xcf8eed=document['createElement']('div');return _0x41c984['appendChild'](_0xcf8eed),_0xcf8eed;}(_0x5cdc13));!function(_0x22b56e,_0x1ef56c){const _0x40a994=_0x22b56e['model']['document']['getRootNames']()['reduce']((_0x14eca8,_0x2275b2)=>(_0x14eca8[_0x2275b2]=_0x22b56e['data']['get']({'rootName':_0x2275b2}),_0x14eca8),{}),_0x3977d4=_0x22b56e['plugins']['get']('Users')['users']['map'](_0x327bec=>({'id':_0x327bec['id'],'name':_0x327bec['name']})),_0x13a407=_0x22b56e['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x25980b=_0x22b56e['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x20a84f=_0x1ef56c['plugins']['get']('Users'),_0x13b780=_0x1ef56c['plugins']['get']('TrackChangesEditing'),_0x469c1f=_0x1ef56c['plugins']['get']('CommentsRepository');for(const _0x477505 of _0x3977d4)_0x20a84f['getUser'](_0x477505['id'])||_0x20a84f['addUser'](_0x477505);_0x20a84f['me']||_0x20a84f['useAnonymousUser']();for(const _0xa4e0e2 of _0x13a407)_0x13b780['addSuggestionData'](_0xa4e0e2);for(const _0x25165c of _0x25980b)_0x469c1f['addCommentThread'](_0x25165c);_0x1ef56c['data']['set'](_0x40a994);}(_0x236721,_0x54d770),_0x54d770['execute'](_0x294856?'acceptAllSuggestions':'discardAllSuggestions');const _0x7fb909=v(_0x54d770)?_0x54d770['getFullData'](_0x8205bf):_0x54d770['data']['get'](_0x8205bf);return await _0x54d770['destroy'](),_0x7fb909;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};