@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20251025.0 → 0.0.0-nightly-20251027.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,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x30f11b,Plugin as _0x4e7f5a,PendingActions as _0x3008df}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5a4829,ObservableMixin as _0x2def01,uid as _0x3caa75,priorities as _0x35714c,insertToPriorityArray as _0x3b3637,toArray as _0x53f15a,logWarning as _0xc9df51,getEnvKeystrokeText as _0x5e22ae,FocusTracker as _0xc435d8,KeystrokeHandler as _0x5dc328,Collection as _0x3edcbf}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x461762,IconCancel as _0x53f153,IconTrackChanges as _0x2784bc}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x311c22,View as _0x16d85e,ViewCollection as _0x406985,FocusCycler as _0x580b2c,UIModel as _0x20f578,createDropdown as _0x4f4152,SplitButtonView as _0x11da7c,addListToDropdown as _0x2241b4,MenuBarMenuView as _0x17af2b,MenuBarMenuListView as _0x74cb29,ListSeparatorView as _0x2d6e36,MenuBarMenuListItemView as _0xa48ed1,MenuBarMenuListItemButtonView as _0x23adcf,BodyCollection as _0x2dfe06,Dialog as _0x540b17}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x57807f,DocumentCompare as _0x26060f,hashObject as _0x5e961d,surroundingMarkersDetector as _0x21fdb7,FOCUS_ANNOTATION_KEYSTROKE as _0x47d113,AriaDescriptionView as _0xa7cd6f,setupThreadKeyboardNavigation as _0x5d33c9,trimHtml as _0x1a9b5a,UserView as _0x3cfc9e,LateFocusButtonView as _0x8c1f8b,getDateTimeFormatter as _0x128e55,getAllMarkersDomElementsSorted as _0x4c9d1b,sanitizeEditorConfig as _0x3e3c2c}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0xe96edb,ModelLiveRange as _0x3d40b9,ModelLivePosition as _0x52185f,ModelPosition as _0x7685d4,ModelRange as _0x4e5d4b,_DetachOperation as _0x2a730d,ViewDowncastWriter as _0x2ef6b6}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4b3917,toWidget as _0x599747}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x2805a7,set as _0x311620,isEqual as _0x5578d7,unset as _0x27aff4,omit as Kt}from'es-toolkit/compat';import{Delete as _0x1f94eb,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x447bd9}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x1d326f}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x30f11b{['_enabledCommands'];constructor(_0x2aa6ef,_0x1d8b57){super(_0x2aa6ef),this['_enabledCommands']=_0x1d8b57,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 _0x17d09c of this['editor']['commands']['commands']())_0x17d09c['affectsData']&&!this['_enabledCommands']['has'](_0x17d09c)&&_0x17d09c['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x46bc40 of this['editor']['commands']['commands']())_0x46bc40['affectsData']&&!this['_enabledCommands']['has'](_0x46bc40)&&_0x46bc40['clearForceDisabled']('TrackChangesCommand');}}class T extends _0x30f11b{['_suggestions'];constructor(_0x786a5a,_0x4d414f){super(_0x786a5a),this['_suggestions']=_0x4d414f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x387ed2){const _0x249c64=this['_suggestions']['get'](_0x387ed2);if(!_0x249c64)throw new _0x5a4829('track-changes-accept-suggestion-not-found',this);const _0x39a537=_0x249c64['getRanges']();this['editor']['model']['canEditAt'](_0x39a537)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x249c64);}}class O extends _0x30f11b{['_suggestions'];constructor(_0x5ae240,_0x378e23){super(_0x5ae240),this['_suggestions']=_0x378e23,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5c5e12){const _0x3417ea=this['_suggestions']['get'](_0x5c5e12);if(!_0x3417ea)throw new _0x5a4829('track-changes-discard-suggestion-not-found',this);const _0x1ad771=_0x3417ea['getRanges']();this['editor']['model']['canEditAt'](_0x1ad771)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3417ea);}}function ls(_0x418fa5,_0x3725f6){let _0x22a082='';return _0x22a082+=_0x418fa5['split']('*')['map']((_0xcd48b3,_0x2b479c)=>_0x2b479c%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+tn(_0xcd48b3)+'</span>':tn(_0xcd48b3))['join'](''),_0x3725f6&&(_0x22a082+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3725f6['value']+'\x22\x20title=\x22'+_0x3725f6['title']+'\x22></span>'),_0x22a082;}function tn(_0x40b70){const _0xc9faaa=document['createElement']('span');return _0xc9faaa['innerText']=_0x40b70,_0xc9faaa['innerHTML'];}function ts(_0x23fbf4){return _0x23fbf4['sort']((_0x253b01,_0x47cec5)=>'attribute'===_0x253b01['type']&&'attribute'!==_0x47cec5['type']?-0x1:'attribute'!==_0x253b01['type']&&'attribute'===_0x47cec5['type']?0x1:'deletion'==_0x253b01['type']&&'deletion'!=_0x47cec5['type']?-0x1:'deletion'!=_0x253b01['type']&&'deletion'==_0x47cec5['type']?0x1:0x0);}function to(_0x129626,_0x63b535){let _0x4339d2,_0x2e389f=0x0;const _0x3cb1b3=[],_0x256f74=_0x63b535['schema'];for(;_0x2e389f<_0x129626['length'];){const _0x5d639c=_0x129626[_0x2e389f],_0x1f3146=_0x129626[_0x2e389f+0x1];_0x4339d2||(_0x4339d2=_0x63b535['createPositionBefore'](_0x5d639c)),nn(_0x63b535,_0x5d639c,_0x1f3146)||(_0x3cb1b3['push'](_0x63b535['createRange'](_0x4339d2,_0x256f74['isObject'](_0x5d639c)?_0x63b535['createPositionAfter'](_0x5d639c):_0x63b535['createPositionAt'](_0x5d639c,'end'))),_0x4339d2=null),_0x2e389f++;}return _0x3cb1b3;}function nn(_0x2b90d8,_0x3f5408,_0x2f7c29){if(!_0x2f7c29)return!0x1;const _0x124630=_0x2b90d8['createPositionAfter'](_0x3f5408),_0x33dbc1=_0x2b90d8['createPositionBefore'](_0x2f7c29);return _0x124630['isTouching'](_0x33dbc1);}function rs(_0x4cf163,_0x313db4,_0x13525){for(;_0x13525['length'];){const _0x9fa64f=_0x13525['splice'](0x0,0x64);_0x4cf163['change'](()=>{for(const _0x5d4167 of _0x9fa64f)_0x5d4167['isInContent']&&_0x313db4['execute'](_0x5d4167['id']);});}}class x extends _0x30f11b{['_command'];['_suggestions'];constructor(_0x1659a3,_0xa86389,_0x7eb33c){super(_0x1659a3),this['_command']=_0xa86389,this['_suggestions']=_0x7eb33c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1ae052=Array['from'](this['_suggestions']['values']())['some'](_0x488af3=>_0x488af3['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1ae052;}['execute'](){const _0x533a8d=ts(Array['from'](this['_suggestions']['values']()));for(const _0xe9e13e of _0x533a8d){const _0x3d3e2f=_0xe9e13e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3d3e2f))return;}rs(this['editor']['model'],this['_command'],_0x533a8d);}}class E extends _0x30f11b{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x351a49,_0x3a5a98,_0x4476d7){super(_0x351a49),this['_command']=_0x3a5a98,this['_suggestions']=_0x4476d7,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x306a8d=this['editor']['model']['document']['selection'],_0x11c654=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5576cd,_0x1626fd){const _0x43ceb5=Array['from'](_0x5576cd['getRanges']()),_0x2925f9=new Set();for(const _0x2fd995 of _0x1626fd)if(_0x2fd995['isInContent']){for(const _0x205d9a of _0x43ceb5)for(const _0x4c6ae3 of _0x2fd995['getRanges']())(_0x205d9a['isIntersecting'](_0x4c6ae3)||_0x5576cd['isCollapsed']&&!_0x2fd995['isMultiRange']&&_0x2fd995['next']&&_0x4c6ae3['end']['isTouching'](_0x205d9a['start']))&&_0x2925f9['add'](_0x2fd995);}return _0x2925f9;}(_0x306a8d,_0x11c654),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3239f7=ts(Array['from'](this['_selectedSuggestions']));for(const _0x1b3d06 of _0x3239f7){const _0x786fbf=_0x1b3d06['getRanges']();if(!this['editor']['model']['canEditAt'](_0x786fbf))return;}rs(this['editor']['model'],this['_command'],_0x3239f7);}}class R extends/* #__PURE__ -- @preserve */
24
- _0x2def01(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x329bbd,_0x59b4ae){super(),this['id']=_0x59b4ae['id'],this['type']=_0x59b4ae['type'],this['subType']=_0x59b4ae['subType']||null,this['author']=_0x59b4ae['author'],this['creator']=_0x59b4ae['creator']||_0x59b4ae['author'],this['isExternal']=Boolean(_0x59b4ae['attributes']&&_0x59b4ae['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x59b4ae['originalSuggestionId']||null,this['_model']=_0x329bbd,this['_onAccept']=_0x59b4ae['onAccept'],this['_onDiscard']=_0x59b4ae['onDiscard'],this['_onAttributesChange']=_0x59b4ae['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x59b4ae['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 _0x9143bf=this;for(;_0x9143bf['previous'];)_0x9143bf=_0x9143bf['previous'];return _0x9143bf;}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'](_0x21f91f){this['_markerNames']['add'](_0x21f91f);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3d561c=>this['_model']['markers']['get'](_0x3d561c))['filter'](_0x5dfb11=>_0x5dfb11);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4c6a0b=>{for(const _0x164a1c of this['getMarkers']())_0x4c6a0b['removeMarker'](_0x164a1c);}),this['_markerNames']['clear']();}['removeMarker'](_0x3826df){this['_model']['change'](_0xe47cb3=>{_0xe47cb3['removeMarker'](_0x3826df);}),this['_markerNames']['delete'](_0x3826df);}['addRange'](_0x27507d){const _0x199664='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+R['getMultiRangeId']();this['addMarkerName'](_0x199664),this['_model']['change'](_0x2a0b2f=>{_0x2a0b2f['addMarker'](_0x199664,{'range':_0x27507d,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xf3423){for(const _0x34806f of this['getRanges']())if(_0x34806f['isIntersecting'](_0xf3423))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2dc87a=>_0x2dc87a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x25f60d,_0x272de0)=>[..._0x25f60d,..._0x272de0['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x11e719=this['getRanges']();if(0x1!=_0x11e719['length'])return null;const _0x30d789=_0x11e719[0x0],_0x4b4dd3=_0x30d789['start']['nodeAfter'],_0x203e32=_0x30d789['end']['nodeBefore'];return _0x4b4dd3 instanceof _0xe96edb?_0x4b4dd3!=_0x203e32?null:_0x4b4dd3: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 _0x545aab=[];let _0x3a025e=this['head'];for(;_0x3a025e;)_0x545aab['push'](_0x3a025e),_0x3a025e=_0x3a025e['next'];return _0x545aab;}['setAttribute'](_0x2a65a5,_0x15d19e){const _0x29e0eb=_0x2805a7(this['attributes']);_0x311620(_0x29e0eb,_0x2a65a5,_0x15d19e),_0x5578d7(_0x29e0eb,this['attributes'])||(this['attributes']=_0x29e0eb,this['_onAttributesChange'](_0x29e0eb));}['removeAttribute'](_0x58b8ea){const _0x5c5530=_0x2805a7(this['attributes']);_0x27aff4(_0x5c5530,_0x58b8ea),_0x5578d7(_0x5c5530,this['attributes'])||(this['attributes']=_0x5c5530,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 _0x3caa75()['substr'](0x1,0x5);}}function o(_0x50a1b8,_0x3e065d,_0x39d5db){const _0x525fd2=_0x50a1b8['t'],t=_0x50a1b8['t'];switch(_0x3e065d){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'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');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',_0x39d5db);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x39d5db);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x39d5db);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x39d5db);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x39d5db);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',_0x39d5db);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x39d5db);case'*Replace\x20image*':return t('*Replace\x20image*');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',_0x39d5db);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x39d5db);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x39d5db);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x39d5db);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x39d5db);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x39d5db);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x39d5db);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x39d5db);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x39d5db);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x39d5db);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x39d5db);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x39d5db);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x39d5db);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x39d5db);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x39d5db);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x39d5db);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x39d5db);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x39d5db);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'},_0x39d5db);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x39d5db);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x39d5db);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x39d5db);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x39d5db);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x39d5db);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x39d5db);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x39d5db);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'},_0x39d5db);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x39d5db);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x39d5db);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x39d5db);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x39d5db);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'},_0x39d5db);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x39d5db);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'},_0x39d5db);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x39d5db);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x39d5db);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'},_0x39d5db);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x39d5db);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'},_0x39d5db);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x39d5db);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x39d5db);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x39d5db);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x39d5db);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x39d5db);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x39d5db);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x39d5db);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 _0x525fd2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x39d5db);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x525fd2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x39d5db);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x39d5db);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.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x39d5db);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.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x39d5db);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x39d5db);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3e065d;}}class U{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1a603d,_0x202be4){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1a603d,this['_locale']=_0x202be4;}['getDescriptions'](_0xbcd0d3){const _0x32fafc=[],_0x563ae9=new Set(),_0x117e22=new Set();for(let _0x24a77e=0x0;_0x24a77e<_0xbcd0d3['length'];_0x24a77e++){const _0x195ff7=_0xbcd0d3[_0x24a77e];if(!_0x195ff7['isInContent'])continue;const _0x532115=this['_handleCustomCallbackDescription'](_0x195ff7);if(_0x532115){if(null!=_0x195ff7['subType']){if(_0x563ae9['has'](_0x195ff7['subType']))continue;_0x563ae9['add'](_0x195ff7['subType']);}_0x32fafc['push'](_0x532115);}else{if('attribute'==_0x195ff7['type']){const _0x44b1ad=_0x195ff7['data']['key'];if(_0x117e22['has'](_0x44b1ad))continue;_0x117e22['add'](_0x195ff7['data']['key']),_0x44b1ad==m?this['_handleRenameSuggestionDescription'](_0x32fafc,_0x195ff7):this['_handleAttributeSuggestionDescription'](_0x32fafc,_0x195ff7);continue;}'insertion'!=_0x195ff7['type']&&'deletion'!=_0x195ff7['type']||this['_handleInsertRemoveSuggestionDescription'](_0x32fafc,_0x195ff7,_0xbcd0d3[_0x24a77e+0x1]);}}return this['_resolveDescriptionItems'](_0x32fafc);}['registerDescriptionCallback'](_0x299785){this['_customCallbacks']['push'](_0x299785);}['registerElementLabel'](_0x32a3f8,_0x3d3490,_0xe51fec=_0x35714c['normal']){'function'==typeof _0x32a3f8?_0x3b3637(this['_itemLabelsCallbacks'],{'matchingCallback':_0x32a3f8,'label':_0x3d3490,'priority':_0xe51fec}):this['_itemLabels']['set'](_0x32a3f8,_0x3d3490);}['registerAttributeLabel'](_0x422640,_0x2c2801){this['_attributeLabels']['set'](_0x422640,_0x2c2801);}['getItemLabel'](_0x43e6c2,_0xc3bcd5=0x1){let _0x584eaf;for(const _0x2465ca of this['_itemLabelsCallbacks'])if(_0x2465ca['matchingCallback'](_0x43e6c2)){_0x584eaf=_0x2465ca['label'];break;}return _0x584eaf||(_0x584eaf=this['_itemLabels']['get'](_0x43e6c2['name'])),_0x584eaf?_0x584eaf(_0xc3bcd5):0x1!==_0xc3bcd5?_0xc3bcd5+'\x20'+_0x43e6c2['name']+'s':''+_0x43e6c2['name'];}['_addDescriptionItems'](_0x261da0,_0x9f3a6d){const _0x4ad81f=_0x9f3a6d['getFirstRange']()['getWalker'](),_0x21a9d5='insertion'==_0x9f3a6d['type']?'add':'remove';for(const _0x4aa888 of _0x4ad81f){const _0x25008d=_0x4aa888['item'],_0x117864=_0x261da0[_0x261da0['length']-0x1];if(_0x25008d['is']('$textProxy'))_0x117864&&_0x117864['type']['indexOf']('Container')>-0x1&&_0x261da0['pop'](),_0x117864&&'text'==_0x117864['type']?_0x117864[_0x21a9d5]+=_0x25008d['data']:_0x261da0['push']({'type':'text','add':'add'==_0x21a9d5?_0x25008d['data']:'','remove':'remove'==_0x21a9d5?_0x25008d['data']:''});else{if(this['_schema']['isObject'](_0x25008d)){const _0x2e7ae0=_0x25008d;if(_0x117864&&_0x117864['type']['indexOf']('Container')>-0x1&&_0x261da0['pop'](),'elementEnd'==_0x4aa888['type'])continue;_0x117864&&_0x117864['type']==_0x21a9d5+'Object'&&_0x117864['element']['name']==_0x2e7ae0['name']?_0x117864['quantity']++:_0x261da0['push']({'type':_0x21a9d5+'Object','element':_0x2e7ae0,'quantity':0x1}),_0x4ad81f['skip'](_0x392381=>!('elementEnd'==_0x392381['type']&&_0x392381['item']==_0x25008d));}else{if(this['_schema']['checkChild'](_0x25008d,'$text')||_0x25008d['is']('element','softBreak')){const _0x46f71e=_0x25008d;if('add'==_0x21a9d5&&'elementStart'==_0x4aa888['type']||'remove'==_0x21a9d5&&'elementEnd'==_0x4aa888['type'])continue;if(_0x117864&&-0x1==_0x117864['type']['indexOf']('Container')){'text'==_0x117864['type']&&(_0x117864[_0x21a9d5]+='\x0a');continue;}let _0x2ae3df;if(_0x2ae3df='add'==_0x21a9d5?_0x46f71e['nextSibling']&&!this['_schema']['isObject'](_0x46f71e['nextSibling'])?_0x46f71e['nextSibling']:null:_0x46f71e['previousSibling']&&!this['_schema']['isObject'](_0x46f71e['previousSibling'])?_0x46f71e['previousSibling']:null,_0x46f71e['isEmpty']||_0x2ae3df&&_0x2ae3df['isEmpty']){const _0x297259=_0x2ae3df&&_0x2ae3df['isEmpty']?_0x2ae3df:_0x46f71e;_0x117864&&_0x117864['type']==_0x21a9d5+'EmptyContainer'&&_0x117864['element']['name']==_0x297259['name']?_0x117864['quantity']++:_0x261da0['push']({'type':_0x21a9d5+'EmptyContainer','element':_0x297259,'quantity':0x1});}else _0x261da0['push']({'type':_0x21a9d5+'Container','element':_0x46f71e});}}}}}['_resolveDescriptionItems'](_0x46edcc){const _0x508840=this['_locale'],_0x27d3ad=[],_0x4c5d7b=[],_0x285cc4=[];for(const _0x1f4334 of _0x46edcc)switch(_0x1f4334['type']){case'text':if(_0x1f4334['add']=_0x1f4334['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1f4334['remove']=_0x1f4334['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1f4334['add']&&''!=_0x1f4334['remove']){_0x27d3ad['push']({'type':'replace','content':o(_0x508840,'REPLACE_TEXT',['\x22'+_0x1f4334['remove']+'\x22','\x22'+_0x1f4334['add']+'\x22'])});continue;}if(null!=_0x1f4334['add']['match'](/^ +$/)){_0x27d3ad['push']({'type':'insertion','content':o(_0x508840,'*Insert:*\x20%0',o(_0x508840,'ELEMENT_SPACE',_0x1f4334['add']['length']))});continue;}if(null!=_0x1f4334['remove']['match'](/^ +$/)){_0x27d3ad['push']({'type':'deletion','content':o(_0x508840,'*Remove:*\x20%0',o(_0x508840,'ELEMENT_SPACE',_0x1f4334['remove']['length']))});continue;}if(''!=_0x1f4334['add']){_0x27d3ad['push']({'type':'insertion','content':o(_0x508840,'*Insert:*\x20%0','\x22'+_0x1f4334['add']+'\x22')});continue;}_0x27d3ad['push']({'type':'deletion','content':o(_0x508840,'*Remove:*\x20%0','\x22'+_0x1f4334['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x27d3ad['push']({'type':'insertion','content':o(_0x508840,'*Insert:*\x20%0',this['getItemLabel'](_0x1f4334['element'],_0x1f4334['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x27d3ad['push']({'type':'deletion','content':o(_0x508840,'*Remove:*\x20%0',this['getItemLabel'](_0x1f4334['element'],_0x1f4334['quantity']))});continue;case'addContainer':_0x27d3ad['push']({'type':'insertion','content':o(_0x508840,'*Split:*\x20%0',this['getItemLabel'](_0x1f4334['element'],_0x1f4334['quantity']))});continue;case'removeContainer':_0x27d3ad['push']({'type':'deletion','content':o(_0x508840,'*Merge:*\x20%0',this['getItemLabel'](_0x1f4334['element'],_0x1f4334['quantity']))});continue;case'addFormat':_0x4c5d7b['push'](_0x1f4334['key']);continue;case'removeFormat':_0x285cc4['push'](_0x1f4334['key']);continue;default:_0x27d3ad['push'](_0x1f4334);}if(_0x4c5d7b['length']){const _0x458b4f=_0x4c5d7b['map'](_0x12f59f=>this['_attributeLabels']['has'](_0x12f59f)?this['_attributeLabels']['get'](_0x12f59f):_0x12f59f)['join'](',\x20');_0x27d3ad['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x458b4f)});}if(_0x285cc4['length']){const _0x516149=_0x285cc4['map'](_0x3804a5=>this['_attributeLabels']['has'](_0x3804a5)?this['_attributeLabels']['get'](_0x3804a5):_0x3804a5)['join'](',\x20');_0x27d3ad['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x516149)});}return _0x27d3ad;}['_handleCustomCallbackDescription'](_0x41b11f){for(const _0x4205de of this['_customCallbacks']){const _0x1a655c=_0x4205de(_0x41b11f);if(_0x1a655c&&'type'in _0x1a655c)return _0x1a655c;}}['_handleAttributeSuggestionDescription'](_0x416703,_0x336ae0){const _0x236f2b=_0x336ae0['data'],_0x555d24=void 0x0===_0x236f2b['newValue']?'removeFormat':'addFormat';_0x416703['push']({'type':_0x555d24,'key':_0x236f2b['key']});}['_handleRenameSuggestionDescription'](_0x1cca95,_0x4adf29){_0x1cca95['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4adf29['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2d3b5c,_0x61f67b,_0x34b974){if(this['_addDescriptionItems'](_0x2d3b5c,_0x61f67b),_0x34b974&&_0x34b974['getFirstRange']()&&!_0x61f67b['getFirstRange']()['end']['isEqual'](_0x34b974['getFirstRange']()['start'])){const _0x363e0f=_0x2d3b5c[_0x2d3b5c['length']-0x1],_0x56a471='insertion'==_0x61f67b['type']?'add':'remove';_0x363e0f&&'text'==_0x363e0f['type']&&(_0x363e0f[_0x56a471]+='\x0a');}}}class V extends _0x4e7f5a{['afterInit'](){const _0x4ba317=this['editor'],_0x199d0c=_0x4ba317['plugins']['get']('TrackChangesEditing');_0x4ba317['commands']['get']('showAIAssistant')&&_0x199d0c['enableCommand']('showAIAssistant');}}class F extends _0x4e7f5a{['afterInit'](){const _0x71b86=this['editor'],_0x488c30=_0x71b86['plugins']['get']('TrackChangesEditing');_0x71b86['commands']['get']('toggleAi')&&_0x488c30['enableCommand']('toggleAi');}}class G extends _0x4e7f5a{['afterInit'](){const _0x9ec0db=this['editor'],_0x89fd79=_0x9ec0db['plugins']['get']('TrackChangesEditing');_0x9ec0db['commands']['get']('aiQuickAction')&&_0x89fd79['enableCommand']('aiQuickAction');}}class L extends _0x4e7f5a{['afterInit'](){const _0x149134=this['editor'],_0x2aebea=_0x149134['locale'];if(!_0x149134['plugins']['has']('AlignmentEditing'))return;const _0x5d5d5b=_0x149134['plugins']['get']('TrackChangesEditing');_0x5d5d5b['enableDefaultAttributesIntegration']('alignment'),_0x5d5d5b['registerBlockAttribute']('alignment'),_0x5d5d5b['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2aebea,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x253dca=this['editor'],_0x4a2bf2=_0x253dca['locale'];_0x253dca['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3694c4=>{if('formatBlock'!=_0x3694c4['type'])return;const {data:_0x40bd5a}=_0x3694c4;if(_0x40bd5a&&'alignment'==_0x40bd5a['commandName']){const _0x475b5d=_0x40bd5a['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4a2bf2,'*Format:*\x20%0',function(_0x2b5bcd){switch(_0x2b5bcd){case'left':return o(_0x4a2bf2,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4a2bf2,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4a2bf2,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4a2bf2,'FORMAT_JUSTIFY_TEXT');}}(_0x475b5d))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class J extends _0x4e7f5a{['afterInit'](){const _0x179f4b=this['editor'],_0x2c0693=_0x179f4b['plugins']['get']('TrackChangesEditing'),_0x26ded7=_0x179f4b['locale'];for(const _0x2ccec9 of ti){if(!_0x179f4b['plugins']['has'](_0x2ccec9))continue;const _0x1e68d7=_0x2ccec9['slice'](0x0,-0x7)['toLowerCase'](),_0x122097='FORMAT_'+_0x1e68d7['toUpperCase']();_0x2c0693['enableDefaultAttributesIntegration'](_0x1e68d7),_0x2c0693['registerInlineAttribute'](_0x1e68d7),_0x2c0693['descriptionFactory']['registerAttributeLabel'](_0x1e68d7,o(_0x26ded7,_0x122097));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2efe71=this['editor'],_0x41a71f=_0x2efe71['locale'],_0x2f9251=_0x2efe71['plugins']['get']('TrackChangesEditing');function _0x24759d(_0x5d9ab6,_0x1e2ca3){_0x2f9251['descriptionFactory']['registerDescriptionCallback'](_0x5f4da1=>{if('formatInline'!=_0x5f4da1['type'])return;const {data:_0x2d71ec}=_0x5f4da1;return _0x2d71ec&&_0x2d71ec['commandName']===_0x5d9ab6?_0x2d71ec['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x41a71f,'*Format:*\x20%0',_0x1e2ca3)}:{'type':'format','content':o(_0x41a71f,'*Remove\x20format:*\x20%0',_0x1e2ca3)}:void 0x0;});}_0x24759d('bold',o(_0x41a71f,'FORMAT_BOLD')),_0x24759d('italic',o(_0x41a71f,'FORMAT_ITALIC')),_0x24759d('underline',o(_0x41a71f,'FORMAT_UNDERLINE')),_0x24759d('code',o(_0x41a71f,'FORMAT_CODE')),_0x24759d('strikethrough',o(_0x41a71f,'FORMAT_STRIKETHROUGH')),_0x24759d('subscript',o(_0x41a71f,'FORMAT_SUBSCRIPT')),_0x24759d('superscript',o(_0x41a71f,'FORMAT_SUPERSCRIPT'));}}class K extends _0x4e7f5a{['afterInit'](){const _0xdff9a9=this['editor'],_0x4b48ad=_0xdff9a9['locale'];if(!_0xdff9a9['plugins']['has']('BlockQuoteEditing'))return;const _0x2607b4=_0xdff9a9['plugins']['get']('TrackChangesEditing'),_0x3c0702=this['editor']['commands']['get']('blockQuote');_0x2607b4['enableCommand']('blockQuote',(_0x5cb493,_0x41e6a8={})=>{const _0x4efc73=this['editor']['model']['document']['selection'],_0x37c37b=_0x41e6a8&&void 0x0!==_0x41e6a8['forceValue']?_0x41e6a8['forceValue']:!_0x3c0702['value'];let _0x1c4af3=[];if(_0x37c37b){const _0x13dcb6=Array['from'](_0x4efc73['getSelectedBlocks']())['filter'](_0x11b163=>oo(_0x11b163)||function(_0x2cc2c1,_0x128cfa){const _0x361247=_0x128cfa['checkChild'](_0x2cc2c1['parent'],'blockQuote'),_0x3e2269=_0x128cfa['checkChild'](['$root','blockQuote'],_0x2cc2c1);return _0x361247&&_0x3e2269;}(_0x11b163,this['editor']['model']['schema']));_0x1c4af3=to(_0x13dcb6,_0xdff9a9['model']);}else{const _0x13c932=Array['from'](_0x4efc73['getSelectedBlocks']())['filter'](_0x52a214=>oo(_0x52a214));_0x1c4af3=to(_0x13c932,_0xdff9a9['model']);}_0xdff9a9['model']['change'](()=>{for(const _0x119741 of _0x1c4af3)_0x2607b4['markBlockFormat'](_0x119741,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x37c37b}]});});}),_0x2607b4['descriptionFactory']['registerDescriptionCallback'](_0x536f2b=>{const {data:_0x425d47}=_0x536f2b;if(_0x425d47&&'blockQuote'==_0x425d47['commandName']){const _0xedc421=o(_0x4b48ad,'ELEMENT_BLOCK_QUOTE');return _0x425d47['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4b48ad,'*Set\x20format:*\x20%0',_0xedc421)}:{'type':'format','content':o(_0x4b48ad,'*Remove\x20format:*\x20%0',_0xedc421)};}});}}function oo(_0x20c324){return'blockQuote'==_0x20c324['parent']['name'];}class q extends _0x4e7f5a{['afterInit'](){const _0x4341ed=this['editor'],_0x4b2068=_0x4341ed['locale'],_0x693760=_0x4341ed['plugins']['get']('TrackChangesEditing');_0x4341ed['plugins']['has']('BookmarkEditing')&&(_0x693760['enableCommand']('insertBookmark'),_0x693760['enableDefaultAttributesIntegration']('updateBookmark'),_0x693760['registerBlockAttribute']('bookmarkId'),_0x693760['descriptionFactory']['registerDescriptionCallback'](_0x4d91b2=>{if('insertion'!=_0x4d91b2['type']&&'deletion'!=_0x4d91b2['type']&&'attribute'!=_0x4d91b2['type'])return;const _0x490fb7=_0x4d91b2['getContainedElement']();if(null==_0x490fb7)return;if(!_0x490fb7['is']('element','bookmark'))return;const _0x2a5a75=_0x490fb7['getAttribute']('bookmarkId');if('insertion'==_0x4d91b2['type'])return{'type':'insertion','content':o(_0x4b2068,'*Insert:*\x20%0','\x22'+_0x2a5a75+'\x22\x20'+o(_0x4b2068,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4d91b2['type'])return{'type':'deletion','content':o(_0x4b2068,'*Remove:*\x20%0','\x22'+_0x2a5a75+'\x22\x20'+o(_0x4b2068,'ELEMENT_BOOKMARK'))};const {data:_0x3158a2}=_0x4d91b2;if(!_0x3158a2||'bookmarkId'!=_0x3158a2['key'])return;return{'type':'format','content':o(_0x4b2068,'*Set\x20bookmark:*\x20%0','\x22'+_0x3158a2['newValue']+'\x22')};}));}}class H extends _0x4e7f5a{['afterInit'](){const _0x1a4b2f=this['editor'];_0x1a4b2f['plugins']['has']('CaseChange')&&(_0x1a4b2f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1a4b2f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1a4b2f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class W extends _0x4e7f5a{['afterInit'](){const _0x37c530=this['editor'];_0x37c530['commands']['get']('ckbox')&&_0x37c530['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class z extends _0x4e7f5a{['afterInit'](){const _0x27fcf6=this['editor'];if(!_0x27fcf6['plugins']['has']('CodeBlock'))return;const _0x3873ca=_0x27fcf6['plugins']['get']('TrackChangesEditing'),_0x457e02=_0x27fcf6['locale'],_0x1c8aa4=_0x27fcf6['config']['get']('codeBlock')['languages'],_0x3c7513=_0x27fcf6['commands']['get']('codeBlock');_0x3873ca['enableCommand']('indentCodeBlock'),_0x3873ca['enableCommand']('outdentCodeBlock'),_0x3873ca['enableCommand']('codeBlock',(_0x380e4c,_0x51cf5f={})=>{const _0x254090=_0x27fcf6['model'],_0x30e62b=_0x27fcf6['model']['document']['selection'],_0x5b7cf9=_0x51cf5f&&void 0x0!==_0x51cf5f['forceValue']?_0x51cf5f['forceValue']:!_0x3c7513['value'];let _0x1229ab;_0x51cf5f['language']||(_0x51cf5f['language']=_0x1c8aa4[0x0]['language']),_0x1229ab=_0x5b7cf9?Array['from'](_0x30e62b['getSelectedBlocks']())['filter'](_0x3d1d39=>co(_0x3d1d39)||function(_0x9da247,_0x8d212a){if(_0x9da247['is']('rootElement')||_0x8d212a['isLimit'](_0x9da247))return!0x1;return _0x8d212a['checkChild'](_0x9da247['parent'],'codeBlock');}(_0x3d1d39,_0x254090['schema'])):Array['from'](_0x30e62b['getSelectedBlocks']())['filter'](_0x4dc13b=>co(_0x4dc13b));const _0x3568aa=to(_0x1229ab,_0x254090);_0x254090['change'](()=>{for(const _0x2abfc2 of _0x3568aa)_0x3873ca['markBlockFormat'](_0x2abfc2,{'commandName':'codeBlock','commandParams':[{..._0x51cf5f,'forceValue':_0x5b7cf9}],'formatGroupId':'blockName'});});}),(_0x3873ca['descriptionFactory']['registerElementLabel']('codeBlock',_0x2ba8f1=>o(_0x457e02,'ELEMENT_CODE_BLOCK',_0x2ba8f1)),_0x3873ca['descriptionFactory']['registerDescriptionCallback'](_0x415fab=>{if('formatBlock'!=_0x415fab['type'])return;const _0x5e858c=_0x457e02['t'],{data:_0x3483a2}=_0x415fab;if(!_0x3483a2||'codeBlock'!=_0x3483a2['commandName'])return;const _0x2224bd=_0x3483a2['commandParams'][0x0]['language'],_0x162158=_0x5e858c(_0x1c8aa4['find'](_0x2f24ed=>_0x2f24ed['language']===_0x2224bd)['label'])['toLowerCase']();return _0x3483a2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x457e02,'*Set\x20format:*\x20%0',o(_0x457e02,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x162158+')')}:{'type':'format','content':o(_0x457e02,'*Remove\x20format:*\x20%0',o(_0x457e02,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x4aa0ad){return'codeBlock'==_0x4aa0ad['name'];}class Q extends _0x4e7f5a{['afterInit'](){const _0x513036=this['editor'];if(!_0x513036['plugins']['has']('CommentsEditing'))return;_0x513036['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2bb678,_0x3825fd,_0x3b1e62){const _0x5d0a33=[];for(const _0x1d5223 of _0x3825fd['getItems']())_0x1d5223['hasAttribute'](_0x2bb678)&&_0x5d0a33['push'](_0x3b1e62['createRangeOn'](_0x1d5223));return _0x5d0a33;}function Ve(_0x295680,_0x14a921,{showActiveMarker:_0x1359e8=!0x0}={}){const _0xe3b6b5=_0x295680['plugins']['get']('TrackChangesEditing');return(_0xf35d21,_0x47c592,_0x97bc8)=>{if(!_0x97bc8['consumable']['test'](_0x47c592['markerRange'],_0xf35d21['name']))return;const _0x212e89=_0x47c592['markerRange']['getWalker'](),_0x5181b7=_0x47c592['markerRange']['start'],_0x207eff=_0x295680['model']['schema'];let _0x7a0666=null,_0x567610=null,_0x49ee8a=!0x1,_0x11089b=!0x1;for(const _0x54d7f7 of _0x212e89){const _0xc7f8e2=_0x54d7f7['item'];_0x49ee8a=_0x49ee8a||_0x207eff['isContent'](_0xc7f8e2);const _0x330bb7=_0x97bc8['mapper']['toViewElement'](_0xc7f8e2);if(_0x330bb7&&_0x330bb7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x54d7f7['type']&&(_0x207eff['isBlock'](_0xc7f8e2)&&!_0x207eff['isLimit'](_0xc7f8e2)&&(_0xc7f8e2['nextSibling']||_0x5181b7['isAtEnd']?_0x7a0666&&_0x7a0666['parent']==_0xc7f8e2||(_0x7a0666=_0xc7f8e2,_0x3e64e8(_0x54d7f7['previousPosition']),_0x11089b=!0x0):_0x567610=_0x567610||_0x54d7f7['previousPosition']));}function _0x3e64e8(_0x141299){const {id:_0x16fa79,authorId:_0x47856e}=_0xe3b6b5['_splitMarkerName'](_0x47c592['markerName']),_0x4f4d6e=_0x97bc8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x14a921,'data-suggestion':_0x16fa79,'data-author-id':_0x47856e}),_0x29bca9=_0x97bc8['mapper']['toViewPosition'](_0x141299);_0x1359e8&&_0xe3b6b5['activeMarkers']['includes'](_0x47c592['markerName'])&&_0x97bc8['writer']['addClass']('ck-suggestion-marker--active',_0x4f4d6e),_0x97bc8['writer']['insert'](_0x29bca9,_0x4f4d6e),_0x97bc8['mapper']['bindElementToMarker'](_0x4f4d6e,_0x47c592['markerName']);}_0x49ee8a||_0x11089b||!_0x567610||_0x3e64e8(_0x567610);};}class X extends _0x4e7f5a{static get['requires'](){return[_0x1f94eb];}['init'](){const _0x3e38c3=this['editor'],_0x249d4e=_0x3e38c3['plugins']['get']('TrackChangesEditing');_0x249d4e['enableCommand']('delete');const _0x359f3d=_0x3e38c3['commands']['get']('deleteForward');_0x249d4e['enableCommand']('deleteForward',(_0x31e7f7,_0x40ad6c={})=>{const _0x39fbdc=_0x3e38c3['model']['createSelection'](_0x3e38c3['model']['document']['selection']);_0x39fbdc['isCollapsed']&&_0x3e38c3['model']['modifySelection'](_0x39fbdc,{'direction':'forward','unit':_0x40ad6c['unit']});const _0x44bd81=_0x39fbdc['getFirstRange'](),_0x1f37fa=_0x3d40b9['fromRange'](_0x44bd81);let _0x2f7ff1;_0x31e7f7(_0x40ad6c),_0x2f7ff1='$graveyard'==_0x1f37fa['root']['rootName']?_0x3e38c3['model']['createRange'](_0x44bd81['start']):_0x3e38c3['model']['createRange'](_0x1f37fa['start'],_0x1f37fa['end']),_0x1f37fa['detach'](),_0x3e38c3['model']['enqueueChange'](_0x359f3d['buffer']['batch'],_0x19015b=>{_0x359f3d['buffer']['lock'](),_0x19015b['setSelection'](_0x19015b['createRange'](_0x2f7ff1['end'])),_0x359f3d['buffer']['unlock']();});}),_0x3e38c3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ve(_0x3e38c3,'merge'),{'priority':'high'}),_0x3e38c3['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x120fe0,_0x35a32d,_0x4674eb)=>{_0x4674eb['options']['showSuggestionHighlights']&&Ve(_0x3e38c3,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x120fe0,_0x35a32d,_0x4674eb);},{'priority':'high'}),_0x3e38c3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x132e92,_0xeb6a70,_0x45205a)=>{const _0x5d2e3f=_0x45205a['mapper']['markerNameToElements'](_0xeb6a70['markerName']);if(_0x5d2e3f){for(const _0x498227 of _0x5d2e3f)_0x498227['is']('uiElement')&&(_0x45205a['mapper']['unbindElementFromMarkerName'](_0x498227,_0xeb6a70['markerName']),_0x45205a['writer']['remove'](_0x498227));}},{'priority':'high'});}}class Y extends _0x4e7f5a{['afterInit'](){const _0x3fd0ca=this['editor'];if(!_0x3fd0ca['plugins']['has']('ListEditing'))return;const _0xeae9d0=_0x3fd0ca['locale'],_0x584558=_0x3fd0ca['plugins']['get']('TrackChangesEditing'),_0x3910dc=_0x3fd0ca['plugins']['has']('TodoListEditing'),_0x29437d=!!_0x3fd0ca['config']['get']('list.multiBlock');function _0x3659b7(_0x871bac){return{'type':'format','content':''+o(_0xeae9d0,'*Set\x20format:*\x20%0',_0x871bac)};}function _0x2331a2(_0x4fd4b6){return{'type':'format','content':''+o(_0xeae9d0,'*Remove\x20format:*\x20%0',_0x4fd4b6)};}_0x584558['enableDefaultAttributesIntegration']('numberedList'),_0x584558['enableDefaultAttributesIntegration']('bulletedList'),_0x584558['enableDefaultAttributesIntegration']('customNumberedList'),_0x584558['enableDefaultAttributesIntegration']('customBulletedList'),_0x584558['enableDefaultAttributesIntegration']('indentList'),_0x584558['enableDefaultAttributesIntegration']('outdentList'),_0x584558['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x584558['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x584558['registerBlockAttribute']('listItemId'),_0x584558['registerBlockAttribute']('listType'),_0x584558['registerBlockAttribute']('listIndent'),_0x29437d&&(_0x584558['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x584558['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3910dc&&(_0x584558['enableDefaultAttributesIntegration']('todoList'),_0x584558['enableDefaultAttributesIntegration']('checkTodoList'),_0x584558['registerBlockAttribute']('todoListChecked'),_0x584558['descriptionFactory']['registerDescriptionCallback'](_0x40b47a=>{const {data:_0x560f49}=_0x40b47a;if(_0x560f49&&'todoListChecked'==_0x560f49['key'])return{'type':'format','content':_0x560f49['newValue']?o(_0xeae9d0,'*Check\x20item*'):o(_0xeae9d0,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x408747=>{if(_0x408747['batch']['isUndo'])return!0x1;let _0xdfe4a=!0x1;const _0x270335=_0x584558['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1f1ce5=>'todoListChecked'===_0x584558['_getAttributeKey'](_0x1f1ce5));for(const _0x361dc4 of _0x270335){'todo'!=_0x361dc4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x584558['_findSuggestions'](_0x361dc4['getFirstRange'](),'attribute')['find'](_0x41a7bb=>'listType'===_0x584558['_getAttributeKey'](_0x41a7bb['suggestion']))||(_0x408747['removeMarker'](_0x361dc4['getFirstMarker']()),_0xdfe4a=!0x0));}return _0xdfe4a;})),_0x584558['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xeae9d0,'FORMAT_INDENT'));const _0x42ab81={'type':'format','content':''};_0x584558['descriptionFactory']['registerDescriptionCallback'](_0x43ef8c=>{const {data:_0x534041}=_0x43ef8c;if(!_0x534041||'listType'!=_0x534041['key'])return;let _0x219751=_0x43ef8c['head'];for(;_0x219751;){if(_0x219751['data']&&(('listStyle'==_0x219751['data']['key']||'listMarkerStyle'==_0x219751['data']['key'])&&(_0x219751['data']['newValue']&&'default'!=_0x219751['data']['newValue']||'default'!=_0x219751['data']['oldValue']&&!_0x534041['newValue'])||!_0x29437d&&_0x219751['data']['key']==m))return _0x42ab81;_0x219751=_0x219751['next'];}if(null==_0x534041['newValue'])switch(_0x534041['oldValue']){case'bulleted':return _0x2331a2(o(_0xeae9d0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2331a2(o(_0xeae9d0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2331a2(o(_0xeae9d0,'ELEMENT_TODO_LIST'));}switch(_0x534041['newValue']){case'bulleted':return _0x3659b7(o(_0xeae9d0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3659b7(o(_0xeae9d0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3659b7(o(_0xeae9d0,'ELEMENT_TODO_LIST'));}}),_0x584558['descriptionFactory']['registerDescriptionCallback'](_0x4a5bcd=>{const {data:_0x5b7e54}=_0x4a5bcd;if(_0x5b7e54&&'listIndent'==_0x5b7e54['key'])return null==_0x5b7e54['newValue']||null==_0x5b7e54['oldValue']&&0x0==_0x5b7e54['newValue']?_0x42ab81:void 0x0;}),_0x584558['descriptionFactory']['registerDescriptionCallback'](_0x15d3fa=>{if('attribute'!=_0x15d3fa['type'])return;const {data:_0x1a8c04}=_0x15d3fa;if(!_0x1a8c04||'listItemId'!=_0x1a8c04['key'])return;const _0x3c3ad7=Be(_0x15d3fa);return'newValue'==_0x3c3ad7?{'type':'format','content':o(_0xeae9d0,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3c3ad7?{'type':'format','content':o(_0xeae9d0,'*Split:*\x20list\x20item')}:_0x42ab81;}),_0x3fd0ca['model']['document']['registerPostFixer'](_0x323dc6=>this['listItemIdFixer'](_0x323dc6)),_0x3fd0ca['model']['document']['registerPostFixer'](_0x48a4c0=>this['noTrackChangesFixer'](_0x48a4c0)),_0x3fd0ca['model']['document']['on']('change:data',(_0x1fce99,_0xbcb745)=>{if(_0xbcb745['isUndo']||!_0xbcb745['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x16cfa3){if(_0x16cfa3['batch']['isUndo']||!_0x16cfa3['batch']['isLocal'])return!0x1;let _0x142bef=!0x1;const _0x24ff71=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4dea86=>_0x4dea86['data']&&'listItemId'==_0x4dea86['data']['key'])['filter'](_0x50dc8d=>_0x50dc8d['data']['newValue']&&_0x50dc8d['data']['oldValue']);for(const _0x187f34 of _0x24ff71)Be(_0x187f34)||(_0x16cfa3['removeMarker'](_0x187f34['getFirstMarker']()),_0x142bef=!0x0);return _0x142bef;}['noTrackChangesFixer'](_0x15a8de){if(_0x15a8de['batch']['isUndo']||!_0x15a8de['batch']['isLocal'])return!0x1;const _0x368bd8=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x368bd8['trackChangesCommand']['value'])return!0x1;let _0x5e7f98=!0x1;const _0x98f55f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4b9181=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x30b35e=>'attribute'==_0x30b35e['type'])['filter'](_0x1ec812=>_0x98f55f['includes'](_0x1ec812['attributeKey']));if(0x0==_0x4b9181['length'])return _0x5e7f98;for(const _0xb1f3d6 of _0x4b9181){const _0x52f759=_0x368bd8['_findSuggestions'](_0xb1f3d6['range'],'attribute')['filter'](_0x4bb1db=>!_0x4bb1db['meta']['isNextTo'])['map'](_0x33a9ab=>_0x33a9ab['suggestion'])['filter'](_0x310959=>{const _0x3461ba=_0x368bd8['_getAttributeKey'](_0x310959);return _0x98f55f['includes'](_0x3461ba);});if(_0x52f759['length']){for(const _0x8973be of _0x52f759)_0x15a8de['removeMarker'](_0x8973be['getFirstMarker']());_0x5e7f98=!0x0;}}return _0x5e7f98;}['assureChains'](){const _0x22a049=this['editor']['plugins']['get']('TrackChangesEditing'),_0x113a3a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x37abe4;const _0x30da8f=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x43fa5b=>{if(_0x43fa5b['data']['oldRange']||!_0x43fa5b['data']['newRange'])return null;if(!_0x43fa5b['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2ec0fb}=_0x22a049['_splitMarkerName'](_0x43fa5b['name']);if(!_0x22a049['hasSuggestion'](_0x2ec0fb))return null;const _0x336313=_0x22a049['getSuggestion'](_0x2ec0fb);return _0x113a3a['includes'](_0x336313['data']['key']);})['map'](_0x1dc909=>{const {id:_0x10aced}=_0x22a049['_splitMarkerName'](_0x1dc909['name']),_0x51f63a=_0x22a049['getSuggestion'](_0x10aced);return _0x37abe4=_0x51f63a['attributes']['groupId'],_0x51f63a['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x30da8f['size'])return;const _0x56b96a=_0x22a049['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x53cc47=>'attribute'==_0x53cc47['type']&&_0x53cc47['data']&&_0x113a3a['includes'](_0x53cc47['data']['key'])&&_0x53cc47['attributes']['groupId']!=_0x37abe4)['map'](_0x30df27=>({'listItem':_0x30df27['getFirstRange']()['start']['nodeAfter'],'groupId':_0x30df27['attributes']['groupId']})),_0x521f0d=new Set();for(const {groupId:_0x23c850,listItem:_0x3b7f90}of _0x56b96a)_0x30da8f['has'](_0x3b7f90)&&_0x521f0d['add'](_0x23c850);for(const _0xd32e43 of _0x22a049['getSuggestions']())_0x521f0d['has'](_0xd32e43['attributes']['groupId'])&&_0xd32e43['setAttribute']('groupId',_0x37abe4);}['_supportLegacySuggestions'](){const _0x481f95=this['editor'],_0x67c24=_0x481f95['locale'],_0xda4a7=_0x481f95['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xda4a7['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xb59bf1,_0x415bda){const _0x554098=[];for(let _0x1f86da of _0xb59bf1)_0x1f86da['start']['nodeAfter']===_0x1f86da['end']['parent']&&(_0x1f86da=_0x481f95['model']['createRange'](_0x481f95['model']['createPositionAt'](_0x1f86da['start']['nodeAfter'],0x0))),_0x554098['push'](_0x1f86da);_0x481f95['model']['change'](_0x2e9856=>{const _0x5ba6ce=_0x481f95['model']['document']['selection'],_0x4c1f07=Array['from'](_0x5ba6ce['getRanges']())['map'](_0x53acbe=>_0x3d40b9['fromRange'](_0x53acbe));_0x2e9856['setSelection'](_0x554098),_0x481f95['commands']['get'](_0x415bda['commandName'])['refresh'](),_0x415bda['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x481f95['execute'](_0x415bda['commandName'],..._0x415bda['commandParams']),_0x2e9856['setSelection'](_0x4c1f07);for(const _0x3e4a97 of _0x4c1f07)_0x3e4a97['detach']();});}),_0xda4a7['descriptionFactory']['registerElementLabel'](function(_0x47b55a){const _0x12f538=!_0x481f95['model']['schema']['isObject'](_0x47b55a),_0x2ab3ce=_0x47b55a['previousSibling'],_0x395613=_0x47b55a['nextSibling'],_0xa817f0=_0x47b55a['getAttribute']('listItemId'),_0x4136b9=!_0x2ab3ce||_0x2ab3ce['getAttribute']('listItemId')!==_0xa817f0,_0x265f1e=!_0x395613||_0x395613['getAttribute']('listItemId')!==_0xa817f0;return _0x12f538&&Boolean(_0xa817f0)&&_0x4136b9&&_0x265f1e;},_0x1dc3b6=>o(_0x67c24,'ELEMENT_LIST_ITEM',_0x1dc3b6));}['_registerLegacyDescription'](){const _0x5c3fef=this['editor'],_0x2128e5=_0x5c3fef['locale'];function _0x478333(_0x270a24){const _0x278784=_0x5c3fef['commands']['get']('bulletedList')['value'],_0x196889=_0x5c3fef['commands']['get']('numberedList')['value'];return'numberedList'===_0x270a24?_0x278784:_0x196889;}_0x5c3fef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5c2685){if('formatBlock'!=_0x5c2685['type'])return;const {data:_0x19b6c1}=_0x5c2685;if(!_0x19b6c1)return;let _0x15c908,_0xb1918a,_0x3189cb,_0x11476e;switch(_0x19b6c1['commandName']){case'bulletedList':_0x3189cb=_0x19b6c1['commandParams'][0x0]['forceValue'],_0x11476e=_0x478333(_0x19b6c1['commandName']),_0x15c908=_0x3189cb?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x11476e&&_0x5c3fef['config']['get']('list.multiBlock')||(_0x15c908='*Change\x20to:*\x20%0'),_0xb1918a={'type':'format','content':o(_0x2128e5,_0x15c908,o(_0x2128e5,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3189cb=_0x19b6c1['commandParams'][0x0]['forceValue'],_0x11476e=_0x478333(_0x19b6c1['commandName']),_0x15c908=_0x3189cb?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x11476e&&_0x5c3fef['config']['get']('list.multiBlock')||(_0x15c908='*Change\x20to:*\x20%0'),_0xb1918a={'type':'format','content':o(_0x2128e5,_0x15c908,o(_0x2128e5,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x15c908='*Indent:*\x20%0',_0xb1918a={'type':'format','content':o(_0x2128e5,_0x15c908,o(_0x2128e5,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x15c908=function(_0xfa7d5){const _0x21f05b=_0xfa7d5['getFirstRange']();let _0x28edf0=_0x21f05b['start']['nodeAfter'];for(;_0x28edf0&&_0x21f05b['containsItem'](_0x28edf0);){if(_0x28edf0['getAttribute']('listIndent')>0x0)return!0x1;_0x28edf0=_0x28edf0['nextSibling'];}return!0x0;}(_0x5c2685)?o(_0x2128e5,'*Format:*\x20remove\x20from\x20%0',o(_0x2128e5,function(_0x24346c){return'ELEMENT_'+_0x24346c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5c2685))):o(_0x2128e5,'*Outdent:*\x20%0',o(_0x2128e5,'ELEMENT_LIST_ITEM')),_0xb1918a={'type':'format','content':_0x15c908};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x19b6c1['multipleBlocks']&&(_0x15c908='*Merge:*\x20%0',_0xb1918a={'type':'deletion','content':o(_0x2128e5,_0x15c908,o(_0x2128e5,'ELEMENT_LIST_ITEM'))});}return _0xb1918a;});}}function Be(_0x25184e){let _0x328777=_0x25184e['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x328777;){const _0x2573e1=_0x328777['getAttribute']('listItemId');if(!_0x2573e1)return!0x1;if(_0x2573e1==_0x25184e['data']['newValue'])return'newValue';if(_0x2573e1==_0x25184e['data']['oldValue'])return'oldValue';_0x328777=_0x328777['previousSibling'];}return!0x1;}class Z extends _0x4e7f5a{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x14a801=this['editor']['config']['get']('list.properties'),_0x253d94=this['editor']['plugins']['get']('TrackChangesEditing');_0x14a801['styles']&&(_0x253d94['enableDefaultAttributesIntegration']('listStyle'),_0x253d94['registerBlockAttribute']('listStyle')),_0x14a801['reversed']&&(_0x253d94['enableDefaultAttributesIntegration']('listReversed'),_0x253d94['registerBlockAttribute']('listReversed')),_0x14a801['startIndex']&&(_0x253d94['enableDefaultAttributesIntegration']('listStart'),_0x253d94['registerBlockAttribute']('listStart'));const _0x13a047={'type':'format','content':''};_0x253d94['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3d6765=this['editor']['locale'];_0x253d94['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3d6765,'FORMAT_LIST_REVERSED')),_0x253d94['descriptionFactory']['registerDescriptionCallback'](_0x1a4e37=>{const {data:_0x53805d}=_0x1a4e37;if(_0x53805d&&'listReversed'==_0x53805d['key'])return null==_0x53805d['newValue']||0x0==_0x53805d['newValue']&&null==_0x53805d['oldValue']?_0x13a047:void 0x0;}),_0x253d94['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3d6765,'FORMAT_LIST_START')),_0x253d94['descriptionFactory']['registerDescriptionCallback'](_0x1738e0=>{const {data:_0x3e01f7}=_0x1738e0;if(_0x3e01f7&&'listStart'==_0x3e01f7['key'])return null==_0x3e01f7['newValue']||0x1==_0x3e01f7['newValue']&&null==_0x3e01f7['oldValue']?_0x13a047:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x24b17b=>{if(_0x24b17b['batch']['isUndo'])return!0x1;let _0x5af7d6=!0x1;const _0x335539=_0x253d94['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x448e1f=>{const _0x19e4ec=_0x253d94['_getAttributeKey'](_0x448e1f);return'listStart'==_0x19e4ec||'listReversed'==_0x19e4ec;});for(const _0x9d57d5 of _0x335539){const _0x579164=_0x9d57d5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x579164||'customNumbered'==_0x579164)continue;_0x253d94['_findSuggestions'](_0x9d57d5['getFirstRange'](),'attribute')['find'](_0x16016c=>'listType'==_0x253d94['_getAttributeKey'](_0x16016c['suggestion']))||(_0x24b17b['removeMarker'](_0x9d57d5['getFirstMarker']()),_0x5af7d6=!0x0);}return _0x5af7d6;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x369460){const _0xd4fac3=this['editor']['locale'],{data:_0x1947b8}=_0x369460,_0x22dc57={'type':'format','content':''};if(!_0x1947b8||'listStyle'!=_0x1947b8['key'])return;if(!_0x1947b8['oldValue'])return'default'==_0x1947b8['newValue']?_0x22dc57:{'type':'format','content':''+o(_0xd4fac3,'*Set\x20format:*\x20%0',o(_0xd4fac3,this['_getTranslationKeyForListStyle'](_0x1947b8['newValue'])))};if(!_0x1947b8['newValue']){if('default'==_0x1947b8['oldValue'])return _0x22dc57;let _0x451537=_0x369460['head'];for(;_0x451537;){if(_0x451537['data']&&'listType'==_0x451537['data']['key']&&_0x451537['data']['newValue'])return _0x22dc57;_0x451537=_0x451537['next'];}return{'type':'format','content':''+o(_0xd4fac3,'*Remove\x20format:*\x20%0',o(_0xd4fac3,this['_getTranslationKeyForListStyle'](_0x1947b8['oldValue'])))};}if('default'!=_0x1947b8['newValue'])return{'type':'format','content':''+o(_0xd4fac3,'*Set\x20format:*\x20%0',o(_0xd4fac3,this['_getTranslationKeyForListStyle'](_0x1947b8['newValue'])))};let _0x408654=_0x369460['head'];for(;_0x408654;){if(_0x408654['data']&&'listType'==_0x408654['data']['key']&&_0x408654['data']['newValue']&&_0x408654['data']['oldValue'])return _0x22dc57;_0x408654=_0x408654['next'];}return{'type':'format','content':o(_0xd4fac3,'*Set\x20format:*\x20%0',o(_0xd4fac3,'ELEMENT_'+_0x369460['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xaf8760=this['editor'],_0x106a53=_0xaf8760['locale'];_0xaf8760['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b24a6=>{if('formatBlock'!=_0x3b24a6['type'])return;const {data:_0xd93f27}=_0x3b24a6;if(!_0xd93f27)return;let _0x322e15,_0x172c0a;switch(_0xd93f27['commandName']){case'listStyle':_0x322e15='*Change\x20to:*\x20%0',_0x172c0a={'type':'format','content':o(_0x106a53,_0x322e15,o(_0x106a53,this['_getTranslationKeyForListStyle'](_0xd93f27['commandParams'][0x0]['type'])))};break;case'listReversed':_0x322e15=_0xd93f27['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x172c0a={'type':'format','content':o(_0x106a53,_0x322e15)};break;case'listStart':_0x322e15='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x172c0a={'type':'format','content':o(_0x106a53,_0x322e15,_0xd93f27['commandParams'][0x0]['startIndex'])};}return _0x172c0a;});}['_getTranslationKeyForListStyle'](_0x3972ae){return'ELEMENT_'+function(_0x53d917){if(Re['includes'](_0x53d917))return'bulleted';if(De['includes'](_0x53d917))return'numbered';return null;}(_0x3972ae)['toUpperCase']()+'_LIST_'+_0x3972ae['toUpperCase']()['replace'](/-/g,'_');}}const Re=['disc','circle','square'],De=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class tt extends _0x4e7f5a{['afterInit'](){const _0x51b2db=this['editor'];_0x51b2db['commands']['get']('emoji')&&_0x51b2db['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class et extends _0x4e7f5a{static get['requires'](){return[_0x447bd9];}['init'](){const _0x34cb85=this['editor'],_0x47620f=_0x34cb85['plugins']['get']('TrackChangesEditing'),_0x1e75b5=_0x34cb85['commands']['get']('enter');_0x47620f['enableCommand']('enter',()=>{_0x34cb85['model']['change'](_0x4bf648=>{const _0x135f65=_0x34cb85['model']['document']['selection'],_0x4a974b=_0x135f65['getFirstPosition'](),_0x33c755=_0x3d40b9['fromRange'](_0x135f65['getFirstRange']());if(_0x1e75b5['enterBlock'](_0x4bf648)){const _0x33f075=_0x34cb85['model']['createPositionAt'](_0x4a974b['parent']['nextSibling'],0x0),_0x43d233=_0x4bf648['createRange'](_0x4a974b,_0x33f075);_0x47620f['markInsertion'](_0x43d233);}else _0x4bf648['setSelection'](_0x4bf648['createRange'](_0x33c755['end']));_0x33c755['detach'](),_0x1e75b5['fire']('afterExecute',{'writer':_0x4bf648});});}),_0x34cb85['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ve(_0x34cb85,'split'),{'priority':'high'}),_0x34cb85['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4a27af,_0x381f8d,_0x4a99f7)=>{const _0x34a25d=_0x4a99f7['mapper']['markerNameToElements'](_0x381f8d['markerName']);if(_0x34a25d){for(const _0x5ad5ee of _0x34a25d)_0x5ad5ee['hasClass']('ck-suggestion-marker-split')&&(_0x4a99f7['mapper']['unbindElementFromMarkerName'](_0x5ad5ee,_0x381f8d['markerName']),_0x4a99f7['writer']['remove'](_0x5ad5ee));}},{'priority':'high'}),_0x34cb85['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x299e93,_0x5cbc7d,_0x54623e)=>{_0x54623e['options']['showSuggestionHighlights']&&Ve(_0x34cb85,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x299e93,_0x5cbc7d,_0x54623e);},{'priority':'high'});}}class it extends _0x4e7f5a{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1347fb=this['editor']['plugins']['get']('TrackChangesEditing');_0x1347fb['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1347fb['enableCommand']('findNext'),_0x1347fb['enableCommand']('findPrevious'),_0x1347fb['enableCommand']('replace'),_0x1347fb['enableCommand']('replaceAll');}['handleFindCommand'](_0x2e52eb,_0x3e93da,_0x190899={}){const _0x174556=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2e52eb(_0x13070e=>{let _0x1ec4c7=('string'==typeof _0x3e93da?_0x174556['findByTextCallback'](_0x3e93da,_0x190899):_0x3e93da)(_0x13070e);Array['isArray'](_0x1ec4c7)&&(_0x1ec4c7={'results':_0x1ec4c7,'searchText':'string'==typeof _0x3e93da?_0x3e93da:''});const _0x4581e2=_0x1ec4c7['results']['filter'](_0x53f02b=>!0x1===this['_isInDeletionRange'](_0x53f02b,_0x13070e['item']));return{..._0x1ec4c7,'results':_0x4581e2};},_0x190899);}['_isInDeletionRange'](_0x14b4eb,_0x47284d){const _0x9dc671=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x47284d,_0x14b4eb['start']),this['editor']['model']['createPositionAt'](_0x47284d,_0x14b4eb['end']));for(const _0x59f38e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x9dc671['getIntersection'](_0x59f38e['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class nt extends _0x4e7f5a{['afterInit'](){const _0x11a0ea=this['editor']['locale'],_0x568f1d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x10891e,commandName:_0x2a9ce2}of eo)this['editor']['plugins']['has'](_0x10891e)&&(_0x568f1d['enableDefaultAttributesIntegration'](_0x2a9ce2),_0x568f1d['registerInlineAttribute'](_0x2a9ce2));_0x568f1d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x11a0ea,'FORMAT_FONT_SIZE')),_0x568f1d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x11a0ea,'FORMAT_FONT_FAMILY')),_0x568f1d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x11a0ea,'FORMAT_FONT_COLOR')),_0x568f1d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x11a0ea,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x153974=this['editor'],_0x41a757=_0x153974['locale'];_0x153974['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xea1a99=>{const _0x810baf=_0x41a757['t'];if('formatInline'!=_0xea1a99['type'])return;const {data:_0x18e1ed}=_0xea1a99;if(null!=_0x18e1ed){if('fontSize'==_0x18e1ed['commandName']){const _0x45177e=_0x18e1ed['commandParams'][0x0]['value'];if(_0x45177e){const _0x5136ba=_0x810baf(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x13af08=>_0x13af08['model']==_0x45177e)['title'])['toLowerCase']();return{'type':'format','content':o(_0x41a757,'*Set\x20font\x20size:*\x20%0',_0x5136ba)};}return{'type':'format','content':o(_0x41a757,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x18e1ed['commandName']){const _0x31e3aa=_0x18e1ed['commandParams'][0x0]['value'];return _0x31e3aa?{'type':'format','content':o(_0x41a757,'*Set\x20font\x20family:*\x20%0',_0x31e3aa)}:{'type':'format','content':o(_0x41a757,'*Reset\x20font\x20family*')};}if('fontColor'==_0x18e1ed['commandName']){const _0x820698=_0x18e1ed['commandParams'][0x0]['value'];if(_0x820698){const _0x3f13a2=_0x311c22(this['editor']['config']['get']('fontColor.colors'))['find'](_0x29cb0b=>_0x29cb0b['model']==_0x820698);let _0x4feeb6=_0x820698,_0x2c7f4f='';return _0x3f13a2&&(_0x4feeb6=_0x3f13a2['label'],_0x2c7f4f=_0x810baf(_0x4feeb6)['toLowerCase']()),{'type':'format','content':o(_0x41a757,'*Set\x20font\x20color:*\x20%0',_0x2c7f4f)['trim'](),'color':{'value':_0x820698,'title':_0x2c7f4f||_0x4feeb6}};}return{'type':'format','content':o(_0x41a757,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x18e1ed['commandName']){const _0x112c18=_0x18e1ed['commandParams'][0x0]['value'];if(_0x112c18){const _0x433c7f=_0x311c22(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x47d591=>_0x47d591['model']==_0x112c18);let _0x5be8ae=_0x112c18,_0x3ca340='';return _0x433c7f&&(_0x5be8ae=_0x433c7f['label'],_0x3ca340=_0x810baf(_0x5be8ae)['toLowerCase']()),{'type':'format','content':o(_0x41a757,'*Set\x20font\x20background\x20color:*\x20%0',_0x3ca340)['trim'](),'color':{'value':_0x112c18,'title':_0x3ca340||_0x5be8ae}};}return{'type':'format','content':o(_0x41a757,'*Reset\x20font\x20background\x20color*')};}}});}}class st extends _0x4e7f5a{['afterInit'](){const {plugins:_0x3c5924}=this['editor'];_0x3c5924['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x3c5924['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x5ebcc2,plugins:_0x4785d3,commands:_0x14925f}=this['editor'],_0x53925b=_0x4785d3['get']('TrackChangesEditing');_0x14925f['get']('footnotesStyle')&&_0x53925b['enableDefaultAttributesIntegration']('footnotesStyle'),_0x14925f['get']('footnotesStart')&&_0x53925b['enableDefaultAttributesIntegration']('footnotesStart'),_0x53925b['registerBlockAttribute']('footnotesListStyle'),_0x53925b['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x5ebcc2,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x53925b['registerBlockAttribute']('footnotesListStart'),_0x53925b['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x5ebcc2,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x4818a5=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x13ace8,commands:_0x3298c5}=this['editor'];_0x3298c5['get']('insertFootnote')&&_0x4818a5['enableCommand']('insertFootnote'),_0x4818a5['descriptionFactory']['registerElementLabel']('footnoteRef',_0x2d035b=>o(_0x13ace8,'ELEMENT_FOOTNOTE_REF',_0x2d035b)),_0x4818a5['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x4dabb4=>o(_0x13ace8,'ELEMENT_FOOTNOTE_DEFINITION',_0x4dabb4)),_0x4818a5['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x408bdf=>o(_0x13ace8,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x408bdf));}}class ot extends _0x4e7f5a{['afterInit'](){const _0x4f33b1=this['editor'],_0x18729e=_0x4f33b1['plugins']['get']('TrackChangesEditing'),_0x5704ba=_0x4f33b1['commands']['get']('copyFormat'),_0x297bb7=_0x4f33b1['commands']['get']('pasteFormat');_0x5704ba&&_0x297bb7&&(_0x18729e['enableDefaultAttributesIntegration']('pasteFormat'),_0x18729e['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1003c3=this['editor'],_0x1564bc=_0x1003c3['locale'];_0x1003c3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2783cc=>{if('formatBlock'!=_0x2783cc['type']&&'formatInline'!=_0x2783cc['type'])return;const {data:_0x1dba2a}=_0x2783cc;if(_0x1dba2a&&'pasteFormat'===_0x1dba2a['commandName']){const _0xaecbf=[],_0xe5945=_0x1dba2a['commandParams'][0x0];for(const [_0x18d78a,_0x284524]of Object['entries'](_0xe5945))_0xaecbf['push'](ro(_0x1003c3,_0x18d78a,_0x284524));return _0xaecbf['length']?{'type':'format','content':o(_0x1564bc,'*Set\x20format\x20to:*\x20%0',_0xaecbf['join'](',\x20'))}:{'type':'format','content':o(_0x1564bc,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x302f33,_0x37b3a2,_0x10579c){const _0x38c4e0=_0x302f33['locale']['t'],_0x12be7c=_0x37b3a2['split'](/(?=[A-Z])/)['join']('\x20'),_0xf0a713=_0x38c4e0(_0x12be7c['charAt'](0x0)['toUpperCase']()+_0x12be7c['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x10579c)return _0xf0a713;if('fontColor'===_0x37b3a2||'fontBackgroundColor'===_0x37b3a2){const _0x302e84=_0x311c22(_0x302f33['config']['get']('fontColor.colors'))['find'](_0x3382fe=>_0x3382fe['model']==_0x10579c);return _0xf0a713+'\x20('+(_0x302e84?_0x38c4e0(_0x302e84['label'])['toLowerCase']():_0x10579c)+')';}if('fontSize'===_0x37b3a2&&isNaN(parseFloat(_0x10579c))){const _0xa14ac0=_0x302f33['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x302f33['config']['get']('fontSize.options'))['find'](_0x1e3e05=>_0x1e3e05['model']==_0x10579c);return _0xf0a713+'\x20('+(_0xa14ac0?_0x38c4e0(_0xa14ac0['title'])['toLowerCase']():_0x10579c)+')';}return _0xf0a713+'\x20('+_0x10579c+')';}class rt extends _0x4e7f5a{['_headingOptions'];['afterInit'](){const _0x1477d1=this['editor'];if(!_0x1477d1['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1477d1['config']['get']('heading.options');const _0x2eb57a=_0x1477d1['locale'],_0x209933=_0x1477d1['plugins']['get']('TrackChangesEditing');_0x209933['enableDefaultAttributesIntegration']('heading');for(const _0x4a449d of this['_headingOptions'])'paragraph'!=_0x4a449d['model']&&_0x209933['descriptionFactory']['registerElementLabel'](_0x4a449d['model'],_0x203318=>{const _0x157c5e=this['_getHeadingLevel'](_0x4a449d['model']);return null!==_0x157c5e?_0x514dc2(_0x203318,_0x157c5e):_0xfc3003(_0x203318,_0x4a449d['title']);});function _0x514dc2(_0x210093,_0x36f13c){return o(_0x2eb57a,'ELEMENT_HEADING',[_0x210093,_0x36f13c]);}function _0xfc3003(_0x524d17,_0x26fb76){return o(_0x2eb57a,'ELEMENT_HEADING_CUSTOM',[_0x524d17,_0x26fb76]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf2d2ea=this['editor'],_0x3f8e2a=_0xf2d2ea['locale'];function _0x224688(_0x387794,_0x1ce181){return o(_0x3f8e2a,'ELEMENT_HEADING_CUSTOM',[_0x387794,_0x1ce181]);}_0xf2d2ea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x536b4d=>{if('formatBlock'!=_0x536b4d['type'])return;const {data:_0x3930a5}=_0x536b4d;if(_0x3930a5&&'heading'==_0x3930a5['commandName']){const _0x46fb0e=_0x3930a5['commandParams'][0x0]['value'],_0x123475=this['_getHeadingLevel'](_0x46fb0e);if(null!==_0x123475)return{'type':'format','content':o(_0x3f8e2a,'*Change\x20to:*\x20%0',(_0x31e09d=0x1,_0x4e41f3=_0x123475,o(_0x3f8e2a,'ELEMENT_HEADING',[_0x31e09d,_0x4e41f3])))};const _0x4fc98c=this['_headingOptions']['find'](_0x4147f1=>_0x4147f1['model']===_0x46fb0e)['title'];return{'type':'format','content':o(_0x3f8e2a,'*Change\x20to:*\x20%0',_0x224688(0x1,_0x4fc98c))};}var _0x31e09d,_0x4e41f3;});}['_getHeadingLevel'](_0x19e974){const _0x2eaee1=_0x19e974['match'](/^heading(\d+)/);if(_0x2eaee1)return _0x2eaee1[0x1];const _0x233371=this['_headingOptions']?.['find'](_0x3890f2=>_0x3890f2['model']==_0x19e974);if(_0x233371&&_0x233371['view']){const _0x3e1e32=_0x233371['view'],_0x160772=(_0x3e1e32['name']??_0x3e1e32)['match'](/^h(\d+)/);if(_0x160772)return _0x160772[0x1];}return null;}}class at extends _0x4e7f5a{['afterInit'](){const _0x5a2ed6=this['editor'];if(!_0x5a2ed6['plugins']['has']('HighlightEditing'))return;const _0x2ac0a9=_0x5a2ed6['plugins']['get']('TrackChangesEditing'),_0x42a458=_0x5a2ed6['locale'];_0x2ac0a9['enableDefaultAttributesIntegration']('highlight'),_0x2ac0a9['registerInlineAttribute']('highlight'),_0x2ac0a9['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x42a458,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbda6b5=this['editor'],_0xd7f473=_0xbda6b5['locale'];_0xbda6b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35575d=>{if('formatInline'!=_0x35575d['type'])return;const {data:_0x479870}=_0x35575d;if(_0x479870&&'highlight'==_0x479870['commandName']){const _0x500f80=_0xd7f473['t'],_0x604b7=_0x479870['commandParams'][0x0]['value'];if(_0x604b7){const _0x1aec3f=_0xbda6b5['config']['get']('highlight.options')['find'](_0x590ba3=>_0x590ba3['model']==_0x604b7),_0x10b95b=_0x500f80(_0x1aec3f['title'])['toLowerCase']();return{'type':'format','content':o(_0xd7f473,'*Set\x20highlight:*\x20%0',_0x10b95b),'color':{'value':_0x1aec3f['color'],'title':_0x1aec3f['title']}};}return{'type':'format','content':o(_0xd7f473,'*Remove\x20highlight*',o(_0xd7f473,'FORMAT_HIGHLIGHT'))};}});}}class ct extends _0x4e7f5a{['afterInit'](){const _0x4a15ca=this['editor'];if(!_0x4a15ca['plugins']['has']('HorizontalLineEditing'))return;_0x4a15ca['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x46a56c=_0x4a15ca['plugins']['get']('TrackChangesEditing'),_0x360e3a=_0x4a15ca['locale'];_0x46a56c['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3f0711=>o(_0x360e3a,'ELEMENT_HORIZONTAL_LINE',_0x3f0711)),_0x4a15ca['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3bd6d4,{writer:_0x460a46,options:_0x2b11f0})=>{if(!_0x2b11f0['showSuggestionHighlights'])return null;const _0x30cf6e=_0x460a46['createContainerElement']('div'),_0x25f3e4=_0x460a46['createEmptyElement']('hr');return _0x460a46['addClass']('ck-horizontal-line',_0x30cf6e),_0x460a46['insert'](_0x460a46['createPositionAt'](_0x30cf6e,0x0),_0x25f3e4),_0x30cf6e;},'converterPriority':'high'});}}class ut extends _0x4e7f5a{['afterInit'](){const _0x17e9e1=this['editor'];if(!_0x17e9e1['plugins']['has']('HtmlEmbed'))return;const _0x5ee102=_0x17e9e1['plugins']['get']('TrackChangesEditing'),_0x172034=_0x17e9e1['locale'];_0x5ee102['descriptionFactory']['registerElementLabel']('rawHtml',_0x2a844b=>o(_0x172034,'ELEMENT_HTML_EMBED',_0x2a844b)),_0x5ee102['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5ee102['registerBlockAttribute']('value'),_0x5ee102['descriptionFactory']['registerDescriptionCallback'](_0x53adb5=>{if('attribute'!=_0x53adb5['type'])return;const {data:_0x491903}=_0x53adb5;if(_0x491903&&'value'==_0x491903['key']&&_0x53adb5['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x20af9c=o(_0x172034,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x172034,'*Change\x20%0\x20content*',_0x20af9c)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x521e8d=this['editor'],_0x485e7b=_0x521e8d['locale'];_0x521e8d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e07dc=>{if('formatBlock'!=_0x3e07dc['type'])return;const {data:_0x1c28bb}=_0x3e07dc;if(_0x1c28bb&&'htmlEmbed'==_0x1c28bb['commandName']){const _0x307391=o(_0x485e7b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x485e7b,'*Change\x20%0\x20content*',_0x307391)};}});}}class ft extends _0x4e7f5a{['afterInit'](){const _0x25aa1c=this['editor'];if(!_0x25aa1c['plugins']['has']('ImageEditing'))return;const _0x5e5d91=_0x25aa1c['plugins']['get']('TrackChangesEditing'),_0x414c90=_0x25aa1c['plugins']['get']('ImageUtils'),_0x291170=_0x25aa1c['locale'];_0x5e5d91['enableCommand']('insertImage'),_0x5e5d91['descriptionFactory']['registerElementLabel']('imageBlock',_0x4f699d=>o(_0x291170,'ELEMENT_IMAGE',_0x4f699d)),_0x5e5d91['descriptionFactory']['registerElementLabel']('imageInline',_0x5aabcd=>o(_0x291170,'ELEMENT_INLINE_IMAGE',_0x5aabcd)),_0x5e5d91['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x291170,'ELEMENT_CAPTION')),_0x25aa1c['plugins']['has']('ImageUploadEditing')&&_0x5e5d91['enableCommand']('uploadImage'),_0x25aa1c['plugins']['has']('ImageBlockEditing')&&_0x25aa1c['plugins']['has']('ImageInlineEditing')&&(_0x5e5d91['enableCommand']('imageTypeInline',(_0x405c45,_0x23420e)=>{const _0xfbda9e=_0x414c90['getClosestSelectedImageElement'](_0x25aa1c['model']['document']['selection']);_0x25aa1c['model']['change'](()=>{_0x5e5d91['markBlockFormat'](_0xfbda9e,{'commandName':'imageTypeInline','commandParams':[_0x23420e]},[],'convertBlockImageToInline');});}),_0x5e5d91['enableCommand']('imageTypeBlock',(_0x42a681,_0x43b4bb)=>{_0x25aa1c['model']['change'](_0x350848=>{let _0x416370=_0x414c90['getClosestSelectedImageElement'](_0x25aa1c['model']['document']['selection']),_0x12c26a=_0x350848['createRangeOn'](_0x416370);const _0x3a6e6b=_0x52185f['fromPosition'](_0x12c26a['start'],'toPrevious'),_0x21365f=_0x52185f['fromPosition'](_0x12c26a['end'],'toNext');_0x5e5d91['forceDefaultExecution'](()=>_0x42a681(_0x43b4bb)),_0x416370=_0x414c90['getClosestSelectedImageElement'](_0x25aa1c['model']['document']['selection']),_0x12c26a=_0x350848['createRangeOn'](_0x416370);const _0x4fffc1=_0x350848['createRange'](_0x3a6e6b,_0x21365f);_0x3a6e6b['detach'](),_0x21365f['detach'](),_0x5e5d91['markBlockFormat'](_0x416370,{'commandName':'imageTypeInline','commandParams':[_0x43b4bb]},[],'convertInlineImageToBlock'),_0x4fffc1['start']['isBefore'](_0x12c26a['start'])&&_0x5e5d91['markInsertion'](_0x350848['createRange'](_0x4fffc1['start'],_0x12c26a['start']),'convertInlineImageToBlock'),_0x12c26a['end']['isBefore'](_0x4fffc1['end'])&&_0x5e5d91['markInsertion'](_0x350848['createRange'](_0x12c26a['end'],_0x4fffc1['end']),'convertInlineImageToBlock');});}),_0x5e5d91['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5e5d91['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5e5d91['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5e5d91['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5e5d91['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5e5d91['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x16f8ae])=>{const _0x38c270=_0x5e5d91['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x30de9b=_0x16f8ae['start'],_0x202567=_0x16f8ae['end'];const _0x15a0a3=_0x25aa1c['model']['schema']['getNearestSelectionRange'](_0x30de9b,'backward'),_0x4ce1e5=_0x25aa1c['model']['schema']['getNearestSelectionRange'](_0x202567,'forward');_0x15a0a3['isCollapsed']&&(_0x30de9b=_0x15a0a3['start']),_0x4ce1e5['isCollapsed']&&(_0x202567=_0x4ce1e5['end']),_0x38c270([_0x25aa1c['model']['createRange'](_0x30de9b,_0x202567)]);}),_0x5e5d91['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x254c1b),_0x5e5d91['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x254c1b)),_0x25aa1c['plugins']['has']('ImageCaptionEditing')&&(_0x5e5d91['enableCommand']('toggleImageCaption',(_0x51be86,_0x182566)=>{const _0x589132=_0x25aa1c['plugins']['get']('ImageCaptionUtils');let _0x11241c=_0x414c90['getClosestSelectedImageElement'](_0x25aa1c['model']['document']['selection']),_0x357ad0=_0x589132['getCaptionFromImageModelElement'](_0x11241c);_0x25aa1c['model']['change'](()=>{if(_0x357ad0)return void _0x5e5d91['markDeletion'](_0x25aa1c['model']['createRangeOn'](_0x357ad0));const _0x16f690=_0x414c90['isBlockImage'](_0x11241c);_0x51be86(_0x182566),_0x11241c=_0x414c90['getClosestSelectedImageElement'](_0x25aa1c['model']['document']['selection']),_0x357ad0=_0x589132['getCaptionFromImageModelElement'](_0x11241c),_0x5e5d91['markInsertion'](_0x25aa1c['model']['createRangeOn'](_0x357ad0),_0x16f690?null:'imageCaption');});}),_0x5e5d91['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x254c1b));const _0x2f03aa=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4ddcb9(_0x47d3cd,_0xa4778a){const _0x2ed88f=_0x2f03aa['findIndex'](({type:_0x4b0001,subType:_0x2fc498})=>_0x47d3cd['type']==_0x4b0001&&_0x47d3cd['subType']==_0x2fc498),_0x3ce2d3=_0x2f03aa['findIndex'](({type:_0xc549a5,subType:_0x235534})=>_0xa4778a['type']==_0xc549a5&&_0xa4778a['subType']==_0x235534);if(_0x2ed88f<0x0||_0x3ce2d3<0x0)return!0x1;const _0x273ee4=_0x47d3cd['getFirstRange'](),_0x9be843=_0xa4778a['getFirstRange']();if((0x0==_0x2ed88f||0x1==_0x2ed88f)&&0x2==_0x3ce2d3&&_0x273ee4['isIntersecting'](_0x9be843))return!0x0;if(0x2==_0x2ed88f&&0x3==_0x3ce2d3){const _0x38c1b2=_0x5e5d91['_findSuggestions'](_0x273ee4,'insertion')['filter'](({suggestion:_0x52db1a,meta:_0x39fd63})=>_0x39fd63['isOwn']&&'convertInlineImageToBlock'==_0x52db1a['subType']);if(_0x38c1b2['length']>0x1&&_0x9be843['end']['isEqual'](_0x273ee4['start']))return!0x0;if(0x1==_0x38c1b2['length']&&(_0x273ee4['start']['isEqual'](_0x9be843['end'])||_0x273ee4['end']['isEqual'](_0x9be843['start'])))return!0x0;}if(0x3==_0x2ed88f&&0x3==_0x3ce2d3&&_0x273ee4['start']['isBefore'](_0x9be843['start'])){const _0x1b048a=_0x273ee4['end']['nodeAfter'],_0x28270f=_0x9be843['start']['nodeBefore'];return _0x414c90['isBlockImage'](_0x1b048a)&&_0x1b048a===_0x28270f;}return!0x1;}function _0x254c1b(_0x10c49b,_0x3087c9){return _0x4ddcb9(_0x10c49b,_0x3087c9)?[_0x10c49b,_0x3087c9]:_0x4ddcb9(_0x3087c9,_0x10c49b)?[_0x3087c9,_0x10c49b]:null;}_0x25aa1c['plugins']['has']('ImageResize')&&(_0x5e5d91['enableDefaultAttributesIntegration']('resizeImage'),_0x5e5d91['registerBlockAttribute']('resizedWidth'),_0x5e5d91['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x291170,'FORMAT_IMAGE_SIZE'))),_0x25aa1c['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5e5d91['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5e5d91['registerBlockAttribute']('alt')),_0x25aa1c['plugins']['has']('PictureEditing')&&(_0x5e5d91['registerBlockAttribute']('sources'),_0x5e5d91['descriptionFactory']['registerDescriptionCallback'](_0x343630=>{if('attribute'!=_0x343630['type'])return;const {data:_0xa3219}=_0x343630;return _0xa3219&&'sources'==_0xa3219['key']?{'type':'format','content':''}:void 0x0;})),_0x25aa1c['plugins']['has']('ImageSizeAttributes')&&(_0x5e5d91['registerBlockAttribute']('width'),_0x5e5d91['registerBlockAttribute']('height'),_0x5e5d91['descriptionFactory']['registerDescriptionCallback'](_0x10cd91=>{if('attribute'!=_0x10cd91['type'])return;const {data:_0x34efa9}=_0x10cd91;return!_0x34efa9||'width'!=_0x34efa9['key']&&'height'!=_0x34efa9['key']?void 0x0:{'type':'format','content':''};})),_0x5e5d91['descriptionFactory']['registerDescriptionCallback'](_0x39c11c=>{if(!!_0x2f03aa['find'](({type:_0xe1ad66,subType:_0x5a6acf})=>_0x39c11c['type']==_0xe1ad66&&_0x39c11c['subType']==_0x5a6acf))return _0x39c11c['previous']?{}:void 0x0;}),_0x5e5d91['descriptionFactory']['registerDescriptionCallback'](_0x393e36=>{if('insertion'==_0x393e36['type']||'deletion'==_0x393e36['type']){const _0x255387=_0x393e36['getContainedElement']();if(_0x255387&&_0x255387['is']('element','caption'))return{'type':'insertion'==_0x393e36['type']?'addObject':'removeObject','element':_0x255387,'quantity':0x1};}}),_0x5e5d91['descriptionFactory']['registerDescriptionCallback'](_0xcca678=>'formatBlock'==_0xcca678['type']&&'convertInlineImageToBlock'==_0xcca678['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xcca678['type']&&'convertBlockImageToInline'==_0xcca678['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5e5d91['descriptionFactory']['registerDescriptionCallback'](_0x538273=>{if('attribute'!=_0x538273['type'])return;const {data:_0x27b36f}=_0x538273;if(!_0x27b36f||'alt'!=_0x27b36f['key'])return;const _0x3e73e6=_0x27b36f['newValue'];return _0x3e73e6?{'type':'format','content':o(_0x291170,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3e73e6+'\x22')}:{'type':'format','content':o(_0x291170,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2133c6=this['editor'],_0x56d946=_0x2133c6['locale'];_0x2133c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x558e26=>{if('formatBlock'!=_0x558e26['type']&&'formatInline'!=_0x558e26['type'])return;const {data:_0x423fdb}=_0x558e26;if(_0x423fdb){if('imageTextAlternative'==_0x423fdb['commandName']){const _0x460ff2=_0x423fdb['commandParams'][0x0]['newValue'];return _0x460ff2?{'type':'format','content':o(_0x56d946,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x460ff2+'\x22')}:{'type':'format','content':o(_0x56d946,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x423fdb['commandName']){const _0x475467=_0x423fdb['commandParams'][0x0]['width'];return _0x475467?{'type':'format','content':o(_0x56d946,'*Set\x20image\x20width:*\x20%0',_0x475467)}:{'type':'format','content':o(_0x56d946,'*Reset\x20image\x20width*')};}}});}}class ht extends _0x4e7f5a{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x157030=this['editor']['locale'],_0x4e9cfd=this['editor']['plugins']['get']('TrackChangesEditing');_0x4e9cfd['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4e9cfd['registerBlockAttribute']('src'),_0x4e9cfd['descriptionFactory']['registerDescriptionCallback'](_0x276da6=>{if('attribute'!=_0x276da6['type'])return;const {data:_0x2043d3}=_0x276da6;return _0x2043d3&&'src'==_0x2043d3['key']?_0x2043d3['newValue']&&_0x2043d3['oldValue']?{'type':'format','content':o(_0x157030,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3f4578=this['editor']['plugins']['get']('TrackChangesEditing');_0x3f4578['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3f4578['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3f4578['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3f4578['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x88abef=this['editor'],_0xf71fa1=_0x88abef['locale'];_0x88abef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x509376=>{if('formatBlock'!=_0x509376['type']&&'formatInline'!=_0x509376['type'])return;const {data:_0x17abfb}=_0x509376;if(!_0x17abfb||'replaceImageSource'!=_0x17abfb['commandName'])return;return{'type':'format','content':o(_0xf71fa1,'*Format:*\x20replace\x20image\x20URL')};});}}class gt extends _0x4e7f5a{['afterInit'](){const _0x545c88=this['editor'];if(!_0x545c88['plugins']['has']('ImageStyleEditing'))return;const _0x32fc2e=_0x545c88['plugins']['get']('TrackChangesEditing'),_0x5c64cd=_0x545c88['plugins']['get']('ImageUtils'),_0x2973b1={};_0x32fc2e['enableCommand']('imageStyle',(_0x2261fb,_0x42b334)=>{const _0x5f448f=_0x545c88['plugins']['get']('Users')['me'],_0x5a0873=_0x545c88['commands']['get']('imageStyle');let _0x1a0daf=_0x5c64cd['getClosestSelectedImageElement'](_0x545c88['model']['document']['selection']),_0x3a2524=_0x545c88['model']['createRangeOn'](_0x1a0daf),_0x2f8255=_0x5a0873['value'];if(_0x2f8255==_0x42b334['value'])return;const _0x1710f7={'commandName':'imageStyle','commandParams':[_0x42b334],'formatGroupId':_0x3caa75()};_0x545c88['model']['change'](()=>{if(_0x32fc2e['getSuggestions']()['filter'](_0x425f88=>_0x425f88['isInContent']&&_0x5f448f==_0x425f88['author']&&('formatBlock'==_0x425f88['type']||'formatInline'==_0x425f88['type'])&&('imageStylePreApply'==_0x425f88['subType']||'imageStylePostApply'==_0x425f88['subType'])&&_0x425f88['getFirstRange']()['isEqual'](_0x3a2524))['forEach'](_0x4a3078=>_0x32fc2e['discardSuggestion'](_0x4a3078['head'])),_0x1a0daf=_0x5c64cd['getClosestSelectedImageElement'](_0x545c88['model']['document']['selection']),_0x3a2524=_0x545c88['model']['createRangeOn'](_0x1a0daf),_0x5a0873['refresh'](),_0x545c88['commands']['get']('imageTypeInline')['refresh'](),_0x545c88['commands']['get']('imageTypeBlock')['refresh'](),_0x2f8255=_0x5a0873['value'],_0x2f8255!=_0x42b334['value'])return _0x5c64cd['isInlineImage'](_0x1a0daf)&&_0x5a0873['shouldConvertImageType'](_0x42b334['value'],_0x1a0daf)?(_0x2261fb({..._0x42b334,'setImageSizes':!0x1}),_0x1a0daf=_0x5c64cd['getClosestSelectedImageElement'](_0x545c88['model']['document']['selection']),void _0x32fc2e['markBlockFormat'](_0x1a0daf,{..._0x1710f7,'commandReversedParams':[{'value':_0x2f8255||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5c64cd['isBlockImage'](_0x1a0daf)?_0x32fc2e['markBlockFormat'](_0x1a0daf,_0x1710f7,[],'imageStylePostApply'):_0x32fc2e['markInlineFormat'](_0x3a2524,_0x1710f7,'imageStylePostApply'));});});for(const _0x274c42 of _0x545c88['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2973b1[_0x274c42['name']]=_0x274c42['title']['toLowerCase']();_0x32fc2e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x32fc2e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x32fc2e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x32fc2e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x53dcb5])=>{_0x5c64cd['setImageNaturalSizeAttributes'](_0x53dcb5['getContainedElement']());}),_0x32fc2e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2e08b1,_0x344045)=>{_0x32fc2e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2e08b1,{'commandName':_0x344045['commandName'],'commandParams':_0x344045['commandReversedParams']});}),_0x32fc2e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5640b1,_0xd14a6f){if(_0x376c70(_0x5640b1,_0xd14a6f))return[_0x5640b1,_0xd14a6f];if(_0x376c70(_0xd14a6f,_0x5640b1))return[_0xd14a6f,_0x5640b1];return null;});const _0x2f72c3=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x376c70(_0x15b0b5,_0x2096a2){const _0x352e61=_0x2f72c3['findIndex'](({type:_0x423e65,subType:_0x5bcc9b})=>_0x15b0b5['type']==_0x423e65&&_0x15b0b5['subType']==_0x5bcc9b),_0x59f408=_0x2f72c3['findIndex'](({type:_0x39ccd9,subType:_0x3ef0eb})=>_0x2096a2['type']==_0x39ccd9&&_0x2096a2['subType']==_0x3ef0eb);if(_0x352e61<0x0||_0x59f408<0x0)return!0x1;const _0x329a82=_0x15b0b5['getFirstRange'](),_0x3c99b4=_0x2096a2['getFirstRange']();if((0x0==_0x352e61||0x1==_0x352e61)&&0x2==_0x59f408&&_0x329a82['isIntersecting'](_0x3c99b4))return!0x0;if(0x2==_0x352e61&&0x3==_0x59f408){const _0x4b6501=_0x32fc2e['_findSuggestions'](_0x329a82,'insertion')['filter'](({suggestion:_0x2f717a,meta:_0x12be6b})=>_0x12be6b['isOwn']&&'convertInlineImageToBlock'==_0x2f717a['subType']);if(_0x4b6501['length']>0x1&&_0x3c99b4['end']['isEqual'](_0x329a82['start']))return!0x0;if(0x1==_0x4b6501['length']&&(_0x329a82['start']['isEqual'](_0x3c99b4['end'])||_0x329a82['end']['isEqual'](_0x3c99b4['start'])))return!0x0;}if(0x3==_0x352e61&&0x3==_0x59f408&&_0x329a82['start']['isBefore'](_0x3c99b4['start'])){const _0x22155c=_0x329a82['end']['nodeAfter'],_0x2d0387=_0x3c99b4['start']['nodeBefore'];return _0x5c64cd['isBlockImage'](_0x22155c)&&_0x22155c===_0x2d0387;}return!0x1;}_0x545c88['model']['document']['registerPostFixer'](()=>{let _0x4ab77a=!0x1;const _0x35ac4e=Array['from'](_0x545c88['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x575088,data:_0x2f6ed9}of _0x35ac4e){const {group:_0xf0b4e,type:_0x21e142,subType:_0x451db3,id:_0x5d57f6}=_0x32fc2e['_splitMarkerName'](_0x575088);if('suggestion'==_0xf0b4e&&_0x32fc2e['hasSuggestion'](_0x5d57f6)){if('formatBlock'==_0x21e142&&('imageStylePreApply'==_0x451db3||'imageStylePostApply'==_0x451db3)){const _0x17ef76=_0x32fc2e['getSuggestion'](_0x5d57f6);if(_0x2f6ed9['newRange']){const _0x559ab3=_0x17ef76['getFirstRange']()['getContainedElement']();if(_0x5c64cd['isBlockImage'](_0x559ab3))continue;_0x32fc2e['discardSuggestion'](_0x17ef76),_0x4ab77a=!0x0;}}if('insertion'==_0x21e142&&'imageCaption'==_0x451db3&&!_0x2f6ed9['newRange']){const _0x576c20=_0x32fc2e['getSuggestion'](_0x5d57f6);_0x576c20['next']&&_0x576c20['next']['isInContent']&&(_0x32fc2e['discardSuggestion'](_0x576c20['next']),_0x4ab77a=!0x0);}}}return _0x4ab77a;}),this['_registerLegacyDescription'](_0x2973b1);}['_registerLegacyDescription'](_0x2b9bb6){const _0x1ae453=this['editor'],_0x292f9f=_0x1ae453['locale'];_0x1ae453['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fdd30=>{if('formatBlock'!=_0x3fdd30['type']&&'formatInline'!=_0x3fdd30['type'])return;const {data:_0x39480f}=_0x3fdd30;if(!_0x39480f||'imageStyle'!=_0x39480f['commandName'])return;const _0x3ec338=_0x39480f['commandParams'][0x0]['value'];return _0x49d500('side'===_0x3ec338?o(_0x292f9f,'FORMAT_SIDE_IMAGE'):_0x2b9bb6[_0x3ec338]||_0x3ec338);function _0x49d500(_0x146af3){return{'type':'format','content':o(_0x292f9f,'*Format:*\x20%0',_0x146af3)};}});}}class lt extends _0x4e7f5a{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1f5eea){super(_0x1f5eea),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x845488=this['editor'],_0x2a0cb2=_0x845488['commands']['get']('importWord'),_0x51dda9=_0x845488['commands']['get']('trackChanges');_0x2a0cb2&&(_0x2a0cb2['on']('execute',(_0x3627e5,[,_0x27ae37])=>{this['_trackChangesValueDuringImport']=_0x51dda9['value'],_0x27ae37['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2a0cb2,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2a0cb2,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x51dda9['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x845488['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1be6aa,_0x4e0ded){const {suggestions:_0x2ff623}=_0x4e0ded,_0x2740b2=this['editor']['commands']['get']('trackChanges'),_0xc35eaa=_0x2740b2['value'];this['_trackChangesValueDuringImport']!==_0xc35eaa&&(_0x2740b2['execute'](),this['_trackChangesExecuted']=!0x0),_0x2ff623&&_0x2ff623['forEach'](({id:_0x3ca30b,type:_0x12bb5f,author:_0x1a7fc8,created_at:_0x3b0a13})=>{const _0xb770bb={'id':_0x3ca30b,'type':_0x12bb5f,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1a7fc8,'createdAt':_0x3b0a13?new Date(_0x3b0a13):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xb770bb);});}}class mt extends _0x4e7f5a{['afterInit'](){const _0x2b3e6c=this['editor'],_0x4b14ac=_0x2b3e6c['plugins']['get']('TrackChangesEditing');if(_0x2b3e6c['plugins']['has']('IndentEditing')&&(_0x4b14ac['enableCommand']('indent'),_0x4b14ac['enableCommand']('outdent')),_0x2b3e6c['plugins']['has']('IndentBlock')){for(const _0x3600b4 of['indentBlock','outdentBlock'])_0x4b14ac['enableDefaultAttributesIntegration'](_0x3600b4);}const _0x2f803f=_0x2b3e6c['locale'];_0x4b14ac['registerBlockAttribute']('blockIndent'),_0x4b14ac['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2f803f,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9f4132=this['editor'],_0x11a322=_0x9f4132['locale'],_0x5662fb=_0x9f4132['plugins']['get']('TrackChangesEditing');_0x5662fb['descriptionFactory']['registerDescriptionCallback'](_0x203cd6=>{if('formatBlock'!=_0x203cd6['type'])return;const {data:_0x3b9b15}=_0x203cd6;if(!_0x3b9b15)return;if('indentBlock'!=_0x3b9b15['commandName']&&'outdentBlock'!=_0x3b9b15['commandName'])return;const _0x26986b=_0x203cd6['getItems']()[0x0],_0x264bbb=_0x5662fb['descriptionFactory']['getItemLabel'](_0x26986b);return'indentBlock'==_0x3b9b15['commandName']?{'type':'format','content':o(_0x11a322,'*Indent:*\x20%0',_0x264bbb)}:'outdentBlock'==_0x3b9b15['commandName']?{'type':'format','content':o(_0x11a322,'*Outdent:*\x20%0',_0x264bbb)}:void 0x0;});}}class dt extends _0x4e7f5a{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class pt extends _0x4e7f5a{['afterInit'](){const _0x19ab43=this['editor'];if(!_0x19ab43['plugins']['has']('LinkEditing'))return;const _0xca4928=_0x19ab43['plugins']['get']('TrackChangesEditing'),_0x2bacb1=_0x19ab43['commands']['get']('link');_0xca4928['enableDefaultAttributesIntegration']('link'),_0xca4928['enableDefaultAttributesIntegration']('unlink'),_0xca4928['registerInlineAttribute']('linkHref');for(const _0x428f1f of _0x2bacb1['manualDecorators'])_0xca4928['registerInlineAttribute'](_0x428f1f['id']),_0xca4928['descriptionFactory']['registerAttributeLabel'](_0x428f1f['id'],'link\x20('+_0x428f1f['label']['toLowerCase']()+')');_0xca4928['descriptionFactory']['registerDescriptionCallback'](_0xfc3f94=>{if('attribute'!=_0xfc3f94['type'])return;const {data:_0x1dc034}=_0xfc3f94;if(!_0x1dc034||'linkHref'!=_0x1dc034['key'])return;const _0x4d55a4=_0x1dc034['newValue'],_0x55efd2=_0x19ab43['locale'];return{'type':'format','content':null==_0x4d55a4?o(_0x55efd2,'*Remove\x20link*'):o(_0x55efd2,'*Set\x20link:*\x20%0','\x22'+_0x4d55a4+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1eb177=this['editor'],_0x287fa6=_0x1eb177['locale'];_0x1eb177['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x807284=>{if('formatInline'!=_0x807284['type'])return;const {data:_0x5ed17d}=_0x807284;if(_0x5ed17d){if('link'==_0x5ed17d['commandName']){const _0x5aaf30=_0x5ed17d['commandParams'][0x0];return{'type':'format','content':o(_0x287fa6,'*Set\x20link:*\x20%0','\x22'+_0x5aaf30+'\x22')};}return'unlink'==_0x5ed17d['commandName']?{'type':'format','content':o(_0x287fa6,'*Remove\x20link*')}:void 0x0;}});}}class kt extends _0x4e7f5a{['afterInit'](){const _0x1309aa=this['editor'],_0x59ff69=_0x1309aa['locale'];if(!_0x1309aa['plugins']['has']('LegacyListEditing'))return;const _0x2c2aeb=_0x1309aa['plugins']['get']('TrackChangesEditing'),_0x471f84=_0x1309aa['plugins']['has']('LegacyTodoListEditing');function _0x5b4731(_0x296217){return()=>{const _0x49d9f3=_0x1309aa['model']['document']['selection'],_0x3c548=_0x1309aa['commands']['get'](_0x296217);if(_0x3c548['value'])return void _0x1309aa['execute']('paragraph',{});const _0x3e8ed2=_0x296217['slice'](0x0,-0x4),_0x2f327c=function(_0x2e944e,_0x5df3be,_0x19fae1){let _0xd2d1ad=Array['from'](_0x2e944e)['filter'](_0xc2f100=>function(_0x5eab89,_0x440d3d){return _0x440d3d['checkChild'](_0x5eab89['parent'],'listItem')&&!_0x440d3d['isObject'](_0x5eab89);}(_0xc2f100,_0x19fae1));_0xd2d1ad=_0xd2d1ad['filter'](_0x452cb5=>!_0x452cb5['is']('element','listItem')||_0x452cb5['getAttribute']('listType')!=_0x5df3be);const _0x1316bd=new Set();for(const _0x1dc43b of _0xd2d1ad)_0x1dc43b['is']('element','listItem')?_0x1316bd['add'](Ne(_0x1dc43b)):_0x1316bd['add'](_0x1dc43b);return Array['from'](_0x1316bd);}(_0x49d9f3['getSelectedBlocks'](),_0x3e8ed2,_0x1309aa['model']['schema']);_0x1309aa['model']['change'](()=>{for(const _0x133a26 of _0x2f327c)_0x2c2aeb['markBlockFormat'](_0x133a26,{'commandName':_0x296217,'commandParams':[{'forceValue':!_0x3c548['value']}],'formatGroupId':'blockName'},Se(_0x133a26));});};}function _0x300226(_0x2e71b5){return()=>{const _0x2bb5f2=function(_0xdcade1){let _0x25d474=Array['from'](_0xdcade1);const _0x5eecd6=_0x25d474['findIndex'](_0x35ef66=>'listItem'!=_0x35ef66['name']);return _0x5eecd6>-0x1&&(_0x25d474=_0x25d474['slice'](0x0,_0x5eecd6)),_0x25d474;}(_0x1309aa['model']['document']['selection']['getSelectedBlocks']()),_0x49c988=_0x1309aa['model']['createRange'](_0x1309aa['model']['createPositionAt'](_0x2bb5f2[0x0],'before'),_0x1309aa['model']['createPositionAt'](_0x2bb5f2[_0x2bb5f2['length']-0x1],'end'));_0x1309aa['model']['change'](()=>{_0x2c2aeb['markBlockFormat'](_0x49c988,{'commandName':_0x2e71b5,'commandParams':[],'formatGroupId':'listIndent'},function(_0x579212){const _0x49d090=new Set();for(const _0x1e2c41 of _0x579212){let _0x5b431f=_0x1e2c41['nextSibling'];for(;_0x5b431f&&_0x5b431f['getAttribute']('listIndent')>_0x1e2c41['getAttribute']('listIndent');)_0x49d090['add'](_0x5b431f),_0x5b431f=_0x5b431f['nextSibling'];}return Array['from'](_0x49d090);}(_0x2bb5f2));});};}_0x2c2aeb['enableCommand']('numberedList',_0x5b4731('numberedList')),_0x2c2aeb['enableCommand']('bulletedList',_0x5b4731('bulletedList')),_0x471f84&&_0x2c2aeb['enableCommand']('todoList',_0x5b4731('todoList')),_0x2c2aeb['enableCommand']('indentList',_0x300226('indentList')),_0x2c2aeb['enableCommand']('outdentList',_0x300226('outdentList')),_0x471f84&&_0x2c2aeb['enableCommand']('checkTodoList',()=>{const _0x3254f3=_0x1309aa['commands']['get']('checkTodoList'),_0x1bdcea=Array['from'](_0x3254f3['_selectedElements']);_0x1bdcea['filter'](_0x4cc284=>_0x4cc284['getAttribute']('todoListChecked')!=_0x3254f3['value']),_0x1309aa['model']['change'](()=>{for(const _0x2fa4d0 of _0x1bdcea)_0x2c2aeb['markBlockFormat'](_0x2fa4d0,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3254f3['value']}]});});}),_0x2c2aeb['descriptionFactory']['registerElementLabel']('listItem',_0x32e9b9=>o(_0x59ff69,'ELEMENT_LIST_ITEM',_0x32e9b9)),_0x2c2aeb['descriptionFactory']['registerDescriptionCallback'](_0x4e008f=>{if('formatBlock'!=_0x4e008f['type']&&'formatInline'!=_0x4e008f['type'])return;const {data:_0x200cc0}=_0x4e008f;if(_0x200cc0){if('numberedList'==_0x200cc0['commandName']||'bulletedList'==_0x200cc0['commandName']||'todoList'==_0x200cc0['commandName'])switch(_0x200cc0['commandName']['replace']('List','')){case'bulleted':return _0x2c226a(o(_0x59ff69,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2c226a(o(_0x59ff69,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2c226a(o(_0x59ff69,'ELEMENT_TODO_LIST'));}if('indentList'==_0x200cc0['commandName'])return{'type':'format','content':o(_0x59ff69,'*Indent:*\x20%0',o(_0x59ff69,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x200cc0['commandName'])return{'type':'format','content':o(_0x59ff69,'*Outdent:*\x20%0',o(_0x59ff69,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x200cc0['commandName'])return _0x200cc0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x59ff69,'*Check\x20item*')}:{'type':'format','content':o(_0x59ff69,'*Uncheck\x20item*')};}function _0x2c226a(_0x482b82){return{'type':'format','content':o(_0x59ff69,'*Change\x20to:*\x20%0',_0x482b82)};}});}}function Ne(_0x44f599){const _0xd5afc9=_0x44f599['getAttribute']('listIndent');if(0x0==_0xd5afc9)return _0x44f599;let _0x31df08=_0x44f599;for(;_0x44f599['previousSibling']&&_0x44f599['previousSibling']['is']('element','listItem');){const _0x4eec90=_0x44f599['previousSibling']['getAttribute']('listIndent');if(_0x4eec90==_0xd5afc9)_0x31df08=_0x44f599['previousSibling'];else{if(_0x4eec90<_0xd5afc9)break;}_0x44f599=_0x44f599['previousSibling'];}return _0x31df08;}function Se(_0x165192){const _0x3aa831=[];if(_0x165192['is']('element','listItem')&&_0x165192['getAttribute']('listIndent')>0x0){let _0x52df11=_0x165192['nextSibling'];for(;_0x52df11&&'listItem'==_0x52df11['name']&&_0x52df11['getAttribute']('listIndent')==_0x165192['getAttribute']('listIndent');)_0x3aa831['push'](_0x52df11),_0x52df11=_0x52df11['nextSibling'];}return _0x3aa831;}class wt extends _0x4e7f5a{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5b1230=this['editor']['config']['get']('list.properties'),_0x2fdcca=this['editor']['plugins']['get']('TrackChangesEditing');_0x5b1230['styles']&&_0x2fdcca['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5b1230['reversed']&&_0x2fdcca['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5b1230['startIndex']&&_0x2fdcca['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2fdcca['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x306b65,_0x1cf56d={}){const _0x3c970c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x156ce9=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3c970c['markMultiRangeBlockFormat'](_0x156ce9,{'commandName':'listStyle','commandParams':[{'type':_0x1cf56d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x479389,_0x3a5cdc={}){const _0x4a9df5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ab990=this['_getSuggestionBlocks'](_0x5198bb=>_0x5198bb['is']('element','listItem')&&'numbered'===_0x5198bb['getAttribute']('listType'));if(_0x2ab990['length']<0x1)return;const _0x30c8f9=_0x2ab990['map'](_0x4956df=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4956df,'before'),this['editor']['model']['createPositionAt'](_0x4956df,0x0)));this['editor']['model']['change'](()=>{_0x4a9df5['markMultiRangeBlockFormat'](_0x30c8f9,{'commandName':'listReversed','commandParams':[{'reversed':_0x3a5cdc['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x39f863,_0x1e6b7d={}){const _0x129daa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e771e=this['_getSuggestionBlocks'](_0x1781a3=>_0x1781a3['is']('element','listItem')&&'numbered'===_0x1781a3['getAttribute']('listType'));if(_0x1e771e['length']<0x1)return;const _0x338b33=_0x1e771e['map'](_0x136d2f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x136d2f,'before'),this['editor']['model']['createPositionAt'](_0x136d2f,0x0)));this['editor']['model']['change'](()=>{_0x129daa['markMultiRangeBlockFormat'](_0x338b33,{'commandName':'listStart','commandParams':[{'startIndex':_0x1e6b7d['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1775b8){if('formatBlock'!=_0x1775b8['type']&&'formatInline'!=_0x1775b8['type'])return;const _0x5b6cc5=this['editor']['locale'],{data:_0x50c47f}=_0x1775b8;if(!_0x50c47f)return;let _0x6ae46,_0x5a9a3e;switch(_0x50c47f['commandName']){case'listStyle':_0x6ae46='*Change\x20to:*\x20%0',_0x5a9a3e={'type':'format','content':o(_0x5b6cc5,_0x6ae46,o(_0x5b6cc5,this['_getTranslationKeyForListStyle'](_0x50c47f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x6ae46=_0x50c47f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5a9a3e={'type':'format','content':o(_0x5b6cc5,_0x6ae46)};break;case'listStart':_0x6ae46='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5a9a3e={'type':'format','content':o(_0x5b6cc5,_0x6ae46,_0x50c47f['commandParams'][0x0]['startIndex'])};}return _0x5a9a3e;}['_getSuggestionBlocksForListStyle'](){const _0x1e4173=this['editor']['plugins']['get']('LegacyListUtils');let _0x1ef018=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1ef018[0x0]?.['is']('element','listItem')&&_0x1ef018['unshift'](..._0x1e4173['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1ef018[_0x1ef018['length']-0x1]?.['is']('element','listItem')&&_0x1ef018['push'](..._0x1e4173['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1ef018=[...new Set(_0x1ef018)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1ef018=_0x1ef018['filter'](_0x8c3a6c=>_0x8c3a6c['is']('element','listItem'))),_0x1ef018;}['_getSuggestionBlocks'](_0x208f26){const _0x397e35=this['editor']['plugins']['get']('LegacyListUtils');let _0x460c88=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x208f26)['map'](_0x5cfd99=>{const _0x11c7ce=this['editor']['model']['createPositionAt'](_0x5cfd99,0x0);return[..._0x397e35['getSiblingNodes'](_0x11c7ce,'backward'),..._0x397e35['getSiblingNodes'](_0x11c7ce,'forward')];})['flat']();return _0x460c88=[...new Set(_0x460c88)],_0x460c88;}['_getTranslationKeyForListStyle'](_0x4c8363){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4c8363)||'default')['toUpperCase']()+'_LIST_'+_0x4c8363['toUpperCase']()['replace'](/-/g,'_');}}class bt extends _0x4e7f5a{['afterInit'](){const _0xaad2b4=this['editor'];if(!_0xaad2b4['plugins']['has']('MediaEmbedEditing'))return;const _0x5d3261=_0xaad2b4['plugins']['get']('TrackChangesEditing'),_0x47b316=_0xaad2b4['locale'];_0x5d3261['enableCommand']('mediaEmbed'),_0x5d3261['descriptionFactory']['registerElementLabel']('media',_0x305a3b=>o(_0x47b316,'ELEMENT_MEDIA',_0x305a3b)),_0xaad2b4['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x58d73e,{writer:_0x572ae4,options:_0x5cdccb})=>{if(_0x5cdccb['showSuggestionHighlights'])return _0x572ae4['createEmptyElement']('div');},'converterPriority':'high'}),_0xaad2b4['data']['downcastDispatcher']['on']('attribute:url:media',(_0x573ea6,_0x1127d4,_0x2c414a)=>{_0x2c414a['options']['showSuggestionHighlights']&&_0x573ea6['stop']();},{'priority':'high'});}}class yt extends _0x4e7f5a{['afterInit'](){const _0x402fd7=this['editor'];_0x402fd7['plugins']['has']('MentionEditing')&&_0x402fd7['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class St extends _0x4e7f5a{['afterInit'](){const _0x78b492=this['editor'];if(!_0x78b492['plugins']['has']('MergeFieldsEditing'))return;const _0x108ba5=_0x78b492['plugins']['get']('TrackChangesEditing'),_0x16ee83=_0x78b492['locale'];_0x108ba5['enableCommand']('insertMergeField'),_0x108ba5['enableCommand']('insertMergeFieldBlock'),_0x108ba5['enableCommand']('insertMergeFieldImage'),_0x108ba5['descriptionFactory']['registerElementLabel']('mergeField',_0x4567b3=>o(_0x16ee83,'ELEMENT_MERGE_FIELD',_0x4567b3)),_0x108ba5['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xed6faf=>o(_0x16ee83,'ELEMENT_MERGE_FIELD',_0xed6faf)),_0x108ba5['descriptionFactory']['registerDescriptionCallback'](_0x1b8f60=>{if('insertion'!=_0x1b8f60['type']&&'deletion'!=_0x1b8f60['type'])return;const _0xc87a83=_0x1b8f60['getContainedElement']();if(null==_0xc87a83)return;const _0x3bdd5b=_0x78b492['plugins']['get']('MergeFieldsEditing');let _0x56d9a7;switch(_0x3bdd5b['getMergeFieldType'](_0xc87a83)){case null:return;case'image':{const _0x43d5db=_0x3bdd5b['unwrapAffixes'](_0xc87a83['getAttribute']('src'));_0x56d9a7=_0x3bdd5b['getLabel'](_0x43d5db)||_0x43d5db;break;}default:{const _0x49522e=_0xc87a83['getAttribute']('id');_0x56d9a7=_0x3bdd5b['getLabel'](_0x49522e)||_0x49522e;break;}}return'insertion'==_0x1b8f60['type']?{'type':'insertion','content':o(_0x16ee83,'*Insert:*\x20%0','\x22'+_0x56d9a7+'\x22\x20'+o(_0x16ee83,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x16ee83,'*Remove:*\x20%0','\x22'+_0x56d9a7+'\x22\x20'+o(_0x16ee83,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0x4e7f5a{['afterInit'](){const _0x482ea0=this['editor'],_0x3346f3=_0x482ea0['plugins']['get']('TrackChangesEditing');_0x482ea0['plugins']['has']('MultiLevelList')&&(_0x3346f3['enableDefaultAttributesIntegration']('multiLevelList'),_0x3346f3['registerBlockAttribute']('listMarkerStyle'),_0x3346f3['descriptionFactory']['registerDescriptionCallback'](_0x3345ed=>this['handleDescriptions'](_0x3345ed)));}['handleDescriptions'](_0x3f025f){const _0x47d1e8=this['editor']['locale'],{data:_0x158502}=_0x3f025f,_0x129525={'type':'format','content':''};if(_0x158502&&'listMarkerStyle'==_0x158502['key']){if(!_0x158502['oldValue'])return{'type':'format','content':o(_0x47d1e8,'*Set\x20format:*\x20%0',o(_0x47d1e8,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x158502['newValue']+')'};if(!_0x158502['newValue']){let _0x43b82b=_0x3f025f['head'];for(;_0x43b82b;){if(_0x43b82b['data']&&'listType'==_0x43b82b['data']['key']&&_0x43b82b['data']['newValue'])return _0x129525;_0x43b82b=_0x43b82b['next'];}return{'type':'format','content':o(_0x47d1e8,'*Remove\x20format:*\x20%0',o(_0x47d1e8,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x158502['oldValue']+')'};}}}}class It extends _0x4e7f5a{['afterInit'](){const _0x1acc7a=this['editor'];if(!_0x1acc7a['plugins']['has']('PageBreakEditing'))return;_0x1acc7a['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x535afd=_0x1acc7a['plugins']['get']('TrackChangesEditing'),_0x45dcd1=_0x1acc7a['locale'];_0x535afd['descriptionFactory']['registerElementLabel']('pageBreak',_0x1e49f8=>o(_0x45dcd1,'ELEMENT_PAGE_BREAK',_0x1e49f8));}}class At extends _0x4e7f5a{['afterInit'](){const _0x4245d6=this['editor'];if(!_0x4245d6['plugins']['has']('Paragraph'))return;const _0x230243=_0x4245d6['locale'],_0x368dfc=_0x4245d6['plugins']['get']('TrackChangesEditing');_0x368dfc['descriptionFactory']['registerElementLabel']('paragraph',_0x5e001f=>o(_0x230243,'ELEMENT_PARAGRAPH',_0x5e001f)),_0x368dfc['enableDefaultAttributesIntegration']('paragraph'),_0x368dfc['enableCommand']('insertParagraph'),_0x4245d6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4245d6),{'priority':'highest'}),_0x4245d6['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5d459e,_0x3abbd7,_0x2a9856)=>{_0x2a9856['options']['showSuggestionHighlights']&&nr(_0x4245d6,{'showActiveMarker':!0x1})(_0x5d459e,_0x3abbd7,_0x2a9856);},{'priority':'highest'});const _0x40767a=_0x368dfc['descriptionFactory'];_0x40767a['registerDescriptionCallback'](_0x1e9513=>{if('insertion'!==_0x1e9513['type'])return;const {start:_0x371b9f,end:_0x3cce9a}=_0x1e9513['getFirstRange']();if(!_0x371b9f['isTouching'](_0x3cce9a)||!_0x371b9f['nodeAfter'])return;const _0x4f4d1c=_0x4245d6['model']['schema'],_0x286dde=_0x371b9f['nodeAfter'];return _0x4f4d1c['isBlock'](_0x286dde)&&!_0x4f4d1c['isLimit'](_0x286dde)&&_0x4f4d1c['checkChild'](_0x286dde,'$text')?{'type':'insertion','content':o(_0x230243,'*Insert:*\x20%0',_0x40767a['getItemLabel'](_0x286dde,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e874e=this['editor'],_0x4c26f9=_0x2e874e['locale'];_0x2e874e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49c884=>{if('formatBlock'!=_0x49c884['type'])return;const {data:_0x2c1cf2}=_0x49c884;return _0x2c1cf2&&'paragraph'==_0x2c1cf2['commandName']?{'type':'format','content':o(_0x4c26f9,'*Change\x20to:*\x20%0',o(_0x4c26f9,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x35cca7,{showActiveMarker:_0x42f3a4=!0x0}={}){return(_0x4392ec,_0x4e8fc9,_0x3e8e4b)=>{const _0x31cb04=_0x35cca7['plugins']['get']('TrackChangesEditing'),_0x7601dd=_0x4e8fc9['markerRange']['start'],_0x3be934=_0x4e8fc9['markerRange']['end'],_0x96fb9a=_0x35cca7['model']['schema'];if(!_0x7601dd['isTouching'](_0x3be934)||!_0x7601dd['nodeAfter'])return;const _0x2933a3=_0x7601dd['nodeAfter'];if(_0x96fb9a['isBlock'](_0x2933a3)&&!_0x96fb9a['isLimit'](_0x2933a3)&&_0x96fb9a['checkChild'](_0x2933a3,'$text')){if(!_0x3e8e4b['consumable']['consume'](_0x4e8fc9['markerRange'],_0x4392ec['name']))return;const {id:_0x599291,authorId:_0x145235}=_0x31cb04['_splitMarkerName'](_0x4e8fc9['markerName']),_0x5ab47c=_0x3e8e4b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x599291,'data-author-id':_0x145235}),_0x3c06a4=_0x3e8e4b['mapper']['toViewPosition'](_0x3be934);_0x42f3a4&&_0x31cb04['activeMarkers']['includes'](_0x4e8fc9['markerName'])&&_0x3e8e4b['writer']['addClass']('ck-suggestion-marker--active',_0x5ab47c),_0x3e8e4b['writer']['insert'](_0x3c06a4,_0x5ab47c),_0x3e8e4b['mapper']['bindElementToMarker'](_0x5ab47c,_0x4e8fc9['markerName']);}};}class _t extends _0x4e7f5a{['afterInit'](){const _0x5b5de0=this['editor'];_0x5b5de0['commands']['get']('replaceSource')&&_0x5b5de0['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class $t extends _0x4e7f5a{['afterInit'](){const _0x754f87=this['editor'];if(!_0x754f87['plugins']['has']('RemoveFormatEditing'))return;_0x754f87['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x187eab=this['editor'];_0x187eab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b100c=>{if('formatBlock'!=_0x1b100c['type']&&'formatInline'!=_0x1b100c['type'])return;const {data:_0x325fb4}=_0x1b100c;return _0x325fb4&&'removeFormat'==_0x325fb4['commandName']?{'type':'format','content':o(_0x187eab['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class vt extends _0x4e7f5a{['afterInit'](){const _0x2479b5=this['editor'];if(!_0x2479b5['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x517801=_0x2479b5['plugins']['get']('TrackChangesEditing');_0x517801['enableCommand']('goToPreviousRestrictedEditingException'),_0x517801['enableCommand']('goToNextRestrictedEditingException');const _0x1268e6=_0x2479b5['plugins']['get']('RestrictedEditingModeEditing');_0x1268e6['enableCommand']('trackChanges'),_0x1268e6['enableCommand']('acceptSuggestion'),_0x1268e6['enableCommand']('discardSuggestion'),_0x1268e6['enableCommand']('acceptAllSuggestions'),_0x1268e6['enableCommand']('discardAllSuggestions'),_0x1268e6['enableCommand']('acceptSelectedSuggestions'),_0x1268e6['enableCommand']('discardSelectedSuggestions');}}class Ct extends _0x4e7f5a{['afterInit'](){const _0x1cf726=this['editor'];if(!_0x1cf726['plugins']['has']('ShiftEnter'))return;const _0x49cbd4=_0x1cf726['plugins']['get']('TrackChangesEditing');_0x49cbd4['enableCommand']('shiftEnter'),_0x1cf726['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',qe(_0x1cf726),{'priority':'high'}),_0x1cf726['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',qe(_0x1cf726),{'priority':'high'}),_0x1cf726['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xe3e1ab,_0x2a1229,_0x2cc127)=>{_0x2cc127['options']['showSuggestionHighlights']&&qe(_0x1cf726,{'showActiveMarker':!0x1})(_0xe3e1ab,_0x2a1229,_0x2cc127);}),_0x49cbd4['descriptionFactory']['registerElementLabel']('softBreak',_0xd8274b=>o(_0x1cf726['locale'],'ELEMENT_LINE_BREAK',_0xd8274b));}}function qe(_0xe9ece8,{showActiveMarker:_0xe53c09=!0x0}={}){return(_0x3d3bac,_0x3a77b7,_0x1f17cb)=>{const _0x240b6c=_0xe9ece8['plugins']['get']('TrackChangesEditing');if(!_0x1f17cb['consumable']['test'](_0x3a77b7['markerRange'],_0x3d3bac['name']))return;const _0x3df01a=_0xe9ece8['model'];for(const _0x312e5b of _0x3a77b7['markerRange']['getItems']()){if(!_0x312e5b['is']('element','softBreak'))continue;const _0x11847f='deletion'==_0x3a77b7['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x35e42c,authorId:_0x56f6a0}=_0x240b6c['_splitMarkerName'](_0x3a77b7['markerName']),_0x293f31=_0x1f17cb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x11847f,'data-suggestion':_0x35e42c,'data-author-id':_0x56f6a0}),_0x303ea8=_0x1f17cb['mapper']['toViewPosition'](_0x3df01a['createPositionBefore'](_0x312e5b));_0xe53c09&&_0x240b6c['activeMarkers']['includes'](_0x3a77b7['markerName'])&&_0x1f17cb['writer']['addClass']('ck-suggestion-marker--active',_0x293f31),_0x1f17cb['writer']['insert'](_0x303ea8,_0x293f31),_0x1f17cb['mapper']['bindElementToMarker'](_0x293f31,_0x3a77b7['markerName']);}};}class Nt extends _0x4e7f5a{['afterInit'](){const _0x250d88=this['editor'],_0x4a6102=_0x250d88['model'],_0x41d8ef=_0x250d88['locale'];if(!_0x250d88['plugins']['has']('StandardEditingModeEditing'))return;const _0x362187=_0x250d88['plugins']['get']('TrackChangesEditing'),_0xa85a30='restrictedEditingException',_0x2c399e=_0x250d88['commands']['get'](_0xa85a30);_0x362187['enableCommand'](_0xa85a30,(_0x5b3e72,_0x2e0e4b={})=>{const _0x2a0d94=_0x4a6102['document']['selection'];if(_0x2a0d94['isCollapsed'])return void _0x5b3e72(_0x2e0e4b);const _0x1143c6=void 0x0!==_0x2e0e4b['forceValue']?_0x2e0e4b['forceValue']:!_0x2c399e['value'];_0x4a6102['change'](()=>{const _0x3589c1=Array['from'](_0x2a0d94['getRanges']());for(const _0x18f20f of _0x3589c1){const _0x31a902=_0x1143c6?[_0x18f20f]:io(_0xa85a30,_0x18f20f,_0x4a6102);for(const _0x2f114b of _0x31a902)_0x362187['markInlineFormat'](_0x2f114b,{'commandName':_0xa85a30,'commandParams':[{'forceValue':_0x1143c6}]});}});}),_0x362187['descriptionFactory']['registerDescriptionCallback'](_0x3566a2=>{if('formatBlock'!=_0x3566a2['type']&&'formatInline'!=_0x3566a2['type'])return;const {data:_0x3bee97}=_0x3566a2;return _0x3bee97&&_0x3bee97['commandName']==_0xa85a30?_0x3bee97['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x41d8ef,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x41d8ef,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class Dt extends _0x4e7f5a{['afterInit'](){const _0x46d393=this['editor'];if(!_0x46d393['plugins']['has']('Style')||!_0x46d393['plugins']['has']('DataSchema'))return;const _0x4a19af=_0x46d393['plugins']['get']('TrackChangesEditing'),_0x3b157e=_0x46d393['locale'],_0x31cf07=_0x46d393['config']['get']('style')||{},_0x1ceb22=_0x46d393['plugins']['get']('GeneralHtmlSupport'),_0x482fdc=_0x46d393['plugins']['get']('StyleUtils')['normalizeConfig'](_0x46d393['plugins']['get']('DataSchema'),_0x31cf07['definitions']);_0x4a19af['enableDefaultAttributesIntegration']('style');const _0x859cda=new Set();for(const _0x35947d of _0x482fdc['block']){const _0x3c966b=_0x1ceb22['getGhsAttributeNameForElement'](_0x35947d['element']);_0x859cda['add'](_0x3c966b);}const _0x499690=new Set();for(const _0x1a2595 of _0x482fdc['inline']){const _0x1c243d=_0x1ceb22['getGhsAttributeNameForElement'](_0x1a2595['element']);_0x499690['add'](_0x1c243d);for(const _0x27f195 of _0x1a2595['ghsAttributes'])_0x499690['add'](_0x27f195);}for(const _0x1b84c0 of _0x859cda)_0x4a19af['registerBlockAttribute'](_0x1b84c0),_0x4a19af['descriptionFactory']['registerAttributeLabel'](_0x1b84c0,o(_0x3b157e,'FORMAT_STYLE'));for(const _0x2a17a4 of _0x499690)_0x4a19af['registerInlineAttribute'](_0x2a17a4),_0x4a19af['descriptionFactory']['registerAttributeLabel'](_0x2a17a4,o(_0x3b157e,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f44a8=this['editor'],_0x5f1cf4=_0x4f44a8['locale'];_0x4f44a8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b29e7=>{if('formatBlock'!=_0x4b29e7['type']&&'formatInline'!=_0x4b29e7['type'])return;const {data:_0x26c3dd}=_0x4b29e7;return _0x26c3dd&&'style'===_0x26c3dd['commandName']?_0x26c3dd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5f1cf4,'*Set\x20format:*\x20%0',_0x26c3dd['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x5f1cf4,'*Remove\x20format:*\x20%0',_0x26c3dd['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Mt extends _0x4e7f5a{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3bc5b9){super(_0x3bc5b9),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x20ddad=this['editor'],_0x18e56f=_0x20ddad['model']['document']['selection'];if(!_0x20ddad['plugins']['has']('TableEditing'))return;const _0x11ad97=_0x20ddad['locale'],_0x13b06c=_0x20ddad['plugins']['get']('TrackChangesEditing'),_0x257afd=_0x20ddad['plugins']['get']('TableUtils');_0x13b06c['descriptionFactory']['registerElementLabel']('table',_0x199775=>o(_0x11ad97,'ELEMENT_TABLE',_0x199775)),this['_setupColumnsRowsFixing'](),_0x13b06c['enableCommand']('insertTable'),_0x13b06c['enableCommand']('selectTableRow'),_0x13b06c['enableCommand']('selectTableColumn');for(const _0x46494a of['insertTableRowAbove','insertTableRowBelow']){const _0x378202=_0x20ddad['commands']['get'](_0x46494a);_0x13b06c['enableCommand'](_0x46494a,_0x8f3a02=>{_0x20ddad['model']['change'](_0x3ada26=>{_0x8f3a02();const _0x3d7201='above'===_0x378202['order'],_0x246f05=_0x257afd['getSelectionAffectedTableCells'](_0x18e56f),_0x2eed74=_0x257afd['getRowIndexes'](_0x246f05),_0x206677=_0x3d7201?_0x2eed74['first']-0x1:_0x2eed74['last']+0x1,_0x27f139=_0x246f05[0x0]['findAncestor']('table'),_0x68a213=_0x257afd['createTableWalker'](_0x27f139,{'startRow':_0x206677,'endRow':_0x206677}),_0xa13089=Array['from'](_0x68a213)['map'](_0x506cdb=>_0x3ada26['createRangeOn'](_0x506cdb['cell']));_0x13b06c['markMultiRangeInsertion'](_0xa13089,'tableRow');});});}for(const _0x527b62 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3c90b0=_0x20ddad['commands']['get'](_0x527b62);_0x13b06c['enableCommand'](_0x527b62,_0x4817c6=>{_0x20ddad['model']['change'](_0x47ac59=>{_0x4817c6();const _0x368c3a='left'===_0x3c90b0['order'],_0x155a49=_0x257afd['getSelectionAffectedTableCells'](_0x18e56f),_0x4b271a=_0x257afd['getColumnIndexes'](_0x155a49),_0x2a33f9=_0x368c3a?_0x4b271a['first']-0x1:_0x4b271a['last']+0x1,_0x584bed=_0x155a49[0x0]['findAncestor']('table'),_0x256183=_0x257afd['createTableWalker'](_0x584bed,{'startRow':0x0,'column':_0x2a33f9,'includeAllSlots':!0x1}),_0x192915=Array['from'](_0x256183)['map'](_0x4e8d96=>_0x47ac59['createRangeOn'](_0x4e8d96['cell']));_0x13b06c['markMultiRangeInsertion'](_0x192915,'tableColumn');});});}for(const _0x43a9b6 of['removeTableRow','removeTableColumn']){const _0x1bb684=_0x43a9b6['substr'](0xb),_0x54e8b8=_0x1bb684['toLowerCase'](),_0x56450f=_0x54e8b8['substr'](0x0,0x3)+'span',_0x7d5dde='table'+_0x1bb684,_0x5d9177='min'+_0x1bb684,_0x1fa97f='max'+_0x1bb684;_0x13b06c['enableCommand'](_0x43a9b6,()=>{_0x20ddad['model']['change'](_0x31bcfb=>{const _0x1288dc=_0x257afd['getSelectionAffectedTableCells'](_0x18e56f),_0x3c1eb3=_0x1288dc[0x0]['findAncestor']('table');let _0x3e8d01;if('removeTableRow'==_0x43a9b6){const _0x5f3e3a=_0x257afd['getRowIndexes'](_0x1288dc);_0x3e8d01={'startRow':_0x5f3e3a['first'],'endRow':_0x5f3e3a['last'],'includeAllSlots':!0x0};}else{const _0x43b82a=_0x257afd['getColumnIndexes'](_0x1288dc);_0x3e8d01={'startColumn':_0x43b82a['first'],'endColumn':_0x43b82a['last'],'includeAllSlots':!0x0};}const _0x5ed4c6=_0x257afd['createTableWalker'](_0x3c1eb3,_0x3e8d01),_0x2c74f0=Array['from'](_0x5ed4c6)['map'](({cell:_0x361197})=>_0x361197),_0xd9efa=Oe(_0x2c74f0['filter'](_0x234bbe=>_0x234bbe['hasAttribute'](_0x56450f))),_0x450b58=Oe(_0x2c74f0['filter'](_0x2fa0ec=>!_0x2fa0ec['hasAttribute'](_0x56450f)))['map'](_0x2b3a0b=>_0x31bcfb['createRangeOn'](_0x2b3a0b)),_0x45f974=_0x13b06c['markMultiRangeDeletion'](_0x450b58,_0x7d5dde);if(_0x45f974&&('tableRow'==_0x45f974['subType']||'tableColumn'==_0x45f974['subType'])){const _0x42bec5=this['_getSuggestionCoords'](_0x45f974);for(const _0x162d3e of _0xd9efa){const _0x465aab=_0x31bcfb['createRangeOn'](_0x162d3e),_0xe96d0e=_0x257afd['getCellLocation'](_0x162d3e),_0x1415f6=_0x162d3e['getAttribute'](_0x56450f)-0x1,_0x45b912=_0x42bec5[_0x5d9177],_0x29d82e=_0x42bec5[_0x1fa97f];_0x45b912<=_0xe96d0e[_0x54e8b8]&&_0xe96d0e[_0x54e8b8]+_0x1415f6<=_0x29d82e&&_0x45f974['addRange'](_0x465aab);}}});});}function _0x5d16f5(_0x403980){const _0x17ee4f=Array['from'](_0x18e56f['getRanges']())['map'](_0x21e51c=>_0x3d40b9['fromRange'](_0x21e51c));_0x20ddad['model']['change'](_0x268214=>{const _0x246ac8=_0x268214['batch'];_0x403980=_0x403980['filter'](_0x3189dc=>'$graveyard'!=_0x3189dc['root']['rootName']),_0x268214['setSelection'](_0x403980),_0x20ddad['commands']['get']('removeTableRow')['refresh'](),_0x20ddad['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x20ddad['model']['enqueueChange'](()=>{_0x20ddad['model']['enqueueChange'](_0x246ac8,_0x3333b2=>{const _0x3012f8=_0x17ee4f['filter'](_0x12c68e=>'$graveyard'!=_0x12c68e['root']['rootName']);_0x3012f8['length']>0x0&&_0x3333b2['setSelection'](_0x3012f8);for(const _0x508355 of _0x17ee4f)_0x508355['detach']();});});});}function _0x3cd004(_0xaf92f5){_0x20ddad['model']['change'](_0x2687d2=>{const _0x5cd304=Array['from'](_0x18e56f['getRanges']())['map'](_0x51332f=>_0x3d40b9['fromRange'](_0x51332f)),_0x30308e=[];for(const _0x26f811 of _0xaf92f5)for(const _0x3db798 of _0x26f811['getItems']({'shallow':!0x0}))_0x30308e['push'](_0x3db798);for(const _0x1c5309 of _0x30308e)'$graveyard'!=_0x1c5309['root']['rootName']&&(_0x2687d2['setSelection'](_0x2687d2['createPositionAt'](_0x1c5309,0x0)),_0x20ddad['commands']['get']('removeTableColumn')['refresh'](),_0x20ddad['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x36e06f=_0x5cd304['filter'](_0x4f632d=>'$graveyard'!=_0x4f632d['root']['rootName']);_0x36e06f['length']>0x0&&_0x2687d2['setSelection'](_0x36e06f);for(const _0x10e780 of _0x5cd304)_0x10e780['detach']();});}function _0x30377f(_0x31fbfe,_0x53e970){return _0x53e970['every'](_0x12393b=>_0x31fbfe['some'](_0x12fdcc=>_0x12fdcc['end']['isEqual'](_0x12393b['start'])||_0x12393b['end']['isEqual'](_0x12fdcc['start'])));}function _0xcc5285(_0x1d5eef,_0x576a40){return!_0x1d5eef['some'](_0x35e318=>_0x576a40['some'](_0x379a3c=>_0x35e318['isIntersecting'](_0x379a3c)))&&_0x1d5eef['some'](_0x2fbf1=>_0x576a40['some'](_0x5b7eb0=>_0x2fbf1['end']['isTouching'](_0x5b7eb0['start'])));}_0x20ddad['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1a08e3,_0x344409,_0xc30721)=>{if(!_0xc30721['options']['showSuggestionHighlights'])return;const _0x249067=_0x344409['item'];if(!_0x249067||!_0x249067['is']('element','tableCell'))return;const _0x22abbb=_0xc30721['mapper']['toViewElement'](_0x249067);if(_0x22abbb){const {id:_0x300a2d,authorId:_0x286b15}=_0x13b06c['_splitMarkerName'](_0x344409['markerName']);_0x4b3917(_0x22abbb,_0xc30721['writer'],(_0x43ad5b,_0x387492,_0x592d0b)=>{_0x592d0b['addClass'](_0x53f15a(_0x387492['classes']),_0x43ad5b),_0x592d0b['setAttribute']('data-suggestion-id',_0x300a2d,_0x43ad5b),_0x592d0b['setAttribute']('data-author-id',_0x286b15,_0x43ad5b);},(_0x117cc2,_0x922fd7,_0x2b0337)=>{_0x2b0337['removeClass'](_0x53f15a(_0x922fd7['classes']),_0x117cc2),_0x2b0337['removeAttribute']('data-suggestion-id',_0x117cc2),_0x2b0337['removeAttribute']('data-author-id',_0x117cc2);});}},{'priority':'highest'}),_0x13b06c['descriptionFactory']['registerDescriptionCallback'](_0x266f61=>{if('insertion'!=_0x266f61['type']&&'deletion'!=_0x266f61['type'])return;const _0x19ec24=_0x266f61['getContainedElement']();if(null!=_0x19ec24&&_0x19ec24['is']('element','table')){if('insertion'==_0x266f61['type']){const _0x12ea53=_0x266f61['getItems']()['filter'](_0x3e23dc=>_0x3e23dc['is']('$textProxy'))['map'](_0x286245=>_0x286245['data']);if(_0x12ea53['length'])return{'type':'insertion','content':o(_0x11ad97,'*Insert:*\x20%0',o(_0x11ad97,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x12ea53['join']('\x20')+'\x22'))};}if('deletion'==_0x266f61['type']){const _0x46e797=_0x266f61['getItems']()['filter'](_0x4c78a8=>_0x4c78a8['is']('$textProxy'))['map'](_0x3f8af3=>_0x3f8af3['data']);if(_0x46e797['length'])return{'type':'deletion','content':o(_0x11ad97,'*Remove:*\x20%0',o(_0x11ad97,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x46e797['join']('\x20')+'\x22'))};}}}),_0x13b06c['descriptionFactory']['registerDescriptionCallback'](_0x17cf2e=>{if('tableRow'==_0x17cf2e['subType']){const _0x179610=_0x17cf2e['getItems']()['filter'](_0x10b543=>_0x10b543['is']('$textProxy'))['map'](_0x37aa56=>_0x37aa56['data']),_0x5c9809=this['_getSuggestionCoords'](_0x17cf2e),_0x107532=_0x5c9809['maxRow']-_0x5c9809['minRow']+0x1;if('insertion'==_0x17cf2e['type'])return _0x179610['length']?{'type':'insertion','content':o(_0x11ad97,'*Insert:*\x20%0',o(_0x11ad97,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x107532,'\x22'+_0x179610['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x11ad97,'*Insert:*\x20%0',o(_0x11ad97,'ELEMENT_TABLE_ROW',_0x107532))};if('deletion'==_0x17cf2e['type'])return _0x179610['length']?{'type':'deletion','content':o(_0x11ad97,'*Remove:*\x20%0',o(_0x11ad97,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x107532,'\x22'+_0x179610['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x11ad97,'*Remove:*\x20%0',o(_0x11ad97,'ELEMENT_TABLE_ROW',_0x107532))};}if('tableColumn'==_0x17cf2e['subType']){const _0x140e42=_0x17cf2e['getItems']()['filter'](_0xb4db79=>_0xb4db79['is']('$textProxy'))['map'](_0x3f8720=>_0x3f8720['data']),_0x258a21=this['_getSuggestionCoords'](_0x17cf2e),_0xdee3ca=_0x258a21['maxColumn']-_0x258a21['minColumn']+0x1;if('insertion'==_0x17cf2e['type'])return _0x140e42['length']?{'type':'insertion','content':o(_0x11ad97,'*Insert:*\x20%0',o(_0x11ad97,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xdee3ca,'\x22'+_0x140e42['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x11ad97,'*Insert:*\x20%0',o(_0x11ad97,'ELEMENT_TABLE_COLUMN',_0xdee3ca))};if('deletion'==_0x17cf2e['type'])return _0x140e42['length']?{'type':'deletion','content':o(_0x11ad97,'*Remove:*\x20%0',o(_0x11ad97,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xdee3ca,'\x22'+_0x140e42['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x11ad97,'*Remove:*\x20%0',o(_0x11ad97,'ELEMENT_TABLE_COLUMN',_0xdee3ca))};}}),_0x13b06c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5d16f5),_0x13b06c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5d16f5),_0x13b06c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3cd004),_0x13b06c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3cd004),_0x13b06c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x30377f),_0x13b06c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x30377f),_0x13b06c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xcc5285),_0x13b06c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xcc5285);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5c833e=this['editor'],_0x3948e4=_0x5c833e['model']['document']['selection'];return(_0x42ad41,_0x4a57ee)=>{_0x5c833e['model']['change'](_0x273c5c=>{const {commandName:_0x44f93a,commandParams:_0x498c0f}=_0x4a57ee;let _0x18da4a=_0x42ad41[0x0]['end']['nodeBefore'];_0x498c0f&&_0x498c0f[0x0]&&!0x1===_0x498c0f[0x0]['forceValue']&&(_0x18da4a=_0x42ad41[0x0]['start']['nodeAfter']);const _0x2a9426=_0x273c5c['createRangeIn'](_0x18da4a);if('$graveyard'==_0x2a9426['root']['rootName'])return;const _0x2afbde=Array['from'](_0x3948e4['getRanges']())['map'](_0x36d27d=>_0x3d40b9['fromRange'](_0x36d27d));_0x273c5c['setSelection'](_0x2a9426),_0x5c833e['commands']['get'](_0x44f93a)['refresh'](),_0x498c0f['push']({'forceDefaultExecution':!0x0}),_0x5c833e['execute'](_0x44f93a,..._0x498c0f);const _0x3010d7=_0x2afbde['filter'](_0x1d0821=>'$graveyard'!=_0x1d0821['root']['rootName']);_0x3010d7['length']>0x0&&_0x273c5c['setSelection'](_0x3010d7);for(const _0x471be8 of _0x2afbde)_0x471be8['detach']();});};}['_getCoordsForCells'](_0x37134f){const _0x4aeed6=this['editor']['plugins']['get']('TableUtils');let _0x318acc=Number['MAX_SAFE_INTEGER'],_0x1c24d7=Number['MIN_SAFE_INTEGER'],_0x4d5025=Number['MAX_SAFE_INTEGER'],_0x450b33=Number['MIN_SAFE_INTEGER'];for(const _0xb45104 of _0x37134f){if('$graveyard'==_0xb45104['root']['rootName'])continue;const {row:_0x530145,column:_0x197f42}=_0x4aeed6['getCellLocation'](_0xb45104),_0x2d13a1=_0xb45104['hasAttribute']('rowspan')?_0xb45104['getAttribute']('rowspan')-0x1:0x0,_0x138b3f=_0xb45104['hasAttribute']('colspan')?_0xb45104['getAttribute']('colspan')-0x1:0x0;_0x318acc=_0x530145<_0x318acc?_0x530145:_0x318acc,_0x1c24d7=_0x530145+_0x2d13a1>_0x1c24d7?_0x530145+_0x2d13a1:_0x1c24d7,_0x4d5025=_0x197f42<_0x4d5025?_0x197f42:_0x4d5025,_0x450b33=_0x197f42+_0x138b3f>_0x450b33?_0x197f42+_0x138b3f:_0x450b33;}return{'minRow':_0x318acc,'maxRow':_0x1c24d7,'minColumn':_0x4d5025,'maxColumn':_0x450b33};}['_setupColumnsRowsFixing'](){const _0x46dbc5=this['editor'],_0xe2905c=_0x46dbc5['plugins']['get']('TrackChangesEditing'),_0x4829cf=_0x46dbc5['plugins']['get']('TableUtils');_0x46dbc5['model']['document']['on']('change:data',()=>{const _0x19e8d7=Array['from'](_0x46dbc5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2a6bca,data:_0x36cc1c}of _0x19e8d7){const {group:_0x185887,id:_0x52ff2a,subType:_0x285f50}=_0xe2905c['_splitMarkerName'](_0x2a6bca);if('suggestion'!=_0x185887)continue;if(null!=_0x36cc1c['oldRange'])continue;const _0x3f20fe=_0xe2905c['getSuggestion'](_0x52ff2a);this['_tablePostFixingSubtypes']['includes'](_0x285f50)&&this['_tableSuggestions']['add'](_0x3f20fe);}},{'priority':'low'});const _0x5adb02=(_0x58e760,_0x37a789)=>{let _0x527487=!0x1;const _0x5f1534=_0x37a789['createRangeOn'](_0x58e760),_0x129d0a=_0x58e760['findAncestor']('table'),_0x1bea31=_0x4829cf['getCellLocation'](_0x58e760);for(const _0x56410d of this['_tableSuggestions']){const _0x1edd08=_0x56410d['subType'],_0x4e61ec=_0x1edd08['startsWith']('tablePaste'),_0x9a060d=_0x1edd08['substr'](_0x4e61ec?0xa:0x5),_0x4a80ec=_0x9a060d['toLowerCase'](),_0x26453f=_0x4a80ec['substr'](0x0,0x3)+'span',_0x283f4a='min'+_0x9a060d,_0x38e032='max'+_0x9a060d;if(!_0x56410d['isInContent'])continue;if(_0x129d0a!=_0x56410d['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x56410d['isIntersectingWithRange'](_0x5f1534))continue;const _0x2d39dc=_0x58e760['hasAttribute'](_0x26453f)?_0x58e760['getAttribute'](_0x26453f)-0x1:0x0,_0x3c75b7=this['_getSuggestionCoords'](_0x56410d),_0x59e68d=_0x3c75b7[_0x283f4a],_0x1d5662=_0x3c75b7[_0x38e032];_0x59e68d<=_0x1bea31[_0x4a80ec]&&_0x1bea31[_0x4a80ec]+_0x2d39dc<=_0x1d5662&&(_0x56410d['addRange'](_0x5f1534),_0x527487=!0x0);}return _0x527487;};_0x46dbc5['model']['document']['registerPostFixer'](_0x2d9b62=>{let _0x1f7f43=!0x1;for(const _0xe570c6 of _0x46dbc5['model']['document']['differ']['getChanges']())if('insert'==_0xe570c6['type']){if('tableRow'==_0xe570c6['name']){for(const _0x1e1a0e of _0xe570c6['position']['nodeAfter']['getChildren']())_0x1f7f43=_0x1f7f43||_0x5adb02(_0x1e1a0e,_0x2d9b62);}else'tableCell'==_0xe570c6['name']&&(_0x1f7f43=_0x1f7f43||_0x5adb02(_0xe570c6['position']['nodeAfter'],_0x2d9b62));}return _0x1f7f43;});}['_getSuggestionCoords'](_0xf25af0){return this['_getCoordsForCells'](_0xf25af0['getRanges']()['map'](_0x77136d=>_0x77136d['start']['nodeAfter']));}}function Oe(_0x42935c){return Array['from'](new Set(_0x42935c)['values']());}class Bt extends _0x4e7f5a{static get['requires'](){return[Mt];}['afterInit'](){const _0x1bf37d=this['editor'],_0x3e1fbd=_0x1bf37d['model']['document']['selection'],_0x37d6d9=_0x1bf37d['locale'];if(!_0x1bf37d['plugins']['has']('TableEditing'))return;const _0x3d69f0=_0x1bf37d['plugins']['get']('TrackChangesEditing'),_0x17e9fa=_0x1bf37d['plugins']['get']('TableUtils'),_0x42e690=_0x1bf37d['plugins']['get'](Mt);_0x42e690['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3d69f0['enableCommand']('mergeTableCells',()=>{const _0x399e54=_0x17e9fa['getSelectionAffectedTableCells'](_0x1bf37d['model']['document']['selection']);_0x1bf37d['model']['change'](()=>{_0x3d69f0['markMultiRangeBlockFormat'](_0x399e54,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1bf37d['commands']['get']('mergeTableCells')['on']('execute',(_0x4fe423,_0x15ff3e)=>{_0x1bf37d['commands']['get']('trackChanges')['value']&&(_0x15ff3e['length']>0x0&&_0x15ff3e[_0x15ff3e['length']-0x1]&&_0x15ff3e[_0x15ff3e['length']-0x1]['forceDefaultExecution']||_0x3d69f0['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4fe423['stop']());},{'priority':'highest'});for(const _0x25a1a1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1ece94=_0x1bf37d['commands']['get'](_0x25a1a1);_0x3d69f0['enableCommand'](_0x25a1a1,()=>{const _0x1f0468=_0x1bf37d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x194b56=>_0x194b56['is']('element','tableCell')),_0x196f9f=_0x1ece94['value'];_0x1bf37d['model']['change'](()=>{_0x3d69f0['markMultiRangeBlockFormat']([_0x1f0468,_0x196f9f],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x408e1b of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5b18bb=_0x1bf37d['commands']['get'](_0x408e1b);_0x3d69f0['enableCommand'](_0x408e1b,()=>{const _0x3b9f4b=_0x17e9fa['getSelectionAffectedTableCells'](_0x1bf37d['model']['document']['selection'])[0x0],_0x2541e1=_0x3b9f4b['findAncestor']('table'),{column:_0x57f9ad,row:_0x57cb66}=_0x17e9fa['getCellLocation'](_0x3b9f4b);let _0x416f9f=[];if('horizontally'==_0x5b18bb['direction']){const _0x2e3662=_0x17e9fa['createTableWalker'](_0x2541e1,{'startRow':_0x57cb66,'endRow':_0x57cb66,'includeAllSlots':!0x0});_0x416f9f=Array['from'](_0x2e3662)['map'](_0x3bfa26=>_0x3bfa26['cell']);}else{const _0xafdc97=_0x17e9fa['createTableWalker'](_0x2541e1,{'column':_0x57f9ad,'includeAllSlots':!0x0});_0x416f9f=Array['from'](_0xafdc97)['map'](_0x1a0225=>_0x1a0225['cell']);}_0x1bf37d['model']['change'](_0x1250fb=>{_0x3d69f0['markBlockFormat'](_0x1250fb['createRangeOn'](_0x3b9f4b),{'commandName':_0x408e1b,'commandParams':[]},_0x416f9f,_0x408e1b);});});}_0x3d69f0['descriptionFactory']['registerDescriptionCallback'](_0x5b1d30=>{if('formatBlock'!=_0x5b1d30['type']&&'formatInline'!=_0x5b1d30['type'])return;const {data:_0x38dc14}=_0x5b1d30;return _0x38dc14&&'mergeTableCells'==_0x38dc14['commandName']?{'type':'format','content':o(_0x37d6d9,'*Merge\x20cells*')}:void 0x0;}),_0x3d69f0['descriptionFactory']['registerDescriptionCallback'](_0x280d75=>{if('formatBlock'!=_0x280d75['type']&&'formatInline'!=_0x280d75['type'])return;const {data:_0x4034aa}=_0x280d75;return _0x4034aa?'splitTableCellVertically'==_0x4034aa['commandName']?{'type':'format','content':o(_0x37d6d9,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4034aa['commandName']?{'type':'format','content':o(_0x37d6d9,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x389580=_0x42e690['_acceptFormatSuggestionCallbackFactory']();for(const _0x2a0715 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3d69f0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2a0715,'accept',_0x389580);for(const _0x2fdf5a of['splitTableCellVertically','splitTableCellHorizontally'])_0x3d69f0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2fdf5a,'accept',_0x389580);_0x3d69f0['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3941ca=>{_0x1bf37d['model']['change'](_0x92bdd4=>{const _0x4d466d=Array['from'](_0x3e1fbd['getRanges']())['map'](_0xf82889=>_0x3d40b9['fromRange'](_0xf82889));_0x92bdd4['setSelection'](_0x3941ca),_0x1bf37d['commands']['get']('mergeTableCells')['refresh'](),_0x1bf37d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x143b36=_0x4d466d['filter'](_0x5aad98=>'$graveyard'!=_0x5aad98['root']['rootName']);_0x143b36['length']>0x0&&_0x92bdd4['setSelection'](_0x143b36);for(const _0x103b49 of _0x4d466d)_0x103b49['detach']();});});for(const _0x5076ff of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3c93a4=_0x1bf37d['commands']['get'](_0x5076ff);_0x3c93a4['on']('set:isEnabled',(_0x53bb13,_0x233056,_0x1835ee)=>{if(_0x1835ee){const _0x4ea799=_0x1bf37d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3c6d03=>_0x3c6d03['is']('element','tableCell'));this['_areMergableCells'](_0x3c93a4['value'],_0x4ea799)||(_0x53bb13['return']=!0x1,_0x53bb13['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xfc4f9f=this['editor']['commands']['get']('mergeTableCells'),_0x38a46c=this['editor']['plugins']['get']('TableUtils');if(!_0xfc4f9f['isEnabled'])return!0x1;const _0x57fbbd=_0x38a46c['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1a50ac of _0x57fbbd)for(const _0x313d95 of _0x57fbbd)if(_0x1a50ac!=_0x313d95&&!this['_areMergableCells'](_0x1a50ac,_0x313d95))return!0x1;return!0x0;}['_areMergableCells'](_0x583f31,_0x29d8a9){const _0x1da8a8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11b760=this['editor']['model']['createRangeOn'](_0x583f31),_0x243113=this['editor']['model']['createRangeOn'](_0x29d8a9),_0x2d7f74=new Set(),_0x867cd8=new Set();for(const _0x51c01f of _0x1da8a8['getSuggestions']())if(('insertion'==_0x51c01f['type']||'deletion'==_0x51c01f['type']||'mergeTableCells'==_0x51c01f['subType'])&&_0x51c01f['isInContent']){for(const _0x1d65c6 of _0x51c01f['getRanges']())_0x1d65c6['containsRange'](_0x11b760,!0x0)&&_0x2d7f74['add'](_0x51c01f['type']+':'+_0x51c01f['author']['id']),_0x1d65c6['containsRange'](_0x243113,!0x0)&&_0x867cd8['add'](_0x51c01f['type']+':'+_0x51c01f['author']['id']);}if(_0x2d7f74['size']!=_0x867cd8['size'])return!0x1;for(const _0x540749 of _0x2d7f74)if(!_0x867cd8['has'](_0x540749))return!0x1;return!0x0;}}class Tt extends _0x4e7f5a{static get['requires'](){return[Mt];}['afterInit'](){const _0x3e8db8=this['editor'];if(!_0x3e8db8['plugins']['has']('TableEditing'))return;const _0x29b8fc=_0x3e8db8['locale'],_0x28762a=_0x3e8db8['plugins']['get']('TrackChangesEditing');_0x28762a['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x28762a['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x28762a['registerBlockAttribute']('headingRows'),_0x28762a['registerBlockAttribute']('headingColumns'),_0x28762a['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x29b8fc,'FORMAT_HEADER_ROW')),_0x28762a['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x29b8fc,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x54aaf5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x345321=this['editor']['plugins']['get']('TableUtils'),_0x5f22a7=this['editor']['plugins']['get'](Mt)['_acceptFormatSuggestionCallbackFactory']();function _0x2ea2b0({showActiveMarker:_0x584a46=!0x0,setDataAttribute:_0x53398a=!0x0}={}){return(_0x4222b1,_0x468223,_0x5177e1)=>{const {type:_0x34b0b5,id:_0x38ace7}=_0x54aaf5['_splitMarkerName'](_0x468223['markerName']);if(!_0x54aaf5['hasSuggestion'](_0x38ace7))return;const _0x229e6e=_0x54aaf5['getSuggestion'](_0x38ace7),_0x17a356=_0x229e6e['data'];if('formatBlock'!=_0x229e6e['type']||!_0x17a356||'setTableColumnHeader'!=_0x17a356['commandName'])return;if(_0x468223['item'])return void _0x4222b1['stop']();if(!_0x5177e1['consumable']['consume'](_0x468223['markerRange'],_0x4222b1['name']))return;const _0x58dac0=_0x468223['markerRange']['start']['nodeAfter'],_0x41fd86=_0x468223['markerRange']['end']['nodeBefore'],_0x77232b=_0x58dac0['parent']['parent'],{column:_0x1e2d46}=_0x345321['getCellLocation'](_0x58dac0),{column:_0x15e1d6}=_0x345321['getCellLocation'](_0x41fd86);for(let _0x2c5407=_0x1e2d46;_0x2c5407<=_0x15e1d6;_0x2c5407++){const _0x9f84a=_0x345321['createTableWalker'](_0x77232b,{'column':_0x2c5407,'includeAllSlots':!0x1});for(const _0x4271e1 of _0x9f84a){const _0x56a30b=_0x4271e1['cell'],_0xed8834=_0x5177e1['mapper']['toViewElement'](_0x56a30b);_0x5177e1['writer']['addClass']('ck-suggestion-marker-'+_0x34b0b5,_0xed8834),_0x53398a&&_0x5177e1['writer']['setAttribute']('data-suggestion',_0x38ace7,_0xed8834),_0x5177e1['mapper']['bindElementToMarker'](_0xed8834,_0x468223['markerName']),_0x584a46&&(_0x54aaf5['activeMarkers']['includes'](_0x468223['markerName'])?_0x5177e1['writer']['addClass']('ck-suggestion-marker--active',_0xed8834):_0x5177e1['writer']['removeClass']('ck-suggestion-marker--active',_0xed8834));}}};}_0x54aaf5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5f22a7),_0x54aaf5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5f22a7),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2ea2b0(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x15aa93,_0x340802,_0x1c99c8)=>{_0x1c99c8['options']['showSuggestionHighlights']&&_0x2ea2b0({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x15aa93,_0x340802,_0x1c99c8);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4320b3,_0xe2fccf,_0x412363)=>{const {type:_0x287cc4,id:_0x433a9e}=_0x54aaf5['_splitMarkerName'](_0xe2fccf['markerName']);if(!_0x54aaf5['hasSuggestion'](_0x433a9e))return;const _0x126601=_0x54aaf5['getSuggestion'](_0x433a9e),_0x9461fc=_0x126601['data'];if('formatBlock'!=_0x126601['type']||!_0x9461fc||'setTableColumnHeader'!=_0x9461fc['commandName'])return;const _0xe27c00=_0x412363['mapper']['markerNameToElements'](_0xe2fccf['markerName']);if(_0xe27c00){for(const _0x1ac57d of _0xe27c00)_0x412363['writer']['removeClass']('ck-suggestion-marker-'+_0x287cc4,_0x1ac57d),_0x412363['writer']['removeClass']('ck-suggestion-marker--active',_0x1ac57d),_0x412363['writer']['removeAttribute']('data-suggestion',_0x1ac57d),_0x412363['mapper']['unbindElementFromMarkerName'](_0x1ac57d,_0xe2fccf['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e773b=this['editor'],_0x315969=_0x3e773b['locale'];function _0x5065db(_0x4ec065){return{'type':'format','content':o(_0x315969,'*Format:*\x20%0',_0x4ec065)};}_0x3e773b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e93ed=>{if('formatBlock'!=_0x5e93ed['type'])return;const {data:_0x363994}=_0x5e93ed;if(_0x363994){if('setTableRowHeader'==_0x363994['commandName']){const _0x51b0d1=_0x363994['commandParams'][0x0]['forceValue'];return _0x5065db(o(_0x315969,_0x51b0d1?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x363994['commandName']){const _0x3f6bde=_0x363994['commandParams'][0x0]['forceValue'];return _0x5065db(o(_0x315969,_0x3f6bde?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ot extends _0x4e7f5a{['afterInit'](){const _0x3298a5=this['editor'],_0x632ac5=_0x3298a5['locale'],_0x550b51=_0x3298a5['plugins']['get']('TrackChangesEditing');function _0x99770(_0x32ea36){return{'type':'format','content':''+o(_0x632ac5,'*Set\x20table\x20type:*\x20%0',_0x32ea36)};}_0x3298a5['plugins']['has']('TableLayout')&&(_0x550b51['enableCommand']('insertTableLayout'),_0x550b51['enableDefaultAttributesIntegration']('tableType'),_0x550b51['registerBlockAttribute']('tableType'),_0x550b51['descriptionFactory']['registerElementLabel'](_0x373f1a=>_0x373f1a['is']('element','table')&&'layout'===_0x373f1a['getAttribute']('tableType'),_0x13286c=>o(_0x632ac5,'ELEMENT_LAYOUT_TABLE',_0x13286c)),_0x550b51['descriptionFactory']['registerDescriptionCallback'](_0x380349=>{const {data:_0x2fbe40}=_0x380349;if(_0x2fbe40&&'tableType'==_0x2fbe40['key'])switch(_0x2fbe40['newValue']){case'layout':return _0x99770(o(_0x632ac5,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x99770(o(_0x632ac5,'ELEMENT_CONTENT_TABLE'));}}));}}const Ue=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],He=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Ue['map'](_0x30ccd7=>[_0x30ccd7,null]));class xt extends _0x4e7f5a{static get['requires'](){return[Mt];}['afterInit'](){const _0x5a0650=this['editor'];if(!_0x5a0650['plugins']['has']('TableClipboard'))return;const _0x201215=_0x5a0650['plugins']['get']('TrackChangesEditing'),_0x2449ed=_0x5a0650['plugins']['get']('TableUtils'),_0x9df8b8=_0x5a0650['plugins']['get'](Mt),_0x801757=_0x5a0650['plugins']['get']('TableClipboard'),_0x54661d=_0x5a0650['plugins']['get']('TableSelection'),_0x3c652b=_0x5a0650['plugins']['get'](_0x1d326f);_0x9df8b8['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5a0650['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5a0650['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1ea5cb=null,_0x394944=!0x1;_0x3c652b['on']('contentInsertion',(_0xaad373,_0x1797d5)=>{_0x394944='paste'===_0x1797d5['method'];}),_0x5a0650['model']['on']('insertContent',(_0x2ae1dc,_0x43364f)=>{if(!_0x394944&&null===_0x54661d['getSelectedTableCells']())return;const [_0x50c0fc,_0x3225b7]=_0x43364f,_0x4af0c3=_0x43364f[_0x43364f['length']-0x1];_0x4af0c3&&_0x4af0c3['forceDefaultExecution']||_0x201215['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3ac806,_0x339db2,_0x4bf58f,_0x4ff7d4,_0x57be21){if(_0x339db2&&!_0x339db2['is']('documentSelection'))return!0x1;const _0xdf8e12=_0x57be21['getTableIfOnlyTableInContent'](_0x3ac806,_0x4bf58f);if(!_0xdf8e12||!Ge(_0xdf8e12,void 0x0,_0x4ff7d4))return!0x1;const _0x5e4fca=_0x4ff7d4['getSelectionAffectedTableCells'](_0x4bf58f['document']['selection']);if(!_0x5e4fca['length'])return!0x1;const _0x56901b=_0x5e4fca[0x0]['findAncestor']('table'),_0xe86ca7=_0x4ff7d4['getRowIndexes'](_0x5e4fca),_0x513df7=_0x4ff7d4['getColumnIndexes'](_0x5e4fca),_0x1fa9e5={'startRow':_0xe86ca7['first'],'endRow':_0xe86ca7['last'],'startColumn':_0x513df7['first'],'endColumn':_0x513df7['last']};return 0x1==_0x5e4fca['length']&&(_0x1fa9e5['endRow']+=_0x4ff7d4['getRows'](_0xdf8e12)-0x1,_0x1fa9e5['endColumn']+=_0x4ff7d4['getColumns'](_0xdf8e12)-0x1),Ge(_0x56901b,_0x1fa9e5,_0x4ff7d4);}(_0x50c0fc,_0x3225b7,_0x5a0650['model'],_0x2449ed,_0x801757)&&(_0x2ae1dc['stop'](),_0x1ea5cb={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5a0650['model']['change'](()=>{_0x5a0650['model']['insertContent'](_0x43364f[0x0],_0x43364f[0x1],_0x43364f[0x2],{'forceDefaultExecution':!0x0});const _0x35a8be=_0x3caa75(),{rowInsertionRanges:_0x4c861e,columnInsertionRanges:_0x4b8025,insertionRanges:_0x4ffda9,deletionRanges:_0x723508,cells:_0x3cb2e3}=_0x1ea5cb;_0x4c861e['length']&&_0x201215['markMultiRangeInsertion'](_0x4c861e,'tablePasteRow',{'tablePasteChainId':_0x35a8be}),_0x4b8025['length']&&_0x201215['markMultiRangeInsertion'](_0x4b8025,'tablePasteColumn',{'tablePasteChainId':_0x35a8be}),_0x4ffda9['length']&&(_0x201215['markMultiRangeInsertion'](_0x4ffda9,'tablePaste',{'tablePasteChainId':_0x35a8be,'skipNestingCheck':!0x0}),_0x4ffda9['forEach'](_0xe517dc=>_0xe517dc['detach']?.())),_0x723508['length']&&(_0x201215['markMultiRangeDeletion'](_0x723508,'tablePaste',{'tablePasteChainId':_0x35a8be,'skipNestingCheck':!0x0}),_0x723508['forEach'](_0x26e277=>_0x26e277['detach']?.()));const _0x58f90b=_0x201215['markMultiRangeBlockFormat'](_0x3cb2e3['map'](({element:_0x48aae3})=>_0x48aae3),{'formatGroupId':_0x3caa75()},[],'tablePasteCell',{'tablePasteChainId':_0x35a8be});if(_0x58f90b){const _0x415ae9=_0x58f90b['getMarkers'](),_0x1c1de2=[];for(const {element:_0x5f0349,attributes:_0x24f014}of _0x3cb2e3){if(!_0x24f014)continue;const _0x575216=_0x5a0650['model']['createRangeOn'](_0x5f0349),_0x25a601=_0x415ae9['find'](_0x50d1cd=>_0x50d1cd['getRange']()['isEqual'](_0x575216));_0x25a601&&_0x1c1de2['push']([_0x25a601['name'],_0x24f014]);}_0x1c1de2['length']&&_0x58f90b['setAttribute']('markerAttributes',Object['fromEntries'](_0x1c1de2));}_0x1ea5cb=null;}));},{'priority':_0x35714c['high']+0xa}),_0x3c652b['on']('contentInsertion',()=>{_0x394944=!0x1;},{'priority':'lowest'}),_0x5a0650['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x33c0ce,_0x595169)=>{const [_0x2032de,_0x5e51bd,,_0xe29169]=_0x595169;if(!_0x1ea5cb)return;_0x33c0ce['stop']();const _0x529c80=_0x2032de['cell'],_0x15a91c=_0x5e51bd,_0x509294=ze(_0x529c80),_0xa63789=ze(_0x15a91c);_0x33c0ce['return']=_0x529c80;let _0x262702=null,_0x180469=null;if(_0xa63789||_0x509294){if(_0x509294&&!_0xa63789){_0xe29169['remove'](_0x529c80['getChild'](0x0));for(const _0x145ab2 of Array['from'](_0x15a91c['getChildren']()))_0xe29169['insert'](_0x145ab2,_0x529c80,'end');const _0x505829=_0x1ea5cb['rowInsertionIndexes']['includes'](_0x2032de['row']),_0x1cee17=_0x1ea5cb['columnInsertionIndexes']['includes'](_0x2032de['column']);_0x505829||_0x1cee17||(_0x262702=_0x3d40b9['fromRange'](_0xe29169['createRangeIn'](_0x529c80)));}else _0xa63789&&!_0x509294&&(_0x180469=_0xe29169['createRangeIn'](_0x529c80));}else{const _0x263c2d=_0xe29169['createElement']('tableCellSuggestion'),_0x3965e9=_0xe29169['createElement']('tableCellSuggestion');_0xe29169['wrap'](_0xe29169['createRangeIn'](_0x529c80),_0x3965e9),_0xe29169['insert'](_0x263c2d,_0x529c80,0x0);for(const _0x102786 of Array['from'](_0x15a91c['getChildren']()))_0xe29169['insert'](_0x102786,_0x263c2d,'end');_0x262702=_0x3d40b9['fromRange'](_0xe29169['createRangeOn'](_0x263c2d)),_0x180469=_0x3d40b9['fromRange'](_0xe29169['createRangeOn'](_0x3965e9));}const _0x201ba6=Array['from'](_0x15a91c['getAttributes']())['filter'](([_0x2a4a43])=>Ue['includes'](_0x2a4a43));_0x1ea5cb['cells']['push']({'element':_0x529c80,'attributes':_0x201ba6['length']?Object['fromEntries'](_0x201ba6):null}),_0x262702&&_0x1ea5cb['insertionRanges']['push'](_0x262702),_0x180469&&_0x1ea5cb['deletionRanges']['push'](_0x180469);},{'priority':'high'}),_0x2449ed['on']('insertColumns',(_0x65ea73,_0x4f4c7b)=>{const [_0x2f1bc4,_0x38354f={}]=_0x4f4c7b;if(!_0x1ea5cb)return;const _0x1df7d6=_0x38354f['at']||0x0,_0x47ea79=_0x38354f['columns']||0x1;_0x1ea5cb['columnInsertionIndexes']=new Array(_0x47ea79)['fill'](_0x1df7d6)['map']((_0x111dd4,_0x369125)=>_0x111dd4+_0x369125);for(const {cell:_0x56ff39}of _0x2449ed['createTableWalker'](_0x2f1bc4,{'startColumn':_0x1df7d6,'endColumn':_0x1df7d6+_0x47ea79-0x1}))_0x1ea5cb['columnInsertionRanges']['push'](_0x5a0650['model']['createRangeOn'](_0x56ff39));},{'priority':'low'}),_0x2449ed['on']('insertRows',(_0xb6df7a,_0x231d8b)=>{const [_0x4befe0,_0x34a2bf={}]=_0x231d8b;if(!_0x1ea5cb)return;const _0x10ab55=_0x34a2bf['at']||0x0,_0x3e7bc5=_0x34a2bf['rows']||0x1;_0x1ea5cb['rowInsertionIndexes']=new Array(_0x3e7bc5)['fill'](_0x10ab55)['map']((_0xe72fe,_0x15ab28)=>_0xe72fe+_0x15ab28);for(const {cell:_0x5d3ba0}of _0x2449ed['createTableWalker'](_0x4befe0,{'startRow':_0x10ab55,'endRow':_0x10ab55+_0x3e7bc5-0x1}))_0x1ea5cb['rowInsertionRanges']['push'](_0x5a0650['model']['createRangeOn'](_0x5d3ba0));},{'priority':'low'}),_0x201215['descriptionFactory']['registerDescriptionCallback'](_0xa74789=>{if(_0xa74789['subType']&&_0xa74789['subType']['startsWith']('tablePaste'))return _0xa74789['previous']?{}:{'type':'insertion','content':o(_0x5a0650['locale'],'*Replace\x20table\x20cells*')};});const _0x513aca=()=>!0x1;for(const _0x44c98a of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x201215['_suggestionFactory']['registerCustomCallback']('insertion',_0x44c98a,'join',_0x513aca),_0x201215['_suggestionFactory']['registerCustomCallback']('deletion',_0x44c98a,'join',_0x513aca),_0x201215['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x44c98a,'join',_0x513aca);_0x201215['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x513aca),_0x201215['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x6ace96,_0x2d912b,_0xf11b03)=>{const _0x3c655b=_0x6ace96['map'](_0x387df0=>_0x387df0['getContainedElement']())['filter'](_0xe1d5b2=>_0xe1d5b2),_0x1bf14c=new Map(_0x3c655b['map'](_0x5a715c=>[_0x5a715c,null]));if(_0x1ea5cb){for(const {element:_0x4b2fbb,attributes:_0x32e9ee}of _0x1ea5cb['cells'])_0x32e9ee&&_0x1bf14c['set'](_0x4b2fbb,_0x32e9ee);}else{if(_0xf11b03&&_0xf11b03['markerAttributes'])for(const [_0x213930,_0x218447]of Object['entries'](_0xf11b03['markerAttributes'])){const _0x277b21=_0x5a0650['model']['markers']['get'](_0x213930),_0x57b3fe=_0x277b21?_0x277b21['getRange']()['getContainedElement']():null;_0x57b3fe&&_0x1bf14c['set'](_0x57b3fe,_0x218447);}}_0x5a0650['model']['change'](_0x4eb7b7=>{for(const [_0x3d2daf,_0x4c6da0]of _0x1bf14c)_0x4eb7b7['setAttributes']({...He,..._0x4c6da0},_0x3d2daf);});});const _0x1983a4=(_0x5c46f4,_0x224745)=>{_0x201215['_suggestionFactory']['registerCustomCallback'](_0x5c46f4,'tablePaste',_0x224745,(_0x363d44,_0x4965a5,_0x1704e1)=>{_0x5a0650['model']['change'](_0x265713=>{const _0x293ab8=[];for(const _0x3e7091 of _0x363d44){const _0x297115=_0x3e7091['start']['nodeAfter'];_0x297115['is']('element','tableCellSuggestion')&&_0x293ab8['push'](_0x297115);}_0x201215['_suggestionFactory']['getSuggestionCallback'](_0x5c46f4,null,_0x224745)(_0x363d44,_0x4965a5,_0x1704e1);for(const _0x8fefbd of _0x293ab8)'$graveyard'!=_0x8fefbd['root']['rootName']&&_0x265713['unwrap'](_0x8fefbd);});});};_0x1983a4('insertion','accept'),_0x1983a4('insertion','discard'),_0x1983a4('deletion','accept'),_0x1983a4('deletion','discard'),_0x201215['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x57180a=>{const _0x100d72=_0x57180a['map'](_0x10d566=>_0x10d566['getContainedElement']()),_0x2dda94=_0x100d72[0x0]['findAncestor']('table'),{minRow:_0x318caa,maxRow:_0x546496}=_0x9df8b8['_getCoordsForCells'](_0x100d72);_0x2449ed['removeRows'](_0x2dda94,{'at':_0x318caa,'rows':_0x546496-_0x318caa+0x1});}),_0x201215['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4fa323=>{const _0x51fae5=_0x4fa323['map'](_0x1605a0=>_0x1605a0['getContainedElement']()),_0x1b8e58=_0x51fae5[0x0]['findAncestor']('table'),{minColumn:_0x435b7d,maxColumn:_0x1a129d}=_0x9df8b8['_getCoordsForCells'](_0x51fae5);_0x2449ed['removeColumns'](_0x1b8e58,{'at':_0x435b7d,'columns':_0x1a129d-_0x435b7d+0x1});});const _0x19927e=(_0x229023,_0x41b4f2)=>{if(!_0x41b4f2['subType']||!_0x41b4f2['subType']['startsWith']('tablePaste'))return;const _0x222c97=_0x41b4f2['attributes']['tablePasteChainId'],_0x3c35ae=_0x201215['getSuggestions']()['filter'](_0x3b4fa4=>_0x3b4fa4['isInContent']&&_0x3b4fa4['attributes']&&_0x3b4fa4['attributes']['tablePasteChainId']==_0x222c97);_0x3c35ae['length']&&_0x41b4f2['getAllAdjacentSuggestions']()['length']!=_0x3c35ae['length']&&_0x3c35ae['reduce']((_0x1b5af6,_0x42adae)=>(_0x1b5af6['next']=_0x42adae,_0x42adae['previous']=_0x1b5af6,_0x42adae));};function _0x40d178(_0x3f169c,_0x24daf4=!0x0){const {id:_0x1f6875,authorId:_0x3995f1}=_0x201215['_splitMarkerName'](_0x3f169c['markerName']),_0x1e2601=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1d998e=_0x201215['activeMarkers']['includes'](_0x3f169c['markerName']);return _0x1d998e&&_0x1e2601['push']('ck-suggestion-marker--active'),{'classes':_0x1e2601,'attributes':{'data-suggestion':_0x1f6875,'data-author-id':_0x3995f1},'priority':_0x1d998e&&_0x24daf4?0xbc2:0xbb8};}_0x201215['on']('suggestionLoaded',_0x19927e,{'priority':'high'}),_0x201215['on']('suggestionUnloaded',_0x19927e,{'priority':'high'}),_0x5a0650['model']['document']['registerPostFixer'](()=>{let _0x549929=!0x1;const _0xed27b8=Array['from'](_0x5a0650['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x19dfb3,data:_0x3212d2}of _0xed27b8){const {group:_0x435432,type:_0x27ec28,id:_0x4a547f}=_0x201215['_splitMarkerName'](_0x19dfb3);if('suggestion'!=_0x435432||'deletion'!=_0x27ec28||_0x3212d2['oldRange'])continue;if(!_0x201215['hasSuggestion'](_0x4a547f))continue;const _0x45bed1=_0x201215['getSuggestion'](_0x4a547f)['getRanges'](),_0x5723dc=_0x5a0650['plugins']['get']('Users')['me'];for(const _0x7d858f of _0x201215['getSuggestions']()){if(!_0x7d858f['isInContent']||_0x7d858f['author']!=_0x5723dc)continue;if('formatBlock'!=_0x7d858f['type']||'tablePasteCell'!=_0x7d858f['subType'])continue;if(_0x7d858f['getRanges']()['every'](_0x87a18c=>_0x45bed1['some'](_0x361725=>_0x361725['containsRange'](_0x87a18c,!0x0)))){for(const _0xe42312 of _0x7d858f['getAllAdjacentSuggestions']())_0xe42312['isInContent']&&(_0xe42312['discard'](),_0x549929=!0x0);}}}return _0x549929;}),_0x5a0650['model']['document']['registerPostFixer'](_0x28be4e=>{const _0x462828=_0x5a0650['commands']['get']('redo');if(!_0x462828||!_0x462828['_createdBatches']['has'](_0x28be4e['batch']))return!0x1;let _0x5a94dc=!0x1;const _0x717cf5=_0x5a0650['plugins']['get']('Users')['me'],_0x33b96e=_0x5a0650['model']['document']['differ']['getChanges'](),_0x59bb73=Array['from'](_0x5a0650['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4826ae,data:_0x4a6e9c})=>{const {group:_0x289a06,subType:_0x5941d3,authorId:_0x3e83cf}=_0x201215['_splitMarkerName'](_0x4826ae);return'suggestion'==_0x289a06&&'tablePaste'==_0x5941d3&&_0x3e83cf==_0x717cf5['id']&&!_0x4a6e9c['oldRange'];});for(const _0x9e892c of _0x33b96e){if('insert'!=_0x9e892c['type']||'tableCellSuggestion'!=_0x9e892c['name']||0x1!=_0x9e892c['length'])continue;const _0x5a8f91=_0x28be4e['createRange'](_0x9e892c['position'],_0x9e892c['position']['getShiftedBy'](0x1));if(!_0x59bb73['find'](({data:_0x28de77})=>_0x28de77['newRange']['isEqual'](_0x5a8f91))){for(const {name:_0x4a087d,data:_0x221e10}of _0x59bb73)if(_0x5a8f91['containsRange'](_0x221e10['newRange'])){_0x28be4e['updateMarker'](_0x4a087d,{'range':_0x5a8f91}),_0x5a94dc=!0x0;break;}}}return _0x5a94dc;}),_0x5a0650['model']['document']['registerPostFixer'](_0x1482c1=>{let _0x1324c5=!0x1;const _0xd83b86=_0x5a0650['plugins']['get']('Users')['me'],_0x41c299=_0x201215['getSuggestions']()['filter'](_0x44f3a2=>_0x44f3a2['isInContent']&&_0x44f3a2['author']==_0xd83b86),_0x6679d4=new Set(),_0x23e9cc=new Set();for(const _0x29d7d6 of _0x41c299)if('tablePaste'==_0x29d7d6['subType'])for(const _0x1e9fc9 of _0x29d7d6['getMarkers']()){const _0x3f25b6=_0x1e9fc9['getRange']()['getContainedElement']();if(_0x3f25b6){if(_0x3f25b6['is']('element','tableCellSuggestion')&&ze(_0x3f25b6)){_0x29d7d6['removeMarker'](_0x1e9fc9['name']),_0x6679d4['add'](_0x3f25b6),_0x1324c5=!0x0;const _0x5410c2=_0x3f25b6['nextSibling'],_0x2550b1=_0x3f25b6['previousSibling'],_0x3000df=_0x5410c2&&_0x5410c2['is']('element','tableCellSuggestion'),_0x47ab8f=_0x2550b1&&_0x2550b1['is']('element','tableCellSuggestion');_0x3000df&&!_0x6679d4['has'](_0x5410c2)&&_0x23e9cc['add'](_0x5410c2),_0x47ab8f&&!_0x6679d4['has'](_0x2550b1)&&_0x23e9cc['add'](_0x2550b1);}else _0x3f25b6['is']('element','paragraph')&&_0x3f25b6['isEmpty']&&(_0x29d7d6['removeMarker'](_0x1e9fc9['name']),_0x1324c5=!0x0);}}else{if('tablePasteCell'==_0x29d7d6['subType']){if(!_0x29d7d6['attributes']||!_0x29d7d6['attributes']['tablePasteChainId'])continue;const _0x26c305=_0x29d7d6['attributes']['markerAttributes'];if(_0x26c305&&Object['keys'](_0x26c305)['length'])continue;const _0x4fef43=_0x29d7d6['attributes']['tablePasteChainId'];let _0x15bc6f=!0x0,_0x65ccd8=!0x0;for(const _0x3286d2 of _0x41c299)if(_0x3286d2['subType']&&_0x3286d2['subType']['startsWith']('tablePaste')){if(!_0x3286d2['attributes']['tablePasteChainId']){_0x65ccd8=!0x1;break;}if(_0x3286d2['id']!=_0x29d7d6['id']&&_0x3286d2['attributes']['tablePasteChainId']==_0x4fef43){_0x15bc6f=!0x1;break;}}_0x65ccd8&&_0x15bc6f&&(_0x29d7d6['removeMarkers'](),_0x1324c5=!0x0);}}for(const _0x31a3e5 of _0x6679d4)_0x1482c1['remove'](_0x31a3e5);for(const _0xf96af1 of _0x23e9cc)_0x1482c1['unwrap'](_0xf96af1);return _0x1324c5;}),_0x5a0650['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x42df55=>_0x40d178(_0x42df55),'converterPriority':'high'}),_0x5a0650['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xa69789,_0x512b09)=>_0x512b09['options']['showSuggestionHighlights']?_0x40d178(_0xa69789,!0x1):null,'converterPriority':'high'});const _0x5eed4e=_0x5a0650['editing']['view'];this['listenTo'](_0x5eed4e['document'],'clipboardOutput',(_0xe66848,_0x19b808)=>{const _0x452090=[];for(const _0x3297ed of _0x5eed4e['createRangeIn'](_0x19b808['content'])['getItems']())_0x3297ed['is']('element','suggestion-td')&&_0x452090['push'](_0x3297ed);_0x5eed4e['change'](_0x421ce0=>{for(const _0x133776 of _0x452090)_0x421ce0['move'](_0x421ce0['createRangeIn'](_0x133776),_0x421ce0['createPositionBefore'](_0x133776)),_0x421ce0['remove'](_0x133776);});});}}function ze(_0x5b0396){if(_0x5b0396['isEmpty'])return!0x0;const _0x362644=_0x5b0396['getChild'](0x0);return _0x362644['is']('element','paragraph')&&_0x362644['isEmpty'];}function Ge(_0x47440c,_0x1e8865={},_0x2ffa34){for(const {isAnchor:_0x15f7e0,cellHeight:_0x4b1d73,cellWidth:_0x1a4dea}of _0x2ffa34['createTableWalker'](_0x47440c,{'includeAllSlots':!0x0,..._0x1e8865}))if(!_0x15f7e0||0x1!=_0x4b1d73||0x1!=_0x1a4dea)return!0x1;return!0x0;}class Et extends _0x4e7f5a{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5944a8=this['editor']['plugins']['get']('TrackChangesEditing');_0x5944a8['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5944a8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5944a8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5944a8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5944a8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5944a8['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x22ecd0,_0x10d98f){const _0x525cac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2efbb0=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xbf96c8=_0x10d98f['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x496e9d=_0x2efbb0['getColumnGroupElement'](_0xbf96c8);let _0x4f7842=_0x496e9d?_0x2efbb0['getTableColumnsWidths'](_0x496e9d):null,_0x14530f=_0xbf96c8['getAttribute']('tableWidth')||null;const _0x3f5f97=_0x10d98f['tableWidth']||_0x14530f,_0x3508e1=_0x10d98f['columnWidths']||_0x4f7842,_0x46b015=this['editor']['plugins']['get']('Users')['me'];for(const _0xd4d225 of _0x525cac['getSuggestions']()){const _0x231e54=_0xd4d225['getContainedElement']();if('resizeTable'===_0xd4d225['subType']&&_0x231e54===_0xbf96c8){_0xd4d225['author']!==_0x46b015&&_0xd4d225['discard']();const _0x59ffd8=_0xd4d225['data']['commandParams'];_0x14530f=_0x59ffd8[0x0]['tableWidth'],_0x4f7842=_0x59ffd8[0x0]['columnWidths'];break;}}_0x22ecd0({'table':_0xbf96c8,'tableWidth':_0x3f5f97,'columnWidths':_0x3508e1}),_0x525cac['markBlockFormat'](_0xbf96c8,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x14530f,'columnWidths':_0x4f7842}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x979fb9){if('formatBlock'!=_0x979fb9['type']&&'formatInline'!=_0x979fb9['type'])return;const {data:_0x1057c8}=_0x979fb9;if(_0x1057c8&&'resizeTable'===_0x1057c8['formatGroupId']){const _0x1612e0='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1612e0)};}}}class Rt extends _0x4e7f5a{['afterInit'](){const _0x720207=this['editor'];_0x720207['plugins']['has']('Template')&&_0x720207['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ut extends _0x4e7f5a{['afterInit'](){const _0x165a4b=this['editor'];if(!_0x165a4b['commands']['get']('insertTableOfContents'))return;_0x165a4b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x40b0b9=_0x165a4b['plugins']['get']('TrackChangesEditing'),_0x42c769=_0x165a4b['locale'];_0x40b0b9['descriptionFactory']['registerElementLabel']('tableOfContents',_0x14e079=>o(_0x42c769,'ELEMENT_TABLE_OF_CONTENTS',_0x14e079));}}class Vt extends _0x4e7f5a{['afterInit'](){const _0x4ee68a=this['editor'];if(!_0x4ee68a['plugins']['has']('Title'))return;const _0x35128c=_0x4ee68a['plugins']['get']('TrackChangesEditing');_0x35128c['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4ee68a['locale'],'ELEMENT_TITLE')),_0x4ee68a['model']['document']['registerPostFixer'](_0x14f655=>{let _0x4fce5a=!0x1;const _0x5c8c85=Array['from'](_0x4ee68a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x310bb5,data:_0x579a3d}of _0x5c8c85){const {group:_0x3bb89b}=_0x35128c['_splitMarkerName'](_0x310bb5);if('suggestion'!==_0x3bb89b||!_0x579a3d['newRange'])continue;const _0x59ceed=_0x579a3d['newRange'],_0x3f99e1=_0x59ceed['end']['nodeBefore'];if(!_0x3f99e1||!_0x3f99e1['is']('element','title-content'))continue;if(!_0x59ceed['start']['isTouching'](_0x59ceed['end']))continue;const _0x290742=_0x4ee68a['model']['schema']['getNearestSelectionRange'](_0x59ceed['end'],'forward');if(_0x290742&&_0x290742['isCollapsed']){const _0x318af1=_0x14f655['createRange'](_0x59ceed['start'],_0x290742['start']);_0x318af1['isEqual'](_0x59ceed)||(_0x14f655['updateMarker'](_0x310bb5,{'range':_0x318af1}),_0x4fce5a=!0x0);}_0x4fce5a||(_0x14f655['removeMarker'](_0x310bb5),_0x4fce5a=!0x0);}return _0x4fce5a;});}}class Ft extends _0x4e7f5a{['afterInit'](){const _0x16278e=this['editor'],_0xbfac95=_0x16278e['plugins']['get']('TrackChangesEditing');_0x16278e['plugins']['has']('Uploadcare')&&(_0xbfac95['enableCommand']('uploadcare'),_0x16278e['plugins']['has']('UploadcareImageEdit')&&(_0xbfac95['enableCommand']('uploadcareImageEdit'),_0xbfac95['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0xbfac95['registerBlockAttribute']('uploadcareImageId'),_0xbfac95['descriptionFactory']['registerDescriptionCallback'](_0x4dd517=>{if('attribute'!=_0x4dd517['type'])return;const {data:_0x9e0167}=_0x4dd517;return _0x9e0167&&'uploadcareImageId'==_0x9e0167['key']?{'type':'format','content':''}:void 0x0;})));}}class Pt extends _0x4e7f5a{['afterInit'](){const _0x417973=this['editor'],_0x8c6a36=_0x417973['plugins']['get']('TrackChangesEditing');_0x417973['plugins']['has']('UndoEditing')&&(_0x8c6a36['enableCommand']('undo'),_0x8c6a36['enableCommand']('redo'));}}class Gt extends _0x4e7f5a{static get['requires'](){return[Mt];}['afterInit'](){const _0x1173da=this['editor'];if(!_0x1173da['plugins']['has']('TableCaptionEditing'))return;_0x1173da['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Lt extends _0x4e7f5a{['tableProperties'];['tableCellProperties'];constructor(_0x4d2ef9){super(_0x4d2ef9),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';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x1f093b=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x252fa1 of this['tableProperties'])_0x1f093b['enableCommand'](_0x252fa1,(_0x4d61e9,_0x131d7a)=>{const _0x2be9c8=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x252fa1,[_0x2be9c8],this['tableProperties'],'tableProperties',_0x4d61e9,_0x131d7a);});_0x1f093b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1f093b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1f093b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x295da7,_0x1976a9)=>this['handleDiscardAction'](this['tableProperties'],_0x295da7,_0x1976a9)),_0x1f093b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xc40b00 of this['tableCellProperties'])_0x1f093b['enableCommand'](_0xc40b00,(_0x1bf5a5,_0xe98683)=>{const _0x4f4424=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xc40b00,_0x4f4424,this['tableCellProperties'],'tableCellProperties',_0x1bf5a5,_0xe98683);});_0x1f093b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1f093b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1f093b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x82c1f6,_0x693ab6)=>this['handleDiscardAction'](this['tableCellProperties'],_0x82c1f6,_0x693ab6)),_0x1f093b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1f093b['descriptionFactory']['registerDescriptionCallback'](_0x375633=>this['handleSuggestionDescription'](_0x375633)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x155cfb,_0x2c6980,_0x1ddd2e,_0x35f9b1,_0x548cbd,_0x14465b){const _0x717e1a=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x14465b['batch'],()=>{for(const _0x12a177 of _0x2c6980){if(this['_getSuggestion'](_0x12a177,_0x35f9b1))_0x548cbd(_0x14465b);else{const _0x3c118b={};for(const _0x43b5e5 of _0x1ddd2e){const _0x5c9e57=_0x12a177['getAttribute'](_0x43b5e5);void 0x0!==_0x5c9e57&&(_0x3c118b[_0x43b5e5]=_0x5c9e57);}_0x548cbd(_0x14465b),_0x717e1a['markBlockFormat'](_0x12a177,{'commandParams':[_0x3c118b]},[],_0x35f9b1);}}});}['handleDiscardAction'](_0x1e6199,_0x405166,_0x37147f){const _0x2d1e5e=_0x405166[0x0]['start']['nodeAfter'],_0x369a96=_0x37147f['commandParams'][0x0];this['editor']['model']['change'](_0x2bd4ee=>{for(const _0x34964e of _0x1e6199)void 0x0!==_0x369a96[_0x34964e]?_0x2bd4ee['setAttribute'](_0x34964e,_0x369a96[_0x34964e],_0x2d1e5e):_0x2bd4ee['removeAttribute'](_0x34964e,_0x2d1e5e);});}['handleSuggestionDescription'](_0x563eb6){if(_0x563eb6['data'])switch(_0x563eb6['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'](_0x3df408,_0x1c6ea1){const _0x3b7fa6=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x131b41 of _0x3b7fa6['getSuggestions']({'skipNotAttached':!0x0})){const _0x1fc837=_0x131b41['getContainedElement']();if(_0x131b41['subType']===_0x1c6ea1&&_0x1fc837===_0x3df408)return _0x131b41;}return null;}['_registerTablePropertiesAttributes'](){const _0x34c0cd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d3a51=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x41cb07 of _0x2d3a51){const _0x48aca4=_0x41cb07['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x34c0cd['registerBlockAttribute'](_0x41cb07),_0x34c0cd['descriptionFactory']['registerAttributeLabel'](_0x41cb07,o(this['editor']['locale'],'FORMAT_'+_0x48aca4));}}}class Jt extends _0x4e7f5a{['afterInit'](){const _0x589078=this['editor'];if(!_0x589078['plugins']['has']('LineHeight'))return;const _0x31990d=_0x589078['plugins']['get']('TrackChangesEditing'),_0x40b571=_0x589078['locale'];_0x31990d['enableDefaultAttributesIntegration']('lineHeight'),_0x31990d['registerBlockAttribute']('lineHeight'),_0x31990d['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x40b571,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x4e7f5a{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x57807f,_0x3008df,_0x26060f,V,F,G,L,J,K,q,W,H,z,Q,X,tt,et,it,nt,st,ot,rt,at,ct,ut,ft,gt,ht,lt,mt,dt,kt,wt,jt,pt,Y,Jt,Z,bt,yt,St,It,At,_t,$t,vt,Ct,Nt,Dt,Mt,Bt,Tt,Ot,Gt,xt,Et,Ut,Lt,Rt,Vt,Ft,Pt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3b5544){super(_0x3b5544),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x24bc5a,_0x4dbb75,_0x476d68,_0x3e2643)=>{this['_model']['change'](()=>{for(const _0x38b248 of[..._0x3e2643,..._0x476d68])this['_model']['markers']['has'](_0x38b248)&&_0x3b5544['editing']['reconvertMarker'](_0x38b248);});}),this['descriptionFactory']=new U(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3b5544['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(),_0x3b5544['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3b5544['config']['get']('trackChanges.trackFormatChanges'),_0x3b5544['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3b5544['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3b5544,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xb2b9ab=this['editor'],_0x34bdee=(_0x110d3f,_0x43ab4d)=>{if('attribute'!=_0x110d3f)return'ck-suggestion-marker-'+_0x110d3f;const _0x5491be=_0x43ab4d['split']('|')[0x0];return this['_isBlockAttribute'](_0x5491be)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xb2b9ab['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5aac75=>{const {id:_0xfb73ed,authorId:_0x40d209,type:_0x2459df,subType:_0x486e18}=this['_splitMarkerName'](_0x5aac75['markerName']),_0x30cbcc=['ck-suggestion-marker',_0x34bdee(_0x2459df,_0x486e18)];let _0x13ed35=0xbb8;return this['activeMarkers']['includes'](_0x5aac75['markerName'])&&(_0x30cbcc['push']('ck-suggestion-marker--active'),_0x13ed35=0xbc2),'deletion'==_0x2459df&&(_0x13ed35+=0x5),{'classes':_0x30cbcc,'attributes':{'data-suggestion':_0xfb73ed,'data-author-id':_0x40d209},'priority':_0x13ed35};}}),_0xb2b9ab['conversion']['for']('dataDowncast')['add'](_0x16f622=>{_0x16f622['on']('addMarker:suggestion',(_0x54e8ac,_0x433691,_0xc07f08)=>{if(!_0xc07f08['options']['showSuggestionHighlights'])return;const _0x1b1634=_0x433691['item'];if(!_0x1b1634)return;const _0x1be971=_0xc07f08['mapper']['toViewElement'](_0x1b1634);_0xb2b9ab['model']['schema']['isObject'](_0x1b1634)&&_0x1be971&&!_0x1be971['getCustomProperty']('widget')&&_0x1be971['is']('containerElement')&&_0x599747(_0x1be971,_0xc07f08['writer']);},{'priority':'high'});}),_0xb2b9ab['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x58737c,_0x5552a1)=>{if(!_0x5552a1['options']['showSuggestionHighlights'])return null;const {id:_0x17a079,authorId:_0x33e604,type:_0x3117f4,subType:_0x52bdef}=this['_splitMarkerName'](_0x58737c['markerName']);return{'classes':['ck-suggestion-marker',_0x34bdee(_0x3117f4,_0x52bdef)],'priority':0xbb8,'attributes':{'data-suggestion':_0x17a079,'data-author-id':_0x33e604}};}});const _0x56b131=({showActiveMarkers:_0x1e97c3=!0x0,isAttributeSuggestion:_0x521eb8=!0x1}={})=>(_0x24151e,_0x4d9e98,_0x3d4ef0)=>{if(!_0x4d9e98['item'])return;const {id:_0x50a346,authorId:_0x5b1d6a,subType:_0x3fa402}=this['_splitMarkerName'](_0x4d9e98['markerName']);if(_0x521eb8){const _0x2e78d8=ae(_0x3fa402);if(!this['_isBlockAttribute'](_0x2e78d8))return;}if(_0x4d9e98['item']['is']('selection'))return void _0x3d4ef0['consumable']['consume'](_0x4d9e98['item'],_0x24151e['name']);const _0x48464e=_0x3d4ef0['mapper']['toViewElement'](_0x4d9e98['item']);if(_0x4d9e98['item']['is']('element')&&_0xb2b9ab['model']['schema']['isBlock'](_0x4d9e98['item'])&&!_0x48464e['getCustomProperty']('addHighlight')){_0x3d4ef0['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x48464e),_0x3d4ef0['writer']['setAttribute']('data-suggestion',_0x50a346,_0x48464e),_0x3d4ef0['writer']['setAttribute']('data-author-id',_0x5b1d6a,_0x48464e),_0x3d4ef0['mapper']['bindElementToMarker'](_0x48464e,_0x4d9e98['markerName']),_0x1e97c3&&(this['activeMarkers']['includes'](_0x4d9e98['markerName'])?_0x3d4ef0['writer']['addClass']('ck-suggestion-marker--active',_0x48464e):_0x3d4ef0['writer']['removeClass']('ck-suggestion-marker--active',_0x48464e));for(const _0x30beb1 of _0xb2b9ab['model']['createRangeIn'](_0x4d9e98['item'])['getItems']())_0x3d4ef0['consumable']['consume'](_0x30beb1,_0x24151e['name']);_0x3d4ef0['consumable']['consume'](_0x4d9e98['item'],_0x24151e['name']);}};_0xb2b9ab['conversion']['for']('dataDowncast')['add'](_0x3f2ec3=>{_0x3f2ec3['on']('addMarker:suggestion:formatBlock',(_0x213c9f,_0x1433c3,_0x419abb)=>{_0x419abb['options']['showSuggestionHighlights']&&_0x56b131({'showActiveMarkers':!0x1})(_0x213c9f,_0x1433c3,_0x419abb);},{'priority':'highest'});}),_0xb2b9ab['conversion']['for']('dataDowncast')['add'](_0x56b2c4=>{_0x56b2c4['on']('addMarker:suggestion:attribute',(_0x44e679,_0xb1472b,_0x196173)=>{_0x196173['options']['showSuggestionHighlights']&&_0x56b131({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x44e679,_0xb1472b,_0x196173);},{'priority':'highest'});}),_0xb2b9ab['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xf7723c,_0x127f95)=>{if(_0x127f95['options']['showSuggestionHighlights']){const {id:_0x10a2c7,authorId:_0x42bf9d}=this['_splitMarkerName'](_0xf7723c);return _0xf7723c['includes'](':split')||_0xf7723c['includes'](':merge')?{'group':'suggestion','name':_0xf7723c['substr'](0xb),'attributes':{'data-suggestion':_0x10a2c7,'data-author-id':_0x42bf9d}}:null;}return{'group':'suggestion','name':_0xf7723c['substr'](0xb)};}}),_0xb2b9ab['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x443a1f,{writer:_0x57589c})=>{let _0x3860fd='suggestion:'+_0x443a1f['getAttribute']('suggestion-type')+':'+_0x443a1f['getAttribute']('id');return _0x443a1f['getAttribute']('marker-count')&&(_0x3860fd+=':'+_0x443a1f['getAttribute']('marker-count')),_0x57589c['createElement']('$marker',{'data-name':_0x3860fd});}}),_0xb2b9ab['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xb2b9ab['conversion']['for']('editingDowncast')['add'](_0x2bd42e=>{_0x2bd42e['on']('addMarker:suggestion:formatBlock',_0x56b131(),{'priority':'high'});}),_0xb2b9ab['conversion']['for']('editingDowncast')['add'](_0x45715a=>{_0x45715a['on']('addMarker:suggestion:attribute',_0x56b131({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xb2b9ab['conversion']['for']('editingDowncast')['add'](_0x58e2dd=>{_0x58e2dd['on']('removeMarker:suggestion:formatBlock',(_0x2eebd7,_0x2dd636,_0x466e1a)=>{const _0x4733d9=_0x466e1a['mapper']['markerNameToElements'](_0x2dd636['markerName']);if(_0x4733d9){for(const _0x3c1349 of _0x4733d9)_0x3c1349['getCustomProperty']('addHighlight')||(_0x466e1a['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3c1349),_0x466e1a['writer']['removeAttribute']('data-suggestion',_0x3c1349),_0x466e1a['writer']['removeAttribute']('data-author-id',_0x3c1349),_0x466e1a['mapper']['unbindElementFromMarkerName'](_0x3c1349,_0x2dd636['markerName']));}},{'priority':'high'});}),_0xb2b9ab['conversion']['for']('editingDowncast')['add'](_0x25be57=>{_0x25be57['on']('removeMarker:suggestion:attribute',(_0x1cc7ec,_0x536d9e,_0x610608)=>{const _0x70e9da=_0x610608['mapper']['markerNameToElements'](_0x536d9e['markerName']);if(!_0x70e9da)return;const {subType:_0x111793}=this['_splitMarkerName'](_0x536d9e['markerName']),_0x2c70ae=ae(_0x111793);if(this['_isBlockAttribute'](_0x2c70ae)){for(const _0x2b5255 of _0x70e9da)_0x2b5255['getCustomProperty']('addHighlight')||(_0x610608['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2b5255),_0x610608['writer']['removeAttribute']('data-suggestion',_0x2b5255),_0x610608['writer']['removeAttribute']('data-author-id',_0x2b5255),_0x610608['mapper']['unbindElementFromMarkerName'](_0x2b5255,_0x536d9e['markerName']));}},{'priority':'high'});}),_0xb2b9ab['model']['document']['registerPostFixer'](_0x37a908=>{let _0x1be8b3=!0x1;const _0x5ea116=Array['from'](_0xb2b9ab['model']['document']['differ']['getChangedMarkers']()),_0x4affb3=new Set();for(const {name:_0x35069e,data:_0x2e820d}of _0x5ea116){const {group:_0x94e97f,type:_0x2e7001,subType:_0x5c882e,id:_0x333a95}=this['_splitMarkerName'](_0x35069e);if('suggestion'!==_0x94e97f)continue;const _0x38fecb=_0x5c882e?'suggestion:'+_0x2e7001+':'+_0x5c882e+':'+_0x333a95:'suggestion:'+_0x2e7001+':'+_0x333a95,_0x59e55c=_0xb2b9ab['model']['markers']['getMarkersGroup'](_0x38fecb),_0x2574c8=_0xb2b9ab['model']['markers']['get'](_0x35069e),_0x33fc6e=this['_suggestions']['get'](_0x333a95);if(null!=_0x2e820d['newRange']){'formatInline'==_0x2e7001&&(_0x1be8b3=_0x1be8b3||zt(_0x2e820d['newRange'],_0x35069e,_0x37a908,_0xb2b9ab['model']['schema']));const _0x36a485='attribute'==_0x2e7001&&this['_isBlockAttribute'](_0x5c882e['split']('|')[0x0]),_0x5667f0='attribute'==_0x2e7001&&this['_isInlineAttribute'](_0x5c882e['split']('|')[0x0]);if(_0x2e820d['newRange']['isCollapsed']||'$graveyard'==_0x2e820d['newRange']['root']['rootName']||'formatBlock'==_0x2e7001&&!Xt(_0x2e820d['newRange'])||_0x36a485&&!Xt(_0x2e820d['newRange'])||_0x5667f0&&Yt(_0x2e820d['newRange'])||'deletion'==_0x2e7001&&Yt(_0x2e820d['newRange'])||_0x2574c8&&Zt(_0x2574c8,_0x59e55c))_0x37a908['removeMarker'](_0x35069e),_0x1be8b3=!0x0;else{if(!_0x33fc6e||!_0x33fc6e['isInContent'])continue;if(_0x2e820d['newRange']&&_0x2e820d['oldRange']&&_0x2e820d['newRange']['isEqual'](_0x2e820d['oldRange']))continue;_0x4affb3['add'](_0x33fc6e);}}}return _0x4affb3['size']>0x0&&(_0x1be8b3=!!this['_joinWithAdjacentSuggestions'](_0x4affb3)||_0x1be8b3),_0x1be8b3;}),_0xb2b9ab['model']['document']['registerPostFixer'](_0x546802=>{let _0x188b6a=!0x1;for(const _0x5ad8ce of _0xb2b9ab['model']['document']['differ']['getChanges']())if('insert'==_0x5ad8ce['type'])for(const _0x53d988 of this['_suggestions']['values']()){if(_0x53d988['isMultiRange']||!_0x53d988['isInContent'])continue;const _0xd60e1a='formatBlock'==_0x53d988['type'],_0xd71420=this['_getAttributeKey'](_0x53d988),_0x4c9da0=_0xd71420&&this['_isBlockAttribute'](_0xd71420);if(!_0xd60e1a&&!_0x4c9da0)continue;const _0x526b81=_0x53d988['getFirstRange']();if(_0x526b81['start']['parent']!=_0x526b81['end']['parent']&&!_0x526b81['end']['isAtEnd']){const _0x53a481=_0xb2b9ab['model']['createPositionAt'](_0x526b81['start']['nodeAfter'],'end'),_0x2acee5=_0xb2b9ab['model']['createRange'](_0x526b81['start'],_0x53a481);_0x546802['updateMarker'](_0x53d988['getFirstMarker'](),{'range':_0x2acee5}),_0x188b6a=!0x0;}}return _0x188b6a;}),_0xb2b9ab['model']['document']['registerPostFixer'](_0x57a5bc=>this['_processAttributeChanges'](_0x57a5bc)),_0xb2b9ab['model']['document']['registerPostFixer'](_0x1245c2=>!_0x1245c2['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1245c2)),_0xb2b9ab['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xb2b9ab['model']['document']['on']('change:data',(_0x26de66,_0xe0bd7e)=>{if(!_0xe0bd7e['isLocal']||_0xe0bd7e['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3fce77=_0xb2b9ab['model']['document']['differ']['getChanges']();if(0x0==_0x3fce77['length'])return;const _0x14008e=[],_0xde37c=_0x3fce77['filter'](_0x243088=>'attribute'==_0x243088['type']),_0x2b1f77=_0x3fce77['filter'](_0xb6c083=>'insert'==_0xb6c083['type']&&'$text'!=_0xb6c083['name']);for(const _0x30741a of _0xde37c)this['_isRegisteredAttribute'](_0x30741a['attributeKey'])&&_0x14008e['push']({'key':_0x30741a['attributeKey'],'newValue':_0x30741a['attributeNewValue'],'oldValue':_0x30741a['attributeOldValue'],'range':ee(_0x30741a['range'],_0xb2b9ab['model'])});for(const _0x47ab96 of _0x2b1f77){if('rename'!=_0x47ab96['action']&&'refresh'!=_0x47ab96['action'])continue;const _0x1a05b9=ie(_0x47ab96['position']['nodeAfter'],_0xb2b9ab['model']),_0x1557e8=_0x47ab96['before'];'rename'==_0x47ab96['action']&&_0x14008e['push']({'key':m,'newValue':_0x47ab96['name'],'oldValue':_0x1557e8['name'],'range':_0x1a05b9});for(const [_0x306939,_0x4426fc]of _0x1557e8['attributes']){if(!this['_isRegisteredAttribute'](_0x306939))continue;const _0x4211ce=_0x47ab96['attributes']['get'](_0x306939);_0x4426fc!==_0x4211ce&&_0x14008e['push']({'key':_0x306939,'newValue':_0x4211ce,'oldValue':_0x4426fc,'range':_0x1a05b9});}for(const [_0x295126,_0x4a6158]of _0x47ab96['attributes'])this['_isRegisteredAttribute'](_0x295126)&&(_0x1557e8['attributes']['has'](_0x295126)||_0x14008e['push']({'key':_0x295126,'newValue':_0x4a6158,'oldValue':null,'range':_0x1a05b9}));}0x0!=_0x14008e['length']&&_0xb2b9ab['model']['enqueueChange'](_0xe0bd7e,_0x40f98a=>{const _0x466134=_0x3caa75();for(const {range:_0x2fcc84,key:_0x33c1c6,oldValue:_0x65f389,newValue:_0x549465}of _0x14008e)this['markAttributeChange'](_0x2fcc84,_0x33c1c6,_0x65f389,_0x549465,{'groupId':_0x466134});this['_reduceExistingSuggestions'](_0x40f98a,_0x14008e);});},{'priority':'lowest'}),_0xb2b9ab['model']['markers']['on']('update:suggestion',(_0x528d99,_0x1d60dc,_0x14b25b)=>{if(null==_0x14b25b){const {id:_0x2f346e}=this['_splitMarkerName'](_0x1d60dc['name']),_0x1d199c=this['_suggestions']['get'](_0x2f346e);_0x1d199c&&_0x1d199c['addMarkerName'](_0x1d60dc['name']);}}),_0xb2b9ab['model']['document']['on']('change:data',()=>{const _0x96724=Array['from'](_0xb2b9ab['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1eb9db=>'suggestion'===this['_splitMarkerName'](_0x1eb9db['name'])['group']);if(0x0===_0x96724['length'])return;_0x96724['sort']((_0x4c9195,_0x57c37c)=>{const _0x98243b=_0x4c9195['data']['oldRange'],_0x4853e5=_0x57c37c['data']['oldRange'];return null===_0x98243b&&null===_0x4853e5?0x0:null===_0x98243b&&null!==_0x4853e5?-0x1:null!==_0x98243b&&null===_0x4853e5?0x1:_0x98243b['start']['isBefore'](_0x4853e5['start'])?-0x1:0x1;});const _0x4325ee=new Set(),_0x57a9f2=new Set();for(const {name:_0x299b2d,data:_0x20510f}of _0x96724){const {id:_0x3eacbb}=this['_splitMarkerName'](_0x299b2d);if(null===_0x20510f['oldRange']){const _0x345133=this['_handleNewSuggestionMarker'](_0x299b2d);_0x57a9f2['add'](_0x345133);}else{const _0x5ab13c=this['_suggestions']['get'](_0x3eacbb);null!==_0x20510f['newRange']||_0x5ab13c['isInContent']?(_0x4325ee['add'](_0x5ab13c['head']),_0x57a9f2['add'](_0x5ab13c)):this['_removeSuggestion'](_0x5ab13c);}}_0x57a9f2['size']>0x0&&this['_refreshSuggestionsChain'](_0x57a9f2);for(const _0x5c6bd6 of _0x4325ee)this['fire']('suggestionChanged',_0x5c6bd6);}),_0xb2b9ab['model']['on']('applyOperation',(_0x1ce414,_0x5d50c2)=>{const _0x5e1db3=_0x5d50c2[0x0];if(!this['_suggestions']['size'])return;if(!_0x5e1db3['isDocumentOperation'])return;if(_0x5e1db3['batch']['isUndo']||!_0x5e1db3['batch']['isLocal'])return;let _0x15ca96,_0x478080;switch(_0x5e1db3['type']){case'insert':_0x15ca96=_0xb2b9ab['model']['createPositionAt'](_0x5e1db3['position']),_0x478080=_0x15ca96['getShiftedBy'](_0x5e1db3['howMany']);break;case'split':_0x15ca96=_0xb2b9ab['model']['createPositionAt'](_0x5e1db3['splitPosition']),_0x478080=_0xb2b9ab['model']['createPositionAt'](_0x5e1db3['moveTargetPosition']);break;case'move':_0x15ca96=_0xb2b9ab['model']['createPositionAt'](_0x5e1db3['targetPosition']),_0x478080=_0x15ca96['getShiftedBy'](_0x5e1db3['howMany']);break;default:return;}const _0x28c48c=_0xb2b9ab['model']['createRange'](_0x15ca96,_0x478080);_0xb2b9ab['model']['change'](()=>{for(const {suggestion:_0x343a63,meta:_0x838e57}of this['_findSuggestions'](_0x28c48c)){if(_0x343a63['isMultiRange'])continue;if('formatInline'==_0x343a63['type'])continue;const _0x58852e=this['_getAttributeKey'](_0x343a63);if(_0x58852e&&this['_isBlockAttribute'](_0x58852e)&&'split'!=_0x5e1db3['type'])continue;const _0x3c15c3=_0x343a63['data']&&_0x343a63['data']['multipleBlocks'];('formatBlock'!=_0x343a63['type']||'split'==_0x5e1db3['type']&&!_0x3c15c3)&&(_0x838e57['containsRangeInObject']||'insertion'==_0x343a63['type']&&_0x838e57['isOwn']||_0x343a63['getFirstRange']()['containsRange'](_0x28c48c)&&this['_breakSuggestionMarker'](_0x343a63,_0x15ca96,_0x478080));}});},{'priority':'lowest'}),_0xb2b9ab['model']['on']('deleteContent',(_0x1e1a85,_0xd848d3)=>{const _0x288f8c=_0xd848d3[0x0],_0x4a055c=_0xd848d3[0x1];if(_0x4a055c&&_0x4a055c['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x288f8c['isCollapsed'])return;const _0x206bbf=_0xb2b9ab['model']['schema'],{start:_0x40eabd,end:_0x17ee01}=_0x288f8c['getFirstRange'](),_0xd6fa68=_0x40eabd['nodeAfter']&&_0x206bbf['isLimit'](_0x40eabd['nodeAfter'])?null:_0x206bbf['getNearestSelectionRange'](_0x40eabd,'forward'),_0x1c14cf=_0x17ee01['nodeBefore']&&_0x206bbf['isLimit'](_0x17ee01['nodeBefore'])?null:_0x206bbf['getNearestSelectionRange'](_0x17ee01,'backward'),_0x35a388=_0xb2b9ab['model']['createRange'](_0xd6fa68?_0xd6fa68['start']:_0x40eabd,_0x1c14cf?_0x1c14cf['end']:_0x17ee01);_0xb2b9ab['model']['change'](_0x2651b8=>{this['markDeletion'](_0x35a388);const _0x401357=_0xb2b9ab['model']['schema']['getNearestSelectionRange'](_0x35a388['start']);_0x288f8c['is']('documentSelection')?_0x2651b8['setSelection'](_0x401357):_0x288f8c['setTo'](_0x401357);}),_0x1e1a85['stop']();},{'priority':_0x35714c['normal']+0xa}),_0xb2b9ab['model']['on']('insertContent',(_0x24dc92,_0x27a600)=>{const _0x101d59=_0x27a600[_0x27a600['length']-0x1];_0x101d59&&_0x101d59['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xb2b9ab['model']['change'](()=>{let _0x1d7cbc=_0xb2b9ab['model']['insertContent'](_0x27a600[0x0],_0x27a600[0x1],_0x27a600[0x2],{'forceDefaultExecution':!0x0});if(!_0x1d7cbc)return;_0x24dc92['return']=_0x1d7cbc['clone']();const _0x4773ed=_0x1d7cbc['end']['nodeBefore'],_0x340e17=_0xb2b9ab['model']['schema'];_0x4773ed&&_0x340e17['isBlock'](_0x4773ed)&&!_0x340e17['isObject'](_0x4773ed)&&(_0x1d7cbc=_0xb2b9ab['model']['createRange'](_0x1d7cbc['start'],_0xb2b9ab['model']['createPositionAt'](_0x4773ed,'end'))),this['markInsertion'](_0x1d7cbc);}),_0x24dc92['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2c8892=new T(_0xb2b9ab,this['_suggestions']);_0xb2b9ab['commands']['add']('acceptSuggestion',_0x2c8892),this['enableCommand']('acceptSuggestion');const _0x99df5f=new O(_0xb2b9ab,this['_suggestions']);_0xb2b9ab['commands']['add']('discardSuggestion',_0x99df5f),this['enableCommand']('discardSuggestion'),_0xb2b9ab['commands']['add']('acceptAllSuggestions',new x(_0xb2b9ab,_0x2c8892,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xb2b9ab['commands']['add']('discardAllSuggestions',new x(_0xb2b9ab,_0x99df5f,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xb2b9ab['commands']['add']('acceptSelectedSuggestions',new E(_0xb2b9ab,_0x2c8892,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xb2b9ab['commands']['add']('discardSelectedSuggestions',new E(_0xb2b9ab,_0x99df5f,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1203b0=_0xb2b9ab['plugins']['get']('CommentsRepository');this['listenTo'](_0x1203b0,'addComment',(_0x2a4e4b,{threadId:_0x24608e})=>{const _0x36680a=this['_suggestions']['get'](_0x24608e);_0x36680a&&_0x36680a['commentThread']&&0x1===_0x36680a['commentThread']['length']&&this['_updateSuggestionData'](_0x24608e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1203b0,'removeComment',(_0x69bbe2,{threadId:_0x7332f7})=>{const _0x1c2c2b=this['_suggestions']['get'](_0x7332f7);_0x1c2c2b&&_0x1c2c2b['commentThread']&&!_0x1c2c2b['commentThread']['length']&&this['_updateSuggestionData'](_0x7332f7,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1c688b){const _0x59ca41=_0x3883de([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x1cf16e=0x3d8d0df,_0x7efb68=0x3dfa7ef^_0x1cf16e,_0x3c56c7=window[_0x3883de([0x44,0x61,0x74,0x65])][_0x3883de([0x6e,0x6f,0x77])](),_0x1af10f=_0x1c688b[_0x3883de([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x447189=new window[(_0x3883de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x119f2b=>{_0x1af10f[_0x3883de([0x6f,0x6e,0x63,0x65])](_0x3883de([0x72,0x65,0x61,0x64,0x79]),_0x119f2b);}),_0x5dedad={[_0x3883de([0x6b,0x74,0x79])]:_0x3883de([0x45,0x43]),[_0x3883de([0x75,0x73,0x65])]:_0x3883de([0x73,0x69,0x67]),[_0x3883de([0x63,0x72,0x76])]:_0x3883de([0x50,0x2d,0x32,0x35,0x36]),[_0x3883de([0x78])]:_0x3883de([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x3883de([0x79])]:_0x3883de([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x3883de([0x61,0x6c,0x67])]:_0x3883de([0x45,0x53,0x32,0x35,0x36])},_0x28cdd6=_0x1af10f[_0x3883de([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3883de([0x67,0x65,0x74])](_0x3883de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x445d39(){let _0x163a37,_0x9bbfa7=null,_0x4ef95e=null;try{if(_0x28cdd6==_0x3883de([0x47,0x50,0x4c]))return _0x3883de([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x163a37=_0x2b7d20(),!_0x163a37)return _0x3883de([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x163a37[_0x3883de([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4ef95e=_0xc4ef11(_0x163a37[_0x3883de([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x163a37[_0x3883de([0x6a,0x74,0x69])])),await _0x2bde3a()?_0x2ce1ac()?_0x202c35()?_0x3883de([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4a36c7()?(_0x163a37[_0x3883de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3883de([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x9bbfa7=_0xbf0748(_0x3883de([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x163a37[_0x3883de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3883de([0x74,0x72,0x69,0x61,0x6c])&&(_0x9bbfa7=_0xbf0748(_0x3883de([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2e6951()):_0x3883de([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3883de([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3883de([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3883de([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x202c35(){const _0x25eda9=[_0x3883de([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3883de([0x74,0x72,0x69,0x61,0x6c])][_0x3883de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x163a37[_0x3883de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3c56c7/0x3e8:0xe10*_0x7efb68;return _0x163a37[_0x3883de([0x65,0x78,0x70])]<_0x25eda9;}function _0x2ce1ac(){const _0x18c221=_0x163a37[_0x3883de([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x18c221)return!0x1;if(_0x18c221[_0x3883de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3883de([0x2a])))return!0x0;if(_0x18c221[_0x3883de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3883de([0x54,0x43])))return!0x0;if(_0x18c221[_0x3883de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3883de([0x52,0x54,0x43]))){if(_0x5cefce())return!0x0;if(_0x1a0723()||_0x1560cf())return!0x0;}return!0x1;}function _0x4a36c7(){const _0xe9492e=_0x163a37[_0x3883de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xe9492e||0x0==_0xe9492e[_0x3883de([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x587ae1}=new URL(window[_0x3883de([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xe9492e[_0x3883de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x587ae1))return!0x0;const _0x5946c6=_0x587ae1[_0x3883de([0x73,0x70,0x6c,0x69,0x74])](_0x3883de([0x2e]));return _0xe9492e[_0x3883de([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x114fd8=>_0x114fd8[_0x3883de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3883de([0x2a])))[_0x3883de([0x6d,0x61,0x70])](_0x57c87a=>_0x57c87a[_0x3883de([0x73,0x70,0x6c,0x69,0x74])](_0x3883de([0x2e])))[_0x3883de([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x25aa08=>_0x25aa08[_0x3883de([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5946c6[_0x3883de([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3883de([0x6d,0x61,0x70])](_0x3d6cfd=>Array(_0x5946c6[_0x3883de([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3d6cfd[_0x3883de([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3883de([0x66,0x69,0x6c,0x6c])](_0x3d6cfd[0x0]===_0x3883de([0x2a])?_0x3883de([0x2a]):'')[_0x3883de([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3d6cfd))[_0x3883de([0x73,0x6f,0x6d,0x65])](_0x32c1af=>_0x5946c6[_0x3883de([0x65,0x76,0x65,0x72,0x79])]((_0x59ae53,_0x163618)=>_0x32c1af[_0x163618]===_0x59ae53||_0x32c1af[_0x163618]===_0x3883de([0x2a])));}function _0x2e6951(){return _0x9bbfa7&&_0x4ef95e?new window[(_0x3883de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x58f137,_0x466450)=>{_0x9bbfa7[_0x3883de([0x74,0x68,0x65,0x6e])](_0x58f137,_0x466450),_0x4ef95e[_0x3883de([0x74,0x68,0x65,0x6e])](_0x5692be=>{_0x5692be!=_0x3883de([0x56,0x61,0x6c,0x69,0x64])&&_0x58f137(_0x5692be);},_0x466450);}):_0x9bbfa7||_0x4ef95e||_0x3883de([0x56,0x61,0x6c,0x69,0x64]);}}function _0xc4ef11(_0x5956ad,_0x57ba9a){return new window[(_0x3883de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47d8fe=>{if(_0x475153())return _0x47d8fe(_0x3883de([0x56,0x61,0x6c,0x69,0x64]));_0xe3f81f(),_0x1af10f[_0x3883de([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3883de([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1dbf5a=!0x1;const _0x436740=_0x3caa75();function _0x42b2db(_0x162493){return!!_0x162493&&(typeof _0x162493===_0x3883de([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x162493===_0x3883de([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x162493[_0x3883de([0x74,0x68,0x65,0x6e])]===_0x3883de([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x162493[_0x3883de([0x63,0x61,0x74,0x63,0x68])]===_0x3883de([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2dbd5e(_0x55729e){_0x4b18c3(_0x55729e)[_0x3883de([0x74,0x68,0x65,0x6e])](_0x728a1e=>{if(!_0x728a1e||_0x728a1e[_0x3883de([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3883de([0x6f,0x6b]))return _0x3883de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x597074(_0x1ad3d4(_0x436740+_0x57ba9a))!=_0x728a1e[_0x3883de([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3883de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3883de([0x56,0x61,0x6c,0x69,0x64]);})[_0x3883de([0x74,0x68,0x65,0x6e])](_0x53b19b=>(_0x40a23c(),_0x53b19b),()=>{const _0x213f4b=_0x27645e();return null==_0x213f4b?(_0x40a23c(),_0x3883de([0x56,0x61,0x6c,0x69,0x64])):_0x3883de(_0x3c56c7-_0x213f4b>(0x27d454df^_0x1cf16e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3883de([0x74,0x68,0x65,0x6e])](_0x47d8fe)[_0x3883de([0x63,0x61,0x74,0x63,0x68])](()=>{_0x47d8fe(_0x3883de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1ec72a=0x3ee3e5f^_0x1cf16e;function _0x40a23c(){const _0x1b4154=_0x3883de([0x6c,0x6c,0x63,0x74,0x2d])+_0x597074(_0x1ad3d4(_0x5956ad)),_0x211684=_0x304f37(_0x597074(window[_0x3883de([0x4d,0x61,0x74,0x68])][_0x3883de([0x63,0x65,0x69,0x6c])](_0x3c56c7/_0x1ec72a)));window[_0x3883de([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3883de([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b4154,_0x211684);}function _0x27645e(){const _0x1ecfef=_0x3883de([0x6c,0x6c,0x63,0x74,0x2d])+_0x597074(_0x1ad3d4(_0x5956ad)),_0x478587=window[_0x3883de([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3883de([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ecfef);return _0x478587?window[_0x3883de([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x304f37(_0x478587),0x10)*_0x1ec72a:null;}function _0x4b18c3(_0x2511b1){return new window[(_0x3883de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x46414a,_0x411bad)=>{_0x2511b1[_0x3883de([0x74,0x68,0x65,0x6e])](_0x46414a,_0x411bad),window[_0x3883de([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x411bad,0x3d9041f^_0x1cf16e);});}}_0x1af10f[_0x3883de([0x6f,0x6e])](_0x3883de([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1ad7a0,_0x41471c)=>{if(_0x41471c[0x0]!=_0x5956ad)return _0x47d8fe(_0x3883de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x41471c[0x1]={..._0x41471c[0x1],[_0x3883de([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x436740};},{[_0x3883de([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3883de([0x68,0x69,0x67,0x68])}),_0x1af10f[_0x3883de([0x6f,0x6e])](_0x3883de([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x347f75=>{_0x42b2db(_0x347f75[_0x3883de([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1dbf5a=!0x0,_0x2dbd5e(_0x347f75[_0x3883de([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3883de([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3883de([0x6c,0x6f,0x77])}),_0x447189[_0x3883de([0x74,0x68,0x65,0x6e])](()=>{_0x1dbf5a||_0x47d8fe(_0x3883de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x475153(){return _0x1af10f[_0x3883de([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3883de([0x76,0x69,0x65,0x77])][_0x3883de([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3883de([0x61,0x75,0x74,0x6f]);}function _0xe3f81f(){_0x1af10f[_0x3883de([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3883de([0x76,0x69,0x65,0x77])][_0x3883de([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3883de([0x61,0x75,0x74,0x6f]);}}function _0xbf0748(_0xa1ec1f){const _0x4db04d=[new window[(_0x3883de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ff300=>setTimeout(_0x1ff300,0x3d1ee13^_0x1cf16e)),_0x447189[_0x3883de([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3883de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x400b51=>{let _0x1089ae=0x0;_0x1af10f[_0x3883de([0x6d,0x6f,0x64,0x65,0x6c])][_0x3883de([0x6f,0x6e])](_0x3883de([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4a5de4,_0x7f9117)=>{_0x7f9117[0x0][_0x3883de([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1089ae++,_0x1089ae==(0x3d8d127^_0x1cf16e)&&(_0x400b51(),_0x4a5de4[_0x3883de([0x6f,0x66,0x66])]());});}))];return window[_0x3883de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3883de([0x72,0x61,0x63,0x65])](_0x4db04d)[_0x3883de([0x74,0x68,0x65,0x6e])](()=>_0xa1ec1f);}async function _0x10c163(){await _0x447189,_0x1af10f[_0x3883de([0x6d,0x6f,0x64,0x65,0x6c])][_0x3883de([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3843ed,_0x1af10f[_0x3883de([0x6d,0x6f,0x64,0x65,0x6c])][_0x3883de([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3843ed,_0x1af10f[_0x3883de([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3883de([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5cefce(){return _0x55df99(_0x3883de([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x491485(_0x3883de([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3883de([0x73,0x74,0x61,0x74,0x65])]==_0x3883de([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1a0723(){return _0x55df99(_0x3883de([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x1560cf(){return _0x55df99(_0x3883de([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2f7d81(_0x5635ff){const _0x87e533=_0x4bd97e();_0x1af10f[_0x87e533]=_0x3883de([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5635ff,_0x5635ff!=_0x3883de([0x56,0x61,0x6c,0x69,0x64])&&_0x10c163();}function _0x4bd97e(){const _0x4f66c9=window[_0x3883de([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3883de([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3883de([0x6e,0x6f,0x77])]())[_0x3883de([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3883de([0x2e]),'');let _0x574bb0=_0x3883de([0x52]);for(let _0x5bc80b=0x0;_0x5bc80b<_0x4f66c9[_0x3883de([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5bc80b+=0x2){let _0x2d0764=window[_0x3883de([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f66c9[_0x3883de([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5bc80b,_0x5bc80b+0x2));_0x2d0764>=_0x59ca41[_0x3883de([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2d0764-=_0x59ca41[_0x3883de([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x574bb0+=_0x59ca41[_0x2d0764];}return _0x574bb0;}function _0x2b7d20(){const _0x25adad=_0x28cdd6[_0x3883de([0x73,0x70,0x6c,0x69,0x74])](_0x3883de([0x2e]));if(0x3!=_0x25adad[_0x3883de([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x58015e(_0x25adad[0x1]);function _0x58015e(_0x464756){const _0x325111=_0x1a1583(_0x464756);return _0x325111&&_0x2545a2()?_0x325111:null;function _0x2545a2(){const _0x23c53b=_0x325111[_0x3883de([0x6a,0x74,0x69])],_0x1315d9=window[_0x3883de([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23c53b[_0x3883de([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23c53b[_0x3883de([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3559c6={..._0x325111,[_0x3883de([0x6a,0x74,0x69])]:_0x23c53b[_0x3883de([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x23c53b[_0x3883de([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3559c6[_0x3883de([0x76,0x63])],_0x1ad3d4(_0x3559c6)==_0x1315d9;}}}async function _0x2bde3a(){let _0x5621a8=!0x0;try{const _0x41a7ca=_0x28cdd6[_0x3883de([0x73,0x70,0x6c,0x69,0x74])](_0x3883de([0x2e])),[_0x22d199,_0xaa9dbb,_0x3c1d7a]=_0x41a7ca;return _0x49a729(_0x22d199),await _0x14b4b6(_0x22d199,_0xaa9dbb,_0x3c1d7a),_0x5621a8;}catch{return!0x1;}function _0x49a729(_0x203cca){const _0x2b89c6=_0x1a1583(_0x203cca);_0x2b89c6&&_0x2b89c6[_0x3883de([0x61,0x6c,0x67])]==_0x3883de([0x45,0x53,0x32,0x35,0x36])||(_0x5621a8=!0x1);}async function _0x14b4b6(_0x55c5f4,_0x34faa5,_0x53e695){const _0x4e5e1b=window[_0x3883de([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3883de([0x66,0x72,0x6f,0x6d])](_0x5af06a(_0x53e695),_0x2ce53d=>_0x2ce53d[_0x3883de([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2de572=new window[(_0x3883de([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3883de([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x55c5f4+_0x3883de([0x2e])+_0x34faa5),_0x16dd25=window[_0x3883de([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3883de([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x16dd25)return;const _0x3db2be=await _0x16dd25[_0x3883de([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3883de([0x6a,0x77,0x6b]),_0x5dedad,{[_0x3883de([0x6e,0x61,0x6d,0x65])]:_0x3883de([0x45,0x43,0x44,0x53,0x41]),[_0x3883de([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3883de([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3883de([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x16dd25[_0x3883de([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3883de([0x6e,0x61,0x6d,0x65])]:_0x3883de([0x45,0x43,0x44,0x53,0x41]),[_0x3883de([0x68,0x61,0x73,0x68])]:{[_0x3883de([0x6e,0x61,0x6d,0x65])]:_0x3883de([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3db2be,_0x4e5e1b,_0x2de572)||(_0x5621a8=!0x1);}}function _0x1a1583(_0x224cd1){return _0x224cd1[_0x3883de([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3883de([0x65,0x79]))?JSON[_0x3883de([0x70,0x61,0x72,0x73,0x65])](_0x5af06a(_0x224cd1)):null;}function _0x5af06a(_0x6fbefd){return window[_0x3883de([0x61,0x74,0x6f,0x62])](_0x6fbefd[_0x3883de([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3883de([0x2b]))[_0x3883de([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3883de([0x2f])));}function _0x1ad3d4(_0x3a124e){let _0x4c7144=0x1505;function _0x2a2624(_0x44f858){for(let _0x130523=0x0;_0x130523<_0x44f858[_0x3883de([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x130523++){const _0x545a4d=_0x44f858[_0x3883de([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x130523);_0x4c7144=(_0x4c7144<<0x5)+_0x4c7144+_0x545a4d,_0x4c7144&=_0x4c7144;}}function _0x1c4cf9(_0x4bd410){Array[_0x3883de([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4bd410)?_0x4bd410[_0x3883de([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1c4cf9):_0x4bd410&&typeof _0x4bd410==_0x3883de([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3883de([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4bd410)[_0x3883de([0x73,0x6f,0x72,0x74])]()[_0x3883de([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1e522d,_0x5640ef])=>{_0x2a2624(_0x1e522d),_0x1c4cf9(_0x5640ef);}):_0x2a2624(window[_0x3883de([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4bd410));}return _0x1c4cf9(_0x3a124e),_0x4c7144>>>0x0;}function _0x597074(_0xb1dcad){return _0xb1dcad[_0x3883de([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3883de([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3883de([0x30]));}function _0x304f37(_0x50771d){return _0x50771d[_0x3883de([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3883de([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3883de([0x6a,0x6f,0x69,0x6e])]('');}function _0x55df99(_0x210d3b){return _0x1af10f[_0x3883de([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3883de([0x68,0x61,0x73])](_0x210d3b);}function _0x491485(_0x384caf){return _0x1af10f[_0x3883de([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3883de([0x67,0x65,0x74])](_0x384caf);}function _0x3843ed(){}function _0x3883de(_0x3d3566){return _0x3d3566['map'](_0x27a850=>String['fromCharCode'](_0x27a850))['join']('');}_0x2f7d81(await _0x445d39());}(this);}set['adapter'](_0x47fcd5){if(this['_adapter'])throw new _0x5a4829('track-changes-adapter-already-set',this);this['_adapter']=_0x47fcd5;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3de594=!0x1,toJSON:_0x3dacae=!0x1}={}){const _0x491957=[];for(const _0x16e08a of this['_suggestions']['values']())_0x3de594&&!_0x16e08a['isInContent']||_0x491957['push'](_0x16e08a);return _0x3dacae?_0x491957['map'](_0x2d4768=>_0x2d4768['toJSON']()):_0x491957;}['getSuggestion'](_0x126591){const _0x5a3ca5=this['_suggestions']['get'](_0x126591);if(!_0x5a3ca5)throw new _0x5a4829('track-changes-suggestion-not-found',this);return _0x5a3ca5;}['hasSuggestion'](_0xd22c54){return this['_suggestions']['has'](_0xd22c54);}['addSuggestionData'](_0x7ab547){const {authorId:_0x24f46b,id:_0x500dc4,originalSuggestionId:_0x1f4abd,attributes:_0x267a91}=_0x7ab547,[_0x27e0cd,_0x5ba7f2]=_0x7ab547['type']['split'](':'),_0x4564a3=this['_suggestions']['get'](_0x500dc4)||this['_createSuggestion'](_0x27e0cd,_0x5ba7f2,_0x500dc4,_0x24f46b,_0x267a91,_0x1f4abd);if(this['_addThreadToSuggestion'](_0x4564a3),this['_checkSuggestionCorrectness'](_0x4564a3,_0x27e0cd,_0x5ba7f2||null,_0x24f46b),_0x4564a3['createdAt']=_0x7ab547['createdAt'],_0x4564a3['_isDataLoaded']=!0x0,_0x267a91&&_0x267a91['@external']){const _0x4356ae=_0x267a91['@external'],_0x5af7f1=this['_getExternalAuthor'](_0x4356ae['authorName']);_0x4564a3['authoredAt']=_0x4356ae['createdAt'],_0x4564a3['author']=_0x5af7f1,_0x4564a3['isExternal']=!0x0;}else _0x4564a3['authoredAt']=_0x7ab547['createdAt'];switch(_0x7ab547['data']&&(_0x4564a3['data']=_0x7ab547['data']),_0x7ab547['attributes']&&(_0x4564a3['attributes']=_0x7ab547['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4564a3['_saved']=!0x0),this['_suggestionState']['get'](_0x4564a3)){case'notReady':this['_suggestionState']['set'](_0x4564a3,'dataReady');break;case'markerReady':_0x4564a3['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4564a3])),this['_refreshSuggestionsChain'](new Set([_0x4564a3])),this['_suggestionState']['set'](_0x4564a3,'ready'),this['fire']('suggestionLoaded',_0x4564a3)):this['_suggestionState']['set'](_0x4564a3,'removed');}return _0x4564a3;}['acceptSuggestion'](_0x3e6a74){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1adfc2 of _0x3e6a74['getAllAdjacentSuggestions']())_0x1adfc2['accept']();});});}['discardSuggestion'](_0x1ef7b8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x336e70 of _0x1ef7b8['getAllAdjacentSuggestions']())_0x336e70['discard']();});});}['enableCommand'](_0x1e1582,_0x451459){const _0x198d15=this['editor']['commands']['get'](_0x1e1582);if(!_0x198d15)throw new _0x5a4829('track-changes-command-not-found',this,{'commandName':_0x1e1582});if(this['_enabledCommands']['has'](_0x198d15))throw new _0x5a4829('track-changes-enable-command-twice',this,{'commandName':_0x1e1582});this['_enabledCommands']['add'](_0x198d15),_0x451459&&_0x198d15['on']('execute',(_0x48006a,_0x5bc8fa)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5bc8fa['length']>0x0&&_0x5bc8fa[_0x5bc8fa['length']-0x1]&&_0x5bc8fa[_0x5bc8fa['length']-0x1]['forceDefaultExecution']?_0x5bc8fa['pop']():(_0x48006a['return']=_0x451459((..._0x35c156)=>_0x198d15['execute'](..._0x35c156,{'forceDefaultExecution':!0x0}),..._0x5bc8fa),_0x48006a['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xc2c14b){let _0xc96a42,_0x5c1460;const _0x4f9e19=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xc96a42=_0xc2c14b();}catch(_0x61c3fb){_0x5c1460=_0x61c3fb;}return _0x4f9e19||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5c1460&&_0x5a4829['rethrowUnexpectedError'](_0x5c1460,this),_0xc96a42;}['markInsertion'](_0x3e28af,_0x5db758=null,_0x3493b1={}){if(_0x3e28af['isCollapsed'])return null;const _0x1e886e=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3493b1['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5c2eaa,meta:_0x583bf0}of this['_findSuggestions'](_0x3e28af,'insertion'))if(_0x583bf0['isOwn']){if(!_0x583bf0['isNextTo']){if(_0x583bf0['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!oe(_0x5c2eaa,_0x3493b1))continue;return _0x5c2eaa;}if(oe(_0x5c2eaa,_0x3493b1))return _0x5c2eaa;this['_breakSuggestionMarker'](_0x5c2eaa,_0x3e28af['start'],_0x3e28af['end']);break;}if(_0x5db758==_0x5c2eaa['subType']&&oe(_0x5c2eaa,_0x3493b1)){const _0x43d22d=_0x5c2eaa['getFirstRange']();return _0x43d22d['start']['isEqual'](_0x3e28af['end'])?this['_setSuggestionRange'](_0x5c2eaa,this['_model']['createRange'](_0x3e28af['start'],_0x43d22d['end'])):this['_setSuggestionRange'](_0x5c2eaa,this['_model']['createRange'](_0x43d22d['start'],_0x3e28af['end'])),_0x5c2eaa;}}const _0x3933cd=_0x3caa75(),_0x39bfd5=_0x1e886e['id'],_0xe00286=_0x5db758?'insertion:'+_0x5db758:'insertion',_0x197382=this['_setSuggestionData']({'id':_0x3933cd,'type':_0xe00286,'createdAt':new Date(),'authorId':_0x39bfd5,'attributes':_0x3493b1});return this['_addSuggestionMarker'](_0xe00286,_0x3933cd,_0x39bfd5,_0x3e28af),_0x197382;}['markMultiRangeInsertion'](_0x3cfb00,_0x4d6e04='multi',_0x178159={}){const _0x10418f=this['editor']['plugins']['get']('Users')['me'],_0x2aa5d0=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4d6e04,'join');this['_trackingSessionId']&&(_0x178159['trackingSessionId']=this['_trackingSessionId']);for(const _0x19d6b2 of this['getSuggestions']())if(_0x19d6b2['author']['id']==_0x10418f['id']&&'insertion'==_0x19d6b2['type']&&_0x19d6b2['subType']==_0x4d6e04&&oe(_0x19d6b2,_0x178159)&&(_0x2aa5d0(_0x19d6b2['getRanges'](),_0x3cfb00)||_0x2aa5d0(_0x3cfb00,_0x19d6b2['getRanges']()))){for(const _0x579c22 of _0x3cfb00)_0x19d6b2['addRange'](_0x579c22);return _0x19d6b2;}for(const {suggestion:_0x324cbe,meta:_0x23c346}of this['_findSuggestions'](_0x3cfb00,'insertion')){if(!_0x23c346['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x23c346['containsRangeInObject'])continue;if(!oe(_0x324cbe,_0x178159))continue;let _0x16897c=!0x0;for(const _0x2231d3 of _0x324cbe['getRanges']())for(const _0x1899f0 of _0x3cfb00)if(!_0x2231d3['containsRange'](_0x1899f0)){_0x16897c=!0x1;break;}if(_0x16897c)return _0x324cbe;}const _0x499ced=_0x3caa75(),_0x41b44b=_0x10418f['id'],_0x53a215='insertion:'+_0x4d6e04,_0x2fe202=this['_setSuggestionData']({'id':_0x499ced,'type':_0x53a215,'createdAt':new Date(),'authorId':_0x41b44b,'attributes':_0x178159});for(const _0x5b5652 of _0x3cfb00)this['_addSuggestionMarker'](_0x53a215,_0x499ced,_0x41b44b,_0x5b5652,R['getMultiRangeId']());return _0x2fe202;}['markInlineFormat'](_0xd37d8e,_0x4724d1,_0x5694d0=null,_0x31f661={}){if(_0x5694d0=_0x5694d0||Qt(_0x4724d1),_0xd37d8e['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x31f661['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x52af9f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5694d0,'accept');return this['forceDefaultExecution'](()=>_0x52af9f([_0xd37d8e],_0x4724d1,_0x31f661)),null;}const _0xdf692f=this['editor']['plugins']['get']('Users')['me'],_0x60baf9=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1175b5,meta:_0x21d436}of this['_findSuggestions'](_0xd37d8e,'insertion'))_0x21d436['isOwn']&&!_0x21d436['isInsideObject']&&_0x60baf9['push'](..._0x1175b5['getRanges']());}const _0x226e58=function(_0x333d8f,_0x55639e){const _0x4b44d8=[];for(const _0x52897d of _0x55639e){const _0x1652c0=_0x333d8f['getIntersection'](_0x52897d);_0x1652c0&&_0x4b44d8['push'](_0x1652c0);}return _0x4b44d8;}(_0xd37d8e,_0x60baf9),_0x3c3f55=function(_0x2d153a,_0x2eb626){const _0x637263=[_0x2d153a];for(const _0x382bb7 of _0x2eb626){let _0x245968=0x0;for(;_0x245968<_0x637263['length'];){const _0x3bb4a2=_0x637263[_0x245968]['getDifference'](_0x382bb7);_0x637263['splice'](_0x245968,0x1,..._0x3bb4a2),_0x245968+=_0x3bb4a2['length'];}}return _0x637263;}(_0xd37d8e,_0x60baf9);_0x226e58['length']&&this['_model']['change'](()=>{for(const _0x125b2e of _0x226e58){const _0x14845a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5694d0,'accept');this['forceDefaultExecution'](()=>_0x14845a([_0x125b2e],_0x4724d1,_0x31f661));}});for(const _0x21d642 of _0x3c3f55){let _0x51dd1b=null,_0x3ae0d6=_0x21d642['start'],_0x187e7e=_0x21d642['end'];for(const {suggestion:_0x38dd01,meta:_0x18df74}of this['_findSuggestions'](_0x21d642,'formatInline')){if(!_0x18df74['isOwn'])continue;if(_0x38dd01['subType']!=_0x5694d0)continue;if(!oe(_0x38dd01,_0x31f661))continue;const _0x49c858=_0x38dd01['getFirstRange']();if(_0x49c858['containsRange'](_0x21d642,!0x0))return null;_0x3ae0d6=_0x3ae0d6['isBefore'](_0x49c858['start'])?_0x3ae0d6:_0x49c858['start'],_0x187e7e=_0x187e7e['isAfter'](_0x49c858['end'])?_0x187e7e:_0x49c858['end'],_0x51dd1b?_0x49c858['start']['isBefore'](_0x51dd1b['getFirstRange']()['start'])?(_0x51dd1b['removeMarkers'](),_0x51dd1b=_0x38dd01):_0x38dd01['removeMarkers']():_0x51dd1b=_0x38dd01;}const _0x1d2d94=this['_model']['createRange'](_0x3ae0d6,_0x187e7e);if(_0x51dd1b)this['_setSuggestionRange'](_0x51dd1b,_0x1d2d94);else{const _0x58c002=_0x3caa75(),_0x3415d9=_0xdf692f['id'];this['_setSuggestionData']({'id':_0x58c002,'type':'formatInline:'+_0x5694d0,'data':_0x4724d1,'createdAt':new Date(),'authorId':_0x3415d9,'attributes':_0x31f661}),this['_addSuggestionMarker']('formatInline:'+_0x5694d0,_0x58c002,_0x3415d9,_0x1d2d94);}}return null;}['markBlockFormat'](_0x1a561d,_0x2f1da8,_0xdbe820=[],_0x561ce3=null,_0x4c5277={}){_0x2f1da8['formatGroupId']||(_0x2f1da8['formatGroupId']=_0x2f1da8['commandName']),_0x2f1da8['multipleBlocks']=_0x1a561d['is']('range'),_0x561ce3=_0x561ce3||Qt(_0x2f1da8);const _0x13c87c=_0xdbe820['map'](_0x2b103f=>ie(_0x2b103f,this['_model'])),_0x2bafef=_0x1a561d['is']('range')?_0x1a561d:ie(_0x1a561d,this['_model']);if(this['_trackingSessionId']&&(_0x4c5277['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5b936f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x561ce3,'accept');return this['forceDefaultExecution'](()=>_0x5b936f([_0x2bafef],_0x2f1da8,_0x4c5277)),null;}_0x13c87c['push'](_0x2bafef);let _0x2601a2=!0x0;for(const _0x94eef1 of _0x13c87c)if(!this['_rangeIsInLocalUserInsertion'](_0x94eef1)){_0x2601a2=!0x1;break;}if(_0x2601a2&&'always'!==this['_trackFormatChanges']){const _0x5cb890=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x561ce3,'accept');return this['forceDefaultExecution'](()=>_0x5cb890([_0x2bafef],_0x2f1da8,_0x4c5277)),null;}let _0x545fb7=null,_0xaf8545=_0x2bafef['start'],_0x13fde8=_0x2bafef['end'];for(const {suggestion:_0x217503,meta:_0x333906}of this['_findSuggestions'](_0x2bafef,'formatBlock')){if(!_0x333906['isOwn'])continue;if(_0x333906['isNextTo']||_0x333906['containsRangeInObject']||_0x333906['isInsideObject'])continue;if(_0x217503['data']['formatGroupId']!=_0x2f1da8['formatGroupId'])continue;if(!oe(_0x217503,_0x4c5277))continue;const _0x444707=_0x217503['getFirstRange']();if(_0x217503['subType']==_0x561ce3){if(_0x444707['containsRange'](_0x2bafef,!0x0))return null;_0xaf8545=_0xaf8545['isBefore'](_0x444707['start'])?_0xaf8545:_0x444707['start'],_0x13fde8=_0x13fde8['isAfter'](_0x444707['end'])?_0x13fde8:_0x444707['end'],_0x545fb7?_0x444707['start']['isBefore'](_0x545fb7['getFirstRange']()['start'])?(_0x545fb7['removeMarkers'](),_0x545fb7=_0x217503):_0x217503['removeMarkers']():_0x545fb7=_0x217503;}else{const _0x287370=_0x2bafef['getIntersection'](_0x444707);this['_cutOutSuggestionMarker'](_0x217503,_0x287370);}}const _0x1462d9=this['editor']['plugins']['get']('Users')['me'],_0x5a5b45=_0x3caa75(),_0x4b2028=_0x1462d9['id'];if(_0x545fb7)return this['_setSuggestionRange'](_0x545fb7,this['_model']['createRange'](_0xaf8545,_0x13fde8)),_0x545fb7;{const _0x31285c=this['_setSuggestionData']({'id':_0x5a5b45,'type':'formatBlock:'+_0x561ce3,'data':_0x2f1da8,'createdAt':new Date(),'authorId':_0x4b2028,'attributes':_0x4c5277});return this['_addSuggestionMarker']('formatBlock:'+_0x561ce3,_0x5a5b45,_0x4b2028,this['_model']['createRange'](_0xaf8545,_0x13fde8)),_0x31285c;}}['markMultiRangeBlockFormat'](_0x515830,_0x42e4ca,_0x258776=[],_0x3a9c94=null,_0x21b92b={}){_0x42e4ca['formatGroupId']||(_0x42e4ca['formatGroupId']=_0x42e4ca['commandName']);const _0x390f45=_0x515830[0x0];_0x42e4ca['multipleBlocks']=_0x390f45['is']('range'),_0x3a9c94=_0x3a9c94||Qt(_0x42e4ca);const _0x45042c=_0x258776['map'](_0xdceed9=>ie(_0xdceed9,this['_model'])),_0x4d7f2a=_0x390f45['is']('range')?_0x515830:_0x515830['map'](_0x18d101=>ie(_0x18d101,this['_model']));if(this['_trackingSessionId']&&(_0x21b92b['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x178abf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3a9c94,'accept');return this['forceDefaultExecution'](()=>_0x178abf(_0x4d7f2a,_0x42e4ca,_0x21b92b)),null;}_0x45042c['push'](..._0x4d7f2a);let _0x8bfd24=!0x0;for(const _0x39fb33 of _0x45042c)if(!this['_rangeIsInLocalUserInsertion'](_0x39fb33)){_0x8bfd24=!0x1;break;}if(_0x8bfd24&&'always'!==this['_trackFormatChanges']){const _0x2eb9fe=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3a9c94,'accept');return this['forceDefaultExecution'](()=>_0x2eb9fe(_0x4d7f2a,_0x42e4ca,_0x21b92b)),null;}const _0x3a9671=this['editor']['plugins']['get']('Users')['me'];for(const _0x4d15d4 of this['getSuggestions']()){const _0xc180ea=_0x4d15d4['data'];if(_0x4d15d4['author']['id']!=_0x3a9671['id'])continue;if('formatBlock'!=_0x4d15d4['type']||_0xc180ea['formatGroupId']!=_0x42e4ca['formatGroupId'])continue;if(!oe(_0x4d15d4,_0x21b92b))continue;const _0x8e27b0=_0x4d15d4['subType']==_0x3a9c94;for(let _0x5d9389=0x0;_0x5d9389<_0x4d7f2a['length'];_0x5d9389++){const _0x45ba5f=_0x4d7f2a[_0x5d9389];for(const _0x5f30ed of _0x4d15d4['getMarkers']()){const _0x16e09e=_0x5f30ed['getRange']();if(_0x45ba5f['isEqual'](_0x16e09e)){_0x8e27b0?(_0x4d7f2a['splice'](_0x5d9389,0x1),_0x5d9389--):_0x4d15d4['removeMarker'](_0x5f30ed['name']);break;}}}}if(0x0==_0x4d7f2a['length'])return null;const _0x18936b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3a9c94,'join');for(const _0x1db8f6 of this['getSuggestions']()){const _0x108813=_0x1db8f6['data'];if(_0x1db8f6['author']['id']==_0x3a9671['id']&&('formatBlock'==_0x1db8f6['type']&&_0x108813['formatGroupId']==_0x42e4ca['formatGroupId']&&_0x1db8f6['subType']==_0x3a9c94&&oe(_0x1db8f6,_0x21b92b)&&(_0x18936b(_0x1db8f6['getRanges'](),_0x4d7f2a)||_0x18936b(_0x4d7f2a,_0x1db8f6['getRanges']())))){for(const _0x44b8c4 of _0x4d7f2a)_0x1db8f6['addRange'](_0x44b8c4);return _0x1db8f6;}}const _0x1abff6=_0x3caa75(),_0x2e99cf=_0x3a9671['id'],_0x2292f2='formatBlock:'+_0x3a9c94,_0x5913cb=this['_setSuggestionData']({'id':_0x1abff6,'type':_0x2292f2,'data':_0x42e4ca,'createdAt':new Date(),'authorId':_0x2e99cf,'attributes':_0x21b92b});for(const _0x4cfca7 of _0x4d7f2a)this['_addSuggestionMarker'](_0x2292f2,_0x1abff6,_0x2e99cf,_0x4cfca7,R['getMultiRangeId']());return _0x5913cb;}['markDeletion'](_0x31ae08,_0x492294=null,_0x31019e={}){if(_0x31ae08['isCollapsed'])return null;const _0x45faa9=this['editor']['plugins']['get']('Users')['me'],_0x1e8b6f=new _0x3d40b9(_0x31ae08['start'],_0x31ae08['end']);this['_trackingSessionId']&&(_0x31019e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x23a84e,meta:_0x505617}of this['_findSuggestions'](_0x1e8b6f,'insertion'))if(_0x505617['isOwn']&&!_0x505617['isNextTo']){if(_0x23a84e['isMultiRange']){const _0x4f6d5e=_0x23a84e['getRanges']()['filter'](_0x449a32=>'$graveyard'!=_0x449a32['root']['rootName']);_0x4f6d5e['every'](_0x46e391=>_0x1e8b6f['containsRange'](_0x46e391,!0x0))&&_0x23a84e['discard']();if(_0x4f6d5e['some'](_0xd47ee6=>_0xd47ee6['containsRange'](_0x1e8b6f,!0x0))){const _0x43dada=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x492294,'accept');return this['forceDefaultExecution'](()=>_0x43dada([_0x1e8b6f],null,_0x31019e)),null;}}else{const _0x4f32d6=_0x1e8b6f['getIntersection'](_0x23a84e['getFirstRange']());null!==_0x4f32d6&&_0x23a84e['_onDiscard']([_0x4f32d6],null,_0x31019e);}}if(_0x1e8b6f['detach'](),_0x1e8b6f['isCollapsed']||'$graveyard'==_0x1e8b6f['root']['rootName'])return null;let _0x490d0c=null,_0x447fd8=_0x1e8b6f['start'],_0x454851=_0x1e8b6f['end'];const _0x1344f6=this['_findSuggestions'](_0x1e8b6f,'deletion');for(const {suggestion:_0x2c9de7,meta:_0x35a6a0}of _0x1344f6){const _0x45f6cd=this['_model']['createRange'](_0x447fd8,_0x454851);if(_0x35a6a0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x35a6a0['containsRangeInObject']&&!_0x35a6a0['isInsideObject'])){if(_0x2c9de7['isMultiRange']){if(!oe(_0x2c9de7,_0x31019e))continue;let _0x19ab57=!0x0;for(const _0x4260f2 of _0x2c9de7['getRanges']()){if(_0x4260f2['containsRange'](_0x45f6cd,!0x0))return _0x2c9de7;_0x45f6cd['containsRange'](_0x4260f2)||(_0x19ab57=!0x1);}_0x19ab57&&_0x2c9de7['discard']();}else{const _0x188f01=_0x2c9de7['getFirstRange']();if(_0x188f01['containsRange'](_0x45f6cd,!0x0))return _0x2c9de7;if(!oe(_0x2c9de7,_0x31019e)){_0x45f6cd['containsRange'](_0x188f01)?_0x2c9de7['removeMarkers']():_0x188f01['containsPosition'](_0x447fd8)?_0x447fd8=_0x188f01['end']:_0x188f01['containsPosition'](_0x454851)&&(_0x454851=_0x188f01['start']);continue;}_0x447fd8=_0x447fd8['isBefore'](_0x188f01['start'])?_0x447fd8:_0x188f01['start'],_0x454851=_0x454851['isAfter'](_0x188f01['end'])?_0x454851:_0x188f01['end'],_0x31019e=Object['assign']({},_0x2c9de7['attributes']),_0x490d0c?_0x188f01['start']['isBefore'](_0x490d0c['getFirstRange']()['start'])?(_0x490d0c['removeMarkers'](),_0x490d0c=_0x2c9de7):_0x2c9de7['removeMarkers']():_0x490d0c=_0x2c9de7;}}}if(_0x490d0c)return this['_setSuggestionRange'](_0x490d0c,this['_model']['createRange'](_0x447fd8,_0x454851)),_0x490d0c;{const _0x6ad9f7=_0x3caa75(),_0x3532a0=this['_model']['createRange'](_0x447fd8,_0x454851),_0x50216f=_0x45faa9['id'],_0xd4da17=_0x492294?'deletion:'+_0x492294:'deletion',_0x82fc0f=this['_setSuggestionData']({'id':_0x6ad9f7,'type':_0xd4da17,'createdAt':new Date(),'authorId':_0x50216f,'attributes':_0x31019e});return this['_addSuggestionMarker'](_0xd4da17,_0x6ad9f7,_0x50216f,_0x3532a0),_0x82fc0f;}}['markMultiRangeDeletion'](_0x2ef62f,_0x48924d='multi',_0x115ca7={}){const _0x530f28=this['editor']['plugins']['get']('Users')['me'],_0x1bc3da=_0x2ef62f['map'](_0x333fda=>new _0x3d40b9(_0x333fda['start'],_0x333fda['end'])),_0x2a5321=new Set();this['_trackingSessionId']&&(_0x115ca7['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x17b2a7,meta:_0x469d2e}of this['_findSuggestions'](_0x1bc3da,'insertion'))_0x469d2e['isOwn']&&!_0x469d2e['isNextTo']&&_0x2a5321['add'](_0x17b2a7);for(const _0x27b352 of _0x2a5321)if(_0x27b352['isMultiRange']){const _0x2f4b6f=_0x27b352['getRanges']();(!_0x27b352['attributes']||!_0x27b352['attributes']['skipNestingCheck'])&&(_0x2f4b6f['every'](_0x20c114=>_0x1bc3da['some'](_0xf973f9=>_0xf973f9['containsRange'](_0x20c114,!0x0)))&&_0x27b352['discard']());if(_0x1bc3da['every'](_0x5b9418=>_0x2f4b6f['some'](_0x58dd5b=>_0x58dd5b['containsRange'](_0x5b9418,!0x0)))){const _0x1debbb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48924d,'accept');return this['forceDefaultExecution'](()=>_0x1debbb(_0x2ef62f,null,_0x115ca7)),null;}}else{const _0x26fcf8=_0x27b352['getFirstRange']();_0x1bc3da['some'](_0x3255ee=>_0x3255ee['containsRange'](_0x26fcf8,!0x0))&&_0x27b352['discard']();if(_0x1bc3da['every'](_0xe941dc=>_0x26fcf8['containsRange'](_0xe941dc,!0x0))){const _0x2c05ae=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48924d,'accept');return this['forceDefaultExecution'](()=>_0x2c05ae(_0x1bc3da,null,_0x115ca7)),null;}}const _0x3f9c57=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48924d,'join');let _0x5e7e60=null;for(const _0x1052db of this['getSuggestions']())if(_0x1052db['author']['id']==_0x530f28['id']&&_0x1052db['isInContent']&&'deletion'==_0x1052db['type']&&_0x1052db['subType']==_0x48924d&&oe(_0x1052db,_0x115ca7)&&(_0x3f9c57(_0x1052db['getRanges'](),_0x1bc3da)||_0x3f9c57(_0x1bc3da,_0x1052db['getRanges']()))){if(_0x5e7e60){if(_0x1052db['commentThread']&&_0x1052db['commentThread']['length'])continue;for(const _0x400240 of _0x1052db['getRanges']())_0x5e7e60['isIntersectingWithRange'](_0x400240)||_0x5e7e60['addRange'](_0x400240);_0x1052db['removeMarkers']();}else{_0x5e7e60=_0x1052db;for(const _0x26c467 of _0x1bc3da)_0x1052db['isIntersectingWithRange'](_0x26c467)||_0x1052db['addRange'](_0x26c467);}}if(_0x5e7e60)return _0x5e7e60;_0x2a5321['clear']();for(const {suggestion:_0x16281b,meta:_0x187cc0}of this['_findSuggestions'](_0x1bc3da,'deletion'))_0x187cc0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x187cc0['containsRangeInObject']&&!_0x187cc0['isInsideObject'])&&oe(_0x16281b,_0x115ca7)&&_0x2a5321['add'](_0x16281b);for(const _0x25dc8d of _0x2a5321){const _0x5040c7=_0x25dc8d['getRanges']();if(!_0x115ca7||!_0x115ca7['skipNestingCheck']){if(_0x1bc3da['every'](_0x4bade7=>_0x5040c7['some'](_0x26cf1b=>_0x26cf1b['containsRange'](_0x4bade7,!0x0))))return _0x25dc8d;}(!_0x25dc8d['attributes']||!_0x25dc8d['attributes']['skipNestingCheck'])&&(_0x5040c7['every'](_0x2eb29b=>_0x1bc3da['some'](_0x546674=>_0x546674['containsRange'](_0x2eb29b,!0x0)))&&_0x25dc8d['discard']());}const _0x49c458=_0x3caa75(),_0x24174e=_0x530f28['id'],_0x3763f2='deletion:'+_0x48924d,_0x45a27b=this['_setSuggestionData']({'id':_0x49c458,'type':_0x3763f2,'createdAt':new Date(),'authorId':_0x24174e,'attributes':_0x115ca7});for(const _0x5323e3 of _0x1bc3da)_0x5323e3['detach'](),_0x5323e3['isCollapsed']||'$graveyard'==_0x5323e3['root']['rootName']||this['_addSuggestionMarker'](_0x3763f2,_0x49c458,_0x24174e,_0x5323e3,R['getMultiRangeId']());return _0x45a27b;}['markAttributeChange'](_0x552e24,_0x29a834,_0x198a1c,_0x5b4101,_0x421965){if(_0x552e24['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2504ba=this['editor']['plugins']['get']('Users')['me']['id'],_0x1dc932=Array['from'](this['_suggestions']['values']())['filter'](_0x435b8e=>'attribute'==_0x435b8e['type']&&_0x435b8e['data']['key']==_0x29a834&&_0x435b8e['isIntersectingWithRange'](_0x552e24));if(this['_trackingSessionId']&&(_0x421965['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x167dc0=this['_findSuggestions'](_0x552e24,'insertion')['filter'](({meta:_0x7d7fd8})=>_0x7d7fd8['isOwn']&&!_0x7d7fd8['isInsideObject']&&!_0x7d7fd8['isNextTo'])['map'](({suggestion:_0x2aa14b})=>_0x2aa14b);_0x1dc932['unshift'](..._0x167dc0);}const _0x22416c=new Map([[_0x552e24,_0x198a1c]]);for(const _0x13fff6 of _0x1dc932){const _0x897581='attribute'==_0x13fff6['type']?_0x13fff6['data']['oldValue']:void 0x0,_0x52aee7=_0x13fff6['getFirstRange'](),_0x582c72=Array['from'](_0x22416c['keys']())['find'](_0x236e48=>_0x236e48['isIntersecting'](_0x52aee7));if(!_0x582c72)continue;const _0x562475=_0x582c72['getDifference'](_0x52aee7);this['_isBlockAttribute'](_0x29a834)&&'insertion'==_0x13fff6['type']&&0x0!=_0x562475['length']||(_0x22416c['delete'](_0x582c72),_0x562475['forEach'](_0x376f65=>{_0x22416c['set'](_0x376f65,_0x198a1c);}),'insertion'!=_0x13fff6['type']&&_0x897581!=_0x5b4101&&_0x22416c['set'](_0x582c72['getIntersection'](_0x52aee7),_0x897581));}const _0x210de8=[];for(const [_0x2eed45,_0x1b3e75]of _0x22416c){const _0x525032=_0x3caa75(),_0x519a95={'key':_0x29a834,'oldValue':_0x1b3e75,'newValue':_0x5b4101};_0x29a834['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':_0x29a834});const _0x55c39d=('attribute:'+(_0x29a834+'|'+Qt({'newValue':_0x5b4101})))['substring'](0x0,0x3c),_0x15106f=this['_setSuggestionData']({'id':_0x525032,'type':_0x55c39d,'data':_0x519a95,'createdAt':new Date(),'authorId':_0x2504ba,'attributes':_0x421965});_0x210de8['push'](_0x15106f),this['_addSuggestionMarker'](_0x55c39d,_0x525032,_0x2504ba,_0x2eed45);}return _0x210de8;}['enableDefaultAttributesIntegration'](_0x50de3f){this['enableCommand'](_0x50de3f,(_0xa64f68,..._0x424aed)=>{this['recordAttributeChanges'](()=>{_0xa64f68(..._0x424aed);});});}['registerBlockAttribute'](_0x5e77b0){this['_blockAttributeKeys']['add'](_0x5e77b0);}['registerInlineAttribute'](_0x207321){this['_inlineAttributeKeys']['add'](_0x207321);}['startTrackingSession'](_0x5d024e){return this['_trackingSessionId']=void 0x0!==_0x5d024e?_0x5d024e:_0x3caa75(),this['_trackingSessionId'];}['_getAttributeKey'](_0x450a65){return'attribute'==_0x450a65['type']?ae(_0x450a65['subType']):null;}['_applyOperationsAsSuggestions'](_0x522c50){if(0x0==_0x522c50['length'])return;const _0x4a0ff4=this['editor'],_0x2c27d3=_0x4a0ff4['plugins']['get'](_0x26060f);let _0x3c9efd,_0x5d8b2e=!0x0;for(const _0x4398f7 in _0x522c50[0x0]){const _0x5df374=_0x522c50[0x0][_0x4398f7];if((_0x5df374 instanceof _0x7685d4||_0x5df374 instanceof _0x4e5d4b)&&_0x5df374['root']['is']('documentFragment')){_0x5d8b2e=!0x1,_0x3c9efd=_0x5df374['root'];break;}}_0x4a0ff4['model']['change'](_0x11630d=>{const _0x546fe8=new Set();for(let _0x67d238=0x0;_0x67d238<_0x522c50['length'];_0x67d238++){const _0x3a6acb=_0x522c50[_0x67d238];if(_0x3a6acb['baseVersion']=_0x5d8b2e?_0x4a0ff4['model']['document']['version']:null,_0x3a6acb['isDocumentOperation']=_0x5d8b2e,_0x2c27d3['isMarkedRemoveOperation'](_0x3a6acb)){const _0x3f51a7=te(_0x3a6acb['newRange'],_0x4a0ff4['model']);if(_0x5d8b2e)this['markDeletion'](_0x3f51a7);else{const _0x14ff84='suggestion:deletion:'+_0x3caa75()+':$aiSuggestion';_0x3c9efd['markers']['set'](_0x14ff84,_0x3f51a7);}}else switch(_0x3a6acb['type']){case'rename':{const _0x4c8c92=_0x3a6acb['oldName'],_0x4853f2=_0x3a6acb['newName'];if(_0x4c8c92==_0x4853f2)break;_0x11630d['batch']['addOperation'](_0x3a6acb),_0x4a0ff4['model']['applyOperation'](_0x3a6acb);const _0x5a3ee3='$elementName',_0x5d0f1f=_0x3a6acb['position'],_0x42424c=_0x4a0ff4['model']['createRange'](_0x5d0f1f,_0x4a0ff4['model']['createPositionAt'](_0x5d0f1f['nodeAfter'],'end'));if(_0x5d8b2e)this['markAttributeChange'](_0x42424c,_0x5a3ee3,_0x4c8c92,_0x4853f2,{'groupId':_0x3caa75()});else{const _0x45a330='suggestion:attribute:'+_0x5a3ee3+':'+_0x3caa75()+':$aiSuggestion';_0x3c9efd['markers']['set'](_0x45a330,_0x42424c);}break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x5683d2=_0x3a6acb['oldValue'],_0x49acd0=_0x3a6acb['newValue'];if(_0x5683d2==_0x49acd0)break;_0x11630d['batch']['addOperation'](_0x3a6acb),_0x4a0ff4['model']['applyOperation'](_0x3a6acb);const _0x1cd1d5=_0x3a6acb['key'];if(!this['_isRegisteredAttribute'](_0x1cd1d5))break;const _0x3202c6=te(_0x3a6acb['range'],_0x4a0ff4['model']);if(_0x5d8b2e)this['markAttributeChange'](_0x3202c6,_0x1cd1d5,_0x5683d2,_0x49acd0,{'groupId':_0x3caa75()});else{const _0x48712a='suggestion:attribute:'+_0x1cd1d5+':'+_0x3caa75()+':$aiSuggestion';_0x3c9efd['markers']['set'](_0x48712a,_0x3202c6);}break;}case'insert':{_0x11630d['batch']['addOperation'](_0x3a6acb),_0x4a0ff4['model']['applyOperation'](_0x3a6acb);const _0x13250c=_0x522c50[_0x67d238+0x1]&&'move'==_0x522c50[_0x67d238+0x1]['type'];if(!_0x5d8b2e&&_0x13250c&&ce(_0x3c9efd,_0x3a6acb),_0x13250c)break;const _0x2ad56d=_0x3a6acb['position'],_0x3efd76=_0x3a6acb['howMany'],_0x458bab=te(_0x4a0ff4['model']['createRange'](_0x2ad56d,_0x2ad56d['getShiftedBy'](_0x3efd76)),_0x4a0ff4['model']);if(_0x5d8b2e)this['markInsertion'](_0x458bab);else{const _0xf9503e='suggestion:insertion:'+_0x3caa75()+':$aiSuggestion';_0x3c9efd['markers']['set'](_0xf9503e,_0x458bab);}break;}case'split':{_0x11630d['batch']['addOperation'](_0x3a6acb),_0x4a0ff4['model']['applyOperation'](_0x3a6acb);const _0x1b4b22=_0x3a6acb['splitPosition'],_0x1be8e=_0x3a6acb['moveTargetPosition'],_0x257908=_0x4a0ff4['model']['createRange'](_0x1b4b22,_0x1be8e);if(_0x5d8b2e)this['markInsertion'](_0x4a0ff4['model']['createRange'](_0x1b4b22,_0x1be8e));else{const _0x2874e3='suggestion:insertion:'+_0x3caa75()+':$aiSuggestion';_0x3c9efd['markers']['set'](_0x2874e3,_0x257908);}break;}case'move':if(_0x11630d['batch']['addOperation'](_0x3a6acb),_0x4a0ff4['model']['applyOperation'](_0x3a6acb),!_0x5d8b2e&&_0x522c50[_0x67d238-0x1]&&'insert'==_0x522c50[_0x67d238-0x1]['type']&&ce(_0x3c9efd,_0x3a6acb),!_0x5d8b2e){const _0x2dd983=_0x3a6acb['getMovedRangeStart'](),_0x32f793=_0x3a6acb['howMany'];for(let _0xee6923=0x0;_0xee6923<_0x32f793;_0xee6923++){const _0x2383e3=_0x2dd983['getShiftedBy'](_0xee6923)['nodeAfter'];_0x546fe8['add'](_0x2383e3);}}break;case'remove':if(_0x5d8b2e)_0x11630d['batch']['addOperation'](_0x3a6acb),_0x4a0ff4['model']['applyOperation'](_0x3a6acb);else{const _0x4b6127=_0x3a6acb['sourcePosition'],_0x22326f=_0x3a6acb['howMany'],_0x1f306f=new _0x2a730d(_0x4b6127,_0x22326f);_0x11630d['batch']['addOperation'](_0x1f306f),_0x4a0ff4['model']['applyOperation'](_0x1f306f);}}}for(const _0x49b105 of _0x546fe8){const _0x2ad6b1=_0x4a0ff4['model']['createRangeOn'](_0x49b105),_0x12ac53='suggestion:formatBlock:$fakeWrap:'+_0x3caa75()+':$aiSuggestion';_0x3c9efd['markers']['set'](_0x12ac53,te(_0x2ad6b1,_0x4a0ff4['model']));}});}['_setSuggestionRange'](_0x142850,_0x53649f){const _0x5047b8=_0x142850['getFirstMarker']();this['_model']['change'](_0xabb34=>{_0xabb34['updateMarker'](_0x5047b8,{'range':_0x53649f});});}['_addThreadToSuggestion'](_0x43bc5e){const _0x2a45f4=_0x43bc5e['id'],_0x5bc942=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2a45f4)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5bc942,'threadId':_0x2a45f4,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x272ef4=this['_commentsRepository']['getCommentThread'](_0x2a45f4);_0x272ef4['unbind']('isRemovable'),_0x272ef4['isRemovable']=!0x1,_0x43bc5e['commentThread']=_0x272ef4;}['_checkSuggestionCorrectness'](_0x3989c0,_0x11cdcf,_0x329c63,_0x273d4d){if(_0x3989c0['type']!=_0x11cdcf||_0x3989c0['subType']!=_0x329c63||_0x3989c0['creator']['id']!=_0x273d4d)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5a4829('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x40ec1c,_0xe668b0){const _0x5fc325=_0x40ec1c['getFirstRange']();if(_0xe668b0['isEqual'](_0x5fc325))_0x40ec1c['removeMarkers']();else{if(_0x5fc325['containsRange'](_0xe668b0)){const _0x325d90=this['_model']['createPositionAt'](_0xe668b0['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x40ec1c,this['_model']['createRange'](_0x5fc325['start'],_0x325d90));const _0x58a81e=_0x3caa75(),_0x3be0fb=_0x40ec1c['creator']['id'],_0x2a7eb0=_0x40ec1c['type']+':'+_0x40ec1c['subType'];this['_setSuggestionData']({'id':_0x58a81e,'type':_0x2a7eb0,'createdAt':new Date(),'authorId':_0x3be0fb,'data':_0x40ec1c['data'],'attributes':_0x40ec1c['attributes']});const _0x31e18a=this['_model']['createPositionAt'](_0xe668b0['end']['parent'],'after'),_0x19ba6e=this['_model']['createRange'](_0x31e18a,_0x5fc325['end']);this['_addSuggestionMarker'](_0x2a7eb0,_0x58a81e,_0x3be0fb,_0x19ba6e);}else{if(_0x5fc325['containsPosition'](_0xe668b0['start'])){const _0x5ba514=this['_model']['createPositionAt'](_0xe668b0['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x40ec1c,this['_model']['createRange'](_0x5fc325['start'],_0x5ba514));}else{const _0x128b3e=this['_model']['createPositionAt'](_0xe668b0['end']['parent'],'after');this['_setSuggestionRange'](_0x40ec1c,this['_model']['createRange'](_0x128b3e,_0x5fc325['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2f7655){for(const {suggestion:_0x276543,meta:_0x31e533}of this['_findSuggestions'](_0x2f7655,'insertion')){if(!_0x31e533['isOwn'])continue;const _0x39d130=_0x276543['getRanges']();for(const _0x5c45ea of _0x39d130)if(!_0x2f7655['getDifference'](_0x5c45ea)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x16fcb8){return this['editor']['plugins']['get']('Users')['getUser'](_0x16fcb8);}['_getExternalAuthor'](_0x1e3d6f){const _0x28a3a2=this['editor']['plugins']['get']('Users'),_0x4dd820=_0x5e961d('external:'+_0x1e3d6f),_0x32fc82=_0x28a3a2['getUser'](_0x4dd820);return _0x32fc82||_0x28a3a2['addUser']({'id':_0x4dd820,'name':_0x1e3d6f});}['_createSuggestion'](_0x5354c9,_0x1250c3,_0x488dde,_0x28ce16,_0x5b33da,_0x7819f0){const _0x540e9f=this['_getAuthorFromId'](_0x28ce16);if(!_0x540e9f)throw new _0x5a4829('track-changes-user-not-found',this,{'authorId':_0x28ce16,'suggestionId':_0x488dde});const _0x197d27=this['_suggestionFactory']['buildSuggestion'](_0x5354c9,_0x1250c3,_0x488dde,_0x540e9f,_0x5b33da,_0x5dd741=>{this['_updateSuggestionData'](_0x488dde,{'attributes':_0x5dd741});const _0x38d26e=this['getSuggestion'](_0x488dde);this['_joinWithAdjacentSuggestions'](new Set([_0x38d26e])),this['_refreshSuggestionsChain'](new Set([_0x38d26e]));},_0x7819f0);return this['listenTo'](_0x197d27,'accept',()=>{this['_updateSuggestionData'](_0x488dde,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x197d27,'discard',()=>{this['_updateSuggestionData'](_0x488dde,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x488dde,_0x197d27),this['_suggestionState']['set'](_0x197d27,'notReady'),_0x197d27;}['_splitMarkerName'](_0x3b0293){const _0x20036c=_0x3b0293['split'](':');return{'group':_0x20036c[0x0],'type':_0x20036c[0x1],'subType':_0x20036c['length']>=0x5?_0x20036c[0x2]:null,'id':_0x20036c['length']<0x5?_0x20036c[0x2]:_0x20036c[0x3],'authorId':_0x20036c['length']<0x5?_0x20036c[0x3]:_0x20036c[0x4],'markerCount':0x6==_0x20036c['length']?_0x20036c[0x5]:null};}['_breakSuggestionMarker'](_0x49aa40,_0x10a344,_0x47bd27){const _0x1bea4a=_0x49aa40['getFirstRange'](),_0x48392b=_0x1bea4a['start'],_0x3b459e=_0x1bea4a['end'];this['_setSuggestionRange'](_0x49aa40,this['_model']['createRange'](_0x48392b,_0x10a344));const _0x13aceb=_0x3caa75(),_0x5ba9a8=_0x49aa40['creator']['id'],_0x482dea=_0x49aa40['type']+(_0x49aa40['subType']?':'+_0x49aa40['subType']:'');this['_setSuggestionData']({'id':_0x13aceb,'type':_0x482dea,'createdAt':new Date(),'authorId':_0x5ba9a8,'originalSuggestionId':_0x49aa40['_originalSuggestionId']||_0x49aa40['id'],'attributes':_0x49aa40['attributes'],'data':_0x49aa40['data']});const _0x44aca8=this['_getAttributeKey'](_0x49aa40);('formatBlock'==_0x49aa40['type']||_0x44aca8&&this['_isBlockAttribute'](_0x44aca8))&&(_0x47bd27=this['_model']['createPositionBefore'](_0x47bd27['parent'])),this['_addSuggestionMarker'](_0x482dea,_0x13aceb,_0x5ba9a8,this['_model']['createRange'](_0x47bd27,_0x3b459e));}['_findSuggestions'](_0x9bdaca,_0x38bf16=null){const _0xdf07dd=[],_0x164594=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x9bdaca)||(_0x9bdaca=[_0x9bdaca]);for(const _0x1c9124 of this['getSuggestions']()){if(!_0x1c9124['isInContent'])continue;if(_0x38bf16&&_0x1c9124['type']!=_0x38bf16)continue;let _0x26c78d=!0x1;for(const _0x203f3b of _0x1c9124['getRanges']()){for(const _0x19cfee of _0x9bdaca){const _0xf50833=_0x19cfee['start']['isEqual'](_0x203f3b['end'])||_0x19cfee['end']['isEqual'](_0x203f3b['start']);if(_0xf50833||_0x19cfee['getIntersection'](_0x203f3b)){const _0x3796d1=_0x19cfee['containsRange'](_0x203f3b)&&Ht(this['_model']['schema'],_0x203f3b['start'],_0x19cfee),_0x3f22d6=_0x203f3b['containsRange'](_0x19cfee)&&Ht(this['_model']['schema'],_0x19cfee['start'],_0x203f3b);_0xdf07dd['push']({'suggestion':_0x1c9124,'meta':{'isOwn':_0x164594==_0x1c9124['author'],'isNextTo':_0xf50833,'isInsideObject':_0x3796d1,'containsRangeInObject':_0x3f22d6}}),_0x26c78d=!0x0;break;}}if(_0x26c78d)break;}}return _0xdf07dd;}['_addSuggestionMarker'](_0x2ee082,_0x1a4dd4,_0x3ce5cc,_0x3d91e9,_0x27de17){this['_model']['change'](_0x1bf021=>{let _0x3f86e0='suggestion:'+_0x2ee082+':'+_0x1a4dd4+':'+_0x3ce5cc;_0x27de17&&(_0x3f86e0=_0x3f86e0+':'+_0x27de17),_0x1bf021['addMarker'](_0x3f86e0,{'range':_0x3d91e9,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xfcbe07){const _0x57a725=_0xfcbe07['previous'],_0x35a86a=_0xfcbe07['next'];_0xfcbe07['previous']=null,_0xfcbe07['next']=null,null!=_0x57a725&&_0x57a725['next']==_0xfcbe07&&(_0x57a725['next']=_0x35a86a),null!=_0x35a86a&&_0x35a86a['previous']==_0xfcbe07&&(_0x35a86a['previous']=_0x57a725),'ready'==this['_suggestionState']['get'](_0xfcbe07)&&(this['_suggestionState']['set'](_0xfcbe07,'removed'),this['fire']('suggestionUnloaded',_0xfcbe07,_0x57a725,_0x35a86a));}['_setSuggestionData'](_0x2cee63){const _0x5df317=_0x2cee63['id'],_0x30a431=this['addSuggestionData'](_0x2cee63);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x59d55f=this['editor']['plugins']['get']('PendingActions'),_0x45f173=_0x30a431['hasComments'],_0x1a1730=_0x30a431['subType']?_0x30a431['type']+':'+_0x30a431['subType']:_0x30a431['type'],_0xe1ef9a=this['editor']['locale'],_0x7c89ad=_0x59d55f['add'](o(_0xe1ef9a,'PENDING_ACTION_SUGGESTION')),_0x9faf23={'id':_0x5df317,'type':_0x1a1730,'hasComments':_0x45f173,'data':_0x2cee63['data']||null,'originalSuggestionId':_0x2cee63['originalSuggestionId']||null,'attributes':_0x30a431['attributes']};this['_adapter']['addSuggestion'](_0x9faf23)['then'](_0x18821c=>{_0x30a431['_saved']=!0x0,_0x59d55f['remove'](_0x7c89ad),_0x18821c&&_0x18821c['createdAt']&&(this['_suggestions']['get'](_0x5df317)['createdAt']=_0x18821c['createdAt']);})['catch'](_0x2f857b=>{throw _0xc9df51('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x30a431['discard']();}),_0x30a431['stopListening'](),this['_suggestions']['delete'](_0x30a431['id']),this['_suggestionState']['delete'](_0x30a431),_0x2f857b;});}return _0x30a431;}['_isBlockAttribute'](_0x3d3fe0){return this['_blockAttributeKeys']['has'](_0x3d3fe0);}['_isInlineAttribute'](_0x452156){return this['_inlineAttributeKeys']['has'](_0x452156);}['_updateSuggestionData'](_0x379e27,_0x4607cd){const _0x428ea5=this['editor']['plugins']['get']('PendingActions'),_0x28623a=this['getSuggestion'](_0x379e27);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x28623a['_saved']){const _0x5e016c=_0x428ea5['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x379e27,_0x4607cd)['then'](()=>{_0x428ea5['remove'](_0x5e016c);});}else _0x28623a['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x379e27,_0x4607cd);});}}['_getSuggestionData'](_0x381ece){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5a4829('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x381ece);}['_handleNewSuggestionMarker'](_0x3ea535){const {id:_0x1c0a43,type:_0x3132e3,subType:_0x563ea8,authorId:_0xed9ad6}=this['_splitMarkerName'](_0x3ea535),_0x20d567=this['_suggestions']['get'](_0x1c0a43)||this['_createSuggestion'](_0x3132e3,_0x563ea8,_0x1c0a43,_0xed9ad6,{});switch(this['_checkSuggestionCorrectness'](_0x20d567,_0x3132e3,_0x563ea8,_0xed9ad6),this['_suggestionState']['get'](_0x20d567)){case'notReady':this['_getSuggestionData'](_0x1c0a43)['then'](_0x91bb29=>{let _0x237256=Promise['resolve']();_0x91bb29['hasComments']&&(_0x237256=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1c0a43})),_0x237256['then'](()=>{this['addSuggestionData'](_0x91bb29)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x20d567,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1c0a43,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x20d567,'ready'),this['fire']('suggestionLoaded',_0x20d567);break;case'ready':this['fire']('suggestionChanged',_0x20d567);}return _0x20d567['addMarkerName'](_0x3ea535),_0x20d567;}['_refreshSuggestionsChain'](_0x26ba39){const _0x523d75=Array['from'](_0x26ba39),_0x2cc96a=_0x523d75['filter'](_0x5e531d=>'attribute'==_0x5e531d['type']);this['_refreshAttributeSuggestionsChain'](_0x2cc96a);const _0x2b28a5=_0x523d75['filter'](_0x1591c4=>!_0x1591c4['isMultiRange']&&'attribute'!=_0x1591c4['type']),_0x1c7247=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4ba3c1=>!_0x4ba3c1['isMultiRange']&&'attribute'!=_0x4ba3c1['type']),_0x157d3e=_0x1c7247['filter'](_0x17bf61=>!_0x26ba39['has'](_0x17bf61)),_0x321f82=new Map(_0x1c7247['map'](_0x3e3b30=>[_0x3e3b30,this['_suggestionFactory']['getSuggestionCallback'](_0x3e3b30['type'],_0x3e3b30['subType'],'chain')])),_0x133537=new Map(_0x1c7247['map'](_0x41451f=>[_0x41451f,_0x41451f['getFirstRange']()])),_0x3e8780=new Set(),_0x2263b9=new Set();for(let _0x218861=0x0;_0x218861<_0x2b28a5['length'];_0x218861++)_0x29be3e(_0x2b28a5[_0x218861],_0x2b28a5,_0x218861+0x1);for(let _0x24824b=0x0;_0x24824b<_0x2b28a5['length'];_0x24824b++)_0x29be3e(_0x2b28a5[_0x24824b],_0x157d3e,0x0);const _0x32cfd6=new Set();for(let _0x19ccf8=0x0;_0x19ccf8<_0x2b28a5['length'];_0x19ccf8++){const _0x388de2=_0x2b28a5[_0x19ccf8];!_0x2263b9['has'](_0x388de2)&&_0x388de2['previous']&&(_0x32cfd6['add'](_0x388de2['previous']),_0x388de2['previous']['next']===_0x388de2&&(_0x388de2['previous']['next']=null),_0x388de2['previous']=null),!_0x3e8780['has'](_0x388de2)&&_0x388de2['next']&&(_0x32cfd6['add'](_0x388de2['next']),_0x388de2['next']['previous']===_0x388de2&&(_0x388de2['next']['previous']=null),_0x388de2['next']=null);}function _0x29be3e(_0x3209c1,_0xd60935,_0x27689b){for(let _0x1b02fc=_0x27689b;_0x1b02fc<_0xd60935['length'];_0x1b02fc++){const _0x1bc790=_0x11a35e(_0x3209c1,_0xd60935[_0x1b02fc]);_0x1bc790&&(_0x1bc790[0x0]['next']=_0x1bc790[0x1],_0x1bc790[0x1]['previous']=_0x1bc790[0x0],_0x3e8780['add'](_0x1bc790[0x0]),_0x2263b9['add'](_0x1bc790[0x1]));}}function _0x11a35e(_0x4488c6,_0x4e3f4d){if(_0x4488c6['author']['id']!==_0x4e3f4d['author']['id'])return null;const _0x27c832=_0x321f82['get'](_0x4488c6)(_0x4488c6,_0x4e3f4d,_0x133537['get'](_0x4488c6),_0x133537['get'](_0x4e3f4d));if(!_0x27c832)return null;return _0x321f82['get'](_0x4e3f4d)(_0x4488c6,_0x4e3f4d,_0x133537['get'](_0x4488c6),_0x133537['get'](_0x4e3f4d))?_0x27c832[0x1]['commentThread']&&_0x27c832[0x1]['commentThread']['length']?null:_0x27c832:null;}_0x32cfd6['size']&&this['_refreshSuggestionsChain'](_0x32cfd6);}['_refreshAttributeSuggestionsChain'](_0x93e2ac){if(0x0==_0x93e2ac['length'])return;const _0x1791bd=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2eb157=>'attribute'==_0x2eb157['type']&&_0x2eb157['_isDataLoaded']),_0x42ae3e=[],_0x1372a3=new Map();for(const _0x12bead of _0x1791bd){const _0x1fe375=_0x5e961d(_0x12bead['attributes']);_0x1372a3['has'](_0x1fe375)||(_0x1372a3['set'](_0x1fe375,_0x42ae3e['length']),_0x42ae3e['push']([]));const _0x2e9121=_0x1372a3['get'](_0x1fe375);_0x42ae3e[_0x2e9121]['push'](_0x12bead);}!(function(){_0x42ae3e['sort']((_0x4c9e81,_0x11c765)=>{const _0xf6632=_0x4c9e81[0x0]['createdAt'],_0x40e69a=_0x11c765[0x0]['createdAt'];return _0xf6632==_0x40e69a?_0x4c9e81[0x0]['attributes']['groupId']<_0x11c765[0x0]['attributes']['groupId']?-0x1:0x1:_0xf6632<_0x40e69a?-0x1:0x1;});for(const _0x493328 of _0x42ae3e)_0x493328['sort']((_0x3ba672,_0xf6716f)=>_0x3ba672['id']<_0xf6716f['id']?-0x1:0x1);}());for(let _0x54f5b0=0x0;_0x54f5b0<_0x42ae3e['length'];_0x54f5b0++){if(0x0==_0x42ae3e[_0x54f5b0]['length'])continue;const _0x2ccbf8=[];for(let _0x16c97e=_0x54f5b0+0x1;_0x16c97e<_0x42ae3e['length'];_0x16c97e++)0x0!=_0x42ae3e[_0x16c97e]['length']&&_0x196694(_0x42ae3e[_0x54f5b0],_0x42ae3e[_0x16c97e])&&_0x2ccbf8['push'](_0x16c97e);for(const _0x266e62 of _0x2ccbf8)_0x42ae3e[_0x54f5b0]=_0x42ae3e[_0x54f5b0]['concat'](_0x42ae3e[_0x266e62]),_0x42ae3e[_0x266e62]=[];}for(const _0x52a154 of _0x42ae3e)for(let _0x2a38b0=0x0;_0x2a38b0<_0x52a154['length'];_0x2a38b0++){const _0x442a66=_0x52a154[_0x2a38b0+0x1]||null;_0x52a154[_0x2a38b0]['next']!==_0x442a66&&(_0x52a154[_0x2a38b0]['next']=_0x442a66);}for(const _0x4486bd of _0x42ae3e)for(let _0x3a1099=0x0;_0x3a1099<_0x4486bd['length'];_0x3a1099++){const _0x128fc3=_0x4486bd[_0x3a1099-0x1]||null;_0x4486bd[_0x3a1099]['previous']!==_0x128fc3&&(_0x4486bd[_0x3a1099]['previous']=_0x128fc3);}function _0x196694(_0x2c8cfb,_0x3773a7){if(_0x2c8cfb[0x0]['attributes']['groupId']!==_0x3773a7[0x0]['attributes']['groupId']&&_0x2c8cfb[0x0]['author']!==_0x3773a7[0x0]['author'])return!0x1;if(!function(_0x3c1989,_0x144d09){if(!_0x3c1989['hasComments']&&!_0x144d09['hasComments'])return!0x0;if(_0x3c1989['hasComments']&&_0x144d09['hasComments'])return!0x1;if(_0x3c1989['hasComments']&&_0x144d09['createdAt']<_0x3c1989['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x144d09['hasComments']&&_0x3c1989['createdAt']<_0x144d09['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2c8cfb[0x0],_0x3773a7[0x0]))return!0x1;const _0x2e040e=Kt(_0x2c8cfb[0x0]['attributes'],['groupId','trackingSessionId']),_0x3c9f65=Kt(_0x3773a7[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x5578d7(_0x2e040e,_0x3c9f65))return!0x1;if(_0x2c8cfb[0x0]['attributes']['groupId']==_0x3773a7[0x0]['attributes']['groupId'])return!0x0;if(_0x2c8cfb[0x0]['attributes']['trackingSessionId']!==_0x3773a7[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x2c8cfb['every'](_0x37c341=>_0x3773a7['some'](_0x5ef3cd=>_0x37c341['getFirstRange']()['isEqual'](_0x5ef3cd['getFirstRange']())))&&_0x3773a7['every'](_0x2e6d79=>_0x2c8cfb['some'](_0x23b841=>_0x2e6d79['getFirstRange']()['isEqual'](_0x23b841['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1fc384){const _0x426f55=Array['from'](_0x1fc384),_0x2f470c=this['getSuggestions']({'skipNotAttached':!0x0}),_0x24ba9d=_0x2f470c['filter'](_0x4ddb0e=>!_0x1fc384['has'](_0x4ddb0e)),_0x502e82=new Map(_0x426f55['map'](_0xb1b2b1=>[_0xb1b2b1,this['_suggestionFactory']['getSuggestionCallback'](_0xb1b2b1['type'],_0xb1b2b1['subType'],'join')])),_0x57e7ae=new Map(_0x2f470c['map'](_0x4e9be6=>[_0x4e9be6,_0x4e9be6['getRanges']()]));for(let _0x3f91e4=0x0;_0x3f91e4<_0x426f55['length'];_0x3f91e4++){if(_0x1bd0dc(this,_0x426f55[_0x3f91e4],_0x426f55,_0x3f91e4+0x1))return!0x0;}for(let _0x3fb03f=0x0;_0x3fb03f<_0x426f55['length'];_0x3fb03f++){if(_0x1bd0dc(this,_0x426f55[_0x3fb03f],_0x24ba9d,0x0))return!0x0;}return!0x1;function _0x1bd0dc(_0x388919,_0x450d6b,_0x421142,_0x2502ca){for(let _0xbe6a53=_0x2502ca;_0xbe6a53<_0x421142['length'];_0xbe6a53++){const _0x4c831a=_0x421142[_0xbe6a53];if(_0x4c831a['type']!==_0x450d6b['type']||_0x4c831a['author']['id']!==_0x450d6b['author']['id']||_0x4c831a['subType']!==_0x450d6b['subType'])continue;if(!se(_0x450d6b,_0x4c831a))continue;if('attribute'==_0x450d6b['type']&&_0x450d6b['data']['oldValue']!=_0x4c831a['data']['oldValue'])continue;if('attribute'==_0x450d6b['type']&&_0x388919['_isBlockAttribute'](_0x450d6b['data']['key']))continue;if('formatBlock'==_0x450d6b['type']){const _0x3a0d38=_0x388919['editor']['model'],_0x26f725=_0x450d6b['getContainedElement']();if(_0x26f725&&(_0x3a0d38['schema']['isObject'](_0x26f725)||_0x3a0d38['schema']['isLimit'](_0x26f725)))continue;}const _0x36039b=_0x502e82['get'](_0x450d6b),_0x3f8814=_0x57e7ae['get'](_0x450d6b),_0x5aec5a=_0x57e7ae['get'](_0x4c831a),_0x31251d=_0x450d6b['commentThread']&&_0x450d6b['commentThread']['length'],_0x445a0f=_0x4c831a['commentThread']&&_0x4c831a['commentThread']['length'];if(!_0x31251d&&_0x36039b(_0x5aec5a,_0x3f8814))return _0x388919['_joinSuggestions'](_0x4c831a,_0x450d6b),_0x57e7ae['delete'](_0x450d6b),!0x0;if(!_0x445a0f&&_0x36039b(_0x3f8814,_0x5aec5a))return _0x388919['_joinSuggestions'](_0x450d6b,_0x4c831a),_0x57e7ae['delete'](_0x4c831a),!0x0;}return!0x1;}}['_joinSuggestions'](_0x388003,_0x202248){if(_0x388003['isMultiRange']){for(const _0x4de867 of _0x202248['getRanges']())_0x388003['addRange'](_0x4de867);}else{const _0x3f1af0=_0x202248['getFirstRange']()['end'];this['_setSuggestionRange'](_0x388003,this['_model']['createRange'](_0x388003['getFirstRange']()['start'],_0x3f1af0));}_0x202248['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1c20b5,_0x125cf8,_0x590cfc){const _0xd9eaa8=_0x1c20b5['startsWith']('format')||_0x1c20b5['startsWith']('attribute')?'FORMATTING':_0x1c20b5['toUpperCase']();return o(this['editor']['locale'],_0x125cf8+'_'+_0xd9eaa8+'_SUGGESTION_ANNOUNCEMENT',_0x590cfc);}['_initAriaMarkerChangeAnnouncements'](){const _0x1528f2=this['editor'];if(!_0x1528f2['ui'])return;const {ariaLiveAnnouncer:_0x1ad0d1}=_0x1528f2['ui'];_0x21fdb7(this['_model'],({left:_0x5d6792,entered:_0x2bfdf2})=>{for(const _0x5163a5 of _0x5d6792){const {group:_0x122ae9,type:_0x5899ab}=this['_splitMarkerName'](_0x5163a5['name']);if('suggestion'===_0x122ae9){_0x1ad0d1['announce'](this['_getMarkerAnnouncementText'](_0x5899ab,'LEAVE'));break;}}for(const _0x203f9f of _0x2bfdf2){const {group:_0x29d6cb,type:_0x501595}=this['_splitMarkerName'](_0x203f9f['name']);if('suggestion'===_0x29d6cb){_0x1ad0d1['announce'](this['_getMarkerAnnouncementText'](_0x501595,'ENTER',_0x5e22ae(_0x47d113)));break;}}});}['_processAttributeChanges'](_0x5bc5d3){if(this['_recordAttributeSuggestions'])return!0x1;const _0x24e3cd=this['editor'],_0x456561=_0x24e3cd['model']['document']['differ']['getChanges']();if(0x0==_0x456561['length'])return!0x1;const _0x3da029=[],_0x360b77=_0x456561['filter'](_0x2b7ceb=>'attribute'==_0x2b7ceb['type']),_0x7b11b3=_0x456561['filter'](_0x562052=>'insert'==_0x562052['type']&&'$text'!=_0x562052['name']),_0x3506c3=_0x456561['filter'](_0x49b43d=>'remove'==_0x49b43d['type']&&'$text'!=_0x49b43d['name']);for(const _0x153a6e of _0x360b77)_0x3da029['push']({'key':_0x153a6e['attributeKey'],'newValue':_0x153a6e['attributeNewValue'],'oldValue':_0x153a6e['attributeOldValue'],'range':ee(_0x153a6e['range'],_0x24e3cd['model'])});for(const _0x935139 of _0x7b11b3){const _0x39d62d=_0x3506c3['find'](_0x120be3=>_0x120be3['position']['isEqual'](_0x935139['position']));_0x39d62d&&_0x3da029['push']({'key':m,'newValue':_0x935139['name'],'oldValue':_0x39d62d['name'],'range':_0x24e3cd['model']['createRangeOn'](_0x935139['position']['nodeAfter'])});}return 0x0!=_0x3da029['length']&&this['_reduceExistingSuggestions'](_0x5bc5d3,_0x3da029);}['_processAttributeSuggestions'](_0x29833b){let _0x3bee12=!0x1;const _0x599ee0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x16dbfc=>_0x16dbfc['data']['newRange']&&_0x16dbfc['name']['startsWith']('suggestion:attribute:'));for(const _0x2d17f2 of _0x599ee0){const {subType:_0x1de084,id:_0x38cc0a}=this['_splitMarkerName'](_0x2d17f2['name']),_0x9d215e=_0x1de084['split']('|')[0x0];for(const _0x65093e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x65093e['id']!=_0x38cc0a&&'attribute'==_0x65093e['type']&&_0x65093e['data']&&_0x65093e['data']['key']==_0x9d215e&&_0x65093e['getFirstRange']()['isIntersecting'](_0x2d17f2['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x65093e,_0x2d17f2['data']['newRange'],_0x29833b),_0x3bee12=!0x0);}return _0x3bee12;}['recordAttributeChanges'](_0xe7a3e5){this['_recordAttributeSuggestions']=!0x0,_0xe7a3e5();}['_isRegisteredAttribute'](_0x45c559){const _0x248c72=this['_isBlockAttribute'](_0x45c559),_0x5287e3=this['_isInlineAttribute'](_0x45c559);return _0x248c72||_0x5287e3;}['_reduceExistingSuggestions'](_0x4d7ce9,_0x50b2a2){if(0x0==_0x50b2a2['length'])return!0x1;let _0x2b3389=!0x1;for(const _0x38559a of _0x50b2a2){const _0x5438a6=this['_findSuggestions'](_0x38559a['range'],'attribute')['filter'](_0x22ac02=>!_0x22ac02['meta']['isNextTo'])['map'](_0x661c22=>_0x661c22['suggestion']),_0x1863da=_0x5e961d({'newValue':_0x38559a['newValue']});_0x5438a6['filter'](_0x3954ca=>{const [_0x1b3144,_0x4bba2e]=_0x3954ca['subType']['split']('|');return _0x1b3144==_0x38559a['key']&&_0x4bba2e!=_0x1863da;})['forEach'](_0x1f70c7=>{this['_reduceSuggestionAttributeRange'](_0x1f70c7,_0x38559a['range'],_0x4d7ce9),_0x2b3389=!0x0;});}return _0x2b3389;}['_reduceSuggestionAttributeRange'](_0x1b0acc,_0x330ceb,_0x3c67be){const _0x114d87=_0x1b0acc['getFirstRange']()['getDifference'](_0x330ceb);0x0!==_0x114d87['length']?0x1!==_0x114d87['length']?this['_breakSuggestionMarker'](_0x1b0acc,_0x330ceb['start'],_0x330ceb['end']):this['_setSuggestionRange'](_0x1b0acc,_0x114d87[0x0]):_0x3c67be['removeMarker'](_0x1b0acc['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4a424d){this['_editor']=_0x4a424d,this['_model']=_0x4a424d['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x58c36e,_0x5b0f08,_0x1519eb,_0x260a67,_0x122b6a,_0x505a1f,_0x213694){return new R(this['_model'],{'type':_0x58c36e,'subType':_0x5b0f08,'id':_0x1519eb,'originalSuggestionId':_0x213694,'author':_0x260a67,'creator':_0x260a67,'attributes':_0x122b6a,'onAttributesChange':_0x505a1f,'onAccept':(..._0x1c0e74)=>this['getSuggestionCallback'](_0x58c36e,_0x5b0f08,'accept')(..._0x1c0e74),'onDiscard':(..._0x323820)=>this['getSuggestionCallback'](_0x58c36e,_0x5b0f08,'discard')(..._0x323820)});}['registerCustomCallback'](_0x3462b5,_0x39aeef,_0x5d2bd6,_0xcfe5c6){const _0x18cc91=_0x3462b5+':'+_0x39aeef+':'+_0x5d2bd6;this['_customCallbacks']['set'](_0x18cc91,_0xcfe5c6);}['getSuggestionCallback'](_0x400352,_0x363a57,_0x4bad5f){const _0x5339ea=_0x400352+':'+_0x363a57+':'+_0x4bad5f;return this['_customCallbacks']['get'](_0x5339ea)||this['_defaultCallbacks']['get'](_0x400352+':'+_0x4bad5f);}['_registerDefaultCallbacks'](){const _0x187d07=()=>!0x1,_0x552ab5=_0x44de4e=>{_0x44de4e['sort']((_0x3ff49b,_0x1346af)=>_0x3ff49b['start']['isBefore'](_0x1346af['start'])?0x1:-0x1),this['_model']['change'](_0x1c1955=>{for(const _0x50dea2 of _0x44de4e){let _0x40ff19;_0x40ff19=_0x50dea2['end']['isAtEnd']&&_0x50dea2['end']['parent']==_0x50dea2['start']['nodeAfter']?_0x1c1955['createSelection'](_0x50dea2['start']['nodeAfter'],'on'):_0x1c1955['createSelection'](_0x50dea2),this['_model']['deleteContent'](_0x40ff19,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x4c0ead=(_0x3cafa9,_0x279545)=>{_0x279545&&this['_model']['change'](_0x295749=>{const {commandName:_0x37b494,commandParams:_0x29e08b=[]}=_0x279545,_0x39191c=_0x3cafa9['map'](_0x51cf7d=>(Wt(_0x51cf7d)&&(_0x51cf7d=this['_model']['createRange'](_0x51cf7d['end'])),_0x51cf7d))['filter'](_0x47e9dd=>'$graveyard'!==_0x47e9dd['root']['rootName']);if(_0x39191c['length']<0x1)return;const _0x3c1844=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xc4055d=>_0x3d40b9['fromRange'](_0xc4055d));_0x295749['setSelection'](_0x39191c);for(const _0xe466da of this['_editor']['commands']['commands']())_0xe466da['refresh']();_0x29e08b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x37b494,..._0x29e08b);const _0x1fb4f8=_0x3c1844['filter'](_0xc95579=>'$graveyard'!=_0xc95579['root']['rootName']);_0x1fb4f8['length']>0x0&&_0x295749['setSelection'](_0x1fb4f8);for(const _0xface6f of _0x3c1844)_0xface6f['detach']();});},_0x12e4bd=(_0x29ddb0,_0x16bbdd)=>0x1==_0x29ddb0['length']&&0x1==_0x16bbdd['length']&&_0x29ddb0[0x0]['end']['isEqual'](_0x16bbdd[0x0]['start']),_0x3db565=(_0x28ba69,_0x3064b2,_0x5075fc,_0x548c56)=>ne(_0x28ba69,_0x3064b2,_0x5075fc,_0x548c56)?[_0x28ba69,_0x3064b2]:ne(_0x3064b2,_0x28ba69,_0x548c56,_0x5075fc)?[_0x3064b2,_0x28ba69]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x187d07),this['_defaultCallbacks']['set']('insertion:discard',_0x552ab5),this['_defaultCallbacks']['set']('insertion:join',_0x12e4bd),this['_defaultCallbacks']['set']('insertion:chain',_0x3db565),this['_defaultCallbacks']['set']('deletion:accept',_0x552ab5),this['_defaultCallbacks']['set']('deletion:discard',_0x187d07),this['_defaultCallbacks']['set']('deletion:join',_0x12e4bd),this['_defaultCallbacks']['set']('deletion:chain',_0x3db565),this['_defaultCallbacks']['set']('formatInline:accept',_0x4c0ead),this['_defaultCallbacks']['set']('formatInline:discard',_0x187d07),this['_defaultCallbacks']['set']('formatInline:join',_0x12e4bd),this['_defaultCallbacks']['set']('formatInline:chain',_0x187d07),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4c0ead),this['_defaultCallbacks']['set']('formatBlock:discard',_0x187d07),this['_defaultCallbacks']['set']('formatBlock:join',_0x12e4bd),this['_defaultCallbacks']['set']('formatBlock:chain',_0x187d07),this['_defaultCallbacks']['set']('attribute:accept',_0x187d07),this['_defaultCallbacks']['set']('attribute:discard',(_0x56c218,_0x43b451)=>{if(!_0x43b451)return;const _0x5ef8e6=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x167d14=>{if(_0x43b451['key']==m)for(const _0x17efc9 of _0x56c218){const _0x5b9e42=_0x17efc9['start']['nodeAfter'],_0x12a5f6=_0x43b451['oldValue'];_0x167d14['rename'](_0x5b9e42,_0x12a5f6);}else{if(_0x5ef8e6['_isBlockAttribute'](_0x43b451['key'])){for(const _0xd5fa0e of _0x56c218)void 0x0!==_0x43b451['oldValue']?_0x167d14['setAttribute'](_0x43b451['key'],_0x43b451['oldValue'],_0xd5fa0e['start']['nodeAfter']):_0x167d14['removeAttribute'](_0x43b451['key'],_0xd5fa0e['start']['nodeAfter']);}else{for(const _0x3cb319 of _0x56c218)_0x43b451['oldValue']?_0x167d14['setAttribute'](_0x43b451['key'],_0x43b451['oldValue'],_0x3cb319):_0x167d14['removeAttribute'](_0x43b451['key'],_0x3cb319);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x12e4bd);}}function Ht(_0x2fb46a,_0x12f6ff,_0x2824a0){for(const _0x1bac6f of _0x12f6ff['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1bac6f['root']==_0x1bac6f)return!0x1;if(!_0x2824a0['containsItem'](_0x1bac6f))return!0x1;if(_0x2fb46a['isObject'](_0x1bac6f)||_0x2fb46a['isLimit'](_0x1bac6f))return!0x0;}return!0x1;}function Wt(_0x40eb34){return _0x40eb34['end']['parent']==_0x40eb34['start']['nodeAfter']&&_0x40eb34['end']['isAtStart'];}function zt(_0x527819,_0x5c0b4a,_0xd5f8ac,_0x5c2c4e){const _0x2697c5=_0x407bbd=>!_0x407bbd['item']['is']('$textProxy')&&!_0x5c2c4e['isObject'](_0x407bbd['item']),_0x4dbbe7=_0x527819['start']['getLastMatchingPosition'](_0x2697c5),_0x35e5df=_0x527819['end']['getLastMatchingPosition'](_0x2697c5,{'direction':'backward'});return(!_0x527819['start']['isEqual'](_0x4dbbe7)||!_0x527819['end']['isEqual'](_0x35e5df))&&(_0x4dbbe7['isBefore'](_0x35e5df)?_0xd5f8ac['updateMarker'](_0x5c0b4a,{'range':_0xd5f8ac['createRange'](_0x4dbbe7,_0x35e5df)}):_0xd5f8ac['removeMarker'](_0x5c0b4a),!0x0);}function Qt(_0x398713){return _0x5e961d(_0x398713);}function Xt(_0x3d0035){const _0x4e4c39=_0x3d0035['start']['nodeAfter'];return _0x4e4c39&&_0x4e4c39['is']('element');}function Yt(_0x43249b){return Wt(_0x43249b)||function(_0x43191b){return _0x43191b['start']['parent']==_0x43191b['end']['nodeBefore']&&_0x43191b['start']['isAtEnd'];}(_0x43249b);}function Zt(_0x118c0e,_0x47e951){try{const _0x400072=_0x118c0e['getRange']();for(const _0x4eb99e of _0x47e951)if(_0x118c0e!==_0x4eb99e&&_0x400072&&_0x400072['isIntersecting'](_0x4eb99e['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function te(_0x5ed350,_0x3cfe07){const _0x1ef272=_0x5ed350['end']['nodeBefore'];if(_0x1ef272&&_0x1ef272['is']('element')&&_0x3cfe07['schema']['isBlock'](_0x1ef272)&&!_0x3cfe07['schema']['isObject'](_0x1ef272)){const _0x2b37b9=_0x3cfe07['createPositionAt'](_0x1ef272,'end');return _0x3cfe07['createRange'](_0x5ed350['start'],_0x2b37b9);}return _0x5ed350;}function ee(_0x1d30e7,_0x58b5d4){return null==_0x1d30e7['end']['nodeBefore']&&_0x1d30e7['end']['parent']==_0x1d30e7['start']['nodeAfter']?ie(_0x1d30e7['start']['nodeAfter'],_0x58b5d4):_0x1d30e7;}function ie(_0x2e33d2,_0x46a82d){const _0x440267=_0x46a82d['schema']['isObject'](_0x2e33d2)||_0x46a82d['schema']['isSelectable'](_0x2e33d2);return _0x46a82d['createRange'](_0x46a82d['createPositionAt'](_0x2e33d2,'before'),_0x440267?_0x46a82d['createPositionAfter'](_0x2e33d2):_0x46a82d['createPositionAt'](_0x2e33d2,'end'));}function ne(_0x3e5dff,_0x2e4af5,_0x254c0a,_0x94641f){return!!se(_0x3e5dff,_0x2e4af5)&&_0x254c0a['end']['isEqual'](_0x94641f['start']);}function se(_0x424485,_0x120f5e){if(!_0x424485['_isDataLoaded']||!_0x120f5e['_isDataLoaded'])return!0x1;const _0x51ecf4=new Set(Object['keys'](_0x424485['attributes'])),_0xeb0016=new Set(Object['keys'](_0x120f5e['attributes']));if(_0x51ecf4['delete']('groupId'),_0xeb0016['delete']('groupId'),0x0==_0x51ecf4['size']&&0x0==_0xeb0016['size'])return!0x0;if(_0x51ecf4['size']!=_0xeb0016['size'])return!0x1;const _0x34eaa1={..._0x424485['attributes']},_0x4e29ac={..._0x120f5e['attributes']};return delete _0x34eaa1['groupId'],delete _0x4e29ac['groupId'],JSON['stringify'](_0x34eaa1)==JSON['stringify'](_0x4e29ac);}function oe(_0x5763a4,_0x240d7f){const _0x1d698f=re(_0x5763a4['attributes']),_0x5507ee=re(_0x240d7f);if(!_0x5763a4['_isDataLoaded'])return!0x1;for(const _0x5e61fd of Object['keys'](_0x5507ee))if(!_0x5578d7(_0x1d698f[_0x5e61fd],_0x5507ee[_0x5e61fd]))return!0x1;return!0x0;}function re(_0x382b02){const _0x153fc6=Object['assign']({},_0x382b02);return delete _0x153fc6['skipNestingCheck'],delete _0x153fc6['tablePasteChainId'],_0x153fc6;}function ae(_0x57ccbb){return _0x57ccbb['split']('|')[0x0];}function ce(_0xf40a7f,_0x1273d2){for(const [_0x1deef0,_0x29f497]of _0xf40a7f['markers']){const _0x49df39=_0x4e5d4b['_createFromRanges'](_0x29f497['getTransformedByOperation'](_0x1273d2));_0xf40a7f['markers']['set'](_0x1deef0,_0x49df39);}}class xe extends/* #__PURE__ -- @preserve */
26
- _0x2def01(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x220d88,_0x3592fa,_0x4614ba,_0x3218ed){super(),this['model']=_0x3592fa,this['view']=_0x4614ba,this['commentThreadController']=_0x3218ed,this['_editor']=_0x220d88,this['_acceptCommand']=_0x220d88['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x220d88['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1cf08f,_0x16bd0c)=>_0x1cf08f||_0x16bd0c),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5aead9=>_0x5aead9&&this['_editor']['model']['canEditAt'](_0x3592fa['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x125f8e=>_0x125f8e&&this['_editor']['model']['canEditAt'](_0x3592fa['getRanges']())),this['_pendingAction']=null,_0x4614ba['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4614ba,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4614ba,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4614ba,'change:isDirty',()=>{_0x4614ba['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 _0x25b53f=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x25b53f);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x16d85e{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1ca254,_0x1d991b,_0x32ff53,_0x5306a6){super(_0x1ca254),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xa7cd6f(_0x1ca254,o(_0x1ca254,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1d991b['authoredAt']),this['bind']('authoredAt')['to'](_0x1d991b),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x1d991b,'authoredAt',this,'descriptionParts',(_0x3a362e,_0x41c9d9,_0x2ecc48)=>{const _0x7f156f=_0x2ecc48['map'](_0x4ef08f=>ls(_0x4ef08f['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3a362e-0x1,_0x1d991b['author']['name'],_0x41c9d9?_0x5306a6['formatDateTime'](_0x41c9d9):'',new DOMParser()['parseFromString'](_0x7f156f,'text/html')['body']['textContent']]);}),this['focusables']=new _0x406985(),this['focusTracker']=new _0xc435d8(),this['keystrokes']=new _0x5dc328(),this['focusCycler']=new _0x580b2c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x25f077=>_0x25f077['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1d991b,this['_localUser']=_0x32ff53,this['_config']=_0x5306a6,_0x5306a6['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5d33c9(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xcb655f}=this['_config'];this['commentsListView']=new _0xcb655f(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',_0x90c62b=>_0x90c62b+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x42fff8,_0x3d572a)=>_0x42fff8||!!_0x3d572a);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x43105a}=this['_config'],_0x30e49f=new _0x43105a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3c6e50=_0x30e49f['commentInputView'];return _0x30e49f['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3c6e50,'value',(_0x32b231,_0x59c73e,_0xa27bd9)=>!!_0xa27bd9||_0x32b231&&!_0x59c73e),_0x3c6e50['on']('submit',(_0x3c1c68,_0x12eef3)=>{this['fire']('addComment',_0x12eef3),_0x3c6e50['editor']['setData']('');}),_0x3c6e50['on']('cancel',()=>this['focus']()),_0x3c6e50['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x30e49f;}}class Ae extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x355971,_0x490962,_0x39a3d4,_0x546b4c){super(_0x355971,_0x490962,_0x39a3d4,_0x546b4c),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x590463=>_0x590463&&_0x590463[0x0]?_0x590463[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2832d6,_0x23c85a)=>{let _0x1dd45e='';for(const _0x3d761b of _0x2832d6)_0x1dd45e+='<p>'+ls(_0x3d761b['content'],_0x3d761b['color'])+'</p>';return _0x23c85a?_0x1dd45e:_0x1a9b5a(_0x1dd45e,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x546b4c['SuggestionView'](_0x355971,_0x490962,{'formatDateTime':_0x546b4c['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x4cf78f=this['bindTemplate'],_0x4d8a0e=[this['suggestionView']];return this['commentsListView']&&_0x4d8a0e['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4d8a0e['push'](this['commentThreadInputView']),_0x4d8a0e['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4cf78f['if']('isActive','ck-suggestion-wrapper--active'),_0x4cf78f['to']('type',_0x23f608=>'ck-suggestion-'+_0x23f608),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':0x0,'role':'listitem','aria-label':_0x4cf78f['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4d8a0e};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class Ee extends _0x16d85e{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x17e7e7,_0xb17ea8,_0x3fc200){super(_0x17e7e7),this['_model']=_0xb17ea8,this['_config']=_0x3fc200,this['set']('description',''),this['bind']('authoredAt')['to'](_0xb17ea8),this['acceptButton']=this['_createButton'](o(_0x17e7e7,'Accept\x20suggestion'),_0x461762,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x17e7e7,'Discard\x20suggestion'),_0x53f153,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3cfc9e(_0x17e7e7,_0xb17ea8['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x406985([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0xc435d8(),this['keystrokes']=new _0x5dc328(),this['focusCycler']=new _0x580b2c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x322247=>_0x322247['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x55ee2d=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x55ee2d['innerHTML']=this['description'],this['on']('change:description',(_0x5d0f11,_0x237ddc,_0x2e0810)=>{_0x55ee2d['innerHTML']=_0x2e0810;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x488f3c=this['bindTemplate'],_0xc64fd9=[{'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'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x488f3c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x488f3c['to']('authoredAt',_0x3412af=>this['_config']['formatDateTime'](_0x3412af))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0xc64fd9['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0xc64fd9}]};}['focus'](){this['element']['focus']();}['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;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x2273ad,_0x4d8637,_0x29cc7c,_0x5eea44,_0x5f826e){const _0x41a94c=new _0x8c1f8b(this['locale']);return _0x41a94c['set']({'label':_0x2273ad,'icon':_0x4d8637,'tooltip':!0x0,'tooltipPosition':_0x5f826e}),_0x41a94c['extendTemplate']({'attributes':{'class':_0x29cc7c}}),_0x41a94c['on']('execute',()=>{this['fire'](_0x5eea44,this['_model']['id']);}),_0x41a94c;}['_setupKeyboardNavigation'](){const _0x8bf54e=this['element'];this['keystrokes']['listenTo'](_0x8bf54e);for(const _0x2fc473 of this['focusables'])this['focusTracker']['add'](_0x2fc473['element']),this['keystrokes']['listenTo'](_0x2fc473['element']);this['keystrokes']['set']('enter',(_0x2a0e64,_0x44ed8a)=>{_0x8bf54e===_0x2a0e64['target']&&(this['focusCycler']['focusFirst'](),_0x44ed8a());}),this['keystrokes']['set']('esc',(_0x5b18f8,_0x4b7864)=>{_0x8bf54e!==_0x5b18f8['target']&&(this['focus'](),_0x4b7864());});}}class u extends _0x4e7f5a{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x57807f,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5cd2ce){super(_0x5cd2ce),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x15e9e8=this['editor']['config'];_0x15e9e8['define']('trackChanges.SuggestionThreadView',Ae),_0x15e9e8['define']('trackChanges.SuggestionView',Ee),_0x15e9e8['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x15e9e8['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x54b254,_0x20b3a9){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2a8fee,_0x4c29a9]of this['_handleControllerBuffer']){const _0x4ef269=this['_suggestionToController']['has'](_0x2a8fee);_0x4ef269||_0x4c29a9?_0x4ef269&&_0x4c29a9&&this['_destroyController'](_0x2a8fee):this['_initializeController'](_0x2a8fee);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x54b254,_0x20b3a9);}['init'](){const _0x242141=this['editor'],_0x30c0b2=_0x242141['plugins']['get']('TrackChangesEditing'),_0x38194d=_0x242141['plugins']['get']('Annotations'),_0x5ca0ca=_0x242141['plugins']['get']('EditorAnnotations'),_0x38619f=_0x242141['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5ca0ca['addSourceCollector'](()=>{const _0x44595e=[];for(const [_0x2bf56a,_0x4a75bf]of Array['from'](this['_suggestionToController'])){const _0x2ebd74=_0x2bf56a['getAllAdjacentSuggestions'](),_0x39a4a2=[];for(const _0x27c56f of _0x2ebd74){if(!_0x27c56f['isInContent'])continue;if(_0x27c56f['isMultiRange']){_0x39a4a2['push'](..._0x27c56f['getRanges']());continue;}const _0x468887=_0x27c56f['getFirstRange']();if(_0x39a4a2['length']>0x0){const _0x2e369c=_0x39a4a2[0x0]['getJoined'](_0x468887);if(_0x2e369c){_0x39a4a2[0x0]=_0x2e369c;continue;}}_0x39a4a2['push'](_0x468887);}_0x44595e['push']([_0x4a75bf['view'],_0x39a4a2]);}return _0x44595e;}),this['listenTo'](_0x30c0b2,'suggestionLoaded',(_0x4dc551,_0x5a1323)=>{this['listenTo'](_0x5a1323,'change:previous',(_0x1e5e82,_0x4dbb1a,_0x338fa2,_0x59307a)=>{_0x5a1323['isInContent']&&(null==_0x338fa2?(this['_updateController'](_0x59307a['head']),this['_handleSuggestionControllerDelayed'](_0x5a1323,!0x1)):(this['_updateController'](_0x338fa2['head']),null==_0x59307a&&this['_handleSuggestionControllerDelayed'](_0x5a1323,!0x0)));}),null!==_0x5a1323['previous']?this['_updateController'](_0x5a1323['head']):this['_handleSuggestionControllerDelayed'](_0x5a1323,!0x1);}),this['listenTo'](_0x30c0b2,'suggestionUnloaded',(_0xdc9dcf,_0x2f1dfc,_0x3ff59a)=>{this['stopListening'](_0x2f1dfc,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2f1dfc),this['_suggestionToController']['has'](_0x2f1dfc)&&this['_destroyController'](_0x2f1dfc),_0x3ff59a&&this['_updateController'](_0x3ff59a['head']);}),this['listenTo'](_0x30c0b2,'suggestionChanged',(_0x217ab3,_0x30d822)=>{this['_updateController'](_0x30d822);}),this['listenTo'](_0x38194d,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x38619f,'addComment',(_0x445093,{threadId:_0x251531,isFromAdapter:_0x432567})=>{if(_0x432567||!_0x30c0b2['hasSuggestion'](_0x251531))return;const _0x6c7c1b=_0x30c0b2['getSuggestion'](_0x251531);this['_suggestionToController']['get'](_0x6c7c1b)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4fa3f9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xe7fd;for(const _0x362b5c in _0x4fa3f9){const _0x5a2568=_0x362b5c,_0x39525b=_0x4fa3f9[_0x5a2568];if('trackChangesLicenseKeyValid'==_0x39525b||'trackChangesLicenseKeyInvalid'==_0x39525b||'trackChangesLicenseKeyExpired'==_0x39525b||'trackChangesLicenseKeyDomainLimit'==_0x39525b||'trackChangesLicenseKeyNotAllowed'==_0x39525b||'trackChangesLicenseKeyEvaluationLimit'==_0x39525b||'trackChangesLicenseKeyTrialLimit'==_0x39525b||'trackChangesLicenseKeyUsageLimit'==_0x39525b){delete _0x4fa3f9[_0x5a2568],_0xe7fd=_0x39525b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0xe7fd&&_0x4fa3f9['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0xe7fd&&_0x4fa3f9['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0xe7fd&&_0x4fa3f9['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0xe7fd&&_0x4fa3f9['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0xe7fd&&_0x4fa3f9['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0xe7fd&&_0x4fa3f9['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0xe7fd&&_0x4fa3f9['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0xc65c82){const _0x3d52ed=this['_suggestionToController']['get'](_0xc65c82);if(!_0x3d52ed)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x3d52ed['view'])||null;}['getSuggestionForAnnotation'](_0x168b95){const _0x2d01ed=this['_viewToController']['get'](_0x168b95['innerView']);return _0x2d01ed?_0x2d01ed['model']:null;}['_refreshActiveMarkers'](){const _0x453cd0=this['editor']['plugins']['get']('Annotations'),_0x4f674e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e9678=Array['from'](_0x453cd0['activeAnnotations'],_0x19d9cc=>_0x19d9cc['innerView'])['filter'](_0x4f1041=>this['_viewToController']['has'](_0x4f1041)),_0x1f18e1=[];for(const _0x60bc5 of _0x4e9678){const _0x5a6545=this['_viewToController']['get'](_0x60bc5)['model']['getAllAdjacentSuggestions']();_0x1f18e1['push'](..._0x5a6545['reduce']((_0x2cebf6,_0x5d474b)=>[..._0x2cebf6,..._0x5d474b['getMarkerNames']()],[]));}_0x4f674e['activeMarkers']=_0x1f18e1;}['_addUIComponentsToFactory'](){const _0x176aa3=this['editor'],_0x2311b4=_0x176aa3['locale'],_0x288050=o(_0x2311b4,'Track\x20changes'),_0x23555f=new _0x3edcbf([{'type':'switchbutton','model':new _0x20f578({'withText':!0x0,'isToggleable':!0x0,'label':_0x288050,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x20f578({'withText':!0x0,'label':o(_0x2311b4,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x20f578({'withText':!0x0,'label':o(_0x2311b4,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x20f578({'withText':!0x0,'label':o(_0x2311b4,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x20f578({'withText':!0x0,'label':o(_0x2311b4,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x176aa3['plugins']['has']('TrackChangesPreview')&&_0x23555f['addMany']([{'type':'separator'},{'type':'button','model':new _0x20f578({'withText':!0x0,'label':o(_0x2311b4,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2b9839 of _0x23555f)if(Ke(_0x2b9839)){const _0x432ab6=_0x176aa3['commands']['get'](_0x2b9839['model']['commandName']);_0x2b9839['model']['bind']('isOn','isEnabled')['to'](_0x432ab6,'value','isEnabled');}_0x176aa3['ui']['componentFactory']['add']('trackChanges',_0x337c2c=>this['_createToolbarButton'](_0x337c2c,_0x23555f,_0x288050)),_0x176aa3['ui']['componentFactory']['add']('menuBar:trackChanges',_0x40cf03=>this['_createMenuBarMenu'](_0x40cf03,_0x23555f,_0x288050));}['_createToolbarButton'](_0xa6d15f,_0x5d9923,_0x5ba354){const _0x454355=_0x4f4152(_0xa6d15f,_0x11da7c),_0x5b861b=this['editor']['commands']['get']('trackChanges');_0x454355['buttonView']['set']({'tooltip':_0x5ba354,'label':_0x5ba354,'icon':_0x2784bc}),_0x454355['buttonView']['bind']('isOn')['to'](_0x5b861b,'value'),_0x454355['buttonView']['on']('execute',()=>{_0x5b861b['execute'](),this['editor']['editing']['view']['focus']();}),_0x2241b4(_0x454355,_0x5d9923,{'role':'menu'});const _0x51b18b=[];for(const _0x3ad346 of _0x5d9923)Ke(_0x3ad346)&&_0x51b18b['push'](this['editor']['commands']['get'](_0x3ad346['model']['commandName']));const _0x4930f1=_0x454355['buttonView'];return _0x4930f1['actionView']['unbind']('isEnabled'),_0x4930f1['arrowView']['unbind']('isEnabled'),_0x4930f1['actionView']['bind']('isEnabled')['to'](_0x5b861b,'isEnabled'),_0x4930f1['arrowView']['bind']('isEnabled')['toMany'](_0x51b18b,'isEnabled',(..._0x49d95c)=>_0x49d95c['some'](_0x34c66b=>_0x34c66b)),_0x454355['on']('execute',_0x226076=>{this['editor']['execute'](_0x226076['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x454355;}['_createMenuBarMenu'](_0x4e0922,_0x304ea6,_0x2ab8e7){const _0x3eab4a=new _0x17af2b(_0x4e0922),_0x2b2314=this['editor']['commands']['get']('trackChanges');_0x3eab4a['buttonView']['set']({'label':_0x2ab8e7,'icon':_0x2784bc});const _0x5bcc58=new _0x74cb29(_0x4e0922);for(const _0x46f129 of _0x304ea6){if('separator'==_0x46f129['type']){_0x5bcc58['items']['add'](new _0x2d6e36(_0x4e0922));continue;}const _0x402dad=new _0xa48ed1(_0x4e0922,_0x3eab4a),_0x4da2dc=new _0x23adcf(_0x4e0922),_0x3a735f=_0x46f129['model'];_0x4da2dc['bind'](...Object['keys'](_0x3a735f))['to'](_0x3a735f),_0x4da2dc['delegate']('execute')['to'](_0x3eab4a),_0x4da2dc['on']('execute',()=>{this['editor']['execute'](_0x3a735f['commandName']),this['editor']['editing']['view']['focus']();}),_0x402dad['children']['add'](_0x4da2dc),_0x5bcc58['items']['add'](_0x402dad);}return _0x3eab4a['bind']('isEnabled')['to'](_0x2b2314,'isEnabled'),_0x3eab4a['panelView']['children']['add'](_0x5bcc58),_0x3eab4a;}['_initializeController'](_0x8d17e3){const _0x536adc=this['editor'],_0x22ede9=_0x536adc['config'],_0x3219d4=_0x536adc['plugins']['get']('Annotations'),_0x5ef0c3=_0x536adc['plugins']['get']('CommentsRepository'),_0x6a5d=_0x536adc['plugins']['get']('EditorAnnotations'),_0x18a331=_0x536adc['plugins']['get'](_0x57807f)['me'],_0xdf03fd=_0x22ede9['get']('trackChanges')['SuggestionThreadView'],_0x234959=_0x22ede9['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x34684a,CommentThreadInputView:_0x258a08}=_0x536adc['plugins']['get']('CommentsUI');let _0xd05b15,_0x3a326e,_0x1545ea;this['_annotationViews']['has'](_0x8d17e3['id'])?(_0x3a326e=this['_annotationViews']['get'](_0x8d17e3['id']),_0xd05b15=_0x3a326e['mainView']):(_0xd05b15=new _0xdf03fd(_0x536adc['locale'],_0x8d17e3,_0x18a331,{'disableComments':this['_disableComments'],'editorConfig':{..._0x22ede9['get']('comments.editorConfig'),'licenseKey':_0x22ede9['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x22ede9['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x22ede9['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x22ede9['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x128e55(_0x22ede9['get']('locale'),_0x536adc['locale']),'CommentView':_0x22ede9['get']('comments')['CommentView'],'CommentsListView':_0x34684a,'CommentThreadInputView':_0x258a08,'SuggestionView':_0x234959}),_0xd05b15['suggestionView']['acceptButton']['on']('execute',()=>{_0x536adc['editing']['view']['focus']();}),_0xd05b15['suggestionView']['discardButton']['on']('execute',()=>{_0x536adc['editing']['view']['focus']();}),_0x3a326e=_0x3219d4['createAnnotationView'](this['editor']['locale'],_0xd05b15),_0x3a326e['bind']('isDirty')['to'](_0xd05b15,'isDirty'),_0x3a326e['bind']('length')['to'](_0xd05b15),_0x3a326e['bind']('type')['to'](_0xd05b15,'type',_0x377468=>'suggestion-'+_0x377468),_0xd05b15['on']('escape',()=>{_0x1545ea['fire']('escape');}),this['_annotationViews']['set'](_0x8d17e3['id'],_0x3a326e));const _0x39c011=_0x5ef0c3['createCommentThreadController'](_0x8d17e3['commentThread'],_0xd05b15),_0x1622ac=new xe(_0x536adc,_0x8d17e3,_0xd05b15,_0x39c011),_0xb1648c=_0x8d17e3['getAllAdjacentSuggestions']()['filter'](_0xda5b7f=>_0xda5b7f['isInContent']);_0xd05b15['descriptionParts']=_0x536adc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xb1648c),this['_suggestionToController']['set'](_0x8d17e3,_0x1622ac),this['_viewToController']['set'](_0xd05b15,_0x1622ac);const _0x3be56d=()=>{const _0x5e8761=[],_0x543667=_0x8d17e3['getAllAdjacentSuggestions']()['filter'](_0x5967e8=>_0x5967e8['isInContent']);for(const _0x17c1db of _0x543667)_0x5e8761['push'](..._0x17c1db['getMarkers']());return _0x4c9d1b(_0x536adc['editing'],_0x5e8761);};_0x1545ea=_0x3219d4['createAnnotation']({'view':_0x3a326e,'target':_0x3be56d,'type':()=>'suggestion-'+_0x1622ac['view']['type'],'isVisible':!!_0x3be56d()}),_0x5ef0c3['_bindAnnotationToEditors'](_0xd05b15,_0x1545ea),_0x3219d4['add'](_0x1545ea),_0x6a5d['registerAnnotation'](_0x1545ea);}['_destroyController'](_0x4f3c3c){const _0xefb75d=this['editor']['plugins']['get']('CommentsRepository'),_0x575c77=this['editor']['plugins']['get']('Annotations'),_0x496641=this['_suggestionToController']['get'](_0x4f3c3c),_0x51bdda=_0x496641['view'],_0x272300=_0x575c77['getByInnerView'](_0x51bdda);_0xefb75d['_unbindEditors'](_0x51bdda),_0x272300&&_0x575c77['remove'](_0x272300),this['_suggestionToController']['delete'](_0x4f3c3c),this['_viewToController']['delete'](_0x51bdda),_0x496641['destroy']();}['_updateController'](_0x50039f){if(!_0x50039f['isInContent']||!this['_suggestionToController']['has'](_0x50039f))return;const _0x59fe00=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22aa08=this['_suggestionToController']['get'](_0x50039f),_0x15120e=_0x50039f['getAllAdjacentSuggestions']();_0x22aa08['view']['descriptionParts']=_0x59fe00['descriptionFactory']['getDescriptions'](_0x15120e);}['destroy'](){for(const _0x2e2c86 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2e2c86);for(const _0x3bbb32 of this['_annotationViews']['values']())_0x3bbb32['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Ke(_0x39c2b0){return'model'in _0x39c2b0;}class Xe extends _0x4e7f5a{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4694ea){this['editor']['plugins']['get'](d)['adapter']=_0x4694ea;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x39788e){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x39788e);}['getSuggestions']({skipNotAttached:_0x369b5d=!0x1,toJSON:_0x4b78b0=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x369b5d,'toJSON':_0x4b78b0});}['getSuggestion'](_0x1527ee){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x1527ee);}}const p=['Pagination'];class ue extends _0x4e7f5a{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xfc40a6=this['editor'];if(_0xfc40a6['config']['define']('trackChangesData.editorCreator',_0x5f3c2e=>{const _0x3aa845=_0xfc40a6['model']['document']['getRootNames']()['reduce']((_0x2a929e,_0x2e3609)=>(_0x2a929e[_0x2e3609]='',_0x2a929e),{});return _0xfc40a6['constructor']['create'](_0x3aa845,_0x5f3c2e);}),'function'!=typeof _0xfc40a6['config']['get']('trackChangesData')['editorCreator'])throw new _0x5a4829('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x394151){return P(this['editor'],!0x0,_0x394151);}['getDataWithDiscardedSuggestions'](_0x225d24){return P(this['editor'],!0x1,_0x225d24);}}class Ye extends _0x4e7f5a{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2f06df){function _0x20c372(_0x53dce5){return _0x53dce5['map'](_0x7aba07=>String['fromCharCode'](_0x7aba07))['join']('');}super(_0x2f06df),this['result']='end',_0x2f06df[_0x20c372([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20c372([0x76,0x69,0x65,0x77])][_0x20c372([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x20c372([0x61,0x75,0x74,0x6f]),_0x2f06df[_0x20c372([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x20c372([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x20c372([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x20c372([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x20c372([0x6f,0x6b])});}['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 Qe(_0x297d30){return void 0x0!==_0x297d30['getRootsAttributes'];}async function P(_0x11f0fe,_0x9122f8,_0x67c3fd){const _0x111ce7=_0x3e3c2c(_0x11f0fe,p);_0x111ce7['plugins']['push'](d,Ye),_0x111ce7['rootsAttributes']=Qe(_0x11f0fe)?_0x11f0fe['getRootsAttributes']():void 0x0;const _0x5ca5ec=document['createDocumentFragment'](),_0x46b093=_0x11f0fe['config']['get']('trackChangesData')['editorCreator'],_0x2a1461=await _0x46b093(_0x111ce7,()=>function(_0x3955ef){const _0xb9febf=document['createElement']('div');return _0x3955ef['appendChild'](_0xb9febf),_0xb9febf;}(_0x5ca5ec));!function(_0x2f8b9b,_0x78ae92){const _0x125853=_0x2f8b9b['model']['document']['getRootNames']()['reduce']((_0x457d4a,_0x5b1779)=>(_0x457d4a[_0x5b1779]=_0x2f8b9b['data']['get']({'rootName':_0x5b1779}),_0x457d4a),{}),_0x216e61=_0x2f8b9b['plugins']['get']('Users')['users']['map'](_0x3428ef=>({'id':_0x3428ef['id'],'name':_0x3428ef['name']})),_0x378938=_0x2f8b9b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x54e2b4=_0x2f8b9b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x351743=_0x78ae92['plugins']['get']('Users'),_0x5b1a5d=_0x78ae92['plugins']['get']('TrackChangesEditing'),_0x3e11db=_0x78ae92['plugins']['get']('CommentsRepository');for(const _0x12a3e4 of _0x3e11db['getCommentThreads']())_0x12a3e4['remove']();for(const _0x217572 of _0x216e61)_0x351743['getUser'](_0x217572['id'])||_0x351743['addUser'](_0x217572);_0x351743['me']||_0x351743['useAnonymousUser']();for(const _0x30bd9d of _0x54e2b4)_0x3e11db['addCommentThread'](_0x30bd9d);for(const _0x451a5e of _0x378938)_0x5b1a5d['addSuggestionData'](_0x451a5e);_0x78ae92['data']['set'](_0x125853);}(_0x11f0fe,_0x2a1461),_0x2a1461['execute'](_0x9122f8?'acceptAllSuggestions':'discardAllSuggestions');const _0x5018f3=Qe(_0x2a1461)?_0x2a1461['getFullData'](_0x67c3fd):_0x2a1461['data']['get'](_0x67c3fd);return await _0x2a1461['destroy'](),_0x5018f3;}class _e extends _0x16d85e{['options'];constructor(_0x4db2dd,_0x234bc0){super(_0x4db2dd),this['options']=_0x234bc0,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x28c19d,_0x14d03b){if(!this['element'])return;const _0x59567f=[];for(const [_0x32c02e,_0x3565e8]of _0x28c19d){const _0xe23359=document['createElement']('div');_0xe23359['setAttribute']('data-ck-root-name',_0x32c02e),_0xe23359['className']=_0x3565e8['classes']+'\x20ck-track-changes-preview__root-container',_0xe23359['innerHTML']=_0x3565e8['content'],_0x59567f['push'](_0xe23359);}_0x14d03b(this['element'],_0x59567f),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class ge extends _0x30f11b{constructor(_0x22c16f){super(_0x22c16f),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x207ffd=this['editor'],_0x562ac7=_0x207ffd['locale'],_0x11dab3=_0x207ffd['plugins']['get']('Dialog');let _0x3a5c1e;const _0x18f16d=function(_0x2bfa5b){const _0x354de3={};if('editables'in _0x2bfa5b['ui']['view']){for(const [_0xdf34f9,_0x136495]of Object['entries'](_0x2bfa5b['ui']['view']['editables']))_0x354de3[_0xdf34f9]=_0x136495['element'];}else _0x354de3[_0x2bfa5b['model']['document']['getRootNames']()[0x0]]=_0x2bfa5b['ui']['view']['editable']['element'];return _0x354de3;}(_0x207ffd),_0x17f996=function(_0x1e83d0){let _0x787d54=0x0;for(const _0x4d7eb7 of Object['values'](_0x1e83d0))_0x787d54=Math['max'](_0x787d54,_0x4d7eb7['getBoundingClientRect']()['width']);let _0x2987a7=0x0;for(const _0x2697d8 of Object['values'](_0x1e83d0))_0x2987a7+=_0x2697d8['getBoundingClientRect']()['height'];const _0x442e52=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x53116c=Math['min'](_0x2987a7,_0x442e52);return{'width':_0x787d54,'height':_0x53116c};}(_0x18f16d);_0x11dab3['show']({'id':'finalContentPreview','title':o(_0x562ac7,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new _e(_0x562ac7,{'dialogRects':_0x17f996}),'onHide':()=>{_0x3a5c1e['detachFromDom']();},'onShow':()=>{_0x207ffd['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x41559d=>{const _0x4a6b9e=this['_standarizeRootsData'](_0x41559d,_0x207ffd,_0x18f16d);_0x11dab3['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4a6b9e,_0x207ffd['config']['get']('trackChanges.preview.renderFunction'));}),_0x3a5c1e=new _0x2dfe06(_0x562ac7,[_0x11dab3['view']]),_0x3a5c1e['attachToDom'](),_0x3a5c1e['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x207ffd['once']('destroy',()=>{_0x3a5c1e['detachFromDom']();});const _0x19325c=_0x11dab3['view']['headerView']['class'];_0x11dab3['view']['headerView']['class']=_0x19325c?_0x19325c+'\x20ck-reset_all':'ck-reset_all',_0x11dab3['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x11dab3['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2a2070=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4f3a02=_0x2a2070['previewMode'],_0x2c6a2e={};if('$labels'===_0x4f3a02){for(const _0x32fee2 of _0x2a2070['getMergeFieldsIds']())_0x2c6a2e[_0x32fee2]=_0x2a2070['getLabel'](_0x32fee2)||_0x32fee2;}else{const _0x339ee0='$defaultValues'===_0x4f3a02?_0x2a2070['getDefaultValues']():_0x2a2070['getDataSetValues'](_0x4f3a02,!0x0);for(const _0xb2a632 of Object['entries'](_0x339ee0)){const [_0x4b9607,_0x1e36c6]=_0xb2a632;_0x2c6a2e[_0x4b9607]=null!==_0x1e36c6?_0x1e36c6:_0x2a2070['getLabel'](_0x4b9607)||_0x4b9607;}}return{'mergeFieldsData':_0x2c6a2e};}['_standarizeRootsData'](_0x3b31e2,_0x2358ab,_0x204f68){let _0x3db349;if('string'==typeof _0x3b31e2){const _0x1b7914=_0x2358ab['model']['document']['getRootNames']()[0x0];_0x3db349={[_0x1b7914]:_0x3b31e2};}else _0x3db349=_0x3b31e2;const _0x16e968=this['_fixMediaEmbeds'](_0x3db349,_0x2358ab),_0x1bc2c6=function(_0x3574fb,_0x1148c7){for(const [_0x3b6ca1,_0x19d06a]of _0x3574fb)_0x19d06a['classes']=_0x1148c7[_0x3b6ca1]['classList']['value']['replace']('ck-focused','');return _0x3574fb;}(this['_sortRoots'](_0x2358ab)['reduce']((_0x58d7d3,_0x57a573)=>(_0x58d7d3['push']([_0x57a573,{'content':_0x16e968[_0x57a573],'classes':''}]),_0x58d7d3),[]),_0x204f68);return _0x1bc2c6;}['_fixMediaEmbeds'](_0x3d9e47,_0x39a1dd){if(!_0x39a1dd['plugins']['has']('MediaEmbedEditing'))return _0x3d9e47;const _0x88acb7=_0x39a1dd['plugins']['get']('MediaEmbedEditing');for(const [_0x4a1208,_0x3b5252]of Object['entries'](_0x3d9e47)){const _0x14eaf3=document['createElement']('div');_0x14eaf3['innerHTML']=_0x3b5252,(_0x14eaf3['querySelectorAll']('figure.media')['forEach'](_0x40d3e2=>{const _0x3981a6=_0x40d3e2['querySelector']('oembed');if(_0x3981a6){const _0x2037c5=_0x3981a6['getAttribute']('url');if(_0x2037c5){const _0x1f29f1=_0x88acb7['registry']['getMediaViewElement'](new _0x2ef6b6(_0x39a1dd['editing']['view']['document']),_0x2037c5,{'elementName':'','renderForEditingView':!0x0}),_0x59db8d=document['createElement']('div');_0x59db8d['classList']['add']('ck-media__wrapper'),_0x1f29f1['render'](_0x59db8d,_0x39a1dd['editing']['view']['domConverter']),_0x3981a6['replaceWith'](_0x59db8d);}}}),_0x3d9e47[_0x4a1208]=_0x14eaf3['innerHTML']);}return _0x3d9e47;}['_sortRoots'](_0x1645ec){if(!function(_0x4fbf49){return void 0x0!==_0x4fbf49['getRootsAttributes'];}(_0x1645ec))return _0x1645ec['model']['document']['getRootNames']();const _0x552cbb=[],_0x129385=new Map();for(const _0x1579ac of _0x1645ec['model']['document']['getRootNames']()){const _0x5e3aba=_0x1645ec['editing']['view']['getDomRoot'](_0x1579ac)['getClientRects']()['item'](0x0);_0x552cbb['push'](_0x1579ac),_0x129385['set'](_0x1579ac,_0x5e3aba);}return _0x552cbb['sort']((_0x19f498,_0x4c43b6)=>{const _0x4a6879=_0x129385['get'](_0x19f498),_0x115624=_0x129385['get'](_0x4c43b6);return _0x4a6879['y']-_0x115624['y']||_0x4a6879['x']-_0x115624['x'];}),_0x552cbb;}}class Ze extends _0x4e7f5a{static get['requires'](){return[ue,_0x540b17];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x36db03){super(_0x36db03),_0x36db03['commands']['add']('previewFinalContent',new ge(this['editor'])),_0x36db03['config']['define']('trackChanges.preview.renderFunction',(_0x59a632,_0x346756)=>{for(const _0x9c381c of _0x346756)_0x59a632['appendChild'](_0x9c381c);});}}export{T as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,O as DiscardSuggestionCommand,x as ExecuteOnAllSuggestionsCommand,E as ExecuteOnSelectedSuggestionsCommand,ge as PreviewFinalContentCommand,R as Suggestion,U as SuggestionDescriptionFactory,Ae as SuggestionThreadView,Ee as SuggestionView,Xe as TrackChanges,B as TrackChangesCommand,ue as TrackChangesData,Ye as TrackChangesDataGetter,d as TrackChangesEditing,Ze as TrackChangesPreview,u as TrackChangesUI};
23
+ import{Command as _0x5f0e3f,Plugin as _0x442276,PendingActions as _0x3ce3f4}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5461fa,ObservableMixin as _0x47874a,uid as _0x44bd93,priorities as _0x57efdd,insertToPriorityArray as _0x50eaa4,toArray as _0x47aca7,logWarning as _0x96b213,getEnvKeystrokeText as _0x50e5a6,FocusTracker as _0x383c63,KeystrokeHandler as _0xf9e600,Collection as _0xdf6e9d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x823a24,IconCancel as _0x39c7fa,IconTrackChanges as _0x171462}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x15b93f,View as _0x309bed,ViewCollection as _0x311900,FocusCycler as _0x19bb73,UIModel as _0x1bd41e,createDropdown as _0x5b2948,SplitButtonView as _0xaf924,addListToDropdown as _0x5512b2,MenuBarMenuView as _0x43278b,MenuBarMenuListView as _0x225f2a,ListSeparatorView as _0x31c579,MenuBarMenuListItemView as _0x5a20a2,MenuBarMenuListItemButtonView as _0x213b24,BodyCollection as _0x51093c,Dialog as _0xe38a2e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x28f2d5,DocumentCompare as _0x3125cc,hashObject as _0x222a18,surroundingMarkersDetector as _0x366d24,FOCUS_ANNOTATION_KEYSTROKE as _0x47d8b6,AriaDescriptionView as _0x3295d5,setupThreadKeyboardNavigation as _0x5aa7a7,trimHtml as _0x21b578,UserView as _0x1b856d,LateFocusButtonView as _0x5cc4df,getDateTimeFormatter as _0x32161b,getAllMarkersDomElementsSorted as _0x5822e7,sanitizeEditorConfig as _0x34f307}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x373c9a,ModelLiveRange as _0x20ab11,ModelLivePosition as _0x94a3f8,ModelPosition as _0x1e0b34,ModelRange as _0x24312f,_DetachOperation as _0x4124bf,ViewDowncastWriter as _0x214231}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x34524f,toWidget as _0xa79e4a}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x5292a2,set as _0x222e39,isEqual as _0x4f4b7f,unset as _0x16b4ac,omit as Kt}from'es-toolkit/compat';import{Delete as _0x550395,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x11e7a2}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x285dc8}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x5f0e3f{['_enabledCommands'];constructor(_0x5e61f9,_0x5ad3da){super(_0x5e61f9),this['_enabledCommands']=_0x5ad3da,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 _0x40706d of this['editor']['commands']['commands']())_0x40706d['affectsData']&&!this['_enabledCommands']['has'](_0x40706d)&&_0x40706d['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x43a45d of this['editor']['commands']['commands']())_0x43a45d['affectsData']&&!this['_enabledCommands']['has'](_0x43a45d)&&_0x43a45d['clearForceDisabled']('TrackChangesCommand');}}class T extends _0x5f0e3f{['_suggestions'];constructor(_0x1aefe6,_0x2fbb31){super(_0x1aefe6),this['_suggestions']=_0x2fbb31,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x458bca){const _0xb23190=this['_suggestions']['get'](_0x458bca);if(!_0xb23190)throw new _0x5461fa('track-changes-accept-suggestion-not-found',this);const _0x54e191=_0xb23190['getRanges']();this['editor']['model']['canEditAt'](_0x54e191)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xb23190);}}class O extends _0x5f0e3f{['_suggestions'];constructor(_0x4083ed,_0x3cff8f){super(_0x4083ed),this['_suggestions']=_0x3cff8f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x12fdd6){const _0x35878b=this['_suggestions']['get'](_0x12fdd6);if(!_0x35878b)throw new _0x5461fa('track-changes-discard-suggestion-not-found',this);const _0x2eee7b=_0x35878b['getRanges']();this['editor']['model']['canEditAt'](_0x2eee7b)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x35878b);}}function ls(_0xcc0354,_0x429a74){let _0x73523e='';return _0x73523e+=_0xcc0354['split']('*')['map']((_0x4b215c,_0x14cb54)=>_0x14cb54%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+tn(_0x4b215c)+'</span>':tn(_0x4b215c))['join'](''),_0x429a74&&(_0x73523e+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x429a74['value']+'\x22\x20title=\x22'+_0x429a74['title']+'\x22></span>'),_0x73523e;}function tn(_0x30e72d){const _0x12a597=document['createElement']('span');return _0x12a597['innerText']=_0x30e72d,_0x12a597['innerHTML'];}function ts(_0x2f3114){return _0x2f3114['sort']((_0x1d41c1,_0x461e69)=>'attribute'===_0x1d41c1['type']&&'attribute'!==_0x461e69['type']?-0x1:'attribute'!==_0x1d41c1['type']&&'attribute'===_0x461e69['type']?0x1:'deletion'==_0x1d41c1['type']&&'deletion'!=_0x461e69['type']?-0x1:'deletion'!=_0x1d41c1['type']&&'deletion'==_0x461e69['type']?0x1:0x0);}function to(_0x57bec0,_0x19e924){let _0x37634d,_0x533a33=0x0;const _0x2a1bab=[],_0x147595=_0x19e924['schema'];for(;_0x533a33<_0x57bec0['length'];){const _0x3548e1=_0x57bec0[_0x533a33],_0x11e9a9=_0x57bec0[_0x533a33+0x1];_0x37634d||(_0x37634d=_0x19e924['createPositionBefore'](_0x3548e1)),nn(_0x19e924,_0x3548e1,_0x11e9a9)||(_0x2a1bab['push'](_0x19e924['createRange'](_0x37634d,_0x147595['isObject'](_0x3548e1)?_0x19e924['createPositionAfter'](_0x3548e1):_0x19e924['createPositionAt'](_0x3548e1,'end'))),_0x37634d=null),_0x533a33++;}return _0x2a1bab;}function nn(_0x4e46d5,_0x66a077,_0x503ca9){if(!_0x503ca9)return!0x1;const _0x9b0c95=_0x4e46d5['createPositionAfter'](_0x66a077),_0x1d70c0=_0x4e46d5['createPositionBefore'](_0x503ca9);return _0x9b0c95['isTouching'](_0x1d70c0);}function rs(_0xf1b02,_0x8ed95f,_0x5ec8be){for(;_0x5ec8be['length'];){const _0x35eabd=_0x5ec8be['splice'](0x0,0x64);_0xf1b02['change'](()=>{for(const _0x132188 of _0x35eabd)_0x132188['isInContent']&&_0x8ed95f['execute'](_0x132188['id']);});}}class x extends _0x5f0e3f{['_command'];['_suggestions'];constructor(_0xc3c156,_0x5ae746,_0x400430){super(_0xc3c156),this['_command']=_0x5ae746,this['_suggestions']=_0x400430,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x29d86e=Array['from'](this['_suggestions']['values']())['some'](_0x4726bd=>_0x4726bd['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x29d86e;}['execute'](){const _0x274c4c=ts(Array['from'](this['_suggestions']['values']()));for(const _0x32ffe8 of _0x274c4c){const _0x2e1b11=_0x32ffe8['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2e1b11))return;}rs(this['editor']['model'],this['_command'],_0x274c4c);}}class E extends _0x5f0e3f{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4461b9,_0x16c8b3,_0x3cbe9a){super(_0x4461b9),this['_command']=_0x16c8b3,this['_suggestions']=_0x3cbe9a,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1370be=this['editor']['model']['document']['selection'],_0xf1870d=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x48aee8,_0x15fb06){const _0x434e77=Array['from'](_0x48aee8['getRanges']()),_0x481cfa=new Set();for(const _0xb17175 of _0x15fb06)if(_0xb17175['isInContent']){for(const _0x230fa5 of _0x434e77)for(const _0x271e48 of _0xb17175['getRanges']())(_0x230fa5['isIntersecting'](_0x271e48)||_0x48aee8['isCollapsed']&&!_0xb17175['isMultiRange']&&_0xb17175['next']&&_0x271e48['end']['isTouching'](_0x230fa5['start']))&&_0x481cfa['add'](_0xb17175);}return _0x481cfa;}(_0x1370be,_0xf1870d),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1c5a09=ts(Array['from'](this['_selectedSuggestions']));for(const _0x2c0952 of _0x1c5a09){const _0x2faea9=_0x2c0952['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2faea9))return;}rs(this['editor']['model'],this['_command'],_0x1c5a09);}}class R extends/* #__PURE__ -- @preserve */
24
+ _0x47874a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1a8f4f,_0x197129){super(),this['id']=_0x197129['id'],this['type']=_0x197129['type'],this['subType']=_0x197129['subType']||null,this['author']=_0x197129['author'],this['creator']=_0x197129['creator']||_0x197129['author'],this['isExternal']=Boolean(_0x197129['attributes']&&_0x197129['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x197129['originalSuggestionId']||null,this['_model']=_0x1a8f4f,this['_onAccept']=_0x197129['onAccept'],this['_onDiscard']=_0x197129['onDiscard'],this['_onAttributesChange']=_0x197129['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x197129['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 _0x2496d2=this;for(;_0x2496d2['previous'];)_0x2496d2=_0x2496d2['previous'];return _0x2496d2;}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'](_0x3fd96a){this['_markerNames']['add'](_0x3fd96a);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x19fbd6=>this['_model']['markers']['get'](_0x19fbd6))['filter'](_0xb737f2=>_0xb737f2);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x51b13f=>{for(const _0x5489b4 of this['getMarkers']())_0x51b13f['removeMarker'](_0x5489b4);}),this['_markerNames']['clear']();}['removeMarker'](_0x3bd269){this['_model']['change'](_0x4a528c=>{_0x4a528c['removeMarker'](_0x3bd269);}),this['_markerNames']['delete'](_0x3bd269);}['addRange'](_0x1d8f1f){const _0x4228b9='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+R['getMultiRangeId']();this['addMarkerName'](_0x4228b9),this['_model']['change'](_0x5cce76=>{_0x5cce76['addMarker'](_0x4228b9,{'range':_0x1d8f1f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x43f3af){for(const _0xe02e34 of this['getRanges']())if(_0xe02e34['isIntersecting'](_0x43f3af))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5b0548=>_0x5b0548['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x12f6c8,_0x5ddf71)=>[..._0x12f6c8,..._0x5ddf71['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x564203=this['getRanges']();if(0x1!=_0x564203['length'])return null;const _0xa44166=_0x564203[0x0],_0x507551=_0xa44166['start']['nodeAfter'],_0x11623c=_0xa44166['end']['nodeBefore'];return _0x507551 instanceof _0x373c9a?_0x507551!=_0x11623c?null:_0x507551: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 _0x2523d4=[];let _0x34a060=this['head'];for(;_0x34a060;)_0x2523d4['push'](_0x34a060),_0x34a060=_0x34a060['next'];return _0x2523d4;}['setAttribute'](_0xddd6b4,_0x26632f){const _0x5e9cd=_0x5292a2(this['attributes']);_0x222e39(_0x5e9cd,_0xddd6b4,_0x26632f),_0x4f4b7f(_0x5e9cd,this['attributes'])||(this['attributes']=_0x5e9cd,this['_onAttributesChange'](_0x5e9cd));}['removeAttribute'](_0x5af7e4){const _0xc98528=_0x5292a2(this['attributes']);_0x16b4ac(_0xc98528,_0x5af7e4),_0x4f4b7f(_0xc98528,this['attributes'])||(this['attributes']=_0xc98528,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 _0x44bd93()['substr'](0x1,0x5);}}function o(_0x1bd3e3,_0x548395,_0x2c7824){const _0x2e89b3=_0x1bd3e3['t'],t=_0x1bd3e3['t'];switch(_0x548395){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'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');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',_0x2c7824);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2c7824);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2c7824);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2c7824);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2c7824);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',_0x2c7824);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2c7824);case'*Replace\x20image*':return t('*Replace\x20image*');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',_0x2c7824);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2c7824);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2c7824);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2c7824);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2c7824);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2c7824);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2c7824);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2c7824);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2c7824);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2c7824);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2c7824);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2c7824);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2c7824);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2c7824);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2c7824);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2c7824);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2c7824);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x2c7824);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'},_0x2c7824);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x2c7824);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x2c7824);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2c7824);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2c7824);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2c7824);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2c7824);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2c7824);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'},_0x2c7824);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2c7824);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2c7824);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2c7824);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2c7824);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'},_0x2c7824);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2c7824);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'},_0x2c7824);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x2c7824);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2c7824);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'},_0x2c7824);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2c7824);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'},_0x2c7824);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2c7824);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x2c7824);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x2c7824);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x2c7824);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2c7824);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x2c7824);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2c7824);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 _0x2e89b3({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2c7824);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2e89b3({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2c7824);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2c7824);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.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x2c7824);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.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x2c7824);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x2c7824);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x548395;}}class U{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x14bc1c,_0x123541){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x14bc1c,this['_locale']=_0x123541;}['getDescriptions'](_0x246585){const _0x35d423=[],_0xbbffb4=new Set(),_0x3c256f=new Set();for(let _0x50be0c=0x0;_0x50be0c<_0x246585['length'];_0x50be0c++){const _0x213581=_0x246585[_0x50be0c];if(!_0x213581['isInContent'])continue;const _0x4aba84=this['_handleCustomCallbackDescription'](_0x213581);if(_0x4aba84){if(null!=_0x213581['subType']){if(_0xbbffb4['has'](_0x213581['subType']))continue;_0xbbffb4['add'](_0x213581['subType']);}_0x35d423['push'](_0x4aba84);}else{if('attribute'==_0x213581['type']){const _0x144e16=_0x213581['data']['key'];if(_0x3c256f['has'](_0x144e16))continue;_0x3c256f['add'](_0x213581['data']['key']),_0x144e16==m?this['_handleRenameSuggestionDescription'](_0x35d423,_0x213581):this['_handleAttributeSuggestionDescription'](_0x35d423,_0x213581);continue;}'insertion'!=_0x213581['type']&&'deletion'!=_0x213581['type']||this['_handleInsertRemoveSuggestionDescription'](_0x35d423,_0x213581,_0x246585[_0x50be0c+0x1]);}}return this['_resolveDescriptionItems'](_0x35d423);}['registerDescriptionCallback'](_0x5a1060){this['_customCallbacks']['push'](_0x5a1060);}['registerElementLabel'](_0xe1d869,_0x45a16b,_0x3f4d24=_0x57efdd['normal']){'function'==typeof _0xe1d869?_0x50eaa4(this['_itemLabelsCallbacks'],{'matchingCallback':_0xe1d869,'label':_0x45a16b,'priority':_0x3f4d24}):this['_itemLabels']['set'](_0xe1d869,_0x45a16b);}['registerAttributeLabel'](_0x89c529,_0x4ed577){this['_attributeLabels']['set'](_0x89c529,_0x4ed577);}['getItemLabel'](_0x45f281,_0x11e7e4=0x1){let _0x416b55;for(const _0x47ea43 of this['_itemLabelsCallbacks'])if(_0x47ea43['matchingCallback'](_0x45f281)){_0x416b55=_0x47ea43['label'];break;}return _0x416b55||(_0x416b55=this['_itemLabels']['get'](_0x45f281['name'])),_0x416b55?_0x416b55(_0x11e7e4):0x1!==_0x11e7e4?_0x11e7e4+'\x20'+_0x45f281['name']+'s':''+_0x45f281['name'];}['_addDescriptionItems'](_0x157c05,_0x4a1964){const _0x380eeb=_0x4a1964['getFirstRange']()['getWalker'](),_0x4bc3cf='insertion'==_0x4a1964['type']?'add':'remove';for(const _0x406a89 of _0x380eeb){const _0xe82d61=_0x406a89['item'],_0x3cdc1d=_0x157c05[_0x157c05['length']-0x1];if(_0xe82d61['is']('$textProxy'))_0x3cdc1d&&_0x3cdc1d['type']['indexOf']('Container')>-0x1&&_0x157c05['pop'](),_0x3cdc1d&&'text'==_0x3cdc1d['type']?_0x3cdc1d[_0x4bc3cf]+=_0xe82d61['data']:_0x157c05['push']({'type':'text','add':'add'==_0x4bc3cf?_0xe82d61['data']:'','remove':'remove'==_0x4bc3cf?_0xe82d61['data']:''});else{if(this['_schema']['isObject'](_0xe82d61)){const _0x3d6540=_0xe82d61;if(_0x3cdc1d&&_0x3cdc1d['type']['indexOf']('Container')>-0x1&&_0x157c05['pop'](),'elementEnd'==_0x406a89['type'])continue;_0x3cdc1d&&_0x3cdc1d['type']==_0x4bc3cf+'Object'&&_0x3cdc1d['element']['name']==_0x3d6540['name']?_0x3cdc1d['quantity']++:_0x157c05['push']({'type':_0x4bc3cf+'Object','element':_0x3d6540,'quantity':0x1}),_0x380eeb['skip'](_0x4d27c1=>!('elementEnd'==_0x4d27c1['type']&&_0x4d27c1['item']==_0xe82d61));}else{if(this['_schema']['checkChild'](_0xe82d61,'$text')||_0xe82d61['is']('element','softBreak')){const _0x1294d7=_0xe82d61;if('add'==_0x4bc3cf&&'elementStart'==_0x406a89['type']||'remove'==_0x4bc3cf&&'elementEnd'==_0x406a89['type'])continue;if(_0x3cdc1d&&-0x1==_0x3cdc1d['type']['indexOf']('Container')){'text'==_0x3cdc1d['type']&&(_0x3cdc1d[_0x4bc3cf]+='\x0a');continue;}let _0x305603;if(_0x305603='add'==_0x4bc3cf?_0x1294d7['nextSibling']&&!this['_schema']['isObject'](_0x1294d7['nextSibling'])?_0x1294d7['nextSibling']:null:_0x1294d7['previousSibling']&&!this['_schema']['isObject'](_0x1294d7['previousSibling'])?_0x1294d7['previousSibling']:null,_0x1294d7['isEmpty']||_0x305603&&_0x305603['isEmpty']){const _0x14bc79=_0x305603&&_0x305603['isEmpty']?_0x305603:_0x1294d7;_0x3cdc1d&&_0x3cdc1d['type']==_0x4bc3cf+'EmptyContainer'&&_0x3cdc1d['element']['name']==_0x14bc79['name']?_0x3cdc1d['quantity']++:_0x157c05['push']({'type':_0x4bc3cf+'EmptyContainer','element':_0x14bc79,'quantity':0x1});}else _0x157c05['push']({'type':_0x4bc3cf+'Container','element':_0x1294d7});}}}}}['_resolveDescriptionItems'](_0x588fb6){const _0x20d5f1=this['_locale'],_0x5b905f=[],_0x3b3303=[],_0x49f03a=[];for(const _0x2fd076 of _0x588fb6)switch(_0x2fd076['type']){case'text':if(_0x2fd076['add']=_0x2fd076['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2fd076['remove']=_0x2fd076['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2fd076['add']&&''!=_0x2fd076['remove']){_0x5b905f['push']({'type':'replace','content':o(_0x20d5f1,'REPLACE_TEXT',['\x22'+_0x2fd076['remove']+'\x22','\x22'+_0x2fd076['add']+'\x22'])});continue;}if(null!=_0x2fd076['add']['match'](/^ +$/)){_0x5b905f['push']({'type':'insertion','content':o(_0x20d5f1,'*Insert:*\x20%0',o(_0x20d5f1,'ELEMENT_SPACE',_0x2fd076['add']['length']))});continue;}if(null!=_0x2fd076['remove']['match'](/^ +$/)){_0x5b905f['push']({'type':'deletion','content':o(_0x20d5f1,'*Remove:*\x20%0',o(_0x20d5f1,'ELEMENT_SPACE',_0x2fd076['remove']['length']))});continue;}if(''!=_0x2fd076['add']){_0x5b905f['push']({'type':'insertion','content':o(_0x20d5f1,'*Insert:*\x20%0','\x22'+_0x2fd076['add']+'\x22')});continue;}_0x5b905f['push']({'type':'deletion','content':o(_0x20d5f1,'*Remove:*\x20%0','\x22'+_0x2fd076['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5b905f['push']({'type':'insertion','content':o(_0x20d5f1,'*Insert:*\x20%0',this['getItemLabel'](_0x2fd076['element'],_0x2fd076['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5b905f['push']({'type':'deletion','content':o(_0x20d5f1,'*Remove:*\x20%0',this['getItemLabel'](_0x2fd076['element'],_0x2fd076['quantity']))});continue;case'addContainer':_0x5b905f['push']({'type':'insertion','content':o(_0x20d5f1,'*Split:*\x20%0',this['getItemLabel'](_0x2fd076['element'],_0x2fd076['quantity']))});continue;case'removeContainer':_0x5b905f['push']({'type':'deletion','content':o(_0x20d5f1,'*Merge:*\x20%0',this['getItemLabel'](_0x2fd076['element'],_0x2fd076['quantity']))});continue;case'addFormat':_0x3b3303['push'](_0x2fd076['key']);continue;case'removeFormat':_0x49f03a['push'](_0x2fd076['key']);continue;default:_0x5b905f['push'](_0x2fd076);}if(_0x3b3303['length']){const _0x68e048=_0x3b3303['map'](_0x453484=>this['_attributeLabels']['has'](_0x453484)?this['_attributeLabels']['get'](_0x453484):_0x453484)['join'](',\x20');_0x5b905f['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x68e048)});}if(_0x49f03a['length']){const _0x558ff0=_0x49f03a['map'](_0x1655fc=>this['_attributeLabels']['has'](_0x1655fc)?this['_attributeLabels']['get'](_0x1655fc):_0x1655fc)['join'](',\x20');_0x5b905f['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x558ff0)});}return _0x5b905f;}['_handleCustomCallbackDescription'](_0x524e53){for(const _0x4a2e25 of this['_customCallbacks']){const _0x329580=_0x4a2e25(_0x524e53);if(_0x329580&&'type'in _0x329580)return _0x329580;}}['_handleAttributeSuggestionDescription'](_0x50a923,_0x5721a5){const _0x451cd6=_0x5721a5['data'],_0x7ca67f=void 0x0===_0x451cd6['newValue']?'removeFormat':'addFormat';_0x50a923['push']({'type':_0x7ca67f,'key':_0x451cd6['key']});}['_handleRenameSuggestionDescription'](_0x7a004c,_0x177997){_0x7a004c['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x177997['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4eaf8e,_0x1f7068,_0x41eb27){if(this['_addDescriptionItems'](_0x4eaf8e,_0x1f7068),_0x41eb27&&_0x41eb27['getFirstRange']()&&!_0x1f7068['getFirstRange']()['end']['isEqual'](_0x41eb27['getFirstRange']()['start'])){const _0x5dcfd3=_0x4eaf8e[_0x4eaf8e['length']-0x1],_0x252cbc='insertion'==_0x1f7068['type']?'add':'remove';_0x5dcfd3&&'text'==_0x5dcfd3['type']&&(_0x5dcfd3[_0x252cbc]+='\x0a');}}}class V extends _0x442276{['afterInit'](){const _0x372213=this['editor'],_0x1364e8=_0x372213['plugins']['get']('TrackChangesEditing');_0x372213['commands']['get']('showAIAssistant')&&_0x1364e8['enableCommand']('showAIAssistant');}}class F extends _0x442276{['afterInit'](){const _0x70d227=this['editor'],_0x31f318=_0x70d227['plugins']['get']('TrackChangesEditing');_0x70d227['commands']['get']('toggleAi')&&_0x31f318['enableCommand']('toggleAi');}}class G extends _0x442276{['afterInit'](){const _0xf99d5c=this['editor'],_0x1e3891=_0xf99d5c['plugins']['get']('TrackChangesEditing');_0xf99d5c['commands']['get']('aiQuickAction')&&_0x1e3891['enableCommand']('aiQuickAction');}}class L extends _0x442276{['afterInit'](){const _0x546fd5=this['editor'],_0x47c9a7=_0x546fd5['locale'];if(!_0x546fd5['plugins']['has']('AlignmentEditing'))return;const _0x1bae08=_0x546fd5['plugins']['get']('TrackChangesEditing');_0x1bae08['enableDefaultAttributesIntegration']('alignment'),_0x1bae08['registerBlockAttribute']('alignment'),_0x1bae08['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x47c9a7,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1eeb9b=this['editor'],_0x2d97ed=_0x1eeb9b['locale'];_0x1eeb9b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x135715=>{if('formatBlock'!=_0x135715['type'])return;const {data:_0x4ef0df}=_0x135715;if(_0x4ef0df&&'alignment'==_0x4ef0df['commandName']){const _0x5c82f=_0x4ef0df['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2d97ed,'*Format:*\x20%0',function(_0x43696e){switch(_0x43696e){case'left':return o(_0x2d97ed,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2d97ed,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2d97ed,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2d97ed,'FORMAT_JUSTIFY_TEXT');}}(_0x5c82f))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class J extends _0x442276{['afterInit'](){const _0x2f5edc=this['editor'],_0x21b67a=_0x2f5edc['plugins']['get']('TrackChangesEditing'),_0x37a841=_0x2f5edc['locale'];for(const _0x320c9c of ti){if(!_0x2f5edc['plugins']['has'](_0x320c9c))continue;const _0x18a868=_0x320c9c['slice'](0x0,-0x7)['toLowerCase'](),_0x70dac='FORMAT_'+_0x18a868['toUpperCase']();_0x21b67a['enableDefaultAttributesIntegration'](_0x18a868),_0x21b67a['registerInlineAttribute'](_0x18a868),_0x21b67a['descriptionFactory']['registerAttributeLabel'](_0x18a868,o(_0x37a841,_0x70dac));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3802ef=this['editor'],_0x5ab7e1=_0x3802ef['locale'],_0x45824b=_0x3802ef['plugins']['get']('TrackChangesEditing');function _0x3c628(_0x463aca,_0x706405){_0x45824b['descriptionFactory']['registerDescriptionCallback'](_0x2032aa=>{if('formatInline'!=_0x2032aa['type'])return;const {data:_0x506155}=_0x2032aa;return _0x506155&&_0x506155['commandName']===_0x463aca?_0x506155['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5ab7e1,'*Format:*\x20%0',_0x706405)}:{'type':'format','content':o(_0x5ab7e1,'*Remove\x20format:*\x20%0',_0x706405)}:void 0x0;});}_0x3c628('bold',o(_0x5ab7e1,'FORMAT_BOLD')),_0x3c628('italic',o(_0x5ab7e1,'FORMAT_ITALIC')),_0x3c628('underline',o(_0x5ab7e1,'FORMAT_UNDERLINE')),_0x3c628('code',o(_0x5ab7e1,'FORMAT_CODE')),_0x3c628('strikethrough',o(_0x5ab7e1,'FORMAT_STRIKETHROUGH')),_0x3c628('subscript',o(_0x5ab7e1,'FORMAT_SUBSCRIPT')),_0x3c628('superscript',o(_0x5ab7e1,'FORMAT_SUPERSCRIPT'));}}class K extends _0x442276{['afterInit'](){const _0x3646ae=this['editor'],_0x3bd8c9=_0x3646ae['locale'];if(!_0x3646ae['plugins']['has']('BlockQuoteEditing'))return;const _0x16d2d2=_0x3646ae['plugins']['get']('TrackChangesEditing'),_0x2316e8=this['editor']['commands']['get']('blockQuote');_0x16d2d2['enableCommand']('blockQuote',(_0x1c2300,_0x22ae7b={})=>{const _0x2fc2a6=this['editor']['model']['document']['selection'],_0x45b375=_0x22ae7b&&void 0x0!==_0x22ae7b['forceValue']?_0x22ae7b['forceValue']:!_0x2316e8['value'];let _0xed8631=[];if(_0x45b375){const _0x4cae28=Array['from'](_0x2fc2a6['getSelectedBlocks']())['filter'](_0x195f4e=>oo(_0x195f4e)||function(_0x5373f0,_0x1cee9d){const _0xe702dc=_0x1cee9d['checkChild'](_0x5373f0['parent'],'blockQuote'),_0x440b66=_0x1cee9d['checkChild'](['$root','blockQuote'],_0x5373f0);return _0xe702dc&&_0x440b66;}(_0x195f4e,this['editor']['model']['schema']));_0xed8631=to(_0x4cae28,_0x3646ae['model']);}else{const _0xa498c6=Array['from'](_0x2fc2a6['getSelectedBlocks']())['filter'](_0x4facb5=>oo(_0x4facb5));_0xed8631=to(_0xa498c6,_0x3646ae['model']);}_0x3646ae['model']['change'](()=>{for(const _0x4f1fc9 of _0xed8631)_0x16d2d2['markBlockFormat'](_0x4f1fc9,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x45b375}]});});}),_0x16d2d2['descriptionFactory']['registerDescriptionCallback'](_0x167307=>{const {data:_0x592b5e}=_0x167307;if(_0x592b5e&&'blockQuote'==_0x592b5e['commandName']){const _0x20b9df=o(_0x3bd8c9,'ELEMENT_BLOCK_QUOTE');return _0x592b5e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3bd8c9,'*Set\x20format:*\x20%0',_0x20b9df)}:{'type':'format','content':o(_0x3bd8c9,'*Remove\x20format:*\x20%0',_0x20b9df)};}});}}function oo(_0x302612){return'blockQuote'==_0x302612['parent']['name'];}class q extends _0x442276{['afterInit'](){const _0x50f6b7=this['editor'],_0x5312f6=_0x50f6b7['locale'],_0xfe05c0=_0x50f6b7['plugins']['get']('TrackChangesEditing');_0x50f6b7['plugins']['has']('BookmarkEditing')&&(_0xfe05c0['enableCommand']('insertBookmark'),_0xfe05c0['enableDefaultAttributesIntegration']('updateBookmark'),_0xfe05c0['registerBlockAttribute']('bookmarkId'),_0xfe05c0['descriptionFactory']['registerDescriptionCallback'](_0x3e9117=>{if('insertion'!=_0x3e9117['type']&&'deletion'!=_0x3e9117['type']&&'attribute'!=_0x3e9117['type'])return;const _0x10c169=_0x3e9117['getContainedElement']();if(null==_0x10c169)return;if(!_0x10c169['is']('element','bookmark'))return;const _0x16e9a3=_0x10c169['getAttribute']('bookmarkId');if('insertion'==_0x3e9117['type'])return{'type':'insertion','content':o(_0x5312f6,'*Insert:*\x20%0','\x22'+_0x16e9a3+'\x22\x20'+o(_0x5312f6,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3e9117['type'])return{'type':'deletion','content':o(_0x5312f6,'*Remove:*\x20%0','\x22'+_0x16e9a3+'\x22\x20'+o(_0x5312f6,'ELEMENT_BOOKMARK'))};const {data:_0x583b3e}=_0x3e9117;if(!_0x583b3e||'bookmarkId'!=_0x583b3e['key'])return;return{'type':'format','content':o(_0x5312f6,'*Set\x20bookmark:*\x20%0','\x22'+_0x583b3e['newValue']+'\x22')};}));}}class H extends _0x442276{['afterInit'](){const _0x1044d7=this['editor'];_0x1044d7['plugins']['has']('CaseChange')&&(_0x1044d7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1044d7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1044d7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class W extends _0x442276{['afterInit'](){const _0x3d7350=this['editor'];_0x3d7350['commands']['get']('ckbox')&&_0x3d7350['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class z extends _0x442276{['afterInit'](){const _0x1c4198=this['editor'];if(!_0x1c4198['plugins']['has']('CodeBlock'))return;const _0x3a2e38=_0x1c4198['plugins']['get']('TrackChangesEditing'),_0x5c9cc8=_0x1c4198['locale'],_0x3bfec4=_0x1c4198['config']['get']('codeBlock')['languages'],_0x4212e8=_0x1c4198['commands']['get']('codeBlock');_0x3a2e38['enableCommand']('indentCodeBlock'),_0x3a2e38['enableCommand']('outdentCodeBlock'),_0x3a2e38['enableCommand']('codeBlock',(_0x39e310,_0x2d79df={})=>{const _0x42c8ca=_0x1c4198['model'],_0x3e0cf4=_0x1c4198['model']['document']['selection'],_0xb18d96=_0x2d79df&&void 0x0!==_0x2d79df['forceValue']?_0x2d79df['forceValue']:!_0x4212e8['value'];let _0x5d97ce;_0x2d79df['language']||(_0x2d79df['language']=_0x3bfec4[0x0]['language']),_0x5d97ce=_0xb18d96?Array['from'](_0x3e0cf4['getSelectedBlocks']())['filter'](_0x1bedc4=>co(_0x1bedc4)||function(_0x15a8fc,_0x509d3a){if(_0x15a8fc['is']('rootElement')||_0x509d3a['isLimit'](_0x15a8fc))return!0x1;return _0x509d3a['checkChild'](_0x15a8fc['parent'],'codeBlock');}(_0x1bedc4,_0x42c8ca['schema'])):Array['from'](_0x3e0cf4['getSelectedBlocks']())['filter'](_0x42fa06=>co(_0x42fa06));const _0x2827d6=to(_0x5d97ce,_0x42c8ca);_0x42c8ca['change'](()=>{for(const _0x578549 of _0x2827d6)_0x3a2e38['markBlockFormat'](_0x578549,{'commandName':'codeBlock','commandParams':[{..._0x2d79df,'forceValue':_0xb18d96}],'formatGroupId':'blockName'});});}),(_0x3a2e38['descriptionFactory']['registerElementLabel']('codeBlock',_0x35936e=>o(_0x5c9cc8,'ELEMENT_CODE_BLOCK',_0x35936e)),_0x3a2e38['descriptionFactory']['registerDescriptionCallback'](_0x2d0623=>{if('formatBlock'!=_0x2d0623['type'])return;const _0xf03938=_0x5c9cc8['t'],{data:_0x3ffcda}=_0x2d0623;if(!_0x3ffcda||'codeBlock'!=_0x3ffcda['commandName'])return;const _0x3db560=_0x3ffcda['commandParams'][0x0]['language'],_0x58e124=_0xf03938(_0x3bfec4['find'](_0x33c55f=>_0x33c55f['language']===_0x3db560)['label'])['toLowerCase']();return _0x3ffcda['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5c9cc8,'*Set\x20format:*\x20%0',o(_0x5c9cc8,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x58e124+')')}:{'type':'format','content':o(_0x5c9cc8,'*Remove\x20format:*\x20%0',o(_0x5c9cc8,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x1ee4e3){return'codeBlock'==_0x1ee4e3['name'];}class Q extends _0x442276{['afterInit'](){const _0x4f94db=this['editor'];if(!_0x4f94db['plugins']['has']('CommentsEditing'))return;_0x4f94db['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5eca99,_0xc606a5,_0x1ce2f0){const _0x214a42=[];for(const _0x37d052 of _0xc606a5['getItems']())_0x37d052['hasAttribute'](_0x5eca99)&&_0x214a42['push'](_0x1ce2f0['createRangeOn'](_0x37d052));return _0x214a42;}function Ve(_0x11a92c,_0x7dcfce,{showActiveMarker:_0x29eb7e=!0x0}={}){const _0x822026=_0x11a92c['plugins']['get']('TrackChangesEditing');return(_0x440f1e,_0x14228b,_0x57520f)=>{if(!_0x57520f['consumable']['test'](_0x14228b['markerRange'],_0x440f1e['name']))return;const _0x14f4fc=_0x14228b['markerRange']['getWalker'](),_0x2644f5=_0x14228b['markerRange']['start'],_0x40387c=_0x11a92c['model']['schema'];let _0x13b337=null,_0xbfcaaa=null,_0x4ec415=!0x1,_0x1f9d44=!0x1;for(const _0x55c84c of _0x14f4fc){const _0x3c34aa=_0x55c84c['item'];_0x4ec415=_0x4ec415||_0x40387c['isContent'](_0x3c34aa);const _0x225224=_0x57520f['mapper']['toViewElement'](_0x3c34aa);if(_0x225224&&_0x225224['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x55c84c['type']&&(_0x40387c['isBlock'](_0x3c34aa)&&!_0x40387c['isLimit'](_0x3c34aa)&&(_0x3c34aa['nextSibling']||_0x2644f5['isAtEnd']?_0x13b337&&_0x13b337['parent']==_0x3c34aa||(_0x13b337=_0x3c34aa,_0x1faeee(_0x55c84c['previousPosition']),_0x1f9d44=!0x0):_0xbfcaaa=_0xbfcaaa||_0x55c84c['previousPosition']));}function _0x1faeee(_0x4e6b74){const {id:_0x43d18b,authorId:_0x5af3bc}=_0x822026['_splitMarkerName'](_0x14228b['markerName']),_0x1a61f8=_0x57520f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x7dcfce,'data-suggestion':_0x43d18b,'data-author-id':_0x5af3bc}),_0x596fed=_0x57520f['mapper']['toViewPosition'](_0x4e6b74);_0x29eb7e&&_0x822026['activeMarkers']['includes'](_0x14228b['markerName'])&&_0x57520f['writer']['addClass']('ck-suggestion-marker--active',_0x1a61f8),_0x57520f['writer']['insert'](_0x596fed,_0x1a61f8),_0x57520f['mapper']['bindElementToMarker'](_0x1a61f8,_0x14228b['markerName']);}_0x4ec415||_0x1f9d44||!_0xbfcaaa||_0x1faeee(_0xbfcaaa);};}class X extends _0x442276{static get['requires'](){return[_0x550395];}['init'](){const _0x400026=this['editor'],_0x560149=_0x400026['plugins']['get']('TrackChangesEditing');_0x560149['enableCommand']('delete');const _0x5e3a99=_0x400026['commands']['get']('deleteForward');_0x560149['enableCommand']('deleteForward',(_0x19423f,_0x52feec={})=>{const _0x3dfb2b=_0x400026['model']['createSelection'](_0x400026['model']['document']['selection']);_0x3dfb2b['isCollapsed']&&_0x400026['model']['modifySelection'](_0x3dfb2b,{'direction':'forward','unit':_0x52feec['unit']});const _0x345d58=_0x3dfb2b['getFirstRange'](),_0x64b8a0=_0x20ab11['fromRange'](_0x345d58);let _0x46b462;_0x19423f(_0x52feec),_0x46b462='$graveyard'==_0x64b8a0['root']['rootName']?_0x400026['model']['createRange'](_0x345d58['start']):_0x400026['model']['createRange'](_0x64b8a0['start'],_0x64b8a0['end']),_0x64b8a0['detach'](),_0x400026['model']['enqueueChange'](_0x5e3a99['buffer']['batch'],_0x22b914=>{_0x5e3a99['buffer']['lock'](),_0x22b914['setSelection'](_0x22b914['createRange'](_0x46b462['end'])),_0x5e3a99['buffer']['unlock']();});}),_0x400026['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ve(_0x400026,'merge'),{'priority':'high'}),_0x400026['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1b9832,_0x576d01,_0x40d640)=>{_0x40d640['options']['showSuggestionHighlights']&&Ve(_0x400026,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1b9832,_0x576d01,_0x40d640);},{'priority':'high'}),_0x400026['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x20c643,_0x164487,_0x1aa21a)=>{const _0xdc208a=_0x1aa21a['mapper']['markerNameToElements'](_0x164487['markerName']);if(_0xdc208a){for(const _0x44e5cd of _0xdc208a)_0x44e5cd['is']('uiElement')&&(_0x1aa21a['mapper']['unbindElementFromMarkerName'](_0x44e5cd,_0x164487['markerName']),_0x1aa21a['writer']['remove'](_0x44e5cd));}},{'priority':'high'});}}class Y extends _0x442276{['afterInit'](){const _0x49154b=this['editor'];if(!_0x49154b['plugins']['has']('ListEditing'))return;const _0x15130d=_0x49154b['locale'],_0x141801=_0x49154b['plugins']['get']('TrackChangesEditing'),_0x1f6d43=_0x49154b['plugins']['has']('TodoListEditing'),_0x215fdf=!!_0x49154b['config']['get']('list.multiBlock');function _0x5f0b0(_0x1f9e28){return{'type':'format','content':''+o(_0x15130d,'*Set\x20format:*\x20%0',_0x1f9e28)};}function _0x2fe31e(_0x40303d){return{'type':'format','content':''+o(_0x15130d,'*Remove\x20format:*\x20%0',_0x40303d)};}_0x141801['enableDefaultAttributesIntegration']('numberedList'),_0x141801['enableDefaultAttributesIntegration']('bulletedList'),_0x141801['enableDefaultAttributesIntegration']('customNumberedList'),_0x141801['enableDefaultAttributesIntegration']('customBulletedList'),_0x141801['enableDefaultAttributesIntegration']('indentList'),_0x141801['enableDefaultAttributesIntegration']('outdentList'),_0x141801['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x141801['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x141801['registerBlockAttribute']('listItemId'),_0x141801['registerBlockAttribute']('listType'),_0x141801['registerBlockAttribute']('listIndent'),_0x215fdf&&(_0x141801['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x141801['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1f6d43&&(_0x141801['enableDefaultAttributesIntegration']('todoList'),_0x141801['enableDefaultAttributesIntegration']('checkTodoList'),_0x141801['registerBlockAttribute']('todoListChecked'),_0x141801['descriptionFactory']['registerDescriptionCallback'](_0x29ad22=>{const {data:_0x3d659f}=_0x29ad22;if(_0x3d659f&&'todoListChecked'==_0x3d659f['key'])return{'type':'format','content':_0x3d659f['newValue']?o(_0x15130d,'*Check\x20item*'):o(_0x15130d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x226e47=>{if(_0x226e47['batch']['isUndo'])return!0x1;let _0x13fddf=!0x1;const _0x5cdcd5=_0x141801['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5ae5cf=>'todoListChecked'===_0x141801['_getAttributeKey'](_0x5ae5cf));for(const _0x10f7b2 of _0x5cdcd5){'todo'!=_0x10f7b2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x141801['_findSuggestions'](_0x10f7b2['getFirstRange'](),'attribute')['find'](_0x112533=>'listType'===_0x141801['_getAttributeKey'](_0x112533['suggestion']))||(_0x226e47['removeMarker'](_0x10f7b2['getFirstMarker']()),_0x13fddf=!0x0));}return _0x13fddf;})),_0x141801['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x15130d,'FORMAT_INDENT'));const _0x3f6735={'type':'format','content':''};_0x141801['descriptionFactory']['registerDescriptionCallback'](_0x204917=>{const {data:_0x431b44}=_0x204917;if(!_0x431b44||'listType'!=_0x431b44['key'])return;let _0x394c13=_0x204917['head'];for(;_0x394c13;){if(_0x394c13['data']&&(('listStyle'==_0x394c13['data']['key']||'listMarkerStyle'==_0x394c13['data']['key'])&&(_0x394c13['data']['newValue']&&'default'!=_0x394c13['data']['newValue']||'default'!=_0x394c13['data']['oldValue']&&!_0x431b44['newValue'])||!_0x215fdf&&_0x394c13['data']['key']==m))return _0x3f6735;_0x394c13=_0x394c13['next'];}if(null==_0x431b44['newValue'])switch(_0x431b44['oldValue']){case'bulleted':return _0x2fe31e(o(_0x15130d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2fe31e(o(_0x15130d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2fe31e(o(_0x15130d,'ELEMENT_TODO_LIST'));}switch(_0x431b44['newValue']){case'bulleted':return _0x5f0b0(o(_0x15130d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5f0b0(o(_0x15130d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5f0b0(o(_0x15130d,'ELEMENT_TODO_LIST'));}}),_0x141801['descriptionFactory']['registerDescriptionCallback'](_0x202d40=>{const {data:_0xbdbcc6}=_0x202d40;if(_0xbdbcc6&&'listIndent'==_0xbdbcc6['key'])return null==_0xbdbcc6['newValue']||null==_0xbdbcc6['oldValue']&&0x0==_0xbdbcc6['newValue']?_0x3f6735:void 0x0;}),_0x141801['descriptionFactory']['registerDescriptionCallback'](_0x53ed8b=>{if('attribute'!=_0x53ed8b['type'])return;const {data:_0xf10572}=_0x53ed8b;if(!_0xf10572||'listItemId'!=_0xf10572['key'])return;const _0x1fdd01=Be(_0x53ed8b);return'newValue'==_0x1fdd01?{'type':'format','content':o(_0x15130d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1fdd01?{'type':'format','content':o(_0x15130d,'*Split:*\x20list\x20item')}:_0x3f6735;}),_0x49154b['model']['document']['registerPostFixer'](_0x1ebaf1=>this['listItemIdFixer'](_0x1ebaf1)),_0x49154b['model']['document']['registerPostFixer'](_0x26b353=>this['noTrackChangesFixer'](_0x26b353)),_0x49154b['model']['document']['on']('change:data',(_0x3c6ce8,_0x5a9d77)=>{if(_0x5a9d77['isUndo']||!_0x5a9d77['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2016d6){if(_0x2016d6['batch']['isUndo']||!_0x2016d6['batch']['isLocal'])return!0x1;let _0xdb4b4b=!0x1;const _0x14ee1f=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x104472=>_0x104472['data']&&'listItemId'==_0x104472['data']['key'])['filter'](_0x33c4cc=>_0x33c4cc['data']['newValue']&&_0x33c4cc['data']['oldValue']);for(const _0x5ef7c1 of _0x14ee1f)Be(_0x5ef7c1)||(_0x2016d6['removeMarker'](_0x5ef7c1['getFirstMarker']()),_0xdb4b4b=!0x0);return _0xdb4b4b;}['noTrackChangesFixer'](_0x2a0496){if(_0x2a0496['batch']['isUndo']||!_0x2a0496['batch']['isLocal'])return!0x1;const _0xf01720=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xf01720['trackChangesCommand']['value'])return!0x1;let _0x5ad72c=!0x1;const _0x2ff5c4=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x169c1a=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x41d885=>'attribute'==_0x41d885['type'])['filter'](_0x61ca2f=>_0x2ff5c4['includes'](_0x61ca2f['attributeKey']));if(0x0==_0x169c1a['length'])return _0x5ad72c;for(const _0x535792 of _0x169c1a){const _0x955766=_0xf01720['_findSuggestions'](_0x535792['range'],'attribute')['filter'](_0x52252d=>!_0x52252d['meta']['isNextTo'])['map'](_0xd2d8d9=>_0xd2d8d9['suggestion'])['filter'](_0x253b5d=>{const _0x9d5228=_0xf01720['_getAttributeKey'](_0x253b5d);return _0x2ff5c4['includes'](_0x9d5228);});if(_0x955766['length']){for(const _0x2e8cbb of _0x955766)_0x2a0496['removeMarker'](_0x2e8cbb['getFirstMarker']());_0x5ad72c=!0x0;}}return _0x5ad72c;}['assureChains'](){const _0x2ff416=this['editor']['plugins']['get']('TrackChangesEditing'),_0x561d16=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x31f62d;const _0x1805a3=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x15737a=>{if(_0x15737a['data']['oldRange']||!_0x15737a['data']['newRange'])return null;if(!_0x15737a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x130285}=_0x2ff416['_splitMarkerName'](_0x15737a['name']);if(!_0x2ff416['hasSuggestion'](_0x130285))return null;const _0x54414a=_0x2ff416['getSuggestion'](_0x130285);return _0x561d16['includes'](_0x54414a['data']['key']);})['map'](_0x1b12e2=>{const {id:_0x5c3d48}=_0x2ff416['_splitMarkerName'](_0x1b12e2['name']),_0x170b84=_0x2ff416['getSuggestion'](_0x5c3d48);return _0x31f62d=_0x170b84['attributes']['groupId'],_0x170b84['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1805a3['size'])return;const _0x30418b=_0x2ff416['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x827b1f=>'attribute'==_0x827b1f['type']&&_0x827b1f['data']&&_0x561d16['includes'](_0x827b1f['data']['key'])&&_0x827b1f['attributes']['groupId']!=_0x31f62d)['map'](_0x4d6ab6=>({'listItem':_0x4d6ab6['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4d6ab6['attributes']['groupId']})),_0x24b1ba=new Set();for(const {groupId:_0x382a0a,listItem:_0x5baf8a}of _0x30418b)_0x1805a3['has'](_0x5baf8a)&&_0x24b1ba['add'](_0x382a0a);for(const _0x2ee0ac of _0x2ff416['getSuggestions']())_0x24b1ba['has'](_0x2ee0ac['attributes']['groupId'])&&_0x2ee0ac['setAttribute']('groupId',_0x31f62d);}['_supportLegacySuggestions'](){const _0x13178a=this['editor'],_0x468dcb=_0x13178a['locale'],_0x69f810=_0x13178a['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x69f810['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x18711e,_0x25a96a){const _0x19d0e5=[];for(let _0xce0a94 of _0x18711e)_0xce0a94['start']['nodeAfter']===_0xce0a94['end']['parent']&&(_0xce0a94=_0x13178a['model']['createRange'](_0x13178a['model']['createPositionAt'](_0xce0a94['start']['nodeAfter'],0x0))),_0x19d0e5['push'](_0xce0a94);_0x13178a['model']['change'](_0x55bf60=>{const _0x4d2d07=_0x13178a['model']['document']['selection'],_0x2f1290=Array['from'](_0x4d2d07['getRanges']())['map'](_0x2031be=>_0x20ab11['fromRange'](_0x2031be));_0x55bf60['setSelection'](_0x19d0e5),_0x13178a['commands']['get'](_0x25a96a['commandName'])['refresh'](),_0x25a96a['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x13178a['execute'](_0x25a96a['commandName'],..._0x25a96a['commandParams']),_0x55bf60['setSelection'](_0x2f1290);for(const _0x37cf26 of _0x2f1290)_0x37cf26['detach']();});}),_0x69f810['descriptionFactory']['registerElementLabel'](function(_0x4cc280){const _0x3e2cb8=!_0x13178a['model']['schema']['isObject'](_0x4cc280),_0x88154d=_0x4cc280['previousSibling'],_0x1c4591=_0x4cc280['nextSibling'],_0x16da4a=_0x4cc280['getAttribute']('listItemId'),_0x82afdc=!_0x88154d||_0x88154d['getAttribute']('listItemId')!==_0x16da4a,_0x42746d=!_0x1c4591||_0x1c4591['getAttribute']('listItemId')!==_0x16da4a;return _0x3e2cb8&&Boolean(_0x16da4a)&&_0x82afdc&&_0x42746d;},_0x4083cc=>o(_0x468dcb,'ELEMENT_LIST_ITEM',_0x4083cc));}['_registerLegacyDescription'](){const _0x112d6b=this['editor'],_0x2e5453=_0x112d6b['locale'];function _0x1fc895(_0x1b68f6){const _0x51c621=_0x112d6b['commands']['get']('bulletedList')['value'],_0x24d140=_0x112d6b['commands']['get']('numberedList')['value'];return'numberedList'===_0x1b68f6?_0x51c621:_0x24d140;}_0x112d6b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1918f3){if('formatBlock'!=_0x1918f3['type'])return;const {data:_0x408dd7}=_0x1918f3;if(!_0x408dd7)return;let _0x9d80be,_0x5b988f,_0x1e3c90,_0x30a6b3;switch(_0x408dd7['commandName']){case'bulletedList':_0x1e3c90=_0x408dd7['commandParams'][0x0]['forceValue'],_0x30a6b3=_0x1fc895(_0x408dd7['commandName']),_0x9d80be=_0x1e3c90?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x30a6b3&&_0x112d6b['config']['get']('list.multiBlock')||(_0x9d80be='*Change\x20to:*\x20%0'),_0x5b988f={'type':'format','content':o(_0x2e5453,_0x9d80be,o(_0x2e5453,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1e3c90=_0x408dd7['commandParams'][0x0]['forceValue'],_0x30a6b3=_0x1fc895(_0x408dd7['commandName']),_0x9d80be=_0x1e3c90?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x30a6b3&&_0x112d6b['config']['get']('list.multiBlock')||(_0x9d80be='*Change\x20to:*\x20%0'),_0x5b988f={'type':'format','content':o(_0x2e5453,_0x9d80be,o(_0x2e5453,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x9d80be='*Indent:*\x20%0',_0x5b988f={'type':'format','content':o(_0x2e5453,_0x9d80be,o(_0x2e5453,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x9d80be=function(_0x2b1793){const _0x29fe66=_0x2b1793['getFirstRange']();let _0x3c3083=_0x29fe66['start']['nodeAfter'];for(;_0x3c3083&&_0x29fe66['containsItem'](_0x3c3083);){if(_0x3c3083['getAttribute']('listIndent')>0x0)return!0x1;_0x3c3083=_0x3c3083['nextSibling'];}return!0x0;}(_0x1918f3)?o(_0x2e5453,'*Format:*\x20remove\x20from\x20%0',o(_0x2e5453,function(_0xa0a7b6){return'ELEMENT_'+_0xa0a7b6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1918f3))):o(_0x2e5453,'*Outdent:*\x20%0',o(_0x2e5453,'ELEMENT_LIST_ITEM')),_0x5b988f={'type':'format','content':_0x9d80be};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x408dd7['multipleBlocks']&&(_0x9d80be='*Merge:*\x20%0',_0x5b988f={'type':'deletion','content':o(_0x2e5453,_0x9d80be,o(_0x2e5453,'ELEMENT_LIST_ITEM'))});}return _0x5b988f;});}}function Be(_0x53233b){let _0x22626a=_0x53233b['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x22626a;){const _0x51e451=_0x22626a['getAttribute']('listItemId');if(!_0x51e451)return!0x1;if(_0x51e451==_0x53233b['data']['newValue'])return'newValue';if(_0x51e451==_0x53233b['data']['oldValue'])return'oldValue';_0x22626a=_0x22626a['previousSibling'];}return!0x1;}class Z extends _0x442276{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1c390e=this['editor']['config']['get']('list.properties'),_0x294783=this['editor']['plugins']['get']('TrackChangesEditing');_0x1c390e['styles']&&(_0x294783['enableDefaultAttributesIntegration']('listStyle'),_0x294783['registerBlockAttribute']('listStyle')),_0x1c390e['reversed']&&(_0x294783['enableDefaultAttributesIntegration']('listReversed'),_0x294783['registerBlockAttribute']('listReversed')),_0x1c390e['startIndex']&&(_0x294783['enableDefaultAttributesIntegration']('listStart'),_0x294783['registerBlockAttribute']('listStart'));const _0x4a6e10={'type':'format','content':''};_0x294783['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4ff1e6=this['editor']['locale'];_0x294783['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4ff1e6,'FORMAT_LIST_REVERSED')),_0x294783['descriptionFactory']['registerDescriptionCallback'](_0x1dc4e9=>{const {data:_0x97b98c}=_0x1dc4e9;if(_0x97b98c&&'listReversed'==_0x97b98c['key'])return null==_0x97b98c['newValue']||0x0==_0x97b98c['newValue']&&null==_0x97b98c['oldValue']?_0x4a6e10:void 0x0;}),_0x294783['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4ff1e6,'FORMAT_LIST_START')),_0x294783['descriptionFactory']['registerDescriptionCallback'](_0x5b25cc=>{const {data:_0x45dd3f}=_0x5b25cc;if(_0x45dd3f&&'listStart'==_0x45dd3f['key'])return null==_0x45dd3f['newValue']||0x1==_0x45dd3f['newValue']&&null==_0x45dd3f['oldValue']?_0x4a6e10:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x300f66=>{if(_0x300f66['batch']['isUndo'])return!0x1;let _0x3b7a46=!0x1;const _0x5f0950=_0x294783['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x689e4b=>{const _0x59452a=_0x294783['_getAttributeKey'](_0x689e4b);return'listStart'==_0x59452a||'listReversed'==_0x59452a;});for(const _0x3b3185 of _0x5f0950){const _0x122edb=_0x3b3185['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x122edb||'customNumbered'==_0x122edb)continue;_0x294783['_findSuggestions'](_0x3b3185['getFirstRange'](),'attribute')['find'](_0x3d6279=>'listType'==_0x294783['_getAttributeKey'](_0x3d6279['suggestion']))||(_0x300f66['removeMarker'](_0x3b3185['getFirstMarker']()),_0x3b7a46=!0x0);}return _0x3b7a46;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x24b3bc){const _0x4f148b=this['editor']['locale'],{data:_0x3d249b}=_0x24b3bc,_0x4ec00d={'type':'format','content':''};if(!_0x3d249b||'listStyle'!=_0x3d249b['key'])return;if(!_0x3d249b['oldValue'])return'default'==_0x3d249b['newValue']?_0x4ec00d:{'type':'format','content':''+o(_0x4f148b,'*Set\x20format:*\x20%0',o(_0x4f148b,this['_getTranslationKeyForListStyle'](_0x3d249b['newValue'])))};if(!_0x3d249b['newValue']){if('default'==_0x3d249b['oldValue'])return _0x4ec00d;let _0xe3a779=_0x24b3bc['head'];for(;_0xe3a779;){if(_0xe3a779['data']&&'listType'==_0xe3a779['data']['key']&&_0xe3a779['data']['newValue'])return _0x4ec00d;_0xe3a779=_0xe3a779['next'];}return{'type':'format','content':''+o(_0x4f148b,'*Remove\x20format:*\x20%0',o(_0x4f148b,this['_getTranslationKeyForListStyle'](_0x3d249b['oldValue'])))};}if('default'!=_0x3d249b['newValue'])return{'type':'format','content':''+o(_0x4f148b,'*Set\x20format:*\x20%0',o(_0x4f148b,this['_getTranslationKeyForListStyle'](_0x3d249b['newValue'])))};let _0x1b3e70=_0x24b3bc['head'];for(;_0x1b3e70;){if(_0x1b3e70['data']&&'listType'==_0x1b3e70['data']['key']&&_0x1b3e70['data']['newValue']&&_0x1b3e70['data']['oldValue'])return _0x4ec00d;_0x1b3e70=_0x1b3e70['next'];}return{'type':'format','content':o(_0x4f148b,'*Set\x20format:*\x20%0',o(_0x4f148b,'ELEMENT_'+_0x24b3bc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x142fab=this['editor'],_0x525b2b=_0x142fab['locale'];_0x142fab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17e737=>{if('formatBlock'!=_0x17e737['type'])return;const {data:_0x3af60c}=_0x17e737;if(!_0x3af60c)return;let _0x3a2c4c,_0x4cc720;switch(_0x3af60c['commandName']){case'listStyle':_0x3a2c4c='*Change\x20to:*\x20%0',_0x4cc720={'type':'format','content':o(_0x525b2b,_0x3a2c4c,o(_0x525b2b,this['_getTranslationKeyForListStyle'](_0x3af60c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3a2c4c=_0x3af60c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4cc720={'type':'format','content':o(_0x525b2b,_0x3a2c4c)};break;case'listStart':_0x3a2c4c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4cc720={'type':'format','content':o(_0x525b2b,_0x3a2c4c,_0x3af60c['commandParams'][0x0]['startIndex'])};}return _0x4cc720;});}['_getTranslationKeyForListStyle'](_0x325b17){return'ELEMENT_'+function(_0x8e312c){if(Re['includes'](_0x8e312c))return'bulleted';if(De['includes'](_0x8e312c))return'numbered';return null;}(_0x325b17)['toUpperCase']()+'_LIST_'+_0x325b17['toUpperCase']()['replace'](/-/g,'_');}}const Re=['disc','circle','square'],De=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class tt extends _0x442276{['afterInit'](){const _0x38e371=this['editor'];_0x38e371['commands']['get']('emoji')&&_0x38e371['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class et extends _0x442276{static get['requires'](){return[_0x11e7a2];}['init'](){const _0x5a2794=this['editor'],_0xe60662=_0x5a2794['plugins']['get']('TrackChangesEditing'),_0x203413=_0x5a2794['commands']['get']('enter');_0xe60662['enableCommand']('enter',()=>{_0x5a2794['model']['change'](_0x5eaef7=>{const _0x5163ea=_0x5a2794['model']['document']['selection'],_0x4a9a42=_0x5163ea['getFirstPosition'](),_0x2f9332=_0x20ab11['fromRange'](_0x5163ea['getFirstRange']());if(_0x203413['enterBlock'](_0x5eaef7)){const _0x19ab81=_0x5a2794['model']['createPositionAt'](_0x4a9a42['parent']['nextSibling'],0x0),_0x1a7dcd=_0x5eaef7['createRange'](_0x4a9a42,_0x19ab81);_0xe60662['markInsertion'](_0x1a7dcd);}else _0x5eaef7['setSelection'](_0x5eaef7['createRange'](_0x2f9332['end']));_0x2f9332['detach'](),_0x203413['fire']('afterExecute',{'writer':_0x5eaef7});});}),_0x5a2794['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ve(_0x5a2794,'split'),{'priority':'high'}),_0x5a2794['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x36dffa,_0x4c546c,_0x206036)=>{const _0xff1437=_0x206036['mapper']['markerNameToElements'](_0x4c546c['markerName']);if(_0xff1437){for(const _0x42fcc1 of _0xff1437)_0x42fcc1['hasClass']('ck-suggestion-marker-split')&&(_0x206036['mapper']['unbindElementFromMarkerName'](_0x42fcc1,_0x4c546c['markerName']),_0x206036['writer']['remove'](_0x42fcc1));}},{'priority':'high'}),_0x5a2794['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4400d0,_0x37ef88,_0x1facf9)=>{_0x1facf9['options']['showSuggestionHighlights']&&Ve(_0x5a2794,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4400d0,_0x37ef88,_0x1facf9);},{'priority':'high'});}}class it extends _0x442276{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4bbf9c=this['editor']['plugins']['get']('TrackChangesEditing');_0x4bbf9c['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4bbf9c['enableCommand']('findNext'),_0x4bbf9c['enableCommand']('findPrevious'),_0x4bbf9c['enableCommand']('replace'),_0x4bbf9c['enableCommand']('replaceAll');}['handleFindCommand'](_0x249047,_0x13b7c6,_0x5f2849={}){const _0x193685=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x249047(_0x4756db=>{let _0x14f8e1=('string'==typeof _0x13b7c6?_0x193685['findByTextCallback'](_0x13b7c6,_0x5f2849):_0x13b7c6)(_0x4756db);Array['isArray'](_0x14f8e1)&&(_0x14f8e1={'results':_0x14f8e1,'searchText':'string'==typeof _0x13b7c6?_0x13b7c6:''});const _0x2fa919=_0x14f8e1['results']['filter'](_0x47ffcf=>!0x1===this['_isInDeletionRange'](_0x47ffcf,_0x4756db['item']));return{..._0x14f8e1,'results':_0x2fa919};},_0x5f2849);}['_isInDeletionRange'](_0x5eea0,_0x34f4d0){const _0x1a3714=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x34f4d0,_0x5eea0['start']),this['editor']['model']['createPositionAt'](_0x34f4d0,_0x5eea0['end']));for(const _0x4c0856 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1a3714['getIntersection'](_0x4c0856['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class nt extends _0x442276{['afterInit'](){const _0x1f7e2=this['editor']['locale'],_0x38d827=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xb21c12,commandName:_0x457142}of eo)this['editor']['plugins']['has'](_0xb21c12)&&(_0x38d827['enableDefaultAttributesIntegration'](_0x457142),_0x38d827['registerInlineAttribute'](_0x457142));_0x38d827['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1f7e2,'FORMAT_FONT_SIZE')),_0x38d827['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1f7e2,'FORMAT_FONT_FAMILY')),_0x38d827['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1f7e2,'FORMAT_FONT_COLOR')),_0x38d827['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1f7e2,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13d6fd=this['editor'],_0x48d2b1=_0x13d6fd['locale'];_0x13d6fd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5168f2=>{const _0x15efcf=_0x48d2b1['t'];if('formatInline'!=_0x5168f2['type'])return;const {data:_0x976cb1}=_0x5168f2;if(null!=_0x976cb1){if('fontSize'==_0x976cb1['commandName']){const _0x158ed3=_0x976cb1['commandParams'][0x0]['value'];if(_0x158ed3){const _0x5941df=_0x15efcf(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1f7c3e=>_0x1f7c3e['model']==_0x158ed3)['title'])['toLowerCase']();return{'type':'format','content':o(_0x48d2b1,'*Set\x20font\x20size:*\x20%0',_0x5941df)};}return{'type':'format','content':o(_0x48d2b1,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x976cb1['commandName']){const _0x5925ab=_0x976cb1['commandParams'][0x0]['value'];return _0x5925ab?{'type':'format','content':o(_0x48d2b1,'*Set\x20font\x20family:*\x20%0',_0x5925ab)}:{'type':'format','content':o(_0x48d2b1,'*Reset\x20font\x20family*')};}if('fontColor'==_0x976cb1['commandName']){const _0x3463f3=_0x976cb1['commandParams'][0x0]['value'];if(_0x3463f3){const _0x20687=_0x15b93f(this['editor']['config']['get']('fontColor.colors'))['find'](_0x48065f=>_0x48065f['model']==_0x3463f3);let _0x2aa2ab=_0x3463f3,_0x202eca='';return _0x20687&&(_0x2aa2ab=_0x20687['label'],_0x202eca=_0x15efcf(_0x2aa2ab)['toLowerCase']()),{'type':'format','content':o(_0x48d2b1,'*Set\x20font\x20color:*\x20%0',_0x202eca)['trim'](),'color':{'value':_0x3463f3,'title':_0x202eca||_0x2aa2ab}};}return{'type':'format','content':o(_0x48d2b1,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x976cb1['commandName']){const _0xe46df3=_0x976cb1['commandParams'][0x0]['value'];if(_0xe46df3){const _0x538bc0=_0x15b93f(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5de1a2=>_0x5de1a2['model']==_0xe46df3);let _0x2ce5dc=_0xe46df3,_0x6aba43='';return _0x538bc0&&(_0x2ce5dc=_0x538bc0['label'],_0x6aba43=_0x15efcf(_0x2ce5dc)['toLowerCase']()),{'type':'format','content':o(_0x48d2b1,'*Set\x20font\x20background\x20color:*\x20%0',_0x6aba43)['trim'](),'color':{'value':_0xe46df3,'title':_0x6aba43||_0x2ce5dc}};}return{'type':'format','content':o(_0x48d2b1,'*Reset\x20font\x20background\x20color*')};}}});}}class st extends _0x442276{['afterInit'](){const {plugins:_0x2ae4c4}=this['editor'];_0x2ae4c4['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x2ae4c4['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x27ffa7,plugins:_0x58d5d8,commands:_0xb2b58b}=this['editor'],_0x39ae85=_0x58d5d8['get']('TrackChangesEditing');_0xb2b58b['get']('footnotesStyle')&&_0x39ae85['enableDefaultAttributesIntegration']('footnotesStyle'),_0xb2b58b['get']('footnotesStart')&&_0x39ae85['enableDefaultAttributesIntegration']('footnotesStart'),_0x39ae85['registerBlockAttribute']('footnotesListStyle'),_0x39ae85['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x27ffa7,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x39ae85['registerBlockAttribute']('footnotesListStart'),_0x39ae85['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x27ffa7,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x1f98fc=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x5e6e3a,commands:_0x51215a}=this['editor'];_0x51215a['get']('insertFootnote')&&_0x1f98fc['enableCommand']('insertFootnote'),_0x1f98fc['descriptionFactory']['registerElementLabel']('footnoteRef',_0x158317=>o(_0x5e6e3a,'ELEMENT_FOOTNOTE_REF',_0x158317)),_0x1f98fc['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x55e98c=>o(_0x5e6e3a,'ELEMENT_FOOTNOTE_DEFINITION',_0x55e98c)),_0x1f98fc['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x38aaf5=>o(_0x5e6e3a,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x38aaf5));}}class ot extends _0x442276{['afterInit'](){const _0x444adc=this['editor'],_0x199e65=_0x444adc['plugins']['get']('TrackChangesEditing'),_0x4af8b7=_0x444adc['commands']['get']('copyFormat'),_0x31d990=_0x444adc['commands']['get']('pasteFormat');_0x4af8b7&&_0x31d990&&(_0x199e65['enableDefaultAttributesIntegration']('pasteFormat'),_0x199e65['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x474ee0=this['editor'],_0x26edf9=_0x474ee0['locale'];_0x474ee0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50c6d2=>{if('formatBlock'!=_0x50c6d2['type']&&'formatInline'!=_0x50c6d2['type'])return;const {data:_0x2e5e8b}=_0x50c6d2;if(_0x2e5e8b&&'pasteFormat'===_0x2e5e8b['commandName']){const _0xc85a87=[],_0x4a95f1=_0x2e5e8b['commandParams'][0x0];for(const [_0x4e3c25,_0x210209]of Object['entries'](_0x4a95f1))_0xc85a87['push'](ro(_0x474ee0,_0x4e3c25,_0x210209));return _0xc85a87['length']?{'type':'format','content':o(_0x26edf9,'*Set\x20format\x20to:*\x20%0',_0xc85a87['join'](',\x20'))}:{'type':'format','content':o(_0x26edf9,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x16569a,_0x2d635b,_0x583a49){const _0x4637d2=_0x16569a['locale']['t'],_0x2e7faa=_0x2d635b['split'](/(?=[A-Z])/)['join']('\x20'),_0x5683f=_0x4637d2(_0x2e7faa['charAt'](0x0)['toUpperCase']()+_0x2e7faa['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x583a49)return _0x5683f;if('fontColor'===_0x2d635b||'fontBackgroundColor'===_0x2d635b){const _0x15d627=_0x15b93f(_0x16569a['config']['get']('fontColor.colors'))['find'](_0x1768a1=>_0x1768a1['model']==_0x583a49);return _0x5683f+'\x20('+(_0x15d627?_0x4637d2(_0x15d627['label'])['toLowerCase']():_0x583a49)+')';}if('fontSize'===_0x2d635b&&isNaN(parseFloat(_0x583a49))){const _0x2b32c2=_0x16569a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x16569a['config']['get']('fontSize.options'))['find'](_0x21027e=>_0x21027e['model']==_0x583a49);return _0x5683f+'\x20('+(_0x2b32c2?_0x4637d2(_0x2b32c2['title'])['toLowerCase']():_0x583a49)+')';}return _0x5683f+'\x20('+_0x583a49+')';}class rt extends _0x442276{['_headingOptions'];['afterInit'](){const _0x5cc78e=this['editor'];if(!_0x5cc78e['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5cc78e['config']['get']('heading.options');const _0x775837=_0x5cc78e['locale'],_0x7fd589=_0x5cc78e['plugins']['get']('TrackChangesEditing');_0x7fd589['enableDefaultAttributesIntegration']('heading');for(const _0x46203d of this['_headingOptions'])'paragraph'!=_0x46203d['model']&&_0x7fd589['descriptionFactory']['registerElementLabel'](_0x46203d['model'],_0x33de6b=>{const _0x180a78=this['_getHeadingLevel'](_0x46203d['model']);return null!==_0x180a78?_0x537e0a(_0x33de6b,_0x180a78):_0x3d6d92(_0x33de6b,_0x46203d['title']);});function _0x537e0a(_0x10a86a,_0x2331f7){return o(_0x775837,'ELEMENT_HEADING',[_0x10a86a,_0x2331f7]);}function _0x3d6d92(_0xa32e37,_0x1f373b){return o(_0x775837,'ELEMENT_HEADING_CUSTOM',[_0xa32e37,_0x1f373b]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52215b=this['editor'],_0x15190d=_0x52215b['locale'];function _0x5ee562(_0x3d66d5,_0x376ed6){return o(_0x15190d,'ELEMENT_HEADING_CUSTOM',[_0x3d66d5,_0x376ed6]);}_0x52215b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a0907=>{if('formatBlock'!=_0x5a0907['type'])return;const {data:_0x51e9b2}=_0x5a0907;if(_0x51e9b2&&'heading'==_0x51e9b2['commandName']){const _0x2e049b=_0x51e9b2['commandParams'][0x0]['value'],_0x336c44=this['_getHeadingLevel'](_0x2e049b);if(null!==_0x336c44)return{'type':'format','content':o(_0x15190d,'*Change\x20to:*\x20%0',(_0xb29407=0x1,_0x2ed2af=_0x336c44,o(_0x15190d,'ELEMENT_HEADING',[_0xb29407,_0x2ed2af])))};const _0x2c1b14=this['_headingOptions']['find'](_0x3e86d5=>_0x3e86d5['model']===_0x2e049b)['title'];return{'type':'format','content':o(_0x15190d,'*Change\x20to:*\x20%0',_0x5ee562(0x1,_0x2c1b14))};}var _0xb29407,_0x2ed2af;});}['_getHeadingLevel'](_0x535888){const _0x6e21c6=_0x535888['match'](/^heading(\d+)/);if(_0x6e21c6)return _0x6e21c6[0x1];const _0x415ac8=this['_headingOptions']?.['find'](_0x3b3df2=>_0x3b3df2['model']==_0x535888);if(_0x415ac8&&_0x415ac8['view']){const _0x2eeb49=_0x415ac8['view'],_0x306d49=(_0x2eeb49['name']??_0x2eeb49)['match'](/^h(\d+)/);if(_0x306d49)return _0x306d49[0x1];}return null;}}class at extends _0x442276{['afterInit'](){const _0x2cd200=this['editor'];if(!_0x2cd200['plugins']['has']('HighlightEditing'))return;const _0x1d7db6=_0x2cd200['plugins']['get']('TrackChangesEditing'),_0x7b47b6=_0x2cd200['locale'];_0x1d7db6['enableDefaultAttributesIntegration']('highlight'),_0x1d7db6['registerInlineAttribute']('highlight'),_0x1d7db6['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x7b47b6,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb115fb=this['editor'],_0x47bdc3=_0xb115fb['locale'];_0xb115fb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b40bb=>{if('formatInline'!=_0x1b40bb['type'])return;const {data:_0x736fdd}=_0x1b40bb;if(_0x736fdd&&'highlight'==_0x736fdd['commandName']){const _0x5779c6=_0x47bdc3['t'],_0x49f68f=_0x736fdd['commandParams'][0x0]['value'];if(_0x49f68f){const _0x54665f=_0xb115fb['config']['get']('highlight.options')['find'](_0x4612d0=>_0x4612d0['model']==_0x49f68f),_0x344acd=_0x5779c6(_0x54665f['title'])['toLowerCase']();return{'type':'format','content':o(_0x47bdc3,'*Set\x20highlight:*\x20%0',_0x344acd),'color':{'value':_0x54665f['color'],'title':_0x54665f['title']}};}return{'type':'format','content':o(_0x47bdc3,'*Remove\x20highlight*',o(_0x47bdc3,'FORMAT_HIGHLIGHT'))};}});}}class ct extends _0x442276{['afterInit'](){const _0x51c2fb=this['editor'];if(!_0x51c2fb['plugins']['has']('HorizontalLineEditing'))return;_0x51c2fb['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5a853d=_0x51c2fb['plugins']['get']('TrackChangesEditing'),_0x56101d=_0x51c2fb['locale'];_0x5a853d['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3ced5b=>o(_0x56101d,'ELEMENT_HORIZONTAL_LINE',_0x3ced5b)),_0x51c2fb['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x21b0e0,{writer:_0x3362fc,options:_0x5400bd})=>{if(!_0x5400bd['showSuggestionHighlights'])return null;const _0x24827e=_0x3362fc['createContainerElement']('div'),_0x53bf21=_0x3362fc['createEmptyElement']('hr');return _0x3362fc['addClass']('ck-horizontal-line',_0x24827e),_0x3362fc['insert'](_0x3362fc['createPositionAt'](_0x24827e,0x0),_0x53bf21),_0x24827e;},'converterPriority':'high'});}}class ut extends _0x442276{['afterInit'](){const _0x1126b1=this['editor'];if(!_0x1126b1['plugins']['has']('HtmlEmbed'))return;const _0x1c6a1d=_0x1126b1['plugins']['get']('TrackChangesEditing'),_0x2f8931=_0x1126b1['locale'];_0x1c6a1d['descriptionFactory']['registerElementLabel']('rawHtml',_0xa1374b=>o(_0x2f8931,'ELEMENT_HTML_EMBED',_0xa1374b)),_0x1c6a1d['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1c6a1d['registerBlockAttribute']('value'),_0x1c6a1d['descriptionFactory']['registerDescriptionCallback'](_0xb38bcf=>{if('attribute'!=_0xb38bcf['type'])return;const {data:_0x8cb921}=_0xb38bcf;if(_0x8cb921&&'value'==_0x8cb921['key']&&_0xb38bcf['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x52b27c=o(_0x2f8931,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2f8931,'*Change\x20%0\x20content*',_0x52b27c)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47b5fc=this['editor'],_0x588b1d=_0x47b5fc['locale'];_0x47b5fc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bacf9=>{if('formatBlock'!=_0x2bacf9['type'])return;const {data:_0x3e7cff}=_0x2bacf9;if(_0x3e7cff&&'htmlEmbed'==_0x3e7cff['commandName']){const _0x1b148d=o(_0x588b1d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x588b1d,'*Change\x20%0\x20content*',_0x1b148d)};}});}}class ft extends _0x442276{['afterInit'](){const _0x4ae548=this['editor'];if(!_0x4ae548['plugins']['has']('ImageEditing'))return;const _0x23ae6e=_0x4ae548['plugins']['get']('TrackChangesEditing'),_0x5c9269=_0x4ae548['plugins']['get']('ImageUtils'),_0x2dd989=_0x4ae548['locale'];_0x23ae6e['enableCommand']('insertImage'),_0x23ae6e['descriptionFactory']['registerElementLabel']('imageBlock',_0x1e35b8=>o(_0x2dd989,'ELEMENT_IMAGE',_0x1e35b8)),_0x23ae6e['descriptionFactory']['registerElementLabel']('imageInline',_0x528c67=>o(_0x2dd989,'ELEMENT_INLINE_IMAGE',_0x528c67)),_0x23ae6e['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2dd989,'ELEMENT_CAPTION')),_0x4ae548['plugins']['has']('ImageUploadEditing')&&_0x23ae6e['enableCommand']('uploadImage'),_0x4ae548['plugins']['has']('ImageBlockEditing')&&_0x4ae548['plugins']['has']('ImageInlineEditing')&&(_0x23ae6e['enableCommand']('imageTypeInline',(_0x3c8935,_0x7bbcd)=>{const _0x59609f=_0x5c9269['getClosestSelectedImageElement'](_0x4ae548['model']['document']['selection']);_0x4ae548['model']['change'](()=>{_0x23ae6e['markBlockFormat'](_0x59609f,{'commandName':'imageTypeInline','commandParams':[_0x7bbcd]},[],'convertBlockImageToInline');});}),_0x23ae6e['enableCommand']('imageTypeBlock',(_0x1d9a8f,_0x432643)=>{_0x4ae548['model']['change'](_0x365c28=>{let _0x1d088c=_0x5c9269['getClosestSelectedImageElement'](_0x4ae548['model']['document']['selection']),_0x5e54de=_0x365c28['createRangeOn'](_0x1d088c);const _0x1bbc61=_0x94a3f8['fromPosition'](_0x5e54de['start'],'toPrevious'),_0xf5249d=_0x94a3f8['fromPosition'](_0x5e54de['end'],'toNext');_0x23ae6e['forceDefaultExecution'](()=>_0x1d9a8f(_0x432643)),_0x1d088c=_0x5c9269['getClosestSelectedImageElement'](_0x4ae548['model']['document']['selection']),_0x5e54de=_0x365c28['createRangeOn'](_0x1d088c);const _0x593e5e=_0x365c28['createRange'](_0x1bbc61,_0xf5249d);_0x1bbc61['detach'](),_0xf5249d['detach'](),_0x23ae6e['markBlockFormat'](_0x1d088c,{'commandName':'imageTypeInline','commandParams':[_0x432643]},[],'convertInlineImageToBlock'),_0x593e5e['start']['isBefore'](_0x5e54de['start'])&&_0x23ae6e['markInsertion'](_0x365c28['createRange'](_0x593e5e['start'],_0x5e54de['start']),'convertInlineImageToBlock'),_0x5e54de['end']['isBefore'](_0x593e5e['end'])&&_0x23ae6e['markInsertion'](_0x365c28['createRange'](_0x5e54de['end'],_0x593e5e['end']),'convertInlineImageToBlock');});}),_0x23ae6e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x23ae6e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x23ae6e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x23ae6e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x23ae6e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x23ae6e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xcaaaf2])=>{const _0x49f310=_0x23ae6e['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4756cb=_0xcaaaf2['start'],_0x24a9f3=_0xcaaaf2['end'];const _0x435381=_0x4ae548['model']['schema']['getNearestSelectionRange'](_0x4756cb,'backward'),_0x2e87d9=_0x4ae548['model']['schema']['getNearestSelectionRange'](_0x24a9f3,'forward');_0x435381['isCollapsed']&&(_0x4756cb=_0x435381['start']),_0x2e87d9['isCollapsed']&&(_0x24a9f3=_0x2e87d9['end']),_0x49f310([_0x4ae548['model']['createRange'](_0x4756cb,_0x24a9f3)]);}),_0x23ae6e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x35a304),_0x23ae6e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x35a304)),_0x4ae548['plugins']['has']('ImageCaptionEditing')&&(_0x23ae6e['enableCommand']('toggleImageCaption',(_0x294db3,_0x812389)=>{const _0x2056f6=_0x4ae548['plugins']['get']('ImageCaptionUtils');let _0x4be8c0=_0x5c9269['getClosestSelectedImageElement'](_0x4ae548['model']['document']['selection']),_0x1f98ce=_0x2056f6['getCaptionFromImageModelElement'](_0x4be8c0);_0x4ae548['model']['change'](()=>{if(_0x1f98ce)return void _0x23ae6e['markDeletion'](_0x4ae548['model']['createRangeOn'](_0x1f98ce));const _0x123865=_0x5c9269['isBlockImage'](_0x4be8c0);_0x294db3(_0x812389),_0x4be8c0=_0x5c9269['getClosestSelectedImageElement'](_0x4ae548['model']['document']['selection']),_0x1f98ce=_0x2056f6['getCaptionFromImageModelElement'](_0x4be8c0),_0x23ae6e['markInsertion'](_0x4ae548['model']['createRangeOn'](_0x1f98ce),_0x123865?null:'imageCaption');});}),_0x23ae6e['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x35a304));const _0x29be65=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x29e9e3(_0x78819a,_0x4903cc){const _0x1182b0=_0x29be65['findIndex'](({type:_0x18b82a,subType:_0x5af6fa})=>_0x78819a['type']==_0x18b82a&&_0x78819a['subType']==_0x5af6fa),_0x52537f=_0x29be65['findIndex'](({type:_0x4600d8,subType:_0x37c8e2})=>_0x4903cc['type']==_0x4600d8&&_0x4903cc['subType']==_0x37c8e2);if(_0x1182b0<0x0||_0x52537f<0x0)return!0x1;const _0x13a5b7=_0x78819a['getFirstRange'](),_0x38834c=_0x4903cc['getFirstRange']();if((0x0==_0x1182b0||0x1==_0x1182b0)&&0x2==_0x52537f&&_0x13a5b7['isIntersecting'](_0x38834c))return!0x0;if(0x2==_0x1182b0&&0x3==_0x52537f){const _0x41bfbe=_0x23ae6e['_findSuggestions'](_0x13a5b7,'insertion')['filter'](({suggestion:_0x499d67,meta:_0x5a8ea1})=>_0x5a8ea1['isOwn']&&'convertInlineImageToBlock'==_0x499d67['subType']);if(_0x41bfbe['length']>0x1&&_0x38834c['end']['isEqual'](_0x13a5b7['start']))return!0x0;if(0x1==_0x41bfbe['length']&&(_0x13a5b7['start']['isEqual'](_0x38834c['end'])||_0x13a5b7['end']['isEqual'](_0x38834c['start'])))return!0x0;}if(0x3==_0x1182b0&&0x3==_0x52537f&&_0x13a5b7['start']['isBefore'](_0x38834c['start'])){const _0x4405f8=_0x13a5b7['end']['nodeAfter'],_0xcd15b6=_0x38834c['start']['nodeBefore'];return _0x5c9269['isBlockImage'](_0x4405f8)&&_0x4405f8===_0xcd15b6;}return!0x1;}function _0x35a304(_0x155bf1,_0x1ae9dc){return _0x29e9e3(_0x155bf1,_0x1ae9dc)?[_0x155bf1,_0x1ae9dc]:_0x29e9e3(_0x1ae9dc,_0x155bf1)?[_0x1ae9dc,_0x155bf1]:null;}_0x4ae548['plugins']['has']('ImageResize')&&(_0x23ae6e['enableDefaultAttributesIntegration']('resizeImage'),_0x23ae6e['registerBlockAttribute']('resizedWidth'),_0x23ae6e['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2dd989,'FORMAT_IMAGE_SIZE'))),_0x4ae548['plugins']['has']('ImageTextAlternativeEditing')&&(_0x23ae6e['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x23ae6e['registerBlockAttribute']('alt')),_0x4ae548['plugins']['has']('PictureEditing')&&(_0x23ae6e['registerBlockAttribute']('sources'),_0x23ae6e['descriptionFactory']['registerDescriptionCallback'](_0x25f969=>{if('attribute'!=_0x25f969['type'])return;const {data:_0x5823f4}=_0x25f969;return _0x5823f4&&'sources'==_0x5823f4['key']?{'type':'format','content':''}:void 0x0;})),_0x4ae548['plugins']['has']('ImageSizeAttributes')&&(_0x23ae6e['registerBlockAttribute']('width'),_0x23ae6e['registerBlockAttribute']('height'),_0x23ae6e['descriptionFactory']['registerDescriptionCallback'](_0x27ce0d=>{if('attribute'!=_0x27ce0d['type'])return;const {data:_0x3e3e68}=_0x27ce0d;return!_0x3e3e68||'width'!=_0x3e3e68['key']&&'height'!=_0x3e3e68['key']?void 0x0:{'type':'format','content':''};})),_0x23ae6e['descriptionFactory']['registerDescriptionCallback'](_0x5a2e91=>{if(!!_0x29be65['find'](({type:_0xfa6b36,subType:_0x45f62d})=>_0x5a2e91['type']==_0xfa6b36&&_0x5a2e91['subType']==_0x45f62d))return _0x5a2e91['previous']?{}:void 0x0;}),_0x23ae6e['descriptionFactory']['registerDescriptionCallback'](_0x572abf=>{if('insertion'==_0x572abf['type']||'deletion'==_0x572abf['type']){const _0x1d4945=_0x572abf['getContainedElement']();if(_0x1d4945&&_0x1d4945['is']('element','caption'))return{'type':'insertion'==_0x572abf['type']?'addObject':'removeObject','element':_0x1d4945,'quantity':0x1};}}),_0x23ae6e['descriptionFactory']['registerDescriptionCallback'](_0x53b065=>'formatBlock'==_0x53b065['type']&&'convertInlineImageToBlock'==_0x53b065['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x53b065['type']&&'convertBlockImageToInline'==_0x53b065['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x23ae6e['descriptionFactory']['registerDescriptionCallback'](_0x47a248=>{if('attribute'!=_0x47a248['type'])return;const {data:_0xccb172}=_0x47a248;if(!_0xccb172||'alt'!=_0xccb172['key'])return;const _0x4c9d10=_0xccb172['newValue'];return _0x4c9d10?{'type':'format','content':o(_0x2dd989,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4c9d10+'\x22')}:{'type':'format','content':o(_0x2dd989,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36fd98=this['editor'],_0x8e563d=_0x36fd98['locale'];_0x36fd98['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d89c2=>{if('formatBlock'!=_0x1d89c2['type']&&'formatInline'!=_0x1d89c2['type'])return;const {data:_0x43d02a}=_0x1d89c2;if(_0x43d02a){if('imageTextAlternative'==_0x43d02a['commandName']){const _0x22e0c5=_0x43d02a['commandParams'][0x0]['newValue'];return _0x22e0c5?{'type':'format','content':o(_0x8e563d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x22e0c5+'\x22')}:{'type':'format','content':o(_0x8e563d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x43d02a['commandName']){const _0x5adc25=_0x43d02a['commandParams'][0x0]['width'];return _0x5adc25?{'type':'format','content':o(_0x8e563d,'*Set\x20image\x20width:*\x20%0',_0x5adc25)}:{'type':'format','content':o(_0x8e563d,'*Reset\x20image\x20width*')};}}});}}class ht extends _0x442276{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4c93e4=this['editor']['locale'],_0xade635=this['editor']['plugins']['get']('TrackChangesEditing');_0xade635['enableDefaultAttributesIntegration']('replaceImageSource'),_0xade635['registerBlockAttribute']('src'),_0xade635['descriptionFactory']['registerDescriptionCallback'](_0x1e318f=>{if('attribute'!=_0x1e318f['type'])return;const {data:_0x5f0d0d}=_0x1e318f;return _0x5f0d0d&&'src'==_0x5f0d0d['key']?_0x5f0d0d['newValue']&&_0x5f0d0d['oldValue']?{'type':'format','content':o(_0x4c93e4,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x26b021=this['editor']['plugins']['get']('TrackChangesEditing');_0x26b021['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x26b021['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x26b021['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x26b021['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1dd3a4=this['editor'],_0x331454=_0x1dd3a4['locale'];_0x1dd3a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a1468=>{if('formatBlock'!=_0x4a1468['type']&&'formatInline'!=_0x4a1468['type'])return;const {data:_0x4aee0c}=_0x4a1468;if(!_0x4aee0c||'replaceImageSource'!=_0x4aee0c['commandName'])return;return{'type':'format','content':o(_0x331454,'*Format:*\x20replace\x20image\x20URL')};});}}class gt extends _0x442276{['afterInit'](){const _0x43ad48=this['editor'];if(!_0x43ad48['plugins']['has']('ImageStyleEditing'))return;const _0x52b7e0=_0x43ad48['plugins']['get']('TrackChangesEditing'),_0x1ec511=_0x43ad48['plugins']['get']('ImageUtils'),_0x196ff2={};_0x52b7e0['enableCommand']('imageStyle',(_0x505bc1,_0x4ff334)=>{const _0x390cd2=_0x43ad48['plugins']['get']('Users')['me'],_0x477c60=_0x43ad48['commands']['get']('imageStyle');let _0x3949d5=_0x1ec511['getClosestSelectedImageElement'](_0x43ad48['model']['document']['selection']),_0x6be93b=_0x43ad48['model']['createRangeOn'](_0x3949d5),_0x1d9d60=_0x477c60['value'];if(_0x1d9d60==_0x4ff334['value'])return;const _0x5291be={'commandName':'imageStyle','commandParams':[_0x4ff334],'formatGroupId':_0x44bd93()};_0x43ad48['model']['change'](()=>{if(_0x52b7e0['getSuggestions']()['filter'](_0x3880cb=>_0x3880cb['isInContent']&&_0x390cd2==_0x3880cb['author']&&('formatBlock'==_0x3880cb['type']||'formatInline'==_0x3880cb['type'])&&('imageStylePreApply'==_0x3880cb['subType']||'imageStylePostApply'==_0x3880cb['subType'])&&_0x3880cb['getFirstRange']()['isEqual'](_0x6be93b))['forEach'](_0x1e9007=>_0x52b7e0['discardSuggestion'](_0x1e9007['head'])),_0x3949d5=_0x1ec511['getClosestSelectedImageElement'](_0x43ad48['model']['document']['selection']),_0x6be93b=_0x43ad48['model']['createRangeOn'](_0x3949d5),_0x477c60['refresh'](),_0x43ad48['commands']['get']('imageTypeInline')['refresh'](),_0x43ad48['commands']['get']('imageTypeBlock')['refresh'](),_0x1d9d60=_0x477c60['value'],_0x1d9d60!=_0x4ff334['value'])return _0x1ec511['isInlineImage'](_0x3949d5)&&_0x477c60['shouldConvertImageType'](_0x4ff334['value'],_0x3949d5)?(_0x505bc1({..._0x4ff334,'setImageSizes':!0x1}),_0x3949d5=_0x1ec511['getClosestSelectedImageElement'](_0x43ad48['model']['document']['selection']),void _0x52b7e0['markBlockFormat'](_0x3949d5,{..._0x5291be,'commandReversedParams':[{'value':_0x1d9d60||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1ec511['isBlockImage'](_0x3949d5)?_0x52b7e0['markBlockFormat'](_0x3949d5,_0x5291be,[],'imageStylePostApply'):_0x52b7e0['markInlineFormat'](_0x6be93b,_0x5291be,'imageStylePostApply'));});});for(const _0x50f0c6 of _0x43ad48['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x196ff2[_0x50f0c6['name']]=_0x50f0c6['title']['toLowerCase']();_0x52b7e0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x52b7e0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x52b7e0['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x52b7e0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3021d9])=>{_0x1ec511['setImageNaturalSizeAttributes'](_0x3021d9['getContainedElement']());}),_0x52b7e0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1b4233,_0x2033a8)=>{_0x52b7e0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1b4233,{'commandName':_0x2033a8['commandName'],'commandParams':_0x2033a8['commandReversedParams']});}),_0x52b7e0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x486cf8,_0x13f45a){if(_0x4cd2f0(_0x486cf8,_0x13f45a))return[_0x486cf8,_0x13f45a];if(_0x4cd2f0(_0x13f45a,_0x486cf8))return[_0x13f45a,_0x486cf8];return null;});const _0x17d3af=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4cd2f0(_0x45bb53,_0x1622cb){const _0x5a47cb=_0x17d3af['findIndex'](({type:_0x1dd748,subType:_0x4659f6})=>_0x45bb53['type']==_0x1dd748&&_0x45bb53['subType']==_0x4659f6),_0x843ede=_0x17d3af['findIndex'](({type:_0x42b65c,subType:_0x3ab6b2})=>_0x1622cb['type']==_0x42b65c&&_0x1622cb['subType']==_0x3ab6b2);if(_0x5a47cb<0x0||_0x843ede<0x0)return!0x1;const _0x5e0f9a=_0x45bb53['getFirstRange'](),_0x455f22=_0x1622cb['getFirstRange']();if((0x0==_0x5a47cb||0x1==_0x5a47cb)&&0x2==_0x843ede&&_0x5e0f9a['isIntersecting'](_0x455f22))return!0x0;if(0x2==_0x5a47cb&&0x3==_0x843ede){const _0x1031ec=_0x52b7e0['_findSuggestions'](_0x5e0f9a,'insertion')['filter'](({suggestion:_0x42f3f1,meta:_0x406ac0})=>_0x406ac0['isOwn']&&'convertInlineImageToBlock'==_0x42f3f1['subType']);if(_0x1031ec['length']>0x1&&_0x455f22['end']['isEqual'](_0x5e0f9a['start']))return!0x0;if(0x1==_0x1031ec['length']&&(_0x5e0f9a['start']['isEqual'](_0x455f22['end'])||_0x5e0f9a['end']['isEqual'](_0x455f22['start'])))return!0x0;}if(0x3==_0x5a47cb&&0x3==_0x843ede&&_0x5e0f9a['start']['isBefore'](_0x455f22['start'])){const _0x1b230d=_0x5e0f9a['end']['nodeAfter'],_0x14a791=_0x455f22['start']['nodeBefore'];return _0x1ec511['isBlockImage'](_0x1b230d)&&_0x1b230d===_0x14a791;}return!0x1;}_0x43ad48['model']['document']['registerPostFixer'](()=>{let _0x13f631=!0x1;const _0x20da7b=Array['from'](_0x43ad48['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4e442f,data:_0x76cd66}of _0x20da7b){const {group:_0x4e0109,type:_0x46398a,subType:_0x1c82fb,id:_0x421729}=_0x52b7e0['_splitMarkerName'](_0x4e442f);if('suggestion'==_0x4e0109&&_0x52b7e0['hasSuggestion'](_0x421729)){if('formatBlock'==_0x46398a&&('imageStylePreApply'==_0x1c82fb||'imageStylePostApply'==_0x1c82fb)){const _0x317b09=_0x52b7e0['getSuggestion'](_0x421729);if(_0x76cd66['newRange']){const _0x1ecdfc=_0x317b09['getFirstRange']()['getContainedElement']();if(_0x1ec511['isBlockImage'](_0x1ecdfc))continue;_0x52b7e0['discardSuggestion'](_0x317b09),_0x13f631=!0x0;}}if('insertion'==_0x46398a&&'imageCaption'==_0x1c82fb&&!_0x76cd66['newRange']){const _0xd4a1ec=_0x52b7e0['getSuggestion'](_0x421729);_0xd4a1ec['next']&&_0xd4a1ec['next']['isInContent']&&(_0x52b7e0['discardSuggestion'](_0xd4a1ec['next']),_0x13f631=!0x0);}}}return _0x13f631;}),this['_registerLegacyDescription'](_0x196ff2);}['_registerLegacyDescription'](_0x388bb4){const _0x4fbc52=this['editor'],_0x10f930=_0x4fbc52['locale'];_0x4fbc52['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x246749=>{if('formatBlock'!=_0x246749['type']&&'formatInline'!=_0x246749['type'])return;const {data:_0x48e0d7}=_0x246749;if(!_0x48e0d7||'imageStyle'!=_0x48e0d7['commandName'])return;const _0x516c34=_0x48e0d7['commandParams'][0x0]['value'];return _0x12e10d('side'===_0x516c34?o(_0x10f930,'FORMAT_SIDE_IMAGE'):_0x388bb4[_0x516c34]||_0x516c34);function _0x12e10d(_0x1dbea7){return{'type':'format','content':o(_0x10f930,'*Format:*\x20%0',_0x1dbea7)};}});}}class lt extends _0x442276{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xf756a3){super(_0xf756a3),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x196d31=this['editor'],_0x30c577=_0x196d31['commands']['get']('importWord'),_0x43c7cf=_0x196d31['commands']['get']('trackChanges');_0x30c577&&(_0x30c577['on']('execute',(_0x1fa295,[,_0x3b32f5])=>{this['_trackChangesValueDuringImport']=_0x43c7cf['value'],_0x3b32f5['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x30c577,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x30c577,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x43c7cf['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x196d31['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2ebff5,_0x50402b){const {suggestions:_0x5ebbd5}=_0x50402b,_0x4126dd=this['editor']['commands']['get']('trackChanges'),_0x4172ed=_0x4126dd['value'];this['_trackChangesValueDuringImport']!==_0x4172ed&&(_0x4126dd['execute'](),this['_trackChangesExecuted']=!0x0),_0x5ebbd5&&_0x5ebbd5['forEach'](({id:_0x5f55dd,type:_0x284fb4,author:_0x55a1da,created_at:_0x34577b})=>{const _0x13f437={'id':_0x5f55dd,'type':_0x284fb4,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x55a1da,'createdAt':_0x34577b?new Date(_0x34577b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x13f437);});}}class mt extends _0x442276{['afterInit'](){const _0x3d2b01=this['editor'],_0x483767=_0x3d2b01['plugins']['get']('TrackChangesEditing');if(_0x3d2b01['plugins']['has']('IndentEditing')&&(_0x483767['enableCommand']('indent'),_0x483767['enableCommand']('outdent')),_0x3d2b01['plugins']['has']('IndentBlock')){for(const _0x3cbf2e of['indentBlock','outdentBlock'])_0x483767['enableDefaultAttributesIntegration'](_0x3cbf2e);}const _0x507073=_0x3d2b01['locale'];_0x483767['registerBlockAttribute']('blockIndent'),_0x483767['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x507073,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cf0ca=this['editor'],_0x34bad1=_0x3cf0ca['locale'],_0x4c1b21=_0x3cf0ca['plugins']['get']('TrackChangesEditing');_0x4c1b21['descriptionFactory']['registerDescriptionCallback'](_0x2799ef=>{if('formatBlock'!=_0x2799ef['type'])return;const {data:_0x445994}=_0x2799ef;if(!_0x445994)return;if('indentBlock'!=_0x445994['commandName']&&'outdentBlock'!=_0x445994['commandName'])return;const _0x36d5fc=_0x2799ef['getItems']()[0x0],_0x18f08c=_0x4c1b21['descriptionFactory']['getItemLabel'](_0x36d5fc);return'indentBlock'==_0x445994['commandName']?{'type':'format','content':o(_0x34bad1,'*Indent:*\x20%0',_0x18f08c)}:'outdentBlock'==_0x445994['commandName']?{'type':'format','content':o(_0x34bad1,'*Outdent:*\x20%0',_0x18f08c)}:void 0x0;});}}class dt extends _0x442276{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class pt extends _0x442276{['afterInit'](){const _0x45be3f=this['editor'];if(!_0x45be3f['plugins']['has']('LinkEditing'))return;const _0x260c5d=_0x45be3f['plugins']['get']('TrackChangesEditing'),_0x4ae1b5=_0x45be3f['commands']['get']('link');_0x260c5d['enableDefaultAttributesIntegration']('link'),_0x260c5d['enableDefaultAttributesIntegration']('unlink'),_0x260c5d['registerInlineAttribute']('linkHref');for(const _0x4d1f86 of _0x4ae1b5['manualDecorators'])_0x260c5d['registerInlineAttribute'](_0x4d1f86['id']),_0x260c5d['descriptionFactory']['registerAttributeLabel'](_0x4d1f86['id'],'link\x20('+_0x4d1f86['label']['toLowerCase']()+')');_0x260c5d['descriptionFactory']['registerDescriptionCallback'](_0x576824=>{if('attribute'!=_0x576824['type'])return;const {data:_0x344e52}=_0x576824;if(!_0x344e52||'linkHref'!=_0x344e52['key'])return;const _0x36a6d8=_0x344e52['newValue'],_0x3ab14c=_0x45be3f['locale'];return{'type':'format','content':null==_0x36a6d8?o(_0x3ab14c,'*Remove\x20link*'):o(_0x3ab14c,'*Set\x20link:*\x20%0','\x22'+_0x36a6d8+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e84cd=this['editor'],_0x5dc10d=_0x5e84cd['locale'];_0x5e84cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ff0e3=>{if('formatInline'!=_0x3ff0e3['type'])return;const {data:_0x12da58}=_0x3ff0e3;if(_0x12da58){if('link'==_0x12da58['commandName']){const _0xac167b=_0x12da58['commandParams'][0x0];return{'type':'format','content':o(_0x5dc10d,'*Set\x20link:*\x20%0','\x22'+_0xac167b+'\x22')};}return'unlink'==_0x12da58['commandName']?{'type':'format','content':o(_0x5dc10d,'*Remove\x20link*')}:void 0x0;}});}}class kt extends _0x442276{['afterInit'](){const _0x166603=this['editor'],_0x413a25=_0x166603['locale'];if(!_0x166603['plugins']['has']('LegacyListEditing'))return;const _0x4f7ecd=_0x166603['plugins']['get']('TrackChangesEditing'),_0x232390=_0x166603['plugins']['has']('LegacyTodoListEditing');function _0x303b2b(_0x575f2e){return()=>{const _0x292b00=_0x166603['model']['document']['selection'],_0x10eafc=_0x166603['commands']['get'](_0x575f2e);if(_0x10eafc['value'])return void _0x166603['execute']('paragraph',{});const _0x2c454a=_0x575f2e['slice'](0x0,-0x4),_0x59da6d=function(_0xf1eba6,_0x16e9fd,_0x3fd9b8){let _0x3332a0=Array['from'](_0xf1eba6)['filter'](_0x2ac670=>function(_0x29d85a,_0x2b9f84){return _0x2b9f84['checkChild'](_0x29d85a['parent'],'listItem')&&!_0x2b9f84['isObject'](_0x29d85a);}(_0x2ac670,_0x3fd9b8));_0x3332a0=_0x3332a0['filter'](_0x4cba0c=>!_0x4cba0c['is']('element','listItem')||_0x4cba0c['getAttribute']('listType')!=_0x16e9fd);const _0x2baac8=new Set();for(const _0x197e35 of _0x3332a0)_0x197e35['is']('element','listItem')?_0x2baac8['add'](Ne(_0x197e35)):_0x2baac8['add'](_0x197e35);return Array['from'](_0x2baac8);}(_0x292b00['getSelectedBlocks'](),_0x2c454a,_0x166603['model']['schema']);_0x166603['model']['change'](()=>{for(const _0x3946ce of _0x59da6d)_0x4f7ecd['markBlockFormat'](_0x3946ce,{'commandName':_0x575f2e,'commandParams':[{'forceValue':!_0x10eafc['value']}],'formatGroupId':'blockName'},Se(_0x3946ce));});};}function _0x4cb597(_0x5daa57){return()=>{const _0x29ddab=function(_0x37faa6){let _0x940975=Array['from'](_0x37faa6);const _0x3d0ee3=_0x940975['findIndex'](_0x306968=>'listItem'!=_0x306968['name']);return _0x3d0ee3>-0x1&&(_0x940975=_0x940975['slice'](0x0,_0x3d0ee3)),_0x940975;}(_0x166603['model']['document']['selection']['getSelectedBlocks']()),_0x26ecac=_0x166603['model']['createRange'](_0x166603['model']['createPositionAt'](_0x29ddab[0x0],'before'),_0x166603['model']['createPositionAt'](_0x29ddab[_0x29ddab['length']-0x1],'end'));_0x166603['model']['change'](()=>{_0x4f7ecd['markBlockFormat'](_0x26ecac,{'commandName':_0x5daa57,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1edf31){const _0x45a1d9=new Set();for(const _0x5b6b89 of _0x1edf31){let _0x4ad5d6=_0x5b6b89['nextSibling'];for(;_0x4ad5d6&&_0x4ad5d6['getAttribute']('listIndent')>_0x5b6b89['getAttribute']('listIndent');)_0x45a1d9['add'](_0x4ad5d6),_0x4ad5d6=_0x4ad5d6['nextSibling'];}return Array['from'](_0x45a1d9);}(_0x29ddab));});};}_0x4f7ecd['enableCommand']('numberedList',_0x303b2b('numberedList')),_0x4f7ecd['enableCommand']('bulletedList',_0x303b2b('bulletedList')),_0x232390&&_0x4f7ecd['enableCommand']('todoList',_0x303b2b('todoList')),_0x4f7ecd['enableCommand']('indentList',_0x4cb597('indentList')),_0x4f7ecd['enableCommand']('outdentList',_0x4cb597('outdentList')),_0x232390&&_0x4f7ecd['enableCommand']('checkTodoList',()=>{const _0x749a73=_0x166603['commands']['get']('checkTodoList'),_0x4e285d=Array['from'](_0x749a73['_selectedElements']);_0x4e285d['filter'](_0x1ea21e=>_0x1ea21e['getAttribute']('todoListChecked')!=_0x749a73['value']),_0x166603['model']['change'](()=>{for(const _0x2eb534 of _0x4e285d)_0x4f7ecd['markBlockFormat'](_0x2eb534,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x749a73['value']}]});});}),_0x4f7ecd['descriptionFactory']['registerElementLabel']('listItem',_0x354d4c=>o(_0x413a25,'ELEMENT_LIST_ITEM',_0x354d4c)),_0x4f7ecd['descriptionFactory']['registerDescriptionCallback'](_0x5791e0=>{if('formatBlock'!=_0x5791e0['type']&&'formatInline'!=_0x5791e0['type'])return;const {data:_0x7cfd81}=_0x5791e0;if(_0x7cfd81){if('numberedList'==_0x7cfd81['commandName']||'bulletedList'==_0x7cfd81['commandName']||'todoList'==_0x7cfd81['commandName'])switch(_0x7cfd81['commandName']['replace']('List','')){case'bulleted':return _0x340245(o(_0x413a25,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x340245(o(_0x413a25,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x340245(o(_0x413a25,'ELEMENT_TODO_LIST'));}if('indentList'==_0x7cfd81['commandName'])return{'type':'format','content':o(_0x413a25,'*Indent:*\x20%0',o(_0x413a25,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x7cfd81['commandName'])return{'type':'format','content':o(_0x413a25,'*Outdent:*\x20%0',o(_0x413a25,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x7cfd81['commandName'])return _0x7cfd81['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x413a25,'*Check\x20item*')}:{'type':'format','content':o(_0x413a25,'*Uncheck\x20item*')};}function _0x340245(_0x11263e){return{'type':'format','content':o(_0x413a25,'*Change\x20to:*\x20%0',_0x11263e)};}});}}function Ne(_0xde62b9){const _0x226321=_0xde62b9['getAttribute']('listIndent');if(0x0==_0x226321)return _0xde62b9;let _0x1613d1=_0xde62b9;for(;_0xde62b9['previousSibling']&&_0xde62b9['previousSibling']['is']('element','listItem');){const _0xc831c8=_0xde62b9['previousSibling']['getAttribute']('listIndent');if(_0xc831c8==_0x226321)_0x1613d1=_0xde62b9['previousSibling'];else{if(_0xc831c8<_0x226321)break;}_0xde62b9=_0xde62b9['previousSibling'];}return _0x1613d1;}function Se(_0x4e06d1){const _0x359743=[];if(_0x4e06d1['is']('element','listItem')&&_0x4e06d1['getAttribute']('listIndent')>0x0){let _0x35f1db=_0x4e06d1['nextSibling'];for(;_0x35f1db&&'listItem'==_0x35f1db['name']&&_0x35f1db['getAttribute']('listIndent')==_0x4e06d1['getAttribute']('listIndent');)_0x359743['push'](_0x35f1db),_0x35f1db=_0x35f1db['nextSibling'];}return _0x359743;}class wt extends _0x442276{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1fa50a=this['editor']['config']['get']('list.properties'),_0x5f1aeb=this['editor']['plugins']['get']('TrackChangesEditing');_0x1fa50a['styles']&&_0x5f1aeb['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1fa50a['reversed']&&_0x5f1aeb['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1fa50a['startIndex']&&_0x5f1aeb['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5f1aeb['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5f499e,_0x5db236={}){const _0x418d18=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d268f=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x418d18['markMultiRangeBlockFormat'](_0x4d268f,{'commandName':'listStyle','commandParams':[{'type':_0x5db236['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4ead43,_0x262f80={}){const _0x211d6a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x196d04=this['_getSuggestionBlocks'](_0x42efde=>_0x42efde['is']('element','listItem')&&'numbered'===_0x42efde['getAttribute']('listType'));if(_0x196d04['length']<0x1)return;const _0x413dd4=_0x196d04['map'](_0x55a21f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x55a21f,'before'),this['editor']['model']['createPositionAt'](_0x55a21f,0x0)));this['editor']['model']['change'](()=>{_0x211d6a['markMultiRangeBlockFormat'](_0x413dd4,{'commandName':'listReversed','commandParams':[{'reversed':_0x262f80['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xe17ce2,_0x5407e4={}){const _0x1668ef=this['editor']['plugins']['get']('TrackChangesEditing'),_0x45261a=this['_getSuggestionBlocks'](_0x56583b=>_0x56583b['is']('element','listItem')&&'numbered'===_0x56583b['getAttribute']('listType'));if(_0x45261a['length']<0x1)return;const _0x162763=_0x45261a['map'](_0xc0a75c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xc0a75c,'before'),this['editor']['model']['createPositionAt'](_0xc0a75c,0x0)));this['editor']['model']['change'](()=>{_0x1668ef['markMultiRangeBlockFormat'](_0x162763,{'commandName':'listStart','commandParams':[{'startIndex':_0x5407e4['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x11eb4e){if('formatBlock'!=_0x11eb4e['type']&&'formatInline'!=_0x11eb4e['type'])return;const _0x21e858=this['editor']['locale'],{data:_0xb7d633}=_0x11eb4e;if(!_0xb7d633)return;let _0x5abb89,_0x327ffb;switch(_0xb7d633['commandName']){case'listStyle':_0x5abb89='*Change\x20to:*\x20%0',_0x327ffb={'type':'format','content':o(_0x21e858,_0x5abb89,o(_0x21e858,this['_getTranslationKeyForListStyle'](_0xb7d633['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5abb89=_0xb7d633['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x327ffb={'type':'format','content':o(_0x21e858,_0x5abb89)};break;case'listStart':_0x5abb89='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x327ffb={'type':'format','content':o(_0x21e858,_0x5abb89,_0xb7d633['commandParams'][0x0]['startIndex'])};}return _0x327ffb;}['_getSuggestionBlocksForListStyle'](){const _0x5b3a09=this['editor']['plugins']['get']('LegacyListUtils');let _0x2290a4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2290a4[0x0]?.['is']('element','listItem')&&_0x2290a4['unshift'](..._0x5b3a09['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2290a4[_0x2290a4['length']-0x1]?.['is']('element','listItem')&&_0x2290a4['push'](..._0x5b3a09['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2290a4=[...new Set(_0x2290a4)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2290a4=_0x2290a4['filter'](_0x3e51aa=>_0x3e51aa['is']('element','listItem'))),_0x2290a4;}['_getSuggestionBlocks'](_0x4fcc24){const _0x1a2416=this['editor']['plugins']['get']('LegacyListUtils');let _0xc0c1e5=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4fcc24)['map'](_0x283441=>{const _0x2c9a66=this['editor']['model']['createPositionAt'](_0x283441,0x0);return[..._0x1a2416['getSiblingNodes'](_0x2c9a66,'backward'),..._0x1a2416['getSiblingNodes'](_0x2c9a66,'forward')];})['flat']();return _0xc0c1e5=[...new Set(_0xc0c1e5)],_0xc0c1e5;}['_getTranslationKeyForListStyle'](_0x589159){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x589159)||'default')['toUpperCase']()+'_LIST_'+_0x589159['toUpperCase']()['replace'](/-/g,'_');}}class bt extends _0x442276{['afterInit'](){const _0xca9a9b=this['editor'];if(!_0xca9a9b['plugins']['has']('MediaEmbedEditing'))return;const _0x2c8473=_0xca9a9b['plugins']['get']('TrackChangesEditing'),_0x13b0ab=_0xca9a9b['locale'];_0x2c8473['enableCommand']('mediaEmbed'),_0x2c8473['descriptionFactory']['registerElementLabel']('media',_0x39dd75=>o(_0x13b0ab,'ELEMENT_MEDIA',_0x39dd75)),_0xca9a9b['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x244dbc,{writer:_0x185e01,options:_0x1c43f0})=>{if(_0x1c43f0['showSuggestionHighlights'])return _0x185e01['createEmptyElement']('div');},'converterPriority':'high'}),_0xca9a9b['data']['downcastDispatcher']['on']('attribute:url:media',(_0x322668,_0x29c727,_0x128a21)=>{_0x128a21['options']['showSuggestionHighlights']&&_0x322668['stop']();},{'priority':'high'});}}class yt extends _0x442276{['afterInit'](){const _0x6b1762=this['editor'];_0x6b1762['plugins']['has']('MentionEditing')&&_0x6b1762['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class St extends _0x442276{['afterInit'](){const _0x3f4204=this['editor'];if(!_0x3f4204['plugins']['has']('MergeFieldsEditing'))return;const _0x25332e=_0x3f4204['plugins']['get']('TrackChangesEditing'),_0x44f6c7=_0x3f4204['locale'];_0x25332e['enableCommand']('insertMergeField'),_0x25332e['enableCommand']('insertMergeFieldBlock'),_0x25332e['enableCommand']('insertMergeFieldImage'),_0x25332e['descriptionFactory']['registerElementLabel']('mergeField',_0x3f70d5=>o(_0x44f6c7,'ELEMENT_MERGE_FIELD',_0x3f70d5)),_0x25332e['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x16a4b2=>o(_0x44f6c7,'ELEMENT_MERGE_FIELD',_0x16a4b2)),_0x25332e['descriptionFactory']['registerDescriptionCallback'](_0x453302=>{if('insertion'!=_0x453302['type']&&'deletion'!=_0x453302['type'])return;const _0x3f0e2f=_0x453302['getContainedElement']();if(null==_0x3f0e2f)return;const _0x55f5c0=_0x3f4204['plugins']['get']('MergeFieldsEditing');let _0x3e59f6;switch(_0x55f5c0['getMergeFieldType'](_0x3f0e2f)){case null:return;case'image':{const _0x1796cf=_0x55f5c0['unwrapAffixes'](_0x3f0e2f['getAttribute']('src'));_0x3e59f6=_0x55f5c0['getLabel'](_0x1796cf)||_0x1796cf;break;}default:{const _0x14b486=_0x3f0e2f['getAttribute']('id');_0x3e59f6=_0x55f5c0['getLabel'](_0x14b486)||_0x14b486;break;}}return'insertion'==_0x453302['type']?{'type':'insertion','content':o(_0x44f6c7,'*Insert:*\x20%0','\x22'+_0x3e59f6+'\x22\x20'+o(_0x44f6c7,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x44f6c7,'*Remove:*\x20%0','\x22'+_0x3e59f6+'\x22\x20'+o(_0x44f6c7,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0x442276{['afterInit'](){const _0x3dcdbd=this['editor'],_0x496b48=_0x3dcdbd['plugins']['get']('TrackChangesEditing');_0x3dcdbd['plugins']['has']('MultiLevelList')&&(_0x496b48['enableDefaultAttributesIntegration']('multiLevelList'),_0x496b48['registerBlockAttribute']('listMarkerStyle'),_0x496b48['descriptionFactory']['registerDescriptionCallback'](_0x1a0253=>this['handleDescriptions'](_0x1a0253)));}['handleDescriptions'](_0x44fc9f){const _0x3a5aec=this['editor']['locale'],{data:_0x354f72}=_0x44fc9f,_0x143e09={'type':'format','content':''};if(_0x354f72&&'listMarkerStyle'==_0x354f72['key']){if(!_0x354f72['oldValue'])return{'type':'format','content':o(_0x3a5aec,'*Set\x20format:*\x20%0',o(_0x3a5aec,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x354f72['newValue']+')'};if(!_0x354f72['newValue']){let _0x441dd4=_0x44fc9f['head'];for(;_0x441dd4;){if(_0x441dd4['data']&&'listType'==_0x441dd4['data']['key']&&_0x441dd4['data']['newValue'])return _0x143e09;_0x441dd4=_0x441dd4['next'];}return{'type':'format','content':o(_0x3a5aec,'*Remove\x20format:*\x20%0',o(_0x3a5aec,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x354f72['oldValue']+')'};}}}}class It extends _0x442276{['afterInit'](){const _0x2cad24=this['editor'];if(!_0x2cad24['plugins']['has']('PageBreakEditing'))return;_0x2cad24['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4e05bf=_0x2cad24['plugins']['get']('TrackChangesEditing'),_0x141766=_0x2cad24['locale'];_0x4e05bf['descriptionFactory']['registerElementLabel']('pageBreak',_0x70366f=>o(_0x141766,'ELEMENT_PAGE_BREAK',_0x70366f));}}class At extends _0x442276{['afterInit'](){const _0x14a282=this['editor'];if(!_0x14a282['plugins']['has']('Paragraph'))return;const _0x19775a=_0x14a282['locale'],_0x556008=_0x14a282['plugins']['get']('TrackChangesEditing');_0x556008['descriptionFactory']['registerElementLabel']('paragraph',_0x1d6a68=>o(_0x19775a,'ELEMENT_PARAGRAPH',_0x1d6a68)),_0x556008['enableDefaultAttributesIntegration']('paragraph'),_0x556008['enableCommand']('insertParagraph'),_0x14a282['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x14a282),{'priority':'highest'}),_0x14a282['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x278a39,_0x409136,_0xe44f72)=>{_0xe44f72['options']['showSuggestionHighlights']&&nr(_0x14a282,{'showActiveMarker':!0x1})(_0x278a39,_0x409136,_0xe44f72);},{'priority':'highest'});const _0x29ca70=_0x556008['descriptionFactory'];_0x29ca70['registerDescriptionCallback'](_0x5eb5ad=>{if('insertion'!==_0x5eb5ad['type'])return;const {start:_0x169a92,end:_0x532008}=_0x5eb5ad['getFirstRange']();if(!_0x169a92['isTouching'](_0x532008)||!_0x169a92['nodeAfter'])return;const _0x219f56=_0x14a282['model']['schema'],_0x355a0a=_0x169a92['nodeAfter'];return _0x219f56['isBlock'](_0x355a0a)&&!_0x219f56['isLimit'](_0x355a0a)&&_0x219f56['checkChild'](_0x355a0a,'$text')?{'type':'insertion','content':o(_0x19775a,'*Insert:*\x20%0',_0x29ca70['getItemLabel'](_0x355a0a,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34e51e=this['editor'],_0x22308e=_0x34e51e['locale'];_0x34e51e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5be19e=>{if('formatBlock'!=_0x5be19e['type'])return;const {data:_0x3540fa}=_0x5be19e;return _0x3540fa&&'paragraph'==_0x3540fa['commandName']?{'type':'format','content':o(_0x22308e,'*Change\x20to:*\x20%0',o(_0x22308e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x42aaaf,{showActiveMarker:_0x366374=!0x0}={}){return(_0x31f207,_0x1faabc,_0xd2703b)=>{const _0x343918=_0x42aaaf['plugins']['get']('TrackChangesEditing'),_0xbf06cc=_0x1faabc['markerRange']['start'],_0x21f0eb=_0x1faabc['markerRange']['end'],_0x2d57c8=_0x42aaaf['model']['schema'];if(!_0xbf06cc['isTouching'](_0x21f0eb)||!_0xbf06cc['nodeAfter'])return;const _0x44b2ab=_0xbf06cc['nodeAfter'];if(_0x2d57c8['isBlock'](_0x44b2ab)&&!_0x2d57c8['isLimit'](_0x44b2ab)&&_0x2d57c8['checkChild'](_0x44b2ab,'$text')){if(!_0xd2703b['consumable']['consume'](_0x1faabc['markerRange'],_0x31f207['name']))return;const {id:_0x153692,authorId:_0x25180d}=_0x343918['_splitMarkerName'](_0x1faabc['markerName']),_0x185f44=_0xd2703b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x153692,'data-author-id':_0x25180d}),_0x2b5159=_0xd2703b['mapper']['toViewPosition'](_0x21f0eb);_0x366374&&_0x343918['activeMarkers']['includes'](_0x1faabc['markerName'])&&_0xd2703b['writer']['addClass']('ck-suggestion-marker--active',_0x185f44),_0xd2703b['writer']['insert'](_0x2b5159,_0x185f44),_0xd2703b['mapper']['bindElementToMarker'](_0x185f44,_0x1faabc['markerName']);}};}class _t extends _0x442276{['afterInit'](){const _0x4693ec=this['editor'];_0x4693ec['commands']['get']('replaceSource')&&_0x4693ec['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class $t extends _0x442276{['afterInit'](){const _0x1f87bd=this['editor'];if(!_0x1f87bd['plugins']['has']('RemoveFormatEditing'))return;_0x1f87bd['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9a09c7=this['editor'];_0x9a09c7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a110e=>{if('formatBlock'!=_0x4a110e['type']&&'formatInline'!=_0x4a110e['type'])return;const {data:_0x2d314d}=_0x4a110e;return _0x2d314d&&'removeFormat'==_0x2d314d['commandName']?{'type':'format','content':o(_0x9a09c7['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class vt extends _0x442276{['afterInit'](){const _0x1920bf=this['editor'];if(!_0x1920bf['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x37ccf1=_0x1920bf['plugins']['get']('TrackChangesEditing');_0x37ccf1['enableCommand']('goToPreviousRestrictedEditingException'),_0x37ccf1['enableCommand']('goToNextRestrictedEditingException');const _0x2fcf4c=_0x1920bf['plugins']['get']('RestrictedEditingModeEditing');_0x2fcf4c['enableCommand']('trackChanges'),_0x2fcf4c['enableCommand']('acceptSuggestion'),_0x2fcf4c['enableCommand']('discardSuggestion'),_0x2fcf4c['enableCommand']('acceptAllSuggestions'),_0x2fcf4c['enableCommand']('discardAllSuggestions'),_0x2fcf4c['enableCommand']('acceptSelectedSuggestions'),_0x2fcf4c['enableCommand']('discardSelectedSuggestions');}}class Ct extends _0x442276{['afterInit'](){const _0x5cab6e=this['editor'];if(!_0x5cab6e['plugins']['has']('ShiftEnter'))return;const _0x285943=_0x5cab6e['plugins']['get']('TrackChangesEditing');_0x285943['enableCommand']('shiftEnter'),_0x5cab6e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',qe(_0x5cab6e),{'priority':'high'}),_0x5cab6e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',qe(_0x5cab6e),{'priority':'high'}),_0x5cab6e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3b74d0,_0x5118e6,_0x5c8e9e)=>{_0x5c8e9e['options']['showSuggestionHighlights']&&qe(_0x5cab6e,{'showActiveMarker':!0x1})(_0x3b74d0,_0x5118e6,_0x5c8e9e);}),_0x285943['descriptionFactory']['registerElementLabel']('softBreak',_0x1fe28d=>o(_0x5cab6e['locale'],'ELEMENT_LINE_BREAK',_0x1fe28d));}}function qe(_0x41c444,{showActiveMarker:_0x449038=!0x0}={}){return(_0x564a7b,_0x58b87e,_0x39e7c5)=>{const _0x4a5810=_0x41c444['plugins']['get']('TrackChangesEditing');if(!_0x39e7c5['consumable']['test'](_0x58b87e['markerRange'],_0x564a7b['name']))return;const _0x22e338=_0x41c444['model'];for(const _0xe78389 of _0x58b87e['markerRange']['getItems']()){if(!_0xe78389['is']('element','softBreak'))continue;const _0x340566='deletion'==_0x58b87e['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x3c3dd5,authorId:_0x25e51a}=_0x4a5810['_splitMarkerName'](_0x58b87e['markerName']),_0x5e8f29=_0x39e7c5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x340566,'data-suggestion':_0x3c3dd5,'data-author-id':_0x25e51a}),_0x2756bd=_0x39e7c5['mapper']['toViewPosition'](_0x22e338['createPositionBefore'](_0xe78389));_0x449038&&_0x4a5810['activeMarkers']['includes'](_0x58b87e['markerName'])&&_0x39e7c5['writer']['addClass']('ck-suggestion-marker--active',_0x5e8f29),_0x39e7c5['writer']['insert'](_0x2756bd,_0x5e8f29),_0x39e7c5['mapper']['bindElementToMarker'](_0x5e8f29,_0x58b87e['markerName']);}};}class Nt extends _0x442276{['afterInit'](){const _0x4ad1a0=this['editor'],_0x2fa801=_0x4ad1a0['model'],_0x3fed5e=_0x4ad1a0['locale'];if(!_0x4ad1a0['plugins']['has']('StandardEditingModeEditing'))return;const _0x54c33a=_0x4ad1a0['plugins']['get']('TrackChangesEditing'),_0x3ab5f4='restrictedEditingException',_0x14336e=_0x4ad1a0['commands']['get'](_0x3ab5f4);_0x54c33a['enableCommand'](_0x3ab5f4,(_0xc4fc61,_0x415579={})=>{const _0x21251e=_0x2fa801['document']['selection'];if(_0x21251e['isCollapsed'])return void _0xc4fc61(_0x415579);const _0x6874aa=void 0x0!==_0x415579['forceValue']?_0x415579['forceValue']:!_0x14336e['value'];_0x2fa801['change'](()=>{const _0x6cfe7=Array['from'](_0x21251e['getRanges']());for(const _0xe092e2 of _0x6cfe7){const _0x47769c=_0x6874aa?[_0xe092e2]:io(_0x3ab5f4,_0xe092e2,_0x2fa801);for(const _0x56bcbc of _0x47769c)_0x54c33a['markInlineFormat'](_0x56bcbc,{'commandName':_0x3ab5f4,'commandParams':[{'forceValue':_0x6874aa}]});}});}),_0x54c33a['descriptionFactory']['registerDescriptionCallback'](_0x16945e=>{if('formatBlock'!=_0x16945e['type']&&'formatInline'!=_0x16945e['type'])return;const {data:_0x4920a4}=_0x16945e;return _0x4920a4&&_0x4920a4['commandName']==_0x3ab5f4?_0x4920a4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3fed5e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3fed5e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class Dt extends _0x442276{['afterInit'](){const _0xf11c64=this['editor'];if(!_0xf11c64['plugins']['has']('Style')||!_0xf11c64['plugins']['has']('DataSchema'))return;const _0x4a5618=_0xf11c64['plugins']['get']('TrackChangesEditing'),_0x55b700=_0xf11c64['locale'],_0x2d4c56=_0xf11c64['config']['get']('style')||{},_0x3e739b=_0xf11c64['plugins']['get']('GeneralHtmlSupport'),_0x2dccb0=_0xf11c64['plugins']['get']('StyleUtils')['normalizeConfig'](_0xf11c64['plugins']['get']('DataSchema'),_0x2d4c56['definitions']);_0x4a5618['enableDefaultAttributesIntegration']('style');const _0x5709f9=new Set();for(const _0x4645af of _0x2dccb0['block']){const _0x269f9d=_0x3e739b['getGhsAttributeNameForElement'](_0x4645af['element']);_0x5709f9['add'](_0x269f9d);}const _0x530e90=new Set();for(const _0x42b206 of _0x2dccb0['inline']){const _0x799736=_0x3e739b['getGhsAttributeNameForElement'](_0x42b206['element']);_0x530e90['add'](_0x799736);for(const _0x35ea84 of _0x42b206['ghsAttributes'])_0x530e90['add'](_0x35ea84);}for(const _0x4f9b96 of _0x5709f9)_0x4a5618['registerBlockAttribute'](_0x4f9b96),_0x4a5618['descriptionFactory']['registerAttributeLabel'](_0x4f9b96,o(_0x55b700,'FORMAT_STYLE'));for(const _0x5f19e7 of _0x530e90)_0x4a5618['registerInlineAttribute'](_0x5f19e7),_0x4a5618['descriptionFactory']['registerAttributeLabel'](_0x5f19e7,o(_0x55b700,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x107dcd=this['editor'],_0x2a798a=_0x107dcd['locale'];_0x107dcd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e02c4=>{if('formatBlock'!=_0x5e02c4['type']&&'formatInline'!=_0x5e02c4['type'])return;const {data:_0xe008ed}=_0x5e02c4;return _0xe008ed&&'style'===_0xe008ed['commandName']?_0xe008ed['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2a798a,'*Set\x20format:*\x20%0',_0xe008ed['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2a798a,'*Remove\x20format:*\x20%0',_0xe008ed['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Mt extends _0x442276{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x8fb6a7){super(_0x8fb6a7),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3a984f=this['editor'],_0x16024b=_0x3a984f['model']['document']['selection'];if(!_0x3a984f['plugins']['has']('TableEditing'))return;const _0x41431d=_0x3a984f['locale'],_0xd92d=_0x3a984f['plugins']['get']('TrackChangesEditing'),_0x25d177=_0x3a984f['plugins']['get']('TableUtils');_0xd92d['descriptionFactory']['registerElementLabel']('table',_0x2cecdb=>o(_0x41431d,'ELEMENT_TABLE',_0x2cecdb)),this['_setupColumnsRowsFixing'](),_0xd92d['enableCommand']('insertTable'),_0xd92d['enableCommand']('selectTableRow'),_0xd92d['enableCommand']('selectTableColumn');for(const _0x1e7ad6 of['insertTableRowAbove','insertTableRowBelow']){const _0x4eb21c=_0x3a984f['commands']['get'](_0x1e7ad6);_0xd92d['enableCommand'](_0x1e7ad6,_0xd08069=>{_0x3a984f['model']['change'](_0x556faa=>{_0xd08069();const _0x3fd49b='above'===_0x4eb21c['order'],_0x5e8b8c=_0x25d177['getSelectionAffectedTableCells'](_0x16024b),_0x21b984=_0x25d177['getRowIndexes'](_0x5e8b8c),_0x27ddcc=_0x3fd49b?_0x21b984['first']-0x1:_0x21b984['last']+0x1,_0x27e3dc=_0x5e8b8c[0x0]['findAncestor']('table'),_0x2a19e6=_0x25d177['createTableWalker'](_0x27e3dc,{'startRow':_0x27ddcc,'endRow':_0x27ddcc}),_0x493005=Array['from'](_0x2a19e6)['map'](_0x3725ca=>_0x556faa['createRangeOn'](_0x3725ca['cell']));_0xd92d['markMultiRangeInsertion'](_0x493005,'tableRow');});});}for(const _0x3a56a7 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1ee63c=_0x3a984f['commands']['get'](_0x3a56a7);_0xd92d['enableCommand'](_0x3a56a7,_0x19048f=>{_0x3a984f['model']['change'](_0x39697a=>{_0x19048f();const _0x4d1d8d='left'===_0x1ee63c['order'],_0x27cdb5=_0x25d177['getSelectionAffectedTableCells'](_0x16024b),_0x38acd4=_0x25d177['getColumnIndexes'](_0x27cdb5),_0xf7d81a=_0x4d1d8d?_0x38acd4['first']-0x1:_0x38acd4['last']+0x1,_0x2c074b=_0x27cdb5[0x0]['findAncestor']('table'),_0x38ca34=_0x25d177['createTableWalker'](_0x2c074b,{'startRow':0x0,'column':_0xf7d81a,'includeAllSlots':!0x1}),_0x7a5f=Array['from'](_0x38ca34)['map'](_0x5e540a=>_0x39697a['createRangeOn'](_0x5e540a['cell']));_0xd92d['markMultiRangeInsertion'](_0x7a5f,'tableColumn');});});}for(const _0x32a1f9 of['removeTableRow','removeTableColumn']){const _0x6ec4a2=_0x32a1f9['substr'](0xb),_0x579ca0=_0x6ec4a2['toLowerCase'](),_0x16b80a=_0x579ca0['substr'](0x0,0x3)+'span',_0x4ac164='table'+_0x6ec4a2,_0x408521='min'+_0x6ec4a2,_0x158a83='max'+_0x6ec4a2;_0xd92d['enableCommand'](_0x32a1f9,()=>{_0x3a984f['model']['change'](_0x39a371=>{const _0x4591a0=_0x25d177['getSelectionAffectedTableCells'](_0x16024b),_0x33bf89=_0x4591a0[0x0]['findAncestor']('table');let _0x29f505;if('removeTableRow'==_0x32a1f9){const _0x4d34a0=_0x25d177['getRowIndexes'](_0x4591a0);_0x29f505={'startRow':_0x4d34a0['first'],'endRow':_0x4d34a0['last'],'includeAllSlots':!0x0};}else{const _0x3153c8=_0x25d177['getColumnIndexes'](_0x4591a0);_0x29f505={'startColumn':_0x3153c8['first'],'endColumn':_0x3153c8['last'],'includeAllSlots':!0x0};}const _0x14a4c8=_0x25d177['createTableWalker'](_0x33bf89,_0x29f505),_0x32b496=Array['from'](_0x14a4c8)['map'](({cell:_0x3dfcab})=>_0x3dfcab),_0x3ebe01=Oe(_0x32b496['filter'](_0x449a74=>_0x449a74['hasAttribute'](_0x16b80a))),_0x55bcb0=Oe(_0x32b496['filter'](_0x49e956=>!_0x49e956['hasAttribute'](_0x16b80a)))['map'](_0xdbcfae=>_0x39a371['createRangeOn'](_0xdbcfae)),_0x276c42=_0xd92d['markMultiRangeDeletion'](_0x55bcb0,_0x4ac164);if(_0x276c42&&('tableRow'==_0x276c42['subType']||'tableColumn'==_0x276c42['subType'])){const _0x56b4cb=this['_getSuggestionCoords'](_0x276c42);for(const _0x1f4e48 of _0x3ebe01){const _0x36866c=_0x39a371['createRangeOn'](_0x1f4e48),_0x5c0a71=_0x25d177['getCellLocation'](_0x1f4e48),_0x1d58f5=_0x1f4e48['getAttribute'](_0x16b80a)-0x1,_0x3fce0d=_0x56b4cb[_0x408521],_0x4c5fb2=_0x56b4cb[_0x158a83];_0x3fce0d<=_0x5c0a71[_0x579ca0]&&_0x5c0a71[_0x579ca0]+_0x1d58f5<=_0x4c5fb2&&_0x276c42['addRange'](_0x36866c);}}});});}function _0x894e56(_0x1cf7dc){const _0x2ea8a3=Array['from'](_0x16024b['getRanges']())['map'](_0x1912f2=>_0x20ab11['fromRange'](_0x1912f2));_0x3a984f['model']['change'](_0xa1b1ed=>{const _0x350d31=_0xa1b1ed['batch'];_0x1cf7dc=_0x1cf7dc['filter'](_0x2eb18d=>'$graveyard'!=_0x2eb18d['root']['rootName']),_0xa1b1ed['setSelection'](_0x1cf7dc),_0x3a984f['commands']['get']('removeTableRow')['refresh'](),_0x3a984f['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3a984f['model']['enqueueChange'](()=>{_0x3a984f['model']['enqueueChange'](_0x350d31,_0x3ab8b1=>{const _0x4a75b5=_0x2ea8a3['filter'](_0x2a1275=>'$graveyard'!=_0x2a1275['root']['rootName']);_0x4a75b5['length']>0x0&&_0x3ab8b1['setSelection'](_0x4a75b5);for(const _0x586b14 of _0x2ea8a3)_0x586b14['detach']();});});});}function _0x2f632e(_0x127221){_0x3a984f['model']['change'](_0x38faee=>{const _0x9c22f5=Array['from'](_0x16024b['getRanges']())['map'](_0x38cd63=>_0x20ab11['fromRange'](_0x38cd63)),_0x3649fc=[];for(const _0xc08d7c of _0x127221)for(const _0x20a679 of _0xc08d7c['getItems']({'shallow':!0x0}))_0x3649fc['push'](_0x20a679);for(const _0x81c164 of _0x3649fc)'$graveyard'!=_0x81c164['root']['rootName']&&(_0x38faee['setSelection'](_0x38faee['createPositionAt'](_0x81c164,0x0)),_0x3a984f['commands']['get']('removeTableColumn')['refresh'](),_0x3a984f['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5e787f=_0x9c22f5['filter'](_0xb05d4d=>'$graveyard'!=_0xb05d4d['root']['rootName']);_0x5e787f['length']>0x0&&_0x38faee['setSelection'](_0x5e787f);for(const _0x4122c3 of _0x9c22f5)_0x4122c3['detach']();});}function _0x39bca5(_0x35eb22,_0x16bdd3){return _0x16bdd3['every'](_0x3a51d9=>_0x35eb22['some'](_0x36ca24=>_0x36ca24['end']['isEqual'](_0x3a51d9['start'])||_0x3a51d9['end']['isEqual'](_0x36ca24['start'])));}function _0xf6a013(_0x4b329a,_0xa6b3d7){return!_0x4b329a['some'](_0x597d5e=>_0xa6b3d7['some'](_0x251d87=>_0x597d5e['isIntersecting'](_0x251d87)))&&_0x4b329a['some'](_0x46c96b=>_0xa6b3d7['some'](_0x311f98=>_0x46c96b['end']['isTouching'](_0x311f98['start'])));}_0x3a984f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x467008,_0x242de8,_0x35516a)=>{if(!_0x35516a['options']['showSuggestionHighlights'])return;const _0x5d27eb=_0x242de8['item'];if(!_0x5d27eb||!_0x5d27eb['is']('element','tableCell'))return;const _0x20361f=_0x35516a['mapper']['toViewElement'](_0x5d27eb);if(_0x20361f){const {id:_0x55469c,authorId:_0x6e9413}=_0xd92d['_splitMarkerName'](_0x242de8['markerName']);_0x34524f(_0x20361f,_0x35516a['writer'],(_0x57c78f,_0x50c4e5,_0x34967d)=>{_0x34967d['addClass'](_0x47aca7(_0x50c4e5['classes']),_0x57c78f),_0x34967d['setAttribute']('data-suggestion-id',_0x55469c,_0x57c78f),_0x34967d['setAttribute']('data-author-id',_0x6e9413,_0x57c78f);},(_0x50a19c,_0x4dd650,_0x3289d0)=>{_0x3289d0['removeClass'](_0x47aca7(_0x4dd650['classes']),_0x50a19c),_0x3289d0['removeAttribute']('data-suggestion-id',_0x50a19c),_0x3289d0['removeAttribute']('data-author-id',_0x50a19c);});}},{'priority':'highest'}),_0xd92d['descriptionFactory']['registerDescriptionCallback'](_0x2b92b5=>{if('insertion'!=_0x2b92b5['type']&&'deletion'!=_0x2b92b5['type'])return;const _0x10aadf=_0x2b92b5['getContainedElement']();if(null!=_0x10aadf&&_0x10aadf['is']('element','table')){if('insertion'==_0x2b92b5['type']){const _0x3fdc37=_0x2b92b5['getItems']()['filter'](_0x5ac739=>_0x5ac739['is']('$textProxy'))['map'](_0x4c95e4=>_0x4c95e4['data']);if(_0x3fdc37['length'])return{'type':'insertion','content':o(_0x41431d,'*Insert:*\x20%0',o(_0x41431d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3fdc37['join']('\x20')+'\x22'))};}if('deletion'==_0x2b92b5['type']){const _0x263341=_0x2b92b5['getItems']()['filter'](_0x2ee115=>_0x2ee115['is']('$textProxy'))['map'](_0x43d472=>_0x43d472['data']);if(_0x263341['length'])return{'type':'deletion','content':o(_0x41431d,'*Remove:*\x20%0',o(_0x41431d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x263341['join']('\x20')+'\x22'))};}}}),_0xd92d['descriptionFactory']['registerDescriptionCallback'](_0x38d373=>{if('tableRow'==_0x38d373['subType']){const _0x50cd09=_0x38d373['getItems']()['filter'](_0x4ced19=>_0x4ced19['is']('$textProxy'))['map'](_0x19448d=>_0x19448d['data']),_0x2b9f22=this['_getSuggestionCoords'](_0x38d373),_0x2d9c6e=_0x2b9f22['maxRow']-_0x2b9f22['minRow']+0x1;if('insertion'==_0x38d373['type'])return _0x50cd09['length']?{'type':'insertion','content':o(_0x41431d,'*Insert:*\x20%0',o(_0x41431d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2d9c6e,'\x22'+_0x50cd09['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x41431d,'*Insert:*\x20%0',o(_0x41431d,'ELEMENT_TABLE_ROW',_0x2d9c6e))};if('deletion'==_0x38d373['type'])return _0x50cd09['length']?{'type':'deletion','content':o(_0x41431d,'*Remove:*\x20%0',o(_0x41431d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2d9c6e,'\x22'+_0x50cd09['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x41431d,'*Remove:*\x20%0',o(_0x41431d,'ELEMENT_TABLE_ROW',_0x2d9c6e))};}if('tableColumn'==_0x38d373['subType']){const _0x162325=_0x38d373['getItems']()['filter'](_0xa9b2c6=>_0xa9b2c6['is']('$textProxy'))['map'](_0x2d0cc6=>_0x2d0cc6['data']),_0xf541a0=this['_getSuggestionCoords'](_0x38d373),_0x4cc592=_0xf541a0['maxColumn']-_0xf541a0['minColumn']+0x1;if('insertion'==_0x38d373['type'])return _0x162325['length']?{'type':'insertion','content':o(_0x41431d,'*Insert:*\x20%0',o(_0x41431d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4cc592,'\x22'+_0x162325['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x41431d,'*Insert:*\x20%0',o(_0x41431d,'ELEMENT_TABLE_COLUMN',_0x4cc592))};if('deletion'==_0x38d373['type'])return _0x162325['length']?{'type':'deletion','content':o(_0x41431d,'*Remove:*\x20%0',o(_0x41431d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4cc592,'\x22'+_0x162325['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x41431d,'*Remove:*\x20%0',o(_0x41431d,'ELEMENT_TABLE_COLUMN',_0x4cc592))};}}),_0xd92d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x894e56),_0xd92d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x894e56),_0xd92d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2f632e),_0xd92d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2f632e),_0xd92d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x39bca5),_0xd92d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x39bca5),_0xd92d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xf6a013),_0xd92d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xf6a013);}['_acceptFormatSuggestionCallbackFactory'](){const _0x36e268=this['editor'],_0x517801=_0x36e268['model']['document']['selection'];return(_0x406613,_0x3aa4a0)=>{_0x36e268['model']['change'](_0x47a7f9=>{const {commandName:_0xa8bb1e,commandParams:_0x3523ca}=_0x3aa4a0;let _0x516e0b=_0x406613[0x0]['end']['nodeBefore'];_0x3523ca&&_0x3523ca[0x0]&&!0x1===_0x3523ca[0x0]['forceValue']&&(_0x516e0b=_0x406613[0x0]['start']['nodeAfter']);const _0x507d36=_0x47a7f9['createRangeIn'](_0x516e0b);if('$graveyard'==_0x507d36['root']['rootName'])return;const _0x4cec37=Array['from'](_0x517801['getRanges']())['map'](_0x52dbba=>_0x20ab11['fromRange'](_0x52dbba));_0x47a7f9['setSelection'](_0x507d36),_0x36e268['commands']['get'](_0xa8bb1e)['refresh'](),_0x3523ca['push']({'forceDefaultExecution':!0x0}),_0x36e268['execute'](_0xa8bb1e,..._0x3523ca);const _0x47a8fe=_0x4cec37['filter'](_0x4516e2=>'$graveyard'!=_0x4516e2['root']['rootName']);_0x47a8fe['length']>0x0&&_0x47a7f9['setSelection'](_0x47a8fe);for(const _0x50e51f of _0x4cec37)_0x50e51f['detach']();});};}['_getCoordsForCells'](_0x7d2a70){const _0x12faf2=this['editor']['plugins']['get']('TableUtils');let _0x266653=Number['MAX_SAFE_INTEGER'],_0x503a2f=Number['MIN_SAFE_INTEGER'],_0x30a72e=Number['MAX_SAFE_INTEGER'],_0x507f58=Number['MIN_SAFE_INTEGER'];for(const _0x56baab of _0x7d2a70){if('$graveyard'==_0x56baab['root']['rootName'])continue;const {row:_0x1cbe4b,column:_0x4996b0}=_0x12faf2['getCellLocation'](_0x56baab),_0x18c0d8=_0x56baab['hasAttribute']('rowspan')?_0x56baab['getAttribute']('rowspan')-0x1:0x0,_0x4d9bb1=_0x56baab['hasAttribute']('colspan')?_0x56baab['getAttribute']('colspan')-0x1:0x0;_0x266653=_0x1cbe4b<_0x266653?_0x1cbe4b:_0x266653,_0x503a2f=_0x1cbe4b+_0x18c0d8>_0x503a2f?_0x1cbe4b+_0x18c0d8:_0x503a2f,_0x30a72e=_0x4996b0<_0x30a72e?_0x4996b0:_0x30a72e,_0x507f58=_0x4996b0+_0x4d9bb1>_0x507f58?_0x4996b0+_0x4d9bb1:_0x507f58;}return{'minRow':_0x266653,'maxRow':_0x503a2f,'minColumn':_0x30a72e,'maxColumn':_0x507f58};}['_setupColumnsRowsFixing'](){const _0x1b1923=this['editor'],_0x52f5b2=_0x1b1923['plugins']['get']('TrackChangesEditing'),_0x23744b=_0x1b1923['plugins']['get']('TableUtils');_0x1b1923['model']['document']['on']('change:data',()=>{const _0x21c411=Array['from'](_0x1b1923['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x24e6f3,data:_0x2ed23e}of _0x21c411){const {group:_0x15e18e,id:_0x4a599b,subType:_0x43111e}=_0x52f5b2['_splitMarkerName'](_0x24e6f3);if('suggestion'!=_0x15e18e)continue;if(null!=_0x2ed23e['oldRange'])continue;const _0x224655=_0x52f5b2['getSuggestion'](_0x4a599b);this['_tablePostFixingSubtypes']['includes'](_0x43111e)&&this['_tableSuggestions']['add'](_0x224655);}},{'priority':'low'});const _0x410638=(_0x4eca6b,_0x205be1)=>{let _0x2a8748=!0x1;const _0x479bf2=_0x205be1['createRangeOn'](_0x4eca6b),_0x2c9337=_0x4eca6b['findAncestor']('table'),_0x584271=_0x23744b['getCellLocation'](_0x4eca6b);for(const _0x57fb9a of this['_tableSuggestions']){const _0x227a4e=_0x57fb9a['subType'],_0x897205=_0x227a4e['startsWith']('tablePaste'),_0x40fe0d=_0x227a4e['substr'](_0x897205?0xa:0x5),_0x46dbda=_0x40fe0d['toLowerCase'](),_0x199e53=_0x46dbda['substr'](0x0,0x3)+'span',_0x38436e='min'+_0x40fe0d,_0xeee66c='max'+_0x40fe0d;if(!_0x57fb9a['isInContent'])continue;if(_0x2c9337!=_0x57fb9a['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x57fb9a['isIntersectingWithRange'](_0x479bf2))continue;const _0x121693=_0x4eca6b['hasAttribute'](_0x199e53)?_0x4eca6b['getAttribute'](_0x199e53)-0x1:0x0,_0x5ef1be=this['_getSuggestionCoords'](_0x57fb9a),_0x51616c=_0x5ef1be[_0x38436e],_0x38c7f7=_0x5ef1be[_0xeee66c];_0x51616c<=_0x584271[_0x46dbda]&&_0x584271[_0x46dbda]+_0x121693<=_0x38c7f7&&(_0x57fb9a['addRange'](_0x479bf2),_0x2a8748=!0x0);}return _0x2a8748;};_0x1b1923['model']['document']['registerPostFixer'](_0x2e613b=>{let _0xf8e80b=!0x1;for(const _0xe6154a of _0x1b1923['model']['document']['differ']['getChanges']())if('insert'==_0xe6154a['type']){if('tableRow'==_0xe6154a['name']){for(const _0x5d6ae2 of _0xe6154a['position']['nodeAfter']['getChildren']())_0xf8e80b=_0xf8e80b||_0x410638(_0x5d6ae2,_0x2e613b);}else'tableCell'==_0xe6154a['name']&&(_0xf8e80b=_0xf8e80b||_0x410638(_0xe6154a['position']['nodeAfter'],_0x2e613b));}return _0xf8e80b;});}['_getSuggestionCoords'](_0x42ce7e){return this['_getCoordsForCells'](_0x42ce7e['getRanges']()['map'](_0x47ea57=>_0x47ea57['start']['nodeAfter']));}}function Oe(_0x3e9b2a){return Array['from'](new Set(_0x3e9b2a)['values']());}class Bt extends _0x442276{static get['requires'](){return[Mt];}['afterInit'](){const _0x544cfd=this['editor'],_0x2bffc9=_0x544cfd['model']['document']['selection'],_0x31ccf9=_0x544cfd['locale'];if(!_0x544cfd['plugins']['has']('TableEditing'))return;const _0x5d696a=_0x544cfd['plugins']['get']('TrackChangesEditing'),_0x23f49b=_0x544cfd['plugins']['get']('TableUtils'),_0x5192fc=_0x544cfd['plugins']['get'](Mt);_0x5192fc['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5d696a['enableCommand']('mergeTableCells',()=>{const _0x1d7547=_0x23f49b['getSelectionAffectedTableCells'](_0x544cfd['model']['document']['selection']);_0x544cfd['model']['change'](()=>{_0x5d696a['markMultiRangeBlockFormat'](_0x1d7547,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x544cfd['commands']['get']('mergeTableCells')['on']('execute',(_0x40b016,_0x2ed596)=>{_0x544cfd['commands']['get']('trackChanges')['value']&&(_0x2ed596['length']>0x0&&_0x2ed596[_0x2ed596['length']-0x1]&&_0x2ed596[_0x2ed596['length']-0x1]['forceDefaultExecution']||_0x5d696a['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x40b016['stop']());},{'priority':'highest'});for(const _0x328fd5 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2eccba=_0x544cfd['commands']['get'](_0x328fd5);_0x5d696a['enableCommand'](_0x328fd5,()=>{const _0x18f353=_0x544cfd['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5265c3=>_0x5265c3['is']('element','tableCell')),_0x3d485a=_0x2eccba['value'];_0x544cfd['model']['change'](()=>{_0x5d696a['markMultiRangeBlockFormat']([_0x18f353,_0x3d485a],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x50204d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x574b53=_0x544cfd['commands']['get'](_0x50204d);_0x5d696a['enableCommand'](_0x50204d,()=>{const _0x4010b6=_0x23f49b['getSelectionAffectedTableCells'](_0x544cfd['model']['document']['selection'])[0x0],_0x4bb36e=_0x4010b6['findAncestor']('table'),{column:_0x5d2d2c,row:_0x7f1cc7}=_0x23f49b['getCellLocation'](_0x4010b6);let _0x1f0c14=[];if('horizontally'==_0x574b53['direction']){const _0x4c04e9=_0x23f49b['createTableWalker'](_0x4bb36e,{'startRow':_0x7f1cc7,'endRow':_0x7f1cc7,'includeAllSlots':!0x0});_0x1f0c14=Array['from'](_0x4c04e9)['map'](_0x5007f4=>_0x5007f4['cell']);}else{const _0x2eef9e=_0x23f49b['createTableWalker'](_0x4bb36e,{'column':_0x5d2d2c,'includeAllSlots':!0x0});_0x1f0c14=Array['from'](_0x2eef9e)['map'](_0x3b397c=>_0x3b397c['cell']);}_0x544cfd['model']['change'](_0x4dc659=>{_0x5d696a['markBlockFormat'](_0x4dc659['createRangeOn'](_0x4010b6),{'commandName':_0x50204d,'commandParams':[]},_0x1f0c14,_0x50204d);});});}_0x5d696a['descriptionFactory']['registerDescriptionCallback'](_0x2cc569=>{if('formatBlock'!=_0x2cc569['type']&&'formatInline'!=_0x2cc569['type'])return;const {data:_0x20b9ae}=_0x2cc569;return _0x20b9ae&&'mergeTableCells'==_0x20b9ae['commandName']?{'type':'format','content':o(_0x31ccf9,'*Merge\x20cells*')}:void 0x0;}),_0x5d696a['descriptionFactory']['registerDescriptionCallback'](_0x2d514a=>{if('formatBlock'!=_0x2d514a['type']&&'formatInline'!=_0x2d514a['type'])return;const {data:_0x1bdd14}=_0x2d514a;return _0x1bdd14?'splitTableCellVertically'==_0x1bdd14['commandName']?{'type':'format','content':o(_0x31ccf9,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1bdd14['commandName']?{'type':'format','content':o(_0x31ccf9,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x34434d=_0x5192fc['_acceptFormatSuggestionCallbackFactory']();for(const _0x175339 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5d696a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x175339,'accept',_0x34434d);for(const _0x5b7608 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5d696a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5b7608,'accept',_0x34434d);_0x5d696a['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x31aa1b=>{_0x544cfd['model']['change'](_0x3e8250=>{const _0x38b858=Array['from'](_0x2bffc9['getRanges']())['map'](_0x10a589=>_0x20ab11['fromRange'](_0x10a589));_0x3e8250['setSelection'](_0x31aa1b),_0x544cfd['commands']['get']('mergeTableCells')['refresh'](),_0x544cfd['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x426d18=_0x38b858['filter'](_0x4bc2cd=>'$graveyard'!=_0x4bc2cd['root']['rootName']);_0x426d18['length']>0x0&&_0x3e8250['setSelection'](_0x426d18);for(const _0x8922a1 of _0x38b858)_0x8922a1['detach']();});});for(const _0x3d18c4 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x46bb22=_0x544cfd['commands']['get'](_0x3d18c4);_0x46bb22['on']('set:isEnabled',(_0x2a50eb,_0x2e86b4,_0x3eb517)=>{if(_0x3eb517){const _0x296a7b=_0x544cfd['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1a863e=>_0x1a863e['is']('element','tableCell'));this['_areMergableCells'](_0x46bb22['value'],_0x296a7b)||(_0x2a50eb['return']=!0x1,_0x2a50eb['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x13a89b=this['editor']['commands']['get']('mergeTableCells'),_0x35330d=this['editor']['plugins']['get']('TableUtils');if(!_0x13a89b['isEnabled'])return!0x1;const _0x49fbe2=_0x35330d['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x295eff of _0x49fbe2)for(const _0x45a7b7 of _0x49fbe2)if(_0x295eff!=_0x45a7b7&&!this['_areMergableCells'](_0x295eff,_0x45a7b7))return!0x1;return!0x0;}['_areMergableCells'](_0x251243,_0x2681de){const _0x10f3e5=this['editor']['plugins']['get']('TrackChangesEditing'),_0xfd2283=this['editor']['model']['createRangeOn'](_0x251243),_0x293143=this['editor']['model']['createRangeOn'](_0x2681de),_0xea98eb=new Set(),_0x2e93fc=new Set();for(const _0x5cd1b4 of _0x10f3e5['getSuggestions']())if(('insertion'==_0x5cd1b4['type']||'deletion'==_0x5cd1b4['type']||'mergeTableCells'==_0x5cd1b4['subType'])&&_0x5cd1b4['isInContent']){for(const _0x14a9ea of _0x5cd1b4['getRanges']())_0x14a9ea['containsRange'](_0xfd2283,!0x0)&&_0xea98eb['add'](_0x5cd1b4['type']+':'+_0x5cd1b4['author']['id']),_0x14a9ea['containsRange'](_0x293143,!0x0)&&_0x2e93fc['add'](_0x5cd1b4['type']+':'+_0x5cd1b4['author']['id']);}if(_0xea98eb['size']!=_0x2e93fc['size'])return!0x1;for(const _0x399f55 of _0xea98eb)if(!_0x2e93fc['has'](_0x399f55))return!0x1;return!0x0;}}class Tt extends _0x442276{static get['requires'](){return[Mt];}['afterInit'](){const _0x3a8eab=this['editor'];if(!_0x3a8eab['plugins']['has']('TableEditing'))return;const _0x36841e=_0x3a8eab['locale'],_0x2d7a10=_0x3a8eab['plugins']['get']('TrackChangesEditing');_0x2d7a10['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2d7a10['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2d7a10['registerBlockAttribute']('headingRows'),_0x2d7a10['registerBlockAttribute']('headingColumns'),_0x2d7a10['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x36841e,'FORMAT_HEADER_ROW')),_0x2d7a10['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x36841e,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x19e9da=this['editor']['plugins']['get']('TrackChangesEditing'),_0x809ec8=this['editor']['plugins']['get']('TableUtils'),_0x20e1c0=this['editor']['plugins']['get'](Mt)['_acceptFormatSuggestionCallbackFactory']();function _0x2b780d({showActiveMarker:_0x42e620=!0x0,setDataAttribute:_0x142e2f=!0x0}={}){return(_0x1c0228,_0x27d9e8,_0x176e27)=>{const {type:_0x233d38,id:_0x246e77}=_0x19e9da['_splitMarkerName'](_0x27d9e8['markerName']);if(!_0x19e9da['hasSuggestion'](_0x246e77))return;const _0x4b0b77=_0x19e9da['getSuggestion'](_0x246e77),_0x414fda=_0x4b0b77['data'];if('formatBlock'!=_0x4b0b77['type']||!_0x414fda||'setTableColumnHeader'!=_0x414fda['commandName'])return;if(_0x27d9e8['item'])return void _0x1c0228['stop']();if(!_0x176e27['consumable']['consume'](_0x27d9e8['markerRange'],_0x1c0228['name']))return;const _0x216c49=_0x27d9e8['markerRange']['start']['nodeAfter'],_0x42d3ba=_0x27d9e8['markerRange']['end']['nodeBefore'],_0x1371d2=_0x216c49['parent']['parent'],{column:_0x30cd67}=_0x809ec8['getCellLocation'](_0x216c49),{column:_0x5c57a9}=_0x809ec8['getCellLocation'](_0x42d3ba);for(let _0x5c602b=_0x30cd67;_0x5c602b<=_0x5c57a9;_0x5c602b++){const _0x326299=_0x809ec8['createTableWalker'](_0x1371d2,{'column':_0x5c602b,'includeAllSlots':!0x1});for(const _0x59bbb1 of _0x326299){const _0x8ae5f=_0x59bbb1['cell'],_0x30a9a5=_0x176e27['mapper']['toViewElement'](_0x8ae5f);_0x176e27['writer']['addClass']('ck-suggestion-marker-'+_0x233d38,_0x30a9a5),_0x142e2f&&_0x176e27['writer']['setAttribute']('data-suggestion',_0x246e77,_0x30a9a5),_0x176e27['mapper']['bindElementToMarker'](_0x30a9a5,_0x27d9e8['markerName']),_0x42e620&&(_0x19e9da['activeMarkers']['includes'](_0x27d9e8['markerName'])?_0x176e27['writer']['addClass']('ck-suggestion-marker--active',_0x30a9a5):_0x176e27['writer']['removeClass']('ck-suggestion-marker--active',_0x30a9a5));}}};}_0x19e9da['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x20e1c0),_0x19e9da['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x20e1c0),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2b780d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4aaf9b,_0x2a48a9,_0x47c641)=>{_0x47c641['options']['showSuggestionHighlights']&&_0x2b780d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4aaf9b,_0x2a48a9,_0x47c641);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x18a76b,_0x2ad0d1,_0x41f1b3)=>{const {type:_0x390dcf,id:_0x3c2268}=_0x19e9da['_splitMarkerName'](_0x2ad0d1['markerName']);if(!_0x19e9da['hasSuggestion'](_0x3c2268))return;const _0x1c100a=_0x19e9da['getSuggestion'](_0x3c2268),_0x572e7b=_0x1c100a['data'];if('formatBlock'!=_0x1c100a['type']||!_0x572e7b||'setTableColumnHeader'!=_0x572e7b['commandName'])return;const _0x51194e=_0x41f1b3['mapper']['markerNameToElements'](_0x2ad0d1['markerName']);if(_0x51194e){for(const _0x4887e5 of _0x51194e)_0x41f1b3['writer']['removeClass']('ck-suggestion-marker-'+_0x390dcf,_0x4887e5),_0x41f1b3['writer']['removeClass']('ck-suggestion-marker--active',_0x4887e5),_0x41f1b3['writer']['removeAttribute']('data-suggestion',_0x4887e5),_0x41f1b3['mapper']['unbindElementFromMarkerName'](_0x4887e5,_0x2ad0d1['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32118f=this['editor'],_0x169b08=_0x32118f['locale'];function _0x1676e3(_0x2b6792){return{'type':'format','content':o(_0x169b08,'*Format:*\x20%0',_0x2b6792)};}_0x32118f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xfb5fa3=>{if('formatBlock'!=_0xfb5fa3['type'])return;const {data:_0x226388}=_0xfb5fa3;if(_0x226388){if('setTableRowHeader'==_0x226388['commandName']){const _0x39bfad=_0x226388['commandParams'][0x0]['forceValue'];return _0x1676e3(o(_0x169b08,_0x39bfad?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x226388['commandName']){const _0x49391e=_0x226388['commandParams'][0x0]['forceValue'];return _0x1676e3(o(_0x169b08,_0x49391e?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ot extends _0x442276{['afterInit'](){const _0x20f8e7=this['editor'],_0x39e5fa=_0x20f8e7['locale'],_0x43c218=_0x20f8e7['plugins']['get']('TrackChangesEditing');function _0x8d136d(_0x59829b){return{'type':'format','content':''+o(_0x39e5fa,'*Set\x20table\x20type:*\x20%0',_0x59829b)};}_0x20f8e7['plugins']['has']('TableLayout')&&(_0x43c218['enableCommand']('insertTableLayout'),_0x43c218['enableDefaultAttributesIntegration']('tableType'),_0x43c218['registerBlockAttribute']('tableType'),_0x43c218['descriptionFactory']['registerElementLabel'](_0x1f8515=>_0x1f8515['is']('element','table')&&'layout'===_0x1f8515['getAttribute']('tableType'),_0x4767ac=>o(_0x39e5fa,'ELEMENT_LAYOUT_TABLE',_0x4767ac)),_0x43c218['descriptionFactory']['registerDescriptionCallback'](_0x4bbd1b=>{const {data:_0x1d54f2}=_0x4bbd1b;if(_0x1d54f2&&'tableType'==_0x1d54f2['key'])switch(_0x1d54f2['newValue']){case'layout':return _0x8d136d(o(_0x39e5fa,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x8d136d(o(_0x39e5fa,'ELEMENT_CONTENT_TABLE'));}}));}}const Ue=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],He=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Ue['map'](_0x7a58af=>[_0x7a58af,null]));class xt extends _0x442276{static get['requires'](){return[Mt];}['afterInit'](){const _0xa05815=this['editor'];if(!_0xa05815['plugins']['has']('TableClipboard'))return;const _0x1a0d99=_0xa05815['plugins']['get']('TrackChangesEditing'),_0x1bcb45=_0xa05815['plugins']['get']('TableUtils'),_0x50e6a5=_0xa05815['plugins']['get'](Mt),_0x2c3c4e=_0xa05815['plugins']['get']('TableClipboard'),_0x216be0=_0xa05815['plugins']['get']('TableSelection'),_0x3ffeb3=_0xa05815['plugins']['get'](_0x285dc8);_0x50e6a5['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xa05815['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xa05815['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x228e4c=null,_0x98c991=!0x1;_0x3ffeb3['on']('contentInsertion',(_0xf2b12,_0x1694f8)=>{_0x98c991='paste'===_0x1694f8['method'];}),_0xa05815['model']['on']('insertContent',(_0x3b560a,_0x40cb0d)=>{if(!_0x98c991&&null===_0x216be0['getSelectedTableCells']())return;const [_0x2b91d4,_0x13a19f]=_0x40cb0d,_0x4dac73=_0x40cb0d[_0x40cb0d['length']-0x1];_0x4dac73&&_0x4dac73['forceDefaultExecution']||_0x1a0d99['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x32bb7e,_0x30f7fb,_0x43d0db,_0x16cc12,_0x13a850){if(_0x30f7fb&&!_0x30f7fb['is']('documentSelection'))return!0x1;const _0x37546a=_0x13a850['getTableIfOnlyTableInContent'](_0x32bb7e,_0x43d0db);if(!_0x37546a||!Ge(_0x37546a,void 0x0,_0x16cc12))return!0x1;const _0x3a8857=_0x16cc12['getSelectionAffectedTableCells'](_0x43d0db['document']['selection']);if(!_0x3a8857['length'])return!0x1;const _0x359c50=_0x3a8857[0x0]['findAncestor']('table'),_0x404aef=_0x16cc12['getRowIndexes'](_0x3a8857),_0x5da15b=_0x16cc12['getColumnIndexes'](_0x3a8857),_0x5930e2={'startRow':_0x404aef['first'],'endRow':_0x404aef['last'],'startColumn':_0x5da15b['first'],'endColumn':_0x5da15b['last']};return 0x1==_0x3a8857['length']&&(_0x5930e2['endRow']+=_0x16cc12['getRows'](_0x37546a)-0x1,_0x5930e2['endColumn']+=_0x16cc12['getColumns'](_0x37546a)-0x1),Ge(_0x359c50,_0x5930e2,_0x16cc12);}(_0x2b91d4,_0x13a19f,_0xa05815['model'],_0x1bcb45,_0x2c3c4e)&&(_0x3b560a['stop'](),_0x228e4c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xa05815['model']['change'](()=>{_0xa05815['model']['insertContent'](_0x40cb0d[0x0],_0x40cb0d[0x1],_0x40cb0d[0x2],{'forceDefaultExecution':!0x0});const _0x28bff2=_0x44bd93(),{rowInsertionRanges:_0x4eb549,columnInsertionRanges:_0x506506,insertionRanges:_0x2b51e3,deletionRanges:_0x3992f8,cells:_0x5274e9}=_0x228e4c;_0x4eb549['length']&&_0x1a0d99['markMultiRangeInsertion'](_0x4eb549,'tablePasteRow',{'tablePasteChainId':_0x28bff2}),_0x506506['length']&&_0x1a0d99['markMultiRangeInsertion'](_0x506506,'tablePasteColumn',{'tablePasteChainId':_0x28bff2}),_0x2b51e3['length']&&(_0x1a0d99['markMultiRangeInsertion'](_0x2b51e3,'tablePaste',{'tablePasteChainId':_0x28bff2,'skipNestingCheck':!0x0}),_0x2b51e3['forEach'](_0x37da32=>_0x37da32['detach']?.())),_0x3992f8['length']&&(_0x1a0d99['markMultiRangeDeletion'](_0x3992f8,'tablePaste',{'tablePasteChainId':_0x28bff2,'skipNestingCheck':!0x0}),_0x3992f8['forEach'](_0x23f9bd=>_0x23f9bd['detach']?.()));const _0x584194=_0x1a0d99['markMultiRangeBlockFormat'](_0x5274e9['map'](({element:_0x4e4e})=>_0x4e4e),{'formatGroupId':_0x44bd93()},[],'tablePasteCell',{'tablePasteChainId':_0x28bff2});if(_0x584194){const _0x4a266c=_0x584194['getMarkers'](),_0x44509f=[];for(const {element:_0x565f7b,attributes:_0x14a2d5}of _0x5274e9){if(!_0x14a2d5)continue;const _0x283a46=_0xa05815['model']['createRangeOn'](_0x565f7b),_0x35bb21=_0x4a266c['find'](_0x205a09=>_0x205a09['getRange']()['isEqual'](_0x283a46));_0x35bb21&&_0x44509f['push']([_0x35bb21['name'],_0x14a2d5]);}_0x44509f['length']&&_0x584194['setAttribute']('markerAttributes',Object['fromEntries'](_0x44509f));}_0x228e4c=null;}));},{'priority':_0x57efdd['high']+0xa}),_0x3ffeb3['on']('contentInsertion',()=>{_0x98c991=!0x1;},{'priority':'lowest'}),_0xa05815['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x17646e,_0x132a6e)=>{const [_0x31d0ac,_0x4c526a,,_0x2757c9]=_0x132a6e;if(!_0x228e4c)return;_0x17646e['stop']();const _0x223ba8=_0x31d0ac['cell'],_0x54fdad=_0x4c526a,_0x237e2f=ze(_0x223ba8),_0x178040=ze(_0x54fdad);_0x17646e['return']=_0x223ba8;let _0x301d30=null,_0x2d7826=null;if(_0x178040||_0x237e2f){if(_0x237e2f&&!_0x178040){_0x2757c9['remove'](_0x223ba8['getChild'](0x0));for(const _0x46ab5d of Array['from'](_0x54fdad['getChildren']()))_0x2757c9['insert'](_0x46ab5d,_0x223ba8,'end');const _0x4ccb1c=_0x228e4c['rowInsertionIndexes']['includes'](_0x31d0ac['row']),_0x1c475c=_0x228e4c['columnInsertionIndexes']['includes'](_0x31d0ac['column']);_0x4ccb1c||_0x1c475c||(_0x301d30=_0x20ab11['fromRange'](_0x2757c9['createRangeIn'](_0x223ba8)));}else _0x178040&&!_0x237e2f&&(_0x2d7826=_0x2757c9['createRangeIn'](_0x223ba8));}else{const _0x40c15c=_0x2757c9['createElement']('tableCellSuggestion'),_0x2e359d=_0x2757c9['createElement']('tableCellSuggestion');_0x2757c9['wrap'](_0x2757c9['createRangeIn'](_0x223ba8),_0x2e359d),_0x2757c9['insert'](_0x40c15c,_0x223ba8,0x0);for(const _0x12ccea of Array['from'](_0x54fdad['getChildren']()))_0x2757c9['insert'](_0x12ccea,_0x40c15c,'end');_0x301d30=_0x20ab11['fromRange'](_0x2757c9['createRangeOn'](_0x40c15c)),_0x2d7826=_0x20ab11['fromRange'](_0x2757c9['createRangeOn'](_0x2e359d));}const _0x55b5ac=Array['from'](_0x54fdad['getAttributes']())['filter'](([_0x422302])=>Ue['includes'](_0x422302));_0x228e4c['cells']['push']({'element':_0x223ba8,'attributes':_0x55b5ac['length']?Object['fromEntries'](_0x55b5ac):null}),_0x301d30&&_0x228e4c['insertionRanges']['push'](_0x301d30),_0x2d7826&&_0x228e4c['deletionRanges']['push'](_0x2d7826);},{'priority':'high'}),_0x1bcb45['on']('insertColumns',(_0x13bfc9,_0x42da0a)=>{const [_0x5da9a2,_0x144986={}]=_0x42da0a;if(!_0x228e4c)return;const _0x4d27eb=_0x144986['at']||0x0,_0xe04108=_0x144986['columns']||0x1;_0x228e4c['columnInsertionIndexes']=new Array(_0xe04108)['fill'](_0x4d27eb)['map']((_0x111bc2,_0x58a978)=>_0x111bc2+_0x58a978);for(const {cell:_0x5ce121}of _0x1bcb45['createTableWalker'](_0x5da9a2,{'startColumn':_0x4d27eb,'endColumn':_0x4d27eb+_0xe04108-0x1}))_0x228e4c['columnInsertionRanges']['push'](_0xa05815['model']['createRangeOn'](_0x5ce121));},{'priority':'low'}),_0x1bcb45['on']('insertRows',(_0x46dda3,_0xe4be43)=>{const [_0x3854ee,_0x5eee6a={}]=_0xe4be43;if(!_0x228e4c)return;const _0x3974c6=_0x5eee6a['at']||0x0,_0x13685a=_0x5eee6a['rows']||0x1;_0x228e4c['rowInsertionIndexes']=new Array(_0x13685a)['fill'](_0x3974c6)['map']((_0x45ad81,_0xf8a6b5)=>_0x45ad81+_0xf8a6b5);for(const {cell:_0x167294}of _0x1bcb45['createTableWalker'](_0x3854ee,{'startRow':_0x3974c6,'endRow':_0x3974c6+_0x13685a-0x1}))_0x228e4c['rowInsertionRanges']['push'](_0xa05815['model']['createRangeOn'](_0x167294));},{'priority':'low'}),_0x1a0d99['descriptionFactory']['registerDescriptionCallback'](_0x1ed7b9=>{if(_0x1ed7b9['subType']&&_0x1ed7b9['subType']['startsWith']('tablePaste'))return _0x1ed7b9['previous']?{}:{'type':'insertion','content':o(_0xa05815['locale'],'*Replace\x20table\x20cells*')};});const _0x245922=()=>!0x1;for(const _0x49138c of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1a0d99['_suggestionFactory']['registerCustomCallback']('insertion',_0x49138c,'join',_0x245922),_0x1a0d99['_suggestionFactory']['registerCustomCallback']('deletion',_0x49138c,'join',_0x245922),_0x1a0d99['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x49138c,'join',_0x245922);_0x1a0d99['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x245922),_0x1a0d99['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2ca7f7,_0x4b3aac,_0x4e2385)=>{const _0x24e182=_0x2ca7f7['map'](_0x113b50=>_0x113b50['getContainedElement']())['filter'](_0x18382c=>_0x18382c),_0x13bf20=new Map(_0x24e182['map'](_0x3a142c=>[_0x3a142c,null]));if(_0x228e4c){for(const {element:_0x1df7af,attributes:_0xe1c2d9}of _0x228e4c['cells'])_0xe1c2d9&&_0x13bf20['set'](_0x1df7af,_0xe1c2d9);}else{if(_0x4e2385&&_0x4e2385['markerAttributes'])for(const [_0x26ed24,_0x3979db]of Object['entries'](_0x4e2385['markerAttributes'])){const _0x1791e7=_0xa05815['model']['markers']['get'](_0x26ed24),_0x3fa06a=_0x1791e7?_0x1791e7['getRange']()['getContainedElement']():null;_0x3fa06a&&_0x13bf20['set'](_0x3fa06a,_0x3979db);}}_0xa05815['model']['change'](_0x153ec8=>{for(const [_0x126e5f,_0x275a5e]of _0x13bf20)_0x153ec8['setAttributes']({...He,..._0x275a5e},_0x126e5f);});});const _0x283a01=(_0x183324,_0x440b8c)=>{_0x1a0d99['_suggestionFactory']['registerCustomCallback'](_0x183324,'tablePaste',_0x440b8c,(_0x59686b,_0x5e0037,_0x3a0781)=>{_0xa05815['model']['change'](_0x120614=>{const _0x2898d8=[];for(const _0x34887d of _0x59686b){const _0x5aad99=_0x34887d['start']['nodeAfter'];_0x5aad99['is']('element','tableCellSuggestion')&&_0x2898d8['push'](_0x5aad99);}_0x1a0d99['_suggestionFactory']['getSuggestionCallback'](_0x183324,null,_0x440b8c)(_0x59686b,_0x5e0037,_0x3a0781);for(const _0x347a56 of _0x2898d8)'$graveyard'!=_0x347a56['root']['rootName']&&_0x120614['unwrap'](_0x347a56);});});};_0x283a01('insertion','accept'),_0x283a01('insertion','discard'),_0x283a01('deletion','accept'),_0x283a01('deletion','discard'),_0x1a0d99['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x565395=>{const _0x5aaef4=_0x565395['map'](_0x509f3a=>_0x509f3a['getContainedElement']()),_0x14719b=_0x5aaef4[0x0]['findAncestor']('table'),{minRow:_0x37d92a,maxRow:_0x5268a8}=_0x50e6a5['_getCoordsForCells'](_0x5aaef4);_0x1bcb45['removeRows'](_0x14719b,{'at':_0x37d92a,'rows':_0x5268a8-_0x37d92a+0x1});}),_0x1a0d99['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x53ce5f=>{const _0x39c50c=_0x53ce5f['map'](_0xa79964=>_0xa79964['getContainedElement']()),_0x58cd15=_0x39c50c[0x0]['findAncestor']('table'),{minColumn:_0x1fafcd,maxColumn:_0x1ecd72}=_0x50e6a5['_getCoordsForCells'](_0x39c50c);_0x1bcb45['removeColumns'](_0x58cd15,{'at':_0x1fafcd,'columns':_0x1ecd72-_0x1fafcd+0x1});});const _0x41bc35=(_0x3745bd,_0x1a21cf)=>{if(!_0x1a21cf['subType']||!_0x1a21cf['subType']['startsWith']('tablePaste'))return;const _0xac10a0=_0x1a21cf['attributes']['tablePasteChainId'],_0x167895=_0x1a0d99['getSuggestions']()['filter'](_0xd66958=>_0xd66958['isInContent']&&_0xd66958['attributes']&&_0xd66958['attributes']['tablePasteChainId']==_0xac10a0);_0x167895['length']&&_0x1a21cf['getAllAdjacentSuggestions']()['length']!=_0x167895['length']&&_0x167895['reduce']((_0x529bf5,_0xf87488)=>(_0x529bf5['next']=_0xf87488,_0xf87488['previous']=_0x529bf5,_0xf87488));};function _0x2b909b(_0x5b5146,_0x52dd30=!0x0){const {id:_0x754665,authorId:_0x52bc02}=_0x1a0d99['_splitMarkerName'](_0x5b5146['markerName']),_0x52ade2=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x46df57=_0x1a0d99['activeMarkers']['includes'](_0x5b5146['markerName']);return _0x46df57&&_0x52ade2['push']('ck-suggestion-marker--active'),{'classes':_0x52ade2,'attributes':{'data-suggestion':_0x754665,'data-author-id':_0x52bc02},'priority':_0x46df57&&_0x52dd30?0xbc2:0xbb8};}_0x1a0d99['on']('suggestionLoaded',_0x41bc35,{'priority':'high'}),_0x1a0d99['on']('suggestionUnloaded',_0x41bc35,{'priority':'high'}),_0xa05815['model']['document']['registerPostFixer'](()=>{let _0x242ae6=!0x1;const _0x3f60cb=Array['from'](_0xa05815['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x28a058,data:_0x2b41aa}of _0x3f60cb){const {group:_0x478341,type:_0x5c9c6b,id:_0x390222}=_0x1a0d99['_splitMarkerName'](_0x28a058);if('suggestion'!=_0x478341||'deletion'!=_0x5c9c6b||_0x2b41aa['oldRange'])continue;if(!_0x1a0d99['hasSuggestion'](_0x390222))continue;const _0x1ab816=_0x1a0d99['getSuggestion'](_0x390222)['getRanges'](),_0x4cdd49=_0xa05815['plugins']['get']('Users')['me'];for(const _0x1cb45e of _0x1a0d99['getSuggestions']()){if(!_0x1cb45e['isInContent']||_0x1cb45e['author']!=_0x4cdd49)continue;if('formatBlock'!=_0x1cb45e['type']||'tablePasteCell'!=_0x1cb45e['subType'])continue;if(_0x1cb45e['getRanges']()['every'](_0x5e63d6=>_0x1ab816['some'](_0x57716a=>_0x57716a['containsRange'](_0x5e63d6,!0x0)))){for(const _0x53ac3f of _0x1cb45e['getAllAdjacentSuggestions']())_0x53ac3f['isInContent']&&(_0x53ac3f['discard'](),_0x242ae6=!0x0);}}}return _0x242ae6;}),_0xa05815['model']['document']['registerPostFixer'](_0x39067d=>{const _0x1523c9=_0xa05815['commands']['get']('redo');if(!_0x1523c9||!_0x1523c9['_createdBatches']['has'](_0x39067d['batch']))return!0x1;let _0x1463f8=!0x1;const _0x2e9a07=_0xa05815['plugins']['get']('Users')['me'],_0x437209=_0xa05815['model']['document']['differ']['getChanges'](),_0x3d9572=Array['from'](_0xa05815['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4ee5d4,data:_0x317a3d})=>{const {group:_0x90b4e2,subType:_0x465195,authorId:_0x2d6a96}=_0x1a0d99['_splitMarkerName'](_0x4ee5d4);return'suggestion'==_0x90b4e2&&'tablePaste'==_0x465195&&_0x2d6a96==_0x2e9a07['id']&&!_0x317a3d['oldRange'];});for(const _0x2fdcbc of _0x437209){if('insert'!=_0x2fdcbc['type']||'tableCellSuggestion'!=_0x2fdcbc['name']||0x1!=_0x2fdcbc['length'])continue;const _0x577fb3=_0x39067d['createRange'](_0x2fdcbc['position'],_0x2fdcbc['position']['getShiftedBy'](0x1));if(!_0x3d9572['find'](({data:_0x129ac0})=>_0x129ac0['newRange']['isEqual'](_0x577fb3))){for(const {name:_0x2f493a,data:_0x307fc2}of _0x3d9572)if(_0x577fb3['containsRange'](_0x307fc2['newRange'])){_0x39067d['updateMarker'](_0x2f493a,{'range':_0x577fb3}),_0x1463f8=!0x0;break;}}}return _0x1463f8;}),_0xa05815['model']['document']['registerPostFixer'](_0x1f2ba1=>{let _0x4d6210=!0x1;const _0x41b9a5=_0xa05815['plugins']['get']('Users')['me'],_0x400f9c=_0x1a0d99['getSuggestions']()['filter'](_0x462ad0=>_0x462ad0['isInContent']&&_0x462ad0['author']==_0x41b9a5),_0x3b8732=new Set(),_0x4fa26c=new Set();for(const _0x355308 of _0x400f9c)if('tablePaste'==_0x355308['subType'])for(const _0x29bd49 of _0x355308['getMarkers']()){const _0x3b9d46=_0x29bd49['getRange']()['getContainedElement']();if(_0x3b9d46){if(_0x3b9d46['is']('element','tableCellSuggestion')&&ze(_0x3b9d46)){_0x355308['removeMarker'](_0x29bd49['name']),_0x3b8732['add'](_0x3b9d46),_0x4d6210=!0x0;const _0x5a62d8=_0x3b9d46['nextSibling'],_0x2dd4f6=_0x3b9d46['previousSibling'],_0x5be296=_0x5a62d8&&_0x5a62d8['is']('element','tableCellSuggestion'),_0x3dcf7c=_0x2dd4f6&&_0x2dd4f6['is']('element','tableCellSuggestion');_0x5be296&&!_0x3b8732['has'](_0x5a62d8)&&_0x4fa26c['add'](_0x5a62d8),_0x3dcf7c&&!_0x3b8732['has'](_0x2dd4f6)&&_0x4fa26c['add'](_0x2dd4f6);}else _0x3b9d46['is']('element','paragraph')&&_0x3b9d46['isEmpty']&&(_0x355308['removeMarker'](_0x29bd49['name']),_0x4d6210=!0x0);}}else{if('tablePasteCell'==_0x355308['subType']){if(!_0x355308['attributes']||!_0x355308['attributes']['tablePasteChainId'])continue;const _0x54f105=_0x355308['attributes']['markerAttributes'];if(_0x54f105&&Object['keys'](_0x54f105)['length'])continue;const _0x87dd7b=_0x355308['attributes']['tablePasteChainId'];let _0x326ad6=!0x0,_0x3b7d1c=!0x0;for(const _0x410573 of _0x400f9c)if(_0x410573['subType']&&_0x410573['subType']['startsWith']('tablePaste')){if(!_0x410573['attributes']['tablePasteChainId']){_0x3b7d1c=!0x1;break;}if(_0x410573['id']!=_0x355308['id']&&_0x410573['attributes']['tablePasteChainId']==_0x87dd7b){_0x326ad6=!0x1;break;}}_0x3b7d1c&&_0x326ad6&&(_0x355308['removeMarkers'](),_0x4d6210=!0x0);}}for(const _0x4f0de4 of _0x3b8732)_0x1f2ba1['remove'](_0x4f0de4);for(const _0x362fb5 of _0x4fa26c)_0x1f2ba1['unwrap'](_0x362fb5);return _0x4d6210;}),_0xa05815['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x48b819=>_0x2b909b(_0x48b819),'converterPriority':'high'}),_0xa05815['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x49129c,_0x1ab4e3)=>_0x1ab4e3['options']['showSuggestionHighlights']?_0x2b909b(_0x49129c,!0x1):null,'converterPriority':'high'});const _0x523c13=_0xa05815['editing']['view'];this['listenTo'](_0x523c13['document'],'clipboardOutput',(_0x59d31b,_0x3e2976)=>{const _0x3b451e=[];for(const _0x1d992c of _0x523c13['createRangeIn'](_0x3e2976['content'])['getItems']())_0x1d992c['is']('element','suggestion-td')&&_0x3b451e['push'](_0x1d992c);_0x523c13['change'](_0x418644=>{for(const _0x52a79e of _0x3b451e)_0x418644['move'](_0x418644['createRangeIn'](_0x52a79e),_0x418644['createPositionBefore'](_0x52a79e)),_0x418644['remove'](_0x52a79e);});});}}function ze(_0x2cc7d7){if(_0x2cc7d7['isEmpty'])return!0x0;const _0x112716=_0x2cc7d7['getChild'](0x0);return _0x112716['is']('element','paragraph')&&_0x112716['isEmpty'];}function Ge(_0x4af8ff,_0x16e9b6={},_0x2f9791){for(const {isAnchor:_0x2b1263,cellHeight:_0x3467b0,cellWidth:_0x451032}of _0x2f9791['createTableWalker'](_0x4af8ff,{'includeAllSlots':!0x0,..._0x16e9b6}))if(!_0x2b1263||0x1!=_0x3467b0||0x1!=_0x451032)return!0x1;return!0x0;}class Et extends _0x442276{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x14a5cf=this['editor']['plugins']['get']('TrackChangesEditing');_0x14a5cf['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x14a5cf['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x14a5cf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x14a5cf['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x14a5cf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x14a5cf['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4d4899,_0x1f7988){const _0x28aee1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51b753=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x493397=_0x1f7988['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x405fef=_0x51b753['getColumnGroupElement'](_0x493397);let _0x1b759c=_0x405fef?_0x51b753['getTableColumnsWidths'](_0x405fef):null,_0x1f1db1=_0x493397['getAttribute']('tableWidth')||null;const _0x289e58=_0x1f7988['tableWidth']||_0x1f1db1,_0x1c337a=_0x1f7988['columnWidths']||_0x1b759c,_0x334e66=this['editor']['plugins']['get']('Users')['me'];for(const _0x1f4c84 of _0x28aee1['getSuggestions']()){const _0x18ef2d=_0x1f4c84['getContainedElement']();if('resizeTable'===_0x1f4c84['subType']&&_0x18ef2d===_0x493397){_0x1f4c84['author']!==_0x334e66&&_0x1f4c84['discard']();const _0x45b6f6=_0x1f4c84['data']['commandParams'];_0x1f1db1=_0x45b6f6[0x0]['tableWidth'],_0x1b759c=_0x45b6f6[0x0]['columnWidths'];break;}}_0x4d4899({'table':_0x493397,'tableWidth':_0x289e58,'columnWidths':_0x1c337a}),_0x28aee1['markBlockFormat'](_0x493397,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1f1db1,'columnWidths':_0x1b759c}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x20c062){if('formatBlock'!=_0x20c062['type']&&'formatInline'!=_0x20c062['type'])return;const {data:_0x5a4d3f}=_0x20c062;if(_0x5a4d3f&&'resizeTable'===_0x5a4d3f['formatGroupId']){const _0x3d9519='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3d9519)};}}}class Rt extends _0x442276{['afterInit'](){const _0x14fe43=this['editor'];_0x14fe43['plugins']['has']('Template')&&_0x14fe43['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ut extends _0x442276{['afterInit'](){const _0x52aeb9=this['editor'];if(!_0x52aeb9['commands']['get']('insertTableOfContents'))return;_0x52aeb9['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xf399c9=_0x52aeb9['plugins']['get']('TrackChangesEditing'),_0xe6c923=_0x52aeb9['locale'];_0xf399c9['descriptionFactory']['registerElementLabel']('tableOfContents',_0x325fa6=>o(_0xe6c923,'ELEMENT_TABLE_OF_CONTENTS',_0x325fa6));}}class Vt extends _0x442276{['afterInit'](){const _0x184420=this['editor'];if(!_0x184420['plugins']['has']('Title'))return;const _0x327465=_0x184420['plugins']['get']('TrackChangesEditing');_0x327465['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x184420['locale'],'ELEMENT_TITLE')),_0x184420['model']['document']['registerPostFixer'](_0x1108d7=>{let _0x446d28=!0x1;const _0xada364=Array['from'](_0x184420['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x54db60,data:_0x466624}of _0xada364){const {group:_0x787f73}=_0x327465['_splitMarkerName'](_0x54db60);if('suggestion'!==_0x787f73||!_0x466624['newRange'])continue;const _0x72844=_0x466624['newRange'],_0x2b2ffa=_0x72844['end']['nodeBefore'];if(!_0x2b2ffa||!_0x2b2ffa['is']('element','title-content'))continue;if(!_0x72844['start']['isTouching'](_0x72844['end']))continue;const _0x28e994=_0x184420['model']['schema']['getNearestSelectionRange'](_0x72844['end'],'forward');if(_0x28e994&&_0x28e994['isCollapsed']){const _0x3e03b7=_0x1108d7['createRange'](_0x72844['start'],_0x28e994['start']);_0x3e03b7['isEqual'](_0x72844)||(_0x1108d7['updateMarker'](_0x54db60,{'range':_0x3e03b7}),_0x446d28=!0x0);}_0x446d28||(_0x1108d7['removeMarker'](_0x54db60),_0x446d28=!0x0);}return _0x446d28;});}}class Ft extends _0x442276{['afterInit'](){const _0x203ad9=this['editor'],_0x636229=_0x203ad9['plugins']['get']('TrackChangesEditing');_0x203ad9['plugins']['has']('Uploadcare')&&(_0x636229['enableCommand']('uploadcare'),_0x203ad9['plugins']['has']('UploadcareImageEdit')&&(_0x636229['enableCommand']('uploadcareImageEdit'),_0x636229['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x636229['registerBlockAttribute']('uploadcareImageId'),_0x636229['descriptionFactory']['registerDescriptionCallback'](_0x5aa9d0=>{if('attribute'!=_0x5aa9d0['type'])return;const {data:_0x306678}=_0x5aa9d0;return _0x306678&&'uploadcareImageId'==_0x306678['key']?{'type':'format','content':''}:void 0x0;})));}}class Pt extends _0x442276{['afterInit'](){const _0x10abae=this['editor'],_0x1be8f4=_0x10abae['plugins']['get']('TrackChangesEditing');_0x10abae['plugins']['has']('UndoEditing')&&(_0x1be8f4['enableCommand']('undo'),_0x1be8f4['enableCommand']('redo'));}}class Gt extends _0x442276{static get['requires'](){return[Mt];}['afterInit'](){const _0x138dc6=this['editor'];if(!_0x138dc6['plugins']['has']('TableCaptionEditing'))return;_0x138dc6['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Lt extends _0x442276{['tableProperties'];['tableCellProperties'];constructor(_0x1240cd){super(_0x1240cd),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';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x4c948a=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5c41e2 of this['tableProperties'])_0x4c948a['enableCommand'](_0x5c41e2,(_0x1455c4,_0x3b9a95)=>{const _0x4340a5=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5c41e2,[_0x4340a5],this['tableProperties'],'tableProperties',_0x1455c4,_0x3b9a95);});_0x4c948a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4c948a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4c948a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x46e4fb,_0x57217a)=>this['handleDiscardAction'](this['tableProperties'],_0x46e4fb,_0x57217a)),_0x4c948a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2541c1 of this['tableCellProperties'])_0x4c948a['enableCommand'](_0x2541c1,(_0x5ceec7,_0x22d767)=>{const _0x45f05e=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2541c1,_0x45f05e,this['tableCellProperties'],'tableCellProperties',_0x5ceec7,_0x22d767);});_0x4c948a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4c948a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4c948a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5dd0f1,_0x5b52f9)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5dd0f1,_0x5b52f9)),_0x4c948a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4c948a['descriptionFactory']['registerDescriptionCallback'](_0x2e2d06=>this['handleSuggestionDescription'](_0x2e2d06)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x5e8ad6,_0x5246de,_0x377e28,_0x123e39,_0x69088a,_0x1da34d){const _0x112022=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1da34d['batch'],()=>{for(const _0x32852b of _0x5246de){if(this['_getSuggestion'](_0x32852b,_0x123e39))_0x69088a(_0x1da34d);else{const _0x1c21e0={};for(const _0x24d43c of _0x377e28){const _0x9ca955=_0x32852b['getAttribute'](_0x24d43c);void 0x0!==_0x9ca955&&(_0x1c21e0[_0x24d43c]=_0x9ca955);}_0x69088a(_0x1da34d),_0x112022['markBlockFormat'](_0x32852b,{'commandParams':[_0x1c21e0]},[],_0x123e39);}}});}['handleDiscardAction'](_0x177123,_0xd2dda5,_0x5b5818){const _0x2514fe=_0xd2dda5[0x0]['start']['nodeAfter'],_0x37b7b7=_0x5b5818['commandParams'][0x0];this['editor']['model']['change'](_0x259f82=>{for(const _0x34f1f4 of _0x177123)void 0x0!==_0x37b7b7[_0x34f1f4]?_0x259f82['setAttribute'](_0x34f1f4,_0x37b7b7[_0x34f1f4],_0x2514fe):_0x259f82['removeAttribute'](_0x34f1f4,_0x2514fe);});}['handleSuggestionDescription'](_0xf1666b){if(_0xf1666b['data'])switch(_0xf1666b['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'](_0x12551a,_0x497166){const _0x2d29e1=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x531fd8 of _0x2d29e1['getSuggestions']({'skipNotAttached':!0x0})){const _0x42f611=_0x531fd8['getContainedElement']();if(_0x531fd8['subType']===_0x497166&&_0x42f611===_0x12551a)return _0x531fd8;}return null;}['_registerTablePropertiesAttributes'](){const _0x39f5e9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e1564=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x35490f of _0x3e1564){const _0xef7934=_0x35490f['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x39f5e9['registerBlockAttribute'](_0x35490f),_0x39f5e9['descriptionFactory']['registerAttributeLabel'](_0x35490f,o(this['editor']['locale'],'FORMAT_'+_0xef7934));}}}class Jt extends _0x442276{['afterInit'](){const _0x403790=this['editor'];if(!_0x403790['plugins']['has']('LineHeight'))return;const _0x3d8214=_0x403790['plugins']['get']('TrackChangesEditing'),_0x3f40b7=_0x403790['locale'];_0x3d8214['enableDefaultAttributesIntegration']('lineHeight'),_0x3d8214['registerBlockAttribute']('lineHeight'),_0x3d8214['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x3f40b7,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x442276{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x28f2d5,_0x3ce3f4,_0x3125cc,V,F,G,L,J,K,q,W,H,z,Q,X,tt,et,it,nt,st,ot,rt,at,ct,ut,ft,gt,ht,lt,mt,dt,kt,wt,jt,pt,Y,Jt,Z,bt,yt,St,It,At,_t,$t,vt,Ct,Nt,Dt,Mt,Bt,Tt,Ot,Gt,xt,Et,Ut,Lt,Rt,Vt,Ft,Pt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f36bb){super(_0x4f36bb),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4f6e8d,_0x3fcd5c,_0x522bb0,_0x498054)=>{this['_model']['change'](()=>{for(const _0x42ac48 of[..._0x498054,..._0x522bb0])this['_model']['markers']['has'](_0x42ac48)&&_0x4f36bb['editing']['reconvertMarker'](_0x42ac48);});}),this['descriptionFactory']=new U(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4f36bb['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(),_0x4f36bb['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4f36bb['config']['get']('trackChanges.trackFormatChanges'),_0x4f36bb['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4f36bb['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x4f36bb,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x658e36=this['editor'],_0x45cd3a=(_0x251b8d,_0x2b8b2a)=>{if('attribute'!=_0x251b8d)return'ck-suggestion-marker-'+_0x251b8d;const _0x5d5f64=_0x2b8b2a['split']('|')[0x0];return this['_isBlockAttribute'](_0x5d5f64)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x658e36['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x6e9fbf=>{const {id:_0x5a620a,authorId:_0x4de1ae,type:_0x1e351a,subType:_0x3df2c3}=this['_splitMarkerName'](_0x6e9fbf['markerName']),_0x327dc8=['ck-suggestion-marker',_0x45cd3a(_0x1e351a,_0x3df2c3)];let _0x8455d2=0xbb8;return this['activeMarkers']['includes'](_0x6e9fbf['markerName'])&&(_0x327dc8['push']('ck-suggestion-marker--active'),_0x8455d2=0xbc2),'deletion'==_0x1e351a&&(_0x8455d2+=0x5),{'classes':_0x327dc8,'attributes':{'data-suggestion':_0x5a620a,'data-author-id':_0x4de1ae},'priority':_0x8455d2};}}),_0x658e36['conversion']['for']('dataDowncast')['add'](_0x80d18d=>{_0x80d18d['on']('addMarker:suggestion',(_0x7096de,_0x3ef35a,_0x3b33cc)=>{if(!_0x3b33cc['options']['showSuggestionHighlights'])return;const _0x5e6239=_0x3ef35a['item'];if(!_0x5e6239)return;const _0x2d73b1=_0x3b33cc['mapper']['toViewElement'](_0x5e6239);_0x658e36['model']['schema']['isObject'](_0x5e6239)&&_0x2d73b1&&!_0x2d73b1['getCustomProperty']('widget')&&_0x2d73b1['is']('containerElement')&&_0xa79e4a(_0x2d73b1,_0x3b33cc['writer']);},{'priority':'high'});}),_0x658e36['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x244329,_0x7f3d0c)=>{if(!_0x7f3d0c['options']['showSuggestionHighlights'])return null;const {id:_0xdc8135,authorId:_0x4fa84a,type:_0xc1f14,subType:_0xff954a}=this['_splitMarkerName'](_0x244329['markerName']);return{'classes':['ck-suggestion-marker',_0x45cd3a(_0xc1f14,_0xff954a)],'priority':0xbb8,'attributes':{'data-suggestion':_0xdc8135,'data-author-id':_0x4fa84a}};}});const _0x357d6d=({showActiveMarkers:_0x4e9609=!0x0,isAttributeSuggestion:_0x32ef66=!0x1}={})=>(_0x50ceb3,_0x57d6dc,_0x24307d)=>{if(!_0x57d6dc['item'])return;const {id:_0xac4e5,authorId:_0x33684b,subType:_0x783f24}=this['_splitMarkerName'](_0x57d6dc['markerName']);if(_0x32ef66){const _0x194ecd=ae(_0x783f24);if(!this['_isBlockAttribute'](_0x194ecd))return;}if(_0x57d6dc['item']['is']('selection'))return void _0x24307d['consumable']['consume'](_0x57d6dc['item'],_0x50ceb3['name']);const _0x56c209=_0x24307d['mapper']['toViewElement'](_0x57d6dc['item']);if(_0x57d6dc['item']['is']('element')&&_0x658e36['model']['schema']['isBlock'](_0x57d6dc['item'])&&!_0x56c209['getCustomProperty']('addHighlight')){_0x24307d['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x56c209),_0x24307d['writer']['setAttribute']('data-suggestion',_0xac4e5,_0x56c209),_0x24307d['writer']['setAttribute']('data-author-id',_0x33684b,_0x56c209),_0x24307d['mapper']['bindElementToMarker'](_0x56c209,_0x57d6dc['markerName']),_0x4e9609&&(this['activeMarkers']['includes'](_0x57d6dc['markerName'])?_0x24307d['writer']['addClass']('ck-suggestion-marker--active',_0x56c209):_0x24307d['writer']['removeClass']('ck-suggestion-marker--active',_0x56c209));for(const _0x2a0683 of _0x658e36['model']['createRangeIn'](_0x57d6dc['item'])['getItems']())_0x24307d['consumable']['consume'](_0x2a0683,_0x50ceb3['name']);_0x24307d['consumable']['consume'](_0x57d6dc['item'],_0x50ceb3['name']);}};_0x658e36['conversion']['for']('dataDowncast')['add'](_0x1e07bb=>{_0x1e07bb['on']('addMarker:suggestion:formatBlock',(_0x300de5,_0x15cc82,_0xc5ce5d)=>{_0xc5ce5d['options']['showSuggestionHighlights']&&_0x357d6d({'showActiveMarkers':!0x1})(_0x300de5,_0x15cc82,_0xc5ce5d);},{'priority':'highest'});}),_0x658e36['conversion']['for']('dataDowncast')['add'](_0x40435b=>{_0x40435b['on']('addMarker:suggestion:attribute',(_0x22a52a,_0x3fbd84,_0x3402aa)=>{_0x3402aa['options']['showSuggestionHighlights']&&_0x357d6d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x22a52a,_0x3fbd84,_0x3402aa);},{'priority':'highest'});}),_0x658e36['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3a7342,_0x10a01b)=>{if(_0x10a01b['options']['showSuggestionHighlights']){const {id:_0x521967,authorId:_0x4d403a}=this['_splitMarkerName'](_0x3a7342);return _0x3a7342['includes'](':split')||_0x3a7342['includes'](':merge')?{'group':'suggestion','name':_0x3a7342['substr'](0xb),'attributes':{'data-suggestion':_0x521967,'data-author-id':_0x4d403a}}:null;}return{'group':'suggestion','name':_0x3a7342['substr'](0xb)};}}),_0x658e36['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4f1d20,{writer:_0x508d29})=>{let _0x2607c3='suggestion:'+_0x4f1d20['getAttribute']('suggestion-type')+':'+_0x4f1d20['getAttribute']('id');return _0x4f1d20['getAttribute']('marker-count')&&(_0x2607c3+=':'+_0x4f1d20['getAttribute']('marker-count')),_0x508d29['createElement']('$marker',{'data-name':_0x2607c3});}}),_0x658e36['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x658e36['conversion']['for']('editingDowncast')['add'](_0x29cf3f=>{_0x29cf3f['on']('addMarker:suggestion:formatBlock',_0x357d6d(),{'priority':'high'});}),_0x658e36['conversion']['for']('editingDowncast')['add'](_0x399568=>{_0x399568['on']('addMarker:suggestion:attribute',_0x357d6d({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x658e36['conversion']['for']('editingDowncast')['add'](_0x4746e8=>{_0x4746e8['on']('removeMarker:suggestion:formatBlock',(_0x481f94,_0x36e52c,_0x637397)=>{const _0x10d6d3=_0x637397['mapper']['markerNameToElements'](_0x36e52c['markerName']);if(_0x10d6d3){for(const _0x339673 of _0x10d6d3)_0x339673['getCustomProperty']('addHighlight')||(_0x637397['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x339673),_0x637397['writer']['removeAttribute']('data-suggestion',_0x339673),_0x637397['writer']['removeAttribute']('data-author-id',_0x339673),_0x637397['mapper']['unbindElementFromMarkerName'](_0x339673,_0x36e52c['markerName']));}},{'priority':'high'});}),_0x658e36['conversion']['for']('editingDowncast')['add'](_0x7a8c2d=>{_0x7a8c2d['on']('removeMarker:suggestion:attribute',(_0x27f794,_0x396167,_0x22ba00)=>{const _0x324f2a=_0x22ba00['mapper']['markerNameToElements'](_0x396167['markerName']);if(!_0x324f2a)return;const {subType:_0x2f8a6f}=this['_splitMarkerName'](_0x396167['markerName']),_0xb79c89=ae(_0x2f8a6f);if(this['_isBlockAttribute'](_0xb79c89)){for(const _0x18d078 of _0x324f2a)_0x18d078['getCustomProperty']('addHighlight')||(_0x22ba00['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x18d078),_0x22ba00['writer']['removeAttribute']('data-suggestion',_0x18d078),_0x22ba00['writer']['removeAttribute']('data-author-id',_0x18d078),_0x22ba00['mapper']['unbindElementFromMarkerName'](_0x18d078,_0x396167['markerName']));}},{'priority':'high'});}),_0x658e36['model']['document']['registerPostFixer'](_0x2053e0=>{let _0x4d9299=!0x1;const _0x429d73=Array['from'](_0x658e36['model']['document']['differ']['getChangedMarkers']()),_0x1c0d1c=new Set();for(const {name:_0x120ff9,data:_0x5cc4e8}of _0x429d73){const {group:_0x4e9ab2,type:_0x510056,subType:_0x2b0b3d,id:_0x268ed2}=this['_splitMarkerName'](_0x120ff9);if('suggestion'!==_0x4e9ab2)continue;const _0x554c0a=_0x2b0b3d?'suggestion:'+_0x510056+':'+_0x2b0b3d+':'+_0x268ed2:'suggestion:'+_0x510056+':'+_0x268ed2,_0x3aeb47=_0x658e36['model']['markers']['getMarkersGroup'](_0x554c0a),_0x5e7e28=_0x658e36['model']['markers']['get'](_0x120ff9),_0x1a65b3=this['_suggestions']['get'](_0x268ed2);if(null!=_0x5cc4e8['newRange']){'formatInline'==_0x510056&&(_0x4d9299=_0x4d9299||zt(_0x5cc4e8['newRange'],_0x120ff9,_0x2053e0,_0x658e36['model']['schema']));const _0x449e59='attribute'==_0x510056&&this['_isBlockAttribute'](_0x2b0b3d['split']('|')[0x0]),_0x4c3896='attribute'==_0x510056&&this['_isInlineAttribute'](_0x2b0b3d['split']('|')[0x0]);if(_0x5cc4e8['newRange']['isCollapsed']||'$graveyard'==_0x5cc4e8['newRange']['root']['rootName']||'formatBlock'==_0x510056&&!Xt(_0x5cc4e8['newRange'])||_0x449e59&&!Xt(_0x5cc4e8['newRange'])||_0x4c3896&&Yt(_0x5cc4e8['newRange'])||'deletion'==_0x510056&&Yt(_0x5cc4e8['newRange'])||_0x5e7e28&&Zt(_0x5e7e28,_0x3aeb47))_0x2053e0['removeMarker'](_0x120ff9),_0x4d9299=!0x0;else{if(!_0x1a65b3||!_0x1a65b3['isInContent'])continue;if(_0x5cc4e8['newRange']&&_0x5cc4e8['oldRange']&&_0x5cc4e8['newRange']['isEqual'](_0x5cc4e8['oldRange']))continue;_0x1c0d1c['add'](_0x1a65b3);}}}return _0x1c0d1c['size']>0x0&&(_0x4d9299=!!this['_joinWithAdjacentSuggestions'](_0x1c0d1c)||_0x4d9299),_0x4d9299;}),_0x658e36['model']['document']['registerPostFixer'](_0x3be73f=>{let _0x56147d=!0x1;for(const _0x23cdb2 of _0x658e36['model']['document']['differ']['getChanges']())if('insert'==_0x23cdb2['type'])for(const _0x4f54f4 of this['_suggestions']['values']()){if(_0x4f54f4['isMultiRange']||!_0x4f54f4['isInContent'])continue;const _0xe9efdd='formatBlock'==_0x4f54f4['type'],_0x1e08ed=this['_getAttributeKey'](_0x4f54f4),_0x113a63=_0x1e08ed&&this['_isBlockAttribute'](_0x1e08ed);if(!_0xe9efdd&&!_0x113a63)continue;const _0x19ccec=_0x4f54f4['getFirstRange']();if(_0x19ccec['start']['parent']!=_0x19ccec['end']['parent']&&!_0x19ccec['end']['isAtEnd']){const _0x3f8657=_0x658e36['model']['createPositionAt'](_0x19ccec['start']['nodeAfter'],'end'),_0x3c67fb=_0x658e36['model']['createRange'](_0x19ccec['start'],_0x3f8657);_0x3be73f['updateMarker'](_0x4f54f4['getFirstMarker'](),{'range':_0x3c67fb}),_0x56147d=!0x0;}}return _0x56147d;}),_0x658e36['model']['document']['registerPostFixer'](_0x3e6c1d=>this['_processAttributeChanges'](_0x3e6c1d)),_0x658e36['model']['document']['registerPostFixer'](_0x400ac4=>!_0x400ac4['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x400ac4)),_0x658e36['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x658e36['model']['document']['on']('change:data',(_0x4ffac8,_0x4c41ce)=>{if(!_0x4c41ce['isLocal']||_0x4c41ce['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xed60c1=_0x658e36['model']['document']['differ']['getChanges']();if(0x0==_0xed60c1['length'])return;const _0x137266=[],_0x5c8256=_0xed60c1['filter'](_0x457e54=>'attribute'==_0x457e54['type']),_0x325ba4=_0xed60c1['filter'](_0x4b397c=>'insert'==_0x4b397c['type']&&'$text'!=_0x4b397c['name']);for(const _0x2e77b6 of _0x5c8256)this['_isRegisteredAttribute'](_0x2e77b6['attributeKey'])&&_0x137266['push']({'key':_0x2e77b6['attributeKey'],'newValue':_0x2e77b6['attributeNewValue'],'oldValue':_0x2e77b6['attributeOldValue'],'range':ee(_0x2e77b6['range'],_0x658e36['model'])});for(const _0x929a0c of _0x325ba4){if('rename'!=_0x929a0c['action']&&'refresh'!=_0x929a0c['action'])continue;const _0x1b4adf=ie(_0x929a0c['position']['nodeAfter'],_0x658e36['model']),_0x44556d=_0x929a0c['before'];'rename'==_0x929a0c['action']&&_0x137266['push']({'key':m,'newValue':_0x929a0c['name'],'oldValue':_0x44556d['name'],'range':_0x1b4adf});for(const [_0x46dc17,_0x5600fd]of _0x44556d['attributes']){if(!this['_isRegisteredAttribute'](_0x46dc17))continue;const _0x394b84=_0x929a0c['attributes']['get'](_0x46dc17);_0x5600fd!==_0x394b84&&_0x137266['push']({'key':_0x46dc17,'newValue':_0x394b84,'oldValue':_0x5600fd,'range':_0x1b4adf});}for(const [_0x122fbb,_0x8d1969]of _0x929a0c['attributes'])this['_isRegisteredAttribute'](_0x122fbb)&&(_0x44556d['attributes']['has'](_0x122fbb)||_0x137266['push']({'key':_0x122fbb,'newValue':_0x8d1969,'oldValue':null,'range':_0x1b4adf}));}0x0!=_0x137266['length']&&_0x658e36['model']['enqueueChange'](_0x4c41ce,_0x269fc1=>{const _0x51c640=_0x44bd93();for(const {range:_0x58f4b1,key:_0xca4c69,oldValue:_0x510677,newValue:_0x2e56df}of _0x137266)this['markAttributeChange'](_0x58f4b1,_0xca4c69,_0x510677,_0x2e56df,{'groupId':_0x51c640});this['_reduceExistingSuggestions'](_0x269fc1,_0x137266);});},{'priority':'lowest'}),_0x658e36['model']['markers']['on']('update:suggestion',(_0x27cd64,_0x586354,_0x3d6c45)=>{if(null==_0x3d6c45){const {id:_0x1361df}=this['_splitMarkerName'](_0x586354['name']),_0x83afdf=this['_suggestions']['get'](_0x1361df);_0x83afdf&&_0x83afdf['addMarkerName'](_0x586354['name']);}}),_0x658e36['model']['document']['on']('change:data',()=>{const _0x5b61a1=Array['from'](_0x658e36['model']['document']['differ']['getChangedMarkers']())['filter'](_0xe1f3ed=>'suggestion'===this['_splitMarkerName'](_0xe1f3ed['name'])['group']);if(0x0===_0x5b61a1['length'])return;_0x5b61a1['sort']((_0x46aea1,_0x46e230)=>{const _0x2f190c=_0x46aea1['data']['oldRange'],_0x585598=_0x46e230['data']['oldRange'];return null===_0x2f190c&&null===_0x585598?0x0:null===_0x2f190c&&null!==_0x585598?-0x1:null!==_0x2f190c&&null===_0x585598?0x1:_0x2f190c['start']['isBefore'](_0x585598['start'])?-0x1:0x1;});const _0x2a24e7=new Set(),_0xe6e027=new Set();for(const {name:_0x2b95d7,data:_0x392d6c}of _0x5b61a1){const {id:_0x44ccbe}=this['_splitMarkerName'](_0x2b95d7);if(null===_0x392d6c['oldRange']){const _0x5542ba=this['_handleNewSuggestionMarker'](_0x2b95d7);_0xe6e027['add'](_0x5542ba);}else{const _0x5fce15=this['_suggestions']['get'](_0x44ccbe);null!==_0x392d6c['newRange']||_0x5fce15['isInContent']?(_0x2a24e7['add'](_0x5fce15['head']),_0xe6e027['add'](_0x5fce15)):this['_removeSuggestion'](_0x5fce15);}}_0xe6e027['size']>0x0&&this['_refreshSuggestionsChain'](_0xe6e027);for(const _0x9656bf of _0x2a24e7)this['fire']('suggestionChanged',_0x9656bf);}),_0x658e36['model']['on']('applyOperation',(_0x338455,_0x298ceb)=>{const _0xd714e8=_0x298ceb[0x0];if(!this['_suggestions']['size'])return;if(!_0xd714e8['isDocumentOperation'])return;if(_0xd714e8['batch']['isUndo']||!_0xd714e8['batch']['isLocal'])return;let _0x319b0b,_0x404262;switch(_0xd714e8['type']){case'insert':_0x319b0b=_0x658e36['model']['createPositionAt'](_0xd714e8['position']),_0x404262=_0x319b0b['getShiftedBy'](_0xd714e8['howMany']);break;case'split':_0x319b0b=_0x658e36['model']['createPositionAt'](_0xd714e8['splitPosition']),_0x404262=_0x658e36['model']['createPositionAt'](_0xd714e8['moveTargetPosition']);break;case'move':_0x319b0b=_0x658e36['model']['createPositionAt'](_0xd714e8['targetPosition']),_0x404262=_0x319b0b['getShiftedBy'](_0xd714e8['howMany']);break;default:return;}const _0xb27f4=_0x658e36['model']['createRange'](_0x319b0b,_0x404262);_0x658e36['model']['change'](()=>{for(const {suggestion:_0x67d370,meta:_0x14eba9}of this['_findSuggestions'](_0xb27f4)){if(_0x67d370['isMultiRange'])continue;if('formatInline'==_0x67d370['type'])continue;const _0x54df7e=this['_getAttributeKey'](_0x67d370);if(_0x54df7e&&this['_isBlockAttribute'](_0x54df7e)&&'split'!=_0xd714e8['type'])continue;const _0x3ac688=_0x67d370['data']&&_0x67d370['data']['multipleBlocks'];('formatBlock'!=_0x67d370['type']||'split'==_0xd714e8['type']&&!_0x3ac688)&&(_0x14eba9['containsRangeInObject']||'insertion'==_0x67d370['type']&&_0x14eba9['isOwn']||_0x67d370['getFirstRange']()['containsRange'](_0xb27f4)&&this['_breakSuggestionMarker'](_0x67d370,_0x319b0b,_0x404262));}});},{'priority':'lowest'}),_0x658e36['model']['on']('deleteContent',(_0x1a38f1,_0x571c76)=>{const _0x150c10=_0x571c76[0x0],_0x5e1b5e=_0x571c76[0x1];if(_0x5e1b5e&&_0x5e1b5e['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x150c10['isCollapsed'])return;const _0x2d8c07=_0x658e36['model']['schema'],{start:_0x395634,end:_0x27232b}=_0x150c10['getFirstRange'](),_0x23c7ff=_0x395634['nodeAfter']&&_0x2d8c07['isLimit'](_0x395634['nodeAfter'])?null:_0x2d8c07['getNearestSelectionRange'](_0x395634,'forward'),_0x53f485=_0x27232b['nodeBefore']&&_0x2d8c07['isLimit'](_0x27232b['nodeBefore'])?null:_0x2d8c07['getNearestSelectionRange'](_0x27232b,'backward'),_0x47171f=_0x658e36['model']['createRange'](_0x23c7ff?_0x23c7ff['start']:_0x395634,_0x53f485?_0x53f485['end']:_0x27232b);_0x658e36['model']['change'](_0x496bd4=>{this['markDeletion'](_0x47171f);const _0x3eb480=_0x658e36['model']['schema']['getNearestSelectionRange'](_0x47171f['start']);_0x150c10['is']('documentSelection')?_0x496bd4['setSelection'](_0x3eb480):_0x150c10['setTo'](_0x3eb480);}),_0x1a38f1['stop']();},{'priority':_0x57efdd['normal']+0xa}),_0x658e36['model']['on']('insertContent',(_0x47adcd,_0x54c59e)=>{const _0x4f35d1=_0x54c59e[_0x54c59e['length']-0x1];_0x4f35d1&&_0x4f35d1['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x658e36['model']['change'](()=>{let _0x2a0472=_0x658e36['model']['insertContent'](_0x54c59e[0x0],_0x54c59e[0x1],_0x54c59e[0x2],{'forceDefaultExecution':!0x0});if(!_0x2a0472)return;_0x47adcd['return']=_0x2a0472['clone']();const _0x540ad2=_0x2a0472['end']['nodeBefore'],_0x557b6f=_0x658e36['model']['schema'];_0x540ad2&&_0x557b6f['isBlock'](_0x540ad2)&&!_0x557b6f['isObject'](_0x540ad2)&&(_0x2a0472=_0x658e36['model']['createRange'](_0x2a0472['start'],_0x658e36['model']['createPositionAt'](_0x540ad2,'end'))),this['markInsertion'](_0x2a0472);}),_0x47adcd['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x14b76e=new T(_0x658e36,this['_suggestions']);_0x658e36['commands']['add']('acceptSuggestion',_0x14b76e),this['enableCommand']('acceptSuggestion');const _0x2688c3=new O(_0x658e36,this['_suggestions']);_0x658e36['commands']['add']('discardSuggestion',_0x2688c3),this['enableCommand']('discardSuggestion'),_0x658e36['commands']['add']('acceptAllSuggestions',new x(_0x658e36,_0x14b76e,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x658e36['commands']['add']('discardAllSuggestions',new x(_0x658e36,_0x2688c3,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x658e36['commands']['add']('acceptSelectedSuggestions',new E(_0x658e36,_0x14b76e,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x658e36['commands']['add']('discardSelectedSuggestions',new E(_0x658e36,_0x2688c3,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5c16ff=_0x658e36['plugins']['get']('CommentsRepository');this['listenTo'](_0x5c16ff,'addComment',(_0x5983d1,{threadId:_0x40aed1})=>{const _0x1ebd03=this['_suggestions']['get'](_0x40aed1);_0x1ebd03&&_0x1ebd03['commentThread']&&0x1===_0x1ebd03['commentThread']['length']&&this['_updateSuggestionData'](_0x40aed1,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5c16ff,'removeComment',(_0x50c16f,{threadId:_0x8febd9})=>{const _0x2624fa=this['_suggestions']['get'](_0x8febd9);_0x2624fa&&_0x2624fa['commentThread']&&!_0x2624fa['commentThread']['length']&&this['_updateSuggestionData'](_0x8febd9,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x52bc86){const _0x2297fb=_0x45d34d([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x2d14e7=0x3d8d0df,_0x17b1c5=0x3dfa7bf^_0x2d14e7,_0x7b9212=window[_0x45d34d([0x44,0x61,0x74,0x65])][_0x45d34d([0x6e,0x6f,0x77])](),_0x9a2c65=_0x52bc86[_0x45d34d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x7faa=new window[(_0x45d34d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x321f60=>{_0x9a2c65[_0x45d34d([0x6f,0x6e,0x63,0x65])](_0x45d34d([0x72,0x65,0x61,0x64,0x79]),_0x321f60);}),_0x1935be={[_0x45d34d([0x6b,0x74,0x79])]:_0x45d34d([0x45,0x43]),[_0x45d34d([0x75,0x73,0x65])]:_0x45d34d([0x73,0x69,0x67]),[_0x45d34d([0x63,0x72,0x76])]:_0x45d34d([0x50,0x2d,0x32,0x35,0x36]),[_0x45d34d([0x78])]:_0x45d34d([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x45d34d([0x79])]:_0x45d34d([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x45d34d([0x61,0x6c,0x67])]:_0x45d34d([0x45,0x53,0x32,0x35,0x36])},_0x1485f1=_0x9a2c65[_0x45d34d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x45d34d([0x67,0x65,0x74])](_0x45d34d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x174b5f(){let _0x25c823,_0x4b6f07=null,_0x3c9c87=null;try{if(_0x1485f1==_0x45d34d([0x47,0x50,0x4c]))return _0x45d34d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x25c823=_0x310afd(),!_0x25c823)return _0x45d34d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x25c823[_0x45d34d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3c9c87=_0x56577f(_0x25c823[_0x45d34d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x25c823[_0x45d34d([0x6a,0x74,0x69])])),await _0x45bfc9()?_0x1ced06()?_0x577c82()?_0x45d34d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1a68a5()?(_0x25c823[_0x45d34d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x45d34d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4b6f07=_0x53c0cc(_0x45d34d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x25c823[_0x45d34d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x45d34d([0x74,0x72,0x69,0x61,0x6c])&&(_0x4b6f07=_0x53c0cc(_0x45d34d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2193d8()):_0x45d34d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x45d34d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x45d34d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x45d34d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x577c82(){const _0x6e4cdc=[_0x45d34d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x45d34d([0x74,0x72,0x69,0x61,0x6c])][_0x45d34d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25c823[_0x45d34d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x7b9212/0x3e8:0xe10*_0x17b1c5;return _0x25c823[_0x45d34d([0x65,0x78,0x70])]<_0x6e4cdc;}function _0x1ced06(){const _0x348417=_0x25c823[_0x45d34d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x348417)return!0x1;if(_0x348417[_0x45d34d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45d34d([0x2a])))return!0x0;if(_0x348417[_0x45d34d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45d34d([0x54,0x43])))return!0x0;if(_0x348417[_0x45d34d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45d34d([0x52,0x54,0x43]))){if(_0x43a487())return!0x0;if(_0x5f5cc7()||_0x2fc038())return!0x0;}return!0x1;}function _0x1a68a5(){const _0x196e0d=_0x25c823[_0x45d34d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x196e0d||0x0==_0x196e0d[_0x45d34d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x29a0b1}=new URL(window[_0x45d34d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x196e0d[_0x45d34d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29a0b1))return!0x0;const _0x8bc062=_0x29a0b1[_0x45d34d([0x73,0x70,0x6c,0x69,0x74])](_0x45d34d([0x2e]));return _0x196e0d[_0x45d34d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4fdfe2=>_0x4fdfe2[_0x45d34d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45d34d([0x2a])))[_0x45d34d([0x6d,0x61,0x70])](_0x3118f7=>_0x3118f7[_0x45d34d([0x73,0x70,0x6c,0x69,0x74])](_0x45d34d([0x2e])))[_0x45d34d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x137c49=>_0x137c49[_0x45d34d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x8bc062[_0x45d34d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x45d34d([0x6d,0x61,0x70])](_0x29686c=>Array(_0x8bc062[_0x45d34d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x29686c[_0x45d34d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x45d34d([0x66,0x69,0x6c,0x6c])](_0x29686c[0x0]===_0x45d34d([0x2a])?_0x45d34d([0x2a]):'')[_0x45d34d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x29686c))[_0x45d34d([0x73,0x6f,0x6d,0x65])](_0x467848=>_0x8bc062[_0x45d34d([0x65,0x76,0x65,0x72,0x79])]((_0x4db57a,_0x1db703)=>_0x467848[_0x1db703]===_0x4db57a||_0x467848[_0x1db703]===_0x45d34d([0x2a])));}function _0x2193d8(){return _0x4b6f07&&_0x3c9c87?new window[(_0x45d34d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x38562d,_0x5a61da)=>{_0x4b6f07[_0x45d34d([0x74,0x68,0x65,0x6e])](_0x38562d,_0x5a61da),_0x3c9c87[_0x45d34d([0x74,0x68,0x65,0x6e])](_0x400fa8=>{_0x400fa8!=_0x45d34d([0x56,0x61,0x6c,0x69,0x64])&&_0x38562d(_0x400fa8);},_0x5a61da);}):_0x4b6f07||_0x3c9c87||_0x45d34d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x56577f(_0x4f11fe,_0x28e582){return new window[(_0x45d34d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5830b0=>{if(_0xe813b9())return _0x5830b0(_0x45d34d([0x56,0x61,0x6c,0x69,0x64]));_0x24f536(),_0x9a2c65[_0x45d34d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x45d34d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x345313=!0x1;const _0xa5dbc5=_0x44bd93();function _0x33dcd3(_0x593869){return!!_0x593869&&(typeof _0x593869===_0x45d34d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x593869===_0x45d34d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x593869[_0x45d34d([0x74,0x68,0x65,0x6e])]===_0x45d34d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x593869[_0x45d34d([0x63,0x61,0x74,0x63,0x68])]===_0x45d34d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4c09c3(_0x477b09){_0x532258(_0x477b09)[_0x45d34d([0x74,0x68,0x65,0x6e])](_0x54ab0f=>{if(!_0x54ab0f||_0x54ab0f[_0x45d34d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x45d34d([0x6f,0x6b]))return _0x45d34d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x396552(_0x4ce062(_0xa5dbc5+_0x28e582))!=_0x54ab0f[_0x45d34d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x45d34d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x45d34d([0x56,0x61,0x6c,0x69,0x64]);})[_0x45d34d([0x74,0x68,0x65,0x6e])](_0x3344a2=>(_0x24e7b0(),_0x3344a2),()=>{const _0x4d7e9e=_0x583b54();return null==_0x4d7e9e?(_0x24e7b0(),_0x45d34d([0x56,0x61,0x6c,0x69,0x64])):_0x45d34d(_0x7b9212-_0x4d7e9e>(0x27d454df^_0x2d14e7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x45d34d([0x74,0x68,0x65,0x6e])](_0x5830b0)[_0x45d34d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5830b0(_0x45d34d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x52420=0x3ee3e5f^_0x2d14e7;function _0x24e7b0(){const _0x1b4199=_0x45d34d([0x6c,0x6c,0x63,0x74,0x2d])+_0x396552(_0x4ce062(_0x4f11fe)),_0x5651be=_0x2d155c(_0x396552(window[_0x45d34d([0x4d,0x61,0x74,0x68])][_0x45d34d([0x63,0x65,0x69,0x6c])](_0x7b9212/_0x52420)));window[_0x45d34d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x45d34d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b4199,_0x5651be);}function _0x583b54(){const _0x164ce8=_0x45d34d([0x6c,0x6c,0x63,0x74,0x2d])+_0x396552(_0x4ce062(_0x4f11fe)),_0x4bffeb=window[_0x45d34d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x45d34d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x164ce8);return _0x4bffeb?window[_0x45d34d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d155c(_0x4bffeb),0x10)*_0x52420:null;}function _0x532258(_0x486c60){return new window[(_0x45d34d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x227c96,_0x2e4493)=>{_0x486c60[_0x45d34d([0x74,0x68,0x65,0x6e])](_0x227c96,_0x2e4493),window[_0x45d34d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2e4493,0x3d9041f^_0x2d14e7);});}}_0x9a2c65[_0x45d34d([0x6f,0x6e])](_0x45d34d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x146e4f,_0x1c8351)=>{if(_0x1c8351[0x0]!=_0x4f11fe)return _0x5830b0(_0x45d34d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1c8351[0x1]={..._0x1c8351[0x1],[_0x45d34d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xa5dbc5};},{[_0x45d34d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x45d34d([0x68,0x69,0x67,0x68])}),_0x9a2c65[_0x45d34d([0x6f,0x6e])](_0x45d34d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1749fd=>{_0x33dcd3(_0x1749fd[_0x45d34d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x345313=!0x0,_0x4c09c3(_0x1749fd[_0x45d34d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x45d34d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x45d34d([0x6c,0x6f,0x77])}),_0x7faa[_0x45d34d([0x74,0x68,0x65,0x6e])](()=>{_0x345313||_0x5830b0(_0x45d34d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xe813b9(){return _0x9a2c65[_0x45d34d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x45d34d([0x76,0x69,0x65,0x77])][_0x45d34d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x45d34d([0x61,0x75,0x74,0x6f]);}function _0x24f536(){_0x9a2c65[_0x45d34d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x45d34d([0x76,0x69,0x65,0x77])][_0x45d34d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x45d34d([0x61,0x75,0x74,0x6f]);}}function _0x53c0cc(_0x1837f4){const _0x238317=[new window[(_0x45d34d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f03d6=>setTimeout(_0x5f03d6,0x3d1ee13^_0x2d14e7)),_0x7faa[_0x45d34d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x45d34d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d7440=>{let _0x554bf4=0x0;_0x9a2c65[_0x45d34d([0x6d,0x6f,0x64,0x65,0x6c])][_0x45d34d([0x6f,0x6e])](_0x45d34d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x23d86f,_0x29c309)=>{_0x29c309[0x0][_0x45d34d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x554bf4++,_0x554bf4==(0x3d8d127^_0x2d14e7)&&(_0x3d7440(),_0x23d86f[_0x45d34d([0x6f,0x66,0x66])]());});}))];return window[_0x45d34d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x45d34d([0x72,0x61,0x63,0x65])](_0x238317)[_0x45d34d([0x74,0x68,0x65,0x6e])](()=>_0x1837f4);}async function _0x41ad1a(){await _0x7faa,_0x9a2c65[_0x45d34d([0x6d,0x6f,0x64,0x65,0x6c])][_0x45d34d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x803057,_0x9a2c65[_0x45d34d([0x6d,0x6f,0x64,0x65,0x6c])][_0x45d34d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x803057,_0x9a2c65[_0x45d34d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x45d34d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x43a487(){return _0x2dedf2(_0x45d34d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3a094e(_0x45d34d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x45d34d([0x73,0x74,0x61,0x74,0x65])]==_0x45d34d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5f5cc7(){return _0x2dedf2(_0x45d34d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x2fc038(){return _0x2dedf2(_0x45d34d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x280af3(_0x1935c5){const _0x14889f=_0x550bdd();_0x9a2c65[_0x14889f]=_0x45d34d([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1935c5,_0x1935c5!=_0x45d34d([0x56,0x61,0x6c,0x69,0x64])&&_0x41ad1a();}function _0x550bdd(){const _0x24bee5=window[_0x45d34d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x45d34d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x45d34d([0x6e,0x6f,0x77])]())[_0x45d34d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x45d34d([0x2e]),'');let _0x55e62c=_0x45d34d([0x52]);for(let _0x2eba99=0x0;_0x2eba99<_0x24bee5[_0x45d34d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2eba99+=0x2){let _0x454c19=window[_0x45d34d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24bee5[_0x45d34d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2eba99,_0x2eba99+0x2));_0x454c19>=_0x2297fb[_0x45d34d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x454c19-=_0x2297fb[_0x45d34d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x55e62c+=_0x2297fb[_0x454c19];}return _0x55e62c;}function _0x310afd(){const _0x7823fa=_0x1485f1[_0x45d34d([0x73,0x70,0x6c,0x69,0x74])](_0x45d34d([0x2e]));if(0x3!=_0x7823fa[_0x45d34d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5b53a9(_0x7823fa[0x1]);function _0x5b53a9(_0x5c435b){const _0x5136ef=_0x316a89(_0x5c435b);return _0x5136ef&&_0x5007f5()?_0x5136ef:null;function _0x5007f5(){const _0x3a7945=_0x5136ef[_0x45d34d([0x6a,0x74,0x69])],_0x3e60da=window[_0x45d34d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a7945[_0x45d34d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3a7945[_0x45d34d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x138953={..._0x5136ef,[_0x45d34d([0x6a,0x74,0x69])]:_0x3a7945[_0x45d34d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3a7945[_0x45d34d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x138953[_0x45d34d([0x76,0x63])],_0x4ce062(_0x138953)==_0x3e60da;}}}async function _0x45bfc9(){let _0x2a31b5=!0x0;try{const _0x1e2913=_0x1485f1[_0x45d34d([0x73,0x70,0x6c,0x69,0x74])](_0x45d34d([0x2e])),[_0xd81447,_0x34fd19,_0x51ee52]=_0x1e2913;return _0xa3caab(_0xd81447),await _0x4297aa(_0xd81447,_0x34fd19,_0x51ee52),_0x2a31b5;}catch{return!0x1;}function _0xa3caab(_0x4847fd){const _0xc7c0c5=_0x316a89(_0x4847fd);_0xc7c0c5&&_0xc7c0c5[_0x45d34d([0x61,0x6c,0x67])]==_0x45d34d([0x45,0x53,0x32,0x35,0x36])||(_0x2a31b5=!0x1);}async function _0x4297aa(_0x7e7a04,_0x4b60c8,_0x4c4d54){const _0x5e1728=window[_0x45d34d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x45d34d([0x66,0x72,0x6f,0x6d])](_0x433072(_0x4c4d54),_0x1c4c0a=>_0x1c4c0a[_0x45d34d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3ff0b2=new window[(_0x45d34d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x45d34d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x7e7a04+_0x45d34d([0x2e])+_0x4b60c8),_0x1a1dad=window[_0x45d34d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x45d34d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1a1dad)return;const _0xa3434a=await _0x1a1dad[_0x45d34d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x45d34d([0x6a,0x77,0x6b]),_0x1935be,{[_0x45d34d([0x6e,0x61,0x6d,0x65])]:_0x45d34d([0x45,0x43,0x44,0x53,0x41]),[_0x45d34d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x45d34d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x45d34d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1a1dad[_0x45d34d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x45d34d([0x6e,0x61,0x6d,0x65])]:_0x45d34d([0x45,0x43,0x44,0x53,0x41]),[_0x45d34d([0x68,0x61,0x73,0x68])]:{[_0x45d34d([0x6e,0x61,0x6d,0x65])]:_0x45d34d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xa3434a,_0x5e1728,_0x3ff0b2)||(_0x2a31b5=!0x1);}}function _0x316a89(_0x5a3792){return _0x5a3792[_0x45d34d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x45d34d([0x65,0x79]))?JSON[_0x45d34d([0x70,0x61,0x72,0x73,0x65])](_0x433072(_0x5a3792)):null;}function _0x433072(_0x2eba4e){return window[_0x45d34d([0x61,0x74,0x6f,0x62])](_0x2eba4e[_0x45d34d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x45d34d([0x2b]))[_0x45d34d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x45d34d([0x2f])));}function _0x4ce062(_0x2b95a5){let _0x3696d3=0x1505;function _0x2677b5(_0x213fe2){for(let _0x390017=0x0;_0x390017<_0x213fe2[_0x45d34d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x390017++){const _0x12cb97=_0x213fe2[_0x45d34d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x390017);_0x3696d3=(_0x3696d3<<0x5)+_0x3696d3+_0x12cb97,_0x3696d3&=_0x3696d3;}}function _0x4f5ebf(_0x18939c){Array[_0x45d34d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x18939c)?_0x18939c[_0x45d34d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4f5ebf):_0x18939c&&typeof _0x18939c==_0x45d34d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x45d34d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x18939c)[_0x45d34d([0x73,0x6f,0x72,0x74])]()[_0x45d34d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x31b36c,_0x2feb00])=>{_0x2677b5(_0x31b36c),_0x4f5ebf(_0x2feb00);}):_0x2677b5(window[_0x45d34d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x18939c));}return _0x4f5ebf(_0x2b95a5),_0x3696d3>>>0x0;}function _0x396552(_0x5c4aac){return _0x5c4aac[_0x45d34d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x45d34d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x45d34d([0x30]));}function _0x2d155c(_0x58cbdf){return _0x58cbdf[_0x45d34d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x45d34d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x45d34d([0x6a,0x6f,0x69,0x6e])]('');}function _0x2dedf2(_0x1dd8a6){return _0x9a2c65[_0x45d34d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x45d34d([0x68,0x61,0x73])](_0x1dd8a6);}function _0x3a094e(_0x36f9f6){return _0x9a2c65[_0x45d34d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x45d34d([0x67,0x65,0x74])](_0x36f9f6);}function _0x803057(){}function _0x45d34d(_0x5af861){return _0x5af861['map'](_0x331553=>String['fromCharCode'](_0x331553))['join']('');}_0x280af3(await _0x174b5f());}(this);}set['adapter'](_0x15fefd){if(this['_adapter'])throw new _0x5461fa('track-changes-adapter-already-set',this);this['_adapter']=_0x15fefd;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x368fdc=!0x1,toJSON:_0x3ad032=!0x1}={}){const _0x2d3d31=[];for(const _0x3be084 of this['_suggestions']['values']())_0x368fdc&&!_0x3be084['isInContent']||_0x2d3d31['push'](_0x3be084);return _0x3ad032?_0x2d3d31['map'](_0x2690cd=>_0x2690cd['toJSON']()):_0x2d3d31;}['getSuggestion'](_0x518207){const _0x3b0efd=this['_suggestions']['get'](_0x518207);if(!_0x3b0efd)throw new _0x5461fa('track-changes-suggestion-not-found',this);return _0x3b0efd;}['hasSuggestion'](_0x4a421c){return this['_suggestions']['has'](_0x4a421c);}['addSuggestionData'](_0x528077){const {authorId:_0xf65e3,id:_0x1333ec,originalSuggestionId:_0x2eac57,attributes:_0x3da20a}=_0x528077,[_0x23b3ad,_0x4628d0]=_0x528077['type']['split'](':'),_0xe07c11=this['_suggestions']['get'](_0x1333ec)||this['_createSuggestion'](_0x23b3ad,_0x4628d0,_0x1333ec,_0xf65e3,_0x3da20a,_0x2eac57);if(this['_addThreadToSuggestion'](_0xe07c11),this['_checkSuggestionCorrectness'](_0xe07c11,_0x23b3ad,_0x4628d0||null,_0xf65e3),_0xe07c11['createdAt']=_0x528077['createdAt'],_0xe07c11['_isDataLoaded']=!0x0,_0x3da20a&&_0x3da20a['@external']){const _0x3530d9=_0x3da20a['@external'],_0x1d9285=this['_getExternalAuthor'](_0x3530d9['authorName']);_0xe07c11['authoredAt']=_0x3530d9['createdAt'],_0xe07c11['author']=_0x1d9285,_0xe07c11['isExternal']=!0x0;}else _0xe07c11['authoredAt']=_0x528077['createdAt'];switch(_0x528077['data']&&(_0xe07c11['data']=_0x528077['data']),_0x528077['attributes']&&(_0xe07c11['attributes']=_0x528077['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xe07c11['_saved']=!0x0),this['_suggestionState']['get'](_0xe07c11)){case'notReady':this['_suggestionState']['set'](_0xe07c11,'dataReady');break;case'markerReady':_0xe07c11['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xe07c11])),this['_refreshSuggestionsChain'](new Set([_0xe07c11])),this['_suggestionState']['set'](_0xe07c11,'ready'),this['fire']('suggestionLoaded',_0xe07c11)):this['_suggestionState']['set'](_0xe07c11,'removed');}return _0xe07c11;}['acceptSuggestion'](_0x17144b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1c06d0 of _0x17144b['getAllAdjacentSuggestions']())_0x1c06d0['accept']();});});}['discardSuggestion'](_0x2af1f2){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x43c043 of _0x2af1f2['getAllAdjacentSuggestions']())_0x43c043['discard']();});});}['enableCommand'](_0x296ab1,_0x246bc5){const _0x220b1e=this['editor']['commands']['get'](_0x296ab1);if(!_0x220b1e)throw new _0x5461fa('track-changes-command-not-found',this,{'commandName':_0x296ab1});if(this['_enabledCommands']['has'](_0x220b1e))throw new _0x5461fa('track-changes-enable-command-twice',this,{'commandName':_0x296ab1});this['_enabledCommands']['add'](_0x220b1e),_0x246bc5&&_0x220b1e['on']('execute',(_0x117c39,_0x11bb54)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x11bb54['length']>0x0&&_0x11bb54[_0x11bb54['length']-0x1]&&_0x11bb54[_0x11bb54['length']-0x1]['forceDefaultExecution']?_0x11bb54['pop']():(_0x117c39['return']=_0x246bc5((..._0x110553)=>_0x220b1e['execute'](..._0x110553,{'forceDefaultExecution':!0x0}),..._0x11bb54),_0x117c39['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x314d5b){let _0x3aaebf,_0x464db8;const _0x565d2c=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3aaebf=_0x314d5b();}catch(_0x538634){_0x464db8=_0x538634;}return _0x565d2c||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x464db8&&_0x5461fa['rethrowUnexpectedError'](_0x464db8,this),_0x3aaebf;}['markInsertion'](_0x4160fb,_0x2f7398=null,_0x22fa80={}){if(_0x4160fb['isCollapsed'])return null;const _0x443570=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x22fa80['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5676bc,meta:_0x45237f}of this['_findSuggestions'](_0x4160fb,'insertion'))if(_0x45237f['isOwn']){if(!_0x45237f['isNextTo']){if(_0x45237f['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!oe(_0x5676bc,_0x22fa80))continue;return _0x5676bc;}if(oe(_0x5676bc,_0x22fa80))return _0x5676bc;this['_breakSuggestionMarker'](_0x5676bc,_0x4160fb['start'],_0x4160fb['end']);break;}if(_0x2f7398==_0x5676bc['subType']&&oe(_0x5676bc,_0x22fa80)){const _0x2a76fe=_0x5676bc['getFirstRange']();return _0x2a76fe['start']['isEqual'](_0x4160fb['end'])?this['_setSuggestionRange'](_0x5676bc,this['_model']['createRange'](_0x4160fb['start'],_0x2a76fe['end'])):this['_setSuggestionRange'](_0x5676bc,this['_model']['createRange'](_0x2a76fe['start'],_0x4160fb['end'])),_0x5676bc;}}const _0x51197b=_0x44bd93(),_0x562567=_0x443570['id'],_0x5dfd82=_0x2f7398?'insertion:'+_0x2f7398:'insertion',_0x2d2b2c=this['_setSuggestionData']({'id':_0x51197b,'type':_0x5dfd82,'createdAt':new Date(),'authorId':_0x562567,'attributes':_0x22fa80});return this['_addSuggestionMarker'](_0x5dfd82,_0x51197b,_0x562567,_0x4160fb),_0x2d2b2c;}['markMultiRangeInsertion'](_0x4d66f4,_0x4016d7='multi',_0x4ce780={}){const _0x5b8ca9=this['editor']['plugins']['get']('Users')['me'],_0x5e6a75=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4016d7,'join');this['_trackingSessionId']&&(_0x4ce780['trackingSessionId']=this['_trackingSessionId']);for(const _0x1b1eac of this['getSuggestions']())if(_0x1b1eac['author']['id']==_0x5b8ca9['id']&&'insertion'==_0x1b1eac['type']&&_0x1b1eac['subType']==_0x4016d7&&oe(_0x1b1eac,_0x4ce780)&&(_0x5e6a75(_0x1b1eac['getRanges'](),_0x4d66f4)||_0x5e6a75(_0x4d66f4,_0x1b1eac['getRanges']()))){for(const _0x4f7e47 of _0x4d66f4)_0x1b1eac['addRange'](_0x4f7e47);return _0x1b1eac;}for(const {suggestion:_0x62a61b,meta:_0x1fc8da}of this['_findSuggestions'](_0x4d66f4,'insertion')){if(!_0x1fc8da['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1fc8da['containsRangeInObject'])continue;if(!oe(_0x62a61b,_0x4ce780))continue;let _0x1351f1=!0x0;for(const _0x3734a1 of _0x62a61b['getRanges']())for(const _0x2dd836 of _0x4d66f4)if(!_0x3734a1['containsRange'](_0x2dd836)){_0x1351f1=!0x1;break;}if(_0x1351f1)return _0x62a61b;}const _0x261ac9=_0x44bd93(),_0x250339=_0x5b8ca9['id'],_0x285e98='insertion:'+_0x4016d7,_0x13217c=this['_setSuggestionData']({'id':_0x261ac9,'type':_0x285e98,'createdAt':new Date(),'authorId':_0x250339,'attributes':_0x4ce780});for(const _0x15a451 of _0x4d66f4)this['_addSuggestionMarker'](_0x285e98,_0x261ac9,_0x250339,_0x15a451,R['getMultiRangeId']());return _0x13217c;}['markInlineFormat'](_0x5947e9,_0x3951b7,_0x43bb14=null,_0xac212a={}){if(_0x43bb14=_0x43bb14||Qt(_0x3951b7),_0x5947e9['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0xac212a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x92c200=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x43bb14,'accept');return this['forceDefaultExecution'](()=>_0x92c200([_0x5947e9],_0x3951b7,_0xac212a)),null;}const _0x13536f=this['editor']['plugins']['get']('Users')['me'],_0x2387b1=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3bc7dd,meta:_0x167106}of this['_findSuggestions'](_0x5947e9,'insertion'))_0x167106['isOwn']&&!_0x167106['isInsideObject']&&_0x2387b1['push'](..._0x3bc7dd['getRanges']());}const _0x5625f5=function(_0x24258d,_0x4ee42f){const _0xba99b=[];for(const _0x350efe of _0x4ee42f){const _0x778352=_0x24258d['getIntersection'](_0x350efe);_0x778352&&_0xba99b['push'](_0x778352);}return _0xba99b;}(_0x5947e9,_0x2387b1),_0x502bab=function(_0x472dbb,_0xcb26bd){const _0x4572ef=[_0x472dbb];for(const _0x2f4843 of _0xcb26bd){let _0x5ca625=0x0;for(;_0x5ca625<_0x4572ef['length'];){const _0x5b3675=_0x4572ef[_0x5ca625]['getDifference'](_0x2f4843);_0x4572ef['splice'](_0x5ca625,0x1,..._0x5b3675),_0x5ca625+=_0x5b3675['length'];}}return _0x4572ef;}(_0x5947e9,_0x2387b1);_0x5625f5['length']&&this['_model']['change'](()=>{for(const _0x53e8f2 of _0x5625f5){const _0x1bcc70=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x43bb14,'accept');this['forceDefaultExecution'](()=>_0x1bcc70([_0x53e8f2],_0x3951b7,_0xac212a));}});for(const _0x31433d of _0x502bab){let _0x528e9f=null,_0x3f1b59=_0x31433d['start'],_0x2c4959=_0x31433d['end'];for(const {suggestion:_0x47daa4,meta:_0x584ccf}of this['_findSuggestions'](_0x31433d,'formatInline')){if(!_0x584ccf['isOwn'])continue;if(_0x47daa4['subType']!=_0x43bb14)continue;if(!oe(_0x47daa4,_0xac212a))continue;const _0x5692cb=_0x47daa4['getFirstRange']();if(_0x5692cb['containsRange'](_0x31433d,!0x0))return null;_0x3f1b59=_0x3f1b59['isBefore'](_0x5692cb['start'])?_0x3f1b59:_0x5692cb['start'],_0x2c4959=_0x2c4959['isAfter'](_0x5692cb['end'])?_0x2c4959:_0x5692cb['end'],_0x528e9f?_0x5692cb['start']['isBefore'](_0x528e9f['getFirstRange']()['start'])?(_0x528e9f['removeMarkers'](),_0x528e9f=_0x47daa4):_0x47daa4['removeMarkers']():_0x528e9f=_0x47daa4;}const _0x19059c=this['_model']['createRange'](_0x3f1b59,_0x2c4959);if(_0x528e9f)this['_setSuggestionRange'](_0x528e9f,_0x19059c);else{const _0xc04402=_0x44bd93(),_0x4bfff2=_0x13536f['id'];this['_setSuggestionData']({'id':_0xc04402,'type':'formatInline:'+_0x43bb14,'data':_0x3951b7,'createdAt':new Date(),'authorId':_0x4bfff2,'attributes':_0xac212a}),this['_addSuggestionMarker']('formatInline:'+_0x43bb14,_0xc04402,_0x4bfff2,_0x19059c);}}return null;}['markBlockFormat'](_0x4d5676,_0x2dd727,_0x5bb913=[],_0x36bf8e=null,_0xd5e771={}){_0x2dd727['formatGroupId']||(_0x2dd727['formatGroupId']=_0x2dd727['commandName']),_0x2dd727['multipleBlocks']=_0x4d5676['is']('range'),_0x36bf8e=_0x36bf8e||Qt(_0x2dd727);const _0x1399ee=_0x5bb913['map'](_0x4347da=>ie(_0x4347da,this['_model'])),_0x54cddc=_0x4d5676['is']('range')?_0x4d5676:ie(_0x4d5676,this['_model']);if(this['_trackingSessionId']&&(_0xd5e771['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4a9f75=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x36bf8e,'accept');return this['forceDefaultExecution'](()=>_0x4a9f75([_0x54cddc],_0x2dd727,_0xd5e771)),null;}_0x1399ee['push'](_0x54cddc);let _0xebb300=!0x0;for(const _0x269a6b of _0x1399ee)if(!this['_rangeIsInLocalUserInsertion'](_0x269a6b)){_0xebb300=!0x1;break;}if(_0xebb300&&'always'!==this['_trackFormatChanges']){const _0x47e663=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x36bf8e,'accept');return this['forceDefaultExecution'](()=>_0x47e663([_0x54cddc],_0x2dd727,_0xd5e771)),null;}let _0x5b7a3b=null,_0x4c7ba4=_0x54cddc['start'],_0x1d5d0b=_0x54cddc['end'];for(const {suggestion:_0x303433,meta:_0x401329}of this['_findSuggestions'](_0x54cddc,'formatBlock')){if(!_0x401329['isOwn'])continue;if(_0x401329['isNextTo']||_0x401329['containsRangeInObject']||_0x401329['isInsideObject'])continue;if(_0x303433['data']['formatGroupId']!=_0x2dd727['formatGroupId'])continue;if(!oe(_0x303433,_0xd5e771))continue;const _0x1359c7=_0x303433['getFirstRange']();if(_0x303433['subType']==_0x36bf8e){if(_0x1359c7['containsRange'](_0x54cddc,!0x0))return null;_0x4c7ba4=_0x4c7ba4['isBefore'](_0x1359c7['start'])?_0x4c7ba4:_0x1359c7['start'],_0x1d5d0b=_0x1d5d0b['isAfter'](_0x1359c7['end'])?_0x1d5d0b:_0x1359c7['end'],_0x5b7a3b?_0x1359c7['start']['isBefore'](_0x5b7a3b['getFirstRange']()['start'])?(_0x5b7a3b['removeMarkers'](),_0x5b7a3b=_0x303433):_0x303433['removeMarkers']():_0x5b7a3b=_0x303433;}else{const _0x9c36fb=_0x54cddc['getIntersection'](_0x1359c7);this['_cutOutSuggestionMarker'](_0x303433,_0x9c36fb);}}const _0x138cf6=this['editor']['plugins']['get']('Users')['me'],_0x2ae982=_0x44bd93(),_0x2ace23=_0x138cf6['id'];if(_0x5b7a3b)return this['_setSuggestionRange'](_0x5b7a3b,this['_model']['createRange'](_0x4c7ba4,_0x1d5d0b)),_0x5b7a3b;{const _0x18cde8=this['_setSuggestionData']({'id':_0x2ae982,'type':'formatBlock:'+_0x36bf8e,'data':_0x2dd727,'createdAt':new Date(),'authorId':_0x2ace23,'attributes':_0xd5e771});return this['_addSuggestionMarker']('formatBlock:'+_0x36bf8e,_0x2ae982,_0x2ace23,this['_model']['createRange'](_0x4c7ba4,_0x1d5d0b)),_0x18cde8;}}['markMultiRangeBlockFormat'](_0x561bc8,_0x111b7f,_0x4e182f=[],_0x30f3ba=null,_0x2e5230={}){_0x111b7f['formatGroupId']||(_0x111b7f['formatGroupId']=_0x111b7f['commandName']);const _0xf9c174=_0x561bc8[0x0];_0x111b7f['multipleBlocks']=_0xf9c174['is']('range'),_0x30f3ba=_0x30f3ba||Qt(_0x111b7f);const _0x5bbaa6=_0x4e182f['map'](_0x4e3c7c=>ie(_0x4e3c7c,this['_model'])),_0xd3525c=_0xf9c174['is']('range')?_0x561bc8:_0x561bc8['map'](_0x346e14=>ie(_0x346e14,this['_model']));if(this['_trackingSessionId']&&(_0x2e5230['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x31339b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x30f3ba,'accept');return this['forceDefaultExecution'](()=>_0x31339b(_0xd3525c,_0x111b7f,_0x2e5230)),null;}_0x5bbaa6['push'](..._0xd3525c);let _0x48b85b=!0x0;for(const _0x3b906e of _0x5bbaa6)if(!this['_rangeIsInLocalUserInsertion'](_0x3b906e)){_0x48b85b=!0x1;break;}if(_0x48b85b&&'always'!==this['_trackFormatChanges']){const _0x4a5903=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x30f3ba,'accept');return this['forceDefaultExecution'](()=>_0x4a5903(_0xd3525c,_0x111b7f,_0x2e5230)),null;}const _0x5203a5=this['editor']['plugins']['get']('Users')['me'];for(const _0xccaa08 of this['getSuggestions']()){const _0x285f5f=_0xccaa08['data'];if(_0xccaa08['author']['id']!=_0x5203a5['id'])continue;if('formatBlock'!=_0xccaa08['type']||_0x285f5f['formatGroupId']!=_0x111b7f['formatGroupId'])continue;if(!oe(_0xccaa08,_0x2e5230))continue;const _0x135bd6=_0xccaa08['subType']==_0x30f3ba;for(let _0x9cb082=0x0;_0x9cb082<_0xd3525c['length'];_0x9cb082++){const _0x42db3c=_0xd3525c[_0x9cb082];for(const _0x2c0365 of _0xccaa08['getMarkers']()){const _0xae8467=_0x2c0365['getRange']();if(_0x42db3c['isEqual'](_0xae8467)){_0x135bd6?(_0xd3525c['splice'](_0x9cb082,0x1),_0x9cb082--):_0xccaa08['removeMarker'](_0x2c0365['name']);break;}}}}if(0x0==_0xd3525c['length'])return null;const _0x34e5a9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x30f3ba,'join');for(const _0x542867 of this['getSuggestions']()){const _0x48d441=_0x542867['data'];if(_0x542867['author']['id']==_0x5203a5['id']&&('formatBlock'==_0x542867['type']&&_0x48d441['formatGroupId']==_0x111b7f['formatGroupId']&&_0x542867['subType']==_0x30f3ba&&oe(_0x542867,_0x2e5230)&&(_0x34e5a9(_0x542867['getRanges'](),_0xd3525c)||_0x34e5a9(_0xd3525c,_0x542867['getRanges']())))){for(const _0x27a5df of _0xd3525c)_0x542867['addRange'](_0x27a5df);return _0x542867;}}const _0x436f83=_0x44bd93(),_0x239561=_0x5203a5['id'],_0x318dbc='formatBlock:'+_0x30f3ba,_0x43ccf4=this['_setSuggestionData']({'id':_0x436f83,'type':_0x318dbc,'data':_0x111b7f,'createdAt':new Date(),'authorId':_0x239561,'attributes':_0x2e5230});for(const _0x11872a of _0xd3525c)this['_addSuggestionMarker'](_0x318dbc,_0x436f83,_0x239561,_0x11872a,R['getMultiRangeId']());return _0x43ccf4;}['markDeletion'](_0x22b550,_0x3f9849=null,_0x1258a9={}){if(_0x22b550['isCollapsed'])return null;const _0x4830c2=this['editor']['plugins']['get']('Users')['me'],_0x4b53ee=new _0x20ab11(_0x22b550['start'],_0x22b550['end']);this['_trackingSessionId']&&(_0x1258a9['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x58f1d0,meta:_0xe76e98}of this['_findSuggestions'](_0x4b53ee,'insertion'))if(_0xe76e98['isOwn']&&!_0xe76e98['isNextTo']){if(_0x58f1d0['isMultiRange']){const _0x30d90e=_0x58f1d0['getRanges']()['filter'](_0x2f823f=>'$graveyard'!=_0x2f823f['root']['rootName']);_0x30d90e['every'](_0x26f78e=>_0x4b53ee['containsRange'](_0x26f78e,!0x0))&&_0x58f1d0['discard']();if(_0x30d90e['some'](_0x258baf=>_0x258baf['containsRange'](_0x4b53ee,!0x0))){const _0x2392c7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3f9849,'accept');return this['forceDefaultExecution'](()=>_0x2392c7([_0x4b53ee],null,_0x1258a9)),null;}}else{const _0x4a50cf=_0x4b53ee['getIntersection'](_0x58f1d0['getFirstRange']());null!==_0x4a50cf&&_0x58f1d0['_onDiscard']([_0x4a50cf],null,_0x1258a9);}}if(_0x4b53ee['detach'](),_0x4b53ee['isCollapsed']||'$graveyard'==_0x4b53ee['root']['rootName'])return null;let _0xa482c8=null,_0x5aadf3=_0x4b53ee['start'],_0x384d6d=_0x4b53ee['end'];const _0x18e29e=this['_findSuggestions'](_0x4b53ee,'deletion');for(const {suggestion:_0x3bfba9,meta:_0x2c864c}of _0x18e29e){const _0x3d653d=this['_model']['createRange'](_0x5aadf3,_0x384d6d);if(_0x2c864c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2c864c['containsRangeInObject']&&!_0x2c864c['isInsideObject'])){if(_0x3bfba9['isMultiRange']){if(!oe(_0x3bfba9,_0x1258a9))continue;let _0x2ecff1=!0x0;for(const _0x5f16b5 of _0x3bfba9['getRanges']()){if(_0x5f16b5['containsRange'](_0x3d653d,!0x0))return _0x3bfba9;_0x3d653d['containsRange'](_0x5f16b5)||(_0x2ecff1=!0x1);}_0x2ecff1&&_0x3bfba9['discard']();}else{const _0x19bf39=_0x3bfba9['getFirstRange']();if(_0x19bf39['containsRange'](_0x3d653d,!0x0))return _0x3bfba9;if(!oe(_0x3bfba9,_0x1258a9)){_0x3d653d['containsRange'](_0x19bf39)?_0x3bfba9['removeMarkers']():_0x19bf39['containsPosition'](_0x5aadf3)?_0x5aadf3=_0x19bf39['end']:_0x19bf39['containsPosition'](_0x384d6d)&&(_0x384d6d=_0x19bf39['start']);continue;}_0x5aadf3=_0x5aadf3['isBefore'](_0x19bf39['start'])?_0x5aadf3:_0x19bf39['start'],_0x384d6d=_0x384d6d['isAfter'](_0x19bf39['end'])?_0x384d6d:_0x19bf39['end'],_0x1258a9=Object['assign']({},_0x3bfba9['attributes']),_0xa482c8?_0x19bf39['start']['isBefore'](_0xa482c8['getFirstRange']()['start'])?(_0xa482c8['removeMarkers'](),_0xa482c8=_0x3bfba9):_0x3bfba9['removeMarkers']():_0xa482c8=_0x3bfba9;}}}if(_0xa482c8)return this['_setSuggestionRange'](_0xa482c8,this['_model']['createRange'](_0x5aadf3,_0x384d6d)),_0xa482c8;{const _0x11e960=_0x44bd93(),_0x4cafd4=this['_model']['createRange'](_0x5aadf3,_0x384d6d),_0x500c72=_0x4830c2['id'],_0x458fa3=_0x3f9849?'deletion:'+_0x3f9849:'deletion',_0x10a775=this['_setSuggestionData']({'id':_0x11e960,'type':_0x458fa3,'createdAt':new Date(),'authorId':_0x500c72,'attributes':_0x1258a9});return this['_addSuggestionMarker'](_0x458fa3,_0x11e960,_0x500c72,_0x4cafd4),_0x10a775;}}['markMultiRangeDeletion'](_0x200c32,_0x5d3023='multi',_0x1a0261={}){const _0x2b4f6c=this['editor']['plugins']['get']('Users')['me'],_0x29f2ab=_0x200c32['map'](_0x31abd4=>new _0x20ab11(_0x31abd4['start'],_0x31abd4['end'])),_0x51d480=new Set();this['_trackingSessionId']&&(_0x1a0261['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1b37ca,meta:_0x900987}of this['_findSuggestions'](_0x29f2ab,'insertion'))_0x900987['isOwn']&&!_0x900987['isNextTo']&&_0x51d480['add'](_0x1b37ca);for(const _0x4e9195 of _0x51d480)if(_0x4e9195['isMultiRange']){const _0x3cb771=_0x4e9195['getRanges']();(!_0x4e9195['attributes']||!_0x4e9195['attributes']['skipNestingCheck'])&&(_0x3cb771['every'](_0x1503a6=>_0x29f2ab['some'](_0x32c8eb=>_0x32c8eb['containsRange'](_0x1503a6,!0x0)))&&_0x4e9195['discard']());if(_0x29f2ab['every'](_0x398d70=>_0x3cb771['some'](_0x10e844=>_0x10e844['containsRange'](_0x398d70,!0x0)))){const _0x19eec1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5d3023,'accept');return this['forceDefaultExecution'](()=>_0x19eec1(_0x200c32,null,_0x1a0261)),null;}}else{const _0x44fdc6=_0x4e9195['getFirstRange']();_0x29f2ab['some'](_0x31d5a4=>_0x31d5a4['containsRange'](_0x44fdc6,!0x0))&&_0x4e9195['discard']();if(_0x29f2ab['every'](_0x3bc4c8=>_0x44fdc6['containsRange'](_0x3bc4c8,!0x0))){const _0x3473ce=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5d3023,'accept');return this['forceDefaultExecution'](()=>_0x3473ce(_0x29f2ab,null,_0x1a0261)),null;}}const _0x3807dd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5d3023,'join');let _0x23a356=null;for(const _0x33bf64 of this['getSuggestions']())if(_0x33bf64['author']['id']==_0x2b4f6c['id']&&_0x33bf64['isInContent']&&'deletion'==_0x33bf64['type']&&_0x33bf64['subType']==_0x5d3023&&oe(_0x33bf64,_0x1a0261)&&(_0x3807dd(_0x33bf64['getRanges'](),_0x29f2ab)||_0x3807dd(_0x29f2ab,_0x33bf64['getRanges']()))){if(_0x23a356){if(_0x33bf64['commentThread']&&_0x33bf64['commentThread']['length'])continue;for(const _0x5db6f4 of _0x33bf64['getRanges']())_0x23a356['isIntersectingWithRange'](_0x5db6f4)||_0x23a356['addRange'](_0x5db6f4);_0x33bf64['removeMarkers']();}else{_0x23a356=_0x33bf64;for(const _0x2f7b2c of _0x29f2ab)_0x33bf64['isIntersectingWithRange'](_0x2f7b2c)||_0x33bf64['addRange'](_0x2f7b2c);}}if(_0x23a356)return _0x23a356;_0x51d480['clear']();for(const {suggestion:_0x10bd0c,meta:_0x103f8d}of this['_findSuggestions'](_0x29f2ab,'deletion'))_0x103f8d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x103f8d['containsRangeInObject']&&!_0x103f8d['isInsideObject'])&&oe(_0x10bd0c,_0x1a0261)&&_0x51d480['add'](_0x10bd0c);for(const _0x42b94b of _0x51d480){const _0x3f7d5f=_0x42b94b['getRanges']();if(!_0x1a0261||!_0x1a0261['skipNestingCheck']){if(_0x29f2ab['every'](_0x4a4b96=>_0x3f7d5f['some'](_0x32e444=>_0x32e444['containsRange'](_0x4a4b96,!0x0))))return _0x42b94b;}(!_0x42b94b['attributes']||!_0x42b94b['attributes']['skipNestingCheck'])&&(_0x3f7d5f['every'](_0x2239df=>_0x29f2ab['some'](_0x77afba=>_0x77afba['containsRange'](_0x2239df,!0x0)))&&_0x42b94b['discard']());}const _0x5b7461=_0x44bd93(),_0x2a6ab0=_0x2b4f6c['id'],_0x3685cd='deletion:'+_0x5d3023,_0x23e228=this['_setSuggestionData']({'id':_0x5b7461,'type':_0x3685cd,'createdAt':new Date(),'authorId':_0x2a6ab0,'attributes':_0x1a0261});for(const _0x148f65 of _0x29f2ab)_0x148f65['detach'](),_0x148f65['isCollapsed']||'$graveyard'==_0x148f65['root']['rootName']||this['_addSuggestionMarker'](_0x3685cd,_0x5b7461,_0x2a6ab0,_0x148f65,R['getMultiRangeId']());return _0x23e228;}['markAttributeChange'](_0xa58c44,_0x34be3a,_0x95c4a2,_0x3f9806,_0x22806f){if(_0xa58c44['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xd573bb=this['editor']['plugins']['get']('Users')['me']['id'],_0x55a27a=Array['from'](this['_suggestions']['values']())['filter'](_0xc90acc=>'attribute'==_0xc90acc['type']&&_0xc90acc['data']['key']==_0x34be3a&&_0xc90acc['isIntersectingWithRange'](_0xa58c44));if(this['_trackingSessionId']&&(_0x22806f['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x915720=this['_findSuggestions'](_0xa58c44,'insertion')['filter'](({meta:_0x36f1b4})=>_0x36f1b4['isOwn']&&!_0x36f1b4['isInsideObject']&&!_0x36f1b4['isNextTo'])['map'](({suggestion:_0xb7e86})=>_0xb7e86);_0x55a27a['unshift'](..._0x915720);}const _0x150e13=new Map([[_0xa58c44,_0x95c4a2]]);for(const _0x3360ac of _0x55a27a){const _0x12aa9f='attribute'==_0x3360ac['type']?_0x3360ac['data']['oldValue']:void 0x0,_0x5aa220=_0x3360ac['getFirstRange'](),_0x5f3aea=Array['from'](_0x150e13['keys']())['find'](_0x39b5b2=>_0x39b5b2['isIntersecting'](_0x5aa220));if(!_0x5f3aea)continue;const _0xfa768a=_0x5f3aea['getDifference'](_0x5aa220);this['_isBlockAttribute'](_0x34be3a)&&'insertion'==_0x3360ac['type']&&0x0!=_0xfa768a['length']||(_0x150e13['delete'](_0x5f3aea),_0xfa768a['forEach'](_0x1cec5f=>{_0x150e13['set'](_0x1cec5f,_0x95c4a2);}),'insertion'!=_0x3360ac['type']&&_0x12aa9f!=_0x3f9806&&_0x150e13['set'](_0x5f3aea['getIntersection'](_0x5aa220),_0x12aa9f));}const _0x7f8b24=[];for(const [_0x4f7f23,_0x26d515]of _0x150e13){const _0xd4be74=_0x44bd93(),_0x4452c7={'key':_0x34be3a,'oldValue':_0x26d515,'newValue':_0x3f9806};_0x34be3a['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':_0x34be3a});const _0x849901=('attribute:'+(_0x34be3a+'|'+Qt({'newValue':_0x3f9806})))['substring'](0x0,0x3c),_0x11f56b=this['_setSuggestionData']({'id':_0xd4be74,'type':_0x849901,'data':_0x4452c7,'createdAt':new Date(),'authorId':_0xd573bb,'attributes':_0x22806f});_0x7f8b24['push'](_0x11f56b),this['_addSuggestionMarker'](_0x849901,_0xd4be74,_0xd573bb,_0x4f7f23);}return _0x7f8b24;}['enableDefaultAttributesIntegration'](_0x38665e){this['enableCommand'](_0x38665e,(_0x503bc7,..._0x2ac839)=>{this['recordAttributeChanges'](()=>{_0x503bc7(..._0x2ac839);});});}['registerBlockAttribute'](_0x2d70c3){this['_blockAttributeKeys']['add'](_0x2d70c3);}['registerInlineAttribute'](_0xb20ab4){this['_inlineAttributeKeys']['add'](_0xb20ab4);}['startTrackingSession'](_0x979aea){return this['_trackingSessionId']=void 0x0!==_0x979aea?_0x979aea:_0x44bd93(),this['_trackingSessionId'];}['_getAttributeKey'](_0x4490ec){return'attribute'==_0x4490ec['type']?ae(_0x4490ec['subType']):null;}['_applyOperationsAsSuggestions'](_0x28ff50){if(0x0==_0x28ff50['length'])return;const _0x3eadbd=this['editor'],_0xa59c3b=_0x3eadbd['plugins']['get'](_0x3125cc);let _0x31560d,_0x225b40=!0x0;for(const _0x2b871f in _0x28ff50[0x0]){const _0x5580f4=_0x28ff50[0x0][_0x2b871f];if((_0x5580f4 instanceof _0x1e0b34||_0x5580f4 instanceof _0x24312f)&&_0x5580f4['root']['is']('documentFragment')){_0x225b40=!0x1,_0x31560d=_0x5580f4['root'];break;}}_0x3eadbd['model']['change'](_0x3c80d6=>{const _0x3b0d19=new Set();for(let _0xe6abbd=0x0;_0xe6abbd<_0x28ff50['length'];_0xe6abbd++){const _0x422267=_0x28ff50[_0xe6abbd];if(_0x422267['baseVersion']=_0x225b40?_0x3eadbd['model']['document']['version']:null,_0x422267['isDocumentOperation']=_0x225b40,_0xa59c3b['isMarkedRemoveOperation'](_0x422267)){const _0x281598=te(_0x422267['newRange'],_0x3eadbd['model']);if(_0x225b40)this['markDeletion'](_0x281598);else{const _0x15c2cf='suggestion:deletion:'+_0x44bd93()+':$aiSuggestion';_0x31560d['markers']['set'](_0x15c2cf,_0x281598);}}else switch(_0x422267['type']){case'rename':{const _0x4491e6=_0x422267['oldName'],_0x4458b7=_0x422267['newName'];if(_0x4491e6==_0x4458b7)break;_0x3c80d6['batch']['addOperation'](_0x422267),_0x3eadbd['model']['applyOperation'](_0x422267);const _0x1f60ca='$elementName',_0xdb68ac=_0x422267['position'],_0x120458=_0x3eadbd['model']['createRange'](_0xdb68ac,_0x3eadbd['model']['createPositionAt'](_0xdb68ac['nodeAfter'],'end'));if(_0x225b40)this['markAttributeChange'](_0x120458,_0x1f60ca,_0x4491e6,_0x4458b7,{'groupId':_0x44bd93()});else{const _0x2d9295='suggestion:attribute:'+_0x1f60ca+':'+_0x44bd93()+':$aiSuggestion';_0x31560d['markers']['set'](_0x2d9295,_0x120458);}break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x53dc5e=_0x422267['oldValue'],_0x111949=_0x422267['newValue'];if(_0x53dc5e==_0x111949)break;_0x3c80d6['batch']['addOperation'](_0x422267),_0x3eadbd['model']['applyOperation'](_0x422267);const _0x272406=_0x422267['key'];if(!this['_isRegisteredAttribute'](_0x272406))break;const _0x174de6=te(_0x422267['range'],_0x3eadbd['model']);if(_0x225b40)this['markAttributeChange'](_0x174de6,_0x272406,_0x53dc5e,_0x111949,{'groupId':_0x44bd93()});else{const _0x451a78='suggestion:attribute:'+_0x272406+':'+_0x44bd93()+':$aiSuggestion';_0x31560d['markers']['set'](_0x451a78,_0x174de6);}break;}case'insert':{_0x3c80d6['batch']['addOperation'](_0x422267),_0x3eadbd['model']['applyOperation'](_0x422267);const _0x207369=_0x28ff50[_0xe6abbd+0x1]&&'move'==_0x28ff50[_0xe6abbd+0x1]['type'];if(!_0x225b40&&_0x207369&&ce(_0x31560d,_0x422267),_0x207369)break;const _0xd91ca2=_0x422267['position'],_0x4c0261=_0x422267['howMany'],_0x1cf704=te(_0x3eadbd['model']['createRange'](_0xd91ca2,_0xd91ca2['getShiftedBy'](_0x4c0261)),_0x3eadbd['model']);if(_0x225b40)this['markInsertion'](_0x1cf704);else{const _0x3b17f5='suggestion:insertion:'+_0x44bd93()+':$aiSuggestion';_0x31560d['markers']['set'](_0x3b17f5,_0x1cf704);}break;}case'split':{_0x3c80d6['batch']['addOperation'](_0x422267),_0x3eadbd['model']['applyOperation'](_0x422267);const _0x2394fe=_0x422267['splitPosition'],_0x3df1ac=_0x422267['moveTargetPosition'],_0x75fdf8=_0x3eadbd['model']['createRange'](_0x2394fe,_0x3df1ac);if(_0x225b40)this['markInsertion'](_0x3eadbd['model']['createRange'](_0x2394fe,_0x3df1ac));else{const _0x432e62='suggestion:insertion:'+_0x44bd93()+':$aiSuggestion';_0x31560d['markers']['set'](_0x432e62,_0x75fdf8);}break;}case'move':if(_0x3c80d6['batch']['addOperation'](_0x422267),_0x3eadbd['model']['applyOperation'](_0x422267),!_0x225b40&&_0x28ff50[_0xe6abbd-0x1]&&'insert'==_0x28ff50[_0xe6abbd-0x1]['type']&&ce(_0x31560d,_0x422267),!_0x225b40){const _0x1d10de=_0x422267['getMovedRangeStart'](),_0x3e6e88=_0x422267['howMany'];for(let _0x14ad44=0x0;_0x14ad44<_0x3e6e88;_0x14ad44++){const _0x17c485=_0x1d10de['getShiftedBy'](_0x14ad44)['nodeAfter'];_0x3b0d19['add'](_0x17c485);}}break;case'remove':if(_0x225b40)_0x3c80d6['batch']['addOperation'](_0x422267),_0x3eadbd['model']['applyOperation'](_0x422267);else{const _0x5d6bda=_0x422267['sourcePosition'],_0x5cd5b3=_0x422267['howMany'],_0xc361c6=new _0x4124bf(_0x5d6bda,_0x5cd5b3);_0x3c80d6['batch']['addOperation'](_0xc361c6),_0x3eadbd['model']['applyOperation'](_0xc361c6);}}}for(const _0x48a28f of _0x3b0d19){const _0x36ed45=_0x3eadbd['model']['createRangeOn'](_0x48a28f),_0x2c725e='suggestion:formatBlock:$fakeWrap:'+_0x44bd93()+':$aiSuggestion';_0x31560d['markers']['set'](_0x2c725e,te(_0x36ed45,_0x3eadbd['model']));}});}['_setSuggestionRange'](_0x4e9698,_0x81408a){const _0x1a4fad=_0x4e9698['getFirstMarker']();this['_model']['change'](_0x19c870=>{_0x19c870['updateMarker'](_0x1a4fad,{'range':_0x81408a});});}['_addThreadToSuggestion'](_0x3639a8){const _0x2a26bf=_0x3639a8['id'],_0x563e99=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2a26bf)||this['_commentsRepository']['addCommentThread']({'channelId':_0x563e99,'threadId':_0x2a26bf,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3e445f=this['_commentsRepository']['getCommentThread'](_0x2a26bf);_0x3e445f['unbind']('isRemovable'),_0x3e445f['isRemovable']=!0x1,_0x3639a8['commentThread']=_0x3e445f;}['_checkSuggestionCorrectness'](_0x3dffa0,_0x4fdbe4,_0x42338c,_0xc087b3){if(_0x3dffa0['type']!=_0x4fdbe4||_0x3dffa0['subType']!=_0x42338c||_0x3dffa0['creator']['id']!=_0xc087b3)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5461fa('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xbd8c59,_0x45cfb9){const _0x542f40=_0xbd8c59['getFirstRange']();if(_0x45cfb9['isEqual'](_0x542f40))_0xbd8c59['removeMarkers']();else{if(_0x542f40['containsRange'](_0x45cfb9)){const _0x41133b=this['_model']['createPositionAt'](_0x45cfb9['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xbd8c59,this['_model']['createRange'](_0x542f40['start'],_0x41133b));const _0x5ed859=_0x44bd93(),_0x5202d8=_0xbd8c59['creator']['id'],_0x53d280=_0xbd8c59['type']+':'+_0xbd8c59['subType'];this['_setSuggestionData']({'id':_0x5ed859,'type':_0x53d280,'createdAt':new Date(),'authorId':_0x5202d8,'data':_0xbd8c59['data'],'attributes':_0xbd8c59['attributes']});const _0x4338cf=this['_model']['createPositionAt'](_0x45cfb9['end']['parent'],'after'),_0x2f21e4=this['_model']['createRange'](_0x4338cf,_0x542f40['end']);this['_addSuggestionMarker'](_0x53d280,_0x5ed859,_0x5202d8,_0x2f21e4);}else{if(_0x542f40['containsPosition'](_0x45cfb9['start'])){const _0x335b26=this['_model']['createPositionAt'](_0x45cfb9['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xbd8c59,this['_model']['createRange'](_0x542f40['start'],_0x335b26));}else{const _0x500f1c=this['_model']['createPositionAt'](_0x45cfb9['end']['parent'],'after');this['_setSuggestionRange'](_0xbd8c59,this['_model']['createRange'](_0x500f1c,_0x542f40['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x45a541){for(const {suggestion:_0x4a9faf,meta:_0x39f3c0}of this['_findSuggestions'](_0x45a541,'insertion')){if(!_0x39f3c0['isOwn'])continue;const _0xf48231=_0x4a9faf['getRanges']();for(const _0x1dbbc9 of _0xf48231)if(!_0x45a541['getDifference'](_0x1dbbc9)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x7e6513){return this['editor']['plugins']['get']('Users')['getUser'](_0x7e6513);}['_getExternalAuthor'](_0x1e661d){const _0x336ada=this['editor']['plugins']['get']('Users'),_0x23ce06=_0x222a18('external:'+_0x1e661d),_0x48968f=_0x336ada['getUser'](_0x23ce06);return _0x48968f||_0x336ada['addUser']({'id':_0x23ce06,'name':_0x1e661d});}['_createSuggestion'](_0x422f90,_0x464450,_0x47792c,_0x586e53,_0x46b52c,_0x559c34){const _0x532ab3=this['_getAuthorFromId'](_0x586e53);if(!_0x532ab3)throw new _0x5461fa('track-changes-user-not-found',this,{'authorId':_0x586e53,'suggestionId':_0x47792c});const _0x463b58=this['_suggestionFactory']['buildSuggestion'](_0x422f90,_0x464450,_0x47792c,_0x532ab3,_0x46b52c,_0x5f441d=>{this['_updateSuggestionData'](_0x47792c,{'attributes':_0x5f441d});const _0x479b3a=this['getSuggestion'](_0x47792c);this['_joinWithAdjacentSuggestions'](new Set([_0x479b3a])),this['_refreshSuggestionsChain'](new Set([_0x479b3a]));},_0x559c34);return this['listenTo'](_0x463b58,'accept',()=>{this['_updateSuggestionData'](_0x47792c,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x463b58,'discard',()=>{this['_updateSuggestionData'](_0x47792c,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x47792c,_0x463b58),this['_suggestionState']['set'](_0x463b58,'notReady'),_0x463b58;}['_splitMarkerName'](_0x776116){const _0x5d76f3=_0x776116['split'](':');return{'group':_0x5d76f3[0x0],'type':_0x5d76f3[0x1],'subType':_0x5d76f3['length']>=0x5?_0x5d76f3[0x2]:null,'id':_0x5d76f3['length']<0x5?_0x5d76f3[0x2]:_0x5d76f3[0x3],'authorId':_0x5d76f3['length']<0x5?_0x5d76f3[0x3]:_0x5d76f3[0x4],'markerCount':0x6==_0x5d76f3['length']?_0x5d76f3[0x5]:null};}['_breakSuggestionMarker'](_0x29b25d,_0x162e4b,_0x2ae7eb){const _0x2a8813=_0x29b25d['getFirstRange'](),_0x58b3dc=_0x2a8813['start'],_0x2280af=_0x2a8813['end'];this['_setSuggestionRange'](_0x29b25d,this['_model']['createRange'](_0x58b3dc,_0x162e4b));const _0xd1b073=_0x44bd93(),_0x49484a=_0x29b25d['creator']['id'],_0x2de916=_0x29b25d['type']+(_0x29b25d['subType']?':'+_0x29b25d['subType']:'');this['_setSuggestionData']({'id':_0xd1b073,'type':_0x2de916,'createdAt':new Date(),'authorId':_0x49484a,'originalSuggestionId':_0x29b25d['_originalSuggestionId']||_0x29b25d['id'],'attributes':_0x29b25d['attributes'],'data':_0x29b25d['data']});const _0x10cb80=this['_getAttributeKey'](_0x29b25d);('formatBlock'==_0x29b25d['type']||_0x10cb80&&this['_isBlockAttribute'](_0x10cb80))&&(_0x2ae7eb=this['_model']['createPositionBefore'](_0x2ae7eb['parent'])),this['_addSuggestionMarker'](_0x2de916,_0xd1b073,_0x49484a,this['_model']['createRange'](_0x2ae7eb,_0x2280af));}['_findSuggestions'](_0x47bcd2,_0x5a289b=null){const _0x484f56=[],_0x5b429a=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x47bcd2)||(_0x47bcd2=[_0x47bcd2]);for(const _0x4c608c of this['getSuggestions']()){if(!_0x4c608c['isInContent'])continue;if(_0x5a289b&&_0x4c608c['type']!=_0x5a289b)continue;let _0x11ebaf=!0x1;for(const _0xe758b3 of _0x4c608c['getRanges']()){for(const _0x5139cc of _0x47bcd2){const _0x102db4=_0x5139cc['start']['isEqual'](_0xe758b3['end'])||_0x5139cc['end']['isEqual'](_0xe758b3['start']);if(_0x102db4||_0x5139cc['getIntersection'](_0xe758b3)){const _0x44fd57=_0x5139cc['containsRange'](_0xe758b3)&&Ht(this['_model']['schema'],_0xe758b3['start'],_0x5139cc),_0x4046a9=_0xe758b3['containsRange'](_0x5139cc)&&Ht(this['_model']['schema'],_0x5139cc['start'],_0xe758b3);_0x484f56['push']({'suggestion':_0x4c608c,'meta':{'isOwn':_0x5b429a==_0x4c608c['author'],'isNextTo':_0x102db4,'isInsideObject':_0x44fd57,'containsRangeInObject':_0x4046a9}}),_0x11ebaf=!0x0;break;}}if(_0x11ebaf)break;}}return _0x484f56;}['_addSuggestionMarker'](_0x22c128,_0x33f55e,_0x9e9f32,_0x43e53e,_0x51d23a){this['_model']['change'](_0xa39ad3=>{let _0x47bbf5='suggestion:'+_0x22c128+':'+_0x33f55e+':'+_0x9e9f32;_0x51d23a&&(_0x47bbf5=_0x47bbf5+':'+_0x51d23a),_0xa39ad3['addMarker'](_0x47bbf5,{'range':_0x43e53e,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4b161c){const _0x481c71=_0x4b161c['previous'],_0x51640e=_0x4b161c['next'];_0x4b161c['previous']=null,_0x4b161c['next']=null,null!=_0x481c71&&_0x481c71['next']==_0x4b161c&&(_0x481c71['next']=_0x51640e),null!=_0x51640e&&_0x51640e['previous']==_0x4b161c&&(_0x51640e['previous']=_0x481c71),'ready'==this['_suggestionState']['get'](_0x4b161c)&&(this['_suggestionState']['set'](_0x4b161c,'removed'),this['fire']('suggestionUnloaded',_0x4b161c,_0x481c71,_0x51640e));}['_setSuggestionData'](_0x5e95fd){const _0x4da064=_0x5e95fd['id'],_0x4169bc=this['addSuggestionData'](_0x5e95fd);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x100427=this['editor']['plugins']['get']('PendingActions'),_0x157863=_0x4169bc['hasComments'],_0xbf66ed=_0x4169bc['subType']?_0x4169bc['type']+':'+_0x4169bc['subType']:_0x4169bc['type'],_0x254449=this['editor']['locale'],_0xa8e8ce=_0x100427['add'](o(_0x254449,'PENDING_ACTION_SUGGESTION')),_0x56c7e9={'id':_0x4da064,'type':_0xbf66ed,'hasComments':_0x157863,'data':_0x5e95fd['data']||null,'originalSuggestionId':_0x5e95fd['originalSuggestionId']||null,'attributes':_0x4169bc['attributes']};this['_adapter']['addSuggestion'](_0x56c7e9)['then'](_0x55d162=>{_0x4169bc['_saved']=!0x0,_0x100427['remove'](_0xa8e8ce),_0x55d162&&_0x55d162['createdAt']&&(this['_suggestions']['get'](_0x4da064)['createdAt']=_0x55d162['createdAt']);})['catch'](_0x165870=>{throw _0x96b213('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4169bc['discard']();}),_0x4169bc['stopListening'](),this['_suggestions']['delete'](_0x4169bc['id']),this['_suggestionState']['delete'](_0x4169bc),_0x165870;});}return _0x4169bc;}['_isBlockAttribute'](_0x2c4174){return this['_blockAttributeKeys']['has'](_0x2c4174);}['_isInlineAttribute'](_0x24787b){return this['_inlineAttributeKeys']['has'](_0x24787b);}['_updateSuggestionData'](_0x1a7106,_0x18258c){const _0x5e8e37=this['editor']['plugins']['get']('PendingActions'),_0x279b4b=this['getSuggestion'](_0x1a7106);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x279b4b['_saved']){const _0x40ba82=_0x5e8e37['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1a7106,_0x18258c)['then'](()=>{_0x5e8e37['remove'](_0x40ba82);});}else _0x279b4b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1a7106,_0x18258c);});}}['_getSuggestionData'](_0x2cfa74){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5461fa('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2cfa74);}['_handleNewSuggestionMarker'](_0x51cfa1){const {id:_0x3cdd0e,type:_0x241ea0,subType:_0x576e0a,authorId:_0x5914a9}=this['_splitMarkerName'](_0x51cfa1),_0x44cb7e=this['_suggestions']['get'](_0x3cdd0e)||this['_createSuggestion'](_0x241ea0,_0x576e0a,_0x3cdd0e,_0x5914a9,{});switch(this['_checkSuggestionCorrectness'](_0x44cb7e,_0x241ea0,_0x576e0a,_0x5914a9),this['_suggestionState']['get'](_0x44cb7e)){case'notReady':this['_getSuggestionData'](_0x3cdd0e)['then'](_0x2ba9f5=>{let _0x42d113=Promise['resolve']();_0x2ba9f5['hasComments']&&(_0x42d113=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3cdd0e})),_0x42d113['then'](()=>{this['addSuggestionData'](_0x2ba9f5)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x44cb7e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3cdd0e,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x44cb7e,'ready'),this['fire']('suggestionLoaded',_0x44cb7e);break;case'ready':this['fire']('suggestionChanged',_0x44cb7e);}return _0x44cb7e['addMarkerName'](_0x51cfa1),_0x44cb7e;}['_refreshSuggestionsChain'](_0x180925){const _0x3f9d7b=Array['from'](_0x180925),_0x4e7280=_0x3f9d7b['filter'](_0x113ce4=>'attribute'==_0x113ce4['type']);this['_refreshAttributeSuggestionsChain'](_0x4e7280);const _0x318b97=_0x3f9d7b['filter'](_0x45ce8a=>!_0x45ce8a['isMultiRange']&&'attribute'!=_0x45ce8a['type']),_0x5a6399=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2d1493=>!_0x2d1493['isMultiRange']&&'attribute'!=_0x2d1493['type']),_0x46f2da=_0x5a6399['filter'](_0x4ff3dc=>!_0x180925['has'](_0x4ff3dc)),_0x49ddd1=new Map(_0x5a6399['map'](_0x2b0c68=>[_0x2b0c68,this['_suggestionFactory']['getSuggestionCallback'](_0x2b0c68['type'],_0x2b0c68['subType'],'chain')])),_0x2d1a9e=new Map(_0x5a6399['map'](_0x456916=>[_0x456916,_0x456916['getFirstRange']()])),_0x1fd983=new Set(),_0x1e19c1=new Set();for(let _0x4acc7d=0x0;_0x4acc7d<_0x318b97['length'];_0x4acc7d++)_0x3255ff(_0x318b97[_0x4acc7d],_0x318b97,_0x4acc7d+0x1);for(let _0x1d019c=0x0;_0x1d019c<_0x318b97['length'];_0x1d019c++)_0x3255ff(_0x318b97[_0x1d019c],_0x46f2da,0x0);const _0x42cc56=new Set();for(let _0x5131ec=0x0;_0x5131ec<_0x318b97['length'];_0x5131ec++){const _0x2d5001=_0x318b97[_0x5131ec];!_0x1e19c1['has'](_0x2d5001)&&_0x2d5001['previous']&&(_0x42cc56['add'](_0x2d5001['previous']),_0x2d5001['previous']['next']===_0x2d5001&&(_0x2d5001['previous']['next']=null),_0x2d5001['previous']=null),!_0x1fd983['has'](_0x2d5001)&&_0x2d5001['next']&&(_0x42cc56['add'](_0x2d5001['next']),_0x2d5001['next']['previous']===_0x2d5001&&(_0x2d5001['next']['previous']=null),_0x2d5001['next']=null);}function _0x3255ff(_0x5e4b2d,_0x56de44,_0x11fd0a){for(let _0x372979=_0x11fd0a;_0x372979<_0x56de44['length'];_0x372979++){const _0x327f7d=_0x4e02d1(_0x5e4b2d,_0x56de44[_0x372979]);_0x327f7d&&(_0x327f7d[0x0]['next']=_0x327f7d[0x1],_0x327f7d[0x1]['previous']=_0x327f7d[0x0],_0x1fd983['add'](_0x327f7d[0x0]),_0x1e19c1['add'](_0x327f7d[0x1]));}}function _0x4e02d1(_0x21c4d6,_0x5ec50f){if(_0x21c4d6['author']['id']!==_0x5ec50f['author']['id'])return null;const _0x1195b8=_0x49ddd1['get'](_0x21c4d6)(_0x21c4d6,_0x5ec50f,_0x2d1a9e['get'](_0x21c4d6),_0x2d1a9e['get'](_0x5ec50f));if(!_0x1195b8)return null;return _0x49ddd1['get'](_0x5ec50f)(_0x21c4d6,_0x5ec50f,_0x2d1a9e['get'](_0x21c4d6),_0x2d1a9e['get'](_0x5ec50f))?_0x1195b8[0x1]['commentThread']&&_0x1195b8[0x1]['commentThread']['length']?null:_0x1195b8:null;}_0x42cc56['size']&&this['_refreshSuggestionsChain'](_0x42cc56);}['_refreshAttributeSuggestionsChain'](_0x2fb7fe){if(0x0==_0x2fb7fe['length'])return;const _0x131e1d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x38867a=>'attribute'==_0x38867a['type']&&_0x38867a['_isDataLoaded']),_0x37fe33=[],_0x4f7c54=new Map();for(const _0x2f45ce of _0x131e1d){const _0x4ed9ed=_0x222a18(_0x2f45ce['attributes']);_0x4f7c54['has'](_0x4ed9ed)||(_0x4f7c54['set'](_0x4ed9ed,_0x37fe33['length']),_0x37fe33['push']([]));const _0x16402b=_0x4f7c54['get'](_0x4ed9ed);_0x37fe33[_0x16402b]['push'](_0x2f45ce);}!(function(){_0x37fe33['sort']((_0xf30977,_0x3ae3dc)=>{const _0x310142=_0xf30977[0x0]['createdAt'],_0x37be4b=_0x3ae3dc[0x0]['createdAt'];return _0x310142==_0x37be4b?_0xf30977[0x0]['attributes']['groupId']<_0x3ae3dc[0x0]['attributes']['groupId']?-0x1:0x1:_0x310142<_0x37be4b?-0x1:0x1;});for(const _0x108f9a of _0x37fe33)_0x108f9a['sort']((_0x374b34,_0xd2e00f)=>_0x374b34['id']<_0xd2e00f['id']?-0x1:0x1);}());for(let _0x5948d3=0x0;_0x5948d3<_0x37fe33['length'];_0x5948d3++){if(0x0==_0x37fe33[_0x5948d3]['length'])continue;const _0x5568ed=[];for(let _0x4d4702=_0x5948d3+0x1;_0x4d4702<_0x37fe33['length'];_0x4d4702++)0x0!=_0x37fe33[_0x4d4702]['length']&&_0x3e67d4(_0x37fe33[_0x5948d3],_0x37fe33[_0x4d4702])&&_0x5568ed['push'](_0x4d4702);for(const _0x4cd706 of _0x5568ed)_0x37fe33[_0x5948d3]=_0x37fe33[_0x5948d3]['concat'](_0x37fe33[_0x4cd706]),_0x37fe33[_0x4cd706]=[];}for(const _0xffa319 of _0x37fe33)for(let _0x57b284=0x0;_0x57b284<_0xffa319['length'];_0x57b284++){const _0x1d55ed=_0xffa319[_0x57b284+0x1]||null;_0xffa319[_0x57b284]['next']!==_0x1d55ed&&(_0xffa319[_0x57b284]['next']=_0x1d55ed);}for(const _0x2eb373 of _0x37fe33)for(let _0x4777ae=0x0;_0x4777ae<_0x2eb373['length'];_0x4777ae++){const _0x422c3a=_0x2eb373[_0x4777ae-0x1]||null;_0x2eb373[_0x4777ae]['previous']!==_0x422c3a&&(_0x2eb373[_0x4777ae]['previous']=_0x422c3a);}function _0x3e67d4(_0x151098,_0xd3486d){if(_0x151098[0x0]['attributes']['groupId']!==_0xd3486d[0x0]['attributes']['groupId']&&_0x151098[0x0]['author']!==_0xd3486d[0x0]['author'])return!0x1;if(!function(_0x4edb46,_0x12e7b5){if(!_0x4edb46['hasComments']&&!_0x12e7b5['hasComments'])return!0x0;if(_0x4edb46['hasComments']&&_0x12e7b5['hasComments'])return!0x1;if(_0x4edb46['hasComments']&&_0x12e7b5['createdAt']<_0x4edb46['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x12e7b5['hasComments']&&_0x4edb46['createdAt']<_0x12e7b5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x151098[0x0],_0xd3486d[0x0]))return!0x1;const _0x533030=Kt(_0x151098[0x0]['attributes'],['groupId','trackingSessionId']),_0x2c1ff9=Kt(_0xd3486d[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x4f4b7f(_0x533030,_0x2c1ff9))return!0x1;if(_0x151098[0x0]['attributes']['groupId']==_0xd3486d[0x0]['attributes']['groupId'])return!0x0;if(_0x151098[0x0]['attributes']['trackingSessionId']!==_0xd3486d[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x151098['every'](_0x358998=>_0xd3486d['some'](_0x38f716=>_0x358998['getFirstRange']()['isEqual'](_0x38f716['getFirstRange']())))&&_0xd3486d['every'](_0x15baa5=>_0x151098['some'](_0x233b8f=>_0x15baa5['getFirstRange']()['isEqual'](_0x233b8f['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x44d105){const _0x5ea9f6=Array['from'](_0x44d105),_0xa77e02=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5a53d2=_0xa77e02['filter'](_0x22c1f3=>!_0x44d105['has'](_0x22c1f3)),_0x2abe46=new Map(_0x5ea9f6['map'](_0x5c11a3=>[_0x5c11a3,this['_suggestionFactory']['getSuggestionCallback'](_0x5c11a3['type'],_0x5c11a3['subType'],'join')])),_0x2fa408=new Map(_0xa77e02['map'](_0x3c480a=>[_0x3c480a,_0x3c480a['getRanges']()]));for(let _0x50c2b3=0x0;_0x50c2b3<_0x5ea9f6['length'];_0x50c2b3++){if(_0x1700a3(this,_0x5ea9f6[_0x50c2b3],_0x5ea9f6,_0x50c2b3+0x1))return!0x0;}for(let _0x45e385=0x0;_0x45e385<_0x5ea9f6['length'];_0x45e385++){if(_0x1700a3(this,_0x5ea9f6[_0x45e385],_0x5a53d2,0x0))return!0x0;}return!0x1;function _0x1700a3(_0x3cc3e6,_0xaf4cf1,_0x5a9aa2,_0x370f46){for(let _0x4b5719=_0x370f46;_0x4b5719<_0x5a9aa2['length'];_0x4b5719++){const _0xa44602=_0x5a9aa2[_0x4b5719];if(_0xa44602['type']!==_0xaf4cf1['type']||_0xa44602['author']['id']!==_0xaf4cf1['author']['id']||_0xa44602['subType']!==_0xaf4cf1['subType'])continue;if(!se(_0xaf4cf1,_0xa44602))continue;if('attribute'==_0xaf4cf1['type']&&_0xaf4cf1['data']['oldValue']!=_0xa44602['data']['oldValue'])continue;if('attribute'==_0xaf4cf1['type']&&_0x3cc3e6['_isBlockAttribute'](_0xaf4cf1['data']['key']))continue;if('formatBlock'==_0xaf4cf1['type']){const _0x5332=_0x3cc3e6['editor']['model'],_0x1b81d0=_0xaf4cf1['getContainedElement']();if(_0x1b81d0&&(_0x5332['schema']['isObject'](_0x1b81d0)||_0x5332['schema']['isLimit'](_0x1b81d0)))continue;}const _0x4ee7d1=_0x2abe46['get'](_0xaf4cf1),_0x47fbcd=_0x2fa408['get'](_0xaf4cf1),_0x2aa9ef=_0x2fa408['get'](_0xa44602),_0x5cdaa8=_0xaf4cf1['commentThread']&&_0xaf4cf1['commentThread']['length'],_0x46d697=_0xa44602['commentThread']&&_0xa44602['commentThread']['length'];if(!_0x5cdaa8&&_0x4ee7d1(_0x2aa9ef,_0x47fbcd))return _0x3cc3e6['_joinSuggestions'](_0xa44602,_0xaf4cf1),_0x2fa408['delete'](_0xaf4cf1),!0x0;if(!_0x46d697&&_0x4ee7d1(_0x47fbcd,_0x2aa9ef))return _0x3cc3e6['_joinSuggestions'](_0xaf4cf1,_0xa44602),_0x2fa408['delete'](_0xa44602),!0x0;}return!0x1;}}['_joinSuggestions'](_0x24dc66,_0x309b6c){if(_0x24dc66['isMultiRange']){for(const _0x4b8e0a of _0x309b6c['getRanges']())_0x24dc66['addRange'](_0x4b8e0a);}else{const _0x10d1e4=_0x309b6c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x24dc66,this['_model']['createRange'](_0x24dc66['getFirstRange']()['start'],_0x10d1e4));}_0x309b6c['removeMarkers']();}['_getMarkerAnnouncementText'](_0x24793e,_0x14c764,_0x3be31f){const _0x343511=_0x24793e['startsWith']('format')||_0x24793e['startsWith']('attribute')?'FORMATTING':_0x24793e['toUpperCase']();return o(this['editor']['locale'],_0x14c764+'_'+_0x343511+'_SUGGESTION_ANNOUNCEMENT',_0x3be31f);}['_initAriaMarkerChangeAnnouncements'](){const _0x2997c2=this['editor'];if(!_0x2997c2['ui'])return;const {ariaLiveAnnouncer:_0x1d05e3}=_0x2997c2['ui'];_0x366d24(this['_model'],({left:_0x4d4f82,entered:_0x22fb01})=>{for(const _0x2fb5bb of _0x4d4f82){const {group:_0x570f22,type:_0x5ecd5a}=this['_splitMarkerName'](_0x2fb5bb['name']);if('suggestion'===_0x570f22){_0x1d05e3['announce'](this['_getMarkerAnnouncementText'](_0x5ecd5a,'LEAVE'));break;}}for(const _0x2b55b5 of _0x22fb01){const {group:_0x4a5933,type:_0x3e13f4}=this['_splitMarkerName'](_0x2b55b5['name']);if('suggestion'===_0x4a5933){_0x1d05e3['announce'](this['_getMarkerAnnouncementText'](_0x3e13f4,'ENTER',_0x50e5a6(_0x47d8b6)));break;}}});}['_processAttributeChanges'](_0x1807c5){if(this['_recordAttributeSuggestions'])return!0x1;const _0xa27b4=this['editor'],_0x2a69bd=_0xa27b4['model']['document']['differ']['getChanges']();if(0x0==_0x2a69bd['length'])return!0x1;const _0x34ddbb=[],_0x4cfa12=_0x2a69bd['filter'](_0x437757=>'attribute'==_0x437757['type']),_0x4f624a=_0x2a69bd['filter'](_0x31640a=>'insert'==_0x31640a['type']&&'$text'!=_0x31640a['name']),_0x1f898a=_0x2a69bd['filter'](_0x49e5bb=>'remove'==_0x49e5bb['type']&&'$text'!=_0x49e5bb['name']);for(const _0x313d18 of _0x4cfa12)_0x34ddbb['push']({'key':_0x313d18['attributeKey'],'newValue':_0x313d18['attributeNewValue'],'oldValue':_0x313d18['attributeOldValue'],'range':ee(_0x313d18['range'],_0xa27b4['model'])});for(const _0x1c31ac of _0x4f624a){const _0x178386=_0x1f898a['find'](_0x161805=>_0x161805['position']['isEqual'](_0x1c31ac['position']));_0x178386&&_0x34ddbb['push']({'key':m,'newValue':_0x1c31ac['name'],'oldValue':_0x178386['name'],'range':_0xa27b4['model']['createRangeOn'](_0x1c31ac['position']['nodeAfter'])});}return 0x0!=_0x34ddbb['length']&&this['_reduceExistingSuggestions'](_0x1807c5,_0x34ddbb);}['_processAttributeSuggestions'](_0x10fe99){let _0x4b4a4e=!0x1;const _0x39f874=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x17c18a=>_0x17c18a['data']['newRange']&&_0x17c18a['name']['startsWith']('suggestion:attribute:'));for(const _0x23e451 of _0x39f874){const {subType:_0x15b0ac,id:_0x587660}=this['_splitMarkerName'](_0x23e451['name']),_0x33fd29=_0x15b0ac['split']('|')[0x0];for(const _0x10fbe3 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x10fbe3['id']!=_0x587660&&'attribute'==_0x10fbe3['type']&&_0x10fbe3['data']&&_0x10fbe3['data']['key']==_0x33fd29&&_0x10fbe3['getFirstRange']()['isIntersecting'](_0x23e451['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x10fbe3,_0x23e451['data']['newRange'],_0x10fe99),_0x4b4a4e=!0x0);}return _0x4b4a4e;}['recordAttributeChanges'](_0x7a537e){this['_recordAttributeSuggestions']=!0x0,_0x7a537e();}['_isRegisteredAttribute'](_0x31baa6){const _0x38c29f=this['_isBlockAttribute'](_0x31baa6),_0x209c74=this['_isInlineAttribute'](_0x31baa6);return _0x38c29f||_0x209c74;}['_reduceExistingSuggestions'](_0x38eb84,_0x331b75){if(0x0==_0x331b75['length'])return!0x1;let _0x3ece0d=!0x1;for(const _0x55e165 of _0x331b75){const _0x3ce7b5=this['_findSuggestions'](_0x55e165['range'],'attribute')['filter'](_0x3fbf59=>!_0x3fbf59['meta']['isNextTo'])['map'](_0x5346c7=>_0x5346c7['suggestion']),_0x190e6a=_0x222a18({'newValue':_0x55e165['newValue']});_0x3ce7b5['filter'](_0x13b617=>{const [_0x4e3aa9,_0x51870a]=_0x13b617['subType']['split']('|');return _0x4e3aa9==_0x55e165['key']&&_0x51870a!=_0x190e6a;})['forEach'](_0x4d6e3a=>{this['_reduceSuggestionAttributeRange'](_0x4d6e3a,_0x55e165['range'],_0x38eb84),_0x3ece0d=!0x0;});}return _0x3ece0d;}['_reduceSuggestionAttributeRange'](_0x3fb69a,_0x1ee040,_0x16ba4e){const _0x42f924=_0x3fb69a['getFirstRange']()['getDifference'](_0x1ee040);0x0!==_0x42f924['length']?0x1!==_0x42f924['length']?this['_breakSuggestionMarker'](_0x3fb69a,_0x1ee040['start'],_0x1ee040['end']):this['_setSuggestionRange'](_0x3fb69a,_0x42f924[0x0]):_0x16ba4e['removeMarker'](_0x3fb69a['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xaf7754){this['_editor']=_0xaf7754,this['_model']=_0xaf7754['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x29b35e,_0x174e61,_0x2cfa94,_0xa0d7af,_0xef7a03,_0x202a8a,_0x1ca9ee){return new R(this['_model'],{'type':_0x29b35e,'subType':_0x174e61,'id':_0x2cfa94,'originalSuggestionId':_0x1ca9ee,'author':_0xa0d7af,'creator':_0xa0d7af,'attributes':_0xef7a03,'onAttributesChange':_0x202a8a,'onAccept':(..._0x40cc7c)=>this['getSuggestionCallback'](_0x29b35e,_0x174e61,'accept')(..._0x40cc7c),'onDiscard':(..._0x203898)=>this['getSuggestionCallback'](_0x29b35e,_0x174e61,'discard')(..._0x203898)});}['registerCustomCallback'](_0x1d8e47,_0x294e16,_0x294cb7,_0x2a5711){const _0x1ea2cb=_0x1d8e47+':'+_0x294e16+':'+_0x294cb7;this['_customCallbacks']['set'](_0x1ea2cb,_0x2a5711);}['getSuggestionCallback'](_0x3ae070,_0x2c9945,_0x112ae5){const _0x3caf02=_0x3ae070+':'+_0x2c9945+':'+_0x112ae5;return this['_customCallbacks']['get'](_0x3caf02)||this['_defaultCallbacks']['get'](_0x3ae070+':'+_0x112ae5);}['_registerDefaultCallbacks'](){const _0x192c2e=()=>!0x1,_0x28d864=_0xf65bf0=>{_0xf65bf0['sort']((_0x65a9f1,_0x281a42)=>_0x65a9f1['start']['isBefore'](_0x281a42['start'])?0x1:-0x1),this['_model']['change'](_0x4e673a=>{for(const _0x16bac8 of _0xf65bf0){let _0x21f40c;_0x21f40c=_0x16bac8['end']['isAtEnd']&&_0x16bac8['end']['parent']==_0x16bac8['start']['nodeAfter']?_0x4e673a['createSelection'](_0x16bac8['start']['nodeAfter'],'on'):_0x4e673a['createSelection'](_0x16bac8),this['_model']['deleteContent'](_0x21f40c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x19791e=(_0x41c926,_0x1fa744)=>{_0x1fa744&&this['_model']['change'](_0x283381=>{const {commandName:_0x2e4c05,commandParams:_0x26df97=[]}=_0x1fa744,_0x136435=_0x41c926['map'](_0x4dc7cf=>(Wt(_0x4dc7cf)&&(_0x4dc7cf=this['_model']['createRange'](_0x4dc7cf['end'])),_0x4dc7cf))['filter'](_0x4dd609=>'$graveyard'!==_0x4dd609['root']['rootName']);if(_0x136435['length']<0x1)return;const _0x126995=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2c91f7=>_0x20ab11['fromRange'](_0x2c91f7));_0x283381['setSelection'](_0x136435);for(const _0x4b1258 of this['_editor']['commands']['commands']())_0x4b1258['refresh']();_0x26df97['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2e4c05,..._0x26df97);const _0x29f430=_0x126995['filter'](_0x3f1e3e=>'$graveyard'!=_0x3f1e3e['root']['rootName']);_0x29f430['length']>0x0&&_0x283381['setSelection'](_0x29f430);for(const _0x58e3e7 of _0x126995)_0x58e3e7['detach']();});},_0x2c963b=(_0x12ad69,_0x159f27)=>0x1==_0x12ad69['length']&&0x1==_0x159f27['length']&&_0x12ad69[0x0]['end']['isEqual'](_0x159f27[0x0]['start']),_0x42fb57=(_0x33b304,_0x281fe7,_0x5e4667,_0x4883b2)=>ne(_0x33b304,_0x281fe7,_0x5e4667,_0x4883b2)?[_0x33b304,_0x281fe7]:ne(_0x281fe7,_0x33b304,_0x4883b2,_0x5e4667)?[_0x281fe7,_0x33b304]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x192c2e),this['_defaultCallbacks']['set']('insertion:discard',_0x28d864),this['_defaultCallbacks']['set']('insertion:join',_0x2c963b),this['_defaultCallbacks']['set']('insertion:chain',_0x42fb57),this['_defaultCallbacks']['set']('deletion:accept',_0x28d864),this['_defaultCallbacks']['set']('deletion:discard',_0x192c2e),this['_defaultCallbacks']['set']('deletion:join',_0x2c963b),this['_defaultCallbacks']['set']('deletion:chain',_0x42fb57),this['_defaultCallbacks']['set']('formatInline:accept',_0x19791e),this['_defaultCallbacks']['set']('formatInline:discard',_0x192c2e),this['_defaultCallbacks']['set']('formatInline:join',_0x2c963b),this['_defaultCallbacks']['set']('formatInline:chain',_0x192c2e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x19791e),this['_defaultCallbacks']['set']('formatBlock:discard',_0x192c2e),this['_defaultCallbacks']['set']('formatBlock:join',_0x2c963b),this['_defaultCallbacks']['set']('formatBlock:chain',_0x192c2e),this['_defaultCallbacks']['set']('attribute:accept',_0x192c2e),this['_defaultCallbacks']['set']('attribute:discard',(_0x24c22e,_0x187189)=>{if(!_0x187189)return;const _0x5f0f6c=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x5a715f=>{if(_0x187189['key']==m)for(const _0xc02f47 of _0x24c22e){const _0x517399=_0xc02f47['start']['nodeAfter'],_0x27db2b=_0x187189['oldValue'];_0x5a715f['rename'](_0x517399,_0x27db2b);}else{if(_0x5f0f6c['_isBlockAttribute'](_0x187189['key'])){for(const _0xd2840 of _0x24c22e)void 0x0!==_0x187189['oldValue']?_0x5a715f['setAttribute'](_0x187189['key'],_0x187189['oldValue'],_0xd2840['start']['nodeAfter']):_0x5a715f['removeAttribute'](_0x187189['key'],_0xd2840['start']['nodeAfter']);}else{for(const _0x448d98 of _0x24c22e)_0x187189['oldValue']?_0x5a715f['setAttribute'](_0x187189['key'],_0x187189['oldValue'],_0x448d98):_0x5a715f['removeAttribute'](_0x187189['key'],_0x448d98);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2c963b);}}function Ht(_0x11f471,_0x52d15f,_0x1e5c5e){for(const _0x293729 of _0x52d15f['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x293729['root']==_0x293729)return!0x1;if(!_0x1e5c5e['containsItem'](_0x293729))return!0x1;if(_0x11f471['isObject'](_0x293729)||_0x11f471['isLimit'](_0x293729))return!0x0;}return!0x1;}function Wt(_0xbc3d0d){return _0xbc3d0d['end']['parent']==_0xbc3d0d['start']['nodeAfter']&&_0xbc3d0d['end']['isAtStart'];}function zt(_0x2a9079,_0x2e666e,_0x983022,_0xed7fd5){const _0x19eb7d=_0x50985a=>!_0x50985a['item']['is']('$textProxy')&&!_0xed7fd5['isObject'](_0x50985a['item']),_0x6a85ac=_0x2a9079['start']['getLastMatchingPosition'](_0x19eb7d),_0x37e966=_0x2a9079['end']['getLastMatchingPosition'](_0x19eb7d,{'direction':'backward'});return(!_0x2a9079['start']['isEqual'](_0x6a85ac)||!_0x2a9079['end']['isEqual'](_0x37e966))&&(_0x6a85ac['isBefore'](_0x37e966)?_0x983022['updateMarker'](_0x2e666e,{'range':_0x983022['createRange'](_0x6a85ac,_0x37e966)}):_0x983022['removeMarker'](_0x2e666e),!0x0);}function Qt(_0x268746){return _0x222a18(_0x268746);}function Xt(_0x551980){const _0x3c805d=_0x551980['start']['nodeAfter'];return _0x3c805d&&_0x3c805d['is']('element');}function Yt(_0x312d4b){return Wt(_0x312d4b)||function(_0x802f7f){return _0x802f7f['start']['parent']==_0x802f7f['end']['nodeBefore']&&_0x802f7f['start']['isAtEnd'];}(_0x312d4b);}function Zt(_0x1cfe50,_0x19ecc4){try{const _0x13b4ec=_0x1cfe50['getRange']();for(const _0x517807 of _0x19ecc4)if(_0x1cfe50!==_0x517807&&_0x13b4ec&&_0x13b4ec['isIntersecting'](_0x517807['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function te(_0x406ecd,_0x251f75){const _0x31a179=_0x406ecd['end']['nodeBefore'];if(_0x31a179&&_0x31a179['is']('element')&&_0x251f75['schema']['isBlock'](_0x31a179)&&!_0x251f75['schema']['isObject'](_0x31a179)){const _0x347da3=_0x251f75['createPositionAt'](_0x31a179,'end');return _0x251f75['createRange'](_0x406ecd['start'],_0x347da3);}return _0x406ecd;}function ee(_0x273220,_0x2a80e3){return null==_0x273220['end']['nodeBefore']&&_0x273220['end']['parent']==_0x273220['start']['nodeAfter']?ie(_0x273220['start']['nodeAfter'],_0x2a80e3):_0x273220;}function ie(_0xc27b9c,_0x44b2c3){const _0x81de59=_0x44b2c3['schema']['isObject'](_0xc27b9c)||_0x44b2c3['schema']['isSelectable'](_0xc27b9c);return _0x44b2c3['createRange'](_0x44b2c3['createPositionAt'](_0xc27b9c,'before'),_0x81de59?_0x44b2c3['createPositionAfter'](_0xc27b9c):_0x44b2c3['createPositionAt'](_0xc27b9c,'end'));}function ne(_0x194430,_0x10fb21,_0x2070ce,_0x574e37){return!!se(_0x194430,_0x10fb21)&&_0x2070ce['end']['isEqual'](_0x574e37['start']);}function se(_0x2dd0c7,_0x2af59b){if(!_0x2dd0c7['_isDataLoaded']||!_0x2af59b['_isDataLoaded'])return!0x1;const _0x6733e8=new Set(Object['keys'](_0x2dd0c7['attributes'])),_0x4335a9=new Set(Object['keys'](_0x2af59b['attributes']));if(_0x6733e8['delete']('groupId'),_0x4335a9['delete']('groupId'),0x0==_0x6733e8['size']&&0x0==_0x4335a9['size'])return!0x0;if(_0x6733e8['size']!=_0x4335a9['size'])return!0x1;const _0x16cfd9={..._0x2dd0c7['attributes']},_0xffb3ae={..._0x2af59b['attributes']};return delete _0x16cfd9['groupId'],delete _0xffb3ae['groupId'],JSON['stringify'](_0x16cfd9)==JSON['stringify'](_0xffb3ae);}function oe(_0x17c66e,_0x348bd8){const _0x38cb7e=re(_0x17c66e['attributes']),_0xccec88=re(_0x348bd8);if(!_0x17c66e['_isDataLoaded'])return!0x1;for(const _0x125f54 of Object['keys'](_0xccec88))if(!_0x4f4b7f(_0x38cb7e[_0x125f54],_0xccec88[_0x125f54]))return!0x1;return!0x0;}function re(_0x3dc170){const _0x170222=Object['assign']({},_0x3dc170);return delete _0x170222['skipNestingCheck'],delete _0x170222['tablePasteChainId'],_0x170222;}function ae(_0x38ffcb){return _0x38ffcb['split']('|')[0x0];}function ce(_0x5be7c5,_0x5d09a6){for(const [_0x4b1e4d,_0x16805f]of _0x5be7c5['markers']){const _0x43eddc=_0x24312f['_createFromRanges'](_0x16805f['getTransformedByOperation'](_0x5d09a6));_0x5be7c5['markers']['set'](_0x4b1e4d,_0x43eddc);}}class xe extends/* #__PURE__ -- @preserve */
26
+ _0x47874a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x56fcf7,_0x350f4e,_0x29263a,_0x306b19){super(),this['model']=_0x350f4e,this['view']=_0x29263a,this['commentThreadController']=_0x306b19,this['_editor']=_0x56fcf7,this['_acceptCommand']=_0x56fcf7['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x56fcf7['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x10664d,_0x410426)=>_0x10664d||_0x410426),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4b76d1=>_0x4b76d1&&this['_editor']['model']['canEditAt'](_0x350f4e['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x32219b=>_0x32219b&&this['_editor']['model']['canEditAt'](_0x350f4e['getRanges']())),this['_pendingAction']=null,_0x29263a['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x29263a,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x29263a,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x29263a,'change:isDirty',()=>{_0x29263a['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 _0x5c40fe=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5c40fe);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x309bed{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x162a8a,_0x21b6e6,_0x56c65a,_0x1b2e18){super(_0x162a8a),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3295d5(_0x162a8a,o(_0x162a8a,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x21b6e6['authoredAt']),this['bind']('authoredAt')['to'](_0x21b6e6),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x21b6e6,'authoredAt',this,'descriptionParts',(_0x4fe3a5,_0x335f91,_0x2a895e)=>{const _0x59a934=_0x2a895e['map'](_0x3a6046=>ls(_0x3a6046['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4fe3a5-0x1,_0x21b6e6['author']['name'],_0x335f91?_0x1b2e18['formatDateTime'](_0x335f91):'',new DOMParser()['parseFromString'](_0x59a934,'text/html')['body']['textContent']]);}),this['focusables']=new _0x311900(),this['focusTracker']=new _0x383c63(),this['keystrokes']=new _0xf9e600(),this['focusCycler']=new _0x19bb73({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1ba06d=>_0x1ba06d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x21b6e6,this['_localUser']=_0x56c65a,this['_config']=_0x1b2e18,_0x1b2e18['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5aa7a7(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x175ec0}=this['_config'];this['commentsListView']=new _0x175ec0(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',_0x4a3d28=>_0x4a3d28+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x58e6a1,_0x377c42)=>_0x58e6a1||!!_0x377c42);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x287293}=this['_config'],_0x22b3d0=new _0x287293(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x26d4a9=_0x22b3d0['commentInputView'];return _0x22b3d0['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x26d4a9,'value',(_0x5cfaa1,_0x5cf1d2,_0x15c3dd)=>!!_0x15c3dd||_0x5cfaa1&&!_0x5cf1d2),_0x26d4a9['on']('submit',(_0x52ba49,_0x366b8c)=>{this['fire']('addComment',_0x366b8c),_0x26d4a9['editor']['setData']('');}),_0x26d4a9['on']('cancel',()=>this['focus']()),_0x26d4a9['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x22b3d0;}}class Ae extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x5a28bd,_0xc2e8a,_0x4051f4,_0x167d18){super(_0x5a28bd,_0xc2e8a,_0x4051f4,_0x167d18),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4b5095=>_0x4b5095&&_0x4b5095[0x0]?_0x4b5095[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4d34bd,_0xc77450)=>{let _0x3b7af7='';for(const _0x20cd62 of _0x4d34bd)_0x3b7af7+='<p>'+ls(_0x20cd62['content'],_0x20cd62['color'])+'</p>';return _0xc77450?_0x3b7af7:_0x21b578(_0x3b7af7,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x167d18['SuggestionView'](_0x5a28bd,_0xc2e8a,{'formatDateTime':_0x167d18['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x3a00bd=this['bindTemplate'],_0x67ce0d=[this['suggestionView']];return this['commentsListView']&&_0x67ce0d['push'](this['commentsListView']),this['commentThreadInputView']&&_0x67ce0d['push'](this['commentThreadInputView']),_0x67ce0d['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3a00bd['if']('isActive','ck-suggestion-wrapper--active'),_0x3a00bd['to']('type',_0x1581ff=>'ck-suggestion-'+_0x1581ff),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':0x0,'role':'listitem','aria-label':_0x3a00bd['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x67ce0d};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class Ee extends _0x309bed{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x323c67,_0x29d2da,_0x30974a){super(_0x323c67),this['_model']=_0x29d2da,this['_config']=_0x30974a,this['set']('description',''),this['bind']('authoredAt')['to'](_0x29d2da),this['acceptButton']=this['_createButton'](o(_0x323c67,'Accept\x20suggestion'),_0x823a24,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x323c67,'Discard\x20suggestion'),_0x39c7fa,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1b856d(_0x323c67,_0x29d2da['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x311900([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x383c63(),this['keystrokes']=new _0xf9e600(),this['focusCycler']=new _0x19bb73({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x365301=>_0x365301['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x513917=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x513917['innerHTML']=this['description'],this['on']('change:description',(_0x3c9e4d,_0x29de3b,_0x4cd074)=>{_0x513917['innerHTML']=_0x4cd074;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x59fe6e=this['bindTemplate'],_0xa18e09=[{'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'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x59fe6e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x59fe6e['to']('authoredAt',_0x4e691f=>this['_config']['formatDateTime'](_0x4e691f))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0xa18e09['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0xa18e09}]};}['focus'](){this['element']['focus']();}['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;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x27d39e,_0x4a7b95,_0x4d61b7,_0x2ade56,_0x187a5b){const _0x41edc4=new _0x5cc4df(this['locale']);return _0x41edc4['set']({'label':_0x27d39e,'icon':_0x4a7b95,'tooltip':!0x0,'tooltipPosition':_0x187a5b}),_0x41edc4['extendTemplate']({'attributes':{'class':_0x4d61b7}}),_0x41edc4['on']('execute',()=>{this['fire'](_0x2ade56,this['_model']['id']);}),_0x41edc4;}['_setupKeyboardNavigation'](){const _0x6eac8a=this['element'];this['keystrokes']['listenTo'](_0x6eac8a);for(const _0x1a2373 of this['focusables'])this['focusTracker']['add'](_0x1a2373['element']),this['keystrokes']['listenTo'](_0x1a2373['element']);this['keystrokes']['set']('enter',(_0x563198,_0x370827)=>{_0x6eac8a===_0x563198['target']&&(this['focusCycler']['focusFirst'](),_0x370827());}),this['keystrokes']['set']('esc',(_0x5b2fa8,_0x297a09)=>{_0x6eac8a!==_0x5b2fa8['target']&&(this['focus'](),_0x297a09());});}}class u extends _0x442276{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x28f2d5,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3f4f82){super(_0x3f4f82),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3c9812=this['editor']['config'];_0x3c9812['define']('trackChanges.SuggestionThreadView',Ae),_0x3c9812['define']('trackChanges.SuggestionView',Ee),_0x3c9812['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3c9812['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4ad91b,_0x1a0e23){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x6f1c11,_0x52fb9d]of this['_handleControllerBuffer']){const _0x392245=this['_suggestionToController']['has'](_0x6f1c11);_0x392245||_0x52fb9d?_0x392245&&_0x52fb9d&&this['_destroyController'](_0x6f1c11):this['_initializeController'](_0x6f1c11);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4ad91b,_0x1a0e23);}['init'](){const _0x393206=this['editor'],_0x350627=_0x393206['plugins']['get']('TrackChangesEditing'),_0x424cb0=_0x393206['plugins']['get']('Annotations'),_0x55cb95=_0x393206['plugins']['get']('EditorAnnotations'),_0x31ec0d=_0x393206['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x55cb95['addSourceCollector'](()=>{const _0x3611ca=[];for(const [_0x438ee3,_0x3edff1]of Array['from'](this['_suggestionToController'])){const _0x4ef8b5=_0x438ee3['getAllAdjacentSuggestions'](),_0x17d01c=[];for(const _0x215b9e of _0x4ef8b5){if(!_0x215b9e['isInContent'])continue;if(_0x215b9e['isMultiRange']){_0x17d01c['push'](..._0x215b9e['getRanges']());continue;}const _0x6ca320=_0x215b9e['getFirstRange']();if(_0x17d01c['length']>0x0){const _0x6d9581=_0x17d01c[0x0]['getJoined'](_0x6ca320);if(_0x6d9581){_0x17d01c[0x0]=_0x6d9581;continue;}}_0x17d01c['push'](_0x6ca320);}_0x3611ca['push']([_0x3edff1['view'],_0x17d01c]);}return _0x3611ca;}),this['listenTo'](_0x350627,'suggestionLoaded',(_0x6e6663,_0x4a96e3)=>{this['listenTo'](_0x4a96e3,'change:previous',(_0x1e7112,_0x40e1d0,_0x3bcd6a,_0x180119)=>{_0x4a96e3['isInContent']&&(null==_0x3bcd6a?(this['_updateController'](_0x180119['head']),this['_handleSuggestionControllerDelayed'](_0x4a96e3,!0x1)):(this['_updateController'](_0x3bcd6a['head']),null==_0x180119&&this['_handleSuggestionControllerDelayed'](_0x4a96e3,!0x0)));}),null!==_0x4a96e3['previous']?this['_updateController'](_0x4a96e3['head']):this['_handleSuggestionControllerDelayed'](_0x4a96e3,!0x1);}),this['listenTo'](_0x350627,'suggestionUnloaded',(_0x4aa589,_0xaff202,_0x4bc596)=>{this['stopListening'](_0xaff202,'change:previous'),this['_handleControllerBuffer']['delete'](_0xaff202),this['_suggestionToController']['has'](_0xaff202)&&this['_destroyController'](_0xaff202),_0x4bc596&&this['_updateController'](_0x4bc596['head']);}),this['listenTo'](_0x350627,'suggestionChanged',(_0x1561a7,_0x493acc)=>{this['_updateController'](_0x493acc);}),this['listenTo'](_0x424cb0,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x31ec0d,'addComment',(_0x18a252,{threadId:_0x3b057d,isFromAdapter:_0x188a97})=>{if(_0x188a97||!_0x350627['hasSuggestion'](_0x3b057d))return;const _0x4c010c=_0x350627['getSuggestion'](_0x3b057d);this['_suggestionToController']['get'](_0x4c010c)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2f69a0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4727dc;for(const _0x554971 in _0x2f69a0){const _0x45edcf=_0x554971,_0x37b038=_0x2f69a0[_0x45edcf];if('trackChangesLicenseKeyValid'==_0x37b038||'trackChangesLicenseKeyInvalid'==_0x37b038||'trackChangesLicenseKeyExpired'==_0x37b038||'trackChangesLicenseKeyDomainLimit'==_0x37b038||'trackChangesLicenseKeyNotAllowed'==_0x37b038||'trackChangesLicenseKeyEvaluationLimit'==_0x37b038||'trackChangesLicenseKeyTrialLimit'==_0x37b038||'trackChangesLicenseKeyUsageLimit'==_0x37b038){delete _0x2f69a0[_0x45edcf],_0x4727dc=_0x37b038,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4727dc&&_0x2f69a0['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4727dc&&_0x2f69a0['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4727dc&&_0x2f69a0['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4727dc&&_0x2f69a0['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4727dc&&_0x2f69a0['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x4727dc&&_0x2f69a0['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4727dc&&_0x2f69a0['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x384147){const _0x2efb9c=this['_suggestionToController']['get'](_0x384147);if(!_0x2efb9c)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x2efb9c['view'])||null;}['getSuggestionForAnnotation'](_0x4ded9e){const _0x2b3e30=this['_viewToController']['get'](_0x4ded9e['innerView']);return _0x2b3e30?_0x2b3e30['model']:null;}['_refreshActiveMarkers'](){const _0xd773d=this['editor']['plugins']['get']('Annotations'),_0x20951d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4df876=Array['from'](_0xd773d['activeAnnotations'],_0x29553d=>_0x29553d['innerView'])['filter'](_0x310a2b=>this['_viewToController']['has'](_0x310a2b)),_0x159eb7=[];for(const _0x51e5af of _0x4df876){const _0x4f44c6=this['_viewToController']['get'](_0x51e5af)['model']['getAllAdjacentSuggestions']();_0x159eb7['push'](..._0x4f44c6['reduce']((_0x4cc26a,_0x3419bd)=>[..._0x4cc26a,..._0x3419bd['getMarkerNames']()],[]));}_0x20951d['activeMarkers']=_0x159eb7;}['_addUIComponentsToFactory'](){const _0x1fd27c=this['editor'],_0x5d3f21=_0x1fd27c['locale'],_0x96e198=o(_0x5d3f21,'Track\x20changes'),_0x6a8d27=new _0xdf6e9d([{'type':'switchbutton','model':new _0x1bd41e({'withText':!0x0,'isToggleable':!0x0,'label':_0x96e198,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1bd41e({'withText':!0x0,'label':o(_0x5d3f21,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1bd41e({'withText':!0x0,'label':o(_0x5d3f21,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1bd41e({'withText':!0x0,'label':o(_0x5d3f21,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1bd41e({'withText':!0x0,'label':o(_0x5d3f21,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1fd27c['plugins']['has']('TrackChangesPreview')&&_0x6a8d27['addMany']([{'type':'separator'},{'type':'button','model':new _0x1bd41e({'withText':!0x0,'label':o(_0x5d3f21,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x262ba of _0x6a8d27)if(Ke(_0x262ba)){const _0x352952=_0x1fd27c['commands']['get'](_0x262ba['model']['commandName']);_0x262ba['model']['bind']('isOn','isEnabled')['to'](_0x352952,'value','isEnabled');}_0x1fd27c['ui']['componentFactory']['add']('trackChanges',_0x345776=>this['_createToolbarButton'](_0x345776,_0x6a8d27,_0x96e198)),_0x1fd27c['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5e67b5=>this['_createMenuBarMenu'](_0x5e67b5,_0x6a8d27,_0x96e198));}['_createToolbarButton'](_0x1913ee,_0x3aac54,_0x287412){const _0x2bbc3f=_0x5b2948(_0x1913ee,_0xaf924),_0x45f058=this['editor']['commands']['get']('trackChanges');_0x2bbc3f['buttonView']['set']({'tooltip':_0x287412,'label':_0x287412,'icon':_0x171462}),_0x2bbc3f['buttonView']['bind']('isOn')['to'](_0x45f058,'value'),_0x2bbc3f['buttonView']['on']('execute',()=>{_0x45f058['execute'](),this['editor']['editing']['view']['focus']();}),_0x5512b2(_0x2bbc3f,_0x3aac54,{'role':'menu'});const _0x478256=[];for(const _0x5e2bd9 of _0x3aac54)Ke(_0x5e2bd9)&&_0x478256['push'](this['editor']['commands']['get'](_0x5e2bd9['model']['commandName']));const _0x429033=_0x2bbc3f['buttonView'];return _0x429033['actionView']['unbind']('isEnabled'),_0x429033['arrowView']['unbind']('isEnabled'),_0x429033['actionView']['bind']('isEnabled')['to'](_0x45f058,'isEnabled'),_0x429033['arrowView']['bind']('isEnabled')['toMany'](_0x478256,'isEnabled',(..._0x3b6de8)=>_0x3b6de8['some'](_0x1aaef0=>_0x1aaef0)),_0x2bbc3f['on']('execute',_0x1acebd=>{this['editor']['execute'](_0x1acebd['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2bbc3f;}['_createMenuBarMenu'](_0x1dab39,_0x392b88,_0xb1db07){const _0x4e9640=new _0x43278b(_0x1dab39),_0x2f55fa=this['editor']['commands']['get']('trackChanges');_0x4e9640['buttonView']['set']({'label':_0xb1db07,'icon':_0x171462});const _0x516cde=new _0x225f2a(_0x1dab39);for(const _0x566627 of _0x392b88){if('separator'==_0x566627['type']){_0x516cde['items']['add'](new _0x31c579(_0x1dab39));continue;}const _0x18b031=new _0x5a20a2(_0x1dab39,_0x4e9640),_0xdc9fad=new _0x213b24(_0x1dab39),_0x475daa=_0x566627['model'];_0xdc9fad['bind'](...Object['keys'](_0x475daa))['to'](_0x475daa),_0xdc9fad['delegate']('execute')['to'](_0x4e9640),_0xdc9fad['on']('execute',()=>{this['editor']['execute'](_0x475daa['commandName']),this['editor']['editing']['view']['focus']();}),_0x18b031['children']['add'](_0xdc9fad),_0x516cde['items']['add'](_0x18b031);}return _0x4e9640['bind']('isEnabled')['to'](_0x2f55fa,'isEnabled'),_0x4e9640['panelView']['children']['add'](_0x516cde),_0x4e9640;}['_initializeController'](_0x5dcd0d){const _0x3a3340=this['editor'],_0x2ab635=_0x3a3340['config'],_0x4e46ec=_0x3a3340['plugins']['get']('Annotations'),_0x1f84e9=_0x3a3340['plugins']['get']('CommentsRepository'),_0x15231f=_0x3a3340['plugins']['get']('EditorAnnotations'),_0x4f5030=_0x3a3340['plugins']['get'](_0x28f2d5)['me'],_0xc12270=_0x2ab635['get']('trackChanges')['SuggestionThreadView'],_0x446c01=_0x2ab635['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3fd00e,CommentThreadInputView:_0x501b65}=_0x3a3340['plugins']['get']('CommentsUI');let _0x590c19,_0x54c7eb,_0x1697cc;this['_annotationViews']['has'](_0x5dcd0d['id'])?(_0x54c7eb=this['_annotationViews']['get'](_0x5dcd0d['id']),_0x590c19=_0x54c7eb['mainView']):(_0x590c19=new _0xc12270(_0x3a3340['locale'],_0x5dcd0d,_0x4f5030,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2ab635['get']('comments.editorConfig'),'licenseKey':_0x2ab635['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2ab635['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2ab635['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2ab635['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x32161b(_0x2ab635['get']('locale'),_0x3a3340['locale']),'CommentView':_0x2ab635['get']('comments')['CommentView'],'CommentsListView':_0x3fd00e,'CommentThreadInputView':_0x501b65,'SuggestionView':_0x446c01}),_0x590c19['suggestionView']['acceptButton']['on']('execute',()=>{_0x3a3340['editing']['view']['focus']();}),_0x590c19['suggestionView']['discardButton']['on']('execute',()=>{_0x3a3340['editing']['view']['focus']();}),_0x54c7eb=_0x4e46ec['createAnnotationView'](this['editor']['locale'],_0x590c19),_0x54c7eb['bind']('isDirty')['to'](_0x590c19,'isDirty'),_0x54c7eb['bind']('length')['to'](_0x590c19),_0x54c7eb['bind']('type')['to'](_0x590c19,'type',_0x2b1b1f=>'suggestion-'+_0x2b1b1f),_0x590c19['on']('escape',()=>{_0x1697cc['fire']('escape');}),this['_annotationViews']['set'](_0x5dcd0d['id'],_0x54c7eb));const _0x2af58c=_0x1f84e9['createCommentThreadController'](_0x5dcd0d['commentThread'],_0x590c19),_0x121fcb=new xe(_0x3a3340,_0x5dcd0d,_0x590c19,_0x2af58c),_0x4c073f=_0x5dcd0d['getAllAdjacentSuggestions']()['filter'](_0xf0b7c2=>_0xf0b7c2['isInContent']);_0x590c19['descriptionParts']=_0x3a3340['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4c073f),this['_suggestionToController']['set'](_0x5dcd0d,_0x121fcb),this['_viewToController']['set'](_0x590c19,_0x121fcb);const _0x304d6d=()=>{const _0x866177=[],_0x5976c2=_0x5dcd0d['getAllAdjacentSuggestions']()['filter'](_0x5d70f6=>_0x5d70f6['isInContent']);for(const _0x2fccd2 of _0x5976c2)_0x866177['push'](..._0x2fccd2['getMarkers']());return _0x5822e7(_0x3a3340['editing'],_0x866177);};_0x1697cc=_0x4e46ec['createAnnotation']({'view':_0x54c7eb,'target':_0x304d6d,'type':()=>'suggestion-'+_0x121fcb['view']['type'],'isVisible':!!_0x304d6d()}),_0x1f84e9['_bindAnnotationToEditors'](_0x590c19,_0x1697cc),_0x4e46ec['add'](_0x1697cc),_0x15231f['registerAnnotation'](_0x1697cc);}['_destroyController'](_0xf7acc6){const _0x353341=this['editor']['plugins']['get']('CommentsRepository'),_0x51c8f7=this['editor']['plugins']['get']('Annotations'),_0x3346e1=this['_suggestionToController']['get'](_0xf7acc6),_0x3cae26=_0x3346e1['view'],_0x4326c0=_0x51c8f7['getByInnerView'](_0x3cae26);_0x353341['_unbindEditors'](_0x3cae26),_0x4326c0&&_0x51c8f7['remove'](_0x4326c0),this['_suggestionToController']['delete'](_0xf7acc6),this['_viewToController']['delete'](_0x3cae26),_0x3346e1['destroy']();}['_updateController'](_0x5c1169){if(!_0x5c1169['isInContent']||!this['_suggestionToController']['has'](_0x5c1169))return;const _0x5b97ba=this['editor']['plugins']['get']('TrackChangesEditing'),_0x9ccfa=this['_suggestionToController']['get'](_0x5c1169),_0x2b2bcd=_0x5c1169['getAllAdjacentSuggestions']();_0x9ccfa['view']['descriptionParts']=_0x5b97ba['descriptionFactory']['getDescriptions'](_0x2b2bcd);}['destroy'](){for(const _0x3c81d8 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3c81d8);for(const _0x51f37f of this['_annotationViews']['values']())_0x51f37f['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Ke(_0x483989){return'model'in _0x483989;}class Xe extends _0x442276{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4e7931){this['editor']['plugins']['get'](d)['adapter']=_0x4e7931;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0xa96299){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0xa96299);}['getSuggestions']({skipNotAttached:_0x28f63c=!0x1,toJSON:_0x2fb20e=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x28f63c,'toJSON':_0x2fb20e});}['getSuggestion'](_0x8f21c5){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x8f21c5);}}const p=['Pagination'];class ue extends _0x442276{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3a7750=this['editor'];if(_0x3a7750['config']['define']('trackChangesData.editorCreator',_0xb50139=>{const _0x30158e=_0x3a7750['model']['document']['getRootNames']()['reduce']((_0x191afe,_0x3b1287)=>(_0x191afe[_0x3b1287]='',_0x191afe),{});return _0x3a7750['constructor']['create'](_0x30158e,_0xb50139);}),'function'!=typeof _0x3a7750['config']['get']('trackChangesData')['editorCreator'])throw new _0x5461fa('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5d884d){return P(this['editor'],!0x0,_0x5d884d);}['getDataWithDiscardedSuggestions'](_0x46b4f0){return P(this['editor'],!0x1,_0x46b4f0);}}class Ye extends _0x442276{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x283ef8){function _0x48218d(_0x52c0bf){return _0x52c0bf['map'](_0x2f1093=>String['fromCharCode'](_0x2f1093))['join']('');}super(_0x283ef8),this['result']='end',_0x283ef8[_0x48218d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48218d([0x76,0x69,0x65,0x77])][_0x48218d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x48218d([0x61,0x75,0x74,0x6f]),_0x283ef8[_0x48218d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x48218d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x48218d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x48218d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x48218d([0x6f,0x6b])});}['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 Qe(_0x51bbe8){return void 0x0!==_0x51bbe8['getRootsAttributes'];}async function P(_0x304f6a,_0x438eb3,_0x381993){const _0x3d1fef=_0x34f307(_0x304f6a,p);_0x3d1fef['plugins']['push'](d,Ye),_0x3d1fef['rootsAttributes']=Qe(_0x304f6a)?_0x304f6a['getRootsAttributes']():void 0x0;const _0x416eed=document['createDocumentFragment'](),_0x47f0a0=_0x304f6a['config']['get']('trackChangesData')['editorCreator'],_0x934482=await _0x47f0a0(_0x3d1fef,()=>function(_0x16aebd){const _0x186bc8=document['createElement']('div');return _0x16aebd['appendChild'](_0x186bc8),_0x186bc8;}(_0x416eed));!function(_0x2480ad,_0x263227){const _0x54dc81=_0x2480ad['model']['document']['getRootNames']()['reduce']((_0x5e3f79,_0x2901d6)=>(_0x5e3f79[_0x2901d6]=_0x2480ad['data']['get']({'rootName':_0x2901d6}),_0x5e3f79),{}),_0x8e602c=_0x2480ad['plugins']['get']('Users')['users']['map'](_0x49674f=>({'id':_0x49674f['id'],'name':_0x49674f['name']})),_0x296707=_0x2480ad['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2533e6=_0x2480ad['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4b3242=_0x263227['plugins']['get']('Users'),_0x3042d3=_0x263227['plugins']['get']('TrackChangesEditing'),_0x218e03=_0x263227['plugins']['get']('CommentsRepository');for(const _0x2a1d6e of _0x218e03['getCommentThreads']())_0x2a1d6e['remove']();for(const _0x2f120f of _0x8e602c)_0x4b3242['getUser'](_0x2f120f['id'])||_0x4b3242['addUser'](_0x2f120f);_0x4b3242['me']||_0x4b3242['useAnonymousUser']();for(const _0x4a7c6f of _0x2533e6)_0x218e03['addCommentThread'](_0x4a7c6f);for(const _0x3be634 of _0x296707)_0x3042d3['addSuggestionData'](_0x3be634);_0x263227['data']['set'](_0x54dc81);}(_0x304f6a,_0x934482),_0x934482['execute'](_0x438eb3?'acceptAllSuggestions':'discardAllSuggestions');const _0x4cd095=Qe(_0x934482)?_0x934482['getFullData'](_0x381993):_0x934482['data']['get'](_0x381993);return await _0x934482['destroy'](),_0x4cd095;}class _e extends _0x309bed{['options'];constructor(_0x1cf1a2,_0x454deb){super(_0x1cf1a2),this['options']=_0x454deb,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x142d63,_0x3aebf8){if(!this['element'])return;const _0x9b6b4c=[];for(const [_0x178fc4,_0xc2d5a8]of _0x142d63){const _0x4d9ab9=document['createElement']('div');_0x4d9ab9['setAttribute']('data-ck-root-name',_0x178fc4),_0x4d9ab9['className']=_0xc2d5a8['classes']+'\x20ck-track-changes-preview__root-container',_0x4d9ab9['innerHTML']=_0xc2d5a8['content'],_0x9b6b4c['push'](_0x4d9ab9);}_0x3aebf8(this['element'],_0x9b6b4c),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class ge extends _0x5f0e3f{constructor(_0x5ec107){super(_0x5ec107),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0xd2f964=this['editor'],_0x1c4ccc=_0xd2f964['locale'],_0xe72001=_0xd2f964['plugins']['get']('Dialog');let _0x45ee0d;const _0x2a4c05=function(_0x3468eb){const _0xe0c620={};if('editables'in _0x3468eb['ui']['view']){for(const [_0x50fcb3,_0x919aa1]of Object['entries'](_0x3468eb['ui']['view']['editables']))_0xe0c620[_0x50fcb3]=_0x919aa1['element'];}else _0xe0c620[_0x3468eb['model']['document']['getRootNames']()[0x0]]=_0x3468eb['ui']['view']['editable']['element'];return _0xe0c620;}(_0xd2f964),_0x497b4d=function(_0x2e4b4b){let _0x2c5082=0x0;for(const _0xe90755 of Object['values'](_0x2e4b4b))_0x2c5082=Math['max'](_0x2c5082,_0xe90755['getBoundingClientRect']()['width']);let _0x1cb84a=0x0;for(const _0x31b7d1 of Object['values'](_0x2e4b4b))_0x1cb84a+=_0x31b7d1['getBoundingClientRect']()['height'];const _0x2f7eb5=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x5142e1=Math['min'](_0x1cb84a,_0x2f7eb5);return{'width':_0x2c5082,'height':_0x5142e1};}(_0x2a4c05);_0xe72001['show']({'id':'finalContentPreview','title':o(_0x1c4ccc,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new _e(_0x1c4ccc,{'dialogRects':_0x497b4d}),'onHide':()=>{_0x45ee0d['detachFromDom']();},'onShow':()=>{_0xd2f964['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1aa26a=>{const _0x209340=this['_standarizeRootsData'](_0x1aa26a,_0xd2f964,_0x2a4c05);_0xe72001['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x209340,_0xd2f964['config']['get']('trackChanges.preview.renderFunction'));}),_0x45ee0d=new _0x51093c(_0x1c4ccc,[_0xe72001['view']]),_0x45ee0d['attachToDom'](),_0x45ee0d['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0xd2f964['once']('destroy',()=>{_0x45ee0d['detachFromDom']();});const _0x14ec95=_0xe72001['view']['headerView']['class'];_0xe72001['view']['headerView']['class']=_0x14ec95?_0x14ec95+'\x20ck-reset_all':'ck-reset_all',_0xe72001['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0xe72001['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2b3353=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x572722=_0x2b3353['previewMode'],_0x39872a={};if('$labels'===_0x572722){for(const _0x30f32c of _0x2b3353['getMergeFieldsIds']())_0x39872a[_0x30f32c]=_0x2b3353['getLabel'](_0x30f32c)||_0x30f32c;}else{const _0x135730='$defaultValues'===_0x572722?_0x2b3353['getDefaultValues']():_0x2b3353['getDataSetValues'](_0x572722,!0x0);for(const _0x2b4891 of Object['entries'](_0x135730)){const [_0x510ab8,_0x55c507]=_0x2b4891;_0x39872a[_0x510ab8]=null!==_0x55c507?_0x55c507:_0x2b3353['getLabel'](_0x510ab8)||_0x510ab8;}}return{'mergeFieldsData':_0x39872a};}['_standarizeRootsData'](_0x30ec6e,_0x30ad93,_0x147329){let _0x54f6b0;if('string'==typeof _0x30ec6e){const _0x226ea7=_0x30ad93['model']['document']['getRootNames']()[0x0];_0x54f6b0={[_0x226ea7]:_0x30ec6e};}else _0x54f6b0=_0x30ec6e;const _0x39b092=this['_fixMediaEmbeds'](_0x54f6b0,_0x30ad93),_0x50af6f=function(_0x1f0eab,_0x1e5c0b){for(const [_0x3349a9,_0x715b05]of _0x1f0eab)_0x715b05['classes']=_0x1e5c0b[_0x3349a9]['classList']['value']['replace']('ck-focused','');return _0x1f0eab;}(this['_sortRoots'](_0x30ad93)['reduce']((_0x32f07c,_0x4ac199)=>(_0x32f07c['push']([_0x4ac199,{'content':_0x39b092[_0x4ac199],'classes':''}]),_0x32f07c),[]),_0x147329);return _0x50af6f;}['_fixMediaEmbeds'](_0x37d0b4,_0x1c630e){if(!_0x1c630e['plugins']['has']('MediaEmbedEditing'))return _0x37d0b4;const _0x36c381=_0x1c630e['plugins']['get']('MediaEmbedEditing');for(const [_0x31799d,_0x5a999f]of Object['entries'](_0x37d0b4)){const _0x23f457=document['createElement']('div');_0x23f457['innerHTML']=_0x5a999f,(_0x23f457['querySelectorAll']('figure.media')['forEach'](_0x2927aa=>{const _0x549adb=_0x2927aa['querySelector']('oembed');if(_0x549adb){const _0x29d467=_0x549adb['getAttribute']('url');if(_0x29d467){const _0x317d29=_0x36c381['registry']['getMediaViewElement'](new _0x214231(_0x1c630e['editing']['view']['document']),_0x29d467,{'elementName':'','renderForEditingView':!0x0}),_0x414e8f=document['createElement']('div');_0x414e8f['classList']['add']('ck-media__wrapper'),_0x317d29['render'](_0x414e8f,_0x1c630e['editing']['view']['domConverter']),_0x549adb['replaceWith'](_0x414e8f);}}}),_0x37d0b4[_0x31799d]=_0x23f457['innerHTML']);}return _0x37d0b4;}['_sortRoots'](_0x200802){if(!function(_0x1d1048){return void 0x0!==_0x1d1048['getRootsAttributes'];}(_0x200802))return _0x200802['model']['document']['getRootNames']();const _0x2051dc=[],_0x48dcea=new Map();for(const _0xda5777 of _0x200802['model']['document']['getRootNames']()){const _0x19f934=_0x200802['editing']['view']['getDomRoot'](_0xda5777)['getClientRects']()['item'](0x0);_0x2051dc['push'](_0xda5777),_0x48dcea['set'](_0xda5777,_0x19f934);}return _0x2051dc['sort']((_0x19504a,_0x361ebf)=>{const _0x579490=_0x48dcea['get'](_0x19504a),_0x21ecbb=_0x48dcea['get'](_0x361ebf);return _0x579490['y']-_0x21ecbb['y']||_0x579490['x']-_0x21ecbb['x'];}),_0x2051dc;}}class Ze extends _0x442276{static get['requires'](){return[ue,_0xe38a2e];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x558a91){super(_0x558a91),_0x558a91['commands']['add']('previewFinalContent',new ge(this['editor'])),_0x558a91['config']['define']('trackChanges.preview.renderFunction',(_0x512912,_0x2e1e2b)=>{for(const _0x1f6e21 of _0x2e1e2b)_0x512912['appendChild'](_0x1f6e21);});}}export{T as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,O as DiscardSuggestionCommand,x as ExecuteOnAllSuggestionsCommand,E as ExecuteOnSelectedSuggestionsCommand,ge as PreviewFinalContentCommand,R as Suggestion,U as SuggestionDescriptionFactory,Ae as SuggestionThreadView,Ee as SuggestionView,Xe as TrackChanges,B as TrackChangesCommand,ue as TrackChangesData,Ye as TrackChangesDataGetter,d as TrackChangesEditing,Ze as TrackChangesPreview,u as TrackChangesUI};