@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250628.0 → 0.0.0-nightly-20250629.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 _0x572c4e,Plugin as _0x2bddd5,PendingActions as _0x5b857b}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x30e493,ObservableMixin as _0x30d850,uid as _0x4bb6e6,priorities as _0x2048ff,insertToPriorityArray as _0x1b416a,toArray as _0xbaf344,logWarning as _0x17884f,getEnvKeystrokeText as _0x33f11a,FocusTracker as _0x554881,KeystrokeHandler as _0x468202,Collection as _0x34de8a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x5413dd,IconCancel as _0xf05574,IconTrackChanges as _0xbecfc5}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x38fe7e,View as _0x227c41,ViewCollection as _0x3c433f,FocusCycler as _0x566dc2,UIModel as _0x595d42,createDropdown as _0x348d4d,SplitButtonView as _0x17ee4a,addListToDropdown as _0x5cbd92,MenuBarMenuView as _0xa70834,MenuBarMenuListView as _0x5d1ff9,ListSeparatorView as _0x247408,MenuBarMenuListItemView as _0x3991a7,MenuBarMenuListItemButtonView as _0x47cc69,BodyCollection as _0x2fab16,Dialog as _0x34ef5c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x27b3d9,hashObject as _0x19e181,surroundingMarkersDetector as _0x5c23cf,FOCUS_ANNOTATION_KEYSTROKE as _0x707fe4,AriaDescriptionView as _0x3b31bb,setupThreadKeyboardNavigation as _0x66196a,trimHtml as _0x28f8fc,UserView as _0x15bd94,LateFocusButtonView as _0x47319b,getDateTimeFormatter as _0x3e584c,getAllMarkersDomElementsSorted as _0x190f99,sanitizeEditorConfig as _0x52af52}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x3915fe,ModelLiveRange as _0xd7f50,ModelLivePosition as _0x26c143,ViewDowncastWriter as _0x2ea7db}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x53eb21,toWidget as _0x313690}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1b0acd,set as _0x59688e,isEqual as _0x1ccc9c,unset as _0x2ddd1c,omit as Ut}from'es-toolkit/compat';import{Delete as _0x345ded,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x399c1c}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x4495bb}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x572c4e{['_enabledCommands'];constructor(_0x3aebfe,_0x3347f6){super(_0x3aebfe),this['_enabledCommands']=_0x3347f6,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 _0x54556c of this['editor']['commands']['commands']())_0x54556c['affectsData']&&!this['_enabledCommands']['has'](_0x54556c)&&_0x54556c['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xd617a0 of this['editor']['commands']['commands']())_0xd617a0['affectsData']&&!this['_enabledCommands']['has'](_0xd617a0)&&_0xd617a0['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x572c4e{['_suggestions'];constructor(_0x5e225c,_0x4cc79f){super(_0x5e225c),this['_suggestions']=_0x4cc79f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x154e62){const _0x2d9f5=this['_suggestions']['get'](_0x154e62);if(!_0x2d9f5)throw new _0x30e493('track-changes-accept-suggestion-not-found',this);const _0x2d01bf=_0x2d9f5['getRanges']();this['editor']['model']['canEditAt'](_0x2d01bf)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2d9f5);}}class M extends _0x572c4e{['_suggestions'];constructor(_0x805c6e,_0x16e4a5){super(_0x805c6e),this['_suggestions']=_0x16e4a5,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xbd02a4){const _0x14649a=this['_suggestions']['get'](_0xbd02a4);if(!_0x14649a)throw new _0x30e493('track-changes-discard-suggestion-not-found',this);const _0x472182=_0x14649a['getRanges']();this['editor']['model']['canEditAt'](_0x472182)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x14649a);}}function ls(_0xd880f1,_0x4b51b8){let _0x125340='';return _0x125340+=_0xd880f1['split']('*')['map']((_0x7ab5ac,_0x130354)=>_0x130354%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Yt(_0x7ab5ac)+'</span>':Yt(_0x7ab5ac))['join'](''),_0x4b51b8&&(_0x125340+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4b51b8['value']+'\x22\x20title=\x22'+_0x4b51b8['title']+'\x22></span>'),_0x125340;}function Yt(_0x219aac){const _0x4e8679=document['createElement']('span');return _0x4e8679['innerText']=_0x219aac,_0x4e8679['innerHTML'];}function ts(_0x4bde43){return _0x4bde43['sort']((_0x5e4a37,_0x4edc47)=>'attribute'===_0x5e4a37['type']&&'attribute'!==_0x4edc47['type']?-0x1:'attribute'!==_0x5e4a37['type']&&'attribute'===_0x4edc47['type']?0x1:'deletion'==_0x5e4a37['type']&&'deletion'!=_0x4edc47['type']?-0x1:'deletion'!=_0x5e4a37['type']&&'deletion'==_0x4edc47['type']?0x1:0x0);}function to(_0x71f117,_0x38d96c){let _0xeffb33,_0x3ece85=0x0;const _0x248acd=[],_0x46a49d=_0x38d96c['schema'];for(;_0x3ece85<_0x71f117['length'];){const _0x326467=_0x71f117[_0x3ece85],_0x37afee=_0x71f117[_0x3ece85+0x1];_0xeffb33||(_0xeffb33=_0x38d96c['createPositionBefore'](_0x326467)),Zt(_0x38d96c,_0x326467,_0x37afee)||(_0x248acd['push'](_0x38d96c['createRange'](_0xeffb33,_0x46a49d['isObject'](_0x326467)?_0x38d96c['createPositionAfter'](_0x326467):_0x38d96c['createPositionAt'](_0x326467,'end'))),_0xeffb33=null),_0x3ece85++;}return _0x248acd;}function Zt(_0x543a05,_0x259a61,_0x260dfd){if(!_0x260dfd)return!0x1;const _0x4bd4a8=_0x543a05['createPositionAfter'](_0x259a61),_0x39dfab=_0x543a05['createPositionBefore'](_0x260dfd);return _0x4bd4a8['isTouching'](_0x39dfab);}function rs(_0x9d28d0,_0x1b1ad3,_0x859380){for(;_0x859380['length'];){const _0x5f0c7d=_0x859380['splice'](0x0,0x64);_0x9d28d0['change'](()=>{for(const _0x1fd15f of _0x5f0c7d)_0x1fd15f['isInContent']&&_0x1b1ad3['execute'](_0x1fd15f['id']);});}}class $ extends _0x572c4e{['_command'];['_suggestions'];constructor(_0x1c4f3e,_0x78848b,_0x2acee9){super(_0x1c4f3e),this['_command']=_0x78848b,this['_suggestions']=_0x2acee9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5879a1=Array['from'](this['_suggestions']['values']())['some'](_0x21e365=>_0x21e365['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5879a1;}['execute'](){const _0x1ead51=ts(Array['from'](this['_suggestions']['values']()));for(const _0x3dc2d5 of _0x1ead51){const _0x1581f2=_0x3dc2d5['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1581f2))return;}rs(this['editor']['model'],this['_command'],_0x1ead51);}}class B extends _0x572c4e{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5e6463,_0x5d3ebc,_0x45410b){super(_0x5e6463),this['_command']=_0x5d3ebc,this['_suggestions']=_0x45410b,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x485611=this['editor']['model']['document']['selection'],_0x58d81b=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4f55c3,_0x5db013){const _0x51ea5f=Array['from'](_0x4f55c3['getRanges']()),_0x434222=new Set();for(const _0x275498 of _0x5db013)if(_0x275498['isInContent']){for(const _0x3d0ef5 of _0x51ea5f)for(const _0x4841be of _0x275498['getRanges']())(_0x3d0ef5['isIntersecting'](_0x4841be)||_0x4f55c3['isCollapsed']&&!_0x275498['isMultiRange']&&_0x275498['next']&&_0x4841be['end']['isTouching'](_0x3d0ef5['start']))&&_0x434222['add'](_0x275498);}return _0x434222;}(_0x485611,_0x58d81b),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x20be62=ts(Array['from'](this['_selectedSuggestions']));for(const _0xe62b34 of _0x20be62){const _0x5cb27c=_0xe62b34['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5cb27c))return;}rs(this['editor']['model'],this['_command'],_0x20be62);}}class T extends/* #__PURE__ -- @preserve */
24
- _0x30d850(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4fd7bf,_0x5ceb8a){super(),this['id']=_0x5ceb8a['id'],this['type']=_0x5ceb8a['type'],this['subType']=_0x5ceb8a['subType']||null,this['author']=_0x5ceb8a['author'],this['creator']=_0x5ceb8a['creator']||_0x5ceb8a['author'],this['isExternal']=Boolean(_0x5ceb8a['attributes']&&_0x5ceb8a['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x5ceb8a['originalSuggestionId']||null,this['_model']=_0x4fd7bf,this['_onAccept']=_0x5ceb8a['onAccept'],this['_onDiscard']=_0x5ceb8a['onDiscard'],this['_onAttributesChange']=_0x5ceb8a['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5ceb8a['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 _0x11fb46=this;for(;_0x11fb46['previous'];)_0x11fb46=_0x11fb46['previous'];return _0x11fb46;}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'](_0x590366){this['_markerNames']['add'](_0x590366);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x24701e=>this['_model']['markers']['get'](_0x24701e))['filter'](_0x36be41=>_0x36be41);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x59c41b=>{for(const _0x43709e of this['getMarkers']())_0x59c41b['removeMarker'](_0x43709e);}),this['_markerNames']['clear']();}['removeMarker'](_0x46199a){this['_model']['change'](_0x4bba60=>{_0x4bba60['removeMarker'](_0x46199a);}),this['_markerNames']['delete'](_0x46199a);}['addRange'](_0x438f6f){const _0x54f751='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x54f751),this['_model']['change'](_0x510e5f=>{_0x510e5f['addMarker'](_0x54f751,{'range':_0x438f6f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4b647e){for(const _0x3b73b3 of this['getRanges']())if(_0x3b73b3['isIntersecting'](_0x4b647e))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x296cd3=>_0x296cd3['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3f1281,_0x1cc76b)=>[..._0x3f1281,..._0x1cc76b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1a1979=this['getRanges']();if(0x1!=_0x1a1979['length'])return null;const _0x340357=_0x1a1979[0x0],_0x4c0c1b=_0x340357['start']['nodeAfter'],_0x15b379=_0x340357['end']['nodeBefore'];return _0x4c0c1b instanceof _0x3915fe?_0x4c0c1b!=_0x15b379?null:_0x4c0c1b: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 _0x1b6e28=[];let _0x2d297c=this['head'];for(;_0x2d297c;)_0x1b6e28['push'](_0x2d297c),_0x2d297c=_0x2d297c['next'];return _0x1b6e28;}['setAttribute'](_0x2ffbf6,_0x1988e0){const _0x5b55df=_0x1b0acd(this['attributes']);_0x59688e(_0x5b55df,_0x2ffbf6,_0x1988e0),_0x1ccc9c(_0x5b55df,this['attributes'])||(this['attributes']=_0x5b55df,this['_onAttributesChange'](_0x5b55df));}['removeAttribute'](_0x4f3497){const _0x131235=_0x1b0acd(this['attributes']);_0x2ddd1c(_0x131235,_0x4f3497),_0x1ccc9c(_0x131235,this['attributes'])||(this['attributes']=_0x131235,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 _0x4bb6e6()['substr'](0x1,0x5);}}function o(_0x4a6195,_0x248af5,_0x5d4373){const _0x1be950=_0x4a6195['t'],t=_0x4a6195['t'];switch(_0x248af5){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',_0x5d4373);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5d4373);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5d4373);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5d4373);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5d4373);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',_0x5d4373);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5d4373);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',_0x5d4373);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5d4373);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5d4373);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5d4373);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5d4373);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5d4373);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5d4373);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5d4373);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5d4373);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5d4373);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5d4373);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5d4373);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5d4373);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5d4373);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5d4373);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5d4373);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5d4373);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5d4373);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'},_0x5d4373);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5d4373);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5d4373);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5d4373);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5d4373);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5d4373);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5d4373);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5d4373);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'},_0x5d4373);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5d4373);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5d4373);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5d4373);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5d4373);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'},_0x5d4373);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5d4373);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'},_0x5d4373);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'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'},_0x5d4373);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5d4373);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'},_0x5d4373);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5d4373);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'},_0x5d4373);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5d4373);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5d4373);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'},_0x5d4373);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5d4373);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 _0x1be950({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5d4373);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1be950({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5d4373);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5d4373);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'},_0x5d4373);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'},_0x5d4373);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'},_0x5d4373);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x248af5;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x534582,_0x46c579){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x534582,this['_locale']=_0x46c579;}['getDescriptions'](_0x593403){const _0x4eacd9=[],_0xf8280f=new Set(),_0x20f06b=new Set();for(let _0x21e33f=0x0;_0x21e33f<_0x593403['length'];_0x21e33f++){const _0x308d02=_0x593403[_0x21e33f];if(!_0x308d02['isInContent'])continue;const _0x4eadf2=this['_handleCustomCallbackDescription'](_0x308d02);if(_0x4eadf2){if(null!=_0x308d02['subType']){if(_0xf8280f['has'](_0x308d02['subType']))continue;_0xf8280f['add'](_0x308d02['subType']);}_0x4eacd9['push'](_0x4eadf2);}else{if('attribute'==_0x308d02['type']){const _0x416949=_0x308d02['data']['key'];if(_0x20f06b['has'](_0x416949))continue;_0x20f06b['add'](_0x308d02['data']['key']),_0x416949==m?this['_handleRenameSuggestionDescription'](_0x4eacd9,_0x308d02):this['_handleAttributeSuggestionDescription'](_0x4eacd9,_0x308d02);continue;}'insertion'!=_0x308d02['type']&&'deletion'!=_0x308d02['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4eacd9,_0x308d02,_0x593403[_0x21e33f+0x1]);}}return this['_resolveDescriptionItems'](_0x4eacd9);}['registerDescriptionCallback'](_0x1137d0){this['_customCallbacks']['push'](_0x1137d0);}['registerElementLabel'](_0x1cc79e,_0x59c5dd,_0x1fbf65=_0x2048ff['normal']){'function'==typeof _0x1cc79e?_0x1b416a(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1cc79e,'label':_0x59c5dd,'priority':_0x1fbf65}):this['_itemLabels']['set'](_0x1cc79e,_0x59c5dd);}['registerAttributeLabel'](_0x447a2c,_0x248c8b){this['_attributeLabels']['set'](_0x447a2c,_0x248c8b);}['getItemLabel'](_0x34dae5,_0x398958=0x1){let _0x109067;for(const _0x1eaed5 of this['_itemLabelsCallbacks'])if(_0x1eaed5['matchingCallback'](_0x34dae5)){_0x109067=_0x1eaed5['label'];break;}return _0x109067||(_0x109067=this['_itemLabels']['get'](_0x34dae5['name'])),_0x109067?_0x109067(_0x398958):0x1!==_0x398958?_0x398958+'\x20'+_0x34dae5['name']+'s':''+_0x34dae5['name'];}['_addDescriptionItems'](_0x58e95f,_0x389798){const _0x41af30=_0x389798['getFirstRange']()['getWalker'](),_0x2f995c='insertion'==_0x389798['type']?'add':'remove';for(const _0x3f9cf2 of _0x41af30){const _0xa07006=_0x3f9cf2['item'],_0xd5a091=_0x58e95f[_0x58e95f['length']-0x1];if(_0xa07006['is']('$textProxy'))_0xd5a091&&_0xd5a091['type']['indexOf']('Container')>-0x1&&_0x58e95f['pop'](),_0xd5a091&&'text'==_0xd5a091['type']?_0xd5a091[_0x2f995c]+=_0xa07006['data']:_0x58e95f['push']({'type':'text','add':'add'==_0x2f995c?_0xa07006['data']:'','remove':'remove'==_0x2f995c?_0xa07006['data']:''});else{if(this['_schema']['isObject'](_0xa07006)){const _0x424715=_0xa07006;if(_0xd5a091&&_0xd5a091['type']['indexOf']('Container')>-0x1&&_0x58e95f['pop'](),'elementEnd'==_0x3f9cf2['type'])continue;_0xd5a091&&_0xd5a091['type']==_0x2f995c+'Object'&&_0xd5a091['element']['name']==_0x424715['name']?_0xd5a091['quantity']++:_0x58e95f['push']({'type':_0x2f995c+'Object','element':_0x424715,'quantity':0x1}),_0x41af30['skip'](_0x588fa5=>!('elementEnd'==_0x588fa5['type']&&_0x588fa5['item']==_0xa07006));}else{if(this['_schema']['checkChild'](_0xa07006,'$text')||_0xa07006['is']('element','softBreak')){const _0x124213=_0xa07006;if('add'==_0x2f995c&&'elementStart'==_0x3f9cf2['type']||'remove'==_0x2f995c&&'elementEnd'==_0x3f9cf2['type'])continue;if(_0xd5a091&&-0x1==_0xd5a091['type']['indexOf']('Container')){'text'==_0xd5a091['type']&&(_0xd5a091[_0x2f995c]+='\x0a');continue;}let _0x214167;if(_0x214167='add'==_0x2f995c?_0x124213['nextSibling']&&!this['_schema']['isObject'](_0x124213['nextSibling'])?_0x124213['nextSibling']:null:_0x124213['previousSibling']&&!this['_schema']['isObject'](_0x124213['previousSibling'])?_0x124213['previousSibling']:null,_0x124213['isEmpty']||_0x214167&&_0x214167['isEmpty']){const _0x5b1183=_0x214167&&_0x214167['isEmpty']?_0x214167:_0x124213;_0xd5a091&&_0xd5a091['type']==_0x2f995c+'EmptyContainer'&&_0xd5a091['element']['name']==_0x5b1183['name']?_0xd5a091['quantity']++:_0x58e95f['push']({'type':_0x2f995c+'EmptyContainer','element':_0x5b1183,'quantity':0x1});}else _0x58e95f['push']({'type':_0x2f995c+'Container','element':_0x124213});}}}}}['_resolveDescriptionItems'](_0x3d8cb7){const _0x1f56ec=this['_locale'],_0x23ab24=[],_0x9bae65=[],_0x2b42f1=[];for(const _0x29a1c7 of _0x3d8cb7)switch(_0x29a1c7['type']){case'text':if(_0x29a1c7['add']=_0x29a1c7['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x29a1c7['remove']=_0x29a1c7['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x29a1c7['add']&&''!=_0x29a1c7['remove']){_0x23ab24['push']({'type':'replace','content':o(_0x1f56ec,'REPLACE_TEXT',['\x22'+_0x29a1c7['remove']+'\x22','\x22'+_0x29a1c7['add']+'\x22'])});continue;}if(null!=_0x29a1c7['add']['match'](/^ +$/)){_0x23ab24['push']({'type':'insertion','content':o(_0x1f56ec,'*Insert:*\x20%0',o(_0x1f56ec,'ELEMENT_SPACE',_0x29a1c7['add']['length']))});continue;}if(null!=_0x29a1c7['remove']['match'](/^ +$/)){_0x23ab24['push']({'type':'deletion','content':o(_0x1f56ec,'*Remove:*\x20%0',o(_0x1f56ec,'ELEMENT_SPACE',_0x29a1c7['remove']['length']))});continue;}if(''!=_0x29a1c7['add']){_0x23ab24['push']({'type':'insertion','content':o(_0x1f56ec,'*Insert:*\x20%0','\x22'+_0x29a1c7['add']+'\x22')});continue;}_0x23ab24['push']({'type':'deletion','content':o(_0x1f56ec,'*Remove:*\x20%0','\x22'+_0x29a1c7['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x23ab24['push']({'type':'insertion','content':o(_0x1f56ec,'*Insert:*\x20%0',this['getItemLabel'](_0x29a1c7['element'],_0x29a1c7['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x23ab24['push']({'type':'deletion','content':o(_0x1f56ec,'*Remove:*\x20%0',this['getItemLabel'](_0x29a1c7['element'],_0x29a1c7['quantity']))});continue;case'addContainer':_0x23ab24['push']({'type':'insertion','content':o(_0x1f56ec,'*Split:*\x20%0',this['getItemLabel'](_0x29a1c7['element'],_0x29a1c7['quantity']))});continue;case'removeContainer':_0x23ab24['push']({'type':'deletion','content':o(_0x1f56ec,'*Merge:*\x20%0',this['getItemLabel'](_0x29a1c7['element'],_0x29a1c7['quantity']))});continue;case'addFormat':_0x9bae65['push'](_0x29a1c7['key']);continue;case'removeFormat':_0x2b42f1['push'](_0x29a1c7['key']);continue;default:_0x23ab24['push'](_0x29a1c7);}if(_0x9bae65['length']){const _0x27b06d=_0x9bae65['map'](_0x5c787d=>this['_attributeLabels']['has'](_0x5c787d)?this['_attributeLabels']['get'](_0x5c787d):_0x5c787d)['join'](',\x20');_0x23ab24['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x27b06d)});}if(_0x2b42f1['length']){const _0x308374=_0x2b42f1['map'](_0x4d7ea6=>this['_attributeLabels']['has'](_0x4d7ea6)?this['_attributeLabels']['get'](_0x4d7ea6):_0x4d7ea6)['join'](',\x20');_0x23ab24['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x308374)});}return _0x23ab24;}['_handleCustomCallbackDescription'](_0x8b48b8){for(const _0x6057fe of this['_customCallbacks']){const _0x379180=_0x6057fe(_0x8b48b8);if(_0x379180&&'type'in _0x379180)return _0x379180;}}['_handleAttributeSuggestionDescription'](_0x21255c,_0x26c499){const _0x134e06=_0x26c499['data'],_0x4f8013=void 0x0===_0x134e06['newValue']?'removeFormat':'addFormat';_0x21255c['push']({'type':_0x4f8013,'key':_0x134e06['key']});}['_handleRenameSuggestionDescription'](_0x9fb1f1,_0x4c4646){_0x9fb1f1['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4c4646['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x177a94,_0x7da3f9,_0x3afb56){if(this['_addDescriptionItems'](_0x177a94,_0x7da3f9),_0x3afb56&&_0x3afb56['getFirstRange']()&&!_0x7da3f9['getFirstRange']()['end']['isEqual'](_0x3afb56['getFirstRange']()['start'])){const _0x2fd1e7=_0x177a94[_0x177a94['length']-0x1],_0x586f08='insertion'==_0x7da3f9['type']?'add':'remove';_0x2fd1e7&&'text'==_0x2fd1e7['type']&&(_0x2fd1e7[_0x586f08]+='\x0a');}}}class O extends _0x2bddd5{['afterInit'](){const _0x21b7ad=this['editor'],_0x16ced1=_0x21b7ad['plugins']['get']('TrackChangesEditing');_0x21b7ad['commands']['get']('showAIAssistant')&&_0x16ced1['enableCommand']('showAIAssistant');}}class E extends _0x2bddd5{['afterInit'](){const _0x2c7842=this['editor'],_0x448ebc=_0x2c7842['locale'];if(!_0x2c7842['plugins']['has']('AlignmentEditing'))return;const _0x25c867=_0x2c7842['plugins']['get']('TrackChangesEditing');_0x25c867['enableDefaultAttributesIntegration']('alignment'),_0x25c867['registerBlockAttribute']('alignment'),_0x25c867['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x448ebc,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x390d39=this['editor'],_0x48d314=_0x390d39['locale'];_0x390d39['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45d4f5=>{if('formatBlock'!=_0x45d4f5['type'])return;const {data:_0x5e13cf}=_0x45d4f5;if(_0x5e13cf&&'alignment'==_0x5e13cf['commandName']){const _0x2300b9=_0x5e13cf['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x48d314,'*Format:*\x20%0',function(_0x2e054b){switch(_0x2e054b){case'left':return o(_0x48d314,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x48d314,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x48d314,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x48d314,'FORMAT_JUSTIFY_TEXT');}}(_0x2300b9))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x2bddd5{['afterInit'](){const _0x51b173=this['editor'],_0x2da3cb=_0x51b173['plugins']['get']('TrackChangesEditing'),_0x20f9aa=_0x51b173['locale'];for(const _0x59afa2 of ti){if(!_0x51b173['plugins']['has'](_0x59afa2))continue;const _0x218519=_0x59afa2['slice'](0x0,-0x7)['toLowerCase'](),_0x314f11='FORMAT_'+_0x218519['toUpperCase']();_0x2da3cb['enableDefaultAttributesIntegration'](_0x218519),_0x2da3cb['registerInlineAttribute'](_0x218519),_0x2da3cb['descriptionFactory']['registerAttributeLabel'](_0x218519,o(_0x20f9aa,_0x314f11));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e8af6=this['editor'],_0x1fb71c=_0x4e8af6['locale'],_0x158ee4=_0x4e8af6['plugins']['get']('TrackChangesEditing');function _0x578288(_0x5f0132,_0x28a0d4){_0x158ee4['descriptionFactory']['registerDescriptionCallback'](_0x34efcc=>{if('formatInline'!=_0x34efcc['type'])return;const {data:_0x12f95e}=_0x34efcc;return _0x12f95e&&_0x12f95e['commandName']===_0x5f0132?_0x12f95e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1fb71c,'*Format:*\x20%0',_0x28a0d4)}:{'type':'format','content':o(_0x1fb71c,'*Remove\x20format:*\x20%0',_0x28a0d4)}:void 0x0;});}_0x578288('bold',o(_0x1fb71c,'FORMAT_BOLD')),_0x578288('italic',o(_0x1fb71c,'FORMAT_ITALIC')),_0x578288('underline',o(_0x1fb71c,'FORMAT_UNDERLINE')),_0x578288('code',o(_0x1fb71c,'FORMAT_CODE')),_0x578288('strikethrough',o(_0x1fb71c,'FORMAT_STRIKETHROUGH')),_0x578288('subscript',o(_0x1fb71c,'FORMAT_SUBSCRIPT')),_0x578288('superscript',o(_0x1fb71c,'FORMAT_SUPERSCRIPT'));}}class U extends _0x2bddd5{['afterInit'](){const _0x488af8=this['editor'],_0x1c8e76=_0x488af8['locale'];if(!_0x488af8['plugins']['has']('BlockQuoteEditing'))return;const _0x3b3c56=_0x488af8['plugins']['get']('TrackChangesEditing'),_0x1c9fa6=this['editor']['commands']['get']('blockQuote');_0x3b3c56['enableCommand']('blockQuote',(_0x4936b6,_0x8ff05c={})=>{const _0x5c3112=this['editor']['model']['document']['selection'],_0x3926b5=_0x8ff05c&&void 0x0!==_0x8ff05c['forceValue']?_0x8ff05c['forceValue']:!_0x1c9fa6['value'];let _0x59c088=[];if(_0x3926b5){const _0x156310=Array['from'](_0x5c3112['getSelectedBlocks']())['filter'](_0x3d71df=>oo(_0x3d71df)||function(_0x4d0ffd,_0x142e6a){const _0x439b18=_0x142e6a['checkChild'](_0x4d0ffd['parent'],'blockQuote'),_0x4976ce=_0x142e6a['checkChild'](['$root','blockQuote'],_0x4d0ffd);return _0x439b18&&_0x4976ce;}(_0x3d71df,this['editor']['model']['schema']));_0x59c088=to(_0x156310,_0x488af8['model']);}else{const _0x256617=Array['from'](_0x5c3112['getSelectedBlocks']())['filter'](_0x2254a2=>oo(_0x2254a2));_0x59c088=to(_0x256617,_0x488af8['model']);}_0x488af8['model']['change'](()=>{for(const _0x1a2572 of _0x59c088)_0x3b3c56['markBlockFormat'](_0x1a2572,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3926b5}]});});}),_0x3b3c56['descriptionFactory']['registerDescriptionCallback'](_0x30d1e1=>{const {data:_0x48735d}=_0x30d1e1;if(_0x48735d&&'blockQuote'==_0x48735d['commandName']){const _0x564c71=o(_0x1c8e76,'ELEMENT_BLOCK_QUOTE');return _0x48735d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1c8e76,'*Set\x20format:*\x20%0',_0x564c71)}:{'type':'format','content':o(_0x1c8e76,'*Remove\x20format:*\x20%0',_0x564c71)};}});}}function oo(_0x446309){return'blockQuote'==_0x446309['parent']['name'];}class V extends _0x2bddd5{['afterInit'](){const _0x3a6014=this['editor'],_0x8753a8=_0x3a6014['locale'],_0x21f2e7=_0x3a6014['plugins']['get']('TrackChangesEditing');_0x3a6014['plugins']['has']('BookmarkEditing')&&(_0x21f2e7['enableCommand']('insertBookmark'),_0x21f2e7['enableDefaultAttributesIntegration']('updateBookmark'),_0x21f2e7['registerBlockAttribute']('bookmarkId'),_0x21f2e7['descriptionFactory']['registerDescriptionCallback'](_0x20fb18=>{if('insertion'!=_0x20fb18['type']&&'deletion'!=_0x20fb18['type']&&'attribute'!=_0x20fb18['type'])return;const _0x55d11b=_0x20fb18['getContainedElement']();if(null==_0x55d11b)return;if(!_0x55d11b['is']('element','bookmark'))return;const _0x376309=_0x55d11b['getAttribute']('bookmarkId');if('insertion'==_0x20fb18['type'])return{'type':'insertion','content':o(_0x8753a8,'*Insert:*\x20%0','\x22'+_0x376309+'\x22\x20'+o(_0x8753a8,'ELEMENT_BOOKMARK'))};if('deletion'==_0x20fb18['type'])return{'type':'deletion','content':o(_0x8753a8,'*Remove:*\x20%0','\x22'+_0x376309+'\x22\x20'+o(_0x8753a8,'ELEMENT_BOOKMARK'))};const {data:_0x4ac8cc}=_0x20fb18;if(!_0x4ac8cc||'bookmarkId'!=_0x4ac8cc['key'])return;return{'type':'format','content':o(_0x8753a8,'*Set\x20bookmark:*\x20%0','\x22'+_0x4ac8cc['newValue']+'\x22')};}));}}class F extends _0x2bddd5{['afterInit'](){const _0x455c7e=this['editor'];_0x455c7e['plugins']['has']('CaseChange')&&(_0x455c7e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x455c7e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x455c7e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x2bddd5{['afterInit'](){const _0x410c9e=this['editor'];_0x410c9e['commands']['get']('ckbox')&&_0x410c9e['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x2bddd5{['afterInit'](){const _0x2459d3=this['editor'];if(!_0x2459d3['plugins']['has']('CodeBlock'))return;const _0x1b4406=_0x2459d3['plugins']['get']('TrackChangesEditing'),_0x26f25a=_0x2459d3['locale'],_0x63f5db=_0x2459d3['config']['get']('codeBlock')['languages'],_0x3224fb=_0x2459d3['commands']['get']('codeBlock');_0x1b4406['enableCommand']('indentCodeBlock'),_0x1b4406['enableCommand']('outdentCodeBlock'),_0x1b4406['enableCommand']('codeBlock',(_0x66f479,_0x2c6cb3={})=>{const _0x74f1ff=_0x2459d3['model'],_0x45a2df=_0x2459d3['model']['document']['selection'],_0x2280e4=_0x2c6cb3&&void 0x0!==_0x2c6cb3['forceValue']?_0x2c6cb3['forceValue']:!_0x3224fb['value'];let _0xad1dc7;_0x2c6cb3['language']||(_0x2c6cb3['language']=_0x63f5db[0x0]['language']),_0xad1dc7=_0x2280e4?Array['from'](_0x45a2df['getSelectedBlocks']())['filter'](_0x48633f=>co(_0x48633f)||function(_0x5126c7,_0x2c3b25){if(_0x5126c7['is']('rootElement')||_0x2c3b25['isLimit'](_0x5126c7))return!0x1;return _0x2c3b25['checkChild'](_0x5126c7['parent'],'codeBlock');}(_0x48633f,_0x74f1ff['schema'])):Array['from'](_0x45a2df['getSelectedBlocks']())['filter'](_0x1eb124=>co(_0x1eb124));const _0x305435=to(_0xad1dc7,_0x74f1ff);_0x74f1ff['change'](()=>{for(const _0x4e9bef of _0x305435)_0x1b4406['markBlockFormat'](_0x4e9bef,{'commandName':'codeBlock','commandParams':[{..._0x2c6cb3,'forceValue':_0x2280e4}],'formatGroupId':'blockName'});});}),(_0x1b4406['descriptionFactory']['registerElementLabel']('codeBlock',_0xbac78c=>o(_0x26f25a,'ELEMENT_CODE_BLOCK',_0xbac78c)),_0x1b4406['descriptionFactory']['registerDescriptionCallback'](_0x5377ad=>{if('formatBlock'!=_0x5377ad['type'])return;const _0x88d5a1=_0x26f25a['t'],{data:_0x3b350d}=_0x5377ad;if(!_0x3b350d||'codeBlock'!=_0x3b350d['commandName'])return;const _0x4bbebe=_0x3b350d['commandParams'][0x0]['language'],_0x524242=_0x88d5a1(_0x63f5db['find'](_0x103227=>_0x103227['language']===_0x4bbebe)['label'])['toLowerCase']();return _0x3b350d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x26f25a,'*Set\x20format:*\x20%0',o(_0x26f25a,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x524242+')')}:{'type':'format','content':o(_0x26f25a,'*Remove\x20format:*\x20%0',o(_0x26f25a,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0xa89abb){return'codeBlock'==_0xa89abb['name'];}class J extends _0x2bddd5{['afterInit'](){const _0x206cc3=this['editor'];if(!_0x206cc3['plugins']['has']('CommentsEditing'))return;_0x206cc3['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2836f2,_0x5c3c09,_0x3d7cab){const _0x14848a=[];for(const _0x461311 of _0x5c3c09['getItems']())_0x461311['hasAttribute'](_0x2836f2)&&_0x14848a['push'](_0x3d7cab['createRangeOn'](_0x461311));return _0x14848a;}function De(_0x14c6ee,_0x58dbf1,{showActiveMarker:_0x4b6b8f=!0x0}={}){const _0x5dbc52=_0x14c6ee['plugins']['get']('TrackChangesEditing');return(_0x4d3821,_0x3f51b0,_0x4a9eda)=>{if(!_0x4a9eda['consumable']['test'](_0x3f51b0['markerRange'],_0x4d3821['name']))return;const _0x261093=_0x3f51b0['markerRange']['getWalker'](),_0x15d94c=_0x3f51b0['markerRange']['start'],_0x393f32=_0x14c6ee['model']['schema'];let _0x450932=null,_0x55a8a2=null,_0x5e89dd=!0x1,_0x5b3e8e=!0x1;for(const _0x50f5aa of _0x261093){const _0x2afd34=_0x50f5aa['item'];_0x5e89dd=_0x5e89dd||_0x393f32['isContent'](_0x2afd34);const _0x391fd8=_0x4a9eda['mapper']['toViewElement'](_0x2afd34);if(_0x391fd8&&_0x391fd8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x50f5aa['type']&&(_0x393f32['isBlock'](_0x2afd34)&&!_0x393f32['isLimit'](_0x2afd34)&&(_0x2afd34['nextSibling']||_0x15d94c['isAtEnd']?_0x450932&&_0x450932['parent']==_0x2afd34||(_0x450932=_0x2afd34,_0x277bda(_0x50f5aa['previousPosition']),_0x5b3e8e=!0x0):_0x55a8a2=_0x55a8a2||_0x50f5aa['previousPosition']));}function _0x277bda(_0x45972e){const {id:_0x7e48f6,authorId:_0x29abe5}=_0x5dbc52['_splitMarkerName'](_0x3f51b0['markerName']),_0x272958=_0x4a9eda['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x58dbf1,'data-suggestion':_0x7e48f6,'data-author-id':_0x29abe5}),_0xacb24a=_0x4a9eda['mapper']['toViewPosition'](_0x45972e);_0x4b6b8f&&_0x5dbc52['activeMarkers']['includes'](_0x3f51b0['markerName'])&&_0x4a9eda['writer']['addClass']('ck-suggestion-marker--active',_0x272958),_0x4a9eda['writer']['insert'](_0xacb24a,_0x272958),_0x4a9eda['mapper']['bindElementToMarker'](_0x272958,_0x3f51b0['markerName']);}_0x5e89dd||_0x5b3e8e||!_0x55a8a2||_0x277bda(_0x55a8a2);};}class K extends _0x2bddd5{static get['requires'](){return[_0x345ded];}['init'](){const _0x22f387=this['editor'],_0xcec010=_0x22f387['plugins']['get']('TrackChangesEditing');_0xcec010['enableCommand']('delete');const _0x1dc19f=_0x22f387['commands']['get']('deleteForward');_0xcec010['enableCommand']('deleteForward',(_0x291dab,_0x350f43={})=>{const _0x1daaca=_0x22f387['model']['createSelection'](_0x22f387['model']['document']['selection']);_0x1daaca['isCollapsed']&&_0x22f387['model']['modifySelection'](_0x1daaca,{'direction':'forward','unit':_0x350f43['unit']});const _0x11d2f0=_0x1daaca['getFirstRange'](),_0x394e31=_0xd7f50['fromRange'](_0x11d2f0);let _0x41be95;_0x291dab(_0x350f43),_0x41be95='$graveyard'==_0x394e31['root']['rootName']?_0x22f387['model']['createRange'](_0x11d2f0['start']):_0x22f387['model']['createRange'](_0x394e31['start'],_0x394e31['end']),_0x394e31['detach'](),_0x22f387['model']['enqueueChange'](_0x1dc19f['buffer']['batch'],_0x10d3dc=>{_0x1dc19f['buffer']['lock'](),_0x10d3dc['setSelection'](_0x10d3dc['createRange'](_0x41be95['end'])),_0x1dc19f['buffer']['unlock']();});}),_0x22f387['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x22f387,'merge'),{'priority':'high'}),_0x22f387['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x12f81f,_0x257fcf,_0x370500)=>{_0x370500['options']['showSuggestionHighlights']&&De(_0x22f387,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x12f81f,_0x257fcf,_0x370500);},{'priority':'high'}),_0x22f387['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x307dc3,_0x4f3707,_0x9854b7)=>{const _0x5c754a=_0x9854b7['mapper']['markerNameToElements'](_0x4f3707['markerName']);if(_0x5c754a){for(const _0x433d76 of _0x5c754a)_0x433d76['is']('uiElement')&&(_0x9854b7['mapper']['unbindElementFromMarkerName'](_0x433d76,_0x4f3707['markerName']),_0x9854b7['writer']['remove'](_0x433d76));}},{'priority':'high'});}}class H extends _0x2bddd5{['afterInit'](){const _0x11995d=this['editor'];if(!_0x11995d['plugins']['has']('ListEditing'))return;const _0x3112ec=_0x11995d['locale'],_0x5d4a72=_0x11995d['plugins']['get']('TrackChangesEditing'),_0x5920a5=_0x11995d['plugins']['has']('TodoListEditing'),_0x177e5d=!!_0x11995d['config']['get']('list.multiBlock');function _0x4b22e0(_0x2ab2f0){return{'type':'format','content':''+o(_0x3112ec,'*Set\x20format:*\x20%0',_0x2ab2f0)};}function _0x2b89fa(_0x5e4d30){return{'type':'format','content':''+o(_0x3112ec,'*Remove\x20format:*\x20%0',_0x5e4d30)};}_0x5d4a72['enableDefaultAttributesIntegration']('numberedList'),_0x5d4a72['enableDefaultAttributesIntegration']('bulletedList'),_0x5d4a72['enableDefaultAttributesIntegration']('customNumberedList'),_0x5d4a72['enableDefaultAttributesIntegration']('customBulletedList'),_0x5d4a72['enableDefaultAttributesIntegration']('indentList'),_0x5d4a72['enableDefaultAttributesIntegration']('outdentList'),_0x5d4a72['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5d4a72['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5d4a72['registerBlockAttribute']('listItemId'),_0x5d4a72['registerBlockAttribute']('listType'),_0x5d4a72['registerBlockAttribute']('listIndent'),_0x177e5d&&(_0x5d4a72['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5d4a72['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5920a5&&(_0x5d4a72['enableDefaultAttributesIntegration']('todoList'),_0x5d4a72['enableDefaultAttributesIntegration']('checkTodoList'),_0x5d4a72['registerBlockAttribute']('todoListChecked'),_0x5d4a72['descriptionFactory']['registerDescriptionCallback'](_0x3ed958=>{const {data:_0x26268e}=_0x3ed958;if(_0x26268e&&'todoListChecked'==_0x26268e['key'])return{'type':'format','content':_0x26268e['newValue']?o(_0x3112ec,'*Check\x20item*'):o(_0x3112ec,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5d7789=>{if(_0x5d7789['batch']['isUndo'])return!0x1;let _0x4b67ce=!0x1;const _0x5567fe=_0x5d4a72['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x11da88=>'todoListChecked'===_0x5d4a72['_getAttributeKey'](_0x11da88));for(const _0x5405b7 of _0x5567fe){'todo'!=_0x5405b7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5d4a72['_findSuggestions'](_0x5405b7['getFirstRange'](),'attribute')['find'](_0x5cd7dd=>'listType'===_0x5d4a72['_getAttributeKey'](_0x5cd7dd['suggestion']))||(_0x5d7789['removeMarker'](_0x5405b7['getFirstMarker']()),_0x4b67ce=!0x0));}return _0x4b67ce;})),_0x5d4a72['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x3112ec,'FORMAT_INDENT'));const _0x2bf207={'type':'format','content':''};_0x5d4a72['descriptionFactory']['registerDescriptionCallback'](_0x154d96=>{const {data:_0x5e8ea2}=_0x154d96;if(!_0x5e8ea2||'listType'!=_0x5e8ea2['key'])return;let _0x2a948e=_0x154d96['head'];for(;_0x2a948e;){if(_0x2a948e['data']&&(('listStyle'==_0x2a948e['data']['key']||'listMarkerStyle'==_0x2a948e['data']['key'])&&(_0x2a948e['data']['newValue']&&'default'!=_0x2a948e['data']['newValue']||'default'!=_0x2a948e['data']['oldValue']&&!_0x5e8ea2['newValue'])||!_0x177e5d&&_0x2a948e['data']['key']==m))return _0x2bf207;_0x2a948e=_0x2a948e['next'];}if(null==_0x5e8ea2['newValue'])switch(_0x5e8ea2['oldValue']){case'bulleted':return _0x2b89fa(o(_0x3112ec,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2b89fa(o(_0x3112ec,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2b89fa(o(_0x3112ec,'ELEMENT_TODO_LIST'));}switch(_0x5e8ea2['newValue']){case'bulleted':return _0x4b22e0(o(_0x3112ec,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4b22e0(o(_0x3112ec,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4b22e0(o(_0x3112ec,'ELEMENT_TODO_LIST'));}}),_0x5d4a72['descriptionFactory']['registerDescriptionCallback'](_0x570a39=>{const {data:_0x1fe709}=_0x570a39;if(_0x1fe709&&'listIndent'==_0x1fe709['key'])return null==_0x1fe709['newValue']||null==_0x1fe709['oldValue']&&0x0==_0x1fe709['newValue']?_0x2bf207:void 0x0;}),_0x5d4a72['descriptionFactory']['registerDescriptionCallback'](_0x3cb267=>{if('attribute'!=_0x3cb267['type'])return;const {data:_0x173f67}=_0x3cb267;if(!_0x173f67||'listItemId'!=_0x173f67['key'])return;const _0x39ecd1=Te(_0x3cb267);return'newValue'==_0x39ecd1?{'type':'format','content':o(_0x3112ec,'*Merge:*\x20list\x20item')}:'oldValue'==_0x39ecd1?{'type':'format','content':o(_0x3112ec,'*Split:*\x20list\x20item')}:_0x2bf207;}),_0x11995d['model']['document']['registerPostFixer'](_0x3d0ba1=>this['listItemIdFixer'](_0x3d0ba1)),_0x11995d['model']['document']['registerPostFixer'](_0x24a3d5=>this['noTrackChangesFixer'](_0x24a3d5)),_0x11995d['model']['document']['on']('change:data',(_0x73e8c2,_0x259d85)=>{if(_0x259d85['isUndo']||!_0x259d85['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x388fbd){if(_0x388fbd['batch']['isUndo']||!_0x388fbd['batch']['isLocal'])return!0x1;let _0x1964df=!0x1;const _0x53f05a=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x48fbef=>_0x48fbef['data']&&'listItemId'==_0x48fbef['data']['key'])['filter'](_0x26aa1d=>_0x26aa1d['data']['newValue']&&_0x26aa1d['data']['oldValue']);for(const _0x29ee34 of _0x53f05a)Te(_0x29ee34)||(_0x388fbd['removeMarker'](_0x29ee34['getFirstMarker']()),_0x1964df=!0x0);return _0x1964df;}['noTrackChangesFixer'](_0x337017){if(_0x337017['batch']['isUndo']||!_0x337017['batch']['isLocal'])return!0x1;const _0x520d7b=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x520d7b['trackChangesCommand']['value'])return!0x1;let _0x2c130e=!0x1;const _0x136fcf=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2549a9=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3214ce=>'attribute'==_0x3214ce['type'])['filter'](_0x3d56ea=>_0x136fcf['includes'](_0x3d56ea['attributeKey']));if(0x0==_0x2549a9['length'])return _0x2c130e;for(const _0x2cfac2 of _0x2549a9){const _0x7ab487=_0x520d7b['_findSuggestions'](_0x2cfac2['range'],'attribute')['filter'](_0x2c0108=>!_0x2c0108['meta']['isNextTo'])['map'](_0x212fbc=>_0x212fbc['suggestion'])['filter'](_0x3eeb68=>{const _0x5bfa5c=_0x520d7b['_getAttributeKey'](_0x3eeb68);return _0x136fcf['includes'](_0x5bfa5c);});if(_0x7ab487['length']){for(const _0x18dc36 of _0x7ab487)_0x337017['removeMarker'](_0x18dc36['getFirstMarker']());_0x2c130e=!0x0;}}return _0x2c130e;}['assureChains'](){const _0x31f099=this['editor']['plugins']['get']('TrackChangesEditing'),_0x393ecb=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5051f3;const _0x55e0f3=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4c6901=>{if(_0x4c6901['data']['oldRange']||!_0x4c6901['data']['newRange'])return null;if(!_0x4c6901['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x207ab9}=_0x31f099['_splitMarkerName'](_0x4c6901['name']);if(!_0x31f099['hasSuggestion'](_0x207ab9))return null;const _0x4dc647=_0x31f099['getSuggestion'](_0x207ab9);return _0x393ecb['includes'](_0x4dc647['data']['key']);})['map'](_0x5e5461=>{const {id:_0x13ff76}=_0x31f099['_splitMarkerName'](_0x5e5461['name']),_0x42bc93=_0x31f099['getSuggestion'](_0x13ff76);return _0x5051f3=_0x42bc93['attributes']['groupId'],_0x42bc93['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x55e0f3['size'])return;const _0x2d7a8f=_0x31f099['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x337192=>'attribute'==_0x337192['type']&&_0x337192['data']&&_0x393ecb['includes'](_0x337192['data']['key'])&&_0x337192['attributes']['groupId']!=_0x5051f3)['map'](_0x51ccd3=>({'listItem':_0x51ccd3['getFirstRange']()['start']['nodeAfter'],'groupId':_0x51ccd3['attributes']['groupId']})),_0x3b0681=new Set();for(const {groupId:_0x345c78,listItem:_0x2f1749}of _0x2d7a8f)_0x55e0f3['has'](_0x2f1749)&&_0x3b0681['add'](_0x345c78);for(const _0x1f9fe0 of _0x31f099['getSuggestions']())_0x3b0681['has'](_0x1f9fe0['attributes']['groupId'])&&_0x1f9fe0['setAttribute']('groupId',_0x5051f3);}['_supportLegacySuggestions'](){const _0x4a3775=this['editor'],_0x2e783f=_0x4a3775['locale'],_0x2732eb=_0x4a3775['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2732eb['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x37f1a5,_0x17b4f6){const _0x18b98f=[];for(let _0x558f74 of _0x37f1a5)_0x558f74['start']['nodeAfter']===_0x558f74['end']['parent']&&(_0x558f74=_0x4a3775['model']['createRange'](_0x4a3775['model']['createPositionAt'](_0x558f74['start']['nodeAfter'],0x0))),_0x18b98f['push'](_0x558f74);_0x4a3775['model']['change'](_0x19717c=>{const _0x460e44=_0x4a3775['model']['document']['selection'],_0x2616cc=Array['from'](_0x460e44['getRanges']())['map'](_0xf13071=>_0xd7f50['fromRange'](_0xf13071));_0x19717c['setSelection'](_0x18b98f),_0x4a3775['commands']['get'](_0x17b4f6['commandName'])['refresh'](),_0x17b4f6['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4a3775['execute'](_0x17b4f6['commandName'],..._0x17b4f6['commandParams']),_0x19717c['setSelection'](_0x2616cc);for(const _0x1a4bcb of _0x2616cc)_0x1a4bcb['detach']();});}),_0x2732eb['descriptionFactory']['registerElementLabel'](function(_0x8bcdc0){const _0x166611=!_0x4a3775['model']['schema']['isObject'](_0x8bcdc0),_0x36c805=_0x8bcdc0['previousSibling'],_0x4d1a70=_0x8bcdc0['nextSibling'],_0x15865d=_0x8bcdc0['getAttribute']('listItemId'),_0x161a9b=!_0x36c805||_0x36c805['getAttribute']('listItemId')!==_0x15865d,_0x142c64=!_0x4d1a70||_0x4d1a70['getAttribute']('listItemId')!==_0x15865d;return _0x166611&&Boolean(_0x15865d)&&_0x161a9b&&_0x142c64;},_0x56c3d5=>o(_0x2e783f,'ELEMENT_LIST_ITEM',_0x56c3d5));}['_registerLegacyDescription'](){const _0x2c611d=this['editor'],_0x1188bb=_0x2c611d['locale'];function _0x5653ba(_0x158520){const _0x5510e5=_0x2c611d['commands']['get']('bulletedList')['value'],_0x8759e3=_0x2c611d['commands']['get']('numberedList')['value'];return'numberedList'===_0x158520?_0x5510e5:_0x8759e3;}_0x2c611d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x93ff3e){if('formatBlock'!=_0x93ff3e['type'])return;const {data:_0xc4c88d}=_0x93ff3e;if(!_0xc4c88d)return;let _0x1c6f92,_0x24b968,_0x2027f3,_0x1320a2;switch(_0xc4c88d['commandName']){case'bulletedList':_0x2027f3=_0xc4c88d['commandParams'][0x0]['forceValue'],_0x1320a2=_0x5653ba(_0xc4c88d['commandName']),_0x1c6f92=_0x2027f3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1320a2&&_0x2c611d['config']['get']('list.multiBlock')||(_0x1c6f92='*Change\x20to:*\x20%0'),_0x24b968={'type':'format','content':o(_0x1188bb,_0x1c6f92,o(_0x1188bb,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2027f3=_0xc4c88d['commandParams'][0x0]['forceValue'],_0x1320a2=_0x5653ba(_0xc4c88d['commandName']),_0x1c6f92=_0x2027f3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1320a2&&_0x2c611d['config']['get']('list.multiBlock')||(_0x1c6f92='*Change\x20to:*\x20%0'),_0x24b968={'type':'format','content':o(_0x1188bb,_0x1c6f92,o(_0x1188bb,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1c6f92='*Indent:*\x20%0',_0x24b968={'type':'format','content':o(_0x1188bb,_0x1c6f92,o(_0x1188bb,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1c6f92=function(_0x527547){const _0x1bd6f8=_0x527547['getFirstRange']();let _0xea03a3=_0x1bd6f8['start']['nodeAfter'];for(;_0xea03a3&&_0x1bd6f8['containsItem'](_0xea03a3);){if(_0xea03a3['getAttribute']('listIndent')>0x0)return!0x1;_0xea03a3=_0xea03a3['nextSibling'];}return!0x0;}(_0x93ff3e)?o(_0x1188bb,'*Format:*\x20remove\x20from\x20%0',o(_0x1188bb,function(_0x57a278){return'ELEMENT_'+_0x57a278['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x93ff3e))):o(_0x1188bb,'*Outdent:*\x20%0',o(_0x1188bb,'ELEMENT_LIST_ITEM')),_0x24b968={'type':'format','content':_0x1c6f92};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xc4c88d['multipleBlocks']&&(_0x1c6f92='*Merge:*\x20%0',_0x24b968={'type':'deletion','content':o(_0x1188bb,_0x1c6f92,o(_0x1188bb,'ELEMENT_LIST_ITEM'))});}return _0x24b968;});}}function Te(_0x3c4eae){let _0x108b02=_0x3c4eae['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x108b02;){const _0x2c8d70=_0x108b02['getAttribute']('listItemId');if(!_0x2c8d70)return!0x1;if(_0x2c8d70==_0x3c4eae['data']['newValue'])return'newValue';if(_0x2c8d70==_0x3c4eae['data']['oldValue'])return'oldValue';_0x108b02=_0x108b02['previousSibling'];}return!0x1;}class q extends _0x2bddd5{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x63df33=this['editor']['config']['get']('list.properties'),_0x38bf67=this['editor']['plugins']['get']('TrackChangesEditing');_0x63df33['styles']&&(_0x38bf67['enableDefaultAttributesIntegration']('listStyle'),_0x38bf67['registerBlockAttribute']('listStyle')),_0x63df33['reversed']&&(_0x38bf67['enableDefaultAttributesIntegration']('listReversed'),_0x38bf67['registerBlockAttribute']('listReversed')),_0x63df33['startIndex']&&(_0x38bf67['enableDefaultAttributesIntegration']('listStart'),_0x38bf67['registerBlockAttribute']('listStart'));const _0x5c3ec6={'type':'format','content':''};_0x38bf67['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3fe9e8=this['editor']['locale'];_0x38bf67['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3fe9e8,'FORMAT_LIST_REVERSED')),_0x38bf67['descriptionFactory']['registerDescriptionCallback'](_0x12794e=>{const {data:_0x174f89}=_0x12794e;if(_0x174f89&&'listReversed'==_0x174f89['key'])return null==_0x174f89['newValue']||0x0==_0x174f89['newValue']&&null==_0x174f89['oldValue']?_0x5c3ec6:void 0x0;}),_0x38bf67['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3fe9e8,'FORMAT_LIST_START')),_0x38bf67['descriptionFactory']['registerDescriptionCallback'](_0x5a1954=>{const {data:_0x144e1d}=_0x5a1954;if(_0x144e1d&&'listStart'==_0x144e1d['key'])return null==_0x144e1d['newValue']||0x1==_0x144e1d['newValue']&&null==_0x144e1d['oldValue']?_0x5c3ec6:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3eebd3=>{if(_0x3eebd3['batch']['isUndo'])return!0x1;let _0x3d4c81=!0x1;const _0x3e2399=_0x38bf67['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x701dd6=>{const _0x334ae5=_0x38bf67['_getAttributeKey'](_0x701dd6);return'listStart'==_0x334ae5||'listReversed'==_0x334ae5;});for(const _0x5ea815 of _0x3e2399){const _0x4d8bd5=_0x5ea815['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4d8bd5||'customNumbered'==_0x4d8bd5)continue;_0x38bf67['_findSuggestions'](_0x5ea815['getFirstRange'](),'attribute')['find'](_0x980d2f=>'listType'==_0x38bf67['_getAttributeKey'](_0x980d2f['suggestion']))||(_0x3eebd3['removeMarker'](_0x5ea815['getFirstMarker']()),_0x3d4c81=!0x0);}return _0x3d4c81;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2de852){const _0xb59b21=this['editor']['locale'],{data:_0xc6dd}=_0x2de852,_0x1b9ef4={'type':'format','content':''};if(!_0xc6dd||'listStyle'!=_0xc6dd['key'])return;if(!_0xc6dd['oldValue'])return'default'==_0xc6dd['newValue']?_0x1b9ef4:{'type':'format','content':''+o(_0xb59b21,'*Set\x20format:*\x20%0',o(_0xb59b21,this['_getTranslationKeyForListStyle'](_0xc6dd['newValue'])))};if(!_0xc6dd['newValue']){if('default'==_0xc6dd['oldValue'])return _0x1b9ef4;let _0x329698=_0x2de852['head'];for(;_0x329698;){if(_0x329698['data']&&'listType'==_0x329698['data']['key']&&_0x329698['data']['newValue'])return _0x1b9ef4;_0x329698=_0x329698['next'];}return{'type':'format','content':''+o(_0xb59b21,'*Remove\x20format:*\x20%0',o(_0xb59b21,this['_getTranslationKeyForListStyle'](_0xc6dd['oldValue'])))};}if('default'!=_0xc6dd['newValue'])return{'type':'format','content':''+o(_0xb59b21,'*Set\x20format:*\x20%0',o(_0xb59b21,this['_getTranslationKeyForListStyle'](_0xc6dd['newValue'])))};let _0x3a16bc=_0x2de852['head'];for(;_0x3a16bc;){if(_0x3a16bc['data']&&'listType'==_0x3a16bc['data']['key']&&_0x3a16bc['data']['newValue']&&_0x3a16bc['data']['oldValue'])return _0x1b9ef4;_0x3a16bc=_0x3a16bc['next'];}return{'type':'format','content':o(_0xb59b21,'*Set\x20format:*\x20%0',o(_0xb59b21,'ELEMENT_'+_0x2de852['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2ff647=this['editor'],_0x1c2a2c=_0x2ff647['locale'];_0x2ff647['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30e525=>{if('formatBlock'!=_0x30e525['type'])return;const {data:_0xd7eb21}=_0x30e525;if(!_0xd7eb21)return;let _0x31b316,_0x4840dd;switch(_0xd7eb21['commandName']){case'listStyle':_0x31b316='*Change\x20to:*\x20%0',_0x4840dd={'type':'format','content':o(_0x1c2a2c,_0x31b316,o(_0x1c2a2c,this['_getTranslationKeyForListStyle'](_0xd7eb21['commandParams'][0x0]['type'])))};break;case'listReversed':_0x31b316=_0xd7eb21['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4840dd={'type':'format','content':o(_0x1c2a2c,_0x31b316)};break;case'listStart':_0x31b316='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4840dd={'type':'format','content':o(_0x1c2a2c,_0x31b316,_0xd7eb21['commandParams'][0x0]['startIndex'])};}return _0x4840dd;});}['_getTranslationKeyForListStyle'](_0x4ac692){return'ELEMENT_'+function(_0x48460f){if(Se['includes'](_0x48460f))return'bulleted';if(_e['includes'](_0x48460f))return'numbered';return null;}(_0x4ac692)['toUpperCase']()+'_LIST_'+_0x4ac692['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x2bddd5{['afterInit'](){const _0x1ef941=this['editor'];_0x1ef941['commands']['get']('emoji')&&_0x1ef941['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x2bddd5{static get['requires'](){return[_0x399c1c];}['init'](){const _0x596cd1=this['editor'],_0x2e758f=_0x596cd1['plugins']['get']('TrackChangesEditing'),_0x2b8031=_0x596cd1['commands']['get']('enter');_0x2e758f['enableCommand']('enter',()=>{_0x596cd1['model']['change'](_0x44ceaf=>{const _0x298882=_0x596cd1['model']['document']['selection'],_0x4d9ab6=_0x298882['getFirstPosition'](),_0x5a478a=_0xd7f50['fromRange'](_0x298882['getFirstRange']());if(_0x2b8031['enterBlock'](_0x44ceaf)){const _0xb6eaed=_0x596cd1['model']['createPositionAt'](_0x4d9ab6['parent']['nextSibling'],0x0),_0x52d5e5=_0x44ceaf['createRange'](_0x4d9ab6,_0xb6eaed);_0x2e758f['markInsertion'](_0x52d5e5);}else _0x44ceaf['setSelection'](_0x44ceaf['createRange'](_0x5a478a['end']));_0x5a478a['detach'](),_0x2b8031['fire']('afterExecute',{'writer':_0x44ceaf});});}),_0x596cd1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x596cd1,'split'),{'priority':'high'}),_0x596cd1['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x38157e,_0x54e4f4,_0x501db9)=>{const _0x588c7a=_0x501db9['mapper']['markerNameToElements'](_0x54e4f4['markerName']);if(_0x588c7a){for(const _0x4fdc59 of _0x588c7a)_0x4fdc59['hasClass']('ck-suggestion-marker-split')&&(_0x501db9['mapper']['unbindElementFromMarkerName'](_0x4fdc59,_0x54e4f4['markerName']),_0x501db9['writer']['remove'](_0x4fdc59));}},{'priority':'high'}),_0x596cd1['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x567f9a,_0x2d486f,_0x3b6fe3)=>{_0x3b6fe3['options']['showSuggestionHighlights']&&De(_0x596cd1,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x567f9a,_0x2d486f,_0x3b6fe3);},{'priority':'high'});}}class Q extends _0x2bddd5{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4aa2a3=this['editor']['plugins']['get']('TrackChangesEditing');_0x4aa2a3['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4aa2a3['enableCommand']('findNext'),_0x4aa2a3['enableCommand']('findPrevious'),_0x4aa2a3['enableCommand']('replace'),_0x4aa2a3['enableCommand']('replaceAll');}['handleFindCommand'](_0x575c9f,_0x2788de,_0x3ac1aa={}){const _0x53e5d9=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x575c9f(_0x2ff81b=>{let _0x55fedd=('string'==typeof _0x2788de?_0x53e5d9['findByTextCallback'](_0x2788de,_0x3ac1aa):_0x2788de)(_0x2ff81b);Array['isArray'](_0x55fedd)&&(_0x55fedd={'results':_0x55fedd,'searchText':'string'==typeof _0x2788de?_0x2788de:''});const _0x4c3087=_0x55fedd['results']['filter'](_0x4be462=>!0x1===this['_isInDeletionRange'](_0x4be462,_0x2ff81b['item']));return{..._0x55fedd,'results':_0x4c3087};},_0x3ac1aa);}['_isInDeletionRange'](_0x27aaf4,_0x34c4b8){const _0x4b408e=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x34c4b8,_0x27aaf4['start']),this['editor']['model']['createPositionAt'](_0x34c4b8,_0x27aaf4['end']));for(const _0x4d7b01 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4b408e['getIntersection'](_0x4d7b01['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x2bddd5{['afterInit'](){const _0x22c25e=this['editor']['locale'],_0x149d47=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x32d3b2,commandName:_0x5bc947}of eo)this['editor']['plugins']['has'](_0x32d3b2)&&(_0x149d47['enableDefaultAttributesIntegration'](_0x5bc947),_0x149d47['registerInlineAttribute'](_0x5bc947));_0x149d47['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x22c25e,'FORMAT_FONT_SIZE')),_0x149d47['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x22c25e,'FORMAT_FONT_FAMILY')),_0x149d47['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x22c25e,'FORMAT_FONT_COLOR')),_0x149d47['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x22c25e,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5977a4=this['editor'],_0x4fb7bf=_0x5977a4['locale'];_0x5977a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b5e4a=>{const _0x59833e=_0x4fb7bf['t'];if('formatInline'!=_0x1b5e4a['type'])return;const {data:_0x53abe6}=_0x1b5e4a;if(null!=_0x53abe6){if('fontSize'==_0x53abe6['commandName']){const _0x2c6422=_0x53abe6['commandParams'][0x0]['value'];if(_0x2c6422){const _0x2f3d96=_0x59833e(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3f7150=>_0x3f7150['model']==_0x2c6422)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4fb7bf,'*Set\x20font\x20size:*\x20%0',_0x2f3d96)};}return{'type':'format','content':o(_0x4fb7bf,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x53abe6['commandName']){const _0x429769=_0x53abe6['commandParams'][0x0]['value'];return _0x429769?{'type':'format','content':o(_0x4fb7bf,'*Set\x20font\x20family:*\x20%0',_0x429769)}:{'type':'format','content':o(_0x4fb7bf,'*Reset\x20font\x20family*')};}if('fontColor'==_0x53abe6['commandName']){const _0x183993=_0x53abe6['commandParams'][0x0]['value'];if(_0x183993){const _0x23f47f=_0x38fe7e(this['editor']['config']['get']('fontColor.colors'))['find'](_0x491bde=>_0x491bde['model']==_0x183993);let _0x5e1b64=_0x183993,_0x5cf7c3='';return _0x23f47f&&(_0x5e1b64=_0x23f47f['label'],_0x5cf7c3=_0x59833e(_0x5e1b64)['toLowerCase']()),{'type':'format','content':o(_0x4fb7bf,'*Set\x20font\x20color:*\x20%0',_0x5cf7c3)['trim'](),'color':{'value':_0x183993,'title':_0x5cf7c3||_0x5e1b64}};}return{'type':'format','content':o(_0x4fb7bf,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x53abe6['commandName']){const _0x5bf341=_0x53abe6['commandParams'][0x0]['value'];if(_0x5bf341){const _0x1d807c=_0x38fe7e(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x24d78d=>_0x24d78d['model']==_0x5bf341);let _0x2bf6ef=_0x5bf341,_0x1382ad='';return _0x1d807c&&(_0x2bf6ef=_0x1d807c['label'],_0x1382ad=_0x59833e(_0x2bf6ef)['toLowerCase']()),{'type':'format','content':o(_0x4fb7bf,'*Set\x20font\x20background\x20color:*\x20%0',_0x1382ad)['trim'](),'color':{'value':_0x5bf341,'title':_0x1382ad||_0x2bf6ef}};}return{'type':'format','content':o(_0x4fb7bf,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x2bddd5{['afterInit'](){const _0x5cdf55=this['editor'],_0x5aeae8=_0x5cdf55['plugins']['get']('TrackChangesEditing'),_0x227ef6=_0x5cdf55['commands']['get']('copyFormat'),_0x57a670=_0x5cdf55['commands']['get']('pasteFormat');_0x227ef6&&_0x57a670&&(_0x5aeae8['enableDefaultAttributesIntegration']('pasteFormat'),_0x5aeae8['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x331631=this['editor'],_0x1e0833=_0x331631['locale'];_0x331631['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa91611=>{if('formatBlock'!=_0xa91611['type']&&'formatInline'!=_0xa91611['type'])return;const {data:_0x2eeb27}=_0xa91611;if(_0x2eeb27&&'pasteFormat'===_0x2eeb27['commandName']){const _0x4c5e7e=[],_0x483b3e=_0x2eeb27['commandParams'][0x0];for(const [_0x4302c1,_0x5bd046]of Object['entries'](_0x483b3e))_0x4c5e7e['push'](ro(_0x331631,_0x4302c1,_0x5bd046));return _0x4c5e7e['length']?{'type':'format','content':o(_0x1e0833,'*Set\x20format\x20to:*\x20%0',_0x4c5e7e['join'](',\x20'))}:{'type':'format','content':o(_0x1e0833,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x20b73f,_0xbb9f19,_0x495feb){const _0x482493=_0x20b73f['locale']['t'],_0x57e971=_0xbb9f19['split'](/(?=[A-Z])/)['join']('\x20'),_0x9c1f61=_0x482493(_0x57e971['charAt'](0x0)['toUpperCase']()+_0x57e971['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x495feb)return _0x9c1f61;if('fontColor'===_0xbb9f19||'fontBackgroundColor'===_0xbb9f19){const _0x2a1ad9=_0x38fe7e(_0x20b73f['config']['get']('fontColor.colors'))['find'](_0x53a32f=>_0x53a32f['model']==_0x495feb);return _0x9c1f61+'\x20('+(_0x2a1ad9?_0x482493(_0x2a1ad9['label'])['toLowerCase']():_0x495feb)+')';}if('fontSize'===_0xbb9f19&&isNaN(parseFloat(_0x495feb))){const _0x11680a=_0x20b73f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x20b73f['config']['get']('fontSize.options'))['find'](_0x3f09c3=>_0x3f09c3['model']==_0x495feb);return _0x9c1f61+'\x20('+(_0x11680a?_0x482493(_0x11680a['title'])['toLowerCase']():_0x495feb)+')';}return _0x9c1f61+'\x20('+_0x495feb+')';}class Z extends _0x2bddd5{['_headingOptions'];['afterInit'](){const _0x2a4451=this['editor'];if(!_0x2a4451['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2a4451['config']['get']('heading.options');const _0x5017f9=_0x2a4451['locale'],_0x2760cb=_0x2a4451['plugins']['get']('TrackChangesEditing');_0x2760cb['enableDefaultAttributesIntegration']('heading');for(const _0x38be10 of this['_headingOptions'])'paragraph'!=_0x38be10['model']&&_0x2760cb['descriptionFactory']['registerElementLabel'](_0x38be10['model'],_0x55885e=>{const _0x582e61=this['_getHeadingLevel'](_0x38be10['model']);return null!==_0x582e61?_0x442f9c(_0x55885e,_0x582e61):_0x4b17d8(_0x55885e,_0x38be10['title']);});function _0x442f9c(_0x22dd18,_0x38386a){return o(_0x5017f9,'ELEMENT_HEADING',[_0x22dd18,_0x38386a]);}function _0x4b17d8(_0x323d13,_0x253a1b){return o(_0x5017f9,'ELEMENT_HEADING_CUSTOM',[_0x323d13,_0x253a1b]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45d6ce=this['editor'],_0x54bdb8=_0x45d6ce['locale'];function _0x4932eb(_0x2201b0,_0x53ea70){return o(_0x54bdb8,'ELEMENT_HEADING_CUSTOM',[_0x2201b0,_0x53ea70]);}_0x45d6ce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xea2091=>{if('formatBlock'!=_0xea2091['type'])return;const {data:_0x49b0b4}=_0xea2091;if(_0x49b0b4&&'heading'==_0x49b0b4['commandName']){const _0x14ed09=_0x49b0b4['commandParams'][0x0]['value'],_0x1fb019=this['_getHeadingLevel'](_0x14ed09);if(null!==_0x1fb019)return{'type':'format','content':o(_0x54bdb8,'*Change\x20to:*\x20%0',(_0x558289=0x1,_0xfadfac=_0x1fb019,o(_0x54bdb8,'ELEMENT_HEADING',[_0x558289,_0xfadfac])))};const _0x4465f5=this['_headingOptions']['find'](_0x27788e=>_0x27788e['model']===_0x14ed09)['title'];return{'type':'format','content':o(_0x54bdb8,'*Change\x20to:*\x20%0',_0x4932eb(0x1,_0x4465f5))};}var _0x558289,_0xfadfac;});}['_getHeadingLevel'](_0x4f754d){const _0x33fd02=_0x4f754d['match'](/^heading(\d+)/);if(_0x33fd02)return _0x33fd02[0x1];const _0x276679=this['_headingOptions']?.['find'](_0x28a55c=>_0x28a55c['model']==_0x4f754d);if(_0x276679&&_0x276679['view']){const _0x216992=_0x276679['view'],_0x54d0cc=(_0x216992['name']??_0x216992)['match'](/^h(\d+)/);if(_0x54d0cc)return _0x54d0cc[0x1];}return null;}}class tt extends _0x2bddd5{['afterInit'](){const _0x171f82=this['editor'];if(!_0x171f82['plugins']['has']('HighlightEditing'))return;const _0x50b699=_0x171f82['plugins']['get']('TrackChangesEditing'),_0x189aa9=_0x171f82['locale'];_0x50b699['enableDefaultAttributesIntegration']('highlight'),_0x50b699['registerInlineAttribute']('highlight'),_0x50b699['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x189aa9,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b4ade=this['editor'],_0x2e57ef=_0x5b4ade['locale'];_0x5b4ade['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5262a2=>{if('formatInline'!=_0x5262a2['type'])return;const {data:_0x3bb05f}=_0x5262a2;if(_0x3bb05f&&'highlight'==_0x3bb05f['commandName']){const _0x35a8cb=_0x2e57ef['t'],_0x1c9e2c=_0x3bb05f['commandParams'][0x0]['value'];if(_0x1c9e2c){const _0xce0a69=_0x5b4ade['config']['get']('highlight.options')['find'](_0x125c63=>_0x125c63['model']==_0x1c9e2c),_0x559227=_0x35a8cb(_0xce0a69['title'])['toLowerCase']();return{'type':'format','content':o(_0x2e57ef,'*Set\x20highlight:*\x20%0',_0x559227),'color':{'value':_0xce0a69['color'],'title':_0xce0a69['title']}};}return{'type':'format','content':o(_0x2e57ef,'*Remove\x20highlight*',o(_0x2e57ef,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x2bddd5{['afterInit'](){const _0x429014=this['editor'];if(!_0x429014['plugins']['has']('HorizontalLineEditing'))return;_0x429014['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x378fb7=_0x429014['plugins']['get']('TrackChangesEditing'),_0x493927=_0x429014['locale'];_0x378fb7['descriptionFactory']['registerElementLabel']('horizontalLine',_0x50e50a=>o(_0x493927,'ELEMENT_HORIZONTAL_LINE',_0x50e50a)),_0x429014['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x56995b,{writer:_0x1d8b76,options:_0x4702f5})=>{if(!_0x4702f5['showSuggestionHighlights'])return null;const _0x17c493=_0x1d8b76['createContainerElement']('div'),_0x344d49=_0x1d8b76['createEmptyElement']('hr');return _0x1d8b76['addClass']('ck-horizontal-line',_0x17c493),_0x1d8b76['insert'](_0x1d8b76['createPositionAt'](_0x17c493,0x0),_0x344d49),_0x17c493;},'converterPriority':'high'});}}class nt extends _0x2bddd5{['afterInit'](){const _0x6ba8f9=this['editor'];if(!_0x6ba8f9['plugins']['has']('HtmlEmbed'))return;const _0x28389f=_0x6ba8f9['plugins']['get']('TrackChangesEditing'),_0x15abdb=_0x6ba8f9['locale'];_0x28389f['descriptionFactory']['registerElementLabel']('rawHtml',_0x21f5e3=>o(_0x15abdb,'ELEMENT_HTML_EMBED',_0x21f5e3)),_0x28389f['enableDefaultAttributesIntegration']('htmlEmbed'),_0x28389f['registerBlockAttribute']('value'),_0x28389f['descriptionFactory']['registerDescriptionCallback'](_0x4cad4f=>{if('attribute'!=_0x4cad4f['type'])return;const {data:_0x4d27a1}=_0x4cad4f;if(_0x4d27a1&&'value'==_0x4d27a1['key']&&_0x4cad4f['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3ed3f5=o(_0x15abdb,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x15abdb,'*Change\x20%0\x20content*',_0x3ed3f5)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x183e0a=this['editor'],_0x13ecd0=_0x183e0a['locale'];_0x183e0a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34a59f=>{if('formatBlock'!=_0x34a59f['type'])return;const {data:_0x4a5d16}=_0x34a59f;if(_0x4a5d16&&'htmlEmbed'==_0x4a5d16['commandName']){const _0x5e5153=o(_0x13ecd0,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x13ecd0,'*Change\x20%0\x20content*',_0x5e5153)};}});}}class et extends _0x2bddd5{['afterInit'](){const _0xe764e=this['editor'];if(!_0xe764e['plugins']['has']('ImageEditing'))return;const _0x3aba5a=_0xe764e['plugins']['get']('TrackChangesEditing'),_0x3a85b8=_0xe764e['plugins']['get']('ImageUtils'),_0x56bff7=_0xe764e['locale'];_0x3aba5a['enableCommand']('insertImage'),_0x3aba5a['descriptionFactory']['registerElementLabel']('imageBlock',_0x1e4601=>o(_0x56bff7,'ELEMENT_IMAGE',_0x1e4601)),_0x3aba5a['descriptionFactory']['registerElementLabel']('imageInline',_0x1f74c5=>o(_0x56bff7,'ELEMENT_INLINE_IMAGE',_0x1f74c5)),_0x3aba5a['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x56bff7,'ELEMENT_CAPTION')),_0xe764e['plugins']['has']('ImageUploadEditing')&&_0x3aba5a['enableCommand']('uploadImage'),_0xe764e['plugins']['has']('ImageBlockEditing')&&_0xe764e['plugins']['has']('ImageInlineEditing')&&(_0x3aba5a['enableCommand']('imageTypeInline',(_0x4f050c,_0x1e5736)=>{const _0x2da9e9=_0x3a85b8['getClosestSelectedImageElement'](_0xe764e['model']['document']['selection']);_0xe764e['model']['change'](()=>{_0x3aba5a['markBlockFormat'](_0x2da9e9,{'commandName':'imageTypeInline','commandParams':[_0x1e5736]},[],'convertBlockImageToInline');});}),_0x3aba5a['enableCommand']('imageTypeBlock',(_0xa5f33d,_0xbd0184)=>{_0xe764e['model']['change'](_0x4053d6=>{let _0x271822=_0x3a85b8['getClosestSelectedImageElement'](_0xe764e['model']['document']['selection']),_0xbd216f=_0x4053d6['createRangeOn'](_0x271822);const _0x5b528a=_0x26c143['fromPosition'](_0xbd216f['start'],'toPrevious'),_0xb11c8=_0x26c143['fromPosition'](_0xbd216f['end'],'toNext');_0x3aba5a['forceDefaultExecution'](()=>_0xa5f33d(_0xbd0184)),_0x271822=_0x3a85b8['getClosestSelectedImageElement'](_0xe764e['model']['document']['selection']),_0xbd216f=_0x4053d6['createRangeOn'](_0x271822);const _0x23a33a=_0x4053d6['createRange'](_0x5b528a,_0xb11c8);_0x5b528a['detach'](),_0xb11c8['detach'](),_0x3aba5a['markBlockFormat'](_0x271822,{'commandName':'imageTypeInline','commandParams':[_0xbd0184]},[],'convertInlineImageToBlock'),_0x23a33a['start']['isBefore'](_0xbd216f['start'])&&_0x3aba5a['markInsertion'](_0x4053d6['createRange'](_0x23a33a['start'],_0xbd216f['start']),'convertInlineImageToBlock'),_0xbd216f['end']['isBefore'](_0x23a33a['end'])&&_0x3aba5a['markInsertion'](_0x4053d6['createRange'](_0xbd216f['end'],_0x23a33a['end']),'convertInlineImageToBlock');});}),_0x3aba5a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3aba5a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3aba5a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3aba5a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3aba5a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3aba5a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3999a1])=>{const _0x2fb126=_0x3aba5a['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x39e8f4=_0x3999a1['start'],_0x15e7d8=_0x3999a1['end'];const _0x2c0caa=_0xe764e['model']['schema']['getNearestSelectionRange'](_0x39e8f4,'backward'),_0x57a4d3=_0xe764e['model']['schema']['getNearestSelectionRange'](_0x15e7d8,'forward');_0x2c0caa['isCollapsed']&&(_0x39e8f4=_0x2c0caa['start']),_0x57a4d3['isCollapsed']&&(_0x15e7d8=_0x57a4d3['end']),_0x2fb126([_0xe764e['model']['createRange'](_0x39e8f4,_0x15e7d8)]);}),_0x3aba5a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4c05d0),_0x3aba5a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4c05d0)),_0xe764e['plugins']['has']('ImageCaptionEditing')&&(_0x3aba5a['enableCommand']('toggleImageCaption',(_0x4f21e2,_0x579e28)=>{const _0x4900c0=_0xe764e['plugins']['get']('ImageCaptionUtils');let _0x388463=_0x3a85b8['getClosestSelectedImageElement'](_0xe764e['model']['document']['selection']),_0x1e86c3=_0x4900c0['getCaptionFromImageModelElement'](_0x388463);_0xe764e['model']['change'](()=>{if(_0x1e86c3)return void _0x3aba5a['markDeletion'](_0xe764e['model']['createRangeOn'](_0x1e86c3));const _0x5704f9=_0x3a85b8['isBlockImage'](_0x388463);_0x4f21e2(_0x579e28),_0x388463=_0x3a85b8['getClosestSelectedImageElement'](_0xe764e['model']['document']['selection']),_0x1e86c3=_0x4900c0['getCaptionFromImageModelElement'](_0x388463),_0x3aba5a['markInsertion'](_0xe764e['model']['createRangeOn'](_0x1e86c3),_0x5704f9?null:'imageCaption');});}),_0x3aba5a['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4c05d0));const _0x1a55b9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x568147(_0x2b2195,_0x2d681a){const _0x4de3d6=_0x1a55b9['findIndex'](({type:_0x299bab,subType:_0x31a27c})=>_0x2b2195['type']==_0x299bab&&_0x2b2195['subType']==_0x31a27c),_0x240d36=_0x1a55b9['findIndex'](({type:_0xfd1ab1,subType:_0x416b45})=>_0x2d681a['type']==_0xfd1ab1&&_0x2d681a['subType']==_0x416b45);if(_0x4de3d6<0x0||_0x240d36<0x0)return!0x1;const _0x59198d=_0x2b2195['getFirstRange'](),_0x565324=_0x2d681a['getFirstRange']();if((0x0==_0x4de3d6||0x1==_0x4de3d6)&&0x2==_0x240d36&&_0x59198d['isIntersecting'](_0x565324))return!0x0;if(0x2==_0x4de3d6&&0x3==_0x240d36){const _0x494078=_0x3aba5a['_findSuggestions'](_0x59198d,'insertion')['filter'](({suggestion:_0x85d563,meta:_0x19bb88})=>_0x19bb88['isOwn']&&'convertInlineImageToBlock'==_0x85d563['subType']);if(_0x494078['length']>0x1&&_0x565324['end']['isEqual'](_0x59198d['start']))return!0x0;if(0x1==_0x494078['length']&&(_0x59198d['start']['isEqual'](_0x565324['end'])||_0x59198d['end']['isEqual'](_0x565324['start'])))return!0x0;}if(0x3==_0x4de3d6&&0x3==_0x240d36&&_0x59198d['start']['isBefore'](_0x565324['start'])){const _0x25029f=_0x59198d['end']['nodeAfter'],_0x1356c2=_0x565324['start']['nodeBefore'];return _0x3a85b8['isBlockImage'](_0x25029f)&&_0x25029f===_0x1356c2;}return!0x1;}function _0x4c05d0(_0x5d63a0,_0x28e79a){return _0x568147(_0x5d63a0,_0x28e79a)?[_0x5d63a0,_0x28e79a]:_0x568147(_0x28e79a,_0x5d63a0)?[_0x28e79a,_0x5d63a0]:null;}_0xe764e['plugins']['has']('ImageResize')&&(_0x3aba5a['enableDefaultAttributesIntegration']('resizeImage'),_0x3aba5a['registerBlockAttribute']('resizedWidth'),_0x3aba5a['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x56bff7,'FORMAT_IMAGE_SIZE'))),_0xe764e['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3aba5a['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3aba5a['registerBlockAttribute']('alt')),_0xe764e['plugins']['has']('PictureEditing')&&(_0x3aba5a['registerBlockAttribute']('sources'),_0x3aba5a['descriptionFactory']['registerDescriptionCallback'](_0x4b706e=>{if('attribute'!=_0x4b706e['type'])return;const {data:_0x478b0e}=_0x4b706e;return _0x478b0e&&'sources'==_0x478b0e['key']?{'type':'format','content':''}:void 0x0;})),_0xe764e['plugins']['has']('ImageSizeAttributes')&&(_0x3aba5a['registerBlockAttribute']('width'),_0x3aba5a['registerBlockAttribute']('height'),_0x3aba5a['descriptionFactory']['registerDescriptionCallback'](_0x12015b=>{if('attribute'!=_0x12015b['type'])return;const {data:_0x429bfb}=_0x12015b;return!_0x429bfb||'width'!=_0x429bfb['key']&&'height'!=_0x429bfb['key']?void 0x0:{'type':'format','content':''};})),_0x3aba5a['descriptionFactory']['registerDescriptionCallback'](_0x48cd38=>{if(!!_0x1a55b9['find'](({type:_0x27c2a1,subType:_0x1e55e4})=>_0x48cd38['type']==_0x27c2a1&&_0x48cd38['subType']==_0x1e55e4))return _0x48cd38['previous']?{}:void 0x0;}),_0x3aba5a['descriptionFactory']['registerDescriptionCallback'](_0x2eb464=>{if('insertion'==_0x2eb464['type']||'deletion'==_0x2eb464['type']){const _0x2fb3d3=_0x2eb464['getContainedElement']();if(_0x2fb3d3&&_0x2fb3d3['is']('element','caption'))return{'type':'insertion'==_0x2eb464['type']?'addObject':'removeObject','element':_0x2fb3d3,'quantity':0x1};}}),_0x3aba5a['descriptionFactory']['registerDescriptionCallback'](_0x269191=>'formatBlock'==_0x269191['type']&&'convertInlineImageToBlock'==_0x269191['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x269191['type']&&'convertBlockImageToInline'==_0x269191['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3aba5a['descriptionFactory']['registerDescriptionCallback'](_0x15c8a7=>{if('attribute'!=_0x15c8a7['type'])return;const {data:_0x196a67}=_0x15c8a7;if(!_0x196a67||'alt'!=_0x196a67['key'])return;const _0x2fa6b1=_0x196a67['newValue'];return _0x2fa6b1?{'type':'format','content':o(_0x56bff7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2fa6b1+'\x22')}:{'type':'format','content':o(_0x56bff7,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46924e=this['editor'],_0x4ec167=_0x46924e['locale'];_0x46924e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a9b32=>{if('formatBlock'!=_0x5a9b32['type']&&'formatInline'!=_0x5a9b32['type'])return;const {data:_0x1eeb7f}=_0x5a9b32;if(_0x1eeb7f){if('imageTextAlternative'==_0x1eeb7f['commandName']){const _0x83537=_0x1eeb7f['commandParams'][0x0]['newValue'];return _0x83537?{'type':'format','content':o(_0x4ec167,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x83537+'\x22')}:{'type':'format','content':o(_0x4ec167,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1eeb7f['commandName']){const _0x2ce2c4=_0x1eeb7f['commandParams'][0x0]['width'];return _0x2ce2c4?{'type':'format','content':o(_0x4ec167,'*Set\x20image\x20width:*\x20%0',_0x2ce2c4)}:{'type':'format','content':o(_0x4ec167,'*Reset\x20image\x20width*')};}}});}}class st extends _0x2bddd5{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x36a05c=this['editor']['locale'],_0x4ee96e=this['editor']['plugins']['get']('TrackChangesEditing');_0x4ee96e['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4ee96e['registerBlockAttribute']('src'),_0x4ee96e['descriptionFactory']['registerDescriptionCallback'](_0x359a38=>{if('attribute'!=_0x359a38['type'])return;const {data:_0xe363da}=_0x359a38;return _0xe363da&&'src'==_0xe363da['key']?_0xe363da['newValue']&&_0xe363da['oldValue']?{'type':'format','content':o(_0x36a05c,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x444ded=this['editor']['plugins']['get']('TrackChangesEditing');_0x444ded['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x444ded['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x444ded['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x444ded['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdba06c=this['editor'],_0x2e6660=_0xdba06c['locale'];_0xdba06c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x375f4f=>{if('formatBlock'!=_0x375f4f['type']&&'formatInline'!=_0x375f4f['type'])return;const {data:_0x46b87e}=_0x375f4f;if(!_0x46b87e||'replaceImageSource'!=_0x46b87e['commandName'])return;return{'type':'format','content':o(_0x2e6660,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x2bddd5{['afterInit'](){const _0x1e7bc4=this['editor'];if(!_0x1e7bc4['plugins']['has']('ImageStyleEditing'))return;const _0x5442d6=_0x1e7bc4['plugins']['get']('TrackChangesEditing'),_0x5e5fde=_0x1e7bc4['plugins']['get']('ImageUtils'),_0x1625b4={};_0x5442d6['enableCommand']('imageStyle',(_0xbc0789,_0x2827f3)=>{const _0x3eaf29=_0x1e7bc4['plugins']['get']('Users')['me'],_0x13863d=_0x1e7bc4['commands']['get']('imageStyle');let _0x5d1718=_0x5e5fde['getClosestSelectedImageElement'](_0x1e7bc4['model']['document']['selection']),_0x1859c0=_0x1e7bc4['model']['createRangeOn'](_0x5d1718),_0x4f70d5=_0x13863d['value'];if(_0x4f70d5==_0x2827f3['value'])return;const _0x410891={'commandName':'imageStyle','commandParams':[_0x2827f3],'formatGroupId':_0x4bb6e6()};_0x1e7bc4['model']['change'](()=>{if(_0x5442d6['getSuggestions']()['filter'](_0x1ee834=>_0x1ee834['isInContent']&&_0x3eaf29==_0x1ee834['author']&&('formatBlock'==_0x1ee834['type']||'formatInline'==_0x1ee834['type'])&&('imageStylePreApply'==_0x1ee834['subType']||'imageStylePostApply'==_0x1ee834['subType'])&&_0x1ee834['getFirstRange']()['isEqual'](_0x1859c0))['forEach'](_0x436470=>_0x5442d6['discardSuggestion'](_0x436470['head'])),_0x5d1718=_0x5e5fde['getClosestSelectedImageElement'](_0x1e7bc4['model']['document']['selection']),_0x1859c0=_0x1e7bc4['model']['createRangeOn'](_0x5d1718),_0x13863d['refresh'](),_0x1e7bc4['commands']['get']('imageTypeInline')['refresh'](),_0x1e7bc4['commands']['get']('imageTypeBlock')['refresh'](),_0x4f70d5=_0x13863d['value'],_0x4f70d5!=_0x2827f3['value'])return _0x5e5fde['isInlineImage'](_0x5d1718)&&_0x13863d['shouldConvertImageType'](_0x2827f3['value'],_0x5d1718)?(_0xbc0789({..._0x2827f3,'setImageSizes':!0x1}),_0x5d1718=_0x5e5fde['getClosestSelectedImageElement'](_0x1e7bc4['model']['document']['selection']),void _0x5442d6['markBlockFormat'](_0x5d1718,{..._0x410891,'commandReversedParams':[{'value':_0x4f70d5||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5e5fde['isBlockImage'](_0x5d1718)?_0x5442d6['markBlockFormat'](_0x5d1718,_0x410891,[],'imageStylePostApply'):_0x5442d6['markInlineFormat'](_0x1859c0,_0x410891,'imageStylePostApply'));});});for(const _0x5f3156 of _0x1e7bc4['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1625b4[_0x5f3156['name']]=_0x5f3156['title']['toLowerCase']();_0x5442d6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5442d6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5442d6['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5442d6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3ea094])=>{_0x5e5fde['setImageNaturalSizeAttributes'](_0x3ea094['getContainedElement']());}),_0x5442d6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5bfc6c,_0x2037d7)=>{_0x5442d6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5bfc6c,{'commandName':_0x2037d7['commandName'],'commandParams':_0x2037d7['commandReversedParams']});}),_0x5442d6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x51b45f,_0x54b38d){if(_0x509d1e(_0x51b45f,_0x54b38d))return[_0x51b45f,_0x54b38d];if(_0x509d1e(_0x54b38d,_0x51b45f))return[_0x54b38d,_0x51b45f];return null;});const _0x33948a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x509d1e(_0x34f5d3,_0x263f1a){const _0x5e38fb=_0x33948a['findIndex'](({type:_0x83f25f,subType:_0x3d41d2})=>_0x34f5d3['type']==_0x83f25f&&_0x34f5d3['subType']==_0x3d41d2),_0x15926b=_0x33948a['findIndex'](({type:_0x118b69,subType:_0x4fccfc})=>_0x263f1a['type']==_0x118b69&&_0x263f1a['subType']==_0x4fccfc);if(_0x5e38fb<0x0||_0x15926b<0x0)return!0x1;const _0x18e593=_0x34f5d3['getFirstRange'](),_0x3c7f32=_0x263f1a['getFirstRange']();if((0x0==_0x5e38fb||0x1==_0x5e38fb)&&0x2==_0x15926b&&_0x18e593['isIntersecting'](_0x3c7f32))return!0x0;if(0x2==_0x5e38fb&&0x3==_0x15926b){const _0x4127c6=_0x5442d6['_findSuggestions'](_0x18e593,'insertion')['filter'](({suggestion:_0x52fc2a,meta:_0x2c109b})=>_0x2c109b['isOwn']&&'convertInlineImageToBlock'==_0x52fc2a['subType']);if(_0x4127c6['length']>0x1&&_0x3c7f32['end']['isEqual'](_0x18e593['start']))return!0x0;if(0x1==_0x4127c6['length']&&(_0x18e593['start']['isEqual'](_0x3c7f32['end'])||_0x18e593['end']['isEqual'](_0x3c7f32['start'])))return!0x0;}if(0x3==_0x5e38fb&&0x3==_0x15926b&&_0x18e593['start']['isBefore'](_0x3c7f32['start'])){const _0x5b95d6=_0x18e593['end']['nodeAfter'],_0x37afec=_0x3c7f32['start']['nodeBefore'];return _0x5e5fde['isBlockImage'](_0x5b95d6)&&_0x5b95d6===_0x37afec;}return!0x1;}_0x1e7bc4['model']['document']['registerPostFixer'](()=>{let _0x38051a=!0x1;const _0x18e7e7=Array['from'](_0x1e7bc4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1cf617,data:_0x5d82fb}of _0x18e7e7){const {group:_0x2d56f4,type:_0x7e1e54,subType:_0x1f5ad2,id:_0x31a10a}=_0x5442d6['_splitMarkerName'](_0x1cf617);if('suggestion'==_0x2d56f4&&_0x5442d6['hasSuggestion'](_0x31a10a)){if('formatBlock'==_0x7e1e54&&('imageStylePreApply'==_0x1f5ad2||'imageStylePostApply'==_0x1f5ad2)){const _0x238eec=_0x5442d6['getSuggestion'](_0x31a10a);if(_0x5d82fb['newRange']){const _0x3e7f8a=_0x238eec['getFirstRange']()['getContainedElement']();if(_0x5e5fde['isBlockImage'](_0x3e7f8a))continue;_0x5442d6['discardSuggestion'](_0x238eec),_0x38051a=!0x0;}}if('insertion'==_0x7e1e54&&'imageCaption'==_0x1f5ad2&&!_0x5d82fb['newRange']){const _0x1231cb=_0x5442d6['getSuggestion'](_0x31a10a);_0x1231cb['next']&&_0x1231cb['next']['isInContent']&&(_0x5442d6['discardSuggestion'](_0x1231cb['next']),_0x38051a=!0x0);}}}return _0x38051a;}),this['_registerLegacyDescription'](_0x1625b4);}['_registerLegacyDescription'](_0x3753d7){const _0x4b63a4=this['editor'],_0x323839=_0x4b63a4['locale'];_0x4b63a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f6742=>{if('formatBlock'!=_0x1f6742['type']&&'formatInline'!=_0x1f6742['type'])return;const {data:_0x1ef1b0}=_0x1f6742;if(!_0x1ef1b0||'imageStyle'!=_0x1ef1b0['commandName'])return;const _0x1b022a=_0x1ef1b0['commandParams'][0x0]['value'];return _0x19e09c('side'===_0x1b022a?o(_0x323839,'FORMAT_SIDE_IMAGE'):_0x3753d7[_0x1b022a]||_0x1b022a);function _0x19e09c(_0x3f8396){return{'type':'format','content':o(_0x323839,'*Format:*\x20%0',_0x3f8396)};}});}}class rt extends _0x2bddd5{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x51763f){super(_0x51763f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x67114a=this['editor'],_0x54cf73=_0x67114a['commands']['get']('importWord'),_0x59155b=_0x67114a['commands']['get']('trackChanges');_0x54cf73&&(_0x54cf73['on']('execute',(_0x1e5532,[,_0x54a488])=>{this['_trackChangesValueDuringImport']=_0x59155b['value'],_0x54a488['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x54cf73,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x54cf73,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x59155b['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x67114a['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2800d8,_0x5c52ac){const {suggestions:_0x511f33}=_0x5c52ac,_0x5dd845=this['editor']['commands']['get']('trackChanges'),_0x1c9a62=_0x5dd845['value'];this['_trackChangesValueDuringImport']!==_0x1c9a62&&(_0x5dd845['execute'](),this['_trackChangesExecuted']=!0x0),_0x511f33&&_0x511f33['forEach'](({id:_0x5eb512,type:_0x14a3ec,author:_0x252e10,created_at:_0x379721})=>{const _0x5da142={'id':_0x5eb512,'type':_0x14a3ec,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x252e10,'createdAt':_0x379721?new Date(_0x379721):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5da142);});}}class at extends _0x2bddd5{['afterInit'](){const _0x17d233=this['editor'],_0x40a247=_0x17d233['plugins']['get']('TrackChangesEditing');if(_0x17d233['plugins']['has']('IndentEditing')&&(_0x40a247['enableCommand']('indent'),_0x40a247['enableCommand']('outdent')),_0x17d233['plugins']['has']('IndentBlock')){for(const _0x595d4f of['indentBlock','outdentBlock'])_0x40a247['enableDefaultAttributesIntegration'](_0x595d4f);}const _0x1659d4=_0x17d233['locale'];_0x40a247['registerBlockAttribute']('blockIndent'),_0x40a247['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1659d4,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x72d514=this['editor'],_0x28a383=_0x72d514['locale'],_0x441d7e=_0x72d514['plugins']['get']('TrackChangesEditing');_0x441d7e['descriptionFactory']['registerDescriptionCallback'](_0x3ef741=>{if('formatBlock'!=_0x3ef741['type'])return;const {data:_0x49994d}=_0x3ef741;if(!_0x49994d)return;if('indentBlock'!=_0x49994d['commandName']&&'outdentBlock'!=_0x49994d['commandName'])return;const _0x188a21=_0x3ef741['getItems']()[0x0],_0x4aa3a3=_0x441d7e['descriptionFactory']['getItemLabel'](_0x188a21);return'indentBlock'==_0x49994d['commandName']?{'type':'format','content':o(_0x28a383,'*Indent:*\x20%0',_0x4aa3a3)}:'outdentBlock'==_0x49994d['commandName']?{'type':'format','content':o(_0x28a383,'*Outdent:*\x20%0',_0x4aa3a3)}:void 0x0;});}}class ct extends _0x2bddd5{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x2bddd5{['afterInit'](){const _0x1f39ee=this['editor'];if(!_0x1f39ee['plugins']['has']('LinkEditing'))return;const _0x125083=_0x1f39ee['plugins']['get']('TrackChangesEditing'),_0x30ece7=_0x1f39ee['commands']['get']('link');_0x125083['enableDefaultAttributesIntegration']('link'),_0x125083['enableDefaultAttributesIntegration']('unlink'),_0x125083['registerInlineAttribute']('linkHref');for(const _0x331221 of _0x30ece7['manualDecorators'])_0x125083['registerInlineAttribute'](_0x331221['id']),_0x125083['descriptionFactory']['registerAttributeLabel'](_0x331221['id'],'link\x20('+_0x331221['label']['toLowerCase']()+')');_0x125083['descriptionFactory']['registerDescriptionCallback'](_0x4b325c=>{if('attribute'!=_0x4b325c['type'])return;const {data:_0x194bb5}=_0x4b325c;if(!_0x194bb5||'linkHref'!=_0x194bb5['key'])return;const _0x25ded3=_0x194bb5['newValue'],_0x5acca0=_0x1f39ee['locale'];return{'type':'format','content':null==_0x25ded3?o(_0x5acca0,'*Remove\x20link*'):o(_0x5acca0,'*Set\x20link:*\x20%0','\x22'+_0x25ded3+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d39ee=this['editor'],_0x30d3b8=_0x5d39ee['locale'];_0x5d39ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x153ee9=>{if('formatInline'!=_0x153ee9['type'])return;const {data:_0x2d2408}=_0x153ee9;if(_0x2d2408){if('link'==_0x2d2408['commandName']){const _0x2247ef=_0x2d2408['commandParams'][0x0];return{'type':'format','content':o(_0x30d3b8,'*Set\x20link:*\x20%0','\x22'+_0x2247ef+'\x22')};}return'unlink'==_0x2d2408['commandName']?{'type':'format','content':o(_0x30d3b8,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x2bddd5{['afterInit'](){const _0x29f920=this['editor'],_0x295279=_0x29f920['locale'];if(!_0x29f920['plugins']['has']('LegacyListEditing'))return;const _0x51a779=_0x29f920['plugins']['get']('TrackChangesEditing'),_0x2a75c6=_0x29f920['plugins']['has']('LegacyTodoListEditing');function _0x3f466b(_0x31bbcf){return()=>{const _0x3a54fc=_0x29f920['model']['document']['selection'],_0x3be6ea=_0x29f920['commands']['get'](_0x31bbcf);if(_0x3be6ea['value'])return void _0x29f920['execute']('paragraph',{});const _0x5340e5=_0x31bbcf['slice'](0x0,-0x4),_0x41dfe4=function(_0x5a00b0,_0x1dd686,_0x209a61){let _0x492cef=Array['from'](_0x5a00b0)['filter'](_0x3481c1=>function(_0x256f3e,_0x3f4a91){return _0x3f4a91['checkChild'](_0x256f3e['parent'],'listItem')&&!_0x3f4a91['isObject'](_0x256f3e);}(_0x3481c1,_0x209a61));_0x492cef=_0x492cef['filter'](_0x1d9c63=>!_0x1d9c63['is']('element','listItem')||_0x1d9c63['getAttribute']('listType')!=_0x1dd686);const _0x3eceab=new Set();for(const _0x463b7d of _0x492cef)_0x463b7d['is']('element','listItem')?_0x3eceab['add'](Le(_0x463b7d)):_0x3eceab['add'](_0x463b7d);return Array['from'](_0x3eceab);}(_0x3a54fc['getSelectedBlocks'](),_0x5340e5,_0x29f920['model']['schema']);_0x29f920['model']['change'](()=>{for(const _0x93bcb of _0x41dfe4)_0x51a779['markBlockFormat'](_0x93bcb,{'commandName':_0x31bbcf,'commandParams':[{'forceValue':!_0x3be6ea['value']}],'formatGroupId':'blockName'},Ee(_0x93bcb));});};}function _0xbd9cf4(_0x4621b9){return()=>{const _0x1ddac6=function(_0x1b0747){let _0x13b1d6=Array['from'](_0x1b0747);const _0x2a0977=_0x13b1d6['findIndex'](_0x241e63=>'listItem'!=_0x241e63['name']);return _0x2a0977>-0x1&&(_0x13b1d6=_0x13b1d6['slice'](0x0,_0x2a0977)),_0x13b1d6;}(_0x29f920['model']['document']['selection']['getSelectedBlocks']()),_0x56916e=_0x29f920['model']['createRange'](_0x29f920['model']['createPositionAt'](_0x1ddac6[0x0],'before'),_0x29f920['model']['createPositionAt'](_0x1ddac6[_0x1ddac6['length']-0x1],'end'));_0x29f920['model']['change'](()=>{_0x51a779['markBlockFormat'](_0x56916e,{'commandName':_0x4621b9,'commandParams':[],'formatGroupId':'listIndent'},function(_0xa3b988){const _0x11c7cb=new Set();for(const _0x54fe14 of _0xa3b988){let _0x368a4a=_0x54fe14['nextSibling'];for(;_0x368a4a&&_0x368a4a['getAttribute']('listIndent')>_0x54fe14['getAttribute']('listIndent');)_0x11c7cb['add'](_0x368a4a),_0x368a4a=_0x368a4a['nextSibling'];}return Array['from'](_0x11c7cb);}(_0x1ddac6));});};}_0x51a779['enableCommand']('numberedList',_0x3f466b('numberedList')),_0x51a779['enableCommand']('bulletedList',_0x3f466b('bulletedList')),_0x2a75c6&&_0x51a779['enableCommand']('todoList',_0x3f466b('todoList')),_0x51a779['enableCommand']('indentList',_0xbd9cf4('indentList')),_0x51a779['enableCommand']('outdentList',_0xbd9cf4('outdentList')),_0x2a75c6&&_0x51a779['enableCommand']('checkTodoList',()=>{const _0x44baa0=_0x29f920['commands']['get']('checkTodoList'),_0x12bfe2=Array['from'](_0x44baa0['_selectedElements']);_0x12bfe2['filter'](_0xcc840c=>_0xcc840c['getAttribute']('todoListChecked')!=_0x44baa0['value']),_0x29f920['model']['change'](()=>{for(const _0x5b6e13 of _0x12bfe2)_0x51a779['markBlockFormat'](_0x5b6e13,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x44baa0['value']}]});});}),_0x51a779['descriptionFactory']['registerElementLabel']('listItem',_0x179acd=>o(_0x295279,'ELEMENT_LIST_ITEM',_0x179acd)),_0x51a779['descriptionFactory']['registerDescriptionCallback'](_0xeaa239=>{if('formatBlock'!=_0xeaa239['type']&&'formatInline'!=_0xeaa239['type'])return;const {data:_0x58af86}=_0xeaa239;if(_0x58af86){if('numberedList'==_0x58af86['commandName']||'bulletedList'==_0x58af86['commandName']||'todoList'==_0x58af86['commandName'])switch(_0x58af86['commandName']['replace']('List','')){case'bulleted':return _0x39a33d(o(_0x295279,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x39a33d(o(_0x295279,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x39a33d(o(_0x295279,'ELEMENT_TODO_LIST'));}if('indentList'==_0x58af86['commandName'])return{'type':'format','content':o(_0x295279,'*Indent:*\x20%0',o(_0x295279,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x58af86['commandName'])return{'type':'format','content':o(_0x295279,'*Outdent:*\x20%0',o(_0x295279,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x58af86['commandName'])return _0x58af86['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x295279,'*Check\x20item*')}:{'type':'format','content':o(_0x295279,'*Uncheck\x20item*')};}function _0x39a33d(_0xd68697){return{'type':'format','content':o(_0x295279,'*Change\x20to:*\x20%0',_0xd68697)};}});}}function Le(_0x1b63c6){const _0x4a486e=_0x1b63c6['getAttribute']('listIndent');if(0x0==_0x4a486e)return _0x1b63c6;let _0x1a6b31=_0x1b63c6;for(;_0x1b63c6['previousSibling']&&_0x1b63c6['previousSibling']['is']('element','listItem');){const _0x3d9a72=_0x1b63c6['previousSibling']['getAttribute']('listIndent');if(_0x3d9a72==_0x4a486e)_0x1a6b31=_0x1b63c6['previousSibling'];else{if(_0x3d9a72<_0x4a486e)break;}_0x1b63c6=_0x1b63c6['previousSibling'];}return _0x1a6b31;}function Ee(_0x287be9){const _0x2d36f7=[];if(_0x287be9['is']('element','listItem')&&_0x287be9['getAttribute']('listIndent')>0x0){let _0x224f11=_0x287be9['nextSibling'];for(;_0x224f11&&'listItem'==_0x224f11['name']&&_0x224f11['getAttribute']('listIndent')==_0x287be9['getAttribute']('listIndent');)_0x2d36f7['push'](_0x224f11),_0x224f11=_0x224f11['nextSibling'];}return _0x2d36f7;}class ht extends _0x2bddd5{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x59e271=this['editor']['config']['get']('list.properties'),_0x10e345=this['editor']['plugins']['get']('TrackChangesEditing');_0x59e271['styles']&&_0x10e345['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x59e271['reversed']&&_0x10e345['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x59e271['startIndex']&&_0x10e345['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x10e345['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1e5bc3,_0x42baf6={}){const _0xad051d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x57b42d=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xad051d['markMultiRangeBlockFormat'](_0x57b42d,{'commandName':'listStyle','commandParams':[{'type':_0x42baf6['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xcd826c,_0x5c6e08={}){const _0x5a1d30=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5bc0c9=this['_getSuggestionBlocks'](_0x1811e9=>_0x1811e9['is']('element','listItem')&&'numbered'===_0x1811e9['getAttribute']('listType'));if(_0x5bc0c9['length']<0x1)return;const _0x302608=_0x5bc0c9['map'](_0x9f1b82=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x9f1b82,'before'),this['editor']['model']['createPositionAt'](_0x9f1b82,0x0)));this['editor']['model']['change'](()=>{_0x5a1d30['markMultiRangeBlockFormat'](_0x302608,{'commandName':'listReversed','commandParams':[{'reversed':_0x5c6e08['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x44473f,_0x580f92={}){const _0x4e64f6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1357ac=this['_getSuggestionBlocks'](_0xe5e590=>_0xe5e590['is']('element','listItem')&&'numbered'===_0xe5e590['getAttribute']('listType'));if(_0x1357ac['length']<0x1)return;const _0x27d280=_0x1357ac['map'](_0x2203aa=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2203aa,'before'),this['editor']['model']['createPositionAt'](_0x2203aa,0x0)));this['editor']['model']['change'](()=>{_0x4e64f6['markMultiRangeBlockFormat'](_0x27d280,{'commandName':'listStart','commandParams':[{'startIndex':_0x580f92['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x210659){if('formatBlock'!=_0x210659['type']&&'formatInline'!=_0x210659['type'])return;const _0x1ae1b2=this['editor']['locale'],{data:_0x161a99}=_0x210659;if(!_0x161a99)return;let _0x31d52f,_0x16684f;switch(_0x161a99['commandName']){case'listStyle':_0x31d52f='*Change\x20to:*\x20%0',_0x16684f={'type':'format','content':o(_0x1ae1b2,_0x31d52f,o(_0x1ae1b2,this['_getTranslationKeyForListStyle'](_0x161a99['commandParams'][0x0]['type'])))};break;case'listReversed':_0x31d52f=_0x161a99['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x16684f={'type':'format','content':o(_0x1ae1b2,_0x31d52f)};break;case'listStart':_0x31d52f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x16684f={'type':'format','content':o(_0x1ae1b2,_0x31d52f,_0x161a99['commandParams'][0x0]['startIndex'])};}return _0x16684f;}['_getSuggestionBlocksForListStyle'](){const _0x1e4bad=this['editor']['plugins']['get']('LegacyListUtils');let _0x5b8fb6=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5b8fb6[0x0]?.['is']('element','listItem')&&_0x5b8fb6['unshift'](..._0x1e4bad['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5b8fb6[_0x5b8fb6['length']-0x1]?.['is']('element','listItem')&&_0x5b8fb6['push'](..._0x1e4bad['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5b8fb6=[...new Set(_0x5b8fb6)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5b8fb6=_0x5b8fb6['filter'](_0x3b273a=>_0x3b273a['is']('element','listItem'))),_0x5b8fb6;}['_getSuggestionBlocks'](_0x53e70b){const _0x5de439=this['editor']['plugins']['get']('LegacyListUtils');let _0x39c04b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x53e70b)['map'](_0x372bf6=>{const _0x7370f1=this['editor']['model']['createPositionAt'](_0x372bf6,0x0);return[..._0x5de439['getSiblingNodes'](_0x7370f1,'backward'),..._0x5de439['getSiblingNodes'](_0x7370f1,'forward')];})['flat']();return _0x39c04b=[...new Set(_0x39c04b)],_0x39c04b;}['_getTranslationKeyForListStyle'](_0x4982a0){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4982a0)||'default')['toUpperCase']()+'_LIST_'+_0x4982a0['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x2bddd5{['afterInit'](){const _0x173faf=this['editor'];if(!_0x173faf['plugins']['has']('MediaEmbedEditing'))return;const _0x5727b1=_0x173faf['plugins']['get']('TrackChangesEditing'),_0x3948ca=_0x173faf['locale'];_0x5727b1['enableCommand']('mediaEmbed'),_0x5727b1['descriptionFactory']['registerElementLabel']('media',_0x332802=>o(_0x3948ca,'ELEMENT_MEDIA',_0x332802)),_0x173faf['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x502ebf,{writer:_0x5e6ab9,options:_0x32bb31})=>{if(_0x32bb31['showSuggestionHighlights'])return _0x5e6ab9['createEmptyElement']('div');},'converterPriority':'high'}),_0x173faf['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5cdaac,_0x10c829,_0x2374b2)=>{_0x2374b2['options']['showSuggestionHighlights']&&_0x5cdaac['stop']();},{'priority':'high'});}}class lt extends _0x2bddd5{['afterInit'](){const _0x1b8d7f=this['editor'];_0x1b8d7f['plugins']['has']('MentionEditing')&&_0x1b8d7f['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x2bddd5{['afterInit'](){const _0x892fca=this['editor'];if(!_0x892fca['plugins']['has']('MergeFieldsEditing'))return;const _0x5dd9d5=_0x892fca['plugins']['get']('TrackChangesEditing'),_0xe979cc=_0x892fca['locale'];_0x5dd9d5['enableCommand']('insertMergeField'),_0x5dd9d5['enableCommand']('insertMergeFieldBlock'),_0x5dd9d5['enableCommand']('insertMergeFieldImage'),_0x5dd9d5['descriptionFactory']['registerElementLabel']('mergeField',_0x1474e3=>o(_0xe979cc,'ELEMENT_MERGE_FIELD',_0x1474e3)),_0x5dd9d5['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4704f0=>o(_0xe979cc,'ELEMENT_MERGE_FIELD',_0x4704f0)),_0x5dd9d5['descriptionFactory']['registerDescriptionCallback'](_0x6abc2a=>{if('insertion'!=_0x6abc2a['type']&&'deletion'!=_0x6abc2a['type'])return;const _0x394e61=_0x6abc2a['getContainedElement']();if(null==_0x394e61)return;const _0x1a35bd=_0x892fca['plugins']['get']('MergeFieldsEditing');let _0x186502;switch(_0x1a35bd['getMergeFieldType'](_0x394e61)){case null:return;case'image':{const _0x4fc9f5=_0x1a35bd['unwrapAffixes'](_0x394e61['getAttribute']('src'));_0x186502=_0x1a35bd['getLabel'](_0x4fc9f5)||_0x4fc9f5;break;}default:{const _0x250fc0=_0x394e61['getAttribute']('id');_0x186502=_0x1a35bd['getLabel'](_0x250fc0)||_0x250fc0;break;}}return'insertion'==_0x6abc2a['type']?{'type':'insertion','content':o(_0xe979cc,'*Insert:*\x20%0','\x22'+_0x186502+'\x22\x20'+o(_0xe979cc,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0xe979cc,'*Remove:*\x20%0','\x22'+_0x186502+'\x22\x20'+o(_0xe979cc,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x2bddd5{['afterInit'](){const _0x2b103b=this['editor'],_0x1b0c59=_0x2b103b['plugins']['get']('TrackChangesEditing');_0x2b103b['plugins']['has']('MultiLevelList')&&(_0x1b0c59['enableDefaultAttributesIntegration']('multiLevelList'),_0x1b0c59['registerBlockAttribute']('listMarkerStyle'),_0x1b0c59['descriptionFactory']['registerDescriptionCallback'](_0x327c99=>this['handleDescriptions'](_0x327c99)));}['handleDescriptions'](_0x4ade50){const _0x34460b=this['editor']['locale'],{data:_0x44e8b5}=_0x4ade50,_0x578bf8={'type':'format','content':''};if(_0x44e8b5&&'listMarkerStyle'==_0x44e8b5['key']){if(!_0x44e8b5['oldValue'])return{'type':'format','content':o(_0x34460b,'*Set\x20format:*\x20%0',o(_0x34460b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x44e8b5['newValue']+')'};if(!_0x44e8b5['newValue']){let _0x145ca2=_0x4ade50['head'];for(;_0x145ca2;){if(_0x145ca2['data']&&'listType'==_0x145ca2['data']['key']&&_0x145ca2['data']['newValue'])return _0x578bf8;_0x145ca2=_0x145ca2['next'];}return{'type':'format','content':o(_0x34460b,'*Remove\x20format:*\x20%0',o(_0x34460b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x44e8b5['oldValue']+')'};}}}}class pt extends _0x2bddd5{['afterInit'](){const _0x593795=this['editor'];if(!_0x593795['plugins']['has']('PageBreakEditing'))return;_0x593795['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x24bf65=_0x593795['plugins']['get']('TrackChangesEditing'),_0x2a3df2=_0x593795['locale'];_0x24bf65['descriptionFactory']['registerElementLabel']('pageBreak',_0x1cf840=>o(_0x2a3df2,'ELEMENT_PAGE_BREAK',_0x1cf840));}}class kt extends _0x2bddd5{['afterInit'](){const _0x4ea305=this['editor'];if(!_0x4ea305['plugins']['has']('Paragraph'))return;const _0x2e7ad5=_0x4ea305['locale'],_0x26f332=_0x4ea305['plugins']['get']('TrackChangesEditing');_0x26f332['descriptionFactory']['registerElementLabel']('paragraph',_0x245f2d=>o(_0x2e7ad5,'ELEMENT_PARAGRAPH',_0x245f2d)),_0x26f332['enableDefaultAttributesIntegration']('paragraph'),_0x26f332['enableCommand']('insertParagraph'),_0x4ea305['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4ea305),{'priority':'highest'}),_0x4ea305['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2c8938,_0x1aa7db,_0xc8433e)=>{_0xc8433e['options']['showSuggestionHighlights']&&nr(_0x4ea305,{'showActiveMarker':!0x1})(_0x2c8938,_0x1aa7db,_0xc8433e);},{'priority':'highest'});const _0x47797e=_0x26f332['descriptionFactory'];_0x47797e['registerDescriptionCallback'](_0xa826b4=>{if('insertion'!==_0xa826b4['type'])return;const {start:_0x4ffb5d,end:_0x1a9811}=_0xa826b4['getFirstRange']();if(!_0x4ffb5d['isTouching'](_0x1a9811)||!_0x4ffb5d['nodeAfter'])return;const _0x44d621=_0x4ea305['model']['schema'],_0x28f9cc=_0x4ffb5d['nodeAfter'];return _0x44d621['isBlock'](_0x28f9cc)&&!_0x44d621['isLimit'](_0x28f9cc)&&_0x44d621['checkChild'](_0x28f9cc,'$text')?{'type':'insertion','content':o(_0x2e7ad5,'*Insert:*\x20%0',_0x47797e['getItemLabel'](_0x28f9cc,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x319d9c=this['editor'],_0x26617b=_0x319d9c['locale'];_0x319d9c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf6aa1d=>{if('formatBlock'!=_0xf6aa1d['type'])return;const {data:_0x2c960d}=_0xf6aa1d;return _0x2c960d&&'paragraph'==_0x2c960d['commandName']?{'type':'format','content':o(_0x26617b,'*Change\x20to:*\x20%0',o(_0x26617b,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x573177,{showActiveMarker:_0x33d30f=!0x0}={}){return(_0x51acb3,_0x198097,_0x28b422)=>{const _0x274a2b=_0x573177['plugins']['get']('TrackChangesEditing'),_0x1d9b54=_0x198097['markerRange']['start'],_0x3e0476=_0x198097['markerRange']['end'],_0x5a84b4=_0x573177['model']['schema'];if(!_0x1d9b54['isTouching'](_0x3e0476)||!_0x1d9b54['nodeAfter'])return;const _0x3444b4=_0x1d9b54['nodeAfter'];if(_0x5a84b4['isBlock'](_0x3444b4)&&!_0x5a84b4['isLimit'](_0x3444b4)&&_0x5a84b4['checkChild'](_0x3444b4,'$text')){if(!_0x28b422['consumable']['consume'](_0x198097['markerRange'],_0x51acb3['name']))return;const {id:_0x593346,authorId:_0x265dd2}=_0x274a2b['_splitMarkerName'](_0x198097['markerName']),_0x449fa9=_0x28b422['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x593346,'data-author-id':_0x265dd2}),_0x3e1709=_0x28b422['mapper']['toViewPosition'](_0x3e0476);_0x33d30f&&_0x274a2b['activeMarkers']['includes'](_0x198097['markerName'])&&_0x28b422['writer']['addClass']('ck-suggestion-marker--active',_0x449fa9),_0x28b422['writer']['insert'](_0x3e1709,_0x449fa9),_0x28b422['mapper']['bindElementToMarker'](_0x449fa9,_0x198097['markerName']);}};}class wt extends _0x2bddd5{['afterInit'](){const _0x25867b=this['editor'];_0x25867b['commands']['get']('replaceSource')&&_0x25867b['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x2bddd5{['afterInit'](){const _0x22491d=this['editor'];if(!_0x22491d['plugins']['has']('RemoveFormatEditing'))return;_0x22491d['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f2b0=this['editor'];_0x3f2b0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2183a8=>{if('formatBlock'!=_0x2183a8['type']&&'formatInline'!=_0x2183a8['type'])return;const {data:_0x337e25}=_0x2183a8;return _0x337e25&&'removeFormat'==_0x337e25['commandName']?{'type':'format','content':o(_0x3f2b0['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x2bddd5{['afterInit'](){const _0x37b178=this['editor'];if(!_0x37b178['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3b5964=_0x37b178['plugins']['get']('TrackChangesEditing');_0x3b5964['enableCommand']('goToPreviousRestrictedEditingException'),_0x3b5964['enableCommand']('goToNextRestrictedEditingException');const _0x3d67b1=_0x37b178['plugins']['get']('RestrictedEditingModeEditing');_0x3d67b1['enableCommand']('trackChanges'),_0x3d67b1['enableCommand']('acceptSuggestion'),_0x3d67b1['enableCommand']('discardSuggestion'),_0x3d67b1['enableCommand']('acceptAllSuggestions'),_0x3d67b1['enableCommand']('discardAllSuggestions'),_0x3d67b1['enableCommand']('acceptSelectedSuggestions'),_0x3d67b1['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x2bddd5{['afterInit'](){const _0x481705=this['editor'];if(!_0x481705['plugins']['has']('ShiftEnter'))return;const _0x46059c=_0x481705['plugins']['get']('TrackChangesEditing');_0x46059c['enableCommand']('shiftEnter'),_0x481705['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x481705),{'priority':'high'}),_0x481705['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x481705),{'priority':'high'}),_0x481705['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x193fa7,_0x5a6381,_0x517863)=>{_0x517863['options']['showSuggestionHighlights']&&je(_0x481705,{'showActiveMarker':!0x1})(_0x193fa7,_0x5a6381,_0x517863);}),_0x46059c['descriptionFactory']['registerElementLabel']('softBreak',_0x2af5ae=>o(_0x481705['locale'],'ELEMENT_LINE_BREAK',_0x2af5ae));}}function je(_0x27eb9e,{showActiveMarker:_0x5709ba=!0x0}={}){return(_0x134155,_0x53221a,_0x4f169c)=>{const _0x4b594f=_0x27eb9e['plugins']['get']('TrackChangesEditing');if(!_0x4f169c['consumable']['test'](_0x53221a['markerRange'],_0x134155['name']))return;const _0x39f3e8=_0x27eb9e['model'];for(const _0x9d5681 of _0x53221a['markerRange']['getItems']()){if(!_0x9d5681['is']('element','softBreak'))continue;const _0x2fd7d5='deletion'==_0x53221a['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x52a059,authorId:_0x40a078}=_0x4b594f['_splitMarkerName'](_0x53221a['markerName']),_0x535442=_0x4f169c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2fd7d5,'data-suggestion':_0x52a059,'data-author-id':_0x40a078}),_0x4e90f7=_0x4f169c['mapper']['toViewPosition'](_0x39f3e8['createPositionBefore'](_0x9d5681));_0x5709ba&&_0x4b594f['activeMarkers']['includes'](_0x53221a['markerName'])&&_0x4f169c['writer']['addClass']('ck-suggestion-marker--active',_0x535442),_0x4f169c['writer']['insert'](_0x4e90f7,_0x535442),_0x4f169c['mapper']['bindElementToMarker'](_0x535442,_0x53221a['markerName']);}};}class St extends _0x2bddd5{['afterInit'](){const _0x8e3fe9=this['editor'],_0x5aa7f2=_0x8e3fe9['model'],_0x4b1ab2=_0x8e3fe9['locale'];if(!_0x8e3fe9['plugins']['has']('StandardEditingModeEditing'))return;const _0x5987d9=_0x8e3fe9['plugins']['get']('TrackChangesEditing'),_0x25bd55='restrictedEditingException',_0x35ac48=_0x8e3fe9['commands']['get'](_0x25bd55);_0x5987d9['enableCommand'](_0x25bd55,(_0x5a83eb,_0x3fe4f2={})=>{const _0x29dca8=_0x5aa7f2['document']['selection'];if(_0x29dca8['isCollapsed'])return void _0x5a83eb(_0x3fe4f2);const _0x14ecab=void 0x0!==_0x3fe4f2['forceValue']?_0x3fe4f2['forceValue']:!_0x35ac48['value'];_0x5aa7f2['change'](()=>{const _0x39af25=Array['from'](_0x29dca8['getRanges']());for(const _0x5a1438 of _0x39af25){const _0x5d675c=_0x14ecab?[_0x5a1438]:io(_0x25bd55,_0x5a1438,_0x5aa7f2);for(const _0x178bb1 of _0x5d675c)_0x5987d9['markInlineFormat'](_0x178bb1,{'commandName':_0x25bd55,'commandParams':[{'forceValue':_0x14ecab}]});}});}),_0x5987d9['descriptionFactory']['registerDescriptionCallback'](_0x2cd981=>{if('formatBlock'!=_0x2cd981['type']&&'formatInline'!=_0x2cd981['type'])return;const {data:_0x34a5cf}=_0x2cd981;return _0x34a5cf&&_0x34a5cf['commandName']==_0x25bd55?_0x34a5cf['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4b1ab2,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4b1ab2,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x2bddd5{['afterInit'](){const _0x25fa7a=this['editor'];if(!_0x25fa7a['plugins']['has']('Style')||!_0x25fa7a['plugins']['has']('DataSchema'))return;const _0x492df8=_0x25fa7a['plugins']['get']('TrackChangesEditing'),_0x454a44=_0x25fa7a['locale'],_0x2975e9=_0x25fa7a['config']['get']('style')||{},_0x39f5be=_0x25fa7a['plugins']['get']('GeneralHtmlSupport'),_0x5aa3e5=_0x25fa7a['plugins']['get']('StyleUtils')['normalizeConfig'](_0x25fa7a['plugins']['get']('DataSchema'),_0x2975e9['definitions']);_0x492df8['enableDefaultAttributesIntegration']('style');const _0x1868be=new Set();for(const _0x26087e of _0x5aa3e5['block']){const _0x43edd9=_0x39f5be['getGhsAttributeNameForElement'](_0x26087e['element']);_0x1868be['add'](_0x43edd9);}const _0x540b7e=new Set();for(const _0x3987dd of _0x5aa3e5['inline']){const _0x4da99c=_0x39f5be['getGhsAttributeNameForElement'](_0x3987dd['element']);_0x540b7e['add'](_0x4da99c);for(const _0x2fc481 of _0x3987dd['ghsAttributes'])_0x540b7e['add'](_0x2fc481);}for(const _0x287101 of _0x1868be)_0x492df8['registerBlockAttribute'](_0x287101),_0x492df8['descriptionFactory']['registerAttributeLabel'](_0x287101,o(_0x454a44,'FORMAT_STYLE'));for(const _0x4d0ee2 of _0x540b7e)_0x492df8['registerInlineAttribute'](_0x4d0ee2),_0x492df8['descriptionFactory']['registerAttributeLabel'](_0x4d0ee2,o(_0x454a44,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e991c=this['editor'],_0x5cb858=_0x5e991c['locale'];_0x5e991c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c8f5b=>{if('formatBlock'!=_0x4c8f5b['type']&&'formatInline'!=_0x4c8f5b['type'])return;const {data:_0x1f9305}=_0x4c8f5b;return _0x1f9305&&'style'===_0x1f9305['commandName']?_0x1f9305['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5cb858,'*Set\x20format:*\x20%0',_0x1f9305['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x5cb858,'*Remove\x20format:*\x20%0',_0x1f9305['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x2bddd5{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x233f21){super(_0x233f21),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4d15ae=this['editor'],_0x36d7ea=_0x4d15ae['model']['document']['selection'];if(!_0x4d15ae['plugins']['has']('TableEditing'))return;const _0x50906b=_0x4d15ae['locale'],_0x2c753e=_0x4d15ae['plugins']['get']('TrackChangesEditing'),_0xf7dad9=_0x4d15ae['plugins']['get']('TableUtils');_0x2c753e['descriptionFactory']['registerElementLabel']('table',_0x4c6037=>o(_0x50906b,'ELEMENT_TABLE',_0x4c6037)),this['_setupColumnsRowsFixing'](),_0x2c753e['enableCommand']('insertTable'),_0x2c753e['enableCommand']('selectTableRow'),_0x2c753e['enableCommand']('selectTableColumn');for(const _0x3e63b4 of['insertTableRowAbove','insertTableRowBelow']){const _0x1ebfc7=_0x4d15ae['commands']['get'](_0x3e63b4);_0x2c753e['enableCommand'](_0x3e63b4,_0x54c4d5=>{_0x4d15ae['model']['change'](_0x41099b=>{_0x54c4d5();const _0x1ce612='above'===_0x1ebfc7['order'],_0x4ff333=_0xf7dad9['getSelectionAffectedTableCells'](_0x36d7ea),_0x5aa14a=_0xf7dad9['getRowIndexes'](_0x4ff333),_0x390c5d=_0x1ce612?_0x5aa14a['first']-0x1:_0x5aa14a['last']+0x1,_0xb5ba84=_0x4ff333[0x0]['findAncestor']('table'),_0x3fe06a=_0xf7dad9['createTableWalker'](_0xb5ba84,{'startRow':_0x390c5d,'endRow':_0x390c5d}),_0xe455d2=Array['from'](_0x3fe06a)['map'](_0x4438e4=>_0x41099b['createRangeOn'](_0x4438e4['cell']));_0x2c753e['markMultiRangeInsertion'](_0xe455d2,'tableRow');});});}for(const _0x19d905 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3da91d=_0x4d15ae['commands']['get'](_0x19d905);_0x2c753e['enableCommand'](_0x19d905,_0x903ffd=>{_0x4d15ae['model']['change'](_0x2f4201=>{_0x903ffd();const _0x5b5f72='left'===_0x3da91d['order'],_0x4cc01c=_0xf7dad9['getSelectionAffectedTableCells'](_0x36d7ea),_0x1ae422=_0xf7dad9['getColumnIndexes'](_0x4cc01c),_0x506d6b=_0x5b5f72?_0x1ae422['first']-0x1:_0x1ae422['last']+0x1,_0x347090=_0x4cc01c[0x0]['findAncestor']('table'),_0x33853a=_0xf7dad9['createTableWalker'](_0x347090,{'startRow':0x0,'column':_0x506d6b,'includeAllSlots':!0x1}),_0x3244da=Array['from'](_0x33853a)['map'](_0x191a93=>_0x2f4201['createRangeOn'](_0x191a93['cell']));_0x2c753e['markMultiRangeInsertion'](_0x3244da,'tableColumn');});});}for(const _0xe4582e of['removeTableRow','removeTableColumn']){const _0x9eed1b=_0xe4582e['substr'](0xb),_0x14bdb5=_0x9eed1b['toLowerCase'](),_0x10b600=_0x14bdb5['substr'](0x0,0x3)+'span',_0x57f2d7='table'+_0x9eed1b,_0x189cd2='min'+_0x9eed1b,_0x418388='max'+_0x9eed1b;_0x2c753e['enableCommand'](_0xe4582e,()=>{_0x4d15ae['model']['change'](_0x448b1e=>{const _0x58f879=_0xf7dad9['getSelectionAffectedTableCells'](_0x36d7ea),_0x13271d=_0x58f879[0x0]['findAncestor']('table');let _0x41208f;if('removeTableRow'==_0xe4582e){const _0x2204bd=_0xf7dad9['getRowIndexes'](_0x58f879);_0x41208f={'startRow':_0x2204bd['first'],'endRow':_0x2204bd['last'],'includeAllSlots':!0x0};}else{const _0x411989=_0xf7dad9['getColumnIndexes'](_0x58f879);_0x41208f={'startColumn':_0x411989['first'],'endColumn':_0x411989['last'],'includeAllSlots':!0x0};}const _0x26c975=_0xf7dad9['createTableWalker'](_0x13271d,_0x41208f),_0x178f1b=Array['from'](_0x26c975)['map'](({cell:_0xdb9510})=>_0xdb9510),_0x121cf2=Ne(_0x178f1b['filter'](_0x7ca53a=>_0x7ca53a['hasAttribute'](_0x10b600))),_0x485be9=Ne(_0x178f1b['filter'](_0x5bc5da=>!_0x5bc5da['hasAttribute'](_0x10b600)))['map'](_0x1dc327=>_0x448b1e['createRangeOn'](_0x1dc327)),_0xd882dc=_0x2c753e['markMultiRangeDeletion'](_0x485be9,_0x57f2d7);if(_0xd882dc&&('tableRow'==_0xd882dc['subType']||'tableColumn'==_0xd882dc['subType'])){const _0x1b1c38=this['_getSuggestionCoords'](_0xd882dc);for(const _0x2ce783 of _0x121cf2){const _0x18df3d=_0x448b1e['createRangeOn'](_0x2ce783),_0x147732=_0xf7dad9['getCellLocation'](_0x2ce783),_0x4cba61=_0x2ce783['getAttribute'](_0x10b600)-0x1,_0xe71fa8=_0x1b1c38[_0x189cd2],_0x36f674=_0x1b1c38[_0x418388];_0xe71fa8<=_0x147732[_0x14bdb5]&&_0x147732[_0x14bdb5]+_0x4cba61<=_0x36f674&&_0xd882dc['addRange'](_0x18df3d);}}});});}function _0x404a63(_0x4a7291){const _0x3254e4=Array['from'](_0x36d7ea['getRanges']())['map'](_0x57d1b2=>_0xd7f50['fromRange'](_0x57d1b2));_0x4d15ae['model']['change'](_0x4bb260=>{const _0x10bbc4=_0x4bb260['batch'];_0x4a7291=_0x4a7291['filter'](_0x2a9bfe=>'$graveyard'!=_0x2a9bfe['root']['rootName']),_0x4bb260['setSelection'](_0x4a7291),_0x4d15ae['commands']['get']('removeTableRow')['refresh'](),_0x4d15ae['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4d15ae['model']['enqueueChange'](()=>{_0x4d15ae['model']['enqueueChange'](_0x10bbc4,_0x2689aa=>{const _0x5aaf47=_0x3254e4['filter'](_0x3a6c43=>'$graveyard'!=_0x3a6c43['root']['rootName']);_0x5aaf47['length']>0x0&&_0x2689aa['setSelection'](_0x5aaf47);for(const _0x37cdda of _0x3254e4)_0x37cdda['detach']();});});});}function _0x259941(_0x2790bb){_0x4d15ae['model']['change'](_0xf6cc6f=>{const _0xa1ee11=Array['from'](_0x36d7ea['getRanges']())['map'](_0x33b01d=>_0xd7f50['fromRange'](_0x33b01d)),_0x26e934=[];for(const _0x47aca9 of _0x2790bb)for(const _0x31143b of _0x47aca9['getItems']({'shallow':!0x0}))_0x26e934['push'](_0x31143b);for(const _0x5b0b99 of _0x26e934)'$graveyard'!=_0x5b0b99['root']['rootName']&&(_0xf6cc6f['setSelection'](_0xf6cc6f['createPositionAt'](_0x5b0b99,0x0)),_0x4d15ae['commands']['get']('removeTableColumn')['refresh'](),_0x4d15ae['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x6c4cfb=_0xa1ee11['filter'](_0x14d6ea=>'$graveyard'!=_0x14d6ea['root']['rootName']);_0x6c4cfb['length']>0x0&&_0xf6cc6f['setSelection'](_0x6c4cfb);for(const _0x5dc2db of _0xa1ee11)_0x5dc2db['detach']();});}function _0x1490d3(_0x5825c4,_0x273825){return _0x273825['every'](_0xdd570=>_0x5825c4['some'](_0x6c69cc=>_0x6c69cc['end']['isEqual'](_0xdd570['start'])||_0xdd570['end']['isEqual'](_0x6c69cc['start'])));}function _0x20c972(_0xba095e,_0x2c8c7f){return!_0xba095e['some'](_0x5531cd=>_0x2c8c7f['some'](_0x4f63fe=>_0x5531cd['isIntersecting'](_0x4f63fe)))&&_0xba095e['some'](_0x45e2b9=>_0x2c8c7f['some'](_0x1d608d=>_0x45e2b9['end']['isTouching'](_0x1d608d['start'])));}_0x4d15ae['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x47ff0a,_0xe4e826,_0x3011d3)=>{if(!_0x3011d3['options']['showSuggestionHighlights'])return;const _0x331d91=_0xe4e826['item'];if(!_0x331d91||!_0x331d91['is']('element','tableCell'))return;const _0x5a0e5e=_0x3011d3['mapper']['toViewElement'](_0x331d91);if(_0x5a0e5e){const {id:_0x106a82,authorId:_0x1a2a21}=_0x2c753e['_splitMarkerName'](_0xe4e826['markerName']);_0x53eb21(_0x5a0e5e,_0x3011d3['writer'],(_0x3657d9,_0x4beb1d,_0x287d4e)=>{_0x287d4e['addClass'](_0xbaf344(_0x4beb1d['classes']),_0x3657d9),_0x287d4e['setAttribute']('data-suggestion-id',_0x106a82,_0x3657d9),_0x287d4e['setAttribute']('data-author-id',_0x1a2a21,_0x3657d9);},(_0x35b121,_0x408660,_0x136928)=>{_0x136928['removeClass'](_0xbaf344(_0x408660['classes']),_0x35b121),_0x136928['removeAttribute']('data-suggestion-id',_0x35b121),_0x136928['removeAttribute']('data-author-id',_0x35b121);});}},{'priority':'highest'}),_0x2c753e['descriptionFactory']['registerDescriptionCallback'](_0xbfc4f=>{if('insertion'!=_0xbfc4f['type']&&'deletion'!=_0xbfc4f['type'])return;const _0x17dda7=_0xbfc4f['getContainedElement']();if(null!=_0x17dda7&&_0x17dda7['is']('element','table')){if('insertion'==_0xbfc4f['type']){const _0x1cb4cb=_0xbfc4f['getItems']()['filter'](_0x233cf1=>_0x233cf1['is']('$textProxy'))['map'](_0x3b668c=>_0x3b668c['data']);if(_0x1cb4cb['length'])return{'type':'insertion','content':o(_0x50906b,'*Insert:*\x20%0',o(_0x50906b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1cb4cb['join']('\x20')+'\x22'))};}if('deletion'==_0xbfc4f['type']){const _0x58df75=_0xbfc4f['getItems']()['filter'](_0x2173f5=>_0x2173f5['is']('$textProxy'))['map'](_0x47c0f5=>_0x47c0f5['data']);if(_0x58df75['length'])return{'type':'deletion','content':o(_0x50906b,'*Remove:*\x20%0',o(_0x50906b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x58df75['join']('\x20')+'\x22'))};}}}),_0x2c753e['descriptionFactory']['registerDescriptionCallback'](_0x10de6d=>{if('tableRow'==_0x10de6d['subType']){const _0x5c9a8e=_0x10de6d['getItems']()['filter'](_0x375f32=>_0x375f32['is']('$textProxy'))['map'](_0x5287ec=>_0x5287ec['data']),_0xedecd1=this['_getSuggestionCoords'](_0x10de6d),_0x43c3dc=_0xedecd1['maxRow']-_0xedecd1['minRow']+0x1;if('insertion'==_0x10de6d['type'])return _0x5c9a8e['length']?{'type':'insertion','content':o(_0x50906b,'*Insert:*\x20%0',o(_0x50906b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x43c3dc,'\x22'+_0x5c9a8e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x50906b,'*Insert:*\x20%0',o(_0x50906b,'ELEMENT_TABLE_ROW',_0x43c3dc))};if('deletion'==_0x10de6d['type'])return _0x5c9a8e['length']?{'type':'deletion','content':o(_0x50906b,'*Remove:*\x20%0',o(_0x50906b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x43c3dc,'\x22'+_0x5c9a8e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x50906b,'*Remove:*\x20%0',o(_0x50906b,'ELEMENT_TABLE_ROW',_0x43c3dc))};}if('tableColumn'==_0x10de6d['subType']){const _0x420d57=_0x10de6d['getItems']()['filter'](_0x8ebe89=>_0x8ebe89['is']('$textProxy'))['map'](_0x52adb6=>_0x52adb6['data']),_0x269a49=this['_getSuggestionCoords'](_0x10de6d),_0x39d7c9=_0x269a49['maxColumn']-_0x269a49['minColumn']+0x1;if('insertion'==_0x10de6d['type'])return _0x420d57['length']?{'type':'insertion','content':o(_0x50906b,'*Insert:*\x20%0',o(_0x50906b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x39d7c9,'\x22'+_0x420d57['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x50906b,'*Insert:*\x20%0',o(_0x50906b,'ELEMENT_TABLE_COLUMN',_0x39d7c9))};if('deletion'==_0x10de6d['type'])return _0x420d57['length']?{'type':'deletion','content':o(_0x50906b,'*Remove:*\x20%0',o(_0x50906b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x39d7c9,'\x22'+_0x420d57['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x50906b,'*Remove:*\x20%0',o(_0x50906b,'ELEMENT_TABLE_COLUMN',_0x39d7c9))};}}),_0x2c753e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x404a63),_0x2c753e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x404a63),_0x2c753e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x259941),_0x2c753e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x259941),_0x2c753e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1490d3),_0x2c753e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1490d3),_0x2c753e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x20c972),_0x2c753e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x20c972);}['_acceptFormatSuggestionCallbackFactory'](){const _0x37edf2=this['editor'],_0x24f08c=_0x37edf2['model']['document']['selection'];return(_0x44fbcd,_0x438af1)=>{_0x37edf2['model']['change'](_0x9e0d19=>{const {commandName:_0x37d894,commandParams:_0x3e2cf1}=_0x438af1;let _0x2b7f77=_0x44fbcd[0x0]['end']['nodeBefore'];_0x3e2cf1&&_0x3e2cf1[0x0]&&!0x1===_0x3e2cf1[0x0]['forceValue']&&(_0x2b7f77=_0x44fbcd[0x0]['start']['nodeAfter']);const _0x31d894=_0x9e0d19['createRangeIn'](_0x2b7f77);if('$graveyard'==_0x31d894['root']['rootName'])return;const _0x3b1f22=Array['from'](_0x24f08c['getRanges']())['map'](_0x47707d=>_0xd7f50['fromRange'](_0x47707d));_0x9e0d19['setSelection'](_0x31d894),_0x37edf2['commands']['get'](_0x37d894)['refresh'](),_0x3e2cf1['push']({'forceDefaultExecution':!0x0}),_0x37edf2['execute'](_0x37d894,..._0x3e2cf1);const _0x9736df=_0x3b1f22['filter'](_0x30be94=>'$graveyard'!=_0x30be94['root']['rootName']);_0x9736df['length']>0x0&&_0x9e0d19['setSelection'](_0x9736df);for(const _0x5de2ef of _0x3b1f22)_0x5de2ef['detach']();});};}['_getCoordsForCells'](_0x26c264){const _0x5a9fdf=this['editor']['plugins']['get']('TableUtils');let _0x493f01=Number['MAX_SAFE_INTEGER'],_0x284be3=Number['MIN_SAFE_INTEGER'],_0x2d55ab=Number['MAX_SAFE_INTEGER'],_0x5e0d29=Number['MIN_SAFE_INTEGER'];for(const _0x4c9e6b of _0x26c264){if('$graveyard'==_0x4c9e6b['root']['rootName'])continue;const {row:_0x50a514,column:_0x4aae97}=_0x5a9fdf['getCellLocation'](_0x4c9e6b),_0xfa461e=_0x4c9e6b['hasAttribute']('rowspan')?_0x4c9e6b['getAttribute']('rowspan')-0x1:0x0,_0x54b90a=_0x4c9e6b['hasAttribute']('colspan')?_0x4c9e6b['getAttribute']('colspan')-0x1:0x0;_0x493f01=_0x50a514<_0x493f01?_0x50a514:_0x493f01,_0x284be3=_0x50a514+_0xfa461e>_0x284be3?_0x50a514+_0xfa461e:_0x284be3,_0x2d55ab=_0x4aae97<_0x2d55ab?_0x4aae97:_0x2d55ab,_0x5e0d29=_0x4aae97+_0x54b90a>_0x5e0d29?_0x4aae97+_0x54b90a:_0x5e0d29;}return{'minRow':_0x493f01,'maxRow':_0x284be3,'minColumn':_0x2d55ab,'maxColumn':_0x5e0d29};}['_setupColumnsRowsFixing'](){const _0x192fb5=this['editor'],_0x5d732d=_0x192fb5['plugins']['get']('TrackChangesEditing'),_0x133393=_0x192fb5['plugins']['get']('TableUtils');_0x192fb5['model']['document']['on']('change:data',()=>{const _0x95e794=Array['from'](_0x192fb5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xf7cbf9,data:_0x305344}of _0x95e794){const {group:_0x204426,id:_0x4abbcd,subType:_0x28dc8d}=_0x5d732d['_splitMarkerName'](_0xf7cbf9);if('suggestion'!=_0x204426)continue;if(null!=_0x305344['oldRange'])continue;const _0x2174bf=_0x5d732d['getSuggestion'](_0x4abbcd);this['_tablePostFixingSubtypes']['includes'](_0x28dc8d)&&this['_tableSuggestions']['add'](_0x2174bf);}},{'priority':'low'});const _0x219810=(_0x2c7649,_0x2bc9c4)=>{let _0x19d16c=!0x1;const _0x2c28c4=_0x2bc9c4['createRangeOn'](_0x2c7649),_0x7c6cc6=_0x2c7649['findAncestor']('table'),_0x22e9f5=_0x133393['getCellLocation'](_0x2c7649);for(const _0x258570 of this['_tableSuggestions']){const _0x215acd=_0x258570['subType'],_0x1d3b75=_0x215acd['startsWith']('tablePaste'),_0x2ff97a=_0x215acd['substr'](_0x1d3b75?0xa:0x5),_0x26c84c=_0x2ff97a['toLowerCase'](),_0xa42205=_0x26c84c['substr'](0x0,0x3)+'span',_0x5ad959='min'+_0x2ff97a,_0x177782='max'+_0x2ff97a;if(!_0x258570['isInContent'])continue;if(_0x7c6cc6!=_0x258570['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x258570['isIntersectingWithRange'](_0x2c28c4))continue;const _0x17f241=_0x2c7649['hasAttribute'](_0xa42205)?_0x2c7649['getAttribute'](_0xa42205)-0x1:0x0,_0xedebf5=this['_getSuggestionCoords'](_0x258570),_0x4ba5f1=_0xedebf5[_0x5ad959],_0x14f44b=_0xedebf5[_0x177782];_0x4ba5f1<=_0x22e9f5[_0x26c84c]&&_0x22e9f5[_0x26c84c]+_0x17f241<=_0x14f44b&&(_0x258570['addRange'](_0x2c28c4),_0x19d16c=!0x0);}return _0x19d16c;};_0x192fb5['model']['document']['registerPostFixer'](_0x6150a2=>{let _0x4dc809=!0x1;for(const _0x48e591 of _0x192fb5['model']['document']['differ']['getChanges']())if('insert'==_0x48e591['type']){if('tableRow'==_0x48e591['name']){for(const _0x5b2c35 of _0x48e591['position']['nodeAfter']['getChildren']())_0x4dc809=_0x4dc809||_0x219810(_0x5b2c35,_0x6150a2);}else'tableCell'==_0x48e591['name']&&(_0x4dc809=_0x4dc809||_0x219810(_0x48e591['position']['nodeAfter'],_0x6150a2));}return _0x4dc809;});}['_getSuggestionCoords'](_0x3a0c79){return this['_getCoordsForCells'](_0x3a0c79['getRanges']()['map'](_0x410e58=>_0x410e58['start']['nodeAfter']));}}function Ne(_0x1ad233){return Array['from'](new Set(_0x1ad233)['values']());}class _t extends _0x2bddd5{static get['requires'](){return[At];}['afterInit'](){const _0x4000c6=this['editor'],_0xeb9802=_0x4000c6['model']['document']['selection'],_0x144f13=_0x4000c6['locale'];if(!_0x4000c6['plugins']['has']('TableEditing'))return;const _0x2761fa=_0x4000c6['plugins']['get']('TrackChangesEditing'),_0x4d4a3e=_0x4000c6['plugins']['get']('TableUtils'),_0x1cca7d=_0x4000c6['plugins']['get'](At);_0x1cca7d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2761fa['enableCommand']('mergeTableCells',()=>{const _0x410e7c=_0x4d4a3e['getSelectionAffectedTableCells'](_0x4000c6['model']['document']['selection']);_0x4000c6['model']['change'](()=>{_0x2761fa['markMultiRangeBlockFormat'](_0x410e7c,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4000c6['commands']['get']('mergeTableCells')['on']('execute',(_0x151084,_0x1fef0f)=>{_0x4000c6['commands']['get']('trackChanges')['value']&&(_0x1fef0f['length']>0x0&&_0x1fef0f[_0x1fef0f['length']-0x1]&&_0x1fef0f[_0x1fef0f['length']-0x1]['forceDefaultExecution']||_0x2761fa['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x151084['stop']());},{'priority':'highest'});for(const _0x944939 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1e372e=_0x4000c6['commands']['get'](_0x944939);_0x2761fa['enableCommand'](_0x944939,()=>{const _0x497432=_0x4000c6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xee0bd9=>_0xee0bd9['is']('element','tableCell')),_0x2465af=_0x1e372e['value'];_0x4000c6['model']['change'](()=>{_0x2761fa['markMultiRangeBlockFormat']([_0x497432,_0x2465af],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1f3557 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x463159=_0x4000c6['commands']['get'](_0x1f3557);_0x2761fa['enableCommand'](_0x1f3557,()=>{const _0x2a4cbb=_0x4d4a3e['getSelectionAffectedTableCells'](_0x4000c6['model']['document']['selection'])[0x0],_0x44b548=_0x2a4cbb['findAncestor']('table'),{column:_0x1871d2,row:_0x569dc6}=_0x4d4a3e['getCellLocation'](_0x2a4cbb);let _0x50dcef=[];if('horizontally'==_0x463159['direction']){const _0x90d2fc=_0x4d4a3e['createTableWalker'](_0x44b548,{'startRow':_0x569dc6,'endRow':_0x569dc6,'includeAllSlots':!0x0});_0x50dcef=Array['from'](_0x90d2fc)['map'](_0x4490e4=>_0x4490e4['cell']);}else{const _0x34ae27=_0x4d4a3e['createTableWalker'](_0x44b548,{'column':_0x1871d2,'includeAllSlots':!0x0});_0x50dcef=Array['from'](_0x34ae27)['map'](_0x43ba6c=>_0x43ba6c['cell']);}_0x4000c6['model']['change'](_0x5105ec=>{_0x2761fa['markBlockFormat'](_0x5105ec['createRangeOn'](_0x2a4cbb),{'commandName':_0x1f3557,'commandParams':[]},_0x50dcef,_0x1f3557);});});}_0x2761fa['descriptionFactory']['registerDescriptionCallback'](_0x166e99=>{if('formatBlock'!=_0x166e99['type']&&'formatInline'!=_0x166e99['type'])return;const {data:_0x5056e4}=_0x166e99;return _0x5056e4&&'mergeTableCells'==_0x5056e4['commandName']?{'type':'format','content':o(_0x144f13,'*Merge\x20cells*')}:void 0x0;}),_0x2761fa['descriptionFactory']['registerDescriptionCallback'](_0xbdcfc7=>{if('formatBlock'!=_0xbdcfc7['type']&&'formatInline'!=_0xbdcfc7['type'])return;const {data:_0x3b01b3}=_0xbdcfc7;return _0x3b01b3?'splitTableCellVertically'==_0x3b01b3['commandName']?{'type':'format','content':o(_0x144f13,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3b01b3['commandName']?{'type':'format','content':o(_0x144f13,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x32205f=_0x1cca7d['_acceptFormatSuggestionCallbackFactory']();for(const _0xdf7d6e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2761fa['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xdf7d6e,'accept',_0x32205f);for(const _0x4e731f of['splitTableCellVertically','splitTableCellHorizontally'])_0x2761fa['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4e731f,'accept',_0x32205f);_0x2761fa['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x554053=>{_0x4000c6['model']['change'](_0x304528=>{const _0x1f967c=Array['from'](_0xeb9802['getRanges']())['map'](_0x148da7=>_0xd7f50['fromRange'](_0x148da7));_0x304528['setSelection'](_0x554053),_0x4000c6['commands']['get']('mergeTableCells')['refresh'](),_0x4000c6['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x336fcc=_0x1f967c['filter'](_0x337aba=>'$graveyard'!=_0x337aba['root']['rootName']);_0x336fcc['length']>0x0&&_0x304528['setSelection'](_0x336fcc);for(const _0x5df707 of _0x1f967c)_0x5df707['detach']();});});for(const _0x3faac2 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x24463a=_0x4000c6['commands']['get'](_0x3faac2);_0x24463a['on']('set:isEnabled',(_0x6e03e1,_0x4fd96e,_0x44c363)=>{if(_0x44c363){const _0x3744a1=_0x4000c6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x513064=>_0x513064['is']('element','tableCell'));this['_areMergableCells'](_0x24463a['value'],_0x3744a1)||(_0x6e03e1['return']=!0x1,_0x6e03e1['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x51ad7f=this['editor']['commands']['get']('mergeTableCells'),_0x582ab5=this['editor']['plugins']['get']('TableUtils');if(!_0x51ad7f['isEnabled'])return!0x1;const _0x1f1a9d=_0x582ab5['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x277e1f of _0x1f1a9d)for(const _0x237dcd of _0x1f1a9d)if(_0x277e1f!=_0x237dcd&&!this['_areMergableCells'](_0x277e1f,_0x237dcd))return!0x1;return!0x0;}['_areMergableCells'](_0x2c0fbd,_0x361d3e){const _0x171655=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e3e8b=this['editor']['model']['createRangeOn'](_0x2c0fbd),_0x328e49=this['editor']['model']['createRangeOn'](_0x361d3e),_0x5a4a1f=new Set(),_0xa61f48=new Set();for(const _0x2448aa of _0x171655['getSuggestions']())if(('insertion'==_0x2448aa['type']||'deletion'==_0x2448aa['type']||'mergeTableCells'==_0x2448aa['subType'])&&_0x2448aa['isInContent']){for(const _0x26467d of _0x2448aa['getRanges']())_0x26467d['containsRange'](_0x3e3e8b,!0x0)&&_0x5a4a1f['add'](_0x2448aa['type']+':'+_0x2448aa['author']['id']),_0x26467d['containsRange'](_0x328e49,!0x0)&&_0xa61f48['add'](_0x2448aa['type']+':'+_0x2448aa['author']['id']);}if(_0x5a4a1f['size']!=_0xa61f48['size'])return!0x1;for(const _0x3b68d6 of _0x5a4a1f)if(!_0xa61f48['has'](_0x3b68d6))return!0x1;return!0x0;}}class Ct extends _0x2bddd5{static get['requires'](){return[At];}['afterInit'](){const _0x4adad3=this['editor'];if(!_0x4adad3['plugins']['has']('TableEditing'))return;const _0x42b17b=_0x4adad3['locale'],_0x8a4c33=_0x4adad3['plugins']['get']('TrackChangesEditing');_0x8a4c33['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x8a4c33['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x8a4c33['registerBlockAttribute']('headingRows'),_0x8a4c33['registerBlockAttribute']('headingColumns'),_0x8a4c33['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x42b17b,'FORMAT_HEADER_ROW')),_0x8a4c33['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x42b17b,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1342c4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31b060=this['editor']['plugins']['get']('TableUtils'),_0x53b563=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x2af99f({showActiveMarker:_0x40decf=!0x0,setDataAttribute:_0x5dd2c3=!0x0}={}){return(_0x220016,_0x369a14,_0x5bf552)=>{const {type:_0x50f3ca,id:_0x30a9d1}=_0x1342c4['_splitMarkerName'](_0x369a14['markerName']),_0x2b57ea=_0x1342c4['getSuggestion'](_0x30a9d1),_0x4be606=_0x2b57ea['data'];if('formatBlock'!=_0x2b57ea['type']||!_0x4be606||'setTableColumnHeader'!=_0x4be606['commandName'])return;if(_0x369a14['item'])return void _0x220016['stop']();if(!_0x5bf552['consumable']['consume'](_0x369a14['markerRange'],_0x220016['name']))return;const _0x4c347a=_0x369a14['markerRange']['start']['nodeAfter'],_0x1844b1=_0x369a14['markerRange']['end']['nodeBefore'],_0x165b64=_0x4c347a['parent']['parent'],{column:_0x3a10a8}=_0x31b060['getCellLocation'](_0x4c347a),{column:_0x1a3835}=_0x31b060['getCellLocation'](_0x1844b1);for(let _0x4858e5=_0x3a10a8;_0x4858e5<=_0x1a3835;_0x4858e5++){const _0x3f5ca8=_0x31b060['createTableWalker'](_0x165b64,{'column':_0x4858e5,'includeAllSlots':!0x1});for(const _0x5ebd81 of _0x3f5ca8){const _0x3562ee=_0x5ebd81['cell'],_0x40fad9=_0x5bf552['mapper']['toViewElement'](_0x3562ee);_0x5bf552['writer']['addClass']('ck-suggestion-marker-'+_0x50f3ca,_0x40fad9),_0x5dd2c3&&_0x5bf552['writer']['setAttribute']('data-suggestion',_0x30a9d1,_0x40fad9),_0x5bf552['mapper']['bindElementToMarker'](_0x40fad9,_0x369a14['markerName']),_0x40decf&&(_0x1342c4['activeMarkers']['includes'](_0x369a14['markerName'])?_0x5bf552['writer']['addClass']('ck-suggestion-marker--active',_0x40fad9):_0x5bf552['writer']['removeClass']('ck-suggestion-marker--active',_0x40fad9));}}};}_0x1342c4['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x53b563),_0x1342c4['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x53b563),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2af99f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4d64a9,_0x6d183f,_0x42b761)=>{_0x42b761['options']['showSuggestionHighlights']&&_0x2af99f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4d64a9,_0x6d183f,_0x42b761);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xe2b779,_0x142ab8,_0x9dd05)=>{const {type:_0x1aead8,id:_0x1c3e7c}=_0x1342c4['_splitMarkerName'](_0x142ab8['markerName']),_0x5b5273=_0x1342c4['getSuggestion'](_0x1c3e7c),_0x3091a0=_0x5b5273['data'];if('formatBlock'!=_0x5b5273['type']||!_0x3091a0||'setTableColumnHeader'!=_0x3091a0['commandName'])return;const _0x500f44=_0x9dd05['mapper']['markerNameToElements'](_0x142ab8['markerName']);if(_0x500f44){for(const _0x592eb7 of _0x500f44)_0x9dd05['writer']['removeClass']('ck-suggestion-marker-'+_0x1aead8,_0x592eb7),_0x9dd05['writer']['removeClass']('ck-suggestion-marker--active',_0x592eb7),_0x9dd05['writer']['removeAttribute']('data-suggestion',_0x592eb7),_0x9dd05['mapper']['unbindElementFromMarkerName'](_0x592eb7,_0x142ab8['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3fba4b=this['editor'],_0x2184ff=_0x3fba4b['locale'];function _0x2f849c(_0xe7527a){return{'type':'format','content':o(_0x2184ff,'*Format:*\x20%0',_0xe7527a)};}_0x3fba4b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14fc79=>{if('formatBlock'!=_0x14fc79['type'])return;const {data:_0x5272d7}=_0x14fc79;if(_0x5272d7){if('setTableRowHeader'==_0x5272d7['commandName']){const _0x55bdb9=_0x5272d7['commandParams'][0x0]['forceValue'];return _0x2f849c(o(_0x2184ff,_0x55bdb9?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5272d7['commandName']){const _0x20c037=_0x5272d7['commandParams'][0x0]['forceValue'];return _0x2f849c(o(_0x2184ff,_0x20c037?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x2bddd5{['afterInit'](){const _0x59ba0a=this['editor'],_0x5af96c=_0x59ba0a['locale'],_0x4c7534=_0x59ba0a['plugins']['get']('TrackChangesEditing');function _0x3da0cd(_0x204312){return{'type':'format','content':''+o(_0x5af96c,'*Set\x20table\x20type:*\x20%0',_0x204312)};}_0x59ba0a['plugins']['has']('TableLayout')&&(_0x4c7534['enableCommand']('insertTableLayout'),_0x4c7534['enableDefaultAttributesIntegration']('tableType'),_0x4c7534['registerBlockAttribute']('tableType'),_0x4c7534['descriptionFactory']['registerElementLabel'](_0x1aff96=>_0x1aff96['is']('element','table')&&'layout'===_0x1aff96['getAttribute']('tableType'),_0x143c73=>o(_0x5af96c,'ELEMENT_LAYOUT_TABLE',_0x143c73)),_0x4c7534['descriptionFactory']['registerDescriptionCallback'](_0x5826cf=>{const {data:_0x2c7a64}=_0x5826cf;if(_0x2c7a64&&'tableType'==_0x2c7a64['key'])switch(_0x2c7a64['newValue']){case'layout':return _0x3da0cd(o(_0x5af96c,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3da0cd(o(_0x5af96c,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Be['map'](_0x56e573=>[_0x56e573,null]));class Nt extends _0x2bddd5{static get['requires'](){return[At];}['afterInit'](){const _0x1e5652=this['editor'];if(!_0x1e5652['plugins']['has']('TableClipboard'))return;const _0x19a15b=_0x1e5652['plugins']['get']('TrackChangesEditing'),_0x1241a0=_0x1e5652['plugins']['get']('TableUtils'),_0x170f1d=_0x1e5652['plugins']['get'](At),_0x22a762=_0x1e5652['plugins']['get']('TableClipboard'),_0x4b3a6f=_0x1e5652['plugins']['get']('TableSelection'),_0x500bf9=_0x1e5652['plugins']['get'](_0x4495bb);_0x170f1d['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1e5652['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1e5652['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3de6ea=null,_0x4211f8=!0x1;_0x500bf9['on']('contentInsertion',(_0x19fc85,_0x5b4a26)=>{_0x4211f8='paste'===_0x5b4a26['method'];}),_0x1e5652['model']['on']('insertContent',(_0xe04ea1,_0xa30978)=>{if(!_0x4211f8&&null===_0x4b3a6f['getSelectedTableCells']())return;const [_0x5a8d99,_0x618e40]=_0xa30978,_0x5ae083=_0xa30978[_0xa30978['length']-0x1];_0x5ae083&&_0x5ae083['forceDefaultExecution']||_0x19a15b['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4e53bb,_0x10da3a,_0x5451be,_0x41f718,_0x4c449f){if(_0x10da3a&&!_0x10da3a['is']('documentSelection'))return!0x1;const _0x553e41=_0x4c449f['getTableIfOnlyTableInContent'](_0x4e53bb,_0x5451be);if(!_0x553e41||!Ue(_0x553e41,void 0x0,_0x41f718))return!0x1;const _0x43bafa=_0x41f718['getSelectionAffectedTableCells'](_0x5451be['document']['selection']);if(!_0x43bafa['length'])return!0x1;const _0x44ab9b=_0x43bafa[0x0]['findAncestor']('table'),_0x3ad29e=_0x41f718['getRowIndexes'](_0x43bafa),_0x25c13f=_0x41f718['getColumnIndexes'](_0x43bafa),_0x25298d={'startRow':_0x3ad29e['first'],'endRow':_0x3ad29e['last'],'startColumn':_0x25c13f['first'],'endColumn':_0x25c13f['last']};return 0x1==_0x43bafa['length']&&(_0x25298d['endRow']+=_0x41f718['getRows'](_0x553e41)-0x1,_0x25298d['endColumn']+=_0x41f718['getColumns'](_0x553e41)-0x1),Ue(_0x44ab9b,_0x25298d,_0x41f718);}(_0x5a8d99,_0x618e40,_0x1e5652['model'],_0x1241a0,_0x22a762)&&(_0xe04ea1['stop'](),_0x3de6ea={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1e5652['model']['change'](()=>{_0x1e5652['model']['insertContent'](_0xa30978[0x0],_0xa30978[0x1],_0xa30978[0x2],{'forceDefaultExecution':!0x0});const _0x43aa9d=_0x4bb6e6(),{rowInsertionRanges:_0x58bf43,columnInsertionRanges:_0x5d9740,insertionRanges:_0x19b86b,deletionRanges:_0x2a46b3,cells:_0x4c5964}=_0x3de6ea;_0x58bf43['length']&&_0x19a15b['markMultiRangeInsertion'](_0x58bf43,'tablePasteRow',{'tablePasteChainId':_0x43aa9d}),_0x5d9740['length']&&_0x19a15b['markMultiRangeInsertion'](_0x5d9740,'tablePasteColumn',{'tablePasteChainId':_0x43aa9d}),_0x19b86b['length']&&(_0x19a15b['markMultiRangeInsertion'](_0x19b86b,'tablePaste',{'tablePasteChainId':_0x43aa9d,'skipNestingCheck':!0x0}),_0x19b86b['forEach'](_0x2bcb02=>_0x2bcb02['detach']?.())),_0x2a46b3['length']&&(_0x19a15b['markMultiRangeDeletion'](_0x2a46b3,'tablePaste',{'tablePasteChainId':_0x43aa9d,'skipNestingCheck':!0x0}),_0x2a46b3['forEach'](_0x33e1ac=>_0x33e1ac['detach']?.()));const _0x576788=_0x19a15b['markMultiRangeBlockFormat'](_0x4c5964['map'](({element:_0x112cb5})=>_0x112cb5),{'formatGroupId':_0x4bb6e6()},[],'tablePasteCell',{'tablePasteChainId':_0x43aa9d});if(_0x576788){const _0x491a23=_0x576788['getMarkers'](),_0x5e9e3f=[];for(const {element:_0x5d6b67,attributes:_0x2bd7f9}of _0x4c5964){if(!_0x2bd7f9)continue;const _0x225990=_0x1e5652['model']['createRangeOn'](_0x5d6b67),_0x44c5ab=_0x491a23['find'](_0x44c357=>_0x44c357['getRange']()['isEqual'](_0x225990));_0x44c5ab&&_0x5e9e3f['push']([_0x44c5ab['name'],_0x2bd7f9]);}_0x5e9e3f['length']&&_0x576788['setAttribute']('markerAttributes',Object['fromEntries'](_0x5e9e3f));}_0x3de6ea=null;}));},{'priority':_0x2048ff['high']+0xa}),_0x500bf9['on']('contentInsertion',()=>{_0x4211f8=!0x1;},{'priority':'lowest'}),_0x1e5652['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3b4314,_0x283d63)=>{const [_0xae62b4,_0x25ed06,,_0xd3992f]=_0x283d63;if(!_0x3de6ea)return;_0x3b4314['stop']();const _0x44c45f=_0xae62b4['cell'],_0x511dcd=_0x25ed06,_0x2d2281=Oe(_0x44c45f),_0x2ba724=Oe(_0x511dcd);_0x3b4314['return']=_0x44c45f;let _0x5b3796=null,_0x379edd=null;if(_0x2ba724||_0x2d2281){if(_0x2d2281&&!_0x2ba724){_0xd3992f['remove'](_0x44c45f['getChild'](0x0));for(const _0xf64fcd of Array['from'](_0x511dcd['getChildren']()))_0xd3992f['insert'](_0xf64fcd,_0x44c45f,'end');const _0x3334a3=_0x3de6ea['rowInsertionIndexes']['includes'](_0xae62b4['row']),_0x31d64a=_0x3de6ea['columnInsertionIndexes']['includes'](_0xae62b4['column']);_0x3334a3||_0x31d64a||(_0x5b3796=_0xd7f50['fromRange'](_0xd3992f['createRangeIn'](_0x44c45f)));}else _0x2ba724&&!_0x2d2281&&(_0x379edd=_0xd3992f['createRangeIn'](_0x44c45f));}else{const _0x240907=_0xd3992f['createElement']('tableCellSuggestion'),_0x1963a3=_0xd3992f['createElement']('tableCellSuggestion');_0xd3992f['wrap'](_0xd3992f['createRangeIn'](_0x44c45f),_0x1963a3),_0xd3992f['insert'](_0x240907,_0x44c45f,0x0);for(const _0x4f1c6f of Array['from'](_0x511dcd['getChildren']()))_0xd3992f['insert'](_0x4f1c6f,_0x240907,'end');_0x5b3796=_0xd7f50['fromRange'](_0xd3992f['createRangeOn'](_0x240907)),_0x379edd=_0xd7f50['fromRange'](_0xd3992f['createRangeOn'](_0x1963a3));}const _0x12c66a=Array['from'](_0x511dcd['getAttributes']())['filter'](([_0x5ae46d])=>Be['includes'](_0x5ae46d));_0x3de6ea['cells']['push']({'element':_0x44c45f,'attributes':_0x12c66a['length']?Object['fromEntries'](_0x12c66a):null}),_0x5b3796&&_0x3de6ea['insertionRanges']['push'](_0x5b3796),_0x379edd&&_0x3de6ea['deletionRanges']['push'](_0x379edd);},{'priority':'high'}),_0x1241a0['on']('insertColumns',(_0x2f1961,_0x1bc9f3)=>{const [_0x5f1b95,_0x4bb7d2={}]=_0x1bc9f3;if(!_0x3de6ea)return;const _0x4f661a=_0x4bb7d2['at']||0x0,_0x110de2=_0x4bb7d2['columns']||0x1;_0x3de6ea['columnInsertionIndexes']=new Array(_0x110de2)['fill'](_0x4f661a)['map']((_0x371659,_0x3df38a)=>_0x371659+_0x3df38a);for(const {cell:_0x2b9011}of _0x1241a0['createTableWalker'](_0x5f1b95,{'startColumn':_0x4f661a,'endColumn':_0x4f661a+_0x110de2-0x1}))_0x3de6ea['columnInsertionRanges']['push'](_0x1e5652['model']['createRangeOn'](_0x2b9011));},{'priority':'low'}),_0x1241a0['on']('insertRows',(_0x17a3e4,_0x28e318)=>{const [_0x2a3581,_0xbc9c1d={}]=_0x28e318;if(!_0x3de6ea)return;const _0x1fc174=_0xbc9c1d['at']||0x0,_0xc53094=_0xbc9c1d['rows']||0x1;_0x3de6ea['rowInsertionIndexes']=new Array(_0xc53094)['fill'](_0x1fc174)['map']((_0x1f14fb,_0x3b4495)=>_0x1f14fb+_0x3b4495);for(const {cell:_0x46305f}of _0x1241a0['createTableWalker'](_0x2a3581,{'startRow':_0x1fc174,'endRow':_0x1fc174+_0xc53094-0x1}))_0x3de6ea['rowInsertionRanges']['push'](_0x1e5652['model']['createRangeOn'](_0x46305f));},{'priority':'low'}),_0x19a15b['descriptionFactory']['registerDescriptionCallback'](_0x33bf01=>{if(_0x33bf01['subType']&&_0x33bf01['subType']['startsWith']('tablePaste'))return _0x33bf01['previous']?{}:{'type':'insertion','content':o(_0x1e5652['locale'],'*Replace\x20table\x20cells*')};});const _0x149112=()=>!0x1;for(const _0x4f15d7 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x19a15b['_suggestionFactory']['registerCustomCallback']('insertion',_0x4f15d7,'join',_0x149112),_0x19a15b['_suggestionFactory']['registerCustomCallback']('deletion',_0x4f15d7,'join',_0x149112),_0x19a15b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4f15d7,'join',_0x149112);_0x19a15b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x149112),_0x19a15b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2cbe5d,_0x478b58,_0x2c89a2)=>{const _0x450015=_0x2cbe5d['map'](_0x48bd41=>_0x48bd41['getContainedElement']())['filter'](_0x4f3f70=>_0x4f3f70),_0x2dc451=new Map(_0x450015['map'](_0x42708b=>[_0x42708b,null]));if(_0x3de6ea){for(const {element:_0x2dacef,attributes:_0x46d235}of _0x3de6ea['cells'])_0x46d235&&_0x2dc451['set'](_0x2dacef,_0x46d235);}else{if(_0x2c89a2&&_0x2c89a2['markerAttributes'])for(const [_0x5559d0,_0x284dd4]of Object['entries'](_0x2c89a2['markerAttributes'])){const _0x3c362f=_0x1e5652['model']['markers']['get'](_0x5559d0),_0x478288=_0x3c362f?_0x3c362f['getRange']()['getContainedElement']():null;_0x478288&&_0x2dc451['set'](_0x478288,_0x284dd4);}}_0x1e5652['model']['change'](_0x29be12=>{for(const [_0x45884e,_0x275847]of _0x2dc451)_0x29be12['setAttributes']({...xe,..._0x275847},_0x45884e);});});const _0x20b49d=(_0x14e0b1,_0x2987ad)=>{_0x19a15b['_suggestionFactory']['registerCustomCallback'](_0x14e0b1,'tablePaste',_0x2987ad,(_0x14d0fd,_0x56780e,_0x494317)=>{_0x1e5652['model']['change'](_0x57c492=>{const _0x41de2f=[];for(const _0x3eb364 of _0x14d0fd){const _0x590c32=_0x3eb364['start']['nodeAfter'];_0x590c32['is']('element','tableCellSuggestion')&&_0x41de2f['push'](_0x590c32);}_0x19a15b['_suggestionFactory']['getSuggestionCallback'](_0x14e0b1,null,_0x2987ad)(_0x14d0fd,_0x56780e,_0x494317);for(const _0x2ba039 of _0x41de2f)'$graveyard'!=_0x2ba039['root']['rootName']&&_0x57c492['unwrap'](_0x2ba039);});});};_0x20b49d('insertion','accept'),_0x20b49d('insertion','discard'),_0x20b49d('deletion','accept'),_0x20b49d('deletion','discard'),_0x19a15b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x33e4bb=>{const _0x3cf058=_0x33e4bb['map'](_0x55be53=>_0x55be53['getContainedElement']()),_0x2e14ec=_0x3cf058[0x0]['findAncestor']('table'),{minRow:_0xa8e1bd,maxRow:_0x401c5e}=_0x170f1d['_getCoordsForCells'](_0x3cf058);_0x1241a0['removeRows'](_0x2e14ec,{'at':_0xa8e1bd,'rows':_0x401c5e-_0xa8e1bd+0x1});}),_0x19a15b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x112439=>{const _0x3316b0=_0x112439['map'](_0x10c2a8=>_0x10c2a8['getContainedElement']()),_0x16313c=_0x3316b0[0x0]['findAncestor']('table'),{minColumn:_0x2d0ccc,maxColumn:_0x3a1743}=_0x170f1d['_getCoordsForCells'](_0x3316b0);_0x1241a0['removeColumns'](_0x16313c,{'at':_0x2d0ccc,'columns':_0x3a1743-_0x2d0ccc+0x1});});const _0x588438=(_0x235158,_0x3deb6c)=>{if(!_0x3deb6c['subType']||!_0x3deb6c['subType']['startsWith']('tablePaste'))return;const _0x20cdd6=_0x3deb6c['attributes']['tablePasteChainId'],_0x811ce1=_0x19a15b['getSuggestions']()['filter'](_0xc38b97=>_0xc38b97['isInContent']&&_0xc38b97['attributes']&&_0xc38b97['attributes']['tablePasteChainId']==_0x20cdd6);_0x811ce1['length']&&_0x3deb6c['getAllAdjacentSuggestions']()['length']!=_0x811ce1['length']&&_0x811ce1['reduce']((_0x5d782b,_0x18f54e)=>(_0x5d782b['next']=_0x18f54e,_0x18f54e['previous']=_0x5d782b,_0x18f54e));};function _0x12b457(_0x46d8de,_0x26b55f=!0x0){const {id:_0x57ac01,authorId:_0x2397b6}=_0x19a15b['_splitMarkerName'](_0x46d8de['markerName']),_0x533aec=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3be8fb=_0x19a15b['activeMarkers']['includes'](_0x46d8de['markerName']);return _0x3be8fb&&_0x533aec['push']('ck-suggestion-marker--active'),{'classes':_0x533aec,'attributes':{'data-suggestion':_0x57ac01,'data-author-id':_0x2397b6},'priority':_0x3be8fb&&_0x26b55f?0xbc2:0xbb8};}_0x19a15b['on']('suggestionLoaded',_0x588438,{'priority':'high'}),_0x19a15b['on']('suggestionUnloaded',_0x588438,{'priority':'high'}),_0x1e5652['model']['document']['registerPostFixer'](()=>{let _0x384c6d=!0x1;const _0x3954cb=Array['from'](_0x1e5652['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x48f3f9,data:_0x1d9632}of _0x3954cb){const {group:_0x31a822,type:_0x4c47d5,id:_0x2c6a30}=_0x19a15b['_splitMarkerName'](_0x48f3f9);if('suggestion'!=_0x31a822||'deletion'!=_0x4c47d5||_0x1d9632['oldRange'])continue;if(!_0x19a15b['hasSuggestion'](_0x2c6a30))continue;const _0x447d94=_0x19a15b['getSuggestion'](_0x2c6a30)['getRanges'](),_0x54b0fd=_0x1e5652['plugins']['get']('Users')['me'];for(const _0x52c3dd of _0x19a15b['getSuggestions']()){if(!_0x52c3dd['isInContent']||_0x52c3dd['author']!=_0x54b0fd)continue;if('formatBlock'!=_0x52c3dd['type']||'tablePasteCell'!=_0x52c3dd['subType'])continue;if(_0x52c3dd['getRanges']()['every'](_0x6e68f0=>_0x447d94['some'](_0x1c03b5=>_0x1c03b5['containsRange'](_0x6e68f0,!0x0)))){for(const _0x5e79ec of _0x52c3dd['getAllAdjacentSuggestions']())_0x5e79ec['isInContent']&&(_0x5e79ec['discard'](),_0x384c6d=!0x0);}}}return _0x384c6d;}),_0x1e5652['model']['document']['registerPostFixer'](_0x53f287=>{const _0x48428f=_0x1e5652['commands']['get']('redo');if(!_0x48428f||!_0x48428f['_createdBatches']['has'](_0x53f287['batch']))return!0x1;let _0x490c20=!0x1;const _0x37891c=_0x1e5652['plugins']['get']('Users')['me'],_0x3e6beb=_0x1e5652['model']['document']['differ']['getChanges'](),_0x17f8a4=Array['from'](_0x1e5652['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3dc5f,data:_0x124a24})=>{const {group:_0x3860e8,subType:_0x5a5c31,authorId:_0x4e63fe}=_0x19a15b['_splitMarkerName'](_0x3dc5f);return'suggestion'==_0x3860e8&&'tablePaste'==_0x5a5c31&&_0x4e63fe==_0x37891c['id']&&!_0x124a24['oldRange'];});for(const _0x110f53 of _0x3e6beb){if('insert'!=_0x110f53['type']||'tableCellSuggestion'!=_0x110f53['name']||0x1!=_0x110f53['length'])continue;const _0xdb0254=_0x53f287['createRange'](_0x110f53['position'],_0x110f53['position']['getShiftedBy'](0x1));if(!_0x17f8a4['find'](({data:_0xbd9820})=>_0xbd9820['newRange']['isEqual'](_0xdb0254))){for(const {name:_0xc41209,data:_0x5b9d5a}of _0x17f8a4)if(_0xdb0254['containsRange'](_0x5b9d5a['newRange'])){_0x53f287['updateMarker'](_0xc41209,{'range':_0xdb0254}),_0x490c20=!0x0;break;}}}return _0x490c20;}),_0x1e5652['model']['document']['registerPostFixer'](_0x39afd9=>{let _0x464bc6=!0x1;const _0x2cfa78=_0x1e5652['plugins']['get']('Users')['me'],_0x238acf=_0x19a15b['getSuggestions']()['filter'](_0x4e080b=>_0x4e080b['isInContent']&&_0x4e080b['author']==_0x2cfa78),_0x5a65d8=new Set(),_0x136952=new Set();for(const _0x4e9968 of _0x238acf)if('tablePaste'==_0x4e9968['subType'])for(const _0x30f607 of _0x4e9968['getMarkers']()){const _0x43b6ee=_0x30f607['getRange']()['getContainedElement']();if(_0x43b6ee){if(_0x43b6ee['is']('element','tableCellSuggestion')&&Oe(_0x43b6ee)){_0x4e9968['removeMarker'](_0x30f607['name']),_0x5a65d8['add'](_0x43b6ee),_0x464bc6=!0x0;const _0x35bb50=_0x43b6ee['nextSibling'],_0x5ae37e=_0x43b6ee['previousSibling'],_0x12ae22=_0x35bb50&&_0x35bb50['is']('element','tableCellSuggestion'),_0x398545=_0x5ae37e&&_0x5ae37e['is']('element','tableCellSuggestion');_0x12ae22&&!_0x5a65d8['has'](_0x35bb50)&&_0x136952['add'](_0x35bb50),_0x398545&&!_0x5a65d8['has'](_0x5ae37e)&&_0x136952['add'](_0x5ae37e);}else _0x43b6ee['is']('element','paragraph')&&_0x43b6ee['isEmpty']&&(_0x4e9968['removeMarker'](_0x30f607['name']),_0x464bc6=!0x0);}}else{if('tablePasteCell'==_0x4e9968['subType']){if(!_0x4e9968['attributes']||!_0x4e9968['attributes']['tablePasteChainId'])continue;const _0x37ccb6=_0x4e9968['attributes']['markerAttributes'];if(_0x37ccb6&&Object['keys'](_0x37ccb6)['length'])continue;const _0x2ce1fc=_0x4e9968['attributes']['tablePasteChainId'];let _0x26a880=!0x0,_0x48d418=!0x0;for(const _0x2c84b6 of _0x238acf)if(_0x2c84b6['subType']&&_0x2c84b6['subType']['startsWith']('tablePaste')){if(!_0x2c84b6['attributes']['tablePasteChainId']){_0x48d418=!0x1;break;}if(_0x2c84b6['id']!=_0x4e9968['id']&&_0x2c84b6['attributes']['tablePasteChainId']==_0x2ce1fc){_0x26a880=!0x1;break;}}_0x48d418&&_0x26a880&&(_0x4e9968['removeMarkers'](),_0x464bc6=!0x0);}}for(const _0x4c48c9 of _0x5a65d8)_0x39afd9['remove'](_0x4c48c9);for(const _0x2c8ae8 of _0x136952)_0x39afd9['unwrap'](_0x2c8ae8);return _0x464bc6;}),_0x1e5652['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5b3998=>_0x12b457(_0x5b3998),'converterPriority':'high'}),_0x1e5652['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3b7d9b,_0x135bb1)=>_0x135bb1['options']['showSuggestionHighlights']?_0x12b457(_0x3b7d9b,!0x1):null,'converterPriority':'high'});const _0x2a0d55=_0x1e5652['editing']['view'];this['listenTo'](_0x2a0d55['document'],'clipboardOutput',(_0x2cd112,_0x4396d6)=>{const _0x59764c=[];for(const _0x34201b of _0x2a0d55['createRangeIn'](_0x4396d6['content'])['getItems']())_0x34201b['is']('element','suggestion-td')&&_0x59764c['push'](_0x34201b);_0x2a0d55['change'](_0x210603=>{for(const _0x2ff3cf of _0x59764c)_0x210603['move'](_0x210603['createRangeIn'](_0x2ff3cf),_0x210603['createPositionBefore'](_0x2ff3cf)),_0x210603['remove'](_0x2ff3cf);});});}}function Oe(_0x35a1fb){if(_0x35a1fb['isEmpty'])return!0x0;const _0x36f5b7=_0x35a1fb['getChild'](0x0);return _0x36f5b7['is']('element','paragraph')&&_0x36f5b7['isEmpty'];}function Ue(_0x221825,_0x5bb234={},_0x3f0ec7){for(const {isAnchor:_0x3a1a89,cellHeight:_0xae93c8,cellWidth:_0x433bb9}of _0x3f0ec7['createTableWalker'](_0x221825,{'includeAllSlots':!0x0,..._0x5bb234}))if(!_0x3a1a89||0x1!=_0xae93c8||0x1!=_0x433bb9)return!0x1;return!0x0;}class Dt extends _0x2bddd5{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xd3ca88=this['editor']['plugins']['get']('TrackChangesEditing');_0xd3ca88['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xd3ca88['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xd3ca88['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xd3ca88['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xd3ca88['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xd3ca88['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1f0d13,_0x1e1da1){const _0x4ae09a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35e7a7=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1f9f13=_0x1e1da1['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1360e5=_0x35e7a7['getColumnGroupElement'](_0x1f9f13);let _0x20288f=_0x1360e5?_0x35e7a7['getTableColumnsWidths'](_0x1360e5):null,_0x26bc1f=_0x1f9f13['getAttribute']('tableWidth')||null;const _0xd756d2=_0x1e1da1['tableWidth']||_0x26bc1f,_0x2d1feb=_0x1e1da1['columnWidths']||_0x20288f,_0x5c5101=this['editor']['plugins']['get']('Users')['me'];for(const _0x586959 of _0x4ae09a['getSuggestions']()){const _0x39eadb=_0x586959['getContainedElement']();if('resizeTable'===_0x586959['subType']&&_0x39eadb===_0x1f9f13){_0x586959['author']!==_0x5c5101&&_0x586959['discard']();const _0x2ee0b5=_0x586959['data']['commandParams'];_0x26bc1f=_0x2ee0b5[0x0]['tableWidth'],_0x20288f=_0x2ee0b5[0x0]['columnWidths'];break;}}_0x1f0d13({'table':_0x1f9f13,'tableWidth':_0xd756d2,'columnWidths':_0x2d1feb}),_0x4ae09a['markBlockFormat'](_0x1f9f13,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x26bc1f,'columnWidths':_0x20288f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4509aa){if('formatBlock'!=_0x4509aa['type']&&'formatInline'!=_0x4509aa['type'])return;const {data:_0x2f088d}=_0x4509aa;if(_0x2f088d&&'resizeTable'===_0x2f088d['formatGroupId']){const _0x150e79='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x150e79)};}}}class Mt extends _0x2bddd5{['afterInit'](){const _0x512658=this['editor'];_0x512658['plugins']['has']('Template')&&_0x512658['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x2bddd5{['afterInit'](){const _0xa1aa94=this['editor'];if(!_0xa1aa94['commands']['get']('insertTableOfContents'))return;_0xa1aa94['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x556efc=_0xa1aa94['plugins']['get']('TrackChangesEditing'),_0x4be991=_0xa1aa94['locale'];_0x556efc['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1a6ea5=>o(_0x4be991,'ELEMENT_TABLE_OF_CONTENTS',_0x1a6ea5));}}class Bt extends _0x2bddd5{['afterInit'](){const _0x5999b7=this['editor'];if(!_0x5999b7['plugins']['has']('Title'))return;const _0x357fe1=_0x5999b7['plugins']['get']('TrackChangesEditing');_0x357fe1['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5999b7['locale'],'ELEMENT_TITLE')),_0x5999b7['model']['document']['registerPostFixer'](_0x14cefe=>{let _0x2b984a=!0x1;const _0x220d4c=Array['from'](_0x5999b7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2cac1b,data:_0x82ad8}of _0x220d4c){const {group:_0xc8ee26}=_0x357fe1['_splitMarkerName'](_0x2cac1b);if('suggestion'!==_0xc8ee26||!_0x82ad8['newRange'])continue;const _0x2ce443=_0x82ad8['newRange'],_0x2ed016=_0x2ce443['end']['nodeBefore'];if(!_0x2ed016||!_0x2ed016['is']('element','title-content'))continue;if(!_0x2ce443['start']['isTouching'](_0x2ce443['end']))continue;const _0x51346c=_0x5999b7['model']['schema']['getNearestSelectionRange'](_0x2ce443['end'],'forward');if(_0x51346c&&_0x51346c['isCollapsed']){const _0x5475b8=_0x14cefe['createRange'](_0x2ce443['start'],_0x51346c['start']);_0x5475b8['isEqual'](_0x2ce443)||(_0x14cefe['updateMarker'](_0x2cac1b,{'range':_0x5475b8}),_0x2b984a=!0x0);}_0x2b984a||(_0x14cefe['removeMarker'](_0x2cac1b),_0x2b984a=!0x0);}return _0x2b984a;});}}class Tt extends _0x2bddd5{['afterInit'](){const _0x402705=this['editor'],_0x5eb76b=_0x402705['plugins']['get']('TrackChangesEditing');_0x402705['plugins']['has']('Uploadcare')&&(_0x5eb76b['enableCommand']('uploadcare'),_0x402705['plugins']['has']('UploadcareImageEdit')&&(_0x5eb76b['enableCommand']('uploadcareImageEdit'),_0x5eb76b['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5eb76b['registerBlockAttribute']('uploadcareImageId'),_0x5eb76b['descriptionFactory']['registerDescriptionCallback'](_0x546f8d=>{if('attribute'!=_0x546f8d['type'])return;const {data:_0x481136}=_0x546f8d;return _0x481136&&'uploadcareImageId'==_0x481136['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x2bddd5{['afterInit'](){const _0x50a4ef=this['editor'],_0xfafb90=_0x50a4ef['plugins']['get']('TrackChangesEditing');_0x50a4ef['plugins']['has']('UndoEditing')&&(_0xfafb90['enableCommand']('undo'),_0xfafb90['enableCommand']('redo'));}}class Ot extends _0x2bddd5{static get['requires'](){return[At];}['afterInit'](){const _0x252bfc=this['editor'];if(!_0x252bfc['plugins']['has']('TableCaptionEditing'))return;_0x252bfc['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x2bddd5{['tableProperties'];['tableCellProperties'];constructor(_0x2720d6){super(_0x2720d6),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 _0x4ec333=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5727d4 of this['tableProperties'])_0x4ec333['enableCommand'](_0x5727d4,(_0x190632,_0x5885c1)=>{const _0x3f11f4=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5727d4,[_0x3f11f4],this['tableProperties'],'tableProperties',_0x190632,_0x5885c1);});_0x4ec333['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4ec333['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4ec333['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3f04fd,_0x246399)=>this['handleDiscardAction'](this['tableProperties'],_0x3f04fd,_0x246399)),_0x4ec333['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1a5d74 of this['tableCellProperties'])_0x4ec333['enableCommand'](_0x1a5d74,(_0x3764ea,_0x777e25)=>{const _0x932ef9=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1a5d74,_0x932ef9,this['tableCellProperties'],'tableCellProperties',_0x3764ea,_0x777e25);});_0x4ec333['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4ec333['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4ec333['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xf7bcec,_0x144c5c)=>this['handleDiscardAction'](this['tableCellProperties'],_0xf7bcec,_0x144c5c)),_0x4ec333['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4ec333['descriptionFactory']['registerDescriptionCallback'](_0x58e5d7=>this['handleSuggestionDescription'](_0x58e5d7));}['_handlePropertyChange'](_0x158fbd,_0x241c7f,_0x11364e,_0x14f4c2,_0x5298de,_0x4da503){const _0xff8a10=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4da503['batch'],()=>{for(const _0x779ac6 of _0x241c7f){if(this['_getSuggestion'](_0x779ac6,_0x14f4c2))_0x5298de(_0x4da503);else{const _0x6d5c8f={};for(const _0x31a051 of _0x11364e){const _0x36ae6d=_0x779ac6['getAttribute'](_0x31a051);void 0x0!==_0x36ae6d&&(_0x6d5c8f[_0x31a051]=_0x36ae6d);}_0x5298de(_0x4da503),_0xff8a10['markBlockFormat'](_0x779ac6,{'commandParams':[_0x6d5c8f]},[],_0x14f4c2);}}});}['handleDiscardAction'](_0x1473de,_0x23853d,_0x410b19){const _0x4d819f=_0x23853d[0x0]['start']['nodeAfter'],_0x9cadc9=_0x410b19['commandParams'][0x0];this['editor']['model']['change'](_0x3eee12=>{for(const _0x2713fc of _0x1473de)void 0x0!==_0x9cadc9[_0x2713fc]?_0x3eee12['setAttribute'](_0x2713fc,_0x9cadc9[_0x2713fc],_0x4d819f):_0x3eee12['removeAttribute'](_0x2713fc,_0x4d819f);});}['handleSuggestionDescription'](_0x1d87d2){if(_0x1d87d2['data'])switch(_0x1d87d2['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'](_0x88f0ca,_0x3d54b0){const _0x52db88=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3f8546 of _0x52db88['getSuggestions']({'skipNotAttached':!0x0})){const _0x18fb74=_0x3f8546['getContainedElement']();if(_0x3f8546['subType']===_0x3d54b0&&_0x18fb74===_0x88f0ca)return _0x3f8546;}return null;}}class Rt extends _0x2bddd5{['afterInit'](){const _0x468b2f=this['editor'];if(!_0x468b2f['plugins']['has']('LineHeight'))return;const _0x3d572c=_0x468b2f['plugins']['get']('TrackChangesEditing'),_0x34af53=_0x468b2f['locale'];_0x3d572c['enableDefaultAttributesIntegration']('lineHeight'),_0x3d572c['registerBlockAttribute']('lineHeight'),_0x3d572c['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x34af53,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x2bddd5{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x27b3d9,_0x5b857b,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,$t,Et,Mt,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5df943){super(_0x5df943),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x196f7c,_0x267bbf,_0x4ea7c9,_0x1a564d)=>{this['_model']['change'](()=>{for(const _0x7e9835 of[..._0x1a564d,..._0x4ea7c9])this['_model']['markers']['has'](_0x7e9835)&&_0x5df943['editing']['reconvertMarker'](_0x7e9835);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5df943['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(),_0x5df943['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5df943['config']['get']('trackChanges.trackFormatChanges'),_0x5df943['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5df943['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x5df943,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5b67ca=this['editor'],_0x28120e=(_0x50443e,_0x33713a)=>{if('attribute'!=_0x50443e)return'ck-suggestion-marker-'+_0x50443e;const _0x105f0d=_0x33713a['split']('|')[0x0];return this['_isBlockAttribute'](_0x105f0d)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5b67ca['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x526a6a=>{const {id:_0x21929d,authorId:_0x4d9035,type:_0x475a99,subType:_0x307ab9}=this['_splitMarkerName'](_0x526a6a['markerName']),_0x4ed093=['ck-suggestion-marker',_0x28120e(_0x475a99,_0x307ab9)];let _0x1d2512=0xbb8;return this['activeMarkers']['includes'](_0x526a6a['markerName'])&&(_0x4ed093['push']('ck-suggestion-marker--active'),_0x1d2512=0xbc2),'deletion'==_0x475a99&&(_0x1d2512+=0x5),{'classes':_0x4ed093,'attributes':{'data-suggestion':_0x21929d,'data-author-id':_0x4d9035},'priority':_0x1d2512};}}),_0x5b67ca['conversion']['for']('dataDowncast')['add'](_0x524025=>{_0x524025['on']('addMarker:suggestion',(_0x296d3e,_0x5028cb,_0x598bf6)=>{if(!_0x598bf6['options']['showSuggestionHighlights'])return;const _0x168fd4=_0x5028cb['item'];if(!_0x168fd4)return;const _0xf93bad=_0x598bf6['mapper']['toViewElement'](_0x168fd4);_0x5b67ca['model']['schema']['isObject'](_0x168fd4)&&_0xf93bad&&!_0xf93bad['getCustomProperty']('widget')&&_0xf93bad['is']('containerElement')&&_0x313690(_0xf93bad,_0x598bf6['writer']);},{'priority':'high'});}),_0x5b67ca['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x53d9bc,_0x474d37)=>{if(!_0x474d37['options']['showSuggestionHighlights'])return null;const {id:_0x1ebb6b,authorId:_0x5d0b17,type:_0x12ca18,subType:_0x454e3f}=this['_splitMarkerName'](_0x53d9bc['markerName']);return{'classes':['ck-suggestion-marker',_0x28120e(_0x12ca18,_0x454e3f)],'priority':0xbb8,'attributes':{'data-suggestion':_0x1ebb6b,'data-author-id':_0x5d0b17}};}});const _0xce2940=({showActiveMarkers:_0x4dba53=!0x0,isAttributeSuggestion:_0x5c9e38=!0x1}={})=>(_0x26ceca,_0x2ce09,_0x52d987)=>{if(!_0x2ce09['item'])return;const {id:_0x2925d7,authorId:_0x3e539a}=this['_splitMarkerName'](_0x2ce09['markerName']);if(_0x5c9e38){const _0x47d07a=this['_suggestions']['get'](_0x2925d7),_0x4a3337=this['_getAttributeKey'](_0x47d07a);if(!this['_isBlockAttribute'](_0x4a3337))return;}if(_0x2ce09['item']['is']('selection'))return void _0x52d987['consumable']['consume'](_0x2ce09['item'],_0x26ceca['name']);const _0xb3bd02=_0x52d987['mapper']['toViewElement'](_0x2ce09['item']);if(_0x2ce09['item']['is']('element')&&_0x5b67ca['model']['schema']['isBlock'](_0x2ce09['item'])&&!_0xb3bd02['getCustomProperty']('addHighlight')){_0x52d987['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xb3bd02),_0x52d987['writer']['setAttribute']('data-suggestion',_0x2925d7,_0xb3bd02),_0x52d987['writer']['setAttribute']('data-author-id',_0x3e539a,_0xb3bd02),_0x52d987['mapper']['bindElementToMarker'](_0xb3bd02,_0x2ce09['markerName']),_0x4dba53&&(this['activeMarkers']['includes'](_0x2ce09['markerName'])?_0x52d987['writer']['addClass']('ck-suggestion-marker--active',_0xb3bd02):_0x52d987['writer']['removeClass']('ck-suggestion-marker--active',_0xb3bd02));for(const _0x4bc199 of _0x5b67ca['model']['createRangeIn'](_0x2ce09['item'])['getItems']())_0x52d987['consumable']['consume'](_0x4bc199,_0x26ceca['name']);_0x52d987['consumable']['consume'](_0x2ce09['item'],_0x26ceca['name']);}};_0x5b67ca['conversion']['for']('dataDowncast')['add'](_0x50ff20=>{_0x50ff20['on']('addMarker:suggestion:formatBlock',(_0x382281,_0x3a4293,_0x57d217)=>{_0x57d217['options']['showSuggestionHighlights']&&_0xce2940({'showActiveMarkers':!0x1})(_0x382281,_0x3a4293,_0x57d217);},{'priority':'highest'});}),_0x5b67ca['conversion']['for']('dataDowncast')['add'](_0x47f018=>{_0x47f018['on']('addMarker:suggestion:attribute',(_0x2a5944,_0x16d7bb,_0xbf94df)=>{_0xbf94df['options']['showSuggestionHighlights']&&_0xce2940({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2a5944,_0x16d7bb,_0xbf94df);},{'priority':'highest'});}),_0x5b67ca['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x540150,_0x2b7cb9)=>{if(_0x2b7cb9['options']['showSuggestionHighlights']){const {id:_0x47d56b,authorId:_0x49d6d6}=this['_splitMarkerName'](_0x540150);return _0x540150['includes'](':split')||_0x540150['includes'](':merge')?{'group':'suggestion','name':_0x540150['substr'](0xb),'attributes':{'data-suggestion':_0x47d56b,'data-author-id':_0x49d6d6}}:null;}return{'group':'suggestion','name':_0x540150['substr'](0xb)};}}),_0x5b67ca['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x453122,{writer:_0x285933})=>{let _0x4b6590='suggestion:'+_0x453122['getAttribute']('suggestion-type')+':'+_0x453122['getAttribute']('id');return _0x453122['getAttribute']('marker-count')&&(_0x4b6590+=':'+_0x453122['getAttribute']('marker-count')),_0x285933['createElement']('$marker',{'data-name':_0x4b6590});}}),_0x5b67ca['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5b67ca['conversion']['for']('editingDowncast')['add'](_0x2c4366=>{_0x2c4366['on']('addMarker:suggestion:formatBlock',_0xce2940(),{'priority':'high'});}),_0x5b67ca['conversion']['for']('editingDowncast')['add'](_0x44966b=>{_0x44966b['on']('addMarker:suggestion:attribute',_0xce2940({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5b67ca['conversion']['for']('editingDowncast')['add'](_0x42ba4d=>{_0x42ba4d['on']('removeMarker:suggestion:formatBlock',(_0x43bbaf,_0x225904,_0x468a34)=>{const _0x185e48=_0x468a34['mapper']['markerNameToElements'](_0x225904['markerName']);if(_0x185e48){for(const _0x88ab18 of _0x185e48)_0x88ab18['getCustomProperty']('addHighlight')||(_0x468a34['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x88ab18),_0x468a34['writer']['removeAttribute']('data-suggestion',_0x88ab18),_0x468a34['writer']['removeAttribute']('data-author-id',_0x88ab18),_0x468a34['mapper']['unbindElementFromMarkerName'](_0x88ab18,_0x225904['markerName']));}},{'priority':'high'});}),_0x5b67ca['conversion']['for']('editingDowncast')['add'](_0x16fdb5=>{_0x16fdb5['on']('removeMarker:suggestion:attribute',(_0x2a78f3,_0x540c7b,_0x36a542)=>{const _0x48b465=_0x36a542['mapper']['markerNameToElements'](_0x540c7b['markerName']);if(!_0x48b465)return;const {id:_0x46cda4}=this['_splitMarkerName'](_0x540c7b['markerName']),_0x460e37=this['_suggestions']['get'](_0x46cda4),_0x41957e=this['_getAttributeKey'](_0x460e37);if(this['_isBlockAttribute'](_0x41957e)){for(const _0xdfcfd8 of _0x48b465)_0xdfcfd8['getCustomProperty']('addHighlight')||(_0x36a542['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xdfcfd8),_0x36a542['writer']['removeAttribute']('data-suggestion',_0xdfcfd8),_0x36a542['writer']['removeAttribute']('data-author-id',_0xdfcfd8),_0x36a542['mapper']['unbindElementFromMarkerName'](_0xdfcfd8,_0x540c7b['markerName']));}},{'priority':'high'});}),_0x5b67ca['model']['document']['registerPostFixer'](_0x5eccb1=>{let _0x2e9c51=!0x1;const _0x19a57b=Array['from'](_0x5b67ca['model']['document']['differ']['getChangedMarkers']()),_0x542d05=new Set();for(const {name:_0xa500a9,data:_0x2d9709}of _0x19a57b){const {group:_0x18d156,type:_0x257b6e,subType:_0x5600df,id:_0x3b94d8}=this['_splitMarkerName'](_0xa500a9);if('suggestion'!==_0x18d156)continue;const _0x4ac537=this['_suggestions']['get'](_0x3b94d8);if(null!=_0x2d9709['newRange']){'formatInline'==_0x257b6e&&(_0x2e9c51=_0x2e9c51||Gt(_0x2d9709['newRange'],_0xa500a9,_0x5eccb1,_0x5b67ca['model']['schema']));const _0x145c20='attribute'==_0x257b6e&&this['_isBlockAttribute'](_0x5600df['split']('|')[0x0]);if(_0x2d9709['newRange']['isCollapsed']||'$graveyard'==_0x2d9709['newRange']['root']['rootName']||'formatBlock'==_0x257b6e&&!Jt(_0x2d9709['newRange'])||_0x145c20&&!Jt(_0x2d9709['newRange'])||'deletion'==_0x257b6e&&!Kt(_0x2d9709['newRange']))_0x5eccb1['removeMarker'](_0xa500a9),_0x2e9c51=!0x0;else{if(!_0x4ac537||!_0x4ac537['isInContent'])continue;if(_0x2d9709['newRange']&&_0x2d9709['oldRange']&&_0x2d9709['newRange']['isEqual'](_0x2d9709['oldRange']))continue;_0x542d05['add'](_0x4ac537);}}}return _0x542d05['size']>0x0&&(_0x2e9c51=!!this['_joinWithAdjacentSuggestions'](_0x542d05)||_0x2e9c51),_0x2e9c51;}),_0x5b67ca['model']['document']['registerPostFixer'](_0x55be59=>{let _0x4aee3f=!0x1;for(const _0xaa69c8 of _0x5b67ca['model']['document']['differ']['getChanges']())if('insert'==_0xaa69c8['type'])for(const _0x3a3025 of this['_suggestions']['values']()){if(_0x3a3025['isMultiRange']||!_0x3a3025['isInContent'])continue;const _0x22d081='formatBlock'==_0x3a3025['type'],_0x57aeca=this['_getAttributeKey'](_0x3a3025),_0x47b4f9=_0x57aeca&&this['_isBlockAttribute'](_0x57aeca);if(!_0x22d081&&!_0x47b4f9)continue;const _0xe24ff7=_0x3a3025['getFirstRange']();if(_0xe24ff7['start']['parent']!=_0xe24ff7['end']['parent']&&!_0xe24ff7['end']['isAtEnd']){const _0xcc8317=_0x5b67ca['model']['createPositionAt'](_0xe24ff7['start']['nodeAfter'],'end'),_0x5e3839=_0x5b67ca['model']['createRange'](_0xe24ff7['start'],_0xcc8317);_0x55be59['updateMarker'](_0x3a3025['getFirstMarker'](),{'range':_0x5e3839}),_0x4aee3f=!0x0;}}return _0x4aee3f;}),_0x5b67ca['model']['document']['registerPostFixer'](_0x17509b=>this['_processAttributeChanges'](_0x17509b)),_0x5b67ca['model']['document']['registerPostFixer'](_0x39817f=>!_0x39817f['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x39817f)),_0x5b67ca['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5b67ca['model']['document']['on']('change:data',(_0x18533b,_0x331c71)=>{if(!_0x331c71['isLocal']||_0x331c71['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x410393=_0x5b67ca['model']['document']['differ']['getChanges']();if(0x0==_0x410393['length'])return;const _0x497492=[],_0x1f4f34=_0x410393['filter'](_0x451156=>'attribute'==_0x451156['type']),_0x362718=_0x410393['filter'](_0x322b7d=>'insert'==_0x322b7d['type']&&'$text'!=_0x322b7d['name']);for(const _0x3cd685 of _0x1f4f34)this['_isRegisteredAttribute'](_0x3cd685['attributeKey'])&&_0x497492['push']({'key':_0x3cd685['attributeKey'],'newValue':_0x3cd685['attributeNewValue'],'oldValue':_0x3cd685['attributeOldValue'],'range':Ht(_0x3cd685['range'],_0x5b67ca['model'])});for(const _0x5d8b9e of _0x362718){if('rename'!=_0x5d8b9e['action']&&'refresh'!=_0x5d8b9e['action'])continue;const _0x11033c=qt(_0x5d8b9e['position']['nodeAfter'],_0x5b67ca['model']),_0x49f7e9=_0x5d8b9e['before'];'rename'==_0x5d8b9e['action']&&_0x497492['push']({'key':m,'newValue':_0x5d8b9e['name'],'oldValue':_0x49f7e9['name'],'range':_0x11033c});for(const [_0x298dea,_0x212c6d]of _0x49f7e9['attributes']){if(!this['_isRegisteredAttribute'](_0x298dea))continue;const _0xa28e88=_0x5d8b9e['attributes']['get'](_0x298dea);_0x212c6d!==_0xa28e88&&_0x497492['push']({'key':_0x298dea,'newValue':_0xa28e88,'oldValue':_0x212c6d,'range':_0x11033c});}for(const [_0x12f005,_0x26a83d]of _0x5d8b9e['attributes'])this['_isRegisteredAttribute'](_0x12f005)&&(_0x49f7e9['attributes']['has'](_0x12f005)||_0x497492['push']({'key':_0x12f005,'newValue':_0x26a83d,'oldValue':null,'range':_0x11033c}));}0x0!=_0x497492['length']&&_0x5b67ca['model']['enqueueChange'](_0x331c71,_0x3495f0=>{const _0x127247=_0x4bb6e6();for(const {range:_0x2e63bf,key:_0x362c80,oldValue:_0x34478c,newValue:_0x2248f4}of _0x497492)this['markAttributeChange'](_0x2e63bf,_0x362c80,_0x34478c,_0x2248f4,{'groupId':_0x127247});this['_reduceExistingSuggestions'](_0x3495f0,_0x497492);});},{'priority':'lowest'}),_0x5b67ca['model']['markers']['on']('update:suggestion',(_0xea2309,_0x4cd3cc,_0x13cfab)=>{if(null==_0x13cfab){const {id:_0x12002e}=this['_splitMarkerName'](_0x4cd3cc['name']),_0x11fe39=this['_suggestions']['get'](_0x12002e);_0x11fe39&&_0x11fe39['addMarkerName'](_0x4cd3cc['name']);}}),_0x5b67ca['model']['document']['on']('change:data',()=>{const _0x2345b8=Array['from'](_0x5b67ca['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2d0b40=>'suggestion'===this['_splitMarkerName'](_0x2d0b40['name'])['group']);if(0x0===_0x2345b8['length'])return;_0x2345b8['sort']((_0x1d687b,_0x189ad0)=>{const _0x37d309=_0x1d687b['data']['oldRange'],_0x441895=_0x189ad0['data']['oldRange'];return null===_0x37d309&&null===_0x441895?0x0:null===_0x37d309&&null!==_0x441895?-0x1:null!==_0x37d309&&null===_0x441895?0x1:_0x37d309['start']['isBefore'](_0x441895['start'])?-0x1:0x1;});const _0x3830f7=new Set(),_0x406ef3=new Set();for(const {name:_0x528e61,data:_0xc44100}of _0x2345b8){const {id:_0x2f3d92}=this['_splitMarkerName'](_0x528e61);if(null===_0xc44100['oldRange']){const _0x323da2=this['_handleNewSuggestionMarker'](_0x528e61);_0x406ef3['add'](_0x323da2);}else{const _0x3e9196=this['_suggestions']['get'](_0x2f3d92);null!==_0xc44100['newRange']||_0x3e9196['isInContent']?(_0x3830f7['add'](_0x3e9196['head']),_0x406ef3['add'](_0x3e9196)):this['_removeSuggestion'](_0x3e9196);}}_0x406ef3['size']>0x0&&this['_refreshSuggestionsChain'](_0x406ef3);for(const _0x4ef0d9 of _0x3830f7)this['fire']('suggestionChanged',_0x4ef0d9);}),_0x5b67ca['model']['on']('applyOperation',(_0x35e6b8,_0x444454)=>{const _0x49bb60=_0x444454[0x0];if(!this['_suggestions']['size'])return;if(!_0x49bb60['isDocumentOperation'])return;if(_0x49bb60['batch']['isUndo']||!_0x49bb60['batch']['isLocal'])return;let _0x21e932,_0x2f2561;switch(_0x49bb60['type']){case'insert':_0x21e932=_0x5b67ca['model']['createPositionAt'](_0x49bb60['position']),_0x2f2561=_0x21e932['getShiftedBy'](_0x49bb60['howMany']);break;case'split':_0x21e932=_0x5b67ca['model']['createPositionAt'](_0x49bb60['splitPosition']),_0x2f2561=_0x5b67ca['model']['createPositionAt'](_0x49bb60['moveTargetPosition']);break;case'move':_0x21e932=_0x5b67ca['model']['createPositionAt'](_0x49bb60['targetPosition']),_0x2f2561=_0x21e932['getShiftedBy'](_0x49bb60['howMany']);break;default:return;}const _0x4fda20=_0x5b67ca['model']['createRange'](_0x21e932,_0x2f2561);_0x5b67ca['model']['change'](()=>{for(const {suggestion:_0xb94d74,meta:_0x2e6ef2}of this['_findSuggestions'](_0x4fda20)){if(_0xb94d74['isMultiRange'])continue;if('formatInline'==_0xb94d74['type'])continue;const _0x4a6fcd=this['_getAttributeKey'](_0xb94d74);if(_0x4a6fcd&&this['_isBlockAttribute'](_0x4a6fcd)&&'split'!=_0x49bb60['type'])continue;const _0x186995=_0xb94d74['data']&&_0xb94d74['data']['multipleBlocks'];('formatBlock'!=_0xb94d74['type']||'split'==_0x49bb60['type']&&!_0x186995)&&(_0x2e6ef2['containsRangeInObject']||'insertion'==_0xb94d74['type']&&_0x2e6ef2['isOwn']||_0xb94d74['getFirstRange']()['containsRange'](_0x4fda20)&&this['_breakSuggestionMarker'](_0xb94d74,_0x21e932,_0x2f2561));}});},{'priority':'lowest'}),_0x5b67ca['model']['on']('deleteContent',(_0x50bf3e,_0xfb8aad)=>{const _0x66ac63=_0xfb8aad[0x0],_0x12159d=_0xfb8aad[0x1];if(_0x12159d&&_0x12159d['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x66ac63['isCollapsed'])return;const _0x2cc8b7=_0x5b67ca['model']['schema'],{start:_0x384b51,end:_0x1ab562}=_0x66ac63['getFirstRange'](),_0x558e53=_0x384b51['nodeAfter']&&_0x2cc8b7['isLimit'](_0x384b51['nodeAfter'])?null:_0x2cc8b7['getNearestSelectionRange'](_0x384b51,'forward'),_0x34ebe2=_0x1ab562['nodeBefore']&&_0x2cc8b7['isLimit'](_0x1ab562['nodeBefore'])?null:_0x2cc8b7['getNearestSelectionRange'](_0x1ab562,'backward'),_0x342114=_0x5b67ca['model']['createRange'](_0x558e53?_0x558e53['start']:_0x384b51,_0x34ebe2?_0x34ebe2['end']:_0x1ab562);_0x5b67ca['model']['change'](_0x4454cf=>{this['markDeletion'](_0x342114);const _0x4c3d98=_0x5b67ca['model']['schema']['getNearestSelectionRange'](_0x342114['start']);_0x66ac63['is']('documentSelection')?_0x4454cf['setSelection'](_0x4c3d98):_0x66ac63['setTo'](_0x4c3d98);}),_0x50bf3e['stop']();},{'priority':_0x2048ff['normal']+0xa}),_0x5b67ca['model']['on']('insertContent',(_0x3dff11,_0x4a2814)=>{const _0x303c38=_0x4a2814[_0x4a2814['length']-0x1];_0x303c38&&_0x303c38['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5b67ca['model']['change'](()=>{let _0x10321b=_0x5b67ca['model']['insertContent'](_0x4a2814[0x0],_0x4a2814[0x1],_0x4a2814[0x2],{'forceDefaultExecution':!0x0});if(!_0x10321b)return;_0x3dff11['return']=_0x10321b['clone']();const _0x481b1c=_0x10321b['end']['nodeBefore'],_0x52f9d3=_0x5b67ca['model']['schema'];_0x481b1c&&_0x52f9d3['isBlock'](_0x481b1c)&&!_0x52f9d3['isObject'](_0x481b1c)&&(_0x10321b=_0x5b67ca['model']['createRange'](_0x10321b['start'],_0x5b67ca['model']['createPositionAt'](_0x481b1c,'end'))),this['markInsertion'](_0x10321b);}),_0x3dff11['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x150a43=new D(_0x5b67ca,this['_suggestions']);_0x5b67ca['commands']['add']('acceptSuggestion',_0x150a43),this['enableCommand']('acceptSuggestion');const _0xcfc5ac=new M(_0x5b67ca,this['_suggestions']);_0x5b67ca['commands']['add']('discardSuggestion',_0xcfc5ac),this['enableCommand']('discardSuggestion'),_0x5b67ca['commands']['add']('acceptAllSuggestions',new $(_0x5b67ca,_0x150a43,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5b67ca['commands']['add']('discardAllSuggestions',new $(_0x5b67ca,_0xcfc5ac,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5b67ca['commands']['add']('acceptSelectedSuggestions',new B(_0x5b67ca,_0x150a43,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5b67ca['commands']['add']('discardSelectedSuggestions',new B(_0x5b67ca,_0xcfc5ac,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x17c381=_0x5b67ca['plugins']['get']('CommentsRepository');this['listenTo'](_0x17c381,'addComment',(_0xac626,{threadId:_0x4627f2})=>{const _0x6c36e=this['_suggestions']['get'](_0x4627f2);_0x6c36e&&_0x6c36e['commentThread']&&0x1===_0x6c36e['commentThread']['length']&&this['_updateSuggestionData'](_0x4627f2,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x17c381,'removeComment',(_0x525d7c,{threadId:_0x23c36d})=>{const _0x212e6f=this['_suggestions']['get'](_0x23c36d);_0x212e6f&&_0x212e6f['commentThread']&&!_0x212e6f['commentThread']['length']&&this['_updateSuggestionData'](_0x23c36d,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2616db){const _0x2cb66a=_0x1e85de([0x69,0x6a,0x56,0x61,0x36,0x33,0x68,0x65,0x6b,0x30,0x47,0x4a,0x32,0x72,0x59,0x6d,0x6f,0x4f,0x78,0x48,0x4b,0x58,0x42,0x45,0x7a,0x38,0x76,0x49,0x6e,0x70,0x5a,0x67,0x79,0x4e,0x77,0x41,0x43,0x44,0x39,0x6c,0x53,0x31,0x46,0x57,0x74,0x50,0x34,0x63,0x51,0x52,0x62,0x64,0x4d,0x54,0x75,0x71,0x4c,0x73,0x35,0x66,0x37,0x55]),_0xf39ede=0x39fbb5b1,_0x1f1b8c=0x39fcd9b9^_0xf39ede,_0x4be78e=window[_0x1e85de([0x44,0x61,0x74,0x65])][_0x1e85de([0x6e,0x6f,0x77])](),_0x2bced8=_0x2616db[_0x1e85de([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5d193c=new window[(_0x1e85de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54e957=>{_0x2bced8[_0x1e85de([0x6f,0x6e,0x63,0x65])](_0x1e85de([0x72,0x65,0x61,0x64,0x79]),_0x54e957);}),_0x40aae0={[_0x1e85de([0x6b,0x74,0x79])]:_0x1e85de([0x45,0x43]),[_0x1e85de([0x75,0x73,0x65])]:_0x1e85de([0x73,0x69,0x67]),[_0x1e85de([0x63,0x72,0x76])]:_0x1e85de([0x50,0x2d,0x32,0x35,0x36]),[_0x1e85de([0x78])]:_0x1e85de([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]),[_0x1e85de([0x79])]:_0x1e85de([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]),[_0x1e85de([0x61,0x6c,0x67])]:_0x1e85de([0x45,0x53,0x32,0x35,0x36])},_0x5c9041=_0x2bced8[_0x1e85de([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1e85de([0x67,0x65,0x74])](_0x1e85de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x202aa9(){let _0x53b836,_0x306b3=null,_0x24d6cf=null;try{if(_0x5c9041==_0x1e85de([0x47,0x50,0x4c]))return _0x1e85de([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x53b836=_0x4a6e38(),!_0x53b836)return _0x1e85de([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x53b836[_0x1e85de([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x24d6cf=_0x2e6aee(_0x53b836[_0x1e85de([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x53b836[_0x1e85de([0x6a,0x74,0x69])])),await _0x33bf8f()?_0x2dad99()?_0x583946()?_0x1e85de([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3a6f11()?(_0x53b836[_0x1e85de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e85de([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x306b3=_0x35096b(_0x1e85de([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x53b836[_0x1e85de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e85de([0x74,0x72,0x69,0x61,0x6c])&&(_0x306b3=_0x35096b(_0x1e85de([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x298a5a()):_0x1e85de([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1e85de([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1e85de([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1e85de([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x583946(){const _0x189556=[_0x1e85de([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1e85de([0x74,0x72,0x69,0x61,0x6c])][_0x1e85de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53b836[_0x1e85de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4be78e/0x3e8:0xe10*_0x1f1b8c;return _0x53b836[_0x1e85de([0x65,0x78,0x70])]<_0x189556;}function _0x2dad99(){const _0x15402=_0x53b836[_0x1e85de([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x15402)return!0x1;if(_0x15402[_0x1e85de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e85de([0x2a])))return!0x0;if(_0x15402[_0x1e85de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e85de([0x54,0x43])))return!0x0;if(_0x15402[_0x1e85de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e85de([0x52,0x54,0x43]))){if(_0x3d5645())return!0x0;if(_0x524d6e()||_0x25b85d())return!0x0;}return!0x1;}function _0x3a6f11(){const _0x5413d4=_0x53b836[_0x1e85de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5413d4||0x0==_0x5413d4[_0x1e85de([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x9756f5}=new URL(window[_0x1e85de([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5413d4[_0x1e85de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9756f5))return!0x0;const _0x5503d5=_0x9756f5[_0x1e85de([0x73,0x70,0x6c,0x69,0x74])](_0x1e85de([0x2e]));return _0x5413d4[_0x1e85de([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x18a68b=>_0x18a68b[_0x1e85de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e85de([0x2a])))[_0x1e85de([0x6d,0x61,0x70])](_0xbecc3e=>_0xbecc3e[_0x1e85de([0x73,0x70,0x6c,0x69,0x74])](_0x1e85de([0x2e])))[_0x1e85de([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x473e39=>_0x473e39[_0x1e85de([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5503d5[_0x1e85de([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e85de([0x6d,0x61,0x70])](_0xf4182b=>Array(_0x5503d5[_0x1e85de([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xf4182b[_0x1e85de([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e85de([0x66,0x69,0x6c,0x6c])](_0xf4182b[0x0]===_0x1e85de([0x2a])?_0x1e85de([0x2a]):'')[_0x1e85de([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xf4182b))[_0x1e85de([0x73,0x6f,0x6d,0x65])](_0x119e72=>_0x5503d5[_0x1e85de([0x65,0x76,0x65,0x72,0x79])]((_0x1ff3f8,_0x5476f8)=>_0x119e72[_0x5476f8]===_0x1ff3f8||_0x119e72[_0x5476f8]===_0x1e85de([0x2a])));}function _0x298a5a(){return _0x306b3&&_0x24d6cf?new window[(_0x1e85de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x185b25,_0x13679f)=>{_0x306b3[_0x1e85de([0x74,0x68,0x65,0x6e])](_0x185b25,_0x13679f),_0x24d6cf[_0x1e85de([0x74,0x68,0x65,0x6e])](_0x58b4d8=>{_0x58b4d8!=_0x1e85de([0x56,0x61,0x6c,0x69,0x64])&&_0x185b25(_0x58b4d8);},_0x13679f);}):_0x306b3||_0x24d6cf||_0x1e85de([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2e6aee(_0x4ce77b,_0x5be370){return new window[(_0x1e85de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19c340=>{if(_0x11364a())return _0x19c340(_0x1e85de([0x56,0x61,0x6c,0x69,0x64]));_0x3df894(),_0x2bced8[_0x1e85de([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1e85de([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x14d648=!0x1;const _0x4d61b7=_0x4bb6e6();function _0x756464(_0x58fa83){return!!_0x58fa83&&(typeof _0x58fa83===_0x1e85de([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x58fa83===_0x1e85de([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x58fa83[_0x1e85de([0x74,0x68,0x65,0x6e])]===_0x1e85de([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x58fa83[_0x1e85de([0x63,0x61,0x74,0x63,0x68])]===_0x1e85de([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x110cd9(_0x23fb04){_0x1feda0(_0x23fb04)[_0x1e85de([0x74,0x68,0x65,0x6e])](_0x20302d=>{if(!_0x20302d||_0x20302d[_0x1e85de([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1e85de([0x6f,0x6b]))return _0x1e85de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x32bc96(_0x49c89c(_0x4d61b7+_0x5be370))!=_0x20302d[_0x1e85de([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1e85de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1e85de([0x56,0x61,0x6c,0x69,0x64]);})[_0x1e85de([0x74,0x68,0x65,0x6e])](_0x232d75=>(_0x3e3a21(),_0x232d75),()=>{const _0x3e1728=_0x38241e();return null==_0x3e1728?(_0x3e3a21(),_0x1e85de([0x56,0x61,0x6c,0x69,0x64])):_0x1e85de(_0x4be78e-_0x3e1728>(0x1df731b1^_0xf39ede)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1e85de([0x74,0x68,0x65,0x6e])](_0x19c340)[_0x1e85de([0x63,0x61,0x74,0x63,0x68])](()=>{_0x19c340(_0x1e85de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x471778=0x39cd5b31^_0xf39ede;function _0x3e3a21(){const _0xfb96f5=_0x1e85de([0x6c,0x6c,0x63,0x74,0x2d])+_0x32bc96(_0x49c89c(_0x4ce77b)),_0x2804ef=_0x2a663d(_0x32bc96(window[_0x1e85de([0x4d,0x61,0x74,0x68])][_0x1e85de([0x63,0x65,0x69,0x6c])](_0x4be78e/_0x471778)));window[_0x1e85de([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e85de([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xfb96f5,_0x2804ef);}function _0x38241e(){const _0x306f74=_0x1e85de([0x6c,0x6c,0x63,0x74,0x2d])+_0x32bc96(_0x49c89c(_0x4ce77b)),_0x5d8c54=window[_0x1e85de([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e85de([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x306f74);return _0x5d8c54?window[_0x1e85de([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a663d(_0x5d8c54),0x10)*_0x471778:null;}function _0x1feda0(_0x4c82cd){return new window[(_0x1e85de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb5545f,_0x14162a)=>{_0x4c82cd[_0x1e85de([0x74,0x68,0x65,0x6e])](_0xb5545f,_0x14162a),window[_0x1e85de([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x14162a,0x39fa6171^_0xf39ede);});}}_0x2bced8[_0x1e85de([0x6f,0x6e])](_0x1e85de([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4fae4f,_0x3d22b2)=>{if(_0x3d22b2[0x0]!=_0x4ce77b)return _0x19c340(_0x1e85de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3d22b2[0x1]={..._0x3d22b2[0x1],[_0x1e85de([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4d61b7};},{[_0x1e85de([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e85de([0x68,0x69,0x67,0x68])}),_0x2bced8[_0x1e85de([0x6f,0x6e])](_0x1e85de([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xbb1fb9=>{_0x756464(_0xbb1fb9[_0x1e85de([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x14d648=!0x0,_0x110cd9(_0xbb1fb9[_0x1e85de([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1e85de([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e85de([0x6c,0x6f,0x77])}),_0x5d193c[_0x1e85de([0x74,0x68,0x65,0x6e])](()=>{_0x14d648||_0x19c340(_0x1e85de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x11364a(){return _0x2bced8[_0x1e85de([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e85de([0x76,0x69,0x65,0x77])][_0x1e85de([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1e85de([0x61,0x75,0x74,0x6f]);}function _0x3df894(){_0x2bced8[_0x1e85de([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e85de([0x76,0x69,0x65,0x77])][_0x1e85de([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1e85de([0x61,0x75,0x74,0x6f]);}}function _0x35096b(_0x39234a){const _0x205be7=[new window[(_0x1e85de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52c827=>setTimeout(_0x52c827,0x39f28b7d^_0xf39ede)),_0x5d193c[_0x1e85de([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1e85de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x584fe1=>{let _0xdb1037=0x0;_0x2bced8[_0x1e85de([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e85de([0x6f,0x6e])](_0x1e85de([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4a94f8,_0x3f0700)=>{_0x3f0700[0x0][_0x1e85de([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xdb1037++,_0xdb1037==(0x39fbb449^_0xf39ede)&&(_0x584fe1(),_0x4a94f8[_0x1e85de([0x6f,0x66,0x66])]());});}))];return window[_0x1e85de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1e85de([0x72,0x61,0x63,0x65])](_0x205be7)[_0x1e85de([0x74,0x68,0x65,0x6e])](()=>_0x39234a);}async function _0x39f216(){await _0x5d193c,_0x2bced8[_0x1e85de([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e85de([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x14e444,_0x2bced8[_0x1e85de([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e85de([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x14e444,_0x2bced8[_0x1e85de([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1e85de([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3d5645(){return _0x5a907c(_0x1e85de([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x276861(_0x1e85de([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1e85de([0x73,0x74,0x61,0x74,0x65])]==_0x1e85de([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x524d6e(){return _0x5a907c(_0x1e85de([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 _0x25b85d(){return _0x5a907c(_0x1e85de([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x47c25b(_0x296d89){const _0x558fa9=_0x437a0f();_0x2bced8[_0x558fa9]=_0x1e85de([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x296d89,_0x296d89!=_0x1e85de([0x56,0x61,0x6c,0x69,0x64])&&_0x39f216();}function _0x437a0f(){const _0x1ad2da=window[_0x1e85de([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1e85de([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1e85de([0x6e,0x6f,0x77])]())[_0x1e85de([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1e85de([0x2e]),'');let _0x458cf7=_0x1e85de([0x69]);for(let _0x63e535=0x0;_0x63e535<_0x1ad2da[_0x1e85de([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x63e535+=0x2){let _0x104051=window[_0x1e85de([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ad2da[_0x1e85de([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x63e535,_0x63e535+0x2));_0x104051>=_0x2cb66a[_0x1e85de([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x104051-=_0x2cb66a[_0x1e85de([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x458cf7+=_0x2cb66a[_0x104051];}return _0x458cf7;}function _0x4a6e38(){const _0xbd99f7=_0x5c9041[_0x1e85de([0x73,0x70,0x6c,0x69,0x74])](_0x1e85de([0x2e]));if(0x3!=_0xbd99f7[_0x1e85de([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x54d595(_0xbd99f7[0x1]);function _0x54d595(_0x294564){const _0x1b1a20=_0x310020(_0x294564);return _0x1b1a20&&_0x4ff9f9()?_0x1b1a20:null;function _0x4ff9f9(){const _0x2d14ec=_0x1b1a20[_0x1e85de([0x6a,0x74,0x69])],_0x20fc82=window[_0x1e85de([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d14ec[_0x1e85de([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d14ec[_0x1e85de([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5c1a77={..._0x1b1a20,[_0x1e85de([0x6a,0x74,0x69])]:_0x2d14ec[_0x1e85de([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2d14ec[_0x1e85de([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5c1a77[_0x1e85de([0x76,0x63])],_0x49c89c(_0x5c1a77)==_0x20fc82;}}}async function _0x33bf8f(){let _0x330af8=!0x0;try{const _0x4e8653=_0x5c9041[_0x1e85de([0x73,0x70,0x6c,0x69,0x74])](_0x1e85de([0x2e])),[_0x2bbc49,_0x551d24,_0x253b01]=_0x4e8653;return _0x80123f(_0x2bbc49),await _0x31c163(_0x2bbc49,_0x551d24,_0x253b01),_0x330af8;}catch{return!0x1;}function _0x80123f(_0x14581d){const _0x25ef7a=_0x310020(_0x14581d);_0x25ef7a&&_0x25ef7a[_0x1e85de([0x61,0x6c,0x67])]==_0x1e85de([0x45,0x53,0x32,0x35,0x36])||(_0x330af8=!0x1);}async function _0x31c163(_0x3f2b36,_0x2e64b2,_0x317db7){const _0x1aa4f1=window[_0x1e85de([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1e85de([0x66,0x72,0x6f,0x6d])](_0x5d3ef5(_0x317db7),_0x5058b2=>_0x5058b2[_0x1e85de([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x14812c=new window[(_0x1e85de([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1e85de([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3f2b36+_0x1e85de([0x2e])+_0x2e64b2),_0x4e5c1e=window[_0x1e85de([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1e85de([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4e5c1e)return;const _0x33aaa6=await _0x4e5c1e[_0x1e85de([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1e85de([0x6a,0x77,0x6b]),_0x40aae0,{[_0x1e85de([0x6e,0x61,0x6d,0x65])]:_0x1e85de([0x45,0x43,0x44,0x53,0x41]),[_0x1e85de([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1e85de([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1e85de([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4e5c1e[_0x1e85de([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1e85de([0x6e,0x61,0x6d,0x65])]:_0x1e85de([0x45,0x43,0x44,0x53,0x41]),[_0x1e85de([0x68,0x61,0x73,0x68])]:{[_0x1e85de([0x6e,0x61,0x6d,0x65])]:_0x1e85de([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x33aaa6,_0x1aa4f1,_0x14812c)||(_0x330af8=!0x1);}}function _0x310020(_0x42a099){return _0x42a099[_0x1e85de([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1e85de([0x65,0x79]))?JSON[_0x1e85de([0x70,0x61,0x72,0x73,0x65])](_0x5d3ef5(_0x42a099)):null;}function _0x5d3ef5(_0x3a5a84){return window[_0x1e85de([0x61,0x74,0x6f,0x62])](_0x3a5a84[_0x1e85de([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1e85de([0x2b]))[_0x1e85de([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1e85de([0x2f])));}function _0x49c89c(_0x2fefa0){let _0x8b1b1d=0x1505;function _0x1f63d8(_0x2a4064){for(let _0x5ba380=0x0;_0x5ba380<_0x2a4064[_0x1e85de([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ba380++){const _0x589caa=_0x2a4064[_0x1e85de([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5ba380);_0x8b1b1d=(_0x8b1b1d<<0x5)+_0x8b1b1d+_0x589caa,_0x8b1b1d&=_0x8b1b1d;}}function _0x2a0af6(_0x252068){Array[_0x1e85de([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x252068)?_0x252068[_0x1e85de([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2a0af6):_0x252068&&typeof _0x252068==_0x1e85de([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1e85de([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x252068)[_0x1e85de([0x73,0x6f,0x72,0x74])]()[_0x1e85de([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x59c265,_0xf3baac])=>{_0x1f63d8(_0x59c265),_0x2a0af6(_0xf3baac);}):_0x1f63d8(window[_0x1e85de([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x252068));}return _0x2a0af6(_0x2fefa0),_0x8b1b1d>>>0x0;}function _0x32bc96(_0x4f6277){return _0x4f6277[_0x1e85de([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1e85de([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1e85de([0x30]));}function _0x2a663d(_0x5231dc){return _0x5231dc[_0x1e85de([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1e85de([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1e85de([0x6a,0x6f,0x69,0x6e])]('');}function _0x5a907c(_0x1d1f42){return _0x2bced8[_0x1e85de([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1e85de([0x68,0x61,0x73])](_0x1d1f42);}function _0x276861(_0x534550){return _0x2bced8[_0x1e85de([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1e85de([0x67,0x65,0x74])](_0x534550);}function _0x14e444(){}function _0x1e85de(_0x5d20df){return _0x5d20df['map'](_0x10b5a1=>String['fromCharCode'](_0x10b5a1))['join']('');}_0x47c25b(await _0x202aa9());}(this);}set['adapter'](_0x16123e){if(this['_adapter'])throw new _0x30e493('track-changes-adapter-already-set',this);this['_adapter']=_0x16123e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2807e5=!0x1,toJSON:_0x12faca=!0x1}={}){const _0x2f8111=[];for(const _0x1e6e70 of this['_suggestions']['values']())_0x2807e5&&!_0x1e6e70['isInContent']||_0x2f8111['push'](_0x1e6e70);return _0x12faca?_0x2f8111['map'](_0x2f6799=>_0x2f6799['toJSON']()):_0x2f8111;}['getSuggestion'](_0x193908){const _0x1794e2=this['_suggestions']['get'](_0x193908);if(!_0x1794e2)throw new _0x30e493('track-changes-suggestion-not-found',this);return _0x1794e2;}['hasSuggestion'](_0x24f566){return this['_suggestions']['has'](_0x24f566);}['addSuggestionData'](_0x243cd3){const {authorId:_0x325c3a,id:_0x440946,originalSuggestionId:_0x4c1a16,attributes:_0x423c8a}=_0x243cd3,[_0xede251,_0x319b6c]=_0x243cd3['type']['split'](':'),_0x4557d9=this['_suggestions']['get'](_0x440946)||this['_createSuggestion'](_0xede251,_0x319b6c,_0x440946,_0x325c3a,_0x423c8a,_0x4c1a16);if(this['_addThreadToSuggestion'](_0x4557d9),this['_checkSuggestionCorrectness'](_0x4557d9,_0xede251,_0x319b6c||null,_0x325c3a),_0x4557d9['createdAt']=_0x243cd3['createdAt'],_0x4557d9['_isDataLoaded']=!0x0,_0x423c8a&&_0x423c8a['@external']){const _0x241d1b=_0x423c8a['@external'],_0x371d02=this['_getExternalAuthor'](_0x241d1b['authorName']);_0x4557d9['authoredAt']=_0x241d1b['createdAt'],_0x4557d9['author']=_0x371d02,_0x4557d9['isExternal']=!0x0;}else _0x4557d9['authoredAt']=_0x243cd3['createdAt'];switch(_0x243cd3['data']&&(_0x4557d9['data']=_0x243cd3['data']),_0x243cd3['attributes']&&(_0x4557d9['attributes']=_0x243cd3['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4557d9['_saved']=!0x0),this['_suggestionState']['get'](_0x4557d9)){case'notReady':this['_suggestionState']['set'](_0x4557d9,'dataReady');break;case'markerReady':_0x4557d9['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4557d9])),this['_refreshSuggestionsChain'](new Set([_0x4557d9])),this['_suggestionState']['set'](_0x4557d9,'ready'),this['fire']('suggestionLoaded',_0x4557d9)):this['_suggestionState']['set'](_0x4557d9,'removed');}return _0x4557d9;}['acceptSuggestion'](_0x4e575f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2ecf47 of _0x4e575f['getAllAdjacentSuggestions']())_0x2ecf47['accept']();});});}['discardSuggestion'](_0x56cbea){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x317436 of _0x56cbea['getAllAdjacentSuggestions']())_0x317436['discard']();});});}['enableCommand'](_0xafea7b,_0x3f820f){const _0x18f815=this['editor']['commands']['get'](_0xafea7b);if(!_0x18f815)throw new _0x30e493('track-changes-command-not-found',this,{'commandName':_0xafea7b});if(this['_enabledCommands']['has'](_0x18f815))throw new _0x30e493('track-changes-enable-command-twice',this,{'commandName':_0xafea7b});this['_enabledCommands']['add'](_0x18f815),_0x3f820f&&_0x18f815['on']('execute',(_0x33db4b,_0x526ee6)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x526ee6['length']>0x0&&_0x526ee6[_0x526ee6['length']-0x1]&&_0x526ee6[_0x526ee6['length']-0x1]['forceDefaultExecution']?_0x526ee6['pop']():(_0x33db4b['return']=_0x3f820f((..._0x4acf9f)=>_0x18f815['execute'](..._0x4acf9f,{'forceDefaultExecution':!0x0}),..._0x526ee6),_0x33db4b['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5164f2){let _0xb7afac,_0xb96540;const _0x3d315d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xb7afac=_0x5164f2();}catch(_0x17ef17){_0xb96540=_0x17ef17;}return _0x3d315d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xb96540&&_0x30e493['rethrowUnexpectedError'](_0xb96540,this),_0xb7afac;}['markInsertion'](_0x4b8f19,_0x1b28b8=null,_0x14a91d={}){if(_0x4b8f19['isCollapsed'])return null;const _0x50be98=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x14a91d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4e1e88,meta:_0x2d1bc9}of this['_findSuggestions'](_0x4b8f19,'insertion'))if(_0x2d1bc9['isOwn']){if(!_0x2d1bc9['isNextTo']){if(_0x2d1bc9['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x4e1e88,_0x14a91d))continue;return _0x4e1e88;}if(Qt(_0x4e1e88,_0x14a91d))return _0x4e1e88;this['_breakSuggestionMarker'](_0x4e1e88,_0x4b8f19['start'],_0x4b8f19['end']);break;}if(_0x1b28b8==_0x4e1e88['subType']&&Qt(_0x4e1e88,_0x14a91d)){const _0x257742=_0x4e1e88['getFirstRange']();return _0x257742['start']['isEqual'](_0x4b8f19['end'])?this['_setSuggestionRange'](_0x4e1e88,this['_model']['createRange'](_0x4b8f19['start'],_0x257742['end'])):this['_setSuggestionRange'](_0x4e1e88,this['_model']['createRange'](_0x257742['start'],_0x4b8f19['end'])),_0x4e1e88;}}const _0x5d9f70=_0x4bb6e6(),_0x14c3f4=_0x50be98['id'],_0x55ce0a=_0x1b28b8?'insertion:'+_0x1b28b8:'insertion',_0x530cbc=this['_setSuggestionData']({'id':_0x5d9f70,'type':_0x55ce0a,'createdAt':new Date(),'authorId':_0x14c3f4,'attributes':_0x14a91d});return this['_addSuggestionMarker'](_0x55ce0a,_0x5d9f70,_0x14c3f4,_0x4b8f19),_0x530cbc;}['markMultiRangeInsertion'](_0x4199a7,_0x6a07cb='multi',_0x149e9e={}){const _0x2e76ad=this['editor']['plugins']['get']('Users')['me'],_0x1dcf10=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x6a07cb,'join');this['_trackingSessionId']&&(_0x149e9e['trackingSessionId']=this['_trackingSessionId']);for(const _0x574137 of this['getSuggestions']())if(_0x574137['author']['id']==_0x2e76ad['id']&&'insertion'==_0x574137['type']&&_0x574137['subType']==_0x6a07cb&&Qt(_0x574137,_0x149e9e)&&(_0x1dcf10(_0x574137['getRanges'](),_0x4199a7)||_0x1dcf10(_0x4199a7,_0x574137['getRanges']()))){for(const _0x1c20bd of _0x4199a7)_0x574137['addRange'](_0x1c20bd);return _0x574137;}for(const {suggestion:_0x3bc96c,meta:_0x2d5dad}of this['_findSuggestions'](_0x4199a7,'insertion')){if(!_0x2d5dad['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2d5dad['containsRangeInObject'])continue;if(!Qt(_0x3bc96c,_0x149e9e))continue;let _0x21089a=!0x0;for(const _0x2a65c2 of _0x3bc96c['getRanges']())for(const _0x33b114 of _0x4199a7)if(!_0x2a65c2['containsRange'](_0x33b114)){_0x21089a=!0x1;break;}if(_0x21089a)return _0x3bc96c;}const _0x46d2ca=_0x4bb6e6(),_0x175f8c=_0x2e76ad['id'],_0x4769ba='insertion:'+_0x6a07cb,_0x27b09b=this['_setSuggestionData']({'id':_0x46d2ca,'type':_0x4769ba,'createdAt':new Date(),'authorId':_0x175f8c,'attributes':_0x149e9e});for(const _0x2c6a8d of _0x4199a7)this['_addSuggestionMarker'](_0x4769ba,_0x46d2ca,_0x175f8c,_0x2c6a8d,T['getMultiRangeId']());return _0x27b09b;}['markInlineFormat'](_0x3f0b11,_0x2bf282,_0x4b7d1c=null,_0x517c89={}){if(_0x4b7d1c=_0x4b7d1c||Lt(_0x2bf282),_0x3f0b11['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x517c89['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3bdded=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4b7d1c,'accept');return this['forceDefaultExecution'](()=>_0x3bdded([_0x3f0b11],_0x2bf282,_0x517c89)),null;}const _0x4bd1e7=this['editor']['plugins']['get']('Users')['me'],_0x5e4676=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2fb6c7,meta:_0x261102}of this['_findSuggestions'](_0x3f0b11,'insertion'))_0x261102['isOwn']&&!_0x261102['isInsideObject']&&_0x5e4676['push'](..._0x2fb6c7['getRanges']());}const _0x206078=function(_0x563e0b,_0x4a7297){const _0x4c4306=[];for(const _0x5c9451 of _0x4a7297){const _0x15852d=_0x563e0b['getIntersection'](_0x5c9451);_0x15852d&&_0x4c4306['push'](_0x15852d);}return _0x4c4306;}(_0x3f0b11,_0x5e4676),_0x348ec7=function(_0x598b90,_0x5677ed){const _0x1e85fc=[_0x598b90];for(const _0xe7fdb8 of _0x5677ed){let _0x1a709f=0x0;for(;_0x1a709f<_0x1e85fc['length'];){const _0x4ed0a1=_0x1e85fc[_0x1a709f]['getDifference'](_0xe7fdb8);_0x1e85fc['splice'](_0x1a709f,0x1,..._0x4ed0a1),_0x1a709f+=_0x4ed0a1['length'];}}return _0x1e85fc;}(_0x3f0b11,_0x5e4676);_0x206078['length']&&this['_model']['change'](()=>{for(const _0x3f1dbd of _0x206078){const _0x28d113=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4b7d1c,'accept');this['forceDefaultExecution'](()=>_0x28d113([_0x3f1dbd],_0x2bf282,_0x517c89));}});for(const _0x426617 of _0x348ec7){let _0x2b27c9=null,_0x33d6ff=_0x426617['start'],_0x2357ce=_0x426617['end'];for(const {suggestion:_0x2adc92,meta:_0x58e96a}of this['_findSuggestions'](_0x426617,'formatInline')){if(!_0x58e96a['isOwn'])continue;if(_0x2adc92['subType']!=_0x4b7d1c)continue;if(!Qt(_0x2adc92,_0x517c89))continue;const _0x5675db=_0x2adc92['getFirstRange']();if(_0x5675db['containsRange'](_0x426617,!0x0))return null;_0x33d6ff=_0x33d6ff['isBefore'](_0x5675db['start'])?_0x33d6ff:_0x5675db['start'],_0x2357ce=_0x2357ce['isAfter'](_0x5675db['end'])?_0x2357ce:_0x5675db['end'],_0x2b27c9?_0x5675db['start']['isBefore'](_0x2b27c9['getFirstRange']()['start'])?(_0x2b27c9['removeMarkers'](),_0x2b27c9=_0x2adc92):_0x2adc92['removeMarkers']():_0x2b27c9=_0x2adc92;}const _0x32eff5=this['_model']['createRange'](_0x33d6ff,_0x2357ce);if(_0x2b27c9)this['_setSuggestionRange'](_0x2b27c9,_0x32eff5);else{const _0x501a56=_0x4bb6e6(),_0x1d0e7c=_0x4bd1e7['id'];this['_setSuggestionData']({'id':_0x501a56,'type':'formatInline:'+_0x4b7d1c,'data':_0x2bf282,'createdAt':new Date(),'authorId':_0x1d0e7c,'attributes':_0x517c89}),this['_addSuggestionMarker']('formatInline:'+_0x4b7d1c,_0x501a56,_0x1d0e7c,_0x32eff5);}}return null;}['markBlockFormat'](_0x37da9e,_0x2efd87,_0x51ba83=[],_0x3aab0e=null,_0x58f045={}){_0x2efd87['formatGroupId']||(_0x2efd87['formatGroupId']=_0x2efd87['commandName']),_0x2efd87['multipleBlocks']=_0x37da9e['is']('range'),_0x3aab0e=_0x3aab0e||Lt(_0x2efd87);const _0x34206f=_0x51ba83['map'](_0x235dbd=>qt(_0x235dbd,this['_model'])),_0x28b853=_0x37da9e['is']('range')?_0x37da9e:qt(_0x37da9e,this['_model']);if(this['_trackingSessionId']&&(_0x58f045['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x421a87=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3aab0e,'accept');return this['forceDefaultExecution'](()=>_0x421a87([_0x28b853],_0x2efd87,_0x58f045)),null;}_0x34206f['push'](_0x28b853);let _0x3dba11=!0x0;for(const _0x3b420b of _0x34206f)if(!this['_rangeIsInLocalUserInsertion'](_0x3b420b)){_0x3dba11=!0x1;break;}if(_0x3dba11&&'always'!==this['_trackFormatChanges']){const _0x3e2a4d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3aab0e,'accept');return this['forceDefaultExecution'](()=>_0x3e2a4d([_0x28b853],_0x2efd87,_0x58f045)),null;}let _0x3675ae=null,_0x4178d7=_0x28b853['start'],_0x2970a7=_0x28b853['end'];for(const {suggestion:_0x2f4a1e,meta:_0xc6861a}of this['_findSuggestions'](_0x28b853,'formatBlock')){if(!_0xc6861a['isOwn'])continue;if(_0xc6861a['isNextTo']||_0xc6861a['containsRangeInObject']||_0xc6861a['isInsideObject'])continue;if(_0x2f4a1e['data']['formatGroupId']!=_0x2efd87['formatGroupId'])continue;if(!Qt(_0x2f4a1e,_0x58f045))continue;const _0x3144bf=_0x2f4a1e['getFirstRange']();if(_0x2f4a1e['subType']==_0x3aab0e){if(_0x3144bf['containsRange'](_0x28b853,!0x0))return null;_0x4178d7=_0x4178d7['isBefore'](_0x3144bf['start'])?_0x4178d7:_0x3144bf['start'],_0x2970a7=_0x2970a7['isAfter'](_0x3144bf['end'])?_0x2970a7:_0x3144bf['end'],_0x3675ae?_0x3144bf['start']['isBefore'](_0x3675ae['getFirstRange']()['start'])?(_0x3675ae['removeMarkers'](),_0x3675ae=_0x2f4a1e):_0x2f4a1e['removeMarkers']():_0x3675ae=_0x2f4a1e;}else{const _0x385226=_0x28b853['getIntersection'](_0x3144bf);this['_cutOutSuggestionMarker'](_0x2f4a1e,_0x385226);}}const _0x76626b=this['editor']['plugins']['get']('Users')['me'],_0x15e521=_0x4bb6e6(),_0x102c74=_0x76626b['id'];if(_0x3675ae)return this['_setSuggestionRange'](_0x3675ae,this['_model']['createRange'](_0x4178d7,_0x2970a7)),_0x3675ae;{const _0x328a26=this['_setSuggestionData']({'id':_0x15e521,'type':'formatBlock:'+_0x3aab0e,'data':_0x2efd87,'createdAt':new Date(),'authorId':_0x102c74,'attributes':_0x58f045});return this['_addSuggestionMarker']('formatBlock:'+_0x3aab0e,_0x15e521,_0x102c74,this['_model']['createRange'](_0x4178d7,_0x2970a7)),_0x328a26;}}['markMultiRangeBlockFormat'](_0x50f4ae,_0x14ccee,_0x100cc3=[],_0x4b64e5=null,_0x1391ae={}){_0x14ccee['formatGroupId']||(_0x14ccee['formatGroupId']=_0x14ccee['commandName']);const _0x578f5d=_0x50f4ae[0x0];_0x14ccee['multipleBlocks']=_0x578f5d['is']('range'),_0x4b64e5=_0x4b64e5||Lt(_0x14ccee);const _0x23c715=_0x100cc3['map'](_0x41382b=>qt(_0x41382b,this['_model'])),_0x1a88ca=_0x578f5d['is']('range')?_0x50f4ae:_0x50f4ae['map'](_0x3f584c=>qt(_0x3f584c,this['_model']));if(this['_trackingSessionId']&&(_0x1391ae['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4177de=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b64e5,'accept');return this['forceDefaultExecution'](()=>_0x4177de(_0x1a88ca,_0x14ccee,_0x1391ae)),null;}_0x23c715['push'](..._0x1a88ca);let _0x246c9a=!0x0;for(const _0x5af8d7 of _0x23c715)if(!this['_rangeIsInLocalUserInsertion'](_0x5af8d7)){_0x246c9a=!0x1;break;}if(_0x246c9a&&'always'!==this['_trackFormatChanges']){const _0x456e54=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b64e5,'accept');return this['forceDefaultExecution'](()=>_0x456e54(_0x1a88ca,_0x14ccee,_0x1391ae)),null;}const _0x58789c=this['editor']['plugins']['get']('Users')['me'];for(const _0x3089d3 of this['getSuggestions']()){const _0x5a6daf=_0x3089d3['data'];if(_0x3089d3['author']['id']!=_0x58789c['id'])continue;if('formatBlock'!=_0x3089d3['type']||_0x5a6daf['formatGroupId']!=_0x14ccee['formatGroupId'])continue;if(!Qt(_0x3089d3,_0x1391ae))continue;const _0x46ecc1=_0x3089d3['subType']==_0x4b64e5;for(let _0x59cb78=0x0;_0x59cb78<_0x1a88ca['length'];_0x59cb78++){const _0x272388=_0x1a88ca[_0x59cb78];for(const _0x204516 of _0x3089d3['getMarkers']()){const _0x1b5593=_0x204516['getRange']();if(_0x272388['isEqual'](_0x1b5593)){_0x46ecc1?(_0x1a88ca['splice'](_0x59cb78,0x1),_0x59cb78--):_0x3089d3['removeMarker'](_0x204516['name']);break;}}}}if(0x0==_0x1a88ca['length'])return null;const _0xf10d4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b64e5,'join');for(const _0x51a126 of this['getSuggestions']()){const _0x143da0=_0x51a126['data'];if(_0x51a126['author']['id']==_0x58789c['id']&&('formatBlock'==_0x51a126['type']&&_0x143da0['formatGroupId']==_0x14ccee['formatGroupId']&&_0x51a126['subType']==_0x4b64e5&&Qt(_0x51a126,_0x1391ae)&&(_0xf10d4(_0x51a126['getRanges'](),_0x1a88ca)||_0xf10d4(_0x1a88ca,_0x51a126['getRanges']())))){for(const _0x539935 of _0x1a88ca)_0x51a126['addRange'](_0x539935);return _0x51a126;}}const _0x13e2a1=_0x4bb6e6(),_0x154072=_0x58789c['id'],_0x5b56a2='formatBlock:'+_0x4b64e5,_0x222411=this['_setSuggestionData']({'id':_0x13e2a1,'type':_0x5b56a2,'data':_0x14ccee,'createdAt':new Date(),'authorId':_0x154072,'attributes':_0x1391ae});for(const _0x581f5a of _0x1a88ca)this['_addSuggestionMarker'](_0x5b56a2,_0x13e2a1,_0x154072,_0x581f5a,T['getMultiRangeId']());return _0x222411;}['markDeletion'](_0x59f721,_0x27b183=null,_0x442508={}){if(_0x59f721['isCollapsed'])return null;const _0x1a9035=this['editor']['plugins']['get']('Users')['me'],_0x442b6f=new _0xd7f50(_0x59f721['start'],_0x59f721['end']);this['_trackingSessionId']&&(_0x442508['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3ff71e,meta:_0x18ddc1}of this['_findSuggestions'](_0x442b6f,'insertion'))if(_0x18ddc1['isOwn']&&!_0x18ddc1['isNextTo']){if(_0x3ff71e['isMultiRange']){const _0x5593bf=_0x3ff71e['getRanges']()['filter'](_0x43f8b9=>'$graveyard'!=_0x43f8b9['root']['rootName']);_0x5593bf['every'](_0x2a4dd2=>_0x442b6f['containsRange'](_0x2a4dd2,!0x0))&&_0x3ff71e['discard']();if(_0x5593bf['some'](_0x38028c=>_0x38028c['containsRange'](_0x442b6f,!0x0))){const _0x2bc1f9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x27b183,'accept');return this['forceDefaultExecution'](()=>_0x2bc1f9([_0x442b6f],null,_0x442508)),null;}}else{const _0x5a86f1=_0x442b6f['getIntersection'](_0x3ff71e['getFirstRange']());null!==_0x5a86f1&&_0x3ff71e['_onDiscard']([_0x5a86f1],null,_0x442508);}}if(_0x442b6f['detach'](),_0x442b6f['isCollapsed']||'$graveyard'==_0x442b6f['root']['rootName'])return null;let _0x5e3930=null,_0x4269d5=_0x442b6f['start'],_0x384ca2=_0x442b6f['end'];const _0xc619f5=this['_findSuggestions'](_0x442b6f,'deletion');for(const {suggestion:_0x5f5b2b,meta:_0x3d6286}of _0xc619f5){const _0x28f81b=this['_model']['createRange'](_0x4269d5,_0x384ca2);if(_0x3d6286['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3d6286['containsRangeInObject']&&!_0x3d6286['isInsideObject'])){if(_0x5f5b2b['isMultiRange']){if(!Qt(_0x5f5b2b,_0x442508))continue;let _0x550390=!0x0;for(const _0x30f438 of _0x5f5b2b['getRanges']()){if(_0x30f438['containsRange'](_0x28f81b,!0x0))return _0x5f5b2b;_0x28f81b['containsRange'](_0x30f438)||(_0x550390=!0x1);}_0x550390&&_0x5f5b2b['discard']();}else{const _0x3dba8b=_0x5f5b2b['getFirstRange']();if(_0x3dba8b['containsRange'](_0x28f81b,!0x0))return _0x5f5b2b;if(!Qt(_0x5f5b2b,_0x442508)){_0x28f81b['containsRange'](_0x3dba8b)?_0x5f5b2b['removeMarkers']():_0x3dba8b['containsPosition'](_0x4269d5)?_0x4269d5=_0x3dba8b['end']:_0x3dba8b['containsPosition'](_0x384ca2)&&(_0x384ca2=_0x3dba8b['start']);continue;}_0x4269d5=_0x4269d5['isBefore'](_0x3dba8b['start'])?_0x4269d5:_0x3dba8b['start'],_0x384ca2=_0x384ca2['isAfter'](_0x3dba8b['end'])?_0x384ca2:_0x3dba8b['end'],_0x442508=Object['assign']({},_0x5f5b2b['attributes']),_0x5e3930?_0x3dba8b['start']['isBefore'](_0x5e3930['getFirstRange']()['start'])?(_0x5e3930['removeMarkers'](),_0x5e3930=_0x5f5b2b):_0x5f5b2b['removeMarkers']():_0x5e3930=_0x5f5b2b;}}}if(_0x5e3930)return this['_setSuggestionRange'](_0x5e3930,this['_model']['createRange'](_0x4269d5,_0x384ca2)),_0x5e3930;{const _0x2d810f=_0x4bb6e6(),_0x542c06=this['_model']['createRange'](_0x4269d5,_0x384ca2),_0x1f4a12=_0x1a9035['id'],_0xaf84e2=_0x27b183?'deletion:'+_0x27b183:'deletion',_0x7cf854=this['_setSuggestionData']({'id':_0x2d810f,'type':_0xaf84e2,'createdAt':new Date(),'authorId':_0x1f4a12,'attributes':_0x442508});return this['_addSuggestionMarker'](_0xaf84e2,_0x2d810f,_0x1f4a12,_0x542c06),_0x7cf854;}}['markMultiRangeDeletion'](_0x299475,_0x5cfe2d='multi',_0x459383={}){const _0x4f283c=this['editor']['plugins']['get']('Users')['me'],_0xbbeff6=_0x299475['map'](_0xca7263=>new _0xd7f50(_0xca7263['start'],_0xca7263['end'])),_0x25fbda=new Set();this['_trackingSessionId']&&(_0x459383['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x276085,meta:_0x4cef}of this['_findSuggestions'](_0xbbeff6,'insertion'))_0x4cef['isOwn']&&!_0x4cef['isNextTo']&&_0x25fbda['add'](_0x276085);for(const _0x53afa1 of _0x25fbda)if(_0x53afa1['isMultiRange']){const _0x35c5ad=_0x53afa1['getRanges']();(!_0x53afa1['attributes']||!_0x53afa1['attributes']['skipNestingCheck'])&&(_0x35c5ad['every'](_0x49fbcb=>_0xbbeff6['some'](_0x45639d=>_0x45639d['containsRange'](_0x49fbcb,!0x0)))&&_0x53afa1['discard']());if(_0xbbeff6['every'](_0x46db42=>_0x35c5ad['some'](_0x26f971=>_0x26f971['containsRange'](_0x46db42,!0x0)))){const _0x42193c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5cfe2d,'accept');return this['forceDefaultExecution'](()=>_0x42193c(_0x299475,null,_0x459383)),null;}}else{const _0x36dbc8=_0x53afa1['getFirstRange']();_0xbbeff6['some'](_0x8d6add=>_0x8d6add['containsRange'](_0x36dbc8,!0x0))&&_0x53afa1['discard']();if(_0xbbeff6['every'](_0x517aa0=>_0x36dbc8['containsRange'](_0x517aa0,!0x0))){const _0x211cfa=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5cfe2d,'accept');return this['forceDefaultExecution'](()=>_0x211cfa(_0xbbeff6,null,_0x459383)),null;}}const _0x2ae1fd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5cfe2d,'join');let _0x2ebf02=null;for(const _0x36884a of this['getSuggestions']())if(_0x36884a['author']['id']==_0x4f283c['id']&&_0x36884a['isInContent']&&'deletion'==_0x36884a['type']&&_0x36884a['subType']==_0x5cfe2d&&Qt(_0x36884a,_0x459383)&&(_0x2ae1fd(_0x36884a['getRanges'](),_0xbbeff6)||_0x2ae1fd(_0xbbeff6,_0x36884a['getRanges']()))){if(_0x2ebf02){if(_0x36884a['commentThread']&&_0x36884a['commentThread']['length'])continue;for(const _0x447d13 of _0x36884a['getRanges']())_0x2ebf02['isIntersectingWithRange'](_0x447d13)||_0x2ebf02['addRange'](_0x447d13);_0x36884a['removeMarkers']();}else{_0x2ebf02=_0x36884a;for(const _0x3af0c3 of _0xbbeff6)_0x36884a['isIntersectingWithRange'](_0x3af0c3)||_0x36884a['addRange'](_0x3af0c3);}}if(_0x2ebf02)return _0x2ebf02;_0x25fbda['clear']();for(const {suggestion:_0xedd641,meta:_0x2e7f4b}of this['_findSuggestions'](_0xbbeff6,'deletion'))_0x2e7f4b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2e7f4b['containsRangeInObject']&&!_0x2e7f4b['isInsideObject'])&&Qt(_0xedd641,_0x459383)&&_0x25fbda['add'](_0xedd641);for(const _0x53893c of _0x25fbda){const _0x10ff65=_0x53893c['getRanges']();if(!_0x459383||!_0x459383['skipNestingCheck']){if(_0xbbeff6['every'](_0x3412b7=>_0x10ff65['some'](_0x127581=>_0x127581['containsRange'](_0x3412b7,!0x0))))return _0x53893c;}(!_0x53893c['attributes']||!_0x53893c['attributes']['skipNestingCheck'])&&(_0x10ff65['every'](_0x44c3fa=>_0xbbeff6['some'](_0x272ad5=>_0x272ad5['containsRange'](_0x44c3fa,!0x0)))&&_0x53893c['discard']());}const _0x1ebb09=_0x4bb6e6(),_0x27f6ac=_0x4f283c['id'],_0x1de963='deletion:'+_0x5cfe2d,_0x5a096d=this['_setSuggestionData']({'id':_0x1ebb09,'type':_0x1de963,'createdAt':new Date(),'authorId':_0x27f6ac,'attributes':_0x459383});for(const _0x4e12d0 of _0xbbeff6)_0x4e12d0['detach'](),_0x4e12d0['isCollapsed']||'$graveyard'==_0x4e12d0['root']['rootName']||this['_addSuggestionMarker'](_0x1de963,_0x1ebb09,_0x27f6ac,_0x4e12d0,T['getMultiRangeId']());return _0x5a096d;}['markAttributeChange'](_0xf880ba,_0x4d1d22,_0x44a39c,_0xe73c23,_0x158961){if(_0xf880ba['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x36ebbf=this['editor']['plugins']['get']('Users')['me']['id'],_0x35968e=Array['from'](this['_suggestions']['values']())['filter'](_0x44379a=>'attribute'==_0x44379a['type']&&_0x44379a['data']['key']==_0x4d1d22&&_0x44379a['isIntersectingWithRange'](_0xf880ba));if(this['_trackingSessionId']&&(_0x158961['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4caa2e=this['_findSuggestions'](_0xf880ba,'insertion')['filter'](({meta:_0x2aa76e})=>_0x2aa76e['isOwn']&&!_0x2aa76e['isInsideObject']&&!_0x2aa76e['isNextTo'])['map'](({suggestion:_0x51da8f})=>_0x51da8f);_0x35968e['unshift'](..._0x4caa2e);}const _0x570905=new Map([[_0xf880ba,_0x44a39c]]);for(const _0x442161 of _0x35968e){const _0x3b91ad='attribute'==_0x442161['type']?_0x442161['data']['oldValue']:void 0x0,_0x368bbe=_0x442161['getFirstRange'](),_0x24fe28=Array['from'](_0x570905['keys']())['find'](_0x3538d2=>_0x3538d2['isIntersecting'](_0x368bbe));if(!_0x24fe28)continue;const _0x382863=_0x24fe28['getDifference'](_0x368bbe);this['_isBlockAttribute'](_0x4d1d22)&&'insertion'==_0x442161['type']&&0x0!=_0x382863['length']||(_0x570905['delete'](_0x24fe28),_0x382863['forEach'](_0x1176f1=>{_0x570905['set'](_0x1176f1,_0x44a39c);}),'insertion'!=_0x442161['type']&&_0x3b91ad!=_0xe73c23&&_0x570905['set'](_0x24fe28['getIntersection'](_0x368bbe),_0x3b91ad));}const _0x373c8c=[];for(const [_0x568c6f,_0x5e6dd4]of _0x570905){const _0x5b408b=_0x4bb6e6(),_0x506e95={'key':_0x4d1d22,'oldValue':_0x5e6dd4,'newValue':_0xe73c23};_0x4d1d22['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':_0x4d1d22});const _0x42ab2e=('attribute:'+(_0x4d1d22+'|'+Lt({'newValue':_0xe73c23})))['substring'](0x0,0x3c),_0xad2fdb=this['_setSuggestionData']({'id':_0x5b408b,'type':_0x42ab2e,'data':_0x506e95,'createdAt':new Date(),'authorId':_0x36ebbf,'attributes':_0x158961});_0x373c8c['push'](_0xad2fdb),this['_addSuggestionMarker'](_0x42ab2e,_0x5b408b,_0x36ebbf,_0x568c6f);}return _0x373c8c;}['enableDefaultAttributesIntegration'](_0x48e1cb){this['enableCommand'](_0x48e1cb,(_0x1e8350,..._0x18b35d)=>{this['recordAttributeChanges'](()=>{_0x1e8350(..._0x18b35d);});});}['registerBlockAttribute'](_0x370245){this['_blockAttributeKeys']['add'](_0x370245);}['registerInlineAttribute'](_0x414242){this['_inlineAttributeKeys']['add'](_0x414242);}['startTrackingSession'](_0x362128){return this['_trackingSessionId']=void 0x0!==_0x362128?_0x362128:_0x4bb6e6(),this['_trackingSessionId'];}['_getAttributeKey'](_0x542624){return'attribute'==_0x542624['type']?_0x542624['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x384feb,_0xd00ce1){const _0x44ea5d=_0x384feb['getFirstMarker']();this['_model']['change'](_0x59dfa3=>{_0x59dfa3['updateMarker'](_0x44ea5d,{'range':_0xd00ce1});});}['_addThreadToSuggestion'](_0x42fa38){const _0x20df9e=_0x42fa38['id'],_0x47828d=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x20df9e)||this['_commentsRepository']['addCommentThread']({'channelId':_0x47828d,'threadId':_0x20df9e,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x285b50=this['_commentsRepository']['getCommentThread'](_0x20df9e);_0x285b50['unbind']('isRemovable'),_0x285b50['isRemovable']=!0x1,_0x42fa38['commentThread']=_0x285b50;}['_checkSuggestionCorrectness'](_0x18cd9d,_0x8cd18f,_0x35ff52,_0x3cb2ee){if(_0x18cd9d['type']!=_0x8cd18f||_0x18cd9d['subType']!=_0x35ff52||_0x18cd9d['creator']['id']!=_0x3cb2ee)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x30e493('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x35b0b5,_0x4e1bfd){const _0x5611d0=_0x35b0b5['getFirstRange']();if(_0x4e1bfd['isEqual'](_0x5611d0))_0x35b0b5['removeMarkers']();else{if(_0x5611d0['containsRange'](_0x4e1bfd)){const _0x57c2da=this['_model']['createPositionAt'](_0x4e1bfd['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x35b0b5,this['_model']['createRange'](_0x5611d0['start'],_0x57c2da));const _0x174e4e=_0x4bb6e6(),_0x24abe8=_0x35b0b5['creator']['id'],_0x4c6cbd=_0x35b0b5['type']+':'+_0x35b0b5['subType'];this['_setSuggestionData']({'id':_0x174e4e,'type':_0x4c6cbd,'createdAt':new Date(),'authorId':_0x24abe8,'data':_0x35b0b5['data'],'attributes':_0x35b0b5['attributes']});const _0xf56fe0=this['_model']['createPositionAt'](_0x4e1bfd['end']['parent'],'after'),_0x3c5e24=this['_model']['createRange'](_0xf56fe0,_0x5611d0['end']);this['_addSuggestionMarker'](_0x4c6cbd,_0x174e4e,_0x24abe8,_0x3c5e24);}else{if(_0x5611d0['containsPosition'](_0x4e1bfd['start'])){const _0x29737e=this['_model']['createPositionAt'](_0x4e1bfd['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x35b0b5,this['_model']['createRange'](_0x5611d0['start'],_0x29737e));}else{const _0x2eb963=this['_model']['createPositionAt'](_0x4e1bfd['end']['parent'],'after');this['_setSuggestionRange'](_0x35b0b5,this['_model']['createRange'](_0x2eb963,_0x5611d0['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x28e40b){for(const {suggestion:_0x4ca1fb,meta:_0x344a55}of this['_findSuggestions'](_0x28e40b,'insertion')){if(!_0x344a55['isOwn'])continue;const _0x2a7ec2=_0x4ca1fb['getRanges']();for(const _0x33a998 of _0x2a7ec2)if(!_0x28e40b['getDifference'](_0x33a998)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5af254){const _0x508c60=this['editor']['plugins']['get']('Users')['getUser'](_0x5af254);if(!_0x508c60)throw new _0x30e493('track-changes-user-not-found',this);return _0x508c60;}['_getExternalAuthor'](_0x4c5ae7){const _0xf3fbc4=this['editor']['plugins']['get']('Users'),_0x585447=_0x19e181('external:'+_0x4c5ae7),_0x22fff7=_0xf3fbc4['getUser'](_0x585447);return _0x22fff7||_0xf3fbc4['addUser']({'id':_0x585447,'name':_0x4c5ae7});}['_createSuggestion'](_0x46033c,_0x5c40d5,_0x2cc9f4,_0x5a0f80,_0x53a386,_0x2fcdd1){const _0x5329bc=this['_getAuthorFromId'](_0x5a0f80),_0x5db4c2=this['_suggestionFactory']['buildSuggestion'](_0x46033c,_0x5c40d5,_0x2cc9f4,_0x5329bc,_0x53a386,_0x1bc2e5=>{this['_updateSuggestionData'](_0x2cc9f4,{'attributes':_0x1bc2e5});const _0x1da60c=this['getSuggestion'](_0x2cc9f4);this['_joinWithAdjacentSuggestions'](new Set([_0x1da60c])),this['_refreshSuggestionsChain'](new Set([_0x1da60c]));},_0x2fcdd1);return this['listenTo'](_0x5db4c2,'accept',()=>{this['_updateSuggestionData'](_0x2cc9f4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5db4c2,'discard',()=>{this['_updateSuggestionData'](_0x2cc9f4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2cc9f4,_0x5db4c2),this['_suggestionState']['set'](_0x5db4c2,'notReady'),_0x5db4c2;}['_splitMarkerName'](_0x41e903){const _0x19128a=_0x41e903['split'](':');return{'group':_0x19128a[0x0],'type':_0x19128a[0x1],'subType':_0x19128a['length']>=0x5?_0x19128a[0x2]:null,'id':_0x19128a['length']<0x5?_0x19128a[0x2]:_0x19128a[0x3],'authorId':_0x19128a['length']<0x5?_0x19128a[0x3]:_0x19128a[0x4],'markerCount':0x6==_0x19128a['length']?_0x19128a[0x5]:null};}['_breakSuggestionMarker'](_0x4898ce,_0x46d4c1,_0x7b4c5d){const _0x2d853a=_0x4898ce['getFirstRange'](),_0x5aa488=_0x2d853a['start'],_0x17ddb3=_0x2d853a['end'];this['_setSuggestionRange'](_0x4898ce,this['_model']['createRange'](_0x5aa488,_0x46d4c1));const _0x388010=_0x4bb6e6(),_0x4ed462=_0x4898ce['creator']['id'],_0x119ce8=_0x4898ce['type']+(_0x4898ce['subType']?':'+_0x4898ce['subType']:'');this['_setSuggestionData']({'id':_0x388010,'type':_0x119ce8,'createdAt':new Date(),'authorId':_0x4ed462,'originalSuggestionId':_0x4898ce['_originalSuggestionId']||_0x4898ce['id'],'attributes':_0x4898ce['attributes'],'data':_0x4898ce['data']});const _0x134777=this['_getAttributeKey'](_0x4898ce);('formatBlock'==_0x4898ce['type']||_0x134777&&this['_isBlockAttribute'](_0x134777))&&(_0x7b4c5d=this['_model']['createPositionBefore'](_0x7b4c5d['parent'])),this['_addSuggestionMarker'](_0x119ce8,_0x388010,_0x4ed462,this['_model']['createRange'](_0x7b4c5d,_0x17ddb3));}['_findSuggestions'](_0x15b44a,_0x491e13=null){const _0x198de4=[],_0x3098cc=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x15b44a)||(_0x15b44a=[_0x15b44a]);for(const _0x400023 of this['getSuggestions']()){if(!_0x400023['isInContent'])continue;if(_0x491e13&&_0x400023['type']!=_0x491e13)continue;let _0x3408fa=!0x1;for(const _0x23d2a3 of _0x400023['getRanges']()){for(const _0x248d32 of _0x15b44a){const _0x5b3f37=_0x248d32['start']['isEqual'](_0x23d2a3['end'])||_0x248d32['end']['isEqual'](_0x23d2a3['start']);if(_0x5b3f37||_0x248d32['getIntersection'](_0x23d2a3)){const _0x4fe943=_0x248d32['containsRange'](_0x23d2a3)&&Ft(this['_model']['schema'],_0x23d2a3['start'],_0x248d32),_0x4c107b=_0x23d2a3['containsRange'](_0x248d32)&&Ft(this['_model']['schema'],_0x248d32['start'],_0x23d2a3);_0x198de4['push']({'suggestion':_0x400023,'meta':{'isOwn':_0x3098cc==_0x400023['author'],'isNextTo':_0x5b3f37,'isInsideObject':_0x4fe943,'containsRangeInObject':_0x4c107b}}),_0x3408fa=!0x0;break;}}if(_0x3408fa)break;}}return _0x198de4;}['_addSuggestionMarker'](_0x352abd,_0x5ae4ff,_0x2351bb,_0x264016,_0x4202bb){this['_model']['change'](_0x4adaf2=>{let _0x2e0831='suggestion:'+_0x352abd+':'+_0x5ae4ff+':'+_0x2351bb;_0x4202bb&&(_0x2e0831=_0x2e0831+':'+_0x4202bb),_0x4adaf2['addMarker'](_0x2e0831,{'range':_0x264016,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x32c7cd){const _0x227627=_0x32c7cd['previous'],_0x4a41e5=_0x32c7cd['next'];_0x32c7cd['previous']=null,_0x32c7cd['next']=null,null!=_0x227627&&_0x227627['next']==_0x32c7cd&&(_0x227627['next']=_0x4a41e5),null!=_0x4a41e5&&_0x4a41e5['previous']==_0x32c7cd&&(_0x4a41e5['previous']=_0x227627),'ready'==this['_suggestionState']['get'](_0x32c7cd)&&(this['_suggestionState']['set'](_0x32c7cd,'removed'),this['fire']('suggestionUnloaded',_0x32c7cd,_0x227627,_0x4a41e5));}['_setSuggestionData'](_0x33be4e){const _0x4dfea0=_0x33be4e['id'],_0x59bfc9=this['addSuggestionData'](_0x33be4e);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5ec23f=this['editor']['plugins']['get']('PendingActions'),_0x234190=_0x59bfc9['hasComments'],_0x4846d3=_0x59bfc9['subType']?_0x59bfc9['type']+':'+_0x59bfc9['subType']:_0x59bfc9['type'],_0x417f9e=this['editor']['locale'],_0x3b8c68=_0x5ec23f['add'](o(_0x417f9e,'PENDING_ACTION_SUGGESTION')),_0x41ef64={'id':_0x4dfea0,'type':_0x4846d3,'hasComments':_0x234190,'data':_0x33be4e['data']||null,'originalSuggestionId':_0x33be4e['originalSuggestionId']||null,'attributes':_0x59bfc9['attributes']};this['_adapter']['addSuggestion'](_0x41ef64)['then'](_0x581cdc=>{_0x59bfc9['_saved']=!0x0,_0x5ec23f['remove'](_0x3b8c68),_0x581cdc&&_0x581cdc['createdAt']&&(this['_suggestions']['get'](_0x4dfea0)['createdAt']=_0x581cdc['createdAt']);})['catch'](_0x27642d=>{throw _0x17884f('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x59bfc9['discard']();}),_0x59bfc9['stopListening'](),this['_suggestions']['delete'](_0x59bfc9['id']),this['_suggestionState']['delete'](_0x59bfc9),_0x27642d;});}return _0x59bfc9;}['_isBlockAttribute'](_0x3ff2fe){return this['_blockAttributeKeys']['has'](_0x3ff2fe);}['_updateSuggestionData'](_0x187a07,_0x3a53b7){const _0x25d856=this['editor']['plugins']['get']('PendingActions'),_0x23613c=this['getSuggestion'](_0x187a07);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x23613c['_saved']){const _0x4ff7eb=_0x25d856['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x187a07,_0x3a53b7)['then'](()=>{_0x25d856['remove'](_0x4ff7eb);});}else _0x23613c['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x187a07,_0x3a53b7);});}}['_getSuggestionData'](_0x50546b){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x30e493('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x50546b);}['_handleNewSuggestionMarker'](_0xf9ea8e){const {id:_0xff136b,type:_0x28af73,subType:_0x4e5241,authorId:_0x24ea0a}=this['_splitMarkerName'](_0xf9ea8e),_0x322a13=this['_suggestions']['get'](_0xff136b)||this['_createSuggestion'](_0x28af73,_0x4e5241,_0xff136b,_0x24ea0a,{});switch(this['_checkSuggestionCorrectness'](_0x322a13,_0x28af73,_0x4e5241,_0x24ea0a),this['_suggestionState']['get'](_0x322a13)){case'notReady':this['_getSuggestionData'](_0xff136b)['then'](_0x47035f=>{let _0x16cdd8=Promise['resolve']();_0x47035f['hasComments']&&(_0x16cdd8=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xff136b})),_0x16cdd8['then'](()=>{this['addSuggestionData'](_0x47035f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x322a13,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xff136b,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x322a13,'ready'),this['fire']('suggestionLoaded',_0x322a13);break;case'ready':this['fire']('suggestionChanged',_0x322a13);}return _0x322a13['addMarkerName'](_0xf9ea8e),_0x322a13;}['_refreshSuggestionsChain'](_0xdc48fe){const _0xdf46fb=Array['from'](_0xdc48fe),_0x5b31ec=_0xdf46fb['filter'](_0x164aae=>'attribute'==_0x164aae['type']);this['_refreshAttributeSuggestionsChain'](_0x5b31ec);const _0x5289ed=_0xdf46fb['filter'](_0x52b9a8=>!_0x52b9a8['isMultiRange']&&'attribute'!=_0x52b9a8['type']),_0x33530b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x28e631=>!_0x28e631['isMultiRange']&&'attribute'!=_0x28e631['type']),_0x2f4d24=_0x33530b['filter'](_0x1f0ced=>!_0xdc48fe['has'](_0x1f0ced)),_0xcc416=new Map(_0x33530b['map'](_0x1a6af3=>[_0x1a6af3,this['_suggestionFactory']['getSuggestionCallback'](_0x1a6af3['type'],_0x1a6af3['subType'],'chain')])),_0x4a1f6a=new Map(_0x33530b['map'](_0x15b780=>[_0x15b780,_0x15b780['getFirstRange']()])),_0x5d2573=new Set(),_0x57a121=new Set();for(let _0x13d817=0x0;_0x13d817<_0x5289ed['length'];_0x13d817++)_0x1b6a76(_0x5289ed[_0x13d817],_0x5289ed,_0x13d817+0x1);for(let _0x45f6d2=0x0;_0x45f6d2<_0x5289ed['length'];_0x45f6d2++)_0x1b6a76(_0x5289ed[_0x45f6d2],_0x2f4d24,0x0);const _0x12e75c=new Set();for(let _0x22394b=0x0;_0x22394b<_0x5289ed['length'];_0x22394b++){const _0x26bbe9=_0x5289ed[_0x22394b];!_0x57a121['has'](_0x26bbe9)&&_0x26bbe9['previous']&&(_0x12e75c['add'](_0x26bbe9['previous']),_0x26bbe9['previous']['next']===_0x26bbe9&&(_0x26bbe9['previous']['next']=null),_0x26bbe9['previous']=null),!_0x5d2573['has'](_0x26bbe9)&&_0x26bbe9['next']&&(_0x12e75c['add'](_0x26bbe9['next']),_0x26bbe9['next']['previous']===_0x26bbe9&&(_0x26bbe9['next']['previous']=null),_0x26bbe9['next']=null);}function _0x1b6a76(_0x4d06a9,_0x5d102f,_0x40e0ef){for(let _0x2ef417=_0x40e0ef;_0x2ef417<_0x5d102f['length'];_0x2ef417++){const _0x1397e0=_0x5f0ecb(_0x4d06a9,_0x5d102f[_0x2ef417]);_0x1397e0&&(_0x1397e0[0x0]['next']=_0x1397e0[0x1],_0x1397e0[0x1]['previous']=_0x1397e0[0x0],_0x5d2573['add'](_0x1397e0[0x0]),_0x57a121['add'](_0x1397e0[0x1]));}}function _0x5f0ecb(_0x1396fa,_0x127aa1){if(_0x1396fa['author']['id']!==_0x127aa1['author']['id'])return null;const _0x1ac337=_0xcc416['get'](_0x1396fa)(_0x1396fa,_0x127aa1,_0x4a1f6a['get'](_0x1396fa),_0x4a1f6a['get'](_0x127aa1));if(!_0x1ac337)return null;return _0xcc416['get'](_0x127aa1)(_0x1396fa,_0x127aa1,_0x4a1f6a['get'](_0x1396fa),_0x4a1f6a['get'](_0x127aa1))?_0x1ac337[0x1]['commentThread']&&_0x1ac337[0x1]['commentThread']['length']?null:_0x1ac337:null;}_0x12e75c['size']&&this['_refreshSuggestionsChain'](_0x12e75c);}['_refreshAttributeSuggestionsChain'](_0x369744){if(0x0==_0x369744['length'])return;const _0x3b690b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xcc36b1=>'attribute'==_0xcc36b1['type']&&_0xcc36b1['_isDataLoaded']),_0x1f67c1=[],_0x5699e7=new Map();for(const _0x73e137 of _0x3b690b){const _0x35e364=_0x19e181(_0x73e137['attributes']);_0x5699e7['has'](_0x35e364)||(_0x5699e7['set'](_0x35e364,_0x1f67c1['length']),_0x1f67c1['push']([]));const _0x242db4=_0x5699e7['get'](_0x35e364);_0x1f67c1[_0x242db4]['push'](_0x73e137);}!(function(){_0x1f67c1['sort']((_0x5cb9db,_0x2615d9)=>{const _0x5a6ab9=_0x5cb9db[0x0]['createdAt'],_0x23947f=_0x2615d9[0x0]['createdAt'];return _0x5a6ab9==_0x23947f?_0x5cb9db[0x0]['attributes']['groupId']<_0x2615d9[0x0]['attributes']['groupId']?-0x1:0x1:_0x5a6ab9<_0x23947f?-0x1:0x1;});for(const _0x21cbdc of _0x1f67c1)_0x21cbdc['sort']((_0x4c4339,_0x5c86b0)=>_0x4c4339['id']<_0x5c86b0['id']?-0x1:0x1);}());for(let _0x361047=0x0;_0x361047<_0x1f67c1['length'];_0x361047++){if(0x0==_0x1f67c1[_0x361047]['length'])continue;const _0xbfa28d=[];for(let _0x2bfe70=_0x361047+0x1;_0x2bfe70<_0x1f67c1['length'];_0x2bfe70++)0x0!=_0x1f67c1[_0x2bfe70]['length']&&_0x11a22c(_0x1f67c1[_0x361047],_0x1f67c1[_0x2bfe70])&&_0xbfa28d['push'](_0x2bfe70);for(const _0x56aba of _0xbfa28d)_0x1f67c1[_0x361047]=_0x1f67c1[_0x361047]['concat'](_0x1f67c1[_0x56aba]),_0x1f67c1[_0x56aba]=[];}for(const _0x357d4f of _0x1f67c1)for(let _0x180a44=0x0;_0x180a44<_0x357d4f['length'];_0x180a44++){const _0x3e7b3e=_0x357d4f[_0x180a44+0x1]||null;_0x357d4f[_0x180a44]['next']!==_0x3e7b3e&&(_0x357d4f[_0x180a44]['next']=_0x3e7b3e);}for(const _0x355633 of _0x1f67c1)for(let _0x4aeb60=0x0;_0x4aeb60<_0x355633['length'];_0x4aeb60++){const _0x3cb2fd=_0x355633[_0x4aeb60-0x1]||null;_0x355633[_0x4aeb60]['previous']!==_0x3cb2fd&&(_0x355633[_0x4aeb60]['previous']=_0x3cb2fd);}function _0x11a22c(_0xb4a84,_0x24ade6){if(_0xb4a84[0x0]['attributes']['groupId']!==_0x24ade6[0x0]['attributes']['groupId']&&_0xb4a84[0x0]['author']!==_0x24ade6[0x0]['author'])return!0x1;if(!function(_0x4a1d02,_0xb72c40){if(!_0x4a1d02['hasComments']&&!_0xb72c40['hasComments'])return!0x0;if(_0x4a1d02['hasComments']&&_0xb72c40['hasComments'])return!0x1;if(_0x4a1d02['hasComments']&&_0xb72c40['createdAt']<_0x4a1d02['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xb72c40['hasComments']&&_0x4a1d02['createdAt']<_0xb72c40['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xb4a84[0x0],_0x24ade6[0x0]))return!0x1;const _0x24accf=Ut(_0xb4a84[0x0]['attributes'],['groupId','trackingSessionId']),_0x1ff312=Ut(_0x24ade6[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x1ccc9c(_0x24accf,_0x1ff312))return!0x1;if(_0xb4a84[0x0]['attributes']['groupId']==_0x24ade6[0x0]['attributes']['groupId'])return!0x0;if(_0xb4a84[0x0]['attributes']['trackingSessionId']!==_0x24ade6[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0xb4a84['every'](_0x340377=>_0x24ade6['some'](_0x3480ec=>_0x340377['getFirstRange']()['isEqual'](_0x3480ec['getFirstRange']())))&&_0x24ade6['every'](_0x3795f6=>_0xb4a84['some'](_0x1f45d9=>_0x3795f6['getFirstRange']()['isEqual'](_0x1f45d9['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x6dc594){const _0x49e98c=Array['from'](_0x6dc594),_0x4c9cf5=this['getSuggestions']({'skipNotAttached':!0x0}),_0x44f4bf=_0x4c9cf5['filter'](_0x66ec9=>!_0x6dc594['has'](_0x66ec9)),_0x59bca0=new Map(_0x49e98c['map'](_0x5ad209=>[_0x5ad209,this['_suggestionFactory']['getSuggestionCallback'](_0x5ad209['type'],_0x5ad209['subType'],'join')])),_0x80ad62=new Map(_0x4c9cf5['map'](_0x2af8c3=>[_0x2af8c3,_0x2af8c3['getRanges']()]));for(let _0x368ab3=0x0;_0x368ab3<_0x49e98c['length'];_0x368ab3++){if(_0x10d84d(this,_0x49e98c[_0x368ab3],_0x49e98c,_0x368ab3+0x1))return!0x0;}for(let _0x2120fe=0x0;_0x2120fe<_0x49e98c['length'];_0x2120fe++){if(_0x10d84d(this,_0x49e98c[_0x2120fe],_0x44f4bf,0x0))return!0x0;}return!0x1;function _0x10d84d(_0x16e6d2,_0x1ff151,_0x520f6c,_0x80320d){for(let _0x36db6f=_0x80320d;_0x36db6f<_0x520f6c['length'];_0x36db6f++){const _0x537ea2=_0x520f6c[_0x36db6f];if(_0x537ea2['type']!==_0x1ff151['type']||_0x537ea2['author']['id']!==_0x1ff151['author']['id']||_0x537ea2['subType']!==_0x1ff151['subType'])continue;if(!Wt(_0x1ff151,_0x537ea2))continue;if('attribute'==_0x1ff151['type']&&_0x1ff151['data']['oldValue']!=_0x537ea2['data']['oldValue'])continue;if('attribute'==_0x1ff151['type']&&_0x16e6d2['_isBlockAttribute'](_0x1ff151['data']['key']))continue;if('formatBlock'==_0x1ff151['type']){const _0x2743dd=_0x16e6d2['editor']['model'],_0xd40b5d=_0x1ff151['getContainedElement']();if(_0xd40b5d&&(_0x2743dd['schema']['isObject'](_0xd40b5d)||_0x2743dd['schema']['isLimit'](_0xd40b5d)))continue;}const _0x3a998d=_0x59bca0['get'](_0x1ff151),_0x30c5de=_0x80ad62['get'](_0x1ff151),_0x3a1fbb=_0x80ad62['get'](_0x537ea2),_0x46a095=_0x1ff151['commentThread']&&_0x1ff151['commentThread']['length'],_0x31a41f=_0x537ea2['commentThread']&&_0x537ea2['commentThread']['length'];if(!_0x46a095&&_0x3a998d(_0x3a1fbb,_0x30c5de))return _0x16e6d2['_joinSuggestions'](_0x537ea2,_0x1ff151),_0x80ad62['delete'](_0x1ff151),!0x0;if(!_0x31a41f&&_0x3a998d(_0x30c5de,_0x3a1fbb))return _0x16e6d2['_joinSuggestions'](_0x1ff151,_0x537ea2),_0x80ad62['delete'](_0x537ea2),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3408c9,_0x4852ad){if(_0x3408c9['isMultiRange']){for(const _0x529383 of _0x4852ad['getRanges']())_0x3408c9['addRange'](_0x529383);}else{const _0x2b2f6d=_0x4852ad['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3408c9,this['_model']['createRange'](_0x3408c9['getFirstRange']()['start'],_0x2b2f6d));}_0x4852ad['removeMarkers']();}['_getMarkerAnnouncementText'](_0x40df4d,_0x1b18bd,_0x23d6e1){const _0x41f9e7=_0x40df4d['startsWith']('format')||_0x40df4d['startsWith']('attribute')?'FORMATTING':_0x40df4d['toUpperCase']();return o(this['editor']['locale'],_0x1b18bd+'_'+_0x41f9e7+'_SUGGESTION_ANNOUNCEMENT',_0x23d6e1);}['_initAriaMarkerChangeAnnouncements'](){const _0x316877=this['editor'];if(!_0x316877['ui'])return;const {ariaLiveAnnouncer:_0x5b87be}=_0x316877['ui'];_0x5c23cf(this['_model'],({left:_0x77e3b5,entered:_0x57f893})=>{for(const _0x1a61fb of _0x77e3b5){const {group:_0x52594f,type:_0x187acc}=this['_splitMarkerName'](_0x1a61fb['name']);if('suggestion'===_0x52594f){_0x5b87be['announce'](this['_getMarkerAnnouncementText'](_0x187acc,'LEAVE'));break;}}for(const _0x58b93e of _0x57f893){const {group:_0x2b4355,type:_0x39dac1}=this['_splitMarkerName'](_0x58b93e['name']);if('suggestion'===_0x2b4355){_0x5b87be['announce'](this['_getMarkerAnnouncementText'](_0x39dac1,'ENTER',_0x33f11a(_0x707fe4)));break;}}});}['_processAttributeChanges'](_0x1d938a){if(this['_recordAttributeSuggestions'])return!0x1;const _0x27b78e=this['editor'],_0x35f216=_0x27b78e['model']['document']['differ']['getChanges']();if(0x0==_0x35f216['length'])return!0x1;const _0xe28b9f=[],_0x167a88=_0x35f216['filter'](_0x2cf19b=>'attribute'==_0x2cf19b['type']),_0xf0e94=_0x35f216['filter'](_0x2571f6=>'insert'==_0x2571f6['type']&&'$text'!=_0x2571f6['name']),_0x2cedbe=_0x35f216['filter'](_0x26331a=>'remove'==_0x26331a['type']&&'$text'!=_0x26331a['name']);for(const _0x2e7856 of _0x167a88)_0xe28b9f['push']({'key':_0x2e7856['attributeKey'],'newValue':_0x2e7856['attributeNewValue'],'oldValue':_0x2e7856['attributeOldValue'],'range':Ht(_0x2e7856['range'],_0x27b78e['model'])});for(const _0x5000f9 of _0xf0e94){const _0x41a19a=_0x2cedbe['find'](_0x54adb8=>_0x54adb8['position']['isEqual'](_0x5000f9['position']));_0x41a19a&&_0xe28b9f['push']({'key':m,'newValue':_0x5000f9['name'],'oldValue':_0x41a19a['name'],'range':_0x27b78e['model']['createRangeOn'](_0x5000f9['position']['nodeAfter'])});}return 0x0!=_0xe28b9f['length']&&this['_reduceExistingSuggestions'](_0x1d938a,_0xe28b9f);}['_processAttributeSuggestions'](_0x5f41c2){let _0x38a064=!0x1;const _0x5af131=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4eb301=>_0x4eb301['data']['newRange']&&_0x4eb301['name']['startsWith']('suggestion:attribute:'));for(const _0x5e6965 of _0x5af131){const {subType:_0x165a94,id:_0x1ab9e2}=this['_splitMarkerName'](_0x5e6965['name']),_0x25b192=_0x165a94['split']('|')[0x0];for(const _0x3aee66 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3aee66['id']!=_0x1ab9e2&&'attribute'==_0x3aee66['type']&&_0x3aee66['data']&&_0x3aee66['data']['key']==_0x25b192&&_0x3aee66['getFirstRange']()['isIntersecting'](_0x5e6965['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3aee66,_0x5e6965['data']['newRange'],_0x5f41c2),_0x38a064=!0x0);}return _0x38a064;}['recordAttributeChanges'](_0x328bce){this['_recordAttributeSuggestions']=!0x0,_0x328bce();}['_isRegisteredAttribute'](_0x170305){const _0x1adea1=this['_isBlockAttribute'](_0x170305),_0x1d3bb1=this['_inlineAttributeKeys']['has'](_0x170305);return _0x1adea1||_0x1d3bb1;}['_reduceExistingSuggestions'](_0x512492,_0x1a8e39){if(0x0==_0x1a8e39['length'])return!0x1;let _0x4f1e37=!0x1;for(const _0x2d86db of _0x1a8e39){const _0x51c299=this['_findSuggestions'](_0x2d86db['range'],'attribute')['filter'](_0x3aa19f=>!_0x3aa19f['meta']['isNextTo'])['map'](_0xf7a59=>_0xf7a59['suggestion']),_0x3a3ab7=_0x19e181({'newValue':_0x2d86db['newValue']});_0x51c299['filter'](_0x542095=>{const [_0x2d031f,_0x3c4ca5]=_0x542095['subType']['split']('|');return _0x2d031f==_0x2d86db['key']&&_0x3c4ca5!=_0x3a3ab7;})['forEach'](_0x1e89ce=>{this['_reduceSuggestionAttributeRange'](_0x1e89ce,_0x2d86db['range'],_0x512492),_0x4f1e37=!0x0;});}return _0x4f1e37;}['_reduceSuggestionAttributeRange'](_0x3061b3,_0x518ac2,_0xd7b7b2){const _0x274a06=_0x3061b3['getFirstRange']()['getDifference'](_0x518ac2);0x0!==_0x274a06['length']?0x1!==_0x274a06['length']?this['_breakSuggestionMarker'](_0x3061b3,_0x518ac2['start'],_0x518ac2['end']):this['_setSuggestionRange'](_0x3061b3,_0x274a06[0x0]):_0xd7b7b2['removeMarker'](_0x3061b3['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x58e633){this['_editor']=_0x58e633,this['_model']=_0x58e633['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x57ea7c,_0x347c8e,_0x290fad,_0x23d096,_0x131682,_0xa4c982,_0x10f1dc){return new T(this['_model'],{'type':_0x57ea7c,'subType':_0x347c8e,'id':_0x290fad,'originalSuggestionId':_0x10f1dc,'author':_0x23d096,'creator':_0x23d096,'attributes':_0x131682,'onAttributesChange':_0xa4c982,'onAccept':(..._0x231d08)=>this['getSuggestionCallback'](_0x57ea7c,_0x347c8e,'accept')(..._0x231d08),'onDiscard':(..._0x4096fe)=>this['getSuggestionCallback'](_0x57ea7c,_0x347c8e,'discard')(..._0x4096fe)});}['registerCustomCallback'](_0x54439a,_0x23bd30,_0x515e12,_0x595533){const _0x7bf4cb=_0x54439a+':'+_0x23bd30+':'+_0x515e12;this['_customCallbacks']['set'](_0x7bf4cb,_0x595533);}['getSuggestionCallback'](_0x5306d2,_0x1d83d6,_0x30a72e){const _0x30acba=_0x5306d2+':'+_0x1d83d6+':'+_0x30a72e;return this['_customCallbacks']['get'](_0x30acba)||this['_defaultCallbacks']['get'](_0x5306d2+':'+_0x30a72e);}['_registerDefaultCallbacks'](){const _0x2c13ae=()=>!0x1,_0x1634c7=_0x4cf82c=>{_0x4cf82c['sort']((_0xac4ada,_0x20afb1)=>_0xac4ada['start']['isBefore'](_0x20afb1['start'])?0x1:-0x1),this['_model']['change'](_0x38a2f4=>{for(const _0x18301a of _0x4cf82c){let _0x5a7ab0;_0x5a7ab0=_0x18301a['end']['isAtEnd']&&_0x18301a['end']['parent']==_0x18301a['start']['nodeAfter']?_0x38a2f4['createSelection'](_0x18301a['start']['nodeAfter'],'on'):_0x38a2f4['createSelection'](_0x18301a),this['_model']['deleteContent'](_0x5a7ab0,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x3a2156=(_0xa018b9,_0x34adc4)=>{_0x34adc4&&this['_model']['change'](_0x306c4e=>{const {commandName:_0xb73b93,commandParams:_0x5bb02b=[]}=_0x34adc4,_0x31e7d2=_0xa018b9['map'](_0x3b9c79=>(Pt(_0x3b9c79)&&(_0x3b9c79=this['_model']['createRange'](_0x3b9c79['end'])),_0x3b9c79))['filter'](_0x50f1e8=>'$graveyard'!==_0x50f1e8['root']['rootName']);if(_0x31e7d2['length']<0x1)return;const _0x46528c=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2823fe=>_0xd7f50['fromRange'](_0x2823fe));_0x306c4e['setSelection'](_0x31e7d2);for(const _0x22d96e of this['_editor']['commands']['commands']())_0x22d96e['refresh']();_0x5bb02b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xb73b93,..._0x5bb02b);const _0x201005=_0x46528c['filter'](_0x3ab7e9=>'$graveyard'!=_0x3ab7e9['root']['rootName']);_0x201005['length']>0x0&&_0x306c4e['setSelection'](_0x201005);for(const _0x1d0262 of _0x46528c)_0x1d0262['detach']();});},_0x1f9b30=(_0x3fc34b,_0x5ce31b)=>0x1==_0x3fc34b['length']&&0x1==_0x5ce31b['length']&&_0x3fc34b[0x0]['end']['isEqual'](_0x5ce31b[0x0]['start']),_0x1d2af4=(_0x47851f,_0x319689,_0x65ca10,_0x160f5b)=>zt(_0x47851f,_0x319689,_0x65ca10,_0x160f5b)?[_0x47851f,_0x319689]:zt(_0x319689,_0x47851f,_0x160f5b,_0x65ca10)?[_0x319689,_0x47851f]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2c13ae),this['_defaultCallbacks']['set']('insertion:discard',_0x1634c7),this['_defaultCallbacks']['set']('insertion:join',_0x1f9b30),this['_defaultCallbacks']['set']('insertion:chain',_0x1d2af4),this['_defaultCallbacks']['set']('deletion:accept',_0x1634c7),this['_defaultCallbacks']['set']('deletion:discard',_0x2c13ae),this['_defaultCallbacks']['set']('deletion:join',_0x1f9b30),this['_defaultCallbacks']['set']('deletion:chain',_0x1d2af4),this['_defaultCallbacks']['set']('formatInline:accept',_0x3a2156),this['_defaultCallbacks']['set']('formatInline:discard',_0x2c13ae),this['_defaultCallbacks']['set']('formatInline:join',_0x1f9b30),this['_defaultCallbacks']['set']('formatInline:chain',_0x2c13ae),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3a2156),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2c13ae),this['_defaultCallbacks']['set']('formatBlock:join',_0x1f9b30),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2c13ae),this['_defaultCallbacks']['set']('attribute:accept',_0x2c13ae),this['_defaultCallbacks']['set']('attribute:discard',(_0x1acd87,_0x3f1380)=>{if(!_0x3f1380)return;const _0x3b9a2e=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x4dc8a6=>{if(_0x3f1380['key']==m)for(const _0x3c9999 of _0x1acd87){const _0x52547c=_0x3c9999['start']['nodeAfter'],_0x17c156=_0x3f1380['oldValue'];_0x4dc8a6['rename'](_0x52547c,_0x17c156);}else{if(_0x3b9a2e['_isBlockAttribute'](_0x3f1380['key'])){for(const _0x19f150 of _0x1acd87)void 0x0!==_0x3f1380['oldValue']?_0x4dc8a6['setAttribute'](_0x3f1380['key'],_0x3f1380['oldValue'],_0x19f150['start']['nodeAfter']):_0x4dc8a6['removeAttribute'](_0x3f1380['key'],_0x19f150['start']['nodeAfter']);}else{for(const _0x1d4b88 of _0x1acd87)_0x3f1380['oldValue']?_0x4dc8a6['setAttribute'](_0x3f1380['key'],_0x3f1380['oldValue'],_0x1d4b88):_0x4dc8a6['removeAttribute'](_0x3f1380['key'],_0x1d4b88);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1f9b30);}}function Ft(_0x543347,_0x2ce677,_0x26dc0f){for(const _0x576a17 of _0x2ce677['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x576a17['root']==_0x576a17)return!0x1;if(!_0x26dc0f['containsItem'](_0x576a17))return!0x1;if(_0x543347['isObject'](_0x576a17)||_0x543347['isLimit'](_0x576a17))return!0x0;}return!0x1;}function Pt(_0x5d7544){return _0x5d7544['end']['parent']==_0x5d7544['start']['nodeAfter']&&_0x5d7544['end']['isAtStart'];}function Gt(_0x1ea693,_0x7abf98,_0x3bfc1b,_0x2ff6b4){const _0x477cb9=_0x205400=>!_0x205400['item']['is']('$textProxy')&&!_0x2ff6b4['isObject'](_0x205400['item']),_0xb3aff6=_0x1ea693['start']['getLastMatchingPosition'](_0x477cb9),_0xe3f252=_0x1ea693['end']['getLastMatchingPosition'](_0x477cb9,{'direction':'backward'});return(!_0x1ea693['start']['isEqual'](_0xb3aff6)||!_0x1ea693['end']['isEqual'](_0xe3f252))&&(_0xb3aff6['isBefore'](_0xe3f252)?_0x3bfc1b['updateMarker'](_0x7abf98,{'range':_0x3bfc1b['createRange'](_0xb3aff6,_0xe3f252)}):_0x3bfc1b['removeMarker'](_0x7abf98),!0x0);}function Lt(_0x2131fb){return _0x19e181(_0x2131fb);}function Jt(_0x466e41){const _0x16a57c=_0x466e41['start']['nodeAfter'];return _0x16a57c&&_0x16a57c['is']('element');}function Kt(_0x4d51dd){return!Pt(_0x4d51dd)&&!function(_0x106959){return _0x106959['start']['parent']==_0x106959['end']['nodeBefore']&&_0x106959['start']['isAtEnd'];}(_0x4d51dd);}function Ht(_0x17b4ad,_0x140585){return null==_0x17b4ad['end']['nodeBefore']&&_0x17b4ad['end']['parent']==_0x17b4ad['start']['nodeAfter']?qt(_0x17b4ad['start']['nodeAfter'],_0x140585):_0x17b4ad;}function qt(_0x159dd1,_0x45eb19){const _0x5cddfc=_0x45eb19['schema']['isObject'](_0x159dd1)||_0x45eb19['schema']['isSelectable'](_0x159dd1);return _0x45eb19['createRange'](_0x45eb19['createPositionAt'](_0x159dd1,'before'),_0x5cddfc?_0x45eb19['createPositionAfter'](_0x159dd1):_0x45eb19['createPositionAt'](_0x159dd1,'end'));}function zt(_0x40321f,_0x4fbe7b,_0x5c4e63,_0x10948d){return!!Wt(_0x40321f,_0x4fbe7b)&&_0x5c4e63['end']['isEqual'](_0x10948d['start']);}function Wt(_0xe35f87,_0x823368){if(!_0xe35f87['_isDataLoaded']||!_0x823368['_isDataLoaded'])return!0x1;const _0x3e1a46=new Set(Object['keys'](_0xe35f87['attributes'])),_0x1eb578=new Set(Object['keys'](_0x823368['attributes']));if(_0x3e1a46['delete']('groupId'),_0x1eb578['delete']('groupId'),0x0==_0x3e1a46['size']&&0x0==_0x1eb578['size'])return!0x0;if(_0x3e1a46['size']!=_0x1eb578['size'])return!0x1;const _0x1e61ea={..._0xe35f87['attributes']},_0x38cdc6={..._0x823368['attributes']};return delete _0x1e61ea['groupId'],delete _0x38cdc6['groupId'],JSON['stringify'](_0x1e61ea)==JSON['stringify'](_0x38cdc6);}function Qt(_0x4eaa09,_0x1f7004){const _0x3a7c0c=Xt(_0x4eaa09['attributes']),_0x393ca7=Xt(_0x1f7004);if(!_0x4eaa09['_isDataLoaded'])return!0x1;for(const _0x2d4978 of Object['keys'](_0x393ca7))if(!_0x1ccc9c(_0x3a7c0c[_0x2d4978],_0x393ca7[_0x2d4978]))return!0x1;return!0x0;}function Xt(_0x1b6989){const _0x1d1d07=Object['assign']({},_0x1b6989);return delete _0x1d1d07['skipNestingCheck'],delete _0x1d1d07['tablePasteChainId'],_0x1d1d07;}class pe extends/* #__PURE__ -- @preserve */
26
- _0x30d850(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4b8e5c,_0x1b06f6,_0x2f72f0,_0x5be155){super(),this['model']=_0x1b06f6,this['view']=_0x2f72f0,this['commentThreadController']=_0x5be155,this['_editor']=_0x4b8e5c,this['_acceptCommand']=_0x4b8e5c['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4b8e5c['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5a00b5,_0x2710be)=>_0x5a00b5||_0x2710be),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4b4919=>_0x4b4919&&this['_editor']['model']['canEditAt'](_0x1b06f6['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5e6a93=>_0x5e6a93&&this['_editor']['model']['canEditAt'](_0x1b06f6['getRanges']())),this['_pendingAction']=null,_0x2f72f0['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2f72f0,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2f72f0,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2f72f0,'change:isDirty',()=>{_0x2f72f0['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 _0x1374cb=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1374cb);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x227c41{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3c2fd3,_0x37bafc,_0x2e68e5,_0x133ec6){super(_0x3c2fd3),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3b31bb(_0x3c2fd3,o(_0x3c2fd3,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x37bafc['authoredAt']),this['bind']('authoredAt')['to'](_0x37bafc),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',_0x37bafc,'authoredAt',this,'descriptionParts',(_0x3914fd,_0x5bfaf8,_0x8b3c35)=>{const _0x19f6c7=_0x8b3c35['map'](_0x1e4ac8=>ls(_0x1e4ac8['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3914fd-0x1,_0x37bafc['author']['name'],_0x5bfaf8?_0x133ec6['formatDateTime'](_0x5bfaf8):'',new DOMParser()['parseFromString'](_0x19f6c7,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3c433f(),this['focusTracker']=new _0x554881(),this['keystrokes']=new _0x468202(),this['focusCycler']=new _0x566dc2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x110480=>_0x110480['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x37bafc,this['_localUser']=_0x2e68e5,this['_config']=_0x133ec6,_0x133ec6['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x66196a(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x489cc1}=this['_config'];this['commentsListView']=new _0x489cc1(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',_0x352bad=>_0x352bad+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4aacc0,_0x434777)=>_0x4aacc0||!!_0x434777);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x377ca8}=this['_config'],_0x321f50=new _0x377ca8(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2cafac=_0x321f50['commentInputView'];return _0x321f50['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2cafac,'value',(_0x34b3c8,_0x25645b,_0x20e3a4)=>!!_0x20e3a4||_0x34b3c8&&!_0x25645b),_0x2cafac['on']('submit',(_0x41748f,_0x1c6ea7)=>{this['fire']('addComment',_0x1c6ea7),_0x2cafac['editor']['setData']('');}),_0x2cafac['on']('cancel',()=>this['focus']()),_0x2cafac['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x321f50;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x303016,_0x23d836,_0x1b5cac,_0x5aac9f){super(_0x303016,_0x23d836,_0x1b5cac,_0x5aac9f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x57447f=>_0x57447f&&_0x57447f[0x0]?_0x57447f[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3baa32,_0x45f3be)=>{let _0x4329ba='';for(const _0x369a95 of _0x3baa32)_0x4329ba+='<p>'+ls(_0x369a95['content'],_0x369a95['color'])+'</p>';return _0x45f3be?_0x4329ba:_0x28f8fc(_0x4329ba,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5aac9f['SuggestionView'](_0x303016,_0x23d836,{'formatDateTime':_0x5aac9f['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 _0x574a84=this['bindTemplate'],_0x5e6d3a=[this['suggestionView']];return this['commentsListView']&&_0x5e6d3a['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5e6d3a['push'](this['commentThreadInputView']),_0x5e6d3a['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x574a84['if']('isActive','ck-suggestion-wrapper--active'),_0x574a84['to']('type',_0x3fbe8d=>'ck-suggestion-'+_0x3fbe8d),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':_0x574a84['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5e6d3a};}['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 we extends _0x227c41{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5db7ca,_0x512c06,_0x385de1){super(_0x5db7ca),this['_model']=_0x512c06,this['_config']=_0x385de1,this['set']('description',''),this['bind']('authoredAt')['to'](_0x512c06),this['acceptButton']=this['_createButton'](o(_0x5db7ca,'Accept\x20suggestion'),_0x5413dd,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5db7ca,'Discard\x20suggestion'),_0xf05574,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x15bd94(_0x5db7ca,_0x512c06['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3c433f([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x554881(),this['keystrokes']=new _0x468202(),this['focusCycler']=new _0x566dc2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x493749=>_0x493749['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x43cace=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x43cace['innerHTML']=this['description'],this['on']('change:description',(_0x51a105,_0x3c0325,_0x108e0e)=>{_0x43cace['innerHTML']=_0x108e0e;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x19ba81=this['bindTemplate'],_0x609438=[{'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':_0x19ba81['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x19ba81['to']('authoredAt',_0x27a564=>this['_config']['formatDateTime'](_0x27a564))}]}]},{'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']&&_0x609438['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':_0x609438}]};}['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'](_0x1d4e4d,_0x253c9c,_0x144d8e,_0x28beb9,_0x5b7bd7){const _0x294887=new _0x47319b(this['locale']);return _0x294887['set']({'label':_0x1d4e4d,'icon':_0x253c9c,'tooltip':!0x0,'tooltipPosition':_0x5b7bd7}),_0x294887['extendTemplate']({'attributes':{'class':_0x144d8e}}),_0x294887['on']('execute',()=>{this['fire'](_0x28beb9,this['_model']['id']);}),_0x294887;}['_setupKeyboardNavigation'](){const _0x27c805=this['element'];this['keystrokes']['listenTo'](_0x27c805);for(const _0x212850 of this['focusables'])this['focusTracker']['add'](_0x212850['element']),this['keystrokes']['listenTo'](_0x212850['element']);this['keystrokes']['set']('enter',(_0x179f74,_0x18854c)=>{_0x27c805===_0x179f74['target']&&(this['focusCycler']['focusFirst'](),_0x18854c());}),this['keystrokes']['set']('esc',(_0x48c5d4,_0xfe1142)=>{_0x27c805!==_0x48c5d4['target']&&(this['focus'](),_0xfe1142());});}}class u extends _0x2bddd5{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x27b3d9,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4e355f){super(_0x4e355f),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5cebc4=this['editor']['config'];_0x5cebc4['define']('trackChanges.SuggestionThreadView',fe),_0x5cebc4['define']('trackChanges.SuggestionView',we),_0x5cebc4['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5cebc4['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1b7fb1,_0x19c9d0){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x248505,_0x2372a5]of this['_handleControllerBuffer']){const _0x18a0f7=this['_suggestionToController']['has'](_0x248505);_0x18a0f7||_0x2372a5?_0x18a0f7&&_0x2372a5&&this['_destroyController'](_0x248505):this['_initializeController'](_0x248505);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1b7fb1,_0x19c9d0);}['init'](){const _0x4dcd88=this['editor'],_0x4f04fe=_0x4dcd88['plugins']['get']('TrackChangesEditing'),_0x120fda=_0x4dcd88['plugins']['get']('Annotations'),_0x5d1443=_0x4dcd88['plugins']['get']('EditorAnnotations'),_0x1ce81d=_0x4dcd88['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5d1443['addSourceCollector'](()=>{const _0x316e6=[];for(const [_0x3cb5a7,_0x14eeaf]of Array['from'](this['_suggestionToController'])){const _0x4b8873=_0x3cb5a7['getAllAdjacentSuggestions'](),_0x43de75=[];for(const _0x1848ad of _0x4b8873){if(!_0x1848ad['isInContent'])continue;if(_0x1848ad['isMultiRange']){_0x43de75['push'](..._0x1848ad['getRanges']());continue;}const _0xe59825=_0x1848ad['getFirstRange']();if(_0x43de75['length']>0x0){const _0x802701=_0x43de75[0x0]['getJoined'](_0xe59825);if(_0x802701){_0x43de75[0x0]=_0x802701;continue;}}_0x43de75['push'](_0xe59825);}_0x316e6['push']([_0x14eeaf['view'],_0x43de75]);}return _0x316e6;}),this['listenTo'](_0x4f04fe,'suggestionLoaded',(_0xc53b1,_0x30a94e)=>{this['listenTo'](_0x30a94e,'change:previous',(_0x25a04b,_0x1f7ce6,_0x136fc6,_0x3fa9ee)=>{_0x30a94e['isInContent']&&(null==_0x136fc6?(this['_updateController'](_0x3fa9ee['head']),this['_handleSuggestionControllerDelayed'](_0x30a94e,!0x1)):(this['_updateController'](_0x136fc6['head']),null==_0x3fa9ee&&this['_handleSuggestionControllerDelayed'](_0x30a94e,!0x0)));}),null!==_0x30a94e['previous']?this['_updateController'](_0x30a94e['head']):this['_handleSuggestionControllerDelayed'](_0x30a94e,!0x1);}),this['listenTo'](_0x4f04fe,'suggestionUnloaded',(_0x1c3692,_0x2e5b0c,_0x5e987f)=>{this['stopListening'](_0x2e5b0c,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2e5b0c),this['_suggestionToController']['has'](_0x2e5b0c)&&this['_destroyController'](_0x2e5b0c),_0x5e987f&&this['_updateController'](_0x5e987f['head']);}),this['listenTo'](_0x4f04fe,'suggestionChanged',(_0x5bd8d8,_0x54c5bd)=>{this['_updateController'](_0x54c5bd);}),this['listenTo'](_0x120fda,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1ce81d,'addComment',(_0x31feee,{threadId:_0x37f88,isFromAdapter:_0x348270})=>{if(_0x348270||!_0x4f04fe['hasSuggestion'](_0x37f88))return;const _0x5594c0=_0x4f04fe['getSuggestion'](_0x37f88);this['_suggestionToController']['get'](_0x5594c0)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x25b2c0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x50d1aa;for(const _0xd9c079 in _0x25b2c0){const _0x5e92c3=_0xd9c079,_0x48a041=_0x25b2c0[_0x5e92c3];if('trackChangesLicenseKeyValid'==_0x48a041||'trackChangesLicenseKeyInvalid'==_0x48a041||'trackChangesLicenseKeyExpired'==_0x48a041||'trackChangesLicenseKeyDomainLimit'==_0x48a041||'trackChangesLicenseKeyNotAllowed'==_0x48a041||'trackChangesLicenseKeyEvaluationLimit'==_0x48a041||'trackChangesLicenseKeyTrialLimit'==_0x48a041||'trackChangesLicenseKeyUsageLimit'==_0x48a041){delete _0x25b2c0[_0x5e92c3],_0x50d1aa=_0x48a041,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x50d1aa&&_0x25b2c0['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x50d1aa&&_0x25b2c0['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x50d1aa&&_0x25b2c0['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x50d1aa&&_0x25b2c0['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x50d1aa&&_0x25b2c0['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x50d1aa&&_0x25b2c0['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x50d1aa&&_0x25b2c0['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x4bd008){const _0x274e4c=this['_suggestionToController']['get'](_0x4bd008);if(!_0x274e4c)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x274e4c['view'])||null;}['getSuggestionForAnnotation'](_0x49c423){const _0x79d15a=this['_viewToController']['get'](_0x49c423['innerView']);return _0x79d15a?_0x79d15a['model']:null;}['_refreshActiveMarkers'](){const _0x237bbf=this['editor']['plugins']['get']('Annotations'),_0x7241b4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21f08f=Array['from'](_0x237bbf['activeAnnotations'],_0x4185c4=>_0x4185c4['innerView'])['filter'](_0x46f263=>this['_viewToController']['has'](_0x46f263)),_0x42d2fb=[];for(const _0x1a63ab of _0x21f08f){const _0x1efb06=this['_viewToController']['get'](_0x1a63ab)['model']['getAllAdjacentSuggestions']();_0x42d2fb['push'](..._0x1efb06['reduce']((_0x1406d3,_0x23d1ea)=>[..._0x1406d3,..._0x23d1ea['getMarkerNames']()],[]));}_0x7241b4['activeMarkers']=_0x42d2fb;}['_addUIComponentsToFactory'](){const _0x40e29a=this['editor'],_0x574ff5=_0x40e29a['locale'],_0x1bb90f=o(_0x574ff5,'Track\x20changes'),_0x29e9f4=new _0x34de8a([{'type':'switchbutton','model':new _0x595d42({'withText':!0x0,'isToggleable':!0x0,'label':_0x1bb90f,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x595d42({'withText':!0x0,'label':o(_0x574ff5,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x595d42({'withText':!0x0,'label':o(_0x574ff5,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x595d42({'withText':!0x0,'label':o(_0x574ff5,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x595d42({'withText':!0x0,'label':o(_0x574ff5,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x40e29a['plugins']['has']('TrackChangesPreview')&&_0x29e9f4['addMany']([{'type':'separator'},{'type':'button','model':new _0x595d42({'withText':!0x0,'label':o(_0x574ff5,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x304b60 of _0x29e9f4)if(ke(_0x304b60)){const _0x4d28fe=_0x40e29a['commands']['get'](_0x304b60['model']['commandName']);_0x304b60['model']['bind']('isOn','isEnabled')['to'](_0x4d28fe,'value','isEnabled');}_0x40e29a['ui']['componentFactory']['add']('trackChanges',_0x5cfe06=>this['_createToolbarButton'](_0x5cfe06,_0x29e9f4,_0x1bb90f)),_0x40e29a['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1f5adf=>this['_createMenuBarMenu'](_0x1f5adf,_0x29e9f4,_0x1bb90f));}['_createToolbarButton'](_0x43a5ea,_0x2cdbc8,_0x36d510){const _0x16f1d7=_0x348d4d(_0x43a5ea,_0x17ee4a),_0x149117=this['editor']['commands']['get']('trackChanges');_0x16f1d7['buttonView']['set']({'tooltip':_0x36d510,'label':_0x36d510,'icon':_0xbecfc5}),_0x16f1d7['buttonView']['bind']('isOn')['to'](_0x149117,'value'),_0x16f1d7['buttonView']['on']('execute',()=>{_0x149117['execute'](),this['editor']['editing']['view']['focus']();}),_0x5cbd92(_0x16f1d7,_0x2cdbc8,{'role':'menu'});const _0x269104=[];for(const _0x22a91a of _0x2cdbc8)ke(_0x22a91a)&&_0x269104['push'](this['editor']['commands']['get'](_0x22a91a['model']['commandName']));const _0x3aae8b=_0x16f1d7['buttonView'];return _0x3aae8b['actionView']['unbind']('isEnabled'),_0x3aae8b['arrowView']['unbind']('isEnabled'),_0x3aae8b['actionView']['bind']('isEnabled')['to'](_0x149117,'isEnabled'),_0x3aae8b['arrowView']['bind']('isEnabled')['toMany'](_0x269104,'isEnabled',(..._0x2a2f87)=>_0x2a2f87['some'](_0x454c2d=>_0x454c2d)),_0x16f1d7['on']('execute',_0x53cc8a=>{this['editor']['execute'](_0x53cc8a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x16f1d7;}['_createMenuBarMenu'](_0x775531,_0x1b853b,_0x4e78ba){const _0x39fcc9=new _0xa70834(_0x775531),_0x2c14ea=this['editor']['commands']['get']('trackChanges');_0x39fcc9['buttonView']['set']({'label':_0x4e78ba,'icon':_0xbecfc5});const _0x15ffbf=new _0x5d1ff9(_0x775531);for(const _0x4601bd of _0x1b853b){if('separator'==_0x4601bd['type']){_0x15ffbf['items']['add'](new _0x247408(_0x775531));continue;}const _0x1395ea=new _0x3991a7(_0x775531,_0x39fcc9),_0x401a65=new _0x47cc69(_0x775531),_0x10554b=_0x4601bd['model'];_0x401a65['bind'](...Object['keys'](_0x10554b))['to'](_0x10554b),_0x401a65['delegate']('execute')['to'](_0x39fcc9),_0x401a65['on']('execute',()=>{this['editor']['execute'](_0x10554b['commandName']),this['editor']['editing']['view']['focus']();}),_0x1395ea['children']['add'](_0x401a65),_0x15ffbf['items']['add'](_0x1395ea);}return _0x39fcc9['bind']('isEnabled')['to'](_0x2c14ea,'isEnabled'),_0x39fcc9['panelView']['children']['add'](_0x15ffbf),_0x39fcc9;}['_initializeController'](_0x1333aa){const _0x21edf5=this['editor'],_0x75d078=_0x21edf5['config'],_0x4f5ab6=_0x21edf5['plugins']['get']('Annotations'),_0x14b80c=_0x21edf5['plugins']['get']('CommentsRepository'),_0x235840=_0x21edf5['plugins']['get']('EditorAnnotations'),_0x8a6382=_0x21edf5['plugins']['get'](_0x27b3d9)['me'],_0xd49654=_0x75d078['get']('trackChanges')['SuggestionThreadView'],_0x50d65d=_0x75d078['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2f672c,CommentThreadInputView:_0x5f1d67}=_0x21edf5['plugins']['get']('CommentsUI');let _0x2776fb,_0x117da2,_0x10dbbf;this['_annotationViews']['has'](_0x1333aa['id'])?(_0x117da2=this['_annotationViews']['get'](_0x1333aa['id']),_0x2776fb=_0x117da2['mainView']):(_0x2776fb=new _0xd49654(_0x21edf5['locale'],_0x1333aa,_0x8a6382,{'disableComments':this['_disableComments'],'editorConfig':{..._0x75d078['get']('comments.editorConfig'),'licenseKey':_0x75d078['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x75d078['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x75d078['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x75d078['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3e584c(_0x75d078['get']('locale'),_0x21edf5['locale']),'CommentView':_0x75d078['get']('comments')['CommentView'],'CommentsListView':_0x2f672c,'CommentThreadInputView':_0x5f1d67,'SuggestionView':_0x50d65d}),_0x2776fb['suggestionView']['acceptButton']['on']('execute',()=>{_0x21edf5['editing']['view']['focus']();}),_0x2776fb['suggestionView']['discardButton']['on']('execute',()=>{_0x21edf5['editing']['view']['focus']();}),_0x117da2=_0x4f5ab6['createAnnotationView'](this['editor']['locale'],_0x2776fb),_0x117da2['bind']('isDirty')['to'](_0x2776fb,'isDirty'),_0x117da2['bind']('length')['to'](_0x2776fb),_0x117da2['bind']('type')['to'](_0x2776fb,'type',_0xe1a43b=>'suggestion-'+_0xe1a43b),_0x2776fb['on']('escape',()=>{_0x10dbbf['fire']('escape');}),this['_annotationViews']['set'](_0x1333aa['id'],_0x117da2));const _0x1e66f7=_0x14b80c['createCommentThreadController'](_0x1333aa['commentThread'],_0x2776fb),_0x3c2713=new pe(_0x21edf5,_0x1333aa,_0x2776fb,_0x1e66f7),_0x234e5e=_0x1333aa['getAllAdjacentSuggestions']()['filter'](_0x1f2051=>_0x1f2051['isInContent']);_0x2776fb['descriptionParts']=_0x21edf5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x234e5e),this['_suggestionToController']['set'](_0x1333aa,_0x3c2713),this['_viewToController']['set'](_0x2776fb,_0x3c2713),_0x10dbbf=_0x4f5ab6['createAnnotation']({'view':_0x117da2,'target':()=>{const _0x1cd6bc=[],_0x488b73=_0x1333aa['getAllAdjacentSuggestions']()['filter'](_0x121520=>_0x121520['isInContent']);for(const _0x452af9 of _0x488b73)_0x1cd6bc['push'](..._0x452af9['getMarkers']());return _0x190f99(_0x21edf5['editing'],_0x1cd6bc);},'type':()=>'suggestion-'+_0x3c2713['view']['type']}),_0x14b80c['_bindAnnotationToEditors'](_0x2776fb,_0x10dbbf),_0x4f5ab6['add'](_0x10dbbf),_0x235840['registerAnnotation'](_0x10dbbf);}['_destroyController'](_0x379365){const _0x20262f=this['editor']['plugins']['get']('CommentsRepository'),_0x204ec2=this['editor']['plugins']['get']('Annotations'),_0x3b9545=this['_suggestionToController']['get'](_0x379365),_0x13afa8=_0x3b9545['view'],_0xfe766b=_0x204ec2['getByInnerView'](_0x13afa8);_0x20262f['_unbindEditors'](_0x13afa8),_0xfe766b&&_0x204ec2['remove'](_0xfe766b),this['_suggestionToController']['delete'](_0x379365),this['_viewToController']['delete'](_0x13afa8),_0x3b9545['destroy']();}['_updateController'](_0x3a4ad2){if(!_0x3a4ad2['isInContent']||!this['_suggestionToController']['has'](_0x3a4ad2))return;const _0x307d4b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x14fdae=this['_suggestionToController']['get'](_0x3a4ad2),_0x3d909f=_0x3a4ad2['getAllAdjacentSuggestions']();_0x14fdae['view']['descriptionParts']=_0x307d4b['descriptionFactory']['getDescriptions'](_0x3d909f);}['destroy'](){for(const _0x2d2933 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2d2933);for(const _0x33065b of this['_annotationViews']['values']())_0x33065b['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x43ae89){return'model'in _0x43ae89;}class Fe extends _0x2bddd5{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x52672c){this['editor']['plugins']['get'](d)['adapter']=_0x52672c;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x2412c9){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x2412c9);}['getSuggestions']({skipNotAttached:_0x2e507c=!0x1,toJSON:_0x3730a3=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x2e507c,'toJSON':_0x3730a3});}['getSuggestion'](_0x5f2f10){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x5f2f10);}}const p=['Pagination'];class re extends _0x2bddd5{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5e6b2a=this['editor'];if(_0x5e6b2a['config']['define']('trackChangesData.editorCreator',_0xc92674=>{const _0x1c202b=_0x5e6b2a['model']['document']['getRootNames']()['reduce']((_0x28a4b1,_0x58e54c)=>(_0x28a4b1[_0x58e54c]='',_0x28a4b1),{});return _0x5e6b2a['constructor']['create'](_0x1c202b,_0xc92674);}),'function'!=typeof _0x5e6b2a['config']['get']('trackChangesData')['editorCreator'])throw new _0x30e493('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x319210){return P(this['editor'],!0x0,_0x319210);}['getDataWithDiscardedSuggestions'](_0x3f9c96){return P(this['editor'],!0x1,_0x3f9c96);}}class Ge extends _0x2bddd5{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x407f99){function _0x14738f(_0x4e53d6){return _0x4e53d6['map'](_0x1d7c13=>String['fromCharCode'](_0x1d7c13))['join']('');}super(_0x407f99),this['result']='end',_0x407f99[_0x14738f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14738f([0x76,0x69,0x65,0x77])][_0x14738f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x14738f([0x61,0x75,0x74,0x6f]),_0x407f99[_0x14738f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x14738f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x14738f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x14738f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x14738f([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 $e(_0x1da857){return void 0x0!==_0x1da857['getRootsAttributes'];}async function P(_0x56cff9,_0x2d7166,_0x5c6a2b){const _0x222dba=_0x52af52(_0x56cff9,p);_0x222dba['plugins']['push'](d,Ge),_0x222dba['rootsAttributes']=$e(_0x56cff9)?_0x56cff9['getRootsAttributes']():void 0x0;const _0x5cb655=document['createDocumentFragment'](),_0x39be89=_0x56cff9['config']['get']('trackChangesData')['editorCreator'],_0x528ab5=await _0x39be89(_0x222dba,()=>function(_0x24f77e){const _0x102c9a=document['createElement']('div');return _0x24f77e['appendChild'](_0x102c9a),_0x102c9a;}(_0x5cb655));!function(_0x4aa566,_0x130737){const _0x2decd9=_0x4aa566['model']['document']['getRootNames']()['reduce']((_0x9c0fac,_0x497ec2)=>(_0x9c0fac[_0x497ec2]=_0x4aa566['data']['get']({'rootName':_0x497ec2}),_0x9c0fac),{}),_0x4f4398=_0x4aa566['plugins']['get']('Users')['users']['map'](_0xbcba97=>({'id':_0xbcba97['id'],'name':_0xbcba97['name']})),_0x2e9b1f=_0x4aa566['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2d244a=_0x4aa566['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x223949=_0x130737['plugins']['get']('Users'),_0x1c763d=_0x130737['plugins']['get']('TrackChangesEditing'),_0x51e124=_0x130737['plugins']['get']('CommentsRepository');for(const _0x98e164 of _0x51e124['getCommentThreads']())_0x98e164['remove']();for(const _0xe5de66 of _0x4f4398)_0x223949['getUser'](_0xe5de66['id'])||_0x223949['addUser'](_0xe5de66);_0x223949['me']||_0x223949['useAnonymousUser']();for(const _0x968d40 of _0x2d244a)_0x51e124['addCommentThread'](_0x968d40);for(const _0x26deeb of _0x2e9b1f)_0x1c763d['addSuggestionData'](_0x26deeb);_0x130737['data']['set'](_0x2decd9);}(_0x56cff9,_0x528ab5),_0x528ab5['execute'](_0x2d7166?'acceptAllSuggestions':'discardAllSuggestions');const _0x30c33f=$e(_0x528ab5)?_0x528ab5['getFullData'](_0x5c6a2b):_0x528ab5['data']['get'](_0x5c6a2b);return await _0x528ab5['destroy'](),_0x30c33f;}class Me extends _0x227c41{['options'];constructor(_0x22441e,_0x5ef4bf){super(_0x22441e),this['options']=_0x5ef4bf,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'](_0x13c539,_0x5b8fc3){if(!this['element'])return;const _0x385c9f=[];for(const [_0x34eba7,_0x4bee2e]of _0x13c539){const _0x469558=document['createElement']('div');_0x469558['setAttribute']('data-ck-root-name',_0x34eba7),_0x469558['className']=_0x4bee2e['classes']+'\x20ck-track-changes-preview__root-container',_0x469558['innerHTML']=_0x4bee2e['content'],_0x385c9f['push'](_0x469558);}_0x5b8fc3(this['element'],_0x385c9f),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x572c4e{constructor(_0x1ac1ad){super(_0x1ac1ad),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x5158fa=this['editor'],_0x44350e=_0x5158fa['locale'],_0x4f2ce8=_0x5158fa['plugins']['get']('Dialog');let _0x1eac86;const _0xd869d2=function(_0xdb0857){const _0x21b848={};if('editables'in _0xdb0857['ui']['view']){for(const [_0x1d3522,_0x5c4fdf]of Object['entries'](_0xdb0857['ui']['view']['editables']))_0x21b848[_0x1d3522]=_0x5c4fdf['element'];}else _0x21b848[_0xdb0857['model']['document']['getRootNames']()[0x0]]=_0xdb0857['ui']['view']['editable']['element'];return _0x21b848;}(_0x5158fa),_0x3d3945=function(_0x1cbb83){let _0x605806=0x0;for(const _0x2b22b8 of Object['values'](_0x1cbb83))_0x605806=Math['max'](_0x605806,_0x2b22b8['getBoundingClientRect']()['width']);let _0x493b3f=0x0;for(const _0x8604fa of Object['values'](_0x1cbb83))_0x493b3f+=_0x8604fa['getBoundingClientRect']()['height'];const _0x5d4145=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x224f5c=Math['min'](_0x493b3f,_0x5d4145);return{'width':_0x605806,'height':_0x224f5c};}(_0xd869d2);_0x4f2ce8['show']({'id':'finalContentPreview','title':o(_0x44350e,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x44350e,{'dialogRects':_0x3d3945}),'onHide':()=>{_0x1eac86['detachFromDom']();},'onShow':()=>{_0x5158fa['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x44ce70=>{const _0x3de66a=this['_standarizeRootsData'](_0x44ce70,_0x5158fa,_0xd869d2);_0x4f2ce8['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3de66a,_0x5158fa['config']['get']('trackChanges.preview.renderFunction'));}),_0x1eac86=new _0x2fab16(_0x44350e,[_0x4f2ce8['view']]),_0x1eac86['attachToDom'](),_0x1eac86['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x5158fa['once']('destroy',()=>{_0x1eac86['detachFromDom']();});const _0x9ab894=_0x4f2ce8['view']['headerView']['class'];_0x4f2ce8['view']['headerView']['class']=_0x9ab894?_0x9ab894+'\x20ck-reset_all':'ck-reset_all',_0x4f2ce8['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x4f2ce8['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2fe9be=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x26f555=_0x2fe9be['previewMode'],_0x1d045f={};if('$labels'===_0x26f555){for(const _0x5afdea of _0x2fe9be['getMergeFieldsIds']())_0x1d045f[_0x5afdea]=_0x2fe9be['getLabel'](_0x5afdea)||_0x5afdea;}else{const _0x4a4eee='$defaultValues'===_0x26f555?_0x2fe9be['getDefaultValues']():_0x2fe9be['getDataSetValues'](_0x26f555,!0x0);for(const _0x3f503a of Object['entries'](_0x4a4eee)){const [_0x14b8b0,_0x49c44e]=_0x3f503a;_0x1d045f[_0x14b8b0]=null!==_0x49c44e?_0x49c44e:_0x2fe9be['getLabel'](_0x14b8b0)||_0x14b8b0;}}return{'mergeFieldsData':_0x1d045f};}['_standarizeRootsData'](_0x4f05c5,_0x4a34a8,_0x573065){let _0x26a395;if('string'==typeof _0x4f05c5){const _0x48c2b5=_0x4a34a8['model']['document']['getRootNames']()[0x0];_0x26a395={[_0x48c2b5]:_0x4f05c5};}else _0x26a395=_0x4f05c5;const _0x5b9c24=this['_fixMediaEmbeds'](_0x26a395,_0x4a34a8),_0x12d9d9=function(_0x57a3f7,_0x490f1e){for(const [_0x234401,_0x47cb17]of _0x57a3f7)_0x47cb17['classes']=_0x490f1e[_0x234401]['classList']['value']['replace']('ck-focused','');return _0x57a3f7;}(this['_sortRoots'](_0x4a34a8)['reduce']((_0x5cdda5,_0x3282b9)=>(_0x5cdda5['push']([_0x3282b9,{'content':_0x5b9c24[_0x3282b9],'classes':''}]),_0x5cdda5),[]),_0x573065);return _0x12d9d9;}['_fixMediaEmbeds'](_0x1b4156,_0x5f0b86){if(!_0x5f0b86['plugins']['has']('MediaEmbedEditing'))return _0x1b4156;const _0x5affcb=_0x5f0b86['plugins']['get']('MediaEmbedEditing');for(const [_0x484e3b,_0x6a00c3]of Object['entries'](_0x1b4156)){const _0xb24746=document['createElement']('div');_0xb24746['innerHTML']=_0x6a00c3,(_0xb24746['querySelectorAll']('figure.media')['forEach'](_0x315a3a=>{const _0x43701b=_0x315a3a['querySelector']('oembed');if(_0x43701b){const _0x11cc04=_0x43701b['getAttribute']('url');if(_0x11cc04){const _0x17c979=_0x5affcb['registry']['getMediaViewElement'](new _0x2ea7db(_0x5f0b86['editing']['view']['document']),_0x11cc04,{'elementName':'','renderForEditingView':!0x0}),_0x558b4a=document['createElement']('div');_0x558b4a['classList']['add']('ck-media__wrapper'),_0x17c979['render'](_0x558b4a,_0x5f0b86['editing']['view']['domConverter']),_0x43701b['replaceWith'](_0x558b4a);}}}),_0x1b4156[_0x484e3b]=_0xb24746['innerHTML']);}return _0x1b4156;}['_sortRoots'](_0x328d2d){if(!function(_0x57de5b){return void 0x0!==_0x57de5b['getRootsAttributes'];}(_0x328d2d))return _0x328d2d['model']['document']['getRootNames']();const _0x3ddc01=[],_0x1de9c9=new Map();for(const _0x2a210e of _0x328d2d['model']['document']['getRootNames']()){const _0x28f2b7=_0x328d2d['editing']['view']['getDomRoot'](_0x2a210e)['getClientRects']()['item'](0x0);_0x3ddc01['push'](_0x2a210e),_0x1de9c9['set'](_0x2a210e,_0x28f2b7);}return _0x3ddc01['sort']((_0x12d507,_0x4c6ae5)=>{const _0x2b62d5=_0x1de9c9['get'](_0x12d507),_0x41590e=_0x1de9c9['get'](_0x4c6ae5);return _0x2b62d5['y']-_0x41590e['y']||_0x2b62d5['x']-_0x41590e['x'];}),_0x3ddc01;}}class He extends _0x2bddd5{static get['requires'](){return[re,_0x34ef5c];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x38d5fa){super(_0x38d5fa),_0x38d5fa['commands']['add']('previewFinalContent',new te(this['editor'])),_0x38d5fa['config']['define']('trackChanges.preview.renderFunction',(_0xe814f,_0x4634ae)=>{for(const _0x2a8799 of _0x4634ae)_0xe814f['appendChild'](_0x2a8799);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,M as DiscardSuggestionCommand,$ as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,He as TrackChangesPreview,Me as _SuggestionsPreviewView,m as _TRACK_CHANGES_RENAME_ATTRIBUTE_KEY};
23
+ import{Command as _0x3a92cc,Plugin as _0x2611d7,PendingActions as _0x354720}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x84cc70,ObservableMixin as _0x2042f1,uid as _0x924ea4,priorities as _0x295a5c,insertToPriorityArray as _0x287692,toArray as _0x5a8aa8,logWarning as _0x59557d,getEnvKeystrokeText as _0x58eb73,FocusTracker as _0x11efcf,KeystrokeHandler as _0x3a6ef9,Collection as _0x1f5b20}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x53d3c4,IconCancel as _0x1cf4eb,IconTrackChanges as _0x1236f4}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x46a7b8,View as _0x3e0d77,ViewCollection as _0x1328a2,FocusCycler as _0x9939a3,UIModel as _0xf1f065,createDropdown as _0x28d278,SplitButtonView as _0xcd0c07,addListToDropdown as _0x1286f2,MenuBarMenuView as _0x5c9e28,MenuBarMenuListView as _0x384be6,ListSeparatorView as _0x573aee,MenuBarMenuListItemView as _0x4ac3b6,MenuBarMenuListItemButtonView as _0x52a886,BodyCollection as _0x892a28,Dialog as _0x244fa7}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x6d65dd,hashObject as _0x3a2ba7,surroundingMarkersDetector as _0x5c3923,FOCUS_ANNOTATION_KEYSTROKE as _0x279eaa,AriaDescriptionView as _0x341edb,setupThreadKeyboardNavigation as _0x3b9a98,trimHtml as _0x4d0840,UserView as _0x17b1a2,LateFocusButtonView as _0x2e109d,getDateTimeFormatter as _0x434f11,getAllMarkersDomElementsSorted as _0x48eca7,sanitizeEditorConfig as _0x13df1d}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x4d67af,ModelLiveRange as _0x1c65a2,ModelLivePosition as _0x5c4faf,ViewDowncastWriter as _0x40f0dc}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2948bf,toWidget as _0x34d418}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x29028f,set as _0x1c95cb,isEqual as _0x92ba7f,unset as _0x12be73,omit as Ut}from'es-toolkit/compat';import{Delete as _0x4fabca,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x24130e}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x2c5191}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x3a92cc{['_enabledCommands'];constructor(_0x2ff5a0,_0x2b95f5){super(_0x2ff5a0),this['_enabledCommands']=_0x2b95f5,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 _0x23f46a of this['editor']['commands']['commands']())_0x23f46a['affectsData']&&!this['_enabledCommands']['has'](_0x23f46a)&&_0x23f46a['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x170e4e of this['editor']['commands']['commands']())_0x170e4e['affectsData']&&!this['_enabledCommands']['has'](_0x170e4e)&&_0x170e4e['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x3a92cc{['_suggestions'];constructor(_0x58dbc1,_0x28b57e){super(_0x58dbc1),this['_suggestions']=_0x28b57e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x41d74d){const _0x1a0632=this['_suggestions']['get'](_0x41d74d);if(!_0x1a0632)throw new _0x84cc70('track-changes-accept-suggestion-not-found',this);const _0x2dfd21=_0x1a0632['getRanges']();this['editor']['model']['canEditAt'](_0x2dfd21)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1a0632);}}class M extends _0x3a92cc{['_suggestions'];constructor(_0x2972cc,_0x349c37){super(_0x2972cc),this['_suggestions']=_0x349c37,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5d5c12){const _0x269381=this['_suggestions']['get'](_0x5d5c12);if(!_0x269381)throw new _0x84cc70('track-changes-discard-suggestion-not-found',this);const _0x2fb66b=_0x269381['getRanges']();this['editor']['model']['canEditAt'](_0x2fb66b)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x269381);}}function ls(_0x22141e,_0x139ac6){let _0x48a472='';return _0x48a472+=_0x22141e['split']('*')['map']((_0x10d092,_0x1ba977)=>_0x1ba977%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+tn(_0x10d092)+'</span>':tn(_0x10d092))['join'](''),_0x139ac6&&(_0x48a472+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x139ac6['value']+'\x22\x20title=\x22'+_0x139ac6['title']+'\x22></span>'),_0x48a472;}function tn(_0x20c6cd){const _0xc3bd0e=document['createElement']('span');return _0xc3bd0e['innerText']=_0x20c6cd,_0xc3bd0e['innerHTML'];}function ts(_0x418e30){return _0x418e30['sort']((_0x2efdb8,_0x3efaa8)=>'attribute'===_0x2efdb8['type']&&'attribute'!==_0x3efaa8['type']?-0x1:'attribute'!==_0x2efdb8['type']&&'attribute'===_0x3efaa8['type']?0x1:'deletion'==_0x2efdb8['type']&&'deletion'!=_0x3efaa8['type']?-0x1:'deletion'!=_0x2efdb8['type']&&'deletion'==_0x3efaa8['type']?0x1:0x0);}function Zt(_0x239d22,_0x13dadd){let _0x3874ec,_0x43fb02=0x0;const _0x2829ad=[],_0x571922=_0x13dadd['schema'];for(;_0x43fb02<_0x239d22['length'];){const _0x2521dd=_0x239d22[_0x43fb02],_0x22dd05=_0x239d22[_0x43fb02+0x1];_0x3874ec||(_0x3874ec=_0x13dadd['createPositionBefore'](_0x2521dd)),nn(_0x13dadd,_0x2521dd,_0x22dd05)||(_0x2829ad['push'](_0x13dadd['createRange'](_0x3874ec,_0x571922['isObject'](_0x2521dd)?_0x13dadd['createPositionAfter'](_0x2521dd):_0x13dadd['createPositionAt'](_0x2521dd,'end'))),_0x3874ec=null),_0x43fb02++;}return _0x2829ad;}function nn(_0x54ca0f,_0xf677bc,_0x4e8641){if(!_0x4e8641)return!0x1;const _0x5b5146=_0x54ca0f['createPositionAfter'](_0xf677bc),_0x1aaa08=_0x54ca0f['createPositionBefore'](_0x4e8641);return _0x5b5146['isTouching'](_0x1aaa08);}function rs(_0x4101d3,_0x2953f8,_0x553602){for(;_0x553602['length'];){const _0x45e603=_0x553602['splice'](0x0,0x64);_0x4101d3['change'](()=>{for(const _0x1bf208 of _0x45e603)_0x1bf208['isInContent']&&_0x2953f8['execute'](_0x1bf208['id']);});}}class $ extends _0x3a92cc{['_command'];['_suggestions'];constructor(_0x54b2b7,_0x41cfdc,_0x1bf2c){super(_0x54b2b7),this['_command']=_0x41cfdc,this['_suggestions']=_0x1bf2c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1d92ca=Array['from'](this['_suggestions']['values']())['some'](_0x51572f=>_0x51572f['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1d92ca;}['execute'](){const _0x2aec52=ts(Array['from'](this['_suggestions']['values']()));for(const _0x3d63f2 of _0x2aec52){const _0x514ec5=_0x3d63f2['getRanges']();if(!this['editor']['model']['canEditAt'](_0x514ec5))return;}rs(this['editor']['model'],this['_command'],_0x2aec52);}}class B extends _0x3a92cc{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x275e0e,_0x48b495,_0x541554){super(_0x275e0e),this['_command']=_0x48b495,this['_suggestions']=_0x541554,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1b25ac=this['editor']['model']['document']['selection'],_0x29ea8a=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x499565,_0x3a8ac2){const _0x334ddf=Array['from'](_0x499565['getRanges']()),_0x27342d=new Set();for(const _0x385aa6 of _0x3a8ac2)if(_0x385aa6['isInContent']){for(const _0x244dfe of _0x334ddf)for(const _0xc8457f of _0x385aa6['getRanges']())(_0x244dfe['isIntersecting'](_0xc8457f)||_0x499565['isCollapsed']&&!_0x385aa6['isMultiRange']&&_0x385aa6['next']&&_0xc8457f['end']['isTouching'](_0x244dfe['start']))&&_0x27342d['add'](_0x385aa6);}return _0x27342d;}(_0x1b25ac,_0x29ea8a),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x44e84f=ts(Array['from'](this['_selectedSuggestions']));for(const _0x470a92 of _0x44e84f){const _0x36845=_0x470a92['getRanges']();if(!this['editor']['model']['canEditAt'](_0x36845))return;}rs(this['editor']['model'],this['_command'],_0x44e84f);}}class T extends/* #__PURE__ -- @preserve */
24
+ _0x2042f1(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x39c209,_0x1606a6){super(),this['id']=_0x1606a6['id'],this['type']=_0x1606a6['type'],this['subType']=_0x1606a6['subType']||null,this['author']=_0x1606a6['author'],this['creator']=_0x1606a6['creator']||_0x1606a6['author'],this['isExternal']=Boolean(_0x1606a6['attributes']&&_0x1606a6['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1606a6['originalSuggestionId']||null,this['_model']=_0x39c209,this['_onAccept']=_0x1606a6['onAccept'],this['_onDiscard']=_0x1606a6['onDiscard'],this['_onAttributesChange']=_0x1606a6['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1606a6['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 _0x615370=this;for(;_0x615370['previous'];)_0x615370=_0x615370['previous'];return _0x615370;}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'](_0x3f7620){this['_markerNames']['add'](_0x3f7620);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2e3eb2=>this['_model']['markers']['get'](_0x2e3eb2))['filter'](_0x54d257=>_0x54d257);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x152275=>{for(const _0x4ee4a2 of this['getMarkers']())_0x152275['removeMarker'](_0x4ee4a2);}),this['_markerNames']['clear']();}['removeMarker'](_0x2f7de7){this['_model']['change'](_0x593049=>{_0x593049['removeMarker'](_0x2f7de7);}),this['_markerNames']['delete'](_0x2f7de7);}['addRange'](_0x41d734){const _0xb0b987='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0xb0b987),this['_model']['change'](_0x5da785=>{_0x5da785['addMarker'](_0xb0b987,{'range':_0x41d734,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x235db3){for(const _0x59686f of this['getRanges']())if(_0x59686f['isIntersecting'](_0x235db3))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5f355d=>_0x5f355d['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x480cdc,_0x32f7f2)=>[..._0x480cdc,..._0x32f7f2['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x16cf06=this['getRanges']();if(0x1!=_0x16cf06['length'])return null;const _0x13da6a=_0x16cf06[0x0],_0x5076dc=_0x13da6a['start']['nodeAfter'],_0x2d9bd7=_0x13da6a['end']['nodeBefore'];return _0x5076dc instanceof _0x4d67af?_0x5076dc!=_0x2d9bd7?null:_0x5076dc: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 _0x53010e=[];let _0x2276b3=this['head'];for(;_0x2276b3;)_0x53010e['push'](_0x2276b3),_0x2276b3=_0x2276b3['next'];return _0x53010e;}['setAttribute'](_0x93c5d,_0x418768){const _0xc4b9b6=_0x29028f(this['attributes']);_0x1c95cb(_0xc4b9b6,_0x93c5d,_0x418768),_0x92ba7f(_0xc4b9b6,this['attributes'])||(this['attributes']=_0xc4b9b6,this['_onAttributesChange'](_0xc4b9b6));}['removeAttribute'](_0x2a4c75){const _0x3f1916=_0x29028f(this['attributes']);_0x12be73(_0x3f1916,_0x2a4c75),_0x92ba7f(_0x3f1916,this['attributes'])||(this['attributes']=_0x3f1916,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 _0x924ea4()['substr'](0x1,0x5);}}function o(_0x3e9e32,_0x2c1b59,_0x569345){const _0xfec13b=_0x3e9e32['t'],t=_0x3e9e32['t'];switch(_0x2c1b59){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',_0x569345);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x569345);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x569345);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x569345);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x569345);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',_0x569345);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x569345);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',_0x569345);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x569345);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x569345);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x569345);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x569345);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x569345);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x569345);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x569345);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x569345);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x569345);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x569345);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x569345);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x569345);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x569345);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x569345);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x569345);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x569345);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x569345);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'},_0x569345);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x569345);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x569345);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x569345);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x569345);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x569345);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x569345);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x569345);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'},_0x569345);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x569345);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x569345);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x569345);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x569345);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'},_0x569345);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x569345);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'},_0x569345);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'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'},_0x569345);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x569345);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'},_0x569345);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x569345);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'},_0x569345);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x569345);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x569345);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'},_0x569345);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x569345);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 _0xfec13b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x569345);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0xfec13b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x569345);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x569345);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'},_0x569345);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'},_0x569345);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'},_0x569345);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2c1b59;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xf70a1f,_0x42e71d){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xf70a1f,this['_locale']=_0x42e71d;}['getDescriptions'](_0x4fecec){const _0x189c62=[],_0x5c228e=new Set(),_0x7902e5=new Set();for(let _0x1a3372=0x0;_0x1a3372<_0x4fecec['length'];_0x1a3372++){const _0x48331b=_0x4fecec[_0x1a3372];if(!_0x48331b['isInContent'])continue;const _0x324fc8=this['_handleCustomCallbackDescription'](_0x48331b);if(_0x324fc8){if(null!=_0x48331b['subType']){if(_0x5c228e['has'](_0x48331b['subType']))continue;_0x5c228e['add'](_0x48331b['subType']);}_0x189c62['push'](_0x324fc8);}else{if('attribute'==_0x48331b['type']){const _0x427a50=_0x48331b['data']['key'];if(_0x7902e5['has'](_0x427a50))continue;_0x7902e5['add'](_0x48331b['data']['key']),_0x427a50==m?this['_handleRenameSuggestionDescription'](_0x189c62,_0x48331b):this['_handleAttributeSuggestionDescription'](_0x189c62,_0x48331b);continue;}'insertion'!=_0x48331b['type']&&'deletion'!=_0x48331b['type']||this['_handleInsertRemoveSuggestionDescription'](_0x189c62,_0x48331b,_0x4fecec[_0x1a3372+0x1]);}}return this['_resolveDescriptionItems'](_0x189c62);}['registerDescriptionCallback'](_0x2991c7){this['_customCallbacks']['push'](_0x2991c7);}['registerElementLabel'](_0xf8a490,_0x259870,_0x35dc02=_0x295a5c['normal']){'function'==typeof _0xf8a490?_0x287692(this['_itemLabelsCallbacks'],{'matchingCallback':_0xf8a490,'label':_0x259870,'priority':_0x35dc02}):this['_itemLabels']['set'](_0xf8a490,_0x259870);}['registerAttributeLabel'](_0x45b3cb,_0x42d91e){this['_attributeLabels']['set'](_0x45b3cb,_0x42d91e);}['getItemLabel'](_0x212257,_0x327c0e=0x1){let _0x4aef08;for(const _0x23b802 of this['_itemLabelsCallbacks'])if(_0x23b802['matchingCallback'](_0x212257)){_0x4aef08=_0x23b802['label'];break;}return _0x4aef08||(_0x4aef08=this['_itemLabels']['get'](_0x212257['name'])),_0x4aef08?_0x4aef08(_0x327c0e):0x1!==_0x327c0e?_0x327c0e+'\x20'+_0x212257['name']+'s':''+_0x212257['name'];}['_addDescriptionItems'](_0x1f7cce,_0x1e948f){const _0x157eaa=_0x1e948f['getFirstRange']()['getWalker'](),_0x545df9='insertion'==_0x1e948f['type']?'add':'remove';for(const _0x2485be of _0x157eaa){const _0x240c90=_0x2485be['item'],_0x3b02c5=_0x1f7cce[_0x1f7cce['length']-0x1];if(_0x240c90['is']('$textProxy'))_0x3b02c5&&_0x3b02c5['type']['indexOf']('Container')>-0x1&&_0x1f7cce['pop'](),_0x3b02c5&&'text'==_0x3b02c5['type']?_0x3b02c5[_0x545df9]+=_0x240c90['data']:_0x1f7cce['push']({'type':'text','add':'add'==_0x545df9?_0x240c90['data']:'','remove':'remove'==_0x545df9?_0x240c90['data']:''});else{if(this['_schema']['isObject'](_0x240c90)){const _0x247804=_0x240c90;if(_0x3b02c5&&_0x3b02c5['type']['indexOf']('Container')>-0x1&&_0x1f7cce['pop'](),'elementEnd'==_0x2485be['type'])continue;_0x3b02c5&&_0x3b02c5['type']==_0x545df9+'Object'&&_0x3b02c5['element']['name']==_0x247804['name']?_0x3b02c5['quantity']++:_0x1f7cce['push']({'type':_0x545df9+'Object','element':_0x247804,'quantity':0x1}),_0x157eaa['skip'](_0x2622b0=>!('elementEnd'==_0x2622b0['type']&&_0x2622b0['item']==_0x240c90));}else{if(this['_schema']['checkChild'](_0x240c90,'$text')||_0x240c90['is']('element','softBreak')){const _0x4a04c3=_0x240c90;if('add'==_0x545df9&&'elementStart'==_0x2485be['type']||'remove'==_0x545df9&&'elementEnd'==_0x2485be['type'])continue;if(_0x3b02c5&&-0x1==_0x3b02c5['type']['indexOf']('Container')){'text'==_0x3b02c5['type']&&(_0x3b02c5[_0x545df9]+='\x0a');continue;}let _0xf70e08;if(_0xf70e08='add'==_0x545df9?_0x4a04c3['nextSibling']&&!this['_schema']['isObject'](_0x4a04c3['nextSibling'])?_0x4a04c3['nextSibling']:null:_0x4a04c3['previousSibling']&&!this['_schema']['isObject'](_0x4a04c3['previousSibling'])?_0x4a04c3['previousSibling']:null,_0x4a04c3['isEmpty']||_0xf70e08&&_0xf70e08['isEmpty']){const _0x4fe10f=_0xf70e08&&_0xf70e08['isEmpty']?_0xf70e08:_0x4a04c3;_0x3b02c5&&_0x3b02c5['type']==_0x545df9+'EmptyContainer'&&_0x3b02c5['element']['name']==_0x4fe10f['name']?_0x3b02c5['quantity']++:_0x1f7cce['push']({'type':_0x545df9+'EmptyContainer','element':_0x4fe10f,'quantity':0x1});}else _0x1f7cce['push']({'type':_0x545df9+'Container','element':_0x4a04c3});}}}}}['_resolveDescriptionItems'](_0x19885a){const _0x11a9ad=this['_locale'],_0x1b099c=[],_0x405a75=[],_0x18df96=[];for(const _0x10c93 of _0x19885a)switch(_0x10c93['type']){case'text':if(_0x10c93['add']=_0x10c93['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x10c93['remove']=_0x10c93['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x10c93['add']&&''!=_0x10c93['remove']){_0x1b099c['push']({'type':'replace','content':o(_0x11a9ad,'REPLACE_TEXT',['\x22'+_0x10c93['remove']+'\x22','\x22'+_0x10c93['add']+'\x22'])});continue;}if(null!=_0x10c93['add']['match'](/^ +$/)){_0x1b099c['push']({'type':'insertion','content':o(_0x11a9ad,'*Insert:*\x20%0',o(_0x11a9ad,'ELEMENT_SPACE',_0x10c93['add']['length']))});continue;}if(null!=_0x10c93['remove']['match'](/^ +$/)){_0x1b099c['push']({'type':'deletion','content':o(_0x11a9ad,'*Remove:*\x20%0',o(_0x11a9ad,'ELEMENT_SPACE',_0x10c93['remove']['length']))});continue;}if(''!=_0x10c93['add']){_0x1b099c['push']({'type':'insertion','content':o(_0x11a9ad,'*Insert:*\x20%0','\x22'+_0x10c93['add']+'\x22')});continue;}_0x1b099c['push']({'type':'deletion','content':o(_0x11a9ad,'*Remove:*\x20%0','\x22'+_0x10c93['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1b099c['push']({'type':'insertion','content':o(_0x11a9ad,'*Insert:*\x20%0',this['getItemLabel'](_0x10c93['element'],_0x10c93['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1b099c['push']({'type':'deletion','content':o(_0x11a9ad,'*Remove:*\x20%0',this['getItemLabel'](_0x10c93['element'],_0x10c93['quantity']))});continue;case'addContainer':_0x1b099c['push']({'type':'insertion','content':o(_0x11a9ad,'*Split:*\x20%0',this['getItemLabel'](_0x10c93['element'],_0x10c93['quantity']))});continue;case'removeContainer':_0x1b099c['push']({'type':'deletion','content':o(_0x11a9ad,'*Merge:*\x20%0',this['getItemLabel'](_0x10c93['element'],_0x10c93['quantity']))});continue;case'addFormat':_0x405a75['push'](_0x10c93['key']);continue;case'removeFormat':_0x18df96['push'](_0x10c93['key']);continue;default:_0x1b099c['push'](_0x10c93);}if(_0x405a75['length']){const _0x1df6cf=_0x405a75['map'](_0x5f2426=>this['_attributeLabels']['has'](_0x5f2426)?this['_attributeLabels']['get'](_0x5f2426):_0x5f2426)['join'](',\x20');_0x1b099c['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1df6cf)});}if(_0x18df96['length']){const _0x3d911a=_0x18df96['map'](_0x525886=>this['_attributeLabels']['has'](_0x525886)?this['_attributeLabels']['get'](_0x525886):_0x525886)['join'](',\x20');_0x1b099c['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3d911a)});}return _0x1b099c;}['_handleCustomCallbackDescription'](_0x5baa55){for(const _0x9ea59 of this['_customCallbacks']){const _0x216fac=_0x9ea59(_0x5baa55);if(_0x216fac&&'type'in _0x216fac)return _0x216fac;}}['_handleAttributeSuggestionDescription'](_0x515b65,_0x2ecea2){const _0xf38d02=_0x2ecea2['data'],_0x5cdcaa=void 0x0===_0xf38d02['newValue']?'removeFormat':'addFormat';_0x515b65['push']({'type':_0x5cdcaa,'key':_0xf38d02['key']});}['_handleRenameSuggestionDescription'](_0x394c87,_0x1665e0){_0x394c87['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1665e0['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3c7853,_0x45ffaf,_0x29b62e){if(this['_addDescriptionItems'](_0x3c7853,_0x45ffaf),_0x29b62e&&_0x29b62e['getFirstRange']()&&!_0x45ffaf['getFirstRange']()['end']['isEqual'](_0x29b62e['getFirstRange']()['start'])){const _0x1e7a51=_0x3c7853[_0x3c7853['length']-0x1],_0x5db407='insertion'==_0x45ffaf['type']?'add':'remove';_0x1e7a51&&'text'==_0x1e7a51['type']&&(_0x1e7a51[_0x5db407]+='\x0a');}}}class O extends _0x2611d7{['afterInit'](){const _0x18938e=this['editor'],_0x393036=_0x18938e['plugins']['get']('TrackChangesEditing');_0x18938e['commands']['get']('showAIAssistant')&&_0x393036['enableCommand']('showAIAssistant');}}class E extends _0x2611d7{['afterInit'](){const _0x5475d6=this['editor'],_0x1a32eb=_0x5475d6['locale'];if(!_0x5475d6['plugins']['has']('AlignmentEditing'))return;const _0x259de4=_0x5475d6['plugins']['get']('TrackChangesEditing');_0x259de4['enableDefaultAttributesIntegration']('alignment'),_0x259de4['registerBlockAttribute']('alignment'),_0x259de4['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1a32eb,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bd100=this['editor'],_0x3c2e38=_0x4bd100['locale'];_0x4bd100['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc62765=>{if('formatBlock'!=_0xc62765['type'])return;const {data:_0x3d3cff}=_0xc62765;if(_0x3d3cff&&'alignment'==_0x3d3cff['commandName']){const _0x5c3383=_0x3d3cff['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3c2e38,'*Format:*\x20%0',function(_0x46b77b){switch(_0x46b77b){case'left':return o(_0x3c2e38,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3c2e38,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3c2e38,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3c2e38,'FORMAT_JUSTIFY_TEXT');}}(_0x5c3383))};}});}}const Yt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x2611d7{['afterInit'](){const _0x2aa4a2=this['editor'],_0x15788d=_0x2aa4a2['plugins']['get']('TrackChangesEditing'),_0x1720a6=_0x2aa4a2['locale'];for(const _0x4a8d67 of Yt){if(!_0x2aa4a2['plugins']['has'](_0x4a8d67))continue;const _0x3082a6=_0x4a8d67['slice'](0x0,-0x7)['toLowerCase'](),_0x4d5fcd='FORMAT_'+_0x3082a6['toUpperCase']();_0x15788d['enableDefaultAttributesIntegration'](_0x3082a6),_0x15788d['registerInlineAttribute'](_0x3082a6),_0x15788d['descriptionFactory']['registerAttributeLabel'](_0x3082a6,o(_0x1720a6,_0x4d5fcd));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x534f5f=this['editor'],_0x5a6f8f=_0x534f5f['locale'],_0x5f65f1=_0x534f5f['plugins']['get']('TrackChangesEditing');function _0x5b1cc6(_0x3239dd,_0xb17eb6){_0x5f65f1['descriptionFactory']['registerDescriptionCallback'](_0x228bae=>{if('formatInline'!=_0x228bae['type'])return;const {data:_0xcc773c}=_0x228bae;return _0xcc773c&&_0xcc773c['commandName']===_0x3239dd?_0xcc773c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5a6f8f,'*Format:*\x20%0',_0xb17eb6)}:{'type':'format','content':o(_0x5a6f8f,'*Remove\x20format:*\x20%0',_0xb17eb6)}:void 0x0;});}_0x5b1cc6('bold',o(_0x5a6f8f,'FORMAT_BOLD')),_0x5b1cc6('italic',o(_0x5a6f8f,'FORMAT_ITALIC')),_0x5b1cc6('underline',o(_0x5a6f8f,'FORMAT_UNDERLINE')),_0x5b1cc6('code',o(_0x5a6f8f,'FORMAT_CODE')),_0x5b1cc6('strikethrough',o(_0x5a6f8f,'FORMAT_STRIKETHROUGH')),_0x5b1cc6('subscript',o(_0x5a6f8f,'FORMAT_SUBSCRIPT')),_0x5b1cc6('superscript',o(_0x5a6f8f,'FORMAT_SUPERSCRIPT'));}}class U extends _0x2611d7{['afterInit'](){const _0x5dda5d=this['editor'],_0x27e2a5=_0x5dda5d['locale'];if(!_0x5dda5d['plugins']['has']('BlockQuoteEditing'))return;const _0x4d61a0=_0x5dda5d['plugins']['get']('TrackChangesEditing'),_0x5d0277=this['editor']['commands']['get']('blockQuote');_0x4d61a0['enableCommand']('blockQuote',(_0x305c0b,_0x4b53ff={})=>{const _0x15d5eb=this['editor']['model']['document']['selection'],_0x1a24e8=_0x4b53ff&&void 0x0!==_0x4b53ff['forceValue']?_0x4b53ff['forceValue']:!_0x5d0277['value'];let _0x502077=[];if(_0x1a24e8){const _0x44e463=Array['from'](_0x15d5eb['getSelectedBlocks']())['filter'](_0x3e0ee5=>to(_0x3e0ee5)||function(_0x2b1074,_0x1f0568){const _0x54c483=_0x1f0568['checkChild'](_0x2b1074['parent'],'blockQuote'),_0x3afca5=_0x1f0568['checkChild'](['$root','blockQuote'],_0x2b1074);return _0x54c483&&_0x3afca5;}(_0x3e0ee5,this['editor']['model']['schema']));_0x502077=Zt(_0x44e463,_0x5dda5d['model']);}else{const _0x574e54=Array['from'](_0x15d5eb['getSelectedBlocks']())['filter'](_0x35fb00=>to(_0x35fb00));_0x502077=Zt(_0x574e54,_0x5dda5d['model']);}_0x5dda5d['model']['change'](()=>{for(const _0x96c018 of _0x502077)_0x4d61a0['markBlockFormat'](_0x96c018,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1a24e8}]});});}),_0x4d61a0['descriptionFactory']['registerDescriptionCallback'](_0x8b12e6=>{const {data:_0x57cd38}=_0x8b12e6;if(_0x57cd38&&'blockQuote'==_0x57cd38['commandName']){const _0x492eae=o(_0x27e2a5,'ELEMENT_BLOCK_QUOTE');return _0x57cd38['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x27e2a5,'*Set\x20format:*\x20%0',_0x492eae)}:{'type':'format','content':o(_0x27e2a5,'*Remove\x20format:*\x20%0',_0x492eae)};}});}}function to(_0x194548){return'blockQuote'==_0x194548['parent']['name'];}class V extends _0x2611d7{['afterInit'](){const _0x5e5d8b=this['editor'],_0x400c31=_0x5e5d8b['locale'],_0x194597=_0x5e5d8b['plugins']['get']('TrackChangesEditing');_0x5e5d8b['plugins']['has']('BookmarkEditing')&&(_0x194597['enableCommand']('insertBookmark'),_0x194597['enableDefaultAttributesIntegration']('updateBookmark'),_0x194597['registerBlockAttribute']('bookmarkId'),_0x194597['descriptionFactory']['registerDescriptionCallback'](_0x5bc0cd=>{if('insertion'!=_0x5bc0cd['type']&&'deletion'!=_0x5bc0cd['type']&&'attribute'!=_0x5bc0cd['type'])return;const _0x526c6d=_0x5bc0cd['getContainedElement']();if(null==_0x526c6d)return;if(!_0x526c6d['is']('element','bookmark'))return;const _0x2efa52=_0x526c6d['getAttribute']('bookmarkId');if('insertion'==_0x5bc0cd['type'])return{'type':'insertion','content':o(_0x400c31,'*Insert:*\x20%0','\x22'+_0x2efa52+'\x22\x20'+o(_0x400c31,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5bc0cd['type'])return{'type':'deletion','content':o(_0x400c31,'*Remove:*\x20%0','\x22'+_0x2efa52+'\x22\x20'+o(_0x400c31,'ELEMENT_BOOKMARK'))};const {data:_0x579443}=_0x5bc0cd;if(!_0x579443||'bookmarkId'!=_0x579443['key'])return;return{'type':'format','content':o(_0x400c31,'*Set\x20bookmark:*\x20%0','\x22'+_0x579443['newValue']+'\x22')};}));}}class F extends _0x2611d7{['afterInit'](){const _0x4c1087=this['editor'];_0x4c1087['plugins']['has']('CaseChange')&&(_0x4c1087['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4c1087['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4c1087['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x2611d7{['afterInit'](){const _0x358e36=this['editor'];_0x358e36['commands']['get']('ckbox')&&_0x358e36['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x2611d7{['afterInit'](){const _0x41c7f0=this['editor'];if(!_0x41c7f0['plugins']['has']('CodeBlock'))return;const _0x32dcd2=_0x41c7f0['plugins']['get']('TrackChangesEditing'),_0xe22649=_0x41c7f0['locale'],_0x4509c8=_0x41c7f0['config']['get']('codeBlock')['languages'],_0x239311=_0x41c7f0['commands']['get']('codeBlock');_0x32dcd2['enableCommand']('indentCodeBlock'),_0x32dcd2['enableCommand']('outdentCodeBlock'),_0x32dcd2['enableCommand']('codeBlock',(_0x2040c9,_0xf59e1f={})=>{const _0x320bfd=_0x41c7f0['model'],_0x34c7aa=_0x41c7f0['model']['document']['selection'],_0x4db756=_0xf59e1f&&void 0x0!==_0xf59e1f['forceValue']?_0xf59e1f['forceValue']:!_0x239311['value'];let _0x302217;_0xf59e1f['language']||(_0xf59e1f['language']=_0x4509c8[0x0]['language']),_0x302217=_0x4db756?Array['from'](_0x34c7aa['getSelectedBlocks']())['filter'](_0xe0bed4=>oo(_0xe0bed4)||function(_0x5b4d58,_0x39eb12){if(_0x5b4d58['is']('rootElement')||_0x39eb12['isLimit'](_0x5b4d58))return!0x1;return _0x39eb12['checkChild'](_0x5b4d58['parent'],'codeBlock');}(_0xe0bed4,_0x320bfd['schema'])):Array['from'](_0x34c7aa['getSelectedBlocks']())['filter'](_0x360c43=>oo(_0x360c43));const _0x3046d5=Zt(_0x302217,_0x320bfd);_0x320bfd['change'](()=>{for(const _0x2089e8 of _0x3046d5)_0x32dcd2['markBlockFormat'](_0x2089e8,{'commandName':'codeBlock','commandParams':[{..._0xf59e1f,'forceValue':_0x4db756}],'formatGroupId':'blockName'});});}),(_0x32dcd2['descriptionFactory']['registerElementLabel']('codeBlock',_0x33ebe8=>o(_0xe22649,'ELEMENT_CODE_BLOCK',_0x33ebe8)),_0x32dcd2['descriptionFactory']['registerDescriptionCallback'](_0x4ae666=>{if('formatBlock'!=_0x4ae666['type'])return;const _0x50417e=_0xe22649['t'],{data:_0x3a6c71}=_0x4ae666;if(!_0x3a6c71||'codeBlock'!=_0x3a6c71['commandName'])return;const _0x537811=_0x3a6c71['commandParams'][0x0]['language'],_0x3bad0f=_0x50417e(_0x4509c8['find'](_0x590f3d=>_0x590f3d['language']===_0x537811)['label'])['toLowerCase']();return _0x3a6c71['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xe22649,'*Set\x20format:*\x20%0',o(_0xe22649,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3bad0f+')')}:{'type':'format','content':o(_0xe22649,'*Remove\x20format:*\x20%0',o(_0xe22649,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x4f34d2){return'codeBlock'==_0x4f34d2['name'];}class J extends _0x2611d7{['afterInit'](){const _0x29f71a=this['editor'];if(!_0x29f71a['plugins']['has']('CommentsEditing'))return;_0x29f71a['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1bd18b,_0xa2eb1,_0x4fbf05){const _0x54d5bf=[];for(const _0x298a84 of _0xa2eb1['getItems']())_0x298a84['hasAttribute'](_0x1bd18b)&&_0x54d5bf['push'](_0x4fbf05['createRangeOn'](_0x298a84));return _0x54d5bf;}function De(_0x2a0d1a,_0x4b71cd,{showActiveMarker:_0x2219af=!0x0}={}){const _0x388ffc=_0x2a0d1a['plugins']['get']('TrackChangesEditing');return(_0x47f80b,_0x452ec9,_0x2d7b92)=>{if(!_0x2d7b92['consumable']['test'](_0x452ec9['markerRange'],_0x47f80b['name']))return;const _0x206593=_0x452ec9['markerRange']['getWalker'](),_0x45f09b=_0x452ec9['markerRange']['start'],_0x500e46=_0x2a0d1a['model']['schema'];let _0xab4af=null,_0x5c0cc2=null,_0x467964=!0x1,_0x2635bb=!0x1;for(const _0x18baa7 of _0x206593){const _0x17803f=_0x18baa7['item'];_0x467964=_0x467964||_0x500e46['isContent'](_0x17803f);const _0x252b67=_0x2d7b92['mapper']['toViewElement'](_0x17803f);if(_0x252b67&&_0x252b67['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x18baa7['type']&&(_0x500e46['isBlock'](_0x17803f)&&!_0x500e46['isLimit'](_0x17803f)&&(_0x17803f['nextSibling']||_0x45f09b['isAtEnd']?_0xab4af&&_0xab4af['parent']==_0x17803f||(_0xab4af=_0x17803f,_0x2d988e(_0x18baa7['previousPosition']),_0x2635bb=!0x0):_0x5c0cc2=_0x5c0cc2||_0x18baa7['previousPosition']));}function _0x2d988e(_0x1d0f20){const {id:_0x58758c,authorId:_0x26c9de}=_0x388ffc['_splitMarkerName'](_0x452ec9['markerName']),_0x3a6755=_0x2d7b92['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4b71cd,'data-suggestion':_0x58758c,'data-author-id':_0x26c9de}),_0x1230dd=_0x2d7b92['mapper']['toViewPosition'](_0x1d0f20);_0x2219af&&_0x388ffc['activeMarkers']['includes'](_0x452ec9['markerName'])&&_0x2d7b92['writer']['addClass']('ck-suggestion-marker--active',_0x3a6755),_0x2d7b92['writer']['insert'](_0x1230dd,_0x3a6755),_0x2d7b92['mapper']['bindElementToMarker'](_0x3a6755,_0x452ec9['markerName']);}_0x467964||_0x2635bb||!_0x5c0cc2||_0x2d988e(_0x5c0cc2);};}class K extends _0x2611d7{static get['requires'](){return[_0x4fabca];}['init'](){const _0x46009a=this['editor'],_0x20c6af=_0x46009a['plugins']['get']('TrackChangesEditing');_0x20c6af['enableCommand']('delete');const _0x13bd52=_0x46009a['commands']['get']('deleteForward');_0x20c6af['enableCommand']('deleteForward',(_0x235d52,_0x556e38={})=>{const _0x1686f3=_0x46009a['model']['createSelection'](_0x46009a['model']['document']['selection']);_0x1686f3['isCollapsed']&&_0x46009a['model']['modifySelection'](_0x1686f3,{'direction':'forward','unit':_0x556e38['unit']});const _0xdc1c67=_0x1686f3['getFirstRange'](),_0x403f15=_0x1c65a2['fromRange'](_0xdc1c67);let _0x5234bc;_0x235d52(_0x556e38),_0x5234bc='$graveyard'==_0x403f15['root']['rootName']?_0x46009a['model']['createRange'](_0xdc1c67['start']):_0x46009a['model']['createRange'](_0x403f15['start'],_0x403f15['end']),_0x403f15['detach'](),_0x46009a['model']['enqueueChange'](_0x13bd52['buffer']['batch'],_0x48e01a=>{_0x13bd52['buffer']['lock'](),_0x48e01a['setSelection'](_0x48e01a['createRange'](_0x5234bc['end'])),_0x13bd52['buffer']['unlock']();});}),_0x46009a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x46009a,'merge'),{'priority':'high'}),_0x46009a['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5653b1,_0x27d4cb,_0x59052b)=>{_0x59052b['options']['showSuggestionHighlights']&&De(_0x46009a,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x5653b1,_0x27d4cb,_0x59052b);},{'priority':'high'}),_0x46009a['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x51b204,_0x20bac2,_0x227378)=>{const _0xc00349=_0x227378['mapper']['markerNameToElements'](_0x20bac2['markerName']);if(_0xc00349){for(const _0x505866 of _0xc00349)_0x505866['is']('uiElement')&&(_0x227378['mapper']['unbindElementFromMarkerName'](_0x505866,_0x20bac2['markerName']),_0x227378['writer']['remove'](_0x505866));}},{'priority':'high'});}}class H extends _0x2611d7{['afterInit'](){const _0x234141=this['editor'];if(!_0x234141['plugins']['has']('ListEditing'))return;const _0x52659e=_0x234141['locale'],_0x1fea1f=_0x234141['plugins']['get']('TrackChangesEditing'),_0x344f00=_0x234141['plugins']['has']('TodoListEditing'),_0xe9a9f2=!!_0x234141['config']['get']('list.multiBlock');function _0x473d10(_0x358e01){return{'type':'format','content':''+o(_0x52659e,'*Set\x20format:*\x20%0',_0x358e01)};}function _0x4786ae(_0x33b2a5){return{'type':'format','content':''+o(_0x52659e,'*Remove\x20format:*\x20%0',_0x33b2a5)};}_0x1fea1f['enableDefaultAttributesIntegration']('numberedList'),_0x1fea1f['enableDefaultAttributesIntegration']('bulletedList'),_0x1fea1f['enableDefaultAttributesIntegration']('customNumberedList'),_0x1fea1f['enableDefaultAttributesIntegration']('customBulletedList'),_0x1fea1f['enableDefaultAttributesIntegration']('indentList'),_0x1fea1f['enableDefaultAttributesIntegration']('outdentList'),_0x1fea1f['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1fea1f['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1fea1f['registerBlockAttribute']('listItemId'),_0x1fea1f['registerBlockAttribute']('listType'),_0x1fea1f['registerBlockAttribute']('listIndent'),_0xe9a9f2&&(_0x1fea1f['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1fea1f['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x344f00&&(_0x1fea1f['enableDefaultAttributesIntegration']('todoList'),_0x1fea1f['enableDefaultAttributesIntegration']('checkTodoList'),_0x1fea1f['registerBlockAttribute']('todoListChecked'),_0x1fea1f['descriptionFactory']['registerDescriptionCallback'](_0x30675b=>{const {data:_0x5003c4}=_0x30675b;if(_0x5003c4&&'todoListChecked'==_0x5003c4['key'])return{'type':'format','content':_0x5003c4['newValue']?o(_0x52659e,'*Check\x20item*'):o(_0x52659e,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5d961c=>{if(_0x5d961c['batch']['isUndo'])return!0x1;let _0x2001a9=!0x1;const _0x4a589f=_0x1fea1f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3386f8=>'todoListChecked'===_0x1fea1f['_getAttributeKey'](_0x3386f8));for(const _0x48929b of _0x4a589f){'todo'!=_0x48929b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1fea1f['_findSuggestions'](_0x48929b['getFirstRange'](),'attribute')['find'](_0x1c6321=>'listType'===_0x1fea1f['_getAttributeKey'](_0x1c6321['suggestion']))||(_0x5d961c['removeMarker'](_0x48929b['getFirstMarker']()),_0x2001a9=!0x0));}return _0x2001a9;})),_0x1fea1f['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x52659e,'FORMAT_INDENT'));const _0x3f3565={'type':'format','content':''};_0x1fea1f['descriptionFactory']['registerDescriptionCallback'](_0xffafd=>{const {data:_0x16cfda}=_0xffafd;if(!_0x16cfda||'listType'!=_0x16cfda['key'])return;let _0x4334a6=_0xffafd['head'];for(;_0x4334a6;){if(_0x4334a6['data']&&(('listStyle'==_0x4334a6['data']['key']||'listMarkerStyle'==_0x4334a6['data']['key'])&&(_0x4334a6['data']['newValue']&&'default'!=_0x4334a6['data']['newValue']||'default'!=_0x4334a6['data']['oldValue']&&!_0x16cfda['newValue'])||!_0xe9a9f2&&_0x4334a6['data']['key']==m))return _0x3f3565;_0x4334a6=_0x4334a6['next'];}if(null==_0x16cfda['newValue'])switch(_0x16cfda['oldValue']){case'bulleted':return _0x4786ae(o(_0x52659e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4786ae(o(_0x52659e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4786ae(o(_0x52659e,'ELEMENT_TODO_LIST'));}switch(_0x16cfda['newValue']){case'bulleted':return _0x473d10(o(_0x52659e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x473d10(o(_0x52659e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x473d10(o(_0x52659e,'ELEMENT_TODO_LIST'));}}),_0x1fea1f['descriptionFactory']['registerDescriptionCallback'](_0x53f13e=>{const {data:_0x5b8e11}=_0x53f13e;if(_0x5b8e11&&'listIndent'==_0x5b8e11['key'])return null==_0x5b8e11['newValue']||null==_0x5b8e11['oldValue']&&0x0==_0x5b8e11['newValue']?_0x3f3565:void 0x0;}),_0x1fea1f['descriptionFactory']['registerDescriptionCallback'](_0x4808b2=>{if('attribute'!=_0x4808b2['type'])return;const {data:_0xe95809}=_0x4808b2;if(!_0xe95809||'listItemId'!=_0xe95809['key'])return;const _0x3d0b18=Te(_0x4808b2);return'newValue'==_0x3d0b18?{'type':'format','content':o(_0x52659e,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3d0b18?{'type':'format','content':o(_0x52659e,'*Split:*\x20list\x20item')}:_0x3f3565;}),_0x234141['model']['document']['registerPostFixer'](_0x1401fc=>this['listItemIdFixer'](_0x1401fc)),_0x234141['model']['document']['registerPostFixer'](_0x10f76e=>this['noTrackChangesFixer'](_0x10f76e)),_0x234141['model']['document']['on']('change:data',(_0x34cbac,_0x349c98)=>{if(_0x349c98['isUndo']||!_0x349c98['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x6b9300){if(_0x6b9300['batch']['isUndo']||!_0x6b9300['batch']['isLocal'])return!0x1;let _0x6ee9cd=!0x1;const _0xc064dd=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2f423d=>_0x2f423d['data']&&'listItemId'==_0x2f423d['data']['key'])['filter'](_0x22a112=>_0x22a112['data']['newValue']&&_0x22a112['data']['oldValue']);for(const _0x2ad510 of _0xc064dd)Te(_0x2ad510)||(_0x6b9300['removeMarker'](_0x2ad510['getFirstMarker']()),_0x6ee9cd=!0x0);return _0x6ee9cd;}['noTrackChangesFixer'](_0x2857b4){if(_0x2857b4['batch']['isUndo']||!_0x2857b4['batch']['isLocal'])return!0x1;const _0x31c990=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x31c990['trackChangesCommand']['value'])return!0x1;let _0x2c0dd0=!0x1;const _0x3ffd53=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x37029a=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x50e580=>'attribute'==_0x50e580['type'])['filter'](_0x449159=>_0x3ffd53['includes'](_0x449159['attributeKey']));if(0x0==_0x37029a['length'])return _0x2c0dd0;for(const _0x19ee1b of _0x37029a){const _0x153c51=_0x31c990['_findSuggestions'](_0x19ee1b['range'],'attribute')['filter'](_0xeaebdc=>!_0xeaebdc['meta']['isNextTo'])['map'](_0x1026aa=>_0x1026aa['suggestion'])['filter'](_0x58e6ae=>{const _0x66aba9=_0x31c990['_getAttributeKey'](_0x58e6ae);return _0x3ffd53['includes'](_0x66aba9);});if(_0x153c51['length']){for(const _0x14c9a2 of _0x153c51)_0x2857b4['removeMarker'](_0x14c9a2['getFirstMarker']());_0x2c0dd0=!0x0;}}return _0x2c0dd0;}['assureChains'](){const _0x53a210=this['editor']['plugins']['get']('TrackChangesEditing'),_0x575eef=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2f5038;const _0x593a23=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xa2c95d=>{if(_0xa2c95d['data']['oldRange']||!_0xa2c95d['data']['newRange'])return null;if(!_0xa2c95d['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2b9623}=_0x53a210['_splitMarkerName'](_0xa2c95d['name']);if(!_0x53a210['hasSuggestion'](_0x2b9623))return null;const _0x2b7ceb=_0x53a210['getSuggestion'](_0x2b9623);return _0x575eef['includes'](_0x2b7ceb['data']['key']);})['map'](_0x2db27d=>{const {id:_0x5c85eb}=_0x53a210['_splitMarkerName'](_0x2db27d['name']),_0x1620ac=_0x53a210['getSuggestion'](_0x5c85eb);return _0x2f5038=_0x1620ac['attributes']['groupId'],_0x1620ac['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x593a23['size'])return;const _0x4fcaa1=_0x53a210['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x14c10a=>'attribute'==_0x14c10a['type']&&_0x14c10a['data']&&_0x575eef['includes'](_0x14c10a['data']['key'])&&_0x14c10a['attributes']['groupId']!=_0x2f5038)['map'](_0x413062=>({'listItem':_0x413062['getFirstRange']()['start']['nodeAfter'],'groupId':_0x413062['attributes']['groupId']})),_0x4a71c1=new Set();for(const {groupId:_0x272f88,listItem:_0x51235b}of _0x4fcaa1)_0x593a23['has'](_0x51235b)&&_0x4a71c1['add'](_0x272f88);for(const _0x420574 of _0x53a210['getSuggestions']())_0x4a71c1['has'](_0x420574['attributes']['groupId'])&&_0x420574['setAttribute']('groupId',_0x2f5038);}['_supportLegacySuggestions'](){const _0x5d1625=this['editor'],_0x7f053f=_0x5d1625['locale'],_0x1bb6ce=_0x5d1625['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1bb6ce['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x27a30e,_0x17f517){const _0x45c11d=[];for(let _0x34e790 of _0x27a30e)_0x34e790['start']['nodeAfter']===_0x34e790['end']['parent']&&(_0x34e790=_0x5d1625['model']['createRange'](_0x5d1625['model']['createPositionAt'](_0x34e790['start']['nodeAfter'],0x0))),_0x45c11d['push'](_0x34e790);_0x5d1625['model']['change'](_0x402e5d=>{const _0x515ba4=_0x5d1625['model']['document']['selection'],_0x43056a=Array['from'](_0x515ba4['getRanges']())['map'](_0x14ccaa=>_0x1c65a2['fromRange'](_0x14ccaa));_0x402e5d['setSelection'](_0x45c11d),_0x5d1625['commands']['get'](_0x17f517['commandName'])['refresh'](),_0x17f517['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5d1625['execute'](_0x17f517['commandName'],..._0x17f517['commandParams']),_0x402e5d['setSelection'](_0x43056a);for(const _0x32d7ec of _0x43056a)_0x32d7ec['detach']();});}),_0x1bb6ce['descriptionFactory']['registerElementLabel'](function(_0x1289b7){const _0x2998ab=!_0x5d1625['model']['schema']['isObject'](_0x1289b7),_0x1622fb=_0x1289b7['previousSibling'],_0x233d92=_0x1289b7['nextSibling'],_0x3dc8ea=_0x1289b7['getAttribute']('listItemId'),_0x25d1be=!_0x1622fb||_0x1622fb['getAttribute']('listItemId')!==_0x3dc8ea,_0x5a4855=!_0x233d92||_0x233d92['getAttribute']('listItemId')!==_0x3dc8ea;return _0x2998ab&&Boolean(_0x3dc8ea)&&_0x25d1be&&_0x5a4855;},_0x56ee31=>o(_0x7f053f,'ELEMENT_LIST_ITEM',_0x56ee31));}['_registerLegacyDescription'](){const _0x4f269e=this['editor'],_0x5bc078=_0x4f269e['locale'];function _0x2f48ef(_0x393d5c){const _0x71eed9=_0x4f269e['commands']['get']('bulletedList')['value'],_0x1216f6=_0x4f269e['commands']['get']('numberedList')['value'];return'numberedList'===_0x393d5c?_0x71eed9:_0x1216f6;}_0x4f269e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x38b776){if('formatBlock'!=_0x38b776['type'])return;const {data:_0x395e0c}=_0x38b776;if(!_0x395e0c)return;let _0x17bbee,_0x3ec50e,_0x40bd6a,_0xe66e11;switch(_0x395e0c['commandName']){case'bulletedList':_0x40bd6a=_0x395e0c['commandParams'][0x0]['forceValue'],_0xe66e11=_0x2f48ef(_0x395e0c['commandName']),_0x17bbee=_0x40bd6a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xe66e11&&_0x4f269e['config']['get']('list.multiBlock')||(_0x17bbee='*Change\x20to:*\x20%0'),_0x3ec50e={'type':'format','content':o(_0x5bc078,_0x17bbee,o(_0x5bc078,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x40bd6a=_0x395e0c['commandParams'][0x0]['forceValue'],_0xe66e11=_0x2f48ef(_0x395e0c['commandName']),_0x17bbee=_0x40bd6a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xe66e11&&_0x4f269e['config']['get']('list.multiBlock')||(_0x17bbee='*Change\x20to:*\x20%0'),_0x3ec50e={'type':'format','content':o(_0x5bc078,_0x17bbee,o(_0x5bc078,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x17bbee='*Indent:*\x20%0',_0x3ec50e={'type':'format','content':o(_0x5bc078,_0x17bbee,o(_0x5bc078,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x17bbee=function(_0x1850e3){const _0x512a72=_0x1850e3['getFirstRange']();let _0x5927a2=_0x512a72['start']['nodeAfter'];for(;_0x5927a2&&_0x512a72['containsItem'](_0x5927a2);){if(_0x5927a2['getAttribute']('listIndent')>0x0)return!0x1;_0x5927a2=_0x5927a2['nextSibling'];}return!0x0;}(_0x38b776)?o(_0x5bc078,'*Format:*\x20remove\x20from\x20%0',o(_0x5bc078,function(_0x10abaa){return'ELEMENT_'+_0x10abaa['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x38b776))):o(_0x5bc078,'*Outdent:*\x20%0',o(_0x5bc078,'ELEMENT_LIST_ITEM')),_0x3ec50e={'type':'format','content':_0x17bbee};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x395e0c['multipleBlocks']&&(_0x17bbee='*Merge:*\x20%0',_0x3ec50e={'type':'deletion','content':o(_0x5bc078,_0x17bbee,o(_0x5bc078,'ELEMENT_LIST_ITEM'))});}return _0x3ec50e;});}}function Te(_0x95ffff){let _0x4a9af4=_0x95ffff['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4a9af4;){const _0x1499b6=_0x4a9af4['getAttribute']('listItemId');if(!_0x1499b6)return!0x1;if(_0x1499b6==_0x95ffff['data']['newValue'])return'newValue';if(_0x1499b6==_0x95ffff['data']['oldValue'])return'oldValue';_0x4a9af4=_0x4a9af4['previousSibling'];}return!0x1;}class q extends _0x2611d7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x240759=this['editor']['config']['get']('list.properties'),_0x5db21b=this['editor']['plugins']['get']('TrackChangesEditing');_0x240759['styles']&&(_0x5db21b['enableDefaultAttributesIntegration']('listStyle'),_0x5db21b['registerBlockAttribute']('listStyle')),_0x240759['reversed']&&(_0x5db21b['enableDefaultAttributesIntegration']('listReversed'),_0x5db21b['registerBlockAttribute']('listReversed')),_0x240759['startIndex']&&(_0x5db21b['enableDefaultAttributesIntegration']('listStart'),_0x5db21b['registerBlockAttribute']('listStart'));const _0x597fc7={'type':'format','content':''};_0x5db21b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x56adcb=this['editor']['locale'];_0x5db21b['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x56adcb,'FORMAT_LIST_REVERSED')),_0x5db21b['descriptionFactory']['registerDescriptionCallback'](_0x26ce11=>{const {data:_0x142280}=_0x26ce11;if(_0x142280&&'listReversed'==_0x142280['key'])return null==_0x142280['newValue']||0x0==_0x142280['newValue']&&null==_0x142280['oldValue']?_0x597fc7:void 0x0;}),_0x5db21b['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x56adcb,'FORMAT_LIST_START')),_0x5db21b['descriptionFactory']['registerDescriptionCallback'](_0x139b37=>{const {data:_0x4d58da}=_0x139b37;if(_0x4d58da&&'listStart'==_0x4d58da['key'])return null==_0x4d58da['newValue']||0x1==_0x4d58da['newValue']&&null==_0x4d58da['oldValue']?_0x597fc7:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x52eee0=>{if(_0x52eee0['batch']['isUndo'])return!0x1;let _0x4d7e09=!0x1;const _0x2e6288=_0x5db21b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x283614=>{const _0x546c6f=_0x5db21b['_getAttributeKey'](_0x283614);return'listStart'==_0x546c6f||'listReversed'==_0x546c6f;});for(const _0x519ec1 of _0x2e6288){const _0x361a14=_0x519ec1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x361a14||'customNumbered'==_0x361a14)continue;_0x5db21b['_findSuggestions'](_0x519ec1['getFirstRange'](),'attribute')['find'](_0x2e4d8d=>'listType'==_0x5db21b['_getAttributeKey'](_0x2e4d8d['suggestion']))||(_0x52eee0['removeMarker'](_0x519ec1['getFirstMarker']()),_0x4d7e09=!0x0);}return _0x4d7e09;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x26e000){const _0x29e29e=this['editor']['locale'],{data:_0xb8ab6d}=_0x26e000,_0x2d0d29={'type':'format','content':''};if(!_0xb8ab6d||'listStyle'!=_0xb8ab6d['key'])return;if(!_0xb8ab6d['oldValue'])return'default'==_0xb8ab6d['newValue']?_0x2d0d29:{'type':'format','content':''+o(_0x29e29e,'*Set\x20format:*\x20%0',o(_0x29e29e,this['_getTranslationKeyForListStyle'](_0xb8ab6d['newValue'])))};if(!_0xb8ab6d['newValue']){if('default'==_0xb8ab6d['oldValue'])return _0x2d0d29;let _0x4c2159=_0x26e000['head'];for(;_0x4c2159;){if(_0x4c2159['data']&&'listType'==_0x4c2159['data']['key']&&_0x4c2159['data']['newValue'])return _0x2d0d29;_0x4c2159=_0x4c2159['next'];}return{'type':'format','content':''+o(_0x29e29e,'*Remove\x20format:*\x20%0',o(_0x29e29e,this['_getTranslationKeyForListStyle'](_0xb8ab6d['oldValue'])))};}if('default'!=_0xb8ab6d['newValue'])return{'type':'format','content':''+o(_0x29e29e,'*Set\x20format:*\x20%0',o(_0x29e29e,this['_getTranslationKeyForListStyle'](_0xb8ab6d['newValue'])))};let _0x40d277=_0x26e000['head'];for(;_0x40d277;){if(_0x40d277['data']&&'listType'==_0x40d277['data']['key']&&_0x40d277['data']['newValue']&&_0x40d277['data']['oldValue'])return _0x2d0d29;_0x40d277=_0x40d277['next'];}return{'type':'format','content':o(_0x29e29e,'*Set\x20format:*\x20%0',o(_0x29e29e,'ELEMENT_'+_0x26e000['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x404dfb=this['editor'],_0x422118=_0x404dfb['locale'];_0x404dfb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3eeaaa=>{if('formatBlock'!=_0x3eeaaa['type'])return;const {data:_0x1edf26}=_0x3eeaaa;if(!_0x1edf26)return;let _0x32163e,_0x2f74b8;switch(_0x1edf26['commandName']){case'listStyle':_0x32163e='*Change\x20to:*\x20%0',_0x2f74b8={'type':'format','content':o(_0x422118,_0x32163e,o(_0x422118,this['_getTranslationKeyForListStyle'](_0x1edf26['commandParams'][0x0]['type'])))};break;case'listReversed':_0x32163e=_0x1edf26['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2f74b8={'type':'format','content':o(_0x422118,_0x32163e)};break;case'listStart':_0x32163e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2f74b8={'type':'format','content':o(_0x422118,_0x32163e,_0x1edf26['commandParams'][0x0]['startIndex'])};}return _0x2f74b8;});}['_getTranslationKeyForListStyle'](_0x15e87b){return'ELEMENT_'+function(_0x2aca5a){if(Se['includes'](_0x2aca5a))return'bulleted';if(_e['includes'](_0x2aca5a))return'numbered';return null;}(_0x15e87b)['toUpperCase']()+'_LIST_'+_0x15e87b['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x2611d7{['afterInit'](){const _0x22ef2d=this['editor'];_0x22ef2d['commands']['get']('emoji')&&_0x22ef2d['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x2611d7{static get['requires'](){return[_0x24130e];}['init'](){const _0x103e6c=this['editor'],_0x4015cd=_0x103e6c['plugins']['get']('TrackChangesEditing'),_0x236539=_0x103e6c['commands']['get']('enter');_0x4015cd['enableCommand']('enter',()=>{_0x103e6c['model']['change'](_0x75a60e=>{const _0x476f34=_0x103e6c['model']['document']['selection'],_0x18a3b0=_0x476f34['getFirstPosition'](),_0x4a61ee=_0x1c65a2['fromRange'](_0x476f34['getFirstRange']());if(_0x236539['enterBlock'](_0x75a60e)){const _0x3a35c2=_0x103e6c['model']['createPositionAt'](_0x18a3b0['parent']['nextSibling'],0x0),_0x331795=_0x75a60e['createRange'](_0x18a3b0,_0x3a35c2);_0x4015cd['markInsertion'](_0x331795);}else _0x75a60e['setSelection'](_0x75a60e['createRange'](_0x4a61ee['end']));_0x4a61ee['detach'](),_0x236539['fire']('afterExecute',{'writer':_0x75a60e});});}),_0x103e6c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x103e6c,'split'),{'priority':'high'}),_0x103e6c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5a9a06,_0x552b8b,_0x6677c4)=>{const _0x292115=_0x6677c4['mapper']['markerNameToElements'](_0x552b8b['markerName']);if(_0x292115){for(const _0x8ebe0b of _0x292115)_0x8ebe0b['hasClass']('ck-suggestion-marker-split')&&(_0x6677c4['mapper']['unbindElementFromMarkerName'](_0x8ebe0b,_0x552b8b['markerName']),_0x6677c4['writer']['remove'](_0x8ebe0b));}},{'priority':'high'}),_0x103e6c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x43a494,_0x3a76de,_0x1e53ee)=>{_0x1e53ee['options']['showSuggestionHighlights']&&De(_0x103e6c,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x43a494,_0x3a76de,_0x1e53ee);},{'priority':'high'});}}class Q extends _0x2611d7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1d014c=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d014c['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1d014c['enableCommand']('findNext'),_0x1d014c['enableCommand']('findPrevious'),_0x1d014c['enableCommand']('replace'),_0x1d014c['enableCommand']('replaceAll');}['handleFindCommand'](_0x389ec1,_0x295529,_0x1eb827={}){const _0x52441a=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x389ec1(_0x580ca8=>{let _0x483716=('string'==typeof _0x295529?_0x52441a['findByTextCallback'](_0x295529,_0x1eb827):_0x295529)(_0x580ca8);Array['isArray'](_0x483716)&&(_0x483716={'results':_0x483716,'searchText':'string'==typeof _0x295529?_0x295529:''});const _0x287761=_0x483716['results']['filter'](_0x5bb0a9=>!0x1===this['_isInDeletionRange'](_0x5bb0a9,_0x580ca8['item']));return{..._0x483716,'results':_0x287761};},_0x1eb827);}['_isInDeletionRange'](_0x3b1453,_0x5ac104){const _0x17bd90=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5ac104,_0x3b1453['start']),this['editor']['model']['createPositionAt'](_0x5ac104,_0x3b1453['end']));for(const _0x102f49 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x17bd90['getIntersection'](_0x102f49['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x2611d7{['afterInit'](){const _0x5644e9=this['editor']['locale'],_0x4939de=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x19d8b4,commandName:_0x5c7f00}of eo)this['editor']['plugins']['has'](_0x19d8b4)&&(_0x4939de['enableDefaultAttributesIntegration'](_0x5c7f00),_0x4939de['registerInlineAttribute'](_0x5c7f00));_0x4939de['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5644e9,'FORMAT_FONT_SIZE')),_0x4939de['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5644e9,'FORMAT_FONT_FAMILY')),_0x4939de['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5644e9,'FORMAT_FONT_COLOR')),_0x4939de['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5644e9,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55eb5f=this['editor'],_0x23e8a7=_0x55eb5f['locale'];_0x55eb5f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x64f1d7=>{const _0x12c8a7=_0x23e8a7['t'];if('formatInline'!=_0x64f1d7['type'])return;const {data:_0x2d17ae}=_0x64f1d7;if(null!=_0x2d17ae){if('fontSize'==_0x2d17ae['commandName']){const _0x147325=_0x2d17ae['commandParams'][0x0]['value'];if(_0x147325){const _0x158e73=_0x12c8a7(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2a88cd=>_0x2a88cd['model']==_0x147325)['title'])['toLowerCase']();return{'type':'format','content':o(_0x23e8a7,'*Set\x20font\x20size:*\x20%0',_0x158e73)};}return{'type':'format','content':o(_0x23e8a7,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2d17ae['commandName']){const _0x311e4a=_0x2d17ae['commandParams'][0x0]['value'];return _0x311e4a?{'type':'format','content':o(_0x23e8a7,'*Set\x20font\x20family:*\x20%0',_0x311e4a)}:{'type':'format','content':o(_0x23e8a7,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2d17ae['commandName']){const _0x440d1e=_0x2d17ae['commandParams'][0x0]['value'];if(_0x440d1e){const _0x3ac93f=_0x46a7b8(this['editor']['config']['get']('fontColor.colors'))['find'](_0x203633=>_0x203633['model']==_0x440d1e);let _0x223dba=_0x440d1e,_0x4f51e3='';return _0x3ac93f&&(_0x223dba=_0x3ac93f['label'],_0x4f51e3=_0x12c8a7(_0x223dba)['toLowerCase']()),{'type':'format','content':o(_0x23e8a7,'*Set\x20font\x20color:*\x20%0',_0x4f51e3)['trim'](),'color':{'value':_0x440d1e,'title':_0x4f51e3||_0x223dba}};}return{'type':'format','content':o(_0x23e8a7,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2d17ae['commandName']){const _0x22428a=_0x2d17ae['commandParams'][0x0]['value'];if(_0x22428a){const _0x1f1c7f=_0x46a7b8(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x369185=>_0x369185['model']==_0x22428a);let _0x26637b=_0x22428a,_0x14f874='';return _0x1f1c7f&&(_0x26637b=_0x1f1c7f['label'],_0x14f874=_0x12c8a7(_0x26637b)['toLowerCase']()),{'type':'format','content':o(_0x23e8a7,'*Set\x20font\x20background\x20color:*\x20%0',_0x14f874)['trim'](),'color':{'value':_0x22428a,'title':_0x14f874||_0x26637b}};}return{'type':'format','content':o(_0x23e8a7,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x2611d7{['afterInit'](){const _0x3539c7=this['editor'],_0x29730c=_0x3539c7['plugins']['get']('TrackChangesEditing'),_0xb1af57=_0x3539c7['commands']['get']('copyFormat'),_0x3b1959=_0x3539c7['commands']['get']('pasteFormat');_0xb1af57&&_0x3b1959&&(_0x29730c['enableDefaultAttributesIntegration']('pasteFormat'),_0x29730c['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x131fe6=this['editor'],_0x112be2=_0x131fe6['locale'];_0x131fe6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44339e=>{if('formatBlock'!=_0x44339e['type']&&'formatInline'!=_0x44339e['type'])return;const {data:_0x28a873}=_0x44339e;if(_0x28a873&&'pasteFormat'===_0x28a873['commandName']){const _0x424c24=[],_0x702259=_0x28a873['commandParams'][0x0];for(const [_0x3a2fc3,_0x3dbf8b]of Object['entries'](_0x702259))_0x424c24['push'](ro(_0x131fe6,_0x3a2fc3,_0x3dbf8b));return _0x424c24['length']?{'type':'format','content':o(_0x112be2,'*Set\x20format\x20to:*\x20%0',_0x424c24['join'](',\x20'))}:{'type':'format','content':o(_0x112be2,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x3133d4,_0x28baef,_0x49193d){const _0x26009f=_0x3133d4['locale']['t'],_0x5b1aeb=_0x28baef['split'](/(?=[A-Z])/)['join']('\x20'),_0x879bf2=_0x26009f(_0x5b1aeb['charAt'](0x0)['toUpperCase']()+_0x5b1aeb['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x49193d)return _0x879bf2;if('fontColor'===_0x28baef||'fontBackgroundColor'===_0x28baef){const _0x305737=_0x46a7b8(_0x3133d4['config']['get']('fontColor.colors'))['find'](_0x4f128b=>_0x4f128b['model']==_0x49193d);return _0x879bf2+'\x20('+(_0x305737?_0x26009f(_0x305737['label'])['toLowerCase']():_0x49193d)+')';}if('fontSize'===_0x28baef&&isNaN(parseFloat(_0x49193d))){const _0x5d4283=_0x3133d4['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3133d4['config']['get']('fontSize.options'))['find'](_0x1d1523=>_0x1d1523['model']==_0x49193d);return _0x879bf2+'\x20('+(_0x5d4283?_0x26009f(_0x5d4283['title'])['toLowerCase']():_0x49193d)+')';}return _0x879bf2+'\x20('+_0x49193d+')';}class Z extends _0x2611d7{['_headingOptions'];['afterInit'](){const _0x1615b3=this['editor'];if(!_0x1615b3['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1615b3['config']['get']('heading.options');const _0x1f8b91=_0x1615b3['locale'],_0x218781=_0x1615b3['plugins']['get']('TrackChangesEditing');_0x218781['enableDefaultAttributesIntegration']('heading');for(const _0xaf2715 of this['_headingOptions'])'paragraph'!=_0xaf2715['model']&&_0x218781['descriptionFactory']['registerElementLabel'](_0xaf2715['model'],_0x599af4=>{const _0x5c54c2=this['_getHeadingLevel'](_0xaf2715['model']);return null!==_0x5c54c2?_0x1ea112(_0x599af4,_0x5c54c2):_0x405bd5(_0x599af4,_0xaf2715['title']);});function _0x1ea112(_0x5f6de9,_0x392d59){return o(_0x1f8b91,'ELEMENT_HEADING',[_0x5f6de9,_0x392d59]);}function _0x405bd5(_0xf60a13,_0xc5019c){return o(_0x1f8b91,'ELEMENT_HEADING_CUSTOM',[_0xf60a13,_0xc5019c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f08a6=this['editor'],_0x455529=_0x3f08a6['locale'];function _0x4f03c8(_0x16aa5f,_0x2f841c){return o(_0x455529,'ELEMENT_HEADING_CUSTOM',[_0x16aa5f,_0x2f841c]);}_0x3f08a6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x429d28=>{if('formatBlock'!=_0x429d28['type'])return;const {data:_0x280f03}=_0x429d28;if(_0x280f03&&'heading'==_0x280f03['commandName']){const _0x5b1770=_0x280f03['commandParams'][0x0]['value'],_0x47a866=this['_getHeadingLevel'](_0x5b1770);if(null!==_0x47a866)return{'type':'format','content':o(_0x455529,'*Change\x20to:*\x20%0',(_0x1b353a=0x1,_0x2f8659=_0x47a866,o(_0x455529,'ELEMENT_HEADING',[_0x1b353a,_0x2f8659])))};const _0x4f6b86=this['_headingOptions']['find'](_0x5c766e=>_0x5c766e['model']===_0x5b1770)['title'];return{'type':'format','content':o(_0x455529,'*Change\x20to:*\x20%0',_0x4f03c8(0x1,_0x4f6b86))};}var _0x1b353a,_0x2f8659;});}['_getHeadingLevel'](_0x581d97){const _0x4fe6a0=_0x581d97['match'](/^heading(\d+)/);if(_0x4fe6a0)return _0x4fe6a0[0x1];const _0x320834=this['_headingOptions']?.['find'](_0x1a630b=>_0x1a630b['model']==_0x581d97);if(_0x320834&&_0x320834['view']){const _0x1c0650=_0x320834['view'],_0x1f0894=(_0x1c0650['name']??_0x1c0650)['match'](/^h(\d+)/);if(_0x1f0894)return _0x1f0894[0x1];}return null;}}class tt extends _0x2611d7{['afterInit'](){const _0x19acbd=this['editor'];if(!_0x19acbd['plugins']['has']('HighlightEditing'))return;const _0x52d665=_0x19acbd['plugins']['get']('TrackChangesEditing'),_0x445e34=_0x19acbd['locale'];_0x52d665['enableDefaultAttributesIntegration']('highlight'),_0x52d665['registerInlineAttribute']('highlight'),_0x52d665['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x445e34,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53db84=this['editor'],_0x1cb3fe=_0x53db84['locale'];_0x53db84['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x583d5e=>{if('formatInline'!=_0x583d5e['type'])return;const {data:_0x14cbbc}=_0x583d5e;if(_0x14cbbc&&'highlight'==_0x14cbbc['commandName']){const _0x518448=_0x1cb3fe['t'],_0x5c8686=_0x14cbbc['commandParams'][0x0]['value'];if(_0x5c8686){const _0x4fd17f=_0x53db84['config']['get']('highlight.options')['find'](_0x138422=>_0x138422['model']==_0x5c8686),_0x6d720e=_0x518448(_0x4fd17f['title'])['toLowerCase']();return{'type':'format','content':o(_0x1cb3fe,'*Set\x20highlight:*\x20%0',_0x6d720e),'color':{'value':_0x4fd17f['color'],'title':_0x4fd17f['title']}};}return{'type':'format','content':o(_0x1cb3fe,'*Remove\x20highlight*',o(_0x1cb3fe,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x2611d7{['afterInit'](){const _0x22b2b8=this['editor'];if(!_0x22b2b8['plugins']['has']('HorizontalLineEditing'))return;_0x22b2b8['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x59b94e=_0x22b2b8['plugins']['get']('TrackChangesEditing'),_0x35aec0=_0x22b2b8['locale'];_0x59b94e['descriptionFactory']['registerElementLabel']('horizontalLine',_0x436104=>o(_0x35aec0,'ELEMENT_HORIZONTAL_LINE',_0x436104)),_0x22b2b8['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x32cd27,{writer:_0xcb6c24,options:_0x73942})=>{if(!_0x73942['showSuggestionHighlights'])return null;const _0x2029ac=_0xcb6c24['createContainerElement']('div'),_0xac71f9=_0xcb6c24['createEmptyElement']('hr');return _0xcb6c24['addClass']('ck-horizontal-line',_0x2029ac),_0xcb6c24['insert'](_0xcb6c24['createPositionAt'](_0x2029ac,0x0),_0xac71f9),_0x2029ac;},'converterPriority':'high'});}}class nt extends _0x2611d7{['afterInit'](){const _0x3eaef0=this['editor'];if(!_0x3eaef0['plugins']['has']('HtmlEmbed'))return;const _0x4260f7=_0x3eaef0['plugins']['get']('TrackChangesEditing'),_0x804197=_0x3eaef0['locale'];_0x4260f7['descriptionFactory']['registerElementLabel']('rawHtml',_0x5d48a1=>o(_0x804197,'ELEMENT_HTML_EMBED',_0x5d48a1)),_0x4260f7['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4260f7['registerBlockAttribute']('value'),_0x4260f7['descriptionFactory']['registerDescriptionCallback'](_0x32aeb4=>{if('attribute'!=_0x32aeb4['type'])return;const {data:_0x3215be}=_0x32aeb4;if(_0x3215be&&'value'==_0x3215be['key']&&_0x32aeb4['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2ceaa1=o(_0x804197,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x804197,'*Change\x20%0\x20content*',_0x2ceaa1)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x357535=this['editor'],_0x524de1=_0x357535['locale'];_0x357535['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fd8c5=>{if('formatBlock'!=_0x4fd8c5['type'])return;const {data:_0x19e068}=_0x4fd8c5;if(_0x19e068&&'htmlEmbed'==_0x19e068['commandName']){const _0x41e07a=o(_0x524de1,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x524de1,'*Change\x20%0\x20content*',_0x41e07a)};}});}}class et extends _0x2611d7{['afterInit'](){const _0x27e36c=this['editor'];if(!_0x27e36c['plugins']['has']('ImageEditing'))return;const _0x57838d=_0x27e36c['plugins']['get']('TrackChangesEditing'),_0x27602d=_0x27e36c['plugins']['get']('ImageUtils'),_0x3affad=_0x27e36c['locale'];_0x57838d['enableCommand']('insertImage'),_0x57838d['descriptionFactory']['registerElementLabel']('imageBlock',_0x518d7c=>o(_0x3affad,'ELEMENT_IMAGE',_0x518d7c)),_0x57838d['descriptionFactory']['registerElementLabel']('imageInline',_0x1ab91d=>o(_0x3affad,'ELEMENT_INLINE_IMAGE',_0x1ab91d)),_0x57838d['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3affad,'ELEMENT_CAPTION')),_0x27e36c['plugins']['has']('ImageUploadEditing')&&_0x57838d['enableCommand']('uploadImage'),_0x27e36c['plugins']['has']('ImageBlockEditing')&&_0x27e36c['plugins']['has']('ImageInlineEditing')&&(_0x57838d['enableCommand']('imageTypeInline',(_0x298989,_0x1e0ce9)=>{const _0x21fcb2=_0x27602d['getClosestSelectedImageElement'](_0x27e36c['model']['document']['selection']);_0x27e36c['model']['change'](()=>{_0x57838d['markBlockFormat'](_0x21fcb2,{'commandName':'imageTypeInline','commandParams':[_0x1e0ce9]},[],'convertBlockImageToInline');});}),_0x57838d['enableCommand']('imageTypeBlock',(_0x4ee0cd,_0x8ed992)=>{_0x27e36c['model']['change'](_0x18e989=>{let _0xc0347=_0x27602d['getClosestSelectedImageElement'](_0x27e36c['model']['document']['selection']),_0x40ccc7=_0x18e989['createRangeOn'](_0xc0347);const _0x4c8ddf=_0x5c4faf['fromPosition'](_0x40ccc7['start'],'toPrevious'),_0x107c28=_0x5c4faf['fromPosition'](_0x40ccc7['end'],'toNext');_0x57838d['forceDefaultExecution'](()=>_0x4ee0cd(_0x8ed992)),_0xc0347=_0x27602d['getClosestSelectedImageElement'](_0x27e36c['model']['document']['selection']),_0x40ccc7=_0x18e989['createRangeOn'](_0xc0347);const _0x9d120b=_0x18e989['createRange'](_0x4c8ddf,_0x107c28);_0x4c8ddf['detach'](),_0x107c28['detach'](),_0x57838d['markBlockFormat'](_0xc0347,{'commandName':'imageTypeInline','commandParams':[_0x8ed992]},[],'convertInlineImageToBlock'),_0x9d120b['start']['isBefore'](_0x40ccc7['start'])&&_0x57838d['markInsertion'](_0x18e989['createRange'](_0x9d120b['start'],_0x40ccc7['start']),'convertInlineImageToBlock'),_0x40ccc7['end']['isBefore'](_0x9d120b['end'])&&_0x57838d['markInsertion'](_0x18e989['createRange'](_0x40ccc7['end'],_0x9d120b['end']),'convertInlineImageToBlock');});}),_0x57838d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x57838d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x57838d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x57838d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x57838d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x57838d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4aec32])=>{const _0x4b0a72=_0x57838d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5d5b0a=_0x4aec32['start'],_0x24affb=_0x4aec32['end'];const _0x53eb28=_0x27e36c['model']['schema']['getNearestSelectionRange'](_0x5d5b0a,'backward'),_0x18158a=_0x27e36c['model']['schema']['getNearestSelectionRange'](_0x24affb,'forward');_0x53eb28['isCollapsed']&&(_0x5d5b0a=_0x53eb28['start']),_0x18158a['isCollapsed']&&(_0x24affb=_0x18158a['end']),_0x4b0a72([_0x27e36c['model']['createRange'](_0x5d5b0a,_0x24affb)]);}),_0x57838d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x294b8b),_0x57838d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x294b8b)),_0x27e36c['plugins']['has']('ImageCaptionEditing')&&(_0x57838d['enableCommand']('toggleImageCaption',(_0x39868a,_0x2eda30)=>{const _0x85a111=_0x27e36c['plugins']['get']('ImageCaptionUtils');let _0x404546=_0x27602d['getClosestSelectedImageElement'](_0x27e36c['model']['document']['selection']),_0x4504b1=_0x85a111['getCaptionFromImageModelElement'](_0x404546);_0x27e36c['model']['change'](()=>{if(_0x4504b1)return void _0x57838d['markDeletion'](_0x27e36c['model']['createRangeOn'](_0x4504b1));const _0x3da53b=_0x27602d['isBlockImage'](_0x404546);_0x39868a(_0x2eda30),_0x404546=_0x27602d['getClosestSelectedImageElement'](_0x27e36c['model']['document']['selection']),_0x4504b1=_0x85a111['getCaptionFromImageModelElement'](_0x404546),_0x57838d['markInsertion'](_0x27e36c['model']['createRangeOn'](_0x4504b1),_0x3da53b?null:'imageCaption');});}),_0x57838d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x294b8b));const _0x457e1a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3fdc23(_0x3a4c33,_0xa667a2){const _0x5a058c=_0x457e1a['findIndex'](({type:_0x5ec977,subType:_0x52105a})=>_0x3a4c33['type']==_0x5ec977&&_0x3a4c33['subType']==_0x52105a),_0x1d8b2b=_0x457e1a['findIndex'](({type:_0x4e72f7,subType:_0x549c1a})=>_0xa667a2['type']==_0x4e72f7&&_0xa667a2['subType']==_0x549c1a);if(_0x5a058c<0x0||_0x1d8b2b<0x0)return!0x1;const _0x39d02d=_0x3a4c33['getFirstRange'](),_0x2044f7=_0xa667a2['getFirstRange']();if((0x0==_0x5a058c||0x1==_0x5a058c)&&0x2==_0x1d8b2b&&_0x39d02d['isIntersecting'](_0x2044f7))return!0x0;if(0x2==_0x5a058c&&0x3==_0x1d8b2b){const _0x37917c=_0x57838d['_findSuggestions'](_0x39d02d,'insertion')['filter'](({suggestion:_0x56a347,meta:_0x4ab02a})=>_0x4ab02a['isOwn']&&'convertInlineImageToBlock'==_0x56a347['subType']);if(_0x37917c['length']>0x1&&_0x2044f7['end']['isEqual'](_0x39d02d['start']))return!0x0;if(0x1==_0x37917c['length']&&(_0x39d02d['start']['isEqual'](_0x2044f7['end'])||_0x39d02d['end']['isEqual'](_0x2044f7['start'])))return!0x0;}if(0x3==_0x5a058c&&0x3==_0x1d8b2b&&_0x39d02d['start']['isBefore'](_0x2044f7['start'])){const _0x1db2b2=_0x39d02d['end']['nodeAfter'],_0x1e2158=_0x2044f7['start']['nodeBefore'];return _0x27602d['isBlockImage'](_0x1db2b2)&&_0x1db2b2===_0x1e2158;}return!0x1;}function _0x294b8b(_0xfec8e9,_0x5742c3){return _0x3fdc23(_0xfec8e9,_0x5742c3)?[_0xfec8e9,_0x5742c3]:_0x3fdc23(_0x5742c3,_0xfec8e9)?[_0x5742c3,_0xfec8e9]:null;}_0x27e36c['plugins']['has']('ImageResize')&&(_0x57838d['enableDefaultAttributesIntegration']('resizeImage'),_0x57838d['registerBlockAttribute']('resizedWidth'),_0x57838d['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3affad,'FORMAT_IMAGE_SIZE'))),_0x27e36c['plugins']['has']('ImageTextAlternativeEditing')&&(_0x57838d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x57838d['registerBlockAttribute']('alt')),_0x27e36c['plugins']['has']('PictureEditing')&&(_0x57838d['registerBlockAttribute']('sources'),_0x57838d['descriptionFactory']['registerDescriptionCallback'](_0x4075f4=>{if('attribute'!=_0x4075f4['type'])return;const {data:_0x384386}=_0x4075f4;return _0x384386&&'sources'==_0x384386['key']?{'type':'format','content':''}:void 0x0;})),_0x27e36c['plugins']['has']('ImageSizeAttributes')&&(_0x57838d['registerBlockAttribute']('width'),_0x57838d['registerBlockAttribute']('height'),_0x57838d['descriptionFactory']['registerDescriptionCallback'](_0x377240=>{if('attribute'!=_0x377240['type'])return;const {data:_0x4c9b2a}=_0x377240;return!_0x4c9b2a||'width'!=_0x4c9b2a['key']&&'height'!=_0x4c9b2a['key']?void 0x0:{'type':'format','content':''};})),_0x57838d['descriptionFactory']['registerDescriptionCallback'](_0x19462c=>{if(!!_0x457e1a['find'](({type:_0x2540b0,subType:_0x2e884d})=>_0x19462c['type']==_0x2540b0&&_0x19462c['subType']==_0x2e884d))return _0x19462c['previous']?{}:void 0x0;}),_0x57838d['descriptionFactory']['registerDescriptionCallback'](_0x399723=>{if('insertion'==_0x399723['type']||'deletion'==_0x399723['type']){const _0x1d1a4c=_0x399723['getContainedElement']();if(_0x1d1a4c&&_0x1d1a4c['is']('element','caption'))return{'type':'insertion'==_0x399723['type']?'addObject':'removeObject','element':_0x1d1a4c,'quantity':0x1};}}),_0x57838d['descriptionFactory']['registerDescriptionCallback'](_0x2269ae=>'formatBlock'==_0x2269ae['type']&&'convertInlineImageToBlock'==_0x2269ae['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2269ae['type']&&'convertBlockImageToInline'==_0x2269ae['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x57838d['descriptionFactory']['registerDescriptionCallback'](_0x1985b9=>{if('attribute'!=_0x1985b9['type'])return;const {data:_0x1dddbe}=_0x1985b9;if(!_0x1dddbe||'alt'!=_0x1dddbe['key'])return;const _0x1e61fd=_0x1dddbe['newValue'];return _0x1e61fd?{'type':'format','content':o(_0x3affad,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1e61fd+'\x22')}:{'type':'format','content':o(_0x3affad,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5024d7=this['editor'],_0x3f52ab=_0x5024d7['locale'];_0x5024d7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x66880e=>{if('formatBlock'!=_0x66880e['type']&&'formatInline'!=_0x66880e['type'])return;const {data:_0x2daed9}=_0x66880e;if(_0x2daed9){if('imageTextAlternative'==_0x2daed9['commandName']){const _0x5c6195=_0x2daed9['commandParams'][0x0]['newValue'];return _0x5c6195?{'type':'format','content':o(_0x3f52ab,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5c6195+'\x22')}:{'type':'format','content':o(_0x3f52ab,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2daed9['commandName']){const _0x1d706f=_0x2daed9['commandParams'][0x0]['width'];return _0x1d706f?{'type':'format','content':o(_0x3f52ab,'*Set\x20image\x20width:*\x20%0',_0x1d706f)}:{'type':'format','content':o(_0x3f52ab,'*Reset\x20image\x20width*')};}}});}}class st extends _0x2611d7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x50cdd0=this['editor']['locale'],_0x43df20=this['editor']['plugins']['get']('TrackChangesEditing');_0x43df20['enableDefaultAttributesIntegration']('replaceImageSource'),_0x43df20['registerBlockAttribute']('src'),_0x43df20['descriptionFactory']['registerDescriptionCallback'](_0x416a45=>{if('attribute'!=_0x416a45['type'])return;const {data:_0x42f471}=_0x416a45;return _0x42f471&&'src'==_0x42f471['key']?_0x42f471['newValue']&&_0x42f471['oldValue']?{'type':'format','content':o(_0x50cdd0,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1a2cdc=this['editor']['plugins']['get']('TrackChangesEditing');_0x1a2cdc['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1a2cdc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1a2cdc['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1a2cdc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc97b70=this['editor'],_0x5737dd=_0xc97b70['locale'];_0xc97b70['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x178a6c=>{if('formatBlock'!=_0x178a6c['type']&&'formatInline'!=_0x178a6c['type'])return;const {data:_0x43980f}=_0x178a6c;if(!_0x43980f||'replaceImageSource'!=_0x43980f['commandName'])return;return{'type':'format','content':o(_0x5737dd,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x2611d7{['afterInit'](){const _0x12e621=this['editor'];if(!_0x12e621['plugins']['has']('ImageStyleEditing'))return;const _0x18c791=_0x12e621['plugins']['get']('TrackChangesEditing'),_0x1841ad=_0x12e621['plugins']['get']('ImageUtils'),_0x1e6129={};_0x18c791['enableCommand']('imageStyle',(_0x183b15,_0x136674)=>{const _0x4efe8b=_0x12e621['plugins']['get']('Users')['me'],_0x210caf=_0x12e621['commands']['get']('imageStyle');let _0x491d3b=_0x1841ad['getClosestSelectedImageElement'](_0x12e621['model']['document']['selection']),_0x25faf8=_0x12e621['model']['createRangeOn'](_0x491d3b),_0x1b2fda=_0x210caf['value'];if(_0x1b2fda==_0x136674['value'])return;const _0x276372={'commandName':'imageStyle','commandParams':[_0x136674],'formatGroupId':_0x924ea4()};_0x12e621['model']['change'](()=>{if(_0x18c791['getSuggestions']()['filter'](_0xab0d3f=>_0xab0d3f['isInContent']&&_0x4efe8b==_0xab0d3f['author']&&('formatBlock'==_0xab0d3f['type']||'formatInline'==_0xab0d3f['type'])&&('imageStylePreApply'==_0xab0d3f['subType']||'imageStylePostApply'==_0xab0d3f['subType'])&&_0xab0d3f['getFirstRange']()['isEqual'](_0x25faf8))['forEach'](_0x10f10e=>_0x18c791['discardSuggestion'](_0x10f10e['head'])),_0x491d3b=_0x1841ad['getClosestSelectedImageElement'](_0x12e621['model']['document']['selection']),_0x25faf8=_0x12e621['model']['createRangeOn'](_0x491d3b),_0x210caf['refresh'](),_0x12e621['commands']['get']('imageTypeInline')['refresh'](),_0x12e621['commands']['get']('imageTypeBlock')['refresh'](),_0x1b2fda=_0x210caf['value'],_0x1b2fda!=_0x136674['value'])return _0x1841ad['isInlineImage'](_0x491d3b)&&_0x210caf['shouldConvertImageType'](_0x136674['value'],_0x491d3b)?(_0x183b15({..._0x136674,'setImageSizes':!0x1}),_0x491d3b=_0x1841ad['getClosestSelectedImageElement'](_0x12e621['model']['document']['selection']),void _0x18c791['markBlockFormat'](_0x491d3b,{..._0x276372,'commandReversedParams':[{'value':_0x1b2fda||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1841ad['isBlockImage'](_0x491d3b)?_0x18c791['markBlockFormat'](_0x491d3b,_0x276372,[],'imageStylePostApply'):_0x18c791['markInlineFormat'](_0x25faf8,_0x276372,'imageStylePostApply'));});});for(const _0x2708fd of _0x12e621['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1e6129[_0x2708fd['name']]=_0x2708fd['title']['toLowerCase']();_0x18c791['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x18c791['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x18c791['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x18c791['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2c2661])=>{_0x1841ad['setImageNaturalSizeAttributes'](_0x2c2661['getContainedElement']());}),_0x18c791['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x37b381,_0x18f5ca)=>{_0x18c791['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x37b381,{'commandName':_0x18f5ca['commandName'],'commandParams':_0x18f5ca['commandReversedParams']});}),_0x18c791['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x88c9fc,_0xfbf273){if(_0x45549d(_0x88c9fc,_0xfbf273))return[_0x88c9fc,_0xfbf273];if(_0x45549d(_0xfbf273,_0x88c9fc))return[_0xfbf273,_0x88c9fc];return null;});const _0x41157f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x45549d(_0x2902bc,_0x20955f){const _0x32e6a8=_0x41157f['findIndex'](({type:_0x366f53,subType:_0x3762bf})=>_0x2902bc['type']==_0x366f53&&_0x2902bc['subType']==_0x3762bf),_0x5c3399=_0x41157f['findIndex'](({type:_0x376ad7,subType:_0x4fb9c0})=>_0x20955f['type']==_0x376ad7&&_0x20955f['subType']==_0x4fb9c0);if(_0x32e6a8<0x0||_0x5c3399<0x0)return!0x1;const _0x4efc4d=_0x2902bc['getFirstRange'](),_0x2964cd=_0x20955f['getFirstRange']();if((0x0==_0x32e6a8||0x1==_0x32e6a8)&&0x2==_0x5c3399&&_0x4efc4d['isIntersecting'](_0x2964cd))return!0x0;if(0x2==_0x32e6a8&&0x3==_0x5c3399){const _0x50353d=_0x18c791['_findSuggestions'](_0x4efc4d,'insertion')['filter'](({suggestion:_0x594b17,meta:_0x1b736b})=>_0x1b736b['isOwn']&&'convertInlineImageToBlock'==_0x594b17['subType']);if(_0x50353d['length']>0x1&&_0x2964cd['end']['isEqual'](_0x4efc4d['start']))return!0x0;if(0x1==_0x50353d['length']&&(_0x4efc4d['start']['isEqual'](_0x2964cd['end'])||_0x4efc4d['end']['isEqual'](_0x2964cd['start'])))return!0x0;}if(0x3==_0x32e6a8&&0x3==_0x5c3399&&_0x4efc4d['start']['isBefore'](_0x2964cd['start'])){const _0x23ebb4=_0x4efc4d['end']['nodeAfter'],_0x434e4a=_0x2964cd['start']['nodeBefore'];return _0x1841ad['isBlockImage'](_0x23ebb4)&&_0x23ebb4===_0x434e4a;}return!0x1;}_0x12e621['model']['document']['registerPostFixer'](()=>{let _0x59c640=!0x1;const _0x2a02d2=Array['from'](_0x12e621['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3c3d07,data:_0x31044f}of _0x2a02d2){const {group:_0x53ba58,type:_0x12166f,subType:_0x493cea,id:_0x1c5f9b}=_0x18c791['_splitMarkerName'](_0x3c3d07);if('suggestion'==_0x53ba58&&_0x18c791['hasSuggestion'](_0x1c5f9b)){if('formatBlock'==_0x12166f&&('imageStylePreApply'==_0x493cea||'imageStylePostApply'==_0x493cea)){const _0x203a1b=_0x18c791['getSuggestion'](_0x1c5f9b);if(_0x31044f['newRange']){const _0x5c04ec=_0x203a1b['getFirstRange']()['getContainedElement']();if(_0x1841ad['isBlockImage'](_0x5c04ec))continue;_0x18c791['discardSuggestion'](_0x203a1b),_0x59c640=!0x0;}}if('insertion'==_0x12166f&&'imageCaption'==_0x493cea&&!_0x31044f['newRange']){const _0x3b69ce=_0x18c791['getSuggestion'](_0x1c5f9b);_0x3b69ce['next']&&_0x3b69ce['next']['isInContent']&&(_0x18c791['discardSuggestion'](_0x3b69ce['next']),_0x59c640=!0x0);}}}return _0x59c640;}),this['_registerLegacyDescription'](_0x1e6129);}['_registerLegacyDescription'](_0x246edf){const _0x700ec5=this['editor'],_0x15693c=_0x700ec5['locale'];_0x700ec5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x194b37=>{if('formatBlock'!=_0x194b37['type']&&'formatInline'!=_0x194b37['type'])return;const {data:_0xfcff44}=_0x194b37;if(!_0xfcff44||'imageStyle'!=_0xfcff44['commandName'])return;const _0x116ce7=_0xfcff44['commandParams'][0x0]['value'];return _0x5b5cce('side'===_0x116ce7?o(_0x15693c,'FORMAT_SIDE_IMAGE'):_0x246edf[_0x116ce7]||_0x116ce7);function _0x5b5cce(_0x1434c7){return{'type':'format','content':o(_0x15693c,'*Format:*\x20%0',_0x1434c7)};}});}}class rt extends _0x2611d7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x35e13b){super(_0x35e13b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x135722=this['editor'],_0x4c92fe=_0x135722['commands']['get']('importWord'),_0xa236b9=_0x135722['commands']['get']('trackChanges');_0x4c92fe&&(_0x4c92fe['on']('execute',(_0x443191,[,_0x3e5218])=>{this['_trackChangesValueDuringImport']=_0xa236b9['value'],_0x3e5218['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4c92fe,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4c92fe,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xa236b9['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x135722['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x471830,_0x8f32b3){const {suggestions:_0x230bec}=_0x8f32b3,_0x590e31=this['editor']['commands']['get']('trackChanges'),_0x1c9bbf=_0x590e31['value'];this['_trackChangesValueDuringImport']!==_0x1c9bbf&&(_0x590e31['execute'](),this['_trackChangesExecuted']=!0x0),_0x230bec&&_0x230bec['forEach'](({id:_0x298b44,type:_0x1eecc1,author:_0x239777,created_at:_0x3a624f})=>{const _0x1601db={'id':_0x298b44,'type':_0x1eecc1,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x239777,'createdAt':_0x3a624f?new Date(_0x3a624f):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1601db);});}}class at extends _0x2611d7{['afterInit'](){const _0x5bfd25=this['editor'],_0x237a27=_0x5bfd25['plugins']['get']('TrackChangesEditing');if(_0x5bfd25['plugins']['has']('IndentEditing')&&(_0x237a27['enableCommand']('indent'),_0x237a27['enableCommand']('outdent')),_0x5bfd25['plugins']['has']('IndentBlock')){for(const _0x25b0ac of['indentBlock','outdentBlock'])_0x237a27['enableDefaultAttributesIntegration'](_0x25b0ac);}const _0x3787c8=_0x5bfd25['locale'];_0x237a27['registerBlockAttribute']('blockIndent'),_0x237a27['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x3787c8,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26aee0=this['editor'],_0x3bf9c1=_0x26aee0['locale'],_0x56a2fb=_0x26aee0['plugins']['get']('TrackChangesEditing');_0x56a2fb['descriptionFactory']['registerDescriptionCallback'](_0x12e04e=>{if('formatBlock'!=_0x12e04e['type'])return;const {data:_0x4c4ade}=_0x12e04e;if(!_0x4c4ade)return;if('indentBlock'!=_0x4c4ade['commandName']&&'outdentBlock'!=_0x4c4ade['commandName'])return;const _0x67015e=_0x12e04e['getItems']()[0x0],_0x224239=_0x56a2fb['descriptionFactory']['getItemLabel'](_0x67015e);return'indentBlock'==_0x4c4ade['commandName']?{'type':'format','content':o(_0x3bf9c1,'*Indent:*\x20%0',_0x224239)}:'outdentBlock'==_0x4c4ade['commandName']?{'type':'format','content':o(_0x3bf9c1,'*Outdent:*\x20%0',_0x224239)}:void 0x0;});}}class ct extends _0x2611d7{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x2611d7{['afterInit'](){const _0x51cadd=this['editor'];if(!_0x51cadd['plugins']['has']('LinkEditing'))return;const _0x4b7346=_0x51cadd['plugins']['get']('TrackChangesEditing'),_0x51b8d1=_0x51cadd['commands']['get']('link');_0x4b7346['enableDefaultAttributesIntegration']('link'),_0x4b7346['enableDefaultAttributesIntegration']('unlink'),_0x4b7346['registerInlineAttribute']('linkHref');for(const _0x51f59f of _0x51b8d1['manualDecorators'])_0x4b7346['registerInlineAttribute'](_0x51f59f['id']),_0x4b7346['descriptionFactory']['registerAttributeLabel'](_0x51f59f['id'],'link\x20('+_0x51f59f['label']['toLowerCase']()+')');_0x4b7346['descriptionFactory']['registerDescriptionCallback'](_0x187c40=>{if('attribute'!=_0x187c40['type'])return;const {data:_0x1a8ae0}=_0x187c40;if(!_0x1a8ae0||'linkHref'!=_0x1a8ae0['key'])return;const _0x5aae85=_0x1a8ae0['newValue'],_0x426fd7=_0x51cadd['locale'];return{'type':'format','content':null==_0x5aae85?o(_0x426fd7,'*Remove\x20link*'):o(_0x426fd7,'*Set\x20link:*\x20%0','\x22'+_0x5aae85+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2589c4=this['editor'],_0x1bc0dc=_0x2589c4['locale'];_0x2589c4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31edcd=>{if('formatInline'!=_0x31edcd['type'])return;const {data:_0x4db3fb}=_0x31edcd;if(_0x4db3fb){if('link'==_0x4db3fb['commandName']){const _0x5adcec=_0x4db3fb['commandParams'][0x0];return{'type':'format','content':o(_0x1bc0dc,'*Set\x20link:*\x20%0','\x22'+_0x5adcec+'\x22')};}return'unlink'==_0x4db3fb['commandName']?{'type':'format','content':o(_0x1bc0dc,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x2611d7{['afterInit'](){const _0x2b6a68=this['editor'],_0x48ceca=_0x2b6a68['locale'];if(!_0x2b6a68['plugins']['has']('LegacyListEditing'))return;const _0x46da04=_0x2b6a68['plugins']['get']('TrackChangesEditing'),_0x2e9575=_0x2b6a68['plugins']['has']('LegacyTodoListEditing');function _0x42df64(_0x158514){return()=>{const _0x26ca46=_0x2b6a68['model']['document']['selection'],_0x46631a=_0x2b6a68['commands']['get'](_0x158514);if(_0x46631a['value'])return void _0x2b6a68['execute']('paragraph',{});const _0x3b4b0a=_0x158514['slice'](0x0,-0x4),_0xc64ee4=function(_0x45ef1b,_0x5a81e9,_0x4926c6){let _0x11e706=Array['from'](_0x45ef1b)['filter'](_0x416ca3=>function(_0x266c1d,_0x139b70){return _0x139b70['checkChild'](_0x266c1d['parent'],'listItem')&&!_0x139b70['isObject'](_0x266c1d);}(_0x416ca3,_0x4926c6));_0x11e706=_0x11e706['filter'](_0x52d324=>!_0x52d324['is']('element','listItem')||_0x52d324['getAttribute']('listType')!=_0x5a81e9);const _0x430cfa=new Set();for(const _0x2ff2f8 of _0x11e706)_0x2ff2f8['is']('element','listItem')?_0x430cfa['add'](Le(_0x2ff2f8)):_0x430cfa['add'](_0x2ff2f8);return Array['from'](_0x430cfa);}(_0x26ca46['getSelectedBlocks'](),_0x3b4b0a,_0x2b6a68['model']['schema']);_0x2b6a68['model']['change'](()=>{for(const _0x3d9ba7 of _0xc64ee4)_0x46da04['markBlockFormat'](_0x3d9ba7,{'commandName':_0x158514,'commandParams':[{'forceValue':!_0x46631a['value']}],'formatGroupId':'blockName'},Ee(_0x3d9ba7));});};}function _0x376eab(_0x3caa08){return()=>{const _0x5d7841=function(_0x2ad776){let _0x31fe04=Array['from'](_0x2ad776);const _0x266c36=_0x31fe04['findIndex'](_0x1e03c0=>'listItem'!=_0x1e03c0['name']);return _0x266c36>-0x1&&(_0x31fe04=_0x31fe04['slice'](0x0,_0x266c36)),_0x31fe04;}(_0x2b6a68['model']['document']['selection']['getSelectedBlocks']()),_0x241e4b=_0x2b6a68['model']['createRange'](_0x2b6a68['model']['createPositionAt'](_0x5d7841[0x0],'before'),_0x2b6a68['model']['createPositionAt'](_0x5d7841[_0x5d7841['length']-0x1],'end'));_0x2b6a68['model']['change'](()=>{_0x46da04['markBlockFormat'](_0x241e4b,{'commandName':_0x3caa08,'commandParams':[],'formatGroupId':'listIndent'},function(_0x33e626){const _0x329f9a=new Set();for(const _0x4aa131 of _0x33e626){let _0x163016=_0x4aa131['nextSibling'];for(;_0x163016&&_0x163016['getAttribute']('listIndent')>_0x4aa131['getAttribute']('listIndent');)_0x329f9a['add'](_0x163016),_0x163016=_0x163016['nextSibling'];}return Array['from'](_0x329f9a);}(_0x5d7841));});};}_0x46da04['enableCommand']('numberedList',_0x42df64('numberedList')),_0x46da04['enableCommand']('bulletedList',_0x42df64('bulletedList')),_0x2e9575&&_0x46da04['enableCommand']('todoList',_0x42df64('todoList')),_0x46da04['enableCommand']('indentList',_0x376eab('indentList')),_0x46da04['enableCommand']('outdentList',_0x376eab('outdentList')),_0x2e9575&&_0x46da04['enableCommand']('checkTodoList',()=>{const _0x141e65=_0x2b6a68['commands']['get']('checkTodoList'),_0x158194=Array['from'](_0x141e65['_selectedElements']);_0x158194['filter'](_0x2502c8=>_0x2502c8['getAttribute']('todoListChecked')!=_0x141e65['value']),_0x2b6a68['model']['change'](()=>{for(const _0x2ec9fd of _0x158194)_0x46da04['markBlockFormat'](_0x2ec9fd,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x141e65['value']}]});});}),_0x46da04['descriptionFactory']['registerElementLabel']('listItem',_0x3bfa1d=>o(_0x48ceca,'ELEMENT_LIST_ITEM',_0x3bfa1d)),_0x46da04['descriptionFactory']['registerDescriptionCallback'](_0x45b430=>{if('formatBlock'!=_0x45b430['type']&&'formatInline'!=_0x45b430['type'])return;const {data:_0x4f4942}=_0x45b430;if(_0x4f4942){if('numberedList'==_0x4f4942['commandName']||'bulletedList'==_0x4f4942['commandName']||'todoList'==_0x4f4942['commandName'])switch(_0x4f4942['commandName']['replace']('List','')){case'bulleted':return _0x137730(o(_0x48ceca,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x137730(o(_0x48ceca,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x137730(o(_0x48ceca,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4f4942['commandName'])return{'type':'format','content':o(_0x48ceca,'*Indent:*\x20%0',o(_0x48ceca,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4f4942['commandName'])return{'type':'format','content':o(_0x48ceca,'*Outdent:*\x20%0',o(_0x48ceca,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4f4942['commandName'])return _0x4f4942['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x48ceca,'*Check\x20item*')}:{'type':'format','content':o(_0x48ceca,'*Uncheck\x20item*')};}function _0x137730(_0x149b2f){return{'type':'format','content':o(_0x48ceca,'*Change\x20to:*\x20%0',_0x149b2f)};}});}}function Le(_0x4fc6e3){const _0x395882=_0x4fc6e3['getAttribute']('listIndent');if(0x0==_0x395882)return _0x4fc6e3;let _0x374442=_0x4fc6e3;for(;_0x4fc6e3['previousSibling']&&_0x4fc6e3['previousSibling']['is']('element','listItem');){const _0x2a8281=_0x4fc6e3['previousSibling']['getAttribute']('listIndent');if(_0x2a8281==_0x395882)_0x374442=_0x4fc6e3['previousSibling'];else{if(_0x2a8281<_0x395882)break;}_0x4fc6e3=_0x4fc6e3['previousSibling'];}return _0x374442;}function Ee(_0x387349){const _0x457663=[];if(_0x387349['is']('element','listItem')&&_0x387349['getAttribute']('listIndent')>0x0){let _0x1549e1=_0x387349['nextSibling'];for(;_0x1549e1&&'listItem'==_0x1549e1['name']&&_0x1549e1['getAttribute']('listIndent')==_0x387349['getAttribute']('listIndent');)_0x457663['push'](_0x1549e1),_0x1549e1=_0x1549e1['nextSibling'];}return _0x457663;}class ht extends _0x2611d7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5550d4=this['editor']['config']['get']('list.properties'),_0x464cfe=this['editor']['plugins']['get']('TrackChangesEditing');_0x5550d4['styles']&&_0x464cfe['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5550d4['reversed']&&_0x464cfe['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5550d4['startIndex']&&_0x464cfe['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x464cfe['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5a0345,_0x48f905={}){const _0x373320=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e988c=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x373320['markMultiRangeBlockFormat'](_0x3e988c,{'commandName':'listStyle','commandParams':[{'type':_0x48f905['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2ad491,_0x10ab06={}){const _0x2576f3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x333f07=this['_getSuggestionBlocks'](_0x41e51f=>_0x41e51f['is']('element','listItem')&&'numbered'===_0x41e51f['getAttribute']('listType'));if(_0x333f07['length']<0x1)return;const _0x418747=_0x333f07['map'](_0x56b7cd=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x56b7cd,'before'),this['editor']['model']['createPositionAt'](_0x56b7cd,0x0)));this['editor']['model']['change'](()=>{_0x2576f3['markMultiRangeBlockFormat'](_0x418747,{'commandName':'listReversed','commandParams':[{'reversed':_0x10ab06['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x57fb92,_0x420f58={}){const _0x49ca6a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5562a5=this['_getSuggestionBlocks'](_0x1bd959=>_0x1bd959['is']('element','listItem')&&'numbered'===_0x1bd959['getAttribute']('listType'));if(_0x5562a5['length']<0x1)return;const _0x2a8c68=_0x5562a5['map'](_0x36847d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x36847d,'before'),this['editor']['model']['createPositionAt'](_0x36847d,0x0)));this['editor']['model']['change'](()=>{_0x49ca6a['markMultiRangeBlockFormat'](_0x2a8c68,{'commandName':'listStart','commandParams':[{'startIndex':_0x420f58['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1e80d7){if('formatBlock'!=_0x1e80d7['type']&&'formatInline'!=_0x1e80d7['type'])return;const _0x48d514=this['editor']['locale'],{data:_0x40584a}=_0x1e80d7;if(!_0x40584a)return;let _0x14e9e0,_0x3adc29;switch(_0x40584a['commandName']){case'listStyle':_0x14e9e0='*Change\x20to:*\x20%0',_0x3adc29={'type':'format','content':o(_0x48d514,_0x14e9e0,o(_0x48d514,this['_getTranslationKeyForListStyle'](_0x40584a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x14e9e0=_0x40584a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3adc29={'type':'format','content':o(_0x48d514,_0x14e9e0)};break;case'listStart':_0x14e9e0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3adc29={'type':'format','content':o(_0x48d514,_0x14e9e0,_0x40584a['commandParams'][0x0]['startIndex'])};}return _0x3adc29;}['_getSuggestionBlocksForListStyle'](){const _0x24085d=this['editor']['plugins']['get']('LegacyListUtils');let _0x508a7b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x508a7b[0x0]?.['is']('element','listItem')&&_0x508a7b['unshift'](..._0x24085d['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x508a7b[_0x508a7b['length']-0x1]?.['is']('element','listItem')&&_0x508a7b['push'](..._0x24085d['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x508a7b=[...new Set(_0x508a7b)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x508a7b=_0x508a7b['filter'](_0x233db1=>_0x233db1['is']('element','listItem'))),_0x508a7b;}['_getSuggestionBlocks'](_0x2b5758){const _0x11ffcb=this['editor']['plugins']['get']('LegacyListUtils');let _0x59b745=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2b5758)['map'](_0xbd960=>{const _0x471176=this['editor']['model']['createPositionAt'](_0xbd960,0x0);return[..._0x11ffcb['getSiblingNodes'](_0x471176,'backward'),..._0x11ffcb['getSiblingNodes'](_0x471176,'forward')];})['flat']();return _0x59b745=[...new Set(_0x59b745)],_0x59b745;}['_getTranslationKeyForListStyle'](_0x1f7429){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1f7429)||'default')['toUpperCase']()+'_LIST_'+_0x1f7429['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x2611d7{['afterInit'](){const _0xcaacda=this['editor'];if(!_0xcaacda['plugins']['has']('MediaEmbedEditing'))return;const _0x11e301=_0xcaacda['plugins']['get']('TrackChangesEditing'),_0x549ea1=_0xcaacda['locale'];_0x11e301['enableCommand']('mediaEmbed'),_0x11e301['descriptionFactory']['registerElementLabel']('media',_0x508fb9=>o(_0x549ea1,'ELEMENT_MEDIA',_0x508fb9)),_0xcaacda['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x445762,{writer:_0x122e0b,options:_0x2480e7})=>{if(_0x2480e7['showSuggestionHighlights'])return _0x122e0b['createEmptyElement']('div');},'converterPriority':'high'}),_0xcaacda['data']['downcastDispatcher']['on']('attribute:url:media',(_0xeaddea,_0xc33d2a,_0x30bee6)=>{_0x30bee6['options']['showSuggestionHighlights']&&_0xeaddea['stop']();},{'priority':'high'});}}class lt extends _0x2611d7{['afterInit'](){const _0x1579cb=this['editor'];_0x1579cb['plugins']['has']('MentionEditing')&&_0x1579cb['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x2611d7{['afterInit'](){const _0x27b72a=this['editor'];if(!_0x27b72a['plugins']['has']('MergeFieldsEditing'))return;const _0x52ab14=_0x27b72a['plugins']['get']('TrackChangesEditing'),_0x33d625=_0x27b72a['locale'];_0x52ab14['enableCommand']('insertMergeField'),_0x52ab14['enableCommand']('insertMergeFieldBlock'),_0x52ab14['enableCommand']('insertMergeFieldImage'),_0x52ab14['descriptionFactory']['registerElementLabel']('mergeField',_0x31ee5d=>o(_0x33d625,'ELEMENT_MERGE_FIELD',_0x31ee5d)),_0x52ab14['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x320794=>o(_0x33d625,'ELEMENT_MERGE_FIELD',_0x320794)),_0x52ab14['descriptionFactory']['registerDescriptionCallback'](_0x1e4565=>{if('insertion'!=_0x1e4565['type']&&'deletion'!=_0x1e4565['type'])return;const _0x5a4f25=_0x1e4565['getContainedElement']();if(null==_0x5a4f25)return;const _0x327cbf=_0x27b72a['plugins']['get']('MergeFieldsEditing');let _0x18ac92;switch(_0x327cbf['getMergeFieldType'](_0x5a4f25)){case null:return;case'image':{const _0xcfff54=_0x327cbf['unwrapAffixes'](_0x5a4f25['getAttribute']('src'));_0x18ac92=_0x327cbf['getLabel'](_0xcfff54)||_0xcfff54;break;}default:{const _0x5a7f06=_0x5a4f25['getAttribute']('id');_0x18ac92=_0x327cbf['getLabel'](_0x5a7f06)||_0x5a7f06;break;}}return'insertion'==_0x1e4565['type']?{'type':'insertion','content':o(_0x33d625,'*Insert:*\x20%0','\x22'+_0x18ac92+'\x22\x20'+o(_0x33d625,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x33d625,'*Remove:*\x20%0','\x22'+_0x18ac92+'\x22\x20'+o(_0x33d625,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x2611d7{['afterInit'](){const _0xc4697c=this['editor'],_0x2fe1f5=_0xc4697c['plugins']['get']('TrackChangesEditing');_0xc4697c['plugins']['has']('MultiLevelList')&&(_0x2fe1f5['enableDefaultAttributesIntegration']('multiLevelList'),_0x2fe1f5['registerBlockAttribute']('listMarkerStyle'),_0x2fe1f5['descriptionFactory']['registerDescriptionCallback'](_0xb206a1=>this['handleDescriptions'](_0xb206a1)));}['handleDescriptions'](_0x35f749){const _0x290f11=this['editor']['locale'],{data:_0x16f55c}=_0x35f749,_0xc8ee84={'type':'format','content':''};if(_0x16f55c&&'listMarkerStyle'==_0x16f55c['key']){if(!_0x16f55c['oldValue'])return{'type':'format','content':o(_0x290f11,'*Set\x20format:*\x20%0',o(_0x290f11,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x16f55c['newValue']+')'};if(!_0x16f55c['newValue']){let _0xce69b2=_0x35f749['head'];for(;_0xce69b2;){if(_0xce69b2['data']&&'listType'==_0xce69b2['data']['key']&&_0xce69b2['data']['newValue'])return _0xc8ee84;_0xce69b2=_0xce69b2['next'];}return{'type':'format','content':o(_0x290f11,'*Remove\x20format:*\x20%0',o(_0x290f11,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x16f55c['oldValue']+')'};}}}}class pt extends _0x2611d7{['afterInit'](){const _0x45096a=this['editor'];if(!_0x45096a['plugins']['has']('PageBreakEditing'))return;_0x45096a['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4eb854=_0x45096a['plugins']['get']('TrackChangesEditing'),_0x5ae4f5=_0x45096a['locale'];_0x4eb854['descriptionFactory']['registerElementLabel']('pageBreak',_0x289879=>o(_0x5ae4f5,'ELEMENT_PAGE_BREAK',_0x289879));}}class kt extends _0x2611d7{['afterInit'](){const _0x1d18c9=this['editor'];if(!_0x1d18c9['plugins']['has']('Paragraph'))return;const _0x4b6558=_0x1d18c9['locale'],_0x46e118=_0x1d18c9['plugins']['get']('TrackChangesEditing');_0x46e118['descriptionFactory']['registerElementLabel']('paragraph',_0x16d548=>o(_0x4b6558,'ELEMENT_PARAGRAPH',_0x16d548)),_0x46e118['enableDefaultAttributesIntegration']('paragraph'),_0x46e118['enableCommand']('insertParagraph'),_0x1d18c9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1d18c9),{'priority':'highest'}),_0x1d18c9['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1225bf,_0xe7ba64,_0x56548f)=>{_0x56548f['options']['showSuggestionHighlights']&&nr(_0x1d18c9,{'showActiveMarker':!0x1})(_0x1225bf,_0xe7ba64,_0x56548f);},{'priority':'highest'});const _0x29fe4a=_0x46e118['descriptionFactory'];_0x29fe4a['registerDescriptionCallback'](_0x1c3059=>{if('insertion'!==_0x1c3059['type'])return;const {start:_0x4bd851,end:_0x2549a6}=_0x1c3059['getFirstRange']();if(!_0x4bd851['isTouching'](_0x2549a6)||!_0x4bd851['nodeAfter'])return;const _0x8866=_0x1d18c9['model']['schema'],_0x24052d=_0x4bd851['nodeAfter'];return _0x8866['isBlock'](_0x24052d)&&!_0x8866['isLimit'](_0x24052d)&&_0x8866['checkChild'](_0x24052d,'$text')?{'type':'insertion','content':o(_0x4b6558,'*Insert:*\x20%0',_0x29fe4a['getItemLabel'](_0x24052d,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22e1e0=this['editor'],_0x981f66=_0x22e1e0['locale'];_0x22e1e0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x369b72=>{if('formatBlock'!=_0x369b72['type'])return;const {data:_0x393b13}=_0x369b72;return _0x393b13&&'paragraph'==_0x393b13['commandName']?{'type':'format','content':o(_0x981f66,'*Change\x20to:*\x20%0',o(_0x981f66,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x16281a,{showActiveMarker:_0x5e0b48=!0x0}={}){return(_0x328e03,_0x26c410,_0x4d1078)=>{const _0x554fdf=_0x16281a['plugins']['get']('TrackChangesEditing'),_0x115e43=_0x26c410['markerRange']['start'],_0x46842a=_0x26c410['markerRange']['end'],_0x4d2208=_0x16281a['model']['schema'];if(!_0x115e43['isTouching'](_0x46842a)||!_0x115e43['nodeAfter'])return;const _0x114135=_0x115e43['nodeAfter'];if(_0x4d2208['isBlock'](_0x114135)&&!_0x4d2208['isLimit'](_0x114135)&&_0x4d2208['checkChild'](_0x114135,'$text')){if(!_0x4d1078['consumable']['consume'](_0x26c410['markerRange'],_0x328e03['name']))return;const {id:_0x2fae74,authorId:_0x4c0071}=_0x554fdf['_splitMarkerName'](_0x26c410['markerName']),_0x35a662=_0x4d1078['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x2fae74,'data-author-id':_0x4c0071}),_0x8bf4ba=_0x4d1078['mapper']['toViewPosition'](_0x46842a);_0x5e0b48&&_0x554fdf['activeMarkers']['includes'](_0x26c410['markerName'])&&_0x4d1078['writer']['addClass']('ck-suggestion-marker--active',_0x35a662),_0x4d1078['writer']['insert'](_0x8bf4ba,_0x35a662),_0x4d1078['mapper']['bindElementToMarker'](_0x35a662,_0x26c410['markerName']);}};}class wt extends _0x2611d7{['afterInit'](){const _0xe4d416=this['editor'];_0xe4d416['commands']['get']('replaceSource')&&_0xe4d416['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x2611d7{['afterInit'](){const _0x46f3a5=this['editor'];if(!_0x46f3a5['plugins']['has']('RemoveFormatEditing'))return;_0x46f3a5['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x821e67=this['editor'];_0x821e67['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3274c5=>{if('formatBlock'!=_0x3274c5['type']&&'formatInline'!=_0x3274c5['type'])return;const {data:_0x2defec}=_0x3274c5;return _0x2defec&&'removeFormat'==_0x2defec['commandName']?{'type':'format','content':o(_0x821e67['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x2611d7{['afterInit'](){const _0x5007bf=this['editor'];if(!_0x5007bf['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x45934e=_0x5007bf['plugins']['get']('TrackChangesEditing');_0x45934e['enableCommand']('goToPreviousRestrictedEditingException'),_0x45934e['enableCommand']('goToNextRestrictedEditingException');const _0x48689d=_0x5007bf['plugins']['get']('RestrictedEditingModeEditing');_0x48689d['enableCommand']('trackChanges'),_0x48689d['enableCommand']('acceptSuggestion'),_0x48689d['enableCommand']('discardSuggestion'),_0x48689d['enableCommand']('acceptAllSuggestions'),_0x48689d['enableCommand']('discardAllSuggestions'),_0x48689d['enableCommand']('acceptSelectedSuggestions'),_0x48689d['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x2611d7{['afterInit'](){const _0x5eb399=this['editor'];if(!_0x5eb399['plugins']['has']('ShiftEnter'))return;const _0xa01190=_0x5eb399['plugins']['get']('TrackChangesEditing');_0xa01190['enableCommand']('shiftEnter'),_0x5eb399['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x5eb399),{'priority':'high'}),_0x5eb399['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x5eb399),{'priority':'high'}),_0x5eb399['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4ce2f7,_0x2bdceb,_0x122a7e)=>{_0x122a7e['options']['showSuggestionHighlights']&&je(_0x5eb399,{'showActiveMarker':!0x1})(_0x4ce2f7,_0x2bdceb,_0x122a7e);}),_0xa01190['descriptionFactory']['registerElementLabel']('softBreak',_0x53e720=>o(_0x5eb399['locale'],'ELEMENT_LINE_BREAK',_0x53e720));}}function je(_0x30d6e3,{showActiveMarker:_0x25baa4=!0x0}={}){return(_0x54f4ae,_0xedf992,_0x5218fc)=>{const _0x5a85d4=_0x30d6e3['plugins']['get']('TrackChangesEditing');if(!_0x5218fc['consumable']['test'](_0xedf992['markerRange'],_0x54f4ae['name']))return;const _0x4bb2d4=_0x30d6e3['model'];for(const _0x389dcf of _0xedf992['markerRange']['getItems']()){if(!_0x389dcf['is']('element','softBreak'))continue;const _0x2414e2='deletion'==_0xedf992['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x1222bc,authorId:_0x203957}=_0x5a85d4['_splitMarkerName'](_0xedf992['markerName']),_0x1af682=_0x5218fc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2414e2,'data-suggestion':_0x1222bc,'data-author-id':_0x203957}),_0x50dfed=_0x5218fc['mapper']['toViewPosition'](_0x4bb2d4['createPositionBefore'](_0x389dcf));_0x25baa4&&_0x5a85d4['activeMarkers']['includes'](_0xedf992['markerName'])&&_0x5218fc['writer']['addClass']('ck-suggestion-marker--active',_0x1af682),_0x5218fc['writer']['insert'](_0x50dfed,_0x1af682),_0x5218fc['mapper']['bindElementToMarker'](_0x1af682,_0xedf992['markerName']);}};}class St extends _0x2611d7{['afterInit'](){const _0x41e099=this['editor'],_0x3a089a=_0x41e099['model'],_0xe34d7f=_0x41e099['locale'];if(!_0x41e099['plugins']['has']('StandardEditingModeEditing'))return;const _0x1d4458=_0x41e099['plugins']['get']('TrackChangesEditing'),_0x12e301='restrictedEditingException',_0x61e303=_0x41e099['commands']['get'](_0x12e301);_0x1d4458['enableCommand'](_0x12e301,(_0x13890d,_0x259fe6={})=>{const _0x3d4ffb=_0x3a089a['document']['selection'];if(_0x3d4ffb['isCollapsed'])return void _0x13890d(_0x259fe6);const _0xaf9430=void 0x0!==_0x259fe6['forceValue']?_0x259fe6['forceValue']:!_0x61e303['value'];_0x3a089a['change'](()=>{const _0x34124d=Array['from'](_0x3d4ffb['getRanges']());for(const _0x407f7a of _0x34124d){const _0x29465b=_0xaf9430?[_0x407f7a]:io(_0x12e301,_0x407f7a,_0x3a089a);for(const _0x44c0bc of _0x29465b)_0x1d4458['markInlineFormat'](_0x44c0bc,{'commandName':_0x12e301,'commandParams':[{'forceValue':_0xaf9430}]});}});}),_0x1d4458['descriptionFactory']['registerDescriptionCallback'](_0x29dfed=>{if('formatBlock'!=_0x29dfed['type']&&'formatInline'!=_0x29dfed['type'])return;const {data:_0x4e33ec}=_0x29dfed;return _0x4e33ec&&_0x4e33ec['commandName']==_0x12e301?_0x4e33ec['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xe34d7f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xe34d7f,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x2611d7{['afterInit'](){const _0x427623=this['editor'];if(!_0x427623['plugins']['has']('Style')||!_0x427623['plugins']['has']('DataSchema'))return;const _0x4108b7=_0x427623['plugins']['get']('TrackChangesEditing'),_0x474d7a=_0x427623['locale'],_0x2fbc7c=_0x427623['config']['get']('style')||{},_0x3d5d9a=_0x427623['plugins']['get']('GeneralHtmlSupport'),_0x5d41d9=_0x427623['plugins']['get']('StyleUtils')['normalizeConfig'](_0x427623['plugins']['get']('DataSchema'),_0x2fbc7c['definitions']);_0x4108b7['enableDefaultAttributesIntegration']('style');const _0x440edb=new Set();for(const _0x23835a of _0x5d41d9['block']){const _0x19bcf1=_0x3d5d9a['getGhsAttributeNameForElement'](_0x23835a['element']);_0x440edb['add'](_0x19bcf1);}const _0x5300eb=new Set();for(const _0x3e4c7c of _0x5d41d9['inline']){const _0xa92ef=_0x3d5d9a['getGhsAttributeNameForElement'](_0x3e4c7c['element']);_0x5300eb['add'](_0xa92ef);for(const _0x100762 of _0x3e4c7c['ghsAttributes'])_0x5300eb['add'](_0x100762);}for(const _0x2f32af of _0x440edb)_0x4108b7['registerBlockAttribute'](_0x2f32af),_0x4108b7['descriptionFactory']['registerAttributeLabel'](_0x2f32af,o(_0x474d7a,'FORMAT_STYLE'));for(const _0x51488a of _0x5300eb)_0x4108b7['registerInlineAttribute'](_0x51488a),_0x4108b7['descriptionFactory']['registerAttributeLabel'](_0x51488a,o(_0x474d7a,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x530fff=this['editor'],_0x2509c6=_0x530fff['locale'];_0x530fff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12b907=>{if('formatBlock'!=_0x12b907['type']&&'formatInline'!=_0x12b907['type'])return;const {data:_0x4e898e}=_0x12b907;return _0x4e898e&&'style'===_0x4e898e['commandName']?_0x4e898e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2509c6,'*Set\x20format:*\x20%0',_0x4e898e['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2509c6,'*Remove\x20format:*\x20%0',_0x4e898e['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x2611d7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x25e2d5){super(_0x25e2d5),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4702f8=this['editor'],_0x36ca78=_0x4702f8['model']['document']['selection'];if(!_0x4702f8['plugins']['has']('TableEditing'))return;const _0x170c6f=_0x4702f8['locale'],_0x1ffa47=_0x4702f8['plugins']['get']('TrackChangesEditing'),_0x4a7caa=_0x4702f8['plugins']['get']('TableUtils');_0x1ffa47['descriptionFactory']['registerElementLabel']('table',_0x158915=>o(_0x170c6f,'ELEMENT_TABLE',_0x158915)),this['_setupColumnsRowsFixing'](),_0x1ffa47['enableCommand']('insertTable'),_0x1ffa47['enableCommand']('selectTableRow'),_0x1ffa47['enableCommand']('selectTableColumn');for(const _0x479ebb of['insertTableRowAbove','insertTableRowBelow']){const _0x58c4f4=_0x4702f8['commands']['get'](_0x479ebb);_0x1ffa47['enableCommand'](_0x479ebb,_0x5e0d01=>{_0x4702f8['model']['change'](_0x36205b=>{_0x5e0d01();const _0x2e3261='above'===_0x58c4f4['order'],_0x34b4bd=_0x4a7caa['getSelectionAffectedTableCells'](_0x36ca78),_0x4d5484=_0x4a7caa['getRowIndexes'](_0x34b4bd),_0x4d1285=_0x2e3261?_0x4d5484['first']-0x1:_0x4d5484['last']+0x1,_0x1c8329=_0x34b4bd[0x0]['findAncestor']('table'),_0x12379f=_0x4a7caa['createTableWalker'](_0x1c8329,{'startRow':_0x4d1285,'endRow':_0x4d1285}),_0xdbe468=Array['from'](_0x12379f)['map'](_0x3c6bf6=>_0x36205b['createRangeOn'](_0x3c6bf6['cell']));_0x1ffa47['markMultiRangeInsertion'](_0xdbe468,'tableRow');});});}for(const _0x11bc78 of['insertTableColumnLeft','insertTableColumnRight']){const _0x303e75=_0x4702f8['commands']['get'](_0x11bc78);_0x1ffa47['enableCommand'](_0x11bc78,_0x5d9ad5=>{_0x4702f8['model']['change'](_0x3fbd1e=>{_0x5d9ad5();const _0x341f65='left'===_0x303e75['order'],_0x514774=_0x4a7caa['getSelectionAffectedTableCells'](_0x36ca78),_0x378653=_0x4a7caa['getColumnIndexes'](_0x514774),_0xe30617=_0x341f65?_0x378653['first']-0x1:_0x378653['last']+0x1,_0x491f9c=_0x514774[0x0]['findAncestor']('table'),_0x151b21=_0x4a7caa['createTableWalker'](_0x491f9c,{'startRow':0x0,'column':_0xe30617,'includeAllSlots':!0x1}),_0xee04b2=Array['from'](_0x151b21)['map'](_0x3c0f49=>_0x3fbd1e['createRangeOn'](_0x3c0f49['cell']));_0x1ffa47['markMultiRangeInsertion'](_0xee04b2,'tableColumn');});});}for(const _0x241a22 of['removeTableRow','removeTableColumn']){const _0x5f1ea0=_0x241a22['substr'](0xb),_0x43b26a=_0x5f1ea0['toLowerCase'](),_0x14b411=_0x43b26a['substr'](0x0,0x3)+'span',_0x5827d4='table'+_0x5f1ea0,_0x31401b='min'+_0x5f1ea0,_0x387288='max'+_0x5f1ea0;_0x1ffa47['enableCommand'](_0x241a22,()=>{_0x4702f8['model']['change'](_0xaf6689=>{const _0x3edc2f=_0x4a7caa['getSelectionAffectedTableCells'](_0x36ca78),_0x28b9b5=_0x3edc2f[0x0]['findAncestor']('table');let _0x49f14b;if('removeTableRow'==_0x241a22){const _0x47106f=_0x4a7caa['getRowIndexes'](_0x3edc2f);_0x49f14b={'startRow':_0x47106f['first'],'endRow':_0x47106f['last'],'includeAllSlots':!0x0};}else{const _0x306e39=_0x4a7caa['getColumnIndexes'](_0x3edc2f);_0x49f14b={'startColumn':_0x306e39['first'],'endColumn':_0x306e39['last'],'includeAllSlots':!0x0};}const _0x588dab=_0x4a7caa['createTableWalker'](_0x28b9b5,_0x49f14b),_0x259342=Array['from'](_0x588dab)['map'](({cell:_0x953baf})=>_0x953baf),_0xd44f6c=Ne(_0x259342['filter'](_0x155b63=>_0x155b63['hasAttribute'](_0x14b411))),_0x388ef3=Ne(_0x259342['filter'](_0x2207ea=>!_0x2207ea['hasAttribute'](_0x14b411)))['map'](_0x4d5815=>_0xaf6689['createRangeOn'](_0x4d5815)),_0x46ef76=_0x1ffa47['markMultiRangeDeletion'](_0x388ef3,_0x5827d4);if(_0x46ef76&&('tableRow'==_0x46ef76['subType']||'tableColumn'==_0x46ef76['subType'])){const _0x48dca5=this['_getSuggestionCoords'](_0x46ef76);for(const _0x135fa1 of _0xd44f6c){const _0x52882c=_0xaf6689['createRangeOn'](_0x135fa1),_0xa26a64=_0x4a7caa['getCellLocation'](_0x135fa1),_0x17ac77=_0x135fa1['getAttribute'](_0x14b411)-0x1,_0x2ff6fe=_0x48dca5[_0x31401b],_0x1ce88b=_0x48dca5[_0x387288];_0x2ff6fe<=_0xa26a64[_0x43b26a]&&_0xa26a64[_0x43b26a]+_0x17ac77<=_0x1ce88b&&_0x46ef76['addRange'](_0x52882c);}}});});}function _0x45c3d5(_0x16dcb7){const _0x2ecf53=Array['from'](_0x36ca78['getRanges']())['map'](_0x1f8bc2=>_0x1c65a2['fromRange'](_0x1f8bc2));_0x4702f8['model']['change'](_0x44351f=>{const _0x44d1da=_0x44351f['batch'];_0x16dcb7=_0x16dcb7['filter'](_0x32ce77=>'$graveyard'!=_0x32ce77['root']['rootName']),_0x44351f['setSelection'](_0x16dcb7),_0x4702f8['commands']['get']('removeTableRow')['refresh'](),_0x4702f8['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4702f8['model']['enqueueChange'](()=>{_0x4702f8['model']['enqueueChange'](_0x44d1da,_0x2d1185=>{const _0xb70176=_0x2ecf53['filter'](_0x44e8e7=>'$graveyard'!=_0x44e8e7['root']['rootName']);_0xb70176['length']>0x0&&_0x2d1185['setSelection'](_0xb70176);for(const _0x353bb1 of _0x2ecf53)_0x353bb1['detach']();});});});}function _0x17cb05(_0x25247f){_0x4702f8['model']['change'](_0x5b2e2e=>{const _0x22b264=Array['from'](_0x36ca78['getRanges']())['map'](_0x41dd92=>_0x1c65a2['fromRange'](_0x41dd92)),_0x580c05=[];for(const _0x59d83b of _0x25247f)for(const _0x569081 of _0x59d83b['getItems']({'shallow':!0x0}))_0x580c05['push'](_0x569081);for(const _0x56a1d4 of _0x580c05)'$graveyard'!=_0x56a1d4['root']['rootName']&&(_0x5b2e2e['setSelection'](_0x5b2e2e['createPositionAt'](_0x56a1d4,0x0)),_0x4702f8['commands']['get']('removeTableColumn')['refresh'](),_0x4702f8['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xac568e=_0x22b264['filter'](_0xb47a60=>'$graveyard'!=_0xb47a60['root']['rootName']);_0xac568e['length']>0x0&&_0x5b2e2e['setSelection'](_0xac568e);for(const _0x4c719e of _0x22b264)_0x4c719e['detach']();});}function _0x91b751(_0x58f341,_0x2c0790){return _0x2c0790['every'](_0xf46af2=>_0x58f341['some'](_0xc39c6d=>_0xc39c6d['end']['isEqual'](_0xf46af2['start'])||_0xf46af2['end']['isEqual'](_0xc39c6d['start'])));}function _0x5c25a7(_0x4b80f8,_0x2df258){return!_0x4b80f8['some'](_0x4ce320=>_0x2df258['some'](_0x565e25=>_0x4ce320['isIntersecting'](_0x565e25)))&&_0x4b80f8['some'](_0x7d775a=>_0x2df258['some'](_0x5f4f3c=>_0x7d775a['end']['isTouching'](_0x5f4f3c['start'])));}_0x4702f8['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4b6b9a,_0x1ae1b0,_0x5eb62b)=>{if(!_0x5eb62b['options']['showSuggestionHighlights'])return;const _0x22976c=_0x1ae1b0['item'];if(!_0x22976c||!_0x22976c['is']('element','tableCell'))return;const _0x119659=_0x5eb62b['mapper']['toViewElement'](_0x22976c);if(_0x119659){const {id:_0x1e3043,authorId:_0xd13b6b}=_0x1ffa47['_splitMarkerName'](_0x1ae1b0['markerName']);_0x2948bf(_0x119659,_0x5eb62b['writer'],(_0x2aaeae,_0x441d29,_0x5eaffd)=>{_0x5eaffd['addClass'](_0x5a8aa8(_0x441d29['classes']),_0x2aaeae),_0x5eaffd['setAttribute']('data-suggestion-id',_0x1e3043,_0x2aaeae),_0x5eaffd['setAttribute']('data-author-id',_0xd13b6b,_0x2aaeae);},(_0x383f87,_0x2649d8,_0x17f8dd)=>{_0x17f8dd['removeClass'](_0x5a8aa8(_0x2649d8['classes']),_0x383f87),_0x17f8dd['removeAttribute']('data-suggestion-id',_0x383f87),_0x17f8dd['removeAttribute']('data-author-id',_0x383f87);});}},{'priority':'highest'}),_0x1ffa47['descriptionFactory']['registerDescriptionCallback'](_0x1b9346=>{if('insertion'!=_0x1b9346['type']&&'deletion'!=_0x1b9346['type'])return;const _0x487383=_0x1b9346['getContainedElement']();if(null!=_0x487383&&_0x487383['is']('element','table')){if('insertion'==_0x1b9346['type']){const _0x1acfc1=_0x1b9346['getItems']()['filter'](_0x46a359=>_0x46a359['is']('$textProxy'))['map'](_0x3e0245=>_0x3e0245['data']);if(_0x1acfc1['length'])return{'type':'insertion','content':o(_0x170c6f,'*Insert:*\x20%0',o(_0x170c6f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1acfc1['join']('\x20')+'\x22'))};}if('deletion'==_0x1b9346['type']){const _0x3a668f=_0x1b9346['getItems']()['filter'](_0x149b0e=>_0x149b0e['is']('$textProxy'))['map'](_0x3a937d=>_0x3a937d['data']);if(_0x3a668f['length'])return{'type':'deletion','content':o(_0x170c6f,'*Remove:*\x20%0',o(_0x170c6f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3a668f['join']('\x20')+'\x22'))};}}}),_0x1ffa47['descriptionFactory']['registerDescriptionCallback'](_0x46452b=>{if('tableRow'==_0x46452b['subType']){const _0x2b700c=_0x46452b['getItems']()['filter'](_0x309e47=>_0x309e47['is']('$textProxy'))['map'](_0xdadd51=>_0xdadd51['data']),_0x3016e1=this['_getSuggestionCoords'](_0x46452b),_0x12380f=_0x3016e1['maxRow']-_0x3016e1['minRow']+0x1;if('insertion'==_0x46452b['type'])return _0x2b700c['length']?{'type':'insertion','content':o(_0x170c6f,'*Insert:*\x20%0',o(_0x170c6f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x12380f,'\x22'+_0x2b700c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x170c6f,'*Insert:*\x20%0',o(_0x170c6f,'ELEMENT_TABLE_ROW',_0x12380f))};if('deletion'==_0x46452b['type'])return _0x2b700c['length']?{'type':'deletion','content':o(_0x170c6f,'*Remove:*\x20%0',o(_0x170c6f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x12380f,'\x22'+_0x2b700c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x170c6f,'*Remove:*\x20%0',o(_0x170c6f,'ELEMENT_TABLE_ROW',_0x12380f))};}if('tableColumn'==_0x46452b['subType']){const _0x7f12e4=_0x46452b['getItems']()['filter'](_0x51202c=>_0x51202c['is']('$textProxy'))['map'](_0x45a6ab=>_0x45a6ab['data']),_0xd2a36d=this['_getSuggestionCoords'](_0x46452b),_0x2c270b=_0xd2a36d['maxColumn']-_0xd2a36d['minColumn']+0x1;if('insertion'==_0x46452b['type'])return _0x7f12e4['length']?{'type':'insertion','content':o(_0x170c6f,'*Insert:*\x20%0',o(_0x170c6f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2c270b,'\x22'+_0x7f12e4['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x170c6f,'*Insert:*\x20%0',o(_0x170c6f,'ELEMENT_TABLE_COLUMN',_0x2c270b))};if('deletion'==_0x46452b['type'])return _0x7f12e4['length']?{'type':'deletion','content':o(_0x170c6f,'*Remove:*\x20%0',o(_0x170c6f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2c270b,'\x22'+_0x7f12e4['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x170c6f,'*Remove:*\x20%0',o(_0x170c6f,'ELEMENT_TABLE_COLUMN',_0x2c270b))};}}),_0x1ffa47['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x45c3d5),_0x1ffa47['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x45c3d5),_0x1ffa47['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x17cb05),_0x1ffa47['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x17cb05),_0x1ffa47['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x91b751),_0x1ffa47['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x91b751),_0x1ffa47['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5c25a7),_0x1ffa47['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5c25a7);}['_acceptFormatSuggestionCallbackFactory'](){const _0x393d3f=this['editor'],_0x2cd9e=_0x393d3f['model']['document']['selection'];return(_0x1fe770,_0x39e867)=>{_0x393d3f['model']['change'](_0x4b8107=>{const {commandName:_0x50402f,commandParams:_0x212dda}=_0x39e867;let _0x161e8d=_0x1fe770[0x0]['end']['nodeBefore'];_0x212dda&&_0x212dda[0x0]&&!0x1===_0x212dda[0x0]['forceValue']&&(_0x161e8d=_0x1fe770[0x0]['start']['nodeAfter']);const _0x1eff56=_0x4b8107['createRangeIn'](_0x161e8d);if('$graveyard'==_0x1eff56['root']['rootName'])return;const _0x176f7b=Array['from'](_0x2cd9e['getRanges']())['map'](_0x45fdfe=>_0x1c65a2['fromRange'](_0x45fdfe));_0x4b8107['setSelection'](_0x1eff56),_0x393d3f['commands']['get'](_0x50402f)['refresh'](),_0x212dda['push']({'forceDefaultExecution':!0x0}),_0x393d3f['execute'](_0x50402f,..._0x212dda);const _0x4a7d41=_0x176f7b['filter'](_0x1adfc0=>'$graveyard'!=_0x1adfc0['root']['rootName']);_0x4a7d41['length']>0x0&&_0x4b8107['setSelection'](_0x4a7d41);for(const _0x57d398 of _0x176f7b)_0x57d398['detach']();});};}['_getCoordsForCells'](_0x13dea9){const _0x5ea65a=this['editor']['plugins']['get']('TableUtils');let _0x288016=Number['MAX_SAFE_INTEGER'],_0x5ea96c=Number['MIN_SAFE_INTEGER'],_0x2c3f5a=Number['MAX_SAFE_INTEGER'],_0x1cf7b7=Number['MIN_SAFE_INTEGER'];for(const _0x45aa85 of _0x13dea9){if('$graveyard'==_0x45aa85['root']['rootName'])continue;const {row:_0x48fb00,column:_0x5eaf46}=_0x5ea65a['getCellLocation'](_0x45aa85),_0x54f1f9=_0x45aa85['hasAttribute']('rowspan')?_0x45aa85['getAttribute']('rowspan')-0x1:0x0,_0x3297f3=_0x45aa85['hasAttribute']('colspan')?_0x45aa85['getAttribute']('colspan')-0x1:0x0;_0x288016=_0x48fb00<_0x288016?_0x48fb00:_0x288016,_0x5ea96c=_0x48fb00+_0x54f1f9>_0x5ea96c?_0x48fb00+_0x54f1f9:_0x5ea96c,_0x2c3f5a=_0x5eaf46<_0x2c3f5a?_0x5eaf46:_0x2c3f5a,_0x1cf7b7=_0x5eaf46+_0x3297f3>_0x1cf7b7?_0x5eaf46+_0x3297f3:_0x1cf7b7;}return{'minRow':_0x288016,'maxRow':_0x5ea96c,'minColumn':_0x2c3f5a,'maxColumn':_0x1cf7b7};}['_setupColumnsRowsFixing'](){const _0x1997d4=this['editor'],_0x4e887a=_0x1997d4['plugins']['get']('TrackChangesEditing'),_0x5c2326=_0x1997d4['plugins']['get']('TableUtils');_0x1997d4['model']['document']['on']('change:data',()=>{const _0x3b0c6a=Array['from'](_0x1997d4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x596438,data:_0xb4fe15}of _0x3b0c6a){const {group:_0x2c324e,id:_0x238d9f,subType:_0x42f275}=_0x4e887a['_splitMarkerName'](_0x596438);if('suggestion'!=_0x2c324e)continue;if(null!=_0xb4fe15['oldRange'])continue;const _0xb86634=_0x4e887a['getSuggestion'](_0x238d9f);this['_tablePostFixingSubtypes']['includes'](_0x42f275)&&this['_tableSuggestions']['add'](_0xb86634);}},{'priority':'low'});const _0x4303de=(_0x57c97e,_0xfd1674)=>{let _0x453883=!0x1;const _0x3fdeb8=_0xfd1674['createRangeOn'](_0x57c97e),_0x7896ef=_0x57c97e['findAncestor']('table'),_0x2c5a2d=_0x5c2326['getCellLocation'](_0x57c97e);for(const _0x49d5c9 of this['_tableSuggestions']){const _0x555c21=_0x49d5c9['subType'],_0x5120cb=_0x555c21['startsWith']('tablePaste'),_0x5e83cf=_0x555c21['substr'](_0x5120cb?0xa:0x5),_0x1709e6=_0x5e83cf['toLowerCase'](),_0x51b6da=_0x1709e6['substr'](0x0,0x3)+'span',_0x5421b7='min'+_0x5e83cf,_0x1e2b8c='max'+_0x5e83cf;if(!_0x49d5c9['isInContent'])continue;if(_0x7896ef!=_0x49d5c9['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x49d5c9['isIntersectingWithRange'](_0x3fdeb8))continue;const _0x4d3995=_0x57c97e['hasAttribute'](_0x51b6da)?_0x57c97e['getAttribute'](_0x51b6da)-0x1:0x0,_0x4a4613=this['_getSuggestionCoords'](_0x49d5c9),_0x6b6476=_0x4a4613[_0x5421b7],_0x5d2495=_0x4a4613[_0x1e2b8c];_0x6b6476<=_0x2c5a2d[_0x1709e6]&&_0x2c5a2d[_0x1709e6]+_0x4d3995<=_0x5d2495&&(_0x49d5c9['addRange'](_0x3fdeb8),_0x453883=!0x0);}return _0x453883;};_0x1997d4['model']['document']['registerPostFixer'](_0x593051=>{let _0x3df0bd=!0x1;for(const _0x495ea7 of _0x1997d4['model']['document']['differ']['getChanges']())if('insert'==_0x495ea7['type']){if('tableRow'==_0x495ea7['name']){for(const _0x539cbe of _0x495ea7['position']['nodeAfter']['getChildren']())_0x3df0bd=_0x3df0bd||_0x4303de(_0x539cbe,_0x593051);}else'tableCell'==_0x495ea7['name']&&(_0x3df0bd=_0x3df0bd||_0x4303de(_0x495ea7['position']['nodeAfter'],_0x593051));}return _0x3df0bd;});}['_getSuggestionCoords'](_0x4c695e){return this['_getCoordsForCells'](_0x4c695e['getRanges']()['map'](_0x436539=>_0x436539['start']['nodeAfter']));}}function Ne(_0x2b3d13){return Array['from'](new Set(_0x2b3d13)['values']());}class _t extends _0x2611d7{static get['requires'](){return[At];}['afterInit'](){const _0x2e3917=this['editor'],_0x115177=_0x2e3917['model']['document']['selection'],_0x57da89=_0x2e3917['locale'];if(!_0x2e3917['plugins']['has']('TableEditing'))return;const _0x97a9f9=_0x2e3917['plugins']['get']('TrackChangesEditing'),_0x3717d0=_0x2e3917['plugins']['get']('TableUtils'),_0x5a6a36=_0x2e3917['plugins']['get'](At);_0x5a6a36['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x97a9f9['enableCommand']('mergeTableCells',()=>{const _0x3ce3b1=_0x3717d0['getSelectionAffectedTableCells'](_0x2e3917['model']['document']['selection']);_0x2e3917['model']['change'](()=>{_0x97a9f9['markMultiRangeBlockFormat'](_0x3ce3b1,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2e3917['commands']['get']('mergeTableCells')['on']('execute',(_0x1e99a8,_0x20a178)=>{_0x2e3917['commands']['get']('trackChanges')['value']&&(_0x20a178['length']>0x0&&_0x20a178[_0x20a178['length']-0x1]&&_0x20a178[_0x20a178['length']-0x1]['forceDefaultExecution']||_0x97a9f9['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1e99a8['stop']());},{'priority':'highest'});for(const _0x3cf808 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3ff440=_0x2e3917['commands']['get'](_0x3cf808);_0x97a9f9['enableCommand'](_0x3cf808,()=>{const _0x29cd0d=_0x2e3917['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2673dc=>_0x2673dc['is']('element','tableCell')),_0x1a276e=_0x3ff440['value'];_0x2e3917['model']['change'](()=>{_0x97a9f9['markMultiRangeBlockFormat']([_0x29cd0d,_0x1a276e],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5681b8 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x294e3b=_0x2e3917['commands']['get'](_0x5681b8);_0x97a9f9['enableCommand'](_0x5681b8,()=>{const _0x4f112=_0x3717d0['getSelectionAffectedTableCells'](_0x2e3917['model']['document']['selection'])[0x0],_0x2178d4=_0x4f112['findAncestor']('table'),{column:_0x537b9a,row:_0x30dbfc}=_0x3717d0['getCellLocation'](_0x4f112);let _0x2ee094=[];if('horizontally'==_0x294e3b['direction']){const _0x4a3989=_0x3717d0['createTableWalker'](_0x2178d4,{'startRow':_0x30dbfc,'endRow':_0x30dbfc,'includeAllSlots':!0x0});_0x2ee094=Array['from'](_0x4a3989)['map'](_0x964b33=>_0x964b33['cell']);}else{const _0x2d3a3a=_0x3717d0['createTableWalker'](_0x2178d4,{'column':_0x537b9a,'includeAllSlots':!0x0});_0x2ee094=Array['from'](_0x2d3a3a)['map'](_0x38e925=>_0x38e925['cell']);}_0x2e3917['model']['change'](_0x497744=>{_0x97a9f9['markBlockFormat'](_0x497744['createRangeOn'](_0x4f112),{'commandName':_0x5681b8,'commandParams':[]},_0x2ee094,_0x5681b8);});});}_0x97a9f9['descriptionFactory']['registerDescriptionCallback'](_0x56168d=>{if('formatBlock'!=_0x56168d['type']&&'formatInline'!=_0x56168d['type'])return;const {data:_0x3be047}=_0x56168d;return _0x3be047&&'mergeTableCells'==_0x3be047['commandName']?{'type':'format','content':o(_0x57da89,'*Merge\x20cells*')}:void 0x0;}),_0x97a9f9['descriptionFactory']['registerDescriptionCallback'](_0x5061cc=>{if('formatBlock'!=_0x5061cc['type']&&'formatInline'!=_0x5061cc['type'])return;const {data:_0x223533}=_0x5061cc;return _0x223533?'splitTableCellVertically'==_0x223533['commandName']?{'type':'format','content':o(_0x57da89,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x223533['commandName']?{'type':'format','content':o(_0x57da89,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3c4398=_0x5a6a36['_acceptFormatSuggestionCallbackFactory']();for(const _0x32f7a1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x97a9f9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x32f7a1,'accept',_0x3c4398);for(const _0x26bf0a of['splitTableCellVertically','splitTableCellHorizontally'])_0x97a9f9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x26bf0a,'accept',_0x3c4398);_0x97a9f9['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5a4781=>{_0x2e3917['model']['change'](_0x33c1d5=>{const _0x1a2b76=Array['from'](_0x115177['getRanges']())['map'](_0x1f0f89=>_0x1c65a2['fromRange'](_0x1f0f89));_0x33c1d5['setSelection'](_0x5a4781),_0x2e3917['commands']['get']('mergeTableCells')['refresh'](),_0x2e3917['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4209ea=_0x1a2b76['filter'](_0x473c5d=>'$graveyard'!=_0x473c5d['root']['rootName']);_0x4209ea['length']>0x0&&_0x33c1d5['setSelection'](_0x4209ea);for(const _0x43865b of _0x1a2b76)_0x43865b['detach']();});});for(const _0x156d36 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5261d0=_0x2e3917['commands']['get'](_0x156d36);_0x5261d0['on']('set:isEnabled',(_0x1f0ab1,_0x27de34,_0x3f091e)=>{if(_0x3f091e){const _0x5a584c=_0x2e3917['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x532034=>_0x532034['is']('element','tableCell'));this['_areMergableCells'](_0x5261d0['value'],_0x5a584c)||(_0x1f0ab1['return']=!0x1,_0x1f0ab1['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2a7ce1=this['editor']['commands']['get']('mergeTableCells'),_0x163567=this['editor']['plugins']['get']('TableUtils');if(!_0x2a7ce1['isEnabled'])return!0x1;const _0x4a4a31=_0x163567['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x35c490 of _0x4a4a31)for(const _0x3bccd2 of _0x4a4a31)if(_0x35c490!=_0x3bccd2&&!this['_areMergableCells'](_0x35c490,_0x3bccd2))return!0x1;return!0x0;}['_areMergableCells'](_0x548b41,_0x1d1421){const _0x2a2ff5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13a4e1=this['editor']['model']['createRangeOn'](_0x548b41),_0x4e160a=this['editor']['model']['createRangeOn'](_0x1d1421),_0x540741=new Set(),_0x27f3a6=new Set();for(const _0x1650a2 of _0x2a2ff5['getSuggestions']())if(('insertion'==_0x1650a2['type']||'deletion'==_0x1650a2['type']||'mergeTableCells'==_0x1650a2['subType'])&&_0x1650a2['isInContent']){for(const _0x4be4b6 of _0x1650a2['getRanges']())_0x4be4b6['containsRange'](_0x13a4e1,!0x0)&&_0x540741['add'](_0x1650a2['type']+':'+_0x1650a2['author']['id']),_0x4be4b6['containsRange'](_0x4e160a,!0x0)&&_0x27f3a6['add'](_0x1650a2['type']+':'+_0x1650a2['author']['id']);}if(_0x540741['size']!=_0x27f3a6['size'])return!0x1;for(const _0x2c8ecf of _0x540741)if(!_0x27f3a6['has'](_0x2c8ecf))return!0x1;return!0x0;}}class Ct extends _0x2611d7{static get['requires'](){return[At];}['afterInit'](){const _0x54fd99=this['editor'];if(!_0x54fd99['plugins']['has']('TableEditing'))return;const _0x10cb84=_0x54fd99['locale'],_0x2aef68=_0x54fd99['plugins']['get']('TrackChangesEditing');_0x2aef68['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2aef68['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2aef68['registerBlockAttribute']('headingRows'),_0x2aef68['registerBlockAttribute']('headingColumns'),_0x2aef68['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x10cb84,'FORMAT_HEADER_ROW')),_0x2aef68['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x10cb84,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xc70f94=this['editor']['plugins']['get']('TrackChangesEditing'),_0xedfb5a=this['editor']['plugins']['get']('TableUtils'),_0x2b29f6=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x38a73e({showActiveMarker:_0x173d72=!0x0,setDataAttribute:_0x163148=!0x0}={}){return(_0xe397df,_0x4b6f34,_0x3a8b28)=>{const {type:_0x1ec9be,id:_0x42263c}=_0xc70f94['_splitMarkerName'](_0x4b6f34['markerName']),_0x3a788f=_0xc70f94['getSuggestion'](_0x42263c),_0x24ccbc=_0x3a788f['data'];if('formatBlock'!=_0x3a788f['type']||!_0x24ccbc||'setTableColumnHeader'!=_0x24ccbc['commandName'])return;if(_0x4b6f34['item'])return void _0xe397df['stop']();if(!_0x3a8b28['consumable']['consume'](_0x4b6f34['markerRange'],_0xe397df['name']))return;const _0x109da5=_0x4b6f34['markerRange']['start']['nodeAfter'],_0x1eb372=_0x4b6f34['markerRange']['end']['nodeBefore'],_0x2d8c42=_0x109da5['parent']['parent'],{column:_0x62ef27}=_0xedfb5a['getCellLocation'](_0x109da5),{column:_0x5a7684}=_0xedfb5a['getCellLocation'](_0x1eb372);for(let _0x241abc=_0x62ef27;_0x241abc<=_0x5a7684;_0x241abc++){const _0x1b8343=_0xedfb5a['createTableWalker'](_0x2d8c42,{'column':_0x241abc,'includeAllSlots':!0x1});for(const _0x34b264 of _0x1b8343){const _0x37ce40=_0x34b264['cell'],_0x1d376e=_0x3a8b28['mapper']['toViewElement'](_0x37ce40);_0x3a8b28['writer']['addClass']('ck-suggestion-marker-'+_0x1ec9be,_0x1d376e),_0x163148&&_0x3a8b28['writer']['setAttribute']('data-suggestion',_0x42263c,_0x1d376e),_0x3a8b28['mapper']['bindElementToMarker'](_0x1d376e,_0x4b6f34['markerName']),_0x173d72&&(_0xc70f94['activeMarkers']['includes'](_0x4b6f34['markerName'])?_0x3a8b28['writer']['addClass']('ck-suggestion-marker--active',_0x1d376e):_0x3a8b28['writer']['removeClass']('ck-suggestion-marker--active',_0x1d376e));}}};}_0xc70f94['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2b29f6),_0xc70f94['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2b29f6),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x38a73e(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x501564,_0x1c5e99,_0x2d9661)=>{_0x2d9661['options']['showSuggestionHighlights']&&_0x38a73e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x501564,_0x1c5e99,_0x2d9661);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1d9117,_0x47c6df,_0x2d6ac0)=>{const {type:_0x200a18,id:_0x290f75}=_0xc70f94['_splitMarkerName'](_0x47c6df['markerName']),_0x1046b9=_0xc70f94['getSuggestion'](_0x290f75),_0x40ac3c=_0x1046b9['data'];if('formatBlock'!=_0x1046b9['type']||!_0x40ac3c||'setTableColumnHeader'!=_0x40ac3c['commandName'])return;const _0x2a0560=_0x2d6ac0['mapper']['markerNameToElements'](_0x47c6df['markerName']);if(_0x2a0560){for(const _0x3dcc1f of _0x2a0560)_0x2d6ac0['writer']['removeClass']('ck-suggestion-marker-'+_0x200a18,_0x3dcc1f),_0x2d6ac0['writer']['removeClass']('ck-suggestion-marker--active',_0x3dcc1f),_0x2d6ac0['writer']['removeAttribute']('data-suggestion',_0x3dcc1f),_0x2d6ac0['mapper']['unbindElementFromMarkerName'](_0x3dcc1f,_0x47c6df['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50ae1f=this['editor'],_0x1cdd9b=_0x50ae1f['locale'];function _0x996429(_0x35e8cc){return{'type':'format','content':o(_0x1cdd9b,'*Format:*\x20%0',_0x35e8cc)};}_0x50ae1f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a3a9d=>{if('formatBlock'!=_0x2a3a9d['type'])return;const {data:_0x5ece3f}=_0x2a3a9d;if(_0x5ece3f){if('setTableRowHeader'==_0x5ece3f['commandName']){const _0x22b42e=_0x5ece3f['commandParams'][0x0]['forceValue'];return _0x996429(o(_0x1cdd9b,_0x22b42e?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5ece3f['commandName']){const _0x28c5cb=_0x5ece3f['commandParams'][0x0]['forceValue'];return _0x996429(o(_0x1cdd9b,_0x28c5cb?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x2611d7{['afterInit'](){const _0x1411dc=this['editor'],_0x5e3db1=_0x1411dc['locale'],_0x3a670f=_0x1411dc['plugins']['get']('TrackChangesEditing');function _0x535e8d(_0x48f9c6){return{'type':'format','content':''+o(_0x5e3db1,'*Set\x20table\x20type:*\x20%0',_0x48f9c6)};}_0x1411dc['plugins']['has']('TableLayout')&&(_0x3a670f['enableCommand']('insertTableLayout'),_0x3a670f['enableDefaultAttributesIntegration']('tableType'),_0x3a670f['registerBlockAttribute']('tableType'),_0x3a670f['descriptionFactory']['registerElementLabel'](_0x5feb2e=>_0x5feb2e['is']('element','table')&&'layout'===_0x5feb2e['getAttribute']('tableType'),_0x8630da=>o(_0x5e3db1,'ELEMENT_LAYOUT_TABLE',_0x8630da)),_0x3a670f['descriptionFactory']['registerDescriptionCallback'](_0x88d620=>{const {data:_0x111a1b}=_0x88d620;if(_0x111a1b&&'tableType'==_0x111a1b['key'])switch(_0x111a1b['newValue']){case'layout':return _0x535e8d(o(_0x5e3db1,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x535e8d(o(_0x5e3db1,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Be['map'](_0x2157c6=>[_0x2157c6,null]));class Nt extends _0x2611d7{static get['requires'](){return[At];}['afterInit'](){const _0x17def3=this['editor'];if(!_0x17def3['plugins']['has']('TableClipboard'))return;const _0x1ae6e0=_0x17def3['plugins']['get']('TrackChangesEditing'),_0x32f936=_0x17def3['plugins']['get']('TableUtils'),_0x32d908=_0x17def3['plugins']['get'](At),_0x3b1739=_0x17def3['plugins']['get']('TableClipboard'),_0x322253=_0x17def3['plugins']['get']('TableSelection'),_0xa65694=_0x17def3['plugins']['get'](_0x2c5191);_0x32d908['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x17def3['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x17def3['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x56bc22=null,_0x5df992=!0x1;_0xa65694['on']('contentInsertion',(_0x50c34a,_0x19e033)=>{_0x5df992='paste'===_0x19e033['method'];}),_0x17def3['model']['on']('insertContent',(_0x556d47,_0x1837ea)=>{if(!_0x5df992&&null===_0x322253['getSelectedTableCells']())return;const [_0x38f767,_0x514b59]=_0x1837ea,_0x562b79=_0x1837ea[_0x1837ea['length']-0x1];_0x562b79&&_0x562b79['forceDefaultExecution']||_0x1ae6e0['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xda87b,_0x17ebb0,_0x25ee97,_0xc81ea8,_0x2a47ed){if(_0x17ebb0&&!_0x17ebb0['is']('documentSelection'))return!0x1;const _0x8f7c6b=_0x2a47ed['getTableIfOnlyTableInContent'](_0xda87b,_0x25ee97);if(!_0x8f7c6b||!Ue(_0x8f7c6b,void 0x0,_0xc81ea8))return!0x1;const _0x344950=_0xc81ea8['getSelectionAffectedTableCells'](_0x25ee97['document']['selection']);if(!_0x344950['length'])return!0x1;const _0x40606b=_0x344950[0x0]['findAncestor']('table'),_0x136555=_0xc81ea8['getRowIndexes'](_0x344950),_0x4140f1=_0xc81ea8['getColumnIndexes'](_0x344950),_0x92b2d8={'startRow':_0x136555['first'],'endRow':_0x136555['last'],'startColumn':_0x4140f1['first'],'endColumn':_0x4140f1['last']};return 0x1==_0x344950['length']&&(_0x92b2d8['endRow']+=_0xc81ea8['getRows'](_0x8f7c6b)-0x1,_0x92b2d8['endColumn']+=_0xc81ea8['getColumns'](_0x8f7c6b)-0x1),Ue(_0x40606b,_0x92b2d8,_0xc81ea8);}(_0x38f767,_0x514b59,_0x17def3['model'],_0x32f936,_0x3b1739)&&(_0x556d47['stop'](),_0x56bc22={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x17def3['model']['change'](()=>{_0x17def3['model']['insertContent'](_0x1837ea[0x0],_0x1837ea[0x1],_0x1837ea[0x2],{'forceDefaultExecution':!0x0});const _0x5b05a3=_0x924ea4(),{rowInsertionRanges:_0x1d507c,columnInsertionRanges:_0x2f7ae7,insertionRanges:_0x3072ab,deletionRanges:_0x12d24a,cells:_0x128033}=_0x56bc22;_0x1d507c['length']&&_0x1ae6e0['markMultiRangeInsertion'](_0x1d507c,'tablePasteRow',{'tablePasteChainId':_0x5b05a3}),_0x2f7ae7['length']&&_0x1ae6e0['markMultiRangeInsertion'](_0x2f7ae7,'tablePasteColumn',{'tablePasteChainId':_0x5b05a3}),_0x3072ab['length']&&(_0x1ae6e0['markMultiRangeInsertion'](_0x3072ab,'tablePaste',{'tablePasteChainId':_0x5b05a3,'skipNestingCheck':!0x0}),_0x3072ab['forEach'](_0x46a511=>_0x46a511['detach']?.())),_0x12d24a['length']&&(_0x1ae6e0['markMultiRangeDeletion'](_0x12d24a,'tablePaste',{'tablePasteChainId':_0x5b05a3,'skipNestingCheck':!0x0}),_0x12d24a['forEach'](_0x2de173=>_0x2de173['detach']?.()));const _0x213918=_0x1ae6e0['markMultiRangeBlockFormat'](_0x128033['map'](({element:_0xba1aaa})=>_0xba1aaa),{'formatGroupId':_0x924ea4()},[],'tablePasteCell',{'tablePasteChainId':_0x5b05a3});if(_0x213918){const _0x59977a=_0x213918['getMarkers'](),_0x5a1cc8=[];for(const {element:_0x44d2aa,attributes:_0x39067b}of _0x128033){if(!_0x39067b)continue;const _0x361492=_0x17def3['model']['createRangeOn'](_0x44d2aa),_0x516742=_0x59977a['find'](_0x1934c4=>_0x1934c4['getRange']()['isEqual'](_0x361492));_0x516742&&_0x5a1cc8['push']([_0x516742['name'],_0x39067b]);}_0x5a1cc8['length']&&_0x213918['setAttribute']('markerAttributes',Object['fromEntries'](_0x5a1cc8));}_0x56bc22=null;}));},{'priority':_0x295a5c['high']+0xa}),_0xa65694['on']('contentInsertion',()=>{_0x5df992=!0x1;},{'priority':'lowest'}),_0x17def3['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4d589f,_0x32c84c)=>{const [_0x485791,_0x35407f,,_0x4924f3]=_0x32c84c;if(!_0x56bc22)return;_0x4d589f['stop']();const _0x575788=_0x485791['cell'],_0x1f7dd0=_0x35407f,_0x47ee14=Oe(_0x575788),_0x51e873=Oe(_0x1f7dd0);_0x4d589f['return']=_0x575788;let _0x2ec4f7=null,_0x3d56aa=null;if(_0x51e873||_0x47ee14){if(_0x47ee14&&!_0x51e873){_0x4924f3['remove'](_0x575788['getChild'](0x0));for(const _0x135c45 of Array['from'](_0x1f7dd0['getChildren']()))_0x4924f3['insert'](_0x135c45,_0x575788,'end');const _0x57f6a0=_0x56bc22['rowInsertionIndexes']['includes'](_0x485791['row']),_0x55e5=_0x56bc22['columnInsertionIndexes']['includes'](_0x485791['column']);_0x57f6a0||_0x55e5||(_0x2ec4f7=_0x1c65a2['fromRange'](_0x4924f3['createRangeIn'](_0x575788)));}else _0x51e873&&!_0x47ee14&&(_0x3d56aa=_0x4924f3['createRangeIn'](_0x575788));}else{const _0x1b7942=_0x4924f3['createElement']('tableCellSuggestion'),_0x523b57=_0x4924f3['createElement']('tableCellSuggestion');_0x4924f3['wrap'](_0x4924f3['createRangeIn'](_0x575788),_0x523b57),_0x4924f3['insert'](_0x1b7942,_0x575788,0x0);for(const _0x582c1a of Array['from'](_0x1f7dd0['getChildren']()))_0x4924f3['insert'](_0x582c1a,_0x1b7942,'end');_0x2ec4f7=_0x1c65a2['fromRange'](_0x4924f3['createRangeOn'](_0x1b7942)),_0x3d56aa=_0x1c65a2['fromRange'](_0x4924f3['createRangeOn'](_0x523b57));}const _0x32e0f6=Array['from'](_0x1f7dd0['getAttributes']())['filter'](([_0x19e23a])=>Be['includes'](_0x19e23a));_0x56bc22['cells']['push']({'element':_0x575788,'attributes':_0x32e0f6['length']?Object['fromEntries'](_0x32e0f6):null}),_0x2ec4f7&&_0x56bc22['insertionRanges']['push'](_0x2ec4f7),_0x3d56aa&&_0x56bc22['deletionRanges']['push'](_0x3d56aa);},{'priority':'high'}),_0x32f936['on']('insertColumns',(_0x4266f7,_0x3f7dfd)=>{const [_0x1f8b77,_0x328075={}]=_0x3f7dfd;if(!_0x56bc22)return;const _0x46873f=_0x328075['at']||0x0,_0x120da1=_0x328075['columns']||0x1;_0x56bc22['columnInsertionIndexes']=new Array(_0x120da1)['fill'](_0x46873f)['map']((_0x102ef3,_0x477edc)=>_0x102ef3+_0x477edc);for(const {cell:_0xecd482}of _0x32f936['createTableWalker'](_0x1f8b77,{'startColumn':_0x46873f,'endColumn':_0x46873f+_0x120da1-0x1}))_0x56bc22['columnInsertionRanges']['push'](_0x17def3['model']['createRangeOn'](_0xecd482));},{'priority':'low'}),_0x32f936['on']('insertRows',(_0x5cbff5,_0x15e643)=>{const [_0x4e05b6,_0x4c1d1e={}]=_0x15e643;if(!_0x56bc22)return;const _0x5d547d=_0x4c1d1e['at']||0x0,_0x43a607=_0x4c1d1e['rows']||0x1;_0x56bc22['rowInsertionIndexes']=new Array(_0x43a607)['fill'](_0x5d547d)['map']((_0x4c7483,_0x14bda4)=>_0x4c7483+_0x14bda4);for(const {cell:_0x3c8fb6}of _0x32f936['createTableWalker'](_0x4e05b6,{'startRow':_0x5d547d,'endRow':_0x5d547d+_0x43a607-0x1}))_0x56bc22['rowInsertionRanges']['push'](_0x17def3['model']['createRangeOn'](_0x3c8fb6));},{'priority':'low'}),_0x1ae6e0['descriptionFactory']['registerDescriptionCallback'](_0x4417e5=>{if(_0x4417e5['subType']&&_0x4417e5['subType']['startsWith']('tablePaste'))return _0x4417e5['previous']?{}:{'type':'insertion','content':o(_0x17def3['locale'],'*Replace\x20table\x20cells*')};});const _0x5d24da=()=>!0x1;for(const _0x4f46bf of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1ae6e0['_suggestionFactory']['registerCustomCallback']('insertion',_0x4f46bf,'join',_0x5d24da),_0x1ae6e0['_suggestionFactory']['registerCustomCallback']('deletion',_0x4f46bf,'join',_0x5d24da),_0x1ae6e0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4f46bf,'join',_0x5d24da);_0x1ae6e0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5d24da),_0x1ae6e0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x29948e,_0x2fb6b5,_0x32e1d6)=>{const _0x327f9b=_0x29948e['map'](_0x5c814b=>_0x5c814b['getContainedElement']())['filter'](_0x56b878=>_0x56b878),_0x1c3fff=new Map(_0x327f9b['map'](_0x1d386b=>[_0x1d386b,null]));if(_0x56bc22){for(const {element:_0x3efdf4,attributes:_0x14fd91}of _0x56bc22['cells'])_0x14fd91&&_0x1c3fff['set'](_0x3efdf4,_0x14fd91);}else{if(_0x32e1d6&&_0x32e1d6['markerAttributes'])for(const [_0x3c4edb,_0x3f6f92]of Object['entries'](_0x32e1d6['markerAttributes'])){const _0x55036c=_0x17def3['model']['markers']['get'](_0x3c4edb),_0x3a431a=_0x55036c?_0x55036c['getRange']()['getContainedElement']():null;_0x3a431a&&_0x1c3fff['set'](_0x3a431a,_0x3f6f92);}}_0x17def3['model']['change'](_0x4b46f9=>{for(const [_0x336517,_0x23a683]of _0x1c3fff)_0x4b46f9['setAttributes']({...xe,..._0x23a683},_0x336517);});});const _0x29a2e2=(_0x32aaae,_0x31b9ef)=>{_0x1ae6e0['_suggestionFactory']['registerCustomCallback'](_0x32aaae,'tablePaste',_0x31b9ef,(_0x54d106,_0x201802,_0x90ffc8)=>{_0x17def3['model']['change'](_0xb6c36f=>{const _0x1295fa=[];for(const _0x2c10bd of _0x54d106){const _0x4dd9c1=_0x2c10bd['start']['nodeAfter'];_0x4dd9c1['is']('element','tableCellSuggestion')&&_0x1295fa['push'](_0x4dd9c1);}_0x1ae6e0['_suggestionFactory']['getSuggestionCallback'](_0x32aaae,null,_0x31b9ef)(_0x54d106,_0x201802,_0x90ffc8);for(const _0x581bc8 of _0x1295fa)'$graveyard'!=_0x581bc8['root']['rootName']&&_0xb6c36f['unwrap'](_0x581bc8);});});};_0x29a2e2('insertion','accept'),_0x29a2e2('insertion','discard'),_0x29a2e2('deletion','accept'),_0x29a2e2('deletion','discard'),_0x1ae6e0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4588d3=>{const _0x1c1c32=_0x4588d3['map'](_0x4e3348=>_0x4e3348['getContainedElement']()),_0x154697=_0x1c1c32[0x0]['findAncestor']('table'),{minRow:_0x59cb92,maxRow:_0x1ab98a}=_0x32d908['_getCoordsForCells'](_0x1c1c32);_0x32f936['removeRows'](_0x154697,{'at':_0x59cb92,'rows':_0x1ab98a-_0x59cb92+0x1});}),_0x1ae6e0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x30a250=>{const _0x205c0c=_0x30a250['map'](_0x588bc8=>_0x588bc8['getContainedElement']()),_0x25dd2e=_0x205c0c[0x0]['findAncestor']('table'),{minColumn:_0x434a98,maxColumn:_0x99ff82}=_0x32d908['_getCoordsForCells'](_0x205c0c);_0x32f936['removeColumns'](_0x25dd2e,{'at':_0x434a98,'columns':_0x99ff82-_0x434a98+0x1});});const _0xc78a4d=(_0x36cca2,_0x370e28)=>{if(!_0x370e28['subType']||!_0x370e28['subType']['startsWith']('tablePaste'))return;const _0x46ab45=_0x370e28['attributes']['tablePasteChainId'],_0x469a0e=_0x1ae6e0['getSuggestions']()['filter'](_0xc26d12=>_0xc26d12['isInContent']&&_0xc26d12['attributes']&&_0xc26d12['attributes']['tablePasteChainId']==_0x46ab45);_0x469a0e['length']&&_0x370e28['getAllAdjacentSuggestions']()['length']!=_0x469a0e['length']&&_0x469a0e['reduce']((_0x1dfbea,_0x13d635)=>(_0x1dfbea['next']=_0x13d635,_0x13d635['previous']=_0x1dfbea,_0x13d635));};function _0x1f4ad4(_0x2cd417,_0x549c54=!0x0){const {id:_0x4225ad,authorId:_0x136916}=_0x1ae6e0['_splitMarkerName'](_0x2cd417['markerName']),_0x5eb0c6=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1a7a4b=_0x1ae6e0['activeMarkers']['includes'](_0x2cd417['markerName']);return _0x1a7a4b&&_0x5eb0c6['push']('ck-suggestion-marker--active'),{'classes':_0x5eb0c6,'attributes':{'data-suggestion':_0x4225ad,'data-author-id':_0x136916},'priority':_0x1a7a4b&&_0x549c54?0xbc2:0xbb8};}_0x1ae6e0['on']('suggestionLoaded',_0xc78a4d,{'priority':'high'}),_0x1ae6e0['on']('suggestionUnloaded',_0xc78a4d,{'priority':'high'}),_0x17def3['model']['document']['registerPostFixer'](()=>{let _0x1d2a36=!0x1;const _0x3ef53e=Array['from'](_0x17def3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1690af,data:_0x3b4894}of _0x3ef53e){const {group:_0x250dbb,type:_0x503b72,id:_0x7c8394}=_0x1ae6e0['_splitMarkerName'](_0x1690af);if('suggestion'!=_0x250dbb||'deletion'!=_0x503b72||_0x3b4894['oldRange'])continue;if(!_0x1ae6e0['hasSuggestion'](_0x7c8394))continue;const _0x1bbcc5=_0x1ae6e0['getSuggestion'](_0x7c8394)['getRanges'](),_0x1ac290=_0x17def3['plugins']['get']('Users')['me'];for(const _0x4b3a78 of _0x1ae6e0['getSuggestions']()){if(!_0x4b3a78['isInContent']||_0x4b3a78['author']!=_0x1ac290)continue;if('formatBlock'!=_0x4b3a78['type']||'tablePasteCell'!=_0x4b3a78['subType'])continue;if(_0x4b3a78['getRanges']()['every'](_0xc14316=>_0x1bbcc5['some'](_0xb16238=>_0xb16238['containsRange'](_0xc14316,!0x0)))){for(const _0x2b3782 of _0x4b3a78['getAllAdjacentSuggestions']())_0x2b3782['isInContent']&&(_0x2b3782['discard'](),_0x1d2a36=!0x0);}}}return _0x1d2a36;}),_0x17def3['model']['document']['registerPostFixer'](_0x322682=>{const _0x413787=_0x17def3['commands']['get']('redo');if(!_0x413787||!_0x413787['_createdBatches']['has'](_0x322682['batch']))return!0x1;let _0x59c6c7=!0x1;const _0x111dcb=_0x17def3['plugins']['get']('Users')['me'],_0x33080e=_0x17def3['model']['document']['differ']['getChanges'](),_0x40fa0c=Array['from'](_0x17def3['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1936cb,data:_0x3aefd4})=>{const {group:_0x1e5bf1,subType:_0x38b906,authorId:_0x564757}=_0x1ae6e0['_splitMarkerName'](_0x1936cb);return'suggestion'==_0x1e5bf1&&'tablePaste'==_0x38b906&&_0x564757==_0x111dcb['id']&&!_0x3aefd4['oldRange'];});for(const _0x2ca15f of _0x33080e){if('insert'!=_0x2ca15f['type']||'tableCellSuggestion'!=_0x2ca15f['name']||0x1!=_0x2ca15f['length'])continue;const _0x5a24ea=_0x322682['createRange'](_0x2ca15f['position'],_0x2ca15f['position']['getShiftedBy'](0x1));if(!_0x40fa0c['find'](({data:_0x12cab2})=>_0x12cab2['newRange']['isEqual'](_0x5a24ea))){for(const {name:_0x2abf50,data:_0x172da9}of _0x40fa0c)if(_0x5a24ea['containsRange'](_0x172da9['newRange'])){_0x322682['updateMarker'](_0x2abf50,{'range':_0x5a24ea}),_0x59c6c7=!0x0;break;}}}return _0x59c6c7;}),_0x17def3['model']['document']['registerPostFixer'](_0x2edc0c=>{let _0x34772e=!0x1;const _0x2ba763=_0x17def3['plugins']['get']('Users')['me'],_0x4677cc=_0x1ae6e0['getSuggestions']()['filter'](_0x303cfa=>_0x303cfa['isInContent']&&_0x303cfa['author']==_0x2ba763),_0x367e19=new Set(),_0x57f1ac=new Set();for(const _0x2ae10d of _0x4677cc)if('tablePaste'==_0x2ae10d['subType'])for(const _0x470470 of _0x2ae10d['getMarkers']()){const _0x325166=_0x470470['getRange']()['getContainedElement']();if(_0x325166){if(_0x325166['is']('element','tableCellSuggestion')&&Oe(_0x325166)){_0x2ae10d['removeMarker'](_0x470470['name']),_0x367e19['add'](_0x325166),_0x34772e=!0x0;const _0x37e849=_0x325166['nextSibling'],_0x3baebb=_0x325166['previousSibling'],_0x1ae509=_0x37e849&&_0x37e849['is']('element','tableCellSuggestion'),_0x49c117=_0x3baebb&&_0x3baebb['is']('element','tableCellSuggestion');_0x1ae509&&!_0x367e19['has'](_0x37e849)&&_0x57f1ac['add'](_0x37e849),_0x49c117&&!_0x367e19['has'](_0x3baebb)&&_0x57f1ac['add'](_0x3baebb);}else _0x325166['is']('element','paragraph')&&_0x325166['isEmpty']&&(_0x2ae10d['removeMarker'](_0x470470['name']),_0x34772e=!0x0);}}else{if('tablePasteCell'==_0x2ae10d['subType']){if(!_0x2ae10d['attributes']||!_0x2ae10d['attributes']['tablePasteChainId'])continue;const _0x232bf1=_0x2ae10d['attributes']['markerAttributes'];if(_0x232bf1&&Object['keys'](_0x232bf1)['length'])continue;const _0x11fa89=_0x2ae10d['attributes']['tablePasteChainId'];let _0x2f082e=!0x0,_0x2fd8a5=!0x0;for(const _0x39974a of _0x4677cc)if(_0x39974a['subType']&&_0x39974a['subType']['startsWith']('tablePaste')){if(!_0x39974a['attributes']['tablePasteChainId']){_0x2fd8a5=!0x1;break;}if(_0x39974a['id']!=_0x2ae10d['id']&&_0x39974a['attributes']['tablePasteChainId']==_0x11fa89){_0x2f082e=!0x1;break;}}_0x2fd8a5&&_0x2f082e&&(_0x2ae10d['removeMarkers'](),_0x34772e=!0x0);}}for(const _0x26eda7 of _0x367e19)_0x2edc0c['remove'](_0x26eda7);for(const _0x5ededc of _0x57f1ac)_0x2edc0c['unwrap'](_0x5ededc);return _0x34772e;}),_0x17def3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x530c6c=>_0x1f4ad4(_0x530c6c),'converterPriority':'high'}),_0x17def3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x59779a,_0x1fb302)=>_0x1fb302['options']['showSuggestionHighlights']?_0x1f4ad4(_0x59779a,!0x1):null,'converterPriority':'high'});const _0x38b8a0=_0x17def3['editing']['view'];this['listenTo'](_0x38b8a0['document'],'clipboardOutput',(_0x59d839,_0x44ce75)=>{const _0x44d63c=[];for(const _0x59ce79 of _0x38b8a0['createRangeIn'](_0x44ce75['content'])['getItems']())_0x59ce79['is']('element','suggestion-td')&&_0x44d63c['push'](_0x59ce79);_0x38b8a0['change'](_0x114ce6=>{for(const _0x19d8aa of _0x44d63c)_0x114ce6['move'](_0x114ce6['createRangeIn'](_0x19d8aa),_0x114ce6['createPositionBefore'](_0x19d8aa)),_0x114ce6['remove'](_0x19d8aa);});});}}function Oe(_0x34135a){if(_0x34135a['isEmpty'])return!0x0;const _0xd107ff=_0x34135a['getChild'](0x0);return _0xd107ff['is']('element','paragraph')&&_0xd107ff['isEmpty'];}function Ue(_0x5aab29,_0x4f04ac={},_0x4c4c62){for(const {isAnchor:_0x26640b,cellHeight:_0x2a0373,cellWidth:_0x121fdb}of _0x4c4c62['createTableWalker'](_0x5aab29,{'includeAllSlots':!0x0,..._0x4f04ac}))if(!_0x26640b||0x1!=_0x2a0373||0x1!=_0x121fdb)return!0x1;return!0x0;}class Dt extends _0x2611d7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x41ee29=this['editor']['plugins']['get']('TrackChangesEditing');_0x41ee29['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x41ee29['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x41ee29['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x41ee29['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x41ee29['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x41ee29['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x551664,_0x3f47ec){const _0x3532e8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3cfce8=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3d42de=_0x3f47ec['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x539e70=_0x3cfce8['getColumnGroupElement'](_0x3d42de);let _0x2c43bb=_0x539e70?_0x3cfce8['getTableColumnsWidths'](_0x539e70):null,_0x3a5630=_0x3d42de['getAttribute']('tableWidth')||null;const _0x845b69=_0x3f47ec['tableWidth']||_0x3a5630,_0x1d8768=_0x3f47ec['columnWidths']||_0x2c43bb,_0xc67aff=this['editor']['plugins']['get']('Users')['me'];for(const _0x3797eb of _0x3532e8['getSuggestions']()){const _0x95258b=_0x3797eb['getContainedElement']();if('resizeTable'===_0x3797eb['subType']&&_0x95258b===_0x3d42de){_0x3797eb['author']!==_0xc67aff&&_0x3797eb['discard']();const _0x56c973=_0x3797eb['data']['commandParams'];_0x3a5630=_0x56c973[0x0]['tableWidth'],_0x2c43bb=_0x56c973[0x0]['columnWidths'];break;}}_0x551664({'table':_0x3d42de,'tableWidth':_0x845b69,'columnWidths':_0x1d8768}),_0x3532e8['markBlockFormat'](_0x3d42de,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3a5630,'columnWidths':_0x2c43bb}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2933bf){if('formatBlock'!=_0x2933bf['type']&&'formatInline'!=_0x2933bf['type'])return;const {data:_0xf8af3d}=_0x2933bf;if(_0xf8af3d&&'resizeTable'===_0xf8af3d['formatGroupId']){const _0x42c7e1='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x42c7e1)};}}}class Mt extends _0x2611d7{['afterInit'](){const _0xc43e1f=this['editor'];_0xc43e1f['plugins']['has']('Template')&&_0xc43e1f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x2611d7{['afterInit'](){const _0x38bc47=this['editor'];if(!_0x38bc47['commands']['get']('insertTableOfContents'))return;_0x38bc47['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x30a270=_0x38bc47['plugins']['get']('TrackChangesEditing'),_0xd9272f=_0x38bc47['locale'];_0x30a270['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4dd37c=>o(_0xd9272f,'ELEMENT_TABLE_OF_CONTENTS',_0x4dd37c));}}class Bt extends _0x2611d7{['afterInit'](){const _0x34fd62=this['editor'];if(!_0x34fd62['plugins']['has']('Title'))return;const _0x4ecdb2=_0x34fd62['plugins']['get']('TrackChangesEditing');_0x4ecdb2['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x34fd62['locale'],'ELEMENT_TITLE')),_0x34fd62['model']['document']['registerPostFixer'](_0x91e0d6=>{let _0xc1d68a=!0x1;const _0x56de89=Array['from'](_0x34fd62['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4b4807,data:_0x4a60aa}of _0x56de89){const {group:_0x5d5fa5}=_0x4ecdb2['_splitMarkerName'](_0x4b4807);if('suggestion'!==_0x5d5fa5||!_0x4a60aa['newRange'])continue;const _0x2b8703=_0x4a60aa['newRange'],_0x3b6b45=_0x2b8703['end']['nodeBefore'];if(!_0x3b6b45||!_0x3b6b45['is']('element','title-content'))continue;if(!_0x2b8703['start']['isTouching'](_0x2b8703['end']))continue;const _0x4218eb=_0x34fd62['model']['schema']['getNearestSelectionRange'](_0x2b8703['end'],'forward');if(_0x4218eb&&_0x4218eb['isCollapsed']){const _0xd34329=_0x91e0d6['createRange'](_0x2b8703['start'],_0x4218eb['start']);_0xd34329['isEqual'](_0x2b8703)||(_0x91e0d6['updateMarker'](_0x4b4807,{'range':_0xd34329}),_0xc1d68a=!0x0);}_0xc1d68a||(_0x91e0d6['removeMarker'](_0x4b4807),_0xc1d68a=!0x0);}return _0xc1d68a;});}}class Tt extends _0x2611d7{['afterInit'](){const _0x42d352=this['editor'],_0x560438=_0x42d352['plugins']['get']('TrackChangesEditing');_0x42d352['plugins']['has']('Uploadcare')&&(_0x560438['enableCommand']('uploadcare'),_0x42d352['plugins']['has']('UploadcareImageEdit')&&(_0x560438['enableCommand']('uploadcareImageEdit'),_0x560438['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x560438['registerBlockAttribute']('uploadcareImageId'),_0x560438['descriptionFactory']['registerDescriptionCallback'](_0x485127=>{if('attribute'!=_0x485127['type'])return;const {data:_0x4037f2}=_0x485127;return _0x4037f2&&'uploadcareImageId'==_0x4037f2['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x2611d7{['afterInit'](){const _0x182968=this['editor'],_0x32e58b=_0x182968['plugins']['get']('TrackChangesEditing');_0x182968['plugins']['has']('UndoEditing')&&(_0x32e58b['enableCommand']('undo'),_0x32e58b['enableCommand']('redo'));}}class Ot extends _0x2611d7{static get['requires'](){return[At];}['afterInit'](){const _0x1bdb4c=this['editor'];if(!_0x1bdb4c['plugins']['has']('TableCaptionEditing'))return;_0x1bdb4c['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x2611d7{['tableProperties'];['tableCellProperties'];constructor(_0x509ce7){super(_0x509ce7),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 _0x70056=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x48e188 of this['tableProperties'])_0x70056['enableCommand'](_0x48e188,(_0x1ff4bd,_0x4e1ab3)=>{const _0x3eca0a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x48e188,[_0x3eca0a],this['tableProperties'],'tableProperties',_0x1ff4bd,_0x4e1ab3);});_0x70056['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x70056['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x70056['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x29e880,_0x349a55)=>this['handleDiscardAction'](this['tableProperties'],_0x29e880,_0x349a55)),_0x70056['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3b5008 of this['tableCellProperties'])_0x70056['enableCommand'](_0x3b5008,(_0x105ebb,_0x426407)=>{const _0x3068d0=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3b5008,_0x3068d0,this['tableCellProperties'],'tableCellProperties',_0x105ebb,_0x426407);});_0x70056['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x70056['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x70056['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x56307d,_0x1d5823)=>this['handleDiscardAction'](this['tableCellProperties'],_0x56307d,_0x1d5823)),_0x70056['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x70056['descriptionFactory']['registerDescriptionCallback'](_0x5cb6bf=>this['handleSuggestionDescription'](_0x5cb6bf));}['_handlePropertyChange'](_0x23c32c,_0x205f04,_0x1aed22,_0x4291f7,_0x2f039b,_0x158d4a){const _0x33a661=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x158d4a['batch'],()=>{for(const _0x39e52 of _0x205f04){if(this['_getSuggestion'](_0x39e52,_0x4291f7))_0x2f039b(_0x158d4a);else{const _0x37279b={};for(const _0x2ba511 of _0x1aed22){const _0x40bf84=_0x39e52['getAttribute'](_0x2ba511);void 0x0!==_0x40bf84&&(_0x37279b[_0x2ba511]=_0x40bf84);}_0x2f039b(_0x158d4a),_0x33a661['markBlockFormat'](_0x39e52,{'commandParams':[_0x37279b]},[],_0x4291f7);}}});}['handleDiscardAction'](_0x136768,_0x3cac06,_0x3ff3a0){const _0x1ed22c=_0x3cac06[0x0]['start']['nodeAfter'],_0x569ce0=_0x3ff3a0['commandParams'][0x0];this['editor']['model']['change'](_0x553162=>{for(const _0x36f662 of _0x136768)void 0x0!==_0x569ce0[_0x36f662]?_0x553162['setAttribute'](_0x36f662,_0x569ce0[_0x36f662],_0x1ed22c):_0x553162['removeAttribute'](_0x36f662,_0x1ed22c);});}['handleSuggestionDescription'](_0x21551c){if(_0x21551c['data'])switch(_0x21551c['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'](_0x3217a9,_0x4c5ed3){const _0x5c27f1=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x11433e of _0x5c27f1['getSuggestions']({'skipNotAttached':!0x0})){const _0x625d41=_0x11433e['getContainedElement']();if(_0x11433e['subType']===_0x4c5ed3&&_0x625d41===_0x3217a9)return _0x11433e;}return null;}}class Rt extends _0x2611d7{['afterInit'](){const _0x447bba=this['editor'];if(!_0x447bba['plugins']['has']('LineHeight'))return;const _0x28ade8=_0x447bba['plugins']['get']('TrackChangesEditing'),_0x2df3c0=_0x447bba['locale'];_0x28ade8['enableDefaultAttributesIntegration']('lineHeight'),_0x28ade8['registerBlockAttribute']('lineHeight'),_0x28ade8['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x2df3c0,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x2611d7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x6d65dd,_0x354720,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,$t,Et,Mt,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x143cfa){super(_0x143cfa),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x27d23,_0x3c2603,_0x36307a,_0x1c838a)=>{this['_model']['change'](()=>{for(const _0x462cc6 of[..._0x1c838a,..._0x36307a])this['_model']['markers']['has'](_0x462cc6)&&_0x143cfa['editing']['reconvertMarker'](_0x462cc6);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x143cfa['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(),_0x143cfa['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x143cfa['config']['get']('trackChanges.trackFormatChanges'),_0x143cfa['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x143cfa['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x143cfa,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x379878=this['editor'],_0x5e0d6c=(_0x26dcc5,_0x45028e)=>{if('attribute'!=_0x26dcc5)return'ck-suggestion-marker-'+_0x26dcc5;const _0xe7b7d2=_0x45028e['split']('|')[0x0];return this['_isBlockAttribute'](_0xe7b7d2)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x379878['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xcf1a3c=>{const {id:_0x3cef77,authorId:_0x1a3c7e,type:_0x166094,subType:_0x3c9504}=this['_splitMarkerName'](_0xcf1a3c['markerName']),_0x559edb=['ck-suggestion-marker',_0x5e0d6c(_0x166094,_0x3c9504)];let _0x588c92=0xbb8;return this['activeMarkers']['includes'](_0xcf1a3c['markerName'])&&(_0x559edb['push']('ck-suggestion-marker--active'),_0x588c92=0xbc2),'deletion'==_0x166094&&(_0x588c92+=0x5),{'classes':_0x559edb,'attributes':{'data-suggestion':_0x3cef77,'data-author-id':_0x1a3c7e},'priority':_0x588c92};}}),_0x379878['conversion']['for']('dataDowncast')['add'](_0x4abaea=>{_0x4abaea['on']('addMarker:suggestion',(_0x20c98f,_0x3d39de,_0x113361)=>{if(!_0x113361['options']['showSuggestionHighlights'])return;const _0x1b34f2=_0x3d39de['item'];if(!_0x1b34f2)return;const _0x473bb8=_0x113361['mapper']['toViewElement'](_0x1b34f2);_0x379878['model']['schema']['isObject'](_0x1b34f2)&&_0x473bb8&&!_0x473bb8['getCustomProperty']('widget')&&_0x473bb8['is']('containerElement')&&_0x34d418(_0x473bb8,_0x113361['writer']);},{'priority':'high'});}),_0x379878['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4a7b24,_0x2dd892)=>{if(!_0x2dd892['options']['showSuggestionHighlights'])return null;const {id:_0x4cc86e,authorId:_0x6f4c83,type:_0x2e3929,subType:_0x16f0ba}=this['_splitMarkerName'](_0x4a7b24['markerName']);return{'classes':['ck-suggestion-marker',_0x5e0d6c(_0x2e3929,_0x16f0ba)],'priority':0xbb8,'attributes':{'data-suggestion':_0x4cc86e,'data-author-id':_0x6f4c83}};}});const _0x43b9e2=({showActiveMarkers:_0x136469=!0x0,isAttributeSuggestion:_0x2e8d0d=!0x1}={})=>(_0x2f1cd1,_0x413b4c,_0x3a0b9f)=>{if(!_0x413b4c['item'])return;const {id:_0x5dcb0a,authorId:_0x53e117}=this['_splitMarkerName'](_0x413b4c['markerName']);if(_0x2e8d0d){const _0x556345=this['_suggestions']['get'](_0x5dcb0a),_0x2cf27f=this['_getAttributeKey'](_0x556345);if(!this['_isBlockAttribute'](_0x2cf27f))return;}if(_0x413b4c['item']['is']('selection'))return void _0x3a0b9f['consumable']['consume'](_0x413b4c['item'],_0x2f1cd1['name']);const _0x38a9e8=_0x3a0b9f['mapper']['toViewElement'](_0x413b4c['item']);if(_0x413b4c['item']['is']('element')&&_0x379878['model']['schema']['isBlock'](_0x413b4c['item'])&&!_0x38a9e8['getCustomProperty']('addHighlight')){_0x3a0b9f['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x38a9e8),_0x3a0b9f['writer']['setAttribute']('data-suggestion',_0x5dcb0a,_0x38a9e8),_0x3a0b9f['writer']['setAttribute']('data-author-id',_0x53e117,_0x38a9e8),_0x3a0b9f['mapper']['bindElementToMarker'](_0x38a9e8,_0x413b4c['markerName']),_0x136469&&(this['activeMarkers']['includes'](_0x413b4c['markerName'])?_0x3a0b9f['writer']['addClass']('ck-suggestion-marker--active',_0x38a9e8):_0x3a0b9f['writer']['removeClass']('ck-suggestion-marker--active',_0x38a9e8));for(const _0x297acd of _0x379878['model']['createRangeIn'](_0x413b4c['item'])['getItems']())_0x3a0b9f['consumable']['consume'](_0x297acd,_0x2f1cd1['name']);_0x3a0b9f['consumable']['consume'](_0x413b4c['item'],_0x2f1cd1['name']);}};_0x379878['conversion']['for']('dataDowncast')['add'](_0x238786=>{_0x238786['on']('addMarker:suggestion:formatBlock',(_0x5659f7,_0x202a0d,_0x4b54b6)=>{_0x4b54b6['options']['showSuggestionHighlights']&&_0x43b9e2({'showActiveMarkers':!0x1})(_0x5659f7,_0x202a0d,_0x4b54b6);},{'priority':'highest'});}),_0x379878['conversion']['for']('dataDowncast')['add'](_0x36be33=>{_0x36be33['on']('addMarker:suggestion:attribute',(_0x3aced6,_0xdecee7,_0x53e7c1)=>{_0x53e7c1['options']['showSuggestionHighlights']&&_0x43b9e2({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3aced6,_0xdecee7,_0x53e7c1);},{'priority':'highest'});}),_0x379878['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3af45a,_0x4ece12)=>{if(_0x4ece12['options']['showSuggestionHighlights']){const {id:_0x7bead0,authorId:_0x57e62f}=this['_splitMarkerName'](_0x3af45a);return _0x3af45a['includes'](':split')||_0x3af45a['includes'](':merge')?{'group':'suggestion','name':_0x3af45a['substr'](0xb),'attributes':{'data-suggestion':_0x7bead0,'data-author-id':_0x57e62f}}:null;}return{'group':'suggestion','name':_0x3af45a['substr'](0xb)};}}),_0x379878['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4db0f5,{writer:_0x1c6f57})=>{let _0x4ff11f='suggestion:'+_0x4db0f5['getAttribute']('suggestion-type')+':'+_0x4db0f5['getAttribute']('id');return _0x4db0f5['getAttribute']('marker-count')&&(_0x4ff11f+=':'+_0x4db0f5['getAttribute']('marker-count')),_0x1c6f57['createElement']('$marker',{'data-name':_0x4ff11f});}}),_0x379878['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x379878['conversion']['for']('editingDowncast')['add'](_0x3af97d=>{_0x3af97d['on']('addMarker:suggestion:formatBlock',_0x43b9e2(),{'priority':'high'});}),_0x379878['conversion']['for']('editingDowncast')['add'](_0x50543c=>{_0x50543c['on']('addMarker:suggestion:attribute',_0x43b9e2({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x379878['conversion']['for']('editingDowncast')['add'](_0x1c860c=>{_0x1c860c['on']('removeMarker:suggestion:formatBlock',(_0x2c7106,_0x28d4f3,_0x3bdcb4)=>{const _0x3a1e5b=_0x3bdcb4['mapper']['markerNameToElements'](_0x28d4f3['markerName']);if(_0x3a1e5b){for(const _0x597602 of _0x3a1e5b)_0x597602['getCustomProperty']('addHighlight')||(_0x3bdcb4['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x597602),_0x3bdcb4['writer']['removeAttribute']('data-suggestion',_0x597602),_0x3bdcb4['writer']['removeAttribute']('data-author-id',_0x597602),_0x3bdcb4['mapper']['unbindElementFromMarkerName'](_0x597602,_0x28d4f3['markerName']));}},{'priority':'high'});}),_0x379878['conversion']['for']('editingDowncast')['add'](_0x3e436c=>{_0x3e436c['on']('removeMarker:suggestion:attribute',(_0x5a65fd,_0x2b3020,_0x4c1f9d)=>{const _0x25880a=_0x4c1f9d['mapper']['markerNameToElements'](_0x2b3020['markerName']);if(!_0x25880a)return;const {id:_0x559ae0}=this['_splitMarkerName'](_0x2b3020['markerName']),_0x3ba313=this['_suggestions']['get'](_0x559ae0),_0x3c3a9d=this['_getAttributeKey'](_0x3ba313);if(this['_isBlockAttribute'](_0x3c3a9d)){for(const _0x24b860 of _0x25880a)_0x24b860['getCustomProperty']('addHighlight')||(_0x4c1f9d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x24b860),_0x4c1f9d['writer']['removeAttribute']('data-suggestion',_0x24b860),_0x4c1f9d['writer']['removeAttribute']('data-author-id',_0x24b860),_0x4c1f9d['mapper']['unbindElementFromMarkerName'](_0x24b860,_0x2b3020['markerName']));}},{'priority':'high'});}),_0x379878['model']['document']['registerPostFixer'](_0x477168=>{let _0x488706=!0x1;const _0x391f2d=Array['from'](_0x379878['model']['document']['differ']['getChangedMarkers']()),_0x509282=new Set();for(const {name:_0xc36447,data:_0x1cfebe}of _0x391f2d){const {group:_0x140bbe,type:_0x51b61c,subType:_0x2cb290,id:_0x2df47b}=this['_splitMarkerName'](_0xc36447);if('suggestion'!==_0x140bbe)continue;const _0x5e1e51=this['_suggestions']['get'](_0x2df47b);if(null!=_0x1cfebe['newRange']){'formatInline'==_0x51b61c&&(_0x488706=_0x488706||Gt(_0x1cfebe['newRange'],_0xc36447,_0x477168,_0x379878['model']['schema']));const _0x5c29b5='attribute'==_0x51b61c&&this['_isBlockAttribute'](_0x2cb290['split']('|')[0x0]);if(_0x1cfebe['newRange']['isCollapsed']||'$graveyard'==_0x1cfebe['newRange']['root']['rootName']||'formatBlock'==_0x51b61c&&!Jt(_0x1cfebe['newRange'])||_0x5c29b5&&!Jt(_0x1cfebe['newRange'])||'deletion'==_0x51b61c&&!Kt(_0x1cfebe['newRange']))_0x477168['removeMarker'](_0xc36447),_0x488706=!0x0;else{if(!_0x5e1e51||!_0x5e1e51['isInContent'])continue;if(_0x1cfebe['newRange']&&_0x1cfebe['oldRange']&&_0x1cfebe['newRange']['isEqual'](_0x1cfebe['oldRange']))continue;_0x509282['add'](_0x5e1e51);}}}return _0x509282['size']>0x0&&(_0x488706=!!this['_joinWithAdjacentSuggestions'](_0x509282)||_0x488706),_0x488706;}),_0x379878['model']['document']['registerPostFixer'](_0x243f31=>{let _0x405a27=!0x1;for(const _0x4d87f4 of _0x379878['model']['document']['differ']['getChanges']())if('insert'==_0x4d87f4['type'])for(const _0x4b41af of this['_suggestions']['values']()){if(_0x4b41af['isMultiRange']||!_0x4b41af['isInContent'])continue;const _0x1331a0='formatBlock'==_0x4b41af['type'],_0x21ff25=this['_getAttributeKey'](_0x4b41af),_0x2f34d7=_0x21ff25&&this['_isBlockAttribute'](_0x21ff25);if(!_0x1331a0&&!_0x2f34d7)continue;const _0x135dbb=_0x4b41af['getFirstRange']();if(_0x135dbb['start']['parent']!=_0x135dbb['end']['parent']&&!_0x135dbb['end']['isAtEnd']){const _0x5904a9=_0x379878['model']['createPositionAt'](_0x135dbb['start']['nodeAfter'],'end'),_0x42a8f3=_0x379878['model']['createRange'](_0x135dbb['start'],_0x5904a9);_0x243f31['updateMarker'](_0x4b41af['getFirstMarker'](),{'range':_0x42a8f3}),_0x405a27=!0x0;}}return _0x405a27;}),_0x379878['model']['document']['registerPostFixer'](_0xe5eb9e=>this['_processAttributeChanges'](_0xe5eb9e)),_0x379878['model']['document']['registerPostFixer'](_0x3dc43a=>!_0x3dc43a['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3dc43a)),_0x379878['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x379878['model']['document']['on']('change:data',(_0x21770f,_0x50373d)=>{if(!_0x50373d['isLocal']||_0x50373d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3cd357=_0x379878['model']['document']['differ']['getChanges']();if(0x0==_0x3cd357['length'])return;const _0x510a15=[],_0x3e72f4=_0x3cd357['filter'](_0x553519=>'attribute'==_0x553519['type']),_0x183e10=_0x3cd357['filter'](_0xd9bc6=>'insert'==_0xd9bc6['type']&&'$text'!=_0xd9bc6['name']);for(const _0x3269d8 of _0x3e72f4)this['_isRegisteredAttribute'](_0x3269d8['attributeKey'])&&_0x510a15['push']({'key':_0x3269d8['attributeKey'],'newValue':_0x3269d8['attributeNewValue'],'oldValue':_0x3269d8['attributeOldValue'],'range':Ht(_0x3269d8['range'],_0x379878['model'])});for(const _0x4ce25a of _0x183e10){if('rename'!=_0x4ce25a['action']&&'refresh'!=_0x4ce25a['action'])continue;const _0x15b8c9=qt(_0x4ce25a['position']['nodeAfter'],_0x379878['model']),_0x5da419=_0x4ce25a['before'];'rename'==_0x4ce25a['action']&&_0x510a15['push']({'key':m,'newValue':_0x4ce25a['name'],'oldValue':_0x5da419['name'],'range':_0x15b8c9});for(const [_0x2316cd,_0xdb6653]of _0x5da419['attributes']){if(!this['_isRegisteredAttribute'](_0x2316cd))continue;const _0x233be1=_0x4ce25a['attributes']['get'](_0x2316cd);_0xdb6653!==_0x233be1&&_0x510a15['push']({'key':_0x2316cd,'newValue':_0x233be1,'oldValue':_0xdb6653,'range':_0x15b8c9});}for(const [_0x313658,_0x3e8ae4]of _0x4ce25a['attributes'])this['_isRegisteredAttribute'](_0x313658)&&(_0x5da419['attributes']['has'](_0x313658)||_0x510a15['push']({'key':_0x313658,'newValue':_0x3e8ae4,'oldValue':null,'range':_0x15b8c9}));}0x0!=_0x510a15['length']&&_0x379878['model']['enqueueChange'](_0x50373d,_0x21910f=>{const _0x26cd46=_0x924ea4();for(const {range:_0x245006,key:_0x468b40,oldValue:_0x4a94bb,newValue:_0x40019}of _0x510a15)this['markAttributeChange'](_0x245006,_0x468b40,_0x4a94bb,_0x40019,{'groupId':_0x26cd46});this['_reduceExistingSuggestions'](_0x21910f,_0x510a15);});},{'priority':'lowest'}),_0x379878['model']['markers']['on']('update:suggestion',(_0xfa1454,_0x3f1941,_0x32e953)=>{if(null==_0x32e953){const {id:_0x522f34}=this['_splitMarkerName'](_0x3f1941['name']),_0x2ee3a7=this['_suggestions']['get'](_0x522f34);_0x2ee3a7&&_0x2ee3a7['addMarkerName'](_0x3f1941['name']);}}),_0x379878['model']['document']['on']('change:data',()=>{const _0x3bdbe1=Array['from'](_0x379878['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1fbf07=>'suggestion'===this['_splitMarkerName'](_0x1fbf07['name'])['group']);if(0x0===_0x3bdbe1['length'])return;_0x3bdbe1['sort']((_0x335ffd,_0x2ff403)=>{const _0x162aca=_0x335ffd['data']['oldRange'],_0x487e85=_0x2ff403['data']['oldRange'];return null===_0x162aca&&null===_0x487e85?0x0:null===_0x162aca&&null!==_0x487e85?-0x1:null!==_0x162aca&&null===_0x487e85?0x1:_0x162aca['start']['isBefore'](_0x487e85['start'])?-0x1:0x1;});const _0x3ca2eb=new Set(),_0x3e89df=new Set();for(const {name:_0x1487b4,data:_0x47a503}of _0x3bdbe1){const {id:_0xdc9c6}=this['_splitMarkerName'](_0x1487b4);if(null===_0x47a503['oldRange']){const _0x266d78=this['_handleNewSuggestionMarker'](_0x1487b4);_0x3e89df['add'](_0x266d78);}else{const _0x115032=this['_suggestions']['get'](_0xdc9c6);null!==_0x47a503['newRange']||_0x115032['isInContent']?(_0x3ca2eb['add'](_0x115032['head']),_0x3e89df['add'](_0x115032)):this['_removeSuggestion'](_0x115032);}}_0x3e89df['size']>0x0&&this['_refreshSuggestionsChain'](_0x3e89df);for(const _0x57d11c of _0x3ca2eb)this['fire']('suggestionChanged',_0x57d11c);}),_0x379878['model']['on']('applyOperation',(_0x49bb2f,_0x2485cb)=>{const _0x549379=_0x2485cb[0x0];if(!this['_suggestions']['size'])return;if(!_0x549379['isDocumentOperation'])return;if(_0x549379['batch']['isUndo']||!_0x549379['batch']['isLocal'])return;let _0x2773b7,_0xcbc00c;switch(_0x549379['type']){case'insert':_0x2773b7=_0x379878['model']['createPositionAt'](_0x549379['position']),_0xcbc00c=_0x2773b7['getShiftedBy'](_0x549379['howMany']);break;case'split':_0x2773b7=_0x379878['model']['createPositionAt'](_0x549379['splitPosition']),_0xcbc00c=_0x379878['model']['createPositionAt'](_0x549379['moveTargetPosition']);break;case'move':_0x2773b7=_0x379878['model']['createPositionAt'](_0x549379['targetPosition']),_0xcbc00c=_0x2773b7['getShiftedBy'](_0x549379['howMany']);break;default:return;}const _0x551b8b=_0x379878['model']['createRange'](_0x2773b7,_0xcbc00c);_0x379878['model']['change'](()=>{for(const {suggestion:_0x2b8094,meta:_0x3ae440}of this['_findSuggestions'](_0x551b8b)){if(_0x2b8094['isMultiRange'])continue;if('formatInline'==_0x2b8094['type'])continue;const _0x21cefc=this['_getAttributeKey'](_0x2b8094);if(_0x21cefc&&this['_isBlockAttribute'](_0x21cefc)&&'split'!=_0x549379['type'])continue;const _0x36427d=_0x2b8094['data']&&_0x2b8094['data']['multipleBlocks'];('formatBlock'!=_0x2b8094['type']||'split'==_0x549379['type']&&!_0x36427d)&&(_0x3ae440['containsRangeInObject']||'insertion'==_0x2b8094['type']&&_0x3ae440['isOwn']||_0x2b8094['getFirstRange']()['containsRange'](_0x551b8b)&&this['_breakSuggestionMarker'](_0x2b8094,_0x2773b7,_0xcbc00c));}});},{'priority':'lowest'}),_0x379878['model']['on']('deleteContent',(_0x2412de,_0x1b8c94)=>{const _0x4200e5=_0x1b8c94[0x0],_0x3bda4a=_0x1b8c94[0x1];if(_0x3bda4a&&_0x3bda4a['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4200e5['isCollapsed'])return;const _0x2015af=_0x379878['model']['schema'],{start:_0x1d3948,end:_0x23b8ff}=_0x4200e5['getFirstRange'](),_0x3d2c6e=_0x1d3948['nodeAfter']&&_0x2015af['isLimit'](_0x1d3948['nodeAfter'])?null:_0x2015af['getNearestSelectionRange'](_0x1d3948,'forward'),_0x263b4c=_0x23b8ff['nodeBefore']&&_0x2015af['isLimit'](_0x23b8ff['nodeBefore'])?null:_0x2015af['getNearestSelectionRange'](_0x23b8ff,'backward'),_0x593402=_0x379878['model']['createRange'](_0x3d2c6e?_0x3d2c6e['start']:_0x1d3948,_0x263b4c?_0x263b4c['end']:_0x23b8ff);_0x379878['model']['change'](_0x3d2995=>{this['markDeletion'](_0x593402);const _0x684db8=_0x379878['model']['schema']['getNearestSelectionRange'](_0x593402['start']);_0x4200e5['is']('documentSelection')?_0x3d2995['setSelection'](_0x684db8):_0x4200e5['setTo'](_0x684db8);}),_0x2412de['stop']();},{'priority':_0x295a5c['normal']+0xa}),_0x379878['model']['on']('insertContent',(_0x40c820,_0x318879)=>{const _0x433abf=_0x318879[_0x318879['length']-0x1];_0x433abf&&_0x433abf['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x379878['model']['change'](()=>{let _0x25830d=_0x379878['model']['insertContent'](_0x318879[0x0],_0x318879[0x1],_0x318879[0x2],{'forceDefaultExecution':!0x0});if(!_0x25830d)return;_0x40c820['return']=_0x25830d['clone']();const _0x2ad84f=_0x25830d['end']['nodeBefore'],_0x2d0d1b=_0x379878['model']['schema'];_0x2ad84f&&_0x2d0d1b['isBlock'](_0x2ad84f)&&!_0x2d0d1b['isObject'](_0x2ad84f)&&(_0x25830d=_0x379878['model']['createRange'](_0x25830d['start'],_0x379878['model']['createPositionAt'](_0x2ad84f,'end'))),this['markInsertion'](_0x25830d);}),_0x40c820['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1d7299=new D(_0x379878,this['_suggestions']);_0x379878['commands']['add']('acceptSuggestion',_0x1d7299),this['enableCommand']('acceptSuggestion');const _0x4c86e8=new M(_0x379878,this['_suggestions']);_0x379878['commands']['add']('discardSuggestion',_0x4c86e8),this['enableCommand']('discardSuggestion'),_0x379878['commands']['add']('acceptAllSuggestions',new $(_0x379878,_0x1d7299,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x379878['commands']['add']('discardAllSuggestions',new $(_0x379878,_0x4c86e8,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x379878['commands']['add']('acceptSelectedSuggestions',new B(_0x379878,_0x1d7299,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x379878['commands']['add']('discardSelectedSuggestions',new B(_0x379878,_0x4c86e8,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x42eb6e=_0x379878['plugins']['get']('CommentsRepository');this['listenTo'](_0x42eb6e,'addComment',(_0x27d5eb,{threadId:_0x349de0})=>{const _0x35f932=this['_suggestions']['get'](_0x349de0);_0x35f932&&_0x35f932['commentThread']&&0x1===_0x35f932['commentThread']['length']&&this['_updateSuggestionData'](_0x349de0,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x42eb6e,'removeComment',(_0x3a5da2,{threadId:_0x4d5a9a})=>{const _0xa1ad6e=this['_suggestions']['get'](_0x4d5a9a);_0xa1ad6e&&_0xa1ad6e['commentThread']&&!_0xa1ad6e['commentThread']['length']&&this['_updateSuggestionData'](_0x4d5a9a,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1fff53){const _0x584814=_0x2e8b95([0x66,0x68,0x34,0x53,0x43,0x5a,0x75,0x6c,0x49,0x67,0x76,0x44,0x52,0x71,0x4a,0x41,0x59,0x54,0x64,0x33,0x73,0x32,0x48,0x6d,0x78,0x38,0x4c,0x55,0x36,0x7a,0x6b,0x37,0x4d,0x45,0x62,0x35,0x6f,0x58,0x47,0x51,0x31,0x70,0x79,0x4b,0x4f,0x63,0x50,0x61,0x30,0x69,0x57,0x56,0x77,0x6e,0x39,0x74,0x72,0x46,0x4e,0x42,0x65,0x6a]),_0x414f8d=0x56b3ce93,_0x4b1ee7=0x56b4a2b3^_0x414f8d,_0x39a6e0=window[_0x2e8b95([0x44,0x61,0x74,0x65])][_0x2e8b95([0x6e,0x6f,0x77])](),_0x48ee39=_0x1fff53[_0x2e8b95([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x55fbe5=new window[(_0x2e8b95([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cc339=>{_0x48ee39[_0x2e8b95([0x6f,0x6e,0x63,0x65])](_0x2e8b95([0x72,0x65,0x61,0x64,0x79]),_0x2cc339);}),_0x20bb0a={[_0x2e8b95([0x6b,0x74,0x79])]:_0x2e8b95([0x45,0x43]),[_0x2e8b95([0x75,0x73,0x65])]:_0x2e8b95([0x73,0x69,0x67]),[_0x2e8b95([0x63,0x72,0x76])]:_0x2e8b95([0x50,0x2d,0x32,0x35,0x36]),[_0x2e8b95([0x78])]:_0x2e8b95([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]),[_0x2e8b95([0x79])]:_0x2e8b95([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]),[_0x2e8b95([0x61,0x6c,0x67])]:_0x2e8b95([0x45,0x53,0x32,0x35,0x36])},_0x144818=_0x48ee39[_0x2e8b95([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2e8b95([0x67,0x65,0x74])](_0x2e8b95([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xb313d9(){let _0x213fd1,_0x654ee9=null,_0x590ebd=null;try{if(_0x144818==_0x2e8b95([0x47,0x50,0x4c]))return _0x2e8b95([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x213fd1=_0x46fe4a(),!_0x213fd1)return _0x2e8b95([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x213fd1[_0x2e8b95([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x590ebd=_0x3d467e(_0x213fd1[_0x2e8b95([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x213fd1[_0x2e8b95([0x6a,0x74,0x69])])),await _0x583c47()?_0x238913()?_0x1cf16a()?_0x2e8b95([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x45054c()?(_0x213fd1[_0x2e8b95([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2e8b95([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x654ee9=_0x2a3325(_0x2e8b95([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x213fd1[_0x2e8b95([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2e8b95([0x74,0x72,0x69,0x61,0x6c])&&(_0x654ee9=_0x2a3325(_0x2e8b95([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2c1bf1()):_0x2e8b95([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2e8b95([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2e8b95([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2e8b95([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1cf16a(){const _0x4e5137=[_0x2e8b95([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2e8b95([0x74,0x72,0x69,0x61,0x6c])][_0x2e8b95([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x213fd1[_0x2e8b95([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x39a6e0/0x3e8:0xe10*_0x4b1ee7;return _0x213fd1[_0x2e8b95([0x65,0x78,0x70])]<_0x4e5137;}function _0x238913(){const _0x24d9d3=_0x213fd1[_0x2e8b95([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x24d9d3)return!0x1;if(_0x24d9d3[_0x2e8b95([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e8b95([0x2a])))return!0x0;if(_0x24d9d3[_0x2e8b95([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e8b95([0x54,0x43])))return!0x0;if(_0x24d9d3[_0x2e8b95([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e8b95([0x52,0x54,0x43]))){if(_0x10dcfa())return!0x0;if(_0x5d373e()||_0x4caee6())return!0x0;}return!0x1;}function _0x45054c(){const _0xe88e01=_0x213fd1[_0x2e8b95([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xe88e01||0x0==_0xe88e01[_0x2e8b95([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x14e1f6}=new URL(window[_0x2e8b95([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xe88e01[_0x2e8b95([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14e1f6))return!0x0;const _0x22dc69=_0x14e1f6[_0x2e8b95([0x73,0x70,0x6c,0x69,0x74])](_0x2e8b95([0x2e]));return _0xe88e01[_0x2e8b95([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ad334=>_0x4ad334[_0x2e8b95([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e8b95([0x2a])))[_0x2e8b95([0x6d,0x61,0x70])](_0x1eec4c=>_0x1eec4c[_0x2e8b95([0x73,0x70,0x6c,0x69,0x74])](_0x2e8b95([0x2e])))[_0x2e8b95([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x588a08=>_0x588a08[_0x2e8b95([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x22dc69[_0x2e8b95([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2e8b95([0x6d,0x61,0x70])](_0x1fa624=>Array(_0x22dc69[_0x2e8b95([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1fa624[_0x2e8b95([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2e8b95([0x66,0x69,0x6c,0x6c])](_0x1fa624[0x0]===_0x2e8b95([0x2a])?_0x2e8b95([0x2a]):'')[_0x2e8b95([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1fa624))[_0x2e8b95([0x73,0x6f,0x6d,0x65])](_0x2ad701=>_0x22dc69[_0x2e8b95([0x65,0x76,0x65,0x72,0x79])]((_0x3995a8,_0x1514ea)=>_0x2ad701[_0x1514ea]===_0x3995a8||_0x2ad701[_0x1514ea]===_0x2e8b95([0x2a])));}function _0x2c1bf1(){return _0x654ee9&&_0x590ebd?new window[(_0x2e8b95([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a7080,_0x1afce9)=>{_0x654ee9[_0x2e8b95([0x74,0x68,0x65,0x6e])](_0x2a7080,_0x1afce9),_0x590ebd[_0x2e8b95([0x74,0x68,0x65,0x6e])](_0x546fa1=>{_0x546fa1!=_0x2e8b95([0x56,0x61,0x6c,0x69,0x64])&&_0x2a7080(_0x546fa1);},_0x1afce9);}):_0x654ee9||_0x590ebd||_0x2e8b95([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3d467e(_0x25e7a5,_0x3f3555){return new window[(_0x2e8b95([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3dc10e=>{if(_0x7ad814())return _0x3dc10e(_0x2e8b95([0x56,0x61,0x6c,0x69,0x64]));_0x11cc5a(),_0x48ee39[_0x2e8b95([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2e8b95([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x592b13=!0x1;const _0x576a33=_0x924ea4();function _0x98d661(_0x1cb8ad){return!!_0x1cb8ad&&(typeof _0x1cb8ad===_0x2e8b95([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1cb8ad===_0x2e8b95([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1cb8ad[_0x2e8b95([0x74,0x68,0x65,0x6e])]===_0x2e8b95([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1cb8ad[_0x2e8b95([0x63,0x61,0x74,0x63,0x68])]===_0x2e8b95([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xb17c42(_0x12a6a4){_0x3ef8d4(_0x12a6a4)[_0x2e8b95([0x74,0x68,0x65,0x6e])](_0x2ee98d=>{if(!_0x2ee98d||_0x2ee98d[_0x2e8b95([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2e8b95([0x6f,0x6b]))return _0x2e8b95([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1acd89(_0x7bffd8(_0x576a33+_0x3f3555))!=_0x2ee98d[_0x2e8b95([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2e8b95([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2e8b95([0x56,0x61,0x6c,0x69,0x64]);})[_0x2e8b95([0x74,0x68,0x65,0x6e])](_0x7a0fe6=>(_0x25eb92(),_0x7a0fe6),()=>{const _0x4a4dcd=_0x456c7e();return null==_0x4a4dcd?(_0x25eb92(),_0x2e8b95([0x56,0x61,0x6c,0x69,0x64])):_0x2e8b95(_0x39a6e0-_0x4a4dcd>(0x72bf4a93^_0x414f8d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2e8b95([0x74,0x68,0x65,0x6e])](_0x3dc10e)[_0x2e8b95([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3dc10e(_0x2e8b95([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x437fae=0x56852013^_0x414f8d;function _0x25eb92(){const _0x161c17=_0x2e8b95([0x6c,0x6c,0x63,0x74,0x2d])+_0x1acd89(_0x7bffd8(_0x25e7a5)),_0x4d2f61=_0x432410(_0x1acd89(window[_0x2e8b95([0x4d,0x61,0x74,0x68])][_0x2e8b95([0x63,0x65,0x69,0x6c])](_0x39a6e0/_0x437fae)));window[_0x2e8b95([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2e8b95([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x161c17,_0x4d2f61);}function _0x456c7e(){const _0x59e36c=_0x2e8b95([0x6c,0x6c,0x63,0x74,0x2d])+_0x1acd89(_0x7bffd8(_0x25e7a5)),_0x2ed248=window[_0x2e8b95([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2e8b95([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x59e36c);return _0x2ed248?window[_0x2e8b95([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x432410(_0x2ed248),0x10)*_0x437fae:null;}function _0x3ef8d4(_0x350abf){return new window[(_0x2e8b95([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1b1069,_0x54265e)=>{_0x350abf[_0x2e8b95([0x74,0x68,0x65,0x6e])](_0x1b1069,_0x54265e),window[_0x2e8b95([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x54265e,0x56b21a53^_0x414f8d);});}}_0x48ee39[_0x2e8b95([0x6f,0x6e])](_0x2e8b95([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2a5d68,_0x1fa5f9)=>{if(_0x1fa5f9[0x0]!=_0x25e7a5)return _0x3dc10e(_0x2e8b95([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1fa5f9[0x1]={..._0x1fa5f9[0x1],[_0x2e8b95([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x576a33};},{[_0x2e8b95([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2e8b95([0x68,0x69,0x67,0x68])}),_0x48ee39[_0x2e8b95([0x6f,0x6e])](_0x2e8b95([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1ab586=>{_0x98d661(_0x1ab586[_0x2e8b95([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x592b13=!0x0,_0xb17c42(_0x1ab586[_0x2e8b95([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2e8b95([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2e8b95([0x6c,0x6f,0x77])}),_0x55fbe5[_0x2e8b95([0x74,0x68,0x65,0x6e])](()=>{_0x592b13||_0x3dc10e(_0x2e8b95([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x7ad814(){return _0x48ee39[_0x2e8b95([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e8b95([0x76,0x69,0x65,0x77])][_0x2e8b95([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2e8b95([0x61,0x75,0x74,0x6f]);}function _0x11cc5a(){_0x48ee39[_0x2e8b95([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e8b95([0x76,0x69,0x65,0x77])][_0x2e8b95([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2e8b95([0x61,0x75,0x74,0x6f]);}}function _0x2a3325(_0x574207){const _0x443661=[new window[(_0x2e8b95([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b77c1=>setTimeout(_0x5b77c1,0x56baf05f^_0x414f8d)),_0x55fbe5[_0x2e8b95([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2e8b95([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16c8b8=>{let _0x368e66=0x0;_0x48ee39[_0x2e8b95([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e8b95([0x6f,0x6e])](_0x2e8b95([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x320b55,_0x219567)=>{_0x219567[0x0][_0x2e8b95([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x368e66++,_0x368e66==(0x56b3cf6b^_0x414f8d)&&(_0x16c8b8(),_0x320b55[_0x2e8b95([0x6f,0x66,0x66])]());});}))];return window[_0x2e8b95([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2e8b95([0x72,0x61,0x63,0x65])](_0x443661)[_0x2e8b95([0x74,0x68,0x65,0x6e])](()=>_0x574207);}async function _0x33b501(){await _0x55fbe5,_0x48ee39[_0x2e8b95([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e8b95([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x19b758,_0x48ee39[_0x2e8b95([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e8b95([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x19b758,_0x48ee39[_0x2e8b95([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2e8b95([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x10dcfa(){return _0x2fadc6(_0x2e8b95([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xe8867e(_0x2e8b95([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2e8b95([0x73,0x74,0x61,0x74,0x65])]==_0x2e8b95([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5d373e(){return _0x2fadc6(_0x2e8b95([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 _0x4caee6(){return _0x2fadc6(_0x2e8b95([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xf2baf5(_0x26a2e4){const _0xc355b8=_0x345645();_0x48ee39[_0xc355b8]=_0x2e8b95([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x26a2e4,_0x26a2e4!=_0x2e8b95([0x56,0x61,0x6c,0x69,0x64])&&_0x33b501();}function _0x345645(){const _0xf87b41=window[_0x2e8b95([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2e8b95([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2e8b95([0x6e,0x6f,0x77])]())[_0x2e8b95([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2e8b95([0x2e]),'');let _0x1e9d75=_0x2e8b95([0x66]);for(let _0x43c531=0x0;_0x43c531<_0xf87b41[_0x2e8b95([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43c531+=0x2){let _0x47b22e=window[_0x2e8b95([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf87b41[_0x2e8b95([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x43c531,_0x43c531+0x2));_0x47b22e>=_0x584814[_0x2e8b95([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x47b22e-=_0x584814[_0x2e8b95([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1e9d75+=_0x584814[_0x47b22e];}return _0x1e9d75;}function _0x46fe4a(){const _0x49d53c=_0x144818[_0x2e8b95([0x73,0x70,0x6c,0x69,0x74])](_0x2e8b95([0x2e]));if(0x3!=_0x49d53c[_0x2e8b95([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3bd60c(_0x49d53c[0x1]);function _0x3bd60c(_0x4a1bfe){const _0x14eebf=_0x4917f4(_0x4a1bfe);return _0x14eebf&&_0x239a90()?_0x14eebf:null;function _0x239a90(){const _0x58a0e4=_0x14eebf[_0x2e8b95([0x6a,0x74,0x69])],_0x1c2202=window[_0x2e8b95([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58a0e4[_0x2e8b95([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x58a0e4[_0x2e8b95([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xf8945c={..._0x14eebf,[_0x2e8b95([0x6a,0x74,0x69])]:_0x58a0e4[_0x2e8b95([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x58a0e4[_0x2e8b95([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xf8945c[_0x2e8b95([0x76,0x63])],_0x7bffd8(_0xf8945c)==_0x1c2202;}}}async function _0x583c47(){let _0x5cf6b9=!0x0;try{const _0x3db8a4=_0x144818[_0x2e8b95([0x73,0x70,0x6c,0x69,0x74])](_0x2e8b95([0x2e])),[_0x7bdbf5,_0x62da14,_0x9a8a77]=_0x3db8a4;return _0x44fbe4(_0x7bdbf5),await _0x1e9f6c(_0x7bdbf5,_0x62da14,_0x9a8a77),_0x5cf6b9;}catch{return!0x1;}function _0x44fbe4(_0x50ab02){const _0x340562=_0x4917f4(_0x50ab02);_0x340562&&_0x340562[_0x2e8b95([0x61,0x6c,0x67])]==_0x2e8b95([0x45,0x53,0x32,0x35,0x36])||(_0x5cf6b9=!0x1);}async function _0x1e9f6c(_0xd3456a,_0x8aca1,_0x1580a3){const _0x3239eb=window[_0x2e8b95([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2e8b95([0x66,0x72,0x6f,0x6d])](_0x4dad4b(_0x1580a3),_0x532fea=>_0x532fea[_0x2e8b95([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x460816=new window[(_0x2e8b95([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2e8b95([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xd3456a+_0x2e8b95([0x2e])+_0x8aca1),_0x141846=window[_0x2e8b95([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2e8b95([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x141846)return;const _0x28c6c1=await _0x141846[_0x2e8b95([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2e8b95([0x6a,0x77,0x6b]),_0x20bb0a,{[_0x2e8b95([0x6e,0x61,0x6d,0x65])]:_0x2e8b95([0x45,0x43,0x44,0x53,0x41]),[_0x2e8b95([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2e8b95([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2e8b95([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x141846[_0x2e8b95([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2e8b95([0x6e,0x61,0x6d,0x65])]:_0x2e8b95([0x45,0x43,0x44,0x53,0x41]),[_0x2e8b95([0x68,0x61,0x73,0x68])]:{[_0x2e8b95([0x6e,0x61,0x6d,0x65])]:_0x2e8b95([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x28c6c1,_0x3239eb,_0x460816)||(_0x5cf6b9=!0x1);}}function _0x4917f4(_0x285d1e){return _0x285d1e[_0x2e8b95([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2e8b95([0x65,0x79]))?JSON[_0x2e8b95([0x70,0x61,0x72,0x73,0x65])](_0x4dad4b(_0x285d1e)):null;}function _0x4dad4b(_0x1d9bfe){return window[_0x2e8b95([0x61,0x74,0x6f,0x62])](_0x1d9bfe[_0x2e8b95([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2e8b95([0x2b]))[_0x2e8b95([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2e8b95([0x2f])));}function _0x7bffd8(_0x3ba5ac){let _0x435103=0x1505;function _0x1cac31(_0x151143){for(let _0x288d02=0x0;_0x288d02<_0x151143[_0x2e8b95([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x288d02++){const _0x320b27=_0x151143[_0x2e8b95([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x288d02);_0x435103=(_0x435103<<0x5)+_0x435103+_0x320b27,_0x435103&=_0x435103;}}function _0x5df5a5(_0x1ba474){Array[_0x2e8b95([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1ba474)?_0x1ba474[_0x2e8b95([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5df5a5):_0x1ba474&&typeof _0x1ba474==_0x2e8b95([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2e8b95([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1ba474)[_0x2e8b95([0x73,0x6f,0x72,0x74])]()[_0x2e8b95([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xbb267b,_0x36db54])=>{_0x1cac31(_0xbb267b),_0x5df5a5(_0x36db54);}):_0x1cac31(window[_0x2e8b95([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1ba474));}return _0x5df5a5(_0x3ba5ac),_0x435103>>>0x0;}function _0x1acd89(_0x12ee64){return _0x12ee64[_0x2e8b95([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2e8b95([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2e8b95([0x30]));}function _0x432410(_0x4b9769){return _0x4b9769[_0x2e8b95([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2e8b95([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2e8b95([0x6a,0x6f,0x69,0x6e])]('');}function _0x2fadc6(_0x54ff76){return _0x48ee39[_0x2e8b95([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2e8b95([0x68,0x61,0x73])](_0x54ff76);}function _0xe8867e(_0xbeed1b){return _0x48ee39[_0x2e8b95([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2e8b95([0x67,0x65,0x74])](_0xbeed1b);}function _0x19b758(){}function _0x2e8b95(_0x22b37c){return _0x22b37c['map'](_0x10833c=>String['fromCharCode'](_0x10833c))['join']('');}_0xf2baf5(await _0xb313d9());}(this);}set['adapter'](_0xd4779d){if(this['_adapter'])throw new _0x84cc70('track-changes-adapter-already-set',this);this['_adapter']=_0xd4779d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5e811d=!0x1,toJSON:_0x4ac8bc=!0x1}={}){const _0x3dbd6e=[];for(const _0x1038be of this['_suggestions']['values']())_0x5e811d&&!_0x1038be['isInContent']||_0x3dbd6e['push'](_0x1038be);return _0x4ac8bc?_0x3dbd6e['map'](_0x484079=>_0x484079['toJSON']()):_0x3dbd6e;}['getSuggestion'](_0x1641d){const _0x4b08c1=this['_suggestions']['get'](_0x1641d);if(!_0x4b08c1)throw new _0x84cc70('track-changes-suggestion-not-found',this);return _0x4b08c1;}['hasSuggestion'](_0x1c8c42){return this['_suggestions']['has'](_0x1c8c42);}['addSuggestionData'](_0x6b80fb){const {authorId:_0xf5236c,id:_0x99c9a6,originalSuggestionId:_0x6d975a,attributes:_0x1ce470}=_0x6b80fb,[_0x1978dc,_0x5460df]=_0x6b80fb['type']['split'](':'),_0x5348a4=this['_suggestions']['get'](_0x99c9a6)||this['_createSuggestion'](_0x1978dc,_0x5460df,_0x99c9a6,_0xf5236c,_0x1ce470,_0x6d975a);if(this['_addThreadToSuggestion'](_0x5348a4),this['_checkSuggestionCorrectness'](_0x5348a4,_0x1978dc,_0x5460df||null,_0xf5236c),_0x5348a4['createdAt']=_0x6b80fb['createdAt'],_0x5348a4['_isDataLoaded']=!0x0,_0x1ce470&&_0x1ce470['@external']){const _0xec126e=_0x1ce470['@external'],_0x315325=this['_getExternalAuthor'](_0xec126e['authorName']);_0x5348a4['authoredAt']=_0xec126e['createdAt'],_0x5348a4['author']=_0x315325,_0x5348a4['isExternal']=!0x0;}else _0x5348a4['authoredAt']=_0x6b80fb['createdAt'];switch(_0x6b80fb['data']&&(_0x5348a4['data']=_0x6b80fb['data']),_0x6b80fb['attributes']&&(_0x5348a4['attributes']=_0x6b80fb['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5348a4['_saved']=!0x0),this['_suggestionState']['get'](_0x5348a4)){case'notReady':this['_suggestionState']['set'](_0x5348a4,'dataReady');break;case'markerReady':_0x5348a4['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5348a4])),this['_refreshSuggestionsChain'](new Set([_0x5348a4])),this['_suggestionState']['set'](_0x5348a4,'ready'),this['fire']('suggestionLoaded',_0x5348a4)):this['_suggestionState']['set'](_0x5348a4,'removed');}return _0x5348a4;}['acceptSuggestion'](_0x45ccde){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5be4b1 of _0x45ccde['getAllAdjacentSuggestions']())_0x5be4b1['accept']();});});}['discardSuggestion'](_0x4a912e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1cae2f of _0x4a912e['getAllAdjacentSuggestions']())_0x1cae2f['discard']();});});}['enableCommand'](_0x44e01f,_0x49b465){const _0x5bb728=this['editor']['commands']['get'](_0x44e01f);if(!_0x5bb728)throw new _0x84cc70('track-changes-command-not-found',this,{'commandName':_0x44e01f});if(this['_enabledCommands']['has'](_0x5bb728))throw new _0x84cc70('track-changes-enable-command-twice',this,{'commandName':_0x44e01f});this['_enabledCommands']['add'](_0x5bb728),_0x49b465&&_0x5bb728['on']('execute',(_0x4f1788,_0x231b1c)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x231b1c['length']>0x0&&_0x231b1c[_0x231b1c['length']-0x1]&&_0x231b1c[_0x231b1c['length']-0x1]['forceDefaultExecution']?_0x231b1c['pop']():(_0x4f1788['return']=_0x49b465((..._0x275b8d)=>_0x5bb728['execute'](..._0x275b8d,{'forceDefaultExecution':!0x0}),..._0x231b1c),_0x4f1788['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x59bcbd){let _0x251303,_0x4af163;const _0x174201=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x251303=_0x59bcbd();}catch(_0x1c3671){_0x4af163=_0x1c3671;}return _0x174201||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4af163&&_0x84cc70['rethrowUnexpectedError'](_0x4af163,this),_0x251303;}['markInsertion'](_0x57c3f9,_0x21156c=null,_0x1f6960={}){if(_0x57c3f9['isCollapsed'])return null;const _0x19e565=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x1f6960['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x27fade,meta:_0x9ab72c}of this['_findSuggestions'](_0x57c3f9,'insertion'))if(_0x9ab72c['isOwn']){if(!_0x9ab72c['isNextTo']){if(_0x9ab72c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x27fade,_0x1f6960))continue;return _0x27fade;}if(Qt(_0x27fade,_0x1f6960))return _0x27fade;this['_breakSuggestionMarker'](_0x27fade,_0x57c3f9['start'],_0x57c3f9['end']);break;}if(_0x21156c==_0x27fade['subType']&&Qt(_0x27fade,_0x1f6960)){const _0x2beb7b=_0x27fade['getFirstRange']();return _0x2beb7b['start']['isEqual'](_0x57c3f9['end'])?this['_setSuggestionRange'](_0x27fade,this['_model']['createRange'](_0x57c3f9['start'],_0x2beb7b['end'])):this['_setSuggestionRange'](_0x27fade,this['_model']['createRange'](_0x2beb7b['start'],_0x57c3f9['end'])),_0x27fade;}}const _0x3b6ad4=_0x924ea4(),_0x38dea3=_0x19e565['id'],_0x33e1a2=_0x21156c?'insertion:'+_0x21156c:'insertion',_0x4442d3=this['_setSuggestionData']({'id':_0x3b6ad4,'type':_0x33e1a2,'createdAt':new Date(),'authorId':_0x38dea3,'attributes':_0x1f6960});return this['_addSuggestionMarker'](_0x33e1a2,_0x3b6ad4,_0x38dea3,_0x57c3f9),_0x4442d3;}['markMultiRangeInsertion'](_0x3b9fb2,_0x5b4ddf='multi',_0x110084={}){const _0x32ddbb=this['editor']['plugins']['get']('Users')['me'],_0x541f9d=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5b4ddf,'join');this['_trackingSessionId']&&(_0x110084['trackingSessionId']=this['_trackingSessionId']);for(const _0x292803 of this['getSuggestions']())if(_0x292803['author']['id']==_0x32ddbb['id']&&'insertion'==_0x292803['type']&&_0x292803['subType']==_0x5b4ddf&&Qt(_0x292803,_0x110084)&&(_0x541f9d(_0x292803['getRanges'](),_0x3b9fb2)||_0x541f9d(_0x3b9fb2,_0x292803['getRanges']()))){for(const _0x69ee6c of _0x3b9fb2)_0x292803['addRange'](_0x69ee6c);return _0x292803;}for(const {suggestion:_0x513147,meta:_0x390baa}of this['_findSuggestions'](_0x3b9fb2,'insertion')){if(!_0x390baa['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x390baa['containsRangeInObject'])continue;if(!Qt(_0x513147,_0x110084))continue;let _0xf66566=!0x0;for(const _0xab591f of _0x513147['getRanges']())for(const _0x1f6bc1 of _0x3b9fb2)if(!_0xab591f['containsRange'](_0x1f6bc1)){_0xf66566=!0x1;break;}if(_0xf66566)return _0x513147;}const _0x31c29c=_0x924ea4(),_0x2e37ef=_0x32ddbb['id'],_0x14ad64='insertion:'+_0x5b4ddf,_0x53444b=this['_setSuggestionData']({'id':_0x31c29c,'type':_0x14ad64,'createdAt':new Date(),'authorId':_0x2e37ef,'attributes':_0x110084});for(const _0x57cc77 of _0x3b9fb2)this['_addSuggestionMarker'](_0x14ad64,_0x31c29c,_0x2e37ef,_0x57cc77,T['getMultiRangeId']());return _0x53444b;}['markInlineFormat'](_0xb1d493,_0x3bacdf,_0x2f9fc0=null,_0x12b48b={}){if(_0x2f9fc0=_0x2f9fc0||Lt(_0x3bacdf),_0xb1d493['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x12b48b['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x522e54=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2f9fc0,'accept');return this['forceDefaultExecution'](()=>_0x522e54([_0xb1d493],_0x3bacdf,_0x12b48b)),null;}const _0x24f9ef=this['editor']['plugins']['get']('Users')['me'],_0x5c09b3=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x26d0d9,meta:_0x2efde8}of this['_findSuggestions'](_0xb1d493,'insertion'))_0x2efde8['isOwn']&&!_0x2efde8['isInsideObject']&&_0x5c09b3['push'](..._0x26d0d9['getRanges']());}const _0x2b3e5b=function(_0x4c72c4,_0x2ba6c6){const _0x4eefd3=[];for(const _0x464307 of _0x2ba6c6){const _0x514b35=_0x4c72c4['getIntersection'](_0x464307);_0x514b35&&_0x4eefd3['push'](_0x514b35);}return _0x4eefd3;}(_0xb1d493,_0x5c09b3),_0x437b1c=function(_0x1faa41,_0x26aa6a){const _0x5d18dd=[_0x1faa41];for(const _0x530f48 of _0x26aa6a){let _0x4c6cc0=0x0;for(;_0x4c6cc0<_0x5d18dd['length'];){const _0x1dbf3f=_0x5d18dd[_0x4c6cc0]['getDifference'](_0x530f48);_0x5d18dd['splice'](_0x4c6cc0,0x1,..._0x1dbf3f),_0x4c6cc0+=_0x1dbf3f['length'];}}return _0x5d18dd;}(_0xb1d493,_0x5c09b3);_0x2b3e5b['length']&&this['_model']['change'](()=>{for(const _0x57f2fb of _0x2b3e5b){const _0x5906db=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2f9fc0,'accept');this['forceDefaultExecution'](()=>_0x5906db([_0x57f2fb],_0x3bacdf,_0x12b48b));}});for(const _0x354419 of _0x437b1c){let _0x187a30=null,_0x32d1e5=_0x354419['start'],_0x29b56c=_0x354419['end'];for(const {suggestion:_0x9b6b3e,meta:_0x3a1385}of this['_findSuggestions'](_0x354419,'formatInline')){if(!_0x3a1385['isOwn'])continue;if(_0x9b6b3e['subType']!=_0x2f9fc0)continue;if(!Qt(_0x9b6b3e,_0x12b48b))continue;const _0x3efe18=_0x9b6b3e['getFirstRange']();if(_0x3efe18['containsRange'](_0x354419,!0x0))return null;_0x32d1e5=_0x32d1e5['isBefore'](_0x3efe18['start'])?_0x32d1e5:_0x3efe18['start'],_0x29b56c=_0x29b56c['isAfter'](_0x3efe18['end'])?_0x29b56c:_0x3efe18['end'],_0x187a30?_0x3efe18['start']['isBefore'](_0x187a30['getFirstRange']()['start'])?(_0x187a30['removeMarkers'](),_0x187a30=_0x9b6b3e):_0x9b6b3e['removeMarkers']():_0x187a30=_0x9b6b3e;}const _0x5a90ff=this['_model']['createRange'](_0x32d1e5,_0x29b56c);if(_0x187a30)this['_setSuggestionRange'](_0x187a30,_0x5a90ff);else{const _0x463bc2=_0x924ea4(),_0x3cbc97=_0x24f9ef['id'];this['_setSuggestionData']({'id':_0x463bc2,'type':'formatInline:'+_0x2f9fc0,'data':_0x3bacdf,'createdAt':new Date(),'authorId':_0x3cbc97,'attributes':_0x12b48b}),this['_addSuggestionMarker']('formatInline:'+_0x2f9fc0,_0x463bc2,_0x3cbc97,_0x5a90ff);}}return null;}['markBlockFormat'](_0x3bf724,_0x5ed445,_0x3a95fa=[],_0xcf417f=null,_0x37c1c8={}){_0x5ed445['formatGroupId']||(_0x5ed445['formatGroupId']=_0x5ed445['commandName']),_0x5ed445['multipleBlocks']=_0x3bf724['is']('range'),_0xcf417f=_0xcf417f||Lt(_0x5ed445);const _0x53fe2a=_0x3a95fa['map'](_0x57c5a1=>qt(_0x57c5a1,this['_model'])),_0x5867e3=_0x3bf724['is']('range')?_0x3bf724:qt(_0x3bf724,this['_model']);if(this['_trackingSessionId']&&(_0x37c1c8['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x40fc6d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xcf417f,'accept');return this['forceDefaultExecution'](()=>_0x40fc6d([_0x5867e3],_0x5ed445,_0x37c1c8)),null;}_0x53fe2a['push'](_0x5867e3);let _0x4058a8=!0x0;for(const _0x5e40c7 of _0x53fe2a)if(!this['_rangeIsInLocalUserInsertion'](_0x5e40c7)){_0x4058a8=!0x1;break;}if(_0x4058a8&&'always'!==this['_trackFormatChanges']){const _0x4f716c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xcf417f,'accept');return this['forceDefaultExecution'](()=>_0x4f716c([_0x5867e3],_0x5ed445,_0x37c1c8)),null;}let _0x163dda=null,_0x196563=_0x5867e3['start'],_0xad2946=_0x5867e3['end'];for(const {suggestion:_0x5a8a17,meta:_0x16ba8f}of this['_findSuggestions'](_0x5867e3,'formatBlock')){if(!_0x16ba8f['isOwn'])continue;if(_0x16ba8f['isNextTo']||_0x16ba8f['containsRangeInObject']||_0x16ba8f['isInsideObject'])continue;if(_0x5a8a17['data']['formatGroupId']!=_0x5ed445['formatGroupId'])continue;if(!Qt(_0x5a8a17,_0x37c1c8))continue;const _0x2d233d=_0x5a8a17['getFirstRange']();if(_0x5a8a17['subType']==_0xcf417f){if(_0x2d233d['containsRange'](_0x5867e3,!0x0))return null;_0x196563=_0x196563['isBefore'](_0x2d233d['start'])?_0x196563:_0x2d233d['start'],_0xad2946=_0xad2946['isAfter'](_0x2d233d['end'])?_0xad2946:_0x2d233d['end'],_0x163dda?_0x2d233d['start']['isBefore'](_0x163dda['getFirstRange']()['start'])?(_0x163dda['removeMarkers'](),_0x163dda=_0x5a8a17):_0x5a8a17['removeMarkers']():_0x163dda=_0x5a8a17;}else{const _0x5474fb=_0x5867e3['getIntersection'](_0x2d233d);this['_cutOutSuggestionMarker'](_0x5a8a17,_0x5474fb);}}const _0x2b30cb=this['editor']['plugins']['get']('Users')['me'],_0x12c6df=_0x924ea4(),_0x57c153=_0x2b30cb['id'];if(_0x163dda)return this['_setSuggestionRange'](_0x163dda,this['_model']['createRange'](_0x196563,_0xad2946)),_0x163dda;{const _0x2bfa41=this['_setSuggestionData']({'id':_0x12c6df,'type':'formatBlock:'+_0xcf417f,'data':_0x5ed445,'createdAt':new Date(),'authorId':_0x57c153,'attributes':_0x37c1c8});return this['_addSuggestionMarker']('formatBlock:'+_0xcf417f,_0x12c6df,_0x57c153,this['_model']['createRange'](_0x196563,_0xad2946)),_0x2bfa41;}}['markMultiRangeBlockFormat'](_0x4e51e5,_0x46c76f,_0x53f6e5=[],_0x13265a=null,_0x450b7e={}){_0x46c76f['formatGroupId']||(_0x46c76f['formatGroupId']=_0x46c76f['commandName']);const _0x44061d=_0x4e51e5[0x0];_0x46c76f['multipleBlocks']=_0x44061d['is']('range'),_0x13265a=_0x13265a||Lt(_0x46c76f);const _0x27d145=_0x53f6e5['map'](_0x1f1d57=>qt(_0x1f1d57,this['_model'])),_0x358b02=_0x44061d['is']('range')?_0x4e51e5:_0x4e51e5['map'](_0x181979=>qt(_0x181979,this['_model']));if(this['_trackingSessionId']&&(_0x450b7e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x275109=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x13265a,'accept');return this['forceDefaultExecution'](()=>_0x275109(_0x358b02,_0x46c76f,_0x450b7e)),null;}_0x27d145['push'](..._0x358b02);let _0x33ceac=!0x0;for(const _0x53f632 of _0x27d145)if(!this['_rangeIsInLocalUserInsertion'](_0x53f632)){_0x33ceac=!0x1;break;}if(_0x33ceac&&'always'!==this['_trackFormatChanges']){const _0x12b8bd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x13265a,'accept');return this['forceDefaultExecution'](()=>_0x12b8bd(_0x358b02,_0x46c76f,_0x450b7e)),null;}const _0x17180d=this['editor']['plugins']['get']('Users')['me'];for(const _0x37657a of this['getSuggestions']()){const _0x1737a9=_0x37657a['data'];if(_0x37657a['author']['id']!=_0x17180d['id'])continue;if('formatBlock'!=_0x37657a['type']||_0x1737a9['formatGroupId']!=_0x46c76f['formatGroupId'])continue;if(!Qt(_0x37657a,_0x450b7e))continue;const _0x42f4ad=_0x37657a['subType']==_0x13265a;for(let _0x3781eb=0x0;_0x3781eb<_0x358b02['length'];_0x3781eb++){const _0x508c38=_0x358b02[_0x3781eb];for(const _0x39aa5b of _0x37657a['getMarkers']()){const _0x5d00bf=_0x39aa5b['getRange']();if(_0x508c38['isEqual'](_0x5d00bf)){_0x42f4ad?(_0x358b02['splice'](_0x3781eb,0x1),_0x3781eb--):_0x37657a['removeMarker'](_0x39aa5b['name']);break;}}}}if(0x0==_0x358b02['length'])return null;const _0x2bdb65=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x13265a,'join');for(const _0x58fb92 of this['getSuggestions']()){const _0x18260b=_0x58fb92['data'];if(_0x58fb92['author']['id']==_0x17180d['id']&&('formatBlock'==_0x58fb92['type']&&_0x18260b['formatGroupId']==_0x46c76f['formatGroupId']&&_0x58fb92['subType']==_0x13265a&&Qt(_0x58fb92,_0x450b7e)&&(_0x2bdb65(_0x58fb92['getRanges'](),_0x358b02)||_0x2bdb65(_0x358b02,_0x58fb92['getRanges']())))){for(const _0x21545a of _0x358b02)_0x58fb92['addRange'](_0x21545a);return _0x58fb92;}}const _0x33b54a=_0x924ea4(),_0x5a13c8=_0x17180d['id'],_0x46ece5='formatBlock:'+_0x13265a,_0x461035=this['_setSuggestionData']({'id':_0x33b54a,'type':_0x46ece5,'data':_0x46c76f,'createdAt':new Date(),'authorId':_0x5a13c8,'attributes':_0x450b7e});for(const _0x3115ab of _0x358b02)this['_addSuggestionMarker'](_0x46ece5,_0x33b54a,_0x5a13c8,_0x3115ab,T['getMultiRangeId']());return _0x461035;}['markDeletion'](_0x5cbd1b,_0x25f223=null,_0x3a5478={}){if(_0x5cbd1b['isCollapsed'])return null;const _0x199534=this['editor']['plugins']['get']('Users')['me'],_0x5b53b9=new _0x1c65a2(_0x5cbd1b['start'],_0x5cbd1b['end']);this['_trackingSessionId']&&(_0x3a5478['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x49ebc9,meta:_0x4acfd8}of this['_findSuggestions'](_0x5b53b9,'insertion'))if(_0x4acfd8['isOwn']&&!_0x4acfd8['isNextTo']){if(_0x49ebc9['isMultiRange']){const _0x1b6e3d=_0x49ebc9['getRanges']()['filter'](_0x1b4d4f=>'$graveyard'!=_0x1b4d4f['root']['rootName']);_0x1b6e3d['every'](_0xd3615c=>_0x5b53b9['containsRange'](_0xd3615c,!0x0))&&_0x49ebc9['discard']();if(_0x1b6e3d['some'](_0x59e394=>_0x59e394['containsRange'](_0x5b53b9,!0x0))){const _0x13d2fd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25f223,'accept');return this['forceDefaultExecution'](()=>_0x13d2fd([_0x5b53b9],null,_0x3a5478)),null;}}else{const _0x19de77=_0x5b53b9['getIntersection'](_0x49ebc9['getFirstRange']());null!==_0x19de77&&_0x49ebc9['_onDiscard']([_0x19de77],null,_0x3a5478);}}if(_0x5b53b9['detach'](),_0x5b53b9['isCollapsed']||'$graveyard'==_0x5b53b9['root']['rootName'])return null;let _0x446ff9=null,_0x2f2e13=_0x5b53b9['start'],_0xaf5e80=_0x5b53b9['end'];const _0x5c559b=this['_findSuggestions'](_0x5b53b9,'deletion');for(const {suggestion:_0x2fa166,meta:_0xc1f45d}of _0x5c559b){const _0x5ea60e=this['_model']['createRange'](_0x2f2e13,_0xaf5e80);if(_0xc1f45d['isOwn']&&(this['_mergeNestedSuggestions']||!_0xc1f45d['containsRangeInObject']&&!_0xc1f45d['isInsideObject'])){if(_0x2fa166['isMultiRange']){if(!Qt(_0x2fa166,_0x3a5478))continue;let _0xba950d=!0x0;for(const _0x15c2a8 of _0x2fa166['getRanges']()){if(_0x15c2a8['containsRange'](_0x5ea60e,!0x0))return _0x2fa166;_0x5ea60e['containsRange'](_0x15c2a8)||(_0xba950d=!0x1);}_0xba950d&&_0x2fa166['discard']();}else{const _0xce0362=_0x2fa166['getFirstRange']();if(_0xce0362['containsRange'](_0x5ea60e,!0x0))return _0x2fa166;if(!Qt(_0x2fa166,_0x3a5478)){_0x5ea60e['containsRange'](_0xce0362)?_0x2fa166['removeMarkers']():_0xce0362['containsPosition'](_0x2f2e13)?_0x2f2e13=_0xce0362['end']:_0xce0362['containsPosition'](_0xaf5e80)&&(_0xaf5e80=_0xce0362['start']);continue;}_0x2f2e13=_0x2f2e13['isBefore'](_0xce0362['start'])?_0x2f2e13:_0xce0362['start'],_0xaf5e80=_0xaf5e80['isAfter'](_0xce0362['end'])?_0xaf5e80:_0xce0362['end'],_0x3a5478=Object['assign']({},_0x2fa166['attributes']),_0x446ff9?_0xce0362['start']['isBefore'](_0x446ff9['getFirstRange']()['start'])?(_0x446ff9['removeMarkers'](),_0x446ff9=_0x2fa166):_0x2fa166['removeMarkers']():_0x446ff9=_0x2fa166;}}}if(_0x446ff9)return this['_setSuggestionRange'](_0x446ff9,this['_model']['createRange'](_0x2f2e13,_0xaf5e80)),_0x446ff9;{const _0x17e264=_0x924ea4(),_0xe6a237=this['_model']['createRange'](_0x2f2e13,_0xaf5e80),_0x2485cf=_0x199534['id'],_0x47fb5e=_0x25f223?'deletion:'+_0x25f223:'deletion',_0x3867d9=this['_setSuggestionData']({'id':_0x17e264,'type':_0x47fb5e,'createdAt':new Date(),'authorId':_0x2485cf,'attributes':_0x3a5478});return this['_addSuggestionMarker'](_0x47fb5e,_0x17e264,_0x2485cf,_0xe6a237),_0x3867d9;}}['markMultiRangeDeletion'](_0x59e179,_0x154c36='multi',_0x247de4={}){const _0x242d26=this['editor']['plugins']['get']('Users')['me'],_0xc2ff25=_0x59e179['map'](_0x9bdd36=>new _0x1c65a2(_0x9bdd36['start'],_0x9bdd36['end'])),_0x237cc4=new Set();this['_trackingSessionId']&&(_0x247de4['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x6c5000,meta:_0x3912be}of this['_findSuggestions'](_0xc2ff25,'insertion'))_0x3912be['isOwn']&&!_0x3912be['isNextTo']&&_0x237cc4['add'](_0x6c5000);for(const _0x33e476 of _0x237cc4)if(_0x33e476['isMultiRange']){const _0x54a0df=_0x33e476['getRanges']();(!_0x33e476['attributes']||!_0x33e476['attributes']['skipNestingCheck'])&&(_0x54a0df['every'](_0x5dad7b=>_0xc2ff25['some'](_0x543f0b=>_0x543f0b['containsRange'](_0x5dad7b,!0x0)))&&_0x33e476['discard']());if(_0xc2ff25['every'](_0x32c866=>_0x54a0df['some'](_0x599457=>_0x599457['containsRange'](_0x32c866,!0x0)))){const _0x1189f2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x154c36,'accept');return this['forceDefaultExecution'](()=>_0x1189f2(_0x59e179,null,_0x247de4)),null;}}else{const _0x12c774=_0x33e476['getFirstRange']();_0xc2ff25['some'](_0x186535=>_0x186535['containsRange'](_0x12c774,!0x0))&&_0x33e476['discard']();if(_0xc2ff25['every'](_0x54332a=>_0x12c774['containsRange'](_0x54332a,!0x0))){const _0x5dc842=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x154c36,'accept');return this['forceDefaultExecution'](()=>_0x5dc842(_0xc2ff25,null,_0x247de4)),null;}}const _0x1930b8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x154c36,'join');let _0xb85818=null;for(const _0x765f86 of this['getSuggestions']())if(_0x765f86['author']['id']==_0x242d26['id']&&_0x765f86['isInContent']&&'deletion'==_0x765f86['type']&&_0x765f86['subType']==_0x154c36&&Qt(_0x765f86,_0x247de4)&&(_0x1930b8(_0x765f86['getRanges'](),_0xc2ff25)||_0x1930b8(_0xc2ff25,_0x765f86['getRanges']()))){if(_0xb85818){if(_0x765f86['commentThread']&&_0x765f86['commentThread']['length'])continue;for(const _0x4dc747 of _0x765f86['getRanges']())_0xb85818['isIntersectingWithRange'](_0x4dc747)||_0xb85818['addRange'](_0x4dc747);_0x765f86['removeMarkers']();}else{_0xb85818=_0x765f86;for(const _0x55ea5f of _0xc2ff25)_0x765f86['isIntersectingWithRange'](_0x55ea5f)||_0x765f86['addRange'](_0x55ea5f);}}if(_0xb85818)return _0xb85818;_0x237cc4['clear']();for(const {suggestion:_0x144ff3,meta:_0xe2d699}of this['_findSuggestions'](_0xc2ff25,'deletion'))_0xe2d699['isOwn']&&(this['_mergeNestedSuggestions']||!_0xe2d699['containsRangeInObject']&&!_0xe2d699['isInsideObject'])&&Qt(_0x144ff3,_0x247de4)&&_0x237cc4['add'](_0x144ff3);for(const _0x29826d of _0x237cc4){const _0x1338d4=_0x29826d['getRanges']();if(!_0x247de4||!_0x247de4['skipNestingCheck']){if(_0xc2ff25['every'](_0x262406=>_0x1338d4['some'](_0x210120=>_0x210120['containsRange'](_0x262406,!0x0))))return _0x29826d;}(!_0x29826d['attributes']||!_0x29826d['attributes']['skipNestingCheck'])&&(_0x1338d4['every'](_0x1554fb=>_0xc2ff25['some'](_0x23f27d=>_0x23f27d['containsRange'](_0x1554fb,!0x0)))&&_0x29826d['discard']());}const _0x7cf2e0=_0x924ea4(),_0x580707=_0x242d26['id'],_0x52a607='deletion:'+_0x154c36,_0x58d9f0=this['_setSuggestionData']({'id':_0x7cf2e0,'type':_0x52a607,'createdAt':new Date(),'authorId':_0x580707,'attributes':_0x247de4});for(const _0x57b5e9 of _0xc2ff25)_0x57b5e9['detach'](),_0x57b5e9['isCollapsed']||'$graveyard'==_0x57b5e9['root']['rootName']||this['_addSuggestionMarker'](_0x52a607,_0x7cf2e0,_0x580707,_0x57b5e9,T['getMultiRangeId']());return _0x58d9f0;}['markAttributeChange'](_0x17a180,_0x2e6330,_0x2dd77e,_0x5f0ad8,_0x3be07c){if(_0x17a180['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3f1c7d=this['editor']['plugins']['get']('Users')['me']['id'],_0x44011b=Array['from'](this['_suggestions']['values']())['filter'](_0x55ca3b=>'attribute'==_0x55ca3b['type']&&_0x55ca3b['data']['key']==_0x2e6330&&_0x55ca3b['isIntersectingWithRange'](_0x17a180));if(this['_trackingSessionId']&&(_0x3be07c['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x47af5a=this['_findSuggestions'](_0x17a180,'insertion')['filter'](({meta:_0x23c054})=>_0x23c054['isOwn']&&!_0x23c054['isInsideObject']&&!_0x23c054['isNextTo'])['map'](({suggestion:_0x8f75da})=>_0x8f75da);_0x44011b['unshift'](..._0x47af5a);}const _0x5427d6=new Map([[_0x17a180,_0x2dd77e]]);for(const _0x52a965 of _0x44011b){const _0x12cd93='attribute'==_0x52a965['type']?_0x52a965['data']['oldValue']:void 0x0,_0x19e01a=_0x52a965['getFirstRange'](),_0x2a2fc6=Array['from'](_0x5427d6['keys']())['find'](_0x3ed8cd=>_0x3ed8cd['isIntersecting'](_0x19e01a));if(!_0x2a2fc6)continue;const _0x26ce85=_0x2a2fc6['getDifference'](_0x19e01a);this['_isBlockAttribute'](_0x2e6330)&&'insertion'==_0x52a965['type']&&0x0!=_0x26ce85['length']||(_0x5427d6['delete'](_0x2a2fc6),_0x26ce85['forEach'](_0x5fe779=>{_0x5427d6['set'](_0x5fe779,_0x2dd77e);}),'insertion'!=_0x52a965['type']&&_0x12cd93!=_0x5f0ad8&&_0x5427d6['set'](_0x2a2fc6['getIntersection'](_0x19e01a),_0x12cd93));}const _0x51e861=[];for(const [_0x4de0cc,_0x2d925f]of _0x5427d6){const _0x539cb5=_0x924ea4(),_0x1c6e92={'key':_0x2e6330,'oldValue':_0x2d925f,'newValue':_0x5f0ad8};_0x2e6330['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':_0x2e6330});const _0x409d37=('attribute:'+(_0x2e6330+'|'+Lt({'newValue':_0x5f0ad8})))['substring'](0x0,0x3c),_0x1af2f2=this['_setSuggestionData']({'id':_0x539cb5,'type':_0x409d37,'data':_0x1c6e92,'createdAt':new Date(),'authorId':_0x3f1c7d,'attributes':_0x3be07c});_0x51e861['push'](_0x1af2f2),this['_addSuggestionMarker'](_0x409d37,_0x539cb5,_0x3f1c7d,_0x4de0cc);}return _0x51e861;}['enableDefaultAttributesIntegration'](_0x483750){this['enableCommand'](_0x483750,(_0x8b4bff,..._0x1f8cfb)=>{this['recordAttributeChanges'](()=>{_0x8b4bff(..._0x1f8cfb);});});}['registerBlockAttribute'](_0x425114){this['_blockAttributeKeys']['add'](_0x425114);}['registerInlineAttribute'](_0x3384c9){this['_inlineAttributeKeys']['add'](_0x3384c9);}['startTrackingSession'](_0x401660){return this['_trackingSessionId']=void 0x0!==_0x401660?_0x401660:_0x924ea4(),this['_trackingSessionId'];}['_getAttributeKey'](_0x590826){return'attribute'==_0x590826['type']?_0x590826['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2c44f4,_0x425dab){const _0xe53d4f=_0x2c44f4['getFirstMarker']();this['_model']['change'](_0x389cf4=>{_0x389cf4['updateMarker'](_0xe53d4f,{'range':_0x425dab});});}['_addThreadToSuggestion'](_0x3c4ace){const _0x1edef2=_0x3c4ace['id'],_0x3470a6=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1edef2)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3470a6,'threadId':_0x1edef2,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x160550=this['_commentsRepository']['getCommentThread'](_0x1edef2);_0x160550['unbind']('isRemovable'),_0x160550['isRemovable']=!0x1,_0x3c4ace['commentThread']=_0x160550;}['_checkSuggestionCorrectness'](_0x23cc1b,_0x429cfd,_0x31471a,_0x1588b7){if(_0x23cc1b['type']!=_0x429cfd||_0x23cc1b['subType']!=_0x31471a||_0x23cc1b['creator']['id']!=_0x1588b7)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x84cc70('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x384602,_0x2ae9a2){const _0x33326f=_0x384602['getFirstRange']();if(_0x2ae9a2['isEqual'](_0x33326f))_0x384602['removeMarkers']();else{if(_0x33326f['containsRange'](_0x2ae9a2)){const _0x200b78=this['_model']['createPositionAt'](_0x2ae9a2['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x384602,this['_model']['createRange'](_0x33326f['start'],_0x200b78));const _0x8d1166=_0x924ea4(),_0x10eda2=_0x384602['creator']['id'],_0x221532=_0x384602['type']+':'+_0x384602['subType'];this['_setSuggestionData']({'id':_0x8d1166,'type':_0x221532,'createdAt':new Date(),'authorId':_0x10eda2,'data':_0x384602['data'],'attributes':_0x384602['attributes']});const _0x7ccd56=this['_model']['createPositionAt'](_0x2ae9a2['end']['parent'],'after'),_0x56e57e=this['_model']['createRange'](_0x7ccd56,_0x33326f['end']);this['_addSuggestionMarker'](_0x221532,_0x8d1166,_0x10eda2,_0x56e57e);}else{if(_0x33326f['containsPosition'](_0x2ae9a2['start'])){const _0x2f7739=this['_model']['createPositionAt'](_0x2ae9a2['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x384602,this['_model']['createRange'](_0x33326f['start'],_0x2f7739));}else{const _0x4517e3=this['_model']['createPositionAt'](_0x2ae9a2['end']['parent'],'after');this['_setSuggestionRange'](_0x384602,this['_model']['createRange'](_0x4517e3,_0x33326f['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2a7bec){for(const {suggestion:_0x56204f,meta:_0x6dd2ee}of this['_findSuggestions'](_0x2a7bec,'insertion')){if(!_0x6dd2ee['isOwn'])continue;const _0xb156eb=_0x56204f['getRanges']();for(const _0x3d0fae of _0xb156eb)if(!_0x2a7bec['getDifference'](_0x3d0fae)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x187b70){const _0x5190ee=this['editor']['plugins']['get']('Users')['getUser'](_0x187b70);if(!_0x5190ee)throw new _0x84cc70('track-changes-user-not-found',this);return _0x5190ee;}['_getExternalAuthor'](_0x4a383a){const _0x45fe97=this['editor']['plugins']['get']('Users'),_0x5b0de3=_0x3a2ba7('external:'+_0x4a383a),_0x5d9aa0=_0x45fe97['getUser'](_0x5b0de3);return _0x5d9aa0||_0x45fe97['addUser']({'id':_0x5b0de3,'name':_0x4a383a});}['_createSuggestion'](_0x279e2f,_0x33ff05,_0x4a8e43,_0x2c99fe,_0x4727c7,_0x18c0e6){const _0x5f4b88=this['_getAuthorFromId'](_0x2c99fe),_0x52d15b=this['_suggestionFactory']['buildSuggestion'](_0x279e2f,_0x33ff05,_0x4a8e43,_0x5f4b88,_0x4727c7,_0x3f6f6f=>{this['_updateSuggestionData'](_0x4a8e43,{'attributes':_0x3f6f6f});const _0x4c4380=this['getSuggestion'](_0x4a8e43);this['_joinWithAdjacentSuggestions'](new Set([_0x4c4380])),this['_refreshSuggestionsChain'](new Set([_0x4c4380]));},_0x18c0e6);return this['listenTo'](_0x52d15b,'accept',()=>{this['_updateSuggestionData'](_0x4a8e43,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x52d15b,'discard',()=>{this['_updateSuggestionData'](_0x4a8e43,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4a8e43,_0x52d15b),this['_suggestionState']['set'](_0x52d15b,'notReady'),_0x52d15b;}['_splitMarkerName'](_0x275f68){const _0x1b4dc5=_0x275f68['split'](':');return{'group':_0x1b4dc5[0x0],'type':_0x1b4dc5[0x1],'subType':_0x1b4dc5['length']>=0x5?_0x1b4dc5[0x2]:null,'id':_0x1b4dc5['length']<0x5?_0x1b4dc5[0x2]:_0x1b4dc5[0x3],'authorId':_0x1b4dc5['length']<0x5?_0x1b4dc5[0x3]:_0x1b4dc5[0x4],'markerCount':0x6==_0x1b4dc5['length']?_0x1b4dc5[0x5]:null};}['_breakSuggestionMarker'](_0x2c76d1,_0x41e486,_0xf84224){const _0x3a2f12=_0x2c76d1['getFirstRange'](),_0x5d041c=_0x3a2f12['start'],_0x1796ca=_0x3a2f12['end'];this['_setSuggestionRange'](_0x2c76d1,this['_model']['createRange'](_0x5d041c,_0x41e486));const _0x255ec3=_0x924ea4(),_0x29f954=_0x2c76d1['creator']['id'],_0x27d70d=_0x2c76d1['type']+(_0x2c76d1['subType']?':'+_0x2c76d1['subType']:'');this['_setSuggestionData']({'id':_0x255ec3,'type':_0x27d70d,'createdAt':new Date(),'authorId':_0x29f954,'originalSuggestionId':_0x2c76d1['_originalSuggestionId']||_0x2c76d1['id'],'attributes':_0x2c76d1['attributes'],'data':_0x2c76d1['data']});const _0xe2d8c6=this['_getAttributeKey'](_0x2c76d1);('formatBlock'==_0x2c76d1['type']||_0xe2d8c6&&this['_isBlockAttribute'](_0xe2d8c6))&&(_0xf84224=this['_model']['createPositionBefore'](_0xf84224['parent'])),this['_addSuggestionMarker'](_0x27d70d,_0x255ec3,_0x29f954,this['_model']['createRange'](_0xf84224,_0x1796ca));}['_findSuggestions'](_0x2b2c22,_0xa6631d=null){const _0xd94e3a=[],_0x20dc2f=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2b2c22)||(_0x2b2c22=[_0x2b2c22]);for(const _0x4e9558 of this['getSuggestions']()){if(!_0x4e9558['isInContent'])continue;if(_0xa6631d&&_0x4e9558['type']!=_0xa6631d)continue;let _0x19525e=!0x1;for(const _0x4f00f6 of _0x4e9558['getRanges']()){for(const _0x30abe1 of _0x2b2c22){const _0x5d7a59=_0x30abe1['start']['isEqual'](_0x4f00f6['end'])||_0x30abe1['end']['isEqual'](_0x4f00f6['start']);if(_0x5d7a59||_0x30abe1['getIntersection'](_0x4f00f6)){const _0x164e8d=_0x30abe1['containsRange'](_0x4f00f6)&&Ft(this['_model']['schema'],_0x4f00f6['start'],_0x30abe1),_0x14ff9c=_0x4f00f6['containsRange'](_0x30abe1)&&Ft(this['_model']['schema'],_0x30abe1['start'],_0x4f00f6);_0xd94e3a['push']({'suggestion':_0x4e9558,'meta':{'isOwn':_0x20dc2f==_0x4e9558['author'],'isNextTo':_0x5d7a59,'isInsideObject':_0x164e8d,'containsRangeInObject':_0x14ff9c}}),_0x19525e=!0x0;break;}}if(_0x19525e)break;}}return _0xd94e3a;}['_addSuggestionMarker'](_0x4f037e,_0x3cacfa,_0x3b1025,_0x624e61,_0x268f05){this['_model']['change'](_0x17799a=>{let _0x4b7b56='suggestion:'+_0x4f037e+':'+_0x3cacfa+':'+_0x3b1025;_0x268f05&&(_0x4b7b56=_0x4b7b56+':'+_0x268f05),_0x17799a['addMarker'](_0x4b7b56,{'range':_0x624e61,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x46129c){const _0x3119d7=_0x46129c['previous'],_0x32818a=_0x46129c['next'];_0x46129c['previous']=null,_0x46129c['next']=null,null!=_0x3119d7&&_0x3119d7['next']==_0x46129c&&(_0x3119d7['next']=_0x32818a),null!=_0x32818a&&_0x32818a['previous']==_0x46129c&&(_0x32818a['previous']=_0x3119d7),'ready'==this['_suggestionState']['get'](_0x46129c)&&(this['_suggestionState']['set'](_0x46129c,'removed'),this['fire']('suggestionUnloaded',_0x46129c,_0x3119d7,_0x32818a));}['_setSuggestionData'](_0x2b5f04){const _0x27973f=_0x2b5f04['id'],_0xbe6da0=this['addSuggestionData'](_0x2b5f04);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4174f7=this['editor']['plugins']['get']('PendingActions'),_0x1f6982=_0xbe6da0['hasComments'],_0x49df93=_0xbe6da0['subType']?_0xbe6da0['type']+':'+_0xbe6da0['subType']:_0xbe6da0['type'],_0x1692a9=this['editor']['locale'],_0x94b49d=_0x4174f7['add'](o(_0x1692a9,'PENDING_ACTION_SUGGESTION')),_0x59c31a={'id':_0x27973f,'type':_0x49df93,'hasComments':_0x1f6982,'data':_0x2b5f04['data']||null,'originalSuggestionId':_0x2b5f04['originalSuggestionId']||null,'attributes':_0xbe6da0['attributes']};this['_adapter']['addSuggestion'](_0x59c31a)['then'](_0x3cf75d=>{_0xbe6da0['_saved']=!0x0,_0x4174f7['remove'](_0x94b49d),_0x3cf75d&&_0x3cf75d['createdAt']&&(this['_suggestions']['get'](_0x27973f)['createdAt']=_0x3cf75d['createdAt']);})['catch'](_0x1ea37b=>{throw _0x59557d('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xbe6da0['discard']();}),_0xbe6da0['stopListening'](),this['_suggestions']['delete'](_0xbe6da0['id']),this['_suggestionState']['delete'](_0xbe6da0),_0x1ea37b;});}return _0xbe6da0;}['_isBlockAttribute'](_0x54eb8f){return this['_blockAttributeKeys']['has'](_0x54eb8f);}['_updateSuggestionData'](_0x5704dc,_0x496d60){const _0x30503a=this['editor']['plugins']['get']('PendingActions'),_0x3d7fe4=this['getSuggestion'](_0x5704dc);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3d7fe4['_saved']){const _0x2a42f7=_0x30503a['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5704dc,_0x496d60)['then'](()=>{_0x30503a['remove'](_0x2a42f7);});}else _0x3d7fe4['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5704dc,_0x496d60);});}}['_getSuggestionData'](_0x53b45e){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x84cc70('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x53b45e);}['_handleNewSuggestionMarker'](_0x17b7e9){const {id:_0xfcf6d2,type:_0x410468,subType:_0x50228e,authorId:_0x1a71c7}=this['_splitMarkerName'](_0x17b7e9),_0x2a8962=this['_suggestions']['get'](_0xfcf6d2)||this['_createSuggestion'](_0x410468,_0x50228e,_0xfcf6d2,_0x1a71c7,{});switch(this['_checkSuggestionCorrectness'](_0x2a8962,_0x410468,_0x50228e,_0x1a71c7),this['_suggestionState']['get'](_0x2a8962)){case'notReady':this['_getSuggestionData'](_0xfcf6d2)['then'](_0x2eb702=>{let _0x5a1e15=Promise['resolve']();_0x2eb702['hasComments']&&(_0x5a1e15=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xfcf6d2})),_0x5a1e15['then'](()=>{this['addSuggestionData'](_0x2eb702)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2a8962,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xfcf6d2,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2a8962,'ready'),this['fire']('suggestionLoaded',_0x2a8962);break;case'ready':this['fire']('suggestionChanged',_0x2a8962);}return _0x2a8962['addMarkerName'](_0x17b7e9),_0x2a8962;}['_refreshSuggestionsChain'](_0x2f1fe0){const _0x3f655e=Array['from'](_0x2f1fe0),_0x36af70=_0x3f655e['filter'](_0x534075=>'attribute'==_0x534075['type']);this['_refreshAttributeSuggestionsChain'](_0x36af70);const _0x14ed05=_0x3f655e['filter'](_0x985535=>!_0x985535['isMultiRange']&&'attribute'!=_0x985535['type']),_0x3596dc=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x761ead=>!_0x761ead['isMultiRange']&&'attribute'!=_0x761ead['type']),_0x5b6a4c=_0x3596dc['filter'](_0x416908=>!_0x2f1fe0['has'](_0x416908)),_0x3a8583=new Map(_0x3596dc['map'](_0x199157=>[_0x199157,this['_suggestionFactory']['getSuggestionCallback'](_0x199157['type'],_0x199157['subType'],'chain')])),_0x525768=new Map(_0x3596dc['map'](_0x3e239c=>[_0x3e239c,_0x3e239c['getFirstRange']()])),_0x2af577=new Set(),_0x5110af=new Set();for(let _0x124e6a=0x0;_0x124e6a<_0x14ed05['length'];_0x124e6a++)_0x21a168(_0x14ed05[_0x124e6a],_0x14ed05,_0x124e6a+0x1);for(let _0x384fad=0x0;_0x384fad<_0x14ed05['length'];_0x384fad++)_0x21a168(_0x14ed05[_0x384fad],_0x5b6a4c,0x0);const _0x2b9825=new Set();for(let _0x5b38ca=0x0;_0x5b38ca<_0x14ed05['length'];_0x5b38ca++){const _0x335633=_0x14ed05[_0x5b38ca];!_0x5110af['has'](_0x335633)&&_0x335633['previous']&&(_0x2b9825['add'](_0x335633['previous']),_0x335633['previous']['next']===_0x335633&&(_0x335633['previous']['next']=null),_0x335633['previous']=null),!_0x2af577['has'](_0x335633)&&_0x335633['next']&&(_0x2b9825['add'](_0x335633['next']),_0x335633['next']['previous']===_0x335633&&(_0x335633['next']['previous']=null),_0x335633['next']=null);}function _0x21a168(_0x4a66c8,_0x589f8b,_0x1b810e){for(let _0x5baa9e=_0x1b810e;_0x5baa9e<_0x589f8b['length'];_0x5baa9e++){const _0xf7f4d5=_0x20a145(_0x4a66c8,_0x589f8b[_0x5baa9e]);_0xf7f4d5&&(_0xf7f4d5[0x0]['next']=_0xf7f4d5[0x1],_0xf7f4d5[0x1]['previous']=_0xf7f4d5[0x0],_0x2af577['add'](_0xf7f4d5[0x0]),_0x5110af['add'](_0xf7f4d5[0x1]));}}function _0x20a145(_0x3c85c4,_0x1cd375){if(_0x3c85c4['author']['id']!==_0x1cd375['author']['id'])return null;const _0x561531=_0x3a8583['get'](_0x3c85c4)(_0x3c85c4,_0x1cd375,_0x525768['get'](_0x3c85c4),_0x525768['get'](_0x1cd375));if(!_0x561531)return null;return _0x3a8583['get'](_0x1cd375)(_0x3c85c4,_0x1cd375,_0x525768['get'](_0x3c85c4),_0x525768['get'](_0x1cd375))?_0x561531[0x1]['commentThread']&&_0x561531[0x1]['commentThread']['length']?null:_0x561531:null;}_0x2b9825['size']&&this['_refreshSuggestionsChain'](_0x2b9825);}['_refreshAttributeSuggestionsChain'](_0x40806f){if(0x0==_0x40806f['length'])return;const _0x355011=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1f97d4=>'attribute'==_0x1f97d4['type']&&_0x1f97d4['_isDataLoaded']),_0x3a4ee4=[],_0x3a6c5e=new Map();for(const _0x3934c3 of _0x355011){const _0x267d66=_0x3a2ba7(_0x3934c3['attributes']);_0x3a6c5e['has'](_0x267d66)||(_0x3a6c5e['set'](_0x267d66,_0x3a4ee4['length']),_0x3a4ee4['push']([]));const _0x568576=_0x3a6c5e['get'](_0x267d66);_0x3a4ee4[_0x568576]['push'](_0x3934c3);}!(function(){_0x3a4ee4['sort']((_0x5b6b9e,_0x1977bb)=>{const _0x3db126=_0x5b6b9e[0x0]['createdAt'],_0x4f3236=_0x1977bb[0x0]['createdAt'];return _0x3db126==_0x4f3236?_0x5b6b9e[0x0]['attributes']['groupId']<_0x1977bb[0x0]['attributes']['groupId']?-0x1:0x1:_0x3db126<_0x4f3236?-0x1:0x1;});for(const _0x4a7f96 of _0x3a4ee4)_0x4a7f96['sort']((_0x863cdd,_0x3d64c3)=>_0x863cdd['id']<_0x3d64c3['id']?-0x1:0x1);}());for(let _0x1dadb0=0x0;_0x1dadb0<_0x3a4ee4['length'];_0x1dadb0++){if(0x0==_0x3a4ee4[_0x1dadb0]['length'])continue;const _0x5722bb=[];for(let _0x46eb89=_0x1dadb0+0x1;_0x46eb89<_0x3a4ee4['length'];_0x46eb89++)0x0!=_0x3a4ee4[_0x46eb89]['length']&&_0x5979f2(_0x3a4ee4[_0x1dadb0],_0x3a4ee4[_0x46eb89])&&_0x5722bb['push'](_0x46eb89);for(const _0x14a5da of _0x5722bb)_0x3a4ee4[_0x1dadb0]=_0x3a4ee4[_0x1dadb0]['concat'](_0x3a4ee4[_0x14a5da]),_0x3a4ee4[_0x14a5da]=[];}for(const _0x3acf13 of _0x3a4ee4)for(let _0x318308=0x0;_0x318308<_0x3acf13['length'];_0x318308++){const _0x515347=_0x3acf13[_0x318308+0x1]||null;_0x3acf13[_0x318308]['next']!==_0x515347&&(_0x3acf13[_0x318308]['next']=_0x515347);}for(const _0x3f236d of _0x3a4ee4)for(let _0x410f40=0x0;_0x410f40<_0x3f236d['length'];_0x410f40++){const _0x3d2d75=_0x3f236d[_0x410f40-0x1]||null;_0x3f236d[_0x410f40]['previous']!==_0x3d2d75&&(_0x3f236d[_0x410f40]['previous']=_0x3d2d75);}function _0x5979f2(_0x27ff6c,_0x190f54){if(_0x27ff6c[0x0]['attributes']['groupId']!==_0x190f54[0x0]['attributes']['groupId']&&_0x27ff6c[0x0]['author']!==_0x190f54[0x0]['author'])return!0x1;if(!function(_0x64b738,_0x5e96a0){if(!_0x64b738['hasComments']&&!_0x5e96a0['hasComments'])return!0x0;if(_0x64b738['hasComments']&&_0x5e96a0['hasComments'])return!0x1;if(_0x64b738['hasComments']&&_0x5e96a0['createdAt']<_0x64b738['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5e96a0['hasComments']&&_0x64b738['createdAt']<_0x5e96a0['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x27ff6c[0x0],_0x190f54[0x0]))return!0x1;const _0x348e36=Ut(_0x27ff6c[0x0]['attributes'],['groupId','trackingSessionId']),_0x2d697f=Ut(_0x190f54[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x92ba7f(_0x348e36,_0x2d697f))return!0x1;if(_0x27ff6c[0x0]['attributes']['groupId']==_0x190f54[0x0]['attributes']['groupId'])return!0x0;if(_0x27ff6c[0x0]['attributes']['trackingSessionId']!==_0x190f54[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x27ff6c['every'](_0x1e6b47=>_0x190f54['some'](_0x2f9f7a=>_0x1e6b47['getFirstRange']()['isEqual'](_0x2f9f7a['getFirstRange']())))&&_0x190f54['every'](_0x449f35=>_0x27ff6c['some'](_0x4aec9d=>_0x449f35['getFirstRange']()['isEqual'](_0x4aec9d['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x190d0b){const _0xb3cf1b=Array['from'](_0x190d0b),_0x3f1e14=this['getSuggestions']({'skipNotAttached':!0x0}),_0x14d8a5=_0x3f1e14['filter'](_0x27fe45=>!_0x190d0b['has'](_0x27fe45)),_0x56a045=new Map(_0xb3cf1b['map'](_0x5cddd9=>[_0x5cddd9,this['_suggestionFactory']['getSuggestionCallback'](_0x5cddd9['type'],_0x5cddd9['subType'],'join')])),_0x47c909=new Map(_0x3f1e14['map'](_0x190d53=>[_0x190d53,_0x190d53['getRanges']()]));for(let _0x5e75b9=0x0;_0x5e75b9<_0xb3cf1b['length'];_0x5e75b9++){if(_0x198386(this,_0xb3cf1b[_0x5e75b9],_0xb3cf1b,_0x5e75b9+0x1))return!0x0;}for(let _0x3804bf=0x0;_0x3804bf<_0xb3cf1b['length'];_0x3804bf++){if(_0x198386(this,_0xb3cf1b[_0x3804bf],_0x14d8a5,0x0))return!0x0;}return!0x1;function _0x198386(_0xbbfacd,_0x323866,_0x57afb7,_0x1626ce){for(let _0x4a528d=_0x1626ce;_0x4a528d<_0x57afb7['length'];_0x4a528d++){const _0x15b113=_0x57afb7[_0x4a528d];if(_0x15b113['type']!==_0x323866['type']||_0x15b113['author']['id']!==_0x323866['author']['id']||_0x15b113['subType']!==_0x323866['subType'])continue;if(!Wt(_0x323866,_0x15b113))continue;if('attribute'==_0x323866['type']&&_0x323866['data']['oldValue']!=_0x15b113['data']['oldValue'])continue;if('attribute'==_0x323866['type']&&_0xbbfacd['_isBlockAttribute'](_0x323866['data']['key']))continue;if('formatBlock'==_0x323866['type']){const _0x43c9d1=_0xbbfacd['editor']['model'],_0x42fa49=_0x323866['getContainedElement']();if(_0x42fa49&&(_0x43c9d1['schema']['isObject'](_0x42fa49)||_0x43c9d1['schema']['isLimit'](_0x42fa49)))continue;}const _0x17950c=_0x56a045['get'](_0x323866),_0x4477a3=_0x47c909['get'](_0x323866),_0xe3a95=_0x47c909['get'](_0x15b113),_0x5bacfb=_0x323866['commentThread']&&_0x323866['commentThread']['length'],_0x4dd293=_0x15b113['commentThread']&&_0x15b113['commentThread']['length'];if(!_0x5bacfb&&_0x17950c(_0xe3a95,_0x4477a3))return _0xbbfacd['_joinSuggestions'](_0x15b113,_0x323866),_0x47c909['delete'](_0x323866),!0x0;if(!_0x4dd293&&_0x17950c(_0x4477a3,_0xe3a95))return _0xbbfacd['_joinSuggestions'](_0x323866,_0x15b113),_0x47c909['delete'](_0x15b113),!0x0;}return!0x1;}}['_joinSuggestions'](_0x434791,_0x5e982f){if(_0x434791['isMultiRange']){for(const _0x215b40 of _0x5e982f['getRanges']())_0x434791['addRange'](_0x215b40);}else{const _0x32e4a1=_0x5e982f['getFirstRange']()['end'];this['_setSuggestionRange'](_0x434791,this['_model']['createRange'](_0x434791['getFirstRange']()['start'],_0x32e4a1));}_0x5e982f['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1f6e88,_0x49fd62,_0x18dd07){const _0x39c96f=_0x1f6e88['startsWith']('format')||_0x1f6e88['startsWith']('attribute')?'FORMATTING':_0x1f6e88['toUpperCase']();return o(this['editor']['locale'],_0x49fd62+'_'+_0x39c96f+'_SUGGESTION_ANNOUNCEMENT',_0x18dd07);}['_initAriaMarkerChangeAnnouncements'](){const _0x56fa97=this['editor'];if(!_0x56fa97['ui'])return;const {ariaLiveAnnouncer:_0x6ac7f4}=_0x56fa97['ui'];_0x5c3923(this['_model'],({left:_0x4e3652,entered:_0x3a9b92})=>{for(const _0x266ece of _0x4e3652){const {group:_0x30ebbe,type:_0xbd6130}=this['_splitMarkerName'](_0x266ece['name']);if('suggestion'===_0x30ebbe){_0x6ac7f4['announce'](this['_getMarkerAnnouncementText'](_0xbd6130,'LEAVE'));break;}}for(const _0x483c0a of _0x3a9b92){const {group:_0x3f816c,type:_0x26a75c}=this['_splitMarkerName'](_0x483c0a['name']);if('suggestion'===_0x3f816c){_0x6ac7f4['announce'](this['_getMarkerAnnouncementText'](_0x26a75c,'ENTER',_0x58eb73(_0x279eaa)));break;}}});}['_processAttributeChanges'](_0xb54397){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1e5414=this['editor'],_0x304455=_0x1e5414['model']['document']['differ']['getChanges']();if(0x0==_0x304455['length'])return!0x1;const _0x2d617f=[],_0x9cc097=_0x304455['filter'](_0x2f463d=>'attribute'==_0x2f463d['type']),_0x57381c=_0x304455['filter'](_0x2dd103=>'insert'==_0x2dd103['type']&&'$text'!=_0x2dd103['name']),_0x59b984=_0x304455['filter'](_0x56a26e=>'remove'==_0x56a26e['type']&&'$text'!=_0x56a26e['name']);for(const _0x5d1feb of _0x9cc097)_0x2d617f['push']({'key':_0x5d1feb['attributeKey'],'newValue':_0x5d1feb['attributeNewValue'],'oldValue':_0x5d1feb['attributeOldValue'],'range':Ht(_0x5d1feb['range'],_0x1e5414['model'])});for(const _0xa1cd3b of _0x57381c){const _0x295335=_0x59b984['find'](_0x7e1282=>_0x7e1282['position']['isEqual'](_0xa1cd3b['position']));_0x295335&&_0x2d617f['push']({'key':m,'newValue':_0xa1cd3b['name'],'oldValue':_0x295335['name'],'range':_0x1e5414['model']['createRangeOn'](_0xa1cd3b['position']['nodeAfter'])});}return 0x0!=_0x2d617f['length']&&this['_reduceExistingSuggestions'](_0xb54397,_0x2d617f);}['_processAttributeSuggestions'](_0x4bffa9){let _0x377819=!0x1;const _0x21ef59=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x334545=>_0x334545['data']['newRange']&&_0x334545['name']['startsWith']('suggestion:attribute:'));for(const _0x529f15 of _0x21ef59){const {subType:_0x51a5dd,id:_0x182aea}=this['_splitMarkerName'](_0x529f15['name']),_0x3ec8e5=_0x51a5dd['split']('|')[0x0];for(const _0x3e7505 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3e7505['id']!=_0x182aea&&'attribute'==_0x3e7505['type']&&_0x3e7505['data']&&_0x3e7505['data']['key']==_0x3ec8e5&&_0x3e7505['getFirstRange']()['isIntersecting'](_0x529f15['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3e7505,_0x529f15['data']['newRange'],_0x4bffa9),_0x377819=!0x0);}return _0x377819;}['recordAttributeChanges'](_0x516cab){this['_recordAttributeSuggestions']=!0x0,_0x516cab();}['_isRegisteredAttribute'](_0x4225f9){const _0x500f57=this['_isBlockAttribute'](_0x4225f9),_0x44f52c=this['_inlineAttributeKeys']['has'](_0x4225f9);return _0x500f57||_0x44f52c;}['_reduceExistingSuggestions'](_0xa2df77,_0x1b8af5){if(0x0==_0x1b8af5['length'])return!0x1;let _0x94e007=!0x1;for(const _0x2b3bea of _0x1b8af5){const _0x3828ab=this['_findSuggestions'](_0x2b3bea['range'],'attribute')['filter'](_0x3a0030=>!_0x3a0030['meta']['isNextTo'])['map'](_0x19454e=>_0x19454e['suggestion']),_0x211f4c=_0x3a2ba7({'newValue':_0x2b3bea['newValue']});_0x3828ab['filter'](_0x25d2aa=>{const [_0x1357b6,_0x385f85]=_0x25d2aa['subType']['split']('|');return _0x1357b6==_0x2b3bea['key']&&_0x385f85!=_0x211f4c;})['forEach'](_0x3c5df5=>{this['_reduceSuggestionAttributeRange'](_0x3c5df5,_0x2b3bea['range'],_0xa2df77),_0x94e007=!0x0;});}return _0x94e007;}['_reduceSuggestionAttributeRange'](_0x2aa494,_0x126067,_0xd44e3c){const _0x3f029c=_0x2aa494['getFirstRange']()['getDifference'](_0x126067);0x0!==_0x3f029c['length']?0x1!==_0x3f029c['length']?this['_breakSuggestionMarker'](_0x2aa494,_0x126067['start'],_0x126067['end']):this['_setSuggestionRange'](_0x2aa494,_0x3f029c[0x0]):_0xd44e3c['removeMarker'](_0x2aa494['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5e58c2){this['_editor']=_0x5e58c2,this['_model']=_0x5e58c2['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x17853b,_0x16bd34,_0x1f1941,_0x34044a,_0xdb30da,_0x4fd09d,_0x32efad){return new T(this['_model'],{'type':_0x17853b,'subType':_0x16bd34,'id':_0x1f1941,'originalSuggestionId':_0x32efad,'author':_0x34044a,'creator':_0x34044a,'attributes':_0xdb30da,'onAttributesChange':_0x4fd09d,'onAccept':(..._0x476bac)=>this['getSuggestionCallback'](_0x17853b,_0x16bd34,'accept')(..._0x476bac),'onDiscard':(..._0x2dd941)=>this['getSuggestionCallback'](_0x17853b,_0x16bd34,'discard')(..._0x2dd941)});}['registerCustomCallback'](_0x35dd08,_0x4854e0,_0x176f96,_0x18b625){const _0x33e6f3=_0x35dd08+':'+_0x4854e0+':'+_0x176f96;this['_customCallbacks']['set'](_0x33e6f3,_0x18b625);}['getSuggestionCallback'](_0x3feb20,_0xfb7585,_0x58815a){const _0x5b40d5=_0x3feb20+':'+_0xfb7585+':'+_0x58815a;return this['_customCallbacks']['get'](_0x5b40d5)||this['_defaultCallbacks']['get'](_0x3feb20+':'+_0x58815a);}['_registerDefaultCallbacks'](){const _0x3c84a0=()=>!0x1,_0x44f5e3=_0x290d31=>{_0x290d31['sort']((_0x4e3896,_0x14781c)=>_0x4e3896['start']['isBefore'](_0x14781c['start'])?0x1:-0x1),this['_model']['change'](_0x3ef766=>{for(const _0x642106 of _0x290d31){let _0xab3128;_0xab3128=_0x642106['end']['isAtEnd']&&_0x642106['end']['parent']==_0x642106['start']['nodeAfter']?_0x3ef766['createSelection'](_0x642106['start']['nodeAfter'],'on'):_0x3ef766['createSelection'](_0x642106),this['_model']['deleteContent'](_0xab3128,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x1c94de=(_0x21b9ba,_0x520938)=>{_0x520938&&this['_model']['change'](_0x4efa79=>{const {commandName:_0x28a0d5,commandParams:_0x5e7189=[]}=_0x520938,_0xc328bc=_0x21b9ba['map'](_0x12cdc1=>(Pt(_0x12cdc1)&&(_0x12cdc1=this['_model']['createRange'](_0x12cdc1['end'])),_0x12cdc1))['filter'](_0x333ec1=>'$graveyard'!==_0x333ec1['root']['rootName']);if(_0xc328bc['length']<0x1)return;const _0x569852=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1dd038=>_0x1c65a2['fromRange'](_0x1dd038));_0x4efa79['setSelection'](_0xc328bc);for(const _0xeb812d of this['_editor']['commands']['commands']())_0xeb812d['refresh']();_0x5e7189['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x28a0d5,..._0x5e7189);const _0x3a0b0f=_0x569852['filter'](_0xca4550=>'$graveyard'!=_0xca4550['root']['rootName']);_0x3a0b0f['length']>0x0&&_0x4efa79['setSelection'](_0x3a0b0f);for(const _0x2fe46c of _0x569852)_0x2fe46c['detach']();});},_0x246db2=(_0x1776e2,_0xa36539)=>0x1==_0x1776e2['length']&&0x1==_0xa36539['length']&&_0x1776e2[0x0]['end']['isEqual'](_0xa36539[0x0]['start']),_0x27874b=(_0x1c7f20,_0x495c53,_0x37e8f2,_0x20f73c)=>zt(_0x1c7f20,_0x495c53,_0x37e8f2,_0x20f73c)?[_0x1c7f20,_0x495c53]:zt(_0x495c53,_0x1c7f20,_0x20f73c,_0x37e8f2)?[_0x495c53,_0x1c7f20]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3c84a0),this['_defaultCallbacks']['set']('insertion:discard',_0x44f5e3),this['_defaultCallbacks']['set']('insertion:join',_0x246db2),this['_defaultCallbacks']['set']('insertion:chain',_0x27874b),this['_defaultCallbacks']['set']('deletion:accept',_0x44f5e3),this['_defaultCallbacks']['set']('deletion:discard',_0x3c84a0),this['_defaultCallbacks']['set']('deletion:join',_0x246db2),this['_defaultCallbacks']['set']('deletion:chain',_0x27874b),this['_defaultCallbacks']['set']('formatInline:accept',_0x1c94de),this['_defaultCallbacks']['set']('formatInline:discard',_0x3c84a0),this['_defaultCallbacks']['set']('formatInline:join',_0x246db2),this['_defaultCallbacks']['set']('formatInline:chain',_0x3c84a0),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1c94de),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3c84a0),this['_defaultCallbacks']['set']('formatBlock:join',_0x246db2),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3c84a0),this['_defaultCallbacks']['set']('attribute:accept',_0x3c84a0),this['_defaultCallbacks']['set']('attribute:discard',(_0x40ee9c,_0x40ca4)=>{if(!_0x40ca4)return;const _0x299619=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x132db0=>{if(_0x40ca4['key']==m)for(const _0x17811c of _0x40ee9c){const _0x533205=_0x17811c['start']['nodeAfter'],_0x3f6a95=_0x40ca4['oldValue'];_0x132db0['rename'](_0x533205,_0x3f6a95);}else{if(_0x299619['_isBlockAttribute'](_0x40ca4['key'])){for(const _0x459f88 of _0x40ee9c)void 0x0!==_0x40ca4['oldValue']?_0x132db0['setAttribute'](_0x40ca4['key'],_0x40ca4['oldValue'],_0x459f88['start']['nodeAfter']):_0x132db0['removeAttribute'](_0x40ca4['key'],_0x459f88['start']['nodeAfter']);}else{for(const _0x14edee of _0x40ee9c)_0x40ca4['oldValue']?_0x132db0['setAttribute'](_0x40ca4['key'],_0x40ca4['oldValue'],_0x14edee):_0x132db0['removeAttribute'](_0x40ca4['key'],_0x14edee);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x246db2);}}function Ft(_0x344d95,_0x13be42,_0x29e511){for(const _0x2ad9c4 of _0x13be42['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2ad9c4['root']==_0x2ad9c4)return!0x1;if(!_0x29e511['containsItem'](_0x2ad9c4))return!0x1;if(_0x344d95['isObject'](_0x2ad9c4)||_0x344d95['isLimit'](_0x2ad9c4))return!0x0;}return!0x1;}function Pt(_0x5a6c15){return _0x5a6c15['end']['parent']==_0x5a6c15['start']['nodeAfter']&&_0x5a6c15['end']['isAtStart'];}function Gt(_0x4fb443,_0x2335dd,_0x4f2eda,_0x3fb87a){const _0x15644c=_0x521969=>!_0x521969['item']['is']('$textProxy')&&!_0x3fb87a['isObject'](_0x521969['item']),_0xf23ac2=_0x4fb443['start']['getLastMatchingPosition'](_0x15644c),_0x5c56c1=_0x4fb443['end']['getLastMatchingPosition'](_0x15644c,{'direction':'backward'});return(!_0x4fb443['start']['isEqual'](_0xf23ac2)||!_0x4fb443['end']['isEqual'](_0x5c56c1))&&(_0xf23ac2['isBefore'](_0x5c56c1)?_0x4f2eda['updateMarker'](_0x2335dd,{'range':_0x4f2eda['createRange'](_0xf23ac2,_0x5c56c1)}):_0x4f2eda['removeMarker'](_0x2335dd),!0x0);}function Lt(_0x1797ce){return _0x3a2ba7(_0x1797ce);}function Jt(_0x28211f){const _0x12345c=_0x28211f['start']['nodeAfter'];return _0x12345c&&_0x12345c['is']('element');}function Kt(_0x23035c){return!Pt(_0x23035c)&&!function(_0xa9ced8){return _0xa9ced8['start']['parent']==_0xa9ced8['end']['nodeBefore']&&_0xa9ced8['start']['isAtEnd'];}(_0x23035c);}function Ht(_0x67a0f3,_0x4e6cce){return null==_0x67a0f3['end']['nodeBefore']&&_0x67a0f3['end']['parent']==_0x67a0f3['start']['nodeAfter']?qt(_0x67a0f3['start']['nodeAfter'],_0x4e6cce):_0x67a0f3;}function qt(_0xc2888d,_0x15c448){const _0x2440e6=_0x15c448['schema']['isObject'](_0xc2888d)||_0x15c448['schema']['isSelectable'](_0xc2888d);return _0x15c448['createRange'](_0x15c448['createPositionAt'](_0xc2888d,'before'),_0x2440e6?_0x15c448['createPositionAfter'](_0xc2888d):_0x15c448['createPositionAt'](_0xc2888d,'end'));}function zt(_0x168077,_0x1576d1,_0x1f0096,_0x5a2ae8){return!!Wt(_0x168077,_0x1576d1)&&_0x1f0096['end']['isEqual'](_0x5a2ae8['start']);}function Wt(_0x3cda05,_0x3a85d0){if(!_0x3cda05['_isDataLoaded']||!_0x3a85d0['_isDataLoaded'])return!0x1;const _0x49dddb=new Set(Object['keys'](_0x3cda05['attributes'])),_0x3bd01c=new Set(Object['keys'](_0x3a85d0['attributes']));if(_0x49dddb['delete']('groupId'),_0x3bd01c['delete']('groupId'),0x0==_0x49dddb['size']&&0x0==_0x3bd01c['size'])return!0x0;if(_0x49dddb['size']!=_0x3bd01c['size'])return!0x1;const _0x1393b7={..._0x3cda05['attributes']},_0x3d53a2={..._0x3a85d0['attributes']};return delete _0x1393b7['groupId'],delete _0x3d53a2['groupId'],JSON['stringify'](_0x1393b7)==JSON['stringify'](_0x3d53a2);}function Qt(_0x5ad2c2,_0x4a460a){const _0x2d4e94=Xt(_0x5ad2c2['attributes']),_0x27fe4f=Xt(_0x4a460a);if(!_0x5ad2c2['_isDataLoaded'])return!0x1;for(const _0x276a8c of Object['keys'](_0x27fe4f))if(!_0x92ba7f(_0x2d4e94[_0x276a8c],_0x27fe4f[_0x276a8c]))return!0x1;return!0x0;}function Xt(_0x17d56c){const _0x3c48da=Object['assign']({},_0x17d56c);return delete _0x3c48da['skipNestingCheck'],delete _0x3c48da['tablePasteChainId'],_0x3c48da;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0x2042f1(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x203610,_0x1f8712,_0x193025,_0x2abd78){super(),this['model']=_0x1f8712,this['view']=_0x193025,this['commentThreadController']=_0x2abd78,this['_editor']=_0x203610,this['_acceptCommand']=_0x203610['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x203610['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3f83f,_0x2262f8)=>_0x3f83f||_0x2262f8),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4b89f9=>_0x4b89f9&&this['_editor']['model']['canEditAt'](_0x1f8712['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x38777d=>_0x38777d&&this['_editor']['model']['canEditAt'](_0x1f8712['getRanges']())),this['_pendingAction']=null,_0x193025['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x193025,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x193025,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x193025,'change:isDirty',()=>{_0x193025['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 _0x3da70d=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3da70d);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ti extends _0x3e0d77{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x142f4c,_0x42cf9f,_0x4357d2,_0x31a467){super(_0x142f4c),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x341edb(_0x142f4c,o(_0x142f4c,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x42cf9f['authoredAt']),this['bind']('authoredAt')['to'](_0x42cf9f),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',_0x42cf9f,'authoredAt',this,'descriptionParts',(_0x22065d,_0x446e78,_0x3482e0)=>{const _0x1c631d=_0x3482e0['map'](_0x30b0f2=>ls(_0x30b0f2['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x22065d-0x1,_0x42cf9f['author']['name'],_0x446e78?_0x31a467['formatDateTime'](_0x446e78):'',new DOMParser()['parseFromString'](_0x1c631d,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1328a2(),this['focusTracker']=new _0x11efcf(),this['keystrokes']=new _0x3a6ef9(),this['focusCycler']=new _0x9939a3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x548260=>_0x548260['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x42cf9f,this['_localUser']=_0x4357d2,this['_config']=_0x31a467,_0x31a467['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3b9a98(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x263bbb}=this['_config'];this['commentsListView']=new _0x263bbb(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',_0x29a7ba=>_0x29a7ba+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x22aafc,_0x1dde4a)=>_0x22aafc||!!_0x1dde4a);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x28ab90}=this['_config'],_0x77115e=new _0x28ab90(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xbe051b=_0x77115e['commentInputView'];return _0x77115e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xbe051b,'value',(_0x240b1c,_0x3df933,_0x2fd184)=>!!_0x2fd184||_0x240b1c&&!_0x3df933),_0xbe051b['on']('submit',(_0x9e78aa,_0x29b2c0)=>{this['fire']('addComment',_0x29b2c0),_0xbe051b['editor']['setData']('');}),_0xbe051b['on']('cancel',()=>this['focus']()),_0xbe051b['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x77115e;}}class fe extends ti{['suggestionView'];['_descriptionElement'];constructor(_0xc7c2d3,_0x3aaeba,_0xba3e9a,_0x5836f9){super(_0xc7c2d3,_0x3aaeba,_0xba3e9a,_0x5836f9),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x59db07=>_0x59db07&&_0x59db07[0x0]?_0x59db07[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x23c4c8,_0xebf43c)=>{let _0x3fd5e6='';for(const _0x32aea4 of _0x23c4c8)_0x3fd5e6+='<p>'+ls(_0x32aea4['content'],_0x32aea4['color'])+'</p>';return _0xebf43c?_0x3fd5e6:_0x4d0840(_0x3fd5e6,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5836f9['SuggestionView'](_0xc7c2d3,_0x3aaeba,{'formatDateTime':_0x5836f9['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 _0x110dec=this['bindTemplate'],_0x49abc9=[this['suggestionView']];return this['commentsListView']&&_0x49abc9['push'](this['commentsListView']),this['commentThreadInputView']&&_0x49abc9['push'](this['commentThreadInputView']),_0x49abc9['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x110dec['if']('isActive','ck-suggestion-wrapper--active'),_0x110dec['to']('type',_0x3b6768=>'ck-suggestion-'+_0x3b6768),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':_0x110dec['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x49abc9};}['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 we extends _0x3e0d77{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x32a68e,_0x565abc,_0x5e7cf3){super(_0x32a68e),this['_model']=_0x565abc,this['_config']=_0x5e7cf3,this['set']('description',''),this['bind']('authoredAt')['to'](_0x565abc),this['acceptButton']=this['_createButton'](o(_0x32a68e,'Accept\x20suggestion'),_0x53d3c4,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x32a68e,'Discard\x20suggestion'),_0x1cf4eb,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x17b1a2(_0x32a68e,_0x565abc['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1328a2([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x11efcf(),this['keystrokes']=new _0x3a6ef9(),this['focusCycler']=new _0x9939a3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x52e6b3=>_0x52e6b3['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x374d3d=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x374d3d['innerHTML']=this['description'],this['on']('change:description',(_0x3d7aad,_0x1006a8,_0x1701fd)=>{_0x374d3d['innerHTML']=_0x1701fd;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x33d70e=this['bindTemplate'],_0x2521a0=[{'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':_0x33d70e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x33d70e['to']('authoredAt',_0x1fffde=>this['_config']['formatDateTime'](_0x1fffde))}]}]},{'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']&&_0x2521a0['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':_0x2521a0}]};}['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'](_0x2d2265,_0x37b15d,_0x533548,_0x5897cd,_0x2059e3){const _0x4c538c=new _0x2e109d(this['locale']);return _0x4c538c['set']({'label':_0x2d2265,'icon':_0x37b15d,'tooltip':!0x0,'tooltipPosition':_0x2059e3}),_0x4c538c['extendTemplate']({'attributes':{'class':_0x533548}}),_0x4c538c['on']('execute',()=>{this['fire'](_0x5897cd,this['_model']['id']);}),_0x4c538c;}['_setupKeyboardNavigation'](){const _0x4a7e03=this['element'];this['keystrokes']['listenTo'](_0x4a7e03);for(const _0x894cb1 of this['focusables'])this['focusTracker']['add'](_0x894cb1['element']),this['keystrokes']['listenTo'](_0x894cb1['element']);this['keystrokes']['set']('enter',(_0x187efb,_0x17220a)=>{_0x4a7e03===_0x187efb['target']&&(this['focusCycler']['focusFirst'](),_0x17220a());}),this['keystrokes']['set']('esc',(_0x2606ea,_0xe1e91a)=>{_0x4a7e03!==_0x2606ea['target']&&(this['focus'](),_0xe1e91a());});}}class u extends _0x2611d7{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x6d65dd,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1a7780){super(_0x1a7780),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x36a23a=this['editor']['config'];_0x36a23a['define']('trackChanges.SuggestionThreadView',fe),_0x36a23a['define']('trackChanges.SuggestionView',we),_0x36a23a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x36a23a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4bfe70,_0x18bb30){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x370f2c,_0x20e650]of this['_handleControllerBuffer']){const _0x5e651b=this['_suggestionToController']['has'](_0x370f2c);_0x5e651b||_0x20e650?_0x5e651b&&_0x20e650&&this['_destroyController'](_0x370f2c):this['_initializeController'](_0x370f2c);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4bfe70,_0x18bb30);}['init'](){const _0x390875=this['editor'],_0x25aca3=_0x390875['plugins']['get']('TrackChangesEditing'),_0x181281=_0x390875['plugins']['get']('Annotations'),_0x180dff=_0x390875['plugins']['get']('EditorAnnotations'),_0x2a7381=_0x390875['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x180dff['addSourceCollector'](()=>{const _0x511648=[];for(const [_0x3d1b52,_0x3c1643]of Array['from'](this['_suggestionToController'])){const _0x4c6613=_0x3d1b52['getAllAdjacentSuggestions'](),_0x374476=[];for(const _0x47cf69 of _0x4c6613){if(!_0x47cf69['isInContent'])continue;if(_0x47cf69['isMultiRange']){_0x374476['push'](..._0x47cf69['getRanges']());continue;}const _0x3300c4=_0x47cf69['getFirstRange']();if(_0x374476['length']>0x0){const _0x193eeb=_0x374476[0x0]['getJoined'](_0x3300c4);if(_0x193eeb){_0x374476[0x0]=_0x193eeb;continue;}}_0x374476['push'](_0x3300c4);}_0x511648['push']([_0x3c1643['view'],_0x374476]);}return _0x511648;}),this['listenTo'](_0x25aca3,'suggestionLoaded',(_0x55a4b8,_0x5a9b8f)=>{this['listenTo'](_0x5a9b8f,'change:previous',(_0x5e4f55,_0x420b85,_0x56c032,_0x5ca8a2)=>{_0x5a9b8f['isInContent']&&(null==_0x56c032?(this['_updateController'](_0x5ca8a2['head']),this['_handleSuggestionControllerDelayed'](_0x5a9b8f,!0x1)):(this['_updateController'](_0x56c032['head']),null==_0x5ca8a2&&this['_handleSuggestionControllerDelayed'](_0x5a9b8f,!0x0)));}),null!==_0x5a9b8f['previous']?this['_updateController'](_0x5a9b8f['head']):this['_handleSuggestionControllerDelayed'](_0x5a9b8f,!0x1);}),this['listenTo'](_0x25aca3,'suggestionUnloaded',(_0x486685,_0x406750,_0x2d672f)=>{this['stopListening'](_0x406750,'change:previous'),this['_handleControllerBuffer']['delete'](_0x406750),this['_suggestionToController']['has'](_0x406750)&&this['_destroyController'](_0x406750),_0x2d672f&&this['_updateController'](_0x2d672f['head']);}),this['listenTo'](_0x25aca3,'suggestionChanged',(_0x64dd17,_0x475ece)=>{this['_updateController'](_0x475ece);}),this['listenTo'](_0x181281,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2a7381,'addComment',(_0x4d546c,{threadId:_0x238f39,isFromAdapter:_0x52cb0a})=>{if(_0x52cb0a||!_0x25aca3['hasSuggestion'](_0x238f39))return;const _0xcf7edc=_0x25aca3['getSuggestion'](_0x238f39);this['_suggestionToController']['get'](_0xcf7edc)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1f147a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x21c494;for(const _0x3eb1e3 in _0x1f147a){const _0x2cfac2=_0x3eb1e3,_0x45fe35=_0x1f147a[_0x2cfac2];if('trackChangesLicenseKeyValid'==_0x45fe35||'trackChangesLicenseKeyInvalid'==_0x45fe35||'trackChangesLicenseKeyExpired'==_0x45fe35||'trackChangesLicenseKeyDomainLimit'==_0x45fe35||'trackChangesLicenseKeyNotAllowed'==_0x45fe35||'trackChangesLicenseKeyEvaluationLimit'==_0x45fe35||'trackChangesLicenseKeyTrialLimit'==_0x45fe35||'trackChangesLicenseKeyUsageLimit'==_0x45fe35){delete _0x1f147a[_0x2cfac2],_0x21c494=_0x45fe35,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x21c494&&_0x1f147a['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x21c494&&_0x1f147a['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x21c494&&_0x1f147a['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x21c494&&_0x1f147a['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x21c494&&_0x1f147a['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x21c494&&_0x1f147a['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x21c494&&_0x1f147a['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x3c6c5b){const _0x553969=this['_suggestionToController']['get'](_0x3c6c5b);if(!_0x553969)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x553969['view'])||null;}['getSuggestionForAnnotation'](_0x12d6bb){const _0x579f90=this['_viewToController']['get'](_0x12d6bb['innerView']);return _0x579f90?_0x579f90['model']:null;}['_refreshActiveMarkers'](){const _0x3c14b2=this['editor']['plugins']['get']('Annotations'),_0x4e3888=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2590c3=Array['from'](_0x3c14b2['activeAnnotations'],_0x3dc8c5=>_0x3dc8c5['innerView'])['filter'](_0x5ac954=>this['_viewToController']['has'](_0x5ac954)),_0x205ff7=[];for(const _0x3f30a4 of _0x2590c3){const _0x3f8018=this['_viewToController']['get'](_0x3f30a4)['model']['getAllAdjacentSuggestions']();_0x205ff7['push'](..._0x3f8018['reduce']((_0x2b7634,_0x3a4ac9)=>[..._0x2b7634,..._0x3a4ac9['getMarkerNames']()],[]));}_0x4e3888['activeMarkers']=_0x205ff7;}['_addUIComponentsToFactory'](){const _0x50570e=this['editor'],_0x26f70b=_0x50570e['locale'],_0x414212=o(_0x26f70b,'Track\x20changes'),_0x259765=new _0x1f5b20([{'type':'switchbutton','model':new _0xf1f065({'withText':!0x0,'isToggleable':!0x0,'label':_0x414212,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xf1f065({'withText':!0x0,'label':o(_0x26f70b,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xf1f065({'withText':!0x0,'label':o(_0x26f70b,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xf1f065({'withText':!0x0,'label':o(_0x26f70b,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xf1f065({'withText':!0x0,'label':o(_0x26f70b,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x50570e['plugins']['has']('TrackChangesPreview')&&_0x259765['addMany']([{'type':'separator'},{'type':'button','model':new _0xf1f065({'withText':!0x0,'label':o(_0x26f70b,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x236f39 of _0x259765)if(ke(_0x236f39)){const _0x4a266c=_0x50570e['commands']['get'](_0x236f39['model']['commandName']);_0x236f39['model']['bind']('isOn','isEnabled')['to'](_0x4a266c,'value','isEnabled');}_0x50570e['ui']['componentFactory']['add']('trackChanges',_0x1806ac=>this['_createToolbarButton'](_0x1806ac,_0x259765,_0x414212)),_0x50570e['ui']['componentFactory']['add']('menuBar:trackChanges',_0x505bed=>this['_createMenuBarMenu'](_0x505bed,_0x259765,_0x414212));}['_createToolbarButton'](_0x249c57,_0x4e6f48,_0x899a31){const _0x479baf=_0x28d278(_0x249c57,_0xcd0c07),_0x38fd40=this['editor']['commands']['get']('trackChanges');_0x479baf['buttonView']['set']({'tooltip':_0x899a31,'label':_0x899a31,'icon':_0x1236f4}),_0x479baf['buttonView']['bind']('isOn')['to'](_0x38fd40,'value'),_0x479baf['buttonView']['on']('execute',()=>{_0x38fd40['execute'](),this['editor']['editing']['view']['focus']();}),_0x1286f2(_0x479baf,_0x4e6f48,{'role':'menu'});const _0x3c6907=[];for(const _0x5f1eaf of _0x4e6f48)ke(_0x5f1eaf)&&_0x3c6907['push'](this['editor']['commands']['get'](_0x5f1eaf['model']['commandName']));const _0x21b132=_0x479baf['buttonView'];return _0x21b132['actionView']['unbind']('isEnabled'),_0x21b132['arrowView']['unbind']('isEnabled'),_0x21b132['actionView']['bind']('isEnabled')['to'](_0x38fd40,'isEnabled'),_0x21b132['arrowView']['bind']('isEnabled')['toMany'](_0x3c6907,'isEnabled',(..._0x4b1b68)=>_0x4b1b68['some'](_0x2884de=>_0x2884de)),_0x479baf['on']('execute',_0x40f6db=>{this['editor']['execute'](_0x40f6db['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x479baf;}['_createMenuBarMenu'](_0x1a2a14,_0x14ba43,_0x2f19f4){const _0xe65fc=new _0x5c9e28(_0x1a2a14),_0x47f9d4=this['editor']['commands']['get']('trackChanges');_0xe65fc['buttonView']['set']({'label':_0x2f19f4,'icon':_0x1236f4});const _0x2fb072=new _0x384be6(_0x1a2a14);for(const _0x412eee of _0x14ba43){if('separator'==_0x412eee['type']){_0x2fb072['items']['add'](new _0x573aee(_0x1a2a14));continue;}const _0x17045d=new _0x4ac3b6(_0x1a2a14,_0xe65fc),_0x26e802=new _0x52a886(_0x1a2a14),_0x510086=_0x412eee['model'];_0x26e802['bind'](...Object['keys'](_0x510086))['to'](_0x510086),_0x26e802['delegate']('execute')['to'](_0xe65fc),_0x26e802['on']('execute',()=>{this['editor']['execute'](_0x510086['commandName']),this['editor']['editing']['view']['focus']();}),_0x17045d['children']['add'](_0x26e802),_0x2fb072['items']['add'](_0x17045d);}return _0xe65fc['bind']('isEnabled')['to'](_0x47f9d4,'isEnabled'),_0xe65fc['panelView']['children']['add'](_0x2fb072),_0xe65fc;}['_initializeController'](_0x176d34){const _0x23a0a2=this['editor'],_0x3dad4a=_0x23a0a2['config'],_0xbcb2b6=_0x23a0a2['plugins']['get']('Annotations'),_0x25c644=_0x23a0a2['plugins']['get']('CommentsRepository'),_0x17683d=_0x23a0a2['plugins']['get']('EditorAnnotations'),_0x508936=_0x23a0a2['plugins']['get'](_0x6d65dd)['me'],_0x26f118=_0x3dad4a['get']('trackChanges')['SuggestionThreadView'],_0x415467=_0x3dad4a['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x197e1f,CommentThreadInputView:_0x2532a0}=_0x23a0a2['plugins']['get']('CommentsUI');let _0x3443d2,_0x20eb95,_0x45eb03;this['_annotationViews']['has'](_0x176d34['id'])?(_0x20eb95=this['_annotationViews']['get'](_0x176d34['id']),_0x3443d2=_0x20eb95['mainView']):(_0x3443d2=new _0x26f118(_0x23a0a2['locale'],_0x176d34,_0x508936,{'disableComments':this['_disableComments'],'editorConfig':{..._0x3dad4a['get']('comments.editorConfig'),'licenseKey':_0x3dad4a['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x3dad4a['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3dad4a['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3dad4a['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x434f11(_0x3dad4a['get']('locale'),_0x23a0a2['locale']),'CommentView':_0x3dad4a['get']('comments')['CommentView'],'CommentsListView':_0x197e1f,'CommentThreadInputView':_0x2532a0,'SuggestionView':_0x415467}),_0x3443d2['suggestionView']['acceptButton']['on']('execute',()=>{_0x23a0a2['editing']['view']['focus']();}),_0x3443d2['suggestionView']['discardButton']['on']('execute',()=>{_0x23a0a2['editing']['view']['focus']();}),_0x20eb95=_0xbcb2b6['createAnnotationView'](this['editor']['locale'],_0x3443d2),_0x20eb95['bind']('isDirty')['to'](_0x3443d2,'isDirty'),_0x20eb95['bind']('length')['to'](_0x3443d2),_0x20eb95['bind']('type')['to'](_0x3443d2,'type',_0x361476=>'suggestion-'+_0x361476),_0x3443d2['on']('escape',()=>{_0x45eb03['fire']('escape');}),this['_annotationViews']['set'](_0x176d34['id'],_0x20eb95));const _0x5202f5=_0x25c644['createCommentThreadController'](_0x176d34['commentThread'],_0x3443d2),_0x162f67=new pe(_0x23a0a2,_0x176d34,_0x3443d2,_0x5202f5),_0x31b69e=_0x176d34['getAllAdjacentSuggestions']()['filter'](_0x443ae7=>_0x443ae7['isInContent']);_0x3443d2['descriptionParts']=_0x23a0a2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x31b69e),this['_suggestionToController']['set'](_0x176d34,_0x162f67),this['_viewToController']['set'](_0x3443d2,_0x162f67),_0x45eb03=_0xbcb2b6['createAnnotation']({'view':_0x20eb95,'target':()=>{const _0x1e3fef=[],_0x434e3a=_0x176d34['getAllAdjacentSuggestions']()['filter'](_0x373771=>_0x373771['isInContent']);for(const _0x50fc6e of _0x434e3a)_0x1e3fef['push'](..._0x50fc6e['getMarkers']());return _0x48eca7(_0x23a0a2['editing'],_0x1e3fef);},'type':()=>'suggestion-'+_0x162f67['view']['type']}),_0x25c644['_bindAnnotationToEditors'](_0x3443d2,_0x45eb03),_0xbcb2b6['add'](_0x45eb03),_0x17683d['registerAnnotation'](_0x45eb03);}['_destroyController'](_0x216e92){const _0x34b830=this['editor']['plugins']['get']('CommentsRepository'),_0xc6f06c=this['editor']['plugins']['get']('Annotations'),_0x345815=this['_suggestionToController']['get'](_0x216e92),_0x4b5081=_0x345815['view'],_0x300e53=_0xc6f06c['getByInnerView'](_0x4b5081);_0x34b830['_unbindEditors'](_0x4b5081),_0x300e53&&_0xc6f06c['remove'](_0x300e53),this['_suggestionToController']['delete'](_0x216e92),this['_viewToController']['delete'](_0x4b5081),_0x345815['destroy']();}['_updateController'](_0x262f0f){if(!_0x262f0f['isInContent']||!this['_suggestionToController']['has'](_0x262f0f))return;const _0x3bbdca=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37f708=this['_suggestionToController']['get'](_0x262f0f),_0x5f0943=_0x262f0f['getAllAdjacentSuggestions']();_0x37f708['view']['descriptionParts']=_0x3bbdca['descriptionFactory']['getDescriptions'](_0x5f0943);}['destroy'](){for(const _0x3fc1b8 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3fc1b8);for(const _0x3cc540 of this['_annotationViews']['values']())_0x3cc540['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x22c1f8){return'model'in _0x22c1f8;}class Fe extends _0x2611d7{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x347a37){this['editor']['plugins']['get'](d)['adapter']=_0x347a37;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x2f76bc){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x2f76bc);}['getSuggestions']({skipNotAttached:_0x3ca8a2=!0x1,toJSON:_0xb945fe=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x3ca8a2,'toJSON':_0xb945fe});}['getSuggestion'](_0xe284f9){return this['editor']['plugins']['get'](d)['getSuggestion'](_0xe284f9);}}const p=['Pagination'];class re extends _0x2611d7{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5d18e3=this['editor'];if(_0x5d18e3['config']['define']('trackChangesData.editorCreator',_0x336e1c=>{const _0x38eaba=_0x5d18e3['model']['document']['getRootNames']()['reduce']((_0x442f6b,_0x218f61)=>(_0x442f6b[_0x218f61]='',_0x442f6b),{});return _0x5d18e3['constructor']['create'](_0x38eaba,_0x336e1c);}),'function'!=typeof _0x5d18e3['config']['get']('trackChangesData')['editorCreator'])throw new _0x84cc70('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x433e7c){return P(this['editor'],!0x0,_0x433e7c);}['getDataWithDiscardedSuggestions'](_0x1ab529){return P(this['editor'],!0x1,_0x1ab529);}}class Ge extends _0x2611d7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1ac112){function _0x482d88(_0x1e772f){return _0x1e772f['map'](_0x51afca=>String['fromCharCode'](_0x51afca))['join']('');}super(_0x1ac112),this['result']='end',_0x1ac112[_0x482d88([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x482d88([0x76,0x69,0x65,0x77])][_0x482d88([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x482d88([0x61,0x75,0x74,0x6f]),_0x1ac112[_0x482d88([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x482d88([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x482d88([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x482d88([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x482d88([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 $e(_0x3aaff3){return void 0x0!==_0x3aaff3['getRootsAttributes'];}async function P(_0x5251c4,_0x8a11b2,_0x529362){const _0x508f76=_0x13df1d(_0x5251c4,p);_0x508f76['plugins']['push'](d,Ge),_0x508f76['rootsAttributes']=$e(_0x5251c4)?_0x5251c4['getRootsAttributes']():void 0x0;const _0xa0a0d9=document['createDocumentFragment'](),_0x4e20c8=_0x5251c4['config']['get']('trackChangesData')['editorCreator'],_0x558045=await _0x4e20c8(_0x508f76,()=>function(_0x4597e6){const _0x3186ca=document['createElement']('div');return _0x4597e6['appendChild'](_0x3186ca),_0x3186ca;}(_0xa0a0d9));!function(_0x3a3741,_0x2fe843){const _0x4d7ca2=_0x3a3741['model']['document']['getRootNames']()['reduce']((_0x46e7a2,_0x31ab1d)=>(_0x46e7a2[_0x31ab1d]=_0x3a3741['data']['get']({'rootName':_0x31ab1d}),_0x46e7a2),{}),_0x4467e4=_0x3a3741['plugins']['get']('Users')['users']['map'](_0x17a67a=>({'id':_0x17a67a['id'],'name':_0x17a67a['name']})),_0x40b14c=_0x3a3741['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1079de=_0x3a3741['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3bd50e=_0x2fe843['plugins']['get']('Users'),_0x3a8bf8=_0x2fe843['plugins']['get']('TrackChangesEditing'),_0xd93635=_0x2fe843['plugins']['get']('CommentsRepository');for(const _0x482849 of _0xd93635['getCommentThreads']())_0x482849['remove']();for(const _0x29b323 of _0x4467e4)_0x3bd50e['getUser'](_0x29b323['id'])||_0x3bd50e['addUser'](_0x29b323);_0x3bd50e['me']||_0x3bd50e['useAnonymousUser']();for(const _0x4425a4 of _0x1079de)_0xd93635['addCommentThread'](_0x4425a4);for(const _0x4f3edb of _0x40b14c)_0x3a8bf8['addSuggestionData'](_0x4f3edb);_0x2fe843['data']['set'](_0x4d7ca2);}(_0x5251c4,_0x558045),_0x558045['execute'](_0x8a11b2?'acceptAllSuggestions':'discardAllSuggestions');const _0x3f458a=$e(_0x558045)?_0x558045['getFullData'](_0x529362):_0x558045['data']['get'](_0x529362);return await _0x558045['destroy'](),_0x3f458a;}class Me extends _0x3e0d77{['options'];constructor(_0x43b14a,_0x575fd5){super(_0x43b14a),this['options']=_0x575fd5,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'](_0x9f3303,_0x1f3d12){if(!this['element'])return;const _0x1509d3=[];for(const [_0xdcfd74,_0x190aee]of _0x9f3303){const _0x3db493=document['createElement']('div');_0x3db493['setAttribute']('data-ck-root-name',_0xdcfd74),_0x3db493['className']=_0x190aee['classes']+'\x20ck-track-changes-preview__root-container',_0x3db493['innerHTML']=_0x190aee['content'],_0x1509d3['push'](_0x3db493);}_0x1f3d12(this['element'],_0x1509d3),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x3a92cc{constructor(_0x4cacdd){super(_0x4cacdd),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x47633f=this['editor'],_0x511671=_0x47633f['locale'],_0x2710e8=_0x47633f['plugins']['get']('Dialog');let _0x4167ce;const _0x1d64fd=function(_0x3febd6){const _0x30f224={};if('editables'in _0x3febd6['ui']['view']){for(const [_0x1b9e31,_0x46db41]of Object['entries'](_0x3febd6['ui']['view']['editables']))_0x30f224[_0x1b9e31]=_0x46db41['element'];}else _0x30f224[_0x3febd6['model']['document']['getRootNames']()[0x0]]=_0x3febd6['ui']['view']['editable']['element'];return _0x30f224;}(_0x47633f),_0x1af0d9=function(_0x12f6e1){let _0x52783d=0x0;for(const _0x34a386 of Object['values'](_0x12f6e1))_0x52783d=Math['max'](_0x52783d,_0x34a386['getBoundingClientRect']()['width']);let _0x115bb8=0x0;for(const _0x286fbd of Object['values'](_0x12f6e1))_0x115bb8+=_0x286fbd['getBoundingClientRect']()['height'];const _0x3ec3a9=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x18fa22=Math['min'](_0x115bb8,_0x3ec3a9);return{'width':_0x52783d,'height':_0x18fa22};}(_0x1d64fd);_0x2710e8['show']({'id':'finalContentPreview','title':o(_0x511671,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x511671,{'dialogRects':_0x1af0d9}),'onHide':()=>{_0x4167ce['detachFromDom']();},'onShow':()=>{_0x47633f['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x5dfadb=>{const _0x4679f6=this['_standarizeRootsData'](_0x5dfadb,_0x47633f,_0x1d64fd);_0x2710e8['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4679f6,_0x47633f['config']['get']('trackChanges.preview.renderFunction'));}),_0x4167ce=new _0x892a28(_0x511671,[_0x2710e8['view']]),_0x4167ce['attachToDom'](),_0x4167ce['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x47633f['once']('destroy',()=>{_0x4167ce['detachFromDom']();});const _0x520c7f=_0x2710e8['view']['headerView']['class'];_0x2710e8['view']['headerView']['class']=_0x520c7f?_0x520c7f+'\x20ck-reset_all':'ck-reset_all',_0x2710e8['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2710e8['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1f1030=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3d18c0=_0x1f1030['previewMode'],_0x4b0a57={};if('$labels'===_0x3d18c0){for(const _0x53c067 of _0x1f1030['getMergeFieldsIds']())_0x4b0a57[_0x53c067]=_0x1f1030['getLabel'](_0x53c067)||_0x53c067;}else{const _0x24c720='$defaultValues'===_0x3d18c0?_0x1f1030['getDefaultValues']():_0x1f1030['getDataSetValues'](_0x3d18c0,!0x0);for(const _0x5983f8 of Object['entries'](_0x24c720)){const [_0x38bf3d,_0x56c16e]=_0x5983f8;_0x4b0a57[_0x38bf3d]=null!==_0x56c16e?_0x56c16e:_0x1f1030['getLabel'](_0x38bf3d)||_0x38bf3d;}}return{'mergeFieldsData':_0x4b0a57};}['_standarizeRootsData'](_0x1846dd,_0x33efdc,_0x2c9ea1){let _0x2dde97;if('string'==typeof _0x1846dd){const _0x37bf01=_0x33efdc['model']['document']['getRootNames']()[0x0];_0x2dde97={[_0x37bf01]:_0x1846dd};}else _0x2dde97=_0x1846dd;const _0x1eff98=this['_fixMediaEmbeds'](_0x2dde97,_0x33efdc),_0x39586d=function(_0x2fb358,_0x2cfd7e){for(const [_0x3f2af2,_0x45e159]of _0x2fb358)_0x45e159['classes']=_0x2cfd7e[_0x3f2af2]['classList']['value']['replace']('ck-focused','');return _0x2fb358;}(this['_sortRoots'](_0x33efdc)['reduce']((_0x2aa79e,_0xcb51bd)=>(_0x2aa79e['push']([_0xcb51bd,{'content':_0x1eff98[_0xcb51bd],'classes':''}]),_0x2aa79e),[]),_0x2c9ea1);return _0x39586d;}['_fixMediaEmbeds'](_0x2a5871,_0x467a82){if(!_0x467a82['plugins']['has']('MediaEmbedEditing'))return _0x2a5871;const _0x1df844=_0x467a82['plugins']['get']('MediaEmbedEditing');for(const [_0x29adf4,_0x52507a]of Object['entries'](_0x2a5871)){const _0x362941=document['createElement']('div');_0x362941['innerHTML']=_0x52507a,(_0x362941['querySelectorAll']('figure.media')['forEach'](_0x439284=>{const _0x2ee09b=_0x439284['querySelector']('oembed');if(_0x2ee09b){const _0x40181c=_0x2ee09b['getAttribute']('url');if(_0x40181c){const _0x1e8c1d=_0x1df844['registry']['getMediaViewElement'](new _0x40f0dc(_0x467a82['editing']['view']['document']),_0x40181c,{'elementName':'','renderForEditingView':!0x0}),_0x12d47c=document['createElement']('div');_0x12d47c['classList']['add']('ck-media__wrapper'),_0x1e8c1d['render'](_0x12d47c,_0x467a82['editing']['view']['domConverter']),_0x2ee09b['replaceWith'](_0x12d47c);}}}),_0x2a5871[_0x29adf4]=_0x362941['innerHTML']);}return _0x2a5871;}['_sortRoots'](_0x317ce2){if(!function(_0x1b733d){return void 0x0!==_0x1b733d['getRootsAttributes'];}(_0x317ce2))return _0x317ce2['model']['document']['getRootNames']();const _0x29ceda=[],_0x3e504f=new Map();for(const _0x2571ca of _0x317ce2['model']['document']['getRootNames']()){const _0x57f7cf=_0x317ce2['editing']['view']['getDomRoot'](_0x2571ca)['getClientRects']()['item'](0x0);_0x29ceda['push'](_0x2571ca),_0x3e504f['set'](_0x2571ca,_0x57f7cf);}return _0x29ceda['sort']((_0x4a6867,_0x28bc1b)=>{const _0x2974b7=_0x3e504f['get'](_0x4a6867),_0x23984b=_0x3e504f['get'](_0x28bc1b);return _0x2974b7['y']-_0x23984b['y']||_0x2974b7['x']-_0x23984b['x'];}),_0x29ceda;}}class He extends _0x2611d7{static get['requires'](){return[re,_0x244fa7];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x359aa){super(_0x359aa),_0x359aa['commands']['add']('previewFinalContent',new te(this['editor'])),_0x359aa['config']['define']('trackChanges.preview.renderFunction',(_0x4ad5b6,_0x5721b8)=>{for(const _0x70efce of _0x5721b8)_0x4ad5b6['appendChild'](_0x70efce);});}}export{D as AcceptSuggestionCommand,ti as BaseSuggestionThreadView,M as DiscardSuggestionCommand,$ as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,He as TrackChangesPreview,Me as _SuggestionsPreviewView,m as _TRACK_CHANGES_RENAME_ATTRIBUTE_KEY};