@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240609.0 → 0.0.0-nightly-20240611.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 _0xd068a0,PendingActions as _0x3a149,icons as _0x5d921c}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x559e97,ObservableMixin as _0x5cf6c8,uid as _0x4253a4,insertToPriorityArray as _0x5d63e0,priorities as _0x214829,logWarning as _0x16a41d,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x52bd70,View as _0x3772f7,ButtonView as _0x38fb80,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 _0x3a1269,hashObject as _0xb8b99e,surroundingMarkersDetector as _0x3e0a5e,trimHtml as _0x75e0a0,UserView as _0x4e76b4,getDateTimeFormatter as _0x4e185e,getAllMarkersDomElementsSorted as _0x2246cc,sanitizeEditorConfig as _0x3dffb6}from'ckeditor5-collaboration/dist/index.js';import{Element as _0xdc172d,LiveRange as _0x2b023b,LivePosition as _0x1fb04b}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x47412f,toWidget as _0xd81baf}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x239e69,set as _0x2e9f04,isEqual as _0x2849d6,unset as _0x4b709f,omit as Bt}from'lodash-es';import{Delete as _0x767f14,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x2e881a,ShiftEnter as _0x5dd563}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x59dcbd,_0xc425bc){super(_0x59dcbd),this['_enabledCommands']=_0xc425bc,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 _0x1b18da of this['editor']['commands']['commands']())_0x1b18da['affectsData']&&!this['_enabledCommands']['has'](_0x1b18da)&&_0x1b18da['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2a9c39 of this['editor']['commands']['commands']())_0x2a9c39['affectsData']&&!this['_enabledCommands']['has'](_0x2a9c39)&&_0x2a9c39['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0xf7103a,_0x1daf97){super(_0xf7103a),this['_suggestions']=_0x1daf97,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5aa2b1){const _0x3b4985=this['_suggestions']['get'](_0x5aa2b1);if(!_0x3b4985)throw new _0x559e97('track-changes-accept-suggestion-not-found',this);const _0x3c79e6=_0x3b4985['getRanges']();this['editor']['model']['canEditAt'](_0x3c79e6)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3b4985);}}class B extends ts{['_suggestions'];constructor(_0x3a8633,_0x281ad3){super(_0x3a8633),this['_suggestions']=_0x281ad3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x15709f){const _0x41ba50=this['_suggestions']['get'](_0x15709f);if(!_0x41ba50)throw new _0x559e97('track-changes-discard-suggestion-not-found',this);const _0x5198fc=_0x41ba50['getRanges']();this['editor']['model']['canEditAt'](_0x5198fc)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x41ba50);}}function ss(_0x107150){return _0x107150['sort']((_0x273f5c,_0x22284f)=>'deletion'==_0x273f5c['type']&&'deletion'!=_0x22284f['type']?-0x1:'deletion'!=_0x273f5c['type']&&'deletion'==_0x22284f['type']?0x1:0x0);}function to(_0x506e39,_0x2af83c){let _0x16e9c0,_0x216cca=0x0;const _0x57b073=[],_0x2d90cb=_0x2af83c['schema'];for(;_0x216cca<_0x506e39['length'];){const _0x21444d=_0x506e39[_0x216cca],_0x22c5b0=_0x506e39[_0x216cca+0x1];_0x16e9c0||(_0x16e9c0=_0x2af83c['createPositionBefore'](_0x21444d)),co(_0x2af83c,_0x21444d,_0x22c5b0)||(_0x57b073['push'](_0x2af83c['createRange'](_0x16e9c0,_0x2d90cb['isObject'](_0x21444d)?_0x2af83c['createPositionAfter'](_0x21444d):_0x2af83c['createPositionAt'](_0x21444d,'end'))),_0x16e9c0=null),_0x216cca++;}return _0x57b073;}function co(_0x457767,_0x46bd5f,_0x3f00b9){if(!_0x3f00b9)return!0x1;const _0x1244c1=_0x457767['createPositionAfter'](_0x46bd5f),_0x599e2b=_0x457767['createPositionBefore'](_0x3f00b9);return _0x1244c1['isTouching'](_0x599e2b);}function rs(_0xaa4faf,_0x2296d7,_0x520889){for(;_0x520889['length'];){const _0x4e2423=_0x520889['splice'](0x0,0x64);_0xaa4faf['change'](()=>{for(const _0x3875ec of _0x4e2423)_0x3875ec['isInContent']&&_0x2296d7['execute'](_0x3875ec['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x3f21ea,_0x40d9d4,_0xb482f4){super(_0x3f21ea),this['_command']=_0x40d9d4,this['_suggestions']=_0xb482f4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4823f5=Array['from'](this['_suggestions']['values']())['some'](_0x2ebd62=>_0x2ebd62['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4823f5;}['execute'](){const _0x5a4b13=ss(Array['from'](this['_suggestions']['values']()));for(const _0x460542 of _0x5a4b13){const _0x4a8b10=_0x460542['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4a8b10))return;}rs(this['editor']['model'],this['_command'],_0x5a4b13);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x2c96b5,_0x3fd581,_0x2f79bb){super(_0x2c96b5),this['_command']=_0x3fd581,this['_suggestions']=_0x2f79bb,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x38056c=this['editor']['model']['document']['selection'],_0x4303a9=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3b54f7,_0x2ee93d){const _0x5109da=Array['from'](_0x3b54f7['getRanges']()),_0x1c3f06=new Set();for(const _0x19d88b of _0x2ee93d)if(_0x19d88b['isInContent']){for(const _0x59c5dc of _0x5109da)for(const _0x46e71f of _0x19d88b['getRanges']())(_0x59c5dc['isIntersecting'](_0x46e71f)||_0x3b54f7['isCollapsed']&&!_0x19d88b['isMultiRange']&&_0x19d88b['next']&&_0x46e71f['end']['isTouching'](_0x59c5dc['start']))&&_0x1c3f06['add'](_0x19d88b);}return _0x1c3f06;}(_0x38056c,_0x4303a9),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x397f92=ss(Array['from'](this['_selectedSuggestions']));for(const _0x29507e of _0x397f92){const _0x20ec70=_0x29507e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x20ec70))return;}rs(this['editor']['model'],this['_command'],_0x397f92);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x5cf6c8(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x37d741,_0x5a4d37){super(),this['id']=_0x5a4d37['id'],this['type']=_0x5a4d37['type'],this['subType']=_0x5a4d37['subType']||null,this['author']=_0x5a4d37['author'],this['creator']=_0x5a4d37['creator']||_0x5a4d37['author'],this['isExternal']=Boolean(_0x5a4d37['attributes']&&_0x5a4d37['attributes']['@external']),this['data']=null,this['_model']=_0x37d741,this['_onAccept']=_0x5a4d37['onAccept'],this['_onDiscard']=_0x5a4d37['onDiscard'],this['_onAttributesChange']=_0x5a4d37['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5a4d37['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 _0x286971=this;for(;_0x286971['previous'];)_0x286971=_0x286971['previous'];return _0x286971;}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'](_0x2ee20f){this['_markerNames']['add'](_0x2ee20f);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x25198f=>this['_model']['markers']['get'](_0x25198f))['filter'](_0x434848=>_0x434848);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4fce53=>{for(const _0x5f55dc of this['getMarkers']())_0x4fce53['removeMarker'](_0x5f55dc);}),this['_markerNames']['clear']();}['removeMarker'](_0x4f56a4){this['_model']['change'](_0x402c27=>{_0x402c27['removeMarker'](_0x4f56a4);}),this['_markerNames']['delete'](_0x4f56a4);}['addRange'](_0x204882){const _0x1e6780='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x1e6780),this['_model']['change'](_0x13a826=>{_0x13a826['addMarker'](_0x1e6780,{'range':_0x204882,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x454a27){for(const _0x5b9936 of this['getRanges']())if(_0x5b9936['isIntersecting'](_0x454a27))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2b9c14=>_0x2b9c14['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xcd3e1d,_0x14b5f1)=>[..._0xcd3e1d,..._0x14b5f1['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3586ab=this['getRanges']();if(0x1!=_0x3586ab['length'])return null;const _0x59cbd1=_0x3586ab[0x0],_0x5b4fd7=_0x59cbd1['start']['nodeAfter'],_0x565972=_0x59cbd1['end']['nodeBefore'];return _0x5b4fd7 instanceof _0xdc172d?_0x5b4fd7!=_0x565972?null:_0x5b4fd7: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 _0x48d92e=[];let _0x8067c6=this['head'];for(;_0x8067c6;)_0x48d92e['push'](_0x8067c6),_0x8067c6=_0x8067c6['next'];return _0x48d92e;}['setAttribute'](_0x24c005,_0x1c2541){const _0x5b6f88=_0x239e69(this['attributes']);_0x2e9f04(_0x5b6f88,_0x24c005,_0x1c2541),_0x2849d6(_0x5b6f88,this['attributes'])||(this['attributes']=_0x5b6f88,this['_onAttributesChange'](_0x5b6f88));}['removeAttribute'](_0x2af28d){const _0x81a240=_0x239e69(this['attributes']);_0x4b709f(_0x81a240,_0x2af28d),_0x2849d6(_0x81a240,this['attributes'])||(this['attributes']=_0x81a240,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 _0x4253a4()['substr'](0x1,0x5);}}function o(_0x2f79b6,_0x322e6e,_0xe6bef){const t=_0x2f79b6['t'];switch(_0x322e6e){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',_0xe6bef);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xe6bef);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xe6bef);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xe6bef);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xe6bef);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',_0xe6bef);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xe6bef);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',_0xe6bef);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xe6bef);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xe6bef);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xe6bef);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xe6bef);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xe6bef);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xe6bef);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xe6bef);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xe6bef);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xe6bef);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xe6bef);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xe6bef);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xe6bef);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xe6bef);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xe6bef);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xe6bef);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'},_0xe6bef);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xe6bef);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xe6bef);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xe6bef);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xe6bef);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xe6bef);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'},_0xe6bef);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xe6bef);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xe6bef);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xe6bef);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xe6bef);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'},_0xe6bef);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xe6bef);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'},_0xe6bef);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'},_0xe6bef);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xe6bef);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'},_0xe6bef);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xe6bef);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'},_0xe6bef);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xe6bef);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xe6bef);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'},_0xe6bef);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'},_0xe6bef);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 _0x322e6e;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x54b3aa,_0x59e629){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x54b3aa,this['_locale']=_0x59e629;}['getDescriptions'](_0x19c49a){const _0x4d456f=[],_0x3c0298=new Set(),_0x2a5729=new Set();for(let _0x59a77d=0x0;_0x59a77d<_0x19c49a['length'];_0x59a77d++){const _0x53dd97=_0x19c49a[_0x59a77d];if(!_0x53dd97['isInContent'])continue;const _0x39c81f=this['_handleCustomCallbackDescription'](_0x53dd97);if(_0x39c81f){if(null!=_0x53dd97['subType']){if(_0x3c0298['has'](_0x53dd97['subType']))continue;_0x3c0298['add'](_0x53dd97['subType']);}_0x4d456f['push'](_0x39c81f);}else{if('attribute'!=_0x53dd97['type'])'insertion'!=_0x53dd97['type']&&'deletion'!=_0x53dd97['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4d456f,_0x53dd97,_0x19c49a[_0x59a77d+0x1]);else{const _0x441e87=_0x53dd97['data']['key'];if(_0x2a5729['has'](_0x441e87))continue;_0x2a5729['add'](_0x53dd97['data']['key']),_0x441e87==m?this['_handleRenameSuggestionDescription'](_0x4d456f,_0x53dd97):this['_handleAttributeSuggestionDescription'](_0x4d456f,_0x53dd97);}}}return this['_resolveDescriptionItems'](_0x4d456f);}['registerDescriptionCallback'](_0x276045){this['_customCallbacks']['push'](_0x276045);}['registerElementLabel'](_0x58c5f5,_0x4b4b7b,_0x3cd936=_0x214829['normal']){'function'==typeof _0x58c5f5?_0x5d63e0(this['_itemLabelsCallbacks'],{'matchingCallback':_0x58c5f5,'label':_0x4b4b7b,'priority':_0x3cd936}):this['_itemLabels']['set'](_0x58c5f5,_0x4b4b7b);}['registerAttributeLabel'](_0x477428,_0x31ad12){this['_attributeLabels']['set'](_0x477428,_0x31ad12);}['getItemLabel'](_0x36b7ec,_0x63a628=0x1){let _0x1a9887;for(const _0x5f5c56 of this['_itemLabelsCallbacks'])if(_0x5f5c56['matchingCallback'](_0x36b7ec)){_0x1a9887=_0x5f5c56['label'];break;}return _0x1a9887||(_0x1a9887=this['_itemLabels']['get'](_0x36b7ec['name'])),_0x1a9887?_0x1a9887(_0x63a628):0x1!==_0x63a628?_0x63a628+'\x20'+_0x36b7ec['name']+'s':''+_0x36b7ec['name'];}['_addDescriptionItems'](_0x7ed3df,_0x1811fc){const _0x5bc8bf=_0x1811fc['getFirstRange']()['getWalker'](),_0x4963f0='insertion'==_0x1811fc['type']?'add':'remove';for(const _0x4cb50d of _0x5bc8bf){const _0x4fda0e=_0x4cb50d['item'],_0x2882b4=_0x7ed3df[_0x7ed3df['length']-0x1];if(_0x4fda0e['is']('$textProxy'))_0x2882b4&&_0x2882b4['type']['indexOf']('Container')>-0x1&&_0x7ed3df['pop'](),_0x2882b4&&'text'==_0x2882b4['type']?_0x2882b4[_0x4963f0]+=_0x4fda0e['data']:_0x7ed3df['push']({'type':'text','add':'add'==_0x4963f0?_0x4fda0e['data']:'','remove':'remove'==_0x4963f0?_0x4fda0e['data']:''});else{if(this['_schema']['isObject'](_0x4fda0e)){const _0x2bb706=_0x4fda0e;if(_0x2882b4&&_0x2882b4['type']['indexOf']('Container')>-0x1&&_0x7ed3df['pop'](),'elementEnd'==_0x4cb50d['type'])continue;_0x2882b4&&_0x2882b4['type']==_0x4963f0+'Object'&&_0x2882b4['element']['name']==_0x2bb706['name']?_0x2882b4['quantity']++:_0x7ed3df['push']({'type':_0x4963f0+'Object','element':_0x2bb706,'quantity':0x1}),_0x5bc8bf['skip'](_0x51180c=>!('elementEnd'==_0x51180c['type']&&_0x51180c['item']==_0x4fda0e));}else{if(this['_schema']['checkChild'](_0x4fda0e,'$text')||_0x4fda0e['is']('element','softBreak')){const _0x7e6725=_0x4fda0e;if('add'==_0x4963f0&&'elementStart'==_0x4cb50d['type']||'remove'==_0x4963f0&&'elementEnd'==_0x4cb50d['type'])continue;if(_0x2882b4&&-0x1==_0x2882b4['type']['indexOf']('Container')){'text'==_0x2882b4['type']&&(_0x2882b4[_0x4963f0]+='\x0a');continue;}let _0x54c783;if(_0x54c783='add'==_0x4963f0?_0x7e6725['nextSibling']&&!this['_schema']['isObject'](_0x7e6725['nextSibling'])?_0x7e6725['nextSibling']:null:_0x7e6725['previousSibling']&&!this['_schema']['isObject'](_0x7e6725['previousSibling'])?_0x7e6725['previousSibling']:null,_0x7e6725['isEmpty']||_0x54c783&&_0x54c783['isEmpty']){const _0x9f316e=_0x54c783&&_0x54c783['isEmpty']?_0x54c783:_0x7e6725;_0x2882b4&&_0x2882b4['type']==_0x4963f0+'EmptyContainer'&&_0x2882b4['element']['name']==_0x9f316e['name']?_0x2882b4['quantity']++:_0x7ed3df['push']({'type':_0x4963f0+'EmptyContainer','element':_0x9f316e,'quantity':0x1});}else _0x7ed3df['push']({'type':_0x4963f0+'Container','element':_0x7e6725});}}}}}['_resolveDescriptionItems'](_0x4883d6){const _0x5b0696=this['_locale'],_0x36db3b=[],_0x417f85=[],_0x59bc7a=[];for(const _0x24a72c of _0x4883d6)switch(_0x24a72c['type']){case'text':if(_0x24a72c['add']=_0x24a72c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x24a72c['remove']=_0x24a72c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x24a72c['add']&&''!=_0x24a72c['remove']){_0x36db3b['push']({'type':'replace','content':o(_0x5b0696,'REPLACE_TEXT',['\x22'+_0x24a72c['remove']+'\x22','\x22'+_0x24a72c['add']+'\x22'])});continue;}if(null!=_0x24a72c['add']['match'](/^ +$/)){_0x36db3b['push']({'type':'insertion','content':o(_0x5b0696,'*Insert:*\x20%0',o(_0x5b0696,'ELEMENT_SPACE',_0x24a72c['add']['length']))});continue;}if(null!=_0x24a72c['remove']['match'](/^ +$/)){_0x36db3b['push']({'type':'deletion','content':o(_0x5b0696,'*Remove:*\x20%0',o(_0x5b0696,'ELEMENT_SPACE',_0x24a72c['remove']['length']))});continue;}if(''!=_0x24a72c['add']){_0x36db3b['push']({'type':'insertion','content':o(_0x5b0696,'*Insert:*\x20%0','\x22'+_0x24a72c['add']+'\x22')});continue;}_0x36db3b['push']({'type':'deletion','content':o(_0x5b0696,'*Remove:*\x20%0','\x22'+_0x24a72c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x36db3b['push']({'type':'insertion','content':o(_0x5b0696,'*Insert:*\x20%0',this['getItemLabel'](_0x24a72c['element'],_0x24a72c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x36db3b['push']({'type':'deletion','content':o(_0x5b0696,'*Remove:*\x20%0',this['getItemLabel'](_0x24a72c['element'],_0x24a72c['quantity']))});continue;case'addContainer':_0x36db3b['push']({'type':'insertion','content':o(_0x5b0696,'*Split:*\x20%0',this['getItemLabel'](_0x24a72c['element'],_0x24a72c['quantity']))});continue;case'removeContainer':_0x36db3b['push']({'type':'deletion','content':o(_0x5b0696,'*Merge:*\x20%0',this['getItemLabel'](_0x24a72c['element'],_0x24a72c['quantity']))});continue;case'addFormat':_0x417f85['push'](_0x24a72c['key']);continue;case'removeFormat':_0x59bc7a['push'](_0x24a72c['key']);continue;default:_0x36db3b['push'](_0x24a72c);}if(_0x417f85['length']){const _0xefdbd5=_0x417f85['map'](_0x1b5202=>this['_attributeLabels']['has'](_0x1b5202)?this['_attributeLabels']['get'](_0x1b5202):_0x1b5202)['join'](',\x20');_0x36db3b['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xefdbd5)});}if(_0x59bc7a['length']){const _0x374725=_0x59bc7a['map'](_0x4817c6=>this['_attributeLabels']['has'](_0x4817c6)?this['_attributeLabels']['get'](_0x4817c6):_0x4817c6)['join'](',\x20');_0x36db3b['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x374725)});}return _0x36db3b;}['_handleCustomCallbackDescription'](_0x16bfa3){for(const _0x200168 of this['_customCallbacks']){const _0x3225c1=_0x200168(_0x16bfa3);if(_0x3225c1&&'type'in _0x3225c1)return _0x3225c1;}}['_handleAttributeSuggestionDescription'](_0x1346f3,_0x3f5f9f){const _0x44ea74=_0x3f5f9f['data'],_0x10dc83=void 0x0===_0x44ea74['newValue']?'removeFormat':'addFormat';_0x1346f3['push']({'type':_0x10dc83,'key':_0x44ea74['key']});}['_handleRenameSuggestionDescription'](_0x44487d,_0x49abfd){_0x44487d['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x49abfd['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2f6671,_0x25b9d5,_0x1e9ebd){if(this['_addDescriptionItems'](_0x2f6671,_0x25b9d5),_0x1e9ebd&&_0x1e9ebd['getFirstRange']()&&!_0x25b9d5['getFirstRange']()['end']['isEqual'](_0x1e9ebd['getFirstRange']()['start'])){const _0x476012=_0x2f6671[_0x2f6671['length']-0x1],_0x20e7b7='insertion'==_0x25b9d5['type']?'add':'remove';_0x476012&&'text'==_0x476012['type']&&(_0x476012[_0x20e7b7]+='\x0a');}}}class E extends _0xd068a0{['afterInit'](){const _0x406001=this['editor'],_0x31e9a4=_0x406001['plugins']['get']('TrackChangesEditing');_0x406001['commands']['get']('showAIAssistant')&&_0x31e9a4['enableCommand']('showAIAssistant');}}class V extends _0xd068a0{['afterInit'](){const _0x3240df=this['editor'],_0x47fa48=_0x3240df['locale'];if(!_0x3240df['plugins']['has']('AlignmentEditing'))return;const _0x1b7eaa=_0x3240df['plugins']['get']('TrackChangesEditing');_0x1b7eaa['enableDefaultAttributesIntegration']('alignment'),_0x1b7eaa['registerBlockAttribute']('alignment'),_0x1b7eaa['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x47fa48,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2da677=this['editor'],_0x7f6ede=_0x2da677['locale'];_0x2da677['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45b4af=>{if('formatBlock'!=_0x45b4af['type'])return;const {data:_0x2ffaef}=_0x45b4af;if(_0x2ffaef&&'alignment'==_0x2ffaef['commandName']){const _0x6427ef=_0x2ffaef['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x7f6ede,'*Format:*\x20%0',function(_0xc8ed87){switch(_0xc8ed87){case'left':return o(_0x7f6ede,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x7f6ede,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x7f6ede,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x7f6ede,'FORMAT_JUSTIFY_TEXT');}}(_0x6427ef))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0xd068a0{['afterInit'](){const _0x543b6e=this['editor'],_0x564313=_0x543b6e['plugins']['get']('TrackChangesEditing'),_0x12e776=_0x543b6e['locale'];for(const _0x4eb0c6 of ti){if(!_0x543b6e['plugins']['has'](_0x4eb0c6))continue;const _0x152f5d=_0x4eb0c6['slice'](0x0,-0x7)['toLowerCase'](),_0xf5dcec='FORMAT_'+_0x152f5d['toUpperCase']();_0x564313['enableDefaultAttributesIntegration'](_0x152f5d),_0x564313['registerInlineAttribute'](_0x152f5d),_0x564313['descriptionFactory']['registerAttributeLabel'](_0x152f5d,o(_0x12e776,_0xf5dcec));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x581fa3=this['editor'],_0x31e466=_0x581fa3['locale'],_0x494ff8=_0x581fa3['plugins']['get']('TrackChangesEditing');function _0x4c2a38(_0x577f3c,_0x1fb369){_0x494ff8['descriptionFactory']['registerDescriptionCallback'](_0x5566de=>{if('formatInline'!=_0x5566de['type'])return;const {data:_0x4a9235}=_0x5566de;return _0x4a9235&&_0x4a9235['commandName']===_0x577f3c?_0x4a9235['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x31e466,'*Format:*\x20%0',_0x1fb369)}:{'type':'format','content':o(_0x31e466,'*Remove\x20format:*\x20%0',_0x1fb369)}:void 0x0;});}_0x4c2a38('bold',o(_0x31e466,'FORMAT_BOLD')),_0x4c2a38('italic',o(_0x31e466,'FORMAT_ITALIC')),_0x4c2a38('underline',o(_0x31e466,'FORMAT_UNDERLINE')),_0x4c2a38('code',o(_0x31e466,'FORMAT_CODE')),_0x4c2a38('strikethrough',o(_0x31e466,'FORMAT_STRIKETHROUGH')),_0x4c2a38('subscript',o(_0x31e466,'FORMAT_SUBSCRIPT')),_0x4c2a38('superscript',o(_0x31e466,'FORMAT_SUPERSCRIPT'));}}class O extends _0xd068a0{['afterInit'](){const _0x17773e=this['editor'],_0x231c65=_0x17773e['locale'];if(!_0x17773e['plugins']['has']('BlockQuoteEditing'))return;const _0x193ef9=_0x17773e['plugins']['get']('TrackChangesEditing'),_0x1e0eba=this['editor']['commands']['get']('blockQuote');_0x193ef9['enableCommand']('blockQuote',(_0x1369b3,_0x15a3d3={})=>{const _0x19a5d7=this['editor']['model']['document']['selection'],_0x15a709=_0x15a3d3&&void 0x0!==_0x15a3d3['forceValue']?_0x15a3d3['forceValue']:!_0x1e0eba['value'];let _0x345615=[];if(_0x15a709){const _0x49ef90=Array['from'](_0x19a5d7['getSelectedBlocks']())['filter'](_0x552a4b=>oo(_0x552a4b)||function(_0xa4f22e,_0x3ebfc7){const _0x210626=_0x3ebfc7['checkChild'](_0xa4f22e['parent'],'blockQuote'),_0x28c4a5=_0x3ebfc7['checkChild'](['$root','blockQuote'],_0xa4f22e);return _0x210626&&_0x28c4a5;}(_0x552a4b,this['editor']['model']['schema']));_0x345615=to(_0x49ef90,_0x17773e['model']);}else{const _0x4d0087=Array['from'](_0x19a5d7['getSelectedBlocks']())['filter'](_0x249164=>oo(_0x249164));_0x345615=to(_0x4d0087,_0x17773e['model']);}_0x17773e['model']['change'](()=>{for(const _0xbd7acb of _0x345615)_0x193ef9['markBlockFormat'](_0xbd7acb,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x15a709}]});});}),_0x193ef9['descriptionFactory']['registerDescriptionCallback'](_0x3165fe=>{const {data:_0x111a0f}=_0x3165fe;if(_0x111a0f&&'blockQuote'==_0x111a0f['commandName']){const _0x5842a3=o(_0x231c65,'ELEMENT_BLOCK_QUOTE');return _0x111a0f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x231c65,'*Set\x20format:*\x20%0',_0x5842a3)}:{'type':'format','content':o(_0x231c65,'*Remove\x20format:*\x20%0',_0x5842a3)};}});}}function oo(_0x33dfbb){return'blockQuote'==_0x33dfbb['parent']['name'];}class G extends _0xd068a0{['afterInit'](){const _0x10f2a9=this['editor'];_0x10f2a9['plugins']['has']('CaseChange')&&(_0x10f2a9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x10f2a9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x10f2a9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0xd068a0{['afterInit'](){const _0x20f1a3=this['editor'];_0x20f1a3['commands']['get']('ckbox')&&_0x20f1a3['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0xd068a0{['afterInit'](){const _0xf97bb2=this['editor'];if(!_0xf97bb2['plugins']['has']('CodeBlock'))return;const _0x37dd5a=_0xf97bb2['plugins']['get']('TrackChangesEditing'),_0x2be259=_0xf97bb2['locale'],_0x5dfcde=_0xf97bb2['config']['get']('codeBlock')['languages'],_0x2228b4=_0xf97bb2['commands']['get']('codeBlock');_0x37dd5a['enableCommand']('indentCodeBlock'),_0x37dd5a['enableCommand']('outdentCodeBlock'),_0x37dd5a['enableCommand']('codeBlock',(_0x404b65,_0x6bdafe={})=>{const _0x5f4a37=_0xf97bb2['model'],_0x29a86b=_0xf97bb2['model']['document']['selection'],_0x468bb0=_0x6bdafe&&void 0x0!==_0x6bdafe['forceValue']?_0x6bdafe['forceValue']:!_0x2228b4['value'];let _0x2b6771;_0x6bdafe['language']||(_0x6bdafe['language']=_0x5dfcde[0x0]['language']),_0x2b6771=_0x468bb0?Array['from'](_0x29a86b['getSelectedBlocks']())['filter'](_0x4ab9e0=>eo(_0x4ab9e0)||function(_0xc3c3ed,_0x4cd15d){if(_0xc3c3ed['is']('rootElement')||_0x4cd15d['isLimit'](_0xc3c3ed))return!0x1;return _0x4cd15d['checkChild'](_0xc3c3ed['parent'],'codeBlock');}(_0x4ab9e0,_0x5f4a37['schema'])):Array['from'](_0x29a86b['getSelectedBlocks']())['filter'](_0x534d9e=>eo(_0x534d9e));const _0x11059b=to(_0x2b6771,_0x5f4a37);_0x5f4a37['change'](()=>{for(const _0x168c18 of _0x11059b)_0x37dd5a['markBlockFormat'](_0x168c18,{'commandName':'codeBlock','commandParams':[{..._0x6bdafe,'forceValue':_0x468bb0}],'formatGroupId':'blockName'});});}),(_0x37dd5a['descriptionFactory']['registerElementLabel']('codeBlock',_0x4d1afc=>o(_0x2be259,'ELEMENT_CODE_BLOCK',_0x4d1afc)),_0x37dd5a['descriptionFactory']['registerDescriptionCallback'](_0x1baab8=>{if('formatBlock'!=_0x1baab8['type'])return;const _0x9cc6fe=_0x2be259['t'],{data:_0x5733bf}=_0x1baab8;if(!_0x5733bf||'codeBlock'!=_0x5733bf['commandName'])return;const _0x18f236=_0x5733bf['commandParams'][0x0]['language'],_0x1f7060=_0x9cc6fe(_0x5dfcde['find'](_0x2b2553=>_0x2b2553['language']===_0x18f236)['label'])['toLowerCase']();return _0x5733bf['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2be259,'*Set\x20format:*\x20%0',o(_0x2be259,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1f7060+')')}:{'type':'format','content':o(_0x2be259,'*Remove\x20format:*\x20%0',o(_0x2be259,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x230f52){return'codeBlock'==_0x230f52['name'];}class H extends _0xd068a0{['afterInit'](){const _0xc27f52=this['editor'];if(!_0xc27f52['plugins']['has']('CommentsEditing'))return;_0xc27f52['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x37be95,_0xbe4973,_0x51b047){const _0x5a0265=[];for(const _0x2af255 of _0xbe4973['getItems']())_0x2af255['hasAttribute'](_0x37be95)&&_0x5a0265['push'](_0x51b047['createRangeOn'](_0x2af255));return _0x5a0265;}function _e(_0x50175c,_0x59334b,{showActiveMarker:_0x1d1597=!0x0}={}){const _0x339a18=_0x50175c['plugins']['get']('TrackChangesEditing');return(_0xb84a04,_0x473a40,_0x4f3c14)=>{if(!_0x4f3c14['consumable']['test'](_0x473a40['markerRange'],_0xb84a04['name']))return;const _0x211755=_0x473a40['markerRange']['getWalker'](),_0x16ba28=_0x473a40['markerRange']['start'],_0x1a0779=_0x50175c['model']['schema'];let _0x19d076=null,_0xd5ecd3=null,_0x4fa618=!0x1,_0xd59911=!0x1;for(const _0x56494f of _0x211755){const _0x42cc3b=_0x56494f['item'];_0x4fa618=_0x4fa618||_0x1a0779['isContent'](_0x42cc3b);const _0x4ebeec=_0x4f3c14['mapper']['toViewElement'](_0x42cc3b);if(_0x4ebeec&&_0x4ebeec['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x56494f['type']&&(_0x1a0779['isBlock'](_0x42cc3b)&&!_0x1a0779['isLimit'](_0x42cc3b)&&(_0x42cc3b['nextSibling']||_0x16ba28['isAtEnd']?_0x19d076&&_0x19d076['parent']==_0x42cc3b||(_0x19d076=_0x42cc3b,_0x4cf18f(_0x56494f['previousPosition']),_0xd59911=!0x0):_0xd5ecd3=_0xd5ecd3||_0x56494f['previousPosition']));}function _0x4cf18f(_0x1300ec){const _0x19bcb8=_0x4f3c14['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x59334b}),_0x25da7e=_0x4f3c14['mapper']['toViewPosition'](_0x1300ec);_0x1d1597&&_0x339a18['activeMarkers']['includes'](_0x473a40['markerName'])&&_0x4f3c14['writer']['addClass']('ck-suggestion-marker--active',_0x19bcb8),_0x4f3c14['writer']['insert'](_0x25da7e,_0x19bcb8),_0x4f3c14['mapper']['bindElementToMarker'](_0x19bcb8,_0x473a40['markerName']);}_0x4fa618||_0xd59911||!_0xd5ecd3||_0x4cf18f(_0xd5ecd3);};}class q extends _0xd068a0{static get['requires'](){return[_0x767f14];}['init'](){const _0xa0aa78=this['editor'],_0x1a6664=_0xa0aa78['plugins']['get']('TrackChangesEditing');_0x1a6664['enableCommand']('delete');const _0x380b23=_0xa0aa78['commands']['get']('deleteForward');_0x1a6664['enableCommand']('deleteForward',(_0x5beeff,_0x30fff3={})=>{const _0x3852ec=_0xa0aa78['model']['createSelection'](_0xa0aa78['model']['document']['selection']);_0x3852ec['isCollapsed']&&_0xa0aa78['model']['modifySelection'](_0x3852ec,{'direction':'forward','unit':_0x30fff3['unit']});const _0x4358ab=_0x3852ec['getFirstRange'](),_0x5900a6=_0x2b023b['fromRange'](_0x4358ab);let _0x320a9b;_0x5beeff(_0x30fff3),_0x320a9b='$graveyard'==_0x5900a6['root']['rootName']?_0xa0aa78['model']['createRange'](_0x4358ab['start']):_0xa0aa78['model']['createRange'](_0x5900a6['start'],_0x5900a6['end']),_0x5900a6['detach'](),_0xa0aa78['model']['enqueueChange'](_0x380b23['buffer']['batch'],_0x596c0c=>{_0x380b23['buffer']['lock'](),_0x596c0c['setSelection'](_0x596c0c['createRange'](_0x320a9b['end'])),_0x380b23['buffer']['unlock']();});}),_0xa0aa78['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0xa0aa78,'merge'),{'priority':'high'}),_0xa0aa78['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4e928e,_0x7053a3,_0x5ebd49)=>{_0x5ebd49['options']['showSuggestionHighlights']&&_e(_0xa0aa78,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4e928e,_0x7053a3,_0x5ebd49);},{'priority':'high'}),_0xa0aa78['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x224696,_0x48849a,_0x1adc68)=>{const _0x23b5d7=_0x1adc68['mapper']['markerNameToElements'](_0x48849a['markerName']);if(_0x23b5d7){for(const _0x5475a5 of _0x23b5d7)_0x5475a5['is']('uiElement')&&(_0x1adc68['mapper']['unbindElementFromMarkerName'](_0x5475a5,_0x48849a['markerName']),_0x1adc68['writer']['remove'](_0x5475a5));}},{'priority':'high'});}}class z extends _0xd068a0{['afterInit'](){const _0x4351ca=this['editor'];if(!_0x4351ca['plugins']['has']('ListEditing'))return;const _0x13700e=_0x4351ca['locale'],_0x59eacc=_0x4351ca['plugins']['get']('TrackChangesEditing'),_0x5855cb=_0x4351ca['plugins']['has']('TodoListEditing'),_0x461b7b=!!_0x4351ca['config']['get']('list.multiBlock');function _0x4ccdeb(_0x44a5f7){return{'type':'format','content':''+o(_0x13700e,'*Set\x20format:*\x20%0',_0x44a5f7)};}function _0x48bc3d(_0x133099){return{'type':'format','content':''+o(_0x13700e,'*Remove\x20format:*\x20%0',_0x133099)};}_0x59eacc['enableDefaultAttributesIntegration']('numberedList'),_0x59eacc['enableDefaultAttributesIntegration']('bulletedList'),_0x59eacc['enableDefaultAttributesIntegration']('customNumberedList'),_0x59eacc['enableDefaultAttributesIntegration']('customBulletedList'),_0x59eacc['enableDefaultAttributesIntegration']('indentList'),_0x59eacc['enableDefaultAttributesIntegration']('outdentList'),_0x59eacc['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x59eacc['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x59eacc['registerBlockAttribute']('listItemId'),_0x59eacc['registerBlockAttribute']('listType'),_0x59eacc['registerBlockAttribute']('listIndent'),_0x461b7b&&(_0x59eacc['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x59eacc['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5855cb&&(_0x59eacc['enableDefaultAttributesIntegration']('todoList'),_0x59eacc['enableDefaultAttributesIntegration']('checkTodoList'),_0x59eacc['registerBlockAttribute']('todoListChecked'),_0x59eacc['descriptionFactory']['registerDescriptionCallback'](_0x4a506d=>{const {data:_0x913ce8}=_0x4a506d;if(_0x913ce8&&'todoListChecked'==_0x913ce8['key'])return{'type':'format','content':_0x913ce8['newValue']?o(_0x13700e,'*Check\x20item*'):o(_0x13700e,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x55dab2=>{if(_0x55dab2['batch']['isUndo'])return!0x1;let _0x22723f=!0x1;const _0x5217dd=_0x59eacc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x166ac6=>'todoListChecked'===_0x59eacc['_getAttributeKey'](_0x166ac6));for(const _0x187e29 of _0x5217dd){'todo'!=_0x187e29['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x59eacc['_findSuggestions'](_0x187e29['getFirstRange'](),'attribute')['find'](_0x3509e3=>'listType'===_0x59eacc['_getAttributeKey'](_0x3509e3['suggestion']))||(_0x55dab2['removeMarker'](_0x187e29['getFirstMarker']()),_0x22723f=!0x0));}return _0x22723f;})),_0x59eacc['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x13700e,'FORMAT_INDENT'));const _0x491918={'type':'format','content':''};_0x59eacc['descriptionFactory']['registerDescriptionCallback'](_0x59865=>{const {data:_0x36eabe}=_0x59865;if(!_0x36eabe||'listType'!=_0x36eabe['key'])return;let _0x391245=_0x59865['head'];for(;_0x391245;){if(_0x391245['data']&&(('listStyle'==_0x391245['data']['key']||'listMarkerStyle'==_0x391245['data']['key'])&&(_0x391245['data']['newValue']&&'default'!=_0x391245['data']['newValue']||'default'!=_0x391245['data']['oldValue']&&!_0x36eabe['newValue'])||!_0x461b7b&&_0x391245['data']['key']==m))return _0x491918;_0x391245=_0x391245['next'];}if(null==_0x36eabe['newValue'])switch(_0x36eabe['oldValue']){case'bulleted':return _0x48bc3d(o(_0x13700e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x48bc3d(o(_0x13700e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x48bc3d(o(_0x13700e,'ELEMENT_TODO_LIST'));}switch(_0x36eabe['newValue']){case'bulleted':return _0x4ccdeb(o(_0x13700e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4ccdeb(o(_0x13700e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4ccdeb(o(_0x13700e,'ELEMENT_TODO_LIST'));}}),_0x59eacc['descriptionFactory']['registerDescriptionCallback'](_0x1d2f1f=>{const {data:_0x5b426b}=_0x1d2f1f;if(_0x5b426b&&'listIndent'==_0x5b426b['key'])return null==_0x5b426b['newValue']||null==_0x5b426b['oldValue']&&0x0==_0x5b426b['newValue']?_0x491918:void 0x0;}),_0x59eacc['descriptionFactory']['registerDescriptionCallback'](_0x58704e=>{if('attribute'!=_0x58704e['type'])return;const {data:_0x129e09}=_0x58704e;if(!_0x129e09||'listItemId'!=_0x129e09['key'])return;const _0x383181=le(_0x58704e);return'newValue'==_0x383181?{'type':'format','content':o(_0x13700e,'*Merge:*\x20list\x20item')}:'oldValue'==_0x383181?{'type':'format','content':o(_0x13700e,'*Split:*\x20list\x20item')}:_0x491918;}),_0x4351ca['model']['document']['registerPostFixer'](_0x1764f9=>this['listItemIdFixer'](_0x1764f9)),_0x4351ca['model']['document']['registerPostFixer'](_0x55f06a=>this['noTrackChangesFixer'](_0x55f06a)),_0x4351ca['model']['document']['registerPostFixer'](_0x211dad=>this['assureChains'](_0x211dad)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x43fbb7){if(_0x43fbb7['batch']['isUndo']||!_0x43fbb7['batch']['isLocal'])return!0x1;let _0x1898b6=!0x1;const _0x545d5d=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ae196=>_0x3ae196['data']&&'listItemId'==_0x3ae196['data']['key'])['filter'](_0x344511=>_0x344511['data']['newValue']&&_0x344511['data']['oldValue']);for(const _0x2334cf of _0x545d5d)le(_0x2334cf)||(_0x43fbb7['removeMarker'](_0x2334cf['getFirstMarker']()),_0x1898b6=!0x0);return _0x1898b6;}['noTrackChangesFixer'](_0x178fde){if(_0x178fde['batch']['isUndo']||!_0x178fde['batch']['isLocal'])return!0x1;const _0x53ac8b=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x53ac8b['trackChangesCommand']['value'])return!0x1;let _0x166dce=!0x1;const _0xa250b8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x503b95=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x53a0c0=>'attribute'==_0x53a0c0['type'])['filter'](_0x39b0c9=>_0xa250b8['includes'](_0x39b0c9['attributeKey']));if(0x0==_0x503b95['length'])return _0x166dce;for(const _0x259964 of _0x503b95){const _0x41a91a=_0x53ac8b['_findSuggestions'](_0x259964['range'],'attribute')['filter'](_0x262d42=>!_0x262d42['meta']['isNextTo'])['map'](_0xac14ee=>_0xac14ee['suggestion'])['filter'](_0x36841e=>{const _0x215c25=_0x53ac8b['_getAttributeKey'](_0x36841e);return _0xa250b8['includes'](_0x215c25);});if(_0x41a91a['length']){for(const _0x3d4afa of _0x41a91a)_0x178fde['removeMarker'](_0x3d4afa['getFirstMarker']());_0x166dce=!0x0;}}return _0x166dce;}['assureChains'](_0x2ded71){if(_0x2ded71['batch']['isUndo']||!_0x2ded71['batch']['isLocal'])return!0x1;const _0x3ea1de=this['editor']['plugins']['get']('TrackChangesEditing');let _0x4ee9c4=!0x1;const _0x2676f5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x21af54 of _0x3ea1de['getSuggestions']({'skipNotAttached':!0x0})){const _0x5df9cb=_0x3ea1de['_findSuggestions'](_0x21af54['getFirstRange'](),'attribute')['map'](_0x197092=>_0x197092['suggestion'])['filter'](_0x5cb31a=>_0x5cb31a['data']&&_0x2676f5['includes'](_0x5cb31a['data']['key']));if(!_0x5df9cb['length'])continue;const _0x19a214=_0x5df9cb[0x0]['head']['attributes']['groupId'];if(!_0x5df9cb['every'](_0x2582a5=>_0x2582a5['attributes']['groupId']===_0x19a214)){for(const _0x15f10f of _0x5df9cb)_0x4522b2(_0x15f10f,_0x19a214)&&(_0x4ee9c4=!0x0);}}return _0x4ee9c4;function _0x4e8013(_0x131d6c,_0x4bfeb0){for(const _0x36f98a of _0x3ea1de['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x275257=>'attribute'==_0x275257['type']&&_0x275257['attributes']['groupId']==_0x131d6c))_0x36f98a['setAttribute']('groupId',_0x4bfeb0);}function _0x4522b2(_0x3da518,_0xf5f2ed){let _0x1f8736=_0x3da518['head'],_0xce4613=!0x1;for(;_0x1f8736;)_0x1f8736['attributes']['groupId']!=_0xf5f2ed&&(_0x4e8013(_0x1f8736['attributes']['groupId'],_0xf5f2ed),_0x1f8736['setAttribute']('groupId',_0xf5f2ed),_0xce4613=!0x0),_0x1f8736=_0x1f8736['next'];return _0xce4613;}}['_supportLegacySuggestions'](){const _0x263980=this['editor'],_0x1ed212=_0x263980['locale'],_0x284561=_0x263980['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x284561['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5ea3f4,_0x3fab3d){const _0x1c4a25=[];for(let _0x360b37 of _0x5ea3f4)_0x360b37['start']['nodeAfter']===_0x360b37['end']['parent']&&(_0x360b37=_0x263980['model']['createRange'](_0x263980['model']['createPositionAt'](_0x360b37['start']['nodeAfter'],0x0))),_0x1c4a25['push'](_0x360b37);_0x263980['model']['change'](_0x3a2f49=>{const _0x334de1=_0x263980['model']['document']['selection'],_0x29a7d8=Array['from'](_0x334de1['getRanges']())['map'](_0x1b8179=>_0x2b023b['fromRange'](_0x1b8179));_0x3a2f49['setSelection'](_0x1c4a25),_0x263980['commands']['get'](_0x3fab3d['commandName'])['refresh'](),_0x3fab3d['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x263980['execute'](_0x3fab3d['commandName'],..._0x3fab3d['commandParams']),_0x3a2f49['setSelection'](_0x29a7d8);for(const _0x737d01 of _0x29a7d8)_0x737d01['detach']();});}),_0x284561['descriptionFactory']['registerElementLabel'](function(_0x5e15db){const _0x98cb63=!_0x263980['model']['schema']['isObject'](_0x5e15db),_0x2c75b9=_0x5e15db['previousSibling'],_0x5c7220=_0x5e15db['nextSibling'],_0x23738e=_0x5e15db['getAttribute']('listItemId'),_0xb09284=!_0x2c75b9||_0x2c75b9['getAttribute']('listItemId')!==_0x23738e,_0x280ba3=!_0x5c7220||_0x5c7220['getAttribute']('listItemId')!==_0x23738e;return _0x98cb63&&Boolean(_0x23738e)&&_0xb09284&&_0x280ba3;},_0x24d649=>o(_0x1ed212,'ELEMENT_LIST_ITEM',_0x24d649));}['_registerLegacyDescription'](){const _0x2dae31=this['editor'],_0x4157e4=_0x2dae31['locale'];function _0x1154d5(_0x23959f){const _0x39f084=_0x2dae31['commands']['get']('bulletedList')['value'],_0x2f7473=_0x2dae31['commands']['get']('numberedList')['value'];return'numberedList'===_0x23959f?_0x39f084:_0x2f7473;}_0x2dae31['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5d8933){if('formatBlock'!=_0x5d8933['type'])return;const {data:_0x13f790}=_0x5d8933;if(!_0x13f790)return;let _0x5eaefa,_0x4dfecd,_0xcb5732,_0xd47d98;switch(_0x13f790['commandName']){case'bulletedList':_0xcb5732=_0x13f790['commandParams'][0x0]['forceValue'],_0xd47d98=_0x1154d5(_0x13f790['commandName']),_0x5eaefa=_0xcb5732?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xd47d98&&_0x2dae31['config']['get']('list.multiBlock')||(_0x5eaefa='*Change\x20to:*\x20%0'),_0x4dfecd={'type':'format','content':o(_0x4157e4,_0x5eaefa,o(_0x4157e4,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xcb5732=_0x13f790['commandParams'][0x0]['forceValue'],_0xd47d98=_0x1154d5(_0x13f790['commandName']),_0x5eaefa=_0xcb5732?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xd47d98&&_0x2dae31['config']['get']('list.multiBlock')||(_0x5eaefa='*Change\x20to:*\x20%0'),_0x4dfecd={'type':'format','content':o(_0x4157e4,_0x5eaefa,o(_0x4157e4,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5eaefa='*Indent:*\x20%0',_0x4dfecd={'type':'format','content':o(_0x4157e4,_0x5eaefa,o(_0x4157e4,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5eaefa=function(_0x4cb208){const _0x598c3b=_0x4cb208['getFirstRange']();let _0x4c3f03=_0x598c3b['start']['nodeAfter'];for(;_0x4c3f03&&_0x598c3b['containsItem'](_0x4c3f03);){if(_0x4c3f03['getAttribute']('listIndent')>0x0)return!0x1;_0x4c3f03=_0x4c3f03['nextSibling'];}return!0x0;}(_0x5d8933)?o(_0x4157e4,'*Format:*\x20remove\x20from\x20%0',o(_0x4157e4,function(_0x5e2bdd){return'ELEMENT_'+_0x5e2bdd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5d8933))):o(_0x4157e4,'*Outdent:*\x20%0',o(_0x4157e4,'ELEMENT_LIST_ITEM')),_0x4dfecd={'type':'format','content':_0x5eaefa};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x13f790['multipleBlocks']&&(_0x5eaefa='*Merge:*\x20%0',_0x4dfecd={'type':'deletion','content':o(_0x4157e4,_0x5eaefa,o(_0x4157e4,'ELEMENT_LIST_ITEM'))});}return _0x4dfecd;});}}function le(_0x22b345){let _0x1589fb=_0x22b345['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1589fb;){const _0x6008de=_0x1589fb['getAttribute']('listItemId');if(!_0x6008de)return!0x1;if(_0x6008de==_0x22b345['data']['newValue'])return'newValue';if(_0x6008de==_0x22b345['data']['oldValue'])return'oldValue';_0x1589fb=_0x1589fb['previousSibling'];}return!0x1;}class ue extends _0xd068a0{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x368273=this['editor']['config']['get']('list.properties'),_0xe3fd6=this['editor']['plugins']['get']('TrackChangesEditing');_0x368273['styles']&&(_0xe3fd6['enableDefaultAttributesIntegration']('listStyle'),_0xe3fd6['registerBlockAttribute']('listStyle')),_0x368273['reversed']&&(_0xe3fd6['enableDefaultAttributesIntegration']('listReversed'),_0xe3fd6['registerBlockAttribute']('listReversed')),_0x368273['startIndex']&&(_0xe3fd6['enableDefaultAttributesIntegration']('listStart'),_0xe3fd6['registerBlockAttribute']('listStart'));const _0x1cf604={'type':'format','content':''};_0xe3fd6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x48e37e=this['editor']['locale'];_0xe3fd6['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x48e37e,'FORMAT_LIST_REVERSED')),_0xe3fd6['descriptionFactory']['registerDescriptionCallback'](_0x33cb4c=>{const {data:_0x2d358e}=_0x33cb4c;if(_0x2d358e&&'listReversed'==_0x2d358e['key'])return null==_0x2d358e['newValue']||0x0==_0x2d358e['newValue']&&null==_0x2d358e['oldValue']?_0x1cf604:void 0x0;}),_0xe3fd6['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x48e37e,'FORMAT_LIST_START')),_0xe3fd6['descriptionFactory']['registerDescriptionCallback'](_0x2fac18=>{const {data:_0x513ae9}=_0x2fac18;if(_0x513ae9&&'listStart'==_0x513ae9['key'])return null==_0x513ae9['newValue']||0x1==_0x513ae9['newValue']&&null==_0x513ae9['oldValue']?_0x1cf604:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4903b9=>{if(_0x4903b9['batch']['isUndo'])return!0x1;let _0x5ed151=!0x1;const _0x5a3839=_0xe3fd6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc8f825=>{const _0x20dec6=_0xe3fd6['_getAttributeKey'](_0xc8f825);return'listStart'==_0x20dec6||'listReversed'==_0x20dec6;});for(const _0x3feb07 of _0x5a3839){const _0x31002f=_0x3feb07['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x31002f||'customNumbered'==_0x31002f)continue;_0xe3fd6['_findSuggestions'](_0x3feb07['getFirstRange'](),'attribute')['find'](_0x4267ff=>'listType'==_0xe3fd6['_getAttributeKey'](_0x4267ff['suggestion']))||(_0x4903b9['removeMarker'](_0x3feb07['getFirstMarker']()),_0x5ed151=!0x0);}return _0x5ed151;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xf1951c){const _0x5abeee=this['editor']['locale'],{data:_0x45cf97}=_0xf1951c,_0x47f8c1={'type':'format','content':''};if(!_0x45cf97||'listStyle'!=_0x45cf97['key'])return;if(!_0x45cf97['oldValue'])return'default'==_0x45cf97['newValue']?_0x47f8c1:{'type':'format','content':''+o(_0x5abeee,'*Set\x20format:*\x20%0',o(_0x5abeee,this['_getTranslationKeyForListStyle'](_0x45cf97['newValue'])))};if(!_0x45cf97['newValue']){if('default'==_0x45cf97['oldValue'])return _0x47f8c1;let _0x29d342=_0xf1951c['head'];for(;_0x29d342;){if(_0x29d342['data']&&'listType'==_0x29d342['data']['key']&&_0x29d342['data']['newValue'])return _0x47f8c1;_0x29d342=_0x29d342['next'];}return{'type':'format','content':''+o(_0x5abeee,'*Remove\x20format:*\x20%0',o(_0x5abeee,this['_getTranslationKeyForListStyle'](_0x45cf97['oldValue'])))};}if('default'!=_0x45cf97['newValue'])return{'type':'format','content':''+o(_0x5abeee,'*Set\x20format:*\x20%0',o(_0x5abeee,this['_getTranslationKeyForListStyle'](_0x45cf97['newValue'])))};let _0x1874ea=_0xf1951c['head'];for(;_0x1874ea;){if(_0x1874ea['data']&&'listType'==_0x1874ea['data']['key']&&_0x1874ea['data']['newValue']&&_0x1874ea['data']['oldValue'])return _0x47f8c1;_0x1874ea=_0x1874ea['next'];}return{'type':'format','content':o(_0x5abeee,'*Set\x20format:*\x20%0',o(_0x5abeee,'ELEMENT_'+_0xf1951c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3cefb6=this['editor'],_0x5dd3df=_0x3cefb6['locale'];_0x3cefb6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2da662=>{if('formatBlock'!=_0x2da662['type'])return;const {data:_0x5c5a31}=_0x2da662;if(!_0x5c5a31)return;let _0x51d219,_0x3ac78a;switch(_0x5c5a31['commandName']){case'listStyle':_0x51d219='*Change\x20to:*\x20%0',_0x3ac78a={'type':'format','content':o(_0x5dd3df,_0x51d219,o(_0x5dd3df,this['_getTranslationKeyForListStyle'](_0x5c5a31['commandParams'][0x0]['type'])))};break;case'listReversed':_0x51d219=_0x5c5a31['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3ac78a={'type':'format','content':o(_0x5dd3df,_0x51d219)};break;case'listStart':_0x51d219='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3ac78a={'type':'format','content':o(_0x5dd3df,_0x51d219,_0x5c5a31['commandParams'][0x0]['startIndex'])};}return _0x3ac78a;});}['_getTranslationKeyForListStyle'](_0x2dee18){return'ELEMENT_'+function(_0x4953ab){if(pe['includes'](_0x4953ab))return'bulleted';if(ye['includes'](_0x4953ab))return'numbered';return null;}(_0x2dee18)['toUpperCase']()+'_LIST_'+_0x2dee18['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0xd068a0{static get['requires'](){return[_0x2e881a];}['init'](){const _0x1ef9e4=this['editor'],_0x67bdc3=_0x1ef9e4['plugins']['get']('TrackChangesEditing'),_0x1adfd6=_0x1ef9e4['commands']['get']('enter');_0x67bdc3['enableCommand']('enter',()=>{_0x1ef9e4['model']['change'](_0x5161b5=>{const _0x42ff3e=_0x1ef9e4['model']['document']['selection'],_0xaac2fd=_0x42ff3e['getFirstPosition'](),_0x3591fd=_0x2b023b['fromRange'](_0x42ff3e['getFirstRange']());if(_0x1adfd6['enterBlock'](_0x5161b5)){const _0x3f32e8=_0x1ef9e4['model']['createPositionAt'](_0xaac2fd['parent']['nextSibling'],0x0),_0x1b4baa=_0x5161b5['createRange'](_0xaac2fd,_0x3f32e8);_0x67bdc3['markInsertion'](_0x1b4baa);}else _0x5161b5['setSelection'](_0x5161b5['createRange'](_0x3591fd['end']));_0x3591fd['detach'](),_0x1adfd6['fire']('afterExecute',{'writer':_0x5161b5});});}),_0x1ef9e4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x1ef9e4,'split'),{'priority':'high'}),_0x1ef9e4['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x38616f,_0x4f7857,_0x4cdfd0)=>{const _0x3319b0=_0x4cdfd0['mapper']['markerNameToElements'](_0x4f7857['markerName']);if(_0x3319b0){for(const _0x2442dd of _0x3319b0)_0x2442dd['hasClass']('ck-suggestion-marker-split')&&(_0x4cdfd0['mapper']['unbindElementFromMarkerName'](_0x2442dd,_0x4f7857['markerName']),_0x4cdfd0['writer']['remove'](_0x2442dd));}},{'priority':'high'}),_0x1ef9e4['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5d96ce,_0x120243,_0x404e52)=>{_0x404e52['options']['showSuggestionHighlights']&&_e(_0x1ef9e4,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5d96ce,_0x120243,_0x404e52);},{'priority':'high'});}}class J extends _0xd068a0{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x9d30a5=this['editor']['plugins']['get']('TrackChangesEditing');_0x9d30a5['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x9d30a5['enableCommand']('findNext'),_0x9d30a5['enableCommand']('findPrevious'),_0x9d30a5['enableCommand']('replace'),_0x9d30a5['enableCommand']('replaceAll');}['handleFindCommand'](_0x36e4eb,_0x5db31,_0x110387={}){const _0x48d727=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x36e4eb(_0x186346=>('string'==typeof _0x5db31?_0x48d727['findByTextCallback'](_0x5db31,_0x110387):_0x5db31)(_0x186346)['filter'](_0x5a4af4=>!0x1===this['_isInDeletionRange'](_0x5a4af4,_0x186346['item'])),_0x110387);}['_isInDeletionRange'](_0x501d34,_0x428e1a){const _0x4a971e=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x428e1a,_0x501d34['start']),this['editor']['model']['createPositionAt'](_0x428e1a,_0x501d34['end']));for(const _0x4b858e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4a971e['getIntersection'](_0x4b858e['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 _0xd068a0{['afterInit'](){const _0x483150=this['editor']['locale'],_0x35574c=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x14220c,commandName:_0x78bd35}of ro)this['editor']['plugins']['has'](_0x14220c)&&(_0x35574c['enableDefaultAttributesIntegration'](_0x78bd35),_0x35574c['registerInlineAttribute'](_0x78bd35));_0x483150['t'],_0x35574c['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x483150,'FORMAT_FONT_SIZE')),_0x35574c['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x483150,'FORMAT_FONT_FAMILY')),_0x35574c['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x483150,'FORMAT_FONT_COLOR')),_0x35574c['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x483150,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3effb6=this['editor'],_0x126515=_0x3effb6['locale'];_0x3effb6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x160d78=>{const _0x3408f5=_0x126515['t'];if('formatInline'!=_0x160d78['type'])return;const {data:_0x2aa536}=_0x160d78;if(null!=_0x2aa536){if('fontSize'==_0x2aa536['commandName']){const _0x3d3630=_0x2aa536['commandParams'][0x0]['value'];if(_0x3d3630){const _0x2c3d37=_0x3408f5(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2e1155=>_0x2e1155['model']==_0x3d3630)['title'])['toLowerCase']();return{'type':'format','content':o(_0x126515,'*Set\x20font\x20size:*\x20%0',_0x2c3d37)};}return{'type':'format','content':o(_0x126515,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2aa536['commandName']){const _0x5afc29=_0x2aa536['commandParams'][0x0]['value'];return _0x5afc29?{'type':'format','content':o(_0x126515,'*Set\x20font\x20family:*\x20%0',_0x5afc29)}:{'type':'format','content':o(_0x126515,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2aa536['commandName']){const _0x3bbc70=_0x2aa536['commandParams'][0x0]['value'];if(_0x3bbc70){const _0x12479c=_0x52bd70(this['editor']['config']['get']('fontColor.colors'))['find'](_0x222fc9=>_0x222fc9['model']==_0x3bbc70);let _0x28180c=_0x3bbc70,_0x23e1ab='';return _0x12479c&&(_0x28180c=_0x12479c['label'],_0x23e1ab=_0x3408f5(_0x28180c)['toLowerCase']()),{'type':'format','content':o(_0x126515,'*Set\x20font\x20color:*\x20%0',_0x23e1ab)['trim'](),'color':{'value':_0x3bbc70,'title':_0x23e1ab||_0x28180c}};}return{'type':'format','content':o(_0x126515,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2aa536['commandName']){const _0x43a5e1=_0x2aa536['commandParams'][0x0]['value'];if(_0x43a5e1){const _0x2f540f=_0x52bd70(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x34f4ea=>_0x34f4ea['model']==_0x43a5e1);let _0x187f62=_0x43a5e1,_0x4cb481='';return _0x2f540f&&(_0x187f62=_0x2f540f['label'],_0x4cb481=_0x3408f5(_0x187f62)['toLowerCase']()),{'type':'format','content':o(_0x126515,'*Set\x20font\x20background\x20color:*\x20%0',_0x4cb481)['trim'](),'color':{'value':_0x43a5e1,'title':_0x4cb481||_0x187f62}};}return{'type':'format','content':o(_0x126515,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0xd068a0{['afterInit'](){const _0xcb1dec=this['editor'],_0x125ee8=_0xcb1dec['plugins']['get']('TrackChangesEditing'),_0x40590d=_0xcb1dec['commands']['get']('copyFormat'),_0x410cca=_0xcb1dec['commands']['get']('pasteFormat');_0x40590d&&_0x410cca&&(_0x125ee8['enableDefaultAttributesIntegration']('pasteFormat'),_0x125ee8['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5a5436=this['editor'],_0x37c0b3=_0x5a5436['locale'];_0x5a5436['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a05d5=>{if('formatBlock'!=_0x1a05d5['type']&&'formatInline'!=_0x1a05d5['type'])return;const {data:_0x5c9030}=_0x1a05d5;if(_0x5c9030&&'pasteFormat'===_0x5c9030['commandName']){const _0x1a5742=[],_0x40d8f2=_0x5c9030['commandParams'][0x0];for(const [_0xdf1926,_0xf5e1be]of Object['entries'](_0x40d8f2))_0x1a5742['push'](so(_0x5a5436,_0xdf1926,_0xf5e1be));return _0x1a5742['length']?{'type':'format','content':o(_0x37c0b3,'*Set\x20format\x20to:*\x20%0',_0x1a5742['join'](',\x20'))}:{'type':'format','content':o(_0x37c0b3,'*Remove\x20all\x20formatting*')};}});}}function so(_0x347d6d,_0x38f8ad,_0x50d680){const _0x1caa81=_0x347d6d['locale']['t'],_0x34c403=_0x38f8ad['split'](/(?=[A-Z])/)['join']('\x20'),_0x3860f3=_0x1caa81(_0x34c403['charAt'](0x0)['toUpperCase']()+_0x34c403['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x50d680)return _0x3860f3;if('fontColor'===_0x38f8ad||'fontBackgroundColor'===_0x38f8ad){const _0x485123=_0x52bd70(_0x347d6d['config']['get']('fontColor.colors'))['find'](_0x1fe38e=>_0x1fe38e['model']==_0x50d680);return _0x3860f3+'\x20('+(_0x485123?_0x1caa81(_0x485123['label'])['toLowerCase']():_0x50d680)+')';}if('fontSize'===_0x38f8ad&&isNaN(parseFloat(_0x50d680))){const _0x3da1c2=_0x347d6d['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x347d6d['config']['get']('fontSize.options'))['find'](_0x861b2e=>_0x861b2e['model']==_0x50d680);return _0x3860f3+'\x20('+(_0x3da1c2?_0x1caa81(_0x3da1c2['title'])['toLowerCase']():_0x50d680)+')';}return _0x3860f3+'\x20('+_0x50d680+')';}class Y extends _0xd068a0{['_headingOptions'];['afterInit'](){const _0x1647c7=this['editor'];if(!_0x1647c7['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1647c7['config']['get']('heading.options');const _0x4072ef=_0x1647c7['locale'],_0x5163ba=_0x1647c7['plugins']['get']('TrackChangesEditing');_0x5163ba['enableDefaultAttributesIntegration']('heading');for(const _0x17c4e8 of this['_headingOptions'])'paragraph'!=_0x17c4e8['model']&&_0x5163ba['descriptionFactory']['registerElementLabel'](_0x17c4e8['model'],_0x19b80c=>{const _0x12f509=this['_getHeadingLevel'](_0x17c4e8['model']);return null!==_0x12f509?_0x273e67(_0x19b80c,_0x12f509):_0xdd927b(_0x19b80c,_0x17c4e8['title']);});function _0x273e67(_0x285310,_0x37ed34){return o(_0x4072ef,'ELEMENT_HEADING',[_0x285310,_0x37ed34]);}function _0xdd927b(_0x495634,_0x58e1aa){return o(_0x4072ef,'ELEMENT_HEADING_CUSTOM',[_0x495634,_0x58e1aa]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x128f2f=this['editor'],_0x3de1c6=_0x128f2f['locale'];function _0x667e66(_0x35150f,_0xffcdb7){return o(_0x3de1c6,'ELEMENT_HEADING_CUSTOM',[_0x35150f,_0xffcdb7]);}_0x128f2f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cb699=>{if('formatBlock'!=_0x2cb699['type'])return;const {data:_0xfae7f7}=_0x2cb699;if(_0xfae7f7&&'heading'==_0xfae7f7['commandName']){const _0x38208a=_0xfae7f7['commandParams'][0x0]['value'],_0x2faa59=this['_getHeadingLevel'](_0x38208a);if(null!==_0x2faa59)return{'type':'format','content':o(_0x3de1c6,'*Change\x20to:*\x20%0',(_0xc2e7fc=0x1,_0x44a100=_0x2faa59,o(_0x3de1c6,'ELEMENT_HEADING',[_0xc2e7fc,_0x44a100])))};const _0x141e13=this['_headingOptions']['find'](_0x21b0be=>_0x21b0be['model']===_0x38208a)['title'];return{'type':'format','content':o(_0x3de1c6,'*Change\x20to:*\x20%0',_0x667e66(0x1,_0x141e13))};}var _0xc2e7fc,_0x44a100;});}['_getHeadingLevel'](_0x1c48d5){const _0x4bb33e=_0x1c48d5['match'](/^heading(\d+)/);if(_0x4bb33e)return _0x4bb33e[0x1];const _0xd7a3cd=this['_headingOptions']?.['find'](_0x11d85e=>_0x11d85e['model']==_0x1c48d5);if(_0xd7a3cd&&_0xd7a3cd['view']){const _0x34c68d=_0xd7a3cd['view'],_0x3f258c=(_0x34c68d['name']??_0x34c68d)['match'](/^h(\d+)/);if(_0x3f258c)return _0x3f258c[0x1];}return null;}}class Z extends _0xd068a0{['afterInit'](){const _0x887290=this['editor'];if(!_0x887290['plugins']['has']('HighlightEditing'))return;const _0x28512e=_0x887290['plugins']['get']('TrackChangesEditing'),_0x4701fc=_0x887290['locale'];_0x28512e['enableDefaultAttributesIntegration']('highlight'),_0x28512e['registerInlineAttribute']('highlight'),_0x28512e['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4701fc,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a078f=this['editor'],_0x230721=_0x1a078f['locale'];_0x1a078f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d1ebb=>{if('formatInline'!=_0x1d1ebb['type'])return;const {data:_0x332477}=_0x1d1ebb;if(_0x332477&&'highlight'==_0x332477['commandName']){const _0x3a75d9=_0x230721['t'],_0xd6b6cf=_0x332477['commandParams'][0x0]['value'];if(_0xd6b6cf){const _0x3a9771=_0x1a078f['config']['get']('highlight.options')['find'](_0x30573f=>_0x30573f['model']==_0xd6b6cf),_0x3b90f4=_0x3a75d9(_0x3a9771['title'])['toLowerCase']();return{'type':'format','content':o(_0x230721,'*Set\x20highlight:*\x20%0',_0x3b90f4),'color':{'value':_0x3a9771['color'],'title':_0x3a9771['title']}};}return{'type':'format','content':o(_0x230721,'*Remove\x20highlight*',o(_0x230721,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0xd068a0{['afterInit'](){const _0x2ea0c0=this['editor'];if(!_0x2ea0c0['plugins']['has']('HorizontalLineEditing'))return;_0x2ea0c0['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x407c0d=_0x2ea0c0['plugins']['get']('TrackChangesEditing'),_0x5f077f=_0x2ea0c0['locale'];_0x407c0d['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3041f2=>o(_0x5f077f,'ELEMENT_HORIZONTAL_LINE',_0x3041f2)),_0x2ea0c0['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x23924a,{writer:_0x47f7fb,options:_0x136766})=>{if(!_0x136766['showSuggestionHighlights'])return null;const _0x6a98e8=_0x47f7fb['createContainerElement']('div'),_0x4575e8=_0x47f7fb['createEmptyElement']('hr');return _0x47f7fb['addClass']('ck-horizontal-line',_0x6a98e8),_0x47f7fb['insert'](_0x47f7fb['createPositionAt'](_0x6a98e8,0x0),_0x4575e8),_0x6a98e8;},'converterPriority':'high'});}}class et extends _0xd068a0{['afterInit'](){const _0x17d5a0=this['editor'];if(!_0x17d5a0['plugins']['has']('HtmlEmbed'))return;const _0x7284c6=_0x17d5a0['plugins']['get']('TrackChangesEditing'),_0x4cfb6a=_0x17d5a0['locale'];_0x7284c6['descriptionFactory']['registerElementLabel']('rawHtml',_0x3dd664=>o(_0x4cfb6a,'ELEMENT_HTML_EMBED',_0x3dd664)),_0x7284c6['enableDefaultAttributesIntegration']('htmlEmbed'),_0x7284c6['registerBlockAttribute']('value'),_0x7284c6['descriptionFactory']['registerDescriptionCallback'](_0x1a1aa0=>{if('attribute'!=_0x1a1aa0['type'])return;const {data:_0x46b07e}=_0x1a1aa0;if(_0x46b07e&&'value'==_0x46b07e['key']&&_0x1a1aa0['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x364b05=o(_0x4cfb6a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4cfb6a,'*Change\x20%0\x20content*',_0x364b05)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ee594=this['editor'],_0xc10ad8=_0x2ee594['locale'];_0x2ee594['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2255ba=>{if('formatBlock'!=_0x2255ba['type'])return;const {data:_0x5d293a}=_0x2255ba;if(_0x5d293a&&'htmlEmbed'==_0x5d293a['commandName']){const _0x494f5b=o(_0xc10ad8,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xc10ad8,'*Change\x20%0\x20content*',_0x494f5b)};}});}}class it extends _0xd068a0{['afterInit'](){const _0x19513a=this['editor'];if(!_0x19513a['plugins']['has']('ImageEditing'))return;const _0x3214a3=_0x19513a['plugins']['get']('TrackChangesEditing'),_0x292796=_0x19513a['plugins']['get']('ImageUtils'),_0x1b8a61=_0x19513a['locale'];_0x3214a3['enableCommand']('insertImage'),_0x3214a3['descriptionFactory']['registerElementLabel']('imageBlock',_0x3587da=>o(_0x1b8a61,'ELEMENT_IMAGE',_0x3587da)),_0x3214a3['descriptionFactory']['registerElementLabel']('imageInline',_0x5839bf=>o(_0x1b8a61,'ELEMENT_INLINE_IMAGE',_0x5839bf)),_0x3214a3['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1b8a61,'ELEMENT_CAPTION')),_0x19513a['plugins']['has']('ImageUploadEditing')&&_0x3214a3['enableCommand']('uploadImage'),_0x19513a['plugins']['has']('ImageBlockEditing')&&_0x19513a['plugins']['has']('ImageInlineEditing')&&(_0x3214a3['enableCommand']('imageTypeInline',(_0x39e4fc,_0x1bc945)=>{const _0x5419c9=_0x292796['getClosestSelectedImageElement'](_0x19513a['model']['document']['selection']);_0x19513a['model']['change'](()=>{_0x3214a3['markBlockFormat'](_0x5419c9,{'commandName':'imageTypeInline','commandParams':[_0x1bc945]},[],'convertBlockImageToInline');});}),_0x3214a3['enableCommand']('imageTypeBlock',(_0x33ee76,_0x245d93)=>{_0x19513a['model']['change'](_0x4eed79=>{let _0x5bafc5=_0x292796['getClosestSelectedImageElement'](_0x19513a['model']['document']['selection']),_0x3defb4=_0x4eed79['createRangeOn'](_0x5bafc5);const _0x564be0=_0x1fb04b['fromPosition'](_0x3defb4['start'],'toPrevious'),_0x3b2a73=_0x1fb04b['fromPosition'](_0x3defb4['end'],'toNext');_0x3214a3['forceDefaultExecution'](()=>_0x33ee76(_0x245d93)),_0x5bafc5=_0x292796['getClosestSelectedImageElement'](_0x19513a['model']['document']['selection']),_0x3defb4=_0x4eed79['createRangeOn'](_0x5bafc5);const _0xa674b8=_0x4eed79['createRange'](_0x564be0,_0x3b2a73);_0x564be0['detach'](),_0x3b2a73['detach'](),_0x3214a3['markBlockFormat'](_0x5bafc5,{'commandName':'imageTypeInline','commandParams':[_0x245d93]},[],'convertInlineImageToBlock'),_0xa674b8['start']['isBefore'](_0x3defb4['start'])&&_0x3214a3['markInsertion'](_0x4eed79['createRange'](_0xa674b8['start'],_0x3defb4['start']),'convertInlineImageToBlock'),_0x3defb4['end']['isBefore'](_0xa674b8['end'])&&_0x3214a3['markInsertion'](_0x4eed79['createRange'](_0x3defb4['end'],_0xa674b8['end']),'convertInlineImageToBlock');});}),_0x3214a3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3214a3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3214a3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3214a3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3214a3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3214a3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x35461e])=>{const _0x2c3530=_0x3214a3['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5d3c12=_0x35461e['start'],_0x3c2201=_0x35461e['end'];const _0xf6d6f4=_0x19513a['model']['schema']['getNearestSelectionRange'](_0x5d3c12,'backward'),_0x43d677=_0x19513a['model']['schema']['getNearestSelectionRange'](_0x3c2201,'forward');_0xf6d6f4['isCollapsed']&&(_0x5d3c12=_0xf6d6f4['start']),_0x43d677['isCollapsed']&&(_0x3c2201=_0x43d677['end']),_0x2c3530([_0x19513a['model']['createRange'](_0x5d3c12,_0x3c2201)]);}),_0x3214a3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x39825b),_0x3214a3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x39825b)),_0x19513a['plugins']['has']('ImageCaptionEditing')&&(_0x3214a3['enableCommand']('toggleImageCaption',(_0x250143,_0x537949)=>{const _0x4e5774=_0x19513a['plugins']['get']('ImageCaptionUtils');let _0x10d528=_0x292796['getClosestSelectedImageElement'](_0x19513a['model']['document']['selection']),_0x53a009=_0x4e5774['getCaptionFromImageModelElement'](_0x10d528);_0x19513a['model']['change'](()=>{if(_0x53a009)return void _0x3214a3['markDeletion'](_0x19513a['model']['createRangeOn'](_0x53a009));const _0x2191c7=_0x292796['isBlockImage'](_0x10d528);_0x250143(_0x537949),_0x10d528=_0x292796['getClosestSelectedImageElement'](_0x19513a['model']['document']['selection']),_0x53a009=_0x4e5774['getCaptionFromImageModelElement'](_0x10d528),_0x3214a3['markInsertion'](_0x19513a['model']['createRangeOn'](_0x53a009),_0x2191c7?null:'imageCaption');});}),_0x3214a3['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x39825b));const _0x9dc25a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x507f2a(_0x4bdb1b,_0x4abda5){const _0xa00121=_0x9dc25a['findIndex'](({type:_0x541451,subType:_0x34fa97})=>_0x4bdb1b['type']==_0x541451&&_0x4bdb1b['subType']==_0x34fa97),_0x56b7bf=_0x9dc25a['findIndex'](({type:_0x53badd,subType:_0x4f6f39})=>_0x4abda5['type']==_0x53badd&&_0x4abda5['subType']==_0x4f6f39);if(_0xa00121<0x0||_0x56b7bf<0x0)return!0x1;const _0x580a03=_0x4bdb1b['getFirstRange'](),_0x20a48c=_0x4abda5['getFirstRange']();if((0x0==_0xa00121||0x1==_0xa00121)&&0x2==_0x56b7bf&&_0x580a03['isIntersecting'](_0x20a48c))return!0x0;if(0x2==_0xa00121&&0x3==_0x56b7bf){const _0x2da4cd=_0x3214a3['_findSuggestions'](_0x580a03,'insertion')['filter'](({suggestion:_0x385f12,meta:_0x17a707})=>_0x17a707['isOwn']&&'convertInlineImageToBlock'==_0x385f12['subType']);if(_0x2da4cd['length']>0x1&&_0x20a48c['end']['isEqual'](_0x580a03['start']))return!0x0;if(0x1==_0x2da4cd['length']&&(_0x580a03['start']['isEqual'](_0x20a48c['end'])||_0x580a03['end']['isEqual'](_0x20a48c['start'])))return!0x0;}if(0x3==_0xa00121&&0x3==_0x56b7bf&&_0x580a03['start']['isBefore'](_0x20a48c['start'])){const _0x68a6c4=_0x580a03['end']['nodeAfter'],_0x4301d8=_0x20a48c['start']['nodeBefore'];return _0x292796['isBlockImage'](_0x68a6c4)&&_0x68a6c4===_0x4301d8;}return!0x1;}function _0x39825b(_0xbf4dcb,_0x46f453){return _0x507f2a(_0xbf4dcb,_0x46f453)?[_0xbf4dcb,_0x46f453]:_0x507f2a(_0x46f453,_0xbf4dcb)?[_0x46f453,_0xbf4dcb]:null;}_0x19513a['plugins']['has']('ImageResize')&&(_0x3214a3['enableDefaultAttributesIntegration']('resizeImage'),_0x3214a3['registerBlockAttribute']('resizedWidth'),_0x3214a3['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1b8a61,'FORMAT_IMAGE_SIZE'))),_0x19513a['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3214a3['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3214a3['registerBlockAttribute']('alt')),_0x3214a3['descriptionFactory']['registerDescriptionCallback'](_0x522baa=>{if(!!_0x9dc25a['find'](({type:_0x2ffa60,subType:_0xa6f41b})=>_0x522baa['type']==_0x2ffa60&&_0x522baa['subType']==_0xa6f41b))return _0x522baa['previous']?{}:void 0x0;}),_0x3214a3['descriptionFactory']['registerDescriptionCallback'](_0x51bb30=>{if('insertion'==_0x51bb30['type']||'deletion'==_0x51bb30['type']){const _0x10245a=_0x51bb30['getContainedElement']();if(_0x10245a&&_0x10245a['is']('element','caption'))return{'type':'insertion'==_0x51bb30['type']?'addObject':'removeObject','element':_0x10245a,'quantity':0x1};}}),_0x3214a3['descriptionFactory']['registerDescriptionCallback'](_0x162a9e=>'formatBlock'==_0x162a9e['type']&&'convertInlineImageToBlock'==_0x162a9e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x162a9e['type']&&'convertBlockImageToInline'==_0x162a9e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3214a3['descriptionFactory']['registerDescriptionCallback'](_0x529f1c=>{if('attribute'!=_0x529f1c['type'])return;const {data:_0x1675d3}=_0x529f1c;if(!_0x1675d3||'alt'!=_0x1675d3['key'])return;const _0xb08dfc=_0x1675d3['newValue'];return _0xb08dfc?{'type':'format','content':o(_0x1b8a61,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xb08dfc+'\x22')}:{'type':'format','content':o(_0x1b8a61,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2bf684=this['editor'],_0x1fd654=_0x2bf684['locale'];_0x2bf684['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11a531=>{if('formatBlock'!=_0x11a531['type']&&'formatInline'!=_0x11a531['type'])return;const {data:_0x405495}=_0x11a531;if(_0x405495){if('imageTextAlternative'==_0x405495['commandName']){const _0x35958b=_0x405495['commandParams'][0x0]['newValue'];return _0x35958b?{'type':'format','content':o(_0x1fd654,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x35958b+'\x22')}:{'type':'format','content':o(_0x1fd654,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x405495['commandName']){const _0x1bb690=_0x405495['commandParams'][0x0]['width'];return _0x1bb690?{'type':'format','content':o(_0x1fd654,'*Set\x20image\x20width:*\x20%0',_0x1bb690)}:{'type':'format','content':o(_0x1fd654,'*Reset\x20image\x20width*')};}}});}}class st extends _0xd068a0{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x27a561=this['editor']['locale'],_0x11816a=this['editor']['plugins']['get']('TrackChangesEditing');_0x11816a['enableDefaultAttributesIntegration']('replaceImageSource'),_0x11816a['registerBlockAttribute']('src'),_0x11816a['descriptionFactory']['registerDescriptionCallback'](_0x29312c=>{if('attribute'!=_0x29312c['type'])return;const {data:_0x3a8668}=_0x29312c;return _0x3a8668&&'src'==_0x3a8668['key']?_0x3a8668['newValue']&&_0x3a8668['oldValue']?{'type':'format','content':o(_0x27a561,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x241289=this['editor']['plugins']['get']('TrackChangesEditing');_0x241289['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x241289['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x241289['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x241289['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19795d=this['editor'],_0x2cec02=_0x19795d['locale'];_0x19795d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x249975=>{if('formatBlock'!=_0x249975['type']&&'formatInline'!=_0x249975['type'])return;const {data:_0x26402a}=_0x249975;if(!_0x26402a||'replaceImageSource'!=_0x26402a['commandName'])return;return{'type':'format','content':o(_0x2cec02,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0xd068a0{['afterInit'](){const _0x2bdc10=this['editor'];if(!_0x2bdc10['plugins']['has']('ImageStyleEditing'))return;const _0x4750cb=_0x2bdc10['plugins']['get']('TrackChangesEditing'),_0x5511c4=_0x2bdc10['plugins']['get']('ImageUtils'),_0x355e63={};_0x4750cb['enableCommand']('imageStyle',(_0x363411,_0x3a8043)=>{const _0x11d21f=_0x2bdc10['plugins']['get']('Users')['me'],_0x2296fe=_0x2bdc10['commands']['get']('imageStyle');let _0x30ed76=_0x5511c4['getClosestSelectedImageElement'](_0x2bdc10['model']['document']['selection']),_0x210d59=_0x2bdc10['model']['createRangeOn'](_0x30ed76),_0x132afa=_0x2296fe['value'];if(_0x132afa==_0x3a8043['value'])return;const _0x15718d={'commandName':'imageStyle','commandParams':[_0x3a8043],'formatGroupId':_0x4253a4()};_0x2bdc10['model']['change'](()=>{if(_0x4750cb['getSuggestions']()['filter'](_0x46684f=>_0x46684f['isInContent']&&_0x11d21f==_0x46684f['author']&&('formatBlock'==_0x46684f['type']||'formatInline'==_0x46684f['type'])&&('imageStylePreApply'==_0x46684f['subType']||'imageStylePostApply'==_0x46684f['subType'])&&_0x46684f['getFirstRange']()['isEqual'](_0x210d59))['forEach'](_0x40b104=>_0x4750cb['discardSuggestion'](_0x40b104['head'])),_0x30ed76=_0x5511c4['getClosestSelectedImageElement'](_0x2bdc10['model']['document']['selection']),_0x210d59=_0x2bdc10['model']['createRangeOn'](_0x30ed76),_0x2296fe['refresh'](),_0x2bdc10['commands']['get']('imageTypeInline')['refresh'](),_0x2bdc10['commands']['get']('imageTypeBlock')['refresh'](),_0x132afa=_0x2296fe['value'],_0x132afa!=_0x3a8043['value'])return _0x5511c4['isInlineImage'](_0x30ed76)&&_0x2296fe['shouldConvertImageType'](_0x3a8043['value'],_0x30ed76)?(_0x363411({..._0x3a8043,'setImageSizes':!0x1}),_0x30ed76=_0x5511c4['getClosestSelectedImageElement'](_0x2bdc10['model']['document']['selection']),void _0x4750cb['markBlockFormat'](_0x30ed76,{..._0x15718d,'commandReversedParams':[{'value':_0x132afa||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5511c4['isBlockImage'](_0x30ed76)?_0x4750cb['markBlockFormat'](_0x30ed76,_0x15718d,[],'imageStylePostApply'):_0x4750cb['markInlineFormat'](_0x210d59,_0x15718d,'imageStylePostApply'));});});for(const _0x19371a of _0x2bdc10['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x355e63[_0x19371a['name']]=_0x19371a['title']['toLowerCase']();_0x4750cb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4750cb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4750cb['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4750cb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2b2351])=>{_0x5511c4['setImageNaturalSizeAttributes'](_0x2b2351['getContainedElement']());}),_0x4750cb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4f801a,_0x514e02)=>{_0x4750cb['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4f801a,{'commandName':_0x514e02['commandName'],'commandParams':_0x514e02['commandReversedParams']});}),_0x4750cb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1eb0a7,_0x558afe){if(_0x5075ee(_0x1eb0a7,_0x558afe))return[_0x1eb0a7,_0x558afe];if(_0x5075ee(_0x558afe,_0x1eb0a7))return[_0x558afe,_0x1eb0a7];return null;});const _0x15a5b5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5075ee(_0x246dde,_0x4457df){const _0x30c445=_0x15a5b5['findIndex'](({type:_0x24c086,subType:_0x2f2ced})=>_0x246dde['type']==_0x24c086&&_0x246dde['subType']==_0x2f2ced),_0x53d74e=_0x15a5b5['findIndex'](({type:_0x23bb9a,subType:_0x5817a1})=>_0x4457df['type']==_0x23bb9a&&_0x4457df['subType']==_0x5817a1);if(_0x30c445<0x0||_0x53d74e<0x0)return!0x1;const _0x594fe2=_0x246dde['getFirstRange'](),_0x46a7ed=_0x4457df['getFirstRange']();if((0x0==_0x30c445||0x1==_0x30c445)&&0x2==_0x53d74e&&_0x594fe2['isIntersecting'](_0x46a7ed))return!0x0;if(0x2==_0x30c445&&0x3==_0x53d74e){const _0x462661=_0x4750cb['_findSuggestions'](_0x594fe2,'insertion')['filter'](({suggestion:_0x51314b,meta:_0x5cbdf2})=>_0x5cbdf2['isOwn']&&'convertInlineImageToBlock'==_0x51314b['subType']);if(_0x462661['length']>0x1&&_0x46a7ed['end']['isEqual'](_0x594fe2['start']))return!0x0;if(0x1==_0x462661['length']&&(_0x594fe2['start']['isEqual'](_0x46a7ed['end'])||_0x594fe2['end']['isEqual'](_0x46a7ed['start'])))return!0x0;}if(0x3==_0x30c445&&0x3==_0x53d74e&&_0x594fe2['start']['isBefore'](_0x46a7ed['start'])){const _0x2e70fd=_0x594fe2['end']['nodeAfter'],_0x4846ae=_0x46a7ed['start']['nodeBefore'];return _0x5511c4['isBlockImage'](_0x2e70fd)&&_0x2e70fd===_0x4846ae;}return!0x1;}_0x2bdc10['model']['document']['registerPostFixer'](()=>{let _0x590a1b=!0x1;const _0x196430=Array['from'](_0x2bdc10['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x30fab4,data:_0x43d832}of _0x196430){const {group:_0x3bdfed,type:_0x21410c,subType:_0x12560e,id:_0x1b2319}=_0x4750cb['_splitMarkerName'](_0x30fab4);if('suggestion'==_0x3bdfed&&_0x4750cb['hasSuggestion'](_0x1b2319)){if('formatBlock'==_0x21410c&&('imageStylePreApply'==_0x12560e||'imageStylePostApply'==_0x12560e)){const _0x212df2=_0x4750cb['getSuggestion'](_0x1b2319);if(_0x43d832['newRange']){const _0x8e31fa=_0x212df2['getFirstRange']()['getContainedElement']();if(_0x5511c4['isBlockImage'](_0x8e31fa))continue;_0x4750cb['discardSuggestion'](_0x212df2),_0x590a1b=!0x0;}}if('insertion'==_0x21410c&&'imageCaption'==_0x12560e&&!_0x43d832['newRange']){const _0x1fdc0d=_0x4750cb['getSuggestion'](_0x1b2319);_0x1fdc0d['next']&&_0x1fdc0d['next']['isInContent']&&(_0x4750cb['discardSuggestion'](_0x1fdc0d['next']),_0x590a1b=!0x0);}}}return _0x590a1b;}),this['_registerLegacyDescription'](_0x355e63);}['_registerLegacyDescription'](_0x420981){const _0x4018fb=this['editor'],_0x2fe108=_0x4018fb['locale'];_0x4018fb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b4711=>{if('formatBlock'!=_0x1b4711['type']&&'formatInline'!=_0x1b4711['type'])return;const {data:_0xf34d8d}=_0x1b4711;if(!_0xf34d8d||'imageStyle'!=_0xf34d8d['commandName'])return;const _0x56cd1b=_0xf34d8d['commandParams'][0x0]['value'];return _0x2e90c9('side'===_0x56cd1b?o(_0x2fe108,'FORMAT_SIDE_IMAGE'):_0x420981[_0x56cd1b]||_0x56cd1b);function _0x2e90c9(_0xd838af){return{'type':'format','content':o(_0x2fe108,'*Format:*\x20%0',_0xd838af)};}});}}class ot extends _0xd068a0{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x299c5c){super(_0x299c5c),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x151927=this['editor'],_0x2cd55e=_0x151927['commands']['get']('importWord'),_0x5b1307=_0x151927['commands']['get']('trackChanges');_0x2cd55e&&(_0x2cd55e['on']('execute',(_0x16d639,[,_0x47c94b])=>{this['_trackChangesValueDuringImport']=_0x5b1307['value'],_0x47c94b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2cd55e,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2cd55e,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5b1307['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x151927['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xf50652,_0x55a0e7){const {suggestions:_0x1f6870}=_0x55a0e7,_0x5351ad=this['editor']['commands']['get']('trackChanges'),_0x135cb8=_0x5351ad['value'];this['_trackChangesValueDuringImport']!==_0x135cb8&&(_0x5351ad['execute'](),this['_trackChangesExecuted']=!0x0),_0x1f6870&&_0x1f6870['forEach'](({id:_0x1a3f89,type:_0x31169c,author:_0x47fc16,created_at:_0x3fabbb})=>{const _0x30b24a={'id':_0x1a3f89,'type':_0x31169c,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x47fc16,'createdAt':_0x3fabbb?new Date(_0x3fabbb):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x30b24a);});}}class rt extends _0xd068a0{['afterInit'](){const _0x25819d=this['editor'],_0x6f3153=_0x25819d['plugins']['get']('TrackChangesEditing');if(_0x25819d['plugins']['has']('IndentEditing')&&(_0x6f3153['enableCommand']('indent'),_0x6f3153['enableCommand']('outdent')),_0x25819d['plugins']['has']('IndentBlock')){for(const _0x1657ee of['indentBlock','outdentBlock'])_0x6f3153['enableDefaultAttributesIntegration'](_0x1657ee);}const _0x291021=_0x25819d['locale'];_0x6f3153['registerBlockAttribute']('blockIndent'),_0x6f3153['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x291021,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54bb8a=this['editor'],_0x5ca893=_0x54bb8a['locale'],_0x556ce4=_0x54bb8a['plugins']['get']('TrackChangesEditing');_0x556ce4['descriptionFactory']['registerDescriptionCallback'](_0x1ce46a=>{if('formatBlock'!=_0x1ce46a['type'])return;const {data:_0x4d0ee3}=_0x1ce46a;if(!_0x4d0ee3)return;if('indentBlock'!=_0x4d0ee3['commandName']&&'outdentBlock'!=_0x4d0ee3['commandName'])return;const _0x40f03a=_0x1ce46a['getItems']()[0x0],_0x177a0a=_0x556ce4['descriptionFactory']['getItemLabel'](_0x40f03a);return'indentBlock'==_0x4d0ee3['commandName']?{'type':'format','content':o(_0x5ca893,'*Indent:*\x20%0',_0x177a0a)}:'outdentBlock'==_0x4d0ee3['commandName']?{'type':'format','content':o(_0x5ca893,'*Outdent:*\x20%0',_0x177a0a)}:void 0x0;});}}class at extends _0xd068a0{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0xd068a0{['afterInit'](){const _0x346e43=this['editor'];if(!_0x346e43['plugins']['has']('LinkEditing'))return;const _0x54fd25=_0x346e43['plugins']['get']('TrackChangesEditing'),_0x433055=_0x346e43['commands']['get']('link');_0x54fd25['enableDefaultAttributesIntegration']('link'),_0x54fd25['enableDefaultAttributesIntegration']('unlink'),_0x54fd25['registerInlineAttribute']('linkHref');for(const _0x4a551b of _0x433055['manualDecorators'])_0x54fd25['registerInlineAttribute'](_0x4a551b['id']),_0x54fd25['descriptionFactory']['registerAttributeLabel'](_0x4a551b['id'],'link\x20('+_0x4a551b['label']['toLowerCase']()+')');_0x54fd25['descriptionFactory']['registerDescriptionCallback'](_0x82815e=>{if('attribute'!=_0x82815e['type'])return;const {data:_0x17c90b}=_0x82815e;if(!_0x17c90b||'linkHref'!=_0x17c90b['key'])return;const _0x262837=_0x17c90b['newValue'],_0x3f6c9d=_0x346e43['locale'];return{'type':'format','content':null==_0x262837?o(_0x3f6c9d,'*Remove\x20link*'):o(_0x3f6c9d,'*Set\x20link:*\x20%0','\x22'+_0x262837+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2bbaec=this['editor'],_0x5ab15f=_0x2bbaec['locale'];_0x2bbaec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf4ae0f=>{if('formatInline'!=_0xf4ae0f['type'])return;const {data:_0x1d30f7}=_0xf4ae0f;if(_0x1d30f7){if('link'==_0x1d30f7['commandName']){const _0x2d99a1=_0x1d30f7['commandParams'][0x0];return{'type':'format','content':o(_0x5ab15f,'*Set\x20link:*\x20%0','\x22'+_0x2d99a1+'\x22')};}return'unlink'==_0x1d30f7['commandName']?{'type':'format','content':o(_0x5ab15f,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0xd068a0{['afterInit'](){const _0x42e0b5=this['editor'],_0x1b992f=_0x42e0b5['locale'];if(!_0x42e0b5['plugins']['has']('LegacyListEditing'))return;const _0x8fbe3a=_0x42e0b5['plugins']['get']('TrackChangesEditing'),_0x279574=_0x42e0b5['plugins']['has']('LegacyTodoListEditing');function _0x124d05(_0x35d90d){return()=>{const _0x443f90=_0x42e0b5['model']['document']['selection'],_0x14e00d=_0x42e0b5['commands']['get'](_0x35d90d);if(_0x14e00d['value'])return void _0x42e0b5['execute']('paragraph',{});const _0x82a3e7=_0x35d90d['slice'](0x0,-0x4),_0x12c287=function(_0x544c05,_0x53210e,_0x36e3e1){let _0x3339fd=Array['from'](_0x544c05)['filter'](_0x5227c3=>function(_0x48df55,_0x46abd9){return _0x46abd9['checkChild'](_0x48df55['parent'],'listItem')&&!_0x46abd9['isObject'](_0x48df55);}(_0x5227c3,_0x36e3e1));_0x3339fd=_0x3339fd['filter'](_0x40f3b6=>!_0x40f3b6['is']('element','listItem')||_0x40f3b6['getAttribute']('listType')!=_0x53210e);const _0x249463=new Set();for(const _0x16b9e0 of _0x3339fd)_0x16b9e0['is']('element','listItem')?_0x249463['add'](me(_0x16b9e0)):_0x249463['add'](_0x16b9e0);return Array['from'](_0x249463);}(_0x443f90['getSelectedBlocks'](),_0x82a3e7,_0x42e0b5['model']['schema']);_0x42e0b5['model']['change'](()=>{for(const _0x5bf855 of _0x12c287)_0x8fbe3a['markBlockFormat'](_0x5bf855,{'commandName':_0x35d90d,'commandParams':[{'forceValue':!_0x14e00d['value']}],'formatGroupId':'blockName'},fe(_0x5bf855));});};}function _0x5addb6(_0xecf711){return()=>{const _0x347a2f=function(_0x219910){let _0x40b872=Array['from'](_0x219910);const _0x4a12dc=_0x40b872['findIndex'](_0x19ffab=>'listItem'!=_0x19ffab['name']);return _0x4a12dc>-0x1&&(_0x40b872=_0x40b872['slice'](0x0,_0x4a12dc)),_0x40b872;}(_0x42e0b5['model']['document']['selection']['getSelectedBlocks']()),_0x3b7a51=_0x42e0b5['model']['createRange'](_0x42e0b5['model']['createPositionAt'](_0x347a2f[0x0],'before'),_0x42e0b5['model']['createPositionAt'](_0x347a2f[_0x347a2f['length']-0x1],'end'));_0x42e0b5['model']['change'](()=>{_0x8fbe3a['markBlockFormat'](_0x3b7a51,{'commandName':_0xecf711,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5d1e11){const _0x3d0217=new Set();for(const _0x51db2a of _0x5d1e11){let _0x393eec=_0x51db2a['nextSibling'];for(;_0x393eec&&_0x393eec['getAttribute']('listIndent')>_0x51db2a['getAttribute']('listIndent');)_0x3d0217['add'](_0x393eec),_0x393eec=_0x393eec['nextSibling'];}return Array['from'](_0x3d0217);}(_0x347a2f));});};}_0x8fbe3a['enableCommand']('numberedList',_0x124d05('numberedList')),_0x8fbe3a['enableCommand']('bulletedList',_0x124d05('bulletedList')),_0x279574&&_0x8fbe3a['enableCommand']('todoList',_0x124d05('todoList')),_0x8fbe3a['enableCommand']('indentList',_0x5addb6('indentList')),_0x8fbe3a['enableCommand']('outdentList',_0x5addb6('outdentList')),_0x279574&&_0x8fbe3a['enableCommand']('checkTodoList',()=>{const _0x371a49=_0x42e0b5['commands']['get']('checkTodoList'),_0x277135=Array['from'](_0x371a49['_selectedElements']);_0x277135['filter'](_0x150e52=>_0x150e52['getAttribute']('todoListChecked')!=_0x371a49['value']),_0x42e0b5['model']['change'](()=>{for(const _0x5101c5 of _0x277135)_0x8fbe3a['markBlockFormat'](_0x5101c5,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x371a49['value']}]});});}),_0x8fbe3a['descriptionFactory']['registerElementLabel']('listItem',_0x37b321=>o(_0x1b992f,'ELEMENT_LIST_ITEM',_0x37b321)),_0x8fbe3a['descriptionFactory']['registerDescriptionCallback'](_0x12c23d=>{if('formatBlock'!=_0x12c23d['type']&&'formatInline'!=_0x12c23d['type'])return;const {data:_0x38f0e0}=_0x12c23d;if(_0x38f0e0){if('numberedList'==_0x38f0e0['commandName']||'bulletedList'==_0x38f0e0['commandName']||'todoList'==_0x38f0e0['commandName'])switch(_0x38f0e0['commandName']['replace']('List','')){case'bulleted':return _0x45178d(o(_0x1b992f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x45178d(o(_0x1b992f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x45178d(o(_0x1b992f,'ELEMENT_TODO_LIST'));}if('indentList'==_0x38f0e0['commandName'])return{'type':'format','content':o(_0x1b992f,'*Indent:*\x20%0',o(_0x1b992f,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x38f0e0['commandName'])return{'type':'format','content':o(_0x1b992f,'*Outdent:*\x20%0',o(_0x1b992f,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x38f0e0['commandName'])return _0x38f0e0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1b992f,'*Check\x20item*')}:{'type':'format','content':o(_0x1b992f,'*Uncheck\x20item*')};}function _0x45178d(_0x277486){return{'type':'format','content':o(_0x1b992f,'*Change\x20to:*\x20%0',_0x277486)};}});}}function me(_0x47d1d0){const _0x46a1ac=_0x47d1d0['getAttribute']('listIndent');if(0x0==_0x46a1ac)return _0x47d1d0;let _0x402175=_0x47d1d0;for(;_0x47d1d0['previousSibling']&&_0x47d1d0['previousSibling']['is']('element','listItem');){const _0x1378cc=_0x47d1d0['previousSibling']['getAttribute']('listIndent');if(_0x1378cc==_0x46a1ac)_0x402175=_0x47d1d0['previousSibling'];else{if(_0x1378cc<_0x46a1ac)break;}_0x47d1d0=_0x47d1d0['previousSibling'];}return _0x402175;}function fe(_0x14e448){const _0x19b505=[];if(_0x14e448['is']('element','listItem')&&_0x14e448['getAttribute']('listIndent')>0x0){let _0x116de8=_0x14e448['nextSibling'];for(;_0x116de8&&'listItem'==_0x116de8['name']&&_0x116de8['getAttribute']('listIndent')==_0x14e448['getAttribute']('listIndent');)_0x19b505['push'](_0x116de8),_0x116de8=_0x116de8['nextSibling'];}return _0x19b505;}class K extends _0xd068a0{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3016e6=this['editor']['config']['get']('list.properties'),_0x531c0f=this['editor']['plugins']['get']('TrackChangesEditing');_0x3016e6['styles']&&_0x531c0f['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3016e6['reversed']&&_0x531c0f['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3016e6['startIndex']&&_0x531c0f['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x531c0f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3868a7,_0x1d6269={}){const _0x5dec9b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x181e75=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5dec9b['markMultiRangeBlockFormat'](_0x181e75,{'commandName':'listStyle','commandParams':[{'type':_0x1d6269['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4a77c6,_0x3465e0={}){const _0x9a3458=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51f23c=this['_getSuggestionBlocks'](_0x5b5e92=>_0x5b5e92['is']('element','listItem')&&'numbered'===_0x5b5e92['getAttribute']('listType'));if(_0x51f23c['length']<0x1)return;const _0x391643=_0x51f23c['map'](_0x50d6a8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x50d6a8,'before'),this['editor']['model']['createPositionAt'](_0x50d6a8,0x0)));this['editor']['model']['change'](()=>{_0x9a3458['markMultiRangeBlockFormat'](_0x391643,{'commandName':'listReversed','commandParams':[{'reversed':_0x3465e0['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x557ffd,_0x32830a={}){const _0x177f53=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e0ef9=this['_getSuggestionBlocks'](_0x5d9f8a=>_0x5d9f8a['is']('element','listItem')&&'numbered'===_0x5d9f8a['getAttribute']('listType'));if(_0x5e0ef9['length']<0x1)return;const _0x897f0=_0x5e0ef9['map'](_0x5a31f3=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5a31f3,'before'),this['editor']['model']['createPositionAt'](_0x5a31f3,0x0)));this['editor']['model']['change'](()=>{_0x177f53['markMultiRangeBlockFormat'](_0x897f0,{'commandName':'listStart','commandParams':[{'startIndex':_0x32830a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x300189){if('formatBlock'!=_0x300189['type']&&'formatInline'!=_0x300189['type'])return;const _0x450cd6=this['editor']['locale'],{data:_0x5b978b}=_0x300189;if(!_0x5b978b)return;let _0xe872bc,_0x2293ee;switch(_0x5b978b['commandName']){case'listStyle':_0xe872bc='*Change\x20to:*\x20%0',_0x2293ee={'type':'format','content':o(_0x450cd6,_0xe872bc,o(_0x450cd6,this['_getTranslationKeyForListStyle'](_0x5b978b['commandParams'][0x0]['type'])))};break;case'listReversed':_0xe872bc=_0x5b978b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2293ee={'type':'format','content':o(_0x450cd6,_0xe872bc)};break;case'listStart':_0xe872bc='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2293ee={'type':'format','content':o(_0x450cd6,_0xe872bc,_0x5b978b['commandParams'][0x0]['startIndex'])};}return _0x2293ee;}['_getSuggestionBlocksForListStyle'](){const _0x494e1d=this['editor']['plugins']['get']('LegacyListUtils');let _0x184bb5=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x184bb5[0x0]?.['is']('element','listItem')&&_0x184bb5['unshift'](..._0x494e1d['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x184bb5[_0x184bb5['length']-0x1]?.['is']('element','listItem')&&_0x184bb5['push'](..._0x494e1d['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x184bb5=[...new Set(_0x184bb5)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x184bb5=_0x184bb5['filter'](_0x334f77=>_0x334f77['is']('element','listItem'))),_0x184bb5;}['_getSuggestionBlocks'](_0xb01bd9){const _0x4809db=this['editor']['plugins']['get']('LegacyListUtils');let _0x46f4c4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xb01bd9)['map'](_0xe332a2=>{const _0x3e8a40=this['editor']['model']['createPositionAt'](_0xe332a2,0x0);return[..._0x4809db['getSiblingNodes'](_0x3e8a40,'backward'),..._0x4809db['getSiblingNodes'](_0x3e8a40,'forward')];})['flat']();return _0x46f4c4=[...new Set(_0x46f4c4)],_0x46f4c4;}['_getTranslationKeyForListStyle'](_0x3207d5){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3207d5)||'default')['toUpperCase']()+'_LIST_'+_0x3207d5['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0xd068a0{['afterInit'](){const _0x543e8d=this['editor'];if(!_0x543e8d['plugins']['has']('MediaEmbedEditing'))return;const _0x28b5a7=_0x543e8d['plugins']['get']('TrackChangesEditing'),_0x4b1a02=_0x543e8d['locale'];_0x28b5a7['enableCommand']('mediaEmbed'),_0x28b5a7['descriptionFactory']['registerElementLabel']('media',_0xc68f21=>o(_0x4b1a02,'ELEMENT_MEDIA',_0xc68f21)),_0x543e8d['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x174aa1,{writer:_0x498f5b,options:_0x3c5160})=>{if(_0x3c5160['showSuggestionHighlights'])return _0x498f5b['createEmptyElement']('div');},'converterPriority':'high'}),_0x543e8d['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2a303b,_0x367a9c,_0x5aab56)=>{_0x5aab56['options']['showSuggestionHighlights']&&_0x2a303b['stop']();},{'priority':'high'});}}class gt extends _0xd068a0{['afterInit'](){const _0x4394bf=this['editor'];_0x4394bf['plugins']['has']('MentionEditing')&&_0x4394bf['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0xd068a0{['afterInit'](){const _0x20b9f2=this['editor'],_0x4a11e1=_0x20b9f2['plugins']['get']('TrackChangesEditing');_0x20b9f2['plugins']['has']('MultiLevelList')&&(_0x4a11e1['enableDefaultAttributesIntegration']('multiLevelList'),_0x4a11e1['registerBlockAttribute']('listMarkerStyle'),_0x4a11e1['descriptionFactory']['registerDescriptionCallback'](_0x4ab6bc=>this['handleDescriptions'](_0x4ab6bc)));}['handleDescriptions'](_0x48be59){const _0x11da84=this['editor']['locale'],{data:_0x3f2142}=_0x48be59,_0x399773={'type':'format','content':''};if(_0x3f2142&&'listMarkerStyle'==_0x3f2142['key']){if(!_0x3f2142['oldValue'])return{'type':'format','content':o(_0x11da84,'*Set\x20format:*\x20%0',o(_0x11da84,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3f2142['newValue']+')'};if(!_0x3f2142['newValue']){let _0x2c014d=_0x48be59['head'];for(;_0x2c014d;){if(_0x2c014d['data']&&'listType'==_0x2c014d['data']['key']&&_0x2c014d['data']['newValue'])return _0x399773;_0x2c014d=_0x2c014d['next'];}return{'type':'format','content':o(_0x11da84,'*Remove\x20format:*\x20%0',o(_0x11da84,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3f2142['oldValue']+')'};}}}}class mt extends _0xd068a0{['afterInit'](){const _0xd32b3c=this['editor'];if(!_0xd32b3c['plugins']['has']('PageBreakEditing'))return;_0xd32b3c['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x129c33=_0xd32b3c['plugins']['get']('TrackChangesEditing'),_0x72108=_0xd32b3c['locale'];_0x129c33['descriptionFactory']['registerElementLabel']('pageBreak',_0x16e2db=>o(_0x72108,'ELEMENT_PAGE_BREAK',_0x16e2db));}}class dt extends _0xd068a0{['afterInit'](){const _0x1d6d20=this['editor'];if(!_0x1d6d20['plugins']['has']('Paragraph'))return;const _0x2683b4=_0x1d6d20['locale'],_0x23b859=_0x1d6d20['plugins']['get']('TrackChangesEditing');_0x23b859['descriptionFactory']['registerElementLabel']('paragraph',_0x236cf3=>o(_0x2683b4,'ELEMENT_PARAGRAPH',_0x236cf3)),_0x23b859['enableDefaultAttributesIntegration']('paragraph'),_0x23b859['enableCommand']('insertParagraph'),_0x1d6d20['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1d6d20),{'priority':'highest'}),_0x1d6d20['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x45b313,_0x2e1d77,_0xff80c)=>{_0xff80c['options']['showSuggestionHighlights']&&nr(_0x1d6d20,{'showActiveMarker':!0x1})(_0x45b313,_0x2e1d77,_0xff80c);},{'priority':'highest'});const _0x45c44a=_0x23b859['descriptionFactory'];_0x45c44a['registerDescriptionCallback'](_0x4377fe=>{if('insertion'!==_0x4377fe['type'])return;const {start:_0x41cc39,end:_0x2a3266}=_0x4377fe['getFirstRange']();if(!_0x41cc39['isTouching'](_0x2a3266)||!_0x41cc39['nodeAfter'])return;const _0x28e15d=_0x1d6d20['model']['schema'],_0x4dd5db=_0x41cc39['nodeAfter'];return _0x28e15d['isBlock'](_0x4dd5db)&&!_0x28e15d['isLimit'](_0x4dd5db)&&_0x28e15d['checkChild'](_0x4dd5db,'$text')?{'type':'insertion','content':o(_0x2683b4,'*Insert:*\x20%0',_0x45c44a['getItemLabel'](_0x4dd5db,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbfa951=this['editor'],_0x4a0fc6=_0xbfa951['locale'];_0xbfa951['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d8c06=>{if('formatBlock'!=_0x3d8c06['type'])return;const {data:_0xd41449}=_0x3d8c06;return _0xd41449&&'paragraph'==_0xd41449['commandName']?{'type':'format','content':o(_0x4a0fc6,'*Change\x20to:*\x20%0',o(_0x4a0fc6,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2fb768,{showActiveMarker:_0x525c72=!0x0}={}){return(_0x558840,_0x4f0e99,_0x27bfbe)=>{const _0xfc5115=_0x2fb768['plugins']['get']('TrackChangesEditing'),_0x53289b=_0x4f0e99['markerRange']['start'],_0x5a6831=_0x4f0e99['markerRange']['end'],_0x2949ee=_0x2fb768['model']['schema'];if(!_0x53289b['isTouching'](_0x5a6831)||!_0x53289b['nodeAfter'])return;const _0xb6f5a4=_0x53289b['nodeAfter'];if(_0x2949ee['isBlock'](_0xb6f5a4)&&!_0x2949ee['isLimit'](_0xb6f5a4)&&_0x2949ee['checkChild'](_0xb6f5a4,'$text')){if(!_0x27bfbe['consumable']['consume'](_0x4f0e99['markerRange'],_0x558840['name']))return;const _0x3a320d=_0x27bfbe['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x1ea8a6=_0x27bfbe['mapper']['toViewPosition'](_0x5a6831);_0x525c72&&_0xfc5115['activeMarkers']['includes'](_0x4f0e99['markerName'])&&_0x27bfbe['writer']['addClass']('ck-suggestion-marker--active',_0x3a320d),_0x27bfbe['writer']['insert'](_0x1ea8a6,_0x3a320d),_0x27bfbe['mapper']['bindElementToMarker'](_0x3a320d,_0x4f0e99['markerName']);}};}class pt extends _0xd068a0{['afterInit'](){const _0x55861d=this['editor'];if(!_0x55861d['plugins']['has']('RemoveFormatEditing'))return;_0x55861d['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ba2e2=this['editor'];_0x5ba2e2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x397d7a=>{if('formatBlock'!=_0x397d7a['type']&&'formatInline'!=_0x397d7a['type'])return;const {data:_0x29bde1}=_0x397d7a;return _0x29bde1&&'removeFormat'==_0x29bde1['commandName']?{'type':'format','content':o(_0x5ba2e2['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0xd068a0{['afterInit'](){const _0x315708=this['editor'];if(!_0x315708['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x349d42=_0x315708['plugins']['get']('TrackChangesEditing');_0x349d42['enableCommand']('goToPreviousRestrictedEditingException'),_0x349d42['enableCommand']('goToNextRestrictedEditingException');const _0x55dfcd=_0x315708['plugins']['get']('RestrictedEditingModeEditing');_0x55dfcd['enableCommand']('trackChanges'),_0x55dfcd['enableCommand']('acceptSuggestion'),_0x55dfcd['enableCommand']('discardSuggestion'),_0x55dfcd['enableCommand']('acceptAllSuggestions'),_0x55dfcd['enableCommand']('discardAllSuggestions'),_0x55dfcd['enableCommand']('acceptSelectedSuggestions'),_0x55dfcd['enableCommand']('discardSelectedSuggestions');}}class bt extends _0xd068a0{static get['requires'](){return[_0x5dd563];}['init'](){const _0x5c516b=this['editor'],_0x3b227f=_0x5c516b['plugins']['get']('TrackChangesEditing');_0x3b227f['enableCommand']('shiftEnter'),_0x5c516b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x5c516b),{'priority':'high'}),_0x5c516b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x5c516b),{'priority':'high'}),_0x5c516b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1daa2d,_0x6265f5,_0x4b14bf)=>{_0x4b14bf['options']['showSuggestionHighlights']&&de(_0x5c516b,{'showActiveMarker':!0x1})(_0x1daa2d,_0x6265f5,_0x4b14bf);}),_0x3b227f['descriptionFactory']['registerElementLabel']('softBreak',_0x10557c=>o(_0x5c516b['locale'],'ELEMENT_LINE_BREAK',_0x10557c));}}function de(_0x2e1972,{showActiveMarker:_0x612a4a=!0x0}={}){return(_0x1c52d6,_0x37990e,_0x3381e3)=>{const _0x2fd91e=_0x2e1972['plugins']['get']('TrackChangesEditing');if(!_0x3381e3['consumable']['test'](_0x37990e['markerRange'],_0x1c52d6['name']))return;const _0x3c21f2=_0x2e1972['model'];for(const _0x29ea1c of _0x37990e['markerRange']['getItems']()){if(!_0x29ea1c['is']('element','softBreak'))continue;const _0x392cc7='deletion'==_0x37990e['markerName']['split'](':')[0x1]?'merge':'split',_0x507bfe=_0x3381e3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x392cc7}),_0x305a3e=_0x3381e3['mapper']['toViewPosition'](_0x3c21f2['createPositionBefore'](_0x29ea1c));_0x612a4a&&_0x2fd91e['activeMarkers']['includes'](_0x37990e['markerName'])&&_0x3381e3['writer']['addClass']('ck-suggestion-marker--active',_0x507bfe),_0x3381e3['writer']['insert'](_0x305a3e,_0x507bfe),_0x3381e3['mapper']['bindElementToMarker'](_0x507bfe,_0x37990e['markerName']);}};}class wt extends _0xd068a0{['afterInit'](){const _0x215cc7=this['editor'],_0xc4e0c7=_0x215cc7['model'],_0x557f73=_0x215cc7['locale'];if(!_0x215cc7['plugins']['has']('StandardEditingModeEditing'))return;const _0x1d2e12=_0x215cc7['plugins']['get']('TrackChangesEditing'),_0x56caa8='restrictedEditingException',_0x117a73=_0x215cc7['commands']['get'](_0x56caa8);_0x1d2e12['enableCommand'](_0x56caa8,(_0x2fac25,_0x5b2360={})=>{const _0x31d3d8=_0xc4e0c7['document']['selection'];if(_0x31d3d8['isCollapsed'])return void _0x2fac25(_0x5b2360);const _0x25b9dc=void 0x0!==_0x5b2360['forceValue']?_0x5b2360['forceValue']:!_0x117a73['value'];_0xc4e0c7['change'](()=>{const _0x54f949=Array['from'](_0x31d3d8['getRanges']());for(const _0x3f4b3a of _0x54f949){const _0x1d85d0=_0x25b9dc?[_0x3f4b3a]:io(_0x56caa8,_0x3f4b3a,_0xc4e0c7);for(const _0x3e3d26 of _0x1d85d0)_0x1d2e12['markInlineFormat'](_0x3e3d26,{'commandName':_0x56caa8,'commandParams':[{'forceValue':_0x25b9dc}]});}});}),_0x1d2e12['descriptionFactory']['registerDescriptionCallback'](_0x331fad=>{if('formatBlock'!=_0x331fad['type']&&'formatInline'!=_0x331fad['type'])return;const {data:_0x31ddba}=_0x331fad;return _0x31ddba&&_0x31ddba['commandName']==_0x56caa8?_0x31ddba['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x557f73,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x557f73,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0xd068a0{['afterInit'](){const _0x213eba=this['editor'];if(!_0x213eba['plugins']['has']('Style')||!_0x213eba['plugins']['has']('DataSchema'))return;const _0xfd5e1c=_0x213eba['plugins']['get']('TrackChangesEditing'),_0x317f8a=_0x213eba['locale'],_0x444c82=_0x213eba['config']['get']('style')||{},_0xa0dfb1=_0x213eba['plugins']['get']('GeneralHtmlSupport'),_0x328392=_0x213eba['plugins']['get']('StyleUtils')['normalizeConfig'](_0x213eba['plugins']['get']('DataSchema'),_0x444c82['definitions']);_0xfd5e1c['enableDefaultAttributesIntegration']('style');const _0x47c733=new Set();for(const _0x34bdd5 of _0x328392['block']){const _0x2cad9e=_0xa0dfb1['getGhsAttributeNameForElement'](_0x34bdd5['element']);_0x47c733['add'](_0x2cad9e);}const _0x1c14c4=new Set();for(const _0x1011e4 of _0x328392['inline']){const _0x396355=_0xa0dfb1['getGhsAttributeNameForElement'](_0x1011e4['element']);_0x1c14c4['add'](_0x396355);for(const _0x1752a7 of _0x1011e4['ghsAttributes'])_0x1c14c4['add'](_0x1752a7);}for(const _0x3e9310 of _0x47c733)_0xfd5e1c['registerBlockAttribute'](_0x3e9310),_0xfd5e1c['descriptionFactory']['registerAttributeLabel'](_0x3e9310,o(_0x317f8a,'FORMAT_STYLE'));for(const _0x4395f1 of _0x1c14c4)_0xfd5e1c['registerInlineAttribute'](_0x4395f1),_0xfd5e1c['descriptionFactory']['registerAttributeLabel'](_0x4395f1,o(_0x317f8a,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcc0053=this['editor'],_0x3431f8=_0xcc0053['locale'];_0xcc0053['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x78880e=>{if('formatBlock'!=_0x78880e['type']&&'formatInline'!=_0x78880e['type'])return;const {data:_0x37b6c2}=_0x78880e;return _0x37b6c2&&'style'===_0x37b6c2['commandName']?_0x37b6c2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3431f8,'*Set\x20format:*\x20%0',_0x37b6c2['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3431f8,'*Remove\x20format:*\x20%0',_0x37b6c2['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0xd068a0{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x250535){super(_0x250535),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x124344=this['editor'],_0x128018=_0x124344['model']['document']['selection'];if(!_0x124344['plugins']['has']('TableEditing'))return;const _0x11ff52=_0x124344['locale'],_0x10747c=_0x124344['plugins']['get']('TrackChangesEditing'),_0x4835b1=_0x124344['plugins']['get']('TableUtils');_0x10747c['descriptionFactory']['registerElementLabel']('table',_0x104373=>o(_0x11ff52,'ELEMENT_TABLE',_0x104373)),this['_setupColumnsRowsFixing'](),_0x10747c['enableCommand']('insertTable'),_0x10747c['enableCommand']('selectTableRow'),_0x10747c['enableCommand']('selectTableColumn');for(const _0x5455d3 of['insertTableRowAbove','insertTableRowBelow']){const _0x5b480c=_0x124344['commands']['get'](_0x5455d3);_0x10747c['enableCommand'](_0x5455d3,_0x1037fa=>{_0x124344['model']['change'](_0x5633cd=>{_0x1037fa();const _0x4d8b46='above'===_0x5b480c['order'],_0x33e23d=_0x4835b1['getSelectionAffectedTableCells'](_0x128018),_0xd850f4=_0x4835b1['getRowIndexes'](_0x33e23d),_0x3b985f=_0x4d8b46?_0xd850f4['first']-0x1:_0xd850f4['last']+0x1,_0x1f52ec=_0x33e23d[0x0]['findAncestor']('table'),_0x55a054=_0x4835b1['createTableWalker'](_0x1f52ec,{'startRow':_0x3b985f,'endRow':_0x3b985f}),_0x5e7a4e=Array['from'](_0x55a054)['map'](_0x4ebea6=>_0x5633cd['createRangeOn'](_0x4ebea6['cell']));_0x10747c['markMultiRangeInsertion'](_0x5e7a4e,'tableRow');});});}for(const _0x1bda21 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5a3464=_0x124344['commands']['get'](_0x1bda21);_0x10747c['enableCommand'](_0x1bda21,_0x1eed41=>{_0x124344['model']['change'](_0x50f542=>{_0x1eed41();const _0x17b826='left'===_0x5a3464['order'],_0x1a4c9e=_0x4835b1['getSelectionAffectedTableCells'](_0x128018),_0x18e894=_0x4835b1['getColumnIndexes'](_0x1a4c9e),_0x46d9ad=_0x17b826?_0x18e894['first']-0x1:_0x18e894['last']+0x1,_0x254225=_0x1a4c9e[0x0]['findAncestor']('table'),_0x2df62c=_0x4835b1['createTableWalker'](_0x254225,{'startRow':0x0,'column':_0x46d9ad,'includeAllSlots':!0x1}),_0x3d0734=Array['from'](_0x2df62c)['map'](_0x253cac=>_0x50f542['createRangeOn'](_0x253cac['cell']));_0x10747c['markMultiRangeInsertion'](_0x3d0734,'tableColumn');});});}for(const _0x46ee79 of['removeTableRow','removeTableColumn']){const _0x44828e=_0x46ee79['substr'](0xb),_0x18a0e8=_0x44828e['toLowerCase'](),_0x1216db=_0x18a0e8['substr'](0x0,0x3)+'span',_0x220a26='table'+_0x44828e,_0x49f40f='min'+_0x44828e,_0x4bfc85='max'+_0x44828e;_0x10747c['enableCommand'](_0x46ee79,()=>{_0x124344['model']['change'](_0x220132=>{const _0x3acf37=_0x4835b1['getSelectionAffectedTableCells'](_0x128018),_0x1ecc1a=_0x3acf37[0x0]['findAncestor']('table');let _0x4556e1;if('removeTableRow'==_0x46ee79){const _0x4a6975=_0x4835b1['getRowIndexes'](_0x3acf37);_0x4556e1={'startRow':_0x4a6975['first'],'endRow':_0x4a6975['last'],'includeAllSlots':!0x0};}else{const _0x2caa75=_0x4835b1['getColumnIndexes'](_0x3acf37);_0x4556e1={'startColumn':_0x2caa75['first'],'endColumn':_0x2caa75['last'],'includeAllSlots':!0x0};}const _0x3e2304=_0x4835b1['createTableWalker'](_0x1ecc1a,_0x4556e1),_0x47a1de=Array['from'](_0x3e2304)['map'](({cell:_0x20eb41})=>_0x20eb41),_0xdb0ff2=Ee(_0x47a1de['filter'](_0x4cced7=>_0x4cced7['hasAttribute'](_0x1216db))),_0x2658b2=Ee(_0x47a1de['filter'](_0x96560c=>!_0x96560c['hasAttribute'](_0x1216db)))['map'](_0x4e21d0=>_0x220132['createRangeOn'](_0x4e21d0)),_0x20c58d=_0x10747c['markMultiRangeDeletion'](_0x2658b2,_0x220a26);if(_0x20c58d&&('tableRow'==_0x20c58d['subType']||'tableColumn'==_0x20c58d['subType'])){const _0x226aa7=this['_getSuggestionCoords'](_0x20c58d);for(const _0x2403d1 of _0xdb0ff2){const _0x38d3c2=_0x220132['createRangeOn'](_0x2403d1),_0x5623f5=_0x4835b1['getCellLocation'](_0x2403d1),_0x59340e=_0x2403d1['getAttribute'](_0x1216db)-0x1,_0x42a23d=_0x226aa7[_0x49f40f],_0x51f5e4=_0x226aa7[_0x4bfc85];_0x42a23d<=_0x5623f5[_0x18a0e8]&&_0x5623f5[_0x18a0e8]+_0x59340e<=_0x51f5e4&&_0x20c58d['addRange'](_0x38d3c2);}}});});}function _0x6c1a62(_0x4510c0){const _0x21e294=Array['from'](_0x128018['getRanges']())['map'](_0x379bf4=>_0x2b023b['fromRange'](_0x379bf4));_0x124344['model']['change'](_0x159c2f=>{const _0x2b25bd=_0x159c2f['batch'];_0x4510c0=_0x4510c0['filter'](_0x2fc2df=>'$graveyard'!=_0x2fc2df['root']['rootName']),_0x159c2f['setSelection'](_0x4510c0),_0x124344['commands']['get']('removeTableRow')['refresh'](),_0x124344['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x124344['model']['enqueueChange'](()=>{_0x124344['model']['enqueueChange'](_0x2b25bd,_0xbe6cee=>{const _0xa7c4=_0x21e294['filter'](_0x294a81=>'$graveyard'!=_0x294a81['root']['rootName']);_0xa7c4['length']>0x0&&_0xbe6cee['setSelection'](_0xa7c4);for(const _0x299d2c of _0x21e294)_0x299d2c['detach']();});});});}function _0x4e5be7(_0x15c391){_0x124344['model']['change'](_0xa7edf8=>{const _0x8cd5c8=Array['from'](_0x128018['getRanges']())['map'](_0x19cbcc=>_0x2b023b['fromRange'](_0x19cbcc)),_0x3cdda5=[];for(const _0x373c49 of _0x15c391)for(const _0x18fe94 of _0x373c49['getItems']({'shallow':!0x0}))_0x3cdda5['push'](_0x18fe94);for(const _0xb6d9c4 of _0x3cdda5)'$graveyard'!=_0xb6d9c4['root']['rootName']&&(_0xa7edf8['setSelection'](_0xa7edf8['createPositionAt'](_0xb6d9c4,0x0)),_0x124344['commands']['get']('removeTableColumn')['refresh'](),_0x124344['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5c44c5=_0x8cd5c8['filter'](_0x4b8049=>'$graveyard'!=_0x4b8049['root']['rootName']);_0x5c44c5['length']>0x0&&_0xa7edf8['setSelection'](_0x5c44c5);for(const _0x1c7a63 of _0x8cd5c8)_0x1c7a63['detach']();});}function _0x28b384(_0x2fd4d1,_0x5f4600){return _0x5f4600['every'](_0x47377c=>_0x2fd4d1['some'](_0x144e59=>_0x144e59['end']['isEqual'](_0x47377c['start'])||_0x47377c['end']['isEqual'](_0x144e59['start'])));}function _0x248803(_0x368251,_0x28e008){return!_0x368251['some'](_0x4a67d8=>_0x28e008['some'](_0x3ef004=>_0x4a67d8['isIntersecting'](_0x3ef004)))&&_0x368251['some'](_0x4d1f2d=>_0x28e008['some'](_0x4848b3=>_0x4d1f2d['end']['isTouching'](_0x4848b3['start'])));}_0x124344['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1f4ad3,_0x2a5b64,_0x3b040)=>{if(!_0x3b040['options']['showSuggestionHighlights'])return;const _0x542daa=_0x2a5b64['item'];if(!_0x542daa)return;const _0x5195de=_0x3b040['mapper']['toViewElement'](_0x542daa);function _0x31e417(_0x246efb){return Array['isArray'](_0x246efb)?_0x246efb:[_0x246efb];}_0x5195de&&'tableCell'===_0x542daa['name']&&_0x47412f(_0x5195de,_0x3b040['writer'],(_0x4491eb,_0x13ffea,_0x29e242)=>_0x29e242['addClass'](_0x31e417(_0x13ffea['classes']),_0x4491eb),(_0x34f970,_0x1f597a,_0x361b21)=>_0x361b21['removeClass'](_0x31e417(_0x1f597a['classes']),_0x34f970));},{'priority':'highest'}),_0x10747c['descriptionFactory']['registerDescriptionCallback'](_0x591f1c=>{if('insertion'!=_0x591f1c['type']&&'deletion'!=_0x591f1c['type'])return;const _0x40e040=_0x591f1c['getContainedElement']();if(null!=_0x40e040&&_0x40e040['is']('element','table')){if('insertion'==_0x591f1c['type']){const _0x3d6512=_0x591f1c['getItems']()['filter'](_0x2ccf94=>_0x2ccf94['is']('$textProxy'))['map'](_0x2b3db5=>_0x2b3db5['data']);if(_0x3d6512['length'])return{'type':'insertion','content':o(_0x11ff52,'*Insert:*\x20%0',o(_0x11ff52,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3d6512['join']('\x20')+'\x22'))};}if('deletion'==_0x591f1c['type']){const _0x1beb7a=_0x591f1c['getItems']()['filter'](_0x4700da=>_0x4700da['is']('$textProxy'))['map'](_0x18ca67=>_0x18ca67['data']);if(_0x1beb7a['length'])return{'type':'deletion','content':o(_0x11ff52,'*Remove:*\x20%0',o(_0x11ff52,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1beb7a['join']('\x20')+'\x22'))};}}}),_0x10747c['descriptionFactory']['registerDescriptionCallback'](_0x4dbde5=>{if('tableRow'==_0x4dbde5['subType']){const _0x43a896=_0x4dbde5['getItems']()['filter'](_0x24963e=>_0x24963e['is']('$textProxy'))['map'](_0x1663e7=>_0x1663e7['data']),_0x5a00a6=this['_getSuggestionCoords'](_0x4dbde5),_0x4f6f3e=_0x5a00a6['maxRow']-_0x5a00a6['minRow']+0x1;if('insertion'==_0x4dbde5['type'])return _0x43a896['length']?{'type':'insertion','content':o(_0x11ff52,'*Insert:*\x20%0',o(_0x11ff52,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4f6f3e,'\x22'+_0x43a896['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x11ff52,'*Insert:*\x20%0',o(_0x11ff52,'ELEMENT_TABLE_ROW',_0x4f6f3e))};if('deletion'==_0x4dbde5['type'])return _0x43a896['length']?{'type':'deletion','content':o(_0x11ff52,'*Remove:*\x20%0',o(_0x11ff52,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4f6f3e,'\x22'+_0x43a896['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x11ff52,'*Remove:*\x20%0',o(_0x11ff52,'ELEMENT_TABLE_ROW',_0x4f6f3e))};}if('tableColumn'==_0x4dbde5['subType']){const _0x3d0ccb=_0x4dbde5['getItems']()['filter'](_0xf35688=>_0xf35688['is']('$textProxy'))['map'](_0x2f7cdf=>_0x2f7cdf['data']),_0x302d5c=this['_getSuggestionCoords'](_0x4dbde5),_0x6e010b=_0x302d5c['maxColumn']-_0x302d5c['minColumn']+0x1;if('insertion'==_0x4dbde5['type'])return _0x3d0ccb['length']?{'type':'insertion','content':o(_0x11ff52,'*Insert:*\x20%0',o(_0x11ff52,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x6e010b,'\x22'+_0x3d0ccb['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x11ff52,'*Insert:*\x20%0',o(_0x11ff52,'ELEMENT_TABLE_COLUMN',_0x6e010b))};if('deletion'==_0x4dbde5['type'])return _0x3d0ccb['length']?{'type':'deletion','content':o(_0x11ff52,'*Remove:*\x20%0',o(_0x11ff52,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x6e010b,'\x22'+_0x3d0ccb['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x11ff52,'*Remove:*\x20%0',o(_0x11ff52,'ELEMENT_TABLE_COLUMN',_0x6e010b))};}}),_0x10747c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x6c1a62),_0x10747c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x6c1a62),_0x10747c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4e5be7),_0x10747c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4e5be7),_0x10747c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x28b384),_0x10747c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x28b384),_0x10747c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x248803),_0x10747c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x248803);}['_acceptFormatSuggestionCallbackFactory'](){const _0x35989e=this['editor'],_0x5a7578=_0x35989e['model']['document']['selection'];return(_0x46eefe,_0x3e2e18)=>{_0x35989e['model']['change'](_0x323295=>{const {commandName:_0x9fce6b,commandParams:_0x1c1e25}=_0x3e2e18;let _0x5a0994=_0x46eefe[0x0]['end']['nodeBefore'];_0x1c1e25&&_0x1c1e25[0x0]&&!0x1===_0x1c1e25[0x0]['forceValue']&&(_0x5a0994=_0x46eefe[0x0]['start']['nodeAfter']);const _0x1568b3=_0x323295['createRangeIn'](_0x5a0994);if('$graveyard'==_0x1568b3['root']['rootName'])return;const _0x55c309=Array['from'](_0x5a7578['getRanges']())['map'](_0x10547e=>_0x2b023b['fromRange'](_0x10547e));_0x323295['setSelection'](_0x1568b3),_0x35989e['commands']['get'](_0x9fce6b)['refresh'](),_0x1c1e25['push']({'forceDefaultExecution':!0x0}),_0x35989e['execute'](_0x9fce6b,..._0x1c1e25);const _0x8e963d=_0x55c309['filter'](_0x408c35=>'$graveyard'!=_0x408c35['root']['rootName']);_0x8e963d['length']>0x0&&_0x323295['setSelection'](_0x8e963d);for(const _0x458e18 of _0x55c309)_0x458e18['detach']();});};}['_getCoordsForCells'](_0x36031b){const _0x5f19de=this['editor']['plugins']['get']('TableUtils');let _0x310374=Number['MAX_SAFE_INTEGER'],_0x1a344b=Number['MIN_SAFE_INTEGER'],_0x4c84b1=Number['MAX_SAFE_INTEGER'],_0x2da8c6=Number['MIN_SAFE_INTEGER'];for(const _0x574f07 of _0x36031b){if('$graveyard'==_0x574f07['root']['rootName'])continue;const {row:_0xb8c8c2,column:_0x51fd59}=_0x5f19de['getCellLocation'](_0x574f07),_0x5534fc=_0x574f07['hasAttribute']('rowspan')?_0x574f07['getAttribute']('rowspan')-0x1:0x0,_0x3c40bd=_0x574f07['hasAttribute']('colspan')?_0x574f07['getAttribute']('colspan')-0x1:0x0;_0x310374=_0xb8c8c2<_0x310374?_0xb8c8c2:_0x310374,_0x1a344b=_0xb8c8c2+_0x5534fc>_0x1a344b?_0xb8c8c2+_0x5534fc:_0x1a344b,_0x4c84b1=_0x51fd59<_0x4c84b1?_0x51fd59:_0x4c84b1,_0x2da8c6=_0x51fd59+_0x3c40bd>_0x2da8c6?_0x51fd59+_0x3c40bd:_0x2da8c6;}return{'minRow':_0x310374,'maxRow':_0x1a344b,'minColumn':_0x4c84b1,'maxColumn':_0x2da8c6};}['_setupColumnsRowsFixing'](){const _0x44522a=this['editor'],_0xff410e=_0x44522a['plugins']['get']('TrackChangesEditing'),_0x9d2a3c=_0x44522a['plugins']['get']('TableUtils');_0x44522a['model']['document']['on']('change:data',()=>{const _0x58286b=Array['from'](_0x44522a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x56d64c,data:_0x405332}of _0x58286b){const {group:_0x2c0cf1,id:_0x4370e9,subType:_0x368e24}=_0xff410e['_splitMarkerName'](_0x56d64c);if('suggestion'!=_0x2c0cf1)continue;if(null!=_0x405332['oldRange'])continue;const _0x15dec3=_0xff410e['getSuggestion'](_0x4370e9);this['_tablePostFixingSubtypes']['includes'](_0x368e24)&&this['_tableSuggestions']['add'](_0x15dec3);}},{'priority':'low'});const _0x1b67d7=(_0x55b87f,_0x11e717)=>{let _0x3d3c89=!0x1;const _0x19cda9=_0x11e717['createRangeOn'](_0x55b87f),_0x210656=_0x55b87f['findAncestor']('table'),_0x20c2e5=_0x9d2a3c['getCellLocation'](_0x55b87f);for(const _0x457c0b of this['_tableSuggestions']){const _0x2b8290=_0x457c0b['subType'],_0x4dc6eb=_0x2b8290['startsWith']('tablePaste'),_0x1479bb=_0x2b8290['substr'](_0x4dc6eb?0xa:0x5),_0xa6470b=_0x1479bb['toLowerCase'](),_0x3ccb4b=_0xa6470b['substr'](0x0,0x3)+'span',_0x27cee3='min'+_0x1479bb,_0x3de655='max'+_0x1479bb;if(!_0x457c0b['isInContent'])continue;if(_0x210656!=_0x457c0b['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x457c0b['isIntersectingWithRange'](_0x19cda9))continue;const _0x4a6b1d=_0x55b87f['hasAttribute'](_0x3ccb4b)?_0x55b87f['getAttribute'](_0x3ccb4b)-0x1:0x0,_0x512a2=this['_getSuggestionCoords'](_0x457c0b),_0x42d652=_0x512a2[_0x27cee3],_0x155471=_0x512a2[_0x3de655];_0x42d652<=_0x20c2e5[_0xa6470b]&&_0x20c2e5[_0xa6470b]+_0x4a6b1d<=_0x155471&&(_0x457c0b['addRange'](_0x19cda9),_0x3d3c89=!0x0);}return _0x3d3c89;};_0x44522a['model']['document']['registerPostFixer'](_0x5e3173=>{let _0x407673=!0x1;for(const _0x592313 of _0x44522a['model']['document']['differ']['getChanges']())if('insert'==_0x592313['type']){if('tableRow'==_0x592313['name']){for(const _0x5ba043 of _0x592313['position']['nodeAfter']['getChildren']())_0x407673=_0x407673||_0x1b67d7(_0x5ba043,_0x5e3173);}else'tableCell'==_0x592313['name']&&(_0x407673=_0x407673||_0x1b67d7(_0x592313['position']['nodeAfter'],_0x5e3173));}return _0x407673;});}['_getSuggestionCoords'](_0x22a390){return this['_getCoordsForCells'](_0x22a390['getRanges']()['map'](_0x4499f1=>_0x4499f1['start']['nodeAfter']));}}function Ee(_0x3d1ab5){return Array['from'](new Set(_0x3d1ab5)['values']());}class St extends _0xd068a0{static get['requires'](){return[jt];}['afterInit'](){const _0x13abc1=this['editor'],_0x1af742=_0x13abc1['model']['document']['selection'],_0x372bb5=_0x13abc1['locale'];if(!_0x13abc1['plugins']['has']('TableEditing'))return;const _0x1c66f8=_0x13abc1['plugins']['get']('TrackChangesEditing'),_0x46c30f=_0x13abc1['plugins']['get']('TableUtils'),_0x227c40=_0x13abc1['plugins']['get'](jt);_0x227c40['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1c66f8['enableCommand']('mergeTableCells',()=>{const _0x52ee9a=_0x46c30f['getSelectionAffectedTableCells'](_0x13abc1['model']['document']['selection']);_0x13abc1['model']['change'](()=>{_0x1c66f8['markMultiRangeBlockFormat'](_0x52ee9a,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x13abc1['commands']['get']('mergeTableCells')['on']('execute',(_0x3c3a90,_0x570ea8)=>{_0x13abc1['commands']['get']('trackChanges')['value']&&(_0x570ea8['length']>0x0&&_0x570ea8[_0x570ea8['length']-0x1]&&_0x570ea8[_0x570ea8['length']-0x1]['forceDefaultExecution']||_0x1c66f8['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3c3a90['stop']());},{'priority':'highest'});for(const _0x4035d8 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3dd4c4=_0x13abc1['commands']['get'](_0x4035d8);_0x1c66f8['enableCommand'](_0x4035d8,()=>{const _0x1034e2=_0x13abc1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x524f6b=>_0x524f6b['is']('element','tableCell')),_0x1e52d9=_0x3dd4c4['value'];_0x13abc1['model']['change'](()=>{_0x1c66f8['markMultiRangeBlockFormat']([_0x1034e2,_0x1e52d9],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4222f1 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4e9639=_0x13abc1['commands']['get'](_0x4222f1);_0x1c66f8['enableCommand'](_0x4222f1,()=>{const _0x1daa7a=_0x46c30f['getSelectionAffectedTableCells'](_0x13abc1['model']['document']['selection'])[0x0],_0x33eba5=_0x1daa7a['findAncestor']('table'),{column:_0x5b7d0c,row:_0x10793b}=_0x46c30f['getCellLocation'](_0x1daa7a);let _0x9c0b02=[];if('horizontally'==_0x4e9639['direction']){const _0x65f40e=_0x46c30f['createTableWalker'](_0x33eba5,{'startRow':_0x10793b,'endRow':_0x10793b,'includeAllSlots':!0x0});_0x9c0b02=Array['from'](_0x65f40e)['map'](_0x4a23f4=>_0x4a23f4['cell']);}else{const _0x43bc2b=_0x46c30f['createTableWalker'](_0x33eba5,{'column':_0x5b7d0c,'includeAllSlots':!0x0});_0x9c0b02=Array['from'](_0x43bc2b)['map'](_0xda37de=>_0xda37de['cell']);}_0x13abc1['model']['change'](_0x11489e=>{_0x1c66f8['markBlockFormat'](_0x11489e['createRangeOn'](_0x1daa7a),{'commandName':_0x4222f1,'commandParams':[]},_0x9c0b02,_0x4222f1);});});}_0x1c66f8['descriptionFactory']['registerDescriptionCallback'](_0x287b48=>{if('formatBlock'!=_0x287b48['type']&&'formatInline'!=_0x287b48['type'])return;const {data:_0x31732c}=_0x287b48;return _0x31732c&&'mergeTableCells'==_0x31732c['commandName']?{'type':'format','content':o(_0x372bb5,'*Merge\x20cells*')}:void 0x0;}),_0x1c66f8['descriptionFactory']['registerDescriptionCallback'](_0x43b525=>{if('formatBlock'!=_0x43b525['type']&&'formatInline'!=_0x43b525['type'])return;const {data:_0x5ce9d9}=_0x43b525;return _0x5ce9d9?'splitTableCellVertically'==_0x5ce9d9['commandName']?{'type':'format','content':o(_0x372bb5,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5ce9d9['commandName']?{'type':'format','content':o(_0x372bb5,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x921c1b=_0x227c40['_acceptFormatSuggestionCallbackFactory']();for(const _0x256836 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1c66f8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x256836,'accept',_0x921c1b);for(const _0x37af55 of['splitTableCellVertically','splitTableCellHorizontally'])_0x1c66f8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x37af55,'accept',_0x921c1b);_0x1c66f8['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x566b57=>{_0x13abc1['model']['change'](_0x241360=>{const _0x16a5ec=Array['from'](_0x1af742['getRanges']())['map'](_0xa0938e=>_0x2b023b['fromRange'](_0xa0938e));_0x241360['setSelection'](_0x566b57),_0x13abc1['commands']['get']('mergeTableCells')['refresh'](),_0x13abc1['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4b873d=_0x16a5ec['filter'](_0x94c92f=>'$graveyard'!=_0x94c92f['root']['rootName']);_0x4b873d['length']>0x0&&_0x241360['setSelection'](_0x4b873d);for(const _0xd0cf5e of _0x16a5ec)_0xd0cf5e['detach']();});});for(const _0x5167de of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xecc468=_0x13abc1['commands']['get'](_0x5167de);_0xecc468['on']('set:isEnabled',(_0x342f45,_0x6a2765,_0x282f15)=>{if(_0x282f15){const _0x4f46c3=_0x13abc1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1f7db0=>_0x1f7db0['is']('element','tableCell'));this['_areMergableCells'](_0xecc468['value'],_0x4f46c3)||(_0x342f45['return']=!0x1,_0x342f45['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x502427=this['editor']['commands']['get']('mergeTableCells'),_0x1693a7=this['editor']['plugins']['get']('TableUtils');if(!_0x502427['isEnabled'])return!0x1;const _0x3f704c=_0x1693a7['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5c68e6 of _0x3f704c)for(const _0xbd8426 of _0x3f704c)if(_0x5c68e6!=_0xbd8426&&!this['_areMergableCells'](_0x5c68e6,_0xbd8426))return!0x1;return!0x0;}['_areMergableCells'](_0x6132fc,_0xbe2254){const _0x5866c0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4901eb=this['editor']['model']['createRangeOn'](_0x6132fc),_0x373090=this['editor']['model']['createRangeOn'](_0xbe2254),_0x4f9ca7=new Set(),_0x4e5350=new Set();for(const _0x5ddbe5 of _0x5866c0['getSuggestions']())if(('insertion'==_0x5ddbe5['type']||'deletion'==_0x5ddbe5['type']||'mergeTableCells'==_0x5ddbe5['subType'])&&_0x5ddbe5['isInContent']){for(const _0x166122 of _0x5ddbe5['getRanges']())_0x166122['containsRange'](_0x4901eb,!0x0)&&_0x4f9ca7['add'](_0x5ddbe5['type']+':'+_0x5ddbe5['author']['id']),_0x166122['containsRange'](_0x373090,!0x0)&&_0x4e5350['add'](_0x5ddbe5['type']+':'+_0x5ddbe5['author']['id']);}if(_0x4f9ca7['size']!=_0x4e5350['size'])return!0x1;for(const _0x531607 of _0x4f9ca7)if(!_0x4e5350['has'](_0x531607))return!0x1;return!0x0;}}class At extends _0xd068a0{static get['requires'](){return[jt];}['afterInit'](){const _0x3a8274=this['editor'];if(!_0x3a8274['plugins']['has']('TableEditing'))return;const _0xbbd23e=_0x3a8274['locale'],_0x1b4989=_0x3a8274['plugins']['get']('TrackChangesEditing');_0x1b4989['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1b4989['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1b4989['registerBlockAttribute']('headingRows'),_0x1b4989['registerBlockAttribute']('headingColumns'),_0x1b4989['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0xbbd23e,'FORMAT_HEADER_ROW')),_0x1b4989['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0xbbd23e,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1cec6a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x396aa2=this['editor']['plugins']['get']('TableUtils'),_0x4bdc9b=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x78e430({showActiveMarker:_0x345460=!0x0,setDataAttribute:_0x2e818b=!0x0}={}){return(_0x504fe2,_0x48682,_0x8cc131)=>{const {type:_0x4be468,id:_0xc0fdf7}=_0x1cec6a['_splitMarkerName'](_0x48682['markerName']),_0x58fdb3=_0x1cec6a['getSuggestion'](_0xc0fdf7),_0x2e8afe=_0x58fdb3['data'];if('formatBlock'!=_0x58fdb3['type']||!_0x2e8afe||'setTableColumnHeader'!=_0x2e8afe['commandName'])return;if(_0x48682['item'])return void _0x504fe2['stop']();if(!_0x8cc131['consumable']['consume'](_0x48682['markerRange'],_0x504fe2['name']))return;const _0x5f4864=_0x48682['markerRange']['start']['nodeAfter'],_0x190ed9=_0x48682['markerRange']['end']['nodeBefore'],_0x370075=_0x5f4864['parent']['parent'],{column:_0x65abea}=_0x396aa2['getCellLocation'](_0x5f4864),{column:_0x2a078b}=_0x396aa2['getCellLocation'](_0x190ed9);for(let _0x3d065b=_0x65abea;_0x3d065b<=_0x2a078b;_0x3d065b++){const _0xe27bb6=_0x396aa2['createTableWalker'](_0x370075,{'column':_0x3d065b,'includeAllSlots':!0x1});for(const _0x11df20 of _0xe27bb6){const _0x528bb2=_0x11df20['cell'],_0x4e3d7c=_0x8cc131['mapper']['toViewElement'](_0x528bb2);_0x8cc131['writer']['addClass']('ck-suggestion-marker-'+_0x4be468,_0x4e3d7c),_0x2e818b&&_0x8cc131['writer']['setAttribute']('data-suggestion',_0xc0fdf7,_0x4e3d7c),_0x8cc131['mapper']['bindElementToMarker'](_0x4e3d7c,_0x48682['markerName']),_0x345460&&(_0x1cec6a['activeMarkers']['includes'](_0x48682['markerName'])?_0x8cc131['writer']['addClass']('ck-suggestion-marker--active',_0x4e3d7c):_0x8cc131['writer']['removeClass']('ck-suggestion-marker--active',_0x4e3d7c));}}};}_0x1cec6a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4bdc9b),_0x1cec6a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4bdc9b),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x78e430(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3d8dc7,_0x5bc83d,_0x2bab42)=>{_0x2bab42['options']['showSuggestionHighlights']&&_0x78e430({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3d8dc7,_0x5bc83d,_0x2bab42);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x227ea5,_0x912ef8,_0x3b39d5)=>{const {type:_0x16a3b6,id:_0x3b73db}=_0x1cec6a['_splitMarkerName'](_0x912ef8['markerName']),_0x4ef2b1=_0x1cec6a['getSuggestion'](_0x3b73db),_0x55405d=_0x4ef2b1['data'];if('formatBlock'!=_0x4ef2b1['type']||!_0x55405d||'setTableColumnHeader'!=_0x55405d['commandName'])return;const _0x589212=_0x3b39d5['mapper']['markerNameToElements'](_0x912ef8['markerName']);if(_0x589212){for(const _0x1a2fb7 of _0x589212)_0x3b39d5['writer']['removeClass']('ck-suggestion-marker-'+_0x16a3b6,_0x1a2fb7),_0x3b39d5['writer']['removeClass']('ck-suggestion-marker--active',_0x1a2fb7),_0x3b39d5['writer']['removeAttribute']('data-suggestion',_0x1a2fb7),_0x3b39d5['mapper']['unbindElementFromMarkerName'](_0x1a2fb7,_0x912ef8['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x255f4a=this['editor'],_0x4e273c=_0x255f4a['locale'];function _0x160ca8(_0x90eee8){return{'type':'format','content':o(_0x4e273c,'*Format:*\x20%0',_0x90eee8)};}_0x255f4a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb45606=>{if('formatBlock'!=_0xb45606['type'])return;const {data:_0x2418ad}=_0xb45606;if(_0x2418ad){if('setTableRowHeader'==_0x2418ad['commandName']){const _0x5c4854=_0x2418ad['commandParams'][0x0]['forceValue'];return _0x160ca8(o(_0x4e273c,_0x5c4854?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2418ad['commandName']){const _0xc798d5=_0x2418ad['commandParams'][0x0]['forceValue'];return _0x160ca8(o(_0x4e273c,_0xc798d5?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x17b1e0=>[_0x17b1e0,null]));class It extends _0xd068a0{static get['requires'](){return[jt];}['afterInit'](){const _0x2d9d4e=this['editor'];if(!_0x2d9d4e['plugins']['has']('TableClipboard'))return;const _0x4b0400=_0x2d9d4e['plugins']['get']('TrackChangesEditing'),_0x3e594e=_0x2d9d4e['plugins']['get']('TableUtils'),_0x49faf1=_0x2d9d4e['plugins']['get'](jt),_0x138123=_0x2d9d4e['plugins']['get']('TableClipboard');_0x49faf1['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2d9d4e['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2d9d4e['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x33fb50=null;_0x2d9d4e['model']['on']('insertContent',(_0x4b31f8,_0x46dcd6)=>{const [_0x2a23c5,_0x36333c]=_0x46dcd6,_0x7baa54=_0x46dcd6[_0x46dcd6['length']-0x1];_0x7baa54&&_0x7baa54['forceDefaultExecution']||_0x4b0400['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xd47ccb,_0x57ce66,_0x20e61a,_0x31c18b,_0x3e4499){if(_0x57ce66&&!_0x57ce66['is']('documentSelection'))return!0x1;const _0x411052=_0x3e4499['getTableIfOnlyTableInContent'](_0xd47ccb,_0x20e61a);if(!_0x411052||!he(_0x411052,void 0x0,_0x31c18b))return!0x1;const _0x346efc=_0x31c18b['getSelectionAffectedTableCells'](_0x20e61a['document']['selection']);if(!_0x346efc['length'])return!0x1;const _0x2a56fc=_0x346efc[0x0]['findAncestor']('table'),_0x338a47=_0x31c18b['getRowIndexes'](_0x346efc),_0x1c1efb=_0x31c18b['getColumnIndexes'](_0x346efc),_0x1d7cc2={'startRow':_0x338a47['first'],'endRow':_0x338a47['last'],'startColumn':_0x1c1efb['first'],'endColumn':_0x1c1efb['last']};return 0x1==_0x346efc['length']&&(_0x1d7cc2['endRow']+=_0x31c18b['getRows'](_0x411052)-0x1,_0x1d7cc2['endColumn']+=_0x31c18b['getColumns'](_0x411052)-0x1),he(_0x2a56fc,_0x1d7cc2,_0x31c18b);}(_0x2a23c5,_0x36333c,_0x2d9d4e['model'],_0x3e594e,_0x138123)&&(_0x4b31f8['stop'](),_0x33fb50={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2d9d4e['model']['change'](()=>{_0x2d9d4e['model']['insertContent'](_0x46dcd6[0x0],_0x46dcd6[0x1],_0x46dcd6[0x2],{'forceDefaultExecution':!0x0});const _0x14d4ab=_0x4253a4(),{rowInsertionRanges:_0x543363,columnInsertionRanges:_0x4fc92e,insertionRanges:_0x54fdad,deletionRanges:_0x52f3cd,cells:_0x3a3edb}=_0x33fb50;_0x543363['length']&&_0x4b0400['markMultiRangeInsertion'](_0x543363,'tablePasteRow',{'tablePasteChainId':_0x14d4ab}),_0x4fc92e['length']&&_0x4b0400['markMultiRangeInsertion'](_0x4fc92e,'tablePasteColumn',{'tablePasteChainId':_0x14d4ab}),_0x54fdad['length']&&(_0x4b0400['markMultiRangeInsertion'](_0x54fdad,'tablePaste',{'tablePasteChainId':_0x14d4ab,'skipNestingCheck':!0x0}),_0x54fdad['forEach'](_0x35ee99=>_0x35ee99['detach']?.())),_0x52f3cd['length']&&(_0x4b0400['markMultiRangeDeletion'](_0x52f3cd,'tablePaste',{'tablePasteChainId':_0x14d4ab,'skipNestingCheck':!0x0}),_0x52f3cd['forEach'](_0x31c300=>_0x31c300['detach']?.()));const _0x5ad4f0=_0x4b0400['markMultiRangeBlockFormat'](_0x3a3edb['map'](({element:_0x118ae4})=>_0x118ae4),{'formatGroupId':_0x4253a4()},[],'tablePasteCell',{'tablePasteChainId':_0x14d4ab});if(_0x5ad4f0){const _0x38dce4=_0x5ad4f0['getMarkers'](),_0x54bdb3=[];for(const {element:_0x5a0e8a,attributes:_0xbae22c}of _0x3a3edb){if(!_0xbae22c)continue;const _0x102d13=_0x2d9d4e['model']['createRangeOn'](_0x5a0e8a),_0x10941e=_0x38dce4['find'](_0x248553=>_0x248553['getRange']()['isEqual'](_0x102d13));_0x10941e&&_0x54bdb3['push']([_0x10941e['name'],_0xbae22c]);}_0x54bdb3['length']&&_0x5ad4f0['setAttribute']('markerAttributes',Object['fromEntries'](_0x54bdb3));}_0x33fb50=null;}));},{'priority':_0x214829['high']+0xa}),_0x2d9d4e['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x176651,_0x38f9fb)=>{const [_0xbbfda8,_0x15c643,,_0x4f1de2]=_0x38f9fb;if(!_0x33fb50)return;_0x176651['stop']();const _0x47d7a9=_0xbbfda8['cell'],_0x4b42f1=_0x15c643,_0x840b53=Pe(_0x47d7a9),_0x1da6b3=Pe(_0x4b42f1);_0x176651['return']=_0x47d7a9;let _0x594473=null,_0x2c4464=null;if(_0x1da6b3||_0x840b53){if(_0x840b53&&!_0x1da6b3){_0x4f1de2['remove'](_0x47d7a9['getChild'](0x0));for(const _0x32c5b7 of Array['from'](_0x4b42f1['getChildren']()))_0x4f1de2['insert'](_0x32c5b7,_0x47d7a9,'end');const _0x2a997c=_0x33fb50['rowInsertionIndexes']['includes'](_0xbbfda8['row']),_0x546fd2=_0x33fb50['columnInsertionIndexes']['includes'](_0xbbfda8['column']);_0x2a997c||_0x546fd2||(_0x594473=_0x2b023b['fromRange'](_0x4f1de2['createRangeIn'](_0x47d7a9)));}else _0x1da6b3&&!_0x840b53&&(_0x2c4464=_0x4f1de2['createRangeIn'](_0x47d7a9));}else{const _0x4f42a5=_0x4f1de2['createElement']('tableCellSuggestion'),_0x2f7900=_0x4f1de2['createElement']('tableCellSuggestion');_0x4f1de2['wrap'](_0x4f1de2['createRangeIn'](_0x47d7a9),_0x2f7900),_0x4f1de2['insert'](_0x4f42a5,_0x47d7a9,0x0);for(const _0x3c06e6 of Array['from'](_0x4b42f1['getChildren']()))_0x4f1de2['insert'](_0x3c06e6,_0x4f42a5,'end');_0x594473=_0x2b023b['fromRange'](_0x4f1de2['createRangeOn'](_0x4f42a5)),_0x2c4464=_0x2b023b['fromRange'](_0x4f1de2['createRangeOn'](_0x2f7900));}const _0x1af755=Array['from'](_0x4b42f1['getAttributes']())['filter'](([_0x122c40])=>ge['includes'](_0x122c40));_0x33fb50['cells']['push']({'element':_0x47d7a9,'attributes':_0x1af755['length']?Object['fromEntries'](_0x1af755):null}),_0x594473&&_0x33fb50['insertionRanges']['push'](_0x594473),_0x2c4464&&_0x33fb50['deletionRanges']['push'](_0x2c4464);},{'priority':'high'}),_0x3e594e['on']('insertColumns',(_0x3722ff,_0x3bb10f)=>{const [_0x4b6ef1,_0x5bf3e2={}]=_0x3bb10f;if(!_0x33fb50)return;const _0x2b6427=_0x5bf3e2['at']||0x0,_0x42eac5=_0x5bf3e2['columns']||0x1;_0x33fb50['columnInsertionIndexes']=new Array(_0x42eac5)['fill'](_0x2b6427)['map']((_0x26c64d,_0x2b21a0)=>_0x26c64d+_0x2b21a0);for(const {cell:_0x36ca76}of _0x3e594e['createTableWalker'](_0x4b6ef1,{'startColumn':_0x2b6427,'endColumn':_0x2b6427+_0x42eac5-0x1}))_0x33fb50['columnInsertionRanges']['push'](_0x2d9d4e['model']['createRangeOn'](_0x36ca76));},{'priority':'low'}),_0x3e594e['on']('insertRows',(_0x326d0e,_0x3c62db)=>{const [_0x38d34e,_0x3682e1={}]=_0x3c62db;if(!_0x33fb50)return;const _0xb654b6=_0x3682e1['at']||0x0,_0x29e721=_0x3682e1['rows']||0x1;_0x33fb50['rowInsertionIndexes']=new Array(_0x29e721)['fill'](_0xb654b6)['map']((_0x437599,_0x450a4a)=>_0x437599+_0x450a4a);for(const {cell:_0x585c05}of _0x3e594e['createTableWalker'](_0x38d34e,{'startRow':_0xb654b6,'endRow':_0xb654b6+_0x29e721-0x1}))_0x33fb50['rowInsertionRanges']['push'](_0x2d9d4e['model']['createRangeOn'](_0x585c05));},{'priority':'low'}),_0x4b0400['descriptionFactory']['registerDescriptionCallback'](_0xccfcda=>{if(_0xccfcda['subType']&&_0xccfcda['subType']['startsWith']('tablePaste'))return _0xccfcda['previous']?{}:{'type':'insertion','content':o(_0x2d9d4e['locale'],'*Replace\x20table\x20cells*')};});const _0x4d2cc0=()=>!0x1;for(const _0x4bbe80 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4b0400['_suggestionFactory']['registerCustomCallback']('insertion',_0x4bbe80,'join',_0x4d2cc0),_0x4b0400['_suggestionFactory']['registerCustomCallback']('deletion',_0x4bbe80,'join',_0x4d2cc0),_0x4b0400['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4bbe80,'join',_0x4d2cc0);_0x4b0400['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4d2cc0),_0x4b0400['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xbea5eb,_0x1c8d36,_0x206614)=>{const _0x26fb2d=_0xbea5eb['map'](_0x109c3d=>_0x109c3d['getContainedElement']())['filter'](_0x2364ed=>_0x2364ed),_0x2c3fb9=new Map(_0x26fb2d['map'](_0x5b262f=>[_0x5b262f,null]));if(_0x33fb50){for(const {element:_0x159509,attributes:_0x6b873}of _0x33fb50['cells'])_0x6b873&&_0x2c3fb9['set'](_0x159509,_0x6b873);}else{if(_0x206614&&_0x206614['markerAttributes'])for(const [_0x36d15b,_0x14ecf5]of Object['entries'](_0x206614['markerAttributes'])){const _0x27bc9f=_0x2d9d4e['model']['markers']['get'](_0x36d15b),_0x4d780a=_0x27bc9f?_0x27bc9f['getRange']()['getContainedElement']():null;_0x4d780a&&_0x2c3fb9['set'](_0x4d780a,_0x14ecf5);}}_0x2d9d4e['model']['change'](_0x1f1d6c=>{for(const [_0x68ccb1,_0x5ac776]of _0x2c3fb9)_0x1f1d6c['setAttributes']({...Ce,..._0x5ac776},_0x68ccb1);});});const _0x315a00=(_0x4066ae,_0x1f2235)=>{_0x4b0400['_suggestionFactory']['registerCustomCallback'](_0x4066ae,'tablePaste',_0x1f2235,(_0x14a3d8,_0x5dcf14,_0x519a46)=>{_0x2d9d4e['model']['change'](_0x43df4b=>{const _0x3110a3=[];for(const _0x27bdee of _0x14a3d8){const _0x5fc4f2=_0x27bdee['start']['nodeAfter'];_0x5fc4f2['is']('element','tableCellSuggestion')&&_0x3110a3['push'](_0x5fc4f2);}_0x4b0400['_suggestionFactory']['getSuggestionCallback'](_0x4066ae,null,_0x1f2235)(_0x14a3d8,_0x5dcf14,_0x519a46);for(const _0x352f3e of _0x3110a3)'$graveyard'!=_0x352f3e['root']['rootName']&&_0x43df4b['unwrap'](_0x352f3e);});});};_0x315a00('insertion','accept'),_0x315a00('insertion','discard'),_0x315a00('deletion','accept'),_0x315a00('deletion','discard'),_0x4b0400['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4a700c=>{const _0x6701d2=_0x4a700c['map'](_0x431125=>_0x431125['getContainedElement']()),_0x452802=_0x6701d2[0x0]['findAncestor']('table'),{minRow:_0x48acf5,maxRow:_0x162ea1}=_0x49faf1['_getCoordsForCells'](_0x6701d2);_0x3e594e['removeRows'](_0x452802,{'at':_0x48acf5,'rows':_0x162ea1-_0x48acf5+0x1});}),_0x4b0400['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xd37d02=>{const _0x2e3f80=_0xd37d02['map'](_0xb5d929=>_0xb5d929['getContainedElement']()),_0x2ea80c=_0x2e3f80[0x0]['findAncestor']('table'),{minColumn:_0x2ba11c,maxColumn:_0x191fac}=_0x49faf1['_getCoordsForCells'](_0x2e3f80);_0x3e594e['removeColumns'](_0x2ea80c,{'at':_0x2ba11c,'columns':_0x191fac-_0x2ba11c+0x1});});const _0x2f452b=(_0x52ece9,_0x15658a)=>{if(!_0x15658a['subType']||!_0x15658a['subType']['startsWith']('tablePaste'))return;const _0x23b132=_0x15658a['attributes']['tablePasteChainId'],_0x100946=_0x4b0400['getSuggestions']()['filter'](_0x2026f2=>_0x2026f2['isInContent']&&_0x2026f2['attributes']&&_0x2026f2['attributes']['tablePasteChainId']==_0x23b132);_0x100946['length']&&_0x15658a['getAllAdjacentSuggestions']()['length']!=_0x100946['length']&&_0x100946['reduce']((_0x3ed351,_0x54fcb0)=>(_0x3ed351['next']=_0x54fcb0,_0x54fcb0['previous']=_0x3ed351,_0x54fcb0));};function _0xfcc891(_0x34c57a,_0x39085b=!0x0){const {id:_0x2f4ffd}=_0x4b0400['_splitMarkerName'](_0x34c57a['markerName']),_0x4d57c7=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x438eeb=_0x4b0400['activeMarkers']['includes'](_0x34c57a['markerName']);return _0x438eeb&&_0x4d57c7['push']('ck-suggestion-marker--active'),{'classes':_0x4d57c7,'attributes':{'data-suggestion':_0x2f4ffd},'priority':_0x438eeb&&_0x39085b?0xbc2:0xbb8};}_0x4b0400['on']('suggestionLoaded',_0x2f452b,{'priority':'high'}),_0x4b0400['on']('suggestionUnloaded',_0x2f452b,{'priority':'high'}),_0x2d9d4e['model']['document']['registerPostFixer'](()=>{let _0x33889a=!0x1;const _0xa98ab7=Array['from'](_0x2d9d4e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x59cea0,data:_0x13d52d}of _0xa98ab7){const {group:_0x4efaaf,type:_0x151eda,id:_0x2affa6}=_0x4b0400['_splitMarkerName'](_0x59cea0);if('suggestion'!=_0x4efaaf||'deletion'!=_0x151eda||_0x13d52d['oldRange'])continue;if(!_0x4b0400['hasSuggestion'](_0x2affa6))continue;const _0x46c301=_0x4b0400['getSuggestion'](_0x2affa6)['getRanges'](),_0x2b35a5=_0x2d9d4e['plugins']['get']('Users')['me'];for(const _0x33e110 of _0x4b0400['getSuggestions']()){if(!_0x33e110['isInContent']||_0x33e110['author']!=_0x2b35a5)continue;if('formatBlock'!=_0x33e110['type']||'tablePasteCell'!=_0x33e110['subType'])continue;if(_0x33e110['getRanges']()['every'](_0x52706e=>_0x46c301['some'](_0x2277fc=>_0x2277fc['containsRange'](_0x52706e,!0x0)))){for(const _0x5c0dc2 of _0x33e110['getAllAdjacentSuggestions']())_0x5c0dc2['isInContent']&&(_0x5c0dc2['discard'](),_0x33889a=!0x0);}}}return _0x33889a;}),_0x2d9d4e['model']['document']['registerPostFixer'](_0x27adb0=>{const _0x488f68=_0x2d9d4e['commands']['get']('redo');if(!_0x488f68||!_0x488f68['_createdBatches']['has'](_0x27adb0['batch']))return!0x1;let _0x4d96fe=!0x1;const _0x59e543=_0x2d9d4e['plugins']['get']('Users')['me'],_0x2c4494=_0x2d9d4e['model']['document']['differ']['getChanges'](),_0x5d297f=Array['from'](_0x2d9d4e['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1076ed,data:_0x66ee26})=>{const {group:_0x1cb118,subType:_0x30c402,authorId:_0x4aa4df}=_0x4b0400['_splitMarkerName'](_0x1076ed);return'suggestion'==_0x1cb118&&'tablePaste'==_0x30c402&&_0x4aa4df==_0x59e543['id']&&!_0x66ee26['oldRange'];});for(const _0x2fbc30 of _0x2c4494){if('insert'!=_0x2fbc30['type']||'tableCellSuggestion'!=_0x2fbc30['name']||0x1!=_0x2fbc30['length'])continue;const _0x1281ff=_0x27adb0['createRange'](_0x2fbc30['position'],_0x2fbc30['position']['getShiftedBy'](0x1));if(!_0x5d297f['find'](({data:_0x53fb38})=>_0x53fb38['newRange']['isEqual'](_0x1281ff))){for(const {name:_0x379d79,data:_0x34cafe}of _0x5d297f)if(_0x1281ff['containsRange'](_0x34cafe['newRange'])){_0x27adb0['updateMarker'](_0x379d79,{'range':_0x1281ff}),_0x4d96fe=!0x0;break;}}}return _0x4d96fe;}),_0x2d9d4e['model']['document']['registerPostFixer'](_0x5c940a=>{let _0x58c36d=!0x1;const _0x1c4e44=_0x2d9d4e['plugins']['get']('Users')['me'],_0x2fac90=_0x4b0400['getSuggestions']()['filter'](_0x17d65c=>_0x17d65c['isInContent']&&_0x17d65c['author']==_0x1c4e44),_0x2a0c2f=new Set(),_0x4dccd5=new Set();for(const _0x42cbe2 of _0x2fac90)if('tablePaste'==_0x42cbe2['subType'])for(const _0x3115b2 of _0x42cbe2['getMarkers']()){const _0x19bf40=_0x3115b2['getRange']()['getContainedElement']();if(_0x19bf40){if(_0x19bf40['is']('element','tableCellSuggestion')&&Pe(_0x19bf40)){_0x42cbe2['removeMarker'](_0x3115b2['name']),_0x2a0c2f['add'](_0x19bf40),_0x58c36d=!0x0;const _0x173935=_0x19bf40['nextSibling'],_0x104265=_0x19bf40['previousSibling'],_0xc3571c=_0x173935&&_0x173935['is']('element','tableCellSuggestion'),_0x309a08=_0x104265&&_0x104265['is']('element','tableCellSuggestion');_0xc3571c&&!_0x2a0c2f['has'](_0x173935)&&_0x4dccd5['add'](_0x173935),_0x309a08&&!_0x2a0c2f['has'](_0x104265)&&_0x4dccd5['add'](_0x104265);}else _0x19bf40['is']('element','paragraph')&&_0x19bf40['isEmpty']&&(_0x42cbe2['removeMarker'](_0x3115b2['name']),_0x58c36d=!0x0);}}else{if('tablePasteCell'==_0x42cbe2['subType']){if(!_0x42cbe2['attributes']||!_0x42cbe2['attributes']['tablePasteChainId'])continue;const _0x2c3722=_0x42cbe2['attributes']['markerAttributes'];if(_0x2c3722&&Object['keys'](_0x2c3722)['length'])continue;const _0xa843db=_0x42cbe2['attributes']['tablePasteChainId'];let _0xf1c413=!0x0,_0x19541a=!0x0;for(const _0xd9a168 of _0x2fac90)if(_0xd9a168['subType']&&_0xd9a168['subType']['startsWith']('tablePaste')){if(!_0xd9a168['attributes']['tablePasteChainId']){_0x19541a=!0x1;break;}if(_0xd9a168['id']!=_0x42cbe2['id']&&_0xd9a168['attributes']['tablePasteChainId']==_0xa843db){_0xf1c413=!0x1;break;}}_0x19541a&&_0xf1c413&&(_0x42cbe2['removeMarkers'](),_0x58c36d=!0x0);}}for(const _0x1ea4ac of _0x2a0c2f)_0x5c940a['remove'](_0x1ea4ac);for(const _0x30790f of _0x4dccd5)_0x5c940a['unwrap'](_0x30790f);return _0x58c36d;}),_0x2d9d4e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2aab92,_0x5d6098)=>_0xfcc891(_0x2aab92),'converterPriority':'high'}),_0x2d9d4e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1250b1,_0x3c951f)=>_0x3c951f['options']['showSuggestionHighlights']?_0xfcc891(_0x1250b1,!0x1):null,'converterPriority':'high'});const _0x11ddfa=_0x2d9d4e['editing']['view'];this['listenTo'](_0x11ddfa['document'],'clipboardOutput',(_0x272bf3,_0x2e4db7)=>{const _0x1424e9=[];for(const _0x2cefb9 of _0x11ddfa['createRangeIn'](_0x2e4db7['content'])['getItems']())_0x2cefb9['is']('element','suggestion-td')&&_0x1424e9['push'](_0x2cefb9);_0x11ddfa['change'](_0x270b39=>{for(const _0x357eaa of _0x1424e9)_0x270b39['move'](_0x270b39['createRangeIn'](_0x357eaa),_0x270b39['createPositionBefore'](_0x357eaa)),_0x270b39['remove'](_0x357eaa);});});}}function Pe(_0x20d5ed){if(_0x20d5ed['isEmpty'])return!0x0;const _0xd7c5df=_0x20d5ed['getChild'](0x0);return _0xd7c5df['is']('element','paragraph')&&_0xd7c5df['isEmpty'];}function he(_0x5f3384,_0x47bc1f={},_0x347e5a){for(const {isAnchor:_0x5c3da0,cellHeight:_0x3007ed,cellWidth:_0x380f2c}of _0x347e5a['createTableWalker'](_0x5f3384,{'includeAllSlots':!0x0,..._0x47bc1f}))if(!_0x5c3da0||0x1!=_0x3007ed||0x1!=_0x380f2c)return!0x1;return!0x0;}class vt extends _0xd068a0{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x462f71=this['editor']['plugins']['get']('TrackChangesEditing');_0x462f71['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x462f71['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x462f71['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x462f71['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x462f71['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x462f71['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4483f4,_0x172c4b){const _0x237377=this['editor']['plugins']['get']('TrackChangesEditing'),_0x188a4b=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x540359=_0x172c4b['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x52d686=_0x188a4b['getColumnGroupElement'](_0x540359);let _0x332a79=_0x52d686?_0x188a4b['getTableColumnsWidths'](_0x52d686):null,_0x173ce0=_0x540359['getAttribute']('tableWidth')||null;const _0x28e61d=_0x172c4b['tableWidth']||_0x173ce0,_0x5e5626=_0x172c4b['columnWidths']||_0x332a79,_0x39d7c8=this['editor']['plugins']['get']('Users')['me'];for(const _0x2bc2c5 of _0x237377['getSuggestions']()){const _0x4c2a0b=_0x2bc2c5['getContainedElement']();if('resizeTable'===_0x2bc2c5['subType']&&_0x4c2a0b===_0x540359){_0x2bc2c5['author']!==_0x39d7c8&&_0x2bc2c5['discard']();const _0xeda56e=_0x2bc2c5['data']['commandParams'];_0x173ce0=_0xeda56e[0x0]['tableWidth'],_0x332a79=_0xeda56e[0x0]['columnWidths'];break;}}_0x4483f4({'table':_0x540359,'tableWidth':_0x28e61d,'columnWidths':_0x5e5626}),_0x237377['markBlockFormat'](_0x540359,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x173ce0,'columnWidths':_0x332a79}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x37a4e1){if('formatBlock'!=_0x37a4e1['type']&&'formatInline'!=_0x37a4e1['type'])return;const {data:_0x3bfc43}=_0x37a4e1;if(_0x3bfc43&&'resizeTable'===_0x3bfc43['formatGroupId']){const _0x89dfe8='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x89dfe8)};}}}class Ct extends _0xd068a0{['afterInit'](){const _0x568d00=this['editor'];_0x568d00['plugins']['has']('Template')&&_0x568d00['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0xd068a0{['afterInit'](){const _0xbfe682=this['editor'];if(!_0xbfe682['commands']['get']('insertTableOfContents'))return;_0xbfe682['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x9bd57b=_0xbfe682['plugins']['get']('TrackChangesEditing'),_0x58df30=_0xbfe682['locale'];_0x9bd57b['descriptionFactory']['registerElementLabel']('tableOfContents',_0x25a289=>o(_0x58df30,'ELEMENT_TABLE_OF_CONTENTS',_0x25a289));}}class Dt extends _0xd068a0{['afterInit'](){const _0x88a332=this['editor'];if(!_0x88a332['plugins']['has']('Title'))return;const _0xc82425=_0x88a332['plugins']['get']('TrackChangesEditing');_0xc82425['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x88a332['locale'],'ELEMENT_TITLE')),_0x88a332['model']['document']['registerPostFixer'](_0x1c3fb4=>{let _0x52ae62=!0x1;const _0x4c2e65=Array['from'](_0x88a332['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x21a19f,data:_0x375cea}of _0x4c2e65){const {group:_0x17afc7}=_0xc82425['_splitMarkerName'](_0x21a19f);if('suggestion'!==_0x17afc7||!_0x375cea['newRange'])continue;const _0x3ae28a=_0x375cea['newRange'],_0xe0c389=_0x3ae28a['end']['nodeBefore'];if(!_0xe0c389||!_0xe0c389['is']('element','title-content'))continue;if(!_0x3ae28a['start']['isTouching'](_0x3ae28a['end']))continue;const _0x4c6f78=_0x88a332['model']['schema']['getNearestSelectionRange'](_0x3ae28a['end'],'forward');if(_0x4c6f78&&_0x4c6f78['isCollapsed']){const _0x14ef7a=_0x1c3fb4['createRange'](_0x3ae28a['start'],_0x4c6f78['start']);_0x14ef7a['isEqual'](_0x3ae28a)||(_0x1c3fb4['updateMarker'](_0x21a19f,{'range':_0x14ef7a}),_0x52ae62=!0x0);}_0x52ae62||(_0x1c3fb4['removeMarker'](_0x21a19f),_0x52ae62=!0x0);}return _0x52ae62;});}}class Nt extends _0xd068a0{['afterInit'](){const _0x4215a9=this['editor'],_0x47d11c=_0x4215a9['plugins']['get']('TrackChangesEditing');_0x4215a9['plugins']['has']('UndoEditing')&&(_0x47d11c['enableCommand']('undo'),_0x47d11c['enableCommand']('redo'));}}class Mt extends _0xd068a0{static get['requires'](){return[jt];}['afterInit'](){const _0x412c06=this['editor'];if(!_0x412c06['plugins']['has']('TableCaptionEditing'))return;_0x412c06['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0xd068a0{['tableProperties'];['tableCellProperties'];constructor(_0x3bf34b){super(_0x3bf34b),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 _0x2c794d=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x457ec3 of this['tableProperties'])_0x2c794d['enableCommand'](_0x457ec3,(_0x5d965a,_0x302759)=>{const _0x52bd0c=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x457ec3,[_0x52bd0c],this['tableProperties'],'tableProperties',_0x5d965a,_0x302759);});_0x2c794d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2c794d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2c794d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5554a3,_0x484578)=>this['handleDiscardAction'](this['tableProperties'],_0x5554a3,_0x484578)),_0x2c794d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5d7108 of this['tableCellProperties'])_0x2c794d['enableCommand'](_0x5d7108,(_0x500b7c,_0x10245f)=>{const _0x80f13c=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5d7108,_0x80f13c,this['tableCellProperties'],'tableCellProperties',_0x500b7c,_0x10245f);});_0x2c794d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2c794d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2c794d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1762ed,_0x2ebb70)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1762ed,_0x2ebb70)),_0x2c794d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2c794d['descriptionFactory']['registerDescriptionCallback'](_0x6461fb=>this['handleSuggestionDescription'](_0x6461fb));}['_handlePropertyChange'](_0x4be938,_0x39a3f8,_0x41a2fe,_0x30370e,_0x1a346b,_0x270a81){const _0x55b477=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x270a81['batch'],()=>{for(const _0x29d2ff of _0x39a3f8){if(this['_getSuggestion'](_0x29d2ff,_0x30370e))_0x1a346b(_0x270a81);else{const _0xc43ab={};for(const _0xe25b5c of _0x41a2fe){const _0x4b4983=_0x29d2ff['getAttribute'](_0xe25b5c);void 0x0!==_0x4b4983&&(_0xc43ab[_0xe25b5c]=_0x4b4983);}_0x1a346b(_0x270a81),_0x55b477['markBlockFormat'](_0x29d2ff,{'commandParams':[_0xc43ab]},[],_0x30370e);}}});}['handleDiscardAction'](_0x3bd65b,_0x38d9f8,_0x1e14ae){const _0x29d1be=_0x38d9f8[0x0]['start']['nodeAfter'],_0x2e9957=_0x1e14ae['commandParams'][0x0];this['editor']['model']['change'](_0x55f64e=>{for(const _0x5e3598 of _0x3bd65b)void 0x0!==_0x2e9957[_0x5e3598]?_0x55f64e['setAttribute'](_0x5e3598,_0x2e9957[_0x5e3598],_0x29d1be):_0x55f64e['removeAttribute'](_0x5e3598,_0x29d1be);});}['handleSuggestionDescription'](_0x5441e7){if(_0x5441e7['data'])switch(_0x5441e7['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'](_0x3c7058,_0x48b878){const _0x306819=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x37fed of _0x306819['getSuggestions']({'skipNotAttached':!0x0})){const _0x22bcf7=_0x37fed['getContainedElement']();if(_0x37fed['subType']===_0x48b878&&_0x22bcf7===_0x3c7058)return _0x37fed;}return null;}}const m='$elementName';class p extends _0xd068a0{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x3a1269,_0x3a149,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(_0x1fca6b){function _0xebe2c2(_0x3b2287){return _0x3b2287['map'](_0x345ecc=>String['fromCharCode'](_0x345ecc))['join']('');}super(_0x1fca6b),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xc3dd5c,_0x353111,_0x55d5fa,_0x17862a)=>{this['_model']['change'](()=>{for(const _0x3ea39c of[..._0x17862a,..._0x55d5fa])this['_model']['markers']['has'](_0x3ea39c)&&_0x1fca6b['editing']['reconvertMarker'](_0x3ea39c);});}),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']=_0x1fca6b['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(),_0x1fca6b['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1fca6b['config']['get']('trackChanges.trackFormatChanges'),_0x1fca6b['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1fca6b['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x1fca6b,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0xebe2c2([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0xebe2c2([0x34,0x30,0x34,0x38,0x31,0x32,0x31,0x38]);}['init'](){const _0x5772ca=this['editor'],_0x7108a=(_0x35f705,_0x44667a)=>{if('attribute'!=_0x35f705)return'ck-suggestion-marker-'+_0x35f705;const _0x50ea41=_0x44667a['split']('|')[0x0];return this['_isBlockAttribute'](_0x50ea41)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5772ca['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xd3f6db=>{const {id:_0xc466a1,type:_0x4e0dae,subType:_0x436438}=this['_splitMarkerName'](_0xd3f6db['markerName']),_0x4a6dc2=['ck-suggestion-marker',_0x7108a(_0x4e0dae,_0x436438)];let _0x247379=0xbb8;return this['activeMarkers']['includes'](_0xd3f6db['markerName'])&&(_0x4a6dc2['push']('ck-suggestion-marker--active'),_0x247379=0xbc2),'deletion'==_0x4e0dae&&(_0x247379+=0x5),{'classes':_0x4a6dc2,'attributes':{'data-suggestion':_0xc466a1},'priority':_0x247379};}}),_0x5772ca['conversion']['for']('dataDowncast')['add'](_0x557a60=>{_0x557a60['on']('addMarker:suggestion',(_0x3c7608,_0x294dd7,_0x32d233)=>{if(!_0x32d233['options']['showSuggestionHighlights'])return;const _0x27d683=_0x294dd7['item'];if(!_0x27d683)return;const _0x282e34=_0x32d233['mapper']['toViewElement'](_0x27d683);_0x5772ca['model']['schema']['isObject'](_0x27d683)&&_0x282e34&&!_0x282e34['getCustomProperty']('widget')&&_0x282e34['is']('containerElement')&&_0xd81baf(_0x282e34,_0x32d233['writer']);},{'priority':'high'});}),_0x5772ca['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3c68c6,_0x23a2bf)=>{if(!_0x23a2bf['options']['showSuggestionHighlights'])return null;const {type:_0x52434e,subType:_0x4db25f}=this['_splitMarkerName'](_0x3c68c6['markerName']);return{'classes':['ck-suggestion-marker',_0x7108a(_0x52434e,_0x4db25f)],'priority':0xbb8};}});const _0x236e87=({showActiveMarkers:_0x50a42d=!0x0,isAttributeSuggestion:_0x447ab4=!0x1}={})=>(_0x160cd4,_0x2dc581,_0x3f5913)=>{if(!_0x2dc581['item'])return;const {id:_0x2a2509}=this['_splitMarkerName'](_0x2dc581['markerName']);if(_0x447ab4){const _0x35a3db=this['_suggestions']['get'](_0x2a2509),_0x287620=this['_getAttributeKey'](_0x35a3db);if(!this['_isBlockAttribute'](_0x287620))return;}if(_0x2dc581['item']['is']('selection'))return void _0x3f5913['consumable']['consume'](_0x2dc581['item'],_0x160cd4['name']);const _0x3a4de8=_0x3f5913['mapper']['toViewElement'](_0x2dc581['item']);if(_0x2dc581['item']['is']('element')&&_0x5772ca['model']['schema']['isBlock'](_0x2dc581['item'])&&!_0x3a4de8['getCustomProperty']('addHighlight')){_0x3f5913['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3a4de8),_0x3f5913['writer']['setAttribute']('data-suggestion',_0x2a2509,_0x3a4de8),_0x3f5913['mapper']['bindElementToMarker'](_0x3a4de8,_0x2dc581['markerName']),_0x50a42d&&(this['activeMarkers']['includes'](_0x2dc581['markerName'])?_0x3f5913['writer']['addClass']('ck-suggestion-marker--active',_0x3a4de8):_0x3f5913['writer']['removeClass']('ck-suggestion-marker--active',_0x3a4de8));for(const _0x2ffe4b of _0x5772ca['model']['createRangeIn'](_0x2dc581['item'])['getItems']())_0x3f5913['consumable']['consume'](_0x2ffe4b,_0x160cd4['name']);_0x3f5913['consumable']['consume'](_0x2dc581['item'],_0x160cd4['name']);}};_0x5772ca['conversion']['for']('dataDowncast')['add'](_0x5813bb=>{_0x5813bb['on']('addMarker:suggestion:formatBlock',(_0x35571b,_0x18eb26,_0x171638)=>{_0x171638['options']['showSuggestionHighlights']&&_0x236e87({'showActiveMarkers':!0x1})(_0x35571b,_0x18eb26,_0x171638);},{'priority':'highest'});}),_0x5772ca['conversion']['for']('dataDowncast')['add'](_0x1cc300=>{_0x1cc300['on']('addMarker:suggestion:attribute',(_0xbce2da,_0x307ca1,_0x1a4b76)=>{_0x1a4b76['options']['showSuggestionHighlights']&&_0x236e87({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xbce2da,_0x307ca1,_0x1a4b76);},{'priority':'highest'});}),_0x5772ca['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x242f40,_0xdc9e34)=>_0xdc9e34['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x242f40['substr'](0xb)}}),_0x5772ca['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1b4d74,{writer:_0x1f9bc2})=>{let _0x35ad56='suggestion:'+_0x1b4d74['getAttribute']('suggestion-type')+':'+_0x1b4d74['getAttribute']('id');return _0x1b4d74['getAttribute']('marker-count')&&(_0x35ad56+=':'+_0x1b4d74['getAttribute']('marker-count')),_0x1f9bc2['createElement']('$marker',{'data-name':_0x35ad56});}}),_0x5772ca['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5772ca['conversion']['for']('editingDowncast')['add'](_0x312bf5=>{_0x312bf5['on']('addMarker:suggestion:formatBlock',_0x236e87(),{'priority':'high'});}),_0x5772ca['conversion']['for']('editingDowncast')['add'](_0x7bd35c=>{_0x7bd35c['on']('addMarker:suggestion:attribute',_0x236e87({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5772ca['conversion']['for']('editingDowncast')['add'](_0x5a9693=>{_0x5a9693['on']('removeMarker:suggestion:formatBlock',(_0x246b28,_0x34cbf7,_0x36eb82)=>{const _0x4a40f3=_0x36eb82['mapper']['markerNameToElements'](_0x34cbf7['markerName']);if(_0x4a40f3){for(const _0x142be3 of _0x4a40f3)_0x142be3['getCustomProperty']('addHighlight')||(_0x36eb82['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x142be3),_0x36eb82['writer']['removeAttribute']('data-suggestion',_0x142be3),_0x36eb82['mapper']['unbindElementFromMarkerName'](_0x142be3,_0x34cbf7['markerName']));}},{'priority':'high'});}),_0x5772ca['conversion']['for']('editingDowncast')['add'](_0x5ce854=>{_0x5ce854['on']('removeMarker:suggestion:attribute',(_0x158a73,_0x197fb2,_0x57ea13)=>{const _0x501cc6=_0x57ea13['mapper']['markerNameToElements'](_0x197fb2['markerName']);if(!_0x501cc6)return;const {id:_0x346c1c}=this['_splitMarkerName'](_0x197fb2['markerName']),_0x2658d7=this['_suggestions']['get'](_0x346c1c),_0x55f3e6=this['_getAttributeKey'](_0x2658d7);if(this['_isBlockAttribute'](_0x55f3e6)){for(const _0x5df6b4 of _0x501cc6)_0x5df6b4['getCustomProperty']('addHighlight')||(_0x57ea13['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5df6b4),_0x57ea13['writer']['removeAttribute']('data-suggestion',_0x5df6b4),_0x57ea13['mapper']['unbindElementFromMarkerName'](_0x5df6b4,_0x197fb2['markerName']));}},{'priority':'high'});}),_0x5772ca['model']['document']['registerPostFixer'](_0x101302=>{let _0x53a54c=!0x1;const _0x22dbd8=Array['from'](_0x5772ca['model']['document']['differ']['getChangedMarkers']()),_0x2cebfb=new Set();for(const {name:_0x20bddb,data:_0x3f7be8}of _0x22dbd8){const {group:_0x554e42,type:_0x3127c0,subType:_0x23f5a1,id:_0x2162a3}=this['_splitMarkerName'](_0x20bddb);if('suggestion'!==_0x554e42)continue;const _0x288297=this['_suggestions']['get'](_0x2162a3);if(null!=_0x3f7be8['newRange']){'formatInline'==_0x3127c0&&(_0x53a54c=_0x53a54c||Et(_0x3f7be8['newRange'],_0x20bddb,_0x101302,_0x5772ca['model']['schema']));const _0x1d7a67='attribute'==_0x3127c0&&this['_isBlockAttribute'](_0x23f5a1['split']('|')[0x0]);if(_0x3f7be8['newRange']['isCollapsed']||'$graveyard'==_0x3f7be8['newRange']['root']['rootName']||'formatBlock'==_0x3127c0&&!Ut(_0x3f7be8['newRange'])||_0x1d7a67&&!Ut(_0x3f7be8['newRange'])||'deletion'==_0x3127c0&&!(!Tt(_0x16bdb1=_0x3f7be8['newRange'])&&!function(_0x169827){return _0x169827['start']['parent']==_0x169827['end']['nodeBefore']&&_0x169827['start']['isAtEnd'];}(_0x16bdb1)))_0x101302['removeMarker'](_0x20bddb),_0x53a54c=!0x0;else{if(!_0x288297||!_0x288297['isInContent'])continue;_0x2cebfb['add'](_0x288297);}}}var _0x16bdb1;return _0x2cebfb['size']>0x0&&(_0x53a54c=!!this['_joinWithAdjacentSuggestions'](_0x2cebfb)||_0x53a54c),_0x53a54c;}),_0x5772ca['model']['document']['registerPostFixer'](_0x45fa70=>{let _0x2fc022=!0x1;for(const _0x3440a3 of _0x5772ca['model']['document']['differ']['getChanges']())if('insert'==_0x3440a3['type'])for(const _0x89240f of this['_suggestions']['values']()){if(_0x89240f['isMultiRange']||!_0x89240f['isInContent'])continue;const _0x51c782='formatBlock'==_0x89240f['type'],_0x282545=this['_getAttributeKey'](_0x89240f),_0x56f09b=_0x282545&&this['_isBlockAttribute'](_0x282545);if(!_0x51c782&&!_0x56f09b)continue;const _0x4b2500=_0x89240f['getFirstRange']();if(_0x4b2500['start']['parent']!=_0x4b2500['end']['parent']&&!_0x4b2500['end']['isAtEnd']){const _0xd8957b=_0x5772ca['model']['createPositionAt'](_0x4b2500['start']['nodeAfter'],'end'),_0x4d640e=_0x5772ca['model']['createRange'](_0x4b2500['start'],_0xd8957b);_0x45fa70['updateMarker'](_0x89240f['getFirstMarker'](),{'range':_0x4d640e}),_0x2fc022=!0x0;}}return _0x2fc022;}),_0x5772ca['model']['document']['registerPostFixer'](_0x5a183a=>this['_processAttributeChanges'](_0x5a183a)),_0x5772ca['model']['document']['registerPostFixer'](_0x57d0e2=>!_0x57d0e2['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x57d0e2)),_0x5772ca['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5772ca['model']['document']['on']('change:data',(_0x2b3d7c,_0xa97f0d)=>{if(!_0xa97f0d['isLocal']||_0xa97f0d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x363976=_0x5772ca['model']['document']['differ']['getChanges']();if(0x0==_0x363976['length'])return;const _0x58c658=[],_0x58f3a3=_0x363976['filter'](_0xf55ccc=>'attribute'==_0xf55ccc['type']),_0x10c893=_0x363976['filter'](_0x11d4a2=>'insert'==_0x11d4a2['type']&&'$text'!=_0x11d4a2['name']);for(const _0x17d386 of _0x58f3a3)this['_isRegisteredAttribute'](_0x17d386['attributeKey'])&&_0x58c658['push']({'key':_0x17d386['attributeKey'],'newValue':_0x17d386['attributeNewValue'],'oldValue':_0x17d386['attributeOldValue'],'range':Ot(_0x17d386['range'],_0x5772ca['model'])});for(const _0x3cd99d of _0x10c893){if('rename'!=_0x3cd99d['action']&&'refresh'!=_0x3cd99d['action'])continue;const _0x643fb1=Gt(_0x3cd99d['position']['nodeAfter'],_0x5772ca['model']),_0x148195=_0x3cd99d['before'];'rename'==_0x3cd99d['action']&&_0x58c658['push']({'key':m,'newValue':_0x3cd99d['name'],'oldValue':_0x148195['name'],'range':_0x643fb1});for(const [_0x508386,_0x276097]of _0x148195['attributes']){if(!this['_isRegisteredAttribute'](_0x508386))continue;const _0x294be3=_0x3cd99d['attributes']['get'](_0x508386);_0x276097!==_0x294be3&&_0x58c658['push']({'key':_0x508386,'newValue':_0x294be3,'oldValue':_0x276097,'range':_0x643fb1});}for(const [_0x2c7f3f,_0x30f1b5]of _0x3cd99d['attributes'])this['_isRegisteredAttribute'](_0x2c7f3f)&&(_0x148195['attributes']['has'](_0x2c7f3f)||_0x58c658['push']({'key':_0x2c7f3f,'newValue':_0x30f1b5,'oldValue':null,'range':_0x643fb1}));}0x0!=_0x58c658['length']&&_0x5772ca['model']['enqueueChange'](_0xa97f0d,_0x2e456d=>{const _0x2e6f2a=_0x4253a4();for(const {range:_0x5df77f,key:_0x24d070,oldValue:_0x2b5a12,newValue:_0x519781}of _0x58c658)this['markAttributeChange'](_0x5df77f,_0x24d070,_0x2b5a12,_0x519781,{'groupId':_0x2e6f2a});this['_reduceExistingSuggestions'](_0x2e456d,_0x58c658);});},{'priority':'lowest'}),_0x5772ca['model']['markers']['on']('update:suggestion',(_0x3d8b3f,_0x8eae3b,_0x58908b)=>{if(null==_0x58908b){const {id:_0x46ff16}=this['_splitMarkerName'](_0x8eae3b['name']),_0x437ef5=this['_suggestions']['get'](_0x46ff16);_0x437ef5&&_0x437ef5['addMarkerName'](_0x8eae3b['name']);}}),_0x5772ca['model']['document']['on']('change:data',()=>{const _0x41eaf7=Array['from'](_0x5772ca['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5075d5=>'suggestion'===this['_splitMarkerName'](_0x5075d5['name'])['group']);if(0x0===_0x41eaf7['length'])return;_0x41eaf7['sort']((_0x3f876f,_0x2637e2)=>{const _0x1c59cd=_0x3f876f['data']['oldRange'],_0x3c6ed1=_0x2637e2['data']['oldRange'];return null===_0x1c59cd&&null===_0x3c6ed1?0x0:null===_0x1c59cd&&null!==_0x3c6ed1?-0x1:null!==_0x1c59cd&&null===_0x3c6ed1?0x1:_0x1c59cd['start']['isBefore'](_0x3c6ed1['start'])?-0x1:0x1;});const _0x2f8927=new Set(),_0x573b51=new Set();for(const {name:_0x53370e,data:_0x59c9ed}of _0x41eaf7){const {id:_0x46c07b}=this['_splitMarkerName'](_0x53370e);if(null===_0x59c9ed['oldRange']){const _0x591c91=this['_handleNewSuggestionMarker'](_0x53370e);_0x573b51['add'](_0x591c91);}else{const _0xe9bd7c=this['_suggestions']['get'](_0x46c07b);null!==_0x59c9ed['newRange']||_0xe9bd7c['isInContent']?(_0x2f8927['add'](_0xe9bd7c['head']),_0x573b51['add'](_0xe9bd7c)):this['_removeSuggestion'](_0xe9bd7c);}}_0x573b51['size']>0x0&&this['_refreshSuggestionsChain'](_0x573b51);for(const _0x108cc4 of _0x2f8927)this['fire']('suggestionChanged',_0x108cc4);}),_0x5772ca['model']['on']('applyOperation',(_0x353f7c,_0x37a354)=>{const _0x6444dd=_0x37a354[0x0];if(!this['_suggestions']['size'])return;if(!_0x6444dd['isDocumentOperation'])return;if(_0x6444dd['batch']['isUndo']||!_0x6444dd['batch']['isLocal'])return;let _0x40fbcb,_0x4bdcab;switch(_0x6444dd['type']){case'insert':_0x40fbcb=_0x5772ca['model']['createPositionAt'](_0x6444dd['position']),_0x4bdcab=_0x40fbcb['getShiftedBy'](_0x6444dd['howMany']);break;case'split':_0x40fbcb=_0x5772ca['model']['createPositionAt'](_0x6444dd['splitPosition']),_0x4bdcab=_0x5772ca['model']['createPositionAt'](_0x6444dd['moveTargetPosition']);break;case'move':_0x40fbcb=_0x5772ca['model']['createPositionAt'](_0x6444dd['targetPosition']),_0x4bdcab=_0x40fbcb['getShiftedBy'](_0x6444dd['howMany']);break;default:return;}const _0x9dba66=_0x5772ca['model']['createRange'](_0x40fbcb,_0x4bdcab);_0x5772ca['model']['change'](()=>{for(const {suggestion:_0x36db11,meta:_0x1956d2}of this['_findSuggestions'](_0x9dba66)){if(_0x36db11['isMultiRange'])continue;if('formatInline'==_0x36db11['type'])continue;const _0x1741f7=this['_getAttributeKey'](_0x36db11);if(_0x1741f7&&this['_isBlockAttribute'](_0x1741f7)&&'split'!=_0x6444dd['type'])continue;const _0x104e2c=_0x36db11['data']&&_0x36db11['data']['multipleBlocks'];('formatBlock'!=_0x36db11['type']||'split'==_0x6444dd['type']&&!_0x104e2c)&&(_0x1956d2['containsRangeInObject']||'insertion'==_0x36db11['type']&&_0x1956d2['isOwn']||_0x36db11['getFirstRange']()['containsRange'](_0x9dba66)&&this['_breakSuggestionMarker'](_0x36db11,_0x40fbcb,_0x4bdcab));}});},{'priority':'lowest'}),_0x5772ca['model']['on']('deleteContent',(_0x1ae150,_0x36f04a)=>{const _0x423e0c=_0x36f04a[0x0],_0x1a74b9=_0x36f04a[0x1];if(_0x1a74b9&&_0x1a74b9['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x423e0c['isCollapsed'])return;const _0x3433ea=_0x5772ca['model']['schema'],{start:_0x537ddf,end:_0x3c7431}=_0x423e0c['getFirstRange'](),_0x40bafb=_0x537ddf['nodeAfter']&&_0x3433ea['isLimit'](_0x537ddf['nodeAfter'])?null:_0x3433ea['getNearestSelectionRange'](_0x537ddf,'forward'),_0x2fd0c6=_0x3c7431['nodeBefore']&&_0x3433ea['isLimit'](_0x3c7431['nodeBefore'])?null:_0x3433ea['getNearestSelectionRange'](_0x3c7431,'backward'),_0x1efc87=_0x5772ca['model']['createRange'](_0x40bafb?_0x40bafb['start']:_0x537ddf,_0x2fd0c6?_0x2fd0c6['end']:_0x3c7431);_0x5772ca['model']['change'](_0x4ef517=>{this['markDeletion'](_0x1efc87);const _0x29eca0=_0x5772ca['model']['schema']['getNearestSelectionRange'](_0x1efc87['start']);_0x423e0c['is']('documentSelection')?_0x4ef517['setSelection'](_0x29eca0):_0x423e0c['setTo'](_0x29eca0);}),_0x1ae150['stop']();},{'priority':_0x214829['normal']+0xa}),_0x5772ca['model']['on']('insertContent',(_0x3f2b2b,_0x1d9ab2)=>{const _0x41c34=_0x1d9ab2[_0x1d9ab2['length']-0x1];_0x41c34&&_0x41c34['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5772ca['model']['change'](()=>{let _0x1d75cc=_0x5772ca['model']['insertContent'](_0x1d9ab2[0x0],_0x1d9ab2[0x1],_0x1d9ab2[0x2],{'forceDefaultExecution':!0x0});if(!_0x1d75cc)return;_0x3f2b2b['return']=_0x1d75cc['clone']();const _0x45205e=_0x1d75cc['end']['nodeBefore'],_0xeaf9f7=_0x5772ca['model']['schema'];_0x45205e&&_0xeaf9f7['isBlock'](_0x45205e)&&!_0xeaf9f7['isObject'](_0x45205e)&&(_0x1d75cc=_0x5772ca['model']['createRange'](_0x1d75cc['start'],_0x5772ca['model']['createPositionAt'](_0x45205e,'end'))),this['markInsertion'](_0x1d75cc);}),_0x3f2b2b['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x8c577c=new $(_0x5772ca,this['_suggestions']);_0x5772ca['commands']['add']('acceptSuggestion',_0x8c577c),this['enableCommand']('acceptSuggestion');const _0xf9e5dd=new B(_0x5772ca,this['_suggestions']);_0x5772ca['commands']['add']('discardSuggestion',_0xf9e5dd),this['enableCommand']('discardSuggestion'),_0x5772ca['commands']['add']('acceptAllSuggestions',new x(_0x5772ca,_0x8c577c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5772ca['commands']['add']('discardAllSuggestions',new x(_0x5772ca,_0xf9e5dd,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5772ca['commands']['add']('acceptSelectedSuggestions',new R(_0x5772ca,_0x8c577c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5772ca['commands']['add']('discardSelectedSuggestions',new R(_0x5772ca,_0xf9e5dd,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2efcec=_0x5772ca['plugins']['get']('CommentsRepository');this['listenTo'](_0x2efcec,'addComment',(_0x4c991a,{threadId:_0x18503c})=>{const _0x47eff7=this['_suggestions']['get'](_0x18503c);_0x47eff7&&_0x47eff7['commentThread']&&0x1===_0x47eff7['commentThread']['length']&&this['_updateSuggestionData'](_0x18503c,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2efcec,'removeComment',(_0x25e60f,{threadId:_0x2eb7a0})=>{const _0x5c3843=this['_suggestions']['get'](_0x2eb7a0);_0x5c3843&&_0x5c3843['commentThread']&&!_0x5c3843['commentThread']['length']&&this['_updateSuggestionData'](_0x2eb7a0,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x517f04){if(this['_adapter'])throw new _0x559e97('track-changes-adapter-already-set',this);this['_adapter']=_0x517f04;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xcc592=!0x1,toJSON:_0x36b7a5=!0x1}={}){const _0x548392=[];for(const _0xe5fdf3 of this['_suggestions']['values']())_0xcc592&&!_0xe5fdf3['isInContent']||_0x548392['push'](_0xe5fdf3);return _0x36b7a5?_0x548392['map'](_0xfb71b0=>_0xfb71b0['toJSON']()):_0x548392;}['getSuggestion'](_0x459d90){const _0xb59330=this['_suggestions']['get'](_0x459d90);if(!_0xb59330)throw new _0x559e97('track-changes-suggestion-not-found',this);return _0xb59330;}['hasSuggestion'](_0x5c5f42){return this['_suggestions']['has'](_0x5c5f42);}['addSuggestionData'](_0x5d86ee){const {authorId:_0x4a968e,id:_0x3412ea,attributes:_0x524fa0}=_0x5d86ee,[_0x55990c,_0x13ac55]=_0x5d86ee['type']['split'](':'),_0x3176c5=this['_suggestions']['get'](_0x3412ea)||this['_createSuggestion'](_0x55990c,_0x13ac55,_0x3412ea,_0x4a968e,_0x524fa0);if(this['_addThreadToSuggestion'](_0x3176c5),this['_checkSuggestionCorrectness'](_0x3176c5,_0x55990c,_0x13ac55||null,_0x4a968e),_0x3176c5['createdAt']=_0x5d86ee['createdAt'],_0x3176c5['_isDataLoaded']=!0x0,_0x524fa0&&_0x524fa0['@external']){const _0x1ca02a=_0x524fa0['@external'],_0x43dd69=this['_getExternalAuthor'](_0x1ca02a['authorName']);_0x3176c5['authoredAt']=_0x1ca02a['createdAt'],_0x3176c5['author']=_0x43dd69,_0x3176c5['isExternal']=!0x0;}else _0x3176c5['authoredAt']=_0x5d86ee['createdAt'];switch(_0x5d86ee['data']&&(_0x3176c5['data']=_0x5d86ee['data']),_0x5d86ee['attributes']&&(_0x3176c5['attributes']=_0x5d86ee['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3176c5['_saved']=!0x0),this['_suggestionState']['get'](_0x3176c5)){case'notReady':this['_suggestionState']['set'](_0x3176c5,'dataReady');break;case'markerReady':_0x3176c5['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3176c5])),this['_refreshSuggestionsChain'](new Set([_0x3176c5])),this['_suggestionState']['set'](_0x3176c5,'ready'),this['fire']('suggestionLoaded',_0x3176c5)):this['_suggestionState']['set'](_0x3176c5,'removed');}return _0x3176c5;}['acceptSuggestion'](_0x4c7860){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x246a2e of _0x4c7860['getAllAdjacentSuggestions']())_0x246a2e['accept']();});});}['discardSuggestion'](_0x3a05f3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3a8564 of _0x3a05f3['getAllAdjacentSuggestions']())_0x3a8564['discard']();});});}['enableCommand'](_0x52d23f,_0xccb419){const _0x55c26b=this['editor']['commands']['get'](_0x52d23f);if(!_0x55c26b)throw new _0x559e97('track-changes-command-not-found',this,{'commandName':_0x52d23f});if(this['_enabledCommands']['has'](_0x55c26b))throw new _0x559e97('track-changes-enable-command-twice',this,{'commandName':_0x52d23f});this['_enabledCommands']['add'](_0x55c26b),_0xccb419&&_0x55c26b['on']('execute',(_0x350339,_0x228f1e)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x228f1e['length']>0x0&&_0x228f1e[_0x228f1e['length']-0x1]&&_0x228f1e[_0x228f1e['length']-0x1]['forceDefaultExecution']?_0x228f1e['pop']():(_0x350339['return']=_0xccb419((..._0x44b427)=>_0x55c26b['execute'](..._0x44b427,{'forceDefaultExecution':!0x0}),..._0x228f1e),_0x350339['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xcf69c3){let _0x4244a1,_0x4ddbe0;const _0x3c9069=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4244a1=_0xcf69c3();}catch(_0x72f9bc){_0x4ddbe0=_0x72f9bc;}return _0x3c9069||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4ddbe0&&_0x559e97['rethrowUnexpectedError'](_0x4ddbe0,this),_0x4244a1;}['markInsertion'](_0x38c36f,_0x2d251a=null,_0x14aeed={}){if(_0x38c36f['isCollapsed'])return null;const _0xa86318=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x92bd01,meta:_0x5be6b2}of this['_findSuggestions'](_0x38c36f,'insertion'))if(_0x5be6b2['isOwn']){if(!_0x5be6b2['isNextTo']){if(_0x5be6b2['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x92bd01,_0x14aeed))continue;return _0x92bd01;}if(Lt(_0x92bd01,_0x14aeed))return _0x92bd01;this['_breakSuggestionMarker'](_0x92bd01,_0x38c36f['start'],_0x38c36f['end']);break;}if(_0x2d251a==_0x92bd01['subType']&&Lt(_0x92bd01,_0x14aeed)){const _0x2f1981=_0x92bd01['getFirstRange']();return _0x2f1981['start']['isEqual'](_0x38c36f['end'])?this['_setSuggestionRange'](_0x92bd01,this['_model']['createRange'](_0x38c36f['start'],_0x2f1981['end'])):this['_setSuggestionRange'](_0x92bd01,this['_model']['createRange'](_0x2f1981['start'],_0x38c36f['end'])),_0x92bd01;}}const _0xe6b1c5=_0x4253a4(),_0x49ec19=_0xa86318['id'],_0x8452b5=_0x2d251a?'insertion:'+_0x2d251a:'insertion',_0x4e4fde=this['_setSuggestionData']({'id':_0xe6b1c5,'type':_0x8452b5,'createdAt':new Date(),'authorId':_0x49ec19,'attributes':_0x14aeed});return this['_addSuggestionMarker'](_0x8452b5,_0xe6b1c5,_0x49ec19,_0x38c36f),_0x4e4fde;}['markMultiRangeInsertion'](_0x33f674,_0x104dfc='multi',_0x76c980={}){const _0x282be1=this['editor']['plugins']['get']('Users')['me'],_0x5cb29f=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x104dfc,'join');for(const _0x5bb9bf of this['getSuggestions']())if(_0x5bb9bf['author']['id']==_0x282be1['id']&&'insertion'==_0x5bb9bf['type']&&_0x5bb9bf['subType']==_0x104dfc&&Lt(_0x5bb9bf,_0x76c980)&&(_0x5cb29f(_0x5bb9bf['getRanges'](),_0x33f674)||_0x5cb29f(_0x33f674,_0x5bb9bf['getRanges']()))){for(const _0x35a313 of _0x33f674)_0x5bb9bf['addRange'](_0x35a313);return _0x5bb9bf;}for(const {suggestion:_0x366f38,meta:_0x2ed070}of this['_findSuggestions'](_0x33f674,'insertion')){if(!_0x2ed070['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2ed070['containsRangeInObject'])continue;if(!Lt(_0x366f38,_0x76c980))continue;let _0xd9d39=!0x0;for(const _0x38a4de of _0x366f38['getRanges']())for(const _0x14d192 of _0x33f674)if(!_0x38a4de['containsRange'](_0x14d192)){_0xd9d39=!0x1;break;}if(_0xd9d39)return _0x366f38;}const _0x42d8a5=_0x4253a4(),_0x42efc8=_0x282be1['id'],_0x26e4c6='insertion:'+_0x104dfc,_0x4e52b1=this['_setSuggestionData']({'id':_0x42d8a5,'type':_0x26e4c6,'createdAt':new Date(),'authorId':_0x42efc8,'attributes':_0x76c980});for(const _0x429812 of _0x33f674)this['_addSuggestionMarker'](_0x26e4c6,_0x42d8a5,_0x42efc8,_0x429812,u['getMultiRangeId']());return _0x4e52b1;}['markInlineFormat'](_0x1503dc,_0x8027ab,_0x598f09=null,_0x33f751={}){if(_0x598f09=_0x598f09||Vt(_0x8027ab),_0x1503dc['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x1d9e4c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x598f09,'accept');return this['forceDefaultExecution'](()=>_0x1d9e4c([_0x1503dc],_0x8027ab,_0x33f751)),null;}const _0x3b265a=this['editor']['plugins']['get']('Users')['me'],_0x39af21=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x58a959,meta:_0x45cb4a}of this['_findSuggestions'](_0x1503dc,'insertion'))_0x45cb4a['isOwn']&&!_0x45cb4a['isInsideObject']&&_0x39af21['push'](..._0x58a959['getRanges']());}const _0x32d9be=function(_0x53ff31,_0x101b01){const _0x41d50e=[];for(const _0x295165 of _0x101b01){const _0x2ff52b=_0x53ff31['getIntersection'](_0x295165);_0x2ff52b&&_0x41d50e['push'](_0x2ff52b);}return _0x41d50e;}(_0x1503dc,_0x39af21),_0x4aff5e=function(_0xa39393,_0x1ee162){const _0x4f7f1a=[_0xa39393];for(const _0x4a484a of _0x1ee162){let _0xcacc42=0x0;for(;_0xcacc42<_0x4f7f1a['length'];){const _0x4df35c=_0x4f7f1a[_0xcacc42]['getDifference'](_0x4a484a);_0x4f7f1a['splice'](_0xcacc42,0x1,..._0x4df35c),_0xcacc42+=_0x4df35c['length'];}}return _0x4f7f1a;}(_0x1503dc,_0x39af21);_0x32d9be['length']&&this['_model']['change'](()=>{for(const _0x24847f of _0x32d9be){const _0x3dba3d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x598f09,'accept');this['forceDefaultExecution'](()=>_0x3dba3d([_0x24847f],_0x8027ab,_0x33f751));}});for(const _0xaf8bc0 of _0x4aff5e){let _0x47c936=null,_0x24c462=_0xaf8bc0['start'],_0x58d1a6=_0xaf8bc0['end'];for(const {suggestion:_0x18f1c9,meta:_0x67f98e}of this['_findSuggestions'](_0xaf8bc0,'formatInline')){if(!_0x67f98e['isOwn'])continue;if(_0x18f1c9['subType']!=_0x598f09)continue;if(!Lt(_0x18f1c9,_0x33f751))continue;const _0x456ed3=_0x18f1c9['getFirstRange']();if(_0x456ed3['containsRange'](_0xaf8bc0,!0x0))return null;_0x24c462=_0x24c462['isBefore'](_0x456ed3['start'])?_0x24c462:_0x456ed3['start'],_0x58d1a6=_0x58d1a6['isAfter'](_0x456ed3['end'])?_0x58d1a6:_0x456ed3['end'],_0x47c936?_0x456ed3['start']['isBefore'](_0x47c936['getFirstRange']()['start'])?(_0x47c936['removeMarkers'](),_0x47c936=_0x18f1c9):_0x18f1c9['removeMarkers']():_0x47c936=_0x18f1c9;}const _0x53bd8b=this['_model']['createRange'](_0x24c462,_0x58d1a6);if(_0x47c936)this['_setSuggestionRange'](_0x47c936,_0x53bd8b);else{const _0x18158c=_0x4253a4(),_0x3052cc=_0x3b265a['id'];this['_setSuggestionData']({'id':_0x18158c,'type':'formatInline:'+_0x598f09,'data':_0x8027ab,'createdAt':new Date(),'authorId':_0x3052cc,'attributes':_0x33f751}),this['_addSuggestionMarker']('formatInline:'+_0x598f09,_0x18158c,_0x3052cc,_0x53bd8b);}}return null;}['markBlockFormat'](_0x3b6b5e,_0x426267,_0x3522a6=[],_0x11e6be=null,_0x1eaaae={}){_0x426267['formatGroupId']||(_0x426267['formatGroupId']=_0x426267['commandName']),_0x426267['multipleBlocks']=_0x3b6b5e['is']('range'),_0x11e6be=_0x11e6be||Vt(_0x426267);const _0x56d5f5=_0x3522a6['map'](_0x149b6=>Gt(_0x149b6,this['_model'])),_0x18f988=_0x3b6b5e['is']('range')?_0x3b6b5e:Gt(_0x3b6b5e,this['_model']);if('never'===this['_trackFormatChanges']){const _0x41d0f5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11e6be,'accept');return this['forceDefaultExecution'](()=>_0x41d0f5([_0x18f988],_0x426267,_0x1eaaae)),null;}_0x56d5f5['push'](_0x18f988);let _0x472962=!0x0;for(const _0x2c6736 of _0x56d5f5)if(!this['_rangeIsInLocalUserInsertion'](_0x2c6736)){_0x472962=!0x1;break;}if(_0x472962&&'always'!==this['_trackFormatChanges']){const _0x5c6161=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11e6be,'accept');return this['forceDefaultExecution'](()=>_0x5c6161([_0x18f988],_0x426267,_0x1eaaae)),null;}let _0x342f0e=null,_0x4d5cc6=_0x18f988['start'],_0x31c1b4=_0x18f988['end'];for(const {suggestion:_0x2e3007,meta:_0x1ab896}of this['_findSuggestions'](_0x18f988,'formatBlock')){if(!_0x1ab896['isOwn'])continue;if(_0x1ab896['isNextTo']||_0x1ab896['containsRangeInObject']||_0x1ab896['isInsideObject'])continue;if(_0x2e3007['data']['formatGroupId']!=_0x426267['formatGroupId'])continue;if(!Lt(_0x2e3007,_0x1eaaae))continue;const _0x11e799=_0x2e3007['getFirstRange']();if(_0x2e3007['subType']==_0x11e6be){if(_0x11e799['containsRange'](_0x18f988,!0x0))return null;_0x4d5cc6=_0x4d5cc6['isBefore'](_0x11e799['start'])?_0x4d5cc6:_0x11e799['start'],_0x31c1b4=_0x31c1b4['isAfter'](_0x11e799['end'])?_0x31c1b4:_0x11e799['end'],_0x342f0e?_0x11e799['start']['isBefore'](_0x342f0e['getFirstRange']()['start'])?(_0x342f0e['removeMarkers'](),_0x342f0e=_0x2e3007):_0x2e3007['removeMarkers']():_0x342f0e=_0x2e3007;}else{const _0x42f7b3=_0x18f988['getIntersection'](_0x11e799);this['_cutOutSuggestionMarker'](_0x2e3007,_0x42f7b3);}}const _0x1efedf=this['editor']['plugins']['get']('Users')['me'],_0x9b2bd=_0x4253a4(),_0x59a531=_0x1efedf['id'];if(_0x342f0e)return this['_setSuggestionRange'](_0x342f0e,this['_model']['createRange'](_0x4d5cc6,_0x31c1b4)),_0x342f0e;{const _0x21ffae=this['_setSuggestionData']({'id':_0x9b2bd,'type':'formatBlock:'+_0x11e6be,'data':_0x426267,'createdAt':new Date(),'authorId':_0x59a531,'attributes':_0x1eaaae});return this['_addSuggestionMarker']('formatBlock:'+_0x11e6be,_0x9b2bd,_0x59a531,this['_model']['createRange'](_0x4d5cc6,_0x31c1b4)),_0x21ffae;}}['markMultiRangeBlockFormat'](_0x4f34b2,_0x145f7e,_0x35688f=[],_0x485523=null,_0x1ffb7b={}){_0x145f7e['formatGroupId']||(_0x145f7e['formatGroupId']=_0x145f7e['commandName']);const _0x3b9fa0=_0x4f34b2[0x0];_0x145f7e['multipleBlocks']=_0x3b9fa0['is']('range'),_0x485523=_0x485523||Vt(_0x145f7e);const _0x14d77b=_0x35688f['map'](_0x169156=>Gt(_0x169156,this['_model'])),_0xd6e992=_0x3b9fa0['is']('range')?_0x4f34b2:_0x4f34b2['map'](_0x454fed=>Gt(_0x454fed,this['_model']));if('never'===this['_trackFormatChanges']){const _0x27d56c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x485523,'accept');return this['forceDefaultExecution'](()=>_0x27d56c(_0xd6e992,_0x145f7e,_0x1ffb7b)),null;}_0x14d77b['push'](..._0xd6e992);let _0xdd287d=!0x0;for(const _0x1393ea of _0x14d77b)if(!this['_rangeIsInLocalUserInsertion'](_0x1393ea)){_0xdd287d=!0x1;break;}if(_0xdd287d&&'always'!==this['_trackFormatChanges']){const _0x5c31fe=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x485523,'accept');return this['forceDefaultExecution'](()=>_0x5c31fe(_0xd6e992,_0x145f7e,_0x1ffb7b)),null;}const _0x53c142=this['editor']['plugins']['get']('Users')['me'];for(const _0x20e1f2 of this['getSuggestions']()){if(_0x20e1f2['author']['id']!=_0x53c142['id'])continue;if('formatBlock'!=_0x20e1f2['type']||_0x20e1f2['data']['formatGroupId']!=_0x145f7e['formatGroupId'])continue;if(!Lt(_0x20e1f2,_0x1ffb7b))continue;const _0x4753fd=_0x20e1f2['subType']==_0x485523;for(let _0x1e1617=0x0;_0x1e1617<_0xd6e992['length'];_0x1e1617++){const _0x2d593a=_0xd6e992[_0x1e1617];for(const _0x1b081f of _0x20e1f2['getMarkers']()){const _0x2e7672=_0x1b081f['getRange']();if(_0x2d593a['isEqual'](_0x2e7672)){_0x4753fd?(_0xd6e992['splice'](_0x1e1617,0x1),_0x1e1617--):_0x20e1f2['removeMarker'](_0x1b081f['name']);break;}}}}if(0x0==_0xd6e992['length'])return null;const _0x5ebf8a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x485523,'join');for(const _0x2cc3aa of this['getSuggestions']())if(_0x2cc3aa['author']['id']==_0x53c142['id']&&'formatBlock'==_0x2cc3aa['type']&&_0x2cc3aa['data']['formatGroupId']==_0x145f7e['formatGroupId']&&_0x2cc3aa['subType']==_0x485523&&Lt(_0x2cc3aa,_0x1ffb7b)&&(_0x5ebf8a(_0x2cc3aa['getRanges'](),_0xd6e992)||_0x5ebf8a(_0xd6e992,_0x2cc3aa['getRanges']()))){for(const _0x3e6622 of _0xd6e992)_0x2cc3aa['addRange'](_0x3e6622);return _0x2cc3aa;}const _0x44029a=_0x4253a4(),_0x294c76=_0x53c142['id'],_0x28924a='formatBlock:'+_0x485523,_0x1f4ad7=this['_setSuggestionData']({'id':_0x44029a,'type':_0x28924a,'data':_0x145f7e,'createdAt':new Date(),'authorId':_0x294c76,'attributes':_0x1ffb7b});for(const _0x594ad5 of _0xd6e992)this['_addSuggestionMarker'](_0x28924a,_0x44029a,_0x294c76,_0x594ad5,u['getMultiRangeId']());return _0x1f4ad7;}['markDeletion'](_0x14cf39,_0x89fd5=null,_0x98f299={}){if(_0x14cf39['isCollapsed'])return null;const _0x54a079=this['editor']['plugins']['get']('Users')['me'],_0x344bfe=new _0x2b023b(_0x14cf39['start'],_0x14cf39['end']);for(const {suggestion:_0x1c6a87,meta:_0x230793}of this['_findSuggestions'](_0x344bfe,'insertion'))if(_0x230793['isOwn']&&!_0x230793['isNextTo']){if(_0x1c6a87['isMultiRange']){const _0x531d4d=_0x1c6a87['getRanges']()['filter'](_0x323b1e=>'$graveyard'!=_0x323b1e['root']['rootName']);_0x531d4d['every'](_0xa70b02=>_0x344bfe['containsRange'](_0xa70b02,!0x0))&&_0x1c6a87['discard']();if(_0x531d4d['some'](_0x16d46d=>_0x16d46d['containsRange'](_0x344bfe,!0x0))){const _0x4d4f16=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x89fd5,'accept');return this['forceDefaultExecution'](()=>_0x4d4f16([_0x344bfe],null,_0x98f299)),null;}}else{const _0x16ae76=_0x344bfe['getIntersection'](_0x1c6a87['getFirstRange']());null!==_0x16ae76&&_0x1c6a87['_onDiscard']([_0x16ae76],null,_0x98f299);}}if(_0x344bfe['detach'](),_0x344bfe['isCollapsed']||'$graveyard'==_0x344bfe['root']['rootName'])return null;let _0x5d0799=null,_0x97649=_0x344bfe['start'],_0x303aba=_0x344bfe['end'];const _0x47c606=this['_findSuggestions'](_0x344bfe,'deletion');for(const {suggestion:_0x51b549,meta:_0x1a5349}of _0x47c606){const _0x248fb3=this['_model']['createRange'](_0x97649,_0x303aba);if(_0x1a5349['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1a5349['containsRangeInObject']&&!_0x1a5349['isInsideObject'])){if(_0x51b549['isMultiRange']){if(!Lt(_0x51b549,_0x98f299))continue;let _0x4bb33c=!0x0;for(const _0x3f2a35 of _0x51b549['getRanges']()){if(_0x3f2a35['containsRange'](_0x248fb3,!0x0))return _0x51b549;_0x248fb3['containsRange'](_0x3f2a35)||(_0x4bb33c=!0x1);}_0x4bb33c&&_0x51b549['discard']();}else{const _0x2578b8=_0x51b549['getFirstRange']();if(_0x2578b8['containsRange'](_0x248fb3,!0x0))return _0x51b549;if(!Lt(_0x51b549,_0x98f299)){_0x248fb3['containsRange'](_0x2578b8)?_0x51b549['removeMarkers']():_0x2578b8['containsPosition'](_0x97649)?_0x97649=_0x2578b8['end']:_0x2578b8['containsPosition'](_0x303aba)&&(_0x303aba=_0x2578b8['start']);continue;}_0x97649=_0x97649['isBefore'](_0x2578b8['start'])?_0x97649:_0x2578b8['start'],_0x303aba=_0x303aba['isAfter'](_0x2578b8['end'])?_0x303aba:_0x2578b8['end'],_0x98f299=Object['assign']({},_0x51b549['attributes']),_0x5d0799?_0x2578b8['start']['isBefore'](_0x5d0799['getFirstRange']()['start'])?(_0x5d0799['removeMarkers'](),_0x5d0799=_0x51b549):_0x51b549['removeMarkers']():_0x5d0799=_0x51b549;}}}if(_0x5d0799)return this['_setSuggestionRange'](_0x5d0799,this['_model']['createRange'](_0x97649,_0x303aba)),_0x5d0799;{const _0x10f275=_0x4253a4(),_0x30bb0d=this['_model']['createRange'](_0x97649,_0x303aba),_0x555615=_0x54a079['id'],_0x546da8=_0x89fd5?'deletion:'+_0x89fd5:'deletion',_0x5c0650=this['_setSuggestionData']({'id':_0x10f275,'type':_0x546da8,'createdAt':new Date(),'authorId':_0x555615,'attributes':_0x98f299});return this['_addSuggestionMarker'](_0x546da8,_0x10f275,_0x555615,_0x30bb0d),_0x5c0650;}}['markMultiRangeDeletion'](_0x40b694,_0x22aa31='multi',_0x4881e0={}){const _0x5e1916=this['editor']['plugins']['get']('Users')['me'],_0x448802=_0x40b694['map'](_0x5c0b1e=>new _0x2b023b(_0x5c0b1e['start'],_0x5c0b1e['end'])),_0x32305c=new Set();for(const {suggestion:_0xc9bd09,meta:_0x1dcfbb}of this['_findSuggestions'](_0x448802,'insertion'))_0x1dcfbb['isOwn']&&!_0x1dcfbb['isNextTo']&&_0x32305c['add'](_0xc9bd09);for(const _0xcbd1a7 of _0x32305c)if(_0xcbd1a7['isMultiRange']){const _0x43a6e5=_0xcbd1a7['getRanges']();(!_0xcbd1a7['attributes']||!_0xcbd1a7['attributes']['skipNestingCheck'])&&(_0x43a6e5['every'](_0x5f0b24=>_0x448802['some'](_0x57f36e=>_0x57f36e['containsRange'](_0x5f0b24,!0x0)))&&_0xcbd1a7['discard']());if(_0x448802['every'](_0x1e0012=>_0x43a6e5['some'](_0x52d94d=>_0x52d94d['containsRange'](_0x1e0012,!0x0)))){const _0x3f55ea=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x22aa31,'accept');return this['forceDefaultExecution'](()=>_0x3f55ea(_0x40b694,null,_0x4881e0)),null;}}else{const _0x27de76=_0xcbd1a7['getFirstRange']();_0x448802['some'](_0x9e342b=>_0x9e342b['containsRange'](_0x27de76,!0x0))&&_0xcbd1a7['discard']();if(_0x448802['every'](_0x3a460a=>_0x27de76['containsRange'](_0x3a460a,!0x0))){const _0x5191ff=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x22aa31,'accept');return this['forceDefaultExecution'](()=>_0x5191ff(_0x448802,null,_0x4881e0)),null;}}const _0x147a0b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x22aa31,'join');let _0x5af2ac=null;for(const _0x5e3766 of this['getSuggestions']())if(_0x5e3766['author']['id']==_0x5e1916['id']&&_0x5e3766['isInContent']&&'deletion'==_0x5e3766['type']&&_0x5e3766['subType']==_0x22aa31&&Lt(_0x5e3766,_0x4881e0)&&(_0x147a0b(_0x5e3766['getRanges'](),_0x448802)||_0x147a0b(_0x448802,_0x5e3766['getRanges']()))){if(_0x5af2ac){if(_0x5e3766['commentThread']&&_0x5e3766['commentThread']['length'])continue;for(const _0x5de753 of _0x5e3766['getRanges']())_0x5af2ac['isIntersectingWithRange'](_0x5de753)||_0x5af2ac['addRange'](_0x5de753);_0x5e3766['removeMarkers']();}else{_0x5af2ac=_0x5e3766;for(const _0x3f318d of _0x448802)_0x5e3766['isIntersectingWithRange'](_0x3f318d)||_0x5e3766['addRange'](_0x3f318d);}}if(_0x5af2ac)return _0x5af2ac;_0x32305c['clear']();for(const {suggestion:_0x5ace2c,meta:_0x24a58c}of this['_findSuggestions'](_0x448802,'deletion'))_0x24a58c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x24a58c['containsRangeInObject']&&!_0x24a58c['isInsideObject'])&&Lt(_0x5ace2c,_0x4881e0)&&_0x32305c['add'](_0x5ace2c);for(const _0x4e481d of _0x32305c){const _0x205020=_0x4e481d['getRanges']();if(!_0x4881e0||!_0x4881e0['skipNestingCheck']){if(_0x448802['every'](_0x52c5c8=>_0x205020['some'](_0x4ee151=>_0x4ee151['containsRange'](_0x52c5c8,!0x0))))return _0x4e481d;}(!_0x4e481d['attributes']||!_0x4e481d['attributes']['skipNestingCheck'])&&(_0x205020['every'](_0x4056d4=>_0x448802['some'](_0x58eeb9=>_0x58eeb9['containsRange'](_0x4056d4,!0x0)))&&_0x4e481d['discard']());}const _0x523f61=_0x4253a4(),_0x77bb60=_0x5e1916['id'],_0x2fa1e9='deletion:'+_0x22aa31,_0x376e9c=this['_setSuggestionData']({'id':_0x523f61,'type':_0x2fa1e9,'createdAt':new Date(),'authorId':_0x77bb60,'attributes':_0x4881e0});for(const _0x28a20a of _0x448802)_0x28a20a['detach'](),_0x28a20a['isCollapsed']||'$graveyard'==_0x28a20a['root']['rootName']||this['_addSuggestionMarker'](_0x2fa1e9,_0x523f61,_0x77bb60,_0x28a20a,u['getMultiRangeId']());return _0x376e9c;}['markAttributeChange'](_0x23f8c6,_0x4af981,_0x2e31eb,_0x196bb9,_0x59918e){if(_0x23f8c6['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1a2b18=this['editor']['plugins']['get']('Users')['me']['id'],_0x44974c=Array['from'](this['_suggestions']['values']())['filter'](_0x1fa129=>'attribute'==_0x1fa129['type']&&_0x1fa129['data']['key']==_0x4af981&&_0x1fa129['isIntersectingWithRange'](_0x23f8c6));if('default'===this['_trackFormatChanges']){const _0x536d26=this['_findSuggestions'](_0x23f8c6,'insertion')['filter'](({meta:_0x221cc3})=>_0x221cc3['isOwn']&&!_0x221cc3['isInsideObject']&&!_0x221cc3['isNextTo'])['map'](({suggestion:_0x3b2df0})=>_0x3b2df0);_0x44974c['unshift'](..._0x536d26);}const _0x4158e1=new Map([[_0x23f8c6,_0x2e31eb]]);for(const _0x59521c of _0x44974c){const _0x1f1438='attribute'==_0x59521c['type']?_0x59521c['data']['oldValue']:void 0x0,_0xe15ee8=_0x59521c['getFirstRange'](),_0xa883eb=Array['from'](_0x4158e1['keys']())['find'](_0xc1245a=>_0xc1245a['isIntersecting'](_0xe15ee8));if(!_0xa883eb)continue;const _0x579f7e=_0xa883eb['getDifference'](_0xe15ee8);this['_isBlockAttribute'](_0x4af981)&&'insertion'==_0x59521c['type']&&0x0!=_0x579f7e['length']||(_0x4158e1['delete'](_0xa883eb),_0x579f7e['forEach'](_0xee934=>{_0x4158e1['set'](_0xee934,_0x2e31eb);}),'insertion'!=_0x59521c['type']&&_0x1f1438!=_0x196bb9&&_0x4158e1['set'](_0xa883eb['getIntersection'](_0xe15ee8),_0x1f1438));}const _0x24aefb=[];for(const [_0x449004,_0x4dbdae]of _0x4158e1){const _0x55d008=_0x4253a4(),_0x41de95={'key':_0x4af981,'oldValue':_0x4dbdae,'newValue':_0x196bb9};_0x4af981['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':_0x4af981});const _0x6d025e=('attribute:'+(_0x4af981+'|'+Vt({'newValue':_0x196bb9})))['substring'](0x0,0x3c),_0x35863f=this['_setSuggestionData']({'id':_0x55d008,'type':_0x6d025e,'data':_0x41de95,'createdAt':new Date(),'authorId':_0x1a2b18,'attributes':_0x59918e});_0x24aefb['push'](_0x35863f),this['_addSuggestionMarker'](_0x6d025e,_0x55d008,_0x1a2b18,_0x449004);}return _0x24aefb;}['enableDefaultAttributesIntegration'](_0x4436aa){this['enableCommand'](_0x4436aa,(_0x11de88,..._0x36525c)=>{this['_recordAttributeChanges'](()=>{_0x11de88(..._0x36525c);});});}['registerBlockAttribute'](_0x570210){this['_blockAttributeKeys']['add'](_0x570210);}['registerInlineAttribute'](_0x26a1dd){this['_inlineAttributeKeys']['add'](_0x26a1dd);}['_getAttributeKey'](_0x390139){return'attribute'==_0x390139['type']?_0x390139['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4d9dc1,_0x523ed4){const _0xa6612b=_0x4d9dc1['getFirstMarker']();this['_model']['change'](_0x4a8cf8=>{_0x4a8cf8['updateMarker'](_0xa6612b,{'range':_0x523ed4});});}['_addThreadToSuggestion'](_0x339178){const _0x5e5c01=_0x339178['id'],_0xb5b564=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5e5c01)||this['_commentsRepository']['addCommentThread']({'channelId':_0xb5b564,'threadId':_0x5e5c01,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x134215=this['_commentsRepository']['getCommentThread'](_0x5e5c01);_0x134215['unbind']('isRemovable'),_0x134215['isRemovable']=!0x1,_0x339178['commentThread']=_0x134215;}['_checkSuggestionCorrectness'](_0x2df933,_0x472dec,_0x5d4ac2,_0x18c6cb){if(_0x2df933['type']!=_0x472dec||_0x2df933['subType']!=_0x5d4ac2||_0x2df933['creator']['id']!=_0x18c6cb)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x559e97('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x17d9f0,_0x54f1a8){const _0x35c905=_0x17d9f0['getFirstRange']();if(_0x54f1a8['isEqual'](_0x35c905))_0x17d9f0['removeMarkers']();else{if(_0x35c905['containsRange'](_0x54f1a8)){const _0x1a96c3=this['_model']['createPositionAt'](_0x54f1a8['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x17d9f0,this['_model']['createRange'](_0x35c905['start'],_0x1a96c3));const _0x535e1d=_0x4253a4(),_0x11e290=_0x17d9f0['creator']['id'],_0x83f0d=_0x17d9f0['type']+':'+_0x17d9f0['subType'];this['_setSuggestionData']({'id':_0x535e1d,'type':_0x83f0d,'createdAt':new Date(),'authorId':_0x11e290,'data':_0x17d9f0['data'],'attributes':_0x17d9f0['attributes']});const _0x1a7173=this['_model']['createPositionAt'](_0x54f1a8['end']['parent'],'after'),_0xa8c78d=this['_model']['createRange'](_0x1a7173,_0x35c905['end']);this['_addSuggestionMarker'](_0x83f0d,_0x535e1d,_0x11e290,_0xa8c78d);}else{if(_0x35c905['containsPosition'](_0x54f1a8['start'])){const _0x246555=this['_model']['createPositionAt'](_0x54f1a8['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x17d9f0,this['_model']['createRange'](_0x35c905['start'],_0x246555));}else{const _0x4a73e2=this['_model']['createPositionAt'](_0x54f1a8['end']['parent'],'after');this['_setSuggestionRange'](_0x17d9f0,this['_model']['createRange'](_0x4a73e2,_0x35c905['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x10605d){for(const {suggestion:_0x78ded1,meta:_0x143610}of this['_findSuggestions'](_0x10605d,'insertion')){if(!_0x143610['isOwn'])continue;const _0x186e3b=_0x78ded1['getRanges']();for(const _0x40e0dc of _0x186e3b)if(!_0x10605d['getDifference'](_0x40e0dc)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x529a2d){const _0x2c7ef0=this['editor']['plugins']['get']('Users')['getUser'](_0x529a2d);if(!_0x2c7ef0)throw new _0x559e97('track-changes-user-not-found',this);return _0x2c7ef0;}['_getExternalAuthor'](_0x59e558){const _0x39b99f=this['editor']['plugins']['get']('Users'),_0x40fa18=_0xb8b99e('external:'+_0x59e558),_0x505beb=_0x39b99f['getUser'](_0x40fa18);return _0x505beb||_0x39b99f['addUser']({'id':_0x40fa18,'name':_0x59e558});}['_createSuggestion'](_0x4d65ea,_0x986ad0,_0x568a84,_0x5d774b,_0x307a56){const _0x7ec085=this['_getAuthorFromId'](_0x5d774b),_0x252d16=this['_suggestionFactory']['buildSuggestion'](_0x4d65ea,_0x986ad0,_0x568a84,_0x7ec085,_0x307a56,_0x22d6ec=>{this['_updateSuggestionData'](_0x568a84,{'attributes':_0x22d6ec});const _0xbcf3a2=this['getSuggestion'](_0x568a84);this['_joinWithAdjacentSuggestions'](new Set([_0xbcf3a2])),this['_refreshSuggestionsChain'](new Set([_0xbcf3a2]));});return this['listenTo'](_0x252d16,'accept',()=>{this['_updateSuggestionData'](_0x568a84,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x252d16,'discard',()=>{this['_updateSuggestionData'](_0x568a84,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x568a84,_0x252d16),this['_suggestionState']['set'](_0x252d16,'notReady'),_0x252d16;}['_splitMarkerName'](_0x43eb74){const _0x3eba2d=_0x43eb74['split'](':');return{'group':_0x3eba2d[0x0],'type':_0x3eba2d[0x1],'subType':_0x3eba2d['length']>=0x5?_0x3eba2d[0x2]:null,'id':_0x3eba2d['length']<0x5?_0x3eba2d[0x2]:_0x3eba2d[0x3],'authorId':_0x3eba2d['length']<0x5?_0x3eba2d[0x3]:_0x3eba2d[0x4],'markerCount':0x6==_0x3eba2d['length']?_0x3eba2d[0x5]:null};}['_breakSuggestionMarker'](_0x4c43ba,_0x3cbced,_0x4c5560){const _0x3124e3=_0x4c43ba['getFirstRange'](),_0x481b3a=_0x3124e3['start'],_0x3bd091=_0x3124e3['end'];this['_setSuggestionRange'](_0x4c43ba,this['_model']['createRange'](_0x481b3a,_0x3cbced));const _0x2141ed=_0x4253a4(),_0x35c186=_0x4c43ba['creator']['id'],_0x420a74=_0x4c43ba['type']+(_0x4c43ba['subType']?':'+_0x4c43ba['subType']:'');this['_setSuggestionData']({'id':_0x2141ed,'type':_0x420a74,'createdAt':new Date(),'authorId':_0x35c186,'originalSuggestionId':_0x4c43ba['id'],'attributes':_0x4c43ba['attributes'],'data':_0x4c43ba['data']});const _0x48b476=this['_getAttributeKey'](_0x4c43ba);('formatBlock'==_0x4c43ba['type']||_0x48b476&&this['_isBlockAttribute'](_0x48b476))&&(_0x4c5560=this['_model']['createPositionBefore'](_0x4c5560['parent'])),this['_addSuggestionMarker'](_0x420a74,_0x2141ed,_0x35c186,this['_model']['createRange'](_0x4c5560,_0x3bd091));}['_findSuggestions'](_0xf8f64f,_0x43b16c=null){const _0x274bc4=[],_0x494628=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xf8f64f)||(_0xf8f64f=[_0xf8f64f]);for(const _0x5b6589 of this['getSuggestions']()){if(!_0x5b6589['isInContent'])continue;if(_0x43b16c&&_0x5b6589['type']!=_0x43b16c)continue;let _0x5dd8d3=!0x1;for(const _0x47b712 of _0x5b6589['getRanges']()){for(const _0x465e17 of _0xf8f64f){const _0x13592a=_0x465e17['start']['isEqual'](_0x47b712['end'])||_0x465e17['end']['isEqual'](_0x47b712['start']);if(_0x13592a||_0x465e17['getIntersection'](_0x47b712)){const _0x130e1e=_0x465e17['containsRange'](_0x47b712)&&Rt(this['_model']['schema'],_0x47b712['start'],_0x465e17),_0x268d0d=_0x47b712['containsRange'](_0x465e17)&&Rt(this['_model']['schema'],_0x465e17['start'],_0x47b712);_0x274bc4['push']({'suggestion':_0x5b6589,'meta':{'isOwn':_0x494628==_0x5b6589['author'],'isNextTo':_0x13592a,'isInsideObject':_0x130e1e,'containsRangeInObject':_0x268d0d}}),_0x5dd8d3=!0x0;break;}}if(_0x5dd8d3)break;}}return _0x274bc4;}['_addSuggestionMarker'](_0x4c4330,_0x13134a,_0x49ca56,_0x20f980,_0x337299){this['_model']['change'](_0x16ec6f=>{let _0x1f71a8='suggestion:'+_0x4c4330+':'+_0x13134a+':'+_0x49ca56;_0x337299&&(_0x1f71a8=_0x1f71a8+':'+_0x337299),_0x16ec6f['addMarker'](_0x1f71a8,{'range':_0x20f980,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x175bb3){const _0xccd2d5=_0x175bb3['previous'],_0x5c4a25=_0x175bb3['next'];_0x175bb3['previous']=null,_0x175bb3['next']=null,null!=_0xccd2d5&&_0xccd2d5['next']==_0x175bb3&&(_0xccd2d5['next']=_0x5c4a25),null!=_0x5c4a25&&_0x5c4a25['previous']==_0x175bb3&&(_0x5c4a25['previous']=_0xccd2d5),'ready'==this['_suggestionState']['get'](_0x175bb3)&&(this['_suggestionState']['set'](_0x175bb3,'removed'),this['fire']('suggestionUnloaded',_0x175bb3,_0xccd2d5,_0x5c4a25));}['_setSuggestionData'](_0x47ac99){const _0x415384=_0x47ac99['id'],_0x25315a=this['addSuggestionData'](_0x47ac99);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1b954a=this['editor']['plugins']['get']('PendingActions'),_0x2a8f7d=_0x25315a['hasComments'],_0x4610bd=_0x25315a['subType']?_0x25315a['type']+':'+_0x25315a['subType']:_0x25315a['type'],_0x360e9f=this['editor']['locale'],_0x194543=_0x1b954a['add'](o(_0x360e9f,'PENDING_ACTION_SUGGESTION')),_0x1a8f89={'id':_0x415384,'type':_0x4610bd,'hasComments':_0x2a8f7d,'data':_0x47ac99['data']||null,'originalSuggestionId':_0x47ac99['originalSuggestionId']||null,'attributes':_0x25315a['attributes']};this['_adapter']['addSuggestion'](_0x1a8f89)['then'](_0x1a0fbc=>{_0x25315a['_saved']=!0x0,_0x1b954a['remove'](_0x194543),_0x1a0fbc&&_0x1a0fbc['createdAt']&&(this['_suggestions']['get'](_0x415384)['createdAt']=_0x1a0fbc['createdAt']);})['catch'](_0x3aa324=>{throw _0x16a41d('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x25315a['discard']();}),_0x25315a['stopListening'](),this['_suggestions']['delete'](_0x25315a['id']),this['_suggestionState']['delete'](_0x25315a),_0x3aa324;});}return _0x25315a;}['_isBlockAttribute'](_0x4a7587){return this['_blockAttributeKeys']['has'](_0x4a7587);}['_updateSuggestionData'](_0x731c97,_0x180188){const _0x2452d1=this['editor']['plugins']['get']('PendingActions'),_0x59d7da=this['getSuggestion'](_0x731c97);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x59d7da['_saved']){const _0x4b4f33=_0x2452d1['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x731c97,_0x180188)['then'](()=>{_0x2452d1['remove'](_0x4b4f33);});}else _0x59d7da['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x731c97,_0x180188);});}}['_getSuggestionData'](_0x5f5247){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x559e97('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5f5247);}['_handleNewSuggestionMarker'](_0xe53e69){const {id:_0x1cc044,type:_0x5367d1,subType:_0x1ad964,authorId:_0x1b8ec7}=this['_splitMarkerName'](_0xe53e69),_0x23ea0c=this['_suggestions']['get'](_0x1cc044)||this['_createSuggestion'](_0x5367d1,_0x1ad964,_0x1cc044,_0x1b8ec7,{});switch(this['_checkSuggestionCorrectness'](_0x23ea0c,_0x5367d1,_0x1ad964,_0x1b8ec7),this['_suggestionState']['get'](_0x23ea0c)){case'notReady':this['_getSuggestionData'](_0x1cc044)['then'](_0x242fa0=>{let _0x30b017=Promise['resolve']();_0x242fa0['hasComments']&&(_0x30b017=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1cc044})),_0x30b017['then'](()=>{this['addSuggestionData'](_0x242fa0)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x23ea0c,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1cc044,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x23ea0c,'ready'),this['fire']('suggestionLoaded',_0x23ea0c);break;case'ready':this['fire']('suggestionChanged',_0x23ea0c);}return _0x23ea0c['addMarkerName'](_0xe53e69),_0x23ea0c;}['_refreshSuggestionsChain'](_0x1f8c47){const _0x3c8083=Array['from'](_0x1f8c47),_0x15fab4=_0x3c8083['filter'](_0x481db6=>'attribute'==_0x481db6['type']);this['_refreshAttributeSuggestionsChain'](_0x15fab4);const _0x2ba2c4=_0x3c8083['filter'](_0x267426=>!_0x267426['isMultiRange']&&'attribute'!=_0x267426['type']),_0x6bad7c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x293fc3=>!_0x293fc3['isMultiRange']&&'attribute'!=_0x293fc3['type']),_0x3528ee=_0x6bad7c['filter'](_0x48a474=>!_0x1f8c47['has'](_0x48a474)),_0x4e6bbd=new Map(_0x6bad7c['map'](_0x3d8d01=>[_0x3d8d01,this['_suggestionFactory']['getSuggestionCallback'](_0x3d8d01['type'],_0x3d8d01['subType'],'chain')])),_0x3e148b=new Map(_0x6bad7c['map'](_0x3b30f0=>[_0x3b30f0,_0x3b30f0['getFirstRange']()])),_0x449a4b=new Set(),_0x2d6b97=new Set();for(let _0x3ad214=0x0;_0x3ad214<_0x2ba2c4['length'];_0x3ad214++)_0x533a25(_0x2ba2c4[_0x3ad214],_0x2ba2c4,_0x3ad214+0x1);for(let _0x4c6ed7=0x0;_0x4c6ed7<_0x2ba2c4['length'];_0x4c6ed7++)_0x533a25(_0x2ba2c4[_0x4c6ed7],_0x3528ee,0x0);const _0x5320ef=new Set();for(let _0x545998=0x0;_0x545998<_0x2ba2c4['length'];_0x545998++){const _0x180e9b=_0x2ba2c4[_0x545998];!_0x2d6b97['has'](_0x180e9b)&&_0x180e9b['previous']&&(_0x5320ef['add'](_0x180e9b['previous']),_0x180e9b['previous']['next']===_0x180e9b&&(_0x180e9b['previous']['next']=null),_0x180e9b['previous']=null),!_0x449a4b['has'](_0x180e9b)&&_0x180e9b['next']&&(_0x5320ef['add'](_0x180e9b['next']),_0x180e9b['next']['previous']===_0x180e9b&&(_0x180e9b['next']['previous']=null),_0x180e9b['next']=null);}function _0x533a25(_0x3e5702,_0x1302ea,_0x29a3ea){for(let _0x4824ac=_0x29a3ea;_0x4824ac<_0x1302ea['length'];_0x4824ac++){const _0x3487d0=_0x519497(_0x3e5702,_0x1302ea[_0x4824ac]);_0x3487d0&&(_0x3487d0[0x0]['next']=_0x3487d0[0x1],_0x3487d0[0x1]['previous']=_0x3487d0[0x0],_0x449a4b['add'](_0x3487d0[0x0]),_0x2d6b97['add'](_0x3487d0[0x1]));}}function _0x519497(_0x404e1e,_0x5a5342){if(_0x404e1e['author']['id']!==_0x5a5342['author']['id'])return null;const _0x203248=_0x4e6bbd['get'](_0x404e1e)(_0x404e1e,_0x5a5342,_0x3e148b['get'](_0x404e1e),_0x3e148b['get'](_0x5a5342));if(!_0x203248)return null;return _0x4e6bbd['get'](_0x5a5342)(_0x404e1e,_0x5a5342,_0x3e148b['get'](_0x404e1e),_0x3e148b['get'](_0x5a5342))?_0x203248[0x1]['commentThread']&&_0x203248[0x1]['commentThread']['length']?null:_0x203248:null;}_0x5320ef['size']&&this['_refreshSuggestionsChain'](_0x5320ef);}['_refreshAttributeSuggestionsChain'](_0x56aa7e){if(0x0==_0x56aa7e['length'])return;const _0x113919=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x180bbb=>'attribute'==_0x180bbb['type']&&_0x180bbb['_isDataLoaded']),_0x5c9fd8=[],_0x2b104a=new Map();for(const _0x42c1fa of _0x113919){const _0x30f007=_0xb8b99e(_0x42c1fa['attributes']);_0x2b104a['has'](_0x30f007)||(_0x2b104a['set'](_0x30f007,_0x5c9fd8['length']),_0x5c9fd8['push']([]));const _0x205a17=_0x2b104a['get'](_0x30f007);_0x5c9fd8[_0x205a17]['push'](_0x42c1fa);}!(function(){_0x5c9fd8['sort']((_0x5f5478,_0x75c70d)=>{const _0x10e172=_0x5f5478[0x0]['createdAt'],_0x312e88=_0x75c70d[0x0]['createdAt'];return _0x10e172==_0x312e88?_0x5f5478[0x0]['attributes']['groupId']<_0x75c70d[0x0]['attributes']['groupId']?-0x1:0x1:_0x10e172<_0x312e88?-0x1:0x1;});for(const _0xe3c51f of _0x5c9fd8)_0xe3c51f['sort']((_0x2d44f1,_0x27b5f2)=>_0x2d44f1['id']<_0x27b5f2['id']?-0x1:0x1);}());for(let _0x1ba1ca=0x0;_0x1ba1ca<_0x5c9fd8['length'];_0x1ba1ca++){if(0x0==_0x5c9fd8[_0x1ba1ca]['length'])continue;const _0x54318f=[];for(let _0x15ca53=_0x1ba1ca+0x1;_0x15ca53<_0x5c9fd8['length'];_0x15ca53++)0x0!=_0x5c9fd8[_0x15ca53]['length']&&_0x16cd12(_0x5c9fd8[_0x1ba1ca],_0x5c9fd8[_0x15ca53])&&_0x54318f['push'](_0x15ca53);for(const _0x623a4a of _0x54318f)_0x5c9fd8[_0x1ba1ca]=_0x5c9fd8[_0x1ba1ca]['concat'](_0x5c9fd8[_0x623a4a]),_0x5c9fd8[_0x623a4a]=[];}for(const _0x55662f of _0x5c9fd8)for(let _0x25f4f0=0x0;_0x25f4f0<_0x55662f['length'];_0x25f4f0++)_0x55662f[_0x25f4f0]['next']=_0x55662f[_0x25f4f0+0x1]||null;for(const _0x234c9c of _0x5c9fd8)for(let _0x530312=0x0;_0x530312<_0x234c9c['length'];_0x530312++)_0x234c9c[_0x530312]['previous']=_0x234c9c[_0x530312-0x1]||null;function _0x16cd12(_0x5c0e6b,_0x1c44b0){if(_0x5c0e6b[0x0]['attributes']['groupId']!==_0x1c44b0[0x0]['attributes']['groupId']&&_0x5c0e6b[0x0]['author']!==_0x1c44b0[0x0]['author'])return!0x1;if(!function(_0x5de8ae,_0x5b776b){if(!_0x5de8ae['hasComments']&&!_0x5b776b['hasComments'])return!0x0;if(_0x5de8ae['hasComments']&&_0x5b776b['hasComments'])return!0x1;if(_0x5de8ae['hasComments']&&_0x5b776b['createdAt']<_0x5de8ae['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5b776b['hasComments']&&_0x5de8ae['createdAt']<_0x5b776b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5c0e6b[0x0],_0x1c44b0[0x0]))return!0x1;const _0x49f0d1=Bt(_0x5c0e6b[0x0]['attributes'],'groupId'),_0x3b1626=Bt(_0x1c44b0[0x0]['attributes'],'groupId');if(!_0x2849d6(_0x49f0d1,_0x3b1626))return!0x1;return!!_0x5c0e6b['every'](_0x2ed498=>_0x1c44b0['some'](_0x5d4801=>_0x2ed498['getFirstRange']()['isEqual'](_0x5d4801['getFirstRange']())))&&_0x1c44b0['every'](_0x5bfd7c=>_0x5c0e6b['some'](_0x12325c=>_0x5bfd7c['getFirstRange']()['isEqual'](_0x12325c['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x270fd1){const _0x56c015=Array['from'](_0x270fd1),_0x198484=this['getSuggestions']({'skipNotAttached':!0x0}),_0x50dbb6=_0x198484['filter'](_0x2951f9=>!_0x270fd1['has'](_0x2951f9)),_0x5cfe21=new Map(_0x56c015['map'](_0x5ec130=>[_0x5ec130,this['_suggestionFactory']['getSuggestionCallback'](_0x5ec130['type'],_0x5ec130['subType'],'join')])),_0x522b5a=new Map(_0x198484['map'](_0x119bab=>[_0x119bab,_0x119bab['getRanges']()]));for(let _0x543500=0x0;_0x543500<_0x56c015['length'];_0x543500++){if(_0x3fe0a6(this,_0x56c015[_0x543500],_0x56c015,_0x543500+0x1))return!0x0;}for(let _0x1f93e3=0x0;_0x1f93e3<_0x56c015['length'];_0x1f93e3++){if(_0x3fe0a6(this,_0x56c015[_0x1f93e3],_0x50dbb6,0x0))return!0x0;}return!0x1;function _0x3fe0a6(_0x2d82f8,_0x2d3317,_0x4877e4,_0x482b4f){for(let _0x4364f6=_0x482b4f;_0x4364f6<_0x4877e4['length'];_0x4364f6++){const _0x2fff6c=_0x4877e4[_0x4364f6];if(_0x2fff6c['type']!==_0x2d3317['type']||_0x2fff6c['author']['id']!==_0x2d3317['author']['id']||_0x2fff6c['subType']!==_0x2d3317['subType'])continue;if(!Pt(_0x2d3317,_0x2fff6c,['groupId']))continue;if('attribute'==_0x2d3317['type']&&_0x2d3317['data']['oldValue']!=_0x2fff6c['data']['oldValue'])continue;if('attribute'==_0x2d3317['type']&&_0x2d82f8['_isBlockAttribute'](_0x2d3317['data']['key']))continue;if('formatBlock'==_0x2d3317['type']){const _0x311b1a=_0x2d82f8['editor']['model'],_0x325078=_0x2d3317['getContainedElement']();if(_0x325078&&(_0x311b1a['schema']['isObject'](_0x325078)||_0x311b1a['schema']['isLimit'](_0x325078)))continue;}const _0x48cb63=_0x5cfe21['get'](_0x2d3317),_0x1f92ac=_0x522b5a['get'](_0x2d3317),_0x36e7dd=_0x522b5a['get'](_0x2fff6c),_0x5ab8b0=_0x2d3317['commentThread']&&_0x2d3317['commentThread']['length'],_0x2fbb6b=_0x2fff6c['commentThread']&&_0x2fff6c['commentThread']['length'];if(!_0x5ab8b0&&_0x48cb63(_0x36e7dd,_0x1f92ac))return _0x2d82f8['_joinSuggestions'](_0x2fff6c,_0x2d3317),_0x522b5a['delete'](_0x2d3317),!0x0;if(!_0x2fbb6b&&_0x48cb63(_0x1f92ac,_0x36e7dd))return _0x2d82f8['_joinSuggestions'](_0x2d3317,_0x2fff6c),_0x522b5a['delete'](_0x2fff6c),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3b426d,_0x25063e){if(_0x3b426d['isMultiRange']){for(const _0x14bd44 of _0x25063e['getRanges']())_0x3b426d['addRange'](_0x14bd44);}else{const _0x34f3b6=_0x25063e['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3b426d,this['_model']['createRange'](_0x3b426d['getFirstRange']()['start'],_0x34f3b6));}_0x25063e['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2dbbe9,_0x2257c0){const _0x2be31=_0x2dbbe9['startsWith']('format')||_0x2dbbe9['startsWith']('attribute')?'FORMATTING':_0x2dbbe9['toUpperCase']();return o(this['editor']['locale'],_0x2257c0+'_'+_0x2be31+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0xd56e82=this['editor'];if(!_0xd56e82['ui'])return;const {ariaLiveAnnouncer:_0x504134}=_0xd56e82['ui'];_0x3e0a5e(this['_model'],({left:_0x24fdc5,entered:_0x3c85c2})=>{for(const _0x227147 of _0x24fdc5){const {group:_0x5b887f,type:_0x195f5e}=this['_splitMarkerName'](_0x227147['name']);if('suggestion'===_0x5b887f){_0x504134['announce'](this['_getMarkerAnnouncementText'](_0x195f5e,'LEAVE'));break;}}for(const _0x2cb3fb of _0x3c85c2){const {group:_0x27b148,type:_0x18af40}=this['_splitMarkerName'](_0x2cb3fb['name']);if('suggestion'===_0x27b148){_0x504134['announce'](this['_getMarkerAnnouncementText'](_0x18af40,'ENTER'));break;}}});}['_processAttributeChanges'](_0x16c577){if(this['_recordAttributeSuggestions'])return!0x1;const _0x501336=this['editor'],_0x57efcb=_0x501336['model']['document']['differ']['getChanges']();if(0x0==_0x57efcb['length'])return!0x1;const _0x2fd349=[],_0x134391=_0x57efcb['filter'](_0x20f6fc=>'attribute'==_0x20f6fc['type']),_0x125b7=_0x57efcb['filter'](_0x5b5eb1=>'insert'==_0x5b5eb1['type']&&'$text'!=_0x5b5eb1['name']),_0x390111=_0x57efcb['filter'](_0x318cd3=>'remove'==_0x318cd3['type']&&'$text'!=_0x318cd3['name']);for(const _0x2b6eb2 of _0x134391)_0x2fd349['push']({'key':_0x2b6eb2['attributeKey'],'newValue':_0x2b6eb2['attributeNewValue'],'oldValue':_0x2b6eb2['attributeOldValue'],'range':Ot(_0x2b6eb2['range'],_0x501336['model'])});for(const _0xf23783 of _0x125b7){const _0xe966cd=_0x390111['find'](_0x24fef4=>_0x24fef4['position']['isEqual'](_0xf23783['position']));_0xe966cd&&_0x2fd349['push']({'key':m,'newValue':_0xf23783['name'],'oldValue':_0xe966cd['name'],'range':_0x501336['model']['createRangeOn'](_0xf23783['position']['nodeAfter'])});}return 0x0!=_0x2fd349['length']&&this['_reduceExistingSuggestions'](_0x16c577,_0x2fd349);}['_processAttributeSuggestions'](_0x276990){let _0x3962fe=!0x1;const _0x469811=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2f01e3=>_0x2f01e3['data']['newRange']&&_0x2f01e3['name']['startsWith']('suggestion:attribute:'));for(const _0x1d2bdb of _0x469811){const {subType:_0x2b5622,id:_0x63860}=this['_splitMarkerName'](_0x1d2bdb['name']),_0x4347b7=_0x2b5622['split']('|')[0x0];for(const _0x255296 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x255296['id']!=_0x63860&&'attribute'==_0x255296['type']&&_0x255296['data']&&_0x255296['data']['key']==_0x4347b7&&_0x255296['getFirstRange']()['isIntersecting'](_0x1d2bdb['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x255296,_0x1d2bdb['data']['newRange'],_0x276990),_0x3962fe=!0x0);}return _0x3962fe;}['_recordAttributeChanges'](_0x2378b4){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x2378b4();}['_isRegisteredAttribute'](_0x584324){const _0x5286df=this['_isBlockAttribute'](_0x584324),_0x3654dd=this['_inlineAttributeKeys']['has'](_0x584324);return _0x5286df||_0x3654dd;}['_reduceExistingSuggestions'](_0x48d038,_0x3063af){if(0x0==_0x3063af['length'])return!0x1;let _0x2ad328=!0x1;for(const _0x1a4799 of _0x3063af){const _0x56d260=this['_findSuggestions'](_0x1a4799['range'],'attribute')['filter'](_0x21c783=>!_0x21c783['meta']['isNextTo'])['map'](_0x367e35=>_0x367e35['suggestion']),_0x37892a=_0xb8b99e({'newValue':_0x1a4799['newValue']});_0x56d260['filter'](_0x596f8f=>{const [_0x11e7b9,_0x2f2738]=_0x596f8f['subType']['split']('|');return _0x11e7b9==_0x1a4799['key']&&_0x2f2738!=_0x37892a;})['forEach'](_0x88abe0=>{this['_reduceSuggestionAttributeRange'](_0x88abe0,_0x1a4799['range'],_0x48d038),_0x2ad328=!0x0;});}return _0x2ad328;}['_reduceSuggestionAttributeRange'](_0x4baebb,_0x21ce2c,_0x29e929){const _0x11bd95=_0x4baebb['getFirstRange']()['getDifference'](_0x21ce2c);0x0!==_0x11bd95['length']?0x1!==_0x11bd95['length']?this['_breakSuggestionMarker'](_0x4baebb,_0x21ce2c['start'],_0x21ce2c['end']):this['_setSuggestionRange'](_0x4baebb,_0x11bd95[0x0]):_0x29e929['removeMarker'](_0x4baebb['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x56bb06){this['_editor']=_0x56bb06,this['_model']=_0x56bb06['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3a1cb0,_0x49d4a6,_0x425efc,_0x24de7b,_0x5edbc5,_0x5d0b1d){return new u(this['_model'],{'type':_0x3a1cb0,'subType':_0x49d4a6,'id':_0x425efc,'author':_0x24de7b,'creator':_0x24de7b,'attributes':_0x5edbc5,'onAttributesChange':_0x5d0b1d,'onAccept':(..._0x4cfd72)=>this['getSuggestionCallback'](_0x3a1cb0,_0x49d4a6,'accept')(..._0x4cfd72),'onDiscard':(..._0x56e0ce)=>this['getSuggestionCallback'](_0x3a1cb0,_0x49d4a6,'discard')(..._0x56e0ce)});}['registerCustomCallback'](_0x175e09,_0x28235d,_0xc75bf1,_0x344457){const _0x5029d9=_0x175e09+':'+_0x28235d+':'+_0xc75bf1;this['_customCallbacks']['set'](_0x5029d9,_0x344457);}['getSuggestionCallback'](_0x1f1488,_0x471190,_0x569ba8){const _0x41d565=_0x1f1488+':'+_0x471190+':'+_0x569ba8;return this['_customCallbacks']['get'](_0x41d565)||this['_defaultCallbacks']['get'](_0x1f1488+':'+_0x569ba8);}['_registerDefaultCallbacks'](){const _0x2f09fe=()=>!0x1,_0x9fcf67=_0xe19d27=>{_0xe19d27['sort']((_0x392687,_0x210284)=>_0x392687['start']['isBefore'](_0x210284['start'])?0x1:-0x1),this['_model']['change'](_0x2355b4=>{for(const _0x13ed7f of _0xe19d27){let _0x182732;_0x182732=_0x13ed7f['end']['isAtEnd']&&_0x13ed7f['end']['parent']==_0x13ed7f['start']['nodeAfter']?_0x2355b4['createSelection'](_0x13ed7f['start']['nodeAfter'],'on'):_0x2355b4['createSelection'](_0x13ed7f),this['_model']['deleteContent'](_0x182732,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x41fc5b=(_0x21b6a0,_0x3f40d3)=>{_0x3f40d3&&this['_model']['change'](_0x26014e=>{const {commandName:_0x419053,commandParams:_0x300f0a=[]}=_0x3f40d3,_0x44786c=_0x21b6a0['map'](_0x26edf0=>(Tt(_0x26edf0)&&(_0x26edf0=this['_model']['createRange'](_0x26edf0['end'])),_0x26edf0))['filter'](_0x33d0ce=>'$graveyard'!==_0x33d0ce['root']['rootName']);if(_0x44786c['length']<0x1)return;const _0x3e3a3d=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3c0677=>_0x2b023b['fromRange'](_0x3c0677));_0x26014e['setSelection'](_0x44786c);for(const _0x5ddaca of this['_editor']['commands']['commands']())_0x5ddaca['refresh']();_0x300f0a['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x419053,..._0x300f0a);const _0x4d077=_0x3e3a3d['filter'](_0x16f35e=>'$graveyard'!=_0x16f35e['root']['rootName']);_0x4d077['length']>0x0&&_0x26014e['setSelection'](_0x4d077);for(const _0x312814 of _0x3e3a3d)_0x312814['detach']();});},_0x3e7854=(_0x461aa4,_0x2c802f)=>0x1==_0x461aa4['length']&&0x1==_0x2c802f['length']&&_0x461aa4[0x0]['end']['isEqual'](_0x2c802f[0x0]['start']),_0x1df13e=(_0x4b4bc5,_0x4e48cf,_0x36eff6,_0x27a6f6)=>Ft(_0x4b4bc5,_0x4e48cf,_0x36eff6,_0x27a6f6,this['_model'])?[_0x4b4bc5,_0x4e48cf]:Ft(_0x4e48cf,_0x4b4bc5,_0x27a6f6,_0x36eff6,this['_model'])?[_0x4e48cf,_0x4b4bc5]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2f09fe),this['_defaultCallbacks']['set']('insertion:discard',_0x9fcf67),this['_defaultCallbacks']['set']('insertion:join',_0x3e7854),this['_defaultCallbacks']['set']('insertion:chain',_0x1df13e),this['_defaultCallbacks']['set']('deletion:accept',_0x9fcf67),this['_defaultCallbacks']['set']('deletion:discard',_0x2f09fe),this['_defaultCallbacks']['set']('deletion:join',_0x3e7854),this['_defaultCallbacks']['set']('deletion:chain',_0x1df13e),this['_defaultCallbacks']['set']('formatInline:accept',_0x41fc5b),this['_defaultCallbacks']['set']('formatInline:discard',_0x2f09fe),this['_defaultCallbacks']['set']('formatInline:join',_0x3e7854),this['_defaultCallbacks']['set']('formatInline:chain',_0x2f09fe),this['_defaultCallbacks']['set']('formatBlock:accept',_0x41fc5b),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2f09fe),this['_defaultCallbacks']['set']('formatBlock:join',_0x3e7854),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2f09fe),this['_defaultCallbacks']['set']('attribute:accept',_0x2f09fe),this['_defaultCallbacks']['set']('attribute:discard',(_0x3098d6,_0x6b7fbd)=>{if(!_0x6b7fbd)return;const _0x210ab8=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x15c70f=>{if(_0x6b7fbd['key']==m)for(const _0x1b2c1e of _0x3098d6){const _0x40bd8a=_0x1b2c1e['start']['nodeAfter'],_0x418745=_0x6b7fbd['oldValue'];_0x15c70f['rename'](_0x40bd8a,_0x418745);}else{if(_0x210ab8['_isBlockAttribute'](_0x6b7fbd['key'])){for(const _0x1dc37c of _0x3098d6)void 0x0!==_0x6b7fbd['oldValue']?_0x15c70f['setAttribute'](_0x6b7fbd['key'],_0x6b7fbd['oldValue'],_0x1dc37c['start']['nodeAfter']):_0x15c70f['removeAttribute'](_0x6b7fbd['key'],_0x1dc37c['start']['nodeAfter']);}else{for(const _0x15d2ca of _0x3098d6)_0x6b7fbd['oldValue']?_0x15c70f['setAttribute'](_0x6b7fbd['key'],_0x6b7fbd['oldValue'],_0x15d2ca):_0x15c70f['removeAttribute'](_0x6b7fbd['key'],_0x15d2ca);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3e7854);}}function Rt(_0x414d17,_0x5a85d1,_0x57446c){for(const _0xbd8111 of _0x5a85d1['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xbd8111['root']==_0xbd8111)return!0x1;if(!_0x57446c['containsItem'](_0xbd8111))return!0x1;if(_0x414d17['isObject'](_0xbd8111)||_0x414d17['isLimit'](_0xbd8111))return!0x0;}return!0x1;}function Tt(_0x9f72d9){return _0x9f72d9['end']['parent']==_0x9f72d9['start']['nodeAfter']&&_0x9f72d9['end']['isAtStart'];}function Et(_0x25cf82,_0x1a819d,_0x4856b9,_0x43e218){const _0xb22d34=_0x3d6348=>!_0x3d6348['item']['is']('$textProxy')&&!_0x43e218['isObject'](_0x3d6348['item']),_0x207527=_0x25cf82['start']['getLastMatchingPosition'](_0xb22d34),_0xa5206c=_0x25cf82['end']['getLastMatchingPosition'](_0xb22d34,{'direction':'backward'});return(!_0x25cf82['start']['isEqual'](_0x207527)||!_0x25cf82['end']['isEqual'](_0xa5206c))&&(_0x207527['isBefore'](_0xa5206c)?_0x4856b9['updateMarker'](_0x1a819d,{'range':_0x4856b9['createRange'](_0x207527,_0xa5206c)}):_0x4856b9['removeMarker'](_0x1a819d),!0x0);}function Vt(_0x22b5e4){return _0xb8b99e(_0x22b5e4);}function Ut(_0x244077){const _0x3a504d=_0x244077['start']['nodeAfter'];return _0x3a504d&&_0x3a504d['is']('element');}function Ot(_0x3ecbbd,_0x1c8369){return null==_0x3ecbbd['end']['nodeBefore']&&_0x3ecbbd['end']['parent']==_0x3ecbbd['start']['nodeAfter']?Gt(_0x3ecbbd['start']['nodeAfter'],_0x1c8369):_0x3ecbbd;}function Gt(_0x5dc52a,_0x428e33){const _0x1b021c=_0x428e33['schema']['isObject'](_0x5dc52a)||_0x428e33['schema']['isSelectable'](_0x5dc52a);return _0x428e33['createRange'](_0x428e33['createPositionAt'](_0x5dc52a,'before'),_0x1b021c?_0x428e33['createPositionAfter'](_0x5dc52a):_0x428e33['createPositionAt'](_0x5dc52a,'end'));}function Ft(_0x18f506,_0x3bc246,_0x3bcc43,_0x102f2b,_0x32e507){if(!Pt(_0x18f506,_0x3bc246))return!0x1;if(_0x3bcc43['end']['isEqual'](_0x102f2b['start']))return!0x0;if(_0x18f506['type']!=_0x3bc246['type'])return!0x1;if(!_0x3bcc43['end']['isTouching'](_0x102f2b['start']))return!0x1;const _0x1f648a=_0x32e507['createRange'](_0x3bcc43['end'],_0x102f2b['start'])['getWalker']();for(const _0x36bd12 of _0x1f648a)if(['elementStart','elementEnd']['includes'](_0x36bd12['type'])&&_0x32e507['schema']['isLimit'](_0x36bd12['item']))return!0x1;return!0x0;}function Pt(_0x268378,_0x4d0374,_0x4539c9=[]){return!(!_0x268378['_isDataLoaded']||!_0x4d0374['_isDataLoaded'])&&_0x2849d6(Bt(_0x268378['attributes'],_0x4539c9),Bt(_0x4d0374['attributes'],_0x4539c9));}function Lt(_0x4e2efb,_0x3e9586){const _0x5c9325=Ht(_0x4e2efb['attributes']),_0x418dc8=Ht(_0x3e9586);if(!_0x4e2efb['_isDataLoaded'])return!0x1;for(const _0x635c86 of Object['keys'](_0x418dc8))if(!_0x2849d6(_0x5c9325[_0x635c86],_0x418dc8[_0x635c86]))return!0x1;return!0x0;}function Ht(_0x588eab){const _0x35dbed=Object['assign']({},_0x588eab);return delete _0x35dbed['skipNestingCheck'],delete _0x35dbed['tablePasteChainId'],_0x35dbed;}class oe extends/* #__PURE__ -- @preserve */
25
- _0x5cf6c8(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2327a9,_0x59d3cb,_0x140f28,_0x28d73a){super(),this['model']=_0x59d3cb,this['view']=_0x140f28,this['commentThreadController']=_0x28d73a,this['_editor']=_0x2327a9,this['_acceptCommand']=_0x2327a9['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2327a9['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x36ff63,_0x3fc5fc)=>_0x36ff63||_0x3fc5fc),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x57a665=>_0x57a665&&this['_editor']['model']['canEditAt'](_0x59d3cb['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4a8d49=>_0x4a8d49&&this['_editor']['model']['canEditAt'](_0x59d3cb['getRanges']())),this['_pendingAction']=null,_0x140f28['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x140f28,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x140f28,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x140f28,'change:isDirty',()=>{_0x140f28['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 _0x952b91=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x952b91);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x3772f7{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x452965,_0x4cba55,_0x20e3d5,_0x173322){super(_0x452965),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x4cba55['authoredAt']),this['bind']('authoredAt')['to'](_0x4cba55),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x4cba55,this['_localUser']=_0x20e3d5,this['_config']=_0x173322,_0x173322['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:_0x40f2a7}=this['_config'];this['commentsListView']=new _0x40f2a7(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',_0x837bde=>_0x837bde+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x17aedd,_0x3ac280)=>_0x17aedd||!!_0x3ac280);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x239487}=this['_config'],_0x2853ce=new _0x239487(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x8e7313=_0x2853ce['commentInputView'];return _0x2853ce['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x8e7313,'value',(_0x47db16,_0x5d2a2c,_0x18edce)=>!!_0x18edce||_0x47db16&&!_0x5d2a2c),_0x8e7313['on']('submit',(_0x290080,_0x187522)=>{this['fire']('addComment',_0x187522),_0x8e7313['editor']['setData']('');}),_0x8e7313['on']('cancel',()=>this['focus']()),_0x8e7313['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2853ce;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x25b845,_0x57ef32,_0x62d060,_0x33e53d){super(_0x25b845,_0x57ef32,_0x62d060,_0x33e53d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5d26c4=>_0x5d26c4&&_0x5d26c4[0x0]?_0x5d26c4[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4e3d67,_0x3bcbbe)=>{let _0x2a9461='';for(const _0x517799 of _0x4e3d67)_0x2a9461+='<p>'+ds(_0x517799['content'],_0x517799['color'])+'</p>';return _0x3bcbbe?_0x2a9461:_0x75e0a0(_0x2a9461,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x25b845,'Accept\x20suggestion'),_0x5d921c['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x25b845,'Discard\x20suggestion'),_0x5d921c['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x4e76b4(_0x25b845,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x466abd=this['bindTemplate'],_0x4b6953=[{'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':_0x466abd['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x466abd['to']('authoredAt',_0x4a5998=>this['_config']['formatDateTime'](_0x4a5998))}]}]},{'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']&&_0x4b6953['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x48dbbe={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x466abd['if']('isActive','ck-suggestion-wrapper--active'),_0x466abd['to']('type',_0x2137ff=>'ck-suggestion-'+_0x2137ff),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':_0x4b6953}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x48dbbe['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)),_0x48dbbe;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x4140bf,_0x37a8a7,_0x320127)=>{this['_descriptionElement']['innerHTML']=_0x320127;});}['_createButton'](_0xd4b47d,_0x4876e6,_0x435ee0,_0x16e49b,_0x146cc1){const _0x70489e=new _0x38fb80(this['locale']);return _0x70489e['set']({'label':_0xd4b47d,'icon':_0x4876e6,'tooltip':!0x0,'tooltipPosition':_0x146cc1}),_0x70489e['extendTemplate']({'attributes':{'class':_0x435ee0}}),_0x70489e['on']('execute',()=>{this['fire'](_0x16e49b,this['_model']['id']);}),_0x70489e;}['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(_0x331c22,_0x524269){let _0x21210c='';return _0x21210c+=_0x331c22['split']('*')['map']((_0x51e9e8,_0x437f44)=>_0x437f44%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x51e9e8)+'</span>':us(_0x51e9e8))['join'](''),_0x524269&&(_0x21210c+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x524269['value']+'\x22\x20title=\x22'+_0x524269['title']+'\x22></span>'),_0x21210c;}function us(_0xeffa3d){const _0x10d042=document['createElement']('span');return _0x10d042['innerText']=_0xeffa3d,_0x10d042['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 _0xd068a0{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x3a1269,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x190fdc){super(_0x190fdc),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x553c8c=this['editor']['config'];_0x553c8c['define']('trackChanges.SuggestionThreadView',ne),_0x553c8c['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x553c8c['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x28657c,_0x3da4d3){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x31f9de,_0x504d51]of this['_handleControllerBuffer']){const _0x35970c=this['_suggestionToController']['has'](_0x31f9de);_0x35970c||_0x504d51?_0x35970c&&_0x504d51&&this['_destroyController'](_0x31f9de):this['_initializeController'](_0x31f9de);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x28657c,_0x3da4d3);}['init'](){const _0x2b780c=this['editor'],_0x4a6c01=_0x2b780c['plugins']['get']('TrackChangesEditing'),_0xa5bb70=_0x2b780c['plugins']['get']('Annotations'),_0x554b8f=_0x2b780c['plugins']['get']('EditorAnnotations'),_0x1b5137=_0x2b780c['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x554b8f['addSourceCollector'](()=>{const _0x38fe19=[];for(const [_0x1e501c,_0x395504]of Array['from'](this['_suggestionToController'])){const _0x5f3917=_0x1e501c['getAllAdjacentSuggestions'](),_0x2b8074=[];for(const _0x4ab314 of _0x5f3917){if(!_0x4ab314['isInContent'])continue;if(_0x4ab314['isMultiRange']){_0x2b8074['push'](..._0x4ab314['getRanges']());continue;}const _0x1e664b=_0x4ab314['getFirstRange']();if(_0x2b8074['length']>0x0){const _0x64ed8f=_0x2b8074[0x0]['getJoined'](_0x1e664b);if(_0x64ed8f){_0x2b8074[0x0]=_0x64ed8f;continue;}}_0x2b8074['push'](_0x1e664b);}_0x38fe19['push']([_0x395504['view'],_0x2b8074]);}return _0x38fe19;}),this['listenTo'](_0x4a6c01,'suggestionLoaded',(_0x31bd18,_0x1e5b96)=>{this['listenTo'](_0x1e5b96,'change:previous',(_0x58500e,_0x4c4562,_0x261109,_0x3dea15)=>{_0x1e5b96['isInContent']&&(null==_0x261109?(this['_updateController'](_0x3dea15['head']),this['_handleSuggestionControllerDelayed'](_0x1e5b96,!0x1)):(this['_updateController'](_0x261109['head']),null==_0x3dea15&&this['_handleSuggestionControllerDelayed'](_0x1e5b96,!0x0)));}),null!==_0x1e5b96['previous']?this['_updateController'](_0x1e5b96['head']):this['_handleSuggestionControllerDelayed'](_0x1e5b96,!0x1);}),this['listenTo'](_0x4a6c01,'suggestionUnloaded',(_0x1ec34a,_0x1f7d8b,_0x25fbc1)=>{this['stopListening'](_0x1f7d8b,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1f7d8b),this['_suggestionToController']['has'](_0x1f7d8b)&&this['_destroyController'](_0x1f7d8b),_0x25fbc1&&this['_updateController'](_0x25fbc1['head']);}),this['listenTo'](_0x4a6c01,'suggestionChanged',(_0x198112,_0x227ae3)=>{this['_updateController'](_0x227ae3);}),this['listenTo'](_0xa5bb70,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1b5137,'addComment',(_0x352348,{threadId:_0x46db43,isFromAdapter:_0x4d2787})=>{if(_0x4d2787||!_0x4a6c01['hasSuggestion'](_0x46db43))return;const _0x538707=_0x4a6c01['getSuggestion'](_0x46db43);this['_suggestionToController']['get'](_0x538707)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x50bf14=this['editor']['plugins']['get']('Annotations'),_0x478788=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a3a35=Array['from'](_0x50bf14['activeAnnotations'],_0xce732d=>_0xce732d['innerView'])['filter'](_0x3a32fa=>this['_viewToController']['has'](_0x3a32fa)),_0xa0776a=[];for(const _0x15b359 of _0x4a3a35){const _0x350bda=this['_viewToController']['get'](_0x15b359)['model']['getAllAdjacentSuggestions']();_0xa0776a['push'](..._0x350bda['reduce']((_0x9e47c3,_0x66a9b)=>[..._0x9e47c3,..._0x66a9b['getMarkerNames']()],[]));}_0x478788['activeMarkers']=_0xa0776a;}['_addUIComponentsToFactory'](){const _0x55d64b=this['editor'],_0x5200ec=_0x55d64b['locale'],_0x23b3c1=o(_0x5200ec,'Track\x20changes'),_0x516f48=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x23b3c1,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5200ec,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5200ec,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5200ec,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5200ec,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x273903 of _0x516f48)if(ae(_0x273903)){const _0x1f7a24=_0x55d64b['commands']['get'](_0x273903['model']['commandName']);_0x273903['model']['bind']('isOn','isEnabled')['to'](_0x1f7a24,'value','isEnabled');}_0x55d64b['ui']['componentFactory']['add']('trackChanges',_0x57b25b=>this['_createToolbarButton'](_0x57b25b,_0x516f48,_0x23b3c1)),_0x55d64b['ui']['componentFactory']['add']('menuBar:trackChanges',_0x33c46a=>this['_createMenuBarMenu'](_0x33c46a,_0x516f48,_0x23b3c1));}['_createToolbarButton'](_0x78e81c,_0x3ffa11,_0x34a244){const _0x3fba90=zt(_0x78e81c,Zt),_0xe0d359=this['editor']['commands']['get']('trackChanges');_0x3fba90['buttonView']['set']({'tooltip':_0x34a244,'label':_0x34a244,'icon':ie}),_0x3fba90['buttonView']['bind']('isOn')['to'](_0xe0d359,'value'),_0x3fba90['buttonView']['on']('execute',()=>{_0xe0d359['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x3fba90,_0x3ffa11,{'role':'menu'});const _0x53a0ed=[];for(const _0x1c5274 of _0x3ffa11)ae(_0x1c5274)&&_0x53a0ed['push'](this['editor']['commands']['get'](_0x1c5274['model']['commandName']));const _0x50bb48=_0x3fba90['buttonView'];return _0x50bb48['actionView']['unbind']('isEnabled'),_0x50bb48['arrowView']['unbind']('isEnabled'),_0x50bb48['actionView']['bind']('isEnabled')['to'](_0xe0d359,'isEnabled'),_0x50bb48['arrowView']['bind']('isEnabled')['toMany'](_0x53a0ed,'isEnabled',(..._0x2cf5e9)=>_0x2cf5e9['some'](_0x1b8700=>_0x1b8700)),_0x3fba90['on']('execute',_0x16ed64=>{this['editor']['execute'](_0x16ed64['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3fba90;}['_createMenuBarMenu'](_0xb46ac,_0x226294,_0x4849d6){const _0x4b3fe8=new Kt(_0xb46ac),_0x318c5e=this['editor']['commands']['get']('trackChanges');_0x4b3fe8['buttonView']['set']({'label':_0x4849d6,'icon':ie});const _0x22ac98=new Qt(_0xb46ac);for(const _0x3f3671 of _0x226294){if('separator'==_0x3f3671['type']){_0x22ac98['items']['add'](new Jt(_0xb46ac));continue;}const _0x157193=new Xt(_0xb46ac,_0x4b3fe8),_0x102d99=new Yt(_0xb46ac),_0x50ce3c=_0x3f3671['model'];_0x102d99['bind'](...Object['keys'](_0x50ce3c))['to'](_0x50ce3c),_0x102d99['delegate']('execute')['to'](_0x4b3fe8),_0x102d99['on']('execute',()=>{this['editor']['execute'](_0x50ce3c['commandName']),this['editor']['editing']['view']['focus']();}),_0x157193['children']['add'](_0x102d99),_0x22ac98['items']['add'](_0x157193);}return _0x4b3fe8['bind']('isEnabled')['to'](_0x318c5e,'isEnabled'),_0x4b3fe8['panelView']['children']['add'](_0x22ac98),_0x4b3fe8;}['_initializeController'](_0x24511b){const _0x5c2a2c=this['editor'],_0x2f90a0=_0x5c2a2c['config'],_0x566800=_0x5c2a2c['plugins']['get']('Annotations'),_0x5948a3=_0x5c2a2c['plugins']['get']('CommentsRepository'),_0x50e16c=_0x5c2a2c['plugins']['get']('EditorAnnotations'),_0x15f413=_0x5c2a2c['plugins']['get'](_0x3a1269)['me'],_0x12d9ab=_0x2f90a0['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x154e59,CommentThreadInputView:_0x541c70}=_0x5c2a2c['plugins']['get']('CommentsUI');let _0x360325,_0x5e1181;this['_annotationViews']['has'](_0x24511b['id'])?(_0x5e1181=this['_annotationViews']['get'](_0x24511b['id']),_0x360325=_0x5e1181['mainView']):(_0x360325=new _0x12d9ab(_0x5c2a2c['locale'],_0x24511b,_0x15f413,{'disableComments':this['_disableComments'],'editorConfig':_0x2f90a0['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x2f90a0['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2f90a0['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2f90a0['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4e185e(_0x2f90a0['get']('locale')),'CommentView':_0x2f90a0['get']('comments')['CommentView'],'CommentsListView':_0x154e59,'CommentThreadInputView':_0x541c70}),_0x360325['acceptButton']['on']('execute',()=>{_0x5c2a2c['editing']['view']['focus']();}),_0x360325['discardButton']['on']('execute',()=>{_0x5c2a2c['editing']['view']['focus']();}),_0x5e1181=_0x566800['createAnnotationView'](this['editor']['locale'],_0x360325),_0x5e1181['bind']('isDirty')['to'](_0x360325,'isDirty'),_0x5e1181['bind']('length')['to'](_0x360325),_0x5e1181['bind']('type')['to'](_0x360325,'type',_0x40602d=>'suggestion-'+_0x40602d),this['_annotationViews']['set'](_0x24511b['id'],_0x5e1181));const _0x3e11d9=_0x5948a3['createCommentThreadController'](_0x24511b['commentThread'],_0x360325),_0x4a3c13=new oe(_0x5c2a2c,_0x24511b,_0x360325,_0x3e11d9),_0x54213b=_0x24511b['getAllAdjacentSuggestions']()['filter'](_0x297bc7=>_0x297bc7['isInContent']);_0x360325['descriptionParts']=_0x5c2a2c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x54213b),this['_suggestionToController']['set'](_0x24511b,_0x4a3c13),this['_viewToController']['set'](_0x360325,_0x4a3c13);const _0x4f3e9c=_0x566800['createAnnotation']({'view':_0x5e1181,'target':()=>{const _0x586c45=[],_0xfbae9e=_0x24511b['getAllAdjacentSuggestions']()['filter'](_0x5fefbb=>_0x5fefbb['isInContent']);for(const _0x3ddc96 of _0xfbae9e)_0x586c45['push'](..._0x3ddc96['getMarkers']());return _0x2246cc(_0x5c2a2c['editing'],_0x586c45);},'type':()=>'suggestion-'+_0x4a3c13['view']['type']});_0x5948a3['_bindAnnotationToEditors'](_0x360325,_0x4f3e9c),_0x566800['add'](_0x4f3e9c),_0x50e16c['registerAnnotation'](_0x4f3e9c);}['_destroyController'](_0x36c607){const _0x2b8737=this['editor']['plugins']['get']('CommentsRepository'),_0xaf481b=this['editor']['plugins']['get']('Annotations'),_0x59e2d2=this['_suggestionToController']['get'](_0x36c607),_0xbb228d=_0x59e2d2['view'],_0x47a464=_0xaf481b['getByInnerView'](_0xbb228d);_0x2b8737['_unbindEditors'](_0xbb228d),_0x47a464&&_0xaf481b['remove'](_0x47a464),this['_suggestionToController']['delete'](_0x36c607),this['_viewToController']['delete'](_0xbb228d),_0x59e2d2['destroy']();}['_updateController'](_0x422b8b){if(!_0x422b8b['isInContent']||!this['_suggestionToController']['has'](_0x422b8b))return;const _0x2ad679=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17dc07=this['_suggestionToController']['get'](_0x422b8b),_0x332867=_0x422b8b['getAllAdjacentSuggestions']();_0x17dc07['view']['descriptionParts']=_0x2ad679['descriptionFactory']['getDescriptions'](_0x332867);}['destroy'](){for(const _0x11399c of this['_suggestionToController']['keys']())this['_destroyController'](_0x11399c);for(const _0x80a36 of this['_annotationViews']['values']())_0x80a36['mainView']['destroy']();super['destroy']();}}function ae(_0x579875){return'model'in _0x579875;}class k extends _0xd068a0{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x3664d8){this['editor']['plugins']['get'](p)['adapter']=_0x3664d8;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2bbbab){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2bbbab);}['getSuggestions']({skipNotAttached:_0x17de30=!0x1,toJSON:_0x189886=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x17de30,'toJSON':_0x189886});}['getSuggestion'](_0x1836b2){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1836b2);}}const T=['Pagination'];class P extends _0xd068a0{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x55eb65=this['editor'];if(_0x55eb65['config']['define']('trackChangesData.editorCreator',_0x3853d6=>{const _0xaab8c4=_0x55eb65['model']['document']['getRootNames']()['reduce']((_0x4eace9,_0x528997)=>(_0x4eace9[_0x528997]='',_0x4eace9),{});return _0x55eb65['constructor']['create'](_0xaab8c4,_0x3853d6);}),'function'!=typeof _0x55eb65['config']['get']('trackChangesData')['editorCreator'])throw new _0x559e97('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3be93c){return N(this['editor'],!0x0,_0x3be93c);}['getDataWithDiscardedSuggestions'](_0x4a628f){return N(this['editor'],!0x1,_0x4a628f);}}class D extends _0xd068a0{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x242dff){super(_0x242dff),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(_0x353a7a){return void 0x0!==_0x353a7a['getRootsAttributes'];}async function N(_0x461a49,_0x208b70,_0x3f7b76){const _0x10e20d=_0x3dffb6(_0x461a49,T);_0x10e20d['plugins']['push'](p,D),_0x10e20d['rootsAttributes']=v(_0x461a49)?_0x461a49['getRootsAttributes']():void 0x0;const _0x45116b=document['createDocumentFragment'](),_0x4cfbc0=_0x461a49['config']['get']('trackChangesData')['editorCreator'],_0x8c9987=await _0x4cfbc0(_0x10e20d,()=>function(_0x125ce3){const _0x5b7aac=document['createElement']('div');return _0x125ce3['appendChild'](_0x5b7aac),_0x5b7aac;}(_0x45116b));!function(_0x5a70c4,_0x459289){const _0x5d0a73=_0x5a70c4['model']['document']['getRootNames']()['reduce']((_0x1887b9,_0x66f2f6)=>(_0x1887b9[_0x66f2f6]=_0x5a70c4['data']['get']({'rootName':_0x66f2f6}),_0x1887b9),{}),_0x35f43a=_0x5a70c4['plugins']['get']('Users')['users']['map'](_0x392a2b=>({'id':_0x392a2b['id'],'name':_0x392a2b['name']})),_0x1e75a0=_0x5a70c4['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x31d64b=_0x5a70c4['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2e9738=_0x459289['plugins']['get']('Users'),_0x1bdeac=_0x459289['plugins']['get']('TrackChangesEditing'),_0x154dd8=_0x459289['plugins']['get']('CommentsRepository');for(const _0x1e05b2 of _0x35f43a)_0x2e9738['getUser'](_0x1e05b2['id'])||_0x2e9738['addUser'](_0x1e05b2);_0x2e9738['me']||_0x2e9738['useAnonymousUser']();for(const _0x263673 of _0x31d64b)_0x154dd8['addCommentThread'](_0x263673);for(const _0x1bf6fa of _0x1e75a0)_0x1bdeac['addSuggestionData'](_0x1bf6fa);_0x459289['data']['set'](_0x5d0a73);}(_0x461a49,_0x8c9987),_0x8c9987['execute'](_0x208b70?'acceptAllSuggestions':'discardAllSuggestions');const _0x180a4b=v(_0x8c9987)?_0x8c9987['getFullData'](_0x3f7b76):_0x8c9987['data']['get'](_0x3f7b76);return await _0x8c9987['destroy'](),_0x180a4b;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x1c996d,PendingActions as _0x27b90b,icons as _0x5edca6}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x564d2a,ObservableMixin as _0x314267,uid as _0x56ae18,insertToPriorityArray as _0x3204c1,priorities as _0x3ee875,logWarning as _0x4ca991,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x59736a,View as _0x4edaf2,ButtonView as _0x34b7fb,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 _0x2bd389,hashObject as _0xbefa6a,surroundingMarkersDetector as _0x3722b2,trimHtml as _0x4dd7c7,UserView as _0x312432,getDateTimeFormatter as _0x2780b1,getAllMarkersDomElementsSorted as _0x578925,sanitizeEditorConfig as _0x850f54}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3fae4,LiveRange as _0x14f38f,LivePosition as _0x3e954b}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x272e55,toWidget as _0x37fa77}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0xecf287,set as _0x319269,isEqual as _0x5f5b54,unset as _0x114248,omit as Bt}from'lodash-es';import{Delete as _0x5db860,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x49f0b4,ShiftEnter as _0x4974f0}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x3ca262,_0x92ae2d){super(_0x3ca262),this['_enabledCommands']=_0x92ae2d,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 _0x5e403e of this['editor']['commands']['commands']())_0x5e403e['affectsData']&&!this['_enabledCommands']['has'](_0x5e403e)&&_0x5e403e['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x51ad2c of this['editor']['commands']['commands']())_0x51ad2c['affectsData']&&!this['_enabledCommands']['has'](_0x51ad2c)&&_0x51ad2c['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x34384a,_0x54fb99){super(_0x34384a),this['_suggestions']=_0x54fb99,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xffc435){const _0x2844df=this['_suggestions']['get'](_0xffc435);if(!_0x2844df)throw new _0x564d2a('track-changes-accept-suggestion-not-found',this);const _0x1d89c7=_0x2844df['getRanges']();this['editor']['model']['canEditAt'](_0x1d89c7)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2844df);}}class B extends ts{['_suggestions'];constructor(_0x1e4bf4,_0x43f77c){super(_0x1e4bf4),this['_suggestions']=_0x43f77c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4bc705){const _0x2db85f=this['_suggestions']['get'](_0x4bc705);if(!_0x2db85f)throw new _0x564d2a('track-changes-discard-suggestion-not-found',this);const _0x4aa2b7=_0x2db85f['getRanges']();this['editor']['model']['canEditAt'](_0x4aa2b7)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2db85f);}}function ss(_0x4a795e){return _0x4a795e['sort']((_0x4750cf,_0x4abf3c)=>'deletion'==_0x4750cf['type']&&'deletion'!=_0x4abf3c['type']?-0x1:'deletion'!=_0x4750cf['type']&&'deletion'==_0x4abf3c['type']?0x1:0x0);}function to(_0x73e8cc,_0x3cc2eb){let _0x53b637,_0x149ff0=0x0;const _0x521a1b=[],_0x923c53=_0x3cc2eb['schema'];for(;_0x149ff0<_0x73e8cc['length'];){const _0x232428=_0x73e8cc[_0x149ff0],_0x32eff5=_0x73e8cc[_0x149ff0+0x1];_0x53b637||(_0x53b637=_0x3cc2eb['createPositionBefore'](_0x232428)),co(_0x3cc2eb,_0x232428,_0x32eff5)||(_0x521a1b['push'](_0x3cc2eb['createRange'](_0x53b637,_0x923c53['isObject'](_0x232428)?_0x3cc2eb['createPositionAfter'](_0x232428):_0x3cc2eb['createPositionAt'](_0x232428,'end'))),_0x53b637=null),_0x149ff0++;}return _0x521a1b;}function co(_0x144367,_0x54cd11,_0x1dfec0){if(!_0x1dfec0)return!0x1;const _0x5b1530=_0x144367['createPositionAfter'](_0x54cd11),_0x416a41=_0x144367['createPositionBefore'](_0x1dfec0);return _0x5b1530['isTouching'](_0x416a41);}function rs(_0x15a845,_0x22fc0a,_0x1c8ed6){for(;_0x1c8ed6['length'];){const _0x20fcb0=_0x1c8ed6['splice'](0x0,0x64);_0x15a845['change'](()=>{for(const _0xde895d of _0x20fcb0)_0xde895d['isInContent']&&_0x22fc0a['execute'](_0xde895d['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0xcd5d32,_0x50411d,_0x3d685b){super(_0xcd5d32),this['_command']=_0x50411d,this['_suggestions']=_0x3d685b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x39048e=Array['from'](this['_suggestions']['values']())['some'](_0x53efd0=>_0x53efd0['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x39048e;}['execute'](){const _0x213a05=ss(Array['from'](this['_suggestions']['values']()));for(const _0x32520e of _0x213a05){const _0xd8e49c=_0x32520e['getRanges']();if(!this['editor']['model']['canEditAt'](_0xd8e49c))return;}rs(this['editor']['model'],this['_command'],_0x213a05);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1c3940,_0x2ec00e,_0x4336d4){super(_0x1c3940),this['_command']=_0x2ec00e,this['_suggestions']=_0x4336d4,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1ef5dd=this['editor']['model']['document']['selection'],_0x4eac9e=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x341e03,_0x11a718){const _0x43221e=Array['from'](_0x341e03['getRanges']()),_0x1af311=new Set();for(const _0x539020 of _0x11a718)if(_0x539020['isInContent']){for(const _0x461aa5 of _0x43221e)for(const _0x21c365 of _0x539020['getRanges']())(_0x461aa5['isIntersecting'](_0x21c365)||_0x341e03['isCollapsed']&&!_0x539020['isMultiRange']&&_0x539020['next']&&_0x21c365['end']['isTouching'](_0x461aa5['start']))&&_0x1af311['add'](_0x539020);}return _0x1af311;}(_0x1ef5dd,_0x4eac9e),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x33b69c=ss(Array['from'](this['_selectedSuggestions']));for(const _0x1e04f7 of _0x33b69c){const _0x171331=_0x1e04f7['getRanges']();if(!this['editor']['model']['canEditAt'](_0x171331))return;}rs(this['editor']['model'],this['_command'],_0x33b69c);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x314267(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x320625,_0x4a75f2){super(),this['id']=_0x4a75f2['id'],this['type']=_0x4a75f2['type'],this['subType']=_0x4a75f2['subType']||null,this['author']=_0x4a75f2['author'],this['creator']=_0x4a75f2['creator']||_0x4a75f2['author'],this['isExternal']=Boolean(_0x4a75f2['attributes']&&_0x4a75f2['attributes']['@external']),this['data']=null,this['_model']=_0x320625,this['_onAccept']=_0x4a75f2['onAccept'],this['_onDiscard']=_0x4a75f2['onDiscard'],this['_onAttributesChange']=_0x4a75f2['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4a75f2['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 _0x1fc340=this;for(;_0x1fc340['previous'];)_0x1fc340=_0x1fc340['previous'];return _0x1fc340;}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'](_0x393dc9){this['_markerNames']['add'](_0x393dc9);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x16667a=>this['_model']['markers']['get'](_0x16667a))['filter'](_0x3031df=>_0x3031df);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x52d00f=>{for(const _0x36ba7f of this['getMarkers']())_0x52d00f['removeMarker'](_0x36ba7f);}),this['_markerNames']['clear']();}['removeMarker'](_0x22ba99){this['_model']['change'](_0x42c00c=>{_0x42c00c['removeMarker'](_0x22ba99);}),this['_markerNames']['delete'](_0x22ba99);}['addRange'](_0x5cafd8){const _0x51f504='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x51f504),this['_model']['change'](_0x1a15bf=>{_0x1a15bf['addMarker'](_0x51f504,{'range':_0x5cafd8,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2ab06f){for(const _0x30ae05 of this['getRanges']())if(_0x30ae05['isIntersecting'](_0x2ab06f))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5e49e5=>_0x5e49e5['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5faffb,_0x5abd86)=>[..._0x5faffb,..._0x5abd86['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2309ea=this['getRanges']();if(0x1!=_0x2309ea['length'])return null;const _0x9ff45=_0x2309ea[0x0],_0x2c7df0=_0x9ff45['start']['nodeAfter'],_0x29dd43=_0x9ff45['end']['nodeBefore'];return _0x2c7df0 instanceof _0x3fae4?_0x2c7df0!=_0x29dd43?null:_0x2c7df0: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 _0x16025e=[];let _0x56d9fa=this['head'];for(;_0x56d9fa;)_0x16025e['push'](_0x56d9fa),_0x56d9fa=_0x56d9fa['next'];return _0x16025e;}['setAttribute'](_0x202d33,_0x115c8b){const _0x6b971e=_0xecf287(this['attributes']);_0x319269(_0x6b971e,_0x202d33,_0x115c8b),_0x5f5b54(_0x6b971e,this['attributes'])||(this['attributes']=_0x6b971e,this['_onAttributesChange'](_0x6b971e));}['removeAttribute'](_0x57b692){const _0x5d5a65=_0xecf287(this['attributes']);_0x114248(_0x5d5a65,_0x57b692),_0x5f5b54(_0x5d5a65,this['attributes'])||(this['attributes']=_0x5d5a65,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 _0x56ae18()['substr'](0x1,0x5);}}function o(_0x324580,_0x4dfc0d,_0xcaceff){const t=_0x324580['t'];switch(_0x4dfc0d){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',_0xcaceff);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xcaceff);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xcaceff);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xcaceff);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xcaceff);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',_0xcaceff);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xcaceff);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',_0xcaceff);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xcaceff);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xcaceff);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xcaceff);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xcaceff);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xcaceff);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xcaceff);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xcaceff);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xcaceff);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xcaceff);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xcaceff);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xcaceff);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xcaceff);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xcaceff);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xcaceff);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xcaceff);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'},_0xcaceff);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xcaceff);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xcaceff);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xcaceff);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xcaceff);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xcaceff);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'},_0xcaceff);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xcaceff);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xcaceff);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xcaceff);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xcaceff);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'},_0xcaceff);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xcaceff);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'},_0xcaceff);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'},_0xcaceff);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xcaceff);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'},_0xcaceff);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xcaceff);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'},_0xcaceff);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xcaceff);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xcaceff);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'},_0xcaceff);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'},_0xcaceff);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 _0x4dfc0d;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2fe170,_0x4e3008){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2fe170,this['_locale']=_0x4e3008;}['getDescriptions'](_0x502141){const _0x342283=[],_0x26ca65=new Set(),_0x39b32b=new Set();for(let _0x21602b=0x0;_0x21602b<_0x502141['length'];_0x21602b++){const _0x2ffbce=_0x502141[_0x21602b];if(!_0x2ffbce['isInContent'])continue;const _0x5f493e=this['_handleCustomCallbackDescription'](_0x2ffbce);if(_0x5f493e){if(null!=_0x2ffbce['subType']){if(_0x26ca65['has'](_0x2ffbce['subType']))continue;_0x26ca65['add'](_0x2ffbce['subType']);}_0x342283['push'](_0x5f493e);}else{if('attribute'!=_0x2ffbce['type'])'insertion'!=_0x2ffbce['type']&&'deletion'!=_0x2ffbce['type']||this['_handleInsertRemoveSuggestionDescription'](_0x342283,_0x2ffbce,_0x502141[_0x21602b+0x1]);else{const _0x166ad3=_0x2ffbce['data']['key'];if(_0x39b32b['has'](_0x166ad3))continue;_0x39b32b['add'](_0x2ffbce['data']['key']),_0x166ad3==m?this['_handleRenameSuggestionDescription'](_0x342283,_0x2ffbce):this['_handleAttributeSuggestionDescription'](_0x342283,_0x2ffbce);}}}return this['_resolveDescriptionItems'](_0x342283);}['registerDescriptionCallback'](_0xca58a5){this['_customCallbacks']['push'](_0xca58a5);}['registerElementLabel'](_0x16a4ae,_0x5dd0a4,_0x125763=_0x3ee875['normal']){'function'==typeof _0x16a4ae?_0x3204c1(this['_itemLabelsCallbacks'],{'matchingCallback':_0x16a4ae,'label':_0x5dd0a4,'priority':_0x125763}):this['_itemLabels']['set'](_0x16a4ae,_0x5dd0a4);}['registerAttributeLabel'](_0x5bf78f,_0x47f214){this['_attributeLabels']['set'](_0x5bf78f,_0x47f214);}['getItemLabel'](_0x3ca455,_0x5517af=0x1){let _0x3aba6d;for(const _0x1f6b44 of this['_itemLabelsCallbacks'])if(_0x1f6b44['matchingCallback'](_0x3ca455)){_0x3aba6d=_0x1f6b44['label'];break;}return _0x3aba6d||(_0x3aba6d=this['_itemLabels']['get'](_0x3ca455['name'])),_0x3aba6d?_0x3aba6d(_0x5517af):0x1!==_0x5517af?_0x5517af+'\x20'+_0x3ca455['name']+'s':''+_0x3ca455['name'];}['_addDescriptionItems'](_0x25f137,_0x4b2d5a){const _0x570bce=_0x4b2d5a['getFirstRange']()['getWalker'](),_0x5a724d='insertion'==_0x4b2d5a['type']?'add':'remove';for(const _0x3713ab of _0x570bce){const _0x2ef354=_0x3713ab['item'],_0x252296=_0x25f137[_0x25f137['length']-0x1];if(_0x2ef354['is']('$textProxy'))_0x252296&&_0x252296['type']['indexOf']('Container')>-0x1&&_0x25f137['pop'](),_0x252296&&'text'==_0x252296['type']?_0x252296[_0x5a724d]+=_0x2ef354['data']:_0x25f137['push']({'type':'text','add':'add'==_0x5a724d?_0x2ef354['data']:'','remove':'remove'==_0x5a724d?_0x2ef354['data']:''});else{if(this['_schema']['isObject'](_0x2ef354)){const _0x2e75b0=_0x2ef354;if(_0x252296&&_0x252296['type']['indexOf']('Container')>-0x1&&_0x25f137['pop'](),'elementEnd'==_0x3713ab['type'])continue;_0x252296&&_0x252296['type']==_0x5a724d+'Object'&&_0x252296['element']['name']==_0x2e75b0['name']?_0x252296['quantity']++:_0x25f137['push']({'type':_0x5a724d+'Object','element':_0x2e75b0,'quantity':0x1}),_0x570bce['skip'](_0x127988=>!('elementEnd'==_0x127988['type']&&_0x127988['item']==_0x2ef354));}else{if(this['_schema']['checkChild'](_0x2ef354,'$text')||_0x2ef354['is']('element','softBreak')){const _0x51c84e=_0x2ef354;if('add'==_0x5a724d&&'elementStart'==_0x3713ab['type']||'remove'==_0x5a724d&&'elementEnd'==_0x3713ab['type'])continue;if(_0x252296&&-0x1==_0x252296['type']['indexOf']('Container')){'text'==_0x252296['type']&&(_0x252296[_0x5a724d]+='\x0a');continue;}let _0x5111ac;if(_0x5111ac='add'==_0x5a724d?_0x51c84e['nextSibling']&&!this['_schema']['isObject'](_0x51c84e['nextSibling'])?_0x51c84e['nextSibling']:null:_0x51c84e['previousSibling']&&!this['_schema']['isObject'](_0x51c84e['previousSibling'])?_0x51c84e['previousSibling']:null,_0x51c84e['isEmpty']||_0x5111ac&&_0x5111ac['isEmpty']){const _0x140288=_0x5111ac&&_0x5111ac['isEmpty']?_0x5111ac:_0x51c84e;_0x252296&&_0x252296['type']==_0x5a724d+'EmptyContainer'&&_0x252296['element']['name']==_0x140288['name']?_0x252296['quantity']++:_0x25f137['push']({'type':_0x5a724d+'EmptyContainer','element':_0x140288,'quantity':0x1});}else _0x25f137['push']({'type':_0x5a724d+'Container','element':_0x51c84e});}}}}}['_resolveDescriptionItems'](_0x12b516){const _0x6b1cbc=this['_locale'],_0x50aa5d=[],_0x281250=[],_0x9067a5=[];for(const _0x599a91 of _0x12b516)switch(_0x599a91['type']){case'text':if(_0x599a91['add']=_0x599a91['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x599a91['remove']=_0x599a91['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x599a91['add']&&''!=_0x599a91['remove']){_0x50aa5d['push']({'type':'replace','content':o(_0x6b1cbc,'REPLACE_TEXT',['\x22'+_0x599a91['remove']+'\x22','\x22'+_0x599a91['add']+'\x22'])});continue;}if(null!=_0x599a91['add']['match'](/^ +$/)){_0x50aa5d['push']({'type':'insertion','content':o(_0x6b1cbc,'*Insert:*\x20%0',o(_0x6b1cbc,'ELEMENT_SPACE',_0x599a91['add']['length']))});continue;}if(null!=_0x599a91['remove']['match'](/^ +$/)){_0x50aa5d['push']({'type':'deletion','content':o(_0x6b1cbc,'*Remove:*\x20%0',o(_0x6b1cbc,'ELEMENT_SPACE',_0x599a91['remove']['length']))});continue;}if(''!=_0x599a91['add']){_0x50aa5d['push']({'type':'insertion','content':o(_0x6b1cbc,'*Insert:*\x20%0','\x22'+_0x599a91['add']+'\x22')});continue;}_0x50aa5d['push']({'type':'deletion','content':o(_0x6b1cbc,'*Remove:*\x20%0','\x22'+_0x599a91['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x50aa5d['push']({'type':'insertion','content':o(_0x6b1cbc,'*Insert:*\x20%0',this['getItemLabel'](_0x599a91['element'],_0x599a91['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x50aa5d['push']({'type':'deletion','content':o(_0x6b1cbc,'*Remove:*\x20%0',this['getItemLabel'](_0x599a91['element'],_0x599a91['quantity']))});continue;case'addContainer':_0x50aa5d['push']({'type':'insertion','content':o(_0x6b1cbc,'*Split:*\x20%0',this['getItemLabel'](_0x599a91['element'],_0x599a91['quantity']))});continue;case'removeContainer':_0x50aa5d['push']({'type':'deletion','content':o(_0x6b1cbc,'*Merge:*\x20%0',this['getItemLabel'](_0x599a91['element'],_0x599a91['quantity']))});continue;case'addFormat':_0x281250['push'](_0x599a91['key']);continue;case'removeFormat':_0x9067a5['push'](_0x599a91['key']);continue;default:_0x50aa5d['push'](_0x599a91);}if(_0x281250['length']){const _0x2c6978=_0x281250['map'](_0x1d53e9=>this['_attributeLabels']['has'](_0x1d53e9)?this['_attributeLabels']['get'](_0x1d53e9):_0x1d53e9)['join'](',\x20');_0x50aa5d['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2c6978)});}if(_0x9067a5['length']){const _0x175ac6=_0x9067a5['map'](_0x3d3a38=>this['_attributeLabels']['has'](_0x3d3a38)?this['_attributeLabels']['get'](_0x3d3a38):_0x3d3a38)['join'](',\x20');_0x50aa5d['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x175ac6)});}return _0x50aa5d;}['_handleCustomCallbackDescription'](_0x11faa8){for(const _0x2d02a1 of this['_customCallbacks']){const _0xc1fcba=_0x2d02a1(_0x11faa8);if(_0xc1fcba&&'type'in _0xc1fcba)return _0xc1fcba;}}['_handleAttributeSuggestionDescription'](_0x30d41f,_0x3947ae){const _0x424d28=_0x3947ae['data'],_0x504b98=void 0x0===_0x424d28['newValue']?'removeFormat':'addFormat';_0x30d41f['push']({'type':_0x504b98,'key':_0x424d28['key']});}['_handleRenameSuggestionDescription'](_0x2848eb,_0x43adb7){_0x2848eb['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x43adb7['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x530160,_0x5670e8,_0x30f6d5){if(this['_addDescriptionItems'](_0x530160,_0x5670e8),_0x30f6d5&&_0x30f6d5['getFirstRange']()&&!_0x5670e8['getFirstRange']()['end']['isEqual'](_0x30f6d5['getFirstRange']()['start'])){const _0x2954d2=_0x530160[_0x530160['length']-0x1],_0x47a0df='insertion'==_0x5670e8['type']?'add':'remove';_0x2954d2&&'text'==_0x2954d2['type']&&(_0x2954d2[_0x47a0df]+='\x0a');}}}class E extends _0x1c996d{['afterInit'](){const _0x428a3d=this['editor'],_0xe740d3=_0x428a3d['plugins']['get']('TrackChangesEditing');_0x428a3d['commands']['get']('showAIAssistant')&&_0xe740d3['enableCommand']('showAIAssistant');}}class V extends _0x1c996d{['afterInit'](){const _0x2ec9cf=this['editor'],_0x1849e2=_0x2ec9cf['locale'];if(!_0x2ec9cf['plugins']['has']('AlignmentEditing'))return;const _0x1b9cd3=_0x2ec9cf['plugins']['get']('TrackChangesEditing');_0x1b9cd3['enableDefaultAttributesIntegration']('alignment'),_0x1b9cd3['registerBlockAttribute']('alignment'),_0x1b9cd3['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1849e2,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22cab7=this['editor'],_0x5760fb=_0x22cab7['locale'];_0x22cab7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f6de2=>{if('formatBlock'!=_0x2f6de2['type'])return;const {data:_0x7edf00}=_0x2f6de2;if(_0x7edf00&&'alignment'==_0x7edf00['commandName']){const _0x23b75f=_0x7edf00['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5760fb,'*Format:*\x20%0',function(_0x1d0161){switch(_0x1d0161){case'left':return o(_0x5760fb,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5760fb,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5760fb,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5760fb,'FORMAT_JUSTIFY_TEXT');}}(_0x23b75f))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x1c996d{['afterInit'](){const _0x30cec1=this['editor'],_0x86d96e=_0x30cec1['plugins']['get']('TrackChangesEditing'),_0x36a4a0=_0x30cec1['locale'];for(const _0x48eed5 of ti){if(!_0x30cec1['plugins']['has'](_0x48eed5))continue;const _0x3a8337=_0x48eed5['slice'](0x0,-0x7)['toLowerCase'](),_0xc2378e='FORMAT_'+_0x3a8337['toUpperCase']();_0x86d96e['enableDefaultAttributesIntegration'](_0x3a8337),_0x86d96e['registerInlineAttribute'](_0x3a8337),_0x86d96e['descriptionFactory']['registerAttributeLabel'](_0x3a8337,o(_0x36a4a0,_0xc2378e));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x453175=this['editor'],_0x5c81c7=_0x453175['locale'],_0xa23acf=_0x453175['plugins']['get']('TrackChangesEditing');function _0x515ccf(_0x1d620c,_0x4acb6f){_0xa23acf['descriptionFactory']['registerDescriptionCallback'](_0x31c3fd=>{if('formatInline'!=_0x31c3fd['type'])return;const {data:_0x3f50e1}=_0x31c3fd;return _0x3f50e1&&_0x3f50e1['commandName']===_0x1d620c?_0x3f50e1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5c81c7,'*Format:*\x20%0',_0x4acb6f)}:{'type':'format','content':o(_0x5c81c7,'*Remove\x20format:*\x20%0',_0x4acb6f)}:void 0x0;});}_0x515ccf('bold',o(_0x5c81c7,'FORMAT_BOLD')),_0x515ccf('italic',o(_0x5c81c7,'FORMAT_ITALIC')),_0x515ccf('underline',o(_0x5c81c7,'FORMAT_UNDERLINE')),_0x515ccf('code',o(_0x5c81c7,'FORMAT_CODE')),_0x515ccf('strikethrough',o(_0x5c81c7,'FORMAT_STRIKETHROUGH')),_0x515ccf('subscript',o(_0x5c81c7,'FORMAT_SUBSCRIPT')),_0x515ccf('superscript',o(_0x5c81c7,'FORMAT_SUPERSCRIPT'));}}class O extends _0x1c996d{['afterInit'](){const _0x3e8a47=this['editor'],_0x4a9f77=_0x3e8a47['locale'];if(!_0x3e8a47['plugins']['has']('BlockQuoteEditing'))return;const _0x2ccccc=_0x3e8a47['plugins']['get']('TrackChangesEditing'),_0x5a576d=this['editor']['commands']['get']('blockQuote');_0x2ccccc['enableCommand']('blockQuote',(_0x1ddba3,_0x593414={})=>{const _0xa8eee7=this['editor']['model']['document']['selection'],_0x29499e=_0x593414&&void 0x0!==_0x593414['forceValue']?_0x593414['forceValue']:!_0x5a576d['value'];let _0x40aaad=[];if(_0x29499e){const _0x56c52a=Array['from'](_0xa8eee7['getSelectedBlocks']())['filter'](_0xc8f5ea=>oo(_0xc8f5ea)||function(_0x207614,_0x2e43d6){const _0x15ad0f=_0x2e43d6['checkChild'](_0x207614['parent'],'blockQuote'),_0x11bc91=_0x2e43d6['checkChild'](['$root','blockQuote'],_0x207614);return _0x15ad0f&&_0x11bc91;}(_0xc8f5ea,this['editor']['model']['schema']));_0x40aaad=to(_0x56c52a,_0x3e8a47['model']);}else{const _0x1db2ab=Array['from'](_0xa8eee7['getSelectedBlocks']())['filter'](_0x4b93c3=>oo(_0x4b93c3));_0x40aaad=to(_0x1db2ab,_0x3e8a47['model']);}_0x3e8a47['model']['change'](()=>{for(const _0x35030e of _0x40aaad)_0x2ccccc['markBlockFormat'](_0x35030e,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x29499e}]});});}),_0x2ccccc['descriptionFactory']['registerDescriptionCallback'](_0x26334e=>{const {data:_0x13885e}=_0x26334e;if(_0x13885e&&'blockQuote'==_0x13885e['commandName']){const _0x34c1c8=o(_0x4a9f77,'ELEMENT_BLOCK_QUOTE');return _0x13885e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4a9f77,'*Set\x20format:*\x20%0',_0x34c1c8)}:{'type':'format','content':o(_0x4a9f77,'*Remove\x20format:*\x20%0',_0x34c1c8)};}});}}function oo(_0x14cbe6){return'blockQuote'==_0x14cbe6['parent']['name'];}class G extends _0x1c996d{['afterInit'](){const _0x41b924=this['editor'];_0x41b924['plugins']['has']('CaseChange')&&(_0x41b924['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x41b924['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x41b924['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x1c996d{['afterInit'](){const _0x411dd9=this['editor'];_0x411dd9['commands']['get']('ckbox')&&_0x411dd9['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x1c996d{['afterInit'](){const _0x52cccc=this['editor'];if(!_0x52cccc['plugins']['has']('CodeBlock'))return;const _0x556c9f=_0x52cccc['plugins']['get']('TrackChangesEditing'),_0x109dba=_0x52cccc['locale'],_0x38510a=_0x52cccc['config']['get']('codeBlock')['languages'],_0x42ce94=_0x52cccc['commands']['get']('codeBlock');_0x556c9f['enableCommand']('indentCodeBlock'),_0x556c9f['enableCommand']('outdentCodeBlock'),_0x556c9f['enableCommand']('codeBlock',(_0x4e7c71,_0x103740={})=>{const _0x14b97f=_0x52cccc['model'],_0x2f30ca=_0x52cccc['model']['document']['selection'],_0x41ec2c=_0x103740&&void 0x0!==_0x103740['forceValue']?_0x103740['forceValue']:!_0x42ce94['value'];let _0x2311e1;_0x103740['language']||(_0x103740['language']=_0x38510a[0x0]['language']),_0x2311e1=_0x41ec2c?Array['from'](_0x2f30ca['getSelectedBlocks']())['filter'](_0x3d922f=>eo(_0x3d922f)||function(_0x156efc,_0x45cdb9){if(_0x156efc['is']('rootElement')||_0x45cdb9['isLimit'](_0x156efc))return!0x1;return _0x45cdb9['checkChild'](_0x156efc['parent'],'codeBlock');}(_0x3d922f,_0x14b97f['schema'])):Array['from'](_0x2f30ca['getSelectedBlocks']())['filter'](_0x5cd06a=>eo(_0x5cd06a));const _0x3a1847=to(_0x2311e1,_0x14b97f);_0x14b97f['change'](()=>{for(const _0x40ec50 of _0x3a1847)_0x556c9f['markBlockFormat'](_0x40ec50,{'commandName':'codeBlock','commandParams':[{..._0x103740,'forceValue':_0x41ec2c}],'formatGroupId':'blockName'});});}),(_0x556c9f['descriptionFactory']['registerElementLabel']('codeBlock',_0x44c3e0=>o(_0x109dba,'ELEMENT_CODE_BLOCK',_0x44c3e0)),_0x556c9f['descriptionFactory']['registerDescriptionCallback'](_0x2d46dd=>{if('formatBlock'!=_0x2d46dd['type'])return;const _0x464ba0=_0x109dba['t'],{data:_0x1cac15}=_0x2d46dd;if(!_0x1cac15||'codeBlock'!=_0x1cac15['commandName'])return;const _0x3f913c=_0x1cac15['commandParams'][0x0]['language'],_0x5a3884=_0x464ba0(_0x38510a['find'](_0x5607d7=>_0x5607d7['language']===_0x3f913c)['label'])['toLowerCase']();return _0x1cac15['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x109dba,'*Set\x20format:*\x20%0',o(_0x109dba,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5a3884+')')}:{'type':'format','content':o(_0x109dba,'*Remove\x20format:*\x20%0',o(_0x109dba,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4462b9){return'codeBlock'==_0x4462b9['name'];}class H extends _0x1c996d{['afterInit'](){const _0x247113=this['editor'];if(!_0x247113['plugins']['has']('CommentsEditing'))return;_0x247113['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x46ebee,_0x5e2e02,_0x2af877){const _0x2e34eb=[];for(const _0x3b5902 of _0x5e2e02['getItems']())_0x3b5902['hasAttribute'](_0x46ebee)&&_0x2e34eb['push'](_0x2af877['createRangeOn'](_0x3b5902));return _0x2e34eb;}function _e(_0x2f4e0e,_0x321d7b,{showActiveMarker:_0x262c27=!0x0}={}){const _0x1c03e1=_0x2f4e0e['plugins']['get']('TrackChangesEditing');return(_0x4e0030,_0x35cc16,_0x1a2f51)=>{if(!_0x1a2f51['consumable']['test'](_0x35cc16['markerRange'],_0x4e0030['name']))return;const _0x496788=_0x35cc16['markerRange']['getWalker'](),_0xd7cab2=_0x35cc16['markerRange']['start'],_0x1d540b=_0x2f4e0e['model']['schema'];let _0x55d9e1=null,_0x4a47c7=null,_0x214639=!0x1,_0x437168=!0x1;for(const _0x556ac0 of _0x496788){const _0x2e5957=_0x556ac0['item'];_0x214639=_0x214639||_0x1d540b['isContent'](_0x2e5957);const _0x1c2dff=_0x1a2f51['mapper']['toViewElement'](_0x2e5957);if(_0x1c2dff&&_0x1c2dff['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x556ac0['type']&&(_0x1d540b['isBlock'](_0x2e5957)&&!_0x1d540b['isLimit'](_0x2e5957)&&(_0x2e5957['nextSibling']||_0xd7cab2['isAtEnd']?_0x55d9e1&&_0x55d9e1['parent']==_0x2e5957||(_0x55d9e1=_0x2e5957,_0x1c54b0(_0x556ac0['previousPosition']),_0x437168=!0x0):_0x4a47c7=_0x4a47c7||_0x556ac0['previousPosition']));}function _0x1c54b0(_0x4786ef){const _0x51808c=_0x1a2f51['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x321d7b}),_0x2652df=_0x1a2f51['mapper']['toViewPosition'](_0x4786ef);_0x262c27&&_0x1c03e1['activeMarkers']['includes'](_0x35cc16['markerName'])&&_0x1a2f51['writer']['addClass']('ck-suggestion-marker--active',_0x51808c),_0x1a2f51['writer']['insert'](_0x2652df,_0x51808c),_0x1a2f51['mapper']['bindElementToMarker'](_0x51808c,_0x35cc16['markerName']);}_0x214639||_0x437168||!_0x4a47c7||_0x1c54b0(_0x4a47c7);};}class q extends _0x1c996d{static get['requires'](){return[_0x5db860];}['init'](){const _0x43474b=this['editor'],_0x269f12=_0x43474b['plugins']['get']('TrackChangesEditing');_0x269f12['enableCommand']('delete');const _0xd69daf=_0x43474b['commands']['get']('deleteForward');_0x269f12['enableCommand']('deleteForward',(_0x251107,_0x27968d={})=>{const _0x4c3214=_0x43474b['model']['createSelection'](_0x43474b['model']['document']['selection']);_0x4c3214['isCollapsed']&&_0x43474b['model']['modifySelection'](_0x4c3214,{'direction':'forward','unit':_0x27968d['unit']});const _0x37ba63=_0x4c3214['getFirstRange'](),_0x5098f8=_0x14f38f['fromRange'](_0x37ba63);let _0x3a1264;_0x251107(_0x27968d),_0x3a1264='$graveyard'==_0x5098f8['root']['rootName']?_0x43474b['model']['createRange'](_0x37ba63['start']):_0x43474b['model']['createRange'](_0x5098f8['start'],_0x5098f8['end']),_0x5098f8['detach'](),_0x43474b['model']['enqueueChange'](_0xd69daf['buffer']['batch'],_0x195c85=>{_0xd69daf['buffer']['lock'](),_0x195c85['setSelection'](_0x195c85['createRange'](_0x3a1264['end'])),_0xd69daf['buffer']['unlock']();});}),_0x43474b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x43474b,'merge'),{'priority':'high'}),_0x43474b['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x15803f,_0x2e7400,_0x573473)=>{_0x573473['options']['showSuggestionHighlights']&&_e(_0x43474b,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x15803f,_0x2e7400,_0x573473);},{'priority':'high'}),_0x43474b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xa0a8c2,_0x43ab33,_0x3a7278)=>{const _0x326a94=_0x3a7278['mapper']['markerNameToElements'](_0x43ab33['markerName']);if(_0x326a94){for(const _0x530437 of _0x326a94)_0x530437['is']('uiElement')&&(_0x3a7278['mapper']['unbindElementFromMarkerName'](_0x530437,_0x43ab33['markerName']),_0x3a7278['writer']['remove'](_0x530437));}},{'priority':'high'});}}class z extends _0x1c996d{['afterInit'](){const _0x2a26a9=this['editor'];if(!_0x2a26a9['plugins']['has']('ListEditing'))return;const _0x3437e2=_0x2a26a9['locale'],_0x403e5b=_0x2a26a9['plugins']['get']('TrackChangesEditing'),_0x4a4e7a=_0x2a26a9['plugins']['has']('TodoListEditing'),_0x294e44=!!_0x2a26a9['config']['get']('list.multiBlock');function _0x3bc126(_0x3e3c5e){return{'type':'format','content':''+o(_0x3437e2,'*Set\x20format:*\x20%0',_0x3e3c5e)};}function _0x480eea(_0x2fb3e7){return{'type':'format','content':''+o(_0x3437e2,'*Remove\x20format:*\x20%0',_0x2fb3e7)};}_0x403e5b['enableDefaultAttributesIntegration']('numberedList'),_0x403e5b['enableDefaultAttributesIntegration']('bulletedList'),_0x403e5b['enableDefaultAttributesIntegration']('customNumberedList'),_0x403e5b['enableDefaultAttributesIntegration']('customBulletedList'),_0x403e5b['enableDefaultAttributesIntegration']('indentList'),_0x403e5b['enableDefaultAttributesIntegration']('outdentList'),_0x403e5b['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x403e5b['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x403e5b['registerBlockAttribute']('listItemId'),_0x403e5b['registerBlockAttribute']('listType'),_0x403e5b['registerBlockAttribute']('listIndent'),_0x294e44&&(_0x403e5b['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x403e5b['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4a4e7a&&(_0x403e5b['enableDefaultAttributesIntegration']('todoList'),_0x403e5b['enableDefaultAttributesIntegration']('checkTodoList'),_0x403e5b['registerBlockAttribute']('todoListChecked'),_0x403e5b['descriptionFactory']['registerDescriptionCallback'](_0x2b98a9=>{const {data:_0x87380d}=_0x2b98a9;if(_0x87380d&&'todoListChecked'==_0x87380d['key'])return{'type':'format','content':_0x87380d['newValue']?o(_0x3437e2,'*Check\x20item*'):o(_0x3437e2,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x477200=>{if(_0x477200['batch']['isUndo'])return!0x1;let _0x42cae1=!0x1;const _0x5d2cde=_0x403e5b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x548c02=>'todoListChecked'===_0x403e5b['_getAttributeKey'](_0x548c02));for(const _0x55e371 of _0x5d2cde){'todo'!=_0x55e371['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x403e5b['_findSuggestions'](_0x55e371['getFirstRange'](),'attribute')['find'](_0x42ab0a=>'listType'===_0x403e5b['_getAttributeKey'](_0x42ab0a['suggestion']))||(_0x477200['removeMarker'](_0x55e371['getFirstMarker']()),_0x42cae1=!0x0));}return _0x42cae1;})),_0x403e5b['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x3437e2,'FORMAT_INDENT'));const _0x778aeb={'type':'format','content':''};_0x403e5b['descriptionFactory']['registerDescriptionCallback'](_0x16359a=>{const {data:_0x1e435c}=_0x16359a;if(!_0x1e435c||'listType'!=_0x1e435c['key'])return;let _0x55abb8=_0x16359a['head'];for(;_0x55abb8;){if(_0x55abb8['data']&&(('listStyle'==_0x55abb8['data']['key']||'listMarkerStyle'==_0x55abb8['data']['key'])&&(_0x55abb8['data']['newValue']&&'default'!=_0x55abb8['data']['newValue']||'default'!=_0x55abb8['data']['oldValue']&&!_0x1e435c['newValue'])||!_0x294e44&&_0x55abb8['data']['key']==m))return _0x778aeb;_0x55abb8=_0x55abb8['next'];}if(null==_0x1e435c['newValue'])switch(_0x1e435c['oldValue']){case'bulleted':return _0x480eea(o(_0x3437e2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x480eea(o(_0x3437e2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x480eea(o(_0x3437e2,'ELEMENT_TODO_LIST'));}switch(_0x1e435c['newValue']){case'bulleted':return _0x3bc126(o(_0x3437e2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3bc126(o(_0x3437e2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3bc126(o(_0x3437e2,'ELEMENT_TODO_LIST'));}}),_0x403e5b['descriptionFactory']['registerDescriptionCallback'](_0x48d4e6=>{const {data:_0x39bbe9}=_0x48d4e6;if(_0x39bbe9&&'listIndent'==_0x39bbe9['key'])return null==_0x39bbe9['newValue']||null==_0x39bbe9['oldValue']&&0x0==_0x39bbe9['newValue']?_0x778aeb:void 0x0;}),_0x403e5b['descriptionFactory']['registerDescriptionCallback'](_0x3e9f0a=>{if('attribute'!=_0x3e9f0a['type'])return;const {data:_0x5d6ada}=_0x3e9f0a;if(!_0x5d6ada||'listItemId'!=_0x5d6ada['key'])return;const _0x5b5bf0=le(_0x3e9f0a);return'newValue'==_0x5b5bf0?{'type':'format','content':o(_0x3437e2,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5b5bf0?{'type':'format','content':o(_0x3437e2,'*Split:*\x20list\x20item')}:_0x778aeb;}),_0x2a26a9['model']['document']['registerPostFixer'](_0x357830=>this['listItemIdFixer'](_0x357830)),_0x2a26a9['model']['document']['registerPostFixer'](_0x1eec07=>this['noTrackChangesFixer'](_0x1eec07)),_0x2a26a9['model']['document']['registerPostFixer'](_0x1de98a=>this['assureChains'](_0x1de98a)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4f7129){if(_0x4f7129['batch']['isUndo']||!_0x4f7129['batch']['isLocal'])return!0x1;let _0x2119cc=!0x1;const _0x504467=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x157fa6=>_0x157fa6['data']&&'listItemId'==_0x157fa6['data']['key'])['filter'](_0x2d31cd=>_0x2d31cd['data']['newValue']&&_0x2d31cd['data']['oldValue']);for(const _0x262da9 of _0x504467)le(_0x262da9)||(_0x4f7129['removeMarker'](_0x262da9['getFirstMarker']()),_0x2119cc=!0x0);return _0x2119cc;}['noTrackChangesFixer'](_0x240c31){if(_0x240c31['batch']['isUndo']||!_0x240c31['batch']['isLocal'])return!0x1;const _0x267fe6=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x267fe6['trackChangesCommand']['value'])return!0x1;let _0x428871=!0x1;const _0x4030b7=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4762d4=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xad0df6=>'attribute'==_0xad0df6['type'])['filter'](_0x2f82c6=>_0x4030b7['includes'](_0x2f82c6['attributeKey']));if(0x0==_0x4762d4['length'])return _0x428871;for(const _0x246fb8 of _0x4762d4){const _0x3f464d=_0x267fe6['_findSuggestions'](_0x246fb8['range'],'attribute')['filter'](_0x4a84ef=>!_0x4a84ef['meta']['isNextTo'])['map'](_0x58e837=>_0x58e837['suggestion'])['filter'](_0x3ca03e=>{const _0xc1af55=_0x267fe6['_getAttributeKey'](_0x3ca03e);return _0x4030b7['includes'](_0xc1af55);});if(_0x3f464d['length']){for(const _0x5e1529 of _0x3f464d)_0x240c31['removeMarker'](_0x5e1529['getFirstMarker']());_0x428871=!0x0;}}return _0x428871;}['assureChains'](_0x2442c3){if(_0x2442c3['batch']['isUndo']||!_0x2442c3['batch']['isLocal'])return!0x1;const _0x2f8c4e=this['editor']['plugins']['get']('TrackChangesEditing');let _0x1a7174=!0x1;const _0x59ec3e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x4d8243 of _0x2f8c4e['getSuggestions']({'skipNotAttached':!0x0})){const _0x1ef10f=_0x2f8c4e['_findSuggestions'](_0x4d8243['getFirstRange'](),'attribute')['map'](_0x550b44=>_0x550b44['suggestion'])['filter'](_0x19afcd=>_0x19afcd['data']&&_0x59ec3e['includes'](_0x19afcd['data']['key']));if(!_0x1ef10f['length'])continue;const _0x1081ff=_0x1ef10f[0x0]['head']['attributes']['groupId'];if(!_0x1ef10f['every'](_0x5af65a=>_0x5af65a['attributes']['groupId']===_0x1081ff)){for(const _0x32a9eb of _0x1ef10f)_0x254d8c(_0x32a9eb,_0x1081ff)&&(_0x1a7174=!0x0);}}return _0x1a7174;function _0xf0d0b8(_0x1e4fd9,_0x1956a1){for(const _0x55f612 of _0x2f8c4e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x267c35=>'attribute'==_0x267c35['type']&&_0x267c35['attributes']['groupId']==_0x1e4fd9))_0x55f612['setAttribute']('groupId',_0x1956a1);}function _0x254d8c(_0xefc123,_0x8f2308){let _0x2c7278=_0xefc123['head'],_0x4ac81a=!0x1;for(;_0x2c7278;)_0x2c7278['attributes']['groupId']!=_0x8f2308&&(_0xf0d0b8(_0x2c7278['attributes']['groupId'],_0x8f2308),_0x2c7278['setAttribute']('groupId',_0x8f2308),_0x4ac81a=!0x0),_0x2c7278=_0x2c7278['next'];return _0x4ac81a;}}['_supportLegacySuggestions'](){const _0x188dc4=this['editor'],_0x44dbe5=_0x188dc4['locale'],_0x42af9c=_0x188dc4['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x42af9c['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3eeb43,_0x1241d8){const _0x37bd2b=[];for(let _0x2ab88a of _0x3eeb43)_0x2ab88a['start']['nodeAfter']===_0x2ab88a['end']['parent']&&(_0x2ab88a=_0x188dc4['model']['createRange'](_0x188dc4['model']['createPositionAt'](_0x2ab88a['start']['nodeAfter'],0x0))),_0x37bd2b['push'](_0x2ab88a);_0x188dc4['model']['change'](_0x1f1ca5=>{const _0x11bd19=_0x188dc4['model']['document']['selection'],_0x5c190f=Array['from'](_0x11bd19['getRanges']())['map'](_0x289a0a=>_0x14f38f['fromRange'](_0x289a0a));_0x1f1ca5['setSelection'](_0x37bd2b),_0x188dc4['commands']['get'](_0x1241d8['commandName'])['refresh'](),_0x1241d8['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x188dc4['execute'](_0x1241d8['commandName'],..._0x1241d8['commandParams']),_0x1f1ca5['setSelection'](_0x5c190f);for(const _0x50e618 of _0x5c190f)_0x50e618['detach']();});}),_0x42af9c['descriptionFactory']['registerElementLabel'](function(_0x421315){const _0x27ba31=!_0x188dc4['model']['schema']['isObject'](_0x421315),_0x597ab6=_0x421315['previousSibling'],_0x11e3c0=_0x421315['nextSibling'],_0x14ba8e=_0x421315['getAttribute']('listItemId'),_0x1c4040=!_0x597ab6||_0x597ab6['getAttribute']('listItemId')!==_0x14ba8e,_0x3af8be=!_0x11e3c0||_0x11e3c0['getAttribute']('listItemId')!==_0x14ba8e;return _0x27ba31&&Boolean(_0x14ba8e)&&_0x1c4040&&_0x3af8be;},_0x238c1a=>o(_0x44dbe5,'ELEMENT_LIST_ITEM',_0x238c1a));}['_registerLegacyDescription'](){const _0x4bdaf3=this['editor'],_0x47ded5=_0x4bdaf3['locale'];function _0x20c641(_0x227174){const _0x12ae1d=_0x4bdaf3['commands']['get']('bulletedList')['value'],_0x385eb3=_0x4bdaf3['commands']['get']('numberedList')['value'];return'numberedList'===_0x227174?_0x12ae1d:_0x385eb3;}_0x4bdaf3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x519ad5){if('formatBlock'!=_0x519ad5['type'])return;const {data:_0x5969ea}=_0x519ad5;if(!_0x5969ea)return;let _0x940a2,_0x5b9f43,_0x294e60,_0x4c7fae;switch(_0x5969ea['commandName']){case'bulletedList':_0x294e60=_0x5969ea['commandParams'][0x0]['forceValue'],_0x4c7fae=_0x20c641(_0x5969ea['commandName']),_0x940a2=_0x294e60?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4c7fae&&_0x4bdaf3['config']['get']('list.multiBlock')||(_0x940a2='*Change\x20to:*\x20%0'),_0x5b9f43={'type':'format','content':o(_0x47ded5,_0x940a2,o(_0x47ded5,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x294e60=_0x5969ea['commandParams'][0x0]['forceValue'],_0x4c7fae=_0x20c641(_0x5969ea['commandName']),_0x940a2=_0x294e60?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4c7fae&&_0x4bdaf3['config']['get']('list.multiBlock')||(_0x940a2='*Change\x20to:*\x20%0'),_0x5b9f43={'type':'format','content':o(_0x47ded5,_0x940a2,o(_0x47ded5,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x940a2='*Indent:*\x20%0',_0x5b9f43={'type':'format','content':o(_0x47ded5,_0x940a2,o(_0x47ded5,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x940a2=function(_0x4ee8e2){const _0x1c6420=_0x4ee8e2['getFirstRange']();let _0x5c968e=_0x1c6420['start']['nodeAfter'];for(;_0x5c968e&&_0x1c6420['containsItem'](_0x5c968e);){if(_0x5c968e['getAttribute']('listIndent')>0x0)return!0x1;_0x5c968e=_0x5c968e['nextSibling'];}return!0x0;}(_0x519ad5)?o(_0x47ded5,'*Format:*\x20remove\x20from\x20%0',o(_0x47ded5,function(_0x189992){return'ELEMENT_'+_0x189992['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x519ad5))):o(_0x47ded5,'*Outdent:*\x20%0',o(_0x47ded5,'ELEMENT_LIST_ITEM')),_0x5b9f43={'type':'format','content':_0x940a2};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5969ea['multipleBlocks']&&(_0x940a2='*Merge:*\x20%0',_0x5b9f43={'type':'deletion','content':o(_0x47ded5,_0x940a2,o(_0x47ded5,'ELEMENT_LIST_ITEM'))});}return _0x5b9f43;});}}function le(_0x2a8b42){let _0x2cd010=_0x2a8b42['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2cd010;){const _0x3a3540=_0x2cd010['getAttribute']('listItemId');if(!_0x3a3540)return!0x1;if(_0x3a3540==_0x2a8b42['data']['newValue'])return'newValue';if(_0x3a3540==_0x2a8b42['data']['oldValue'])return'oldValue';_0x2cd010=_0x2cd010['previousSibling'];}return!0x1;}class ue extends _0x1c996d{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2a8478=this['editor']['config']['get']('list.properties'),_0x3fa1e2=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a8478['styles']&&(_0x3fa1e2['enableDefaultAttributesIntegration']('listStyle'),_0x3fa1e2['registerBlockAttribute']('listStyle')),_0x2a8478['reversed']&&(_0x3fa1e2['enableDefaultAttributesIntegration']('listReversed'),_0x3fa1e2['registerBlockAttribute']('listReversed')),_0x2a8478['startIndex']&&(_0x3fa1e2['enableDefaultAttributesIntegration']('listStart'),_0x3fa1e2['registerBlockAttribute']('listStart'));const _0x10f93a={'type':'format','content':''};_0x3fa1e2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x45fe4c=this['editor']['locale'];_0x3fa1e2['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x45fe4c,'FORMAT_LIST_REVERSED')),_0x3fa1e2['descriptionFactory']['registerDescriptionCallback'](_0x29a618=>{const {data:_0x1c74d9}=_0x29a618;if(_0x1c74d9&&'listReversed'==_0x1c74d9['key'])return null==_0x1c74d9['newValue']||0x0==_0x1c74d9['newValue']&&null==_0x1c74d9['oldValue']?_0x10f93a:void 0x0;}),_0x3fa1e2['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x45fe4c,'FORMAT_LIST_START')),_0x3fa1e2['descriptionFactory']['registerDescriptionCallback'](_0x4b219a=>{const {data:_0x4de320}=_0x4b219a;if(_0x4de320&&'listStart'==_0x4de320['key'])return null==_0x4de320['newValue']||0x1==_0x4de320['newValue']&&null==_0x4de320['oldValue']?_0x10f93a:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3eb946=>{if(_0x3eb946['batch']['isUndo'])return!0x1;let _0x4c7f97=!0x1;const _0x5943aa=_0x3fa1e2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x277bf8=>{const _0x652905=_0x3fa1e2['_getAttributeKey'](_0x277bf8);return'listStart'==_0x652905||'listReversed'==_0x652905;});for(const _0xc04b71 of _0x5943aa){const _0x4d3da8=_0xc04b71['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4d3da8||'customNumbered'==_0x4d3da8)continue;_0x3fa1e2['_findSuggestions'](_0xc04b71['getFirstRange'](),'attribute')['find'](_0x340412=>'listType'==_0x3fa1e2['_getAttributeKey'](_0x340412['suggestion']))||(_0x3eb946['removeMarker'](_0xc04b71['getFirstMarker']()),_0x4c7f97=!0x0);}return _0x4c7f97;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x366ab6){const _0x476675=this['editor']['locale'],{data:_0x1dfebf}=_0x366ab6,_0x4a3b8f={'type':'format','content':''};if(!_0x1dfebf||'listStyle'!=_0x1dfebf['key'])return;if(!_0x1dfebf['oldValue'])return'default'==_0x1dfebf['newValue']?_0x4a3b8f:{'type':'format','content':''+o(_0x476675,'*Set\x20format:*\x20%0',o(_0x476675,this['_getTranslationKeyForListStyle'](_0x1dfebf['newValue'])))};if(!_0x1dfebf['newValue']){if('default'==_0x1dfebf['oldValue'])return _0x4a3b8f;let _0x40be6b=_0x366ab6['head'];for(;_0x40be6b;){if(_0x40be6b['data']&&'listType'==_0x40be6b['data']['key']&&_0x40be6b['data']['newValue'])return _0x4a3b8f;_0x40be6b=_0x40be6b['next'];}return{'type':'format','content':''+o(_0x476675,'*Remove\x20format:*\x20%0',o(_0x476675,this['_getTranslationKeyForListStyle'](_0x1dfebf['oldValue'])))};}if('default'!=_0x1dfebf['newValue'])return{'type':'format','content':''+o(_0x476675,'*Set\x20format:*\x20%0',o(_0x476675,this['_getTranslationKeyForListStyle'](_0x1dfebf['newValue'])))};let _0x440487=_0x366ab6['head'];for(;_0x440487;){if(_0x440487['data']&&'listType'==_0x440487['data']['key']&&_0x440487['data']['newValue']&&_0x440487['data']['oldValue'])return _0x4a3b8f;_0x440487=_0x440487['next'];}return{'type':'format','content':o(_0x476675,'*Set\x20format:*\x20%0',o(_0x476675,'ELEMENT_'+_0x366ab6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x8beedc=this['editor'],_0x527700=_0x8beedc['locale'];_0x8beedc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2eb503=>{if('formatBlock'!=_0x2eb503['type'])return;const {data:_0x136820}=_0x2eb503;if(!_0x136820)return;let _0x53355a,_0x1c6c45;switch(_0x136820['commandName']){case'listStyle':_0x53355a='*Change\x20to:*\x20%0',_0x1c6c45={'type':'format','content':o(_0x527700,_0x53355a,o(_0x527700,this['_getTranslationKeyForListStyle'](_0x136820['commandParams'][0x0]['type'])))};break;case'listReversed':_0x53355a=_0x136820['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1c6c45={'type':'format','content':o(_0x527700,_0x53355a)};break;case'listStart':_0x53355a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1c6c45={'type':'format','content':o(_0x527700,_0x53355a,_0x136820['commandParams'][0x0]['startIndex'])};}return _0x1c6c45;});}['_getTranslationKeyForListStyle'](_0x2f3025){return'ELEMENT_'+function(_0x2ac564){if(pe['includes'](_0x2ac564))return'bulleted';if(ye['includes'](_0x2ac564))return'numbered';return null;}(_0x2f3025)['toUpperCase']()+'_LIST_'+_0x2f3025['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x1c996d{static get['requires'](){return[_0x49f0b4];}['init'](){const _0x376da3=this['editor'],_0x4a61b7=_0x376da3['plugins']['get']('TrackChangesEditing'),_0x14bd04=_0x376da3['commands']['get']('enter');_0x4a61b7['enableCommand']('enter',()=>{_0x376da3['model']['change'](_0x32ee4d=>{const _0x41a892=_0x376da3['model']['document']['selection'],_0x251bf7=_0x41a892['getFirstPosition'](),_0x450bbd=_0x14f38f['fromRange'](_0x41a892['getFirstRange']());if(_0x14bd04['enterBlock'](_0x32ee4d)){const _0x48178c=_0x376da3['model']['createPositionAt'](_0x251bf7['parent']['nextSibling'],0x0),_0x1fcff9=_0x32ee4d['createRange'](_0x251bf7,_0x48178c);_0x4a61b7['markInsertion'](_0x1fcff9);}else _0x32ee4d['setSelection'](_0x32ee4d['createRange'](_0x450bbd['end']));_0x450bbd['detach'](),_0x14bd04['fire']('afterExecute',{'writer':_0x32ee4d});});}),_0x376da3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x376da3,'split'),{'priority':'high'}),_0x376da3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x9366d1,_0x7dae1,_0xba442b)=>{const _0x4e5fb5=_0xba442b['mapper']['markerNameToElements'](_0x7dae1['markerName']);if(_0x4e5fb5){for(const _0x48101b of _0x4e5fb5)_0x48101b['hasClass']('ck-suggestion-marker-split')&&(_0xba442b['mapper']['unbindElementFromMarkerName'](_0x48101b,_0x7dae1['markerName']),_0xba442b['writer']['remove'](_0x48101b));}},{'priority':'high'}),_0x376da3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x49c460,_0x79b1c5,_0x443de6)=>{_0x443de6['options']['showSuggestionHighlights']&&_e(_0x376da3,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x49c460,_0x79b1c5,_0x443de6);},{'priority':'high'});}}class J extends _0x1c996d{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1e3011=this['editor']['plugins']['get']('TrackChangesEditing');_0x1e3011['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1e3011['enableCommand']('findNext'),_0x1e3011['enableCommand']('findPrevious'),_0x1e3011['enableCommand']('replace'),_0x1e3011['enableCommand']('replaceAll');}['handleFindCommand'](_0x480356,_0x1ebc72,_0x47567={}){const _0x2e3e72=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x480356(_0x10e7b6=>('string'==typeof _0x1ebc72?_0x2e3e72['findByTextCallback'](_0x1ebc72,_0x47567):_0x1ebc72)(_0x10e7b6)['filter'](_0x325efe=>!0x1===this['_isInDeletionRange'](_0x325efe,_0x10e7b6['item'])),_0x47567);}['_isInDeletionRange'](_0xe2e0fe,_0x5f5c10){const _0x32c0a8=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5f5c10,_0xe2e0fe['start']),this['editor']['model']['createPositionAt'](_0x5f5c10,_0xe2e0fe['end']));for(const _0x1baf50 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x32c0a8['getIntersection'](_0x1baf50['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 _0x1c996d{['afterInit'](){const _0x209c8b=this['editor']['locale'],_0x3c7806=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xda140d,commandName:_0x564f4d}of ro)this['editor']['plugins']['has'](_0xda140d)&&(_0x3c7806['enableDefaultAttributesIntegration'](_0x564f4d),_0x3c7806['registerInlineAttribute'](_0x564f4d));_0x209c8b['t'],_0x3c7806['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x209c8b,'FORMAT_FONT_SIZE')),_0x3c7806['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x209c8b,'FORMAT_FONT_FAMILY')),_0x3c7806['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x209c8b,'FORMAT_FONT_COLOR')),_0x3c7806['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x209c8b,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x351906=this['editor'],_0x14d599=_0x351906['locale'];_0x351906['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c93f3=>{const _0x334b44=_0x14d599['t'];if('formatInline'!=_0x5c93f3['type'])return;const {data:_0x48cc1a}=_0x5c93f3;if(null!=_0x48cc1a){if('fontSize'==_0x48cc1a['commandName']){const _0x349194=_0x48cc1a['commandParams'][0x0]['value'];if(_0x349194){const _0x672280=_0x334b44(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x452712=>_0x452712['model']==_0x349194)['title'])['toLowerCase']();return{'type':'format','content':o(_0x14d599,'*Set\x20font\x20size:*\x20%0',_0x672280)};}return{'type':'format','content':o(_0x14d599,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x48cc1a['commandName']){const _0x2878dc=_0x48cc1a['commandParams'][0x0]['value'];return _0x2878dc?{'type':'format','content':o(_0x14d599,'*Set\x20font\x20family:*\x20%0',_0x2878dc)}:{'type':'format','content':o(_0x14d599,'*Reset\x20font\x20family*')};}if('fontColor'==_0x48cc1a['commandName']){const _0x4dd695=_0x48cc1a['commandParams'][0x0]['value'];if(_0x4dd695){const _0x507fd9=_0x59736a(this['editor']['config']['get']('fontColor.colors'))['find'](_0x32fa39=>_0x32fa39['model']==_0x4dd695);let _0x13cddf=_0x4dd695,_0x5498c7='';return _0x507fd9&&(_0x13cddf=_0x507fd9['label'],_0x5498c7=_0x334b44(_0x13cddf)['toLowerCase']()),{'type':'format','content':o(_0x14d599,'*Set\x20font\x20color:*\x20%0',_0x5498c7)['trim'](),'color':{'value':_0x4dd695,'title':_0x5498c7||_0x13cddf}};}return{'type':'format','content':o(_0x14d599,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x48cc1a['commandName']){const _0x327fcb=_0x48cc1a['commandParams'][0x0]['value'];if(_0x327fcb){const _0x2529c3=_0x59736a(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x578f31=>_0x578f31['model']==_0x327fcb);let _0x20699c=_0x327fcb,_0x14f7fa='';return _0x2529c3&&(_0x20699c=_0x2529c3['label'],_0x14f7fa=_0x334b44(_0x20699c)['toLowerCase']()),{'type':'format','content':o(_0x14d599,'*Set\x20font\x20background\x20color:*\x20%0',_0x14f7fa)['trim'](),'color':{'value':_0x327fcb,'title':_0x14f7fa||_0x20699c}};}return{'type':'format','content':o(_0x14d599,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x1c996d{['afterInit'](){const _0x403258=this['editor'],_0x2d0290=_0x403258['plugins']['get']('TrackChangesEditing'),_0x3e1e0d=_0x403258['commands']['get']('copyFormat'),_0x45513b=_0x403258['commands']['get']('pasteFormat');_0x3e1e0d&&_0x45513b&&(_0x2d0290['enableDefaultAttributesIntegration']('pasteFormat'),_0x2d0290['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x204d91=this['editor'],_0x35d05d=_0x204d91['locale'];_0x204d91['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5481da=>{if('formatBlock'!=_0x5481da['type']&&'formatInline'!=_0x5481da['type'])return;const {data:_0x2c34c1}=_0x5481da;if(_0x2c34c1&&'pasteFormat'===_0x2c34c1['commandName']){const _0x27ccf7=[],_0x4a7fd4=_0x2c34c1['commandParams'][0x0];for(const [_0x1b545d,_0x1d45e2]of Object['entries'](_0x4a7fd4))_0x27ccf7['push'](so(_0x204d91,_0x1b545d,_0x1d45e2));return _0x27ccf7['length']?{'type':'format','content':o(_0x35d05d,'*Set\x20format\x20to:*\x20%0',_0x27ccf7['join'](',\x20'))}:{'type':'format','content':o(_0x35d05d,'*Remove\x20all\x20formatting*')};}});}}function so(_0x313bf2,_0x318c1e,_0x425085){const _0x1a4612=_0x313bf2['locale']['t'],_0x4f23ee=_0x318c1e['split'](/(?=[A-Z])/)['join']('\x20'),_0x10a568=_0x1a4612(_0x4f23ee['charAt'](0x0)['toUpperCase']()+_0x4f23ee['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x425085)return _0x10a568;if('fontColor'===_0x318c1e||'fontBackgroundColor'===_0x318c1e){const _0x2bd37e=_0x59736a(_0x313bf2['config']['get']('fontColor.colors'))['find'](_0x15a1b6=>_0x15a1b6['model']==_0x425085);return _0x10a568+'\x20('+(_0x2bd37e?_0x1a4612(_0x2bd37e['label'])['toLowerCase']():_0x425085)+')';}if('fontSize'===_0x318c1e&&isNaN(parseFloat(_0x425085))){const _0xcd075b=_0x313bf2['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x313bf2['config']['get']('fontSize.options'))['find'](_0xabb38d=>_0xabb38d['model']==_0x425085);return _0x10a568+'\x20('+(_0xcd075b?_0x1a4612(_0xcd075b['title'])['toLowerCase']():_0x425085)+')';}return _0x10a568+'\x20('+_0x425085+')';}class Y extends _0x1c996d{['_headingOptions'];['afterInit'](){const _0x34ab93=this['editor'];if(!_0x34ab93['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x34ab93['config']['get']('heading.options');const _0xa1cb82=_0x34ab93['locale'],_0x2add80=_0x34ab93['plugins']['get']('TrackChangesEditing');_0x2add80['enableDefaultAttributesIntegration']('heading');for(const _0xaff923 of this['_headingOptions'])'paragraph'!=_0xaff923['model']&&_0x2add80['descriptionFactory']['registerElementLabel'](_0xaff923['model'],_0x3bbb77=>{const _0x50130e=this['_getHeadingLevel'](_0xaff923['model']);return null!==_0x50130e?_0x1f0bf2(_0x3bbb77,_0x50130e):_0x4aa479(_0x3bbb77,_0xaff923['title']);});function _0x1f0bf2(_0x576d72,_0x32b1b2){return o(_0xa1cb82,'ELEMENT_HEADING',[_0x576d72,_0x32b1b2]);}function _0x4aa479(_0x3a383c,_0x35c2fb){return o(_0xa1cb82,'ELEMENT_HEADING_CUSTOM',[_0x3a383c,_0x35c2fb]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x293b76=this['editor'],_0x172e7d=_0x293b76['locale'];function _0x366202(_0x43d925,_0x2cfb46){return o(_0x172e7d,'ELEMENT_HEADING_CUSTOM',[_0x43d925,_0x2cfb46]);}_0x293b76['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x576ade=>{if('formatBlock'!=_0x576ade['type'])return;const {data:_0x3f2a6c}=_0x576ade;if(_0x3f2a6c&&'heading'==_0x3f2a6c['commandName']){const _0x564c27=_0x3f2a6c['commandParams'][0x0]['value'],_0x59ab95=this['_getHeadingLevel'](_0x564c27);if(null!==_0x59ab95)return{'type':'format','content':o(_0x172e7d,'*Change\x20to:*\x20%0',(_0x906091=0x1,_0x5c6be0=_0x59ab95,o(_0x172e7d,'ELEMENT_HEADING',[_0x906091,_0x5c6be0])))};const _0xdce112=this['_headingOptions']['find'](_0x182a62=>_0x182a62['model']===_0x564c27)['title'];return{'type':'format','content':o(_0x172e7d,'*Change\x20to:*\x20%0',_0x366202(0x1,_0xdce112))};}var _0x906091,_0x5c6be0;});}['_getHeadingLevel'](_0x5f0e5f){const _0x5f3aec=_0x5f0e5f['match'](/^heading(\d+)/);if(_0x5f3aec)return _0x5f3aec[0x1];const _0x561efe=this['_headingOptions']?.['find'](_0x34afce=>_0x34afce['model']==_0x5f0e5f);if(_0x561efe&&_0x561efe['view']){const _0x3de508=_0x561efe['view'],_0x4d3033=(_0x3de508['name']??_0x3de508)['match'](/^h(\d+)/);if(_0x4d3033)return _0x4d3033[0x1];}return null;}}class Z extends _0x1c996d{['afterInit'](){const _0x1415ed=this['editor'];if(!_0x1415ed['plugins']['has']('HighlightEditing'))return;const _0x8844a8=_0x1415ed['plugins']['get']('TrackChangesEditing'),_0x15dcf8=_0x1415ed['locale'];_0x8844a8['enableDefaultAttributesIntegration']('highlight'),_0x8844a8['registerInlineAttribute']('highlight'),_0x8844a8['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x15dcf8,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58e965=this['editor'],_0x1b76f3=_0x58e965['locale'];_0x58e965['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x590955=>{if('formatInline'!=_0x590955['type'])return;const {data:_0x319cf1}=_0x590955;if(_0x319cf1&&'highlight'==_0x319cf1['commandName']){const _0x16cd50=_0x1b76f3['t'],_0x11fbce=_0x319cf1['commandParams'][0x0]['value'];if(_0x11fbce){const _0x3f8571=_0x58e965['config']['get']('highlight.options')['find'](_0x237dfa=>_0x237dfa['model']==_0x11fbce),_0x5bf898=_0x16cd50(_0x3f8571['title'])['toLowerCase']();return{'type':'format','content':o(_0x1b76f3,'*Set\x20highlight:*\x20%0',_0x5bf898),'color':{'value':_0x3f8571['color'],'title':_0x3f8571['title']}};}return{'type':'format','content':o(_0x1b76f3,'*Remove\x20highlight*',o(_0x1b76f3,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x1c996d{['afterInit'](){const _0x776237=this['editor'];if(!_0x776237['plugins']['has']('HorizontalLineEditing'))return;_0x776237['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2f7f1d=_0x776237['plugins']['get']('TrackChangesEditing'),_0x4c2f72=_0x776237['locale'];_0x2f7f1d['descriptionFactory']['registerElementLabel']('horizontalLine',_0x203a63=>o(_0x4c2f72,'ELEMENT_HORIZONTAL_LINE',_0x203a63)),_0x776237['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x43cc81,{writer:_0x35f941,options:_0x5831cd})=>{if(!_0x5831cd['showSuggestionHighlights'])return null;const _0x503f89=_0x35f941['createContainerElement']('div'),_0x4441ea=_0x35f941['createEmptyElement']('hr');return _0x35f941['addClass']('ck-horizontal-line',_0x503f89),_0x35f941['insert'](_0x35f941['createPositionAt'](_0x503f89,0x0),_0x4441ea),_0x503f89;},'converterPriority':'high'});}}class et extends _0x1c996d{['afterInit'](){const _0x1bd792=this['editor'];if(!_0x1bd792['plugins']['has']('HtmlEmbed'))return;const _0x16fbd8=_0x1bd792['plugins']['get']('TrackChangesEditing'),_0x19cb45=_0x1bd792['locale'];_0x16fbd8['descriptionFactory']['registerElementLabel']('rawHtml',_0x1de840=>o(_0x19cb45,'ELEMENT_HTML_EMBED',_0x1de840)),_0x16fbd8['enableDefaultAttributesIntegration']('htmlEmbed'),_0x16fbd8['registerBlockAttribute']('value'),_0x16fbd8['descriptionFactory']['registerDescriptionCallback'](_0x44ad15=>{if('attribute'!=_0x44ad15['type'])return;const {data:_0x446956}=_0x44ad15;if(_0x446956&&'value'==_0x446956['key']&&_0x44ad15['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x23e367=o(_0x19cb45,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x19cb45,'*Change\x20%0\x20content*',_0x23e367)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52a5e5=this['editor'],_0x4619d1=_0x52a5e5['locale'];_0x52a5e5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59166d=>{if('formatBlock'!=_0x59166d['type'])return;const {data:_0x16f1e6}=_0x59166d;if(_0x16f1e6&&'htmlEmbed'==_0x16f1e6['commandName']){const _0x138054=o(_0x4619d1,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4619d1,'*Change\x20%0\x20content*',_0x138054)};}});}}class it extends _0x1c996d{['afterInit'](){const _0x4fd6fb=this['editor'];if(!_0x4fd6fb['plugins']['has']('ImageEditing'))return;const _0x1686f1=_0x4fd6fb['plugins']['get']('TrackChangesEditing'),_0x266c12=_0x4fd6fb['plugins']['get']('ImageUtils'),_0x16c38d=_0x4fd6fb['locale'];_0x1686f1['enableCommand']('insertImage'),_0x1686f1['descriptionFactory']['registerElementLabel']('imageBlock',_0x524db7=>o(_0x16c38d,'ELEMENT_IMAGE',_0x524db7)),_0x1686f1['descriptionFactory']['registerElementLabel']('imageInline',_0x5c6d6f=>o(_0x16c38d,'ELEMENT_INLINE_IMAGE',_0x5c6d6f)),_0x1686f1['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x16c38d,'ELEMENT_CAPTION')),_0x4fd6fb['plugins']['has']('ImageUploadEditing')&&_0x1686f1['enableCommand']('uploadImage'),_0x4fd6fb['plugins']['has']('ImageBlockEditing')&&_0x4fd6fb['plugins']['has']('ImageInlineEditing')&&(_0x1686f1['enableCommand']('imageTypeInline',(_0xc85cb,_0x41ddce)=>{const _0x28e0ad=_0x266c12['getClosestSelectedImageElement'](_0x4fd6fb['model']['document']['selection']);_0x4fd6fb['model']['change'](()=>{_0x1686f1['markBlockFormat'](_0x28e0ad,{'commandName':'imageTypeInline','commandParams':[_0x41ddce]},[],'convertBlockImageToInline');});}),_0x1686f1['enableCommand']('imageTypeBlock',(_0x5ce57c,_0x44fb2c)=>{_0x4fd6fb['model']['change'](_0x434f15=>{let _0x2953ea=_0x266c12['getClosestSelectedImageElement'](_0x4fd6fb['model']['document']['selection']),_0x3b3c26=_0x434f15['createRangeOn'](_0x2953ea);const _0x1cb6c4=_0x3e954b['fromPosition'](_0x3b3c26['start'],'toPrevious'),_0x1ac5de=_0x3e954b['fromPosition'](_0x3b3c26['end'],'toNext');_0x1686f1['forceDefaultExecution'](()=>_0x5ce57c(_0x44fb2c)),_0x2953ea=_0x266c12['getClosestSelectedImageElement'](_0x4fd6fb['model']['document']['selection']),_0x3b3c26=_0x434f15['createRangeOn'](_0x2953ea);const _0x3193d3=_0x434f15['createRange'](_0x1cb6c4,_0x1ac5de);_0x1cb6c4['detach'](),_0x1ac5de['detach'](),_0x1686f1['markBlockFormat'](_0x2953ea,{'commandName':'imageTypeInline','commandParams':[_0x44fb2c]},[],'convertInlineImageToBlock'),_0x3193d3['start']['isBefore'](_0x3b3c26['start'])&&_0x1686f1['markInsertion'](_0x434f15['createRange'](_0x3193d3['start'],_0x3b3c26['start']),'convertInlineImageToBlock'),_0x3b3c26['end']['isBefore'](_0x3193d3['end'])&&_0x1686f1['markInsertion'](_0x434f15['createRange'](_0x3b3c26['end'],_0x3193d3['end']),'convertInlineImageToBlock');});}),_0x1686f1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1686f1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1686f1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1686f1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1686f1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1686f1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2b9754])=>{const _0x40326b=_0x1686f1['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3bd9f2=_0x2b9754['start'],_0x3a212f=_0x2b9754['end'];const _0x4e454d=_0x4fd6fb['model']['schema']['getNearestSelectionRange'](_0x3bd9f2,'backward'),_0x107895=_0x4fd6fb['model']['schema']['getNearestSelectionRange'](_0x3a212f,'forward');_0x4e454d['isCollapsed']&&(_0x3bd9f2=_0x4e454d['start']),_0x107895['isCollapsed']&&(_0x3a212f=_0x107895['end']),_0x40326b([_0x4fd6fb['model']['createRange'](_0x3bd9f2,_0x3a212f)]);}),_0x1686f1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4d0f20),_0x1686f1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4d0f20)),_0x4fd6fb['plugins']['has']('ImageCaptionEditing')&&(_0x1686f1['enableCommand']('toggleImageCaption',(_0x14cf95,_0x3d6129)=>{const _0x3cc3cd=_0x4fd6fb['plugins']['get']('ImageCaptionUtils');let _0x110316=_0x266c12['getClosestSelectedImageElement'](_0x4fd6fb['model']['document']['selection']),_0x9296c2=_0x3cc3cd['getCaptionFromImageModelElement'](_0x110316);_0x4fd6fb['model']['change'](()=>{if(_0x9296c2)return void _0x1686f1['markDeletion'](_0x4fd6fb['model']['createRangeOn'](_0x9296c2));const _0xb53ade=_0x266c12['isBlockImage'](_0x110316);_0x14cf95(_0x3d6129),_0x110316=_0x266c12['getClosestSelectedImageElement'](_0x4fd6fb['model']['document']['selection']),_0x9296c2=_0x3cc3cd['getCaptionFromImageModelElement'](_0x110316),_0x1686f1['markInsertion'](_0x4fd6fb['model']['createRangeOn'](_0x9296c2),_0xb53ade?null:'imageCaption');});}),_0x1686f1['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4d0f20));const _0x5e1404=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2b98b1(_0x59459d,_0x230d47){const _0x32679a=_0x5e1404['findIndex'](({type:_0x20c4da,subType:_0x135c31})=>_0x59459d['type']==_0x20c4da&&_0x59459d['subType']==_0x135c31),_0x483ae6=_0x5e1404['findIndex'](({type:_0x2de9fa,subType:_0x474056})=>_0x230d47['type']==_0x2de9fa&&_0x230d47['subType']==_0x474056);if(_0x32679a<0x0||_0x483ae6<0x0)return!0x1;const _0x2a321e=_0x59459d['getFirstRange'](),_0x3142d0=_0x230d47['getFirstRange']();if((0x0==_0x32679a||0x1==_0x32679a)&&0x2==_0x483ae6&&_0x2a321e['isIntersecting'](_0x3142d0))return!0x0;if(0x2==_0x32679a&&0x3==_0x483ae6){const _0x29cc28=_0x1686f1['_findSuggestions'](_0x2a321e,'insertion')['filter'](({suggestion:_0x501e99,meta:_0x4127e7})=>_0x4127e7['isOwn']&&'convertInlineImageToBlock'==_0x501e99['subType']);if(_0x29cc28['length']>0x1&&_0x3142d0['end']['isEqual'](_0x2a321e['start']))return!0x0;if(0x1==_0x29cc28['length']&&(_0x2a321e['start']['isEqual'](_0x3142d0['end'])||_0x2a321e['end']['isEqual'](_0x3142d0['start'])))return!0x0;}if(0x3==_0x32679a&&0x3==_0x483ae6&&_0x2a321e['start']['isBefore'](_0x3142d0['start'])){const _0x222588=_0x2a321e['end']['nodeAfter'],_0x1eefbd=_0x3142d0['start']['nodeBefore'];return _0x266c12['isBlockImage'](_0x222588)&&_0x222588===_0x1eefbd;}return!0x1;}function _0x4d0f20(_0x35c871,_0x4538ce){return _0x2b98b1(_0x35c871,_0x4538ce)?[_0x35c871,_0x4538ce]:_0x2b98b1(_0x4538ce,_0x35c871)?[_0x4538ce,_0x35c871]:null;}_0x4fd6fb['plugins']['has']('ImageResize')&&(_0x1686f1['enableDefaultAttributesIntegration']('resizeImage'),_0x1686f1['registerBlockAttribute']('resizedWidth'),_0x1686f1['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x16c38d,'FORMAT_IMAGE_SIZE'))),_0x4fd6fb['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1686f1['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1686f1['registerBlockAttribute']('alt')),_0x1686f1['descriptionFactory']['registerDescriptionCallback'](_0x52b58d=>{if(!!_0x5e1404['find'](({type:_0x6e0a6e,subType:_0x506e23})=>_0x52b58d['type']==_0x6e0a6e&&_0x52b58d['subType']==_0x506e23))return _0x52b58d['previous']?{}:void 0x0;}),_0x1686f1['descriptionFactory']['registerDescriptionCallback'](_0x29dc4f=>{if('insertion'==_0x29dc4f['type']||'deletion'==_0x29dc4f['type']){const _0x37d6ae=_0x29dc4f['getContainedElement']();if(_0x37d6ae&&_0x37d6ae['is']('element','caption'))return{'type':'insertion'==_0x29dc4f['type']?'addObject':'removeObject','element':_0x37d6ae,'quantity':0x1};}}),_0x1686f1['descriptionFactory']['registerDescriptionCallback'](_0x4fbdc9=>'formatBlock'==_0x4fbdc9['type']&&'convertInlineImageToBlock'==_0x4fbdc9['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4fbdc9['type']&&'convertBlockImageToInline'==_0x4fbdc9['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1686f1['descriptionFactory']['registerDescriptionCallback'](_0x27faaf=>{if('attribute'!=_0x27faaf['type'])return;const {data:_0x3dff51}=_0x27faaf;if(!_0x3dff51||'alt'!=_0x3dff51['key'])return;const _0x367f36=_0x3dff51['newValue'];return _0x367f36?{'type':'format','content':o(_0x16c38d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x367f36+'\x22')}:{'type':'format','content':o(_0x16c38d,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe9badf=this['editor'],_0x20f8e6=_0xe9badf['locale'];_0xe9badf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x226402=>{if('formatBlock'!=_0x226402['type']&&'formatInline'!=_0x226402['type'])return;const {data:_0x42f9db}=_0x226402;if(_0x42f9db){if('imageTextAlternative'==_0x42f9db['commandName']){const _0x5d3988=_0x42f9db['commandParams'][0x0]['newValue'];return _0x5d3988?{'type':'format','content':o(_0x20f8e6,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5d3988+'\x22')}:{'type':'format','content':o(_0x20f8e6,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x42f9db['commandName']){const _0x4ad125=_0x42f9db['commandParams'][0x0]['width'];return _0x4ad125?{'type':'format','content':o(_0x20f8e6,'*Set\x20image\x20width:*\x20%0',_0x4ad125)}:{'type':'format','content':o(_0x20f8e6,'*Reset\x20image\x20width*')};}}});}}class st extends _0x1c996d{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5e1ee9=this['editor']['locale'],_0x141a55=this['editor']['plugins']['get']('TrackChangesEditing');_0x141a55['enableDefaultAttributesIntegration']('replaceImageSource'),_0x141a55['registerBlockAttribute']('src'),_0x141a55['descriptionFactory']['registerDescriptionCallback'](_0x22c0a2=>{if('attribute'!=_0x22c0a2['type'])return;const {data:_0x4232dd}=_0x22c0a2;return _0x4232dd&&'src'==_0x4232dd['key']?_0x4232dd['newValue']&&_0x4232dd['oldValue']?{'type':'format','content':o(_0x5e1ee9,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1517d9=this['editor']['plugins']['get']('TrackChangesEditing');_0x1517d9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1517d9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1517d9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1517d9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4eb108=this['editor'],_0x54e35d=_0x4eb108['locale'];_0x4eb108['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10c287=>{if('formatBlock'!=_0x10c287['type']&&'formatInline'!=_0x10c287['type'])return;const {data:_0x3a0b70}=_0x10c287;if(!_0x3a0b70||'replaceImageSource'!=_0x3a0b70['commandName'])return;return{'type':'format','content':o(_0x54e35d,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x1c996d{['afterInit'](){const _0x264c09=this['editor'];if(!_0x264c09['plugins']['has']('ImageStyleEditing'))return;const _0x5a80e4=_0x264c09['plugins']['get']('TrackChangesEditing'),_0x214243=_0x264c09['plugins']['get']('ImageUtils'),_0x208157={};_0x5a80e4['enableCommand']('imageStyle',(_0x3a41ce,_0x5e74e7)=>{const _0x3529d0=_0x264c09['plugins']['get']('Users')['me'],_0x18c4a5=_0x264c09['commands']['get']('imageStyle');let _0x223ec7=_0x214243['getClosestSelectedImageElement'](_0x264c09['model']['document']['selection']),_0x2fcd1a=_0x264c09['model']['createRangeOn'](_0x223ec7),_0x10668f=_0x18c4a5['value'];if(_0x10668f==_0x5e74e7['value'])return;const _0xbedc0f={'commandName':'imageStyle','commandParams':[_0x5e74e7],'formatGroupId':_0x56ae18()};_0x264c09['model']['change'](()=>{if(_0x5a80e4['getSuggestions']()['filter'](_0x27233e=>_0x27233e['isInContent']&&_0x3529d0==_0x27233e['author']&&('formatBlock'==_0x27233e['type']||'formatInline'==_0x27233e['type'])&&('imageStylePreApply'==_0x27233e['subType']||'imageStylePostApply'==_0x27233e['subType'])&&_0x27233e['getFirstRange']()['isEqual'](_0x2fcd1a))['forEach'](_0x18594f=>_0x5a80e4['discardSuggestion'](_0x18594f['head'])),_0x223ec7=_0x214243['getClosestSelectedImageElement'](_0x264c09['model']['document']['selection']),_0x2fcd1a=_0x264c09['model']['createRangeOn'](_0x223ec7),_0x18c4a5['refresh'](),_0x264c09['commands']['get']('imageTypeInline')['refresh'](),_0x264c09['commands']['get']('imageTypeBlock')['refresh'](),_0x10668f=_0x18c4a5['value'],_0x10668f!=_0x5e74e7['value'])return _0x214243['isInlineImage'](_0x223ec7)&&_0x18c4a5['shouldConvertImageType'](_0x5e74e7['value'],_0x223ec7)?(_0x3a41ce({..._0x5e74e7,'setImageSizes':!0x1}),_0x223ec7=_0x214243['getClosestSelectedImageElement'](_0x264c09['model']['document']['selection']),void _0x5a80e4['markBlockFormat'](_0x223ec7,{..._0xbedc0f,'commandReversedParams':[{'value':_0x10668f||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x214243['isBlockImage'](_0x223ec7)?_0x5a80e4['markBlockFormat'](_0x223ec7,_0xbedc0f,[],'imageStylePostApply'):_0x5a80e4['markInlineFormat'](_0x2fcd1a,_0xbedc0f,'imageStylePostApply'));});});for(const _0xd3d49e of _0x264c09['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x208157[_0xd3d49e['name']]=_0xd3d49e['title']['toLowerCase']();_0x5a80e4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5a80e4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5a80e4['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5a80e4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x972278])=>{_0x214243['setImageNaturalSizeAttributes'](_0x972278['getContainedElement']());}),_0x5a80e4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1ee41b,_0x55dcec)=>{_0x5a80e4['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1ee41b,{'commandName':_0x55dcec['commandName'],'commandParams':_0x55dcec['commandReversedParams']});}),_0x5a80e4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3e69cf,_0x342bac){if(_0x4756e6(_0x3e69cf,_0x342bac))return[_0x3e69cf,_0x342bac];if(_0x4756e6(_0x342bac,_0x3e69cf))return[_0x342bac,_0x3e69cf];return null;});const _0x462d81=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4756e6(_0x2a6a7e,_0x16305a){const _0x35cde5=_0x462d81['findIndex'](({type:_0x4ff0b5,subType:_0x489c3e})=>_0x2a6a7e['type']==_0x4ff0b5&&_0x2a6a7e['subType']==_0x489c3e),_0x1ba49f=_0x462d81['findIndex'](({type:_0x4f59c0,subType:_0x3178cf})=>_0x16305a['type']==_0x4f59c0&&_0x16305a['subType']==_0x3178cf);if(_0x35cde5<0x0||_0x1ba49f<0x0)return!0x1;const _0x5c98dc=_0x2a6a7e['getFirstRange'](),_0x541d8b=_0x16305a['getFirstRange']();if((0x0==_0x35cde5||0x1==_0x35cde5)&&0x2==_0x1ba49f&&_0x5c98dc['isIntersecting'](_0x541d8b))return!0x0;if(0x2==_0x35cde5&&0x3==_0x1ba49f){const _0x28cc9c=_0x5a80e4['_findSuggestions'](_0x5c98dc,'insertion')['filter'](({suggestion:_0x4738ed,meta:_0x38f42c})=>_0x38f42c['isOwn']&&'convertInlineImageToBlock'==_0x4738ed['subType']);if(_0x28cc9c['length']>0x1&&_0x541d8b['end']['isEqual'](_0x5c98dc['start']))return!0x0;if(0x1==_0x28cc9c['length']&&(_0x5c98dc['start']['isEqual'](_0x541d8b['end'])||_0x5c98dc['end']['isEqual'](_0x541d8b['start'])))return!0x0;}if(0x3==_0x35cde5&&0x3==_0x1ba49f&&_0x5c98dc['start']['isBefore'](_0x541d8b['start'])){const _0x1307c9=_0x5c98dc['end']['nodeAfter'],_0x4fa005=_0x541d8b['start']['nodeBefore'];return _0x214243['isBlockImage'](_0x1307c9)&&_0x1307c9===_0x4fa005;}return!0x1;}_0x264c09['model']['document']['registerPostFixer'](()=>{let _0x11e77e=!0x1;const _0x45770e=Array['from'](_0x264c09['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x426be5,data:_0x16e2a2}of _0x45770e){const {group:_0x20719a,type:_0x3a220c,subType:_0x5d6a6e,id:_0x218fad}=_0x5a80e4['_splitMarkerName'](_0x426be5);if('suggestion'==_0x20719a&&_0x5a80e4['hasSuggestion'](_0x218fad)){if('formatBlock'==_0x3a220c&&('imageStylePreApply'==_0x5d6a6e||'imageStylePostApply'==_0x5d6a6e)){const _0x1f7b6b=_0x5a80e4['getSuggestion'](_0x218fad);if(_0x16e2a2['newRange']){const _0x4119b9=_0x1f7b6b['getFirstRange']()['getContainedElement']();if(_0x214243['isBlockImage'](_0x4119b9))continue;_0x5a80e4['discardSuggestion'](_0x1f7b6b),_0x11e77e=!0x0;}}if('insertion'==_0x3a220c&&'imageCaption'==_0x5d6a6e&&!_0x16e2a2['newRange']){const _0x3737d4=_0x5a80e4['getSuggestion'](_0x218fad);_0x3737d4['next']&&_0x3737d4['next']['isInContent']&&(_0x5a80e4['discardSuggestion'](_0x3737d4['next']),_0x11e77e=!0x0);}}}return _0x11e77e;}),this['_registerLegacyDescription'](_0x208157);}['_registerLegacyDescription'](_0xe07552){const _0x3fe3af=this['editor'],_0x332614=_0x3fe3af['locale'];_0x3fe3af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52a87f=>{if('formatBlock'!=_0x52a87f['type']&&'formatInline'!=_0x52a87f['type'])return;const {data:_0x329c30}=_0x52a87f;if(!_0x329c30||'imageStyle'!=_0x329c30['commandName'])return;const _0x119de0=_0x329c30['commandParams'][0x0]['value'];return _0x5ba6ed('side'===_0x119de0?o(_0x332614,'FORMAT_SIDE_IMAGE'):_0xe07552[_0x119de0]||_0x119de0);function _0x5ba6ed(_0x354d3a){return{'type':'format','content':o(_0x332614,'*Format:*\x20%0',_0x354d3a)};}});}}class ot extends _0x1c996d{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x41e794){super(_0x41e794),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1d3a92=this['editor'],_0x4a81ea=_0x1d3a92['commands']['get']('importWord'),_0x2156aa=_0x1d3a92['commands']['get']('trackChanges');_0x4a81ea&&(_0x4a81ea['on']('execute',(_0xf7595b,[,_0x376d2d])=>{this['_trackChangesValueDuringImport']=_0x2156aa['value'],_0x376d2d['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4a81ea,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4a81ea,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2156aa['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1d3a92['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3e5f3e,_0x55c923){const {suggestions:_0x3ee7b5}=_0x55c923,_0x2a88c8=this['editor']['commands']['get']('trackChanges'),_0x4908b5=_0x2a88c8['value'];this['_trackChangesValueDuringImport']!==_0x4908b5&&(_0x2a88c8['execute'](),this['_trackChangesExecuted']=!0x0),_0x3ee7b5&&_0x3ee7b5['forEach'](({id:_0x5487bb,type:_0x180d6f,author:_0x97c635,created_at:_0x5104c1})=>{const _0x18a50f={'id':_0x5487bb,'type':_0x180d6f,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x97c635,'createdAt':_0x5104c1?new Date(_0x5104c1):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x18a50f);});}}class rt extends _0x1c996d{['afterInit'](){const _0x4c111e=this['editor'],_0x5ad4a3=_0x4c111e['plugins']['get']('TrackChangesEditing');if(_0x4c111e['plugins']['has']('IndentEditing')&&(_0x5ad4a3['enableCommand']('indent'),_0x5ad4a3['enableCommand']('outdent')),_0x4c111e['plugins']['has']('IndentBlock')){for(const _0x32da12 of['indentBlock','outdentBlock'])_0x5ad4a3['enableDefaultAttributesIntegration'](_0x32da12);}const _0xf17696=_0x4c111e['locale'];_0x5ad4a3['registerBlockAttribute']('blockIndent'),_0x5ad4a3['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0xf17696,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3fb2ea=this['editor'],_0x49961c=_0x3fb2ea['locale'],_0x286ae4=_0x3fb2ea['plugins']['get']('TrackChangesEditing');_0x286ae4['descriptionFactory']['registerDescriptionCallback'](_0x15efcc=>{if('formatBlock'!=_0x15efcc['type'])return;const {data:_0x57c9be}=_0x15efcc;if(!_0x57c9be)return;if('indentBlock'!=_0x57c9be['commandName']&&'outdentBlock'!=_0x57c9be['commandName'])return;const _0x4efbe5=_0x15efcc['getItems']()[0x0],_0x4ef0f8=_0x286ae4['descriptionFactory']['getItemLabel'](_0x4efbe5);return'indentBlock'==_0x57c9be['commandName']?{'type':'format','content':o(_0x49961c,'*Indent:*\x20%0',_0x4ef0f8)}:'outdentBlock'==_0x57c9be['commandName']?{'type':'format','content':o(_0x49961c,'*Outdent:*\x20%0',_0x4ef0f8)}:void 0x0;});}}class at extends _0x1c996d{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x1c996d{['afterInit'](){const _0x1dc216=this['editor'];if(!_0x1dc216['plugins']['has']('LinkEditing'))return;const _0x57519d=_0x1dc216['plugins']['get']('TrackChangesEditing'),_0x6e9f22=_0x1dc216['commands']['get']('link');_0x57519d['enableDefaultAttributesIntegration']('link'),_0x57519d['enableDefaultAttributesIntegration']('unlink'),_0x57519d['registerInlineAttribute']('linkHref');for(const _0x3340ba of _0x6e9f22['manualDecorators'])_0x57519d['registerInlineAttribute'](_0x3340ba['id']),_0x57519d['descriptionFactory']['registerAttributeLabel'](_0x3340ba['id'],'link\x20('+_0x3340ba['label']['toLowerCase']()+')');_0x57519d['descriptionFactory']['registerDescriptionCallback'](_0x265d7b=>{if('attribute'!=_0x265d7b['type'])return;const {data:_0x208a77}=_0x265d7b;if(!_0x208a77||'linkHref'!=_0x208a77['key'])return;const _0x1d7184=_0x208a77['newValue'],_0xd6a320=_0x1dc216['locale'];return{'type':'format','content':null==_0x1d7184?o(_0xd6a320,'*Remove\x20link*'):o(_0xd6a320,'*Set\x20link:*\x20%0','\x22'+_0x1d7184+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2deaf2=this['editor'],_0x47ad10=_0x2deaf2['locale'];_0x2deaf2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c6006=>{if('formatInline'!=_0x3c6006['type'])return;const {data:_0x1786d7}=_0x3c6006;if(_0x1786d7){if('link'==_0x1786d7['commandName']){const _0xee13e=_0x1786d7['commandParams'][0x0];return{'type':'format','content':o(_0x47ad10,'*Set\x20link:*\x20%0','\x22'+_0xee13e+'\x22')};}return'unlink'==_0x1786d7['commandName']?{'type':'format','content':o(_0x47ad10,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x1c996d{['afterInit'](){const _0x46c870=this['editor'],_0x3100b9=_0x46c870['locale'];if(!_0x46c870['plugins']['has']('LegacyListEditing'))return;const _0x6f5dd5=_0x46c870['plugins']['get']('TrackChangesEditing'),_0x17d2fa=_0x46c870['plugins']['has']('LegacyTodoListEditing');function _0x17489a(_0x4699f8){return()=>{const _0x3855be=_0x46c870['model']['document']['selection'],_0x13497b=_0x46c870['commands']['get'](_0x4699f8);if(_0x13497b['value'])return void _0x46c870['execute']('paragraph',{});const _0x336c4d=_0x4699f8['slice'](0x0,-0x4),_0x536123=function(_0x47e1f6,_0x541b7e,_0x257fee){let _0x11c743=Array['from'](_0x47e1f6)['filter'](_0x3d3be4=>function(_0x113f28,_0x4d69a5){return _0x4d69a5['checkChild'](_0x113f28['parent'],'listItem')&&!_0x4d69a5['isObject'](_0x113f28);}(_0x3d3be4,_0x257fee));_0x11c743=_0x11c743['filter'](_0xb6e4c6=>!_0xb6e4c6['is']('element','listItem')||_0xb6e4c6['getAttribute']('listType')!=_0x541b7e);const _0x1e1e67=new Set();for(const _0x420303 of _0x11c743)_0x420303['is']('element','listItem')?_0x1e1e67['add'](me(_0x420303)):_0x1e1e67['add'](_0x420303);return Array['from'](_0x1e1e67);}(_0x3855be['getSelectedBlocks'](),_0x336c4d,_0x46c870['model']['schema']);_0x46c870['model']['change'](()=>{for(const _0x3824db of _0x536123)_0x6f5dd5['markBlockFormat'](_0x3824db,{'commandName':_0x4699f8,'commandParams':[{'forceValue':!_0x13497b['value']}],'formatGroupId':'blockName'},fe(_0x3824db));});};}function _0x1cd448(_0x2e3d9c){return()=>{const _0x5cc8a9=function(_0x30c0c4){let _0x2221da=Array['from'](_0x30c0c4);const _0x3a769e=_0x2221da['findIndex'](_0x401fb0=>'listItem'!=_0x401fb0['name']);return _0x3a769e>-0x1&&(_0x2221da=_0x2221da['slice'](0x0,_0x3a769e)),_0x2221da;}(_0x46c870['model']['document']['selection']['getSelectedBlocks']()),_0x431645=_0x46c870['model']['createRange'](_0x46c870['model']['createPositionAt'](_0x5cc8a9[0x0],'before'),_0x46c870['model']['createPositionAt'](_0x5cc8a9[_0x5cc8a9['length']-0x1],'end'));_0x46c870['model']['change'](()=>{_0x6f5dd5['markBlockFormat'](_0x431645,{'commandName':_0x2e3d9c,'commandParams':[],'formatGroupId':'listIndent'},function(_0x31c017){const _0x34b065=new Set();for(const _0x53cb90 of _0x31c017){let _0x131fa1=_0x53cb90['nextSibling'];for(;_0x131fa1&&_0x131fa1['getAttribute']('listIndent')>_0x53cb90['getAttribute']('listIndent');)_0x34b065['add'](_0x131fa1),_0x131fa1=_0x131fa1['nextSibling'];}return Array['from'](_0x34b065);}(_0x5cc8a9));});};}_0x6f5dd5['enableCommand']('numberedList',_0x17489a('numberedList')),_0x6f5dd5['enableCommand']('bulletedList',_0x17489a('bulletedList')),_0x17d2fa&&_0x6f5dd5['enableCommand']('todoList',_0x17489a('todoList')),_0x6f5dd5['enableCommand']('indentList',_0x1cd448('indentList')),_0x6f5dd5['enableCommand']('outdentList',_0x1cd448('outdentList')),_0x17d2fa&&_0x6f5dd5['enableCommand']('checkTodoList',()=>{const _0x19034d=_0x46c870['commands']['get']('checkTodoList'),_0x4ea937=Array['from'](_0x19034d['_selectedElements']);_0x4ea937['filter'](_0x5e1ae8=>_0x5e1ae8['getAttribute']('todoListChecked')!=_0x19034d['value']),_0x46c870['model']['change'](()=>{for(const _0x3fbdc9 of _0x4ea937)_0x6f5dd5['markBlockFormat'](_0x3fbdc9,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x19034d['value']}]});});}),_0x6f5dd5['descriptionFactory']['registerElementLabel']('listItem',_0x1b9c07=>o(_0x3100b9,'ELEMENT_LIST_ITEM',_0x1b9c07)),_0x6f5dd5['descriptionFactory']['registerDescriptionCallback'](_0x3d59e4=>{if('formatBlock'!=_0x3d59e4['type']&&'formatInline'!=_0x3d59e4['type'])return;const {data:_0x40c1ca}=_0x3d59e4;if(_0x40c1ca){if('numberedList'==_0x40c1ca['commandName']||'bulletedList'==_0x40c1ca['commandName']||'todoList'==_0x40c1ca['commandName'])switch(_0x40c1ca['commandName']['replace']('List','')){case'bulleted':return _0x120470(o(_0x3100b9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x120470(o(_0x3100b9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x120470(o(_0x3100b9,'ELEMENT_TODO_LIST'));}if('indentList'==_0x40c1ca['commandName'])return{'type':'format','content':o(_0x3100b9,'*Indent:*\x20%0',o(_0x3100b9,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x40c1ca['commandName'])return{'type':'format','content':o(_0x3100b9,'*Outdent:*\x20%0',o(_0x3100b9,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x40c1ca['commandName'])return _0x40c1ca['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3100b9,'*Check\x20item*')}:{'type':'format','content':o(_0x3100b9,'*Uncheck\x20item*')};}function _0x120470(_0x147859){return{'type':'format','content':o(_0x3100b9,'*Change\x20to:*\x20%0',_0x147859)};}});}}function me(_0x2fe427){const _0x4e3852=_0x2fe427['getAttribute']('listIndent');if(0x0==_0x4e3852)return _0x2fe427;let _0x31079a=_0x2fe427;for(;_0x2fe427['previousSibling']&&_0x2fe427['previousSibling']['is']('element','listItem');){const _0x22e5bc=_0x2fe427['previousSibling']['getAttribute']('listIndent');if(_0x22e5bc==_0x4e3852)_0x31079a=_0x2fe427['previousSibling'];else{if(_0x22e5bc<_0x4e3852)break;}_0x2fe427=_0x2fe427['previousSibling'];}return _0x31079a;}function fe(_0x3658c7){const _0xbeeb20=[];if(_0x3658c7['is']('element','listItem')&&_0x3658c7['getAttribute']('listIndent')>0x0){let _0x57cf36=_0x3658c7['nextSibling'];for(;_0x57cf36&&'listItem'==_0x57cf36['name']&&_0x57cf36['getAttribute']('listIndent')==_0x3658c7['getAttribute']('listIndent');)_0xbeeb20['push'](_0x57cf36),_0x57cf36=_0x57cf36['nextSibling'];}return _0xbeeb20;}class K extends _0x1c996d{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4c6c58=this['editor']['config']['get']('list.properties'),_0x42f907=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c6c58['styles']&&_0x42f907['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4c6c58['reversed']&&_0x42f907['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4c6c58['startIndex']&&_0x42f907['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x42f907['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x44e634,_0x40cf91={}){const _0x27e399=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5737df=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x27e399['markMultiRangeBlockFormat'](_0x5737df,{'commandName':'listStyle','commandParams':[{'type':_0x40cf91['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x248d7d,_0x390d71={}){const _0x3cfacd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x390ae0=this['_getSuggestionBlocks'](_0x29dcf8=>_0x29dcf8['is']('element','listItem')&&'numbered'===_0x29dcf8['getAttribute']('listType'));if(_0x390ae0['length']<0x1)return;const _0x5f365a=_0x390ae0['map'](_0x3d7adb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3d7adb,'before'),this['editor']['model']['createPositionAt'](_0x3d7adb,0x0)));this['editor']['model']['change'](()=>{_0x3cfacd['markMultiRangeBlockFormat'](_0x5f365a,{'commandName':'listReversed','commandParams':[{'reversed':_0x390d71['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1b98a4,_0x4c8612={}){const _0x30f7c8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x448e15=this['_getSuggestionBlocks'](_0x5af307=>_0x5af307['is']('element','listItem')&&'numbered'===_0x5af307['getAttribute']('listType'));if(_0x448e15['length']<0x1)return;const _0x460355=_0x448e15['map'](_0x3eb111=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3eb111,'before'),this['editor']['model']['createPositionAt'](_0x3eb111,0x0)));this['editor']['model']['change'](()=>{_0x30f7c8['markMultiRangeBlockFormat'](_0x460355,{'commandName':'listStart','commandParams':[{'startIndex':_0x4c8612['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x36d015){if('formatBlock'!=_0x36d015['type']&&'formatInline'!=_0x36d015['type'])return;const _0x2b6734=this['editor']['locale'],{data:_0x46a32c}=_0x36d015;if(!_0x46a32c)return;let _0x5a0a00,_0x2e66d9;switch(_0x46a32c['commandName']){case'listStyle':_0x5a0a00='*Change\x20to:*\x20%0',_0x2e66d9={'type':'format','content':o(_0x2b6734,_0x5a0a00,o(_0x2b6734,this['_getTranslationKeyForListStyle'](_0x46a32c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5a0a00=_0x46a32c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2e66d9={'type':'format','content':o(_0x2b6734,_0x5a0a00)};break;case'listStart':_0x5a0a00='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2e66d9={'type':'format','content':o(_0x2b6734,_0x5a0a00,_0x46a32c['commandParams'][0x0]['startIndex'])};}return _0x2e66d9;}['_getSuggestionBlocksForListStyle'](){const _0x13a7ab=this['editor']['plugins']['get']('LegacyListUtils');let _0x3f0b1=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3f0b1[0x0]?.['is']('element','listItem')&&_0x3f0b1['unshift'](..._0x13a7ab['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3f0b1[_0x3f0b1['length']-0x1]?.['is']('element','listItem')&&_0x3f0b1['push'](..._0x13a7ab['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3f0b1=[...new Set(_0x3f0b1)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3f0b1=_0x3f0b1['filter'](_0xd331cf=>_0xd331cf['is']('element','listItem'))),_0x3f0b1;}['_getSuggestionBlocks'](_0x51d047){const _0x4079d2=this['editor']['plugins']['get']('LegacyListUtils');let _0x261d50=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x51d047)['map'](_0x402fdb=>{const _0x396893=this['editor']['model']['createPositionAt'](_0x402fdb,0x0);return[..._0x4079d2['getSiblingNodes'](_0x396893,'backward'),..._0x4079d2['getSiblingNodes'](_0x396893,'forward')];})['flat']();return _0x261d50=[...new Set(_0x261d50)],_0x261d50;}['_getTranslationKeyForListStyle'](_0x4e08da){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4e08da)||'default')['toUpperCase']()+'_LIST_'+_0x4e08da['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x1c996d{['afterInit'](){const _0x180350=this['editor'];if(!_0x180350['plugins']['has']('MediaEmbedEditing'))return;const _0x1d9c32=_0x180350['plugins']['get']('TrackChangesEditing'),_0x179dc3=_0x180350['locale'];_0x1d9c32['enableCommand']('mediaEmbed'),_0x1d9c32['descriptionFactory']['registerElementLabel']('media',_0x41bdf1=>o(_0x179dc3,'ELEMENT_MEDIA',_0x41bdf1)),_0x180350['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4608da,{writer:_0x1a2829,options:_0x353d42})=>{if(_0x353d42['showSuggestionHighlights'])return _0x1a2829['createEmptyElement']('div');},'converterPriority':'high'}),_0x180350['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1ad1b7,_0x13887a,_0x8f90fc)=>{_0x8f90fc['options']['showSuggestionHighlights']&&_0x1ad1b7['stop']();},{'priority':'high'});}}class gt extends _0x1c996d{['afterInit'](){const _0x4e211e=this['editor'];_0x4e211e['plugins']['has']('MentionEditing')&&_0x4e211e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x1c996d{['afterInit'](){const _0x560635=this['editor'],_0x1d994c=_0x560635['plugins']['get']('TrackChangesEditing');_0x560635['plugins']['has']('MultiLevelList')&&(_0x1d994c['enableDefaultAttributesIntegration']('multiLevelList'),_0x1d994c['registerBlockAttribute']('listMarkerStyle'),_0x1d994c['descriptionFactory']['registerDescriptionCallback'](_0x1c9c74=>this['handleDescriptions'](_0x1c9c74)));}['handleDescriptions'](_0x1bfcff){const _0x5acb18=this['editor']['locale'],{data:_0x5bc979}=_0x1bfcff,_0x2576e1={'type':'format','content':''};if(_0x5bc979&&'listMarkerStyle'==_0x5bc979['key']){if(!_0x5bc979['oldValue'])return{'type':'format','content':o(_0x5acb18,'*Set\x20format:*\x20%0',o(_0x5acb18,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5bc979['newValue']+')'};if(!_0x5bc979['newValue']){let _0x340168=_0x1bfcff['head'];for(;_0x340168;){if(_0x340168['data']&&'listType'==_0x340168['data']['key']&&_0x340168['data']['newValue'])return _0x2576e1;_0x340168=_0x340168['next'];}return{'type':'format','content':o(_0x5acb18,'*Remove\x20format:*\x20%0',o(_0x5acb18,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5bc979['oldValue']+')'};}}}}class mt extends _0x1c996d{['afterInit'](){const _0x5603c7=this['editor'];if(!_0x5603c7['plugins']['has']('PageBreakEditing'))return;_0x5603c7['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x50f355=_0x5603c7['plugins']['get']('TrackChangesEditing'),_0x45198c=_0x5603c7['locale'];_0x50f355['descriptionFactory']['registerElementLabel']('pageBreak',_0x13acee=>o(_0x45198c,'ELEMENT_PAGE_BREAK',_0x13acee));}}class dt extends _0x1c996d{['afterInit'](){const _0x287c9d=this['editor'];if(!_0x287c9d['plugins']['has']('Paragraph'))return;const _0x2880d3=_0x287c9d['locale'],_0x4254ee=_0x287c9d['plugins']['get']('TrackChangesEditing');_0x4254ee['descriptionFactory']['registerElementLabel']('paragraph',_0x13cc4c=>o(_0x2880d3,'ELEMENT_PARAGRAPH',_0x13cc4c)),_0x4254ee['enableDefaultAttributesIntegration']('paragraph'),_0x4254ee['enableCommand']('insertParagraph'),_0x287c9d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x287c9d),{'priority':'highest'}),_0x287c9d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xbf18ed,_0xf7d391,_0xefdbef)=>{_0xefdbef['options']['showSuggestionHighlights']&&nr(_0x287c9d,{'showActiveMarker':!0x1})(_0xbf18ed,_0xf7d391,_0xefdbef);},{'priority':'highest'});const _0x7d2e12=_0x4254ee['descriptionFactory'];_0x7d2e12['registerDescriptionCallback'](_0x55671b=>{if('insertion'!==_0x55671b['type'])return;const {start:_0x3f8752,end:_0xf066a7}=_0x55671b['getFirstRange']();if(!_0x3f8752['isTouching'](_0xf066a7)||!_0x3f8752['nodeAfter'])return;const _0x715d80=_0x287c9d['model']['schema'],_0x9350e4=_0x3f8752['nodeAfter'];return _0x715d80['isBlock'](_0x9350e4)&&!_0x715d80['isLimit'](_0x9350e4)&&_0x715d80['checkChild'](_0x9350e4,'$text')?{'type':'insertion','content':o(_0x2880d3,'*Insert:*\x20%0',_0x7d2e12['getItemLabel'](_0x9350e4,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf8612f=this['editor'],_0x32a8a6=_0xf8612f['locale'];_0xf8612f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48e108=>{if('formatBlock'!=_0x48e108['type'])return;const {data:_0x4c3e74}=_0x48e108;return _0x4c3e74&&'paragraph'==_0x4c3e74['commandName']?{'type':'format','content':o(_0x32a8a6,'*Change\x20to:*\x20%0',o(_0x32a8a6,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5a7514,{showActiveMarker:_0x24bc2d=!0x0}={}){return(_0x270841,_0x2aaf4a,_0x5dffb3)=>{const _0x5b745e=_0x5a7514['plugins']['get']('TrackChangesEditing'),_0x1a49f9=_0x2aaf4a['markerRange']['start'],_0x1b910b=_0x2aaf4a['markerRange']['end'],_0x2a5a44=_0x5a7514['model']['schema'];if(!_0x1a49f9['isTouching'](_0x1b910b)||!_0x1a49f9['nodeAfter'])return;const _0x222fe5=_0x1a49f9['nodeAfter'];if(_0x2a5a44['isBlock'](_0x222fe5)&&!_0x2a5a44['isLimit'](_0x222fe5)&&_0x2a5a44['checkChild'](_0x222fe5,'$text')){if(!_0x5dffb3['consumable']['consume'](_0x2aaf4a['markerRange'],_0x270841['name']))return;const _0x5291d1=_0x5dffb3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x309862=_0x5dffb3['mapper']['toViewPosition'](_0x1b910b);_0x24bc2d&&_0x5b745e['activeMarkers']['includes'](_0x2aaf4a['markerName'])&&_0x5dffb3['writer']['addClass']('ck-suggestion-marker--active',_0x5291d1),_0x5dffb3['writer']['insert'](_0x309862,_0x5291d1),_0x5dffb3['mapper']['bindElementToMarker'](_0x5291d1,_0x2aaf4a['markerName']);}};}class pt extends _0x1c996d{['afterInit'](){const _0x1ef526=this['editor'];if(!_0x1ef526['plugins']['has']('RemoveFormatEditing'))return;_0x1ef526['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13e476=this['editor'];_0x13e476['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x384581=>{if('formatBlock'!=_0x384581['type']&&'formatInline'!=_0x384581['type'])return;const {data:_0x1ba0c8}=_0x384581;return _0x1ba0c8&&'removeFormat'==_0x1ba0c8['commandName']?{'type':'format','content':o(_0x13e476['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x1c996d{['afterInit'](){const _0x5009cd=this['editor'];if(!_0x5009cd['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1d7865=_0x5009cd['plugins']['get']('TrackChangesEditing');_0x1d7865['enableCommand']('goToPreviousRestrictedEditingException'),_0x1d7865['enableCommand']('goToNextRestrictedEditingException');const _0x3452bc=_0x5009cd['plugins']['get']('RestrictedEditingModeEditing');_0x3452bc['enableCommand']('trackChanges'),_0x3452bc['enableCommand']('acceptSuggestion'),_0x3452bc['enableCommand']('discardSuggestion'),_0x3452bc['enableCommand']('acceptAllSuggestions'),_0x3452bc['enableCommand']('discardAllSuggestions'),_0x3452bc['enableCommand']('acceptSelectedSuggestions'),_0x3452bc['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x1c996d{static get['requires'](){return[_0x4974f0];}['init'](){const _0x3efb10=this['editor'],_0x36ac7b=_0x3efb10['plugins']['get']('TrackChangesEditing');_0x36ac7b['enableCommand']('shiftEnter'),_0x3efb10['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x3efb10),{'priority':'high'}),_0x3efb10['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x3efb10),{'priority':'high'}),_0x3efb10['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x393589,_0x142059,_0x259cd7)=>{_0x259cd7['options']['showSuggestionHighlights']&&de(_0x3efb10,{'showActiveMarker':!0x1})(_0x393589,_0x142059,_0x259cd7);}),_0x36ac7b['descriptionFactory']['registerElementLabel']('softBreak',_0x2b07fb=>o(_0x3efb10['locale'],'ELEMENT_LINE_BREAK',_0x2b07fb));}}function de(_0xca127a,{showActiveMarker:_0x3f7c32=!0x0}={}){return(_0x13b1d3,_0x16768a,_0x581609)=>{const _0x12c9b8=_0xca127a['plugins']['get']('TrackChangesEditing');if(!_0x581609['consumable']['test'](_0x16768a['markerRange'],_0x13b1d3['name']))return;const _0x18e410=_0xca127a['model'];for(const _0x12c2d5 of _0x16768a['markerRange']['getItems']()){if(!_0x12c2d5['is']('element','softBreak'))continue;const _0x18112b='deletion'==_0x16768a['markerName']['split'](':')[0x1]?'merge':'split',_0x209eaf=_0x581609['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x18112b}),_0x3eb21e=_0x581609['mapper']['toViewPosition'](_0x18e410['createPositionBefore'](_0x12c2d5));_0x3f7c32&&_0x12c9b8['activeMarkers']['includes'](_0x16768a['markerName'])&&_0x581609['writer']['addClass']('ck-suggestion-marker--active',_0x209eaf),_0x581609['writer']['insert'](_0x3eb21e,_0x209eaf),_0x581609['mapper']['bindElementToMarker'](_0x209eaf,_0x16768a['markerName']);}};}class wt extends _0x1c996d{['afterInit'](){const _0x243d62=this['editor'],_0x4de476=_0x243d62['model'],_0x2c92a2=_0x243d62['locale'];if(!_0x243d62['plugins']['has']('StandardEditingModeEditing'))return;const _0x4f9734=_0x243d62['plugins']['get']('TrackChangesEditing'),_0x2f0748='restrictedEditingException',_0x1aa111=_0x243d62['commands']['get'](_0x2f0748);_0x4f9734['enableCommand'](_0x2f0748,(_0x419a29,_0x360562={})=>{const _0x16c874=_0x4de476['document']['selection'];if(_0x16c874['isCollapsed'])return void _0x419a29(_0x360562);const _0x45da01=void 0x0!==_0x360562['forceValue']?_0x360562['forceValue']:!_0x1aa111['value'];_0x4de476['change'](()=>{const _0x554eda=Array['from'](_0x16c874['getRanges']());for(const _0x25dcd2 of _0x554eda){const _0x578513=_0x45da01?[_0x25dcd2]:io(_0x2f0748,_0x25dcd2,_0x4de476);for(const _0x2a15b9 of _0x578513)_0x4f9734['markInlineFormat'](_0x2a15b9,{'commandName':_0x2f0748,'commandParams':[{'forceValue':_0x45da01}]});}});}),_0x4f9734['descriptionFactory']['registerDescriptionCallback'](_0x2fdcc8=>{if('formatBlock'!=_0x2fdcc8['type']&&'formatInline'!=_0x2fdcc8['type'])return;const {data:_0x495c82}=_0x2fdcc8;return _0x495c82&&_0x495c82['commandName']==_0x2f0748?_0x495c82['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2c92a2,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2c92a2,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x1c996d{['afterInit'](){const _0x2e1e89=this['editor'];if(!_0x2e1e89['plugins']['has']('Style')||!_0x2e1e89['plugins']['has']('DataSchema'))return;const _0x459138=_0x2e1e89['plugins']['get']('TrackChangesEditing'),_0x24dcc4=_0x2e1e89['locale'],_0xa40a32=_0x2e1e89['config']['get']('style')||{},_0x521cec=_0x2e1e89['plugins']['get']('GeneralHtmlSupport'),_0x48374f=_0x2e1e89['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2e1e89['plugins']['get']('DataSchema'),_0xa40a32['definitions']);_0x459138['enableDefaultAttributesIntegration']('style');const _0x4a84a4=new Set();for(const _0x3f792e of _0x48374f['block']){const _0x56d2d0=_0x521cec['getGhsAttributeNameForElement'](_0x3f792e['element']);_0x4a84a4['add'](_0x56d2d0);}const _0x251699=new Set();for(const _0x7c810b of _0x48374f['inline']){const _0x2d99e9=_0x521cec['getGhsAttributeNameForElement'](_0x7c810b['element']);_0x251699['add'](_0x2d99e9);for(const _0x11aaab of _0x7c810b['ghsAttributes'])_0x251699['add'](_0x11aaab);}for(const _0x5e4632 of _0x4a84a4)_0x459138['registerBlockAttribute'](_0x5e4632),_0x459138['descriptionFactory']['registerAttributeLabel'](_0x5e4632,o(_0x24dcc4,'FORMAT_STYLE'));for(const _0x35a828 of _0x251699)_0x459138['registerInlineAttribute'](_0x35a828),_0x459138['descriptionFactory']['registerAttributeLabel'](_0x35a828,o(_0x24dcc4,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16b64d=this['editor'],_0x1d6b2e=_0x16b64d['locale'];_0x16b64d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35a357=>{if('formatBlock'!=_0x35a357['type']&&'formatInline'!=_0x35a357['type'])return;const {data:_0x238d6a}=_0x35a357;return _0x238d6a&&'style'===_0x238d6a['commandName']?_0x238d6a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1d6b2e,'*Set\x20format:*\x20%0',_0x238d6a['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x1d6b2e,'*Remove\x20format:*\x20%0',_0x238d6a['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x1c996d{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x215c3b){super(_0x215c3b),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3b6561=this['editor'],_0x45be4e=_0x3b6561['model']['document']['selection'];if(!_0x3b6561['plugins']['has']('TableEditing'))return;const _0x2a3f99=_0x3b6561['locale'],_0x188934=_0x3b6561['plugins']['get']('TrackChangesEditing'),_0x26cec4=_0x3b6561['plugins']['get']('TableUtils');_0x188934['descriptionFactory']['registerElementLabel']('table',_0x699f6a=>o(_0x2a3f99,'ELEMENT_TABLE',_0x699f6a)),this['_setupColumnsRowsFixing'](),_0x188934['enableCommand']('insertTable'),_0x188934['enableCommand']('selectTableRow'),_0x188934['enableCommand']('selectTableColumn');for(const _0x107b0d of['insertTableRowAbove','insertTableRowBelow']){const _0x4ff2af=_0x3b6561['commands']['get'](_0x107b0d);_0x188934['enableCommand'](_0x107b0d,_0x36ee46=>{_0x3b6561['model']['change'](_0x33d6f2=>{_0x36ee46();const _0x48eec7='above'===_0x4ff2af['order'],_0x479599=_0x26cec4['getSelectionAffectedTableCells'](_0x45be4e),_0x22e4dc=_0x26cec4['getRowIndexes'](_0x479599),_0xb64638=_0x48eec7?_0x22e4dc['first']-0x1:_0x22e4dc['last']+0x1,_0x3a9420=_0x479599[0x0]['findAncestor']('table'),_0x48325a=_0x26cec4['createTableWalker'](_0x3a9420,{'startRow':_0xb64638,'endRow':_0xb64638}),_0x316383=Array['from'](_0x48325a)['map'](_0x377a77=>_0x33d6f2['createRangeOn'](_0x377a77['cell']));_0x188934['markMultiRangeInsertion'](_0x316383,'tableRow');});});}for(const _0x2d1657 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1ad8a4=_0x3b6561['commands']['get'](_0x2d1657);_0x188934['enableCommand'](_0x2d1657,_0x3e5fcd=>{_0x3b6561['model']['change'](_0x1eba22=>{_0x3e5fcd();const _0xdd7fb9='left'===_0x1ad8a4['order'],_0x535100=_0x26cec4['getSelectionAffectedTableCells'](_0x45be4e),_0x1bd71f=_0x26cec4['getColumnIndexes'](_0x535100),_0x40e9e6=_0xdd7fb9?_0x1bd71f['first']-0x1:_0x1bd71f['last']+0x1,_0x47fcba=_0x535100[0x0]['findAncestor']('table'),_0x4bbb62=_0x26cec4['createTableWalker'](_0x47fcba,{'startRow':0x0,'column':_0x40e9e6,'includeAllSlots':!0x1}),_0x1e7b86=Array['from'](_0x4bbb62)['map'](_0x55f9b5=>_0x1eba22['createRangeOn'](_0x55f9b5['cell']));_0x188934['markMultiRangeInsertion'](_0x1e7b86,'tableColumn');});});}for(const _0x496e0d of['removeTableRow','removeTableColumn']){const _0x2dbc92=_0x496e0d['substr'](0xb),_0x34eb2e=_0x2dbc92['toLowerCase'](),_0x1e170a=_0x34eb2e['substr'](0x0,0x3)+'span',_0x363bfa='table'+_0x2dbc92,_0x3341e6='min'+_0x2dbc92,_0x399fae='max'+_0x2dbc92;_0x188934['enableCommand'](_0x496e0d,()=>{_0x3b6561['model']['change'](_0x787f01=>{const _0x1e72d6=_0x26cec4['getSelectionAffectedTableCells'](_0x45be4e),_0x294148=_0x1e72d6[0x0]['findAncestor']('table');let _0x4cd1d4;if('removeTableRow'==_0x496e0d){const _0x513ffa=_0x26cec4['getRowIndexes'](_0x1e72d6);_0x4cd1d4={'startRow':_0x513ffa['first'],'endRow':_0x513ffa['last'],'includeAllSlots':!0x0};}else{const _0x4772a0=_0x26cec4['getColumnIndexes'](_0x1e72d6);_0x4cd1d4={'startColumn':_0x4772a0['first'],'endColumn':_0x4772a0['last'],'includeAllSlots':!0x0};}const _0x599a8e=_0x26cec4['createTableWalker'](_0x294148,_0x4cd1d4),_0x2062eb=Array['from'](_0x599a8e)['map'](({cell:_0x22b3ac})=>_0x22b3ac),_0x35af72=Ee(_0x2062eb['filter'](_0x4e99d5=>_0x4e99d5['hasAttribute'](_0x1e170a))),_0x46114c=Ee(_0x2062eb['filter'](_0x573222=>!_0x573222['hasAttribute'](_0x1e170a)))['map'](_0x24c419=>_0x787f01['createRangeOn'](_0x24c419)),_0xf49ae0=_0x188934['markMultiRangeDeletion'](_0x46114c,_0x363bfa);if(_0xf49ae0&&('tableRow'==_0xf49ae0['subType']||'tableColumn'==_0xf49ae0['subType'])){const _0x5060b9=this['_getSuggestionCoords'](_0xf49ae0);for(const _0xcb420f of _0x35af72){const _0x159669=_0x787f01['createRangeOn'](_0xcb420f),_0x58a81a=_0x26cec4['getCellLocation'](_0xcb420f),_0x2c3979=_0xcb420f['getAttribute'](_0x1e170a)-0x1,_0x38f1fa=_0x5060b9[_0x3341e6],_0x551d39=_0x5060b9[_0x399fae];_0x38f1fa<=_0x58a81a[_0x34eb2e]&&_0x58a81a[_0x34eb2e]+_0x2c3979<=_0x551d39&&_0xf49ae0['addRange'](_0x159669);}}});});}function _0xdbc503(_0x20b81f){const _0x26a727=Array['from'](_0x45be4e['getRanges']())['map'](_0x50aec9=>_0x14f38f['fromRange'](_0x50aec9));_0x3b6561['model']['change'](_0x445243=>{const _0x1e78e0=_0x445243['batch'];_0x20b81f=_0x20b81f['filter'](_0x3d1e39=>'$graveyard'!=_0x3d1e39['root']['rootName']),_0x445243['setSelection'](_0x20b81f),_0x3b6561['commands']['get']('removeTableRow')['refresh'](),_0x3b6561['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3b6561['model']['enqueueChange'](()=>{_0x3b6561['model']['enqueueChange'](_0x1e78e0,_0xe3500=>{const _0x3e839b=_0x26a727['filter'](_0x5f1c21=>'$graveyard'!=_0x5f1c21['root']['rootName']);_0x3e839b['length']>0x0&&_0xe3500['setSelection'](_0x3e839b);for(const _0x55feeb of _0x26a727)_0x55feeb['detach']();});});});}function _0x52d474(_0x292299){_0x3b6561['model']['change'](_0x9a71d=>{const _0x45c560=Array['from'](_0x45be4e['getRanges']())['map'](_0x453404=>_0x14f38f['fromRange'](_0x453404)),_0x2f0f30=[];for(const _0x13d513 of _0x292299)for(const _0x154572 of _0x13d513['getItems']({'shallow':!0x0}))_0x2f0f30['push'](_0x154572);for(const _0x1df0fd of _0x2f0f30)'$graveyard'!=_0x1df0fd['root']['rootName']&&(_0x9a71d['setSelection'](_0x9a71d['createPositionAt'](_0x1df0fd,0x0)),_0x3b6561['commands']['get']('removeTableColumn')['refresh'](),_0x3b6561['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2887e3=_0x45c560['filter'](_0xb0641b=>'$graveyard'!=_0xb0641b['root']['rootName']);_0x2887e3['length']>0x0&&_0x9a71d['setSelection'](_0x2887e3);for(const _0x42a91e of _0x45c560)_0x42a91e['detach']();});}function _0x1544cf(_0x58fc7f,_0x3345c9){return _0x3345c9['every'](_0x3c3311=>_0x58fc7f['some'](_0x5de355=>_0x5de355['end']['isEqual'](_0x3c3311['start'])||_0x3c3311['end']['isEqual'](_0x5de355['start'])));}function _0x4fdc70(_0x22b9ab,_0x1b11a5){return!_0x22b9ab['some'](_0x33d12f=>_0x1b11a5['some'](_0xa727a7=>_0x33d12f['isIntersecting'](_0xa727a7)))&&_0x22b9ab['some'](_0x37854e=>_0x1b11a5['some'](_0x2be0b2=>_0x37854e['end']['isTouching'](_0x2be0b2['start'])));}_0x3b6561['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4ef0d3,_0x3e2f9d,_0x395734)=>{if(!_0x395734['options']['showSuggestionHighlights'])return;const _0x40aa74=_0x3e2f9d['item'];if(!_0x40aa74)return;const _0xbe86d3=_0x395734['mapper']['toViewElement'](_0x40aa74);function _0x3d0235(_0x1078af){return Array['isArray'](_0x1078af)?_0x1078af:[_0x1078af];}_0xbe86d3&&'tableCell'===_0x40aa74['name']&&_0x272e55(_0xbe86d3,_0x395734['writer'],(_0x4bb2ea,_0x51ac84,_0x591f10)=>_0x591f10['addClass'](_0x3d0235(_0x51ac84['classes']),_0x4bb2ea),(_0x25304a,_0x191883,_0x2528d4)=>_0x2528d4['removeClass'](_0x3d0235(_0x191883['classes']),_0x25304a));},{'priority':'highest'}),_0x188934['descriptionFactory']['registerDescriptionCallback'](_0x38af10=>{if('insertion'!=_0x38af10['type']&&'deletion'!=_0x38af10['type'])return;const _0x3ee451=_0x38af10['getContainedElement']();if(null!=_0x3ee451&&_0x3ee451['is']('element','table')){if('insertion'==_0x38af10['type']){const _0x408e71=_0x38af10['getItems']()['filter'](_0x54a548=>_0x54a548['is']('$textProxy'))['map'](_0x54106a=>_0x54106a['data']);if(_0x408e71['length'])return{'type':'insertion','content':o(_0x2a3f99,'*Insert:*\x20%0',o(_0x2a3f99,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x408e71['join']('\x20')+'\x22'))};}if('deletion'==_0x38af10['type']){const _0x53fd05=_0x38af10['getItems']()['filter'](_0x2420a6=>_0x2420a6['is']('$textProxy'))['map'](_0x2e16b6=>_0x2e16b6['data']);if(_0x53fd05['length'])return{'type':'deletion','content':o(_0x2a3f99,'*Remove:*\x20%0',o(_0x2a3f99,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x53fd05['join']('\x20')+'\x22'))};}}}),_0x188934['descriptionFactory']['registerDescriptionCallback'](_0x552135=>{if('tableRow'==_0x552135['subType']){const _0x441efe=_0x552135['getItems']()['filter'](_0x1d3491=>_0x1d3491['is']('$textProxy'))['map'](_0x17fc21=>_0x17fc21['data']),_0x5eb5a7=this['_getSuggestionCoords'](_0x552135),_0x32c169=_0x5eb5a7['maxRow']-_0x5eb5a7['minRow']+0x1;if('insertion'==_0x552135['type'])return _0x441efe['length']?{'type':'insertion','content':o(_0x2a3f99,'*Insert:*\x20%0',o(_0x2a3f99,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x32c169,'\x22'+_0x441efe['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2a3f99,'*Insert:*\x20%0',o(_0x2a3f99,'ELEMENT_TABLE_ROW',_0x32c169))};if('deletion'==_0x552135['type'])return _0x441efe['length']?{'type':'deletion','content':o(_0x2a3f99,'*Remove:*\x20%0',o(_0x2a3f99,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x32c169,'\x22'+_0x441efe['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2a3f99,'*Remove:*\x20%0',o(_0x2a3f99,'ELEMENT_TABLE_ROW',_0x32c169))};}if('tableColumn'==_0x552135['subType']){const _0x56093d=_0x552135['getItems']()['filter'](_0x5284dc=>_0x5284dc['is']('$textProxy'))['map'](_0x482009=>_0x482009['data']),_0x26ac5c=this['_getSuggestionCoords'](_0x552135),_0x1e18e=_0x26ac5c['maxColumn']-_0x26ac5c['minColumn']+0x1;if('insertion'==_0x552135['type'])return _0x56093d['length']?{'type':'insertion','content':o(_0x2a3f99,'*Insert:*\x20%0',o(_0x2a3f99,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1e18e,'\x22'+_0x56093d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2a3f99,'*Insert:*\x20%0',o(_0x2a3f99,'ELEMENT_TABLE_COLUMN',_0x1e18e))};if('deletion'==_0x552135['type'])return _0x56093d['length']?{'type':'deletion','content':o(_0x2a3f99,'*Remove:*\x20%0',o(_0x2a3f99,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1e18e,'\x22'+_0x56093d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2a3f99,'*Remove:*\x20%0',o(_0x2a3f99,'ELEMENT_TABLE_COLUMN',_0x1e18e))};}}),_0x188934['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xdbc503),_0x188934['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xdbc503),_0x188934['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x52d474),_0x188934['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x52d474),_0x188934['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1544cf),_0x188934['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1544cf),_0x188934['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4fdc70),_0x188934['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4fdc70);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2094f2=this['editor'],_0x462e7f=_0x2094f2['model']['document']['selection'];return(_0x5321e4,_0x201151)=>{_0x2094f2['model']['change'](_0x39efed=>{const {commandName:_0x2728c3,commandParams:_0x55ab5}=_0x201151;let _0xbbbbd5=_0x5321e4[0x0]['end']['nodeBefore'];_0x55ab5&&_0x55ab5[0x0]&&!0x1===_0x55ab5[0x0]['forceValue']&&(_0xbbbbd5=_0x5321e4[0x0]['start']['nodeAfter']);const _0xaab0d5=_0x39efed['createRangeIn'](_0xbbbbd5);if('$graveyard'==_0xaab0d5['root']['rootName'])return;const _0x5a1676=Array['from'](_0x462e7f['getRanges']())['map'](_0x30a16a=>_0x14f38f['fromRange'](_0x30a16a));_0x39efed['setSelection'](_0xaab0d5),_0x2094f2['commands']['get'](_0x2728c3)['refresh'](),_0x55ab5['push']({'forceDefaultExecution':!0x0}),_0x2094f2['execute'](_0x2728c3,..._0x55ab5);const _0x367fdc=_0x5a1676['filter'](_0x1b9e3d=>'$graveyard'!=_0x1b9e3d['root']['rootName']);_0x367fdc['length']>0x0&&_0x39efed['setSelection'](_0x367fdc);for(const _0x4a5b5c of _0x5a1676)_0x4a5b5c['detach']();});};}['_getCoordsForCells'](_0x25ca61){const _0x2bbbea=this['editor']['plugins']['get']('TableUtils');let _0x3ecf97=Number['MAX_SAFE_INTEGER'],_0x43a3e0=Number['MIN_SAFE_INTEGER'],_0x5d9f8b=Number['MAX_SAFE_INTEGER'],_0x5db390=Number['MIN_SAFE_INTEGER'];for(const _0x128488 of _0x25ca61){if('$graveyard'==_0x128488['root']['rootName'])continue;const {row:_0x1d62c1,column:_0x3d1d56}=_0x2bbbea['getCellLocation'](_0x128488),_0x21c8ec=_0x128488['hasAttribute']('rowspan')?_0x128488['getAttribute']('rowspan')-0x1:0x0,_0x3feb94=_0x128488['hasAttribute']('colspan')?_0x128488['getAttribute']('colspan')-0x1:0x0;_0x3ecf97=_0x1d62c1<_0x3ecf97?_0x1d62c1:_0x3ecf97,_0x43a3e0=_0x1d62c1+_0x21c8ec>_0x43a3e0?_0x1d62c1+_0x21c8ec:_0x43a3e0,_0x5d9f8b=_0x3d1d56<_0x5d9f8b?_0x3d1d56:_0x5d9f8b,_0x5db390=_0x3d1d56+_0x3feb94>_0x5db390?_0x3d1d56+_0x3feb94:_0x5db390;}return{'minRow':_0x3ecf97,'maxRow':_0x43a3e0,'minColumn':_0x5d9f8b,'maxColumn':_0x5db390};}['_setupColumnsRowsFixing'](){const _0xe8799=this['editor'],_0x410ac4=_0xe8799['plugins']['get']('TrackChangesEditing'),_0x5bbf1f=_0xe8799['plugins']['get']('TableUtils');_0xe8799['model']['document']['on']('change:data',()=>{const _0x5db2c4=Array['from'](_0xe8799['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x113d8a,data:_0x13cf4f}of _0x5db2c4){const {group:_0x37b4ca,id:_0x5206d0,subType:_0x1dbc57}=_0x410ac4['_splitMarkerName'](_0x113d8a);if('suggestion'!=_0x37b4ca)continue;if(null!=_0x13cf4f['oldRange'])continue;const _0x1b24ac=_0x410ac4['getSuggestion'](_0x5206d0);this['_tablePostFixingSubtypes']['includes'](_0x1dbc57)&&this['_tableSuggestions']['add'](_0x1b24ac);}},{'priority':'low'});const _0x2abc6f=(_0x4ba5c4,_0x3fcbd5)=>{let _0xe50af4=!0x1;const _0x893e67=_0x3fcbd5['createRangeOn'](_0x4ba5c4),_0x4ac25c=_0x4ba5c4['findAncestor']('table'),_0x1550e9=_0x5bbf1f['getCellLocation'](_0x4ba5c4);for(const _0x5e57e2 of this['_tableSuggestions']){const _0x113c5e=_0x5e57e2['subType'],_0x42dff2=_0x113c5e['startsWith']('tablePaste'),_0x24fb86=_0x113c5e['substr'](_0x42dff2?0xa:0x5),_0x3af346=_0x24fb86['toLowerCase'](),_0x3b7c86=_0x3af346['substr'](0x0,0x3)+'span',_0x578b39='min'+_0x24fb86,_0x4b27aa='max'+_0x24fb86;if(!_0x5e57e2['isInContent'])continue;if(_0x4ac25c!=_0x5e57e2['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5e57e2['isIntersectingWithRange'](_0x893e67))continue;const _0x473f22=_0x4ba5c4['hasAttribute'](_0x3b7c86)?_0x4ba5c4['getAttribute'](_0x3b7c86)-0x1:0x0,_0x17c713=this['_getSuggestionCoords'](_0x5e57e2),_0x3d7733=_0x17c713[_0x578b39],_0x1a45cf=_0x17c713[_0x4b27aa];_0x3d7733<=_0x1550e9[_0x3af346]&&_0x1550e9[_0x3af346]+_0x473f22<=_0x1a45cf&&(_0x5e57e2['addRange'](_0x893e67),_0xe50af4=!0x0);}return _0xe50af4;};_0xe8799['model']['document']['registerPostFixer'](_0x3bd195=>{let _0x1e2f6e=!0x1;for(const _0x29e1ed of _0xe8799['model']['document']['differ']['getChanges']())if('insert'==_0x29e1ed['type']){if('tableRow'==_0x29e1ed['name']){for(const _0xe1e2c2 of _0x29e1ed['position']['nodeAfter']['getChildren']())_0x1e2f6e=_0x1e2f6e||_0x2abc6f(_0xe1e2c2,_0x3bd195);}else'tableCell'==_0x29e1ed['name']&&(_0x1e2f6e=_0x1e2f6e||_0x2abc6f(_0x29e1ed['position']['nodeAfter'],_0x3bd195));}return _0x1e2f6e;});}['_getSuggestionCoords'](_0x1d5c67){return this['_getCoordsForCells'](_0x1d5c67['getRanges']()['map'](_0x29f0ca=>_0x29f0ca['start']['nodeAfter']));}}function Ee(_0x127083){return Array['from'](new Set(_0x127083)['values']());}class St extends _0x1c996d{static get['requires'](){return[jt];}['afterInit'](){const _0x1787ff=this['editor'],_0x525d58=_0x1787ff['model']['document']['selection'],_0x157530=_0x1787ff['locale'];if(!_0x1787ff['plugins']['has']('TableEditing'))return;const _0x51e421=_0x1787ff['plugins']['get']('TrackChangesEditing'),_0x371fd0=_0x1787ff['plugins']['get']('TableUtils'),_0x2b06f0=_0x1787ff['plugins']['get'](jt);_0x2b06f0['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x51e421['enableCommand']('mergeTableCells',()=>{const _0x6a58b0=_0x371fd0['getSelectionAffectedTableCells'](_0x1787ff['model']['document']['selection']);_0x1787ff['model']['change'](()=>{_0x51e421['markMultiRangeBlockFormat'](_0x6a58b0,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1787ff['commands']['get']('mergeTableCells')['on']('execute',(_0x9071f9,_0x4de184)=>{_0x1787ff['commands']['get']('trackChanges')['value']&&(_0x4de184['length']>0x0&&_0x4de184[_0x4de184['length']-0x1]&&_0x4de184[_0x4de184['length']-0x1]['forceDefaultExecution']||_0x51e421['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x9071f9['stop']());},{'priority':'highest'});for(const _0x11ea67 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x17f4e9=_0x1787ff['commands']['get'](_0x11ea67);_0x51e421['enableCommand'](_0x11ea67,()=>{const _0x4fcbff=_0x1787ff['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x166b10=>_0x166b10['is']('element','tableCell')),_0x45314c=_0x17f4e9['value'];_0x1787ff['model']['change'](()=>{_0x51e421['markMultiRangeBlockFormat']([_0x4fcbff,_0x45314c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x741ee8 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x18f9bd=_0x1787ff['commands']['get'](_0x741ee8);_0x51e421['enableCommand'](_0x741ee8,()=>{const _0x2913d6=_0x371fd0['getSelectionAffectedTableCells'](_0x1787ff['model']['document']['selection'])[0x0],_0x10c887=_0x2913d6['findAncestor']('table'),{column:_0x3290a3,row:_0x5b381e}=_0x371fd0['getCellLocation'](_0x2913d6);let _0x1ce5bd=[];if('horizontally'==_0x18f9bd['direction']){const _0x49f42a=_0x371fd0['createTableWalker'](_0x10c887,{'startRow':_0x5b381e,'endRow':_0x5b381e,'includeAllSlots':!0x0});_0x1ce5bd=Array['from'](_0x49f42a)['map'](_0x6c9c6e=>_0x6c9c6e['cell']);}else{const _0x1090a5=_0x371fd0['createTableWalker'](_0x10c887,{'column':_0x3290a3,'includeAllSlots':!0x0});_0x1ce5bd=Array['from'](_0x1090a5)['map'](_0x531645=>_0x531645['cell']);}_0x1787ff['model']['change'](_0x2dc376=>{_0x51e421['markBlockFormat'](_0x2dc376['createRangeOn'](_0x2913d6),{'commandName':_0x741ee8,'commandParams':[]},_0x1ce5bd,_0x741ee8);});});}_0x51e421['descriptionFactory']['registerDescriptionCallback'](_0x3432ab=>{if('formatBlock'!=_0x3432ab['type']&&'formatInline'!=_0x3432ab['type'])return;const {data:_0x1fbf61}=_0x3432ab;return _0x1fbf61&&'mergeTableCells'==_0x1fbf61['commandName']?{'type':'format','content':o(_0x157530,'*Merge\x20cells*')}:void 0x0;}),_0x51e421['descriptionFactory']['registerDescriptionCallback'](_0x25208a=>{if('formatBlock'!=_0x25208a['type']&&'formatInline'!=_0x25208a['type'])return;const {data:_0x19b66d}=_0x25208a;return _0x19b66d?'splitTableCellVertically'==_0x19b66d['commandName']?{'type':'format','content':o(_0x157530,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x19b66d['commandName']?{'type':'format','content':o(_0x157530,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x533a78=_0x2b06f0['_acceptFormatSuggestionCallbackFactory']();for(const _0x35d1e6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x51e421['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x35d1e6,'accept',_0x533a78);for(const _0x41b8ca of['splitTableCellVertically','splitTableCellHorizontally'])_0x51e421['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x41b8ca,'accept',_0x533a78);_0x51e421['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x841f2b=>{_0x1787ff['model']['change'](_0x4d1c85=>{const _0x904eef=Array['from'](_0x525d58['getRanges']())['map'](_0x413f2b=>_0x14f38f['fromRange'](_0x413f2b));_0x4d1c85['setSelection'](_0x841f2b),_0x1787ff['commands']['get']('mergeTableCells')['refresh'](),_0x1787ff['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1d12f1=_0x904eef['filter'](_0x25acdc=>'$graveyard'!=_0x25acdc['root']['rootName']);_0x1d12f1['length']>0x0&&_0x4d1c85['setSelection'](_0x1d12f1);for(const _0xfe12ca of _0x904eef)_0xfe12ca['detach']();});});for(const _0x35bace of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x572887=_0x1787ff['commands']['get'](_0x35bace);_0x572887['on']('set:isEnabled',(_0x5482e0,_0x4f2948,_0x3fda4b)=>{if(_0x3fda4b){const _0x1b8959=_0x1787ff['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3cd9b7=>_0x3cd9b7['is']('element','tableCell'));this['_areMergableCells'](_0x572887['value'],_0x1b8959)||(_0x5482e0['return']=!0x1,_0x5482e0['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1686b6=this['editor']['commands']['get']('mergeTableCells'),_0x452a53=this['editor']['plugins']['get']('TableUtils');if(!_0x1686b6['isEnabled'])return!0x1;const _0x41540b=_0x452a53['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3550ce of _0x41540b)for(const _0x427aa1 of _0x41540b)if(_0x3550ce!=_0x427aa1&&!this['_areMergableCells'](_0x3550ce,_0x427aa1))return!0x1;return!0x0;}['_areMergableCells'](_0x7874d9,_0x4a7ca){const _0x4b23b3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x428bca=this['editor']['model']['createRangeOn'](_0x7874d9),_0x408558=this['editor']['model']['createRangeOn'](_0x4a7ca),_0x45550d=new Set(),_0x45039f=new Set();for(const _0x1c5c58 of _0x4b23b3['getSuggestions']())if(('insertion'==_0x1c5c58['type']||'deletion'==_0x1c5c58['type']||'mergeTableCells'==_0x1c5c58['subType'])&&_0x1c5c58['isInContent']){for(const _0x46d5d8 of _0x1c5c58['getRanges']())_0x46d5d8['containsRange'](_0x428bca,!0x0)&&_0x45550d['add'](_0x1c5c58['type']+':'+_0x1c5c58['author']['id']),_0x46d5d8['containsRange'](_0x408558,!0x0)&&_0x45039f['add'](_0x1c5c58['type']+':'+_0x1c5c58['author']['id']);}if(_0x45550d['size']!=_0x45039f['size'])return!0x1;for(const _0x42e280 of _0x45550d)if(!_0x45039f['has'](_0x42e280))return!0x1;return!0x0;}}class At extends _0x1c996d{static get['requires'](){return[jt];}['afterInit'](){const _0x26a91a=this['editor'];if(!_0x26a91a['plugins']['has']('TableEditing'))return;const _0x5c74f7=_0x26a91a['locale'],_0x564e51=_0x26a91a['plugins']['get']('TrackChangesEditing');_0x564e51['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x564e51['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x564e51['registerBlockAttribute']('headingRows'),_0x564e51['registerBlockAttribute']('headingColumns'),_0x564e51['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5c74f7,'FORMAT_HEADER_ROW')),_0x564e51['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5c74f7,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x71436f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18104e=this['editor']['plugins']['get']('TableUtils'),_0xbc69e2=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x5713c3({showActiveMarker:_0x5ada67=!0x0,setDataAttribute:_0x2286cc=!0x0}={}){return(_0xdd0d36,_0x119707,_0x58906e)=>{const {type:_0x22154b,id:_0x1d5891}=_0x71436f['_splitMarkerName'](_0x119707['markerName']),_0x75445b=_0x71436f['getSuggestion'](_0x1d5891),_0x288134=_0x75445b['data'];if('formatBlock'!=_0x75445b['type']||!_0x288134||'setTableColumnHeader'!=_0x288134['commandName'])return;if(_0x119707['item'])return void _0xdd0d36['stop']();if(!_0x58906e['consumable']['consume'](_0x119707['markerRange'],_0xdd0d36['name']))return;const _0xf56785=_0x119707['markerRange']['start']['nodeAfter'],_0xd13a6e=_0x119707['markerRange']['end']['nodeBefore'],_0x3484bb=_0xf56785['parent']['parent'],{column:_0xa1fb2f}=_0x18104e['getCellLocation'](_0xf56785),{column:_0x1f3631}=_0x18104e['getCellLocation'](_0xd13a6e);for(let _0x48cece=_0xa1fb2f;_0x48cece<=_0x1f3631;_0x48cece++){const _0x22c306=_0x18104e['createTableWalker'](_0x3484bb,{'column':_0x48cece,'includeAllSlots':!0x1});for(const _0x345e84 of _0x22c306){const _0x3ef159=_0x345e84['cell'],_0x25b7a7=_0x58906e['mapper']['toViewElement'](_0x3ef159);_0x58906e['writer']['addClass']('ck-suggestion-marker-'+_0x22154b,_0x25b7a7),_0x2286cc&&_0x58906e['writer']['setAttribute']('data-suggestion',_0x1d5891,_0x25b7a7),_0x58906e['mapper']['bindElementToMarker'](_0x25b7a7,_0x119707['markerName']),_0x5ada67&&(_0x71436f['activeMarkers']['includes'](_0x119707['markerName'])?_0x58906e['writer']['addClass']('ck-suggestion-marker--active',_0x25b7a7):_0x58906e['writer']['removeClass']('ck-suggestion-marker--active',_0x25b7a7));}}};}_0x71436f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xbc69e2),_0x71436f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xbc69e2),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5713c3(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x579e4f,_0x2262ce,_0x4246e7)=>{_0x4246e7['options']['showSuggestionHighlights']&&_0x5713c3({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x579e4f,_0x2262ce,_0x4246e7);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x407976,_0x50e30f,_0x344daf)=>{const {type:_0x3f03c9,id:_0x5e4750}=_0x71436f['_splitMarkerName'](_0x50e30f['markerName']),_0x37462c=_0x71436f['getSuggestion'](_0x5e4750),_0x48bffe=_0x37462c['data'];if('formatBlock'!=_0x37462c['type']||!_0x48bffe||'setTableColumnHeader'!=_0x48bffe['commandName'])return;const _0x113c5d=_0x344daf['mapper']['markerNameToElements'](_0x50e30f['markerName']);if(_0x113c5d){for(const _0x289c2f of _0x113c5d)_0x344daf['writer']['removeClass']('ck-suggestion-marker-'+_0x3f03c9,_0x289c2f),_0x344daf['writer']['removeClass']('ck-suggestion-marker--active',_0x289c2f),_0x344daf['writer']['removeAttribute']('data-suggestion',_0x289c2f),_0x344daf['mapper']['unbindElementFromMarkerName'](_0x289c2f,_0x50e30f['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x414a8c=this['editor'],_0x398ded=_0x414a8c['locale'];function _0x4844cc(_0xc55227){return{'type':'format','content':o(_0x398ded,'*Format:*\x20%0',_0xc55227)};}_0x414a8c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ffff7=>{if('formatBlock'!=_0x4ffff7['type'])return;const {data:_0x5206c2}=_0x4ffff7;if(_0x5206c2){if('setTableRowHeader'==_0x5206c2['commandName']){const _0xfe71f8=_0x5206c2['commandParams'][0x0]['forceValue'];return _0x4844cc(o(_0x398ded,_0xfe71f8?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5206c2['commandName']){const _0x94e9c3=_0x5206c2['commandParams'][0x0]['forceValue'];return _0x4844cc(o(_0x398ded,_0x94e9c3?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x2a0ca1=>[_0x2a0ca1,null]));class It extends _0x1c996d{static get['requires'](){return[jt];}['afterInit'](){const _0x4dd720=this['editor'];if(!_0x4dd720['plugins']['has']('TableClipboard'))return;const _0x702236=_0x4dd720['plugins']['get']('TrackChangesEditing'),_0x5ed4ad=_0x4dd720['plugins']['get']('TableUtils'),_0x20547a=_0x4dd720['plugins']['get'](jt),_0x4957e3=_0x4dd720['plugins']['get']('TableClipboard');_0x20547a['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4dd720['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4dd720['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3d8a41=null;_0x4dd720['model']['on']('insertContent',(_0x239f2f,_0x1a2efe)=>{const [_0x38b7c9,_0x993232]=_0x1a2efe,_0x5c4930=_0x1a2efe[_0x1a2efe['length']-0x1];_0x5c4930&&_0x5c4930['forceDefaultExecution']||_0x702236['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2bef61,_0x36bb8d,_0x346d59,_0x31bb43,_0x20fa08){if(_0x36bb8d&&!_0x36bb8d['is']('documentSelection'))return!0x1;const _0x41dbab=_0x20fa08['getTableIfOnlyTableInContent'](_0x2bef61,_0x346d59);if(!_0x41dbab||!he(_0x41dbab,void 0x0,_0x31bb43))return!0x1;const _0x285a1a=_0x31bb43['getSelectionAffectedTableCells'](_0x346d59['document']['selection']);if(!_0x285a1a['length'])return!0x1;const _0x27514f=_0x285a1a[0x0]['findAncestor']('table'),_0x2297b2=_0x31bb43['getRowIndexes'](_0x285a1a),_0x4a046d=_0x31bb43['getColumnIndexes'](_0x285a1a),_0x230f79={'startRow':_0x2297b2['first'],'endRow':_0x2297b2['last'],'startColumn':_0x4a046d['first'],'endColumn':_0x4a046d['last']};return 0x1==_0x285a1a['length']&&(_0x230f79['endRow']+=_0x31bb43['getRows'](_0x41dbab)-0x1,_0x230f79['endColumn']+=_0x31bb43['getColumns'](_0x41dbab)-0x1),he(_0x27514f,_0x230f79,_0x31bb43);}(_0x38b7c9,_0x993232,_0x4dd720['model'],_0x5ed4ad,_0x4957e3)&&(_0x239f2f['stop'](),_0x3d8a41={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4dd720['model']['change'](()=>{_0x4dd720['model']['insertContent'](_0x1a2efe[0x0],_0x1a2efe[0x1],_0x1a2efe[0x2],{'forceDefaultExecution':!0x0});const _0x563ebd=_0x56ae18(),{rowInsertionRanges:_0x5b7f3d,columnInsertionRanges:_0x1262d9,insertionRanges:_0x265e3d,deletionRanges:_0xcbb8ea,cells:_0x510633}=_0x3d8a41;_0x5b7f3d['length']&&_0x702236['markMultiRangeInsertion'](_0x5b7f3d,'tablePasteRow',{'tablePasteChainId':_0x563ebd}),_0x1262d9['length']&&_0x702236['markMultiRangeInsertion'](_0x1262d9,'tablePasteColumn',{'tablePasteChainId':_0x563ebd}),_0x265e3d['length']&&(_0x702236['markMultiRangeInsertion'](_0x265e3d,'tablePaste',{'tablePasteChainId':_0x563ebd,'skipNestingCheck':!0x0}),_0x265e3d['forEach'](_0x207117=>_0x207117['detach']?.())),_0xcbb8ea['length']&&(_0x702236['markMultiRangeDeletion'](_0xcbb8ea,'tablePaste',{'tablePasteChainId':_0x563ebd,'skipNestingCheck':!0x0}),_0xcbb8ea['forEach'](_0x596b75=>_0x596b75['detach']?.()));const _0x2d3b52=_0x702236['markMultiRangeBlockFormat'](_0x510633['map'](({element:_0x39b0b2})=>_0x39b0b2),{'formatGroupId':_0x56ae18()},[],'tablePasteCell',{'tablePasteChainId':_0x563ebd});if(_0x2d3b52){const _0x309dde=_0x2d3b52['getMarkers'](),_0x5d5548=[];for(const {element:_0x1180d4,attributes:_0x532ce5}of _0x510633){if(!_0x532ce5)continue;const _0x3c260a=_0x4dd720['model']['createRangeOn'](_0x1180d4),_0x450fdb=_0x309dde['find'](_0x20a274=>_0x20a274['getRange']()['isEqual'](_0x3c260a));_0x450fdb&&_0x5d5548['push']([_0x450fdb['name'],_0x532ce5]);}_0x5d5548['length']&&_0x2d3b52['setAttribute']('markerAttributes',Object['fromEntries'](_0x5d5548));}_0x3d8a41=null;}));},{'priority':_0x3ee875['high']+0xa}),_0x4dd720['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2274af,_0xf5b32a)=>{const [_0x4e08d0,_0x249ad1,,_0x38a362]=_0xf5b32a;if(!_0x3d8a41)return;_0x2274af['stop']();const _0x3b651b=_0x4e08d0['cell'],_0x27c8ea=_0x249ad1,_0x5e5f80=Pe(_0x3b651b),_0x19ffe6=Pe(_0x27c8ea);_0x2274af['return']=_0x3b651b;let _0x32d4c9=null,_0xb09764=null;if(_0x19ffe6||_0x5e5f80){if(_0x5e5f80&&!_0x19ffe6){_0x38a362['remove'](_0x3b651b['getChild'](0x0));for(const _0x4528b7 of Array['from'](_0x27c8ea['getChildren']()))_0x38a362['insert'](_0x4528b7,_0x3b651b,'end');const _0x4f2885=_0x3d8a41['rowInsertionIndexes']['includes'](_0x4e08d0['row']),_0x2577ac=_0x3d8a41['columnInsertionIndexes']['includes'](_0x4e08d0['column']);_0x4f2885||_0x2577ac||(_0x32d4c9=_0x14f38f['fromRange'](_0x38a362['createRangeIn'](_0x3b651b)));}else _0x19ffe6&&!_0x5e5f80&&(_0xb09764=_0x38a362['createRangeIn'](_0x3b651b));}else{const _0x45c623=_0x38a362['createElement']('tableCellSuggestion'),_0x2d5d9c=_0x38a362['createElement']('tableCellSuggestion');_0x38a362['wrap'](_0x38a362['createRangeIn'](_0x3b651b),_0x2d5d9c),_0x38a362['insert'](_0x45c623,_0x3b651b,0x0);for(const _0x18388b of Array['from'](_0x27c8ea['getChildren']()))_0x38a362['insert'](_0x18388b,_0x45c623,'end');_0x32d4c9=_0x14f38f['fromRange'](_0x38a362['createRangeOn'](_0x45c623)),_0xb09764=_0x14f38f['fromRange'](_0x38a362['createRangeOn'](_0x2d5d9c));}const _0xd8c3c8=Array['from'](_0x27c8ea['getAttributes']())['filter'](([_0x5ea989])=>ge['includes'](_0x5ea989));_0x3d8a41['cells']['push']({'element':_0x3b651b,'attributes':_0xd8c3c8['length']?Object['fromEntries'](_0xd8c3c8):null}),_0x32d4c9&&_0x3d8a41['insertionRanges']['push'](_0x32d4c9),_0xb09764&&_0x3d8a41['deletionRanges']['push'](_0xb09764);},{'priority':'high'}),_0x5ed4ad['on']('insertColumns',(_0x50fc45,_0x4f5776)=>{const [_0x587264,_0x587c3b={}]=_0x4f5776;if(!_0x3d8a41)return;const _0x42e154=_0x587c3b['at']||0x0,_0x10cc9d=_0x587c3b['columns']||0x1;_0x3d8a41['columnInsertionIndexes']=new Array(_0x10cc9d)['fill'](_0x42e154)['map']((_0x5962aa,_0x4f3eb9)=>_0x5962aa+_0x4f3eb9);for(const {cell:_0x3c3e4d}of _0x5ed4ad['createTableWalker'](_0x587264,{'startColumn':_0x42e154,'endColumn':_0x42e154+_0x10cc9d-0x1}))_0x3d8a41['columnInsertionRanges']['push'](_0x4dd720['model']['createRangeOn'](_0x3c3e4d));},{'priority':'low'}),_0x5ed4ad['on']('insertRows',(_0x3647b0,_0x213c18)=>{const [_0x75dbd0,_0x2d6783={}]=_0x213c18;if(!_0x3d8a41)return;const _0x2086d9=_0x2d6783['at']||0x0,_0x2e3880=_0x2d6783['rows']||0x1;_0x3d8a41['rowInsertionIndexes']=new Array(_0x2e3880)['fill'](_0x2086d9)['map']((_0x66976e,_0xbe90d5)=>_0x66976e+_0xbe90d5);for(const {cell:_0x43f3ed}of _0x5ed4ad['createTableWalker'](_0x75dbd0,{'startRow':_0x2086d9,'endRow':_0x2086d9+_0x2e3880-0x1}))_0x3d8a41['rowInsertionRanges']['push'](_0x4dd720['model']['createRangeOn'](_0x43f3ed));},{'priority':'low'}),_0x702236['descriptionFactory']['registerDescriptionCallback'](_0x7b3484=>{if(_0x7b3484['subType']&&_0x7b3484['subType']['startsWith']('tablePaste'))return _0x7b3484['previous']?{}:{'type':'insertion','content':o(_0x4dd720['locale'],'*Replace\x20table\x20cells*')};});const _0x2d5a39=()=>!0x1;for(const _0x5a6f2a of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x702236['_suggestionFactory']['registerCustomCallback']('insertion',_0x5a6f2a,'join',_0x2d5a39),_0x702236['_suggestionFactory']['registerCustomCallback']('deletion',_0x5a6f2a,'join',_0x2d5a39),_0x702236['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5a6f2a,'join',_0x2d5a39);_0x702236['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2d5a39),_0x702236['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2ba93f,_0xcb7674,_0xcda319)=>{const _0x417092=_0x2ba93f['map'](_0x8cd0ed=>_0x8cd0ed['getContainedElement']())['filter'](_0x194f15=>_0x194f15),_0x5bc0ec=new Map(_0x417092['map'](_0x13cab1=>[_0x13cab1,null]));if(_0x3d8a41){for(const {element:_0x12e48a,attributes:_0x1c11d5}of _0x3d8a41['cells'])_0x1c11d5&&_0x5bc0ec['set'](_0x12e48a,_0x1c11d5);}else{if(_0xcda319&&_0xcda319['markerAttributes'])for(const [_0x52754f,_0xfa88ba]of Object['entries'](_0xcda319['markerAttributes'])){const _0x422089=_0x4dd720['model']['markers']['get'](_0x52754f),_0x1f83b1=_0x422089?_0x422089['getRange']()['getContainedElement']():null;_0x1f83b1&&_0x5bc0ec['set'](_0x1f83b1,_0xfa88ba);}}_0x4dd720['model']['change'](_0xb8ec11=>{for(const [_0x2d476d,_0x529690]of _0x5bc0ec)_0xb8ec11['setAttributes']({...Ce,..._0x529690},_0x2d476d);});});const _0x4e491=(_0x48f9bb,_0x3197a3)=>{_0x702236['_suggestionFactory']['registerCustomCallback'](_0x48f9bb,'tablePaste',_0x3197a3,(_0x3192d9,_0xdbe77,_0xbb8894)=>{_0x4dd720['model']['change'](_0x2ef445=>{const _0x2bd5d7=[];for(const _0x10dc48 of _0x3192d9){const _0x5207e7=_0x10dc48['start']['nodeAfter'];_0x5207e7['is']('element','tableCellSuggestion')&&_0x2bd5d7['push'](_0x5207e7);}_0x702236['_suggestionFactory']['getSuggestionCallback'](_0x48f9bb,null,_0x3197a3)(_0x3192d9,_0xdbe77,_0xbb8894);for(const _0x487fcc of _0x2bd5d7)'$graveyard'!=_0x487fcc['root']['rootName']&&_0x2ef445['unwrap'](_0x487fcc);});});};_0x4e491('insertion','accept'),_0x4e491('insertion','discard'),_0x4e491('deletion','accept'),_0x4e491('deletion','discard'),_0x702236['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3bc475=>{const _0x573613=_0x3bc475['map'](_0xd2a964=>_0xd2a964['getContainedElement']()),_0x2390d6=_0x573613[0x0]['findAncestor']('table'),{minRow:_0x21e329,maxRow:_0x348dac}=_0x20547a['_getCoordsForCells'](_0x573613);_0x5ed4ad['removeRows'](_0x2390d6,{'at':_0x21e329,'rows':_0x348dac-_0x21e329+0x1});}),_0x702236['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4fdbc5=>{const _0x433564=_0x4fdbc5['map'](_0x261893=>_0x261893['getContainedElement']()),_0x43b691=_0x433564[0x0]['findAncestor']('table'),{minColumn:_0x1b8a7f,maxColumn:_0xa439c6}=_0x20547a['_getCoordsForCells'](_0x433564);_0x5ed4ad['removeColumns'](_0x43b691,{'at':_0x1b8a7f,'columns':_0xa439c6-_0x1b8a7f+0x1});});const _0x5945f4=(_0x1c27f2,_0x23dfad)=>{if(!_0x23dfad['subType']||!_0x23dfad['subType']['startsWith']('tablePaste'))return;const _0x45f68b=_0x23dfad['attributes']['tablePasteChainId'],_0x522550=_0x702236['getSuggestions']()['filter'](_0x307a29=>_0x307a29['isInContent']&&_0x307a29['attributes']&&_0x307a29['attributes']['tablePasteChainId']==_0x45f68b);_0x522550['length']&&_0x23dfad['getAllAdjacentSuggestions']()['length']!=_0x522550['length']&&_0x522550['reduce']((_0x506b94,_0x4e1c18)=>(_0x506b94['next']=_0x4e1c18,_0x4e1c18['previous']=_0x506b94,_0x4e1c18));};function _0x22d46c(_0x85a639,_0x13769d=!0x0){const {id:_0x1b50c7}=_0x702236['_splitMarkerName'](_0x85a639['markerName']),_0x3c86d9=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2ec596=_0x702236['activeMarkers']['includes'](_0x85a639['markerName']);return _0x2ec596&&_0x3c86d9['push']('ck-suggestion-marker--active'),{'classes':_0x3c86d9,'attributes':{'data-suggestion':_0x1b50c7},'priority':_0x2ec596&&_0x13769d?0xbc2:0xbb8};}_0x702236['on']('suggestionLoaded',_0x5945f4,{'priority':'high'}),_0x702236['on']('suggestionUnloaded',_0x5945f4,{'priority':'high'}),_0x4dd720['model']['document']['registerPostFixer'](()=>{let _0x1d91de=!0x1;const _0x103938=Array['from'](_0x4dd720['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xe0382b,data:_0x101b12}of _0x103938){const {group:_0xe7c3f9,type:_0x49595b,id:_0xf455cb}=_0x702236['_splitMarkerName'](_0xe0382b);if('suggestion'!=_0xe7c3f9||'deletion'!=_0x49595b||_0x101b12['oldRange'])continue;if(!_0x702236['hasSuggestion'](_0xf455cb))continue;const _0x239364=_0x702236['getSuggestion'](_0xf455cb)['getRanges'](),_0xee6fa7=_0x4dd720['plugins']['get']('Users')['me'];for(const _0xca21f9 of _0x702236['getSuggestions']()){if(!_0xca21f9['isInContent']||_0xca21f9['author']!=_0xee6fa7)continue;if('formatBlock'!=_0xca21f9['type']||'tablePasteCell'!=_0xca21f9['subType'])continue;if(_0xca21f9['getRanges']()['every'](_0x228abf=>_0x239364['some'](_0x157305=>_0x157305['containsRange'](_0x228abf,!0x0)))){for(const _0x3e0126 of _0xca21f9['getAllAdjacentSuggestions']())_0x3e0126['isInContent']&&(_0x3e0126['discard'](),_0x1d91de=!0x0);}}}return _0x1d91de;}),_0x4dd720['model']['document']['registerPostFixer'](_0x504e1f=>{const _0xd85ccb=_0x4dd720['commands']['get']('redo');if(!_0xd85ccb||!_0xd85ccb['_createdBatches']['has'](_0x504e1f['batch']))return!0x1;let _0x104246=!0x1;const _0x2b0807=_0x4dd720['plugins']['get']('Users')['me'],_0x1c3c99=_0x4dd720['model']['document']['differ']['getChanges'](),_0xe8902d=Array['from'](_0x4dd720['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1f522d,data:_0xcbdfae})=>{const {group:_0x29151d,subType:_0x85f4ca,authorId:_0x4d6c19}=_0x702236['_splitMarkerName'](_0x1f522d);return'suggestion'==_0x29151d&&'tablePaste'==_0x85f4ca&&_0x4d6c19==_0x2b0807['id']&&!_0xcbdfae['oldRange'];});for(const _0x28aff2 of _0x1c3c99){if('insert'!=_0x28aff2['type']||'tableCellSuggestion'!=_0x28aff2['name']||0x1!=_0x28aff2['length'])continue;const _0x1e1af8=_0x504e1f['createRange'](_0x28aff2['position'],_0x28aff2['position']['getShiftedBy'](0x1));if(!_0xe8902d['find'](({data:_0x1c4f45})=>_0x1c4f45['newRange']['isEqual'](_0x1e1af8))){for(const {name:_0x5b9dc3,data:_0x1964d5}of _0xe8902d)if(_0x1e1af8['containsRange'](_0x1964d5['newRange'])){_0x504e1f['updateMarker'](_0x5b9dc3,{'range':_0x1e1af8}),_0x104246=!0x0;break;}}}return _0x104246;}),_0x4dd720['model']['document']['registerPostFixer'](_0x4346ed=>{let _0x5297ec=!0x1;const _0x36f50f=_0x4dd720['plugins']['get']('Users')['me'],_0x2bc3dd=_0x702236['getSuggestions']()['filter'](_0x3eef04=>_0x3eef04['isInContent']&&_0x3eef04['author']==_0x36f50f),_0x922591=new Set(),_0x113a13=new Set();for(const _0x5bc0d4 of _0x2bc3dd)if('tablePaste'==_0x5bc0d4['subType'])for(const _0xa14adc of _0x5bc0d4['getMarkers']()){const _0x33d5aa=_0xa14adc['getRange']()['getContainedElement']();if(_0x33d5aa){if(_0x33d5aa['is']('element','tableCellSuggestion')&&Pe(_0x33d5aa)){_0x5bc0d4['removeMarker'](_0xa14adc['name']),_0x922591['add'](_0x33d5aa),_0x5297ec=!0x0;const _0x18580c=_0x33d5aa['nextSibling'],_0x3f27cc=_0x33d5aa['previousSibling'],_0x3fa59e=_0x18580c&&_0x18580c['is']('element','tableCellSuggestion'),_0x131938=_0x3f27cc&&_0x3f27cc['is']('element','tableCellSuggestion');_0x3fa59e&&!_0x922591['has'](_0x18580c)&&_0x113a13['add'](_0x18580c),_0x131938&&!_0x922591['has'](_0x3f27cc)&&_0x113a13['add'](_0x3f27cc);}else _0x33d5aa['is']('element','paragraph')&&_0x33d5aa['isEmpty']&&(_0x5bc0d4['removeMarker'](_0xa14adc['name']),_0x5297ec=!0x0);}}else{if('tablePasteCell'==_0x5bc0d4['subType']){if(!_0x5bc0d4['attributes']||!_0x5bc0d4['attributes']['tablePasteChainId'])continue;const _0x3a09a6=_0x5bc0d4['attributes']['markerAttributes'];if(_0x3a09a6&&Object['keys'](_0x3a09a6)['length'])continue;const _0x1e26db=_0x5bc0d4['attributes']['tablePasteChainId'];let _0x2aeb98=!0x0,_0x3b08d2=!0x0;for(const _0x342ad5 of _0x2bc3dd)if(_0x342ad5['subType']&&_0x342ad5['subType']['startsWith']('tablePaste')){if(!_0x342ad5['attributes']['tablePasteChainId']){_0x3b08d2=!0x1;break;}if(_0x342ad5['id']!=_0x5bc0d4['id']&&_0x342ad5['attributes']['tablePasteChainId']==_0x1e26db){_0x2aeb98=!0x1;break;}}_0x3b08d2&&_0x2aeb98&&(_0x5bc0d4['removeMarkers'](),_0x5297ec=!0x0);}}for(const _0x4dd887 of _0x922591)_0x4346ed['remove'](_0x4dd887);for(const _0x4e5eda of _0x113a13)_0x4346ed['unwrap'](_0x4e5eda);return _0x5297ec;}),_0x4dd720['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x49f177,_0x520b62)=>_0x22d46c(_0x49f177),'converterPriority':'high'}),_0x4dd720['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x440e71,_0x4025b0)=>_0x4025b0['options']['showSuggestionHighlights']?_0x22d46c(_0x440e71,!0x1):null,'converterPriority':'high'});const _0x350fab=_0x4dd720['editing']['view'];this['listenTo'](_0x350fab['document'],'clipboardOutput',(_0x5ecfb9,_0x54f72f)=>{const _0x2b54e6=[];for(const _0x1440c8 of _0x350fab['createRangeIn'](_0x54f72f['content'])['getItems']())_0x1440c8['is']('element','suggestion-td')&&_0x2b54e6['push'](_0x1440c8);_0x350fab['change'](_0x590661=>{for(const _0x42f034 of _0x2b54e6)_0x590661['move'](_0x590661['createRangeIn'](_0x42f034),_0x590661['createPositionBefore'](_0x42f034)),_0x590661['remove'](_0x42f034);});});}}function Pe(_0x1bde23){if(_0x1bde23['isEmpty'])return!0x0;const _0x223987=_0x1bde23['getChild'](0x0);return _0x223987['is']('element','paragraph')&&_0x223987['isEmpty'];}function he(_0x3aa3b9,_0x462485={},_0x23a9ad){for(const {isAnchor:_0x2cb087,cellHeight:_0x56e6df,cellWidth:_0x464d13}of _0x23a9ad['createTableWalker'](_0x3aa3b9,{'includeAllSlots':!0x0,..._0x462485}))if(!_0x2cb087||0x1!=_0x56e6df||0x1!=_0x464d13)return!0x1;return!0x0;}class vt extends _0x1c996d{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1e92cd=this['editor']['plugins']['get']('TrackChangesEditing');_0x1e92cd['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1e92cd['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1e92cd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1e92cd['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1e92cd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1e92cd['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5e1c04,_0x1795ab){const _0xc90319=this['editor']['plugins']['get']('TrackChangesEditing'),_0x577e27=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3b5c90=_0x1795ab['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x424cd0=_0x577e27['getColumnGroupElement'](_0x3b5c90);let _0xf1cb46=_0x424cd0?_0x577e27['getTableColumnsWidths'](_0x424cd0):null,_0x4f61e3=_0x3b5c90['getAttribute']('tableWidth')||null;const _0xfc3449=_0x1795ab['tableWidth']||_0x4f61e3,_0x4304f3=_0x1795ab['columnWidths']||_0xf1cb46,_0x57dd8a=this['editor']['plugins']['get']('Users')['me'];for(const _0x670d2e of _0xc90319['getSuggestions']()){const _0x51418e=_0x670d2e['getContainedElement']();if('resizeTable'===_0x670d2e['subType']&&_0x51418e===_0x3b5c90){_0x670d2e['author']!==_0x57dd8a&&_0x670d2e['discard']();const _0x293dfd=_0x670d2e['data']['commandParams'];_0x4f61e3=_0x293dfd[0x0]['tableWidth'],_0xf1cb46=_0x293dfd[0x0]['columnWidths'];break;}}_0x5e1c04({'table':_0x3b5c90,'tableWidth':_0xfc3449,'columnWidths':_0x4304f3}),_0xc90319['markBlockFormat'](_0x3b5c90,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4f61e3,'columnWidths':_0xf1cb46}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5cd84b){if('formatBlock'!=_0x5cd84b['type']&&'formatInline'!=_0x5cd84b['type'])return;const {data:_0x39827b}=_0x5cd84b;if(_0x39827b&&'resizeTable'===_0x39827b['formatGroupId']){const _0xecc76='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0xecc76)};}}}class Ct extends _0x1c996d{['afterInit'](){const _0x1982d9=this['editor'];_0x1982d9['plugins']['has']('Template')&&_0x1982d9['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x1c996d{['afterInit'](){const _0x5a8eec=this['editor'];if(!_0x5a8eec['commands']['get']('insertTableOfContents'))return;_0x5a8eec['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x652b4c=_0x5a8eec['plugins']['get']('TrackChangesEditing'),_0x54b10b=_0x5a8eec['locale'];_0x652b4c['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2e656f=>o(_0x54b10b,'ELEMENT_TABLE_OF_CONTENTS',_0x2e656f));}}class Dt extends _0x1c996d{['afterInit'](){const _0x1740d3=this['editor'];if(!_0x1740d3['plugins']['has']('Title'))return;const _0x5b1f0d=_0x1740d3['plugins']['get']('TrackChangesEditing');_0x5b1f0d['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1740d3['locale'],'ELEMENT_TITLE')),_0x1740d3['model']['document']['registerPostFixer'](_0xee77a8=>{let _0x48c46b=!0x1;const _0x5c42f3=Array['from'](_0x1740d3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x27b5e3,data:_0x41375f}of _0x5c42f3){const {group:_0x52e77e}=_0x5b1f0d['_splitMarkerName'](_0x27b5e3);if('suggestion'!==_0x52e77e||!_0x41375f['newRange'])continue;const _0x3180fb=_0x41375f['newRange'],_0x1aeec9=_0x3180fb['end']['nodeBefore'];if(!_0x1aeec9||!_0x1aeec9['is']('element','title-content'))continue;if(!_0x3180fb['start']['isTouching'](_0x3180fb['end']))continue;const _0xfefa9b=_0x1740d3['model']['schema']['getNearestSelectionRange'](_0x3180fb['end'],'forward');if(_0xfefa9b&&_0xfefa9b['isCollapsed']){const _0x5754ea=_0xee77a8['createRange'](_0x3180fb['start'],_0xfefa9b['start']);_0x5754ea['isEqual'](_0x3180fb)||(_0xee77a8['updateMarker'](_0x27b5e3,{'range':_0x5754ea}),_0x48c46b=!0x0);}_0x48c46b||(_0xee77a8['removeMarker'](_0x27b5e3),_0x48c46b=!0x0);}return _0x48c46b;});}}class Nt extends _0x1c996d{['afterInit'](){const _0x37d24f=this['editor'],_0x26e758=_0x37d24f['plugins']['get']('TrackChangesEditing');_0x37d24f['plugins']['has']('UndoEditing')&&(_0x26e758['enableCommand']('undo'),_0x26e758['enableCommand']('redo'));}}class Mt extends _0x1c996d{static get['requires'](){return[jt];}['afterInit'](){const _0x260198=this['editor'];if(!_0x260198['plugins']['has']('TableCaptionEditing'))return;_0x260198['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x1c996d{['tableProperties'];['tableCellProperties'];constructor(_0x437297){super(_0x437297),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 _0x2f53c6=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x238cf2 of this['tableProperties'])_0x2f53c6['enableCommand'](_0x238cf2,(_0x42faf9,_0x417ff2)=>{const _0x4dcc13=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x238cf2,[_0x4dcc13],this['tableProperties'],'tableProperties',_0x42faf9,_0x417ff2);});_0x2f53c6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2f53c6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2f53c6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2a17ca,_0x10b21f)=>this['handleDiscardAction'](this['tableProperties'],_0x2a17ca,_0x10b21f)),_0x2f53c6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x50dee1 of this['tableCellProperties'])_0x2f53c6['enableCommand'](_0x50dee1,(_0x23f7aa,_0x491e72)=>{const _0x7025f7=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x50dee1,_0x7025f7,this['tableCellProperties'],'tableCellProperties',_0x23f7aa,_0x491e72);});_0x2f53c6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2f53c6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2f53c6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4ed151,_0x5acdb4)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4ed151,_0x5acdb4)),_0x2f53c6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2f53c6['descriptionFactory']['registerDescriptionCallback'](_0x16c482=>this['handleSuggestionDescription'](_0x16c482));}['_handlePropertyChange'](_0x4eb221,_0x13389e,_0x562afa,_0x4b7f05,_0x5bebfd,_0x2568d4){const _0x4bc51c=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2568d4['batch'],()=>{for(const _0x4e2038 of _0x13389e){if(this['_getSuggestion'](_0x4e2038,_0x4b7f05))_0x5bebfd(_0x2568d4);else{const _0x44a3a4={};for(const _0x566217 of _0x562afa){const _0x2d890d=_0x4e2038['getAttribute'](_0x566217);void 0x0!==_0x2d890d&&(_0x44a3a4[_0x566217]=_0x2d890d);}_0x5bebfd(_0x2568d4),_0x4bc51c['markBlockFormat'](_0x4e2038,{'commandParams':[_0x44a3a4]},[],_0x4b7f05);}}});}['handleDiscardAction'](_0x2b973d,_0xe5b5ec,_0x22616f){const _0x28f0a2=_0xe5b5ec[0x0]['start']['nodeAfter'],_0x2d5df7=_0x22616f['commandParams'][0x0];this['editor']['model']['change'](_0x1183a1=>{for(const _0x36f76b of _0x2b973d)void 0x0!==_0x2d5df7[_0x36f76b]?_0x1183a1['setAttribute'](_0x36f76b,_0x2d5df7[_0x36f76b],_0x28f0a2):_0x1183a1['removeAttribute'](_0x36f76b,_0x28f0a2);});}['handleSuggestionDescription'](_0x4ca987){if(_0x4ca987['data'])switch(_0x4ca987['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'](_0x2f8e8a,_0x202f97){const _0x37f399=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x20093f of _0x37f399['getSuggestions']({'skipNotAttached':!0x0})){const _0x482bdb=_0x20093f['getContainedElement']();if(_0x20093f['subType']===_0x202f97&&_0x482bdb===_0x2f8e8a)return _0x20093f;}return null;}}const m='$elementName';class p extends _0x1c996d{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x2bd389,_0x27b90b,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(_0x172f94){function _0x54da87(_0x3c9fac){return _0x3c9fac['map'](_0x487f8c=>String['fromCharCode'](_0x487f8c))['join']('');}super(_0x172f94),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2414e1,_0x5d1d0a,_0x460a5e,_0x77a889)=>{this['_model']['change'](()=>{for(const _0x4019f7 of[..._0x77a889,..._0x460a5e])this['_model']['markers']['has'](_0x4019f7)&&_0x172f94['editing']['reconvertMarker'](_0x4019f7);});}),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']=_0x172f94['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(),_0x172f94['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x172f94['config']['get']('trackChanges.trackFormatChanges'),_0x172f94['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x172f94['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x172f94,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x54da87([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x54da87([0x34,0x30,0x34,0x38,0x31,0x32,0x32,0x32]);}['init'](){const _0x19d5b0=this['editor'],_0x5dbd58=(_0x1225c7,_0xf78085)=>{if('attribute'!=_0x1225c7)return'ck-suggestion-marker-'+_0x1225c7;const _0x43eb7c=_0xf78085['split']('|')[0x0];return this['_isBlockAttribute'](_0x43eb7c)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x19d5b0['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4452a9=>{const {id:_0x32e67f,type:_0x489dad,subType:_0x16fd5e}=this['_splitMarkerName'](_0x4452a9['markerName']),_0x3fba6c=['ck-suggestion-marker',_0x5dbd58(_0x489dad,_0x16fd5e)];let _0x5695d6=0xbb8;return this['activeMarkers']['includes'](_0x4452a9['markerName'])&&(_0x3fba6c['push']('ck-suggestion-marker--active'),_0x5695d6=0xbc2),'deletion'==_0x489dad&&(_0x5695d6+=0x5),{'classes':_0x3fba6c,'attributes':{'data-suggestion':_0x32e67f},'priority':_0x5695d6};}}),_0x19d5b0['conversion']['for']('dataDowncast')['add'](_0x5e2f38=>{_0x5e2f38['on']('addMarker:suggestion',(_0x5eb09d,_0xda90a9,_0x2e8be0)=>{if(!_0x2e8be0['options']['showSuggestionHighlights'])return;const _0x563833=_0xda90a9['item'];if(!_0x563833)return;const _0x59a6da=_0x2e8be0['mapper']['toViewElement'](_0x563833);_0x19d5b0['model']['schema']['isObject'](_0x563833)&&_0x59a6da&&!_0x59a6da['getCustomProperty']('widget')&&_0x59a6da['is']('containerElement')&&_0x37fa77(_0x59a6da,_0x2e8be0['writer']);},{'priority':'high'});}),_0x19d5b0['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x49956c,_0x2cf356)=>{if(!_0x2cf356['options']['showSuggestionHighlights'])return null;const {type:_0x3dd9d7,subType:_0x39762b}=this['_splitMarkerName'](_0x49956c['markerName']);return{'classes':['ck-suggestion-marker',_0x5dbd58(_0x3dd9d7,_0x39762b)],'priority':0xbb8};}});const _0x419c01=({showActiveMarkers:_0x5b4dbe=!0x0,isAttributeSuggestion:_0x2cedf7=!0x1}={})=>(_0x26d954,_0x22b907,_0x40919a)=>{if(!_0x22b907['item'])return;const {id:_0x43ce92}=this['_splitMarkerName'](_0x22b907['markerName']);if(_0x2cedf7){const _0x166e3e=this['_suggestions']['get'](_0x43ce92),_0x49a166=this['_getAttributeKey'](_0x166e3e);if(!this['_isBlockAttribute'](_0x49a166))return;}if(_0x22b907['item']['is']('selection'))return void _0x40919a['consumable']['consume'](_0x22b907['item'],_0x26d954['name']);const _0x2fab08=_0x40919a['mapper']['toViewElement'](_0x22b907['item']);if(_0x22b907['item']['is']('element')&&_0x19d5b0['model']['schema']['isBlock'](_0x22b907['item'])&&!_0x2fab08['getCustomProperty']('addHighlight')){_0x40919a['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2fab08),_0x40919a['writer']['setAttribute']('data-suggestion',_0x43ce92,_0x2fab08),_0x40919a['mapper']['bindElementToMarker'](_0x2fab08,_0x22b907['markerName']),_0x5b4dbe&&(this['activeMarkers']['includes'](_0x22b907['markerName'])?_0x40919a['writer']['addClass']('ck-suggestion-marker--active',_0x2fab08):_0x40919a['writer']['removeClass']('ck-suggestion-marker--active',_0x2fab08));for(const _0x16d63d of _0x19d5b0['model']['createRangeIn'](_0x22b907['item'])['getItems']())_0x40919a['consumable']['consume'](_0x16d63d,_0x26d954['name']);_0x40919a['consumable']['consume'](_0x22b907['item'],_0x26d954['name']);}};_0x19d5b0['conversion']['for']('dataDowncast')['add'](_0x1159e5=>{_0x1159e5['on']('addMarker:suggestion:formatBlock',(_0x36741f,_0x30e456,_0xc09200)=>{_0xc09200['options']['showSuggestionHighlights']&&_0x419c01({'showActiveMarkers':!0x1})(_0x36741f,_0x30e456,_0xc09200);},{'priority':'highest'});}),_0x19d5b0['conversion']['for']('dataDowncast')['add'](_0x566b6f=>{_0x566b6f['on']('addMarker:suggestion:attribute',(_0xb3fd9,_0x25ba72,_0x5d62af)=>{_0x5d62af['options']['showSuggestionHighlights']&&_0x419c01({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xb3fd9,_0x25ba72,_0x5d62af);},{'priority':'highest'});}),_0x19d5b0['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4c014d,_0x3161e0)=>_0x3161e0['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4c014d['substr'](0xb)}}),_0x19d5b0['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2fdf53,{writer:_0x41405a})=>{let _0x4c9a40='suggestion:'+_0x2fdf53['getAttribute']('suggestion-type')+':'+_0x2fdf53['getAttribute']('id');return _0x2fdf53['getAttribute']('marker-count')&&(_0x4c9a40+=':'+_0x2fdf53['getAttribute']('marker-count')),_0x41405a['createElement']('$marker',{'data-name':_0x4c9a40});}}),_0x19d5b0['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x19d5b0['conversion']['for']('editingDowncast')['add'](_0x23955b=>{_0x23955b['on']('addMarker:suggestion:formatBlock',_0x419c01(),{'priority':'high'});}),_0x19d5b0['conversion']['for']('editingDowncast')['add'](_0x43e6df=>{_0x43e6df['on']('addMarker:suggestion:attribute',_0x419c01({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x19d5b0['conversion']['for']('editingDowncast')['add'](_0x50c4d7=>{_0x50c4d7['on']('removeMarker:suggestion:formatBlock',(_0x40d0f7,_0x5dbac2,_0x4395d1)=>{const _0x3ca7f8=_0x4395d1['mapper']['markerNameToElements'](_0x5dbac2['markerName']);if(_0x3ca7f8){for(const _0x671011 of _0x3ca7f8)_0x671011['getCustomProperty']('addHighlight')||(_0x4395d1['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x671011),_0x4395d1['writer']['removeAttribute']('data-suggestion',_0x671011),_0x4395d1['mapper']['unbindElementFromMarkerName'](_0x671011,_0x5dbac2['markerName']));}},{'priority':'high'});}),_0x19d5b0['conversion']['for']('editingDowncast')['add'](_0x4f73ac=>{_0x4f73ac['on']('removeMarker:suggestion:attribute',(_0x307092,_0x23ba57,_0x21ca23)=>{const _0x2b9f50=_0x21ca23['mapper']['markerNameToElements'](_0x23ba57['markerName']);if(!_0x2b9f50)return;const {id:_0x120a0c}=this['_splitMarkerName'](_0x23ba57['markerName']),_0x2412db=this['_suggestions']['get'](_0x120a0c),_0x592de8=this['_getAttributeKey'](_0x2412db);if(this['_isBlockAttribute'](_0x592de8)){for(const _0x86f5e9 of _0x2b9f50)_0x86f5e9['getCustomProperty']('addHighlight')||(_0x21ca23['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x86f5e9),_0x21ca23['writer']['removeAttribute']('data-suggestion',_0x86f5e9),_0x21ca23['mapper']['unbindElementFromMarkerName'](_0x86f5e9,_0x23ba57['markerName']));}},{'priority':'high'});}),_0x19d5b0['model']['document']['registerPostFixer'](_0x5c1ad7=>{let _0x3a0151=!0x1;const _0x1755a0=Array['from'](_0x19d5b0['model']['document']['differ']['getChangedMarkers']()),_0x266bc4=new Set();for(const {name:_0x27f906,data:_0x2794e4}of _0x1755a0){const {group:_0xc71eaf,type:_0x233de4,subType:_0x1db4d0,id:_0x220601}=this['_splitMarkerName'](_0x27f906);if('suggestion'!==_0xc71eaf)continue;const _0x26351b=this['_suggestions']['get'](_0x220601);if(null!=_0x2794e4['newRange']){'formatInline'==_0x233de4&&(_0x3a0151=_0x3a0151||Et(_0x2794e4['newRange'],_0x27f906,_0x5c1ad7,_0x19d5b0['model']['schema']));const _0x5b7c94='attribute'==_0x233de4&&this['_isBlockAttribute'](_0x1db4d0['split']('|')[0x0]);if(_0x2794e4['newRange']['isCollapsed']||'$graveyard'==_0x2794e4['newRange']['root']['rootName']||'formatBlock'==_0x233de4&&!Ut(_0x2794e4['newRange'])||_0x5b7c94&&!Ut(_0x2794e4['newRange'])||'deletion'==_0x233de4&&!(!Tt(_0x5b5e97=_0x2794e4['newRange'])&&!function(_0x4a176f){return _0x4a176f['start']['parent']==_0x4a176f['end']['nodeBefore']&&_0x4a176f['start']['isAtEnd'];}(_0x5b5e97)))_0x5c1ad7['removeMarker'](_0x27f906),_0x3a0151=!0x0;else{if(!_0x26351b||!_0x26351b['isInContent'])continue;_0x266bc4['add'](_0x26351b);}}}var _0x5b5e97;return _0x266bc4['size']>0x0&&(_0x3a0151=!!this['_joinWithAdjacentSuggestions'](_0x266bc4)||_0x3a0151),_0x3a0151;}),_0x19d5b0['model']['document']['registerPostFixer'](_0x16cc15=>{let _0x4f8416=!0x1;for(const _0x1457cb of _0x19d5b0['model']['document']['differ']['getChanges']())if('insert'==_0x1457cb['type'])for(const _0x31da39 of this['_suggestions']['values']()){if(_0x31da39['isMultiRange']||!_0x31da39['isInContent'])continue;const _0x36a50c='formatBlock'==_0x31da39['type'],_0x25385c=this['_getAttributeKey'](_0x31da39),_0x3b1e26=_0x25385c&&this['_isBlockAttribute'](_0x25385c);if(!_0x36a50c&&!_0x3b1e26)continue;const _0x4e439a=_0x31da39['getFirstRange']();if(_0x4e439a['start']['parent']!=_0x4e439a['end']['parent']&&!_0x4e439a['end']['isAtEnd']){const _0x3ff371=_0x19d5b0['model']['createPositionAt'](_0x4e439a['start']['nodeAfter'],'end'),_0x615edd=_0x19d5b0['model']['createRange'](_0x4e439a['start'],_0x3ff371);_0x16cc15['updateMarker'](_0x31da39['getFirstMarker'](),{'range':_0x615edd}),_0x4f8416=!0x0;}}return _0x4f8416;}),_0x19d5b0['model']['document']['registerPostFixer'](_0x53f8fe=>this['_processAttributeChanges'](_0x53f8fe)),_0x19d5b0['model']['document']['registerPostFixer'](_0x2abbee=>!_0x2abbee['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2abbee)),_0x19d5b0['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x19d5b0['model']['document']['on']('change:data',(_0x43c9ce,_0xe9aab2)=>{if(!_0xe9aab2['isLocal']||_0xe9aab2['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x59d8ff=_0x19d5b0['model']['document']['differ']['getChanges']();if(0x0==_0x59d8ff['length'])return;const _0x3f9bf2=[],_0x5b69ca=_0x59d8ff['filter'](_0x597414=>'attribute'==_0x597414['type']),_0x441b54=_0x59d8ff['filter'](_0x54bc75=>'insert'==_0x54bc75['type']&&'$text'!=_0x54bc75['name']);for(const _0x396244 of _0x5b69ca)this['_isRegisteredAttribute'](_0x396244['attributeKey'])&&_0x3f9bf2['push']({'key':_0x396244['attributeKey'],'newValue':_0x396244['attributeNewValue'],'oldValue':_0x396244['attributeOldValue'],'range':Ot(_0x396244['range'],_0x19d5b0['model'])});for(const _0x341f5 of _0x441b54){if('rename'!=_0x341f5['action']&&'refresh'!=_0x341f5['action'])continue;const _0x38fcd3=Gt(_0x341f5['position']['nodeAfter'],_0x19d5b0['model']),_0x27a9f0=_0x341f5['before'];'rename'==_0x341f5['action']&&_0x3f9bf2['push']({'key':m,'newValue':_0x341f5['name'],'oldValue':_0x27a9f0['name'],'range':_0x38fcd3});for(const [_0x5a9c31,_0x38243e]of _0x27a9f0['attributes']){if(!this['_isRegisteredAttribute'](_0x5a9c31))continue;const _0x1fde13=_0x341f5['attributes']['get'](_0x5a9c31);_0x38243e!==_0x1fde13&&_0x3f9bf2['push']({'key':_0x5a9c31,'newValue':_0x1fde13,'oldValue':_0x38243e,'range':_0x38fcd3});}for(const [_0x457606,_0x18ea61]of _0x341f5['attributes'])this['_isRegisteredAttribute'](_0x457606)&&(_0x27a9f0['attributes']['has'](_0x457606)||_0x3f9bf2['push']({'key':_0x457606,'newValue':_0x18ea61,'oldValue':null,'range':_0x38fcd3}));}0x0!=_0x3f9bf2['length']&&_0x19d5b0['model']['enqueueChange'](_0xe9aab2,_0x28e09e=>{const _0x22ae52=_0x56ae18();for(const {range:_0x3c18dc,key:_0xe9ac1d,oldValue:_0x36a3a3,newValue:_0x5001af}of _0x3f9bf2)this['markAttributeChange'](_0x3c18dc,_0xe9ac1d,_0x36a3a3,_0x5001af,{'groupId':_0x22ae52});this['_reduceExistingSuggestions'](_0x28e09e,_0x3f9bf2);});},{'priority':'lowest'}),_0x19d5b0['model']['markers']['on']('update:suggestion',(_0x52cada,_0x3dbb21,_0x1a6031)=>{if(null==_0x1a6031){const {id:_0x30bcaf}=this['_splitMarkerName'](_0x3dbb21['name']),_0x28a761=this['_suggestions']['get'](_0x30bcaf);_0x28a761&&_0x28a761['addMarkerName'](_0x3dbb21['name']);}}),_0x19d5b0['model']['document']['on']('change:data',()=>{const _0x20b0d8=Array['from'](_0x19d5b0['model']['document']['differ']['getChangedMarkers']())['filter'](_0x13045d=>'suggestion'===this['_splitMarkerName'](_0x13045d['name'])['group']);if(0x0===_0x20b0d8['length'])return;_0x20b0d8['sort']((_0x2642cb,_0x30eb78)=>{const _0x236181=_0x2642cb['data']['oldRange'],_0x3fb7a1=_0x30eb78['data']['oldRange'];return null===_0x236181&&null===_0x3fb7a1?0x0:null===_0x236181&&null!==_0x3fb7a1?-0x1:null!==_0x236181&&null===_0x3fb7a1?0x1:_0x236181['start']['isBefore'](_0x3fb7a1['start'])?-0x1:0x1;});const _0x5cc4cd=new Set(),_0x743fd=new Set();for(const {name:_0x545247,data:_0x148edc}of _0x20b0d8){const {id:_0x7a534d}=this['_splitMarkerName'](_0x545247);if(null===_0x148edc['oldRange']){const _0x5dd468=this['_handleNewSuggestionMarker'](_0x545247);_0x743fd['add'](_0x5dd468);}else{const _0x27d48f=this['_suggestions']['get'](_0x7a534d);null!==_0x148edc['newRange']||_0x27d48f['isInContent']?(_0x5cc4cd['add'](_0x27d48f['head']),_0x743fd['add'](_0x27d48f)):this['_removeSuggestion'](_0x27d48f);}}_0x743fd['size']>0x0&&this['_refreshSuggestionsChain'](_0x743fd);for(const _0x3280d7 of _0x5cc4cd)this['fire']('suggestionChanged',_0x3280d7);}),_0x19d5b0['model']['on']('applyOperation',(_0x10ca10,_0x1105b5)=>{const _0x441808=_0x1105b5[0x0];if(!this['_suggestions']['size'])return;if(!_0x441808['isDocumentOperation'])return;if(_0x441808['batch']['isUndo']||!_0x441808['batch']['isLocal'])return;let _0x1db138,_0x4ecf0;switch(_0x441808['type']){case'insert':_0x1db138=_0x19d5b0['model']['createPositionAt'](_0x441808['position']),_0x4ecf0=_0x1db138['getShiftedBy'](_0x441808['howMany']);break;case'split':_0x1db138=_0x19d5b0['model']['createPositionAt'](_0x441808['splitPosition']),_0x4ecf0=_0x19d5b0['model']['createPositionAt'](_0x441808['moveTargetPosition']);break;case'move':_0x1db138=_0x19d5b0['model']['createPositionAt'](_0x441808['targetPosition']),_0x4ecf0=_0x1db138['getShiftedBy'](_0x441808['howMany']);break;default:return;}const _0x5f0406=_0x19d5b0['model']['createRange'](_0x1db138,_0x4ecf0);_0x19d5b0['model']['change'](()=>{for(const {suggestion:_0x8c07ae,meta:_0x504cbe}of this['_findSuggestions'](_0x5f0406)){if(_0x8c07ae['isMultiRange'])continue;if('formatInline'==_0x8c07ae['type'])continue;const _0x139035=this['_getAttributeKey'](_0x8c07ae);if(_0x139035&&this['_isBlockAttribute'](_0x139035)&&'split'!=_0x441808['type'])continue;const _0x4840f6=_0x8c07ae['data']&&_0x8c07ae['data']['multipleBlocks'];('formatBlock'!=_0x8c07ae['type']||'split'==_0x441808['type']&&!_0x4840f6)&&(_0x504cbe['containsRangeInObject']||'insertion'==_0x8c07ae['type']&&_0x504cbe['isOwn']||_0x8c07ae['getFirstRange']()['containsRange'](_0x5f0406)&&this['_breakSuggestionMarker'](_0x8c07ae,_0x1db138,_0x4ecf0));}});},{'priority':'lowest'}),_0x19d5b0['model']['on']('deleteContent',(_0x3e6156,_0x13b849)=>{const _0x33ead7=_0x13b849[0x0],_0x32334f=_0x13b849[0x1];if(_0x32334f&&_0x32334f['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x33ead7['isCollapsed'])return;const _0x5b84fc=_0x19d5b0['model']['schema'],{start:_0x93d1b7,end:_0x31a3c0}=_0x33ead7['getFirstRange'](),_0x409073=_0x93d1b7['nodeAfter']&&_0x5b84fc['isLimit'](_0x93d1b7['nodeAfter'])?null:_0x5b84fc['getNearestSelectionRange'](_0x93d1b7,'forward'),_0x26ece0=_0x31a3c0['nodeBefore']&&_0x5b84fc['isLimit'](_0x31a3c0['nodeBefore'])?null:_0x5b84fc['getNearestSelectionRange'](_0x31a3c0,'backward'),_0x20f258=_0x19d5b0['model']['createRange'](_0x409073?_0x409073['start']:_0x93d1b7,_0x26ece0?_0x26ece0['end']:_0x31a3c0);_0x19d5b0['model']['change'](_0x566930=>{this['markDeletion'](_0x20f258);const _0x169ff2=_0x19d5b0['model']['schema']['getNearestSelectionRange'](_0x20f258['start']);_0x33ead7['is']('documentSelection')?_0x566930['setSelection'](_0x169ff2):_0x33ead7['setTo'](_0x169ff2);}),_0x3e6156['stop']();},{'priority':_0x3ee875['normal']+0xa}),_0x19d5b0['model']['on']('insertContent',(_0x1931e9,_0x11c395)=>{const _0x3a8ce7=_0x11c395[_0x11c395['length']-0x1];_0x3a8ce7&&_0x3a8ce7['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x19d5b0['model']['change'](()=>{let _0x10b7c9=_0x19d5b0['model']['insertContent'](_0x11c395[0x0],_0x11c395[0x1],_0x11c395[0x2],{'forceDefaultExecution':!0x0});if(!_0x10b7c9)return;_0x1931e9['return']=_0x10b7c9['clone']();const _0x4ac4b6=_0x10b7c9['end']['nodeBefore'],_0x5c425a=_0x19d5b0['model']['schema'];_0x4ac4b6&&_0x5c425a['isBlock'](_0x4ac4b6)&&!_0x5c425a['isObject'](_0x4ac4b6)&&(_0x10b7c9=_0x19d5b0['model']['createRange'](_0x10b7c9['start'],_0x19d5b0['model']['createPositionAt'](_0x4ac4b6,'end'))),this['markInsertion'](_0x10b7c9);}),_0x1931e9['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xf11843=new $(_0x19d5b0,this['_suggestions']);_0x19d5b0['commands']['add']('acceptSuggestion',_0xf11843),this['enableCommand']('acceptSuggestion');const _0xf93e7e=new B(_0x19d5b0,this['_suggestions']);_0x19d5b0['commands']['add']('discardSuggestion',_0xf93e7e),this['enableCommand']('discardSuggestion'),_0x19d5b0['commands']['add']('acceptAllSuggestions',new x(_0x19d5b0,_0xf11843,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x19d5b0['commands']['add']('discardAllSuggestions',new x(_0x19d5b0,_0xf93e7e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x19d5b0['commands']['add']('acceptSelectedSuggestions',new R(_0x19d5b0,_0xf11843,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x19d5b0['commands']['add']('discardSelectedSuggestions',new R(_0x19d5b0,_0xf93e7e,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x20c304=_0x19d5b0['plugins']['get']('CommentsRepository');this['listenTo'](_0x20c304,'addComment',(_0x34bbab,{threadId:_0x3e2612})=>{const _0x2d4e76=this['_suggestions']['get'](_0x3e2612);_0x2d4e76&&_0x2d4e76['commentThread']&&0x1===_0x2d4e76['commentThread']['length']&&this['_updateSuggestionData'](_0x3e2612,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x20c304,'removeComment',(_0x24ac69,{threadId:_0x5b51ea})=>{const _0xfd1ebf=this['_suggestions']['get'](_0x5b51ea);_0xfd1ebf&&_0xfd1ebf['commentThread']&&!_0xfd1ebf['commentThread']['length']&&this['_updateSuggestionData'](_0x5b51ea,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x22bfcf){if(this['_adapter'])throw new _0x564d2a('track-changes-adapter-already-set',this);this['_adapter']=_0x22bfcf;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x42da1b=!0x1,toJSON:_0x2179fa=!0x1}={}){const _0x23db51=[];for(const _0x1654a6 of this['_suggestions']['values']())_0x42da1b&&!_0x1654a6['isInContent']||_0x23db51['push'](_0x1654a6);return _0x2179fa?_0x23db51['map'](_0x517ae4=>_0x517ae4['toJSON']()):_0x23db51;}['getSuggestion'](_0x35423){const _0xec4aec=this['_suggestions']['get'](_0x35423);if(!_0xec4aec)throw new _0x564d2a('track-changes-suggestion-not-found',this);return _0xec4aec;}['hasSuggestion'](_0x492540){return this['_suggestions']['has'](_0x492540);}['addSuggestionData'](_0x3d00d7){const {authorId:_0x442345,id:_0x41fec3,attributes:_0x178f18}=_0x3d00d7,[_0x218d53,_0x1ef835]=_0x3d00d7['type']['split'](':'),_0x5cd145=this['_suggestions']['get'](_0x41fec3)||this['_createSuggestion'](_0x218d53,_0x1ef835,_0x41fec3,_0x442345,_0x178f18);if(this['_addThreadToSuggestion'](_0x5cd145),this['_checkSuggestionCorrectness'](_0x5cd145,_0x218d53,_0x1ef835||null,_0x442345),_0x5cd145['createdAt']=_0x3d00d7['createdAt'],_0x5cd145['_isDataLoaded']=!0x0,_0x178f18&&_0x178f18['@external']){const _0xdabef4=_0x178f18['@external'],_0x35a888=this['_getExternalAuthor'](_0xdabef4['authorName']);_0x5cd145['authoredAt']=_0xdabef4['createdAt'],_0x5cd145['author']=_0x35a888,_0x5cd145['isExternal']=!0x0;}else _0x5cd145['authoredAt']=_0x3d00d7['createdAt'];switch(_0x3d00d7['data']&&(_0x5cd145['data']=_0x3d00d7['data']),_0x3d00d7['attributes']&&(_0x5cd145['attributes']=_0x3d00d7['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5cd145['_saved']=!0x0),this['_suggestionState']['get'](_0x5cd145)){case'notReady':this['_suggestionState']['set'](_0x5cd145,'dataReady');break;case'markerReady':_0x5cd145['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5cd145])),this['_refreshSuggestionsChain'](new Set([_0x5cd145])),this['_suggestionState']['set'](_0x5cd145,'ready'),this['fire']('suggestionLoaded',_0x5cd145)):this['_suggestionState']['set'](_0x5cd145,'removed');}return _0x5cd145;}['acceptSuggestion'](_0x5f404c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x402b5c of _0x5f404c['getAllAdjacentSuggestions']())_0x402b5c['accept']();});});}['discardSuggestion'](_0x3487b7){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1c4a85 of _0x3487b7['getAllAdjacentSuggestions']())_0x1c4a85['discard']();});});}['enableCommand'](_0x47e1d1,_0x3d50a4){const _0xac75fc=this['editor']['commands']['get'](_0x47e1d1);if(!_0xac75fc)throw new _0x564d2a('track-changes-command-not-found',this,{'commandName':_0x47e1d1});if(this['_enabledCommands']['has'](_0xac75fc))throw new _0x564d2a('track-changes-enable-command-twice',this,{'commandName':_0x47e1d1});this['_enabledCommands']['add'](_0xac75fc),_0x3d50a4&&_0xac75fc['on']('execute',(_0x5b7b45,_0x78228f)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x78228f['length']>0x0&&_0x78228f[_0x78228f['length']-0x1]&&_0x78228f[_0x78228f['length']-0x1]['forceDefaultExecution']?_0x78228f['pop']():(_0x5b7b45['return']=_0x3d50a4((..._0x18d3ba)=>_0xac75fc['execute'](..._0x18d3ba,{'forceDefaultExecution':!0x0}),..._0x78228f),_0x5b7b45['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x426094){let _0x5f0f71,_0x5026bc;const _0x38cfb7=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5f0f71=_0x426094();}catch(_0x366064){_0x5026bc=_0x366064;}return _0x38cfb7||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5026bc&&_0x564d2a['rethrowUnexpectedError'](_0x5026bc,this),_0x5f0f71;}['markInsertion'](_0x4cb0fe,_0x2707f4=null,_0x550d58={}){if(_0x4cb0fe['isCollapsed'])return null;const _0x514fb5=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x55535c,meta:_0x4c5e90}of this['_findSuggestions'](_0x4cb0fe,'insertion'))if(_0x4c5e90['isOwn']){if(!_0x4c5e90['isNextTo']){if(_0x4c5e90['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x55535c,_0x550d58))continue;return _0x55535c;}if(Lt(_0x55535c,_0x550d58))return _0x55535c;this['_breakSuggestionMarker'](_0x55535c,_0x4cb0fe['start'],_0x4cb0fe['end']);break;}if(_0x2707f4==_0x55535c['subType']&&Lt(_0x55535c,_0x550d58)){const _0x2886ed=_0x55535c['getFirstRange']();return _0x2886ed['start']['isEqual'](_0x4cb0fe['end'])?this['_setSuggestionRange'](_0x55535c,this['_model']['createRange'](_0x4cb0fe['start'],_0x2886ed['end'])):this['_setSuggestionRange'](_0x55535c,this['_model']['createRange'](_0x2886ed['start'],_0x4cb0fe['end'])),_0x55535c;}}const _0x13e4e2=_0x56ae18(),_0x3cb65b=_0x514fb5['id'],_0xf01205=_0x2707f4?'insertion:'+_0x2707f4:'insertion',_0x2f8f6f=this['_setSuggestionData']({'id':_0x13e4e2,'type':_0xf01205,'createdAt':new Date(),'authorId':_0x3cb65b,'attributes':_0x550d58});return this['_addSuggestionMarker'](_0xf01205,_0x13e4e2,_0x3cb65b,_0x4cb0fe),_0x2f8f6f;}['markMultiRangeInsertion'](_0xdca9e4,_0xf7f00b='multi',_0x1c28ce={}){const _0x3ffa3a=this['editor']['plugins']['get']('Users')['me'],_0x48ab03=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xf7f00b,'join');for(const _0x1fedff of this['getSuggestions']())if(_0x1fedff['author']['id']==_0x3ffa3a['id']&&'insertion'==_0x1fedff['type']&&_0x1fedff['subType']==_0xf7f00b&&Lt(_0x1fedff,_0x1c28ce)&&(_0x48ab03(_0x1fedff['getRanges'](),_0xdca9e4)||_0x48ab03(_0xdca9e4,_0x1fedff['getRanges']()))){for(const _0x32bb1d of _0xdca9e4)_0x1fedff['addRange'](_0x32bb1d);return _0x1fedff;}for(const {suggestion:_0x5091a7,meta:_0x557877}of this['_findSuggestions'](_0xdca9e4,'insertion')){if(!_0x557877['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x557877['containsRangeInObject'])continue;if(!Lt(_0x5091a7,_0x1c28ce))continue;let _0x5457bd=!0x0;for(const _0x4bbaf9 of _0x5091a7['getRanges']())for(const _0x2c33d8 of _0xdca9e4)if(!_0x4bbaf9['containsRange'](_0x2c33d8)){_0x5457bd=!0x1;break;}if(_0x5457bd)return _0x5091a7;}const _0x20ff22=_0x56ae18(),_0x20e03b=_0x3ffa3a['id'],_0x5c5e70='insertion:'+_0xf7f00b,_0x57a1dc=this['_setSuggestionData']({'id':_0x20ff22,'type':_0x5c5e70,'createdAt':new Date(),'authorId':_0x20e03b,'attributes':_0x1c28ce});for(const _0x4fb828 of _0xdca9e4)this['_addSuggestionMarker'](_0x5c5e70,_0x20ff22,_0x20e03b,_0x4fb828,u['getMultiRangeId']());return _0x57a1dc;}['markInlineFormat'](_0x5e6ba5,_0x4e3c22,_0x6df814=null,_0x3d3528={}){if(_0x6df814=_0x6df814||Vt(_0x4e3c22),_0x5e6ba5['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x346cc4=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x6df814,'accept');return this['forceDefaultExecution'](()=>_0x346cc4([_0x5e6ba5],_0x4e3c22,_0x3d3528)),null;}const _0x3c245d=this['editor']['plugins']['get']('Users')['me'],_0xfbddda=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x23b1a4,meta:_0x502077}of this['_findSuggestions'](_0x5e6ba5,'insertion'))_0x502077['isOwn']&&!_0x502077['isInsideObject']&&_0xfbddda['push'](..._0x23b1a4['getRanges']());}const _0x53a333=function(_0x1d79bf,_0x401e02){const _0x258ee8=[];for(const _0x3a4707 of _0x401e02){const _0x2ea2be=_0x1d79bf['getIntersection'](_0x3a4707);_0x2ea2be&&_0x258ee8['push'](_0x2ea2be);}return _0x258ee8;}(_0x5e6ba5,_0xfbddda),_0x49f463=function(_0x7445bd,_0x2d63b2){const _0xcac814=[_0x7445bd];for(const _0x51ebbd of _0x2d63b2){let _0x113094=0x0;for(;_0x113094<_0xcac814['length'];){const _0x137bf3=_0xcac814[_0x113094]['getDifference'](_0x51ebbd);_0xcac814['splice'](_0x113094,0x1,..._0x137bf3),_0x113094+=_0x137bf3['length'];}}return _0xcac814;}(_0x5e6ba5,_0xfbddda);_0x53a333['length']&&this['_model']['change'](()=>{for(const _0x16b7df of _0x53a333){const _0x8ed115=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x6df814,'accept');this['forceDefaultExecution'](()=>_0x8ed115([_0x16b7df],_0x4e3c22,_0x3d3528));}});for(const _0x2973f7 of _0x49f463){let _0x3c8b83=null,_0x53b28a=_0x2973f7['start'],_0x223fca=_0x2973f7['end'];for(const {suggestion:_0x3bc3af,meta:_0x2e2fda}of this['_findSuggestions'](_0x2973f7,'formatInline')){if(!_0x2e2fda['isOwn'])continue;if(_0x3bc3af['subType']!=_0x6df814)continue;if(!Lt(_0x3bc3af,_0x3d3528))continue;const _0x419a8e=_0x3bc3af['getFirstRange']();if(_0x419a8e['containsRange'](_0x2973f7,!0x0))return null;_0x53b28a=_0x53b28a['isBefore'](_0x419a8e['start'])?_0x53b28a:_0x419a8e['start'],_0x223fca=_0x223fca['isAfter'](_0x419a8e['end'])?_0x223fca:_0x419a8e['end'],_0x3c8b83?_0x419a8e['start']['isBefore'](_0x3c8b83['getFirstRange']()['start'])?(_0x3c8b83['removeMarkers'](),_0x3c8b83=_0x3bc3af):_0x3bc3af['removeMarkers']():_0x3c8b83=_0x3bc3af;}const _0x22687a=this['_model']['createRange'](_0x53b28a,_0x223fca);if(_0x3c8b83)this['_setSuggestionRange'](_0x3c8b83,_0x22687a);else{const _0x2074b7=_0x56ae18(),_0x34afda=_0x3c245d['id'];this['_setSuggestionData']({'id':_0x2074b7,'type':'formatInline:'+_0x6df814,'data':_0x4e3c22,'createdAt':new Date(),'authorId':_0x34afda,'attributes':_0x3d3528}),this['_addSuggestionMarker']('formatInline:'+_0x6df814,_0x2074b7,_0x34afda,_0x22687a);}}return null;}['markBlockFormat'](_0x5b5b92,_0x5214cc,_0x3c315a=[],_0x260581=null,_0xce10b0={}){_0x5214cc['formatGroupId']||(_0x5214cc['formatGroupId']=_0x5214cc['commandName']),_0x5214cc['multipleBlocks']=_0x5b5b92['is']('range'),_0x260581=_0x260581||Vt(_0x5214cc);const _0x39b2fc=_0x3c315a['map'](_0xae09ba=>Gt(_0xae09ba,this['_model'])),_0x3b6bef=_0x5b5b92['is']('range')?_0x5b5b92:Gt(_0x5b5b92,this['_model']);if('never'===this['_trackFormatChanges']){const _0x1b7651=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x260581,'accept');return this['forceDefaultExecution'](()=>_0x1b7651([_0x3b6bef],_0x5214cc,_0xce10b0)),null;}_0x39b2fc['push'](_0x3b6bef);let _0x24e55a=!0x0;for(const _0x20fa79 of _0x39b2fc)if(!this['_rangeIsInLocalUserInsertion'](_0x20fa79)){_0x24e55a=!0x1;break;}if(_0x24e55a&&'always'!==this['_trackFormatChanges']){const _0x145f06=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x260581,'accept');return this['forceDefaultExecution'](()=>_0x145f06([_0x3b6bef],_0x5214cc,_0xce10b0)),null;}let _0x30eead=null,_0x50a10b=_0x3b6bef['start'],_0x229274=_0x3b6bef['end'];for(const {suggestion:_0xf87b76,meta:_0x582d3a}of this['_findSuggestions'](_0x3b6bef,'formatBlock')){if(!_0x582d3a['isOwn'])continue;if(_0x582d3a['isNextTo']||_0x582d3a['containsRangeInObject']||_0x582d3a['isInsideObject'])continue;if(_0xf87b76['data']['formatGroupId']!=_0x5214cc['formatGroupId'])continue;if(!Lt(_0xf87b76,_0xce10b0))continue;const _0x4c57e2=_0xf87b76['getFirstRange']();if(_0xf87b76['subType']==_0x260581){if(_0x4c57e2['containsRange'](_0x3b6bef,!0x0))return null;_0x50a10b=_0x50a10b['isBefore'](_0x4c57e2['start'])?_0x50a10b:_0x4c57e2['start'],_0x229274=_0x229274['isAfter'](_0x4c57e2['end'])?_0x229274:_0x4c57e2['end'],_0x30eead?_0x4c57e2['start']['isBefore'](_0x30eead['getFirstRange']()['start'])?(_0x30eead['removeMarkers'](),_0x30eead=_0xf87b76):_0xf87b76['removeMarkers']():_0x30eead=_0xf87b76;}else{const _0x155aa6=_0x3b6bef['getIntersection'](_0x4c57e2);this['_cutOutSuggestionMarker'](_0xf87b76,_0x155aa6);}}const _0x11918b=this['editor']['plugins']['get']('Users')['me'],_0x433d97=_0x56ae18(),_0x672897=_0x11918b['id'];if(_0x30eead)return this['_setSuggestionRange'](_0x30eead,this['_model']['createRange'](_0x50a10b,_0x229274)),_0x30eead;{const _0x485638=this['_setSuggestionData']({'id':_0x433d97,'type':'formatBlock:'+_0x260581,'data':_0x5214cc,'createdAt':new Date(),'authorId':_0x672897,'attributes':_0xce10b0});return this['_addSuggestionMarker']('formatBlock:'+_0x260581,_0x433d97,_0x672897,this['_model']['createRange'](_0x50a10b,_0x229274)),_0x485638;}}['markMultiRangeBlockFormat'](_0x150b43,_0x16b47b,_0x13b7de=[],_0x3529fc=null,_0x10642c={}){_0x16b47b['formatGroupId']||(_0x16b47b['formatGroupId']=_0x16b47b['commandName']);const _0x44aad8=_0x150b43[0x0];_0x16b47b['multipleBlocks']=_0x44aad8['is']('range'),_0x3529fc=_0x3529fc||Vt(_0x16b47b);const _0x235724=_0x13b7de['map'](_0x42276c=>Gt(_0x42276c,this['_model'])),_0x29eb69=_0x44aad8['is']('range')?_0x150b43:_0x150b43['map'](_0x2a8758=>Gt(_0x2a8758,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1995e2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3529fc,'accept');return this['forceDefaultExecution'](()=>_0x1995e2(_0x29eb69,_0x16b47b,_0x10642c)),null;}_0x235724['push'](..._0x29eb69);let _0x33e617=!0x0;for(const _0x5cc6b2 of _0x235724)if(!this['_rangeIsInLocalUserInsertion'](_0x5cc6b2)){_0x33e617=!0x1;break;}if(_0x33e617&&'always'!==this['_trackFormatChanges']){const _0x3a0bf8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3529fc,'accept');return this['forceDefaultExecution'](()=>_0x3a0bf8(_0x29eb69,_0x16b47b,_0x10642c)),null;}const _0x48418b=this['editor']['plugins']['get']('Users')['me'];for(const _0x117f5a of this['getSuggestions']()){if(_0x117f5a['author']['id']!=_0x48418b['id'])continue;if('formatBlock'!=_0x117f5a['type']||_0x117f5a['data']['formatGroupId']!=_0x16b47b['formatGroupId'])continue;if(!Lt(_0x117f5a,_0x10642c))continue;const _0x1dad1f=_0x117f5a['subType']==_0x3529fc;for(let _0x32ca8b=0x0;_0x32ca8b<_0x29eb69['length'];_0x32ca8b++){const _0x12b07a=_0x29eb69[_0x32ca8b];for(const _0x17dd9d of _0x117f5a['getMarkers']()){const _0x2a0152=_0x17dd9d['getRange']();if(_0x12b07a['isEqual'](_0x2a0152)){_0x1dad1f?(_0x29eb69['splice'](_0x32ca8b,0x1),_0x32ca8b--):_0x117f5a['removeMarker'](_0x17dd9d['name']);break;}}}}if(0x0==_0x29eb69['length'])return null;const _0x3a366f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3529fc,'join');for(const _0x57ada5 of this['getSuggestions']())if(_0x57ada5['author']['id']==_0x48418b['id']&&'formatBlock'==_0x57ada5['type']&&_0x57ada5['data']['formatGroupId']==_0x16b47b['formatGroupId']&&_0x57ada5['subType']==_0x3529fc&&Lt(_0x57ada5,_0x10642c)&&(_0x3a366f(_0x57ada5['getRanges'](),_0x29eb69)||_0x3a366f(_0x29eb69,_0x57ada5['getRanges']()))){for(const _0x2cb902 of _0x29eb69)_0x57ada5['addRange'](_0x2cb902);return _0x57ada5;}const _0xa1a562=_0x56ae18(),_0x52bcb4=_0x48418b['id'],_0x1afc23='formatBlock:'+_0x3529fc,_0x5b6e52=this['_setSuggestionData']({'id':_0xa1a562,'type':_0x1afc23,'data':_0x16b47b,'createdAt':new Date(),'authorId':_0x52bcb4,'attributes':_0x10642c});for(const _0x5c11fd of _0x29eb69)this['_addSuggestionMarker'](_0x1afc23,_0xa1a562,_0x52bcb4,_0x5c11fd,u['getMultiRangeId']());return _0x5b6e52;}['markDeletion'](_0x2ca138,_0x4a01d7=null,_0x2e4471={}){if(_0x2ca138['isCollapsed'])return null;const _0x2450e0=this['editor']['plugins']['get']('Users')['me'],_0x531b62=new _0x14f38f(_0x2ca138['start'],_0x2ca138['end']);for(const {suggestion:_0x284109,meta:_0x7cf9a2}of this['_findSuggestions'](_0x531b62,'insertion'))if(_0x7cf9a2['isOwn']&&!_0x7cf9a2['isNextTo']){if(_0x284109['isMultiRange']){const _0x1c6e2c=_0x284109['getRanges']()['filter'](_0x46da17=>'$graveyard'!=_0x46da17['root']['rootName']);_0x1c6e2c['every'](_0x39280a=>_0x531b62['containsRange'](_0x39280a,!0x0))&&_0x284109['discard']();if(_0x1c6e2c['some'](_0x187492=>_0x187492['containsRange'](_0x531b62,!0x0))){const _0x41b2ef=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4a01d7,'accept');return this['forceDefaultExecution'](()=>_0x41b2ef([_0x531b62],null,_0x2e4471)),null;}}else{const _0x2a0870=_0x531b62['getIntersection'](_0x284109['getFirstRange']());null!==_0x2a0870&&_0x284109['_onDiscard']([_0x2a0870],null,_0x2e4471);}}if(_0x531b62['detach'](),_0x531b62['isCollapsed']||'$graveyard'==_0x531b62['root']['rootName'])return null;let _0x55dada=null,_0x22f235=_0x531b62['start'],_0x11b109=_0x531b62['end'];const _0x339bc7=this['_findSuggestions'](_0x531b62,'deletion');for(const {suggestion:_0x1839f7,meta:_0xe6e620}of _0x339bc7){const _0x3e1882=this['_model']['createRange'](_0x22f235,_0x11b109);if(_0xe6e620['isOwn']&&(this['_mergeNestedSuggestions']||!_0xe6e620['containsRangeInObject']&&!_0xe6e620['isInsideObject'])){if(_0x1839f7['isMultiRange']){if(!Lt(_0x1839f7,_0x2e4471))continue;let _0x18ae6d=!0x0;for(const _0x4b7e09 of _0x1839f7['getRanges']()){if(_0x4b7e09['containsRange'](_0x3e1882,!0x0))return _0x1839f7;_0x3e1882['containsRange'](_0x4b7e09)||(_0x18ae6d=!0x1);}_0x18ae6d&&_0x1839f7['discard']();}else{const _0x4f2392=_0x1839f7['getFirstRange']();if(_0x4f2392['containsRange'](_0x3e1882,!0x0))return _0x1839f7;if(!Lt(_0x1839f7,_0x2e4471)){_0x3e1882['containsRange'](_0x4f2392)?_0x1839f7['removeMarkers']():_0x4f2392['containsPosition'](_0x22f235)?_0x22f235=_0x4f2392['end']:_0x4f2392['containsPosition'](_0x11b109)&&(_0x11b109=_0x4f2392['start']);continue;}_0x22f235=_0x22f235['isBefore'](_0x4f2392['start'])?_0x22f235:_0x4f2392['start'],_0x11b109=_0x11b109['isAfter'](_0x4f2392['end'])?_0x11b109:_0x4f2392['end'],_0x2e4471=Object['assign']({},_0x1839f7['attributes']),_0x55dada?_0x4f2392['start']['isBefore'](_0x55dada['getFirstRange']()['start'])?(_0x55dada['removeMarkers'](),_0x55dada=_0x1839f7):_0x1839f7['removeMarkers']():_0x55dada=_0x1839f7;}}}if(_0x55dada)return this['_setSuggestionRange'](_0x55dada,this['_model']['createRange'](_0x22f235,_0x11b109)),_0x55dada;{const _0x443a29=_0x56ae18(),_0x3e13d7=this['_model']['createRange'](_0x22f235,_0x11b109),_0x1c436d=_0x2450e0['id'],_0x1e4c3c=_0x4a01d7?'deletion:'+_0x4a01d7:'deletion',_0xae2aff=this['_setSuggestionData']({'id':_0x443a29,'type':_0x1e4c3c,'createdAt':new Date(),'authorId':_0x1c436d,'attributes':_0x2e4471});return this['_addSuggestionMarker'](_0x1e4c3c,_0x443a29,_0x1c436d,_0x3e13d7),_0xae2aff;}}['markMultiRangeDeletion'](_0x11a21a,_0x356a9e='multi',_0x1be4f7={}){const _0x114142=this['editor']['plugins']['get']('Users')['me'],_0xf960a9=_0x11a21a['map'](_0x697fa2=>new _0x14f38f(_0x697fa2['start'],_0x697fa2['end'])),_0x592b25=new Set();for(const {suggestion:_0x5d51c1,meta:_0x201420}of this['_findSuggestions'](_0xf960a9,'insertion'))_0x201420['isOwn']&&!_0x201420['isNextTo']&&_0x592b25['add'](_0x5d51c1);for(const _0x3f412e of _0x592b25)if(_0x3f412e['isMultiRange']){const _0x1138a9=_0x3f412e['getRanges']();(!_0x3f412e['attributes']||!_0x3f412e['attributes']['skipNestingCheck'])&&(_0x1138a9['every'](_0x96c838=>_0xf960a9['some'](_0x2082c0=>_0x2082c0['containsRange'](_0x96c838,!0x0)))&&_0x3f412e['discard']());if(_0xf960a9['every'](_0x5d1c03=>_0x1138a9['some'](_0x4d8a54=>_0x4d8a54['containsRange'](_0x5d1c03,!0x0)))){const _0x1af0c1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x356a9e,'accept');return this['forceDefaultExecution'](()=>_0x1af0c1(_0x11a21a,null,_0x1be4f7)),null;}}else{const _0x191287=_0x3f412e['getFirstRange']();_0xf960a9['some'](_0x59d90d=>_0x59d90d['containsRange'](_0x191287,!0x0))&&_0x3f412e['discard']();if(_0xf960a9['every'](_0x175fc1=>_0x191287['containsRange'](_0x175fc1,!0x0))){const _0x5d7e1c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x356a9e,'accept');return this['forceDefaultExecution'](()=>_0x5d7e1c(_0xf960a9,null,_0x1be4f7)),null;}}const _0x1fc0e1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x356a9e,'join');let _0x34deef=null;for(const _0x3640e8 of this['getSuggestions']())if(_0x3640e8['author']['id']==_0x114142['id']&&_0x3640e8['isInContent']&&'deletion'==_0x3640e8['type']&&_0x3640e8['subType']==_0x356a9e&&Lt(_0x3640e8,_0x1be4f7)&&(_0x1fc0e1(_0x3640e8['getRanges'](),_0xf960a9)||_0x1fc0e1(_0xf960a9,_0x3640e8['getRanges']()))){if(_0x34deef){if(_0x3640e8['commentThread']&&_0x3640e8['commentThread']['length'])continue;for(const _0x4384b5 of _0x3640e8['getRanges']())_0x34deef['isIntersectingWithRange'](_0x4384b5)||_0x34deef['addRange'](_0x4384b5);_0x3640e8['removeMarkers']();}else{_0x34deef=_0x3640e8;for(const _0x2987a4 of _0xf960a9)_0x3640e8['isIntersectingWithRange'](_0x2987a4)||_0x3640e8['addRange'](_0x2987a4);}}if(_0x34deef)return _0x34deef;_0x592b25['clear']();for(const {suggestion:_0x59e133,meta:_0x424335}of this['_findSuggestions'](_0xf960a9,'deletion'))_0x424335['isOwn']&&(this['_mergeNestedSuggestions']||!_0x424335['containsRangeInObject']&&!_0x424335['isInsideObject'])&&Lt(_0x59e133,_0x1be4f7)&&_0x592b25['add'](_0x59e133);for(const _0x425602 of _0x592b25){const _0x57393a=_0x425602['getRanges']();if(!_0x1be4f7||!_0x1be4f7['skipNestingCheck']){if(_0xf960a9['every'](_0x204b0e=>_0x57393a['some'](_0x20ed80=>_0x20ed80['containsRange'](_0x204b0e,!0x0))))return _0x425602;}(!_0x425602['attributes']||!_0x425602['attributes']['skipNestingCheck'])&&(_0x57393a['every'](_0x59f710=>_0xf960a9['some'](_0x53c1d1=>_0x53c1d1['containsRange'](_0x59f710,!0x0)))&&_0x425602['discard']());}const _0x3fdb0b=_0x56ae18(),_0x3b46b8=_0x114142['id'],_0x76ac61='deletion:'+_0x356a9e,_0x461323=this['_setSuggestionData']({'id':_0x3fdb0b,'type':_0x76ac61,'createdAt':new Date(),'authorId':_0x3b46b8,'attributes':_0x1be4f7});for(const _0x3344bf of _0xf960a9)_0x3344bf['detach'](),_0x3344bf['isCollapsed']||'$graveyard'==_0x3344bf['root']['rootName']||this['_addSuggestionMarker'](_0x76ac61,_0x3fdb0b,_0x3b46b8,_0x3344bf,u['getMultiRangeId']());return _0x461323;}['markAttributeChange'](_0x5fe10f,_0x4adc25,_0x4fe8e8,_0x5aa6b0,_0x14501d){if(_0x5fe10f['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x53ea26=this['editor']['plugins']['get']('Users')['me']['id'],_0x1be04b=Array['from'](this['_suggestions']['values']())['filter'](_0x2836a2=>'attribute'==_0x2836a2['type']&&_0x2836a2['data']['key']==_0x4adc25&&_0x2836a2['isIntersectingWithRange'](_0x5fe10f));if('default'===this['_trackFormatChanges']){const _0x46f5a8=this['_findSuggestions'](_0x5fe10f,'insertion')['filter'](({meta:_0x228b4d})=>_0x228b4d['isOwn']&&!_0x228b4d['isInsideObject']&&!_0x228b4d['isNextTo'])['map'](({suggestion:_0x497831})=>_0x497831);_0x1be04b['unshift'](..._0x46f5a8);}const _0x38bf83=new Map([[_0x5fe10f,_0x4fe8e8]]);for(const _0x91d377 of _0x1be04b){const _0x51f153='attribute'==_0x91d377['type']?_0x91d377['data']['oldValue']:void 0x0,_0x3d5951=_0x91d377['getFirstRange'](),_0x26cb03=Array['from'](_0x38bf83['keys']())['find'](_0x1a32c1=>_0x1a32c1['isIntersecting'](_0x3d5951));if(!_0x26cb03)continue;const _0x370dcb=_0x26cb03['getDifference'](_0x3d5951);this['_isBlockAttribute'](_0x4adc25)&&'insertion'==_0x91d377['type']&&0x0!=_0x370dcb['length']||(_0x38bf83['delete'](_0x26cb03),_0x370dcb['forEach'](_0x5ccf15=>{_0x38bf83['set'](_0x5ccf15,_0x4fe8e8);}),'insertion'!=_0x91d377['type']&&_0x51f153!=_0x5aa6b0&&_0x38bf83['set'](_0x26cb03['getIntersection'](_0x3d5951),_0x51f153));}const _0x3556fa=[];for(const [_0x3a9835,_0x474c3d]of _0x38bf83){const _0x26975c=_0x56ae18(),_0x2144a2={'key':_0x4adc25,'oldValue':_0x474c3d,'newValue':_0x5aa6b0};_0x4adc25['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':_0x4adc25});const _0x1a8109=('attribute:'+(_0x4adc25+'|'+Vt({'newValue':_0x5aa6b0})))['substring'](0x0,0x3c),_0x4b476b=this['_setSuggestionData']({'id':_0x26975c,'type':_0x1a8109,'data':_0x2144a2,'createdAt':new Date(),'authorId':_0x53ea26,'attributes':_0x14501d});_0x3556fa['push'](_0x4b476b),this['_addSuggestionMarker'](_0x1a8109,_0x26975c,_0x53ea26,_0x3a9835);}return _0x3556fa;}['enableDefaultAttributesIntegration'](_0x3db358){this['enableCommand'](_0x3db358,(_0x25cef2,..._0x1e01d3)=>{this['_recordAttributeChanges'](()=>{_0x25cef2(..._0x1e01d3);});});}['registerBlockAttribute'](_0x405104){this['_blockAttributeKeys']['add'](_0x405104);}['registerInlineAttribute'](_0x160200){this['_inlineAttributeKeys']['add'](_0x160200);}['_getAttributeKey'](_0x459b9f){return'attribute'==_0x459b9f['type']?_0x459b9f['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x207561,_0x2a4c4a){const _0x26a2db=_0x207561['getFirstMarker']();this['_model']['change'](_0x4283af=>{_0x4283af['updateMarker'](_0x26a2db,{'range':_0x2a4c4a});});}['_addThreadToSuggestion'](_0x159d30){const _0x33b211=_0x159d30['id'],_0x472d7a=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x33b211)||this['_commentsRepository']['addCommentThread']({'channelId':_0x472d7a,'threadId':_0x33b211,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x6b7982=this['_commentsRepository']['getCommentThread'](_0x33b211);_0x6b7982['unbind']('isRemovable'),_0x6b7982['isRemovable']=!0x1,_0x159d30['commentThread']=_0x6b7982;}['_checkSuggestionCorrectness'](_0x3b7ace,_0x3a5def,_0x336f16,_0x9c7a0a){if(_0x3b7ace['type']!=_0x3a5def||_0x3b7ace['subType']!=_0x336f16||_0x3b7ace['creator']['id']!=_0x9c7a0a)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x564d2a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1feb83,_0x3b09b4){const _0x5b2338=_0x1feb83['getFirstRange']();if(_0x3b09b4['isEqual'](_0x5b2338))_0x1feb83['removeMarkers']();else{if(_0x5b2338['containsRange'](_0x3b09b4)){const _0x38371f=this['_model']['createPositionAt'](_0x3b09b4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1feb83,this['_model']['createRange'](_0x5b2338['start'],_0x38371f));const _0x4dc2d7=_0x56ae18(),_0x5569f5=_0x1feb83['creator']['id'],_0x135a9a=_0x1feb83['type']+':'+_0x1feb83['subType'];this['_setSuggestionData']({'id':_0x4dc2d7,'type':_0x135a9a,'createdAt':new Date(),'authorId':_0x5569f5,'data':_0x1feb83['data'],'attributes':_0x1feb83['attributes']});const _0x18f3da=this['_model']['createPositionAt'](_0x3b09b4['end']['parent'],'after'),_0x50070e=this['_model']['createRange'](_0x18f3da,_0x5b2338['end']);this['_addSuggestionMarker'](_0x135a9a,_0x4dc2d7,_0x5569f5,_0x50070e);}else{if(_0x5b2338['containsPosition'](_0x3b09b4['start'])){const _0x33ded1=this['_model']['createPositionAt'](_0x3b09b4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1feb83,this['_model']['createRange'](_0x5b2338['start'],_0x33ded1));}else{const _0x2b9b0e=this['_model']['createPositionAt'](_0x3b09b4['end']['parent'],'after');this['_setSuggestionRange'](_0x1feb83,this['_model']['createRange'](_0x2b9b0e,_0x5b2338['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x8dc0ec){for(const {suggestion:_0x409e09,meta:_0x28a58f}of this['_findSuggestions'](_0x8dc0ec,'insertion')){if(!_0x28a58f['isOwn'])continue;const _0x3edd99=_0x409e09['getRanges']();for(const _0x2f7748 of _0x3edd99)if(!_0x8dc0ec['getDifference'](_0x2f7748)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x439d7e){const _0xbeb534=this['editor']['plugins']['get']('Users')['getUser'](_0x439d7e);if(!_0xbeb534)throw new _0x564d2a('track-changes-user-not-found',this);return _0xbeb534;}['_getExternalAuthor'](_0x21d7b6){const _0x3f7307=this['editor']['plugins']['get']('Users'),_0x2280dc=_0xbefa6a('external:'+_0x21d7b6),_0x2502e8=_0x3f7307['getUser'](_0x2280dc);return _0x2502e8||_0x3f7307['addUser']({'id':_0x2280dc,'name':_0x21d7b6});}['_createSuggestion'](_0x2e8330,_0x50b95b,_0x4afc01,_0x8c62b2,_0x5e88cf){const _0x232ba4=this['_getAuthorFromId'](_0x8c62b2),_0x27aa20=this['_suggestionFactory']['buildSuggestion'](_0x2e8330,_0x50b95b,_0x4afc01,_0x232ba4,_0x5e88cf,_0x5f122e=>{this['_updateSuggestionData'](_0x4afc01,{'attributes':_0x5f122e});const _0x3a5fc2=this['getSuggestion'](_0x4afc01);this['_joinWithAdjacentSuggestions'](new Set([_0x3a5fc2])),this['_refreshSuggestionsChain'](new Set([_0x3a5fc2]));});return this['listenTo'](_0x27aa20,'accept',()=>{this['_updateSuggestionData'](_0x4afc01,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x27aa20,'discard',()=>{this['_updateSuggestionData'](_0x4afc01,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4afc01,_0x27aa20),this['_suggestionState']['set'](_0x27aa20,'notReady'),_0x27aa20;}['_splitMarkerName'](_0x2fadc8){const _0x22c2db=_0x2fadc8['split'](':');return{'group':_0x22c2db[0x0],'type':_0x22c2db[0x1],'subType':_0x22c2db['length']>=0x5?_0x22c2db[0x2]:null,'id':_0x22c2db['length']<0x5?_0x22c2db[0x2]:_0x22c2db[0x3],'authorId':_0x22c2db['length']<0x5?_0x22c2db[0x3]:_0x22c2db[0x4],'markerCount':0x6==_0x22c2db['length']?_0x22c2db[0x5]:null};}['_breakSuggestionMarker'](_0x22e26e,_0x5d43ee,_0x365270){const _0xa5b81e=_0x22e26e['getFirstRange'](),_0x1c93c6=_0xa5b81e['start'],_0x2a636d=_0xa5b81e['end'];this['_setSuggestionRange'](_0x22e26e,this['_model']['createRange'](_0x1c93c6,_0x5d43ee));const _0x327da5=_0x56ae18(),_0x2105ed=_0x22e26e['creator']['id'],_0x3b8788=_0x22e26e['type']+(_0x22e26e['subType']?':'+_0x22e26e['subType']:'');this['_setSuggestionData']({'id':_0x327da5,'type':_0x3b8788,'createdAt':new Date(),'authorId':_0x2105ed,'originalSuggestionId':_0x22e26e['id'],'attributes':_0x22e26e['attributes'],'data':_0x22e26e['data']});const _0x2a1f64=this['_getAttributeKey'](_0x22e26e);('formatBlock'==_0x22e26e['type']||_0x2a1f64&&this['_isBlockAttribute'](_0x2a1f64))&&(_0x365270=this['_model']['createPositionBefore'](_0x365270['parent'])),this['_addSuggestionMarker'](_0x3b8788,_0x327da5,_0x2105ed,this['_model']['createRange'](_0x365270,_0x2a636d));}['_findSuggestions'](_0x3f5cab,_0x68e43a=null){const _0x338a10=[],_0x2b0921=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3f5cab)||(_0x3f5cab=[_0x3f5cab]);for(const _0x43d580 of this['getSuggestions']()){if(!_0x43d580['isInContent'])continue;if(_0x68e43a&&_0x43d580['type']!=_0x68e43a)continue;let _0x3a0bd8=!0x1;for(const _0x91e3d7 of _0x43d580['getRanges']()){for(const _0x3bc4c8 of _0x3f5cab){const _0x4ed2ce=_0x3bc4c8['start']['isEqual'](_0x91e3d7['end'])||_0x3bc4c8['end']['isEqual'](_0x91e3d7['start']);if(_0x4ed2ce||_0x3bc4c8['getIntersection'](_0x91e3d7)){const _0xf40d6e=_0x3bc4c8['containsRange'](_0x91e3d7)&&Rt(this['_model']['schema'],_0x91e3d7['start'],_0x3bc4c8),_0x304be1=_0x91e3d7['containsRange'](_0x3bc4c8)&&Rt(this['_model']['schema'],_0x3bc4c8['start'],_0x91e3d7);_0x338a10['push']({'suggestion':_0x43d580,'meta':{'isOwn':_0x2b0921==_0x43d580['author'],'isNextTo':_0x4ed2ce,'isInsideObject':_0xf40d6e,'containsRangeInObject':_0x304be1}}),_0x3a0bd8=!0x0;break;}}if(_0x3a0bd8)break;}}return _0x338a10;}['_addSuggestionMarker'](_0x58452c,_0x9181c8,_0x3e3116,_0x964746,_0x535670){this['_model']['change'](_0x1e94cd=>{let _0x74bea='suggestion:'+_0x58452c+':'+_0x9181c8+':'+_0x3e3116;_0x535670&&(_0x74bea=_0x74bea+':'+_0x535670),_0x1e94cd['addMarker'](_0x74bea,{'range':_0x964746,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x50bb03){const _0x6dbaa1=_0x50bb03['previous'],_0x333b35=_0x50bb03['next'];_0x50bb03['previous']=null,_0x50bb03['next']=null,null!=_0x6dbaa1&&_0x6dbaa1['next']==_0x50bb03&&(_0x6dbaa1['next']=_0x333b35),null!=_0x333b35&&_0x333b35['previous']==_0x50bb03&&(_0x333b35['previous']=_0x6dbaa1),'ready'==this['_suggestionState']['get'](_0x50bb03)&&(this['_suggestionState']['set'](_0x50bb03,'removed'),this['fire']('suggestionUnloaded',_0x50bb03,_0x6dbaa1,_0x333b35));}['_setSuggestionData'](_0x446805){const _0x461102=_0x446805['id'],_0xe7c621=this['addSuggestionData'](_0x446805);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x563370=this['editor']['plugins']['get']('PendingActions'),_0x4bf985=_0xe7c621['hasComments'],_0x4a1f0f=_0xe7c621['subType']?_0xe7c621['type']+':'+_0xe7c621['subType']:_0xe7c621['type'],_0x41d4b5=this['editor']['locale'],_0x1e6d73=_0x563370['add'](o(_0x41d4b5,'PENDING_ACTION_SUGGESTION')),_0x21b92c={'id':_0x461102,'type':_0x4a1f0f,'hasComments':_0x4bf985,'data':_0x446805['data']||null,'originalSuggestionId':_0x446805['originalSuggestionId']||null,'attributes':_0xe7c621['attributes']};this['_adapter']['addSuggestion'](_0x21b92c)['then'](_0x5015b5=>{_0xe7c621['_saved']=!0x0,_0x563370['remove'](_0x1e6d73),_0x5015b5&&_0x5015b5['createdAt']&&(this['_suggestions']['get'](_0x461102)['createdAt']=_0x5015b5['createdAt']);})['catch'](_0x370b72=>{throw _0x4ca991('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xe7c621['discard']();}),_0xe7c621['stopListening'](),this['_suggestions']['delete'](_0xe7c621['id']),this['_suggestionState']['delete'](_0xe7c621),_0x370b72;});}return _0xe7c621;}['_isBlockAttribute'](_0x288b76){return this['_blockAttributeKeys']['has'](_0x288b76);}['_updateSuggestionData'](_0x2ce737,_0x27eecb){const _0x240447=this['editor']['plugins']['get']('PendingActions'),_0x8308e8=this['getSuggestion'](_0x2ce737);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x8308e8['_saved']){const _0x1f3e8e=_0x240447['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2ce737,_0x27eecb)['then'](()=>{_0x240447['remove'](_0x1f3e8e);});}else _0x8308e8['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2ce737,_0x27eecb);});}}['_getSuggestionData'](_0x437a20){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x564d2a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x437a20);}['_handleNewSuggestionMarker'](_0x656b48){const {id:_0x597c93,type:_0x829602,subType:_0x504c36,authorId:_0x1caf78}=this['_splitMarkerName'](_0x656b48),_0x4cc91f=this['_suggestions']['get'](_0x597c93)||this['_createSuggestion'](_0x829602,_0x504c36,_0x597c93,_0x1caf78,{});switch(this['_checkSuggestionCorrectness'](_0x4cc91f,_0x829602,_0x504c36,_0x1caf78),this['_suggestionState']['get'](_0x4cc91f)){case'notReady':this['_getSuggestionData'](_0x597c93)['then'](_0x10cb19=>{let _0xd95e71=Promise['resolve']();_0x10cb19['hasComments']&&(_0xd95e71=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x597c93})),_0xd95e71['then'](()=>{this['addSuggestionData'](_0x10cb19)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4cc91f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x597c93,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4cc91f,'ready'),this['fire']('suggestionLoaded',_0x4cc91f);break;case'ready':this['fire']('suggestionChanged',_0x4cc91f);}return _0x4cc91f['addMarkerName'](_0x656b48),_0x4cc91f;}['_refreshSuggestionsChain'](_0x4e0c6c){const _0x55c4b8=Array['from'](_0x4e0c6c),_0x7f4e87=_0x55c4b8['filter'](_0x4f61c2=>'attribute'==_0x4f61c2['type']);this['_refreshAttributeSuggestionsChain'](_0x7f4e87);const _0x301fcf=_0x55c4b8['filter'](_0x47409e=>!_0x47409e['isMultiRange']&&'attribute'!=_0x47409e['type']),_0xf5295a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5f36d6=>!_0x5f36d6['isMultiRange']&&'attribute'!=_0x5f36d6['type']),_0x1e2844=_0xf5295a['filter'](_0x3897b5=>!_0x4e0c6c['has'](_0x3897b5)),_0x299a9f=new Map(_0xf5295a['map'](_0xdbaed1=>[_0xdbaed1,this['_suggestionFactory']['getSuggestionCallback'](_0xdbaed1['type'],_0xdbaed1['subType'],'chain')])),_0x56147a=new Map(_0xf5295a['map'](_0x231816=>[_0x231816,_0x231816['getFirstRange']()])),_0x665483=new Set(),_0x388e90=new Set();for(let _0x4718b5=0x0;_0x4718b5<_0x301fcf['length'];_0x4718b5++)_0x4dbd66(_0x301fcf[_0x4718b5],_0x301fcf,_0x4718b5+0x1);for(let _0x4bda8a=0x0;_0x4bda8a<_0x301fcf['length'];_0x4bda8a++)_0x4dbd66(_0x301fcf[_0x4bda8a],_0x1e2844,0x0);const _0x71ceb3=new Set();for(let _0x21374b=0x0;_0x21374b<_0x301fcf['length'];_0x21374b++){const _0x103151=_0x301fcf[_0x21374b];!_0x388e90['has'](_0x103151)&&_0x103151['previous']&&(_0x71ceb3['add'](_0x103151['previous']),_0x103151['previous']['next']===_0x103151&&(_0x103151['previous']['next']=null),_0x103151['previous']=null),!_0x665483['has'](_0x103151)&&_0x103151['next']&&(_0x71ceb3['add'](_0x103151['next']),_0x103151['next']['previous']===_0x103151&&(_0x103151['next']['previous']=null),_0x103151['next']=null);}function _0x4dbd66(_0x27e071,_0x10b0cd,_0x36d054){for(let _0x29c7a5=_0x36d054;_0x29c7a5<_0x10b0cd['length'];_0x29c7a5++){const _0x4b54a2=_0x118973(_0x27e071,_0x10b0cd[_0x29c7a5]);_0x4b54a2&&(_0x4b54a2[0x0]['next']=_0x4b54a2[0x1],_0x4b54a2[0x1]['previous']=_0x4b54a2[0x0],_0x665483['add'](_0x4b54a2[0x0]),_0x388e90['add'](_0x4b54a2[0x1]));}}function _0x118973(_0xf5ee0c,_0x3a22f0){if(_0xf5ee0c['author']['id']!==_0x3a22f0['author']['id'])return null;const _0x1f4410=_0x299a9f['get'](_0xf5ee0c)(_0xf5ee0c,_0x3a22f0,_0x56147a['get'](_0xf5ee0c),_0x56147a['get'](_0x3a22f0));if(!_0x1f4410)return null;return _0x299a9f['get'](_0x3a22f0)(_0xf5ee0c,_0x3a22f0,_0x56147a['get'](_0xf5ee0c),_0x56147a['get'](_0x3a22f0))?_0x1f4410[0x1]['commentThread']&&_0x1f4410[0x1]['commentThread']['length']?null:_0x1f4410:null;}_0x71ceb3['size']&&this['_refreshSuggestionsChain'](_0x71ceb3);}['_refreshAttributeSuggestionsChain'](_0xbcf6f9){if(0x0==_0xbcf6f9['length'])return;const _0x14abc2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x33023a=>'attribute'==_0x33023a['type']&&_0x33023a['_isDataLoaded']),_0x157d21=[],_0x3bf27c=new Map();for(const _0x2d7535 of _0x14abc2){const _0x4450e3=_0xbefa6a(_0x2d7535['attributes']);_0x3bf27c['has'](_0x4450e3)||(_0x3bf27c['set'](_0x4450e3,_0x157d21['length']),_0x157d21['push']([]));const _0x808e36=_0x3bf27c['get'](_0x4450e3);_0x157d21[_0x808e36]['push'](_0x2d7535);}!(function(){_0x157d21['sort']((_0x363ba0,_0x17b128)=>{const _0x807a14=_0x363ba0[0x0]['createdAt'],_0xfda873=_0x17b128[0x0]['createdAt'];return _0x807a14==_0xfda873?_0x363ba0[0x0]['attributes']['groupId']<_0x17b128[0x0]['attributes']['groupId']?-0x1:0x1:_0x807a14<_0xfda873?-0x1:0x1;});for(const _0x47c070 of _0x157d21)_0x47c070['sort']((_0x2d0771,_0x3f03e8)=>_0x2d0771['id']<_0x3f03e8['id']?-0x1:0x1);}());for(let _0x445d82=0x0;_0x445d82<_0x157d21['length'];_0x445d82++){if(0x0==_0x157d21[_0x445d82]['length'])continue;const _0x20e995=[];for(let _0xed35d9=_0x445d82+0x1;_0xed35d9<_0x157d21['length'];_0xed35d9++)0x0!=_0x157d21[_0xed35d9]['length']&&_0x3f69c8(_0x157d21[_0x445d82],_0x157d21[_0xed35d9])&&_0x20e995['push'](_0xed35d9);for(const _0x5d6f98 of _0x20e995)_0x157d21[_0x445d82]=_0x157d21[_0x445d82]['concat'](_0x157d21[_0x5d6f98]),_0x157d21[_0x5d6f98]=[];}for(const _0x3e0fae of _0x157d21)for(let _0x4e2e26=0x0;_0x4e2e26<_0x3e0fae['length'];_0x4e2e26++)_0x3e0fae[_0x4e2e26]['next']=_0x3e0fae[_0x4e2e26+0x1]||null;for(const _0x53371c of _0x157d21)for(let _0x13ced7=0x0;_0x13ced7<_0x53371c['length'];_0x13ced7++)_0x53371c[_0x13ced7]['previous']=_0x53371c[_0x13ced7-0x1]||null;function _0x3f69c8(_0x4eab0d,_0x3f86e){if(_0x4eab0d[0x0]['attributes']['groupId']!==_0x3f86e[0x0]['attributes']['groupId']&&_0x4eab0d[0x0]['author']!==_0x3f86e[0x0]['author'])return!0x1;if(!function(_0x862fcd,_0x2150a8){if(!_0x862fcd['hasComments']&&!_0x2150a8['hasComments'])return!0x0;if(_0x862fcd['hasComments']&&_0x2150a8['hasComments'])return!0x1;if(_0x862fcd['hasComments']&&_0x2150a8['createdAt']<_0x862fcd['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2150a8['hasComments']&&_0x862fcd['createdAt']<_0x2150a8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4eab0d[0x0],_0x3f86e[0x0]))return!0x1;const _0x3bb6cb=Bt(_0x4eab0d[0x0]['attributes'],'groupId'),_0x25172a=Bt(_0x3f86e[0x0]['attributes'],'groupId');if(!_0x5f5b54(_0x3bb6cb,_0x25172a))return!0x1;return!!_0x4eab0d['every'](_0x36342a=>_0x3f86e['some'](_0x1a7997=>_0x36342a['getFirstRange']()['isEqual'](_0x1a7997['getFirstRange']())))&&_0x3f86e['every'](_0x33938e=>_0x4eab0d['some'](_0x5366bb=>_0x33938e['getFirstRange']()['isEqual'](_0x5366bb['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xa4e1f1){const _0x3fbc36=Array['from'](_0xa4e1f1),_0x2a281a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5886a0=_0x2a281a['filter'](_0x151ea2=>!_0xa4e1f1['has'](_0x151ea2)),_0x130e67=new Map(_0x3fbc36['map'](_0x55b60f=>[_0x55b60f,this['_suggestionFactory']['getSuggestionCallback'](_0x55b60f['type'],_0x55b60f['subType'],'join')])),_0x25ece5=new Map(_0x2a281a['map'](_0x3494f2=>[_0x3494f2,_0x3494f2['getRanges']()]));for(let _0x4b9da7=0x0;_0x4b9da7<_0x3fbc36['length'];_0x4b9da7++){if(_0x23533a(this,_0x3fbc36[_0x4b9da7],_0x3fbc36,_0x4b9da7+0x1))return!0x0;}for(let _0xf4704a=0x0;_0xf4704a<_0x3fbc36['length'];_0xf4704a++){if(_0x23533a(this,_0x3fbc36[_0xf4704a],_0x5886a0,0x0))return!0x0;}return!0x1;function _0x23533a(_0x58c41f,_0x2b52b7,_0x143163,_0x6542bb){for(let _0x321cbb=_0x6542bb;_0x321cbb<_0x143163['length'];_0x321cbb++){const _0xa66e39=_0x143163[_0x321cbb];if(_0xa66e39['type']!==_0x2b52b7['type']||_0xa66e39['author']['id']!==_0x2b52b7['author']['id']||_0xa66e39['subType']!==_0x2b52b7['subType'])continue;if(!Pt(_0x2b52b7,_0xa66e39,['groupId']))continue;if('attribute'==_0x2b52b7['type']&&_0x2b52b7['data']['oldValue']!=_0xa66e39['data']['oldValue'])continue;if('attribute'==_0x2b52b7['type']&&_0x58c41f['_isBlockAttribute'](_0x2b52b7['data']['key']))continue;if('formatBlock'==_0x2b52b7['type']){const _0x63d333=_0x58c41f['editor']['model'],_0x4a6aae=_0x2b52b7['getContainedElement']();if(_0x4a6aae&&(_0x63d333['schema']['isObject'](_0x4a6aae)||_0x63d333['schema']['isLimit'](_0x4a6aae)))continue;}const _0x2ec764=_0x130e67['get'](_0x2b52b7),_0x2acc51=_0x25ece5['get'](_0x2b52b7),_0x579e6c=_0x25ece5['get'](_0xa66e39),_0x54b116=_0x2b52b7['commentThread']&&_0x2b52b7['commentThread']['length'],_0x2d92af=_0xa66e39['commentThread']&&_0xa66e39['commentThread']['length'];if(!_0x54b116&&_0x2ec764(_0x579e6c,_0x2acc51))return _0x58c41f['_joinSuggestions'](_0xa66e39,_0x2b52b7),_0x25ece5['delete'](_0x2b52b7),!0x0;if(!_0x2d92af&&_0x2ec764(_0x2acc51,_0x579e6c))return _0x58c41f['_joinSuggestions'](_0x2b52b7,_0xa66e39),_0x25ece5['delete'](_0xa66e39),!0x0;}return!0x1;}}['_joinSuggestions'](_0xbc11c1,_0xa049bd){if(_0xbc11c1['isMultiRange']){for(const _0x1cb6b2 of _0xa049bd['getRanges']())_0xbc11c1['addRange'](_0x1cb6b2);}else{const _0x1f240d=_0xa049bd['getFirstRange']()['end'];this['_setSuggestionRange'](_0xbc11c1,this['_model']['createRange'](_0xbc11c1['getFirstRange']()['start'],_0x1f240d));}_0xa049bd['removeMarkers']();}['_getMarkerAnnouncementText'](_0xa24023,_0x1e0b08){const _0x435ff1=_0xa24023['startsWith']('format')||_0xa24023['startsWith']('attribute')?'FORMATTING':_0xa24023['toUpperCase']();return o(this['editor']['locale'],_0x1e0b08+'_'+_0x435ff1+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x7bb6b6=this['editor'];if(!_0x7bb6b6['ui'])return;const {ariaLiveAnnouncer:_0x532e42}=_0x7bb6b6['ui'];_0x3722b2(this['_model'],({left:_0x7bcbd8,entered:_0x3fd212})=>{for(const _0x408a27 of _0x7bcbd8){const {group:_0x1feb97,type:_0x53191b}=this['_splitMarkerName'](_0x408a27['name']);if('suggestion'===_0x1feb97){_0x532e42['announce'](this['_getMarkerAnnouncementText'](_0x53191b,'LEAVE'));break;}}for(const _0x82fc59 of _0x3fd212){const {group:_0x59ee11,type:_0x142fb7}=this['_splitMarkerName'](_0x82fc59['name']);if('suggestion'===_0x59ee11){_0x532e42['announce'](this['_getMarkerAnnouncementText'](_0x142fb7,'ENTER'));break;}}});}['_processAttributeChanges'](_0xbcbac2){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1c0807=this['editor'],_0x125060=_0x1c0807['model']['document']['differ']['getChanges']();if(0x0==_0x125060['length'])return!0x1;const _0x138010=[],_0x5aab48=_0x125060['filter'](_0x199750=>'attribute'==_0x199750['type']),_0x1e6648=_0x125060['filter'](_0x4b313=>'insert'==_0x4b313['type']&&'$text'!=_0x4b313['name']),_0x28c6a=_0x125060['filter'](_0x1d7ac0=>'remove'==_0x1d7ac0['type']&&'$text'!=_0x1d7ac0['name']);for(const _0x345ae5 of _0x5aab48)_0x138010['push']({'key':_0x345ae5['attributeKey'],'newValue':_0x345ae5['attributeNewValue'],'oldValue':_0x345ae5['attributeOldValue'],'range':Ot(_0x345ae5['range'],_0x1c0807['model'])});for(const _0x1406de of _0x1e6648){const _0x40ad60=_0x28c6a['find'](_0x53500a=>_0x53500a['position']['isEqual'](_0x1406de['position']));_0x40ad60&&_0x138010['push']({'key':m,'newValue':_0x1406de['name'],'oldValue':_0x40ad60['name'],'range':_0x1c0807['model']['createRangeOn'](_0x1406de['position']['nodeAfter'])});}return 0x0!=_0x138010['length']&&this['_reduceExistingSuggestions'](_0xbcbac2,_0x138010);}['_processAttributeSuggestions'](_0x4613ac){let _0x22dd39=!0x1;const _0x291b61=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x35b9ca=>_0x35b9ca['data']['newRange']&&_0x35b9ca['name']['startsWith']('suggestion:attribute:'));for(const _0x246984 of _0x291b61){const {subType:_0x253792,id:_0x506207}=this['_splitMarkerName'](_0x246984['name']),_0x5e7ad2=_0x253792['split']('|')[0x0];for(const _0x2caa23 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2caa23['id']!=_0x506207&&'attribute'==_0x2caa23['type']&&_0x2caa23['data']&&_0x2caa23['data']['key']==_0x5e7ad2&&_0x2caa23['getFirstRange']()['isIntersecting'](_0x246984['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2caa23,_0x246984['data']['newRange'],_0x4613ac),_0x22dd39=!0x0);}return _0x22dd39;}['_recordAttributeChanges'](_0x15ee0a){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x15ee0a();}['_isRegisteredAttribute'](_0x336fbd){const _0x4db4bf=this['_isBlockAttribute'](_0x336fbd),_0x5d72a0=this['_inlineAttributeKeys']['has'](_0x336fbd);return _0x4db4bf||_0x5d72a0;}['_reduceExistingSuggestions'](_0xf2e385,_0x16caa3){if(0x0==_0x16caa3['length'])return!0x1;let _0x77b64a=!0x1;for(const _0x185ab1 of _0x16caa3){const _0x1006c8=this['_findSuggestions'](_0x185ab1['range'],'attribute')['filter'](_0x439138=>!_0x439138['meta']['isNextTo'])['map'](_0x290623=>_0x290623['suggestion']),_0x3c3c47=_0xbefa6a({'newValue':_0x185ab1['newValue']});_0x1006c8['filter'](_0x4d6da2=>{const [_0x3b66cf,_0x3a7cda]=_0x4d6da2['subType']['split']('|');return _0x3b66cf==_0x185ab1['key']&&_0x3a7cda!=_0x3c3c47;})['forEach'](_0x4acaa4=>{this['_reduceSuggestionAttributeRange'](_0x4acaa4,_0x185ab1['range'],_0xf2e385),_0x77b64a=!0x0;});}return _0x77b64a;}['_reduceSuggestionAttributeRange'](_0xd069ea,_0x4e8c97,_0x2afced){const _0x543ffa=_0xd069ea['getFirstRange']()['getDifference'](_0x4e8c97);0x0!==_0x543ffa['length']?0x1!==_0x543ffa['length']?this['_breakSuggestionMarker'](_0xd069ea,_0x4e8c97['start'],_0x4e8c97['end']):this['_setSuggestionRange'](_0xd069ea,_0x543ffa[0x0]):_0x2afced['removeMarker'](_0xd069ea['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x23888d){this['_editor']=_0x23888d,this['_model']=_0x23888d['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x43a566,_0x131820,_0x1c45bb,_0x15bcab,_0x1cb671,_0x1cfcd2){return new u(this['_model'],{'type':_0x43a566,'subType':_0x131820,'id':_0x1c45bb,'author':_0x15bcab,'creator':_0x15bcab,'attributes':_0x1cb671,'onAttributesChange':_0x1cfcd2,'onAccept':(..._0x5404b8)=>this['getSuggestionCallback'](_0x43a566,_0x131820,'accept')(..._0x5404b8),'onDiscard':(..._0x2a4d4a)=>this['getSuggestionCallback'](_0x43a566,_0x131820,'discard')(..._0x2a4d4a)});}['registerCustomCallback'](_0x40dbb2,_0x50b86e,_0x15e631,_0x19d756){const _0x54dce4=_0x40dbb2+':'+_0x50b86e+':'+_0x15e631;this['_customCallbacks']['set'](_0x54dce4,_0x19d756);}['getSuggestionCallback'](_0xb9fbbe,_0x28b88c,_0x32e341){const _0x2cbb39=_0xb9fbbe+':'+_0x28b88c+':'+_0x32e341;return this['_customCallbacks']['get'](_0x2cbb39)||this['_defaultCallbacks']['get'](_0xb9fbbe+':'+_0x32e341);}['_registerDefaultCallbacks'](){const _0x31461d=()=>!0x1,_0x1d550f=_0x981fe6=>{_0x981fe6['sort']((_0x4b11a6,_0x7b4955)=>_0x4b11a6['start']['isBefore'](_0x7b4955['start'])?0x1:-0x1),this['_model']['change'](_0x67d16e=>{for(const _0x55a77b of _0x981fe6){let _0x3b3f29;_0x3b3f29=_0x55a77b['end']['isAtEnd']&&_0x55a77b['end']['parent']==_0x55a77b['start']['nodeAfter']?_0x67d16e['createSelection'](_0x55a77b['start']['nodeAfter'],'on'):_0x67d16e['createSelection'](_0x55a77b),this['_model']['deleteContent'](_0x3b3f29,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xa697f6=(_0x3f3bf8,_0xc7f2d5)=>{_0xc7f2d5&&this['_model']['change'](_0x398673=>{const {commandName:_0x579a22,commandParams:_0x1add02=[]}=_0xc7f2d5,_0x50f165=_0x3f3bf8['map'](_0xeeab43=>(Tt(_0xeeab43)&&(_0xeeab43=this['_model']['createRange'](_0xeeab43['end'])),_0xeeab43))['filter'](_0x4adc86=>'$graveyard'!==_0x4adc86['root']['rootName']);if(_0x50f165['length']<0x1)return;const _0x357072=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1f439c=>_0x14f38f['fromRange'](_0x1f439c));_0x398673['setSelection'](_0x50f165);for(const _0x3f2b99 of this['_editor']['commands']['commands']())_0x3f2b99['refresh']();_0x1add02['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x579a22,..._0x1add02);const _0x1bf27b=_0x357072['filter'](_0x5d6ea3=>'$graveyard'!=_0x5d6ea3['root']['rootName']);_0x1bf27b['length']>0x0&&_0x398673['setSelection'](_0x1bf27b);for(const _0xc6850a of _0x357072)_0xc6850a['detach']();});},_0x3dacc2=(_0x317e07,_0x5a4423)=>0x1==_0x317e07['length']&&0x1==_0x5a4423['length']&&_0x317e07[0x0]['end']['isEqual'](_0x5a4423[0x0]['start']),_0x55b57a=(_0x2b1196,_0x4a8383,_0x313671,_0x2ed6e1)=>Ft(_0x2b1196,_0x4a8383,_0x313671,_0x2ed6e1,this['_model'])?[_0x2b1196,_0x4a8383]:Ft(_0x4a8383,_0x2b1196,_0x2ed6e1,_0x313671,this['_model'])?[_0x4a8383,_0x2b1196]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x31461d),this['_defaultCallbacks']['set']('insertion:discard',_0x1d550f),this['_defaultCallbacks']['set']('insertion:join',_0x3dacc2),this['_defaultCallbacks']['set']('insertion:chain',_0x55b57a),this['_defaultCallbacks']['set']('deletion:accept',_0x1d550f),this['_defaultCallbacks']['set']('deletion:discard',_0x31461d),this['_defaultCallbacks']['set']('deletion:join',_0x3dacc2),this['_defaultCallbacks']['set']('deletion:chain',_0x55b57a),this['_defaultCallbacks']['set']('formatInline:accept',_0xa697f6),this['_defaultCallbacks']['set']('formatInline:discard',_0x31461d),this['_defaultCallbacks']['set']('formatInline:join',_0x3dacc2),this['_defaultCallbacks']['set']('formatInline:chain',_0x31461d),this['_defaultCallbacks']['set']('formatBlock:accept',_0xa697f6),this['_defaultCallbacks']['set']('formatBlock:discard',_0x31461d),this['_defaultCallbacks']['set']('formatBlock:join',_0x3dacc2),this['_defaultCallbacks']['set']('formatBlock:chain',_0x31461d),this['_defaultCallbacks']['set']('attribute:accept',_0x31461d),this['_defaultCallbacks']['set']('attribute:discard',(_0x477968,_0x386a2f)=>{if(!_0x386a2f)return;const _0x537c4b=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x587d72=>{if(_0x386a2f['key']==m)for(const _0x545dd6 of _0x477968){const _0x17b4e=_0x545dd6['start']['nodeAfter'],_0x56071f=_0x386a2f['oldValue'];_0x587d72['rename'](_0x17b4e,_0x56071f);}else{if(_0x537c4b['_isBlockAttribute'](_0x386a2f['key'])){for(const _0x2bd7ce of _0x477968)void 0x0!==_0x386a2f['oldValue']?_0x587d72['setAttribute'](_0x386a2f['key'],_0x386a2f['oldValue'],_0x2bd7ce['start']['nodeAfter']):_0x587d72['removeAttribute'](_0x386a2f['key'],_0x2bd7ce['start']['nodeAfter']);}else{for(const _0x330f0a of _0x477968)_0x386a2f['oldValue']?_0x587d72['setAttribute'](_0x386a2f['key'],_0x386a2f['oldValue'],_0x330f0a):_0x587d72['removeAttribute'](_0x386a2f['key'],_0x330f0a);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3dacc2);}}function Rt(_0x2e1dd0,_0x2ab7a9,_0x1247c1){for(const _0xecc6c4 of _0x2ab7a9['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xecc6c4['root']==_0xecc6c4)return!0x1;if(!_0x1247c1['containsItem'](_0xecc6c4))return!0x1;if(_0x2e1dd0['isObject'](_0xecc6c4)||_0x2e1dd0['isLimit'](_0xecc6c4))return!0x0;}return!0x1;}function Tt(_0x3ac191){return _0x3ac191['end']['parent']==_0x3ac191['start']['nodeAfter']&&_0x3ac191['end']['isAtStart'];}function Et(_0x31c5d7,_0x5545a9,_0x402b61,_0x5380cc){const _0x5debb5=_0x2b00e6=>!_0x2b00e6['item']['is']('$textProxy')&&!_0x5380cc['isObject'](_0x2b00e6['item']),_0x2fd845=_0x31c5d7['start']['getLastMatchingPosition'](_0x5debb5),_0x1fd757=_0x31c5d7['end']['getLastMatchingPosition'](_0x5debb5,{'direction':'backward'});return(!_0x31c5d7['start']['isEqual'](_0x2fd845)||!_0x31c5d7['end']['isEqual'](_0x1fd757))&&(_0x2fd845['isBefore'](_0x1fd757)?_0x402b61['updateMarker'](_0x5545a9,{'range':_0x402b61['createRange'](_0x2fd845,_0x1fd757)}):_0x402b61['removeMarker'](_0x5545a9),!0x0);}function Vt(_0x481c70){return _0xbefa6a(_0x481c70);}function Ut(_0x9ee8ec){const _0x5be01a=_0x9ee8ec['start']['nodeAfter'];return _0x5be01a&&_0x5be01a['is']('element');}function Ot(_0x564113,_0x2f4635){return null==_0x564113['end']['nodeBefore']&&_0x564113['end']['parent']==_0x564113['start']['nodeAfter']?Gt(_0x564113['start']['nodeAfter'],_0x2f4635):_0x564113;}function Gt(_0x41dc2d,_0x3edf03){const _0x3f030f=_0x3edf03['schema']['isObject'](_0x41dc2d)||_0x3edf03['schema']['isSelectable'](_0x41dc2d);return _0x3edf03['createRange'](_0x3edf03['createPositionAt'](_0x41dc2d,'before'),_0x3f030f?_0x3edf03['createPositionAfter'](_0x41dc2d):_0x3edf03['createPositionAt'](_0x41dc2d,'end'));}function Ft(_0x26e003,_0x489f08,_0x16dd2,_0x2e59cf,_0x409056){if(!Pt(_0x26e003,_0x489f08))return!0x1;if(_0x16dd2['end']['isEqual'](_0x2e59cf['start']))return!0x0;if(_0x26e003['type']!=_0x489f08['type'])return!0x1;if(!_0x16dd2['end']['isTouching'](_0x2e59cf['start']))return!0x1;const _0x357215=_0x409056['createRange'](_0x16dd2['end'],_0x2e59cf['start'])['getWalker']();for(const _0x2901d3 of _0x357215)if(['elementStart','elementEnd']['includes'](_0x2901d3['type'])&&_0x409056['schema']['isLimit'](_0x2901d3['item']))return!0x1;return!0x0;}function Pt(_0x58313a,_0x1acc1d,_0x3f0e56=[]){return!(!_0x58313a['_isDataLoaded']||!_0x1acc1d['_isDataLoaded'])&&_0x5f5b54(Bt(_0x58313a['attributes'],_0x3f0e56),Bt(_0x1acc1d['attributes'],_0x3f0e56));}function Lt(_0x5d9331,_0x1ccc2a){const _0x5ccf34=Ht(_0x5d9331['attributes']),_0x14b230=Ht(_0x1ccc2a);if(!_0x5d9331['_isDataLoaded'])return!0x1;for(const _0xef1d53 of Object['keys'](_0x14b230))if(!_0x5f5b54(_0x5ccf34[_0xef1d53],_0x14b230[_0xef1d53]))return!0x1;return!0x0;}function Ht(_0x108eed){const _0x562de2=Object['assign']({},_0x108eed);return delete _0x562de2['skipNestingCheck'],delete _0x562de2['tablePasteChainId'],_0x562de2;}class oe extends/* #__PURE__ -- @preserve */
25
+ _0x314267(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x509c4e,_0x4c6dcc,_0x9d766a,_0x2d518a){super(),this['model']=_0x4c6dcc,this['view']=_0x9d766a,this['commentThreadController']=_0x2d518a,this['_editor']=_0x509c4e,this['_acceptCommand']=_0x509c4e['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x509c4e['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x31a0bc,_0x1af134)=>_0x31a0bc||_0x1af134),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x26065e=>_0x26065e&&this['_editor']['model']['canEditAt'](_0x4c6dcc['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2102bb=>_0x2102bb&&this['_editor']['model']['canEditAt'](_0x4c6dcc['getRanges']())),this['_pendingAction']=null,_0x9d766a['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x9d766a,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x9d766a,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x9d766a,'change:isDirty',()=>{_0x9d766a['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 _0x2960ce=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2960ce);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x4edaf2{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x1ecb5d,_0x525eb0,_0x2ba457,_0x54afa0){super(_0x1ecb5d),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x525eb0['authoredAt']),this['bind']('authoredAt')['to'](_0x525eb0),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x525eb0,this['_localUser']=_0x2ba457,this['_config']=_0x54afa0,_0x54afa0['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:_0x4ddfca}=this['_config'];this['commentsListView']=new _0x4ddfca(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',_0xd9c2b1=>_0xd9c2b1+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xcf4bc5,_0x207a24)=>_0xcf4bc5||!!_0x207a24);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1312e1}=this['_config'],_0x483bec=new _0x1312e1(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x307462=_0x483bec['commentInputView'];return _0x483bec['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x307462,'value',(_0x597117,_0x2738bd,_0x10f4d5)=>!!_0x10f4d5||_0x597117&&!_0x2738bd),_0x307462['on']('submit',(_0xb9849a,_0x577a27)=>{this['fire']('addComment',_0x577a27),_0x307462['editor']['setData']('');}),_0x307462['on']('cancel',()=>this['focus']()),_0x307462['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x483bec;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x477a39,_0x3e0fe5,_0x299dcc,_0x3619c3){super(_0x477a39,_0x3e0fe5,_0x299dcc,_0x3619c3),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x463930=>_0x463930&&_0x463930[0x0]?_0x463930[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3f391a,_0x9dc3f)=>{let _0x525be2='';for(const _0x1d4fe8 of _0x3f391a)_0x525be2+='<p>'+ds(_0x1d4fe8['content'],_0x1d4fe8['color'])+'</p>';return _0x9dc3f?_0x525be2:_0x4dd7c7(_0x525be2,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x477a39,'Accept\x20suggestion'),_0x5edca6['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x477a39,'Discard\x20suggestion'),_0x5edca6['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x312432(_0x477a39,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0xfb2f3a=this['bindTemplate'],_0xa60a1a=[{'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':_0xfb2f3a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xfb2f3a['to']('authoredAt',_0x33a4d3=>this['_config']['formatDateTime'](_0x33a4d3))}]}]},{'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']&&_0xa60a1a['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x4d7ff3={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0xfb2f3a['if']('isActive','ck-suggestion-wrapper--active'),_0xfb2f3a['to']('type',_0x504aca=>'ck-suggestion-'+_0x504aca),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':_0xa60a1a}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x4d7ff3['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)),_0x4d7ff3;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x78b874,_0x4fd18b,_0x10b0b2)=>{this['_descriptionElement']['innerHTML']=_0x10b0b2;});}['_createButton'](_0x325b91,_0x1bc036,_0x23a9db,_0x585a65,_0xcbf219){const _0x2ad48c=new _0x34b7fb(this['locale']);return _0x2ad48c['set']({'label':_0x325b91,'icon':_0x1bc036,'tooltip':!0x0,'tooltipPosition':_0xcbf219}),_0x2ad48c['extendTemplate']({'attributes':{'class':_0x23a9db}}),_0x2ad48c['on']('execute',()=>{this['fire'](_0x585a65,this['_model']['id']);}),_0x2ad48c;}['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(_0x45c5d8,_0x44876c){let _0x4fe165='';return _0x4fe165+=_0x45c5d8['split']('*')['map']((_0x189380,_0x1e5932)=>_0x1e5932%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x189380)+'</span>':us(_0x189380))['join'](''),_0x44876c&&(_0x4fe165+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x44876c['value']+'\x22\x20title=\x22'+_0x44876c['title']+'\x22></span>'),_0x4fe165;}function us(_0x43a47a){const _0x3ebc90=document['createElement']('span');return _0x3ebc90['innerText']=_0x43a47a,_0x3ebc90['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 _0x1c996d{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x2bd389,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x13eeab){super(_0x13eeab),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2d593e=this['editor']['config'];_0x2d593e['define']('trackChanges.SuggestionThreadView',ne),_0x2d593e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2d593e['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x354e50,_0x4bd9c5){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x184e00,_0x40e699]of this['_handleControllerBuffer']){const _0x3de537=this['_suggestionToController']['has'](_0x184e00);_0x3de537||_0x40e699?_0x3de537&&_0x40e699&&this['_destroyController'](_0x184e00):this['_initializeController'](_0x184e00);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x354e50,_0x4bd9c5);}['init'](){const _0x41fc2f=this['editor'],_0x14d648=_0x41fc2f['plugins']['get']('TrackChangesEditing'),_0x36393d=_0x41fc2f['plugins']['get']('Annotations'),_0x3f88ec=_0x41fc2f['plugins']['get']('EditorAnnotations'),_0x4659e0=_0x41fc2f['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3f88ec['addSourceCollector'](()=>{const _0x301346=[];for(const [_0x25cbf7,_0x59cec8]of Array['from'](this['_suggestionToController'])){const _0x2bcf0d=_0x25cbf7['getAllAdjacentSuggestions'](),_0x40b51b=[];for(const _0x37bfbb of _0x2bcf0d){if(!_0x37bfbb['isInContent'])continue;if(_0x37bfbb['isMultiRange']){_0x40b51b['push'](..._0x37bfbb['getRanges']());continue;}const _0x34df88=_0x37bfbb['getFirstRange']();if(_0x40b51b['length']>0x0){const _0x2d6441=_0x40b51b[0x0]['getJoined'](_0x34df88);if(_0x2d6441){_0x40b51b[0x0]=_0x2d6441;continue;}}_0x40b51b['push'](_0x34df88);}_0x301346['push']([_0x59cec8['view'],_0x40b51b]);}return _0x301346;}),this['listenTo'](_0x14d648,'suggestionLoaded',(_0x259a57,_0x3a689b)=>{this['listenTo'](_0x3a689b,'change:previous',(_0x6534d3,_0x375c57,_0x43213c,_0x18d633)=>{_0x3a689b['isInContent']&&(null==_0x43213c?(this['_updateController'](_0x18d633['head']),this['_handleSuggestionControllerDelayed'](_0x3a689b,!0x1)):(this['_updateController'](_0x43213c['head']),null==_0x18d633&&this['_handleSuggestionControllerDelayed'](_0x3a689b,!0x0)));}),null!==_0x3a689b['previous']?this['_updateController'](_0x3a689b['head']):this['_handleSuggestionControllerDelayed'](_0x3a689b,!0x1);}),this['listenTo'](_0x14d648,'suggestionUnloaded',(_0x5f45a1,_0x445e7f,_0x511387)=>{this['stopListening'](_0x445e7f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x445e7f),this['_suggestionToController']['has'](_0x445e7f)&&this['_destroyController'](_0x445e7f),_0x511387&&this['_updateController'](_0x511387['head']);}),this['listenTo'](_0x14d648,'suggestionChanged',(_0x42bffb,_0x361a82)=>{this['_updateController'](_0x361a82);}),this['listenTo'](_0x36393d,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4659e0,'addComment',(_0x1698f6,{threadId:_0x2cf599,isFromAdapter:_0x29b3ad})=>{if(_0x29b3ad||!_0x14d648['hasSuggestion'](_0x2cf599))return;const _0x4c17ff=_0x14d648['getSuggestion'](_0x2cf599);this['_suggestionToController']['get'](_0x4c17ff)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x34917d=this['editor']['plugins']['get']('Annotations'),_0x402466=this['editor']['plugins']['get']('TrackChangesEditing'),_0x456992=Array['from'](_0x34917d['activeAnnotations'],_0x1aeae5=>_0x1aeae5['innerView'])['filter'](_0x4caad3=>this['_viewToController']['has'](_0x4caad3)),_0x220fce=[];for(const _0x139712 of _0x456992){const _0x4811e8=this['_viewToController']['get'](_0x139712)['model']['getAllAdjacentSuggestions']();_0x220fce['push'](..._0x4811e8['reduce']((_0x225a42,_0x4b8155)=>[..._0x225a42,..._0x4b8155['getMarkerNames']()],[]));}_0x402466['activeMarkers']=_0x220fce;}['_addUIComponentsToFactory'](){const _0xfce86b=this['editor'],_0x14a15a=_0xfce86b['locale'],_0x466be8=o(_0x14a15a,'Track\x20changes'),_0x25f5ae=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x466be8,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x14a15a,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x14a15a,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x14a15a,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x14a15a,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x2babf0 of _0x25f5ae)if(ae(_0x2babf0)){const _0x3afbbe=_0xfce86b['commands']['get'](_0x2babf0['model']['commandName']);_0x2babf0['model']['bind']('isOn','isEnabled')['to'](_0x3afbbe,'value','isEnabled');}_0xfce86b['ui']['componentFactory']['add']('trackChanges',_0x5ee374=>this['_createToolbarButton'](_0x5ee374,_0x25f5ae,_0x466be8)),_0xfce86b['ui']['componentFactory']['add']('menuBar:trackChanges',_0x24d8ac=>this['_createMenuBarMenu'](_0x24d8ac,_0x25f5ae,_0x466be8));}['_createToolbarButton'](_0x2b5ae2,_0x16e066,_0x57268f){const _0x416527=zt(_0x2b5ae2,Zt),_0x1096a0=this['editor']['commands']['get']('trackChanges');_0x416527['buttonView']['set']({'tooltip':_0x57268f,'label':_0x57268f,'icon':ie}),_0x416527['buttonView']['bind']('isOn')['to'](_0x1096a0,'value'),_0x416527['buttonView']['on']('execute',()=>{_0x1096a0['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x416527,_0x16e066,{'role':'menu'});const _0x3f4e19=[];for(const _0x4ab0a1 of _0x16e066)ae(_0x4ab0a1)&&_0x3f4e19['push'](this['editor']['commands']['get'](_0x4ab0a1['model']['commandName']));const _0x1a8038=_0x416527['buttonView'];return _0x1a8038['actionView']['unbind']('isEnabled'),_0x1a8038['arrowView']['unbind']('isEnabled'),_0x1a8038['actionView']['bind']('isEnabled')['to'](_0x1096a0,'isEnabled'),_0x1a8038['arrowView']['bind']('isEnabled')['toMany'](_0x3f4e19,'isEnabled',(..._0x3052f6)=>_0x3052f6['some'](_0x375612=>_0x375612)),_0x416527['on']('execute',_0x3ffd10=>{this['editor']['execute'](_0x3ffd10['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x416527;}['_createMenuBarMenu'](_0x4518e8,_0x4a0d29,_0x193066){const _0x220d2b=new Kt(_0x4518e8),_0xc2e9ab=this['editor']['commands']['get']('trackChanges');_0x220d2b['buttonView']['set']({'label':_0x193066,'icon':ie});const _0x2bca9c=new Qt(_0x4518e8);for(const _0x101f5c of _0x4a0d29){if('separator'==_0x101f5c['type']){_0x2bca9c['items']['add'](new Jt(_0x4518e8));continue;}const _0x7cc503=new Xt(_0x4518e8,_0x220d2b),_0x3ea47b=new Yt(_0x4518e8),_0x1f9bb5=_0x101f5c['model'];_0x3ea47b['bind'](...Object['keys'](_0x1f9bb5))['to'](_0x1f9bb5),_0x3ea47b['delegate']('execute')['to'](_0x220d2b),_0x3ea47b['on']('execute',()=>{this['editor']['execute'](_0x1f9bb5['commandName']),this['editor']['editing']['view']['focus']();}),_0x7cc503['children']['add'](_0x3ea47b),_0x2bca9c['items']['add'](_0x7cc503);}return _0x220d2b['bind']('isEnabled')['to'](_0xc2e9ab,'isEnabled'),_0x220d2b['panelView']['children']['add'](_0x2bca9c),_0x220d2b;}['_initializeController'](_0x2b8dc6){const _0x421aea=this['editor'],_0x383f3e=_0x421aea['config'],_0x242371=_0x421aea['plugins']['get']('Annotations'),_0x47eb0b=_0x421aea['plugins']['get']('CommentsRepository'),_0x5dc153=_0x421aea['plugins']['get']('EditorAnnotations'),_0x52fe0e=_0x421aea['plugins']['get'](_0x2bd389)['me'],_0x458085=_0x383f3e['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x3d34b6,CommentThreadInputView:_0x9da88f}=_0x421aea['plugins']['get']('CommentsUI');let _0x493f93,_0x497efe;this['_annotationViews']['has'](_0x2b8dc6['id'])?(_0x497efe=this['_annotationViews']['get'](_0x2b8dc6['id']),_0x493f93=_0x497efe['mainView']):(_0x493f93=new _0x458085(_0x421aea['locale'],_0x2b8dc6,_0x52fe0e,{'disableComments':this['_disableComments'],'editorConfig':_0x383f3e['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x383f3e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x383f3e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x383f3e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2780b1(_0x383f3e['get']('locale')),'CommentView':_0x383f3e['get']('comments')['CommentView'],'CommentsListView':_0x3d34b6,'CommentThreadInputView':_0x9da88f}),_0x493f93['acceptButton']['on']('execute',()=>{_0x421aea['editing']['view']['focus']();}),_0x493f93['discardButton']['on']('execute',()=>{_0x421aea['editing']['view']['focus']();}),_0x497efe=_0x242371['createAnnotationView'](this['editor']['locale'],_0x493f93),_0x497efe['bind']('isDirty')['to'](_0x493f93,'isDirty'),_0x497efe['bind']('length')['to'](_0x493f93),_0x497efe['bind']('type')['to'](_0x493f93,'type',_0xb873aa=>'suggestion-'+_0xb873aa),this['_annotationViews']['set'](_0x2b8dc6['id'],_0x497efe));const _0x4422e6=_0x47eb0b['createCommentThreadController'](_0x2b8dc6['commentThread'],_0x493f93),_0x59d31d=new oe(_0x421aea,_0x2b8dc6,_0x493f93,_0x4422e6),_0x134d25=_0x2b8dc6['getAllAdjacentSuggestions']()['filter'](_0x305e19=>_0x305e19['isInContent']);_0x493f93['descriptionParts']=_0x421aea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x134d25),this['_suggestionToController']['set'](_0x2b8dc6,_0x59d31d),this['_viewToController']['set'](_0x493f93,_0x59d31d);const _0x50594d=_0x242371['createAnnotation']({'view':_0x497efe,'target':()=>{const _0x84b75c=[],_0xdc5dde=_0x2b8dc6['getAllAdjacentSuggestions']()['filter'](_0x403cae=>_0x403cae['isInContent']);for(const _0x13fd60 of _0xdc5dde)_0x84b75c['push'](..._0x13fd60['getMarkers']());return _0x578925(_0x421aea['editing'],_0x84b75c);},'type':()=>'suggestion-'+_0x59d31d['view']['type']});_0x47eb0b['_bindAnnotationToEditors'](_0x493f93,_0x50594d),_0x242371['add'](_0x50594d),_0x5dc153['registerAnnotation'](_0x50594d);}['_destroyController'](_0x5426f3){const _0x1e3807=this['editor']['plugins']['get']('CommentsRepository'),_0x2a3194=this['editor']['plugins']['get']('Annotations'),_0x284d85=this['_suggestionToController']['get'](_0x5426f3),_0x4f5ea6=_0x284d85['view'],_0x51f0e1=_0x2a3194['getByInnerView'](_0x4f5ea6);_0x1e3807['_unbindEditors'](_0x4f5ea6),_0x51f0e1&&_0x2a3194['remove'](_0x51f0e1),this['_suggestionToController']['delete'](_0x5426f3),this['_viewToController']['delete'](_0x4f5ea6),_0x284d85['destroy']();}['_updateController'](_0x24ddf0){if(!_0x24ddf0['isInContent']||!this['_suggestionToController']['has'](_0x24ddf0))return;const _0xa3e752=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ca9e1=this['_suggestionToController']['get'](_0x24ddf0),_0x45cfe4=_0x24ddf0['getAllAdjacentSuggestions']();_0x1ca9e1['view']['descriptionParts']=_0xa3e752['descriptionFactory']['getDescriptions'](_0x45cfe4);}['destroy'](){for(const _0x582a03 of this['_suggestionToController']['keys']())this['_destroyController'](_0x582a03);for(const _0x18b3cb of this['_annotationViews']['values']())_0x18b3cb['mainView']['destroy']();super['destroy']();}}function ae(_0x638829){return'model'in _0x638829;}class k extends _0x1c996d{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x3a8878){this['editor']['plugins']['get'](p)['adapter']=_0x3a8878;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x32308b){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x32308b);}['getSuggestions']({skipNotAttached:_0xbc84fd=!0x1,toJSON:_0x19606b=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xbc84fd,'toJSON':_0x19606b});}['getSuggestion'](_0x158938){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x158938);}}const T=['Pagination'];class P extends _0x1c996d{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x2864ce=this['editor'];if(_0x2864ce['config']['define']('trackChangesData.editorCreator',_0x46b353=>{const _0x13aa6c=_0x2864ce['model']['document']['getRootNames']()['reduce']((_0x309521,_0x428739)=>(_0x309521[_0x428739]='',_0x309521),{});return _0x2864ce['constructor']['create'](_0x13aa6c,_0x46b353);}),'function'!=typeof _0x2864ce['config']['get']('trackChangesData')['editorCreator'])throw new _0x564d2a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x37fd35){return N(this['editor'],!0x0,_0x37fd35);}['getDataWithDiscardedSuggestions'](_0x2d361c){return N(this['editor'],!0x1,_0x2d361c);}}class D extends _0x1c996d{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x2b27e8){super(_0x2b27e8),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(_0x43ddc4){return void 0x0!==_0x43ddc4['getRootsAttributes'];}async function N(_0x133c1c,_0x5413ef,_0x3cf118){const _0x551e3e=_0x850f54(_0x133c1c,T);_0x551e3e['plugins']['push'](p,D),_0x551e3e['rootsAttributes']=v(_0x133c1c)?_0x133c1c['getRootsAttributes']():void 0x0;const _0x3a8c3f=document['createDocumentFragment'](),_0x824017=_0x133c1c['config']['get']('trackChangesData')['editorCreator'],_0x2e4805=await _0x824017(_0x551e3e,()=>function(_0x22ed6a){const _0x5b8827=document['createElement']('div');return _0x22ed6a['appendChild'](_0x5b8827),_0x5b8827;}(_0x3a8c3f));!function(_0x47af80,_0x5d4381){const _0x24d3e2=_0x47af80['model']['document']['getRootNames']()['reduce']((_0x88801b,_0x160e41)=>(_0x88801b[_0x160e41]=_0x47af80['data']['get']({'rootName':_0x160e41}),_0x88801b),{}),_0x573063=_0x47af80['plugins']['get']('Users')['users']['map'](_0x104b36=>({'id':_0x104b36['id'],'name':_0x104b36['name']})),_0x3241a=_0x47af80['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2c28ef=_0x47af80['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3016cc=_0x5d4381['plugins']['get']('Users'),_0x1b5873=_0x5d4381['plugins']['get']('TrackChangesEditing'),_0x44f742=_0x5d4381['plugins']['get']('CommentsRepository');for(const _0x4fa3a1 of _0x573063)_0x3016cc['getUser'](_0x4fa3a1['id'])||_0x3016cc['addUser'](_0x4fa3a1);_0x3016cc['me']||_0x3016cc['useAnonymousUser']();for(const _0x36c1f9 of _0x2c28ef)_0x44f742['addCommentThread'](_0x36c1f9);for(const _0x22e244 of _0x3241a)_0x1b5873['addSuggestionData'](_0x22e244);_0x5d4381['data']['set'](_0x24d3e2);}(_0x133c1c,_0x2e4805),_0x2e4805['execute'](_0x5413ef?'acceptAllSuggestions':'discardAllSuggestions');const _0x427561=v(_0x2e4805)?_0x2e4805['getFullData'](_0x3cf118):_0x2e4805['data']['get'](_0x3cf118);return await _0x2e4805['destroy'](),_0x427561;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};