@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240608.0 → 0.0.0-nightly-20240610.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as ts,Plugin as _0x463102,PendingActions as _0x5e8ae5,icons as _0xba276b}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3085e6,ObservableMixin as _0x2e2300,uid as _0x37a894,insertToPriorityArray as _0x363cca,priorities as _0x3523b5,logWarning as _0x20ea4c,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x31e25a,View as _0x579618,ButtonView as _0x216667,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 _0x2074d8,hashObject as _0x3a596d,surroundingMarkersDetector as _0x1383be,trimHtml as _0x2aedfd,UserView as _0x11ad95,getDateTimeFormatter as _0x293712,getAllMarkersDomElementsSorted as _0x31b799,sanitizeEditorConfig as _0x59af6b}from'ckeditor5-collaboration/dist/index.js';import{Element as _0xa99d4,LiveRange as _0x533200,LivePosition as _0x293de4}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4eeadc,toWidget as _0x26bf30}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x2191c0,set as _0x121574,isEqual as _0x215c3b,unset as _0x2f21de,omit as Bt}from'lodash-es';import{Delete as _0x2df775,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x8b26d0,ShiftEnter as _0x49800b}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0xe5c30d,_0x49ed37){super(_0xe5c30d),this['_enabledCommands']=_0x49ed37,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x5d6264 of this['editor']['commands']['commands']())_0x5d6264['affectsData']&&!this['_enabledCommands']['has'](_0x5d6264)&&_0x5d6264['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xe06895 of this['editor']['commands']['commands']())_0xe06895['affectsData']&&!this['_enabledCommands']['has'](_0xe06895)&&_0xe06895['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x93837a,_0x4192c4){super(_0x93837a),this['_suggestions']=_0x4192c4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x31998f){const _0x1f9a03=this['_suggestions']['get'](_0x31998f);if(!_0x1f9a03)throw new _0x3085e6('track-changes-accept-suggestion-not-found',this);const _0x8937a8=_0x1f9a03['getRanges']();this['editor']['model']['canEditAt'](_0x8937a8)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1f9a03);}}class B extends ts{['_suggestions'];constructor(_0x3d7b16,_0x17eb9d){super(_0x3d7b16),this['_suggestions']=_0x17eb9d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x12666f){const _0x250ba3=this['_suggestions']['get'](_0x12666f);if(!_0x250ba3)throw new _0x3085e6('track-changes-discard-suggestion-not-found',this);const _0x377cc5=_0x250ba3['getRanges']();this['editor']['model']['canEditAt'](_0x377cc5)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x250ba3);}}function ss(_0x22dac4){return _0x22dac4['sort']((_0x2e0a7a,_0x5b52d2)=>'deletion'==_0x2e0a7a['type']&&'deletion'!=_0x5b52d2['type']?-0x1:'deletion'!=_0x2e0a7a['type']&&'deletion'==_0x5b52d2['type']?0x1:0x0);}function to(_0x2938bb,_0x394cb9){let _0xdd676c,_0x5f0d21=0x0;const _0x31fbdb=[],_0x4d723e=_0x394cb9['schema'];for(;_0x5f0d21<_0x2938bb['length'];){const _0x40a98d=_0x2938bb[_0x5f0d21],_0x487214=_0x2938bb[_0x5f0d21+0x1];_0xdd676c||(_0xdd676c=_0x394cb9['createPositionBefore'](_0x40a98d)),co(_0x394cb9,_0x40a98d,_0x487214)||(_0x31fbdb['push'](_0x394cb9['createRange'](_0xdd676c,_0x4d723e['isObject'](_0x40a98d)?_0x394cb9['createPositionAfter'](_0x40a98d):_0x394cb9['createPositionAt'](_0x40a98d,'end'))),_0xdd676c=null),_0x5f0d21++;}return _0x31fbdb;}function co(_0x44f137,_0x3b01c8,_0x139144){if(!_0x139144)return!0x1;const _0x18a049=_0x44f137['createPositionAfter'](_0x3b01c8),_0x4324e4=_0x44f137['createPositionBefore'](_0x139144);return _0x18a049['isTouching'](_0x4324e4);}function rs(_0x1fcb9e,_0x416a1a,_0x1166fd){for(;_0x1166fd['length'];){const _0x58f7f7=_0x1166fd['splice'](0x0,0x64);_0x1fcb9e['change'](()=>{for(const _0x143ef7 of _0x58f7f7)_0x143ef7['isInContent']&&_0x416a1a['execute'](_0x143ef7['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x265c70,_0x4dd2b6,_0x3a763d){super(_0x265c70),this['_command']=_0x4dd2b6,this['_suggestions']=_0x3a763d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5e0f58=Array['from'](this['_suggestions']['values']())['some'](_0x35ddb8=>_0x35ddb8['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5e0f58;}['execute'](){const _0x301d5d=ss(Array['from'](this['_suggestions']['values']()));for(const _0x5d66ac of _0x301d5d){const _0x284c17=_0x5d66ac['getRanges']();if(!this['editor']['model']['canEditAt'](_0x284c17))return;}rs(this['editor']['model'],this['_command'],_0x301d5d);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3bbc2c,_0x146684,_0x240fa4){super(_0x3bbc2c),this['_command']=_0x146684,this['_suggestions']=_0x240fa4,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x33c538=this['editor']['model']['document']['selection'],_0x5b5002=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0xd4d3ea,_0xc23c3){const _0x3e6d19=Array['from'](_0xd4d3ea['getRanges']()),_0x1689d0=new Set();for(const _0x4161db of _0xc23c3)if(_0x4161db['isInContent']){for(const _0x337d26 of _0x3e6d19)for(const _0x5406b1 of _0x4161db['getRanges']())(_0x337d26['isIntersecting'](_0x5406b1)||_0xd4d3ea['isCollapsed']&&!_0x4161db['isMultiRange']&&_0x4161db['next']&&_0x5406b1['end']['isTouching'](_0x337d26['start']))&&_0x1689d0['add'](_0x4161db);}return _0x1689d0;}(_0x33c538,_0x5b5002),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4d0f26=ss(Array['from'](this['_selectedSuggestions']));for(const _0x9a21f3 of _0x4d0f26){const _0x40c876=_0x9a21f3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x40c876))return;}rs(this['editor']['model'],this['_command'],_0x4d0f26);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x2e2300(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x13e803,_0x278658){super(),this['id']=_0x278658['id'],this['type']=_0x278658['type'],this['subType']=_0x278658['subType']||null,this['author']=_0x278658['author'],this['creator']=_0x278658['creator']||_0x278658['author'],this['isExternal']=Boolean(_0x278658['attributes']&&_0x278658['attributes']['@external']),this['data']=null,this['_model']=_0x13e803,this['_onAccept']=_0x278658['onAccept'],this['_onDiscard']=_0x278658['onDiscard'],this['_onAttributesChange']=_0x278658['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x278658['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x1ddf1e=this;for(;_0x1ddf1e['previous'];)_0x1ddf1e=_0x1ddf1e['previous'];return _0x1ddf1e;}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'](_0x204bbe){this['_markerNames']['add'](_0x204bbe);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xc20c28=>this['_model']['markers']['get'](_0xc20c28))['filter'](_0x40a2f8=>_0x40a2f8);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x32b1a0=>{for(const _0x1a1821 of this['getMarkers']())_0x32b1a0['removeMarker'](_0x1a1821);}),this['_markerNames']['clear']();}['removeMarker'](_0x43a893){this['_model']['change'](_0x15b199=>{_0x15b199['removeMarker'](_0x43a893);}),this['_markerNames']['delete'](_0x43a893);}['addRange'](_0x45c554){const _0x43fbd7='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x43fbd7),this['_model']['change'](_0x42eaa0=>{_0x42eaa0['addMarker'](_0x43fbd7,{'range':_0x45c554,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5233a0){for(const _0x2ddf8e of this['getRanges']())if(_0x2ddf8e['isIntersecting'](_0x5233a0))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x237c50=>_0x237c50['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2c078e,_0x18d8f2)=>[..._0x2c078e,..._0x18d8f2['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1116f7=this['getRanges']();if(0x1!=_0x1116f7['length'])return null;const _0x473ec1=_0x1116f7[0x0],_0x50d143=_0x473ec1['start']['nodeAfter'],_0x3a480f=_0x473ec1['end']['nodeBefore'];return _0x50d143 instanceof _0xa99d4?_0x50d143!=_0x3a480f?null:_0x50d143: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 _0x245046=[];let _0x20b759=this['head'];for(;_0x20b759;)_0x245046['push'](_0x20b759),_0x20b759=_0x20b759['next'];return _0x245046;}['setAttribute'](_0x149f5c,_0x11401d){const _0x3d67e1=_0x2191c0(this['attributes']);_0x121574(_0x3d67e1,_0x149f5c,_0x11401d),_0x215c3b(_0x3d67e1,this['attributes'])||(this['attributes']=_0x3d67e1,this['_onAttributesChange'](_0x3d67e1));}['removeAttribute'](_0x49d51e){const _0x3bbda1=_0x2191c0(this['attributes']);_0x2f21de(_0x3bbda1,_0x49d51e),_0x215c3b(_0x3bbda1,this['attributes'])||(this['attributes']=_0x3bbda1,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 _0x37a894()['substr'](0x1,0x5);}}function o(_0x29aaa2,_0x3e5df4,_0x4f8ba4){const t=_0x29aaa2['t'];switch(_0x3e5df4){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',_0x4f8ba4);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4f8ba4);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4f8ba4);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4f8ba4);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4f8ba4);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',_0x4f8ba4);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4f8ba4);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',_0x4f8ba4);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4f8ba4);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4f8ba4);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4f8ba4);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4f8ba4);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4f8ba4);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4f8ba4);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4f8ba4);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4f8ba4);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4f8ba4);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4f8ba4);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4f8ba4);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4f8ba4);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4f8ba4);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4f8ba4);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4f8ba4);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'},_0x4f8ba4);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4f8ba4);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4f8ba4);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4f8ba4);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4f8ba4);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4f8ba4);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'},_0x4f8ba4);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4f8ba4);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4f8ba4);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4f8ba4);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4f8ba4);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'},_0x4f8ba4);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4f8ba4);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'},_0x4f8ba4);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'},_0x4f8ba4);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4f8ba4);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'},_0x4f8ba4);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4f8ba4);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'},_0x4f8ba4);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4f8ba4);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4f8ba4);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'},_0x4f8ba4);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'},_0x4f8ba4);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 _0x3e5df4;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x18800f,_0x3cca0f){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x18800f,this['_locale']=_0x3cca0f;}['getDescriptions'](_0x403055){const _0x3da5ce=[],_0x323ff3=new Set(),_0x157e95=new Set();for(let _0x32222f=0x0;_0x32222f<_0x403055['length'];_0x32222f++){const _0x49eb91=_0x403055[_0x32222f];if(!_0x49eb91['isInContent'])continue;const _0x29124e=this['_handleCustomCallbackDescription'](_0x49eb91);if(_0x29124e){if(null!=_0x49eb91['subType']){if(_0x323ff3['has'](_0x49eb91['subType']))continue;_0x323ff3['add'](_0x49eb91['subType']);}_0x3da5ce['push'](_0x29124e);}else{if('attribute'!=_0x49eb91['type'])'insertion'!=_0x49eb91['type']&&'deletion'!=_0x49eb91['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3da5ce,_0x49eb91,_0x403055[_0x32222f+0x1]);else{const _0x2e5404=_0x49eb91['data']['key'];if(_0x157e95['has'](_0x2e5404))continue;_0x157e95['add'](_0x49eb91['data']['key']),_0x2e5404==m?this['_handleRenameSuggestionDescription'](_0x3da5ce,_0x49eb91):this['_handleAttributeSuggestionDescription'](_0x3da5ce,_0x49eb91);}}}return this['_resolveDescriptionItems'](_0x3da5ce);}['registerDescriptionCallback'](_0x2bf524){this['_customCallbacks']['push'](_0x2bf524);}['registerElementLabel'](_0x5f2705,_0x5d107b,_0x2667b5=_0x3523b5['normal']){'function'==typeof _0x5f2705?_0x363cca(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5f2705,'label':_0x5d107b,'priority':_0x2667b5}):this['_itemLabels']['set'](_0x5f2705,_0x5d107b);}['registerAttributeLabel'](_0x411359,_0x13482d){this['_attributeLabels']['set'](_0x411359,_0x13482d);}['getItemLabel'](_0x30b646,_0x2a9291=0x1){let _0x45975a;for(const _0x342605 of this['_itemLabelsCallbacks'])if(_0x342605['matchingCallback'](_0x30b646)){_0x45975a=_0x342605['label'];break;}return _0x45975a||(_0x45975a=this['_itemLabels']['get'](_0x30b646['name'])),_0x45975a?_0x45975a(_0x2a9291):0x1!==_0x2a9291?_0x2a9291+'\x20'+_0x30b646['name']+'s':''+_0x30b646['name'];}['_addDescriptionItems'](_0x43881f,_0x503b2c){const _0x3a22cc=_0x503b2c['getFirstRange']()['getWalker'](),_0x56a729='insertion'==_0x503b2c['type']?'add':'remove';for(const _0x45b879 of _0x3a22cc){const _0x47f725=_0x45b879['item'],_0x389f47=_0x43881f[_0x43881f['length']-0x1];if(_0x47f725['is']('$textProxy'))_0x389f47&&_0x389f47['type']['indexOf']('Container')>-0x1&&_0x43881f['pop'](),_0x389f47&&'text'==_0x389f47['type']?_0x389f47[_0x56a729]+=_0x47f725['data']:_0x43881f['push']({'type':'text','add':'add'==_0x56a729?_0x47f725['data']:'','remove':'remove'==_0x56a729?_0x47f725['data']:''});else{if(this['_schema']['isObject'](_0x47f725)){const _0x2a6be0=_0x47f725;if(_0x389f47&&_0x389f47['type']['indexOf']('Container')>-0x1&&_0x43881f['pop'](),'elementEnd'==_0x45b879['type'])continue;_0x389f47&&_0x389f47['type']==_0x56a729+'Object'&&_0x389f47['element']['name']==_0x2a6be0['name']?_0x389f47['quantity']++:_0x43881f['push']({'type':_0x56a729+'Object','element':_0x2a6be0,'quantity':0x1}),_0x3a22cc['skip'](_0x29ce06=>!('elementEnd'==_0x29ce06['type']&&_0x29ce06['item']==_0x47f725));}else{if(this['_schema']['checkChild'](_0x47f725,'$text')||_0x47f725['is']('element','softBreak')){const _0x3995c5=_0x47f725;if('add'==_0x56a729&&'elementStart'==_0x45b879['type']||'remove'==_0x56a729&&'elementEnd'==_0x45b879['type'])continue;if(_0x389f47&&-0x1==_0x389f47['type']['indexOf']('Container')){'text'==_0x389f47['type']&&(_0x389f47[_0x56a729]+='\x0a');continue;}let _0x5c79f1;if(_0x5c79f1='add'==_0x56a729?_0x3995c5['nextSibling']&&!this['_schema']['isObject'](_0x3995c5['nextSibling'])?_0x3995c5['nextSibling']:null:_0x3995c5['previousSibling']&&!this['_schema']['isObject'](_0x3995c5['previousSibling'])?_0x3995c5['previousSibling']:null,_0x3995c5['isEmpty']||_0x5c79f1&&_0x5c79f1['isEmpty']){const _0xb069f0=_0x5c79f1&&_0x5c79f1['isEmpty']?_0x5c79f1:_0x3995c5;_0x389f47&&_0x389f47['type']==_0x56a729+'EmptyContainer'&&_0x389f47['element']['name']==_0xb069f0['name']?_0x389f47['quantity']++:_0x43881f['push']({'type':_0x56a729+'EmptyContainer','element':_0xb069f0,'quantity':0x1});}else _0x43881f['push']({'type':_0x56a729+'Container','element':_0x3995c5});}}}}}['_resolveDescriptionItems'](_0x2117ce){const _0x1600df=this['_locale'],_0x16b85c=[],_0x2f55e7=[],_0x5cb080=[];for(const _0x135d92 of _0x2117ce)switch(_0x135d92['type']){case'text':if(_0x135d92['add']=_0x135d92['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x135d92['remove']=_0x135d92['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x135d92['add']&&''!=_0x135d92['remove']){_0x16b85c['push']({'type':'replace','content':o(_0x1600df,'REPLACE_TEXT',['\x22'+_0x135d92['remove']+'\x22','\x22'+_0x135d92['add']+'\x22'])});continue;}if(null!=_0x135d92['add']['match'](/^ +$/)){_0x16b85c['push']({'type':'insertion','content':o(_0x1600df,'*Insert:*\x20%0',o(_0x1600df,'ELEMENT_SPACE',_0x135d92['add']['length']))});continue;}if(null!=_0x135d92['remove']['match'](/^ +$/)){_0x16b85c['push']({'type':'deletion','content':o(_0x1600df,'*Remove:*\x20%0',o(_0x1600df,'ELEMENT_SPACE',_0x135d92['remove']['length']))});continue;}if(''!=_0x135d92['add']){_0x16b85c['push']({'type':'insertion','content':o(_0x1600df,'*Insert:*\x20%0','\x22'+_0x135d92['add']+'\x22')});continue;}_0x16b85c['push']({'type':'deletion','content':o(_0x1600df,'*Remove:*\x20%0','\x22'+_0x135d92['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x16b85c['push']({'type':'insertion','content':o(_0x1600df,'*Insert:*\x20%0',this['getItemLabel'](_0x135d92['element'],_0x135d92['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x16b85c['push']({'type':'deletion','content':o(_0x1600df,'*Remove:*\x20%0',this['getItemLabel'](_0x135d92['element'],_0x135d92['quantity']))});continue;case'addContainer':_0x16b85c['push']({'type':'insertion','content':o(_0x1600df,'*Split:*\x20%0',this['getItemLabel'](_0x135d92['element'],_0x135d92['quantity']))});continue;case'removeContainer':_0x16b85c['push']({'type':'deletion','content':o(_0x1600df,'*Merge:*\x20%0',this['getItemLabel'](_0x135d92['element'],_0x135d92['quantity']))});continue;case'addFormat':_0x2f55e7['push'](_0x135d92['key']);continue;case'removeFormat':_0x5cb080['push'](_0x135d92['key']);continue;default:_0x16b85c['push'](_0x135d92);}if(_0x2f55e7['length']){const _0x58d409=_0x2f55e7['map'](_0x4d019a=>this['_attributeLabels']['has'](_0x4d019a)?this['_attributeLabels']['get'](_0x4d019a):_0x4d019a)['join'](',\x20');_0x16b85c['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x58d409)});}if(_0x5cb080['length']){const _0x125f2d=_0x5cb080['map'](_0x51e0cd=>this['_attributeLabels']['has'](_0x51e0cd)?this['_attributeLabels']['get'](_0x51e0cd):_0x51e0cd)['join'](',\x20');_0x16b85c['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x125f2d)});}return _0x16b85c;}['_handleCustomCallbackDescription'](_0x3b1161){for(const _0x38a9e4 of this['_customCallbacks']){const _0x4488d4=_0x38a9e4(_0x3b1161);if(_0x4488d4&&'type'in _0x4488d4)return _0x4488d4;}}['_handleAttributeSuggestionDescription'](_0x139f86,_0x1bfb49){const _0x126f1a=_0x1bfb49['data'],_0x3d754f=void 0x0===_0x126f1a['newValue']?'removeFormat':'addFormat';_0x139f86['push']({'type':_0x3d754f,'key':_0x126f1a['key']});}['_handleRenameSuggestionDescription'](_0x41a56e,_0x3b4eee){_0x41a56e['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3b4eee['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xdd25a4,_0x2792d3,_0x168295){if(this['_addDescriptionItems'](_0xdd25a4,_0x2792d3),_0x168295&&_0x168295['getFirstRange']()&&!_0x2792d3['getFirstRange']()['end']['isEqual'](_0x168295['getFirstRange']()['start'])){const _0x349a51=_0xdd25a4[_0xdd25a4['length']-0x1],_0x43d234='insertion'==_0x2792d3['type']?'add':'remove';_0x349a51&&'text'==_0x349a51['type']&&(_0x349a51[_0x43d234]+='\x0a');}}}class E extends _0x463102{['afterInit'](){const _0x34377f=this['editor'],_0x5754e4=_0x34377f['plugins']['get']('TrackChangesEditing');_0x34377f['commands']['get']('showAIAssistant')&&_0x5754e4['enableCommand']('showAIAssistant');}}class V extends _0x463102{['afterInit'](){const _0xb5a222=this['editor'],_0x2ffdb6=_0xb5a222['locale'];if(!_0xb5a222['plugins']['has']('AlignmentEditing'))return;const _0x258f60=_0xb5a222['plugins']['get']('TrackChangesEditing');_0x258f60['enableDefaultAttributesIntegration']('alignment'),_0x258f60['registerBlockAttribute']('alignment'),_0x258f60['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2ffdb6,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x391cf3=this['editor'],_0x224238=_0x391cf3['locale'];_0x391cf3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ef43e=>{if('formatBlock'!=_0x5ef43e['type'])return;const {data:_0x17c8ba}=_0x5ef43e;if(_0x17c8ba&&'alignment'==_0x17c8ba['commandName']){const _0x4e577b=_0x17c8ba['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x224238,'*Format:*\x20%0',function(_0x1715a1){switch(_0x1715a1){case'left':return o(_0x224238,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x224238,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x224238,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x224238,'FORMAT_JUSTIFY_TEXT');}}(_0x4e577b))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x463102{['afterInit'](){const _0x531165=this['editor'],_0x995db6=_0x531165['plugins']['get']('TrackChangesEditing'),_0x4ceefb=_0x531165['locale'];for(const _0x2eb6ec of ti){if(!_0x531165['plugins']['has'](_0x2eb6ec))continue;const _0x1da75c=_0x2eb6ec['slice'](0x0,-0x7)['toLowerCase'](),_0x4c305e='FORMAT_'+_0x1da75c['toUpperCase']();_0x995db6['enableDefaultAttributesIntegration'](_0x1da75c),_0x995db6['registerInlineAttribute'](_0x1da75c),_0x995db6['descriptionFactory']['registerAttributeLabel'](_0x1da75c,o(_0x4ceefb,_0x4c305e));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d3b80=this['editor'],_0x20c810=_0x5d3b80['locale'],_0x440b8d=_0x5d3b80['plugins']['get']('TrackChangesEditing');function _0x32e276(_0x10c0c7,_0x418103){_0x440b8d['descriptionFactory']['registerDescriptionCallback'](_0x39db7e=>{if('formatInline'!=_0x39db7e['type'])return;const {data:_0x5bc5ff}=_0x39db7e;return _0x5bc5ff&&_0x5bc5ff['commandName']===_0x10c0c7?_0x5bc5ff['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x20c810,'*Format:*\x20%0',_0x418103)}:{'type':'format','content':o(_0x20c810,'*Remove\x20format:*\x20%0',_0x418103)}:void 0x0;});}_0x32e276('bold',o(_0x20c810,'FORMAT_BOLD')),_0x32e276('italic',o(_0x20c810,'FORMAT_ITALIC')),_0x32e276('underline',o(_0x20c810,'FORMAT_UNDERLINE')),_0x32e276('code',o(_0x20c810,'FORMAT_CODE')),_0x32e276('strikethrough',o(_0x20c810,'FORMAT_STRIKETHROUGH')),_0x32e276('subscript',o(_0x20c810,'FORMAT_SUBSCRIPT')),_0x32e276('superscript',o(_0x20c810,'FORMAT_SUPERSCRIPT'));}}class O extends _0x463102{['afterInit'](){const _0x567e64=this['editor'],_0x2014fe=_0x567e64['locale'];if(!_0x567e64['plugins']['has']('BlockQuoteEditing'))return;const _0x2a2825=_0x567e64['plugins']['get']('TrackChangesEditing'),_0x1afd97=this['editor']['commands']['get']('blockQuote');_0x2a2825['enableCommand']('blockQuote',(_0x46ccb0,_0x46b5e8={})=>{const _0x5b6c12=this['editor']['model']['document']['selection'],_0x4ccf64=_0x46b5e8&&void 0x0!==_0x46b5e8['forceValue']?_0x46b5e8['forceValue']:!_0x1afd97['value'];let _0x569b7d=[];if(_0x4ccf64){const _0x539cdf=Array['from'](_0x5b6c12['getSelectedBlocks']())['filter'](_0x38bc54=>oo(_0x38bc54)||function(_0x128876,_0x41004c){const _0x11b2aa=_0x41004c['checkChild'](_0x128876['parent'],'blockQuote'),_0x1e4038=_0x41004c['checkChild'](['$root','blockQuote'],_0x128876);return _0x11b2aa&&_0x1e4038;}(_0x38bc54,this['editor']['model']['schema']));_0x569b7d=to(_0x539cdf,_0x567e64['model']);}else{const _0x43dd03=Array['from'](_0x5b6c12['getSelectedBlocks']())['filter'](_0x490e66=>oo(_0x490e66));_0x569b7d=to(_0x43dd03,_0x567e64['model']);}_0x567e64['model']['change'](()=>{for(const _0x34badb of _0x569b7d)_0x2a2825['markBlockFormat'](_0x34badb,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4ccf64}]});});}),_0x2a2825['descriptionFactory']['registerDescriptionCallback'](_0x1999b0=>{const {data:_0x4c47fb}=_0x1999b0;if(_0x4c47fb&&'blockQuote'==_0x4c47fb['commandName']){const _0x1dc73e=o(_0x2014fe,'ELEMENT_BLOCK_QUOTE');return _0x4c47fb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2014fe,'*Set\x20format:*\x20%0',_0x1dc73e)}:{'type':'format','content':o(_0x2014fe,'*Remove\x20format:*\x20%0',_0x1dc73e)};}});}}function oo(_0x5208b2){return'blockQuote'==_0x5208b2['parent']['name'];}class G extends _0x463102{['afterInit'](){const _0x37ef31=this['editor'];_0x37ef31['plugins']['has']('CaseChange')&&(_0x37ef31['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x37ef31['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x37ef31['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x463102{['afterInit'](){const _0x41d914=this['editor'];_0x41d914['commands']['get']('ckbox')&&_0x41d914['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x463102{['afterInit'](){const _0x4cba07=this['editor'];if(!_0x4cba07['plugins']['has']('CodeBlock'))return;const _0x30869f=_0x4cba07['plugins']['get']('TrackChangesEditing'),_0x350feb=_0x4cba07['locale'],_0x5dda6f=_0x4cba07['config']['get']('codeBlock')['languages'],_0x1e461f=_0x4cba07['commands']['get']('codeBlock');_0x30869f['enableCommand']('indentCodeBlock'),_0x30869f['enableCommand']('outdentCodeBlock'),_0x30869f['enableCommand']('codeBlock',(_0x522cde,_0x587ef2={})=>{const _0x6e668=_0x4cba07['model'],_0x18e9dd=_0x4cba07['model']['document']['selection'],_0x585928=_0x587ef2&&void 0x0!==_0x587ef2['forceValue']?_0x587ef2['forceValue']:!_0x1e461f['value'];let _0x36bccd;_0x587ef2['language']||(_0x587ef2['language']=_0x5dda6f[0x0]['language']),_0x36bccd=_0x585928?Array['from'](_0x18e9dd['getSelectedBlocks']())['filter'](_0x25d9c4=>eo(_0x25d9c4)||function(_0x3fb9c5,_0x556042){if(_0x3fb9c5['is']('rootElement')||_0x556042['isLimit'](_0x3fb9c5))return!0x1;return _0x556042['checkChild'](_0x3fb9c5['parent'],'codeBlock');}(_0x25d9c4,_0x6e668['schema'])):Array['from'](_0x18e9dd['getSelectedBlocks']())['filter'](_0x1ed1cb=>eo(_0x1ed1cb));const _0x3cbdc1=to(_0x36bccd,_0x6e668);_0x6e668['change'](()=>{for(const _0x41d054 of _0x3cbdc1)_0x30869f['markBlockFormat'](_0x41d054,{'commandName':'codeBlock','commandParams':[{..._0x587ef2,'forceValue':_0x585928}],'formatGroupId':'blockName'});});}),(_0x30869f['descriptionFactory']['registerElementLabel']('codeBlock',_0x4848f4=>o(_0x350feb,'ELEMENT_CODE_BLOCK',_0x4848f4)),_0x30869f['descriptionFactory']['registerDescriptionCallback'](_0x1825dd=>{if('formatBlock'!=_0x1825dd['type'])return;const _0x29db0a=_0x350feb['t'],{data:_0x43791f}=_0x1825dd;if(!_0x43791f||'codeBlock'!=_0x43791f['commandName'])return;const _0x380bf1=_0x43791f['commandParams'][0x0]['language'],_0x5adcca=_0x29db0a(_0x5dda6f['find'](_0x41301e=>_0x41301e['language']===_0x380bf1)['label'])['toLowerCase']();return _0x43791f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x350feb,'*Set\x20format:*\x20%0',o(_0x350feb,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5adcca+')')}:{'type':'format','content':o(_0x350feb,'*Remove\x20format:*\x20%0',o(_0x350feb,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x5008fd){return'codeBlock'==_0x5008fd['name'];}class H extends _0x463102{['afterInit'](){const _0x3dbf69=this['editor'];if(!_0x3dbf69['plugins']['has']('CommentsEditing'))return;_0x3dbf69['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x13e8ef,_0x1bfc7c,_0x169853){const _0x5d1f56=[];for(const _0x3206a7 of _0x1bfc7c['getItems']())_0x3206a7['hasAttribute'](_0x13e8ef)&&_0x5d1f56['push'](_0x169853['createRangeOn'](_0x3206a7));return _0x5d1f56;}function _e(_0x7a93d2,_0x167337,{showActiveMarker:_0x39466c=!0x0}={}){const _0xfdf547=_0x7a93d2['plugins']['get']('TrackChangesEditing');return(_0x14cf02,_0x4c6384,_0x5caabb)=>{if(!_0x5caabb['consumable']['test'](_0x4c6384['markerRange'],_0x14cf02['name']))return;const _0x5b401c=_0x4c6384['markerRange']['getWalker'](),_0x5b660b=_0x4c6384['markerRange']['start'],_0x3f7138=_0x7a93d2['model']['schema'];let _0x13ca8b=null,_0x48c04b=null,_0x5329e6=!0x1,_0x14da7=!0x1;for(const _0x338e73 of _0x5b401c){const _0x102713=_0x338e73['item'];_0x5329e6=_0x5329e6||_0x3f7138['isContent'](_0x102713);const _0x3a187b=_0x5caabb['mapper']['toViewElement'](_0x102713);if(_0x3a187b&&_0x3a187b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x338e73['type']&&(_0x3f7138['isBlock'](_0x102713)&&!_0x3f7138['isLimit'](_0x102713)&&(_0x102713['nextSibling']||_0x5b660b['isAtEnd']?_0x13ca8b&&_0x13ca8b['parent']==_0x102713||(_0x13ca8b=_0x102713,_0x2ae023(_0x338e73['previousPosition']),_0x14da7=!0x0):_0x48c04b=_0x48c04b||_0x338e73['previousPosition']));}function _0x2ae023(_0x53e8f6){const _0x4b40e7=_0x5caabb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x167337}),_0x1f96fc=_0x5caabb['mapper']['toViewPosition'](_0x53e8f6);_0x39466c&&_0xfdf547['activeMarkers']['includes'](_0x4c6384['markerName'])&&_0x5caabb['writer']['addClass']('ck-suggestion-marker--active',_0x4b40e7),_0x5caabb['writer']['insert'](_0x1f96fc,_0x4b40e7),_0x5caabb['mapper']['bindElementToMarker'](_0x4b40e7,_0x4c6384['markerName']);}_0x5329e6||_0x14da7||!_0x48c04b||_0x2ae023(_0x48c04b);};}class q extends _0x463102{static get['requires'](){return[_0x2df775];}['init'](){const _0x12de2e=this['editor'],_0x304106=_0x12de2e['plugins']['get']('TrackChangesEditing');_0x304106['enableCommand']('delete');const _0x1672df=_0x12de2e['commands']['get']('deleteForward');_0x304106['enableCommand']('deleteForward',(_0x2686b9,_0x38723e={})=>{const _0x2778f5=_0x12de2e['model']['createSelection'](_0x12de2e['model']['document']['selection']);_0x2778f5['isCollapsed']&&_0x12de2e['model']['modifySelection'](_0x2778f5,{'direction':'forward','unit':_0x38723e['unit']});const _0x4ce863=_0x2778f5['getFirstRange'](),_0x542892=_0x533200['fromRange'](_0x4ce863);let _0x4bbdde;_0x2686b9(_0x38723e),_0x4bbdde='$graveyard'==_0x542892['root']['rootName']?_0x12de2e['model']['createRange'](_0x4ce863['start']):_0x12de2e['model']['createRange'](_0x542892['start'],_0x542892['end']),_0x542892['detach'](),_0x12de2e['model']['enqueueChange'](_0x1672df['buffer']['batch'],_0x13dbe2=>{_0x1672df['buffer']['lock'](),_0x13dbe2['setSelection'](_0x13dbe2['createRange'](_0x4bbdde['end'])),_0x1672df['buffer']['unlock']();});}),_0x12de2e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x12de2e,'merge'),{'priority':'high'}),_0x12de2e['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x25fa45,_0x163f0c,_0x525393)=>{_0x525393['options']['showSuggestionHighlights']&&_e(_0x12de2e,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x25fa45,_0x163f0c,_0x525393);},{'priority':'high'}),_0x12de2e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xcdc7cb,_0x234116,_0x224b73)=>{const _0x18af0d=_0x224b73['mapper']['markerNameToElements'](_0x234116['markerName']);if(_0x18af0d){for(const _0x264536 of _0x18af0d)_0x264536['is']('uiElement')&&(_0x224b73['mapper']['unbindElementFromMarkerName'](_0x264536,_0x234116['markerName']),_0x224b73['writer']['remove'](_0x264536));}},{'priority':'high'});}}class z extends _0x463102{['afterInit'](){const _0x5982c2=this['editor'];if(!_0x5982c2['plugins']['has']('ListEditing'))return;const _0x19cab2=_0x5982c2['locale'],_0x37696b=_0x5982c2['plugins']['get']('TrackChangesEditing'),_0x3aeaac=_0x5982c2['plugins']['has']('TodoListEditing'),_0x7a6167=!!_0x5982c2['config']['get']('list.multiBlock');function _0x172602(_0x262dfb){return{'type':'format','content':''+o(_0x19cab2,'*Set\x20format:*\x20%0',_0x262dfb)};}function _0x3d1db1(_0x505af0){return{'type':'format','content':''+o(_0x19cab2,'*Remove\x20format:*\x20%0',_0x505af0)};}_0x37696b['enableDefaultAttributesIntegration']('numberedList'),_0x37696b['enableDefaultAttributesIntegration']('bulletedList'),_0x37696b['enableDefaultAttributesIntegration']('customNumberedList'),_0x37696b['enableDefaultAttributesIntegration']('customBulletedList'),_0x37696b['enableDefaultAttributesIntegration']('indentList'),_0x37696b['enableDefaultAttributesIntegration']('outdentList'),_0x37696b['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x37696b['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x37696b['registerBlockAttribute']('listItemId'),_0x37696b['registerBlockAttribute']('listType'),_0x37696b['registerBlockAttribute']('listIndent'),_0x7a6167&&(_0x37696b['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x37696b['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3aeaac&&(_0x37696b['enableDefaultAttributesIntegration']('todoList'),_0x37696b['enableDefaultAttributesIntegration']('checkTodoList'),_0x37696b['registerBlockAttribute']('todoListChecked'),_0x37696b['descriptionFactory']['registerDescriptionCallback'](_0x38a0a1=>{const {data:_0x49455f}=_0x38a0a1;if(_0x49455f&&'todoListChecked'==_0x49455f['key'])return{'type':'format','content':_0x49455f['newValue']?o(_0x19cab2,'*Check\x20item*'):o(_0x19cab2,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2c1e4f=>{if(_0x2c1e4f['batch']['isUndo'])return!0x1;let _0xb4b78b=!0x1;const _0x559c27=_0x37696b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1de877=>'todoListChecked'===_0x37696b['_getAttributeKey'](_0x1de877));for(const _0x214712 of _0x559c27){'todo'!=_0x214712['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x37696b['_findSuggestions'](_0x214712['getFirstRange'](),'attribute')['find'](_0x424052=>'listType'===_0x37696b['_getAttributeKey'](_0x424052['suggestion']))||(_0x2c1e4f['removeMarker'](_0x214712['getFirstMarker']()),_0xb4b78b=!0x0));}return _0xb4b78b;})),_0x37696b['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x19cab2,'FORMAT_INDENT'));const _0x29799c={'type':'format','content':''};_0x37696b['descriptionFactory']['registerDescriptionCallback'](_0x16dee=>{const {data:_0x3f12d9}=_0x16dee;if(!_0x3f12d9||'listType'!=_0x3f12d9['key'])return;let _0x45f54f=_0x16dee['head'];for(;_0x45f54f;){if(_0x45f54f['data']&&(('listStyle'==_0x45f54f['data']['key']||'listMarkerStyle'==_0x45f54f['data']['key'])&&(_0x45f54f['data']['newValue']&&'default'!=_0x45f54f['data']['newValue']||'default'!=_0x45f54f['data']['oldValue']&&!_0x3f12d9['newValue'])||!_0x7a6167&&_0x45f54f['data']['key']==m))return _0x29799c;_0x45f54f=_0x45f54f['next'];}if(null==_0x3f12d9['newValue'])switch(_0x3f12d9['oldValue']){case'bulleted':return _0x3d1db1(o(_0x19cab2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3d1db1(o(_0x19cab2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3d1db1(o(_0x19cab2,'ELEMENT_TODO_LIST'));}switch(_0x3f12d9['newValue']){case'bulleted':return _0x172602(o(_0x19cab2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x172602(o(_0x19cab2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x172602(o(_0x19cab2,'ELEMENT_TODO_LIST'));}}),_0x37696b['descriptionFactory']['registerDescriptionCallback'](_0x35a357=>{const {data:_0x4145b3}=_0x35a357;if(_0x4145b3&&'listIndent'==_0x4145b3['key'])return null==_0x4145b3['newValue']||null==_0x4145b3['oldValue']&&0x0==_0x4145b3['newValue']?_0x29799c:void 0x0;}),_0x37696b['descriptionFactory']['registerDescriptionCallback'](_0x26715b=>{if('attribute'!=_0x26715b['type'])return;const {data:_0x1db5a9}=_0x26715b;if(!_0x1db5a9||'listItemId'!=_0x1db5a9['key'])return;const _0x2d2013=le(_0x26715b);return'newValue'==_0x2d2013?{'type':'format','content':o(_0x19cab2,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2d2013?{'type':'format','content':o(_0x19cab2,'*Split:*\x20list\x20item')}:_0x29799c;}),_0x5982c2['model']['document']['registerPostFixer'](_0x346e9a=>this['listItemIdFixer'](_0x346e9a)),_0x5982c2['model']['document']['registerPostFixer'](_0xc75542=>this['noTrackChangesFixer'](_0xc75542)),_0x5982c2['model']['document']['registerPostFixer'](_0x370f22=>this['assureChains'](_0x370f22)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2e8f52){if(_0x2e8f52['batch']['isUndo']||!_0x2e8f52['batch']['isLocal'])return!0x1;let _0x181958=!0x1;const _0x5bc972=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x573909=>_0x573909['data']&&'listItemId'==_0x573909['data']['key'])['filter'](_0x3257d4=>_0x3257d4['data']['newValue']&&_0x3257d4['data']['oldValue']);for(const _0x529484 of _0x5bc972)le(_0x529484)||(_0x2e8f52['removeMarker'](_0x529484['getFirstMarker']()),_0x181958=!0x0);return _0x181958;}['noTrackChangesFixer'](_0x2967be){if(_0x2967be['batch']['isUndo']||!_0x2967be['batch']['isLocal'])return!0x1;const _0x1f1327=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1f1327['trackChangesCommand']['value'])return!0x1;let _0x45858b=!0x1;const _0x1f7286=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2436bd=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x47eec7=>'attribute'==_0x47eec7['type'])['filter'](_0x257a23=>_0x1f7286['includes'](_0x257a23['attributeKey']));if(0x0==_0x2436bd['length'])return _0x45858b;for(const _0x39a60c of _0x2436bd){const _0x13a493=_0x1f1327['_findSuggestions'](_0x39a60c['range'],'attribute')['filter'](_0x8fd2a3=>!_0x8fd2a3['meta']['isNextTo'])['map'](_0x2bbf0f=>_0x2bbf0f['suggestion'])['filter'](_0x3b237c=>{const _0x5d7299=_0x1f1327['_getAttributeKey'](_0x3b237c);return _0x1f7286['includes'](_0x5d7299);});if(_0x13a493['length']){for(const _0x5b60d9 of _0x13a493)_0x2967be['removeMarker'](_0x5b60d9['getFirstMarker']());_0x45858b=!0x0;}}return _0x45858b;}['assureChains'](_0x41d36e){if(_0x41d36e['batch']['isUndo']||!_0x41d36e['batch']['isLocal'])return!0x1;const _0x916737=this['editor']['plugins']['get']('TrackChangesEditing');let _0x594239=!0x1;const _0x12ec49=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x14eee9 of _0x916737['getSuggestions']({'skipNotAttached':!0x0})){const _0x135025=_0x916737['_findSuggestions'](_0x14eee9['getFirstRange'](),'attribute')['map'](_0x2a3a71=>_0x2a3a71['suggestion'])['filter'](_0xe8f092=>_0xe8f092['data']&&_0x12ec49['includes'](_0xe8f092['data']['key']));if(!_0x135025['length'])continue;const _0x1f9a00=_0x135025[0x0]['head']['attributes']['groupId'];if(!_0x135025['every'](_0x3ed618=>_0x3ed618['attributes']['groupId']===_0x1f9a00)){for(const _0x11a7f6 of _0x135025)_0x488293(_0x11a7f6,_0x1f9a00)&&(_0x594239=!0x0);}}return _0x594239;function _0x42c0c1(_0x7916e0,_0x20813b){for(const _0x21583e of _0x916737['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4b822d=>'attribute'==_0x4b822d['type']&&_0x4b822d['attributes']['groupId']==_0x7916e0))_0x21583e['setAttribute']('groupId',_0x20813b);}function _0x488293(_0x3d14ba,_0x428b01){let _0x22812f=_0x3d14ba['head'],_0x2c0f76=!0x1;for(;_0x22812f;)_0x22812f['attributes']['groupId']!=_0x428b01&&(_0x42c0c1(_0x22812f['attributes']['groupId'],_0x428b01),_0x22812f['setAttribute']('groupId',_0x428b01),_0x2c0f76=!0x0),_0x22812f=_0x22812f['next'];return _0x2c0f76;}}['_supportLegacySuggestions'](){const _0x1c4f59=this['editor'],_0xbead54=_0x1c4f59['locale'],_0x44e2da=_0x1c4f59['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x44e2da['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x47d9d0,_0x4ee998){const _0x556be8=[];for(let _0x7b7292 of _0x47d9d0)_0x7b7292['start']['nodeAfter']===_0x7b7292['end']['parent']&&(_0x7b7292=_0x1c4f59['model']['createRange'](_0x1c4f59['model']['createPositionAt'](_0x7b7292['start']['nodeAfter'],0x0))),_0x556be8['push'](_0x7b7292);_0x1c4f59['model']['change'](_0x275746=>{const _0x4c14a7=_0x1c4f59['model']['document']['selection'],_0x585005=Array['from'](_0x4c14a7['getRanges']())['map'](_0x5ed3f3=>_0x533200['fromRange'](_0x5ed3f3));_0x275746['setSelection'](_0x556be8),_0x1c4f59['commands']['get'](_0x4ee998['commandName'])['refresh'](),_0x4ee998['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1c4f59['execute'](_0x4ee998['commandName'],..._0x4ee998['commandParams']),_0x275746['setSelection'](_0x585005);for(const _0x1cc18c of _0x585005)_0x1cc18c['detach']();});}),_0x44e2da['descriptionFactory']['registerElementLabel'](function(_0x28ee88){const _0x5e0ccd=!_0x1c4f59['model']['schema']['isObject'](_0x28ee88),_0x98864d=_0x28ee88['previousSibling'],_0x3f1ea4=_0x28ee88['nextSibling'],_0x526857=_0x28ee88['getAttribute']('listItemId'),_0x3256f5=!_0x98864d||_0x98864d['getAttribute']('listItemId')!==_0x526857,_0x4010b8=!_0x3f1ea4||_0x3f1ea4['getAttribute']('listItemId')!==_0x526857;return _0x5e0ccd&&Boolean(_0x526857)&&_0x3256f5&&_0x4010b8;},_0x1b1708=>o(_0xbead54,'ELEMENT_LIST_ITEM',_0x1b1708));}['_registerLegacyDescription'](){const _0x29508f=this['editor'],_0x5e6bcc=_0x29508f['locale'];function _0x2ee929(_0x28e1a0){const _0x28eb8a=_0x29508f['commands']['get']('bulletedList')['value'],_0x2ee266=_0x29508f['commands']['get']('numberedList')['value'];return'numberedList'===_0x28e1a0?_0x28eb8a:_0x2ee266;}_0x29508f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x8901d){if('formatBlock'!=_0x8901d['type'])return;const {data:_0x51bde7}=_0x8901d;if(!_0x51bde7)return;let _0x29d335,_0x5c3d45,_0x369ecb,_0x2126cc;switch(_0x51bde7['commandName']){case'bulletedList':_0x369ecb=_0x51bde7['commandParams'][0x0]['forceValue'],_0x2126cc=_0x2ee929(_0x51bde7['commandName']),_0x29d335=_0x369ecb?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2126cc&&_0x29508f['config']['get']('list.multiBlock')||(_0x29d335='*Change\x20to:*\x20%0'),_0x5c3d45={'type':'format','content':o(_0x5e6bcc,_0x29d335,o(_0x5e6bcc,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x369ecb=_0x51bde7['commandParams'][0x0]['forceValue'],_0x2126cc=_0x2ee929(_0x51bde7['commandName']),_0x29d335=_0x369ecb?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2126cc&&_0x29508f['config']['get']('list.multiBlock')||(_0x29d335='*Change\x20to:*\x20%0'),_0x5c3d45={'type':'format','content':o(_0x5e6bcc,_0x29d335,o(_0x5e6bcc,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x29d335='*Indent:*\x20%0',_0x5c3d45={'type':'format','content':o(_0x5e6bcc,_0x29d335,o(_0x5e6bcc,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x29d335=function(_0x324b3f){const _0x3e3023=_0x324b3f['getFirstRange']();let _0x4a5df9=_0x3e3023['start']['nodeAfter'];for(;_0x4a5df9&&_0x3e3023['containsItem'](_0x4a5df9);){if(_0x4a5df9['getAttribute']('listIndent')>0x0)return!0x1;_0x4a5df9=_0x4a5df9['nextSibling'];}return!0x0;}(_0x8901d)?o(_0x5e6bcc,'*Format:*\x20remove\x20from\x20%0',o(_0x5e6bcc,function(_0x134a9d){return'ELEMENT_'+_0x134a9d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x8901d))):o(_0x5e6bcc,'*Outdent:*\x20%0',o(_0x5e6bcc,'ELEMENT_LIST_ITEM')),_0x5c3d45={'type':'format','content':_0x29d335};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x51bde7['multipleBlocks']&&(_0x29d335='*Merge:*\x20%0',_0x5c3d45={'type':'deletion','content':o(_0x5e6bcc,_0x29d335,o(_0x5e6bcc,'ELEMENT_LIST_ITEM'))});}return _0x5c3d45;});}}function le(_0x2af846){let _0x3812f2=_0x2af846['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3812f2;){const _0x189502=_0x3812f2['getAttribute']('listItemId');if(!_0x189502)return!0x1;if(_0x189502==_0x2af846['data']['newValue'])return'newValue';if(_0x189502==_0x2af846['data']['oldValue'])return'oldValue';_0x3812f2=_0x3812f2['previousSibling'];}return!0x1;}class ue extends _0x463102{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x29d556=this['editor']['config']['get']('list.properties'),_0x34fa2d=this['editor']['plugins']['get']('TrackChangesEditing');_0x29d556['styles']&&(_0x34fa2d['enableDefaultAttributesIntegration']('listStyle'),_0x34fa2d['registerBlockAttribute']('listStyle')),_0x29d556['reversed']&&(_0x34fa2d['enableDefaultAttributesIntegration']('listReversed'),_0x34fa2d['registerBlockAttribute']('listReversed')),_0x29d556['startIndex']&&(_0x34fa2d['enableDefaultAttributesIntegration']('listStart'),_0x34fa2d['registerBlockAttribute']('listStart'));const _0x5f3253={'type':'format','content':''};_0x34fa2d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xd43b5=this['editor']['locale'];_0x34fa2d['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xd43b5,'FORMAT_LIST_REVERSED')),_0x34fa2d['descriptionFactory']['registerDescriptionCallback'](_0x2d78f5=>{const {data:_0x4a27d2}=_0x2d78f5;if(_0x4a27d2&&'listReversed'==_0x4a27d2['key'])return null==_0x4a27d2['newValue']||0x0==_0x4a27d2['newValue']&&null==_0x4a27d2['oldValue']?_0x5f3253:void 0x0;}),_0x34fa2d['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xd43b5,'FORMAT_LIST_START')),_0x34fa2d['descriptionFactory']['registerDescriptionCallback'](_0xf867e8=>{const {data:_0x13d55c}=_0xf867e8;if(_0x13d55c&&'listStart'==_0x13d55c['key'])return null==_0x13d55c['newValue']||0x1==_0x13d55c['newValue']&&null==_0x13d55c['oldValue']?_0x5f3253:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4a3e2e=>{if(_0x4a3e2e['batch']['isUndo'])return!0x1;let _0x2bc39e=!0x1;const _0xefedfb=_0x34fa2d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2597f2=>{const _0x3d68fc=_0x34fa2d['_getAttributeKey'](_0x2597f2);return'listStart'==_0x3d68fc||'listReversed'==_0x3d68fc;});for(const _0x414fdb of _0xefedfb){const _0x3395de=_0x414fdb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3395de||'customNumbered'==_0x3395de)continue;_0x34fa2d['_findSuggestions'](_0x414fdb['getFirstRange'](),'attribute')['find'](_0x5d76bf=>'listType'==_0x34fa2d['_getAttributeKey'](_0x5d76bf['suggestion']))||(_0x4a3e2e['removeMarker'](_0x414fdb['getFirstMarker']()),_0x2bc39e=!0x0);}return _0x2bc39e;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x20522c){const _0x39a879=this['editor']['locale'],{data:_0x3321b6}=_0x20522c,_0x268035={'type':'format','content':''};if(!_0x3321b6||'listStyle'!=_0x3321b6['key'])return;if(!_0x3321b6['oldValue'])return'default'==_0x3321b6['newValue']?_0x268035:{'type':'format','content':''+o(_0x39a879,'*Set\x20format:*\x20%0',o(_0x39a879,this['_getTranslationKeyForListStyle'](_0x3321b6['newValue'])))};if(!_0x3321b6['newValue']){if('default'==_0x3321b6['oldValue'])return _0x268035;let _0xfa192c=_0x20522c['head'];for(;_0xfa192c;){if(_0xfa192c['data']&&'listType'==_0xfa192c['data']['key']&&_0xfa192c['data']['newValue'])return _0x268035;_0xfa192c=_0xfa192c['next'];}return{'type':'format','content':''+o(_0x39a879,'*Remove\x20format:*\x20%0',o(_0x39a879,this['_getTranslationKeyForListStyle'](_0x3321b6['oldValue'])))};}if('default'!=_0x3321b6['newValue'])return{'type':'format','content':''+o(_0x39a879,'*Set\x20format:*\x20%0',o(_0x39a879,this['_getTranslationKeyForListStyle'](_0x3321b6['newValue'])))};let _0x2f9602=_0x20522c['head'];for(;_0x2f9602;){if(_0x2f9602['data']&&'listType'==_0x2f9602['data']['key']&&_0x2f9602['data']['newValue']&&_0x2f9602['data']['oldValue'])return _0x268035;_0x2f9602=_0x2f9602['next'];}return{'type':'format','content':o(_0x39a879,'*Set\x20format:*\x20%0',o(_0x39a879,'ELEMENT_'+_0x20522c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x45a81f=this['editor'],_0x340606=_0x45a81f['locale'];_0x45a81f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x490d75=>{if('formatBlock'!=_0x490d75['type'])return;const {data:_0x178bcb}=_0x490d75;if(!_0x178bcb)return;let _0x5ba45c,_0x413a28;switch(_0x178bcb['commandName']){case'listStyle':_0x5ba45c='*Change\x20to:*\x20%0',_0x413a28={'type':'format','content':o(_0x340606,_0x5ba45c,o(_0x340606,this['_getTranslationKeyForListStyle'](_0x178bcb['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5ba45c=_0x178bcb['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x413a28={'type':'format','content':o(_0x340606,_0x5ba45c)};break;case'listStart':_0x5ba45c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x413a28={'type':'format','content':o(_0x340606,_0x5ba45c,_0x178bcb['commandParams'][0x0]['startIndex'])};}return _0x413a28;});}['_getTranslationKeyForListStyle'](_0x40bddb){return'ELEMENT_'+function(_0xb2b765){if(pe['includes'](_0xb2b765))return'bulleted';if(ye['includes'](_0xb2b765))return'numbered';return null;}(_0x40bddb)['toUpperCase']()+'_LIST_'+_0x40bddb['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x463102{static get['requires'](){return[_0x8b26d0];}['init'](){const _0x2c5ac3=this['editor'],_0x5cbfa9=_0x2c5ac3['plugins']['get']('TrackChangesEditing'),_0xcd14af=_0x2c5ac3['commands']['get']('enter');_0x5cbfa9['enableCommand']('enter',()=>{_0x2c5ac3['model']['change'](_0x50fae4=>{const _0x2bcf1f=_0x2c5ac3['model']['document']['selection'],_0x37bcb3=_0x2bcf1f['getFirstPosition'](),_0x56132e=_0x533200['fromRange'](_0x2bcf1f['getFirstRange']());if(_0xcd14af['enterBlock'](_0x50fae4)){const _0x33f3e0=_0x2c5ac3['model']['createPositionAt'](_0x37bcb3['parent']['nextSibling'],0x0),_0x84c8f4=_0x50fae4['createRange'](_0x37bcb3,_0x33f3e0);_0x5cbfa9['markInsertion'](_0x84c8f4);}else _0x50fae4['setSelection'](_0x50fae4['createRange'](_0x56132e['end']));_0x56132e['detach'](),_0xcd14af['fire']('afterExecute',{'writer':_0x50fae4});});}),_0x2c5ac3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x2c5ac3,'split'),{'priority':'high'}),_0x2c5ac3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x16c90e,_0x5e47b9,_0x2bd130)=>{const _0x48b9ce=_0x2bd130['mapper']['markerNameToElements'](_0x5e47b9['markerName']);if(_0x48b9ce){for(const _0x5086c9 of _0x48b9ce)_0x5086c9['hasClass']('ck-suggestion-marker-split')&&(_0x2bd130['mapper']['unbindElementFromMarkerName'](_0x5086c9,_0x5e47b9['markerName']),_0x2bd130['writer']['remove'](_0x5086c9));}},{'priority':'high'}),_0x2c5ac3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1ac392,_0x3e6e46,_0xb12e59)=>{_0xb12e59['options']['showSuggestionHighlights']&&_e(_0x2c5ac3,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1ac392,_0x3e6e46,_0xb12e59);},{'priority':'high'});}}class J extends _0x463102{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3c6b81=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c6b81['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3c6b81['enableCommand']('findNext'),_0x3c6b81['enableCommand']('findPrevious'),_0x3c6b81['enableCommand']('replace'),_0x3c6b81['enableCommand']('replaceAll');}['handleFindCommand'](_0x210dbe,_0x1329b5,_0x46c54f={}){const _0x55fce2=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x210dbe(_0x40e7ae=>('string'==typeof _0x1329b5?_0x55fce2['findByTextCallback'](_0x1329b5,_0x46c54f):_0x1329b5)(_0x40e7ae)['filter'](_0x5d87a6=>!0x1===this['_isInDeletionRange'](_0x5d87a6,_0x40e7ae['item'])),_0x46c54f);}['_isInDeletionRange'](_0x1dbac6,_0x1f5d80){const _0x300a66=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1f5d80,_0x1dbac6['start']),this['editor']['model']['createPositionAt'](_0x1f5d80,_0x1dbac6['end']));for(const _0x5dd5f0 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x300a66['getIntersection'](_0x5dd5f0['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 _0x463102{['afterInit'](){const _0x8250a3=this['editor']['locale'],_0x1557a8=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4758ca,commandName:_0x403b99}of ro)this['editor']['plugins']['has'](_0x4758ca)&&(_0x1557a8['enableDefaultAttributesIntegration'](_0x403b99),_0x1557a8['registerInlineAttribute'](_0x403b99));_0x8250a3['t'],_0x1557a8['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x8250a3,'FORMAT_FONT_SIZE')),_0x1557a8['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x8250a3,'FORMAT_FONT_FAMILY')),_0x1557a8['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x8250a3,'FORMAT_FONT_COLOR')),_0x1557a8['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x8250a3,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37af7a=this['editor'],_0x3bd9f7=_0x37af7a['locale'];_0x37af7a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c1ede=>{const _0x3bc102=_0x3bd9f7['t'];if('formatInline'!=_0x5c1ede['type'])return;const {data:_0x433885}=_0x5c1ede;if(null!=_0x433885){if('fontSize'==_0x433885['commandName']){const _0x14b44a=_0x433885['commandParams'][0x0]['value'];if(_0x14b44a){const _0x4e0c95=_0x3bc102(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x54a49e=>_0x54a49e['model']==_0x14b44a)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3bd9f7,'*Set\x20font\x20size:*\x20%0',_0x4e0c95)};}return{'type':'format','content':o(_0x3bd9f7,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x433885['commandName']){const _0xa6ca58=_0x433885['commandParams'][0x0]['value'];return _0xa6ca58?{'type':'format','content':o(_0x3bd9f7,'*Set\x20font\x20family:*\x20%0',_0xa6ca58)}:{'type':'format','content':o(_0x3bd9f7,'*Reset\x20font\x20family*')};}if('fontColor'==_0x433885['commandName']){const _0x574425=_0x433885['commandParams'][0x0]['value'];if(_0x574425){const _0x479b03=_0x31e25a(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4c2182=>_0x4c2182['model']==_0x574425);let _0x5ab30c=_0x574425,_0xf46080='';return _0x479b03&&(_0x5ab30c=_0x479b03['label'],_0xf46080=_0x3bc102(_0x5ab30c)['toLowerCase']()),{'type':'format','content':o(_0x3bd9f7,'*Set\x20font\x20color:*\x20%0',_0xf46080)['trim'](),'color':{'value':_0x574425,'title':_0xf46080||_0x5ab30c}};}return{'type':'format','content':o(_0x3bd9f7,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x433885['commandName']){const _0x5a0811=_0x433885['commandParams'][0x0]['value'];if(_0x5a0811){const _0x3aa1ee=_0x31e25a(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xceb44c=>_0xceb44c['model']==_0x5a0811);let _0x9422bc=_0x5a0811,_0x568675='';return _0x3aa1ee&&(_0x9422bc=_0x3aa1ee['label'],_0x568675=_0x3bc102(_0x9422bc)['toLowerCase']()),{'type':'format','content':o(_0x3bd9f7,'*Set\x20font\x20background\x20color:*\x20%0',_0x568675)['trim'](),'color':{'value':_0x5a0811,'title':_0x568675||_0x9422bc}};}return{'type':'format','content':o(_0x3bd9f7,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x463102{['afterInit'](){const _0x259083=this['editor'],_0x41e970=_0x259083['plugins']['get']('TrackChangesEditing'),_0x1a5671=_0x259083['commands']['get']('copyFormat'),_0x4acdad=_0x259083['commands']['get']('pasteFormat');_0x1a5671&&_0x4acdad&&(_0x41e970['enableDefaultAttributesIntegration']('pasteFormat'),_0x41e970['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x535e43=this['editor'],_0x5de001=_0x535e43['locale'];_0x535e43['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f8bf1=>{if('formatBlock'!=_0x4f8bf1['type']&&'formatInline'!=_0x4f8bf1['type'])return;const {data:_0x1d919a}=_0x4f8bf1;if(_0x1d919a&&'pasteFormat'===_0x1d919a['commandName']){const _0x49cf4c=[],_0x4443bb=_0x1d919a['commandParams'][0x0];for(const [_0x4497ed,_0xf2f702]of Object['entries'](_0x4443bb))_0x49cf4c['push'](so(_0x535e43,_0x4497ed,_0xf2f702));return _0x49cf4c['length']?{'type':'format','content':o(_0x5de001,'*Set\x20format\x20to:*\x20%0',_0x49cf4c['join'](',\x20'))}:{'type':'format','content':o(_0x5de001,'*Remove\x20all\x20formatting*')};}});}}function so(_0x59b334,_0x4ad1d3,_0x4fca1f){const _0x16ec4b=_0x59b334['locale']['t'],_0x3f18dd=_0x4ad1d3['split'](/(?=[A-Z])/)['join']('\x20'),_0x1c0da7=_0x16ec4b(_0x3f18dd['charAt'](0x0)['toUpperCase']()+_0x3f18dd['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4fca1f)return _0x1c0da7;if('fontColor'===_0x4ad1d3||'fontBackgroundColor'===_0x4ad1d3){const _0x582c70=_0x31e25a(_0x59b334['config']['get']('fontColor.colors'))['find'](_0x571172=>_0x571172['model']==_0x4fca1f);return _0x1c0da7+'\x20('+(_0x582c70?_0x16ec4b(_0x582c70['label'])['toLowerCase']():_0x4fca1f)+')';}if('fontSize'===_0x4ad1d3&&isNaN(parseFloat(_0x4fca1f))){const _0x16ba5d=_0x59b334['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x59b334['config']['get']('fontSize.options'))['find'](_0x3c0580=>_0x3c0580['model']==_0x4fca1f);return _0x1c0da7+'\x20('+(_0x16ba5d?_0x16ec4b(_0x16ba5d['title'])['toLowerCase']():_0x4fca1f)+')';}return _0x1c0da7+'\x20('+_0x4fca1f+')';}class Y extends _0x463102{['_headingOptions'];['afterInit'](){const _0x34f3fb=this['editor'];if(!_0x34f3fb['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x34f3fb['config']['get']('heading.options');const _0x56e3d7=_0x34f3fb['locale'],_0x3fd043=_0x34f3fb['plugins']['get']('TrackChangesEditing');_0x3fd043['enableDefaultAttributesIntegration']('heading');for(const _0x4a3794 of this['_headingOptions'])'paragraph'!=_0x4a3794['model']&&_0x3fd043['descriptionFactory']['registerElementLabel'](_0x4a3794['model'],_0xf1870=>{const _0x4163af=this['_getHeadingLevel'](_0x4a3794['model']);return null!==_0x4163af?_0xc347f0(_0xf1870,_0x4163af):_0x473b72(_0xf1870,_0x4a3794['title']);});function _0xc347f0(_0x4e31a3,_0x47888c){return o(_0x56e3d7,'ELEMENT_HEADING',[_0x4e31a3,_0x47888c]);}function _0x473b72(_0x168890,_0x1a7d81){return o(_0x56e3d7,'ELEMENT_HEADING_CUSTOM',[_0x168890,_0x1a7d81]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4365c7=this['editor'],_0x463abf=_0x4365c7['locale'];function _0x41b264(_0x9eb27f,_0x1d8045){return o(_0x463abf,'ELEMENT_HEADING_CUSTOM',[_0x9eb27f,_0x1d8045]);}_0x4365c7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x414544=>{if('formatBlock'!=_0x414544['type'])return;const {data:_0x1319d9}=_0x414544;if(_0x1319d9&&'heading'==_0x1319d9['commandName']){const _0x260cad=_0x1319d9['commandParams'][0x0]['value'],_0x56330f=this['_getHeadingLevel'](_0x260cad);if(null!==_0x56330f)return{'type':'format','content':o(_0x463abf,'*Change\x20to:*\x20%0',(_0x1a96ee=0x1,_0x1f0a05=_0x56330f,o(_0x463abf,'ELEMENT_HEADING',[_0x1a96ee,_0x1f0a05])))};const _0x38ca14=this['_headingOptions']['find'](_0x18c64d=>_0x18c64d['model']===_0x260cad)['title'];return{'type':'format','content':o(_0x463abf,'*Change\x20to:*\x20%0',_0x41b264(0x1,_0x38ca14))};}var _0x1a96ee,_0x1f0a05;});}['_getHeadingLevel'](_0x1083ae){const _0x1c0051=_0x1083ae['match'](/^heading(\d+)/);if(_0x1c0051)return _0x1c0051[0x1];const _0x4b0fb7=this['_headingOptions']?.['find'](_0x1e7bad=>_0x1e7bad['model']==_0x1083ae);if(_0x4b0fb7&&_0x4b0fb7['view']){const _0x192614=_0x4b0fb7['view'],_0x1c6747=(_0x192614['name']??_0x192614)['match'](/^h(\d+)/);if(_0x1c6747)return _0x1c6747[0x1];}return null;}}class Z extends _0x463102{['afterInit'](){const _0x2ca890=this['editor'];if(!_0x2ca890['plugins']['has']('HighlightEditing'))return;const _0x32a404=_0x2ca890['plugins']['get']('TrackChangesEditing'),_0x4b957c=_0x2ca890['locale'];_0x32a404['enableDefaultAttributesIntegration']('highlight'),_0x32a404['registerInlineAttribute']('highlight'),_0x32a404['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4b957c,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38e9bd=this['editor'],_0x2d4db9=_0x38e9bd['locale'];_0x38e9bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f2d5d=>{if('formatInline'!=_0x3f2d5d['type'])return;const {data:_0x226fd4}=_0x3f2d5d;if(_0x226fd4&&'highlight'==_0x226fd4['commandName']){const _0x2ed813=_0x2d4db9['t'],_0x1af67f=_0x226fd4['commandParams'][0x0]['value'];if(_0x1af67f){const _0x221e03=_0x38e9bd['config']['get']('highlight.options')['find'](_0x1e34a3=>_0x1e34a3['model']==_0x1af67f),_0x560d7e=_0x2ed813(_0x221e03['title'])['toLowerCase']();return{'type':'format','content':o(_0x2d4db9,'*Set\x20highlight:*\x20%0',_0x560d7e),'color':{'value':_0x221e03['color'],'title':_0x221e03['title']}};}return{'type':'format','content':o(_0x2d4db9,'*Remove\x20highlight*',o(_0x2d4db9,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x463102{['afterInit'](){const _0x5df46a=this['editor'];if(!_0x5df46a['plugins']['has']('HorizontalLineEditing'))return;_0x5df46a['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x45b553=_0x5df46a['plugins']['get']('TrackChangesEditing'),_0x2e5bcc=_0x5df46a['locale'];_0x45b553['descriptionFactory']['registerElementLabel']('horizontalLine',_0x28c9d3=>o(_0x2e5bcc,'ELEMENT_HORIZONTAL_LINE',_0x28c9d3)),_0x5df46a['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x7c28b,{writer:_0x2f096c,options:_0x28337b})=>{if(!_0x28337b['showSuggestionHighlights'])return null;const _0x53e397=_0x2f096c['createContainerElement']('div'),_0x322716=_0x2f096c['createEmptyElement']('hr');return _0x2f096c['addClass']('ck-horizontal-line',_0x53e397),_0x2f096c['insert'](_0x2f096c['createPositionAt'](_0x53e397,0x0),_0x322716),_0x53e397;},'converterPriority':'high'});}}class et extends _0x463102{['afterInit'](){const _0x3a7053=this['editor'];if(!_0x3a7053['plugins']['has']('HtmlEmbed'))return;const _0x489972=_0x3a7053['plugins']['get']('TrackChangesEditing'),_0x4c0bfa=_0x3a7053['locale'];_0x489972['descriptionFactory']['registerElementLabel']('rawHtml',_0x491cf5=>o(_0x4c0bfa,'ELEMENT_HTML_EMBED',_0x491cf5)),_0x489972['enableDefaultAttributesIntegration']('htmlEmbed'),_0x489972['registerBlockAttribute']('value'),_0x489972['descriptionFactory']['registerDescriptionCallback'](_0x321ec1=>{if('attribute'!=_0x321ec1['type'])return;const {data:_0x56aae7}=_0x321ec1;if(_0x56aae7&&'value'==_0x56aae7['key']&&_0x321ec1['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xbacdce=o(_0x4c0bfa,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4c0bfa,'*Change\x20%0\x20content*',_0xbacdce)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xce99ab=this['editor'],_0x4d1cf3=_0xce99ab['locale'];_0xce99ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13047c=>{if('formatBlock'!=_0x13047c['type'])return;const {data:_0x39fcad}=_0x13047c;if(_0x39fcad&&'htmlEmbed'==_0x39fcad['commandName']){const _0x26abb4=o(_0x4d1cf3,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4d1cf3,'*Change\x20%0\x20content*',_0x26abb4)};}});}}class it extends _0x463102{['afterInit'](){const _0x1cca68=this['editor'];if(!_0x1cca68['plugins']['has']('ImageEditing'))return;const _0x49e781=_0x1cca68['plugins']['get']('TrackChangesEditing'),_0x36eea0=_0x1cca68['plugins']['get']('ImageUtils'),_0x39a851=_0x1cca68['locale'];_0x49e781['enableCommand']('insertImage'),_0x49e781['descriptionFactory']['registerElementLabel']('imageBlock',_0x49f284=>o(_0x39a851,'ELEMENT_IMAGE',_0x49f284)),_0x49e781['descriptionFactory']['registerElementLabel']('imageInline',_0x1f956c=>o(_0x39a851,'ELEMENT_INLINE_IMAGE',_0x1f956c)),_0x49e781['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x39a851,'ELEMENT_CAPTION')),_0x1cca68['plugins']['has']('ImageUploadEditing')&&_0x49e781['enableCommand']('uploadImage'),_0x1cca68['plugins']['has']('ImageBlockEditing')&&_0x1cca68['plugins']['has']('ImageInlineEditing')&&(_0x49e781['enableCommand']('imageTypeInline',(_0x2337e4,_0x1c8753)=>{const _0x956f3a=_0x36eea0['getClosestSelectedImageElement'](_0x1cca68['model']['document']['selection']);_0x1cca68['model']['change'](()=>{_0x49e781['markBlockFormat'](_0x956f3a,{'commandName':'imageTypeInline','commandParams':[_0x1c8753]},[],'convertBlockImageToInline');});}),_0x49e781['enableCommand']('imageTypeBlock',(_0x2c6cce,_0xebfc18)=>{_0x1cca68['model']['change'](_0x329e7b=>{let _0x1efa8d=_0x36eea0['getClosestSelectedImageElement'](_0x1cca68['model']['document']['selection']),_0x7f1a64=_0x329e7b['createRangeOn'](_0x1efa8d);const _0x30cd8c=_0x293de4['fromPosition'](_0x7f1a64['start'],'toPrevious'),_0x9ad4c4=_0x293de4['fromPosition'](_0x7f1a64['end'],'toNext');_0x49e781['forceDefaultExecution'](()=>_0x2c6cce(_0xebfc18)),_0x1efa8d=_0x36eea0['getClosestSelectedImageElement'](_0x1cca68['model']['document']['selection']),_0x7f1a64=_0x329e7b['createRangeOn'](_0x1efa8d);const _0x4896b6=_0x329e7b['createRange'](_0x30cd8c,_0x9ad4c4);_0x30cd8c['detach'](),_0x9ad4c4['detach'](),_0x49e781['markBlockFormat'](_0x1efa8d,{'commandName':'imageTypeInline','commandParams':[_0xebfc18]},[],'convertInlineImageToBlock'),_0x4896b6['start']['isBefore'](_0x7f1a64['start'])&&_0x49e781['markInsertion'](_0x329e7b['createRange'](_0x4896b6['start'],_0x7f1a64['start']),'convertInlineImageToBlock'),_0x7f1a64['end']['isBefore'](_0x4896b6['end'])&&_0x49e781['markInsertion'](_0x329e7b['createRange'](_0x7f1a64['end'],_0x4896b6['end']),'convertInlineImageToBlock');});}),_0x49e781['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x49e781['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x49e781['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x49e781['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x49e781['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x49e781['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5670dc])=>{const _0x35381d=_0x49e781['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2651e2=_0x5670dc['start'],_0x9b2e7f=_0x5670dc['end'];const _0x444549=_0x1cca68['model']['schema']['getNearestSelectionRange'](_0x2651e2,'backward'),_0x2fa3db=_0x1cca68['model']['schema']['getNearestSelectionRange'](_0x9b2e7f,'forward');_0x444549['isCollapsed']&&(_0x2651e2=_0x444549['start']),_0x2fa3db['isCollapsed']&&(_0x9b2e7f=_0x2fa3db['end']),_0x35381d([_0x1cca68['model']['createRange'](_0x2651e2,_0x9b2e7f)]);}),_0x49e781['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4821f9),_0x49e781['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4821f9)),_0x1cca68['plugins']['has']('ImageCaptionEditing')&&(_0x49e781['enableCommand']('toggleImageCaption',(_0x5ae61b,_0x326404)=>{const _0x2da744=_0x1cca68['plugins']['get']('ImageCaptionUtils');let _0x5b6d5a=_0x36eea0['getClosestSelectedImageElement'](_0x1cca68['model']['document']['selection']),_0x3fef69=_0x2da744['getCaptionFromImageModelElement'](_0x5b6d5a);_0x1cca68['model']['change'](()=>{if(_0x3fef69)return void _0x49e781['markDeletion'](_0x1cca68['model']['createRangeOn'](_0x3fef69));const _0x33d7ec=_0x36eea0['isBlockImage'](_0x5b6d5a);_0x5ae61b(_0x326404),_0x5b6d5a=_0x36eea0['getClosestSelectedImageElement'](_0x1cca68['model']['document']['selection']),_0x3fef69=_0x2da744['getCaptionFromImageModelElement'](_0x5b6d5a),_0x49e781['markInsertion'](_0x1cca68['model']['createRangeOn'](_0x3fef69),_0x33d7ec?null:'imageCaption');});}),_0x49e781['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4821f9));const _0x2e1195=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x390f43(_0x399b58,_0x41026e){const _0x7b0b32=_0x2e1195['findIndex'](({type:_0x288d77,subType:_0x1df255})=>_0x399b58['type']==_0x288d77&&_0x399b58['subType']==_0x1df255),_0x4993d9=_0x2e1195['findIndex'](({type:_0x39a66b,subType:_0x4e0389})=>_0x41026e['type']==_0x39a66b&&_0x41026e['subType']==_0x4e0389);if(_0x7b0b32<0x0||_0x4993d9<0x0)return!0x1;const _0x441cb6=_0x399b58['getFirstRange'](),_0x2630ec=_0x41026e['getFirstRange']();if((0x0==_0x7b0b32||0x1==_0x7b0b32)&&0x2==_0x4993d9&&_0x441cb6['isIntersecting'](_0x2630ec))return!0x0;if(0x2==_0x7b0b32&&0x3==_0x4993d9){const _0x13d6de=_0x49e781['_findSuggestions'](_0x441cb6,'insertion')['filter'](({suggestion:_0x4fd1ae,meta:_0x18750b})=>_0x18750b['isOwn']&&'convertInlineImageToBlock'==_0x4fd1ae['subType']);if(_0x13d6de['length']>0x1&&_0x2630ec['end']['isEqual'](_0x441cb6['start']))return!0x0;if(0x1==_0x13d6de['length']&&(_0x441cb6['start']['isEqual'](_0x2630ec['end'])||_0x441cb6['end']['isEqual'](_0x2630ec['start'])))return!0x0;}if(0x3==_0x7b0b32&&0x3==_0x4993d9&&_0x441cb6['start']['isBefore'](_0x2630ec['start'])){const _0x52d4fb=_0x441cb6['end']['nodeAfter'],_0x2db4be=_0x2630ec['start']['nodeBefore'];return _0x36eea0['isBlockImage'](_0x52d4fb)&&_0x52d4fb===_0x2db4be;}return!0x1;}function _0x4821f9(_0x3007a3,_0x1fd0ce){return _0x390f43(_0x3007a3,_0x1fd0ce)?[_0x3007a3,_0x1fd0ce]:_0x390f43(_0x1fd0ce,_0x3007a3)?[_0x1fd0ce,_0x3007a3]:null;}_0x1cca68['plugins']['has']('ImageResize')&&(_0x49e781['enableDefaultAttributesIntegration']('resizeImage'),_0x49e781['registerBlockAttribute']('resizedWidth'),_0x49e781['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x39a851,'FORMAT_IMAGE_SIZE'))),_0x1cca68['plugins']['has']('ImageTextAlternativeEditing')&&(_0x49e781['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x49e781['registerBlockAttribute']('alt')),_0x49e781['descriptionFactory']['registerDescriptionCallback'](_0x5cb04e=>{if(!!_0x2e1195['find'](({type:_0x4cdfd8,subType:_0xca1580})=>_0x5cb04e['type']==_0x4cdfd8&&_0x5cb04e['subType']==_0xca1580))return _0x5cb04e['previous']?{}:void 0x0;}),_0x49e781['descriptionFactory']['registerDescriptionCallback'](_0x390562=>{if('insertion'==_0x390562['type']||'deletion'==_0x390562['type']){const _0x5467bb=_0x390562['getContainedElement']();if(_0x5467bb&&_0x5467bb['is']('element','caption'))return{'type':'insertion'==_0x390562['type']?'addObject':'removeObject','element':_0x5467bb,'quantity':0x1};}}),_0x49e781['descriptionFactory']['registerDescriptionCallback'](_0x456a2d=>'formatBlock'==_0x456a2d['type']&&'convertInlineImageToBlock'==_0x456a2d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x456a2d['type']&&'convertBlockImageToInline'==_0x456a2d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x49e781['descriptionFactory']['registerDescriptionCallback'](_0x510f3f=>{if('attribute'!=_0x510f3f['type'])return;const {data:_0x41ef04}=_0x510f3f;if(!_0x41ef04||'alt'!=_0x41ef04['key'])return;const _0x17eca3=_0x41ef04['newValue'];return _0x17eca3?{'type':'format','content':o(_0x39a851,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x17eca3+'\x22')}:{'type':'format','content':o(_0x39a851,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x468405=this['editor'],_0x416668=_0x468405['locale'];_0x468405['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x503fac=>{if('formatBlock'!=_0x503fac['type']&&'formatInline'!=_0x503fac['type'])return;const {data:_0x5c2f2b}=_0x503fac;if(_0x5c2f2b){if('imageTextAlternative'==_0x5c2f2b['commandName']){const _0x4c0eb2=_0x5c2f2b['commandParams'][0x0]['newValue'];return _0x4c0eb2?{'type':'format','content':o(_0x416668,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4c0eb2+'\x22')}:{'type':'format','content':o(_0x416668,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5c2f2b['commandName']){const _0x143235=_0x5c2f2b['commandParams'][0x0]['width'];return _0x143235?{'type':'format','content':o(_0x416668,'*Set\x20image\x20width:*\x20%0',_0x143235)}:{'type':'format','content':o(_0x416668,'*Reset\x20image\x20width*')};}}});}}class st extends _0x463102{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x21afb4=this['editor']['locale'],_0x2dc80d=this['editor']['plugins']['get']('TrackChangesEditing');_0x2dc80d['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2dc80d['registerBlockAttribute']('src'),_0x2dc80d['descriptionFactory']['registerDescriptionCallback'](_0x3fa5c8=>{if('attribute'!=_0x3fa5c8['type'])return;const {data:_0x29b908}=_0x3fa5c8;return _0x29b908&&'src'==_0x29b908['key']?_0x29b908['newValue']&&_0x29b908['oldValue']?{'type':'format','content':o(_0x21afb4,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4e2f40=this['editor']['plugins']['get']('TrackChangesEditing');_0x4e2f40['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4e2f40['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4e2f40['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4e2f40['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x277e7f=this['editor'],_0xea7084=_0x277e7f['locale'];_0x277e7f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44e147=>{if('formatBlock'!=_0x44e147['type']&&'formatInline'!=_0x44e147['type'])return;const {data:_0x49911c}=_0x44e147;if(!_0x49911c||'replaceImageSource'!=_0x49911c['commandName'])return;return{'type':'format','content':o(_0xea7084,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x463102{['afterInit'](){const _0x31b75b=this['editor'];if(!_0x31b75b['plugins']['has']('ImageStyleEditing'))return;const _0x9acbfb=_0x31b75b['plugins']['get']('TrackChangesEditing'),_0x382b61=_0x31b75b['plugins']['get']('ImageUtils'),_0x22d9fa={};_0x9acbfb['enableCommand']('imageStyle',(_0x42452d,_0x5bf4ea)=>{const _0x2a7333=_0x31b75b['plugins']['get']('Users')['me'],_0x56cd07=_0x31b75b['commands']['get']('imageStyle');let _0x2889d5=_0x382b61['getClosestSelectedImageElement'](_0x31b75b['model']['document']['selection']),_0x21097c=_0x31b75b['model']['createRangeOn'](_0x2889d5),_0x3b1ffe=_0x56cd07['value'];if(_0x3b1ffe==_0x5bf4ea['value'])return;const _0x266bc8={'commandName':'imageStyle','commandParams':[_0x5bf4ea],'formatGroupId':_0x37a894()};_0x31b75b['model']['change'](()=>{if(_0x9acbfb['getSuggestions']()['filter'](_0x48f25a=>_0x48f25a['isInContent']&&_0x2a7333==_0x48f25a['author']&&('formatBlock'==_0x48f25a['type']||'formatInline'==_0x48f25a['type'])&&('imageStylePreApply'==_0x48f25a['subType']||'imageStylePostApply'==_0x48f25a['subType'])&&_0x48f25a['getFirstRange']()['isEqual'](_0x21097c))['forEach'](_0x244c50=>_0x9acbfb['discardSuggestion'](_0x244c50['head'])),_0x2889d5=_0x382b61['getClosestSelectedImageElement'](_0x31b75b['model']['document']['selection']),_0x21097c=_0x31b75b['model']['createRangeOn'](_0x2889d5),_0x56cd07['refresh'](),_0x31b75b['commands']['get']('imageTypeInline')['refresh'](),_0x31b75b['commands']['get']('imageTypeBlock')['refresh'](),_0x3b1ffe=_0x56cd07['value'],_0x3b1ffe!=_0x5bf4ea['value'])return _0x382b61['isInlineImage'](_0x2889d5)&&_0x56cd07['shouldConvertImageType'](_0x5bf4ea['value'],_0x2889d5)?(_0x42452d({..._0x5bf4ea,'setImageSizes':!0x1}),_0x2889d5=_0x382b61['getClosestSelectedImageElement'](_0x31b75b['model']['document']['selection']),void _0x9acbfb['markBlockFormat'](_0x2889d5,{..._0x266bc8,'commandReversedParams':[{'value':_0x3b1ffe||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x382b61['isBlockImage'](_0x2889d5)?_0x9acbfb['markBlockFormat'](_0x2889d5,_0x266bc8,[],'imageStylePostApply'):_0x9acbfb['markInlineFormat'](_0x21097c,_0x266bc8,'imageStylePostApply'));});});for(const _0x57bf55 of _0x31b75b['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x22d9fa[_0x57bf55['name']]=_0x57bf55['title']['toLowerCase']();_0x9acbfb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x9acbfb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x9acbfb['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x9acbfb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1246fa])=>{_0x382b61['setImageNaturalSizeAttributes'](_0x1246fa['getContainedElement']());}),_0x9acbfb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4f6fdb,_0x38a488)=>{_0x9acbfb['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4f6fdb,{'commandName':_0x38a488['commandName'],'commandParams':_0x38a488['commandReversedParams']});}),_0x9acbfb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1f5140,_0x1daadb){if(_0x2c227b(_0x1f5140,_0x1daadb))return[_0x1f5140,_0x1daadb];if(_0x2c227b(_0x1daadb,_0x1f5140))return[_0x1daadb,_0x1f5140];return null;});const _0x1e59f3=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2c227b(_0x4fbb02,_0x32dc40){const _0x264b69=_0x1e59f3['findIndex'](({type:_0x318229,subType:_0x4a6cfc})=>_0x4fbb02['type']==_0x318229&&_0x4fbb02['subType']==_0x4a6cfc),_0x1f2f1e=_0x1e59f3['findIndex'](({type:_0x4d3377,subType:_0x45bea8})=>_0x32dc40['type']==_0x4d3377&&_0x32dc40['subType']==_0x45bea8);if(_0x264b69<0x0||_0x1f2f1e<0x0)return!0x1;const _0x349d9e=_0x4fbb02['getFirstRange'](),_0x294eb0=_0x32dc40['getFirstRange']();if((0x0==_0x264b69||0x1==_0x264b69)&&0x2==_0x1f2f1e&&_0x349d9e['isIntersecting'](_0x294eb0))return!0x0;if(0x2==_0x264b69&&0x3==_0x1f2f1e){const _0x1311d8=_0x9acbfb['_findSuggestions'](_0x349d9e,'insertion')['filter'](({suggestion:_0x1221cd,meta:_0x4dba20})=>_0x4dba20['isOwn']&&'convertInlineImageToBlock'==_0x1221cd['subType']);if(_0x1311d8['length']>0x1&&_0x294eb0['end']['isEqual'](_0x349d9e['start']))return!0x0;if(0x1==_0x1311d8['length']&&(_0x349d9e['start']['isEqual'](_0x294eb0['end'])||_0x349d9e['end']['isEqual'](_0x294eb0['start'])))return!0x0;}if(0x3==_0x264b69&&0x3==_0x1f2f1e&&_0x349d9e['start']['isBefore'](_0x294eb0['start'])){const _0x1006f7=_0x349d9e['end']['nodeAfter'],_0x59b597=_0x294eb0['start']['nodeBefore'];return _0x382b61['isBlockImage'](_0x1006f7)&&_0x1006f7===_0x59b597;}return!0x1;}_0x31b75b['model']['document']['registerPostFixer'](()=>{let _0x1e812a=!0x1;const _0x5d063d=Array['from'](_0x31b75b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x41855e,data:_0x3c2e51}of _0x5d063d){const {group:_0x3f2798,type:_0xe79fa8,subType:_0x22094d,id:_0x3c3339}=_0x9acbfb['_splitMarkerName'](_0x41855e);if('suggestion'==_0x3f2798&&_0x9acbfb['hasSuggestion'](_0x3c3339)){if('formatBlock'==_0xe79fa8&&('imageStylePreApply'==_0x22094d||'imageStylePostApply'==_0x22094d)){const _0xd77297=_0x9acbfb['getSuggestion'](_0x3c3339);if(_0x3c2e51['newRange']){const _0x1b5ecb=_0xd77297['getFirstRange']()['getContainedElement']();if(_0x382b61['isBlockImage'](_0x1b5ecb))continue;_0x9acbfb['discardSuggestion'](_0xd77297),_0x1e812a=!0x0;}}if('insertion'==_0xe79fa8&&'imageCaption'==_0x22094d&&!_0x3c2e51['newRange']){const _0x6920fa=_0x9acbfb['getSuggestion'](_0x3c3339);_0x6920fa['next']&&_0x6920fa['next']['isInContent']&&(_0x9acbfb['discardSuggestion'](_0x6920fa['next']),_0x1e812a=!0x0);}}}return _0x1e812a;}),this['_registerLegacyDescription'](_0x22d9fa);}['_registerLegacyDescription'](_0x566260){const _0x45c812=this['editor'],_0x1f36ab=_0x45c812['locale'];_0x45c812['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x259031=>{if('formatBlock'!=_0x259031['type']&&'formatInline'!=_0x259031['type'])return;const {data:_0x3bc6f7}=_0x259031;if(!_0x3bc6f7||'imageStyle'!=_0x3bc6f7['commandName'])return;const _0x36c72e=_0x3bc6f7['commandParams'][0x0]['value'];return _0x2661ad('side'===_0x36c72e?o(_0x1f36ab,'FORMAT_SIDE_IMAGE'):_0x566260[_0x36c72e]||_0x36c72e);function _0x2661ad(_0x13d9a1){return{'type':'format','content':o(_0x1f36ab,'*Format:*\x20%0',_0x13d9a1)};}});}}class ot extends _0x463102{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x52efed){super(_0x52efed),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x120b00=this['editor'],_0xd8fb0=_0x120b00['commands']['get']('importWord'),_0x7f34d5=_0x120b00['commands']['get']('trackChanges');_0xd8fb0&&(_0xd8fb0['on']('execute',(_0x1709fb,[,_0x3f1f0a])=>{this['_trackChangesValueDuringImport']=_0x7f34d5['value'],_0x3f1f0a['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xd8fb0,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xd8fb0,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x7f34d5['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x120b00['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x897748,_0x52dd40){const {suggestions:_0x1fcb0e}=_0x52dd40,_0x14257d=this['editor']['commands']['get']('trackChanges'),_0x4d88c7=_0x14257d['value'];this['_trackChangesValueDuringImport']!==_0x4d88c7&&(_0x14257d['execute'](),this['_trackChangesExecuted']=!0x0),_0x1fcb0e&&_0x1fcb0e['forEach'](({id:_0x3fd710,type:_0x28312a,author:_0x4a294a,created_at:_0x45b6ce})=>{const _0x55765f={'id':_0x3fd710,'type':_0x28312a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4a294a,'createdAt':_0x45b6ce?new Date(_0x45b6ce):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x55765f);});}}class rt extends _0x463102{['afterInit'](){const _0x2b8d2d=this['editor'],_0x5d392e=_0x2b8d2d['plugins']['get']('TrackChangesEditing');if(_0x2b8d2d['plugins']['has']('IndentEditing')&&(_0x5d392e['enableCommand']('indent'),_0x5d392e['enableCommand']('outdent')),_0x2b8d2d['plugins']['has']('IndentBlock')){for(const _0x3fea9a of['indentBlock','outdentBlock'])_0x5d392e['enableDefaultAttributesIntegration'](_0x3fea9a);}const _0x5c6535=_0x2b8d2d['locale'];_0x5d392e['registerBlockAttribute']('blockIndent'),_0x5d392e['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5c6535,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f538c=this['editor'],_0x34d0ac=_0x1f538c['locale'],_0x44d405=_0x1f538c['plugins']['get']('TrackChangesEditing');_0x44d405['descriptionFactory']['registerDescriptionCallback'](_0x4d7802=>{if('formatBlock'!=_0x4d7802['type'])return;const {data:_0x10358c}=_0x4d7802;if(!_0x10358c)return;if('indentBlock'!=_0x10358c['commandName']&&'outdentBlock'!=_0x10358c['commandName'])return;const _0x5b7415=_0x4d7802['getItems']()[0x0],_0x4a6336=_0x44d405['descriptionFactory']['getItemLabel'](_0x5b7415);return'indentBlock'==_0x10358c['commandName']?{'type':'format','content':o(_0x34d0ac,'*Indent:*\x20%0',_0x4a6336)}:'outdentBlock'==_0x10358c['commandName']?{'type':'format','content':o(_0x34d0ac,'*Outdent:*\x20%0',_0x4a6336)}:void 0x0;});}}class at extends _0x463102{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x463102{['afterInit'](){const _0x363121=this['editor'];if(!_0x363121['plugins']['has']('LinkEditing'))return;const _0x4184a2=_0x363121['plugins']['get']('TrackChangesEditing'),_0x348c03=_0x363121['commands']['get']('link');_0x4184a2['enableDefaultAttributesIntegration']('link'),_0x4184a2['enableDefaultAttributesIntegration']('unlink'),_0x4184a2['registerInlineAttribute']('linkHref');for(const _0x5d1995 of _0x348c03['manualDecorators'])_0x4184a2['registerInlineAttribute'](_0x5d1995['id']),_0x4184a2['descriptionFactory']['registerAttributeLabel'](_0x5d1995['id'],'link\x20('+_0x5d1995['label']['toLowerCase']()+')');_0x4184a2['descriptionFactory']['registerDescriptionCallback'](_0x27a33a=>{if('attribute'!=_0x27a33a['type'])return;const {data:_0x28ee9e}=_0x27a33a;if(!_0x28ee9e||'linkHref'!=_0x28ee9e['key'])return;const _0x317ae4=_0x28ee9e['newValue'],_0x442134=_0x363121['locale'];return{'type':'format','content':null==_0x317ae4?o(_0x442134,'*Remove\x20link*'):o(_0x442134,'*Set\x20link:*\x20%0','\x22'+_0x317ae4+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b058c=this['editor'],_0x31b94f=_0x1b058c['locale'];_0x1b058c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b01bf=>{if('formatInline'!=_0x5b01bf['type'])return;const {data:_0x296d3f}=_0x5b01bf;if(_0x296d3f){if('link'==_0x296d3f['commandName']){const _0x69e868=_0x296d3f['commandParams'][0x0];return{'type':'format','content':o(_0x31b94f,'*Set\x20link:*\x20%0','\x22'+_0x69e868+'\x22')};}return'unlink'==_0x296d3f['commandName']?{'type':'format','content':o(_0x31b94f,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x463102{['afterInit'](){const _0x242676=this['editor'],_0x4379d2=_0x242676['locale'];if(!_0x242676['plugins']['has']('LegacyListEditing'))return;const _0x11359e=_0x242676['plugins']['get']('TrackChangesEditing'),_0x5e5c07=_0x242676['plugins']['has']('LegacyTodoListEditing');function _0x633ae5(_0x1af7f8){return()=>{const _0x426c1a=_0x242676['model']['document']['selection'],_0x1d945f=_0x242676['commands']['get'](_0x1af7f8);if(_0x1d945f['value'])return void _0x242676['execute']('paragraph',{});const _0x9f1261=_0x1af7f8['slice'](0x0,-0x4),_0x2ad40c=function(_0x23ec9e,_0x300c9a,_0x2c5dac){let _0xb4d7f0=Array['from'](_0x23ec9e)['filter'](_0x3311d6=>function(_0x7de2c,_0x262654){return _0x262654['checkChild'](_0x7de2c['parent'],'listItem')&&!_0x262654['isObject'](_0x7de2c);}(_0x3311d6,_0x2c5dac));_0xb4d7f0=_0xb4d7f0['filter'](_0x3d1250=>!_0x3d1250['is']('element','listItem')||_0x3d1250['getAttribute']('listType')!=_0x300c9a);const _0x56ed4e=new Set();for(const _0x508853 of _0xb4d7f0)_0x508853['is']('element','listItem')?_0x56ed4e['add'](me(_0x508853)):_0x56ed4e['add'](_0x508853);return Array['from'](_0x56ed4e);}(_0x426c1a['getSelectedBlocks'](),_0x9f1261,_0x242676['model']['schema']);_0x242676['model']['change'](()=>{for(const _0x3ba04f of _0x2ad40c)_0x11359e['markBlockFormat'](_0x3ba04f,{'commandName':_0x1af7f8,'commandParams':[{'forceValue':!_0x1d945f['value']}],'formatGroupId':'blockName'},fe(_0x3ba04f));});};}function _0x3f7fde(_0xe7cc3e){return()=>{const _0x45c766=function(_0x3618d8){let _0xf2b13c=Array['from'](_0x3618d8);const _0x5906a4=_0xf2b13c['findIndex'](_0x3d765f=>'listItem'!=_0x3d765f['name']);return _0x5906a4>-0x1&&(_0xf2b13c=_0xf2b13c['slice'](0x0,_0x5906a4)),_0xf2b13c;}(_0x242676['model']['document']['selection']['getSelectedBlocks']()),_0x52caef=_0x242676['model']['createRange'](_0x242676['model']['createPositionAt'](_0x45c766[0x0],'before'),_0x242676['model']['createPositionAt'](_0x45c766[_0x45c766['length']-0x1],'end'));_0x242676['model']['change'](()=>{_0x11359e['markBlockFormat'](_0x52caef,{'commandName':_0xe7cc3e,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5eb2ea){const _0x479e2d=new Set();for(const _0x2ba786 of _0x5eb2ea){let _0x59fa7f=_0x2ba786['nextSibling'];for(;_0x59fa7f&&_0x59fa7f['getAttribute']('listIndent')>_0x2ba786['getAttribute']('listIndent');)_0x479e2d['add'](_0x59fa7f),_0x59fa7f=_0x59fa7f['nextSibling'];}return Array['from'](_0x479e2d);}(_0x45c766));});};}_0x11359e['enableCommand']('numberedList',_0x633ae5('numberedList')),_0x11359e['enableCommand']('bulletedList',_0x633ae5('bulletedList')),_0x5e5c07&&_0x11359e['enableCommand']('todoList',_0x633ae5('todoList')),_0x11359e['enableCommand']('indentList',_0x3f7fde('indentList')),_0x11359e['enableCommand']('outdentList',_0x3f7fde('outdentList')),_0x5e5c07&&_0x11359e['enableCommand']('checkTodoList',()=>{const _0x50486a=_0x242676['commands']['get']('checkTodoList'),_0x4da5ca=Array['from'](_0x50486a['_selectedElements']);_0x4da5ca['filter'](_0x46ffc3=>_0x46ffc3['getAttribute']('todoListChecked')!=_0x50486a['value']),_0x242676['model']['change'](()=>{for(const _0x186a98 of _0x4da5ca)_0x11359e['markBlockFormat'](_0x186a98,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x50486a['value']}]});});}),_0x11359e['descriptionFactory']['registerElementLabel']('listItem',_0x4aac40=>o(_0x4379d2,'ELEMENT_LIST_ITEM',_0x4aac40)),_0x11359e['descriptionFactory']['registerDescriptionCallback'](_0xb43781=>{if('formatBlock'!=_0xb43781['type']&&'formatInline'!=_0xb43781['type'])return;const {data:_0x1b5a79}=_0xb43781;if(_0x1b5a79){if('numberedList'==_0x1b5a79['commandName']||'bulletedList'==_0x1b5a79['commandName']||'todoList'==_0x1b5a79['commandName'])switch(_0x1b5a79['commandName']['replace']('List','')){case'bulleted':return _0x1eec1a(o(_0x4379d2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1eec1a(o(_0x4379d2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1eec1a(o(_0x4379d2,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1b5a79['commandName'])return{'type':'format','content':o(_0x4379d2,'*Indent:*\x20%0',o(_0x4379d2,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1b5a79['commandName'])return{'type':'format','content':o(_0x4379d2,'*Outdent:*\x20%0',o(_0x4379d2,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1b5a79['commandName'])return _0x1b5a79['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4379d2,'*Check\x20item*')}:{'type':'format','content':o(_0x4379d2,'*Uncheck\x20item*')};}function _0x1eec1a(_0x226603){return{'type':'format','content':o(_0x4379d2,'*Change\x20to:*\x20%0',_0x226603)};}});}}function me(_0x57d566){const _0x386b5a=_0x57d566['getAttribute']('listIndent');if(0x0==_0x386b5a)return _0x57d566;let _0x36f9ee=_0x57d566;for(;_0x57d566['previousSibling']&&_0x57d566['previousSibling']['is']('element','listItem');){const _0x30d8eb=_0x57d566['previousSibling']['getAttribute']('listIndent');if(_0x30d8eb==_0x386b5a)_0x36f9ee=_0x57d566['previousSibling'];else{if(_0x30d8eb<_0x386b5a)break;}_0x57d566=_0x57d566['previousSibling'];}return _0x36f9ee;}function fe(_0x4b2fb7){const _0x2e83d2=[];if(_0x4b2fb7['is']('element','listItem')&&_0x4b2fb7['getAttribute']('listIndent')>0x0){let _0x440880=_0x4b2fb7['nextSibling'];for(;_0x440880&&'listItem'==_0x440880['name']&&_0x440880['getAttribute']('listIndent')==_0x4b2fb7['getAttribute']('listIndent');)_0x2e83d2['push'](_0x440880),_0x440880=_0x440880['nextSibling'];}return _0x2e83d2;}class K extends _0x463102{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xf5aa7f=this['editor']['config']['get']('list.properties'),_0x42a7d0=this['editor']['plugins']['get']('TrackChangesEditing');_0xf5aa7f['styles']&&_0x42a7d0['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xf5aa7f['reversed']&&_0x42a7d0['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xf5aa7f['startIndex']&&_0x42a7d0['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x42a7d0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1ccce1,_0x4a14eb={}){const _0x350c3a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ad32c=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x350c3a['markMultiRangeBlockFormat'](_0x3ad32c,{'commandName':'listStyle','commandParams':[{'type':_0x4a14eb['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2a237e,_0x4f51b2={}){const _0x14c5ab=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e4605=this['_getSuggestionBlocks'](_0x3858d1=>_0x3858d1['is']('element','listItem')&&'numbered'===_0x3858d1['getAttribute']('listType'));if(_0x5e4605['length']<0x1)return;const _0x12a076=_0x5e4605['map'](_0x28802c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x28802c,'before'),this['editor']['model']['createPositionAt'](_0x28802c,0x0)));this['editor']['model']['change'](()=>{_0x14c5ab['markMultiRangeBlockFormat'](_0x12a076,{'commandName':'listReversed','commandParams':[{'reversed':_0x4f51b2['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xc509b6,_0x365422={}){const _0xd2f2a7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x157bcb=this['_getSuggestionBlocks'](_0x4a882d=>_0x4a882d['is']('element','listItem')&&'numbered'===_0x4a882d['getAttribute']('listType'));if(_0x157bcb['length']<0x1)return;const _0x436104=_0x157bcb['map'](_0x2b2325=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2b2325,'before'),this['editor']['model']['createPositionAt'](_0x2b2325,0x0)));this['editor']['model']['change'](()=>{_0xd2f2a7['markMultiRangeBlockFormat'](_0x436104,{'commandName':'listStart','commandParams':[{'startIndex':_0x365422['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4bd615){if('formatBlock'!=_0x4bd615['type']&&'formatInline'!=_0x4bd615['type'])return;const _0x17d6ad=this['editor']['locale'],{data:_0x3a67e4}=_0x4bd615;if(!_0x3a67e4)return;let _0x3122a2,_0x317326;switch(_0x3a67e4['commandName']){case'listStyle':_0x3122a2='*Change\x20to:*\x20%0',_0x317326={'type':'format','content':o(_0x17d6ad,_0x3122a2,o(_0x17d6ad,this['_getTranslationKeyForListStyle'](_0x3a67e4['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3122a2=_0x3a67e4['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x317326={'type':'format','content':o(_0x17d6ad,_0x3122a2)};break;case'listStart':_0x3122a2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x317326={'type':'format','content':o(_0x17d6ad,_0x3122a2,_0x3a67e4['commandParams'][0x0]['startIndex'])};}return _0x317326;}['_getSuggestionBlocksForListStyle'](){const _0x425687=this['editor']['plugins']['get']('LegacyListUtils');let _0x54cd62=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x54cd62[0x0]?.['is']('element','listItem')&&_0x54cd62['unshift'](..._0x425687['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x54cd62[_0x54cd62['length']-0x1]?.['is']('element','listItem')&&_0x54cd62['push'](..._0x425687['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x54cd62=[...new Set(_0x54cd62)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x54cd62=_0x54cd62['filter'](_0x3e654f=>_0x3e654f['is']('element','listItem'))),_0x54cd62;}['_getSuggestionBlocks'](_0x5a81bb){const _0x5815fb=this['editor']['plugins']['get']('LegacyListUtils');let _0x43a644=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5a81bb)['map'](_0x5f3bee=>{const _0x2a64d4=this['editor']['model']['createPositionAt'](_0x5f3bee,0x0);return[..._0x5815fb['getSiblingNodes'](_0x2a64d4,'backward'),..._0x5815fb['getSiblingNodes'](_0x2a64d4,'forward')];})['flat']();return _0x43a644=[...new Set(_0x43a644)],_0x43a644;}['_getTranslationKeyForListStyle'](_0x2665a9){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2665a9)||'default')['toUpperCase']()+'_LIST_'+_0x2665a9['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x463102{['afterInit'](){const _0x525fab=this['editor'];if(!_0x525fab['plugins']['has']('MediaEmbedEditing'))return;const _0xdb60bf=_0x525fab['plugins']['get']('TrackChangesEditing'),_0x19bf29=_0x525fab['locale'];_0xdb60bf['enableCommand']('mediaEmbed'),_0xdb60bf['descriptionFactory']['registerElementLabel']('media',_0x3f6f3f=>o(_0x19bf29,'ELEMENT_MEDIA',_0x3f6f3f)),_0x525fab['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3e069e,{writer:_0x570eba,options:_0x2f2810})=>{if(_0x2f2810['showSuggestionHighlights'])return _0x570eba['createEmptyElement']('div');},'converterPriority':'high'}),_0x525fab['data']['downcastDispatcher']['on']('attribute:url:media',(_0xd27709,_0x5ad375,_0x355b2e)=>{_0x355b2e['options']['showSuggestionHighlights']&&_0xd27709['stop']();},{'priority':'high'});}}class gt extends _0x463102{['afterInit'](){const _0x4aa7ed=this['editor'];_0x4aa7ed['plugins']['has']('MentionEditing')&&_0x4aa7ed['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x463102{['afterInit'](){const _0x22b61d=this['editor'],_0x42f151=_0x22b61d['plugins']['get']('TrackChangesEditing');_0x22b61d['plugins']['has']('MultiLevelList')&&(_0x42f151['enableDefaultAttributesIntegration']('multiLevelList'),_0x42f151['registerBlockAttribute']('listMarkerStyle'),_0x42f151['descriptionFactory']['registerDescriptionCallback'](_0x375bb4=>this['handleDescriptions'](_0x375bb4)));}['handleDescriptions'](_0x47a221){const _0xd368f8=this['editor']['locale'],{data:_0x215244}=_0x47a221,_0x258144={'type':'format','content':''};if(_0x215244&&'listMarkerStyle'==_0x215244['key']){if(!_0x215244['oldValue'])return{'type':'format','content':o(_0xd368f8,'*Set\x20format:*\x20%0',o(_0xd368f8,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x215244['newValue']+')'};if(!_0x215244['newValue']){let _0x20c55c=_0x47a221['head'];for(;_0x20c55c;){if(_0x20c55c['data']&&'listType'==_0x20c55c['data']['key']&&_0x20c55c['data']['newValue'])return _0x258144;_0x20c55c=_0x20c55c['next'];}return{'type':'format','content':o(_0xd368f8,'*Remove\x20format:*\x20%0',o(_0xd368f8,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x215244['oldValue']+')'};}}}}class mt extends _0x463102{['afterInit'](){const _0x59f5ea=this['editor'];if(!_0x59f5ea['plugins']['has']('PageBreakEditing'))return;_0x59f5ea['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x56c070=_0x59f5ea['plugins']['get']('TrackChangesEditing'),_0x57ad6a=_0x59f5ea['locale'];_0x56c070['descriptionFactory']['registerElementLabel']('pageBreak',_0x436702=>o(_0x57ad6a,'ELEMENT_PAGE_BREAK',_0x436702));}}class dt extends _0x463102{['afterInit'](){const _0x40a217=this['editor'];if(!_0x40a217['plugins']['has']('Paragraph'))return;const _0x560fdb=_0x40a217['locale'],_0x55d3db=_0x40a217['plugins']['get']('TrackChangesEditing');_0x55d3db['descriptionFactory']['registerElementLabel']('paragraph',_0x8f3efa=>o(_0x560fdb,'ELEMENT_PARAGRAPH',_0x8f3efa)),_0x55d3db['enableDefaultAttributesIntegration']('paragraph'),_0x55d3db['enableCommand']('insertParagraph'),_0x40a217['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x40a217),{'priority':'highest'}),_0x40a217['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1b5dbd,_0xe94ffc,_0x76582a)=>{_0x76582a['options']['showSuggestionHighlights']&&nr(_0x40a217,{'showActiveMarker':!0x1})(_0x1b5dbd,_0xe94ffc,_0x76582a);},{'priority':'highest'});const _0x43236a=_0x55d3db['descriptionFactory'];_0x43236a['registerDescriptionCallback'](_0x60e00c=>{if('insertion'!==_0x60e00c['type'])return;const {start:_0x4e1600,end:_0x5e994f}=_0x60e00c['getFirstRange']();if(!_0x4e1600['isTouching'](_0x5e994f)||!_0x4e1600['nodeAfter'])return;const _0x4f2337=_0x40a217['model']['schema'],_0x5b450b=_0x4e1600['nodeAfter'];return _0x4f2337['isBlock'](_0x5b450b)&&!_0x4f2337['isLimit'](_0x5b450b)&&_0x4f2337['checkChild'](_0x5b450b,'$text')?{'type':'insertion','content':o(_0x560fdb,'*Insert:*\x20%0',_0x43236a['getItemLabel'](_0x5b450b,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x225e3c=this['editor'],_0x34ff76=_0x225e3c['locale'];_0x225e3c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x411471=>{if('formatBlock'!=_0x411471['type'])return;const {data:_0x19251c}=_0x411471;return _0x19251c&&'paragraph'==_0x19251c['commandName']?{'type':'format','content':o(_0x34ff76,'*Change\x20to:*\x20%0',o(_0x34ff76,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2b9215,{showActiveMarker:_0x106231=!0x0}={}){return(_0x3b6d0b,_0x274829,_0x341647)=>{const _0x5b85ff=_0x2b9215['plugins']['get']('TrackChangesEditing'),_0x33c544=_0x274829['markerRange']['start'],_0x548e7b=_0x274829['markerRange']['end'],_0x6f9e25=_0x2b9215['model']['schema'];if(!_0x33c544['isTouching'](_0x548e7b)||!_0x33c544['nodeAfter'])return;const _0x721a50=_0x33c544['nodeAfter'];if(_0x6f9e25['isBlock'](_0x721a50)&&!_0x6f9e25['isLimit'](_0x721a50)&&_0x6f9e25['checkChild'](_0x721a50,'$text')){if(!_0x341647['consumable']['consume'](_0x274829['markerRange'],_0x3b6d0b['name']))return;const _0x4bc200=_0x341647['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x24ea2a=_0x341647['mapper']['toViewPosition'](_0x548e7b);_0x106231&&_0x5b85ff['activeMarkers']['includes'](_0x274829['markerName'])&&_0x341647['writer']['addClass']('ck-suggestion-marker--active',_0x4bc200),_0x341647['writer']['insert'](_0x24ea2a,_0x4bc200),_0x341647['mapper']['bindElementToMarker'](_0x4bc200,_0x274829['markerName']);}};}class pt extends _0x463102{['afterInit'](){const _0x22476f=this['editor'];if(!_0x22476f['plugins']['has']('RemoveFormatEditing'))return;_0x22476f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ab0a1=this['editor'];_0x3ab0a1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c2c3d=>{if('formatBlock'!=_0x1c2c3d['type']&&'formatInline'!=_0x1c2c3d['type'])return;const {data:_0x1dddd6}=_0x1c2c3d;return _0x1dddd6&&'removeFormat'==_0x1dddd6['commandName']?{'type':'format','content':o(_0x3ab0a1['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x463102{['afterInit'](){const _0x10b23f=this['editor'];if(!_0x10b23f['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x48104d=_0x10b23f['plugins']['get']('TrackChangesEditing');_0x48104d['enableCommand']('goToPreviousRestrictedEditingException'),_0x48104d['enableCommand']('goToNextRestrictedEditingException');const _0x32fce2=_0x10b23f['plugins']['get']('RestrictedEditingModeEditing');_0x32fce2['enableCommand']('trackChanges'),_0x32fce2['enableCommand']('acceptSuggestion'),_0x32fce2['enableCommand']('discardSuggestion'),_0x32fce2['enableCommand']('acceptAllSuggestions'),_0x32fce2['enableCommand']('discardAllSuggestions'),_0x32fce2['enableCommand']('acceptSelectedSuggestions'),_0x32fce2['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x463102{static get['requires'](){return[_0x49800b];}['init'](){const _0x3fcf19=this['editor'],_0x50f096=_0x3fcf19['plugins']['get']('TrackChangesEditing');_0x50f096['enableCommand']('shiftEnter'),_0x3fcf19['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x3fcf19),{'priority':'high'}),_0x3fcf19['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x3fcf19),{'priority':'high'}),_0x3fcf19['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x188221,_0x2e49cc,_0x4daf63)=>{_0x4daf63['options']['showSuggestionHighlights']&&de(_0x3fcf19,{'showActiveMarker':!0x1})(_0x188221,_0x2e49cc,_0x4daf63);}),_0x50f096['descriptionFactory']['registerElementLabel']('softBreak',_0x2717e5=>o(_0x3fcf19['locale'],'ELEMENT_LINE_BREAK',_0x2717e5));}}function de(_0x210986,{showActiveMarker:_0x50234c=!0x0}={}){return(_0x5e2036,_0x562fcd,_0x58298d)=>{const _0x13ba3c=_0x210986['plugins']['get']('TrackChangesEditing');if(!_0x58298d['consumable']['test'](_0x562fcd['markerRange'],_0x5e2036['name']))return;const _0x5a8022=_0x210986['model'];for(const _0x5a0911 of _0x562fcd['markerRange']['getItems']()){if(!_0x5a0911['is']('element','softBreak'))continue;const _0x4e9ce0='deletion'==_0x562fcd['markerName']['split'](':')[0x1]?'merge':'split',_0x459790=_0x58298d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4e9ce0}),_0x5345b4=_0x58298d['mapper']['toViewPosition'](_0x5a8022['createPositionBefore'](_0x5a0911));_0x50234c&&_0x13ba3c['activeMarkers']['includes'](_0x562fcd['markerName'])&&_0x58298d['writer']['addClass']('ck-suggestion-marker--active',_0x459790),_0x58298d['writer']['insert'](_0x5345b4,_0x459790),_0x58298d['mapper']['bindElementToMarker'](_0x459790,_0x562fcd['markerName']);}};}class wt extends _0x463102{['afterInit'](){const _0x2b187d=this['editor'],_0x3b2471=_0x2b187d['model'],_0x434b7e=_0x2b187d['locale'];if(!_0x2b187d['plugins']['has']('StandardEditingModeEditing'))return;const _0x5ecedd=_0x2b187d['plugins']['get']('TrackChangesEditing'),_0x589ac2='restrictedEditingException',_0x4dfba5=_0x2b187d['commands']['get'](_0x589ac2);_0x5ecedd['enableCommand'](_0x589ac2,(_0x516b0f,_0x1172eb={})=>{const _0xffa0c7=_0x3b2471['document']['selection'];if(_0xffa0c7['isCollapsed'])return void _0x516b0f(_0x1172eb);const _0x2c1d87=void 0x0!==_0x1172eb['forceValue']?_0x1172eb['forceValue']:!_0x4dfba5['value'];_0x3b2471['change'](()=>{const _0x2af832=Array['from'](_0xffa0c7['getRanges']());for(const _0x28f5d2 of _0x2af832){const _0x4b1565=_0x2c1d87?[_0x28f5d2]:io(_0x589ac2,_0x28f5d2,_0x3b2471);for(const _0x1bd351 of _0x4b1565)_0x5ecedd['markInlineFormat'](_0x1bd351,{'commandName':_0x589ac2,'commandParams':[{'forceValue':_0x2c1d87}]});}});}),_0x5ecedd['descriptionFactory']['registerDescriptionCallback'](_0x4d8754=>{if('formatBlock'!=_0x4d8754['type']&&'formatInline'!=_0x4d8754['type'])return;const {data:_0xb06783}=_0x4d8754;return _0xb06783&&_0xb06783['commandName']==_0x589ac2?_0xb06783['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x434b7e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x434b7e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x463102{['afterInit'](){const _0x1f8114=this['editor'];if(!_0x1f8114['plugins']['has']('Style')||!_0x1f8114['plugins']['has']('DataSchema'))return;const _0x8891de=_0x1f8114['plugins']['get']('TrackChangesEditing'),_0x19ad84=_0x1f8114['locale'],_0xee7f17=_0x1f8114['config']['get']('style')||{},_0x3a9346=_0x1f8114['plugins']['get']('GeneralHtmlSupport'),_0x5a70e7=_0x1f8114['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1f8114['plugins']['get']('DataSchema'),_0xee7f17['definitions']);_0x8891de['enableDefaultAttributesIntegration']('style');const _0x3622f5=new Set();for(const _0x3d2440 of _0x5a70e7['block']){const _0x1a1ad3=_0x3a9346['getGhsAttributeNameForElement'](_0x3d2440['element']);_0x3622f5['add'](_0x1a1ad3);}const _0x336f14=new Set();for(const _0x48f575 of _0x5a70e7['inline']){const _0x23b288=_0x3a9346['getGhsAttributeNameForElement'](_0x48f575['element']);_0x336f14['add'](_0x23b288);for(const _0x17c565 of _0x48f575['ghsAttributes'])_0x336f14['add'](_0x17c565);}for(const _0x28293b of _0x3622f5)_0x8891de['registerBlockAttribute'](_0x28293b),_0x8891de['descriptionFactory']['registerAttributeLabel'](_0x28293b,o(_0x19ad84,'FORMAT_STYLE'));for(const _0x196399 of _0x336f14)_0x8891de['registerInlineAttribute'](_0x196399),_0x8891de['descriptionFactory']['registerAttributeLabel'](_0x196399,o(_0x19ad84,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3eb27d=this['editor'],_0x7810f4=_0x3eb27d['locale'];_0x3eb27d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d38a9=>{if('formatBlock'!=_0x5d38a9['type']&&'formatInline'!=_0x5d38a9['type'])return;const {data:_0x15fd5c}=_0x5d38a9;return _0x15fd5c&&'style'===_0x15fd5c['commandName']?_0x15fd5c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x7810f4,'*Set\x20format:*\x20%0',_0x15fd5c['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x7810f4,'*Remove\x20format:*\x20%0',_0x15fd5c['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x463102{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3fb66d){super(_0x3fb66d),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x25c173=this['editor'],_0x9a6c63=_0x25c173['model']['document']['selection'];if(!_0x25c173['plugins']['has']('TableEditing'))return;const _0x86c977=_0x25c173['locale'],_0x5bd2cf=_0x25c173['plugins']['get']('TrackChangesEditing'),_0x314ed5=_0x25c173['plugins']['get']('TableUtils');_0x5bd2cf['descriptionFactory']['registerElementLabel']('table',_0x168cae=>o(_0x86c977,'ELEMENT_TABLE',_0x168cae)),this['_setupColumnsRowsFixing'](),_0x5bd2cf['enableCommand']('insertTable'),_0x5bd2cf['enableCommand']('selectTableRow'),_0x5bd2cf['enableCommand']('selectTableColumn');for(const _0x2130a6 of['insertTableRowAbove','insertTableRowBelow']){const _0x56fd77=_0x25c173['commands']['get'](_0x2130a6);_0x5bd2cf['enableCommand'](_0x2130a6,_0x4dfa5f=>{_0x25c173['model']['change'](_0x421768=>{_0x4dfa5f();const _0x390dae='above'===_0x56fd77['order'],_0x1fa7ce=_0x314ed5['getSelectionAffectedTableCells'](_0x9a6c63),_0xb79b18=_0x314ed5['getRowIndexes'](_0x1fa7ce),_0x4cbb52=_0x390dae?_0xb79b18['first']-0x1:_0xb79b18['last']+0x1,_0x127d7b=_0x1fa7ce[0x0]['findAncestor']('table'),_0x446593=_0x314ed5['createTableWalker'](_0x127d7b,{'startRow':_0x4cbb52,'endRow':_0x4cbb52}),_0x289276=Array['from'](_0x446593)['map'](_0x34d414=>_0x421768['createRangeOn'](_0x34d414['cell']));_0x5bd2cf['markMultiRangeInsertion'](_0x289276,'tableRow');});});}for(const _0x35719f of['insertTableColumnLeft','insertTableColumnRight']){const _0x1d62d5=_0x25c173['commands']['get'](_0x35719f);_0x5bd2cf['enableCommand'](_0x35719f,_0x82b880=>{_0x25c173['model']['change'](_0x23f505=>{_0x82b880();const _0x5d372f='left'===_0x1d62d5['order'],_0xffd2be=_0x314ed5['getSelectionAffectedTableCells'](_0x9a6c63),_0x410517=_0x314ed5['getColumnIndexes'](_0xffd2be),_0x2e3db9=_0x5d372f?_0x410517['first']-0x1:_0x410517['last']+0x1,_0x49f36e=_0xffd2be[0x0]['findAncestor']('table'),_0x552a0b=_0x314ed5['createTableWalker'](_0x49f36e,{'startRow':0x0,'column':_0x2e3db9,'includeAllSlots':!0x1}),_0x2192ab=Array['from'](_0x552a0b)['map'](_0x127762=>_0x23f505['createRangeOn'](_0x127762['cell']));_0x5bd2cf['markMultiRangeInsertion'](_0x2192ab,'tableColumn');});});}for(const _0x18ee83 of['removeTableRow','removeTableColumn']){const _0x9e5aa9=_0x18ee83['substr'](0xb),_0x35d573=_0x9e5aa9['toLowerCase'](),_0x41e14a=_0x35d573['substr'](0x0,0x3)+'span',_0x35fda8='table'+_0x9e5aa9,_0x2ed477='min'+_0x9e5aa9,_0xcf82d6='max'+_0x9e5aa9;_0x5bd2cf['enableCommand'](_0x18ee83,()=>{_0x25c173['model']['change'](_0x1c3a87=>{const _0x25832f=_0x314ed5['getSelectionAffectedTableCells'](_0x9a6c63),_0x170a1c=_0x25832f[0x0]['findAncestor']('table');let _0x1e96a1;if('removeTableRow'==_0x18ee83){const _0xaf1e9a=_0x314ed5['getRowIndexes'](_0x25832f);_0x1e96a1={'startRow':_0xaf1e9a['first'],'endRow':_0xaf1e9a['last'],'includeAllSlots':!0x0};}else{const _0x5d176a=_0x314ed5['getColumnIndexes'](_0x25832f);_0x1e96a1={'startColumn':_0x5d176a['first'],'endColumn':_0x5d176a['last'],'includeAllSlots':!0x0};}const _0xd9466b=_0x314ed5['createTableWalker'](_0x170a1c,_0x1e96a1),_0x23cce0=Array['from'](_0xd9466b)['map'](({cell:_0x5527e0})=>_0x5527e0),_0x3806b0=Ee(_0x23cce0['filter'](_0x1cc177=>_0x1cc177['hasAttribute'](_0x41e14a))),_0x271e4c=Ee(_0x23cce0['filter'](_0x23c2cf=>!_0x23c2cf['hasAttribute'](_0x41e14a)))['map'](_0x3927b2=>_0x1c3a87['createRangeOn'](_0x3927b2)),_0xea647b=_0x5bd2cf['markMultiRangeDeletion'](_0x271e4c,_0x35fda8);if(_0xea647b&&('tableRow'==_0xea647b['subType']||'tableColumn'==_0xea647b['subType'])){const _0x15d7df=this['_getSuggestionCoords'](_0xea647b);for(const _0xa00bd4 of _0x3806b0){const _0x13c4f7=_0x1c3a87['createRangeOn'](_0xa00bd4),_0x4823f9=_0x314ed5['getCellLocation'](_0xa00bd4),_0x3d3ec4=_0xa00bd4['getAttribute'](_0x41e14a)-0x1,_0x2ea38f=_0x15d7df[_0x2ed477],_0x35b06f=_0x15d7df[_0xcf82d6];_0x2ea38f<=_0x4823f9[_0x35d573]&&_0x4823f9[_0x35d573]+_0x3d3ec4<=_0x35b06f&&_0xea647b['addRange'](_0x13c4f7);}}});});}function _0x26b2e8(_0x20aa8b){const _0x4174f1=Array['from'](_0x9a6c63['getRanges']())['map'](_0x436564=>_0x533200['fromRange'](_0x436564));_0x25c173['model']['change'](_0x186eac=>{const _0x22c586=_0x186eac['batch'];_0x20aa8b=_0x20aa8b['filter'](_0x32a5db=>'$graveyard'!=_0x32a5db['root']['rootName']),_0x186eac['setSelection'](_0x20aa8b),_0x25c173['commands']['get']('removeTableRow')['refresh'](),_0x25c173['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x25c173['model']['enqueueChange'](()=>{_0x25c173['model']['enqueueChange'](_0x22c586,_0x305639=>{const _0x5c5253=_0x4174f1['filter'](_0x1dcd59=>'$graveyard'!=_0x1dcd59['root']['rootName']);_0x5c5253['length']>0x0&&_0x305639['setSelection'](_0x5c5253);for(const _0x5cf5f4 of _0x4174f1)_0x5cf5f4['detach']();});});});}function _0x469585(_0x47a1b8){_0x25c173['model']['change'](_0x183708=>{const _0x4854df=Array['from'](_0x9a6c63['getRanges']())['map'](_0x4ced2c=>_0x533200['fromRange'](_0x4ced2c)),_0x42abbf=[];for(const _0x420180 of _0x47a1b8)for(const _0x1f2a8c of _0x420180['getItems']({'shallow':!0x0}))_0x42abbf['push'](_0x1f2a8c);for(const _0x47e710 of _0x42abbf)'$graveyard'!=_0x47e710['root']['rootName']&&(_0x183708['setSelection'](_0x183708['createPositionAt'](_0x47e710,0x0)),_0x25c173['commands']['get']('removeTableColumn')['refresh'](),_0x25c173['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x561cf9=_0x4854df['filter'](_0x1bcbbc=>'$graveyard'!=_0x1bcbbc['root']['rootName']);_0x561cf9['length']>0x0&&_0x183708['setSelection'](_0x561cf9);for(const _0x24ff32 of _0x4854df)_0x24ff32['detach']();});}function _0x3e02c2(_0x2f9e96,_0x4ed82d){return _0x4ed82d['every'](_0x1db151=>_0x2f9e96['some'](_0x40bdbc=>_0x40bdbc['end']['isEqual'](_0x1db151['start'])||_0x1db151['end']['isEqual'](_0x40bdbc['start'])));}function _0x3bc6fa(_0x1146ab,_0x169ba5){return!_0x1146ab['some'](_0x3b0a90=>_0x169ba5['some'](_0x335a3c=>_0x3b0a90['isIntersecting'](_0x335a3c)))&&_0x1146ab['some'](_0x1af304=>_0x169ba5['some'](_0x206889=>_0x1af304['end']['isTouching'](_0x206889['start'])));}_0x25c173['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2160be,_0xa4fe64,_0x493d03)=>{if(!_0x493d03['options']['showSuggestionHighlights'])return;const _0x62cbce=_0xa4fe64['item'];if(!_0x62cbce)return;const _0x271326=_0x493d03['mapper']['toViewElement'](_0x62cbce);function _0x3771ed(_0x48f21f){return Array['isArray'](_0x48f21f)?_0x48f21f:[_0x48f21f];}_0x271326&&'tableCell'===_0x62cbce['name']&&_0x4eeadc(_0x271326,_0x493d03['writer'],(_0x2a6c18,_0xe260c,_0x5a0f45)=>_0x5a0f45['addClass'](_0x3771ed(_0xe260c['classes']),_0x2a6c18),(_0x77a401,_0x471fe3,_0x414c5f)=>_0x414c5f['removeClass'](_0x3771ed(_0x471fe3['classes']),_0x77a401));},{'priority':'highest'}),_0x5bd2cf['descriptionFactory']['registerDescriptionCallback'](_0xcd2c75=>{if('insertion'!=_0xcd2c75['type']&&'deletion'!=_0xcd2c75['type'])return;const _0x1bb72d=_0xcd2c75['getContainedElement']();if(null!=_0x1bb72d&&_0x1bb72d['is']('element','table')){if('insertion'==_0xcd2c75['type']){const _0x4fe730=_0xcd2c75['getItems']()['filter'](_0x4a699e=>_0x4a699e['is']('$textProxy'))['map'](_0x3e43d3=>_0x3e43d3['data']);if(_0x4fe730['length'])return{'type':'insertion','content':o(_0x86c977,'*Insert:*\x20%0',o(_0x86c977,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4fe730['join']('\x20')+'\x22'))};}if('deletion'==_0xcd2c75['type']){const _0x51deb8=_0xcd2c75['getItems']()['filter'](_0xc44311=>_0xc44311['is']('$textProxy'))['map'](_0x1a5a46=>_0x1a5a46['data']);if(_0x51deb8['length'])return{'type':'deletion','content':o(_0x86c977,'*Remove:*\x20%0',o(_0x86c977,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x51deb8['join']('\x20')+'\x22'))};}}}),_0x5bd2cf['descriptionFactory']['registerDescriptionCallback'](_0x2a6a33=>{if('tableRow'==_0x2a6a33['subType']){const _0x2c838a=_0x2a6a33['getItems']()['filter'](_0x23c8e1=>_0x23c8e1['is']('$textProxy'))['map'](_0x4aeb4f=>_0x4aeb4f['data']),_0x589c3c=this['_getSuggestionCoords'](_0x2a6a33),_0x4113d0=_0x589c3c['maxRow']-_0x589c3c['minRow']+0x1;if('insertion'==_0x2a6a33['type'])return _0x2c838a['length']?{'type':'insertion','content':o(_0x86c977,'*Insert:*\x20%0',o(_0x86c977,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4113d0,'\x22'+_0x2c838a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x86c977,'*Insert:*\x20%0',o(_0x86c977,'ELEMENT_TABLE_ROW',_0x4113d0))};if('deletion'==_0x2a6a33['type'])return _0x2c838a['length']?{'type':'deletion','content':o(_0x86c977,'*Remove:*\x20%0',o(_0x86c977,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4113d0,'\x22'+_0x2c838a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x86c977,'*Remove:*\x20%0',o(_0x86c977,'ELEMENT_TABLE_ROW',_0x4113d0))};}if('tableColumn'==_0x2a6a33['subType']){const _0x1cf29a=_0x2a6a33['getItems']()['filter'](_0x24fe6c=>_0x24fe6c['is']('$textProxy'))['map'](_0x227c1a=>_0x227c1a['data']),_0xaee62d=this['_getSuggestionCoords'](_0x2a6a33),_0x4603a5=_0xaee62d['maxColumn']-_0xaee62d['minColumn']+0x1;if('insertion'==_0x2a6a33['type'])return _0x1cf29a['length']?{'type':'insertion','content':o(_0x86c977,'*Insert:*\x20%0',o(_0x86c977,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4603a5,'\x22'+_0x1cf29a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x86c977,'*Insert:*\x20%0',o(_0x86c977,'ELEMENT_TABLE_COLUMN',_0x4603a5))};if('deletion'==_0x2a6a33['type'])return _0x1cf29a['length']?{'type':'deletion','content':o(_0x86c977,'*Remove:*\x20%0',o(_0x86c977,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4603a5,'\x22'+_0x1cf29a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x86c977,'*Remove:*\x20%0',o(_0x86c977,'ELEMENT_TABLE_COLUMN',_0x4603a5))};}}),_0x5bd2cf['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x26b2e8),_0x5bd2cf['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x26b2e8),_0x5bd2cf['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x469585),_0x5bd2cf['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x469585),_0x5bd2cf['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3e02c2),_0x5bd2cf['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3e02c2),_0x5bd2cf['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3bc6fa),_0x5bd2cf['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3bc6fa);}['_acceptFormatSuggestionCallbackFactory'](){const _0x87c274=this['editor'],_0x2c90a0=_0x87c274['model']['document']['selection'];return(_0x415c26,_0x3a61e2)=>{_0x87c274['model']['change'](_0x145a30=>{const {commandName:_0x52285d,commandParams:_0x3b9d3c}=_0x3a61e2;let _0x127fbb=_0x415c26[0x0]['end']['nodeBefore'];_0x3b9d3c&&_0x3b9d3c[0x0]&&!0x1===_0x3b9d3c[0x0]['forceValue']&&(_0x127fbb=_0x415c26[0x0]['start']['nodeAfter']);const _0x13f8cc=_0x145a30['createRangeIn'](_0x127fbb);if('$graveyard'==_0x13f8cc['root']['rootName'])return;const _0x3fb31a=Array['from'](_0x2c90a0['getRanges']())['map'](_0x43de40=>_0x533200['fromRange'](_0x43de40));_0x145a30['setSelection'](_0x13f8cc),_0x87c274['commands']['get'](_0x52285d)['refresh'](),_0x3b9d3c['push']({'forceDefaultExecution':!0x0}),_0x87c274['execute'](_0x52285d,..._0x3b9d3c);const _0x53f8e9=_0x3fb31a['filter'](_0x3e7537=>'$graveyard'!=_0x3e7537['root']['rootName']);_0x53f8e9['length']>0x0&&_0x145a30['setSelection'](_0x53f8e9);for(const _0x563e21 of _0x3fb31a)_0x563e21['detach']();});};}['_getCoordsForCells'](_0x31fefc){const _0x414de2=this['editor']['plugins']['get']('TableUtils');let _0x5cbd1f=Number['MAX_SAFE_INTEGER'],_0x440d08=Number['MIN_SAFE_INTEGER'],_0x185bd9=Number['MAX_SAFE_INTEGER'],_0x4f33e1=Number['MIN_SAFE_INTEGER'];for(const _0x536004 of _0x31fefc){if('$graveyard'==_0x536004['root']['rootName'])continue;const {row:_0x4a4a3c,column:_0x4b39a9}=_0x414de2['getCellLocation'](_0x536004),_0x262364=_0x536004['hasAttribute']('rowspan')?_0x536004['getAttribute']('rowspan')-0x1:0x0,_0xa89f9d=_0x536004['hasAttribute']('colspan')?_0x536004['getAttribute']('colspan')-0x1:0x0;_0x5cbd1f=_0x4a4a3c<_0x5cbd1f?_0x4a4a3c:_0x5cbd1f,_0x440d08=_0x4a4a3c+_0x262364>_0x440d08?_0x4a4a3c+_0x262364:_0x440d08,_0x185bd9=_0x4b39a9<_0x185bd9?_0x4b39a9:_0x185bd9,_0x4f33e1=_0x4b39a9+_0xa89f9d>_0x4f33e1?_0x4b39a9+_0xa89f9d:_0x4f33e1;}return{'minRow':_0x5cbd1f,'maxRow':_0x440d08,'minColumn':_0x185bd9,'maxColumn':_0x4f33e1};}['_setupColumnsRowsFixing'](){const _0x2c55e6=this['editor'],_0x594b47=_0x2c55e6['plugins']['get']('TrackChangesEditing'),_0x1b0958=_0x2c55e6['plugins']['get']('TableUtils');_0x2c55e6['model']['document']['on']('change:data',()=>{const _0x48f58a=Array['from'](_0x2c55e6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x108e94,data:_0x17b6cd}of _0x48f58a){const {group:_0x37d7a9,id:_0x4ce5af,subType:_0x27388c}=_0x594b47['_splitMarkerName'](_0x108e94);if('suggestion'!=_0x37d7a9)continue;if(null!=_0x17b6cd['oldRange'])continue;const _0x5660e3=_0x594b47['getSuggestion'](_0x4ce5af);this['_tablePostFixingSubtypes']['includes'](_0x27388c)&&this['_tableSuggestions']['add'](_0x5660e3);}},{'priority':'low'});const _0x4f4da4=(_0x397a93,_0x11e47f)=>{let _0x842007=!0x1;const _0x5e61df=_0x11e47f['createRangeOn'](_0x397a93),_0x28c67c=_0x397a93['findAncestor']('table'),_0x19aa2b=_0x1b0958['getCellLocation'](_0x397a93);for(const _0x34cc30 of this['_tableSuggestions']){const _0x45ff99=_0x34cc30['subType'],_0x1ea644=_0x45ff99['startsWith']('tablePaste'),_0x19c36e=_0x45ff99['substr'](_0x1ea644?0xa:0x5),_0x56744d=_0x19c36e['toLowerCase'](),_0x5137ee=_0x56744d['substr'](0x0,0x3)+'span',_0x1e3c26='min'+_0x19c36e,_0x386334='max'+_0x19c36e;if(!_0x34cc30['isInContent'])continue;if(_0x28c67c!=_0x34cc30['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x34cc30['isIntersectingWithRange'](_0x5e61df))continue;const _0x4d9d19=_0x397a93['hasAttribute'](_0x5137ee)?_0x397a93['getAttribute'](_0x5137ee)-0x1:0x0,_0x538c97=this['_getSuggestionCoords'](_0x34cc30),_0x56c24b=_0x538c97[_0x1e3c26],_0x5db851=_0x538c97[_0x386334];_0x56c24b<=_0x19aa2b[_0x56744d]&&_0x19aa2b[_0x56744d]+_0x4d9d19<=_0x5db851&&(_0x34cc30['addRange'](_0x5e61df),_0x842007=!0x0);}return _0x842007;};_0x2c55e6['model']['document']['registerPostFixer'](_0x27651a=>{let _0x5cdd83=!0x1;for(const _0x292c0e of _0x2c55e6['model']['document']['differ']['getChanges']())if('insert'==_0x292c0e['type']){if('tableRow'==_0x292c0e['name']){for(const _0x4ec5d2 of _0x292c0e['position']['nodeAfter']['getChildren']())_0x5cdd83=_0x5cdd83||_0x4f4da4(_0x4ec5d2,_0x27651a);}else'tableCell'==_0x292c0e['name']&&(_0x5cdd83=_0x5cdd83||_0x4f4da4(_0x292c0e['position']['nodeAfter'],_0x27651a));}return _0x5cdd83;});}['_getSuggestionCoords'](_0x224e7f){return this['_getCoordsForCells'](_0x224e7f['getRanges']()['map'](_0x4af97c=>_0x4af97c['start']['nodeAfter']));}}function Ee(_0x5b8e6d){return Array['from'](new Set(_0x5b8e6d)['values']());}class St extends _0x463102{static get['requires'](){return[jt];}['afterInit'](){const _0x3dfe87=this['editor'],_0x21c81e=_0x3dfe87['model']['document']['selection'],_0x5e7006=_0x3dfe87['locale'];if(!_0x3dfe87['plugins']['has']('TableEditing'))return;const _0x3a3058=_0x3dfe87['plugins']['get']('TrackChangesEditing'),_0x2ba162=_0x3dfe87['plugins']['get']('TableUtils'),_0x8d9657=_0x3dfe87['plugins']['get'](jt);_0x8d9657['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3a3058['enableCommand']('mergeTableCells',()=>{const _0x431ad0=_0x2ba162['getSelectionAffectedTableCells'](_0x3dfe87['model']['document']['selection']);_0x3dfe87['model']['change'](()=>{_0x3a3058['markMultiRangeBlockFormat'](_0x431ad0,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3dfe87['commands']['get']('mergeTableCells')['on']('execute',(_0x599528,_0x94d0c)=>{_0x3dfe87['commands']['get']('trackChanges')['value']&&(_0x94d0c['length']>0x0&&_0x94d0c[_0x94d0c['length']-0x1]&&_0x94d0c[_0x94d0c['length']-0x1]['forceDefaultExecution']||_0x3a3058['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x599528['stop']());},{'priority':'highest'});for(const _0x14788e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x13fd5f=_0x3dfe87['commands']['get'](_0x14788e);_0x3a3058['enableCommand'](_0x14788e,()=>{const _0x25f6a7=_0x3dfe87['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xbcf7b2=>_0xbcf7b2['is']('element','tableCell')),_0x4be9f5=_0x13fd5f['value'];_0x3dfe87['model']['change'](()=>{_0x3a3058['markMultiRangeBlockFormat']([_0x25f6a7,_0x4be9f5],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4a664b of['splitTableCellVertically','splitTableCellHorizontally']){const _0x50e035=_0x3dfe87['commands']['get'](_0x4a664b);_0x3a3058['enableCommand'](_0x4a664b,()=>{const _0x4f8b80=_0x2ba162['getSelectionAffectedTableCells'](_0x3dfe87['model']['document']['selection'])[0x0],_0x1773ec=_0x4f8b80['findAncestor']('table'),{column:_0x3635e9,row:_0x368877}=_0x2ba162['getCellLocation'](_0x4f8b80);let _0x168372=[];if('horizontally'==_0x50e035['direction']){const _0x1bd44d=_0x2ba162['createTableWalker'](_0x1773ec,{'startRow':_0x368877,'endRow':_0x368877,'includeAllSlots':!0x0});_0x168372=Array['from'](_0x1bd44d)['map'](_0x4fd52d=>_0x4fd52d['cell']);}else{const _0x46b706=_0x2ba162['createTableWalker'](_0x1773ec,{'column':_0x3635e9,'includeAllSlots':!0x0});_0x168372=Array['from'](_0x46b706)['map'](_0x53395f=>_0x53395f['cell']);}_0x3dfe87['model']['change'](_0x5919d0=>{_0x3a3058['markBlockFormat'](_0x5919d0['createRangeOn'](_0x4f8b80),{'commandName':_0x4a664b,'commandParams':[]},_0x168372,_0x4a664b);});});}_0x3a3058['descriptionFactory']['registerDescriptionCallback'](_0x1f6df5=>{if('formatBlock'!=_0x1f6df5['type']&&'formatInline'!=_0x1f6df5['type'])return;const {data:_0x901131}=_0x1f6df5;return _0x901131&&'mergeTableCells'==_0x901131['commandName']?{'type':'format','content':o(_0x5e7006,'*Merge\x20cells*')}:void 0x0;}),_0x3a3058['descriptionFactory']['registerDescriptionCallback'](_0x349df6=>{if('formatBlock'!=_0x349df6['type']&&'formatInline'!=_0x349df6['type'])return;const {data:_0x5848b6}=_0x349df6;return _0x5848b6?'splitTableCellVertically'==_0x5848b6['commandName']?{'type':'format','content':o(_0x5e7006,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5848b6['commandName']?{'type':'format','content':o(_0x5e7006,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x597218=_0x8d9657['_acceptFormatSuggestionCallbackFactory']();for(const _0x4d229c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3a3058['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4d229c,'accept',_0x597218);for(const _0x3f926c of['splitTableCellVertically','splitTableCellHorizontally'])_0x3a3058['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3f926c,'accept',_0x597218);_0x3a3058['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4af4e8=>{_0x3dfe87['model']['change'](_0x583ddc=>{const _0x1c4ef1=Array['from'](_0x21c81e['getRanges']())['map'](_0x394a25=>_0x533200['fromRange'](_0x394a25));_0x583ddc['setSelection'](_0x4af4e8),_0x3dfe87['commands']['get']('mergeTableCells')['refresh'](),_0x3dfe87['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x57c5c7=_0x1c4ef1['filter'](_0x49cafe=>'$graveyard'!=_0x49cafe['root']['rootName']);_0x57c5c7['length']>0x0&&_0x583ddc['setSelection'](_0x57c5c7);for(const _0xa667d8 of _0x1c4ef1)_0xa667d8['detach']();});});for(const _0x2fa562 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4aa9ea=_0x3dfe87['commands']['get'](_0x2fa562);_0x4aa9ea['on']('set:isEnabled',(_0x8069c1,_0xa2689b,_0x3e3673)=>{if(_0x3e3673){const _0x295648=_0x3dfe87['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x13f86c=>_0x13f86c['is']('element','tableCell'));this['_areMergableCells'](_0x4aa9ea['value'],_0x295648)||(_0x8069c1['return']=!0x1,_0x8069c1['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x20c8ae=this['editor']['commands']['get']('mergeTableCells'),_0x4e07bb=this['editor']['plugins']['get']('TableUtils');if(!_0x20c8ae['isEnabled'])return!0x1;const _0x180c28=_0x4e07bb['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2719bf of _0x180c28)for(const _0x36574c of _0x180c28)if(_0x2719bf!=_0x36574c&&!this['_areMergableCells'](_0x2719bf,_0x36574c))return!0x1;return!0x0;}['_areMergableCells'](_0x2ac375,_0x16351a){const _0x4fa36c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x544846=this['editor']['model']['createRangeOn'](_0x2ac375),_0x2567c1=this['editor']['model']['createRangeOn'](_0x16351a),_0x2c31ea=new Set(),_0x3efb3e=new Set();for(const _0x4059ea of _0x4fa36c['getSuggestions']())if(('insertion'==_0x4059ea['type']||'deletion'==_0x4059ea['type']||'mergeTableCells'==_0x4059ea['subType'])&&_0x4059ea['isInContent']){for(const _0x90d08d of _0x4059ea['getRanges']())_0x90d08d['containsRange'](_0x544846,!0x0)&&_0x2c31ea['add'](_0x4059ea['type']+':'+_0x4059ea['author']['id']),_0x90d08d['containsRange'](_0x2567c1,!0x0)&&_0x3efb3e['add'](_0x4059ea['type']+':'+_0x4059ea['author']['id']);}if(_0x2c31ea['size']!=_0x3efb3e['size'])return!0x1;for(const _0x4a25eb of _0x2c31ea)if(!_0x3efb3e['has'](_0x4a25eb))return!0x1;return!0x0;}}class At extends _0x463102{static get['requires'](){return[jt];}['afterInit'](){const _0x120b4f=this['editor'];if(!_0x120b4f['plugins']['has']('TableEditing'))return;const _0x176333=_0x120b4f['locale'],_0x38ccca=_0x120b4f['plugins']['get']('TrackChangesEditing');_0x38ccca['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x38ccca['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x38ccca['registerBlockAttribute']('headingRows'),_0x38ccca['registerBlockAttribute']('headingColumns'),_0x38ccca['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x176333,'FORMAT_HEADER_ROW')),_0x38ccca['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x176333,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x100732=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ef754=this['editor']['plugins']['get']('TableUtils'),_0x4b0c77=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x5d0f3f({showActiveMarker:_0xb4afd2=!0x0,setDataAttribute:_0x401302=!0x0}={}){return(_0x53e871,_0x1e1e7b,_0x500c1e)=>{const {type:_0x28e664,id:_0x2aabef}=_0x100732['_splitMarkerName'](_0x1e1e7b['markerName']),_0x593bd8=_0x100732['getSuggestion'](_0x2aabef),_0x15cc49=_0x593bd8['data'];if('formatBlock'!=_0x593bd8['type']||!_0x15cc49||'setTableColumnHeader'!=_0x15cc49['commandName'])return;if(_0x1e1e7b['item'])return void _0x53e871['stop']();if(!_0x500c1e['consumable']['consume'](_0x1e1e7b['markerRange'],_0x53e871['name']))return;const _0x534f83=_0x1e1e7b['markerRange']['start']['nodeAfter'],_0x5749ee=_0x1e1e7b['markerRange']['end']['nodeBefore'],_0x590054=_0x534f83['parent']['parent'],{column:_0x1f9bfb}=_0x2ef754['getCellLocation'](_0x534f83),{column:_0xde9dc6}=_0x2ef754['getCellLocation'](_0x5749ee);for(let _0x29f98e=_0x1f9bfb;_0x29f98e<=_0xde9dc6;_0x29f98e++){const _0x1b474d=_0x2ef754['createTableWalker'](_0x590054,{'column':_0x29f98e,'includeAllSlots':!0x1});for(const _0x2fdd7a of _0x1b474d){const _0x27f30e=_0x2fdd7a['cell'],_0x19f9fe=_0x500c1e['mapper']['toViewElement'](_0x27f30e);_0x500c1e['writer']['addClass']('ck-suggestion-marker-'+_0x28e664,_0x19f9fe),_0x401302&&_0x500c1e['writer']['setAttribute']('data-suggestion',_0x2aabef,_0x19f9fe),_0x500c1e['mapper']['bindElementToMarker'](_0x19f9fe,_0x1e1e7b['markerName']),_0xb4afd2&&(_0x100732['activeMarkers']['includes'](_0x1e1e7b['markerName'])?_0x500c1e['writer']['addClass']('ck-suggestion-marker--active',_0x19f9fe):_0x500c1e['writer']['removeClass']('ck-suggestion-marker--active',_0x19f9fe));}}};}_0x100732['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4b0c77),_0x100732['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4b0c77),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5d0f3f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x474338,_0x2e9e40,_0x3a5077)=>{_0x3a5077['options']['showSuggestionHighlights']&&_0x5d0f3f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x474338,_0x2e9e40,_0x3a5077);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xb8aef0,_0xc4bc98,_0x298af7)=>{const {type:_0x1f1c71,id:_0x394562}=_0x100732['_splitMarkerName'](_0xc4bc98['markerName']),_0x25f48a=_0x100732['getSuggestion'](_0x394562),_0x59248a=_0x25f48a['data'];if('formatBlock'!=_0x25f48a['type']||!_0x59248a||'setTableColumnHeader'!=_0x59248a['commandName'])return;const _0x8cac56=_0x298af7['mapper']['markerNameToElements'](_0xc4bc98['markerName']);if(_0x8cac56){for(const _0x37caaa of _0x8cac56)_0x298af7['writer']['removeClass']('ck-suggestion-marker-'+_0x1f1c71,_0x37caaa),_0x298af7['writer']['removeClass']('ck-suggestion-marker--active',_0x37caaa),_0x298af7['writer']['removeAttribute']('data-suggestion',_0x37caaa),_0x298af7['mapper']['unbindElementFromMarkerName'](_0x37caaa,_0xc4bc98['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2128a3=this['editor'],_0xe590f2=_0x2128a3['locale'];function _0x4377fb(_0x5b5440){return{'type':'format','content':o(_0xe590f2,'*Format:*\x20%0',_0x5b5440)};}_0x2128a3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x313a07=>{if('formatBlock'!=_0x313a07['type'])return;const {data:_0x17f521}=_0x313a07;if(_0x17f521){if('setTableRowHeader'==_0x17f521['commandName']){const _0x282982=_0x17f521['commandParams'][0x0]['forceValue'];return _0x4377fb(o(_0xe590f2,_0x282982?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x17f521['commandName']){const _0x4c9394=_0x17f521['commandParams'][0x0]['forceValue'];return _0x4377fb(o(_0xe590f2,_0x4c9394?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x261989=>[_0x261989,null]));class It extends _0x463102{static get['requires'](){return[jt];}['afterInit'](){const _0x546335=this['editor'];if(!_0x546335['plugins']['has']('TableClipboard'))return;const _0x40d3de=_0x546335['plugins']['get']('TrackChangesEditing'),_0x1f3f74=_0x546335['plugins']['get']('TableUtils'),_0x7ad768=_0x546335['plugins']['get'](jt),_0x688e91=_0x546335['plugins']['get']('TableClipboard');_0x7ad768['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x546335['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x546335['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x561d91=null;_0x546335['model']['on']('insertContent',(_0x5e9f25,_0x4d135f)=>{const [_0x24df81,_0x401602]=_0x4d135f,_0x1f920d=_0x4d135f[_0x4d135f['length']-0x1];_0x1f920d&&_0x1f920d['forceDefaultExecution']||_0x40d3de['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2fd3a7,_0x5ae8f9,_0x2fa1f4,_0x5c9b7e,_0x2fa19e){if(_0x5ae8f9&&!_0x5ae8f9['is']('documentSelection'))return!0x1;const _0x59e554=_0x2fa19e['getTableIfOnlyTableInContent'](_0x2fd3a7,_0x2fa1f4);if(!_0x59e554||!he(_0x59e554,void 0x0,_0x5c9b7e))return!0x1;const _0x580560=_0x5c9b7e['getSelectionAffectedTableCells'](_0x2fa1f4['document']['selection']);if(!_0x580560['length'])return!0x1;const _0x2c7a65=_0x580560[0x0]['findAncestor']('table'),_0xbdda0d=_0x5c9b7e['getRowIndexes'](_0x580560),_0x4ebed1=_0x5c9b7e['getColumnIndexes'](_0x580560),_0x22c35c={'startRow':_0xbdda0d['first'],'endRow':_0xbdda0d['last'],'startColumn':_0x4ebed1['first'],'endColumn':_0x4ebed1['last']};return 0x1==_0x580560['length']&&(_0x22c35c['endRow']+=_0x5c9b7e['getRows'](_0x59e554)-0x1,_0x22c35c['endColumn']+=_0x5c9b7e['getColumns'](_0x59e554)-0x1),he(_0x2c7a65,_0x22c35c,_0x5c9b7e);}(_0x24df81,_0x401602,_0x546335['model'],_0x1f3f74,_0x688e91)&&(_0x5e9f25['stop'](),_0x561d91={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x546335['model']['change'](()=>{_0x546335['model']['insertContent'](_0x4d135f[0x0],_0x4d135f[0x1],_0x4d135f[0x2],{'forceDefaultExecution':!0x0});const _0x431090=_0x37a894(),{rowInsertionRanges:_0x10285f,columnInsertionRanges:_0x282cb5,insertionRanges:_0x652033,deletionRanges:_0x4dddbf,cells:_0x4e15d2}=_0x561d91;_0x10285f['length']&&_0x40d3de['markMultiRangeInsertion'](_0x10285f,'tablePasteRow',{'tablePasteChainId':_0x431090}),_0x282cb5['length']&&_0x40d3de['markMultiRangeInsertion'](_0x282cb5,'tablePasteColumn',{'tablePasteChainId':_0x431090}),_0x652033['length']&&(_0x40d3de['markMultiRangeInsertion'](_0x652033,'tablePaste',{'tablePasteChainId':_0x431090,'skipNestingCheck':!0x0}),_0x652033['forEach'](_0x53e947=>_0x53e947['detach']?.())),_0x4dddbf['length']&&(_0x40d3de['markMultiRangeDeletion'](_0x4dddbf,'tablePaste',{'tablePasteChainId':_0x431090,'skipNestingCheck':!0x0}),_0x4dddbf['forEach'](_0x5c490d=>_0x5c490d['detach']?.()));const _0x1392a7=_0x40d3de['markMultiRangeBlockFormat'](_0x4e15d2['map'](({element:_0x1f0b77})=>_0x1f0b77),{'formatGroupId':_0x37a894()},[],'tablePasteCell',{'tablePasteChainId':_0x431090});if(_0x1392a7){const _0x3dc49b=_0x1392a7['getMarkers'](),_0xb9fee=[];for(const {element:_0x27933e,attributes:_0x4ce4a1}of _0x4e15d2){if(!_0x4ce4a1)continue;const _0x25e4e1=_0x546335['model']['createRangeOn'](_0x27933e),_0x63921a=_0x3dc49b['find'](_0x8bf772=>_0x8bf772['getRange']()['isEqual'](_0x25e4e1));_0x63921a&&_0xb9fee['push']([_0x63921a['name'],_0x4ce4a1]);}_0xb9fee['length']&&_0x1392a7['setAttribute']('markerAttributes',Object['fromEntries'](_0xb9fee));}_0x561d91=null;}));},{'priority':_0x3523b5['high']+0xa}),_0x546335['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1d627a,_0x378c4e)=>{const [_0x3a0cce,_0x1a572b,,_0x4bc11d]=_0x378c4e;if(!_0x561d91)return;_0x1d627a['stop']();const _0x5d8683=_0x3a0cce['cell'],_0x24d906=_0x1a572b,_0x546627=Pe(_0x5d8683),_0x123810=Pe(_0x24d906);_0x1d627a['return']=_0x5d8683;let _0x5ebf6f=null,_0x44b16d=null;if(_0x123810||_0x546627){if(_0x546627&&!_0x123810){_0x4bc11d['remove'](_0x5d8683['getChild'](0x0));for(const _0xd7f81f of Array['from'](_0x24d906['getChildren']()))_0x4bc11d['insert'](_0xd7f81f,_0x5d8683,'end');const _0x57621d=_0x561d91['rowInsertionIndexes']['includes'](_0x3a0cce['row']),_0x1d17f2=_0x561d91['columnInsertionIndexes']['includes'](_0x3a0cce['column']);_0x57621d||_0x1d17f2||(_0x5ebf6f=_0x533200['fromRange'](_0x4bc11d['createRangeIn'](_0x5d8683)));}else _0x123810&&!_0x546627&&(_0x44b16d=_0x4bc11d['createRangeIn'](_0x5d8683));}else{const _0x53effe=_0x4bc11d['createElement']('tableCellSuggestion'),_0x42ce2b=_0x4bc11d['createElement']('tableCellSuggestion');_0x4bc11d['wrap'](_0x4bc11d['createRangeIn'](_0x5d8683),_0x42ce2b),_0x4bc11d['insert'](_0x53effe,_0x5d8683,0x0);for(const _0x3b9e27 of Array['from'](_0x24d906['getChildren']()))_0x4bc11d['insert'](_0x3b9e27,_0x53effe,'end');_0x5ebf6f=_0x533200['fromRange'](_0x4bc11d['createRangeOn'](_0x53effe)),_0x44b16d=_0x533200['fromRange'](_0x4bc11d['createRangeOn'](_0x42ce2b));}const _0x364d94=Array['from'](_0x24d906['getAttributes']())['filter'](([_0x3a033e])=>ge['includes'](_0x3a033e));_0x561d91['cells']['push']({'element':_0x5d8683,'attributes':_0x364d94['length']?Object['fromEntries'](_0x364d94):null}),_0x5ebf6f&&_0x561d91['insertionRanges']['push'](_0x5ebf6f),_0x44b16d&&_0x561d91['deletionRanges']['push'](_0x44b16d);},{'priority':'high'}),_0x1f3f74['on']('insertColumns',(_0x389730,_0x1acb1a)=>{const [_0xc1fbc8,_0x4d8122={}]=_0x1acb1a;if(!_0x561d91)return;const _0x337855=_0x4d8122['at']||0x0,_0xb9c552=_0x4d8122['columns']||0x1;_0x561d91['columnInsertionIndexes']=new Array(_0xb9c552)['fill'](_0x337855)['map']((_0x386558,_0x1adf8b)=>_0x386558+_0x1adf8b);for(const {cell:_0x2331aa}of _0x1f3f74['createTableWalker'](_0xc1fbc8,{'startColumn':_0x337855,'endColumn':_0x337855+_0xb9c552-0x1}))_0x561d91['columnInsertionRanges']['push'](_0x546335['model']['createRangeOn'](_0x2331aa));},{'priority':'low'}),_0x1f3f74['on']('insertRows',(_0x40e7f0,_0x14430e)=>{const [_0x15e6be,_0x10c5e5={}]=_0x14430e;if(!_0x561d91)return;const _0x458cd2=_0x10c5e5['at']||0x0,_0x272c4a=_0x10c5e5['rows']||0x1;_0x561d91['rowInsertionIndexes']=new Array(_0x272c4a)['fill'](_0x458cd2)['map']((_0x4b9d96,_0x558506)=>_0x4b9d96+_0x558506);for(const {cell:_0xc27d4b}of _0x1f3f74['createTableWalker'](_0x15e6be,{'startRow':_0x458cd2,'endRow':_0x458cd2+_0x272c4a-0x1}))_0x561d91['rowInsertionRanges']['push'](_0x546335['model']['createRangeOn'](_0xc27d4b));},{'priority':'low'}),_0x40d3de['descriptionFactory']['registerDescriptionCallback'](_0x292c34=>{if(_0x292c34['subType']&&_0x292c34['subType']['startsWith']('tablePaste'))return _0x292c34['previous']?{}:{'type':'insertion','content':o(_0x546335['locale'],'*Replace\x20table\x20cells*')};});const _0x233eec=()=>!0x1;for(const _0x12c795 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x40d3de['_suggestionFactory']['registerCustomCallback']('insertion',_0x12c795,'join',_0x233eec),_0x40d3de['_suggestionFactory']['registerCustomCallback']('deletion',_0x12c795,'join',_0x233eec),_0x40d3de['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x12c795,'join',_0x233eec);_0x40d3de['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x233eec),_0x40d3de['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4c8caf,_0x58ed3d,_0x3eb3e0)=>{const _0x335ae3=_0x4c8caf['map'](_0x5c558e=>_0x5c558e['getContainedElement']())['filter'](_0x337e35=>_0x337e35),_0x11b7b5=new Map(_0x335ae3['map'](_0x298e52=>[_0x298e52,null]));if(_0x561d91){for(const {element:_0x183973,attributes:_0x59d304}of _0x561d91['cells'])_0x59d304&&_0x11b7b5['set'](_0x183973,_0x59d304);}else{if(_0x3eb3e0&&_0x3eb3e0['markerAttributes'])for(const [_0x34b30,_0x22f314]of Object['entries'](_0x3eb3e0['markerAttributes'])){const _0xd5f8e1=_0x546335['model']['markers']['get'](_0x34b30),_0x377e7e=_0xd5f8e1?_0xd5f8e1['getRange']()['getContainedElement']():null;_0x377e7e&&_0x11b7b5['set'](_0x377e7e,_0x22f314);}}_0x546335['model']['change'](_0x52aea4=>{for(const [_0x3603d6,_0x109d18]of _0x11b7b5)_0x52aea4['setAttributes']({...Ce,..._0x109d18},_0x3603d6);});});const _0x5e2b6b=(_0x4eaa1a,_0x4f7234)=>{_0x40d3de['_suggestionFactory']['registerCustomCallback'](_0x4eaa1a,'tablePaste',_0x4f7234,(_0x1ec31a,_0x87a6cf,_0x39f41a)=>{_0x546335['model']['change'](_0x3ee066=>{const _0x32af77=[];for(const _0x2ca0f2 of _0x1ec31a){const _0x5b89d4=_0x2ca0f2['start']['nodeAfter'];_0x5b89d4['is']('element','tableCellSuggestion')&&_0x32af77['push'](_0x5b89d4);}_0x40d3de['_suggestionFactory']['getSuggestionCallback'](_0x4eaa1a,null,_0x4f7234)(_0x1ec31a,_0x87a6cf,_0x39f41a);for(const _0x470b9d of _0x32af77)'$graveyard'!=_0x470b9d['root']['rootName']&&_0x3ee066['unwrap'](_0x470b9d);});});};_0x5e2b6b('insertion','accept'),_0x5e2b6b('insertion','discard'),_0x5e2b6b('deletion','accept'),_0x5e2b6b('deletion','discard'),_0x40d3de['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3cc1de=>{const _0x123caf=_0x3cc1de['map'](_0x2348a1=>_0x2348a1['getContainedElement']()),_0xdcc786=_0x123caf[0x0]['findAncestor']('table'),{minRow:_0x559708,maxRow:_0x55b16b}=_0x7ad768['_getCoordsForCells'](_0x123caf);_0x1f3f74['removeRows'](_0xdcc786,{'at':_0x559708,'rows':_0x55b16b-_0x559708+0x1});}),_0x40d3de['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4085a8=>{const _0x3143cd=_0x4085a8['map'](_0x3064c2=>_0x3064c2['getContainedElement']()),_0x39429b=_0x3143cd[0x0]['findAncestor']('table'),{minColumn:_0x3ea5cd,maxColumn:_0x57d882}=_0x7ad768['_getCoordsForCells'](_0x3143cd);_0x1f3f74['removeColumns'](_0x39429b,{'at':_0x3ea5cd,'columns':_0x57d882-_0x3ea5cd+0x1});});const _0x12316b=(_0x3eb10f,_0x3d28e3)=>{if(!_0x3d28e3['subType']||!_0x3d28e3['subType']['startsWith']('tablePaste'))return;const _0x1f8a3d=_0x3d28e3['attributes']['tablePasteChainId'],_0x54d211=_0x40d3de['getSuggestions']()['filter'](_0x467d53=>_0x467d53['isInContent']&&_0x467d53['attributes']&&_0x467d53['attributes']['tablePasteChainId']==_0x1f8a3d);_0x54d211['length']&&_0x3d28e3['getAllAdjacentSuggestions']()['length']!=_0x54d211['length']&&_0x54d211['reduce']((_0x1bf21f,_0x40aa8b)=>(_0x1bf21f['next']=_0x40aa8b,_0x40aa8b['previous']=_0x1bf21f,_0x40aa8b));};function _0x5e3699(_0x548095,_0x5ce084=!0x0){const {id:_0x16a5c7}=_0x40d3de['_splitMarkerName'](_0x548095['markerName']),_0x243ef9=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x243128=_0x40d3de['activeMarkers']['includes'](_0x548095['markerName']);return _0x243128&&_0x243ef9['push']('ck-suggestion-marker--active'),{'classes':_0x243ef9,'attributes':{'data-suggestion':_0x16a5c7},'priority':_0x243128&&_0x5ce084?0xbc2:0xbb8};}_0x40d3de['on']('suggestionLoaded',_0x12316b,{'priority':'high'}),_0x40d3de['on']('suggestionUnloaded',_0x12316b,{'priority':'high'}),_0x546335['model']['document']['registerPostFixer'](()=>{let _0x5477b0=!0x1;const _0x72cd5c=Array['from'](_0x546335['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x34aa3a,data:_0x5623c9}of _0x72cd5c){const {group:_0xaf791,type:_0x4c7fb2,id:_0x357bb5}=_0x40d3de['_splitMarkerName'](_0x34aa3a);if('suggestion'!=_0xaf791||'deletion'!=_0x4c7fb2||_0x5623c9['oldRange'])continue;if(!_0x40d3de['hasSuggestion'](_0x357bb5))continue;const _0x25e4b3=_0x40d3de['getSuggestion'](_0x357bb5)['getRanges'](),_0x292f32=_0x546335['plugins']['get']('Users')['me'];for(const _0x219729 of _0x40d3de['getSuggestions']()){if(!_0x219729['isInContent']||_0x219729['author']!=_0x292f32)continue;if('formatBlock'!=_0x219729['type']||'tablePasteCell'!=_0x219729['subType'])continue;if(_0x219729['getRanges']()['every'](_0x33aa1a=>_0x25e4b3['some'](_0x48a978=>_0x48a978['containsRange'](_0x33aa1a,!0x0)))){for(const _0xac6567 of _0x219729['getAllAdjacentSuggestions']())_0xac6567['isInContent']&&(_0xac6567['discard'](),_0x5477b0=!0x0);}}}return _0x5477b0;}),_0x546335['model']['document']['registerPostFixer'](_0x59936f=>{const _0x1e9d64=_0x546335['commands']['get']('redo');if(!_0x1e9d64||!_0x1e9d64['_createdBatches']['has'](_0x59936f['batch']))return!0x1;let _0x35a789=!0x1;const _0x219ca8=_0x546335['plugins']['get']('Users')['me'],_0x5749ba=_0x546335['model']['document']['differ']['getChanges'](),_0xfe4ca0=Array['from'](_0x546335['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x388e83,data:_0x25e51c})=>{const {group:_0x4d4ead,subType:_0x15ae14,authorId:_0x25cbd3}=_0x40d3de['_splitMarkerName'](_0x388e83);return'suggestion'==_0x4d4ead&&'tablePaste'==_0x15ae14&&_0x25cbd3==_0x219ca8['id']&&!_0x25e51c['oldRange'];});for(const _0x2e3181 of _0x5749ba){if('insert'!=_0x2e3181['type']||'tableCellSuggestion'!=_0x2e3181['name']||0x1!=_0x2e3181['length'])continue;const _0x811023=_0x59936f['createRange'](_0x2e3181['position'],_0x2e3181['position']['getShiftedBy'](0x1));if(!_0xfe4ca0['find'](({data:_0xd4415a})=>_0xd4415a['newRange']['isEqual'](_0x811023))){for(const {name:_0x532321,data:_0x1745a7}of _0xfe4ca0)if(_0x811023['containsRange'](_0x1745a7['newRange'])){_0x59936f['updateMarker'](_0x532321,{'range':_0x811023}),_0x35a789=!0x0;break;}}}return _0x35a789;}),_0x546335['model']['document']['registerPostFixer'](_0x928b13=>{let _0x5298b1=!0x1;const _0x45de47=_0x546335['plugins']['get']('Users')['me'],_0x2890b9=_0x40d3de['getSuggestions']()['filter'](_0x3d4903=>_0x3d4903['isInContent']&&_0x3d4903['author']==_0x45de47),_0x5505f8=new Set(),_0x246772=new Set();for(const _0x4cba0f of _0x2890b9)if('tablePaste'==_0x4cba0f['subType'])for(const _0x3f4c5b of _0x4cba0f['getMarkers']()){const _0x421b28=_0x3f4c5b['getRange']()['getContainedElement']();if(_0x421b28){if(_0x421b28['is']('element','tableCellSuggestion')&&Pe(_0x421b28)){_0x4cba0f['removeMarker'](_0x3f4c5b['name']),_0x5505f8['add'](_0x421b28),_0x5298b1=!0x0;const _0xb8bccc=_0x421b28['nextSibling'],_0x1980b9=_0x421b28['previousSibling'],_0x2c2f21=_0xb8bccc&&_0xb8bccc['is']('element','tableCellSuggestion'),_0x361751=_0x1980b9&&_0x1980b9['is']('element','tableCellSuggestion');_0x2c2f21&&!_0x5505f8['has'](_0xb8bccc)&&_0x246772['add'](_0xb8bccc),_0x361751&&!_0x5505f8['has'](_0x1980b9)&&_0x246772['add'](_0x1980b9);}else _0x421b28['is']('element','paragraph')&&_0x421b28['isEmpty']&&(_0x4cba0f['removeMarker'](_0x3f4c5b['name']),_0x5298b1=!0x0);}}else{if('tablePasteCell'==_0x4cba0f['subType']){if(!_0x4cba0f['attributes']||!_0x4cba0f['attributes']['tablePasteChainId'])continue;const _0x2b321d=_0x4cba0f['attributes']['markerAttributes'];if(_0x2b321d&&Object['keys'](_0x2b321d)['length'])continue;const _0x4fe70e=_0x4cba0f['attributes']['tablePasteChainId'];let _0x344733=!0x0,_0x5c3f41=!0x0;for(const _0xb0b686 of _0x2890b9)if(_0xb0b686['subType']&&_0xb0b686['subType']['startsWith']('tablePaste')){if(!_0xb0b686['attributes']['tablePasteChainId']){_0x5c3f41=!0x1;break;}if(_0xb0b686['id']!=_0x4cba0f['id']&&_0xb0b686['attributes']['tablePasteChainId']==_0x4fe70e){_0x344733=!0x1;break;}}_0x5c3f41&&_0x344733&&(_0x4cba0f['removeMarkers'](),_0x5298b1=!0x0);}}for(const _0x3a22a6 of _0x5505f8)_0x928b13['remove'](_0x3a22a6);for(const _0x34c72a of _0x246772)_0x928b13['unwrap'](_0x34c72a);return _0x5298b1;}),_0x546335['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x588adb,_0x16c9c7)=>_0x5e3699(_0x588adb),'converterPriority':'high'}),_0x546335['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4c975f,_0x190c8d)=>_0x190c8d['options']['showSuggestionHighlights']?_0x5e3699(_0x4c975f,!0x1):null,'converterPriority':'high'});const _0x52c8eb=_0x546335['editing']['view'];this['listenTo'](_0x52c8eb['document'],'clipboardOutput',(_0x34ef22,_0x2783f8)=>{const _0xf45243=[];for(const _0x34b489 of _0x52c8eb['createRangeIn'](_0x2783f8['content'])['getItems']())_0x34b489['is']('element','suggestion-td')&&_0xf45243['push'](_0x34b489);_0x52c8eb['change'](_0x4fe6d6=>{for(const _0x3edfb3 of _0xf45243)_0x4fe6d6['move'](_0x4fe6d6['createRangeIn'](_0x3edfb3),_0x4fe6d6['createPositionBefore'](_0x3edfb3)),_0x4fe6d6['remove'](_0x3edfb3);});});}}function Pe(_0x13a4b9){if(_0x13a4b9['isEmpty'])return!0x0;const _0x3b1fd7=_0x13a4b9['getChild'](0x0);return _0x3b1fd7['is']('element','paragraph')&&_0x3b1fd7['isEmpty'];}function he(_0x45192f,_0x4c8208={},_0x2fb952){for(const {isAnchor:_0x155fa3,cellHeight:_0xf07cb5,cellWidth:_0x502dca}of _0x2fb952['createTableWalker'](_0x45192f,{'includeAllSlots':!0x0,..._0x4c8208}))if(!_0x155fa3||0x1!=_0xf07cb5||0x1!=_0x502dca)return!0x1;return!0x0;}class vt extends _0x463102{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4a4c69=this['editor']['plugins']['get']('TrackChangesEditing');_0x4a4c69['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4a4c69['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4a4c69['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4a4c69['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4a4c69['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4a4c69['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x8062a5,_0x4f3efd){const _0x297509=this['editor']['plugins']['get']('TrackChangesEditing'),_0x449f57=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1c299b=_0x4f3efd['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3518ef=_0x449f57['getColumnGroupElement'](_0x1c299b);let _0x5a0015=_0x3518ef?_0x449f57['getTableColumnsWidths'](_0x3518ef):null,_0x184a80=_0x1c299b['getAttribute']('tableWidth')||null;const _0x2f0a76=_0x4f3efd['tableWidth']||_0x184a80,_0x3c4285=_0x4f3efd['columnWidths']||_0x5a0015,_0x5de947=this['editor']['plugins']['get']('Users')['me'];for(const _0x2c6370 of _0x297509['getSuggestions']()){const _0x5bea43=_0x2c6370['getContainedElement']();if('resizeTable'===_0x2c6370['subType']&&_0x5bea43===_0x1c299b){_0x2c6370['author']!==_0x5de947&&_0x2c6370['discard']();const _0x27835e=_0x2c6370['data']['commandParams'];_0x184a80=_0x27835e[0x0]['tableWidth'],_0x5a0015=_0x27835e[0x0]['columnWidths'];break;}}_0x8062a5({'table':_0x1c299b,'tableWidth':_0x2f0a76,'columnWidths':_0x3c4285}),_0x297509['markBlockFormat'](_0x1c299b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x184a80,'columnWidths':_0x5a0015}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5ec2c8){if('formatBlock'!=_0x5ec2c8['type']&&'formatInline'!=_0x5ec2c8['type'])return;const {data:_0xd447d6}=_0x5ec2c8;if(_0xd447d6&&'resizeTable'===_0xd447d6['formatGroupId']){const _0x5b8ae2='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x5b8ae2)};}}}class Ct extends _0x463102{['afterInit'](){const _0x23016c=this['editor'];_0x23016c['plugins']['has']('Template')&&_0x23016c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x463102{['afterInit'](){const _0x399c16=this['editor'];if(!_0x399c16['commands']['get']('insertTableOfContents'))return;_0x399c16['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3ccd35=_0x399c16['plugins']['get']('TrackChangesEditing'),_0x3295ec=_0x399c16['locale'];_0x3ccd35['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5c83c1=>o(_0x3295ec,'ELEMENT_TABLE_OF_CONTENTS',_0x5c83c1));}}class Dt extends _0x463102{['afterInit'](){const _0x5971f6=this['editor'];if(!_0x5971f6['plugins']['has']('Title'))return;const _0x42085e=_0x5971f6['plugins']['get']('TrackChangesEditing');_0x42085e['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5971f6['locale'],'ELEMENT_TITLE')),_0x5971f6['model']['document']['registerPostFixer'](_0x574eb5=>{let _0xc7525f=!0x1;const _0x337a9e=Array['from'](_0x5971f6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2c7c09,data:_0xf6d8b0}of _0x337a9e){const {group:_0x16ea0b}=_0x42085e['_splitMarkerName'](_0x2c7c09);if('suggestion'!==_0x16ea0b||!_0xf6d8b0['newRange'])continue;const _0x162040=_0xf6d8b0['newRange'],_0x3679df=_0x162040['end']['nodeBefore'];if(!_0x3679df||!_0x3679df['is']('element','title-content'))continue;if(!_0x162040['start']['isTouching'](_0x162040['end']))continue;const _0x4e55de=_0x5971f6['model']['schema']['getNearestSelectionRange'](_0x162040['end'],'forward');if(_0x4e55de&&_0x4e55de['isCollapsed']){const _0x492d04=_0x574eb5['createRange'](_0x162040['start'],_0x4e55de['start']);_0x492d04['isEqual'](_0x162040)||(_0x574eb5['updateMarker'](_0x2c7c09,{'range':_0x492d04}),_0xc7525f=!0x0);}_0xc7525f||(_0x574eb5['removeMarker'](_0x2c7c09),_0xc7525f=!0x0);}return _0xc7525f;});}}class Nt extends _0x463102{['afterInit'](){const _0xe07601=this['editor'],_0x110a8e=_0xe07601['plugins']['get']('TrackChangesEditing');_0xe07601['plugins']['has']('UndoEditing')&&(_0x110a8e['enableCommand']('undo'),_0x110a8e['enableCommand']('redo'));}}class Mt extends _0x463102{static get['requires'](){return[jt];}['afterInit'](){const _0x28c61b=this['editor'];if(!_0x28c61b['plugins']['has']('TableCaptionEditing'))return;_0x28c61b['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x463102{['tableProperties'];['tableCellProperties'];constructor(_0x2f5812){super(_0x2f5812),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x156ab5=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x16a2c9 of this['tableProperties'])_0x156ab5['enableCommand'](_0x16a2c9,(_0x2c0190,_0x4190e6)=>{const _0x163882=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x16a2c9,[_0x163882],this['tableProperties'],'tableProperties',_0x2c0190,_0x4190e6);});_0x156ab5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x156ab5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x156ab5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2564a6,_0x402cb0)=>this['handleDiscardAction'](this['tableProperties'],_0x2564a6,_0x402cb0)),_0x156ab5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5230be of this['tableCellProperties'])_0x156ab5['enableCommand'](_0x5230be,(_0x347f79,_0x2dc3dc)=>{const _0x40c3be=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5230be,_0x40c3be,this['tableCellProperties'],'tableCellProperties',_0x347f79,_0x2dc3dc);});_0x156ab5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x156ab5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x156ab5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1edb84,_0x5823eb)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1edb84,_0x5823eb)),_0x156ab5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x156ab5['descriptionFactory']['registerDescriptionCallback'](_0x5cb598=>this['handleSuggestionDescription'](_0x5cb598));}['_handlePropertyChange'](_0x4b7aa2,_0x15d3a0,_0x38837f,_0x136175,_0x1d6d73,_0x177967){const _0x2e49ec=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x177967['batch'],()=>{for(const _0x56939e of _0x15d3a0){if(this['_getSuggestion'](_0x56939e,_0x136175))_0x1d6d73(_0x177967);else{const _0x2fccfa={};for(const _0x20b9ab of _0x38837f){const _0x4afc65=_0x56939e['getAttribute'](_0x20b9ab);void 0x0!==_0x4afc65&&(_0x2fccfa[_0x20b9ab]=_0x4afc65);}_0x1d6d73(_0x177967),_0x2e49ec['markBlockFormat'](_0x56939e,{'commandParams':[_0x2fccfa]},[],_0x136175);}}});}['handleDiscardAction'](_0x5ae6bb,_0xd81d01,_0x51ef46){const _0x4fcec1=_0xd81d01[0x0]['start']['nodeAfter'],_0x4db0bd=_0x51ef46['commandParams'][0x0];this['editor']['model']['change'](_0x541edb=>{for(const _0x5375a3 of _0x5ae6bb)void 0x0!==_0x4db0bd[_0x5375a3]?_0x541edb['setAttribute'](_0x5375a3,_0x4db0bd[_0x5375a3],_0x4fcec1):_0x541edb['removeAttribute'](_0x5375a3,_0x4fcec1);});}['handleSuggestionDescription'](_0x5e8845){if(_0x5e8845['data'])switch(_0x5e8845['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'](_0x144563,_0x418a8c){const _0x2b4e8c=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x43dfac of _0x2b4e8c['getSuggestions']({'skipNotAttached':!0x0})){const _0x1b44c6=_0x43dfac['getContainedElement']();if(_0x43dfac['subType']===_0x418a8c&&_0x1b44c6===_0x144563)return _0x43dfac;}return null;}}const m='$elementName';class p extends _0x463102{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x2074d8,_0x5e8ae5,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x23cbe0){function _0x108d88(_0x100ba4){return _0x100ba4['map'](_0x3ca674=>String['fromCharCode'](_0x3ca674))['join']('');}super(_0x23cbe0),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x49b339,_0x42c904,_0x25bea5,_0xc0b431)=>{this['_model']['change'](()=>{for(const _0x47b53c of[..._0xc0b431,..._0x25bea5])this['_model']['markers']['has'](_0x47b53c)&&_0x23cbe0['editing']['reconvertMarker'](_0x47b53c);});}),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']=_0x23cbe0['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(),_0x23cbe0['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x23cbe0['config']['get']('trackChanges.trackFormatChanges'),_0x23cbe0['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x23cbe0['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x23cbe0,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x108d88([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x108d88([0x34,0x30,0x34,0x38,0x31,0x32,0x31,0x36]);}['init'](){const _0x47bbb7=this['editor'],_0x1ae80a=(_0x68e691,_0x48e6e7)=>{if('attribute'!=_0x68e691)return'ck-suggestion-marker-'+_0x68e691;const _0x44bb87=_0x48e6e7['split']('|')[0x0];return this['_isBlockAttribute'](_0x44bb87)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x47bbb7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x26a314=>{const {id:_0x4e05ce,type:_0xe5bc63,subType:_0x574632}=this['_splitMarkerName'](_0x26a314['markerName']),_0x32ff2e=['ck-suggestion-marker',_0x1ae80a(_0xe5bc63,_0x574632)];let _0x11ba95=0xbb8;return this['activeMarkers']['includes'](_0x26a314['markerName'])&&(_0x32ff2e['push']('ck-suggestion-marker--active'),_0x11ba95=0xbc2),'deletion'==_0xe5bc63&&(_0x11ba95+=0x5),{'classes':_0x32ff2e,'attributes':{'data-suggestion':_0x4e05ce},'priority':_0x11ba95};}}),_0x47bbb7['conversion']['for']('dataDowncast')['add'](_0xb7e434=>{_0xb7e434['on']('addMarker:suggestion',(_0x42b863,_0x3929bd,_0x15a92f)=>{if(!_0x15a92f['options']['showSuggestionHighlights'])return;const _0xe602fd=_0x3929bd['item'];if(!_0xe602fd)return;const _0x653be7=_0x15a92f['mapper']['toViewElement'](_0xe602fd);_0x47bbb7['model']['schema']['isObject'](_0xe602fd)&&_0x653be7&&!_0x653be7['getCustomProperty']('widget')&&_0x653be7['is']('containerElement')&&_0x26bf30(_0x653be7,_0x15a92f['writer']);},{'priority':'high'});}),_0x47bbb7['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5befd4,_0x5ac8ef)=>{if(!_0x5ac8ef['options']['showSuggestionHighlights'])return null;const {type:_0x4f87f6,subType:_0xc2976a}=this['_splitMarkerName'](_0x5befd4['markerName']);return{'classes':['ck-suggestion-marker',_0x1ae80a(_0x4f87f6,_0xc2976a)],'priority':0xbb8};}});const _0x49b4f1=({showActiveMarkers:_0x4c1d1f=!0x0,isAttributeSuggestion:_0x2c09c1=!0x1}={})=>(_0x4eef0e,_0x2d0d9b,_0x7aad16)=>{if(!_0x2d0d9b['item'])return;const {id:_0x407800}=this['_splitMarkerName'](_0x2d0d9b['markerName']);if(_0x2c09c1){const _0x4f189b=this['_suggestions']['get'](_0x407800),_0x16e793=this['_getAttributeKey'](_0x4f189b);if(!this['_isBlockAttribute'](_0x16e793))return;}if(_0x2d0d9b['item']['is']('selection'))return void _0x7aad16['consumable']['consume'](_0x2d0d9b['item'],_0x4eef0e['name']);const _0x1fa929=_0x7aad16['mapper']['toViewElement'](_0x2d0d9b['item']);if(_0x2d0d9b['item']['is']('element')&&_0x47bbb7['model']['schema']['isBlock'](_0x2d0d9b['item'])&&!_0x1fa929['getCustomProperty']('addHighlight')){_0x7aad16['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1fa929),_0x7aad16['writer']['setAttribute']('data-suggestion',_0x407800,_0x1fa929),_0x7aad16['mapper']['bindElementToMarker'](_0x1fa929,_0x2d0d9b['markerName']),_0x4c1d1f&&(this['activeMarkers']['includes'](_0x2d0d9b['markerName'])?_0x7aad16['writer']['addClass']('ck-suggestion-marker--active',_0x1fa929):_0x7aad16['writer']['removeClass']('ck-suggestion-marker--active',_0x1fa929));for(const _0x300e69 of _0x47bbb7['model']['createRangeIn'](_0x2d0d9b['item'])['getItems']())_0x7aad16['consumable']['consume'](_0x300e69,_0x4eef0e['name']);_0x7aad16['consumable']['consume'](_0x2d0d9b['item'],_0x4eef0e['name']);}};_0x47bbb7['conversion']['for']('dataDowncast')['add'](_0x4e6b64=>{_0x4e6b64['on']('addMarker:suggestion:formatBlock',(_0x5185d3,_0x4f4dbc,_0x11e581)=>{_0x11e581['options']['showSuggestionHighlights']&&_0x49b4f1({'showActiveMarkers':!0x1})(_0x5185d3,_0x4f4dbc,_0x11e581);},{'priority':'highest'});}),_0x47bbb7['conversion']['for']('dataDowncast')['add'](_0x14e518=>{_0x14e518['on']('addMarker:suggestion:attribute',(_0x518405,_0x347172,_0x29a55b)=>{_0x29a55b['options']['showSuggestionHighlights']&&_0x49b4f1({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x518405,_0x347172,_0x29a55b);},{'priority':'highest'});}),_0x47bbb7['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5616cb,_0x4dffee)=>_0x4dffee['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5616cb['substr'](0xb)}}),_0x47bbb7['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1adc0c,{writer:_0x3cb433})=>{let _0x2e22cb='suggestion:'+_0x1adc0c['getAttribute']('suggestion-type')+':'+_0x1adc0c['getAttribute']('id');return _0x1adc0c['getAttribute']('marker-count')&&(_0x2e22cb+=':'+_0x1adc0c['getAttribute']('marker-count')),_0x3cb433['createElement']('$marker',{'data-name':_0x2e22cb});}}),_0x47bbb7['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x47bbb7['conversion']['for']('editingDowncast')['add'](_0x237dc9=>{_0x237dc9['on']('addMarker:suggestion:formatBlock',_0x49b4f1(),{'priority':'high'});}),_0x47bbb7['conversion']['for']('editingDowncast')['add'](_0x477051=>{_0x477051['on']('addMarker:suggestion:attribute',_0x49b4f1({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x47bbb7['conversion']['for']('editingDowncast')['add'](_0x48341b=>{_0x48341b['on']('removeMarker:suggestion:formatBlock',(_0x44ee5f,_0x54f6d7,_0x450ee3)=>{const _0x2d6dd9=_0x450ee3['mapper']['markerNameToElements'](_0x54f6d7['markerName']);if(_0x2d6dd9){for(const _0x2b568b of _0x2d6dd9)_0x2b568b['getCustomProperty']('addHighlight')||(_0x450ee3['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2b568b),_0x450ee3['writer']['removeAttribute']('data-suggestion',_0x2b568b),_0x450ee3['mapper']['unbindElementFromMarkerName'](_0x2b568b,_0x54f6d7['markerName']));}},{'priority':'high'});}),_0x47bbb7['conversion']['for']('editingDowncast')['add'](_0x15a499=>{_0x15a499['on']('removeMarker:suggestion:attribute',(_0x50d88e,_0x349975,_0x5a5bb6)=>{const _0x2d06c7=_0x5a5bb6['mapper']['markerNameToElements'](_0x349975['markerName']);if(!_0x2d06c7)return;const {id:_0x34b2ad}=this['_splitMarkerName'](_0x349975['markerName']),_0x106367=this['_suggestions']['get'](_0x34b2ad),_0x2023ff=this['_getAttributeKey'](_0x106367);if(this['_isBlockAttribute'](_0x2023ff)){for(const _0x3c157f of _0x2d06c7)_0x3c157f['getCustomProperty']('addHighlight')||(_0x5a5bb6['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3c157f),_0x5a5bb6['writer']['removeAttribute']('data-suggestion',_0x3c157f),_0x5a5bb6['mapper']['unbindElementFromMarkerName'](_0x3c157f,_0x349975['markerName']));}},{'priority':'high'});}),_0x47bbb7['model']['document']['registerPostFixer'](_0x34e3bf=>{let _0x203f6b=!0x1;const _0x2b94c4=Array['from'](_0x47bbb7['model']['document']['differ']['getChangedMarkers']()),_0x58d5d3=new Set();for(const {name:_0x173922,data:_0x1d4873}of _0x2b94c4){const {group:_0xdf79c,type:_0x3832e4,subType:_0xbbfb5b,id:_0x1e3a6f}=this['_splitMarkerName'](_0x173922);if('suggestion'!==_0xdf79c)continue;const _0x3f5daa=this['_suggestions']['get'](_0x1e3a6f);if(null!=_0x1d4873['newRange']){'formatInline'==_0x3832e4&&(_0x203f6b=_0x203f6b||Et(_0x1d4873['newRange'],_0x173922,_0x34e3bf,_0x47bbb7['model']['schema']));const _0x5d7ae2='attribute'==_0x3832e4&&this['_isBlockAttribute'](_0xbbfb5b['split']('|')[0x0]);if(_0x1d4873['newRange']['isCollapsed']||'$graveyard'==_0x1d4873['newRange']['root']['rootName']||'formatBlock'==_0x3832e4&&!Ut(_0x1d4873['newRange'])||_0x5d7ae2&&!Ut(_0x1d4873['newRange'])||'deletion'==_0x3832e4&&!(!Tt(_0x1dd91f=_0x1d4873['newRange'])&&!function(_0x2602d3){return _0x2602d3['start']['parent']==_0x2602d3['end']['nodeBefore']&&_0x2602d3['start']['isAtEnd'];}(_0x1dd91f)))_0x34e3bf['removeMarker'](_0x173922),_0x203f6b=!0x0;else{if(!_0x3f5daa||!_0x3f5daa['isInContent'])continue;_0x58d5d3['add'](_0x3f5daa);}}}var _0x1dd91f;return _0x58d5d3['size']>0x0&&(_0x203f6b=!!this['_joinWithAdjacentSuggestions'](_0x58d5d3)||_0x203f6b),_0x203f6b;}),_0x47bbb7['model']['document']['registerPostFixer'](_0xc81cc5=>{let _0x29d937=!0x1;for(const _0x2a1436 of _0x47bbb7['model']['document']['differ']['getChanges']())if('insert'==_0x2a1436['type'])for(const _0x35da02 of this['_suggestions']['values']()){if(_0x35da02['isMultiRange']||!_0x35da02['isInContent'])continue;const _0x1590e6='formatBlock'==_0x35da02['type'],_0x4d080b=this['_getAttributeKey'](_0x35da02),_0x48cf92=_0x4d080b&&this['_isBlockAttribute'](_0x4d080b);if(!_0x1590e6&&!_0x48cf92)continue;const _0x1400b0=_0x35da02['getFirstRange']();if(_0x1400b0['start']['parent']!=_0x1400b0['end']['parent']&&!_0x1400b0['end']['isAtEnd']){const _0xb43aee=_0x47bbb7['model']['createPositionAt'](_0x1400b0['start']['nodeAfter'],'end'),_0x301794=_0x47bbb7['model']['createRange'](_0x1400b0['start'],_0xb43aee);_0xc81cc5['updateMarker'](_0x35da02['getFirstMarker'](),{'range':_0x301794}),_0x29d937=!0x0;}}return _0x29d937;}),_0x47bbb7['model']['document']['registerPostFixer'](_0x3dfd28=>this['_processAttributeChanges'](_0x3dfd28)),_0x47bbb7['model']['document']['registerPostFixer'](_0x346317=>!_0x346317['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x346317)),_0x47bbb7['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x47bbb7['model']['document']['on']('change:data',(_0x39c179,_0x4b5330)=>{if(!_0x4b5330['isLocal']||_0x4b5330['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2ffa10=_0x47bbb7['model']['document']['differ']['getChanges']();if(0x0==_0x2ffa10['length'])return;const _0x4b0eef=[],_0x30193d=_0x2ffa10['filter'](_0x20d529=>'attribute'==_0x20d529['type']),_0x4502b2=_0x2ffa10['filter'](_0x597c2d=>'insert'==_0x597c2d['type']&&'$text'!=_0x597c2d['name']);for(const _0x52016d of _0x30193d)this['_isRegisteredAttribute'](_0x52016d['attributeKey'])&&_0x4b0eef['push']({'key':_0x52016d['attributeKey'],'newValue':_0x52016d['attributeNewValue'],'oldValue':_0x52016d['attributeOldValue'],'range':Ot(_0x52016d['range'],_0x47bbb7['model'])});for(const _0x393b70 of _0x4502b2){if('rename'!=_0x393b70['action']&&'refresh'!=_0x393b70['action'])continue;const _0x495c36=Gt(_0x393b70['position']['nodeAfter'],_0x47bbb7['model']),_0x1e297b=_0x393b70['before'];'rename'==_0x393b70['action']&&_0x4b0eef['push']({'key':m,'newValue':_0x393b70['name'],'oldValue':_0x1e297b['name'],'range':_0x495c36});for(const [_0x5a0958,_0x528cd2]of _0x1e297b['attributes']){if(!this['_isRegisteredAttribute'](_0x5a0958))continue;const _0x28d338=_0x393b70['attributes']['get'](_0x5a0958);_0x528cd2!==_0x28d338&&_0x4b0eef['push']({'key':_0x5a0958,'newValue':_0x28d338,'oldValue':_0x528cd2,'range':_0x495c36});}for(const [_0x2d67f1,_0x4ce376]of _0x393b70['attributes'])this['_isRegisteredAttribute'](_0x2d67f1)&&(_0x1e297b['attributes']['has'](_0x2d67f1)||_0x4b0eef['push']({'key':_0x2d67f1,'newValue':_0x4ce376,'oldValue':null,'range':_0x495c36}));}0x0!=_0x4b0eef['length']&&_0x47bbb7['model']['enqueueChange'](_0x4b5330,_0x1e3a10=>{const _0x526682=_0x37a894();for(const {range:_0x4b1212,key:_0x2db799,oldValue:_0xff99e6,newValue:_0x47a700}of _0x4b0eef)this['markAttributeChange'](_0x4b1212,_0x2db799,_0xff99e6,_0x47a700,{'groupId':_0x526682});this['_reduceExistingSuggestions'](_0x1e3a10,_0x4b0eef);});},{'priority':'lowest'}),_0x47bbb7['model']['markers']['on']('update:suggestion',(_0x3b38da,_0x5ea993,_0x483d93)=>{if(null==_0x483d93){const {id:_0x2110a5}=this['_splitMarkerName'](_0x5ea993['name']),_0x28243c=this['_suggestions']['get'](_0x2110a5);_0x28243c&&_0x28243c['addMarkerName'](_0x5ea993['name']);}}),_0x47bbb7['model']['document']['on']('change:data',()=>{const _0x718d1f=Array['from'](_0x47bbb7['model']['document']['differ']['getChangedMarkers']())['filter'](_0x373647=>'suggestion'===this['_splitMarkerName'](_0x373647['name'])['group']);if(0x0===_0x718d1f['length'])return;_0x718d1f['sort']((_0x45c499,_0x228297)=>{const _0x4e8d2e=_0x45c499['data']['oldRange'],_0x46a960=_0x228297['data']['oldRange'];return null===_0x4e8d2e&&null===_0x46a960?0x0:null===_0x4e8d2e&&null!==_0x46a960?-0x1:null!==_0x4e8d2e&&null===_0x46a960?0x1:_0x4e8d2e['start']['isBefore'](_0x46a960['start'])?-0x1:0x1;});const _0xa020c4=new Set(),_0x345c7b=new Set();for(const {name:_0x54c782,data:_0x258a5c}of _0x718d1f){const {id:_0xa84c2d}=this['_splitMarkerName'](_0x54c782);if(null===_0x258a5c['oldRange']){const _0x2f558e=this['_handleNewSuggestionMarker'](_0x54c782);_0x345c7b['add'](_0x2f558e);}else{const _0x196ebe=this['_suggestions']['get'](_0xa84c2d);null!==_0x258a5c['newRange']||_0x196ebe['isInContent']?(_0xa020c4['add'](_0x196ebe['head']),_0x345c7b['add'](_0x196ebe)):this['_removeSuggestion'](_0x196ebe);}}_0x345c7b['size']>0x0&&this['_refreshSuggestionsChain'](_0x345c7b);for(const _0x5b2741 of _0xa020c4)this['fire']('suggestionChanged',_0x5b2741);}),_0x47bbb7['model']['on']('applyOperation',(_0x1b1820,_0x3bceae)=>{const _0x3de261=_0x3bceae[0x0];if(!this['_suggestions']['size'])return;if(!_0x3de261['isDocumentOperation'])return;if(_0x3de261['batch']['isUndo']||!_0x3de261['batch']['isLocal'])return;let _0x318876,_0x19077d;switch(_0x3de261['type']){case'insert':_0x318876=_0x47bbb7['model']['createPositionAt'](_0x3de261['position']),_0x19077d=_0x318876['getShiftedBy'](_0x3de261['howMany']);break;case'split':_0x318876=_0x47bbb7['model']['createPositionAt'](_0x3de261['splitPosition']),_0x19077d=_0x47bbb7['model']['createPositionAt'](_0x3de261['moveTargetPosition']);break;case'move':_0x318876=_0x47bbb7['model']['createPositionAt'](_0x3de261['targetPosition']),_0x19077d=_0x318876['getShiftedBy'](_0x3de261['howMany']);break;default:return;}const _0x4df8bc=_0x47bbb7['model']['createRange'](_0x318876,_0x19077d);_0x47bbb7['model']['change'](()=>{for(const {suggestion:_0x2cf607,meta:_0x383f0b}of this['_findSuggestions'](_0x4df8bc)){if(_0x2cf607['isMultiRange'])continue;if('formatInline'==_0x2cf607['type'])continue;const _0x55ddff=this['_getAttributeKey'](_0x2cf607);if(_0x55ddff&&this['_isBlockAttribute'](_0x55ddff)&&'split'!=_0x3de261['type'])continue;const _0x2cec5a=_0x2cf607['data']&&_0x2cf607['data']['multipleBlocks'];('formatBlock'!=_0x2cf607['type']||'split'==_0x3de261['type']&&!_0x2cec5a)&&(_0x383f0b['containsRangeInObject']||'insertion'==_0x2cf607['type']&&_0x383f0b['isOwn']||_0x2cf607['getFirstRange']()['containsRange'](_0x4df8bc)&&this['_breakSuggestionMarker'](_0x2cf607,_0x318876,_0x19077d));}});},{'priority':'lowest'}),_0x47bbb7['model']['on']('deleteContent',(_0x5b1b6c,_0x26b4e2)=>{const _0x1d1072=_0x26b4e2[0x0],_0x17daad=_0x26b4e2[0x1];if(_0x17daad&&_0x17daad['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1d1072['isCollapsed'])return;const _0x597e1b=_0x47bbb7['model']['schema'],{start:_0x173d40,end:_0x47a5ef}=_0x1d1072['getFirstRange'](),_0x4f5d54=_0x173d40['nodeAfter']&&_0x597e1b['isLimit'](_0x173d40['nodeAfter'])?null:_0x597e1b['getNearestSelectionRange'](_0x173d40,'forward'),_0xba57b=_0x47a5ef['nodeBefore']&&_0x597e1b['isLimit'](_0x47a5ef['nodeBefore'])?null:_0x597e1b['getNearestSelectionRange'](_0x47a5ef,'backward'),_0x3dfb09=_0x47bbb7['model']['createRange'](_0x4f5d54?_0x4f5d54['start']:_0x173d40,_0xba57b?_0xba57b['end']:_0x47a5ef);_0x47bbb7['model']['change'](_0x1be53f=>{this['markDeletion'](_0x3dfb09);const _0x3abcd3=_0x47bbb7['model']['schema']['getNearestSelectionRange'](_0x3dfb09['start']);_0x1d1072['is']('documentSelection')?_0x1be53f['setSelection'](_0x3abcd3):_0x1d1072['setTo'](_0x3abcd3);}),_0x5b1b6c['stop']();},{'priority':_0x3523b5['normal']+0xa}),_0x47bbb7['model']['on']('insertContent',(_0x454fea,_0x30a8c3)=>{const _0x403ba3=_0x30a8c3[_0x30a8c3['length']-0x1];_0x403ba3&&_0x403ba3['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x47bbb7['model']['change'](()=>{let _0x33b9cc=_0x47bbb7['model']['insertContent'](_0x30a8c3[0x0],_0x30a8c3[0x1],_0x30a8c3[0x2],{'forceDefaultExecution':!0x0});if(!_0x33b9cc)return;_0x454fea['return']=_0x33b9cc['clone']();const _0x5c4b6c=_0x33b9cc['end']['nodeBefore'],_0xe7fcde=_0x47bbb7['model']['schema'];_0x5c4b6c&&_0xe7fcde['isBlock'](_0x5c4b6c)&&!_0xe7fcde['isObject'](_0x5c4b6c)&&(_0x33b9cc=_0x47bbb7['model']['createRange'](_0x33b9cc['start'],_0x47bbb7['model']['createPositionAt'](_0x5c4b6c,'end'))),this['markInsertion'](_0x33b9cc);}),_0x454fea['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xe7da2b=new $(_0x47bbb7,this['_suggestions']);_0x47bbb7['commands']['add']('acceptSuggestion',_0xe7da2b),this['enableCommand']('acceptSuggestion');const _0x328932=new B(_0x47bbb7,this['_suggestions']);_0x47bbb7['commands']['add']('discardSuggestion',_0x328932),this['enableCommand']('discardSuggestion'),_0x47bbb7['commands']['add']('acceptAllSuggestions',new x(_0x47bbb7,_0xe7da2b,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x47bbb7['commands']['add']('discardAllSuggestions',new x(_0x47bbb7,_0x328932,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x47bbb7['commands']['add']('acceptSelectedSuggestions',new R(_0x47bbb7,_0xe7da2b,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x47bbb7['commands']['add']('discardSelectedSuggestions',new R(_0x47bbb7,_0x328932,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x6c6173=_0x47bbb7['plugins']['get']('CommentsRepository');this['listenTo'](_0x6c6173,'addComment',(_0x2b7ba0,{threadId:_0x11b900})=>{const _0x123765=this['_suggestions']['get'](_0x11b900);_0x123765&&_0x123765['commentThread']&&0x1===_0x123765['commentThread']['length']&&this['_updateSuggestionData'](_0x11b900,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x6c6173,'removeComment',(_0x312b55,{threadId:_0x3360d0})=>{const _0x3c2bfa=this['_suggestions']['get'](_0x3360d0);_0x3c2bfa&&_0x3c2bfa['commentThread']&&!_0x3c2bfa['commentThread']['length']&&this['_updateSuggestionData'](_0x3360d0,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x190625){if(this['_adapter'])throw new _0x3085e6('track-changes-adapter-already-set',this);this['_adapter']=_0x190625;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x881e9d=!0x1,toJSON:_0x31dfc5=!0x1}={}){const _0x1b8a1c=[];for(const _0x245e57 of this['_suggestions']['values']())_0x881e9d&&!_0x245e57['isInContent']||_0x1b8a1c['push'](_0x245e57);return _0x31dfc5?_0x1b8a1c['map'](_0x3504c0=>_0x3504c0['toJSON']()):_0x1b8a1c;}['getSuggestion'](_0x25e095){const _0x2554ae=this['_suggestions']['get'](_0x25e095);if(!_0x2554ae)throw new _0x3085e6('track-changes-suggestion-not-found',this);return _0x2554ae;}['hasSuggestion'](_0x5e8cb3){return this['_suggestions']['has'](_0x5e8cb3);}['addSuggestionData'](_0x1f47fe){const {authorId:_0x429ad0,id:_0x137d26,attributes:_0x21a4bf}=_0x1f47fe,[_0x4fc69c,_0x48d77e]=_0x1f47fe['type']['split'](':'),_0x2160e9=this['_suggestions']['get'](_0x137d26)||this['_createSuggestion'](_0x4fc69c,_0x48d77e,_0x137d26,_0x429ad0,_0x21a4bf);if(this['_addThreadToSuggestion'](_0x2160e9),this['_checkSuggestionCorrectness'](_0x2160e9,_0x4fc69c,_0x48d77e||null,_0x429ad0),_0x2160e9['createdAt']=_0x1f47fe['createdAt'],_0x2160e9['_isDataLoaded']=!0x0,_0x21a4bf&&_0x21a4bf['@external']){const _0x1c78d1=_0x21a4bf['@external'],_0x470a1a=this['_getExternalAuthor'](_0x1c78d1['authorName']);_0x2160e9['authoredAt']=_0x1c78d1['createdAt'],_0x2160e9['author']=_0x470a1a,_0x2160e9['isExternal']=!0x0;}else _0x2160e9['authoredAt']=_0x1f47fe['createdAt'];switch(_0x1f47fe['data']&&(_0x2160e9['data']=_0x1f47fe['data']),_0x1f47fe['attributes']&&(_0x2160e9['attributes']=_0x1f47fe['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2160e9['_saved']=!0x0),this['_suggestionState']['get'](_0x2160e9)){case'notReady':this['_suggestionState']['set'](_0x2160e9,'dataReady');break;case'markerReady':_0x2160e9['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2160e9])),this['_refreshSuggestionsChain'](new Set([_0x2160e9])),this['_suggestionState']['set'](_0x2160e9,'ready'),this['fire']('suggestionLoaded',_0x2160e9)):this['_suggestionState']['set'](_0x2160e9,'removed');}return _0x2160e9;}['acceptSuggestion'](_0x54289b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5653a4 of _0x54289b['getAllAdjacentSuggestions']())_0x5653a4['accept']();});});}['discardSuggestion'](_0x5275b0){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x7be4a0 of _0x5275b0['getAllAdjacentSuggestions']())_0x7be4a0['discard']();});});}['enableCommand'](_0x7cb6a1,_0xa45d61){const _0x261edb=this['editor']['commands']['get'](_0x7cb6a1);if(!_0x261edb)throw new _0x3085e6('track-changes-command-not-found',this,{'commandName':_0x7cb6a1});if(this['_enabledCommands']['has'](_0x261edb))throw new _0x3085e6('track-changes-enable-command-twice',this,{'commandName':_0x7cb6a1});this['_enabledCommands']['add'](_0x261edb),_0xa45d61&&_0x261edb['on']('execute',(_0xb8db80,_0x19b8b8)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x19b8b8['length']>0x0&&_0x19b8b8[_0x19b8b8['length']-0x1]&&_0x19b8b8[_0x19b8b8['length']-0x1]['forceDefaultExecution']?_0x19b8b8['pop']():(_0xb8db80['return']=_0xa45d61((..._0x19b31b)=>_0x261edb['execute'](..._0x19b31b,{'forceDefaultExecution':!0x0}),..._0x19b8b8),_0xb8db80['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x306d34){let _0x37e51c,_0x58f4a4;const _0x26ee86=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x37e51c=_0x306d34();}catch(_0x599116){_0x58f4a4=_0x599116;}return _0x26ee86||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x58f4a4&&_0x3085e6['rethrowUnexpectedError'](_0x58f4a4,this),_0x37e51c;}['markInsertion'](_0x3b4500,_0x512442=null,_0x57c152={}){if(_0x3b4500['isCollapsed'])return null;const _0x287641=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x15b440,meta:_0x43314c}of this['_findSuggestions'](_0x3b4500,'insertion'))if(_0x43314c['isOwn']){if(!_0x43314c['isNextTo']){if(_0x43314c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x15b440,_0x57c152))continue;return _0x15b440;}if(Lt(_0x15b440,_0x57c152))return _0x15b440;this['_breakSuggestionMarker'](_0x15b440,_0x3b4500['start'],_0x3b4500['end']);break;}if(_0x512442==_0x15b440['subType']&&Lt(_0x15b440,_0x57c152)){const _0x3940ed=_0x15b440['getFirstRange']();return _0x3940ed['start']['isEqual'](_0x3b4500['end'])?this['_setSuggestionRange'](_0x15b440,this['_model']['createRange'](_0x3b4500['start'],_0x3940ed['end'])):this['_setSuggestionRange'](_0x15b440,this['_model']['createRange'](_0x3940ed['start'],_0x3b4500['end'])),_0x15b440;}}const _0x2145e1=_0x37a894(),_0x327615=_0x287641['id'],_0x5d683e=_0x512442?'insertion:'+_0x512442:'insertion',_0x16d21d=this['_setSuggestionData']({'id':_0x2145e1,'type':_0x5d683e,'createdAt':new Date(),'authorId':_0x327615,'attributes':_0x57c152});return this['_addSuggestionMarker'](_0x5d683e,_0x2145e1,_0x327615,_0x3b4500),_0x16d21d;}['markMultiRangeInsertion'](_0x41939e,_0x1cde38='multi',_0x65cac3={}){const _0x3537fe=this['editor']['plugins']['get']('Users')['me'],_0x901a4b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1cde38,'join');for(const _0x1ae575 of this['getSuggestions']())if(_0x1ae575['author']['id']==_0x3537fe['id']&&'insertion'==_0x1ae575['type']&&_0x1ae575['subType']==_0x1cde38&&Lt(_0x1ae575,_0x65cac3)&&(_0x901a4b(_0x1ae575['getRanges'](),_0x41939e)||_0x901a4b(_0x41939e,_0x1ae575['getRanges']()))){for(const _0x1aa20e of _0x41939e)_0x1ae575['addRange'](_0x1aa20e);return _0x1ae575;}for(const {suggestion:_0x7f83ac,meta:_0x16e15b}of this['_findSuggestions'](_0x41939e,'insertion')){if(!_0x16e15b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x16e15b['containsRangeInObject'])continue;if(!Lt(_0x7f83ac,_0x65cac3))continue;let _0x4e86a1=!0x0;for(const _0x584e15 of _0x7f83ac['getRanges']())for(const _0x7dfaba of _0x41939e)if(!_0x584e15['containsRange'](_0x7dfaba)){_0x4e86a1=!0x1;break;}if(_0x4e86a1)return _0x7f83ac;}const _0x4e3ebb=_0x37a894(),_0x3248fd=_0x3537fe['id'],_0x3e78c9='insertion:'+_0x1cde38,_0x4779f3=this['_setSuggestionData']({'id':_0x4e3ebb,'type':_0x3e78c9,'createdAt':new Date(),'authorId':_0x3248fd,'attributes':_0x65cac3});for(const _0x2307b1 of _0x41939e)this['_addSuggestionMarker'](_0x3e78c9,_0x4e3ebb,_0x3248fd,_0x2307b1,u['getMultiRangeId']());return _0x4779f3;}['markInlineFormat'](_0x499ed4,_0x250ae0,_0x13228d=null,_0x32c6ad={}){if(_0x13228d=_0x13228d||Vt(_0x250ae0),_0x499ed4['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x45ebdc=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x13228d,'accept');return this['forceDefaultExecution'](()=>_0x45ebdc([_0x499ed4],_0x250ae0,_0x32c6ad)),null;}const _0x28df77=this['editor']['plugins']['get']('Users')['me'],_0x337e4d=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5b7295,meta:_0x54d2bc}of this['_findSuggestions'](_0x499ed4,'insertion'))_0x54d2bc['isOwn']&&!_0x54d2bc['isInsideObject']&&_0x337e4d['push'](..._0x5b7295['getRanges']());}const _0xf00ca0=function(_0x56d181,_0x5467ad){const _0x1ee477=[];for(const _0x29eba2 of _0x5467ad){const _0x3c38af=_0x56d181['getIntersection'](_0x29eba2);_0x3c38af&&_0x1ee477['push'](_0x3c38af);}return _0x1ee477;}(_0x499ed4,_0x337e4d),_0x52949a=function(_0x2b1f82,_0x547c19){const _0x483059=[_0x2b1f82];for(const _0x2c7392 of _0x547c19){let _0xa9727f=0x0;for(;_0xa9727f<_0x483059['length'];){const _0x1860ac=_0x483059[_0xa9727f]['getDifference'](_0x2c7392);_0x483059['splice'](_0xa9727f,0x1,..._0x1860ac),_0xa9727f+=_0x1860ac['length'];}}return _0x483059;}(_0x499ed4,_0x337e4d);_0xf00ca0['length']&&this['_model']['change'](()=>{for(const _0x35b739 of _0xf00ca0){const _0x37b320=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x13228d,'accept');this['forceDefaultExecution'](()=>_0x37b320([_0x35b739],_0x250ae0,_0x32c6ad));}});for(const _0x358613 of _0x52949a){let _0x1ec389=null,_0x24c959=_0x358613['start'],_0x1614b0=_0x358613['end'];for(const {suggestion:_0x23e02a,meta:_0xc90f81}of this['_findSuggestions'](_0x358613,'formatInline')){if(!_0xc90f81['isOwn'])continue;if(_0x23e02a['subType']!=_0x13228d)continue;if(!Lt(_0x23e02a,_0x32c6ad))continue;const _0x1b63ab=_0x23e02a['getFirstRange']();if(_0x1b63ab['containsRange'](_0x358613,!0x0))return null;_0x24c959=_0x24c959['isBefore'](_0x1b63ab['start'])?_0x24c959:_0x1b63ab['start'],_0x1614b0=_0x1614b0['isAfter'](_0x1b63ab['end'])?_0x1614b0:_0x1b63ab['end'],_0x1ec389?_0x1b63ab['start']['isBefore'](_0x1ec389['getFirstRange']()['start'])?(_0x1ec389['removeMarkers'](),_0x1ec389=_0x23e02a):_0x23e02a['removeMarkers']():_0x1ec389=_0x23e02a;}const _0x49bb74=this['_model']['createRange'](_0x24c959,_0x1614b0);if(_0x1ec389)this['_setSuggestionRange'](_0x1ec389,_0x49bb74);else{const _0x47d771=_0x37a894(),_0xbfb8b3=_0x28df77['id'];this['_setSuggestionData']({'id':_0x47d771,'type':'formatInline:'+_0x13228d,'data':_0x250ae0,'createdAt':new Date(),'authorId':_0xbfb8b3,'attributes':_0x32c6ad}),this['_addSuggestionMarker']('formatInline:'+_0x13228d,_0x47d771,_0xbfb8b3,_0x49bb74);}}return null;}['markBlockFormat'](_0xccac67,_0x547b8b,_0x365f6f=[],_0x4407f0=null,_0x28459f={}){_0x547b8b['formatGroupId']||(_0x547b8b['formatGroupId']=_0x547b8b['commandName']),_0x547b8b['multipleBlocks']=_0xccac67['is']('range'),_0x4407f0=_0x4407f0||Vt(_0x547b8b);const _0x25b2ee=_0x365f6f['map'](_0x16cb14=>Gt(_0x16cb14,this['_model'])),_0x12a65d=_0xccac67['is']('range')?_0xccac67:Gt(_0xccac67,this['_model']);if('never'===this['_trackFormatChanges']){const _0x205b41=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4407f0,'accept');return this['forceDefaultExecution'](()=>_0x205b41([_0x12a65d],_0x547b8b,_0x28459f)),null;}_0x25b2ee['push'](_0x12a65d);let _0x425080=!0x0;for(const _0xebf9e1 of _0x25b2ee)if(!this['_rangeIsInLocalUserInsertion'](_0xebf9e1)){_0x425080=!0x1;break;}if(_0x425080&&'always'!==this['_trackFormatChanges']){const _0x3ebdf0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4407f0,'accept');return this['forceDefaultExecution'](()=>_0x3ebdf0([_0x12a65d],_0x547b8b,_0x28459f)),null;}let _0x5de977=null,_0x31a2bf=_0x12a65d['start'],_0x41172a=_0x12a65d['end'];for(const {suggestion:_0x61a64f,meta:_0x52185e}of this['_findSuggestions'](_0x12a65d,'formatBlock')){if(!_0x52185e['isOwn'])continue;if(_0x52185e['isNextTo']||_0x52185e['containsRangeInObject']||_0x52185e['isInsideObject'])continue;if(_0x61a64f['data']['formatGroupId']!=_0x547b8b['formatGroupId'])continue;if(!Lt(_0x61a64f,_0x28459f))continue;const _0x37c865=_0x61a64f['getFirstRange']();if(_0x61a64f['subType']==_0x4407f0){if(_0x37c865['containsRange'](_0x12a65d,!0x0))return null;_0x31a2bf=_0x31a2bf['isBefore'](_0x37c865['start'])?_0x31a2bf:_0x37c865['start'],_0x41172a=_0x41172a['isAfter'](_0x37c865['end'])?_0x41172a:_0x37c865['end'],_0x5de977?_0x37c865['start']['isBefore'](_0x5de977['getFirstRange']()['start'])?(_0x5de977['removeMarkers'](),_0x5de977=_0x61a64f):_0x61a64f['removeMarkers']():_0x5de977=_0x61a64f;}else{const _0x2a77c2=_0x12a65d['getIntersection'](_0x37c865);this['_cutOutSuggestionMarker'](_0x61a64f,_0x2a77c2);}}const _0x4e0e88=this['editor']['plugins']['get']('Users')['me'],_0x39186d=_0x37a894(),_0x15cd94=_0x4e0e88['id'];if(_0x5de977)return this['_setSuggestionRange'](_0x5de977,this['_model']['createRange'](_0x31a2bf,_0x41172a)),_0x5de977;{const _0x458b1e=this['_setSuggestionData']({'id':_0x39186d,'type':'formatBlock:'+_0x4407f0,'data':_0x547b8b,'createdAt':new Date(),'authorId':_0x15cd94,'attributes':_0x28459f});return this['_addSuggestionMarker']('formatBlock:'+_0x4407f0,_0x39186d,_0x15cd94,this['_model']['createRange'](_0x31a2bf,_0x41172a)),_0x458b1e;}}['markMultiRangeBlockFormat'](_0x135178,_0x4eec17,_0x182f43=[],_0x3e7b5d=null,_0x5b308e={}){_0x4eec17['formatGroupId']||(_0x4eec17['formatGroupId']=_0x4eec17['commandName']);const _0xd90401=_0x135178[0x0];_0x4eec17['multipleBlocks']=_0xd90401['is']('range'),_0x3e7b5d=_0x3e7b5d||Vt(_0x4eec17);const _0x6833cb=_0x182f43['map'](_0x326b7d=>Gt(_0x326b7d,this['_model'])),_0x1b00fb=_0xd90401['is']('range')?_0x135178:_0x135178['map'](_0x3b5a15=>Gt(_0x3b5a15,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2d0d70=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3e7b5d,'accept');return this['forceDefaultExecution'](()=>_0x2d0d70(_0x1b00fb,_0x4eec17,_0x5b308e)),null;}_0x6833cb['push'](..._0x1b00fb);let _0x540a1f=!0x0;for(const _0x39ff4d of _0x6833cb)if(!this['_rangeIsInLocalUserInsertion'](_0x39ff4d)){_0x540a1f=!0x1;break;}if(_0x540a1f&&'always'!==this['_trackFormatChanges']){const _0x29fce3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3e7b5d,'accept');return this['forceDefaultExecution'](()=>_0x29fce3(_0x1b00fb,_0x4eec17,_0x5b308e)),null;}const _0xd63ffb=this['editor']['plugins']['get']('Users')['me'];for(const _0x318298 of this['getSuggestions']()){if(_0x318298['author']['id']!=_0xd63ffb['id'])continue;if('formatBlock'!=_0x318298['type']||_0x318298['data']['formatGroupId']!=_0x4eec17['formatGroupId'])continue;if(!Lt(_0x318298,_0x5b308e))continue;const _0x15ae27=_0x318298['subType']==_0x3e7b5d;for(let _0x56c449=0x0;_0x56c449<_0x1b00fb['length'];_0x56c449++){const _0x1d2414=_0x1b00fb[_0x56c449];for(const _0x51ecbb of _0x318298['getMarkers']()){const _0x18a979=_0x51ecbb['getRange']();if(_0x1d2414['isEqual'](_0x18a979)){_0x15ae27?(_0x1b00fb['splice'](_0x56c449,0x1),_0x56c449--):_0x318298['removeMarker'](_0x51ecbb['name']);break;}}}}if(0x0==_0x1b00fb['length'])return null;const _0x23876b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3e7b5d,'join');for(const _0x3b4a98 of this['getSuggestions']())if(_0x3b4a98['author']['id']==_0xd63ffb['id']&&'formatBlock'==_0x3b4a98['type']&&_0x3b4a98['data']['formatGroupId']==_0x4eec17['formatGroupId']&&_0x3b4a98['subType']==_0x3e7b5d&&Lt(_0x3b4a98,_0x5b308e)&&(_0x23876b(_0x3b4a98['getRanges'](),_0x1b00fb)||_0x23876b(_0x1b00fb,_0x3b4a98['getRanges']()))){for(const _0x449bb5 of _0x1b00fb)_0x3b4a98['addRange'](_0x449bb5);return _0x3b4a98;}const _0x3a33d2=_0x37a894(),_0xea3835=_0xd63ffb['id'],_0x1f4638='formatBlock:'+_0x3e7b5d,_0x3fa36c=this['_setSuggestionData']({'id':_0x3a33d2,'type':_0x1f4638,'data':_0x4eec17,'createdAt':new Date(),'authorId':_0xea3835,'attributes':_0x5b308e});for(const _0x3ab96d of _0x1b00fb)this['_addSuggestionMarker'](_0x1f4638,_0x3a33d2,_0xea3835,_0x3ab96d,u['getMultiRangeId']());return _0x3fa36c;}['markDeletion'](_0x31be1f,_0x347a83=null,_0x416c49={}){if(_0x31be1f['isCollapsed'])return null;const _0x4ae095=this['editor']['plugins']['get']('Users')['me'],_0x4cb85e=new _0x533200(_0x31be1f['start'],_0x31be1f['end']);for(const {suggestion:_0x47d42a,meta:_0x818e17}of this['_findSuggestions'](_0x4cb85e,'insertion'))if(_0x818e17['isOwn']&&!_0x818e17['isNextTo']){if(_0x47d42a['isMultiRange']){const _0x3e80ea=_0x47d42a['getRanges']()['filter'](_0x5213c0=>'$graveyard'!=_0x5213c0['root']['rootName']);_0x3e80ea['every'](_0x11e21a=>_0x4cb85e['containsRange'](_0x11e21a,!0x0))&&_0x47d42a['discard']();if(_0x3e80ea['some'](_0x2d5253=>_0x2d5253['containsRange'](_0x4cb85e,!0x0))){const _0xc3aa1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x347a83,'accept');return this['forceDefaultExecution'](()=>_0xc3aa1([_0x4cb85e],null,_0x416c49)),null;}}else{const _0x37003f=_0x4cb85e['getIntersection'](_0x47d42a['getFirstRange']());null!==_0x37003f&&_0x47d42a['_onDiscard']([_0x37003f],null,_0x416c49);}}if(_0x4cb85e['detach'](),_0x4cb85e['isCollapsed']||'$graveyard'==_0x4cb85e['root']['rootName'])return null;let _0x33c8c2=null,_0x280093=_0x4cb85e['start'],_0x77333a=_0x4cb85e['end'];const _0x46a45b=this['_findSuggestions'](_0x4cb85e,'deletion');for(const {suggestion:_0x5673f0,meta:_0x249a68}of _0x46a45b){const _0x58282a=this['_model']['createRange'](_0x280093,_0x77333a);if(_0x249a68['isOwn']&&(this['_mergeNestedSuggestions']||!_0x249a68['containsRangeInObject']&&!_0x249a68['isInsideObject'])){if(_0x5673f0['isMultiRange']){if(!Lt(_0x5673f0,_0x416c49))continue;let _0x1475e7=!0x0;for(const _0x213862 of _0x5673f0['getRanges']()){if(_0x213862['containsRange'](_0x58282a,!0x0))return _0x5673f0;_0x58282a['containsRange'](_0x213862)||(_0x1475e7=!0x1);}_0x1475e7&&_0x5673f0['discard']();}else{const _0x2aaf27=_0x5673f0['getFirstRange']();if(_0x2aaf27['containsRange'](_0x58282a,!0x0))return _0x5673f0;if(!Lt(_0x5673f0,_0x416c49)){_0x58282a['containsRange'](_0x2aaf27)?_0x5673f0['removeMarkers']():_0x2aaf27['containsPosition'](_0x280093)?_0x280093=_0x2aaf27['end']:_0x2aaf27['containsPosition'](_0x77333a)&&(_0x77333a=_0x2aaf27['start']);continue;}_0x280093=_0x280093['isBefore'](_0x2aaf27['start'])?_0x280093:_0x2aaf27['start'],_0x77333a=_0x77333a['isAfter'](_0x2aaf27['end'])?_0x77333a:_0x2aaf27['end'],_0x416c49=Object['assign']({},_0x5673f0['attributes']),_0x33c8c2?_0x2aaf27['start']['isBefore'](_0x33c8c2['getFirstRange']()['start'])?(_0x33c8c2['removeMarkers'](),_0x33c8c2=_0x5673f0):_0x5673f0['removeMarkers']():_0x33c8c2=_0x5673f0;}}}if(_0x33c8c2)return this['_setSuggestionRange'](_0x33c8c2,this['_model']['createRange'](_0x280093,_0x77333a)),_0x33c8c2;{const _0x4ba3b0=_0x37a894(),_0x65fbbd=this['_model']['createRange'](_0x280093,_0x77333a),_0x3b9921=_0x4ae095['id'],_0x461574=_0x347a83?'deletion:'+_0x347a83:'deletion',_0x5c8ad0=this['_setSuggestionData']({'id':_0x4ba3b0,'type':_0x461574,'createdAt':new Date(),'authorId':_0x3b9921,'attributes':_0x416c49});return this['_addSuggestionMarker'](_0x461574,_0x4ba3b0,_0x3b9921,_0x65fbbd),_0x5c8ad0;}}['markMultiRangeDeletion'](_0x30b237,_0x2dcc39='multi',_0x83f6bb={}){const _0x23284c=this['editor']['plugins']['get']('Users')['me'],_0xaaf46e=_0x30b237['map'](_0x411d64=>new _0x533200(_0x411d64['start'],_0x411d64['end'])),_0x592fd3=new Set();for(const {suggestion:_0x193bbb,meta:_0x5b0f1d}of this['_findSuggestions'](_0xaaf46e,'insertion'))_0x5b0f1d['isOwn']&&!_0x5b0f1d['isNextTo']&&_0x592fd3['add'](_0x193bbb);for(const _0x477ec2 of _0x592fd3)if(_0x477ec2['isMultiRange']){const _0x9cacc5=_0x477ec2['getRanges']();(!_0x477ec2['attributes']||!_0x477ec2['attributes']['skipNestingCheck'])&&(_0x9cacc5['every'](_0x3ba966=>_0xaaf46e['some'](_0x10c6c8=>_0x10c6c8['containsRange'](_0x3ba966,!0x0)))&&_0x477ec2['discard']());if(_0xaaf46e['every'](_0x2b7062=>_0x9cacc5['some'](_0xcec309=>_0xcec309['containsRange'](_0x2b7062,!0x0)))){const _0x3eca43=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2dcc39,'accept');return this['forceDefaultExecution'](()=>_0x3eca43(_0x30b237,null,_0x83f6bb)),null;}}else{const _0x29f86b=_0x477ec2['getFirstRange']();_0xaaf46e['some'](_0x21c69c=>_0x21c69c['containsRange'](_0x29f86b,!0x0))&&_0x477ec2['discard']();if(_0xaaf46e['every'](_0xa26924=>_0x29f86b['containsRange'](_0xa26924,!0x0))){const _0x340791=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2dcc39,'accept');return this['forceDefaultExecution'](()=>_0x340791(_0xaaf46e,null,_0x83f6bb)),null;}}const _0x5e5bf5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2dcc39,'join');let _0x391643=null;for(const _0x32ef87 of this['getSuggestions']())if(_0x32ef87['author']['id']==_0x23284c['id']&&_0x32ef87['isInContent']&&'deletion'==_0x32ef87['type']&&_0x32ef87['subType']==_0x2dcc39&&Lt(_0x32ef87,_0x83f6bb)&&(_0x5e5bf5(_0x32ef87['getRanges'](),_0xaaf46e)||_0x5e5bf5(_0xaaf46e,_0x32ef87['getRanges']()))){if(_0x391643){if(_0x32ef87['commentThread']&&_0x32ef87['commentThread']['length'])continue;for(const _0x4fccf0 of _0x32ef87['getRanges']())_0x391643['isIntersectingWithRange'](_0x4fccf0)||_0x391643['addRange'](_0x4fccf0);_0x32ef87['removeMarkers']();}else{_0x391643=_0x32ef87;for(const _0x127de5 of _0xaaf46e)_0x32ef87['isIntersectingWithRange'](_0x127de5)||_0x32ef87['addRange'](_0x127de5);}}if(_0x391643)return _0x391643;_0x592fd3['clear']();for(const {suggestion:_0x3190f4,meta:_0x21aacf}of this['_findSuggestions'](_0xaaf46e,'deletion'))_0x21aacf['isOwn']&&(this['_mergeNestedSuggestions']||!_0x21aacf['containsRangeInObject']&&!_0x21aacf['isInsideObject'])&&Lt(_0x3190f4,_0x83f6bb)&&_0x592fd3['add'](_0x3190f4);for(const _0x2e3e0d of _0x592fd3){const _0x1bb019=_0x2e3e0d['getRanges']();if(!_0x83f6bb||!_0x83f6bb['skipNestingCheck']){if(_0xaaf46e['every'](_0x39b559=>_0x1bb019['some'](_0xfac9a=>_0xfac9a['containsRange'](_0x39b559,!0x0))))return _0x2e3e0d;}(!_0x2e3e0d['attributes']||!_0x2e3e0d['attributes']['skipNestingCheck'])&&(_0x1bb019['every'](_0x541dd5=>_0xaaf46e['some'](_0x3087b5=>_0x3087b5['containsRange'](_0x541dd5,!0x0)))&&_0x2e3e0d['discard']());}const _0x539ca3=_0x37a894(),_0x59c25a=_0x23284c['id'],_0x1840c0='deletion:'+_0x2dcc39,_0x7c8d1d=this['_setSuggestionData']({'id':_0x539ca3,'type':_0x1840c0,'createdAt':new Date(),'authorId':_0x59c25a,'attributes':_0x83f6bb});for(const _0x2f5631 of _0xaaf46e)_0x2f5631['detach'](),_0x2f5631['isCollapsed']||'$graveyard'==_0x2f5631['root']['rootName']||this['_addSuggestionMarker'](_0x1840c0,_0x539ca3,_0x59c25a,_0x2f5631,u['getMultiRangeId']());return _0x7c8d1d;}['markAttributeChange'](_0x38c73c,_0x42e453,_0x1db120,_0x18bca8,_0x453ae1){if(_0x38c73c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x525522=this['editor']['plugins']['get']('Users')['me']['id'],_0x4b2b1e=Array['from'](this['_suggestions']['values']())['filter'](_0x3432ac=>'attribute'==_0x3432ac['type']&&_0x3432ac['data']['key']==_0x42e453&&_0x3432ac['isIntersectingWithRange'](_0x38c73c));if('default'===this['_trackFormatChanges']){const _0x3cd620=this['_findSuggestions'](_0x38c73c,'insertion')['filter'](({meta:_0x170747})=>_0x170747['isOwn']&&!_0x170747['isInsideObject']&&!_0x170747['isNextTo'])['map'](({suggestion:_0x32d24b})=>_0x32d24b);_0x4b2b1e['unshift'](..._0x3cd620);}const _0x11b180=new Map([[_0x38c73c,_0x1db120]]);for(const _0x3f2ca5 of _0x4b2b1e){const _0x3b76ef='attribute'==_0x3f2ca5['type']?_0x3f2ca5['data']['oldValue']:void 0x0,_0x368aa7=_0x3f2ca5['getFirstRange'](),_0x4fe0ac=Array['from'](_0x11b180['keys']())['find'](_0x565f60=>_0x565f60['isIntersecting'](_0x368aa7));if(!_0x4fe0ac)continue;const _0xb6be22=_0x4fe0ac['getDifference'](_0x368aa7);this['_isBlockAttribute'](_0x42e453)&&'insertion'==_0x3f2ca5['type']&&0x0!=_0xb6be22['length']||(_0x11b180['delete'](_0x4fe0ac),_0xb6be22['forEach'](_0x571c4b=>{_0x11b180['set'](_0x571c4b,_0x1db120);}),'insertion'!=_0x3f2ca5['type']&&_0x3b76ef!=_0x18bca8&&_0x11b180['set'](_0x4fe0ac['getIntersection'](_0x368aa7),_0x3b76ef));}const _0x2eb1cc=[];for(const [_0x51aea4,_0x9d3a5f]of _0x11b180){const _0x5cc500=_0x37a894(),_0xe70b1b={'key':_0x42e453,'oldValue':_0x9d3a5f,'newValue':_0x18bca8};_0x42e453['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':_0x42e453});const _0x18da9f=('attribute:'+(_0x42e453+'|'+Vt({'newValue':_0x18bca8})))['substring'](0x0,0x3c),_0x5c7d2c=this['_setSuggestionData']({'id':_0x5cc500,'type':_0x18da9f,'data':_0xe70b1b,'createdAt':new Date(),'authorId':_0x525522,'attributes':_0x453ae1});_0x2eb1cc['push'](_0x5c7d2c),this['_addSuggestionMarker'](_0x18da9f,_0x5cc500,_0x525522,_0x51aea4);}return _0x2eb1cc;}['enableDefaultAttributesIntegration'](_0x4ca51){this['enableCommand'](_0x4ca51,(_0x167866,..._0x1b1809)=>{this['_recordAttributeChanges'](()=>{_0x167866(..._0x1b1809);});});}['registerBlockAttribute'](_0x667a64){this['_blockAttributeKeys']['add'](_0x667a64);}['registerInlineAttribute'](_0x2ef399){this['_inlineAttributeKeys']['add'](_0x2ef399);}['_getAttributeKey'](_0x43e844){return'attribute'==_0x43e844['type']?_0x43e844['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x29ed11,_0x1fed0f){const _0x35417c=_0x29ed11['getFirstMarker']();this['_model']['change'](_0x22bb27=>{_0x22bb27['updateMarker'](_0x35417c,{'range':_0x1fed0f});});}['_addThreadToSuggestion'](_0x30d93a){const _0x346e7c=_0x30d93a['id'],_0x416f8c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x346e7c)||this['_commentsRepository']['addCommentThread']({'channelId':_0x416f8c,'threadId':_0x346e7c,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x10d331=this['_commentsRepository']['getCommentThread'](_0x346e7c);_0x10d331['unbind']('isRemovable'),_0x10d331['isRemovable']=!0x1,_0x30d93a['commentThread']=_0x10d331;}['_checkSuggestionCorrectness'](_0x59ead6,_0x59342b,_0x3c7160,_0x355995){if(_0x59ead6['type']!=_0x59342b||_0x59ead6['subType']!=_0x3c7160||_0x59ead6['creator']['id']!=_0x355995)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3085e6('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x32c901,_0x5c5224){const _0x2194b3=_0x32c901['getFirstRange']();if(_0x5c5224['isEqual'](_0x2194b3))_0x32c901['removeMarkers']();else{if(_0x2194b3['containsRange'](_0x5c5224)){const _0x21eed4=this['_model']['createPositionAt'](_0x5c5224['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x32c901,this['_model']['createRange'](_0x2194b3['start'],_0x21eed4));const _0x434c28=_0x37a894(),_0x13ae1d=_0x32c901['creator']['id'],_0x25a8c2=_0x32c901['type']+':'+_0x32c901['subType'];this['_setSuggestionData']({'id':_0x434c28,'type':_0x25a8c2,'createdAt':new Date(),'authorId':_0x13ae1d,'data':_0x32c901['data'],'attributes':_0x32c901['attributes']});const _0x3cf8bf=this['_model']['createPositionAt'](_0x5c5224['end']['parent'],'after'),_0x10c6a1=this['_model']['createRange'](_0x3cf8bf,_0x2194b3['end']);this['_addSuggestionMarker'](_0x25a8c2,_0x434c28,_0x13ae1d,_0x10c6a1);}else{if(_0x2194b3['containsPosition'](_0x5c5224['start'])){const _0x34b16f=this['_model']['createPositionAt'](_0x5c5224['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x32c901,this['_model']['createRange'](_0x2194b3['start'],_0x34b16f));}else{const _0x29d814=this['_model']['createPositionAt'](_0x5c5224['end']['parent'],'after');this['_setSuggestionRange'](_0x32c901,this['_model']['createRange'](_0x29d814,_0x2194b3['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x500784){for(const {suggestion:_0x1e7872,meta:_0x2601de}of this['_findSuggestions'](_0x500784,'insertion')){if(!_0x2601de['isOwn'])continue;const _0x5606c3=_0x1e7872['getRanges']();for(const _0x387b57 of _0x5606c3)if(!_0x500784['getDifference'](_0x387b57)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5b4abc){const _0x2a328d=this['editor']['plugins']['get']('Users')['getUser'](_0x5b4abc);if(!_0x2a328d)throw new _0x3085e6('track-changes-user-not-found',this);return _0x2a328d;}['_getExternalAuthor'](_0x11cb3a){const _0x1bf00e=this['editor']['plugins']['get']('Users'),_0x2a663a=_0x3a596d('external:'+_0x11cb3a),_0x39f85a=_0x1bf00e['getUser'](_0x2a663a);return _0x39f85a||_0x1bf00e['addUser']({'id':_0x2a663a,'name':_0x11cb3a});}['_createSuggestion'](_0x15af33,_0x556441,_0x29f75b,_0x258ef7,_0xac3b07){const _0x5c140f=this['_getAuthorFromId'](_0x258ef7),_0xb1a2db=this['_suggestionFactory']['buildSuggestion'](_0x15af33,_0x556441,_0x29f75b,_0x5c140f,_0xac3b07,_0x542f83=>{this['_updateSuggestionData'](_0x29f75b,{'attributes':_0x542f83});const _0x1bb35c=this['getSuggestion'](_0x29f75b);this['_joinWithAdjacentSuggestions'](new Set([_0x1bb35c])),this['_refreshSuggestionsChain'](new Set([_0x1bb35c]));});return this['listenTo'](_0xb1a2db,'accept',()=>{this['_updateSuggestionData'](_0x29f75b,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xb1a2db,'discard',()=>{this['_updateSuggestionData'](_0x29f75b,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x29f75b,_0xb1a2db),this['_suggestionState']['set'](_0xb1a2db,'notReady'),_0xb1a2db;}['_splitMarkerName'](_0x217e99){const _0xc5d2c4=_0x217e99['split'](':');return{'group':_0xc5d2c4[0x0],'type':_0xc5d2c4[0x1],'subType':_0xc5d2c4['length']>=0x5?_0xc5d2c4[0x2]:null,'id':_0xc5d2c4['length']<0x5?_0xc5d2c4[0x2]:_0xc5d2c4[0x3],'authorId':_0xc5d2c4['length']<0x5?_0xc5d2c4[0x3]:_0xc5d2c4[0x4],'markerCount':0x6==_0xc5d2c4['length']?_0xc5d2c4[0x5]:null};}['_breakSuggestionMarker'](_0xfd875a,_0x5dd547,_0x456c14){const _0x4564cd=_0xfd875a['getFirstRange'](),_0x39edd3=_0x4564cd['start'],_0x1a85c4=_0x4564cd['end'];this['_setSuggestionRange'](_0xfd875a,this['_model']['createRange'](_0x39edd3,_0x5dd547));const _0x351015=_0x37a894(),_0x52f444=_0xfd875a['creator']['id'],_0x315965=_0xfd875a['type']+(_0xfd875a['subType']?':'+_0xfd875a['subType']:'');this['_setSuggestionData']({'id':_0x351015,'type':_0x315965,'createdAt':new Date(),'authorId':_0x52f444,'originalSuggestionId':_0xfd875a['id'],'attributes':_0xfd875a['attributes'],'data':_0xfd875a['data']});const _0x125cb5=this['_getAttributeKey'](_0xfd875a);('formatBlock'==_0xfd875a['type']||_0x125cb5&&this['_isBlockAttribute'](_0x125cb5))&&(_0x456c14=this['_model']['createPositionBefore'](_0x456c14['parent'])),this['_addSuggestionMarker'](_0x315965,_0x351015,_0x52f444,this['_model']['createRange'](_0x456c14,_0x1a85c4));}['_findSuggestions'](_0x4c5b29,_0x3d23b9=null){const _0x18645c=[],_0x2e0cb9=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4c5b29)||(_0x4c5b29=[_0x4c5b29]);for(const _0x3bc231 of this['getSuggestions']()){if(!_0x3bc231['isInContent'])continue;if(_0x3d23b9&&_0x3bc231['type']!=_0x3d23b9)continue;let _0xca595b=!0x1;for(const _0x71e96f of _0x3bc231['getRanges']()){for(const _0x4d486c of _0x4c5b29){const _0x19086a=_0x4d486c['start']['isEqual'](_0x71e96f['end'])||_0x4d486c['end']['isEqual'](_0x71e96f['start']);if(_0x19086a||_0x4d486c['getIntersection'](_0x71e96f)){const _0x11b757=_0x4d486c['containsRange'](_0x71e96f)&&Rt(this['_model']['schema'],_0x71e96f['start'],_0x4d486c),_0xc8bd55=_0x71e96f['containsRange'](_0x4d486c)&&Rt(this['_model']['schema'],_0x4d486c['start'],_0x71e96f);_0x18645c['push']({'suggestion':_0x3bc231,'meta':{'isOwn':_0x2e0cb9==_0x3bc231['author'],'isNextTo':_0x19086a,'isInsideObject':_0x11b757,'containsRangeInObject':_0xc8bd55}}),_0xca595b=!0x0;break;}}if(_0xca595b)break;}}return _0x18645c;}['_addSuggestionMarker'](_0x243467,_0x48a43f,_0x59e1ea,_0x49c8fc,_0x5d59ed){this['_model']['change'](_0x5005e5=>{let _0x4e4d89='suggestion:'+_0x243467+':'+_0x48a43f+':'+_0x59e1ea;_0x5d59ed&&(_0x4e4d89=_0x4e4d89+':'+_0x5d59ed),_0x5005e5['addMarker'](_0x4e4d89,{'range':_0x49c8fc,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x549d46){const _0x2f1df1=_0x549d46['previous'],_0x432963=_0x549d46['next'];_0x549d46['previous']=null,_0x549d46['next']=null,null!=_0x2f1df1&&_0x2f1df1['next']==_0x549d46&&(_0x2f1df1['next']=_0x432963),null!=_0x432963&&_0x432963['previous']==_0x549d46&&(_0x432963['previous']=_0x2f1df1),'ready'==this['_suggestionState']['get'](_0x549d46)&&(this['_suggestionState']['set'](_0x549d46,'removed'),this['fire']('suggestionUnloaded',_0x549d46,_0x2f1df1,_0x432963));}['_setSuggestionData'](_0x2dd1c8){const _0x1b63ca=_0x2dd1c8['id'],_0x351307=this['addSuggestionData'](_0x2dd1c8);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x573972=this['editor']['plugins']['get']('PendingActions'),_0x2304c8=_0x351307['hasComments'],_0x591a92=_0x351307['subType']?_0x351307['type']+':'+_0x351307['subType']:_0x351307['type'],_0x1dfaa5=this['editor']['locale'],_0x2872c5=_0x573972['add'](o(_0x1dfaa5,'PENDING_ACTION_SUGGESTION')),_0x514a14={'id':_0x1b63ca,'type':_0x591a92,'hasComments':_0x2304c8,'data':_0x2dd1c8['data']||null,'originalSuggestionId':_0x2dd1c8['originalSuggestionId']||null,'attributes':_0x351307['attributes']};this['_adapter']['addSuggestion'](_0x514a14)['then'](_0x8aab6f=>{_0x351307['_saved']=!0x0,_0x573972['remove'](_0x2872c5),_0x8aab6f&&_0x8aab6f['createdAt']&&(this['_suggestions']['get'](_0x1b63ca)['createdAt']=_0x8aab6f['createdAt']);})['catch'](_0x3cc746=>{throw _0x20ea4c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x351307['discard']();}),_0x351307['stopListening'](),this['_suggestions']['delete'](_0x351307['id']),this['_suggestionState']['delete'](_0x351307),_0x3cc746;});}return _0x351307;}['_isBlockAttribute'](_0x527858){return this['_blockAttributeKeys']['has'](_0x527858);}['_updateSuggestionData'](_0x524151,_0x3daffb){const _0x429d5f=this['editor']['plugins']['get']('PendingActions'),_0x52b890=this['getSuggestion'](_0x524151);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x52b890['_saved']){const _0x433a8b=_0x429d5f['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x524151,_0x3daffb)['then'](()=>{_0x429d5f['remove'](_0x433a8b);});}else _0x52b890['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x524151,_0x3daffb);});}}['_getSuggestionData'](_0x412b08){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3085e6('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x412b08);}['_handleNewSuggestionMarker'](_0x52f1a8){const {id:_0x4aec07,type:_0x1f0454,subType:_0x21c9c5,authorId:_0x1f3a02}=this['_splitMarkerName'](_0x52f1a8),_0x1ccd5f=this['_suggestions']['get'](_0x4aec07)||this['_createSuggestion'](_0x1f0454,_0x21c9c5,_0x4aec07,_0x1f3a02,{});switch(this['_checkSuggestionCorrectness'](_0x1ccd5f,_0x1f0454,_0x21c9c5,_0x1f3a02),this['_suggestionState']['get'](_0x1ccd5f)){case'notReady':this['_getSuggestionData'](_0x4aec07)['then'](_0xd44346=>{let _0x4fa184=Promise['resolve']();_0xd44346['hasComments']&&(_0x4fa184=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4aec07})),_0x4fa184['then'](()=>{this['addSuggestionData'](_0xd44346)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1ccd5f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4aec07,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1ccd5f,'ready'),this['fire']('suggestionLoaded',_0x1ccd5f);break;case'ready':this['fire']('suggestionChanged',_0x1ccd5f);}return _0x1ccd5f['addMarkerName'](_0x52f1a8),_0x1ccd5f;}['_refreshSuggestionsChain'](_0x183864){const _0x5d5272=Array['from'](_0x183864),_0x5a9534=_0x5d5272['filter'](_0x5564fd=>'attribute'==_0x5564fd['type']);this['_refreshAttributeSuggestionsChain'](_0x5a9534);const _0x706d0e=_0x5d5272['filter'](_0x16c295=>!_0x16c295['isMultiRange']&&'attribute'!=_0x16c295['type']),_0x4bdacc=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x9a077=>!_0x9a077['isMultiRange']&&'attribute'!=_0x9a077['type']),_0x586877=_0x4bdacc['filter'](_0x51dab8=>!_0x183864['has'](_0x51dab8)),_0x7be35c=new Map(_0x4bdacc['map'](_0x415079=>[_0x415079,this['_suggestionFactory']['getSuggestionCallback'](_0x415079['type'],_0x415079['subType'],'chain')])),_0x29b1e6=new Map(_0x4bdacc['map'](_0x581d18=>[_0x581d18,_0x581d18['getFirstRange']()])),_0xde0a32=new Set(),_0x1c511d=new Set();for(let _0x33fd71=0x0;_0x33fd71<_0x706d0e['length'];_0x33fd71++)_0x254ab7(_0x706d0e[_0x33fd71],_0x706d0e,_0x33fd71+0x1);for(let _0x8ccb5b=0x0;_0x8ccb5b<_0x706d0e['length'];_0x8ccb5b++)_0x254ab7(_0x706d0e[_0x8ccb5b],_0x586877,0x0);const _0x5640ef=new Set();for(let _0x1936da=0x0;_0x1936da<_0x706d0e['length'];_0x1936da++){const _0x36b8e4=_0x706d0e[_0x1936da];!_0x1c511d['has'](_0x36b8e4)&&_0x36b8e4['previous']&&(_0x5640ef['add'](_0x36b8e4['previous']),_0x36b8e4['previous']['next']===_0x36b8e4&&(_0x36b8e4['previous']['next']=null),_0x36b8e4['previous']=null),!_0xde0a32['has'](_0x36b8e4)&&_0x36b8e4['next']&&(_0x5640ef['add'](_0x36b8e4['next']),_0x36b8e4['next']['previous']===_0x36b8e4&&(_0x36b8e4['next']['previous']=null),_0x36b8e4['next']=null);}function _0x254ab7(_0x10a43e,_0x3c95b1,_0x1eadf2){for(let _0x533d27=_0x1eadf2;_0x533d27<_0x3c95b1['length'];_0x533d27++){const _0x14e05b=_0x1a8409(_0x10a43e,_0x3c95b1[_0x533d27]);_0x14e05b&&(_0x14e05b[0x0]['next']=_0x14e05b[0x1],_0x14e05b[0x1]['previous']=_0x14e05b[0x0],_0xde0a32['add'](_0x14e05b[0x0]),_0x1c511d['add'](_0x14e05b[0x1]));}}function _0x1a8409(_0xf18362,_0x3772f6){if(_0xf18362['author']['id']!==_0x3772f6['author']['id'])return null;const _0x2d8cea=_0x7be35c['get'](_0xf18362)(_0xf18362,_0x3772f6,_0x29b1e6['get'](_0xf18362),_0x29b1e6['get'](_0x3772f6));if(!_0x2d8cea)return null;return _0x7be35c['get'](_0x3772f6)(_0xf18362,_0x3772f6,_0x29b1e6['get'](_0xf18362),_0x29b1e6['get'](_0x3772f6))?_0x2d8cea[0x1]['commentThread']&&_0x2d8cea[0x1]['commentThread']['length']?null:_0x2d8cea:null;}_0x5640ef['size']&&this['_refreshSuggestionsChain'](_0x5640ef);}['_refreshAttributeSuggestionsChain'](_0x46f417){if(0x0==_0x46f417['length'])return;const _0x19d562=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4807d2=>'attribute'==_0x4807d2['type']&&_0x4807d2['_isDataLoaded']),_0x4cca87=[],_0x8da097=new Map();for(const _0x3285c4 of _0x19d562){const _0x52ac60=_0x3a596d(_0x3285c4['attributes']);_0x8da097['has'](_0x52ac60)||(_0x8da097['set'](_0x52ac60,_0x4cca87['length']),_0x4cca87['push']([]));const _0x26ea07=_0x8da097['get'](_0x52ac60);_0x4cca87[_0x26ea07]['push'](_0x3285c4);}!(function(){_0x4cca87['sort']((_0x5ec416,_0xe4c5da)=>{const _0x2177dc=_0x5ec416[0x0]['createdAt'],_0x5f41ef=_0xe4c5da[0x0]['createdAt'];return _0x2177dc==_0x5f41ef?_0x5ec416[0x0]['attributes']['groupId']<_0xe4c5da[0x0]['attributes']['groupId']?-0x1:0x1:_0x2177dc<_0x5f41ef?-0x1:0x1;});for(const _0x8cef06 of _0x4cca87)_0x8cef06['sort']((_0x26b452,_0x22a3fa)=>_0x26b452['id']<_0x22a3fa['id']?-0x1:0x1);}());for(let _0x102d49=0x0;_0x102d49<_0x4cca87['length'];_0x102d49++){if(0x0==_0x4cca87[_0x102d49]['length'])continue;const _0x110c13=[];for(let _0x402735=_0x102d49+0x1;_0x402735<_0x4cca87['length'];_0x402735++)0x0!=_0x4cca87[_0x402735]['length']&&_0x4d9add(_0x4cca87[_0x102d49],_0x4cca87[_0x402735])&&_0x110c13['push'](_0x402735);for(const _0x5b14e0 of _0x110c13)_0x4cca87[_0x102d49]=_0x4cca87[_0x102d49]['concat'](_0x4cca87[_0x5b14e0]),_0x4cca87[_0x5b14e0]=[];}for(const _0x3c60ca of _0x4cca87)for(let _0x36d413=0x0;_0x36d413<_0x3c60ca['length'];_0x36d413++)_0x3c60ca[_0x36d413]['next']=_0x3c60ca[_0x36d413+0x1]||null;for(const _0x312754 of _0x4cca87)for(let _0xfd5226=0x0;_0xfd5226<_0x312754['length'];_0xfd5226++)_0x312754[_0xfd5226]['previous']=_0x312754[_0xfd5226-0x1]||null;function _0x4d9add(_0xf64cf4,_0x2a3c0b){if(_0xf64cf4[0x0]['attributes']['groupId']!==_0x2a3c0b[0x0]['attributes']['groupId']&&_0xf64cf4[0x0]['author']!==_0x2a3c0b[0x0]['author'])return!0x1;if(!function(_0x35d1f6,_0x477508){if(!_0x35d1f6['hasComments']&&!_0x477508['hasComments'])return!0x0;if(_0x35d1f6['hasComments']&&_0x477508['hasComments'])return!0x1;if(_0x35d1f6['hasComments']&&_0x477508['createdAt']<_0x35d1f6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x477508['hasComments']&&_0x35d1f6['createdAt']<_0x477508['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xf64cf4[0x0],_0x2a3c0b[0x0]))return!0x1;const _0x31caff=Bt(_0xf64cf4[0x0]['attributes'],'groupId'),_0x66be86=Bt(_0x2a3c0b[0x0]['attributes'],'groupId');if(!_0x215c3b(_0x31caff,_0x66be86))return!0x1;return!!_0xf64cf4['every'](_0x29d319=>_0x2a3c0b['some'](_0x462bf3=>_0x29d319['getFirstRange']()['isEqual'](_0x462bf3['getFirstRange']())))&&_0x2a3c0b['every'](_0x2e5acf=>_0xf64cf4['some'](_0x168958=>_0x2e5acf['getFirstRange']()['isEqual'](_0x168958['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x9fc6f){const _0x1b12a4=Array['from'](_0x9fc6f),_0xe7913e=this['getSuggestions']({'skipNotAttached':!0x0}),_0xb4fbe0=_0xe7913e['filter'](_0x3d3219=>!_0x9fc6f['has'](_0x3d3219)),_0x518b8b=new Map(_0x1b12a4['map'](_0x37bf55=>[_0x37bf55,this['_suggestionFactory']['getSuggestionCallback'](_0x37bf55['type'],_0x37bf55['subType'],'join')])),_0x3fd7ba=new Map(_0xe7913e['map'](_0x167969=>[_0x167969,_0x167969['getRanges']()]));for(let _0x349891=0x0;_0x349891<_0x1b12a4['length'];_0x349891++){if(_0x14021c(this,_0x1b12a4[_0x349891],_0x1b12a4,_0x349891+0x1))return!0x0;}for(let _0x12e780=0x0;_0x12e780<_0x1b12a4['length'];_0x12e780++){if(_0x14021c(this,_0x1b12a4[_0x12e780],_0xb4fbe0,0x0))return!0x0;}return!0x1;function _0x14021c(_0x35105f,_0x3db83d,_0x5ca7b3,_0x5b96ed){for(let _0x42a5ea=_0x5b96ed;_0x42a5ea<_0x5ca7b3['length'];_0x42a5ea++){const _0x567963=_0x5ca7b3[_0x42a5ea];if(_0x567963['type']!==_0x3db83d['type']||_0x567963['author']['id']!==_0x3db83d['author']['id']||_0x567963['subType']!==_0x3db83d['subType'])continue;if(!Pt(_0x3db83d,_0x567963,['groupId']))continue;if('attribute'==_0x3db83d['type']&&_0x3db83d['data']['oldValue']!=_0x567963['data']['oldValue'])continue;if('attribute'==_0x3db83d['type']&&_0x35105f['_isBlockAttribute'](_0x3db83d['data']['key']))continue;if('formatBlock'==_0x3db83d['type']){const _0x36c86e=_0x35105f['editor']['model'],_0x42266e=_0x3db83d['getContainedElement']();if(_0x42266e&&(_0x36c86e['schema']['isObject'](_0x42266e)||_0x36c86e['schema']['isLimit'](_0x42266e)))continue;}const _0x149717=_0x518b8b['get'](_0x3db83d),_0xa9a3b4=_0x3fd7ba['get'](_0x3db83d),_0x20ea57=_0x3fd7ba['get'](_0x567963),_0x5dffcc=_0x3db83d['commentThread']&&_0x3db83d['commentThread']['length'],_0x117eba=_0x567963['commentThread']&&_0x567963['commentThread']['length'];if(!_0x5dffcc&&_0x149717(_0x20ea57,_0xa9a3b4))return _0x35105f['_joinSuggestions'](_0x567963,_0x3db83d),_0x3fd7ba['delete'](_0x3db83d),!0x0;if(!_0x117eba&&_0x149717(_0xa9a3b4,_0x20ea57))return _0x35105f['_joinSuggestions'](_0x3db83d,_0x567963),_0x3fd7ba['delete'](_0x567963),!0x0;}return!0x1;}}['_joinSuggestions'](_0x20bf8c,_0x5b3ec1){if(_0x20bf8c['isMultiRange']){for(const _0xf459ad of _0x5b3ec1['getRanges']())_0x20bf8c['addRange'](_0xf459ad);}else{const _0x580c69=_0x5b3ec1['getFirstRange']()['end'];this['_setSuggestionRange'](_0x20bf8c,this['_model']['createRange'](_0x20bf8c['getFirstRange']()['start'],_0x580c69));}_0x5b3ec1['removeMarkers']();}['_getMarkerAnnouncementText'](_0x795cec,_0x24d6b7){const _0xd16660=_0x795cec['startsWith']('format')||_0x795cec['startsWith']('attribute')?'FORMATTING':_0x795cec['toUpperCase']();return o(this['editor']['locale'],_0x24d6b7+'_'+_0xd16660+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x36f1aa=this['editor'];if(!_0x36f1aa['ui'])return;const {ariaLiveAnnouncer:_0x5c909f}=_0x36f1aa['ui'];_0x1383be(this['_model'],({left:_0x16c45b,entered:_0x2ed38d})=>{for(const _0x465f4c of _0x16c45b){const {group:_0x28fea3,type:_0x587cce}=this['_splitMarkerName'](_0x465f4c['name']);if('suggestion'===_0x28fea3){_0x5c909f['announce'](this['_getMarkerAnnouncementText'](_0x587cce,'LEAVE'));break;}}for(const _0x2259d5 of _0x2ed38d){const {group:_0x3cd65e,type:_0x6b4aa}=this['_splitMarkerName'](_0x2259d5['name']);if('suggestion'===_0x3cd65e){_0x5c909f['announce'](this['_getMarkerAnnouncementText'](_0x6b4aa,'ENTER'));break;}}});}['_processAttributeChanges'](_0x1007c7){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4fa152=this['editor'],_0x2a4984=_0x4fa152['model']['document']['differ']['getChanges']();if(0x0==_0x2a4984['length'])return!0x1;const _0x3d402b=[],_0x435135=_0x2a4984['filter'](_0x5f06e6=>'attribute'==_0x5f06e6['type']),_0x53bd34=_0x2a4984['filter'](_0x3d1987=>'insert'==_0x3d1987['type']&&'$text'!=_0x3d1987['name']),_0x14efa4=_0x2a4984['filter'](_0x598ea4=>'remove'==_0x598ea4['type']&&'$text'!=_0x598ea4['name']);for(const _0x68b0ed of _0x435135)_0x3d402b['push']({'key':_0x68b0ed['attributeKey'],'newValue':_0x68b0ed['attributeNewValue'],'oldValue':_0x68b0ed['attributeOldValue'],'range':Ot(_0x68b0ed['range'],_0x4fa152['model'])});for(const _0x115c61 of _0x53bd34){const _0xd25157=_0x14efa4['find'](_0x1fa72f=>_0x1fa72f['position']['isEqual'](_0x115c61['position']));_0xd25157&&_0x3d402b['push']({'key':m,'newValue':_0x115c61['name'],'oldValue':_0xd25157['name'],'range':_0x4fa152['model']['createRangeOn'](_0x115c61['position']['nodeAfter'])});}return 0x0!=_0x3d402b['length']&&this['_reduceExistingSuggestions'](_0x1007c7,_0x3d402b);}['_processAttributeSuggestions'](_0x33f91d){let _0x3be35e=!0x1;const _0x199f75=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4ade90=>_0x4ade90['data']['newRange']&&_0x4ade90['name']['startsWith']('suggestion:attribute:'));for(const _0x3f3872 of _0x199f75){const {subType:_0x295c4c,id:_0x8e7e1c}=this['_splitMarkerName'](_0x3f3872['name']),_0x472686=_0x295c4c['split']('|')[0x0];for(const _0x27a156 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x27a156['id']!=_0x8e7e1c&&'attribute'==_0x27a156['type']&&_0x27a156['data']&&_0x27a156['data']['key']==_0x472686&&_0x27a156['getFirstRange']()['isIntersecting'](_0x3f3872['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x27a156,_0x3f3872['data']['newRange'],_0x33f91d),_0x3be35e=!0x0);}return _0x3be35e;}['_recordAttributeChanges'](_0x417eed){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x417eed();}['_isRegisteredAttribute'](_0x1df38f){const _0x52d39e=this['_isBlockAttribute'](_0x1df38f),_0x2d30bb=this['_inlineAttributeKeys']['has'](_0x1df38f);return _0x52d39e||_0x2d30bb;}['_reduceExistingSuggestions'](_0x584baa,_0x337712){if(0x0==_0x337712['length'])return!0x1;let _0x9280da=!0x1;for(const _0x27a097 of _0x337712){const _0x298622=this['_findSuggestions'](_0x27a097['range'],'attribute')['filter'](_0x107f8a=>!_0x107f8a['meta']['isNextTo'])['map'](_0x81c8bd=>_0x81c8bd['suggestion']),_0x28172e=_0x3a596d({'newValue':_0x27a097['newValue']});_0x298622['filter'](_0x582122=>{const [_0x3be201,_0x9ca280]=_0x582122['subType']['split']('|');return _0x3be201==_0x27a097['key']&&_0x9ca280!=_0x28172e;})['forEach'](_0xafb28d=>{this['_reduceSuggestionAttributeRange'](_0xafb28d,_0x27a097['range'],_0x584baa),_0x9280da=!0x0;});}return _0x9280da;}['_reduceSuggestionAttributeRange'](_0x4e6214,_0x5b1560,_0x482123){const _0x1dfdc7=_0x4e6214['getFirstRange']()['getDifference'](_0x5b1560);0x0!==_0x1dfdc7['length']?0x1!==_0x1dfdc7['length']?this['_breakSuggestionMarker'](_0x4e6214,_0x5b1560['start'],_0x5b1560['end']):this['_setSuggestionRange'](_0x4e6214,_0x1dfdc7[0x0]):_0x482123['removeMarker'](_0x4e6214['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x492f47){this['_editor']=_0x492f47,this['_model']=_0x492f47['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xe4a7f4,_0x5edd6b,_0x50d8e0,_0x252e59,_0x5b4aea,_0x74355f){return new u(this['_model'],{'type':_0xe4a7f4,'subType':_0x5edd6b,'id':_0x50d8e0,'author':_0x252e59,'creator':_0x252e59,'attributes':_0x5b4aea,'onAttributesChange':_0x74355f,'onAccept':(..._0x520b56)=>this['getSuggestionCallback'](_0xe4a7f4,_0x5edd6b,'accept')(..._0x520b56),'onDiscard':(..._0x392af3)=>this['getSuggestionCallback'](_0xe4a7f4,_0x5edd6b,'discard')(..._0x392af3)});}['registerCustomCallback'](_0x1d2bd9,_0x20ce7b,_0x2658bd,_0x54de47){const _0x17b890=_0x1d2bd9+':'+_0x20ce7b+':'+_0x2658bd;this['_customCallbacks']['set'](_0x17b890,_0x54de47);}['getSuggestionCallback'](_0x346ff6,_0x4e08ae,_0x23eafc){const _0x2e093d=_0x346ff6+':'+_0x4e08ae+':'+_0x23eafc;return this['_customCallbacks']['get'](_0x2e093d)||this['_defaultCallbacks']['get'](_0x346ff6+':'+_0x23eafc);}['_registerDefaultCallbacks'](){const _0x2fd7dd=()=>!0x1,_0xe6b33c=_0x41e000=>{_0x41e000['sort']((_0x14646b,_0x482e4b)=>_0x14646b['start']['isBefore'](_0x482e4b['start'])?0x1:-0x1),this['_model']['change'](_0x2537ae=>{for(const _0x23337d of _0x41e000){let _0x201f46;_0x201f46=_0x23337d['end']['isAtEnd']&&_0x23337d['end']['parent']==_0x23337d['start']['nodeAfter']?_0x2537ae['createSelection'](_0x23337d['start']['nodeAfter'],'on'):_0x2537ae['createSelection'](_0x23337d),this['_model']['deleteContent'](_0x201f46,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1e4fa6=(_0x33c649,_0x33e22a)=>{_0x33e22a&&this['_model']['change'](_0x25d078=>{const {commandName:_0x464dc2,commandParams:_0x39a14b=[]}=_0x33e22a,_0x39036d=_0x33c649['map'](_0x312d0d=>(Tt(_0x312d0d)&&(_0x312d0d=this['_model']['createRange'](_0x312d0d['end'])),_0x312d0d))['filter'](_0x158458=>'$graveyard'!==_0x158458['root']['rootName']);if(_0x39036d['length']<0x1)return;const _0x597053=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1becf2=>_0x533200['fromRange'](_0x1becf2));_0x25d078['setSelection'](_0x39036d);for(const _0x4ab5ef of this['_editor']['commands']['commands']())_0x4ab5ef['refresh']();_0x39a14b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x464dc2,..._0x39a14b);const _0x4a495e=_0x597053['filter'](_0x207652=>'$graveyard'!=_0x207652['root']['rootName']);_0x4a495e['length']>0x0&&_0x25d078['setSelection'](_0x4a495e);for(const _0x2d4651 of _0x597053)_0x2d4651['detach']();});},_0x227c00=(_0x3c42a9,_0x221710)=>0x1==_0x3c42a9['length']&&0x1==_0x221710['length']&&_0x3c42a9[0x0]['end']['isEqual'](_0x221710[0x0]['start']),_0x29bd4f=(_0x5585a7,_0x586f69,_0x456f48,_0x2c6cb8)=>Ft(_0x5585a7,_0x586f69,_0x456f48,_0x2c6cb8,this['_model'])?[_0x5585a7,_0x586f69]:Ft(_0x586f69,_0x5585a7,_0x2c6cb8,_0x456f48,this['_model'])?[_0x586f69,_0x5585a7]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2fd7dd),this['_defaultCallbacks']['set']('insertion:discard',_0xe6b33c),this['_defaultCallbacks']['set']('insertion:join',_0x227c00),this['_defaultCallbacks']['set']('insertion:chain',_0x29bd4f),this['_defaultCallbacks']['set']('deletion:accept',_0xe6b33c),this['_defaultCallbacks']['set']('deletion:discard',_0x2fd7dd),this['_defaultCallbacks']['set']('deletion:join',_0x227c00),this['_defaultCallbacks']['set']('deletion:chain',_0x29bd4f),this['_defaultCallbacks']['set']('formatInline:accept',_0x1e4fa6),this['_defaultCallbacks']['set']('formatInline:discard',_0x2fd7dd),this['_defaultCallbacks']['set']('formatInline:join',_0x227c00),this['_defaultCallbacks']['set']('formatInline:chain',_0x2fd7dd),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1e4fa6),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2fd7dd),this['_defaultCallbacks']['set']('formatBlock:join',_0x227c00),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2fd7dd),this['_defaultCallbacks']['set']('attribute:accept',_0x2fd7dd),this['_defaultCallbacks']['set']('attribute:discard',(_0x1c13e9,_0x59e371)=>{if(!_0x59e371)return;const _0x33d047=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2aa6b0=>{if(_0x59e371['key']==m)for(const _0x395267 of _0x1c13e9){const _0x8dfbcd=_0x395267['start']['nodeAfter'],_0x3fe9cd=_0x59e371['oldValue'];_0x2aa6b0['rename'](_0x8dfbcd,_0x3fe9cd);}else{if(_0x33d047['_isBlockAttribute'](_0x59e371['key'])){for(const _0x44b479 of _0x1c13e9)void 0x0!==_0x59e371['oldValue']?_0x2aa6b0['setAttribute'](_0x59e371['key'],_0x59e371['oldValue'],_0x44b479['start']['nodeAfter']):_0x2aa6b0['removeAttribute'](_0x59e371['key'],_0x44b479['start']['nodeAfter']);}else{for(const _0xda8fe of _0x1c13e9)_0x59e371['oldValue']?_0x2aa6b0['setAttribute'](_0x59e371['key'],_0x59e371['oldValue'],_0xda8fe):_0x2aa6b0['removeAttribute'](_0x59e371['key'],_0xda8fe);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x227c00);}}function Rt(_0x43d602,_0x3a89f0,_0x499946){for(const _0x51aec0 of _0x3a89f0['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x51aec0['root']==_0x51aec0)return!0x1;if(!_0x499946['containsItem'](_0x51aec0))return!0x1;if(_0x43d602['isObject'](_0x51aec0)||_0x43d602['isLimit'](_0x51aec0))return!0x0;}return!0x1;}function Tt(_0x5541ad){return _0x5541ad['end']['parent']==_0x5541ad['start']['nodeAfter']&&_0x5541ad['end']['isAtStart'];}function Et(_0x3d22ff,_0x5922f0,_0x172c2c,_0x489742){const _0x3eee20=_0x7bb37b=>!_0x7bb37b['item']['is']('$textProxy')&&!_0x489742['isObject'](_0x7bb37b['item']),_0x128bf7=_0x3d22ff['start']['getLastMatchingPosition'](_0x3eee20),_0x2587b9=_0x3d22ff['end']['getLastMatchingPosition'](_0x3eee20,{'direction':'backward'});return(!_0x3d22ff['start']['isEqual'](_0x128bf7)||!_0x3d22ff['end']['isEqual'](_0x2587b9))&&(_0x128bf7['isBefore'](_0x2587b9)?_0x172c2c['updateMarker'](_0x5922f0,{'range':_0x172c2c['createRange'](_0x128bf7,_0x2587b9)}):_0x172c2c['removeMarker'](_0x5922f0),!0x0);}function Vt(_0x1c4d77){return _0x3a596d(_0x1c4d77);}function Ut(_0x2fff3e){const _0x4e4fc5=_0x2fff3e['start']['nodeAfter'];return _0x4e4fc5&&_0x4e4fc5['is']('element');}function Ot(_0x72e945,_0x5a806c){return null==_0x72e945['end']['nodeBefore']&&_0x72e945['end']['parent']==_0x72e945['start']['nodeAfter']?Gt(_0x72e945['start']['nodeAfter'],_0x5a806c):_0x72e945;}function Gt(_0x4cf754,_0x349c53){const _0x5db517=_0x349c53['schema']['isObject'](_0x4cf754)||_0x349c53['schema']['isSelectable'](_0x4cf754);return _0x349c53['createRange'](_0x349c53['createPositionAt'](_0x4cf754,'before'),_0x5db517?_0x349c53['createPositionAfter'](_0x4cf754):_0x349c53['createPositionAt'](_0x4cf754,'end'));}function Ft(_0x15d7d3,_0x342387,_0xe72505,_0x3dd6fa,_0x2746c5){if(!Pt(_0x15d7d3,_0x342387))return!0x1;if(_0xe72505['end']['isEqual'](_0x3dd6fa['start']))return!0x0;if(_0x15d7d3['type']!=_0x342387['type'])return!0x1;if(!_0xe72505['end']['isTouching'](_0x3dd6fa['start']))return!0x1;const _0x5e828b=_0x2746c5['createRange'](_0xe72505['end'],_0x3dd6fa['start'])['getWalker']();for(const _0x44f9e2 of _0x5e828b)if(['elementStart','elementEnd']['includes'](_0x44f9e2['type'])&&_0x2746c5['schema']['isLimit'](_0x44f9e2['item']))return!0x1;return!0x0;}function Pt(_0x310581,_0x5d0419,_0xe467ec=[]){return!(!_0x310581['_isDataLoaded']||!_0x5d0419['_isDataLoaded'])&&_0x215c3b(Bt(_0x310581['attributes'],_0xe467ec),Bt(_0x5d0419['attributes'],_0xe467ec));}function Lt(_0x4658ea,_0x312a0d){const _0x4ea67a=Ht(_0x4658ea['attributes']),_0x29da7b=Ht(_0x312a0d);if(!_0x4658ea['_isDataLoaded'])return!0x1;for(const _0x38b08a of Object['keys'](_0x29da7b))if(!_0x215c3b(_0x4ea67a[_0x38b08a],_0x29da7b[_0x38b08a]))return!0x1;return!0x0;}function Ht(_0x23ce63){const _0x2c3709=Object['assign']({},_0x23ce63);return delete _0x2c3709['skipNestingCheck'],delete _0x2c3709['tablePasteChainId'],_0x2c3709;}class oe extends/* #__PURE__ -- @preserve */
25
- _0x2e2300(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x32da1b,_0x2de448,_0x150ae4,_0x166de5){super(),this['model']=_0x2de448,this['view']=_0x150ae4,this['commentThreadController']=_0x166de5,this['_editor']=_0x32da1b,this['_acceptCommand']=_0x32da1b['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x32da1b['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5af720,_0x463fbd)=>_0x5af720||_0x463fbd),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x54f8c3=>_0x54f8c3&&this['_editor']['model']['canEditAt'](_0x2de448['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x43d209=>_0x43d209&&this['_editor']['model']['canEditAt'](_0x2de448['getRanges']())),this['_pendingAction']=null,_0x150ae4['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x150ae4,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x150ae4,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x150ae4,'change:isDirty',()=>{_0x150ae4['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x13a34b=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x13a34b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x579618{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x481d16,_0x492968,_0x383304,_0x1448ee){super(_0x481d16),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x492968['authoredAt']),this['bind']('authoredAt')['to'](_0x492968),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x492968,this['_localUser']=_0x383304,this['_config']=_0x1448ee,_0x1448ee['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x536973}=this['_config'];this['commentsListView']=new _0x536973(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',_0x596b68=>_0x596b68+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x269cbc,_0x3bac03)=>_0x269cbc||!!_0x3bac03);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1c53f0}=this['_config'],_0xbe0e31=new _0x1c53f0(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4f0c56=_0xbe0e31['commentInputView'];return _0xbe0e31['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4f0c56,'value',(_0x4dec0b,_0x570983,_0x2e65fd)=>!!_0x2e65fd||_0x4dec0b&&!_0x570983),_0x4f0c56['on']('submit',(_0x289a48,_0x3c69cd)=>{this['fire']('addComment',_0x3c69cd),_0x4f0c56['editor']['setData']('');}),_0x4f0c56['on']('cancel',()=>this['focus']()),_0x4f0c56['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xbe0e31;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x45ff5b,_0x175f7c,_0x7b89ca,_0xc7681a){super(_0x45ff5b,_0x175f7c,_0x7b89ca,_0xc7681a),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xaa76ea=>_0xaa76ea&&_0xaa76ea[0x0]?_0xaa76ea[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xa9e683,_0xc9e728)=>{let _0x185828='';for(const _0x4c59b4 of _0xa9e683)_0x185828+='<p>'+ds(_0x4c59b4['content'],_0x4c59b4['color'])+'</p>';return _0xc9e728?_0x185828:_0x2aedfd(_0x185828,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x45ff5b,'Accept\x20suggestion'),_0xba276b['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x45ff5b,'Discard\x20suggestion'),_0xba276b['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x11ad95(_0x45ff5b,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x4e8afe=this['bindTemplate'],_0x4cc765=[{'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':_0x4e8afe['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4e8afe['to']('authoredAt',_0x43ce55=>this['_config']['formatDateTime'](_0x43ce55))}]}]},{'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']&&_0x4cc765['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x1d3c1c={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x4e8afe['if']('isActive','ck-suggestion-wrapper--active'),_0x4e8afe['to']('type',_0x17b2ae=>'ck-suggestion-'+_0x17b2ae),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':_0x4cc765}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x1d3c1c['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)),_0x1d3c1c;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0xb3bea8,_0x36f50a,_0x331f94)=>{this['_descriptionElement']['innerHTML']=_0x331f94;});}['_createButton'](_0x7cfdc5,_0x551285,_0x15ca0a,_0x297613,_0xd14a3d){const _0x1baca3=new _0x216667(this['locale']);return _0x1baca3['set']({'label':_0x7cfdc5,'icon':_0x551285,'tooltip':!0x0,'tooltipPosition':_0xd14a3d}),_0x1baca3['extendTemplate']({'attributes':{'class':_0x15ca0a}}),_0x1baca3['on']('execute',()=>{this['fire'](_0x297613,this['_model']['id']);}),_0x1baca3;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}function ds(_0x3b6dde,_0xba7474){let _0x164552='';return _0x164552+=_0x3b6dde['split']('*')['map']((_0x3921c7,_0x5366f6)=>_0x5366f6%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x3921c7)+'</span>':us(_0x3921c7))['join'](''),_0xba7474&&(_0x164552+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xba7474['value']+'\x22\x20title=\x22'+_0xba7474['title']+'\x22></span>'),_0x164552;}function us(_0x520548){const _0xe72f14=document['createElement']('span');return _0xe72f14['innerText']=_0x520548,_0xe72f14['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 _0x463102{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x2074d8,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x343750){super(_0x343750),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x153860=this['editor']['config'];_0x153860['define']('trackChanges.SuggestionThreadView',ne),_0x153860['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x153860['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x418a96,_0xe4da9a){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x48e4b7,_0x16b971]of this['_handleControllerBuffer']){const _0x319b8a=this['_suggestionToController']['has'](_0x48e4b7);_0x319b8a||_0x16b971?_0x319b8a&&_0x16b971&&this['_destroyController'](_0x48e4b7):this['_initializeController'](_0x48e4b7);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x418a96,_0xe4da9a);}['init'](){const _0x2d760a=this['editor'],_0x139166=_0x2d760a['plugins']['get']('TrackChangesEditing'),_0x4391c5=_0x2d760a['plugins']['get']('Annotations'),_0x4f98c4=_0x2d760a['plugins']['get']('EditorAnnotations'),_0x284f43=_0x2d760a['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4f98c4['addSourceCollector'](()=>{const _0x389f57=[];for(const [_0x1f3fe8,_0x5385fa]of Array['from'](this['_suggestionToController'])){const _0xef4eec=_0x1f3fe8['getAllAdjacentSuggestions'](),_0x49e54d=[];for(const _0x17c11f of _0xef4eec){if(!_0x17c11f['isInContent'])continue;if(_0x17c11f['isMultiRange']){_0x49e54d['push'](..._0x17c11f['getRanges']());continue;}const _0x3d04b=_0x17c11f['getFirstRange']();if(_0x49e54d['length']>0x0){const _0x41e875=_0x49e54d[0x0]['getJoined'](_0x3d04b);if(_0x41e875){_0x49e54d[0x0]=_0x41e875;continue;}}_0x49e54d['push'](_0x3d04b);}_0x389f57['push']([_0x5385fa['view'],_0x49e54d]);}return _0x389f57;}),this['listenTo'](_0x139166,'suggestionLoaded',(_0xfa300d,_0x3b653c)=>{this['listenTo'](_0x3b653c,'change:previous',(_0x39e260,_0x5f0518,_0x13d001,_0x4b9fa9)=>{_0x3b653c['isInContent']&&(null==_0x13d001?(this['_updateController'](_0x4b9fa9['head']),this['_handleSuggestionControllerDelayed'](_0x3b653c,!0x1)):(this['_updateController'](_0x13d001['head']),null==_0x4b9fa9&&this['_handleSuggestionControllerDelayed'](_0x3b653c,!0x0)));}),null!==_0x3b653c['previous']?this['_updateController'](_0x3b653c['head']):this['_handleSuggestionControllerDelayed'](_0x3b653c,!0x1);}),this['listenTo'](_0x139166,'suggestionUnloaded',(_0x3ebddc,_0x2c7a7b,_0x823697)=>{this['stopListening'](_0x2c7a7b,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2c7a7b),this['_suggestionToController']['has'](_0x2c7a7b)&&this['_destroyController'](_0x2c7a7b),_0x823697&&this['_updateController'](_0x823697['head']);}),this['listenTo'](_0x139166,'suggestionChanged',(_0x10f6a1,_0x3fe642)=>{this['_updateController'](_0x3fe642);}),this['listenTo'](_0x4391c5,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x284f43,'addComment',(_0x440762,{threadId:_0x3e0afe,isFromAdapter:_0x44f9c4})=>{if(_0x44f9c4||!_0x139166['hasSuggestion'](_0x3e0afe))return;const _0x493c4b=_0x139166['getSuggestion'](_0x3e0afe);this['_suggestionToController']['get'](_0x493c4b)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x243526=this['editor']['plugins']['get']('Annotations'),_0x2a55e1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x268b48=Array['from'](_0x243526['activeAnnotations'],_0x2b86b0=>_0x2b86b0['innerView'])['filter'](_0x5f310f=>this['_viewToController']['has'](_0x5f310f)),_0x5effef=[];for(const _0x5033ce of _0x268b48){const _0x5e65cd=this['_viewToController']['get'](_0x5033ce)['model']['getAllAdjacentSuggestions']();_0x5effef['push'](..._0x5e65cd['reduce']((_0x24080f,_0x5b6ebb)=>[..._0x24080f,..._0x5b6ebb['getMarkerNames']()],[]));}_0x2a55e1['activeMarkers']=_0x5effef;}['_addUIComponentsToFactory'](){const _0x1bb78f=this['editor'],_0x24843d=_0x1bb78f['locale'],_0x255e18=o(_0x24843d,'Track\x20changes'),_0x2216f7=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x255e18,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x24843d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x24843d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x24843d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x24843d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x393519 of _0x2216f7)if(ae(_0x393519)){const _0x26e1c3=_0x1bb78f['commands']['get'](_0x393519['model']['commandName']);_0x393519['model']['bind']('isOn','isEnabled')['to'](_0x26e1c3,'value','isEnabled');}_0x1bb78f['ui']['componentFactory']['add']('trackChanges',_0x283bbd=>this['_createToolbarButton'](_0x283bbd,_0x2216f7,_0x255e18)),_0x1bb78f['ui']['componentFactory']['add']('menuBar:trackChanges',_0x98e403=>this['_createMenuBarMenu'](_0x98e403,_0x2216f7,_0x255e18));}['_createToolbarButton'](_0x14e7b5,_0x35e767,_0x56ead8){const _0x2898c2=zt(_0x14e7b5,Zt),_0x527206=this['editor']['commands']['get']('trackChanges');_0x2898c2['buttonView']['set']({'tooltip':_0x56ead8,'label':_0x56ead8,'icon':ie}),_0x2898c2['buttonView']['bind']('isOn')['to'](_0x527206,'value'),_0x2898c2['buttonView']['on']('execute',()=>{_0x527206['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x2898c2,_0x35e767,{'role':'menu'});const _0x28b2d=[];for(const _0x430cc5 of _0x35e767)ae(_0x430cc5)&&_0x28b2d['push'](this['editor']['commands']['get'](_0x430cc5['model']['commandName']));const _0x2a6f97=_0x2898c2['buttonView'];return _0x2a6f97['actionView']['unbind']('isEnabled'),_0x2a6f97['arrowView']['unbind']('isEnabled'),_0x2a6f97['actionView']['bind']('isEnabled')['to'](_0x527206,'isEnabled'),_0x2a6f97['arrowView']['bind']('isEnabled')['toMany'](_0x28b2d,'isEnabled',(..._0xfc46e2)=>_0xfc46e2['some'](_0x184602=>_0x184602)),_0x2898c2['on']('execute',_0x1d85fa=>{this['editor']['execute'](_0x1d85fa['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2898c2;}['_createMenuBarMenu'](_0x114ec4,_0x4fa103,_0x3f6f29){const _0x373ee8=new Kt(_0x114ec4),_0x12e952=this['editor']['commands']['get']('trackChanges');_0x373ee8['buttonView']['set']({'label':_0x3f6f29,'icon':ie});const _0x3cb8f8=new Qt(_0x114ec4);for(const _0x537337 of _0x4fa103){if('separator'==_0x537337['type']){_0x3cb8f8['items']['add'](new Jt(_0x114ec4));continue;}const _0x4afb26=new Xt(_0x114ec4,_0x373ee8),_0x4837f2=new Yt(_0x114ec4),_0x2e82e8=_0x537337['model'];_0x4837f2['bind'](...Object['keys'](_0x2e82e8))['to'](_0x2e82e8),_0x4837f2['delegate']('execute')['to'](_0x373ee8),_0x4837f2['on']('execute',()=>{this['editor']['execute'](_0x2e82e8['commandName']),this['editor']['editing']['view']['focus']();}),_0x4afb26['children']['add'](_0x4837f2),_0x3cb8f8['items']['add'](_0x4afb26);}return _0x373ee8['bind']('isEnabled')['to'](_0x12e952,'isEnabled'),_0x373ee8['panelView']['children']['add'](_0x3cb8f8),_0x373ee8;}['_initializeController'](_0x58fc8a){const _0x126c06=this['editor'],_0xacc0d7=_0x126c06['config'],_0x4e5ae7=_0x126c06['plugins']['get']('Annotations'),_0x342280=_0x126c06['plugins']['get']('CommentsRepository'),_0x33230a=_0x126c06['plugins']['get']('EditorAnnotations'),_0x20cebd=_0x126c06['plugins']['get'](_0x2074d8)['me'],_0x561328=_0xacc0d7['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x2130d5,CommentThreadInputView:_0x45aa1f}=_0x126c06['plugins']['get']('CommentsUI');let _0x437c33,_0x2e5460;this['_annotationViews']['has'](_0x58fc8a['id'])?(_0x2e5460=this['_annotationViews']['get'](_0x58fc8a['id']),_0x437c33=_0x2e5460['mainView']):(_0x437c33=new _0x561328(_0x126c06['locale'],_0x58fc8a,_0x20cebd,{'disableComments':this['_disableComments'],'editorConfig':_0xacc0d7['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0xacc0d7['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xacc0d7['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xacc0d7['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x293712(_0xacc0d7['get']('locale')),'CommentView':_0xacc0d7['get']('comments')['CommentView'],'CommentsListView':_0x2130d5,'CommentThreadInputView':_0x45aa1f}),_0x437c33['acceptButton']['on']('execute',()=>{_0x126c06['editing']['view']['focus']();}),_0x437c33['discardButton']['on']('execute',()=>{_0x126c06['editing']['view']['focus']();}),_0x2e5460=_0x4e5ae7['createAnnotationView'](this['editor']['locale'],_0x437c33),_0x2e5460['bind']('isDirty')['to'](_0x437c33,'isDirty'),_0x2e5460['bind']('length')['to'](_0x437c33),_0x2e5460['bind']('type')['to'](_0x437c33,'type',_0x4111ea=>'suggestion-'+_0x4111ea),this['_annotationViews']['set'](_0x58fc8a['id'],_0x2e5460));const _0x49c78e=_0x342280['createCommentThreadController'](_0x58fc8a['commentThread'],_0x437c33),_0x18da13=new oe(_0x126c06,_0x58fc8a,_0x437c33,_0x49c78e),_0x1d6f16=_0x58fc8a['getAllAdjacentSuggestions']()['filter'](_0x1ddfb0=>_0x1ddfb0['isInContent']);_0x437c33['descriptionParts']=_0x126c06['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1d6f16),this['_suggestionToController']['set'](_0x58fc8a,_0x18da13),this['_viewToController']['set'](_0x437c33,_0x18da13);const _0x24f72d=_0x4e5ae7['createAnnotation']({'view':_0x2e5460,'target':()=>{const _0x2d364c=[],_0x6f7c25=_0x58fc8a['getAllAdjacentSuggestions']()['filter'](_0x28965e=>_0x28965e['isInContent']);for(const _0x35ce74 of _0x6f7c25)_0x2d364c['push'](..._0x35ce74['getMarkers']());return _0x31b799(_0x126c06['editing'],_0x2d364c);},'type':()=>'suggestion-'+_0x18da13['view']['type']});_0x342280['_bindAnnotationToEditors'](_0x437c33,_0x24f72d),_0x4e5ae7['add'](_0x24f72d),_0x33230a['registerAnnotation'](_0x24f72d);}['_destroyController'](_0x4b82fc){const _0x376109=this['editor']['plugins']['get']('CommentsRepository'),_0x4554db=this['editor']['plugins']['get']('Annotations'),_0x9ddc21=this['_suggestionToController']['get'](_0x4b82fc),_0x14793a=_0x9ddc21['view'],_0x6a11cf=_0x4554db['getByInnerView'](_0x14793a);_0x376109['_unbindEditors'](_0x14793a),_0x6a11cf&&_0x4554db['remove'](_0x6a11cf),this['_suggestionToController']['delete'](_0x4b82fc),this['_viewToController']['delete'](_0x14793a),_0x9ddc21['destroy']();}['_updateController'](_0x462586){if(!_0x462586['isInContent']||!this['_suggestionToController']['has'](_0x462586))return;const _0x1f3f4f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31e114=this['_suggestionToController']['get'](_0x462586),_0x3fd922=_0x462586['getAllAdjacentSuggestions']();_0x31e114['view']['descriptionParts']=_0x1f3f4f['descriptionFactory']['getDescriptions'](_0x3fd922);}['destroy'](){for(const _0x4980ff of this['_suggestionToController']['keys']())this['_destroyController'](_0x4980ff);for(const _0x50aabe of this['_annotationViews']['values']())_0x50aabe['mainView']['destroy']();super['destroy']();}}function ae(_0x2a3f33){return'model'in _0x2a3f33;}class k extends _0x463102{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x4e5b46){this['editor']['plugins']['get'](p)['adapter']=_0x4e5b46;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3e6000){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3e6000);}['getSuggestions']({skipNotAttached:_0x1d2aca=!0x1,toJSON:_0x1795b0=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1d2aca,'toJSON':_0x1795b0});}['getSuggestion'](_0xba93d4){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xba93d4);}}const T=['Pagination'];class P extends _0x463102{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x3cce53=this['editor'];if(_0x3cce53['config']['define']('trackChangesData.editorCreator',_0xd9608f=>{const _0x34ae31=_0x3cce53['model']['document']['getRootNames']()['reduce']((_0x576003,_0x3eec7a)=>(_0x576003[_0x3eec7a]='',_0x576003),{});return _0x3cce53['constructor']['create'](_0x34ae31,_0xd9608f);}),'function'!=typeof _0x3cce53['config']['get']('trackChangesData')['editorCreator'])throw new _0x3085e6('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x79cfe2){return N(this['editor'],!0x0,_0x79cfe2);}['getDataWithDiscardedSuggestions'](_0x27e6ff){return N(this['editor'],!0x1,_0x27e6ff);}}class D extends _0x463102{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x525319){super(_0x525319),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x370939){return void 0x0!==_0x370939['getRootsAttributes'];}async function N(_0x4a25b2,_0x4936bc,_0x311b7a){const _0x403aa3=_0x59af6b(_0x4a25b2,T);_0x403aa3['plugins']['push'](p,D),_0x403aa3['rootsAttributes']=v(_0x4a25b2)?_0x4a25b2['getRootsAttributes']():void 0x0;const _0x551b73=document['createDocumentFragment'](),_0x224b96=_0x4a25b2['config']['get']('trackChangesData')['editorCreator'],_0x3aaa70=await _0x224b96(_0x403aa3,()=>function(_0x51eb39){const _0x262c21=document['createElement']('div');return _0x51eb39['appendChild'](_0x262c21),_0x262c21;}(_0x551b73));!function(_0x4eb0aa,_0x496759){const _0x4a5994=_0x4eb0aa['model']['document']['getRootNames']()['reduce']((_0xaedf52,_0x528c01)=>(_0xaedf52[_0x528c01]=_0x4eb0aa['data']['get']({'rootName':_0x528c01}),_0xaedf52),{}),_0x431af3=_0x4eb0aa['plugins']['get']('Users')['users']['map'](_0x566712=>({'id':_0x566712['id'],'name':_0x566712['name']})),_0x554368=_0x4eb0aa['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4e82d2=_0x4eb0aa['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3d9689=_0x496759['plugins']['get']('Users'),_0x22d07b=_0x496759['plugins']['get']('TrackChangesEditing'),_0x2da02a=_0x496759['plugins']['get']('CommentsRepository');for(const _0x7e92cf of _0x431af3)_0x3d9689['getUser'](_0x7e92cf['id'])||_0x3d9689['addUser'](_0x7e92cf);_0x3d9689['me']||_0x3d9689['useAnonymousUser']();for(const _0x2b912c of _0x4e82d2)_0x2da02a['addCommentThread'](_0x2b912c);for(const _0x5a6b18 of _0x554368)_0x22d07b['addSuggestionData'](_0x5a6b18);_0x496759['data']['set'](_0x4a5994);}(_0x4a25b2,_0x3aaa70),_0x3aaa70['execute'](_0x4936bc?'acceptAllSuggestions':'discardAllSuggestions');const _0x589812=v(_0x3aaa70)?_0x3aaa70['getFullData'](_0x311b7a):_0x3aaa70['data']['get'](_0x311b7a);return await _0x3aaa70['destroy'](),_0x589812;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x4d360f,PendingActions as _0x5bbcf2,icons as _0x3ddd08}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3f3ca6,ObservableMixin as _0x2a7513,uid as _0x3cefaa,insertToPriorityArray as _0x17f874,priorities as _0x36e7bf,logWarning as _0x244bdf,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x7e92f6,View as _0x21ef4a,ButtonView as _0x3ed1f5,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 _0x505173,hashObject as _0x433e2e,surroundingMarkersDetector as _0x176e49,trimHtml as _0x43c02e,UserView as _0x3317b7,getDateTimeFormatter as _0x474164,getAllMarkersDomElementsSorted as _0x36638a,sanitizeEditorConfig as _0x109f03}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x219298,LiveRange as _0x27f355,LivePosition as _0x5f2f62}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x39ca62,toWidget as _0x34fdae}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0xbf9a44,set as _0x1a0b59,isEqual as _0x5cd547,unset as _0x407254,omit as Bt}from'lodash-es';import{Delete as _0x1994ec,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x417486,ShiftEnter as _0x177a10}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x108dd3,_0x1c7edf){super(_0x108dd3),this['_enabledCommands']=_0x1c7edf,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x736046 of this['editor']['commands']['commands']())_0x736046['affectsData']&&!this['_enabledCommands']['has'](_0x736046)&&_0x736046['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4f99b6 of this['editor']['commands']['commands']())_0x4f99b6['affectsData']&&!this['_enabledCommands']['has'](_0x4f99b6)&&_0x4f99b6['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x28587e,_0x1b5d66){super(_0x28587e),this['_suggestions']=_0x1b5d66,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xf06268){const _0x2386f5=this['_suggestions']['get'](_0xf06268);if(!_0x2386f5)throw new _0x3f3ca6('track-changes-accept-suggestion-not-found',this);const _0x33a9c4=_0x2386f5['getRanges']();this['editor']['model']['canEditAt'](_0x33a9c4)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2386f5);}}class B extends ts{['_suggestions'];constructor(_0xf2a546,_0x4a78aa){super(_0xf2a546),this['_suggestions']=_0x4a78aa,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x475f0b){const _0xf12e04=this['_suggestions']['get'](_0x475f0b);if(!_0xf12e04)throw new _0x3f3ca6('track-changes-discard-suggestion-not-found',this);const _0x562602=_0xf12e04['getRanges']();this['editor']['model']['canEditAt'](_0x562602)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xf12e04);}}function ss(_0x4eb086){return _0x4eb086['sort']((_0x34adc7,_0x254720)=>'deletion'==_0x34adc7['type']&&'deletion'!=_0x254720['type']?-0x1:'deletion'!=_0x34adc7['type']&&'deletion'==_0x254720['type']?0x1:0x0);}function to(_0x3e699a,_0x40796d){let _0x50cc3e,_0x11184a=0x0;const _0x435458=[],_0x3d0695=_0x40796d['schema'];for(;_0x11184a<_0x3e699a['length'];){const _0x2501c7=_0x3e699a[_0x11184a],_0x3fb6ce=_0x3e699a[_0x11184a+0x1];_0x50cc3e||(_0x50cc3e=_0x40796d['createPositionBefore'](_0x2501c7)),co(_0x40796d,_0x2501c7,_0x3fb6ce)||(_0x435458['push'](_0x40796d['createRange'](_0x50cc3e,_0x3d0695['isObject'](_0x2501c7)?_0x40796d['createPositionAfter'](_0x2501c7):_0x40796d['createPositionAt'](_0x2501c7,'end'))),_0x50cc3e=null),_0x11184a++;}return _0x435458;}function co(_0x5a43ae,_0x194751,_0x194baa){if(!_0x194baa)return!0x1;const _0x16d3ab=_0x5a43ae['createPositionAfter'](_0x194751),_0x324111=_0x5a43ae['createPositionBefore'](_0x194baa);return _0x16d3ab['isTouching'](_0x324111);}function rs(_0xdafd33,_0xa8da49,_0x1b54f1){for(;_0x1b54f1['length'];){const _0x3caeca=_0x1b54f1['splice'](0x0,0x64);_0xdafd33['change'](()=>{for(const _0x451249 of _0x3caeca)_0x451249['isInContent']&&_0xa8da49['execute'](_0x451249['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x4d7ba4,_0x51b755,_0x32dad3){super(_0x4d7ba4),this['_command']=_0x51b755,this['_suggestions']=_0x32dad3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x18c48c=Array['from'](this['_suggestions']['values']())['some'](_0x5efbe3=>_0x5efbe3['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x18c48c;}['execute'](){const _0x1a811f=ss(Array['from'](this['_suggestions']['values']()));for(const _0x3f36d5 of _0x1a811f){const _0x45e640=_0x3f36d5['getRanges']();if(!this['editor']['model']['canEditAt'](_0x45e640))return;}rs(this['editor']['model'],this['_command'],_0x1a811f);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xd52ad0,_0x335309,_0x3987bf){super(_0xd52ad0),this['_command']=_0x335309,this['_suggestions']=_0x3987bf,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x286f43=this['editor']['model']['document']['selection'],_0x4b6100=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4b4fec,_0x495bbc){const _0x474d1e=Array['from'](_0x4b4fec['getRanges']()),_0x47c216=new Set();for(const _0x21776e of _0x495bbc)if(_0x21776e['isInContent']){for(const _0x539620 of _0x474d1e)for(const _0x1c12a8 of _0x21776e['getRanges']())(_0x539620['isIntersecting'](_0x1c12a8)||_0x4b4fec['isCollapsed']&&!_0x21776e['isMultiRange']&&_0x21776e['next']&&_0x1c12a8['end']['isTouching'](_0x539620['start']))&&_0x47c216['add'](_0x21776e);}return _0x47c216;}(_0x286f43,_0x4b6100),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2ea76d=ss(Array['from'](this['_selectedSuggestions']));for(const _0x13d49d of _0x2ea76d){const _0x5bc485=_0x13d49d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5bc485))return;}rs(this['editor']['model'],this['_command'],_0x2ea76d);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x2a7513(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4aa75e,_0x576f78){super(),this['id']=_0x576f78['id'],this['type']=_0x576f78['type'],this['subType']=_0x576f78['subType']||null,this['author']=_0x576f78['author'],this['creator']=_0x576f78['creator']||_0x576f78['author'],this['isExternal']=Boolean(_0x576f78['attributes']&&_0x576f78['attributes']['@external']),this['data']=null,this['_model']=_0x4aa75e,this['_onAccept']=_0x576f78['onAccept'],this['_onDiscard']=_0x576f78['onDiscard'],this['_onAttributesChange']=_0x576f78['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x576f78['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x5a5101=this;for(;_0x5a5101['previous'];)_0x5a5101=_0x5a5101['previous'];return _0x5a5101;}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'](_0x4a9894){this['_markerNames']['add'](_0x4a9894);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1d7a54=>this['_model']['markers']['get'](_0x1d7a54))['filter'](_0x55def1=>_0x55def1);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1746a4=>{for(const _0x28f92b of this['getMarkers']())_0x1746a4['removeMarker'](_0x28f92b);}),this['_markerNames']['clear']();}['removeMarker'](_0x4b6cf4){this['_model']['change'](_0x4d1783=>{_0x4d1783['removeMarker'](_0x4b6cf4);}),this['_markerNames']['delete'](_0x4b6cf4);}['addRange'](_0x2b431c){const _0x3a8937='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x3a8937),this['_model']['change'](_0x4479b8=>{_0x4479b8['addMarker'](_0x3a8937,{'range':_0x2b431c,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x354c8d){for(const _0x1e7e4b of this['getRanges']())if(_0x1e7e4b['isIntersecting'](_0x354c8d))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x8703dd=>_0x8703dd['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x41c150,_0x1eb786)=>[..._0x41c150,..._0x1eb786['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1cda9c=this['getRanges']();if(0x1!=_0x1cda9c['length'])return null;const _0x2f45f4=_0x1cda9c[0x0],_0x8b558e=_0x2f45f4['start']['nodeAfter'],_0x48b844=_0x2f45f4['end']['nodeBefore'];return _0x8b558e instanceof _0x219298?_0x8b558e!=_0x48b844?null:_0x8b558e: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 _0x4a7fc0=[];let _0x9311ff=this['head'];for(;_0x9311ff;)_0x4a7fc0['push'](_0x9311ff),_0x9311ff=_0x9311ff['next'];return _0x4a7fc0;}['setAttribute'](_0xfc50b1,_0x3b584f){const _0x422dfd=_0xbf9a44(this['attributes']);_0x1a0b59(_0x422dfd,_0xfc50b1,_0x3b584f),_0x5cd547(_0x422dfd,this['attributes'])||(this['attributes']=_0x422dfd,this['_onAttributesChange'](_0x422dfd));}['removeAttribute'](_0x4e59f1){const _0x22168c=_0xbf9a44(this['attributes']);_0x407254(_0x22168c,_0x4e59f1),_0x5cd547(_0x22168c,this['attributes'])||(this['attributes']=_0x22168c,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 _0x3cefaa()['substr'](0x1,0x5);}}function o(_0x5c3ccd,_0x50b8fb,_0x32fc71){const t=_0x5c3ccd['t'];switch(_0x50b8fb){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',_0x32fc71);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x32fc71);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x32fc71);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x32fc71);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x32fc71);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',_0x32fc71);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x32fc71);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',_0x32fc71);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x32fc71);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x32fc71);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x32fc71);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x32fc71);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x32fc71);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x32fc71);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x32fc71);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x32fc71);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x32fc71);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x32fc71);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x32fc71);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x32fc71);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x32fc71);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x32fc71);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x32fc71);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'},_0x32fc71);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x32fc71);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x32fc71);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x32fc71);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x32fc71);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x32fc71);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'},_0x32fc71);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x32fc71);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x32fc71);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x32fc71);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x32fc71);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'},_0x32fc71);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x32fc71);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'},_0x32fc71);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'},_0x32fc71);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x32fc71);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'},_0x32fc71);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x32fc71);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'},_0x32fc71);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x32fc71);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x32fc71);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'},_0x32fc71);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'},_0x32fc71);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 _0x50b8fb;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4f83d0,_0x2502d3){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4f83d0,this['_locale']=_0x2502d3;}['getDescriptions'](_0x17fe2d){const _0x1702ec=[],_0x2a51cc=new Set(),_0x2cf993=new Set();for(let _0xe0db39=0x0;_0xe0db39<_0x17fe2d['length'];_0xe0db39++){const _0x47f519=_0x17fe2d[_0xe0db39];if(!_0x47f519['isInContent'])continue;const _0x34e509=this['_handleCustomCallbackDescription'](_0x47f519);if(_0x34e509){if(null!=_0x47f519['subType']){if(_0x2a51cc['has'](_0x47f519['subType']))continue;_0x2a51cc['add'](_0x47f519['subType']);}_0x1702ec['push'](_0x34e509);}else{if('attribute'!=_0x47f519['type'])'insertion'!=_0x47f519['type']&&'deletion'!=_0x47f519['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1702ec,_0x47f519,_0x17fe2d[_0xe0db39+0x1]);else{const _0x25a137=_0x47f519['data']['key'];if(_0x2cf993['has'](_0x25a137))continue;_0x2cf993['add'](_0x47f519['data']['key']),_0x25a137==m?this['_handleRenameSuggestionDescription'](_0x1702ec,_0x47f519):this['_handleAttributeSuggestionDescription'](_0x1702ec,_0x47f519);}}}return this['_resolveDescriptionItems'](_0x1702ec);}['registerDescriptionCallback'](_0x5e99d3){this['_customCallbacks']['push'](_0x5e99d3);}['registerElementLabel'](_0x18a0e3,_0x52a26f,_0x5da022=_0x36e7bf['normal']){'function'==typeof _0x18a0e3?_0x17f874(this['_itemLabelsCallbacks'],{'matchingCallback':_0x18a0e3,'label':_0x52a26f,'priority':_0x5da022}):this['_itemLabels']['set'](_0x18a0e3,_0x52a26f);}['registerAttributeLabel'](_0x57d524,_0x29b038){this['_attributeLabels']['set'](_0x57d524,_0x29b038);}['getItemLabel'](_0x44915d,_0x15d422=0x1){let _0x613901;for(const _0x563982 of this['_itemLabelsCallbacks'])if(_0x563982['matchingCallback'](_0x44915d)){_0x613901=_0x563982['label'];break;}return _0x613901||(_0x613901=this['_itemLabels']['get'](_0x44915d['name'])),_0x613901?_0x613901(_0x15d422):0x1!==_0x15d422?_0x15d422+'\x20'+_0x44915d['name']+'s':''+_0x44915d['name'];}['_addDescriptionItems'](_0x138f6d,_0x328f92){const _0x2fb0ef=_0x328f92['getFirstRange']()['getWalker'](),_0x289405='insertion'==_0x328f92['type']?'add':'remove';for(const _0x22d06e of _0x2fb0ef){const _0xf717f6=_0x22d06e['item'],_0x497c45=_0x138f6d[_0x138f6d['length']-0x1];if(_0xf717f6['is']('$textProxy'))_0x497c45&&_0x497c45['type']['indexOf']('Container')>-0x1&&_0x138f6d['pop'](),_0x497c45&&'text'==_0x497c45['type']?_0x497c45[_0x289405]+=_0xf717f6['data']:_0x138f6d['push']({'type':'text','add':'add'==_0x289405?_0xf717f6['data']:'','remove':'remove'==_0x289405?_0xf717f6['data']:''});else{if(this['_schema']['isObject'](_0xf717f6)){const _0x57fe5f=_0xf717f6;if(_0x497c45&&_0x497c45['type']['indexOf']('Container')>-0x1&&_0x138f6d['pop'](),'elementEnd'==_0x22d06e['type'])continue;_0x497c45&&_0x497c45['type']==_0x289405+'Object'&&_0x497c45['element']['name']==_0x57fe5f['name']?_0x497c45['quantity']++:_0x138f6d['push']({'type':_0x289405+'Object','element':_0x57fe5f,'quantity':0x1}),_0x2fb0ef['skip'](_0x484850=>!('elementEnd'==_0x484850['type']&&_0x484850['item']==_0xf717f6));}else{if(this['_schema']['checkChild'](_0xf717f6,'$text')||_0xf717f6['is']('element','softBreak')){const _0x4bca39=_0xf717f6;if('add'==_0x289405&&'elementStart'==_0x22d06e['type']||'remove'==_0x289405&&'elementEnd'==_0x22d06e['type'])continue;if(_0x497c45&&-0x1==_0x497c45['type']['indexOf']('Container')){'text'==_0x497c45['type']&&(_0x497c45[_0x289405]+='\x0a');continue;}let _0x596d4a;if(_0x596d4a='add'==_0x289405?_0x4bca39['nextSibling']&&!this['_schema']['isObject'](_0x4bca39['nextSibling'])?_0x4bca39['nextSibling']:null:_0x4bca39['previousSibling']&&!this['_schema']['isObject'](_0x4bca39['previousSibling'])?_0x4bca39['previousSibling']:null,_0x4bca39['isEmpty']||_0x596d4a&&_0x596d4a['isEmpty']){const _0x364afd=_0x596d4a&&_0x596d4a['isEmpty']?_0x596d4a:_0x4bca39;_0x497c45&&_0x497c45['type']==_0x289405+'EmptyContainer'&&_0x497c45['element']['name']==_0x364afd['name']?_0x497c45['quantity']++:_0x138f6d['push']({'type':_0x289405+'EmptyContainer','element':_0x364afd,'quantity':0x1});}else _0x138f6d['push']({'type':_0x289405+'Container','element':_0x4bca39});}}}}}['_resolveDescriptionItems'](_0x4bf6f2){const _0x1d16ad=this['_locale'],_0x2ff5a3=[],_0x4876dd=[],_0x485a09=[];for(const _0x3accec of _0x4bf6f2)switch(_0x3accec['type']){case'text':if(_0x3accec['add']=_0x3accec['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3accec['remove']=_0x3accec['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3accec['add']&&''!=_0x3accec['remove']){_0x2ff5a3['push']({'type':'replace','content':o(_0x1d16ad,'REPLACE_TEXT',['\x22'+_0x3accec['remove']+'\x22','\x22'+_0x3accec['add']+'\x22'])});continue;}if(null!=_0x3accec['add']['match'](/^ +$/)){_0x2ff5a3['push']({'type':'insertion','content':o(_0x1d16ad,'*Insert:*\x20%0',o(_0x1d16ad,'ELEMENT_SPACE',_0x3accec['add']['length']))});continue;}if(null!=_0x3accec['remove']['match'](/^ +$/)){_0x2ff5a3['push']({'type':'deletion','content':o(_0x1d16ad,'*Remove:*\x20%0',o(_0x1d16ad,'ELEMENT_SPACE',_0x3accec['remove']['length']))});continue;}if(''!=_0x3accec['add']){_0x2ff5a3['push']({'type':'insertion','content':o(_0x1d16ad,'*Insert:*\x20%0','\x22'+_0x3accec['add']+'\x22')});continue;}_0x2ff5a3['push']({'type':'deletion','content':o(_0x1d16ad,'*Remove:*\x20%0','\x22'+_0x3accec['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2ff5a3['push']({'type':'insertion','content':o(_0x1d16ad,'*Insert:*\x20%0',this['getItemLabel'](_0x3accec['element'],_0x3accec['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2ff5a3['push']({'type':'deletion','content':o(_0x1d16ad,'*Remove:*\x20%0',this['getItemLabel'](_0x3accec['element'],_0x3accec['quantity']))});continue;case'addContainer':_0x2ff5a3['push']({'type':'insertion','content':o(_0x1d16ad,'*Split:*\x20%0',this['getItemLabel'](_0x3accec['element'],_0x3accec['quantity']))});continue;case'removeContainer':_0x2ff5a3['push']({'type':'deletion','content':o(_0x1d16ad,'*Merge:*\x20%0',this['getItemLabel'](_0x3accec['element'],_0x3accec['quantity']))});continue;case'addFormat':_0x4876dd['push'](_0x3accec['key']);continue;case'removeFormat':_0x485a09['push'](_0x3accec['key']);continue;default:_0x2ff5a3['push'](_0x3accec);}if(_0x4876dd['length']){const _0x2cb7c3=_0x4876dd['map'](_0x23bb2d=>this['_attributeLabels']['has'](_0x23bb2d)?this['_attributeLabels']['get'](_0x23bb2d):_0x23bb2d)['join'](',\x20');_0x2ff5a3['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2cb7c3)});}if(_0x485a09['length']){const _0x28d35e=_0x485a09['map'](_0x5ebacb=>this['_attributeLabels']['has'](_0x5ebacb)?this['_attributeLabels']['get'](_0x5ebacb):_0x5ebacb)['join'](',\x20');_0x2ff5a3['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x28d35e)});}return _0x2ff5a3;}['_handleCustomCallbackDescription'](_0x50566f){for(const _0x9ff64b of this['_customCallbacks']){const _0x110368=_0x9ff64b(_0x50566f);if(_0x110368&&'type'in _0x110368)return _0x110368;}}['_handleAttributeSuggestionDescription'](_0x43538d,_0x57c035){const _0x5283ef=_0x57c035['data'],_0x3cb7ee=void 0x0===_0x5283ef['newValue']?'removeFormat':'addFormat';_0x43538d['push']({'type':_0x3cb7ee,'key':_0x5283ef['key']});}['_handleRenameSuggestionDescription'](_0x32f01e,_0x433468){_0x32f01e['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x433468['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x401ac7,_0x647591,_0x424c4e){if(this['_addDescriptionItems'](_0x401ac7,_0x647591),_0x424c4e&&_0x424c4e['getFirstRange']()&&!_0x647591['getFirstRange']()['end']['isEqual'](_0x424c4e['getFirstRange']()['start'])){const _0x1d60d9=_0x401ac7[_0x401ac7['length']-0x1],_0x5cfd5b='insertion'==_0x647591['type']?'add':'remove';_0x1d60d9&&'text'==_0x1d60d9['type']&&(_0x1d60d9[_0x5cfd5b]+='\x0a');}}}class E extends _0x4d360f{['afterInit'](){const _0x46f982=this['editor'],_0x208e54=_0x46f982['plugins']['get']('TrackChangesEditing');_0x46f982['commands']['get']('showAIAssistant')&&_0x208e54['enableCommand']('showAIAssistant');}}class V extends _0x4d360f{['afterInit'](){const _0x136a84=this['editor'],_0xfe1b30=_0x136a84['locale'];if(!_0x136a84['plugins']['has']('AlignmentEditing'))return;const _0x2feea9=_0x136a84['plugins']['get']('TrackChangesEditing');_0x2feea9['enableDefaultAttributesIntegration']('alignment'),_0x2feea9['registerBlockAttribute']('alignment'),_0x2feea9['descriptionFactory']['registerAttributeLabel']('alignment',o(_0xfe1b30,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1270df=this['editor'],_0x4f4f45=_0x1270df['locale'];_0x1270df['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f37c9=>{if('formatBlock'!=_0x4f37c9['type'])return;const {data:_0x1042bf}=_0x4f37c9;if(_0x1042bf&&'alignment'==_0x1042bf['commandName']){const _0x3bfb9b=_0x1042bf['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4f4f45,'*Format:*\x20%0',function(_0xe0ce04){switch(_0xe0ce04){case'left':return o(_0x4f4f45,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4f4f45,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4f4f45,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4f4f45,'FORMAT_JUSTIFY_TEXT');}}(_0x3bfb9b))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x4d360f{['afterInit'](){const _0x444089=this['editor'],_0x5028c3=_0x444089['plugins']['get']('TrackChangesEditing'),_0x3ad0ec=_0x444089['locale'];for(const _0x3b382b of ti){if(!_0x444089['plugins']['has'](_0x3b382b))continue;const _0x253b76=_0x3b382b['slice'](0x0,-0x7)['toLowerCase'](),_0x13c8ee='FORMAT_'+_0x253b76['toUpperCase']();_0x5028c3['enableDefaultAttributesIntegration'](_0x253b76),_0x5028c3['registerInlineAttribute'](_0x253b76),_0x5028c3['descriptionFactory']['registerAttributeLabel'](_0x253b76,o(_0x3ad0ec,_0x13c8ee));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x258a52=this['editor'],_0x403260=_0x258a52['locale'],_0x4eda8e=_0x258a52['plugins']['get']('TrackChangesEditing');function _0x2b4edc(_0x5ab021,_0x2b0e15){_0x4eda8e['descriptionFactory']['registerDescriptionCallback'](_0x2595b2=>{if('formatInline'!=_0x2595b2['type'])return;const {data:_0x476555}=_0x2595b2;return _0x476555&&_0x476555['commandName']===_0x5ab021?_0x476555['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x403260,'*Format:*\x20%0',_0x2b0e15)}:{'type':'format','content':o(_0x403260,'*Remove\x20format:*\x20%0',_0x2b0e15)}:void 0x0;});}_0x2b4edc('bold',o(_0x403260,'FORMAT_BOLD')),_0x2b4edc('italic',o(_0x403260,'FORMAT_ITALIC')),_0x2b4edc('underline',o(_0x403260,'FORMAT_UNDERLINE')),_0x2b4edc('code',o(_0x403260,'FORMAT_CODE')),_0x2b4edc('strikethrough',o(_0x403260,'FORMAT_STRIKETHROUGH')),_0x2b4edc('subscript',o(_0x403260,'FORMAT_SUBSCRIPT')),_0x2b4edc('superscript',o(_0x403260,'FORMAT_SUPERSCRIPT'));}}class O extends _0x4d360f{['afterInit'](){const _0x54a755=this['editor'],_0x42ff74=_0x54a755['locale'];if(!_0x54a755['plugins']['has']('BlockQuoteEditing'))return;const _0x303195=_0x54a755['plugins']['get']('TrackChangesEditing'),_0x301d1a=this['editor']['commands']['get']('blockQuote');_0x303195['enableCommand']('blockQuote',(_0x5c60e0,_0xa4bb7f={})=>{const _0xeda6fe=this['editor']['model']['document']['selection'],_0x3f7d47=_0xa4bb7f&&void 0x0!==_0xa4bb7f['forceValue']?_0xa4bb7f['forceValue']:!_0x301d1a['value'];let _0x4e162b=[];if(_0x3f7d47){const _0x977fc3=Array['from'](_0xeda6fe['getSelectedBlocks']())['filter'](_0x623e9a=>oo(_0x623e9a)||function(_0x40e86f,_0x5abc37){const _0x27a6fc=_0x5abc37['checkChild'](_0x40e86f['parent'],'blockQuote'),_0x4ac595=_0x5abc37['checkChild'](['$root','blockQuote'],_0x40e86f);return _0x27a6fc&&_0x4ac595;}(_0x623e9a,this['editor']['model']['schema']));_0x4e162b=to(_0x977fc3,_0x54a755['model']);}else{const _0x282cd3=Array['from'](_0xeda6fe['getSelectedBlocks']())['filter'](_0x48325b=>oo(_0x48325b));_0x4e162b=to(_0x282cd3,_0x54a755['model']);}_0x54a755['model']['change'](()=>{for(const _0x4afff3 of _0x4e162b)_0x303195['markBlockFormat'](_0x4afff3,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3f7d47}]});});}),_0x303195['descriptionFactory']['registerDescriptionCallback'](_0x498237=>{const {data:_0x37b7cb}=_0x498237;if(_0x37b7cb&&'blockQuote'==_0x37b7cb['commandName']){const _0x15156e=o(_0x42ff74,'ELEMENT_BLOCK_QUOTE');return _0x37b7cb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x42ff74,'*Set\x20format:*\x20%0',_0x15156e)}:{'type':'format','content':o(_0x42ff74,'*Remove\x20format:*\x20%0',_0x15156e)};}});}}function oo(_0x29c158){return'blockQuote'==_0x29c158['parent']['name'];}class G extends _0x4d360f{['afterInit'](){const _0x3f5e36=this['editor'];_0x3f5e36['plugins']['has']('CaseChange')&&(_0x3f5e36['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3f5e36['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3f5e36['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x4d360f{['afterInit'](){const _0x24ce66=this['editor'];_0x24ce66['commands']['get']('ckbox')&&_0x24ce66['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x4d360f{['afterInit'](){const _0x13270a=this['editor'];if(!_0x13270a['plugins']['has']('CodeBlock'))return;const _0x2cb28f=_0x13270a['plugins']['get']('TrackChangesEditing'),_0x195456=_0x13270a['locale'],_0x38b228=_0x13270a['config']['get']('codeBlock')['languages'],_0x24eba3=_0x13270a['commands']['get']('codeBlock');_0x2cb28f['enableCommand']('indentCodeBlock'),_0x2cb28f['enableCommand']('outdentCodeBlock'),_0x2cb28f['enableCommand']('codeBlock',(_0x176dd6,_0x39ca47={})=>{const _0x4669a9=_0x13270a['model'],_0x4b4e0c=_0x13270a['model']['document']['selection'],_0x536563=_0x39ca47&&void 0x0!==_0x39ca47['forceValue']?_0x39ca47['forceValue']:!_0x24eba3['value'];let _0x304a1c;_0x39ca47['language']||(_0x39ca47['language']=_0x38b228[0x0]['language']),_0x304a1c=_0x536563?Array['from'](_0x4b4e0c['getSelectedBlocks']())['filter'](_0x35bf86=>eo(_0x35bf86)||function(_0xbd99fb,_0x3bbb9b){if(_0xbd99fb['is']('rootElement')||_0x3bbb9b['isLimit'](_0xbd99fb))return!0x1;return _0x3bbb9b['checkChild'](_0xbd99fb['parent'],'codeBlock');}(_0x35bf86,_0x4669a9['schema'])):Array['from'](_0x4b4e0c['getSelectedBlocks']())['filter'](_0x231030=>eo(_0x231030));const _0x2e8e45=to(_0x304a1c,_0x4669a9);_0x4669a9['change'](()=>{for(const _0x2e9f5e of _0x2e8e45)_0x2cb28f['markBlockFormat'](_0x2e9f5e,{'commandName':'codeBlock','commandParams':[{..._0x39ca47,'forceValue':_0x536563}],'formatGroupId':'blockName'});});}),(_0x2cb28f['descriptionFactory']['registerElementLabel']('codeBlock',_0x7c5dcd=>o(_0x195456,'ELEMENT_CODE_BLOCK',_0x7c5dcd)),_0x2cb28f['descriptionFactory']['registerDescriptionCallback'](_0x9a88e0=>{if('formatBlock'!=_0x9a88e0['type'])return;const _0x27ff7e=_0x195456['t'],{data:_0x337d8a}=_0x9a88e0;if(!_0x337d8a||'codeBlock'!=_0x337d8a['commandName'])return;const _0x157ab5=_0x337d8a['commandParams'][0x0]['language'],_0x3481e0=_0x27ff7e(_0x38b228['find'](_0x49fa0b=>_0x49fa0b['language']===_0x157ab5)['label'])['toLowerCase']();return _0x337d8a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x195456,'*Set\x20format:*\x20%0',o(_0x195456,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3481e0+')')}:{'type':'format','content':o(_0x195456,'*Remove\x20format:*\x20%0',o(_0x195456,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x56cd4d){return'codeBlock'==_0x56cd4d['name'];}class H extends _0x4d360f{['afterInit'](){const _0x4f0165=this['editor'];if(!_0x4f0165['plugins']['has']('CommentsEditing'))return;_0x4f0165['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x161376,_0x4dad06,_0x1df32a){const _0x3fd424=[];for(const _0x16fa7c of _0x4dad06['getItems']())_0x16fa7c['hasAttribute'](_0x161376)&&_0x3fd424['push'](_0x1df32a['createRangeOn'](_0x16fa7c));return _0x3fd424;}function _e(_0x316348,_0x4dea11,{showActiveMarker:_0x180e50=!0x0}={}){const _0x3ada96=_0x316348['plugins']['get']('TrackChangesEditing');return(_0x5e000f,_0x2f22ff,_0xa92723)=>{if(!_0xa92723['consumable']['test'](_0x2f22ff['markerRange'],_0x5e000f['name']))return;const _0x4a8503=_0x2f22ff['markerRange']['getWalker'](),_0x5240d3=_0x2f22ff['markerRange']['start'],_0x5ade01=_0x316348['model']['schema'];let _0x163504=null,_0x4883f6=null,_0x425168=!0x1,_0x3be90b=!0x1;for(const _0x1db057 of _0x4a8503){const _0x260a8c=_0x1db057['item'];_0x425168=_0x425168||_0x5ade01['isContent'](_0x260a8c);const _0x2c95e1=_0xa92723['mapper']['toViewElement'](_0x260a8c);if(_0x2c95e1&&_0x2c95e1['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1db057['type']&&(_0x5ade01['isBlock'](_0x260a8c)&&!_0x5ade01['isLimit'](_0x260a8c)&&(_0x260a8c['nextSibling']||_0x5240d3['isAtEnd']?_0x163504&&_0x163504['parent']==_0x260a8c||(_0x163504=_0x260a8c,_0x3e3e92(_0x1db057['previousPosition']),_0x3be90b=!0x0):_0x4883f6=_0x4883f6||_0x1db057['previousPosition']));}function _0x3e3e92(_0x290743){const _0xa43fe7=_0xa92723['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4dea11}),_0x54c77a=_0xa92723['mapper']['toViewPosition'](_0x290743);_0x180e50&&_0x3ada96['activeMarkers']['includes'](_0x2f22ff['markerName'])&&_0xa92723['writer']['addClass']('ck-suggestion-marker--active',_0xa43fe7),_0xa92723['writer']['insert'](_0x54c77a,_0xa43fe7),_0xa92723['mapper']['bindElementToMarker'](_0xa43fe7,_0x2f22ff['markerName']);}_0x425168||_0x3be90b||!_0x4883f6||_0x3e3e92(_0x4883f6);};}class q extends _0x4d360f{static get['requires'](){return[_0x1994ec];}['init'](){const _0x3a54eb=this['editor'],_0x222cca=_0x3a54eb['plugins']['get']('TrackChangesEditing');_0x222cca['enableCommand']('delete');const _0x4484f2=_0x3a54eb['commands']['get']('deleteForward');_0x222cca['enableCommand']('deleteForward',(_0x357427,_0x1bad66={})=>{const _0x115675=_0x3a54eb['model']['createSelection'](_0x3a54eb['model']['document']['selection']);_0x115675['isCollapsed']&&_0x3a54eb['model']['modifySelection'](_0x115675,{'direction':'forward','unit':_0x1bad66['unit']});const _0x40301d=_0x115675['getFirstRange'](),_0x42b163=_0x27f355['fromRange'](_0x40301d);let _0x54e27b;_0x357427(_0x1bad66),_0x54e27b='$graveyard'==_0x42b163['root']['rootName']?_0x3a54eb['model']['createRange'](_0x40301d['start']):_0x3a54eb['model']['createRange'](_0x42b163['start'],_0x42b163['end']),_0x42b163['detach'](),_0x3a54eb['model']['enqueueChange'](_0x4484f2['buffer']['batch'],_0x19b6d9=>{_0x4484f2['buffer']['lock'](),_0x19b6d9['setSelection'](_0x19b6d9['createRange'](_0x54e27b['end'])),_0x4484f2['buffer']['unlock']();});}),_0x3a54eb['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x3a54eb,'merge'),{'priority':'high'}),_0x3a54eb['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x256824,_0x2be2fe,_0x5a641d)=>{_0x5a641d['options']['showSuggestionHighlights']&&_e(_0x3a54eb,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x256824,_0x2be2fe,_0x5a641d);},{'priority':'high'}),_0x3a54eb['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x41ceda,_0x2a366d,_0x11e329)=>{const _0x10bb56=_0x11e329['mapper']['markerNameToElements'](_0x2a366d['markerName']);if(_0x10bb56){for(const _0x4fde8c of _0x10bb56)_0x4fde8c['is']('uiElement')&&(_0x11e329['mapper']['unbindElementFromMarkerName'](_0x4fde8c,_0x2a366d['markerName']),_0x11e329['writer']['remove'](_0x4fde8c));}},{'priority':'high'});}}class z extends _0x4d360f{['afterInit'](){const _0x28be5b=this['editor'];if(!_0x28be5b['plugins']['has']('ListEditing'))return;const _0x56c4c1=_0x28be5b['locale'],_0x4601d2=_0x28be5b['plugins']['get']('TrackChangesEditing'),_0x4d8cde=_0x28be5b['plugins']['has']('TodoListEditing'),_0x18f742=!!_0x28be5b['config']['get']('list.multiBlock');function _0xa21db9(_0x90e4ee){return{'type':'format','content':''+o(_0x56c4c1,'*Set\x20format:*\x20%0',_0x90e4ee)};}function _0x467db0(_0x4cb79a){return{'type':'format','content':''+o(_0x56c4c1,'*Remove\x20format:*\x20%0',_0x4cb79a)};}_0x4601d2['enableDefaultAttributesIntegration']('numberedList'),_0x4601d2['enableDefaultAttributesIntegration']('bulletedList'),_0x4601d2['enableDefaultAttributesIntegration']('customNumberedList'),_0x4601d2['enableDefaultAttributesIntegration']('customBulletedList'),_0x4601d2['enableDefaultAttributesIntegration']('indentList'),_0x4601d2['enableDefaultAttributesIntegration']('outdentList'),_0x4601d2['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4601d2['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4601d2['registerBlockAttribute']('listItemId'),_0x4601d2['registerBlockAttribute']('listType'),_0x4601d2['registerBlockAttribute']('listIndent'),_0x18f742&&(_0x4601d2['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4601d2['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4d8cde&&(_0x4601d2['enableDefaultAttributesIntegration']('todoList'),_0x4601d2['enableDefaultAttributesIntegration']('checkTodoList'),_0x4601d2['registerBlockAttribute']('todoListChecked'),_0x4601d2['descriptionFactory']['registerDescriptionCallback'](_0x150ab1=>{const {data:_0x2eebcf}=_0x150ab1;if(_0x2eebcf&&'todoListChecked'==_0x2eebcf['key'])return{'type':'format','content':_0x2eebcf['newValue']?o(_0x56c4c1,'*Check\x20item*'):o(_0x56c4c1,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3998f7=>{if(_0x3998f7['batch']['isUndo'])return!0x1;let _0x82f6ee=!0x1;const _0x1eb28a=_0x4601d2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x159a01=>'todoListChecked'===_0x4601d2['_getAttributeKey'](_0x159a01));for(const _0x40a019 of _0x1eb28a){'todo'!=_0x40a019['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4601d2['_findSuggestions'](_0x40a019['getFirstRange'](),'attribute')['find'](_0x57347f=>'listType'===_0x4601d2['_getAttributeKey'](_0x57347f['suggestion']))||(_0x3998f7['removeMarker'](_0x40a019['getFirstMarker']()),_0x82f6ee=!0x0));}return _0x82f6ee;})),_0x4601d2['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x56c4c1,'FORMAT_INDENT'));const _0x258ab2={'type':'format','content':''};_0x4601d2['descriptionFactory']['registerDescriptionCallback'](_0xf832e9=>{const {data:_0x2123aa}=_0xf832e9;if(!_0x2123aa||'listType'!=_0x2123aa['key'])return;let _0x15cee7=_0xf832e9['head'];for(;_0x15cee7;){if(_0x15cee7['data']&&(('listStyle'==_0x15cee7['data']['key']||'listMarkerStyle'==_0x15cee7['data']['key'])&&(_0x15cee7['data']['newValue']&&'default'!=_0x15cee7['data']['newValue']||'default'!=_0x15cee7['data']['oldValue']&&!_0x2123aa['newValue'])||!_0x18f742&&_0x15cee7['data']['key']==m))return _0x258ab2;_0x15cee7=_0x15cee7['next'];}if(null==_0x2123aa['newValue'])switch(_0x2123aa['oldValue']){case'bulleted':return _0x467db0(o(_0x56c4c1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x467db0(o(_0x56c4c1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x467db0(o(_0x56c4c1,'ELEMENT_TODO_LIST'));}switch(_0x2123aa['newValue']){case'bulleted':return _0xa21db9(o(_0x56c4c1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xa21db9(o(_0x56c4c1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xa21db9(o(_0x56c4c1,'ELEMENT_TODO_LIST'));}}),_0x4601d2['descriptionFactory']['registerDescriptionCallback'](_0x4e593a=>{const {data:_0xb0b871}=_0x4e593a;if(_0xb0b871&&'listIndent'==_0xb0b871['key'])return null==_0xb0b871['newValue']||null==_0xb0b871['oldValue']&&0x0==_0xb0b871['newValue']?_0x258ab2:void 0x0;}),_0x4601d2['descriptionFactory']['registerDescriptionCallback'](_0x5b6fde=>{if('attribute'!=_0x5b6fde['type'])return;const {data:_0x5e4d4d}=_0x5b6fde;if(!_0x5e4d4d||'listItemId'!=_0x5e4d4d['key'])return;const _0x3be870=le(_0x5b6fde);return'newValue'==_0x3be870?{'type':'format','content':o(_0x56c4c1,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3be870?{'type':'format','content':o(_0x56c4c1,'*Split:*\x20list\x20item')}:_0x258ab2;}),_0x28be5b['model']['document']['registerPostFixer'](_0x507a09=>this['listItemIdFixer'](_0x507a09)),_0x28be5b['model']['document']['registerPostFixer'](_0x3c0aeb=>this['noTrackChangesFixer'](_0x3c0aeb)),_0x28be5b['model']['document']['registerPostFixer'](_0x23bfd6=>this['assureChains'](_0x23bfd6)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3e3a14){if(_0x3e3a14['batch']['isUndo']||!_0x3e3a14['batch']['isLocal'])return!0x1;let _0x59c0f8=!0x1;const _0x56b317=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x171b24=>_0x171b24['data']&&'listItemId'==_0x171b24['data']['key'])['filter'](_0x32c44f=>_0x32c44f['data']['newValue']&&_0x32c44f['data']['oldValue']);for(const _0x17e5fa of _0x56b317)le(_0x17e5fa)||(_0x3e3a14['removeMarker'](_0x17e5fa['getFirstMarker']()),_0x59c0f8=!0x0);return _0x59c0f8;}['noTrackChangesFixer'](_0x44fab4){if(_0x44fab4['batch']['isUndo']||!_0x44fab4['batch']['isLocal'])return!0x1;const _0x48a881=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x48a881['trackChangesCommand']['value'])return!0x1;let _0x40e058=!0x1;const _0xec9536=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5461c0=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x51af88=>'attribute'==_0x51af88['type'])['filter'](_0x130f0d=>_0xec9536['includes'](_0x130f0d['attributeKey']));if(0x0==_0x5461c0['length'])return _0x40e058;for(const _0x2a6071 of _0x5461c0){const _0x10f851=_0x48a881['_findSuggestions'](_0x2a6071['range'],'attribute')['filter'](_0x2bea05=>!_0x2bea05['meta']['isNextTo'])['map'](_0x279aa6=>_0x279aa6['suggestion'])['filter'](_0x530daf=>{const _0x3a9fec=_0x48a881['_getAttributeKey'](_0x530daf);return _0xec9536['includes'](_0x3a9fec);});if(_0x10f851['length']){for(const _0x1b5937 of _0x10f851)_0x44fab4['removeMarker'](_0x1b5937['getFirstMarker']());_0x40e058=!0x0;}}return _0x40e058;}['assureChains'](_0x1ad75d){if(_0x1ad75d['batch']['isUndo']||!_0x1ad75d['batch']['isLocal'])return!0x1;const _0x8e45f4=this['editor']['plugins']['get']('TrackChangesEditing');let _0x35473b=!0x1;const _0x28e0aa=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x5689d4 of _0x8e45f4['getSuggestions']({'skipNotAttached':!0x0})){const _0x109571=_0x8e45f4['_findSuggestions'](_0x5689d4['getFirstRange'](),'attribute')['map'](_0x4eba79=>_0x4eba79['suggestion'])['filter'](_0x47d51c=>_0x47d51c['data']&&_0x28e0aa['includes'](_0x47d51c['data']['key']));if(!_0x109571['length'])continue;const _0x496853=_0x109571[0x0]['head']['attributes']['groupId'];if(!_0x109571['every'](_0x5cbe59=>_0x5cbe59['attributes']['groupId']===_0x496853)){for(const _0x38edd9 of _0x109571)_0x3158c4(_0x38edd9,_0x496853)&&(_0x35473b=!0x0);}}return _0x35473b;function _0x4ada9b(_0x6e42f2,_0x57bb04){for(const _0x4adde2 of _0x8e45f4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x932102=>'attribute'==_0x932102['type']&&_0x932102['attributes']['groupId']==_0x6e42f2))_0x4adde2['setAttribute']('groupId',_0x57bb04);}function _0x3158c4(_0x4f210d,_0x270878){let _0x42f9eb=_0x4f210d['head'],_0x5ef415=!0x1;for(;_0x42f9eb;)_0x42f9eb['attributes']['groupId']!=_0x270878&&(_0x4ada9b(_0x42f9eb['attributes']['groupId'],_0x270878),_0x42f9eb['setAttribute']('groupId',_0x270878),_0x5ef415=!0x0),_0x42f9eb=_0x42f9eb['next'];return _0x5ef415;}}['_supportLegacySuggestions'](){const _0x38abd1=this['editor'],_0x2469cd=_0x38abd1['locale'],_0x5b0c0d=_0x38abd1['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5b0c0d['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x31f79f,_0x4ee37c){const _0x1c65a9=[];for(let _0x1f1a52 of _0x31f79f)_0x1f1a52['start']['nodeAfter']===_0x1f1a52['end']['parent']&&(_0x1f1a52=_0x38abd1['model']['createRange'](_0x38abd1['model']['createPositionAt'](_0x1f1a52['start']['nodeAfter'],0x0))),_0x1c65a9['push'](_0x1f1a52);_0x38abd1['model']['change'](_0x752c70=>{const _0x149dcd=_0x38abd1['model']['document']['selection'],_0x5edaeb=Array['from'](_0x149dcd['getRanges']())['map'](_0x3a2d86=>_0x27f355['fromRange'](_0x3a2d86));_0x752c70['setSelection'](_0x1c65a9),_0x38abd1['commands']['get'](_0x4ee37c['commandName'])['refresh'](),_0x4ee37c['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x38abd1['execute'](_0x4ee37c['commandName'],..._0x4ee37c['commandParams']),_0x752c70['setSelection'](_0x5edaeb);for(const _0x7de0c of _0x5edaeb)_0x7de0c['detach']();});}),_0x5b0c0d['descriptionFactory']['registerElementLabel'](function(_0x35c49d){const _0x3a6ed6=!_0x38abd1['model']['schema']['isObject'](_0x35c49d),_0x25ead4=_0x35c49d['previousSibling'],_0x32524e=_0x35c49d['nextSibling'],_0x1419f1=_0x35c49d['getAttribute']('listItemId'),_0x64a20b=!_0x25ead4||_0x25ead4['getAttribute']('listItemId')!==_0x1419f1,_0x59712c=!_0x32524e||_0x32524e['getAttribute']('listItemId')!==_0x1419f1;return _0x3a6ed6&&Boolean(_0x1419f1)&&_0x64a20b&&_0x59712c;},_0x4b3f02=>o(_0x2469cd,'ELEMENT_LIST_ITEM',_0x4b3f02));}['_registerLegacyDescription'](){const _0x2fb61e=this['editor'],_0x2edbb6=_0x2fb61e['locale'];function _0x2d3b82(_0xc8144f){const _0x1e6279=_0x2fb61e['commands']['get']('bulletedList')['value'],_0x4a4790=_0x2fb61e['commands']['get']('numberedList')['value'];return'numberedList'===_0xc8144f?_0x1e6279:_0x4a4790;}_0x2fb61e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x13800a){if('formatBlock'!=_0x13800a['type'])return;const {data:_0x31f01a}=_0x13800a;if(!_0x31f01a)return;let _0x5f5ace,_0x55f003,_0x42d1d3,_0x31b5ab;switch(_0x31f01a['commandName']){case'bulletedList':_0x42d1d3=_0x31f01a['commandParams'][0x0]['forceValue'],_0x31b5ab=_0x2d3b82(_0x31f01a['commandName']),_0x5f5ace=_0x42d1d3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x31b5ab&&_0x2fb61e['config']['get']('list.multiBlock')||(_0x5f5ace='*Change\x20to:*\x20%0'),_0x55f003={'type':'format','content':o(_0x2edbb6,_0x5f5ace,o(_0x2edbb6,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x42d1d3=_0x31f01a['commandParams'][0x0]['forceValue'],_0x31b5ab=_0x2d3b82(_0x31f01a['commandName']),_0x5f5ace=_0x42d1d3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x31b5ab&&_0x2fb61e['config']['get']('list.multiBlock')||(_0x5f5ace='*Change\x20to:*\x20%0'),_0x55f003={'type':'format','content':o(_0x2edbb6,_0x5f5ace,o(_0x2edbb6,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5f5ace='*Indent:*\x20%0',_0x55f003={'type':'format','content':o(_0x2edbb6,_0x5f5ace,o(_0x2edbb6,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5f5ace=function(_0x35f69f){const _0xbe626d=_0x35f69f['getFirstRange']();let _0x4d61e9=_0xbe626d['start']['nodeAfter'];for(;_0x4d61e9&&_0xbe626d['containsItem'](_0x4d61e9);){if(_0x4d61e9['getAttribute']('listIndent')>0x0)return!0x1;_0x4d61e9=_0x4d61e9['nextSibling'];}return!0x0;}(_0x13800a)?o(_0x2edbb6,'*Format:*\x20remove\x20from\x20%0',o(_0x2edbb6,function(_0x4a4817){return'ELEMENT_'+_0x4a4817['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x13800a))):o(_0x2edbb6,'*Outdent:*\x20%0',o(_0x2edbb6,'ELEMENT_LIST_ITEM')),_0x55f003={'type':'format','content':_0x5f5ace};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x31f01a['multipleBlocks']&&(_0x5f5ace='*Merge:*\x20%0',_0x55f003={'type':'deletion','content':o(_0x2edbb6,_0x5f5ace,o(_0x2edbb6,'ELEMENT_LIST_ITEM'))});}return _0x55f003;});}}function le(_0x4aa92c){let _0x10e2f9=_0x4aa92c['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x10e2f9;){const _0x5931cc=_0x10e2f9['getAttribute']('listItemId');if(!_0x5931cc)return!0x1;if(_0x5931cc==_0x4aa92c['data']['newValue'])return'newValue';if(_0x5931cc==_0x4aa92c['data']['oldValue'])return'oldValue';_0x10e2f9=_0x10e2f9['previousSibling'];}return!0x1;}class ue extends _0x4d360f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5cf3dd=this['editor']['config']['get']('list.properties'),_0x162bcc=this['editor']['plugins']['get']('TrackChangesEditing');_0x5cf3dd['styles']&&(_0x162bcc['enableDefaultAttributesIntegration']('listStyle'),_0x162bcc['registerBlockAttribute']('listStyle')),_0x5cf3dd['reversed']&&(_0x162bcc['enableDefaultAttributesIntegration']('listReversed'),_0x162bcc['registerBlockAttribute']('listReversed')),_0x5cf3dd['startIndex']&&(_0x162bcc['enableDefaultAttributesIntegration']('listStart'),_0x162bcc['registerBlockAttribute']('listStart'));const _0x29404f={'type':'format','content':''};_0x162bcc['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x330c34=this['editor']['locale'];_0x162bcc['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x330c34,'FORMAT_LIST_REVERSED')),_0x162bcc['descriptionFactory']['registerDescriptionCallback'](_0x2efc3=>{const {data:_0x1398d4}=_0x2efc3;if(_0x1398d4&&'listReversed'==_0x1398d4['key'])return null==_0x1398d4['newValue']||0x0==_0x1398d4['newValue']&&null==_0x1398d4['oldValue']?_0x29404f:void 0x0;}),_0x162bcc['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x330c34,'FORMAT_LIST_START')),_0x162bcc['descriptionFactory']['registerDescriptionCallback'](_0x7d46bc=>{const {data:_0x2c48ae}=_0x7d46bc;if(_0x2c48ae&&'listStart'==_0x2c48ae['key'])return null==_0x2c48ae['newValue']||0x1==_0x2c48ae['newValue']&&null==_0x2c48ae['oldValue']?_0x29404f:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x269c83=>{if(_0x269c83['batch']['isUndo'])return!0x1;let _0x3cf973=!0x1;const _0x4188a4=_0x162bcc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5424da=>{const _0x393035=_0x162bcc['_getAttributeKey'](_0x5424da);return'listStart'==_0x393035||'listReversed'==_0x393035;});for(const _0x210e84 of _0x4188a4){const _0x4e38da=_0x210e84['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4e38da||'customNumbered'==_0x4e38da)continue;_0x162bcc['_findSuggestions'](_0x210e84['getFirstRange'](),'attribute')['find'](_0x181165=>'listType'==_0x162bcc['_getAttributeKey'](_0x181165['suggestion']))||(_0x269c83['removeMarker'](_0x210e84['getFirstMarker']()),_0x3cf973=!0x0);}return _0x3cf973;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3dab62){const _0x548745=this['editor']['locale'],{data:_0x2610d3}=_0x3dab62,_0x1ed976={'type':'format','content':''};if(!_0x2610d3||'listStyle'!=_0x2610d3['key'])return;if(!_0x2610d3['oldValue'])return'default'==_0x2610d3['newValue']?_0x1ed976:{'type':'format','content':''+o(_0x548745,'*Set\x20format:*\x20%0',o(_0x548745,this['_getTranslationKeyForListStyle'](_0x2610d3['newValue'])))};if(!_0x2610d3['newValue']){if('default'==_0x2610d3['oldValue'])return _0x1ed976;let _0x56a5c3=_0x3dab62['head'];for(;_0x56a5c3;){if(_0x56a5c3['data']&&'listType'==_0x56a5c3['data']['key']&&_0x56a5c3['data']['newValue'])return _0x1ed976;_0x56a5c3=_0x56a5c3['next'];}return{'type':'format','content':''+o(_0x548745,'*Remove\x20format:*\x20%0',o(_0x548745,this['_getTranslationKeyForListStyle'](_0x2610d3['oldValue'])))};}if('default'!=_0x2610d3['newValue'])return{'type':'format','content':''+o(_0x548745,'*Set\x20format:*\x20%0',o(_0x548745,this['_getTranslationKeyForListStyle'](_0x2610d3['newValue'])))};let _0x3d3328=_0x3dab62['head'];for(;_0x3d3328;){if(_0x3d3328['data']&&'listType'==_0x3d3328['data']['key']&&_0x3d3328['data']['newValue']&&_0x3d3328['data']['oldValue'])return _0x1ed976;_0x3d3328=_0x3d3328['next'];}return{'type':'format','content':o(_0x548745,'*Set\x20format:*\x20%0',o(_0x548745,'ELEMENT_'+_0x3dab62['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4395ae=this['editor'],_0x264db8=_0x4395ae['locale'];_0x4395ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x464a67=>{if('formatBlock'!=_0x464a67['type'])return;const {data:_0x42a023}=_0x464a67;if(!_0x42a023)return;let _0x49fab2,_0x4741d4;switch(_0x42a023['commandName']){case'listStyle':_0x49fab2='*Change\x20to:*\x20%0',_0x4741d4={'type':'format','content':o(_0x264db8,_0x49fab2,o(_0x264db8,this['_getTranslationKeyForListStyle'](_0x42a023['commandParams'][0x0]['type'])))};break;case'listReversed':_0x49fab2=_0x42a023['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4741d4={'type':'format','content':o(_0x264db8,_0x49fab2)};break;case'listStart':_0x49fab2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4741d4={'type':'format','content':o(_0x264db8,_0x49fab2,_0x42a023['commandParams'][0x0]['startIndex'])};}return _0x4741d4;});}['_getTranslationKeyForListStyle'](_0x119d5a){return'ELEMENT_'+function(_0x3741ac){if(pe['includes'](_0x3741ac))return'bulleted';if(ye['includes'](_0x3741ac))return'numbered';return null;}(_0x119d5a)['toUpperCase']()+'_LIST_'+_0x119d5a['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x4d360f{static get['requires'](){return[_0x417486];}['init'](){const _0x37c5e3=this['editor'],_0x43b0a8=_0x37c5e3['plugins']['get']('TrackChangesEditing'),_0x1ac031=_0x37c5e3['commands']['get']('enter');_0x43b0a8['enableCommand']('enter',()=>{_0x37c5e3['model']['change'](_0x2e6a79=>{const _0x4ac53f=_0x37c5e3['model']['document']['selection'],_0x337c1c=_0x4ac53f['getFirstPosition'](),_0x2cbcd2=_0x27f355['fromRange'](_0x4ac53f['getFirstRange']());if(_0x1ac031['enterBlock'](_0x2e6a79)){const _0x38e653=_0x37c5e3['model']['createPositionAt'](_0x337c1c['parent']['nextSibling'],0x0),_0x56529c=_0x2e6a79['createRange'](_0x337c1c,_0x38e653);_0x43b0a8['markInsertion'](_0x56529c);}else _0x2e6a79['setSelection'](_0x2e6a79['createRange'](_0x2cbcd2['end']));_0x2cbcd2['detach'](),_0x1ac031['fire']('afterExecute',{'writer':_0x2e6a79});});}),_0x37c5e3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x37c5e3,'split'),{'priority':'high'}),_0x37c5e3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x47821f,_0x262271,_0x2d8ad2)=>{const _0xec6ad0=_0x2d8ad2['mapper']['markerNameToElements'](_0x262271['markerName']);if(_0xec6ad0){for(const _0x36b577 of _0xec6ad0)_0x36b577['hasClass']('ck-suggestion-marker-split')&&(_0x2d8ad2['mapper']['unbindElementFromMarkerName'](_0x36b577,_0x262271['markerName']),_0x2d8ad2['writer']['remove'](_0x36b577));}},{'priority':'high'}),_0x37c5e3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x28e304,_0x422e0b,_0x6f50d7)=>{_0x6f50d7['options']['showSuggestionHighlights']&&_e(_0x37c5e3,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x28e304,_0x422e0b,_0x6f50d7);},{'priority':'high'});}}class J extends _0x4d360f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4f5ba3=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f5ba3['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4f5ba3['enableCommand']('findNext'),_0x4f5ba3['enableCommand']('findPrevious'),_0x4f5ba3['enableCommand']('replace'),_0x4f5ba3['enableCommand']('replaceAll');}['handleFindCommand'](_0x4833a9,_0x98d47b,_0x342aa4={}){const _0x1de9f9=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4833a9(_0x241cd8=>('string'==typeof _0x98d47b?_0x1de9f9['findByTextCallback'](_0x98d47b,_0x342aa4):_0x98d47b)(_0x241cd8)['filter'](_0x1fdf13=>!0x1===this['_isInDeletionRange'](_0x1fdf13,_0x241cd8['item'])),_0x342aa4);}['_isInDeletionRange'](_0x468fd1,_0x38bd17){const _0x1e902e=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x38bd17,_0x468fd1['start']),this['editor']['model']['createPositionAt'](_0x38bd17,_0x468fd1['end']));for(const _0x59e834 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1e902e['getIntersection'](_0x59e834['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 _0x4d360f{['afterInit'](){const _0x5006a1=this['editor']['locale'],_0x5b9754=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4f48e2,commandName:_0x204cac}of ro)this['editor']['plugins']['has'](_0x4f48e2)&&(_0x5b9754['enableDefaultAttributesIntegration'](_0x204cac),_0x5b9754['registerInlineAttribute'](_0x204cac));_0x5006a1['t'],_0x5b9754['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5006a1,'FORMAT_FONT_SIZE')),_0x5b9754['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5006a1,'FORMAT_FONT_FAMILY')),_0x5b9754['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5006a1,'FORMAT_FONT_COLOR')),_0x5b9754['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5006a1,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30fb54=this['editor'],_0x356648=_0x30fb54['locale'];_0x30fb54['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59987f=>{const _0x54be8f=_0x356648['t'];if('formatInline'!=_0x59987f['type'])return;const {data:_0x1f8b14}=_0x59987f;if(null!=_0x1f8b14){if('fontSize'==_0x1f8b14['commandName']){const _0x2182a8=_0x1f8b14['commandParams'][0x0]['value'];if(_0x2182a8){const _0x350856=_0x54be8f(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x32effb=>_0x32effb['model']==_0x2182a8)['title'])['toLowerCase']();return{'type':'format','content':o(_0x356648,'*Set\x20font\x20size:*\x20%0',_0x350856)};}return{'type':'format','content':o(_0x356648,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1f8b14['commandName']){const _0x502b60=_0x1f8b14['commandParams'][0x0]['value'];return _0x502b60?{'type':'format','content':o(_0x356648,'*Set\x20font\x20family:*\x20%0',_0x502b60)}:{'type':'format','content':o(_0x356648,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1f8b14['commandName']){const _0x3427a2=_0x1f8b14['commandParams'][0x0]['value'];if(_0x3427a2){const _0x372a7f=_0x7e92f6(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1bd053=>_0x1bd053['model']==_0x3427a2);let _0x2fb358=_0x3427a2,_0x9063c9='';return _0x372a7f&&(_0x2fb358=_0x372a7f['label'],_0x9063c9=_0x54be8f(_0x2fb358)['toLowerCase']()),{'type':'format','content':o(_0x356648,'*Set\x20font\x20color:*\x20%0',_0x9063c9)['trim'](),'color':{'value':_0x3427a2,'title':_0x9063c9||_0x2fb358}};}return{'type':'format','content':o(_0x356648,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1f8b14['commandName']){const _0x4528e9=_0x1f8b14['commandParams'][0x0]['value'];if(_0x4528e9){const _0x4ac96b=_0x7e92f6(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2627fa=>_0x2627fa['model']==_0x4528e9);let _0x2d3eff=_0x4528e9,_0x160593='';return _0x4ac96b&&(_0x2d3eff=_0x4ac96b['label'],_0x160593=_0x54be8f(_0x2d3eff)['toLowerCase']()),{'type':'format','content':o(_0x356648,'*Set\x20font\x20background\x20color:*\x20%0',_0x160593)['trim'](),'color':{'value':_0x4528e9,'title':_0x160593||_0x2d3eff}};}return{'type':'format','content':o(_0x356648,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x4d360f{['afterInit'](){const _0x3d8707=this['editor'],_0x5a01a8=_0x3d8707['plugins']['get']('TrackChangesEditing'),_0x554161=_0x3d8707['commands']['get']('copyFormat'),_0x249618=_0x3d8707['commands']['get']('pasteFormat');_0x554161&&_0x249618&&(_0x5a01a8['enableDefaultAttributesIntegration']('pasteFormat'),_0x5a01a8['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x36048d=this['editor'],_0x6671ff=_0x36048d['locale'];_0x36048d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f3135=>{if('formatBlock'!=_0x5f3135['type']&&'formatInline'!=_0x5f3135['type'])return;const {data:_0x1b9c5b}=_0x5f3135;if(_0x1b9c5b&&'pasteFormat'===_0x1b9c5b['commandName']){const _0x5abf72=[],_0x19c113=_0x1b9c5b['commandParams'][0x0];for(const [_0x407890,_0x4e9a00]of Object['entries'](_0x19c113))_0x5abf72['push'](so(_0x36048d,_0x407890,_0x4e9a00));return _0x5abf72['length']?{'type':'format','content':o(_0x6671ff,'*Set\x20format\x20to:*\x20%0',_0x5abf72['join'](',\x20'))}:{'type':'format','content':o(_0x6671ff,'*Remove\x20all\x20formatting*')};}});}}function so(_0x11ac1e,_0x1b13f2,_0x13a5af){const _0x55e0ba=_0x11ac1e['locale']['t'],_0x25d78f=_0x1b13f2['split'](/(?=[A-Z])/)['join']('\x20'),_0x489701=_0x55e0ba(_0x25d78f['charAt'](0x0)['toUpperCase']()+_0x25d78f['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x13a5af)return _0x489701;if('fontColor'===_0x1b13f2||'fontBackgroundColor'===_0x1b13f2){const _0x18f6eb=_0x7e92f6(_0x11ac1e['config']['get']('fontColor.colors'))['find'](_0x3935ab=>_0x3935ab['model']==_0x13a5af);return _0x489701+'\x20('+(_0x18f6eb?_0x55e0ba(_0x18f6eb['label'])['toLowerCase']():_0x13a5af)+')';}if('fontSize'===_0x1b13f2&&isNaN(parseFloat(_0x13a5af))){const _0x30435b=_0x11ac1e['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x11ac1e['config']['get']('fontSize.options'))['find'](_0x410967=>_0x410967['model']==_0x13a5af);return _0x489701+'\x20('+(_0x30435b?_0x55e0ba(_0x30435b['title'])['toLowerCase']():_0x13a5af)+')';}return _0x489701+'\x20('+_0x13a5af+')';}class Y extends _0x4d360f{['_headingOptions'];['afterInit'](){const _0x28a66a=this['editor'];if(!_0x28a66a['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x28a66a['config']['get']('heading.options');const _0x1cdf29=_0x28a66a['locale'],_0x5473d5=_0x28a66a['plugins']['get']('TrackChangesEditing');_0x5473d5['enableDefaultAttributesIntegration']('heading');for(const _0x762e60 of this['_headingOptions'])'paragraph'!=_0x762e60['model']&&_0x5473d5['descriptionFactory']['registerElementLabel'](_0x762e60['model'],_0x392cf5=>{const _0x2c5edb=this['_getHeadingLevel'](_0x762e60['model']);return null!==_0x2c5edb?_0x9ebd0f(_0x392cf5,_0x2c5edb):_0x221360(_0x392cf5,_0x762e60['title']);});function _0x9ebd0f(_0x9dc051,_0x25a2ad){return o(_0x1cdf29,'ELEMENT_HEADING',[_0x9dc051,_0x25a2ad]);}function _0x221360(_0x24b9c8,_0x35b5c7){return o(_0x1cdf29,'ELEMENT_HEADING_CUSTOM',[_0x24b9c8,_0x35b5c7]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26fa39=this['editor'],_0x140f41=_0x26fa39['locale'];function _0x1bf344(_0x2d5952,_0x5a32ad){return o(_0x140f41,'ELEMENT_HEADING_CUSTOM',[_0x2d5952,_0x5a32ad]);}_0x26fa39['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x519186=>{if('formatBlock'!=_0x519186['type'])return;const {data:_0x2c81c4}=_0x519186;if(_0x2c81c4&&'heading'==_0x2c81c4['commandName']){const _0x501cec=_0x2c81c4['commandParams'][0x0]['value'],_0x469d6c=this['_getHeadingLevel'](_0x501cec);if(null!==_0x469d6c)return{'type':'format','content':o(_0x140f41,'*Change\x20to:*\x20%0',(_0x575ae2=0x1,_0x469dda=_0x469d6c,o(_0x140f41,'ELEMENT_HEADING',[_0x575ae2,_0x469dda])))};const _0x41e5f3=this['_headingOptions']['find'](_0x471278=>_0x471278['model']===_0x501cec)['title'];return{'type':'format','content':o(_0x140f41,'*Change\x20to:*\x20%0',_0x1bf344(0x1,_0x41e5f3))};}var _0x575ae2,_0x469dda;});}['_getHeadingLevel'](_0x3e8905){const _0x3c004a=_0x3e8905['match'](/^heading(\d+)/);if(_0x3c004a)return _0x3c004a[0x1];const _0xda1475=this['_headingOptions']?.['find'](_0x22017a=>_0x22017a['model']==_0x3e8905);if(_0xda1475&&_0xda1475['view']){const _0x419027=_0xda1475['view'],_0x1e172f=(_0x419027['name']??_0x419027)['match'](/^h(\d+)/);if(_0x1e172f)return _0x1e172f[0x1];}return null;}}class Z extends _0x4d360f{['afterInit'](){const _0x561c36=this['editor'];if(!_0x561c36['plugins']['has']('HighlightEditing'))return;const _0xb27934=_0x561c36['plugins']['get']('TrackChangesEditing'),_0x4eabde=_0x561c36['locale'];_0xb27934['enableDefaultAttributesIntegration']('highlight'),_0xb27934['registerInlineAttribute']('highlight'),_0xb27934['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4eabde,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb7283f=this['editor'],_0x28e62f=_0xb7283f['locale'];_0xb7283f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ab20e=>{if('formatInline'!=_0x4ab20e['type'])return;const {data:_0x552c00}=_0x4ab20e;if(_0x552c00&&'highlight'==_0x552c00['commandName']){const _0x2dc60e=_0x28e62f['t'],_0x803855=_0x552c00['commandParams'][0x0]['value'];if(_0x803855){const _0x5c8151=_0xb7283f['config']['get']('highlight.options')['find'](_0x926d03=>_0x926d03['model']==_0x803855),_0xabc2e7=_0x2dc60e(_0x5c8151['title'])['toLowerCase']();return{'type':'format','content':o(_0x28e62f,'*Set\x20highlight:*\x20%0',_0xabc2e7),'color':{'value':_0x5c8151['color'],'title':_0x5c8151['title']}};}return{'type':'format','content':o(_0x28e62f,'*Remove\x20highlight*',o(_0x28e62f,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x4d360f{['afterInit'](){const _0x1b7503=this['editor'];if(!_0x1b7503['plugins']['has']('HorizontalLineEditing'))return;_0x1b7503['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4c191d=_0x1b7503['plugins']['get']('TrackChangesEditing'),_0x3d0604=_0x1b7503['locale'];_0x4c191d['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2abcee=>o(_0x3d0604,'ELEMENT_HORIZONTAL_LINE',_0x2abcee)),_0x1b7503['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x9b3bf9,{writer:_0x52cda4,options:_0x585787})=>{if(!_0x585787['showSuggestionHighlights'])return null;const _0x1544fc=_0x52cda4['createContainerElement']('div'),_0x2cc067=_0x52cda4['createEmptyElement']('hr');return _0x52cda4['addClass']('ck-horizontal-line',_0x1544fc),_0x52cda4['insert'](_0x52cda4['createPositionAt'](_0x1544fc,0x0),_0x2cc067),_0x1544fc;},'converterPriority':'high'});}}class et extends _0x4d360f{['afterInit'](){const _0xb48573=this['editor'];if(!_0xb48573['plugins']['has']('HtmlEmbed'))return;const _0x2c7613=_0xb48573['plugins']['get']('TrackChangesEditing'),_0x1b0ee8=_0xb48573['locale'];_0x2c7613['descriptionFactory']['registerElementLabel']('rawHtml',_0xd7fee=>o(_0x1b0ee8,'ELEMENT_HTML_EMBED',_0xd7fee)),_0x2c7613['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2c7613['registerBlockAttribute']('value'),_0x2c7613['descriptionFactory']['registerDescriptionCallback'](_0xa94b49=>{if('attribute'!=_0xa94b49['type'])return;const {data:_0x54e3b4}=_0xa94b49;if(_0x54e3b4&&'value'==_0x54e3b4['key']&&_0xa94b49['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3b590d=o(_0x1b0ee8,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1b0ee8,'*Change\x20%0\x20content*',_0x3b590d)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3fc89b=this['editor'],_0x3759d7=_0x3fc89b['locale'];_0x3fc89b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xcb29b1=>{if('formatBlock'!=_0xcb29b1['type'])return;const {data:_0x9f75f2}=_0xcb29b1;if(_0x9f75f2&&'htmlEmbed'==_0x9f75f2['commandName']){const _0x10b800=o(_0x3759d7,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3759d7,'*Change\x20%0\x20content*',_0x10b800)};}});}}class it extends _0x4d360f{['afterInit'](){const _0x7fb647=this['editor'];if(!_0x7fb647['plugins']['has']('ImageEditing'))return;const _0x135449=_0x7fb647['plugins']['get']('TrackChangesEditing'),_0x552ab8=_0x7fb647['plugins']['get']('ImageUtils'),_0x55ec7e=_0x7fb647['locale'];_0x135449['enableCommand']('insertImage'),_0x135449['descriptionFactory']['registerElementLabel']('imageBlock',_0xd336f=>o(_0x55ec7e,'ELEMENT_IMAGE',_0xd336f)),_0x135449['descriptionFactory']['registerElementLabel']('imageInline',_0x26e385=>o(_0x55ec7e,'ELEMENT_INLINE_IMAGE',_0x26e385)),_0x135449['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x55ec7e,'ELEMENT_CAPTION')),_0x7fb647['plugins']['has']('ImageUploadEditing')&&_0x135449['enableCommand']('uploadImage'),_0x7fb647['plugins']['has']('ImageBlockEditing')&&_0x7fb647['plugins']['has']('ImageInlineEditing')&&(_0x135449['enableCommand']('imageTypeInline',(_0x1a571f,_0x273898)=>{const _0x27f5b0=_0x552ab8['getClosestSelectedImageElement'](_0x7fb647['model']['document']['selection']);_0x7fb647['model']['change'](()=>{_0x135449['markBlockFormat'](_0x27f5b0,{'commandName':'imageTypeInline','commandParams':[_0x273898]},[],'convertBlockImageToInline');});}),_0x135449['enableCommand']('imageTypeBlock',(_0x39c40e,_0x1127e0)=>{_0x7fb647['model']['change'](_0x1ef902=>{let _0xcbfa64=_0x552ab8['getClosestSelectedImageElement'](_0x7fb647['model']['document']['selection']),_0x544514=_0x1ef902['createRangeOn'](_0xcbfa64);const _0x3cea7b=_0x5f2f62['fromPosition'](_0x544514['start'],'toPrevious'),_0x22764e=_0x5f2f62['fromPosition'](_0x544514['end'],'toNext');_0x135449['forceDefaultExecution'](()=>_0x39c40e(_0x1127e0)),_0xcbfa64=_0x552ab8['getClosestSelectedImageElement'](_0x7fb647['model']['document']['selection']),_0x544514=_0x1ef902['createRangeOn'](_0xcbfa64);const _0x3363e1=_0x1ef902['createRange'](_0x3cea7b,_0x22764e);_0x3cea7b['detach'](),_0x22764e['detach'](),_0x135449['markBlockFormat'](_0xcbfa64,{'commandName':'imageTypeInline','commandParams':[_0x1127e0]},[],'convertInlineImageToBlock'),_0x3363e1['start']['isBefore'](_0x544514['start'])&&_0x135449['markInsertion'](_0x1ef902['createRange'](_0x3363e1['start'],_0x544514['start']),'convertInlineImageToBlock'),_0x544514['end']['isBefore'](_0x3363e1['end'])&&_0x135449['markInsertion'](_0x1ef902['createRange'](_0x544514['end'],_0x3363e1['end']),'convertInlineImageToBlock');});}),_0x135449['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x135449['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x135449['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x135449['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x135449['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x135449['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x41450])=>{const _0x3b8731=_0x135449['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x121105=_0x41450['start'],_0x453254=_0x41450['end'];const _0x3986d1=_0x7fb647['model']['schema']['getNearestSelectionRange'](_0x121105,'backward'),_0x588cc1=_0x7fb647['model']['schema']['getNearestSelectionRange'](_0x453254,'forward');_0x3986d1['isCollapsed']&&(_0x121105=_0x3986d1['start']),_0x588cc1['isCollapsed']&&(_0x453254=_0x588cc1['end']),_0x3b8731([_0x7fb647['model']['createRange'](_0x121105,_0x453254)]);}),_0x135449['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5ceea4),_0x135449['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5ceea4)),_0x7fb647['plugins']['has']('ImageCaptionEditing')&&(_0x135449['enableCommand']('toggleImageCaption',(_0x3287bf,_0x1d0ca9)=>{const _0x2b0311=_0x7fb647['plugins']['get']('ImageCaptionUtils');let _0x1d875c=_0x552ab8['getClosestSelectedImageElement'](_0x7fb647['model']['document']['selection']),_0x2a957a=_0x2b0311['getCaptionFromImageModelElement'](_0x1d875c);_0x7fb647['model']['change'](()=>{if(_0x2a957a)return void _0x135449['markDeletion'](_0x7fb647['model']['createRangeOn'](_0x2a957a));const _0x1c0ed5=_0x552ab8['isBlockImage'](_0x1d875c);_0x3287bf(_0x1d0ca9),_0x1d875c=_0x552ab8['getClosestSelectedImageElement'](_0x7fb647['model']['document']['selection']),_0x2a957a=_0x2b0311['getCaptionFromImageModelElement'](_0x1d875c),_0x135449['markInsertion'](_0x7fb647['model']['createRangeOn'](_0x2a957a),_0x1c0ed5?null:'imageCaption');});}),_0x135449['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5ceea4));const _0x5882c9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x278400(_0x1818b4,_0x501c04){const _0xfa659a=_0x5882c9['findIndex'](({type:_0x4ed06c,subType:_0x1fc114})=>_0x1818b4['type']==_0x4ed06c&&_0x1818b4['subType']==_0x1fc114),_0x5cff54=_0x5882c9['findIndex'](({type:_0x20327e,subType:_0x22084a})=>_0x501c04['type']==_0x20327e&&_0x501c04['subType']==_0x22084a);if(_0xfa659a<0x0||_0x5cff54<0x0)return!0x1;const _0x13cb05=_0x1818b4['getFirstRange'](),_0xa410d2=_0x501c04['getFirstRange']();if((0x0==_0xfa659a||0x1==_0xfa659a)&&0x2==_0x5cff54&&_0x13cb05['isIntersecting'](_0xa410d2))return!0x0;if(0x2==_0xfa659a&&0x3==_0x5cff54){const _0x278d5a=_0x135449['_findSuggestions'](_0x13cb05,'insertion')['filter'](({suggestion:_0x41f609,meta:_0x1b9497})=>_0x1b9497['isOwn']&&'convertInlineImageToBlock'==_0x41f609['subType']);if(_0x278d5a['length']>0x1&&_0xa410d2['end']['isEqual'](_0x13cb05['start']))return!0x0;if(0x1==_0x278d5a['length']&&(_0x13cb05['start']['isEqual'](_0xa410d2['end'])||_0x13cb05['end']['isEqual'](_0xa410d2['start'])))return!0x0;}if(0x3==_0xfa659a&&0x3==_0x5cff54&&_0x13cb05['start']['isBefore'](_0xa410d2['start'])){const _0xa1186a=_0x13cb05['end']['nodeAfter'],_0x6f0bcc=_0xa410d2['start']['nodeBefore'];return _0x552ab8['isBlockImage'](_0xa1186a)&&_0xa1186a===_0x6f0bcc;}return!0x1;}function _0x5ceea4(_0xcf5eb6,_0x53c833){return _0x278400(_0xcf5eb6,_0x53c833)?[_0xcf5eb6,_0x53c833]:_0x278400(_0x53c833,_0xcf5eb6)?[_0x53c833,_0xcf5eb6]:null;}_0x7fb647['plugins']['has']('ImageResize')&&(_0x135449['enableDefaultAttributesIntegration']('resizeImage'),_0x135449['registerBlockAttribute']('resizedWidth'),_0x135449['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x55ec7e,'FORMAT_IMAGE_SIZE'))),_0x7fb647['plugins']['has']('ImageTextAlternativeEditing')&&(_0x135449['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x135449['registerBlockAttribute']('alt')),_0x135449['descriptionFactory']['registerDescriptionCallback'](_0x8d0ab3=>{if(!!_0x5882c9['find'](({type:_0x38a8fb,subType:_0x567b78})=>_0x8d0ab3['type']==_0x38a8fb&&_0x8d0ab3['subType']==_0x567b78))return _0x8d0ab3['previous']?{}:void 0x0;}),_0x135449['descriptionFactory']['registerDescriptionCallback'](_0x2e14b9=>{if('insertion'==_0x2e14b9['type']||'deletion'==_0x2e14b9['type']){const _0x2642c4=_0x2e14b9['getContainedElement']();if(_0x2642c4&&_0x2642c4['is']('element','caption'))return{'type':'insertion'==_0x2e14b9['type']?'addObject':'removeObject','element':_0x2642c4,'quantity':0x1};}}),_0x135449['descriptionFactory']['registerDescriptionCallback'](_0x3d27d7=>'formatBlock'==_0x3d27d7['type']&&'convertInlineImageToBlock'==_0x3d27d7['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3d27d7['type']&&'convertBlockImageToInline'==_0x3d27d7['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x135449['descriptionFactory']['registerDescriptionCallback'](_0x4b4fd8=>{if('attribute'!=_0x4b4fd8['type'])return;const {data:_0x3704bf}=_0x4b4fd8;if(!_0x3704bf||'alt'!=_0x3704bf['key'])return;const _0x393ef5=_0x3704bf['newValue'];return _0x393ef5?{'type':'format','content':o(_0x55ec7e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x393ef5+'\x22')}:{'type':'format','content':o(_0x55ec7e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b11d6=this['editor'],_0xa8433a=_0x3b11d6['locale'];_0x3b11d6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3858a5=>{if('formatBlock'!=_0x3858a5['type']&&'formatInline'!=_0x3858a5['type'])return;const {data:_0x31fd21}=_0x3858a5;if(_0x31fd21){if('imageTextAlternative'==_0x31fd21['commandName']){const _0x4a5b8b=_0x31fd21['commandParams'][0x0]['newValue'];return _0x4a5b8b?{'type':'format','content':o(_0xa8433a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4a5b8b+'\x22')}:{'type':'format','content':o(_0xa8433a,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x31fd21['commandName']){const _0x316be7=_0x31fd21['commandParams'][0x0]['width'];return _0x316be7?{'type':'format','content':o(_0xa8433a,'*Set\x20image\x20width:*\x20%0',_0x316be7)}:{'type':'format','content':o(_0xa8433a,'*Reset\x20image\x20width*')};}}});}}class st extends _0x4d360f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x452b62=this['editor']['locale'],_0x108376=this['editor']['plugins']['get']('TrackChangesEditing');_0x108376['enableDefaultAttributesIntegration']('replaceImageSource'),_0x108376['registerBlockAttribute']('src'),_0x108376['descriptionFactory']['registerDescriptionCallback'](_0x3711a4=>{if('attribute'!=_0x3711a4['type'])return;const {data:_0x3080db}=_0x3711a4;return _0x3080db&&'src'==_0x3080db['key']?_0x3080db['newValue']&&_0x3080db['oldValue']?{'type':'format','content':o(_0x452b62,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x6894d6=this['editor']['plugins']['get']('TrackChangesEditing');_0x6894d6['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x6894d6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x6894d6['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x6894d6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x443dbb=this['editor'],_0x546dfa=_0x443dbb['locale'];_0x443dbb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20733d=>{if('formatBlock'!=_0x20733d['type']&&'formatInline'!=_0x20733d['type'])return;const {data:_0x2ea8e9}=_0x20733d;if(!_0x2ea8e9||'replaceImageSource'!=_0x2ea8e9['commandName'])return;return{'type':'format','content':o(_0x546dfa,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x4d360f{['afterInit'](){const _0x597120=this['editor'];if(!_0x597120['plugins']['has']('ImageStyleEditing'))return;const _0x1a5f74=_0x597120['plugins']['get']('TrackChangesEditing'),_0x53a71c=_0x597120['plugins']['get']('ImageUtils'),_0x3798b0={};_0x1a5f74['enableCommand']('imageStyle',(_0x217dbe,_0xdee0d8)=>{const _0x31d8f2=_0x597120['plugins']['get']('Users')['me'],_0x5cc9c5=_0x597120['commands']['get']('imageStyle');let _0x41874f=_0x53a71c['getClosestSelectedImageElement'](_0x597120['model']['document']['selection']),_0x3c1169=_0x597120['model']['createRangeOn'](_0x41874f),_0x45c02f=_0x5cc9c5['value'];if(_0x45c02f==_0xdee0d8['value'])return;const _0x38dcd9={'commandName':'imageStyle','commandParams':[_0xdee0d8],'formatGroupId':_0x3cefaa()};_0x597120['model']['change'](()=>{if(_0x1a5f74['getSuggestions']()['filter'](_0x44e0aa=>_0x44e0aa['isInContent']&&_0x31d8f2==_0x44e0aa['author']&&('formatBlock'==_0x44e0aa['type']||'formatInline'==_0x44e0aa['type'])&&('imageStylePreApply'==_0x44e0aa['subType']||'imageStylePostApply'==_0x44e0aa['subType'])&&_0x44e0aa['getFirstRange']()['isEqual'](_0x3c1169))['forEach'](_0x361548=>_0x1a5f74['discardSuggestion'](_0x361548['head'])),_0x41874f=_0x53a71c['getClosestSelectedImageElement'](_0x597120['model']['document']['selection']),_0x3c1169=_0x597120['model']['createRangeOn'](_0x41874f),_0x5cc9c5['refresh'](),_0x597120['commands']['get']('imageTypeInline')['refresh'](),_0x597120['commands']['get']('imageTypeBlock')['refresh'](),_0x45c02f=_0x5cc9c5['value'],_0x45c02f!=_0xdee0d8['value'])return _0x53a71c['isInlineImage'](_0x41874f)&&_0x5cc9c5['shouldConvertImageType'](_0xdee0d8['value'],_0x41874f)?(_0x217dbe({..._0xdee0d8,'setImageSizes':!0x1}),_0x41874f=_0x53a71c['getClosestSelectedImageElement'](_0x597120['model']['document']['selection']),void _0x1a5f74['markBlockFormat'](_0x41874f,{..._0x38dcd9,'commandReversedParams':[{'value':_0x45c02f||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x53a71c['isBlockImage'](_0x41874f)?_0x1a5f74['markBlockFormat'](_0x41874f,_0x38dcd9,[],'imageStylePostApply'):_0x1a5f74['markInlineFormat'](_0x3c1169,_0x38dcd9,'imageStylePostApply'));});});for(const _0x2d8379 of _0x597120['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3798b0[_0x2d8379['name']]=_0x2d8379['title']['toLowerCase']();_0x1a5f74['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1a5f74['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1a5f74['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1a5f74['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x58d0a2])=>{_0x53a71c['setImageNaturalSizeAttributes'](_0x58d0a2['getContainedElement']());}),_0x1a5f74['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3fb67b,_0x32c281)=>{_0x1a5f74['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3fb67b,{'commandName':_0x32c281['commandName'],'commandParams':_0x32c281['commandReversedParams']});}),_0x1a5f74['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x348fd1,_0x569441){if(_0x58622e(_0x348fd1,_0x569441))return[_0x348fd1,_0x569441];if(_0x58622e(_0x569441,_0x348fd1))return[_0x569441,_0x348fd1];return null;});const _0x3c7405=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x58622e(_0x5c8614,_0x3e3b46){const _0x671c77=_0x3c7405['findIndex'](({type:_0x4a47a1,subType:_0x2b8b9e})=>_0x5c8614['type']==_0x4a47a1&&_0x5c8614['subType']==_0x2b8b9e),_0x532cef=_0x3c7405['findIndex'](({type:_0x3dc444,subType:_0x341888})=>_0x3e3b46['type']==_0x3dc444&&_0x3e3b46['subType']==_0x341888);if(_0x671c77<0x0||_0x532cef<0x0)return!0x1;const _0x5d27a7=_0x5c8614['getFirstRange'](),_0x26d0f6=_0x3e3b46['getFirstRange']();if((0x0==_0x671c77||0x1==_0x671c77)&&0x2==_0x532cef&&_0x5d27a7['isIntersecting'](_0x26d0f6))return!0x0;if(0x2==_0x671c77&&0x3==_0x532cef){const _0x370c08=_0x1a5f74['_findSuggestions'](_0x5d27a7,'insertion')['filter'](({suggestion:_0x4304c6,meta:_0x5c5075})=>_0x5c5075['isOwn']&&'convertInlineImageToBlock'==_0x4304c6['subType']);if(_0x370c08['length']>0x1&&_0x26d0f6['end']['isEqual'](_0x5d27a7['start']))return!0x0;if(0x1==_0x370c08['length']&&(_0x5d27a7['start']['isEqual'](_0x26d0f6['end'])||_0x5d27a7['end']['isEqual'](_0x26d0f6['start'])))return!0x0;}if(0x3==_0x671c77&&0x3==_0x532cef&&_0x5d27a7['start']['isBefore'](_0x26d0f6['start'])){const _0xf2ad1c=_0x5d27a7['end']['nodeAfter'],_0x120bb9=_0x26d0f6['start']['nodeBefore'];return _0x53a71c['isBlockImage'](_0xf2ad1c)&&_0xf2ad1c===_0x120bb9;}return!0x1;}_0x597120['model']['document']['registerPostFixer'](()=>{let _0x96e29a=!0x1;const _0x561a8a=Array['from'](_0x597120['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xf51a86,data:_0x37cd9e}of _0x561a8a){const {group:_0x443bc0,type:_0x44b86b,subType:_0x46e2d4,id:_0x201040}=_0x1a5f74['_splitMarkerName'](_0xf51a86);if('suggestion'==_0x443bc0&&_0x1a5f74['hasSuggestion'](_0x201040)){if('formatBlock'==_0x44b86b&&('imageStylePreApply'==_0x46e2d4||'imageStylePostApply'==_0x46e2d4)){const _0x47f386=_0x1a5f74['getSuggestion'](_0x201040);if(_0x37cd9e['newRange']){const _0x1e0501=_0x47f386['getFirstRange']()['getContainedElement']();if(_0x53a71c['isBlockImage'](_0x1e0501))continue;_0x1a5f74['discardSuggestion'](_0x47f386),_0x96e29a=!0x0;}}if('insertion'==_0x44b86b&&'imageCaption'==_0x46e2d4&&!_0x37cd9e['newRange']){const _0x4f34a9=_0x1a5f74['getSuggestion'](_0x201040);_0x4f34a9['next']&&_0x4f34a9['next']['isInContent']&&(_0x1a5f74['discardSuggestion'](_0x4f34a9['next']),_0x96e29a=!0x0);}}}return _0x96e29a;}),this['_registerLegacyDescription'](_0x3798b0);}['_registerLegacyDescription'](_0x5ba9b6){const _0x592ae7=this['editor'],_0x1d2a5c=_0x592ae7['locale'];_0x592ae7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d88a9=>{if('formatBlock'!=_0x2d88a9['type']&&'formatInline'!=_0x2d88a9['type'])return;const {data:_0xcbd8bc}=_0x2d88a9;if(!_0xcbd8bc||'imageStyle'!=_0xcbd8bc['commandName'])return;const _0x4896f9=_0xcbd8bc['commandParams'][0x0]['value'];return _0x1c358f('side'===_0x4896f9?o(_0x1d2a5c,'FORMAT_SIDE_IMAGE'):_0x5ba9b6[_0x4896f9]||_0x4896f9);function _0x1c358f(_0x3e46e4){return{'type':'format','content':o(_0x1d2a5c,'*Format:*\x20%0',_0x3e46e4)};}});}}class ot extends _0x4d360f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x457679){super(_0x457679),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x514fd1=this['editor'],_0x4afbb9=_0x514fd1['commands']['get']('importWord'),_0x2922da=_0x514fd1['commands']['get']('trackChanges');_0x4afbb9&&(_0x4afbb9['on']('execute',(_0x9ce483,[,_0x29ab5b])=>{this['_trackChangesValueDuringImport']=_0x2922da['value'],_0x29ab5b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4afbb9,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4afbb9,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2922da['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x514fd1['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x39a031,_0x519e9f){const {suggestions:_0x30155c}=_0x519e9f,_0x1abfea=this['editor']['commands']['get']('trackChanges'),_0x5c2614=_0x1abfea['value'];this['_trackChangesValueDuringImport']!==_0x5c2614&&(_0x1abfea['execute'](),this['_trackChangesExecuted']=!0x0),_0x30155c&&_0x30155c['forEach'](({id:_0x1a392e,type:_0x2135c5,author:_0xcecf32,created_at:_0x41fdcc})=>{const _0x15df62={'id':_0x1a392e,'type':_0x2135c5,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xcecf32,'createdAt':_0x41fdcc?new Date(_0x41fdcc):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x15df62);});}}class rt extends _0x4d360f{['afterInit'](){const _0x6ab034=this['editor'],_0x48ff48=_0x6ab034['plugins']['get']('TrackChangesEditing');if(_0x6ab034['plugins']['has']('IndentEditing')&&(_0x48ff48['enableCommand']('indent'),_0x48ff48['enableCommand']('outdent')),_0x6ab034['plugins']['has']('IndentBlock')){for(const _0x1011d4 of['indentBlock','outdentBlock'])_0x48ff48['enableDefaultAttributesIntegration'](_0x1011d4);}const _0x26673e=_0x6ab034['locale'];_0x48ff48['registerBlockAttribute']('blockIndent'),_0x48ff48['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x26673e,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bca86=this['editor'],_0x57a10c=_0x4bca86['locale'],_0x132eef=_0x4bca86['plugins']['get']('TrackChangesEditing');_0x132eef['descriptionFactory']['registerDescriptionCallback'](_0x1ea53d=>{if('formatBlock'!=_0x1ea53d['type'])return;const {data:_0x4ebcc2}=_0x1ea53d;if(!_0x4ebcc2)return;if('indentBlock'!=_0x4ebcc2['commandName']&&'outdentBlock'!=_0x4ebcc2['commandName'])return;const _0x2923eb=_0x1ea53d['getItems']()[0x0],_0x2f37a7=_0x132eef['descriptionFactory']['getItemLabel'](_0x2923eb);return'indentBlock'==_0x4ebcc2['commandName']?{'type':'format','content':o(_0x57a10c,'*Indent:*\x20%0',_0x2f37a7)}:'outdentBlock'==_0x4ebcc2['commandName']?{'type':'format','content':o(_0x57a10c,'*Outdent:*\x20%0',_0x2f37a7)}:void 0x0;});}}class at extends _0x4d360f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x4d360f{['afterInit'](){const _0x241e4b=this['editor'];if(!_0x241e4b['plugins']['has']('LinkEditing'))return;const _0x10fab6=_0x241e4b['plugins']['get']('TrackChangesEditing'),_0x22235e=_0x241e4b['commands']['get']('link');_0x10fab6['enableDefaultAttributesIntegration']('link'),_0x10fab6['enableDefaultAttributesIntegration']('unlink'),_0x10fab6['registerInlineAttribute']('linkHref');for(const _0x888855 of _0x22235e['manualDecorators'])_0x10fab6['registerInlineAttribute'](_0x888855['id']),_0x10fab6['descriptionFactory']['registerAttributeLabel'](_0x888855['id'],'link\x20('+_0x888855['label']['toLowerCase']()+')');_0x10fab6['descriptionFactory']['registerDescriptionCallback'](_0x2d2d0e=>{if('attribute'!=_0x2d2d0e['type'])return;const {data:_0x4aa6c5}=_0x2d2d0e;if(!_0x4aa6c5||'linkHref'!=_0x4aa6c5['key'])return;const _0x12d5a9=_0x4aa6c5['newValue'],_0x5a6ed2=_0x241e4b['locale'];return{'type':'format','content':null==_0x12d5a9?o(_0x5a6ed2,'*Remove\x20link*'):o(_0x5a6ed2,'*Set\x20link:*\x20%0','\x22'+_0x12d5a9+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x74844b=this['editor'],_0x2ae6a7=_0x74844b['locale'];_0x74844b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xdbcf3f=>{if('formatInline'!=_0xdbcf3f['type'])return;const {data:_0xfd65f2}=_0xdbcf3f;if(_0xfd65f2){if('link'==_0xfd65f2['commandName']){const _0x473de9=_0xfd65f2['commandParams'][0x0];return{'type':'format','content':o(_0x2ae6a7,'*Set\x20link:*\x20%0','\x22'+_0x473de9+'\x22')};}return'unlink'==_0xfd65f2['commandName']?{'type':'format','content':o(_0x2ae6a7,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x4d360f{['afterInit'](){const _0x324450=this['editor'],_0x106a33=_0x324450['locale'];if(!_0x324450['plugins']['has']('LegacyListEditing'))return;const _0x469f22=_0x324450['plugins']['get']('TrackChangesEditing'),_0x452c8e=_0x324450['plugins']['has']('LegacyTodoListEditing');function _0x45cdcb(_0x45bbca){return()=>{const _0xfd2682=_0x324450['model']['document']['selection'],_0x5616eb=_0x324450['commands']['get'](_0x45bbca);if(_0x5616eb['value'])return void _0x324450['execute']('paragraph',{});const _0x5c9984=_0x45bbca['slice'](0x0,-0x4),_0x13dbe2=function(_0x43ee3e,_0x687f2f,_0x1b24f7){let _0x347dc3=Array['from'](_0x43ee3e)['filter'](_0x4eb82d=>function(_0xd4c5e1,_0x90f3e7){return _0x90f3e7['checkChild'](_0xd4c5e1['parent'],'listItem')&&!_0x90f3e7['isObject'](_0xd4c5e1);}(_0x4eb82d,_0x1b24f7));_0x347dc3=_0x347dc3['filter'](_0x43cb25=>!_0x43cb25['is']('element','listItem')||_0x43cb25['getAttribute']('listType')!=_0x687f2f);const _0x28f915=new Set();for(const _0x4fb5a4 of _0x347dc3)_0x4fb5a4['is']('element','listItem')?_0x28f915['add'](me(_0x4fb5a4)):_0x28f915['add'](_0x4fb5a4);return Array['from'](_0x28f915);}(_0xfd2682['getSelectedBlocks'](),_0x5c9984,_0x324450['model']['schema']);_0x324450['model']['change'](()=>{for(const _0x29e95c of _0x13dbe2)_0x469f22['markBlockFormat'](_0x29e95c,{'commandName':_0x45bbca,'commandParams':[{'forceValue':!_0x5616eb['value']}],'formatGroupId':'blockName'},fe(_0x29e95c));});};}function _0x5f8649(_0x2a729b){return()=>{const _0x58c59d=function(_0xc88b73){let _0x41098f=Array['from'](_0xc88b73);const _0x97b58d=_0x41098f['findIndex'](_0x5c2e2c=>'listItem'!=_0x5c2e2c['name']);return _0x97b58d>-0x1&&(_0x41098f=_0x41098f['slice'](0x0,_0x97b58d)),_0x41098f;}(_0x324450['model']['document']['selection']['getSelectedBlocks']()),_0x332ab9=_0x324450['model']['createRange'](_0x324450['model']['createPositionAt'](_0x58c59d[0x0],'before'),_0x324450['model']['createPositionAt'](_0x58c59d[_0x58c59d['length']-0x1],'end'));_0x324450['model']['change'](()=>{_0x469f22['markBlockFormat'](_0x332ab9,{'commandName':_0x2a729b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x346056){const _0x24b9d2=new Set();for(const _0x274080 of _0x346056){let _0x432948=_0x274080['nextSibling'];for(;_0x432948&&_0x432948['getAttribute']('listIndent')>_0x274080['getAttribute']('listIndent');)_0x24b9d2['add'](_0x432948),_0x432948=_0x432948['nextSibling'];}return Array['from'](_0x24b9d2);}(_0x58c59d));});};}_0x469f22['enableCommand']('numberedList',_0x45cdcb('numberedList')),_0x469f22['enableCommand']('bulletedList',_0x45cdcb('bulletedList')),_0x452c8e&&_0x469f22['enableCommand']('todoList',_0x45cdcb('todoList')),_0x469f22['enableCommand']('indentList',_0x5f8649('indentList')),_0x469f22['enableCommand']('outdentList',_0x5f8649('outdentList')),_0x452c8e&&_0x469f22['enableCommand']('checkTodoList',()=>{const _0xfc522e=_0x324450['commands']['get']('checkTodoList'),_0x2d3268=Array['from'](_0xfc522e['_selectedElements']);_0x2d3268['filter'](_0x2d1f7b=>_0x2d1f7b['getAttribute']('todoListChecked')!=_0xfc522e['value']),_0x324450['model']['change'](()=>{for(const _0x50edb7 of _0x2d3268)_0x469f22['markBlockFormat'](_0x50edb7,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xfc522e['value']}]});});}),_0x469f22['descriptionFactory']['registerElementLabel']('listItem',_0x1a75c9=>o(_0x106a33,'ELEMENT_LIST_ITEM',_0x1a75c9)),_0x469f22['descriptionFactory']['registerDescriptionCallback'](_0x1db045=>{if('formatBlock'!=_0x1db045['type']&&'formatInline'!=_0x1db045['type'])return;const {data:_0x2de660}=_0x1db045;if(_0x2de660){if('numberedList'==_0x2de660['commandName']||'bulletedList'==_0x2de660['commandName']||'todoList'==_0x2de660['commandName'])switch(_0x2de660['commandName']['replace']('List','')){case'bulleted':return _0x2e05eb(o(_0x106a33,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2e05eb(o(_0x106a33,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2e05eb(o(_0x106a33,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2de660['commandName'])return{'type':'format','content':o(_0x106a33,'*Indent:*\x20%0',o(_0x106a33,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2de660['commandName'])return{'type':'format','content':o(_0x106a33,'*Outdent:*\x20%0',o(_0x106a33,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2de660['commandName'])return _0x2de660['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x106a33,'*Check\x20item*')}:{'type':'format','content':o(_0x106a33,'*Uncheck\x20item*')};}function _0x2e05eb(_0x5abb13){return{'type':'format','content':o(_0x106a33,'*Change\x20to:*\x20%0',_0x5abb13)};}});}}function me(_0x564d50){const _0x5c3a7d=_0x564d50['getAttribute']('listIndent');if(0x0==_0x5c3a7d)return _0x564d50;let _0x5a1aa4=_0x564d50;for(;_0x564d50['previousSibling']&&_0x564d50['previousSibling']['is']('element','listItem');){const _0x3b01d9=_0x564d50['previousSibling']['getAttribute']('listIndent');if(_0x3b01d9==_0x5c3a7d)_0x5a1aa4=_0x564d50['previousSibling'];else{if(_0x3b01d9<_0x5c3a7d)break;}_0x564d50=_0x564d50['previousSibling'];}return _0x5a1aa4;}function fe(_0x2eba56){const _0x5da342=[];if(_0x2eba56['is']('element','listItem')&&_0x2eba56['getAttribute']('listIndent')>0x0){let _0x182351=_0x2eba56['nextSibling'];for(;_0x182351&&'listItem'==_0x182351['name']&&_0x182351['getAttribute']('listIndent')==_0x2eba56['getAttribute']('listIndent');)_0x5da342['push'](_0x182351),_0x182351=_0x182351['nextSibling'];}return _0x5da342;}class K extends _0x4d360f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x512832=this['editor']['config']['get']('list.properties'),_0x14c255=this['editor']['plugins']['get']('TrackChangesEditing');_0x512832['styles']&&_0x14c255['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x512832['reversed']&&_0x14c255['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x512832['startIndex']&&_0x14c255['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x14c255['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x75fe5,_0x3386c5={}){const _0x5e4ff0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x580754=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5e4ff0['markMultiRangeBlockFormat'](_0x580754,{'commandName':'listStyle','commandParams':[{'type':_0x3386c5['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x460127,_0xa1fb39={}){const _0x319bf9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40d9e3=this['_getSuggestionBlocks'](_0x33fc63=>_0x33fc63['is']('element','listItem')&&'numbered'===_0x33fc63['getAttribute']('listType'));if(_0x40d9e3['length']<0x1)return;const _0x3b81e5=_0x40d9e3['map'](_0x47754a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x47754a,'before'),this['editor']['model']['createPositionAt'](_0x47754a,0x0)));this['editor']['model']['change'](()=>{_0x319bf9['markMultiRangeBlockFormat'](_0x3b81e5,{'commandName':'listReversed','commandParams':[{'reversed':_0xa1fb39['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3b5a3f,_0x34a02a={}){const _0x596125=this['editor']['plugins']['get']('TrackChangesEditing'),_0x316680=this['_getSuggestionBlocks'](_0xe483f3=>_0xe483f3['is']('element','listItem')&&'numbered'===_0xe483f3['getAttribute']('listType'));if(_0x316680['length']<0x1)return;const _0x1c690f=_0x316680['map'](_0x36c409=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x36c409,'before'),this['editor']['model']['createPositionAt'](_0x36c409,0x0)));this['editor']['model']['change'](()=>{_0x596125['markMultiRangeBlockFormat'](_0x1c690f,{'commandName':'listStart','commandParams':[{'startIndex':_0x34a02a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3e818b){if('formatBlock'!=_0x3e818b['type']&&'formatInline'!=_0x3e818b['type'])return;const _0x237c2c=this['editor']['locale'],{data:_0x47121b}=_0x3e818b;if(!_0x47121b)return;let _0x2c9baf,_0x44734e;switch(_0x47121b['commandName']){case'listStyle':_0x2c9baf='*Change\x20to:*\x20%0',_0x44734e={'type':'format','content':o(_0x237c2c,_0x2c9baf,o(_0x237c2c,this['_getTranslationKeyForListStyle'](_0x47121b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2c9baf=_0x47121b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x44734e={'type':'format','content':o(_0x237c2c,_0x2c9baf)};break;case'listStart':_0x2c9baf='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x44734e={'type':'format','content':o(_0x237c2c,_0x2c9baf,_0x47121b['commandParams'][0x0]['startIndex'])};}return _0x44734e;}['_getSuggestionBlocksForListStyle'](){const _0x411610=this['editor']['plugins']['get']('LegacyListUtils');let _0x43a0bd=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x43a0bd[0x0]?.['is']('element','listItem')&&_0x43a0bd['unshift'](..._0x411610['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x43a0bd[_0x43a0bd['length']-0x1]?.['is']('element','listItem')&&_0x43a0bd['push'](..._0x411610['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x43a0bd=[...new Set(_0x43a0bd)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x43a0bd=_0x43a0bd['filter'](_0x11f21a=>_0x11f21a['is']('element','listItem'))),_0x43a0bd;}['_getSuggestionBlocks'](_0x16eca5){const _0x4b8941=this['editor']['plugins']['get']('LegacyListUtils');let _0xbf190f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x16eca5)['map'](_0x5e684d=>{const _0x4448c5=this['editor']['model']['createPositionAt'](_0x5e684d,0x0);return[..._0x4b8941['getSiblingNodes'](_0x4448c5,'backward'),..._0x4b8941['getSiblingNodes'](_0x4448c5,'forward')];})['flat']();return _0xbf190f=[...new Set(_0xbf190f)],_0xbf190f;}['_getTranslationKeyForListStyle'](_0x5b4271){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5b4271)||'default')['toUpperCase']()+'_LIST_'+_0x5b4271['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x4d360f{['afterInit'](){const _0xcb6b25=this['editor'];if(!_0xcb6b25['plugins']['has']('MediaEmbedEditing'))return;const _0x183c74=_0xcb6b25['plugins']['get']('TrackChangesEditing'),_0x4ed65d=_0xcb6b25['locale'];_0x183c74['enableCommand']('mediaEmbed'),_0x183c74['descriptionFactory']['registerElementLabel']('media',_0x3488ef=>o(_0x4ed65d,'ELEMENT_MEDIA',_0x3488ef)),_0xcb6b25['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x254a4d,{writer:_0x2969ff,options:_0x26412c})=>{if(_0x26412c['showSuggestionHighlights'])return _0x2969ff['createEmptyElement']('div');},'converterPriority':'high'}),_0xcb6b25['data']['downcastDispatcher']['on']('attribute:url:media',(_0x42576d,_0x3ba920,_0xb73c3a)=>{_0xb73c3a['options']['showSuggestionHighlights']&&_0x42576d['stop']();},{'priority':'high'});}}class gt extends _0x4d360f{['afterInit'](){const _0x3ba16b=this['editor'];_0x3ba16b['plugins']['has']('MentionEditing')&&_0x3ba16b['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x4d360f{['afterInit'](){const _0x45ba55=this['editor'],_0x997562=_0x45ba55['plugins']['get']('TrackChangesEditing');_0x45ba55['plugins']['has']('MultiLevelList')&&(_0x997562['enableDefaultAttributesIntegration']('multiLevelList'),_0x997562['registerBlockAttribute']('listMarkerStyle'),_0x997562['descriptionFactory']['registerDescriptionCallback'](_0x1dcf6f=>this['handleDescriptions'](_0x1dcf6f)));}['handleDescriptions'](_0x5761cd){const _0x540da8=this['editor']['locale'],{data:_0xd8397e}=_0x5761cd,_0x515b49={'type':'format','content':''};if(_0xd8397e&&'listMarkerStyle'==_0xd8397e['key']){if(!_0xd8397e['oldValue'])return{'type':'format','content':o(_0x540da8,'*Set\x20format:*\x20%0',o(_0x540da8,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xd8397e['newValue']+')'};if(!_0xd8397e['newValue']){let _0x5afd80=_0x5761cd['head'];for(;_0x5afd80;){if(_0x5afd80['data']&&'listType'==_0x5afd80['data']['key']&&_0x5afd80['data']['newValue'])return _0x515b49;_0x5afd80=_0x5afd80['next'];}return{'type':'format','content':o(_0x540da8,'*Remove\x20format:*\x20%0',o(_0x540da8,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xd8397e['oldValue']+')'};}}}}class mt extends _0x4d360f{['afterInit'](){const _0x43202b=this['editor'];if(!_0x43202b['plugins']['has']('PageBreakEditing'))return;_0x43202b['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x33e2eb=_0x43202b['plugins']['get']('TrackChangesEditing'),_0x20696c=_0x43202b['locale'];_0x33e2eb['descriptionFactory']['registerElementLabel']('pageBreak',_0x1f9f4e=>o(_0x20696c,'ELEMENT_PAGE_BREAK',_0x1f9f4e));}}class dt extends _0x4d360f{['afterInit'](){const _0x5b2ea5=this['editor'];if(!_0x5b2ea5['plugins']['has']('Paragraph'))return;const _0x49855d=_0x5b2ea5['locale'],_0xf45582=_0x5b2ea5['plugins']['get']('TrackChangesEditing');_0xf45582['descriptionFactory']['registerElementLabel']('paragraph',_0x2eed32=>o(_0x49855d,'ELEMENT_PARAGRAPH',_0x2eed32)),_0xf45582['enableDefaultAttributesIntegration']('paragraph'),_0xf45582['enableCommand']('insertParagraph'),_0x5b2ea5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5b2ea5),{'priority':'highest'}),_0x5b2ea5['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xf4cd30,_0x11ce87,_0x781cda)=>{_0x781cda['options']['showSuggestionHighlights']&&nr(_0x5b2ea5,{'showActiveMarker':!0x1})(_0xf4cd30,_0x11ce87,_0x781cda);},{'priority':'highest'});const _0x6ec5a8=_0xf45582['descriptionFactory'];_0x6ec5a8['registerDescriptionCallback'](_0x1bf271=>{if('insertion'!==_0x1bf271['type'])return;const {start:_0x4b38ee,end:_0xfe5dee}=_0x1bf271['getFirstRange']();if(!_0x4b38ee['isTouching'](_0xfe5dee)||!_0x4b38ee['nodeAfter'])return;const _0x39f00b=_0x5b2ea5['model']['schema'],_0x210b04=_0x4b38ee['nodeAfter'];return _0x39f00b['isBlock'](_0x210b04)&&!_0x39f00b['isLimit'](_0x210b04)&&_0x39f00b['checkChild'](_0x210b04,'$text')?{'type':'insertion','content':o(_0x49855d,'*Insert:*\x20%0',_0x6ec5a8['getItemLabel'](_0x210b04,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27ab1b=this['editor'],_0x4b58a4=_0x27ab1b['locale'];_0x27ab1b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17fb89=>{if('formatBlock'!=_0x17fb89['type'])return;const {data:_0x163b20}=_0x17fb89;return _0x163b20&&'paragraph'==_0x163b20['commandName']?{'type':'format','content':o(_0x4b58a4,'*Change\x20to:*\x20%0',o(_0x4b58a4,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3b1e3d,{showActiveMarker:_0x44c422=!0x0}={}){return(_0x258a0a,_0x4213cb,_0x4f0a11)=>{const _0x9a2780=_0x3b1e3d['plugins']['get']('TrackChangesEditing'),_0x430f1b=_0x4213cb['markerRange']['start'],_0x5a0761=_0x4213cb['markerRange']['end'],_0x3d7bdc=_0x3b1e3d['model']['schema'];if(!_0x430f1b['isTouching'](_0x5a0761)||!_0x430f1b['nodeAfter'])return;const _0x319093=_0x430f1b['nodeAfter'];if(_0x3d7bdc['isBlock'](_0x319093)&&!_0x3d7bdc['isLimit'](_0x319093)&&_0x3d7bdc['checkChild'](_0x319093,'$text')){if(!_0x4f0a11['consumable']['consume'](_0x4213cb['markerRange'],_0x258a0a['name']))return;const _0x10dee4=_0x4f0a11['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x5d888e=_0x4f0a11['mapper']['toViewPosition'](_0x5a0761);_0x44c422&&_0x9a2780['activeMarkers']['includes'](_0x4213cb['markerName'])&&_0x4f0a11['writer']['addClass']('ck-suggestion-marker--active',_0x10dee4),_0x4f0a11['writer']['insert'](_0x5d888e,_0x10dee4),_0x4f0a11['mapper']['bindElementToMarker'](_0x10dee4,_0x4213cb['markerName']);}};}class pt extends _0x4d360f{['afterInit'](){const _0x3b25c2=this['editor'];if(!_0x3b25c2['plugins']['has']('RemoveFormatEditing'))return;_0x3b25c2['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52a608=this['editor'];_0x52a608['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e1063=>{if('formatBlock'!=_0x5e1063['type']&&'formatInline'!=_0x5e1063['type'])return;const {data:_0x5cc9d2}=_0x5e1063;return _0x5cc9d2&&'removeFormat'==_0x5cc9d2['commandName']?{'type':'format','content':o(_0x52a608['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x4d360f{['afterInit'](){const _0x1edfa0=this['editor'];if(!_0x1edfa0['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x398cc2=_0x1edfa0['plugins']['get']('TrackChangesEditing');_0x398cc2['enableCommand']('goToPreviousRestrictedEditingException'),_0x398cc2['enableCommand']('goToNextRestrictedEditingException');const _0x289902=_0x1edfa0['plugins']['get']('RestrictedEditingModeEditing');_0x289902['enableCommand']('trackChanges'),_0x289902['enableCommand']('acceptSuggestion'),_0x289902['enableCommand']('discardSuggestion'),_0x289902['enableCommand']('acceptAllSuggestions'),_0x289902['enableCommand']('discardAllSuggestions'),_0x289902['enableCommand']('acceptSelectedSuggestions'),_0x289902['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x4d360f{static get['requires'](){return[_0x177a10];}['init'](){const _0x26e6e6=this['editor'],_0x7e403a=_0x26e6e6['plugins']['get']('TrackChangesEditing');_0x7e403a['enableCommand']('shiftEnter'),_0x26e6e6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x26e6e6),{'priority':'high'}),_0x26e6e6['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x26e6e6),{'priority':'high'}),_0x26e6e6['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xeef106,_0x1d5173,_0x199e00)=>{_0x199e00['options']['showSuggestionHighlights']&&de(_0x26e6e6,{'showActiveMarker':!0x1})(_0xeef106,_0x1d5173,_0x199e00);}),_0x7e403a['descriptionFactory']['registerElementLabel']('softBreak',_0x331d41=>o(_0x26e6e6['locale'],'ELEMENT_LINE_BREAK',_0x331d41));}}function de(_0x4f0941,{showActiveMarker:_0x3b0852=!0x0}={}){return(_0x3078a1,_0x4bda1a,_0x414f47)=>{const _0x5104fd=_0x4f0941['plugins']['get']('TrackChangesEditing');if(!_0x414f47['consumable']['test'](_0x4bda1a['markerRange'],_0x3078a1['name']))return;const _0x1b3c03=_0x4f0941['model'];for(const _0x155a2c of _0x4bda1a['markerRange']['getItems']()){if(!_0x155a2c['is']('element','softBreak'))continue;const _0x4c0e5e='deletion'==_0x4bda1a['markerName']['split'](':')[0x1]?'merge':'split',_0x133e86=_0x414f47['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4c0e5e}),_0x1b61b7=_0x414f47['mapper']['toViewPosition'](_0x1b3c03['createPositionBefore'](_0x155a2c));_0x3b0852&&_0x5104fd['activeMarkers']['includes'](_0x4bda1a['markerName'])&&_0x414f47['writer']['addClass']('ck-suggestion-marker--active',_0x133e86),_0x414f47['writer']['insert'](_0x1b61b7,_0x133e86),_0x414f47['mapper']['bindElementToMarker'](_0x133e86,_0x4bda1a['markerName']);}};}class wt extends _0x4d360f{['afterInit'](){const _0x117bc5=this['editor'],_0x28ad28=_0x117bc5['model'],_0x19f0de=_0x117bc5['locale'];if(!_0x117bc5['plugins']['has']('StandardEditingModeEditing'))return;const _0x2fa2cf=_0x117bc5['plugins']['get']('TrackChangesEditing'),_0x3b2e9e='restrictedEditingException',_0x1c1571=_0x117bc5['commands']['get'](_0x3b2e9e);_0x2fa2cf['enableCommand'](_0x3b2e9e,(_0x4e7999,_0x4bce88={})=>{const _0x53d4d0=_0x28ad28['document']['selection'];if(_0x53d4d0['isCollapsed'])return void _0x4e7999(_0x4bce88);const _0x15e33d=void 0x0!==_0x4bce88['forceValue']?_0x4bce88['forceValue']:!_0x1c1571['value'];_0x28ad28['change'](()=>{const _0x38eb31=Array['from'](_0x53d4d0['getRanges']());for(const _0x14e780 of _0x38eb31){const _0x39a5ff=_0x15e33d?[_0x14e780]:io(_0x3b2e9e,_0x14e780,_0x28ad28);for(const _0x4260d9 of _0x39a5ff)_0x2fa2cf['markInlineFormat'](_0x4260d9,{'commandName':_0x3b2e9e,'commandParams':[{'forceValue':_0x15e33d}]});}});}),_0x2fa2cf['descriptionFactory']['registerDescriptionCallback'](_0x45a19f=>{if('formatBlock'!=_0x45a19f['type']&&'formatInline'!=_0x45a19f['type'])return;const {data:_0x187f74}=_0x45a19f;return _0x187f74&&_0x187f74['commandName']==_0x3b2e9e?_0x187f74['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x19f0de,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x19f0de,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x4d360f{['afterInit'](){const _0xddd58=this['editor'];if(!_0xddd58['plugins']['has']('Style')||!_0xddd58['plugins']['has']('DataSchema'))return;const _0x52a996=_0xddd58['plugins']['get']('TrackChangesEditing'),_0x3d542d=_0xddd58['locale'],_0x248006=_0xddd58['config']['get']('style')||{},_0xba202=_0xddd58['plugins']['get']('GeneralHtmlSupport'),_0x53f9f6=_0xddd58['plugins']['get']('StyleUtils')['normalizeConfig'](_0xddd58['plugins']['get']('DataSchema'),_0x248006['definitions']);_0x52a996['enableDefaultAttributesIntegration']('style');const _0x1e4f5e=new Set();for(const _0x68db1e of _0x53f9f6['block']){const _0x14d48d=_0xba202['getGhsAttributeNameForElement'](_0x68db1e['element']);_0x1e4f5e['add'](_0x14d48d);}const _0x2ce45f=new Set();for(const _0x1fa52b of _0x53f9f6['inline']){const _0x3ad6d3=_0xba202['getGhsAttributeNameForElement'](_0x1fa52b['element']);_0x2ce45f['add'](_0x3ad6d3);for(const _0x333ea1 of _0x1fa52b['ghsAttributes'])_0x2ce45f['add'](_0x333ea1);}for(const _0x2a4db4 of _0x1e4f5e)_0x52a996['registerBlockAttribute'](_0x2a4db4),_0x52a996['descriptionFactory']['registerAttributeLabel'](_0x2a4db4,o(_0x3d542d,'FORMAT_STYLE'));for(const _0x2d34ef of _0x2ce45f)_0x52a996['registerInlineAttribute'](_0x2d34ef),_0x52a996['descriptionFactory']['registerAttributeLabel'](_0x2d34ef,o(_0x3d542d,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5149e1=this['editor'],_0x4dc127=_0x5149e1['locale'];_0x5149e1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14e1ed=>{if('formatBlock'!=_0x14e1ed['type']&&'formatInline'!=_0x14e1ed['type'])return;const {data:_0x12e64a}=_0x14e1ed;return _0x12e64a&&'style'===_0x12e64a['commandName']?_0x12e64a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4dc127,'*Set\x20format:*\x20%0',_0x12e64a['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4dc127,'*Remove\x20format:*\x20%0',_0x12e64a['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x4d360f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4c4de2){super(_0x4c4de2),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0xce5698=this['editor'],_0x4c4ebb=_0xce5698['model']['document']['selection'];if(!_0xce5698['plugins']['has']('TableEditing'))return;const _0x26e532=_0xce5698['locale'],_0x3d75b5=_0xce5698['plugins']['get']('TrackChangesEditing'),_0x1c5753=_0xce5698['plugins']['get']('TableUtils');_0x3d75b5['descriptionFactory']['registerElementLabel']('table',_0x3099fd=>o(_0x26e532,'ELEMENT_TABLE',_0x3099fd)),this['_setupColumnsRowsFixing'](),_0x3d75b5['enableCommand']('insertTable'),_0x3d75b5['enableCommand']('selectTableRow'),_0x3d75b5['enableCommand']('selectTableColumn');for(const _0x13ed6e of['insertTableRowAbove','insertTableRowBelow']){const _0x5a433e=_0xce5698['commands']['get'](_0x13ed6e);_0x3d75b5['enableCommand'](_0x13ed6e,_0x38e24a=>{_0xce5698['model']['change'](_0x3b52d4=>{_0x38e24a();const _0x261d8c='above'===_0x5a433e['order'],_0x561476=_0x1c5753['getSelectionAffectedTableCells'](_0x4c4ebb),_0x44eb4b=_0x1c5753['getRowIndexes'](_0x561476),_0x55066f=_0x261d8c?_0x44eb4b['first']-0x1:_0x44eb4b['last']+0x1,_0x387c9e=_0x561476[0x0]['findAncestor']('table'),_0x1f5695=_0x1c5753['createTableWalker'](_0x387c9e,{'startRow':_0x55066f,'endRow':_0x55066f}),_0x5139d4=Array['from'](_0x1f5695)['map'](_0x2e6865=>_0x3b52d4['createRangeOn'](_0x2e6865['cell']));_0x3d75b5['markMultiRangeInsertion'](_0x5139d4,'tableRow');});});}for(const _0x3168e1 of['insertTableColumnLeft','insertTableColumnRight']){const _0x18d452=_0xce5698['commands']['get'](_0x3168e1);_0x3d75b5['enableCommand'](_0x3168e1,_0x3f11dc=>{_0xce5698['model']['change'](_0x3da183=>{_0x3f11dc();const _0x2d0f91='left'===_0x18d452['order'],_0x493eb8=_0x1c5753['getSelectionAffectedTableCells'](_0x4c4ebb),_0x32b161=_0x1c5753['getColumnIndexes'](_0x493eb8),_0x38a201=_0x2d0f91?_0x32b161['first']-0x1:_0x32b161['last']+0x1,_0x2ac773=_0x493eb8[0x0]['findAncestor']('table'),_0x5a88b0=_0x1c5753['createTableWalker'](_0x2ac773,{'startRow':0x0,'column':_0x38a201,'includeAllSlots':!0x1}),_0x546347=Array['from'](_0x5a88b0)['map'](_0x4fb5cc=>_0x3da183['createRangeOn'](_0x4fb5cc['cell']));_0x3d75b5['markMultiRangeInsertion'](_0x546347,'tableColumn');});});}for(const _0x31f5e8 of['removeTableRow','removeTableColumn']){const _0x4f3d69=_0x31f5e8['substr'](0xb),_0x5402da=_0x4f3d69['toLowerCase'](),_0x158840=_0x5402da['substr'](0x0,0x3)+'span',_0x5d1610='table'+_0x4f3d69,_0x20bedd='min'+_0x4f3d69,_0x57ef09='max'+_0x4f3d69;_0x3d75b5['enableCommand'](_0x31f5e8,()=>{_0xce5698['model']['change'](_0x4ff278=>{const _0xca1acd=_0x1c5753['getSelectionAffectedTableCells'](_0x4c4ebb),_0x15235e=_0xca1acd[0x0]['findAncestor']('table');let _0x1b8b1d;if('removeTableRow'==_0x31f5e8){const _0x30d72f=_0x1c5753['getRowIndexes'](_0xca1acd);_0x1b8b1d={'startRow':_0x30d72f['first'],'endRow':_0x30d72f['last'],'includeAllSlots':!0x0};}else{const _0x13d072=_0x1c5753['getColumnIndexes'](_0xca1acd);_0x1b8b1d={'startColumn':_0x13d072['first'],'endColumn':_0x13d072['last'],'includeAllSlots':!0x0};}const _0x604bad=_0x1c5753['createTableWalker'](_0x15235e,_0x1b8b1d),_0x21c59e=Array['from'](_0x604bad)['map'](({cell:_0x4d8e7b})=>_0x4d8e7b),_0x508573=Ee(_0x21c59e['filter'](_0x2e7850=>_0x2e7850['hasAttribute'](_0x158840))),_0x37220b=Ee(_0x21c59e['filter'](_0x3f2a38=>!_0x3f2a38['hasAttribute'](_0x158840)))['map'](_0x3125fa=>_0x4ff278['createRangeOn'](_0x3125fa)),_0x5f03b9=_0x3d75b5['markMultiRangeDeletion'](_0x37220b,_0x5d1610);if(_0x5f03b9&&('tableRow'==_0x5f03b9['subType']||'tableColumn'==_0x5f03b9['subType'])){const _0x3e707c=this['_getSuggestionCoords'](_0x5f03b9);for(const _0x987948 of _0x508573){const _0x326063=_0x4ff278['createRangeOn'](_0x987948),_0x196f3d=_0x1c5753['getCellLocation'](_0x987948),_0x3c239f=_0x987948['getAttribute'](_0x158840)-0x1,_0x1a2cb6=_0x3e707c[_0x20bedd],_0x2f31e7=_0x3e707c[_0x57ef09];_0x1a2cb6<=_0x196f3d[_0x5402da]&&_0x196f3d[_0x5402da]+_0x3c239f<=_0x2f31e7&&_0x5f03b9['addRange'](_0x326063);}}});});}function _0x5f50b4(_0x53dd01){const _0x22cb9e=Array['from'](_0x4c4ebb['getRanges']())['map'](_0xfcddf7=>_0x27f355['fromRange'](_0xfcddf7));_0xce5698['model']['change'](_0x576ee7=>{const _0xc6a125=_0x576ee7['batch'];_0x53dd01=_0x53dd01['filter'](_0x1dfd39=>'$graveyard'!=_0x1dfd39['root']['rootName']),_0x576ee7['setSelection'](_0x53dd01),_0xce5698['commands']['get']('removeTableRow')['refresh'](),_0xce5698['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xce5698['model']['enqueueChange'](()=>{_0xce5698['model']['enqueueChange'](_0xc6a125,_0x315ac2=>{const _0x3cbe1a=_0x22cb9e['filter'](_0x1eea8f=>'$graveyard'!=_0x1eea8f['root']['rootName']);_0x3cbe1a['length']>0x0&&_0x315ac2['setSelection'](_0x3cbe1a);for(const _0xfcd839 of _0x22cb9e)_0xfcd839['detach']();});});});}function _0xe95af8(_0x4eae9e){_0xce5698['model']['change'](_0x1a10e5=>{const _0x1da69d=Array['from'](_0x4c4ebb['getRanges']())['map'](_0x20fce5=>_0x27f355['fromRange'](_0x20fce5)),_0x4e0dca=[];for(const _0x255994 of _0x4eae9e)for(const _0x470c47 of _0x255994['getItems']({'shallow':!0x0}))_0x4e0dca['push'](_0x470c47);for(const _0x9ea894 of _0x4e0dca)'$graveyard'!=_0x9ea894['root']['rootName']&&(_0x1a10e5['setSelection'](_0x1a10e5['createPositionAt'](_0x9ea894,0x0)),_0xce5698['commands']['get']('removeTableColumn')['refresh'](),_0xce5698['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4bd8b5=_0x1da69d['filter'](_0x202e2f=>'$graveyard'!=_0x202e2f['root']['rootName']);_0x4bd8b5['length']>0x0&&_0x1a10e5['setSelection'](_0x4bd8b5);for(const _0x462c5b of _0x1da69d)_0x462c5b['detach']();});}function _0x211f64(_0x58b7bc,_0x16c52d){return _0x16c52d['every'](_0x93b58a=>_0x58b7bc['some'](_0x4a2587=>_0x4a2587['end']['isEqual'](_0x93b58a['start'])||_0x93b58a['end']['isEqual'](_0x4a2587['start'])));}function _0x563f44(_0x443e36,_0x565d83){return!_0x443e36['some'](_0x5e3a93=>_0x565d83['some'](_0x17441b=>_0x5e3a93['isIntersecting'](_0x17441b)))&&_0x443e36['some'](_0x249da6=>_0x565d83['some'](_0x27b421=>_0x249da6['end']['isTouching'](_0x27b421['start'])));}_0xce5698['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x21c972,_0x2c9ead,_0x3f9199)=>{if(!_0x3f9199['options']['showSuggestionHighlights'])return;const _0x5506a1=_0x2c9ead['item'];if(!_0x5506a1)return;const _0x168f71=_0x3f9199['mapper']['toViewElement'](_0x5506a1);function _0x29d3a7(_0x290336){return Array['isArray'](_0x290336)?_0x290336:[_0x290336];}_0x168f71&&'tableCell'===_0x5506a1['name']&&_0x39ca62(_0x168f71,_0x3f9199['writer'],(_0x514927,_0x222db6,_0x15e689)=>_0x15e689['addClass'](_0x29d3a7(_0x222db6['classes']),_0x514927),(_0x249e27,_0x5e9bd5,_0x34429b)=>_0x34429b['removeClass'](_0x29d3a7(_0x5e9bd5['classes']),_0x249e27));},{'priority':'highest'}),_0x3d75b5['descriptionFactory']['registerDescriptionCallback'](_0x57cf30=>{if('insertion'!=_0x57cf30['type']&&'deletion'!=_0x57cf30['type'])return;const _0x3375eb=_0x57cf30['getContainedElement']();if(null!=_0x3375eb&&_0x3375eb['is']('element','table')){if('insertion'==_0x57cf30['type']){const _0x1484fb=_0x57cf30['getItems']()['filter'](_0x35637f=>_0x35637f['is']('$textProxy'))['map'](_0x5c040e=>_0x5c040e['data']);if(_0x1484fb['length'])return{'type':'insertion','content':o(_0x26e532,'*Insert:*\x20%0',o(_0x26e532,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1484fb['join']('\x20')+'\x22'))};}if('deletion'==_0x57cf30['type']){const _0x1cd8b2=_0x57cf30['getItems']()['filter'](_0xba8dd8=>_0xba8dd8['is']('$textProxy'))['map'](_0x5a2fb2=>_0x5a2fb2['data']);if(_0x1cd8b2['length'])return{'type':'deletion','content':o(_0x26e532,'*Remove:*\x20%0',o(_0x26e532,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1cd8b2['join']('\x20')+'\x22'))};}}}),_0x3d75b5['descriptionFactory']['registerDescriptionCallback'](_0x520519=>{if('tableRow'==_0x520519['subType']){const _0x4c9c11=_0x520519['getItems']()['filter'](_0x5acf9a=>_0x5acf9a['is']('$textProxy'))['map'](_0xdb808e=>_0xdb808e['data']),_0x53aee9=this['_getSuggestionCoords'](_0x520519),_0x319948=_0x53aee9['maxRow']-_0x53aee9['minRow']+0x1;if('insertion'==_0x520519['type'])return _0x4c9c11['length']?{'type':'insertion','content':o(_0x26e532,'*Insert:*\x20%0',o(_0x26e532,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x319948,'\x22'+_0x4c9c11['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x26e532,'*Insert:*\x20%0',o(_0x26e532,'ELEMENT_TABLE_ROW',_0x319948))};if('deletion'==_0x520519['type'])return _0x4c9c11['length']?{'type':'deletion','content':o(_0x26e532,'*Remove:*\x20%0',o(_0x26e532,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x319948,'\x22'+_0x4c9c11['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x26e532,'*Remove:*\x20%0',o(_0x26e532,'ELEMENT_TABLE_ROW',_0x319948))};}if('tableColumn'==_0x520519['subType']){const _0x5af534=_0x520519['getItems']()['filter'](_0x4243b1=>_0x4243b1['is']('$textProxy'))['map'](_0x5a3e7d=>_0x5a3e7d['data']),_0x59611d=this['_getSuggestionCoords'](_0x520519),_0x4d63f6=_0x59611d['maxColumn']-_0x59611d['minColumn']+0x1;if('insertion'==_0x520519['type'])return _0x5af534['length']?{'type':'insertion','content':o(_0x26e532,'*Insert:*\x20%0',o(_0x26e532,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4d63f6,'\x22'+_0x5af534['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x26e532,'*Insert:*\x20%0',o(_0x26e532,'ELEMENT_TABLE_COLUMN',_0x4d63f6))};if('deletion'==_0x520519['type'])return _0x5af534['length']?{'type':'deletion','content':o(_0x26e532,'*Remove:*\x20%0',o(_0x26e532,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4d63f6,'\x22'+_0x5af534['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x26e532,'*Remove:*\x20%0',o(_0x26e532,'ELEMENT_TABLE_COLUMN',_0x4d63f6))};}}),_0x3d75b5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5f50b4),_0x3d75b5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5f50b4),_0x3d75b5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xe95af8),_0x3d75b5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xe95af8),_0x3d75b5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x211f64),_0x3d75b5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x211f64),_0x3d75b5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x563f44),_0x3d75b5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x563f44);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4cd173=this['editor'],_0x557761=_0x4cd173['model']['document']['selection'];return(_0x2168cd,_0x34119a)=>{_0x4cd173['model']['change'](_0x45b478=>{const {commandName:_0x53f324,commandParams:_0x581a1c}=_0x34119a;let _0x4b7bc2=_0x2168cd[0x0]['end']['nodeBefore'];_0x581a1c&&_0x581a1c[0x0]&&!0x1===_0x581a1c[0x0]['forceValue']&&(_0x4b7bc2=_0x2168cd[0x0]['start']['nodeAfter']);const _0x26428e=_0x45b478['createRangeIn'](_0x4b7bc2);if('$graveyard'==_0x26428e['root']['rootName'])return;const _0x48232f=Array['from'](_0x557761['getRanges']())['map'](_0x107640=>_0x27f355['fromRange'](_0x107640));_0x45b478['setSelection'](_0x26428e),_0x4cd173['commands']['get'](_0x53f324)['refresh'](),_0x581a1c['push']({'forceDefaultExecution':!0x0}),_0x4cd173['execute'](_0x53f324,..._0x581a1c);const _0x27c1de=_0x48232f['filter'](_0x52360a=>'$graveyard'!=_0x52360a['root']['rootName']);_0x27c1de['length']>0x0&&_0x45b478['setSelection'](_0x27c1de);for(const _0x20b478 of _0x48232f)_0x20b478['detach']();});};}['_getCoordsForCells'](_0x15786c){const _0x1eb783=this['editor']['plugins']['get']('TableUtils');let _0x3ff36a=Number['MAX_SAFE_INTEGER'],_0x43e1ab=Number['MIN_SAFE_INTEGER'],_0x6b293f=Number['MAX_SAFE_INTEGER'],_0x425e3d=Number['MIN_SAFE_INTEGER'];for(const _0x2d3821 of _0x15786c){if('$graveyard'==_0x2d3821['root']['rootName'])continue;const {row:_0x564135,column:_0x4a8362}=_0x1eb783['getCellLocation'](_0x2d3821),_0x5e8927=_0x2d3821['hasAttribute']('rowspan')?_0x2d3821['getAttribute']('rowspan')-0x1:0x0,_0x26b7bc=_0x2d3821['hasAttribute']('colspan')?_0x2d3821['getAttribute']('colspan')-0x1:0x0;_0x3ff36a=_0x564135<_0x3ff36a?_0x564135:_0x3ff36a,_0x43e1ab=_0x564135+_0x5e8927>_0x43e1ab?_0x564135+_0x5e8927:_0x43e1ab,_0x6b293f=_0x4a8362<_0x6b293f?_0x4a8362:_0x6b293f,_0x425e3d=_0x4a8362+_0x26b7bc>_0x425e3d?_0x4a8362+_0x26b7bc:_0x425e3d;}return{'minRow':_0x3ff36a,'maxRow':_0x43e1ab,'minColumn':_0x6b293f,'maxColumn':_0x425e3d};}['_setupColumnsRowsFixing'](){const _0xe899b0=this['editor'],_0xcc3a45=_0xe899b0['plugins']['get']('TrackChangesEditing'),_0x5e5519=_0xe899b0['plugins']['get']('TableUtils');_0xe899b0['model']['document']['on']('change:data',()=>{const _0x4a8db4=Array['from'](_0xe899b0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x18169c,data:_0xe2b605}of _0x4a8db4){const {group:_0x46d8c3,id:_0x14d232,subType:_0x1f14b3}=_0xcc3a45['_splitMarkerName'](_0x18169c);if('suggestion'!=_0x46d8c3)continue;if(null!=_0xe2b605['oldRange'])continue;const _0x514e82=_0xcc3a45['getSuggestion'](_0x14d232);this['_tablePostFixingSubtypes']['includes'](_0x1f14b3)&&this['_tableSuggestions']['add'](_0x514e82);}},{'priority':'low'});const _0x418beb=(_0x3915e2,_0x467dbc)=>{let _0x23882d=!0x1;const _0x56db11=_0x467dbc['createRangeOn'](_0x3915e2),_0x24f751=_0x3915e2['findAncestor']('table'),_0x166a55=_0x5e5519['getCellLocation'](_0x3915e2);for(const _0x3038e5 of this['_tableSuggestions']){const _0x119f25=_0x3038e5['subType'],_0x28f3c9=_0x119f25['startsWith']('tablePaste'),_0x15cee1=_0x119f25['substr'](_0x28f3c9?0xa:0x5),_0x47af82=_0x15cee1['toLowerCase'](),_0x30da36=_0x47af82['substr'](0x0,0x3)+'span',_0x58cf34='min'+_0x15cee1,_0x5858be='max'+_0x15cee1;if(!_0x3038e5['isInContent'])continue;if(_0x24f751!=_0x3038e5['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3038e5['isIntersectingWithRange'](_0x56db11))continue;const _0x3c91e8=_0x3915e2['hasAttribute'](_0x30da36)?_0x3915e2['getAttribute'](_0x30da36)-0x1:0x0,_0xc709fe=this['_getSuggestionCoords'](_0x3038e5),_0x5e2713=_0xc709fe[_0x58cf34],_0x1884d5=_0xc709fe[_0x5858be];_0x5e2713<=_0x166a55[_0x47af82]&&_0x166a55[_0x47af82]+_0x3c91e8<=_0x1884d5&&(_0x3038e5['addRange'](_0x56db11),_0x23882d=!0x0);}return _0x23882d;};_0xe899b0['model']['document']['registerPostFixer'](_0xf20b77=>{let _0x3e7af4=!0x1;for(const _0x3f4f7a of _0xe899b0['model']['document']['differ']['getChanges']())if('insert'==_0x3f4f7a['type']){if('tableRow'==_0x3f4f7a['name']){for(const _0x532e91 of _0x3f4f7a['position']['nodeAfter']['getChildren']())_0x3e7af4=_0x3e7af4||_0x418beb(_0x532e91,_0xf20b77);}else'tableCell'==_0x3f4f7a['name']&&(_0x3e7af4=_0x3e7af4||_0x418beb(_0x3f4f7a['position']['nodeAfter'],_0xf20b77));}return _0x3e7af4;});}['_getSuggestionCoords'](_0x43d35f){return this['_getCoordsForCells'](_0x43d35f['getRanges']()['map'](_0x2f32e0=>_0x2f32e0['start']['nodeAfter']));}}function Ee(_0x4a97e9){return Array['from'](new Set(_0x4a97e9)['values']());}class St extends _0x4d360f{static get['requires'](){return[jt];}['afterInit'](){const _0xa57dc8=this['editor'],_0x4aa67e=_0xa57dc8['model']['document']['selection'],_0x5dd79e=_0xa57dc8['locale'];if(!_0xa57dc8['plugins']['has']('TableEditing'))return;const _0x50cdb8=_0xa57dc8['plugins']['get']('TrackChangesEditing'),_0x458683=_0xa57dc8['plugins']['get']('TableUtils'),_0x375d7c=_0xa57dc8['plugins']['get'](jt);_0x375d7c['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x50cdb8['enableCommand']('mergeTableCells',()=>{const _0x10a887=_0x458683['getSelectionAffectedTableCells'](_0xa57dc8['model']['document']['selection']);_0xa57dc8['model']['change'](()=>{_0x50cdb8['markMultiRangeBlockFormat'](_0x10a887,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xa57dc8['commands']['get']('mergeTableCells')['on']('execute',(_0x11b38a,_0x3af3b3)=>{_0xa57dc8['commands']['get']('trackChanges')['value']&&(_0x3af3b3['length']>0x0&&_0x3af3b3[_0x3af3b3['length']-0x1]&&_0x3af3b3[_0x3af3b3['length']-0x1]['forceDefaultExecution']||_0x50cdb8['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x11b38a['stop']());},{'priority':'highest'});for(const _0x51ad0e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x8a3a0b=_0xa57dc8['commands']['get'](_0x51ad0e);_0x50cdb8['enableCommand'](_0x51ad0e,()=>{const _0xe69b15=_0xa57dc8['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x509742=>_0x509742['is']('element','tableCell')),_0x3bf069=_0x8a3a0b['value'];_0xa57dc8['model']['change'](()=>{_0x50cdb8['markMultiRangeBlockFormat']([_0xe69b15,_0x3bf069],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2322b4 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x11a298=_0xa57dc8['commands']['get'](_0x2322b4);_0x50cdb8['enableCommand'](_0x2322b4,()=>{const _0x4dff22=_0x458683['getSelectionAffectedTableCells'](_0xa57dc8['model']['document']['selection'])[0x0],_0x386174=_0x4dff22['findAncestor']('table'),{column:_0x230f74,row:_0x343091}=_0x458683['getCellLocation'](_0x4dff22);let _0x5b815c=[];if('horizontally'==_0x11a298['direction']){const _0x3506b7=_0x458683['createTableWalker'](_0x386174,{'startRow':_0x343091,'endRow':_0x343091,'includeAllSlots':!0x0});_0x5b815c=Array['from'](_0x3506b7)['map'](_0x4f34f3=>_0x4f34f3['cell']);}else{const _0x43bfdd=_0x458683['createTableWalker'](_0x386174,{'column':_0x230f74,'includeAllSlots':!0x0});_0x5b815c=Array['from'](_0x43bfdd)['map'](_0x5349ff=>_0x5349ff['cell']);}_0xa57dc8['model']['change'](_0x2c89ca=>{_0x50cdb8['markBlockFormat'](_0x2c89ca['createRangeOn'](_0x4dff22),{'commandName':_0x2322b4,'commandParams':[]},_0x5b815c,_0x2322b4);});});}_0x50cdb8['descriptionFactory']['registerDescriptionCallback'](_0x4599cf=>{if('formatBlock'!=_0x4599cf['type']&&'formatInline'!=_0x4599cf['type'])return;const {data:_0x4f63eb}=_0x4599cf;return _0x4f63eb&&'mergeTableCells'==_0x4f63eb['commandName']?{'type':'format','content':o(_0x5dd79e,'*Merge\x20cells*')}:void 0x0;}),_0x50cdb8['descriptionFactory']['registerDescriptionCallback'](_0x26deff=>{if('formatBlock'!=_0x26deff['type']&&'formatInline'!=_0x26deff['type'])return;const {data:_0x46df8f}=_0x26deff;return _0x46df8f?'splitTableCellVertically'==_0x46df8f['commandName']?{'type':'format','content':o(_0x5dd79e,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x46df8f['commandName']?{'type':'format','content':o(_0x5dd79e,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1acb11=_0x375d7c['_acceptFormatSuggestionCallbackFactory']();for(const _0x4024de of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x50cdb8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4024de,'accept',_0x1acb11);for(const _0x407efc of['splitTableCellVertically','splitTableCellHorizontally'])_0x50cdb8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x407efc,'accept',_0x1acb11);_0x50cdb8['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4cd720=>{_0xa57dc8['model']['change'](_0x47a560=>{const _0x31a032=Array['from'](_0x4aa67e['getRanges']())['map'](_0x12c837=>_0x27f355['fromRange'](_0x12c837));_0x47a560['setSelection'](_0x4cd720),_0xa57dc8['commands']['get']('mergeTableCells')['refresh'](),_0xa57dc8['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2cd2eb=_0x31a032['filter'](_0x26a290=>'$graveyard'!=_0x26a290['root']['rootName']);_0x2cd2eb['length']>0x0&&_0x47a560['setSelection'](_0x2cd2eb);for(const _0x56bc5e of _0x31a032)_0x56bc5e['detach']();});});for(const _0x5eca31 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x540cc4=_0xa57dc8['commands']['get'](_0x5eca31);_0x540cc4['on']('set:isEnabled',(_0x303828,_0x666e62,_0x1d1734)=>{if(_0x1d1734){const _0x2e360b=_0xa57dc8['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x57a3f6=>_0x57a3f6['is']('element','tableCell'));this['_areMergableCells'](_0x540cc4['value'],_0x2e360b)||(_0x303828['return']=!0x1,_0x303828['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x54ce25=this['editor']['commands']['get']('mergeTableCells'),_0x9fdb6=this['editor']['plugins']['get']('TableUtils');if(!_0x54ce25['isEnabled'])return!0x1;const _0x1ae64e=_0x9fdb6['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1a8c34 of _0x1ae64e)for(const _0x2e391e of _0x1ae64e)if(_0x1a8c34!=_0x2e391e&&!this['_areMergableCells'](_0x1a8c34,_0x2e391e))return!0x1;return!0x0;}['_areMergableCells'](_0x26ccdc,_0x5054ce){const _0x31be13=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3cf03b=this['editor']['model']['createRangeOn'](_0x26ccdc),_0x2b57be=this['editor']['model']['createRangeOn'](_0x5054ce),_0x43c74b=new Set(),_0x167d46=new Set();for(const _0x4b70d6 of _0x31be13['getSuggestions']())if(('insertion'==_0x4b70d6['type']||'deletion'==_0x4b70d6['type']||'mergeTableCells'==_0x4b70d6['subType'])&&_0x4b70d6['isInContent']){for(const _0x26cd7d of _0x4b70d6['getRanges']())_0x26cd7d['containsRange'](_0x3cf03b,!0x0)&&_0x43c74b['add'](_0x4b70d6['type']+':'+_0x4b70d6['author']['id']),_0x26cd7d['containsRange'](_0x2b57be,!0x0)&&_0x167d46['add'](_0x4b70d6['type']+':'+_0x4b70d6['author']['id']);}if(_0x43c74b['size']!=_0x167d46['size'])return!0x1;for(const _0x1cc189 of _0x43c74b)if(!_0x167d46['has'](_0x1cc189))return!0x1;return!0x0;}}class At extends _0x4d360f{static get['requires'](){return[jt];}['afterInit'](){const _0x591c23=this['editor'];if(!_0x591c23['plugins']['has']('TableEditing'))return;const _0x5d9cbe=_0x591c23['locale'],_0x14d7d8=_0x591c23['plugins']['get']('TrackChangesEditing');_0x14d7d8['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x14d7d8['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x14d7d8['registerBlockAttribute']('headingRows'),_0x14d7d8['registerBlockAttribute']('headingColumns'),_0x14d7d8['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5d9cbe,'FORMAT_HEADER_ROW')),_0x14d7d8['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5d9cbe,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x54d5cc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35f03e=this['editor']['plugins']['get']('TableUtils'),_0x271799=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x22c9db({showActiveMarker:_0x302846=!0x0,setDataAttribute:_0x3f63a4=!0x0}={}){return(_0x241d72,_0x4a4f82,_0x251400)=>{const {type:_0x483f64,id:_0x1dc989}=_0x54d5cc['_splitMarkerName'](_0x4a4f82['markerName']),_0x3a817b=_0x54d5cc['getSuggestion'](_0x1dc989),_0x415f1a=_0x3a817b['data'];if('formatBlock'!=_0x3a817b['type']||!_0x415f1a||'setTableColumnHeader'!=_0x415f1a['commandName'])return;if(_0x4a4f82['item'])return void _0x241d72['stop']();if(!_0x251400['consumable']['consume'](_0x4a4f82['markerRange'],_0x241d72['name']))return;const _0x32d570=_0x4a4f82['markerRange']['start']['nodeAfter'],_0x20a22c=_0x4a4f82['markerRange']['end']['nodeBefore'],_0x27f732=_0x32d570['parent']['parent'],{column:_0x49e238}=_0x35f03e['getCellLocation'](_0x32d570),{column:_0x589bd8}=_0x35f03e['getCellLocation'](_0x20a22c);for(let _0x2aaed1=_0x49e238;_0x2aaed1<=_0x589bd8;_0x2aaed1++){const _0x4f5b23=_0x35f03e['createTableWalker'](_0x27f732,{'column':_0x2aaed1,'includeAllSlots':!0x1});for(const _0xa43a0 of _0x4f5b23){const _0x354c40=_0xa43a0['cell'],_0x12f4b8=_0x251400['mapper']['toViewElement'](_0x354c40);_0x251400['writer']['addClass']('ck-suggestion-marker-'+_0x483f64,_0x12f4b8),_0x3f63a4&&_0x251400['writer']['setAttribute']('data-suggestion',_0x1dc989,_0x12f4b8),_0x251400['mapper']['bindElementToMarker'](_0x12f4b8,_0x4a4f82['markerName']),_0x302846&&(_0x54d5cc['activeMarkers']['includes'](_0x4a4f82['markerName'])?_0x251400['writer']['addClass']('ck-suggestion-marker--active',_0x12f4b8):_0x251400['writer']['removeClass']('ck-suggestion-marker--active',_0x12f4b8));}}};}_0x54d5cc['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x271799),_0x54d5cc['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x271799),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x22c9db(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4e8acd,_0x4cb58a,_0x28af9f)=>{_0x28af9f['options']['showSuggestionHighlights']&&_0x22c9db({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4e8acd,_0x4cb58a,_0x28af9f);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2889e1,_0x5071c6,_0x41c78d)=>{const {type:_0x38d66d,id:_0x40a23c}=_0x54d5cc['_splitMarkerName'](_0x5071c6['markerName']),_0x463307=_0x54d5cc['getSuggestion'](_0x40a23c),_0x52d8f0=_0x463307['data'];if('formatBlock'!=_0x463307['type']||!_0x52d8f0||'setTableColumnHeader'!=_0x52d8f0['commandName'])return;const _0x158e91=_0x41c78d['mapper']['markerNameToElements'](_0x5071c6['markerName']);if(_0x158e91){for(const _0x53c96c of _0x158e91)_0x41c78d['writer']['removeClass']('ck-suggestion-marker-'+_0x38d66d,_0x53c96c),_0x41c78d['writer']['removeClass']('ck-suggestion-marker--active',_0x53c96c),_0x41c78d['writer']['removeAttribute']('data-suggestion',_0x53c96c),_0x41c78d['mapper']['unbindElementFromMarkerName'](_0x53c96c,_0x5071c6['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ea230=this['editor'],_0xab870f=_0x1ea230['locale'];function _0x524b12(_0x52d836){return{'type':'format','content':o(_0xab870f,'*Format:*\x20%0',_0x52d836)};}_0x1ea230['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1dd564=>{if('formatBlock'!=_0x1dd564['type'])return;const {data:_0x226905}=_0x1dd564;if(_0x226905){if('setTableRowHeader'==_0x226905['commandName']){const _0x5b6d78=_0x226905['commandParams'][0x0]['forceValue'];return _0x524b12(o(_0xab870f,_0x5b6d78?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x226905['commandName']){const _0x44a516=_0x226905['commandParams'][0x0]['forceValue'];return _0x524b12(o(_0xab870f,_0x44a516?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x177f48=>[_0x177f48,null]));class It extends _0x4d360f{static get['requires'](){return[jt];}['afterInit'](){const _0x23d0f8=this['editor'];if(!_0x23d0f8['plugins']['has']('TableClipboard'))return;const _0x4b5562=_0x23d0f8['plugins']['get']('TrackChangesEditing'),_0x44df5b=_0x23d0f8['plugins']['get']('TableUtils'),_0x2d27b7=_0x23d0f8['plugins']['get'](jt),_0x4ffd02=_0x23d0f8['plugins']['get']('TableClipboard');_0x2d27b7['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x23d0f8['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x23d0f8['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x8f05c8=null;_0x23d0f8['model']['on']('insertContent',(_0x526452,_0x1b3ed5)=>{const [_0x5b0711,_0x52510d]=_0x1b3ed5,_0x215096=_0x1b3ed5[_0x1b3ed5['length']-0x1];_0x215096&&_0x215096['forceDefaultExecution']||_0x4b5562['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x412104,_0x2434d7,_0x75694,_0x3d7745,_0x5fbfd1){if(_0x2434d7&&!_0x2434d7['is']('documentSelection'))return!0x1;const _0x5d9b0a=_0x5fbfd1['getTableIfOnlyTableInContent'](_0x412104,_0x75694);if(!_0x5d9b0a||!he(_0x5d9b0a,void 0x0,_0x3d7745))return!0x1;const _0x48660f=_0x3d7745['getSelectionAffectedTableCells'](_0x75694['document']['selection']);if(!_0x48660f['length'])return!0x1;const _0x4cb51a=_0x48660f[0x0]['findAncestor']('table'),_0x1e86d9=_0x3d7745['getRowIndexes'](_0x48660f),_0x5deb7a=_0x3d7745['getColumnIndexes'](_0x48660f),_0x1281f5={'startRow':_0x1e86d9['first'],'endRow':_0x1e86d9['last'],'startColumn':_0x5deb7a['first'],'endColumn':_0x5deb7a['last']};return 0x1==_0x48660f['length']&&(_0x1281f5['endRow']+=_0x3d7745['getRows'](_0x5d9b0a)-0x1,_0x1281f5['endColumn']+=_0x3d7745['getColumns'](_0x5d9b0a)-0x1),he(_0x4cb51a,_0x1281f5,_0x3d7745);}(_0x5b0711,_0x52510d,_0x23d0f8['model'],_0x44df5b,_0x4ffd02)&&(_0x526452['stop'](),_0x8f05c8={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x23d0f8['model']['change'](()=>{_0x23d0f8['model']['insertContent'](_0x1b3ed5[0x0],_0x1b3ed5[0x1],_0x1b3ed5[0x2],{'forceDefaultExecution':!0x0});const _0x1b6022=_0x3cefaa(),{rowInsertionRanges:_0x15affb,columnInsertionRanges:_0x2df1ff,insertionRanges:_0x32bdc6,deletionRanges:_0x4e2bb0,cells:_0x201e9b}=_0x8f05c8;_0x15affb['length']&&_0x4b5562['markMultiRangeInsertion'](_0x15affb,'tablePasteRow',{'tablePasteChainId':_0x1b6022}),_0x2df1ff['length']&&_0x4b5562['markMultiRangeInsertion'](_0x2df1ff,'tablePasteColumn',{'tablePasteChainId':_0x1b6022}),_0x32bdc6['length']&&(_0x4b5562['markMultiRangeInsertion'](_0x32bdc6,'tablePaste',{'tablePasteChainId':_0x1b6022,'skipNestingCheck':!0x0}),_0x32bdc6['forEach'](_0x17d5a8=>_0x17d5a8['detach']?.())),_0x4e2bb0['length']&&(_0x4b5562['markMultiRangeDeletion'](_0x4e2bb0,'tablePaste',{'tablePasteChainId':_0x1b6022,'skipNestingCheck':!0x0}),_0x4e2bb0['forEach'](_0x157812=>_0x157812['detach']?.()));const _0x6b6f09=_0x4b5562['markMultiRangeBlockFormat'](_0x201e9b['map'](({element:_0xd137bf})=>_0xd137bf),{'formatGroupId':_0x3cefaa()},[],'tablePasteCell',{'tablePasteChainId':_0x1b6022});if(_0x6b6f09){const _0x467db3=_0x6b6f09['getMarkers'](),_0x5038f1=[];for(const {element:_0x5f20c4,attributes:_0x48c0ef}of _0x201e9b){if(!_0x48c0ef)continue;const _0x47a0a0=_0x23d0f8['model']['createRangeOn'](_0x5f20c4),_0x5b7b2c=_0x467db3['find'](_0x471956=>_0x471956['getRange']()['isEqual'](_0x47a0a0));_0x5b7b2c&&_0x5038f1['push']([_0x5b7b2c['name'],_0x48c0ef]);}_0x5038f1['length']&&_0x6b6f09['setAttribute']('markerAttributes',Object['fromEntries'](_0x5038f1));}_0x8f05c8=null;}));},{'priority':_0x36e7bf['high']+0xa}),_0x23d0f8['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xb0f0e9,_0x321479)=>{const [_0x4b455f,_0x328b6f,,_0x3ac992]=_0x321479;if(!_0x8f05c8)return;_0xb0f0e9['stop']();const _0x2023ee=_0x4b455f['cell'],_0x4ee1a3=_0x328b6f,_0x294aac=Pe(_0x2023ee),_0x1c725b=Pe(_0x4ee1a3);_0xb0f0e9['return']=_0x2023ee;let _0x1c8f68=null,_0x3eb113=null;if(_0x1c725b||_0x294aac){if(_0x294aac&&!_0x1c725b){_0x3ac992['remove'](_0x2023ee['getChild'](0x0));for(const _0x5e9578 of Array['from'](_0x4ee1a3['getChildren']()))_0x3ac992['insert'](_0x5e9578,_0x2023ee,'end');const _0x2e872c=_0x8f05c8['rowInsertionIndexes']['includes'](_0x4b455f['row']),_0x4c4106=_0x8f05c8['columnInsertionIndexes']['includes'](_0x4b455f['column']);_0x2e872c||_0x4c4106||(_0x1c8f68=_0x27f355['fromRange'](_0x3ac992['createRangeIn'](_0x2023ee)));}else _0x1c725b&&!_0x294aac&&(_0x3eb113=_0x3ac992['createRangeIn'](_0x2023ee));}else{const _0x222049=_0x3ac992['createElement']('tableCellSuggestion'),_0x549058=_0x3ac992['createElement']('tableCellSuggestion');_0x3ac992['wrap'](_0x3ac992['createRangeIn'](_0x2023ee),_0x549058),_0x3ac992['insert'](_0x222049,_0x2023ee,0x0);for(const _0x1fe73c of Array['from'](_0x4ee1a3['getChildren']()))_0x3ac992['insert'](_0x1fe73c,_0x222049,'end');_0x1c8f68=_0x27f355['fromRange'](_0x3ac992['createRangeOn'](_0x222049)),_0x3eb113=_0x27f355['fromRange'](_0x3ac992['createRangeOn'](_0x549058));}const _0x7ce794=Array['from'](_0x4ee1a3['getAttributes']())['filter'](([_0x5d3d35])=>ge['includes'](_0x5d3d35));_0x8f05c8['cells']['push']({'element':_0x2023ee,'attributes':_0x7ce794['length']?Object['fromEntries'](_0x7ce794):null}),_0x1c8f68&&_0x8f05c8['insertionRanges']['push'](_0x1c8f68),_0x3eb113&&_0x8f05c8['deletionRanges']['push'](_0x3eb113);},{'priority':'high'}),_0x44df5b['on']('insertColumns',(_0x1bf1ff,_0x2df110)=>{const [_0x28e519,_0x14b291={}]=_0x2df110;if(!_0x8f05c8)return;const _0x470472=_0x14b291['at']||0x0,_0x25bd36=_0x14b291['columns']||0x1;_0x8f05c8['columnInsertionIndexes']=new Array(_0x25bd36)['fill'](_0x470472)['map']((_0x487e0b,_0x41aa95)=>_0x487e0b+_0x41aa95);for(const {cell:_0x5f3627}of _0x44df5b['createTableWalker'](_0x28e519,{'startColumn':_0x470472,'endColumn':_0x470472+_0x25bd36-0x1}))_0x8f05c8['columnInsertionRanges']['push'](_0x23d0f8['model']['createRangeOn'](_0x5f3627));},{'priority':'low'}),_0x44df5b['on']('insertRows',(_0x591d26,_0x16d699)=>{const [_0x41ee2e,_0x2e0a59={}]=_0x16d699;if(!_0x8f05c8)return;const _0x24a86a=_0x2e0a59['at']||0x0,_0x5cadf3=_0x2e0a59['rows']||0x1;_0x8f05c8['rowInsertionIndexes']=new Array(_0x5cadf3)['fill'](_0x24a86a)['map']((_0x47c739,_0x3bec4d)=>_0x47c739+_0x3bec4d);for(const {cell:_0x28c538}of _0x44df5b['createTableWalker'](_0x41ee2e,{'startRow':_0x24a86a,'endRow':_0x24a86a+_0x5cadf3-0x1}))_0x8f05c8['rowInsertionRanges']['push'](_0x23d0f8['model']['createRangeOn'](_0x28c538));},{'priority':'low'}),_0x4b5562['descriptionFactory']['registerDescriptionCallback'](_0x20970a=>{if(_0x20970a['subType']&&_0x20970a['subType']['startsWith']('tablePaste'))return _0x20970a['previous']?{}:{'type':'insertion','content':o(_0x23d0f8['locale'],'*Replace\x20table\x20cells*')};});const _0x7bd82b=()=>!0x1;for(const _0x42d743 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4b5562['_suggestionFactory']['registerCustomCallback']('insertion',_0x42d743,'join',_0x7bd82b),_0x4b5562['_suggestionFactory']['registerCustomCallback']('deletion',_0x42d743,'join',_0x7bd82b),_0x4b5562['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x42d743,'join',_0x7bd82b);_0x4b5562['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x7bd82b),_0x4b5562['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xd2e270,_0x411858,_0x4f3e5f)=>{const _0x1e4c08=_0xd2e270['map'](_0x2c2fe6=>_0x2c2fe6['getContainedElement']())['filter'](_0x402186=>_0x402186),_0x36f335=new Map(_0x1e4c08['map'](_0x45f81e=>[_0x45f81e,null]));if(_0x8f05c8){for(const {element:_0x4e9840,attributes:_0xd3eb25}of _0x8f05c8['cells'])_0xd3eb25&&_0x36f335['set'](_0x4e9840,_0xd3eb25);}else{if(_0x4f3e5f&&_0x4f3e5f['markerAttributes'])for(const [_0x3205db,_0x33f41d]of Object['entries'](_0x4f3e5f['markerAttributes'])){const _0x3e1d02=_0x23d0f8['model']['markers']['get'](_0x3205db),_0x1c0fba=_0x3e1d02?_0x3e1d02['getRange']()['getContainedElement']():null;_0x1c0fba&&_0x36f335['set'](_0x1c0fba,_0x33f41d);}}_0x23d0f8['model']['change'](_0x4f1666=>{for(const [_0xb94ef1,_0x134c01]of _0x36f335)_0x4f1666['setAttributes']({...Ce,..._0x134c01},_0xb94ef1);});});const _0x361e49=(_0x4628b1,_0xdc9bd8)=>{_0x4b5562['_suggestionFactory']['registerCustomCallback'](_0x4628b1,'tablePaste',_0xdc9bd8,(_0x133fe0,_0x5f15d0,_0x590a69)=>{_0x23d0f8['model']['change'](_0x1b695e=>{const _0x35d755=[];for(const _0x4ab1a0 of _0x133fe0){const _0x1ca4ea=_0x4ab1a0['start']['nodeAfter'];_0x1ca4ea['is']('element','tableCellSuggestion')&&_0x35d755['push'](_0x1ca4ea);}_0x4b5562['_suggestionFactory']['getSuggestionCallback'](_0x4628b1,null,_0xdc9bd8)(_0x133fe0,_0x5f15d0,_0x590a69);for(const _0x130fbd of _0x35d755)'$graveyard'!=_0x130fbd['root']['rootName']&&_0x1b695e['unwrap'](_0x130fbd);});});};_0x361e49('insertion','accept'),_0x361e49('insertion','discard'),_0x361e49('deletion','accept'),_0x361e49('deletion','discard'),_0x4b5562['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x6fcaec=>{const _0x72318b=_0x6fcaec['map'](_0x48fbfd=>_0x48fbfd['getContainedElement']()),_0x1c7e01=_0x72318b[0x0]['findAncestor']('table'),{minRow:_0x2c957f,maxRow:_0x548921}=_0x2d27b7['_getCoordsForCells'](_0x72318b);_0x44df5b['removeRows'](_0x1c7e01,{'at':_0x2c957f,'rows':_0x548921-_0x2c957f+0x1});}),_0x4b5562['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4ac43f=>{const _0x2213ee=_0x4ac43f['map'](_0x5bb0bb=>_0x5bb0bb['getContainedElement']()),_0x105fd1=_0x2213ee[0x0]['findAncestor']('table'),{minColumn:_0x13e355,maxColumn:_0x596aa8}=_0x2d27b7['_getCoordsForCells'](_0x2213ee);_0x44df5b['removeColumns'](_0x105fd1,{'at':_0x13e355,'columns':_0x596aa8-_0x13e355+0x1});});const _0x2607b1=(_0x5456d1,_0x404792)=>{if(!_0x404792['subType']||!_0x404792['subType']['startsWith']('tablePaste'))return;const _0xba9b1a=_0x404792['attributes']['tablePasteChainId'],_0x53fab5=_0x4b5562['getSuggestions']()['filter'](_0x59c05d=>_0x59c05d['isInContent']&&_0x59c05d['attributes']&&_0x59c05d['attributes']['tablePasteChainId']==_0xba9b1a);_0x53fab5['length']&&_0x404792['getAllAdjacentSuggestions']()['length']!=_0x53fab5['length']&&_0x53fab5['reduce']((_0x1f3413,_0x92275)=>(_0x1f3413['next']=_0x92275,_0x92275['previous']=_0x1f3413,_0x92275));};function _0x5a78e0(_0x1b73c5,_0x4ef2ad=!0x0){const {id:_0x5aabe3}=_0x4b5562['_splitMarkerName'](_0x1b73c5['markerName']),_0x2ddf52=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xc13b18=_0x4b5562['activeMarkers']['includes'](_0x1b73c5['markerName']);return _0xc13b18&&_0x2ddf52['push']('ck-suggestion-marker--active'),{'classes':_0x2ddf52,'attributes':{'data-suggestion':_0x5aabe3},'priority':_0xc13b18&&_0x4ef2ad?0xbc2:0xbb8};}_0x4b5562['on']('suggestionLoaded',_0x2607b1,{'priority':'high'}),_0x4b5562['on']('suggestionUnloaded',_0x2607b1,{'priority':'high'}),_0x23d0f8['model']['document']['registerPostFixer'](()=>{let _0x40b59b=!0x1;const _0x4899b8=Array['from'](_0x23d0f8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5c13f0,data:_0x3be5c6}of _0x4899b8){const {group:_0x456609,type:_0x3fb9e1,id:_0x191297}=_0x4b5562['_splitMarkerName'](_0x5c13f0);if('suggestion'!=_0x456609||'deletion'!=_0x3fb9e1||_0x3be5c6['oldRange'])continue;if(!_0x4b5562['hasSuggestion'](_0x191297))continue;const _0x13b58c=_0x4b5562['getSuggestion'](_0x191297)['getRanges'](),_0x3bd836=_0x23d0f8['plugins']['get']('Users')['me'];for(const _0x3ad8bb of _0x4b5562['getSuggestions']()){if(!_0x3ad8bb['isInContent']||_0x3ad8bb['author']!=_0x3bd836)continue;if('formatBlock'!=_0x3ad8bb['type']||'tablePasteCell'!=_0x3ad8bb['subType'])continue;if(_0x3ad8bb['getRanges']()['every'](_0x84f4fb=>_0x13b58c['some'](_0x548b39=>_0x548b39['containsRange'](_0x84f4fb,!0x0)))){for(const _0x159266 of _0x3ad8bb['getAllAdjacentSuggestions']())_0x159266['isInContent']&&(_0x159266['discard'](),_0x40b59b=!0x0);}}}return _0x40b59b;}),_0x23d0f8['model']['document']['registerPostFixer'](_0x23abf3=>{const _0x550500=_0x23d0f8['commands']['get']('redo');if(!_0x550500||!_0x550500['_createdBatches']['has'](_0x23abf3['batch']))return!0x1;let _0x4cf3ef=!0x1;const _0x2d2a89=_0x23d0f8['plugins']['get']('Users')['me'],_0x376a69=_0x23d0f8['model']['document']['differ']['getChanges'](),_0x5ce90c=Array['from'](_0x23d0f8['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x46e84b,data:_0x587796})=>{const {group:_0x4886b2,subType:_0x526cdf,authorId:_0x1ee515}=_0x4b5562['_splitMarkerName'](_0x46e84b);return'suggestion'==_0x4886b2&&'tablePaste'==_0x526cdf&&_0x1ee515==_0x2d2a89['id']&&!_0x587796['oldRange'];});for(const _0x15d6d7 of _0x376a69){if('insert'!=_0x15d6d7['type']||'tableCellSuggestion'!=_0x15d6d7['name']||0x1!=_0x15d6d7['length'])continue;const _0x2c2b03=_0x23abf3['createRange'](_0x15d6d7['position'],_0x15d6d7['position']['getShiftedBy'](0x1));if(!_0x5ce90c['find'](({data:_0x428b60})=>_0x428b60['newRange']['isEqual'](_0x2c2b03))){for(const {name:_0x19bd1c,data:_0x2bb377}of _0x5ce90c)if(_0x2c2b03['containsRange'](_0x2bb377['newRange'])){_0x23abf3['updateMarker'](_0x19bd1c,{'range':_0x2c2b03}),_0x4cf3ef=!0x0;break;}}}return _0x4cf3ef;}),_0x23d0f8['model']['document']['registerPostFixer'](_0x101d73=>{let _0x312617=!0x1;const _0x1497b3=_0x23d0f8['plugins']['get']('Users')['me'],_0x2c65a8=_0x4b5562['getSuggestions']()['filter'](_0x1aeb09=>_0x1aeb09['isInContent']&&_0x1aeb09['author']==_0x1497b3),_0x18073e=new Set(),_0x357af7=new Set();for(const _0x3cad4e of _0x2c65a8)if('tablePaste'==_0x3cad4e['subType'])for(const _0x2786ee of _0x3cad4e['getMarkers']()){const _0x3a1b70=_0x2786ee['getRange']()['getContainedElement']();if(_0x3a1b70){if(_0x3a1b70['is']('element','tableCellSuggestion')&&Pe(_0x3a1b70)){_0x3cad4e['removeMarker'](_0x2786ee['name']),_0x18073e['add'](_0x3a1b70),_0x312617=!0x0;const _0x3938d5=_0x3a1b70['nextSibling'],_0x48fa61=_0x3a1b70['previousSibling'],_0x389acd=_0x3938d5&&_0x3938d5['is']('element','tableCellSuggestion'),_0x48b1cc=_0x48fa61&&_0x48fa61['is']('element','tableCellSuggestion');_0x389acd&&!_0x18073e['has'](_0x3938d5)&&_0x357af7['add'](_0x3938d5),_0x48b1cc&&!_0x18073e['has'](_0x48fa61)&&_0x357af7['add'](_0x48fa61);}else _0x3a1b70['is']('element','paragraph')&&_0x3a1b70['isEmpty']&&(_0x3cad4e['removeMarker'](_0x2786ee['name']),_0x312617=!0x0);}}else{if('tablePasteCell'==_0x3cad4e['subType']){if(!_0x3cad4e['attributes']||!_0x3cad4e['attributes']['tablePasteChainId'])continue;const _0x53b817=_0x3cad4e['attributes']['markerAttributes'];if(_0x53b817&&Object['keys'](_0x53b817)['length'])continue;const _0x2ab48e=_0x3cad4e['attributes']['tablePasteChainId'];let _0x2bc62d=!0x0,_0xdefd9b=!0x0;for(const _0x1defcb of _0x2c65a8)if(_0x1defcb['subType']&&_0x1defcb['subType']['startsWith']('tablePaste')){if(!_0x1defcb['attributes']['tablePasteChainId']){_0xdefd9b=!0x1;break;}if(_0x1defcb['id']!=_0x3cad4e['id']&&_0x1defcb['attributes']['tablePasteChainId']==_0x2ab48e){_0x2bc62d=!0x1;break;}}_0xdefd9b&&_0x2bc62d&&(_0x3cad4e['removeMarkers'](),_0x312617=!0x0);}}for(const _0x1b2922 of _0x18073e)_0x101d73['remove'](_0x1b2922);for(const _0x44d7bb of _0x357af7)_0x101d73['unwrap'](_0x44d7bb);return _0x312617;}),_0x23d0f8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1cded6,_0x1be19e)=>_0x5a78e0(_0x1cded6),'converterPriority':'high'}),_0x23d0f8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x35e87e,_0x29ce27)=>_0x29ce27['options']['showSuggestionHighlights']?_0x5a78e0(_0x35e87e,!0x1):null,'converterPriority':'high'});const _0x5f51ef=_0x23d0f8['editing']['view'];this['listenTo'](_0x5f51ef['document'],'clipboardOutput',(_0x5e7b98,_0x33f381)=>{const _0x4dceca=[];for(const _0x329038 of _0x5f51ef['createRangeIn'](_0x33f381['content'])['getItems']())_0x329038['is']('element','suggestion-td')&&_0x4dceca['push'](_0x329038);_0x5f51ef['change'](_0x14a9b0=>{for(const _0x11f00d of _0x4dceca)_0x14a9b0['move'](_0x14a9b0['createRangeIn'](_0x11f00d),_0x14a9b0['createPositionBefore'](_0x11f00d)),_0x14a9b0['remove'](_0x11f00d);});});}}function Pe(_0x391a3e){if(_0x391a3e['isEmpty'])return!0x0;const _0x4b7c5d=_0x391a3e['getChild'](0x0);return _0x4b7c5d['is']('element','paragraph')&&_0x4b7c5d['isEmpty'];}function he(_0x5cf6fe,_0x2fd742={},_0x5baff1){for(const {isAnchor:_0x109eb6,cellHeight:_0x173ec1,cellWidth:_0xc5488c}of _0x5baff1['createTableWalker'](_0x5cf6fe,{'includeAllSlots':!0x0,..._0x2fd742}))if(!_0x109eb6||0x1!=_0x173ec1||0x1!=_0xc5488c)return!0x1;return!0x0;}class vt extends _0x4d360f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x461e26=this['editor']['plugins']['get']('TrackChangesEditing');_0x461e26['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x461e26['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x461e26['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x461e26['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x461e26['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x461e26['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x26259f,_0xc22c4a){const _0x1975b7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26758d=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x38736b=_0xc22c4a['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4250c0=_0x26758d['getColumnGroupElement'](_0x38736b);let _0x390f7d=_0x4250c0?_0x26758d['getTableColumnsWidths'](_0x4250c0):null,_0x1031ee=_0x38736b['getAttribute']('tableWidth')||null;const _0x4acbbe=_0xc22c4a['tableWidth']||_0x1031ee,_0x1430d5=_0xc22c4a['columnWidths']||_0x390f7d,_0x39d779=this['editor']['plugins']['get']('Users')['me'];for(const _0x15f9c0 of _0x1975b7['getSuggestions']()){const _0xfb2a8b=_0x15f9c0['getContainedElement']();if('resizeTable'===_0x15f9c0['subType']&&_0xfb2a8b===_0x38736b){_0x15f9c0['author']!==_0x39d779&&_0x15f9c0['discard']();const _0x2cee56=_0x15f9c0['data']['commandParams'];_0x1031ee=_0x2cee56[0x0]['tableWidth'],_0x390f7d=_0x2cee56[0x0]['columnWidths'];break;}}_0x26259f({'table':_0x38736b,'tableWidth':_0x4acbbe,'columnWidths':_0x1430d5}),_0x1975b7['markBlockFormat'](_0x38736b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1031ee,'columnWidths':_0x390f7d}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3f79f5){if('formatBlock'!=_0x3f79f5['type']&&'formatInline'!=_0x3f79f5['type'])return;const {data:_0x1995c0}=_0x3f79f5;if(_0x1995c0&&'resizeTable'===_0x1995c0['formatGroupId']){const _0x2913bf='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2913bf)};}}}class Ct extends _0x4d360f{['afterInit'](){const _0x7f7d1=this['editor'];_0x7f7d1['plugins']['has']('Template')&&_0x7f7d1['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x4d360f{['afterInit'](){const _0x3eeab5=this['editor'];if(!_0x3eeab5['commands']['get']('insertTableOfContents'))return;_0x3eeab5['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x21773a=_0x3eeab5['plugins']['get']('TrackChangesEditing'),_0x42857f=_0x3eeab5['locale'];_0x21773a['descriptionFactory']['registerElementLabel']('tableOfContents',_0x117fb9=>o(_0x42857f,'ELEMENT_TABLE_OF_CONTENTS',_0x117fb9));}}class Dt extends _0x4d360f{['afterInit'](){const _0x284468=this['editor'];if(!_0x284468['plugins']['has']('Title'))return;const _0x2231aa=_0x284468['plugins']['get']('TrackChangesEditing');_0x2231aa['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x284468['locale'],'ELEMENT_TITLE')),_0x284468['model']['document']['registerPostFixer'](_0x29c716=>{let _0x49f9fa=!0x1;const _0x35d820=Array['from'](_0x284468['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4520c1,data:_0x4cc9d1}of _0x35d820){const {group:_0x488a94}=_0x2231aa['_splitMarkerName'](_0x4520c1);if('suggestion'!==_0x488a94||!_0x4cc9d1['newRange'])continue;const _0x425075=_0x4cc9d1['newRange'],_0x5eca92=_0x425075['end']['nodeBefore'];if(!_0x5eca92||!_0x5eca92['is']('element','title-content'))continue;if(!_0x425075['start']['isTouching'](_0x425075['end']))continue;const _0x539bac=_0x284468['model']['schema']['getNearestSelectionRange'](_0x425075['end'],'forward');if(_0x539bac&&_0x539bac['isCollapsed']){const _0x4f2fca=_0x29c716['createRange'](_0x425075['start'],_0x539bac['start']);_0x4f2fca['isEqual'](_0x425075)||(_0x29c716['updateMarker'](_0x4520c1,{'range':_0x4f2fca}),_0x49f9fa=!0x0);}_0x49f9fa||(_0x29c716['removeMarker'](_0x4520c1),_0x49f9fa=!0x0);}return _0x49f9fa;});}}class Nt extends _0x4d360f{['afterInit'](){const _0x432000=this['editor'],_0x10f8c3=_0x432000['plugins']['get']('TrackChangesEditing');_0x432000['plugins']['has']('UndoEditing')&&(_0x10f8c3['enableCommand']('undo'),_0x10f8c3['enableCommand']('redo'));}}class Mt extends _0x4d360f{static get['requires'](){return[jt];}['afterInit'](){const _0x3051c3=this['editor'];if(!_0x3051c3['plugins']['has']('TableCaptionEditing'))return;_0x3051c3['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x4d360f{['tableProperties'];['tableCellProperties'];constructor(_0x159b87){super(_0x159b87),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x470624=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2073bf of this['tableProperties'])_0x470624['enableCommand'](_0x2073bf,(_0x504bb1,_0x4c379a)=>{const _0x366e00=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2073bf,[_0x366e00],this['tableProperties'],'tableProperties',_0x504bb1,_0x4c379a);});_0x470624['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x470624['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x470624['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3a1a22,_0x30c1aa)=>this['handleDiscardAction'](this['tableProperties'],_0x3a1a22,_0x30c1aa)),_0x470624['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x120d10 of this['tableCellProperties'])_0x470624['enableCommand'](_0x120d10,(_0x5f2856,_0x592659)=>{const _0x3ba551=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x120d10,_0x3ba551,this['tableCellProperties'],'tableCellProperties',_0x5f2856,_0x592659);});_0x470624['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x470624['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x470624['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2b94a0,_0x5425bd)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2b94a0,_0x5425bd)),_0x470624['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x470624['descriptionFactory']['registerDescriptionCallback'](_0x98af72=>this['handleSuggestionDescription'](_0x98af72));}['_handlePropertyChange'](_0x548464,_0x5cea76,_0x221462,_0x50a561,_0x514722,_0x513cf5){const _0x415f11=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x513cf5['batch'],()=>{for(const _0x51322a of _0x5cea76){if(this['_getSuggestion'](_0x51322a,_0x50a561))_0x514722(_0x513cf5);else{const _0x97e782={};for(const _0x1642d0 of _0x221462){const _0x440b12=_0x51322a['getAttribute'](_0x1642d0);void 0x0!==_0x440b12&&(_0x97e782[_0x1642d0]=_0x440b12);}_0x514722(_0x513cf5),_0x415f11['markBlockFormat'](_0x51322a,{'commandParams':[_0x97e782]},[],_0x50a561);}}});}['handleDiscardAction'](_0x4bb76c,_0x1b2e4f,_0x1f3f68){const _0x415b07=_0x1b2e4f[0x0]['start']['nodeAfter'],_0x31869e=_0x1f3f68['commandParams'][0x0];this['editor']['model']['change'](_0x194a6b=>{for(const _0x46ee3b of _0x4bb76c)void 0x0!==_0x31869e[_0x46ee3b]?_0x194a6b['setAttribute'](_0x46ee3b,_0x31869e[_0x46ee3b],_0x415b07):_0x194a6b['removeAttribute'](_0x46ee3b,_0x415b07);});}['handleSuggestionDescription'](_0x9cbbdd){if(_0x9cbbdd['data'])switch(_0x9cbbdd['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'](_0x410ecb,_0x530426){const _0x13b0af=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4aa563 of _0x13b0af['getSuggestions']({'skipNotAttached':!0x0})){const _0x43db7e=_0x4aa563['getContainedElement']();if(_0x4aa563['subType']===_0x530426&&_0x43db7e===_0x410ecb)return _0x4aa563;}return null;}}const m='$elementName';class p extends _0x4d360f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x505173,_0x5bbcf2,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x545730){function _0x280021(_0x2af9c7){return _0x2af9c7['map'](_0x474a52=>String['fromCharCode'](_0x474a52))['join']('');}super(_0x545730),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x534c82,_0x4fcb8d,_0x2a5de8,_0x108a9d)=>{this['_model']['change'](()=>{for(const _0x1b5004 of[..._0x108a9d,..._0x2a5de8])this['_model']['markers']['has'](_0x1b5004)&&_0x545730['editing']['reconvertMarker'](_0x1b5004);});}),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']=_0x545730['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(),_0x545730['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x545730['config']['get']('trackChanges.trackFormatChanges'),_0x545730['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x545730['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x545730,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x280021([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x280021([0x34,0x30,0x34,0x38,0x31,0x32,0x32,0x30]);}['init'](){const _0x35d2e8=this['editor'],_0x3e0073=(_0x1b88d8,_0x442af2)=>{if('attribute'!=_0x1b88d8)return'ck-suggestion-marker-'+_0x1b88d8;const _0x1a1f8f=_0x442af2['split']('|')[0x0];return this['_isBlockAttribute'](_0x1a1f8f)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x35d2e8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4b4dcd=>{const {id:_0x4656fa,type:_0x192798,subType:_0x66f085}=this['_splitMarkerName'](_0x4b4dcd['markerName']),_0x426fbd=['ck-suggestion-marker',_0x3e0073(_0x192798,_0x66f085)];let _0x17eb11=0xbb8;return this['activeMarkers']['includes'](_0x4b4dcd['markerName'])&&(_0x426fbd['push']('ck-suggestion-marker--active'),_0x17eb11=0xbc2),'deletion'==_0x192798&&(_0x17eb11+=0x5),{'classes':_0x426fbd,'attributes':{'data-suggestion':_0x4656fa},'priority':_0x17eb11};}}),_0x35d2e8['conversion']['for']('dataDowncast')['add'](_0x16bca4=>{_0x16bca4['on']('addMarker:suggestion',(_0x2b1a72,_0x43e4cc,_0x161461)=>{if(!_0x161461['options']['showSuggestionHighlights'])return;const _0x218429=_0x43e4cc['item'];if(!_0x218429)return;const _0x22615d=_0x161461['mapper']['toViewElement'](_0x218429);_0x35d2e8['model']['schema']['isObject'](_0x218429)&&_0x22615d&&!_0x22615d['getCustomProperty']('widget')&&_0x22615d['is']('containerElement')&&_0x34fdae(_0x22615d,_0x161461['writer']);},{'priority':'high'});}),_0x35d2e8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2993c8,_0x227a74)=>{if(!_0x227a74['options']['showSuggestionHighlights'])return null;const {type:_0x52d169,subType:_0x513a1a}=this['_splitMarkerName'](_0x2993c8['markerName']);return{'classes':['ck-suggestion-marker',_0x3e0073(_0x52d169,_0x513a1a)],'priority':0xbb8};}});const _0x3b2750=({showActiveMarkers:_0x21b31d=!0x0,isAttributeSuggestion:_0x3027f9=!0x1}={})=>(_0x46f46e,_0x4da341,_0x3e2516)=>{if(!_0x4da341['item'])return;const {id:_0x5b5335}=this['_splitMarkerName'](_0x4da341['markerName']);if(_0x3027f9){const _0xa8d67b=this['_suggestions']['get'](_0x5b5335),_0x24d555=this['_getAttributeKey'](_0xa8d67b);if(!this['_isBlockAttribute'](_0x24d555))return;}if(_0x4da341['item']['is']('selection'))return void _0x3e2516['consumable']['consume'](_0x4da341['item'],_0x46f46e['name']);const _0x2d82b8=_0x3e2516['mapper']['toViewElement'](_0x4da341['item']);if(_0x4da341['item']['is']('element')&&_0x35d2e8['model']['schema']['isBlock'](_0x4da341['item'])&&!_0x2d82b8['getCustomProperty']('addHighlight')){_0x3e2516['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2d82b8),_0x3e2516['writer']['setAttribute']('data-suggestion',_0x5b5335,_0x2d82b8),_0x3e2516['mapper']['bindElementToMarker'](_0x2d82b8,_0x4da341['markerName']),_0x21b31d&&(this['activeMarkers']['includes'](_0x4da341['markerName'])?_0x3e2516['writer']['addClass']('ck-suggestion-marker--active',_0x2d82b8):_0x3e2516['writer']['removeClass']('ck-suggestion-marker--active',_0x2d82b8));for(const _0x1ff5cd of _0x35d2e8['model']['createRangeIn'](_0x4da341['item'])['getItems']())_0x3e2516['consumable']['consume'](_0x1ff5cd,_0x46f46e['name']);_0x3e2516['consumable']['consume'](_0x4da341['item'],_0x46f46e['name']);}};_0x35d2e8['conversion']['for']('dataDowncast')['add'](_0xbf56f8=>{_0xbf56f8['on']('addMarker:suggestion:formatBlock',(_0x3aded4,_0x3f6068,_0x4c559a)=>{_0x4c559a['options']['showSuggestionHighlights']&&_0x3b2750({'showActiveMarkers':!0x1})(_0x3aded4,_0x3f6068,_0x4c559a);},{'priority':'highest'});}),_0x35d2e8['conversion']['for']('dataDowncast')['add'](_0x23a454=>{_0x23a454['on']('addMarker:suggestion:attribute',(_0x4094d6,_0x379f80,_0x330c5e)=>{_0x330c5e['options']['showSuggestionHighlights']&&_0x3b2750({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4094d6,_0x379f80,_0x330c5e);},{'priority':'highest'});}),_0x35d2e8['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4a29aa,_0x215d53)=>_0x215d53['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4a29aa['substr'](0xb)}}),_0x35d2e8['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x255c15,{writer:_0x1089ab})=>{let _0x3f60c3='suggestion:'+_0x255c15['getAttribute']('suggestion-type')+':'+_0x255c15['getAttribute']('id');return _0x255c15['getAttribute']('marker-count')&&(_0x3f60c3+=':'+_0x255c15['getAttribute']('marker-count')),_0x1089ab['createElement']('$marker',{'data-name':_0x3f60c3});}}),_0x35d2e8['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x35d2e8['conversion']['for']('editingDowncast')['add'](_0x4789f3=>{_0x4789f3['on']('addMarker:suggestion:formatBlock',_0x3b2750(),{'priority':'high'});}),_0x35d2e8['conversion']['for']('editingDowncast')['add'](_0x5de182=>{_0x5de182['on']('addMarker:suggestion:attribute',_0x3b2750({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x35d2e8['conversion']['for']('editingDowncast')['add'](_0xc38845=>{_0xc38845['on']('removeMarker:suggestion:formatBlock',(_0x3e7ef7,_0x56213f,_0xeb9a4c)=>{const _0x23501b=_0xeb9a4c['mapper']['markerNameToElements'](_0x56213f['markerName']);if(_0x23501b){for(const _0x5afceb of _0x23501b)_0x5afceb['getCustomProperty']('addHighlight')||(_0xeb9a4c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5afceb),_0xeb9a4c['writer']['removeAttribute']('data-suggestion',_0x5afceb),_0xeb9a4c['mapper']['unbindElementFromMarkerName'](_0x5afceb,_0x56213f['markerName']));}},{'priority':'high'});}),_0x35d2e8['conversion']['for']('editingDowncast')['add'](_0x141571=>{_0x141571['on']('removeMarker:suggestion:attribute',(_0x24a223,_0x2afcf0,_0x40ae5f)=>{const _0x2aaae8=_0x40ae5f['mapper']['markerNameToElements'](_0x2afcf0['markerName']);if(!_0x2aaae8)return;const {id:_0x17aecd}=this['_splitMarkerName'](_0x2afcf0['markerName']),_0x5750ae=this['_suggestions']['get'](_0x17aecd),_0x38089e=this['_getAttributeKey'](_0x5750ae);if(this['_isBlockAttribute'](_0x38089e)){for(const _0x233ad3 of _0x2aaae8)_0x233ad3['getCustomProperty']('addHighlight')||(_0x40ae5f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x233ad3),_0x40ae5f['writer']['removeAttribute']('data-suggestion',_0x233ad3),_0x40ae5f['mapper']['unbindElementFromMarkerName'](_0x233ad3,_0x2afcf0['markerName']));}},{'priority':'high'});}),_0x35d2e8['model']['document']['registerPostFixer'](_0x34bd79=>{let _0x459f55=!0x1;const _0x23051e=Array['from'](_0x35d2e8['model']['document']['differ']['getChangedMarkers']()),_0x48569f=new Set();for(const {name:_0x1ca669,data:_0x155e50}of _0x23051e){const {group:_0x4b8cf0,type:_0x17248b,subType:_0x3d618d,id:_0x586f1c}=this['_splitMarkerName'](_0x1ca669);if('suggestion'!==_0x4b8cf0)continue;const _0x52f9e7=this['_suggestions']['get'](_0x586f1c);if(null!=_0x155e50['newRange']){'formatInline'==_0x17248b&&(_0x459f55=_0x459f55||Et(_0x155e50['newRange'],_0x1ca669,_0x34bd79,_0x35d2e8['model']['schema']));const _0x8785d5='attribute'==_0x17248b&&this['_isBlockAttribute'](_0x3d618d['split']('|')[0x0]);if(_0x155e50['newRange']['isCollapsed']||'$graveyard'==_0x155e50['newRange']['root']['rootName']||'formatBlock'==_0x17248b&&!Ut(_0x155e50['newRange'])||_0x8785d5&&!Ut(_0x155e50['newRange'])||'deletion'==_0x17248b&&!(!Tt(_0x4bfb49=_0x155e50['newRange'])&&!function(_0x2eb50c){return _0x2eb50c['start']['parent']==_0x2eb50c['end']['nodeBefore']&&_0x2eb50c['start']['isAtEnd'];}(_0x4bfb49)))_0x34bd79['removeMarker'](_0x1ca669),_0x459f55=!0x0;else{if(!_0x52f9e7||!_0x52f9e7['isInContent'])continue;_0x48569f['add'](_0x52f9e7);}}}var _0x4bfb49;return _0x48569f['size']>0x0&&(_0x459f55=!!this['_joinWithAdjacentSuggestions'](_0x48569f)||_0x459f55),_0x459f55;}),_0x35d2e8['model']['document']['registerPostFixer'](_0x5c36fe=>{let _0x3324e7=!0x1;for(const _0x482a14 of _0x35d2e8['model']['document']['differ']['getChanges']())if('insert'==_0x482a14['type'])for(const _0x53e5d6 of this['_suggestions']['values']()){if(_0x53e5d6['isMultiRange']||!_0x53e5d6['isInContent'])continue;const _0x2db74a='formatBlock'==_0x53e5d6['type'],_0x5bc24a=this['_getAttributeKey'](_0x53e5d6),_0x38f2b2=_0x5bc24a&&this['_isBlockAttribute'](_0x5bc24a);if(!_0x2db74a&&!_0x38f2b2)continue;const _0x4fb21a=_0x53e5d6['getFirstRange']();if(_0x4fb21a['start']['parent']!=_0x4fb21a['end']['parent']&&!_0x4fb21a['end']['isAtEnd']){const _0x37bf81=_0x35d2e8['model']['createPositionAt'](_0x4fb21a['start']['nodeAfter'],'end'),_0x16e373=_0x35d2e8['model']['createRange'](_0x4fb21a['start'],_0x37bf81);_0x5c36fe['updateMarker'](_0x53e5d6['getFirstMarker'](),{'range':_0x16e373}),_0x3324e7=!0x0;}}return _0x3324e7;}),_0x35d2e8['model']['document']['registerPostFixer'](_0x106345=>this['_processAttributeChanges'](_0x106345)),_0x35d2e8['model']['document']['registerPostFixer'](_0x54f4e1=>!_0x54f4e1['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x54f4e1)),_0x35d2e8['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x35d2e8['model']['document']['on']('change:data',(_0x1eccbf,_0x4e2ad3)=>{if(!_0x4e2ad3['isLocal']||_0x4e2ad3['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x456163=_0x35d2e8['model']['document']['differ']['getChanges']();if(0x0==_0x456163['length'])return;const _0x3c2557=[],_0x4b8b17=_0x456163['filter'](_0x1d62c8=>'attribute'==_0x1d62c8['type']),_0x7c9cea=_0x456163['filter'](_0x39da08=>'insert'==_0x39da08['type']&&'$text'!=_0x39da08['name']);for(const _0xf0ac65 of _0x4b8b17)this['_isRegisteredAttribute'](_0xf0ac65['attributeKey'])&&_0x3c2557['push']({'key':_0xf0ac65['attributeKey'],'newValue':_0xf0ac65['attributeNewValue'],'oldValue':_0xf0ac65['attributeOldValue'],'range':Ot(_0xf0ac65['range'],_0x35d2e8['model'])});for(const _0x4a0895 of _0x7c9cea){if('rename'!=_0x4a0895['action']&&'refresh'!=_0x4a0895['action'])continue;const _0x3f4f00=Gt(_0x4a0895['position']['nodeAfter'],_0x35d2e8['model']),_0x5cf5a5=_0x4a0895['before'];'rename'==_0x4a0895['action']&&_0x3c2557['push']({'key':m,'newValue':_0x4a0895['name'],'oldValue':_0x5cf5a5['name'],'range':_0x3f4f00});for(const [_0x8e2cc5,_0x5e832b]of _0x5cf5a5['attributes']){if(!this['_isRegisteredAttribute'](_0x8e2cc5))continue;const _0x1c5d1b=_0x4a0895['attributes']['get'](_0x8e2cc5);_0x5e832b!==_0x1c5d1b&&_0x3c2557['push']({'key':_0x8e2cc5,'newValue':_0x1c5d1b,'oldValue':_0x5e832b,'range':_0x3f4f00});}for(const [_0x1654ce,_0x42e7b9]of _0x4a0895['attributes'])this['_isRegisteredAttribute'](_0x1654ce)&&(_0x5cf5a5['attributes']['has'](_0x1654ce)||_0x3c2557['push']({'key':_0x1654ce,'newValue':_0x42e7b9,'oldValue':null,'range':_0x3f4f00}));}0x0!=_0x3c2557['length']&&_0x35d2e8['model']['enqueueChange'](_0x4e2ad3,_0x2193ca=>{const _0x6fdb87=_0x3cefaa();for(const {range:_0x3fcf7f,key:_0x25f8f5,oldValue:_0x2cd239,newValue:_0x40fe4b}of _0x3c2557)this['markAttributeChange'](_0x3fcf7f,_0x25f8f5,_0x2cd239,_0x40fe4b,{'groupId':_0x6fdb87});this['_reduceExistingSuggestions'](_0x2193ca,_0x3c2557);});},{'priority':'lowest'}),_0x35d2e8['model']['markers']['on']('update:suggestion',(_0x6eda90,_0x277778,_0x4946ff)=>{if(null==_0x4946ff){const {id:_0x53d8ec}=this['_splitMarkerName'](_0x277778['name']),_0x3a80fe=this['_suggestions']['get'](_0x53d8ec);_0x3a80fe&&_0x3a80fe['addMarkerName'](_0x277778['name']);}}),_0x35d2e8['model']['document']['on']('change:data',()=>{const _0x1d83e6=Array['from'](_0x35d2e8['model']['document']['differ']['getChangedMarkers']())['filter'](_0x258e92=>'suggestion'===this['_splitMarkerName'](_0x258e92['name'])['group']);if(0x0===_0x1d83e6['length'])return;_0x1d83e6['sort']((_0xe2cf31,_0x358fa3)=>{const _0x419ecf=_0xe2cf31['data']['oldRange'],_0x2f6fe0=_0x358fa3['data']['oldRange'];return null===_0x419ecf&&null===_0x2f6fe0?0x0:null===_0x419ecf&&null!==_0x2f6fe0?-0x1:null!==_0x419ecf&&null===_0x2f6fe0?0x1:_0x419ecf['start']['isBefore'](_0x2f6fe0['start'])?-0x1:0x1;});const _0x30c473=new Set(),_0x207e4e=new Set();for(const {name:_0x39d85a,data:_0x29bca8}of _0x1d83e6){const {id:_0x2963a5}=this['_splitMarkerName'](_0x39d85a);if(null===_0x29bca8['oldRange']){const _0x1758ab=this['_handleNewSuggestionMarker'](_0x39d85a);_0x207e4e['add'](_0x1758ab);}else{const _0x45a2ae=this['_suggestions']['get'](_0x2963a5);null!==_0x29bca8['newRange']||_0x45a2ae['isInContent']?(_0x30c473['add'](_0x45a2ae['head']),_0x207e4e['add'](_0x45a2ae)):this['_removeSuggestion'](_0x45a2ae);}}_0x207e4e['size']>0x0&&this['_refreshSuggestionsChain'](_0x207e4e);for(const _0x317351 of _0x30c473)this['fire']('suggestionChanged',_0x317351);}),_0x35d2e8['model']['on']('applyOperation',(_0x4e3009,_0xdffd1e)=>{const _0x25176f=_0xdffd1e[0x0];if(!this['_suggestions']['size'])return;if(!_0x25176f['isDocumentOperation'])return;if(_0x25176f['batch']['isUndo']||!_0x25176f['batch']['isLocal'])return;let _0x561f2d,_0x330083;switch(_0x25176f['type']){case'insert':_0x561f2d=_0x35d2e8['model']['createPositionAt'](_0x25176f['position']),_0x330083=_0x561f2d['getShiftedBy'](_0x25176f['howMany']);break;case'split':_0x561f2d=_0x35d2e8['model']['createPositionAt'](_0x25176f['splitPosition']),_0x330083=_0x35d2e8['model']['createPositionAt'](_0x25176f['moveTargetPosition']);break;case'move':_0x561f2d=_0x35d2e8['model']['createPositionAt'](_0x25176f['targetPosition']),_0x330083=_0x561f2d['getShiftedBy'](_0x25176f['howMany']);break;default:return;}const _0x3c7271=_0x35d2e8['model']['createRange'](_0x561f2d,_0x330083);_0x35d2e8['model']['change'](()=>{for(const {suggestion:_0x199c79,meta:_0x3bd502}of this['_findSuggestions'](_0x3c7271)){if(_0x199c79['isMultiRange'])continue;if('formatInline'==_0x199c79['type'])continue;const _0x33bd9c=this['_getAttributeKey'](_0x199c79);if(_0x33bd9c&&this['_isBlockAttribute'](_0x33bd9c)&&'split'!=_0x25176f['type'])continue;const _0x38b333=_0x199c79['data']&&_0x199c79['data']['multipleBlocks'];('formatBlock'!=_0x199c79['type']||'split'==_0x25176f['type']&&!_0x38b333)&&(_0x3bd502['containsRangeInObject']||'insertion'==_0x199c79['type']&&_0x3bd502['isOwn']||_0x199c79['getFirstRange']()['containsRange'](_0x3c7271)&&this['_breakSuggestionMarker'](_0x199c79,_0x561f2d,_0x330083));}});},{'priority':'lowest'}),_0x35d2e8['model']['on']('deleteContent',(_0x56aea5,_0x21710d)=>{const _0x3cffd6=_0x21710d[0x0],_0x41afe2=_0x21710d[0x1];if(_0x41afe2&&_0x41afe2['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3cffd6['isCollapsed'])return;const _0x4d2060=_0x35d2e8['model']['schema'],{start:_0x1adf4f,end:_0x51f621}=_0x3cffd6['getFirstRange'](),_0x4e0879=_0x1adf4f['nodeAfter']&&_0x4d2060['isLimit'](_0x1adf4f['nodeAfter'])?null:_0x4d2060['getNearestSelectionRange'](_0x1adf4f,'forward'),_0x3e09f1=_0x51f621['nodeBefore']&&_0x4d2060['isLimit'](_0x51f621['nodeBefore'])?null:_0x4d2060['getNearestSelectionRange'](_0x51f621,'backward'),_0x295381=_0x35d2e8['model']['createRange'](_0x4e0879?_0x4e0879['start']:_0x1adf4f,_0x3e09f1?_0x3e09f1['end']:_0x51f621);_0x35d2e8['model']['change'](_0x31d86a=>{this['markDeletion'](_0x295381);const _0x40da0d=_0x35d2e8['model']['schema']['getNearestSelectionRange'](_0x295381['start']);_0x3cffd6['is']('documentSelection')?_0x31d86a['setSelection'](_0x40da0d):_0x3cffd6['setTo'](_0x40da0d);}),_0x56aea5['stop']();},{'priority':_0x36e7bf['normal']+0xa}),_0x35d2e8['model']['on']('insertContent',(_0x24a720,_0x2a444c)=>{const _0x37c7fd=_0x2a444c[_0x2a444c['length']-0x1];_0x37c7fd&&_0x37c7fd['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x35d2e8['model']['change'](()=>{let _0x43c3f6=_0x35d2e8['model']['insertContent'](_0x2a444c[0x0],_0x2a444c[0x1],_0x2a444c[0x2],{'forceDefaultExecution':!0x0});if(!_0x43c3f6)return;_0x24a720['return']=_0x43c3f6['clone']();const _0x657b10=_0x43c3f6['end']['nodeBefore'],_0x12dd94=_0x35d2e8['model']['schema'];_0x657b10&&_0x12dd94['isBlock'](_0x657b10)&&!_0x12dd94['isObject'](_0x657b10)&&(_0x43c3f6=_0x35d2e8['model']['createRange'](_0x43c3f6['start'],_0x35d2e8['model']['createPositionAt'](_0x657b10,'end'))),this['markInsertion'](_0x43c3f6);}),_0x24a720['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x646ca8=new $(_0x35d2e8,this['_suggestions']);_0x35d2e8['commands']['add']('acceptSuggestion',_0x646ca8),this['enableCommand']('acceptSuggestion');const _0x41ac40=new B(_0x35d2e8,this['_suggestions']);_0x35d2e8['commands']['add']('discardSuggestion',_0x41ac40),this['enableCommand']('discardSuggestion'),_0x35d2e8['commands']['add']('acceptAllSuggestions',new x(_0x35d2e8,_0x646ca8,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x35d2e8['commands']['add']('discardAllSuggestions',new x(_0x35d2e8,_0x41ac40,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x35d2e8['commands']['add']('acceptSelectedSuggestions',new R(_0x35d2e8,_0x646ca8,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x35d2e8['commands']['add']('discardSelectedSuggestions',new R(_0x35d2e8,_0x41ac40,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x56ee95=_0x35d2e8['plugins']['get']('CommentsRepository');this['listenTo'](_0x56ee95,'addComment',(_0x435237,{threadId:_0x217d26})=>{const _0x5487c5=this['_suggestions']['get'](_0x217d26);_0x5487c5&&_0x5487c5['commentThread']&&0x1===_0x5487c5['commentThread']['length']&&this['_updateSuggestionData'](_0x217d26,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x56ee95,'removeComment',(_0x30331e,{threadId:_0x23ba45})=>{const _0x19971a=this['_suggestions']['get'](_0x23ba45);_0x19971a&&_0x19971a['commentThread']&&!_0x19971a['commentThread']['length']&&this['_updateSuggestionData'](_0x23ba45,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x270070){if(this['_adapter'])throw new _0x3f3ca6('track-changes-adapter-already-set',this);this['_adapter']=_0x270070;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x41090c=!0x1,toJSON:_0x448e65=!0x1}={}){const _0x1e78c9=[];for(const _0x50ecb5 of this['_suggestions']['values']())_0x41090c&&!_0x50ecb5['isInContent']||_0x1e78c9['push'](_0x50ecb5);return _0x448e65?_0x1e78c9['map'](_0x5c09cd=>_0x5c09cd['toJSON']()):_0x1e78c9;}['getSuggestion'](_0x4f3268){const _0x114cd8=this['_suggestions']['get'](_0x4f3268);if(!_0x114cd8)throw new _0x3f3ca6('track-changes-suggestion-not-found',this);return _0x114cd8;}['hasSuggestion'](_0x16066f){return this['_suggestions']['has'](_0x16066f);}['addSuggestionData'](_0x1974b6){const {authorId:_0x48a128,id:_0x1ce7b5,attributes:_0x203927}=_0x1974b6,[_0x35beff,_0x3cd982]=_0x1974b6['type']['split'](':'),_0x266cce=this['_suggestions']['get'](_0x1ce7b5)||this['_createSuggestion'](_0x35beff,_0x3cd982,_0x1ce7b5,_0x48a128,_0x203927);if(this['_addThreadToSuggestion'](_0x266cce),this['_checkSuggestionCorrectness'](_0x266cce,_0x35beff,_0x3cd982||null,_0x48a128),_0x266cce['createdAt']=_0x1974b6['createdAt'],_0x266cce['_isDataLoaded']=!0x0,_0x203927&&_0x203927['@external']){const _0x52cdd4=_0x203927['@external'],_0x11631a=this['_getExternalAuthor'](_0x52cdd4['authorName']);_0x266cce['authoredAt']=_0x52cdd4['createdAt'],_0x266cce['author']=_0x11631a,_0x266cce['isExternal']=!0x0;}else _0x266cce['authoredAt']=_0x1974b6['createdAt'];switch(_0x1974b6['data']&&(_0x266cce['data']=_0x1974b6['data']),_0x1974b6['attributes']&&(_0x266cce['attributes']=_0x1974b6['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x266cce['_saved']=!0x0),this['_suggestionState']['get'](_0x266cce)){case'notReady':this['_suggestionState']['set'](_0x266cce,'dataReady');break;case'markerReady':_0x266cce['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x266cce])),this['_refreshSuggestionsChain'](new Set([_0x266cce])),this['_suggestionState']['set'](_0x266cce,'ready'),this['fire']('suggestionLoaded',_0x266cce)):this['_suggestionState']['set'](_0x266cce,'removed');}return _0x266cce;}['acceptSuggestion'](_0x93a413){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x22b23a of _0x93a413['getAllAdjacentSuggestions']())_0x22b23a['accept']();});});}['discardSuggestion'](_0x3df986){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x331bc3 of _0x3df986['getAllAdjacentSuggestions']())_0x331bc3['discard']();});});}['enableCommand'](_0x59224c,_0x128941){const _0x30043d=this['editor']['commands']['get'](_0x59224c);if(!_0x30043d)throw new _0x3f3ca6('track-changes-command-not-found',this,{'commandName':_0x59224c});if(this['_enabledCommands']['has'](_0x30043d))throw new _0x3f3ca6('track-changes-enable-command-twice',this,{'commandName':_0x59224c});this['_enabledCommands']['add'](_0x30043d),_0x128941&&_0x30043d['on']('execute',(_0x43c710,_0x15f071)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x15f071['length']>0x0&&_0x15f071[_0x15f071['length']-0x1]&&_0x15f071[_0x15f071['length']-0x1]['forceDefaultExecution']?_0x15f071['pop']():(_0x43c710['return']=_0x128941((..._0x4d4cfb)=>_0x30043d['execute'](..._0x4d4cfb,{'forceDefaultExecution':!0x0}),..._0x15f071),_0x43c710['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x15fe97){let _0x10d723,_0x5da788;const _0x547647=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x10d723=_0x15fe97();}catch(_0x40aef4){_0x5da788=_0x40aef4;}return _0x547647||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5da788&&_0x3f3ca6['rethrowUnexpectedError'](_0x5da788,this),_0x10d723;}['markInsertion'](_0x3a4ad1,_0x469a2f=null,_0x273b2d={}){if(_0x3a4ad1['isCollapsed'])return null;const _0x579545=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x2a3711,meta:_0x45963b}of this['_findSuggestions'](_0x3a4ad1,'insertion'))if(_0x45963b['isOwn']){if(!_0x45963b['isNextTo']){if(_0x45963b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x2a3711,_0x273b2d))continue;return _0x2a3711;}if(Lt(_0x2a3711,_0x273b2d))return _0x2a3711;this['_breakSuggestionMarker'](_0x2a3711,_0x3a4ad1['start'],_0x3a4ad1['end']);break;}if(_0x469a2f==_0x2a3711['subType']&&Lt(_0x2a3711,_0x273b2d)){const _0x12e3bb=_0x2a3711['getFirstRange']();return _0x12e3bb['start']['isEqual'](_0x3a4ad1['end'])?this['_setSuggestionRange'](_0x2a3711,this['_model']['createRange'](_0x3a4ad1['start'],_0x12e3bb['end'])):this['_setSuggestionRange'](_0x2a3711,this['_model']['createRange'](_0x12e3bb['start'],_0x3a4ad1['end'])),_0x2a3711;}}const _0x23e5de=_0x3cefaa(),_0x494095=_0x579545['id'],_0x15e47c=_0x469a2f?'insertion:'+_0x469a2f:'insertion',_0x28d976=this['_setSuggestionData']({'id':_0x23e5de,'type':_0x15e47c,'createdAt':new Date(),'authorId':_0x494095,'attributes':_0x273b2d});return this['_addSuggestionMarker'](_0x15e47c,_0x23e5de,_0x494095,_0x3a4ad1),_0x28d976;}['markMultiRangeInsertion'](_0x36cde2,_0x507b30='multi',_0x5f0020={}){const _0xcd518b=this['editor']['plugins']['get']('Users')['me'],_0xcc0ddc=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x507b30,'join');for(const _0x50f7f2 of this['getSuggestions']())if(_0x50f7f2['author']['id']==_0xcd518b['id']&&'insertion'==_0x50f7f2['type']&&_0x50f7f2['subType']==_0x507b30&&Lt(_0x50f7f2,_0x5f0020)&&(_0xcc0ddc(_0x50f7f2['getRanges'](),_0x36cde2)||_0xcc0ddc(_0x36cde2,_0x50f7f2['getRanges']()))){for(const _0x35f255 of _0x36cde2)_0x50f7f2['addRange'](_0x35f255);return _0x50f7f2;}for(const {suggestion:_0x58afa3,meta:_0x39e17a}of this['_findSuggestions'](_0x36cde2,'insertion')){if(!_0x39e17a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x39e17a['containsRangeInObject'])continue;if(!Lt(_0x58afa3,_0x5f0020))continue;let _0x32f283=!0x0;for(const _0x379162 of _0x58afa3['getRanges']())for(const _0x4dbdec of _0x36cde2)if(!_0x379162['containsRange'](_0x4dbdec)){_0x32f283=!0x1;break;}if(_0x32f283)return _0x58afa3;}const _0xfd8bc6=_0x3cefaa(),_0x4c9676=_0xcd518b['id'],_0x12e79d='insertion:'+_0x507b30,_0x5ed2e5=this['_setSuggestionData']({'id':_0xfd8bc6,'type':_0x12e79d,'createdAt':new Date(),'authorId':_0x4c9676,'attributes':_0x5f0020});for(const _0x39741e of _0x36cde2)this['_addSuggestionMarker'](_0x12e79d,_0xfd8bc6,_0x4c9676,_0x39741e,u['getMultiRangeId']());return _0x5ed2e5;}['markInlineFormat'](_0x3058b8,_0x1dd00b,_0x2c7707=null,_0x57e4e3={}){if(_0x2c7707=_0x2c7707||Vt(_0x1dd00b),_0x3058b8['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x26dbfc=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2c7707,'accept');return this['forceDefaultExecution'](()=>_0x26dbfc([_0x3058b8],_0x1dd00b,_0x57e4e3)),null;}const _0x30dccd=this['editor']['plugins']['get']('Users')['me'],_0x5d15b3=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4a2303,meta:_0x3a256c}of this['_findSuggestions'](_0x3058b8,'insertion'))_0x3a256c['isOwn']&&!_0x3a256c['isInsideObject']&&_0x5d15b3['push'](..._0x4a2303['getRanges']());}const _0x50c100=function(_0x3b572f,_0x36329b){const _0x2d6a95=[];for(const _0x13e7bc of _0x36329b){const _0x11d2d6=_0x3b572f['getIntersection'](_0x13e7bc);_0x11d2d6&&_0x2d6a95['push'](_0x11d2d6);}return _0x2d6a95;}(_0x3058b8,_0x5d15b3),_0x58038e=function(_0x4e3ace,_0x1f7a18){const _0x3f9344=[_0x4e3ace];for(const _0x382d7d of _0x1f7a18){let _0x110beb=0x0;for(;_0x110beb<_0x3f9344['length'];){const _0x52b142=_0x3f9344[_0x110beb]['getDifference'](_0x382d7d);_0x3f9344['splice'](_0x110beb,0x1,..._0x52b142),_0x110beb+=_0x52b142['length'];}}return _0x3f9344;}(_0x3058b8,_0x5d15b3);_0x50c100['length']&&this['_model']['change'](()=>{for(const _0x5bdda6 of _0x50c100){const _0x288620=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2c7707,'accept');this['forceDefaultExecution'](()=>_0x288620([_0x5bdda6],_0x1dd00b,_0x57e4e3));}});for(const _0x315bf5 of _0x58038e){let _0x233dbd=null,_0x27cd5f=_0x315bf5['start'],_0x3adfb5=_0x315bf5['end'];for(const {suggestion:_0x4a1750,meta:_0x5b07e6}of this['_findSuggestions'](_0x315bf5,'formatInline')){if(!_0x5b07e6['isOwn'])continue;if(_0x4a1750['subType']!=_0x2c7707)continue;if(!Lt(_0x4a1750,_0x57e4e3))continue;const _0x3d5b20=_0x4a1750['getFirstRange']();if(_0x3d5b20['containsRange'](_0x315bf5,!0x0))return null;_0x27cd5f=_0x27cd5f['isBefore'](_0x3d5b20['start'])?_0x27cd5f:_0x3d5b20['start'],_0x3adfb5=_0x3adfb5['isAfter'](_0x3d5b20['end'])?_0x3adfb5:_0x3d5b20['end'],_0x233dbd?_0x3d5b20['start']['isBefore'](_0x233dbd['getFirstRange']()['start'])?(_0x233dbd['removeMarkers'](),_0x233dbd=_0x4a1750):_0x4a1750['removeMarkers']():_0x233dbd=_0x4a1750;}const _0x38c9e3=this['_model']['createRange'](_0x27cd5f,_0x3adfb5);if(_0x233dbd)this['_setSuggestionRange'](_0x233dbd,_0x38c9e3);else{const _0x739776=_0x3cefaa(),_0x15c0ee=_0x30dccd['id'];this['_setSuggestionData']({'id':_0x739776,'type':'formatInline:'+_0x2c7707,'data':_0x1dd00b,'createdAt':new Date(),'authorId':_0x15c0ee,'attributes':_0x57e4e3}),this['_addSuggestionMarker']('formatInline:'+_0x2c7707,_0x739776,_0x15c0ee,_0x38c9e3);}}return null;}['markBlockFormat'](_0x3fe985,_0x5884d4,_0x4e6120=[],_0x44b57d=null,_0x353670={}){_0x5884d4['formatGroupId']||(_0x5884d4['formatGroupId']=_0x5884d4['commandName']),_0x5884d4['multipleBlocks']=_0x3fe985['is']('range'),_0x44b57d=_0x44b57d||Vt(_0x5884d4);const _0x5dcd05=_0x4e6120['map'](_0x23cae8=>Gt(_0x23cae8,this['_model'])),_0x54938c=_0x3fe985['is']('range')?_0x3fe985:Gt(_0x3fe985,this['_model']);if('never'===this['_trackFormatChanges']){const _0x1d2473=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x44b57d,'accept');return this['forceDefaultExecution'](()=>_0x1d2473([_0x54938c],_0x5884d4,_0x353670)),null;}_0x5dcd05['push'](_0x54938c);let _0x58273c=!0x0;for(const _0x6df291 of _0x5dcd05)if(!this['_rangeIsInLocalUserInsertion'](_0x6df291)){_0x58273c=!0x1;break;}if(_0x58273c&&'always'!==this['_trackFormatChanges']){const _0x28e5ac=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x44b57d,'accept');return this['forceDefaultExecution'](()=>_0x28e5ac([_0x54938c],_0x5884d4,_0x353670)),null;}let _0x21d120=null,_0x2d7de8=_0x54938c['start'],_0xc9e657=_0x54938c['end'];for(const {suggestion:_0x1e5a02,meta:_0x7d973d}of this['_findSuggestions'](_0x54938c,'formatBlock')){if(!_0x7d973d['isOwn'])continue;if(_0x7d973d['isNextTo']||_0x7d973d['containsRangeInObject']||_0x7d973d['isInsideObject'])continue;if(_0x1e5a02['data']['formatGroupId']!=_0x5884d4['formatGroupId'])continue;if(!Lt(_0x1e5a02,_0x353670))continue;const _0x148f78=_0x1e5a02['getFirstRange']();if(_0x1e5a02['subType']==_0x44b57d){if(_0x148f78['containsRange'](_0x54938c,!0x0))return null;_0x2d7de8=_0x2d7de8['isBefore'](_0x148f78['start'])?_0x2d7de8:_0x148f78['start'],_0xc9e657=_0xc9e657['isAfter'](_0x148f78['end'])?_0xc9e657:_0x148f78['end'],_0x21d120?_0x148f78['start']['isBefore'](_0x21d120['getFirstRange']()['start'])?(_0x21d120['removeMarkers'](),_0x21d120=_0x1e5a02):_0x1e5a02['removeMarkers']():_0x21d120=_0x1e5a02;}else{const _0x3e3317=_0x54938c['getIntersection'](_0x148f78);this['_cutOutSuggestionMarker'](_0x1e5a02,_0x3e3317);}}const _0x4d02a4=this['editor']['plugins']['get']('Users')['me'],_0x245bc0=_0x3cefaa(),_0x103203=_0x4d02a4['id'];if(_0x21d120)return this['_setSuggestionRange'](_0x21d120,this['_model']['createRange'](_0x2d7de8,_0xc9e657)),_0x21d120;{const _0xe7f237=this['_setSuggestionData']({'id':_0x245bc0,'type':'formatBlock:'+_0x44b57d,'data':_0x5884d4,'createdAt':new Date(),'authorId':_0x103203,'attributes':_0x353670});return this['_addSuggestionMarker']('formatBlock:'+_0x44b57d,_0x245bc0,_0x103203,this['_model']['createRange'](_0x2d7de8,_0xc9e657)),_0xe7f237;}}['markMultiRangeBlockFormat'](_0x2b820d,_0xcb1e7d,_0x104721=[],_0x1ec0f7=null,_0x83e77={}){_0xcb1e7d['formatGroupId']||(_0xcb1e7d['formatGroupId']=_0xcb1e7d['commandName']);const _0x5dc0cd=_0x2b820d[0x0];_0xcb1e7d['multipleBlocks']=_0x5dc0cd['is']('range'),_0x1ec0f7=_0x1ec0f7||Vt(_0xcb1e7d);const _0x5c5ea6=_0x104721['map'](_0x10807e=>Gt(_0x10807e,this['_model'])),_0xc72ee4=_0x5dc0cd['is']('range')?_0x2b820d:_0x2b820d['map'](_0x4711e9=>Gt(_0x4711e9,this['_model']));if('never'===this['_trackFormatChanges']){const _0x405251=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ec0f7,'accept');return this['forceDefaultExecution'](()=>_0x405251(_0xc72ee4,_0xcb1e7d,_0x83e77)),null;}_0x5c5ea6['push'](..._0xc72ee4);let _0x4789db=!0x0;for(const _0x523c69 of _0x5c5ea6)if(!this['_rangeIsInLocalUserInsertion'](_0x523c69)){_0x4789db=!0x1;break;}if(_0x4789db&&'always'!==this['_trackFormatChanges']){const _0x4e833a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ec0f7,'accept');return this['forceDefaultExecution'](()=>_0x4e833a(_0xc72ee4,_0xcb1e7d,_0x83e77)),null;}const _0x16d028=this['editor']['plugins']['get']('Users')['me'];for(const _0xc4136e of this['getSuggestions']()){if(_0xc4136e['author']['id']!=_0x16d028['id'])continue;if('formatBlock'!=_0xc4136e['type']||_0xc4136e['data']['formatGroupId']!=_0xcb1e7d['formatGroupId'])continue;if(!Lt(_0xc4136e,_0x83e77))continue;const _0xef5e1f=_0xc4136e['subType']==_0x1ec0f7;for(let _0x28ca49=0x0;_0x28ca49<_0xc72ee4['length'];_0x28ca49++){const _0x5af04c=_0xc72ee4[_0x28ca49];for(const _0x1f33cc of _0xc4136e['getMarkers']()){const _0x17bc9e=_0x1f33cc['getRange']();if(_0x5af04c['isEqual'](_0x17bc9e)){_0xef5e1f?(_0xc72ee4['splice'](_0x28ca49,0x1),_0x28ca49--):_0xc4136e['removeMarker'](_0x1f33cc['name']);break;}}}}if(0x0==_0xc72ee4['length'])return null;const _0x395c62=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ec0f7,'join');for(const _0x1bf9db of this['getSuggestions']())if(_0x1bf9db['author']['id']==_0x16d028['id']&&'formatBlock'==_0x1bf9db['type']&&_0x1bf9db['data']['formatGroupId']==_0xcb1e7d['formatGroupId']&&_0x1bf9db['subType']==_0x1ec0f7&&Lt(_0x1bf9db,_0x83e77)&&(_0x395c62(_0x1bf9db['getRanges'](),_0xc72ee4)||_0x395c62(_0xc72ee4,_0x1bf9db['getRanges']()))){for(const _0x5ec3b4 of _0xc72ee4)_0x1bf9db['addRange'](_0x5ec3b4);return _0x1bf9db;}const _0x42b20f=_0x3cefaa(),_0x187cb3=_0x16d028['id'],_0x2af119='formatBlock:'+_0x1ec0f7,_0x361b4f=this['_setSuggestionData']({'id':_0x42b20f,'type':_0x2af119,'data':_0xcb1e7d,'createdAt':new Date(),'authorId':_0x187cb3,'attributes':_0x83e77});for(const _0x387032 of _0xc72ee4)this['_addSuggestionMarker'](_0x2af119,_0x42b20f,_0x187cb3,_0x387032,u['getMultiRangeId']());return _0x361b4f;}['markDeletion'](_0x3a32f2,_0x157176=null,_0x4d046c={}){if(_0x3a32f2['isCollapsed'])return null;const _0x348c1e=this['editor']['plugins']['get']('Users')['me'],_0x19a7b7=new _0x27f355(_0x3a32f2['start'],_0x3a32f2['end']);for(const {suggestion:_0x13bdd9,meta:_0x4c45b6}of this['_findSuggestions'](_0x19a7b7,'insertion'))if(_0x4c45b6['isOwn']&&!_0x4c45b6['isNextTo']){if(_0x13bdd9['isMultiRange']){const _0x67b513=_0x13bdd9['getRanges']()['filter'](_0x56be6c=>'$graveyard'!=_0x56be6c['root']['rootName']);_0x67b513['every'](_0x49ce67=>_0x19a7b7['containsRange'](_0x49ce67,!0x0))&&_0x13bdd9['discard']();if(_0x67b513['some'](_0xdc6d75=>_0xdc6d75['containsRange'](_0x19a7b7,!0x0))){const _0x3e5b25=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x157176,'accept');return this['forceDefaultExecution'](()=>_0x3e5b25([_0x19a7b7],null,_0x4d046c)),null;}}else{const _0x116aa0=_0x19a7b7['getIntersection'](_0x13bdd9['getFirstRange']());null!==_0x116aa0&&_0x13bdd9['_onDiscard']([_0x116aa0],null,_0x4d046c);}}if(_0x19a7b7['detach'](),_0x19a7b7['isCollapsed']||'$graveyard'==_0x19a7b7['root']['rootName'])return null;let _0x5a4f87=null,_0x2c5eb3=_0x19a7b7['start'],_0x32f593=_0x19a7b7['end'];const _0x22e751=this['_findSuggestions'](_0x19a7b7,'deletion');for(const {suggestion:_0x5cc20d,meta:_0x333f3b}of _0x22e751){const _0x3b5caa=this['_model']['createRange'](_0x2c5eb3,_0x32f593);if(_0x333f3b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x333f3b['containsRangeInObject']&&!_0x333f3b['isInsideObject'])){if(_0x5cc20d['isMultiRange']){if(!Lt(_0x5cc20d,_0x4d046c))continue;let _0x36a49a=!0x0;for(const _0x55bcc4 of _0x5cc20d['getRanges']()){if(_0x55bcc4['containsRange'](_0x3b5caa,!0x0))return _0x5cc20d;_0x3b5caa['containsRange'](_0x55bcc4)||(_0x36a49a=!0x1);}_0x36a49a&&_0x5cc20d['discard']();}else{const _0x3ec832=_0x5cc20d['getFirstRange']();if(_0x3ec832['containsRange'](_0x3b5caa,!0x0))return _0x5cc20d;if(!Lt(_0x5cc20d,_0x4d046c)){_0x3b5caa['containsRange'](_0x3ec832)?_0x5cc20d['removeMarkers']():_0x3ec832['containsPosition'](_0x2c5eb3)?_0x2c5eb3=_0x3ec832['end']:_0x3ec832['containsPosition'](_0x32f593)&&(_0x32f593=_0x3ec832['start']);continue;}_0x2c5eb3=_0x2c5eb3['isBefore'](_0x3ec832['start'])?_0x2c5eb3:_0x3ec832['start'],_0x32f593=_0x32f593['isAfter'](_0x3ec832['end'])?_0x32f593:_0x3ec832['end'],_0x4d046c=Object['assign']({},_0x5cc20d['attributes']),_0x5a4f87?_0x3ec832['start']['isBefore'](_0x5a4f87['getFirstRange']()['start'])?(_0x5a4f87['removeMarkers'](),_0x5a4f87=_0x5cc20d):_0x5cc20d['removeMarkers']():_0x5a4f87=_0x5cc20d;}}}if(_0x5a4f87)return this['_setSuggestionRange'](_0x5a4f87,this['_model']['createRange'](_0x2c5eb3,_0x32f593)),_0x5a4f87;{const _0x5612ea=_0x3cefaa(),_0x6f68ce=this['_model']['createRange'](_0x2c5eb3,_0x32f593),_0x2988d4=_0x348c1e['id'],_0x4a84bf=_0x157176?'deletion:'+_0x157176:'deletion',_0xf2f739=this['_setSuggestionData']({'id':_0x5612ea,'type':_0x4a84bf,'createdAt':new Date(),'authorId':_0x2988d4,'attributes':_0x4d046c});return this['_addSuggestionMarker'](_0x4a84bf,_0x5612ea,_0x2988d4,_0x6f68ce),_0xf2f739;}}['markMultiRangeDeletion'](_0x31ae19,_0x2c6a4b='multi',_0x51ed18={}){const _0x275573=this['editor']['plugins']['get']('Users')['me'],_0x19b0e9=_0x31ae19['map'](_0xf4771=>new _0x27f355(_0xf4771['start'],_0xf4771['end'])),_0x2c2e50=new Set();for(const {suggestion:_0x28c9f9,meta:_0x99d6a9}of this['_findSuggestions'](_0x19b0e9,'insertion'))_0x99d6a9['isOwn']&&!_0x99d6a9['isNextTo']&&_0x2c2e50['add'](_0x28c9f9);for(const _0x487cf5 of _0x2c2e50)if(_0x487cf5['isMultiRange']){const _0x14ad6e=_0x487cf5['getRanges']();(!_0x487cf5['attributes']||!_0x487cf5['attributes']['skipNestingCheck'])&&(_0x14ad6e['every'](_0x4bc023=>_0x19b0e9['some'](_0x5181c6=>_0x5181c6['containsRange'](_0x4bc023,!0x0)))&&_0x487cf5['discard']());if(_0x19b0e9['every'](_0x452b2e=>_0x14ad6e['some'](_0xee0cdc=>_0xee0cdc['containsRange'](_0x452b2e,!0x0)))){const _0x45104a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2c6a4b,'accept');return this['forceDefaultExecution'](()=>_0x45104a(_0x31ae19,null,_0x51ed18)),null;}}else{const _0x539cea=_0x487cf5['getFirstRange']();_0x19b0e9['some'](_0x4e9444=>_0x4e9444['containsRange'](_0x539cea,!0x0))&&_0x487cf5['discard']();if(_0x19b0e9['every'](_0x3e3e8d=>_0x539cea['containsRange'](_0x3e3e8d,!0x0))){const _0x38ff70=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2c6a4b,'accept');return this['forceDefaultExecution'](()=>_0x38ff70(_0x19b0e9,null,_0x51ed18)),null;}}const _0x220f84=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2c6a4b,'join');let _0x32130a=null;for(const _0x4b965f of this['getSuggestions']())if(_0x4b965f['author']['id']==_0x275573['id']&&_0x4b965f['isInContent']&&'deletion'==_0x4b965f['type']&&_0x4b965f['subType']==_0x2c6a4b&&Lt(_0x4b965f,_0x51ed18)&&(_0x220f84(_0x4b965f['getRanges'](),_0x19b0e9)||_0x220f84(_0x19b0e9,_0x4b965f['getRanges']()))){if(_0x32130a){if(_0x4b965f['commentThread']&&_0x4b965f['commentThread']['length'])continue;for(const _0xf5ac87 of _0x4b965f['getRanges']())_0x32130a['isIntersectingWithRange'](_0xf5ac87)||_0x32130a['addRange'](_0xf5ac87);_0x4b965f['removeMarkers']();}else{_0x32130a=_0x4b965f;for(const _0x4c30a4 of _0x19b0e9)_0x4b965f['isIntersectingWithRange'](_0x4c30a4)||_0x4b965f['addRange'](_0x4c30a4);}}if(_0x32130a)return _0x32130a;_0x2c2e50['clear']();for(const {suggestion:_0xc06d19,meta:_0x17fa4a}of this['_findSuggestions'](_0x19b0e9,'deletion'))_0x17fa4a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x17fa4a['containsRangeInObject']&&!_0x17fa4a['isInsideObject'])&&Lt(_0xc06d19,_0x51ed18)&&_0x2c2e50['add'](_0xc06d19);for(const _0x47c90d of _0x2c2e50){const _0x4b82e2=_0x47c90d['getRanges']();if(!_0x51ed18||!_0x51ed18['skipNestingCheck']){if(_0x19b0e9['every'](_0x171c97=>_0x4b82e2['some'](_0x574735=>_0x574735['containsRange'](_0x171c97,!0x0))))return _0x47c90d;}(!_0x47c90d['attributes']||!_0x47c90d['attributes']['skipNestingCheck'])&&(_0x4b82e2['every'](_0x4abe64=>_0x19b0e9['some'](_0x86f6a1=>_0x86f6a1['containsRange'](_0x4abe64,!0x0)))&&_0x47c90d['discard']());}const _0x5e4fe8=_0x3cefaa(),_0x5e5d2e=_0x275573['id'],_0x552c54='deletion:'+_0x2c6a4b,_0x10af61=this['_setSuggestionData']({'id':_0x5e4fe8,'type':_0x552c54,'createdAt':new Date(),'authorId':_0x5e5d2e,'attributes':_0x51ed18});for(const _0x3f9fc8 of _0x19b0e9)_0x3f9fc8['detach'](),_0x3f9fc8['isCollapsed']||'$graveyard'==_0x3f9fc8['root']['rootName']||this['_addSuggestionMarker'](_0x552c54,_0x5e4fe8,_0x5e5d2e,_0x3f9fc8,u['getMultiRangeId']());return _0x10af61;}['markAttributeChange'](_0x5938c8,_0x27a2d8,_0x30928f,_0x560ee0,_0x52f640){if(_0x5938c8['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xd7067c=this['editor']['plugins']['get']('Users')['me']['id'],_0x2ecb61=Array['from'](this['_suggestions']['values']())['filter'](_0x55dc7e=>'attribute'==_0x55dc7e['type']&&_0x55dc7e['data']['key']==_0x27a2d8&&_0x55dc7e['isIntersectingWithRange'](_0x5938c8));if('default'===this['_trackFormatChanges']){const _0x21fcf3=this['_findSuggestions'](_0x5938c8,'insertion')['filter'](({meta:_0x581784})=>_0x581784['isOwn']&&!_0x581784['isInsideObject']&&!_0x581784['isNextTo'])['map'](({suggestion:_0x313d77})=>_0x313d77);_0x2ecb61['unshift'](..._0x21fcf3);}const _0x3affa1=new Map([[_0x5938c8,_0x30928f]]);for(const _0x63e842 of _0x2ecb61){const _0xdcf614='attribute'==_0x63e842['type']?_0x63e842['data']['oldValue']:void 0x0,_0x1b46ac=_0x63e842['getFirstRange'](),_0x5c8010=Array['from'](_0x3affa1['keys']())['find'](_0x4194d8=>_0x4194d8['isIntersecting'](_0x1b46ac));if(!_0x5c8010)continue;const _0x80c455=_0x5c8010['getDifference'](_0x1b46ac);this['_isBlockAttribute'](_0x27a2d8)&&'insertion'==_0x63e842['type']&&0x0!=_0x80c455['length']||(_0x3affa1['delete'](_0x5c8010),_0x80c455['forEach'](_0x387fb2=>{_0x3affa1['set'](_0x387fb2,_0x30928f);}),'insertion'!=_0x63e842['type']&&_0xdcf614!=_0x560ee0&&_0x3affa1['set'](_0x5c8010['getIntersection'](_0x1b46ac),_0xdcf614));}const _0x5588e8=[];for(const [_0x32fb83,_0x21ba81]of _0x3affa1){const _0x415460=_0x3cefaa(),_0x18a58c={'key':_0x27a2d8,'oldValue':_0x21ba81,'newValue':_0x560ee0};_0x27a2d8['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':_0x27a2d8});const _0x103533=('attribute:'+(_0x27a2d8+'|'+Vt({'newValue':_0x560ee0})))['substring'](0x0,0x3c),_0x294167=this['_setSuggestionData']({'id':_0x415460,'type':_0x103533,'data':_0x18a58c,'createdAt':new Date(),'authorId':_0xd7067c,'attributes':_0x52f640});_0x5588e8['push'](_0x294167),this['_addSuggestionMarker'](_0x103533,_0x415460,_0xd7067c,_0x32fb83);}return _0x5588e8;}['enableDefaultAttributesIntegration'](_0xb9b7f2){this['enableCommand'](_0xb9b7f2,(_0x1de063,..._0x1f5538)=>{this['_recordAttributeChanges'](()=>{_0x1de063(..._0x1f5538);});});}['registerBlockAttribute'](_0x53f56f){this['_blockAttributeKeys']['add'](_0x53f56f);}['registerInlineAttribute'](_0x3729dd){this['_inlineAttributeKeys']['add'](_0x3729dd);}['_getAttributeKey'](_0x4397f5){return'attribute'==_0x4397f5['type']?_0x4397f5['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4caa22,_0x548943){const _0xe1f8a8=_0x4caa22['getFirstMarker']();this['_model']['change'](_0x2371c2=>{_0x2371c2['updateMarker'](_0xe1f8a8,{'range':_0x548943});});}['_addThreadToSuggestion'](_0x3474e6){const _0x24b9d1=_0x3474e6['id'],_0x5ae5ad=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x24b9d1)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5ae5ad,'threadId':_0x24b9d1,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x50b4d8=this['_commentsRepository']['getCommentThread'](_0x24b9d1);_0x50b4d8['unbind']('isRemovable'),_0x50b4d8['isRemovable']=!0x1,_0x3474e6['commentThread']=_0x50b4d8;}['_checkSuggestionCorrectness'](_0x2584fc,_0x15427e,_0x35a119,_0x1a68b4){if(_0x2584fc['type']!=_0x15427e||_0x2584fc['subType']!=_0x35a119||_0x2584fc['creator']['id']!=_0x1a68b4)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3f3ca6('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x32b226,_0x3cfcf9){const _0x2e7c85=_0x32b226['getFirstRange']();if(_0x3cfcf9['isEqual'](_0x2e7c85))_0x32b226['removeMarkers']();else{if(_0x2e7c85['containsRange'](_0x3cfcf9)){const _0x23b202=this['_model']['createPositionAt'](_0x3cfcf9['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x32b226,this['_model']['createRange'](_0x2e7c85['start'],_0x23b202));const _0x24c1e3=_0x3cefaa(),_0x1c94ad=_0x32b226['creator']['id'],_0x55edda=_0x32b226['type']+':'+_0x32b226['subType'];this['_setSuggestionData']({'id':_0x24c1e3,'type':_0x55edda,'createdAt':new Date(),'authorId':_0x1c94ad,'data':_0x32b226['data'],'attributes':_0x32b226['attributes']});const _0x280066=this['_model']['createPositionAt'](_0x3cfcf9['end']['parent'],'after'),_0x45ace6=this['_model']['createRange'](_0x280066,_0x2e7c85['end']);this['_addSuggestionMarker'](_0x55edda,_0x24c1e3,_0x1c94ad,_0x45ace6);}else{if(_0x2e7c85['containsPosition'](_0x3cfcf9['start'])){const _0x254702=this['_model']['createPositionAt'](_0x3cfcf9['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x32b226,this['_model']['createRange'](_0x2e7c85['start'],_0x254702));}else{const _0x215243=this['_model']['createPositionAt'](_0x3cfcf9['end']['parent'],'after');this['_setSuggestionRange'](_0x32b226,this['_model']['createRange'](_0x215243,_0x2e7c85['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x22fabf){for(const {suggestion:_0x4a3d01,meta:_0x2fec71}of this['_findSuggestions'](_0x22fabf,'insertion')){if(!_0x2fec71['isOwn'])continue;const _0x21d30a=_0x4a3d01['getRanges']();for(const _0x1633b4 of _0x21d30a)if(!_0x22fabf['getDifference'](_0x1633b4)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x49d19a){const _0x20d633=this['editor']['plugins']['get']('Users')['getUser'](_0x49d19a);if(!_0x20d633)throw new _0x3f3ca6('track-changes-user-not-found',this);return _0x20d633;}['_getExternalAuthor'](_0x11a416){const _0x5bbca6=this['editor']['plugins']['get']('Users'),_0x9449f6=_0x433e2e('external:'+_0x11a416),_0x489450=_0x5bbca6['getUser'](_0x9449f6);return _0x489450||_0x5bbca6['addUser']({'id':_0x9449f6,'name':_0x11a416});}['_createSuggestion'](_0x59c585,_0x21f535,_0x17dfc5,_0x202ce1,_0x433d76){const _0x515fa7=this['_getAuthorFromId'](_0x202ce1),_0x43ae36=this['_suggestionFactory']['buildSuggestion'](_0x59c585,_0x21f535,_0x17dfc5,_0x515fa7,_0x433d76,_0x19f624=>{this['_updateSuggestionData'](_0x17dfc5,{'attributes':_0x19f624});const _0x426a22=this['getSuggestion'](_0x17dfc5);this['_joinWithAdjacentSuggestions'](new Set([_0x426a22])),this['_refreshSuggestionsChain'](new Set([_0x426a22]));});return this['listenTo'](_0x43ae36,'accept',()=>{this['_updateSuggestionData'](_0x17dfc5,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x43ae36,'discard',()=>{this['_updateSuggestionData'](_0x17dfc5,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x17dfc5,_0x43ae36),this['_suggestionState']['set'](_0x43ae36,'notReady'),_0x43ae36;}['_splitMarkerName'](_0xe4db51){const _0x6319b9=_0xe4db51['split'](':');return{'group':_0x6319b9[0x0],'type':_0x6319b9[0x1],'subType':_0x6319b9['length']>=0x5?_0x6319b9[0x2]:null,'id':_0x6319b9['length']<0x5?_0x6319b9[0x2]:_0x6319b9[0x3],'authorId':_0x6319b9['length']<0x5?_0x6319b9[0x3]:_0x6319b9[0x4],'markerCount':0x6==_0x6319b9['length']?_0x6319b9[0x5]:null};}['_breakSuggestionMarker'](_0x368e4c,_0x35f68d,_0x418ecd){const _0x5d0920=_0x368e4c['getFirstRange'](),_0x4a1768=_0x5d0920['start'],_0x269184=_0x5d0920['end'];this['_setSuggestionRange'](_0x368e4c,this['_model']['createRange'](_0x4a1768,_0x35f68d));const _0x331d8f=_0x3cefaa(),_0x2ee46b=_0x368e4c['creator']['id'],_0x2601bb=_0x368e4c['type']+(_0x368e4c['subType']?':'+_0x368e4c['subType']:'');this['_setSuggestionData']({'id':_0x331d8f,'type':_0x2601bb,'createdAt':new Date(),'authorId':_0x2ee46b,'originalSuggestionId':_0x368e4c['id'],'attributes':_0x368e4c['attributes'],'data':_0x368e4c['data']});const _0x5d8dd9=this['_getAttributeKey'](_0x368e4c);('formatBlock'==_0x368e4c['type']||_0x5d8dd9&&this['_isBlockAttribute'](_0x5d8dd9))&&(_0x418ecd=this['_model']['createPositionBefore'](_0x418ecd['parent'])),this['_addSuggestionMarker'](_0x2601bb,_0x331d8f,_0x2ee46b,this['_model']['createRange'](_0x418ecd,_0x269184));}['_findSuggestions'](_0x4fc1f9,_0x5542a6=null){const _0x87ee76=[],_0x5b60f6=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4fc1f9)||(_0x4fc1f9=[_0x4fc1f9]);for(const _0x3a49ac of this['getSuggestions']()){if(!_0x3a49ac['isInContent'])continue;if(_0x5542a6&&_0x3a49ac['type']!=_0x5542a6)continue;let _0x44bab9=!0x1;for(const _0x45f66d of _0x3a49ac['getRanges']()){for(const _0x17008f of _0x4fc1f9){const _0x3d0830=_0x17008f['start']['isEqual'](_0x45f66d['end'])||_0x17008f['end']['isEqual'](_0x45f66d['start']);if(_0x3d0830||_0x17008f['getIntersection'](_0x45f66d)){const _0x432a6c=_0x17008f['containsRange'](_0x45f66d)&&Rt(this['_model']['schema'],_0x45f66d['start'],_0x17008f),_0x500e8c=_0x45f66d['containsRange'](_0x17008f)&&Rt(this['_model']['schema'],_0x17008f['start'],_0x45f66d);_0x87ee76['push']({'suggestion':_0x3a49ac,'meta':{'isOwn':_0x5b60f6==_0x3a49ac['author'],'isNextTo':_0x3d0830,'isInsideObject':_0x432a6c,'containsRangeInObject':_0x500e8c}}),_0x44bab9=!0x0;break;}}if(_0x44bab9)break;}}return _0x87ee76;}['_addSuggestionMarker'](_0x121fdf,_0x2443ca,_0x45157d,_0x56658c,_0x43ebe4){this['_model']['change'](_0x2e78b8=>{let _0x5c4a79='suggestion:'+_0x121fdf+':'+_0x2443ca+':'+_0x45157d;_0x43ebe4&&(_0x5c4a79=_0x5c4a79+':'+_0x43ebe4),_0x2e78b8['addMarker'](_0x5c4a79,{'range':_0x56658c,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4a1139){const _0x3567c6=_0x4a1139['previous'],_0x2b7b39=_0x4a1139['next'];_0x4a1139['previous']=null,_0x4a1139['next']=null,null!=_0x3567c6&&_0x3567c6['next']==_0x4a1139&&(_0x3567c6['next']=_0x2b7b39),null!=_0x2b7b39&&_0x2b7b39['previous']==_0x4a1139&&(_0x2b7b39['previous']=_0x3567c6),'ready'==this['_suggestionState']['get'](_0x4a1139)&&(this['_suggestionState']['set'](_0x4a1139,'removed'),this['fire']('suggestionUnloaded',_0x4a1139,_0x3567c6,_0x2b7b39));}['_setSuggestionData'](_0x3c2881){const _0x41860d=_0x3c2881['id'],_0x2596cd=this['addSuggestionData'](_0x3c2881);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x241b9c=this['editor']['plugins']['get']('PendingActions'),_0x2ca2b1=_0x2596cd['hasComments'],_0x354664=_0x2596cd['subType']?_0x2596cd['type']+':'+_0x2596cd['subType']:_0x2596cd['type'],_0x91e839=this['editor']['locale'],_0x18381a=_0x241b9c['add'](o(_0x91e839,'PENDING_ACTION_SUGGESTION')),_0x12c042={'id':_0x41860d,'type':_0x354664,'hasComments':_0x2ca2b1,'data':_0x3c2881['data']||null,'originalSuggestionId':_0x3c2881['originalSuggestionId']||null,'attributes':_0x2596cd['attributes']};this['_adapter']['addSuggestion'](_0x12c042)['then'](_0x81dfbc=>{_0x2596cd['_saved']=!0x0,_0x241b9c['remove'](_0x18381a),_0x81dfbc&&_0x81dfbc['createdAt']&&(this['_suggestions']['get'](_0x41860d)['createdAt']=_0x81dfbc['createdAt']);})['catch'](_0x506124=>{throw _0x244bdf('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2596cd['discard']();}),_0x2596cd['stopListening'](),this['_suggestions']['delete'](_0x2596cd['id']),this['_suggestionState']['delete'](_0x2596cd),_0x506124;});}return _0x2596cd;}['_isBlockAttribute'](_0x533376){return this['_blockAttributeKeys']['has'](_0x533376);}['_updateSuggestionData'](_0x12cff0,_0x2cf5db){const _0x246971=this['editor']['plugins']['get']('PendingActions'),_0x5ab23d=this['getSuggestion'](_0x12cff0);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5ab23d['_saved']){const _0x56ca8a=_0x246971['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x12cff0,_0x2cf5db)['then'](()=>{_0x246971['remove'](_0x56ca8a);});}else _0x5ab23d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x12cff0,_0x2cf5db);});}}['_getSuggestionData'](_0x49e82c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3f3ca6('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x49e82c);}['_handleNewSuggestionMarker'](_0x3d4200){const {id:_0xc934ab,type:_0x216491,subType:_0x142ca5,authorId:_0x46db52}=this['_splitMarkerName'](_0x3d4200),_0x12d21d=this['_suggestions']['get'](_0xc934ab)||this['_createSuggestion'](_0x216491,_0x142ca5,_0xc934ab,_0x46db52,{});switch(this['_checkSuggestionCorrectness'](_0x12d21d,_0x216491,_0x142ca5,_0x46db52),this['_suggestionState']['get'](_0x12d21d)){case'notReady':this['_getSuggestionData'](_0xc934ab)['then'](_0x2d7fa3=>{let _0x453674=Promise['resolve']();_0x2d7fa3['hasComments']&&(_0x453674=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xc934ab})),_0x453674['then'](()=>{this['addSuggestionData'](_0x2d7fa3)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x12d21d,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xc934ab,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x12d21d,'ready'),this['fire']('suggestionLoaded',_0x12d21d);break;case'ready':this['fire']('suggestionChanged',_0x12d21d);}return _0x12d21d['addMarkerName'](_0x3d4200),_0x12d21d;}['_refreshSuggestionsChain'](_0x3798eb){const _0x5cc785=Array['from'](_0x3798eb),_0xcc46e6=_0x5cc785['filter'](_0x548a09=>'attribute'==_0x548a09['type']);this['_refreshAttributeSuggestionsChain'](_0xcc46e6);const _0x353550=_0x5cc785['filter'](_0x10c64f=>!_0x10c64f['isMultiRange']&&'attribute'!=_0x10c64f['type']),_0x1f877b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x54bbcc=>!_0x54bbcc['isMultiRange']&&'attribute'!=_0x54bbcc['type']),_0x5a0e45=_0x1f877b['filter'](_0x506e94=>!_0x3798eb['has'](_0x506e94)),_0x28392c=new Map(_0x1f877b['map'](_0x74bcbe=>[_0x74bcbe,this['_suggestionFactory']['getSuggestionCallback'](_0x74bcbe['type'],_0x74bcbe['subType'],'chain')])),_0x12ca8e=new Map(_0x1f877b['map'](_0x1de09b=>[_0x1de09b,_0x1de09b['getFirstRange']()])),_0x5c019c=new Set(),_0xa0c39d=new Set();for(let _0x25b22e=0x0;_0x25b22e<_0x353550['length'];_0x25b22e++)_0x2e41ae(_0x353550[_0x25b22e],_0x353550,_0x25b22e+0x1);for(let _0x511058=0x0;_0x511058<_0x353550['length'];_0x511058++)_0x2e41ae(_0x353550[_0x511058],_0x5a0e45,0x0);const _0x1fbcbc=new Set();for(let _0xeeab41=0x0;_0xeeab41<_0x353550['length'];_0xeeab41++){const _0x3fdfbb=_0x353550[_0xeeab41];!_0xa0c39d['has'](_0x3fdfbb)&&_0x3fdfbb['previous']&&(_0x1fbcbc['add'](_0x3fdfbb['previous']),_0x3fdfbb['previous']['next']===_0x3fdfbb&&(_0x3fdfbb['previous']['next']=null),_0x3fdfbb['previous']=null),!_0x5c019c['has'](_0x3fdfbb)&&_0x3fdfbb['next']&&(_0x1fbcbc['add'](_0x3fdfbb['next']),_0x3fdfbb['next']['previous']===_0x3fdfbb&&(_0x3fdfbb['next']['previous']=null),_0x3fdfbb['next']=null);}function _0x2e41ae(_0x5a87c3,_0x53664f,_0x23459f){for(let _0x3202c0=_0x23459f;_0x3202c0<_0x53664f['length'];_0x3202c0++){const _0x50ffb3=_0x3c029a(_0x5a87c3,_0x53664f[_0x3202c0]);_0x50ffb3&&(_0x50ffb3[0x0]['next']=_0x50ffb3[0x1],_0x50ffb3[0x1]['previous']=_0x50ffb3[0x0],_0x5c019c['add'](_0x50ffb3[0x0]),_0xa0c39d['add'](_0x50ffb3[0x1]));}}function _0x3c029a(_0x1e6ce2,_0x5af1e8){if(_0x1e6ce2['author']['id']!==_0x5af1e8['author']['id'])return null;const _0x52b69e=_0x28392c['get'](_0x1e6ce2)(_0x1e6ce2,_0x5af1e8,_0x12ca8e['get'](_0x1e6ce2),_0x12ca8e['get'](_0x5af1e8));if(!_0x52b69e)return null;return _0x28392c['get'](_0x5af1e8)(_0x1e6ce2,_0x5af1e8,_0x12ca8e['get'](_0x1e6ce2),_0x12ca8e['get'](_0x5af1e8))?_0x52b69e[0x1]['commentThread']&&_0x52b69e[0x1]['commentThread']['length']?null:_0x52b69e:null;}_0x1fbcbc['size']&&this['_refreshSuggestionsChain'](_0x1fbcbc);}['_refreshAttributeSuggestionsChain'](_0x47b7d5){if(0x0==_0x47b7d5['length'])return;const _0x11a3fc=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1c6106=>'attribute'==_0x1c6106['type']&&_0x1c6106['_isDataLoaded']),_0x4068f4=[],_0x401b93=new Map();for(const _0x42ec79 of _0x11a3fc){const _0x2e8a29=_0x433e2e(_0x42ec79['attributes']);_0x401b93['has'](_0x2e8a29)||(_0x401b93['set'](_0x2e8a29,_0x4068f4['length']),_0x4068f4['push']([]));const _0x2e528d=_0x401b93['get'](_0x2e8a29);_0x4068f4[_0x2e528d]['push'](_0x42ec79);}!(function(){_0x4068f4['sort']((_0x4fa2b2,_0x26591b)=>{const _0x305036=_0x4fa2b2[0x0]['createdAt'],_0x5f4484=_0x26591b[0x0]['createdAt'];return _0x305036==_0x5f4484?_0x4fa2b2[0x0]['attributes']['groupId']<_0x26591b[0x0]['attributes']['groupId']?-0x1:0x1:_0x305036<_0x5f4484?-0x1:0x1;});for(const _0x46ae92 of _0x4068f4)_0x46ae92['sort']((_0x4eeebc,_0x491d77)=>_0x4eeebc['id']<_0x491d77['id']?-0x1:0x1);}());for(let _0x18e15b=0x0;_0x18e15b<_0x4068f4['length'];_0x18e15b++){if(0x0==_0x4068f4[_0x18e15b]['length'])continue;const _0x519ee4=[];for(let _0x447bc4=_0x18e15b+0x1;_0x447bc4<_0x4068f4['length'];_0x447bc4++)0x0!=_0x4068f4[_0x447bc4]['length']&&_0x5ce5d6(_0x4068f4[_0x18e15b],_0x4068f4[_0x447bc4])&&_0x519ee4['push'](_0x447bc4);for(const _0x429a83 of _0x519ee4)_0x4068f4[_0x18e15b]=_0x4068f4[_0x18e15b]['concat'](_0x4068f4[_0x429a83]),_0x4068f4[_0x429a83]=[];}for(const _0x35eb85 of _0x4068f4)for(let _0x4ed9ea=0x0;_0x4ed9ea<_0x35eb85['length'];_0x4ed9ea++)_0x35eb85[_0x4ed9ea]['next']=_0x35eb85[_0x4ed9ea+0x1]||null;for(const _0x47d0bc of _0x4068f4)for(let _0x1d3bb9=0x0;_0x1d3bb9<_0x47d0bc['length'];_0x1d3bb9++)_0x47d0bc[_0x1d3bb9]['previous']=_0x47d0bc[_0x1d3bb9-0x1]||null;function _0x5ce5d6(_0x288c9d,_0x2447cc){if(_0x288c9d[0x0]['attributes']['groupId']!==_0x2447cc[0x0]['attributes']['groupId']&&_0x288c9d[0x0]['author']!==_0x2447cc[0x0]['author'])return!0x1;if(!function(_0x286214,_0x418cf7){if(!_0x286214['hasComments']&&!_0x418cf7['hasComments'])return!0x0;if(_0x286214['hasComments']&&_0x418cf7['hasComments'])return!0x1;if(_0x286214['hasComments']&&_0x418cf7['createdAt']<_0x286214['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x418cf7['hasComments']&&_0x286214['createdAt']<_0x418cf7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x288c9d[0x0],_0x2447cc[0x0]))return!0x1;const _0x4a10e1=Bt(_0x288c9d[0x0]['attributes'],'groupId'),_0x329b09=Bt(_0x2447cc[0x0]['attributes'],'groupId');if(!_0x5cd547(_0x4a10e1,_0x329b09))return!0x1;return!!_0x288c9d['every'](_0x58b449=>_0x2447cc['some'](_0x133f5b=>_0x58b449['getFirstRange']()['isEqual'](_0x133f5b['getFirstRange']())))&&_0x2447cc['every'](_0xe919a8=>_0x288c9d['some'](_0x466678=>_0xe919a8['getFirstRange']()['isEqual'](_0x466678['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x54b1d4){const _0x2a33c8=Array['from'](_0x54b1d4),_0x229105=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4274e1=_0x229105['filter'](_0x3d27e6=>!_0x54b1d4['has'](_0x3d27e6)),_0x1da049=new Map(_0x2a33c8['map'](_0x5fdf63=>[_0x5fdf63,this['_suggestionFactory']['getSuggestionCallback'](_0x5fdf63['type'],_0x5fdf63['subType'],'join')])),_0x12f577=new Map(_0x229105['map'](_0x48e2f0=>[_0x48e2f0,_0x48e2f0['getRanges']()]));for(let _0x3e5790=0x0;_0x3e5790<_0x2a33c8['length'];_0x3e5790++){if(_0x443546(this,_0x2a33c8[_0x3e5790],_0x2a33c8,_0x3e5790+0x1))return!0x0;}for(let _0x24c422=0x0;_0x24c422<_0x2a33c8['length'];_0x24c422++){if(_0x443546(this,_0x2a33c8[_0x24c422],_0x4274e1,0x0))return!0x0;}return!0x1;function _0x443546(_0x51901f,_0x3a209f,_0xdc7920,_0x1227ae){for(let _0x2909e4=_0x1227ae;_0x2909e4<_0xdc7920['length'];_0x2909e4++){const _0x3a5c2d=_0xdc7920[_0x2909e4];if(_0x3a5c2d['type']!==_0x3a209f['type']||_0x3a5c2d['author']['id']!==_0x3a209f['author']['id']||_0x3a5c2d['subType']!==_0x3a209f['subType'])continue;if(!Pt(_0x3a209f,_0x3a5c2d,['groupId']))continue;if('attribute'==_0x3a209f['type']&&_0x3a209f['data']['oldValue']!=_0x3a5c2d['data']['oldValue'])continue;if('attribute'==_0x3a209f['type']&&_0x51901f['_isBlockAttribute'](_0x3a209f['data']['key']))continue;if('formatBlock'==_0x3a209f['type']){const _0x732ee8=_0x51901f['editor']['model'],_0x4564c4=_0x3a209f['getContainedElement']();if(_0x4564c4&&(_0x732ee8['schema']['isObject'](_0x4564c4)||_0x732ee8['schema']['isLimit'](_0x4564c4)))continue;}const _0xe2f366=_0x1da049['get'](_0x3a209f),_0x5e46a5=_0x12f577['get'](_0x3a209f),_0x3360bf=_0x12f577['get'](_0x3a5c2d),_0x5e81ed=_0x3a209f['commentThread']&&_0x3a209f['commentThread']['length'],_0x25ed88=_0x3a5c2d['commentThread']&&_0x3a5c2d['commentThread']['length'];if(!_0x5e81ed&&_0xe2f366(_0x3360bf,_0x5e46a5))return _0x51901f['_joinSuggestions'](_0x3a5c2d,_0x3a209f),_0x12f577['delete'](_0x3a209f),!0x0;if(!_0x25ed88&&_0xe2f366(_0x5e46a5,_0x3360bf))return _0x51901f['_joinSuggestions'](_0x3a209f,_0x3a5c2d),_0x12f577['delete'](_0x3a5c2d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4ecdb6,_0x1d7bfb){if(_0x4ecdb6['isMultiRange']){for(const _0x3a21f3 of _0x1d7bfb['getRanges']())_0x4ecdb6['addRange'](_0x3a21f3);}else{const _0x4df9b1=_0x1d7bfb['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4ecdb6,this['_model']['createRange'](_0x4ecdb6['getFirstRange']()['start'],_0x4df9b1));}_0x1d7bfb['removeMarkers']();}['_getMarkerAnnouncementText'](_0x52d1e0,_0x3912e6){const _0x46d9c1=_0x52d1e0['startsWith']('format')||_0x52d1e0['startsWith']('attribute')?'FORMATTING':_0x52d1e0['toUpperCase']();return o(this['editor']['locale'],_0x3912e6+'_'+_0x46d9c1+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x5d7186=this['editor'];if(!_0x5d7186['ui'])return;const {ariaLiveAnnouncer:_0x3700b2}=_0x5d7186['ui'];_0x176e49(this['_model'],({left:_0x116a43,entered:_0xfcba3e})=>{for(const _0x57617d of _0x116a43){const {group:_0x3e64e7,type:_0x2a7174}=this['_splitMarkerName'](_0x57617d['name']);if('suggestion'===_0x3e64e7){_0x3700b2['announce'](this['_getMarkerAnnouncementText'](_0x2a7174,'LEAVE'));break;}}for(const _0x138109 of _0xfcba3e){const {group:_0xe1f4c4,type:_0x19c535}=this['_splitMarkerName'](_0x138109['name']);if('suggestion'===_0xe1f4c4){_0x3700b2['announce'](this['_getMarkerAnnouncementText'](_0x19c535,'ENTER'));break;}}});}['_processAttributeChanges'](_0x14ebaf){if(this['_recordAttributeSuggestions'])return!0x1;const _0xb10b48=this['editor'],_0x2038c9=_0xb10b48['model']['document']['differ']['getChanges']();if(0x0==_0x2038c9['length'])return!0x1;const _0x5d3ef3=[],_0x36ba43=_0x2038c9['filter'](_0x2fbbfb=>'attribute'==_0x2fbbfb['type']),_0x270639=_0x2038c9['filter'](_0x575f9b=>'insert'==_0x575f9b['type']&&'$text'!=_0x575f9b['name']),_0x488379=_0x2038c9['filter'](_0x2cfcee=>'remove'==_0x2cfcee['type']&&'$text'!=_0x2cfcee['name']);for(const _0x441ba1 of _0x36ba43)_0x5d3ef3['push']({'key':_0x441ba1['attributeKey'],'newValue':_0x441ba1['attributeNewValue'],'oldValue':_0x441ba1['attributeOldValue'],'range':Ot(_0x441ba1['range'],_0xb10b48['model'])});for(const _0x37c02e of _0x270639){const _0x3dca13=_0x488379['find'](_0x4ec98a=>_0x4ec98a['position']['isEqual'](_0x37c02e['position']));_0x3dca13&&_0x5d3ef3['push']({'key':m,'newValue':_0x37c02e['name'],'oldValue':_0x3dca13['name'],'range':_0xb10b48['model']['createRangeOn'](_0x37c02e['position']['nodeAfter'])});}return 0x0!=_0x5d3ef3['length']&&this['_reduceExistingSuggestions'](_0x14ebaf,_0x5d3ef3);}['_processAttributeSuggestions'](_0x4689c3){let _0x3d3e21=!0x1;const _0x26533=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4eae86=>_0x4eae86['data']['newRange']&&_0x4eae86['name']['startsWith']('suggestion:attribute:'));for(const _0x3c0d77 of _0x26533){const {subType:_0x5420cf,id:_0x315b11}=this['_splitMarkerName'](_0x3c0d77['name']),_0x80e61f=_0x5420cf['split']('|')[0x0];for(const _0x326216 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x326216['id']!=_0x315b11&&'attribute'==_0x326216['type']&&_0x326216['data']&&_0x326216['data']['key']==_0x80e61f&&_0x326216['getFirstRange']()['isIntersecting'](_0x3c0d77['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x326216,_0x3c0d77['data']['newRange'],_0x4689c3),_0x3d3e21=!0x0);}return _0x3d3e21;}['_recordAttributeChanges'](_0x255c38){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x255c38();}['_isRegisteredAttribute'](_0x322640){const _0x562980=this['_isBlockAttribute'](_0x322640),_0x334bfd=this['_inlineAttributeKeys']['has'](_0x322640);return _0x562980||_0x334bfd;}['_reduceExistingSuggestions'](_0x36370d,_0x1e52b9){if(0x0==_0x1e52b9['length'])return!0x1;let _0x12e6bd=!0x1;for(const _0x5c8571 of _0x1e52b9){const _0x2a7375=this['_findSuggestions'](_0x5c8571['range'],'attribute')['filter'](_0x5cb43e=>!_0x5cb43e['meta']['isNextTo'])['map'](_0x2c5043=>_0x2c5043['suggestion']),_0x47c780=_0x433e2e({'newValue':_0x5c8571['newValue']});_0x2a7375['filter'](_0x1b6d9d=>{const [_0x10b970,_0x6bf369]=_0x1b6d9d['subType']['split']('|');return _0x10b970==_0x5c8571['key']&&_0x6bf369!=_0x47c780;})['forEach'](_0x648ad4=>{this['_reduceSuggestionAttributeRange'](_0x648ad4,_0x5c8571['range'],_0x36370d),_0x12e6bd=!0x0;});}return _0x12e6bd;}['_reduceSuggestionAttributeRange'](_0xc616bf,_0x106c1f,_0x168df5){const _0x435dd6=_0xc616bf['getFirstRange']()['getDifference'](_0x106c1f);0x0!==_0x435dd6['length']?0x1!==_0x435dd6['length']?this['_breakSuggestionMarker'](_0xc616bf,_0x106c1f['start'],_0x106c1f['end']):this['_setSuggestionRange'](_0xc616bf,_0x435dd6[0x0]):_0x168df5['removeMarker'](_0xc616bf['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3fdfa7){this['_editor']=_0x3fdfa7,this['_model']=_0x3fdfa7['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5c1f21,_0x19b505,_0x388c93,_0x22f16b,_0x32baca,_0x436f60){return new u(this['_model'],{'type':_0x5c1f21,'subType':_0x19b505,'id':_0x388c93,'author':_0x22f16b,'creator':_0x22f16b,'attributes':_0x32baca,'onAttributesChange':_0x436f60,'onAccept':(..._0x3b72bc)=>this['getSuggestionCallback'](_0x5c1f21,_0x19b505,'accept')(..._0x3b72bc),'onDiscard':(..._0x55b438)=>this['getSuggestionCallback'](_0x5c1f21,_0x19b505,'discard')(..._0x55b438)});}['registerCustomCallback'](_0x1f2be1,_0x2a55a5,_0x3506e7,_0x3ed2d9){const _0x1f25f1=_0x1f2be1+':'+_0x2a55a5+':'+_0x3506e7;this['_customCallbacks']['set'](_0x1f25f1,_0x3ed2d9);}['getSuggestionCallback'](_0x3d3c96,_0x2dfcc0,_0x2b65bf){const _0x5a56e4=_0x3d3c96+':'+_0x2dfcc0+':'+_0x2b65bf;return this['_customCallbacks']['get'](_0x5a56e4)||this['_defaultCallbacks']['get'](_0x3d3c96+':'+_0x2b65bf);}['_registerDefaultCallbacks'](){const _0x6519a=()=>!0x1,_0x23e8e7=_0x5e4d2b=>{_0x5e4d2b['sort']((_0x142d21,_0x1e5d97)=>_0x142d21['start']['isBefore'](_0x1e5d97['start'])?0x1:-0x1),this['_model']['change'](_0x33b5c3=>{for(const _0x178bff of _0x5e4d2b){let _0x2fa556;_0x2fa556=_0x178bff['end']['isAtEnd']&&_0x178bff['end']['parent']==_0x178bff['start']['nodeAfter']?_0x33b5c3['createSelection'](_0x178bff['start']['nodeAfter'],'on'):_0x33b5c3['createSelection'](_0x178bff),this['_model']['deleteContent'](_0x2fa556,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x43b400=(_0x175607,_0x3e8c3b)=>{_0x3e8c3b&&this['_model']['change'](_0x45d193=>{const {commandName:_0x5a8ae9,commandParams:_0x2f423f=[]}=_0x3e8c3b,_0x42c7a6=_0x175607['map'](_0x194b1b=>(Tt(_0x194b1b)&&(_0x194b1b=this['_model']['createRange'](_0x194b1b['end'])),_0x194b1b))['filter'](_0x388fd0=>'$graveyard'!==_0x388fd0['root']['rootName']);if(_0x42c7a6['length']<0x1)return;const _0x247510=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5a42db=>_0x27f355['fromRange'](_0x5a42db));_0x45d193['setSelection'](_0x42c7a6);for(const _0x152040 of this['_editor']['commands']['commands']())_0x152040['refresh']();_0x2f423f['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5a8ae9,..._0x2f423f);const _0x4b0180=_0x247510['filter'](_0xf3e484=>'$graveyard'!=_0xf3e484['root']['rootName']);_0x4b0180['length']>0x0&&_0x45d193['setSelection'](_0x4b0180);for(const _0x46d4cb of _0x247510)_0x46d4cb['detach']();});},_0x3fc1bc=(_0x2dcdb8,_0x147fff)=>0x1==_0x2dcdb8['length']&&0x1==_0x147fff['length']&&_0x2dcdb8[0x0]['end']['isEqual'](_0x147fff[0x0]['start']),_0x23985d=(_0x17572e,_0x781806,_0x1d2932,_0x3d86b0)=>Ft(_0x17572e,_0x781806,_0x1d2932,_0x3d86b0,this['_model'])?[_0x17572e,_0x781806]:Ft(_0x781806,_0x17572e,_0x3d86b0,_0x1d2932,this['_model'])?[_0x781806,_0x17572e]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x6519a),this['_defaultCallbacks']['set']('insertion:discard',_0x23e8e7),this['_defaultCallbacks']['set']('insertion:join',_0x3fc1bc),this['_defaultCallbacks']['set']('insertion:chain',_0x23985d),this['_defaultCallbacks']['set']('deletion:accept',_0x23e8e7),this['_defaultCallbacks']['set']('deletion:discard',_0x6519a),this['_defaultCallbacks']['set']('deletion:join',_0x3fc1bc),this['_defaultCallbacks']['set']('deletion:chain',_0x23985d),this['_defaultCallbacks']['set']('formatInline:accept',_0x43b400),this['_defaultCallbacks']['set']('formatInline:discard',_0x6519a),this['_defaultCallbacks']['set']('formatInline:join',_0x3fc1bc),this['_defaultCallbacks']['set']('formatInline:chain',_0x6519a),this['_defaultCallbacks']['set']('formatBlock:accept',_0x43b400),this['_defaultCallbacks']['set']('formatBlock:discard',_0x6519a),this['_defaultCallbacks']['set']('formatBlock:join',_0x3fc1bc),this['_defaultCallbacks']['set']('formatBlock:chain',_0x6519a),this['_defaultCallbacks']['set']('attribute:accept',_0x6519a),this['_defaultCallbacks']['set']('attribute:discard',(_0x55162e,_0x284c2e)=>{if(!_0x284c2e)return;const _0x1ff28b=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x443104=>{if(_0x284c2e['key']==m)for(const _0x2dd090 of _0x55162e){const _0x299c72=_0x2dd090['start']['nodeAfter'],_0x5700c1=_0x284c2e['oldValue'];_0x443104['rename'](_0x299c72,_0x5700c1);}else{if(_0x1ff28b['_isBlockAttribute'](_0x284c2e['key'])){for(const _0x521899 of _0x55162e)void 0x0!==_0x284c2e['oldValue']?_0x443104['setAttribute'](_0x284c2e['key'],_0x284c2e['oldValue'],_0x521899['start']['nodeAfter']):_0x443104['removeAttribute'](_0x284c2e['key'],_0x521899['start']['nodeAfter']);}else{for(const _0x159534 of _0x55162e)_0x284c2e['oldValue']?_0x443104['setAttribute'](_0x284c2e['key'],_0x284c2e['oldValue'],_0x159534):_0x443104['removeAttribute'](_0x284c2e['key'],_0x159534);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3fc1bc);}}function Rt(_0x1b7c03,_0x2cd143,_0x45cc62){for(const _0x4a2399 of _0x2cd143['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4a2399['root']==_0x4a2399)return!0x1;if(!_0x45cc62['containsItem'](_0x4a2399))return!0x1;if(_0x1b7c03['isObject'](_0x4a2399)||_0x1b7c03['isLimit'](_0x4a2399))return!0x0;}return!0x1;}function Tt(_0x423ffe){return _0x423ffe['end']['parent']==_0x423ffe['start']['nodeAfter']&&_0x423ffe['end']['isAtStart'];}function Et(_0x1f10dc,_0x435bd1,_0x320d33,_0x2e1284){const _0xd6d847=_0x3b7697=>!_0x3b7697['item']['is']('$textProxy')&&!_0x2e1284['isObject'](_0x3b7697['item']),_0xb9deb6=_0x1f10dc['start']['getLastMatchingPosition'](_0xd6d847),_0x20eaaf=_0x1f10dc['end']['getLastMatchingPosition'](_0xd6d847,{'direction':'backward'});return(!_0x1f10dc['start']['isEqual'](_0xb9deb6)||!_0x1f10dc['end']['isEqual'](_0x20eaaf))&&(_0xb9deb6['isBefore'](_0x20eaaf)?_0x320d33['updateMarker'](_0x435bd1,{'range':_0x320d33['createRange'](_0xb9deb6,_0x20eaaf)}):_0x320d33['removeMarker'](_0x435bd1),!0x0);}function Vt(_0x9ec343){return _0x433e2e(_0x9ec343);}function Ut(_0x1a3ba0){const _0x230b9a=_0x1a3ba0['start']['nodeAfter'];return _0x230b9a&&_0x230b9a['is']('element');}function Ot(_0x2db7b2,_0x1c88b6){return null==_0x2db7b2['end']['nodeBefore']&&_0x2db7b2['end']['parent']==_0x2db7b2['start']['nodeAfter']?Gt(_0x2db7b2['start']['nodeAfter'],_0x1c88b6):_0x2db7b2;}function Gt(_0x3c7683,_0x113b58){const _0x41b47d=_0x113b58['schema']['isObject'](_0x3c7683)||_0x113b58['schema']['isSelectable'](_0x3c7683);return _0x113b58['createRange'](_0x113b58['createPositionAt'](_0x3c7683,'before'),_0x41b47d?_0x113b58['createPositionAfter'](_0x3c7683):_0x113b58['createPositionAt'](_0x3c7683,'end'));}function Ft(_0x427c44,_0x40f6b7,_0x3e00b3,_0x3fff95,_0x2f4a2c){if(!Pt(_0x427c44,_0x40f6b7))return!0x1;if(_0x3e00b3['end']['isEqual'](_0x3fff95['start']))return!0x0;if(_0x427c44['type']!=_0x40f6b7['type'])return!0x1;if(!_0x3e00b3['end']['isTouching'](_0x3fff95['start']))return!0x1;const _0x3068c7=_0x2f4a2c['createRange'](_0x3e00b3['end'],_0x3fff95['start'])['getWalker']();for(const _0x8b8fd5 of _0x3068c7)if(['elementStart','elementEnd']['includes'](_0x8b8fd5['type'])&&_0x2f4a2c['schema']['isLimit'](_0x8b8fd5['item']))return!0x1;return!0x0;}function Pt(_0x1d44a8,_0x445689,_0x4bd032=[]){return!(!_0x1d44a8['_isDataLoaded']||!_0x445689['_isDataLoaded'])&&_0x5cd547(Bt(_0x1d44a8['attributes'],_0x4bd032),Bt(_0x445689['attributes'],_0x4bd032));}function Lt(_0xd58d08,_0x4d88ca){const _0x55bce0=Ht(_0xd58d08['attributes']),_0x39a885=Ht(_0x4d88ca);if(!_0xd58d08['_isDataLoaded'])return!0x1;for(const _0x487154 of Object['keys'](_0x39a885))if(!_0x5cd547(_0x55bce0[_0x487154],_0x39a885[_0x487154]))return!0x1;return!0x0;}function Ht(_0x1d1359){const _0x549318=Object['assign']({},_0x1d1359);return delete _0x549318['skipNestingCheck'],delete _0x549318['tablePasteChainId'],_0x549318;}class oe extends/* #__PURE__ -- @preserve */
25
+ _0x2a7513(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1433ea,_0x53b4e6,_0x5bfc30,_0x28a057){super(),this['model']=_0x53b4e6,this['view']=_0x5bfc30,this['commentThreadController']=_0x28a057,this['_editor']=_0x1433ea,this['_acceptCommand']=_0x1433ea['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1433ea['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1e85f9,_0x587250)=>_0x1e85f9||_0x587250),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x568074=>_0x568074&&this['_editor']['model']['canEditAt'](_0x53b4e6['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xcd4d34=>_0xcd4d34&&this['_editor']['model']['canEditAt'](_0x53b4e6['getRanges']())),this['_pendingAction']=null,_0x5bfc30['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5bfc30,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5bfc30,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5bfc30,'change:isDirty',()=>{_0x5bfc30['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x4e8369=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4e8369);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x21ef4a{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x3ea253,_0x5d7176,_0x2a0fd4,_0x427136){super(_0x3ea253),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x5d7176['authoredAt']),this['bind']('authoredAt')['to'](_0x5d7176),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x5d7176,this['_localUser']=_0x2a0fd4,this['_config']=_0x427136,_0x427136['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1d8876}=this['_config'];this['commentsListView']=new _0x1d8876(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',_0x81b51f=>_0x81b51f+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x53539a,_0x183ae4)=>_0x53539a||!!_0x183ae4);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x53db75}=this['_config'],_0xdacd7b=new _0x53db75(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x59d211=_0xdacd7b['commentInputView'];return _0xdacd7b['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x59d211,'value',(_0x45e1da,_0x276ca3,_0x3b7fa5)=>!!_0x3b7fa5||_0x45e1da&&!_0x276ca3),_0x59d211['on']('submit',(_0x2270ff,_0x17ac4c)=>{this['fire']('addComment',_0x17ac4c),_0x59d211['editor']['setData']('');}),_0x59d211['on']('cancel',()=>this['focus']()),_0x59d211['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xdacd7b;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0xa32ff,_0x7e6e8d,_0x3a8934,_0x405971){super(_0xa32ff,_0x7e6e8d,_0x3a8934,_0x405971),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4d1e64=>_0x4d1e64&&_0x4d1e64[0x0]?_0x4d1e64[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3deb16,_0x2d7d53)=>{let _0x1c2637='';for(const _0x2d80e1 of _0x3deb16)_0x1c2637+='<p>'+ds(_0x2d80e1['content'],_0x2d80e1['color'])+'</p>';return _0x2d7d53?_0x1c2637:_0x43c02e(_0x1c2637,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0xa32ff,'Accept\x20suggestion'),_0x3ddd08['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0xa32ff,'Discard\x20suggestion'),_0x3ddd08['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x3317b7(_0xa32ff,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x4ea355=this['bindTemplate'],_0x42ec62=[{'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':_0x4ea355['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4ea355['to']('authoredAt',_0x3d5d5f=>this['_config']['formatDateTime'](_0x3d5d5f))}]}]},{'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']&&_0x42ec62['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x4ddb06={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x4ea355['if']('isActive','ck-suggestion-wrapper--active'),_0x4ea355['to']('type',_0x24c9fb=>'ck-suggestion-'+_0x24c9fb),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':_0x42ec62}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x4ddb06['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)),_0x4ddb06;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x40d332,_0x4741b9,_0x4ba59d)=>{this['_descriptionElement']['innerHTML']=_0x4ba59d;});}['_createButton'](_0x203fbf,_0x2093a7,_0x305056,_0x3208c5,_0x1e8ef8){const _0x7efcf0=new _0x3ed1f5(this['locale']);return _0x7efcf0['set']({'label':_0x203fbf,'icon':_0x2093a7,'tooltip':!0x0,'tooltipPosition':_0x1e8ef8}),_0x7efcf0['extendTemplate']({'attributes':{'class':_0x305056}}),_0x7efcf0['on']('execute',()=>{this['fire'](_0x3208c5,this['_model']['id']);}),_0x7efcf0;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}function ds(_0x50142e,_0x2bd23f){let _0x3d2283='';return _0x3d2283+=_0x50142e['split']('*')['map']((_0xe98dd0,_0x1b3224)=>_0x1b3224%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0xe98dd0)+'</span>':us(_0xe98dd0))['join'](''),_0x2bd23f&&(_0x3d2283+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2bd23f['value']+'\x22\x20title=\x22'+_0x2bd23f['title']+'\x22></span>'),_0x3d2283;}function us(_0x1350fb){const _0x560fbe=document['createElement']('span');return _0x560fbe['innerText']=_0x1350fb,_0x560fbe['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 _0x4d360f{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x505173,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x340c96){super(_0x340c96),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x282bc3=this['editor']['config'];_0x282bc3['define']('trackChanges.SuggestionThreadView',ne),_0x282bc3['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x282bc3['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xc27ddb,_0x751578){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x490402,_0x29ecae]of this['_handleControllerBuffer']){const _0x5e0508=this['_suggestionToController']['has'](_0x490402);_0x5e0508||_0x29ecae?_0x5e0508&&_0x29ecae&&this['_destroyController'](_0x490402):this['_initializeController'](_0x490402);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xc27ddb,_0x751578);}['init'](){const _0x4b806b=this['editor'],_0x321375=_0x4b806b['plugins']['get']('TrackChangesEditing'),_0xf4c31c=_0x4b806b['plugins']['get']('Annotations'),_0x3fa2af=_0x4b806b['plugins']['get']('EditorAnnotations'),_0x46c0d8=_0x4b806b['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3fa2af['addSourceCollector'](()=>{const _0x74b9cf=[];for(const [_0x89bcc8,_0x3425d1]of Array['from'](this['_suggestionToController'])){const _0x1bea39=_0x89bcc8['getAllAdjacentSuggestions'](),_0x53605e=[];for(const _0x4be6b4 of _0x1bea39){if(!_0x4be6b4['isInContent'])continue;if(_0x4be6b4['isMultiRange']){_0x53605e['push'](..._0x4be6b4['getRanges']());continue;}const _0x49e2d0=_0x4be6b4['getFirstRange']();if(_0x53605e['length']>0x0){const _0x76754a=_0x53605e[0x0]['getJoined'](_0x49e2d0);if(_0x76754a){_0x53605e[0x0]=_0x76754a;continue;}}_0x53605e['push'](_0x49e2d0);}_0x74b9cf['push']([_0x3425d1['view'],_0x53605e]);}return _0x74b9cf;}),this['listenTo'](_0x321375,'suggestionLoaded',(_0x115513,_0x3f217a)=>{this['listenTo'](_0x3f217a,'change:previous',(_0x245668,_0x1f6681,_0x5872e9,_0x3603f2)=>{_0x3f217a['isInContent']&&(null==_0x5872e9?(this['_updateController'](_0x3603f2['head']),this['_handleSuggestionControllerDelayed'](_0x3f217a,!0x1)):(this['_updateController'](_0x5872e9['head']),null==_0x3603f2&&this['_handleSuggestionControllerDelayed'](_0x3f217a,!0x0)));}),null!==_0x3f217a['previous']?this['_updateController'](_0x3f217a['head']):this['_handleSuggestionControllerDelayed'](_0x3f217a,!0x1);}),this['listenTo'](_0x321375,'suggestionUnloaded',(_0x433fd3,_0x35f1d7,_0x3a0ffd)=>{this['stopListening'](_0x35f1d7,'change:previous'),this['_handleControllerBuffer']['delete'](_0x35f1d7),this['_suggestionToController']['has'](_0x35f1d7)&&this['_destroyController'](_0x35f1d7),_0x3a0ffd&&this['_updateController'](_0x3a0ffd['head']);}),this['listenTo'](_0x321375,'suggestionChanged',(_0x14de4b,_0x47a005)=>{this['_updateController'](_0x47a005);}),this['listenTo'](_0xf4c31c,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x46c0d8,'addComment',(_0x42d133,{threadId:_0x4dd512,isFromAdapter:_0x2e9cf2})=>{if(_0x2e9cf2||!_0x321375['hasSuggestion'](_0x4dd512))return;const _0x1ee178=_0x321375['getSuggestion'](_0x4dd512);this['_suggestionToController']['get'](_0x1ee178)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x2aec6b=this['editor']['plugins']['get']('Annotations'),_0x11a645=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2208ab=Array['from'](_0x2aec6b['activeAnnotations'],_0x6775cd=>_0x6775cd['innerView'])['filter'](_0x178b3c=>this['_viewToController']['has'](_0x178b3c)),_0x4893fd=[];for(const _0x233725 of _0x2208ab){const _0x10503f=this['_viewToController']['get'](_0x233725)['model']['getAllAdjacentSuggestions']();_0x4893fd['push'](..._0x10503f['reduce']((_0x1a76ed,_0x582f0d)=>[..._0x1a76ed,..._0x582f0d['getMarkerNames']()],[]));}_0x11a645['activeMarkers']=_0x4893fd;}['_addUIComponentsToFactory'](){const _0x3a513c=this['editor'],_0x35b13a=_0x3a513c['locale'],_0x27ffb5=o(_0x35b13a,'Track\x20changes'),_0x5525e4=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x27ffb5,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x35b13a,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x35b13a,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x35b13a,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x35b13a,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x5774c7 of _0x5525e4)if(ae(_0x5774c7)){const _0x55237a=_0x3a513c['commands']['get'](_0x5774c7['model']['commandName']);_0x5774c7['model']['bind']('isOn','isEnabled')['to'](_0x55237a,'value','isEnabled');}_0x3a513c['ui']['componentFactory']['add']('trackChanges',_0x112799=>this['_createToolbarButton'](_0x112799,_0x5525e4,_0x27ffb5)),_0x3a513c['ui']['componentFactory']['add']('menuBar:trackChanges',_0x28f60d=>this['_createMenuBarMenu'](_0x28f60d,_0x5525e4,_0x27ffb5));}['_createToolbarButton'](_0x5ae70f,_0x4c83b3,_0x26eaec){const _0x433524=zt(_0x5ae70f,Zt),_0x1a2433=this['editor']['commands']['get']('trackChanges');_0x433524['buttonView']['set']({'tooltip':_0x26eaec,'label':_0x26eaec,'icon':ie}),_0x433524['buttonView']['bind']('isOn')['to'](_0x1a2433,'value'),_0x433524['buttonView']['on']('execute',()=>{_0x1a2433['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x433524,_0x4c83b3,{'role':'menu'});const _0x1a8f61=[];for(const _0x5e300c of _0x4c83b3)ae(_0x5e300c)&&_0x1a8f61['push'](this['editor']['commands']['get'](_0x5e300c['model']['commandName']));const _0x4c337d=_0x433524['buttonView'];return _0x4c337d['actionView']['unbind']('isEnabled'),_0x4c337d['arrowView']['unbind']('isEnabled'),_0x4c337d['actionView']['bind']('isEnabled')['to'](_0x1a2433,'isEnabled'),_0x4c337d['arrowView']['bind']('isEnabled')['toMany'](_0x1a8f61,'isEnabled',(..._0x5a6689)=>_0x5a6689['some'](_0xbf574d=>_0xbf574d)),_0x433524['on']('execute',_0x14670a=>{this['editor']['execute'](_0x14670a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x433524;}['_createMenuBarMenu'](_0x432bf7,_0x1b8349,_0x15df57){const _0x307063=new Kt(_0x432bf7),_0x4fa168=this['editor']['commands']['get']('trackChanges');_0x307063['buttonView']['set']({'label':_0x15df57,'icon':ie});const _0x17bf49=new Qt(_0x432bf7);for(const _0x23fb79 of _0x1b8349){if('separator'==_0x23fb79['type']){_0x17bf49['items']['add'](new Jt(_0x432bf7));continue;}const _0x279d2c=new Xt(_0x432bf7,_0x307063),_0x590cbc=new Yt(_0x432bf7),_0x2732c8=_0x23fb79['model'];_0x590cbc['bind'](...Object['keys'](_0x2732c8))['to'](_0x2732c8),_0x590cbc['delegate']('execute')['to'](_0x307063),_0x590cbc['on']('execute',()=>{this['editor']['execute'](_0x2732c8['commandName']),this['editor']['editing']['view']['focus']();}),_0x279d2c['children']['add'](_0x590cbc),_0x17bf49['items']['add'](_0x279d2c);}return _0x307063['bind']('isEnabled')['to'](_0x4fa168,'isEnabled'),_0x307063['panelView']['children']['add'](_0x17bf49),_0x307063;}['_initializeController'](_0x5877f3){const _0x31726f=this['editor'],_0x252de1=_0x31726f['config'],_0x3c6171=_0x31726f['plugins']['get']('Annotations'),_0x50a9e6=_0x31726f['plugins']['get']('CommentsRepository'),_0x27c658=_0x31726f['plugins']['get']('EditorAnnotations'),_0x4d78be=_0x31726f['plugins']['get'](_0x505173)['me'],_0x3fb881=_0x252de1['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x2a11a8,CommentThreadInputView:_0x16dfc9}=_0x31726f['plugins']['get']('CommentsUI');let _0x520636,_0x2744ba;this['_annotationViews']['has'](_0x5877f3['id'])?(_0x2744ba=this['_annotationViews']['get'](_0x5877f3['id']),_0x520636=_0x2744ba['mainView']):(_0x520636=new _0x3fb881(_0x31726f['locale'],_0x5877f3,_0x4d78be,{'disableComments':this['_disableComments'],'editorConfig':_0x252de1['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x252de1['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x252de1['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x252de1['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x474164(_0x252de1['get']('locale')),'CommentView':_0x252de1['get']('comments')['CommentView'],'CommentsListView':_0x2a11a8,'CommentThreadInputView':_0x16dfc9}),_0x520636['acceptButton']['on']('execute',()=>{_0x31726f['editing']['view']['focus']();}),_0x520636['discardButton']['on']('execute',()=>{_0x31726f['editing']['view']['focus']();}),_0x2744ba=_0x3c6171['createAnnotationView'](this['editor']['locale'],_0x520636),_0x2744ba['bind']('isDirty')['to'](_0x520636,'isDirty'),_0x2744ba['bind']('length')['to'](_0x520636),_0x2744ba['bind']('type')['to'](_0x520636,'type',_0x59a52a=>'suggestion-'+_0x59a52a),this['_annotationViews']['set'](_0x5877f3['id'],_0x2744ba));const _0x4fb999=_0x50a9e6['createCommentThreadController'](_0x5877f3['commentThread'],_0x520636),_0x4e4568=new oe(_0x31726f,_0x5877f3,_0x520636,_0x4fb999),_0x1bffeb=_0x5877f3['getAllAdjacentSuggestions']()['filter'](_0x332f43=>_0x332f43['isInContent']);_0x520636['descriptionParts']=_0x31726f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1bffeb),this['_suggestionToController']['set'](_0x5877f3,_0x4e4568),this['_viewToController']['set'](_0x520636,_0x4e4568);const _0x3ae845=_0x3c6171['createAnnotation']({'view':_0x2744ba,'target':()=>{const _0x5670bd=[],_0x54d171=_0x5877f3['getAllAdjacentSuggestions']()['filter'](_0x5cb43d=>_0x5cb43d['isInContent']);for(const _0x3f65fe of _0x54d171)_0x5670bd['push'](..._0x3f65fe['getMarkers']());return _0x36638a(_0x31726f['editing'],_0x5670bd);},'type':()=>'suggestion-'+_0x4e4568['view']['type']});_0x50a9e6['_bindAnnotationToEditors'](_0x520636,_0x3ae845),_0x3c6171['add'](_0x3ae845),_0x27c658['registerAnnotation'](_0x3ae845);}['_destroyController'](_0x4fa3c8){const _0x4dece3=this['editor']['plugins']['get']('CommentsRepository'),_0x12d1bf=this['editor']['plugins']['get']('Annotations'),_0x772b45=this['_suggestionToController']['get'](_0x4fa3c8),_0x40f5a3=_0x772b45['view'],_0x40c698=_0x12d1bf['getByInnerView'](_0x40f5a3);_0x4dece3['_unbindEditors'](_0x40f5a3),_0x40c698&&_0x12d1bf['remove'](_0x40c698),this['_suggestionToController']['delete'](_0x4fa3c8),this['_viewToController']['delete'](_0x40f5a3),_0x772b45['destroy']();}['_updateController'](_0x555d0f){if(!_0x555d0f['isInContent']||!this['_suggestionToController']['has'](_0x555d0f))return;const _0x571b38=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5847a1=this['_suggestionToController']['get'](_0x555d0f),_0x3345c6=_0x555d0f['getAllAdjacentSuggestions']();_0x5847a1['view']['descriptionParts']=_0x571b38['descriptionFactory']['getDescriptions'](_0x3345c6);}['destroy'](){for(const _0x25fb20 of this['_suggestionToController']['keys']())this['_destroyController'](_0x25fb20);for(const _0x3faf4b of this['_annotationViews']['values']())_0x3faf4b['mainView']['destroy']();super['destroy']();}}function ae(_0x2f2c80){return'model'in _0x2f2c80;}class k extends _0x4d360f{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x3659b0){this['editor']['plugins']['get'](p)['adapter']=_0x3659b0;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x5b6e06){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x5b6e06);}['getSuggestions']({skipNotAttached:_0xd534ca=!0x1,toJSON:_0x4b690f=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xd534ca,'toJSON':_0x4b690f});}['getSuggestion'](_0xfd6cac){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xfd6cac);}}const T=['Pagination'];class P extends _0x4d360f{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x25e036=this['editor'];if(_0x25e036['config']['define']('trackChangesData.editorCreator',_0x55b471=>{const _0x1536bc=_0x25e036['model']['document']['getRootNames']()['reduce']((_0x3b4d39,_0x19a41b)=>(_0x3b4d39[_0x19a41b]='',_0x3b4d39),{});return _0x25e036['constructor']['create'](_0x1536bc,_0x55b471);}),'function'!=typeof _0x25e036['config']['get']('trackChangesData')['editorCreator'])throw new _0x3f3ca6('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2553b3){return N(this['editor'],!0x0,_0x2553b3);}['getDataWithDiscardedSuggestions'](_0x446d89){return N(this['editor'],!0x1,_0x446d89);}}class D extends _0x4d360f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x2e8bdc){super(_0x2e8bdc),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0xe9657e){return void 0x0!==_0xe9657e['getRootsAttributes'];}async function N(_0xa16ad3,_0x5b023e,_0x1de6c6){const _0x55569a=_0x109f03(_0xa16ad3,T);_0x55569a['plugins']['push'](p,D),_0x55569a['rootsAttributes']=v(_0xa16ad3)?_0xa16ad3['getRootsAttributes']():void 0x0;const _0x34c447=document['createDocumentFragment'](),_0x44cb75=_0xa16ad3['config']['get']('trackChangesData')['editorCreator'],_0x1f0065=await _0x44cb75(_0x55569a,()=>function(_0x3f9a27){const _0x42fecc=document['createElement']('div');return _0x3f9a27['appendChild'](_0x42fecc),_0x42fecc;}(_0x34c447));!function(_0x2737dc,_0xc3d2e4){const _0x38bb59=_0x2737dc['model']['document']['getRootNames']()['reduce']((_0x52d20e,_0x554a2c)=>(_0x52d20e[_0x554a2c]=_0x2737dc['data']['get']({'rootName':_0x554a2c}),_0x52d20e),{}),_0x4b908e=_0x2737dc['plugins']['get']('Users')['users']['map'](_0x29bed4=>({'id':_0x29bed4['id'],'name':_0x29bed4['name']})),_0x4c37ed=_0x2737dc['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3f9354=_0x2737dc['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2d02ba=_0xc3d2e4['plugins']['get']('Users'),_0x1f8198=_0xc3d2e4['plugins']['get']('TrackChangesEditing'),_0x2d8b43=_0xc3d2e4['plugins']['get']('CommentsRepository');for(const _0x1f6c20 of _0x4b908e)_0x2d02ba['getUser'](_0x1f6c20['id'])||_0x2d02ba['addUser'](_0x1f6c20);_0x2d02ba['me']||_0x2d02ba['useAnonymousUser']();for(const _0x25cb17 of _0x3f9354)_0x2d8b43['addCommentThread'](_0x25cb17);for(const _0x14c7a6 of _0x4c37ed)_0x1f8198['addSuggestionData'](_0x14c7a6);_0xc3d2e4['data']['set'](_0x38bb59);}(_0xa16ad3,_0x1f0065),_0x1f0065['execute'](_0x5b023e?'acceptAllSuggestions':'discardAllSuggestions');const _0x120e6b=v(_0x1f0065)?_0x1f0065['getFullData'](_0x1de6c6):_0x1f0065['data']['get'](_0x1de6c6);return await _0x1f0065['destroy'](),_0x120e6b;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};