@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250404.0 → 0.0.0-nightly-20250406.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x5a8501,Plugin as _0x3c8d18,PendingActions as _0xb80de1}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x52b81e,ObservableMixin as _0x5e3f38,uid as _0x37dcac,priorities as _0x3e9730,insertToPriorityArray as _0x295de8,logWarning as _0x402caf,getEnvKeystrokeText as _0x2ab456,FocusTracker as _0x4ff1c4,KeystrokeHandler as _0x127d38,Collection as _0x4362b5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x553a6d,IconCancel as _0xbd368c,IconTrackChanges as _0x58ff78}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x3d9b40,View as _0x2ff3e8,ViewCollection as _0x224e22,FocusCycler as _0x330adf,ViewModel as _0x1adbb0,createDropdown as _0x3c79d8,SplitButtonView as _0x2aa3ca,addListToDropdown as _0x320201,MenuBarMenuView as _0x31e669,MenuBarMenuListView as _0x37b736,ListSeparatorView as _0x3c3e72,MenuBarMenuListItemView as _0x499647,MenuBarMenuListItemButtonView as _0x19f4e8,BodyCollection as _0x51d00a,Dialog as _0x1e172d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x16d403,hashObject as _0xe5430f,surroundingMarkersDetector as _0x18545d,FOCUS_ANNOTATION_KEYSTROKE as _0x2ee282,AriaDescriptionView as _0x344110,setupThreadKeyboardNavigation as _0x4de5ec,trimHtml as ti,UserView as _0x5c5d23,LateFocusButtonView as _0x1f7e05,getDateTimeFormatter as _0x4de353,getAllMarkersDomElementsSorted as _0x32245c,sanitizeEditorConfig as _0x2bb438}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1588c2,LiveRange as _0x4c7462,LivePosition as _0xc121b8,DowncastWriter as _0x147673}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x24cb58,toWidget as _0x36284b}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x5f2f81,set as _0x50ec6f,isEqual as _0x28517a,unset as _0x3873cc,omit as Ft}from'es-toolkit/compat';import{Delete as _0x3ed0f1,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xf7b231}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x3d6d80}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x5a8501{['_enabledCommands'];constructor(_0x4da607,_0x1317c5){super(_0x4da607),this['_enabledCommands']=_0x1317c5,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 _0x136369 of this['editor']['commands']['commands']())_0x136369['affectsData']&&!this['_enabledCommands']['has'](_0x136369)&&_0x136369['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4c176b of this['editor']['commands']['commands']())_0x4c176b['affectsData']&&!this['_enabledCommands']['has'](_0x4c176b)&&_0x4c176b['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x5a8501{['_suggestions'];constructor(_0x55aa2a,_0x4e7ef1){super(_0x55aa2a),this['_suggestions']=_0x4e7ef1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xe891ee){const _0x527839=this['_suggestions']['get'](_0xe891ee);if(!_0x527839)throw new _0x52b81e('track-changes-accept-suggestion-not-found',this);const _0x194a54=_0x527839['getRanges']();this['editor']['model']['canEditAt'](_0x194a54)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x527839);}}class R extends _0x5a8501{['_suggestions'];constructor(_0x2ac1fb,_0x112f1a){super(_0x2ac1fb),this['_suggestions']=_0x112f1a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5e4b52){const _0x382b66=this['_suggestions']['get'](_0x5e4b52);if(!_0x382b66)throw new _0x52b81e('track-changes-discard-suggestion-not-found',this);const _0x9758fd=_0x382b66['getRanges']();this['editor']['model']['canEditAt'](_0x9758fd)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x382b66);}}function ls(_0x4d48e2,_0x2dc2e1){let _0x57e172='';return _0x57e172+=_0x4d48e2['split']('*')['map']((_0x20e48d,_0x3cb734)=>_0x3cb734%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x20e48d)+'</span>':nn(_0x20e48d))['join'](''),_0x2dc2e1&&(_0x57e172+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2dc2e1['value']+'\x22\x20title=\x22'+_0x2dc2e1['title']+'\x22></span>'),_0x57e172;}function nn(_0xfccad5){const _0x465a02=document['createElement']('span');return _0x465a02['innerText']=_0xfccad5,_0x465a02['innerHTML'];}function ts(_0x3bc640){return _0x3bc640['sort']((_0x22054f,_0x3adafe)=>'deletion'==_0x22054f['type']&&'deletion'!=_0x3adafe['type']?-0x1:'deletion'!=_0x22054f['type']&&'deletion'==_0x3adafe['type']?0x1:0x0);}function to(_0x480cfc,_0x4c6ecc){let _0x3dc5df,_0x5e304a=0x0;const _0x214ab5=[],_0x5e9135=_0x4c6ecc['schema'];for(;_0x5e304a<_0x480cfc['length'];){const _0x5d7419=_0x480cfc[_0x5e304a],_0x510ea9=_0x480cfc[_0x5e304a+0x1];_0x3dc5df||(_0x3dc5df=_0x4c6ecc['createPositionBefore'](_0x5d7419)),on(_0x4c6ecc,_0x5d7419,_0x510ea9)||(_0x214ab5['push'](_0x4c6ecc['createRange'](_0x3dc5df,_0x5e9135['isObject'](_0x5d7419)?_0x4c6ecc['createPositionAfter'](_0x5d7419):_0x4c6ecc['createPositionAt'](_0x5d7419,'end'))),_0x3dc5df=null),_0x5e304a++;}return _0x214ab5;}function on(_0x40aa3f,_0x74b7ce,_0x52fd06){if(!_0x52fd06)return!0x1;const _0x23af61=_0x40aa3f['createPositionAfter'](_0x74b7ce),_0x4f691d=_0x40aa3f['createPositionBefore'](_0x52fd06);return _0x23af61['isTouching'](_0x4f691d);}function rs(_0x4f70a5,_0x5aed1a,_0x5a9998){for(;_0x5a9998['length'];){const _0x5a296e=_0x5a9998['splice'](0x0,0x64);_0x4f70a5['change'](()=>{for(const _0x2a1635 of _0x5a296e)_0x2a1635['isInContent']&&_0x5aed1a['execute'](_0x2a1635['id']);});}}class x extends _0x5a8501{['_command'];['_suggestions'];constructor(_0x46a870,_0x73f5be,_0x472f03){super(_0x46a870),this['_command']=_0x73f5be,this['_suggestions']=_0x472f03,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x254309=Array['from'](this['_suggestions']['values']())['some'](_0x339b2e=>_0x339b2e['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x254309;}['execute'](){const _0x3a1044=ts(Array['from'](this['_suggestions']['values']()));for(const _0x38daa2 of _0x3a1044){const _0x5b2e52=_0x38daa2['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5b2e52))return;}rs(this['editor']['model'],this['_command'],_0x3a1044);}}class E extends _0x5a8501{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1df1e8,_0x22494c,_0x3efec6){super(_0x1df1e8),this['_command']=_0x22494c,this['_suggestions']=_0x3efec6,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4d7feb=this['editor']['model']['document']['selection'],_0x411b15=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5c5e6e,_0x4a246b){const _0xf4609d=Array['from'](_0x5c5e6e['getRanges']()),_0x29d4ce=new Set();for(const _0x2c79dd of _0x4a246b)if(_0x2c79dd['isInContent']){for(const _0x2114f1 of _0xf4609d)for(const _0xe08593 of _0x2c79dd['getRanges']())(_0x2114f1['isIntersecting'](_0xe08593)||_0x5c5e6e['isCollapsed']&&!_0x2c79dd['isMultiRange']&&_0x2c79dd['next']&&_0xe08593['end']['isTouching'](_0x2114f1['start']))&&_0x29d4ce['add'](_0x2c79dd);}return _0x29d4ce;}(_0x4d7feb,_0x411b15),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1fd4a2=ts(Array['from'](this['_selectedSuggestions']));for(const _0x18992e of _0x1fd4a2){const _0xcb40e=_0x18992e['getRanges']();if(!this['editor']['model']['canEditAt'](_0xcb40e))return;}rs(this['editor']['model'],this['_command'],_0x1fd4a2);}}class o extends/* #__PURE__ -- @preserve */
24
- _0x5e3f38(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x20d1c8,_0x37cefb){super(),this['id']=_0x37cefb['id'],this['type']=_0x37cefb['type'],this['subType']=_0x37cefb['subType']||null,this['author']=_0x37cefb['author'],this['creator']=_0x37cefb['creator']||_0x37cefb['author'],this['isExternal']=Boolean(_0x37cefb['attributes']&&_0x37cefb['attributes']['@external']),this['data']=null,this['_model']=_0x20d1c8,this['_onAccept']=_0x37cefb['onAccept'],this['_onDiscard']=_0x37cefb['onDiscard'],this['_onAttributesChange']=_0x37cefb['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x37cefb['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 _0xf854cb=this;for(;_0xf854cb['previous'];)_0xf854cb=_0xf854cb['previous'];return _0xf854cb;}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'](_0xc44129){this['_markerNames']['add'](_0xc44129);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4d8d6a=>this['_model']['markers']['get'](_0x4d8d6a))['filter'](_0x5e26ec=>_0x5e26ec);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3a0828=>{for(const _0x14473e of this['getMarkers']())_0x3a0828['removeMarker'](_0x14473e);}),this['_markerNames']['clear']();}['removeMarker'](_0x111a25){this['_model']['change'](_0x4c204d=>{_0x4c204d['removeMarker'](_0x111a25);}),this['_markerNames']['delete'](_0x111a25);}['addRange'](_0x323f47){const _0x3168c0='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x3168c0),this['_model']['change'](_0x579dfc=>{_0x579dfc['addMarker'](_0x3168c0,{'range':_0x323f47,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x26afa5){for(const _0x130879 of this['getRanges']())if(_0x130879['isIntersecting'](_0x26afa5))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x713208=>_0x713208['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x864820,_0x14e323)=>[..._0x864820,..._0x14e323['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x761f89=this['getRanges']();if(0x1!=_0x761f89['length'])return null;const _0x74370c=_0x761f89[0x0],_0x23a2a9=_0x74370c['start']['nodeAfter'],_0x163e95=_0x74370c['end']['nodeBefore'];return _0x23a2a9 instanceof _0x1588c2?_0x23a2a9!=_0x163e95?null:_0x23a2a9: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 _0x42f8b8=[];let _0x2aab4f=this['head'];for(;_0x2aab4f;)_0x42f8b8['push'](_0x2aab4f),_0x2aab4f=_0x2aab4f['next'];return _0x42f8b8;}['setAttribute'](_0x584086,_0x54ff82){const _0x3dba20=_0x5f2f81(this['attributes']);_0x50ec6f(_0x3dba20,_0x584086,_0x54ff82),_0x28517a(_0x3dba20,this['attributes'])||(this['attributes']=_0x3dba20,this['_onAttributesChange'](_0x3dba20));}['removeAttribute'](_0x5b9dfb){const _0x49bbb2=_0x5f2f81(this['attributes']);_0x3873cc(_0x49bbb2,_0x5b9dfb),_0x28517a(_0x49bbb2,this['attributes'])||(this['attributes']=_0x49bbb2,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 _0x37dcac()['substr'](0x1,0x5);}}function c(_0x42fac7,_0x3ee532,_0x33c735){const _0x174f2c=_0x42fac7['t'],t=_0x42fac7['t'];switch(_0x3ee532){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',_0x33c735);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x33c735);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x33c735);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x33c735);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x33c735);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',_0x33c735);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x33c735);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',_0x33c735);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x33c735);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x33c735);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x33c735);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x33c735);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x33c735);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x33c735);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x33c735);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x33c735);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x33c735);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x33c735);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x33c735);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x33c735);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x33c735);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x33c735);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x33c735);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x33c735);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x33c735);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'},_0x33c735);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x33c735);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x33c735);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x33c735);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x33c735);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x33c735);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x33c735);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x33c735);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'},_0x33c735);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x33c735);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x33c735);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x33c735);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x33c735);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'},_0x33c735);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x33c735);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'},_0x33c735);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x33c735);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x33c735);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'},_0x33c735);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x33c735);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'},_0x33c735);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x33c735);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x33c735);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'},_0x33c735);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x33c735);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 _0x174f2c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x33c735);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x174f2c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x33c735);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x33c735);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'},_0x33c735);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'},_0x33c735);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'},_0x33c735);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3ee532;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x26f3c5,_0x546b12){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x26f3c5,this['_locale']=_0x546b12;}['getDescriptions'](_0x32fc93){const _0x4ecdf0=[],_0x1cf4e5=new Set(),_0x390180=new Set();for(let _0x3846ff=0x0;_0x3846ff<_0x32fc93['length'];_0x3846ff++){const _0x3ba41a=_0x32fc93[_0x3846ff];if(!_0x3ba41a['isInContent'])continue;const _0xe237f2=this['_handleCustomCallbackDescription'](_0x3ba41a);if(_0xe237f2){if(null!=_0x3ba41a['subType']){if(_0x1cf4e5['has'](_0x3ba41a['subType']))continue;_0x1cf4e5['add'](_0x3ba41a['subType']);}_0x4ecdf0['push'](_0xe237f2);}else{if('attribute'!=_0x3ba41a['type'])'insertion'!=_0x3ba41a['type']&&'deletion'!=_0x3ba41a['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4ecdf0,_0x3ba41a,_0x32fc93[_0x3846ff+0x1]);else{const _0xeba432=_0x3ba41a['data']['key'];if(_0x390180['has'](_0xeba432))continue;_0x390180['add'](_0x3ba41a['data']['key']),_0xeba432==u?this['_handleRenameSuggestionDescription'](_0x4ecdf0,_0x3ba41a):this['_handleAttributeSuggestionDescription'](_0x4ecdf0,_0x3ba41a);}}}return this['_resolveDescriptionItems'](_0x4ecdf0);}['registerDescriptionCallback'](_0x330899){this['_customCallbacks']['push'](_0x330899);}['registerElementLabel'](_0x228463,_0x12b3f7,_0x1624fb=_0x3e9730['normal']){'function'==typeof _0x228463?_0x295de8(this['_itemLabelsCallbacks'],{'matchingCallback':_0x228463,'label':_0x12b3f7,'priority':_0x1624fb}):this['_itemLabels']['set'](_0x228463,_0x12b3f7);}['registerAttributeLabel'](_0x2f3df5,_0x1000ba){this['_attributeLabels']['set'](_0x2f3df5,_0x1000ba);}['getItemLabel'](_0x481a72,_0x235f0c=0x1){let _0xf5adfe;for(const _0xaea570 of this['_itemLabelsCallbacks'])if(_0xaea570['matchingCallback'](_0x481a72)){_0xf5adfe=_0xaea570['label'];break;}return _0xf5adfe||(_0xf5adfe=this['_itemLabels']['get'](_0x481a72['name'])),_0xf5adfe?_0xf5adfe(_0x235f0c):0x1!==_0x235f0c?_0x235f0c+'\x20'+_0x481a72['name']+'s':''+_0x481a72['name'];}['_addDescriptionItems'](_0x32e600,_0x261e3b){const _0x36dc27=_0x261e3b['getFirstRange']()['getWalker'](),_0xb8b8ca='insertion'==_0x261e3b['type']?'add':'remove';for(const _0x3527f5 of _0x36dc27){const _0x21fb83=_0x3527f5['item'],_0x20b635=_0x32e600[_0x32e600['length']-0x1];if(_0x21fb83['is']('$textProxy'))_0x20b635&&_0x20b635['type']['indexOf']('Container')>-0x1&&_0x32e600['pop'](),_0x20b635&&'text'==_0x20b635['type']?_0x20b635[_0xb8b8ca]+=_0x21fb83['data']:_0x32e600['push']({'type':'text','add':'add'==_0xb8b8ca?_0x21fb83['data']:'','remove':'remove'==_0xb8b8ca?_0x21fb83['data']:''});else{if(this['_schema']['isObject'](_0x21fb83)){const _0x16704a=_0x21fb83;if(_0x20b635&&_0x20b635['type']['indexOf']('Container')>-0x1&&_0x32e600['pop'](),'elementEnd'==_0x3527f5['type'])continue;_0x20b635&&_0x20b635['type']==_0xb8b8ca+'Object'&&_0x20b635['element']['name']==_0x16704a['name']?_0x20b635['quantity']++:_0x32e600['push']({'type':_0xb8b8ca+'Object','element':_0x16704a,'quantity':0x1}),_0x36dc27['skip'](_0x22092b=>!('elementEnd'==_0x22092b['type']&&_0x22092b['item']==_0x21fb83));}else{if(this['_schema']['checkChild'](_0x21fb83,'$text')||_0x21fb83['is']('element','softBreak')){const _0x24b016=_0x21fb83;if('add'==_0xb8b8ca&&'elementStart'==_0x3527f5['type']||'remove'==_0xb8b8ca&&'elementEnd'==_0x3527f5['type'])continue;if(_0x20b635&&-0x1==_0x20b635['type']['indexOf']('Container')){'text'==_0x20b635['type']&&(_0x20b635[_0xb8b8ca]+='\x0a');continue;}let _0x1845e9;if(_0x1845e9='add'==_0xb8b8ca?_0x24b016['nextSibling']&&!this['_schema']['isObject'](_0x24b016['nextSibling'])?_0x24b016['nextSibling']:null:_0x24b016['previousSibling']&&!this['_schema']['isObject'](_0x24b016['previousSibling'])?_0x24b016['previousSibling']:null,_0x24b016['isEmpty']||_0x1845e9&&_0x1845e9['isEmpty']){const _0x3bc2a8=_0x1845e9&&_0x1845e9['isEmpty']?_0x1845e9:_0x24b016;_0x20b635&&_0x20b635['type']==_0xb8b8ca+'EmptyContainer'&&_0x20b635['element']['name']==_0x3bc2a8['name']?_0x20b635['quantity']++:_0x32e600['push']({'type':_0xb8b8ca+'EmptyContainer','element':_0x3bc2a8,'quantity':0x1});}else _0x32e600['push']({'type':_0xb8b8ca+'Container','element':_0x24b016});}}}}}['_resolveDescriptionItems'](_0x1f6bb4){const _0x282078=this['_locale'],_0x9315bd=[],_0x2f08e8=[],_0x7486c4=[];for(const _0x1fde3f of _0x1f6bb4)switch(_0x1fde3f['type']){case'text':if(_0x1fde3f['add']=_0x1fde3f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1fde3f['remove']=_0x1fde3f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1fde3f['add']&&''!=_0x1fde3f['remove']){_0x9315bd['push']({'type':'replace','content':c(_0x282078,'REPLACE_TEXT',['\x22'+_0x1fde3f['remove']+'\x22','\x22'+_0x1fde3f['add']+'\x22'])});continue;}if(null!=_0x1fde3f['add']['match'](/^ +$/)){_0x9315bd['push']({'type':'insertion','content':c(_0x282078,'*Insert:*\x20%0',c(_0x282078,'ELEMENT_SPACE',_0x1fde3f['add']['length']))});continue;}if(null!=_0x1fde3f['remove']['match'](/^ +$/)){_0x9315bd['push']({'type':'deletion','content':c(_0x282078,'*Remove:*\x20%0',c(_0x282078,'ELEMENT_SPACE',_0x1fde3f['remove']['length']))});continue;}if(''!=_0x1fde3f['add']){_0x9315bd['push']({'type':'insertion','content':c(_0x282078,'*Insert:*\x20%0','\x22'+_0x1fde3f['add']+'\x22')});continue;}_0x9315bd['push']({'type':'deletion','content':c(_0x282078,'*Remove:*\x20%0','\x22'+_0x1fde3f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x9315bd['push']({'type':'insertion','content':c(_0x282078,'*Insert:*\x20%0',this['getItemLabel'](_0x1fde3f['element'],_0x1fde3f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x9315bd['push']({'type':'deletion','content':c(_0x282078,'*Remove:*\x20%0',this['getItemLabel'](_0x1fde3f['element'],_0x1fde3f['quantity']))});continue;case'addContainer':_0x9315bd['push']({'type':'insertion','content':c(_0x282078,'*Split:*\x20%0',this['getItemLabel'](_0x1fde3f['element'],_0x1fde3f['quantity']))});continue;case'removeContainer':_0x9315bd['push']({'type':'deletion','content':c(_0x282078,'*Merge:*\x20%0',this['getItemLabel'](_0x1fde3f['element'],_0x1fde3f['quantity']))});continue;case'addFormat':_0x2f08e8['push'](_0x1fde3f['key']);continue;case'removeFormat':_0x7486c4['push'](_0x1fde3f['key']);continue;default:_0x9315bd['push'](_0x1fde3f);}if(_0x2f08e8['length']){const _0x496f94=_0x2f08e8['map'](_0x17579d=>this['_attributeLabels']['has'](_0x17579d)?this['_attributeLabels']['get'](_0x17579d):_0x17579d)['join'](',\x20');_0x9315bd['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x496f94)});}if(_0x7486c4['length']){const _0x4f1173=_0x7486c4['map'](_0x287446=>this['_attributeLabels']['has'](_0x287446)?this['_attributeLabels']['get'](_0x287446):_0x287446)['join'](',\x20');_0x9315bd['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x4f1173)});}return _0x9315bd;}['_handleCustomCallbackDescription'](_0x193232){for(const _0x4ef781 of this['_customCallbacks']){const _0x5d4aaf=_0x4ef781(_0x193232);if(_0x5d4aaf&&'type'in _0x5d4aaf)return _0x5d4aaf;}}['_handleAttributeSuggestionDescription'](_0x476c11,_0x13c987){const _0x2b8f28=_0x13c987['data'],_0x44a87e=void 0x0===_0x2b8f28['newValue']?'removeFormat':'addFormat';_0x476c11['push']({'type':_0x44a87e,'key':_0x2b8f28['key']});}['_handleRenameSuggestionDescription'](_0xa34b7b,_0x36c447){_0xa34b7b['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x36c447['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x47e155,_0x2c49c4,_0x2bb37){if(this['_addDescriptionItems'](_0x47e155,_0x2c49c4),_0x2bb37&&_0x2bb37['getFirstRange']()&&!_0x2c49c4['getFirstRange']()['end']['isEqual'](_0x2bb37['getFirstRange']()['start'])){const _0x10e2e8=_0x47e155[_0x47e155['length']-0x1],_0x365fe0='insertion'==_0x2c49c4['type']?'add':'remove';_0x10e2e8&&'text'==_0x10e2e8['type']&&(_0x10e2e8[_0x365fe0]+='\x0a');}}}class U extends _0x3c8d18{['afterInit'](){const _0x333491=this['editor'],_0x1e7266=_0x333491['plugins']['get']('TrackChangesEditing');_0x333491['commands']['get']('showAIAssistant')&&_0x1e7266['enableCommand']('showAIAssistant');}}class V extends _0x3c8d18{['afterInit'](){const _0x2adc19=this['editor'],_0x52cb99=_0x2adc19['locale'];if(!_0x2adc19['plugins']['has']('AlignmentEditing'))return;const _0x5f3e3b=_0x2adc19['plugins']['get']('TrackChangesEditing');_0x5f3e3b['enableDefaultAttributesIntegration']('alignment'),_0x5f3e3b['registerBlockAttribute']('alignment'),_0x5f3e3b['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x52cb99,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35d57c=this['editor'],_0x1871e5=_0x35d57c['locale'];_0x35d57c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d045c=>{if('formatBlock'!=_0x2d045c['type'])return;const {data:_0x268421}=_0x2d045c;if(_0x268421&&'alignment'==_0x268421['commandName']){const _0x20a635=_0x268421['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x1871e5,'*Format:*\x20%0',function(_0x30d560){switch(_0x30d560){case'left':return c(_0x1871e5,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x1871e5,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x1871e5,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x1871e5,'FORMAT_JUSTIFY_TEXT');}}(_0x20a635))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x3c8d18{['afterInit'](){const _0x11e16e=this['editor'],_0x370d7a=_0x11e16e['plugins']['get']('TrackChangesEditing'),_0x570f33=_0x11e16e['locale'];for(const _0xe18227 of Zt){if(!_0x11e16e['plugins']['has'](_0xe18227))continue;const _0x20c8fa=_0xe18227['slice'](0x0,-0x7)['toLowerCase'](),_0x48747f='FORMAT_'+_0x20c8fa['toUpperCase']();_0x370d7a['enableDefaultAttributesIntegration'](_0x20c8fa),_0x370d7a['registerInlineAttribute'](_0x20c8fa),_0x370d7a['descriptionFactory']['registerAttributeLabel'](_0x20c8fa,c(_0x570f33,_0x48747f));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ea266=this['editor'],_0x191d77=_0x5ea266['locale'],_0x4cd07c=_0x5ea266['plugins']['get']('TrackChangesEditing');function _0x451f9f(_0xdd0729,_0x40e23d){_0x4cd07c['descriptionFactory']['registerDescriptionCallback'](_0x53078a=>{if('formatInline'!=_0x53078a['type'])return;const {data:_0x229841}=_0x53078a;return _0x229841&&_0x229841['commandName']===_0xdd0729?_0x229841['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x191d77,'*Format:*\x20%0',_0x40e23d)}:{'type':'format','content':c(_0x191d77,'*Remove\x20format:*\x20%0',_0x40e23d)}:void 0x0;});}_0x451f9f('bold',c(_0x191d77,'FORMAT_BOLD')),_0x451f9f('italic',c(_0x191d77,'FORMAT_ITALIC')),_0x451f9f('underline',c(_0x191d77,'FORMAT_UNDERLINE')),_0x451f9f('code',c(_0x191d77,'FORMAT_CODE')),_0x451f9f('strikethrough',c(_0x191d77,'FORMAT_STRIKETHROUGH')),_0x451f9f('subscript',c(_0x191d77,'FORMAT_SUBSCRIPT')),_0x451f9f('superscript',c(_0x191d77,'FORMAT_SUPERSCRIPT'));}}class G extends _0x3c8d18{['afterInit'](){const _0x4370a6=this['editor'],_0x2b83b1=_0x4370a6['locale'];if(!_0x4370a6['plugins']['has']('BlockQuoteEditing'))return;const _0x590fa1=_0x4370a6['plugins']['get']('TrackChangesEditing'),_0x30aaa1=this['editor']['commands']['get']('blockQuote');_0x590fa1['enableCommand']('blockQuote',(_0x14c0a0,_0x3c4ffd={})=>{const _0x55dc83=this['editor']['model']['document']['selection'],_0x498e3f=_0x3c4ffd&&void 0x0!==_0x3c4ffd['forceValue']?_0x3c4ffd['forceValue']:!_0x30aaa1['value'];let _0x11553e=[];if(_0x498e3f){const _0x1ae896=Array['from'](_0x55dc83['getSelectedBlocks']())['filter'](_0x2a2786=>oo(_0x2a2786)||function(_0x2bfcda,_0x4cb475){const _0x718991=_0x4cb475['checkChild'](_0x2bfcda['parent'],'blockQuote'),_0x3801af=_0x4cb475['checkChild'](['$root','blockQuote'],_0x2bfcda);return _0x718991&&_0x3801af;}(_0x2a2786,this['editor']['model']['schema']));_0x11553e=to(_0x1ae896,_0x4370a6['model']);}else{const _0x59fcb0=Array['from'](_0x55dc83['getSelectedBlocks']())['filter'](_0x4d64e6=>oo(_0x4d64e6));_0x11553e=to(_0x59fcb0,_0x4370a6['model']);}_0x4370a6['model']['change'](()=>{for(const _0x3fa23e of _0x11553e)_0x590fa1['markBlockFormat'](_0x3fa23e,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x498e3f}]});});}),_0x590fa1['descriptionFactory']['registerDescriptionCallback'](_0xb666f4=>{const {data:_0x3ff75e}=_0xb666f4;if(_0x3ff75e&&'blockQuote'==_0x3ff75e['commandName']){const _0x2bfd02=c(_0x2b83b1,'ELEMENT_BLOCK_QUOTE');return _0x3ff75e['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2b83b1,'*Set\x20format:*\x20%0',_0x2bfd02)}:{'type':'format','content':c(_0x2b83b1,'*Remove\x20format:*\x20%0',_0x2bfd02)};}});}}function oo(_0x2d2556){return'blockQuote'==_0x2d2556['parent']['name'];}class L extends _0x3c8d18{['afterInit'](){const _0x4aba06=this['editor'],_0x325662=_0x4aba06['locale'],_0x985d0=_0x4aba06['plugins']['get']('TrackChangesEditing');_0x4aba06['plugins']['has']('BookmarkEditing')&&(_0x985d0['enableCommand']('insertBookmark'),_0x985d0['enableDefaultAttributesIntegration']('updateBookmark'),_0x985d0['registerBlockAttribute']('bookmarkId'),_0x985d0['descriptionFactory']['registerDescriptionCallback'](_0x4ceba1=>{if('insertion'!=_0x4ceba1['type']&&'deletion'!=_0x4ceba1['type']&&'attribute'!=_0x4ceba1['type'])return;const _0x2ba9f2=_0x4ceba1['getContainedElement']();if(null==_0x2ba9f2)return;if(!_0x2ba9f2['is']('element','bookmark'))return;const _0x4f0083=_0x2ba9f2['getAttribute']('bookmarkId');if('insertion'==_0x4ceba1['type'])return{'type':'insertion','content':c(_0x325662,'*Insert:*\x20%0','\x22'+_0x4f0083+'\x22\x20'+c(_0x325662,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4ceba1['type'])return{'type':'deletion','content':c(_0x325662,'*Remove:*\x20%0','\x22'+_0x4f0083+'\x22\x20'+c(_0x325662,'ELEMENT_BOOKMARK'))};const {data:_0x9a23b6}=_0x4ceba1;if(!_0x9a23b6||'bookmarkId'!=_0x9a23b6['key'])return;return{'type':'format','content':c(_0x325662,'*Set\x20bookmark:*\x20%0','\x22'+_0x9a23b6['newValue']+'\x22')};}));}}class J extends _0x3c8d18{['afterInit'](){const _0x490a65=this['editor'];_0x490a65['plugins']['has']('CaseChange')&&(_0x490a65['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x490a65['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x490a65['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x3c8d18{['afterInit'](){const _0x5de346=this['editor'];_0x5de346['commands']['get']('ckbox')&&_0x5de346['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x3c8d18{['afterInit'](){const _0x4eba98=this['editor'];if(!_0x4eba98['plugins']['has']('CodeBlock'))return;const _0x433d6b=_0x4eba98['plugins']['get']('TrackChangesEditing'),_0x3220b9=_0x4eba98['locale'],_0x317378=_0x4eba98['config']['get']('codeBlock')['languages'],_0x169269=_0x4eba98['commands']['get']('codeBlock');_0x433d6b['enableCommand']('indentCodeBlock'),_0x433d6b['enableCommand']('outdentCodeBlock'),_0x433d6b['enableCommand']('codeBlock',(_0x25969f,_0x1e2a22={})=>{const _0x53e110=_0x4eba98['model'],_0x171719=_0x4eba98['model']['document']['selection'],_0x2f7924=_0x1e2a22&&void 0x0!==_0x1e2a22['forceValue']?_0x1e2a22['forceValue']:!_0x169269['value'];let _0x319241;_0x1e2a22['language']||(_0x1e2a22['language']=_0x317378[0x0]['language']),_0x319241=_0x2f7924?Array['from'](_0x171719['getSelectedBlocks']())['filter'](_0x86cf3c=>eo(_0x86cf3c)||function(_0x4251da,_0x492578){if(_0x4251da['is']('rootElement')||_0x492578['isLimit'](_0x4251da))return!0x1;return _0x492578['checkChild'](_0x4251da['parent'],'codeBlock');}(_0x86cf3c,_0x53e110['schema'])):Array['from'](_0x171719['getSelectedBlocks']())['filter'](_0x337031=>eo(_0x337031));const _0x59b8e2=to(_0x319241,_0x53e110);_0x53e110['change'](()=>{for(const _0x41066d of _0x59b8e2)_0x433d6b['markBlockFormat'](_0x41066d,{'commandName':'codeBlock','commandParams':[{..._0x1e2a22,'forceValue':_0x2f7924}],'formatGroupId':'blockName'});});}),(_0x433d6b['descriptionFactory']['registerElementLabel']('codeBlock',_0x5b5017=>c(_0x3220b9,'ELEMENT_CODE_BLOCK',_0x5b5017)),_0x433d6b['descriptionFactory']['registerDescriptionCallback'](_0x35acff=>{if('formatBlock'!=_0x35acff['type'])return;const _0x43b78d=_0x3220b9['t'],{data:_0xceb301}=_0x35acff;if(!_0xceb301||'codeBlock'!=_0xceb301['commandName'])return;const _0x496c7f=_0xceb301['commandParams'][0x0]['language'],_0xd96c10=_0x43b78d(_0x317378['find'](_0x5447b5=>_0x5447b5['language']===_0x496c7f)['label'])['toLowerCase']();return _0xceb301['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3220b9,'*Set\x20format:*\x20%0',c(_0x3220b9,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xd96c10+')')}:{'type':'format','content':c(_0x3220b9,'*Remove\x20format:*\x20%0',c(_0x3220b9,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x488568){return'codeBlock'==_0x488568['name'];}class q extends _0x3c8d18{['afterInit'](){const _0xd066cf=this['editor'];if(!_0xd066cf['plugins']['has']('CommentsEditing'))return;_0xd066cf['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1a3e18,_0x2f231d,_0x41e18e){const _0x2fbd4d=[];for(const _0x4c52be of _0x2f231d['getItems']())_0x4c52be['hasAttribute'](_0x1a3e18)&&_0x2fbd4d['push'](_0x41e18e['createRangeOn'](_0x4c52be));return _0x2fbd4d;}function Fe(_0x1395cc,_0x881115,{showActiveMarker:_0x111e36=!0x0}={}){const _0x3dedf7=_0x1395cc['plugins']['get']('TrackChangesEditing');return(_0x4d2bac,_0x1648ef,_0x36dd69)=>{if(!_0x36dd69['consumable']['test'](_0x1648ef['markerRange'],_0x4d2bac['name']))return;const _0x9529a8=_0x1648ef['markerRange']['getWalker'](),_0x113e6f=_0x1648ef['markerRange']['start'],_0x5a9407=_0x1395cc['model']['schema'];let _0x488fa8=null,_0x3e10ce=null,_0x4abdcc=!0x1,_0x55c2d8=!0x1;for(const _0xc1ecfb of _0x9529a8){const _0x3bea4b=_0xc1ecfb['item'];_0x4abdcc=_0x4abdcc||_0x5a9407['isContent'](_0x3bea4b);const _0x4c3968=_0x36dd69['mapper']['toViewElement'](_0x3bea4b);if(_0x4c3968&&_0x4c3968['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xc1ecfb['type']&&(_0x5a9407['isBlock'](_0x3bea4b)&&!_0x5a9407['isLimit'](_0x3bea4b)&&(_0x3bea4b['nextSibling']||_0x113e6f['isAtEnd']?_0x488fa8&&_0x488fa8['parent']==_0x3bea4b||(_0x488fa8=_0x3bea4b,_0x249f67(_0xc1ecfb['previousPosition']),_0x55c2d8=!0x0):_0x3e10ce=_0x3e10ce||_0xc1ecfb['previousPosition']));}function _0x249f67(_0x3b3f80){const {authorId:_0x3bfd8e}=_0x3dedf7['_splitMarkerName'](_0x1648ef['markerName']),_0x3651eb=_0x36dd69['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x881115,'data-author-id':_0x3bfd8e}),_0x3e8d07=_0x36dd69['mapper']['toViewPosition'](_0x3b3f80);_0x111e36&&_0x3dedf7['activeMarkers']['includes'](_0x1648ef['markerName'])&&_0x36dd69['writer']['addClass']('ck-suggestion-marker--active',_0x3651eb),_0x36dd69['writer']['insert'](_0x3e8d07,_0x3651eb),_0x36dd69['mapper']['bindElementToMarker'](_0x3651eb,_0x1648ef['markerName']);}_0x4abdcc||_0x55c2d8||!_0x3e10ce||_0x249f67(_0x3e10ce);};}class z extends _0x3c8d18{static get['requires'](){return[_0x3ed0f1];}['init'](){const _0x4c4f9b=this['editor'],_0x3fada4=_0x4c4f9b['plugins']['get']('TrackChangesEditing');_0x3fada4['enableCommand']('delete');const _0x41bcbe=_0x4c4f9b['commands']['get']('deleteForward');_0x3fada4['enableCommand']('deleteForward',(_0x5e4753,_0x1af893={})=>{const _0x31b323=_0x4c4f9b['model']['createSelection'](_0x4c4f9b['model']['document']['selection']);_0x31b323['isCollapsed']&&_0x4c4f9b['model']['modifySelection'](_0x31b323,{'direction':'forward','unit':_0x1af893['unit']});const _0x2e81b2=_0x31b323['getFirstRange'](),_0xdb09b6=_0x4c7462['fromRange'](_0x2e81b2);let _0xa810e2;_0x5e4753(_0x1af893),_0xa810e2='$graveyard'==_0xdb09b6['root']['rootName']?_0x4c4f9b['model']['createRange'](_0x2e81b2['start']):_0x4c4f9b['model']['createRange'](_0xdb09b6['start'],_0xdb09b6['end']),_0xdb09b6['detach'](),_0x4c4f9b['model']['enqueueChange'](_0x41bcbe['buffer']['batch'],_0x2b20bd=>{_0x41bcbe['buffer']['lock'](),_0x2b20bd['setSelection'](_0x2b20bd['createRange'](_0xa810e2['end'])),_0x41bcbe['buffer']['unlock']();});}),_0x4c4f9b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x4c4f9b,'merge'),{'priority':'high'}),_0x4c4f9b['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x17cb37,_0x5946f1,_0x136f67)=>{_0x136f67['options']['showSuggestionHighlights']&&Fe(_0x4c4f9b,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x17cb37,_0x5946f1,_0x136f67);},{'priority':'high'}),_0x4c4f9b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x42dd5b,_0x43c9cb,_0x2760dd)=>{const _0x4c7d79=_0x2760dd['mapper']['markerNameToElements'](_0x43c9cb['markerName']);if(_0x4c7d79){for(const _0x23e618 of _0x4c7d79)_0x23e618['is']('uiElement')&&(_0x2760dd['mapper']['unbindElementFromMarkerName'](_0x23e618,_0x43c9cb['markerName']),_0x2760dd['writer']['remove'](_0x23e618));}},{'priority':'high'});}}class W extends _0x3c8d18{['afterInit'](){const _0x4a9b63=this['editor'];if(!_0x4a9b63['plugins']['has']('ListEditing'))return;const _0x2a5e07=_0x4a9b63['locale'],_0x3b9754=_0x4a9b63['plugins']['get']('TrackChangesEditing'),_0x9c2e96=_0x4a9b63['plugins']['has']('TodoListEditing'),_0x2a99d9=!!_0x4a9b63['config']['get']('list.multiBlock');function _0x254ced(_0xb3bd0f){return{'type':'format','content':''+c(_0x2a5e07,'*Set\x20format:*\x20%0',_0xb3bd0f)};}function _0x20a1e2(_0x1cc0bd){return{'type':'format','content':''+c(_0x2a5e07,'*Remove\x20format:*\x20%0',_0x1cc0bd)};}_0x3b9754['enableDefaultAttributesIntegration']('numberedList'),_0x3b9754['enableDefaultAttributesIntegration']('bulletedList'),_0x3b9754['enableDefaultAttributesIntegration']('customNumberedList'),_0x3b9754['enableDefaultAttributesIntegration']('customBulletedList'),_0x3b9754['enableDefaultAttributesIntegration']('indentList'),_0x3b9754['enableDefaultAttributesIntegration']('outdentList'),_0x3b9754['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3b9754['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3b9754['registerBlockAttribute']('listItemId'),_0x3b9754['registerBlockAttribute']('listType'),_0x3b9754['registerBlockAttribute']('listIndent'),_0x2a99d9&&(_0x3b9754['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3b9754['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x9c2e96&&(_0x3b9754['enableDefaultAttributesIntegration']('todoList'),_0x3b9754['enableDefaultAttributesIntegration']('checkTodoList'),_0x3b9754['registerBlockAttribute']('todoListChecked'),_0x3b9754['descriptionFactory']['registerDescriptionCallback'](_0x5b12fe=>{const {data:_0x448337}=_0x5b12fe;if(_0x448337&&'todoListChecked'==_0x448337['key'])return{'type':'format','content':_0x448337['newValue']?c(_0x2a5e07,'*Check\x20item*'):c(_0x2a5e07,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5b9ae6=>{if(_0x5b9ae6['batch']['isUndo'])return!0x1;let _0x505320=!0x1;const _0xea1022=_0x3b9754['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x40a6be=>'todoListChecked'===_0x3b9754['_getAttributeKey'](_0x40a6be));for(const _0x448fe9 of _0xea1022){'todo'!=_0x448fe9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3b9754['_findSuggestions'](_0x448fe9['getFirstRange'](),'attribute')['find'](_0x1a9d02=>'listType'===_0x3b9754['_getAttributeKey'](_0x1a9d02['suggestion']))||(_0x5b9ae6['removeMarker'](_0x448fe9['getFirstMarker']()),_0x505320=!0x0));}return _0x505320;})),_0x3b9754['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x2a5e07,'FORMAT_INDENT'));const _0x3b01ef={'type':'format','content':''};_0x3b9754['descriptionFactory']['registerDescriptionCallback'](_0x12cf2b=>{const {data:_0x2459d2}=_0x12cf2b;if(!_0x2459d2||'listType'!=_0x2459d2['key'])return;let _0x2e9ae8=_0x12cf2b['head'];for(;_0x2e9ae8;){if(_0x2e9ae8['data']&&(('listStyle'==_0x2e9ae8['data']['key']||'listMarkerStyle'==_0x2e9ae8['data']['key'])&&(_0x2e9ae8['data']['newValue']&&'default'!=_0x2e9ae8['data']['newValue']||'default'!=_0x2e9ae8['data']['oldValue']&&!_0x2459d2['newValue'])||!_0x2a99d9&&_0x2e9ae8['data']['key']==u))return _0x3b01ef;_0x2e9ae8=_0x2e9ae8['next'];}if(null==_0x2459d2['newValue'])switch(_0x2459d2['oldValue']){case'bulleted':return _0x20a1e2(c(_0x2a5e07,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x20a1e2(c(_0x2a5e07,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x20a1e2(c(_0x2a5e07,'ELEMENT_TODO_LIST'));}switch(_0x2459d2['newValue']){case'bulleted':return _0x254ced(c(_0x2a5e07,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x254ced(c(_0x2a5e07,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x254ced(c(_0x2a5e07,'ELEMENT_TODO_LIST'));}}),_0x3b9754['descriptionFactory']['registerDescriptionCallback'](_0x98e0ab=>{const {data:_0x222b6b}=_0x98e0ab;if(_0x222b6b&&'listIndent'==_0x222b6b['key'])return null==_0x222b6b['newValue']||null==_0x222b6b['oldValue']&&0x0==_0x222b6b['newValue']?_0x3b01ef:void 0x0;}),_0x3b9754['descriptionFactory']['registerDescriptionCallback'](_0x5da3f8=>{if('attribute'!=_0x5da3f8['type'])return;const {data:_0x71f0bc}=_0x5da3f8;if(!_0x71f0bc||'listItemId'!=_0x71f0bc['key'])return;const _0x1c504d=Te(_0x5da3f8);return'newValue'==_0x1c504d?{'type':'format','content':c(_0x2a5e07,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1c504d?{'type':'format','content':c(_0x2a5e07,'*Split:*\x20list\x20item')}:_0x3b01ef;}),_0x4a9b63['model']['document']['registerPostFixer'](_0x478cce=>this['listItemIdFixer'](_0x478cce)),_0x4a9b63['model']['document']['registerPostFixer'](_0x3a49ab=>this['noTrackChangesFixer'](_0x3a49ab)),_0x4a9b63['model']['document']['on']('change:data',(_0x8ad99b,_0x471198)=>{if(_0x471198['isUndo']||!_0x471198['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x322071){if(_0x322071['batch']['isUndo']||!_0x322071['batch']['isLocal'])return!0x1;let _0x7cd161=!0x1;const _0x2158bb=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4d9e41=>_0x4d9e41['data']&&'listItemId'==_0x4d9e41['data']['key'])['filter'](_0x300d92=>_0x300d92['data']['newValue']&&_0x300d92['data']['oldValue']);for(const _0x5e86a7 of _0x2158bb)Te(_0x5e86a7)||(_0x322071['removeMarker'](_0x5e86a7['getFirstMarker']()),_0x7cd161=!0x0);return _0x7cd161;}['noTrackChangesFixer'](_0x20bc85){if(_0x20bc85['batch']['isUndo']||!_0x20bc85['batch']['isLocal'])return!0x1;const _0xb9d7cc=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xb9d7cc['trackChangesCommand']['value'])return!0x1;let _0x5228b4=!0x1;const _0x4c5343=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5da999=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5bc2d5=>'attribute'==_0x5bc2d5['type'])['filter'](_0xda8c77=>_0x4c5343['includes'](_0xda8c77['attributeKey']));if(0x0==_0x5da999['length'])return _0x5228b4;for(const _0x125246 of _0x5da999){const _0x45a24c=_0xb9d7cc['_findSuggestions'](_0x125246['range'],'attribute')['filter'](_0x39381a=>!_0x39381a['meta']['isNextTo'])['map'](_0x15e027=>_0x15e027['suggestion'])['filter'](_0x32b810=>{const _0x3353aa=_0xb9d7cc['_getAttributeKey'](_0x32b810);return _0x4c5343['includes'](_0x3353aa);});if(_0x45a24c['length']){for(const _0xce3981 of _0x45a24c)_0x20bc85['removeMarker'](_0xce3981['getFirstMarker']());_0x5228b4=!0x0;}}return _0x5228b4;}['assureChains'](){const _0x27e9a1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54052e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3f6080;const _0x297622=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3086ac=>{if(_0x3086ac['data']['oldRange']||!_0x3086ac['data']['newRange'])return null;if(!_0x3086ac['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3c45cd}=_0x27e9a1['_splitMarkerName'](_0x3086ac['name']);if(!_0x27e9a1['hasSuggestion'](_0x3c45cd))return null;const _0x336fea=_0x27e9a1['getSuggestion'](_0x3c45cd);return _0x54052e['includes'](_0x336fea['data']['key']);})['map'](_0x4a1b3c=>{const {id:_0x3a42f7}=_0x27e9a1['_splitMarkerName'](_0x4a1b3c['name']),_0x10d6c9=_0x27e9a1['getSuggestion'](_0x3a42f7);return _0x3f6080=_0x10d6c9['attributes']['groupId'],_0x10d6c9['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x297622['size'])return;const _0x3a1d57=_0x27e9a1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4eb73b=>'attribute'==_0x4eb73b['type']&&_0x4eb73b['data']&&_0x54052e['includes'](_0x4eb73b['data']['key'])&&_0x4eb73b['attributes']['groupId']!=_0x3f6080)['map'](_0x2dde66=>({'listItem':_0x2dde66['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2dde66['attributes']['groupId']})),_0x314036=new Set();for(const {groupId:_0x20e030,listItem:_0x598c4f}of _0x3a1d57)_0x297622['has'](_0x598c4f)&&_0x314036['add'](_0x20e030);for(const _0x213b3d of _0x27e9a1['getSuggestions']())_0x314036['has'](_0x213b3d['attributes']['groupId'])&&_0x213b3d['setAttribute']('groupId',_0x3f6080);}['_supportLegacySuggestions'](){const _0x2aefce=this['editor'],_0x4916ca=_0x2aefce['locale'],_0x176c9c=_0x2aefce['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x176c9c['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3f3a64,_0x25de39){const _0x34d9d2=[];for(let _0x37ffdd of _0x3f3a64)_0x37ffdd['start']['nodeAfter']===_0x37ffdd['end']['parent']&&(_0x37ffdd=_0x2aefce['model']['createRange'](_0x2aefce['model']['createPositionAt'](_0x37ffdd['start']['nodeAfter'],0x0))),_0x34d9d2['push'](_0x37ffdd);_0x2aefce['model']['change'](_0x5af9e0=>{const _0x4f5ac3=_0x2aefce['model']['document']['selection'],_0x26ace9=Array['from'](_0x4f5ac3['getRanges']())['map'](_0x143ad5=>_0x4c7462['fromRange'](_0x143ad5));_0x5af9e0['setSelection'](_0x34d9d2),_0x2aefce['commands']['get'](_0x25de39['commandName'])['refresh'](),_0x25de39['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2aefce['execute'](_0x25de39['commandName'],..._0x25de39['commandParams']),_0x5af9e0['setSelection'](_0x26ace9);for(const _0x298663 of _0x26ace9)_0x298663['detach']();});}),_0x176c9c['descriptionFactory']['registerElementLabel'](function(_0x1e708f){const _0x4f8b3e=!_0x2aefce['model']['schema']['isObject'](_0x1e708f),_0x2dd17c=_0x1e708f['previousSibling'],_0x4f2fa3=_0x1e708f['nextSibling'],_0x4e550f=_0x1e708f['getAttribute']('listItemId'),_0x20c830=!_0x2dd17c||_0x2dd17c['getAttribute']('listItemId')!==_0x4e550f,_0x4e7564=!_0x4f2fa3||_0x4f2fa3['getAttribute']('listItemId')!==_0x4e550f;return _0x4f8b3e&&Boolean(_0x4e550f)&&_0x20c830&&_0x4e7564;},_0x38db42=>c(_0x4916ca,'ELEMENT_LIST_ITEM',_0x38db42));}['_registerLegacyDescription'](){const _0x3d3d7b=this['editor'],_0x30550f=_0x3d3d7b['locale'];function _0x4eb901(_0x2216a9){const _0x4e257a=_0x3d3d7b['commands']['get']('bulletedList')['value'],_0x3a5ef3=_0x3d3d7b['commands']['get']('numberedList')['value'];return'numberedList'===_0x2216a9?_0x4e257a:_0x3a5ef3;}_0x3d3d7b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3cdc5e){if('formatBlock'!=_0x3cdc5e['type'])return;const {data:_0x4f78c8}=_0x3cdc5e;if(!_0x4f78c8)return;let _0x41a4c5,_0x143c78,_0x1afaa1,_0x40c877;switch(_0x4f78c8['commandName']){case'bulletedList':_0x1afaa1=_0x4f78c8['commandParams'][0x0]['forceValue'],_0x40c877=_0x4eb901(_0x4f78c8['commandName']),_0x41a4c5=_0x1afaa1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x40c877&&_0x3d3d7b['config']['get']('list.multiBlock')||(_0x41a4c5='*Change\x20to:*\x20%0'),_0x143c78={'type':'format','content':c(_0x30550f,_0x41a4c5,c(_0x30550f,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1afaa1=_0x4f78c8['commandParams'][0x0]['forceValue'],_0x40c877=_0x4eb901(_0x4f78c8['commandName']),_0x41a4c5=_0x1afaa1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x40c877&&_0x3d3d7b['config']['get']('list.multiBlock')||(_0x41a4c5='*Change\x20to:*\x20%0'),_0x143c78={'type':'format','content':c(_0x30550f,_0x41a4c5,c(_0x30550f,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x41a4c5='*Indent:*\x20%0',_0x143c78={'type':'format','content':c(_0x30550f,_0x41a4c5,c(_0x30550f,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x41a4c5=function(_0x44521b){const _0x59b15e=_0x44521b['getFirstRange']();let _0x503b17=_0x59b15e['start']['nodeAfter'];for(;_0x503b17&&_0x59b15e['containsItem'](_0x503b17);){if(_0x503b17['getAttribute']('listIndent')>0x0)return!0x1;_0x503b17=_0x503b17['nextSibling'];}return!0x0;}(_0x3cdc5e)?c(_0x30550f,'*Format:*\x20remove\x20from\x20%0',c(_0x30550f,function(_0x4b68cf){return'ELEMENT_'+_0x4b68cf['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3cdc5e))):c(_0x30550f,'*Outdent:*\x20%0',c(_0x30550f,'ELEMENT_LIST_ITEM')),_0x143c78={'type':'format','content':_0x41a4c5};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4f78c8['multipleBlocks']&&(_0x41a4c5='*Merge:*\x20%0',_0x143c78={'type':'deletion','content':c(_0x30550f,_0x41a4c5,c(_0x30550f,'ELEMENT_LIST_ITEM'))});}return _0x143c78;});}}function Te(_0x21e345){let _0x144b26=_0x21e345['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x144b26;){const _0x259248=_0x144b26['getAttribute']('listItemId');if(!_0x259248)return!0x1;if(_0x259248==_0x21e345['data']['newValue'])return'newValue';if(_0x259248==_0x21e345['data']['oldValue'])return'oldValue';_0x144b26=_0x144b26['previousSibling'];}return!0x1;}class Se extends _0x3c8d18{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xf96f2b=this['editor']['config']['get']('list.properties'),_0x2b5467=this['editor']['plugins']['get']('TrackChangesEditing');_0xf96f2b['styles']&&(_0x2b5467['enableDefaultAttributesIntegration']('listStyle'),_0x2b5467['registerBlockAttribute']('listStyle')),_0xf96f2b['reversed']&&(_0x2b5467['enableDefaultAttributesIntegration']('listReversed'),_0x2b5467['registerBlockAttribute']('listReversed')),_0xf96f2b['startIndex']&&(_0x2b5467['enableDefaultAttributesIntegration']('listStart'),_0x2b5467['registerBlockAttribute']('listStart'));const _0x450d33={'type':'format','content':''};_0x2b5467['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x430479=this['editor']['locale'];_0x2b5467['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x430479,'FORMAT_LIST_REVERSED')),_0x2b5467['descriptionFactory']['registerDescriptionCallback'](_0x3bb8f3=>{const {data:_0x5e9291}=_0x3bb8f3;if(_0x5e9291&&'listReversed'==_0x5e9291['key'])return null==_0x5e9291['newValue']||0x0==_0x5e9291['newValue']&&null==_0x5e9291['oldValue']?_0x450d33:void 0x0;}),_0x2b5467['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x430479,'FORMAT_LIST_START')),_0x2b5467['descriptionFactory']['registerDescriptionCallback'](_0x16bdd2=>{const {data:_0x53fcdb}=_0x16bdd2;if(_0x53fcdb&&'listStart'==_0x53fcdb['key'])return null==_0x53fcdb['newValue']||0x1==_0x53fcdb['newValue']&&null==_0x53fcdb['oldValue']?_0x450d33:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xde58b6=>{if(_0xde58b6['batch']['isUndo'])return!0x1;let _0x37ce37=!0x1;const _0x5e34ac=_0x2b5467['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1193e7=>{const _0x481937=_0x2b5467['_getAttributeKey'](_0x1193e7);return'listStart'==_0x481937||'listReversed'==_0x481937;});for(const _0x3488cc of _0x5e34ac){const _0xff8b73=_0x3488cc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xff8b73||'customNumbered'==_0xff8b73)continue;_0x2b5467['_findSuggestions'](_0x3488cc['getFirstRange'](),'attribute')['find'](_0x363f36=>'listType'==_0x2b5467['_getAttributeKey'](_0x363f36['suggestion']))||(_0xde58b6['removeMarker'](_0x3488cc['getFirstMarker']()),_0x37ce37=!0x0);}return _0x37ce37;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x545b06){const _0x5a1c26=this['editor']['locale'],{data:_0x1945cf}=_0x545b06,_0x4b3057={'type':'format','content':''};if(!_0x1945cf||'listStyle'!=_0x1945cf['key'])return;if(!_0x1945cf['oldValue'])return'default'==_0x1945cf['newValue']?_0x4b3057:{'type':'format','content':''+c(_0x5a1c26,'*Set\x20format:*\x20%0',c(_0x5a1c26,this['_getTranslationKeyForListStyle'](_0x1945cf['newValue'])))};if(!_0x1945cf['newValue']){if('default'==_0x1945cf['oldValue'])return _0x4b3057;let _0x1ee015=_0x545b06['head'];for(;_0x1ee015;){if(_0x1ee015['data']&&'listType'==_0x1ee015['data']['key']&&_0x1ee015['data']['newValue'])return _0x4b3057;_0x1ee015=_0x1ee015['next'];}return{'type':'format','content':''+c(_0x5a1c26,'*Remove\x20format:*\x20%0',c(_0x5a1c26,this['_getTranslationKeyForListStyle'](_0x1945cf['oldValue'])))};}if('default'!=_0x1945cf['newValue'])return{'type':'format','content':''+c(_0x5a1c26,'*Set\x20format:*\x20%0',c(_0x5a1c26,this['_getTranslationKeyForListStyle'](_0x1945cf['newValue'])))};let _0x3797e6=_0x545b06['head'];for(;_0x3797e6;){if(_0x3797e6['data']&&'listType'==_0x3797e6['data']['key']&&_0x3797e6['data']['newValue']&&_0x3797e6['data']['oldValue'])return _0x4b3057;_0x3797e6=_0x3797e6['next'];}return{'type':'format','content':c(_0x5a1c26,'*Set\x20format:*\x20%0',c(_0x5a1c26,'ELEMENT_'+_0x545b06['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xff7883=this['editor'],_0xb7f3be=_0xff7883['locale'];_0xff7883['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xfe0ebf=>{if('formatBlock'!=_0xfe0ebf['type'])return;const {data:_0x219082}=_0xfe0ebf;if(!_0x219082)return;let _0x2c472c,_0x47cba4;switch(_0x219082['commandName']){case'listStyle':_0x2c472c='*Change\x20to:*\x20%0',_0x47cba4={'type':'format','content':c(_0xb7f3be,_0x2c472c,c(_0xb7f3be,this['_getTranslationKeyForListStyle'](_0x219082['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2c472c=_0x219082['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x47cba4={'type':'format','content':c(_0xb7f3be,_0x2c472c)};break;case'listStart':_0x2c472c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x47cba4={'type':'format','content':c(_0xb7f3be,_0x2c472c,_0x219082['commandParams'][0x0]['startIndex'])};}return _0x47cba4;});}['_getTranslationKeyForListStyle'](_0x20436d){return'ELEMENT_'+function(_0x36e311){if(_e['includes'](_0x36e311))return'bulleted';if(Re['includes'](_0x36e311))return'numbered';return null;}(_0x20436d)['toUpperCase']()+'_LIST_'+_0x20436d['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x3c8d18{['afterInit'](){const _0x154e09=this['editor'];_0x154e09['commands']['get']('emoji')&&_0x154e09['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x3c8d18{static get['requires'](){return[_0xf7b231];}['init'](){const _0x206ef7=this['editor'],_0x7ca695=_0x206ef7['plugins']['get']('TrackChangesEditing'),_0x258d7d=_0x206ef7['commands']['get']('enter');_0x7ca695['enableCommand']('enter',()=>{_0x206ef7['model']['change'](_0x5452fe=>{const _0x38c5d3=_0x206ef7['model']['document']['selection'],_0x2d1598=_0x38c5d3['getFirstPosition'](),_0xfd285a=_0x4c7462['fromRange'](_0x38c5d3['getFirstRange']());if(_0x258d7d['enterBlock'](_0x5452fe)){const _0x20f255=_0x206ef7['model']['createPositionAt'](_0x2d1598['parent']['nextSibling'],0x0),_0x402689=_0x5452fe['createRange'](_0x2d1598,_0x20f255);_0x7ca695['markInsertion'](_0x402689);}else _0x5452fe['setSelection'](_0x5452fe['createRange'](_0xfd285a['end']));_0xfd285a['detach'](),_0x258d7d['fire']('afterExecute',{'writer':_0x5452fe});});}),_0x206ef7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x206ef7,'split'),{'priority':'high'}),_0x206ef7['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2d546e,_0x54dbb7,_0x33e370)=>{const _0x7c347a=_0x33e370['mapper']['markerNameToElements'](_0x54dbb7['markerName']);if(_0x7c347a){for(const _0x258094 of _0x7c347a)_0x258094['hasClass']('ck-suggestion-marker-split')&&(_0x33e370['mapper']['unbindElementFromMarkerName'](_0x258094,_0x54dbb7['markerName']),_0x33e370['writer']['remove'](_0x258094));}},{'priority':'high'}),_0x206ef7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x245720,_0x3e3e0a,_0x15b06f)=>{_0x15b06f['options']['showSuggestionHighlights']&&Fe(_0x206ef7,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x245720,_0x3e3e0a,_0x15b06f);},{'priority':'high'});}}class Z extends _0x3c8d18{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1294a6=this['editor']['plugins']['get']('TrackChangesEditing');_0x1294a6['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1294a6['enableCommand']('findNext'),_0x1294a6['enableCommand']('findPrevious'),_0x1294a6['enableCommand']('replace'),_0x1294a6['enableCommand']('replaceAll');}['handleFindCommand'](_0x4d9dd2,_0x228a0e,_0xa72d2={}){const _0x4d6205=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4d9dd2(_0x3056dc=>{let _0x3d25f9=('string'==typeof _0x228a0e?_0x4d6205['findByTextCallback'](_0x228a0e,_0xa72d2):_0x228a0e)(_0x3056dc);Array['isArray'](_0x3d25f9)&&(_0x3d25f9={'results':_0x3d25f9,'searchText':'string'==typeof _0x228a0e?_0x228a0e:''});const _0x502ee7=_0x3d25f9['results']['filter'](_0xb49833=>!0x1===this['_isInDeletionRange'](_0xb49833,_0x3056dc['item']));return{..._0x3d25f9,'results':_0x502ee7};},_0xa72d2);}['_isInDeletionRange'](_0x5b0ef5,_0xaeb6cd){const _0x1cbdc1=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xaeb6cd,_0x5b0ef5['start']),this['editor']['model']['createPositionAt'](_0xaeb6cd,_0x5b0ef5['end']));for(const _0x4deb6c of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1cbdc1['getIntersection'](_0x4deb6c['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x3c8d18{['afterInit'](){const _0x318f1d=this['editor']['locale'],_0x109f54=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3d40e6,commandName:_0x453a3c}of ro)this['editor']['plugins']['has'](_0x3d40e6)&&(_0x109f54['enableDefaultAttributesIntegration'](_0x453a3c),_0x109f54['registerInlineAttribute'](_0x453a3c));_0x109f54['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x318f1d,'FORMAT_FONT_SIZE')),_0x109f54['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x318f1d,'FORMAT_FONT_FAMILY')),_0x109f54['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x318f1d,'FORMAT_FONT_COLOR')),_0x109f54['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x318f1d,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2587ab=this['editor'],_0x439f27=_0x2587ab['locale'];_0x2587ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x287b43=>{const _0x4acdd0=_0x439f27['t'];if('formatInline'!=_0x287b43['type'])return;const {data:_0x5d6f5f}=_0x287b43;if(null!=_0x5d6f5f){if('fontSize'==_0x5d6f5f['commandName']){const _0x2ee74d=_0x5d6f5f['commandParams'][0x0]['value'];if(_0x2ee74d){const _0x18f94c=_0x4acdd0(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2c10a2=>_0x2c10a2['model']==_0x2ee74d)['title'])['toLowerCase']();return{'type':'format','content':c(_0x439f27,'*Set\x20font\x20size:*\x20%0',_0x18f94c)};}return{'type':'format','content':c(_0x439f27,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5d6f5f['commandName']){const _0x2a1afd=_0x5d6f5f['commandParams'][0x0]['value'];return _0x2a1afd?{'type':'format','content':c(_0x439f27,'*Set\x20font\x20family:*\x20%0',_0x2a1afd)}:{'type':'format','content':c(_0x439f27,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5d6f5f['commandName']){const _0x2c95f1=_0x5d6f5f['commandParams'][0x0]['value'];if(_0x2c95f1){const _0xe68f1f=_0x3d9b40(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2f8cf9=>_0x2f8cf9['model']==_0x2c95f1);let _0x28159f=_0x2c95f1,_0x5e73c3='';return _0xe68f1f&&(_0x28159f=_0xe68f1f['label'],_0x5e73c3=_0x4acdd0(_0x28159f)['toLowerCase']()),{'type':'format','content':c(_0x439f27,'*Set\x20font\x20color:*\x20%0',_0x5e73c3)['trim'](),'color':{'value':_0x2c95f1,'title':_0x5e73c3||_0x28159f}};}return{'type':'format','content':c(_0x439f27,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5d6f5f['commandName']){const _0x4712e0=_0x5d6f5f['commandParams'][0x0]['value'];if(_0x4712e0){const _0xeace8=_0x3d9b40(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5b01dd=>_0x5b01dd['model']==_0x4712e0);let _0x5d74f0=_0x4712e0,_0x506403='';return _0xeace8&&(_0x5d74f0=_0xeace8['label'],_0x506403=_0x4acdd0(_0x5d74f0)['toLowerCase']()),{'type':'format','content':c(_0x439f27,'*Set\x20font\x20background\x20color:*\x20%0',_0x506403)['trim'](),'color':{'value':_0x4712e0,'title':_0x506403||_0x5d74f0}};}return{'type':'format','content':c(_0x439f27,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x3c8d18{['afterInit'](){const _0x1089e7=this['editor'],_0x54624e=_0x1089e7['plugins']['get']('TrackChangesEditing'),_0x127975=_0x1089e7['commands']['get']('copyFormat'),_0x1e31b3=_0x1089e7['commands']['get']('pasteFormat');_0x127975&&_0x1e31b3&&(_0x54624e['enableDefaultAttributesIntegration']('pasteFormat'),_0x54624e['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4bdeac=this['editor'],_0x4be080=_0x4bdeac['locale'];_0x4bdeac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf8a2b0=>{if('formatBlock'!=_0xf8a2b0['type']&&'formatInline'!=_0xf8a2b0['type'])return;const {data:_0x38a89c}=_0xf8a2b0;if(_0x38a89c&&'pasteFormat'===_0x38a89c['commandName']){const _0x2e492c=[],_0x566223=_0x38a89c['commandParams'][0x0];for(const [_0x3b8f87,_0xbb11e0]of Object['entries'](_0x566223))_0x2e492c['push'](so(_0x4bdeac,_0x3b8f87,_0xbb11e0));return _0x2e492c['length']?{'type':'format','content':c(_0x4be080,'*Set\x20format\x20to:*\x20%0',_0x2e492c['join'](',\x20'))}:{'type':'format','content':c(_0x4be080,'*Remove\x20all\x20formatting*')};}});}}function so(_0x426589,_0x4d2407,_0xd11797){const _0x23894f=_0x426589['locale']['t'],_0xcd1ec9=_0x4d2407['split'](/(?=[A-Z])/)['join']('\x20'),_0x3dcc96=_0x23894f(_0xcd1ec9['charAt'](0x0)['toUpperCase']()+_0xcd1ec9['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xd11797)return _0x3dcc96;if('fontColor'===_0x4d2407||'fontBackgroundColor'===_0x4d2407){const _0x361000=_0x3d9b40(_0x426589['config']['get']('fontColor.colors'))['find'](_0x4e1cb3=>_0x4e1cb3['model']==_0xd11797);return _0x3dcc96+'\x20('+(_0x361000?_0x23894f(_0x361000['label'])['toLowerCase']():_0xd11797)+')';}if('fontSize'===_0x4d2407&&isNaN(parseFloat(_0xd11797))){const _0x5cdce1=_0x426589['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x426589['config']['get']('fontSize.options'))['find'](_0x164057=>_0x164057['model']==_0xd11797);return _0x3dcc96+'\x20('+(_0x5cdce1?_0x23894f(_0x5cdce1['title'])['toLowerCase']():_0xd11797)+')';}return _0x3dcc96+'\x20('+_0xd11797+')';}class nt extends _0x3c8d18{['_headingOptions'];['afterInit'](){const _0x59ae38=this['editor'];if(!_0x59ae38['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x59ae38['config']['get']('heading.options');const _0x1d999c=_0x59ae38['locale'],_0x16f5c2=_0x59ae38['plugins']['get']('TrackChangesEditing');_0x16f5c2['enableDefaultAttributesIntegration']('heading');for(const _0x177531 of this['_headingOptions'])'paragraph'!=_0x177531['model']&&_0x16f5c2['descriptionFactory']['registerElementLabel'](_0x177531['model'],_0x5db7bf=>{const _0x5935c1=this['_getHeadingLevel'](_0x177531['model']);return null!==_0x5935c1?_0x4ac567(_0x5db7bf,_0x5935c1):_0x5375e9(_0x5db7bf,_0x177531['title']);});function _0x4ac567(_0xd660c1,_0x4ee3cc){return c(_0x1d999c,'ELEMENT_HEADING',[_0xd660c1,_0x4ee3cc]);}function _0x5375e9(_0x25dbc8,_0x5a1f0f){return c(_0x1d999c,'ELEMENT_HEADING_CUSTOM',[_0x25dbc8,_0x5a1f0f]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16cf4b=this['editor'],_0x1e8310=_0x16cf4b['locale'];function _0x11d9bd(_0x2ba0e4,_0x3c69e9){return c(_0x1e8310,'ELEMENT_HEADING_CUSTOM',[_0x2ba0e4,_0x3c69e9]);}_0x16cf4b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1101a3=>{if('formatBlock'!=_0x1101a3['type'])return;const {data:_0x2839c6}=_0x1101a3;if(_0x2839c6&&'heading'==_0x2839c6['commandName']){const _0x113d05=_0x2839c6['commandParams'][0x0]['value'],_0x1e98b2=this['_getHeadingLevel'](_0x113d05);if(null!==_0x1e98b2)return{'type':'format','content':c(_0x1e8310,'*Change\x20to:*\x20%0',(_0x2af78a=0x1,_0x191e4d=_0x1e98b2,c(_0x1e8310,'ELEMENT_HEADING',[_0x2af78a,_0x191e4d])))};const _0x2c6c26=this['_headingOptions']['find'](_0x246bb3=>_0x246bb3['model']===_0x113d05)['title'];return{'type':'format','content':c(_0x1e8310,'*Change\x20to:*\x20%0',_0x11d9bd(0x1,_0x2c6c26))};}var _0x2af78a,_0x191e4d;});}['_getHeadingLevel'](_0x407b5e){const _0x3db25d=_0x407b5e['match'](/^heading(\d+)/);if(_0x3db25d)return _0x3db25d[0x1];const _0x1b0c1b=this['_headingOptions']?.['find'](_0x530622=>_0x530622['model']==_0x407b5e);if(_0x1b0c1b&&_0x1b0c1b['view']){const _0x16d996=_0x1b0c1b['view'],_0xcc7c7f=(_0x16d996['name']??_0x16d996)['match'](/^h(\d+)/);if(_0xcc7c7f)return _0xcc7c7f[0x1];}return null;}}class it extends _0x3c8d18{['afterInit'](){const _0x20375b=this['editor'];if(!_0x20375b['plugins']['has']('HighlightEditing'))return;const _0x3c2606=_0x20375b['plugins']['get']('TrackChangesEditing'),_0x40f8b1=_0x20375b['locale'];_0x3c2606['enableDefaultAttributesIntegration']('highlight'),_0x3c2606['registerInlineAttribute']('highlight'),_0x3c2606['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x40f8b1,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d9deb=this['editor'],_0x202975=_0x2d9deb['locale'];_0x2d9deb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48a99f=>{if('formatInline'!=_0x48a99f['type'])return;const {data:_0x456136}=_0x48a99f;if(_0x456136&&'highlight'==_0x456136['commandName']){const _0x351200=_0x202975['t'],_0x3ec3bd=_0x456136['commandParams'][0x0]['value'];if(_0x3ec3bd){const _0x1131a7=_0x2d9deb['config']['get']('highlight.options')['find'](_0x13c06e=>_0x13c06e['model']==_0x3ec3bd),_0x482a21=_0x351200(_0x1131a7['title'])['toLowerCase']();return{'type':'format','content':c(_0x202975,'*Set\x20highlight:*\x20%0',_0x482a21),'color':{'value':_0x1131a7['color'],'title':_0x1131a7['title']}};}return{'type':'format','content':c(_0x202975,'*Remove\x20highlight*',c(_0x202975,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x3c8d18{['afterInit'](){const _0x5a4ad3=this['editor'];if(!_0x5a4ad3['plugins']['has']('HorizontalLineEditing'))return;_0x5a4ad3['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x332fb6=_0x5a4ad3['plugins']['get']('TrackChangesEditing'),_0x100cc2=_0x5a4ad3['locale'];_0x332fb6['descriptionFactory']['registerElementLabel']('horizontalLine',_0x285dd3=>c(_0x100cc2,'ELEMENT_HORIZONTAL_LINE',_0x285dd3)),_0x5a4ad3['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x15ad02,{writer:_0x37f895,options:_0x1386a0})=>{if(!_0x1386a0['showSuggestionHighlights'])return null;const _0x4e5fc3=_0x37f895['createContainerElement']('div'),_0x7d0891=_0x37f895['createEmptyElement']('hr');return _0x37f895['addClass']('ck-horizontal-line',_0x4e5fc3),_0x37f895['insert'](_0x37f895['createPositionAt'](_0x4e5fc3,0x0),_0x7d0891),_0x4e5fc3;},'converterPriority':'high'});}}class ot extends _0x3c8d18{['afterInit'](){const _0x5b558d=this['editor'];if(!_0x5b558d['plugins']['has']('HtmlEmbed'))return;const _0x2e22a1=_0x5b558d['plugins']['get']('TrackChangesEditing'),_0x5c58a6=_0x5b558d['locale'];_0x2e22a1['descriptionFactory']['registerElementLabel']('rawHtml',_0x56d88f=>c(_0x5c58a6,'ELEMENT_HTML_EMBED',_0x56d88f)),_0x2e22a1['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2e22a1['registerBlockAttribute']('value'),_0x2e22a1['descriptionFactory']['registerDescriptionCallback'](_0x16fc2b=>{if('attribute'!=_0x16fc2b['type'])return;const {data:_0x15a102}=_0x16fc2b;if(_0x15a102&&'value'==_0x15a102['key']&&_0x16fc2b['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x216161=c(_0x5c58a6,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x5c58a6,'*Change\x20%0\x20content*',_0x216161)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2554cc=this['editor'],_0x58dbb1=_0x2554cc['locale'];_0x2554cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4abe98=>{if('formatBlock'!=_0x4abe98['type'])return;const {data:_0x166ddc}=_0x4abe98;if(_0x166ddc&&'htmlEmbed'==_0x166ddc['commandName']){const _0x5e15b2=c(_0x58dbb1,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x58dbb1,'*Change\x20%0\x20content*',_0x5e15b2)};}});}}class rt extends _0x3c8d18{['afterInit'](){const _0x4460aa=this['editor'];if(!_0x4460aa['plugins']['has']('ImageEditing'))return;const _0x10ea68=_0x4460aa['plugins']['get']('TrackChangesEditing'),_0x5aed2f=_0x4460aa['plugins']['get']('ImageUtils'),_0x10c7ec=_0x4460aa['locale'];_0x10ea68['enableCommand']('insertImage'),_0x10ea68['descriptionFactory']['registerElementLabel']('imageBlock',_0x35cfa5=>c(_0x10c7ec,'ELEMENT_IMAGE',_0x35cfa5)),_0x10ea68['descriptionFactory']['registerElementLabel']('imageInline',_0x5798a9=>c(_0x10c7ec,'ELEMENT_INLINE_IMAGE',_0x5798a9)),_0x10ea68['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x10c7ec,'ELEMENT_CAPTION')),_0x4460aa['plugins']['has']('ImageUploadEditing')&&_0x10ea68['enableCommand']('uploadImage'),_0x4460aa['plugins']['has']('ImageBlockEditing')&&_0x4460aa['plugins']['has']('ImageInlineEditing')&&(_0x10ea68['enableCommand']('imageTypeInline',(_0x43459f,_0x4c6882)=>{const _0x3bd796=_0x5aed2f['getClosestSelectedImageElement'](_0x4460aa['model']['document']['selection']);_0x4460aa['model']['change'](()=>{_0x10ea68['markBlockFormat'](_0x3bd796,{'commandName':'imageTypeInline','commandParams':[_0x4c6882]},[],'convertBlockImageToInline');});}),_0x10ea68['enableCommand']('imageTypeBlock',(_0x4bf89b,_0x27b475)=>{_0x4460aa['model']['change'](_0x43d03c=>{let _0x3d53e7=_0x5aed2f['getClosestSelectedImageElement'](_0x4460aa['model']['document']['selection']),_0x341d20=_0x43d03c['createRangeOn'](_0x3d53e7);const _0x2ff78b=_0xc121b8['fromPosition'](_0x341d20['start'],'toPrevious'),_0x18799d=_0xc121b8['fromPosition'](_0x341d20['end'],'toNext');_0x10ea68['forceDefaultExecution'](()=>_0x4bf89b(_0x27b475)),_0x3d53e7=_0x5aed2f['getClosestSelectedImageElement'](_0x4460aa['model']['document']['selection']),_0x341d20=_0x43d03c['createRangeOn'](_0x3d53e7);const _0x3d35d3=_0x43d03c['createRange'](_0x2ff78b,_0x18799d);_0x2ff78b['detach'](),_0x18799d['detach'](),_0x10ea68['markBlockFormat'](_0x3d53e7,{'commandName':'imageTypeInline','commandParams':[_0x27b475]},[],'convertInlineImageToBlock'),_0x3d35d3['start']['isBefore'](_0x341d20['start'])&&_0x10ea68['markInsertion'](_0x43d03c['createRange'](_0x3d35d3['start'],_0x341d20['start']),'convertInlineImageToBlock'),_0x341d20['end']['isBefore'](_0x3d35d3['end'])&&_0x10ea68['markInsertion'](_0x43d03c['createRange'](_0x341d20['end'],_0x3d35d3['end']),'convertInlineImageToBlock');});}),_0x10ea68['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x10ea68['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x10ea68['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x10ea68['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x10ea68['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x10ea68['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x23431b])=>{const _0x4f38d9=_0x10ea68['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x14e829=_0x23431b['start'],_0x28a476=_0x23431b['end'];const _0x255d9c=_0x4460aa['model']['schema']['getNearestSelectionRange'](_0x14e829,'backward'),_0xedbfee=_0x4460aa['model']['schema']['getNearestSelectionRange'](_0x28a476,'forward');_0x255d9c['isCollapsed']&&(_0x14e829=_0x255d9c['start']),_0xedbfee['isCollapsed']&&(_0x28a476=_0xedbfee['end']),_0x4f38d9([_0x4460aa['model']['createRange'](_0x14e829,_0x28a476)]);}),_0x10ea68['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xb0559e),_0x10ea68['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xb0559e)),_0x4460aa['plugins']['has']('ImageCaptionEditing')&&(_0x10ea68['enableCommand']('toggleImageCaption',(_0x385485,_0x6cac3b)=>{const _0x5bddd6=_0x4460aa['plugins']['get']('ImageCaptionUtils');let _0x473706=_0x5aed2f['getClosestSelectedImageElement'](_0x4460aa['model']['document']['selection']),_0x568cf0=_0x5bddd6['getCaptionFromImageModelElement'](_0x473706);_0x4460aa['model']['change'](()=>{if(_0x568cf0)return void _0x10ea68['markDeletion'](_0x4460aa['model']['createRangeOn'](_0x568cf0));const _0x489d29=_0x5aed2f['isBlockImage'](_0x473706);_0x385485(_0x6cac3b),_0x473706=_0x5aed2f['getClosestSelectedImageElement'](_0x4460aa['model']['document']['selection']),_0x568cf0=_0x5bddd6['getCaptionFromImageModelElement'](_0x473706),_0x10ea68['markInsertion'](_0x4460aa['model']['createRangeOn'](_0x568cf0),_0x489d29?null:'imageCaption');});}),_0x10ea68['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xb0559e));const _0x4f2f74=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4d3350(_0x5f5bab,_0x243c1e){const _0x2be957=_0x4f2f74['findIndex'](({type:_0x4b6a89,subType:_0x20f18d})=>_0x5f5bab['type']==_0x4b6a89&&_0x5f5bab['subType']==_0x20f18d),_0x53c5f9=_0x4f2f74['findIndex'](({type:_0x341b7d,subType:_0x541abb})=>_0x243c1e['type']==_0x341b7d&&_0x243c1e['subType']==_0x541abb);if(_0x2be957<0x0||_0x53c5f9<0x0)return!0x1;const _0x1f3387=_0x5f5bab['getFirstRange'](),_0x203bac=_0x243c1e['getFirstRange']();if((0x0==_0x2be957||0x1==_0x2be957)&&0x2==_0x53c5f9&&_0x1f3387['isIntersecting'](_0x203bac))return!0x0;if(0x2==_0x2be957&&0x3==_0x53c5f9){const _0x592519=_0x10ea68['_findSuggestions'](_0x1f3387,'insertion')['filter'](({suggestion:_0x3caf7b,meta:_0x91188a})=>_0x91188a['isOwn']&&'convertInlineImageToBlock'==_0x3caf7b['subType']);if(_0x592519['length']>0x1&&_0x203bac['end']['isEqual'](_0x1f3387['start']))return!0x0;if(0x1==_0x592519['length']&&(_0x1f3387['start']['isEqual'](_0x203bac['end'])||_0x1f3387['end']['isEqual'](_0x203bac['start'])))return!0x0;}if(0x3==_0x2be957&&0x3==_0x53c5f9&&_0x1f3387['start']['isBefore'](_0x203bac['start'])){const _0x16b54d=_0x1f3387['end']['nodeAfter'],_0x104d20=_0x203bac['start']['nodeBefore'];return _0x5aed2f['isBlockImage'](_0x16b54d)&&_0x16b54d===_0x104d20;}return!0x1;}function _0xb0559e(_0x23afe0,_0x51774f){return _0x4d3350(_0x23afe0,_0x51774f)?[_0x23afe0,_0x51774f]:_0x4d3350(_0x51774f,_0x23afe0)?[_0x51774f,_0x23afe0]:null;}_0x4460aa['plugins']['has']('ImageResize')&&(_0x10ea68['enableDefaultAttributesIntegration']('resizeImage'),_0x10ea68['registerBlockAttribute']('resizedWidth'),_0x10ea68['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x10c7ec,'FORMAT_IMAGE_SIZE'))),_0x4460aa['plugins']['has']('ImageTextAlternativeEditing')&&(_0x10ea68['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x10ea68['registerBlockAttribute']('alt')),_0x4460aa['plugins']['has']('PictureEditing')&&(_0x10ea68['registerBlockAttribute']('sources'),_0x10ea68['descriptionFactory']['registerDescriptionCallback'](_0x4daf98=>{if('attribute'!=_0x4daf98['type'])return;const {data:_0x8441ff}=_0x4daf98;return _0x8441ff&&'sources'==_0x8441ff['key']?{'type':'format','content':''}:void 0x0;})),_0x4460aa['plugins']['has']('ImageSizeAttributes')&&(_0x10ea68['registerBlockAttribute']('width'),_0x10ea68['registerBlockAttribute']('height'),_0x10ea68['descriptionFactory']['registerDescriptionCallback'](_0x5d41a2=>{if('attribute'!=_0x5d41a2['type'])return;const {data:_0x30e7b4}=_0x5d41a2;return!_0x30e7b4||'width'!=_0x30e7b4['key']&&'height'!=_0x30e7b4['key']?void 0x0:{'type':'format','content':''};})),_0x10ea68['descriptionFactory']['registerDescriptionCallback'](_0x56e0f2=>{if(!!_0x4f2f74['find'](({type:_0x461739,subType:_0x30bf17})=>_0x56e0f2['type']==_0x461739&&_0x56e0f2['subType']==_0x30bf17))return _0x56e0f2['previous']?{}:void 0x0;}),_0x10ea68['descriptionFactory']['registerDescriptionCallback'](_0x262a54=>{if('insertion'==_0x262a54['type']||'deletion'==_0x262a54['type']){const _0x5f2ea7=_0x262a54['getContainedElement']();if(_0x5f2ea7&&_0x5f2ea7['is']('element','caption'))return{'type':'insertion'==_0x262a54['type']?'addObject':'removeObject','element':_0x5f2ea7,'quantity':0x1};}}),_0x10ea68['descriptionFactory']['registerDescriptionCallback'](_0xe34242=>'formatBlock'==_0xe34242['type']&&'convertInlineImageToBlock'==_0xe34242['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xe34242['type']&&'convertBlockImageToInline'==_0xe34242['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x10ea68['descriptionFactory']['registerDescriptionCallback'](_0x4216c3=>{if('attribute'!=_0x4216c3['type'])return;const {data:_0x171af0}=_0x4216c3;if(!_0x171af0||'alt'!=_0x171af0['key'])return;const _0x29916d=_0x171af0['newValue'];return _0x29916d?{'type':'format','content':c(_0x10c7ec,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x29916d+'\x22')}:{'type':'format','content':c(_0x10c7ec,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd51a40=this['editor'],_0x5a3275=_0xd51a40['locale'];_0xd51a40['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x596d84=>{if('formatBlock'!=_0x596d84['type']&&'formatInline'!=_0x596d84['type'])return;const {data:_0x40e704}=_0x596d84;if(_0x40e704){if('imageTextAlternative'==_0x40e704['commandName']){const _0x686714=_0x40e704['commandParams'][0x0]['newValue'];return _0x686714?{'type':'format','content':c(_0x5a3275,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x686714+'\x22')}:{'type':'format','content':c(_0x5a3275,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x40e704['commandName']){const _0x464d8b=_0x40e704['commandParams'][0x0]['width'];return _0x464d8b?{'type':'format','content':c(_0x5a3275,'*Set\x20image\x20width:*\x20%0',_0x464d8b)}:{'type':'format','content':c(_0x5a3275,'*Reset\x20image\x20width*')};}}});}}class at extends _0x3c8d18{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x50a923=this['editor']['locale'],_0x3af22b=this['editor']['plugins']['get']('TrackChangesEditing');_0x3af22b['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3af22b['registerBlockAttribute']('src'),_0x3af22b['descriptionFactory']['registerDescriptionCallback'](_0x2f3a93=>{if('attribute'!=_0x2f3a93['type'])return;const {data:_0x3590e6}=_0x2f3a93;return _0x3590e6&&'src'==_0x3590e6['key']?_0x3590e6['newValue']&&_0x3590e6['oldValue']?{'type':'format','content':c(_0x50a923,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4a10f3=this['editor']['plugins']['get']('TrackChangesEditing');_0x4a10f3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4a10f3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4a10f3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4a10f3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11bd2a=this['editor'],_0x823246=_0x11bd2a['locale'];_0x11bd2a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6d3c9=>{if('formatBlock'!=_0x6d3c9['type']&&'formatInline'!=_0x6d3c9['type'])return;const {data:_0x5e0bea}=_0x6d3c9;if(!_0x5e0bea||'replaceImageSource'!=_0x5e0bea['commandName'])return;return{'type':'format','content':c(_0x823246,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x3c8d18{['afterInit'](){const _0x4d89dc=this['editor'];if(!_0x4d89dc['plugins']['has']('ImageStyleEditing'))return;const _0x54ff13=_0x4d89dc['plugins']['get']('TrackChangesEditing'),_0x47dd7a=_0x4d89dc['plugins']['get']('ImageUtils'),_0x382ada={};_0x54ff13['enableCommand']('imageStyle',(_0x120fe4,_0x58578e)=>{const _0x451882=_0x4d89dc['plugins']['get']('Users')['me'],_0x106dbc=_0x4d89dc['commands']['get']('imageStyle');let _0x160866=_0x47dd7a['getClosestSelectedImageElement'](_0x4d89dc['model']['document']['selection']),_0x4d1330=_0x4d89dc['model']['createRangeOn'](_0x160866),_0x348c80=_0x106dbc['value'];if(_0x348c80==_0x58578e['value'])return;const _0xcc90dd={'commandName':'imageStyle','commandParams':[_0x58578e],'formatGroupId':_0x37dcac()};_0x4d89dc['model']['change'](()=>{if(_0x54ff13['getSuggestions']()['filter'](_0x4bbcdd=>_0x4bbcdd['isInContent']&&_0x451882==_0x4bbcdd['author']&&('formatBlock'==_0x4bbcdd['type']||'formatInline'==_0x4bbcdd['type'])&&('imageStylePreApply'==_0x4bbcdd['subType']||'imageStylePostApply'==_0x4bbcdd['subType'])&&_0x4bbcdd['getFirstRange']()['isEqual'](_0x4d1330))['forEach'](_0x3656f0=>_0x54ff13['discardSuggestion'](_0x3656f0['head'])),_0x160866=_0x47dd7a['getClosestSelectedImageElement'](_0x4d89dc['model']['document']['selection']),_0x4d1330=_0x4d89dc['model']['createRangeOn'](_0x160866),_0x106dbc['refresh'](),_0x4d89dc['commands']['get']('imageTypeInline')['refresh'](),_0x4d89dc['commands']['get']('imageTypeBlock')['refresh'](),_0x348c80=_0x106dbc['value'],_0x348c80!=_0x58578e['value'])return _0x47dd7a['isInlineImage'](_0x160866)&&_0x106dbc['shouldConvertImageType'](_0x58578e['value'],_0x160866)?(_0x120fe4({..._0x58578e,'setImageSizes':!0x1}),_0x160866=_0x47dd7a['getClosestSelectedImageElement'](_0x4d89dc['model']['document']['selection']),void _0x54ff13['markBlockFormat'](_0x160866,{..._0xcc90dd,'commandReversedParams':[{'value':_0x348c80||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x47dd7a['isBlockImage'](_0x160866)?_0x54ff13['markBlockFormat'](_0x160866,_0xcc90dd,[],'imageStylePostApply'):_0x54ff13['markInlineFormat'](_0x4d1330,_0xcc90dd,'imageStylePostApply'));});});for(const _0x497f00 of _0x4d89dc['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x382ada[_0x497f00['name']]=_0x497f00['title']['toLowerCase']();_0x54ff13['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x54ff13['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x54ff13['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x54ff13['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5a7cbe])=>{_0x47dd7a['setImageNaturalSizeAttributes'](_0x5a7cbe['getContainedElement']());}),_0x54ff13['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xca047f,_0x2f4d45)=>{_0x54ff13['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xca047f,{'commandName':_0x2f4d45['commandName'],'commandParams':_0x2f4d45['commandReversedParams']});}),_0x54ff13['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5dbbf8,_0x216cfe){if(_0x24736d(_0x5dbbf8,_0x216cfe))return[_0x5dbbf8,_0x216cfe];if(_0x24736d(_0x216cfe,_0x5dbbf8))return[_0x216cfe,_0x5dbbf8];return null;});const _0x406f0c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x24736d(_0x2acc96,_0x214a9c){const _0x8401d6=_0x406f0c['findIndex'](({type:_0x52e16b,subType:_0x4a44c6})=>_0x2acc96['type']==_0x52e16b&&_0x2acc96['subType']==_0x4a44c6),_0x2b5155=_0x406f0c['findIndex'](({type:_0x37e7e3,subType:_0x5ce637})=>_0x214a9c['type']==_0x37e7e3&&_0x214a9c['subType']==_0x5ce637);if(_0x8401d6<0x0||_0x2b5155<0x0)return!0x1;const _0x3b6a93=_0x2acc96['getFirstRange'](),_0x2bd2f0=_0x214a9c['getFirstRange']();if((0x0==_0x8401d6||0x1==_0x8401d6)&&0x2==_0x2b5155&&_0x3b6a93['isIntersecting'](_0x2bd2f0))return!0x0;if(0x2==_0x8401d6&&0x3==_0x2b5155){const _0x5d2789=_0x54ff13['_findSuggestions'](_0x3b6a93,'insertion')['filter'](({suggestion:_0x5202b6,meta:_0x39b6df})=>_0x39b6df['isOwn']&&'convertInlineImageToBlock'==_0x5202b6['subType']);if(_0x5d2789['length']>0x1&&_0x2bd2f0['end']['isEqual'](_0x3b6a93['start']))return!0x0;if(0x1==_0x5d2789['length']&&(_0x3b6a93['start']['isEqual'](_0x2bd2f0['end'])||_0x3b6a93['end']['isEqual'](_0x2bd2f0['start'])))return!0x0;}if(0x3==_0x8401d6&&0x3==_0x2b5155&&_0x3b6a93['start']['isBefore'](_0x2bd2f0['start'])){const _0x134917=_0x3b6a93['end']['nodeAfter'],_0x546e91=_0x2bd2f0['start']['nodeBefore'];return _0x47dd7a['isBlockImage'](_0x134917)&&_0x134917===_0x546e91;}return!0x1;}_0x4d89dc['model']['document']['registerPostFixer'](()=>{let _0x2d6faa=!0x1;const _0x257c7c=Array['from'](_0x4d89dc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5e902f,data:_0x3be2c7}of _0x257c7c){const {group:_0x16facb,type:_0x34fa3d,subType:_0x1a795a,id:_0x31be61}=_0x54ff13['_splitMarkerName'](_0x5e902f);if('suggestion'==_0x16facb&&_0x54ff13['hasSuggestion'](_0x31be61)){if('formatBlock'==_0x34fa3d&&('imageStylePreApply'==_0x1a795a||'imageStylePostApply'==_0x1a795a)){const _0x549b96=_0x54ff13['getSuggestion'](_0x31be61);if(_0x3be2c7['newRange']){const _0x126689=_0x549b96['getFirstRange']()['getContainedElement']();if(_0x47dd7a['isBlockImage'](_0x126689))continue;_0x54ff13['discardSuggestion'](_0x549b96),_0x2d6faa=!0x0;}}if('insertion'==_0x34fa3d&&'imageCaption'==_0x1a795a&&!_0x3be2c7['newRange']){const _0x55403a=_0x54ff13['getSuggestion'](_0x31be61);_0x55403a['next']&&_0x55403a['next']['isInContent']&&(_0x54ff13['discardSuggestion'](_0x55403a['next']),_0x2d6faa=!0x0);}}}return _0x2d6faa;}),this['_registerLegacyDescription'](_0x382ada);}['_registerLegacyDescription'](_0x97217e){const _0x3dec94=this['editor'],_0x3075ba=_0x3dec94['locale'];_0x3dec94['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29e7b0=>{if('formatBlock'!=_0x29e7b0['type']&&'formatInline'!=_0x29e7b0['type'])return;const {data:_0x542ad8}=_0x29e7b0;if(!_0x542ad8||'imageStyle'!=_0x542ad8['commandName'])return;const _0x478f93=_0x542ad8['commandParams'][0x0]['value'];return _0x229f52('side'===_0x478f93?c(_0x3075ba,'FORMAT_SIDE_IMAGE'):_0x97217e[_0x478f93]||_0x478f93);function _0x229f52(_0xa9608a){return{'type':'format','content':c(_0x3075ba,'*Format:*\x20%0',_0xa9608a)};}});}}class ut extends _0x3c8d18{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x538d22){super(_0x538d22),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x326147=this['editor'],_0x51c6bd=_0x326147['commands']['get']('importWord'),_0x25a633=_0x326147['commands']['get']('trackChanges');_0x51c6bd&&(_0x51c6bd['on']('execute',(_0x4b536d,[,_0x404d8a])=>{this['_trackChangesValueDuringImport']=_0x25a633['value'],_0x404d8a['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x51c6bd,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x51c6bd,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x25a633['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x326147['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xad4b8e,_0xb24dd9){const {suggestions:_0x21594b}=_0xb24dd9,_0x4910ac=this['editor']['commands']['get']('trackChanges'),_0x37e16e=_0x4910ac['value'];this['_trackChangesValueDuringImport']!==_0x37e16e&&(_0x4910ac['execute'](),this['_trackChangesExecuted']=!0x0),_0x21594b&&_0x21594b['forEach'](({id:_0x5079be,type:_0x595a5e,author:_0x449c08,created_at:_0x3af71c})=>{const _0x5cdb6a={'id':_0x5079be,'type':_0x595a5e,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x449c08,'createdAt':_0x3af71c?new Date(_0x3af71c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5cdb6a);});}}class ft extends _0x3c8d18{['afterInit'](){const _0x3f1c1b=this['editor'],_0x4923fc=_0x3f1c1b['plugins']['get']('TrackChangesEditing');if(_0x3f1c1b['plugins']['has']('IndentEditing')&&(_0x4923fc['enableCommand']('indent'),_0x4923fc['enableCommand']('outdent')),_0x3f1c1b['plugins']['has']('IndentBlock')){for(const _0x59b10a of['indentBlock','outdentBlock'])_0x4923fc['enableDefaultAttributesIntegration'](_0x59b10a);}const _0x97b723=_0x3f1c1b['locale'];_0x4923fc['registerBlockAttribute']('blockIndent'),_0x4923fc['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x97b723,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39a07a=this['editor'],_0x56f2ca=_0x39a07a['locale'],_0x513fd3=_0x39a07a['plugins']['get']('TrackChangesEditing');_0x513fd3['descriptionFactory']['registerDescriptionCallback'](_0x496f1a=>{if('formatBlock'!=_0x496f1a['type'])return;const {data:_0x186c3e}=_0x496f1a;if(!_0x186c3e)return;if('indentBlock'!=_0x186c3e['commandName']&&'outdentBlock'!=_0x186c3e['commandName'])return;const _0x4a8b54=_0x496f1a['getItems']()[0x0],_0x3ba69a=_0x513fd3['descriptionFactory']['getItemLabel'](_0x4a8b54);return'indentBlock'==_0x186c3e['commandName']?{'type':'format','content':c(_0x56f2ca,'*Indent:*\x20%0',_0x3ba69a)}:'outdentBlock'==_0x186c3e['commandName']?{'type':'format','content':c(_0x56f2ca,'*Outdent:*\x20%0',_0x3ba69a)}:void 0x0;});}}class ht extends _0x3c8d18{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x3c8d18{['afterInit'](){const _0x259fcd=this['editor'];if(!_0x259fcd['plugins']['has']('LinkEditing'))return;const _0x59c401=_0x259fcd['plugins']['get']('TrackChangesEditing'),_0x2f5a06=_0x259fcd['commands']['get']('link');_0x59c401['enableDefaultAttributesIntegration']('link'),_0x59c401['enableDefaultAttributesIntegration']('unlink'),_0x59c401['registerInlineAttribute']('linkHref');for(const _0x548f31 of _0x2f5a06['manualDecorators'])_0x59c401['registerInlineAttribute'](_0x548f31['id']),_0x59c401['descriptionFactory']['registerAttributeLabel'](_0x548f31['id'],'link\x20('+_0x548f31['label']['toLowerCase']()+')');_0x59c401['descriptionFactory']['registerDescriptionCallback'](_0x3cceb5=>{if('attribute'!=_0x3cceb5['type'])return;const {data:_0x5571da}=_0x3cceb5;if(!_0x5571da||'linkHref'!=_0x5571da['key'])return;const _0x43d9ca=_0x5571da['newValue'],_0x11a99e=_0x259fcd['locale'];return{'type':'format','content':null==_0x43d9ca?c(_0x11a99e,'*Remove\x20link*'):c(_0x11a99e,'*Set\x20link:*\x20%0','\x22'+_0x43d9ca+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b2ae3=this['editor'],_0x4fcfad=_0x3b2ae3['locale'];_0x3b2ae3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d5328=>{if('formatInline'!=_0x3d5328['type'])return;const {data:_0xed6f57}=_0x3d5328;if(_0xed6f57){if('link'==_0xed6f57['commandName']){const _0x49138f=_0xed6f57['commandParams'][0x0];return{'type':'format','content':c(_0x4fcfad,'*Set\x20link:*\x20%0','\x22'+_0x49138f+'\x22')};}return'unlink'==_0xed6f57['commandName']?{'type':'format','content':c(_0x4fcfad,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x3c8d18{['afterInit'](){const _0x34f2f9=this['editor'],_0x2f1a74=_0x34f2f9['locale'];if(!_0x34f2f9['plugins']['has']('LegacyListEditing'))return;const _0x46072a=_0x34f2f9['plugins']['get']('TrackChangesEditing'),_0x25e63c=_0x34f2f9['plugins']['has']('LegacyTodoListEditing');function _0x573ff8(_0x342d99){return()=>{const _0x3901cf=_0x34f2f9['model']['document']['selection'],_0x465e81=_0x34f2f9['commands']['get'](_0x342d99);if(_0x465e81['value'])return void _0x34f2f9['execute']('paragraph',{});const _0x36491a=_0x342d99['slice'](0x0,-0x4),_0x311be9=function(_0x33923d,_0x330c4d,_0x39f15f){let _0x3d8feb=Array['from'](_0x33923d)['filter'](_0x1afd61=>function(_0x5efadc,_0x4d992c){return _0x4d992c['checkChild'](_0x5efadc['parent'],'listItem')&&!_0x4d992c['isObject'](_0x5efadc);}(_0x1afd61,_0x39f15f));_0x3d8feb=_0x3d8feb['filter'](_0x108354=>!_0x108354['is']('element','listItem')||_0x108354['getAttribute']('listType')!=_0x330c4d);const _0x2ac901=new Set();for(const _0xfb59a6 of _0x3d8feb)_0xfb59a6['is']('element','listItem')?_0x2ac901['add'](Le(_0xfb59a6)):_0x2ac901['add'](_0xfb59a6);return Array['from'](_0x2ac901);}(_0x3901cf['getSelectedBlocks'](),_0x36491a,_0x34f2f9['model']['schema']);_0x34f2f9['model']['change'](()=>{for(const _0x158172 of _0x311be9)_0x46072a['markBlockFormat'](_0x158172,{'commandName':_0x342d99,'commandParams':[{'forceValue':!_0x465e81['value']}],'formatGroupId':'blockName'},Ee(_0x158172));});};}function _0x5747ec(_0x4f46de){return()=>{const _0x398917=function(_0x1fda04){let _0x57fd94=Array['from'](_0x1fda04);const _0x22e6df=_0x57fd94['findIndex'](_0x2dc16d=>'listItem'!=_0x2dc16d['name']);return _0x22e6df>-0x1&&(_0x57fd94=_0x57fd94['slice'](0x0,_0x22e6df)),_0x57fd94;}(_0x34f2f9['model']['document']['selection']['getSelectedBlocks']()),_0x211012=_0x34f2f9['model']['createRange'](_0x34f2f9['model']['createPositionAt'](_0x398917[0x0],'before'),_0x34f2f9['model']['createPositionAt'](_0x398917[_0x398917['length']-0x1],'end'));_0x34f2f9['model']['change'](()=>{_0x46072a['markBlockFormat'](_0x211012,{'commandName':_0x4f46de,'commandParams':[],'formatGroupId':'listIndent'},function(_0x31023c){const _0x2aef0f=new Set();for(const _0x26b01c of _0x31023c){let _0x1d14fa=_0x26b01c['nextSibling'];for(;_0x1d14fa&&_0x1d14fa['getAttribute']('listIndent')>_0x26b01c['getAttribute']('listIndent');)_0x2aef0f['add'](_0x1d14fa),_0x1d14fa=_0x1d14fa['nextSibling'];}return Array['from'](_0x2aef0f);}(_0x398917));});};}_0x46072a['enableCommand']('numberedList',_0x573ff8('numberedList')),_0x46072a['enableCommand']('bulletedList',_0x573ff8('bulletedList')),_0x25e63c&&_0x46072a['enableCommand']('todoList',_0x573ff8('todoList')),_0x46072a['enableCommand']('indentList',_0x5747ec('indentList')),_0x46072a['enableCommand']('outdentList',_0x5747ec('outdentList')),_0x25e63c&&_0x46072a['enableCommand']('checkTodoList',()=>{const _0x57b1fb=_0x34f2f9['commands']['get']('checkTodoList'),_0x1ad08a=Array['from'](_0x57b1fb['_selectedElements']);_0x1ad08a['filter'](_0x4f2a4d=>_0x4f2a4d['getAttribute']('todoListChecked')!=_0x57b1fb['value']),_0x34f2f9['model']['change'](()=>{for(const _0x72a08a of _0x1ad08a)_0x46072a['markBlockFormat'](_0x72a08a,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x57b1fb['value']}]});});}),_0x46072a['descriptionFactory']['registerElementLabel']('listItem',_0x316781=>c(_0x2f1a74,'ELEMENT_LIST_ITEM',_0x316781)),_0x46072a['descriptionFactory']['registerDescriptionCallback'](_0x3ff6b8=>{if('formatBlock'!=_0x3ff6b8['type']&&'formatInline'!=_0x3ff6b8['type'])return;const {data:_0xc1e53f}=_0x3ff6b8;if(_0xc1e53f){if('numberedList'==_0xc1e53f['commandName']||'bulletedList'==_0xc1e53f['commandName']||'todoList'==_0xc1e53f['commandName'])switch(_0xc1e53f['commandName']['replace']('List','')){case'bulleted':return _0x38e0b2(c(_0x2f1a74,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x38e0b2(c(_0x2f1a74,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x38e0b2(c(_0x2f1a74,'ELEMENT_TODO_LIST'));}if('indentList'==_0xc1e53f['commandName'])return{'type':'format','content':c(_0x2f1a74,'*Indent:*\x20%0',c(_0x2f1a74,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xc1e53f['commandName'])return{'type':'format','content':c(_0x2f1a74,'*Outdent:*\x20%0',c(_0x2f1a74,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xc1e53f['commandName'])return _0xc1e53f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2f1a74,'*Check\x20item*')}:{'type':'format','content':c(_0x2f1a74,'*Uncheck\x20item*')};}function _0x38e0b2(_0x311b01){return{'type':'format','content':c(_0x2f1a74,'*Change\x20to:*\x20%0',_0x311b01)};}});}}function Le(_0x27a633){const _0x29e4b8=_0x27a633['getAttribute']('listIndent');if(0x0==_0x29e4b8)return _0x27a633;let _0x2fb858=_0x27a633;for(;_0x27a633['previousSibling']&&_0x27a633['previousSibling']['is']('element','listItem');){const _0x3f7ea7=_0x27a633['previousSibling']['getAttribute']('listIndent');if(_0x3f7ea7==_0x29e4b8)_0x2fb858=_0x27a633['previousSibling'];else{if(_0x3f7ea7<_0x29e4b8)break;}_0x27a633=_0x27a633['previousSibling'];}return _0x2fb858;}function Ee(_0x569838){const _0x2f5657=[];if(_0x569838['is']('element','listItem')&&_0x569838['getAttribute']('listIndent')>0x0){let _0x15363b=_0x569838['nextSibling'];for(;_0x15363b&&'listItem'==_0x15363b['name']&&_0x15363b['getAttribute']('listIndent')==_0x569838['getAttribute']('listIndent');)_0x2f5657['push'](_0x15363b),_0x15363b=_0x15363b['nextSibling'];}return _0x2f5657;}class Q extends _0x3c8d18{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x98bdb5=this['editor']['config']['get']('list.properties'),_0x47d5c6=this['editor']['plugins']['get']('TrackChangesEditing');_0x98bdb5['styles']&&_0x47d5c6['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x98bdb5['reversed']&&_0x47d5c6['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x98bdb5['startIndex']&&_0x47d5c6['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x47d5c6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xe895fb,_0x273c8c={}){const _0xbba5c3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59c98f=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xbba5c3['markMultiRangeBlockFormat'](_0x59c98f,{'commandName':'listStyle','commandParams':[{'type':_0x273c8c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x197ab6,_0x5eae43={}){const _0x34a036=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15812f=this['_getSuggestionBlocks'](_0x449b2d=>_0x449b2d['is']('element','listItem')&&'numbered'===_0x449b2d['getAttribute']('listType'));if(_0x15812f['length']<0x1)return;const _0x3646b5=_0x15812f['map'](_0x1c17fd=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1c17fd,'before'),this['editor']['model']['createPositionAt'](_0x1c17fd,0x0)));this['editor']['model']['change'](()=>{_0x34a036['markMultiRangeBlockFormat'](_0x3646b5,{'commandName':'listReversed','commandParams':[{'reversed':_0x5eae43['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x212e25,_0x5df00c={}){const _0x1da25c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3675bb=this['_getSuggestionBlocks'](_0x6adc98=>_0x6adc98['is']('element','listItem')&&'numbered'===_0x6adc98['getAttribute']('listType'));if(_0x3675bb['length']<0x1)return;const _0x4a3b2d=_0x3675bb['map'](_0x18e66c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x18e66c,'before'),this['editor']['model']['createPositionAt'](_0x18e66c,0x0)));this['editor']['model']['change'](()=>{_0x1da25c['markMultiRangeBlockFormat'](_0x4a3b2d,{'commandName':'listStart','commandParams':[{'startIndex':_0x5df00c['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x540508){if('formatBlock'!=_0x540508['type']&&'formatInline'!=_0x540508['type'])return;const _0x327d9c=this['editor']['locale'],{data:_0x285f2b}=_0x540508;if(!_0x285f2b)return;let _0x4f24ac,_0x1173ca;switch(_0x285f2b['commandName']){case'listStyle':_0x4f24ac='*Change\x20to:*\x20%0',_0x1173ca={'type':'format','content':c(_0x327d9c,_0x4f24ac,c(_0x327d9c,this['_getTranslationKeyForListStyle'](_0x285f2b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4f24ac=_0x285f2b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1173ca={'type':'format','content':c(_0x327d9c,_0x4f24ac)};break;case'listStart':_0x4f24ac='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1173ca={'type':'format','content':c(_0x327d9c,_0x4f24ac,_0x285f2b['commandParams'][0x0]['startIndex'])};}return _0x1173ca;}['_getSuggestionBlocksForListStyle'](){const _0x71e9b7=this['editor']['plugins']['get']('LegacyListUtils');let _0xd34f85=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xd34f85[0x0]?.['is']('element','listItem')&&_0xd34f85['unshift'](..._0x71e9b7['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xd34f85[_0xd34f85['length']-0x1]?.['is']('element','listItem')&&_0xd34f85['push'](..._0x71e9b7['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xd34f85=[...new Set(_0xd34f85)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xd34f85=_0xd34f85['filter'](_0x2358c4=>_0x2358c4['is']('element','listItem'))),_0xd34f85;}['_getSuggestionBlocks'](_0x25ada5){const _0x4343f8=this['editor']['plugins']['get']('LegacyListUtils');let _0x5d629e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x25ada5)['map'](_0x34b3c3=>{const _0x46c9cd=this['editor']['model']['createPositionAt'](_0x34b3c3,0x0);return[..._0x4343f8['getSiblingNodes'](_0x46c9cd,'backward'),..._0x4343f8['getSiblingNodes'](_0x46c9cd,'forward')];})['flat']();return _0x5d629e=[...new Set(_0x5d629e)],_0x5d629e;}['_getTranslationKeyForListStyle'](_0x34b973){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x34b973)||'default')['toUpperCase']()+'_LIST_'+_0x34b973['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x3c8d18{['afterInit'](){const _0x382a63=this['editor'];if(!_0x382a63['plugins']['has']('MediaEmbedEditing'))return;const _0x1199f6=_0x382a63['plugins']['get']('TrackChangesEditing'),_0x2c3a1a=_0x382a63['locale'];_0x1199f6['enableCommand']('mediaEmbed'),_0x1199f6['descriptionFactory']['registerElementLabel']('media',_0x33c551=>c(_0x2c3a1a,'ELEMENT_MEDIA',_0x33c551)),_0x382a63['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1acc58,{writer:_0x2d5800,options:_0x150f54})=>{if(_0x150f54['showSuggestionHighlights'])return _0x2d5800['createEmptyElement']('div');},'converterPriority':'high'}),_0x382a63['data']['downcastDispatcher']['on']('attribute:url:media',(_0x47c553,_0x513bbc,_0x558b13)=>{_0x558b13['options']['showSuggestionHighlights']&&_0x47c553['stop']();},{'priority':'high'});}}class pt extends _0x3c8d18{['afterInit'](){const _0x5933a4=this['editor'];_0x5933a4['plugins']['has']('MentionEditing')&&_0x5933a4['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x3c8d18{['afterInit'](){const _0x36235f=this['editor'];if(!_0x36235f['plugins']['has']('MergeFieldsEditing'))return;const _0x61a299=_0x36235f['plugins']['get']('TrackChangesEditing'),_0x1844a4=_0x36235f['locale'];_0x61a299['enableCommand']('insertMergeField'),_0x61a299['enableCommand']('insertMergeFieldBlock'),_0x61a299['enableCommand']('insertMergeFieldImage'),_0x61a299['descriptionFactory']['registerElementLabel']('mergeField',_0x1f6b34=>c(_0x1844a4,'ELEMENT_MERGE_FIELD',_0x1f6b34)),_0x61a299['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x16ab6f=>c(_0x1844a4,'ELEMENT_MERGE_FIELD',_0x16ab6f)),_0x61a299['descriptionFactory']['registerDescriptionCallback'](_0x15d14f=>{if('insertion'!=_0x15d14f['type']&&'deletion'!=_0x15d14f['type'])return;const _0x46e285=_0x15d14f['getContainedElement']();if(null==_0x46e285)return;const _0x9fd534=_0x36235f['plugins']['get']('MergeFieldsEditing');let _0x236a41;switch(_0x9fd534['getMergeFieldType'](_0x46e285)){case null:return;case'image':{const _0x1cfcb6=_0x9fd534['unwrapAffixes'](_0x46e285['getAttribute']('src'));_0x236a41=_0x9fd534['getLabel'](_0x1cfcb6)||_0x1cfcb6;break;}default:{const _0x2b1b36=_0x46e285['getAttribute']('id');_0x236a41=_0x9fd534['getLabel'](_0x2b1b36)||_0x2b1b36;break;}}return'insertion'==_0x15d14f['type']?{'type':'insertion','content':c(_0x1844a4,'*Insert:*\x20%0','\x22'+_0x236a41+'\x22\x20'+c(_0x1844a4,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x1844a4,'*Remove:*\x20%0','\x22'+_0x236a41+'\x22\x20'+c(_0x1844a4,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x3c8d18{['afterInit'](){const _0x279f8a=this['editor'],_0x4fcdea=_0x279f8a['plugins']['get']('TrackChangesEditing');_0x279f8a['plugins']['has']('MultiLevelList')&&(_0x4fcdea['enableDefaultAttributesIntegration']('multiLevelList'),_0x4fcdea['registerBlockAttribute']('listMarkerStyle'),_0x4fcdea['descriptionFactory']['registerDescriptionCallback'](_0x473ccd=>this['handleDescriptions'](_0x473ccd)));}['handleDescriptions'](_0x54841c){const _0x3e3023=this['editor']['locale'],{data:_0x53f2f8}=_0x54841c,_0x330dfa={'type':'format','content':''};if(_0x53f2f8&&'listMarkerStyle'==_0x53f2f8['key']){if(!_0x53f2f8['oldValue'])return{'type':'format','content':c(_0x3e3023,'*Set\x20format:*\x20%0',c(_0x3e3023,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x53f2f8['newValue']+')'};if(!_0x53f2f8['newValue']){let _0x52ca20=_0x54841c['head'];for(;_0x52ca20;){if(_0x52ca20['data']&&'listType'==_0x52ca20['data']['key']&&_0x52ca20['data']['newValue'])return _0x330dfa;_0x52ca20=_0x52ca20['next'];}return{'type':'format','content':c(_0x3e3023,'*Remove\x20format:*\x20%0',c(_0x3e3023,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x53f2f8['oldValue']+')'};}}}}class bt extends _0x3c8d18{['afterInit'](){const _0x38428a=this['editor'];if(!_0x38428a['plugins']['has']('PageBreakEditing'))return;_0x38428a['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xc0d71c=_0x38428a['plugins']['get']('TrackChangesEditing'),_0x321d90=_0x38428a['locale'];_0xc0d71c['descriptionFactory']['registerElementLabel']('pageBreak',_0x310e0e=>c(_0x321d90,'ELEMENT_PAGE_BREAK',_0x310e0e));}}class yt extends _0x3c8d18{['afterInit'](){const _0x30185e=this['editor'];if(!_0x30185e['plugins']['has']('Paragraph'))return;const _0x26aac3=_0x30185e['locale'],_0x4835ae=_0x30185e['plugins']['get']('TrackChangesEditing');_0x4835ae['descriptionFactory']['registerElementLabel']('paragraph',_0x3b8b30=>c(_0x26aac3,'ELEMENT_PARAGRAPH',_0x3b8b30)),_0x4835ae['enableDefaultAttributesIntegration']('paragraph'),_0x4835ae['enableCommand']('insertParagraph'),_0x30185e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x30185e),{'priority':'highest'}),_0x30185e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x126818,_0x34f1e9,_0xdc5ee4)=>{_0xdc5ee4['options']['showSuggestionHighlights']&&nr(_0x30185e,{'showActiveMarker':!0x1})(_0x126818,_0x34f1e9,_0xdc5ee4);},{'priority':'highest'});const _0x59c6b3=_0x4835ae['descriptionFactory'];_0x59c6b3['registerDescriptionCallback'](_0x4857f4=>{if('insertion'!==_0x4857f4['type'])return;const {start:_0x1a8fed,end:_0x397aa0}=_0x4857f4['getFirstRange']();if(!_0x1a8fed['isTouching'](_0x397aa0)||!_0x1a8fed['nodeAfter'])return;const _0xc2567d=_0x30185e['model']['schema'],_0x1e0643=_0x1a8fed['nodeAfter'];return _0xc2567d['isBlock'](_0x1e0643)&&!_0xc2567d['isLimit'](_0x1e0643)&&_0xc2567d['checkChild'](_0x1e0643,'$text')?{'type':'insertion','content':c(_0x26aac3,'*Insert:*\x20%0',_0x59c6b3['getItemLabel'](_0x1e0643,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5761ee=this['editor'],_0x5559a8=_0x5761ee['locale'];_0x5761ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b2a76=>{if('formatBlock'!=_0x1b2a76['type'])return;const {data:_0x1d129c}=_0x1b2a76;return _0x1d129c&&'paragraph'==_0x1d129c['commandName']?{'type':'format','content':c(_0x5559a8,'*Change\x20to:*\x20%0',c(_0x5559a8,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x57a89b,{showActiveMarker:_0x40e81d=!0x0}={}){return(_0x24ea6e,_0x12e4ce,_0x1b77d6)=>{const _0x7621b6=_0x57a89b['plugins']['get']('TrackChangesEditing'),_0x2811a9=_0x12e4ce['markerRange']['start'],_0x4abc15=_0x12e4ce['markerRange']['end'],_0x441dd0=_0x57a89b['model']['schema'];if(!_0x2811a9['isTouching'](_0x4abc15)||!_0x2811a9['nodeAfter'])return;const _0x4bd2ec=_0x2811a9['nodeAfter'];if(_0x441dd0['isBlock'](_0x4bd2ec)&&!_0x441dd0['isLimit'](_0x4bd2ec)&&_0x441dd0['checkChild'](_0x4bd2ec,'$text')){if(!_0x1b77d6['consumable']['consume'](_0x12e4ce['markerRange'],_0x24ea6e['name']))return;const {authorId:_0xc40aaf}=_0x7621b6['_splitMarkerName'](_0x12e4ce['markerName']),_0x343a36=_0x1b77d6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0xc40aaf}),_0x2260a0=_0x1b77d6['mapper']['toViewPosition'](_0x4abc15);_0x40e81d&&_0x7621b6['activeMarkers']['includes'](_0x12e4ce['markerName'])&&_0x1b77d6['writer']['addClass']('ck-suggestion-marker--active',_0x343a36),_0x1b77d6['writer']['insert'](_0x2260a0,_0x343a36),_0x1b77d6['mapper']['bindElementToMarker'](_0x343a36,_0x12e4ce['markerName']);}};}class jt extends _0x3c8d18{['afterInit'](){const _0x54428f=this['editor'];_0x54428f['commands']['get']('replaceSource')&&_0x54428f['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x3c8d18{['afterInit'](){const _0xe622ef=this['editor'];if(!_0xe622ef['plugins']['has']('RemoveFormatEditing'))return;_0xe622ef['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3079c6=this['editor'];_0x3079c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33019e=>{if('formatBlock'!=_0x33019e['type']&&'formatInline'!=_0x33019e['type'])return;const {data:_0x27da9d}=_0x33019e;return _0x27da9d&&'removeFormat'==_0x27da9d['commandName']?{'type':'format','content':c(_0x3079c6['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x3c8d18{['afterInit'](){const _0x4dc002=this['editor'];if(!_0x4dc002['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x6412a3=_0x4dc002['plugins']['get']('TrackChangesEditing');_0x6412a3['enableCommand']('goToPreviousRestrictedEditingException'),_0x6412a3['enableCommand']('goToNextRestrictedEditingException');const _0x3b39f7=_0x4dc002['plugins']['get']('RestrictedEditingModeEditing');_0x3b39f7['enableCommand']('trackChanges'),_0x3b39f7['enableCommand']('acceptSuggestion'),_0x3b39f7['enableCommand']('discardSuggestion'),_0x3b39f7['enableCommand']('acceptAllSuggestions'),_0x3b39f7['enableCommand']('discardAllSuggestions'),_0x3b39f7['enableCommand']('acceptSelectedSuggestions'),_0x3b39f7['enableCommand']('discardSelectedSuggestions');}}class It extends _0x3c8d18{['afterInit'](){const _0x21845b=this['editor'];if(!_0x21845b['plugins']['has']('ShiftEnter'))return;const _0x5012c2=_0x21845b['plugins']['get']('TrackChangesEditing');_0x5012c2['enableCommand']('shiftEnter'),_0x21845b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x21845b),{'priority':'high'}),_0x21845b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x21845b),{'priority':'high'}),_0x21845b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x424be2,_0x2a7ba9,_0x310f90)=>{_0x310f90['options']['showSuggestionHighlights']&&je(_0x21845b,{'showActiveMarker':!0x1})(_0x424be2,_0x2a7ba9,_0x310f90);}),_0x5012c2['descriptionFactory']['registerElementLabel']('softBreak',_0x445078=>c(_0x21845b['locale'],'ELEMENT_LINE_BREAK',_0x445078));}}function je(_0xc4ba93,{showActiveMarker:_0x3ffdaf=!0x0}={}){return(_0x31468b,_0xe7eb6,_0x40b501)=>{const _0x3ef323=_0xc4ba93['plugins']['get']('TrackChangesEditing');if(!_0x40b501['consumable']['test'](_0xe7eb6['markerRange'],_0x31468b['name']))return;const _0x4f67c9=_0xc4ba93['model'];for(const _0x525e57 of _0xe7eb6['markerRange']['getItems']()){if(!_0x525e57['is']('element','softBreak'))continue;const _0x3aceb8='deletion'==_0xe7eb6['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x16125a}=_0x3ef323['_splitMarkerName'](_0xe7eb6['markerName']),_0x3cf9a1=_0x40b501['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3aceb8,'data-author-id':_0x16125a}),_0xb036b6=_0x40b501['mapper']['toViewPosition'](_0x4f67c9['createPositionBefore'](_0x525e57));_0x3ffdaf&&_0x3ef323['activeMarkers']['includes'](_0xe7eb6['markerName'])&&_0x40b501['writer']['addClass']('ck-suggestion-marker--active',_0x3cf9a1),_0x40b501['writer']['insert'](_0xb036b6,_0x3cf9a1),_0x40b501['mapper']['bindElementToMarker'](_0x3cf9a1,_0xe7eb6['markerName']);}};}class _t extends _0x3c8d18{['afterInit'](){const _0x4ce370=this['editor'],_0xedf51c=_0x4ce370['model'],_0x2333da=_0x4ce370['locale'];if(!_0x4ce370['plugins']['has']('StandardEditingModeEditing'))return;const _0x5c2cce=_0x4ce370['plugins']['get']('TrackChangesEditing'),_0x4df898='restrictedEditingException',_0x5ec3cf=_0x4ce370['commands']['get'](_0x4df898);_0x5c2cce['enableCommand'](_0x4df898,(_0x20b914,_0x2ef92b={})=>{const _0x2e2fd7=_0xedf51c['document']['selection'];if(_0x2e2fd7['isCollapsed'])return void _0x20b914(_0x2ef92b);const _0x22d671=void 0x0!==_0x2ef92b['forceValue']?_0x2ef92b['forceValue']:!_0x5ec3cf['value'];_0xedf51c['change'](()=>{const _0x1796d9=Array['from'](_0x2e2fd7['getRanges']());for(const _0xf4d657 of _0x1796d9){const _0xda2a9b=_0x22d671?[_0xf4d657]:io(_0x4df898,_0xf4d657,_0xedf51c);for(const _0x5d9a44 of _0xda2a9b)_0x5c2cce['markInlineFormat'](_0x5d9a44,{'commandName':_0x4df898,'commandParams':[{'forceValue':_0x22d671}]});}});}),_0x5c2cce['descriptionFactory']['registerDescriptionCallback'](_0x16caf7=>{if('formatBlock'!=_0x16caf7['type']&&'formatInline'!=_0x16caf7['type'])return;const {data:_0x5d5e7e}=_0x16caf7;return _0x5d5e7e&&_0x5d5e7e['commandName']==_0x4df898?_0x5d5e7e['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2333da,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x2333da,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x3c8d18{['afterInit'](){const _0xc3489=this['editor'];if(!_0xc3489['plugins']['has']('Style')||!_0xc3489['plugins']['has']('DataSchema'))return;const _0x84a36e=_0xc3489['plugins']['get']('TrackChangesEditing'),_0x21884a=_0xc3489['locale'],_0x5e9634=_0xc3489['config']['get']('style')||{},_0x83c7f8=_0xc3489['plugins']['get']('GeneralHtmlSupport'),_0x55be80=_0xc3489['plugins']['get']('StyleUtils')['normalizeConfig'](_0xc3489['plugins']['get']('DataSchema'),_0x5e9634['definitions']);_0x84a36e['enableDefaultAttributesIntegration']('style');const _0x16ee21=new Set();for(const _0x1c1e8e of _0x55be80['block']){const _0xe2c9d7=_0x83c7f8['getGhsAttributeNameForElement'](_0x1c1e8e['element']);_0x16ee21['add'](_0xe2c9d7);}const _0x3be1ce=new Set();for(const _0x29bde3 of _0x55be80['inline']){const _0xa8eca0=_0x83c7f8['getGhsAttributeNameForElement'](_0x29bde3['element']);_0x3be1ce['add'](_0xa8eca0);for(const _0x555448 of _0x29bde3['ghsAttributes'])_0x3be1ce['add'](_0x555448);}for(const _0x2e4fd7 of _0x16ee21)_0x84a36e['registerBlockAttribute'](_0x2e4fd7),_0x84a36e['descriptionFactory']['registerAttributeLabel'](_0x2e4fd7,c(_0x21884a,'FORMAT_STYLE'));for(const _0x430c47 of _0x3be1ce)_0x84a36e['registerInlineAttribute'](_0x430c47),_0x84a36e['descriptionFactory']['registerAttributeLabel'](_0x430c47,c(_0x21884a,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45f652=this['editor'],_0x5598d9=_0x45f652['locale'];_0x45f652['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2247c0=>{if('formatBlock'!=_0x2247c0['type']&&'formatInline'!=_0x2247c0['type'])return;const {data:_0x284676}=_0x2247c0;return _0x284676&&'style'===_0x284676['commandName']?_0x284676['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5598d9,'*Set\x20format:*\x20%0',_0x284676['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x5598d9,'*Remove\x20format:*\x20%0',_0x284676['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x3c8d18{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x459853){super(_0x459853),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1221b2=this['editor'],_0x3abf0a=_0x1221b2['model']['document']['selection'];if(!_0x1221b2['plugins']['has']('TableEditing'))return;const _0x1af75c=_0x1221b2['locale'],_0xe7dcfa=_0x1221b2['plugins']['get']('TrackChangesEditing'),_0x125989=_0x1221b2['plugins']['get']('TableUtils');_0xe7dcfa['descriptionFactory']['registerElementLabel']('table',_0x47ccee=>c(_0x1af75c,'ELEMENT_TABLE',_0x47ccee)),this['_setupColumnsRowsFixing'](),_0xe7dcfa['enableCommand']('insertTable'),_0xe7dcfa['enableCommand']('selectTableRow'),_0xe7dcfa['enableCommand']('selectTableColumn');for(const _0x1dc745 of['insertTableRowAbove','insertTableRowBelow']){const _0x5ad7a2=_0x1221b2['commands']['get'](_0x1dc745);_0xe7dcfa['enableCommand'](_0x1dc745,_0x23e20b=>{_0x1221b2['model']['change'](_0x20558c=>{_0x23e20b();const _0x30bf75='above'===_0x5ad7a2['order'],_0x2e57a8=_0x125989['getSelectionAffectedTableCells'](_0x3abf0a),_0x4c02b1=_0x125989['getRowIndexes'](_0x2e57a8),_0xf3724=_0x30bf75?_0x4c02b1['first']-0x1:_0x4c02b1['last']+0x1,_0x562867=_0x2e57a8[0x0]['findAncestor']('table'),_0x297886=_0x125989['createTableWalker'](_0x562867,{'startRow':_0xf3724,'endRow':_0xf3724}),_0x574ba6=Array['from'](_0x297886)['map'](_0x1a793f=>_0x20558c['createRangeOn'](_0x1a793f['cell']));_0xe7dcfa['markMultiRangeInsertion'](_0x574ba6,'tableRow');});});}for(const _0x397625 of['insertTableColumnLeft','insertTableColumnRight']){const _0x73838a=_0x1221b2['commands']['get'](_0x397625);_0xe7dcfa['enableCommand'](_0x397625,_0xfe67dd=>{_0x1221b2['model']['change'](_0x579d60=>{_0xfe67dd();const _0x42ebba='left'===_0x73838a['order'],_0x5a802a=_0x125989['getSelectionAffectedTableCells'](_0x3abf0a),_0x5b901b=_0x125989['getColumnIndexes'](_0x5a802a),_0x5c06e3=_0x42ebba?_0x5b901b['first']-0x1:_0x5b901b['last']+0x1,_0x1924b9=_0x5a802a[0x0]['findAncestor']('table'),_0x517374=_0x125989['createTableWalker'](_0x1924b9,{'startRow':0x0,'column':_0x5c06e3,'includeAllSlots':!0x1}),_0xefb44=Array['from'](_0x517374)['map'](_0x21902d=>_0x579d60['createRangeOn'](_0x21902d['cell']));_0xe7dcfa['markMultiRangeInsertion'](_0xefb44,'tableColumn');});});}for(const _0x36eba9 of['removeTableRow','removeTableColumn']){const _0x2f9a02=_0x36eba9['substr'](0xb),_0xb9e881=_0x2f9a02['toLowerCase'](),_0x2f2b6c=_0xb9e881['substr'](0x0,0x3)+'span',_0x5d6a91='table'+_0x2f9a02,_0x5161b4='min'+_0x2f9a02,_0x2a4c26='max'+_0x2f9a02;_0xe7dcfa['enableCommand'](_0x36eba9,()=>{_0x1221b2['model']['change'](_0x2a2445=>{const _0x4ef1bf=_0x125989['getSelectionAffectedTableCells'](_0x3abf0a),_0x1fd479=_0x4ef1bf[0x0]['findAncestor']('table');let _0x1982d5;if('removeTableRow'==_0x36eba9){const _0x4c2409=_0x125989['getRowIndexes'](_0x4ef1bf);_0x1982d5={'startRow':_0x4c2409['first'],'endRow':_0x4c2409['last'],'includeAllSlots':!0x0};}else{const _0x47f86e=_0x125989['getColumnIndexes'](_0x4ef1bf);_0x1982d5={'startColumn':_0x47f86e['first'],'endColumn':_0x47f86e['last'],'includeAllSlots':!0x0};}const _0x46532f=_0x125989['createTableWalker'](_0x1fd479,_0x1982d5),_0x517d5a=Array['from'](_0x46532f)['map'](({cell:_0x272eef})=>_0x272eef),_0x21cc1b=Ne(_0x517d5a['filter'](_0x1ae5e0=>_0x1ae5e0['hasAttribute'](_0x2f2b6c))),_0x36be0d=Ne(_0x517d5a['filter'](_0x12ccbb=>!_0x12ccbb['hasAttribute'](_0x2f2b6c)))['map'](_0x586314=>_0x2a2445['createRangeOn'](_0x586314)),_0x22f646=_0xe7dcfa['markMultiRangeDeletion'](_0x36be0d,_0x5d6a91);if(_0x22f646&&('tableRow'==_0x22f646['subType']||'tableColumn'==_0x22f646['subType'])){const _0x1e44d1=this['_getSuggestionCoords'](_0x22f646);for(const _0x2c24a2 of _0x21cc1b){const _0x2c1bc7=_0x2a2445['createRangeOn'](_0x2c24a2),_0x260c64=_0x125989['getCellLocation'](_0x2c24a2),_0x2aba0f=_0x2c24a2['getAttribute'](_0x2f2b6c)-0x1,_0x4e349d=_0x1e44d1[_0x5161b4],_0x288fdf=_0x1e44d1[_0x2a4c26];_0x4e349d<=_0x260c64[_0xb9e881]&&_0x260c64[_0xb9e881]+_0x2aba0f<=_0x288fdf&&_0x22f646['addRange'](_0x2c1bc7);}}});});}function _0xf30cc(_0x21b846){const _0x1d65f7=Array['from'](_0x3abf0a['getRanges']())['map'](_0x427b7d=>_0x4c7462['fromRange'](_0x427b7d));_0x1221b2['model']['change'](_0x39293d=>{const _0x37bbed=_0x39293d['batch'];_0x21b846=_0x21b846['filter'](_0x2853a7=>'$graveyard'!=_0x2853a7['root']['rootName']),_0x39293d['setSelection'](_0x21b846),_0x1221b2['commands']['get']('removeTableRow')['refresh'](),_0x1221b2['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1221b2['model']['enqueueChange'](()=>{_0x1221b2['model']['enqueueChange'](_0x37bbed,_0x4458a5=>{const _0x235275=_0x1d65f7['filter'](_0x283d0e=>'$graveyard'!=_0x283d0e['root']['rootName']);_0x235275['length']>0x0&&_0x4458a5['setSelection'](_0x235275);for(const _0x4d0947 of _0x1d65f7)_0x4d0947['detach']();});});});}function _0x1f0cd0(_0x5e68ff){_0x1221b2['model']['change'](_0x34060e=>{const _0x5307c0=Array['from'](_0x3abf0a['getRanges']())['map'](_0x1efa67=>_0x4c7462['fromRange'](_0x1efa67)),_0x514b63=[];for(const _0x2a140a of _0x5e68ff)for(const _0x1fba80 of _0x2a140a['getItems']({'shallow':!0x0}))_0x514b63['push'](_0x1fba80);for(const _0x203ba8 of _0x514b63)'$graveyard'!=_0x203ba8['root']['rootName']&&(_0x34060e['setSelection'](_0x34060e['createPositionAt'](_0x203ba8,0x0)),_0x1221b2['commands']['get']('removeTableColumn')['refresh'](),_0x1221b2['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2f57a7=_0x5307c0['filter'](_0x1bdc93=>'$graveyard'!=_0x1bdc93['root']['rootName']);_0x2f57a7['length']>0x0&&_0x34060e['setSelection'](_0x2f57a7);for(const _0xb3895d of _0x5307c0)_0xb3895d['detach']();});}function _0x3c47c8(_0x12e98f,_0x545df0){return _0x545df0['every'](_0xd63c29=>_0x12e98f['some'](_0x218277=>_0x218277['end']['isEqual'](_0xd63c29['start'])||_0xd63c29['end']['isEqual'](_0x218277['start'])));}function _0x3114d5(_0x103b95,_0x489887){return!_0x103b95['some'](_0x1aee58=>_0x489887['some'](_0x6c1a3c=>_0x1aee58['isIntersecting'](_0x6c1a3c)))&&_0x103b95['some'](_0x8afb75=>_0x489887['some'](_0x234632=>_0x8afb75['end']['isTouching'](_0x234632['start'])));}_0x1221b2['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x262ece,_0xa7356e,_0xd1420b)=>{if(!_0xd1420b['options']['showSuggestionHighlights'])return;const _0x31954e=_0xa7356e['item'];if(!_0x31954e)return;const _0x1140ab=_0xd1420b['mapper']['toViewElement'](_0x31954e);function _0x13d369(_0x266489){return Array['isArray'](_0x266489)?_0x266489:[_0x266489];}_0x1140ab&&'tableCell'===_0x31954e['name']&&_0x24cb58(_0x1140ab,_0xd1420b['writer'],(_0x3b6395,_0xfb9ac0,_0x5c0225)=>_0x5c0225['addClass'](_0x13d369(_0xfb9ac0['classes']),_0x3b6395),(_0x5a6f57,_0x478683,_0xf8fa8)=>_0xf8fa8['removeClass'](_0x13d369(_0x478683['classes']),_0x5a6f57));},{'priority':'highest'}),_0xe7dcfa['descriptionFactory']['registerDescriptionCallback'](_0x22cbcf=>{if('insertion'!=_0x22cbcf['type']&&'deletion'!=_0x22cbcf['type'])return;const _0x65d860=_0x22cbcf['getContainedElement']();if(null!=_0x65d860&&_0x65d860['is']('element','table')){if('insertion'==_0x22cbcf['type']){const _0xcb7709=_0x22cbcf['getItems']()['filter'](_0x3f2e87=>_0x3f2e87['is']('$textProxy'))['map'](_0x234717=>_0x234717['data']);if(_0xcb7709['length'])return{'type':'insertion','content':c(_0x1af75c,'*Insert:*\x20%0',c(_0x1af75c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xcb7709['join']('\x20')+'\x22'))};}if('deletion'==_0x22cbcf['type']){const _0x566916=_0x22cbcf['getItems']()['filter'](_0x27d382=>_0x27d382['is']('$textProxy'))['map'](_0x253b6c=>_0x253b6c['data']);if(_0x566916['length'])return{'type':'deletion','content':c(_0x1af75c,'*Remove:*\x20%0',c(_0x1af75c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x566916['join']('\x20')+'\x22'))};}}}),_0xe7dcfa['descriptionFactory']['registerDescriptionCallback'](_0x336a45=>{if('tableRow'==_0x336a45['subType']){const _0x31971d=_0x336a45['getItems']()['filter'](_0xd16462=>_0xd16462['is']('$textProxy'))['map'](_0xf07963=>_0xf07963['data']),_0x3ddbc2=this['_getSuggestionCoords'](_0x336a45),_0x580871=_0x3ddbc2['maxRow']-_0x3ddbc2['minRow']+0x1;if('insertion'==_0x336a45['type'])return _0x31971d['length']?{'type':'insertion','content':c(_0x1af75c,'*Insert:*\x20%0',c(_0x1af75c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x580871,'\x22'+_0x31971d['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x1af75c,'*Insert:*\x20%0',c(_0x1af75c,'ELEMENT_TABLE_ROW',_0x580871))};if('deletion'==_0x336a45['type'])return _0x31971d['length']?{'type':'deletion','content':c(_0x1af75c,'*Remove:*\x20%0',c(_0x1af75c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x580871,'\x22'+_0x31971d['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x1af75c,'*Remove:*\x20%0',c(_0x1af75c,'ELEMENT_TABLE_ROW',_0x580871))};}if('tableColumn'==_0x336a45['subType']){const _0x2f895b=_0x336a45['getItems']()['filter'](_0x42ed7c=>_0x42ed7c['is']('$textProxy'))['map'](_0x17fd5b=>_0x17fd5b['data']),_0x9dff82=this['_getSuggestionCoords'](_0x336a45),_0x332e2a=_0x9dff82['maxColumn']-_0x9dff82['minColumn']+0x1;if('insertion'==_0x336a45['type'])return _0x2f895b['length']?{'type':'insertion','content':c(_0x1af75c,'*Insert:*\x20%0',c(_0x1af75c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x332e2a,'\x22'+_0x2f895b['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x1af75c,'*Insert:*\x20%0',c(_0x1af75c,'ELEMENT_TABLE_COLUMN',_0x332e2a))};if('deletion'==_0x336a45['type'])return _0x2f895b['length']?{'type':'deletion','content':c(_0x1af75c,'*Remove:*\x20%0',c(_0x1af75c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x332e2a,'\x22'+_0x2f895b['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x1af75c,'*Remove:*\x20%0',c(_0x1af75c,'ELEMENT_TABLE_COLUMN',_0x332e2a))};}}),_0xe7dcfa['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xf30cc),_0xe7dcfa['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xf30cc),_0xe7dcfa['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1f0cd0),_0xe7dcfa['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1f0cd0),_0xe7dcfa['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3c47c8),_0xe7dcfa['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3c47c8),_0xe7dcfa['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3114d5),_0xe7dcfa['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3114d5);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4e2341=this['editor'],_0x584973=_0x4e2341['model']['document']['selection'];return(_0xab13bc,_0x2e083b)=>{_0x4e2341['model']['change'](_0x11e04a=>{const {commandName:_0x238c52,commandParams:_0x264369}=_0x2e083b;let _0x2cb9bf=_0xab13bc[0x0]['end']['nodeBefore'];_0x264369&&_0x264369[0x0]&&!0x1===_0x264369[0x0]['forceValue']&&(_0x2cb9bf=_0xab13bc[0x0]['start']['nodeAfter']);const _0x293b65=_0x11e04a['createRangeIn'](_0x2cb9bf);if('$graveyard'==_0x293b65['root']['rootName'])return;const _0x335b15=Array['from'](_0x584973['getRanges']())['map'](_0x4b7373=>_0x4c7462['fromRange'](_0x4b7373));_0x11e04a['setSelection'](_0x293b65),_0x4e2341['commands']['get'](_0x238c52)['refresh'](),_0x264369['push']({'forceDefaultExecution':!0x0}),_0x4e2341['execute'](_0x238c52,..._0x264369);const _0x55a454=_0x335b15['filter'](_0x108d77=>'$graveyard'!=_0x108d77['root']['rootName']);_0x55a454['length']>0x0&&_0x11e04a['setSelection'](_0x55a454);for(const _0x1c51cf of _0x335b15)_0x1c51cf['detach']();});};}['_getCoordsForCells'](_0x523032){const _0x3210fa=this['editor']['plugins']['get']('TableUtils');let _0x2bb1ab=Number['MAX_SAFE_INTEGER'],_0x499d96=Number['MIN_SAFE_INTEGER'],_0x3c4ae9=Number['MAX_SAFE_INTEGER'],_0x5750cd=Number['MIN_SAFE_INTEGER'];for(const _0x5e920d of _0x523032){if('$graveyard'==_0x5e920d['root']['rootName'])continue;const {row:_0x50bea6,column:_0x491fdf}=_0x3210fa['getCellLocation'](_0x5e920d),_0x410ca0=_0x5e920d['hasAttribute']('rowspan')?_0x5e920d['getAttribute']('rowspan')-0x1:0x0,_0x407a72=_0x5e920d['hasAttribute']('colspan')?_0x5e920d['getAttribute']('colspan')-0x1:0x0;_0x2bb1ab=_0x50bea6<_0x2bb1ab?_0x50bea6:_0x2bb1ab,_0x499d96=_0x50bea6+_0x410ca0>_0x499d96?_0x50bea6+_0x410ca0:_0x499d96,_0x3c4ae9=_0x491fdf<_0x3c4ae9?_0x491fdf:_0x3c4ae9,_0x5750cd=_0x491fdf+_0x407a72>_0x5750cd?_0x491fdf+_0x407a72:_0x5750cd;}return{'minRow':_0x2bb1ab,'maxRow':_0x499d96,'minColumn':_0x3c4ae9,'maxColumn':_0x5750cd};}['_setupColumnsRowsFixing'](){const _0x50b9a5=this['editor'],_0x54508b=_0x50b9a5['plugins']['get']('TrackChangesEditing'),_0x10f65a=_0x50b9a5['plugins']['get']('TableUtils');_0x50b9a5['model']['document']['on']('change:data',()=>{const _0x573df3=Array['from'](_0x50b9a5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2decc3,data:_0x443a24}of _0x573df3){const {group:_0x289494,id:_0xdcd936,subType:_0x13b82c}=_0x54508b['_splitMarkerName'](_0x2decc3);if('suggestion'!=_0x289494)continue;if(null!=_0x443a24['oldRange'])continue;const _0x482ca5=_0x54508b['getSuggestion'](_0xdcd936);this['_tablePostFixingSubtypes']['includes'](_0x13b82c)&&this['_tableSuggestions']['add'](_0x482ca5);}},{'priority':'low'});const _0x94a2ac=(_0x17839b,_0x207a4d)=>{let _0x2f683e=!0x1;const _0x534948=_0x207a4d['createRangeOn'](_0x17839b),_0x3d74ed=_0x17839b['findAncestor']('table'),_0x26078f=_0x10f65a['getCellLocation'](_0x17839b);for(const _0x395016 of this['_tableSuggestions']){const _0x54c400=_0x395016['subType'],_0x33ddc6=_0x54c400['startsWith']('tablePaste'),_0x4e1b29=_0x54c400['substr'](_0x33ddc6?0xa:0x5),_0x3bbd9f=_0x4e1b29['toLowerCase'](),_0x3b3719=_0x3bbd9f['substr'](0x0,0x3)+'span',_0x5ea2d='min'+_0x4e1b29,_0x200fda='max'+_0x4e1b29;if(!_0x395016['isInContent'])continue;if(_0x3d74ed!=_0x395016['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x395016['isIntersectingWithRange'](_0x534948))continue;const _0x28e717=_0x17839b['hasAttribute'](_0x3b3719)?_0x17839b['getAttribute'](_0x3b3719)-0x1:0x0,_0x111b3a=this['_getSuggestionCoords'](_0x395016),_0x7d27f1=_0x111b3a[_0x5ea2d],_0x220ff7=_0x111b3a[_0x200fda];_0x7d27f1<=_0x26078f[_0x3bbd9f]&&_0x26078f[_0x3bbd9f]+_0x28e717<=_0x220ff7&&(_0x395016['addRange'](_0x534948),_0x2f683e=!0x0);}return _0x2f683e;};_0x50b9a5['model']['document']['registerPostFixer'](_0x344e7c=>{let _0x210d02=!0x1;for(const _0xb89844 of _0x50b9a5['model']['document']['differ']['getChanges']())if('insert'==_0xb89844['type']){if('tableRow'==_0xb89844['name']){for(const _0xa6efbc of _0xb89844['position']['nodeAfter']['getChildren']())_0x210d02=_0x210d02||_0x94a2ac(_0xa6efbc,_0x344e7c);}else'tableCell'==_0xb89844['name']&&(_0x210d02=_0x210d02||_0x94a2ac(_0xb89844['position']['nodeAfter'],_0x344e7c));}return _0x210d02;});}['_getSuggestionCoords'](_0x10e1d4){return this['_getCoordsForCells'](_0x10e1d4['getRanges']()['map'](_0xfbf9b2=>_0xfbf9b2['start']['nodeAfter']));}}function Ne(_0x4c6dd6){return Array['from'](new Set(_0x4c6dd6)['values']());}class Nt extends _0x3c8d18{static get['requires'](){return[Ct];}['afterInit'](){const _0x1af606=this['editor'],_0x50a2df=_0x1af606['model']['document']['selection'],_0x119951=_0x1af606['locale'];if(!_0x1af606['plugins']['has']('TableEditing'))return;const _0x4ea916=_0x1af606['plugins']['get']('TrackChangesEditing'),_0x259cbc=_0x1af606['plugins']['get']('TableUtils'),_0x198215=_0x1af606['plugins']['get'](Ct);_0x198215['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4ea916['enableCommand']('mergeTableCells',()=>{const _0x36ed17=_0x259cbc['getSelectionAffectedTableCells'](_0x1af606['model']['document']['selection']);_0x1af606['model']['change'](()=>{_0x4ea916['markMultiRangeBlockFormat'](_0x36ed17,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1af606['commands']['get']('mergeTableCells')['on']('execute',(_0x5159ff,_0xb82f59)=>{_0x1af606['commands']['get']('trackChanges')['value']&&(_0xb82f59['length']>0x0&&_0xb82f59[_0xb82f59['length']-0x1]&&_0xb82f59[_0xb82f59['length']-0x1]['forceDefaultExecution']||_0x4ea916['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5159ff['stop']());},{'priority':'highest'});for(const _0x57fbdd of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1847b7=_0x1af606['commands']['get'](_0x57fbdd);_0x4ea916['enableCommand'](_0x57fbdd,()=>{const _0x57a995=_0x1af606['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xcdee5b=>_0xcdee5b['is']('element','tableCell')),_0x127138=_0x1847b7['value'];_0x1af606['model']['change'](()=>{_0x4ea916['markMultiRangeBlockFormat']([_0x57a995,_0x127138],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x12acf3 of['splitTableCellVertically','splitTableCellHorizontally']){const _0xe3a40d=_0x1af606['commands']['get'](_0x12acf3);_0x4ea916['enableCommand'](_0x12acf3,()=>{const _0x376073=_0x259cbc['getSelectionAffectedTableCells'](_0x1af606['model']['document']['selection'])[0x0],_0x3de71c=_0x376073['findAncestor']('table'),{column:_0x522f48,row:_0x3abcab}=_0x259cbc['getCellLocation'](_0x376073);let _0x279cad=[];if('horizontally'==_0xe3a40d['direction']){const _0x44afdb=_0x259cbc['createTableWalker'](_0x3de71c,{'startRow':_0x3abcab,'endRow':_0x3abcab,'includeAllSlots':!0x0});_0x279cad=Array['from'](_0x44afdb)['map'](_0x2836a7=>_0x2836a7['cell']);}else{const _0x41450d=_0x259cbc['createTableWalker'](_0x3de71c,{'column':_0x522f48,'includeAllSlots':!0x0});_0x279cad=Array['from'](_0x41450d)['map'](_0x1aac52=>_0x1aac52['cell']);}_0x1af606['model']['change'](_0x1dbf66=>{_0x4ea916['markBlockFormat'](_0x1dbf66['createRangeOn'](_0x376073),{'commandName':_0x12acf3,'commandParams':[]},_0x279cad,_0x12acf3);});});}_0x4ea916['descriptionFactory']['registerDescriptionCallback'](_0x101609=>{if('formatBlock'!=_0x101609['type']&&'formatInline'!=_0x101609['type'])return;const {data:_0x2e3835}=_0x101609;return _0x2e3835&&'mergeTableCells'==_0x2e3835['commandName']?{'type':'format','content':c(_0x119951,'*Merge\x20cells*')}:void 0x0;}),_0x4ea916['descriptionFactory']['registerDescriptionCallback'](_0x46d903=>{if('formatBlock'!=_0x46d903['type']&&'formatInline'!=_0x46d903['type'])return;const {data:_0x199100}=_0x46d903;return _0x199100?'splitTableCellVertically'==_0x199100['commandName']?{'type':'format','content':c(_0x119951,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x199100['commandName']?{'type':'format','content':c(_0x119951,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4dd02a=_0x198215['_acceptFormatSuggestionCallbackFactory']();for(const _0x15db46 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4ea916['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x15db46,'accept',_0x4dd02a);for(const _0xf3c41c of['splitTableCellVertically','splitTableCellHorizontally'])_0x4ea916['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xf3c41c,'accept',_0x4dd02a);_0x4ea916['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4cd957=>{_0x1af606['model']['change'](_0xc3c683=>{const _0x2f338e=Array['from'](_0x50a2df['getRanges']())['map'](_0xcac5d1=>_0x4c7462['fromRange'](_0xcac5d1));_0xc3c683['setSelection'](_0x4cd957),_0x1af606['commands']['get']('mergeTableCells')['refresh'](),_0x1af606['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5c3f72=_0x2f338e['filter'](_0x403c3a=>'$graveyard'!=_0x403c3a['root']['rootName']);_0x5c3f72['length']>0x0&&_0xc3c683['setSelection'](_0x5c3f72);for(const _0x67a943 of _0x2f338e)_0x67a943['detach']();});});for(const _0x17ff37 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2af1b6=_0x1af606['commands']['get'](_0x17ff37);_0x2af1b6['on']('set:isEnabled',(_0x412aca,_0x337d13,_0x2600c3)=>{if(_0x2600c3){const _0x10b600=_0x1af606['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x16c594=>_0x16c594['is']('element','tableCell'));this['_areMergableCells'](_0x2af1b6['value'],_0x10b600)||(_0x412aca['return']=!0x1,_0x412aca['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2aaff9=this['editor']['commands']['get']('mergeTableCells'),_0x38260d=this['editor']['plugins']['get']('TableUtils');if(!_0x2aaff9['isEnabled'])return!0x1;const _0x57feab=_0x38260d['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x334434 of _0x57feab)for(const _0x256305 of _0x57feab)if(_0x334434!=_0x256305&&!this['_areMergableCells'](_0x334434,_0x256305))return!0x1;return!0x0;}['_areMergableCells'](_0x4689c4,_0xc1e024){const _0x4719ab=this['editor']['plugins']['get']('TrackChangesEditing'),_0x145c88=this['editor']['model']['createRangeOn'](_0x4689c4),_0x34aa12=this['editor']['model']['createRangeOn'](_0xc1e024),_0x50f649=new Set(),_0x126cc9=new Set();for(const _0x1ecc82 of _0x4719ab['getSuggestions']())if(('insertion'==_0x1ecc82['type']||'deletion'==_0x1ecc82['type']||'mergeTableCells'==_0x1ecc82['subType'])&&_0x1ecc82['isInContent']){for(const _0x2e3b95 of _0x1ecc82['getRanges']())_0x2e3b95['containsRange'](_0x145c88,!0x0)&&_0x50f649['add'](_0x1ecc82['type']+':'+_0x1ecc82['author']['id']),_0x2e3b95['containsRange'](_0x34aa12,!0x0)&&_0x126cc9['add'](_0x1ecc82['type']+':'+_0x1ecc82['author']['id']);}if(_0x50f649['size']!=_0x126cc9['size'])return!0x1;for(const _0x18a730 of _0x50f649)if(!_0x126cc9['has'](_0x18a730))return!0x1;return!0x0;}}class Dt extends _0x3c8d18{static get['requires'](){return[Ct];}['afterInit'](){const _0x5820d0=this['editor'];if(!_0x5820d0['plugins']['has']('TableEditing'))return;const _0x107486=_0x5820d0['locale'],_0x181f02=_0x5820d0['plugins']['get']('TrackChangesEditing');_0x181f02['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x181f02['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x181f02['registerBlockAttribute']('headingRows'),_0x181f02['registerBlockAttribute']('headingColumns'),_0x181f02['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x107486,'FORMAT_HEADER_ROW')),_0x181f02['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x107486,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x482ad7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x222da0=this['editor']['plugins']['get']('TableUtils'),_0x59bcef=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x3653f3({showActiveMarker:_0x48fe43=!0x0,setDataAttribute:_0x35f462=!0x0}={}){return(_0x54582a,_0x279eba,_0x31ae0c)=>{const {type:_0x339230,id:_0x55fae5}=_0x482ad7['_splitMarkerName'](_0x279eba['markerName']),_0x3e64d4=_0x482ad7['getSuggestion'](_0x55fae5),_0x7caf47=_0x3e64d4['data'];if('formatBlock'!=_0x3e64d4['type']||!_0x7caf47||'setTableColumnHeader'!=_0x7caf47['commandName'])return;if(_0x279eba['item'])return void _0x54582a['stop']();if(!_0x31ae0c['consumable']['consume'](_0x279eba['markerRange'],_0x54582a['name']))return;const _0x35b7a5=_0x279eba['markerRange']['start']['nodeAfter'],_0x311872=_0x279eba['markerRange']['end']['nodeBefore'],_0x56cde3=_0x35b7a5['parent']['parent'],{column:_0x37f0ab}=_0x222da0['getCellLocation'](_0x35b7a5),{column:_0x2e5d71}=_0x222da0['getCellLocation'](_0x311872);for(let _0x302db2=_0x37f0ab;_0x302db2<=_0x2e5d71;_0x302db2++){const _0xf5e947=_0x222da0['createTableWalker'](_0x56cde3,{'column':_0x302db2,'includeAllSlots':!0x1});for(const _0x37752e of _0xf5e947){const _0x7a97f7=_0x37752e['cell'],_0x3ef70d=_0x31ae0c['mapper']['toViewElement'](_0x7a97f7);_0x31ae0c['writer']['addClass']('ck-suggestion-marker-'+_0x339230,_0x3ef70d),_0x35f462&&_0x31ae0c['writer']['setAttribute']('data-suggestion',_0x55fae5,_0x3ef70d),_0x31ae0c['mapper']['bindElementToMarker'](_0x3ef70d,_0x279eba['markerName']),_0x48fe43&&(_0x482ad7['activeMarkers']['includes'](_0x279eba['markerName'])?_0x31ae0c['writer']['addClass']('ck-suggestion-marker--active',_0x3ef70d):_0x31ae0c['writer']['removeClass']('ck-suggestion-marker--active',_0x3ef70d));}}};}_0x482ad7['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x59bcef),_0x482ad7['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x59bcef),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3653f3(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5f04a7,_0x4fcf0e,_0x47394b)=>{_0x47394b['options']['showSuggestionHighlights']&&_0x3653f3({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5f04a7,_0x4fcf0e,_0x47394b);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x463f61,_0x209968,_0x10d2cd)=>{const {type:_0xd35c20,id:_0xc57d5a}=_0x482ad7['_splitMarkerName'](_0x209968['markerName']),_0xdd3d1c=_0x482ad7['getSuggestion'](_0xc57d5a),_0xa5b6b2=_0xdd3d1c['data'];if('formatBlock'!=_0xdd3d1c['type']||!_0xa5b6b2||'setTableColumnHeader'!=_0xa5b6b2['commandName'])return;const _0x567c9c=_0x10d2cd['mapper']['markerNameToElements'](_0x209968['markerName']);if(_0x567c9c){for(const _0x100cb5 of _0x567c9c)_0x10d2cd['writer']['removeClass']('ck-suggestion-marker-'+_0xd35c20,_0x100cb5),_0x10d2cd['writer']['removeClass']('ck-suggestion-marker--active',_0x100cb5),_0x10d2cd['writer']['removeAttribute']('data-suggestion',_0x100cb5),_0x10d2cd['mapper']['unbindElementFromMarkerName'](_0x100cb5,_0x209968['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46f8d7=this['editor'],_0x45aeef=_0x46f8d7['locale'];function _0x1f377e(_0x2fcf6b){return{'type':'format','content':c(_0x45aeef,'*Format:*\x20%0',_0x2fcf6b)};}_0x46f8d7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x491e39=>{if('formatBlock'!=_0x491e39['type'])return;const {data:_0x5b1b20}=_0x491e39;if(_0x5b1b20){if('setTableRowHeader'==_0x5b1b20['commandName']){const _0x2e8f60=_0x5b1b20['commandParams'][0x0]['forceValue'];return _0x1f377e(c(_0x45aeef,_0x2e8f60?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5b1b20['commandName']){const _0x4d37c6=_0x5b1b20['commandParams'][0x0]['forceValue'];return _0x1f377e(c(_0x45aeef,_0x4d37c6?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x3c8d18{['afterInit'](){const _0x4b1efa=this['editor'],_0x2cfc26=_0x4b1efa['locale'],_0x5b56d9=_0x4b1efa['plugins']['get']('TrackChangesEditing');function _0x25b88a(_0x4971d1){return{'type':'format','content':''+c(_0x2cfc26,'*Set\x20table\x20type:*\x20%0',_0x4971d1)};}_0x4b1efa['plugins']['has']('TableLayout')&&(_0x5b56d9['enableCommand']('insertTableLayout'),_0x5b56d9['enableDefaultAttributesIntegration']('tableType'),_0x5b56d9['registerBlockAttribute']('tableType'),_0x5b56d9['descriptionFactory']['registerElementLabel'](_0x497221=>_0x497221['is']('element','table')&&'layout'===_0x497221['getAttribute']('tableType'),_0x32d157=>c(_0x2cfc26,'ELEMENT_LAYOUT_TABLE',_0x32d157)),_0x5b56d9['descriptionFactory']['registerDescriptionCallback'](_0x3e7891=>{const {data:_0x3c2103}=_0x3e7891;if(_0x3c2103&&'tableType'==_0x3c2103['key'])switch(_0x3c2103['newValue']){case'layout':return _0x25b88a(c(_0x2cfc26,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x25b88a(c(_0x2cfc26,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=Object['fromEntries'](xe['map'](_0x1d45b9=>[_0x1d45b9,null]));class $t extends _0x3c8d18{static get['requires'](){return[Ct];}['afterInit'](){const _0x13c983=this['editor'];if(!_0x13c983['plugins']['has']('TableClipboard'))return;const _0x11a280=_0x13c983['plugins']['get']('TrackChangesEditing'),_0x1e8b65=_0x13c983['plugins']['get']('TableUtils'),_0x36961c=_0x13c983['plugins']['get'](Ct),_0xa3ba62=_0x13c983['plugins']['get']('TableClipboard'),_0x2adc71=_0x13c983['plugins']['get']('TableSelection'),_0x30162d=_0x13c983['plugins']['get'](_0x3d6d80);_0x36961c['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x13c983['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x13c983['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5999ca=null,_0x4fbc11=!0x1;_0x30162d['on']('contentInsertion',(_0x4b11ac,_0x46e695)=>{_0x4fbc11='paste'===_0x46e695['method'];}),_0x13c983['model']['on']('insertContent',(_0x1df48e,_0xc28dc6)=>{if(!_0x4fbc11&&null===_0x2adc71['getSelectedTableCells']())return;const [_0x43e2f4,_0x281ade]=_0xc28dc6,_0x4301ad=_0xc28dc6[_0xc28dc6['length']-0x1];_0x4301ad&&_0x4301ad['forceDefaultExecution']||_0x11a280['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1fae0e,_0x42d5a6,_0x4ffaf7,_0x36f6d2,_0x44ed46){if(_0x42d5a6&&!_0x42d5a6['is']('documentSelection'))return!0x1;const _0xe08338=_0x44ed46['getTableIfOnlyTableInContent'](_0x1fae0e,_0x4ffaf7);if(!_0xe08338||!De(_0xe08338,void 0x0,_0x36f6d2))return!0x1;const _0x271df0=_0x36f6d2['getSelectionAffectedTableCells'](_0x4ffaf7['document']['selection']);if(!_0x271df0['length'])return!0x1;const _0xbe4053=_0x271df0[0x0]['findAncestor']('table'),_0x28a5e1=_0x36f6d2['getRowIndexes'](_0x271df0),_0x44ce9f=_0x36f6d2['getColumnIndexes'](_0x271df0),_0x377b36={'startRow':_0x28a5e1['first'],'endRow':_0x28a5e1['last'],'startColumn':_0x44ce9f['first'],'endColumn':_0x44ce9f['last']};return 0x1==_0x271df0['length']&&(_0x377b36['endRow']+=_0x36f6d2['getRows'](_0xe08338)-0x1,_0x377b36['endColumn']+=_0x36f6d2['getColumns'](_0xe08338)-0x1),De(_0xbe4053,_0x377b36,_0x36f6d2);}(_0x43e2f4,_0x281ade,_0x13c983['model'],_0x1e8b65,_0xa3ba62)&&(_0x1df48e['stop'](),_0x5999ca={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x13c983['model']['change'](()=>{_0x13c983['model']['insertContent'](_0xc28dc6[0x0],_0xc28dc6[0x1],_0xc28dc6[0x2],{'forceDefaultExecution':!0x0});const _0x5b7444=_0x37dcac(),{rowInsertionRanges:_0x2f7ee0,columnInsertionRanges:_0x11c9eb,insertionRanges:_0x3e59e5,deletionRanges:_0x56069f,cells:_0x444299}=_0x5999ca;_0x2f7ee0['length']&&_0x11a280['markMultiRangeInsertion'](_0x2f7ee0,'tablePasteRow',{'tablePasteChainId':_0x5b7444}),_0x11c9eb['length']&&_0x11a280['markMultiRangeInsertion'](_0x11c9eb,'tablePasteColumn',{'tablePasteChainId':_0x5b7444}),_0x3e59e5['length']&&(_0x11a280['markMultiRangeInsertion'](_0x3e59e5,'tablePaste',{'tablePasteChainId':_0x5b7444,'skipNestingCheck':!0x0}),_0x3e59e5['forEach'](_0x4ef709=>_0x4ef709['detach']?.())),_0x56069f['length']&&(_0x11a280['markMultiRangeDeletion'](_0x56069f,'tablePaste',{'tablePasteChainId':_0x5b7444,'skipNestingCheck':!0x0}),_0x56069f['forEach'](_0x5ab91d=>_0x5ab91d['detach']?.()));const _0x525b5c=_0x11a280['markMultiRangeBlockFormat'](_0x444299['map'](({element:_0xb8b010})=>_0xb8b010),{'formatGroupId':_0x37dcac()},[],'tablePasteCell',{'tablePasteChainId':_0x5b7444});if(_0x525b5c){const _0x4a4909=_0x525b5c['getMarkers'](),_0x10e481=[];for(const {element:_0xc2e768,attributes:_0x50ed5b}of _0x444299){if(!_0x50ed5b)continue;const _0x439df0=_0x13c983['model']['createRangeOn'](_0xc2e768),_0x44cadd=_0x4a4909['find'](_0x58de32=>_0x58de32['getRange']()['isEqual'](_0x439df0));_0x44cadd&&_0x10e481['push']([_0x44cadd['name'],_0x50ed5b]);}_0x10e481['length']&&_0x525b5c['setAttribute']('markerAttributes',Object['fromEntries'](_0x10e481));}_0x5999ca=null;}));},{'priority':_0x3e9730['high']+0xa}),_0x30162d['on']('contentInsertion',()=>{_0x4fbc11=!0x1;},{'priority':'lowest'}),_0x13c983['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2f64ba,_0x1203a0)=>{const [_0x4a61d3,_0xf0a719,,_0x59d866]=_0x1203a0;if(!_0x5999ca)return;_0x2f64ba['stop']();const _0x453e0d=_0x4a61d3['cell'],_0x5a13a5=_0xf0a719,_0x35531a=Ue(_0x453e0d),_0x438738=Ue(_0x5a13a5);_0x2f64ba['return']=_0x453e0d;let _0x14d3cd=null,_0x52b29f=null;if(_0x438738||_0x35531a){if(_0x35531a&&!_0x438738){_0x59d866['remove'](_0x453e0d['getChild'](0x0));for(const _0x34813f of Array['from'](_0x5a13a5['getChildren']()))_0x59d866['insert'](_0x34813f,_0x453e0d,'end');const _0x4e6e05=_0x5999ca['rowInsertionIndexes']['includes'](_0x4a61d3['row']),_0x3afd38=_0x5999ca['columnInsertionIndexes']['includes'](_0x4a61d3['column']);_0x4e6e05||_0x3afd38||(_0x14d3cd=_0x4c7462['fromRange'](_0x59d866['createRangeIn'](_0x453e0d)));}else _0x438738&&!_0x35531a&&(_0x52b29f=_0x59d866['createRangeIn'](_0x453e0d));}else{const _0x348c21=_0x59d866['createElement']('tableCellSuggestion'),_0x5a48c2=_0x59d866['createElement']('tableCellSuggestion');_0x59d866['wrap'](_0x59d866['createRangeIn'](_0x453e0d),_0x5a48c2),_0x59d866['insert'](_0x348c21,_0x453e0d,0x0);for(const _0x1a0143 of Array['from'](_0x5a13a5['getChildren']()))_0x59d866['insert'](_0x1a0143,_0x348c21,'end');_0x14d3cd=_0x4c7462['fromRange'](_0x59d866['createRangeOn'](_0x348c21)),_0x52b29f=_0x4c7462['fromRange'](_0x59d866['createRangeOn'](_0x5a48c2));}const _0xaa9625=Array['from'](_0x5a13a5['getAttributes']())['filter'](([_0x4f9d0f])=>xe['includes'](_0x4f9d0f));_0x5999ca['cells']['push']({'element':_0x453e0d,'attributes':_0xaa9625['length']?Object['fromEntries'](_0xaa9625):null}),_0x14d3cd&&_0x5999ca['insertionRanges']['push'](_0x14d3cd),_0x52b29f&&_0x5999ca['deletionRanges']['push'](_0x52b29f);},{'priority':'high'}),_0x1e8b65['on']('insertColumns',(_0x4a42fc,_0x3f6b8c)=>{const [_0x1ba2a5,_0x20fc92={}]=_0x3f6b8c;if(!_0x5999ca)return;const _0x464f7d=_0x20fc92['at']||0x0,_0x5b5c88=_0x20fc92['columns']||0x1;_0x5999ca['columnInsertionIndexes']=new Array(_0x5b5c88)['fill'](_0x464f7d)['map']((_0x2634ac,_0xdc4be8)=>_0x2634ac+_0xdc4be8);for(const {cell:_0x38868d}of _0x1e8b65['createTableWalker'](_0x1ba2a5,{'startColumn':_0x464f7d,'endColumn':_0x464f7d+_0x5b5c88-0x1}))_0x5999ca['columnInsertionRanges']['push'](_0x13c983['model']['createRangeOn'](_0x38868d));},{'priority':'low'}),_0x1e8b65['on']('insertRows',(_0x3b4e11,_0x5426ee)=>{const [_0x11636a,_0x327cb5={}]=_0x5426ee;if(!_0x5999ca)return;const _0x3b0359=_0x327cb5['at']||0x0,_0x2b0662=_0x327cb5['rows']||0x1;_0x5999ca['rowInsertionIndexes']=new Array(_0x2b0662)['fill'](_0x3b0359)['map']((_0x4c8670,_0xc1205f)=>_0x4c8670+_0xc1205f);for(const {cell:_0x1ad309}of _0x1e8b65['createTableWalker'](_0x11636a,{'startRow':_0x3b0359,'endRow':_0x3b0359+_0x2b0662-0x1}))_0x5999ca['rowInsertionRanges']['push'](_0x13c983['model']['createRangeOn'](_0x1ad309));},{'priority':'low'}),_0x11a280['descriptionFactory']['registerDescriptionCallback'](_0x2e4eb3=>{if(_0x2e4eb3['subType']&&_0x2e4eb3['subType']['startsWith']('tablePaste'))return _0x2e4eb3['previous']?{}:{'type':'insertion','content':c(_0x13c983['locale'],'*Replace\x20table\x20cells*')};});const _0x198949=()=>!0x1;for(const _0x54cc61 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x11a280['_suggestionFactory']['registerCustomCallback']('insertion',_0x54cc61,'join',_0x198949),_0x11a280['_suggestionFactory']['registerCustomCallback']('deletion',_0x54cc61,'join',_0x198949),_0x11a280['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x54cc61,'join',_0x198949);_0x11a280['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x198949),_0x11a280['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x13d22f,_0x5ab96d,_0x267bb6)=>{const _0x2cf286=_0x13d22f['map'](_0x57ee62=>_0x57ee62['getContainedElement']())['filter'](_0x306a15=>_0x306a15),_0x4ec46b=new Map(_0x2cf286['map'](_0x3e6d4c=>[_0x3e6d4c,null]));if(_0x5999ca){for(const {element:_0x3ecc4c,attributes:_0x244b9f}of _0x5999ca['cells'])_0x244b9f&&_0x4ec46b['set'](_0x3ecc4c,_0x244b9f);}else{if(_0x267bb6&&_0x267bb6['markerAttributes'])for(const [_0x1cafc9,_0x521d04]of Object['entries'](_0x267bb6['markerAttributes'])){const _0x58faa3=_0x13c983['model']['markers']['get'](_0x1cafc9),_0x57e59a=_0x58faa3?_0x58faa3['getRange']()['getContainedElement']():null;_0x57e59a&&_0x4ec46b['set'](_0x57e59a,_0x521d04);}}_0x13c983['model']['change'](_0x586453=>{for(const [_0x7a7696,_0x360a6d]of _0x4ec46b)_0x586453['setAttributes']({...Oe,..._0x360a6d},_0x7a7696);});});const _0x41a1ff=(_0x389679,_0x1eb415)=>{_0x11a280['_suggestionFactory']['registerCustomCallback'](_0x389679,'tablePaste',_0x1eb415,(_0x238dc0,_0x1ae854,_0xb58d5f)=>{_0x13c983['model']['change'](_0x385e4d=>{const _0x1eeefe=[];for(const _0x1de7b1 of _0x238dc0){const _0x1904c5=_0x1de7b1['start']['nodeAfter'];_0x1904c5['is']('element','tableCellSuggestion')&&_0x1eeefe['push'](_0x1904c5);}_0x11a280['_suggestionFactory']['getSuggestionCallback'](_0x389679,null,_0x1eb415)(_0x238dc0,_0x1ae854,_0xb58d5f);for(const _0x22d73b of _0x1eeefe)'$graveyard'!=_0x22d73b['root']['rootName']&&_0x385e4d['unwrap'](_0x22d73b);});});};_0x41a1ff('insertion','accept'),_0x41a1ff('insertion','discard'),_0x41a1ff('deletion','accept'),_0x41a1ff('deletion','discard'),_0x11a280['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x404caa=>{const _0x141545=_0x404caa['map'](_0x31efe0=>_0x31efe0['getContainedElement']()),_0x2c30c0=_0x141545[0x0]['findAncestor']('table'),{minRow:_0xa49314,maxRow:_0xda6c2b}=_0x36961c['_getCoordsForCells'](_0x141545);_0x1e8b65['removeRows'](_0x2c30c0,{'at':_0xa49314,'rows':_0xda6c2b-_0xa49314+0x1});}),_0x11a280['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x9c7cd=>{const _0x16b440=_0x9c7cd['map'](_0x5cffb1=>_0x5cffb1['getContainedElement']()),_0x451fb=_0x16b440[0x0]['findAncestor']('table'),{minColumn:_0xc63ebf,maxColumn:_0x181261}=_0x36961c['_getCoordsForCells'](_0x16b440);_0x1e8b65['removeColumns'](_0x451fb,{'at':_0xc63ebf,'columns':_0x181261-_0xc63ebf+0x1});});const _0x59f47f=(_0x3db49e,_0x577c07)=>{if(!_0x577c07['subType']||!_0x577c07['subType']['startsWith']('tablePaste'))return;const _0x2ca60a=_0x577c07['attributes']['tablePasteChainId'],_0x43d826=_0x11a280['getSuggestions']()['filter'](_0x700ab3=>_0x700ab3['isInContent']&&_0x700ab3['attributes']&&_0x700ab3['attributes']['tablePasteChainId']==_0x2ca60a);_0x43d826['length']&&_0x577c07['getAllAdjacentSuggestions']()['length']!=_0x43d826['length']&&_0x43d826['reduce']((_0x5cb09a,_0x69f379)=>(_0x5cb09a['next']=_0x69f379,_0x69f379['previous']=_0x5cb09a,_0x69f379));};function _0x5356aa(_0x1359aa,_0x3b452e=!0x0){const {id:_0x2aec06,authorId:_0x2b0156}=_0x11a280['_splitMarkerName'](_0x1359aa['markerName']),_0x88b2a2=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x24856d=_0x11a280['activeMarkers']['includes'](_0x1359aa['markerName']);return _0x24856d&&_0x88b2a2['push']('ck-suggestion-marker--active'),{'classes':_0x88b2a2,'attributes':{'data-suggestion':_0x2aec06,'data-author-id':_0x2b0156},'priority':_0x24856d&&_0x3b452e?0xbc2:0xbb8};}_0x11a280['on']('suggestionLoaded',_0x59f47f,{'priority':'high'}),_0x11a280['on']('suggestionUnloaded',_0x59f47f,{'priority':'high'}),_0x13c983['model']['document']['registerPostFixer'](()=>{let _0x57f397=!0x1;const _0x422c82=Array['from'](_0x13c983['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x24aed1,data:_0x549bf4}of _0x422c82){const {group:_0x12830c,type:_0x45fa0,id:_0x4db94c}=_0x11a280['_splitMarkerName'](_0x24aed1);if('suggestion'!=_0x12830c||'deletion'!=_0x45fa0||_0x549bf4['oldRange'])continue;if(!_0x11a280['hasSuggestion'](_0x4db94c))continue;const _0x3c56e9=_0x11a280['getSuggestion'](_0x4db94c)['getRanges'](),_0xd94f9a=_0x13c983['plugins']['get']('Users')['me'];for(const _0x46873e of _0x11a280['getSuggestions']()){if(!_0x46873e['isInContent']||_0x46873e['author']!=_0xd94f9a)continue;if('formatBlock'!=_0x46873e['type']||'tablePasteCell'!=_0x46873e['subType'])continue;if(_0x46873e['getRanges']()['every'](_0x565285=>_0x3c56e9['some'](_0x43db18=>_0x43db18['containsRange'](_0x565285,!0x0)))){for(const _0x13cae4 of _0x46873e['getAllAdjacentSuggestions']())_0x13cae4['isInContent']&&(_0x13cae4['discard'](),_0x57f397=!0x0);}}}return _0x57f397;}),_0x13c983['model']['document']['registerPostFixer'](_0x4ff103=>{const _0x3cada9=_0x13c983['commands']['get']('redo');if(!_0x3cada9||!_0x3cada9['_createdBatches']['has'](_0x4ff103['batch']))return!0x1;let _0x382881=!0x1;const _0x4e8603=_0x13c983['plugins']['get']('Users')['me'],_0x26c17d=_0x13c983['model']['document']['differ']['getChanges'](),_0x4224c6=Array['from'](_0x13c983['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x428733,data:_0x495ddd})=>{const {group:_0x307d22,subType:_0x246ecc,authorId:_0x12774b}=_0x11a280['_splitMarkerName'](_0x428733);return'suggestion'==_0x307d22&&'tablePaste'==_0x246ecc&&_0x12774b==_0x4e8603['id']&&!_0x495ddd['oldRange'];});for(const _0x1c3622 of _0x26c17d){if('insert'!=_0x1c3622['type']||'tableCellSuggestion'!=_0x1c3622['name']||0x1!=_0x1c3622['length'])continue;const _0x45aeb3=_0x4ff103['createRange'](_0x1c3622['position'],_0x1c3622['position']['getShiftedBy'](0x1));if(!_0x4224c6['find'](({data:_0x2b1937})=>_0x2b1937['newRange']['isEqual'](_0x45aeb3))){for(const {name:_0x48afe0,data:_0x422b13}of _0x4224c6)if(_0x45aeb3['containsRange'](_0x422b13['newRange'])){_0x4ff103['updateMarker'](_0x48afe0,{'range':_0x45aeb3}),_0x382881=!0x0;break;}}}return _0x382881;}),_0x13c983['model']['document']['registerPostFixer'](_0x6160f6=>{let _0x326c14=!0x1;const _0x2f7d55=_0x13c983['plugins']['get']('Users')['me'],_0x368744=_0x11a280['getSuggestions']()['filter'](_0x2ba7bc=>_0x2ba7bc['isInContent']&&_0x2ba7bc['author']==_0x2f7d55),_0x128b39=new Set(),_0x3cabe7=new Set();for(const _0x4df581 of _0x368744)if('tablePaste'==_0x4df581['subType'])for(const _0x9401f0 of _0x4df581['getMarkers']()){const _0x2ff5a8=_0x9401f0['getRange']()['getContainedElement']();if(_0x2ff5a8){if(_0x2ff5a8['is']('element','tableCellSuggestion')&&Ue(_0x2ff5a8)){_0x4df581['removeMarker'](_0x9401f0['name']),_0x128b39['add'](_0x2ff5a8),_0x326c14=!0x0;const _0x471cc5=_0x2ff5a8['nextSibling'],_0x16c852=_0x2ff5a8['previousSibling'],_0x50d33f=_0x471cc5&&_0x471cc5['is']('element','tableCellSuggestion'),_0x166b4e=_0x16c852&&_0x16c852['is']('element','tableCellSuggestion');_0x50d33f&&!_0x128b39['has'](_0x471cc5)&&_0x3cabe7['add'](_0x471cc5),_0x166b4e&&!_0x128b39['has'](_0x16c852)&&_0x3cabe7['add'](_0x16c852);}else _0x2ff5a8['is']('element','paragraph')&&_0x2ff5a8['isEmpty']&&(_0x4df581['removeMarker'](_0x9401f0['name']),_0x326c14=!0x0);}}else{if('tablePasteCell'==_0x4df581['subType']){if(!_0x4df581['attributes']||!_0x4df581['attributes']['tablePasteChainId'])continue;const _0x42202a=_0x4df581['attributes']['markerAttributes'];if(_0x42202a&&Object['keys'](_0x42202a)['length'])continue;const _0x1e6711=_0x4df581['attributes']['tablePasteChainId'];let _0xc3a5b7=!0x0,_0x10ca0a=!0x0;for(const _0x40888d of _0x368744)if(_0x40888d['subType']&&_0x40888d['subType']['startsWith']('tablePaste')){if(!_0x40888d['attributes']['tablePasteChainId']){_0x10ca0a=!0x1;break;}if(_0x40888d['id']!=_0x4df581['id']&&_0x40888d['attributes']['tablePasteChainId']==_0x1e6711){_0xc3a5b7=!0x1;break;}}_0x10ca0a&&_0xc3a5b7&&(_0x4df581['removeMarkers'](),_0x326c14=!0x0);}}for(const _0x3cc94c of _0x128b39)_0x6160f6['remove'](_0x3cc94c);for(const _0x148964 of _0x3cabe7)_0x6160f6['unwrap'](_0x148964);return _0x326c14;}),_0x13c983['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x431717=>_0x5356aa(_0x431717),'converterPriority':'high'}),_0x13c983['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x49d7e2,_0x350d5d)=>_0x350d5d['options']['showSuggestionHighlights']?_0x5356aa(_0x49d7e2,!0x1):null,'converterPriority':'high'});const _0x10483e=_0x13c983['editing']['view'];this['listenTo'](_0x10483e['document'],'clipboardOutput',(_0x1c8376,_0x2b3798)=>{const _0x3f5f5d=[];for(const _0x37d279 of _0x10483e['createRangeIn'](_0x2b3798['content'])['getItems']())_0x37d279['is']('element','suggestion-td')&&_0x3f5f5d['push'](_0x37d279);_0x10483e['change'](_0x401e2e=>{for(const _0x1c4654 of _0x3f5f5d)_0x401e2e['move'](_0x401e2e['createRangeIn'](_0x1c4654),_0x401e2e['createPositionBefore'](_0x1c4654)),_0x401e2e['remove'](_0x1c4654);});});}}function Ue(_0xaeb6be){if(_0xaeb6be['isEmpty'])return!0x0;const _0x88d936=_0xaeb6be['getChild'](0x0);return _0x88d936['is']('element','paragraph')&&_0x88d936['isEmpty'];}function De(_0x2e38dc,_0x5578b8={},_0x1711d4){for(const {isAnchor:_0x48e6fb,cellHeight:_0x47fd51,cellWidth:_0x800e01}of _0x1711d4['createTableWalker'](_0x2e38dc,{'includeAllSlots':!0x0,..._0x5578b8}))if(!_0x48e6fb||0x1!=_0x47fd51||0x1!=_0x800e01)return!0x1;return!0x0;}class Bt extends _0x3c8d18{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3f077b=this['editor']['plugins']['get']('TrackChangesEditing');_0x3f077b['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3f077b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3f077b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3f077b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3f077b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3f077b['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4b7cd9,_0x1dd36){const _0xe672fc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x341118=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3fbf1c=_0x1dd36['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4628d6=_0x341118['getColumnGroupElement'](_0x3fbf1c);let _0x2309db=_0x4628d6?_0x341118['getTableColumnsWidths'](_0x4628d6):null,_0x4aa73c=_0x3fbf1c['getAttribute']('tableWidth')||null;const _0x282d17=_0x1dd36['tableWidth']||_0x4aa73c,_0x25e37e=_0x1dd36['columnWidths']||_0x2309db,_0x3ac882=this['editor']['plugins']['get']('Users')['me'];for(const _0x1c7d02 of _0xe672fc['getSuggestions']()){const _0x3c317f=_0x1c7d02['getContainedElement']();if('resizeTable'===_0x1c7d02['subType']&&_0x3c317f===_0x3fbf1c){_0x1c7d02['author']!==_0x3ac882&&_0x1c7d02['discard']();const _0x37e3b2=_0x1c7d02['data']['commandParams'];_0x4aa73c=_0x37e3b2[0x0]['tableWidth'],_0x2309db=_0x37e3b2[0x0]['columnWidths'];break;}}_0x4b7cd9({'table':_0x3fbf1c,'tableWidth':_0x282d17,'columnWidths':_0x25e37e}),_0xe672fc['markBlockFormat'](_0x3fbf1c,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4aa73c,'columnWidths':_0x2309db}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x380c04){if('formatBlock'!=_0x380c04['type']&&'formatInline'!=_0x380c04['type'])return;const {data:_0x1e6d80}=_0x380c04;if(_0x1e6d80&&'resizeTable'===_0x1e6d80['formatGroupId']){const _0x5cb947='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x5cb947)};}}}class Ot extends _0x3c8d18{['afterInit'](){const _0xda5072=this['editor'];_0xda5072['plugins']['has']('Template')&&_0xda5072['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x3c8d18{['afterInit'](){const _0x4dec4a=this['editor'];if(!_0x4dec4a['commands']['get']('insertTableOfContents'))return;_0x4dec4a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1a768a=_0x4dec4a['plugins']['get']('TrackChangesEditing'),_0x33c7cf=_0x4dec4a['locale'];_0x1a768a['descriptionFactory']['registerElementLabel']('tableOfContents',_0x7f5add=>c(_0x33c7cf,'ELEMENT_TABLE_OF_CONTENTS',_0x7f5add));}}class xt extends _0x3c8d18{['afterInit'](){const _0x31b29b=this['editor'];if(!_0x31b29b['plugins']['has']('Title'))return;const _0x2c41ed=_0x31b29b['plugins']['get']('TrackChangesEditing');_0x2c41ed['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x31b29b['locale'],'ELEMENT_TITLE')),_0x31b29b['model']['document']['registerPostFixer'](_0x2ec457=>{let _0xd72af9=!0x1;const _0x2c37c7=Array['from'](_0x31b29b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x323d46,data:_0x2350e6}of _0x2c37c7){const {group:_0x2f33f8}=_0x2c41ed['_splitMarkerName'](_0x323d46);if('suggestion'!==_0x2f33f8||!_0x2350e6['newRange'])continue;const _0x1d665c=_0x2350e6['newRange'],_0x5b3e56=_0x1d665c['end']['nodeBefore'];if(!_0x5b3e56||!_0x5b3e56['is']('element','title-content'))continue;if(!_0x1d665c['start']['isTouching'](_0x1d665c['end']))continue;const _0x51619a=_0x31b29b['model']['schema']['getNearestSelectionRange'](_0x1d665c['end'],'forward');if(_0x51619a&&_0x51619a['isCollapsed']){const _0x5c6dca=_0x2ec457['createRange'](_0x1d665c['start'],_0x51619a['start']);_0x5c6dca['isEqual'](_0x1d665c)||(_0x2ec457['updateMarker'](_0x323d46,{'range':_0x5c6dca}),_0xd72af9=!0x0);}_0xd72af9||(_0x2ec457['removeMarker'](_0x323d46),_0xd72af9=!0x0);}return _0xd72af9;});}}class Tt extends _0x3c8d18{['afterInit'](){const _0x39abd6=this['editor'],_0x3a7f67=_0x39abd6['plugins']['get']('TrackChangesEditing');_0x39abd6['plugins']['has']('Uploadcare')&&(_0x3a7f67['enableCommand']('uploadcare'),_0x39abd6['plugins']['has']('UploadcareImageEdit')&&(_0x3a7f67['enableCommand']('uploadcareImageEdit'),_0x3a7f67['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3a7f67['registerBlockAttribute']('uploadcareImageId'),_0x3a7f67['descriptionFactory']['registerDescriptionCallback'](_0x34b0ec=>{if('attribute'!=_0x34b0ec['type'])return;const {data:_0x20c24b}=_0x34b0ec;return _0x20c24b&&'uploadcareImageId'==_0x20c24b['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x3c8d18{['afterInit'](){const _0x4cd2cb=this['editor'],_0x3d2bb4=_0x4cd2cb['plugins']['get']('TrackChangesEditing');_0x4cd2cb['plugins']['has']('UndoEditing')&&(_0x3d2bb4['enableCommand']('undo'),_0x3d2bb4['enableCommand']('redo'));}}class Ut extends _0x3c8d18{static get['requires'](){return[Ct];}['afterInit'](){const _0x4e6d0b=this['editor'];if(!_0x4e6d0b['plugins']['has']('TableCaptionEditing'))return;_0x4e6d0b['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x3c8d18{['tableProperties'];['tableCellProperties'];constructor(_0xe2d95d){super(_0xe2d95d),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 _0x4cc1c7=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x542211 of this['tableProperties'])_0x4cc1c7['enableCommand'](_0x542211,(_0x1546ae,_0x49dd21)=>{const _0x4bbba8=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x542211,[_0x4bbba8],this['tableProperties'],'tableProperties',_0x1546ae,_0x49dd21);});_0x4cc1c7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4cc1c7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4cc1c7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2f2678,_0x72f8a9)=>this['handleDiscardAction'](this['tableProperties'],_0x2f2678,_0x72f8a9)),_0x4cc1c7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xa83ebf of this['tableCellProperties'])_0x4cc1c7['enableCommand'](_0xa83ebf,(_0x2a0e6f,_0x4f2c60)=>{const _0x1dd633=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xa83ebf,_0x1dd633,this['tableCellProperties'],'tableCellProperties',_0x2a0e6f,_0x4f2c60);});_0x4cc1c7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4cc1c7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4cc1c7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x341fb0,_0x1e31db)=>this['handleDiscardAction'](this['tableCellProperties'],_0x341fb0,_0x1e31db)),_0x4cc1c7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4cc1c7['descriptionFactory']['registerDescriptionCallback'](_0x464eb7=>this['handleSuggestionDescription'](_0x464eb7));}['_handlePropertyChange'](_0x22a527,_0x27ec4f,_0xf4e24d,_0xa33e98,_0xd3c239,_0x1716b6){const _0x508b2d=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1716b6['batch'],()=>{for(const _0x496b07 of _0x27ec4f){if(this['_getSuggestion'](_0x496b07,_0xa33e98))_0xd3c239(_0x1716b6);else{const _0x2ff3a9={};for(const _0x346f6d of _0xf4e24d){const _0x23d999=_0x496b07['getAttribute'](_0x346f6d);void 0x0!==_0x23d999&&(_0x2ff3a9[_0x346f6d]=_0x23d999);}_0xd3c239(_0x1716b6),_0x508b2d['markBlockFormat'](_0x496b07,{'commandParams':[_0x2ff3a9]},[],_0xa33e98);}}});}['handleDiscardAction'](_0x56a581,_0x42cecd,_0xabc3a8){const _0x5f354d=_0x42cecd[0x0]['start']['nodeAfter'],_0x49c1c1=_0xabc3a8['commandParams'][0x0];this['editor']['model']['change'](_0x29dec7=>{for(const _0x540011 of _0x56a581)void 0x0!==_0x49c1c1[_0x540011]?_0x29dec7['setAttribute'](_0x540011,_0x49c1c1[_0x540011],_0x5f354d):_0x29dec7['removeAttribute'](_0x540011,_0x5f354d);});}['handleSuggestionDescription'](_0x307e1e){if(_0x307e1e['data'])switch(_0x307e1e['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x470708,_0x2c319b){const _0x3ecd12=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x277724 of _0x3ecd12['getSuggestions']({'skipNotAttached':!0x0})){const _0x3870c3=_0x277724['getContainedElement']();if(_0x277724['subType']===_0x2c319b&&_0x3870c3===_0x470708)return _0x277724;}return null;}}const u='$elementName';class p extends _0x3c8d18{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x16d403,_0xb80de1,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Rt,Vt,Ot,xt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4e799c){super(_0x4e799c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x14824e,_0xab3ba6,_0x5081a8,_0x3dbd66)=>{this['_model']['change'](()=>{for(const _0xe20b97 of[..._0x3dbd66,..._0x5081a8])this['_model']['markers']['has'](_0xe20b97)&&_0x4e799c['editing']['reconvertMarker'](_0xe20b97);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4e799c['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x4e799c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4e799c['config']['get']('trackChanges.trackFormatChanges'),_0x4e799c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4e799c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x4e799c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x397b5e=this['editor'],_0x4f318a=(_0x4d631f,_0x53a4e7)=>{if('attribute'!=_0x4d631f)return'ck-suggestion-marker-'+_0x4d631f;const _0x2b6311=_0x53a4e7['split']('|')[0x0];return this['_isBlockAttribute'](_0x2b6311)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x397b5e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5b1621=>{const {id:_0x405ec1,authorId:_0x210780,type:_0x45706c,subType:_0xe58c06}=this['_splitMarkerName'](_0x5b1621['markerName']),_0x410c6b=['ck-suggestion-marker',_0x4f318a(_0x45706c,_0xe58c06)];let _0xd4194d=0xbb8;return this['activeMarkers']['includes'](_0x5b1621['markerName'])&&(_0x410c6b['push']('ck-suggestion-marker--active'),_0xd4194d=0xbc2),'deletion'==_0x45706c&&(_0xd4194d+=0x5),{'classes':_0x410c6b,'attributes':{'data-suggestion':_0x405ec1,'data-author-id':_0x210780},'priority':_0xd4194d};}}),_0x397b5e['conversion']['for']('dataDowncast')['add'](_0x4c4a92=>{_0x4c4a92['on']('addMarker:suggestion',(_0x5a9630,_0xd2bb5f,_0x18b0c6)=>{if(!_0x18b0c6['options']['showSuggestionHighlights'])return;const _0x33ecec=_0xd2bb5f['item'];if(!_0x33ecec)return;const _0x5f31b2=_0x18b0c6['mapper']['toViewElement'](_0x33ecec);_0x397b5e['model']['schema']['isObject'](_0x33ecec)&&_0x5f31b2&&!_0x5f31b2['getCustomProperty']('widget')&&_0x5f31b2['is']('containerElement')&&_0x36284b(_0x5f31b2,_0x18b0c6['writer']);},{'priority':'high'});}),_0x397b5e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1e2c61,_0x2a8e0)=>{if(!_0x2a8e0['options']['showSuggestionHighlights'])return null;const {type:_0x2ae61f,subType:_0x202760}=this['_splitMarkerName'](_0x1e2c61['markerName']);return{'classes':['ck-suggestion-marker',_0x4f318a(_0x2ae61f,_0x202760)],'priority':0xbb8};}});const _0x1bf8cf=({showActiveMarkers:_0x1fa928=!0x0,isAttributeSuggestion:_0x183c74=!0x1}={})=>(_0x5aeac7,_0x68672a,_0x48c1de)=>{if(!_0x68672a['item'])return;const {id:_0x297abb,authorId:_0x45f054}=this['_splitMarkerName'](_0x68672a['markerName']);if(_0x183c74){const _0x39bb5d=this['_suggestions']['get'](_0x297abb),_0xbfd881=this['_getAttributeKey'](_0x39bb5d);if(!this['_isBlockAttribute'](_0xbfd881))return;}if(_0x68672a['item']['is']('selection'))return void _0x48c1de['consumable']['consume'](_0x68672a['item'],_0x5aeac7['name']);const _0x47f838=_0x48c1de['mapper']['toViewElement'](_0x68672a['item']);if(_0x68672a['item']['is']('element')&&_0x397b5e['model']['schema']['isBlock'](_0x68672a['item'])&&!_0x47f838['getCustomProperty']('addHighlight')){_0x48c1de['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x47f838),_0x48c1de['writer']['setAttribute']('data-suggestion',_0x297abb,_0x47f838),_0x48c1de['writer']['setAttribute']('data-author-id',_0x45f054,_0x47f838),_0x48c1de['mapper']['bindElementToMarker'](_0x47f838,_0x68672a['markerName']),_0x1fa928&&(this['activeMarkers']['includes'](_0x68672a['markerName'])?_0x48c1de['writer']['addClass']('ck-suggestion-marker--active',_0x47f838):_0x48c1de['writer']['removeClass']('ck-suggestion-marker--active',_0x47f838));for(const _0xebdaa4 of _0x397b5e['model']['createRangeIn'](_0x68672a['item'])['getItems']())_0x48c1de['consumable']['consume'](_0xebdaa4,_0x5aeac7['name']);_0x48c1de['consumable']['consume'](_0x68672a['item'],_0x5aeac7['name']);}};_0x397b5e['conversion']['for']('dataDowncast')['add'](_0x1fa7d6=>{_0x1fa7d6['on']('addMarker:suggestion:formatBlock',(_0x47a342,_0x4a56ac,_0x3f53b8)=>{_0x3f53b8['options']['showSuggestionHighlights']&&_0x1bf8cf({'showActiveMarkers':!0x1})(_0x47a342,_0x4a56ac,_0x3f53b8);},{'priority':'highest'});}),_0x397b5e['conversion']['for']('dataDowncast')['add'](_0x484879=>{_0x484879['on']('addMarker:suggestion:attribute',(_0x2a3fec,_0x3adf05,_0x2b8c51)=>{_0x2b8c51['options']['showSuggestionHighlights']&&_0x1bf8cf({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2a3fec,_0x3adf05,_0x2b8c51);},{'priority':'highest'});}),_0x397b5e['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2dfd7c,_0x336f80)=>_0x336f80['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x2dfd7c['substr'](0xb)}}),_0x397b5e['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x42dab9,{writer:_0x538b86})=>{let _0x575f78='suggestion:'+_0x42dab9['getAttribute']('suggestion-type')+':'+_0x42dab9['getAttribute']('id');return _0x42dab9['getAttribute']('marker-count')&&(_0x575f78+=':'+_0x42dab9['getAttribute']('marker-count')),_0x538b86['createElement']('$marker',{'data-name':_0x575f78});}}),_0x397b5e['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x397b5e['conversion']['for']('editingDowncast')['add'](_0x4039e5=>{_0x4039e5['on']('addMarker:suggestion:formatBlock',_0x1bf8cf(),{'priority':'high'});}),_0x397b5e['conversion']['for']('editingDowncast')['add'](_0x163286=>{_0x163286['on']('addMarker:suggestion:attribute',_0x1bf8cf({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x397b5e['conversion']['for']('editingDowncast')['add'](_0x43a277=>{_0x43a277['on']('removeMarker:suggestion:formatBlock',(_0x2d7a34,_0x1c85f3,_0x2172c8)=>{const _0x19e14a=_0x2172c8['mapper']['markerNameToElements'](_0x1c85f3['markerName']);if(_0x19e14a){for(const _0x5229c5 of _0x19e14a)_0x5229c5['getCustomProperty']('addHighlight')||(_0x2172c8['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5229c5),_0x2172c8['writer']['removeAttribute']('data-suggestion',_0x5229c5),_0x2172c8['writer']['removeAttribute']('data-author-id',_0x5229c5),_0x2172c8['mapper']['unbindElementFromMarkerName'](_0x5229c5,_0x1c85f3['markerName']));}},{'priority':'high'});}),_0x397b5e['conversion']['for']('editingDowncast')['add'](_0x461809=>{_0x461809['on']('removeMarker:suggestion:attribute',(_0x594676,_0x2142cb,_0x1195a4)=>{const _0x190ead=_0x1195a4['mapper']['markerNameToElements'](_0x2142cb['markerName']);if(!_0x190ead)return;const {id:_0x4208ed}=this['_splitMarkerName'](_0x2142cb['markerName']),_0x2612bc=this['_suggestions']['get'](_0x4208ed),_0xa0a7ac=this['_getAttributeKey'](_0x2612bc);if(this['_isBlockAttribute'](_0xa0a7ac)){for(const _0x3c5379 of _0x190ead)_0x3c5379['getCustomProperty']('addHighlight')||(_0x1195a4['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3c5379),_0x1195a4['writer']['removeAttribute']('data-suggestion',_0x3c5379),_0x1195a4['writer']['removeAttribute']('data-author-id',_0x3c5379),_0x1195a4['mapper']['unbindElementFromMarkerName'](_0x3c5379,_0x2142cb['markerName']));}},{'priority':'high'});}),_0x397b5e['model']['document']['registerPostFixer'](_0x315f2e=>{let _0x146214=!0x1;const _0x418ee1=Array['from'](_0x397b5e['model']['document']['differ']['getChangedMarkers']()),_0x1af940=new Set();for(const {name:_0x900270,data:_0x3df66d}of _0x418ee1){const {group:_0x2ab129,type:_0x39ca4e,subType:_0x27b841,id:_0x4a7d19}=this['_splitMarkerName'](_0x900270);if('suggestion'!==_0x2ab129)continue;const _0x4b8ccb=this['_suggestions']['get'](_0x4a7d19);if(null!=_0x3df66d['newRange']){'formatInline'==_0x39ca4e&&(_0x146214=_0x146214||Jt(_0x3df66d['newRange'],_0x900270,_0x315f2e,_0x397b5e['model']['schema']));const _0x2bb92a='attribute'==_0x39ca4e&&this['_isBlockAttribute'](_0x27b841['split']('|')[0x0]);if(_0x3df66d['newRange']['isCollapsed']||'$graveyard'==_0x3df66d['newRange']['root']['rootName']||'formatBlock'==_0x39ca4e&&!Ht(_0x3df66d['newRange'])||_0x2bb92a&&!Ht(_0x3df66d['newRange'])||'deletion'==_0x39ca4e&&!(!Lt(_0x5d3d8f=_0x3df66d['newRange'])&&!function(_0x156f1a){return _0x156f1a['start']['parent']==_0x156f1a['end']['nodeBefore']&&_0x156f1a['start']['isAtEnd'];}(_0x5d3d8f)))_0x315f2e['removeMarker'](_0x900270),_0x146214=!0x0;else{if(!_0x4b8ccb||!_0x4b8ccb['isInContent'])continue;if(_0x3df66d['newRange']&&_0x3df66d['oldRange']&&_0x3df66d['newRange']['isEqual'](_0x3df66d['oldRange']))continue;_0x1af940['add'](_0x4b8ccb);}}}var _0x5d3d8f;return _0x1af940['size']>0x0&&(_0x146214=!!this['_joinWithAdjacentSuggestions'](_0x1af940)||_0x146214),_0x146214;}),_0x397b5e['model']['document']['registerPostFixer'](_0x2b068b=>{let _0x327afd=!0x1;for(const _0x22f75d of _0x397b5e['model']['document']['differ']['getChanges']())if('insert'==_0x22f75d['type'])for(const _0x50e437 of this['_suggestions']['values']()){if(_0x50e437['isMultiRange']||!_0x50e437['isInContent'])continue;const _0x28ff49='formatBlock'==_0x50e437['type'],_0x5abe18=this['_getAttributeKey'](_0x50e437),_0xf7d662=_0x5abe18&&this['_isBlockAttribute'](_0x5abe18);if(!_0x28ff49&&!_0xf7d662)continue;const _0x2329a5=_0x50e437['getFirstRange']();if(_0x2329a5['start']['parent']!=_0x2329a5['end']['parent']&&!_0x2329a5['end']['isAtEnd']){const _0xdd3fb8=_0x397b5e['model']['createPositionAt'](_0x2329a5['start']['nodeAfter'],'end'),_0x5e6d7f=_0x397b5e['model']['createRange'](_0x2329a5['start'],_0xdd3fb8);_0x2b068b['updateMarker'](_0x50e437['getFirstMarker'](),{'range':_0x5e6d7f}),_0x327afd=!0x0;}}return _0x327afd;}),_0x397b5e['model']['document']['registerPostFixer'](_0xc0b6b7=>this['_processAttributeChanges'](_0xc0b6b7)),_0x397b5e['model']['document']['registerPostFixer'](_0x3c42ea=>!_0x3c42ea['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3c42ea)),_0x397b5e['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x397b5e['model']['document']['on']('change:data',(_0x4ce5f9,_0x7f3413)=>{if(!_0x7f3413['isLocal']||_0x7f3413['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x20892b=_0x397b5e['model']['document']['differ']['getChanges']();if(0x0==_0x20892b['length'])return;const _0x27cb32=[],_0x1645c5=_0x20892b['filter'](_0x219d12=>'attribute'==_0x219d12['type']),_0x4cf9b6=_0x20892b['filter'](_0x4eaea7=>'insert'==_0x4eaea7['type']&&'$text'!=_0x4eaea7['name']);for(const _0x56d18f of _0x1645c5)this['_isRegisteredAttribute'](_0x56d18f['attributeKey'])&&_0x27cb32['push']({'key':_0x56d18f['attributeKey'],'newValue':_0x56d18f['attributeNewValue'],'oldValue':_0x56d18f['attributeOldValue'],'range':qt(_0x56d18f['range'],_0x397b5e['model'])});for(const _0x162fb0 of _0x4cf9b6){if('rename'!=_0x162fb0['action']&&'refresh'!=_0x162fb0['action'])continue;const _0x12f7b5=zt(_0x162fb0['position']['nodeAfter'],_0x397b5e['model']),_0x1acc9b=_0x162fb0['before'];'rename'==_0x162fb0['action']&&_0x27cb32['push']({'key':u,'newValue':_0x162fb0['name'],'oldValue':_0x1acc9b['name'],'range':_0x12f7b5});for(const [_0x10bbb0,_0x3f4d3c]of _0x1acc9b['attributes']){if(!this['_isRegisteredAttribute'](_0x10bbb0))continue;const _0x37cc19=_0x162fb0['attributes']['get'](_0x10bbb0);_0x3f4d3c!==_0x37cc19&&_0x27cb32['push']({'key':_0x10bbb0,'newValue':_0x37cc19,'oldValue':_0x3f4d3c,'range':_0x12f7b5});}for(const [_0x18c89e,_0x5c481]of _0x162fb0['attributes'])this['_isRegisteredAttribute'](_0x18c89e)&&(_0x1acc9b['attributes']['has'](_0x18c89e)||_0x27cb32['push']({'key':_0x18c89e,'newValue':_0x5c481,'oldValue':null,'range':_0x12f7b5}));}0x0!=_0x27cb32['length']&&_0x397b5e['model']['enqueueChange'](_0x7f3413,_0x2200fa=>{const _0x47c518=_0x37dcac();for(const {range:_0x5b7889,key:_0x29b859,oldValue:_0x1be71f,newValue:_0xb701ef}of _0x27cb32)this['markAttributeChange'](_0x5b7889,_0x29b859,_0x1be71f,_0xb701ef,{'groupId':_0x47c518});this['_reduceExistingSuggestions'](_0x2200fa,_0x27cb32);});},{'priority':'lowest'}),_0x397b5e['model']['markers']['on']('update:suggestion',(_0x4e8daa,_0xeac16d,_0x53b5f4)=>{if(null==_0x53b5f4){const {id:_0x27ff0}=this['_splitMarkerName'](_0xeac16d['name']),_0x69d465=this['_suggestions']['get'](_0x27ff0);_0x69d465&&_0x69d465['addMarkerName'](_0xeac16d['name']);}}),_0x397b5e['model']['document']['on']('change:data',()=>{const _0x1bac4d=Array['from'](_0x397b5e['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1acaa9=>'suggestion'===this['_splitMarkerName'](_0x1acaa9['name'])['group']);if(0x0===_0x1bac4d['length'])return;_0x1bac4d['sort']((_0x7fc9c4,_0x1edde7)=>{const _0x3c2682=_0x7fc9c4['data']['oldRange'],_0x4525fb=_0x1edde7['data']['oldRange'];return null===_0x3c2682&&null===_0x4525fb?0x0:null===_0x3c2682&&null!==_0x4525fb?-0x1:null!==_0x3c2682&&null===_0x4525fb?0x1:_0x3c2682['start']['isBefore'](_0x4525fb['start'])?-0x1:0x1;});const _0xba592d=new Set(),_0x497446=new Set();for(const {name:_0x4e2d42,data:_0x575643}of _0x1bac4d){const {id:_0xaa985f}=this['_splitMarkerName'](_0x4e2d42);if(null===_0x575643['oldRange']){const _0x1d90be=this['_handleNewSuggestionMarker'](_0x4e2d42);_0x497446['add'](_0x1d90be);}else{const _0x2d4e99=this['_suggestions']['get'](_0xaa985f);null!==_0x575643['newRange']||_0x2d4e99['isInContent']?(_0xba592d['add'](_0x2d4e99['head']),_0x497446['add'](_0x2d4e99)):this['_removeSuggestion'](_0x2d4e99);}}_0x497446['size']>0x0&&this['_refreshSuggestionsChain'](_0x497446);for(const _0x14e858 of _0xba592d)this['fire']('suggestionChanged',_0x14e858);}),_0x397b5e['model']['on']('applyOperation',(_0xd1a8c3,_0x78aeb4)=>{const _0x4e2c2c=_0x78aeb4[0x0];if(!this['_suggestions']['size'])return;if(!_0x4e2c2c['isDocumentOperation'])return;if(_0x4e2c2c['batch']['isUndo']||!_0x4e2c2c['batch']['isLocal'])return;let _0x367181,_0x462816;switch(_0x4e2c2c['type']){case'insert':_0x367181=_0x397b5e['model']['createPositionAt'](_0x4e2c2c['position']),_0x462816=_0x367181['getShiftedBy'](_0x4e2c2c['howMany']);break;case'split':_0x367181=_0x397b5e['model']['createPositionAt'](_0x4e2c2c['splitPosition']),_0x462816=_0x397b5e['model']['createPositionAt'](_0x4e2c2c['moveTargetPosition']);break;case'move':_0x367181=_0x397b5e['model']['createPositionAt'](_0x4e2c2c['targetPosition']),_0x462816=_0x367181['getShiftedBy'](_0x4e2c2c['howMany']);break;default:return;}const _0xfe10dc=_0x397b5e['model']['createRange'](_0x367181,_0x462816);_0x397b5e['model']['change'](()=>{for(const {suggestion:_0x197c62,meta:_0x2fed88}of this['_findSuggestions'](_0xfe10dc)){if(_0x197c62['isMultiRange'])continue;if('formatInline'==_0x197c62['type'])continue;const _0x238777=this['_getAttributeKey'](_0x197c62);if(_0x238777&&this['_isBlockAttribute'](_0x238777)&&'split'!=_0x4e2c2c['type'])continue;const _0x100a04=_0x197c62['data']&&_0x197c62['data']['multipleBlocks'];('formatBlock'!=_0x197c62['type']||'split'==_0x4e2c2c['type']&&!_0x100a04)&&(_0x2fed88['containsRangeInObject']||'insertion'==_0x197c62['type']&&_0x2fed88['isOwn']||_0x197c62['getFirstRange']()['containsRange'](_0xfe10dc)&&this['_breakSuggestionMarker'](_0x197c62,_0x367181,_0x462816));}});},{'priority':'lowest'}),_0x397b5e['model']['on']('deleteContent',(_0x2873e8,_0x202665)=>{const _0x5761de=_0x202665[0x0],_0x3cb028=_0x202665[0x1];if(_0x3cb028&&_0x3cb028['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5761de['isCollapsed'])return;const _0x52a949=_0x397b5e['model']['schema'],{start:_0x446946,end:_0xe582ee}=_0x5761de['getFirstRange'](),_0x5453d4=_0x446946['nodeAfter']&&_0x52a949['isLimit'](_0x446946['nodeAfter'])?null:_0x52a949['getNearestSelectionRange'](_0x446946,'forward'),_0x2d4044=_0xe582ee['nodeBefore']&&_0x52a949['isLimit'](_0xe582ee['nodeBefore'])?null:_0x52a949['getNearestSelectionRange'](_0xe582ee,'backward'),_0x1b7406=_0x397b5e['model']['createRange'](_0x5453d4?_0x5453d4['start']:_0x446946,_0x2d4044?_0x2d4044['end']:_0xe582ee);_0x397b5e['model']['change'](_0x5c986f=>{this['markDeletion'](_0x1b7406);const _0x25ac9a=_0x397b5e['model']['schema']['getNearestSelectionRange'](_0x1b7406['start']);_0x5761de['is']('documentSelection')?_0x5c986f['setSelection'](_0x25ac9a):_0x5761de['setTo'](_0x25ac9a);}),_0x2873e8['stop']();},{'priority':_0x3e9730['normal']+0xa}),_0x397b5e['model']['on']('insertContent',(_0x363c1d,_0x2f63da)=>{const _0x27409f=_0x2f63da[_0x2f63da['length']-0x1];_0x27409f&&_0x27409f['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x397b5e['model']['change'](()=>{let _0x4ed515=_0x397b5e['model']['insertContent'](_0x2f63da[0x0],_0x2f63da[0x1],_0x2f63da[0x2],{'forceDefaultExecution':!0x0});if(!_0x4ed515)return;_0x363c1d['return']=_0x4ed515['clone']();const _0x3f1fa6=_0x4ed515['end']['nodeBefore'],_0x17a57b=_0x397b5e['model']['schema'];_0x3f1fa6&&_0x17a57b['isBlock'](_0x3f1fa6)&&!_0x17a57b['isObject'](_0x3f1fa6)&&(_0x4ed515=_0x397b5e['model']['createRange'](_0x4ed515['start'],_0x397b5e['model']['createPositionAt'](_0x3f1fa6,'end'))),this['markInsertion'](_0x4ed515);}),_0x363c1d['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2917b7=new O(_0x397b5e,this['_suggestions']);_0x397b5e['commands']['add']('acceptSuggestion',_0x2917b7),this['enableCommand']('acceptSuggestion');const _0x5715fa=new R(_0x397b5e,this['_suggestions']);_0x397b5e['commands']['add']('discardSuggestion',_0x5715fa),this['enableCommand']('discardSuggestion'),_0x397b5e['commands']['add']('acceptAllSuggestions',new x(_0x397b5e,_0x2917b7,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x397b5e['commands']['add']('discardAllSuggestions',new x(_0x397b5e,_0x5715fa,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x397b5e['commands']['add']('acceptSelectedSuggestions',new E(_0x397b5e,_0x2917b7,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x397b5e['commands']['add']('discardSelectedSuggestions',new E(_0x397b5e,_0x5715fa,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5e7104=_0x397b5e['plugins']['get']('CommentsRepository');this['listenTo'](_0x5e7104,'addComment',(_0x559211,{threadId:_0x58922a})=>{const _0x404731=this['_suggestions']['get'](_0x58922a);_0x404731&&_0x404731['commentThread']&&0x1===_0x404731['commentThread']['length']&&this['_updateSuggestionData'](_0x58922a,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5e7104,'removeComment',(_0x32540b,{threadId:_0x170abb})=>{const _0x18e6b9=this['_suggestions']['get'](_0x170abb);_0x18e6b9&&_0x18e6b9['commentThread']&&!_0x18e6b9['commentThread']['length']&&this['_updateSuggestionData'](_0x170abb,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1e1da7){const _0x3b53a1=_0x32586e([0x57,0x50,0x45,0x5a,0x55,0x75,0x67,0x78,0x47,0x7a,0x59,0x4a,0x79,0x68,0x61,0x73,0x38,0x42,0x35,0x41,0x4f,0x6b,0x66,0x51,0x71,0x69,0x52,0x32,0x54,0x48,0x76,0x31,0x4d,0x39,0x56,0x64,0x33,0x49,0x58,0x53,0x63,0x44,0x65,0x72,0x6a,0x30,0x46,0x4c,0x6e,0x70,0x4b,0x34,0x74,0x62,0x36,0x6f,0x6d,0x37,0x6c,0x43,0x77,0x4e]),_0x21f4fe=0x94b3c42,_0x2e8327=0x94c5852^_0x21f4fe,_0x5a9541=window[_0x32586e([0x44,0x61,0x74,0x65])][_0x32586e([0x6e,0x6f,0x77])](),_0x35468e=_0x1e1da7[_0x32586e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x15fa56=new window[(_0x32586e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x371fc8=>{_0x35468e[_0x32586e([0x6f,0x6e,0x63,0x65])](_0x32586e([0x72,0x65,0x61,0x64,0x79]),_0x371fc8);}),_0x2c23b1={[_0x32586e([0x6b,0x74,0x79])]:_0x32586e([0x45,0x43]),[_0x32586e([0x75,0x73,0x65])]:_0x32586e([0x73,0x69,0x67]),[_0x32586e([0x63,0x72,0x76])]:_0x32586e([0x50,0x2d,0x32,0x35,0x36]),[_0x32586e([0x78])]:_0x32586e([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]),[_0x32586e([0x79])]:_0x32586e([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]),[_0x32586e([0x61,0x6c,0x67])]:_0x32586e([0x45,0x53,0x32,0x35,0x36])},_0x22aae4=_0x35468e[_0x32586e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x32586e([0x67,0x65,0x74])](_0x32586e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5d734e(){let _0x1af121,_0x455025=null,_0x4823cd=null;try{if(_0x22aae4==_0x32586e([0x47,0x50,0x4c]))return _0x32586e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1af121=_0x1f15b2(),!_0x1af121)return _0x32586e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1af121[_0x32586e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4823cd=_0x4c203b(_0x1af121[_0x32586e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1af121[_0x32586e([0x6a,0x74,0x69])])),await _0x35293d()?_0xb7ccbe()?_0x532164()?_0x32586e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x590973()?(_0x1af121[_0x32586e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x32586e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x455025=_0x191578(_0x32586e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1af121[_0x32586e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x32586e([0x74,0x72,0x69,0x61,0x6c])&&(_0x455025=_0x191578(_0x32586e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x86bb23()):_0x32586e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x32586e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x32586e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x57ac21){return _0x32586e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x532164(){const _0x352a4f=[_0x32586e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x32586e([0x74,0x72,0x69,0x61,0x6c])][_0x32586e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1af121[_0x32586e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5a9541/0x3e8:0xe10*_0x2e8327;return _0x1af121[_0x32586e([0x65,0x78,0x70])]<_0x352a4f;}function _0xb7ccbe(){const _0x139ab2=_0x1af121[_0x32586e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x139ab2)return!0x1;if(_0x139ab2[_0x32586e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32586e([0x2a])))return!0x0;if(_0x139ab2[_0x32586e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32586e([0x54,0x43])))return!0x0;if(_0x139ab2[_0x32586e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32586e([0x52,0x54,0x43]))){if(_0x27c6e7())return!0x0;if(_0x23b4fa()||_0x5dffa6())return!0x0;}return!0x1;}function _0x590973(){const _0x3cbfdd=_0x1af121[_0x32586e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3cbfdd||0x0==_0x3cbfdd[_0x32586e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x452c7a}=new URL(window[_0x32586e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3cbfdd[_0x32586e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x452c7a))return!0x0;const _0x512cc5=_0x452c7a[_0x32586e([0x73,0x70,0x6c,0x69,0x74])](_0x32586e([0x2e]));return _0x3cbfdd[_0x32586e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2ef219=>_0x2ef219[_0x32586e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32586e([0x2a])))[_0x32586e([0x6d,0x61,0x70])](_0x35429d=>_0x35429d[_0x32586e([0x73,0x70,0x6c,0x69,0x74])](_0x32586e([0x2e])))[_0x32586e([0x73,0x6f,0x6d,0x65])](_0x160c64=>_0x512cc5[_0x32586e([0x65,0x76,0x65,0x72,0x79])]((_0x40917c,_0x5cd396)=>_0x160c64[_0x5cd396]===_0x40917c||_0x160c64[_0x5cd396]===_0x32586e([0x2a])));}function _0x86bb23(){return _0x455025&&_0x4823cd?new window[(_0x32586e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5036ba,_0xbdb276)=>{_0x455025[_0x32586e([0x74,0x68,0x65,0x6e])](_0x5036ba,_0xbdb276),_0x4823cd[_0x32586e([0x74,0x68,0x65,0x6e])](_0x5a6bc0=>{_0x5a6bc0!=_0x32586e([0x56,0x61,0x6c,0x69,0x64])&&_0x5036ba(_0x5a6bc0);},_0xbdb276);}):_0x455025||_0x4823cd||_0x32586e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4c203b(_0x36bfea,_0x4f57b5){return new window[(_0x32586e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x468ecd=>{if(_0x2a90a4())return _0x468ecd(_0x32586e([0x56,0x61,0x6c,0x69,0x64]));_0x377c41(),_0x35468e[_0x32586e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x32586e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1c2023=!0x1;const _0xf2fba0=_0x37dcac();function _0xa7652c(_0x2bd60d){return!!_0x2bd60d&&(typeof _0x2bd60d===_0x32586e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2bd60d===_0x32586e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2bd60d[_0x32586e([0x74,0x68,0x65,0x6e])]===_0x32586e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2bd60d[_0x32586e([0x63,0x61,0x74,0x63,0x68])]===_0x32586e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x480e5b(_0x2d3726){_0x41499b(_0x2d3726)[_0x32586e([0x74,0x68,0x65,0x6e])](_0x52cee9=>{if(!_0x52cee9||_0x52cee9[_0x32586e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x32586e([0x6f,0x6b]))return _0x32586e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1338f0(_0x75d2ae(_0xf2fba0+_0x4f57b5))!=_0x52cee9[_0x32586e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x32586e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x32586e([0x56,0x61,0x6c,0x69,0x64]);})[_0x32586e([0x74,0x68,0x65,0x6e])](_0x68343f=>(_0x56fb69(),_0x68343f),()=>{const _0x2a3b8b=_0x5a2535();return null==_0x2a3b8b?(_0x56fb69(),_0x32586e([0x56,0x61,0x6c,0x69,0x64])):_0x32586e(_0x5a9541-_0x2a3b8b>(0x2d47b842^_0x21f4fe)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x32586e([0x74,0x68,0x65,0x6e])](_0x468ecd)[_0x32586e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x468ecd(_0x32586e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x132925=0x97dd2c2^_0x21f4fe;function _0x56fb69(){const _0x472d37=_0x32586e([0x6c,0x6c,0x63,0x74,0x2d])+_0x1338f0(_0x75d2ae(_0x36bfea)),_0x49d7d7=_0x43cdb9(_0x1338f0(window[_0x32586e([0x4d,0x61,0x74,0x68])][_0x32586e([0x63,0x65,0x69,0x6c])](_0x5a9541/_0x132925)));window[_0x32586e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x32586e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x472d37,_0x49d7d7);}function _0x5a2535(){const _0x1755af=_0x32586e([0x6c,0x6c,0x63,0x74,0x2d])+_0x1338f0(_0x75d2ae(_0x36bfea)),_0x515bb3=window[_0x32586e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x32586e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1755af);return _0x515bb3?window[_0x32586e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x43cdb9(_0x515bb3),0x10)*_0x132925:null;}function _0x41499b(_0x2c7da5){return new window[(_0x32586e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5cd42a,_0x27f76b)=>{_0x2c7da5[_0x32586e([0x74,0x68,0x65,0x6e])](_0x5cd42a,_0x27f76b),window[_0x32586e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x27f76b,0x94ae882^_0x21f4fe);});}}_0x35468e[_0x32586e([0x6f,0x6e])](_0x32586e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xb14ccd,_0x4f8435)=>{if(_0x4f8435[0x0]!=_0x36bfea)return _0x468ecd(_0x32586e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4f8435[0x1]={..._0x4f8435[0x1],[_0x32586e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xf2fba0};},{[_0x32586e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x32586e([0x68,0x69,0x67,0x68])}),_0x35468e[_0x32586e([0x6f,0x6e])](_0x32586e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x16ef95=>{_0xa7652c(_0x16ef95[_0x32586e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1c2023=!0x0,_0x480e5b(_0x16ef95[_0x32586e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x32586e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x32586e([0x6c,0x6f,0x77])}),_0x15fa56[_0x32586e([0x74,0x68,0x65,0x6e])](()=>{_0x1c2023||_0x468ecd(_0x32586e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2a90a4(){return _0x35468e[_0x32586e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32586e([0x76,0x69,0x65,0x77])][_0x32586e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x32586e([0x61,0x75,0x74,0x6f]);}function _0x377c41(){_0x35468e[_0x32586e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32586e([0x76,0x69,0x65,0x77])][_0x32586e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x32586e([0x61,0x75,0x74,0x6f]);}}function _0x191578(_0x261a82){const _0x1c5e89=[new window[(_0x32586e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30bd9a=>setTimeout(_0x30bd9a,0x942028e^_0x21f4fe)),_0x15fa56[_0x32586e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x32586e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ef209=>{let _0x38f1c4=0x0;_0x35468e[_0x32586e([0x6d,0x6f,0x64,0x65,0x6c])][_0x32586e([0x6f,0x6e])](_0x32586e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x400259,_0x10ac67)=>{_0x10ac67[0x0][_0x32586e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x38f1c4++,_0x38f1c4==(0x94b3dba^_0x21f4fe)&&(_0x4ef209(),_0x400259[_0x32586e([0x6f,0x66,0x66])]());});}))];return window[_0x32586e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x32586e([0x72,0x61,0x63,0x65])](_0x1c5e89)[_0x32586e([0x74,0x68,0x65,0x6e])](()=>_0x261a82);}async function _0x580ccf(){await _0x15fa56,_0x35468e[_0x32586e([0x6d,0x6f,0x64,0x65,0x6c])][_0x32586e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x41edee,_0x35468e[_0x32586e([0x6d,0x6f,0x64,0x65,0x6c])][_0x32586e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x41edee,_0x35468e[_0x32586e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x32586e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x27c6e7(){return _0xb07c2f(_0x32586e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x486cec(_0x32586e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x32586e([0x73,0x74,0x61,0x74,0x65])]==_0x32586e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x23b4fa(){return _0xb07c2f(_0x32586e([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 _0x5dffa6(){return _0xb07c2f(_0x32586e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2c1f00(_0x4385a8){const _0x58ef9b=_0x47f135();_0x35468e[_0x58ef9b]=_0x32586e([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4385a8,_0x4385a8!=_0x32586e([0x56,0x61,0x6c,0x69,0x64])&&_0x580ccf();}function _0x47f135(){const _0x36b452=window[_0x32586e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x32586e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x32586e([0x6e,0x6f,0x77])]())[_0x32586e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x32586e([0x2e]),'');let _0x59003e=_0x32586e([0x57]);for(let _0x5e06e0=0x0;_0x5e06e0<_0x36b452[_0x32586e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5e06e0+=0x2){let _0x287daf=window[_0x32586e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x36b452[_0x32586e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e06e0,_0x5e06e0+0x2));_0x287daf>=_0x3b53a1[_0x32586e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x287daf-=_0x3b53a1[_0x32586e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x59003e+=_0x3b53a1[_0x287daf];}return _0x59003e;}function _0x1f15b2(){const _0x2bcbc6=_0x22aae4[_0x32586e([0x73,0x70,0x6c,0x69,0x74])](_0x32586e([0x2e]));if(0x3!=_0x2bcbc6[_0x32586e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x171ad2(_0x2bcbc6[0x1]);function _0x171ad2(_0x5783a2){const _0x26766c=_0x265e53(_0x5783a2);return _0x26766c&&_0x1c4a8e()?_0x26766c:null;function _0x1c4a8e(){const _0x30ab1d=_0x26766c[_0x32586e([0x6a,0x74,0x69])],_0x4d5f1c=window[_0x32586e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30ab1d[_0x32586e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x30ab1d[_0x32586e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x342224={..._0x26766c,[_0x32586e([0x6a,0x74,0x69])]:_0x30ab1d[_0x32586e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x30ab1d[_0x32586e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x342224[_0x32586e([0x76,0x63])],_0x75d2ae(_0x342224)==_0x4d5f1c;}}}async function _0x35293d(){let _0x5428ce=!0x0;try{const _0x314d9a=_0x22aae4[_0x32586e([0x73,0x70,0x6c,0x69,0x74])](_0x32586e([0x2e])),[_0x82d4e6,_0x5d27a9,_0xa6ad4d]=_0x314d9a;return _0x4a2584(_0x82d4e6),await _0x125472(_0x82d4e6,_0x5d27a9,_0xa6ad4d),_0x5428ce;}catch(_0x154075){return!0x1;}function _0x4a2584(_0x13d6c2){const _0x33158d=_0x265e53(_0x13d6c2);_0x33158d&&_0x33158d[_0x32586e([0x61,0x6c,0x67])]==_0x32586e([0x45,0x53,0x32,0x35,0x36])||(_0x5428ce=!0x1);}async function _0x125472(_0x40c7d1,_0x5f1bb3,_0x5eff5d){const _0x3f11f2=window[_0x32586e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x32586e([0x66,0x72,0x6f,0x6d])](_0x295349(_0x5eff5d),_0x240b41=>_0x240b41[_0x32586e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x34634d=new window[(_0x32586e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x32586e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x40c7d1+_0x32586e([0x2e])+_0x5f1bb3),_0x2fc435=window[_0x32586e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x32586e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2fc435)return;const _0x2fb713=await _0x2fc435[_0x32586e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x32586e([0x6a,0x77,0x6b]),_0x2c23b1,{[_0x32586e([0x6e,0x61,0x6d,0x65])]:_0x32586e([0x45,0x43,0x44,0x53,0x41]),[_0x32586e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x32586e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x32586e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2fc435[_0x32586e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x32586e([0x6e,0x61,0x6d,0x65])]:_0x32586e([0x45,0x43,0x44,0x53,0x41]),[_0x32586e([0x68,0x61,0x73,0x68])]:{[_0x32586e([0x6e,0x61,0x6d,0x65])]:_0x32586e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2fb713,_0x3f11f2,_0x34634d)||(_0x5428ce=!0x1);}}function _0x265e53(_0x143884){return _0x143884[_0x32586e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x32586e([0x65,0x79]))?JSON[_0x32586e([0x70,0x61,0x72,0x73,0x65])](_0x295349(_0x143884)):null;}function _0x295349(_0x33c79f){return window[_0x32586e([0x61,0x74,0x6f,0x62])](_0x33c79f[_0x32586e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x32586e([0x2b]))[_0x32586e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x32586e([0x2f])));}function _0x75d2ae(_0x3ca2a1){let _0xc2c962=0x1505;function _0x529fca(_0x38f858){for(let _0x3ab251=0x0;_0x3ab251<_0x38f858[_0x32586e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ab251++){const _0x39047e=_0x38f858[_0x32586e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3ab251);_0xc2c962=(_0xc2c962<<0x5)+_0xc2c962+_0x39047e,_0xc2c962&=_0xc2c962;}}function _0x5c3b95(_0x29173f){Array[_0x32586e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x29173f)?_0x29173f[_0x32586e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5c3b95):_0x29173f&&typeof _0x29173f==_0x32586e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x32586e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x29173f)[_0x32586e([0x73,0x6f,0x72,0x74])]()[_0x32586e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x25253a,_0x3d716f])=>{_0x529fca(_0x25253a),_0x5c3b95(_0x3d716f);}):_0x529fca(window[_0x32586e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x29173f));}return _0x5c3b95(_0x3ca2a1),_0xc2c962>>>0x0;}function _0x1338f0(_0x485963){return _0x485963[_0x32586e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x32586e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x32586e([0x30]));}function _0x43cdb9(_0x1a00dc){return _0x1a00dc[_0x32586e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x32586e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x32586e([0x6a,0x6f,0x69,0x6e])]('');}function _0xb07c2f(_0x5b6806){return _0x35468e[_0x32586e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x32586e([0x68,0x61,0x73])](_0x5b6806);}function _0x486cec(_0x2fdaa3){return _0x35468e[_0x32586e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x32586e([0x67,0x65,0x74])](_0x2fdaa3);}function _0x41edee(){}function _0x32586e(_0xc375ed){return _0xc375ed['map'](_0x2d151e=>String['fromCharCode'](_0x2d151e))['join']('');}_0x2c1f00(await _0x5d734e());}(this);}set['adapter'](_0x20bd17){if(this['_adapter'])throw new _0x52b81e('track-changes-adapter-already-set',this);this['_adapter']=_0x20bd17;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x6e8c38=!0x1,toJSON:_0x6b1e53=!0x1}={}){const _0x11a6b2=[];for(const _0x4bfd72 of this['_suggestions']['values']())_0x6e8c38&&!_0x4bfd72['isInContent']||_0x11a6b2['push'](_0x4bfd72);return _0x6b1e53?_0x11a6b2['map'](_0x28c5f2=>_0x28c5f2['toJSON']()):_0x11a6b2;}['getSuggestion'](_0x1b0504){const _0x477c1b=this['_suggestions']['get'](_0x1b0504);if(!_0x477c1b)throw new _0x52b81e('track-changes-suggestion-not-found',this);return _0x477c1b;}['hasSuggestion'](_0x314c8d){return this['_suggestions']['has'](_0x314c8d);}['addSuggestionData'](_0x235a07){const {authorId:_0x5c5f08,id:_0x46900d,attributes:_0x5bc209}=_0x235a07,[_0x451742,_0x43f214]=_0x235a07['type']['split'](':'),_0x1c8504=this['_suggestions']['get'](_0x46900d)||this['_createSuggestion'](_0x451742,_0x43f214,_0x46900d,_0x5c5f08,_0x5bc209);if(this['_addThreadToSuggestion'](_0x1c8504),this['_checkSuggestionCorrectness'](_0x1c8504,_0x451742,_0x43f214||null,_0x5c5f08),_0x1c8504['createdAt']=_0x235a07['createdAt'],_0x1c8504['_isDataLoaded']=!0x0,_0x5bc209&&_0x5bc209['@external']){const _0x334a84=_0x5bc209['@external'],_0x3679b1=this['_getExternalAuthor'](_0x334a84['authorName']);_0x1c8504['authoredAt']=_0x334a84['createdAt'],_0x1c8504['author']=_0x3679b1,_0x1c8504['isExternal']=!0x0;}else _0x1c8504['authoredAt']=_0x235a07['createdAt'];switch(_0x235a07['data']&&(_0x1c8504['data']=_0x235a07['data']),_0x235a07['attributes']&&(_0x1c8504['attributes']=_0x235a07['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1c8504['_saved']=!0x0),this['_suggestionState']['get'](_0x1c8504)){case'notReady':this['_suggestionState']['set'](_0x1c8504,'dataReady');break;case'markerReady':_0x1c8504['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1c8504])),this['_refreshSuggestionsChain'](new Set([_0x1c8504])),this['_suggestionState']['set'](_0x1c8504,'ready'),this['fire']('suggestionLoaded',_0x1c8504)):this['_suggestionState']['set'](_0x1c8504,'removed');}return _0x1c8504;}['acceptSuggestion'](_0xf70eb9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4539fd of _0xf70eb9['getAllAdjacentSuggestions']())_0x4539fd['accept']();});});}['discardSuggestion'](_0x4c834c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1cf65d of _0x4c834c['getAllAdjacentSuggestions']())_0x1cf65d['discard']();});});}['enableCommand'](_0x31e5b8,_0x561d6e){const _0x517165=this['editor']['commands']['get'](_0x31e5b8);if(!_0x517165)throw new _0x52b81e('track-changes-command-not-found',this,{'commandName':_0x31e5b8});if(this['_enabledCommands']['has'](_0x517165))throw new _0x52b81e('track-changes-enable-command-twice',this,{'commandName':_0x31e5b8});this['_enabledCommands']['add'](_0x517165),_0x561d6e&&_0x517165['on']('execute',(_0x25d571,_0xa0c995)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0xa0c995['length']>0x0&&_0xa0c995[_0xa0c995['length']-0x1]&&_0xa0c995[_0xa0c995['length']-0x1]['forceDefaultExecution']?_0xa0c995['pop']():(_0x25d571['return']=_0x561d6e((..._0xe5eaa6)=>_0x517165['execute'](..._0xe5eaa6,{'forceDefaultExecution':!0x0}),..._0xa0c995),_0x25d571['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x352603){let _0x469cd4,_0x1f1d0;const _0x328dd2=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x469cd4=_0x352603();}catch(_0x2e5117){_0x1f1d0=_0x2e5117;}return _0x328dd2||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1f1d0&&_0x52b81e['rethrowUnexpectedError'](_0x1f1d0,this),_0x469cd4;}['markInsertion'](_0x39285d,_0x7dbba7=null,_0x335431={}){if(_0x39285d['isCollapsed'])return null;const _0x3efbc7=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1ee908,meta:_0x275323}of this['_findSuggestions'](_0x39285d,'insertion'))if(_0x275323['isOwn']){if(!_0x275323['isNextTo']){if(_0x275323['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x1ee908,_0x335431))continue;return _0x1ee908;}if(Xt(_0x1ee908,_0x335431))return _0x1ee908;this['_breakSuggestionMarker'](_0x1ee908,_0x39285d['start'],_0x39285d['end']);break;}if(_0x7dbba7==_0x1ee908['subType']&&Xt(_0x1ee908,_0x335431)){const _0x282c06=_0x1ee908['getFirstRange']();return _0x282c06['start']['isEqual'](_0x39285d['end'])?this['_setSuggestionRange'](_0x1ee908,this['_model']['createRange'](_0x39285d['start'],_0x282c06['end'])):this['_setSuggestionRange'](_0x1ee908,this['_model']['createRange'](_0x282c06['start'],_0x39285d['end'])),_0x1ee908;}}const _0x528740=_0x37dcac(),_0xda41c8=_0x3efbc7['id'],_0x9bb86d=_0x7dbba7?'insertion:'+_0x7dbba7:'insertion',_0x35c3ab=this['_setSuggestionData']({'id':_0x528740,'type':_0x9bb86d,'createdAt':new Date(),'authorId':_0xda41c8,'attributes':_0x335431});return this['_addSuggestionMarker'](_0x9bb86d,_0x528740,_0xda41c8,_0x39285d),_0x35c3ab;}['markMultiRangeInsertion'](_0x1fa135,_0x16ba88='multi',_0x2b9919={}){const _0x1b7130=this['editor']['plugins']['get']('Users')['me'],_0x2d09e2=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x16ba88,'join');for(const _0x2d43cb of this['getSuggestions']())if(_0x2d43cb['author']['id']==_0x1b7130['id']&&'insertion'==_0x2d43cb['type']&&_0x2d43cb['subType']==_0x16ba88&&Xt(_0x2d43cb,_0x2b9919)&&(_0x2d09e2(_0x2d43cb['getRanges'](),_0x1fa135)||_0x2d09e2(_0x1fa135,_0x2d43cb['getRanges']()))){for(const _0x38b18f of _0x1fa135)_0x2d43cb['addRange'](_0x38b18f);return _0x2d43cb;}for(const {suggestion:_0x42fd16,meta:_0x141d9b}of this['_findSuggestions'](_0x1fa135,'insertion')){if(!_0x141d9b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x141d9b['containsRangeInObject'])continue;if(!Xt(_0x42fd16,_0x2b9919))continue;let _0x9fbab0=!0x0;for(const _0x881a3a of _0x42fd16['getRanges']())for(const _0x59f4f1 of _0x1fa135)if(!_0x881a3a['containsRange'](_0x59f4f1)){_0x9fbab0=!0x1;break;}if(_0x9fbab0)return _0x42fd16;}const _0x1382c5=_0x37dcac(),_0x4a119b=_0x1b7130['id'],_0x10e3f8='insertion:'+_0x16ba88,_0x2de1d5=this['_setSuggestionData']({'id':_0x1382c5,'type':_0x10e3f8,'createdAt':new Date(),'authorId':_0x4a119b,'attributes':_0x2b9919});for(const _0x30e596 of _0x1fa135)this['_addSuggestionMarker'](_0x10e3f8,_0x1382c5,_0x4a119b,_0x30e596,o['getMultiRangeId']());return _0x2de1d5;}['markInlineFormat'](_0xd83d6a,_0x130c0f,_0x30bdd2=null,_0x31e574={}){if(_0x30bdd2=_0x30bdd2||Kt(_0x130c0f),_0xd83d6a['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x323cd0=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x30bdd2,'accept');return this['forceDefaultExecution'](()=>_0x323cd0([_0xd83d6a],_0x130c0f,_0x31e574)),null;}const _0x36bee8=this['editor']['plugins']['get']('Users')['me'],_0x113bb0=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4ed046,meta:_0x175583}of this['_findSuggestions'](_0xd83d6a,'insertion'))_0x175583['isOwn']&&!_0x175583['isInsideObject']&&_0x113bb0['push'](..._0x4ed046['getRanges']());}const _0x274448=function(_0x282bd2,_0x1ec667){const _0xe672c5=[];for(const _0x4ffad8 of _0x1ec667){const _0x4f1f33=_0x282bd2['getIntersection'](_0x4ffad8);_0x4f1f33&&_0xe672c5['push'](_0x4f1f33);}return _0xe672c5;}(_0xd83d6a,_0x113bb0),_0x4fe95e=function(_0x5d54e3,_0x48153c){const _0x3c1f69=[_0x5d54e3];for(const _0x41d230 of _0x48153c){let _0x561636=0x0;for(;_0x561636<_0x3c1f69['length'];){const _0x428791=_0x3c1f69[_0x561636]['getDifference'](_0x41d230);_0x3c1f69['splice'](_0x561636,0x1,..._0x428791),_0x561636+=_0x428791['length'];}}return _0x3c1f69;}(_0xd83d6a,_0x113bb0);_0x274448['length']&&this['_model']['change'](()=>{for(const _0x4e3d8a of _0x274448){const _0x958955=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x30bdd2,'accept');this['forceDefaultExecution'](()=>_0x958955([_0x4e3d8a],_0x130c0f,_0x31e574));}});for(const _0x238c89 of _0x4fe95e){let _0x5ecf99=null,_0x2333ed=_0x238c89['start'],_0x2af6ab=_0x238c89['end'];for(const {suggestion:_0x532384,meta:_0x2e0ad4}of this['_findSuggestions'](_0x238c89,'formatInline')){if(!_0x2e0ad4['isOwn'])continue;if(_0x532384['subType']!=_0x30bdd2)continue;if(!Xt(_0x532384,_0x31e574))continue;const _0x4ecf33=_0x532384['getFirstRange']();if(_0x4ecf33['containsRange'](_0x238c89,!0x0))return null;_0x2333ed=_0x2333ed['isBefore'](_0x4ecf33['start'])?_0x2333ed:_0x4ecf33['start'],_0x2af6ab=_0x2af6ab['isAfter'](_0x4ecf33['end'])?_0x2af6ab:_0x4ecf33['end'],_0x5ecf99?_0x4ecf33['start']['isBefore'](_0x5ecf99['getFirstRange']()['start'])?(_0x5ecf99['removeMarkers'](),_0x5ecf99=_0x532384):_0x532384['removeMarkers']():_0x5ecf99=_0x532384;}const _0x48dd8a=this['_model']['createRange'](_0x2333ed,_0x2af6ab);if(_0x5ecf99)this['_setSuggestionRange'](_0x5ecf99,_0x48dd8a);else{const _0x1ca013=_0x37dcac(),_0x16d1e0=_0x36bee8['id'];this['_setSuggestionData']({'id':_0x1ca013,'type':'formatInline:'+_0x30bdd2,'data':_0x130c0f,'createdAt':new Date(),'authorId':_0x16d1e0,'attributes':_0x31e574}),this['_addSuggestionMarker']('formatInline:'+_0x30bdd2,_0x1ca013,_0x16d1e0,_0x48dd8a);}}return null;}['markBlockFormat'](_0x229ef0,_0x2bb7c9,_0x19dac8=[],_0x503963=null,_0x1bcbc8={}){_0x2bb7c9['formatGroupId']||(_0x2bb7c9['formatGroupId']=_0x2bb7c9['commandName']),_0x2bb7c9['multipleBlocks']=_0x229ef0['is']('range'),_0x503963=_0x503963||Kt(_0x2bb7c9);const _0x2b3b4e=_0x19dac8['map'](_0x57680b=>zt(_0x57680b,this['_model'])),_0x229384=_0x229ef0['is']('range')?_0x229ef0:zt(_0x229ef0,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3838d9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x503963,'accept');return this['forceDefaultExecution'](()=>_0x3838d9([_0x229384],_0x2bb7c9,_0x1bcbc8)),null;}_0x2b3b4e['push'](_0x229384);let _0x362bb0=!0x0;for(const _0x53c225 of _0x2b3b4e)if(!this['_rangeIsInLocalUserInsertion'](_0x53c225)){_0x362bb0=!0x1;break;}if(_0x362bb0&&'always'!==this['_trackFormatChanges']){const _0xd111a9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x503963,'accept');return this['forceDefaultExecution'](()=>_0xd111a9([_0x229384],_0x2bb7c9,_0x1bcbc8)),null;}let _0x38fb28=null,_0x29cbf9=_0x229384['start'],_0x2b3daf=_0x229384['end'];for(const {suggestion:_0x44437c,meta:_0x18b844}of this['_findSuggestions'](_0x229384,'formatBlock')){if(!_0x18b844['isOwn'])continue;if(_0x18b844['isNextTo']||_0x18b844['containsRangeInObject']||_0x18b844['isInsideObject'])continue;if(_0x44437c['data']['formatGroupId']!=_0x2bb7c9['formatGroupId'])continue;if(!Xt(_0x44437c,_0x1bcbc8))continue;const _0x2f618e=_0x44437c['getFirstRange']();if(_0x44437c['subType']==_0x503963){if(_0x2f618e['containsRange'](_0x229384,!0x0))return null;_0x29cbf9=_0x29cbf9['isBefore'](_0x2f618e['start'])?_0x29cbf9:_0x2f618e['start'],_0x2b3daf=_0x2b3daf['isAfter'](_0x2f618e['end'])?_0x2b3daf:_0x2f618e['end'],_0x38fb28?_0x2f618e['start']['isBefore'](_0x38fb28['getFirstRange']()['start'])?(_0x38fb28['removeMarkers'](),_0x38fb28=_0x44437c):_0x44437c['removeMarkers']():_0x38fb28=_0x44437c;}else{const _0x1c93f1=_0x229384['getIntersection'](_0x2f618e);this['_cutOutSuggestionMarker'](_0x44437c,_0x1c93f1);}}const _0x47e7c1=this['editor']['plugins']['get']('Users')['me'],_0x262b0d=_0x37dcac(),_0x1c8906=_0x47e7c1['id'];if(_0x38fb28)return this['_setSuggestionRange'](_0x38fb28,this['_model']['createRange'](_0x29cbf9,_0x2b3daf)),_0x38fb28;{const _0x333644=this['_setSuggestionData']({'id':_0x262b0d,'type':'formatBlock:'+_0x503963,'data':_0x2bb7c9,'createdAt':new Date(),'authorId':_0x1c8906,'attributes':_0x1bcbc8});return this['_addSuggestionMarker']('formatBlock:'+_0x503963,_0x262b0d,_0x1c8906,this['_model']['createRange'](_0x29cbf9,_0x2b3daf)),_0x333644;}}['markMultiRangeBlockFormat'](_0x4156e8,_0xffcb53,_0x315c3f=[],_0x18ce7b=null,_0x478e53={}){_0xffcb53['formatGroupId']||(_0xffcb53['formatGroupId']=_0xffcb53['commandName']);const _0x5168cb=_0x4156e8[0x0];_0xffcb53['multipleBlocks']=_0x5168cb['is']('range'),_0x18ce7b=_0x18ce7b||Kt(_0xffcb53);const _0x26b60b=_0x315c3f['map'](_0x177859=>zt(_0x177859,this['_model'])),_0x4c4607=_0x5168cb['is']('range')?_0x4156e8:_0x4156e8['map'](_0x54f96b=>zt(_0x54f96b,this['_model']));if('never'===this['_trackFormatChanges']){const _0x38fefe=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x18ce7b,'accept');return this['forceDefaultExecution'](()=>_0x38fefe(_0x4c4607,_0xffcb53,_0x478e53)),null;}_0x26b60b['push'](..._0x4c4607);let _0x4f11ae=!0x0;for(const _0xc4baaa of _0x26b60b)if(!this['_rangeIsInLocalUserInsertion'](_0xc4baaa)){_0x4f11ae=!0x1;break;}if(_0x4f11ae&&'always'!==this['_trackFormatChanges']){const _0x31edd1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x18ce7b,'accept');return this['forceDefaultExecution'](()=>_0x31edd1(_0x4c4607,_0xffcb53,_0x478e53)),null;}const _0xdc1a4b=this['editor']['plugins']['get']('Users')['me'];for(const _0x444270 of this['getSuggestions']()){if(_0x444270['author']['id']!=_0xdc1a4b['id'])continue;if('formatBlock'!=_0x444270['type']||_0x444270['data']['formatGroupId']!=_0xffcb53['formatGroupId'])continue;if(!Xt(_0x444270,_0x478e53))continue;const _0x514aca=_0x444270['subType']==_0x18ce7b;for(let _0x51e441=0x0;_0x51e441<_0x4c4607['length'];_0x51e441++){const _0x17319a=_0x4c4607[_0x51e441];for(const _0x32ce94 of _0x444270['getMarkers']()){const _0xcc69c1=_0x32ce94['getRange']();if(_0x17319a['isEqual'](_0xcc69c1)){_0x514aca?(_0x4c4607['splice'](_0x51e441,0x1),_0x51e441--):_0x444270['removeMarker'](_0x32ce94['name']);break;}}}}if(0x0==_0x4c4607['length'])return null;const _0x46c8c3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x18ce7b,'join');for(const _0x5c344f of this['getSuggestions']())if(_0x5c344f['author']['id']==_0xdc1a4b['id']&&'formatBlock'==_0x5c344f['type']&&_0x5c344f['data']['formatGroupId']==_0xffcb53['formatGroupId']&&_0x5c344f['subType']==_0x18ce7b&&Xt(_0x5c344f,_0x478e53)&&(_0x46c8c3(_0x5c344f['getRanges'](),_0x4c4607)||_0x46c8c3(_0x4c4607,_0x5c344f['getRanges']()))){for(const _0x175602 of _0x4c4607)_0x5c344f['addRange'](_0x175602);return _0x5c344f;}const _0x327805=_0x37dcac(),_0x3b4596=_0xdc1a4b['id'],_0x44fada='formatBlock:'+_0x18ce7b,_0x5c8f13=this['_setSuggestionData']({'id':_0x327805,'type':_0x44fada,'data':_0xffcb53,'createdAt':new Date(),'authorId':_0x3b4596,'attributes':_0x478e53});for(const _0x577e75 of _0x4c4607)this['_addSuggestionMarker'](_0x44fada,_0x327805,_0x3b4596,_0x577e75,o['getMultiRangeId']());return _0x5c8f13;}['markDeletion'](_0x30759d,_0x5bd73f=null,_0x199f52={}){if(_0x30759d['isCollapsed'])return null;const _0x4415da=this['editor']['plugins']['get']('Users')['me'],_0x3e81d6=new _0x4c7462(_0x30759d['start'],_0x30759d['end']);for(const {suggestion:_0x2f4baf,meta:_0x70d241}of this['_findSuggestions'](_0x3e81d6,'insertion'))if(_0x70d241['isOwn']&&!_0x70d241['isNextTo']){if(_0x2f4baf['isMultiRange']){const _0x5ddcb5=_0x2f4baf['getRanges']()['filter'](_0x20e1c5=>'$graveyard'!=_0x20e1c5['root']['rootName']);_0x5ddcb5['every'](_0x2f8b29=>_0x3e81d6['containsRange'](_0x2f8b29,!0x0))&&_0x2f4baf['discard']();if(_0x5ddcb5['some'](_0x1b1c8a=>_0x1b1c8a['containsRange'](_0x3e81d6,!0x0))){const _0xa0903b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5bd73f,'accept');return this['forceDefaultExecution'](()=>_0xa0903b([_0x3e81d6],null,_0x199f52)),null;}}else{const _0x9b4f74=_0x3e81d6['getIntersection'](_0x2f4baf['getFirstRange']());null!==_0x9b4f74&&_0x2f4baf['_onDiscard']([_0x9b4f74],null,_0x199f52);}}if(_0x3e81d6['detach'](),_0x3e81d6['isCollapsed']||'$graveyard'==_0x3e81d6['root']['rootName'])return null;let _0x33e832=null,_0x4343ed=_0x3e81d6['start'],_0x253771=_0x3e81d6['end'];const _0x4547bc=this['_findSuggestions'](_0x3e81d6,'deletion');for(const {suggestion:_0x1e29f7,meta:_0x3b264d}of _0x4547bc){const _0x1cb5d4=this['_model']['createRange'](_0x4343ed,_0x253771);if(_0x3b264d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3b264d['containsRangeInObject']&&!_0x3b264d['isInsideObject'])){if(_0x1e29f7['isMultiRange']){if(!Xt(_0x1e29f7,_0x199f52))continue;let _0x58e3a6=!0x0;for(const _0x37fb56 of _0x1e29f7['getRanges']()){if(_0x37fb56['containsRange'](_0x1cb5d4,!0x0))return _0x1e29f7;_0x1cb5d4['containsRange'](_0x37fb56)||(_0x58e3a6=!0x1);}_0x58e3a6&&_0x1e29f7['discard']();}else{const _0x26e435=_0x1e29f7['getFirstRange']();if(_0x26e435['containsRange'](_0x1cb5d4,!0x0))return _0x1e29f7;if(!Xt(_0x1e29f7,_0x199f52)){_0x1cb5d4['containsRange'](_0x26e435)?_0x1e29f7['removeMarkers']():_0x26e435['containsPosition'](_0x4343ed)?_0x4343ed=_0x26e435['end']:_0x26e435['containsPosition'](_0x253771)&&(_0x253771=_0x26e435['start']);continue;}_0x4343ed=_0x4343ed['isBefore'](_0x26e435['start'])?_0x4343ed:_0x26e435['start'],_0x253771=_0x253771['isAfter'](_0x26e435['end'])?_0x253771:_0x26e435['end'],_0x199f52=Object['assign']({},_0x1e29f7['attributes']),_0x33e832?_0x26e435['start']['isBefore'](_0x33e832['getFirstRange']()['start'])?(_0x33e832['removeMarkers'](),_0x33e832=_0x1e29f7):_0x1e29f7['removeMarkers']():_0x33e832=_0x1e29f7;}}}if(_0x33e832)return this['_setSuggestionRange'](_0x33e832,this['_model']['createRange'](_0x4343ed,_0x253771)),_0x33e832;{const _0x346f5b=_0x37dcac(),_0x54a35b=this['_model']['createRange'](_0x4343ed,_0x253771),_0x571a8c=_0x4415da['id'],_0x1420ca=_0x5bd73f?'deletion:'+_0x5bd73f:'deletion',_0x563836=this['_setSuggestionData']({'id':_0x346f5b,'type':_0x1420ca,'createdAt':new Date(),'authorId':_0x571a8c,'attributes':_0x199f52});return this['_addSuggestionMarker'](_0x1420ca,_0x346f5b,_0x571a8c,_0x54a35b),_0x563836;}}['markMultiRangeDeletion'](_0x1517e7,_0x11c6c2='multi',_0x20054c={}){const _0x908be2=this['editor']['plugins']['get']('Users')['me'],_0x9d24de=_0x1517e7['map'](_0x599b53=>new _0x4c7462(_0x599b53['start'],_0x599b53['end'])),_0x4ddbda=new Set();for(const {suggestion:_0x3cc041,meta:_0x2cfbda}of this['_findSuggestions'](_0x9d24de,'insertion'))_0x2cfbda['isOwn']&&!_0x2cfbda['isNextTo']&&_0x4ddbda['add'](_0x3cc041);for(const _0x101f4b of _0x4ddbda)if(_0x101f4b['isMultiRange']){const _0x57638d=_0x101f4b['getRanges']();(!_0x101f4b['attributes']||!_0x101f4b['attributes']['skipNestingCheck'])&&(_0x57638d['every'](_0x2b310d=>_0x9d24de['some'](_0x2a2792=>_0x2a2792['containsRange'](_0x2b310d,!0x0)))&&_0x101f4b['discard']());if(_0x9d24de['every'](_0x1e57e9=>_0x57638d['some'](_0x543d7a=>_0x543d7a['containsRange'](_0x1e57e9,!0x0)))){const _0x3d2d53=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x11c6c2,'accept');return this['forceDefaultExecution'](()=>_0x3d2d53(_0x1517e7,null,_0x20054c)),null;}}else{const _0x3d4beb=_0x101f4b['getFirstRange']();_0x9d24de['some'](_0x1537ac=>_0x1537ac['containsRange'](_0x3d4beb,!0x0))&&_0x101f4b['discard']();if(_0x9d24de['every'](_0x1836fc=>_0x3d4beb['containsRange'](_0x1836fc,!0x0))){const _0x509609=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x11c6c2,'accept');return this['forceDefaultExecution'](()=>_0x509609(_0x9d24de,null,_0x20054c)),null;}}const _0x1b55e8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x11c6c2,'join');let _0x47a726=null;for(const _0x3a8c1a of this['getSuggestions']())if(_0x3a8c1a['author']['id']==_0x908be2['id']&&_0x3a8c1a['isInContent']&&'deletion'==_0x3a8c1a['type']&&_0x3a8c1a['subType']==_0x11c6c2&&Xt(_0x3a8c1a,_0x20054c)&&(_0x1b55e8(_0x3a8c1a['getRanges'](),_0x9d24de)||_0x1b55e8(_0x9d24de,_0x3a8c1a['getRanges']()))){if(_0x47a726){if(_0x3a8c1a['commentThread']&&_0x3a8c1a['commentThread']['length'])continue;for(const _0x25f96f of _0x3a8c1a['getRanges']())_0x47a726['isIntersectingWithRange'](_0x25f96f)||_0x47a726['addRange'](_0x25f96f);_0x3a8c1a['removeMarkers']();}else{_0x47a726=_0x3a8c1a;for(const _0x1f9445 of _0x9d24de)_0x3a8c1a['isIntersectingWithRange'](_0x1f9445)||_0x3a8c1a['addRange'](_0x1f9445);}}if(_0x47a726)return _0x47a726;_0x4ddbda['clear']();for(const {suggestion:_0x1ba0b1,meta:_0x3339a1}of this['_findSuggestions'](_0x9d24de,'deletion'))_0x3339a1['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3339a1['containsRangeInObject']&&!_0x3339a1['isInsideObject'])&&Xt(_0x1ba0b1,_0x20054c)&&_0x4ddbda['add'](_0x1ba0b1);for(const _0x57add2 of _0x4ddbda){const _0x3d63ca=_0x57add2['getRanges']();if(!_0x20054c||!_0x20054c['skipNestingCheck']){if(_0x9d24de['every'](_0x176258=>_0x3d63ca['some'](_0x35b100=>_0x35b100['containsRange'](_0x176258,!0x0))))return _0x57add2;}(!_0x57add2['attributes']||!_0x57add2['attributes']['skipNestingCheck'])&&(_0x3d63ca['every'](_0xae0d13=>_0x9d24de['some'](_0x4b4059=>_0x4b4059['containsRange'](_0xae0d13,!0x0)))&&_0x57add2['discard']());}const _0x5343af=_0x37dcac(),_0x2b120c=_0x908be2['id'],_0x58be52='deletion:'+_0x11c6c2,_0x3f3bb6=this['_setSuggestionData']({'id':_0x5343af,'type':_0x58be52,'createdAt':new Date(),'authorId':_0x2b120c,'attributes':_0x20054c});for(const _0x38cc92 of _0x9d24de)_0x38cc92['detach'](),_0x38cc92['isCollapsed']||'$graveyard'==_0x38cc92['root']['rootName']||this['_addSuggestionMarker'](_0x58be52,_0x5343af,_0x2b120c,_0x38cc92,o['getMultiRangeId']());return _0x3f3bb6;}['markAttributeChange'](_0x3127f0,_0x202a8f,_0x42ca2c,_0x1709c,_0xfeb1a8){if(_0x3127f0['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5e6bdc=this['editor']['plugins']['get']('Users')['me']['id'],_0x39c2e7=Array['from'](this['_suggestions']['values']())['filter'](_0x512e86=>'attribute'==_0x512e86['type']&&_0x512e86['data']['key']==_0x202a8f&&_0x512e86['isIntersectingWithRange'](_0x3127f0));if('default'===this['_trackFormatChanges']){const _0x3e2991=this['_findSuggestions'](_0x3127f0,'insertion')['filter'](({meta:_0x578189})=>_0x578189['isOwn']&&!_0x578189['isInsideObject']&&!_0x578189['isNextTo'])['map'](({suggestion:_0x768f35})=>_0x768f35);_0x39c2e7['unshift'](..._0x3e2991);}const _0x1fb052=new Map([[_0x3127f0,_0x42ca2c]]);for(const _0xf2c2c0 of _0x39c2e7){const _0x3386c1='attribute'==_0xf2c2c0['type']?_0xf2c2c0['data']['oldValue']:void 0x0,_0x24d2ca=_0xf2c2c0['getFirstRange'](),_0x3ed7f7=Array['from'](_0x1fb052['keys']())['find'](_0x426e88=>_0x426e88['isIntersecting'](_0x24d2ca));if(!_0x3ed7f7)continue;const _0x101d7b=_0x3ed7f7['getDifference'](_0x24d2ca);this['_isBlockAttribute'](_0x202a8f)&&'insertion'==_0xf2c2c0['type']&&0x0!=_0x101d7b['length']||(_0x1fb052['delete'](_0x3ed7f7),_0x101d7b['forEach'](_0x4a21a9=>{_0x1fb052['set'](_0x4a21a9,_0x42ca2c);}),'insertion'!=_0xf2c2c0['type']&&_0x3386c1!=_0x1709c&&_0x1fb052['set'](_0x3ed7f7['getIntersection'](_0x24d2ca),_0x3386c1));}const _0x38e60a=[];for(const [_0x2da688,_0xa381cb]of _0x1fb052){const _0x3cdb50=_0x37dcac(),_0x2582d9={'key':_0x202a8f,'oldValue':_0xa381cb,'newValue':_0x1709c};_0x202a8f['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':_0x202a8f});const _0x143542=('attribute:'+(_0x202a8f+'|'+Kt({'newValue':_0x1709c})))['substring'](0x0,0x3c),_0x22c3c1=this['_setSuggestionData']({'id':_0x3cdb50,'type':_0x143542,'data':_0x2582d9,'createdAt':new Date(),'authorId':_0x5e6bdc,'attributes':_0xfeb1a8});_0x38e60a['push'](_0x22c3c1),this['_addSuggestionMarker'](_0x143542,_0x3cdb50,_0x5e6bdc,_0x2da688);}return _0x38e60a;}['enableDefaultAttributesIntegration'](_0x1a08c3){this['enableCommand'](_0x1a08c3,(_0x3d5f3b,..._0x23ef96)=>{this['_recordAttributeChanges'](()=>{_0x3d5f3b(..._0x23ef96);});});}['registerBlockAttribute'](_0x4a79b9){this['_blockAttributeKeys']['add'](_0x4a79b9);}['registerInlineAttribute'](_0x19e52b){this['_inlineAttributeKeys']['add'](_0x19e52b);}['_getAttributeKey'](_0x4c61f3){return'attribute'==_0x4c61f3['type']?_0x4c61f3['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x23cc75,_0x227d25){const _0x4c94de=_0x23cc75['getFirstMarker']();this['_model']['change'](_0x5a3427=>{_0x5a3427['updateMarker'](_0x4c94de,{'range':_0x227d25});});}['_addThreadToSuggestion'](_0x41e453){const _0x1abec4=_0x41e453['id'],_0x12e82c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1abec4)||this['_commentsRepository']['addCommentThread']({'channelId':_0x12e82c,'threadId':_0x1abec4,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x12060e=this['_commentsRepository']['getCommentThread'](_0x1abec4);_0x12060e['unbind']('isRemovable'),_0x12060e['isRemovable']=!0x1,_0x41e453['commentThread']=_0x12060e;}['_checkSuggestionCorrectness'](_0x270340,_0xc27dba,_0x3b0169,_0x58ff83){if(_0x270340['type']!=_0xc27dba||_0x270340['subType']!=_0x3b0169||_0x270340['creator']['id']!=_0x58ff83)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x52b81e('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x35b3db,_0x3c78ad){const _0x2dd4c0=_0x35b3db['getFirstRange']();if(_0x3c78ad['isEqual'](_0x2dd4c0))_0x35b3db['removeMarkers']();else{if(_0x2dd4c0['containsRange'](_0x3c78ad)){const _0x4bac6a=this['_model']['createPositionAt'](_0x3c78ad['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x35b3db,this['_model']['createRange'](_0x2dd4c0['start'],_0x4bac6a));const _0xfcd12=_0x37dcac(),_0x5615c8=_0x35b3db['creator']['id'],_0x409f22=_0x35b3db['type']+':'+_0x35b3db['subType'];this['_setSuggestionData']({'id':_0xfcd12,'type':_0x409f22,'createdAt':new Date(),'authorId':_0x5615c8,'data':_0x35b3db['data'],'attributes':_0x35b3db['attributes']});const _0x2fa8f7=this['_model']['createPositionAt'](_0x3c78ad['end']['parent'],'after'),_0x182c94=this['_model']['createRange'](_0x2fa8f7,_0x2dd4c0['end']);this['_addSuggestionMarker'](_0x409f22,_0xfcd12,_0x5615c8,_0x182c94);}else{if(_0x2dd4c0['containsPosition'](_0x3c78ad['start'])){const _0xc2d00c=this['_model']['createPositionAt'](_0x3c78ad['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x35b3db,this['_model']['createRange'](_0x2dd4c0['start'],_0xc2d00c));}else{const _0x3b218b=this['_model']['createPositionAt'](_0x3c78ad['end']['parent'],'after');this['_setSuggestionRange'](_0x35b3db,this['_model']['createRange'](_0x3b218b,_0x2dd4c0['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3be307){for(const {suggestion:_0x2031ab,meta:_0x17f513}of this['_findSuggestions'](_0x3be307,'insertion')){if(!_0x17f513['isOwn'])continue;const _0x520938=_0x2031ab['getRanges']();for(const _0x3f25e4 of _0x520938)if(!_0x3be307['getDifference'](_0x3f25e4)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2e20ef){const _0x13cb5a=this['editor']['plugins']['get']('Users')['getUser'](_0x2e20ef);if(!_0x13cb5a)throw new _0x52b81e('track-changes-user-not-found',this);return _0x13cb5a;}['_getExternalAuthor'](_0x10515c){const _0x1688c0=this['editor']['plugins']['get']('Users'),_0xcad53e=_0xe5430f('external:'+_0x10515c),_0x32323e=_0x1688c0['getUser'](_0xcad53e);return _0x32323e||_0x1688c0['addUser']({'id':_0xcad53e,'name':_0x10515c});}['_createSuggestion'](_0xd67e2c,_0x35dc41,_0x3df387,_0x2484a6,_0x1f8588){const _0x53312a=this['_getAuthorFromId'](_0x2484a6),_0xad52ad=this['_suggestionFactory']['buildSuggestion'](_0xd67e2c,_0x35dc41,_0x3df387,_0x53312a,_0x1f8588,_0x194667=>{this['_updateSuggestionData'](_0x3df387,{'attributes':_0x194667});const _0x2b68f9=this['getSuggestion'](_0x3df387);this['_joinWithAdjacentSuggestions'](new Set([_0x2b68f9])),this['_refreshSuggestionsChain'](new Set([_0x2b68f9]));});return this['listenTo'](_0xad52ad,'accept',()=>{this['_updateSuggestionData'](_0x3df387,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xad52ad,'discard',()=>{this['_updateSuggestionData'](_0x3df387,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3df387,_0xad52ad),this['_suggestionState']['set'](_0xad52ad,'notReady'),_0xad52ad;}['_splitMarkerName'](_0x3764ef){const _0x2a1ffe=_0x3764ef['split'](':');return{'group':_0x2a1ffe[0x0],'type':_0x2a1ffe[0x1],'subType':_0x2a1ffe['length']>=0x5?_0x2a1ffe[0x2]:null,'id':_0x2a1ffe['length']<0x5?_0x2a1ffe[0x2]:_0x2a1ffe[0x3],'authorId':_0x2a1ffe['length']<0x5?_0x2a1ffe[0x3]:_0x2a1ffe[0x4],'markerCount':0x6==_0x2a1ffe['length']?_0x2a1ffe[0x5]:null};}['_breakSuggestionMarker'](_0x3c0ef5,_0x83a417,_0x11890c){const _0x54129c=_0x3c0ef5['getFirstRange'](),_0x417f4e=_0x54129c['start'],_0x40dcee=_0x54129c['end'];this['_setSuggestionRange'](_0x3c0ef5,this['_model']['createRange'](_0x417f4e,_0x83a417));const _0x1ecc88=_0x37dcac(),_0x25abf1=_0x3c0ef5['creator']['id'],_0x55e403=_0x3c0ef5['type']+(_0x3c0ef5['subType']?':'+_0x3c0ef5['subType']:'');this['_setSuggestionData']({'id':_0x1ecc88,'type':_0x55e403,'createdAt':new Date(),'authorId':_0x25abf1,'originalSuggestionId':_0x3c0ef5['id'],'attributes':_0x3c0ef5['attributes'],'data':_0x3c0ef5['data']});const _0x343f8f=this['_getAttributeKey'](_0x3c0ef5);('formatBlock'==_0x3c0ef5['type']||_0x343f8f&&this['_isBlockAttribute'](_0x343f8f))&&(_0x11890c=this['_model']['createPositionBefore'](_0x11890c['parent'])),this['_addSuggestionMarker'](_0x55e403,_0x1ecc88,_0x25abf1,this['_model']['createRange'](_0x11890c,_0x40dcee));}['_findSuggestions'](_0x54d3fc,_0x548be2=null){const _0x17338e=[],_0x1fbcf1=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x54d3fc)||(_0x54d3fc=[_0x54d3fc]);for(const _0x29841e of this['getSuggestions']()){if(!_0x29841e['isInContent'])continue;if(_0x548be2&&_0x29841e['type']!=_0x548be2)continue;let _0x99f0c2=!0x1;for(const _0x5f87e1 of _0x29841e['getRanges']()){for(const _0xa8ef1f of _0x54d3fc){const _0x3dc757=_0xa8ef1f['start']['isEqual'](_0x5f87e1['end'])||_0xa8ef1f['end']['isEqual'](_0x5f87e1['start']);if(_0x3dc757||_0xa8ef1f['getIntersection'](_0x5f87e1)){const _0x3ad363=_0xa8ef1f['containsRange'](_0x5f87e1)&&Gt(this['_model']['schema'],_0x5f87e1['start'],_0xa8ef1f),_0x9020dc=_0x5f87e1['containsRange'](_0xa8ef1f)&&Gt(this['_model']['schema'],_0xa8ef1f['start'],_0x5f87e1);_0x17338e['push']({'suggestion':_0x29841e,'meta':{'isOwn':_0x1fbcf1==_0x29841e['author'],'isNextTo':_0x3dc757,'isInsideObject':_0x3ad363,'containsRangeInObject':_0x9020dc}}),_0x99f0c2=!0x0;break;}}if(_0x99f0c2)break;}}return _0x17338e;}['_addSuggestionMarker'](_0x442f9a,_0x561e4d,_0x1cc762,_0x1bf813,_0x17d88c){this['_model']['change'](_0x1fd293=>{let _0x4482d9='suggestion:'+_0x442f9a+':'+_0x561e4d+':'+_0x1cc762;_0x17d88c&&(_0x4482d9=_0x4482d9+':'+_0x17d88c),_0x1fd293['addMarker'](_0x4482d9,{'range':_0x1bf813,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x40247d){const _0x1b509e=_0x40247d['previous'],_0x103ffa=_0x40247d['next'];_0x40247d['previous']=null,_0x40247d['next']=null,null!=_0x1b509e&&_0x1b509e['next']==_0x40247d&&(_0x1b509e['next']=_0x103ffa),null!=_0x103ffa&&_0x103ffa['previous']==_0x40247d&&(_0x103ffa['previous']=_0x1b509e),'ready'==this['_suggestionState']['get'](_0x40247d)&&(this['_suggestionState']['set'](_0x40247d,'removed'),this['fire']('suggestionUnloaded',_0x40247d,_0x1b509e,_0x103ffa));}['_setSuggestionData'](_0x11be5a){const _0x3fcac8=_0x11be5a['id'],_0x5ee41a=this['addSuggestionData'](_0x11be5a);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3bed46=this['editor']['plugins']['get']('PendingActions'),_0x51a5a7=_0x5ee41a['hasComments'],_0xb093cd=_0x5ee41a['subType']?_0x5ee41a['type']+':'+_0x5ee41a['subType']:_0x5ee41a['type'],_0x124575=this['editor']['locale'],_0x2d5b6c=_0x3bed46['add'](c(_0x124575,'PENDING_ACTION_SUGGESTION')),_0x400b25={'id':_0x3fcac8,'type':_0xb093cd,'hasComments':_0x51a5a7,'data':_0x11be5a['data']||null,'originalSuggestionId':_0x11be5a['originalSuggestionId']||null,'attributes':_0x5ee41a['attributes']};this['_adapter']['addSuggestion'](_0x400b25)['then'](_0x1ab8e7=>{_0x5ee41a['_saved']=!0x0,_0x3bed46['remove'](_0x2d5b6c),_0x1ab8e7&&_0x1ab8e7['createdAt']&&(this['_suggestions']['get'](_0x3fcac8)['createdAt']=_0x1ab8e7['createdAt']);})['catch'](_0x1d6cb1=>{throw _0x402caf('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5ee41a['discard']();}),_0x5ee41a['stopListening'](),this['_suggestions']['delete'](_0x5ee41a['id']),this['_suggestionState']['delete'](_0x5ee41a),_0x1d6cb1;});}return _0x5ee41a;}['_isBlockAttribute'](_0x16d0b4){return this['_blockAttributeKeys']['has'](_0x16d0b4);}['_updateSuggestionData'](_0x5211c6,_0x551ebb){const _0x228b5d=this['editor']['plugins']['get']('PendingActions'),_0x491056=this['getSuggestion'](_0x5211c6);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x491056['_saved']){const _0x35e91a=_0x228b5d['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5211c6,_0x551ebb)['then'](()=>{_0x228b5d['remove'](_0x35e91a);});}else _0x491056['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5211c6,_0x551ebb);});}}['_getSuggestionData'](_0x50bc71){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x52b81e('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x50bc71);}['_handleNewSuggestionMarker'](_0x479f24){const {id:_0x151917,type:_0x154544,subType:_0x43bb57,authorId:_0x27f1d5}=this['_splitMarkerName'](_0x479f24),_0x45352e=this['_suggestions']['get'](_0x151917)||this['_createSuggestion'](_0x154544,_0x43bb57,_0x151917,_0x27f1d5,{});switch(this['_checkSuggestionCorrectness'](_0x45352e,_0x154544,_0x43bb57,_0x27f1d5),this['_suggestionState']['get'](_0x45352e)){case'notReady':this['_getSuggestionData'](_0x151917)['then'](_0x503150=>{let _0x3d6d08=Promise['resolve']();_0x503150['hasComments']&&(_0x3d6d08=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x151917})),_0x3d6d08['then'](()=>{this['addSuggestionData'](_0x503150)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x45352e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x151917,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x45352e,'ready'),this['fire']('suggestionLoaded',_0x45352e);break;case'ready':this['fire']('suggestionChanged',_0x45352e);}return _0x45352e['addMarkerName'](_0x479f24),_0x45352e;}['_refreshSuggestionsChain'](_0x13ab13){const _0x49e131=Array['from'](_0x13ab13),_0x5d7754=_0x49e131['filter'](_0x13271b=>'attribute'==_0x13271b['type']);this['_refreshAttributeSuggestionsChain'](_0x5d7754);const _0x3f3834=_0x49e131['filter'](_0x4a6133=>!_0x4a6133['isMultiRange']&&'attribute'!=_0x4a6133['type']),_0x240675=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xd6ea6d=>!_0xd6ea6d['isMultiRange']&&'attribute'!=_0xd6ea6d['type']),_0x2098ee=_0x240675['filter'](_0x12f3f7=>!_0x13ab13['has'](_0x12f3f7)),_0x528e2b=new Map(_0x240675['map'](_0x23c010=>[_0x23c010,this['_suggestionFactory']['getSuggestionCallback'](_0x23c010['type'],_0x23c010['subType'],'chain')])),_0x57d383=new Map(_0x240675['map'](_0x1c132a=>[_0x1c132a,_0x1c132a['getFirstRange']()])),_0x24902e=new Set(),_0x5542d4=new Set();for(let _0xcc73bd=0x0;_0xcc73bd<_0x3f3834['length'];_0xcc73bd++)_0x1a2bfc(_0x3f3834[_0xcc73bd],_0x3f3834,_0xcc73bd+0x1);for(let _0x1d7abf=0x0;_0x1d7abf<_0x3f3834['length'];_0x1d7abf++)_0x1a2bfc(_0x3f3834[_0x1d7abf],_0x2098ee,0x0);const _0x36ee42=new Set();for(let _0x1f855e=0x0;_0x1f855e<_0x3f3834['length'];_0x1f855e++){const _0x22359b=_0x3f3834[_0x1f855e];!_0x5542d4['has'](_0x22359b)&&_0x22359b['previous']&&(_0x36ee42['add'](_0x22359b['previous']),_0x22359b['previous']['next']===_0x22359b&&(_0x22359b['previous']['next']=null),_0x22359b['previous']=null),!_0x24902e['has'](_0x22359b)&&_0x22359b['next']&&(_0x36ee42['add'](_0x22359b['next']),_0x22359b['next']['previous']===_0x22359b&&(_0x22359b['next']['previous']=null),_0x22359b['next']=null);}function _0x1a2bfc(_0x430528,_0x463b02,_0x40267c){for(let _0x592ea9=_0x40267c;_0x592ea9<_0x463b02['length'];_0x592ea9++){const _0x2bc112=_0x15a703(_0x430528,_0x463b02[_0x592ea9]);_0x2bc112&&(_0x2bc112[0x0]['next']=_0x2bc112[0x1],_0x2bc112[0x1]['previous']=_0x2bc112[0x0],_0x24902e['add'](_0x2bc112[0x0]),_0x5542d4['add'](_0x2bc112[0x1]));}}function _0x15a703(_0x202f19,_0xd28e4c){if(_0x202f19['author']['id']!==_0xd28e4c['author']['id'])return null;const _0x1bd073=_0x528e2b['get'](_0x202f19)(_0x202f19,_0xd28e4c,_0x57d383['get'](_0x202f19),_0x57d383['get'](_0xd28e4c));if(!_0x1bd073)return null;return _0x528e2b['get'](_0xd28e4c)(_0x202f19,_0xd28e4c,_0x57d383['get'](_0x202f19),_0x57d383['get'](_0xd28e4c))?_0x1bd073[0x1]['commentThread']&&_0x1bd073[0x1]['commentThread']['length']?null:_0x1bd073:null;}_0x36ee42['size']&&this['_refreshSuggestionsChain'](_0x36ee42);}['_refreshAttributeSuggestionsChain'](_0x4becda){if(0x0==_0x4becda['length'])return;const _0x414bdd=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xb21ad8=>'attribute'==_0xb21ad8['type']&&_0xb21ad8['_isDataLoaded']),_0x1d9d27=[],_0x1ad9ce=new Map();for(const _0x35f764 of _0x414bdd){const _0x569fc9=_0xe5430f(_0x35f764['attributes']);_0x1ad9ce['has'](_0x569fc9)||(_0x1ad9ce['set'](_0x569fc9,_0x1d9d27['length']),_0x1d9d27['push']([]));const _0x2387d1=_0x1ad9ce['get'](_0x569fc9);_0x1d9d27[_0x2387d1]['push'](_0x35f764);}!(function(){_0x1d9d27['sort']((_0x57916a,_0x488087)=>{const _0x5c44f5=_0x57916a[0x0]['createdAt'],_0x396eab=_0x488087[0x0]['createdAt'];return _0x5c44f5==_0x396eab?_0x57916a[0x0]['attributes']['groupId']<_0x488087[0x0]['attributes']['groupId']?-0x1:0x1:_0x5c44f5<_0x396eab?-0x1:0x1;});for(const _0x44ae58 of _0x1d9d27)_0x44ae58['sort']((_0x2ca647,_0x37d99c)=>_0x2ca647['id']<_0x37d99c['id']?-0x1:0x1);}());for(let _0x4692d5=0x0;_0x4692d5<_0x1d9d27['length'];_0x4692d5++){if(0x0==_0x1d9d27[_0x4692d5]['length'])continue;const _0x37fc38=[];for(let _0xb2c061=_0x4692d5+0x1;_0xb2c061<_0x1d9d27['length'];_0xb2c061++)0x0!=_0x1d9d27[_0xb2c061]['length']&&_0x17e82e(_0x1d9d27[_0x4692d5],_0x1d9d27[_0xb2c061])&&_0x37fc38['push'](_0xb2c061);for(const _0x4a98a3 of _0x37fc38)_0x1d9d27[_0x4692d5]=_0x1d9d27[_0x4692d5]['concat'](_0x1d9d27[_0x4a98a3]),_0x1d9d27[_0x4a98a3]=[];}for(const _0x59c011 of _0x1d9d27)for(let _0x220434=0x0;_0x220434<_0x59c011['length'];_0x220434++){const _0x123f32=_0x59c011[_0x220434+0x1]||null;_0x59c011[_0x220434]['next']!==_0x123f32&&(_0x59c011[_0x220434]['next']=_0x123f32);}for(const _0x514edd of _0x1d9d27)for(let _0xf9b28e=0x0;_0xf9b28e<_0x514edd['length'];_0xf9b28e++){const _0xde9957=_0x514edd[_0xf9b28e-0x1]||null;_0x514edd[_0xf9b28e]['previous']!==_0xde9957&&(_0x514edd[_0xf9b28e]['previous']=_0xde9957);}function _0x17e82e(_0x900685,_0x2d7252){if(_0x900685[0x0]['attributes']['groupId']!==_0x2d7252[0x0]['attributes']['groupId']&&_0x900685[0x0]['author']!==_0x2d7252[0x0]['author'])return!0x1;if(!function(_0xec772,_0x36c707){if(!_0xec772['hasComments']&&!_0x36c707['hasComments'])return!0x0;if(_0xec772['hasComments']&&_0x36c707['hasComments'])return!0x1;if(_0xec772['hasComments']&&_0x36c707['createdAt']<_0xec772['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x36c707['hasComments']&&_0xec772['createdAt']<_0x36c707['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x900685[0x0],_0x2d7252[0x0]))return!0x1;const _0x13a5ec=Ft(_0x900685[0x0]['attributes'],'groupId'),_0x878296=Ft(_0x2d7252[0x0]['attributes'],'groupId');if(!_0x28517a(_0x13a5ec,_0x878296))return!0x1;return!!_0x900685['every'](_0x23b580=>_0x2d7252['some'](_0x2a14f0=>_0x23b580['getFirstRange']()['isEqual'](_0x2a14f0['getFirstRange']())))&&_0x2d7252['every'](_0x19a6ab=>_0x900685['some'](_0x3ed4d7=>_0x19a6ab['getFirstRange']()['isEqual'](_0x3ed4d7['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4680c2){const _0x184842=Array['from'](_0x4680c2),_0x5eb1c9=this['getSuggestions']({'skipNotAttached':!0x0}),_0x20e24d=_0x5eb1c9['filter'](_0x1fb4b9=>!_0x4680c2['has'](_0x1fb4b9)),_0x39d355=new Map(_0x184842['map'](_0x4ea87b=>[_0x4ea87b,this['_suggestionFactory']['getSuggestionCallback'](_0x4ea87b['type'],_0x4ea87b['subType'],'join')])),_0x118142=new Map(_0x5eb1c9['map'](_0x21a465=>[_0x21a465,_0x21a465['getRanges']()]));for(let _0x149754=0x0;_0x149754<_0x184842['length'];_0x149754++){if(_0x294488(this,_0x184842[_0x149754],_0x184842,_0x149754+0x1))return!0x0;}for(let _0x456228=0x0;_0x456228<_0x184842['length'];_0x456228++){if(_0x294488(this,_0x184842[_0x456228],_0x20e24d,0x0))return!0x0;}return!0x1;function _0x294488(_0x3aa7b9,_0x15ff69,_0x93ed56,_0x965b4e){for(let _0x442c71=_0x965b4e;_0x442c71<_0x93ed56['length'];_0x442c71++){const _0x3bc960=_0x93ed56[_0x442c71];if(_0x3bc960['type']!==_0x15ff69['type']||_0x3bc960['author']['id']!==_0x15ff69['author']['id']||_0x3bc960['subType']!==_0x15ff69['subType'])continue;if(!Qt(_0x15ff69,_0x3bc960))continue;if('attribute'==_0x15ff69['type']&&_0x15ff69['data']['oldValue']!=_0x3bc960['data']['oldValue'])continue;if('attribute'==_0x15ff69['type']&&_0x3aa7b9['_isBlockAttribute'](_0x15ff69['data']['key']))continue;if('formatBlock'==_0x15ff69['type']){const _0x252948=_0x3aa7b9['editor']['model'],_0x3a0631=_0x15ff69['getContainedElement']();if(_0x3a0631&&(_0x252948['schema']['isObject'](_0x3a0631)||_0x252948['schema']['isLimit'](_0x3a0631)))continue;}const _0x5a58d1=_0x39d355['get'](_0x15ff69),_0x4947a7=_0x118142['get'](_0x15ff69),_0x10c62c=_0x118142['get'](_0x3bc960),_0x56ce69=_0x15ff69['commentThread']&&_0x15ff69['commentThread']['length'],_0x475595=_0x3bc960['commentThread']&&_0x3bc960['commentThread']['length'];if(!_0x56ce69&&_0x5a58d1(_0x10c62c,_0x4947a7))return _0x3aa7b9['_joinSuggestions'](_0x3bc960,_0x15ff69),_0x118142['delete'](_0x15ff69),!0x0;if(!_0x475595&&_0x5a58d1(_0x4947a7,_0x10c62c))return _0x3aa7b9['_joinSuggestions'](_0x15ff69,_0x3bc960),_0x118142['delete'](_0x3bc960),!0x0;}return!0x1;}}['_joinSuggestions'](_0x447d54,_0x41ac44){if(_0x447d54['isMultiRange']){for(const _0x2325fa of _0x41ac44['getRanges']())_0x447d54['addRange'](_0x2325fa);}else{const _0x5b7b2f=_0x41ac44['getFirstRange']()['end'];this['_setSuggestionRange'](_0x447d54,this['_model']['createRange'](_0x447d54['getFirstRange']()['start'],_0x5b7b2f));}_0x41ac44['removeMarkers']();}['_getMarkerAnnouncementText'](_0x35f0cd,_0x4373f2,_0x810e58){const _0x1fbd25=_0x35f0cd['startsWith']('format')||_0x35f0cd['startsWith']('attribute')?'FORMATTING':_0x35f0cd['toUpperCase']();return c(this['editor']['locale'],_0x4373f2+'_'+_0x1fbd25+'_SUGGESTION_ANNOUNCEMENT',_0x810e58);}['_initAriaMarkerChangeAnnouncements'](){const _0x3537c8=this['editor'];if(!_0x3537c8['ui'])return;const {ariaLiveAnnouncer:_0x3e3d93}=_0x3537c8['ui'];_0x18545d(this['_model'],({left:_0x450a8b,entered:_0x2d5ab7})=>{for(const _0x13882c of _0x450a8b){const {group:_0x4eb38a,type:_0x95ad74}=this['_splitMarkerName'](_0x13882c['name']);if('suggestion'===_0x4eb38a){_0x3e3d93['announce'](this['_getMarkerAnnouncementText'](_0x95ad74,'LEAVE'));break;}}for(const _0xdcb92b of _0x2d5ab7){const {group:_0x160895,type:_0x47da31}=this['_splitMarkerName'](_0xdcb92b['name']);if('suggestion'===_0x160895){_0x3e3d93['announce'](this['_getMarkerAnnouncementText'](_0x47da31,'ENTER',_0x2ab456(_0x2ee282)));break;}}});}['_processAttributeChanges'](_0x52fa3a){if(this['_recordAttributeSuggestions'])return!0x1;const _0x100b74=this['editor'],_0x3f51e=_0x100b74['model']['document']['differ']['getChanges']();if(0x0==_0x3f51e['length'])return!0x1;const _0x341b45=[],_0x5c4dfc=_0x3f51e['filter'](_0x59a3a6=>'attribute'==_0x59a3a6['type']),_0x52f7b0=_0x3f51e['filter'](_0x14a396=>'insert'==_0x14a396['type']&&'$text'!=_0x14a396['name']),_0x802afb=_0x3f51e['filter'](_0x1524ee=>'remove'==_0x1524ee['type']&&'$text'!=_0x1524ee['name']);for(const _0x38c402 of _0x5c4dfc)_0x341b45['push']({'key':_0x38c402['attributeKey'],'newValue':_0x38c402['attributeNewValue'],'oldValue':_0x38c402['attributeOldValue'],'range':qt(_0x38c402['range'],_0x100b74['model'])});for(const _0x4f578c of _0x52f7b0){const _0x386bb8=_0x802afb['find'](_0x1057e8=>_0x1057e8['position']['isEqual'](_0x4f578c['position']));_0x386bb8&&_0x341b45['push']({'key':u,'newValue':_0x4f578c['name'],'oldValue':_0x386bb8['name'],'range':_0x100b74['model']['createRangeOn'](_0x4f578c['position']['nodeAfter'])});}return 0x0!=_0x341b45['length']&&this['_reduceExistingSuggestions'](_0x52fa3a,_0x341b45);}['_processAttributeSuggestions'](_0x42f889){let _0x13815f=!0x1;const _0x4d5e47=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x12cae5=>_0x12cae5['data']['newRange']&&_0x12cae5['name']['startsWith']('suggestion:attribute:'));for(const _0x1ffbb2 of _0x4d5e47){const {subType:_0x35fb9a,id:_0x4773eb}=this['_splitMarkerName'](_0x1ffbb2['name']),_0xdcb6e0=_0x35fb9a['split']('|')[0x0];for(const _0x28858a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x28858a['id']!=_0x4773eb&&'attribute'==_0x28858a['type']&&_0x28858a['data']&&_0x28858a['data']['key']==_0xdcb6e0&&_0x28858a['getFirstRange']()['isIntersecting'](_0x1ffbb2['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x28858a,_0x1ffbb2['data']['newRange'],_0x42f889),_0x13815f=!0x0);}return _0x13815f;}['_recordAttributeChanges'](_0x40ce16){this['_recordAttributeSuggestions']=!0x0,_0x40ce16();}['_isRegisteredAttribute'](_0xfb0ce7){const _0x554cf1=this['_isBlockAttribute'](_0xfb0ce7),_0x522114=this['_inlineAttributeKeys']['has'](_0xfb0ce7);return _0x554cf1||_0x522114;}['_reduceExistingSuggestions'](_0x38b342,_0xcc8d0b){if(0x0==_0xcc8d0b['length'])return!0x1;let _0x52067e=!0x1;for(const _0x42dfab of _0xcc8d0b){const _0x53aade=this['_findSuggestions'](_0x42dfab['range'],'attribute')['filter'](_0x522b8f=>!_0x522b8f['meta']['isNextTo'])['map'](_0x4ad84f=>_0x4ad84f['suggestion']),_0x287919=_0xe5430f({'newValue':_0x42dfab['newValue']});_0x53aade['filter'](_0xb77dc5=>{const [_0x1c323f,_0x396f77]=_0xb77dc5['subType']['split']('|');return _0x1c323f==_0x42dfab['key']&&_0x396f77!=_0x287919;})['forEach'](_0x2481df=>{this['_reduceSuggestionAttributeRange'](_0x2481df,_0x42dfab['range'],_0x38b342),_0x52067e=!0x0;});}return _0x52067e;}['_reduceSuggestionAttributeRange'](_0x1acc1d,_0x238acb,_0x86e65d){const _0x4b6a33=_0x1acc1d['getFirstRange']()['getDifference'](_0x238acb);0x0!==_0x4b6a33['length']?0x1!==_0x4b6a33['length']?this['_breakSuggestionMarker'](_0x1acc1d,_0x238acb['start'],_0x238acb['end']):this['_setSuggestionRange'](_0x1acc1d,_0x4b6a33[0x0]):_0x86e65d['removeMarker'](_0x1acc1d['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x46cbb5){this['_editor']=_0x46cbb5,this['_model']=_0x46cbb5['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x192808,_0x2ff6bb,_0x49a2cc,_0xaf39f6,_0x4379c3,_0x21158d){return new o(this['_model'],{'type':_0x192808,'subType':_0x2ff6bb,'id':_0x49a2cc,'author':_0xaf39f6,'creator':_0xaf39f6,'attributes':_0x4379c3,'onAttributesChange':_0x21158d,'onAccept':(..._0x42b855)=>this['getSuggestionCallback'](_0x192808,_0x2ff6bb,'accept')(..._0x42b855),'onDiscard':(..._0x59ec83)=>this['getSuggestionCallback'](_0x192808,_0x2ff6bb,'discard')(..._0x59ec83)});}['registerCustomCallback'](_0x5a0978,_0x306a70,_0x4e42c5,_0x46ea5a){const _0x1e0dab=_0x5a0978+':'+_0x306a70+':'+_0x4e42c5;this['_customCallbacks']['set'](_0x1e0dab,_0x46ea5a);}['getSuggestionCallback'](_0x52fc18,_0x297193,_0x1e7d37){const _0x5a56e9=_0x52fc18+':'+_0x297193+':'+_0x1e7d37;return this['_customCallbacks']['get'](_0x5a56e9)||this['_defaultCallbacks']['get'](_0x52fc18+':'+_0x1e7d37);}['_registerDefaultCallbacks'](){const _0x9a2c05=()=>!0x1,_0x572d72=_0x2c8133=>{_0x2c8133['sort']((_0x9de8e1,_0x37b96e)=>_0x9de8e1['start']['isBefore'](_0x37b96e['start'])?0x1:-0x1),this['_model']['change'](_0x143e0b=>{for(const _0x46ca80 of _0x2c8133){let _0x2cbb9a;_0x2cbb9a=_0x46ca80['end']['isAtEnd']&&_0x46ca80['end']['parent']==_0x46ca80['start']['nodeAfter']?_0x143e0b['createSelection'](_0x46ca80['start']['nodeAfter'],'on'):_0x143e0b['createSelection'](_0x46ca80),this['_model']['deleteContent'](_0x2cbb9a,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2cab9c=(_0x45b875,_0x55f20c)=>{_0x55f20c&&this['_model']['change'](_0x3722ec=>{const {commandName:_0x6a188c,commandParams:_0x4fa107=[]}=_0x55f20c,_0x14c76a=_0x45b875['map'](_0x22f478=>(Lt(_0x22f478)&&(_0x22f478=this['_model']['createRange'](_0x22f478['end'])),_0x22f478))['filter'](_0x13c859=>'$graveyard'!==_0x13c859['root']['rootName']);if(_0x14c76a['length']<0x1)return;const _0x5b8a51=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x26144a=>_0x4c7462['fromRange'](_0x26144a));_0x3722ec['setSelection'](_0x14c76a);for(const _0x2ff832 of this['_editor']['commands']['commands']())_0x2ff832['refresh']();_0x4fa107['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x6a188c,..._0x4fa107);const _0xc779bd=_0x5b8a51['filter'](_0x5def3c=>'$graveyard'!=_0x5def3c['root']['rootName']);_0xc779bd['length']>0x0&&_0x3722ec['setSelection'](_0xc779bd);for(const _0x3f5bba of _0x5b8a51)_0x3f5bba['detach']();});},_0x50ad0b=(_0x26842c,_0x439361)=>0x1==_0x26842c['length']&&0x1==_0x439361['length']&&_0x26842c[0x0]['end']['isEqual'](_0x439361[0x0]['start']),_0x5933d7=(_0x34cf4d,_0x2be58e,_0x271a6c,_0x3f16e9)=>Wt(_0x34cf4d,_0x2be58e,_0x271a6c,_0x3f16e9)?[_0x34cf4d,_0x2be58e]:Wt(_0x2be58e,_0x34cf4d,_0x3f16e9,_0x271a6c)?[_0x2be58e,_0x34cf4d]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x9a2c05),this['_defaultCallbacks']['set']('insertion:discard',_0x572d72),this['_defaultCallbacks']['set']('insertion:join',_0x50ad0b),this['_defaultCallbacks']['set']('insertion:chain',_0x5933d7),this['_defaultCallbacks']['set']('deletion:accept',_0x572d72),this['_defaultCallbacks']['set']('deletion:discard',_0x9a2c05),this['_defaultCallbacks']['set']('deletion:join',_0x50ad0b),this['_defaultCallbacks']['set']('deletion:chain',_0x5933d7),this['_defaultCallbacks']['set']('formatInline:accept',_0x2cab9c),this['_defaultCallbacks']['set']('formatInline:discard',_0x9a2c05),this['_defaultCallbacks']['set']('formatInline:join',_0x50ad0b),this['_defaultCallbacks']['set']('formatInline:chain',_0x9a2c05),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2cab9c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x9a2c05),this['_defaultCallbacks']['set']('formatBlock:join',_0x50ad0b),this['_defaultCallbacks']['set']('formatBlock:chain',_0x9a2c05),this['_defaultCallbacks']['set']('attribute:accept',_0x9a2c05),this['_defaultCallbacks']['set']('attribute:discard',(_0x12fb37,_0x4c9805)=>{if(!_0x4c9805)return;const _0x13d751=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2f93dc=>{if(_0x4c9805['key']==u)for(const _0x27f51e of _0x12fb37){const _0xc21546=_0x27f51e['start']['nodeAfter'],_0x26ebfd=_0x4c9805['oldValue'];_0x2f93dc['rename'](_0xc21546,_0x26ebfd);}else{if(_0x13d751['_isBlockAttribute'](_0x4c9805['key'])){for(const _0x22ef62 of _0x12fb37)void 0x0!==_0x4c9805['oldValue']?_0x2f93dc['setAttribute'](_0x4c9805['key'],_0x4c9805['oldValue'],_0x22ef62['start']['nodeAfter']):_0x2f93dc['removeAttribute'](_0x4c9805['key'],_0x22ef62['start']['nodeAfter']);}else{for(const _0x16a480 of _0x12fb37)_0x4c9805['oldValue']?_0x2f93dc['setAttribute'](_0x4c9805['key'],_0x4c9805['oldValue'],_0x16a480):_0x2f93dc['removeAttribute'](_0x4c9805['key'],_0x16a480);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x50ad0b);}}function Gt(_0x170286,_0x41f700,_0x14a221){for(const _0x212e1f of _0x41f700['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x212e1f['root']==_0x212e1f)return!0x1;if(!_0x14a221['containsItem'](_0x212e1f))return!0x1;if(_0x170286['isObject'](_0x212e1f)||_0x170286['isLimit'](_0x212e1f))return!0x0;}return!0x1;}function Lt(_0xb84812){return _0xb84812['end']['parent']==_0xb84812['start']['nodeAfter']&&_0xb84812['end']['isAtStart'];}function Jt(_0x4d6ced,_0x714e70,_0x3b140c,_0x317115){const _0x1bcfe2=_0x4f6bf6=>!_0x4f6bf6['item']['is']('$textProxy')&&!_0x317115['isObject'](_0x4f6bf6['item']),_0x14968a=_0x4d6ced['start']['getLastMatchingPosition'](_0x1bcfe2),_0x2bed0b=_0x4d6ced['end']['getLastMatchingPosition'](_0x1bcfe2,{'direction':'backward'});return(!_0x4d6ced['start']['isEqual'](_0x14968a)||!_0x4d6ced['end']['isEqual'](_0x2bed0b))&&(_0x14968a['isBefore'](_0x2bed0b)?_0x3b140c['updateMarker'](_0x714e70,{'range':_0x3b140c['createRange'](_0x14968a,_0x2bed0b)}):_0x3b140c['removeMarker'](_0x714e70),!0x0);}function Kt(_0x9b14cb){return _0xe5430f(_0x9b14cb);}function Ht(_0x17e717){const _0x1e337c=_0x17e717['start']['nodeAfter'];return _0x1e337c&&_0x1e337c['is']('element');}function qt(_0x41761e,_0x459d5a){return null==_0x41761e['end']['nodeBefore']&&_0x41761e['end']['parent']==_0x41761e['start']['nodeAfter']?zt(_0x41761e['start']['nodeAfter'],_0x459d5a):_0x41761e;}function zt(_0x5d6106,_0x2d076a){const _0xa9ec29=_0x2d076a['schema']['isObject'](_0x5d6106)||_0x2d076a['schema']['isSelectable'](_0x5d6106);return _0x2d076a['createRange'](_0x2d076a['createPositionAt'](_0x5d6106,'before'),_0xa9ec29?_0x2d076a['createPositionAfter'](_0x5d6106):_0x2d076a['createPositionAt'](_0x5d6106,'end'));}function Wt(_0x499b54,_0x4f5462,_0x19d7e7,_0x2755f1){return!!Qt(_0x499b54,_0x4f5462)&&_0x19d7e7['end']['isEqual'](_0x2755f1['start']);}function Qt(_0x3f3c9c,_0x4e32d1){if(!_0x3f3c9c['_isDataLoaded']||!_0x4e32d1['_isDataLoaded'])return!0x1;const _0x51c881=new Set(Object['keys'](_0x3f3c9c['attributes'])),_0x3143c6=new Set(Object['keys'](_0x4e32d1['attributes']));if(_0x51c881['delete']('groupId'),_0x3143c6['delete']('groupId'),0x0==_0x51c881['size']&&0x0==_0x3143c6['size'])return!0x0;if(_0x51c881['size']!=_0x3143c6['size'])return!0x1;const _0x516238={..._0x3f3c9c['attributes']},_0x58fade={..._0x4e32d1['attributes']};return delete _0x516238['groupId'],delete _0x58fade['groupId'],JSON['stringify'](_0x516238)==JSON['stringify'](_0x58fade);}function Xt(_0x1d5eb7,_0x18c853){const _0x2f8402=Yt(_0x1d5eb7['attributes']),_0x225f9f=Yt(_0x18c853);if(!_0x1d5eb7['_isDataLoaded'])return!0x1;for(const _0x2dceab of Object['keys'](_0x225f9f))if(!_0x28517a(_0x2f8402[_0x2dceab],_0x225f9f[_0x2dceab]))return!0x1;return!0x0;}function Yt(_0x21317e){const _0x3eda7a=Object['assign']({},_0x21317e);return delete _0x3eda7a['skipNestingCheck'],delete _0x3eda7a['tablePasteChainId'],_0x3eda7a;}class pe extends/* #__PURE__ -- @preserve */
25
- _0x5e3f38(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x247a4f,_0xd79e22,_0x41b7b5,_0x3804ae){super(),this['model']=_0xd79e22,this['view']=_0x41b7b5,this['commentThreadController']=_0x3804ae,this['_editor']=_0x247a4f,this['_acceptCommand']=_0x247a4f['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x247a4f['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2a6826,_0x483351)=>_0x2a6826||_0x483351),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1b6946=>_0x1b6946&&this['_editor']['model']['canEditAt'](_0xd79e22['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xcabb36=>_0xcabb36&&this['_editor']['model']['canEditAt'](_0xd79e22['getRanges']())),this['_pendingAction']=null,_0x41b7b5['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x41b7b5,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x41b7b5,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x41b7b5,'change:isDirty',()=>{_0x41b7b5['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 _0x3a221e=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3a221e);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x2ff3e8{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1b8fd0,_0x25ae03,_0x4d2501,_0x331016){super(_0x1b8fd0),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x344110(_0x1b8fd0,c(_0x1b8fd0,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x25ae03['authoredAt']),this['bind']('authoredAt')['to'](_0x25ae03),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',_0x25ae03,'authoredAt',this,'descriptionParts',(_0x5dc47f,_0x17ba44,_0x335c2c)=>{const _0x1a3fe4=_0x335c2c['map'](_0x1cb3df=>ls(_0x1cb3df['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5dc47f-0x1,_0x25ae03['author']['name'],_0x17ba44?_0x331016['formatDateTime'](_0x17ba44):'',new DOMParser()['parseFromString'](_0x1a3fe4,'text/html')['body']['textContent']]);}),this['focusables']=new _0x224e22(),this['focusTracker']=new _0x4ff1c4(),this['keystrokes']=new _0x127d38(),this['focusCycler']=new _0x330adf({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x46a206=>_0x46a206['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x25ae03,this['_localUser']=_0x4d2501,this['_config']=_0x331016,_0x331016['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4de5ec(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5cb1e5}=this['_config'];this['commentsListView']=new _0x5cb1e5(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',_0x12694e=>_0x12694e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3f4074,_0x5de7a3)=>_0x3f4074||!!_0x5de7a3);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x586206}=this['_config'],_0x1d7eba=new _0x586206(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x258086=_0x1d7eba['commentInputView'];return _0x1d7eba['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x258086,'value',(_0x4dda10,_0x4ef260,_0x4f5fcf)=>!!_0x4f5fcf||_0x4dda10&&!_0x4ef260),_0x258086['on']('submit',(_0x56314b,_0x72b2fe)=>{this['fire']('addComment',_0x72b2fe),_0x258086['editor']['setData']('');}),_0x258086['on']('cancel',()=>this['focus']()),_0x258086['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1d7eba;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x3ff2ce,_0x42b40b,_0x256437,_0x22204e){super(_0x3ff2ce,_0x42b40b,_0x256437,_0x22204e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2db426=>_0x2db426&&_0x2db426[0x0]?_0x2db426[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x461fd5,_0x2fe70a)=>{let _0x46f4d1='';for(const _0x3d1082 of _0x461fd5)_0x46f4d1+='<p>'+ls(_0x3d1082['content'],_0x3d1082['color'])+'</p>';return _0x2fe70a?_0x46f4d1:ti(_0x46f4d1,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x22204e['SuggestionView'](_0x3ff2ce,_0x42b40b,{'formatDateTime':_0x22204e['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 _0x41d843=this['bindTemplate'],_0x486b5b=[this['suggestionView']];return this['commentsListView']&&_0x486b5b['push'](this['commentsListView']),this['commentThreadInputView']&&_0x486b5b['push'](this['commentThreadInputView']),_0x486b5b['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x41d843['if']('isActive','ck-suggestion-wrapper--active'),_0x41d843['to']('type',_0x2f5b26=>'ck-suggestion-'+_0x2f5b26),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':_0x41d843['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x486b5b};}['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 _0x2ff3e8{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x58ce45,_0x58d5c5,_0x1be1f0){super(_0x58ce45),this['_model']=_0x58d5c5,this['_config']=_0x1be1f0,this['set']('description',''),this['bind']('authoredAt')['to'](_0x58d5c5),this['acceptButton']=this['_createButton'](c(_0x58ce45,'Accept\x20suggestion'),_0x553a6d,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x58ce45,'Discard\x20suggestion'),_0xbd368c,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5c5d23(_0x58ce45,_0x58d5c5['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x224e22([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4ff1c4(),this['keystrokes']=new _0x127d38(),this['focusCycler']=new _0x330adf({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4ab40c=>_0x4ab40c['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x46bf87=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x46bf87['innerHTML']=this['description'],this['on']('change:description',(_0x234a10,_0x2cc958,_0x2f1972)=>{_0x46bf87['innerHTML']=_0x2f1972;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3e7c0b=this['bindTemplate'],_0x3cbd42=[{'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':_0x3e7c0b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3e7c0b['to']('authoredAt',_0xfe1ee8=>this['_config']['formatDateTime'](_0xfe1ee8))}]}]},{'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']&&_0x3cbd42['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':_0x3cbd42}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x44e231,_0x158ab8,_0x5293ba,_0x13e434,_0x44ea8d){const _0x432339=new _0x1f7e05(this['locale']);return _0x432339['set']({'label':_0x44e231,'icon':_0x158ab8,'tooltip':!0x0,'tooltipPosition':_0x44ea8d}),_0x432339['extendTemplate']({'attributes':{'class':_0x5293ba}}),_0x432339['on']('execute',()=>{this['fire'](_0x13e434,this['_model']['id']);}),_0x432339;}['_setupKeyboardNavigation'](){const _0x2ea3d2=this['element'];this['keystrokes']['listenTo'](_0x2ea3d2);for(const _0x3fe485 of this['focusables'])this['focusTracker']['add'](_0x3fe485['element']),this['keystrokes']['listenTo'](_0x3fe485['element']);this['keystrokes']['set']('enter',(_0x29c4c7,_0x57fe29)=>{_0x2ea3d2===_0x29c4c7['target']&&(this['focusCycler']['focusFirst'](),_0x57fe29());}),this['keystrokes']['set']('esc',(_0x5cdc93,_0x398458)=>{_0x2ea3d2!==_0x5cdc93['target']&&(this['focus'](),_0x398458());});}}class d extends _0x3c8d18{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x16d403,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x20a3bc){super(_0x20a3bc),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2b238f=this['editor']['config'];_0x2b238f['define']('trackChanges.SuggestionThreadView',fe),_0x2b238f['define']('trackChanges.SuggestionView',we),_0x2b238f['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2b238f['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x30d07d,_0x475cf4){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4ccf11,_0x4976a3]of this['_handleControllerBuffer']){const _0x498cf4=this['_suggestionToController']['has'](_0x4ccf11);_0x498cf4||_0x4976a3?_0x498cf4&&_0x4976a3&&this['_destroyController'](_0x4ccf11):this['_initializeController'](_0x4ccf11);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x30d07d,_0x475cf4);}['init'](){const _0x30e706=this['editor'],_0x1e0724=_0x30e706['plugins']['get']('TrackChangesEditing'),_0x14873c=_0x30e706['plugins']['get']('Annotations'),_0x3a8ada=_0x30e706['plugins']['get']('EditorAnnotations'),_0xf81972=_0x30e706['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3a8ada['addSourceCollector'](()=>{const _0x306ee4=[];for(const [_0x3c6b13,_0x42ce79]of Array['from'](this['_suggestionToController'])){const _0x8fc42b=_0x3c6b13['getAllAdjacentSuggestions'](),_0x2eca56=[];for(const _0x24bafa of _0x8fc42b){if(!_0x24bafa['isInContent'])continue;if(_0x24bafa['isMultiRange']){_0x2eca56['push'](..._0x24bafa['getRanges']());continue;}const _0x4b24c9=_0x24bafa['getFirstRange']();if(_0x2eca56['length']>0x0){const _0xa1cd45=_0x2eca56[0x0]['getJoined'](_0x4b24c9);if(_0xa1cd45){_0x2eca56[0x0]=_0xa1cd45;continue;}}_0x2eca56['push'](_0x4b24c9);}_0x306ee4['push']([_0x42ce79['view'],_0x2eca56]);}return _0x306ee4;}),this['listenTo'](_0x1e0724,'suggestionLoaded',(_0x327035,_0x3ddbb9)=>{this['listenTo'](_0x3ddbb9,'change:previous',(_0x33937a,_0x3ef1f5,_0x327a48,_0x3cb968)=>{_0x3ddbb9['isInContent']&&(null==_0x327a48?(this['_updateController'](_0x3cb968['head']),this['_handleSuggestionControllerDelayed'](_0x3ddbb9,!0x1)):(this['_updateController'](_0x327a48['head']),null==_0x3cb968&&this['_handleSuggestionControllerDelayed'](_0x3ddbb9,!0x0)));}),null!==_0x3ddbb9['previous']?this['_updateController'](_0x3ddbb9['head']):this['_handleSuggestionControllerDelayed'](_0x3ddbb9,!0x1);}),this['listenTo'](_0x1e0724,'suggestionUnloaded',(_0x32a141,_0x3d74ae,_0x3b4ce0)=>{this['stopListening'](_0x3d74ae,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3d74ae),this['_suggestionToController']['has'](_0x3d74ae)&&this['_destroyController'](_0x3d74ae),_0x3b4ce0&&this['_updateController'](_0x3b4ce0['head']);}),this['listenTo'](_0x1e0724,'suggestionChanged',(_0x246c80,_0x29720f)=>{this['_updateController'](_0x29720f);}),this['listenTo'](_0x14873c,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xf81972,'addComment',(_0x3cddc8,{threadId:_0x4177ca,isFromAdapter:_0x1a41fb})=>{if(_0x1a41fb||!_0x1e0724['hasSuggestion'](_0x4177ca))return;const _0x5db4e5=_0x1e0724['getSuggestion'](_0x4177ca);this['_suggestionToController']['get'](_0x5db4e5)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2c1c27=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5a0779;for(const _0x596b97 in _0x2c1c27){const _0x5988c6=_0x596b97,_0x4b5c95=_0x2c1c27[_0x5988c6];if('trackChangesLicenseKeyValid'==_0x4b5c95||'trackChangesLicenseKeyInvalid'==_0x4b5c95||'trackChangesLicenseKeyExpired'==_0x4b5c95||'trackChangesLicenseKeyDomainLimit'==_0x4b5c95||'trackChangesLicenseKeyNotAllowed'==_0x4b5c95||'trackChangesLicenseKeyEvaluationLimit'==_0x4b5c95||'trackChangesLicenseKeyTrialLimit'==_0x4b5c95||'trackChangesLicenseKeyUsageLimit'==_0x4b5c95){delete _0x2c1c27[_0x5988c6],_0x5a0779=_0x4b5c95,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5a0779&&_0x2c1c27['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5a0779&&_0x2c1c27['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5a0779&&_0x2c1c27['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5a0779&&_0x2c1c27['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5a0779&&_0x2c1c27['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5a0779&&_0x2c1c27['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5a0779&&_0x2c1c27['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x6d3713=this['editor']['plugins']['get']('Annotations'),_0x1448b5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f6a31=Array['from'](_0x6d3713['activeAnnotations'],_0x5eff7f=>_0x5eff7f['innerView'])['filter'](_0x344a45=>this['_viewToController']['has'](_0x344a45)),_0x25923e=[];for(const _0x36e2ae of _0x2f6a31){const _0x24a6b4=this['_viewToController']['get'](_0x36e2ae)['model']['getAllAdjacentSuggestions']();_0x25923e['push'](..._0x24a6b4['reduce']((_0xd81a1a,_0x5d60e3)=>[..._0xd81a1a,..._0x5d60e3['getMarkerNames']()],[]));}_0x1448b5['activeMarkers']=_0x25923e;}['_addUIComponentsToFactory'](){const _0x31744b=this['editor'],_0x56cfcf=_0x31744b['locale'],_0x3c284e=c(_0x56cfcf,'Track\x20changes'),_0x3b3fc6=new _0x4362b5([{'type':'switchbutton','model':new _0x1adbb0({'withText':!0x0,'isToggleable':!0x0,'label':_0x3c284e,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1adbb0({'withText':!0x0,'label':c(_0x56cfcf,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1adbb0({'withText':!0x0,'label':c(_0x56cfcf,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1adbb0({'withText':!0x0,'label':c(_0x56cfcf,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1adbb0({'withText':!0x0,'label':c(_0x56cfcf,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x31744b['plugins']['has']('TrackChangesPreview')&&_0x3b3fc6['addMany']([{'type':'separator'},{'type':'button','model':new _0x1adbb0({'withText':!0x0,'label':c(_0x56cfcf,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x84b350 of _0x3b3fc6)if(ke(_0x84b350)){const _0x23a99c=_0x31744b['commands']['get'](_0x84b350['model']['commandName']);_0x84b350['model']['bind']('isOn','isEnabled')['to'](_0x23a99c,'value','isEnabled');}_0x31744b['ui']['componentFactory']['add']('trackChanges',_0x3ee4fd=>this['_createToolbarButton'](_0x3ee4fd,_0x3b3fc6,_0x3c284e)),_0x31744b['ui']['componentFactory']['add']('menuBar:trackChanges',_0x218fdb=>this['_createMenuBarMenu'](_0x218fdb,_0x3b3fc6,_0x3c284e));}['_createToolbarButton'](_0x2b3fcb,_0x16c9f1,_0x204fb2){const _0x115e57=_0x3c79d8(_0x2b3fcb,_0x2aa3ca),_0x175d38=this['editor']['commands']['get']('trackChanges');_0x115e57['buttonView']['set']({'tooltip':_0x204fb2,'label':_0x204fb2,'icon':_0x58ff78}),_0x115e57['buttonView']['bind']('isOn')['to'](_0x175d38,'value'),_0x115e57['buttonView']['on']('execute',()=>{_0x175d38['execute'](),this['editor']['editing']['view']['focus']();}),_0x320201(_0x115e57,_0x16c9f1,{'role':'menu'});const _0x38b089=[];for(const _0x3a81f0 of _0x16c9f1)ke(_0x3a81f0)&&_0x38b089['push'](this['editor']['commands']['get'](_0x3a81f0['model']['commandName']));const _0x13a665=_0x115e57['buttonView'];return _0x13a665['actionView']['unbind']('isEnabled'),_0x13a665['arrowView']['unbind']('isEnabled'),_0x13a665['actionView']['bind']('isEnabled')['to'](_0x175d38,'isEnabled'),_0x13a665['arrowView']['bind']('isEnabled')['toMany'](_0x38b089,'isEnabled',(..._0x320523)=>_0x320523['some'](_0x22aaf5=>_0x22aaf5)),_0x115e57['on']('execute',_0x8d6706=>{this['editor']['execute'](_0x8d6706['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x115e57;}['_createMenuBarMenu'](_0x34f19a,_0x5f4489,_0x5967ab){const _0x4cae16=new _0x31e669(_0x34f19a),_0x4dcae7=this['editor']['commands']['get']('trackChanges');_0x4cae16['buttonView']['set']({'label':_0x5967ab,'icon':_0x58ff78});const _0x168121=new _0x37b736(_0x34f19a);for(const _0x21797a of _0x5f4489){if('separator'==_0x21797a['type']){_0x168121['items']['add'](new _0x3c3e72(_0x34f19a));continue;}const _0x2c8a44=new _0x499647(_0x34f19a,_0x4cae16),_0x3d6476=new _0x19f4e8(_0x34f19a),_0x3ebe9d=_0x21797a['model'];_0x3d6476['bind'](...Object['keys'](_0x3ebe9d))['to'](_0x3ebe9d),_0x3d6476['delegate']('execute')['to'](_0x4cae16),_0x3d6476['on']('execute',()=>{this['editor']['execute'](_0x3ebe9d['commandName']),this['editor']['editing']['view']['focus']();}),_0x2c8a44['children']['add'](_0x3d6476),_0x168121['items']['add'](_0x2c8a44);}return _0x4cae16['bind']('isEnabled')['to'](_0x4dcae7,'isEnabled'),_0x4cae16['panelView']['children']['add'](_0x168121),_0x4cae16;}['_initializeController'](_0x29a41e){const _0x5a9b71=this['editor'],_0x1d8ed8=_0x5a9b71['config'],_0x55d9a2=_0x5a9b71['plugins']['get']('Annotations'),_0x36c790=_0x5a9b71['plugins']['get']('CommentsRepository'),_0x2d7104=_0x5a9b71['plugins']['get']('EditorAnnotations'),_0x1c30b1=_0x5a9b71['plugins']['get'](_0x16d403)['me'],_0x45cb92=_0x1d8ed8['get']('trackChanges')['SuggestionThreadView'],_0x2d88c3=_0x1d8ed8['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5d072c,CommentThreadInputView:_0xa5285c}=_0x5a9b71['plugins']['get']('CommentsUI');let _0xca4612,_0x3b08dc,_0x1ce559;this['_annotationViews']['has'](_0x29a41e['id'])?(_0x3b08dc=this['_annotationViews']['get'](_0x29a41e['id']),_0xca4612=_0x3b08dc['mainView']):(_0xca4612=new _0x45cb92(_0x5a9b71['locale'],_0x29a41e,_0x1c30b1,{'disableComments':this['_disableComments'],'editorConfig':{..._0x1d8ed8['get']('comments.editorConfig'),'licenseKey':_0x1d8ed8['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x1d8ed8['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1d8ed8['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1d8ed8['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4de353(_0x1d8ed8['get']('locale'),_0x5a9b71['locale']),'CommentView':_0x1d8ed8['get']('comments')['CommentView'],'CommentsListView':_0x5d072c,'CommentThreadInputView':_0xa5285c,'SuggestionView':_0x2d88c3}),_0xca4612['suggestionView']['acceptButton']['on']('execute',()=>{_0x5a9b71['editing']['view']['focus']();}),_0xca4612['suggestionView']['discardButton']['on']('execute',()=>{_0x5a9b71['editing']['view']['focus']();}),_0x3b08dc=_0x55d9a2['createAnnotationView'](this['editor']['locale'],_0xca4612),_0x3b08dc['bind']('isDirty')['to'](_0xca4612,'isDirty'),_0x3b08dc['bind']('length')['to'](_0xca4612),_0x3b08dc['bind']('type')['to'](_0xca4612,'type',_0x5f00f6=>'suggestion-'+_0x5f00f6),_0xca4612['on']('escape',()=>{_0x1ce559['fire']('escape');}),this['_annotationViews']['set'](_0x29a41e['id'],_0x3b08dc));const _0x1690aa=_0x36c790['createCommentThreadController'](_0x29a41e['commentThread'],_0xca4612),_0x472a9c=new pe(_0x5a9b71,_0x29a41e,_0xca4612,_0x1690aa),_0x450c59=_0x29a41e['getAllAdjacentSuggestions']()['filter'](_0x282a59=>_0x282a59['isInContent']);_0xca4612['descriptionParts']=_0x5a9b71['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x450c59),this['_suggestionToController']['set'](_0x29a41e,_0x472a9c),this['_viewToController']['set'](_0xca4612,_0x472a9c),_0x1ce559=_0x55d9a2['createAnnotation']({'view':_0x3b08dc,'target':()=>{const _0x1b7aa7=[],_0x47488e=_0x29a41e['getAllAdjacentSuggestions']()['filter'](_0x4eb41f=>_0x4eb41f['isInContent']);for(const _0x121477 of _0x47488e)_0x1b7aa7['push'](..._0x121477['getMarkers']());return _0x32245c(_0x5a9b71['editing'],_0x1b7aa7);},'type':()=>'suggestion-'+_0x472a9c['view']['type']}),_0x36c790['_bindAnnotationToEditors'](_0xca4612,_0x1ce559),_0x55d9a2['add'](_0x1ce559),_0x2d7104['registerAnnotation'](_0x1ce559);}['_destroyController'](_0x2397e3){const _0x394c00=this['editor']['plugins']['get']('CommentsRepository'),_0x41b4cf=this['editor']['plugins']['get']('Annotations'),_0x4f7e78=this['_suggestionToController']['get'](_0x2397e3),_0x3f2257=_0x4f7e78['view'],_0x45eca5=_0x41b4cf['getByInnerView'](_0x3f2257);_0x394c00['_unbindEditors'](_0x3f2257),_0x45eca5&&_0x41b4cf['remove'](_0x45eca5),this['_suggestionToController']['delete'](_0x2397e3),this['_viewToController']['delete'](_0x3f2257),_0x4f7e78['destroy']();}['_updateController'](_0x412bcb){if(!_0x412bcb['isInContent']||!this['_suggestionToController']['has'](_0x412bcb))return;const _0x2b213d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1109ca=this['_suggestionToController']['get'](_0x412bcb),_0x37f0c4=_0x412bcb['getAllAdjacentSuggestions']();_0x1109ca['view']['descriptionParts']=_0x2b213d['descriptionFactory']['getDescriptions'](_0x37f0c4);}['destroy'](){for(const _0x2ef9f8 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2ef9f8);for(const _0x1939a5 of this['_annotationViews']['values']())_0x1939a5['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x2e5c01){return'model'in _0x2e5c01;}class k extends _0x3c8d18{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x118b95){this['editor']['plugins']['get'](p)['adapter']=_0x118b95;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x12fba3){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x12fba3);}['getSuggestions']({skipNotAttached:_0x58dbee=!0x1,toJSON:_0x759785=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x58dbee,'toJSON':_0x759785});}['getSuggestion'](_0x1ed734){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1ed734);}}const w=['Pagination'];class T extends _0x3c8d18{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x52ea77=this['editor'];if(_0x52ea77['config']['define']('trackChangesData.editorCreator',_0x16a2e9=>{const _0x28abee=_0x52ea77['model']['document']['getRootNames']()['reduce']((_0x3dc526,_0x5a52fa)=>(_0x3dc526[_0x5a52fa]='',_0x3dc526),{});return _0x52ea77['constructor']['create'](_0x28abee,_0x16a2e9);}),'function'!=typeof _0x52ea77['config']['get']('trackChangesData')['editorCreator'])throw new _0x52b81e('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2993d5){return N(this['editor'],!0x0,_0x2993d5);}['getDataWithDiscardedSuggestions'](_0xe370aa){return N(this['editor'],!0x1,_0xe370aa);}}class D extends _0x3c8d18{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3e15f9){function _0x13dbf3(_0x4dd7d2){return _0x4dd7d2['map'](_0x39d1ca=>String['fromCharCode'](_0x39d1ca))['join']('');}super(_0x3e15f9),this['result']='end',_0x3e15f9[_0x13dbf3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13dbf3([0x76,0x69,0x65,0x77])][_0x13dbf3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x13dbf3([0x61,0x75,0x74,0x6f]),_0x3e15f9[_0x13dbf3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x13dbf3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x13dbf3([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x13dbf3([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x13dbf3([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 Ge(_0x419a98){return void 0x0!==_0x419a98['getRootsAttributes'];}async function N(_0x167fdf,_0x2c3b7f,_0x39aa55){const _0x382e0b=_0x2bb438(_0x167fdf,w);_0x382e0b['plugins']['push'](p,D),_0x382e0b['rootsAttributes']=Ge(_0x167fdf)?_0x167fdf['getRootsAttributes']():void 0x0;const _0x40ceac=document['createDocumentFragment'](),_0x420e92=_0x167fdf['config']['get']('trackChangesData')['editorCreator'],_0x377556=await _0x420e92(_0x382e0b,()=>function(_0x4f2810){const _0x527f74=document['createElement']('div');return _0x4f2810['appendChild'](_0x527f74),_0x527f74;}(_0x40ceac));!function(_0x1cd586,_0x516e15){const _0x3c492f=_0x1cd586['model']['document']['getRootNames']()['reduce']((_0x26029a,_0x433bd7)=>(_0x26029a[_0x433bd7]=_0x1cd586['data']['get']({'rootName':_0x433bd7}),_0x26029a),{}),_0x15686c=_0x1cd586['plugins']['get']('Users')['users']['map'](_0x4e402e=>({'id':_0x4e402e['id'],'name':_0x4e402e['name']})),_0x46c65d=_0x1cd586['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x22f871=_0x1cd586['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3885d8=_0x516e15['plugins']['get']('Users'),_0x4e4a78=_0x516e15['plugins']['get']('TrackChangesEditing'),_0x2dba03=_0x516e15['plugins']['get']('CommentsRepository');for(const _0x7b3c1 of _0x2dba03['getCommentThreads']())_0x7b3c1['remove']();for(const _0x14b0bc of _0x15686c)_0x3885d8['getUser'](_0x14b0bc['id'])||_0x3885d8['addUser'](_0x14b0bc);_0x3885d8['me']||_0x3885d8['useAnonymousUser']();for(const _0x1df98d of _0x22f871)_0x2dba03['addCommentThread'](_0x1df98d);for(const _0x3a43c9 of _0x46c65d)_0x4e4a78['addSuggestionData'](_0x3a43c9);_0x516e15['data']['set'](_0x3c492f);}(_0x167fdf,_0x377556),_0x377556['execute'](_0x2c3b7f?'acceptAllSuggestions':'discardAllSuggestions');const _0x3132de=Ge(_0x377556)?_0x377556['getFullData'](_0x39aa55):_0x377556['data']['get'](_0x39aa55);return await _0x377556['destroy'](),_0x3132de;}class Me extends _0x2ff3e8{['options'];constructor(_0x444f13,_0x2a470e){super(_0x444f13),this['options']=_0x2a470e,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'](_0x34c827,_0xdf2f90){if(!this['element'])return;const _0x5c34e3=[];for(const [_0x1f8d93,_0x54d5a8]of _0x34c827){const _0x3bdda6=document['createElement']('div');_0x3bdda6['setAttribute']('data-ck-root-name',_0x1f8d93),_0x3bdda6['className']=_0x54d5a8['classes']+'\x20ck-track-changes-preview__root-container',_0x3bdda6['innerHTML']=_0x54d5a8['content'],_0x5c34e3['push'](_0x3bdda6);}_0xdf2f90(this['element'],_0x5c34e3),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x5a8501{constructor(_0x2b898e){super(_0x2b898e),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x384ac3=this['editor'],_0x46db16=_0x384ac3['locale'],_0x338f77=_0x384ac3['plugins']['get']('Dialog');let _0x5efd3e;const _0x218ec7=function(_0x519ddf){const _0x4473fa={};if('editables'in _0x519ddf['ui']['view']){for(const [_0x3f6c2b,_0x1d1d1c]of Object['entries'](_0x519ddf['ui']['view']['editables']))_0x4473fa[_0x3f6c2b]=_0x1d1d1c['element'];}else _0x4473fa[_0x519ddf['model']['document']['getRootNames']()[0x0]]=_0x519ddf['ui']['view']['editable']['element'];return _0x4473fa;}(_0x384ac3),_0x4b3572=function(_0x2f8e5d){let _0x348da3=0x0;for(const _0x33fa9b of Object['values'](_0x2f8e5d))_0x348da3=Math['max'](_0x348da3,_0x33fa9b['getBoundingClientRect']()['width']);let _0xbbe690=0x0;for(const _0x1adf94 of Object['values'](_0x2f8e5d))_0xbbe690+=_0x1adf94['getBoundingClientRect']()['height'];const _0x6b2386=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x547688=Math['min'](_0xbbe690,_0x6b2386);return{'width':_0x348da3,'height':_0x547688};}(_0x218ec7);_0x338f77['show']({'id':'finalContentPreview','title':c(_0x46db16,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x46db16,{'dialogRects':_0x4b3572}),'onHide':()=>{_0x5efd3e['detachFromDom']();},'onShow':()=>{_0x384ac3['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x287171=>{const _0x156229=this['_standarizeRootsData'](_0x287171,_0x384ac3,_0x218ec7);_0x338f77['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x156229,_0x384ac3['config']['get']('trackChanges.preview.renderFunction'));}),_0x5efd3e=new _0x51d00a(_0x46db16,[_0x338f77['view']]),_0x5efd3e['attachToDom'](),_0x5efd3e['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x384ac3['once']('destroy',()=>{_0x5efd3e['detachFromDom']();});const _0x24eb3=_0x338f77['view']['headerView']['class'];_0x338f77['view']['headerView']['class']=_0x24eb3?_0x24eb3+'\x20ck-reset_all':'ck-reset_all',_0x338f77['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x338f77['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0xc923d7=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x58904f=_0xc923d7['previewMode'],_0x1fdc9c={};if('$labels'===_0x58904f){for(const _0x292a60 of _0xc923d7['getMergeFieldsIds']())_0x1fdc9c[_0x292a60]=_0xc923d7['getLabel'](_0x292a60)||_0x292a60;}else{const _0x488609='$defaultValues'===_0x58904f?_0xc923d7['getDefaultValues']():_0xc923d7['getDataSetValues'](_0x58904f,!0x0);for(const _0x576c4f of Object['entries'](_0x488609)){const [_0x326f66,_0x188a84]=_0x576c4f;_0x1fdc9c[_0x326f66]=null!==_0x188a84?_0x188a84:_0xc923d7['getLabel'](_0x326f66)||_0x326f66;}}return{'mergeFieldsData':_0x1fdc9c};}['_standarizeRootsData'](_0x526094,_0x43b789,_0x5ab23f){let _0x734ecf;if('string'==typeof _0x526094){const _0x3f5b18=_0x43b789['model']['document']['getRootNames']()[0x0];_0x734ecf={[_0x3f5b18]:_0x526094};}else _0x734ecf=_0x526094;const _0x161769=this['_fixMediaEmbeds'](_0x734ecf,_0x43b789),_0x1222e3=function(_0x468997,_0x450651){for(const [_0x35a171,_0x47fc91]of _0x468997)_0x47fc91['classes']=_0x450651[_0x35a171]['classList']['value']['replace']('ck-focused','');return _0x468997;}(this['_sortRoots'](_0x43b789)['reduce']((_0x4e8f69,_0x417acb)=>(_0x4e8f69['push']([_0x417acb,{'content':_0x161769[_0x417acb],'classes':''}]),_0x4e8f69),[]),_0x5ab23f);return _0x1222e3;}['_fixMediaEmbeds'](_0x2fdf1a,_0x29bbaa){if(!_0x29bbaa['plugins']['has']('MediaEmbedEditing'))return _0x2fdf1a;const _0x30bc43=_0x29bbaa['plugins']['get']('MediaEmbedEditing');for(const [_0x35fac8,_0xfc492]of Object['entries'](_0x2fdf1a)){const _0x49a7f5=document['createElement']('div');_0x49a7f5['innerHTML']=_0xfc492,(_0x49a7f5['querySelectorAll']('figure.media')['forEach'](_0x1fc4c5=>{const _0x42f7e7=_0x1fc4c5['querySelector']('oembed');if(_0x42f7e7){const _0x2350dc=_0x42f7e7['getAttribute']('url');if(_0x2350dc){const _0x1f8475=_0x30bc43['registry']['getMediaViewElement'](new _0x147673(_0x29bbaa['editing']['view']['document']),_0x2350dc,{'elementName':'','renderForEditingView':!0x0}),_0x5dbcec=document['createElement']('div');_0x5dbcec['classList']['add']('ck-media__wrapper'),_0x1f8475['render'](_0x5dbcec,_0x29bbaa['editing']['view']['domConverter']),_0x42f7e7['replaceWith'](_0x5dbcec);}}}),_0x2fdf1a[_0x35fac8]=_0x49a7f5['innerHTML']);}return _0x2fdf1a;}['_sortRoots'](_0x178a11){if(!function(_0x33f1e6){return void 0x0!==_0x33f1e6['getRootsAttributes'];}(_0x178a11))return _0x178a11['model']['document']['getRootNames']();const _0x4e8a62=[],_0x435649=new Map();for(const _0x13acef of _0x178a11['model']['document']['getRootNames']()){const _0x37e2d4=_0x178a11['editing']['view']['getDomRoot'](_0x13acef)['getClientRects']()['item'](0x0);_0x4e8a62['push'](_0x13acef),_0x435649['set'](_0x13acef,_0x37e2d4);}return _0x4e8a62['sort']((_0x13723d,_0x375d22)=>{const _0x5af8cb=_0x435649['get'](_0x13723d),_0x24195f=_0x435649['get'](_0x375d22);return _0x5af8cb['y']-_0x24195f['y']||_0x5af8cb['x']-_0x24195f['x'];}),_0x4e8a62;}}class te extends _0x3c8d18{static get['requires'](){return[T,_0x1e172d];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x39418e){super(_0x39418e),_0x39418e['commands']['add']('previewFinalContent',new re(this['editor'])),_0x39418e['config']['define']('trackChanges.preview.renderFunction',(_0x18b045,_0x4a3e47)=>{for(const _0x2af4d9 of _0x4a3e47)_0x18b045['appendChild'](_0x2af4d9);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as _0x4ca0ae,Plugin as _0x51b88f,PendingActions as _0x37d5c4}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x463d5f,ObservableMixin as _0x55f0de,uid as _0x35f42a,priorities as _0x46c4ae,insertToPriorityArray as _0x23eed4,logWarning as _0x1a52d0,getEnvKeystrokeText as _0x5733f7,FocusTracker as _0x5392ce,KeystrokeHandler as _0x37db49,Collection as _0xef626d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x1db0e4,IconCancel as _0x587379,IconTrackChanges as _0x4c3e2c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x4948c5,View as _0x14eefd,ViewCollection as _0x53758e,FocusCycler as _0x627706,ViewModel as _0x311582,createDropdown as _0x599048,SplitButtonView as _0x404227,addListToDropdown as _0x2bc843,MenuBarMenuView as _0x24f759,MenuBarMenuListView as _0x5b5e20,ListSeparatorView as _0x3aff66,MenuBarMenuListItemView as _0x254a95,MenuBarMenuListItemButtonView as _0x31a8c8,BodyCollection as _0x1c6ac0,Dialog as _0x3ce0b3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x122585,hashObject as _0x248bd8,surroundingMarkersDetector as _0x4b370b,FOCUS_ANNOTATION_KEYSTROKE as _0xf69f75,AriaDescriptionView as _0x36005b,setupThreadKeyboardNavigation as _0x3f0856,trimHtml as ti,UserView as _0x2098f0,LateFocusButtonView as _0xaa86d9,getDateTimeFormatter as _0x113b40,getAllMarkersDomElementsSorted as _0x301d97,sanitizeEditorConfig as _0x43abcc}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x447e49,LiveRange as _0x221782,LivePosition as _0x547df0,DowncastWriter as _0x4c4a9a}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x9f7b0f,toWidget as _0xd1b277}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x538e14,set as _0x419966,isEqual as _0x1bd547,unset as _0x4716ab,omit as Ft}from'es-toolkit/compat';import{Delete as _0x50b909,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x263acd}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x55982e}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x4ca0ae{['_enabledCommands'];constructor(_0x43701f,_0x2704cb){super(_0x43701f),this['_enabledCommands']=_0x2704cb,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 _0x3e7691 of this['editor']['commands']['commands']())_0x3e7691['affectsData']&&!this['_enabledCommands']['has'](_0x3e7691)&&_0x3e7691['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x26b068 of this['editor']['commands']['commands']())_0x26b068['affectsData']&&!this['_enabledCommands']['has'](_0x26b068)&&_0x26b068['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x4ca0ae{['_suggestions'];constructor(_0x12aa2d,_0x33222b){super(_0x12aa2d),this['_suggestions']=_0x33222b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x36732b){const _0x47725c=this['_suggestions']['get'](_0x36732b);if(!_0x47725c)throw new _0x463d5f('track-changes-accept-suggestion-not-found',this);const _0x168a32=_0x47725c['getRanges']();this['editor']['model']['canEditAt'](_0x168a32)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x47725c);}}class R extends _0x4ca0ae{['_suggestions'];constructor(_0x5d41d1,_0x53666e){super(_0x5d41d1),this['_suggestions']=_0x53666e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x444c1d){const _0x1ef8ba=this['_suggestions']['get'](_0x444c1d);if(!_0x1ef8ba)throw new _0x463d5f('track-changes-discard-suggestion-not-found',this);const _0x53e674=_0x1ef8ba['getRanges']();this['editor']['model']['canEditAt'](_0x53e674)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1ef8ba);}}function ls(_0xdd1544,_0xaa66ca){let _0x3e091b='';return _0x3e091b+=_0xdd1544['split']('*')['map']((_0x45619a,_0x352886)=>_0x352886%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x45619a)+'</span>':nn(_0x45619a))['join'](''),_0xaa66ca&&(_0x3e091b+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xaa66ca['value']+'\x22\x20title=\x22'+_0xaa66ca['title']+'\x22></span>'),_0x3e091b;}function nn(_0xc6d32c){const _0x314c40=document['createElement']('span');return _0x314c40['innerText']=_0xc6d32c,_0x314c40['innerHTML'];}function ts(_0x4492d2){return _0x4492d2['sort']((_0x1edb08,_0x254680)=>'deletion'==_0x1edb08['type']&&'deletion'!=_0x254680['type']?-0x1:'deletion'!=_0x1edb08['type']&&'deletion'==_0x254680['type']?0x1:0x0);}function to(_0x8cec1b,_0x30d079){let _0x31711f,_0xf0d4c3=0x0;const _0x1f5ed8=[],_0x4709b2=_0x30d079['schema'];for(;_0xf0d4c3<_0x8cec1b['length'];){const _0x581648=_0x8cec1b[_0xf0d4c3],_0x1cee86=_0x8cec1b[_0xf0d4c3+0x1];_0x31711f||(_0x31711f=_0x30d079['createPositionBefore'](_0x581648)),on(_0x30d079,_0x581648,_0x1cee86)||(_0x1f5ed8['push'](_0x30d079['createRange'](_0x31711f,_0x4709b2['isObject'](_0x581648)?_0x30d079['createPositionAfter'](_0x581648):_0x30d079['createPositionAt'](_0x581648,'end'))),_0x31711f=null),_0xf0d4c3++;}return _0x1f5ed8;}function on(_0x1c9019,_0x4bf28a,_0x263df4){if(!_0x263df4)return!0x1;const _0x22b3e4=_0x1c9019['createPositionAfter'](_0x4bf28a),_0x58c2b1=_0x1c9019['createPositionBefore'](_0x263df4);return _0x22b3e4['isTouching'](_0x58c2b1);}function rs(_0x1652ab,_0x4e1d20,_0x439402){for(;_0x439402['length'];){const _0x33b8ee=_0x439402['splice'](0x0,0x64);_0x1652ab['change'](()=>{for(const _0x23ce8b of _0x33b8ee)_0x23ce8b['isInContent']&&_0x4e1d20['execute'](_0x23ce8b['id']);});}}class x extends _0x4ca0ae{['_command'];['_suggestions'];constructor(_0x2079bb,_0x366a52,_0x2d8dcb){super(_0x2079bb),this['_command']=_0x366a52,this['_suggestions']=_0x2d8dcb,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1b6e8c=Array['from'](this['_suggestions']['values']())['some'](_0x4d9d6f=>_0x4d9d6f['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1b6e8c;}['execute'](){const _0x246d63=ts(Array['from'](this['_suggestions']['values']()));for(const _0x53d0f7 of _0x246d63){const _0x273a96=_0x53d0f7['getRanges']();if(!this['editor']['model']['canEditAt'](_0x273a96))return;}rs(this['editor']['model'],this['_command'],_0x246d63);}}class E extends _0x4ca0ae{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x217c5f,_0x5cb216,_0x1f16b8){super(_0x217c5f),this['_command']=_0x5cb216,this['_suggestions']=_0x1f16b8,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3e5c2f=this['editor']['model']['document']['selection'],_0x5908a3=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x267337,_0x2aac80){const _0x335ca2=Array['from'](_0x267337['getRanges']()),_0x3c6a05=new Set();for(const _0x5df74f of _0x2aac80)if(_0x5df74f['isInContent']){for(const _0x589c92 of _0x335ca2)for(const _0x16ce2d of _0x5df74f['getRanges']())(_0x589c92['isIntersecting'](_0x16ce2d)||_0x267337['isCollapsed']&&!_0x5df74f['isMultiRange']&&_0x5df74f['next']&&_0x16ce2d['end']['isTouching'](_0x589c92['start']))&&_0x3c6a05['add'](_0x5df74f);}return _0x3c6a05;}(_0x3e5c2f,_0x5908a3),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x18c120=ts(Array['from'](this['_selectedSuggestions']));for(const _0x1625d3 of _0x18c120){const _0x3aed42=_0x1625d3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3aed42))return;}rs(this['editor']['model'],this['_command'],_0x18c120);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x55f0de(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x23ab60,_0x87c247){super(),this['id']=_0x87c247['id'],this['type']=_0x87c247['type'],this['subType']=_0x87c247['subType']||null,this['author']=_0x87c247['author'],this['creator']=_0x87c247['creator']||_0x87c247['author'],this['isExternal']=Boolean(_0x87c247['attributes']&&_0x87c247['attributes']['@external']),this['data']=null,this['_model']=_0x23ab60,this['_onAccept']=_0x87c247['onAccept'],this['_onDiscard']=_0x87c247['onDiscard'],this['_onAttributesChange']=_0x87c247['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x87c247['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 _0x119b38=this;for(;_0x119b38['previous'];)_0x119b38=_0x119b38['previous'];return _0x119b38;}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'](_0x2f5e17){this['_markerNames']['add'](_0x2f5e17);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2b0635=>this['_model']['markers']['get'](_0x2b0635))['filter'](_0x4e6254=>_0x4e6254);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4c5a34=>{for(const _0x3de9a1 of this['getMarkers']())_0x4c5a34['removeMarker'](_0x3de9a1);}),this['_markerNames']['clear']();}['removeMarker'](_0x39be33){this['_model']['change'](_0x1d3527=>{_0x1d3527['removeMarker'](_0x39be33);}),this['_markerNames']['delete'](_0x39be33);}['addRange'](_0x14f4e1){const _0x4552fe='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x4552fe),this['_model']['change'](_0x310e2f=>{_0x310e2f['addMarker'](_0x4552fe,{'range':_0x14f4e1,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xc77965){for(const _0x2911ac of this['getRanges']())if(_0x2911ac['isIntersecting'](_0xc77965))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3bf655=>_0x3bf655['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4ce1ab,_0x15194b)=>[..._0x4ce1ab,..._0x15194b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x433450=this['getRanges']();if(0x1!=_0x433450['length'])return null;const _0x323de0=_0x433450[0x0],_0x18f392=_0x323de0['start']['nodeAfter'],_0x3ddf24=_0x323de0['end']['nodeBefore'];return _0x18f392 instanceof _0x447e49?_0x18f392!=_0x3ddf24?null:_0x18f392: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 _0x60fc71=[];let _0x1a3f0c=this['head'];for(;_0x1a3f0c;)_0x60fc71['push'](_0x1a3f0c),_0x1a3f0c=_0x1a3f0c['next'];return _0x60fc71;}['setAttribute'](_0x3b7566,_0x9e6779){const _0x1e4f53=_0x538e14(this['attributes']);_0x419966(_0x1e4f53,_0x3b7566,_0x9e6779),_0x1bd547(_0x1e4f53,this['attributes'])||(this['attributes']=_0x1e4f53,this['_onAttributesChange'](_0x1e4f53));}['removeAttribute'](_0x4b3a65){const _0xb1b948=_0x538e14(this['attributes']);_0x4716ab(_0xb1b948,_0x4b3a65),_0x1bd547(_0xb1b948,this['attributes'])||(this['attributes']=_0xb1b948,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 _0x35f42a()['substr'](0x1,0x5);}}function c(_0x267d04,_0x20d2be,_0x3ea4d1){const _0x5d2150=_0x267d04['t'],t=_0x267d04['t'];switch(_0x20d2be){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',_0x3ea4d1);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3ea4d1);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3ea4d1);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3ea4d1);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3ea4d1);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',_0x3ea4d1);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3ea4d1);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',_0x3ea4d1);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3ea4d1);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3ea4d1);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3ea4d1);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3ea4d1);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3ea4d1);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3ea4d1);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3ea4d1);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3ea4d1);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3ea4d1);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3ea4d1);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3ea4d1);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3ea4d1);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3ea4d1);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3ea4d1);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3ea4d1);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3ea4d1);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x3ea4d1);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'},_0x3ea4d1);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x3ea4d1);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x3ea4d1);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3ea4d1);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3ea4d1);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3ea4d1);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3ea4d1);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3ea4d1);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'},_0x3ea4d1);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3ea4d1);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3ea4d1);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3ea4d1);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3ea4d1);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'},_0x3ea4d1);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3ea4d1);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'},_0x3ea4d1);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x3ea4d1);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3ea4d1);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'},_0x3ea4d1);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3ea4d1);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'},_0x3ea4d1);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3ea4d1);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3ea4d1);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'},_0x3ea4d1);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3ea4d1);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 _0x5d2150({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3ea4d1);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5d2150({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3ea4d1);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3ea4d1);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'},_0x3ea4d1);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'},_0x3ea4d1);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'},_0x3ea4d1);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x20d2be;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5dafc0,_0x29cb7a){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5dafc0,this['_locale']=_0x29cb7a;}['getDescriptions'](_0x5cd6b6){const _0x3c3a38=[],_0x545041=new Set(),_0x34bb00=new Set();for(let _0x6b430=0x0;_0x6b430<_0x5cd6b6['length'];_0x6b430++){const _0x46ff00=_0x5cd6b6[_0x6b430];if(!_0x46ff00['isInContent'])continue;const _0x50a12f=this['_handleCustomCallbackDescription'](_0x46ff00);if(_0x50a12f){if(null!=_0x46ff00['subType']){if(_0x545041['has'](_0x46ff00['subType']))continue;_0x545041['add'](_0x46ff00['subType']);}_0x3c3a38['push'](_0x50a12f);}else{if('attribute'!=_0x46ff00['type'])'insertion'!=_0x46ff00['type']&&'deletion'!=_0x46ff00['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3c3a38,_0x46ff00,_0x5cd6b6[_0x6b430+0x1]);else{const _0x1ed00e=_0x46ff00['data']['key'];if(_0x34bb00['has'](_0x1ed00e))continue;_0x34bb00['add'](_0x46ff00['data']['key']),_0x1ed00e==u?this['_handleRenameSuggestionDescription'](_0x3c3a38,_0x46ff00):this['_handleAttributeSuggestionDescription'](_0x3c3a38,_0x46ff00);}}}return this['_resolveDescriptionItems'](_0x3c3a38);}['registerDescriptionCallback'](_0x29f579){this['_customCallbacks']['push'](_0x29f579);}['registerElementLabel'](_0x28285d,_0x4403e7,_0x567217=_0x46c4ae['normal']){'function'==typeof _0x28285d?_0x23eed4(this['_itemLabelsCallbacks'],{'matchingCallback':_0x28285d,'label':_0x4403e7,'priority':_0x567217}):this['_itemLabels']['set'](_0x28285d,_0x4403e7);}['registerAttributeLabel'](_0x1a25f7,_0x219efc){this['_attributeLabels']['set'](_0x1a25f7,_0x219efc);}['getItemLabel'](_0xae7226,_0x224ec5=0x1){let _0x1120d1;for(const _0x5f4204 of this['_itemLabelsCallbacks'])if(_0x5f4204['matchingCallback'](_0xae7226)){_0x1120d1=_0x5f4204['label'];break;}return _0x1120d1||(_0x1120d1=this['_itemLabels']['get'](_0xae7226['name'])),_0x1120d1?_0x1120d1(_0x224ec5):0x1!==_0x224ec5?_0x224ec5+'\x20'+_0xae7226['name']+'s':''+_0xae7226['name'];}['_addDescriptionItems'](_0x4f7f64,_0x2c5043){const _0x5f5724=_0x2c5043['getFirstRange']()['getWalker'](),_0x2c6843='insertion'==_0x2c5043['type']?'add':'remove';for(const _0xe19bdc of _0x5f5724){const _0x3fd4bd=_0xe19bdc['item'],_0x5040e1=_0x4f7f64[_0x4f7f64['length']-0x1];if(_0x3fd4bd['is']('$textProxy'))_0x5040e1&&_0x5040e1['type']['indexOf']('Container')>-0x1&&_0x4f7f64['pop'](),_0x5040e1&&'text'==_0x5040e1['type']?_0x5040e1[_0x2c6843]+=_0x3fd4bd['data']:_0x4f7f64['push']({'type':'text','add':'add'==_0x2c6843?_0x3fd4bd['data']:'','remove':'remove'==_0x2c6843?_0x3fd4bd['data']:''});else{if(this['_schema']['isObject'](_0x3fd4bd)){const _0x58d7eb=_0x3fd4bd;if(_0x5040e1&&_0x5040e1['type']['indexOf']('Container')>-0x1&&_0x4f7f64['pop'](),'elementEnd'==_0xe19bdc['type'])continue;_0x5040e1&&_0x5040e1['type']==_0x2c6843+'Object'&&_0x5040e1['element']['name']==_0x58d7eb['name']?_0x5040e1['quantity']++:_0x4f7f64['push']({'type':_0x2c6843+'Object','element':_0x58d7eb,'quantity':0x1}),_0x5f5724['skip'](_0x4d7e2b=>!('elementEnd'==_0x4d7e2b['type']&&_0x4d7e2b['item']==_0x3fd4bd));}else{if(this['_schema']['checkChild'](_0x3fd4bd,'$text')||_0x3fd4bd['is']('element','softBreak')){const _0x360bfe=_0x3fd4bd;if('add'==_0x2c6843&&'elementStart'==_0xe19bdc['type']||'remove'==_0x2c6843&&'elementEnd'==_0xe19bdc['type'])continue;if(_0x5040e1&&-0x1==_0x5040e1['type']['indexOf']('Container')){'text'==_0x5040e1['type']&&(_0x5040e1[_0x2c6843]+='\x0a');continue;}let _0x4e61f7;if(_0x4e61f7='add'==_0x2c6843?_0x360bfe['nextSibling']&&!this['_schema']['isObject'](_0x360bfe['nextSibling'])?_0x360bfe['nextSibling']:null:_0x360bfe['previousSibling']&&!this['_schema']['isObject'](_0x360bfe['previousSibling'])?_0x360bfe['previousSibling']:null,_0x360bfe['isEmpty']||_0x4e61f7&&_0x4e61f7['isEmpty']){const _0x383395=_0x4e61f7&&_0x4e61f7['isEmpty']?_0x4e61f7:_0x360bfe;_0x5040e1&&_0x5040e1['type']==_0x2c6843+'EmptyContainer'&&_0x5040e1['element']['name']==_0x383395['name']?_0x5040e1['quantity']++:_0x4f7f64['push']({'type':_0x2c6843+'EmptyContainer','element':_0x383395,'quantity':0x1});}else _0x4f7f64['push']({'type':_0x2c6843+'Container','element':_0x360bfe});}}}}}['_resolveDescriptionItems'](_0x47a0ea){const _0x44da02=this['_locale'],_0x48ad80=[],_0x3f9b24=[],_0x13fbd4=[];for(const _0x1a3696 of _0x47a0ea)switch(_0x1a3696['type']){case'text':if(_0x1a3696['add']=_0x1a3696['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1a3696['remove']=_0x1a3696['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1a3696['add']&&''!=_0x1a3696['remove']){_0x48ad80['push']({'type':'replace','content':c(_0x44da02,'REPLACE_TEXT',['\x22'+_0x1a3696['remove']+'\x22','\x22'+_0x1a3696['add']+'\x22'])});continue;}if(null!=_0x1a3696['add']['match'](/^ +$/)){_0x48ad80['push']({'type':'insertion','content':c(_0x44da02,'*Insert:*\x20%0',c(_0x44da02,'ELEMENT_SPACE',_0x1a3696['add']['length']))});continue;}if(null!=_0x1a3696['remove']['match'](/^ +$/)){_0x48ad80['push']({'type':'deletion','content':c(_0x44da02,'*Remove:*\x20%0',c(_0x44da02,'ELEMENT_SPACE',_0x1a3696['remove']['length']))});continue;}if(''!=_0x1a3696['add']){_0x48ad80['push']({'type':'insertion','content':c(_0x44da02,'*Insert:*\x20%0','\x22'+_0x1a3696['add']+'\x22')});continue;}_0x48ad80['push']({'type':'deletion','content':c(_0x44da02,'*Remove:*\x20%0','\x22'+_0x1a3696['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x48ad80['push']({'type':'insertion','content':c(_0x44da02,'*Insert:*\x20%0',this['getItemLabel'](_0x1a3696['element'],_0x1a3696['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x48ad80['push']({'type':'deletion','content':c(_0x44da02,'*Remove:*\x20%0',this['getItemLabel'](_0x1a3696['element'],_0x1a3696['quantity']))});continue;case'addContainer':_0x48ad80['push']({'type':'insertion','content':c(_0x44da02,'*Split:*\x20%0',this['getItemLabel'](_0x1a3696['element'],_0x1a3696['quantity']))});continue;case'removeContainer':_0x48ad80['push']({'type':'deletion','content':c(_0x44da02,'*Merge:*\x20%0',this['getItemLabel'](_0x1a3696['element'],_0x1a3696['quantity']))});continue;case'addFormat':_0x3f9b24['push'](_0x1a3696['key']);continue;case'removeFormat':_0x13fbd4['push'](_0x1a3696['key']);continue;default:_0x48ad80['push'](_0x1a3696);}if(_0x3f9b24['length']){const _0x2dd925=_0x3f9b24['map'](_0x2cefd6=>this['_attributeLabels']['has'](_0x2cefd6)?this['_attributeLabels']['get'](_0x2cefd6):_0x2cefd6)['join'](',\x20');_0x48ad80['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x2dd925)});}if(_0x13fbd4['length']){const _0x2448ce=_0x13fbd4['map'](_0xd9417a=>this['_attributeLabels']['has'](_0xd9417a)?this['_attributeLabels']['get'](_0xd9417a):_0xd9417a)['join'](',\x20');_0x48ad80['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x2448ce)});}return _0x48ad80;}['_handleCustomCallbackDescription'](_0x25b1b2){for(const _0x16d142 of this['_customCallbacks']){const _0x58e610=_0x16d142(_0x25b1b2);if(_0x58e610&&'type'in _0x58e610)return _0x58e610;}}['_handleAttributeSuggestionDescription'](_0xd1336a,_0x17e5e0){const _0x726518=_0x17e5e0['data'],_0x1599cc=void 0x0===_0x726518['newValue']?'removeFormat':'addFormat';_0xd1336a['push']({'type':_0x1599cc,'key':_0x726518['key']});}['_handleRenameSuggestionDescription'](_0x56b825,_0x53ebff){_0x56b825['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x53ebff['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1fd228,_0x4a4315,_0x70ec09){if(this['_addDescriptionItems'](_0x1fd228,_0x4a4315),_0x70ec09&&_0x70ec09['getFirstRange']()&&!_0x4a4315['getFirstRange']()['end']['isEqual'](_0x70ec09['getFirstRange']()['start'])){const _0x57841d=_0x1fd228[_0x1fd228['length']-0x1],_0x38ae1e='insertion'==_0x4a4315['type']?'add':'remove';_0x57841d&&'text'==_0x57841d['type']&&(_0x57841d[_0x38ae1e]+='\x0a');}}}class U extends _0x51b88f{['afterInit'](){const _0x43aa94=this['editor'],_0x4974c1=_0x43aa94['plugins']['get']('TrackChangesEditing');_0x43aa94['commands']['get']('showAIAssistant')&&_0x4974c1['enableCommand']('showAIAssistant');}}class V extends _0x51b88f{['afterInit'](){const _0x148947=this['editor'],_0x485139=_0x148947['locale'];if(!_0x148947['plugins']['has']('AlignmentEditing'))return;const _0x56a8eb=_0x148947['plugins']['get']('TrackChangesEditing');_0x56a8eb['enableDefaultAttributesIntegration']('alignment'),_0x56a8eb['registerBlockAttribute']('alignment'),_0x56a8eb['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x485139,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46827a=this['editor'],_0x6cb84c=_0x46827a['locale'];_0x46827a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a98ec=>{if('formatBlock'!=_0x2a98ec['type'])return;const {data:_0x49bbc4}=_0x2a98ec;if(_0x49bbc4&&'alignment'==_0x49bbc4['commandName']){const _0x1cb24f=_0x49bbc4['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x6cb84c,'*Format:*\x20%0',function(_0x1938be){switch(_0x1938be){case'left':return c(_0x6cb84c,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x6cb84c,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x6cb84c,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x6cb84c,'FORMAT_JUSTIFY_TEXT');}}(_0x1cb24f))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x51b88f{['afterInit'](){const _0x4a412d=this['editor'],_0x57e4f2=_0x4a412d['plugins']['get']('TrackChangesEditing'),_0x4cf04a=_0x4a412d['locale'];for(const _0x37f60b of Zt){if(!_0x4a412d['plugins']['has'](_0x37f60b))continue;const _0xf836e4=_0x37f60b['slice'](0x0,-0x7)['toLowerCase'](),_0x5b73cc='FORMAT_'+_0xf836e4['toUpperCase']();_0x57e4f2['enableDefaultAttributesIntegration'](_0xf836e4),_0x57e4f2['registerInlineAttribute'](_0xf836e4),_0x57e4f2['descriptionFactory']['registerAttributeLabel'](_0xf836e4,c(_0x4cf04a,_0x5b73cc));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe68a37=this['editor'],_0x1c9054=_0xe68a37['locale'],_0x4c8aed=_0xe68a37['plugins']['get']('TrackChangesEditing');function _0x385fae(_0x1b9545,_0x25b7d6){_0x4c8aed['descriptionFactory']['registerDescriptionCallback'](_0x2a2ccc=>{if('formatInline'!=_0x2a2ccc['type'])return;const {data:_0x30fc78}=_0x2a2ccc;return _0x30fc78&&_0x30fc78['commandName']===_0x1b9545?_0x30fc78['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1c9054,'*Format:*\x20%0',_0x25b7d6)}:{'type':'format','content':c(_0x1c9054,'*Remove\x20format:*\x20%0',_0x25b7d6)}:void 0x0;});}_0x385fae('bold',c(_0x1c9054,'FORMAT_BOLD')),_0x385fae('italic',c(_0x1c9054,'FORMAT_ITALIC')),_0x385fae('underline',c(_0x1c9054,'FORMAT_UNDERLINE')),_0x385fae('code',c(_0x1c9054,'FORMAT_CODE')),_0x385fae('strikethrough',c(_0x1c9054,'FORMAT_STRIKETHROUGH')),_0x385fae('subscript',c(_0x1c9054,'FORMAT_SUBSCRIPT')),_0x385fae('superscript',c(_0x1c9054,'FORMAT_SUPERSCRIPT'));}}class G extends _0x51b88f{['afterInit'](){const _0x5c89c6=this['editor'],_0x2607a5=_0x5c89c6['locale'];if(!_0x5c89c6['plugins']['has']('BlockQuoteEditing'))return;const _0x599b52=_0x5c89c6['plugins']['get']('TrackChangesEditing'),_0xdc849a=this['editor']['commands']['get']('blockQuote');_0x599b52['enableCommand']('blockQuote',(_0x138b8b,_0x5eaeb9={})=>{const _0x336a8b=this['editor']['model']['document']['selection'],_0x43136b=_0x5eaeb9&&void 0x0!==_0x5eaeb9['forceValue']?_0x5eaeb9['forceValue']:!_0xdc849a['value'];let _0x179120=[];if(_0x43136b){const _0x48bc3a=Array['from'](_0x336a8b['getSelectedBlocks']())['filter'](_0xa5eb08=>oo(_0xa5eb08)||function(_0x452367,_0x47c263){const _0xdd76d7=_0x47c263['checkChild'](_0x452367['parent'],'blockQuote'),_0x5669ad=_0x47c263['checkChild'](['$root','blockQuote'],_0x452367);return _0xdd76d7&&_0x5669ad;}(_0xa5eb08,this['editor']['model']['schema']));_0x179120=to(_0x48bc3a,_0x5c89c6['model']);}else{const _0x420b0f=Array['from'](_0x336a8b['getSelectedBlocks']())['filter'](_0xb46b7a=>oo(_0xb46b7a));_0x179120=to(_0x420b0f,_0x5c89c6['model']);}_0x5c89c6['model']['change'](()=>{for(const _0x2e0608 of _0x179120)_0x599b52['markBlockFormat'](_0x2e0608,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x43136b}]});});}),_0x599b52['descriptionFactory']['registerDescriptionCallback'](_0x10f004=>{const {data:_0x30aaed}=_0x10f004;if(_0x30aaed&&'blockQuote'==_0x30aaed['commandName']){const _0x3d5700=c(_0x2607a5,'ELEMENT_BLOCK_QUOTE');return _0x30aaed['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2607a5,'*Set\x20format:*\x20%0',_0x3d5700)}:{'type':'format','content':c(_0x2607a5,'*Remove\x20format:*\x20%0',_0x3d5700)};}});}}function oo(_0xb0325b){return'blockQuote'==_0xb0325b['parent']['name'];}class L extends _0x51b88f{['afterInit'](){const _0x88226d=this['editor'],_0x288c64=_0x88226d['locale'],_0x2644c7=_0x88226d['plugins']['get']('TrackChangesEditing');_0x88226d['plugins']['has']('BookmarkEditing')&&(_0x2644c7['enableCommand']('insertBookmark'),_0x2644c7['enableDefaultAttributesIntegration']('updateBookmark'),_0x2644c7['registerBlockAttribute']('bookmarkId'),_0x2644c7['descriptionFactory']['registerDescriptionCallback'](_0x20c484=>{if('insertion'!=_0x20c484['type']&&'deletion'!=_0x20c484['type']&&'attribute'!=_0x20c484['type'])return;const _0x584a71=_0x20c484['getContainedElement']();if(null==_0x584a71)return;if(!_0x584a71['is']('element','bookmark'))return;const _0x2ec564=_0x584a71['getAttribute']('bookmarkId');if('insertion'==_0x20c484['type'])return{'type':'insertion','content':c(_0x288c64,'*Insert:*\x20%0','\x22'+_0x2ec564+'\x22\x20'+c(_0x288c64,'ELEMENT_BOOKMARK'))};if('deletion'==_0x20c484['type'])return{'type':'deletion','content':c(_0x288c64,'*Remove:*\x20%0','\x22'+_0x2ec564+'\x22\x20'+c(_0x288c64,'ELEMENT_BOOKMARK'))};const {data:_0xb9b592}=_0x20c484;if(!_0xb9b592||'bookmarkId'!=_0xb9b592['key'])return;return{'type':'format','content':c(_0x288c64,'*Set\x20bookmark:*\x20%0','\x22'+_0xb9b592['newValue']+'\x22')};}));}}class J extends _0x51b88f{['afterInit'](){const _0x18f338=this['editor'];_0x18f338['plugins']['has']('CaseChange')&&(_0x18f338['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x18f338['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x18f338['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x51b88f{['afterInit'](){const _0x5320bc=this['editor'];_0x5320bc['commands']['get']('ckbox')&&_0x5320bc['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x51b88f{['afterInit'](){const _0x198ab3=this['editor'];if(!_0x198ab3['plugins']['has']('CodeBlock'))return;const _0x3bf308=_0x198ab3['plugins']['get']('TrackChangesEditing'),_0x20c41e=_0x198ab3['locale'],_0x425030=_0x198ab3['config']['get']('codeBlock')['languages'],_0x2e368e=_0x198ab3['commands']['get']('codeBlock');_0x3bf308['enableCommand']('indentCodeBlock'),_0x3bf308['enableCommand']('outdentCodeBlock'),_0x3bf308['enableCommand']('codeBlock',(_0xb10ce7,_0x3df7ee={})=>{const _0x5cd1fc=_0x198ab3['model'],_0x5a94f7=_0x198ab3['model']['document']['selection'],_0x5a7204=_0x3df7ee&&void 0x0!==_0x3df7ee['forceValue']?_0x3df7ee['forceValue']:!_0x2e368e['value'];let _0x2671f2;_0x3df7ee['language']||(_0x3df7ee['language']=_0x425030[0x0]['language']),_0x2671f2=_0x5a7204?Array['from'](_0x5a94f7['getSelectedBlocks']())['filter'](_0x49815b=>eo(_0x49815b)||function(_0x4beda4,_0x5f1f63){if(_0x4beda4['is']('rootElement')||_0x5f1f63['isLimit'](_0x4beda4))return!0x1;return _0x5f1f63['checkChild'](_0x4beda4['parent'],'codeBlock');}(_0x49815b,_0x5cd1fc['schema'])):Array['from'](_0x5a94f7['getSelectedBlocks']())['filter'](_0x3e9fb5=>eo(_0x3e9fb5));const _0x1d1978=to(_0x2671f2,_0x5cd1fc);_0x5cd1fc['change'](()=>{for(const _0x49fcf3 of _0x1d1978)_0x3bf308['markBlockFormat'](_0x49fcf3,{'commandName':'codeBlock','commandParams':[{..._0x3df7ee,'forceValue':_0x5a7204}],'formatGroupId':'blockName'});});}),(_0x3bf308['descriptionFactory']['registerElementLabel']('codeBlock',_0x377995=>c(_0x20c41e,'ELEMENT_CODE_BLOCK',_0x377995)),_0x3bf308['descriptionFactory']['registerDescriptionCallback'](_0x36f3ef=>{if('formatBlock'!=_0x36f3ef['type'])return;const _0x1894b0=_0x20c41e['t'],{data:_0x25fb66}=_0x36f3ef;if(!_0x25fb66||'codeBlock'!=_0x25fb66['commandName'])return;const _0x5e53b1=_0x25fb66['commandParams'][0x0]['language'],_0x49f1ce=_0x1894b0(_0x425030['find'](_0x491d1f=>_0x491d1f['language']===_0x5e53b1)['label'])['toLowerCase']();return _0x25fb66['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x20c41e,'*Set\x20format:*\x20%0',c(_0x20c41e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x49f1ce+')')}:{'type':'format','content':c(_0x20c41e,'*Remove\x20format:*\x20%0',c(_0x20c41e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x1ac51b){return'codeBlock'==_0x1ac51b['name'];}class q extends _0x51b88f{['afterInit'](){const _0x8d428e=this['editor'];if(!_0x8d428e['plugins']['has']('CommentsEditing'))return;_0x8d428e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x538c92,_0x465043,_0x5896fb){const _0x3b3a15=[];for(const _0x3b59eb of _0x465043['getItems']())_0x3b59eb['hasAttribute'](_0x538c92)&&_0x3b3a15['push'](_0x5896fb['createRangeOn'](_0x3b59eb));return _0x3b3a15;}function Fe(_0x1e3d39,_0x2e2f19,{showActiveMarker:_0x379933=!0x0}={}){const _0x32493f=_0x1e3d39['plugins']['get']('TrackChangesEditing');return(_0x295e91,_0x48ad08,_0x2e7b13)=>{if(!_0x2e7b13['consumable']['test'](_0x48ad08['markerRange'],_0x295e91['name']))return;const _0x2fd182=_0x48ad08['markerRange']['getWalker'](),_0x84481b=_0x48ad08['markerRange']['start'],_0x4b264a=_0x1e3d39['model']['schema'];let _0x50bf64=null,_0x574ce6=null,_0xe90cd2=!0x1,_0x35ce37=!0x1;for(const _0x157b5d of _0x2fd182){const _0x149386=_0x157b5d['item'];_0xe90cd2=_0xe90cd2||_0x4b264a['isContent'](_0x149386);const _0x39ecb0=_0x2e7b13['mapper']['toViewElement'](_0x149386);if(_0x39ecb0&&_0x39ecb0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x157b5d['type']&&(_0x4b264a['isBlock'](_0x149386)&&!_0x4b264a['isLimit'](_0x149386)&&(_0x149386['nextSibling']||_0x84481b['isAtEnd']?_0x50bf64&&_0x50bf64['parent']==_0x149386||(_0x50bf64=_0x149386,_0x3e09d0(_0x157b5d['previousPosition']),_0x35ce37=!0x0):_0x574ce6=_0x574ce6||_0x157b5d['previousPosition']));}function _0x3e09d0(_0x3f0d4e){const {authorId:_0x21cf39}=_0x32493f['_splitMarkerName'](_0x48ad08['markerName']),_0x5749fb=_0x2e7b13['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2e2f19,'data-author-id':_0x21cf39}),_0x27057b=_0x2e7b13['mapper']['toViewPosition'](_0x3f0d4e);_0x379933&&_0x32493f['activeMarkers']['includes'](_0x48ad08['markerName'])&&_0x2e7b13['writer']['addClass']('ck-suggestion-marker--active',_0x5749fb),_0x2e7b13['writer']['insert'](_0x27057b,_0x5749fb),_0x2e7b13['mapper']['bindElementToMarker'](_0x5749fb,_0x48ad08['markerName']);}_0xe90cd2||_0x35ce37||!_0x574ce6||_0x3e09d0(_0x574ce6);};}class z extends _0x51b88f{static get['requires'](){return[_0x50b909];}['init'](){const _0x2fe837=this['editor'],_0x421747=_0x2fe837['plugins']['get']('TrackChangesEditing');_0x421747['enableCommand']('delete');const _0x5ef2be=_0x2fe837['commands']['get']('deleteForward');_0x421747['enableCommand']('deleteForward',(_0x3c354f,_0x2ebf0c={})=>{const _0x3cea25=_0x2fe837['model']['createSelection'](_0x2fe837['model']['document']['selection']);_0x3cea25['isCollapsed']&&_0x2fe837['model']['modifySelection'](_0x3cea25,{'direction':'forward','unit':_0x2ebf0c['unit']});const _0x26b2d0=_0x3cea25['getFirstRange'](),_0x10afdf=_0x221782['fromRange'](_0x26b2d0);let _0x10468c;_0x3c354f(_0x2ebf0c),_0x10468c='$graveyard'==_0x10afdf['root']['rootName']?_0x2fe837['model']['createRange'](_0x26b2d0['start']):_0x2fe837['model']['createRange'](_0x10afdf['start'],_0x10afdf['end']),_0x10afdf['detach'](),_0x2fe837['model']['enqueueChange'](_0x5ef2be['buffer']['batch'],_0x436fc1=>{_0x5ef2be['buffer']['lock'](),_0x436fc1['setSelection'](_0x436fc1['createRange'](_0x10468c['end'])),_0x5ef2be['buffer']['unlock']();});}),_0x2fe837['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x2fe837,'merge'),{'priority':'high'}),_0x2fe837['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x90c761,_0x407334,_0x139353)=>{_0x139353['options']['showSuggestionHighlights']&&Fe(_0x2fe837,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x90c761,_0x407334,_0x139353);},{'priority':'high'}),_0x2fe837['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2d1711,_0x3d5169,_0x13a8f5)=>{const _0x53f6e0=_0x13a8f5['mapper']['markerNameToElements'](_0x3d5169['markerName']);if(_0x53f6e0){for(const _0x20ced7 of _0x53f6e0)_0x20ced7['is']('uiElement')&&(_0x13a8f5['mapper']['unbindElementFromMarkerName'](_0x20ced7,_0x3d5169['markerName']),_0x13a8f5['writer']['remove'](_0x20ced7));}},{'priority':'high'});}}class W extends _0x51b88f{['afterInit'](){const _0x16ea15=this['editor'];if(!_0x16ea15['plugins']['has']('ListEditing'))return;const _0x3f9099=_0x16ea15['locale'],_0x487c0b=_0x16ea15['plugins']['get']('TrackChangesEditing'),_0x2d5d82=_0x16ea15['plugins']['has']('TodoListEditing'),_0xa82cc=!!_0x16ea15['config']['get']('list.multiBlock');function _0x51088e(_0x89c76e){return{'type':'format','content':''+c(_0x3f9099,'*Set\x20format:*\x20%0',_0x89c76e)};}function _0xc7bb15(_0x4b70d5){return{'type':'format','content':''+c(_0x3f9099,'*Remove\x20format:*\x20%0',_0x4b70d5)};}_0x487c0b['enableDefaultAttributesIntegration']('numberedList'),_0x487c0b['enableDefaultAttributesIntegration']('bulletedList'),_0x487c0b['enableDefaultAttributesIntegration']('customNumberedList'),_0x487c0b['enableDefaultAttributesIntegration']('customBulletedList'),_0x487c0b['enableDefaultAttributesIntegration']('indentList'),_0x487c0b['enableDefaultAttributesIntegration']('outdentList'),_0x487c0b['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x487c0b['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x487c0b['registerBlockAttribute']('listItemId'),_0x487c0b['registerBlockAttribute']('listType'),_0x487c0b['registerBlockAttribute']('listIndent'),_0xa82cc&&(_0x487c0b['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x487c0b['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2d5d82&&(_0x487c0b['enableDefaultAttributesIntegration']('todoList'),_0x487c0b['enableDefaultAttributesIntegration']('checkTodoList'),_0x487c0b['registerBlockAttribute']('todoListChecked'),_0x487c0b['descriptionFactory']['registerDescriptionCallback'](_0x28f310=>{const {data:_0x432155}=_0x28f310;if(_0x432155&&'todoListChecked'==_0x432155['key'])return{'type':'format','content':_0x432155['newValue']?c(_0x3f9099,'*Check\x20item*'):c(_0x3f9099,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1a1b66=>{if(_0x1a1b66['batch']['isUndo'])return!0x1;let _0x1215c6=!0x1;const _0x2aaf8b=_0x487c0b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x27dc87=>'todoListChecked'===_0x487c0b['_getAttributeKey'](_0x27dc87));for(const _0x126f03 of _0x2aaf8b){'todo'!=_0x126f03['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x487c0b['_findSuggestions'](_0x126f03['getFirstRange'](),'attribute')['find'](_0x6d019e=>'listType'===_0x487c0b['_getAttributeKey'](_0x6d019e['suggestion']))||(_0x1a1b66['removeMarker'](_0x126f03['getFirstMarker']()),_0x1215c6=!0x0));}return _0x1215c6;})),_0x487c0b['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x3f9099,'FORMAT_INDENT'));const _0x2b2c31={'type':'format','content':''};_0x487c0b['descriptionFactory']['registerDescriptionCallback'](_0x26ee66=>{const {data:_0x47656e}=_0x26ee66;if(!_0x47656e||'listType'!=_0x47656e['key'])return;let _0x51a867=_0x26ee66['head'];for(;_0x51a867;){if(_0x51a867['data']&&(('listStyle'==_0x51a867['data']['key']||'listMarkerStyle'==_0x51a867['data']['key'])&&(_0x51a867['data']['newValue']&&'default'!=_0x51a867['data']['newValue']||'default'!=_0x51a867['data']['oldValue']&&!_0x47656e['newValue'])||!_0xa82cc&&_0x51a867['data']['key']==u))return _0x2b2c31;_0x51a867=_0x51a867['next'];}if(null==_0x47656e['newValue'])switch(_0x47656e['oldValue']){case'bulleted':return _0xc7bb15(c(_0x3f9099,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xc7bb15(c(_0x3f9099,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xc7bb15(c(_0x3f9099,'ELEMENT_TODO_LIST'));}switch(_0x47656e['newValue']){case'bulleted':return _0x51088e(c(_0x3f9099,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x51088e(c(_0x3f9099,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x51088e(c(_0x3f9099,'ELEMENT_TODO_LIST'));}}),_0x487c0b['descriptionFactory']['registerDescriptionCallback'](_0x2b5e15=>{const {data:_0x5484f8}=_0x2b5e15;if(_0x5484f8&&'listIndent'==_0x5484f8['key'])return null==_0x5484f8['newValue']||null==_0x5484f8['oldValue']&&0x0==_0x5484f8['newValue']?_0x2b2c31:void 0x0;}),_0x487c0b['descriptionFactory']['registerDescriptionCallback'](_0x4989ab=>{if('attribute'!=_0x4989ab['type'])return;const {data:_0x405fe5}=_0x4989ab;if(!_0x405fe5||'listItemId'!=_0x405fe5['key'])return;const _0x5b36e4=Te(_0x4989ab);return'newValue'==_0x5b36e4?{'type':'format','content':c(_0x3f9099,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5b36e4?{'type':'format','content':c(_0x3f9099,'*Split:*\x20list\x20item')}:_0x2b2c31;}),_0x16ea15['model']['document']['registerPostFixer'](_0xea464b=>this['listItemIdFixer'](_0xea464b)),_0x16ea15['model']['document']['registerPostFixer'](_0xf0cd4a=>this['noTrackChangesFixer'](_0xf0cd4a)),_0x16ea15['model']['document']['on']('change:data',(_0x5596c8,_0x1e239a)=>{if(_0x1e239a['isUndo']||!_0x1e239a['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5f109a){if(_0x5f109a['batch']['isUndo']||!_0x5f109a['batch']['isLocal'])return!0x1;let _0x3d1594=!0x1;const _0x5d4d1f=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xb66b11=>_0xb66b11['data']&&'listItemId'==_0xb66b11['data']['key'])['filter'](_0x1e7f3d=>_0x1e7f3d['data']['newValue']&&_0x1e7f3d['data']['oldValue']);for(const _0x452e92 of _0x5d4d1f)Te(_0x452e92)||(_0x5f109a['removeMarker'](_0x452e92['getFirstMarker']()),_0x3d1594=!0x0);return _0x3d1594;}['noTrackChangesFixer'](_0x638a8c){if(_0x638a8c['batch']['isUndo']||!_0x638a8c['batch']['isLocal'])return!0x1;const _0x27ef19=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x27ef19['trackChangesCommand']['value'])return!0x1;let _0x2db435=!0x1;const _0x1fd20f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5e4f45=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x12132d=>'attribute'==_0x12132d['type'])['filter'](_0x1fd053=>_0x1fd20f['includes'](_0x1fd053['attributeKey']));if(0x0==_0x5e4f45['length'])return _0x2db435;for(const _0x43344d of _0x5e4f45){const _0x4e1c52=_0x27ef19['_findSuggestions'](_0x43344d['range'],'attribute')['filter'](_0x151e5d=>!_0x151e5d['meta']['isNextTo'])['map'](_0x3e648a=>_0x3e648a['suggestion'])['filter'](_0x3084e3=>{const _0x21d473=_0x27ef19['_getAttributeKey'](_0x3084e3);return _0x1fd20f['includes'](_0x21d473);});if(_0x4e1c52['length']){for(const _0x1f4c62 of _0x4e1c52)_0x638a8c['removeMarker'](_0x1f4c62['getFirstMarker']());_0x2db435=!0x0;}}return _0x2db435;}['assureChains'](){const _0x3b2111=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d3df5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xa64059;const _0x5d7121=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x39977e=>{if(_0x39977e['data']['oldRange']||!_0x39977e['data']['newRange'])return null;if(!_0x39977e['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xd2838}=_0x3b2111['_splitMarkerName'](_0x39977e['name']);if(!_0x3b2111['hasSuggestion'](_0xd2838))return null;const _0x166fd0=_0x3b2111['getSuggestion'](_0xd2838);return _0x2d3df5['includes'](_0x166fd0['data']['key']);})['map'](_0x39abd7=>{const {id:_0x56680a}=_0x3b2111['_splitMarkerName'](_0x39abd7['name']),_0x4cd220=_0x3b2111['getSuggestion'](_0x56680a);return _0xa64059=_0x4cd220['attributes']['groupId'],_0x4cd220['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5d7121['size'])return;const _0x58f72f=_0x3b2111['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1e9481=>'attribute'==_0x1e9481['type']&&_0x1e9481['data']&&_0x2d3df5['includes'](_0x1e9481['data']['key'])&&_0x1e9481['attributes']['groupId']!=_0xa64059)['map'](_0x5cec6d=>({'listItem':_0x5cec6d['getFirstRange']()['start']['nodeAfter'],'groupId':_0x5cec6d['attributes']['groupId']})),_0x5d01e1=new Set();for(const {groupId:_0xd60989,listItem:_0xcae341}of _0x58f72f)_0x5d7121['has'](_0xcae341)&&_0x5d01e1['add'](_0xd60989);for(const _0x124484 of _0x3b2111['getSuggestions']())_0x5d01e1['has'](_0x124484['attributes']['groupId'])&&_0x124484['setAttribute']('groupId',_0xa64059);}['_supportLegacySuggestions'](){const _0xd3a399=this['editor'],_0x4fd3be=_0xd3a399['locale'],_0x4dfc43=_0xd3a399['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4dfc43['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x12f72c,_0x29fa9e){const _0x4ae7f=[];for(let _0x39dace of _0x12f72c)_0x39dace['start']['nodeAfter']===_0x39dace['end']['parent']&&(_0x39dace=_0xd3a399['model']['createRange'](_0xd3a399['model']['createPositionAt'](_0x39dace['start']['nodeAfter'],0x0))),_0x4ae7f['push'](_0x39dace);_0xd3a399['model']['change'](_0x21e1bb=>{const _0x2546e2=_0xd3a399['model']['document']['selection'],_0x1734b2=Array['from'](_0x2546e2['getRanges']())['map'](_0x3a5b74=>_0x221782['fromRange'](_0x3a5b74));_0x21e1bb['setSelection'](_0x4ae7f),_0xd3a399['commands']['get'](_0x29fa9e['commandName'])['refresh'](),_0x29fa9e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xd3a399['execute'](_0x29fa9e['commandName'],..._0x29fa9e['commandParams']),_0x21e1bb['setSelection'](_0x1734b2);for(const _0x5b47bc of _0x1734b2)_0x5b47bc['detach']();});}),_0x4dfc43['descriptionFactory']['registerElementLabel'](function(_0x19ce9a){const _0x29f3ad=!_0xd3a399['model']['schema']['isObject'](_0x19ce9a),_0x1a1573=_0x19ce9a['previousSibling'],_0x38dcd6=_0x19ce9a['nextSibling'],_0x4ad8cc=_0x19ce9a['getAttribute']('listItemId'),_0x55a897=!_0x1a1573||_0x1a1573['getAttribute']('listItemId')!==_0x4ad8cc,_0x18c3d6=!_0x38dcd6||_0x38dcd6['getAttribute']('listItemId')!==_0x4ad8cc;return _0x29f3ad&&Boolean(_0x4ad8cc)&&_0x55a897&&_0x18c3d6;},_0x303e76=>c(_0x4fd3be,'ELEMENT_LIST_ITEM',_0x303e76));}['_registerLegacyDescription'](){const _0x92589f=this['editor'],_0x3c52f0=_0x92589f['locale'];function _0x47035d(_0x32655c){const _0x1bc70c=_0x92589f['commands']['get']('bulletedList')['value'],_0x12c2aa=_0x92589f['commands']['get']('numberedList')['value'];return'numberedList'===_0x32655c?_0x1bc70c:_0x12c2aa;}_0x92589f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x31fa67){if('formatBlock'!=_0x31fa67['type'])return;const {data:_0x30e3f6}=_0x31fa67;if(!_0x30e3f6)return;let _0x22393b,_0xde3758,_0x19d883,_0x3e65d1;switch(_0x30e3f6['commandName']){case'bulletedList':_0x19d883=_0x30e3f6['commandParams'][0x0]['forceValue'],_0x3e65d1=_0x47035d(_0x30e3f6['commandName']),_0x22393b=_0x19d883?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3e65d1&&_0x92589f['config']['get']('list.multiBlock')||(_0x22393b='*Change\x20to:*\x20%0'),_0xde3758={'type':'format','content':c(_0x3c52f0,_0x22393b,c(_0x3c52f0,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x19d883=_0x30e3f6['commandParams'][0x0]['forceValue'],_0x3e65d1=_0x47035d(_0x30e3f6['commandName']),_0x22393b=_0x19d883?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3e65d1&&_0x92589f['config']['get']('list.multiBlock')||(_0x22393b='*Change\x20to:*\x20%0'),_0xde3758={'type':'format','content':c(_0x3c52f0,_0x22393b,c(_0x3c52f0,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x22393b='*Indent:*\x20%0',_0xde3758={'type':'format','content':c(_0x3c52f0,_0x22393b,c(_0x3c52f0,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x22393b=function(_0x25ec72){const _0x6c21be=_0x25ec72['getFirstRange']();let _0x3041b0=_0x6c21be['start']['nodeAfter'];for(;_0x3041b0&&_0x6c21be['containsItem'](_0x3041b0);){if(_0x3041b0['getAttribute']('listIndent')>0x0)return!0x1;_0x3041b0=_0x3041b0['nextSibling'];}return!0x0;}(_0x31fa67)?c(_0x3c52f0,'*Format:*\x20remove\x20from\x20%0',c(_0x3c52f0,function(_0x561484){return'ELEMENT_'+_0x561484['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x31fa67))):c(_0x3c52f0,'*Outdent:*\x20%0',c(_0x3c52f0,'ELEMENT_LIST_ITEM')),_0xde3758={'type':'format','content':_0x22393b};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x30e3f6['multipleBlocks']&&(_0x22393b='*Merge:*\x20%0',_0xde3758={'type':'deletion','content':c(_0x3c52f0,_0x22393b,c(_0x3c52f0,'ELEMENT_LIST_ITEM'))});}return _0xde3758;});}}function Te(_0x3b8ad4){let _0x4b0620=_0x3b8ad4['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4b0620;){const _0x2662e9=_0x4b0620['getAttribute']('listItemId');if(!_0x2662e9)return!0x1;if(_0x2662e9==_0x3b8ad4['data']['newValue'])return'newValue';if(_0x2662e9==_0x3b8ad4['data']['oldValue'])return'oldValue';_0x4b0620=_0x4b0620['previousSibling'];}return!0x1;}class Se extends _0x51b88f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x21bb51=this['editor']['config']['get']('list.properties'),_0x513e98=this['editor']['plugins']['get']('TrackChangesEditing');_0x21bb51['styles']&&(_0x513e98['enableDefaultAttributesIntegration']('listStyle'),_0x513e98['registerBlockAttribute']('listStyle')),_0x21bb51['reversed']&&(_0x513e98['enableDefaultAttributesIntegration']('listReversed'),_0x513e98['registerBlockAttribute']('listReversed')),_0x21bb51['startIndex']&&(_0x513e98['enableDefaultAttributesIntegration']('listStart'),_0x513e98['registerBlockAttribute']('listStart'));const _0x3e4b28={'type':'format','content':''};_0x513e98['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x38971d=this['editor']['locale'];_0x513e98['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x38971d,'FORMAT_LIST_REVERSED')),_0x513e98['descriptionFactory']['registerDescriptionCallback'](_0x3dc2d0=>{const {data:_0x2ac7ab}=_0x3dc2d0;if(_0x2ac7ab&&'listReversed'==_0x2ac7ab['key'])return null==_0x2ac7ab['newValue']||0x0==_0x2ac7ab['newValue']&&null==_0x2ac7ab['oldValue']?_0x3e4b28:void 0x0;}),_0x513e98['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x38971d,'FORMAT_LIST_START')),_0x513e98['descriptionFactory']['registerDescriptionCallback'](_0x2dbb5b=>{const {data:_0x4b05fe}=_0x2dbb5b;if(_0x4b05fe&&'listStart'==_0x4b05fe['key'])return null==_0x4b05fe['newValue']||0x1==_0x4b05fe['newValue']&&null==_0x4b05fe['oldValue']?_0x3e4b28:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x112675=>{if(_0x112675['batch']['isUndo'])return!0x1;let _0x3c295c=!0x1;const _0x2104a0=_0x513e98['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c512b=>{const _0x396941=_0x513e98['_getAttributeKey'](_0x5c512b);return'listStart'==_0x396941||'listReversed'==_0x396941;});for(const _0x8be6e1 of _0x2104a0){const _0x591582=_0x8be6e1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x591582||'customNumbered'==_0x591582)continue;_0x513e98['_findSuggestions'](_0x8be6e1['getFirstRange'](),'attribute')['find'](_0x58be43=>'listType'==_0x513e98['_getAttributeKey'](_0x58be43['suggestion']))||(_0x112675['removeMarker'](_0x8be6e1['getFirstMarker']()),_0x3c295c=!0x0);}return _0x3c295c;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2a3793){const _0x544da7=this['editor']['locale'],{data:_0x45d16d}=_0x2a3793,_0x1daba6={'type':'format','content':''};if(!_0x45d16d||'listStyle'!=_0x45d16d['key'])return;if(!_0x45d16d['oldValue'])return'default'==_0x45d16d['newValue']?_0x1daba6:{'type':'format','content':''+c(_0x544da7,'*Set\x20format:*\x20%0',c(_0x544da7,this['_getTranslationKeyForListStyle'](_0x45d16d['newValue'])))};if(!_0x45d16d['newValue']){if('default'==_0x45d16d['oldValue'])return _0x1daba6;let _0x14f42e=_0x2a3793['head'];for(;_0x14f42e;){if(_0x14f42e['data']&&'listType'==_0x14f42e['data']['key']&&_0x14f42e['data']['newValue'])return _0x1daba6;_0x14f42e=_0x14f42e['next'];}return{'type':'format','content':''+c(_0x544da7,'*Remove\x20format:*\x20%0',c(_0x544da7,this['_getTranslationKeyForListStyle'](_0x45d16d['oldValue'])))};}if('default'!=_0x45d16d['newValue'])return{'type':'format','content':''+c(_0x544da7,'*Set\x20format:*\x20%0',c(_0x544da7,this['_getTranslationKeyForListStyle'](_0x45d16d['newValue'])))};let _0x4c6b01=_0x2a3793['head'];for(;_0x4c6b01;){if(_0x4c6b01['data']&&'listType'==_0x4c6b01['data']['key']&&_0x4c6b01['data']['newValue']&&_0x4c6b01['data']['oldValue'])return _0x1daba6;_0x4c6b01=_0x4c6b01['next'];}return{'type':'format','content':c(_0x544da7,'*Set\x20format:*\x20%0',c(_0x544da7,'ELEMENT_'+_0x2a3793['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4e1a7a=this['editor'],_0x41eaf9=_0x4e1a7a['locale'];_0x4e1a7a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1278e8=>{if('formatBlock'!=_0x1278e8['type'])return;const {data:_0x41155e}=_0x1278e8;if(!_0x41155e)return;let _0x81d34e,_0x131d6d;switch(_0x41155e['commandName']){case'listStyle':_0x81d34e='*Change\x20to:*\x20%0',_0x131d6d={'type':'format','content':c(_0x41eaf9,_0x81d34e,c(_0x41eaf9,this['_getTranslationKeyForListStyle'](_0x41155e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x81d34e=_0x41155e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x131d6d={'type':'format','content':c(_0x41eaf9,_0x81d34e)};break;case'listStart':_0x81d34e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x131d6d={'type':'format','content':c(_0x41eaf9,_0x81d34e,_0x41155e['commandParams'][0x0]['startIndex'])};}return _0x131d6d;});}['_getTranslationKeyForListStyle'](_0x3ad037){return'ELEMENT_'+function(_0x366e4b){if(_e['includes'](_0x366e4b))return'bulleted';if(Re['includes'](_0x366e4b))return'numbered';return null;}(_0x3ad037)['toUpperCase']()+'_LIST_'+_0x3ad037['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x51b88f{['afterInit'](){const _0x1890a7=this['editor'];_0x1890a7['commands']['get']('emoji')&&_0x1890a7['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x51b88f{static get['requires'](){return[_0x263acd];}['init'](){const _0x28610d=this['editor'],_0x4e25b6=_0x28610d['plugins']['get']('TrackChangesEditing'),_0x53280b=_0x28610d['commands']['get']('enter');_0x4e25b6['enableCommand']('enter',()=>{_0x28610d['model']['change'](_0x5c4e7d=>{const _0x5ee9d9=_0x28610d['model']['document']['selection'],_0x4d8b3e=_0x5ee9d9['getFirstPosition'](),_0x1d4baa=_0x221782['fromRange'](_0x5ee9d9['getFirstRange']());if(_0x53280b['enterBlock'](_0x5c4e7d)){const _0x5e9728=_0x28610d['model']['createPositionAt'](_0x4d8b3e['parent']['nextSibling'],0x0),_0x45322a=_0x5c4e7d['createRange'](_0x4d8b3e,_0x5e9728);_0x4e25b6['markInsertion'](_0x45322a);}else _0x5c4e7d['setSelection'](_0x5c4e7d['createRange'](_0x1d4baa['end']));_0x1d4baa['detach'](),_0x53280b['fire']('afterExecute',{'writer':_0x5c4e7d});});}),_0x28610d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x28610d,'split'),{'priority':'high'}),_0x28610d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x14dc06,_0x5d0ca9,_0x1bd804)=>{const _0x21049e=_0x1bd804['mapper']['markerNameToElements'](_0x5d0ca9['markerName']);if(_0x21049e){for(const _0x39106c of _0x21049e)_0x39106c['hasClass']('ck-suggestion-marker-split')&&(_0x1bd804['mapper']['unbindElementFromMarkerName'](_0x39106c,_0x5d0ca9['markerName']),_0x1bd804['writer']['remove'](_0x39106c));}},{'priority':'high'}),_0x28610d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x57567f,_0x3c87bc,_0x158c56)=>{_0x158c56['options']['showSuggestionHighlights']&&Fe(_0x28610d,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x57567f,_0x3c87bc,_0x158c56);},{'priority':'high'});}}class Z extends _0x51b88f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1f9e68=this['editor']['plugins']['get']('TrackChangesEditing');_0x1f9e68['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1f9e68['enableCommand']('findNext'),_0x1f9e68['enableCommand']('findPrevious'),_0x1f9e68['enableCommand']('replace'),_0x1f9e68['enableCommand']('replaceAll');}['handleFindCommand'](_0x9a3f5f,_0x5695c9,_0x37b441={}){const _0x41f5a6=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x9a3f5f(_0x3fb54a=>{let _0x3192e6=('string'==typeof _0x5695c9?_0x41f5a6['findByTextCallback'](_0x5695c9,_0x37b441):_0x5695c9)(_0x3fb54a);Array['isArray'](_0x3192e6)&&(_0x3192e6={'results':_0x3192e6,'searchText':'string'==typeof _0x5695c9?_0x5695c9:''});const _0x35a995=_0x3192e6['results']['filter'](_0x302057=>!0x1===this['_isInDeletionRange'](_0x302057,_0x3fb54a['item']));return{..._0x3192e6,'results':_0x35a995};},_0x37b441);}['_isInDeletionRange'](_0x195139,_0x3e6000){const _0x42e7b9=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3e6000,_0x195139['start']),this['editor']['model']['createPositionAt'](_0x3e6000,_0x195139['end']));for(const _0x3ea9d1 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x42e7b9['getIntersection'](_0x3ea9d1['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x51b88f{['afterInit'](){const _0x3ffc22=this['editor']['locale'],_0x5c0c42=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4a485c,commandName:_0x5d7b85}of ro)this['editor']['plugins']['has'](_0x4a485c)&&(_0x5c0c42['enableDefaultAttributesIntegration'](_0x5d7b85),_0x5c0c42['registerInlineAttribute'](_0x5d7b85));_0x5c0c42['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x3ffc22,'FORMAT_FONT_SIZE')),_0x5c0c42['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x3ffc22,'FORMAT_FONT_FAMILY')),_0x5c0c42['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x3ffc22,'FORMAT_FONT_COLOR')),_0x5c0c42['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x3ffc22,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3fec82=this['editor'],_0x34114f=_0x3fec82['locale'];_0x3fec82['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42841e=>{const _0x4adf7f=_0x34114f['t'];if('formatInline'!=_0x42841e['type'])return;const {data:_0x27063d}=_0x42841e;if(null!=_0x27063d){if('fontSize'==_0x27063d['commandName']){const _0xe9ae11=_0x27063d['commandParams'][0x0]['value'];if(_0xe9ae11){const _0x1623be=_0x4adf7f(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x32dde0=>_0x32dde0['model']==_0xe9ae11)['title'])['toLowerCase']();return{'type':'format','content':c(_0x34114f,'*Set\x20font\x20size:*\x20%0',_0x1623be)};}return{'type':'format','content':c(_0x34114f,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x27063d['commandName']){const _0x462bbf=_0x27063d['commandParams'][0x0]['value'];return _0x462bbf?{'type':'format','content':c(_0x34114f,'*Set\x20font\x20family:*\x20%0',_0x462bbf)}:{'type':'format','content':c(_0x34114f,'*Reset\x20font\x20family*')};}if('fontColor'==_0x27063d['commandName']){const _0x4a46cf=_0x27063d['commandParams'][0x0]['value'];if(_0x4a46cf){const _0x1eb48c=_0x4948c5(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4f831d=>_0x4f831d['model']==_0x4a46cf);let _0x1bd4c5=_0x4a46cf,_0x2dbaf2='';return _0x1eb48c&&(_0x1bd4c5=_0x1eb48c['label'],_0x2dbaf2=_0x4adf7f(_0x1bd4c5)['toLowerCase']()),{'type':'format','content':c(_0x34114f,'*Set\x20font\x20color:*\x20%0',_0x2dbaf2)['trim'](),'color':{'value':_0x4a46cf,'title':_0x2dbaf2||_0x1bd4c5}};}return{'type':'format','content':c(_0x34114f,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x27063d['commandName']){const _0x19b0d0=_0x27063d['commandParams'][0x0]['value'];if(_0x19b0d0){const _0x665aae=_0x4948c5(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4d6eca=>_0x4d6eca['model']==_0x19b0d0);let _0x5736ad=_0x19b0d0,_0x7f2f2='';return _0x665aae&&(_0x5736ad=_0x665aae['label'],_0x7f2f2=_0x4adf7f(_0x5736ad)['toLowerCase']()),{'type':'format','content':c(_0x34114f,'*Set\x20font\x20background\x20color:*\x20%0',_0x7f2f2)['trim'](),'color':{'value':_0x19b0d0,'title':_0x7f2f2||_0x5736ad}};}return{'type':'format','content':c(_0x34114f,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x51b88f{['afterInit'](){const _0x2b4053=this['editor'],_0x340569=_0x2b4053['plugins']['get']('TrackChangesEditing'),_0x1df436=_0x2b4053['commands']['get']('copyFormat'),_0x2cbe26=_0x2b4053['commands']['get']('pasteFormat');_0x1df436&&_0x2cbe26&&(_0x340569['enableDefaultAttributesIntegration']('pasteFormat'),_0x340569['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5b3dac=this['editor'],_0x5bc842=_0x5b3dac['locale'];_0x5b3dac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b4d49=>{if('formatBlock'!=_0x4b4d49['type']&&'formatInline'!=_0x4b4d49['type'])return;const {data:_0x34f114}=_0x4b4d49;if(_0x34f114&&'pasteFormat'===_0x34f114['commandName']){const _0x3b53ea=[],_0x15ed44=_0x34f114['commandParams'][0x0];for(const [_0x4014da,_0xffcdea]of Object['entries'](_0x15ed44))_0x3b53ea['push'](so(_0x5b3dac,_0x4014da,_0xffcdea));return _0x3b53ea['length']?{'type':'format','content':c(_0x5bc842,'*Set\x20format\x20to:*\x20%0',_0x3b53ea['join'](',\x20'))}:{'type':'format','content':c(_0x5bc842,'*Remove\x20all\x20formatting*')};}});}}function so(_0x3ab50d,_0x17b7d9,_0x3a828f){const _0x5da0f5=_0x3ab50d['locale']['t'],_0x58bb9e=_0x17b7d9['split'](/(?=[A-Z])/)['join']('\x20'),_0x53e1fa=_0x5da0f5(_0x58bb9e['charAt'](0x0)['toUpperCase']()+_0x58bb9e['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3a828f)return _0x53e1fa;if('fontColor'===_0x17b7d9||'fontBackgroundColor'===_0x17b7d9){const _0x38a2ff=_0x4948c5(_0x3ab50d['config']['get']('fontColor.colors'))['find'](_0x24e254=>_0x24e254['model']==_0x3a828f);return _0x53e1fa+'\x20('+(_0x38a2ff?_0x5da0f5(_0x38a2ff['label'])['toLowerCase']():_0x3a828f)+')';}if('fontSize'===_0x17b7d9&&isNaN(parseFloat(_0x3a828f))){const _0x5aece9=_0x3ab50d['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3ab50d['config']['get']('fontSize.options'))['find'](_0x1a7b3c=>_0x1a7b3c['model']==_0x3a828f);return _0x53e1fa+'\x20('+(_0x5aece9?_0x5da0f5(_0x5aece9['title'])['toLowerCase']():_0x3a828f)+')';}return _0x53e1fa+'\x20('+_0x3a828f+')';}class nt extends _0x51b88f{['_headingOptions'];['afterInit'](){const _0x4ad5e4=this['editor'];if(!_0x4ad5e4['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4ad5e4['config']['get']('heading.options');const _0x2bbac5=_0x4ad5e4['locale'],_0x2bcc79=_0x4ad5e4['plugins']['get']('TrackChangesEditing');_0x2bcc79['enableDefaultAttributesIntegration']('heading');for(const _0x900806 of this['_headingOptions'])'paragraph'!=_0x900806['model']&&_0x2bcc79['descriptionFactory']['registerElementLabel'](_0x900806['model'],_0x362a2b=>{const _0x347d6a=this['_getHeadingLevel'](_0x900806['model']);return null!==_0x347d6a?_0x17df7b(_0x362a2b,_0x347d6a):_0x38cbe6(_0x362a2b,_0x900806['title']);});function _0x17df7b(_0xc5c7a,_0x20866b){return c(_0x2bbac5,'ELEMENT_HEADING',[_0xc5c7a,_0x20866b]);}function _0x38cbe6(_0x3203db,_0x4ebd15){return c(_0x2bbac5,'ELEMENT_HEADING_CUSTOM',[_0x3203db,_0x4ebd15]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2367c5=this['editor'],_0x3d7ce4=_0x2367c5['locale'];function _0x3456f6(_0x3b0ec0,_0x3b9adc){return c(_0x3d7ce4,'ELEMENT_HEADING_CUSTOM',[_0x3b0ec0,_0x3b9adc]);}_0x2367c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf429b9=>{if('formatBlock'!=_0xf429b9['type'])return;const {data:_0x2b6258}=_0xf429b9;if(_0x2b6258&&'heading'==_0x2b6258['commandName']){const _0x573025=_0x2b6258['commandParams'][0x0]['value'],_0x417520=this['_getHeadingLevel'](_0x573025);if(null!==_0x417520)return{'type':'format','content':c(_0x3d7ce4,'*Change\x20to:*\x20%0',(_0x199043=0x1,_0x11e67f=_0x417520,c(_0x3d7ce4,'ELEMENT_HEADING',[_0x199043,_0x11e67f])))};const _0x58e8ce=this['_headingOptions']['find'](_0x11ec22=>_0x11ec22['model']===_0x573025)['title'];return{'type':'format','content':c(_0x3d7ce4,'*Change\x20to:*\x20%0',_0x3456f6(0x1,_0x58e8ce))};}var _0x199043,_0x11e67f;});}['_getHeadingLevel'](_0x5668ef){const _0x1dbfb6=_0x5668ef['match'](/^heading(\d+)/);if(_0x1dbfb6)return _0x1dbfb6[0x1];const _0x5a35ad=this['_headingOptions']?.['find'](_0x2df2e5=>_0x2df2e5['model']==_0x5668ef);if(_0x5a35ad&&_0x5a35ad['view']){const _0x1b98c7=_0x5a35ad['view'],_0x48e8ac=(_0x1b98c7['name']??_0x1b98c7)['match'](/^h(\d+)/);if(_0x48e8ac)return _0x48e8ac[0x1];}return null;}}class it extends _0x51b88f{['afterInit'](){const _0xfda2d0=this['editor'];if(!_0xfda2d0['plugins']['has']('HighlightEditing'))return;const _0xe73e13=_0xfda2d0['plugins']['get']('TrackChangesEditing'),_0x5be09d=_0xfda2d0['locale'];_0xe73e13['enableDefaultAttributesIntegration']('highlight'),_0xe73e13['registerInlineAttribute']('highlight'),_0xe73e13['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x5be09d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45e45a=this['editor'],_0x4ed360=_0x45e45a['locale'];_0x45e45a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x296e3d=>{if('formatInline'!=_0x296e3d['type'])return;const {data:_0x22d395}=_0x296e3d;if(_0x22d395&&'highlight'==_0x22d395['commandName']){const _0x2f687e=_0x4ed360['t'],_0x578c41=_0x22d395['commandParams'][0x0]['value'];if(_0x578c41){const _0x20bd68=_0x45e45a['config']['get']('highlight.options')['find'](_0x2527d7=>_0x2527d7['model']==_0x578c41),_0x13f97b=_0x2f687e(_0x20bd68['title'])['toLowerCase']();return{'type':'format','content':c(_0x4ed360,'*Set\x20highlight:*\x20%0',_0x13f97b),'color':{'value':_0x20bd68['color'],'title':_0x20bd68['title']}};}return{'type':'format','content':c(_0x4ed360,'*Remove\x20highlight*',c(_0x4ed360,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x51b88f{['afterInit'](){const _0x1ad52d=this['editor'];if(!_0x1ad52d['plugins']['has']('HorizontalLineEditing'))return;_0x1ad52d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x485a99=_0x1ad52d['plugins']['get']('TrackChangesEditing'),_0x356f7d=_0x1ad52d['locale'];_0x485a99['descriptionFactory']['registerElementLabel']('horizontalLine',_0x16e104=>c(_0x356f7d,'ELEMENT_HORIZONTAL_LINE',_0x16e104)),_0x1ad52d['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x12cdca,{writer:_0x41401b,options:_0x42a220})=>{if(!_0x42a220['showSuggestionHighlights'])return null;const _0x516c73=_0x41401b['createContainerElement']('div'),_0x73ea99=_0x41401b['createEmptyElement']('hr');return _0x41401b['addClass']('ck-horizontal-line',_0x516c73),_0x41401b['insert'](_0x41401b['createPositionAt'](_0x516c73,0x0),_0x73ea99),_0x516c73;},'converterPriority':'high'});}}class ot extends _0x51b88f{['afterInit'](){const _0x174d22=this['editor'];if(!_0x174d22['plugins']['has']('HtmlEmbed'))return;const _0xd19baa=_0x174d22['plugins']['get']('TrackChangesEditing'),_0x5102dd=_0x174d22['locale'];_0xd19baa['descriptionFactory']['registerElementLabel']('rawHtml',_0x427cb5=>c(_0x5102dd,'ELEMENT_HTML_EMBED',_0x427cb5)),_0xd19baa['enableDefaultAttributesIntegration']('htmlEmbed'),_0xd19baa['registerBlockAttribute']('value'),_0xd19baa['descriptionFactory']['registerDescriptionCallback'](_0x2b53cd=>{if('attribute'!=_0x2b53cd['type'])return;const {data:_0x369d7b}=_0x2b53cd;if(_0x369d7b&&'value'==_0x369d7b['key']&&_0x2b53cd['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x49d87a=c(_0x5102dd,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x5102dd,'*Change\x20%0\x20content*',_0x49d87a)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11d2f6=this['editor'],_0x213926=_0x11d2f6['locale'];_0x11d2f6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x434ff7=>{if('formatBlock'!=_0x434ff7['type'])return;const {data:_0x17e420}=_0x434ff7;if(_0x17e420&&'htmlEmbed'==_0x17e420['commandName']){const _0x5ae7e4=c(_0x213926,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x213926,'*Change\x20%0\x20content*',_0x5ae7e4)};}});}}class rt extends _0x51b88f{['afterInit'](){const _0x2db37e=this['editor'];if(!_0x2db37e['plugins']['has']('ImageEditing'))return;const _0x561750=_0x2db37e['plugins']['get']('TrackChangesEditing'),_0x31ded1=_0x2db37e['plugins']['get']('ImageUtils'),_0x70d4f9=_0x2db37e['locale'];_0x561750['enableCommand']('insertImage'),_0x561750['descriptionFactory']['registerElementLabel']('imageBlock',_0x16a34f=>c(_0x70d4f9,'ELEMENT_IMAGE',_0x16a34f)),_0x561750['descriptionFactory']['registerElementLabel']('imageInline',_0x1b55c7=>c(_0x70d4f9,'ELEMENT_INLINE_IMAGE',_0x1b55c7)),_0x561750['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x70d4f9,'ELEMENT_CAPTION')),_0x2db37e['plugins']['has']('ImageUploadEditing')&&_0x561750['enableCommand']('uploadImage'),_0x2db37e['plugins']['has']('ImageBlockEditing')&&_0x2db37e['plugins']['has']('ImageInlineEditing')&&(_0x561750['enableCommand']('imageTypeInline',(_0x460e9e,_0x454115)=>{const _0x54a5a4=_0x31ded1['getClosestSelectedImageElement'](_0x2db37e['model']['document']['selection']);_0x2db37e['model']['change'](()=>{_0x561750['markBlockFormat'](_0x54a5a4,{'commandName':'imageTypeInline','commandParams':[_0x454115]},[],'convertBlockImageToInline');});}),_0x561750['enableCommand']('imageTypeBlock',(_0x48949b,_0x32bea9)=>{_0x2db37e['model']['change'](_0x4e406b=>{let _0x199828=_0x31ded1['getClosestSelectedImageElement'](_0x2db37e['model']['document']['selection']),_0x3a6d64=_0x4e406b['createRangeOn'](_0x199828);const _0x503939=_0x547df0['fromPosition'](_0x3a6d64['start'],'toPrevious'),_0x4ba86e=_0x547df0['fromPosition'](_0x3a6d64['end'],'toNext');_0x561750['forceDefaultExecution'](()=>_0x48949b(_0x32bea9)),_0x199828=_0x31ded1['getClosestSelectedImageElement'](_0x2db37e['model']['document']['selection']),_0x3a6d64=_0x4e406b['createRangeOn'](_0x199828);const _0x162464=_0x4e406b['createRange'](_0x503939,_0x4ba86e);_0x503939['detach'](),_0x4ba86e['detach'](),_0x561750['markBlockFormat'](_0x199828,{'commandName':'imageTypeInline','commandParams':[_0x32bea9]},[],'convertInlineImageToBlock'),_0x162464['start']['isBefore'](_0x3a6d64['start'])&&_0x561750['markInsertion'](_0x4e406b['createRange'](_0x162464['start'],_0x3a6d64['start']),'convertInlineImageToBlock'),_0x3a6d64['end']['isBefore'](_0x162464['end'])&&_0x561750['markInsertion'](_0x4e406b['createRange'](_0x3a6d64['end'],_0x162464['end']),'convertInlineImageToBlock');});}),_0x561750['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x561750['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x561750['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x561750['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x561750['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x561750['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x37d115])=>{const _0x5c11e7=_0x561750['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5be09b=_0x37d115['start'],_0x4a1650=_0x37d115['end'];const _0x2f5aca=_0x2db37e['model']['schema']['getNearestSelectionRange'](_0x5be09b,'backward'),_0x4e7fcf=_0x2db37e['model']['schema']['getNearestSelectionRange'](_0x4a1650,'forward');_0x2f5aca['isCollapsed']&&(_0x5be09b=_0x2f5aca['start']),_0x4e7fcf['isCollapsed']&&(_0x4a1650=_0x4e7fcf['end']),_0x5c11e7([_0x2db37e['model']['createRange'](_0x5be09b,_0x4a1650)]);}),_0x561750['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5dddef),_0x561750['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5dddef)),_0x2db37e['plugins']['has']('ImageCaptionEditing')&&(_0x561750['enableCommand']('toggleImageCaption',(_0x313d1b,_0x453639)=>{const _0x20caa5=_0x2db37e['plugins']['get']('ImageCaptionUtils');let _0x7581f4=_0x31ded1['getClosestSelectedImageElement'](_0x2db37e['model']['document']['selection']),_0x492fde=_0x20caa5['getCaptionFromImageModelElement'](_0x7581f4);_0x2db37e['model']['change'](()=>{if(_0x492fde)return void _0x561750['markDeletion'](_0x2db37e['model']['createRangeOn'](_0x492fde));const _0xd1753e=_0x31ded1['isBlockImage'](_0x7581f4);_0x313d1b(_0x453639),_0x7581f4=_0x31ded1['getClosestSelectedImageElement'](_0x2db37e['model']['document']['selection']),_0x492fde=_0x20caa5['getCaptionFromImageModelElement'](_0x7581f4),_0x561750['markInsertion'](_0x2db37e['model']['createRangeOn'](_0x492fde),_0xd1753e?null:'imageCaption');});}),_0x561750['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5dddef));const _0x18dfd3=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xd41f4f(_0x5a39db,_0x497683){const _0x4e106b=_0x18dfd3['findIndex'](({type:_0x303b7a,subType:_0x75c846})=>_0x5a39db['type']==_0x303b7a&&_0x5a39db['subType']==_0x75c846),_0x4ea47f=_0x18dfd3['findIndex'](({type:_0xc2c32e,subType:_0x7c3e86})=>_0x497683['type']==_0xc2c32e&&_0x497683['subType']==_0x7c3e86);if(_0x4e106b<0x0||_0x4ea47f<0x0)return!0x1;const _0x2b474e=_0x5a39db['getFirstRange'](),_0x4f29eb=_0x497683['getFirstRange']();if((0x0==_0x4e106b||0x1==_0x4e106b)&&0x2==_0x4ea47f&&_0x2b474e['isIntersecting'](_0x4f29eb))return!0x0;if(0x2==_0x4e106b&&0x3==_0x4ea47f){const _0x37cea5=_0x561750['_findSuggestions'](_0x2b474e,'insertion')['filter'](({suggestion:_0x4c5806,meta:_0x47a34b})=>_0x47a34b['isOwn']&&'convertInlineImageToBlock'==_0x4c5806['subType']);if(_0x37cea5['length']>0x1&&_0x4f29eb['end']['isEqual'](_0x2b474e['start']))return!0x0;if(0x1==_0x37cea5['length']&&(_0x2b474e['start']['isEqual'](_0x4f29eb['end'])||_0x2b474e['end']['isEqual'](_0x4f29eb['start'])))return!0x0;}if(0x3==_0x4e106b&&0x3==_0x4ea47f&&_0x2b474e['start']['isBefore'](_0x4f29eb['start'])){const _0x5a19f3=_0x2b474e['end']['nodeAfter'],_0x2af01f=_0x4f29eb['start']['nodeBefore'];return _0x31ded1['isBlockImage'](_0x5a19f3)&&_0x5a19f3===_0x2af01f;}return!0x1;}function _0x5dddef(_0xab1d0d,_0x1780e5){return _0xd41f4f(_0xab1d0d,_0x1780e5)?[_0xab1d0d,_0x1780e5]:_0xd41f4f(_0x1780e5,_0xab1d0d)?[_0x1780e5,_0xab1d0d]:null;}_0x2db37e['plugins']['has']('ImageResize')&&(_0x561750['enableDefaultAttributesIntegration']('resizeImage'),_0x561750['registerBlockAttribute']('resizedWidth'),_0x561750['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x70d4f9,'FORMAT_IMAGE_SIZE'))),_0x2db37e['plugins']['has']('ImageTextAlternativeEditing')&&(_0x561750['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x561750['registerBlockAttribute']('alt')),_0x2db37e['plugins']['has']('PictureEditing')&&(_0x561750['registerBlockAttribute']('sources'),_0x561750['descriptionFactory']['registerDescriptionCallback'](_0x3929e3=>{if('attribute'!=_0x3929e3['type'])return;const {data:_0x5c1f1e}=_0x3929e3;return _0x5c1f1e&&'sources'==_0x5c1f1e['key']?{'type':'format','content':''}:void 0x0;})),_0x2db37e['plugins']['has']('ImageSizeAttributes')&&(_0x561750['registerBlockAttribute']('width'),_0x561750['registerBlockAttribute']('height'),_0x561750['descriptionFactory']['registerDescriptionCallback'](_0xdbb3ac=>{if('attribute'!=_0xdbb3ac['type'])return;const {data:_0x1ec39c}=_0xdbb3ac;return!_0x1ec39c||'width'!=_0x1ec39c['key']&&'height'!=_0x1ec39c['key']?void 0x0:{'type':'format','content':''};})),_0x561750['descriptionFactory']['registerDescriptionCallback'](_0x4639a6=>{if(!!_0x18dfd3['find'](({type:_0x598c10,subType:_0x39bb77})=>_0x4639a6['type']==_0x598c10&&_0x4639a6['subType']==_0x39bb77))return _0x4639a6['previous']?{}:void 0x0;}),_0x561750['descriptionFactory']['registerDescriptionCallback'](_0x521a0a=>{if('insertion'==_0x521a0a['type']||'deletion'==_0x521a0a['type']){const _0xae9daa=_0x521a0a['getContainedElement']();if(_0xae9daa&&_0xae9daa['is']('element','caption'))return{'type':'insertion'==_0x521a0a['type']?'addObject':'removeObject','element':_0xae9daa,'quantity':0x1};}}),_0x561750['descriptionFactory']['registerDescriptionCallback'](_0x55fc27=>'formatBlock'==_0x55fc27['type']&&'convertInlineImageToBlock'==_0x55fc27['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x55fc27['type']&&'convertBlockImageToInline'==_0x55fc27['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x561750['descriptionFactory']['registerDescriptionCallback'](_0x577624=>{if('attribute'!=_0x577624['type'])return;const {data:_0x39b680}=_0x577624;if(!_0x39b680||'alt'!=_0x39b680['key'])return;const _0x59931f=_0x39b680['newValue'];return _0x59931f?{'type':'format','content':c(_0x70d4f9,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x59931f+'\x22')}:{'type':'format','content':c(_0x70d4f9,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5cb170=this['editor'],_0x589a1f=_0x5cb170['locale'];_0x5cb170['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x289259=>{if('formatBlock'!=_0x289259['type']&&'formatInline'!=_0x289259['type'])return;const {data:_0x3363e2}=_0x289259;if(_0x3363e2){if('imageTextAlternative'==_0x3363e2['commandName']){const _0x409f16=_0x3363e2['commandParams'][0x0]['newValue'];return _0x409f16?{'type':'format','content':c(_0x589a1f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x409f16+'\x22')}:{'type':'format','content':c(_0x589a1f,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3363e2['commandName']){const _0x74e2bd=_0x3363e2['commandParams'][0x0]['width'];return _0x74e2bd?{'type':'format','content':c(_0x589a1f,'*Set\x20image\x20width:*\x20%0',_0x74e2bd)}:{'type':'format','content':c(_0x589a1f,'*Reset\x20image\x20width*')};}}});}}class at extends _0x51b88f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x58dce6=this['editor']['locale'],_0xb0311a=this['editor']['plugins']['get']('TrackChangesEditing');_0xb0311a['enableDefaultAttributesIntegration']('replaceImageSource'),_0xb0311a['registerBlockAttribute']('src'),_0xb0311a['descriptionFactory']['registerDescriptionCallback'](_0x20eb35=>{if('attribute'!=_0x20eb35['type'])return;const {data:_0x1b89d1}=_0x20eb35;return _0x1b89d1&&'src'==_0x1b89d1['key']?_0x1b89d1['newValue']&&_0x1b89d1['oldValue']?{'type':'format','content':c(_0x58dce6,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1141d7=this['editor']['plugins']['get']('TrackChangesEditing');_0x1141d7['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1141d7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1141d7['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1141d7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b45c2=this['editor'],_0x4a9a62=_0x3b45c2['locale'];_0x3b45c2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e5fbc=>{if('formatBlock'!=_0x4e5fbc['type']&&'formatInline'!=_0x4e5fbc['type'])return;const {data:_0x1dee3e}=_0x4e5fbc;if(!_0x1dee3e||'replaceImageSource'!=_0x1dee3e['commandName'])return;return{'type':'format','content':c(_0x4a9a62,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x51b88f{['afterInit'](){const _0x2ab9f3=this['editor'];if(!_0x2ab9f3['plugins']['has']('ImageStyleEditing'))return;const _0x5100b8=_0x2ab9f3['plugins']['get']('TrackChangesEditing'),_0x45d2ff=_0x2ab9f3['plugins']['get']('ImageUtils'),_0x2c5e73={};_0x5100b8['enableCommand']('imageStyle',(_0x244276,_0x45e0ac)=>{const _0x330185=_0x2ab9f3['plugins']['get']('Users')['me'],_0x13abc1=_0x2ab9f3['commands']['get']('imageStyle');let _0x1cb895=_0x45d2ff['getClosestSelectedImageElement'](_0x2ab9f3['model']['document']['selection']),_0x34521c=_0x2ab9f3['model']['createRangeOn'](_0x1cb895),_0x10ef1e=_0x13abc1['value'];if(_0x10ef1e==_0x45e0ac['value'])return;const _0x28c497={'commandName':'imageStyle','commandParams':[_0x45e0ac],'formatGroupId':_0x35f42a()};_0x2ab9f3['model']['change'](()=>{if(_0x5100b8['getSuggestions']()['filter'](_0x16c413=>_0x16c413['isInContent']&&_0x330185==_0x16c413['author']&&('formatBlock'==_0x16c413['type']||'formatInline'==_0x16c413['type'])&&('imageStylePreApply'==_0x16c413['subType']||'imageStylePostApply'==_0x16c413['subType'])&&_0x16c413['getFirstRange']()['isEqual'](_0x34521c))['forEach'](_0x4cb528=>_0x5100b8['discardSuggestion'](_0x4cb528['head'])),_0x1cb895=_0x45d2ff['getClosestSelectedImageElement'](_0x2ab9f3['model']['document']['selection']),_0x34521c=_0x2ab9f3['model']['createRangeOn'](_0x1cb895),_0x13abc1['refresh'](),_0x2ab9f3['commands']['get']('imageTypeInline')['refresh'](),_0x2ab9f3['commands']['get']('imageTypeBlock')['refresh'](),_0x10ef1e=_0x13abc1['value'],_0x10ef1e!=_0x45e0ac['value'])return _0x45d2ff['isInlineImage'](_0x1cb895)&&_0x13abc1['shouldConvertImageType'](_0x45e0ac['value'],_0x1cb895)?(_0x244276({..._0x45e0ac,'setImageSizes':!0x1}),_0x1cb895=_0x45d2ff['getClosestSelectedImageElement'](_0x2ab9f3['model']['document']['selection']),void _0x5100b8['markBlockFormat'](_0x1cb895,{..._0x28c497,'commandReversedParams':[{'value':_0x10ef1e||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x45d2ff['isBlockImage'](_0x1cb895)?_0x5100b8['markBlockFormat'](_0x1cb895,_0x28c497,[],'imageStylePostApply'):_0x5100b8['markInlineFormat'](_0x34521c,_0x28c497,'imageStylePostApply'));});});for(const _0x1b2a7b of _0x2ab9f3['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2c5e73[_0x1b2a7b['name']]=_0x1b2a7b['title']['toLowerCase']();_0x5100b8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5100b8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5100b8['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5100b8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4ebb1c])=>{_0x45d2ff['setImageNaturalSizeAttributes'](_0x4ebb1c['getContainedElement']());}),_0x5100b8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x598b2c,_0x5b3f3b)=>{_0x5100b8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x598b2c,{'commandName':_0x5b3f3b['commandName'],'commandParams':_0x5b3f3b['commandReversedParams']});}),_0x5100b8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x50b313,_0x2aaab3){if(_0x3e64c7(_0x50b313,_0x2aaab3))return[_0x50b313,_0x2aaab3];if(_0x3e64c7(_0x2aaab3,_0x50b313))return[_0x2aaab3,_0x50b313];return null;});const _0x4b28e2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3e64c7(_0x1b3de3,_0x19d580){const _0x46aea3=_0x4b28e2['findIndex'](({type:_0x2ad75e,subType:_0x387faa})=>_0x1b3de3['type']==_0x2ad75e&&_0x1b3de3['subType']==_0x387faa),_0x164a31=_0x4b28e2['findIndex'](({type:_0x5d3dcc,subType:_0x4a9e4b})=>_0x19d580['type']==_0x5d3dcc&&_0x19d580['subType']==_0x4a9e4b);if(_0x46aea3<0x0||_0x164a31<0x0)return!0x1;const _0xa25bf8=_0x1b3de3['getFirstRange'](),_0x504cbb=_0x19d580['getFirstRange']();if((0x0==_0x46aea3||0x1==_0x46aea3)&&0x2==_0x164a31&&_0xa25bf8['isIntersecting'](_0x504cbb))return!0x0;if(0x2==_0x46aea3&&0x3==_0x164a31){const _0x5cd82f=_0x5100b8['_findSuggestions'](_0xa25bf8,'insertion')['filter'](({suggestion:_0x381099,meta:_0x24add6})=>_0x24add6['isOwn']&&'convertInlineImageToBlock'==_0x381099['subType']);if(_0x5cd82f['length']>0x1&&_0x504cbb['end']['isEqual'](_0xa25bf8['start']))return!0x0;if(0x1==_0x5cd82f['length']&&(_0xa25bf8['start']['isEqual'](_0x504cbb['end'])||_0xa25bf8['end']['isEqual'](_0x504cbb['start'])))return!0x0;}if(0x3==_0x46aea3&&0x3==_0x164a31&&_0xa25bf8['start']['isBefore'](_0x504cbb['start'])){const _0x88a7df=_0xa25bf8['end']['nodeAfter'],_0x30d472=_0x504cbb['start']['nodeBefore'];return _0x45d2ff['isBlockImage'](_0x88a7df)&&_0x88a7df===_0x30d472;}return!0x1;}_0x2ab9f3['model']['document']['registerPostFixer'](()=>{let _0x628e3f=!0x1;const _0x3d1c09=Array['from'](_0x2ab9f3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x49e639,data:_0x1b4922}of _0x3d1c09){const {group:_0x7d711c,type:_0x472af9,subType:_0x123eb5,id:_0x2e7d2f}=_0x5100b8['_splitMarkerName'](_0x49e639);if('suggestion'==_0x7d711c&&_0x5100b8['hasSuggestion'](_0x2e7d2f)){if('formatBlock'==_0x472af9&&('imageStylePreApply'==_0x123eb5||'imageStylePostApply'==_0x123eb5)){const _0x4de4a4=_0x5100b8['getSuggestion'](_0x2e7d2f);if(_0x1b4922['newRange']){const _0x141cda=_0x4de4a4['getFirstRange']()['getContainedElement']();if(_0x45d2ff['isBlockImage'](_0x141cda))continue;_0x5100b8['discardSuggestion'](_0x4de4a4),_0x628e3f=!0x0;}}if('insertion'==_0x472af9&&'imageCaption'==_0x123eb5&&!_0x1b4922['newRange']){const _0x44c2e5=_0x5100b8['getSuggestion'](_0x2e7d2f);_0x44c2e5['next']&&_0x44c2e5['next']['isInContent']&&(_0x5100b8['discardSuggestion'](_0x44c2e5['next']),_0x628e3f=!0x0);}}}return _0x628e3f;}),this['_registerLegacyDescription'](_0x2c5e73);}['_registerLegacyDescription'](_0x37bc00){const _0x45015e=this['editor'],_0x5bf73b=_0x45015e['locale'];_0x45015e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd2239a=>{if('formatBlock'!=_0xd2239a['type']&&'formatInline'!=_0xd2239a['type'])return;const {data:_0x12f467}=_0xd2239a;if(!_0x12f467||'imageStyle'!=_0x12f467['commandName'])return;const _0x1d9c36=_0x12f467['commandParams'][0x0]['value'];return _0x2e677e('side'===_0x1d9c36?c(_0x5bf73b,'FORMAT_SIDE_IMAGE'):_0x37bc00[_0x1d9c36]||_0x1d9c36);function _0x2e677e(_0xdce0a2){return{'type':'format','content':c(_0x5bf73b,'*Format:*\x20%0',_0xdce0a2)};}});}}class ut extends _0x51b88f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4de3bc){super(_0x4de3bc),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x124dec=this['editor'],_0x52db0f=_0x124dec['commands']['get']('importWord'),_0x1fa8c1=_0x124dec['commands']['get']('trackChanges');_0x52db0f&&(_0x52db0f['on']('execute',(_0xa37cdc,[,_0x2d6ab6])=>{this['_trackChangesValueDuringImport']=_0x1fa8c1['value'],_0x2d6ab6['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x52db0f,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x52db0f,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1fa8c1['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x124dec['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1f523c,_0x261eee){const {suggestions:_0x473c0e}=_0x261eee,_0x441ee0=this['editor']['commands']['get']('trackChanges'),_0x59e5a1=_0x441ee0['value'];this['_trackChangesValueDuringImport']!==_0x59e5a1&&(_0x441ee0['execute'](),this['_trackChangesExecuted']=!0x0),_0x473c0e&&_0x473c0e['forEach'](({id:_0x4ad762,type:_0xd2601b,author:_0xa24630,created_at:_0x46c459})=>{const _0x5ce640={'id':_0x4ad762,'type':_0xd2601b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xa24630,'createdAt':_0x46c459?new Date(_0x46c459):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5ce640);});}}class ft extends _0x51b88f{['afterInit'](){const _0x32b59e=this['editor'],_0x2c23a1=_0x32b59e['plugins']['get']('TrackChangesEditing');if(_0x32b59e['plugins']['has']('IndentEditing')&&(_0x2c23a1['enableCommand']('indent'),_0x2c23a1['enableCommand']('outdent')),_0x32b59e['plugins']['has']('IndentBlock')){for(const _0x3ac42f of['indentBlock','outdentBlock'])_0x2c23a1['enableDefaultAttributesIntegration'](_0x3ac42f);}const _0x5b2bf2=_0x32b59e['locale'];_0x2c23a1['registerBlockAttribute']('blockIndent'),_0x2c23a1['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x5b2bf2,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6d155=this['editor'],_0x31e1ab=_0x6d155['locale'],_0x78bfad=_0x6d155['plugins']['get']('TrackChangesEditing');_0x78bfad['descriptionFactory']['registerDescriptionCallback'](_0x5e0997=>{if('formatBlock'!=_0x5e0997['type'])return;const {data:_0x5403a1}=_0x5e0997;if(!_0x5403a1)return;if('indentBlock'!=_0x5403a1['commandName']&&'outdentBlock'!=_0x5403a1['commandName'])return;const _0x49ec7f=_0x5e0997['getItems']()[0x0],_0x284080=_0x78bfad['descriptionFactory']['getItemLabel'](_0x49ec7f);return'indentBlock'==_0x5403a1['commandName']?{'type':'format','content':c(_0x31e1ab,'*Indent:*\x20%0',_0x284080)}:'outdentBlock'==_0x5403a1['commandName']?{'type':'format','content':c(_0x31e1ab,'*Outdent:*\x20%0',_0x284080)}:void 0x0;});}}class ht extends _0x51b88f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x51b88f{['afterInit'](){const _0xd8cf96=this['editor'];if(!_0xd8cf96['plugins']['has']('LinkEditing'))return;const _0x2efcc5=_0xd8cf96['plugins']['get']('TrackChangesEditing'),_0x38996f=_0xd8cf96['commands']['get']('link');_0x2efcc5['enableDefaultAttributesIntegration']('link'),_0x2efcc5['enableDefaultAttributesIntegration']('unlink'),_0x2efcc5['registerInlineAttribute']('linkHref');for(const _0x568650 of _0x38996f['manualDecorators'])_0x2efcc5['registerInlineAttribute'](_0x568650['id']),_0x2efcc5['descriptionFactory']['registerAttributeLabel'](_0x568650['id'],'link\x20('+_0x568650['label']['toLowerCase']()+')');_0x2efcc5['descriptionFactory']['registerDescriptionCallback'](_0x416448=>{if('attribute'!=_0x416448['type'])return;const {data:_0x7823ee}=_0x416448;if(!_0x7823ee||'linkHref'!=_0x7823ee['key'])return;const _0x19c7b3=_0x7823ee['newValue'],_0x6f3aa6=_0xd8cf96['locale'];return{'type':'format','content':null==_0x19c7b3?c(_0x6f3aa6,'*Remove\x20link*'):c(_0x6f3aa6,'*Set\x20link:*\x20%0','\x22'+_0x19c7b3+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16939a=this['editor'],_0x4b588b=_0x16939a['locale'];_0x16939a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3576cb=>{if('formatInline'!=_0x3576cb['type'])return;const {data:_0x557bea}=_0x3576cb;if(_0x557bea){if('link'==_0x557bea['commandName']){const _0x19bc60=_0x557bea['commandParams'][0x0];return{'type':'format','content':c(_0x4b588b,'*Set\x20link:*\x20%0','\x22'+_0x19bc60+'\x22')};}return'unlink'==_0x557bea['commandName']?{'type':'format','content':c(_0x4b588b,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x51b88f{['afterInit'](){const _0x482e06=this['editor'],_0x1f5edb=_0x482e06['locale'];if(!_0x482e06['plugins']['has']('LegacyListEditing'))return;const _0x382a72=_0x482e06['plugins']['get']('TrackChangesEditing'),_0x373e41=_0x482e06['plugins']['has']('LegacyTodoListEditing');function _0x4b5348(_0x22f887){return()=>{const _0x1fa417=_0x482e06['model']['document']['selection'],_0x27ac70=_0x482e06['commands']['get'](_0x22f887);if(_0x27ac70['value'])return void _0x482e06['execute']('paragraph',{});const _0x1880c6=_0x22f887['slice'](0x0,-0x4),_0xcc8ce9=function(_0x4d01ae,_0x4133d6,_0x124ea8){let _0x5a4020=Array['from'](_0x4d01ae)['filter'](_0x22b55d=>function(_0x30e897,_0x317768){return _0x317768['checkChild'](_0x30e897['parent'],'listItem')&&!_0x317768['isObject'](_0x30e897);}(_0x22b55d,_0x124ea8));_0x5a4020=_0x5a4020['filter'](_0x5a3c80=>!_0x5a3c80['is']('element','listItem')||_0x5a3c80['getAttribute']('listType')!=_0x4133d6);const _0x3361ac=new Set();for(const _0x5bb93c of _0x5a4020)_0x5bb93c['is']('element','listItem')?_0x3361ac['add'](Le(_0x5bb93c)):_0x3361ac['add'](_0x5bb93c);return Array['from'](_0x3361ac);}(_0x1fa417['getSelectedBlocks'](),_0x1880c6,_0x482e06['model']['schema']);_0x482e06['model']['change'](()=>{for(const _0x129e19 of _0xcc8ce9)_0x382a72['markBlockFormat'](_0x129e19,{'commandName':_0x22f887,'commandParams':[{'forceValue':!_0x27ac70['value']}],'formatGroupId':'blockName'},Ee(_0x129e19));});};}function _0x398f97(_0x2dba76){return()=>{const _0x3a78b6=function(_0x3e3e34){let _0x2832a5=Array['from'](_0x3e3e34);const _0x35f024=_0x2832a5['findIndex'](_0x599fc1=>'listItem'!=_0x599fc1['name']);return _0x35f024>-0x1&&(_0x2832a5=_0x2832a5['slice'](0x0,_0x35f024)),_0x2832a5;}(_0x482e06['model']['document']['selection']['getSelectedBlocks']()),_0x25c0ab=_0x482e06['model']['createRange'](_0x482e06['model']['createPositionAt'](_0x3a78b6[0x0],'before'),_0x482e06['model']['createPositionAt'](_0x3a78b6[_0x3a78b6['length']-0x1],'end'));_0x482e06['model']['change'](()=>{_0x382a72['markBlockFormat'](_0x25c0ab,{'commandName':_0x2dba76,'commandParams':[],'formatGroupId':'listIndent'},function(_0x30c6d3){const _0x3dff9a=new Set();for(const _0x3ca042 of _0x30c6d3){let _0x379703=_0x3ca042['nextSibling'];for(;_0x379703&&_0x379703['getAttribute']('listIndent')>_0x3ca042['getAttribute']('listIndent');)_0x3dff9a['add'](_0x379703),_0x379703=_0x379703['nextSibling'];}return Array['from'](_0x3dff9a);}(_0x3a78b6));});};}_0x382a72['enableCommand']('numberedList',_0x4b5348('numberedList')),_0x382a72['enableCommand']('bulletedList',_0x4b5348('bulletedList')),_0x373e41&&_0x382a72['enableCommand']('todoList',_0x4b5348('todoList')),_0x382a72['enableCommand']('indentList',_0x398f97('indentList')),_0x382a72['enableCommand']('outdentList',_0x398f97('outdentList')),_0x373e41&&_0x382a72['enableCommand']('checkTodoList',()=>{const _0x1464f0=_0x482e06['commands']['get']('checkTodoList'),_0x2da271=Array['from'](_0x1464f0['_selectedElements']);_0x2da271['filter'](_0x550cfe=>_0x550cfe['getAttribute']('todoListChecked')!=_0x1464f0['value']),_0x482e06['model']['change'](()=>{for(const _0x11c482 of _0x2da271)_0x382a72['markBlockFormat'](_0x11c482,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1464f0['value']}]});});}),_0x382a72['descriptionFactory']['registerElementLabel']('listItem',_0x1ce7dc=>c(_0x1f5edb,'ELEMENT_LIST_ITEM',_0x1ce7dc)),_0x382a72['descriptionFactory']['registerDescriptionCallback'](_0x58dce2=>{if('formatBlock'!=_0x58dce2['type']&&'formatInline'!=_0x58dce2['type'])return;const {data:_0x22e4fd}=_0x58dce2;if(_0x22e4fd){if('numberedList'==_0x22e4fd['commandName']||'bulletedList'==_0x22e4fd['commandName']||'todoList'==_0x22e4fd['commandName'])switch(_0x22e4fd['commandName']['replace']('List','')){case'bulleted':return _0x14ab9e(c(_0x1f5edb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x14ab9e(c(_0x1f5edb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x14ab9e(c(_0x1f5edb,'ELEMENT_TODO_LIST'));}if('indentList'==_0x22e4fd['commandName'])return{'type':'format','content':c(_0x1f5edb,'*Indent:*\x20%0',c(_0x1f5edb,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x22e4fd['commandName'])return{'type':'format','content':c(_0x1f5edb,'*Outdent:*\x20%0',c(_0x1f5edb,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x22e4fd['commandName'])return _0x22e4fd['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1f5edb,'*Check\x20item*')}:{'type':'format','content':c(_0x1f5edb,'*Uncheck\x20item*')};}function _0x14ab9e(_0x24a25f){return{'type':'format','content':c(_0x1f5edb,'*Change\x20to:*\x20%0',_0x24a25f)};}});}}function Le(_0x4e2440){const _0x1d4473=_0x4e2440['getAttribute']('listIndent');if(0x0==_0x1d4473)return _0x4e2440;let _0x56f2ec=_0x4e2440;for(;_0x4e2440['previousSibling']&&_0x4e2440['previousSibling']['is']('element','listItem');){const _0x5d4001=_0x4e2440['previousSibling']['getAttribute']('listIndent');if(_0x5d4001==_0x1d4473)_0x56f2ec=_0x4e2440['previousSibling'];else{if(_0x5d4001<_0x1d4473)break;}_0x4e2440=_0x4e2440['previousSibling'];}return _0x56f2ec;}function Ee(_0x460d48){const _0x389574=[];if(_0x460d48['is']('element','listItem')&&_0x460d48['getAttribute']('listIndent')>0x0){let _0x50a20b=_0x460d48['nextSibling'];for(;_0x50a20b&&'listItem'==_0x50a20b['name']&&_0x50a20b['getAttribute']('listIndent')==_0x460d48['getAttribute']('listIndent');)_0x389574['push'](_0x50a20b),_0x50a20b=_0x50a20b['nextSibling'];}return _0x389574;}class Q extends _0x51b88f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x415e2a=this['editor']['config']['get']('list.properties'),_0xabc5cc=this['editor']['plugins']['get']('TrackChangesEditing');_0x415e2a['styles']&&_0xabc5cc['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x415e2a['reversed']&&_0xabc5cc['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x415e2a['startIndex']&&_0xabc5cc['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xabc5cc['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1bae2d,_0x2520ed={}){const _0x4acee2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e6612=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4acee2['markMultiRangeBlockFormat'](_0x4e6612,{'commandName':'listStyle','commandParams':[{'type':_0x2520ed['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x19347e,_0x2d4d23={}){const _0x1fbeab=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4829c5=this['_getSuggestionBlocks'](_0x1a938d=>_0x1a938d['is']('element','listItem')&&'numbered'===_0x1a938d['getAttribute']('listType'));if(_0x4829c5['length']<0x1)return;const _0x4057f6=_0x4829c5['map'](_0x1c0acb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1c0acb,'before'),this['editor']['model']['createPositionAt'](_0x1c0acb,0x0)));this['editor']['model']['change'](()=>{_0x1fbeab['markMultiRangeBlockFormat'](_0x4057f6,{'commandName':'listReversed','commandParams':[{'reversed':_0x2d4d23['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5c0d36,_0x208277={}){const _0x2c22f2=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa28d9=this['_getSuggestionBlocks'](_0x27e05e=>_0x27e05e['is']('element','listItem')&&'numbered'===_0x27e05e['getAttribute']('listType'));if(_0xa28d9['length']<0x1)return;const _0x5b9384=_0xa28d9['map'](_0x5f176d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5f176d,'before'),this['editor']['model']['createPositionAt'](_0x5f176d,0x0)));this['editor']['model']['change'](()=>{_0x2c22f2['markMultiRangeBlockFormat'](_0x5b9384,{'commandName':'listStart','commandParams':[{'startIndex':_0x208277['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3998fc){if('formatBlock'!=_0x3998fc['type']&&'formatInline'!=_0x3998fc['type'])return;const _0xfd9cad=this['editor']['locale'],{data:_0x3ee231}=_0x3998fc;if(!_0x3ee231)return;let _0x540fd7,_0x5141b3;switch(_0x3ee231['commandName']){case'listStyle':_0x540fd7='*Change\x20to:*\x20%0',_0x5141b3={'type':'format','content':c(_0xfd9cad,_0x540fd7,c(_0xfd9cad,this['_getTranslationKeyForListStyle'](_0x3ee231['commandParams'][0x0]['type'])))};break;case'listReversed':_0x540fd7=_0x3ee231['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5141b3={'type':'format','content':c(_0xfd9cad,_0x540fd7)};break;case'listStart':_0x540fd7='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5141b3={'type':'format','content':c(_0xfd9cad,_0x540fd7,_0x3ee231['commandParams'][0x0]['startIndex'])};}return _0x5141b3;}['_getSuggestionBlocksForListStyle'](){const _0x5879d2=this['editor']['plugins']['get']('LegacyListUtils');let _0x482ba8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x482ba8[0x0]?.['is']('element','listItem')&&_0x482ba8['unshift'](..._0x5879d2['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x482ba8[_0x482ba8['length']-0x1]?.['is']('element','listItem')&&_0x482ba8['push'](..._0x5879d2['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x482ba8=[...new Set(_0x482ba8)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x482ba8=_0x482ba8['filter'](_0x1d83d6=>_0x1d83d6['is']('element','listItem'))),_0x482ba8;}['_getSuggestionBlocks'](_0x1c43e5){const _0x2e7a51=this['editor']['plugins']['get']('LegacyListUtils');let _0x13f004=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1c43e5)['map'](_0xa4beca=>{const _0xdc45e4=this['editor']['model']['createPositionAt'](_0xa4beca,0x0);return[..._0x2e7a51['getSiblingNodes'](_0xdc45e4,'backward'),..._0x2e7a51['getSiblingNodes'](_0xdc45e4,'forward')];})['flat']();return _0x13f004=[...new Set(_0x13f004)],_0x13f004;}['_getTranslationKeyForListStyle'](_0x51b3be){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x51b3be)||'default')['toUpperCase']()+'_LIST_'+_0x51b3be['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x51b88f{['afterInit'](){const _0x5b7024=this['editor'];if(!_0x5b7024['plugins']['has']('MediaEmbedEditing'))return;const _0x3dfa20=_0x5b7024['plugins']['get']('TrackChangesEditing'),_0x5ca8ca=_0x5b7024['locale'];_0x3dfa20['enableCommand']('mediaEmbed'),_0x3dfa20['descriptionFactory']['registerElementLabel']('media',_0x5a1cb1=>c(_0x5ca8ca,'ELEMENT_MEDIA',_0x5a1cb1)),_0x5b7024['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x24b08f,{writer:_0x1cfa0d,options:_0x18df07})=>{if(_0x18df07['showSuggestionHighlights'])return _0x1cfa0d['createEmptyElement']('div');},'converterPriority':'high'}),_0x5b7024['data']['downcastDispatcher']['on']('attribute:url:media',(_0x27f544,_0x235521,_0x22c5c8)=>{_0x22c5c8['options']['showSuggestionHighlights']&&_0x27f544['stop']();},{'priority':'high'});}}class pt extends _0x51b88f{['afterInit'](){const _0x2fd06b=this['editor'];_0x2fd06b['plugins']['has']('MentionEditing')&&_0x2fd06b['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x51b88f{['afterInit'](){const _0x27f8d4=this['editor'];if(!_0x27f8d4['plugins']['has']('MergeFieldsEditing'))return;const _0x192ad7=_0x27f8d4['plugins']['get']('TrackChangesEditing'),_0xd1582d=_0x27f8d4['locale'];_0x192ad7['enableCommand']('insertMergeField'),_0x192ad7['enableCommand']('insertMergeFieldBlock'),_0x192ad7['enableCommand']('insertMergeFieldImage'),_0x192ad7['descriptionFactory']['registerElementLabel']('mergeField',_0x25c108=>c(_0xd1582d,'ELEMENT_MERGE_FIELD',_0x25c108)),_0x192ad7['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x385f6b=>c(_0xd1582d,'ELEMENT_MERGE_FIELD',_0x385f6b)),_0x192ad7['descriptionFactory']['registerDescriptionCallback'](_0x527103=>{if('insertion'!=_0x527103['type']&&'deletion'!=_0x527103['type'])return;const _0x28de6d=_0x527103['getContainedElement']();if(null==_0x28de6d)return;const _0x20353e=_0x27f8d4['plugins']['get']('MergeFieldsEditing');let _0x2dda44;switch(_0x20353e['getMergeFieldType'](_0x28de6d)){case null:return;case'image':{const _0x420782=_0x20353e['unwrapAffixes'](_0x28de6d['getAttribute']('src'));_0x2dda44=_0x20353e['getLabel'](_0x420782)||_0x420782;break;}default:{const _0x463d86=_0x28de6d['getAttribute']('id');_0x2dda44=_0x20353e['getLabel'](_0x463d86)||_0x463d86;break;}}return'insertion'==_0x527103['type']?{'type':'insertion','content':c(_0xd1582d,'*Insert:*\x20%0','\x22'+_0x2dda44+'\x22\x20'+c(_0xd1582d,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0xd1582d,'*Remove:*\x20%0','\x22'+_0x2dda44+'\x22\x20'+c(_0xd1582d,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x51b88f{['afterInit'](){const _0xb0b7b2=this['editor'],_0x156b4a=_0xb0b7b2['plugins']['get']('TrackChangesEditing');_0xb0b7b2['plugins']['has']('MultiLevelList')&&(_0x156b4a['enableDefaultAttributesIntegration']('multiLevelList'),_0x156b4a['registerBlockAttribute']('listMarkerStyle'),_0x156b4a['descriptionFactory']['registerDescriptionCallback'](_0x31ad47=>this['handleDescriptions'](_0x31ad47)));}['handleDescriptions'](_0x225afc){const _0x165fa1=this['editor']['locale'],{data:_0x258b0c}=_0x225afc,_0x5c4c6d={'type':'format','content':''};if(_0x258b0c&&'listMarkerStyle'==_0x258b0c['key']){if(!_0x258b0c['oldValue'])return{'type':'format','content':c(_0x165fa1,'*Set\x20format:*\x20%0',c(_0x165fa1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x258b0c['newValue']+')'};if(!_0x258b0c['newValue']){let _0x50063=_0x225afc['head'];for(;_0x50063;){if(_0x50063['data']&&'listType'==_0x50063['data']['key']&&_0x50063['data']['newValue'])return _0x5c4c6d;_0x50063=_0x50063['next'];}return{'type':'format','content':c(_0x165fa1,'*Remove\x20format:*\x20%0',c(_0x165fa1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x258b0c['oldValue']+')'};}}}}class bt extends _0x51b88f{['afterInit'](){const _0x2af307=this['editor'];if(!_0x2af307['plugins']['has']('PageBreakEditing'))return;_0x2af307['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x316d19=_0x2af307['plugins']['get']('TrackChangesEditing'),_0x2da2a0=_0x2af307['locale'];_0x316d19['descriptionFactory']['registerElementLabel']('pageBreak',_0x4f57b4=>c(_0x2da2a0,'ELEMENT_PAGE_BREAK',_0x4f57b4));}}class yt extends _0x51b88f{['afterInit'](){const _0x9ef33c=this['editor'];if(!_0x9ef33c['plugins']['has']('Paragraph'))return;const _0x5d1120=_0x9ef33c['locale'],_0x360a45=_0x9ef33c['plugins']['get']('TrackChangesEditing');_0x360a45['descriptionFactory']['registerElementLabel']('paragraph',_0x42e320=>c(_0x5d1120,'ELEMENT_PARAGRAPH',_0x42e320)),_0x360a45['enableDefaultAttributesIntegration']('paragraph'),_0x360a45['enableCommand']('insertParagraph'),_0x9ef33c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x9ef33c),{'priority':'highest'}),_0x9ef33c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1113fb,_0x19d121,_0x434efd)=>{_0x434efd['options']['showSuggestionHighlights']&&nr(_0x9ef33c,{'showActiveMarker':!0x1})(_0x1113fb,_0x19d121,_0x434efd);},{'priority':'highest'});const _0x416636=_0x360a45['descriptionFactory'];_0x416636['registerDescriptionCallback'](_0x1981fc=>{if('insertion'!==_0x1981fc['type'])return;const {start:_0x1ec83f,end:_0x4df3e8}=_0x1981fc['getFirstRange']();if(!_0x1ec83f['isTouching'](_0x4df3e8)||!_0x1ec83f['nodeAfter'])return;const _0x8751c6=_0x9ef33c['model']['schema'],_0x7a78a8=_0x1ec83f['nodeAfter'];return _0x8751c6['isBlock'](_0x7a78a8)&&!_0x8751c6['isLimit'](_0x7a78a8)&&_0x8751c6['checkChild'](_0x7a78a8,'$text')?{'type':'insertion','content':c(_0x5d1120,'*Insert:*\x20%0',_0x416636['getItemLabel'](_0x7a78a8,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d96db=this['editor'],_0x450b65=_0x2d96db['locale'];_0x2d96db['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe6b6c9=>{if('formatBlock'!=_0xe6b6c9['type'])return;const {data:_0x365d6d}=_0xe6b6c9;return _0x365d6d&&'paragraph'==_0x365d6d['commandName']?{'type':'format','content':c(_0x450b65,'*Change\x20to:*\x20%0',c(_0x450b65,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2056cf,{showActiveMarker:_0x372548=!0x0}={}){return(_0x417b12,_0x575e34,_0x4da483)=>{const _0x5237a4=_0x2056cf['plugins']['get']('TrackChangesEditing'),_0x4540a4=_0x575e34['markerRange']['start'],_0x31dfdd=_0x575e34['markerRange']['end'],_0x1e23a1=_0x2056cf['model']['schema'];if(!_0x4540a4['isTouching'](_0x31dfdd)||!_0x4540a4['nodeAfter'])return;const _0x18f716=_0x4540a4['nodeAfter'];if(_0x1e23a1['isBlock'](_0x18f716)&&!_0x1e23a1['isLimit'](_0x18f716)&&_0x1e23a1['checkChild'](_0x18f716,'$text')){if(!_0x4da483['consumable']['consume'](_0x575e34['markerRange'],_0x417b12['name']))return;const {authorId:_0x45864a}=_0x5237a4['_splitMarkerName'](_0x575e34['markerName']),_0x395ad4=_0x4da483['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x45864a}),_0x28b02a=_0x4da483['mapper']['toViewPosition'](_0x31dfdd);_0x372548&&_0x5237a4['activeMarkers']['includes'](_0x575e34['markerName'])&&_0x4da483['writer']['addClass']('ck-suggestion-marker--active',_0x395ad4),_0x4da483['writer']['insert'](_0x28b02a,_0x395ad4),_0x4da483['mapper']['bindElementToMarker'](_0x395ad4,_0x575e34['markerName']);}};}class jt extends _0x51b88f{['afterInit'](){const _0x520660=this['editor'];_0x520660['commands']['get']('replaceSource')&&_0x520660['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x51b88f{['afterInit'](){const _0x51f8d2=this['editor'];if(!_0x51f8d2['plugins']['has']('RemoveFormatEditing'))return;_0x51f8d2['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x411fdb=this['editor'];_0x411fdb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45f20f=>{if('formatBlock'!=_0x45f20f['type']&&'formatInline'!=_0x45f20f['type'])return;const {data:_0x46efe5}=_0x45f20f;return _0x46efe5&&'removeFormat'==_0x46efe5['commandName']?{'type':'format','content':c(_0x411fdb['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x51b88f{['afterInit'](){const _0x528fe1=this['editor'];if(!_0x528fe1['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x53233e=_0x528fe1['plugins']['get']('TrackChangesEditing');_0x53233e['enableCommand']('goToPreviousRestrictedEditingException'),_0x53233e['enableCommand']('goToNextRestrictedEditingException');const _0x307c2a=_0x528fe1['plugins']['get']('RestrictedEditingModeEditing');_0x307c2a['enableCommand']('trackChanges'),_0x307c2a['enableCommand']('acceptSuggestion'),_0x307c2a['enableCommand']('discardSuggestion'),_0x307c2a['enableCommand']('acceptAllSuggestions'),_0x307c2a['enableCommand']('discardAllSuggestions'),_0x307c2a['enableCommand']('acceptSelectedSuggestions'),_0x307c2a['enableCommand']('discardSelectedSuggestions');}}class It extends _0x51b88f{['afterInit'](){const _0x5c7ac2=this['editor'];if(!_0x5c7ac2['plugins']['has']('ShiftEnter'))return;const _0x51ebb7=_0x5c7ac2['plugins']['get']('TrackChangesEditing');_0x51ebb7['enableCommand']('shiftEnter'),_0x5c7ac2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x5c7ac2),{'priority':'high'}),_0x5c7ac2['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x5c7ac2),{'priority':'high'}),_0x5c7ac2['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1731f1,_0x1354b8,_0x1a7ac1)=>{_0x1a7ac1['options']['showSuggestionHighlights']&&je(_0x5c7ac2,{'showActiveMarker':!0x1})(_0x1731f1,_0x1354b8,_0x1a7ac1);}),_0x51ebb7['descriptionFactory']['registerElementLabel']('softBreak',_0x58fdf9=>c(_0x5c7ac2['locale'],'ELEMENT_LINE_BREAK',_0x58fdf9));}}function je(_0x3ce563,{showActiveMarker:_0x2c5666=!0x0}={}){return(_0x462ca8,_0x262822,_0x426e02)=>{const _0x5a13c4=_0x3ce563['plugins']['get']('TrackChangesEditing');if(!_0x426e02['consumable']['test'](_0x262822['markerRange'],_0x462ca8['name']))return;const _0x59a925=_0x3ce563['model'];for(const _0x882f47 of _0x262822['markerRange']['getItems']()){if(!_0x882f47['is']('element','softBreak'))continue;const _0x6d0f3c='deletion'==_0x262822['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x2b6983}=_0x5a13c4['_splitMarkerName'](_0x262822['markerName']),_0x1f9992=_0x426e02['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x6d0f3c,'data-author-id':_0x2b6983}),_0x46feb6=_0x426e02['mapper']['toViewPosition'](_0x59a925['createPositionBefore'](_0x882f47));_0x2c5666&&_0x5a13c4['activeMarkers']['includes'](_0x262822['markerName'])&&_0x426e02['writer']['addClass']('ck-suggestion-marker--active',_0x1f9992),_0x426e02['writer']['insert'](_0x46feb6,_0x1f9992),_0x426e02['mapper']['bindElementToMarker'](_0x1f9992,_0x262822['markerName']);}};}class _t extends _0x51b88f{['afterInit'](){const _0x53c2a1=this['editor'],_0x18ed55=_0x53c2a1['model'],_0x265a33=_0x53c2a1['locale'];if(!_0x53c2a1['plugins']['has']('StandardEditingModeEditing'))return;const _0x5d5b8b=_0x53c2a1['plugins']['get']('TrackChangesEditing'),_0x4e3755='restrictedEditingException',_0x321f7b=_0x53c2a1['commands']['get'](_0x4e3755);_0x5d5b8b['enableCommand'](_0x4e3755,(_0x52a98d,_0xab21e5={})=>{const _0x54792a=_0x18ed55['document']['selection'];if(_0x54792a['isCollapsed'])return void _0x52a98d(_0xab21e5);const _0x5944d9=void 0x0!==_0xab21e5['forceValue']?_0xab21e5['forceValue']:!_0x321f7b['value'];_0x18ed55['change'](()=>{const _0x1529f6=Array['from'](_0x54792a['getRanges']());for(const _0x5bd48e of _0x1529f6){const _0x195a47=_0x5944d9?[_0x5bd48e]:io(_0x4e3755,_0x5bd48e,_0x18ed55);for(const _0x5f55bb of _0x195a47)_0x5d5b8b['markInlineFormat'](_0x5f55bb,{'commandName':_0x4e3755,'commandParams':[{'forceValue':_0x5944d9}]});}});}),_0x5d5b8b['descriptionFactory']['registerDescriptionCallback'](_0x23528f=>{if('formatBlock'!=_0x23528f['type']&&'formatInline'!=_0x23528f['type'])return;const {data:_0x52d7ee}=_0x23528f;return _0x52d7ee&&_0x52d7ee['commandName']==_0x4e3755?_0x52d7ee['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x265a33,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x265a33,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x51b88f{['afterInit'](){const _0x10af21=this['editor'];if(!_0x10af21['plugins']['has']('Style')||!_0x10af21['plugins']['has']('DataSchema'))return;const _0x594897=_0x10af21['plugins']['get']('TrackChangesEditing'),_0x490ac3=_0x10af21['locale'],_0x38172a=_0x10af21['config']['get']('style')||{},_0x5993ff=_0x10af21['plugins']['get']('GeneralHtmlSupport'),_0x3fcabc=_0x10af21['plugins']['get']('StyleUtils')['normalizeConfig'](_0x10af21['plugins']['get']('DataSchema'),_0x38172a['definitions']);_0x594897['enableDefaultAttributesIntegration']('style');const _0x1f2a5a=new Set();for(const _0x2945ce of _0x3fcabc['block']){const _0x2a510c=_0x5993ff['getGhsAttributeNameForElement'](_0x2945ce['element']);_0x1f2a5a['add'](_0x2a510c);}const _0xc9367=new Set();for(const _0x37e289 of _0x3fcabc['inline']){const _0x5e3e67=_0x5993ff['getGhsAttributeNameForElement'](_0x37e289['element']);_0xc9367['add'](_0x5e3e67);for(const _0x102556 of _0x37e289['ghsAttributes'])_0xc9367['add'](_0x102556);}for(const _0x3766ab of _0x1f2a5a)_0x594897['registerBlockAttribute'](_0x3766ab),_0x594897['descriptionFactory']['registerAttributeLabel'](_0x3766ab,c(_0x490ac3,'FORMAT_STYLE'));for(const _0x12c0d4 of _0xc9367)_0x594897['registerInlineAttribute'](_0x12c0d4),_0x594897['descriptionFactory']['registerAttributeLabel'](_0x12c0d4,c(_0x490ac3,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4757c6=this['editor'],_0xd20c68=_0x4757c6['locale'];_0x4757c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2376d0=>{if('formatBlock'!=_0x2376d0['type']&&'formatInline'!=_0x2376d0['type'])return;const {data:_0x599063}=_0x2376d0;return _0x599063&&'style'===_0x599063['commandName']?_0x599063['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xd20c68,'*Set\x20format:*\x20%0',_0x599063['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0xd20c68,'*Remove\x20format:*\x20%0',_0x599063['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x51b88f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3c2b09){super(_0x3c2b09),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0xe4a508=this['editor'],_0x256441=_0xe4a508['model']['document']['selection'];if(!_0xe4a508['plugins']['has']('TableEditing'))return;const _0x5a2258=_0xe4a508['locale'],_0x6a63d3=_0xe4a508['plugins']['get']('TrackChangesEditing'),_0x3e8e00=_0xe4a508['plugins']['get']('TableUtils');_0x6a63d3['descriptionFactory']['registerElementLabel']('table',_0x401a2f=>c(_0x5a2258,'ELEMENT_TABLE',_0x401a2f)),this['_setupColumnsRowsFixing'](),_0x6a63d3['enableCommand']('insertTable'),_0x6a63d3['enableCommand']('selectTableRow'),_0x6a63d3['enableCommand']('selectTableColumn');for(const _0x35ff11 of['insertTableRowAbove','insertTableRowBelow']){const _0x502e87=_0xe4a508['commands']['get'](_0x35ff11);_0x6a63d3['enableCommand'](_0x35ff11,_0x56d32d=>{_0xe4a508['model']['change'](_0x4e25e4=>{_0x56d32d();const _0x30d0bc='above'===_0x502e87['order'],_0x4af91b=_0x3e8e00['getSelectionAffectedTableCells'](_0x256441),_0x1f4df8=_0x3e8e00['getRowIndexes'](_0x4af91b),_0x2fda94=_0x30d0bc?_0x1f4df8['first']-0x1:_0x1f4df8['last']+0x1,_0x1f7c83=_0x4af91b[0x0]['findAncestor']('table'),_0xcdd597=_0x3e8e00['createTableWalker'](_0x1f7c83,{'startRow':_0x2fda94,'endRow':_0x2fda94}),_0x1188b0=Array['from'](_0xcdd597)['map'](_0x410f71=>_0x4e25e4['createRangeOn'](_0x410f71['cell']));_0x6a63d3['markMultiRangeInsertion'](_0x1188b0,'tableRow');});});}for(const _0x3f2201 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3c1800=_0xe4a508['commands']['get'](_0x3f2201);_0x6a63d3['enableCommand'](_0x3f2201,_0x20d950=>{_0xe4a508['model']['change'](_0x20a4cb=>{_0x20d950();const _0x33d52c='left'===_0x3c1800['order'],_0x57e078=_0x3e8e00['getSelectionAffectedTableCells'](_0x256441),_0x3b823b=_0x3e8e00['getColumnIndexes'](_0x57e078),_0x52a8fd=_0x33d52c?_0x3b823b['first']-0x1:_0x3b823b['last']+0x1,_0x7822eb=_0x57e078[0x0]['findAncestor']('table'),_0x2a9462=_0x3e8e00['createTableWalker'](_0x7822eb,{'startRow':0x0,'column':_0x52a8fd,'includeAllSlots':!0x1}),_0x1a8640=Array['from'](_0x2a9462)['map'](_0x45f208=>_0x20a4cb['createRangeOn'](_0x45f208['cell']));_0x6a63d3['markMultiRangeInsertion'](_0x1a8640,'tableColumn');});});}for(const _0x5c6188 of['removeTableRow','removeTableColumn']){const _0x6ea0cb=_0x5c6188['substr'](0xb),_0x1af02b=_0x6ea0cb['toLowerCase'](),_0x4fe4b0=_0x1af02b['substr'](0x0,0x3)+'span',_0x2fb945='table'+_0x6ea0cb,_0x21b681='min'+_0x6ea0cb,_0x2ee6ef='max'+_0x6ea0cb;_0x6a63d3['enableCommand'](_0x5c6188,()=>{_0xe4a508['model']['change'](_0x3cdba1=>{const _0x49f1eb=_0x3e8e00['getSelectionAffectedTableCells'](_0x256441),_0x151ecd=_0x49f1eb[0x0]['findAncestor']('table');let _0x16edfc;if('removeTableRow'==_0x5c6188){const _0x1dda2b=_0x3e8e00['getRowIndexes'](_0x49f1eb);_0x16edfc={'startRow':_0x1dda2b['first'],'endRow':_0x1dda2b['last'],'includeAllSlots':!0x0};}else{const _0x4c6471=_0x3e8e00['getColumnIndexes'](_0x49f1eb);_0x16edfc={'startColumn':_0x4c6471['first'],'endColumn':_0x4c6471['last'],'includeAllSlots':!0x0};}const _0x4c43f5=_0x3e8e00['createTableWalker'](_0x151ecd,_0x16edfc),_0x26019a=Array['from'](_0x4c43f5)['map'](({cell:_0x1a3314})=>_0x1a3314),_0x1bed9a=Ne(_0x26019a['filter'](_0x3337a0=>_0x3337a0['hasAttribute'](_0x4fe4b0))),_0x2b95e4=Ne(_0x26019a['filter'](_0x20a42d=>!_0x20a42d['hasAttribute'](_0x4fe4b0)))['map'](_0x3de77b=>_0x3cdba1['createRangeOn'](_0x3de77b)),_0x6267dc=_0x6a63d3['markMultiRangeDeletion'](_0x2b95e4,_0x2fb945);if(_0x6267dc&&('tableRow'==_0x6267dc['subType']||'tableColumn'==_0x6267dc['subType'])){const _0x2a42e1=this['_getSuggestionCoords'](_0x6267dc);for(const _0xe1624c of _0x1bed9a){const _0x47fe52=_0x3cdba1['createRangeOn'](_0xe1624c),_0x1d5b7b=_0x3e8e00['getCellLocation'](_0xe1624c),_0x120811=_0xe1624c['getAttribute'](_0x4fe4b0)-0x1,_0x3edc36=_0x2a42e1[_0x21b681],_0x2eee34=_0x2a42e1[_0x2ee6ef];_0x3edc36<=_0x1d5b7b[_0x1af02b]&&_0x1d5b7b[_0x1af02b]+_0x120811<=_0x2eee34&&_0x6267dc['addRange'](_0x47fe52);}}});});}function _0x502d0b(_0x55e06e){const _0x4d977b=Array['from'](_0x256441['getRanges']())['map'](_0x2403a1=>_0x221782['fromRange'](_0x2403a1));_0xe4a508['model']['change'](_0x390492=>{const _0x547df1=_0x390492['batch'];_0x55e06e=_0x55e06e['filter'](_0x5c841e=>'$graveyard'!=_0x5c841e['root']['rootName']),_0x390492['setSelection'](_0x55e06e),_0xe4a508['commands']['get']('removeTableRow')['refresh'](),_0xe4a508['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xe4a508['model']['enqueueChange'](()=>{_0xe4a508['model']['enqueueChange'](_0x547df1,_0x156166=>{const _0x5b2b2e=_0x4d977b['filter'](_0x41939e=>'$graveyard'!=_0x41939e['root']['rootName']);_0x5b2b2e['length']>0x0&&_0x156166['setSelection'](_0x5b2b2e);for(const _0x480376 of _0x4d977b)_0x480376['detach']();});});});}function _0xbba8ba(_0x1322fc){_0xe4a508['model']['change'](_0xac0d3=>{const _0x80df44=Array['from'](_0x256441['getRanges']())['map'](_0x130826=>_0x221782['fromRange'](_0x130826)),_0xe51eb=[];for(const _0x1ae12c of _0x1322fc)for(const _0x4a9a2c of _0x1ae12c['getItems']({'shallow':!0x0}))_0xe51eb['push'](_0x4a9a2c);for(const _0x542c9b of _0xe51eb)'$graveyard'!=_0x542c9b['root']['rootName']&&(_0xac0d3['setSelection'](_0xac0d3['createPositionAt'](_0x542c9b,0x0)),_0xe4a508['commands']['get']('removeTableColumn')['refresh'](),_0xe4a508['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4b5985=_0x80df44['filter'](_0x3e78c1=>'$graveyard'!=_0x3e78c1['root']['rootName']);_0x4b5985['length']>0x0&&_0xac0d3['setSelection'](_0x4b5985);for(const _0x478080 of _0x80df44)_0x478080['detach']();});}function _0x5daba6(_0x1fd9f6,_0x1f2d8b){return _0x1f2d8b['every'](_0x1cc9c0=>_0x1fd9f6['some'](_0xac3c28=>_0xac3c28['end']['isEqual'](_0x1cc9c0['start'])||_0x1cc9c0['end']['isEqual'](_0xac3c28['start'])));}function _0x42a294(_0x13f812,_0x26141f){return!_0x13f812['some'](_0x228cf0=>_0x26141f['some'](_0x52f2c=>_0x228cf0['isIntersecting'](_0x52f2c)))&&_0x13f812['some'](_0xb10ec8=>_0x26141f['some'](_0x15c128=>_0xb10ec8['end']['isTouching'](_0x15c128['start'])));}_0xe4a508['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1e72ce,_0x2fe6ec,_0x2a3d78)=>{if(!_0x2a3d78['options']['showSuggestionHighlights'])return;const _0x292921=_0x2fe6ec['item'];if(!_0x292921)return;const _0x2cddad=_0x2a3d78['mapper']['toViewElement'](_0x292921);function _0x1b9298(_0x16740f){return Array['isArray'](_0x16740f)?_0x16740f:[_0x16740f];}_0x2cddad&&'tableCell'===_0x292921['name']&&_0x9f7b0f(_0x2cddad,_0x2a3d78['writer'],(_0x545bc5,_0x2ee280,_0x68dd5d)=>_0x68dd5d['addClass'](_0x1b9298(_0x2ee280['classes']),_0x545bc5),(_0x6324f5,_0x26a1b6,_0xf067ad)=>_0xf067ad['removeClass'](_0x1b9298(_0x26a1b6['classes']),_0x6324f5));},{'priority':'highest'}),_0x6a63d3['descriptionFactory']['registerDescriptionCallback'](_0x3031b2=>{if('insertion'!=_0x3031b2['type']&&'deletion'!=_0x3031b2['type'])return;const _0x4b429d=_0x3031b2['getContainedElement']();if(null!=_0x4b429d&&_0x4b429d['is']('element','table')){if('insertion'==_0x3031b2['type']){const _0x21416c=_0x3031b2['getItems']()['filter'](_0x55cecf=>_0x55cecf['is']('$textProxy'))['map'](_0x25f242=>_0x25f242['data']);if(_0x21416c['length'])return{'type':'insertion','content':c(_0x5a2258,'*Insert:*\x20%0',c(_0x5a2258,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x21416c['join']('\x20')+'\x22'))};}if('deletion'==_0x3031b2['type']){const _0x564900=_0x3031b2['getItems']()['filter'](_0x4cbd0b=>_0x4cbd0b['is']('$textProxy'))['map'](_0x19417d=>_0x19417d['data']);if(_0x564900['length'])return{'type':'deletion','content':c(_0x5a2258,'*Remove:*\x20%0',c(_0x5a2258,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x564900['join']('\x20')+'\x22'))};}}}),_0x6a63d3['descriptionFactory']['registerDescriptionCallback'](_0x20123b=>{if('tableRow'==_0x20123b['subType']){const _0x11b8cc=_0x20123b['getItems']()['filter'](_0x9b92b2=>_0x9b92b2['is']('$textProxy'))['map'](_0x23f56c=>_0x23f56c['data']),_0x3821e7=this['_getSuggestionCoords'](_0x20123b),_0x2f5646=_0x3821e7['maxRow']-_0x3821e7['minRow']+0x1;if('insertion'==_0x20123b['type'])return _0x11b8cc['length']?{'type':'insertion','content':c(_0x5a2258,'*Insert:*\x20%0',c(_0x5a2258,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2f5646,'\x22'+_0x11b8cc['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x5a2258,'*Insert:*\x20%0',c(_0x5a2258,'ELEMENT_TABLE_ROW',_0x2f5646))};if('deletion'==_0x20123b['type'])return _0x11b8cc['length']?{'type':'deletion','content':c(_0x5a2258,'*Remove:*\x20%0',c(_0x5a2258,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2f5646,'\x22'+_0x11b8cc['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x5a2258,'*Remove:*\x20%0',c(_0x5a2258,'ELEMENT_TABLE_ROW',_0x2f5646))};}if('tableColumn'==_0x20123b['subType']){const _0x33a297=_0x20123b['getItems']()['filter'](_0x28e23d=>_0x28e23d['is']('$textProxy'))['map'](_0x34d434=>_0x34d434['data']),_0x3471ce=this['_getSuggestionCoords'](_0x20123b),_0x34f8ff=_0x3471ce['maxColumn']-_0x3471ce['minColumn']+0x1;if('insertion'==_0x20123b['type'])return _0x33a297['length']?{'type':'insertion','content':c(_0x5a2258,'*Insert:*\x20%0',c(_0x5a2258,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x34f8ff,'\x22'+_0x33a297['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x5a2258,'*Insert:*\x20%0',c(_0x5a2258,'ELEMENT_TABLE_COLUMN',_0x34f8ff))};if('deletion'==_0x20123b['type'])return _0x33a297['length']?{'type':'deletion','content':c(_0x5a2258,'*Remove:*\x20%0',c(_0x5a2258,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x34f8ff,'\x22'+_0x33a297['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x5a2258,'*Remove:*\x20%0',c(_0x5a2258,'ELEMENT_TABLE_COLUMN',_0x34f8ff))};}}),_0x6a63d3['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x502d0b),_0x6a63d3['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x502d0b),_0x6a63d3['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xbba8ba),_0x6a63d3['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xbba8ba),_0x6a63d3['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5daba6),_0x6a63d3['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5daba6),_0x6a63d3['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x42a294),_0x6a63d3['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x42a294);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5575d1=this['editor'],_0x48a111=_0x5575d1['model']['document']['selection'];return(_0x512039,_0x28f569)=>{_0x5575d1['model']['change'](_0x12b1ea=>{const {commandName:_0x144b89,commandParams:_0x35a9e2}=_0x28f569;let _0x4d969f=_0x512039[0x0]['end']['nodeBefore'];_0x35a9e2&&_0x35a9e2[0x0]&&!0x1===_0x35a9e2[0x0]['forceValue']&&(_0x4d969f=_0x512039[0x0]['start']['nodeAfter']);const _0x2407af=_0x12b1ea['createRangeIn'](_0x4d969f);if('$graveyard'==_0x2407af['root']['rootName'])return;const _0x512ae7=Array['from'](_0x48a111['getRanges']())['map'](_0x4b2d58=>_0x221782['fromRange'](_0x4b2d58));_0x12b1ea['setSelection'](_0x2407af),_0x5575d1['commands']['get'](_0x144b89)['refresh'](),_0x35a9e2['push']({'forceDefaultExecution':!0x0}),_0x5575d1['execute'](_0x144b89,..._0x35a9e2);const _0x497be7=_0x512ae7['filter'](_0xc6b79b=>'$graveyard'!=_0xc6b79b['root']['rootName']);_0x497be7['length']>0x0&&_0x12b1ea['setSelection'](_0x497be7);for(const _0x3fe3dc of _0x512ae7)_0x3fe3dc['detach']();});};}['_getCoordsForCells'](_0x4f3f44){const _0xae9f03=this['editor']['plugins']['get']('TableUtils');let _0x2362a2=Number['MAX_SAFE_INTEGER'],_0x5f4250=Number['MIN_SAFE_INTEGER'],_0x5760e9=Number['MAX_SAFE_INTEGER'],_0x1d222f=Number['MIN_SAFE_INTEGER'];for(const _0x56a780 of _0x4f3f44){if('$graveyard'==_0x56a780['root']['rootName'])continue;const {row:_0x5beeb4,column:_0xefef11}=_0xae9f03['getCellLocation'](_0x56a780),_0x3b2601=_0x56a780['hasAttribute']('rowspan')?_0x56a780['getAttribute']('rowspan')-0x1:0x0,_0x200b8a=_0x56a780['hasAttribute']('colspan')?_0x56a780['getAttribute']('colspan')-0x1:0x0;_0x2362a2=_0x5beeb4<_0x2362a2?_0x5beeb4:_0x2362a2,_0x5f4250=_0x5beeb4+_0x3b2601>_0x5f4250?_0x5beeb4+_0x3b2601:_0x5f4250,_0x5760e9=_0xefef11<_0x5760e9?_0xefef11:_0x5760e9,_0x1d222f=_0xefef11+_0x200b8a>_0x1d222f?_0xefef11+_0x200b8a:_0x1d222f;}return{'minRow':_0x2362a2,'maxRow':_0x5f4250,'minColumn':_0x5760e9,'maxColumn':_0x1d222f};}['_setupColumnsRowsFixing'](){const _0x3a65dd=this['editor'],_0x55deb8=_0x3a65dd['plugins']['get']('TrackChangesEditing'),_0x4bd1f7=_0x3a65dd['plugins']['get']('TableUtils');_0x3a65dd['model']['document']['on']('change:data',()=>{const _0x3f7381=Array['from'](_0x3a65dd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3f11a4,data:_0x37c482}of _0x3f7381){const {group:_0x19784d,id:_0x28652f,subType:_0x5f30a1}=_0x55deb8['_splitMarkerName'](_0x3f11a4);if('suggestion'!=_0x19784d)continue;if(null!=_0x37c482['oldRange'])continue;const _0x8ae8bf=_0x55deb8['getSuggestion'](_0x28652f);this['_tablePostFixingSubtypes']['includes'](_0x5f30a1)&&this['_tableSuggestions']['add'](_0x8ae8bf);}},{'priority':'low'});const _0x6ceaf4=(_0x2844f0,_0x1553e7)=>{let _0x5aa379=!0x1;const _0x1bcb3d=_0x1553e7['createRangeOn'](_0x2844f0),_0xa2970d=_0x2844f0['findAncestor']('table'),_0x4127fa=_0x4bd1f7['getCellLocation'](_0x2844f0);for(const _0x188a8c of this['_tableSuggestions']){const _0x29876b=_0x188a8c['subType'],_0x397037=_0x29876b['startsWith']('tablePaste'),_0x39f134=_0x29876b['substr'](_0x397037?0xa:0x5),_0x14db0a=_0x39f134['toLowerCase'](),_0x326f13=_0x14db0a['substr'](0x0,0x3)+'span',_0x51e2f7='min'+_0x39f134,_0x169267='max'+_0x39f134;if(!_0x188a8c['isInContent'])continue;if(_0xa2970d!=_0x188a8c['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x188a8c['isIntersectingWithRange'](_0x1bcb3d))continue;const _0x76708=_0x2844f0['hasAttribute'](_0x326f13)?_0x2844f0['getAttribute'](_0x326f13)-0x1:0x0,_0xbbd232=this['_getSuggestionCoords'](_0x188a8c),_0x2a9ca7=_0xbbd232[_0x51e2f7],_0x45e74b=_0xbbd232[_0x169267];_0x2a9ca7<=_0x4127fa[_0x14db0a]&&_0x4127fa[_0x14db0a]+_0x76708<=_0x45e74b&&(_0x188a8c['addRange'](_0x1bcb3d),_0x5aa379=!0x0);}return _0x5aa379;};_0x3a65dd['model']['document']['registerPostFixer'](_0x5829a4=>{let _0x10348a=!0x1;for(const _0x3ca4c5 of _0x3a65dd['model']['document']['differ']['getChanges']())if('insert'==_0x3ca4c5['type']){if('tableRow'==_0x3ca4c5['name']){for(const _0x1365a7 of _0x3ca4c5['position']['nodeAfter']['getChildren']())_0x10348a=_0x10348a||_0x6ceaf4(_0x1365a7,_0x5829a4);}else'tableCell'==_0x3ca4c5['name']&&(_0x10348a=_0x10348a||_0x6ceaf4(_0x3ca4c5['position']['nodeAfter'],_0x5829a4));}return _0x10348a;});}['_getSuggestionCoords'](_0x16fdc3){return this['_getCoordsForCells'](_0x16fdc3['getRanges']()['map'](_0x26619a=>_0x26619a['start']['nodeAfter']));}}function Ne(_0x2f9704){return Array['from'](new Set(_0x2f9704)['values']());}class Nt extends _0x51b88f{static get['requires'](){return[Ct];}['afterInit'](){const _0x2eed0c=this['editor'],_0x4c2827=_0x2eed0c['model']['document']['selection'],_0x9f681c=_0x2eed0c['locale'];if(!_0x2eed0c['plugins']['has']('TableEditing'))return;const _0x563887=_0x2eed0c['plugins']['get']('TrackChangesEditing'),_0x47c8a7=_0x2eed0c['plugins']['get']('TableUtils'),_0x2d47d2=_0x2eed0c['plugins']['get'](Ct);_0x2d47d2['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x563887['enableCommand']('mergeTableCells',()=>{const _0x501b49=_0x47c8a7['getSelectionAffectedTableCells'](_0x2eed0c['model']['document']['selection']);_0x2eed0c['model']['change'](()=>{_0x563887['markMultiRangeBlockFormat'](_0x501b49,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2eed0c['commands']['get']('mergeTableCells')['on']('execute',(_0x36ef93,_0x2ed7a9)=>{_0x2eed0c['commands']['get']('trackChanges')['value']&&(_0x2ed7a9['length']>0x0&&_0x2ed7a9[_0x2ed7a9['length']-0x1]&&_0x2ed7a9[_0x2ed7a9['length']-0x1]['forceDefaultExecution']||_0x563887['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x36ef93['stop']());},{'priority':'highest'});for(const _0x52040b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x16ccd5=_0x2eed0c['commands']['get'](_0x52040b);_0x563887['enableCommand'](_0x52040b,()=>{const _0x30cca0=_0x2eed0c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4ead18=>_0x4ead18['is']('element','tableCell')),_0x46b632=_0x16ccd5['value'];_0x2eed0c['model']['change'](()=>{_0x563887['markMultiRangeBlockFormat']([_0x30cca0,_0x46b632],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x589740 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1452a7=_0x2eed0c['commands']['get'](_0x589740);_0x563887['enableCommand'](_0x589740,()=>{const _0x3369a9=_0x47c8a7['getSelectionAffectedTableCells'](_0x2eed0c['model']['document']['selection'])[0x0],_0x5b070d=_0x3369a9['findAncestor']('table'),{column:_0xa43659,row:_0x48b2e6}=_0x47c8a7['getCellLocation'](_0x3369a9);let _0x4fd56a=[];if('horizontally'==_0x1452a7['direction']){const _0x12eddf=_0x47c8a7['createTableWalker'](_0x5b070d,{'startRow':_0x48b2e6,'endRow':_0x48b2e6,'includeAllSlots':!0x0});_0x4fd56a=Array['from'](_0x12eddf)['map'](_0xdc15eb=>_0xdc15eb['cell']);}else{const _0x97f48f=_0x47c8a7['createTableWalker'](_0x5b070d,{'column':_0xa43659,'includeAllSlots':!0x0});_0x4fd56a=Array['from'](_0x97f48f)['map'](_0x37cc9f=>_0x37cc9f['cell']);}_0x2eed0c['model']['change'](_0x189877=>{_0x563887['markBlockFormat'](_0x189877['createRangeOn'](_0x3369a9),{'commandName':_0x589740,'commandParams':[]},_0x4fd56a,_0x589740);});});}_0x563887['descriptionFactory']['registerDescriptionCallback'](_0x1f1a5c=>{if('formatBlock'!=_0x1f1a5c['type']&&'formatInline'!=_0x1f1a5c['type'])return;const {data:_0x6d4932}=_0x1f1a5c;return _0x6d4932&&'mergeTableCells'==_0x6d4932['commandName']?{'type':'format','content':c(_0x9f681c,'*Merge\x20cells*')}:void 0x0;}),_0x563887['descriptionFactory']['registerDescriptionCallback'](_0x1e42da=>{if('formatBlock'!=_0x1e42da['type']&&'formatInline'!=_0x1e42da['type'])return;const {data:_0x5499b6}=_0x1e42da;return _0x5499b6?'splitTableCellVertically'==_0x5499b6['commandName']?{'type':'format','content':c(_0x9f681c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5499b6['commandName']?{'type':'format','content':c(_0x9f681c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x23b50d=_0x2d47d2['_acceptFormatSuggestionCallbackFactory']();for(const _0x36235 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x563887['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x36235,'accept',_0x23b50d);for(const _0x111a87 of['splitTableCellVertically','splitTableCellHorizontally'])_0x563887['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x111a87,'accept',_0x23b50d);_0x563887['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1cad5c=>{_0x2eed0c['model']['change'](_0x4a03a8=>{const _0xe2e2a9=Array['from'](_0x4c2827['getRanges']())['map'](_0x31ba5a=>_0x221782['fromRange'](_0x31ba5a));_0x4a03a8['setSelection'](_0x1cad5c),_0x2eed0c['commands']['get']('mergeTableCells')['refresh'](),_0x2eed0c['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3810f1=_0xe2e2a9['filter'](_0x514450=>'$graveyard'!=_0x514450['root']['rootName']);_0x3810f1['length']>0x0&&_0x4a03a8['setSelection'](_0x3810f1);for(const _0x334823 of _0xe2e2a9)_0x334823['detach']();});});for(const _0x374ab5 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xc6ddf4=_0x2eed0c['commands']['get'](_0x374ab5);_0xc6ddf4['on']('set:isEnabled',(_0x52dbbb,_0x1dc4e8,_0x2eb13f)=>{if(_0x2eb13f){const _0x50124a=_0x2eed0c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x212f37=>_0x212f37['is']('element','tableCell'));this['_areMergableCells'](_0xc6ddf4['value'],_0x50124a)||(_0x52dbbb['return']=!0x1,_0x52dbbb['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x50b899=this['editor']['commands']['get']('mergeTableCells'),_0x799edd=this['editor']['plugins']['get']('TableUtils');if(!_0x50b899['isEnabled'])return!0x1;const _0x549a08=_0x799edd['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1a3860 of _0x549a08)for(const _0x43959f of _0x549a08)if(_0x1a3860!=_0x43959f&&!this['_areMergableCells'](_0x1a3860,_0x43959f))return!0x1;return!0x0;}['_areMergableCells'](_0x4eeb05,_0x84a21e){const _0x478db6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d9d94=this['editor']['model']['createRangeOn'](_0x4eeb05),_0x3bb81e=this['editor']['model']['createRangeOn'](_0x84a21e),_0x19e1f6=new Set(),_0x3536ef=new Set();for(const _0x1fa5ad of _0x478db6['getSuggestions']())if(('insertion'==_0x1fa5ad['type']||'deletion'==_0x1fa5ad['type']||'mergeTableCells'==_0x1fa5ad['subType'])&&_0x1fa5ad['isInContent']){for(const _0x4d8901 of _0x1fa5ad['getRanges']())_0x4d8901['containsRange'](_0x2d9d94,!0x0)&&_0x19e1f6['add'](_0x1fa5ad['type']+':'+_0x1fa5ad['author']['id']),_0x4d8901['containsRange'](_0x3bb81e,!0x0)&&_0x3536ef['add'](_0x1fa5ad['type']+':'+_0x1fa5ad['author']['id']);}if(_0x19e1f6['size']!=_0x3536ef['size'])return!0x1;for(const _0x18c565 of _0x19e1f6)if(!_0x3536ef['has'](_0x18c565))return!0x1;return!0x0;}}class Dt extends _0x51b88f{static get['requires'](){return[Ct];}['afterInit'](){const _0x3fdd3d=this['editor'];if(!_0x3fdd3d['plugins']['has']('TableEditing'))return;const _0x3d2e00=_0x3fdd3d['locale'],_0x2c5103=_0x3fdd3d['plugins']['get']('TrackChangesEditing');_0x2c5103['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2c5103['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2c5103['registerBlockAttribute']('headingRows'),_0x2c5103['registerBlockAttribute']('headingColumns'),_0x2c5103['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x3d2e00,'FORMAT_HEADER_ROW')),_0x2c5103['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x3d2e00,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x30f763=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa87422=this['editor']['plugins']['get']('TableUtils'),_0xab4724=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x5aa8d5({showActiveMarker:_0x3baf9e=!0x0,setDataAttribute:_0x535078=!0x0}={}){return(_0x5f5e78,_0x486409,_0x5cc449)=>{const {type:_0xac0e72,id:_0x713683}=_0x30f763['_splitMarkerName'](_0x486409['markerName']),_0x2ba361=_0x30f763['getSuggestion'](_0x713683),_0x36094e=_0x2ba361['data'];if('formatBlock'!=_0x2ba361['type']||!_0x36094e||'setTableColumnHeader'!=_0x36094e['commandName'])return;if(_0x486409['item'])return void _0x5f5e78['stop']();if(!_0x5cc449['consumable']['consume'](_0x486409['markerRange'],_0x5f5e78['name']))return;const _0x5b54e3=_0x486409['markerRange']['start']['nodeAfter'],_0x525f7e=_0x486409['markerRange']['end']['nodeBefore'],_0x69ff29=_0x5b54e3['parent']['parent'],{column:_0x5737df}=_0xa87422['getCellLocation'](_0x5b54e3),{column:_0x1cea0b}=_0xa87422['getCellLocation'](_0x525f7e);for(let _0x3fb351=_0x5737df;_0x3fb351<=_0x1cea0b;_0x3fb351++){const _0xf29acd=_0xa87422['createTableWalker'](_0x69ff29,{'column':_0x3fb351,'includeAllSlots':!0x1});for(const _0x12ea18 of _0xf29acd){const _0x1474f2=_0x12ea18['cell'],_0x1c9a63=_0x5cc449['mapper']['toViewElement'](_0x1474f2);_0x5cc449['writer']['addClass']('ck-suggestion-marker-'+_0xac0e72,_0x1c9a63),_0x535078&&_0x5cc449['writer']['setAttribute']('data-suggestion',_0x713683,_0x1c9a63),_0x5cc449['mapper']['bindElementToMarker'](_0x1c9a63,_0x486409['markerName']),_0x3baf9e&&(_0x30f763['activeMarkers']['includes'](_0x486409['markerName'])?_0x5cc449['writer']['addClass']('ck-suggestion-marker--active',_0x1c9a63):_0x5cc449['writer']['removeClass']('ck-suggestion-marker--active',_0x1c9a63));}}};}_0x30f763['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xab4724),_0x30f763['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xab4724),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5aa8d5(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x215d1a,_0x32a4b1,_0x56eff4)=>{_0x56eff4['options']['showSuggestionHighlights']&&_0x5aa8d5({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x215d1a,_0x32a4b1,_0x56eff4);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1c609a,_0xd5ccab,_0x280b68)=>{const {type:_0x114c8a,id:_0x20890c}=_0x30f763['_splitMarkerName'](_0xd5ccab['markerName']),_0x57ff55=_0x30f763['getSuggestion'](_0x20890c),_0x4e30e4=_0x57ff55['data'];if('formatBlock'!=_0x57ff55['type']||!_0x4e30e4||'setTableColumnHeader'!=_0x4e30e4['commandName'])return;const _0x1b89e4=_0x280b68['mapper']['markerNameToElements'](_0xd5ccab['markerName']);if(_0x1b89e4){for(const _0x2e30c0 of _0x1b89e4)_0x280b68['writer']['removeClass']('ck-suggestion-marker-'+_0x114c8a,_0x2e30c0),_0x280b68['writer']['removeClass']('ck-suggestion-marker--active',_0x2e30c0),_0x280b68['writer']['removeAttribute']('data-suggestion',_0x2e30c0),_0x280b68['mapper']['unbindElementFromMarkerName'](_0x2e30c0,_0xd5ccab['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a2526=this['editor'],_0x5403de=_0x3a2526['locale'];function _0x30c0d3(_0x4386d7){return{'type':'format','content':c(_0x5403de,'*Format:*\x20%0',_0x4386d7)};}_0x3a2526['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a8f83=>{if('formatBlock'!=_0x4a8f83['type'])return;const {data:_0x25b252}=_0x4a8f83;if(_0x25b252){if('setTableRowHeader'==_0x25b252['commandName']){const _0x35282f=_0x25b252['commandParams'][0x0]['forceValue'];return _0x30c0d3(c(_0x5403de,_0x35282f?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x25b252['commandName']){const _0x3dcbde=_0x25b252['commandParams'][0x0]['forceValue'];return _0x30c0d3(c(_0x5403de,_0x3dcbde?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x51b88f{['afterInit'](){const _0x1aca76=this['editor'],_0x47ab9e=_0x1aca76['locale'],_0x29e408=_0x1aca76['plugins']['get']('TrackChangesEditing');function _0x5168ed(_0x1f2272){return{'type':'format','content':''+c(_0x47ab9e,'*Set\x20table\x20type:*\x20%0',_0x1f2272)};}_0x1aca76['plugins']['has']('TableLayout')&&(_0x29e408['enableCommand']('insertTableLayout'),_0x29e408['enableDefaultAttributesIntegration']('tableType'),_0x29e408['registerBlockAttribute']('tableType'),_0x29e408['descriptionFactory']['registerElementLabel'](_0x3faa02=>_0x3faa02['is']('element','table')&&'layout'===_0x3faa02['getAttribute']('tableType'),_0x287c47=>c(_0x47ab9e,'ELEMENT_LAYOUT_TABLE',_0x287c47)),_0x29e408['descriptionFactory']['registerDescriptionCallback'](_0x3eee07=>{const {data:_0x4ab979}=_0x3eee07;if(_0x4ab979&&'tableType'==_0x4ab979['key'])switch(_0x4ab979['newValue']){case'layout':return _0x5168ed(c(_0x47ab9e,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x5168ed(c(_0x47ab9e,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=Object['fromEntries'](xe['map'](_0x3fcdf5=>[_0x3fcdf5,null]));class $t extends _0x51b88f{static get['requires'](){return[Ct];}['afterInit'](){const _0x32cbe9=this['editor'];if(!_0x32cbe9['plugins']['has']('TableClipboard'))return;const _0x5db788=_0x32cbe9['plugins']['get']('TrackChangesEditing'),_0x375f8b=_0x32cbe9['plugins']['get']('TableUtils'),_0x1ea0f9=_0x32cbe9['plugins']['get'](Ct),_0x80a447=_0x32cbe9['plugins']['get']('TableClipboard'),_0x45686e=_0x32cbe9['plugins']['get']('TableSelection'),_0x4c735d=_0x32cbe9['plugins']['get'](_0x55982e);_0x1ea0f9['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x32cbe9['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x32cbe9['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5068f3=null,_0x4983d8=!0x1;_0x4c735d['on']('contentInsertion',(_0x23b421,_0x1d9017)=>{_0x4983d8='paste'===_0x1d9017['method'];}),_0x32cbe9['model']['on']('insertContent',(_0x67af71,_0x5406e3)=>{if(!_0x4983d8&&null===_0x45686e['getSelectedTableCells']())return;const [_0x5b4e45,_0xa02488]=_0x5406e3,_0x10e736=_0x5406e3[_0x5406e3['length']-0x1];_0x10e736&&_0x10e736['forceDefaultExecution']||_0x5db788['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x351b25,_0x1aeaee,_0x168a63,_0x5b1301,_0x12ddb8){if(_0x1aeaee&&!_0x1aeaee['is']('documentSelection'))return!0x1;const _0x294d5e=_0x12ddb8['getTableIfOnlyTableInContent'](_0x351b25,_0x168a63);if(!_0x294d5e||!De(_0x294d5e,void 0x0,_0x5b1301))return!0x1;const _0x1859af=_0x5b1301['getSelectionAffectedTableCells'](_0x168a63['document']['selection']);if(!_0x1859af['length'])return!0x1;const _0x15d1a4=_0x1859af[0x0]['findAncestor']('table'),_0x4fdeeb=_0x5b1301['getRowIndexes'](_0x1859af),_0x262585=_0x5b1301['getColumnIndexes'](_0x1859af),_0x1ce343={'startRow':_0x4fdeeb['first'],'endRow':_0x4fdeeb['last'],'startColumn':_0x262585['first'],'endColumn':_0x262585['last']};return 0x1==_0x1859af['length']&&(_0x1ce343['endRow']+=_0x5b1301['getRows'](_0x294d5e)-0x1,_0x1ce343['endColumn']+=_0x5b1301['getColumns'](_0x294d5e)-0x1),De(_0x15d1a4,_0x1ce343,_0x5b1301);}(_0x5b4e45,_0xa02488,_0x32cbe9['model'],_0x375f8b,_0x80a447)&&(_0x67af71['stop'](),_0x5068f3={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x32cbe9['model']['change'](()=>{_0x32cbe9['model']['insertContent'](_0x5406e3[0x0],_0x5406e3[0x1],_0x5406e3[0x2],{'forceDefaultExecution':!0x0});const _0x43b48b=_0x35f42a(),{rowInsertionRanges:_0xb34763,columnInsertionRanges:_0x121209,insertionRanges:_0xa0cbd3,deletionRanges:_0x3a4833,cells:_0x524d1f}=_0x5068f3;_0xb34763['length']&&_0x5db788['markMultiRangeInsertion'](_0xb34763,'tablePasteRow',{'tablePasteChainId':_0x43b48b}),_0x121209['length']&&_0x5db788['markMultiRangeInsertion'](_0x121209,'tablePasteColumn',{'tablePasteChainId':_0x43b48b}),_0xa0cbd3['length']&&(_0x5db788['markMultiRangeInsertion'](_0xa0cbd3,'tablePaste',{'tablePasteChainId':_0x43b48b,'skipNestingCheck':!0x0}),_0xa0cbd3['forEach'](_0x3ed99a=>_0x3ed99a['detach']?.())),_0x3a4833['length']&&(_0x5db788['markMultiRangeDeletion'](_0x3a4833,'tablePaste',{'tablePasteChainId':_0x43b48b,'skipNestingCheck':!0x0}),_0x3a4833['forEach'](_0x2e7369=>_0x2e7369['detach']?.()));const _0x434278=_0x5db788['markMultiRangeBlockFormat'](_0x524d1f['map'](({element:_0x70dc99})=>_0x70dc99),{'formatGroupId':_0x35f42a()},[],'tablePasteCell',{'tablePasteChainId':_0x43b48b});if(_0x434278){const _0x523c32=_0x434278['getMarkers'](),_0x2d1f31=[];for(const {element:_0xa6ebc,attributes:_0xa5b626}of _0x524d1f){if(!_0xa5b626)continue;const _0x3e9c61=_0x32cbe9['model']['createRangeOn'](_0xa6ebc),_0x2b1c78=_0x523c32['find'](_0x1f2b57=>_0x1f2b57['getRange']()['isEqual'](_0x3e9c61));_0x2b1c78&&_0x2d1f31['push']([_0x2b1c78['name'],_0xa5b626]);}_0x2d1f31['length']&&_0x434278['setAttribute']('markerAttributes',Object['fromEntries'](_0x2d1f31));}_0x5068f3=null;}));},{'priority':_0x46c4ae['high']+0xa}),_0x4c735d['on']('contentInsertion',()=>{_0x4983d8=!0x1;},{'priority':'lowest'}),_0x32cbe9['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2238f4,_0xf56ca5)=>{const [_0xfb4511,_0x3fcf3c,,_0x8b6fcc]=_0xf56ca5;if(!_0x5068f3)return;_0x2238f4['stop']();const _0x341c77=_0xfb4511['cell'],_0x37b142=_0x3fcf3c,_0x905aca=Ue(_0x341c77),_0x23c9ac=Ue(_0x37b142);_0x2238f4['return']=_0x341c77;let _0x18cf2a=null,_0x11e499=null;if(_0x23c9ac||_0x905aca){if(_0x905aca&&!_0x23c9ac){_0x8b6fcc['remove'](_0x341c77['getChild'](0x0));for(const _0x569f78 of Array['from'](_0x37b142['getChildren']()))_0x8b6fcc['insert'](_0x569f78,_0x341c77,'end');const _0x24f852=_0x5068f3['rowInsertionIndexes']['includes'](_0xfb4511['row']),_0x12c2b9=_0x5068f3['columnInsertionIndexes']['includes'](_0xfb4511['column']);_0x24f852||_0x12c2b9||(_0x18cf2a=_0x221782['fromRange'](_0x8b6fcc['createRangeIn'](_0x341c77)));}else _0x23c9ac&&!_0x905aca&&(_0x11e499=_0x8b6fcc['createRangeIn'](_0x341c77));}else{const _0x555406=_0x8b6fcc['createElement']('tableCellSuggestion'),_0xe5b6e1=_0x8b6fcc['createElement']('tableCellSuggestion');_0x8b6fcc['wrap'](_0x8b6fcc['createRangeIn'](_0x341c77),_0xe5b6e1),_0x8b6fcc['insert'](_0x555406,_0x341c77,0x0);for(const _0x555795 of Array['from'](_0x37b142['getChildren']()))_0x8b6fcc['insert'](_0x555795,_0x555406,'end');_0x18cf2a=_0x221782['fromRange'](_0x8b6fcc['createRangeOn'](_0x555406)),_0x11e499=_0x221782['fromRange'](_0x8b6fcc['createRangeOn'](_0xe5b6e1));}const _0x4e4047=Array['from'](_0x37b142['getAttributes']())['filter'](([_0x13bff3])=>xe['includes'](_0x13bff3));_0x5068f3['cells']['push']({'element':_0x341c77,'attributes':_0x4e4047['length']?Object['fromEntries'](_0x4e4047):null}),_0x18cf2a&&_0x5068f3['insertionRanges']['push'](_0x18cf2a),_0x11e499&&_0x5068f3['deletionRanges']['push'](_0x11e499);},{'priority':'high'}),_0x375f8b['on']('insertColumns',(_0x326ff0,_0x5076f3)=>{const [_0x5c5404,_0x39894a={}]=_0x5076f3;if(!_0x5068f3)return;const _0x101a14=_0x39894a['at']||0x0,_0x580c19=_0x39894a['columns']||0x1;_0x5068f3['columnInsertionIndexes']=new Array(_0x580c19)['fill'](_0x101a14)['map']((_0x4f28f7,_0x103649)=>_0x4f28f7+_0x103649);for(const {cell:_0x16293d}of _0x375f8b['createTableWalker'](_0x5c5404,{'startColumn':_0x101a14,'endColumn':_0x101a14+_0x580c19-0x1}))_0x5068f3['columnInsertionRanges']['push'](_0x32cbe9['model']['createRangeOn'](_0x16293d));},{'priority':'low'}),_0x375f8b['on']('insertRows',(_0x80a300,_0x3d3094)=>{const [_0x1bfd1b,_0x8a41f3={}]=_0x3d3094;if(!_0x5068f3)return;const _0x38fc8d=_0x8a41f3['at']||0x0,_0x15d731=_0x8a41f3['rows']||0x1;_0x5068f3['rowInsertionIndexes']=new Array(_0x15d731)['fill'](_0x38fc8d)['map']((_0x208df9,_0x27a6db)=>_0x208df9+_0x27a6db);for(const {cell:_0x47ccca}of _0x375f8b['createTableWalker'](_0x1bfd1b,{'startRow':_0x38fc8d,'endRow':_0x38fc8d+_0x15d731-0x1}))_0x5068f3['rowInsertionRanges']['push'](_0x32cbe9['model']['createRangeOn'](_0x47ccca));},{'priority':'low'}),_0x5db788['descriptionFactory']['registerDescriptionCallback'](_0x293442=>{if(_0x293442['subType']&&_0x293442['subType']['startsWith']('tablePaste'))return _0x293442['previous']?{}:{'type':'insertion','content':c(_0x32cbe9['locale'],'*Replace\x20table\x20cells*')};});const _0x477009=()=>!0x1;for(const _0x57bbff of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5db788['_suggestionFactory']['registerCustomCallback']('insertion',_0x57bbff,'join',_0x477009),_0x5db788['_suggestionFactory']['registerCustomCallback']('deletion',_0x57bbff,'join',_0x477009),_0x5db788['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x57bbff,'join',_0x477009);_0x5db788['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x477009),_0x5db788['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x11ba17,_0x27470b,_0x4e44c4)=>{const _0x5691f5=_0x11ba17['map'](_0x151e8f=>_0x151e8f['getContainedElement']())['filter'](_0x32a455=>_0x32a455),_0x47b7d1=new Map(_0x5691f5['map'](_0x22c393=>[_0x22c393,null]));if(_0x5068f3){for(const {element:_0x2db722,attributes:_0x3ba263}of _0x5068f3['cells'])_0x3ba263&&_0x47b7d1['set'](_0x2db722,_0x3ba263);}else{if(_0x4e44c4&&_0x4e44c4['markerAttributes'])for(const [_0x12189a,_0x36a70b]of Object['entries'](_0x4e44c4['markerAttributes'])){const _0x976394=_0x32cbe9['model']['markers']['get'](_0x12189a),_0x3c3021=_0x976394?_0x976394['getRange']()['getContainedElement']():null;_0x3c3021&&_0x47b7d1['set'](_0x3c3021,_0x36a70b);}}_0x32cbe9['model']['change'](_0xe213c=>{for(const [_0xf0c631,_0x5aed89]of _0x47b7d1)_0xe213c['setAttributes']({...Oe,..._0x5aed89},_0xf0c631);});});const _0x1357ee=(_0x4e29f9,_0x307ce5)=>{_0x5db788['_suggestionFactory']['registerCustomCallback'](_0x4e29f9,'tablePaste',_0x307ce5,(_0x542d06,_0x3a094c,_0x492899)=>{_0x32cbe9['model']['change'](_0x2723cd=>{const _0x4f31d1=[];for(const _0x15c1b1 of _0x542d06){const _0x3f985b=_0x15c1b1['start']['nodeAfter'];_0x3f985b['is']('element','tableCellSuggestion')&&_0x4f31d1['push'](_0x3f985b);}_0x5db788['_suggestionFactory']['getSuggestionCallback'](_0x4e29f9,null,_0x307ce5)(_0x542d06,_0x3a094c,_0x492899);for(const _0x3b8b57 of _0x4f31d1)'$graveyard'!=_0x3b8b57['root']['rootName']&&_0x2723cd['unwrap'](_0x3b8b57);});});};_0x1357ee('insertion','accept'),_0x1357ee('insertion','discard'),_0x1357ee('deletion','accept'),_0x1357ee('deletion','discard'),_0x5db788['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1538cf=>{const _0x12cae5=_0x1538cf['map'](_0x2fb144=>_0x2fb144['getContainedElement']()),_0x2ef39c=_0x12cae5[0x0]['findAncestor']('table'),{minRow:_0x103ae9,maxRow:_0x3abacd}=_0x1ea0f9['_getCoordsForCells'](_0x12cae5);_0x375f8b['removeRows'](_0x2ef39c,{'at':_0x103ae9,'rows':_0x3abacd-_0x103ae9+0x1});}),_0x5db788['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x22f244=>{const _0x16a99f=_0x22f244['map'](_0x5931fe=>_0x5931fe['getContainedElement']()),_0xd8fab3=_0x16a99f[0x0]['findAncestor']('table'),{minColumn:_0x721f61,maxColumn:_0x4d85ad}=_0x1ea0f9['_getCoordsForCells'](_0x16a99f);_0x375f8b['removeColumns'](_0xd8fab3,{'at':_0x721f61,'columns':_0x4d85ad-_0x721f61+0x1});});const _0x1c67ef=(_0x5ba7bd,_0x273ab2)=>{if(!_0x273ab2['subType']||!_0x273ab2['subType']['startsWith']('tablePaste'))return;const _0x1ba3f1=_0x273ab2['attributes']['tablePasteChainId'],_0x1270b0=_0x5db788['getSuggestions']()['filter'](_0x87b518=>_0x87b518['isInContent']&&_0x87b518['attributes']&&_0x87b518['attributes']['tablePasteChainId']==_0x1ba3f1);_0x1270b0['length']&&_0x273ab2['getAllAdjacentSuggestions']()['length']!=_0x1270b0['length']&&_0x1270b0['reduce']((_0xcd20f5,_0x1970fe)=>(_0xcd20f5['next']=_0x1970fe,_0x1970fe['previous']=_0xcd20f5,_0x1970fe));};function _0x334183(_0x4e773e,_0x57f7d9=!0x0){const {id:_0x525bc5,authorId:_0x84adc8}=_0x5db788['_splitMarkerName'](_0x4e773e['markerName']),_0x286ad3=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xd82b51=_0x5db788['activeMarkers']['includes'](_0x4e773e['markerName']);return _0xd82b51&&_0x286ad3['push']('ck-suggestion-marker--active'),{'classes':_0x286ad3,'attributes':{'data-suggestion':_0x525bc5,'data-author-id':_0x84adc8},'priority':_0xd82b51&&_0x57f7d9?0xbc2:0xbb8};}_0x5db788['on']('suggestionLoaded',_0x1c67ef,{'priority':'high'}),_0x5db788['on']('suggestionUnloaded',_0x1c67ef,{'priority':'high'}),_0x32cbe9['model']['document']['registerPostFixer'](()=>{let _0xaa36ff=!0x1;const _0x55e8e3=Array['from'](_0x32cbe9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x7761d1,data:_0x4f13fe}of _0x55e8e3){const {group:_0x4a08bc,type:_0x95bbaf,id:_0x5a54f4}=_0x5db788['_splitMarkerName'](_0x7761d1);if('suggestion'!=_0x4a08bc||'deletion'!=_0x95bbaf||_0x4f13fe['oldRange'])continue;if(!_0x5db788['hasSuggestion'](_0x5a54f4))continue;const _0x1e92b1=_0x5db788['getSuggestion'](_0x5a54f4)['getRanges'](),_0x1a7b1e=_0x32cbe9['plugins']['get']('Users')['me'];for(const _0xce9518 of _0x5db788['getSuggestions']()){if(!_0xce9518['isInContent']||_0xce9518['author']!=_0x1a7b1e)continue;if('formatBlock'!=_0xce9518['type']||'tablePasteCell'!=_0xce9518['subType'])continue;if(_0xce9518['getRanges']()['every'](_0x5649e6=>_0x1e92b1['some'](_0x1b36cc=>_0x1b36cc['containsRange'](_0x5649e6,!0x0)))){for(const _0x3a1593 of _0xce9518['getAllAdjacentSuggestions']())_0x3a1593['isInContent']&&(_0x3a1593['discard'](),_0xaa36ff=!0x0);}}}return _0xaa36ff;}),_0x32cbe9['model']['document']['registerPostFixer'](_0x2d204b=>{const _0x1a0c09=_0x32cbe9['commands']['get']('redo');if(!_0x1a0c09||!_0x1a0c09['_createdBatches']['has'](_0x2d204b['batch']))return!0x1;let _0x440d6a=!0x1;const _0x1d58ad=_0x32cbe9['plugins']['get']('Users')['me'],_0x366ff3=_0x32cbe9['model']['document']['differ']['getChanges'](),_0x21f4d5=Array['from'](_0x32cbe9['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4730a2,data:_0x5b6e23})=>{const {group:_0xc48a97,subType:_0x1239ef,authorId:_0x2b1abc}=_0x5db788['_splitMarkerName'](_0x4730a2);return'suggestion'==_0xc48a97&&'tablePaste'==_0x1239ef&&_0x2b1abc==_0x1d58ad['id']&&!_0x5b6e23['oldRange'];});for(const _0x8a56ff of _0x366ff3){if('insert'!=_0x8a56ff['type']||'tableCellSuggestion'!=_0x8a56ff['name']||0x1!=_0x8a56ff['length'])continue;const _0x19af88=_0x2d204b['createRange'](_0x8a56ff['position'],_0x8a56ff['position']['getShiftedBy'](0x1));if(!_0x21f4d5['find'](({data:_0x239a12})=>_0x239a12['newRange']['isEqual'](_0x19af88))){for(const {name:_0x4c5254,data:_0x45b777}of _0x21f4d5)if(_0x19af88['containsRange'](_0x45b777['newRange'])){_0x2d204b['updateMarker'](_0x4c5254,{'range':_0x19af88}),_0x440d6a=!0x0;break;}}}return _0x440d6a;}),_0x32cbe9['model']['document']['registerPostFixer'](_0x1eae7a=>{let _0x2f0126=!0x1;const _0xb339a2=_0x32cbe9['plugins']['get']('Users')['me'],_0x13cbae=_0x5db788['getSuggestions']()['filter'](_0x3a8eed=>_0x3a8eed['isInContent']&&_0x3a8eed['author']==_0xb339a2),_0x4f157c=new Set(),_0x174220=new Set();for(const _0x232a85 of _0x13cbae)if('tablePaste'==_0x232a85['subType'])for(const _0x210e0f of _0x232a85['getMarkers']()){const _0x1a6b3e=_0x210e0f['getRange']()['getContainedElement']();if(_0x1a6b3e){if(_0x1a6b3e['is']('element','tableCellSuggestion')&&Ue(_0x1a6b3e)){_0x232a85['removeMarker'](_0x210e0f['name']),_0x4f157c['add'](_0x1a6b3e),_0x2f0126=!0x0;const _0x2abef5=_0x1a6b3e['nextSibling'],_0x3f1656=_0x1a6b3e['previousSibling'],_0x500dfc=_0x2abef5&&_0x2abef5['is']('element','tableCellSuggestion'),_0x4bfb90=_0x3f1656&&_0x3f1656['is']('element','tableCellSuggestion');_0x500dfc&&!_0x4f157c['has'](_0x2abef5)&&_0x174220['add'](_0x2abef5),_0x4bfb90&&!_0x4f157c['has'](_0x3f1656)&&_0x174220['add'](_0x3f1656);}else _0x1a6b3e['is']('element','paragraph')&&_0x1a6b3e['isEmpty']&&(_0x232a85['removeMarker'](_0x210e0f['name']),_0x2f0126=!0x0);}}else{if('tablePasteCell'==_0x232a85['subType']){if(!_0x232a85['attributes']||!_0x232a85['attributes']['tablePasteChainId'])continue;const _0x1a96bf=_0x232a85['attributes']['markerAttributes'];if(_0x1a96bf&&Object['keys'](_0x1a96bf)['length'])continue;const _0x4f9fd2=_0x232a85['attributes']['tablePasteChainId'];let _0x10abf9=!0x0,_0x24f349=!0x0;for(const _0x54ee77 of _0x13cbae)if(_0x54ee77['subType']&&_0x54ee77['subType']['startsWith']('tablePaste')){if(!_0x54ee77['attributes']['tablePasteChainId']){_0x24f349=!0x1;break;}if(_0x54ee77['id']!=_0x232a85['id']&&_0x54ee77['attributes']['tablePasteChainId']==_0x4f9fd2){_0x10abf9=!0x1;break;}}_0x24f349&&_0x10abf9&&(_0x232a85['removeMarkers'](),_0x2f0126=!0x0);}}for(const _0x705838 of _0x4f157c)_0x1eae7a['remove'](_0x705838);for(const _0x5a64a7 of _0x174220)_0x1eae7a['unwrap'](_0x5a64a7);return _0x2f0126;}),_0x32cbe9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x31b074=>_0x334183(_0x31b074),'converterPriority':'high'}),_0x32cbe9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1a6405,_0x2c286b)=>_0x2c286b['options']['showSuggestionHighlights']?_0x334183(_0x1a6405,!0x1):null,'converterPriority':'high'});const _0x569e97=_0x32cbe9['editing']['view'];this['listenTo'](_0x569e97['document'],'clipboardOutput',(_0x2e3627,_0x489f6d)=>{const _0x5ad5c8=[];for(const _0x64b55f of _0x569e97['createRangeIn'](_0x489f6d['content'])['getItems']())_0x64b55f['is']('element','suggestion-td')&&_0x5ad5c8['push'](_0x64b55f);_0x569e97['change'](_0x105012=>{for(const _0x4d4074 of _0x5ad5c8)_0x105012['move'](_0x105012['createRangeIn'](_0x4d4074),_0x105012['createPositionBefore'](_0x4d4074)),_0x105012['remove'](_0x4d4074);});});}}function Ue(_0x489328){if(_0x489328['isEmpty'])return!0x0;const _0x54bcb4=_0x489328['getChild'](0x0);return _0x54bcb4['is']('element','paragraph')&&_0x54bcb4['isEmpty'];}function De(_0x3e343a,_0x13fd62={},_0x3dd7a7){for(const {isAnchor:_0x57d51c,cellHeight:_0x314bd8,cellWidth:_0x35f05d}of _0x3dd7a7['createTableWalker'](_0x3e343a,{'includeAllSlots':!0x0,..._0x13fd62}))if(!_0x57d51c||0x1!=_0x314bd8||0x1!=_0x35f05d)return!0x1;return!0x0;}class Bt extends _0x51b88f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x493918=this['editor']['plugins']['get']('TrackChangesEditing');_0x493918['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x493918['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x493918['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x493918['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x493918['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x493918['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2ef78f,_0x22bc7e){const _0x420fd4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34b3e8=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x426a83=_0x22bc7e['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x34ad35=_0x34b3e8['getColumnGroupElement'](_0x426a83);let _0x3d3117=_0x34ad35?_0x34b3e8['getTableColumnsWidths'](_0x34ad35):null,_0x37cd0f=_0x426a83['getAttribute']('tableWidth')||null;const _0xd2ea33=_0x22bc7e['tableWidth']||_0x37cd0f,_0x4c1dae=_0x22bc7e['columnWidths']||_0x3d3117,_0x1259db=this['editor']['plugins']['get']('Users')['me'];for(const _0xd3e26d of _0x420fd4['getSuggestions']()){const _0x2d55ef=_0xd3e26d['getContainedElement']();if('resizeTable'===_0xd3e26d['subType']&&_0x2d55ef===_0x426a83){_0xd3e26d['author']!==_0x1259db&&_0xd3e26d['discard']();const _0x28ce76=_0xd3e26d['data']['commandParams'];_0x37cd0f=_0x28ce76[0x0]['tableWidth'],_0x3d3117=_0x28ce76[0x0]['columnWidths'];break;}}_0x2ef78f({'table':_0x426a83,'tableWidth':_0xd2ea33,'columnWidths':_0x4c1dae}),_0x420fd4['markBlockFormat'](_0x426a83,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x37cd0f,'columnWidths':_0x3d3117}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x103edd){if('formatBlock'!=_0x103edd['type']&&'formatInline'!=_0x103edd['type'])return;const {data:_0x733be}=_0x103edd;if(_0x733be&&'resizeTable'===_0x733be['formatGroupId']){const _0x344fb0='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x344fb0)};}}}class Ot extends _0x51b88f{['afterInit'](){const _0x3965de=this['editor'];_0x3965de['plugins']['has']('Template')&&_0x3965de['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x51b88f{['afterInit'](){const _0x40951f=this['editor'];if(!_0x40951f['commands']['get']('insertTableOfContents'))return;_0x40951f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2a5fd8=_0x40951f['plugins']['get']('TrackChangesEditing'),_0x57b2b2=_0x40951f['locale'];_0x2a5fd8['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4dcf05=>c(_0x57b2b2,'ELEMENT_TABLE_OF_CONTENTS',_0x4dcf05));}}class xt extends _0x51b88f{['afterInit'](){const _0x56aa3e=this['editor'];if(!_0x56aa3e['plugins']['has']('Title'))return;const _0x2ae8df=_0x56aa3e['plugins']['get']('TrackChangesEditing');_0x2ae8df['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x56aa3e['locale'],'ELEMENT_TITLE')),_0x56aa3e['model']['document']['registerPostFixer'](_0x9d249e=>{let _0x4a770b=!0x1;const _0x2e9a98=Array['from'](_0x56aa3e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1f6372,data:_0x49d03a}of _0x2e9a98){const {group:_0x3ee12e}=_0x2ae8df['_splitMarkerName'](_0x1f6372);if('suggestion'!==_0x3ee12e||!_0x49d03a['newRange'])continue;const _0x5f2860=_0x49d03a['newRange'],_0x3610c2=_0x5f2860['end']['nodeBefore'];if(!_0x3610c2||!_0x3610c2['is']('element','title-content'))continue;if(!_0x5f2860['start']['isTouching'](_0x5f2860['end']))continue;const _0xfbe53f=_0x56aa3e['model']['schema']['getNearestSelectionRange'](_0x5f2860['end'],'forward');if(_0xfbe53f&&_0xfbe53f['isCollapsed']){const _0x660584=_0x9d249e['createRange'](_0x5f2860['start'],_0xfbe53f['start']);_0x660584['isEqual'](_0x5f2860)||(_0x9d249e['updateMarker'](_0x1f6372,{'range':_0x660584}),_0x4a770b=!0x0);}_0x4a770b||(_0x9d249e['removeMarker'](_0x1f6372),_0x4a770b=!0x0);}return _0x4a770b;});}}class Tt extends _0x51b88f{['afterInit'](){const _0x560df9=this['editor'],_0x344331=_0x560df9['plugins']['get']('TrackChangesEditing');_0x560df9['plugins']['has']('Uploadcare')&&(_0x344331['enableCommand']('uploadcare'),_0x560df9['plugins']['has']('UploadcareImageEdit')&&(_0x344331['enableCommand']('uploadcareImageEdit'),_0x344331['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x344331['registerBlockAttribute']('uploadcareImageId'),_0x344331['descriptionFactory']['registerDescriptionCallback'](_0x1739f8=>{if('attribute'!=_0x1739f8['type'])return;const {data:_0x52055b}=_0x1739f8;return _0x52055b&&'uploadcareImageId'==_0x52055b['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x51b88f{['afterInit'](){const _0x370335=this['editor'],_0x13a9bd=_0x370335['plugins']['get']('TrackChangesEditing');_0x370335['plugins']['has']('UndoEditing')&&(_0x13a9bd['enableCommand']('undo'),_0x13a9bd['enableCommand']('redo'));}}class Ut extends _0x51b88f{static get['requires'](){return[Ct];}['afterInit'](){const _0x2269b1=this['editor'];if(!_0x2269b1['plugins']['has']('TableCaptionEditing'))return;_0x2269b1['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x51b88f{['tableProperties'];['tableCellProperties'];constructor(_0x34555c){super(_0x34555c),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 _0x5614f1=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x38fc04 of this['tableProperties'])_0x5614f1['enableCommand'](_0x38fc04,(_0x27cac0,_0x39c435)=>{const _0xfdd6ee=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x38fc04,[_0xfdd6ee],this['tableProperties'],'tableProperties',_0x27cac0,_0x39c435);});_0x5614f1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5614f1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5614f1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3d945c,_0x1bc651)=>this['handleDiscardAction'](this['tableProperties'],_0x3d945c,_0x1bc651)),_0x5614f1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x55d735 of this['tableCellProperties'])_0x5614f1['enableCommand'](_0x55d735,(_0x2d1b1e,_0x511208)=>{const _0x59da8c=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x55d735,_0x59da8c,this['tableCellProperties'],'tableCellProperties',_0x2d1b1e,_0x511208);});_0x5614f1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5614f1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5614f1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x50cceb,_0x38fabf)=>this['handleDiscardAction'](this['tableCellProperties'],_0x50cceb,_0x38fabf)),_0x5614f1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5614f1['descriptionFactory']['registerDescriptionCallback'](_0xd8d905=>this['handleSuggestionDescription'](_0xd8d905));}['_handlePropertyChange'](_0x590430,_0x372e04,_0x1f9304,_0x22223e,_0x957c5b,_0x14d235){const _0x19de2c=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x14d235['batch'],()=>{for(const _0x26d3de of _0x372e04){if(this['_getSuggestion'](_0x26d3de,_0x22223e))_0x957c5b(_0x14d235);else{const _0x2f4c56={};for(const _0x3e6f6c of _0x1f9304){const _0x308a18=_0x26d3de['getAttribute'](_0x3e6f6c);void 0x0!==_0x308a18&&(_0x2f4c56[_0x3e6f6c]=_0x308a18);}_0x957c5b(_0x14d235),_0x19de2c['markBlockFormat'](_0x26d3de,{'commandParams':[_0x2f4c56]},[],_0x22223e);}}});}['handleDiscardAction'](_0x531df4,_0x17834d,_0x2c04f4){const _0x5c6bac=_0x17834d[0x0]['start']['nodeAfter'],_0xad37c3=_0x2c04f4['commandParams'][0x0];this['editor']['model']['change'](_0x4bc936=>{for(const _0x217fd9 of _0x531df4)void 0x0!==_0xad37c3[_0x217fd9]?_0x4bc936['setAttribute'](_0x217fd9,_0xad37c3[_0x217fd9],_0x5c6bac):_0x4bc936['removeAttribute'](_0x217fd9,_0x5c6bac);});}['handleSuggestionDescription'](_0x3209f5){if(_0x3209f5['data'])switch(_0x3209f5['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x49851a,_0xe4e315){const _0x429bc3=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x51fcca of _0x429bc3['getSuggestions']({'skipNotAttached':!0x0})){const _0x29475b=_0x51fcca['getContainedElement']();if(_0x51fcca['subType']===_0xe4e315&&_0x29475b===_0x49851a)return _0x51fcca;}return null;}}const u='$elementName';class p extends _0x51b88f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x122585,_0x37d5c4,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Rt,Vt,Ot,xt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x18ed32){super(_0x18ed32),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x274136,_0x434256,_0x1054c6,_0x1ec0e5)=>{this['_model']['change'](()=>{for(const _0x11afdb of[..._0x1ec0e5,..._0x1054c6])this['_model']['markers']['has'](_0x11afdb)&&_0x18ed32['editing']['reconvertMarker'](_0x11afdb);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x18ed32['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x18ed32['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x18ed32['config']['get']('trackChanges.trackFormatChanges'),_0x18ed32['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x18ed32['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x18ed32,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xff83f=this['editor'],_0x3a54e5=(_0x3ccbb3,_0x148e58)=>{if('attribute'!=_0x3ccbb3)return'ck-suggestion-marker-'+_0x3ccbb3;const _0x30c708=_0x148e58['split']('|')[0x0];return this['_isBlockAttribute'](_0x30c708)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xff83f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x367bd8=>{const {id:_0x10ddad,authorId:_0x1c95c4,type:_0x2bf137,subType:_0x4f0990}=this['_splitMarkerName'](_0x367bd8['markerName']),_0x25c692=['ck-suggestion-marker',_0x3a54e5(_0x2bf137,_0x4f0990)];let _0x48cb42=0xbb8;return this['activeMarkers']['includes'](_0x367bd8['markerName'])&&(_0x25c692['push']('ck-suggestion-marker--active'),_0x48cb42=0xbc2),'deletion'==_0x2bf137&&(_0x48cb42+=0x5),{'classes':_0x25c692,'attributes':{'data-suggestion':_0x10ddad,'data-author-id':_0x1c95c4},'priority':_0x48cb42};}}),_0xff83f['conversion']['for']('dataDowncast')['add'](_0xa8b04d=>{_0xa8b04d['on']('addMarker:suggestion',(_0x189f62,_0x577f70,_0x26d187)=>{if(!_0x26d187['options']['showSuggestionHighlights'])return;const _0x2317a9=_0x577f70['item'];if(!_0x2317a9)return;const _0xec651b=_0x26d187['mapper']['toViewElement'](_0x2317a9);_0xff83f['model']['schema']['isObject'](_0x2317a9)&&_0xec651b&&!_0xec651b['getCustomProperty']('widget')&&_0xec651b['is']('containerElement')&&_0xd1b277(_0xec651b,_0x26d187['writer']);},{'priority':'high'});}),_0xff83f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x31f7a3,_0x524dcb)=>{if(!_0x524dcb['options']['showSuggestionHighlights'])return null;const {type:_0x56cdfc,subType:_0x225605}=this['_splitMarkerName'](_0x31f7a3['markerName']);return{'classes':['ck-suggestion-marker',_0x3a54e5(_0x56cdfc,_0x225605)],'priority':0xbb8};}});const _0x847e5c=({showActiveMarkers:_0x5f5d4a=!0x0,isAttributeSuggestion:_0x41792f=!0x1}={})=>(_0x2d0212,_0x38cbfe,_0x5498e5)=>{if(!_0x38cbfe['item'])return;const {id:_0x40757f,authorId:_0x3022a4}=this['_splitMarkerName'](_0x38cbfe['markerName']);if(_0x41792f){const _0x16d18e=this['_suggestions']['get'](_0x40757f),_0x125dc6=this['_getAttributeKey'](_0x16d18e);if(!this['_isBlockAttribute'](_0x125dc6))return;}if(_0x38cbfe['item']['is']('selection'))return void _0x5498e5['consumable']['consume'](_0x38cbfe['item'],_0x2d0212['name']);const _0x5c98b6=_0x5498e5['mapper']['toViewElement'](_0x38cbfe['item']);if(_0x38cbfe['item']['is']('element')&&_0xff83f['model']['schema']['isBlock'](_0x38cbfe['item'])&&!_0x5c98b6['getCustomProperty']('addHighlight')){_0x5498e5['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5c98b6),_0x5498e5['writer']['setAttribute']('data-suggestion',_0x40757f,_0x5c98b6),_0x5498e5['writer']['setAttribute']('data-author-id',_0x3022a4,_0x5c98b6),_0x5498e5['mapper']['bindElementToMarker'](_0x5c98b6,_0x38cbfe['markerName']),_0x5f5d4a&&(this['activeMarkers']['includes'](_0x38cbfe['markerName'])?_0x5498e5['writer']['addClass']('ck-suggestion-marker--active',_0x5c98b6):_0x5498e5['writer']['removeClass']('ck-suggestion-marker--active',_0x5c98b6));for(const _0x568e9d of _0xff83f['model']['createRangeIn'](_0x38cbfe['item'])['getItems']())_0x5498e5['consumable']['consume'](_0x568e9d,_0x2d0212['name']);_0x5498e5['consumable']['consume'](_0x38cbfe['item'],_0x2d0212['name']);}};_0xff83f['conversion']['for']('dataDowncast')['add'](_0x4d6b68=>{_0x4d6b68['on']('addMarker:suggestion:formatBlock',(_0x58605c,_0x27e7fc,_0x1cfc47)=>{_0x1cfc47['options']['showSuggestionHighlights']&&_0x847e5c({'showActiveMarkers':!0x1})(_0x58605c,_0x27e7fc,_0x1cfc47);},{'priority':'highest'});}),_0xff83f['conversion']['for']('dataDowncast')['add'](_0x552557=>{_0x552557['on']('addMarker:suggestion:attribute',(_0x35ea36,_0xb0aa3d,_0x505df8)=>{_0x505df8['options']['showSuggestionHighlights']&&_0x847e5c({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x35ea36,_0xb0aa3d,_0x505df8);},{'priority':'highest'});}),_0xff83f['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x52014b,_0x152bfe)=>_0x152bfe['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x52014b['substr'](0xb)}}),_0xff83f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x40076c,{writer:_0x2c1e8a})=>{let _0x3582e2='suggestion:'+_0x40076c['getAttribute']('suggestion-type')+':'+_0x40076c['getAttribute']('id');return _0x40076c['getAttribute']('marker-count')&&(_0x3582e2+=':'+_0x40076c['getAttribute']('marker-count')),_0x2c1e8a['createElement']('$marker',{'data-name':_0x3582e2});}}),_0xff83f['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xff83f['conversion']['for']('editingDowncast')['add'](_0x377218=>{_0x377218['on']('addMarker:suggestion:formatBlock',_0x847e5c(),{'priority':'high'});}),_0xff83f['conversion']['for']('editingDowncast')['add'](_0x1b77c0=>{_0x1b77c0['on']('addMarker:suggestion:attribute',_0x847e5c({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xff83f['conversion']['for']('editingDowncast')['add'](_0x4e6160=>{_0x4e6160['on']('removeMarker:suggestion:formatBlock',(_0x175e9b,_0xea6085,_0x398130)=>{const _0x413a83=_0x398130['mapper']['markerNameToElements'](_0xea6085['markerName']);if(_0x413a83){for(const _0x3a4317 of _0x413a83)_0x3a4317['getCustomProperty']('addHighlight')||(_0x398130['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3a4317),_0x398130['writer']['removeAttribute']('data-suggestion',_0x3a4317),_0x398130['writer']['removeAttribute']('data-author-id',_0x3a4317),_0x398130['mapper']['unbindElementFromMarkerName'](_0x3a4317,_0xea6085['markerName']));}},{'priority':'high'});}),_0xff83f['conversion']['for']('editingDowncast')['add'](_0x144b86=>{_0x144b86['on']('removeMarker:suggestion:attribute',(_0x4c3dd0,_0x50c53d,_0xeec598)=>{const _0x325b39=_0xeec598['mapper']['markerNameToElements'](_0x50c53d['markerName']);if(!_0x325b39)return;const {id:_0x136393}=this['_splitMarkerName'](_0x50c53d['markerName']),_0x302634=this['_suggestions']['get'](_0x136393),_0x483ffe=this['_getAttributeKey'](_0x302634);if(this['_isBlockAttribute'](_0x483ffe)){for(const _0x5c2b4a of _0x325b39)_0x5c2b4a['getCustomProperty']('addHighlight')||(_0xeec598['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5c2b4a),_0xeec598['writer']['removeAttribute']('data-suggestion',_0x5c2b4a),_0xeec598['writer']['removeAttribute']('data-author-id',_0x5c2b4a),_0xeec598['mapper']['unbindElementFromMarkerName'](_0x5c2b4a,_0x50c53d['markerName']));}},{'priority':'high'});}),_0xff83f['model']['document']['registerPostFixer'](_0xe01280=>{let _0x404308=!0x1;const _0x47a3f8=Array['from'](_0xff83f['model']['document']['differ']['getChangedMarkers']()),_0x1cdcf6=new Set();for(const {name:_0xe911b4,data:_0x466ebc}of _0x47a3f8){const {group:_0x49771a,type:_0x5de8cc,subType:_0x372bda,id:_0x518f3f}=this['_splitMarkerName'](_0xe911b4);if('suggestion'!==_0x49771a)continue;const _0x5282cd=this['_suggestions']['get'](_0x518f3f);if(null!=_0x466ebc['newRange']){'formatInline'==_0x5de8cc&&(_0x404308=_0x404308||Jt(_0x466ebc['newRange'],_0xe911b4,_0xe01280,_0xff83f['model']['schema']));const _0x21688b='attribute'==_0x5de8cc&&this['_isBlockAttribute'](_0x372bda['split']('|')[0x0]);if(_0x466ebc['newRange']['isCollapsed']||'$graveyard'==_0x466ebc['newRange']['root']['rootName']||'formatBlock'==_0x5de8cc&&!Ht(_0x466ebc['newRange'])||_0x21688b&&!Ht(_0x466ebc['newRange'])||'deletion'==_0x5de8cc&&!(!Lt(_0xe9db4e=_0x466ebc['newRange'])&&!function(_0x1c4fb0){return _0x1c4fb0['start']['parent']==_0x1c4fb0['end']['nodeBefore']&&_0x1c4fb0['start']['isAtEnd'];}(_0xe9db4e)))_0xe01280['removeMarker'](_0xe911b4),_0x404308=!0x0;else{if(!_0x5282cd||!_0x5282cd['isInContent'])continue;if(_0x466ebc['newRange']&&_0x466ebc['oldRange']&&_0x466ebc['newRange']['isEqual'](_0x466ebc['oldRange']))continue;_0x1cdcf6['add'](_0x5282cd);}}}var _0xe9db4e;return _0x1cdcf6['size']>0x0&&(_0x404308=!!this['_joinWithAdjacentSuggestions'](_0x1cdcf6)||_0x404308),_0x404308;}),_0xff83f['model']['document']['registerPostFixer'](_0x32c9ec=>{let _0x2ebf30=!0x1;for(const _0x8f6ae5 of _0xff83f['model']['document']['differ']['getChanges']())if('insert'==_0x8f6ae5['type'])for(const _0xec1db4 of this['_suggestions']['values']()){if(_0xec1db4['isMultiRange']||!_0xec1db4['isInContent'])continue;const _0x16125c='formatBlock'==_0xec1db4['type'],_0x17a46c=this['_getAttributeKey'](_0xec1db4),_0x1916a4=_0x17a46c&&this['_isBlockAttribute'](_0x17a46c);if(!_0x16125c&&!_0x1916a4)continue;const _0x235d6c=_0xec1db4['getFirstRange']();if(_0x235d6c['start']['parent']!=_0x235d6c['end']['parent']&&!_0x235d6c['end']['isAtEnd']){const _0x3c4962=_0xff83f['model']['createPositionAt'](_0x235d6c['start']['nodeAfter'],'end'),_0x145509=_0xff83f['model']['createRange'](_0x235d6c['start'],_0x3c4962);_0x32c9ec['updateMarker'](_0xec1db4['getFirstMarker'](),{'range':_0x145509}),_0x2ebf30=!0x0;}}return _0x2ebf30;}),_0xff83f['model']['document']['registerPostFixer'](_0xbf23d6=>this['_processAttributeChanges'](_0xbf23d6)),_0xff83f['model']['document']['registerPostFixer'](_0x4687f8=>!_0x4687f8['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4687f8)),_0xff83f['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xff83f['model']['document']['on']('change:data',(_0x514deb,_0x2dda7d)=>{if(!_0x2dda7d['isLocal']||_0x2dda7d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xbab714=_0xff83f['model']['document']['differ']['getChanges']();if(0x0==_0xbab714['length'])return;const _0x105188=[],_0x101a2e=_0xbab714['filter'](_0x309673=>'attribute'==_0x309673['type']),_0x1f2ae6=_0xbab714['filter'](_0x4c7af6=>'insert'==_0x4c7af6['type']&&'$text'!=_0x4c7af6['name']);for(const _0x32ada3 of _0x101a2e)this['_isRegisteredAttribute'](_0x32ada3['attributeKey'])&&_0x105188['push']({'key':_0x32ada3['attributeKey'],'newValue':_0x32ada3['attributeNewValue'],'oldValue':_0x32ada3['attributeOldValue'],'range':qt(_0x32ada3['range'],_0xff83f['model'])});for(const _0x5c7960 of _0x1f2ae6){if('rename'!=_0x5c7960['action']&&'refresh'!=_0x5c7960['action'])continue;const _0x222f07=zt(_0x5c7960['position']['nodeAfter'],_0xff83f['model']),_0x15bb93=_0x5c7960['before'];'rename'==_0x5c7960['action']&&_0x105188['push']({'key':u,'newValue':_0x5c7960['name'],'oldValue':_0x15bb93['name'],'range':_0x222f07});for(const [_0x2df8c0,_0x465cbd]of _0x15bb93['attributes']){if(!this['_isRegisteredAttribute'](_0x2df8c0))continue;const _0x5dff9c=_0x5c7960['attributes']['get'](_0x2df8c0);_0x465cbd!==_0x5dff9c&&_0x105188['push']({'key':_0x2df8c0,'newValue':_0x5dff9c,'oldValue':_0x465cbd,'range':_0x222f07});}for(const [_0x4ba901,_0x4c9102]of _0x5c7960['attributes'])this['_isRegisteredAttribute'](_0x4ba901)&&(_0x15bb93['attributes']['has'](_0x4ba901)||_0x105188['push']({'key':_0x4ba901,'newValue':_0x4c9102,'oldValue':null,'range':_0x222f07}));}0x0!=_0x105188['length']&&_0xff83f['model']['enqueueChange'](_0x2dda7d,_0x21b264=>{const _0x373538=_0x35f42a();for(const {range:_0x4e6da3,key:_0x376777,oldValue:_0x287d25,newValue:_0x50fd81}of _0x105188)this['markAttributeChange'](_0x4e6da3,_0x376777,_0x287d25,_0x50fd81,{'groupId':_0x373538});this['_reduceExistingSuggestions'](_0x21b264,_0x105188);});},{'priority':'lowest'}),_0xff83f['model']['markers']['on']('update:suggestion',(_0x559527,_0x545c14,_0x2b1e96)=>{if(null==_0x2b1e96){const {id:_0x3cfb73}=this['_splitMarkerName'](_0x545c14['name']),_0x38d513=this['_suggestions']['get'](_0x3cfb73);_0x38d513&&_0x38d513['addMarkerName'](_0x545c14['name']);}}),_0xff83f['model']['document']['on']('change:data',()=>{const _0x164e16=Array['from'](_0xff83f['model']['document']['differ']['getChangedMarkers']())['filter'](_0xcaf515=>'suggestion'===this['_splitMarkerName'](_0xcaf515['name'])['group']);if(0x0===_0x164e16['length'])return;_0x164e16['sort']((_0x223673,_0x2a3540)=>{const _0x33bbcd=_0x223673['data']['oldRange'],_0x514912=_0x2a3540['data']['oldRange'];return null===_0x33bbcd&&null===_0x514912?0x0:null===_0x33bbcd&&null!==_0x514912?-0x1:null!==_0x33bbcd&&null===_0x514912?0x1:_0x33bbcd['start']['isBefore'](_0x514912['start'])?-0x1:0x1;});const _0x4b997f=new Set(),_0x116969=new Set();for(const {name:_0x4fa665,data:_0xfd8ed6}of _0x164e16){const {id:_0x4253a4}=this['_splitMarkerName'](_0x4fa665);if(null===_0xfd8ed6['oldRange']){const _0x341a9a=this['_handleNewSuggestionMarker'](_0x4fa665);_0x116969['add'](_0x341a9a);}else{const _0x177181=this['_suggestions']['get'](_0x4253a4);null!==_0xfd8ed6['newRange']||_0x177181['isInContent']?(_0x4b997f['add'](_0x177181['head']),_0x116969['add'](_0x177181)):this['_removeSuggestion'](_0x177181);}}_0x116969['size']>0x0&&this['_refreshSuggestionsChain'](_0x116969);for(const _0x18913f of _0x4b997f)this['fire']('suggestionChanged',_0x18913f);}),_0xff83f['model']['on']('applyOperation',(_0x21bc8e,_0x266f66)=>{const _0x359b0a=_0x266f66[0x0];if(!this['_suggestions']['size'])return;if(!_0x359b0a['isDocumentOperation'])return;if(_0x359b0a['batch']['isUndo']||!_0x359b0a['batch']['isLocal'])return;let _0x3bf056,_0xbd021d;switch(_0x359b0a['type']){case'insert':_0x3bf056=_0xff83f['model']['createPositionAt'](_0x359b0a['position']),_0xbd021d=_0x3bf056['getShiftedBy'](_0x359b0a['howMany']);break;case'split':_0x3bf056=_0xff83f['model']['createPositionAt'](_0x359b0a['splitPosition']),_0xbd021d=_0xff83f['model']['createPositionAt'](_0x359b0a['moveTargetPosition']);break;case'move':_0x3bf056=_0xff83f['model']['createPositionAt'](_0x359b0a['targetPosition']),_0xbd021d=_0x3bf056['getShiftedBy'](_0x359b0a['howMany']);break;default:return;}const _0x1e8239=_0xff83f['model']['createRange'](_0x3bf056,_0xbd021d);_0xff83f['model']['change'](()=>{for(const {suggestion:_0x33ce8b,meta:_0x5c7ecd}of this['_findSuggestions'](_0x1e8239)){if(_0x33ce8b['isMultiRange'])continue;if('formatInline'==_0x33ce8b['type'])continue;const _0xfa521f=this['_getAttributeKey'](_0x33ce8b);if(_0xfa521f&&this['_isBlockAttribute'](_0xfa521f)&&'split'!=_0x359b0a['type'])continue;const _0x3c3f07=_0x33ce8b['data']&&_0x33ce8b['data']['multipleBlocks'];('formatBlock'!=_0x33ce8b['type']||'split'==_0x359b0a['type']&&!_0x3c3f07)&&(_0x5c7ecd['containsRangeInObject']||'insertion'==_0x33ce8b['type']&&_0x5c7ecd['isOwn']||_0x33ce8b['getFirstRange']()['containsRange'](_0x1e8239)&&this['_breakSuggestionMarker'](_0x33ce8b,_0x3bf056,_0xbd021d));}});},{'priority':'lowest'}),_0xff83f['model']['on']('deleteContent',(_0x1f3ab5,_0x30069c)=>{const _0x272031=_0x30069c[0x0],_0x1387ec=_0x30069c[0x1];if(_0x1387ec&&_0x1387ec['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x272031['isCollapsed'])return;const _0x3885b8=_0xff83f['model']['schema'],{start:_0x407fe8,end:_0x3bb93c}=_0x272031['getFirstRange'](),_0x52afcf=_0x407fe8['nodeAfter']&&_0x3885b8['isLimit'](_0x407fe8['nodeAfter'])?null:_0x3885b8['getNearestSelectionRange'](_0x407fe8,'forward'),_0x40b14c=_0x3bb93c['nodeBefore']&&_0x3885b8['isLimit'](_0x3bb93c['nodeBefore'])?null:_0x3885b8['getNearestSelectionRange'](_0x3bb93c,'backward'),_0x2a4d65=_0xff83f['model']['createRange'](_0x52afcf?_0x52afcf['start']:_0x407fe8,_0x40b14c?_0x40b14c['end']:_0x3bb93c);_0xff83f['model']['change'](_0x321d7b=>{this['markDeletion'](_0x2a4d65);const _0x4247db=_0xff83f['model']['schema']['getNearestSelectionRange'](_0x2a4d65['start']);_0x272031['is']('documentSelection')?_0x321d7b['setSelection'](_0x4247db):_0x272031['setTo'](_0x4247db);}),_0x1f3ab5['stop']();},{'priority':_0x46c4ae['normal']+0xa}),_0xff83f['model']['on']('insertContent',(_0x569470,_0x3f3cbe)=>{const _0x4d0dcf=_0x3f3cbe[_0x3f3cbe['length']-0x1];_0x4d0dcf&&_0x4d0dcf['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xff83f['model']['change'](()=>{let _0x49d948=_0xff83f['model']['insertContent'](_0x3f3cbe[0x0],_0x3f3cbe[0x1],_0x3f3cbe[0x2],{'forceDefaultExecution':!0x0});if(!_0x49d948)return;_0x569470['return']=_0x49d948['clone']();const _0x1f64af=_0x49d948['end']['nodeBefore'],_0x174a16=_0xff83f['model']['schema'];_0x1f64af&&_0x174a16['isBlock'](_0x1f64af)&&!_0x174a16['isObject'](_0x1f64af)&&(_0x49d948=_0xff83f['model']['createRange'](_0x49d948['start'],_0xff83f['model']['createPositionAt'](_0x1f64af,'end'))),this['markInsertion'](_0x49d948);}),_0x569470['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3333bb=new O(_0xff83f,this['_suggestions']);_0xff83f['commands']['add']('acceptSuggestion',_0x3333bb),this['enableCommand']('acceptSuggestion');const _0x572b66=new R(_0xff83f,this['_suggestions']);_0xff83f['commands']['add']('discardSuggestion',_0x572b66),this['enableCommand']('discardSuggestion'),_0xff83f['commands']['add']('acceptAllSuggestions',new x(_0xff83f,_0x3333bb,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xff83f['commands']['add']('discardAllSuggestions',new x(_0xff83f,_0x572b66,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xff83f['commands']['add']('acceptSelectedSuggestions',new E(_0xff83f,_0x3333bb,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xff83f['commands']['add']('discardSelectedSuggestions',new E(_0xff83f,_0x572b66,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x275bc8=_0xff83f['plugins']['get']('CommentsRepository');this['listenTo'](_0x275bc8,'addComment',(_0x5dc28f,{threadId:_0x4b5d79})=>{const _0x11ba82=this['_suggestions']['get'](_0x4b5d79);_0x11ba82&&_0x11ba82['commentThread']&&0x1===_0x11ba82['commentThread']['length']&&this['_updateSuggestionData'](_0x4b5d79,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x275bc8,'removeComment',(_0x4a4fe9,{threadId:_0x41e186})=>{const _0x4e251e=this['_suggestions']['get'](_0x41e186);_0x4e251e&&_0x4e251e['commentThread']&&!_0x4e251e['commentThread']['length']&&this['_updateSuggestionData'](_0x41e186,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x41c859){const _0x57b59e=_0x3d5c56([0x67,0x65,0x43,0x7a,0x59,0x39,0x57,0x63,0x70,0x38,0x62,0x56,0x44,0x5a,0x66,0x45,0x33,0x50,0x4e,0x68,0x6d,0x73,0x6b,0x30,0x51,0x69,0x6a,0x41,0x46,0x76,0x52,0x6f,0x55,0x35,0x4d,0x36,0x49,0x71,0x77,0x75,0x32,0x4b,0x58,0x74,0x72,0x4c,0x34,0x4a,0x79,0x4f,0x47,0x48,0x42,0x54,0x6e,0x6c,0x78,0x61,0x53,0x64,0x31,0x37]),_0x13790e=0x1793b815,_0x3ef982=0x1794dc55^_0x13790e,_0x57f990=window[_0x3d5c56([0x44,0x61,0x74,0x65])][_0x3d5c56([0x6e,0x6f,0x77])](),_0x2e99fe=_0x41c859[_0x3d5c56([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1f5a6c=new window[(_0x3d5c56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4210c7=>{_0x2e99fe[_0x3d5c56([0x6f,0x6e,0x63,0x65])](_0x3d5c56([0x72,0x65,0x61,0x64,0x79]),_0x4210c7);}),_0x367d20={[_0x3d5c56([0x6b,0x74,0x79])]:_0x3d5c56([0x45,0x43]),[_0x3d5c56([0x75,0x73,0x65])]:_0x3d5c56([0x73,0x69,0x67]),[_0x3d5c56([0x63,0x72,0x76])]:_0x3d5c56([0x50,0x2d,0x32,0x35,0x36]),[_0x3d5c56([0x78])]:_0x3d5c56([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]),[_0x3d5c56([0x79])]:_0x3d5c56([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]),[_0x3d5c56([0x61,0x6c,0x67])]:_0x3d5c56([0x45,0x53,0x32,0x35,0x36])},_0x12efa7=_0x2e99fe[_0x3d5c56([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3d5c56([0x67,0x65,0x74])](_0x3d5c56([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x11b4aa(){let _0x576d9c,_0x5258c2=null,_0x3eb648=null;try{if(_0x12efa7==_0x3d5c56([0x47,0x50,0x4c]))return _0x3d5c56([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x576d9c=_0x17aba0(),!_0x576d9c)return _0x3d5c56([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x576d9c[_0x3d5c56([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3eb648=_0x4321ad(_0x576d9c[_0x3d5c56([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x576d9c[_0x3d5c56([0x6a,0x74,0x69])])),await _0x260de1()?_0x4c4ea0()?_0x4df215()?_0x3d5c56([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x14cde7()?(_0x576d9c[_0x3d5c56([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d5c56([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5258c2=_0x4dea01(_0x3d5c56([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x576d9c[_0x3d5c56([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d5c56([0x74,0x72,0x69,0x61,0x6c])&&(_0x5258c2=_0x4dea01(_0x3d5c56([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xb6b796()):_0x3d5c56([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3d5c56([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3d5c56([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x330df3){return _0x3d5c56([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4df215(){const _0x4f2701=[_0x3d5c56([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3d5c56([0x74,0x72,0x69,0x61,0x6c])][_0x3d5c56([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x576d9c[_0x3d5c56([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x57f990/0x3e8:0xe10*_0x3ef982;return _0x576d9c[_0x3d5c56([0x65,0x78,0x70])]<_0x4f2701;}function _0x4c4ea0(){const _0x45efd1=_0x576d9c[_0x3d5c56([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x45efd1)return!0x1;if(_0x45efd1[_0x3d5c56([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d5c56([0x2a])))return!0x0;if(_0x45efd1[_0x3d5c56([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d5c56([0x54,0x43])))return!0x0;if(_0x45efd1[_0x3d5c56([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d5c56([0x52,0x54,0x43]))){if(_0xba8ee0())return!0x0;if(_0x52b7ab()||_0x3d5572())return!0x0;}return!0x1;}function _0x14cde7(){const _0x31182a=_0x576d9c[_0x3d5c56([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x31182a||0x0==_0x31182a[_0x3d5c56([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1ed4a9}=new URL(window[_0x3d5c56([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x31182a[_0x3d5c56([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ed4a9))return!0x0;const _0x553478=_0x1ed4a9[_0x3d5c56([0x73,0x70,0x6c,0x69,0x74])](_0x3d5c56([0x2e]));return _0x31182a[_0x3d5c56([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1076f5=>_0x1076f5[_0x3d5c56([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d5c56([0x2a])))[_0x3d5c56([0x6d,0x61,0x70])](_0xd1df13=>_0xd1df13[_0x3d5c56([0x73,0x70,0x6c,0x69,0x74])](_0x3d5c56([0x2e])))[_0x3d5c56([0x73,0x6f,0x6d,0x65])](_0x3262d6=>_0x553478[_0x3d5c56([0x65,0x76,0x65,0x72,0x79])]((_0x28127a,_0x51e3f6)=>_0x3262d6[_0x51e3f6]===_0x28127a||_0x3262d6[_0x51e3f6]===_0x3d5c56([0x2a])));}function _0xb6b796(){return _0x5258c2&&_0x3eb648?new window[(_0x3d5c56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3bc33a,_0x2dffde)=>{_0x5258c2[_0x3d5c56([0x74,0x68,0x65,0x6e])](_0x3bc33a,_0x2dffde),_0x3eb648[_0x3d5c56([0x74,0x68,0x65,0x6e])](_0x2742b4=>{_0x2742b4!=_0x3d5c56([0x56,0x61,0x6c,0x69,0x64])&&_0x3bc33a(_0x2742b4);},_0x2dffde);}):_0x5258c2||_0x3eb648||_0x3d5c56([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4321ad(_0x32d954,_0x3ab857){return new window[(_0x3d5c56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4da8dd=>{if(_0x115cb1())return _0x4da8dd(_0x3d5c56([0x56,0x61,0x6c,0x69,0x64]));_0x514085(),_0x2e99fe[_0x3d5c56([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3d5c56([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5bb7f3=!0x1;const _0x529a23=_0x35f42a();function _0x529fcf(_0x3f97d1){return!!_0x3f97d1&&(typeof _0x3f97d1===_0x3d5c56([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3f97d1===_0x3d5c56([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3f97d1[_0x3d5c56([0x74,0x68,0x65,0x6e])]===_0x3d5c56([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3f97d1[_0x3d5c56([0x63,0x61,0x74,0x63,0x68])]===_0x3d5c56([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x27c88b(_0x236715){_0x11def7(_0x236715)[_0x3d5c56([0x74,0x68,0x65,0x6e])](_0x23b2c5=>{if(!_0x23b2c5||_0x23b2c5[_0x3d5c56([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3d5c56([0x6f,0x6b]))return _0x3d5c56([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3e4cf1(_0x48886a(_0x529a23+_0x3ab857))!=_0x23b2c5[_0x3d5c56([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3d5c56([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3d5c56([0x56,0x61,0x6c,0x69,0x64]);})[_0x3d5c56([0x74,0x68,0x65,0x6e])](_0x45a6f0=>(_0x166fbe(),_0x45a6f0),()=>{const _0x2e0722=_0x31da88();return null==_0x2e0722?(_0x166fbe(),_0x3d5c56([0x56,0x61,0x6c,0x69,0x64])):_0x3d5c56(_0x57f990-_0x2e0722>(0x339f3c15^_0x13790e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3d5c56([0x74,0x68,0x65,0x6e])](_0x4da8dd)[_0x3d5c56([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4da8dd(_0x3d5c56([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1624b8=0x17a55695^_0x13790e;function _0x166fbe(){const _0x2d610f=_0x3d5c56([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e4cf1(_0x48886a(_0x32d954)),_0x16f9de=_0x4080fe(_0x3e4cf1(window[_0x3d5c56([0x4d,0x61,0x74,0x68])][_0x3d5c56([0x63,0x65,0x69,0x6c])](_0x57f990/_0x1624b8)));window[_0x3d5c56([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d5c56([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2d610f,_0x16f9de);}function _0x31da88(){const _0x21714b=_0x3d5c56([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e4cf1(_0x48886a(_0x32d954)),_0xc3692e=window[_0x3d5c56([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d5c56([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21714b);return _0xc3692e?window[_0x3d5c56([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4080fe(_0xc3692e),0x10)*_0x1624b8:null;}function _0x11def7(_0x59bba2){return new window[(_0x3d5c56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a1e0f,_0x20a423)=>{_0x59bba2[_0x3d5c56([0x74,0x68,0x65,0x6e])](_0x3a1e0f,_0x20a423),window[_0x3d5c56([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x20a423,0x17926cd5^_0x13790e);});}}_0x2e99fe[_0x3d5c56([0x6f,0x6e])](_0x3d5c56([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5c55cb,_0x11395b)=>{if(_0x11395b[0x0]!=_0x32d954)return _0x4da8dd(_0x3d5c56([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x11395b[0x1]={..._0x11395b[0x1],[_0x3d5c56([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x529a23};},{[_0x3d5c56([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d5c56([0x68,0x69,0x67,0x68])}),_0x2e99fe[_0x3d5c56([0x6f,0x6e])](_0x3d5c56([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3981c3=>{_0x529fcf(_0x3981c3[_0x3d5c56([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5bb7f3=!0x0,_0x27c88b(_0x3981c3[_0x3d5c56([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3d5c56([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d5c56([0x6c,0x6f,0x77])}),_0x1f5a6c[_0x3d5c56([0x74,0x68,0x65,0x6e])](()=>{_0x5bb7f3||_0x4da8dd(_0x3d5c56([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x115cb1(){return _0x2e99fe[_0x3d5c56([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d5c56([0x76,0x69,0x65,0x77])][_0x3d5c56([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3d5c56([0x61,0x75,0x74,0x6f]);}function _0x514085(){_0x2e99fe[_0x3d5c56([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d5c56([0x76,0x69,0x65,0x77])][_0x3d5c56([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d5c56([0x61,0x75,0x74,0x6f]);}}function _0x4dea01(_0x47c4e5){const _0x563594=[new window[(_0x3d5c56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41acbb=>setTimeout(_0x41acbb,0x179a86d9^_0x13790e)),_0x1f5a6c[_0x3d5c56([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3d5c56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x177198=>{let _0x429c40=0x0;_0x2e99fe[_0x3d5c56([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d5c56([0x6f,0x6e])](_0x3d5c56([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4fa254,_0x49bfa0)=>{_0x49bfa0[0x0][_0x3d5c56([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x429c40++,_0x429c40==(0x1793b9ed^_0x13790e)&&(_0x177198(),_0x4fa254[_0x3d5c56([0x6f,0x66,0x66])]());});}))];return window[_0x3d5c56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d5c56([0x72,0x61,0x63,0x65])](_0x563594)[_0x3d5c56([0x74,0x68,0x65,0x6e])](()=>_0x47c4e5);}async function _0x1660aa(){await _0x1f5a6c,_0x2e99fe[_0x3d5c56([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d5c56([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x47f97b,_0x2e99fe[_0x3d5c56([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d5c56([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x47f97b,_0x2e99fe[_0x3d5c56([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3d5c56([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xba8ee0(){return _0x4334ed(_0x3d5c56([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2991d2(_0x3d5c56([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3d5c56([0x73,0x74,0x61,0x74,0x65])]==_0x3d5c56([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x52b7ab(){return _0x4334ed(_0x3d5c56([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 _0x3d5572(){return _0x4334ed(_0x3d5c56([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1e7cf4(_0x5aae79){const _0x2040f9=_0x558b7e();_0x2e99fe[_0x2040f9]=_0x3d5c56([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5aae79,_0x5aae79!=_0x3d5c56([0x56,0x61,0x6c,0x69,0x64])&&_0x1660aa();}function _0x558b7e(){const _0x33ac5f=window[_0x3d5c56([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3d5c56([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3d5c56([0x6e,0x6f,0x77])]())[_0x3d5c56([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3d5c56([0x2e]),'');let _0x10ad05=_0x3d5c56([0x67]);for(let _0x17880b=0x0;_0x17880b<_0x33ac5f[_0x3d5c56([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17880b+=0x2){let _0x3185c8=window[_0x3d5c56([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33ac5f[_0x3d5c56([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17880b,_0x17880b+0x2));_0x3185c8>=_0x57b59e[_0x3d5c56([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3185c8-=_0x57b59e[_0x3d5c56([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x10ad05+=_0x57b59e[_0x3185c8];}return _0x10ad05;}function _0x17aba0(){const _0xe4e515=_0x12efa7[_0x3d5c56([0x73,0x70,0x6c,0x69,0x74])](_0x3d5c56([0x2e]));if(0x3!=_0xe4e515[_0x3d5c56([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x264bda(_0xe4e515[0x1]);function _0x264bda(_0x1c5a69){const _0x30baed=_0x1fc11e(_0x1c5a69);return _0x30baed&&_0xc4d8ed()?_0x30baed:null;function _0xc4d8ed(){const _0x3e4203=_0x30baed[_0x3d5c56([0x6a,0x74,0x69])],_0x2d9008=window[_0x3d5c56([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e4203[_0x3d5c56([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e4203[_0x3d5c56([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2a77cc={..._0x30baed,[_0x3d5c56([0x6a,0x74,0x69])]:_0x3e4203[_0x3d5c56([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3e4203[_0x3d5c56([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2a77cc[_0x3d5c56([0x76,0x63])],_0x48886a(_0x2a77cc)==_0x2d9008;}}}async function _0x260de1(){let _0xf5caf2=!0x0;try{const _0x61183d=_0x12efa7[_0x3d5c56([0x73,0x70,0x6c,0x69,0x74])](_0x3d5c56([0x2e])),[_0x1327ca,_0x280499,_0x4c687b]=_0x61183d;return _0x3ddd29(_0x1327ca),await _0x4264a7(_0x1327ca,_0x280499,_0x4c687b),_0xf5caf2;}catch(_0x43a476){return!0x1;}function _0x3ddd29(_0x5708c6){const _0x2d9961=_0x1fc11e(_0x5708c6);_0x2d9961&&_0x2d9961[_0x3d5c56([0x61,0x6c,0x67])]==_0x3d5c56([0x45,0x53,0x32,0x35,0x36])||(_0xf5caf2=!0x1);}async function _0x4264a7(_0x27449c,_0x48edb7,_0x56534c){const _0x2d0808=window[_0x3d5c56([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3d5c56([0x66,0x72,0x6f,0x6d])](_0x229df4(_0x56534c),_0x22a381=>_0x22a381[_0x3d5c56([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2b0908=new window[(_0x3d5c56([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3d5c56([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x27449c+_0x3d5c56([0x2e])+_0x48edb7),_0x4d6d98=window[_0x3d5c56([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3d5c56([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4d6d98)return;const _0xb7c43e=await _0x4d6d98[_0x3d5c56([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3d5c56([0x6a,0x77,0x6b]),_0x367d20,{[_0x3d5c56([0x6e,0x61,0x6d,0x65])]:_0x3d5c56([0x45,0x43,0x44,0x53,0x41]),[_0x3d5c56([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3d5c56([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3d5c56([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4d6d98[_0x3d5c56([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3d5c56([0x6e,0x61,0x6d,0x65])]:_0x3d5c56([0x45,0x43,0x44,0x53,0x41]),[_0x3d5c56([0x68,0x61,0x73,0x68])]:{[_0x3d5c56([0x6e,0x61,0x6d,0x65])]:_0x3d5c56([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xb7c43e,_0x2d0808,_0x2b0908)||(_0xf5caf2=!0x1);}}function _0x1fc11e(_0x59ddc2){return _0x59ddc2[_0x3d5c56([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3d5c56([0x65,0x79]))?JSON[_0x3d5c56([0x70,0x61,0x72,0x73,0x65])](_0x229df4(_0x59ddc2)):null;}function _0x229df4(_0x23ff15){return window[_0x3d5c56([0x61,0x74,0x6f,0x62])](_0x23ff15[_0x3d5c56([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3d5c56([0x2b]))[_0x3d5c56([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3d5c56([0x2f])));}function _0x48886a(_0x525040){let _0x15b5a8=0x1505;function _0x3fabd8(_0x3d045d){for(let _0x32f97c=0x0;_0x32f97c<_0x3d045d[_0x3d5c56([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x32f97c++){const _0x22795e=_0x3d045d[_0x3d5c56([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x32f97c);_0x15b5a8=(_0x15b5a8<<0x5)+_0x15b5a8+_0x22795e,_0x15b5a8&=_0x15b5a8;}}function _0x5833f7(_0x340684){Array[_0x3d5c56([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x340684)?_0x340684[_0x3d5c56([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5833f7):_0x340684&&typeof _0x340684==_0x3d5c56([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3d5c56([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x340684)[_0x3d5c56([0x73,0x6f,0x72,0x74])]()[_0x3d5c56([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3596ab,_0x8121cc])=>{_0x3fabd8(_0x3596ab),_0x5833f7(_0x8121cc);}):_0x3fabd8(window[_0x3d5c56([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x340684));}return _0x5833f7(_0x525040),_0x15b5a8>>>0x0;}function _0x3e4cf1(_0x2fb699){return _0x2fb699[_0x3d5c56([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3d5c56([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3d5c56([0x30]));}function _0x4080fe(_0x329eab){return _0x329eab[_0x3d5c56([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3d5c56([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3d5c56([0x6a,0x6f,0x69,0x6e])]('');}function _0x4334ed(_0xb89ef8){return _0x2e99fe[_0x3d5c56([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3d5c56([0x68,0x61,0x73])](_0xb89ef8);}function _0x2991d2(_0xf989d6){return _0x2e99fe[_0x3d5c56([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3d5c56([0x67,0x65,0x74])](_0xf989d6);}function _0x47f97b(){}function _0x3d5c56(_0x533187){return _0x533187['map'](_0x10d335=>String['fromCharCode'](_0x10d335))['join']('');}_0x1e7cf4(await _0x11b4aa());}(this);}set['adapter'](_0x2ed0e5){if(this['_adapter'])throw new _0x463d5f('track-changes-adapter-already-set',this);this['_adapter']=_0x2ed0e5;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x41cab1=!0x1,toJSON:_0xa001b7=!0x1}={}){const _0x4d68b8=[];for(const _0x205fca of this['_suggestions']['values']())_0x41cab1&&!_0x205fca['isInContent']||_0x4d68b8['push'](_0x205fca);return _0xa001b7?_0x4d68b8['map'](_0x4043d8=>_0x4043d8['toJSON']()):_0x4d68b8;}['getSuggestion'](_0x3bab8d){const _0x2ca4a6=this['_suggestions']['get'](_0x3bab8d);if(!_0x2ca4a6)throw new _0x463d5f('track-changes-suggestion-not-found',this);return _0x2ca4a6;}['hasSuggestion'](_0x280ce1){return this['_suggestions']['has'](_0x280ce1);}['addSuggestionData'](_0x4f75e6){const {authorId:_0x251277,id:_0x32d844,attributes:_0xeaaecb}=_0x4f75e6,[_0x449686,_0x2fc318]=_0x4f75e6['type']['split'](':'),_0x1388f1=this['_suggestions']['get'](_0x32d844)||this['_createSuggestion'](_0x449686,_0x2fc318,_0x32d844,_0x251277,_0xeaaecb);if(this['_addThreadToSuggestion'](_0x1388f1),this['_checkSuggestionCorrectness'](_0x1388f1,_0x449686,_0x2fc318||null,_0x251277),_0x1388f1['createdAt']=_0x4f75e6['createdAt'],_0x1388f1['_isDataLoaded']=!0x0,_0xeaaecb&&_0xeaaecb['@external']){const _0x457b25=_0xeaaecb['@external'],_0x2c1457=this['_getExternalAuthor'](_0x457b25['authorName']);_0x1388f1['authoredAt']=_0x457b25['createdAt'],_0x1388f1['author']=_0x2c1457,_0x1388f1['isExternal']=!0x0;}else _0x1388f1['authoredAt']=_0x4f75e6['createdAt'];switch(_0x4f75e6['data']&&(_0x1388f1['data']=_0x4f75e6['data']),_0x4f75e6['attributes']&&(_0x1388f1['attributes']=_0x4f75e6['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1388f1['_saved']=!0x0),this['_suggestionState']['get'](_0x1388f1)){case'notReady':this['_suggestionState']['set'](_0x1388f1,'dataReady');break;case'markerReady':_0x1388f1['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1388f1])),this['_refreshSuggestionsChain'](new Set([_0x1388f1])),this['_suggestionState']['set'](_0x1388f1,'ready'),this['fire']('suggestionLoaded',_0x1388f1)):this['_suggestionState']['set'](_0x1388f1,'removed');}return _0x1388f1;}['acceptSuggestion'](_0x501a1a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5652d2 of _0x501a1a['getAllAdjacentSuggestions']())_0x5652d2['accept']();});});}['discardSuggestion'](_0x13797e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5d9ff1 of _0x13797e['getAllAdjacentSuggestions']())_0x5d9ff1['discard']();});});}['enableCommand'](_0x3947c6,_0x27c7b3){const _0x178c7f=this['editor']['commands']['get'](_0x3947c6);if(!_0x178c7f)throw new _0x463d5f('track-changes-command-not-found',this,{'commandName':_0x3947c6});if(this['_enabledCommands']['has'](_0x178c7f))throw new _0x463d5f('track-changes-enable-command-twice',this,{'commandName':_0x3947c6});this['_enabledCommands']['add'](_0x178c7f),_0x27c7b3&&_0x178c7f['on']('execute',(_0x426461,_0x5f1276)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5f1276['length']>0x0&&_0x5f1276[_0x5f1276['length']-0x1]&&_0x5f1276[_0x5f1276['length']-0x1]['forceDefaultExecution']?_0x5f1276['pop']():(_0x426461['return']=_0x27c7b3((..._0x591309)=>_0x178c7f['execute'](..._0x591309,{'forceDefaultExecution':!0x0}),..._0x5f1276),_0x426461['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xfc1838){let _0x55c626,_0x26a586;const _0x3cf4c4=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x55c626=_0xfc1838();}catch(_0x414bf2){_0x26a586=_0x414bf2;}return _0x3cf4c4||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x26a586&&_0x463d5f['rethrowUnexpectedError'](_0x26a586,this),_0x55c626;}['markInsertion'](_0x269eb1,_0x54756b=null,_0x26b9ab={}){if(_0x269eb1['isCollapsed'])return null;const _0x576ef4=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x53f9ac,meta:_0x2ace23}of this['_findSuggestions'](_0x269eb1,'insertion'))if(_0x2ace23['isOwn']){if(!_0x2ace23['isNextTo']){if(_0x2ace23['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x53f9ac,_0x26b9ab))continue;return _0x53f9ac;}if(Xt(_0x53f9ac,_0x26b9ab))return _0x53f9ac;this['_breakSuggestionMarker'](_0x53f9ac,_0x269eb1['start'],_0x269eb1['end']);break;}if(_0x54756b==_0x53f9ac['subType']&&Xt(_0x53f9ac,_0x26b9ab)){const _0x182e1d=_0x53f9ac['getFirstRange']();return _0x182e1d['start']['isEqual'](_0x269eb1['end'])?this['_setSuggestionRange'](_0x53f9ac,this['_model']['createRange'](_0x269eb1['start'],_0x182e1d['end'])):this['_setSuggestionRange'](_0x53f9ac,this['_model']['createRange'](_0x182e1d['start'],_0x269eb1['end'])),_0x53f9ac;}}const _0xc325ea=_0x35f42a(),_0x676ebe=_0x576ef4['id'],_0x5c5941=_0x54756b?'insertion:'+_0x54756b:'insertion',_0x391a7f=this['_setSuggestionData']({'id':_0xc325ea,'type':_0x5c5941,'createdAt':new Date(),'authorId':_0x676ebe,'attributes':_0x26b9ab});return this['_addSuggestionMarker'](_0x5c5941,_0xc325ea,_0x676ebe,_0x269eb1),_0x391a7f;}['markMultiRangeInsertion'](_0x801a14,_0x10836e='multi',_0x17cc49={}){const _0x48244f=this['editor']['plugins']['get']('Users')['me'],_0x5798db=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x10836e,'join');for(const _0x5606ce of this['getSuggestions']())if(_0x5606ce['author']['id']==_0x48244f['id']&&'insertion'==_0x5606ce['type']&&_0x5606ce['subType']==_0x10836e&&Xt(_0x5606ce,_0x17cc49)&&(_0x5798db(_0x5606ce['getRanges'](),_0x801a14)||_0x5798db(_0x801a14,_0x5606ce['getRanges']()))){for(const _0x5e5ec9 of _0x801a14)_0x5606ce['addRange'](_0x5e5ec9);return _0x5606ce;}for(const {suggestion:_0x17a3fa,meta:_0x1a0cb3}of this['_findSuggestions'](_0x801a14,'insertion')){if(!_0x1a0cb3['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1a0cb3['containsRangeInObject'])continue;if(!Xt(_0x17a3fa,_0x17cc49))continue;let _0x355cb8=!0x0;for(const _0x4a4abe of _0x17a3fa['getRanges']())for(const _0x6c21e7 of _0x801a14)if(!_0x4a4abe['containsRange'](_0x6c21e7)){_0x355cb8=!0x1;break;}if(_0x355cb8)return _0x17a3fa;}const _0x541283=_0x35f42a(),_0x597925=_0x48244f['id'],_0x4419f4='insertion:'+_0x10836e,_0x41bb91=this['_setSuggestionData']({'id':_0x541283,'type':_0x4419f4,'createdAt':new Date(),'authorId':_0x597925,'attributes':_0x17cc49});for(const _0xfb591e of _0x801a14)this['_addSuggestionMarker'](_0x4419f4,_0x541283,_0x597925,_0xfb591e,o['getMultiRangeId']());return _0x41bb91;}['markInlineFormat'](_0x408332,_0x275d5d,_0x3388c3=null,_0x39e229={}){if(_0x3388c3=_0x3388c3||Kt(_0x275d5d),_0x408332['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5a0ac2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3388c3,'accept');return this['forceDefaultExecution'](()=>_0x5a0ac2([_0x408332],_0x275d5d,_0x39e229)),null;}const _0x33bd0d=this['editor']['plugins']['get']('Users')['me'],_0x3cf7e9=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2a92a2,meta:_0x4b3e9b}of this['_findSuggestions'](_0x408332,'insertion'))_0x4b3e9b['isOwn']&&!_0x4b3e9b['isInsideObject']&&_0x3cf7e9['push'](..._0x2a92a2['getRanges']());}const _0x64773e=function(_0xf5eaa0,_0x78bc0a){const _0x36e129=[];for(const _0x33af53 of _0x78bc0a){const _0x2da55b=_0xf5eaa0['getIntersection'](_0x33af53);_0x2da55b&&_0x36e129['push'](_0x2da55b);}return _0x36e129;}(_0x408332,_0x3cf7e9),_0x3619db=function(_0x5ee67d,_0xb06a03){const _0x44bb09=[_0x5ee67d];for(const _0x4a134f of _0xb06a03){let _0x584ccb=0x0;for(;_0x584ccb<_0x44bb09['length'];){const _0x555aca=_0x44bb09[_0x584ccb]['getDifference'](_0x4a134f);_0x44bb09['splice'](_0x584ccb,0x1,..._0x555aca),_0x584ccb+=_0x555aca['length'];}}return _0x44bb09;}(_0x408332,_0x3cf7e9);_0x64773e['length']&&this['_model']['change'](()=>{for(const _0xa3fc0b of _0x64773e){const _0x12484e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3388c3,'accept');this['forceDefaultExecution'](()=>_0x12484e([_0xa3fc0b],_0x275d5d,_0x39e229));}});for(const _0x40b4ac of _0x3619db){let _0x2c9034=null,_0x2a18dc=_0x40b4ac['start'],_0x2ea1bb=_0x40b4ac['end'];for(const {suggestion:_0x3b62c8,meta:_0x324921}of this['_findSuggestions'](_0x40b4ac,'formatInline')){if(!_0x324921['isOwn'])continue;if(_0x3b62c8['subType']!=_0x3388c3)continue;if(!Xt(_0x3b62c8,_0x39e229))continue;const _0x5e1843=_0x3b62c8['getFirstRange']();if(_0x5e1843['containsRange'](_0x40b4ac,!0x0))return null;_0x2a18dc=_0x2a18dc['isBefore'](_0x5e1843['start'])?_0x2a18dc:_0x5e1843['start'],_0x2ea1bb=_0x2ea1bb['isAfter'](_0x5e1843['end'])?_0x2ea1bb:_0x5e1843['end'],_0x2c9034?_0x5e1843['start']['isBefore'](_0x2c9034['getFirstRange']()['start'])?(_0x2c9034['removeMarkers'](),_0x2c9034=_0x3b62c8):_0x3b62c8['removeMarkers']():_0x2c9034=_0x3b62c8;}const _0x1d6785=this['_model']['createRange'](_0x2a18dc,_0x2ea1bb);if(_0x2c9034)this['_setSuggestionRange'](_0x2c9034,_0x1d6785);else{const _0x3db5e8=_0x35f42a(),_0x3f2209=_0x33bd0d['id'];this['_setSuggestionData']({'id':_0x3db5e8,'type':'formatInline:'+_0x3388c3,'data':_0x275d5d,'createdAt':new Date(),'authorId':_0x3f2209,'attributes':_0x39e229}),this['_addSuggestionMarker']('formatInline:'+_0x3388c3,_0x3db5e8,_0x3f2209,_0x1d6785);}}return null;}['markBlockFormat'](_0x2de651,_0x4c645d,_0x26d07c=[],_0x5131f3=null,_0x489d21={}){_0x4c645d['formatGroupId']||(_0x4c645d['formatGroupId']=_0x4c645d['commandName']),_0x4c645d['multipleBlocks']=_0x2de651['is']('range'),_0x5131f3=_0x5131f3||Kt(_0x4c645d);const _0x54cfb0=_0x26d07c['map'](_0x829bc2=>zt(_0x829bc2,this['_model'])),_0x39f255=_0x2de651['is']('range')?_0x2de651:zt(_0x2de651,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5e515c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5131f3,'accept');return this['forceDefaultExecution'](()=>_0x5e515c([_0x39f255],_0x4c645d,_0x489d21)),null;}_0x54cfb0['push'](_0x39f255);let _0x34e127=!0x0;for(const _0x1861d2 of _0x54cfb0)if(!this['_rangeIsInLocalUserInsertion'](_0x1861d2)){_0x34e127=!0x1;break;}if(_0x34e127&&'always'!==this['_trackFormatChanges']){const _0x2e8286=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5131f3,'accept');return this['forceDefaultExecution'](()=>_0x2e8286([_0x39f255],_0x4c645d,_0x489d21)),null;}let _0x31e870=null,_0x5c3654=_0x39f255['start'],_0xc27ec=_0x39f255['end'];for(const {suggestion:_0x100f96,meta:_0x3073e0}of this['_findSuggestions'](_0x39f255,'formatBlock')){if(!_0x3073e0['isOwn'])continue;if(_0x3073e0['isNextTo']||_0x3073e0['containsRangeInObject']||_0x3073e0['isInsideObject'])continue;if(_0x100f96['data']['formatGroupId']!=_0x4c645d['formatGroupId'])continue;if(!Xt(_0x100f96,_0x489d21))continue;const _0x10bb63=_0x100f96['getFirstRange']();if(_0x100f96['subType']==_0x5131f3){if(_0x10bb63['containsRange'](_0x39f255,!0x0))return null;_0x5c3654=_0x5c3654['isBefore'](_0x10bb63['start'])?_0x5c3654:_0x10bb63['start'],_0xc27ec=_0xc27ec['isAfter'](_0x10bb63['end'])?_0xc27ec:_0x10bb63['end'],_0x31e870?_0x10bb63['start']['isBefore'](_0x31e870['getFirstRange']()['start'])?(_0x31e870['removeMarkers'](),_0x31e870=_0x100f96):_0x100f96['removeMarkers']():_0x31e870=_0x100f96;}else{const _0x209382=_0x39f255['getIntersection'](_0x10bb63);this['_cutOutSuggestionMarker'](_0x100f96,_0x209382);}}const _0x5e9cce=this['editor']['plugins']['get']('Users')['me'],_0x3c74d6=_0x35f42a(),_0x5c99f5=_0x5e9cce['id'];if(_0x31e870)return this['_setSuggestionRange'](_0x31e870,this['_model']['createRange'](_0x5c3654,_0xc27ec)),_0x31e870;{const _0x2c24ee=this['_setSuggestionData']({'id':_0x3c74d6,'type':'formatBlock:'+_0x5131f3,'data':_0x4c645d,'createdAt':new Date(),'authorId':_0x5c99f5,'attributes':_0x489d21});return this['_addSuggestionMarker']('formatBlock:'+_0x5131f3,_0x3c74d6,_0x5c99f5,this['_model']['createRange'](_0x5c3654,_0xc27ec)),_0x2c24ee;}}['markMultiRangeBlockFormat'](_0x7683a7,_0x11493f,_0x2b168c=[],_0x604d97=null,_0x206e9e={}){_0x11493f['formatGroupId']||(_0x11493f['formatGroupId']=_0x11493f['commandName']);const _0x7cc1e3=_0x7683a7[0x0];_0x11493f['multipleBlocks']=_0x7cc1e3['is']('range'),_0x604d97=_0x604d97||Kt(_0x11493f);const _0x1b86e2=_0x2b168c['map'](_0x5c061b=>zt(_0x5c061b,this['_model'])),_0x57c15d=_0x7cc1e3['is']('range')?_0x7683a7:_0x7683a7['map'](_0x3e3522=>zt(_0x3e3522,this['_model']));if('never'===this['_trackFormatChanges']){const _0xb4fe0b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x604d97,'accept');return this['forceDefaultExecution'](()=>_0xb4fe0b(_0x57c15d,_0x11493f,_0x206e9e)),null;}_0x1b86e2['push'](..._0x57c15d);let _0x15ef7c=!0x0;for(const _0x461aa8 of _0x1b86e2)if(!this['_rangeIsInLocalUserInsertion'](_0x461aa8)){_0x15ef7c=!0x1;break;}if(_0x15ef7c&&'always'!==this['_trackFormatChanges']){const _0x431d7a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x604d97,'accept');return this['forceDefaultExecution'](()=>_0x431d7a(_0x57c15d,_0x11493f,_0x206e9e)),null;}const _0x2ae4a5=this['editor']['plugins']['get']('Users')['me'];for(const _0x9b5c1b of this['getSuggestions']()){if(_0x9b5c1b['author']['id']!=_0x2ae4a5['id'])continue;if('formatBlock'!=_0x9b5c1b['type']||_0x9b5c1b['data']['formatGroupId']!=_0x11493f['formatGroupId'])continue;if(!Xt(_0x9b5c1b,_0x206e9e))continue;const _0x112025=_0x9b5c1b['subType']==_0x604d97;for(let _0x1bcaac=0x0;_0x1bcaac<_0x57c15d['length'];_0x1bcaac++){const _0x39e4e9=_0x57c15d[_0x1bcaac];for(const _0x560a16 of _0x9b5c1b['getMarkers']()){const _0x1f25d1=_0x560a16['getRange']();if(_0x39e4e9['isEqual'](_0x1f25d1)){_0x112025?(_0x57c15d['splice'](_0x1bcaac,0x1),_0x1bcaac--):_0x9b5c1b['removeMarker'](_0x560a16['name']);break;}}}}if(0x0==_0x57c15d['length'])return null;const _0x56be26=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x604d97,'join');for(const _0x9375a of this['getSuggestions']())if(_0x9375a['author']['id']==_0x2ae4a5['id']&&'formatBlock'==_0x9375a['type']&&_0x9375a['data']['formatGroupId']==_0x11493f['formatGroupId']&&_0x9375a['subType']==_0x604d97&&Xt(_0x9375a,_0x206e9e)&&(_0x56be26(_0x9375a['getRanges'](),_0x57c15d)||_0x56be26(_0x57c15d,_0x9375a['getRanges']()))){for(const _0x593beb of _0x57c15d)_0x9375a['addRange'](_0x593beb);return _0x9375a;}const _0x1d6e87=_0x35f42a(),_0x2898af=_0x2ae4a5['id'],_0x57912a='formatBlock:'+_0x604d97,_0x4825af=this['_setSuggestionData']({'id':_0x1d6e87,'type':_0x57912a,'data':_0x11493f,'createdAt':new Date(),'authorId':_0x2898af,'attributes':_0x206e9e});for(const _0xa36178 of _0x57c15d)this['_addSuggestionMarker'](_0x57912a,_0x1d6e87,_0x2898af,_0xa36178,o['getMultiRangeId']());return _0x4825af;}['markDeletion'](_0x457430,_0x4899d9=null,_0x52eb67={}){if(_0x457430['isCollapsed'])return null;const _0x1c0046=this['editor']['plugins']['get']('Users')['me'],_0x49c1b9=new _0x221782(_0x457430['start'],_0x457430['end']);for(const {suggestion:_0x17509a,meta:_0x514733}of this['_findSuggestions'](_0x49c1b9,'insertion'))if(_0x514733['isOwn']&&!_0x514733['isNextTo']){if(_0x17509a['isMultiRange']){const _0x1093b9=_0x17509a['getRanges']()['filter'](_0x10e692=>'$graveyard'!=_0x10e692['root']['rootName']);_0x1093b9['every'](_0x49112f=>_0x49c1b9['containsRange'](_0x49112f,!0x0))&&_0x17509a['discard']();if(_0x1093b9['some'](_0x21fefb=>_0x21fefb['containsRange'](_0x49c1b9,!0x0))){const _0xe2ad56=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4899d9,'accept');return this['forceDefaultExecution'](()=>_0xe2ad56([_0x49c1b9],null,_0x52eb67)),null;}}else{const _0x50147f=_0x49c1b9['getIntersection'](_0x17509a['getFirstRange']());null!==_0x50147f&&_0x17509a['_onDiscard']([_0x50147f],null,_0x52eb67);}}if(_0x49c1b9['detach'](),_0x49c1b9['isCollapsed']||'$graveyard'==_0x49c1b9['root']['rootName'])return null;let _0xdfd42f=null,_0xd55a52=_0x49c1b9['start'],_0x2ce19e=_0x49c1b9['end'];const _0x5f051e=this['_findSuggestions'](_0x49c1b9,'deletion');for(const {suggestion:_0x10ba84,meta:_0x10c637}of _0x5f051e){const _0x29bfb1=this['_model']['createRange'](_0xd55a52,_0x2ce19e);if(_0x10c637['isOwn']&&(this['_mergeNestedSuggestions']||!_0x10c637['containsRangeInObject']&&!_0x10c637['isInsideObject'])){if(_0x10ba84['isMultiRange']){if(!Xt(_0x10ba84,_0x52eb67))continue;let _0x4e0b2a=!0x0;for(const _0x58fcf4 of _0x10ba84['getRanges']()){if(_0x58fcf4['containsRange'](_0x29bfb1,!0x0))return _0x10ba84;_0x29bfb1['containsRange'](_0x58fcf4)||(_0x4e0b2a=!0x1);}_0x4e0b2a&&_0x10ba84['discard']();}else{const _0xb22a95=_0x10ba84['getFirstRange']();if(_0xb22a95['containsRange'](_0x29bfb1,!0x0))return _0x10ba84;if(!Xt(_0x10ba84,_0x52eb67)){_0x29bfb1['containsRange'](_0xb22a95)?_0x10ba84['removeMarkers']():_0xb22a95['containsPosition'](_0xd55a52)?_0xd55a52=_0xb22a95['end']:_0xb22a95['containsPosition'](_0x2ce19e)&&(_0x2ce19e=_0xb22a95['start']);continue;}_0xd55a52=_0xd55a52['isBefore'](_0xb22a95['start'])?_0xd55a52:_0xb22a95['start'],_0x2ce19e=_0x2ce19e['isAfter'](_0xb22a95['end'])?_0x2ce19e:_0xb22a95['end'],_0x52eb67=Object['assign']({},_0x10ba84['attributes']),_0xdfd42f?_0xb22a95['start']['isBefore'](_0xdfd42f['getFirstRange']()['start'])?(_0xdfd42f['removeMarkers'](),_0xdfd42f=_0x10ba84):_0x10ba84['removeMarkers']():_0xdfd42f=_0x10ba84;}}}if(_0xdfd42f)return this['_setSuggestionRange'](_0xdfd42f,this['_model']['createRange'](_0xd55a52,_0x2ce19e)),_0xdfd42f;{const _0x489edb=_0x35f42a(),_0x3ea5c4=this['_model']['createRange'](_0xd55a52,_0x2ce19e),_0x2acb4f=_0x1c0046['id'],_0x49f469=_0x4899d9?'deletion:'+_0x4899d9:'deletion',_0x1943a4=this['_setSuggestionData']({'id':_0x489edb,'type':_0x49f469,'createdAt':new Date(),'authorId':_0x2acb4f,'attributes':_0x52eb67});return this['_addSuggestionMarker'](_0x49f469,_0x489edb,_0x2acb4f,_0x3ea5c4),_0x1943a4;}}['markMultiRangeDeletion'](_0x3f0083,_0x34eff7='multi',_0x586185={}){const _0x1b05df=this['editor']['plugins']['get']('Users')['me'],_0x503052=_0x3f0083['map'](_0x4c7619=>new _0x221782(_0x4c7619['start'],_0x4c7619['end'])),_0x84c3e=new Set();for(const {suggestion:_0x3f1540,meta:_0x22b268}of this['_findSuggestions'](_0x503052,'insertion'))_0x22b268['isOwn']&&!_0x22b268['isNextTo']&&_0x84c3e['add'](_0x3f1540);for(const _0xa6e4a4 of _0x84c3e)if(_0xa6e4a4['isMultiRange']){const _0xfb3c09=_0xa6e4a4['getRanges']();(!_0xa6e4a4['attributes']||!_0xa6e4a4['attributes']['skipNestingCheck'])&&(_0xfb3c09['every'](_0x573f23=>_0x503052['some'](_0xd435d6=>_0xd435d6['containsRange'](_0x573f23,!0x0)))&&_0xa6e4a4['discard']());if(_0x503052['every'](_0x38e98b=>_0xfb3c09['some'](_0x25ce4d=>_0x25ce4d['containsRange'](_0x38e98b,!0x0)))){const _0x20e93a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x34eff7,'accept');return this['forceDefaultExecution'](()=>_0x20e93a(_0x3f0083,null,_0x586185)),null;}}else{const _0xb28a21=_0xa6e4a4['getFirstRange']();_0x503052['some'](_0x3e589d=>_0x3e589d['containsRange'](_0xb28a21,!0x0))&&_0xa6e4a4['discard']();if(_0x503052['every'](_0x3598d0=>_0xb28a21['containsRange'](_0x3598d0,!0x0))){const _0x3678c4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x34eff7,'accept');return this['forceDefaultExecution'](()=>_0x3678c4(_0x503052,null,_0x586185)),null;}}const _0x7cfac3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x34eff7,'join');let _0x10d76d=null;for(const _0x1c33b1 of this['getSuggestions']())if(_0x1c33b1['author']['id']==_0x1b05df['id']&&_0x1c33b1['isInContent']&&'deletion'==_0x1c33b1['type']&&_0x1c33b1['subType']==_0x34eff7&&Xt(_0x1c33b1,_0x586185)&&(_0x7cfac3(_0x1c33b1['getRanges'](),_0x503052)||_0x7cfac3(_0x503052,_0x1c33b1['getRanges']()))){if(_0x10d76d){if(_0x1c33b1['commentThread']&&_0x1c33b1['commentThread']['length'])continue;for(const _0x542aaa of _0x1c33b1['getRanges']())_0x10d76d['isIntersectingWithRange'](_0x542aaa)||_0x10d76d['addRange'](_0x542aaa);_0x1c33b1['removeMarkers']();}else{_0x10d76d=_0x1c33b1;for(const _0x5df013 of _0x503052)_0x1c33b1['isIntersectingWithRange'](_0x5df013)||_0x1c33b1['addRange'](_0x5df013);}}if(_0x10d76d)return _0x10d76d;_0x84c3e['clear']();for(const {suggestion:_0xe553dc,meta:_0x3f7195}of this['_findSuggestions'](_0x503052,'deletion'))_0x3f7195['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3f7195['containsRangeInObject']&&!_0x3f7195['isInsideObject'])&&Xt(_0xe553dc,_0x586185)&&_0x84c3e['add'](_0xe553dc);for(const _0x3d8dc4 of _0x84c3e){const _0x548fd5=_0x3d8dc4['getRanges']();if(!_0x586185||!_0x586185['skipNestingCheck']){if(_0x503052['every'](_0x3801cf=>_0x548fd5['some'](_0x1c2900=>_0x1c2900['containsRange'](_0x3801cf,!0x0))))return _0x3d8dc4;}(!_0x3d8dc4['attributes']||!_0x3d8dc4['attributes']['skipNestingCheck'])&&(_0x548fd5['every'](_0x495322=>_0x503052['some'](_0x267e7c=>_0x267e7c['containsRange'](_0x495322,!0x0)))&&_0x3d8dc4['discard']());}const _0x1cec04=_0x35f42a(),_0x74b372=_0x1b05df['id'],_0x129d30='deletion:'+_0x34eff7,_0xb4f926=this['_setSuggestionData']({'id':_0x1cec04,'type':_0x129d30,'createdAt':new Date(),'authorId':_0x74b372,'attributes':_0x586185});for(const _0x132f62 of _0x503052)_0x132f62['detach'](),_0x132f62['isCollapsed']||'$graveyard'==_0x132f62['root']['rootName']||this['_addSuggestionMarker'](_0x129d30,_0x1cec04,_0x74b372,_0x132f62,o['getMultiRangeId']());return _0xb4f926;}['markAttributeChange'](_0xdd34d6,_0x4686f4,_0x170acd,_0x5c6bca,_0xa69195){if(_0xdd34d6['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5026da=this['editor']['plugins']['get']('Users')['me']['id'],_0x11b1d5=Array['from'](this['_suggestions']['values']())['filter'](_0x197978=>'attribute'==_0x197978['type']&&_0x197978['data']['key']==_0x4686f4&&_0x197978['isIntersectingWithRange'](_0xdd34d6));if('default'===this['_trackFormatChanges']){const _0x5baa1e=this['_findSuggestions'](_0xdd34d6,'insertion')['filter'](({meta:_0x38b7d7})=>_0x38b7d7['isOwn']&&!_0x38b7d7['isInsideObject']&&!_0x38b7d7['isNextTo'])['map'](({suggestion:_0xb19830})=>_0xb19830);_0x11b1d5['unshift'](..._0x5baa1e);}const _0x4f5afb=new Map([[_0xdd34d6,_0x170acd]]);for(const _0x46489f of _0x11b1d5){const _0x5b665e='attribute'==_0x46489f['type']?_0x46489f['data']['oldValue']:void 0x0,_0x14a247=_0x46489f['getFirstRange'](),_0x57c91a=Array['from'](_0x4f5afb['keys']())['find'](_0x101b3b=>_0x101b3b['isIntersecting'](_0x14a247));if(!_0x57c91a)continue;const _0x3143b6=_0x57c91a['getDifference'](_0x14a247);this['_isBlockAttribute'](_0x4686f4)&&'insertion'==_0x46489f['type']&&0x0!=_0x3143b6['length']||(_0x4f5afb['delete'](_0x57c91a),_0x3143b6['forEach'](_0x347e01=>{_0x4f5afb['set'](_0x347e01,_0x170acd);}),'insertion'!=_0x46489f['type']&&_0x5b665e!=_0x5c6bca&&_0x4f5afb['set'](_0x57c91a['getIntersection'](_0x14a247),_0x5b665e));}const _0x2bdad3=[];for(const [_0xeb60f7,_0x4e0f37]of _0x4f5afb){const _0x4d9fd3=_0x35f42a(),_0x3c2ce4={'key':_0x4686f4,'oldValue':_0x4e0f37,'newValue':_0x5c6bca};_0x4686f4['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':_0x4686f4});const _0x59045a=('attribute:'+(_0x4686f4+'|'+Kt({'newValue':_0x5c6bca})))['substring'](0x0,0x3c),_0x1285fc=this['_setSuggestionData']({'id':_0x4d9fd3,'type':_0x59045a,'data':_0x3c2ce4,'createdAt':new Date(),'authorId':_0x5026da,'attributes':_0xa69195});_0x2bdad3['push'](_0x1285fc),this['_addSuggestionMarker'](_0x59045a,_0x4d9fd3,_0x5026da,_0xeb60f7);}return _0x2bdad3;}['enableDefaultAttributesIntegration'](_0x460fec){this['enableCommand'](_0x460fec,(_0x4bee8e,..._0x470797)=>{this['_recordAttributeChanges'](()=>{_0x4bee8e(..._0x470797);});});}['registerBlockAttribute'](_0x216a11){this['_blockAttributeKeys']['add'](_0x216a11);}['registerInlineAttribute'](_0x58f890){this['_inlineAttributeKeys']['add'](_0x58f890);}['_getAttributeKey'](_0x3e1719){return'attribute'==_0x3e1719['type']?_0x3e1719['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x57004c,_0x40145d){const _0x5819d2=_0x57004c['getFirstMarker']();this['_model']['change'](_0x4ede66=>{_0x4ede66['updateMarker'](_0x5819d2,{'range':_0x40145d});});}['_addThreadToSuggestion'](_0xe4da2e){const _0x46629c=_0xe4da2e['id'],_0x1bc5e8=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x46629c)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1bc5e8,'threadId':_0x46629c,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4c1dc2=this['_commentsRepository']['getCommentThread'](_0x46629c);_0x4c1dc2['unbind']('isRemovable'),_0x4c1dc2['isRemovable']=!0x1,_0xe4da2e['commentThread']=_0x4c1dc2;}['_checkSuggestionCorrectness'](_0x5e284c,_0x5d3624,_0x4db566,_0x3ca7ad){if(_0x5e284c['type']!=_0x5d3624||_0x5e284c['subType']!=_0x4db566||_0x5e284c['creator']['id']!=_0x3ca7ad)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x463d5f('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x545bf9,_0x2b2454){const _0x2d6e53=_0x545bf9['getFirstRange']();if(_0x2b2454['isEqual'](_0x2d6e53))_0x545bf9['removeMarkers']();else{if(_0x2d6e53['containsRange'](_0x2b2454)){const _0x989bb1=this['_model']['createPositionAt'](_0x2b2454['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x545bf9,this['_model']['createRange'](_0x2d6e53['start'],_0x989bb1));const _0x3f15bb=_0x35f42a(),_0x179209=_0x545bf9['creator']['id'],_0x123cce=_0x545bf9['type']+':'+_0x545bf9['subType'];this['_setSuggestionData']({'id':_0x3f15bb,'type':_0x123cce,'createdAt':new Date(),'authorId':_0x179209,'data':_0x545bf9['data'],'attributes':_0x545bf9['attributes']});const _0x38db57=this['_model']['createPositionAt'](_0x2b2454['end']['parent'],'after'),_0x1994a0=this['_model']['createRange'](_0x38db57,_0x2d6e53['end']);this['_addSuggestionMarker'](_0x123cce,_0x3f15bb,_0x179209,_0x1994a0);}else{if(_0x2d6e53['containsPosition'](_0x2b2454['start'])){const _0x59f62e=this['_model']['createPositionAt'](_0x2b2454['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x545bf9,this['_model']['createRange'](_0x2d6e53['start'],_0x59f62e));}else{const _0x4bb0d2=this['_model']['createPositionAt'](_0x2b2454['end']['parent'],'after');this['_setSuggestionRange'](_0x545bf9,this['_model']['createRange'](_0x4bb0d2,_0x2d6e53['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xeed1a2){for(const {suggestion:_0x2d912b,meta:_0x56859b}of this['_findSuggestions'](_0xeed1a2,'insertion')){if(!_0x56859b['isOwn'])continue;const _0x1e643b=_0x2d912b['getRanges']();for(const _0x342a0a of _0x1e643b)if(!_0xeed1a2['getDifference'](_0x342a0a)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x10ed2a){const _0x8e09f5=this['editor']['plugins']['get']('Users')['getUser'](_0x10ed2a);if(!_0x8e09f5)throw new _0x463d5f('track-changes-user-not-found',this);return _0x8e09f5;}['_getExternalAuthor'](_0x572e48){const _0x3335c9=this['editor']['plugins']['get']('Users'),_0x4c0353=_0x248bd8('external:'+_0x572e48),_0x163e3d=_0x3335c9['getUser'](_0x4c0353);return _0x163e3d||_0x3335c9['addUser']({'id':_0x4c0353,'name':_0x572e48});}['_createSuggestion'](_0xd8ffd0,_0xae2d62,_0x4d1163,_0x6ef93b,_0x3f36dc){const _0x360990=this['_getAuthorFromId'](_0x6ef93b),_0x336867=this['_suggestionFactory']['buildSuggestion'](_0xd8ffd0,_0xae2d62,_0x4d1163,_0x360990,_0x3f36dc,_0x435f15=>{this['_updateSuggestionData'](_0x4d1163,{'attributes':_0x435f15});const _0x327d16=this['getSuggestion'](_0x4d1163);this['_joinWithAdjacentSuggestions'](new Set([_0x327d16])),this['_refreshSuggestionsChain'](new Set([_0x327d16]));});return this['listenTo'](_0x336867,'accept',()=>{this['_updateSuggestionData'](_0x4d1163,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x336867,'discard',()=>{this['_updateSuggestionData'](_0x4d1163,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4d1163,_0x336867),this['_suggestionState']['set'](_0x336867,'notReady'),_0x336867;}['_splitMarkerName'](_0x5c2612){const _0x53a395=_0x5c2612['split'](':');return{'group':_0x53a395[0x0],'type':_0x53a395[0x1],'subType':_0x53a395['length']>=0x5?_0x53a395[0x2]:null,'id':_0x53a395['length']<0x5?_0x53a395[0x2]:_0x53a395[0x3],'authorId':_0x53a395['length']<0x5?_0x53a395[0x3]:_0x53a395[0x4],'markerCount':0x6==_0x53a395['length']?_0x53a395[0x5]:null};}['_breakSuggestionMarker'](_0x313dfe,_0x26a981,_0x85c766){const _0x4acf96=_0x313dfe['getFirstRange'](),_0x4122e7=_0x4acf96['start'],_0x503eb6=_0x4acf96['end'];this['_setSuggestionRange'](_0x313dfe,this['_model']['createRange'](_0x4122e7,_0x26a981));const _0x46d148=_0x35f42a(),_0x37f4d4=_0x313dfe['creator']['id'],_0x3c58de=_0x313dfe['type']+(_0x313dfe['subType']?':'+_0x313dfe['subType']:'');this['_setSuggestionData']({'id':_0x46d148,'type':_0x3c58de,'createdAt':new Date(),'authorId':_0x37f4d4,'originalSuggestionId':_0x313dfe['id'],'attributes':_0x313dfe['attributes'],'data':_0x313dfe['data']});const _0x3c81f5=this['_getAttributeKey'](_0x313dfe);('formatBlock'==_0x313dfe['type']||_0x3c81f5&&this['_isBlockAttribute'](_0x3c81f5))&&(_0x85c766=this['_model']['createPositionBefore'](_0x85c766['parent'])),this['_addSuggestionMarker'](_0x3c58de,_0x46d148,_0x37f4d4,this['_model']['createRange'](_0x85c766,_0x503eb6));}['_findSuggestions'](_0x2e1b8a,_0x231b4c=null){const _0x2fae87=[],_0x103ede=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2e1b8a)||(_0x2e1b8a=[_0x2e1b8a]);for(const _0x212fc2 of this['getSuggestions']()){if(!_0x212fc2['isInContent'])continue;if(_0x231b4c&&_0x212fc2['type']!=_0x231b4c)continue;let _0x167fd9=!0x1;for(const _0x43dedf of _0x212fc2['getRanges']()){for(const _0xca5e3c of _0x2e1b8a){const _0x3f1d96=_0xca5e3c['start']['isEqual'](_0x43dedf['end'])||_0xca5e3c['end']['isEqual'](_0x43dedf['start']);if(_0x3f1d96||_0xca5e3c['getIntersection'](_0x43dedf)){const _0x2d4ad9=_0xca5e3c['containsRange'](_0x43dedf)&&Gt(this['_model']['schema'],_0x43dedf['start'],_0xca5e3c),_0x25afc0=_0x43dedf['containsRange'](_0xca5e3c)&&Gt(this['_model']['schema'],_0xca5e3c['start'],_0x43dedf);_0x2fae87['push']({'suggestion':_0x212fc2,'meta':{'isOwn':_0x103ede==_0x212fc2['author'],'isNextTo':_0x3f1d96,'isInsideObject':_0x2d4ad9,'containsRangeInObject':_0x25afc0}}),_0x167fd9=!0x0;break;}}if(_0x167fd9)break;}}return _0x2fae87;}['_addSuggestionMarker'](_0x1c41ac,_0x3e7289,_0x5385ab,_0x3ebe97,_0x51f1d7){this['_model']['change'](_0x4e6ddc=>{let _0x20d9f9='suggestion:'+_0x1c41ac+':'+_0x3e7289+':'+_0x5385ab;_0x51f1d7&&(_0x20d9f9=_0x20d9f9+':'+_0x51f1d7),_0x4e6ddc['addMarker'](_0x20d9f9,{'range':_0x3ebe97,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x9d71c6){const _0xded020=_0x9d71c6['previous'],_0x402761=_0x9d71c6['next'];_0x9d71c6['previous']=null,_0x9d71c6['next']=null,null!=_0xded020&&_0xded020['next']==_0x9d71c6&&(_0xded020['next']=_0x402761),null!=_0x402761&&_0x402761['previous']==_0x9d71c6&&(_0x402761['previous']=_0xded020),'ready'==this['_suggestionState']['get'](_0x9d71c6)&&(this['_suggestionState']['set'](_0x9d71c6,'removed'),this['fire']('suggestionUnloaded',_0x9d71c6,_0xded020,_0x402761));}['_setSuggestionData'](_0x4567bd){const _0x27a0dd=_0x4567bd['id'],_0x1e7e84=this['addSuggestionData'](_0x4567bd);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1abf9c=this['editor']['plugins']['get']('PendingActions'),_0x15453e=_0x1e7e84['hasComments'],_0x44cd89=_0x1e7e84['subType']?_0x1e7e84['type']+':'+_0x1e7e84['subType']:_0x1e7e84['type'],_0x43cf75=this['editor']['locale'],_0x424295=_0x1abf9c['add'](c(_0x43cf75,'PENDING_ACTION_SUGGESTION')),_0x695c9e={'id':_0x27a0dd,'type':_0x44cd89,'hasComments':_0x15453e,'data':_0x4567bd['data']||null,'originalSuggestionId':_0x4567bd['originalSuggestionId']||null,'attributes':_0x1e7e84['attributes']};this['_adapter']['addSuggestion'](_0x695c9e)['then'](_0x1a220b=>{_0x1e7e84['_saved']=!0x0,_0x1abf9c['remove'](_0x424295),_0x1a220b&&_0x1a220b['createdAt']&&(this['_suggestions']['get'](_0x27a0dd)['createdAt']=_0x1a220b['createdAt']);})['catch'](_0x58b0c1=>{throw _0x1a52d0('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1e7e84['discard']();}),_0x1e7e84['stopListening'](),this['_suggestions']['delete'](_0x1e7e84['id']),this['_suggestionState']['delete'](_0x1e7e84),_0x58b0c1;});}return _0x1e7e84;}['_isBlockAttribute'](_0x3d37c5){return this['_blockAttributeKeys']['has'](_0x3d37c5);}['_updateSuggestionData'](_0x31dba3,_0x104ac6){const _0x38d708=this['editor']['plugins']['get']('PendingActions'),_0x4dc572=this['getSuggestion'](_0x31dba3);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4dc572['_saved']){const _0x28b716=_0x38d708['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x31dba3,_0x104ac6)['then'](()=>{_0x38d708['remove'](_0x28b716);});}else _0x4dc572['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x31dba3,_0x104ac6);});}}['_getSuggestionData'](_0x57cc49){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x463d5f('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x57cc49);}['_handleNewSuggestionMarker'](_0x279a86){const {id:_0x19a2bb,type:_0x29ece8,subType:_0x307c3e,authorId:_0x1cf0b5}=this['_splitMarkerName'](_0x279a86),_0x57cb17=this['_suggestions']['get'](_0x19a2bb)||this['_createSuggestion'](_0x29ece8,_0x307c3e,_0x19a2bb,_0x1cf0b5,{});switch(this['_checkSuggestionCorrectness'](_0x57cb17,_0x29ece8,_0x307c3e,_0x1cf0b5),this['_suggestionState']['get'](_0x57cb17)){case'notReady':this['_getSuggestionData'](_0x19a2bb)['then'](_0x5bc407=>{let _0x1c0b60=Promise['resolve']();_0x5bc407['hasComments']&&(_0x1c0b60=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x19a2bb})),_0x1c0b60['then'](()=>{this['addSuggestionData'](_0x5bc407)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x57cb17,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x19a2bb,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x57cb17,'ready'),this['fire']('suggestionLoaded',_0x57cb17);break;case'ready':this['fire']('suggestionChanged',_0x57cb17);}return _0x57cb17['addMarkerName'](_0x279a86),_0x57cb17;}['_refreshSuggestionsChain'](_0x4ac17c){const _0x2cd036=Array['from'](_0x4ac17c),_0x3875b3=_0x2cd036['filter'](_0x3a4225=>'attribute'==_0x3a4225['type']);this['_refreshAttributeSuggestionsChain'](_0x3875b3);const _0x466b06=_0x2cd036['filter'](_0x1b007b=>!_0x1b007b['isMultiRange']&&'attribute'!=_0x1b007b['type']),_0x1b5171=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x30a15b=>!_0x30a15b['isMultiRange']&&'attribute'!=_0x30a15b['type']),_0x277fef=_0x1b5171['filter'](_0x5c830a=>!_0x4ac17c['has'](_0x5c830a)),_0x33b5fc=new Map(_0x1b5171['map'](_0x2b544d=>[_0x2b544d,this['_suggestionFactory']['getSuggestionCallback'](_0x2b544d['type'],_0x2b544d['subType'],'chain')])),_0x190362=new Map(_0x1b5171['map'](_0x375bd2=>[_0x375bd2,_0x375bd2['getFirstRange']()])),_0x28fdce=new Set(),_0xaba996=new Set();for(let _0x36d509=0x0;_0x36d509<_0x466b06['length'];_0x36d509++)_0x42d3c2(_0x466b06[_0x36d509],_0x466b06,_0x36d509+0x1);for(let _0xe45a82=0x0;_0xe45a82<_0x466b06['length'];_0xe45a82++)_0x42d3c2(_0x466b06[_0xe45a82],_0x277fef,0x0);const _0x3c17a8=new Set();for(let _0x1f4138=0x0;_0x1f4138<_0x466b06['length'];_0x1f4138++){const _0x7293f8=_0x466b06[_0x1f4138];!_0xaba996['has'](_0x7293f8)&&_0x7293f8['previous']&&(_0x3c17a8['add'](_0x7293f8['previous']),_0x7293f8['previous']['next']===_0x7293f8&&(_0x7293f8['previous']['next']=null),_0x7293f8['previous']=null),!_0x28fdce['has'](_0x7293f8)&&_0x7293f8['next']&&(_0x3c17a8['add'](_0x7293f8['next']),_0x7293f8['next']['previous']===_0x7293f8&&(_0x7293f8['next']['previous']=null),_0x7293f8['next']=null);}function _0x42d3c2(_0x3597cf,_0x427688,_0x4f5f33){for(let _0x23938f=_0x4f5f33;_0x23938f<_0x427688['length'];_0x23938f++){const _0x451e18=_0x488b77(_0x3597cf,_0x427688[_0x23938f]);_0x451e18&&(_0x451e18[0x0]['next']=_0x451e18[0x1],_0x451e18[0x1]['previous']=_0x451e18[0x0],_0x28fdce['add'](_0x451e18[0x0]),_0xaba996['add'](_0x451e18[0x1]));}}function _0x488b77(_0x199060,_0x1c6891){if(_0x199060['author']['id']!==_0x1c6891['author']['id'])return null;const _0x541630=_0x33b5fc['get'](_0x199060)(_0x199060,_0x1c6891,_0x190362['get'](_0x199060),_0x190362['get'](_0x1c6891));if(!_0x541630)return null;return _0x33b5fc['get'](_0x1c6891)(_0x199060,_0x1c6891,_0x190362['get'](_0x199060),_0x190362['get'](_0x1c6891))?_0x541630[0x1]['commentThread']&&_0x541630[0x1]['commentThread']['length']?null:_0x541630:null;}_0x3c17a8['size']&&this['_refreshSuggestionsChain'](_0x3c17a8);}['_refreshAttributeSuggestionsChain'](_0x5e78e6){if(0x0==_0x5e78e6['length'])return;const _0x56011b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2d957f=>'attribute'==_0x2d957f['type']&&_0x2d957f['_isDataLoaded']),_0x1aa38c=[],_0x482967=new Map();for(const _0xb3fe21 of _0x56011b){const _0xbed9a=_0x248bd8(_0xb3fe21['attributes']);_0x482967['has'](_0xbed9a)||(_0x482967['set'](_0xbed9a,_0x1aa38c['length']),_0x1aa38c['push']([]));const _0x41002d=_0x482967['get'](_0xbed9a);_0x1aa38c[_0x41002d]['push'](_0xb3fe21);}!(function(){_0x1aa38c['sort']((_0xe29a11,_0x1b15eb)=>{const _0x226edd=_0xe29a11[0x0]['createdAt'],_0xf02a80=_0x1b15eb[0x0]['createdAt'];return _0x226edd==_0xf02a80?_0xe29a11[0x0]['attributes']['groupId']<_0x1b15eb[0x0]['attributes']['groupId']?-0x1:0x1:_0x226edd<_0xf02a80?-0x1:0x1;});for(const _0x56f652 of _0x1aa38c)_0x56f652['sort']((_0x334243,_0x318759)=>_0x334243['id']<_0x318759['id']?-0x1:0x1);}());for(let _0xb1af03=0x0;_0xb1af03<_0x1aa38c['length'];_0xb1af03++){if(0x0==_0x1aa38c[_0xb1af03]['length'])continue;const _0x21a94e=[];for(let _0xaef258=_0xb1af03+0x1;_0xaef258<_0x1aa38c['length'];_0xaef258++)0x0!=_0x1aa38c[_0xaef258]['length']&&_0x3ea9e7(_0x1aa38c[_0xb1af03],_0x1aa38c[_0xaef258])&&_0x21a94e['push'](_0xaef258);for(const _0x1602e9 of _0x21a94e)_0x1aa38c[_0xb1af03]=_0x1aa38c[_0xb1af03]['concat'](_0x1aa38c[_0x1602e9]),_0x1aa38c[_0x1602e9]=[];}for(const _0x33560d of _0x1aa38c)for(let _0x3f90c1=0x0;_0x3f90c1<_0x33560d['length'];_0x3f90c1++){const _0x27e9df=_0x33560d[_0x3f90c1+0x1]||null;_0x33560d[_0x3f90c1]['next']!==_0x27e9df&&(_0x33560d[_0x3f90c1]['next']=_0x27e9df);}for(const _0x419388 of _0x1aa38c)for(let _0x3991fd=0x0;_0x3991fd<_0x419388['length'];_0x3991fd++){const _0x4387e1=_0x419388[_0x3991fd-0x1]||null;_0x419388[_0x3991fd]['previous']!==_0x4387e1&&(_0x419388[_0x3991fd]['previous']=_0x4387e1);}function _0x3ea9e7(_0x22a9dc,_0x70c221){if(_0x22a9dc[0x0]['attributes']['groupId']!==_0x70c221[0x0]['attributes']['groupId']&&_0x22a9dc[0x0]['author']!==_0x70c221[0x0]['author'])return!0x1;if(!function(_0x17590e,_0x565064){if(!_0x17590e['hasComments']&&!_0x565064['hasComments'])return!0x0;if(_0x17590e['hasComments']&&_0x565064['hasComments'])return!0x1;if(_0x17590e['hasComments']&&_0x565064['createdAt']<_0x17590e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x565064['hasComments']&&_0x17590e['createdAt']<_0x565064['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x22a9dc[0x0],_0x70c221[0x0]))return!0x1;const _0x5b00d3=Ft(_0x22a9dc[0x0]['attributes'],'groupId'),_0x52e01a=Ft(_0x70c221[0x0]['attributes'],'groupId');if(!_0x1bd547(_0x5b00d3,_0x52e01a))return!0x1;return!!_0x22a9dc['every'](_0x2bf393=>_0x70c221['some'](_0x499bb7=>_0x2bf393['getFirstRange']()['isEqual'](_0x499bb7['getFirstRange']())))&&_0x70c221['every'](_0x3b29dd=>_0x22a9dc['some'](_0x5c4b17=>_0x3b29dd['getFirstRange']()['isEqual'](_0x5c4b17['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x17db5f){const _0x4911d9=Array['from'](_0x17db5f),_0x1d2a33=this['getSuggestions']({'skipNotAttached':!0x0}),_0x63d032=_0x1d2a33['filter'](_0x186936=>!_0x17db5f['has'](_0x186936)),_0xb5dc6f=new Map(_0x4911d9['map'](_0x2508dc=>[_0x2508dc,this['_suggestionFactory']['getSuggestionCallback'](_0x2508dc['type'],_0x2508dc['subType'],'join')])),_0x37cb06=new Map(_0x1d2a33['map'](_0x476ef3=>[_0x476ef3,_0x476ef3['getRanges']()]));for(let _0x1f29b5=0x0;_0x1f29b5<_0x4911d9['length'];_0x1f29b5++){if(_0x1e5735(this,_0x4911d9[_0x1f29b5],_0x4911d9,_0x1f29b5+0x1))return!0x0;}for(let _0x3e746e=0x0;_0x3e746e<_0x4911d9['length'];_0x3e746e++){if(_0x1e5735(this,_0x4911d9[_0x3e746e],_0x63d032,0x0))return!0x0;}return!0x1;function _0x1e5735(_0x185069,_0x4572b9,_0xc55841,_0x3787e3){for(let _0x1bfbe0=_0x3787e3;_0x1bfbe0<_0xc55841['length'];_0x1bfbe0++){const _0x1c0269=_0xc55841[_0x1bfbe0];if(_0x1c0269['type']!==_0x4572b9['type']||_0x1c0269['author']['id']!==_0x4572b9['author']['id']||_0x1c0269['subType']!==_0x4572b9['subType'])continue;if(!Qt(_0x4572b9,_0x1c0269))continue;if('attribute'==_0x4572b9['type']&&_0x4572b9['data']['oldValue']!=_0x1c0269['data']['oldValue'])continue;if('attribute'==_0x4572b9['type']&&_0x185069['_isBlockAttribute'](_0x4572b9['data']['key']))continue;if('formatBlock'==_0x4572b9['type']){const _0x125925=_0x185069['editor']['model'],_0x1c6b20=_0x4572b9['getContainedElement']();if(_0x1c6b20&&(_0x125925['schema']['isObject'](_0x1c6b20)||_0x125925['schema']['isLimit'](_0x1c6b20)))continue;}const _0xb5ebe4=_0xb5dc6f['get'](_0x4572b9),_0x5a7fe2=_0x37cb06['get'](_0x4572b9),_0x3a6b75=_0x37cb06['get'](_0x1c0269),_0x4179ba=_0x4572b9['commentThread']&&_0x4572b9['commentThread']['length'],_0xa5bbea=_0x1c0269['commentThread']&&_0x1c0269['commentThread']['length'];if(!_0x4179ba&&_0xb5ebe4(_0x3a6b75,_0x5a7fe2))return _0x185069['_joinSuggestions'](_0x1c0269,_0x4572b9),_0x37cb06['delete'](_0x4572b9),!0x0;if(!_0xa5bbea&&_0xb5ebe4(_0x5a7fe2,_0x3a6b75))return _0x185069['_joinSuggestions'](_0x4572b9,_0x1c0269),_0x37cb06['delete'](_0x1c0269),!0x0;}return!0x1;}}['_joinSuggestions'](_0xbfd1b5,_0x358adb){if(_0xbfd1b5['isMultiRange']){for(const _0x25e867 of _0x358adb['getRanges']())_0xbfd1b5['addRange'](_0x25e867);}else{const _0x128768=_0x358adb['getFirstRange']()['end'];this['_setSuggestionRange'](_0xbfd1b5,this['_model']['createRange'](_0xbfd1b5['getFirstRange']()['start'],_0x128768));}_0x358adb['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3c97b8,_0x54cd18,_0x487071){const _0x46c3b3=_0x3c97b8['startsWith']('format')||_0x3c97b8['startsWith']('attribute')?'FORMATTING':_0x3c97b8['toUpperCase']();return c(this['editor']['locale'],_0x54cd18+'_'+_0x46c3b3+'_SUGGESTION_ANNOUNCEMENT',_0x487071);}['_initAriaMarkerChangeAnnouncements'](){const _0x4e2a8e=this['editor'];if(!_0x4e2a8e['ui'])return;const {ariaLiveAnnouncer:_0x5268e2}=_0x4e2a8e['ui'];_0x4b370b(this['_model'],({left:_0x36fb3f,entered:_0x213c60})=>{for(const _0x50b1ab of _0x36fb3f){const {group:_0x590b98,type:_0x48f013}=this['_splitMarkerName'](_0x50b1ab['name']);if('suggestion'===_0x590b98){_0x5268e2['announce'](this['_getMarkerAnnouncementText'](_0x48f013,'LEAVE'));break;}}for(const _0x3ed966 of _0x213c60){const {group:_0x379881,type:_0x3b0aa6}=this['_splitMarkerName'](_0x3ed966['name']);if('suggestion'===_0x379881){_0x5268e2['announce'](this['_getMarkerAnnouncementText'](_0x3b0aa6,'ENTER',_0x5733f7(_0xf69f75)));break;}}});}['_processAttributeChanges'](_0x42c2df){if(this['_recordAttributeSuggestions'])return!0x1;const _0x299b28=this['editor'],_0x3ccd6a=_0x299b28['model']['document']['differ']['getChanges']();if(0x0==_0x3ccd6a['length'])return!0x1;const _0x355303=[],_0xd3b0ab=_0x3ccd6a['filter'](_0x1ac58e=>'attribute'==_0x1ac58e['type']),_0x3dcad7=_0x3ccd6a['filter'](_0xcb094c=>'insert'==_0xcb094c['type']&&'$text'!=_0xcb094c['name']),_0x19d388=_0x3ccd6a['filter'](_0x12bed9=>'remove'==_0x12bed9['type']&&'$text'!=_0x12bed9['name']);for(const _0x373c36 of _0xd3b0ab)_0x355303['push']({'key':_0x373c36['attributeKey'],'newValue':_0x373c36['attributeNewValue'],'oldValue':_0x373c36['attributeOldValue'],'range':qt(_0x373c36['range'],_0x299b28['model'])});for(const _0x423bfb of _0x3dcad7){const _0x6dbe91=_0x19d388['find'](_0x17ec40=>_0x17ec40['position']['isEqual'](_0x423bfb['position']));_0x6dbe91&&_0x355303['push']({'key':u,'newValue':_0x423bfb['name'],'oldValue':_0x6dbe91['name'],'range':_0x299b28['model']['createRangeOn'](_0x423bfb['position']['nodeAfter'])});}return 0x0!=_0x355303['length']&&this['_reduceExistingSuggestions'](_0x42c2df,_0x355303);}['_processAttributeSuggestions'](_0x5373e5){let _0x16efd5=!0x1;const _0x165ae0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xb439aa=>_0xb439aa['data']['newRange']&&_0xb439aa['name']['startsWith']('suggestion:attribute:'));for(const _0x1019cb of _0x165ae0){const {subType:_0x3ca78a,id:_0x832a10}=this['_splitMarkerName'](_0x1019cb['name']),_0x1bd4a7=_0x3ca78a['split']('|')[0x0];for(const _0x3b4932 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3b4932['id']!=_0x832a10&&'attribute'==_0x3b4932['type']&&_0x3b4932['data']&&_0x3b4932['data']['key']==_0x1bd4a7&&_0x3b4932['getFirstRange']()['isIntersecting'](_0x1019cb['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3b4932,_0x1019cb['data']['newRange'],_0x5373e5),_0x16efd5=!0x0);}return _0x16efd5;}['_recordAttributeChanges'](_0x334783){this['_recordAttributeSuggestions']=!0x0,_0x334783();}['_isRegisteredAttribute'](_0x5dcabe){const _0x5f4994=this['_isBlockAttribute'](_0x5dcabe),_0x539399=this['_inlineAttributeKeys']['has'](_0x5dcabe);return _0x5f4994||_0x539399;}['_reduceExistingSuggestions'](_0x48d33b,_0x50bd7c){if(0x0==_0x50bd7c['length'])return!0x1;let _0x470ad9=!0x1;for(const _0x22c2e6 of _0x50bd7c){const _0x1d7646=this['_findSuggestions'](_0x22c2e6['range'],'attribute')['filter'](_0x15c66f=>!_0x15c66f['meta']['isNextTo'])['map'](_0x20748b=>_0x20748b['suggestion']),_0x1a43ae=_0x248bd8({'newValue':_0x22c2e6['newValue']});_0x1d7646['filter'](_0x3c61f7=>{const [_0x5397e4,_0x512a6e]=_0x3c61f7['subType']['split']('|');return _0x5397e4==_0x22c2e6['key']&&_0x512a6e!=_0x1a43ae;})['forEach'](_0x5b61ca=>{this['_reduceSuggestionAttributeRange'](_0x5b61ca,_0x22c2e6['range'],_0x48d33b),_0x470ad9=!0x0;});}return _0x470ad9;}['_reduceSuggestionAttributeRange'](_0x2a70fa,_0x217fa6,_0x3359c0){const _0x3c3483=_0x2a70fa['getFirstRange']()['getDifference'](_0x217fa6);0x0!==_0x3c3483['length']?0x1!==_0x3c3483['length']?this['_breakSuggestionMarker'](_0x2a70fa,_0x217fa6['start'],_0x217fa6['end']):this['_setSuggestionRange'](_0x2a70fa,_0x3c3483[0x0]):_0x3359c0['removeMarker'](_0x2a70fa['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4c4f26){this['_editor']=_0x4c4f26,this['_model']=_0x4c4f26['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x390fb8,_0x39f903,_0x2fe4b3,_0x2e8749,_0x300ad0,_0x590f48){return new o(this['_model'],{'type':_0x390fb8,'subType':_0x39f903,'id':_0x2fe4b3,'author':_0x2e8749,'creator':_0x2e8749,'attributes':_0x300ad0,'onAttributesChange':_0x590f48,'onAccept':(..._0x51599d)=>this['getSuggestionCallback'](_0x390fb8,_0x39f903,'accept')(..._0x51599d),'onDiscard':(..._0x433f78)=>this['getSuggestionCallback'](_0x390fb8,_0x39f903,'discard')(..._0x433f78)});}['registerCustomCallback'](_0xfe891c,_0x328887,_0x201584,_0x2566e6){const _0x24c7d5=_0xfe891c+':'+_0x328887+':'+_0x201584;this['_customCallbacks']['set'](_0x24c7d5,_0x2566e6);}['getSuggestionCallback'](_0x43098b,_0x4e814f,_0x5b28de){const _0x2738f9=_0x43098b+':'+_0x4e814f+':'+_0x5b28de;return this['_customCallbacks']['get'](_0x2738f9)||this['_defaultCallbacks']['get'](_0x43098b+':'+_0x5b28de);}['_registerDefaultCallbacks'](){const _0x330965=()=>!0x1,_0x4f17e9=_0x2b5340=>{_0x2b5340['sort']((_0x213540,_0x4e8082)=>_0x213540['start']['isBefore'](_0x4e8082['start'])?0x1:-0x1),this['_model']['change'](_0x4a4e03=>{for(const _0x248455 of _0x2b5340){let _0x31d40d;_0x31d40d=_0x248455['end']['isAtEnd']&&_0x248455['end']['parent']==_0x248455['start']['nodeAfter']?_0x4a4e03['createSelection'](_0x248455['start']['nodeAfter'],'on'):_0x4a4e03['createSelection'](_0x248455),this['_model']['deleteContent'](_0x31d40d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4d3947=(_0x4ed283,_0x53f17a)=>{_0x53f17a&&this['_model']['change'](_0x38528f=>{const {commandName:_0x2a2057,commandParams:_0x2e2e4e=[]}=_0x53f17a,_0x511a5c=_0x4ed283['map'](_0xde7354=>(Lt(_0xde7354)&&(_0xde7354=this['_model']['createRange'](_0xde7354['end'])),_0xde7354))['filter'](_0x3e04d4=>'$graveyard'!==_0x3e04d4['root']['rootName']);if(_0x511a5c['length']<0x1)return;const _0x1ba0e6=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x11dd80=>_0x221782['fromRange'](_0x11dd80));_0x38528f['setSelection'](_0x511a5c);for(const _0xf46c7a of this['_editor']['commands']['commands']())_0xf46c7a['refresh']();_0x2e2e4e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2a2057,..._0x2e2e4e);const _0x2f6992=_0x1ba0e6['filter'](_0x3056dd=>'$graveyard'!=_0x3056dd['root']['rootName']);_0x2f6992['length']>0x0&&_0x38528f['setSelection'](_0x2f6992);for(const _0x112fb6 of _0x1ba0e6)_0x112fb6['detach']();});},_0x1fe0d1=(_0x42ddcd,_0x22975a)=>0x1==_0x42ddcd['length']&&0x1==_0x22975a['length']&&_0x42ddcd[0x0]['end']['isEqual'](_0x22975a[0x0]['start']),_0x480055=(_0x118be5,_0x2ff1b1,_0x53c431,_0x4edb79)=>Wt(_0x118be5,_0x2ff1b1,_0x53c431,_0x4edb79)?[_0x118be5,_0x2ff1b1]:Wt(_0x2ff1b1,_0x118be5,_0x4edb79,_0x53c431)?[_0x2ff1b1,_0x118be5]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x330965),this['_defaultCallbacks']['set']('insertion:discard',_0x4f17e9),this['_defaultCallbacks']['set']('insertion:join',_0x1fe0d1),this['_defaultCallbacks']['set']('insertion:chain',_0x480055),this['_defaultCallbacks']['set']('deletion:accept',_0x4f17e9),this['_defaultCallbacks']['set']('deletion:discard',_0x330965),this['_defaultCallbacks']['set']('deletion:join',_0x1fe0d1),this['_defaultCallbacks']['set']('deletion:chain',_0x480055),this['_defaultCallbacks']['set']('formatInline:accept',_0x4d3947),this['_defaultCallbacks']['set']('formatInline:discard',_0x330965),this['_defaultCallbacks']['set']('formatInline:join',_0x1fe0d1),this['_defaultCallbacks']['set']('formatInline:chain',_0x330965),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4d3947),this['_defaultCallbacks']['set']('formatBlock:discard',_0x330965),this['_defaultCallbacks']['set']('formatBlock:join',_0x1fe0d1),this['_defaultCallbacks']['set']('formatBlock:chain',_0x330965),this['_defaultCallbacks']['set']('attribute:accept',_0x330965),this['_defaultCallbacks']['set']('attribute:discard',(_0xa938c3,_0x566036)=>{if(!_0x566036)return;const _0x1a0e15=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x460e91=>{if(_0x566036['key']==u)for(const _0x2f26bf of _0xa938c3){const _0x569967=_0x2f26bf['start']['nodeAfter'],_0x363dde=_0x566036['oldValue'];_0x460e91['rename'](_0x569967,_0x363dde);}else{if(_0x1a0e15['_isBlockAttribute'](_0x566036['key'])){for(const _0x165f69 of _0xa938c3)void 0x0!==_0x566036['oldValue']?_0x460e91['setAttribute'](_0x566036['key'],_0x566036['oldValue'],_0x165f69['start']['nodeAfter']):_0x460e91['removeAttribute'](_0x566036['key'],_0x165f69['start']['nodeAfter']);}else{for(const _0x4fc2c6 of _0xa938c3)_0x566036['oldValue']?_0x460e91['setAttribute'](_0x566036['key'],_0x566036['oldValue'],_0x4fc2c6):_0x460e91['removeAttribute'](_0x566036['key'],_0x4fc2c6);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1fe0d1);}}function Gt(_0x5b524e,_0xa39702,_0x5a2caa){for(const _0x1e7155 of _0xa39702['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1e7155['root']==_0x1e7155)return!0x1;if(!_0x5a2caa['containsItem'](_0x1e7155))return!0x1;if(_0x5b524e['isObject'](_0x1e7155)||_0x5b524e['isLimit'](_0x1e7155))return!0x0;}return!0x1;}function Lt(_0x18e07c){return _0x18e07c['end']['parent']==_0x18e07c['start']['nodeAfter']&&_0x18e07c['end']['isAtStart'];}function Jt(_0x1ddc5f,_0xde7d7f,_0x583c62,_0x4a5609){const _0x3669b8=_0x14ab03=>!_0x14ab03['item']['is']('$textProxy')&&!_0x4a5609['isObject'](_0x14ab03['item']),_0x59eeef=_0x1ddc5f['start']['getLastMatchingPosition'](_0x3669b8),_0x5a4a98=_0x1ddc5f['end']['getLastMatchingPosition'](_0x3669b8,{'direction':'backward'});return(!_0x1ddc5f['start']['isEqual'](_0x59eeef)||!_0x1ddc5f['end']['isEqual'](_0x5a4a98))&&(_0x59eeef['isBefore'](_0x5a4a98)?_0x583c62['updateMarker'](_0xde7d7f,{'range':_0x583c62['createRange'](_0x59eeef,_0x5a4a98)}):_0x583c62['removeMarker'](_0xde7d7f),!0x0);}function Kt(_0x2dfb9f){return _0x248bd8(_0x2dfb9f);}function Ht(_0x25653f){const _0x2d8986=_0x25653f['start']['nodeAfter'];return _0x2d8986&&_0x2d8986['is']('element');}function qt(_0x5a9fa8,_0x29865a){return null==_0x5a9fa8['end']['nodeBefore']&&_0x5a9fa8['end']['parent']==_0x5a9fa8['start']['nodeAfter']?zt(_0x5a9fa8['start']['nodeAfter'],_0x29865a):_0x5a9fa8;}function zt(_0x122442,_0x38cc0f){const _0x2a1725=_0x38cc0f['schema']['isObject'](_0x122442)||_0x38cc0f['schema']['isSelectable'](_0x122442);return _0x38cc0f['createRange'](_0x38cc0f['createPositionAt'](_0x122442,'before'),_0x2a1725?_0x38cc0f['createPositionAfter'](_0x122442):_0x38cc0f['createPositionAt'](_0x122442,'end'));}function Wt(_0x36381a,_0x1fbe87,_0x4b104d,_0x14fc4c){return!!Qt(_0x36381a,_0x1fbe87)&&_0x4b104d['end']['isEqual'](_0x14fc4c['start']);}function Qt(_0xceb145,_0x43bfcf){if(!_0xceb145['_isDataLoaded']||!_0x43bfcf['_isDataLoaded'])return!0x1;const _0x3c967e=new Set(Object['keys'](_0xceb145['attributes'])),_0x3a34dc=new Set(Object['keys'](_0x43bfcf['attributes']));if(_0x3c967e['delete']('groupId'),_0x3a34dc['delete']('groupId'),0x0==_0x3c967e['size']&&0x0==_0x3a34dc['size'])return!0x0;if(_0x3c967e['size']!=_0x3a34dc['size'])return!0x1;const _0x15e221={..._0xceb145['attributes']},_0xcf3f7e={..._0x43bfcf['attributes']};return delete _0x15e221['groupId'],delete _0xcf3f7e['groupId'],JSON['stringify'](_0x15e221)==JSON['stringify'](_0xcf3f7e);}function Xt(_0x390aeb,_0x35ed51){const _0x114c15=Yt(_0x390aeb['attributes']),_0x4ee228=Yt(_0x35ed51);if(!_0x390aeb['_isDataLoaded'])return!0x1;for(const _0x12f529 of Object['keys'](_0x4ee228))if(!_0x1bd547(_0x114c15[_0x12f529],_0x4ee228[_0x12f529]))return!0x1;return!0x0;}function Yt(_0x2b3195){const _0x16fac3=Object['assign']({},_0x2b3195);return delete _0x16fac3['skipNestingCheck'],delete _0x16fac3['tablePasteChainId'],_0x16fac3;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x55f0de(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x45eaa2,_0x18cc63,_0xf19c73,_0x80bdc0){super(),this['model']=_0x18cc63,this['view']=_0xf19c73,this['commentThreadController']=_0x80bdc0,this['_editor']=_0x45eaa2,this['_acceptCommand']=_0x45eaa2['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x45eaa2['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5601a6,_0x42128e)=>_0x5601a6||_0x42128e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2699a2=>_0x2699a2&&this['_editor']['model']['canEditAt'](_0x18cc63['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3b2d0a=>_0x3b2d0a&&this['_editor']['model']['canEditAt'](_0x18cc63['getRanges']())),this['_pendingAction']=null,_0xf19c73['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xf19c73,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xf19c73,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xf19c73,'change:isDirty',()=>{_0xf19c73['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 _0x56d3d3=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x56d3d3);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x14eefd{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2984be,_0x5a8b8e,_0x53cd19,_0x14a621){super(_0x2984be),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x36005b(_0x2984be,c(_0x2984be,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5a8b8e['authoredAt']),this['bind']('authoredAt')['to'](_0x5a8b8e),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',_0x5a8b8e,'authoredAt',this,'descriptionParts',(_0x40d9c8,_0x47d14,_0x248bbc)=>{const _0xe26607=_0x248bbc['map'](_0x113e98=>ls(_0x113e98['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x40d9c8-0x1,_0x5a8b8e['author']['name'],_0x47d14?_0x14a621['formatDateTime'](_0x47d14):'',new DOMParser()['parseFromString'](_0xe26607,'text/html')['body']['textContent']]);}),this['focusables']=new _0x53758e(),this['focusTracker']=new _0x5392ce(),this['keystrokes']=new _0x37db49(),this['focusCycler']=new _0x627706({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xab8d9a=>_0xab8d9a['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5a8b8e,this['_localUser']=_0x53cd19,this['_config']=_0x14a621,_0x14a621['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3f0856(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3de2fb}=this['_config'];this['commentsListView']=new _0x3de2fb(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',_0x186daa=>_0x186daa+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x35d211,_0x242222)=>_0x35d211||!!_0x242222);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3f83a8}=this['_config'],_0x54e9dd=new _0x3f83a8(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xb1f86b=_0x54e9dd['commentInputView'];return _0x54e9dd['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xb1f86b,'value',(_0x1630f9,_0x4a21a7,_0x104057)=>!!_0x104057||_0x1630f9&&!_0x4a21a7),_0xb1f86b['on']('submit',(_0x25359c,_0x501684)=>{this['fire']('addComment',_0x501684),_0xb1f86b['editor']['setData']('');}),_0xb1f86b['on']('cancel',()=>this['focus']()),_0xb1f86b['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x54e9dd;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x114788,_0x2f4805,_0x53335c,_0x261429){super(_0x114788,_0x2f4805,_0x53335c,_0x261429),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x28c993=>_0x28c993&&_0x28c993[0x0]?_0x28c993[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3dc4e8,_0x2d36e8)=>{let _0x506507='';for(const _0xb044aa of _0x3dc4e8)_0x506507+='<p>'+ls(_0xb044aa['content'],_0xb044aa['color'])+'</p>';return _0x2d36e8?_0x506507:ti(_0x506507,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x261429['SuggestionView'](_0x114788,_0x2f4805,{'formatDateTime':_0x261429['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 _0x5ba0b6=this['bindTemplate'],_0x12bb48=[this['suggestionView']];return this['commentsListView']&&_0x12bb48['push'](this['commentsListView']),this['commentThreadInputView']&&_0x12bb48['push'](this['commentThreadInputView']),_0x12bb48['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5ba0b6['if']('isActive','ck-suggestion-wrapper--active'),_0x5ba0b6['to']('type',_0x47b08c=>'ck-suggestion-'+_0x47b08c),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':_0x5ba0b6['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x12bb48};}['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 _0x14eefd{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x31fb68,_0x31dfaf,_0x469539){super(_0x31fb68),this['_model']=_0x31dfaf,this['_config']=_0x469539,this['set']('description',''),this['bind']('authoredAt')['to'](_0x31dfaf),this['acceptButton']=this['_createButton'](c(_0x31fb68,'Accept\x20suggestion'),_0x1db0e4,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x31fb68,'Discard\x20suggestion'),_0x587379,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2098f0(_0x31fb68,_0x31dfaf['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x53758e([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5392ce(),this['keystrokes']=new _0x37db49(),this['focusCycler']=new _0x627706({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x387943=>_0x387943['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2ab1a3=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2ab1a3['innerHTML']=this['description'],this['on']('change:description',(_0x290b2d,_0x4c2734,_0x5460af)=>{_0x2ab1a3['innerHTML']=_0x5460af;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3a2144=this['bindTemplate'],_0x342fa4=[{'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':_0x3a2144['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3a2144['to']('authoredAt',_0x3e6133=>this['_config']['formatDateTime'](_0x3e6133))}]}]},{'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']&&_0x342fa4['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':_0x342fa4}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x183e5b,_0x16e1e8,_0x5ab7dc,_0x24f4ae,_0x256518){const _0x5e4060=new _0xaa86d9(this['locale']);return _0x5e4060['set']({'label':_0x183e5b,'icon':_0x16e1e8,'tooltip':!0x0,'tooltipPosition':_0x256518}),_0x5e4060['extendTemplate']({'attributes':{'class':_0x5ab7dc}}),_0x5e4060['on']('execute',()=>{this['fire'](_0x24f4ae,this['_model']['id']);}),_0x5e4060;}['_setupKeyboardNavigation'](){const _0x581cb8=this['element'];this['keystrokes']['listenTo'](_0x581cb8);for(const _0xb7fa0e of this['focusables'])this['focusTracker']['add'](_0xb7fa0e['element']),this['keystrokes']['listenTo'](_0xb7fa0e['element']);this['keystrokes']['set']('enter',(_0xbf7073,_0x3a5052)=>{_0x581cb8===_0xbf7073['target']&&(this['focusCycler']['focusFirst'](),_0x3a5052());}),this['keystrokes']['set']('esc',(_0x5861f7,_0x47e3c6)=>{_0x581cb8!==_0x5861f7['target']&&(this['focus'](),_0x47e3c6());});}}class d extends _0x51b88f{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x122585,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x53d0e6){super(_0x53d0e6),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x25d64a=this['editor']['config'];_0x25d64a['define']('trackChanges.SuggestionThreadView',fe),_0x25d64a['define']('trackChanges.SuggestionView',we),_0x25d64a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x25d64a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1f2239,_0x211c40){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xb6c54d,_0x510e2e]of this['_handleControllerBuffer']){const _0x1b492d=this['_suggestionToController']['has'](_0xb6c54d);_0x1b492d||_0x510e2e?_0x1b492d&&_0x510e2e&&this['_destroyController'](_0xb6c54d):this['_initializeController'](_0xb6c54d);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1f2239,_0x211c40);}['init'](){const _0x1e0e1c=this['editor'],_0x897851=_0x1e0e1c['plugins']['get']('TrackChangesEditing'),_0x5cef48=_0x1e0e1c['plugins']['get']('Annotations'),_0x6f44=_0x1e0e1c['plugins']['get']('EditorAnnotations'),_0x35f59e=_0x1e0e1c['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x6f44['addSourceCollector'](()=>{const _0x672618=[];for(const [_0x54fbd9,_0x354be8]of Array['from'](this['_suggestionToController'])){const _0x571db1=_0x54fbd9['getAllAdjacentSuggestions'](),_0x33c57c=[];for(const _0x4b6dd3 of _0x571db1){if(!_0x4b6dd3['isInContent'])continue;if(_0x4b6dd3['isMultiRange']){_0x33c57c['push'](..._0x4b6dd3['getRanges']());continue;}const _0x6f4934=_0x4b6dd3['getFirstRange']();if(_0x33c57c['length']>0x0){const _0x15f347=_0x33c57c[0x0]['getJoined'](_0x6f4934);if(_0x15f347){_0x33c57c[0x0]=_0x15f347;continue;}}_0x33c57c['push'](_0x6f4934);}_0x672618['push']([_0x354be8['view'],_0x33c57c]);}return _0x672618;}),this['listenTo'](_0x897851,'suggestionLoaded',(_0x2b16e6,_0x5a61f6)=>{this['listenTo'](_0x5a61f6,'change:previous',(_0x353fad,_0x3912bd,_0x14440e,_0xd19e41)=>{_0x5a61f6['isInContent']&&(null==_0x14440e?(this['_updateController'](_0xd19e41['head']),this['_handleSuggestionControllerDelayed'](_0x5a61f6,!0x1)):(this['_updateController'](_0x14440e['head']),null==_0xd19e41&&this['_handleSuggestionControllerDelayed'](_0x5a61f6,!0x0)));}),null!==_0x5a61f6['previous']?this['_updateController'](_0x5a61f6['head']):this['_handleSuggestionControllerDelayed'](_0x5a61f6,!0x1);}),this['listenTo'](_0x897851,'suggestionUnloaded',(_0x36b4db,_0x32a9a1,_0x23a762)=>{this['stopListening'](_0x32a9a1,'change:previous'),this['_handleControllerBuffer']['delete'](_0x32a9a1),this['_suggestionToController']['has'](_0x32a9a1)&&this['_destroyController'](_0x32a9a1),_0x23a762&&this['_updateController'](_0x23a762['head']);}),this['listenTo'](_0x897851,'suggestionChanged',(_0x3d5b00,_0x5bbabe)=>{this['_updateController'](_0x5bbabe);}),this['listenTo'](_0x5cef48,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x35f59e,'addComment',(_0x5b3529,{threadId:_0x2c9796,isFromAdapter:_0x49c27c})=>{if(_0x49c27c||!_0x897851['hasSuggestion'](_0x2c9796))return;const _0x24cc2e=_0x897851['getSuggestion'](_0x2c9796);this['_suggestionToController']['get'](_0x24cc2e)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5b02f8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1fc2f1;for(const _0x288c25 in _0x5b02f8){const _0x1e734d=_0x288c25,_0x5cfce5=_0x5b02f8[_0x1e734d];if('trackChangesLicenseKeyValid'==_0x5cfce5||'trackChangesLicenseKeyInvalid'==_0x5cfce5||'trackChangesLicenseKeyExpired'==_0x5cfce5||'trackChangesLicenseKeyDomainLimit'==_0x5cfce5||'trackChangesLicenseKeyNotAllowed'==_0x5cfce5||'trackChangesLicenseKeyEvaluationLimit'==_0x5cfce5||'trackChangesLicenseKeyTrialLimit'==_0x5cfce5||'trackChangesLicenseKeyUsageLimit'==_0x5cfce5){delete _0x5b02f8[_0x1e734d],_0x1fc2f1=_0x5cfce5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1fc2f1&&_0x5b02f8['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1fc2f1&&_0x5b02f8['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1fc2f1&&_0x5b02f8['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1fc2f1&&_0x5b02f8['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1fc2f1&&_0x5b02f8['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x1fc2f1&&_0x5b02f8['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1fc2f1&&_0x5b02f8['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x932940=this['editor']['plugins']['get']('Annotations'),_0x41beed=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1272b2=Array['from'](_0x932940['activeAnnotations'],_0x245f94=>_0x245f94['innerView'])['filter'](_0x2586f5=>this['_viewToController']['has'](_0x2586f5)),_0xf4af58=[];for(const _0x2d3b85 of _0x1272b2){const _0x2c1eaf=this['_viewToController']['get'](_0x2d3b85)['model']['getAllAdjacentSuggestions']();_0xf4af58['push'](..._0x2c1eaf['reduce']((_0x3030d9,_0x4dbbcd)=>[..._0x3030d9,..._0x4dbbcd['getMarkerNames']()],[]));}_0x41beed['activeMarkers']=_0xf4af58;}['_addUIComponentsToFactory'](){const _0x162a6d=this['editor'],_0x710da6=_0x162a6d['locale'],_0x131ff0=c(_0x710da6,'Track\x20changes'),_0x3dcc8b=new _0xef626d([{'type':'switchbutton','model':new _0x311582({'withText':!0x0,'isToggleable':!0x0,'label':_0x131ff0,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x311582({'withText':!0x0,'label':c(_0x710da6,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x311582({'withText':!0x0,'label':c(_0x710da6,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x311582({'withText':!0x0,'label':c(_0x710da6,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x311582({'withText':!0x0,'label':c(_0x710da6,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x162a6d['plugins']['has']('TrackChangesPreview')&&_0x3dcc8b['addMany']([{'type':'separator'},{'type':'button','model':new _0x311582({'withText':!0x0,'label':c(_0x710da6,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x46495c of _0x3dcc8b)if(ke(_0x46495c)){const _0x1a369f=_0x162a6d['commands']['get'](_0x46495c['model']['commandName']);_0x46495c['model']['bind']('isOn','isEnabled')['to'](_0x1a369f,'value','isEnabled');}_0x162a6d['ui']['componentFactory']['add']('trackChanges',_0x24f023=>this['_createToolbarButton'](_0x24f023,_0x3dcc8b,_0x131ff0)),_0x162a6d['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4bc426=>this['_createMenuBarMenu'](_0x4bc426,_0x3dcc8b,_0x131ff0));}['_createToolbarButton'](_0x5cd489,_0x3ff189,_0x14e9bc){const _0x18a6c4=_0x599048(_0x5cd489,_0x404227),_0x83b7cc=this['editor']['commands']['get']('trackChanges');_0x18a6c4['buttonView']['set']({'tooltip':_0x14e9bc,'label':_0x14e9bc,'icon':_0x4c3e2c}),_0x18a6c4['buttonView']['bind']('isOn')['to'](_0x83b7cc,'value'),_0x18a6c4['buttonView']['on']('execute',()=>{_0x83b7cc['execute'](),this['editor']['editing']['view']['focus']();}),_0x2bc843(_0x18a6c4,_0x3ff189,{'role':'menu'});const _0x4a3b84=[];for(const _0x16ed8c of _0x3ff189)ke(_0x16ed8c)&&_0x4a3b84['push'](this['editor']['commands']['get'](_0x16ed8c['model']['commandName']));const _0x358141=_0x18a6c4['buttonView'];return _0x358141['actionView']['unbind']('isEnabled'),_0x358141['arrowView']['unbind']('isEnabled'),_0x358141['actionView']['bind']('isEnabled')['to'](_0x83b7cc,'isEnabled'),_0x358141['arrowView']['bind']('isEnabled')['toMany'](_0x4a3b84,'isEnabled',(..._0x4ed93e)=>_0x4ed93e['some'](_0x3a70d3=>_0x3a70d3)),_0x18a6c4['on']('execute',_0x1dd015=>{this['editor']['execute'](_0x1dd015['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x18a6c4;}['_createMenuBarMenu'](_0x4730c2,_0x3ceb27,_0x4dd004){const _0x2cc4c4=new _0x24f759(_0x4730c2),_0x20e70a=this['editor']['commands']['get']('trackChanges');_0x2cc4c4['buttonView']['set']({'label':_0x4dd004,'icon':_0x4c3e2c});const _0x1d562e=new _0x5b5e20(_0x4730c2);for(const _0x59f375 of _0x3ceb27){if('separator'==_0x59f375['type']){_0x1d562e['items']['add'](new _0x3aff66(_0x4730c2));continue;}const _0x13387c=new _0x254a95(_0x4730c2,_0x2cc4c4),_0x519dac=new _0x31a8c8(_0x4730c2),_0x206173=_0x59f375['model'];_0x519dac['bind'](...Object['keys'](_0x206173))['to'](_0x206173),_0x519dac['delegate']('execute')['to'](_0x2cc4c4),_0x519dac['on']('execute',()=>{this['editor']['execute'](_0x206173['commandName']),this['editor']['editing']['view']['focus']();}),_0x13387c['children']['add'](_0x519dac),_0x1d562e['items']['add'](_0x13387c);}return _0x2cc4c4['bind']('isEnabled')['to'](_0x20e70a,'isEnabled'),_0x2cc4c4['panelView']['children']['add'](_0x1d562e),_0x2cc4c4;}['_initializeController'](_0x9885e0){const _0x4ce2cf=this['editor'],_0x42aac1=_0x4ce2cf['config'],_0x3820b3=_0x4ce2cf['plugins']['get']('Annotations'),_0x78aaee=_0x4ce2cf['plugins']['get']('CommentsRepository'),_0xae5875=_0x4ce2cf['plugins']['get']('EditorAnnotations'),_0x16b33a=_0x4ce2cf['plugins']['get'](_0x122585)['me'],_0x4a1113=_0x42aac1['get']('trackChanges')['SuggestionThreadView'],_0x1a46df=_0x42aac1['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x53f357,CommentThreadInputView:_0x55a49f}=_0x4ce2cf['plugins']['get']('CommentsUI');let _0x34d12,_0xb06b0e,_0x1d9d5c;this['_annotationViews']['has'](_0x9885e0['id'])?(_0xb06b0e=this['_annotationViews']['get'](_0x9885e0['id']),_0x34d12=_0xb06b0e['mainView']):(_0x34d12=new _0x4a1113(_0x4ce2cf['locale'],_0x9885e0,_0x16b33a,{'disableComments':this['_disableComments'],'editorConfig':{..._0x42aac1['get']('comments.editorConfig'),'licenseKey':_0x42aac1['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x42aac1['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x42aac1['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x42aac1['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x113b40(_0x42aac1['get']('locale'),_0x4ce2cf['locale']),'CommentView':_0x42aac1['get']('comments')['CommentView'],'CommentsListView':_0x53f357,'CommentThreadInputView':_0x55a49f,'SuggestionView':_0x1a46df}),_0x34d12['suggestionView']['acceptButton']['on']('execute',()=>{_0x4ce2cf['editing']['view']['focus']();}),_0x34d12['suggestionView']['discardButton']['on']('execute',()=>{_0x4ce2cf['editing']['view']['focus']();}),_0xb06b0e=_0x3820b3['createAnnotationView'](this['editor']['locale'],_0x34d12),_0xb06b0e['bind']('isDirty')['to'](_0x34d12,'isDirty'),_0xb06b0e['bind']('length')['to'](_0x34d12),_0xb06b0e['bind']('type')['to'](_0x34d12,'type',_0x335b61=>'suggestion-'+_0x335b61),_0x34d12['on']('escape',()=>{_0x1d9d5c['fire']('escape');}),this['_annotationViews']['set'](_0x9885e0['id'],_0xb06b0e));const _0x125437=_0x78aaee['createCommentThreadController'](_0x9885e0['commentThread'],_0x34d12),_0x53a250=new pe(_0x4ce2cf,_0x9885e0,_0x34d12,_0x125437),_0x22c2c3=_0x9885e0['getAllAdjacentSuggestions']()['filter'](_0x3c0934=>_0x3c0934['isInContent']);_0x34d12['descriptionParts']=_0x4ce2cf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x22c2c3),this['_suggestionToController']['set'](_0x9885e0,_0x53a250),this['_viewToController']['set'](_0x34d12,_0x53a250),_0x1d9d5c=_0x3820b3['createAnnotation']({'view':_0xb06b0e,'target':()=>{const _0x4c31a0=[],_0x7be67a=_0x9885e0['getAllAdjacentSuggestions']()['filter'](_0x2a4afc=>_0x2a4afc['isInContent']);for(const _0x47cbc5 of _0x7be67a)_0x4c31a0['push'](..._0x47cbc5['getMarkers']());return _0x301d97(_0x4ce2cf['editing'],_0x4c31a0);},'type':()=>'suggestion-'+_0x53a250['view']['type']}),_0x78aaee['_bindAnnotationToEditors'](_0x34d12,_0x1d9d5c),_0x3820b3['add'](_0x1d9d5c),_0xae5875['registerAnnotation'](_0x1d9d5c);}['_destroyController'](_0x4cda67){const _0x3eeb63=this['editor']['plugins']['get']('CommentsRepository'),_0x5d60ff=this['editor']['plugins']['get']('Annotations'),_0x463cda=this['_suggestionToController']['get'](_0x4cda67),_0x35bc6c=_0x463cda['view'],_0x481cb6=_0x5d60ff['getByInnerView'](_0x35bc6c);_0x3eeb63['_unbindEditors'](_0x35bc6c),_0x481cb6&&_0x5d60ff['remove'](_0x481cb6),this['_suggestionToController']['delete'](_0x4cda67),this['_viewToController']['delete'](_0x35bc6c),_0x463cda['destroy']();}['_updateController'](_0x24f7f9){if(!_0x24f7f9['isInContent']||!this['_suggestionToController']['has'](_0x24f7f9))return;const _0x160199=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59da83=this['_suggestionToController']['get'](_0x24f7f9),_0x274230=_0x24f7f9['getAllAdjacentSuggestions']();_0x59da83['view']['descriptionParts']=_0x160199['descriptionFactory']['getDescriptions'](_0x274230);}['destroy'](){for(const _0x860aa7 of this['_suggestionToController']['keys']())this['_destroyController'](_0x860aa7);for(const _0x3567f2 of this['_annotationViews']['values']())_0x3567f2['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x3ee73c){return'model'in _0x3ee73c;}class k extends _0x51b88f{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x38ccd2){this['editor']['plugins']['get'](p)['adapter']=_0x38ccd2;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x22e153){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x22e153);}['getSuggestions']({skipNotAttached:_0x3b889c=!0x1,toJSON:_0x33e549=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3b889c,'toJSON':_0x33e549});}['getSuggestion'](_0x570743){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x570743);}}const w=['Pagination'];class T extends _0x51b88f{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x486f7b=this['editor'];if(_0x486f7b['config']['define']('trackChangesData.editorCreator',_0x30fec9=>{const _0x5e5fcc=_0x486f7b['model']['document']['getRootNames']()['reduce']((_0x7c387d,_0x17d90c)=>(_0x7c387d[_0x17d90c]='',_0x7c387d),{});return _0x486f7b['constructor']['create'](_0x5e5fcc,_0x30fec9);}),'function'!=typeof _0x486f7b['config']['get']('trackChangesData')['editorCreator'])throw new _0x463d5f('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2ce98b){return N(this['editor'],!0x0,_0x2ce98b);}['getDataWithDiscardedSuggestions'](_0x2cbaa6){return N(this['editor'],!0x1,_0x2cbaa6);}}class D extends _0x51b88f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x465c4d){function _0x5405e6(_0x34ba75){return _0x34ba75['map'](_0x1b9a25=>String['fromCharCode'](_0x1b9a25))['join']('');}super(_0x465c4d),this['result']='end',_0x465c4d[_0x5405e6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5405e6([0x76,0x69,0x65,0x77])][_0x5405e6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5405e6([0x61,0x75,0x74,0x6f]),_0x465c4d[_0x5405e6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5405e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5405e6([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5405e6([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5405e6([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 Ge(_0x4ba8a5){return void 0x0!==_0x4ba8a5['getRootsAttributes'];}async function N(_0x57cd95,_0x3f97c8,_0x4112b4){const _0x4e88e9=_0x43abcc(_0x57cd95,w);_0x4e88e9['plugins']['push'](p,D),_0x4e88e9['rootsAttributes']=Ge(_0x57cd95)?_0x57cd95['getRootsAttributes']():void 0x0;const _0x184cd8=document['createDocumentFragment'](),_0x424e0b=_0x57cd95['config']['get']('trackChangesData')['editorCreator'],_0xea3627=await _0x424e0b(_0x4e88e9,()=>function(_0x285d29){const _0x52edde=document['createElement']('div');return _0x285d29['appendChild'](_0x52edde),_0x52edde;}(_0x184cd8));!function(_0x340616,_0x4b7b55){const _0x404f05=_0x340616['model']['document']['getRootNames']()['reduce']((_0x1dc514,_0x44fc56)=>(_0x1dc514[_0x44fc56]=_0x340616['data']['get']({'rootName':_0x44fc56}),_0x1dc514),{}),_0x56edc8=_0x340616['plugins']['get']('Users')['users']['map'](_0x5b7ad0=>({'id':_0x5b7ad0['id'],'name':_0x5b7ad0['name']})),_0x486766=_0x340616['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1e0759=_0x340616['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1ceb78=_0x4b7b55['plugins']['get']('Users'),_0xd862aa=_0x4b7b55['plugins']['get']('TrackChangesEditing'),_0x18cb6d=_0x4b7b55['plugins']['get']('CommentsRepository');for(const _0xfc6df9 of _0x18cb6d['getCommentThreads']())_0xfc6df9['remove']();for(const _0x25ac2d of _0x56edc8)_0x1ceb78['getUser'](_0x25ac2d['id'])||_0x1ceb78['addUser'](_0x25ac2d);_0x1ceb78['me']||_0x1ceb78['useAnonymousUser']();for(const _0x25c6ce of _0x1e0759)_0x18cb6d['addCommentThread'](_0x25c6ce);for(const _0x3e542b of _0x486766)_0xd862aa['addSuggestionData'](_0x3e542b);_0x4b7b55['data']['set'](_0x404f05);}(_0x57cd95,_0xea3627),_0xea3627['execute'](_0x3f97c8?'acceptAllSuggestions':'discardAllSuggestions');const _0x4695f=Ge(_0xea3627)?_0xea3627['getFullData'](_0x4112b4):_0xea3627['data']['get'](_0x4112b4);return await _0xea3627['destroy'](),_0x4695f;}class Me extends _0x14eefd{['options'];constructor(_0x52139a,_0x205909){super(_0x52139a),this['options']=_0x205909,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'](_0x425561,_0x5211ae){if(!this['element'])return;const _0x20794a=[];for(const [_0x2a0563,_0x3f95a4]of _0x425561){const _0x1bc74c=document['createElement']('div');_0x1bc74c['setAttribute']('data-ck-root-name',_0x2a0563),_0x1bc74c['className']=_0x3f95a4['classes']+'\x20ck-track-changes-preview__root-container',_0x1bc74c['innerHTML']=_0x3f95a4['content'],_0x20794a['push'](_0x1bc74c);}_0x5211ae(this['element'],_0x20794a),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x4ca0ae{constructor(_0x54801b){super(_0x54801b),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x44efc9=this['editor'],_0x2b48f7=_0x44efc9['locale'],_0x23bd19=_0x44efc9['plugins']['get']('Dialog');let _0x250f73;const _0x2903c9=function(_0x28350c){const _0x3f0dea={};if('editables'in _0x28350c['ui']['view']){for(const [_0x2b623b,_0x3bc58e]of Object['entries'](_0x28350c['ui']['view']['editables']))_0x3f0dea[_0x2b623b]=_0x3bc58e['element'];}else _0x3f0dea[_0x28350c['model']['document']['getRootNames']()[0x0]]=_0x28350c['ui']['view']['editable']['element'];return _0x3f0dea;}(_0x44efc9),_0x58a799=function(_0x2f6323){let _0x5988e3=0x0;for(const _0x14af84 of Object['values'](_0x2f6323))_0x5988e3=Math['max'](_0x5988e3,_0x14af84['getBoundingClientRect']()['width']);let _0x5ce8ef=0x0;for(const _0x1c4a3d of Object['values'](_0x2f6323))_0x5ce8ef+=_0x1c4a3d['getBoundingClientRect']()['height'];const _0x1e5da3=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x5df00c=Math['min'](_0x5ce8ef,_0x1e5da3);return{'width':_0x5988e3,'height':_0x5df00c};}(_0x2903c9);_0x23bd19['show']({'id':'finalContentPreview','title':c(_0x2b48f7,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x2b48f7,{'dialogRects':_0x58a799}),'onHide':()=>{_0x250f73['detachFromDom']();},'onShow':()=>{_0x44efc9['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4a49f3=>{const _0x32d893=this['_standarizeRootsData'](_0x4a49f3,_0x44efc9,_0x2903c9);_0x23bd19['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x32d893,_0x44efc9['config']['get']('trackChanges.preview.renderFunction'));}),_0x250f73=new _0x1c6ac0(_0x2b48f7,[_0x23bd19['view']]),_0x250f73['attachToDom'](),_0x250f73['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x44efc9['once']('destroy',()=>{_0x250f73['detachFromDom']();});const _0x3c2c76=_0x23bd19['view']['headerView']['class'];_0x23bd19['view']['headerView']['class']=_0x3c2c76?_0x3c2c76+'\x20ck-reset_all':'ck-reset_all',_0x23bd19['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x23bd19['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x56b31d=this['editor']['plugins']['get']('MergeFieldsEditing'),_0xa2bc58=_0x56b31d['previewMode'],_0xd81973={};if('$labels'===_0xa2bc58){for(const _0x1c32c6 of _0x56b31d['getMergeFieldsIds']())_0xd81973[_0x1c32c6]=_0x56b31d['getLabel'](_0x1c32c6)||_0x1c32c6;}else{const _0x575669='$defaultValues'===_0xa2bc58?_0x56b31d['getDefaultValues']():_0x56b31d['getDataSetValues'](_0xa2bc58,!0x0);for(const _0x5dfa89 of Object['entries'](_0x575669)){const [_0x21d54c,_0x190054]=_0x5dfa89;_0xd81973[_0x21d54c]=null!==_0x190054?_0x190054:_0x56b31d['getLabel'](_0x21d54c)||_0x21d54c;}}return{'mergeFieldsData':_0xd81973};}['_standarizeRootsData'](_0x57abfe,_0x5d5fc7,_0x5892a3){let _0x964a82;if('string'==typeof _0x57abfe){const _0x546d4b=_0x5d5fc7['model']['document']['getRootNames']()[0x0];_0x964a82={[_0x546d4b]:_0x57abfe};}else _0x964a82=_0x57abfe;const _0x52d36c=this['_fixMediaEmbeds'](_0x964a82,_0x5d5fc7),_0x36327f=function(_0x77df32,_0x497e78){for(const [_0x22dfaf,_0x5e703a]of _0x77df32)_0x5e703a['classes']=_0x497e78[_0x22dfaf]['classList']['value']['replace']('ck-focused','');return _0x77df32;}(this['_sortRoots'](_0x5d5fc7)['reduce']((_0x47b6a9,_0x21a623)=>(_0x47b6a9['push']([_0x21a623,{'content':_0x52d36c[_0x21a623],'classes':''}]),_0x47b6a9),[]),_0x5892a3);return _0x36327f;}['_fixMediaEmbeds'](_0x198d5b,_0x5339c9){if(!_0x5339c9['plugins']['has']('MediaEmbedEditing'))return _0x198d5b;const _0x215f78=_0x5339c9['plugins']['get']('MediaEmbedEditing');for(const [_0x272432,_0xb832d0]of Object['entries'](_0x198d5b)){const _0xb0e2ee=document['createElement']('div');_0xb0e2ee['innerHTML']=_0xb832d0,(_0xb0e2ee['querySelectorAll']('figure.media')['forEach'](_0x5d7528=>{const _0x38bd17=_0x5d7528['querySelector']('oembed');if(_0x38bd17){const _0xe481d9=_0x38bd17['getAttribute']('url');if(_0xe481d9){const _0x1e4b89=_0x215f78['registry']['getMediaViewElement'](new _0x4c4a9a(_0x5339c9['editing']['view']['document']),_0xe481d9,{'elementName':'','renderForEditingView':!0x0}),_0x18dc84=document['createElement']('div');_0x18dc84['classList']['add']('ck-media__wrapper'),_0x1e4b89['render'](_0x18dc84,_0x5339c9['editing']['view']['domConverter']),_0x38bd17['replaceWith'](_0x18dc84);}}}),_0x198d5b[_0x272432]=_0xb0e2ee['innerHTML']);}return _0x198d5b;}['_sortRoots'](_0x3ac182){if(!function(_0x1afaac){return void 0x0!==_0x1afaac['getRootsAttributes'];}(_0x3ac182))return _0x3ac182['model']['document']['getRootNames']();const _0xe04de=[],_0x4eda4=new Map();for(const _0x593bf2 of _0x3ac182['model']['document']['getRootNames']()){const _0x52fad7=_0x3ac182['editing']['view']['getDomRoot'](_0x593bf2)['getClientRects']()['item'](0x0);_0xe04de['push'](_0x593bf2),_0x4eda4['set'](_0x593bf2,_0x52fad7);}return _0xe04de['sort']((_0xb238b0,_0x5387a8)=>{const _0x2078da=_0x4eda4['get'](_0xb238b0),_0x24e0f3=_0x4eda4['get'](_0x5387a8);return _0x2078da['y']-_0x24e0f3['y']||_0x2078da['x']-_0x24e0f3['x'];}),_0xe04de;}}class te extends _0x51b88f{static get['requires'](){return[T,_0x3ce0b3];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x436450){super(_0x436450),_0x436450['commands']['add']('previewFinalContent',new re(this['editor'])),_0x436450['config']['define']('trackChanges.preview.renderFunction',(_0x528912,_0x3c5be8)=>{for(const _0xca77f3 of _0x3c5be8)_0x528912['appendChild'](_0xca77f3);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};