@ckeditor/ckeditor5-track-changes 48.8.1-alpha.1 → 48.8.1-alpha.3

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -4
  2. package/package.json +25 -25
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x468faf,Plugin as _0x5a485e,PendingActions as _0x23777d}from'@ckeditor/ckeditor5-core/dist/index.js';import{CommentsRepository as _0x112fe0,Annotations as _0xd384be,EditorAnnotations as _0x234e7e,Comments as _0x4f8bc7}from'@ckeditor/ckeditor5-comments/dist/index.js';import{CKEditorError as _0xa0bdff,ObservableMixin as _0x1b398d,uid as _0x272311,priorities as _0x3bd827,insertToPriorityArray as _0x1532aa,logWarning as _0x232ae8,getEnvKeystrokeText as _0x86b319,FocusTracker as _0x59dd35,KeystrokeHandler as _0x490a6e,Collection as _0x29be2c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x288cb6,IconCancel as _0xef5af9,IconTrackChanges as _0x3c5a70}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x4d4289,View as _0x1febdd,ViewCollection as _0x385980,FocusCycler as _0x4b765b,UIModel as _0x886259,createDropdown as _0x21ae11,SplitButtonView as _0x5adb68,addListToDropdown as _0x40f11c,MenuBarMenuView as _0x2eb164,MenuBarMenuListView as _0x39fe7a,ListSeparatorView as _0x577f57,MenuBarMenuListItemView as _0x47c0d3,MenuBarMenuListItemButtonView as _0x1b2e37,BodyCollection as _0x42698c,Dialog as _0x36958a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{splitSuggestionMarkerName as _0x5cc320,SuggestionsConversion as _0x31f2dc,Users as _0x41f7d1,DocumentCompare as _0x228d70,fixElementSuggestionRange as _0x1b2bbe,hashObject as _0x3caef6,surroundingMarkersDetector as _0x3ac1bf,FOCUS_ANNOTATION_KEYSTROKE as _0x1a2fa4,AriaDescriptionView as _0x2cca85,setupThreadKeyboardNavigation as _0x3e4ab7,trimHtml as _0x135ae5,UserView as _0x346b02,LateFocusButtonView as _0xdf261d,getDateTimeFormatter as _0x403978,getAllMarkersDomElementsSorted as _0xe1a4e5,sanitizeEditorConfig as _0x274be0}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0x100e3b,ModelLiveRange as _0x53b34c,ModelLivePosition as tt,ViewDowncastWriter as et}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as nt,set as it,isEqual as st,unset as rt,omit as ot}from'es-toolkit/compat';import{Delete as at,Input as ct}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as lt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as ut}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class TrackChangesCommand extends _0x468faf{['_enabledCommands'];constructor(_0xa81c24,_0x434d3d){super(_0xa81c24),this['_enabledCommands']=_0x434d3d,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 _0xdf8a36 of this['editor']['commands']['commands']())_0xdf8a36['affectsData']&&!this['_enabledCommands']['has'](_0xdf8a36)&&_0xdf8a36['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2f3ea3 of this['editor']['commands']['commands']())_0x2f3ea3['affectsData']&&!this['_enabledCommands']['has'](_0x2f3ea3)&&_0x2f3ea3['clearForceDisabled']('TrackChangesCommand');}}class AcceptSuggestionCommand extends _0x468faf{['_suggestions'];constructor(_0x2ade55,_0x24b4ad){super(_0x2ade55),this['_suggestions']=_0x24b4ad,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2f2318){const _0x314f97=this['_suggestions']['get'](_0x2f2318);if(!_0x314f97)throw new _0xa0bdff('track-changes-accept-suggestion-not-found',this);const _0x348876=_0x314f97['getRanges']();this['editor']['model']['canEditAt'](_0x348876)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x314f97);}}class DiscardSuggestionCommand extends _0x468faf{['_suggestions'];constructor(_0x53b916,_0x3144e4){super(_0x53b916),this['_suggestions']=_0x3144e4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x57f9f4){const _0x2cc03d=this['_suggestions']['get'](_0x57f9f4);if(!_0x2cc03d)throw new _0xa0bdff('track-changes-discard-suggestion-not-found',this);const _0x1ebcee=_0x2cc03d['getRanges']();this['editor']['model']['canEditAt'](_0x1ebcee)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2cc03d);}}function ht(_0xa76643,_0x57f7b4){let _0x46f3ed='';return _0x46f3ed+=_0xa76643['split']('*')['map']((_0x42eb6f,_0x3a84fb)=>_0x3a84fb%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+gt(_0x42eb6f)+'</span>':gt(_0x42eb6f))['join'](''),_0x57f7b4&&(_0x46f3ed+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x57f7b4['value']+'\x22\x20title=\x22'+_0x57f7b4['title']+'\x22></span>'),_0x46f3ed;}function gt(_0x4634ab){const _0x388c73=document['createElement']('span');return _0x388c73['innerText']=_0x4634ab,_0x388c73['innerHTML'];}function dt(_0x424a6d){return _0x424a6d['sort']((_0x4cd90d,_0x24b00e)=>'attribute'===_0x4cd90d['type']&&'attribute'!==_0x24b00e['type']?-0x1:'attribute'!==_0x4cd90d['type']&&'attribute'===_0x24b00e['type']?0x1:'deletion'==_0x4cd90d['type']&&'deletion'!=_0x24b00e['type']?-0x1:'deletion'!=_0x4cd90d['type']&&'deletion'==_0x24b00e['type']?0x1:0x0);}function ft(_0x13fcef,_0x11d5d4){let _0x4dbce0,_0xb64c7c=0x0;const _0x5c4b2b=[],_0x10bf5d=_0x11d5d4['schema'];for(;_0xb64c7c<_0x13fcef['length'];){const _0x156a06=_0x13fcef[_0xb64c7c],_0x5c58f2=_0x13fcef[_0xb64c7c+0x1];_0x4dbce0||(_0x4dbce0=_0x11d5d4['createPositionBefore'](_0x156a06)),mt(_0x11d5d4,_0x156a06,_0x5c58f2)||(_0x5c4b2b['push'](_0x11d5d4['createRange'](_0x4dbce0,_0x10bf5d['isObject'](_0x156a06)?_0x11d5d4['createPositionAfter'](_0x156a06):_0x11d5d4['createPositionAt'](_0x156a06,'end'))),_0x4dbce0=null),_0xb64c7c++;}return _0x5c4b2b;}function mt(_0x3815fb,_0x22b281,_0x332c8c){if(!_0x332c8c)return!0x1;const _0x2c60d9=_0x3815fb['createPositionAfter'](_0x22b281),_0x437d70=_0x3815fb['createPositionBefore'](_0x332c8c);return _0x2c60d9['isTouching'](_0x437d70);}function Et(_0x4917cb,_0x630300,_0x45a133){for(;_0x45a133['length'];){const _0x52e6b7=_0x45a133['splice'](0x0,0x64);_0x4917cb['change'](()=>{for(const _0x36ba70 of _0x52e6b7)_0x36ba70['isInContent']&&_0x630300['execute'](_0x36ba70['id']);});}}class ExecuteOnAllSuggestionsCommand extends _0x468faf{['_command'];['_suggestions'];constructor(_0x3df710,_0x3e51b5,_0x203bc1){super(_0x3df710),this['_command']=_0x3e51b5,this['_suggestions']=_0x203bc1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x17e607=Array['from'](this['_suggestions']['values']())['some'](_0x577055=>_0x577055['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x17e607;}['execute'](){const _0x2f0c51=dt(Array['from'](this['_suggestions']['values']()));for(const _0x3d4c3d of _0x2f0c51){const _0x2e5208=_0x3d4c3d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2e5208))return;}Et(this['editor']['model'],this['_command'],_0x2f0c51);}}class ExecuteOnSelectedSuggestionsCommand extends _0x468faf{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x14afe6,_0x304d1c,_0x328a8e){super(_0x14afe6),this['_command']=_0x304d1c,this['_suggestions']=_0x328a8e,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x197056=this['editor']['model']['document']['selection'],_0x236ad5=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5aba3c,_0x465ac3){const _0x4dba72=Array['from'](_0x5aba3c['getRanges']()),_0x406a0c=new Set();for(const _0x31b549 of _0x465ac3)if(_0x31b549['isInContent']){for(const _0x3e89e2 of _0x4dba72)for(const _0x1a7144 of _0x31b549['getRanges']())(_0x3e89e2['isIntersecting'](_0x1a7144)||_0x5aba3c['isCollapsed']&&!_0x31b549['isMultiRange']&&_0x31b549['next']&&_0x1a7144['end']['isTouching'](_0x3e89e2['start']))&&_0x406a0c['add'](_0x31b549);}return _0x406a0c;}(_0x197056,_0x236ad5),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x457e42=dt(Array['from'](this['_selectedSuggestions']));for(const _0x3a100d of _0x457e42){const _0x2871b9=_0x3a100d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2871b9))return;}Et(this['editor']['model'],this['_command'],_0x457e42);}}class Suggestion extends/* #__PURE__ -- @preserve */
24
- _0x1b398d(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2a12f7,_0x13c5db){super(),this['id']=_0x13c5db['id'],this['type']=_0x13c5db['type'],this['subType']=_0x13c5db['subType']||null,this['author']=_0x13c5db['author'],this['creator']=_0x13c5db['creator']||_0x13c5db['author'],this['isExternal']=Boolean(_0x13c5db['attributes']&&_0x13c5db['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x13c5db['originalSuggestionId']||null,this['_model']=_0x2a12f7,this['_onAccept']=_0x13c5db['onAccept'],this['_onDiscard']=_0x13c5db['onDiscard'],this['_onAttributesChange']=_0x13c5db['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x13c5db['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 _0x39d2a6=this;for(;_0x39d2a6['previous'];)_0x39d2a6=_0x39d2a6['previous'];return _0x39d2a6;}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'](_0x49ff48){this['_markerNames']['add'](_0x49ff48);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x468122=>this['_model']['markers']['get'](_0x468122))['filter'](_0x168d5f=>_0x168d5f);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xb165ad=>{for(const _0x59ef4c of this['getMarkers']())_0xb165ad['removeMarker'](_0x59ef4c);}),this['_markerNames']['clear']();}['removeMarker'](_0x1795d5){this['_model']['change'](_0x393921=>{_0x393921['removeMarker'](_0x1795d5);}),this['_markerNames']['delete'](_0x1795d5);}['addRange'](_0x6f4384){const _0xb7cb70='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0xb7cb70),this['_model']['change'](_0x3e0790=>{_0x3e0790['addMarker'](_0xb7cb70,{'range':_0x6f4384,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x13ab57){for(const _0x399717 of this['getRanges']())if(_0x399717['isIntersecting'](_0x13ab57))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x107987=>_0x107987['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3df981,_0x1ba224)=>[..._0x3df981,..._0x1ba224['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xd486d7=this['getRanges']();if(0x1!=_0xd486d7['length'])return null;const _0x4fa38d=_0xd486d7[0x0],_0x35931b=_0x4fa38d['start']['nodeAfter'],_0x5801a6=_0x4fa38d['end']['nodeBefore'];return _0x35931b instanceof _0x100e3b?_0x35931b!=_0x5801a6?null:_0x35931b: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 _0x35b799=[];let _0x50106c=this['head'];for(;_0x50106c;)_0x35b799['push'](_0x50106c),_0x50106c=_0x50106c['next'];return _0x35b799;}['setAttribute'](_0x4ba9d1,_0x866a68){const _0x551b07=nt(this['attributes']);it(_0x551b07,_0x4ba9d1,_0x866a68),st(_0x551b07,this['attributes'])||(this['attributes']=_0x551b07,this['_onAttributesChange'](_0x551b07));}['removeAttribute'](_0x488fef){const _0x18e3b2=nt(this['attributes']);rt(_0x18e3b2,_0x488fef),st(_0x18e3b2,this['attributes'])||(this['attributes']=_0x18e3b2,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 _0x272311()['substr'](0x1,0x5);}}function Tt(_0x58af8f,_0x486823,_0x168b35){const _0x422951=_0x58af8f['t'],t=_0x58af8f['t'];switch(_0x486823){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',_0x168b35);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x168b35);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x168b35);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x168b35);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x168b35);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',_0x168b35);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x168b35);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',_0x168b35);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x168b35);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x168b35);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x168b35);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x168b35);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x168b35);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x168b35);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x168b35);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x168b35);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x168b35);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x168b35);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x168b35);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x168b35);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x168b35);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x168b35);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x168b35);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x168b35);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x168b35);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'},_0x168b35);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x168b35);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x168b35);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x168b35);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x168b35);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x168b35);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x168b35);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x168b35);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'},_0x168b35);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x168b35);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x168b35);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x168b35);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x168b35);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x168b35);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x168b35);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'},_0x168b35);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_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x168b35);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x168b35);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'},_0x168b35);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x168b35);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'},_0x168b35);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x168b35);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x168b35);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x168b35);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x168b35);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x168b35);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'},_0x168b35);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x168b35);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 _0x422951({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x168b35);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x422951({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x168b35);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x168b35);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'},_0x168b35);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'},_0x168b35);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'},_0x168b35);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x486823;}}class SuggestionDescriptionFactory{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x470dff,_0x24240a){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x470dff,this['_locale']=_0x24240a;}['getDescriptions'](_0xa6d227){const _0x1fe18c=[],_0x33ceb9=new Set(),_0x162d13=new Set();for(let _0x1ad69c=0x0;_0x1ad69c<_0xa6d227['length'];_0x1ad69c++){const _0x277a90=_0xa6d227[_0x1ad69c];if(!_0x277a90['isInContent'])continue;const _0x3e7384=this['_handleCustomCallbackDescription'](_0x277a90);if(_0x3e7384){if(null!=_0x277a90['subType']){if(_0x33ceb9['has'](_0x277a90['subType']))continue;_0x33ceb9['add'](_0x277a90['subType']);}_0x1fe18c['push'](_0x3e7384);}else{if('attribute'==_0x277a90['type']){const _0x403755=_0x277a90['data']['key'];if(_0x162d13['has'](_0x403755))continue;_0x162d13['add'](_0x277a90['data']['key']),_0x403755==Ft?this['_handleRenameSuggestionDescription'](_0x1fe18c,_0x277a90):this['_handleAttributeSuggestionDescription'](_0x1fe18c,_0x277a90);continue;}'insertion'!=_0x277a90['type']&&'deletion'!=_0x277a90['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1fe18c,_0x277a90,_0xa6d227[_0x1ad69c+0x1]);}}return this['_resolveDescriptionItems'](_0x1fe18c);}['registerDescriptionCallback'](_0x2bb650){this['_customCallbacks']['push'](_0x2bb650);}['registerElementLabel'](_0x13696f,_0x64f17e,_0x594202=_0x3bd827['normal']){'function'==typeof _0x13696f?_0x1532aa(this['_itemLabelsCallbacks'],{'matchingCallback':_0x13696f,'label':_0x64f17e,'priority':_0x594202}):this['_itemLabels']['set'](_0x13696f,_0x64f17e);}['registerAttributeLabel'](_0x19c36c,_0x27fdbd){this['_attributeLabels']['set'](_0x19c36c,_0x27fdbd);}['getItemLabel'](_0x1bb95e,_0x5985e0=0x1){let _0x141983;for(const _0x533988 of this['_itemLabelsCallbacks'])if(_0x533988['matchingCallback'](_0x1bb95e)){_0x141983=_0x533988['label'];break;}return _0x141983||(_0x141983=this['_itemLabels']['get'](_0x1bb95e['name'])),_0x141983?_0x141983(_0x5985e0):0x1!==_0x5985e0?_0x5985e0+'\x20'+_0x1bb95e['name']+'s':''+_0x1bb95e['name'];}['_addDescriptionItems'](_0x23285a,_0x329e5a){const _0x306d9a=_0x329e5a['getFirstRange']()['getWalker'](),_0x2773f6='insertion'==_0x329e5a['type']?'add':'remove';for(const _0x491560 of _0x306d9a){const _0x1cb4ef=_0x491560['item'],_0x5b3f0d=_0x23285a[_0x23285a['length']-0x1];if(_0x1cb4ef['is']('$textProxy'))_0x5b3f0d&&_0x5b3f0d['type']['indexOf']('Container')>-0x1&&_0x23285a['pop'](),_0x5b3f0d&&'text'==_0x5b3f0d['type']?_0x5b3f0d[_0x2773f6]+=_0x1cb4ef['data']:_0x23285a['push']({'type':'text','add':'add'==_0x2773f6?_0x1cb4ef['data']:'','remove':'remove'==_0x2773f6?_0x1cb4ef['data']:''});else{if(this['_schema']['isObject'](_0x1cb4ef)){const _0x20945e=_0x1cb4ef;if(_0x5b3f0d&&_0x5b3f0d['type']['indexOf']('Container')>-0x1&&_0x23285a['pop'](),'elementEnd'==_0x491560['type'])continue;_0x5b3f0d&&_0x5b3f0d['type']==_0x2773f6+'Object'&&_0x5b3f0d['element']['name']==_0x20945e['name']?_0x5b3f0d['quantity']++:_0x23285a['push']({'type':_0x2773f6+'Object','element':_0x20945e,'quantity':0x1}),_0x306d9a['skip'](_0x22fbc1=>!('elementEnd'==_0x22fbc1['type']&&_0x22fbc1['item']==_0x1cb4ef));}else{if(this['_schema']['checkChild'](_0x1cb4ef,'$text')||_0x1cb4ef['is']('element','softBreak')){const _0x411615=_0x1cb4ef;if('add'==_0x2773f6&&'elementStart'==_0x491560['type']||'remove'==_0x2773f6&&'elementEnd'==_0x491560['type'])continue;if(_0x5b3f0d&&-0x1==_0x5b3f0d['type']['indexOf']('Container')){'text'==_0x5b3f0d['type']&&(_0x5b3f0d[_0x2773f6]+='\x0a');continue;}let _0x5f4e8b;if(_0x5f4e8b='add'==_0x2773f6?_0x411615['nextSibling']&&!this['_schema']['isObject'](_0x411615['nextSibling'])?_0x411615['nextSibling']:null:_0x411615['previousSibling']&&!this['_schema']['isObject'](_0x411615['previousSibling'])?_0x411615['previousSibling']:null,_0x411615['isEmpty']||_0x5f4e8b&&_0x5f4e8b['isEmpty']){const _0xd07abe=_0x5f4e8b&&_0x5f4e8b['isEmpty']?_0x5f4e8b:_0x411615;_0x5b3f0d&&_0x5b3f0d['type']==_0x2773f6+'EmptyContainer'&&_0x5b3f0d['element']['name']==_0xd07abe['name']?_0x5b3f0d['quantity']++:_0x23285a['push']({'type':_0x2773f6+'EmptyContainer','element':_0xd07abe,'quantity':0x1});}else _0x23285a['push']({'type':_0x2773f6+'Container','element':_0x411615});}}}}}['_resolveDescriptionItems'](_0x69084a){const _0x155b5f=this['_locale'],_0x5f1f6e=[],_0x5e7f5c=[],_0x365f28=[];for(const _0x4dc63c of _0x69084a)switch(_0x4dc63c['type']){case'text':if(_0x4dc63c['add']=_0x4dc63c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4dc63c['remove']=_0x4dc63c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4dc63c['add']&&''!=_0x4dc63c['remove']){_0x5f1f6e['push']({'type':'replace','content':Tt(_0x155b5f,'REPLACE_TEXT',['\x22'+_0x4dc63c['remove']+'\x22','\x22'+_0x4dc63c['add']+'\x22'])});continue;}if(null!=_0x4dc63c['add']['match'](/^ +$/)){_0x5f1f6e['push']({'type':'insertion','content':Tt(_0x155b5f,'*Insert:*\x20%0',Tt(_0x155b5f,'ELEMENT_SPACE',_0x4dc63c['add']['length']))});continue;}if(null!=_0x4dc63c['remove']['match'](/^ +$/)){_0x5f1f6e['push']({'type':'deletion','content':Tt(_0x155b5f,'*Remove:*\x20%0',Tt(_0x155b5f,'ELEMENT_SPACE',_0x4dc63c['remove']['length']))});continue;}if(''!=_0x4dc63c['add']){_0x5f1f6e['push']({'type':'insertion','content':Tt(_0x155b5f,'*Insert:*\x20%0','\x22'+_0x4dc63c['add']+'\x22')});continue;}_0x5f1f6e['push']({'type':'deletion','content':Tt(_0x155b5f,'*Remove:*\x20%0','\x22'+_0x4dc63c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5f1f6e['push']({'type':'insertion','content':Tt(_0x155b5f,'*Insert:*\x20%0',this['getItemLabel'](_0x4dc63c['element'],_0x4dc63c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5f1f6e['push']({'type':'deletion','content':Tt(_0x155b5f,'*Remove:*\x20%0',this['getItemLabel'](_0x4dc63c['element'],_0x4dc63c['quantity']))});continue;case'addContainer':_0x5f1f6e['push']({'type':'insertion','content':Tt(_0x155b5f,'*Split:*\x20%0',this['getItemLabel'](_0x4dc63c['element'],_0x4dc63c['quantity']))});continue;case'removeContainer':_0x5f1f6e['push']({'type':'deletion','content':Tt(_0x155b5f,'*Merge:*\x20%0',this['getItemLabel'](_0x4dc63c['element'],_0x4dc63c['quantity']))});continue;case'addFormat':_0x5e7f5c['push'](_0x4dc63c['key']);continue;case'removeFormat':_0x365f28['push'](_0x4dc63c['key']);continue;default:_0x5f1f6e['push'](_0x4dc63c);}if(_0x5e7f5c['length']){const _0x2ad318=_0x5e7f5c['map'](_0x4c8ce4=>this['_attributeLabels']['has'](_0x4c8ce4)?this['_attributeLabels']['get'](_0x4c8ce4):_0x4c8ce4)['join'](',\x20');_0x5f1f6e['push']({'type':'format','content':Tt(this['_locale'],'*Set\x20format:*\x20%0',_0x2ad318)});}if(_0x365f28['length']){const _0x2f4090=_0x365f28['map'](_0xadd347=>this['_attributeLabels']['has'](_0xadd347)?this['_attributeLabels']['get'](_0xadd347):_0xadd347)['join'](',\x20');_0x5f1f6e['push']({'type':'format','content':Tt(this['_locale'],'*Remove\x20format:*\x20%0',_0x2f4090)});}return _0x5f1f6e;}['_handleCustomCallbackDescription'](_0x44904b){for(const _0x28ff25 of this['_customCallbacks']){const _0x2b9b57=_0x28ff25(_0x44904b);if(_0x2b9b57&&'type'in _0x2b9b57)return _0x2b9b57;}}['_handleAttributeSuggestionDescription'](_0x1a9ce8,_0x2e7863){const _0x1b3f7=_0x2e7863['data'],_0x458514=void 0x0===_0x1b3f7['newValue']?'removeFormat':'addFormat';_0x1a9ce8['push']({'type':_0x458514,'key':_0x1b3f7['key']});}['_handleRenameSuggestionDescription'](_0x4e1263,_0x5a9685){_0x4e1263['push']({'type':'format','content':Tt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5a9685['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x459ee4,_0x48bd1b,_0x21c011){if(this['_addDescriptionItems'](_0x459ee4,_0x48bd1b),_0x21c011&&_0x21c011['getFirstRange']()&&!_0x48bd1b['getFirstRange']()['end']['isEqual'](_0x21c011['getFirstRange']()['start'])){const _0x2bb2a5=_0x459ee4[_0x459ee4['length']-0x1],_0x2f6da9='insertion'==_0x48bd1b['type']?'add':'remove';_0x2bb2a5&&'text'==_0x2bb2a5['type']&&(_0x2bb2a5[_0x2f6da9]+='\x0a');}}}class TrackChangesAIAssistant extends _0x5a485e{['afterInit'](){const _0x19fab3=this['editor'],_0x444562=_0x19fab3['plugins']['get']('TrackChangesEditing');_0x19fab3['commands']['get']('showAIAssistant')&&_0x444562['enableCommand']('showAIAssistant');}}class TrackChangesAI extends _0x5a485e{['afterInit'](){const _0x2c5ac1=this['editor'],_0x303190=_0x2c5ac1['plugins']['get']('TrackChangesEditing');_0x2c5ac1['commands']['get']('toggleAi')&&_0x303190['enableCommand']('toggleAi');}}class TrackChangesAIQuickActions extends _0x5a485e{['afterInit'](){const _0x3c8ce5=this['editor'],_0x17c9fa=_0x3c8ce5['plugins']['get']('TrackChangesEditing');_0x3c8ce5['commands']['get']('aiQuickAction')&&_0x17c9fa['enableCommand']('aiQuickAction');}}class TrackChangesAlignment extends _0x5a485e{['afterInit'](){const _0x1cbacb=this['editor'],_0x9b19c3=_0x1cbacb['locale'];if(!_0x1cbacb['plugins']['has']('AlignmentEditing'))return;const _0x39edfb=_0x1cbacb['plugins']['get']('TrackChangesEditing');_0x39edfb['enableDefaultAttributesIntegration']('alignment'),_0x39edfb['descriptionFactory']['registerAttributeLabel']('alignment',Tt(_0x9b19c3,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d4765=this['editor'],_0x3f031c=_0x2d4765['locale'];_0x2d4765['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x154985=>{if('formatBlock'!=_0x154985['type'])return;const {data:_0x26d983}=_0x154985;if(_0x26d983&&'alignment'==_0x26d983['commandName']){const _0x4dc651=_0x26d983['commandParams'][0x0]['value'];return{'type':'format','content':Tt(_0x3f031c,'*Format:*\x20%0',function(_0x424bb1){switch(_0x424bb1){case'left':return Tt(_0x3f031c,'FORMAT_ALIGN_TO_LEFT');case'right':return Tt(_0x3f031c,'FORMAT_ALIGN_TO_RIGHT');case'center':return Tt(_0x3f031c,'FORMAT_ALIGN_TO_CENTER');case'justify':return Tt(_0x3f031c,'FORMAT_JUSTIFY_TEXT');}}(_0x4dc651))};}});}}const _t=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class TrackChangesBasicStyles extends _0x5a485e{['afterInit'](){const _0x3f584f=this['editor'],_0x438422=_0x3f584f['plugins']['get']('TrackChangesEditing'),_0x4247ae=_0x3f584f['locale'];for(const _0x3d4a3f of _t){if(!_0x3f584f['plugins']['has'](_0x3d4a3f))continue;const _0x328ba4=_0x3d4a3f['slice'](0x0,-0x7)['toLowerCase'](),_0x2072dd='FORMAT_'+_0x328ba4['toUpperCase']();_0x438422['enableDefaultAttributesIntegration'](_0x328ba4),_0x438422['descriptionFactory']['registerAttributeLabel'](_0x328ba4,Tt(_0x4247ae,_0x2072dd));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4875d0=this['editor'],_0x31000c=_0x4875d0['locale'],_0xd7fd6e=_0x4875d0['plugins']['get']('TrackChangesEditing');function _0x2a4116(_0x132a0f,_0x5b88c2){_0xd7fd6e['descriptionFactory']['registerDescriptionCallback'](_0x2542f2=>{if('formatInline'!=_0x2542f2['type'])return;const {data:_0x576f0d}=_0x2542f2;return _0x576f0d&&_0x576f0d['commandName']===_0x132a0f?_0x576f0d['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x31000c,'*Format:*\x20%0',_0x5b88c2)}:{'type':'format','content':Tt(_0x31000c,'*Remove\x20format:*\x20%0',_0x5b88c2)}:void 0x0;});}_0x2a4116('bold',Tt(_0x31000c,'FORMAT_BOLD')),_0x2a4116('italic',Tt(_0x31000c,'FORMAT_ITALIC')),_0x2a4116('underline',Tt(_0x31000c,'FORMAT_UNDERLINE')),_0x2a4116('code',Tt(_0x31000c,'FORMAT_CODE')),_0x2a4116('strikethrough',Tt(_0x31000c,'FORMAT_STRIKETHROUGH')),_0x2a4116('subscript',Tt(_0x31000c,'FORMAT_SUBSCRIPT')),_0x2a4116('superscript',Tt(_0x31000c,'FORMAT_SUPERSCRIPT'));}}class TrackChangesBlockQuote extends _0x5a485e{['afterInit'](){const _0x221ac=this['editor'],_0x163bcd=_0x221ac['locale'];if(!_0x221ac['plugins']['has']('BlockQuoteEditing'))return;const _0x47f59a=_0x221ac['plugins']['get']('TrackChangesEditing'),_0x509b89=this['editor']['commands']['get']('blockQuote');_0x47f59a['enableCommand']('blockQuote',(_0x167d25,_0x4147a2={})=>{const _0x1d206d=this['editor']['model']['document']['selection'],_0x4a84a0=_0x4147a2&&void 0x0!==_0x4147a2['forceValue']?_0x4147a2['forceValue']:!_0x509b89['value'];let _0x140e96=[];if(_0x4a84a0){const _0x1edd86=Array['from'](_0x1d206d['getSelectedBlocks']())['filter'](_0xfcc25f=>pt(_0xfcc25f)||function(_0x36573a,_0x2ca0a0){const _0x1e7377=_0x2ca0a0['checkChild'](_0x36573a['parent'],'blockQuote'),_0x42562e=_0x2ca0a0['checkChild'](['$root','blockQuote'],_0x36573a);return _0x1e7377&&_0x42562e;}(_0xfcc25f,this['editor']['model']['schema']));_0x140e96=ft(_0x1edd86,_0x221ac['model']);}else{const _0x584199=Array['from'](_0x1d206d['getSelectedBlocks']())['filter'](_0x228804=>pt(_0x228804));_0x140e96=ft(_0x584199,_0x221ac['model']);}_0x221ac['model']['change'](()=>{for(const _0x555864 of _0x140e96)_0x47f59a['markBlockFormat'](_0x555864,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4a84a0}]});});}),_0x47f59a['descriptionFactory']['registerDescriptionCallback'](_0x51307e=>{const {data:_0x142f7b}=_0x51307e;if(_0x142f7b&&'blockQuote'==_0x142f7b['commandName']){const _0x2c3576=Tt(_0x163bcd,'ELEMENT_BLOCK_QUOTE');return _0x142f7b['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x163bcd,'*Set\x20format:*\x20%0',_0x2c3576)}:{'type':'format','content':Tt(_0x163bcd,'*Remove\x20format:*\x20%0',_0x2c3576)};}});}}function pt(_0x13e69a){return'blockQuote'==_0x13e69a['parent']['name'];}class TrackChangesBookmark extends _0x5a485e{['afterInit'](){const _0x1e1b8b=this['editor'],_0x5d632c=_0x1e1b8b['locale'],_0x388131=_0x1e1b8b['plugins']['get']('TrackChangesEditing');_0x1e1b8b['plugins']['has']('BookmarkEditing')&&(_0x388131['enableCommand']('insertBookmark'),_0x388131['enableDefaultAttributesIntegration']('updateBookmark'),_0x388131['descriptionFactory']['registerDescriptionCallback'](_0x23cdf0=>{if('insertion'!=_0x23cdf0['type']&&'deletion'!=_0x23cdf0['type']&&'attribute'!=_0x23cdf0['type'])return;const _0x71a88e=_0x23cdf0['getContainedElement']();if(null==_0x71a88e)return;if(!_0x71a88e['is']('element','bookmark'))return;const _0x8295b6=_0x71a88e['getAttribute']('bookmarkId');if('insertion'==_0x23cdf0['type'])return{'type':'insertion','content':Tt(_0x5d632c,'*Insert:*\x20%0','\x22'+_0x8295b6+'\x22\x20'+Tt(_0x5d632c,'ELEMENT_BOOKMARK'))};if('deletion'==_0x23cdf0['type'])return{'type':'deletion','content':Tt(_0x5d632c,'*Remove:*\x20%0','\x22'+_0x8295b6+'\x22\x20'+Tt(_0x5d632c,'ELEMENT_BOOKMARK'))};const {data:_0x14f395}=_0x23cdf0;if(!_0x14f395||'bookmarkId'!=_0x14f395['key'])return;return{'type':'format','content':Tt(_0x5d632c,'*Set\x20bookmark:*\x20%0','\x22'+_0x14f395['newValue']+'\x22')};}));}}class TrackChangesCaseChange extends _0x5a485e{['afterInit'](){const _0x3f380d=this['editor'];_0x3f380d['plugins']['has']('CaseChange')&&(_0x3f380d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3f380d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3f380d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class TrackChangesCKBox extends _0x5a485e{['afterInit'](){const _0x477582=this['editor'];_0x477582['commands']['get']('ckbox')&&_0x477582['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class TrackChangesCodeBlock extends _0x5a485e{['afterInit'](){const _0x374133=this['editor'];if(!_0x374133['plugins']['has']('CodeBlock'))return;const _0xb5341e=_0x374133['plugins']['get']('TrackChangesEditing'),_0x1b5abd=_0x374133['locale'],_0x10fb60=_0x374133['config']['get']('codeBlock')['languages'],_0x17c11e=_0x374133['commands']['get']('codeBlock');_0xb5341e['enableCommand']('indentCodeBlock'),_0xb5341e['enableCommand']('outdentCodeBlock'),_0xb5341e['enableCommand']('codeBlock',(_0x42dfd7,_0x2769a0={})=>{const _0xfc57db=_0x374133['model'],_0x4683de=_0x374133['model']['document']['selection'],_0xb3b4d9=_0x2769a0&&void 0x0!==_0x2769a0['forceValue']?_0x2769a0['forceValue']:!_0x17c11e['value'];let _0x32b7b6;_0x2769a0['language']||(_0x2769a0['language']=_0x10fb60[0x0]['language']),_0x32b7b6=_0xb3b4d9?Array['from'](_0x4683de['getSelectedBlocks']())['filter'](_0x2ea2b6=>Ct(_0x2ea2b6)||function(_0x185ab6,_0x51463c){if(_0x185ab6['is']('rootElement')||_0x51463c['isLimit'](_0x185ab6))return!0x1;return _0x51463c['checkChild'](_0x185ab6['parent'],'codeBlock');}(_0x2ea2b6,_0xfc57db['schema'])):Array['from'](_0x4683de['getSelectedBlocks']())['filter'](_0x5a3687=>Ct(_0x5a3687));const _0x102b9d=ft(_0x32b7b6,_0xfc57db);_0xfc57db['change'](()=>{for(const _0x141a4a of _0x102b9d)_0xb5341e['markBlockFormat'](_0x141a4a,{'commandName':'codeBlock','commandParams':[{..._0x2769a0,'forceValue':_0xb3b4d9}],'formatGroupId':'blockName'});});}),(_0xb5341e['descriptionFactory']['registerElementLabel']('codeBlock',_0x7a9406=>Tt(_0x1b5abd,'ELEMENT_CODE_BLOCK',_0x7a9406)),_0xb5341e['descriptionFactory']['registerDescriptionCallback'](_0x56ed92=>{if('formatBlock'!=_0x56ed92['type'])return;const _0x16dd30=_0x1b5abd['t'],{data:_0xca40d0}=_0x56ed92;if(!_0xca40d0||'codeBlock'!=_0xca40d0['commandName'])return;const _0x18123f=_0xca40d0['commandParams'][0x0]['language'],_0x2605c2=_0x16dd30(_0x10fb60['find'](_0x1121d9=>_0x1121d9['language']===_0x18123f)['label'])['toLowerCase']();return _0xca40d0['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x1b5abd,'*Set\x20format:*\x20%0',Tt(_0x1b5abd,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2605c2+')')}:{'type':'format','content':Tt(_0x1b5abd,'*Remove\x20format:*\x20%0',Tt(_0x1b5abd,'ELEMENT_CODE_BLOCK',0x1))};}));}}function Ct(_0x364872){return'codeBlock'==_0x364872['name'];}class TrackChangesComments extends _0x5a485e{['afterInit'](){const _0x566628=this['editor'];if(!_0x566628['plugins']['has']('CommentsEditing'))return;_0x566628['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class TrackChangesDeleteCommand extends _0x5a485e{static get['requires'](){return[at];}['init'](){const _0x22c698=this['editor'],_0x2fa92d=_0x22c698['plugins']['get']('TrackChangesEditing');_0x2fa92d['enableCommand']('delete');const _0x259e3f=_0x22c698['commands']['get']('deleteForward');_0x2fa92d['enableCommand']('deleteForward',(_0x3483ca,_0x21d886={})=>{const _0x5b12cd=_0x22c698['model']['createSelection'](_0x22c698['model']['document']['selection']);_0x5b12cd['isCollapsed']&&_0x22c698['model']['modifySelection'](_0x5b12cd,{'direction':'forward','unit':_0x21d886['unit']});const _0xac43ed=_0x5b12cd['getFirstRange'](),_0x322bbe=_0x53b34c['fromRange'](_0xac43ed);let _0xb0402a;_0x3483ca(_0x21d886),_0xb0402a='$graveyard'==_0x322bbe['root']['rootName']?_0x22c698['model']['createRange'](_0xac43ed['start']):_0x22c698['model']['createRange'](_0x322bbe['start'],_0x322bbe['end']),_0x322bbe['detach'](),_0x22c698['model']['enqueueChange'](_0x259e3f['buffer']['batch'],_0x3d4992=>{_0x259e3f['buffer']['lock'](),_0x3d4992['setSelection'](_0x3d4992['createRange'](_0xb0402a['end'])),_0x259e3f['buffer']['unlock']();});});}}class TrackChangesList extends _0x5a485e{['afterInit'](){const _0x4de2a4=this['editor'];if(!_0x4de2a4['plugins']['has']('ListEditing'))return;const _0x15c648=_0x4de2a4['locale'],_0x83292b=_0x4de2a4['plugins']['get']('TrackChangesEditing'),_0x7929e6=_0x4de2a4['plugins']['has']('TodoListEditing'),_0x29af91=!!_0x4de2a4['config']['get']('list.multiBlock');function _0x141b0c(_0x52cf88){return{'type':'format','content':''+Tt(_0x15c648,'*Set\x20format:*\x20%0',_0x52cf88)};}function _0x54cacb(_0x1b2c73){return{'type':'format','content':''+Tt(_0x15c648,'*Remove\x20format:*\x20%0',_0x1b2c73)};}_0x83292b['enableDefaultAttributesIntegration']('numberedList'),_0x83292b['enableDefaultAttributesIntegration']('bulletedList'),_0x83292b['enableDefaultAttributesIntegration']('customNumberedList'),_0x83292b['enableDefaultAttributesIntegration']('customBulletedList'),_0x83292b['enableDefaultAttributesIntegration']('indentList'),_0x83292b['enableDefaultAttributesIntegration']('outdentList'),_0x83292b['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x83292b['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x29af91&&(_0x83292b['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x83292b['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x7929e6&&(_0x83292b['enableDefaultAttributesIntegration']('todoList'),_0x83292b['enableDefaultAttributesIntegration']('checkTodoList'),_0x83292b['descriptionFactory']['registerDescriptionCallback'](_0x498efc=>{const {data:_0x50d60b}=_0x498efc;if(_0x50d60b&&'todoListChecked'==_0x50d60b['key'])return{'type':'format','content':_0x50d60b['newValue']?Tt(_0x15c648,'*Check\x20item*'):Tt(_0x15c648,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4d1928=>{if(_0x4d1928['batch']['isUndo'])return!0x1;let _0x272065=!0x1;const _0x10519b=_0x83292b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x20c8ea=>'todoListChecked'===_0x83292b['_getAttributeKey'](_0x20c8ea));for(const _0x252bbf of _0x10519b){'todo'!=_0x252bbf['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x83292b['_findSuggestions'](_0x252bbf['getFirstRange'](),'attribute')['find'](_0xbf3872=>'listType'===_0x83292b['_getAttributeKey'](_0xbf3872['suggestion']))||(_0x4d1928['removeMarker'](_0x252bbf['getFirstMarker']()),_0x272065=!0x0));}return _0x272065;})),_0x83292b['descriptionFactory']['registerAttributeLabel']('listIndent',Tt(_0x15c648,'FORMAT_INDENT'));const _0x16358b={'type':'format','content':''};_0x83292b['descriptionFactory']['registerDescriptionCallback'](_0xe462f8=>{const {data:_0x4f077c}=_0xe462f8;if(!_0x4f077c||'listType'!=_0x4f077c['key'])return;let _0x32ed73=_0xe462f8['head'];for(;_0x32ed73;){if(_0x32ed73['data']&&(('listStyle'==_0x32ed73['data']['key']||'listMarkerStyle'==_0x32ed73['data']['key'])&&(_0x32ed73['data']['newValue']&&'default'!=_0x32ed73['data']['newValue']||'default'!=_0x32ed73['data']['oldValue']&&!_0x4f077c['newValue'])||!_0x29af91&&_0x32ed73['data']['key']==Ft))return _0x16358b;_0x32ed73=_0x32ed73['next'];}if(null==_0x4f077c['newValue'])switch(_0x4f077c['oldValue']){case'bulleted':return _0x54cacb(Tt(_0x15c648,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x54cacb(Tt(_0x15c648,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x54cacb(Tt(_0x15c648,'ELEMENT_TODO_LIST'));}switch(_0x4f077c['newValue']){case'bulleted':return _0x141b0c(Tt(_0x15c648,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x141b0c(Tt(_0x15c648,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x141b0c(Tt(_0x15c648,'ELEMENT_TODO_LIST'));}}),_0x83292b['descriptionFactory']['registerDescriptionCallback'](_0xde7159=>{const {data:_0xd3901d}=_0xde7159;if(_0xd3901d&&'listIndent'==_0xd3901d['key'])return null==_0xd3901d['newValue']||null==_0xd3901d['oldValue']&&0x0==_0xd3901d['newValue']?_0x16358b:void 0x0;}),_0x83292b['descriptionFactory']['registerDescriptionCallback'](_0x49cb9f=>{if('attribute'!=_0x49cb9f['type'])return;const {data:_0x1f83f7}=_0x49cb9f;if(!_0x1f83f7||'listItemId'!=_0x1f83f7['key'])return;const _0x5a92ae=kt(_0x49cb9f);return'newValue'==_0x5a92ae?{'type':'format','content':Tt(_0x15c648,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5a92ae?{'type':'format','content':Tt(_0x15c648,'*Split:*\x20list\x20item')}:_0x16358b;}),_0x4de2a4['model']['document']['registerPostFixer'](_0x1291c7=>this['listItemIdFixer'](_0x1291c7)),_0x4de2a4['model']['document']['registerPostFixer'](_0x50aa42=>this['noTrackChangesFixer'](_0x50aa42)),_0x4de2a4['model']['document']['on']('change:data',(_0x26e448,_0x50da87)=>{if(_0x50da87['isUndo']||!_0x50da87['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2bf87d){if(_0x2bf87d['batch']['isUndo']||!_0x2bf87d['batch']['isLocal'])return!0x1;let _0x5db5ee=!0x1;const _0x310a96=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2daa81=>_0x2daa81['data']&&'listItemId'==_0x2daa81['data']['key'])['filter'](_0x42e5cb=>_0x42e5cb['data']['newValue']&&_0x42e5cb['data']['oldValue']);for(const _0x6c66dd of _0x310a96)kt(_0x6c66dd)||(_0x2bf87d['removeMarker'](_0x6c66dd['getFirstMarker']()),_0x5db5ee=!0x0);return _0x5db5ee;}['noTrackChangesFixer'](_0x5188fc){if(_0x5188fc['batch']['isUndo']||!_0x5188fc['batch']['isLocal'])return!0x1;const _0xbb57f9=this['editor']['model']['document']['differ'],_0x524ee1=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x524ee1['trackChangesCommand']['value'])return!0x1;let _0xef547b=!0x1;const _0x5a9a62=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle']),_0x544996=_0xbb57f9['getChanges']()['filter'](_0x293b68=>'attribute'==_0x293b68['type'])['filter'](_0x2bae5b=>_0x5a9a62['has'](_0x2bae5b['attributeKey']));if(0x0==_0x544996['length'])return _0xef547b;const _0xaa188a=new Set(_0xbb57f9['getMarkersToAdd']()['filter'](_0x1eaaaf=>{if(!_0x1eaaaf['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x572c86=_0x5cc320(_0x1eaaaf['name'])['subType']['split']('|')[0x0];return _0x5a9a62['has'](_0x572c86);})['map'](_0x108f04=>_0x5cc320(_0x108f04['name'])['id']));for(const _0x427ca7 of _0x544996){const _0x4bc25b=_0x524ee1['_findSuggestions'](_0x427ca7['range'],'attribute')['filter'](_0x219038=>{if(_0x219038['meta']['isNextTo'])return!0x1;if(_0xaa188a['has'](_0x219038['suggestion']['id']))return!0x1;const _0x107f6e=_0x524ee1['_getAttributeKey'](_0x219038['suggestion']);return _0x5a9a62['has'](_0x107f6e);})['map'](_0x18221f=>_0x18221f['suggestion']);if(_0x4bc25b['length']){for(const _0x478b78 of _0x4bc25b)_0x5188fc['removeMarker'](_0x478b78['getFirstMarker']());_0xef547b=!0x0;}}return _0xef547b;}['assureChains'](){const _0xc249ac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x45db42=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3f7cf0;const _0x47f416=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x572b04=>{if(_0x572b04['data']['oldRange']||!_0x572b04['data']['newRange'])return null;if(!_0x572b04['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x354017}=_0x5cc320(_0x572b04['name']);if(!_0xc249ac['hasSuggestion'](_0x354017))return null;const _0x3918c3=_0xc249ac['getSuggestion'](_0x354017);return _0x45db42['includes'](_0x3918c3['data']['key']);})['map'](_0xd4ddb=>{const {id:_0x127076}=_0x5cc320(_0xd4ddb['name']),_0x2478da=_0xc249ac['getSuggestion'](_0x127076);return _0x3f7cf0=_0x2478da['attributes']['groupId'],_0x2478da['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x47f416['size'])return;const _0x53383f=_0xc249ac['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4e3c6a=>'attribute'==_0x4e3c6a['type']&&_0x4e3c6a['data']&&_0x45db42['includes'](_0x4e3c6a['data']['key'])&&_0x4e3c6a['attributes']['groupId']!=_0x3f7cf0)['map'](_0x573801=>({'listItem':_0x573801['getFirstRange']()['start']['nodeAfter'],'groupId':_0x573801['attributes']['groupId']})),_0x110b04=new Set();for(const {groupId:_0x393961,listItem:_0x4ad587}of _0x53383f)_0x47f416['has'](_0x4ad587)&&_0x110b04['add'](_0x393961);for(const _0x580033 of _0xc249ac['getSuggestions']())_0x110b04['has'](_0x580033['attributes']['groupId'])&&_0x580033['setAttribute']('groupId',_0x3f7cf0);}['_supportLegacySuggestions'](){const _0x151107=this['editor'],_0x1f3753=_0x151107['locale'],_0x5857ad=_0x151107['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5857ad['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5cbdf4,_0x471b01){const _0xc4d994=[];for(let _0x58ce93 of _0x5cbdf4)_0x58ce93['start']['nodeAfter']===_0x58ce93['end']['parent']&&(_0x58ce93=_0x151107['model']['createRange'](_0x151107['model']['createPositionAt'](_0x58ce93['start']['nodeAfter'],0x0))),_0xc4d994['push'](_0x58ce93);_0x151107['model']['change'](_0x30b514=>{const _0xd48551=_0x151107['model']['document']['selection'],_0x38d6a2=Array['from'](_0xd48551['getRanges']())['map'](_0x37bc97=>_0x53b34c['fromRange'](_0x37bc97));_0x30b514['setSelection'](_0xc4d994),_0x151107['commands']['get'](_0x471b01['commandName'])['refresh'](),_0x471b01['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x151107['execute'](_0x471b01['commandName'],..._0x471b01['commandParams']),_0x30b514['setSelection'](_0x38d6a2);for(const _0x10d5ff of _0x38d6a2)_0x10d5ff['detach']();});}),_0x5857ad['descriptionFactory']['registerElementLabel'](function(_0x342cbe){const _0x625ea6=!_0x151107['model']['schema']['isObject'](_0x342cbe),_0x1c0073=_0x342cbe['previousSibling'],_0x364cf3=_0x342cbe['nextSibling'],_0x2fe946=_0x342cbe['getAttribute']('listItemId'),_0x34dacb=!_0x1c0073||_0x1c0073['getAttribute']('listItemId')!==_0x2fe946,_0x7de997=!_0x364cf3||_0x364cf3['getAttribute']('listItemId')!==_0x2fe946;return _0x625ea6&&Boolean(_0x2fe946)&&_0x34dacb&&_0x7de997;},_0x956b89=>Tt(_0x1f3753,'ELEMENT_LIST_ITEM',_0x956b89));}['_registerLegacyDescription'](){const _0x28304e=this['editor'],_0x1cc3f9=_0x28304e['locale'];function _0x483c45(_0x36ac41){const _0x5db159=_0x28304e['commands']['get']('bulletedList')['value'],_0xc595cc=_0x28304e['commands']['get']('numberedList')['value'];return'numberedList'===_0x36ac41?_0x5db159:_0xc595cc;}_0x28304e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x142bad){if('formatBlock'!=_0x142bad['type'])return;const {data:_0x2fbbc6}=_0x142bad;if(!_0x2fbbc6)return;let _0xd8711e,_0x5f57d1,_0x46bc7d,_0x5a101d;switch(_0x2fbbc6['commandName']){case'bulletedList':_0x46bc7d=_0x2fbbc6['commandParams'][0x0]['forceValue'],_0x5a101d=_0x483c45(_0x2fbbc6['commandName']),_0xd8711e=_0x46bc7d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5a101d&&_0x28304e['config']['get']('list.multiBlock')||(_0xd8711e='*Change\x20to:*\x20%0'),_0x5f57d1={'type':'format','content':Tt(_0x1cc3f9,_0xd8711e,Tt(_0x1cc3f9,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x46bc7d=_0x2fbbc6['commandParams'][0x0]['forceValue'],_0x5a101d=_0x483c45(_0x2fbbc6['commandName']),_0xd8711e=_0x46bc7d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5a101d&&_0x28304e['config']['get']('list.multiBlock')||(_0xd8711e='*Change\x20to:*\x20%0'),_0x5f57d1={'type':'format','content':Tt(_0x1cc3f9,_0xd8711e,Tt(_0x1cc3f9,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xd8711e='*Indent:*\x20%0',_0x5f57d1={'type':'format','content':Tt(_0x1cc3f9,_0xd8711e,Tt(_0x1cc3f9,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xd8711e=function(_0x14734e){const _0x5d096d=_0x14734e['getFirstRange']();let _0x63327d=_0x5d096d['start']['nodeAfter'];for(;_0x63327d&&_0x5d096d['containsItem'](_0x63327d);){if(_0x63327d['getAttribute']('listIndent')>0x0)return!0x1;_0x63327d=_0x63327d['nextSibling'];}return!0x0;}(_0x142bad)?Tt(_0x1cc3f9,'*Format:*\x20remove\x20from\x20%0',Tt(_0x1cc3f9,function(_0x2db1c0){return'ELEMENT_'+_0x2db1c0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x142bad))):Tt(_0x1cc3f9,'*Outdent:*\x20%0',Tt(_0x1cc3f9,'ELEMENT_LIST_ITEM')),_0x5f57d1={'type':'format','content':_0xd8711e};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2fbbc6['multipleBlocks']&&(_0xd8711e='*Merge:*\x20%0',_0x5f57d1={'type':'deletion','content':Tt(_0x1cc3f9,_0xd8711e,Tt(_0x1cc3f9,'ELEMENT_LIST_ITEM'))});}return _0x5f57d1;});}}function kt(_0x49af68){let _0x3eb2c7=_0x49af68['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3eb2c7;){const _0x442bae=_0x3eb2c7['getAttribute']('listItemId');if(!_0x442bae)return!0x1;if(_0x442bae==_0x49af68['data']['newValue'])return'newValue';if(_0x442bae==_0x49af68['data']['oldValue'])return'oldValue';_0x3eb2c7=_0x3eb2c7['previousSibling'];}return!0x1;}class TrackChangesDocumentListProperties extends _0x5a485e{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x164d49=this['editor']['config']['get']('list.properties'),_0x3810b2=this['editor']['plugins']['get']('TrackChangesEditing');_0x164d49['styles']&&_0x3810b2['enableDefaultAttributesIntegration']('listStyle'),_0x164d49['reversed']&&_0x3810b2['enableDefaultAttributesIntegration']('listReversed'),_0x164d49['startIndex']&&_0x3810b2['enableDefaultAttributesIntegration']('listStart');const _0x295486={'type':'format','content':''};_0x3810b2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x296d05=this['editor']['locale'];_0x3810b2['descriptionFactory']['registerAttributeLabel']('listReversed',Tt(_0x296d05,'FORMAT_LIST_REVERSED')),_0x3810b2['descriptionFactory']['registerDescriptionCallback'](_0x5d4aa=>{const {data:_0x482a06}=_0x5d4aa;if(_0x482a06&&'listReversed'==_0x482a06['key'])return null==_0x482a06['newValue']||0x0==_0x482a06['newValue']&&null==_0x482a06['oldValue']?_0x295486:void 0x0;}),_0x3810b2['descriptionFactory']['registerAttributeLabel']('listStart',Tt(_0x296d05,'FORMAT_LIST_START')),_0x3810b2['descriptionFactory']['registerDescriptionCallback'](_0x48bb2e=>{const {data:_0x3a1532}=_0x48bb2e;if(_0x3a1532&&'listStart'==_0x3a1532['key'])return null==_0x3a1532['newValue']||0x1==_0x3a1532['newValue']&&null==_0x3a1532['oldValue']?_0x295486:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x37cb38=>{if(_0x37cb38['batch']['isUndo'])return!0x1;let _0x121551=!0x1;const _0x2b9a2e=_0x3810b2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x31c734=>{const _0x4b2e46=_0x3810b2['_getAttributeKey'](_0x31c734);return'listStart'==_0x4b2e46||'listReversed'==_0x4b2e46;});for(const _0x1dfab1 of _0x2b9a2e){const _0x14ce95=_0x1dfab1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x14ce95||'customNumbered'==_0x14ce95)continue;_0x3810b2['_findSuggestions'](_0x1dfab1['getFirstRange'](),'attribute')['find'](_0xdfe5cf=>'listType'==_0x3810b2['_getAttributeKey'](_0xdfe5cf['suggestion']))||(_0x37cb38['removeMarker'](_0x1dfab1['getFirstMarker']()),_0x121551=!0x0);}return _0x121551;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x12e30b){const _0x5d5b4c=this['editor']['locale'],{data:_0x7a7130}=_0x12e30b,_0x31e309={'type':'format','content':''};if(!_0x7a7130||'listStyle'!=_0x7a7130['key'])return;if(!_0x7a7130['oldValue'])return'default'==_0x7a7130['newValue']?_0x31e309:{'type':'format','content':''+Tt(_0x5d5b4c,'*Set\x20format:*\x20%0',Tt(_0x5d5b4c,this['_getTranslationKeyForListStyle'](_0x7a7130['newValue'])))};if(!_0x7a7130['newValue']){if('default'==_0x7a7130['oldValue'])return _0x31e309;let _0x4edd33=_0x12e30b['head'];for(;_0x4edd33;){if(_0x4edd33['data']&&'listType'==_0x4edd33['data']['key']&&_0x4edd33['data']['newValue'])return _0x31e309;_0x4edd33=_0x4edd33['next'];}return{'type':'format','content':''+Tt(_0x5d5b4c,'*Remove\x20format:*\x20%0',Tt(_0x5d5b4c,this['_getTranslationKeyForListStyle'](_0x7a7130['oldValue'])))};}if('default'!=_0x7a7130['newValue'])return{'type':'format','content':''+Tt(_0x5d5b4c,'*Set\x20format:*\x20%0',Tt(_0x5d5b4c,this['_getTranslationKeyForListStyle'](_0x7a7130['newValue'])))};let _0x96448c=_0x12e30b['head'];for(;_0x96448c;){if(_0x96448c['data']&&'listType'==_0x96448c['data']['key']&&_0x96448c['data']['newValue']&&_0x96448c['data']['oldValue'])return _0x31e309;_0x96448c=_0x96448c['next'];}return{'type':'format','content':Tt(_0x5d5b4c,'*Set\x20format:*\x20%0',Tt(_0x5d5b4c,'ELEMENT_'+_0x12e30b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x27475d=this['editor'],_0x56fc6d=_0x27475d['locale'];_0x27475d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42a68b=>{if('formatBlock'!=_0x42a68b['type'])return;const {data:_0x3d9a73}=_0x42a68b;if(!_0x3d9a73)return;let _0x2c07e0,_0x6cdd57;switch(_0x3d9a73['commandName']){case'listStyle':_0x2c07e0='*Change\x20to:*\x20%0',_0x6cdd57={'type':'format','content':Tt(_0x56fc6d,_0x2c07e0,Tt(_0x56fc6d,this['_getTranslationKeyForListStyle'](_0x3d9a73['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2c07e0=_0x3d9a73['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x6cdd57={'type':'format','content':Tt(_0x56fc6d,_0x2c07e0)};break;case'listStart':_0x2c07e0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x6cdd57={'type':'format','content':Tt(_0x56fc6d,_0x2c07e0,_0x3d9a73['commandParams'][0x0]['startIndex'])};}return _0x6cdd57;});}['_getTranslationKeyForListStyle'](_0x4951d5){return'ELEMENT_'+function(_0x2f774c){if(Lt['includes'](_0x2f774c))return'bulleted';if(It['includes'](_0x2f774c))return'numbered';return null;}(_0x4951d5)['toUpperCase']()+'_LIST_'+_0x4951d5['toUpperCase']()['replace'](/-/g,'_');}}const Lt=['disc','circle','square'],It=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class TrackChangesEmoji extends _0x5a485e{['afterInit'](){const _0x2c4f92=this['editor'];_0x2c4f92['commands']['get']('emoji')&&_0x2c4f92['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class TrackChangesEnterCommand extends _0x5a485e{static get['requires'](){return[lt];}['init'](){const _0x4f225a=this['editor'],_0xa64bf0=_0x4f225a['plugins']['get']('TrackChangesEditing'),_0x271c7b=_0x4f225a['commands']['get']('enter');_0xa64bf0['enableCommand']('enter',()=>{_0x4f225a['model']['change'](_0x426925=>{const _0x4f0ac3=_0x4f225a['model']['document']['selection'],_0x40191d=_0x4f0ac3['getFirstPosition'](),_0x491aaa=_0x53b34c['fromRange'](_0x4f0ac3['getFirstRange']());if(_0x271c7b['enterBlock'](_0x426925)){const _0x2c8c4a=_0x4f225a['model']['createPositionAt'](_0x40191d['parent']['nextSibling'],0x0),_0x38abe8=_0x426925['createRange'](_0x40191d,_0x2c8c4a);_0xa64bf0['markInsertion'](_0x38abe8);}else _0x426925['setSelection'](_0x426925['createRange'](_0x491aaa['end']));_0x491aaa['detach'](),_0x271c7b['fire']('afterExecute',{'writer':_0x426925});});});}}class TrackChangesFindAndReplace extends _0x5a485e{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x365bc6=this['editor']['plugins']['get']('TrackChangesEditing');_0x365bc6['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x365bc6['enableCommand']('findNext'),_0x365bc6['enableCommand']('findPrevious'),_0x365bc6['enableCommand']('replace'),_0x365bc6['enableCommand']('replaceAll');}['handleFindCommand'](_0x2dc49d,_0x19cd1f,_0x1f6606={}){const _0xc0f7ec=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2dc49d(_0x26e241=>{let _0x236c16=('string'==typeof _0x19cd1f?_0xc0f7ec['findByTextCallback'](_0x19cd1f,_0x1f6606):_0x19cd1f)(_0x26e241);Array['isArray'](_0x236c16)&&(_0x236c16={'results':_0x236c16,'searchText':'string'==typeof _0x19cd1f?_0x19cd1f:''});const _0x4a6982=_0x236c16['results']['filter'](_0x2555e9=>!0x1===this['_isInDeletionRange'](_0x2555e9,_0x26e241['item']));return{..._0x236c16,'results':_0x4a6982};},_0x1f6606);}['_isInDeletionRange'](_0x1357dc,_0x5d46f5){const _0x4e89f9=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5d46f5,_0x1357dc['start']),this['editor']['model']['createPositionAt'](_0x5d46f5,_0x1357dc['end']));for(const _0x4e68ce of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4e89f9['getIntersection'](_0x4e68ce['getRange']()))return!0x0;return!0x1;}}const bt=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class TrackChangesFont extends _0x5a485e{['afterInit'](){const _0x396a2d=this['editor']['locale'],_0x49a601=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x17581f,commandName:_0x233683}of bt)this['editor']['plugins']['has'](_0x17581f)&&_0x49a601['enableDefaultAttributesIntegration'](_0x233683);_0x49a601['descriptionFactory']['registerAttributeLabel']('fontSize',Tt(_0x396a2d,'FORMAT_FONT_SIZE')),_0x49a601['descriptionFactory']['registerAttributeLabel']('fontFamily',Tt(_0x396a2d,'FORMAT_FONT_FAMILY')),_0x49a601['descriptionFactory']['registerAttributeLabel']('fontColor',Tt(_0x396a2d,'FORMAT_FONT_COLOR')),_0x49a601['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Tt(_0x396a2d,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f2ae1=this['editor'],_0x4d86af=_0x4f2ae1['locale'];_0x4f2ae1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39f017=>{const _0x378bad=_0x4d86af['t'];if('formatInline'!=_0x39f017['type'])return;const {data:_0x891b31}=_0x39f017;if(null!=_0x891b31){if('fontSize'==_0x891b31['commandName']){const _0x33a242=_0x891b31['commandParams'][0x0]['value'];if(_0x33a242){const _0x4f5efe=_0x378bad(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5c4be8=>_0x5c4be8['model']==_0x33a242)['title'])['toLowerCase']();return{'type':'format','content':Tt(_0x4d86af,'*Set\x20font\x20size:*\x20%0',_0x4f5efe)};}return{'type':'format','content':Tt(_0x4d86af,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x891b31['commandName']){const _0x303e99=_0x891b31['commandParams'][0x0]['value'];return _0x303e99?{'type':'format','content':Tt(_0x4d86af,'*Set\x20font\x20family:*\x20%0',_0x303e99)}:{'type':'format','content':Tt(_0x4d86af,'*Reset\x20font\x20family*')};}if('fontColor'==_0x891b31['commandName']){const _0x330e17=_0x891b31['commandParams'][0x0]['value'];if(_0x330e17){const _0x12204a=_0x4d4289(this['editor']['config']['get']('fontColor.colors'))['find'](_0x13ccdf=>_0x13ccdf['model']==_0x330e17);let _0x11414e=_0x330e17,_0x46ff60='';return _0x12204a&&(_0x11414e=_0x12204a['label'],_0x46ff60=_0x378bad(_0x11414e)['toLowerCase']()),{'type':'format','content':Tt(_0x4d86af,'*Set\x20font\x20color:*\x20%0',_0x46ff60)['trim'](),'color':{'value':_0x330e17,'title':_0x46ff60||_0x11414e}};}return{'type':'format','content':Tt(_0x4d86af,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x891b31['commandName']){const _0x14bef8=_0x891b31['commandParams'][0x0]['value'];if(_0x14bef8){const _0x9bc013=_0x4d4289(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3c5e7f=>_0x3c5e7f['model']==_0x14bef8);let _0x2b5854=_0x14bef8,_0x3eed3d='';return _0x9bc013&&(_0x2b5854=_0x9bc013['label'],_0x3eed3d=_0x378bad(_0x2b5854)['toLowerCase']()),{'type':'format','content':Tt(_0x4d86af,'*Set\x20font\x20background\x20color:*\x20%0',_0x3eed3d)['trim'](),'color':{'value':_0x14bef8,'title':_0x3eed3d||_0x2b5854}};}return{'type':'format','content':Tt(_0x4d86af,'*Reset\x20font\x20background\x20color*')};}}});}}class TrackChangesFootnotes extends _0x5a485e{['afterInit'](){const {plugins:_0x4d8ae0}=this['editor'];_0x4d8ae0['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x4d8ae0['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x3558b8,plugins:_0xa5b78a,commands:_0x43bbe4}=this['editor'],_0xa05bfb=_0xa5b78a['get']('TrackChangesEditing');_0x43bbe4['get']('footnotesStyle')&&_0xa05bfb['enableDefaultAttributesIntegration']('footnotesStyle'),_0x43bbe4['get']('footnotesStart')&&_0xa05bfb['enableDefaultAttributesIntegration']('footnotesStart'),_0xa05bfb['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Tt(_0x3558b8,'FORMAT_FOOTNOTES_LIST_STYLE')),_0xa05bfb['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Tt(_0x3558b8,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x38400d=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x45bb8d,commands:_0x38e7be}=this['editor'];_0x38e7be['get']('insertFootnote')&&_0x38400d['enableCommand']('insertFootnote'),_0x38400d['descriptionFactory']['registerElementLabel']('footnoteRef',_0x4412f8=>Tt(_0x45bb8d,'ELEMENT_FOOTNOTE_REF',_0x4412f8)),_0x38400d['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x3a1a7c=>Tt(_0x45bb8d,'ELEMENT_FOOTNOTE_DEFINITION',_0x3a1a7c)),_0x38400d['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x4da442=>Tt(_0x45bb8d,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x4da442));}}class TrackChangesFormatPainter extends _0x5a485e{['afterInit'](){const _0xd889d8=this['editor'],_0x2cc5fe=_0xd889d8['plugins']['get']('TrackChangesEditing'),_0x33ec47=_0xd889d8['commands']['get']('copyFormat'),_0x1ead47=_0xd889d8['commands']['get']('pasteFormat');_0x33ec47&&_0x1ead47&&(_0x2cc5fe['enableDefaultAttributesIntegration']('pasteFormat'),_0x2cc5fe['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3c8271=this['editor'],_0x3caa49=_0x3c8271['locale'];_0x3c8271['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13ce65=>{if('formatBlock'!=_0x13ce65['type']&&'formatInline'!=_0x13ce65['type'])return;const {data:_0x5a571c}=_0x13ce65;if(_0x5a571c&&'pasteFormat'===_0x5a571c['commandName']){const _0x541bbf=[],_0x2a3556=_0x5a571c['commandParams'][0x0];for(const [_0x7f2b9,_0x541577]of Object['entries'](_0x2a3556))_0x541bbf['push'](At(_0x3c8271,_0x7f2b9,_0x541577));return _0x541bbf['length']?{'type':'format','content':Tt(_0x3caa49,'*Set\x20format\x20to:*\x20%0',_0x541bbf['join'](',\x20'))}:{'type':'format','content':Tt(_0x3caa49,'*Remove\x20all\x20formatting*')};}});}}function At(_0x19fcb2,_0x504f59,_0x3504f3){const _0x4c2dfc=_0x19fcb2['locale']['t'],_0x4eb8e7=_0x504f59['split'](/(?=[A-Z])/)['join']('\x20'),_0x84bf0e=_0x4c2dfc(_0x4eb8e7['charAt'](0x0)['toUpperCase']()+_0x4eb8e7['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3504f3)return _0x84bf0e;if('fontColor'===_0x504f59||'fontBackgroundColor'===_0x504f59){const _0x4ea767=_0x4d4289(_0x19fcb2['config']['get']('fontColor.colors'))['find'](_0x31d4d3=>_0x31d4d3['model']==_0x3504f3);return _0x84bf0e+'\x20('+(_0x4ea767?_0x4c2dfc(_0x4ea767['label'])['toLowerCase']():_0x3504f3)+')';}if('fontSize'===_0x504f59&&isNaN(parseFloat(_0x3504f3))){const _0x3fd363=_0x19fcb2['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x19fcb2['config']['get']('fontSize.options'))['find'](_0x3d0e6=>_0x3d0e6['model']==_0x3504f3);return _0x84bf0e+'\x20('+(_0x3fd363?_0x4c2dfc(_0x3fd363['title'])['toLowerCase']():_0x3504f3)+')';}return _0x84bf0e+'\x20('+_0x3504f3+')';}class TrackChangesHeading extends _0x5a485e{['_headingOptions'];['afterInit'](){const _0x4dd746=this['editor'];if(!_0x4dd746['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4dd746['config']['get']('heading.options');const _0x200e12=_0x4dd746['locale'],_0x50c92d=_0x4dd746['plugins']['get']('TrackChangesEditing');_0x50c92d['enableDefaultAttributesIntegration']('heading');for(const _0xdab3b7 of this['_headingOptions'])'paragraph'!=_0xdab3b7['model']&&_0x50c92d['descriptionFactory']['registerElementLabel'](_0xdab3b7['model'],_0x188d7a=>{const _0x64af8d=this['_getHeadingLevel'](_0xdab3b7['model']);return null!==_0x64af8d?_0x10b7e3(_0x188d7a,_0x64af8d):_0x4c7d2c(_0x188d7a,_0xdab3b7['title']);});function _0x10b7e3(_0x611d13,_0x2c75b8){return Tt(_0x200e12,'ELEMENT_HEADING',[_0x611d13,_0x2c75b8]);}function _0x4c7d2c(_0x18ce45,_0x48ede4){return Tt(_0x200e12,'ELEMENT_HEADING_CUSTOM',[_0x18ce45,_0x48ede4]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4186b1=this['editor'],_0x5a22e4=_0x4186b1['locale'];function _0x45f4cd(_0x15bf73,_0x5d1271){return Tt(_0x5a22e4,'ELEMENT_HEADING_CUSTOM',[_0x15bf73,_0x5d1271]);}_0x4186b1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f8c0a=>{if('formatBlock'!=_0x2f8c0a['type'])return;const {data:_0x22e5ab}=_0x2f8c0a;if(_0x22e5ab&&'heading'==_0x22e5ab['commandName']){const _0x2bd7c3=_0x22e5ab['commandParams'][0x0]['value'],_0x5cc8d6=this['_getHeadingLevel'](_0x2bd7c3);if(null!==_0x5cc8d6)return{'type':'format','content':Tt(_0x5a22e4,'*Change\x20to:*\x20%0',(_0x6d6de2=0x1,_0x4f87ec=_0x5cc8d6,Tt(_0x5a22e4,'ELEMENT_HEADING',[_0x6d6de2,_0x4f87ec])))};const _0x25ba88=this['_headingOptions']['find'](_0x52f85b=>_0x52f85b['model']===_0x2bd7c3)['title'];return{'type':'format','content':Tt(_0x5a22e4,'*Change\x20to:*\x20%0',_0x45f4cd(0x1,_0x25ba88))};}var _0x6d6de2,_0x4f87ec;});}['_getHeadingLevel'](_0x514ec8){const _0x4b6653=_0x514ec8['match'](/^heading(\d+)/);if(_0x4b6653)return _0x4b6653[0x1];const _0x10d7f8=this['_headingOptions']?.['find'](_0x34c7c7=>_0x34c7c7['model']==_0x514ec8);if(_0x10d7f8&&_0x10d7f8['view']){const _0x4c53c8=_0x10d7f8['view'],_0x5dab0d=(_0x4c53c8['name']??_0x4c53c8)['match'](/^h(\d+)/);if(_0x5dab0d)return _0x5dab0d[0x1];}return null;}}class TrackChangesHighlight extends _0x5a485e{['afterInit'](){const _0x54023b=this['editor'];if(!_0x54023b['plugins']['has']('HighlightEditing'))return;const _0x340703=_0x54023b['plugins']['get']('TrackChangesEditing'),_0x3495bb=_0x54023b['locale'];_0x340703['enableDefaultAttributesIntegration']('highlight'),_0x340703['descriptionFactory']['registerAttributeLabel']('highlight',Tt(_0x3495bb,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20825f=this['editor'],_0x3ccbdf=_0x20825f['locale'];_0x20825f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31623b=>{if('formatInline'!=_0x31623b['type'])return;const {data:_0x3ac2e6}=_0x31623b;if(_0x3ac2e6&&'highlight'==_0x3ac2e6['commandName']){const _0x5c826b=_0x3ccbdf['t'],_0x315af1=_0x3ac2e6['commandParams'][0x0]['value'];if(_0x315af1){const _0x27878c=_0x20825f['config']['get']('highlight.options')['find'](_0x276638=>_0x276638['model']==_0x315af1),_0x967f94=_0x5c826b(_0x27878c['title'])['toLowerCase']();return{'type':'format','content':Tt(_0x3ccbdf,'*Set\x20highlight:*\x20%0',_0x967f94),'color':{'value':_0x27878c['color'],'title':_0x27878c['title']}};}return{'type':'format','content':Tt(_0x3ccbdf,'*Remove\x20highlight*',Tt(_0x3ccbdf,'FORMAT_HIGHLIGHT'))};}});}}class TrackChangesHorizontalLine extends _0x5a485e{['afterInit'](){const _0x49c42d=this['editor'];if(!_0x49c42d['plugins']['has']('HorizontalLineEditing'))return;_0x49c42d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4877b5=_0x49c42d['plugins']['get']('TrackChangesEditing'),_0x3dda36=_0x49c42d['locale'];_0x4877b5['descriptionFactory']['registerElementLabel']('horizontalLine',_0x45217f=>Tt(_0x3dda36,'ELEMENT_HORIZONTAL_LINE',_0x45217f));}}class TrackChangesHtmlEmbed extends _0x5a485e{['afterInit'](){const _0xc27733=this['editor'];if(!_0xc27733['plugins']['has']('HtmlEmbed'))return;const _0x1affcc=_0xc27733['plugins']['get']('TrackChangesEditing'),_0x222a24=_0xc27733['locale'];_0x1affcc['descriptionFactory']['registerElementLabel']('rawHtml',_0x3b0887=>Tt(_0x222a24,'ELEMENT_HTML_EMBED',_0x3b0887)),_0x1affcc['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1affcc['descriptionFactory']['registerDescriptionCallback'](_0xa8491=>{if('attribute'!=_0xa8491['type'])return;const {data:_0x556c70}=_0xa8491;if(_0x556c70&&'value'==_0x556c70['key']&&_0xa8491['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x33a22a=Tt(_0x222a24,'ELEMENT_HTML_EMBED');return{'type':'format','content':Tt(_0x222a24,'*Change\x20%0\x20content*',_0x33a22a)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x33ced2=this['editor'],_0x2d7f50=_0x33ced2['locale'];_0x33ced2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa4f8f5=>{if('formatBlock'!=_0xa4f8f5['type'])return;const {data:_0x513f5b}=_0xa4f8f5;if(_0x513f5b&&'htmlEmbed'==_0x513f5b['commandName']){const _0x2baaae=Tt(_0x2d7f50,'ELEMENT_HTML_EMBED');return{'type':'format','content':Tt(_0x2d7f50,'*Change\x20%0\x20content*',_0x2baaae)};}});}}class TrackChangesImage extends _0x5a485e{['afterInit'](){const _0x14c807=this['editor'];if(!_0x14c807['plugins']['has']('ImageEditing'))return;const _0x1e5f1e=_0x14c807['plugins']['get']('TrackChangesEditing'),_0xeb0bc8=_0x14c807['plugins']['get']('ImageUtils'),_0x2a899c=_0x14c807['locale'];_0x1e5f1e['enableCommand']('insertImage'),_0x1e5f1e['descriptionFactory']['registerElementLabel']('imageBlock',_0xa77e99=>Tt(_0x2a899c,'ELEMENT_IMAGE',_0xa77e99)),_0x1e5f1e['descriptionFactory']['registerElementLabel']('imageInline',_0x50316f=>Tt(_0x2a899c,'ELEMENT_INLINE_IMAGE',_0x50316f)),_0x1e5f1e['descriptionFactory']['registerElementLabel']('caption',()=>Tt(_0x2a899c,'ELEMENT_CAPTION')),_0x14c807['plugins']['has']('ImageUploadEditing')&&_0x1e5f1e['enableCommand']('uploadImage'),_0x14c807['plugins']['has']('ImageBlockEditing')&&_0x14c807['plugins']['has']('ImageInlineEditing')&&(_0x1e5f1e['enableCommand']('imageTypeInline',(_0x3f043c,_0x321f3b)=>{const _0x2d4ea2=_0xeb0bc8['getClosestSelectedImageElement'](_0x14c807['model']['document']['selection']);_0x14c807['model']['change'](()=>{_0x1e5f1e['markBlockFormat'](_0x2d4ea2,{'commandName':'imageTypeInline','commandParams':[_0x321f3b]},[],'convertBlockImageToInline');});}),_0x1e5f1e['enableCommand']('imageTypeBlock',(_0x26b2fa,_0x5c823e)=>{_0x14c807['model']['change'](_0x43069e=>{let _0x18440f=_0xeb0bc8['getClosestSelectedImageElement'](_0x14c807['model']['document']['selection']),_0x546857=_0x43069e['createRangeOn'](_0x18440f);const _0xfde980=tt['fromPosition'](_0x546857['start'],'toPrevious'),_0x2cf00c=tt['fromPosition'](_0x546857['end'],'toNext');_0x1e5f1e['forceDefaultExecution'](()=>_0x26b2fa(_0x5c823e)),_0x18440f=_0xeb0bc8['getClosestSelectedImageElement'](_0x14c807['model']['document']['selection']),_0x546857=_0x43069e['createRangeOn'](_0x18440f);const _0x5c59a0=_0x43069e['createRange'](_0xfde980,_0x2cf00c);_0xfde980['detach'](),_0x2cf00c['detach'](),_0x1e5f1e['markBlockFormat'](_0x18440f,{'commandName':'imageTypeInline','commandParams':[_0x5c823e]},[],'convertInlineImageToBlock'),_0x5c59a0['start']['isBefore'](_0x546857['start'])&&_0x1e5f1e['markInsertion'](_0x43069e['createRange'](_0x5c59a0['start'],_0x546857['start']),'convertInlineImageToBlock'),_0x546857['end']['isBefore'](_0x5c59a0['end'])&&_0x1e5f1e['markInsertion'](_0x43069e['createRange'](_0x546857['end'],_0x5c59a0['end']),'convertInlineImageToBlock');});}),_0x1e5f1e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1e5f1e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1e5f1e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1e5f1e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1e5f1e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1e5f1e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x44c600])=>{const _0x1454c4=_0x1e5f1e['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1fb451=_0x44c600['start'],_0x1eda56=_0x44c600['end'];const _0x532a0a=_0x14c807['model']['schema']['getNearestSelectionRange'](_0x1fb451,'backward'),_0x1aa648=_0x14c807['model']['schema']['getNearestSelectionRange'](_0x1eda56,'forward');_0x532a0a['isCollapsed']&&(_0x1fb451=_0x532a0a['start']),_0x1aa648['isCollapsed']&&(_0x1eda56=_0x1aa648['end']),_0x1454c4([_0x14c807['model']['createRange'](_0x1fb451,_0x1eda56)]);}),_0x1e5f1e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1a3589),_0x1e5f1e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1a3589)),_0x14c807['plugins']['has']('ImageCaptionEditing')&&(_0x1e5f1e['enableCommand']('toggleImageCaption',(_0x27d203,_0x191704)=>{const _0x5f2f04=_0x14c807['plugins']['get']('ImageCaptionUtils');let _0x23d50=_0xeb0bc8['getClosestSelectedImageElement'](_0x14c807['model']['document']['selection']),_0x42bdfe=_0x5f2f04['getCaptionFromImageModelElement'](_0x23d50);_0x14c807['model']['change'](()=>{if(_0x42bdfe)return void _0x1e5f1e['markDeletion'](_0x14c807['model']['createRangeOn'](_0x42bdfe));const _0x2285cb=_0xeb0bc8['isBlockImage'](_0x23d50);_0x27d203(_0x191704),_0x23d50=_0xeb0bc8['getClosestSelectedImageElement'](_0x14c807['model']['document']['selection']),_0x42bdfe=_0x5f2f04['getCaptionFromImageModelElement'](_0x23d50),_0x1e5f1e['markInsertion'](_0x14c807['model']['createRangeOn'](_0x42bdfe),_0x2285cb?null:'imageCaption');});}),_0x1e5f1e['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1a3589));const _0x46f2f7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x242c32(_0x184b92,_0xdaa1fa){const _0x42dde4=_0x46f2f7['findIndex'](({type:_0x4cb483,subType:_0x56c3e5})=>_0x184b92['type']==_0x4cb483&&_0x184b92['subType']==_0x56c3e5),_0x37fdde=_0x46f2f7['findIndex'](({type:_0x42f3e7,subType:_0x277bf1})=>_0xdaa1fa['type']==_0x42f3e7&&_0xdaa1fa['subType']==_0x277bf1);if(_0x42dde4<0x0||_0x37fdde<0x0)return!0x1;const _0x49d214=_0x184b92['getFirstRange'](),_0xdf1e5f=_0xdaa1fa['getFirstRange']();if((0x0==_0x42dde4||0x1==_0x42dde4)&&0x2==_0x37fdde&&_0x49d214['isIntersecting'](_0xdf1e5f))return!0x0;if(0x2==_0x42dde4&&0x3==_0x37fdde){const _0x542fb3=_0x1e5f1e['_findSuggestions'](_0x49d214,'insertion')['filter'](({suggestion:_0x3a4c98,meta:_0x22b2a8})=>_0x22b2a8['isOwn']&&'convertInlineImageToBlock'==_0x3a4c98['subType']);if(_0x542fb3['length']>0x1&&_0xdf1e5f['end']['isEqual'](_0x49d214['start']))return!0x0;if(0x1==_0x542fb3['length']&&(_0x49d214['start']['isEqual'](_0xdf1e5f['end'])||_0x49d214['end']['isEqual'](_0xdf1e5f['start'])))return!0x0;}if(0x3==_0x42dde4&&0x3==_0x37fdde&&_0x49d214['start']['isBefore'](_0xdf1e5f['start'])){const _0x224bf2=_0x49d214['end']['nodeAfter'],_0x641ec=_0xdf1e5f['start']['nodeBefore'];return _0xeb0bc8['isBlockImage'](_0x224bf2)&&_0x224bf2===_0x641ec;}return!0x1;}function _0x1a3589(_0x4f93a9,_0x52339e){return _0x242c32(_0x4f93a9,_0x52339e)?[_0x4f93a9,_0x52339e]:_0x242c32(_0x52339e,_0x4f93a9)?[_0x52339e,_0x4f93a9]:null;}_0x14c807['plugins']['has']('ImageResize')&&(_0x1e5f1e['enableDefaultAttributesIntegration']('resizeImage'),_0x1e5f1e['descriptionFactory']['registerAttributeLabel']('resizedWidth',Tt(_0x2a899c,'FORMAT_IMAGE_SIZE'))),_0x14c807['plugins']['has']('ImageTextAlternativeEditing')&&_0x1e5f1e['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x14c807['plugins']['has']('PictureEditing')&&_0x1e5f1e['descriptionFactory']['registerDescriptionCallback'](_0x365fb7=>{if('attribute'!=_0x365fb7['type'])return;const {data:_0xf36495}=_0x365fb7;return _0xf36495&&'sources'==_0xf36495['key']?{'type':'format','content':''}:void 0x0;}),_0x14c807['plugins']['has']('ImageSizeAttributes')&&_0x1e5f1e['descriptionFactory']['registerDescriptionCallback'](_0x479e21=>{if('attribute'!=_0x479e21['type'])return;const {data:_0x45b6c9}=_0x479e21;return!_0x45b6c9||'width'!=_0x45b6c9['key']&&'height'!=_0x45b6c9['key']?void 0x0:{'type':'format','content':''};}),_0x1e5f1e['descriptionFactory']['registerDescriptionCallback'](_0x59470b=>{if(!!_0x46f2f7['find'](({type:_0x2f6ec2,subType:_0x36ca86})=>_0x59470b['type']==_0x2f6ec2&&_0x59470b['subType']==_0x36ca86))return _0x59470b['previous']?{}:void 0x0;}),_0x1e5f1e['descriptionFactory']['registerDescriptionCallback'](_0x4aaf1f=>{if('insertion'==_0x4aaf1f['type']||'deletion'==_0x4aaf1f['type']){const _0x5f2d22=_0x4aaf1f['getContainedElement']();if(_0x5f2d22&&_0x5f2d22['is']('element','caption'))return{'type':'insertion'==_0x4aaf1f['type']?'addObject':'removeObject','element':_0x5f2d22,'quantity':0x1};}}),_0x1e5f1e['descriptionFactory']['registerDescriptionCallback'](_0x4a8381=>'formatBlock'==_0x4a8381['type']&&'convertInlineImageToBlock'==_0x4a8381['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4a8381['type']&&'convertBlockImageToInline'==_0x4a8381['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1e5f1e['descriptionFactory']['registerDescriptionCallback'](_0x3cd649=>{if('attribute'!=_0x3cd649['type'])return;const {data:_0x3daeef}=_0x3cd649;if(!_0x3daeef||'alt'!=_0x3daeef['key'])return;const _0x9b50ba=_0x3daeef['newValue'];return _0x9b50ba?{'type':'format','content':Tt(_0x2a899c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x9b50ba+'\x22')}:{'type':'format','content':Tt(_0x2a899c,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x261c2f=this['editor'],_0x1d6c20=_0x261c2f['locale'];_0x261c2f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1bab96=>{if('formatBlock'!=_0x1bab96['type']&&'formatInline'!=_0x1bab96['type'])return;const {data:_0x1bad4f}=_0x1bab96;if(_0x1bad4f){if('imageTextAlternative'==_0x1bad4f['commandName']){const _0x2c5272=_0x1bad4f['commandParams'][0x0]['newValue'];return _0x2c5272?{'type':'format','content':Tt(_0x1d6c20,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2c5272+'\x22')}:{'type':'format','content':Tt(_0x1d6c20,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1bad4f['commandName']){const _0x43ef65=_0x1bad4f['commandParams'][0x0]['width'];return _0x43ef65?{'type':'format','content':Tt(_0x1d6c20,'*Set\x20image\x20width:*\x20%0',_0x43ef65)}:{'type':'format','content':Tt(_0x1d6c20,'*Reset\x20image\x20width*')};}}});}}class TrackChangesImageReplace extends _0x5a485e{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x421a39=this['editor']['locale'],_0x563a9d=this['editor']['plugins']['get']('TrackChangesEditing');_0x563a9d['enableDefaultAttributesIntegration']('replaceImageSource'),_0x563a9d['descriptionFactory']['registerDescriptionCallback'](_0x5e6d91=>{if('attribute'!=_0x5e6d91['type'])return;const {data:_0x21612b}=_0x5e6d91;return _0x21612b&&'src'==_0x21612b['key']?_0x21612b['newValue']&&_0x21612b['oldValue']?{'type':'format','content':Tt(_0x421a39,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2e089c=this['editor']['plugins']['get']('TrackChangesEditing');_0x2e089c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2e089c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2e089c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2e089c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22004c=this['editor'],_0x4a9d86=_0x22004c['locale'];_0x22004c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x517fc2=>{if('formatBlock'!=_0x517fc2['type']&&'formatInline'!=_0x517fc2['type'])return;const {data:_0x257cbc}=_0x517fc2;if(!_0x257cbc||'replaceImageSource'!=_0x257cbc['commandName'])return;return{'type':'format','content':Tt(_0x4a9d86,'*Format:*\x20replace\x20image\x20URL')};});}}class TrackChangesImageStyle extends _0x5a485e{['afterInit'](){const _0xe037f9=this['editor'];if(!_0xe037f9['plugins']['has']('ImageStyleEditing'))return;const _0x8502ef=_0xe037f9['plugins']['get']('TrackChangesEditing'),_0x333ba4=_0xe037f9['plugins']['get']('ImageUtils'),_0x267494={};_0x8502ef['enableCommand']('imageStyle',(_0x5ce535,_0x17392e)=>{const _0x59081e=_0xe037f9['plugins']['get']('Users')['me'],_0x33de1c=_0xe037f9['commands']['get']('imageStyle');let _0x3ccfc5=_0x333ba4['getClosestSelectedImageElement'](_0xe037f9['model']['document']['selection']),_0xde3a53=_0xe037f9['model']['createRangeOn'](_0x3ccfc5),_0x4f194c=_0x33de1c['value'];if(_0x4f194c==_0x17392e['value'])return;const _0x11da42={'commandName':'imageStyle','commandParams':[_0x17392e],'formatGroupId':_0x272311()};_0xe037f9['model']['change'](()=>{if(_0x8502ef['getSuggestions']()['filter'](_0x416d8b=>_0x416d8b['isInContent']&&_0x59081e==_0x416d8b['author']&&('formatBlock'==_0x416d8b['type']||'formatInline'==_0x416d8b['type'])&&('imageStylePreApply'==_0x416d8b['subType']||'imageStylePostApply'==_0x416d8b['subType'])&&_0x416d8b['getFirstRange']()['isEqual'](_0xde3a53))['forEach'](_0x16b3c6=>_0x8502ef['discardSuggestion'](_0x16b3c6['head'])),_0x3ccfc5=_0x333ba4['getClosestSelectedImageElement'](_0xe037f9['model']['document']['selection']),_0xde3a53=_0xe037f9['model']['createRangeOn'](_0x3ccfc5),_0x33de1c['refresh'](),_0xe037f9['commands']['get']('imageTypeInline')['refresh'](),_0xe037f9['commands']['get']('imageTypeBlock')['refresh'](),_0x4f194c=_0x33de1c['value'],_0x4f194c!=_0x17392e['value'])return _0x333ba4['isInlineImage'](_0x3ccfc5)&&_0x33de1c['shouldConvertImageType'](_0x17392e['value'],_0x3ccfc5)?(_0x5ce535({..._0x17392e,'setImageSizes':!0x1}),_0x3ccfc5=_0x333ba4['getClosestSelectedImageElement'](_0xe037f9['model']['document']['selection']),void _0x8502ef['markBlockFormat'](_0x3ccfc5,{..._0x11da42,'commandReversedParams':[{'value':_0x4f194c||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x333ba4['isBlockImage'](_0x3ccfc5)?_0x8502ef['markBlockFormat'](_0x3ccfc5,_0x11da42,[],'imageStylePostApply'):_0x8502ef['markInlineFormat'](_0xde3a53,_0x11da42,'imageStylePostApply'));});});for(const _0x57adce of _0xe037f9['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x267494[_0x57adce['name']]=_0x57adce['title']['toLowerCase']();_0x8502ef['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x8502ef['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x8502ef['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x8502ef['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2deda6])=>{_0x333ba4['setImageNaturalSizeAttributes'](_0x2deda6['getContainedElement']());}),_0x8502ef['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x43e8a3,_0x4277ec)=>{_0x8502ef['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x43e8a3,{'commandName':_0x4277ec['commandName'],'commandParams':_0x4277ec['commandReversedParams']});}),_0x8502ef['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x11c2e4,_0x3047c2){if(_0x83fa3d(_0x11c2e4,_0x3047c2))return[_0x11c2e4,_0x3047c2];if(_0x83fa3d(_0x3047c2,_0x11c2e4))return[_0x3047c2,_0x11c2e4];return null;});const _0xc4f6a9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x83fa3d(_0x25e958,_0x38ae9c){const _0x25d500=_0xc4f6a9['findIndex'](({type:_0x27ca94,subType:_0x1e3b75})=>_0x25e958['type']==_0x27ca94&&_0x25e958['subType']==_0x1e3b75),_0x223a69=_0xc4f6a9['findIndex'](({type:_0x5c3601,subType:_0x5ee48e})=>_0x38ae9c['type']==_0x5c3601&&_0x38ae9c['subType']==_0x5ee48e);if(_0x25d500<0x0||_0x223a69<0x0)return!0x1;const _0x2dc532=_0x25e958['getFirstRange'](),_0x793ddf=_0x38ae9c['getFirstRange']();if((0x0==_0x25d500||0x1==_0x25d500)&&0x2==_0x223a69&&_0x2dc532['isIntersecting'](_0x793ddf))return!0x0;if(0x2==_0x25d500&&0x3==_0x223a69){const _0x278f2f=_0x8502ef['_findSuggestions'](_0x2dc532,'insertion')['filter'](({suggestion:_0x124051,meta:_0x2b65df})=>_0x2b65df['isOwn']&&'convertInlineImageToBlock'==_0x124051['subType']);if(_0x278f2f['length']>0x1&&_0x793ddf['end']['isEqual'](_0x2dc532['start']))return!0x0;if(0x1==_0x278f2f['length']&&(_0x2dc532['start']['isEqual'](_0x793ddf['end'])||_0x2dc532['end']['isEqual'](_0x793ddf['start'])))return!0x0;}if(0x3==_0x25d500&&0x3==_0x223a69&&_0x2dc532['start']['isBefore'](_0x793ddf['start'])){const _0xfce3eb=_0x2dc532['end']['nodeAfter'],_0x2d6c3a=_0x793ddf['start']['nodeBefore'];return _0x333ba4['isBlockImage'](_0xfce3eb)&&_0xfce3eb===_0x2d6c3a;}return!0x1;}_0xe037f9['model']['document']['registerPostFixer'](()=>{let _0x1ec74e=!0x1;const _0x4dc88b=Array['from'](_0xe037f9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x472dee,data:_0x52d5ea}of _0x4dc88b){const {group:_0x3e729e,type:_0x2a0418,subType:_0x5cef58,id:_0x3b43df}=_0x5cc320(_0x472dee);if('suggestion'==_0x3e729e&&_0x8502ef['hasSuggestion'](_0x3b43df)){if('formatBlock'==_0x2a0418&&('imageStylePreApply'==_0x5cef58||'imageStylePostApply'==_0x5cef58)){const _0xee78c9=_0x8502ef['getSuggestion'](_0x3b43df);if(_0x52d5ea['newRange']){const _0x1620b2=_0xee78c9['getFirstRange']()['getContainedElement']();if(_0x333ba4['isBlockImage'](_0x1620b2))continue;_0x8502ef['discardSuggestion'](_0xee78c9),_0x1ec74e=!0x0;}}if('insertion'==_0x2a0418&&'imageCaption'==_0x5cef58&&!_0x52d5ea['newRange']){const _0x1cf807=_0x8502ef['getSuggestion'](_0x3b43df);_0x1cf807['next']&&_0x1cf807['next']['isInContent']&&(_0x8502ef['discardSuggestion'](_0x1cf807['next']),_0x1ec74e=!0x0);}}}return _0x1ec74e;}),this['_registerLegacyDescription'](_0x267494);}['_registerLegacyDescription'](_0x310a7b){const _0x2ce0dc=this['editor'],_0x11b49e=_0x2ce0dc['locale'];_0x2ce0dc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a47a4=>{if('formatBlock'!=_0x1a47a4['type']&&'formatInline'!=_0x1a47a4['type'])return;const {data:_0x142b9e}=_0x1a47a4;if(!_0x142b9e||'imageStyle'!=_0x142b9e['commandName'])return;const _0x385e1e=_0x142b9e['commandParams'][0x0]['value'];return _0x3049a4('side'===_0x385e1e?Tt(_0x11b49e,'FORMAT_SIDE_IMAGE'):_0x310a7b[_0x385e1e]||_0x385e1e);function _0x3049a4(_0x8b4592){return{'type':'format','content':Tt(_0x11b49e,'*Format:*\x20%0',_0x8b4592)};}});}}class TrackChangesImportWord extends _0x5a485e{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3ee621){super(_0x3ee621),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xeb24ae=this['editor'],_0x18aeb1=_0xeb24ae['commands']['get']('importWord'),_0x510f3d=_0xeb24ae['commands']['get']('trackChanges');_0x18aeb1&&(_0x18aeb1['on']('execute',(_0x1934cd,[,_0x58023b])=>{this['_trackChangesValueDuringImport']=_0x510f3d['value'],_0x58023b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x18aeb1,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x18aeb1,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x510f3d['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xeb24ae['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1d9f8c,_0x84a103){const {suggestions:_0x1d1b27}=_0x84a103,_0x3deb9d=this['editor']['commands']['get']('trackChanges'),_0x3ea429=_0x3deb9d['value'];this['_trackChangesValueDuringImport']!==_0x3ea429&&(_0x3deb9d['execute'](),this['_trackChangesExecuted']=!0x0),_0x1d1b27&&_0x1d1b27['forEach'](({id:_0x8d9a1c,type:_0x70a7c5,author:_0x4b154c,created_at:_0x382d95})=>{const _0x4330e8={'id':_0x8d9a1c,'type':_0x70a7c5,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4b154c,'createdAt':_0x382d95?new Date(_0x382d95):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4330e8);});}}class TrackChangesIndent extends _0x5a485e{['afterInit'](){const _0x17dca7=this['editor'],_0x278492=_0x17dca7['plugins']['get']('TrackChangesEditing');if(_0x17dca7['plugins']['has']('IndentEditing')&&(_0x278492['enableCommand']('indent'),_0x278492['enableCommand']('outdent')),_0x17dca7['plugins']['has']('IndentBlock')){for(const _0x76a430 of['indentBlock','outdentBlock'])_0x278492['enableDefaultAttributesIntegration'](_0x76a430);if(_0x17dca7['plugins']['has']('ListEditing')){for(const _0x55cd22 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x278492['enableDefaultAttributesIntegration'](_0x55cd22);}}const _0x2df02b=_0x17dca7['locale'];_0x278492['descriptionFactory']['registerAttributeLabel']('blockIndent',Tt(_0x2df02b,'FORMAT_INDENT')),_0x278492['descriptionFactory']['registerAttributeLabel']('blockIndentList',Tt(_0x2df02b,'FORMAT_INDENT')),_0x278492['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Tt(_0x2df02b,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x455807=this['editor'],_0x5648c6=_0x455807['locale'],_0x164825=_0x455807['plugins']['get']('TrackChangesEditing');_0x164825['descriptionFactory']['registerDescriptionCallback'](_0x113eb7=>{if('formatBlock'!=_0x113eb7['type'])return;const {data:_0x2712d3}=_0x113eb7;if(!_0x2712d3)return;if('indentBlock'!=_0x2712d3['commandName']&&'outdentBlock'!=_0x2712d3['commandName'])return;const _0x232f6d=_0x113eb7['getItems']()[0x0],_0x3c63cf=_0x164825['descriptionFactory']['getItemLabel'](_0x232f6d);return'indentBlock'==_0x2712d3['commandName']?{'type':'format','content':Tt(_0x5648c6,'*Indent:*\x20%0',_0x3c63cf)}:'outdentBlock'==_0x2712d3['commandName']?{'type':'format','content':Tt(_0x5648c6,'*Outdent:*\x20%0',_0x3c63cf)}:void 0x0;});}}class TrackChangesInputCommand extends _0x5a485e{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class TrackChangesLink extends _0x5a485e{['afterInit'](){const _0x87ace4=this['editor'];if(!_0x87ace4['plugins']['has']('LinkEditing'))return;const _0x5287a0=_0x87ace4['plugins']['get']('TrackChangesEditing'),_0x5554eb=_0x87ace4['commands']['get']('link');_0x5287a0['enableDefaultAttributesIntegration']('link'),_0x5287a0['enableDefaultAttributesIntegration']('unlink');for(const _0x3dc0e6 of _0x5554eb['manualDecorators'])_0x5287a0['descriptionFactory']['registerAttributeLabel'](_0x3dc0e6['id'],'link\x20('+_0x3dc0e6['label']['toLowerCase']()+')');_0x5287a0['descriptionFactory']['registerDescriptionCallback'](_0xc8c687=>{if('attribute'!=_0xc8c687['type'])return;const {data:_0x4f7fa8}=_0xc8c687;if(!_0x4f7fa8||'linkHref'!=_0x4f7fa8['key'])return;const _0x32fcb9=_0x4f7fa8['newValue'],_0x934376=_0x87ace4['locale'];return{'type':'format','content':null==_0x32fcb9?Tt(_0x934376,'*Remove\x20link*'):Tt(_0x934376,'*Set\x20link:*\x20%0','\x22'+_0x32fcb9+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x175495=this['editor'],_0x124c56=_0x175495['locale'];_0x175495['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x120460=>{if('formatInline'!=_0x120460['type'])return;const {data:_0x4d2f49}=_0x120460;if(_0x4d2f49){if('link'==_0x4d2f49['commandName']){const _0x1778ba=_0x4d2f49['commandParams'][0x0];return{'type':'format','content':Tt(_0x124c56,'*Set\x20link:*\x20%0','\x22'+_0x1778ba+'\x22')};}return'unlink'==_0x4d2f49['commandName']?{'type':'format','content':Tt(_0x124c56,'*Remove\x20link*')}:void 0x0;}});}}class TrackChangesLegacyList extends _0x5a485e{['afterInit'](){const _0x2537e9=this['editor'],_0xead1d6=_0x2537e9['locale'];if(!_0x2537e9['plugins']['has']('LegacyListEditing'))return;const _0x461f01=_0x2537e9['plugins']['get']('TrackChangesEditing'),_0x991556=_0x2537e9['plugins']['has']('LegacyTodoListEditing');function _0x3d0793(_0x15cdac){return()=>{const _0x16114f=_0x2537e9['model']['document']['selection'],_0x3550af=_0x2537e9['commands']['get'](_0x15cdac);if(_0x3550af['value'])return void _0x2537e9['execute']('paragraph',{});const _0x367db9=_0x15cdac['slice'](0x0,-0x4),_0x1512b0=function(_0x42cf54,_0x5668f5,_0x76524b){let _0x36ca25=Array['from'](_0x42cf54)['filter'](_0x174d06=>function(_0x4a9d55,_0x3d600a){return _0x3d600a['checkChild'](_0x4a9d55['parent'],'listItem')&&!_0x3d600a['isObject'](_0x4a9d55);}(_0x174d06,_0x76524b));_0x36ca25=_0x36ca25['filter'](_0x70470b=>!_0x70470b['is']('element','listItem')||_0x70470b['getAttribute']('listType')!=_0x5668f5);const _0x3f0571=new Set();for(const _0x1d91f2 of _0x36ca25)_0x1d91f2['is']('element','listItem')?_0x3f0571['add'](St(_0x1d91f2)):_0x3f0571['add'](_0x1d91f2);return Array['from'](_0x3f0571);}(_0x16114f['getSelectedBlocks'](),_0x367db9,_0x2537e9['model']['schema']);_0x2537e9['model']['change'](()=>{for(const _0x41f7d8 of _0x1512b0)_0x461f01['markBlockFormat'](_0x41f7d8,{'commandName':_0x15cdac,'commandParams':[{'forceValue':!_0x3550af['value']}],'formatGroupId':'blockName'},yt(_0x41f7d8));});};}function _0xa40f1e(_0x5c4139){return()=>{const _0x5b09d8=function(_0x3955df){let _0x429c04=Array['from'](_0x3955df);const _0x263433=_0x429c04['findIndex'](_0x2b0507=>'listItem'!=_0x2b0507['name']);return _0x263433>-0x1&&(_0x429c04=_0x429c04['slice'](0x0,_0x263433)),_0x429c04;}(_0x2537e9['model']['document']['selection']['getSelectedBlocks']()),_0x10a85b=_0x2537e9['model']['createRange'](_0x2537e9['model']['createPositionAt'](_0x5b09d8[0x0],'before'),_0x2537e9['model']['createPositionAt'](_0x5b09d8[_0x5b09d8['length']-0x1],'end'));_0x2537e9['model']['change'](()=>{_0x461f01['markBlockFormat'](_0x10a85b,{'commandName':_0x5c4139,'commandParams':[],'formatGroupId':'listIndent'},function(_0x341df6){const _0x26a7b9=new Set();for(const _0x29d10f of _0x341df6){let _0x3a9c22=_0x29d10f['nextSibling'];for(;_0x3a9c22&&_0x3a9c22['getAttribute']('listIndent')>_0x29d10f['getAttribute']('listIndent');)_0x26a7b9['add'](_0x3a9c22),_0x3a9c22=_0x3a9c22['nextSibling'];}return Array['from'](_0x26a7b9);}(_0x5b09d8));});};}_0x461f01['enableCommand']('numberedList',_0x3d0793('numberedList')),_0x461f01['enableCommand']('bulletedList',_0x3d0793('bulletedList')),_0x991556&&_0x461f01['enableCommand']('todoList',_0x3d0793('todoList')),_0x461f01['enableCommand']('indentList',_0xa40f1e('indentList')),_0x461f01['enableCommand']('outdentList',_0xa40f1e('outdentList')),_0x991556&&_0x461f01['enableCommand']('checkTodoList',()=>{const _0x2955ed=_0x2537e9['commands']['get']('checkTodoList'),_0x138b67=Array['from'](_0x2955ed['_selectedElements']);_0x138b67['filter'](_0x11eec1=>_0x11eec1['getAttribute']('todoListChecked')!=_0x2955ed['value']),_0x2537e9['model']['change'](()=>{for(const _0x218351 of _0x138b67)_0x461f01['markBlockFormat'](_0x218351,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2955ed['value']}]});});}),_0x461f01['descriptionFactory']['registerElementLabel']('listItem',_0xafc6b=>Tt(_0xead1d6,'ELEMENT_LIST_ITEM',_0xafc6b)),_0x461f01['descriptionFactory']['registerDescriptionCallback'](_0x2413ac=>{if('formatBlock'!=_0x2413ac['type']&&'formatInline'!=_0x2413ac['type'])return;const {data:_0x5f139d}=_0x2413ac;if(_0x5f139d){if('numberedList'==_0x5f139d['commandName']||'bulletedList'==_0x5f139d['commandName']||'todoList'==_0x5f139d['commandName'])switch(_0x5f139d['commandName']['replace']('List','')){case'bulleted':return _0x199ca3(Tt(_0xead1d6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x199ca3(Tt(_0xead1d6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x199ca3(Tt(_0xead1d6,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5f139d['commandName'])return{'type':'format','content':Tt(_0xead1d6,'*Indent:*\x20%0',Tt(_0xead1d6,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5f139d['commandName'])return{'type':'format','content':Tt(_0xead1d6,'*Outdent:*\x20%0',Tt(_0xead1d6,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5f139d['commandName'])return _0x5f139d['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0xead1d6,'*Check\x20item*')}:{'type':'format','content':Tt(_0xead1d6,'*Uncheck\x20item*')};}function _0x199ca3(_0x1dec10){return{'type':'format','content':Tt(_0xead1d6,'*Change\x20to:*\x20%0',_0x1dec10)};}});}}function St(_0x46afe4){const _0x2be50c=_0x46afe4['getAttribute']('listIndent');if(0x0==_0x2be50c)return _0x46afe4;let _0x32019d=_0x46afe4;for(;_0x46afe4['previousSibling']&&_0x46afe4['previousSibling']['is']('element','listItem');){const _0x43f679=_0x46afe4['previousSibling']['getAttribute']('listIndent');if(_0x43f679==_0x2be50c)_0x32019d=_0x46afe4['previousSibling'];else{if(_0x43f679<_0x2be50c)break;}_0x46afe4=_0x46afe4['previousSibling'];}return _0x32019d;}function yt(_0x5054a5){const _0x5aeaa8=[];if(_0x5054a5['is']('element','listItem')&&_0x5054a5['getAttribute']('listIndent')>0x0){let _0x47d19c=_0x5054a5['nextSibling'];for(;_0x47d19c&&'listItem'==_0x47d19c['name']&&_0x47d19c['getAttribute']('listIndent')==_0x5054a5['getAttribute']('listIndent');)_0x5aeaa8['push'](_0x47d19c),_0x47d19c=_0x47d19c['nextSibling'];}return _0x5aeaa8;}class TrackChangesLegacyListProperties extends _0x5a485e{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x55e346=this['editor']['config']['get']('list.properties'),_0x18f3cd=this['editor']['plugins']['get']('TrackChangesEditing');_0x55e346['styles']&&_0x18f3cd['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x55e346['reversed']&&_0x18f3cd['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x55e346['startIndex']&&_0x18f3cd['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x18f3cd['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x328fb6,_0x2f7a5e={}){const _0x431451=this['editor']['plugins']['get']('TrackChangesEditing'),_0xbcdc6a=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x431451['markMultiRangeBlockFormat'](_0xbcdc6a,{'commandName':'listStyle','commandParams':[{'type':_0x2f7a5e['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5d6b4d,_0x53f434={}){const _0x177783=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b5d72=this['_getSuggestionBlocks'](_0x2bb496=>_0x2bb496['is']('element','listItem')&&'numbered'===_0x2bb496['getAttribute']('listType'));if(_0x1b5d72['length']<0x1)return;const _0x93ffe=_0x1b5d72['map'](_0xaf3e8e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xaf3e8e,'before'),this['editor']['model']['createPositionAt'](_0xaf3e8e,0x0)));this['editor']['model']['change'](()=>{_0x177783['markMultiRangeBlockFormat'](_0x93ffe,{'commandName':'listReversed','commandParams':[{'reversed':_0x53f434['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x368a05,_0x467ef6={}){const _0x24b808=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5657a6=this['_getSuggestionBlocks'](_0x55bb76=>_0x55bb76['is']('element','listItem')&&'numbered'===_0x55bb76['getAttribute']('listType'));if(_0x5657a6['length']<0x1)return;const _0x45916b=_0x5657a6['map'](_0x2271dd=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2271dd,'before'),this['editor']['model']['createPositionAt'](_0x2271dd,0x0)));this['editor']['model']['change'](()=>{_0x24b808['markMultiRangeBlockFormat'](_0x45916b,{'commandName':'listStart','commandParams':[{'startIndex':_0x467ef6['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1195be){if('formatBlock'!=_0x1195be['type']&&'formatInline'!=_0x1195be['type'])return;const _0x475a90=this['editor']['locale'],{data:_0x10fce0}=_0x1195be;if(!_0x10fce0)return;let _0x525081,_0x24c60a;switch(_0x10fce0['commandName']){case'listStyle':_0x525081='*Change\x20to:*\x20%0',_0x24c60a={'type':'format','content':Tt(_0x475a90,_0x525081,Tt(_0x475a90,this['_getTranslationKeyForListStyle'](_0x10fce0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x525081=_0x10fce0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x24c60a={'type':'format','content':Tt(_0x475a90,_0x525081)};break;case'listStart':_0x525081='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x24c60a={'type':'format','content':Tt(_0x475a90,_0x525081,_0x10fce0['commandParams'][0x0]['startIndex'])};}return _0x24c60a;}['_getSuggestionBlocksForListStyle'](){const _0x2ba96e=this['editor']['plugins']['get']('LegacyListUtils');let _0xc6695d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xc6695d[0x0]?.['is']('element','listItem')&&_0xc6695d['unshift'](..._0x2ba96e['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xc6695d[_0xc6695d['length']-0x1]?.['is']('element','listItem')&&_0xc6695d['push'](..._0x2ba96e['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xc6695d=[...new Set(_0xc6695d)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xc6695d=_0xc6695d['filter'](_0x284ba2=>_0x284ba2['is']('element','listItem'))),_0xc6695d;}['_getSuggestionBlocks'](_0xd6a96){const _0x257b5c=this['editor']['plugins']['get']('LegacyListUtils');let _0x503aaf=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xd6a96)['map'](_0x488480=>{const _0x49f457=this['editor']['model']['createPositionAt'](_0x488480,0x0);return[..._0x257b5c['getSiblingNodes'](_0x49f457,'backward'),..._0x257b5c['getSiblingNodes'](_0x49f457,'forward')];})['flat']();return _0x503aaf=[...new Set(_0x503aaf)],_0x503aaf;}['_getTranslationKeyForListStyle'](_0x39076c){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x39076c)||'default')['toUpperCase']()+'_LIST_'+_0x39076c['toUpperCase']()['replace'](/-/g,'_');}}class TrackChangesMediaEmbed extends _0x5a485e{['afterInit'](){const _0x425311=this['editor'];if(!_0x425311['plugins']['has']('MediaEmbedEditing'))return;const _0x1ade19=_0x425311['plugins']['get']('TrackChangesEditing'),_0x20021a=_0x425311['locale'];_0x1ade19['enableCommand']('mediaEmbed'),_0x1ade19['descriptionFactory']['registerElementLabel']('media',_0x12b644=>Tt(_0x20021a,'ELEMENT_MEDIA',_0x12b644));}}class TrackChangesMention extends _0x5a485e{['afterInit'](){const _0x55af4d=this['editor'];_0x55af4d['plugins']['has']('MentionEditing')&&_0x55af4d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class TrackChangesMergeFields extends _0x5a485e{['afterInit'](){const _0xcff689=this['editor'];if(!_0xcff689['plugins']['has']('MergeFieldsEditing'))return;const _0xb4828b=_0xcff689['plugins']['get']('TrackChangesEditing'),_0x516e37=_0xcff689['locale'];_0xb4828b['enableCommand']('insertMergeField'),_0xb4828b['enableCommand']('insertMergeFieldBlock'),_0xb4828b['enableCommand']('insertMergeFieldImage'),_0xb4828b['descriptionFactory']['registerElementLabel']('mergeField',_0x3fcd18=>Tt(_0x516e37,'ELEMENT_MERGE_FIELD',_0x3fcd18)),_0xb4828b['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x29f987=>Tt(_0x516e37,'ELEMENT_MERGE_FIELD',_0x29f987)),_0xb4828b['descriptionFactory']['registerDescriptionCallback'](_0x3c266a=>{if('insertion'!=_0x3c266a['type']&&'deletion'!=_0x3c266a['type'])return;const _0xe73536=_0x3c266a['getContainedElement']();if(null==_0xe73536)return;const _0xa35461=_0xcff689['plugins']['get']('MergeFieldsEditing');let _0x4fc27a;switch(_0xa35461['getMergeFieldType'](_0xe73536)){case null:return;case'image':{const _0x2654b3=_0xa35461['unwrapAffixes'](_0xe73536['getAttribute']('src'));_0x4fc27a=_0xa35461['getLabel'](_0x2654b3)||_0x2654b3;break;}default:{const _0x53a2e0=_0xe73536['getAttribute']('id');_0x4fc27a=_0xa35461['getLabel'](_0x53a2e0)||_0x53a2e0;break;}}return'insertion'==_0x3c266a['type']?{'type':'insertion','content':Tt(_0x516e37,'*Insert:*\x20%0','\x22'+_0x4fc27a+'\x22\x20'+Tt(_0x516e37,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Tt(_0x516e37,'*Remove:*\x20%0','\x22'+_0x4fc27a+'\x22\x20'+Tt(_0x516e37,'ELEMENT_MERGE_FIELD'))};});}}class TrackChangesMultiLevelList extends _0x5a485e{['afterInit'](){const _0x19b64d=this['editor'],_0x32214f=_0x19b64d['plugins']['get']('TrackChangesEditing');_0x19b64d['plugins']['has']('MultiLevelList')&&(_0x32214f['enableDefaultAttributesIntegration']('multiLevelList'),_0x32214f['descriptionFactory']['registerDescriptionCallback'](_0x4ecddc=>this['handleDescriptions'](_0x4ecddc)));}['handleDescriptions'](_0x1a1616){const _0x17b30b=this['editor']['locale'],{data:_0x32dfe3}=_0x1a1616,_0x367654={'type':'format','content':''};if(_0x32dfe3&&'listMarkerStyle'==_0x32dfe3['key']){if(!_0x32dfe3['oldValue'])return{'type':'format','content':Tt(_0x17b30b,'*Set\x20format:*\x20%0',Tt(_0x17b30b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x32dfe3['newValue']+')'};if(!_0x32dfe3['newValue']){let _0x1db1c8=_0x1a1616['head'];for(;_0x1db1c8;){if(_0x1db1c8['data']&&'listType'==_0x1db1c8['data']['key']&&_0x1db1c8['data']['newValue'])return _0x367654;_0x1db1c8=_0x1db1c8['next'];}return{'type':'format','content':Tt(_0x17b30b,'*Remove\x20format:*\x20%0',Tt(_0x17b30b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x32dfe3['oldValue']+')'};}}}}class TrackChangesPageBreak extends _0x5a485e{['afterInit'](){const _0x5d0ef7=this['editor'];if(!_0x5d0ef7['plugins']['has']('PageBreakEditing'))return;_0x5d0ef7['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x34f321=_0x5d0ef7['plugins']['get']('TrackChangesEditing'),_0x2a339a=_0x5d0ef7['locale'];_0x34f321['descriptionFactory']['registerElementLabel']('pageBreak',_0x4df806=>Tt(_0x2a339a,'ELEMENT_PAGE_BREAK',_0x4df806));}}class TrackChangesParagraph extends _0x5a485e{['afterInit'](){const _0x4367c9=this['editor'];if(!_0x4367c9['plugins']['has']('Paragraph'))return;const _0x36f2d6=_0x4367c9['locale'],_0x4f2afb=_0x4367c9['plugins']['get']('TrackChangesEditing');_0x4f2afb['descriptionFactory']['registerElementLabel']('paragraph',_0x54ef10=>Tt(_0x36f2d6,'ELEMENT_PARAGRAPH',_0x54ef10)),_0x4f2afb['enableDefaultAttributesIntegration']('paragraph'),_0x4f2afb['enableCommand']('insertParagraph');const _0x564e06=_0x4f2afb['descriptionFactory'];_0x564e06['registerDescriptionCallback'](_0x5aeaba=>{if('insertion'!==_0x5aeaba['type'])return;const {start:_0x28339a,end:_0x16eed5}=_0x5aeaba['getFirstRange']();if(!_0x28339a['isTouching'](_0x16eed5)||!_0x28339a['nodeAfter'])return;const _0x33d59d=_0x4367c9['model']['schema'],_0x2f4589=_0x28339a['nodeAfter'];return _0x33d59d['isBlock'](_0x2f4589)&&!_0x33d59d['isLimit'](_0x2f4589)&&_0x33d59d['checkChild'](_0x2f4589,'$text')?{'type':'insertion','content':Tt(_0x36f2d6,'*Insert:*\x20%0',_0x564e06['getItemLabel'](_0x2f4589,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2356a0=this['editor'],_0x222e72=_0x2356a0['locale'];_0x2356a0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x243012=>{if('formatBlock'!=_0x243012['type'])return;const {data:_0x242d6}=_0x243012;return _0x242d6&&'paragraph'==_0x242d6['commandName']?{'type':'format','content':Tt(_0x222e72,'*Change\x20to:*\x20%0',Tt(_0x222e72,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class TrackChangesReplaceSourceCommand extends _0x5a485e{['afterInit'](){const _0x3947f6=this['editor'];_0x3947f6['commands']['get']('replaceSource')&&_0x3947f6['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class TrackChangesRemoveFormat extends _0x5a485e{['afterInit'](){const _0x51286a=this['editor'];if(!_0x51286a['plugins']['has']('RemoveFormatEditing'))return;_0x51286a['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c8a51=this['editor'];_0x2c8a51['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3670ea=>{if('formatBlock'!=_0x3670ea['type']&&'formatInline'!=_0x3670ea['type'])return;const {data:_0x4672f4}=_0x3670ea;return _0x4672f4&&'removeFormat'==_0x4672f4['commandName']?{'type':'format','content':Tt(_0x2c8a51['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class TrackChangesRestrictedEditingMode extends _0x5a485e{['afterInit'](){const _0x3bf9c1=this['editor'];if(!_0x3bf9c1['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x30c5d3=_0x3bf9c1['plugins']['get']('TrackChangesEditing');_0x30c5d3['enableCommand']('goToPreviousRestrictedEditingException'),_0x30c5d3['enableCommand']('goToNextRestrictedEditingException');const _0x4504c0=_0x3bf9c1['plugins']['get']('RestrictedEditingModeEditing');_0x4504c0['enableCommand']('trackChanges'),_0x4504c0['enableCommand']('acceptSuggestion'),_0x4504c0['enableCommand']('discardSuggestion'),_0x4504c0['enableCommand']('acceptAllSuggestions'),_0x4504c0['enableCommand']('discardAllSuggestions'),_0x4504c0['enableCommand']('acceptSelectedSuggestions'),_0x4504c0['enableCommand']('discardSelectedSuggestions');}}class TrackChangesShiftEnterCommand extends _0x5a485e{['afterInit'](){const _0x5eed15=this['editor'];if(!_0x5eed15['plugins']['has']('ShiftEnter'))return;const _0x454f80=_0x5eed15['plugins']['get']('TrackChangesEditing');_0x454f80['enableCommand']('shiftEnter'),_0x454f80['descriptionFactory']['registerElementLabel']('softBreak',_0x237f91=>Tt(_0x5eed15['locale'],'ELEMENT_LINE_BREAK',_0x237f91));}}function Rt(_0x186e97,_0x41a4e3,_0x44e044){const _0x51247f=[];for(const _0xefb7c6 of _0x41a4e3['getItems']())_0xefb7c6['hasAttribute'](_0x186e97)&&_0x51247f['push'](_0x44e044['createRangeOn'](_0xefb7c6));return _0x51247f;}class TrackChangesStandardEditingMode extends _0x5a485e{['afterInit'](){const _0x4fd592=this['editor'],_0x2abbcb=_0x4fd592['plugins']['get']('TrackChangesEditing');_0x4fd592['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x2abbcb['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x540a39=this['editor'],_0x34cca9=_0x540a39['model'],_0x4e7813=_0x540a39['locale'],_0x26166e=_0x540a39['plugins']['get']('TrackChangesEditing'),_0x54ecbd='restrictedEditingException',_0x3787e2=_0x540a39['commands']['get'](_0x54ecbd);_0x26166e['enableCommand'](_0x54ecbd,(_0x242cbd,_0x112c04={})=>{const _0x3befcc=_0x34cca9['document']['selection'];if(_0x3befcc['isCollapsed'])return void _0x242cbd(_0x112c04);const _0xb9750f=void 0x0!==_0x112c04['forceValue']?_0x112c04['forceValue']:!_0x3787e2['value'];_0x34cca9['change'](()=>{const _0x2015d2=Array['from'](_0x3befcc['getRanges']());for(const _0x5d9ef0 of _0x2015d2){const _0x516814=_0xb9750f?[_0x5d9ef0]:Rt(_0x54ecbd,_0x5d9ef0,_0x34cca9);for(const _0xfeec8 of _0x516814)_0x26166e['markInlineFormat'](_0xfeec8,{'commandName':_0x54ecbd,'commandParams':[{'forceValue':_0xb9750f}]});}});}),_0x26166e['descriptionFactory']['registerDescriptionCallback'](_0x762855=>{if('formatBlock'!=_0x762855['type']&&'formatInline'!=_0x762855['type'])return;const {data:_0x2f445d}=_0x762855;return _0x2f445d&&_0x2f445d['commandName']==_0x54ecbd?_0x2f445d['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x4e7813,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Tt(_0x4e7813,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x1c27df=this['editor'],_0x1aa87f=_0x1c27df['locale'],_0x5d3da4=_0x1c27df['plugins']['get']('TrackChangesEditing'),_0x46c442='restrictedEditingExceptionBlock',_0x54dec7=this['editor']['commands']['get'](_0x46c442);_0x5d3da4['enableCommand'](_0x46c442,(_0x2aae62,_0x4236ef={})=>{const _0x21ba12=this['editor']['model']['document']['selection'],_0x37f9cb=_0x4236ef&&void 0x0!==_0x4236ef['forceValue']?_0x4236ef['forceValue']:!_0x54dec7['value'];let _0x327236=[];if(_0x37f9cb){const _0x26d8ed=Array['from'](_0x21ba12['getSelectedBlocks']())['filter'](_0x396688=>function(_0x4407b3){return!!_0x4407b3['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x396688)||function(_0x3da4ae,_0x45e71f){const _0x167878=_0x45e71f['createContext'](_0x3da4ae['parent']);if(!_0x45e71f['checkChild'](_0x167878,'restrictedEditingException'))return!0x1;if(!_0x45e71f['checkChild'](_0x167878['push']('restrictedEditingException'),_0x3da4ae))return!0x1;return!0x0;}(_0x396688,this['editor']['model']['schema']));_0x327236=ft(_0x26d8ed,_0x1c27df['model']);}else{const _0x148e2d=Array['from'](_0x21ba12['getSelectedBlocks']())['map'](_0x5c4e6c=>function(_0x22eec4){let _0x33cf2f=_0x22eec4;for(;_0x33cf2f['parent'];){if('restrictedEditingException'==_0x33cf2f['parent']['name'])return _0x33cf2f;_0x33cf2f=_0x33cf2f['parent'];}return null;}(_0x5c4e6c))['filter'](_0x5257e1=>!!_0x5257e1);_0x327236=ft(_0x148e2d,_0x1c27df['model']);}_0x1c27df['model']['change'](()=>{for(const _0x4b8f95 of _0x327236)_0x5d3da4['markBlockFormat'](_0x4b8f95,{'commandName':_0x46c442,'commandParams':[{'forceValue':_0x37f9cb}]});});}),_0x5d3da4['descriptionFactory']['registerDescriptionCallback'](_0x533e5a=>{const {data:_0x5d2c5a}=_0x533e5a;if(_0x5d2c5a&&_0x5d2c5a['commandName']==_0x46c442)return _0x5d2c5a['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x1aa87f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Tt(_0x1aa87f,'FORMAT_RESTRICTED_DISABLED')};});}}class TrackChangesStylesDropdown extends _0x5a485e{['afterInit'](){const _0x4bab7b=this['editor'];if(!_0x4bab7b['plugins']['has']('Style')||!_0x4bab7b['plugins']['has']('DataSchema'))return;const _0x333c2d=_0x4bab7b['plugins']['get']('TrackChangesEditing'),_0xeb0f71=_0x4bab7b['locale'],_0x4ccfb5=_0x4bab7b['config']['get']('style')||{},_0x47ec85=_0x4bab7b['plugins']['get']('GeneralHtmlSupport'),_0x1eb0c2=_0x4bab7b['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4bab7b['plugins']['get']('DataSchema'),_0x4ccfb5['definitions']);_0x333c2d['enableDefaultAttributesIntegration']('style');const _0x3e5bbd=new Set();for(const _0x3bffe8 of _0x1eb0c2['block']){const _0x5c0d9c=_0x47ec85['getGhsAttributeNameForElement'](_0x3bffe8['element']);_0x3e5bbd['add'](_0x5c0d9c);}const _0x48eb79=new Set();for(const _0x26dca4 of _0x1eb0c2['inline']){const _0x5429d9=_0x47ec85['getGhsAttributeNameForElement'](_0x26dca4['element']);_0x48eb79['add'](_0x5429d9);for(const _0x2573a7 of _0x26dca4['ghsAttributes'])_0x48eb79['add'](_0x2573a7);}for(const _0x2e9a5e of _0x3e5bbd)_0x333c2d['descriptionFactory']['registerAttributeLabel'](_0x2e9a5e,Tt(_0xeb0f71,'FORMAT_STYLE'));for(const _0x210b2d of _0x48eb79)_0x333c2d['descriptionFactory']['registerAttributeLabel'](_0x210b2d,Tt(_0xeb0f71,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5beb48=this['editor'],_0xea9eb7=_0x5beb48['locale'];_0x5beb48['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x408535=>{if('formatBlock'!=_0x408535['type']&&'formatInline'!=_0x408535['type'])return;const {data:_0x1c3597}=_0x408535;return _0x1c3597&&'style'===_0x1c3597['commandName']?_0x1c3597['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0xea9eb7,'*Set\x20format:*\x20%0',_0x1c3597['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Tt(_0xea9eb7,'*Remove\x20format:*\x20%0',_0x1c3597['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class TrackChangesTable extends _0x5a485e{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x40c030){super(_0x40c030),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4cafb1=this['editor'],_0x1cbde9=_0x4cafb1['model']['document']['selection'];if(!_0x4cafb1['plugins']['has']('TableEditing'))return;const _0x2a726f=_0x4cafb1['locale'],_0x5a2346=_0x4cafb1['plugins']['get']('TrackChangesEditing'),_0x4e78e0=_0x4cafb1['plugins']['get']('TableUtils');_0x5a2346['descriptionFactory']['registerElementLabel']('table',_0xcd561e=>Tt(_0x2a726f,'ELEMENT_TABLE',_0xcd561e)),this['_setupColumnsRowsFixing'](),_0x5a2346['enableCommand']('insertTable'),_0x5a2346['enableCommand']('selectTableRow'),_0x5a2346['enableCommand']('selectTableColumn');for(const _0x5426d4 of['insertTableRowAbove','insertTableRowBelow']){const _0x4e2997=_0x4cafb1['commands']['get'](_0x5426d4);_0x5a2346['enableCommand'](_0x5426d4,_0x2b5e48=>{_0x4cafb1['model']['change'](_0x56f836=>{_0x2b5e48();const _0x2901b9='above'===_0x4e2997['order'],_0x2cdaee=_0x4e78e0['getSelectionAffectedTableCells'](_0x1cbde9),_0x10ff4c=_0x4e78e0['getRowIndexes'](_0x2cdaee),_0x258e86=_0x2901b9?_0x10ff4c['first']-0x1:_0x10ff4c['last']+0x1,_0x37f824=_0x2cdaee[0x0]['findAncestor']('table'),_0xb03d1a=_0x4e78e0['createTableWalker'](_0x37f824,{'startRow':_0x258e86,'endRow':_0x258e86}),_0x5e81d4=Array['from'](_0xb03d1a)['map'](_0x37a0d3=>_0x56f836['createRangeOn'](_0x37a0d3['cell']));_0x5a2346['markMultiRangeInsertion'](_0x5e81d4,'tableRow');});});}for(const _0x58d17f of['insertTableColumnLeft','insertTableColumnRight']){const _0x470fa6=_0x4cafb1['commands']['get'](_0x58d17f);_0x5a2346['enableCommand'](_0x58d17f,_0x1a996b=>{_0x4cafb1['model']['change'](_0x22b43b=>{_0x1a996b();const _0x3cde3d='left'===_0x470fa6['order'],_0x4313ce=_0x4e78e0['getSelectionAffectedTableCells'](_0x1cbde9),_0x25e934=_0x4e78e0['getColumnIndexes'](_0x4313ce),_0x27d334=_0x3cde3d?_0x25e934['first']-0x1:_0x25e934['last']+0x1,_0x446d2a=_0x4313ce[0x0]['findAncestor']('table'),_0x4da671=_0x4e78e0['createTableWalker'](_0x446d2a,{'startRow':0x0,'column':_0x27d334,'includeAllSlots':!0x1}),_0x13c796=Array['from'](_0x4da671)['map'](_0x39fd46=>_0x22b43b['createRangeOn'](_0x39fd46['cell']));_0x5a2346['markMultiRangeInsertion'](_0x13c796,'tableColumn');});});}for(const _0x5751ea of['removeTableRow','removeTableColumn']){const _0x3fd28e=_0x5751ea['substr'](0xb),_0x58b35c=_0x3fd28e['toLowerCase'](),_0x45fca6=_0x58b35c['substr'](0x0,0x3)+'span',_0x527d5a='table'+_0x3fd28e,_0xb43e38='min'+_0x3fd28e,_0x4e5cf1='max'+_0x3fd28e;_0x5a2346['enableCommand'](_0x5751ea,()=>{_0x4cafb1['model']['change'](_0x150352=>{const _0x2cb618=_0x4e78e0['getSelectionAffectedTableCells'](_0x1cbde9),_0x1bee85=_0x2cb618[0x0]['findAncestor']('table');let _0x2f186d;if('removeTableRow'==_0x5751ea){const _0x205e15=_0x4e78e0['getRowIndexes'](_0x2cb618);_0x2f186d={'startRow':_0x205e15['first'],'endRow':_0x205e15['last'],'includeAllSlots':!0x0};}else{const _0x4dfa88=_0x4e78e0['getColumnIndexes'](_0x2cb618);_0x2f186d={'startColumn':_0x4dfa88['first'],'endColumn':_0x4dfa88['last'],'includeAllSlots':!0x0};}const _0x1bc616=_0x4e78e0['createTableWalker'](_0x1bee85,_0x2f186d),_0x3c2e75=Array['from'](_0x1bc616)['map'](({cell:_0xd57390})=>_0xd57390),_0x40e7e2=Nt(_0x3c2e75['filter'](_0x5225f2=>_0x5225f2['hasAttribute'](_0x45fca6))),_0xb1d7e=Nt(_0x3c2e75['filter'](_0x1ace5b=>!_0x1ace5b['hasAttribute'](_0x45fca6)))['map'](_0x377372=>_0x150352['createRangeOn'](_0x377372)),_0x26878f=_0x5a2346['markMultiRangeDeletion'](_0xb1d7e,_0x527d5a);if(_0x26878f&&('tableRow'==_0x26878f['subType']||'tableColumn'==_0x26878f['subType'])){const _0x2e7dd0=this['_getSuggestionCoords'](_0x26878f);for(const _0x1b5a6d of _0x40e7e2){const _0x1e4f4c=_0x150352['createRangeOn'](_0x1b5a6d),_0x4e6f77=_0x4e78e0['getCellLocation'](_0x1b5a6d),_0x36cac7=_0x1b5a6d['getAttribute'](_0x45fca6)-0x1,_0x394053=_0x2e7dd0[_0xb43e38],_0x2f0415=_0x2e7dd0[_0x4e5cf1];_0x394053<=_0x4e6f77[_0x58b35c]&&_0x4e6f77[_0x58b35c]+_0x36cac7<=_0x2f0415&&_0x26878f['addRange'](_0x1e4f4c);}}});});}function _0xfd074a(_0x45b7ee){const _0x199219=Array['from'](_0x1cbde9['getRanges']())['map'](_0x374177=>_0x53b34c['fromRange'](_0x374177));_0x4cafb1['model']['change'](_0x132dc9=>{const _0x2f6eef=_0x132dc9['batch'];_0x45b7ee=_0x45b7ee['filter'](_0x391635=>'$graveyard'!=_0x391635['root']['rootName']),_0x132dc9['setSelection'](_0x45b7ee),_0x4cafb1['commands']['get']('removeTableRow')['refresh'](),_0x4cafb1['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4cafb1['model']['enqueueChange'](()=>{_0x4cafb1['model']['enqueueChange'](_0x2f6eef,_0x374b05=>{const _0x36a4f6=_0x199219['filter'](_0x1b039b=>'$graveyard'!=_0x1b039b['root']['rootName']);_0x36a4f6['length']>0x0&&_0x374b05['setSelection'](_0x36a4f6);for(const _0x3c3347 of _0x199219)_0x3c3347['detach']();});});});}function _0x100d48(_0x1ac087){_0x4cafb1['model']['change'](_0x5e59a9=>{const _0x440ed5=Array['from'](_0x1cbde9['getRanges']())['map'](_0x1eddeb=>_0x53b34c['fromRange'](_0x1eddeb)),_0x1700cd=[];for(const _0x55a849 of _0x1ac087)for(const _0x183671 of _0x55a849['getItems']({'shallow':!0x0}))_0x1700cd['push'](_0x183671);for(const _0x346b0f of _0x1700cd)'$graveyard'!=_0x346b0f['root']['rootName']&&(_0x5e59a9['setSelection'](_0x5e59a9['createPositionAt'](_0x346b0f,0x0)),_0x4cafb1['commands']['get']('removeTableColumn')['refresh'](),_0x4cafb1['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4c369b=_0x440ed5['filter'](_0x47df47=>'$graveyard'!=_0x47df47['root']['rootName']);_0x4c369b['length']>0x0&&_0x5e59a9['setSelection'](_0x4c369b);for(const _0x1bf66f of _0x440ed5)_0x1bf66f['detach']();});}function _0x2726b0(_0x32e1ff,_0x4c853c){return _0x4c853c['every'](_0x5efd17=>_0x32e1ff['some'](_0x388a1e=>_0x388a1e['end']['isEqual'](_0x5efd17['start'])||_0x5efd17['end']['isEqual'](_0x388a1e['start'])));}function _0x39e646(_0x3d6b43,_0xa81f8c){return!_0x3d6b43['some'](_0x2f3ff1=>_0xa81f8c['some'](_0x13df4e=>_0x2f3ff1['isIntersecting'](_0x13df4e)))&&_0x3d6b43['some'](_0xe50e4d=>_0xa81f8c['some'](_0x2923f0=>_0xe50e4d['end']['isTouching'](_0x2923f0['start'])));}_0x5a2346['descriptionFactory']['registerDescriptionCallback'](_0x354cbf=>{if('insertion'!=_0x354cbf['type']&&'deletion'!=_0x354cbf['type'])return;const _0x3627d6=_0x354cbf['getContainedElement']();if(null!=_0x3627d6&&_0x3627d6['is']('element','table')){if('insertion'==_0x354cbf['type']){const _0x1fc8d4=_0x354cbf['getItems']()['filter'](_0x5187dd=>_0x5187dd['is']('$textProxy'))['map'](_0x29acf2=>_0x29acf2['data']);if(_0x1fc8d4['length'])return{'type':'insertion','content':Tt(_0x2a726f,'*Insert:*\x20%0',Tt(_0x2a726f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1fc8d4['join']('\x20')+'\x22'))};}if('deletion'==_0x354cbf['type']){const _0x4f4e09=_0x354cbf['getItems']()['filter'](_0x54188d=>_0x54188d['is']('$textProxy'))['map'](_0x5abd73=>_0x5abd73['data']);if(_0x4f4e09['length'])return{'type':'deletion','content':Tt(_0x2a726f,'*Remove:*\x20%0',Tt(_0x2a726f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4f4e09['join']('\x20')+'\x22'))};}}}),_0x5a2346['descriptionFactory']['registerDescriptionCallback'](_0x3157b5=>{if('tableRow'==_0x3157b5['subType']){const _0x3b47af=_0x3157b5['getItems']()['filter'](_0x1be399=>_0x1be399['is']('$textProxy'))['map'](_0xcbdece=>_0xcbdece['data']),_0x55447f=this['_getSuggestionCoords'](_0x3157b5),_0x154bda=_0x55447f['maxRow']-_0x55447f['minRow']+0x1;if('insertion'==_0x3157b5['type'])return _0x3b47af['length']?{'type':'insertion','content':Tt(_0x2a726f,'*Insert:*\x20%0',Tt(_0x2a726f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x154bda,'\x22'+_0x3b47af['join']('\x20')+'\x22']))}:{'type':'insertion','content':Tt(_0x2a726f,'*Insert:*\x20%0',Tt(_0x2a726f,'ELEMENT_TABLE_ROW',_0x154bda))};if('deletion'==_0x3157b5['type'])return _0x3b47af['length']?{'type':'deletion','content':Tt(_0x2a726f,'*Remove:*\x20%0',Tt(_0x2a726f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x154bda,'\x22'+_0x3b47af['join']('\x20')+'\x22']))}:{'type':'deletion','content':Tt(_0x2a726f,'*Remove:*\x20%0',Tt(_0x2a726f,'ELEMENT_TABLE_ROW',_0x154bda))};}if('tableColumn'==_0x3157b5['subType']){const _0x26152c=_0x3157b5['getItems']()['filter'](_0xb4c368=>_0xb4c368['is']('$textProxy'))['map'](_0x1133c6=>_0x1133c6['data']),_0x36467f=this['_getSuggestionCoords'](_0x3157b5),_0x2bbd19=_0x36467f['maxColumn']-_0x36467f['minColumn']+0x1;if('insertion'==_0x3157b5['type'])return _0x26152c['length']?{'type':'insertion','content':Tt(_0x2a726f,'*Insert:*\x20%0',Tt(_0x2a726f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2bbd19,'\x22'+_0x26152c['join']('\x20')+'\x22']))}:{'type':'insertion','content':Tt(_0x2a726f,'*Insert:*\x20%0',Tt(_0x2a726f,'ELEMENT_TABLE_COLUMN',_0x2bbd19))};if('deletion'==_0x3157b5['type'])return _0x26152c['length']?{'type':'deletion','content':Tt(_0x2a726f,'*Remove:*\x20%0',Tt(_0x2a726f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2bbd19,'\x22'+_0x26152c['join']('\x20')+'\x22']))}:{'type':'deletion','content':Tt(_0x2a726f,'*Remove:*\x20%0',Tt(_0x2a726f,'ELEMENT_TABLE_COLUMN',_0x2bbd19))};}}),_0x5a2346['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xfd074a),_0x5a2346['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xfd074a),_0x5a2346['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x100d48),_0x5a2346['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x100d48),_0x5a2346['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2726b0),_0x5a2346['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2726b0),_0x5a2346['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x39e646),_0x5a2346['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x39e646);}['_acceptFormatSuggestionCallbackFactory'](){const _0x18859d=this['editor'],_0x24685a=_0x18859d['model']['document']['selection'];return(_0xfcebf5,_0x3c99cc)=>{_0x18859d['model']['change'](_0x41bc2c=>{const {commandName:_0x3634ef,commandParams:_0x1f2c11}=_0x3c99cc;let _0x382673=_0xfcebf5[0x0]['end']['nodeBefore'];_0x1f2c11&&_0x1f2c11[0x0]&&!0x1===_0x1f2c11[0x0]['forceValue']&&(_0x382673=_0xfcebf5[0x0]['start']['nodeAfter']);const _0x22a3a5=_0x41bc2c['createRangeIn'](_0x382673);if('$graveyard'==_0x22a3a5['root']['rootName'])return;const _0x525197=Array['from'](_0x24685a['getRanges']())['map'](_0x1cc978=>_0x53b34c['fromRange'](_0x1cc978));_0x41bc2c['setSelection'](_0x22a3a5),_0x18859d['commands']['get'](_0x3634ef)['refresh'](),_0x1f2c11['push']({'forceDefaultExecution':!0x0}),_0x18859d['execute'](_0x3634ef,..._0x1f2c11);const _0x46e9ab=_0x525197['filter'](_0x4bfc78=>'$graveyard'!=_0x4bfc78['root']['rootName']);_0x46e9ab['length']>0x0&&_0x41bc2c['setSelection'](_0x46e9ab);for(const _0x5c0f01 of _0x525197)_0x5c0f01['detach']();});};}['_getCoordsForCells'](_0x44ffcd){const _0x5ad18a=this['editor']['plugins']['get']('TableUtils');let _0x203f15=Number['MAX_SAFE_INTEGER'],_0x334173=Number['MIN_SAFE_INTEGER'],_0x5e5786=Number['MAX_SAFE_INTEGER'],_0x475af2=Number['MIN_SAFE_INTEGER'];for(const _0x29733e of _0x44ffcd){if('$graveyard'==_0x29733e['root']['rootName'])continue;const {row:_0x4da3c7,column:_0x5c0cba}=_0x5ad18a['getCellLocation'](_0x29733e),_0x629ff4=_0x29733e['hasAttribute']('rowspan')?_0x29733e['getAttribute']('rowspan')-0x1:0x0,_0x5a0900=_0x29733e['hasAttribute']('colspan')?_0x29733e['getAttribute']('colspan')-0x1:0x0;_0x203f15=_0x4da3c7<_0x203f15?_0x4da3c7:_0x203f15,_0x334173=_0x4da3c7+_0x629ff4>_0x334173?_0x4da3c7+_0x629ff4:_0x334173,_0x5e5786=_0x5c0cba<_0x5e5786?_0x5c0cba:_0x5e5786,_0x475af2=_0x5c0cba+_0x5a0900>_0x475af2?_0x5c0cba+_0x5a0900:_0x475af2;}return{'minRow':_0x203f15,'maxRow':_0x334173,'minColumn':_0x5e5786,'maxColumn':_0x475af2};}['_setupColumnsRowsFixing'](){const _0x535852=this['editor'],_0x49c052=_0x535852['plugins']['get']('TrackChangesEditing'),_0x573960=_0x535852['plugins']['get']('TableUtils');_0x535852['model']['document']['on']('change:data',()=>{const _0x2e97a4=Array['from'](_0x535852['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x228826,data:_0x5a8065}of _0x2e97a4){const {group:_0x3e3c72,id:_0x369843,subType:_0x325ae1}=_0x5cc320(_0x228826);if('suggestion'!=_0x3e3c72)continue;if(null!=_0x5a8065['oldRange'])continue;const _0x3c09e1=_0x49c052['getSuggestion'](_0x369843);this['_tablePostFixingSubtypes']['includes'](_0x325ae1)&&this['_tableSuggestions']['add'](_0x3c09e1);}},{'priority':'low'});const _0x58dd60=(_0x1492d8,_0x18b4f2)=>{let _0x405700=!0x1;const _0x3b7ec0=_0x18b4f2['createRangeOn'](_0x1492d8),_0x23ef5d=_0x1492d8['findAncestor']('table'),_0x5e59cc=_0x573960['getCellLocation'](_0x1492d8);for(const _0x3d5efc of this['_tableSuggestions']){const _0x25695=_0x3d5efc['subType'],_0x39e233=_0x25695['startsWith']('tablePaste'),_0x162d84=_0x25695['substr'](_0x39e233?0xa:0x5),_0x29fc5d=_0x162d84['toLowerCase'](),_0x3fd52c=_0x29fc5d['substr'](0x0,0x3)+'span',_0x131503='min'+_0x162d84,_0x36af13='max'+_0x162d84;if(!_0x3d5efc['isInContent'])continue;if(_0x23ef5d!=_0x3d5efc['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3d5efc['isIntersectingWithRange'](_0x3b7ec0))continue;const _0x22671b=_0x1492d8['hasAttribute'](_0x3fd52c)?_0x1492d8['getAttribute'](_0x3fd52c)-0x1:0x0,_0x32f01c=this['_getSuggestionCoords'](_0x3d5efc),_0x2e5c2c=_0x32f01c[_0x131503],_0x2cfcbe=_0x32f01c[_0x36af13];_0x2e5c2c<=_0x5e59cc[_0x29fc5d]&&_0x5e59cc[_0x29fc5d]+_0x22671b<=_0x2cfcbe&&(_0x3d5efc['addRange'](_0x3b7ec0),_0x405700=!0x0);}return _0x405700;};_0x535852['model']['document']['registerPostFixer'](_0x31bfe0=>{let _0x3909f0=!0x1;for(const _0x4dc723 of _0x535852['model']['document']['differ']['getChanges']())if('insert'==_0x4dc723['type']){if('tableRow'==_0x4dc723['name']){for(const _0x42c1d7 of _0x4dc723['position']['nodeAfter']['getChildren']())_0x3909f0=_0x3909f0||_0x58dd60(_0x42c1d7,_0x31bfe0);}else'tableCell'==_0x4dc723['name']&&(_0x3909f0=_0x3909f0||_0x58dd60(_0x4dc723['position']['nodeAfter'],_0x31bfe0));}return _0x3909f0;});}['_getSuggestionCoords'](_0x1bdcb9){return this['_getCoordsForCells'](_0x1bdcb9['getRanges']()['map'](_0x5dabbc=>_0x5dabbc['start']['nodeAfter']));}}function Nt(_0x1719da){return Array['from'](new Set(_0x1719da)['values']());}class TrackChangesTableMergeSplit extends _0x5a485e{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x404176=this['editor'],_0x24eca4=_0x404176['model']['document']['selection'],_0x22c4ce=_0x404176['locale'];if(!_0x404176['plugins']['has']('TableEditing'))return;const _0x3f3dc1=_0x404176['plugins']['get']('TrackChangesEditing'),_0x18a303=_0x404176['plugins']['get']('TableUtils'),_0x3232fb=_0x404176['plugins']['get'](TrackChangesTable);_0x3232fb['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3f3dc1['enableCommand']('mergeTableCells',()=>{const _0x113ee5=_0x18a303['getSelectionAffectedTableCells'](_0x404176['model']['document']['selection']);_0x404176['model']['change'](()=>{_0x3f3dc1['markMultiRangeBlockFormat'](_0x113ee5,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x404176['commands']['get']('mergeTableCells')['on']('execute',(_0x162637,_0x1811d9)=>{_0x404176['commands']['get']('trackChanges')['value']&&(_0x1811d9['length']>0x0&&_0x1811d9[_0x1811d9['length']-0x1]&&_0x1811d9[_0x1811d9['length']-0x1]['forceDefaultExecution']||_0x3f3dc1['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x162637['stop']());},{'priority':'highest'});for(const _0x47cfef of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1b1078=_0x404176['commands']['get'](_0x47cfef);_0x3f3dc1['enableCommand'](_0x47cfef,()=>{const _0x591305=_0x404176['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4dd9f7=>_0x4dd9f7['is']('element','tableCell')),_0x72f1b0=_0x1b1078['value'];_0x404176['model']['change'](()=>{_0x3f3dc1['markMultiRangeBlockFormat']([_0x591305,_0x72f1b0],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x220b72 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x17f0da=_0x404176['commands']['get'](_0x220b72);_0x3f3dc1['enableCommand'](_0x220b72,()=>{const _0x5b0b53=_0x18a303['getSelectionAffectedTableCells'](_0x404176['model']['document']['selection'])[0x0],_0x26b57b=_0x5b0b53['findAncestor']('table'),{column:_0x57bbf6,row:_0xa08088}=_0x18a303['getCellLocation'](_0x5b0b53);let _0x19a96c=[];if('horizontally'==_0x17f0da['direction']){const _0x2e783b=_0x18a303['createTableWalker'](_0x26b57b,{'startRow':_0xa08088,'endRow':_0xa08088,'includeAllSlots':!0x0});_0x19a96c=Array['from'](_0x2e783b)['map'](_0x2c28da=>_0x2c28da['cell']);}else{const _0x5e8713=_0x18a303['createTableWalker'](_0x26b57b,{'column':_0x57bbf6,'includeAllSlots':!0x0});_0x19a96c=Array['from'](_0x5e8713)['map'](_0x2addbf=>_0x2addbf['cell']);}_0x404176['model']['change'](_0x5f257c=>{_0x3f3dc1['markBlockFormat'](_0x5f257c['createRangeOn'](_0x5b0b53),{'commandName':_0x220b72,'commandParams':[]},_0x19a96c,_0x220b72);});});}_0x3f3dc1['descriptionFactory']['registerDescriptionCallback'](_0x35eca7=>{if('formatBlock'!=_0x35eca7['type']&&'formatInline'!=_0x35eca7['type'])return;const {data:_0x2fb05e}=_0x35eca7;return _0x2fb05e&&'mergeTableCells'==_0x2fb05e['commandName']?{'type':'format','content':Tt(_0x22c4ce,'*Merge\x20cells*')}:void 0x0;}),_0x3f3dc1['descriptionFactory']['registerDescriptionCallback'](_0x340422=>{if('formatBlock'!=_0x340422['type']&&'formatInline'!=_0x340422['type'])return;const {data:_0x3524ee}=_0x340422;return _0x3524ee?'splitTableCellVertically'==_0x3524ee['commandName']?{'type':'format','content':Tt(_0x22c4ce,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3524ee['commandName']?{'type':'format','content':Tt(_0x22c4ce,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1774a4=_0x3232fb['_acceptFormatSuggestionCallbackFactory']();for(const _0x1ec99d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3f3dc1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1ec99d,'accept',_0x1774a4);for(const _0x41039e of['splitTableCellVertically','splitTableCellHorizontally'])_0x3f3dc1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x41039e,'accept',_0x1774a4);_0x3f3dc1['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x43073d=>{_0x404176['model']['change'](_0x569e51=>{const _0x2c5f3f=Array['from'](_0x24eca4['getRanges']())['map'](_0x25d1fa=>_0x53b34c['fromRange'](_0x25d1fa));_0x569e51['setSelection'](_0x43073d),_0x404176['commands']['get']('mergeTableCells')['refresh'](),_0x404176['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x60373=_0x2c5f3f['filter'](_0x2ba776=>'$graveyard'!=_0x2ba776['root']['rootName']);_0x60373['length']>0x0&&_0x569e51['setSelection'](_0x60373);for(const _0x43e69b of _0x2c5f3f)_0x43e69b['detach']();});});for(const _0x4fb238 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x37dfab=_0x404176['commands']['get'](_0x4fb238);_0x37dfab['on']('set:isEnabled',(_0x456804,_0x188fd5,_0x39a6ef)=>{if(_0x39a6ef){const _0x1026a2=_0x404176['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4582aa=>_0x4582aa['is']('element','tableCell'));this['_areMergableCells'](_0x37dfab['value'],_0x1026a2)||(_0x456804['return']=!0x1,_0x456804['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4a5297=this['editor']['commands']['get']('mergeTableCells'),_0x53db14=this['editor']['plugins']['get']('TableUtils');if(!_0x4a5297['isEnabled'])return!0x1;const _0x5cd940=_0x53db14['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x339d65 of _0x5cd940)for(const _0x461692 of _0x5cd940)if(_0x339d65!=_0x461692&&!this['_areMergableCells'](_0x339d65,_0x461692))return!0x1;return!0x0;}['_areMergableCells'](_0x112851,_0x14e887){const _0x15c48e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x353fa2=this['editor']['model']['createRangeOn'](_0x112851),_0x47648a=this['editor']['model']['createRangeOn'](_0x14e887),_0x5edb70=new Set(),_0x57eb82=new Set();for(const _0x30bf99 of _0x15c48e['getSuggestions']())if(('insertion'==_0x30bf99['type']||'deletion'==_0x30bf99['type']||'mergeTableCells'==_0x30bf99['subType'])&&_0x30bf99['isInContent']){for(const _0x15f511 of _0x30bf99['getRanges']())_0x15f511['containsRange'](_0x353fa2,!0x0)&&_0x5edb70['add'](_0x30bf99['type']+':'+_0x30bf99['author']['id']),_0x15f511['containsRange'](_0x47648a,!0x0)&&_0x57eb82['add'](_0x30bf99['type']+':'+_0x30bf99['author']['id']);}if(_0x5edb70['size']!=_0x57eb82['size'])return!0x1;for(const _0x4f7acc of _0x5edb70)if(!_0x57eb82['has'](_0x4f7acc))return!0x1;return!0x0;}}class TrackChangesTableHeadings extends _0x5a485e{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0xe5583=this['editor'];if(!_0xe5583['plugins']['has']('TableEditing'))return;const _0x5db780=_0xe5583['locale'],_0x19dab0=_0xe5583['plugins']['get']('TrackChangesEditing');_0x19dab0['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x19dab0['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x19dab0['descriptionFactory']['registerAttributeLabel']('headingRows',Tt(_0x5db780,'FORMAT_HEADER_ROW')),_0x19dab0['descriptionFactory']['registerAttributeLabel']('headingColumns',Tt(_0x5db780,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3eda85=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16eea4=this['editor']['plugins']['get'](TrackChangesTable)['_acceptFormatSuggestionCallbackFactory']();_0x3eda85['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x16eea4),_0x3eda85['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x16eea4),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x15c123=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42fd37=this['editor']['plugins']['get']('TableUtils');function _0x512a01({showActiveMarker:_0x152f3c=!0x0,setDataAttribute:_0x208dd2=!0x0}={}){return(_0x27c122,_0x494955,_0x4444a9)=>{const {type:_0x52fa9d,id:_0x172467}=_0x5cc320(_0x494955['markerName']);if(!_0x15c123['hasSuggestion'](_0x172467))return;const _0xb5dc95=_0x15c123['getSuggestion'](_0x172467),_0x7bc6f2=_0xb5dc95['data'];if('formatBlock'!=_0xb5dc95['type']||!_0x7bc6f2||'setTableColumnHeader'!=_0x7bc6f2['commandName'])return;if(_0x494955['item'])return void _0x27c122['stop']();if(!_0x4444a9['consumable']['consume'](_0x494955['markerRange'],_0x27c122['name']))return;const _0x1c1a5b=_0x494955['markerRange']['start']['nodeAfter'],_0x4a2ef1=_0x494955['markerRange']['end']['nodeBefore'],_0x2f6a87=_0x1c1a5b['parent']['parent'],{column:_0x192325}=_0x42fd37['getCellLocation'](_0x1c1a5b),{column:_0x47f583}=_0x42fd37['getCellLocation'](_0x4a2ef1);for(let _0x5b7410=_0x192325;_0x5b7410<=_0x47f583;_0x5b7410++){const _0x384fd2=_0x42fd37['createTableWalker'](_0x2f6a87,{'column':_0x5b7410,'includeAllSlots':!0x1});for(const _0x1cdc9f of _0x384fd2){const _0x52fe5a=_0x1cdc9f['cell'],_0x12e1fa=_0x4444a9['mapper']['toViewElement'](_0x52fe5a);_0x4444a9['writer']['addClass']('ck-suggestion-marker-'+_0x52fa9d,_0x12e1fa),_0x208dd2&&_0x4444a9['writer']['setAttribute']('data-suggestion',_0x172467,_0x12e1fa),_0x4444a9['mapper']['bindElementToMarker'](_0x12e1fa,_0x494955['markerName']),_0x152f3c&&(_0x15c123['activeMarkers']['includes'](_0x494955['markerName'])?_0x4444a9['writer']['addClass']('ck-suggestion-marker--active',_0x12e1fa):_0x4444a9['writer']['removeClass']('ck-suggestion-marker--active',_0x12e1fa));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x512a01(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x258364,_0x1046ee,_0x17522c)=>{_0x17522c['options']['showSuggestionHighlights']&&_0x512a01({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x258364,_0x1046ee,_0x17522c);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2f096f,_0x47dca3,_0x460a0c)=>{const {type:_0x57268a,id:_0x15a4be}=_0x5cc320(_0x47dca3['markerName']);if(!_0x15c123['hasSuggestion'](_0x15a4be))return;const _0x225675=_0x15c123['getSuggestion'](_0x15a4be),_0x24d519=_0x225675['data'];if('formatBlock'!=_0x225675['type']||!_0x24d519||'setTableColumnHeader'!=_0x24d519['commandName'])return;const _0x13ace2=_0x460a0c['mapper']['markerNameToElements'](_0x47dca3['markerName']);if(_0x13ace2){for(const _0x976c69 of _0x13ace2)_0x460a0c['writer']['removeClass']('ck-suggestion-marker-'+_0x57268a,_0x976c69),_0x460a0c['writer']['removeClass']('ck-suggestion-marker--active',_0x976c69),_0x460a0c['writer']['removeAttribute']('data-suggestion',_0x976c69),_0x460a0c['mapper']['unbindElementFromMarkerName'](_0x976c69,_0x47dca3['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x24e517=this['editor'],_0x4c43f5=_0x24e517['locale'];function _0x59924f(_0x4c5c7b){return{'type':'format','content':Tt(_0x4c43f5,'*Format:*\x20%0',_0x4c5c7b)};}_0x24e517['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x335204=>{if('formatBlock'!=_0x335204['type'])return;const {data:_0x716df0}=_0x335204;if(_0x716df0){if('setTableRowHeader'==_0x716df0['commandName']){const _0x21133a=_0x716df0['commandParams'][0x0]['forceValue'];return _0x59924f(Tt(_0x4c43f5,_0x21133a?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x716df0['commandName']){const _0x1b179d=_0x716df0['commandParams'][0x0]['forceValue'];return _0x59924f(Tt(_0x4c43f5,_0x1b179d?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class TrackChangesTableFooters extends _0x5a485e{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x20e448=this['editor'];if(!_0x20e448['plugins']['has']('TableEditing')||!_0x20e448['config']['get']('table.enableFooters'))return;const _0x321f5d=_0x20e448['locale'],_0x2dfb62=_0x20e448['plugins']['get']('TrackChangesEditing');_0x2dfb62['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x2dfb62['descriptionFactory']['registerAttributeLabel']('footerRows',Tt(_0x321f5d,'FORMAT_FOOTER_ROW'));}}class TrackChangesTableLayout extends _0x5a485e{['afterInit'](){const _0x4136fa=this['editor'],_0x30184a=_0x4136fa['locale'],_0x450c8a=_0x4136fa['plugins']['get']('TrackChangesEditing');function _0x3eb523(_0x485580){return{'type':'format','content':''+Tt(_0x30184a,'*Set\x20table\x20type:*\x20%0',_0x485580)};}_0x4136fa['plugins']['has']('TableLayout')&&(_0x450c8a['enableCommand']('insertTableLayout'),_0x450c8a['enableDefaultAttributesIntegration']('tableType'),_0x450c8a['descriptionFactory']['registerElementLabel'](_0x5df9c9=>_0x5df9c9['is']('element','table')&&'layout'===_0x5df9c9['getAttribute']('tableType'),_0x406281=>Tt(_0x30184a,'ELEMENT_LAYOUT_TABLE',_0x406281)),_0x450c8a['descriptionFactory']['registerDescriptionCallback'](_0x365e66=>{const {data:_0x57b10f}=_0x365e66;if(_0x57b10f&&'tableType'==_0x57b10f['key'])switch(_0x57b10f['newValue']){case'layout':return _0x3eb523(Tt(_0x30184a,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3eb523(Tt(_0x30184a,'ELEMENT_CONTENT_TABLE'));}}));}}const Mt=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ot=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Mt['map'](_0x49b631=>[_0x49b631,null]));class TrackChangesTableClipboard extends _0x5a485e{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x5d39c7=this['editor'];if(!_0x5d39c7['plugins']['has']('TableClipboard'))return;const _0x570bed=_0x5d39c7['plugins']['get']('TrackChangesEditing'),_0x427e0e=_0x5d39c7['plugins']['get']('TableUtils'),_0x4626e8=_0x5d39c7['plugins']['get'](TrackChangesTable),_0x26f70b=_0x5d39c7['plugins']['get']('TableClipboard'),_0x2b3b43=_0x5d39c7['plugins']['get']('TableSelection'),_0x3c6aed=_0x5d39c7['plugins']['get'](ut);_0x4626e8['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5d39c7['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5d39c7['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x172c67=null,_0x2aa40d=!0x1;_0x3c6aed['on']('contentInsertion',(_0x4c96d4,_0x156a9f)=>{_0x2aa40d='paste'===_0x156a9f['method'];}),_0x5d39c7['model']['on']('insertContent',(_0x1eed00,_0x1b4ae3)=>{if(!_0x2aa40d&&null===_0x2b3b43['getSelectedTableCells']())return;const [_0x332f55,_0x3c123c]=_0x1b4ae3,_0xe0e578=_0x1b4ae3[_0x1b4ae3['length']-0x1];_0xe0e578&&_0xe0e578['forceDefaultExecution']||_0x570bed['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5bc84f,_0x3e6138,_0x4657c3,_0x3ad342,_0x418c0b){if(_0x3e6138&&!_0x3e6138['is']('documentSelection'))return!0x1;const _0x26dfb2=_0x418c0b['getTableIfOnlyTableInContent'](_0x5bc84f,_0x4657c3);if(!_0x26dfb2||!Bt(_0x26dfb2,void 0x0,_0x3ad342))return!0x1;const _0x2bd281=_0x3ad342['getSelectionAffectedTableCells'](_0x4657c3['document']['selection']);if(!_0x2bd281['length'])return!0x1;const _0x49fc10=_0x2bd281[0x0]['findAncestor']('table'),_0x51dc49=_0x3ad342['getRowIndexes'](_0x2bd281),_0x63696e=_0x3ad342['getColumnIndexes'](_0x2bd281),_0x53380b={'startRow':_0x51dc49['first'],'endRow':_0x51dc49['last'],'startColumn':_0x63696e['first'],'endColumn':_0x63696e['last']};return 0x1==_0x2bd281['length']&&(_0x53380b['endRow']+=_0x3ad342['getRows'](_0x26dfb2)-0x1,_0x53380b['endColumn']+=_0x3ad342['getColumns'](_0x26dfb2)-0x1),Bt(_0x49fc10,_0x53380b,_0x3ad342);}(_0x332f55,_0x3c123c,_0x5d39c7['model'],_0x427e0e,_0x26f70b)&&(_0x1eed00['stop'](),_0x172c67={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5d39c7['model']['change'](()=>{_0x5d39c7['model']['insertContent'](_0x1b4ae3[0x0],_0x1b4ae3[0x1],_0x1b4ae3[0x2],{'forceDefaultExecution':!0x0});const _0x29e372=_0x272311(),{rowInsertionRanges:_0x129fe3,columnInsertionRanges:_0x2c5cfc,insertionRanges:_0x4a441e,deletionRanges:_0x51f6d1,cells:_0x589f5f}=_0x172c67;_0x129fe3['length']&&_0x570bed['markMultiRangeInsertion'](_0x129fe3,'tablePasteRow',{'tablePasteChainId':_0x29e372}),_0x2c5cfc['length']&&_0x570bed['markMultiRangeInsertion'](_0x2c5cfc,'tablePasteColumn',{'tablePasteChainId':_0x29e372}),_0x4a441e['length']&&(_0x570bed['markMultiRangeInsertion'](_0x4a441e,'tablePaste',{'tablePasteChainId':_0x29e372,'skipNestingCheck':!0x0}),_0x4a441e['forEach'](_0x42054b=>_0x42054b['detach']?.())),_0x51f6d1['length']&&(_0x570bed['markMultiRangeDeletion'](_0x51f6d1,'tablePaste',{'tablePasteChainId':_0x29e372,'skipNestingCheck':!0x0}),_0x51f6d1['forEach'](_0x266790=>_0x266790['detach']?.()));const _0x243c54=_0x570bed['markMultiRangeBlockFormat'](_0x589f5f['map'](({element:_0x3a57bb})=>_0x3a57bb),{'formatGroupId':_0x272311()},[],'tablePasteCell',{'tablePasteChainId':_0x29e372});if(_0x243c54){const _0x244f47=_0x243c54['getMarkers'](),_0x2c04fa=[];for(const {element:_0x2ea613,attributes:_0x951684}of _0x589f5f){if(!_0x951684)continue;const _0x1cc5c6=_0x5d39c7['model']['createRangeOn'](_0x2ea613),_0x300784=_0x244f47['find'](_0x1905cf=>_0x1905cf['getRange']()['isEqual'](_0x1cc5c6));_0x300784&&_0x2c04fa['push']([_0x300784['name'],_0x951684]);}_0x2c04fa['length']&&_0x243c54['setAttribute']('markerAttributes',Object['fromEntries'](_0x2c04fa));}_0x172c67=null;}));},{'priority':_0x3bd827['high']+0xa}),_0x3c6aed['on']('contentInsertion',()=>{_0x2aa40d=!0x1;},{'priority':'lowest'}),_0x5d39c7['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x44708c,_0x2123f3)=>{const [_0x23635d,_0x2fb244,,_0x3cc796]=_0x2123f3;if(!_0x172c67)return;_0x44708c['stop']();const _0x1e81a3=_0x23635d['cell'],_0x59ec20=_0x2fb244,_0x1b11f3=wt(_0x1e81a3),_0x36ce60=wt(_0x59ec20);_0x44708c['return']=_0x1e81a3;let _0x3fcadc=null,_0x98ff03=null;if(_0x36ce60||_0x1b11f3){if(_0x1b11f3&&!_0x36ce60){_0x3cc796['remove'](_0x1e81a3['getChild'](0x0));for(const _0x50df92 of Array['from'](_0x59ec20['getChildren']()))_0x3cc796['insert'](_0x50df92,_0x1e81a3,'end');const _0x599f47=_0x172c67['rowInsertionIndexes']['includes'](_0x23635d['row']),_0x5dfd60=_0x172c67['columnInsertionIndexes']['includes'](_0x23635d['column']);_0x599f47||_0x5dfd60||(_0x3fcadc=_0x53b34c['fromRange'](_0x3cc796['createRangeIn'](_0x1e81a3)));}else _0x36ce60&&!_0x1b11f3&&(_0x98ff03=_0x3cc796['createRangeIn'](_0x1e81a3));}else{const _0x590e00=_0x3cc796['createElement']('tableCellSuggestion'),_0x513cd4=_0x3cc796['createElement']('tableCellSuggestion');_0x3cc796['wrap'](_0x3cc796['createRangeIn'](_0x1e81a3),_0x513cd4),_0x3cc796['insert'](_0x590e00,_0x1e81a3,0x0);for(const _0x1035a7 of Array['from'](_0x59ec20['getChildren']()))_0x3cc796['insert'](_0x1035a7,_0x590e00,'end');_0x3fcadc=_0x53b34c['fromRange'](_0x3cc796['createRangeOn'](_0x590e00)),_0x98ff03=_0x53b34c['fromRange'](_0x3cc796['createRangeOn'](_0x513cd4));}const _0x4e21a0=Array['from'](_0x59ec20['getAttributes']())['filter'](([_0x53ac1a])=>Mt['includes'](_0x53ac1a));_0x172c67['cells']['push']({'element':_0x1e81a3,'attributes':_0x4e21a0['length']?Object['fromEntries'](_0x4e21a0):null}),_0x3fcadc&&_0x172c67['insertionRanges']['push'](_0x3fcadc),_0x98ff03&&_0x172c67['deletionRanges']['push'](_0x98ff03);},{'priority':'high'}),_0x427e0e['on']('insertColumns',(_0x24afa2,_0x4992fc)=>{const [_0x526940,_0x439e70={}]=_0x4992fc;if(!_0x172c67)return;const _0x5cdd3a=_0x439e70['at']||0x0,_0x460544=_0x439e70['columns']||0x1;_0x172c67['columnInsertionIndexes']=new Array(_0x460544)['fill'](_0x5cdd3a)['map']((_0x4deae3,_0x343dcf)=>_0x4deae3+_0x343dcf);for(const {cell:_0x248d4c}of _0x427e0e['createTableWalker'](_0x526940,{'startColumn':_0x5cdd3a,'endColumn':_0x5cdd3a+_0x460544-0x1}))_0x172c67['columnInsertionRanges']['push'](_0x5d39c7['model']['createRangeOn'](_0x248d4c));},{'priority':'low'}),_0x427e0e['on']('insertRows',(_0x4dd374,_0x34395c)=>{const [_0x3ea617,_0x41e521={}]=_0x34395c;if(!_0x172c67)return;const _0x2721a9=_0x41e521['at']||0x0,_0xf12c0d=_0x41e521['rows']||0x1;_0x172c67['rowInsertionIndexes']=new Array(_0xf12c0d)['fill'](_0x2721a9)['map']((_0x208a83,_0x17381d)=>_0x208a83+_0x17381d);for(const {cell:_0x4c0da8}of _0x427e0e['createTableWalker'](_0x3ea617,{'startRow':_0x2721a9,'endRow':_0x2721a9+_0xf12c0d-0x1}))_0x172c67['rowInsertionRanges']['push'](_0x5d39c7['model']['createRangeOn'](_0x4c0da8));},{'priority':'low'}),_0x570bed['descriptionFactory']['registerDescriptionCallback'](_0xbaeaf0=>{if(_0xbaeaf0['subType']&&_0xbaeaf0['subType']['startsWith']('tablePaste'))return _0xbaeaf0['previous']?{}:{'type':'insertion','content':Tt(_0x5d39c7['locale'],'*Replace\x20table\x20cells*')};});const _0x41f2aa=()=>!0x1;for(const _0x5be227 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x570bed['_suggestionFactory']['registerCustomCallback']('insertion',_0x5be227,'join',_0x41f2aa),_0x570bed['_suggestionFactory']['registerCustomCallback']('deletion',_0x5be227,'join',_0x41f2aa),_0x570bed['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5be227,'join',_0x41f2aa);_0x570bed['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x41f2aa),_0x570bed['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4f0f40,_0x28b456,_0x492ee5)=>{const _0x27643a=_0x4f0f40['map'](_0x3b626e=>_0x3b626e['getContainedElement']())['filter'](_0x5e627e=>_0x5e627e),_0x5f3771=new Map(_0x27643a['map'](_0x16bf55=>[_0x16bf55,null]));if(_0x172c67){for(const {element:_0x333821,attributes:_0x1595d8}of _0x172c67['cells'])_0x1595d8&&_0x5f3771['set'](_0x333821,_0x1595d8);}else{if(_0x492ee5&&_0x492ee5['markerAttributes'])for(const [_0x20ba09,_0x26e09d]of Object['entries'](_0x492ee5['markerAttributes'])){const _0x1901d8=_0x5d39c7['model']['markers']['get'](_0x20ba09),_0x1b3244=_0x1901d8?_0x1901d8['getRange']()['getContainedElement']():null;_0x1b3244&&_0x5f3771['set'](_0x1b3244,_0x26e09d);}}_0x5d39c7['model']['change'](_0x4aa8c0=>{for(const [_0x29001d,_0x171d21]of _0x5f3771)_0x4aa8c0['setAttributes']({...Ot,..._0x171d21},_0x29001d);});});const _0x4e1a68=(_0x4afcfa,_0x226959)=>{_0x570bed['_suggestionFactory']['registerCustomCallback'](_0x4afcfa,'tablePaste',_0x226959,(_0x1b7547,_0x7406e3,_0x5238bd)=>{_0x5d39c7['model']['change'](_0x43cf84=>{const _0x14ed46=[];for(const _0x341ae5 of _0x1b7547){const _0x42b093=_0x341ae5['start']['nodeAfter'];_0x42b093['is']('element','tableCellSuggestion')&&_0x14ed46['push'](_0x42b093);}_0x570bed['_suggestionFactory']['getSuggestionCallback'](_0x4afcfa,null,_0x226959)(_0x1b7547,_0x7406e3,_0x5238bd);for(const _0xbfe10a of _0x14ed46)'$graveyard'!=_0xbfe10a['root']['rootName']&&_0x43cf84['unwrap'](_0xbfe10a);});});};_0x4e1a68('insertion','accept'),_0x4e1a68('insertion','discard'),_0x4e1a68('deletion','accept'),_0x4e1a68('deletion','discard'),_0x570bed['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1a3911=>{const _0x4e4a4d=_0x1a3911['map'](_0x512cac=>_0x512cac['getContainedElement']()),_0x3578ea=_0x4e4a4d[0x0]['findAncestor']('table'),{minRow:_0x34ef1a,maxRow:_0x1be45a}=_0x4626e8['_getCoordsForCells'](_0x4e4a4d);_0x427e0e['removeRows'](_0x3578ea,{'at':_0x34ef1a,'rows':_0x1be45a-_0x34ef1a+0x1});}),_0x570bed['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x175a32=>{const _0x55df7e=_0x175a32['map'](_0x1e8759=>_0x1e8759['getContainedElement']()),_0x4d5b9b=_0x55df7e[0x0]['findAncestor']('table'),{minColumn:_0x1317e6,maxColumn:_0x846c0}=_0x4626e8['_getCoordsForCells'](_0x55df7e);_0x427e0e['removeColumns'](_0x4d5b9b,{'at':_0x1317e6,'columns':_0x846c0-_0x1317e6+0x1});});const _0x398c53=(_0x28dae8,_0x443a43)=>{if(!_0x443a43['subType']||!_0x443a43['subType']['startsWith']('tablePaste'))return;const _0x36e6e6=_0x443a43['attributes']['tablePasteChainId'],_0x216f38=_0x570bed['getSuggestions']()['filter'](_0x4d211e=>_0x4d211e['isInContent']&&_0x4d211e['attributes']&&_0x4d211e['attributes']['tablePasteChainId']==_0x36e6e6);_0x216f38['length']&&_0x443a43['getAllAdjacentSuggestions']()['length']!=_0x216f38['length']&&_0x216f38['reduce']((_0x2c7665,_0x2ed8c4)=>(_0x2c7665['next']=_0x2ed8c4,_0x2ed8c4['previous']=_0x2c7665,_0x2ed8c4));};function _0x2b77ad(_0x3a43c2,_0x1602a6=!0x0){const {id:_0x278380,authorId:_0x71657e}=_0x5cc320(_0x3a43c2['markerName']),_0x48b5ec=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xbf1859=_0x570bed['activeMarkers']['includes'](_0x3a43c2['markerName']);return _0xbf1859&&_0x48b5ec['push']('ck-suggestion-marker--active'),{'classes':_0x48b5ec,'attributes':{'data-suggestion':_0x278380,'data-author-id':_0x71657e},'priority':_0xbf1859&&_0x1602a6?0xbc2:0xbb8};}_0x570bed['on']('suggestionLoaded',_0x398c53,{'priority':'high'}),_0x570bed['on']('suggestionUnloaded',_0x398c53,{'priority':'high'}),_0x5d39c7['model']['document']['registerPostFixer'](()=>{let _0x3cfb0d=!0x1;const _0x3afb7f=Array['from'](_0x5d39c7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x502844,data:_0x4ac437}of _0x3afb7f){const {group:_0x2d18b0,type:_0x2de2d3,id:_0x349f7a}=_0x5cc320(_0x502844);if('suggestion'!=_0x2d18b0||'deletion'!=_0x2de2d3||_0x4ac437['oldRange'])continue;if(!_0x570bed['hasSuggestion'](_0x349f7a))continue;const _0x1eb81e=_0x570bed['getSuggestion'](_0x349f7a)['getRanges'](),_0x5485a7=_0x5d39c7['plugins']['get']('Users')['me'];for(const _0x193543 of _0x570bed['getSuggestions']()){if(!_0x193543['isInContent']||_0x193543['author']!=_0x5485a7)continue;if('formatBlock'!=_0x193543['type']||'tablePasteCell'!=_0x193543['subType'])continue;if(_0x193543['getRanges']()['every'](_0x3a47ec=>_0x1eb81e['some'](_0xbd454=>_0xbd454['containsRange'](_0x3a47ec,!0x0)))){for(const _0x366a9e of _0x193543['getAllAdjacentSuggestions']())_0x366a9e['isInContent']&&(_0x366a9e['discard'](),_0x3cfb0d=!0x0);}}}return _0x3cfb0d;}),_0x5d39c7['model']['document']['registerPostFixer'](_0x2d1b4f=>{const _0x30c595=_0x5d39c7['commands']['get']('redo');if(!_0x30c595||!_0x30c595['_createdBatches']['has'](_0x2d1b4f['batch']))return!0x1;let _0x397005=!0x1;const _0x587288=_0x5d39c7['plugins']['get']('Users')['me'],_0x2b7f1b=_0x5d39c7['model']['document']['differ']['getChanges'](),_0x45c23a=Array['from'](_0x5d39c7['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5c634b,data:_0x3a4c56})=>{const {group:_0x3cdff8,subType:_0xa9c402,authorId:_0x5122f7}=_0x5cc320(_0x5c634b);return'suggestion'==_0x3cdff8&&'tablePaste'==_0xa9c402&&_0x5122f7==_0x587288['id']&&!_0x3a4c56['oldRange'];});for(const _0x56e12d of _0x2b7f1b){if('insert'!=_0x56e12d['type']||'tableCellSuggestion'!=_0x56e12d['name']||0x1!=_0x56e12d['length'])continue;const _0x37841e=_0x2d1b4f['createRange'](_0x56e12d['position'],_0x56e12d['position']['getShiftedBy'](0x1));if(!_0x45c23a['find'](({data:_0x41826d})=>_0x41826d['newRange']['isEqual'](_0x37841e))){for(const {name:_0x55b0f7,data:_0x516e3c}of _0x45c23a)if(_0x37841e['containsRange'](_0x516e3c['newRange'])){_0x2d1b4f['updateMarker'](_0x55b0f7,{'range':_0x37841e}),_0x397005=!0x0;break;}}}return _0x397005;}),_0x5d39c7['model']['document']['registerPostFixer'](_0x1b9f35=>{let _0x58c163=!0x1;const _0x2935ec=_0x5d39c7['plugins']['get']('Users')['me'],_0x319965=_0x570bed['getSuggestions']()['filter'](_0x2f70ae=>_0x2f70ae['isInContent']&&_0x2f70ae['author']==_0x2935ec),_0x37c270=new Set(),_0x1a5a10=new Set();for(const _0x1a6113 of _0x319965)if('tablePaste'==_0x1a6113['subType'])for(const _0xd40d0d of _0x1a6113['getMarkers']()){const _0x3649cb=_0xd40d0d['getRange']()['getContainedElement']();if(_0x3649cb){if(_0x3649cb['is']('element','tableCellSuggestion')&&wt(_0x3649cb)){_0x1a6113['removeMarker'](_0xd40d0d['name']),_0x37c270['add'](_0x3649cb),_0x58c163=!0x0;const _0x2b4344=_0x3649cb['nextSibling'],_0x433e71=_0x3649cb['previousSibling'],_0xff07f1=_0x2b4344&&_0x2b4344['is']('element','tableCellSuggestion'),_0x4659de=_0x433e71&&_0x433e71['is']('element','tableCellSuggestion');_0xff07f1&&!_0x37c270['has'](_0x2b4344)&&_0x1a5a10['add'](_0x2b4344),_0x4659de&&!_0x37c270['has'](_0x433e71)&&_0x1a5a10['add'](_0x433e71);}else _0x3649cb['is']('element','paragraph')&&_0x3649cb['isEmpty']&&(_0x1a6113['removeMarker'](_0xd40d0d['name']),_0x58c163=!0x0);}}else{if('tablePasteCell'==_0x1a6113['subType']){if(!_0x1a6113['attributes']||!_0x1a6113['attributes']['tablePasteChainId'])continue;const _0x1f8899=_0x1a6113['attributes']['markerAttributes'];if(_0x1f8899&&Object['keys'](_0x1f8899)['length'])continue;const _0x6f466e=_0x1a6113['attributes']['tablePasteChainId'];let _0x31ae3e=!0x0,_0x2d3283=!0x0;for(const _0x2c352f of _0x319965)if(_0x2c352f['subType']&&_0x2c352f['subType']['startsWith']('tablePaste')){if(!_0x2c352f['attributes']['tablePasteChainId']){_0x2d3283=!0x1;break;}if(_0x2c352f['id']!=_0x1a6113['id']&&_0x2c352f['attributes']['tablePasteChainId']==_0x6f466e){_0x31ae3e=!0x1;break;}}_0x2d3283&&_0x31ae3e&&(_0x1a6113['removeMarkers'](),_0x58c163=!0x0);}}for(const _0x3f9b84 of _0x37c270)_0x1b9f35['remove'](_0x3f9b84);for(const _0x256c29 of _0x1a5a10)_0x1b9f35['unwrap'](_0x256c29);return _0x58c163;}),_0x5d39c7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xb34c3d=>_0x2b77ad(_0xb34c3d),'converterPriority':'high'}),_0x5d39c7['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xc1330e,_0x177b12)=>_0x177b12['options']['showSuggestionHighlights']?_0x2b77ad(_0xc1330e,!0x1):null,'converterPriority':'high'});const _0x314a56=_0x5d39c7['editing']['view'];this['listenTo'](_0x314a56['document'],'clipboardOutput',(_0x3b8603,_0x2b59c5)=>{const _0x3c2ce4=[];for(const _0x39eed5 of _0x314a56['createRangeIn'](_0x2b59c5['content'])['getItems']())_0x39eed5['is']('element','suggestion-td')&&_0x3c2ce4['push'](_0x39eed5);_0x314a56['change'](_0x3ba2a6=>{for(const _0x13c122 of _0x3c2ce4)_0x3ba2a6['move'](_0x3ba2a6['createRangeIn'](_0x13c122),_0x3ba2a6['createPositionBefore'](_0x13c122)),_0x3ba2a6['remove'](_0x13c122);});});}}function wt(_0xfdc5c1){if(_0xfdc5c1['isEmpty'])return!0x0;const _0x3651b1=_0xfdc5c1['getChild'](0x0);return _0x3651b1['is']('element','paragraph')&&_0x3651b1['isEmpty'];}function Bt(_0x13f7f3,_0x43f751={},_0x2079ed){for(const {isAnchor:_0x26be9a,cellHeight:_0x3d6e30,cellWidth:_0x4fc385}of _0x2079ed['createTableWalker'](_0x13f7f3,{'includeAllSlots':!0x0,..._0x43f751}))if(!_0x26be9a||0x1!=_0x3d6e30||0x1!=_0x4fc385)return!0x1;return!0x0;}class TrackChangesTableColumnResize extends _0x5a485e{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x594f3e=this['editor']['plugins']['get']('TrackChangesEditing');_0x594f3e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x594f3e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x594f3e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x594f3e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x594f3e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x594f3e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5395c9,_0x292748){const _0x16508e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c45d4=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x344ee5=_0x292748['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4ed7fe=_0x3c45d4['getColumnGroupElement'](_0x344ee5);let _0x457723=_0x4ed7fe?_0x3c45d4['getTableColumnsWidths'](_0x4ed7fe):null,_0xc6adb1=_0x344ee5['getAttribute']('tableWidth')||null;const _0x10dfaf=_0x292748['tableWidth']||_0xc6adb1,_0x521c16=_0x292748['columnWidths']||_0x457723,_0x32b009=this['editor']['plugins']['get']('Users')['me'];for(const _0x4571ea of _0x16508e['getSuggestions']()){const _0x3c92d9=_0x4571ea['getContainedElement']();if('resizeTable'===_0x4571ea['subType']&&_0x3c92d9===_0x344ee5){_0x4571ea['author']!==_0x32b009&&_0x4571ea['discard']();const _0x19d49e=_0x4571ea['data']['commandParams'];_0xc6adb1=_0x19d49e[0x0]['tableWidth'],_0x457723=_0x19d49e[0x0]['columnWidths'];break;}}_0x5395c9({'table':_0x344ee5,'tableWidth':_0x10dfaf,'columnWidths':_0x521c16}),_0x16508e['markBlockFormat'](_0x344ee5,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xc6adb1,'columnWidths':_0x457723}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x479fd0){if('formatBlock'!=_0x479fd0['type']&&'formatInline'!=_0x479fd0['type'])return;const {data:_0x4b581c}=_0x479fd0;if(_0x4b581c&&'resizeTable'===_0x4b581c['formatGroupId']){const _0x47562e='*Format:*\x20resize\x20table';return{'type':'format','content':Tt(this['editor']['locale'],_0x47562e)};}}}class TrackChangesTemplate extends _0x5a485e{['afterInit'](){const _0x481069=this['editor'];_0x481069['plugins']['has']('Template')&&_0x481069['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class TrackChangesTableOfContents extends _0x5a485e{['afterInit'](){const _0x12102b=this['editor'];if(!_0x12102b['commands']['get']('insertTableOfContents'))return;_0x12102b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x513a56=_0x12102b['plugins']['get']('TrackChangesEditing'),_0x2874d8=_0x12102b['locale'];_0x513a56['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4a1d04=>Tt(_0x2874d8,'ELEMENT_TABLE_OF_CONTENTS',_0x4a1d04));}}class TrackChangesTitle extends _0x5a485e{['afterInit'](){const _0x5643fa=this['editor'];if(!_0x5643fa['plugins']['has']('Title'))return;_0x5643fa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Tt(_0x5643fa['locale'],'ELEMENT_TITLE')),_0x5643fa['model']['document']['registerPostFixer'](_0x1f8eb=>{let _0x35cfb1=!0x1;const _0x580144=Array['from'](_0x5643fa['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x337ef3,data:_0x57ddbe}of _0x580144){const {group:_0x159793}=_0x5cc320(_0x337ef3);if('suggestion'!==_0x159793||!_0x57ddbe['newRange'])continue;const _0x1499c6=_0x57ddbe['newRange'],_0x10703e=_0x1499c6['end']['nodeBefore'];if(!_0x10703e||!_0x10703e['is']('element','title-content'))continue;if(!_0x1499c6['start']['isTouching'](_0x1499c6['end']))continue;const _0x47dc87=_0x5643fa['model']['schema']['getNearestSelectionRange'](_0x1499c6['end'],'forward');if(_0x47dc87&&_0x47dc87['isCollapsed']){const _0x17633d=_0x1f8eb['createRange'](_0x1499c6['start'],_0x47dc87['start']);_0x17633d['isEqual'](_0x1499c6)||(_0x1f8eb['updateMarker'](_0x337ef3,{'range':_0x17633d}),_0x35cfb1=!0x0);}_0x35cfb1||(_0x1f8eb['removeMarker'](_0x337ef3),_0x35cfb1=!0x0);}return _0x35cfb1;});}}class TrackChangesUploadcare extends _0x5a485e{['afterInit'](){const _0x16150b=this['editor'],_0x61c10a=_0x16150b['plugins']['get']('TrackChangesEditing');_0x16150b['plugins']['has']('Uploadcare')&&(_0x61c10a['enableCommand']('uploadcare'),_0x16150b['plugins']['has']('UploadcareImageEdit')&&(_0x61c10a['enableCommand']('uploadcareImageEdit'),_0x61c10a['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x61c10a['descriptionFactory']['registerDescriptionCallback'](_0x5b999c=>{if('attribute'!=_0x5b999c['type'])return;const {data:_0x25ed30}=_0x5b999c;return _0x25ed30&&'uploadcareImageId'==_0x25ed30['key']?{'type':'format','content':''}:void 0x0;})));}}class TrackChangesUndo extends _0x5a485e{['afterInit'](){const _0x397924=this['editor'],_0x4f91c5=_0x397924['plugins']['get']('TrackChangesEditing');_0x397924['plugins']['has']('UndoEditing')&&(_0x4f91c5['enableCommand']('undo'),_0x4f91c5['enableCommand']('redo'));}}class TrackChangesTableCaption extends _0x5a485e{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x2caeb8=this['editor'];if(!_0x2caeb8['plugins']['has']('TableCaptionEditing'))return;_0x2caeb8['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class TrackChangesTableProperties extends _0x5a485e{['tableProperties'];['tableCellProperties'];constructor(_0x5b28c0){super(_0x5b28c0),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x3fc86e=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x192ce8 of this['tableProperties'])_0x3fc86e['enableCommand'](_0x192ce8,(_0x3976df,_0x5cb5db)=>{const _0x443a78=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x192ce8,[_0x443a78],this['tableProperties'],'tableProperties',_0x3976df,_0x5cb5db);});_0x3fc86e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3fc86e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3fc86e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x21b755,_0x5a1d9d)=>this['handleDiscardAction'](this['tableProperties'],_0x21b755,_0x5a1d9d)),_0x3fc86e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x45a279 of this['tableCellProperties'])this['editor']['commands']['get'](_0x45a279)&&_0x3fc86e['enableCommand'](_0x45a279,(_0xb0d812,_0x136449)=>{const _0x4dcc61=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x45a279,_0x4dcc61,this['tableCellProperties'],'tableCellProperties',_0xb0d812,_0x136449);});_0x3fc86e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3fc86e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3fc86e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5d25c8,_0x19f29e)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5d25c8,_0x19f29e)),_0x3fc86e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x3fc86e['descriptionFactory']['registerAttributeLabel']('tableCellType',Tt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x3fc86e['descriptionFactory']['registerDescriptionCallback'](_0xfa9044=>this['handleSuggestionDescription'](_0xfa9044)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0xd9cf54,_0xc3d396,_0x460b87,_0x3d64c9,_0x1f5333,_0x1334ad){const _0x56af21=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1334ad['batch'],()=>{for(const _0x1bef55 of _0xc3d396){if(this['_getSuggestion'](_0x1bef55,_0x3d64c9))_0x1f5333(_0x1334ad);else{const _0x17bc2b={};for(const _0x2e6f48 of _0x460b87){const _0x59a087=_0x1bef55['getAttribute'](_0x2e6f48);void 0x0!==_0x59a087&&(_0x17bc2b[_0x2e6f48]=_0x59a087);}_0x1f5333(_0x1334ad),_0x56af21['markBlockFormat'](_0x1bef55,{'commandParams':[_0x17bc2b]},[],_0x3d64c9);}}});}['handleDiscardAction'](_0x2a4825,_0xcc4797,_0x2a8ce9){const _0x28369a=_0xcc4797[0x0]['start']['nodeAfter'],_0xfd3131=_0x2a8ce9['commandParams'][0x0];this['editor']['model']['change'](_0x3ff4d2=>{for(const _0x223d66 of _0x2a4825)void 0x0!==_0xfd3131[_0x223d66]?_0x3ff4d2['setAttribute'](_0x223d66,_0xfd3131[_0x223d66],_0x28369a):_0x3ff4d2['removeAttribute'](_0x223d66,_0x28369a);});}['handleSuggestionDescription'](_0x5dc19f){if(_0x5dc19f['data'])switch(_0x5dc19f['subType']){case'tableProperties':return{'type':'format','content':Tt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Tt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x4fb931,_0x7c0937){const _0x3d5cac=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x585092 of _0x3d5cac['getSuggestions']({'skipNotAttached':!0x0})){const _0x274627=_0x585092['getContainedElement']();if(_0x585092['subType']===_0x7c0937&&_0x274627===_0x4fb931)return _0x585092;}return null;}['_registerTablePropertiesAttributes'](){const _0x1c4761=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb2a192=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x33f5a0 of _0xb2a192){const _0x6295ac=_0x33f5a0['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x1c4761['descriptionFactory']['registerAttributeLabel'](_0x33f5a0,Tt(this['editor']['locale'],'FORMAT_'+_0x6295ac));}}}class TrackChangesLineHeight extends _0x5a485e{['afterInit'](){const _0x3a8dd4=this['editor'];if(!_0x3a8dd4['plugins']['has']('LineHeight'))return;const _0x3221c1=_0x3a8dd4['plugins']['get']('TrackChangesEditing'),_0x3ff4ff=_0x3a8dd4['locale'];_0x3221c1['enableDefaultAttributesIntegration']('lineHeight'),_0x3221c1['descriptionFactory']['registerAttributeLabel']('lineHeight',Tt(_0x3ff4ff,'FORMAT_LINE_HEIGHT'));}}const Ft='$elementName';class TrackChangesEditing extends _0x5a485e{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x112fe0,_0x31f2dc,_0x41f7d1,_0x23777d,_0x228d70,TrackChangesAIAssistant,TrackChangesAI,TrackChangesAIQuickActions,TrackChangesAlignment,TrackChangesBasicStyles,TrackChangesBlockQuote,TrackChangesBookmark,TrackChangesCKBox,TrackChangesCaseChange,TrackChangesCodeBlock,TrackChangesComments,TrackChangesDeleteCommand,TrackChangesEmoji,TrackChangesEnterCommand,TrackChangesFindAndReplace,TrackChangesFont,TrackChangesFootnotes,TrackChangesFormatPainter,TrackChangesHeading,TrackChangesHighlight,TrackChangesHorizontalLine,TrackChangesHtmlEmbed,TrackChangesImage,TrackChangesImageStyle,TrackChangesImageReplace,TrackChangesImportWord,TrackChangesIndent,TrackChangesInputCommand,TrackChangesLegacyList,TrackChangesLegacyListProperties,TrackChangesMultiLevelList,TrackChangesLink,TrackChangesList,TrackChangesLineHeight,TrackChangesDocumentListProperties,TrackChangesMediaEmbed,TrackChangesMention,TrackChangesMergeFields,TrackChangesPageBreak,TrackChangesParagraph,TrackChangesReplaceSourceCommand,TrackChangesRemoveFormat,TrackChangesRestrictedEditingMode,TrackChangesShiftEnterCommand,TrackChangesStandardEditingMode,TrackChangesStylesDropdown,TrackChangesTable,TrackChangesTableMergeSplit,TrackChangesTableHeadings,TrackChangesTableFooters,TrackChangesTableLayout,TrackChangesTableCaption,TrackChangesTableClipboard,TrackChangesTableColumnResize,TrackChangesTableOfContents,TrackChangesTableProperties,TrackChangesTemplate,TrackChangesTitle,TrackChangesUploadcare,TrackChangesUndo];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x32d37f){super(_0x32d37f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2d29c9,_0x2e89ec,_0x5e971e,_0x3e1ea4)=>{this['_model']['change'](()=>{for(const _0x5e2e50 of[..._0x3e1ea4,..._0x5e971e])this['_model']['markers']['has'](_0x5e2e50)&&_0x32d37f['editing']['reconvertMarker'](_0x5e2e50);});}),this['descriptionFactory']=new SuggestionDescriptionFactory(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new SuggestionFactory(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x32d37f['plugins']['get'](_0x112fe0),this['_suggestionsConversion']=_0x32d37f['plugins']['get'](_0x31f2dc),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x32d37f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x32d37f['config']['get']('trackChanges.trackFormatChanges'),_0x32d37f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x32d37f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new TrackChangesCommand(_0x32d37f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2fe55a=this['editor'];_0x2fe55a['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4ab4ce,{writer:_0x540ff9})=>{let _0x4cdda5='suggestion:'+_0x4ab4ce['getAttribute']('suggestion-type')+':'+_0x4ab4ce['getAttribute']('id');return _0x4ab4ce['getAttribute']('marker-count')&&(_0x4cdda5+=':'+_0x4ab4ce['getAttribute']('marker-count')),_0x540ff9['createElement']('$marker',{'data-name':_0x4cdda5});}}),_0x2fe55a['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2fe55a['model']['document']['registerPostFixer'](_0x2e41cc=>{let _0x1fe6ad=!0x1;const _0x2643b4=Array['from'](_0x2fe55a['model']['document']['differ']['getChangedMarkers']()),_0x34245c=new Set();for(const {name:_0x5b1ee9,data:_0x14611f}of _0x2643b4){const {group:_0x148b73,type:_0x677e59,subType:_0x36d3c3,id:_0x48cdd5}=_0x5cc320(_0x5b1ee9);if('suggestion'!==_0x148b73)continue;const _0x34f0fe=_0x36d3c3?'suggestion:'+_0x677e59+':'+_0x36d3c3+':'+_0x48cdd5:'suggestion:'+_0x677e59+':'+_0x48cdd5,_0x41f52e=_0x2fe55a['model']['markers']['getMarkersGroup'](_0x34f0fe),_0x4131cc=_0x2fe55a['model']['markers']['get'](_0x5b1ee9),_0x259c58=this['_suggestions']['get'](_0x48cdd5);if(null!=_0x14611f['newRange']){'formatInline'==_0x677e59&&(_0x1fe6ad=_0x1fe6ad||xt(_0x14611f['newRange'],_0x5b1ee9,_0x2e41cc,_0x2fe55a['model']['schema']));const _0x475cda='attribute'==_0x677e59&&this['_suggestionsConversion']['isBlockAttribute'](Xt(_0x36d3c3)),_0x12f90f='attribute'==_0x677e59&&this['_suggestionsConversion']['isInlineAttribute'](Xt(_0x36d3c3));if(_0x14611f['newRange']['isCollapsed']||'$graveyard'==_0x14611f['newRange']['root']['rootName']||'formatBlock'==_0x677e59&&!Ut(_0x14611f['newRange'])||_0x475cda&&!Ut(_0x14611f['newRange'])||_0x12f90f&&Gt(_0x14611f['newRange'])||'deletion'==_0x677e59&&Gt(_0x14611f['newRange'])||_0x4131cc&&Ht(_0x4131cc,_0x41f52e))_0x2e41cc['removeMarker'](_0x5b1ee9),_0x1fe6ad=!0x0;else{if(!_0x259c58||!_0x259c58['isInContent'])continue;if(_0x14611f['newRange']&&_0x14611f['oldRange']&&_0x14611f['newRange']['isEqual'](_0x14611f['oldRange']))continue;_0x34245c['add'](_0x259c58);}}}return _0x34245c['size']>0x0&&(_0x1fe6ad=!!this['_joinWithAdjacentSuggestions'](_0x34245c)||_0x1fe6ad),_0x1fe6ad;}),_0x2fe55a['model']['document']['registerPostFixer'](_0x52b1e9=>{let _0x58d752=!0x1;for(const _0x3949e6 of _0x2fe55a['model']['document']['differ']['getChanges']())if('insert'==_0x3949e6['type'])for(const _0x297322 of this['_suggestions']['values']()){if(_0x297322['isMultiRange']||!_0x297322['isInContent'])continue;const _0x4421eb='formatBlock'==_0x297322['type'],_0x14fde4=this['_getAttributeKey'](_0x297322),_0x1efef5=_0x14fde4&&this['_suggestionsConversion']['isBlockAttribute'](_0x14fde4);if(!_0x4421eb&&!_0x1efef5)continue;const _0xbddfde=_0x297322['getFirstRange']();if(_0xbddfde['start']['parent']!=_0xbddfde['end']['parent']&&!_0xbddfde['end']['isAtEnd']){const _0x11de6d=_0x2fe55a['model']['createPositionAt'](_0xbddfde['start']['nodeAfter'],'end'),_0x3b09ed=_0x2fe55a['model']['createRange'](_0xbddfde['start'],_0x11de6d);_0x52b1e9['updateMarker'](_0x297322['getFirstMarker'](),{'range':_0x3b09ed}),_0x58d752=!0x0;}}return _0x58d752;}),_0x2fe55a['model']['document']['registerPostFixer'](_0x1976d2=>this['_processAttributeChanges'](_0x1976d2)),_0x2fe55a['model']['document']['registerPostFixer'](_0x1c2f24=>!_0x1c2f24['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1c2f24)),_0x2fe55a['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2fe55a['model']['document']['on']('change:data',(_0x3c9a1c,_0x15f9da)=>{if(!_0x15f9da['isLocal']||_0x15f9da['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x51a623=_0x2fe55a['model']['document']['differ']['getChanges']();if(0x0==_0x51a623['length'])return;const _0x3ad1c4=[],_0x2e2efd=_0x51a623['filter'](_0x145c83=>'attribute'==_0x145c83['type']),_0x590fa3=_0x51a623['filter'](_0x9904f8=>'insert'==_0x9904f8['type']&&'$text'!=_0x9904f8['name']);for(const _0x3f2605 of _0x2e2efd)this['_suggestionsConversion']['isRegisteredAttribute'](_0x3f2605['attributeKey'])&&_0x3ad1c4['push']({'key':_0x3f2605['attributeKey'],'newValue':_0x3f2605['attributeNewValue'],'oldValue':_0x3f2605['attributeOldValue'],'range':$t(_0x3f2605['range'],_0x2fe55a['model'])});for(const _0x213e6d of _0x590fa3){if('rename'!=_0x213e6d['action']&&'refresh'!=_0x213e6d['action'])continue;const _0x38e547=Vt(_0x213e6d['position']['nodeAfter'],_0x2fe55a['model']),_0x313040=_0x213e6d['before'];'rename'==_0x213e6d['action']&&_0x3ad1c4['push']({'key':Ft,'newValue':_0x213e6d['name'],'oldValue':_0x313040['name'],'range':_0x38e547});for(const [_0x3abf3a,_0x4897de]of _0x313040['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x3abf3a))continue;const _0x27485e=_0x213e6d['attributes']['get'](_0x3abf3a);_0x4897de!==_0x27485e&&_0x3ad1c4['push']({'key':_0x3abf3a,'newValue':_0x27485e,'oldValue':_0x4897de,'range':_0x38e547});}for(const [_0x32a91a,_0x59d6ee]of _0x213e6d['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x32a91a)&&(_0x313040['attributes']['has'](_0x32a91a)||_0x3ad1c4['push']({'key':_0x32a91a,'newValue':_0x59d6ee,'oldValue':null,'range':_0x38e547}));}0x0!=_0x3ad1c4['length']&&_0x2fe55a['model']['enqueueChange'](_0x15f9da,_0x5a53de=>{const _0x54c1b3=_0x272311();for(const {range:_0x281c08,key:_0x3e854b,oldValue:_0x3aab4c,newValue:_0x29579a}of _0x3ad1c4)this['markAttributeChange'](_0x281c08,_0x3e854b,_0x3aab4c,_0x29579a,{'groupId':_0x54c1b3});this['_reduceExistingSuggestions'](_0x5a53de,_0x3ad1c4);});},{'priority':'lowest'}),_0x2fe55a['model']['markers']['on']('update:suggestion',(_0x27faba,_0x35957d,_0x2211b6)=>{if(null==_0x2211b6){const {id:_0x22d153}=_0x5cc320(_0x35957d['name']),_0x59038d=this['_suggestions']['get'](_0x22d153);_0x59038d&&_0x59038d['addMarkerName'](_0x35957d['name']);}}),_0x2fe55a['model']['document']['on']('change:data',()=>{const _0x335010=Array['from'](_0x2fe55a['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1efbf2=>'suggestion'===_0x5cc320(_0x1efbf2['name'])['group']);if(0x0===_0x335010['length'])return;_0x335010['sort']((_0x424ff8,_0x5e9dc4)=>{const _0x2862d4=_0x424ff8['data']['oldRange'],_0x15058f=_0x5e9dc4['data']['oldRange'];return null===_0x2862d4&&null===_0x15058f?0x0:null===_0x2862d4&&null!==_0x15058f?-0x1:null!==_0x2862d4&&null===_0x15058f?0x1:_0x2862d4['start']['isBefore'](_0x15058f['start'])?-0x1:0x1;});const _0x578ed2=new Set(),_0x402026=new Set();for(const {name:_0x7d08d5,data:_0x575f66}of _0x335010){const {id:_0x298be4}=_0x5cc320(_0x7d08d5);if(null===_0x575f66['oldRange']){const _0x307d6d=this['_handleNewSuggestionMarker'](_0x7d08d5);_0x402026['add'](_0x307d6d);}else{const _0x2a897e=this['_suggestions']['get'](_0x298be4);null!==_0x575f66['newRange']||_0x2a897e['isInContent']?(_0x578ed2['add'](_0x2a897e['head']),_0x402026['add'](_0x2a897e)):this['_removeSuggestion'](_0x2a897e);}}_0x402026['size']>0x0&&this['_refreshSuggestionsChain'](_0x402026);for(const _0x493826 of _0x578ed2)this['fire']('suggestionChanged',_0x493826);}),_0x2fe55a['model']['on']('applyOperation',(_0x2359fa,_0x26c89b)=>{const _0x1d91f3=_0x26c89b[0x0];if(!this['_suggestions']['size'])return;if(!_0x1d91f3['isDocumentOperation'])return;if(_0x1d91f3['batch']['isUndo']||!_0x1d91f3['batch']['isLocal'])return;let _0x1fbfb6,_0x201b2b;switch(_0x1d91f3['type']){case'insert':_0x1fbfb6=_0x2fe55a['model']['createPositionAt'](_0x1d91f3['position']),_0x201b2b=_0x1fbfb6['getShiftedBy'](_0x1d91f3['howMany']);break;case'split':_0x1fbfb6=_0x2fe55a['model']['createPositionAt'](_0x1d91f3['splitPosition']),_0x201b2b=_0x2fe55a['model']['createPositionAt'](_0x1d91f3['moveTargetPosition']);break;case'move':_0x1fbfb6=_0x2fe55a['model']['createPositionAt'](_0x1d91f3['targetPosition']),_0x201b2b=_0x1fbfb6['getShiftedBy'](_0x1d91f3['howMany']);break;default:return;}const _0x1ef77b=_0x2fe55a['model']['createRange'](_0x1fbfb6,_0x201b2b);_0x2fe55a['model']['change'](()=>{for(const {suggestion:_0x2b9484,meta:_0x23073c}of this['_findSuggestions'](_0x1ef77b)){if(_0x2b9484['isMultiRange'])continue;if('formatInline'==_0x2b9484['type'])continue;const _0x319044=this['_getAttributeKey'](_0x2b9484);if(_0x319044&&this['_suggestionsConversion']['isBlockAttribute'](_0x319044)&&'split'!=_0x1d91f3['type'])continue;const _0x580849=_0x2b9484['data']&&_0x2b9484['data']['multipleBlocks'];('formatBlock'!=_0x2b9484['type']||'split'==_0x1d91f3['type']&&!_0x580849)&&(_0x23073c['containsRangeInObject']||'insertion'==_0x2b9484['type']&&_0x23073c['isOwn']||_0x2b9484['getFirstRange']()['containsRange'](_0x1ef77b)&&this['_breakSuggestionMarker'](_0x2b9484,_0x1fbfb6,_0x201b2b));}});},{'priority':'lowest'}),_0x2fe55a['model']['on']('deleteContent',(_0x4bb9a1,_0x2254f5)=>{const _0x53fd31=_0x2254f5[0x0],_0x56328b=_0x2254f5[0x1];if(_0x56328b&&_0x56328b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x53fd31['isCollapsed'])return;const _0x360945=_0x2fe55a['model']['schema'],{start:_0x16f148,end:_0x4e5b6c}=_0x53fd31['getFirstRange'](),_0x55f290=_0x16f148['nodeAfter']&&_0x360945['isLimit'](_0x16f148['nodeAfter'])?null:_0x360945['getNearestSelectionRange'](_0x16f148,'forward'),_0x2de4ec=_0x4e5b6c['nodeBefore']&&_0x360945['isLimit'](_0x4e5b6c['nodeBefore'])?null:_0x360945['getNearestSelectionRange'](_0x4e5b6c,'backward'),_0x53e68a=_0x2fe55a['model']['createRange'](_0x55f290?_0x55f290['start']:_0x16f148,_0x2de4ec?_0x2de4ec['end']:_0x4e5b6c);_0x2fe55a['model']['change'](_0x5b5860=>{this['markDeletion'](_0x53e68a);const _0x5f04c3=_0x2fe55a['model']['schema']['getNearestSelectionRange'](_0x53e68a['start']);_0x53fd31['is']('documentSelection')?_0x5b5860['setSelection'](_0x5f04c3):_0x53fd31['setTo'](_0x5f04c3);}),_0x4bb9a1['stop']();},{'priority':_0x3bd827['normal']+0xa}),_0x2fe55a['model']['on']('insertContent',(_0x273d9c,_0x39c1bb)=>{const _0x543b28=_0x39c1bb[_0x39c1bb['length']-0x1];_0x543b28&&_0x543b28['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2fe55a['model']['change'](()=>{let _0x516f34=_0x2fe55a['model']['insertContent'](_0x39c1bb[0x0],_0x39c1bb[0x1],_0x39c1bb[0x2],{'forceDefaultExecution':!0x0});if(!_0x516f34)return;_0x273d9c['return']=_0x516f34['clone']();const _0x17be82=_0x516f34['end']['nodeBefore'],_0x1c6104=_0x2fe55a['model']['schema'];_0x17be82&&_0x1c6104['isBlock'](_0x17be82)&&!_0x1c6104['isObject'](_0x17be82)&&(_0x516f34=_0x2fe55a['model']['createRange'](_0x516f34['start'],_0x2fe55a['model']['createPositionAt'](_0x17be82,'end'))),this['markInsertion'](_0x516f34);}),_0x273d9c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x408d4=new AcceptSuggestionCommand(_0x2fe55a,this['_suggestions']);_0x2fe55a['commands']['add']('acceptSuggestion',_0x408d4),this['enableCommand']('acceptSuggestion');const _0x535b95=new DiscardSuggestionCommand(_0x2fe55a,this['_suggestions']);_0x2fe55a['commands']['add']('discardSuggestion',_0x535b95),this['enableCommand']('discardSuggestion'),_0x2fe55a['commands']['add']('acceptAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x2fe55a,_0x408d4,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2fe55a['commands']['add']('discardAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x2fe55a,_0x535b95,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2fe55a['commands']['add']('acceptSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x2fe55a,_0x408d4,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2fe55a['commands']['add']('discardSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x2fe55a,_0x535b95,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x33bc48=_0x2fe55a['plugins']['get'](_0x112fe0);this['listenTo'](_0x33bc48,'addComment',(_0x942948,{threadId:_0x4507c4})=>{const _0x3dddd9=this['_suggestions']['get'](_0x4507c4);_0x3dddd9&&_0x3dddd9['commentThread']&&0x1===_0x3dddd9['commentThread']['length']&&this['_updateSuggestionData'](_0x4507c4,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x33bc48,'removeComment',(_0x251fef,{threadId:_0x593413})=>{const _0x15409e=this['_suggestions']['get'](_0x593413);_0x15409e&&_0x15409e['commentThread']&&!_0x15409e['commentThread']['length']&&this['_updateSuggestionData'](_0x593413,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x129ec2){const _0x50fe8e=_0x260deb([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x56e677=0x3d8d0df,_0x571de4=0x3df5ae7^_0x56e677,_0x4338a8=window[_0x260deb([0x44,0x61,0x74,0x65])][_0x260deb([0x6e,0x6f,0x77])](),_0x318ed9=_0x129ec2[_0x260deb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x130e1a=new window[(_0x260deb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1db6af=>{_0x318ed9[_0x260deb([0x6f,0x6e,0x63,0x65])](_0x260deb([0x72,0x65,0x61,0x64,0x79]),_0x1db6af);}),_0x1f9d97={[_0x260deb([0x6b,0x74,0x79])]:_0x260deb([0x45,0x43]),[_0x260deb([0x75,0x73,0x65])]:_0x260deb([0x73,0x69,0x67]),[_0x260deb([0x63,0x72,0x76])]:_0x260deb([0x50,0x2d,0x32,0x35,0x36]),[_0x260deb([0x78])]:_0x260deb([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]),[_0x260deb([0x79])]:_0x260deb([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]),[_0x260deb([0x61,0x6c,0x67])]:_0x260deb([0x45,0x53,0x32,0x35,0x36])},_0xbd01df=_0x318ed9[_0x260deb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x260deb([0x67,0x65,0x74])](_0x260deb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x28cd22(){let _0x4c9d69,_0x56b0b3=null,_0x2c119b=null;try{if(_0xbd01df==_0x260deb([0x47,0x50,0x4c]))return _0x260deb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4c9d69=_0x255d9a(),!_0x4c9d69)return _0x260deb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4c9d69[_0x260deb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2c119b=_0xa117f1(_0x4c9d69[_0x260deb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4c9d69[_0x260deb([0x6a,0x74,0x69])])),await _0x448b20()?_0x4a86cd()?_0x334766()?_0x260deb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4d8603()?(_0x4c9d69[_0x260deb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x260deb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x56b0b3=_0x44933e(_0x260deb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3784e6()):_0x260deb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x260deb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x260deb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x260deb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x334766(){const _0x138751=[_0x260deb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x260deb([0x74,0x72,0x69,0x61,0x6c])][_0x260deb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c9d69[_0x260deb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4338a8/0x3e8:0xe10*_0x571de4;return _0x4c9d69[_0x260deb([0x65,0x78,0x70])]<_0x138751;}function _0x4a86cd(){const _0xd9fe=_0x4c9d69[_0x260deb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xd9fe)return!0x1;if(_0xd9fe[_0x260deb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x260deb([0x2a])))return!0x0;if(_0xd9fe[_0x260deb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x260deb([0x54,0x43])))return!0x0;if(_0xd9fe[_0x260deb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x260deb([0x52,0x54,0x43]))){if(_0x2a5015())return!0x0;if(_0x23fb86()||_0x4dfe33())return!0x0;}return!0x1;}function _0x4d8603(){const _0x101007=_0x4c9d69[_0x260deb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x101007||0x0==_0x101007[_0x260deb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x36eae1}=new URL(window[_0x260deb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x101007[_0x260deb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36eae1))return!0x0;const _0x655c60=_0x36eae1[_0x260deb([0x73,0x70,0x6c,0x69,0x74])](_0x260deb([0x2e]));return _0x101007[_0x260deb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1a8e22=>_0x1a8e22[_0x260deb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x260deb([0x2a])))[_0x260deb([0x6d,0x61,0x70])](_0xbe012b=>_0xbe012b[_0x260deb([0x73,0x70,0x6c,0x69,0x74])](_0x260deb([0x2e])))[_0x260deb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x228228=>_0x228228[_0x260deb([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x655c60[_0x260deb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x260deb([0x6d,0x61,0x70])](_0x4b05f6=>Array(_0x655c60[_0x260deb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4b05f6[_0x260deb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x260deb([0x66,0x69,0x6c,0x6c])](_0x4b05f6[0x0]===_0x260deb([0x2a])?_0x260deb([0x2a]):'')[_0x260deb([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4b05f6))[_0x260deb([0x73,0x6f,0x6d,0x65])](_0x388f57=>_0x655c60[_0x260deb([0x65,0x76,0x65,0x72,0x79])]((_0x15997d,_0x43e9b6)=>_0x388f57[_0x43e9b6]===_0x15997d||_0x388f57[_0x43e9b6]===_0x260deb([0x2a])));}function _0x3784e6(){return _0x56b0b3&&_0x2c119b?new window[(_0x260deb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x11b743,_0x361bdf)=>{_0x56b0b3[_0x260deb([0x74,0x68,0x65,0x6e])](_0x11b743,_0x361bdf),_0x2c119b[_0x260deb([0x74,0x68,0x65,0x6e])](_0x1c3226=>{_0x1c3226!=_0x260deb([0x56,0x61,0x6c,0x69,0x64])&&_0x11b743(_0x1c3226);},_0x361bdf);}):_0x56b0b3||_0x2c119b||_0x260deb([0x56,0x61,0x6c,0x69,0x64]);}}function _0xa117f1(_0x54fc8b,_0x337e5d){return new window[(_0x260deb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b8396=>{if(_0x130ef4())return _0x1b8396(_0x260deb([0x56,0x61,0x6c,0x69,0x64]));_0x2fed8c(),_0x318ed9[_0x260deb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x260deb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3bc45c=!0x1;const _0x51ca42=_0x272311();function _0x538535(_0x3cadfb){return!!_0x3cadfb&&(typeof _0x3cadfb===_0x260deb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3cadfb===_0x260deb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3cadfb[_0x260deb([0x74,0x68,0x65,0x6e])]===_0x260deb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3cadfb[_0x260deb([0x63,0x61,0x74,0x63,0x68])]===_0x260deb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2148a7(_0xd9273c){_0x3d58fa(_0xd9273c)[_0x260deb([0x74,0x68,0x65,0x6e])](_0x209acc=>{if(!_0x209acc||_0x209acc[_0x260deb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x260deb([0x6f,0x6b]))return _0x260deb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x50e10c(_0x5040a3(_0x51ca42+_0x337e5d))!=_0x209acc[_0x260deb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x260deb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x260deb([0x56,0x61,0x6c,0x69,0x64]);})[_0x260deb([0x74,0x68,0x65,0x6e])](_0x4c501e=>(_0x105337(),_0x4c501e),()=>{const _0x2dee8e=_0x109d20();return null==_0x2dee8e?(_0x105337(),_0x260deb([0x56,0x61,0x6c,0x69,0x64])):_0x260deb(_0x4338a8-_0x2dee8e>(0x27d454df^_0x56e677)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x260deb([0x74,0x68,0x65,0x6e])](_0x1b8396)[_0x260deb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1b8396(_0x260deb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x7f1b03=0x3ee3e5f^_0x56e677;function _0x105337(){const _0x417eb2=_0x260deb([0x6c,0x6c,0x63,0x74,0x2d])+_0x50e10c(_0x5040a3(_0x54fc8b)),_0xbb6d10=_0xab3243(_0x50e10c(window[_0x260deb([0x4d,0x61,0x74,0x68])][_0x260deb([0x63,0x65,0x69,0x6c])](_0x4338a8/_0x7f1b03)));window[_0x260deb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x260deb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x417eb2,_0xbb6d10);}function _0x109d20(){const _0x1c96b2=_0x260deb([0x6c,0x6c,0x63,0x74,0x2d])+_0x50e10c(_0x5040a3(_0x54fc8b)),_0x226de9=window[_0x260deb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x260deb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c96b2);return _0x226de9?window[_0x260deb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xab3243(_0x226de9),0x10)*_0x7f1b03:null;}function _0x3d58fa(_0x234671){return new window[(_0x260deb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x200505,_0xa33471)=>{_0x234671[_0x260deb([0x74,0x68,0x65,0x6e])](_0x200505,_0xa33471),window[_0x260deb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xa33471,0x3d9041f^_0x56e677);});}}_0x318ed9[_0x260deb([0x6f,0x6e])](_0x260deb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5d012e,_0x644c5d)=>{if(_0x644c5d[0x0]!=_0x54fc8b)return _0x1b8396(_0x260deb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x644c5d[0x1]={..._0x644c5d[0x1],[_0x260deb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x51ca42};},{[_0x260deb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x260deb([0x68,0x69,0x67,0x68])}),_0x318ed9[_0x260deb([0x6f,0x6e])](_0x260deb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x41b0d1=>{_0x538535(_0x41b0d1[_0x260deb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3bc45c=!0x0,_0x2148a7(_0x41b0d1[_0x260deb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x260deb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x260deb([0x6c,0x6f,0x77])}),_0x130e1a[_0x260deb([0x74,0x68,0x65,0x6e])](()=>{_0x3bc45c||_0x1b8396(_0x260deb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x130ef4(){return _0x318ed9[_0x260deb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x260deb([0x76,0x69,0x65,0x77])][_0x260deb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x260deb([0x61,0x75,0x74,0x6f]);}function _0x2fed8c(){_0x318ed9[_0x260deb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x260deb([0x76,0x69,0x65,0x77])][_0x260deb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x260deb([0x61,0x75,0x74,0x6f]);}}function _0x44933e(_0x419b0c){const _0x326336=[new window[(_0x260deb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ee1e7=>setTimeout(_0x2ee1e7,0x3d1ee13^_0x56e677)),_0x130e1a[_0x260deb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x260deb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x388590=>{let _0x4943d1=0x0;_0x318ed9[_0x260deb([0x6d,0x6f,0x64,0x65,0x6c])][_0x260deb([0x6f,0x6e])](_0x260deb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x33ffd0,_0x44c030)=>{_0x44c030[0x0][_0x260deb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4943d1++,_0x4943d1==(0x3d8d537^_0x56e677)&&(_0x388590(),_0x33ffd0[_0x260deb([0x6f,0x66,0x66])]());});}))];return window[_0x260deb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x260deb([0x72,0x61,0x63,0x65])](_0x326336)[_0x260deb([0x74,0x68,0x65,0x6e])](()=>_0x419b0c);}async function _0x5b8286(){await _0x130e1a,_0x318ed9[_0x260deb([0x6d,0x6f,0x64,0x65,0x6c])][_0x260deb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2dd5a9,_0x318ed9[_0x260deb([0x6d,0x6f,0x64,0x65,0x6c])][_0x260deb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2dd5a9,_0x318ed9[_0x260deb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x260deb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2a5015(){return _0x307ff0(_0x260deb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2aed36(_0x260deb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x260deb([0x73,0x74,0x61,0x74,0x65])]==_0x260deb([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x23fb86(){return _0x307ff0(_0x260deb([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 _0x4dfe33(){return _0x307ff0(_0x260deb([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xa75bce(_0x1736db){const _0x48e754=_0xeb7a37();_0x318ed9[_0x48e754]=_0x260deb([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1736db,_0x1736db!=_0x260deb([0x56,0x61,0x6c,0x69,0x64])&&_0x5b8286();}function _0xeb7a37(){const _0x27736f=window[_0x260deb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x260deb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x260deb([0x6e,0x6f,0x77])]())[_0x260deb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x260deb([0x2e]),'');let _0x51cd1c=_0x260deb([0x52]);for(let _0x55bdcd=0x0;_0x55bdcd<_0x27736f[_0x260deb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x55bdcd+=0x2){let _0x38a911=window[_0x260deb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27736f[_0x260deb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x55bdcd,_0x55bdcd+0x2));_0x38a911>=_0x50fe8e[_0x260deb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x38a911-=_0x50fe8e[_0x260deb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x51cd1c+=_0x50fe8e[_0x38a911];}return _0x51cd1c;}function _0x255d9a(){const _0x39d27c=_0xbd01df[_0x260deb([0x73,0x70,0x6c,0x69,0x74])](_0x260deb([0x2e]));if(0x3!=_0x39d27c[_0x260deb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x558e22(_0x39d27c[0x1]);function _0x558e22(_0x523871){const _0x3b2d0b=_0x6774fb(_0x523871);return _0x3b2d0b&&_0x2c1a96()?_0x3b2d0b:null;function _0x2c1a96(){const _0x25a4e7=_0x3b2d0b[_0x260deb([0x6a,0x74,0x69])],_0x5e0859=window[_0x260deb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25a4e7[_0x260deb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x25a4e7[_0x260deb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1de2c9={..._0x3b2d0b,[_0x260deb([0x6a,0x74,0x69])]:_0x25a4e7[_0x260deb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x25a4e7[_0x260deb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1de2c9[_0x260deb([0x76,0x63])],_0x5040a3(_0x1de2c9)==_0x5e0859;}}}async function _0x448b20(){let _0x45887d=!0x0;try{const _0x1a4104=_0xbd01df[_0x260deb([0x73,0x70,0x6c,0x69,0x74])](_0x260deb([0x2e])),[_0x110598,_0xf91e53,_0x284d33]=_0x1a4104;return _0x28d8b1(_0x110598),await _0x27fb17(_0x110598,_0xf91e53,_0x284d33),_0x45887d;}catch{return!0x1;}function _0x28d8b1(_0x58fe86){const _0x25631b=_0x6774fb(_0x58fe86);_0x25631b&&_0x25631b[_0x260deb([0x61,0x6c,0x67])]==_0x260deb([0x45,0x53,0x32,0x35,0x36])||(_0x45887d=!0x1);}async function _0x27fb17(_0x2dca1f,_0x23cd02,_0x4173a8){const _0x176ad0=window[_0x260deb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x260deb([0x66,0x72,0x6f,0x6d])](_0x82ed51(_0x4173a8),_0x5d7686=>_0x5d7686[_0x260deb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x15973d=new window[(_0x260deb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x260deb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2dca1f+_0x260deb([0x2e])+_0x23cd02),_0x4d3cf0=window[_0x260deb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x260deb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4d3cf0)return;const _0x4d2de6=await _0x4d3cf0[_0x260deb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x260deb([0x6a,0x77,0x6b]),_0x1f9d97,{[_0x260deb([0x6e,0x61,0x6d,0x65])]:_0x260deb([0x45,0x43,0x44,0x53,0x41]),[_0x260deb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x260deb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x260deb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4d3cf0[_0x260deb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x260deb([0x6e,0x61,0x6d,0x65])]:_0x260deb([0x45,0x43,0x44,0x53,0x41]),[_0x260deb([0x68,0x61,0x73,0x68])]:{[_0x260deb([0x6e,0x61,0x6d,0x65])]:_0x260deb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4d2de6,_0x176ad0,_0x15973d)||(_0x45887d=!0x1);}}function _0x6774fb(_0x1ef828){return _0x1ef828[_0x260deb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x260deb([0x65,0x79]))?JSON[_0x260deb([0x70,0x61,0x72,0x73,0x65])](_0x82ed51(_0x1ef828)):null;}function _0x82ed51(_0x420b71){return window[_0x260deb([0x61,0x74,0x6f,0x62])](_0x420b71[_0x260deb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x260deb([0x2b]))[_0x260deb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x260deb([0x2f])));}function _0x5040a3(_0x154c84){let _0x44c9da=0x1505;function _0x96e394(_0x191b37){for(let _0x552948=0x0;_0x552948<_0x191b37[_0x260deb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x552948++){const _0x39f0b1=_0x191b37[_0x260deb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x552948);_0x44c9da=(_0x44c9da<<0x5)+_0x44c9da+_0x39f0b1,_0x44c9da&=_0x44c9da;}}function _0x5b699b(_0x528866){Array[_0x260deb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x528866)?_0x528866[_0x260deb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5b699b):_0x528866&&typeof _0x528866==_0x260deb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x260deb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x528866)[_0x260deb([0x73,0x6f,0x72,0x74])]()[_0x260deb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3f2879,_0x72729e])=>{_0x96e394(_0x3f2879),_0x5b699b(_0x72729e);}):_0x96e394(window[_0x260deb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x528866));}return _0x5b699b(_0x154c84),_0x44c9da>>>0x0;}function _0x50e10c(_0x5b50dc){return _0x5b50dc[_0x260deb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x260deb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x260deb([0x30]));}function _0xab3243(_0x3fd237){return _0x3fd237[_0x260deb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x260deb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x260deb([0x6a,0x6f,0x69,0x6e])]('');}function _0x307ff0(_0x578dfd){return _0x318ed9[_0x260deb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x260deb([0x68,0x61,0x73])](_0x578dfd);}function _0x2aed36(_0x4bb436){return _0x318ed9[_0x260deb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x260deb([0x67,0x65,0x74])](_0x4bb436);}function _0x2dd5a9(){}function _0x260deb(_0x130049){return _0x130049['map'](_0x59cbc0=>String['fromCharCode'](_0x59cbc0))['join']('');}_0xa75bce(await _0x28cd22());}(this);}set['adapter'](_0x151263){if(this['_adapter'])throw new _0xa0bdff('track-changes-adapter-already-set',this);this['_adapter']=_0x151263;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5574d9=!0x1,toJSON:_0x3c7418=!0x1}={}){const _0x43259b=[];for(const _0x1072a3 of this['_suggestions']['values']())_0x5574d9&&!_0x1072a3['isInContent']||_0x43259b['push'](_0x1072a3);return _0x3c7418?_0x43259b['map'](_0x70fb61=>_0x70fb61['toJSON']()):_0x43259b;}['getSuggestion'](_0x32596d){const _0x32fac8=this['_suggestions']['get'](_0x32596d);if(!_0x32fac8)throw new _0xa0bdff('track-changes-suggestion-not-found',this);return _0x32fac8;}['hasSuggestion'](_0x3fe366){return this['_suggestions']['has'](_0x3fe366);}['addSuggestionData'](_0x2f63e9){const {authorId:_0x3d2e0e,id:_0x2173fc,originalSuggestionId:_0xb0aeb4,attributes:_0x56b798}=_0x2f63e9,[_0x61da16,_0x493187]=_0x2f63e9['type']['split'](':'),_0x5c81c6=this['_suggestions']['get'](_0x2173fc)||this['_createSuggestion'](_0x61da16,_0x493187,_0x2173fc,_0x3d2e0e,_0x56b798,_0xb0aeb4);if(this['_addThreadToSuggestion'](_0x5c81c6),this['_checkSuggestionCorrectness'](_0x5c81c6,_0x61da16,_0x493187||null,_0x3d2e0e),_0x5c81c6['createdAt']=_0x2f63e9['createdAt'],_0x5c81c6['_isDataLoaded']=!0x0,_0x56b798&&_0x56b798['@external']){const _0x959d55=_0x56b798['@external'],_0x93356f=this['_getExternalAuthor'](_0x959d55['authorName']);_0x5c81c6['authoredAt']=_0x959d55['createdAt'],_0x5c81c6['author']=_0x93356f,_0x5c81c6['isExternal']=!0x0;}else _0x5c81c6['authoredAt']=_0x2f63e9['createdAt'];switch(_0x2f63e9['data']&&(_0x5c81c6['data']=_0x2f63e9['data']),_0x2f63e9['attributes']&&(_0x5c81c6['attributes']=_0x2f63e9['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5c81c6['_saved']=!0x0),this['_suggestionState']['get'](_0x5c81c6)){case'notReady':this['_suggestionState']['set'](_0x5c81c6,'dataReady');break;case'markerReady':_0x5c81c6['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5c81c6])),this['_refreshSuggestionsChain'](new Set([_0x5c81c6])),this['_suggestionState']['set'](_0x5c81c6,'ready'),this['fire']('suggestionLoaded',_0x5c81c6)):this['_suggestionState']['set'](_0x5c81c6,'removed');}return _0x5c81c6;}['acceptSuggestion'](_0x25ab78){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x279ee7 of _0x25ab78['getAllAdjacentSuggestions']())_0x279ee7['accept']();});});}['discardSuggestion'](_0x5765df){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x46373a of _0x5765df['getAllAdjacentSuggestions']())_0x46373a['discard']();});});}['enableCommand'](_0x504d02,_0xce4dbb){const _0x35de1e=this['editor']['commands']['get'](_0x504d02);if(!_0x35de1e)throw new _0xa0bdff('track-changes-command-not-found',this,{'commandName':_0x504d02});if(this['_enabledCommands']['has'](_0x35de1e))throw new _0xa0bdff('track-changes-enable-command-twice',this,{'commandName':_0x504d02});this['_enabledCommands']['add'](_0x35de1e),_0xce4dbb&&_0x35de1e['on']('execute',(_0x110629,_0x183eee)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x183eee['length']>0x0&&_0x183eee[_0x183eee['length']-0x1]&&_0x183eee[_0x183eee['length']-0x1]['forceDefaultExecution']?_0x183eee['pop']():(_0x110629['return']=_0xce4dbb((..._0x9949c5)=>_0x35de1e['execute'](..._0x9949c5,{'forceDefaultExecution':!0x0}),..._0x183eee),_0x110629['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3c6f2a){let _0x40130b,_0x1ddf2e;const _0x262bc2=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x40130b=_0x3c6f2a();}catch(_0x197370){_0x1ddf2e=_0x197370;}return _0x262bc2||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1ddf2e&&_0xa0bdff['rethrowUnexpectedError'](_0x1ddf2e,this),_0x40130b;}['markInsertion'](_0x11cd0d,_0x4a1d1f=null,_0x38ea58={}){if(_0x11cd0d['isCollapsed'])return null;const _0x31e839=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x38ea58['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5b5b7d,meta:_0x4a26b3}of this['_findSuggestions'](_0x11cd0d,'insertion'))if(_0x4a26b3['isOwn']){if(!_0x4a26b3['isNextTo']){if(_0x4a26b3['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x5b5b7d,_0x38ea58))continue;return _0x5b5b7d;}if(zt(_0x5b5b7d,_0x38ea58))return _0x5b5b7d;this['_breakSuggestionMarker'](_0x5b5b7d,_0x11cd0d['start'],_0x11cd0d['end']);break;}if(_0x4a1d1f==_0x5b5b7d['subType']&&zt(_0x5b5b7d,_0x38ea58)){const _0x5d6b42=_0x5b5b7d['getFirstRange']();return _0x5d6b42['start']['isEqual'](_0x11cd0d['end'])?this['_setSuggestionRange'](_0x5b5b7d,this['_model']['createRange'](_0x11cd0d['start'],_0x5d6b42['end'])):this['_setSuggestionRange'](_0x5b5b7d,this['_model']['createRange'](_0x5d6b42['start'],_0x11cd0d['end'])),_0x5b5b7d;}}const _0x799b55=_0x272311(),_0x2a8a25=_0x31e839['id'],_0x5f2754=_0x4a1d1f?'insertion:'+_0x4a1d1f:'insertion',_0x20b148=this['_setSuggestionData']({'id':_0x799b55,'type':_0x5f2754,'createdAt':new Date(),'authorId':_0x2a8a25,'attributes':_0x38ea58});return this['_addSuggestionMarker'](_0x5f2754,_0x799b55,_0x2a8a25,_0x11cd0d),_0x20b148;}['markMultiRangeInsertion'](_0x4937a7,_0x1b46df='multi',_0x1263c3={}){const _0x148e18=this['editor']['plugins']['get']('Users')['me'],_0x30bc16=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1b46df,'join');this['_trackingSessionId']&&(_0x1263c3['trackingSessionId']=this['_trackingSessionId']);for(const _0x1c1d52 of this['getSuggestions']())if(_0x1c1d52['author']['id']==_0x148e18['id']&&'insertion'==_0x1c1d52['type']&&_0x1c1d52['subType']==_0x1b46df&&zt(_0x1c1d52,_0x1263c3)&&(_0x30bc16(_0x1c1d52['getRanges'](),_0x4937a7)||_0x30bc16(_0x4937a7,_0x1c1d52['getRanges']()))){for(const _0x328b36 of _0x4937a7)_0x1c1d52['addRange'](_0x328b36);return _0x1c1d52;}for(const {suggestion:_0x704ea2,meta:_0x1953c3}of this['_findSuggestions'](_0x4937a7,'insertion')){if(!_0x1953c3['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1953c3['containsRangeInObject'])continue;if(!zt(_0x704ea2,_0x1263c3))continue;let _0x215cd8=!0x0;for(const _0x38a3f1 of _0x704ea2['getRanges']())for(const _0x4f3332 of _0x4937a7)if(!_0x38a3f1['containsRange'](_0x4f3332)){_0x215cd8=!0x1;break;}if(_0x215cd8)return _0x704ea2;}const _0x29eb16=_0x272311(),_0x4145d9=_0x148e18['id'],_0x4e9f64='insertion:'+_0x1b46df,_0x38b876=this['_setSuggestionData']({'id':_0x29eb16,'type':_0x4e9f64,'createdAt':new Date(),'authorId':_0x4145d9,'attributes':_0x1263c3});for(const _0x542aa3 of _0x4937a7)this['_addSuggestionMarker'](_0x4e9f64,_0x29eb16,_0x4145d9,_0x542aa3,Suggestion['getMultiRangeId']());return _0x38b876;}['markInlineFormat'](_0x3c1083,_0x3515d3,_0x27905d=null,_0x49d131={}){if(_0x27905d=_0x27905d||Pt(_0x3515d3),_0x3c1083['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x49d131['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x51b117=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x27905d,'accept');return this['forceDefaultExecution'](()=>_0x51b117([_0x3c1083],_0x3515d3,_0x49d131)),null;}const _0x2f7f7d=this['editor']['plugins']['get']('Users')['me'],_0x4b8e16=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xaf2538,meta:_0x53a3d6}of this['_findSuggestions'](_0x3c1083,'insertion'))_0x53a3d6['isOwn']&&!_0x53a3d6['isInsideObject']&&_0x4b8e16['push'](..._0xaf2538['getRanges']());}const _0x585907=function(_0x31d9de,_0x1bd669){const _0x4af343=[];for(const _0xfed18f of _0x1bd669){const _0xdb2f9e=_0x31d9de['getIntersection'](_0xfed18f);_0xdb2f9e&&_0x4af343['push'](_0xdb2f9e);}return _0x4af343;}(_0x3c1083,_0x4b8e16),_0x2147c8=function(_0x11056a,_0x4c285f){const _0x9909a4=[_0x11056a];for(const _0x42109c of _0x4c285f){let _0x4da394=0x0;for(;_0x4da394<_0x9909a4['length'];){const _0x132c2f=_0x9909a4[_0x4da394]['getDifference'](_0x42109c);_0x9909a4['splice'](_0x4da394,0x1,..._0x132c2f),_0x4da394+=_0x132c2f['length'];}}return _0x9909a4;}(_0x3c1083,_0x4b8e16);_0x585907['length']&&this['_model']['change'](()=>{for(const _0x234ac0 of _0x585907){const _0x1bb2f6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x27905d,'accept');this['forceDefaultExecution'](()=>_0x1bb2f6([_0x234ac0],_0x3515d3,_0x49d131));}});for(const _0x3c470c of _0x2147c8){let _0x31d2a0=null,_0x568265=_0x3c470c['start'],_0x3dc328=_0x3c470c['end'];for(const {suggestion:_0x40fed3,meta:_0x31d0a0}of this['_findSuggestions'](_0x3c470c,'formatInline')){if(!_0x31d0a0['isOwn'])continue;if(_0x40fed3['subType']!=_0x27905d)continue;if(!zt(_0x40fed3,_0x49d131))continue;const _0x19675f=_0x40fed3['getFirstRange']();if(_0x19675f['containsRange'](_0x3c470c,!0x0))return null;_0x568265=_0x568265['isBefore'](_0x19675f['start'])?_0x568265:_0x19675f['start'],_0x3dc328=_0x3dc328['isAfter'](_0x19675f['end'])?_0x3dc328:_0x19675f['end'],_0x31d2a0?_0x19675f['start']['isBefore'](_0x31d2a0['getFirstRange']()['start'])?(_0x31d2a0['removeMarkers'](),_0x31d2a0=_0x40fed3):_0x40fed3['removeMarkers']():_0x31d2a0=_0x40fed3;}const _0x1ccf48=this['_model']['createRange'](_0x568265,_0x3dc328);if(_0x31d2a0)this['_setSuggestionRange'](_0x31d2a0,_0x1ccf48);else{const _0x16d751=_0x272311(),_0x14ee18=_0x2f7f7d['id'];this['_setSuggestionData']({'id':_0x16d751,'type':'formatInline:'+_0x27905d,'data':_0x3515d3,'createdAt':new Date(),'authorId':_0x14ee18,'attributes':_0x49d131}),this['_addSuggestionMarker']('formatInline:'+_0x27905d,_0x16d751,_0x14ee18,_0x1ccf48);}}return null;}['markBlockFormat'](_0x2048b2,_0x2a2de0,_0x4d5ee1=[],_0x1fb25f=null,_0xca80fe={}){_0x2a2de0['formatGroupId']||(_0x2a2de0['formatGroupId']=_0x2a2de0['commandName']),_0x2a2de0['multipleBlocks']=_0x2048b2['is']('range'),_0x1fb25f=_0x1fb25f||Pt(_0x2a2de0);const _0x3464cf=_0x4d5ee1['map'](_0x31c5dd=>Vt(_0x31c5dd,this['_model'])),_0x6626a2=_0x2048b2['is']('range')?_0x2048b2:Vt(_0x2048b2,this['_model']);if(this['_trackingSessionId']&&(_0xca80fe['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1c3724=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1fb25f,'accept');return this['forceDefaultExecution'](()=>_0x1c3724([_0x6626a2],_0x2a2de0,_0xca80fe)),null;}_0x3464cf['push'](_0x6626a2);let _0x14af8a=!0x0;for(const _0x5c4c38 of _0x3464cf)if(!this['_rangeIsInLocalUserInsertion'](_0x5c4c38)){_0x14af8a=!0x1;break;}if(_0x14af8a&&'always'!==this['_trackFormatChanges']){const _0x5d44d5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1fb25f,'accept');return this['forceDefaultExecution'](()=>_0x5d44d5([_0x6626a2],_0x2a2de0,_0xca80fe)),null;}let _0x4aaa71=null,_0x4638bb=_0x6626a2['start'],_0x254ef9=_0x6626a2['end'];for(const {suggestion:_0x11566b,meta:_0x316dff}of this['_findSuggestions'](_0x6626a2,'formatBlock')){if(!_0x316dff['isOwn'])continue;if(_0x316dff['isNextTo']||_0x316dff['containsRangeInObject']||_0x316dff['isInsideObject'])continue;if(_0x11566b['data']['formatGroupId']!=_0x2a2de0['formatGroupId'])continue;if(!zt(_0x11566b,_0xca80fe))continue;const _0x18032f=_0x11566b['getFirstRange']();if(_0x11566b['subType']==_0x1fb25f){if(_0x18032f['containsRange'](_0x6626a2,!0x0))return null;_0x4638bb=_0x4638bb['isBefore'](_0x18032f['start'])?_0x4638bb:_0x18032f['start'],_0x254ef9=_0x254ef9['isAfter'](_0x18032f['end'])?_0x254ef9:_0x18032f['end'],_0x4aaa71?_0x18032f['start']['isBefore'](_0x4aaa71['getFirstRange']()['start'])?(_0x4aaa71['removeMarkers'](),_0x4aaa71=_0x11566b):_0x11566b['removeMarkers']():_0x4aaa71=_0x11566b;}else{const _0x8811f1=_0x6626a2['getIntersection'](_0x18032f);this['_cutOutSuggestionMarker'](_0x11566b,_0x8811f1);}}const _0x4d9e74=this['editor']['plugins']['get']('Users')['me'],_0x46fa07=_0x272311(),_0x1dbdd7=_0x4d9e74['id'];if(_0x4aaa71)return this['_setSuggestionRange'](_0x4aaa71,this['_model']['createRange'](_0x4638bb,_0x254ef9)),_0x4aaa71;{const _0x27d69e=this['_setSuggestionData']({'id':_0x46fa07,'type':'formatBlock:'+_0x1fb25f,'data':_0x2a2de0,'createdAt':new Date(),'authorId':_0x1dbdd7,'attributes':_0xca80fe});return this['_addSuggestionMarker']('formatBlock:'+_0x1fb25f,_0x46fa07,_0x1dbdd7,this['_model']['createRange'](_0x4638bb,_0x254ef9)),_0x27d69e;}}['markMultiRangeBlockFormat'](_0x26b6fa,_0x3a7dab,_0x59fa10=[],_0x126cd4=null,_0x46fb67={}){_0x3a7dab['formatGroupId']||(_0x3a7dab['formatGroupId']=_0x3a7dab['commandName']);const _0x83ce23=_0x26b6fa[0x0];_0x3a7dab['multipleBlocks']=_0x83ce23['is']('range'),_0x126cd4=_0x126cd4||Pt(_0x3a7dab);const _0x191f2e=_0x59fa10['map'](_0x39eb71=>Vt(_0x39eb71,this['_model'])),_0x2586c0=_0x83ce23['is']('range')?_0x26b6fa:_0x26b6fa['map'](_0x195435=>Vt(_0x195435,this['_model']));if(this['_trackingSessionId']&&(_0x46fb67['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x504ce3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x126cd4,'accept');return this['forceDefaultExecution'](()=>_0x504ce3(_0x2586c0,_0x3a7dab,_0x46fb67)),null;}_0x191f2e['push'](..._0x2586c0);let _0x397911=!0x0;for(const _0x8d4348 of _0x191f2e)if(!this['_rangeIsInLocalUserInsertion'](_0x8d4348)){_0x397911=!0x1;break;}if(_0x397911&&'always'!==this['_trackFormatChanges']){const _0x453852=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x126cd4,'accept');return this['forceDefaultExecution'](()=>_0x453852(_0x2586c0,_0x3a7dab,_0x46fb67)),null;}const _0x2e6ea1=this['editor']['plugins']['get']('Users')['me'];for(const _0x5bf1fb of this['getSuggestions']()){const _0x377976=_0x5bf1fb['data'];if(_0x5bf1fb['author']['id']!=_0x2e6ea1['id'])continue;if('formatBlock'!=_0x5bf1fb['type']||_0x377976['formatGroupId']!=_0x3a7dab['formatGroupId'])continue;if(!zt(_0x5bf1fb,_0x46fb67))continue;const _0x47e8e4=_0x5bf1fb['subType']==_0x126cd4;for(let _0xc641a5=0x0;_0xc641a5<_0x2586c0['length'];_0xc641a5++){const _0x3b2c9b=_0x2586c0[_0xc641a5];for(const _0xd2a5a3 of _0x5bf1fb['getMarkers']()){const _0x1710ac=_0xd2a5a3['getRange']();if(_0x3b2c9b['isEqual'](_0x1710ac)){_0x47e8e4?(_0x2586c0['splice'](_0xc641a5,0x1),_0xc641a5--):_0x5bf1fb['removeMarker'](_0xd2a5a3['name']);break;}}}}if(0x0==_0x2586c0['length'])return null;const _0x883252=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x126cd4,'join');for(const _0xf79c36 of this['getSuggestions']()){const _0x36fc35=_0xf79c36['data'];if(_0xf79c36['author']['id']==_0x2e6ea1['id']&&('formatBlock'==_0xf79c36['type']&&_0x36fc35['formatGroupId']==_0x3a7dab['formatGroupId']&&_0xf79c36['subType']==_0x126cd4&&zt(_0xf79c36,_0x46fb67)&&(_0x883252(_0xf79c36['getRanges'](),_0x2586c0)||_0x883252(_0x2586c0,_0xf79c36['getRanges']())))){for(const _0x2126d0 of _0x2586c0)_0xf79c36['addRange'](_0x2126d0);return _0xf79c36;}}const _0x293221=_0x272311(),_0x4f4b09=_0x2e6ea1['id'],_0x3284aa='formatBlock:'+_0x126cd4,_0x1afd00=this['_setSuggestionData']({'id':_0x293221,'type':_0x3284aa,'data':_0x3a7dab,'createdAt':new Date(),'authorId':_0x4f4b09,'attributes':_0x46fb67});for(const _0x381c0b of _0x2586c0)this['_addSuggestionMarker'](_0x3284aa,_0x293221,_0x4f4b09,_0x381c0b,Suggestion['getMultiRangeId']());return _0x1afd00;}['markDeletion'](_0x4b27bf,_0xbff01c=null,_0x3d7e07={}){if(_0x4b27bf['isCollapsed'])return null;const _0x2052f1=this['editor']['plugins']['get']('Users')['me'],_0x3fcc6c=new _0x53b34c(_0x4b27bf['start'],_0x4b27bf['end']);this['_trackingSessionId']&&(_0x3d7e07['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x384807,meta:_0x493b84}of this['_findSuggestions'](_0x3fcc6c,'insertion'))if(_0x493b84['isOwn']&&!_0x493b84['isNextTo']){if(_0x384807['isMultiRange']){const _0x227206=_0x384807['getRanges']()['filter'](_0x27cecb=>'$graveyard'!=_0x27cecb['root']['rootName']);_0x227206['every'](_0x293089=>_0x3fcc6c['containsRange'](_0x293089,!0x0))&&_0x384807['discard']();if(_0x227206['some'](_0x4b4a6e=>_0x4b4a6e['containsRange'](_0x3fcc6c,!0x0))){const _0x3e68dc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xbff01c,'accept');return this['forceDefaultExecution'](()=>_0x3e68dc([_0x3fcc6c],null,_0x3d7e07)),null;}}else{const _0x225839=_0x3fcc6c['getIntersection'](_0x384807['getFirstRange']());null!==_0x225839&&_0x384807['_onDiscard']([_0x225839],null,_0x3d7e07);}}if(_0x3fcc6c['detach'](),_0x3fcc6c['isCollapsed']||'$graveyard'==_0x3fcc6c['root']['rootName'])return null;let _0x286c30=null,_0x501167=_0x3fcc6c['start'],_0x3c824b=_0x3fcc6c['end'];const _0x1e629b=this['_findSuggestions'](_0x3fcc6c,'deletion');for(const {suggestion:_0xc644e3,meta:_0x978c6b}of _0x1e629b){const _0xabe2e3=this['_model']['createRange'](_0x501167,_0x3c824b);if(_0x978c6b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x978c6b['containsRangeInObject']&&!_0x978c6b['isInsideObject'])){if(_0xc644e3['isMultiRange']){if(!zt(_0xc644e3,_0x3d7e07))continue;let _0x46dbc9=!0x0;for(const _0xe35769 of _0xc644e3['getRanges']()){if(_0xe35769['containsRange'](_0xabe2e3,!0x0))return _0xc644e3;_0xabe2e3['containsRange'](_0xe35769)||(_0x46dbc9=!0x1);}_0x46dbc9&&_0xc644e3['discard']();}else{const _0x54fa01=_0xc644e3['getFirstRange']();if(_0x54fa01['containsRange'](_0xabe2e3,!0x0))return _0xc644e3;if(!zt(_0xc644e3,_0x3d7e07)){_0xabe2e3['containsRange'](_0x54fa01)?_0xc644e3['removeMarkers']():_0x54fa01['containsPosition'](_0x501167)?_0x501167=_0x54fa01['end']:_0x54fa01['containsPosition'](_0x3c824b)&&(_0x3c824b=_0x54fa01['start']);continue;}_0x501167=_0x501167['isBefore'](_0x54fa01['start'])?_0x501167:_0x54fa01['start'],_0x3c824b=_0x3c824b['isAfter'](_0x54fa01['end'])?_0x3c824b:_0x54fa01['end'],_0x3d7e07=Object['assign']({},_0xc644e3['attributes']),_0x286c30?_0x54fa01['start']['isBefore'](_0x286c30['getFirstRange']()['start'])?(_0x286c30['removeMarkers'](),_0x286c30=_0xc644e3):_0xc644e3['removeMarkers']():_0x286c30=_0xc644e3;}}}if(_0x286c30)return this['_setSuggestionRange'](_0x286c30,this['_model']['createRange'](_0x501167,_0x3c824b)),_0x286c30;{const _0x523a16=_0x272311(),_0x4d4a40=this['_model']['createRange'](_0x501167,_0x3c824b),_0x2a053e=_0x2052f1['id'],_0x101ba6=_0xbff01c?'deletion:'+_0xbff01c:'deletion',_0x411ac9=this['_setSuggestionData']({'id':_0x523a16,'type':_0x101ba6,'createdAt':new Date(),'authorId':_0x2a053e,'attributes':_0x3d7e07});return this['_addSuggestionMarker'](_0x101ba6,_0x523a16,_0x2a053e,_0x4d4a40),_0x411ac9;}}['markMultiRangeDeletion'](_0x39272c,_0x52af26='multi',_0x3537cb={}){const _0x467fc1=this['editor']['plugins']['get']('Users')['me'],_0x57a6c1=_0x39272c['map'](_0x2d77aa=>new _0x53b34c(_0x2d77aa['start'],_0x2d77aa['end'])),_0x37e247=new Set();this['_trackingSessionId']&&(_0x3537cb['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x24195b,meta:_0x2d3759}of this['_findSuggestions'](_0x57a6c1,'insertion'))_0x2d3759['isOwn']&&!_0x2d3759['isNextTo']&&_0x37e247['add'](_0x24195b);for(const _0x4df38e of _0x37e247)if(_0x4df38e['isMultiRange']){const _0x363faf=_0x4df38e['getRanges']();(!_0x4df38e['attributes']||!_0x4df38e['attributes']['skipNestingCheck'])&&(_0x363faf['every'](_0x24f82e=>_0x57a6c1['some'](_0x2be695=>_0x2be695['containsRange'](_0x24f82e,!0x0)))&&_0x4df38e['discard']());if(_0x57a6c1['every'](_0x4f3d8c=>_0x363faf['some'](_0x1804e2=>_0x1804e2['containsRange'](_0x4f3d8c,!0x0)))){const _0x331555=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x52af26,'accept');return this['forceDefaultExecution'](()=>_0x331555(_0x39272c,null,_0x3537cb)),null;}}else{const _0x49b844=_0x4df38e['getFirstRange']();_0x57a6c1['some'](_0x55ca29=>_0x55ca29['containsRange'](_0x49b844,!0x0))&&_0x4df38e['discard']();if(_0x57a6c1['every'](_0x444f95=>_0x49b844['containsRange'](_0x444f95,!0x0))){const _0x16a76c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x52af26,'accept');return this['forceDefaultExecution'](()=>_0x16a76c(_0x57a6c1,null,_0x3537cb)),null;}}const _0x605692=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x52af26,'join');let _0x55fc13=null;for(const _0x32fb26 of this['getSuggestions']())if(_0x32fb26['author']['id']==_0x467fc1['id']&&_0x32fb26['isInContent']&&'deletion'==_0x32fb26['type']&&_0x32fb26['subType']==_0x52af26&&zt(_0x32fb26,_0x3537cb)&&(_0x605692(_0x32fb26['getRanges'](),_0x57a6c1)||_0x605692(_0x57a6c1,_0x32fb26['getRanges']()))){if(_0x55fc13){if(_0x32fb26['commentThread']&&_0x32fb26['commentThread']['length'])continue;for(const _0x36ab7d of _0x32fb26['getRanges']())_0x55fc13['isIntersectingWithRange'](_0x36ab7d)||_0x55fc13['addRange'](_0x36ab7d);_0x32fb26['removeMarkers']();}else{_0x55fc13=_0x32fb26;for(const _0xb0ed5 of _0x57a6c1)_0x32fb26['isIntersectingWithRange'](_0xb0ed5)||_0x32fb26['addRange'](_0xb0ed5);}}if(_0x55fc13)return _0x55fc13;_0x37e247['clear']();for(const {suggestion:_0x4ab2fb,meta:_0x4c4243}of this['_findSuggestions'](_0x57a6c1,'deletion'))_0x4c4243['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4c4243['containsRangeInObject']&&!_0x4c4243['isInsideObject'])&&zt(_0x4ab2fb,_0x3537cb)&&_0x37e247['add'](_0x4ab2fb);for(const _0x260c69 of _0x37e247){const _0x3b5c04=_0x260c69['getRanges']();if(!_0x3537cb||!_0x3537cb['skipNestingCheck']){if(_0x57a6c1['every'](_0x5d8783=>_0x3b5c04['some'](_0x340972=>_0x340972['containsRange'](_0x5d8783,!0x0))))return _0x260c69;}(!_0x260c69['attributes']||!_0x260c69['attributes']['skipNestingCheck'])&&(_0x3b5c04['every'](_0x39be6b=>_0x57a6c1['some'](_0x7dd353=>_0x7dd353['containsRange'](_0x39be6b,!0x0)))&&_0x260c69['discard']());}const _0x2c070b=_0x272311(),_0x6bf83e=_0x467fc1['id'],_0x38f735='deletion:'+_0x52af26,_0x10153f=this['_setSuggestionData']({'id':_0x2c070b,'type':_0x38f735,'createdAt':new Date(),'authorId':_0x6bf83e,'attributes':_0x3537cb});for(const _0x43d05e of _0x57a6c1)_0x43d05e['detach'](),_0x43d05e['isCollapsed']||'$graveyard'==_0x43d05e['root']['rootName']||this['_addSuggestionMarker'](_0x38f735,_0x2c070b,_0x6bf83e,_0x43d05e,Suggestion['getMultiRangeId']());return _0x10153f;}['markAttributeChange'](_0x61c494,_0x1387ac,_0xf3b92a,_0x2d8992,_0x5de0e7){if(_0x61c494['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x24b166=this['editor']['plugins']['get']('Users')['me']['id'],_0x5c6230=Array['from'](this['_suggestions']['values']())['filter'](_0x5b2593=>'attribute'==_0x5b2593['type']&&_0x5b2593['data']['key']==_0x1387ac&&_0x5b2593['isIntersectingWithRange'](_0x61c494));if(this['_trackingSessionId']&&(_0x5de0e7['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x17e089=this['_findSuggestions'](_0x61c494,'insertion')['filter'](({meta:_0x30c4c9})=>_0x30c4c9['isOwn']&&!_0x30c4c9['isInsideObject']&&!_0x30c4c9['isNextTo'])['map'](({suggestion:_0x23f5d0})=>_0x23f5d0);_0x5c6230['unshift'](..._0x17e089);}const _0x2802a3=new Map([[_0x61c494,_0xf3b92a]]);for(const _0x3f0b81 of _0x5c6230){const _0x514550='attribute'==_0x3f0b81['type']?_0x3f0b81['data']['oldValue']:void 0x0,_0x4e5ea5=_0x3f0b81['getFirstRange'](),_0x41429d=Array['from'](_0x2802a3['keys']())['find'](_0x474158=>_0x474158['isIntersecting'](_0x4e5ea5));if(!_0x41429d)continue;const _0x14d29f=_0x41429d['getDifference'](_0x4e5ea5);this['_suggestionsConversion']['isBlockAttribute'](_0x1387ac)&&'insertion'==_0x3f0b81['type']&&0x0!=_0x14d29f['length']||(_0x2802a3['delete'](_0x41429d),_0x14d29f['forEach'](_0x48b98f=>{_0x2802a3['set'](_0x48b98f,_0xf3b92a);}),'insertion'!=_0x3f0b81['type']&&_0x514550!=_0x2d8992&&_0x2802a3['set'](_0x41429d['getIntersection'](_0x4e5ea5),_0x514550));}const _0x31e695=[];for(const [_0x19a0a1,_0x4c4f0b]of _0x2802a3){const _0x55db46=_0x272311(),_0x308352={'key':_0x1387ac,'oldValue':_0x4c4f0b,'newValue':_0x2d8992};_0x1387ac['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':_0x1387ac});const _0x5c25d9=('attribute:'+(_0x1387ac+'|'+Pt({'newValue':_0x2d8992})))['substring'](0x0,0x3c),_0x2ef1eb=this['_setSuggestionData']({'id':_0x55db46,'type':_0x5c25d9,'data':_0x308352,'createdAt':new Date(),'authorId':_0x24b166,'attributes':_0x5de0e7});_0x31e695['push'](_0x2ef1eb),this['_addSuggestionMarker'](_0x5c25d9,_0x55db46,_0x24b166,_0x19a0a1);}return _0x31e695;}['enableDefaultAttributesIntegration'](_0x2fde9d){this['enableCommand'](_0x2fde9d,(_0xfa9025,..._0x278224)=>{this['recordAttributeChanges'](()=>{_0xfa9025(..._0x278224);});});}['startTrackingSession'](_0x37098d){return this['_trackingSessionId']=void 0x0!==_0x37098d?_0x37098d:_0x272311(),this['_trackingSessionId'];}['_getAttributeKey'](_0x32ca5d){return'attribute'==_0x32ca5d['type']?Xt(_0x32ca5d['subType']):null;}['_applyOperationsAsSuggestions'](_0x54a0b5){if(0x0==_0x54a0b5['length'])return;const _0x4be419=this['editor'],_0x1636f8=_0x4be419['plugins']['get'](_0x228d70),_0x1c47fa=[];_0x4be419['model']['change'](_0x19b71d=>{for(let _0x46bdca=0x0;_0x46bdca<_0x54a0b5['length'];_0x46bdca++){const _0x289fac=_0x54a0b5[_0x46bdca];if(_0x289fac['baseVersion']=_0x4be419['model']['document']['version'],_0x289fac['isDocumentOperation']=!0x0,_0x1636f8['isMarkedRemoveOperation'](_0x289fac)){const _0x27d1ab=_0x1b2bbe(_0x289fac['newRange'],_0x4be419['model']);_0x1c47fa['unshift'](_0x53b34c['fromRange'](_0x27d1ab));}else switch(_0x289fac['type']){case'rename':{const _0x4f08af=_0x289fac['oldName'],_0x5d5c22=_0x289fac['newName'];if(_0x4f08af==_0x5d5c22)break;_0x19b71d['batch']['addOperation'](_0x289fac),_0x4be419['model']['applyOperation'](_0x289fac);const _0x123cce='$elementName',_0x2091b4=_0x289fac['position'],_0x5572db=_0x4be419['model']['createRange'](_0x2091b4,_0x4be419['model']['createPositionAt'](_0x2091b4['nodeAfter'],'end'));this['markAttributeChange'](_0x5572db,_0x123cce,_0x4f08af,_0x5d5c22,{'groupId':_0x272311()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x1a710c=_0x289fac['oldValue'],_0x4e67cb=_0x289fac['newValue'];if(_0x1a710c==_0x4e67cb)break;_0x19b71d['batch']['addOperation'](_0x289fac),_0x4be419['model']['applyOperation'](_0x289fac);const _0x2159a5=_0x289fac['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x2159a5))break;const _0x5c3c25=_0x1b2bbe(_0x289fac['range'],_0x4be419['model']);this['markAttributeChange'](_0x5c3c25,_0x2159a5,_0x1a710c,_0x4e67cb,{'groupId':_0x272311()});break;}case'insert':{_0x19b71d['batch']['addOperation'](_0x289fac),_0x4be419['model']['applyOperation'](_0x289fac);if(_0x54a0b5[_0x46bdca+0x1]&&'move'==_0x54a0b5[_0x46bdca+0x1]['type'])break;const _0x5562ab=_0x289fac['position'],_0x2f3f0f=_0x289fac['howMany'],_0x51513c=_0x1b2bbe(_0x4be419['model']['createRange'](_0x5562ab,_0x5562ab['getShiftedBy'](_0x2f3f0f)),_0x4be419['model']);this['markInsertion'](_0x51513c);break;}case'split':{_0x19b71d['batch']['addOperation'](_0x289fac),_0x4be419['model']['applyOperation'](_0x289fac);const _0x1197ad=_0x289fac['splitPosition'],_0x5c151e=_0x289fac['moveTargetPosition'];this['markInsertion'](_0x4be419['model']['createRange'](_0x1197ad,_0x5c151e));break;}case'move':case'remove':_0x19b71d['batch']['addOperation'](_0x289fac),_0x4be419['model']['applyOperation'](_0x289fac);}}for(const _0x3c4e6a of _0x1c47fa)_0x3c4e6a['detach'](),this['markDeletion'](_0x3c4e6a);});}['_setSuggestionRange'](_0x4927b5,_0x36759c){const _0x10bc68=_0x4927b5['getFirstMarker']();this['_model']['change'](_0x178b3c=>{_0x178b3c['updateMarker'](_0x10bc68,{'range':_0x36759c});});}['_addThreadToSuggestion'](_0x50d6a2){const _0x2a15ed=_0x50d6a2['id'],_0x291ed8=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2a15ed)||this['_commentsRepository']['addCommentThread']({'channelId':_0x291ed8,'threadId':_0x2a15ed,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4c638b=this['_commentsRepository']['getCommentThread'](_0x2a15ed);_0x4c638b['unbind']('isRemovable'),_0x4c638b['isRemovable']=!0x1,_0x50d6a2['commentThread']=_0x4c638b;}['_checkSuggestionCorrectness'](_0x3d42c5,_0x2a0db7,_0x43fb33,_0xb8b950){if(_0x3d42c5['type']!=_0x2a0db7||_0x3d42c5['subType']!=_0x43fb33||_0x3d42c5['creator']['id']!=_0xb8b950)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xa0bdff('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2ccaf4,_0x5504ff){const _0x2782c8=_0x2ccaf4['getFirstRange']();if(_0x5504ff['isEqual'](_0x2782c8))_0x2ccaf4['removeMarkers']();else{if(_0x2782c8['containsRange'](_0x5504ff)){const _0x2daa8c=this['_model']['createPositionAt'](_0x5504ff['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2ccaf4,this['_model']['createRange'](_0x2782c8['start'],_0x2daa8c));const _0x5559f8=_0x272311(),_0x547b29=_0x2ccaf4['creator']['id'],_0x98c6b=_0x2ccaf4['type']+':'+_0x2ccaf4['subType'];this['_setSuggestionData']({'id':_0x5559f8,'type':_0x98c6b,'createdAt':new Date(),'authorId':_0x547b29,'data':_0x2ccaf4['data'],'attributes':_0x2ccaf4['attributes']});const _0x224094=this['_model']['createPositionAt'](_0x5504ff['end']['parent'],'after'),_0x21ae18=this['_model']['createRange'](_0x224094,_0x2782c8['end']);this['_addSuggestionMarker'](_0x98c6b,_0x5559f8,_0x547b29,_0x21ae18);}else{if(_0x2782c8['containsPosition'](_0x5504ff['start'])){const _0x3a8441=this['_model']['createPositionAt'](_0x5504ff['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2ccaf4,this['_model']['createRange'](_0x2782c8['start'],_0x3a8441));}else{const _0x33e3f9=this['_model']['createPositionAt'](_0x5504ff['end']['parent'],'after');this['_setSuggestionRange'](_0x2ccaf4,this['_model']['createRange'](_0x33e3f9,_0x2782c8['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x363e23){for(const {suggestion:_0x123906,meta:_0xa8b9e7}of this['_findSuggestions'](_0x363e23,'insertion')){if(!_0xa8b9e7['isOwn'])continue;const _0xf2a00f=_0x123906['getRanges']();for(const _0x411847 of _0xf2a00f)if(!_0x363e23['getDifference'](_0x411847)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x10a676){return this['editor']['plugins']['get']('Users')['getUser'](_0x10a676);}['_getExternalAuthor'](_0x1c7fdf){const _0x28c439=this['editor']['plugins']['get']('Users'),_0x1a1fad=_0x3caef6('external:'+_0x1c7fdf),_0x123213=_0x28c439['getUser'](_0x1a1fad);return _0x123213||_0x28c439['addUser']({'id':_0x1a1fad,'name':_0x1c7fdf});}['_createSuggestion'](_0x48c127,_0x1cc1d7,_0x1dec2e,_0xeca1b9,_0x4a9ab1,_0x2b27cf){const _0x3ca924=this['_getAuthorFromId'](_0xeca1b9);if(!_0x3ca924)throw new _0xa0bdff('track-changes-user-not-found',this,{'authorId':_0xeca1b9,'suggestionId':_0x1dec2e});const _0x7cec12=this['_suggestionFactory']['buildSuggestion'](_0x48c127,_0x1cc1d7,_0x1dec2e,_0x3ca924,_0x4a9ab1,_0x3d7c41=>{this['_updateSuggestionData'](_0x1dec2e,{'attributes':_0x3d7c41});const _0x1bf0f6=this['getSuggestion'](_0x1dec2e);this['_joinWithAdjacentSuggestions'](new Set([_0x1bf0f6])),this['_refreshSuggestionsChain'](new Set([_0x1bf0f6]));},_0x2b27cf);return this['listenTo'](_0x7cec12,'accept',()=>{this['_updateSuggestionData'](_0x1dec2e,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x7cec12,'discard',()=>{this['_updateSuggestionData'](_0x1dec2e,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1dec2e,_0x7cec12),this['_suggestionState']['set'](_0x7cec12,'notReady'),_0x7cec12;}['_breakSuggestionMarker'](_0x36a954,_0x19740f,_0x3a7ab8){const _0x5dfd5c=_0x36a954['getFirstRange'](),_0x17e781=_0x5dfd5c['start'],_0x2f67c6=_0x5dfd5c['end'];this['_setSuggestionRange'](_0x36a954,this['_model']['createRange'](_0x17e781,_0x19740f));const _0x23f099=_0x272311(),_0x22f619=_0x36a954['creator']['id'],_0x43586e=_0x36a954['type']+(_0x36a954['subType']?':'+_0x36a954['subType']:'');this['_setSuggestionData']({'id':_0x23f099,'type':_0x43586e,'createdAt':new Date(),'authorId':_0x22f619,'originalSuggestionId':_0x36a954['_originalSuggestionId']||_0x36a954['id'],'attributes':_0x36a954['attributes'],'data':_0x36a954['data']});const _0x96347b=this['_getAttributeKey'](_0x36a954);('formatBlock'==_0x36a954['type']||_0x96347b&&this['_suggestionsConversion']['isBlockAttribute'](_0x96347b))&&(_0x3a7ab8=this['_model']['createPositionBefore'](_0x3a7ab8['parent'])),this['_addSuggestionMarker'](_0x43586e,_0x23f099,_0x22f619,this['_model']['createRange'](_0x3a7ab8,_0x2f67c6));}['_findSuggestions'](_0x47b6be,_0x934bc7=null){const _0x4d729e=[],_0xde7322=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x47b6be)||(_0x47b6be=[_0x47b6be]);for(const _0x1274f8 of this['getSuggestions']()){if(!_0x1274f8['isInContent'])continue;if(_0x934bc7&&_0x1274f8['type']!=_0x934bc7)continue;let _0xfdb56f=!0x1;for(const _0x2f3ab1 of _0x1274f8['getRanges']()){for(const _0x386e50 of _0x47b6be){const _0x2d5637=_0x386e50['start']['isEqual'](_0x2f3ab1['end'])||_0x386e50['end']['isEqual'](_0x2f3ab1['start']);if(_0x2d5637||_0x386e50['getIntersection'](_0x2f3ab1)){const _0x242481=_0x386e50['containsRange'](_0x2f3ab1)&&Dt(this['_model']['schema'],_0x2f3ab1['start'],_0x386e50),_0x1f693f=_0x2f3ab1['containsRange'](_0x386e50)&&Dt(this['_model']['schema'],_0x386e50['start'],_0x2f3ab1);_0x4d729e['push']({'suggestion':_0x1274f8,'meta':{'isOwn':_0xde7322==_0x1274f8['author'],'isNextTo':_0x2d5637,'isInsideObject':_0x242481,'containsRangeInObject':_0x1f693f}}),_0xfdb56f=!0x0;break;}}if(_0xfdb56f)break;}}return _0x4d729e;}['_addSuggestionMarker'](_0x4e1c39,_0x4e823b,_0x152ddb,_0x423b1a,_0x54fd25){this['_model']['change'](_0x235b45=>{let _0x17e74a='suggestion:'+_0x4e1c39+':'+_0x4e823b+':'+_0x152ddb;_0x54fd25&&(_0x17e74a=_0x17e74a+':'+_0x54fd25),_0x235b45['addMarker'](_0x17e74a,{'range':_0x423b1a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1bbd21){const _0x275dee=_0x1bbd21['previous'],_0x1eeaae=_0x1bbd21['next'];_0x1bbd21['previous']=null,_0x1bbd21['next']=null,null!=_0x275dee&&_0x275dee['next']==_0x1bbd21&&(_0x275dee['next']=_0x1eeaae),null!=_0x1eeaae&&_0x1eeaae['previous']==_0x1bbd21&&(_0x1eeaae['previous']=_0x275dee),'ready'==this['_suggestionState']['get'](_0x1bbd21)&&(this['_suggestionState']['set'](_0x1bbd21,'removed'),this['fire']('suggestionUnloaded',_0x1bbd21,_0x275dee,_0x1eeaae));}['_setSuggestionData'](_0x306dc5){const _0xf3c795=_0x306dc5['id'],_0x4137c3=this['addSuggestionData'](_0x306dc5);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x325508=this['editor']['plugins']['get']('PendingActions'),_0x2a34b2=_0x4137c3['hasComments'],_0x4cc164=_0x4137c3['subType']?_0x4137c3['type']+':'+_0x4137c3['subType']:_0x4137c3['type'],_0x42a048=this['editor']['locale'],_0x40d938=_0x325508['add'](Tt(_0x42a048,'PENDING_ACTION_SUGGESTION')),_0x51a4fd={'id':_0xf3c795,'type':_0x4cc164,'hasComments':_0x2a34b2,'data':_0x306dc5['data']||null,'originalSuggestionId':_0x306dc5['originalSuggestionId']||null,'attributes':_0x4137c3['attributes']};this['_adapter']['addSuggestion'](_0x51a4fd)['then'](_0x394a8d=>{_0x4137c3['_saved']=!0x0,_0x325508['remove'](_0x40d938),_0x394a8d&&_0x394a8d['createdAt']&&(this['_suggestions']['get'](_0xf3c795)['createdAt']=_0x394a8d['createdAt']);})['catch'](_0x467776=>{throw _0x232ae8('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4137c3['discard']();}),_0x4137c3['stopListening'](),this['_suggestions']['delete'](_0x4137c3['id']),this['_suggestionState']['delete'](_0x4137c3),_0x467776;});}return _0x4137c3;}['_updateSuggestionData'](_0x4d8cd4,_0x1c6177){const _0x2b38a5=this['editor']['plugins']['get']('PendingActions'),_0x5e424e=this['getSuggestion'](_0x4d8cd4);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5e424e['_saved']){const _0x32ad45=_0x2b38a5['add'](Tt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4d8cd4,_0x1c6177)['then'](()=>{_0x2b38a5['remove'](_0x32ad45);});}else _0x5e424e['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4d8cd4,_0x1c6177);});}}['_getSuggestionData'](_0x464bc0){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xa0bdff('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x464bc0);}['_handleNewSuggestionMarker'](_0x39eb4c){const {id:_0x288610,type:_0x516c1e,subType:_0x25820e,authorId:_0xc61481}=_0x5cc320(_0x39eb4c),_0x2ac426=this['_suggestions']['get'](_0x288610)||this['_createSuggestion'](_0x516c1e,_0x25820e,_0x288610,_0xc61481,{});switch(this['_checkSuggestionCorrectness'](_0x2ac426,_0x516c1e,_0x25820e,_0xc61481),this['_suggestionState']['get'](_0x2ac426)){case'notReady':this['_getSuggestionData'](_0x288610)['then'](_0x1fd7d6=>{let _0x49b6ee=Promise['resolve']();_0x1fd7d6['hasComments']&&(_0x49b6ee=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x288610})),_0x49b6ee['then'](()=>{this['addSuggestionData'](_0x1fd7d6)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2ac426,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x288610,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2ac426,'ready'),this['fire']('suggestionLoaded',_0x2ac426);break;case'ready':this['fire']('suggestionChanged',_0x2ac426);}return _0x2ac426['addMarkerName'](_0x39eb4c),_0x2ac426;}['_refreshSuggestionsChain'](_0x3ca380){const _0x5d8cf8=Array['from'](_0x3ca380),_0x6601db=_0x5d8cf8['filter'](_0x183919=>'attribute'==_0x183919['type']);this['_refreshAttributeSuggestionsChain'](_0x6601db);const _0x3b7178=_0x5d8cf8['filter'](_0x3c5144=>!_0x3c5144['isMultiRange']&&'attribute'!=_0x3c5144['type']),_0x305fb7=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x16ab12=>!_0x16ab12['isMultiRange']&&'attribute'!=_0x16ab12['type']),_0x3e99c4=_0x305fb7['filter'](_0x4f9329=>!_0x3ca380['has'](_0x4f9329)),_0x274598=new Map(_0x305fb7['map'](_0x41c50c=>[_0x41c50c,this['_suggestionFactory']['getSuggestionCallback'](_0x41c50c['type'],_0x41c50c['subType'],'chain')])),_0x362e59=new Map(_0x305fb7['map'](_0x5e2043=>[_0x5e2043,_0x5e2043['getFirstRange']()])),_0x2c8f85=new Set(),_0x13d93b=new Set();for(let _0xfb8333=0x0;_0xfb8333<_0x3b7178['length'];_0xfb8333++)_0x374038(_0x3b7178[_0xfb8333],_0x3b7178,_0xfb8333+0x1);for(let _0x359866=0x0;_0x359866<_0x3b7178['length'];_0x359866++)_0x374038(_0x3b7178[_0x359866],_0x3e99c4,0x0);const _0x16c214=new Set();for(let _0x1f44e3=0x0;_0x1f44e3<_0x3b7178['length'];_0x1f44e3++){const _0xbc6a9d=_0x3b7178[_0x1f44e3];!_0x13d93b['has'](_0xbc6a9d)&&_0xbc6a9d['previous']&&(_0x16c214['add'](_0xbc6a9d['previous']),_0xbc6a9d['previous']['next']===_0xbc6a9d&&(_0xbc6a9d['previous']['next']=null),_0xbc6a9d['previous']=null),!_0x2c8f85['has'](_0xbc6a9d)&&_0xbc6a9d['next']&&(_0x16c214['add'](_0xbc6a9d['next']),_0xbc6a9d['next']['previous']===_0xbc6a9d&&(_0xbc6a9d['next']['previous']=null),_0xbc6a9d['next']=null);}function _0x374038(_0x36d110,_0x4dc3c9,_0x5201a4){for(let _0x4e327b=_0x5201a4;_0x4e327b<_0x4dc3c9['length'];_0x4e327b++){const _0x56301e=_0x1ee4b7(_0x36d110,_0x4dc3c9[_0x4e327b]);_0x56301e&&(_0x56301e[0x0]['next']=_0x56301e[0x1],_0x56301e[0x1]['previous']=_0x56301e[0x0],_0x2c8f85['add'](_0x56301e[0x0]),_0x13d93b['add'](_0x56301e[0x1]));}}function _0x1ee4b7(_0x22ce12,_0xce8d26){if(_0x22ce12['author']['id']!==_0xce8d26['author']['id'])return null;const _0x288b88=_0x274598['get'](_0x22ce12)(_0x22ce12,_0xce8d26,_0x362e59['get'](_0x22ce12),_0x362e59['get'](_0xce8d26));if(!_0x288b88)return null;return _0x274598['get'](_0xce8d26)(_0x22ce12,_0xce8d26,_0x362e59['get'](_0x22ce12),_0x362e59['get'](_0xce8d26))?_0x288b88[0x1]['commentThread']&&_0x288b88[0x1]['commentThread']['length']?null:_0x288b88:null;}_0x16c214['size']&&this['_refreshSuggestionsChain'](_0x16c214);}['_refreshAttributeSuggestionsChain'](_0x3d1097){if(0x0==_0x3d1097['length'])return;const _0x29aece=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x437f74=>'attribute'==_0x437f74['type']&&_0x437f74['_isDataLoaded']),_0x46e221=[],_0x48a72a=new Map();for(const _0x436254 of _0x29aece){const _0x324a46=_0x3caef6(_0x436254['attributes']);_0x48a72a['has'](_0x324a46)||(_0x48a72a['set'](_0x324a46,_0x46e221['length']),_0x46e221['push']([]));const _0x1e9585=_0x48a72a['get'](_0x324a46);_0x46e221[_0x1e9585]['push'](_0x436254);}!(function(){_0x46e221['sort']((_0xe018d7,_0x57cb64)=>{const _0x419d66=_0xe018d7[0x0]['createdAt'],_0x1592af=_0x57cb64[0x0]['createdAt'];return _0x419d66==_0x1592af?_0xe018d7[0x0]['attributes']['groupId']<_0x57cb64[0x0]['attributes']['groupId']?-0x1:0x1:_0x419d66<_0x1592af?-0x1:0x1;});for(const _0x3b63e4 of _0x46e221)_0x3b63e4['sort']((_0x12d486,_0x5dd37e)=>_0x12d486['id']<_0x5dd37e['id']?-0x1:0x1);}());for(let _0x4d391a=0x0;_0x4d391a<_0x46e221['length'];_0x4d391a++){if(0x0==_0x46e221[_0x4d391a]['length'])continue;const _0x4271a3=[];for(let _0x199db4=_0x4d391a+0x1;_0x199db4<_0x46e221['length'];_0x199db4++)0x0!=_0x46e221[_0x199db4]['length']&&_0x1e4d8c(_0x46e221[_0x4d391a],_0x46e221[_0x199db4])&&_0x4271a3['push'](_0x199db4);for(const _0x1dc09d of _0x4271a3)_0x46e221[_0x4d391a]=_0x46e221[_0x4d391a]['concat'](_0x46e221[_0x1dc09d]),_0x46e221[_0x1dc09d]=[];}for(const _0x4da3cf of _0x46e221)for(let _0xe2863f=0x0;_0xe2863f<_0x4da3cf['length'];_0xe2863f++){const _0x5ccf23=_0x4da3cf[_0xe2863f+0x1]||null;_0x4da3cf[_0xe2863f]['next']!==_0x5ccf23&&(_0x4da3cf[_0xe2863f]['next']=_0x5ccf23);}for(const _0x4531d8 of _0x46e221)for(let _0x21f772=0x0;_0x21f772<_0x4531d8['length'];_0x21f772++){const _0x67e598=_0x4531d8[_0x21f772-0x1]||null;_0x4531d8[_0x21f772]['previous']!==_0x67e598&&(_0x4531d8[_0x21f772]['previous']=_0x67e598);}function _0x1e4d8c(_0xafd5c0,_0x162410){if(_0xafd5c0[0x0]['attributes']['groupId']!==_0x162410[0x0]['attributes']['groupId']&&_0xafd5c0[0x0]['author']!==_0x162410[0x0]['author'])return!0x1;if(!function(_0x251baa,_0x2a5093){if(!_0x251baa['hasComments']&&!_0x2a5093['hasComments'])return!0x0;if(_0x251baa['hasComments']&&_0x2a5093['hasComments'])return!0x1;if(_0x251baa['hasComments']&&_0x2a5093['createdAt']<_0x251baa['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2a5093['hasComments']&&_0x251baa['createdAt']<_0x2a5093['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xafd5c0[0x0],_0x162410[0x0]))return!0x1;const _0x3f9455=ot(_0xafd5c0[0x0]['attributes'],['groupId','trackingSessionId']),_0x525acb=ot(_0x162410[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x3f9455,_0x525acb))return!0x1;if(_0xafd5c0[0x0]['attributes']['groupId']==_0x162410[0x0]['attributes']['groupId'])return!0x0;if(_0xafd5c0[0x0]['attributes']['trackingSessionId']!==_0x162410[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0xafd5c0['every'](_0x38d57a=>_0x162410['some'](_0x315f8a=>_0x38d57a['getFirstRange']()['isEqual'](_0x315f8a['getFirstRange']())))&&_0x162410['every'](_0x130d23=>_0xafd5c0['some'](_0x41022d=>_0x130d23['getFirstRange']()['isEqual'](_0x41022d['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x533b8b){const _0x2d8ec9=Array['from'](_0x533b8b),_0x30da58=this['getSuggestions']({'skipNotAttached':!0x0}),_0x14a3b4=_0x30da58['filter'](_0x555759=>!_0x533b8b['has'](_0x555759)),_0x51d180=new Map(_0x2d8ec9['map'](_0x12840d=>[_0x12840d,this['_suggestionFactory']['getSuggestionCallback'](_0x12840d['type'],_0x12840d['subType'],'join')])),_0x35ab4d=new Map(_0x30da58['map'](_0x23ee3c=>[_0x23ee3c,_0x23ee3c['getRanges']()]));for(let _0x1617b6=0x0;_0x1617b6<_0x2d8ec9['length'];_0x1617b6++){if(_0x2b47f8(this,_0x2d8ec9[_0x1617b6],_0x2d8ec9,_0x1617b6+0x1))return!0x0;}for(let _0xfe6af9=0x0;_0xfe6af9<_0x2d8ec9['length'];_0xfe6af9++){if(_0x2b47f8(this,_0x2d8ec9[_0xfe6af9],_0x14a3b4,0x0))return!0x0;}return!0x1;function _0x2b47f8(_0x4916f6,_0x572719,_0x23e224,_0x4bd765){for(let _0x48b499=_0x4bd765;_0x48b499<_0x23e224['length'];_0x48b499++){const _0x3c14ba=_0x23e224[_0x48b499];if(_0x3c14ba['type']!==_0x572719['type']||_0x3c14ba['author']['id']!==_0x572719['author']['id']||_0x3c14ba['subType']!==_0x572719['subType'])continue;if(!jt(_0x572719,_0x3c14ba))continue;if('attribute'==_0x572719['type']&&_0x572719['data']['oldValue']!=_0x3c14ba['data']['oldValue'])continue;if('attribute'==_0x572719['type']&&_0x4916f6['_suggestionsConversion']['isBlockAttribute'](_0x572719['data']['key']))continue;if('formatBlock'==_0x572719['type']){const _0xed83ec=_0x4916f6['editor']['model'],_0x2153f9=_0x572719['getContainedElement']();if(_0x2153f9&&(_0xed83ec['schema']['isObject'](_0x2153f9)||_0xed83ec['schema']['isLimit'](_0x2153f9)))continue;}const _0x2b0c71=_0x51d180['get'](_0x572719),_0x87782e=_0x35ab4d['get'](_0x572719),_0xd90706=_0x35ab4d['get'](_0x3c14ba),_0x3c8189=_0x572719['commentThread']&&_0x572719['commentThread']['length'],_0x2f0c4c=_0x3c14ba['commentThread']&&_0x3c14ba['commentThread']['length'];if(!_0x3c8189&&_0x2b0c71(_0xd90706,_0x87782e))return _0x4916f6['_joinSuggestions'](_0x3c14ba,_0x572719),_0x35ab4d['delete'](_0x572719),!0x0;if(!_0x2f0c4c&&_0x2b0c71(_0x87782e,_0xd90706))return _0x4916f6['_joinSuggestions'](_0x572719,_0x3c14ba),_0x35ab4d['delete'](_0x3c14ba),!0x0;}return!0x1;}}['_joinSuggestions'](_0x340151,_0x194bf4){if(_0x340151['isMultiRange']){for(const _0x431d00 of _0x194bf4['getRanges']())_0x340151['addRange'](_0x431d00);}else{const _0x4cb2fd=_0x194bf4['getFirstRange']()['end'];this['_setSuggestionRange'](_0x340151,this['_model']['createRange'](_0x340151['getFirstRange']()['start'],_0x4cb2fd));}_0x194bf4['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2af7aa,_0x29841a,_0x1f3ccf){const _0x4bf37a=_0x2af7aa['startsWith']('format')||_0x2af7aa['startsWith']('attribute')?'FORMATTING':_0x2af7aa['toUpperCase']();return Tt(this['editor']['locale'],_0x29841a+'_'+_0x4bf37a+'_SUGGESTION_ANNOUNCEMENT',_0x1f3ccf);}['_initAriaMarkerChangeAnnouncements'](){const _0x2b6cfd=this['editor'];if(!_0x2b6cfd['ui'])return;const {ariaLiveAnnouncer:_0x5a3aaf}=_0x2b6cfd['ui'];_0x3ac1bf(this['_model'],({left:_0x27b5be,entered:_0x46b515})=>{for(const _0x39d16c of _0x27b5be){const {group:_0x1ed5c1,type:_0x5aec8a}=_0x5cc320(_0x39d16c['name']);if('suggestion'===_0x1ed5c1){_0x5a3aaf['announce'](this['_getMarkerAnnouncementText'](_0x5aec8a,'LEAVE'));break;}}for(const _0x59e500 of _0x46b515){const {group:_0x24d131,type:_0x388620}=_0x5cc320(_0x59e500['name']);if('suggestion'===_0x24d131){_0x5a3aaf['announce'](this['_getMarkerAnnouncementText'](_0x388620,'ENTER',_0x86b319(_0x1a2fa4)));break;}}});}['_processAttributeChanges'](_0x272861){if(this['_recordAttributeSuggestions'])return!0x1;const _0x593e2c=this['editor'],_0x42aedf=_0x593e2c['model']['document']['differ']['getChanges']();if(0x0==_0x42aedf['length'])return!0x1;const _0x166a39=[],_0x4956f0=_0x42aedf['filter'](_0x2ab369=>'attribute'==_0x2ab369['type']),_0x17fd5d=_0x42aedf['filter'](_0xfe9ac4=>'insert'==_0xfe9ac4['type']&&'$text'!=_0xfe9ac4['name']),_0x15b198=_0x42aedf['filter'](_0x47bd32=>'remove'==_0x47bd32['type']&&'$text'!=_0x47bd32['name']);for(const _0x50afc5 of _0x4956f0)_0x166a39['push']({'key':_0x50afc5['attributeKey'],'newValue':_0x50afc5['attributeNewValue'],'oldValue':_0x50afc5['attributeOldValue'],'range':$t(_0x50afc5['range'],_0x593e2c['model'])});for(const _0x210901 of _0x17fd5d){const _0x4120dd=_0x15b198['find'](_0x2fab64=>_0x2fab64['position']['isEqual'](_0x210901['position']));_0x4120dd&&_0x166a39['push']({'key':Ft,'newValue':_0x210901['name'],'oldValue':_0x4120dd['name'],'range':_0x593e2c['model']['createRangeOn'](_0x210901['position']['nodeAfter'])});}return 0x0!=_0x166a39['length']&&this['_reduceExistingSuggestions'](_0x272861,_0x166a39);}['_processAttributeSuggestions'](_0x261fba){let _0x4775b8=!0x1;const _0x36c865=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x264bc5=>_0x264bc5['data']['newRange']&&_0x264bc5['name']['startsWith']('suggestion:attribute:'));for(const _0x48530b of _0x36c865){const {subType:_0x46e5c7,id:_0x4a65f4}=_0x5cc320(_0x48530b['name']),_0x45a7b3=_0x46e5c7['split']('|')[0x0];for(const _0x1860cd of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1860cd['id']!=_0x4a65f4&&'attribute'==_0x1860cd['type']&&_0x1860cd['data']&&_0x1860cd['data']['key']==_0x45a7b3&&_0x1860cd['getFirstRange']()['isIntersecting'](_0x48530b['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1860cd,_0x48530b['data']['newRange'],_0x261fba),_0x4775b8=!0x0);}return _0x4775b8;}['recordAttributeChanges'](_0x2ddc69){this['_recordAttributeSuggestions']=!0x0,_0x2ddc69();}['_reduceExistingSuggestions'](_0x5e80cf,_0x4f0d52){if(0x0==_0x4f0d52['length'])return!0x1;let _0x3940fe=!0x1;for(const _0x37f311 of _0x4f0d52){const _0x25abd0=this['_findSuggestions'](_0x37f311['range'],'attribute')['filter'](_0x24902e=>!_0x24902e['meta']['isNextTo'])['map'](_0x307cf6=>_0x307cf6['suggestion']),_0x46615e=_0x3caef6({'newValue':_0x37f311['newValue']});_0x25abd0['filter'](_0x2d375a=>{const [_0x18146a,_0x642133]=_0x2d375a['subType']['split']('|');return _0x18146a==_0x37f311['key']&&_0x642133!=_0x46615e;})['forEach'](_0xbe6969=>{this['_reduceSuggestionAttributeRange'](_0xbe6969,_0x37f311['range'],_0x5e80cf),_0x3940fe=!0x0;});}return _0x3940fe;}['_reduceSuggestionAttributeRange'](_0x1cd9d2,_0x12554a,_0x4859d8){const _0x57bad5=_0x1cd9d2['getFirstRange']()['getDifference'](_0x12554a);0x0!==_0x57bad5['length']?0x1!==_0x57bad5['length']?this['_breakSuggestionMarker'](_0x1cd9d2,_0x12554a['start'],_0x12554a['end']):this['_setSuggestionRange'](_0x1cd9d2,_0x57bad5[0x0]):_0x4859d8['removeMarker'](_0x1cd9d2['getFirstMarker']());}}class SuggestionFactory{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x33a577){this['_editor']=_0x33a577,this['_model']=_0x33a577['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2969dd,_0x5ba43f,_0x285a02,_0x118b46,_0x45abb6,_0x3d48d9,_0x273bea){return new Suggestion(this['_model'],{'type':_0x2969dd,'subType':_0x5ba43f,'id':_0x285a02,'originalSuggestionId':_0x273bea,'author':_0x118b46,'creator':_0x118b46,'attributes':_0x45abb6,'onAttributesChange':_0x3d48d9,'onAccept':(..._0x4717be)=>this['getSuggestionCallback'](_0x2969dd,_0x5ba43f,'accept')(..._0x4717be),'onDiscard':(..._0x4c0b2a)=>this['getSuggestionCallback'](_0x2969dd,_0x5ba43f,'discard')(..._0x4c0b2a)});}['registerCustomCallback'](_0x1c6d87,_0x3eed77,_0x19f054,_0xf109f2){const _0x41b2a6=_0x1c6d87+':'+_0x3eed77+':'+_0x19f054;this['_customCallbacks']['set'](_0x41b2a6,_0xf109f2);}['getSuggestionCallback'](_0x19445f,_0x49d424,_0x4295be){const _0x419ae5=_0x19445f+':'+_0x49d424+':'+_0x4295be;return this['_customCallbacks']['get'](_0x419ae5)||this['_defaultCallbacks']['get'](_0x19445f+':'+_0x4295be);}['_registerDefaultCallbacks'](){const _0x35186e=()=>!0x1,_0x5673d5=_0x40f92b=>{_0x40f92b['sort']((_0x42a0bc,_0x3b4160)=>_0x42a0bc['start']['isBefore'](_0x3b4160['start'])?0x1:-0x1),this['_model']['change'](_0x19d419=>{for(const _0x290b85 of _0x40f92b){let _0x4a0477;_0x4a0477=_0x290b85['end']['isAtEnd']&&_0x290b85['end']['parent']==_0x290b85['start']['nodeAfter']?_0x19d419['createSelection'](_0x290b85['start']['nodeAfter'],'on'):_0x19d419['createSelection'](_0x290b85),this['_model']['deleteContent'](_0x4a0477,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x399442=(_0x1bdea4,_0x32e375)=>{_0x32e375&&this['_model']['change'](_0x165b8d=>{const {commandName:_0x1d9e45,commandParams:_0x1ff02a=[]}=_0x32e375,_0x5712f7=_0x1bdea4['map'](_0x5a25db=>(vt(_0x5a25db)&&(_0x5a25db=this['_model']['createRange'](_0x5a25db['end'])),_0x5a25db))['filter'](_0x3f338=>'$graveyard'!==_0x3f338['root']['rootName']);if(_0x5712f7['length']<0x1)return;const _0x6cdeef=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3d2ac6=>_0x53b34c['fromRange'](_0x3d2ac6));_0x165b8d['setSelection'](_0x5712f7);for(const _0x8e7653 of this['_editor']['commands']['commands']())_0x8e7653['refresh']();_0x1ff02a['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1d9e45,..._0x1ff02a);const _0x228bca=_0x6cdeef['filter'](_0x511a14=>'$graveyard'!=_0x511a14['root']['rootName']);_0x228bca['length']>0x0&&_0x165b8d['setSelection'](_0x228bca);for(const _0x3c371a of _0x6cdeef)_0x3c371a['detach']();});},_0x14b687=(_0x42cf4c,_0x2dbe68)=>0x1==_0x42cf4c['length']&&0x1==_0x2dbe68['length']&&_0x42cf4c[0x0]['end']['isEqual'](_0x2dbe68[0x0]['start']),_0x393951=(_0x4f9a86,_0x507e73,_0x52bcfc,_0x582e3b)=>Wt(_0x4f9a86,_0x507e73,_0x52bcfc,_0x582e3b)?[_0x4f9a86,_0x507e73]:Wt(_0x507e73,_0x4f9a86,_0x582e3b,_0x52bcfc)?[_0x507e73,_0x4f9a86]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x35186e),this['_defaultCallbacks']['set']('insertion:discard',_0x5673d5),this['_defaultCallbacks']['set']('insertion:join',_0x14b687),this['_defaultCallbacks']['set']('insertion:chain',_0x393951),this['_defaultCallbacks']['set']('deletion:accept',_0x5673d5),this['_defaultCallbacks']['set']('deletion:discard',_0x35186e),this['_defaultCallbacks']['set']('deletion:join',_0x14b687),this['_defaultCallbacks']['set']('deletion:chain',_0x393951),this['_defaultCallbacks']['set']('formatInline:accept',_0x399442),this['_defaultCallbacks']['set']('formatInline:discard',_0x35186e),this['_defaultCallbacks']['set']('formatInline:join',_0x14b687),this['_defaultCallbacks']['set']('formatInline:chain',_0x35186e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x399442),this['_defaultCallbacks']['set']('formatBlock:discard',_0x35186e),this['_defaultCallbacks']['set']('formatBlock:join',_0x14b687),this['_defaultCallbacks']['set']('formatBlock:chain',_0x35186e),this['_defaultCallbacks']['set']('attribute:accept',_0x35186e),this['_defaultCallbacks']['set']('attribute:discard',(_0x432fad,_0xd5ec4d)=>{if(!_0xd5ec4d)return;const _0x4bcd74=this['_editor']['plugins']['get'](_0x31f2dc);this['_model']['change'](_0x1c3d08=>{if(_0xd5ec4d['key']==Ft)for(const _0x165530 of _0x432fad){const _0x4ad996=_0x165530['start']['nodeAfter'],_0x333fe8=_0xd5ec4d['oldValue'];_0x1c3d08['rename'](_0x4ad996,_0x333fe8);}else{if(_0x4bcd74['isBlockAttribute'](_0xd5ec4d['key'])){for(const _0x5bb590 of _0x432fad)void 0x0!==_0xd5ec4d['oldValue']?_0x1c3d08['setAttribute'](_0xd5ec4d['key'],_0xd5ec4d['oldValue'],_0x5bb590['start']['nodeAfter']):_0x1c3d08['removeAttribute'](_0xd5ec4d['key'],_0x5bb590['start']['nodeAfter']);}else{for(const _0x4d046b of _0x432fad)_0xd5ec4d['oldValue']?_0x1c3d08['setAttribute'](_0xd5ec4d['key'],_0xd5ec4d['oldValue'],_0x4d046b):_0x1c3d08['removeAttribute'](_0xd5ec4d['key'],_0x4d046b);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x14b687);}}function Dt(_0x12677c,_0x204c9f,_0x43f731){for(const _0x581d85 of _0x204c9f['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x581d85['root']==_0x581d85)return!0x1;if(!_0x43f731['containsItem'](_0x581d85))return!0x1;if(_0x12677c['isObject'](_0x581d85)||_0x12677c['isLimit'](_0x581d85))return!0x0;}return!0x1;}function vt(_0x257a82){return _0x257a82['end']['parent']==_0x257a82['start']['nodeAfter']&&_0x257a82['end']['isAtStart'];}function xt(_0x19560f,_0x5e3a94,_0x14849c,_0x59e88b){const _0x199fde=_0x21855e=>!_0x21855e['item']['is']('$textProxy')&&!_0x59e88b['isObject'](_0x21855e['item']),_0x3c07b3=_0x19560f['start']['getLastMatchingPosition'](_0x199fde),_0x5188a7=_0x19560f['end']['getLastMatchingPosition'](_0x199fde,{'direction':'backward'});return(!_0x19560f['start']['isEqual'](_0x3c07b3)||!_0x19560f['end']['isEqual'](_0x5188a7))&&(_0x3c07b3['isBefore'](_0x5188a7)?_0x14849c['updateMarker'](_0x5e3a94,{'range':_0x14849c['createRange'](_0x3c07b3,_0x5188a7)}):_0x14849c['removeMarker'](_0x5e3a94),!0x0);}function Pt(_0xfc6c0f){return _0x3caef6(_0xfc6c0f);}function Ut(_0x33e1af){const _0x44517e=_0x33e1af['start']['nodeAfter'];return _0x44517e&&_0x44517e['is']('element');}function Gt(_0x11da81){return vt(_0x11da81)||function(_0x3721db){return _0x3721db['start']['parent']==_0x3721db['end']['nodeBefore']&&_0x3721db['start']['isAtEnd'];}(_0x11da81);}function Ht(_0x294c12,_0x3d426d){try{const _0x2c9217=_0x294c12['getRange']();for(const _0x378f4d of _0x3d426d)if(_0x294c12!==_0x378f4d&&_0x2c9217&&_0x2c9217['isIntersecting'](_0x378f4d['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function $t(_0x1fe011,_0xf068ec){return null==_0x1fe011['end']['nodeBefore']&&_0x1fe011['end']['parent']==_0x1fe011['start']['nodeAfter']?Vt(_0x1fe011['start']['nodeAfter'],_0xf068ec):_0x1fe011;}function Vt(_0x2e3713,_0x2ba624){const _0x3889e0=_0x2ba624['schema']['isObject'](_0x2e3713)||_0x2ba624['schema']['isSelectable'](_0x2e3713);return _0x2ba624['createRange'](_0x2ba624['createPositionAt'](_0x2e3713,'before'),_0x3889e0?_0x2ba624['createPositionAfter'](_0x2e3713):_0x2ba624['createPositionAt'](_0x2e3713,'end'));}function Wt(_0x20026f,_0x4d956a,_0x3ce454,_0x52b144){return!!jt(_0x20026f,_0x4d956a)&&_0x3ce454['end']['isEqual'](_0x52b144['start']);}function jt(_0xac7369,_0x34e09d){if(!_0xac7369['_isDataLoaded']||!_0x34e09d['_isDataLoaded'])return!0x1;const _0x5659a7=new Set(Object['keys'](_0xac7369['attributes'])),_0x3dd7ad=new Set(Object['keys'](_0x34e09d['attributes']));if(_0x5659a7['delete']('groupId'),_0x3dd7ad['delete']('groupId'),0x0==_0x5659a7['size']&&0x0==_0x3dd7ad['size'])return!0x0;if(_0x5659a7['size']!=_0x3dd7ad['size'])return!0x1;const _0x517f56={..._0xac7369['attributes']},_0x2df6b9={..._0x34e09d['attributes']};return delete _0x517f56['groupId'],delete _0x2df6b9['groupId'],JSON['stringify'](_0x517f56)==JSON['stringify'](_0x2df6b9);}function zt(_0x18aa0a,_0x44a504){const _0x1a506f=Kt(_0x18aa0a['attributes']),_0x59d73f=Kt(_0x44a504);if(!_0x18aa0a['_isDataLoaded'])return!0x1;for(const _0x32c7cb of Object['keys'](_0x59d73f))if(!st(_0x1a506f[_0x32c7cb],_0x59d73f[_0x32c7cb]))return!0x1;return!0x0;}function Kt(_0x56b579){const _0x2fa780=Object['assign']({},_0x56b579);return delete _0x2fa780['skipNestingCheck'],delete _0x2fa780['tablePasteChainId'],_0x2fa780;}function Xt(_0xd9bfd){return _0xd9bfd['split']('|')[0x0];}class SuggestionController extends/* #__PURE__ -- @preserve */
26
- _0x1b398d(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x205984,_0x2d0543,_0x3d6627,_0x1f8cb4){super(),this['model']=_0x2d0543,this['view']=_0x3d6627,this['commentThreadController']=_0x1f8cb4,this['_editor']=_0x205984,this['_acceptCommand']=_0x205984['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x205984['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x320579,_0x2e41fc)=>_0x320579||_0x2e41fc),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x311d40=>_0x311d40&&this['_editor']['model']['canEditAt'](_0x2d0543['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x408e10=>_0x408e10&&this['_editor']['model']['canEditAt'](_0x2d0543['getRanges']())),this['_pendingAction']=null,_0x3d6627['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3d6627,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3d6627,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3d6627,'change:isDirty',()=>{_0x3d6627['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 _0x1db2f2=Tt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1db2f2);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class BaseSuggestionThreadView extends _0x1febdd{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x259138,_0x1e7f66,_0x273bd2,_0x1cf231){super(_0x259138),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2cca85(_0x259138,Tt(_0x259138,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1e7f66['authoredAt']),this['bind']('authoredAt')['to'](_0x1e7f66),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',_0x1e7f66,'authoredAt',this,'descriptionParts',(_0x18e690,_0x294546,_0x147424)=>{const _0x329751=_0x147424['map'](_0x3d48c6=>ht(_0x3d48c6['content']))['join']('.\x20')+'.';return Tt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x18e690-0x1,_0x1e7f66['author']['name'],_0x294546?_0x1cf231['formatDateTime'](_0x294546):'',new DOMParser()['parseFromString'](_0x329751,'text/html')['body']['textContent']]);}),this['focusables']=new _0x385980(),this['focusTracker']=new _0x59dd35(),this['keystrokes']=new _0x490a6e(),this['focusCycler']=new _0x4b765b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x6fa2b5=>_0x6fa2b5['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1e7f66,this['_localUser']=_0x273bd2,this['_config']=_0x1cf231,_0x1cf231['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3e4ab7(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x14b447}=this['_config'];this['commentsListView']=new _0x14b447(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',_0x410b3a=>_0x410b3a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x32889e,_0x275dde)=>_0x32889e||!!_0x275dde);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x24357f}=this['_config'],_0x17cc33=new _0x24357f(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xd4ecbb=_0x17cc33['commentInputView'];return _0x17cc33['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xd4ecbb,'value',(_0x3e5d1f,_0x48f883,_0x1473df)=>!!_0x1473df||_0x3e5d1f&&!_0x48f883),_0xd4ecbb['on']('submit',(_0x4acce1,_0x3b99c2)=>{this['fire']('addComment',_0x3b99c2),_0xd4ecbb['editor']['setData']('');}),_0xd4ecbb['on']('cancel',()=>this['focus']()),_0xd4ecbb['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x17cc33;}}class SuggestionThreadView extends BaseSuggestionThreadView{['suggestionView'];['_descriptionElement'];constructor(_0x1e6bc7,_0x398b26,_0x2cb450,_0x303e9b){super(_0x1e6bc7,_0x398b26,_0x2cb450,_0x303e9b),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x30f001=>_0x30f001&&_0x30f001[0x0]?_0x30f001[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x22e366,_0x513a1b)=>{let _0x507d26='';for(const _0x1c7884 of _0x22e366)_0x507d26+='<p>'+ht(_0x1c7884['content'],_0x1c7884['color'])+'</p>';return _0x513a1b?_0x507d26:_0x135ae5(_0x507d26,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x303e9b['SuggestionView'](_0x1e6bc7,_0x398b26,{'formatDateTime':_0x303e9b['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 _0x3dba53=this['bindTemplate'],_0x98705a=[this['suggestionView']];return this['commentsListView']&&_0x98705a['push'](this['commentsListView']),this['commentThreadInputView']&&_0x98705a['push'](this['commentThreadInputView']),_0x98705a['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3dba53['if']('isActive','ck-suggestion-wrapper--active'),_0x3dba53['to']('type',_0x481554=>'ck-suggestion-'+_0x481554),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':_0x3dba53['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x98705a};}['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 SuggestionView extends _0x1febdd{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5cd59f,_0x95a3,_0x1d234f){super(_0x5cd59f),this['_model']=_0x95a3,this['_config']=_0x1d234f,this['set']('description',''),this['bind']('authoredAt')['to'](_0x95a3),this['acceptButton']=this['_createButton'](Tt(_0x5cd59f,'Accept\x20suggestion'),_0x288cb6,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Tt(_0x5cd59f,'Discard\x20suggestion'),_0xef5af9,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x346b02(_0x5cd59f,_0x95a3['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x385980([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x59dd35(),this['keystrokes']=new _0x490a6e(),this['focusCycler']=new _0x4b765b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xa7ea7f=>_0xa7ea7f['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x594d47=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x594d47['innerHTML']=this['description'],this['on']('change:description',(_0x4c6fe6,_0x4112a2,_0x60deaf)=>{_0x594d47['innerHTML']=_0x60deaf;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4bc371=this['bindTemplate'],_0x4e82af=[{'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':_0x4bc371['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4bc371['to']('authoredAt',_0x5cae36=>this['_config']['formatDateTime'](_0x5cae36))}]}]},{'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']&&_0x4e82af['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':_0x4e82af}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Tt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Tt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?Tt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Tt(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x2592a5,_0x1fa69b,_0x10e44f,_0x3d6ede,_0x374898){const _0x4884f9=new _0xdf261d(this['locale']);return _0x4884f9['set']({'label':_0x2592a5,'icon':_0x1fa69b,'tooltip':!0x0,'tooltipPosition':_0x374898}),_0x4884f9['extendTemplate']({'attributes':{'class':_0x10e44f}}),_0x4884f9['on']('execute',()=>{this['fire'](_0x3d6ede,this['_model']['id']);}),_0x4884f9;}['_setupKeyboardNavigation'](){const _0x543244=this['element'];this['keystrokes']['listenTo'](_0x543244);for(const _0x100932 of this['focusables'])this['focusTracker']['add'](_0x100932['element']),this['keystrokes']['listenTo'](_0x100932['element']);this['keystrokes']['set']('enter',(_0x5e0a3c,_0x25716c)=>{_0x543244===_0x5e0a3c['target']&&(this['focusCycler']['focusFirst'](),_0x25716c());}),this['keystrokes']['set']('esc',(_0x1b99ef,_0x4a3b2e)=>{_0x543244!==_0x1b99ef['target']&&(this['focus'](),_0x4a3b2e());});}}class TrackChangesUI extends _0x5a485e{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[TrackChangesEditing,_0x41f7d1,_0x112fe0,_0xd384be,_0x234e7e];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x564c9e){super(_0x564c9e),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4e604d=this['editor']['config'];_0x4e604d['define']('trackChanges.SuggestionThreadView',SuggestionThreadView),_0x4e604d['define']('trackChanges.SuggestionView',SuggestionView),_0x4e604d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4e604d['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x474f86,_0x2665b1){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4a2a07,_0x4499a1]of this['_handleControllerBuffer']){const _0x54afc3=this['_suggestionToController']['has'](_0x4a2a07);_0x54afc3||_0x4499a1?_0x54afc3&&_0x4499a1&&this['_destroyController'](_0x4a2a07):this['_initializeController'](_0x4a2a07);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x234e7e)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x474f86,_0x2665b1);}['init'](){const _0x51ee26=this['editor'],_0x2e5e8d=_0x51ee26['plugins']['get'](TrackChangesEditing),_0x1623a9=_0x51ee26['plugins']['get'](_0xd384be),_0x1ed64a=_0x51ee26['plugins']['get'](_0x234e7e),_0xbb4a66=_0x51ee26['plugins']['get'](_0x112fe0);this['_addUIComponentsToFactory'](),_0x1ed64a['addSourceCollector'](()=>{const _0x5bc39b=[];for(const [_0x251b60,_0x2979ba]of Array['from'](this['_suggestionToController'])){const _0x4d3b41=_0x251b60['getAllAdjacentSuggestions'](),_0x1f4dc6=[];for(const _0xbb978f of _0x4d3b41){if(!_0xbb978f['isInContent'])continue;if(_0xbb978f['isMultiRange']){_0x1f4dc6['push'](..._0xbb978f['getRanges']());continue;}const _0x63056f=_0xbb978f['getFirstRange']();if(_0x1f4dc6['length']>0x0){const _0x383a37=_0x1f4dc6[0x0]['getJoined'](_0x63056f);if(_0x383a37){_0x1f4dc6[0x0]=_0x383a37;continue;}}_0x1f4dc6['push'](_0x63056f);}_0x5bc39b['push']([_0x2979ba['view'],_0x1f4dc6]);}return _0x5bc39b;}),this['listenTo'](_0x2e5e8d,'suggestionLoaded',(_0x756193,_0x8c1151)=>{this['listenTo'](_0x8c1151,'change:previous',(_0x1f2a78,_0x5321af,_0x696938,_0x111abb)=>{_0x8c1151['isInContent']&&(null==_0x696938?(this['_updateController'](_0x111abb['head']),this['_handleSuggestionControllerDelayed'](_0x8c1151,!0x1)):(this['_updateController'](_0x696938['head']),null==_0x111abb&&this['_handleSuggestionControllerDelayed'](_0x8c1151,!0x0)));}),null!==_0x8c1151['previous']?this['_updateController'](_0x8c1151['head']):this['_handleSuggestionControllerDelayed'](_0x8c1151,!0x1);}),this['listenTo'](_0x2e5e8d,'suggestionUnloaded',(_0xe7bac0,_0x22c273,_0x54ee0d)=>{this['stopListening'](_0x22c273,'change:previous'),this['_handleControllerBuffer']['delete'](_0x22c273),this['_suggestionToController']['has'](_0x22c273)&&this['_destroyController'](_0x22c273),_0x54ee0d&&this['_updateController'](_0x54ee0d['head']);}),this['listenTo'](_0x2e5e8d,'suggestionChanged',(_0x3626c9,_0x3ab9b8)=>{this['_updateController'](_0x3ab9b8);}),this['listenTo'](_0x1623a9,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xbb4a66,'addComment',(_0x3c2846,{threadId:_0x1bb9a9,isFromAdapter:_0x12f2cf})=>{if(_0x12f2cf||!_0x2e5e8d['hasSuggestion'](_0x1bb9a9))return;const _0x514f8b=_0x2e5e8d['getSuggestion'](_0x1bb9a9);this['_suggestionToController']['get'](_0x514f8b)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xd1f93d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x23dda4;for(const _0xd652fe in _0xd1f93d){const _0x142814=_0xd652fe,_0x15a4c6=_0xd1f93d[_0x142814];if('trackChangesLicenseKeyValid'==_0x15a4c6||'trackChangesLicenseKeyInvalid'==_0x15a4c6||'trackChangesLicenseKeyExpired'==_0x15a4c6||'trackChangesLicenseKeyDomainLimit'==_0x15a4c6||'trackChangesLicenseKeyNotAllowed'==_0x15a4c6||'trackChangesLicenseKeyEvaluationLimit'==_0x15a4c6||'trackChangesLicenseKeyUsageLimit'==_0x15a4c6){delete _0xd1f93d[_0x142814],_0x23dda4=_0x15a4c6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x23dda4&&_0xd1f93d['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x23dda4&&_0xd1f93d['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x23dda4&&_0xd1f93d['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x23dda4&&_0xd1f93d['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x23dda4&&_0xd1f93d['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x23dda4&&_0xd1f93d['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x136c27){const _0x11f311=this['_suggestionToController']['get'](_0x136c27);if(!_0x11f311)return null;return this['editor']['plugins']['get'](_0xd384be)['getByInnerView'](_0x11f311['view'])||null;}['getSuggestionForAnnotation'](_0xc358ee){const _0x281223=this['_viewToController']['get'](_0xc358ee['innerView']);return _0x281223?_0x281223['model']:null;}['_refreshActiveMarkers'](){const _0x5d5ce6=this['editor']['plugins']['get'](_0xd384be),_0x17d211=this['editor']['plugins']['get'](TrackChangesEditing),_0x53e2a1=Array['from'](_0x5d5ce6['activeAnnotations'],_0x31b20f=>_0x31b20f['innerView'])['filter'](_0x237917=>this['_viewToController']['has'](_0x237917)),_0x4f5ff0=[];for(const _0x277fea of _0x53e2a1){const _0x2af965=this['_viewToController']['get'](_0x277fea)['model']['getAllAdjacentSuggestions']();_0x4f5ff0['push'](..._0x2af965['reduce']((_0xf060d9,_0x367171)=>[..._0xf060d9,..._0x367171['getMarkerNames']()],[]));}_0x17d211['activeMarkers']=_0x4f5ff0;}['_addUIComponentsToFactory'](){const _0x38e22b=this['editor'],_0x300e8d=_0x38e22b['locale'],_0x2a6455=Tt(_0x300e8d,'Track\x20changes'),_0x323ee6=new _0x29be2c([{'type':'switchbutton','model':new _0x886259({'withText':!0x0,'isToggleable':!0x0,'label':_0x2a6455,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x886259({'withText':!0x0,'label':Tt(_0x300e8d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x886259({'withText':!0x0,'label':Tt(_0x300e8d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x886259({'withText':!0x0,'label':Tt(_0x300e8d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x886259({'withText':!0x0,'label':Tt(_0x300e8d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x38e22b['plugins']['has']('TrackChangesPreview')&&_0x323ee6['addMany']([{'type':'separator'},{'type':'button','model':new _0x886259({'withText':!0x0,'label':Tt(_0x300e8d,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x353de8 of _0x323ee6)if(Yt(_0x353de8)){const _0x293792=_0x38e22b['commands']['get'](_0x353de8['model']['commandName']);_0x353de8['model']['bind']('isOn','isEnabled')['to'](_0x293792,'value','isEnabled');}_0x38e22b['ui']['componentFactory']['add']('trackChanges',_0x4a2cb3=>this['_createToolbarButton'](_0x4a2cb3,_0x323ee6,_0x2a6455)),_0x38e22b['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4a2763=>this['_createMenuBarMenu'](_0x4a2763,_0x323ee6,_0x2a6455));}['_createToolbarButton'](_0x5f19c8,_0x519f02,_0x1e4a79){const _0x696b73=_0x21ae11(_0x5f19c8,_0x5adb68),_0x5d7816=this['editor']['commands']['get']('trackChanges');_0x696b73['buttonView']['set']({'tooltip':_0x1e4a79,'label':_0x1e4a79,'icon':_0x3c5a70}),_0x696b73['buttonView']['bind']('isOn')['to'](_0x5d7816,'value'),_0x696b73['buttonView']['on']('execute',()=>{_0x5d7816['execute'](),this['editor']['editing']['view']['focus']();}),_0x40f11c(_0x696b73,_0x519f02,{'role':'menu'});const _0x5f52a2=[];for(const _0x58425b of _0x519f02)Yt(_0x58425b)&&_0x5f52a2['push'](this['editor']['commands']['get'](_0x58425b['model']['commandName']));const _0x3663e0=_0x696b73['buttonView'];return _0x3663e0['actionView']['unbind']('isEnabled'),_0x3663e0['arrowView']['unbind']('isEnabled'),_0x3663e0['actionView']['bind']('isEnabled')['to'](_0x5d7816,'isEnabled'),_0x3663e0['arrowView']['bind']('isEnabled')['toMany'](_0x5f52a2,'isEnabled',(..._0x21c04c)=>_0x21c04c['some'](_0xe32a42=>_0xe32a42)),_0x696b73['on']('execute',_0x1bcd5a=>{this['editor']['execute'](_0x1bcd5a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x696b73;}['_createMenuBarMenu'](_0x542dda,_0x170eb3,_0x3e2d66){const _0x1f59bd=new _0x2eb164(_0x542dda),_0x2c1534=this['editor']['commands']['get']('trackChanges');_0x1f59bd['buttonView']['set']({'label':_0x3e2d66,'icon':_0x3c5a70});const _0x13fe07=new _0x39fe7a(_0x542dda);for(const _0x1b488a of _0x170eb3){if('separator'==_0x1b488a['type']){_0x13fe07['items']['add'](new _0x577f57(_0x542dda));continue;}const _0x1abf86=new _0x47c0d3(_0x542dda,_0x1f59bd),_0x358216=new _0x1b2e37(_0x542dda),_0x571907=_0x1b488a['model'];_0x358216['bind'](...Object['keys'](_0x571907))['to'](_0x571907),_0x358216['delegate']('execute')['to'](_0x1f59bd),_0x358216['on']('execute',()=>{this['editor']['execute'](_0x571907['commandName']),this['editor']['editing']['view']['focus']();}),_0x1abf86['children']['add'](_0x358216),_0x13fe07['items']['add'](_0x1abf86);}return _0x1f59bd['bind']('isEnabled')['to'](_0x2c1534,'isEnabled'),_0x1f59bd['panelView']['children']['add'](_0x13fe07),_0x1f59bd;}['_initializeController'](_0x4b0144){const _0x16155c=this['editor'],_0x45e20a=_0x16155c['config'],_0x460476=_0x16155c['plugins']['get'](_0xd384be),_0x459473=_0x16155c['plugins']['get'](_0x112fe0),_0x2aaf8c=_0x16155c['plugins']['get'](_0x234e7e),_0x34a32a=_0x16155c['plugins']['get'](_0x41f7d1)['me'],_0x85a5c7=_0x45e20a['get']('trackChanges')['SuggestionThreadView'],_0x4820ce=_0x45e20a['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x51b84,CommentThreadInputView:_0x2ff355}=_0x16155c['plugins']['get']('CommentsUI');let _0x180c55,_0x37065e,_0x139b4a;this['_annotationViews']['has'](_0x4b0144['id'])?(_0x37065e=this['_annotationViews']['get'](_0x4b0144['id']),_0x180c55=_0x37065e['mainView']):(_0x180c55=new _0x85a5c7(_0x16155c['locale'],_0x4b0144,_0x34a32a,{'disableComments':this['_disableComments'],'editorConfig':{..._0x45e20a['get']('comments.editorConfig'),'licenseKey':_0x45e20a['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x45e20a['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x45e20a['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x45e20a['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x403978(_0x45e20a['get']('locale'),_0x16155c['locale']),'CommentView':_0x45e20a['get']('comments')['CommentView'],'CommentsListView':_0x51b84,'CommentThreadInputView':_0x2ff355,'SuggestionView':_0x4820ce}),_0x180c55['suggestionView']['acceptButton']['on']('execute',()=>{_0x16155c['editing']['view']['focus']();}),_0x180c55['suggestionView']['discardButton']['on']('execute',()=>{_0x16155c['editing']['view']['focus']();}),_0x37065e=_0x460476['createAnnotationView'](this['editor']['locale'],_0x180c55),_0x37065e['bind']('isDirty')['to'](_0x180c55,'isDirty'),_0x37065e['bind']('length')['to'](_0x180c55),_0x37065e['bind']('type')['to'](_0x180c55,'type',_0x339ba8=>'suggestion-'+_0x339ba8),_0x180c55['on']('escape',()=>{_0x139b4a['fire']('escape');}),this['_annotationViews']['set'](_0x4b0144['id'],_0x37065e));const _0x27aeec=_0x459473['createCommentThreadController'](_0x4b0144['commentThread'],_0x180c55),_0x19f28f=new SuggestionController(_0x16155c,_0x4b0144,_0x180c55,_0x27aeec),_0x4ac1a0=_0x4b0144['getAllAdjacentSuggestions']()['filter'](_0x24e2dc=>_0x24e2dc['isInContent']);_0x180c55['descriptionParts']=_0x16155c['plugins']['get'](TrackChangesEditing)['descriptionFactory']['getDescriptions'](_0x4ac1a0),this['_suggestionToController']['set'](_0x4b0144,_0x19f28f),this['_viewToController']['set'](_0x180c55,_0x19f28f);const _0x1a8b3f=()=>{const _0xcbbbc0=[],_0x1cff8b=_0x4b0144['getAllAdjacentSuggestions']()['filter'](_0x4b9cce=>_0x4b9cce['isInContent']);for(const _0x530466 of _0x1cff8b)_0xcbbbc0['push'](..._0x530466['getMarkers']());return _0xe1a4e5(_0x16155c['editing'],_0xcbbbc0);};_0x139b4a=_0x460476['createAnnotation']({'view':_0x37065e,'target':_0x1a8b3f,'type':()=>'suggestion-'+_0x19f28f['view']['type'],'isVisible':!!_0x1a8b3f()}),_0x459473['_bindAnnotationToEditors'](_0x180c55,_0x139b4a),_0x460476['add'](_0x139b4a),_0x2aaf8c['registerAnnotation'](_0x139b4a);}['_destroyController'](_0x884e6){const _0xbf627c=this['editor']['plugins']['get'](_0x112fe0),_0x3f6b78=this['editor']['plugins']['get'](_0xd384be),_0x21a49=this['_suggestionToController']['get'](_0x884e6),_0xa75e67=_0x21a49['view'],_0x105ae6=_0x3f6b78['getByInnerView'](_0xa75e67);_0xbf627c['_unbindEditors'](_0xa75e67),_0x105ae6&&_0x3f6b78['remove'](_0x105ae6),this['_suggestionToController']['delete'](_0x884e6),this['_viewToController']['delete'](_0xa75e67),_0x21a49['destroy']();}['_updateController'](_0x8e579f){if(!_0x8e579f['isInContent']||!this['_suggestionToController']['has'](_0x8e579f))return;const _0x4d6155=this['editor']['plugins']['get'](TrackChangesEditing),_0xe93a5d=this['_suggestionToController']['get'](_0x8e579f),_0x285df8=_0x8e579f['getAllAdjacentSuggestions']();_0xe93a5d['view']['descriptionParts']=_0x4d6155['descriptionFactory']['getDescriptions'](_0x285df8);}['destroy'](){for(const _0x295c76 of this['_suggestionToController']['keys']())this['_destroyController'](_0x295c76);for(const _0x1d6850 of this['_annotationViews']['values']())_0x1d6850['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Yt(_0x51dd87){return'model'in _0x51dd87;}class TrackChanges extends _0x5a485e{static get['requires'](){return[TrackChangesEditing,TrackChangesUI,_0x4f8bc7];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0xac9419){this['editor']['plugins']['get'](TrackChangesEditing)['adapter']=_0xac9419;}get['adapter'](){return this['editor']['plugins']['get'](TrackChangesEditing)['adapter'];}['addSuggestion'](_0xdb6547){return this['editor']['plugins']['get'](TrackChangesEditing)['addSuggestionData'](_0xdb6547);}['getSuggestions']({skipNotAttached:_0x32640b=!0x1,toJSON:_0x3d6425=!0x1}={}){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestions']({'skipNotAttached':_0x32640b,'toJSON':_0x3d6425});}['getSuggestion'](_0x230408){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestion'](_0x230408);}}const qt=['Pagination'];class TrackChangesData extends _0x5a485e{static get['requires'](){return[TrackChangesEditing];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4cafcc=this['editor'];if(_0x4cafcc['config']['define']('trackChangesData.editorCreator',_0x372460=>{const _0x1072ec=_0x4cafcc['model']['document']['getRootNames']()['reduce']((_0x45b351,_0x1af318)=>(_0x45b351[_0x1af318]='',_0x45b351),{});return _0x4cafcc['constructor']['create'](_0x1072ec,_0x372460);}),'function'!=typeof _0x4cafcc['config']['get']('trackChangesData')['editorCreator'])throw new _0xa0bdff('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x283e7b){return Zt(this['editor'],!0x0,_0x283e7b);}['getDataWithDiscardedSuggestions'](_0x54fb6f){return Zt(this['editor'],!0x1,_0x54fb6f);}}class TrackChangesDataGetter extends _0x5a485e{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2963d0){function _0x57f9f7(_0x19016e){return _0x19016e['map'](_0x8953d5=>String['fromCharCode'](_0x8953d5))['join']('');}super(_0x2963d0),this['result']='end',_0x2963d0[_0x57f9f7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x57f9f7([0x76,0x69,0x65,0x77])][_0x57f9f7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x57f9f7([0x61,0x75,0x74,0x6f]),_0x2963d0[_0x57f9f7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x57f9f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x57f9f7([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x57f9f7([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x57f9f7([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 Qt(_0xe63de1){return void 0x0!==_0xe63de1['getRootsAttributes'];}async function Zt(_0x35fc60,_0x173bce,_0x6da910){const _0x136759=_0x274be0(_0x35fc60,qt);if(_0x136759['plugins']['push'](TrackChangesEditing,TrackChangesDataGetter),Qt(_0x35fc60)){_0x136759['roots']=Object['create'](null);for(const _0x31dbf1 of _0x35fc60['model']['document']['getRootNames']())_0x136759['roots'][_0x31dbf1]={'modelAttributes':_0x35fc60['getRootAttributes'](_0x31dbf1)};}const _0x964eff=document['createDocumentFragment'](),_0x3dd091=_0x35fc60['config']['get']('trackChangesData')['editorCreator'],_0x35940e=await _0x3dd091(_0x136759,()=>function(_0x44b1ea){const _0x288bcb=document['createElement']('div');return _0x44b1ea['appendChild'](_0x288bcb),_0x288bcb;}(_0x964eff));!function(_0x1fd57a,_0x2be8e3){const _0x1bc7d9=_0x1fd57a['model']['document']['getRootNames']()['reduce']((_0x2dcf57,_0x4af3a5)=>(_0x2dcf57[_0x4af3a5]=_0x1fd57a['data']['get']({'rootName':_0x4af3a5}),_0x2dcf57),{}),_0x540304=_0x1fd57a['plugins']['get']('Users')['users']['map'](_0x51b1a1=>({'id':_0x51b1a1['id'],'name':_0x51b1a1['name']})),_0x1046bd=_0x1fd57a['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5586fc=_0x1fd57a['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4c9cf8=_0x2be8e3['plugins']['get']('Users'),_0x13fab7=_0x2be8e3['plugins']['get']('TrackChangesEditing'),_0x9ae335=_0x2be8e3['plugins']['get']('CommentsRepository');for(const _0x55a319 of _0x9ae335['getCommentThreads']())_0x55a319['remove']();for(const _0x3f125d of _0x540304)_0x4c9cf8['getUser'](_0x3f125d['id'])||_0x4c9cf8['addUser'](_0x3f125d);_0x4c9cf8['me']||_0x4c9cf8['useAnonymousUser']();for(const _0xfb4147 of _0x5586fc)_0x9ae335['addCommentThread'](_0xfb4147);for(const _0x5798a2 of _0x1046bd)_0x13fab7['addSuggestionData'](_0x5798a2);_0x2be8e3['data']['set'](_0x1bc7d9);}(_0x35fc60,_0x35940e),_0x35940e['execute'](_0x173bce?'acceptAllSuggestions':'discardAllSuggestions');const _0x58bbe3=Qt(_0x35940e)?_0x35940e['getFullData'](_0x6da910):_0x35940e['data']['get'](_0x6da910);return await _0x35940e['destroy'](),_0x58bbe3;}class TrackChangesPreviewView extends _0x1febdd{['options'];constructor(_0x29b5c3,_0x5e46f9){super(_0x29b5c3),this['options']=_0x5e46f9,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'](_0x1e6fea,_0x4d7004){if(!this['element'])return;const _0x157ad8=[];for(const [_0x1fada2,_0x17463c]of _0x1e6fea){const _0x5aa6de=document['createElement']('div');_0x5aa6de['setAttribute']('data-ck-root-name',_0x1fada2),_0x5aa6de['className']=_0x17463c['classes']+'\x20ck-track-changes-preview__root-container',_0x5aa6de['innerHTML']=_0x17463c['content'],_0x157ad8['push'](_0x5aa6de);}_0x4d7004(this['element'],_0x157ad8),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class PreviewFinalContentCommand extends _0x468faf{constructor(_0x87a91e){super(_0x87a91e),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x306d06=this['editor'],_0x5178e3=_0x306d06['locale'],_0x13d270=_0x306d06['plugins']['get']('Dialog');let _0x121000;const _0x122d43=function(_0x2ae89e){const _0x3553a8={};if('editables'in _0x2ae89e['ui']['view']){for(const [_0x9ff4fb,_0x5274da]of Object['entries'](_0x2ae89e['ui']['view']['editables']))_0x3553a8[_0x9ff4fb]=_0x5274da['element'];}else _0x3553a8[_0x2ae89e['model']['document']['getRootNames']()[0x0]]=_0x2ae89e['ui']['view']['editable']['element'];return _0x3553a8;}(_0x306d06),_0xae16b0=function(_0x5b5336){let _0x596d5e=0x0;for(const _0x1bd710 of Object['values'](_0x5b5336))_0x596d5e=Math['max'](_0x596d5e,_0x1bd710['getBoundingClientRect']()['width']);let _0x5a4905=0x0;for(const _0x117466 of Object['values'](_0x5b5336))_0x5a4905+=_0x117466['getBoundingClientRect']()['height'];const _0x3b10f8=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x5deaed=Math['min'](_0x5a4905,_0x3b10f8);return{'width':_0x596d5e,'height':_0x5deaed};}(_0x122d43);_0x13d270['show']({'id':'finalContentPreview','title':Tt(_0x5178e3,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new TrackChangesPreviewView(_0x5178e3,{'dialogRects':_0xae16b0}),'onHide':()=>{_0x121000['detachFromDom']();},'onShow':()=>{_0x306d06['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2d6091=>{const _0x56cbfa=this['_standarizeRootsData'](_0x2d6091,_0x306d06,_0x122d43);_0x13d270['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x56cbfa,_0x306d06['config']['get']('trackChanges.preview.renderFunction'));}),_0x121000=new _0x42698c(_0x5178e3,[_0x13d270['view']]),_0x121000['attachToDom'](),_0x121000['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x306d06['once']('destroy',()=>{_0x121000['detachFromDom']();});const _0x124967=_0x13d270['view']['headerView']['class'];_0x13d270['view']['headerView']['class']=_0x124967?_0x124967+'\x20ck-reset_all':'ck-reset_all',_0x13d270['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x13d270['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x6d808e=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x57de0f=_0x6d808e['previewMode'],_0xce3eb8={};if('$labels'===_0x57de0f){for(const _0x4551b9 of _0x6d808e['getMergeFieldsIds']())_0xce3eb8[_0x4551b9]=_0x6d808e['getLabel'](_0x4551b9)||_0x4551b9;}else{const _0x32501e='$defaultValues'===_0x57de0f?_0x6d808e['getDefaultValues']():_0x6d808e['getDataSetValues'](_0x57de0f,!0x0);for(const _0x296f4a of Object['entries'](_0x32501e)){const [_0x4c0b5e,_0xe44647]=_0x296f4a;_0xce3eb8[_0x4c0b5e]=null!==_0xe44647?_0xe44647:_0x6d808e['getLabel'](_0x4c0b5e)||_0x4c0b5e;}}return{'mergeFieldsData':_0xce3eb8};}['_standarizeRootsData'](_0x3f3d23,_0x3b67a3,_0xdacba8){let _0x4cd820;if('string'==typeof _0x3f3d23){const _0x51229e=_0x3b67a3['model']['document']['getRootNames']()[0x0];_0x4cd820={[_0x51229e]:_0x3f3d23};}else _0x4cd820=_0x3f3d23;const _0x192bd1=this['_fixMediaEmbeds'](_0x4cd820,_0x3b67a3),_0x4a271f=function(_0x506502,_0x39579d){for(const [_0x32a0bd,_0x57d193]of _0x506502)_0x57d193['classes']=_0x39579d[_0x32a0bd]['classList']['value']['replace']('ck-focused','');return _0x506502;}(this['_sortRoots'](_0x3b67a3)['reduce']((_0x2f88e9,_0x6a6efa)=>(_0x2f88e9['push']([_0x6a6efa,{'content':_0x192bd1[_0x6a6efa],'classes':''}]),_0x2f88e9),[]),_0xdacba8);return _0x4a271f;}['_fixMediaEmbeds'](_0x891b72,_0x14c68d){if(!_0x14c68d['plugins']['has']('MediaEmbedEditing'))return _0x891b72;const _0x4b328d=_0x14c68d['plugins']['get']('MediaEmbedEditing');for(const [_0x24a083,_0x552cb5]of Object['entries'](_0x891b72)){const _0x263f26=document['createElement']('div');_0x263f26['innerHTML']=_0x552cb5,(_0x263f26['querySelectorAll']('figure.media')['forEach'](_0x420c26=>{const _0x181e15=_0x420c26['querySelector']('oembed');if(_0x181e15){const _0x372776=_0x181e15['getAttribute']('url');if(_0x372776){const _0x1ce191=_0x4b328d['registry']['getMediaViewElement'](new et(_0x14c68d['editing']['view']['document']),_0x372776,{'elementName':'','renderForEditingView':!0x0}),_0x17b0ca=document['createElement']('div');_0x17b0ca['classList']['add']('ck-media__wrapper'),_0x1ce191['render'](_0x17b0ca,_0x14c68d['editing']['view']['domConverter']),_0x181e15['replaceWith'](_0x17b0ca);}}}),_0x891b72[_0x24a083]=_0x263f26['innerHTML']);}return _0x891b72;}['_sortRoots'](_0x48370d){if(!function(_0x41751a){return void 0x0!==_0x41751a['getRootsAttributes'];}(_0x48370d))return _0x48370d['model']['document']['getRootNames']();const _0x462041=[],_0x445454=new Map();for(const _0x55537b of _0x48370d['model']['document']['getRootNames']()){const _0x5931cc=_0x48370d['editing']['view']['getDomRoot'](_0x55537b)['getClientRects']()['item'](0x0);_0x462041['push'](_0x55537b),_0x445454['set'](_0x55537b,_0x5931cc);}return _0x462041['sort']((_0x3cd0aa,_0x140f08)=>{const _0x13e84d=_0x445454['get'](_0x3cd0aa),_0x236d37=_0x445454['get'](_0x140f08);return _0x13e84d['y']-_0x236d37['y']||_0x13e84d['x']-_0x236d37['x'];}),_0x462041;}}class TrackChangesPreview extends _0x5a485e{static get['requires'](){return[TrackChangesData,_0x36958a];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5d0ec9){super(_0x5d0ec9),_0x5d0ec9['commands']['add']('previewFinalContent',new PreviewFinalContentCommand(this['editor'])),_0x5d0ec9['config']['define']('trackChanges.preview.renderFunction',(_0x552945,_0x52427f)=>{for(const _0xa6e10c of _0x52427f)_0x552945['appendChild'](_0xa6e10c);});}}export{AcceptSuggestionCommand,BaseSuggestionThreadView,DiscardSuggestionCommand,ExecuteOnAllSuggestionsCommand,ExecuteOnSelectedSuggestionsCommand,PreviewFinalContentCommand,Suggestion,SuggestionDescriptionFactory,SuggestionThreadView,SuggestionView,TrackChanges,TrackChangesCommand,TrackChangesData,TrackChangesDataGetter,TrackChangesEditing,TrackChangesPreview,TrackChangesUI};
23
+ import{Command as _0x4dd781,Plugin as _0x3000a5,PendingActions as _0x366661}from'@ckeditor/ckeditor5-core/dist/index.js';import{CommentsRepository as _0x3b6cc3,Annotations as _0x56e9b1,EditorAnnotations as _0x359145,Comments as _0x41eb8f}from'@ckeditor/ckeditor5-comments/dist/index.js';import{CKEditorError as _0x1d5f66,ObservableMixin as _0x2cad71,uid as _0x59fa6d,priorities as _0x12b650,insertToPriorityArray as _0x567b35,logWarning as _0x29d360,getEnvKeystrokeText as _0x43c0a4,FocusTracker as _0x5c0eff,KeystrokeHandler as _0x14ab05,Collection as _0x1bdbf2}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x464661,IconCancel as _0x58544e,IconTrackChanges as _0x1c5aba}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x4b8cfa,View as _0x219eee,ViewCollection as _0x41b3a9,FocusCycler as _0x27ae21,UIModel as _0x38a215,createDropdown as _0x249d7a,SplitButtonView as _0x147e3d,addListToDropdown as _0x2d8af9,MenuBarMenuView as _0x167357,MenuBarMenuListView as _0xc933cf,ListSeparatorView as _0x51f4ef,MenuBarMenuListItemView as _0x17cfe5,MenuBarMenuListItemButtonView as _0x47a13f,BodyCollection as _0x3e0dbc,Dialog as _0x52b772}from'@ckeditor/ckeditor5-ui/dist/index.js';import{splitSuggestionMarkerName as _0x2522cc,SuggestionsConversion as _0x54b9f2,Users as _0x1d950a,DocumentCompare as _0x1d267d,fixElementSuggestionRange as _0x18e42e,hashObject as _0x56801b,surroundingMarkersDetector as _0xf39aab,FOCUS_ANNOTATION_KEYSTROKE as _0x2f9019,AriaDescriptionView as _0x4a1a2d,setupThreadKeyboardNavigation as _0x414f5c,trimHtml as _0x47f1ed,UserView as _0xf77222,LateFocusButtonView as _0x3b1b8d,getDateTimeFormatter as _0x16d8dd,getAllMarkersDomElementsSorted as _0x35ad97,sanitizeEditorConfig as _0x2577bc}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0x4de7c2,ModelLiveRange as _0x2192a8,ModelLivePosition as tt,ViewDowncastWriter as et}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as nt,set as it,isEqual as st,unset as rt,omit as ot}from'es-toolkit/compat';import{Delete as at,Input as ct}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as lt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as ut}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class TrackChangesCommand extends _0x4dd781{['_enabledCommands'];constructor(_0x3aa4fc,_0x600db4){super(_0x3aa4fc),this['_enabledCommands']=_0x600db4,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 _0x38ba7e of this['editor']['commands']['commands']())_0x38ba7e['affectsData']&&!this['_enabledCommands']['has'](_0x38ba7e)&&_0x38ba7e['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xcfdf76 of this['editor']['commands']['commands']())_0xcfdf76['affectsData']&&!this['_enabledCommands']['has'](_0xcfdf76)&&_0xcfdf76['clearForceDisabled']('TrackChangesCommand');}}class AcceptSuggestionCommand extends _0x4dd781{['_suggestions'];constructor(_0x293016,_0x489527){super(_0x293016),this['_suggestions']=_0x489527,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x718012){const _0x1b4332=this['_suggestions']['get'](_0x718012);if(!_0x1b4332)throw new _0x1d5f66('track-changes-accept-suggestion-not-found',this);const _0x30c223=_0x1b4332['getRanges']();this['editor']['model']['canEditAt'](_0x30c223)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1b4332);}}class DiscardSuggestionCommand extends _0x4dd781{['_suggestions'];constructor(_0x4136eb,_0x5c5153){super(_0x4136eb),this['_suggestions']=_0x5c5153,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3ecb99){const _0x15da2d=this['_suggestions']['get'](_0x3ecb99);if(!_0x15da2d)throw new _0x1d5f66('track-changes-discard-suggestion-not-found',this);const _0x112fe3=_0x15da2d['getRanges']();this['editor']['model']['canEditAt'](_0x112fe3)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x15da2d);}}function ht(_0x5906c7,_0x579f4a){let _0x185321='';return _0x185321+=_0x5906c7['split']('*')['map']((_0x3d4d7c,_0x20ad8c)=>_0x20ad8c%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+gt(_0x3d4d7c)+'</span>':gt(_0x3d4d7c))['join'](''),_0x579f4a&&(_0x185321+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x579f4a['value']+'\x22\x20title=\x22'+_0x579f4a['title']+'\x22></span>'),_0x185321;}function gt(_0x1e1f8c){const _0x3a06fb=document['createElement']('span');return _0x3a06fb['innerText']=_0x1e1f8c,_0x3a06fb['innerHTML'];}function dt(_0x30e730){return _0x30e730['sort']((_0x4f76ad,_0x314551)=>'attribute'===_0x4f76ad['type']&&'attribute'!==_0x314551['type']?-0x1:'attribute'!==_0x4f76ad['type']&&'attribute'===_0x314551['type']?0x1:'deletion'==_0x4f76ad['type']&&'deletion'!=_0x314551['type']?-0x1:'deletion'!=_0x4f76ad['type']&&'deletion'==_0x314551['type']?0x1:0x0);}function ft(_0x40b5a4,_0x10aae9){let _0x51e7ce,_0x1b0347=0x0;const _0x21a6d5=[],_0x3829b1=_0x10aae9['schema'];for(;_0x1b0347<_0x40b5a4['length'];){const _0x28ee05=_0x40b5a4[_0x1b0347],_0x2033c9=_0x40b5a4[_0x1b0347+0x1];_0x51e7ce||(_0x51e7ce=_0x10aae9['createPositionBefore'](_0x28ee05)),mt(_0x10aae9,_0x28ee05,_0x2033c9)||(_0x21a6d5['push'](_0x10aae9['createRange'](_0x51e7ce,_0x3829b1['isObject'](_0x28ee05)?_0x10aae9['createPositionAfter'](_0x28ee05):_0x10aae9['createPositionAt'](_0x28ee05,'end'))),_0x51e7ce=null),_0x1b0347++;}return _0x21a6d5;}function mt(_0x3140be,_0x1f48fd,_0x250d5a){if(!_0x250d5a)return!0x1;const _0x45d41d=_0x3140be['createPositionAfter'](_0x1f48fd),_0x3a528b=_0x3140be['createPositionBefore'](_0x250d5a);return _0x45d41d['isTouching'](_0x3a528b);}function Et(_0x2262af,_0x5a0022,_0x3fa8a1){for(;_0x3fa8a1['length'];){const _0x5d3b74=_0x3fa8a1['splice'](0x0,0x64);_0x2262af['change'](()=>{for(const _0xc4bb32 of _0x5d3b74)_0xc4bb32['isInContent']&&_0x5a0022['execute'](_0xc4bb32['id']);});}}class ExecuteOnAllSuggestionsCommand extends _0x4dd781{['_command'];['_suggestions'];constructor(_0x293394,_0x15d804,_0x3c185a){super(_0x293394),this['_command']=_0x15d804,this['_suggestions']=_0x3c185a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x43e36d=Array['from'](this['_suggestions']['values']())['some'](_0x4fa44e=>_0x4fa44e['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x43e36d;}['execute'](){const _0x33a281=dt(Array['from'](this['_suggestions']['values']()));for(const _0x4b52af of _0x33a281){const _0x332f34=_0x4b52af['getRanges']();if(!this['editor']['model']['canEditAt'](_0x332f34))return;}Et(this['editor']['model'],this['_command'],_0x33a281);}}class ExecuteOnSelectedSuggestionsCommand extends _0x4dd781{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x2e264c,_0x5eeadc,_0x5cf371){super(_0x2e264c),this['_command']=_0x5eeadc,this['_suggestions']=_0x5cf371,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x53ad7d=this['editor']['model']['document']['selection'],_0x3a137e=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4c6d8e,_0x573b68){const _0x37e79f=Array['from'](_0x4c6d8e['getRanges']()),_0x2453d5=new Set();for(const _0x3b6b69 of _0x573b68)if(_0x3b6b69['isInContent']){for(const _0x27f52a of _0x37e79f)for(const _0xd31bf7 of _0x3b6b69['getRanges']())(_0x27f52a['isIntersecting'](_0xd31bf7)||_0x4c6d8e['isCollapsed']&&!_0x3b6b69['isMultiRange']&&_0x3b6b69['next']&&_0xd31bf7['end']['isTouching'](_0x27f52a['start']))&&_0x2453d5['add'](_0x3b6b69);}return _0x2453d5;}(_0x53ad7d,_0x3a137e),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x538f75=dt(Array['from'](this['_selectedSuggestions']));for(const _0x38130b of _0x538f75){const _0x4abf6c=_0x38130b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4abf6c))return;}Et(this['editor']['model'],this['_command'],_0x538f75);}}class Suggestion extends/* #__PURE__ -- @preserve */
24
+ _0x2cad71(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2117f9,_0xe6233c){super(),this['id']=_0xe6233c['id'],this['type']=_0xe6233c['type'],this['subType']=_0xe6233c['subType']||null,this['author']=_0xe6233c['author'],this['creator']=_0xe6233c['creator']||_0xe6233c['author'],this['isExternal']=Boolean(_0xe6233c['attributes']&&_0xe6233c['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0xe6233c['originalSuggestionId']||null,this['_model']=_0x2117f9,this['_onAccept']=_0xe6233c['onAccept'],this['_onDiscard']=_0xe6233c['onDiscard'],this['_onAttributesChange']=_0xe6233c['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xe6233c['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 _0x37ddd1=this;for(;_0x37ddd1['previous'];)_0x37ddd1=_0x37ddd1['previous'];return _0x37ddd1;}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'](_0x25f6da){this['_markerNames']['add'](_0x25f6da);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x406f26=>this['_model']['markers']['get'](_0x406f26))['filter'](_0x4e569c=>_0x4e569c);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3870e9=>{for(const _0x1e6106 of this['getMarkers']())_0x3870e9['removeMarker'](_0x1e6106);}),this['_markerNames']['clear']();}['removeMarker'](_0x386dab){this['_model']['change'](_0x206996=>{_0x206996['removeMarker'](_0x386dab);}),this['_markerNames']['delete'](_0x386dab);}['addRange'](_0x2ab317){const _0x1653a9='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x1653a9),this['_model']['change'](_0xf07391=>{_0xf07391['addMarker'](_0x1653a9,{'range':_0x2ab317,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x42767a){for(const _0x34fc46 of this['getRanges']())if(_0x34fc46['isIntersecting'](_0x42767a))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x33c40f=>_0x33c40f['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x19bd37,_0x2a306f)=>[..._0x19bd37,..._0x2a306f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x126003=this['getRanges']();if(0x1!=_0x126003['length'])return null;const _0x2f6085=_0x126003[0x0],_0x4658f6=_0x2f6085['start']['nodeAfter'],_0x2a0802=_0x2f6085['end']['nodeBefore'];return _0x4658f6 instanceof _0x4de7c2?_0x4658f6!=_0x2a0802?null:_0x4658f6: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 _0x1b2341=[];let _0x1c1ea5=this['head'];for(;_0x1c1ea5;)_0x1b2341['push'](_0x1c1ea5),_0x1c1ea5=_0x1c1ea5['next'];return _0x1b2341;}['setAttribute'](_0x15b7a6,_0x2d8de3){const _0x5b53da=nt(this['attributes']);it(_0x5b53da,_0x15b7a6,_0x2d8de3),st(_0x5b53da,this['attributes'])||(this['attributes']=_0x5b53da,this['_onAttributesChange'](_0x5b53da));}['removeAttribute'](_0x4a741d){const _0x584edf=nt(this['attributes']);rt(_0x584edf,_0x4a741d),st(_0x584edf,this['attributes'])||(this['attributes']=_0x584edf,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 _0x59fa6d()['substr'](0x1,0x5);}}function Tt(_0x589460,_0x33060f,_0x2099e5){const _0x1f4100=_0x589460['t'],t=_0x589460['t'];switch(_0x33060f){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',_0x2099e5);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2099e5);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2099e5);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2099e5);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2099e5);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',_0x2099e5);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2099e5);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',_0x2099e5);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2099e5);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2099e5);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2099e5);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2099e5);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2099e5);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2099e5);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2099e5);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2099e5);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2099e5);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2099e5);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2099e5);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2099e5);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2099e5);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2099e5);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2099e5);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2099e5);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x2099e5);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'},_0x2099e5);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x2099e5);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x2099e5);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2099e5);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2099e5);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2099e5);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2099e5);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2099e5);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'},_0x2099e5);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2099e5);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2099e5);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2099e5);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2099e5);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x2099e5);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2099e5);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'},_0x2099e5);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_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x2099e5);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2099e5);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'},_0x2099e5);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2099e5);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'},_0x2099e5);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2099e5);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x2099e5);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x2099e5);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x2099e5);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2099e5);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'},_0x2099e5);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2099e5);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 _0x1f4100({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2099e5);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1f4100({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2099e5);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2099e5);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'},_0x2099e5);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'},_0x2099e5);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'},_0x2099e5);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x33060f;}}class SuggestionDescriptionFactory{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2bdca3,_0x3ba551){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2bdca3,this['_locale']=_0x3ba551;}['getDescriptions'](_0x1d1b43){const _0x32fe8d=[],_0x1a6386=new Set(),_0x45d207=new Set();for(let _0x14eb40=0x0;_0x14eb40<_0x1d1b43['length'];_0x14eb40++){const _0x21f7d1=_0x1d1b43[_0x14eb40];if(!_0x21f7d1['isInContent'])continue;const _0x3a4542=this['_handleCustomCallbackDescription'](_0x21f7d1);if(_0x3a4542){if(null!=_0x21f7d1['subType']){if(_0x1a6386['has'](_0x21f7d1['subType']))continue;_0x1a6386['add'](_0x21f7d1['subType']);}_0x32fe8d['push'](_0x3a4542);}else{if('attribute'==_0x21f7d1['type']){const _0x149b0f=_0x21f7d1['data']['key'];if(_0x45d207['has'](_0x149b0f))continue;_0x45d207['add'](_0x21f7d1['data']['key']),_0x149b0f==Ft?this['_handleRenameSuggestionDescription'](_0x32fe8d,_0x21f7d1):this['_handleAttributeSuggestionDescription'](_0x32fe8d,_0x21f7d1);continue;}'insertion'!=_0x21f7d1['type']&&'deletion'!=_0x21f7d1['type']||this['_handleInsertRemoveSuggestionDescription'](_0x32fe8d,_0x21f7d1,_0x1d1b43[_0x14eb40+0x1]);}}return this['_resolveDescriptionItems'](_0x32fe8d);}['registerDescriptionCallback'](_0x19ba9e){this['_customCallbacks']['push'](_0x19ba9e);}['registerElementLabel'](_0x47f5b4,_0x32e454,_0x9fc7ca=_0x12b650['normal']){'function'==typeof _0x47f5b4?_0x567b35(this['_itemLabelsCallbacks'],{'matchingCallback':_0x47f5b4,'label':_0x32e454,'priority':_0x9fc7ca}):this['_itemLabels']['set'](_0x47f5b4,_0x32e454);}['registerAttributeLabel'](_0x1e073a,_0x51ad4d){this['_attributeLabels']['set'](_0x1e073a,_0x51ad4d);}['getItemLabel'](_0x5f3a68,_0x25884e=0x1){let _0x1b1716;for(const _0x5bda9e of this['_itemLabelsCallbacks'])if(_0x5bda9e['matchingCallback'](_0x5f3a68)){_0x1b1716=_0x5bda9e['label'];break;}return _0x1b1716||(_0x1b1716=this['_itemLabels']['get'](_0x5f3a68['name'])),_0x1b1716?_0x1b1716(_0x25884e):0x1!==_0x25884e?_0x25884e+'\x20'+_0x5f3a68['name']+'s':''+_0x5f3a68['name'];}['_addDescriptionItems'](_0x45a45f,_0x222f68){const _0x56e872=_0x222f68['getFirstRange']()['getWalker'](),_0x5be8d2='insertion'==_0x222f68['type']?'add':'remove';for(const _0x137aea of _0x56e872){const _0x33dcd5=_0x137aea['item'],_0x1a249e=_0x45a45f[_0x45a45f['length']-0x1];if(_0x33dcd5['is']('$textProxy'))_0x1a249e&&_0x1a249e['type']['indexOf']('Container')>-0x1&&_0x45a45f['pop'](),_0x1a249e&&'text'==_0x1a249e['type']?_0x1a249e[_0x5be8d2]+=_0x33dcd5['data']:_0x45a45f['push']({'type':'text','add':'add'==_0x5be8d2?_0x33dcd5['data']:'','remove':'remove'==_0x5be8d2?_0x33dcd5['data']:''});else{if(this['_schema']['isObject'](_0x33dcd5)){const _0x2f77bd=_0x33dcd5;if(_0x1a249e&&_0x1a249e['type']['indexOf']('Container')>-0x1&&_0x45a45f['pop'](),'elementEnd'==_0x137aea['type'])continue;_0x1a249e&&_0x1a249e['type']==_0x5be8d2+'Object'&&_0x1a249e['element']['name']==_0x2f77bd['name']?_0x1a249e['quantity']++:_0x45a45f['push']({'type':_0x5be8d2+'Object','element':_0x2f77bd,'quantity':0x1}),_0x56e872['skip'](_0xa17ab=>!('elementEnd'==_0xa17ab['type']&&_0xa17ab['item']==_0x33dcd5));}else{if(this['_schema']['checkChild'](_0x33dcd5,'$text')||_0x33dcd5['is']('element','softBreak')){const _0x1a2967=_0x33dcd5;if('add'==_0x5be8d2&&'elementStart'==_0x137aea['type']||'remove'==_0x5be8d2&&'elementEnd'==_0x137aea['type'])continue;if(_0x1a249e&&-0x1==_0x1a249e['type']['indexOf']('Container')){'text'==_0x1a249e['type']&&(_0x1a249e[_0x5be8d2]+='\x0a');continue;}let _0x16025d;if(_0x16025d='add'==_0x5be8d2?_0x1a2967['nextSibling']&&!this['_schema']['isObject'](_0x1a2967['nextSibling'])?_0x1a2967['nextSibling']:null:_0x1a2967['previousSibling']&&!this['_schema']['isObject'](_0x1a2967['previousSibling'])?_0x1a2967['previousSibling']:null,_0x1a2967['isEmpty']||_0x16025d&&_0x16025d['isEmpty']){const _0x40d3ed=_0x16025d&&_0x16025d['isEmpty']?_0x16025d:_0x1a2967;_0x1a249e&&_0x1a249e['type']==_0x5be8d2+'EmptyContainer'&&_0x1a249e['element']['name']==_0x40d3ed['name']?_0x1a249e['quantity']++:_0x45a45f['push']({'type':_0x5be8d2+'EmptyContainer','element':_0x40d3ed,'quantity':0x1});}else _0x45a45f['push']({'type':_0x5be8d2+'Container','element':_0x1a2967});}}}}}['_resolveDescriptionItems'](_0x25223d){const _0xf30164=this['_locale'],_0x44abc2=[],_0x5dbfeb=[],_0x35e48f=[];for(const _0x1428c2 of _0x25223d)switch(_0x1428c2['type']){case'text':if(_0x1428c2['add']=_0x1428c2['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1428c2['remove']=_0x1428c2['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1428c2['add']&&''!=_0x1428c2['remove']){_0x44abc2['push']({'type':'replace','content':Tt(_0xf30164,'REPLACE_TEXT',['\x22'+_0x1428c2['remove']+'\x22','\x22'+_0x1428c2['add']+'\x22'])});continue;}if(null!=_0x1428c2['add']['match'](/^ +$/)){_0x44abc2['push']({'type':'insertion','content':Tt(_0xf30164,'*Insert:*\x20%0',Tt(_0xf30164,'ELEMENT_SPACE',_0x1428c2['add']['length']))});continue;}if(null!=_0x1428c2['remove']['match'](/^ +$/)){_0x44abc2['push']({'type':'deletion','content':Tt(_0xf30164,'*Remove:*\x20%0',Tt(_0xf30164,'ELEMENT_SPACE',_0x1428c2['remove']['length']))});continue;}if(''!=_0x1428c2['add']){_0x44abc2['push']({'type':'insertion','content':Tt(_0xf30164,'*Insert:*\x20%0','\x22'+_0x1428c2['add']+'\x22')});continue;}_0x44abc2['push']({'type':'deletion','content':Tt(_0xf30164,'*Remove:*\x20%0','\x22'+_0x1428c2['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x44abc2['push']({'type':'insertion','content':Tt(_0xf30164,'*Insert:*\x20%0',this['getItemLabel'](_0x1428c2['element'],_0x1428c2['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x44abc2['push']({'type':'deletion','content':Tt(_0xf30164,'*Remove:*\x20%0',this['getItemLabel'](_0x1428c2['element'],_0x1428c2['quantity']))});continue;case'addContainer':_0x44abc2['push']({'type':'insertion','content':Tt(_0xf30164,'*Split:*\x20%0',this['getItemLabel'](_0x1428c2['element'],_0x1428c2['quantity']))});continue;case'removeContainer':_0x44abc2['push']({'type':'deletion','content':Tt(_0xf30164,'*Merge:*\x20%0',this['getItemLabel'](_0x1428c2['element'],_0x1428c2['quantity']))});continue;case'addFormat':_0x5dbfeb['push'](_0x1428c2['key']);continue;case'removeFormat':_0x35e48f['push'](_0x1428c2['key']);continue;default:_0x44abc2['push'](_0x1428c2);}if(_0x5dbfeb['length']){const _0x310132=_0x5dbfeb['map'](_0x37c807=>this['_attributeLabels']['has'](_0x37c807)?this['_attributeLabels']['get'](_0x37c807):_0x37c807)['join'](',\x20');_0x44abc2['push']({'type':'format','content':Tt(this['_locale'],'*Set\x20format:*\x20%0',_0x310132)});}if(_0x35e48f['length']){const _0x3e7725=_0x35e48f['map'](_0x2dfa12=>this['_attributeLabels']['has'](_0x2dfa12)?this['_attributeLabels']['get'](_0x2dfa12):_0x2dfa12)['join'](',\x20');_0x44abc2['push']({'type':'format','content':Tt(this['_locale'],'*Remove\x20format:*\x20%0',_0x3e7725)});}return _0x44abc2;}['_handleCustomCallbackDescription'](_0x1a35f8){for(const _0x3b5f3d of this['_customCallbacks']){const _0x24d051=_0x3b5f3d(_0x1a35f8);if(_0x24d051&&'type'in _0x24d051)return _0x24d051;}}['_handleAttributeSuggestionDescription'](_0x24e932,_0x32f4e5){const _0x2a70c9=_0x32f4e5['data'],_0x94bbbf=void 0x0===_0x2a70c9['newValue']?'removeFormat':'addFormat';_0x24e932['push']({'type':_0x94bbbf,'key':_0x2a70c9['key']});}['_handleRenameSuggestionDescription'](_0x1725f3,_0x12e3ab){_0x1725f3['push']({'type':'format','content':Tt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x12e3ab['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x232e17,_0x508a3b,_0x434c48){if(this['_addDescriptionItems'](_0x232e17,_0x508a3b),_0x434c48&&_0x434c48['getFirstRange']()&&!_0x508a3b['getFirstRange']()['end']['isEqual'](_0x434c48['getFirstRange']()['start'])){const _0x4cfe1d=_0x232e17[_0x232e17['length']-0x1],_0x5ac810='insertion'==_0x508a3b['type']?'add':'remove';_0x4cfe1d&&'text'==_0x4cfe1d['type']&&(_0x4cfe1d[_0x5ac810]+='\x0a');}}}class TrackChangesAIAssistant extends _0x3000a5{['afterInit'](){const _0x582903=this['editor'],_0xb46084=_0x582903['plugins']['get']('TrackChangesEditing');_0x582903['commands']['get']('showAIAssistant')&&_0xb46084['enableCommand']('showAIAssistant');}}class TrackChangesAI extends _0x3000a5{['afterInit'](){const _0x3880e6=this['editor'],_0x8504cc=_0x3880e6['plugins']['get']('TrackChangesEditing');_0x3880e6['commands']['get']('toggleAi')&&_0x8504cc['enableCommand']('toggleAi');}}class TrackChangesAIQuickActions extends _0x3000a5{['afterInit'](){const _0x33bc21=this['editor'],_0xee198d=_0x33bc21['plugins']['get']('TrackChangesEditing');_0x33bc21['commands']['get']('aiQuickAction')&&_0xee198d['enableCommand']('aiQuickAction');}}class TrackChangesAlignment extends _0x3000a5{['afterInit'](){const _0x384687=this['editor'],_0x4cc9b4=_0x384687['locale'];if(!_0x384687['plugins']['has']('AlignmentEditing'))return;const _0x2d754c=_0x384687['plugins']['get']('TrackChangesEditing');_0x2d754c['enableDefaultAttributesIntegration']('alignment'),_0x2d754c['descriptionFactory']['registerAttributeLabel']('alignment',Tt(_0x4cc9b4,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x543adf=this['editor'],_0x1501a8=_0x543adf['locale'];_0x543adf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c0059=>{if('formatBlock'!=_0x3c0059['type'])return;const {data:_0x5c360e}=_0x3c0059;if(_0x5c360e&&'alignment'==_0x5c360e['commandName']){const _0x261f5f=_0x5c360e['commandParams'][0x0]['value'];return{'type':'format','content':Tt(_0x1501a8,'*Format:*\x20%0',function(_0xe0b0ed){switch(_0xe0b0ed){case'left':return Tt(_0x1501a8,'FORMAT_ALIGN_TO_LEFT');case'right':return Tt(_0x1501a8,'FORMAT_ALIGN_TO_RIGHT');case'center':return Tt(_0x1501a8,'FORMAT_ALIGN_TO_CENTER');case'justify':return Tt(_0x1501a8,'FORMAT_JUSTIFY_TEXT');}}(_0x261f5f))};}});}}const _t=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class TrackChangesBasicStyles extends _0x3000a5{['afterInit'](){const _0x17bc53=this['editor'],_0x147aa7=_0x17bc53['plugins']['get']('TrackChangesEditing'),_0x203d3d=_0x17bc53['locale'];for(const _0x17e59b of _t){if(!_0x17bc53['plugins']['has'](_0x17e59b))continue;const _0x7a43d9=_0x17e59b['slice'](0x0,-0x7)['toLowerCase'](),_0x42fa85='FORMAT_'+_0x7a43d9['toUpperCase']();_0x147aa7['enableDefaultAttributesIntegration'](_0x7a43d9),_0x147aa7['descriptionFactory']['registerAttributeLabel'](_0x7a43d9,Tt(_0x203d3d,_0x42fa85));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44059e=this['editor'],_0x1af12d=_0x44059e['locale'],_0x25dc55=_0x44059e['plugins']['get']('TrackChangesEditing');function _0x65cf29(_0x566cc4,_0x73d2a9){_0x25dc55['descriptionFactory']['registerDescriptionCallback'](_0x5d8759=>{if('formatInline'!=_0x5d8759['type'])return;const {data:_0x5efc35}=_0x5d8759;return _0x5efc35&&_0x5efc35['commandName']===_0x566cc4?_0x5efc35['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x1af12d,'*Format:*\x20%0',_0x73d2a9)}:{'type':'format','content':Tt(_0x1af12d,'*Remove\x20format:*\x20%0',_0x73d2a9)}:void 0x0;});}_0x65cf29('bold',Tt(_0x1af12d,'FORMAT_BOLD')),_0x65cf29('italic',Tt(_0x1af12d,'FORMAT_ITALIC')),_0x65cf29('underline',Tt(_0x1af12d,'FORMAT_UNDERLINE')),_0x65cf29('code',Tt(_0x1af12d,'FORMAT_CODE')),_0x65cf29('strikethrough',Tt(_0x1af12d,'FORMAT_STRIKETHROUGH')),_0x65cf29('subscript',Tt(_0x1af12d,'FORMAT_SUBSCRIPT')),_0x65cf29('superscript',Tt(_0x1af12d,'FORMAT_SUPERSCRIPT'));}}class TrackChangesBlockQuote extends _0x3000a5{['afterInit'](){const _0x26e52f=this['editor'],_0x3c8ee5=_0x26e52f['locale'];if(!_0x26e52f['plugins']['has']('BlockQuoteEditing'))return;const _0x4835f5=_0x26e52f['plugins']['get']('TrackChangesEditing'),_0x15fead=this['editor']['commands']['get']('blockQuote');_0x4835f5['enableCommand']('blockQuote',(_0x1681aa,_0x11e532={})=>{const _0x59beca=this['editor']['model']['document']['selection'],_0x29e42e=_0x11e532&&void 0x0!==_0x11e532['forceValue']?_0x11e532['forceValue']:!_0x15fead['value'];let _0x489622=[];if(_0x29e42e){const _0x3b10d2=Array['from'](_0x59beca['getSelectedBlocks']())['filter'](_0x33fc5e=>pt(_0x33fc5e)||function(_0xc5544d,_0x4c97b4){const _0x3aecb2=_0x4c97b4['checkChild'](_0xc5544d['parent'],'blockQuote'),_0x5a89ac=_0x4c97b4['checkChild'](['$root','blockQuote'],_0xc5544d);return _0x3aecb2&&_0x5a89ac;}(_0x33fc5e,this['editor']['model']['schema']));_0x489622=ft(_0x3b10d2,_0x26e52f['model']);}else{const _0x4cf948=Array['from'](_0x59beca['getSelectedBlocks']())['filter'](_0xc93805=>pt(_0xc93805));_0x489622=ft(_0x4cf948,_0x26e52f['model']);}_0x26e52f['model']['change'](()=>{for(const _0x5748ca of _0x489622)_0x4835f5['markBlockFormat'](_0x5748ca,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x29e42e}]});});}),_0x4835f5['descriptionFactory']['registerDescriptionCallback'](_0x13a80d=>{const {data:_0x3a4484}=_0x13a80d;if(_0x3a4484&&'blockQuote'==_0x3a4484['commandName']){const _0x571fe8=Tt(_0x3c8ee5,'ELEMENT_BLOCK_QUOTE');return _0x3a4484['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x3c8ee5,'*Set\x20format:*\x20%0',_0x571fe8)}:{'type':'format','content':Tt(_0x3c8ee5,'*Remove\x20format:*\x20%0',_0x571fe8)};}});}}function pt(_0x282489){return'blockQuote'==_0x282489['parent']['name'];}class TrackChangesBookmark extends _0x3000a5{['afterInit'](){const _0x791d88=this['editor'],_0x12b9b5=_0x791d88['locale'],_0x27a65c=_0x791d88['plugins']['get']('TrackChangesEditing');_0x791d88['plugins']['has']('BookmarkEditing')&&(_0x27a65c['enableCommand']('insertBookmark'),_0x27a65c['enableDefaultAttributesIntegration']('updateBookmark'),_0x27a65c['descriptionFactory']['registerDescriptionCallback'](_0x566461=>{if('insertion'!=_0x566461['type']&&'deletion'!=_0x566461['type']&&'attribute'!=_0x566461['type'])return;const _0x44e673=_0x566461['getContainedElement']();if(null==_0x44e673)return;if(!_0x44e673['is']('element','bookmark'))return;const _0x323d25=_0x44e673['getAttribute']('bookmarkId');if('insertion'==_0x566461['type'])return{'type':'insertion','content':Tt(_0x12b9b5,'*Insert:*\x20%0','\x22'+_0x323d25+'\x22\x20'+Tt(_0x12b9b5,'ELEMENT_BOOKMARK'))};if('deletion'==_0x566461['type'])return{'type':'deletion','content':Tt(_0x12b9b5,'*Remove:*\x20%0','\x22'+_0x323d25+'\x22\x20'+Tt(_0x12b9b5,'ELEMENT_BOOKMARK'))};const {data:_0x3fb01f}=_0x566461;if(!_0x3fb01f||'bookmarkId'!=_0x3fb01f['key'])return;return{'type':'format','content':Tt(_0x12b9b5,'*Set\x20bookmark:*\x20%0','\x22'+_0x3fb01f['newValue']+'\x22')};}));}}class TrackChangesCaseChange extends _0x3000a5{['afterInit'](){const _0x1c1b3d=this['editor'];_0x1c1b3d['plugins']['has']('CaseChange')&&(_0x1c1b3d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1c1b3d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1c1b3d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class TrackChangesCKBox extends _0x3000a5{['afterInit'](){const _0x16cb6b=this['editor'];_0x16cb6b['commands']['get']('ckbox')&&_0x16cb6b['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class TrackChangesCodeBlock extends _0x3000a5{['afterInit'](){const _0x45a933=this['editor'];if(!_0x45a933['plugins']['has']('CodeBlock'))return;const _0xcadb95=_0x45a933['plugins']['get']('TrackChangesEditing'),_0x5a4a42=_0x45a933['locale'],_0x26a941=_0x45a933['config']['get']('codeBlock')['languages'],_0x2aa407=_0x45a933['commands']['get']('codeBlock');_0xcadb95['enableCommand']('indentCodeBlock'),_0xcadb95['enableCommand']('outdentCodeBlock'),_0xcadb95['enableCommand']('codeBlock',(_0x883951,_0x159ee8={})=>{const _0x59ab09=_0x45a933['model'],_0x4ff17b=_0x45a933['model']['document']['selection'],_0x4a37fb=_0x159ee8&&void 0x0!==_0x159ee8['forceValue']?_0x159ee8['forceValue']:!_0x2aa407['value'];let _0x250ed7;_0x159ee8['language']||(_0x159ee8['language']=_0x26a941[0x0]['language']),_0x250ed7=_0x4a37fb?Array['from'](_0x4ff17b['getSelectedBlocks']())['filter'](_0x8d6d9c=>Ct(_0x8d6d9c)||function(_0x59198a,_0x1defbb){if(_0x59198a['is']('rootElement')||_0x1defbb['isLimit'](_0x59198a))return!0x1;return _0x1defbb['checkChild'](_0x59198a['parent'],'codeBlock');}(_0x8d6d9c,_0x59ab09['schema'])):Array['from'](_0x4ff17b['getSelectedBlocks']())['filter'](_0x4db193=>Ct(_0x4db193));const _0x3b84a7=ft(_0x250ed7,_0x59ab09);_0x59ab09['change'](()=>{for(const _0x380947 of _0x3b84a7)_0xcadb95['markBlockFormat'](_0x380947,{'commandName':'codeBlock','commandParams':[{..._0x159ee8,'forceValue':_0x4a37fb}],'formatGroupId':'blockName'});});}),(_0xcadb95['descriptionFactory']['registerElementLabel']('codeBlock',_0x2f0faf=>Tt(_0x5a4a42,'ELEMENT_CODE_BLOCK',_0x2f0faf)),_0xcadb95['descriptionFactory']['registerDescriptionCallback'](_0x53432e=>{if('formatBlock'!=_0x53432e['type'])return;const _0x5bd247=_0x5a4a42['t'],{data:_0x4c5bcd}=_0x53432e;if(!_0x4c5bcd||'codeBlock'!=_0x4c5bcd['commandName'])return;const _0x3ebf94=_0x4c5bcd['commandParams'][0x0]['language'],_0x506fe6=_0x5bd247(_0x26a941['find'](_0x5255e4=>_0x5255e4['language']===_0x3ebf94)['label'])['toLowerCase']();return _0x4c5bcd['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x5a4a42,'*Set\x20format:*\x20%0',Tt(_0x5a4a42,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x506fe6+')')}:{'type':'format','content':Tt(_0x5a4a42,'*Remove\x20format:*\x20%0',Tt(_0x5a4a42,'ELEMENT_CODE_BLOCK',0x1))};}));}}function Ct(_0x218543){return'codeBlock'==_0x218543['name'];}class TrackChangesComments extends _0x3000a5{['afterInit'](){const _0x147492=this['editor'];if(!_0x147492['plugins']['has']('CommentsEditing'))return;_0x147492['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class TrackChangesDeleteCommand extends _0x3000a5{static get['requires'](){return[at];}['init'](){const _0x395b7e=this['editor'],_0x18dfd7=_0x395b7e['plugins']['get']('TrackChangesEditing');_0x18dfd7['enableCommand']('delete');const _0x440c61=_0x395b7e['commands']['get']('deleteForward');_0x18dfd7['enableCommand']('deleteForward',(_0x3ce72e,_0x3090b7={})=>{const _0x34c24e=_0x395b7e['model']['createSelection'](_0x395b7e['model']['document']['selection']);_0x34c24e['isCollapsed']&&_0x395b7e['model']['modifySelection'](_0x34c24e,{'direction':'forward','unit':_0x3090b7['unit']});const _0x53b0ca=_0x34c24e['getFirstRange'](),_0x265970=_0x2192a8['fromRange'](_0x53b0ca);let _0x327692;_0x3ce72e(_0x3090b7),_0x327692='$graveyard'==_0x265970['root']['rootName']?_0x395b7e['model']['createRange'](_0x53b0ca['start']):_0x395b7e['model']['createRange'](_0x265970['start'],_0x265970['end']),_0x265970['detach'](),_0x395b7e['model']['enqueueChange'](_0x440c61['buffer']['batch'],_0x307d46=>{_0x440c61['buffer']['lock'](),_0x307d46['setSelection'](_0x307d46['createRange'](_0x327692['end'])),_0x440c61['buffer']['unlock']();});});}}class TrackChangesList extends _0x3000a5{['afterInit'](){const _0x3a4168=this['editor'];if(!_0x3a4168['plugins']['has']('ListEditing'))return;const _0x4cb455=_0x3a4168['locale'],_0x344316=_0x3a4168['plugins']['get']('TrackChangesEditing'),_0x57a851=_0x3a4168['plugins']['has']('TodoListEditing'),_0x2f7f2b=!!_0x3a4168['config']['get']('list.multiBlock');function _0x47f54a(_0xfb24e7){return{'type':'format','content':''+Tt(_0x4cb455,'*Set\x20format:*\x20%0',_0xfb24e7)};}function _0x26250e(_0x39b111){return{'type':'format','content':''+Tt(_0x4cb455,'*Remove\x20format:*\x20%0',_0x39b111)};}_0x344316['enableDefaultAttributesIntegration']('numberedList'),_0x344316['enableDefaultAttributesIntegration']('bulletedList'),_0x344316['enableDefaultAttributesIntegration']('customNumberedList'),_0x344316['enableDefaultAttributesIntegration']('customBulletedList'),_0x344316['enableDefaultAttributesIntegration']('indentList'),_0x344316['enableDefaultAttributesIntegration']('outdentList'),_0x344316['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x344316['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2f7f2b&&(_0x344316['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x344316['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x57a851&&(_0x344316['enableDefaultAttributesIntegration']('todoList'),_0x344316['enableDefaultAttributesIntegration']('checkTodoList'),_0x344316['descriptionFactory']['registerDescriptionCallback'](_0x411fe1=>{const {data:_0x21c6b3}=_0x411fe1;if(_0x21c6b3&&'todoListChecked'==_0x21c6b3['key'])return{'type':'format','content':_0x21c6b3['newValue']?Tt(_0x4cb455,'*Check\x20item*'):Tt(_0x4cb455,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x284b2f=>{if(_0x284b2f['batch']['isUndo'])return!0x1;let _0x491281=!0x1;const _0x55dfd=_0x344316['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x524925=>'todoListChecked'===_0x344316['_getAttributeKey'](_0x524925));for(const _0x21361b of _0x55dfd){'todo'!=_0x21361b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x344316['_findSuggestions'](_0x21361b['getFirstRange'](),'attribute')['find'](_0x276de1=>'listType'===_0x344316['_getAttributeKey'](_0x276de1['suggestion']))||(_0x284b2f['removeMarker'](_0x21361b['getFirstMarker']()),_0x491281=!0x0));}return _0x491281;})),_0x344316['descriptionFactory']['registerAttributeLabel']('listIndent',Tt(_0x4cb455,'FORMAT_INDENT'));const _0x1d67b4={'type':'format','content':''};_0x344316['descriptionFactory']['registerDescriptionCallback'](_0x4ce443=>{const {data:_0x3bad94}=_0x4ce443;if(!_0x3bad94||'listType'!=_0x3bad94['key'])return;let _0x157c37=_0x4ce443['head'];for(;_0x157c37;){if(_0x157c37['data']&&(('listStyle'==_0x157c37['data']['key']||'listMarkerStyle'==_0x157c37['data']['key'])&&(_0x157c37['data']['newValue']&&'default'!=_0x157c37['data']['newValue']||'default'!=_0x157c37['data']['oldValue']&&!_0x3bad94['newValue'])||!_0x2f7f2b&&_0x157c37['data']['key']==Ft))return _0x1d67b4;_0x157c37=_0x157c37['next'];}if(null==_0x3bad94['newValue'])switch(_0x3bad94['oldValue']){case'bulleted':return _0x26250e(Tt(_0x4cb455,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x26250e(Tt(_0x4cb455,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x26250e(Tt(_0x4cb455,'ELEMENT_TODO_LIST'));}switch(_0x3bad94['newValue']){case'bulleted':return _0x47f54a(Tt(_0x4cb455,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x47f54a(Tt(_0x4cb455,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x47f54a(Tt(_0x4cb455,'ELEMENT_TODO_LIST'));}}),_0x344316['descriptionFactory']['registerDescriptionCallback'](_0x5ca2fc=>{const {data:_0x411983}=_0x5ca2fc;if(_0x411983&&'listIndent'==_0x411983['key'])return null==_0x411983['newValue']||null==_0x411983['oldValue']&&0x0==_0x411983['newValue']?_0x1d67b4:void 0x0;}),_0x344316['descriptionFactory']['registerDescriptionCallback'](_0x3c8592=>{if('attribute'!=_0x3c8592['type'])return;const {data:_0x4c9435}=_0x3c8592;if(!_0x4c9435||'listItemId'!=_0x4c9435['key'])return;const _0x1902d4=kt(_0x3c8592);return'newValue'==_0x1902d4?{'type':'format','content':Tt(_0x4cb455,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1902d4?{'type':'format','content':Tt(_0x4cb455,'*Split:*\x20list\x20item')}:_0x1d67b4;}),_0x3a4168['model']['document']['registerPostFixer'](_0x5d4911=>this['listItemIdFixer'](_0x5d4911)),_0x3a4168['model']['document']['registerPostFixer'](_0x56ed49=>this['noTrackChangesFixer'](_0x56ed49)),_0x3a4168['model']['document']['on']('change:data',(_0x4373bc,_0x1f4cb0)=>{if(_0x1f4cb0['isUndo']||!_0x1f4cb0['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3cc5d8){if(_0x3cc5d8['batch']['isUndo']||!_0x3cc5d8['batch']['isLocal'])return!0x1;let _0x4b006b=!0x1;const _0x3970c9=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x316d2f=>_0x316d2f['data']&&'listItemId'==_0x316d2f['data']['key'])['filter'](_0x37e2f4=>_0x37e2f4['data']['newValue']&&_0x37e2f4['data']['oldValue']);for(const _0x3abb40 of _0x3970c9)kt(_0x3abb40)||(_0x3cc5d8['removeMarker'](_0x3abb40['getFirstMarker']()),_0x4b006b=!0x0);return _0x4b006b;}['noTrackChangesFixer'](_0xf64050){if(_0xf64050['batch']['isUndo']||!_0xf64050['batch']['isLocal'])return!0x1;const _0x381062=this['editor']['model']['document']['differ'],_0x58bfbb=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x58bfbb['trackChangesCommand']['value'])return!0x1;let _0x3381c3=!0x1;const _0x17a47c=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle']),_0x287fb2=_0x381062['getChanges']()['filter'](_0xf333b6=>'attribute'==_0xf333b6['type'])['filter'](_0x541c01=>_0x17a47c['has'](_0x541c01['attributeKey']));if(0x0==_0x287fb2['length'])return _0x3381c3;const _0x1d577e=new Set(_0x381062['getMarkersToAdd']()['filter'](_0x470e7f=>{if(!_0x470e7f['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x1343b7=_0x2522cc(_0x470e7f['name'])['subType']['split']('|')[0x0];return _0x17a47c['has'](_0x1343b7);})['map'](_0x4eba71=>_0x2522cc(_0x4eba71['name'])['id']));for(const _0x57e80a of _0x287fb2){const _0x149685=_0x58bfbb['_findSuggestions'](_0x57e80a['range'],'attribute')['filter'](_0x14c572=>{if(_0x14c572['meta']['isNextTo'])return!0x1;if(_0x1d577e['has'](_0x14c572['suggestion']['id']))return!0x1;const _0x1c4801=_0x58bfbb['_getAttributeKey'](_0x14c572['suggestion']);return _0x17a47c['has'](_0x1c4801);})['map'](_0x3c0be4=>_0x3c0be4['suggestion']);if(_0x149685['length']){for(const _0x5cc908 of _0x149685)_0xf64050['removeMarker'](_0x5cc908['getFirstMarker']());_0x3381c3=!0x0;}}return _0x3381c3;}['assureChains'](){const _0x245621=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e3bbb=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x58b735;const _0x5f0c1c=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x10b198=>{if(_0x10b198['data']['oldRange']||!_0x10b198['data']['newRange'])return null;if(!_0x10b198['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x51e181}=_0x2522cc(_0x10b198['name']);if(!_0x245621['hasSuggestion'](_0x51e181))return null;const _0xd3d4f5=_0x245621['getSuggestion'](_0x51e181);return _0x3e3bbb['includes'](_0xd3d4f5['data']['key']);})['map'](_0x40d759=>{const {id:_0xf27bc6}=_0x2522cc(_0x40d759['name']),_0xbdf7cf=_0x245621['getSuggestion'](_0xf27bc6);return _0x58b735=_0xbdf7cf['attributes']['groupId'],_0xbdf7cf['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5f0c1c['size'])return;const _0x17e262=_0x245621['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1988f2=>'attribute'==_0x1988f2['type']&&_0x1988f2['data']&&_0x3e3bbb['includes'](_0x1988f2['data']['key'])&&_0x1988f2['attributes']['groupId']!=_0x58b735)['map'](_0x4d6068=>({'listItem':_0x4d6068['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4d6068['attributes']['groupId']})),_0x194b32=new Set();for(const {groupId:_0x4e7cf6,listItem:_0x3ea88c}of _0x17e262)_0x5f0c1c['has'](_0x3ea88c)&&_0x194b32['add'](_0x4e7cf6);for(const _0x8a03e6 of _0x245621['getSuggestions']())_0x194b32['has'](_0x8a03e6['attributes']['groupId'])&&_0x8a03e6['setAttribute']('groupId',_0x58b735);}['_supportLegacySuggestions'](){const _0xbe2738=this['editor'],_0x6958ba=_0xbe2738['locale'],_0x10bc32=_0xbe2738['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x10bc32['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3644fa,_0x4d599a){const _0x4a4db5=[];for(let _0x2a449e of _0x3644fa)_0x2a449e['start']['nodeAfter']===_0x2a449e['end']['parent']&&(_0x2a449e=_0xbe2738['model']['createRange'](_0xbe2738['model']['createPositionAt'](_0x2a449e['start']['nodeAfter'],0x0))),_0x4a4db5['push'](_0x2a449e);_0xbe2738['model']['change'](_0x598666=>{const _0xd269f1=_0xbe2738['model']['document']['selection'],_0x2e0501=Array['from'](_0xd269f1['getRanges']())['map'](_0x156b3a=>_0x2192a8['fromRange'](_0x156b3a));_0x598666['setSelection'](_0x4a4db5),_0xbe2738['commands']['get'](_0x4d599a['commandName'])['refresh'](),_0x4d599a['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xbe2738['execute'](_0x4d599a['commandName'],..._0x4d599a['commandParams']),_0x598666['setSelection'](_0x2e0501);for(const _0x2abea3 of _0x2e0501)_0x2abea3['detach']();});}),_0x10bc32['descriptionFactory']['registerElementLabel'](function(_0x581157){const _0x4ae508=!_0xbe2738['model']['schema']['isObject'](_0x581157),_0xfaba81=_0x581157['previousSibling'],_0x5b573d=_0x581157['nextSibling'],_0x14a3a5=_0x581157['getAttribute']('listItemId'),_0x19c080=!_0xfaba81||_0xfaba81['getAttribute']('listItemId')!==_0x14a3a5,_0x51c616=!_0x5b573d||_0x5b573d['getAttribute']('listItemId')!==_0x14a3a5;return _0x4ae508&&Boolean(_0x14a3a5)&&_0x19c080&&_0x51c616;},_0x2324aa=>Tt(_0x6958ba,'ELEMENT_LIST_ITEM',_0x2324aa));}['_registerLegacyDescription'](){const _0xd4adab=this['editor'],_0x585820=_0xd4adab['locale'];function _0x2d4edb(_0x34fb62){const _0xd90472=_0xd4adab['commands']['get']('bulletedList')['value'],_0x15a358=_0xd4adab['commands']['get']('numberedList')['value'];return'numberedList'===_0x34fb62?_0xd90472:_0x15a358;}_0xd4adab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x27bd44){if('formatBlock'!=_0x27bd44['type'])return;const {data:_0x29eee7}=_0x27bd44;if(!_0x29eee7)return;let _0x1c8652,_0x1e0385,_0x52303a,_0x1d6675;switch(_0x29eee7['commandName']){case'bulletedList':_0x52303a=_0x29eee7['commandParams'][0x0]['forceValue'],_0x1d6675=_0x2d4edb(_0x29eee7['commandName']),_0x1c8652=_0x52303a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1d6675&&_0xd4adab['config']['get']('list.multiBlock')||(_0x1c8652='*Change\x20to:*\x20%0'),_0x1e0385={'type':'format','content':Tt(_0x585820,_0x1c8652,Tt(_0x585820,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x52303a=_0x29eee7['commandParams'][0x0]['forceValue'],_0x1d6675=_0x2d4edb(_0x29eee7['commandName']),_0x1c8652=_0x52303a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1d6675&&_0xd4adab['config']['get']('list.multiBlock')||(_0x1c8652='*Change\x20to:*\x20%0'),_0x1e0385={'type':'format','content':Tt(_0x585820,_0x1c8652,Tt(_0x585820,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1c8652='*Indent:*\x20%0',_0x1e0385={'type':'format','content':Tt(_0x585820,_0x1c8652,Tt(_0x585820,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1c8652=function(_0x27f841){const _0x1ae519=_0x27f841['getFirstRange']();let _0x32a190=_0x1ae519['start']['nodeAfter'];for(;_0x32a190&&_0x1ae519['containsItem'](_0x32a190);){if(_0x32a190['getAttribute']('listIndent')>0x0)return!0x1;_0x32a190=_0x32a190['nextSibling'];}return!0x0;}(_0x27bd44)?Tt(_0x585820,'*Format:*\x20remove\x20from\x20%0',Tt(_0x585820,function(_0x322def){return'ELEMENT_'+_0x322def['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x27bd44))):Tt(_0x585820,'*Outdent:*\x20%0',Tt(_0x585820,'ELEMENT_LIST_ITEM')),_0x1e0385={'type':'format','content':_0x1c8652};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x29eee7['multipleBlocks']&&(_0x1c8652='*Merge:*\x20%0',_0x1e0385={'type':'deletion','content':Tt(_0x585820,_0x1c8652,Tt(_0x585820,'ELEMENT_LIST_ITEM'))});}return _0x1e0385;});}}function kt(_0x39fdb7){let _0x254d4f=_0x39fdb7['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x254d4f;){const _0x2a4a82=_0x254d4f['getAttribute']('listItemId');if(!_0x2a4a82)return!0x1;if(_0x2a4a82==_0x39fdb7['data']['newValue'])return'newValue';if(_0x2a4a82==_0x39fdb7['data']['oldValue'])return'oldValue';_0x254d4f=_0x254d4f['previousSibling'];}return!0x1;}class TrackChangesDocumentListProperties extends _0x3000a5{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3fd448=this['editor']['config']['get']('list.properties'),_0x46fb8b=this['editor']['plugins']['get']('TrackChangesEditing');_0x3fd448['styles']&&_0x46fb8b['enableDefaultAttributesIntegration']('listStyle'),_0x3fd448['reversed']&&_0x46fb8b['enableDefaultAttributesIntegration']('listReversed'),_0x3fd448['startIndex']&&_0x46fb8b['enableDefaultAttributesIntegration']('listStart');const _0x11cead={'type':'format','content':''};_0x46fb8b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x57a57d=this['editor']['locale'];_0x46fb8b['descriptionFactory']['registerAttributeLabel']('listReversed',Tt(_0x57a57d,'FORMAT_LIST_REVERSED')),_0x46fb8b['descriptionFactory']['registerDescriptionCallback'](_0xf4b3e9=>{const {data:_0x38b5de}=_0xf4b3e9;if(_0x38b5de&&'listReversed'==_0x38b5de['key'])return null==_0x38b5de['newValue']||0x0==_0x38b5de['newValue']&&null==_0x38b5de['oldValue']?_0x11cead:void 0x0;}),_0x46fb8b['descriptionFactory']['registerAttributeLabel']('listStart',Tt(_0x57a57d,'FORMAT_LIST_START')),_0x46fb8b['descriptionFactory']['registerDescriptionCallback'](_0x2d3875=>{const {data:_0xb07940}=_0x2d3875;if(_0xb07940&&'listStart'==_0xb07940['key'])return null==_0xb07940['newValue']||0x1==_0xb07940['newValue']&&null==_0xb07940['oldValue']?_0x11cead:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x578d2=>{if(_0x578d2['batch']['isUndo'])return!0x1;let _0x535d0c=!0x1;const _0x176f62=_0x46fb8b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x401f60=>{const _0x171f3=_0x46fb8b['_getAttributeKey'](_0x401f60);return'listStart'==_0x171f3||'listReversed'==_0x171f3;});for(const _0x1290fb of _0x176f62){const _0x49a550=_0x1290fb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x49a550||'customNumbered'==_0x49a550)continue;_0x46fb8b['_findSuggestions'](_0x1290fb['getFirstRange'](),'attribute')['find'](_0x2f142d=>'listType'==_0x46fb8b['_getAttributeKey'](_0x2f142d['suggestion']))||(_0x578d2['removeMarker'](_0x1290fb['getFirstMarker']()),_0x535d0c=!0x0);}return _0x535d0c;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x32aad6){const _0x41b7cf=this['editor']['locale'],{data:_0x71d474}=_0x32aad6,_0x5150a1={'type':'format','content':''};if(!_0x71d474||'listStyle'!=_0x71d474['key'])return;if(!_0x71d474['oldValue'])return'default'==_0x71d474['newValue']?_0x5150a1:{'type':'format','content':''+Tt(_0x41b7cf,'*Set\x20format:*\x20%0',Tt(_0x41b7cf,this['_getTranslationKeyForListStyle'](_0x71d474['newValue'])))};if(!_0x71d474['newValue']){if('default'==_0x71d474['oldValue'])return _0x5150a1;let _0x535482=_0x32aad6['head'];for(;_0x535482;){if(_0x535482['data']&&'listType'==_0x535482['data']['key']&&_0x535482['data']['newValue'])return _0x5150a1;_0x535482=_0x535482['next'];}return{'type':'format','content':''+Tt(_0x41b7cf,'*Remove\x20format:*\x20%0',Tt(_0x41b7cf,this['_getTranslationKeyForListStyle'](_0x71d474['oldValue'])))};}if('default'!=_0x71d474['newValue'])return{'type':'format','content':''+Tt(_0x41b7cf,'*Set\x20format:*\x20%0',Tt(_0x41b7cf,this['_getTranslationKeyForListStyle'](_0x71d474['newValue'])))};let _0xc553af=_0x32aad6['head'];for(;_0xc553af;){if(_0xc553af['data']&&'listType'==_0xc553af['data']['key']&&_0xc553af['data']['newValue']&&_0xc553af['data']['oldValue'])return _0x5150a1;_0xc553af=_0xc553af['next'];}return{'type':'format','content':Tt(_0x41b7cf,'*Set\x20format:*\x20%0',Tt(_0x41b7cf,'ELEMENT_'+_0x32aad6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4a4389=this['editor'],_0x1781c1=_0x4a4389['locale'];_0x4a4389['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x580d34=>{if('formatBlock'!=_0x580d34['type'])return;const {data:_0x197536}=_0x580d34;if(!_0x197536)return;let _0x4d794b,_0x57de98;switch(_0x197536['commandName']){case'listStyle':_0x4d794b='*Change\x20to:*\x20%0',_0x57de98={'type':'format','content':Tt(_0x1781c1,_0x4d794b,Tt(_0x1781c1,this['_getTranslationKeyForListStyle'](_0x197536['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4d794b=_0x197536['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x57de98={'type':'format','content':Tt(_0x1781c1,_0x4d794b)};break;case'listStart':_0x4d794b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x57de98={'type':'format','content':Tt(_0x1781c1,_0x4d794b,_0x197536['commandParams'][0x0]['startIndex'])};}return _0x57de98;});}['_getTranslationKeyForListStyle'](_0x59cd4e){return'ELEMENT_'+function(_0x407c44){if(Lt['includes'](_0x407c44))return'bulleted';if(It['includes'](_0x407c44))return'numbered';return null;}(_0x59cd4e)['toUpperCase']()+'_LIST_'+_0x59cd4e['toUpperCase']()['replace'](/-/g,'_');}}const Lt=['disc','circle','square'],It=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class TrackChangesEmoji extends _0x3000a5{['afterInit'](){const _0x559e97=this['editor'];_0x559e97['commands']['get']('emoji')&&_0x559e97['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class TrackChangesEnterCommand extends _0x3000a5{static get['requires'](){return[lt];}['init'](){const _0x474a90=this['editor'],_0x47251c=_0x474a90['plugins']['get']('TrackChangesEditing'),_0x3b10c0=_0x474a90['commands']['get']('enter');_0x47251c['enableCommand']('enter',()=>{_0x474a90['model']['change'](_0x5b5bbe=>{const _0x217e62=_0x474a90['model']['document']['selection'],_0x4bf7fb=_0x217e62['getFirstPosition'](),_0x4debc1=_0x2192a8['fromRange'](_0x217e62['getFirstRange']());if(_0x3b10c0['enterBlock'](_0x5b5bbe)){const _0x28e801=_0x474a90['model']['createPositionAt'](_0x4bf7fb['parent']['nextSibling'],0x0),_0x3a4fdf=_0x5b5bbe['createRange'](_0x4bf7fb,_0x28e801);_0x47251c['markInsertion'](_0x3a4fdf);}else _0x5b5bbe['setSelection'](_0x5b5bbe['createRange'](_0x4debc1['end']));_0x4debc1['detach'](),_0x3b10c0['fire']('afterExecute',{'writer':_0x5b5bbe});});});}}class TrackChangesFindAndReplace extends _0x3000a5{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x79c2af=this['editor']['plugins']['get']('TrackChangesEditing');_0x79c2af['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x79c2af['enableCommand']('findNext'),_0x79c2af['enableCommand']('findPrevious'),_0x79c2af['enableCommand']('replace'),_0x79c2af['enableCommand']('replaceAll');}['handleFindCommand'](_0x1d2568,_0x11d2b0,_0x5a34dc={}){const _0x361968=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1d2568(_0x2a6278=>{let _0x200962=('string'==typeof _0x11d2b0?_0x361968['findByTextCallback'](_0x11d2b0,_0x5a34dc):_0x11d2b0)(_0x2a6278);Array['isArray'](_0x200962)&&(_0x200962={'results':_0x200962,'searchText':'string'==typeof _0x11d2b0?_0x11d2b0:''});const _0x55c3d7=_0x200962['results']['filter'](_0x3ede61=>!0x1===this['_isInDeletionRange'](_0x3ede61,_0x2a6278['item']));return{..._0x200962,'results':_0x55c3d7};},_0x5a34dc);}['_isInDeletionRange'](_0x50f739,_0xdb2905){const _0x38b983=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xdb2905,_0x50f739['start']),this['editor']['model']['createPositionAt'](_0xdb2905,_0x50f739['end']));for(const _0xe78147 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x38b983['getIntersection'](_0xe78147['getRange']()))return!0x0;return!0x1;}}const bt=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class TrackChangesFont extends _0x3000a5{['afterInit'](){const _0x4547db=this['editor']['locale'],_0x4b09d6=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x28eb47,commandName:_0x1b99d2}of bt)this['editor']['plugins']['has'](_0x28eb47)&&_0x4b09d6['enableDefaultAttributesIntegration'](_0x1b99d2);_0x4b09d6['descriptionFactory']['registerAttributeLabel']('fontSize',Tt(_0x4547db,'FORMAT_FONT_SIZE')),_0x4b09d6['descriptionFactory']['registerAttributeLabel']('fontFamily',Tt(_0x4547db,'FORMAT_FONT_FAMILY')),_0x4b09d6['descriptionFactory']['registerAttributeLabel']('fontColor',Tt(_0x4547db,'FORMAT_FONT_COLOR')),_0x4b09d6['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Tt(_0x4547db,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f6488=this['editor'],_0x483234=_0x5f6488['locale'];_0x5f6488['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f7d7d=>{const _0x3f1080=_0x483234['t'];if('formatInline'!=_0x1f7d7d['type'])return;const {data:_0x32340e}=_0x1f7d7d;if(null!=_0x32340e){if('fontSize'==_0x32340e['commandName']){const _0x17088d=_0x32340e['commandParams'][0x0]['value'];if(_0x17088d){const _0x39b98b=_0x3f1080(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xadbb75=>_0xadbb75['model']==_0x17088d)['title'])['toLowerCase']();return{'type':'format','content':Tt(_0x483234,'*Set\x20font\x20size:*\x20%0',_0x39b98b)};}return{'type':'format','content':Tt(_0x483234,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x32340e['commandName']){const _0x5bde89=_0x32340e['commandParams'][0x0]['value'];return _0x5bde89?{'type':'format','content':Tt(_0x483234,'*Set\x20font\x20family:*\x20%0',_0x5bde89)}:{'type':'format','content':Tt(_0x483234,'*Reset\x20font\x20family*')};}if('fontColor'==_0x32340e['commandName']){const _0x356fc5=_0x32340e['commandParams'][0x0]['value'];if(_0x356fc5){const _0x25d767=_0x4b8cfa(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5d5fb3=>_0x5d5fb3['model']==_0x356fc5);let _0x281165=_0x356fc5,_0x2d11e9='';return _0x25d767&&(_0x281165=_0x25d767['label'],_0x2d11e9=_0x3f1080(_0x281165)['toLowerCase']()),{'type':'format','content':Tt(_0x483234,'*Set\x20font\x20color:*\x20%0',_0x2d11e9)['trim'](),'color':{'value':_0x356fc5,'title':_0x2d11e9||_0x281165}};}return{'type':'format','content':Tt(_0x483234,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x32340e['commandName']){const _0x25bfea=_0x32340e['commandParams'][0x0]['value'];if(_0x25bfea){const _0x244e79=_0x4b8cfa(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x13fac8=>_0x13fac8['model']==_0x25bfea);let _0x37a610=_0x25bfea,_0x49b4d9='';return _0x244e79&&(_0x37a610=_0x244e79['label'],_0x49b4d9=_0x3f1080(_0x37a610)['toLowerCase']()),{'type':'format','content':Tt(_0x483234,'*Set\x20font\x20background\x20color:*\x20%0',_0x49b4d9)['trim'](),'color':{'value':_0x25bfea,'title':_0x49b4d9||_0x37a610}};}return{'type':'format','content':Tt(_0x483234,'*Reset\x20font\x20background\x20color*')};}}});}}class TrackChangesFootnotes extends _0x3000a5{['afterInit'](){const {plugins:_0x2fad69}=this['editor'];_0x2fad69['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x2fad69['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x375010,plugins:_0x405e16,commands:_0x33465b}=this['editor'],_0x870b78=_0x405e16['get']('TrackChangesEditing');_0x33465b['get']('footnotesStyle')&&_0x870b78['enableDefaultAttributesIntegration']('footnotesStyle'),_0x33465b['get']('footnotesStart')&&_0x870b78['enableDefaultAttributesIntegration']('footnotesStart'),_0x870b78['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Tt(_0x375010,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x870b78['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Tt(_0x375010,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x2df2a9=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x2d2637,commands:_0x3736a2}=this['editor'];_0x3736a2['get']('insertFootnote')&&_0x2df2a9['enableCommand']('insertFootnote'),_0x2df2a9['descriptionFactory']['registerElementLabel']('footnoteRef',_0x46ab8c=>Tt(_0x2d2637,'ELEMENT_FOOTNOTE_REF',_0x46ab8c)),_0x2df2a9['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x46c697=>Tt(_0x2d2637,'ELEMENT_FOOTNOTE_DEFINITION',_0x46c697)),_0x2df2a9['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x357d32=>Tt(_0x2d2637,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x357d32));}}class TrackChangesFormatPainter extends _0x3000a5{['afterInit'](){const _0x12137f=this['editor'],_0x10aa86=_0x12137f['plugins']['get']('TrackChangesEditing'),_0xfb4e2f=_0x12137f['commands']['get']('copyFormat'),_0x1c25d0=_0x12137f['commands']['get']('pasteFormat');_0xfb4e2f&&_0x1c25d0&&(_0x10aa86['enableDefaultAttributesIntegration']('pasteFormat'),_0x10aa86['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x341229=this['editor'],_0x5ae1bf=_0x341229['locale'];_0x341229['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd44710=>{if('formatBlock'!=_0xd44710['type']&&'formatInline'!=_0xd44710['type'])return;const {data:_0x2acab7}=_0xd44710;if(_0x2acab7&&'pasteFormat'===_0x2acab7['commandName']){const _0x53b6bc=[],_0x479c68=_0x2acab7['commandParams'][0x0];for(const [_0x16ae93,_0x39d150]of Object['entries'](_0x479c68))_0x53b6bc['push'](At(_0x341229,_0x16ae93,_0x39d150));return _0x53b6bc['length']?{'type':'format','content':Tt(_0x5ae1bf,'*Set\x20format\x20to:*\x20%0',_0x53b6bc['join'](',\x20'))}:{'type':'format','content':Tt(_0x5ae1bf,'*Remove\x20all\x20formatting*')};}});}}function At(_0x4bf670,_0x3968d4,_0x520544){const _0x3b60f1=_0x4bf670['locale']['t'],_0x5edf3b=_0x3968d4['split'](/(?=[A-Z])/)['join']('\x20'),_0x230c22=_0x3b60f1(_0x5edf3b['charAt'](0x0)['toUpperCase']()+_0x5edf3b['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x520544)return _0x230c22;if('fontColor'===_0x3968d4||'fontBackgroundColor'===_0x3968d4){const _0x2b9dac=_0x4b8cfa(_0x4bf670['config']['get']('fontColor.colors'))['find'](_0x3361c4=>_0x3361c4['model']==_0x520544);return _0x230c22+'\x20('+(_0x2b9dac?_0x3b60f1(_0x2b9dac['label'])['toLowerCase']():_0x520544)+')';}if('fontSize'===_0x3968d4&&isNaN(parseFloat(_0x520544))){const _0xc360e3=_0x4bf670['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4bf670['config']['get']('fontSize.options'))['find'](_0xc48d99=>_0xc48d99['model']==_0x520544);return _0x230c22+'\x20('+(_0xc360e3?_0x3b60f1(_0xc360e3['title'])['toLowerCase']():_0x520544)+')';}return _0x230c22+'\x20('+_0x520544+')';}class TrackChangesHeading extends _0x3000a5{['_headingOptions'];['afterInit'](){const _0x213887=this['editor'];if(!_0x213887['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x213887['config']['get']('heading.options');const _0x587467=_0x213887['locale'],_0x34735e=_0x213887['plugins']['get']('TrackChangesEditing');_0x34735e['enableDefaultAttributesIntegration']('heading');for(const _0x1e514e of this['_headingOptions'])'paragraph'!=_0x1e514e['model']&&_0x34735e['descriptionFactory']['registerElementLabel'](_0x1e514e['model'],_0x2c3910=>{const _0x3d746c=this['_getHeadingLevel'](_0x1e514e['model']);return null!==_0x3d746c?_0x33e9a1(_0x2c3910,_0x3d746c):_0x56482e(_0x2c3910,_0x1e514e['title']);});function _0x33e9a1(_0x11d8fe,_0x46e904){return Tt(_0x587467,'ELEMENT_HEADING',[_0x11d8fe,_0x46e904]);}function _0x56482e(_0x33a936,_0x489574){return Tt(_0x587467,'ELEMENT_HEADING_CUSTOM',[_0x33a936,_0x489574]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x546e31=this['editor'],_0x33f2c1=_0x546e31['locale'];function _0x4088ba(_0x1fb34c,_0x3c952a){return Tt(_0x33f2c1,'ELEMENT_HEADING_CUSTOM',[_0x1fb34c,_0x3c952a]);}_0x546e31['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b838c=>{if('formatBlock'!=_0x3b838c['type'])return;const {data:_0x13d11c}=_0x3b838c;if(_0x13d11c&&'heading'==_0x13d11c['commandName']){const _0x50ad12=_0x13d11c['commandParams'][0x0]['value'],_0x40d417=this['_getHeadingLevel'](_0x50ad12);if(null!==_0x40d417)return{'type':'format','content':Tt(_0x33f2c1,'*Change\x20to:*\x20%0',(_0x2bb327=0x1,_0x3fd1dd=_0x40d417,Tt(_0x33f2c1,'ELEMENT_HEADING',[_0x2bb327,_0x3fd1dd])))};const _0x40b041=this['_headingOptions']['find'](_0x1bbd0c=>_0x1bbd0c['model']===_0x50ad12)['title'];return{'type':'format','content':Tt(_0x33f2c1,'*Change\x20to:*\x20%0',_0x4088ba(0x1,_0x40b041))};}var _0x2bb327,_0x3fd1dd;});}['_getHeadingLevel'](_0x82ac95){const _0xac649e=_0x82ac95['match'](/^heading(\d+)/);if(_0xac649e)return _0xac649e[0x1];const _0x3f528b=this['_headingOptions']?.['find'](_0x434453=>_0x434453['model']==_0x82ac95);if(_0x3f528b&&_0x3f528b['view']){const _0x1553cf=_0x3f528b['view'],_0x327f76=(_0x1553cf['name']??_0x1553cf)['match'](/^h(\d+)/);if(_0x327f76)return _0x327f76[0x1];}return null;}}class TrackChangesHighlight extends _0x3000a5{['afterInit'](){const _0x159665=this['editor'];if(!_0x159665['plugins']['has']('HighlightEditing'))return;const _0x9f9339=_0x159665['plugins']['get']('TrackChangesEditing'),_0x2bc604=_0x159665['locale'];_0x9f9339['enableDefaultAttributesIntegration']('highlight'),_0x9f9339['descriptionFactory']['registerAttributeLabel']('highlight',Tt(_0x2bc604,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x486195=this['editor'],_0x30bef5=_0x486195['locale'];_0x486195['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x352802=>{if('formatInline'!=_0x352802['type'])return;const {data:_0x5efa73}=_0x352802;if(_0x5efa73&&'highlight'==_0x5efa73['commandName']){const _0x578288=_0x30bef5['t'],_0x53dd78=_0x5efa73['commandParams'][0x0]['value'];if(_0x53dd78){const _0x1f29ab=_0x486195['config']['get']('highlight.options')['find'](_0x2d46b2=>_0x2d46b2['model']==_0x53dd78),_0x5b6867=_0x578288(_0x1f29ab['title'])['toLowerCase']();return{'type':'format','content':Tt(_0x30bef5,'*Set\x20highlight:*\x20%0',_0x5b6867),'color':{'value':_0x1f29ab['color'],'title':_0x1f29ab['title']}};}return{'type':'format','content':Tt(_0x30bef5,'*Remove\x20highlight*',Tt(_0x30bef5,'FORMAT_HIGHLIGHT'))};}});}}class TrackChangesHorizontalLine extends _0x3000a5{['afterInit'](){const _0x50950e=this['editor'];if(!_0x50950e['plugins']['has']('HorizontalLineEditing'))return;_0x50950e['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x7be8d8=_0x50950e['plugins']['get']('TrackChangesEditing'),_0x3ada28=_0x50950e['locale'];_0x7be8d8['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1cced0=>Tt(_0x3ada28,'ELEMENT_HORIZONTAL_LINE',_0x1cced0));}}class TrackChangesHtmlEmbed extends _0x3000a5{['afterInit'](){const _0xaa4f8a=this['editor'];if(!_0xaa4f8a['plugins']['has']('HtmlEmbed'))return;const _0x416a6a=_0xaa4f8a['plugins']['get']('TrackChangesEditing'),_0x512ecd=_0xaa4f8a['locale'];_0x416a6a['descriptionFactory']['registerElementLabel']('rawHtml',_0x5e677e=>Tt(_0x512ecd,'ELEMENT_HTML_EMBED',_0x5e677e)),_0x416a6a['enableDefaultAttributesIntegration']('htmlEmbed'),_0x416a6a['descriptionFactory']['registerDescriptionCallback'](_0x13f80d=>{if('attribute'!=_0x13f80d['type'])return;const {data:_0x2510de}=_0x13f80d;if(_0x2510de&&'value'==_0x2510de['key']&&_0x13f80d['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1f4a94=Tt(_0x512ecd,'ELEMENT_HTML_EMBED');return{'type':'format','content':Tt(_0x512ecd,'*Change\x20%0\x20content*',_0x1f4a94)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe30393=this['editor'],_0x3fdfdf=_0xe30393['locale'];_0xe30393['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49b855=>{if('formatBlock'!=_0x49b855['type'])return;const {data:_0x577aae}=_0x49b855;if(_0x577aae&&'htmlEmbed'==_0x577aae['commandName']){const _0x260904=Tt(_0x3fdfdf,'ELEMENT_HTML_EMBED');return{'type':'format','content':Tt(_0x3fdfdf,'*Change\x20%0\x20content*',_0x260904)};}});}}class TrackChangesImage extends _0x3000a5{['afterInit'](){const _0x186d29=this['editor'];if(!_0x186d29['plugins']['has']('ImageEditing'))return;const _0x121e30=_0x186d29['plugins']['get']('TrackChangesEditing'),_0x2741e7=_0x186d29['plugins']['get']('ImageUtils'),_0x431bdb=_0x186d29['locale'];_0x121e30['enableCommand']('insertImage'),_0x121e30['descriptionFactory']['registerElementLabel']('imageBlock',_0x41bd3f=>Tt(_0x431bdb,'ELEMENT_IMAGE',_0x41bd3f)),_0x121e30['descriptionFactory']['registerElementLabel']('imageInline',_0x126c8b=>Tt(_0x431bdb,'ELEMENT_INLINE_IMAGE',_0x126c8b)),_0x121e30['descriptionFactory']['registerElementLabel']('caption',()=>Tt(_0x431bdb,'ELEMENT_CAPTION')),_0x186d29['plugins']['has']('ImageUploadEditing')&&_0x121e30['enableCommand']('uploadImage'),_0x186d29['plugins']['has']('ImageBlockEditing')&&_0x186d29['plugins']['has']('ImageInlineEditing')&&(_0x121e30['enableCommand']('imageTypeInline',(_0x55d2e7,_0x4f22a4)=>{const _0x33feb0=_0x2741e7['getClosestSelectedImageElement'](_0x186d29['model']['document']['selection']);_0x186d29['model']['change'](()=>{_0x121e30['markBlockFormat'](_0x33feb0,{'commandName':'imageTypeInline','commandParams':[_0x4f22a4]},[],'convertBlockImageToInline');});}),_0x121e30['enableCommand']('imageTypeBlock',(_0x4e5702,_0x4e3f7f)=>{_0x186d29['model']['change'](_0x20650d=>{let _0x324fc6=_0x2741e7['getClosestSelectedImageElement'](_0x186d29['model']['document']['selection']),_0x208793=_0x20650d['createRangeOn'](_0x324fc6);const _0x3a7ba7=tt['fromPosition'](_0x208793['start'],'toPrevious'),_0x444ca9=tt['fromPosition'](_0x208793['end'],'toNext');_0x121e30['forceDefaultExecution'](()=>_0x4e5702(_0x4e3f7f)),_0x324fc6=_0x2741e7['getClosestSelectedImageElement'](_0x186d29['model']['document']['selection']),_0x208793=_0x20650d['createRangeOn'](_0x324fc6);const _0x1ed780=_0x20650d['createRange'](_0x3a7ba7,_0x444ca9);_0x3a7ba7['detach'](),_0x444ca9['detach'](),_0x121e30['markBlockFormat'](_0x324fc6,{'commandName':'imageTypeInline','commandParams':[_0x4e3f7f]},[],'convertInlineImageToBlock'),_0x1ed780['start']['isBefore'](_0x208793['start'])&&_0x121e30['markInsertion'](_0x20650d['createRange'](_0x1ed780['start'],_0x208793['start']),'convertInlineImageToBlock'),_0x208793['end']['isBefore'](_0x1ed780['end'])&&_0x121e30['markInsertion'](_0x20650d['createRange'](_0x208793['end'],_0x1ed780['end']),'convertInlineImageToBlock');});}),_0x121e30['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x121e30['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x121e30['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x121e30['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x121e30['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x121e30['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5f3d0b])=>{const _0x29d6dc=_0x121e30['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2e3cfc=_0x5f3d0b['start'],_0xa40e78=_0x5f3d0b['end'];const _0x1d1c85=_0x186d29['model']['schema']['getNearestSelectionRange'](_0x2e3cfc,'backward'),_0x15185a=_0x186d29['model']['schema']['getNearestSelectionRange'](_0xa40e78,'forward');_0x1d1c85['isCollapsed']&&(_0x2e3cfc=_0x1d1c85['start']),_0x15185a['isCollapsed']&&(_0xa40e78=_0x15185a['end']),_0x29d6dc([_0x186d29['model']['createRange'](_0x2e3cfc,_0xa40e78)]);}),_0x121e30['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x41a668),_0x121e30['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x41a668)),_0x186d29['plugins']['has']('ImageCaptionEditing')&&(_0x121e30['enableCommand']('toggleImageCaption',(_0x173485,_0x2570ff)=>{const _0x148317=_0x186d29['plugins']['get']('ImageCaptionUtils');let _0xeba956=_0x2741e7['getClosestSelectedImageElement'](_0x186d29['model']['document']['selection']),_0x794119=_0x148317['getCaptionFromImageModelElement'](_0xeba956);_0x186d29['model']['change'](()=>{if(_0x794119)return void _0x121e30['markDeletion'](_0x186d29['model']['createRangeOn'](_0x794119));const _0x2bc38a=_0x2741e7['isBlockImage'](_0xeba956);_0x173485(_0x2570ff),_0xeba956=_0x2741e7['getClosestSelectedImageElement'](_0x186d29['model']['document']['selection']),_0x794119=_0x148317['getCaptionFromImageModelElement'](_0xeba956),_0x121e30['markInsertion'](_0x186d29['model']['createRangeOn'](_0x794119),_0x2bc38a?null:'imageCaption');});}),_0x121e30['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x41a668));const _0x38101f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x39f121(_0x464746,_0x53250a){const _0xa4881c=_0x38101f['findIndex'](({type:_0x7b202c,subType:_0x4a2bfe})=>_0x464746['type']==_0x7b202c&&_0x464746['subType']==_0x4a2bfe),_0x3b930f=_0x38101f['findIndex'](({type:_0x4fb310,subType:_0x392847})=>_0x53250a['type']==_0x4fb310&&_0x53250a['subType']==_0x392847);if(_0xa4881c<0x0||_0x3b930f<0x0)return!0x1;const _0x5c4cf0=_0x464746['getFirstRange'](),_0x3ade8b=_0x53250a['getFirstRange']();if((0x0==_0xa4881c||0x1==_0xa4881c)&&0x2==_0x3b930f&&_0x5c4cf0['isIntersecting'](_0x3ade8b))return!0x0;if(0x2==_0xa4881c&&0x3==_0x3b930f){const _0x320e26=_0x121e30['_findSuggestions'](_0x5c4cf0,'insertion')['filter'](({suggestion:_0x48ea6f,meta:_0x352739})=>_0x352739['isOwn']&&'convertInlineImageToBlock'==_0x48ea6f['subType']);if(_0x320e26['length']>0x1&&_0x3ade8b['end']['isEqual'](_0x5c4cf0['start']))return!0x0;if(0x1==_0x320e26['length']&&(_0x5c4cf0['start']['isEqual'](_0x3ade8b['end'])||_0x5c4cf0['end']['isEqual'](_0x3ade8b['start'])))return!0x0;}if(0x3==_0xa4881c&&0x3==_0x3b930f&&_0x5c4cf0['start']['isBefore'](_0x3ade8b['start'])){const _0x567598=_0x5c4cf0['end']['nodeAfter'],_0x364618=_0x3ade8b['start']['nodeBefore'];return _0x2741e7['isBlockImage'](_0x567598)&&_0x567598===_0x364618;}return!0x1;}function _0x41a668(_0x1db4bd,_0x21144a){return _0x39f121(_0x1db4bd,_0x21144a)?[_0x1db4bd,_0x21144a]:_0x39f121(_0x21144a,_0x1db4bd)?[_0x21144a,_0x1db4bd]:null;}_0x186d29['plugins']['has']('ImageResize')&&(_0x121e30['enableDefaultAttributesIntegration']('resizeImage'),_0x121e30['descriptionFactory']['registerAttributeLabel']('resizedWidth',Tt(_0x431bdb,'FORMAT_IMAGE_SIZE'))),_0x186d29['plugins']['has']('ImageTextAlternativeEditing')&&_0x121e30['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x186d29['plugins']['has']('PictureEditing')&&_0x121e30['descriptionFactory']['registerDescriptionCallback'](_0x539389=>{if('attribute'!=_0x539389['type'])return;const {data:_0x163518}=_0x539389;return _0x163518&&'sources'==_0x163518['key']?{'type':'format','content':''}:void 0x0;}),_0x186d29['plugins']['has']('ImageSizeAttributes')&&_0x121e30['descriptionFactory']['registerDescriptionCallback'](_0x1c962d=>{if('attribute'!=_0x1c962d['type'])return;const {data:_0x1a7aab}=_0x1c962d;return!_0x1a7aab||'width'!=_0x1a7aab['key']&&'height'!=_0x1a7aab['key']?void 0x0:{'type':'format','content':''};}),_0x121e30['descriptionFactory']['registerDescriptionCallback'](_0x31ebf5=>{if(!!_0x38101f['find'](({type:_0x2a8b61,subType:_0x11ba16})=>_0x31ebf5['type']==_0x2a8b61&&_0x31ebf5['subType']==_0x11ba16))return _0x31ebf5['previous']?{}:void 0x0;}),_0x121e30['descriptionFactory']['registerDescriptionCallback'](_0x5a7bf2=>{if('insertion'==_0x5a7bf2['type']||'deletion'==_0x5a7bf2['type']){const _0x30da16=_0x5a7bf2['getContainedElement']();if(_0x30da16&&_0x30da16['is']('element','caption'))return{'type':'insertion'==_0x5a7bf2['type']?'addObject':'removeObject','element':_0x30da16,'quantity':0x1};}}),_0x121e30['descriptionFactory']['registerDescriptionCallback'](_0x28daf7=>'formatBlock'==_0x28daf7['type']&&'convertInlineImageToBlock'==_0x28daf7['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x28daf7['type']&&'convertBlockImageToInline'==_0x28daf7['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x121e30['descriptionFactory']['registerDescriptionCallback'](_0x22cb07=>{if('attribute'!=_0x22cb07['type'])return;const {data:_0x569df4}=_0x22cb07;if(!_0x569df4||'alt'!=_0x569df4['key'])return;const _0x4be490=_0x569df4['newValue'];return _0x4be490?{'type':'format','content':Tt(_0x431bdb,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4be490+'\x22')}:{'type':'format','content':Tt(_0x431bdb,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15b6bd=this['editor'],_0x4d9dbf=_0x15b6bd['locale'];_0x15b6bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c901e=>{if('formatBlock'!=_0x1c901e['type']&&'formatInline'!=_0x1c901e['type'])return;const {data:_0x57ee78}=_0x1c901e;if(_0x57ee78){if('imageTextAlternative'==_0x57ee78['commandName']){const _0x5945a3=_0x57ee78['commandParams'][0x0]['newValue'];return _0x5945a3?{'type':'format','content':Tt(_0x4d9dbf,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5945a3+'\x22')}:{'type':'format','content':Tt(_0x4d9dbf,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x57ee78['commandName']){const _0x374814=_0x57ee78['commandParams'][0x0]['width'];return _0x374814?{'type':'format','content':Tt(_0x4d9dbf,'*Set\x20image\x20width:*\x20%0',_0x374814)}:{'type':'format','content':Tt(_0x4d9dbf,'*Reset\x20image\x20width*')};}}});}}class TrackChangesImageReplace extends _0x3000a5{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2be089=this['editor']['locale'],_0x288e65=this['editor']['plugins']['get']('TrackChangesEditing');_0x288e65['enableDefaultAttributesIntegration']('replaceImageSource'),_0x288e65['descriptionFactory']['registerDescriptionCallback'](_0x576d4b=>{if('attribute'!=_0x576d4b['type'])return;const {data:_0x3b4b6b}=_0x576d4b;return _0x3b4b6b&&'src'==_0x3b4b6b['key']?_0x3b4b6b['newValue']&&_0x3b4b6b['oldValue']?{'type':'format','content':Tt(_0x2be089,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2d5863=this['editor']['plugins']['get']('TrackChangesEditing');_0x2d5863['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2d5863['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2d5863['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2d5863['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23b82c=this['editor'],_0x30ca89=_0x23b82c['locale'];_0x23b82c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23cc1=>{if('formatBlock'!=_0x23cc1['type']&&'formatInline'!=_0x23cc1['type'])return;const {data:_0x3c4e29}=_0x23cc1;if(!_0x3c4e29||'replaceImageSource'!=_0x3c4e29['commandName'])return;return{'type':'format','content':Tt(_0x30ca89,'*Format:*\x20replace\x20image\x20URL')};});}}class TrackChangesImageStyle extends _0x3000a5{['afterInit'](){const _0x3daa49=this['editor'];if(!_0x3daa49['plugins']['has']('ImageStyleEditing'))return;const _0x2b007c=_0x3daa49['plugins']['get']('TrackChangesEditing'),_0x3942ab=_0x3daa49['plugins']['get']('ImageUtils'),_0x52a2b3={};_0x2b007c['enableCommand']('imageStyle',(_0x505a7b,_0x2b73b3)=>{const _0x20f174=_0x3daa49['plugins']['get']('Users')['me'],_0x546daf=_0x3daa49['commands']['get']('imageStyle');let _0x14535c=_0x3942ab['getClosestSelectedImageElement'](_0x3daa49['model']['document']['selection']),_0x291284=_0x3daa49['model']['createRangeOn'](_0x14535c),_0x4e8ca1=_0x546daf['value'];if(_0x4e8ca1==_0x2b73b3['value'])return;const _0x13da6c={'commandName':'imageStyle','commandParams':[_0x2b73b3],'formatGroupId':_0x59fa6d()};_0x3daa49['model']['change'](()=>{if(_0x2b007c['getSuggestions']()['filter'](_0x42050e=>_0x42050e['isInContent']&&_0x20f174==_0x42050e['author']&&('formatBlock'==_0x42050e['type']||'formatInline'==_0x42050e['type'])&&('imageStylePreApply'==_0x42050e['subType']||'imageStylePostApply'==_0x42050e['subType'])&&_0x42050e['getFirstRange']()['isEqual'](_0x291284))['forEach'](_0x444e95=>_0x2b007c['discardSuggestion'](_0x444e95['head'])),_0x14535c=_0x3942ab['getClosestSelectedImageElement'](_0x3daa49['model']['document']['selection']),_0x291284=_0x3daa49['model']['createRangeOn'](_0x14535c),_0x546daf['refresh'](),_0x3daa49['commands']['get']('imageTypeInline')['refresh'](),_0x3daa49['commands']['get']('imageTypeBlock')['refresh'](),_0x4e8ca1=_0x546daf['value'],_0x4e8ca1!=_0x2b73b3['value'])return _0x3942ab['isInlineImage'](_0x14535c)&&_0x546daf['shouldConvertImageType'](_0x2b73b3['value'],_0x14535c)?(_0x505a7b({..._0x2b73b3,'setImageSizes':!0x1}),_0x14535c=_0x3942ab['getClosestSelectedImageElement'](_0x3daa49['model']['document']['selection']),void _0x2b007c['markBlockFormat'](_0x14535c,{..._0x13da6c,'commandReversedParams':[{'value':_0x4e8ca1||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3942ab['isBlockImage'](_0x14535c)?_0x2b007c['markBlockFormat'](_0x14535c,_0x13da6c,[],'imageStylePostApply'):_0x2b007c['markInlineFormat'](_0x291284,_0x13da6c,'imageStylePostApply'));});});for(const _0x55343a of _0x3daa49['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x52a2b3[_0x55343a['name']]=_0x55343a['title']['toLowerCase']();_0x2b007c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2b007c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2b007c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2b007c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x57c8df])=>{_0x3942ab['setImageNaturalSizeAttributes'](_0x57c8df['getContainedElement']());}),_0x2b007c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5bd7dd,_0x225ccb)=>{_0x2b007c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5bd7dd,{'commandName':_0x225ccb['commandName'],'commandParams':_0x225ccb['commandReversedParams']});}),_0x2b007c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2df2c0,_0x5dfa21){if(_0x5dfff9(_0x2df2c0,_0x5dfa21))return[_0x2df2c0,_0x5dfa21];if(_0x5dfff9(_0x5dfa21,_0x2df2c0))return[_0x5dfa21,_0x2df2c0];return null;});const _0x108a0a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5dfff9(_0x5ab236,_0x42b443){const _0x12fa56=_0x108a0a['findIndex'](({type:_0x4027ce,subType:_0x2c8b23})=>_0x5ab236['type']==_0x4027ce&&_0x5ab236['subType']==_0x2c8b23),_0x1013f5=_0x108a0a['findIndex'](({type:_0x19365e,subType:_0x212991})=>_0x42b443['type']==_0x19365e&&_0x42b443['subType']==_0x212991);if(_0x12fa56<0x0||_0x1013f5<0x0)return!0x1;const _0x2e6934=_0x5ab236['getFirstRange'](),_0x4eea31=_0x42b443['getFirstRange']();if((0x0==_0x12fa56||0x1==_0x12fa56)&&0x2==_0x1013f5&&_0x2e6934['isIntersecting'](_0x4eea31))return!0x0;if(0x2==_0x12fa56&&0x3==_0x1013f5){const _0xd6738e=_0x2b007c['_findSuggestions'](_0x2e6934,'insertion')['filter'](({suggestion:_0x294452,meta:_0x1aa395})=>_0x1aa395['isOwn']&&'convertInlineImageToBlock'==_0x294452['subType']);if(_0xd6738e['length']>0x1&&_0x4eea31['end']['isEqual'](_0x2e6934['start']))return!0x0;if(0x1==_0xd6738e['length']&&(_0x2e6934['start']['isEqual'](_0x4eea31['end'])||_0x2e6934['end']['isEqual'](_0x4eea31['start'])))return!0x0;}if(0x3==_0x12fa56&&0x3==_0x1013f5&&_0x2e6934['start']['isBefore'](_0x4eea31['start'])){const _0x452f5c=_0x2e6934['end']['nodeAfter'],_0x47b323=_0x4eea31['start']['nodeBefore'];return _0x3942ab['isBlockImage'](_0x452f5c)&&_0x452f5c===_0x47b323;}return!0x1;}_0x3daa49['model']['document']['registerPostFixer'](()=>{let _0x156bb0=!0x1;const _0xaa4a93=Array['from'](_0x3daa49['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x47ce26,data:_0x101256}of _0xaa4a93){const {group:_0x39ac8a,type:_0x5439fc,subType:_0x2a7d2e,id:_0x567a2e}=_0x2522cc(_0x47ce26);if('suggestion'==_0x39ac8a&&_0x2b007c['hasSuggestion'](_0x567a2e)){if('formatBlock'==_0x5439fc&&('imageStylePreApply'==_0x2a7d2e||'imageStylePostApply'==_0x2a7d2e)){const _0x4d10f9=_0x2b007c['getSuggestion'](_0x567a2e);if(_0x101256['newRange']){const _0xc38bcf=_0x4d10f9['getFirstRange']()['getContainedElement']();if(_0x3942ab['isBlockImage'](_0xc38bcf))continue;_0x2b007c['discardSuggestion'](_0x4d10f9),_0x156bb0=!0x0;}}if('insertion'==_0x5439fc&&'imageCaption'==_0x2a7d2e&&!_0x101256['newRange']){const _0x3b0e08=_0x2b007c['getSuggestion'](_0x567a2e);_0x3b0e08['next']&&_0x3b0e08['next']['isInContent']&&(_0x2b007c['discardSuggestion'](_0x3b0e08['next']),_0x156bb0=!0x0);}}}return _0x156bb0;}),this['_registerLegacyDescription'](_0x52a2b3);}['_registerLegacyDescription'](_0x42bdb9){const _0x3fe827=this['editor'],_0x23127c=_0x3fe827['locale'];_0x3fe827['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5868be=>{if('formatBlock'!=_0x5868be['type']&&'formatInline'!=_0x5868be['type'])return;const {data:_0xf24ef9}=_0x5868be;if(!_0xf24ef9||'imageStyle'!=_0xf24ef9['commandName'])return;const _0x5843a7=_0xf24ef9['commandParams'][0x0]['value'];return _0x342c91('side'===_0x5843a7?Tt(_0x23127c,'FORMAT_SIDE_IMAGE'):_0x42bdb9[_0x5843a7]||_0x5843a7);function _0x342c91(_0x288254){return{'type':'format','content':Tt(_0x23127c,'*Format:*\x20%0',_0x288254)};}});}}class TrackChangesImportWord extends _0x3000a5{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x55e213){super(_0x55e213),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x24dce2=this['editor'],_0x4cd5d5=_0x24dce2['commands']['get']('importWord'),_0x29b517=_0x24dce2['commands']['get']('trackChanges');_0x4cd5d5&&(_0x4cd5d5['on']('execute',(_0x365f84,[,_0x2cc086])=>{this['_trackChangesValueDuringImport']=_0x29b517['value'],_0x2cc086['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4cd5d5,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4cd5d5,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x29b517['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x24dce2['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1c02f8,_0x5c143c){const {suggestions:_0x25a859}=_0x5c143c,_0x3dbc18=this['editor']['commands']['get']('trackChanges'),_0x44865b=_0x3dbc18['value'];this['_trackChangesValueDuringImport']!==_0x44865b&&(_0x3dbc18['execute'](),this['_trackChangesExecuted']=!0x0),_0x25a859&&_0x25a859['forEach'](({id:_0x26b5c3,type:_0x49428f,author:_0x20e81a,created_at:_0xc3fbdc})=>{const _0x9786b={'id':_0x26b5c3,'type':_0x49428f,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x20e81a,'createdAt':_0xc3fbdc?new Date(_0xc3fbdc):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x9786b);});}}class TrackChangesIndent extends _0x3000a5{['afterInit'](){const _0xfd82c3=this['editor'],_0xe93b8e=_0xfd82c3['plugins']['get']('TrackChangesEditing');if(_0xfd82c3['plugins']['has']('IndentEditing')&&(_0xe93b8e['enableCommand']('indent'),_0xe93b8e['enableCommand']('outdent')),_0xfd82c3['plugins']['has']('IndentBlock')){for(const _0x9c1469 of['indentBlock','outdentBlock'])_0xe93b8e['enableDefaultAttributesIntegration'](_0x9c1469);if(_0xfd82c3['plugins']['has']('ListEditing')){for(const _0x2c1156 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0xe93b8e['enableDefaultAttributesIntegration'](_0x2c1156);}}const _0x118e8a=_0xfd82c3['locale'];_0xe93b8e['descriptionFactory']['registerAttributeLabel']('blockIndent',Tt(_0x118e8a,'FORMAT_INDENT')),_0xe93b8e['descriptionFactory']['registerAttributeLabel']('blockIndentList',Tt(_0x118e8a,'FORMAT_INDENT')),_0xe93b8e['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Tt(_0x118e8a,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51a04e=this['editor'],_0x4ebf18=_0x51a04e['locale'],_0xd7b822=_0x51a04e['plugins']['get']('TrackChangesEditing');_0xd7b822['descriptionFactory']['registerDescriptionCallback'](_0x18b023=>{if('formatBlock'!=_0x18b023['type'])return;const {data:_0x24c6d0}=_0x18b023;if(!_0x24c6d0)return;if('indentBlock'!=_0x24c6d0['commandName']&&'outdentBlock'!=_0x24c6d0['commandName'])return;const _0x1de794=_0x18b023['getItems']()[0x0],_0x3db146=_0xd7b822['descriptionFactory']['getItemLabel'](_0x1de794);return'indentBlock'==_0x24c6d0['commandName']?{'type':'format','content':Tt(_0x4ebf18,'*Indent:*\x20%0',_0x3db146)}:'outdentBlock'==_0x24c6d0['commandName']?{'type':'format','content':Tt(_0x4ebf18,'*Outdent:*\x20%0',_0x3db146)}:void 0x0;});}}class TrackChangesInputCommand extends _0x3000a5{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class TrackChangesLink extends _0x3000a5{['afterInit'](){const _0x306868=this['editor'];if(!_0x306868['plugins']['has']('LinkEditing'))return;const _0x383610=_0x306868['plugins']['get']('TrackChangesEditing'),_0x4cabf2=_0x306868['commands']['get']('link');_0x383610['enableDefaultAttributesIntegration']('link'),_0x383610['enableDefaultAttributesIntegration']('unlink');for(const _0x58b909 of _0x4cabf2['manualDecorators'])_0x383610['descriptionFactory']['registerAttributeLabel'](_0x58b909['id'],'link\x20('+_0x58b909['label']['toLowerCase']()+')');_0x383610['descriptionFactory']['registerDescriptionCallback'](_0x3e875e=>{if('attribute'!=_0x3e875e['type'])return;const {data:_0x1552ea}=_0x3e875e;if(!_0x1552ea||'linkHref'!=_0x1552ea['key'])return;const _0x117ca4=_0x1552ea['newValue'],_0x2ccfc7=_0x306868['locale'];return{'type':'format','content':null==_0x117ca4?Tt(_0x2ccfc7,'*Remove\x20link*'):Tt(_0x2ccfc7,'*Set\x20link:*\x20%0','\x22'+_0x117ca4+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5227dd=this['editor'],_0x4c53ae=_0x5227dd['locale'];_0x5227dd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xea71fd=>{if('formatInline'!=_0xea71fd['type'])return;const {data:_0x4d3c05}=_0xea71fd;if(_0x4d3c05){if('link'==_0x4d3c05['commandName']){const _0x307b08=_0x4d3c05['commandParams'][0x0];return{'type':'format','content':Tt(_0x4c53ae,'*Set\x20link:*\x20%0','\x22'+_0x307b08+'\x22')};}return'unlink'==_0x4d3c05['commandName']?{'type':'format','content':Tt(_0x4c53ae,'*Remove\x20link*')}:void 0x0;}});}}class TrackChangesLegacyList extends _0x3000a5{['afterInit'](){const _0x41c29c=this['editor'],_0x3e5f17=_0x41c29c['locale'];if(!_0x41c29c['plugins']['has']('LegacyListEditing'))return;const _0x1d683a=_0x41c29c['plugins']['get']('TrackChangesEditing'),_0x3c502b=_0x41c29c['plugins']['has']('LegacyTodoListEditing');function _0x37f9df(_0x1ffe5a){return()=>{const _0x55efa1=_0x41c29c['model']['document']['selection'],_0x45e7b1=_0x41c29c['commands']['get'](_0x1ffe5a);if(_0x45e7b1['value'])return void _0x41c29c['execute']('paragraph',{});const _0x18258f=_0x1ffe5a['slice'](0x0,-0x4),_0x585e10=function(_0x883368,_0x10ce3f,_0x1c4810){let _0x575fa6=Array['from'](_0x883368)['filter'](_0x30549f=>function(_0x437344,_0xd26d8c){return _0xd26d8c['checkChild'](_0x437344['parent'],'listItem')&&!_0xd26d8c['isObject'](_0x437344);}(_0x30549f,_0x1c4810));_0x575fa6=_0x575fa6['filter'](_0x2fe7d9=>!_0x2fe7d9['is']('element','listItem')||_0x2fe7d9['getAttribute']('listType')!=_0x10ce3f);const _0x3f48c0=new Set();for(const _0x5229ec of _0x575fa6)_0x5229ec['is']('element','listItem')?_0x3f48c0['add'](St(_0x5229ec)):_0x3f48c0['add'](_0x5229ec);return Array['from'](_0x3f48c0);}(_0x55efa1['getSelectedBlocks'](),_0x18258f,_0x41c29c['model']['schema']);_0x41c29c['model']['change'](()=>{for(const _0x5336db of _0x585e10)_0x1d683a['markBlockFormat'](_0x5336db,{'commandName':_0x1ffe5a,'commandParams':[{'forceValue':!_0x45e7b1['value']}],'formatGroupId':'blockName'},yt(_0x5336db));});};}function _0x47438c(_0x9af66a){return()=>{const _0x1823d4=function(_0x221333){let _0x3fb432=Array['from'](_0x221333);const _0x9b2a9a=_0x3fb432['findIndex'](_0x485775=>'listItem'!=_0x485775['name']);return _0x9b2a9a>-0x1&&(_0x3fb432=_0x3fb432['slice'](0x0,_0x9b2a9a)),_0x3fb432;}(_0x41c29c['model']['document']['selection']['getSelectedBlocks']()),_0x45ecde=_0x41c29c['model']['createRange'](_0x41c29c['model']['createPositionAt'](_0x1823d4[0x0],'before'),_0x41c29c['model']['createPositionAt'](_0x1823d4[_0x1823d4['length']-0x1],'end'));_0x41c29c['model']['change'](()=>{_0x1d683a['markBlockFormat'](_0x45ecde,{'commandName':_0x9af66a,'commandParams':[],'formatGroupId':'listIndent'},function(_0x156f62){const _0x285172=new Set();for(const _0x30722b of _0x156f62){let _0x5644bc=_0x30722b['nextSibling'];for(;_0x5644bc&&_0x5644bc['getAttribute']('listIndent')>_0x30722b['getAttribute']('listIndent');)_0x285172['add'](_0x5644bc),_0x5644bc=_0x5644bc['nextSibling'];}return Array['from'](_0x285172);}(_0x1823d4));});};}_0x1d683a['enableCommand']('numberedList',_0x37f9df('numberedList')),_0x1d683a['enableCommand']('bulletedList',_0x37f9df('bulletedList')),_0x3c502b&&_0x1d683a['enableCommand']('todoList',_0x37f9df('todoList')),_0x1d683a['enableCommand']('indentList',_0x47438c('indentList')),_0x1d683a['enableCommand']('outdentList',_0x47438c('outdentList')),_0x3c502b&&_0x1d683a['enableCommand']('checkTodoList',()=>{const _0x5755b0=_0x41c29c['commands']['get']('checkTodoList'),_0x3354d9=Array['from'](_0x5755b0['_selectedElements']);_0x3354d9['filter'](_0x2bdf1e=>_0x2bdf1e['getAttribute']('todoListChecked')!=_0x5755b0['value']),_0x41c29c['model']['change'](()=>{for(const _0x1e2bd3 of _0x3354d9)_0x1d683a['markBlockFormat'](_0x1e2bd3,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5755b0['value']}]});});}),_0x1d683a['descriptionFactory']['registerElementLabel']('listItem',_0x2f6ea1=>Tt(_0x3e5f17,'ELEMENT_LIST_ITEM',_0x2f6ea1)),_0x1d683a['descriptionFactory']['registerDescriptionCallback'](_0x150e4b=>{if('formatBlock'!=_0x150e4b['type']&&'formatInline'!=_0x150e4b['type'])return;const {data:_0x4614d5}=_0x150e4b;if(_0x4614d5){if('numberedList'==_0x4614d5['commandName']||'bulletedList'==_0x4614d5['commandName']||'todoList'==_0x4614d5['commandName'])switch(_0x4614d5['commandName']['replace']('List','')){case'bulleted':return _0x28c6e5(Tt(_0x3e5f17,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x28c6e5(Tt(_0x3e5f17,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x28c6e5(Tt(_0x3e5f17,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4614d5['commandName'])return{'type':'format','content':Tt(_0x3e5f17,'*Indent:*\x20%0',Tt(_0x3e5f17,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4614d5['commandName'])return{'type':'format','content':Tt(_0x3e5f17,'*Outdent:*\x20%0',Tt(_0x3e5f17,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4614d5['commandName'])return _0x4614d5['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x3e5f17,'*Check\x20item*')}:{'type':'format','content':Tt(_0x3e5f17,'*Uncheck\x20item*')};}function _0x28c6e5(_0x2c4d13){return{'type':'format','content':Tt(_0x3e5f17,'*Change\x20to:*\x20%0',_0x2c4d13)};}});}}function St(_0x10a52d){const _0x6f740e=_0x10a52d['getAttribute']('listIndent');if(0x0==_0x6f740e)return _0x10a52d;let _0x266108=_0x10a52d;for(;_0x10a52d['previousSibling']&&_0x10a52d['previousSibling']['is']('element','listItem');){const _0xad7870=_0x10a52d['previousSibling']['getAttribute']('listIndent');if(_0xad7870==_0x6f740e)_0x266108=_0x10a52d['previousSibling'];else{if(_0xad7870<_0x6f740e)break;}_0x10a52d=_0x10a52d['previousSibling'];}return _0x266108;}function yt(_0x93d4f9){const _0xb97dfc=[];if(_0x93d4f9['is']('element','listItem')&&_0x93d4f9['getAttribute']('listIndent')>0x0){let _0xb9fd22=_0x93d4f9['nextSibling'];for(;_0xb9fd22&&'listItem'==_0xb9fd22['name']&&_0xb9fd22['getAttribute']('listIndent')==_0x93d4f9['getAttribute']('listIndent');)_0xb97dfc['push'](_0xb9fd22),_0xb9fd22=_0xb9fd22['nextSibling'];}return _0xb97dfc;}class TrackChangesLegacyListProperties extends _0x3000a5{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1a98ce=this['editor']['config']['get']('list.properties'),_0x4021e2=this['editor']['plugins']['get']('TrackChangesEditing');_0x1a98ce['styles']&&_0x4021e2['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1a98ce['reversed']&&_0x4021e2['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1a98ce['startIndex']&&_0x4021e2['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4021e2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xfe8f10,_0xed927d={}){const _0x1ac0c0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x434477=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1ac0c0['markMultiRangeBlockFormat'](_0x434477,{'commandName':'listStyle','commandParams':[{'type':_0xed927d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1e1beb,_0x2c84fe={}){const _0x3cfc40=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b9d4e=this['_getSuggestionBlocks'](_0x46586f=>_0x46586f['is']('element','listItem')&&'numbered'===_0x46586f['getAttribute']('listType'));if(_0x1b9d4e['length']<0x1)return;const _0x4b006a=_0x1b9d4e['map'](_0x185d3c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x185d3c,'before'),this['editor']['model']['createPositionAt'](_0x185d3c,0x0)));this['editor']['model']['change'](()=>{_0x3cfc40['markMultiRangeBlockFormat'](_0x4b006a,{'commandName':'listReversed','commandParams':[{'reversed':_0x2c84fe['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x597efb,_0x904e83={}){const _0x34e251=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2434ce=this['_getSuggestionBlocks'](_0x51f734=>_0x51f734['is']('element','listItem')&&'numbered'===_0x51f734['getAttribute']('listType'));if(_0x2434ce['length']<0x1)return;const _0x35d0df=_0x2434ce['map'](_0x4dcc5d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4dcc5d,'before'),this['editor']['model']['createPositionAt'](_0x4dcc5d,0x0)));this['editor']['model']['change'](()=>{_0x34e251['markMultiRangeBlockFormat'](_0x35d0df,{'commandName':'listStart','commandParams':[{'startIndex':_0x904e83['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3a2752){if('formatBlock'!=_0x3a2752['type']&&'formatInline'!=_0x3a2752['type'])return;const _0x14539e=this['editor']['locale'],{data:_0x33dede}=_0x3a2752;if(!_0x33dede)return;let _0x47ab8a,_0x40b631;switch(_0x33dede['commandName']){case'listStyle':_0x47ab8a='*Change\x20to:*\x20%0',_0x40b631={'type':'format','content':Tt(_0x14539e,_0x47ab8a,Tt(_0x14539e,this['_getTranslationKeyForListStyle'](_0x33dede['commandParams'][0x0]['type'])))};break;case'listReversed':_0x47ab8a=_0x33dede['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x40b631={'type':'format','content':Tt(_0x14539e,_0x47ab8a)};break;case'listStart':_0x47ab8a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x40b631={'type':'format','content':Tt(_0x14539e,_0x47ab8a,_0x33dede['commandParams'][0x0]['startIndex'])};}return _0x40b631;}['_getSuggestionBlocksForListStyle'](){const _0x547076=this['editor']['plugins']['get']('LegacyListUtils');let _0x257813=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x257813[0x0]?.['is']('element','listItem')&&_0x257813['unshift'](..._0x547076['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x257813[_0x257813['length']-0x1]?.['is']('element','listItem')&&_0x257813['push'](..._0x547076['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x257813=[...new Set(_0x257813)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x257813=_0x257813['filter'](_0x42bf22=>_0x42bf22['is']('element','listItem'))),_0x257813;}['_getSuggestionBlocks'](_0x308055){const _0x14254b=this['editor']['plugins']['get']('LegacyListUtils');let _0x3803bd=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x308055)['map'](_0x726160=>{const _0x9ff38a=this['editor']['model']['createPositionAt'](_0x726160,0x0);return[..._0x14254b['getSiblingNodes'](_0x9ff38a,'backward'),..._0x14254b['getSiblingNodes'](_0x9ff38a,'forward')];})['flat']();return _0x3803bd=[...new Set(_0x3803bd)],_0x3803bd;}['_getTranslationKeyForListStyle'](_0xe5da09){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xe5da09)||'default')['toUpperCase']()+'_LIST_'+_0xe5da09['toUpperCase']()['replace'](/-/g,'_');}}class TrackChangesMediaEmbed extends _0x3000a5{['afterInit'](){const _0x497d72=this['editor'];if(!_0x497d72['plugins']['has']('MediaEmbedEditing'))return;const _0x39e86a=_0x497d72['plugins']['get']('TrackChangesEditing'),_0x577b8c=_0x497d72['locale'];_0x39e86a['enableCommand']('mediaEmbed'),_0x39e86a['descriptionFactory']['registerElementLabel']('media',_0x4fbd83=>Tt(_0x577b8c,'ELEMENT_MEDIA',_0x4fbd83));}}class TrackChangesMention extends _0x3000a5{['afterInit'](){const _0x1f2198=this['editor'];_0x1f2198['plugins']['has']('MentionEditing')&&_0x1f2198['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class TrackChangesMergeFields extends _0x3000a5{['afterInit'](){const _0x215661=this['editor'];if(!_0x215661['plugins']['has']('MergeFieldsEditing'))return;const _0x21c873=_0x215661['plugins']['get']('TrackChangesEditing'),_0x38e706=_0x215661['locale'];_0x21c873['enableCommand']('insertMergeField'),_0x21c873['enableCommand']('insertMergeFieldBlock'),_0x21c873['enableCommand']('insertMergeFieldImage'),_0x21c873['descriptionFactory']['registerElementLabel']('mergeField',_0x14538e=>Tt(_0x38e706,'ELEMENT_MERGE_FIELD',_0x14538e)),_0x21c873['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2e9bee=>Tt(_0x38e706,'ELEMENT_MERGE_FIELD',_0x2e9bee)),_0x21c873['descriptionFactory']['registerDescriptionCallback'](_0x59eef7=>{if('insertion'!=_0x59eef7['type']&&'deletion'!=_0x59eef7['type'])return;const _0x2b73af=_0x59eef7['getContainedElement']();if(null==_0x2b73af)return;const _0x31bbe2=_0x215661['plugins']['get']('MergeFieldsEditing');let _0x154add;switch(_0x31bbe2['getMergeFieldType'](_0x2b73af)){case null:return;case'image':{const _0x119328=_0x31bbe2['unwrapAffixes'](_0x2b73af['getAttribute']('src'));_0x154add=_0x31bbe2['getLabel'](_0x119328)||_0x119328;break;}default:{const _0x211c15=_0x2b73af['getAttribute']('id');_0x154add=_0x31bbe2['getLabel'](_0x211c15)||_0x211c15;break;}}return'insertion'==_0x59eef7['type']?{'type':'insertion','content':Tt(_0x38e706,'*Insert:*\x20%0','\x22'+_0x154add+'\x22\x20'+Tt(_0x38e706,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Tt(_0x38e706,'*Remove:*\x20%0','\x22'+_0x154add+'\x22\x20'+Tt(_0x38e706,'ELEMENT_MERGE_FIELD'))};});}}class TrackChangesMultiLevelList extends _0x3000a5{['afterInit'](){const _0x4eb965=this['editor'],_0x3fb630=_0x4eb965['plugins']['get']('TrackChangesEditing');_0x4eb965['plugins']['has']('MultiLevelList')&&(_0x3fb630['enableDefaultAttributesIntegration']('multiLevelList'),_0x3fb630['descriptionFactory']['registerDescriptionCallback'](_0x2b47fd=>this['handleDescriptions'](_0x2b47fd)));}['handleDescriptions'](_0x47c6a9){const _0x45e398=this['editor']['locale'],{data:_0x56b6df}=_0x47c6a9,_0x2098d5={'type':'format','content':''};if(_0x56b6df&&'listMarkerStyle'==_0x56b6df['key']){if(!_0x56b6df['oldValue'])return{'type':'format','content':Tt(_0x45e398,'*Set\x20format:*\x20%0',Tt(_0x45e398,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x56b6df['newValue']+')'};if(!_0x56b6df['newValue']){let _0x48b277=_0x47c6a9['head'];for(;_0x48b277;){if(_0x48b277['data']&&'listType'==_0x48b277['data']['key']&&_0x48b277['data']['newValue'])return _0x2098d5;_0x48b277=_0x48b277['next'];}return{'type':'format','content':Tt(_0x45e398,'*Remove\x20format:*\x20%0',Tt(_0x45e398,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x56b6df['oldValue']+')'};}}}}class TrackChangesPageBreak extends _0x3000a5{['afterInit'](){const _0x9ee972=this['editor'];if(!_0x9ee972['plugins']['has']('PageBreakEditing'))return;_0x9ee972['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xc2cc36=_0x9ee972['plugins']['get']('TrackChangesEditing'),_0xb8c1cd=_0x9ee972['locale'];_0xc2cc36['descriptionFactory']['registerElementLabel']('pageBreak',_0x4f4693=>Tt(_0xb8c1cd,'ELEMENT_PAGE_BREAK',_0x4f4693));}}class TrackChangesParagraph extends _0x3000a5{['afterInit'](){const _0x444308=this['editor'];if(!_0x444308['plugins']['has']('Paragraph'))return;const _0x310ee3=_0x444308['locale'],_0x5cf220=_0x444308['plugins']['get']('TrackChangesEditing');_0x5cf220['descriptionFactory']['registerElementLabel']('paragraph',_0x5d3ef0=>Tt(_0x310ee3,'ELEMENT_PARAGRAPH',_0x5d3ef0)),_0x5cf220['enableDefaultAttributesIntegration']('paragraph'),_0x5cf220['enableCommand']('insertParagraph');const _0x943f2b=_0x5cf220['descriptionFactory'];_0x943f2b['registerDescriptionCallback'](_0x2bb270=>{if('insertion'!==_0x2bb270['type'])return;const {start:_0x27ddc0,end:_0x4974a9}=_0x2bb270['getFirstRange']();if(!_0x27ddc0['isTouching'](_0x4974a9)||!_0x27ddc0['nodeAfter'])return;const _0x2cabdd=_0x444308['model']['schema'],_0x4f965f=_0x27ddc0['nodeAfter'];return _0x2cabdd['isBlock'](_0x4f965f)&&!_0x2cabdd['isLimit'](_0x4f965f)&&_0x2cabdd['checkChild'](_0x4f965f,'$text')?{'type':'insertion','content':Tt(_0x310ee3,'*Insert:*\x20%0',_0x943f2b['getItemLabel'](_0x4f965f,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x142eb3=this['editor'],_0x1fd70b=_0x142eb3['locale'];_0x142eb3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16c730=>{if('formatBlock'!=_0x16c730['type'])return;const {data:_0x1fbffe}=_0x16c730;return _0x1fbffe&&'paragraph'==_0x1fbffe['commandName']?{'type':'format','content':Tt(_0x1fd70b,'*Change\x20to:*\x20%0',Tt(_0x1fd70b,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class TrackChangesReplaceSourceCommand extends _0x3000a5{['afterInit'](){const _0x3f257e=this['editor'];_0x3f257e['commands']['get']('replaceSource')&&_0x3f257e['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class TrackChangesRemoveFormat extends _0x3000a5{['afterInit'](){const _0x258bba=this['editor'];if(!_0x258bba['plugins']['has']('RemoveFormatEditing'))return;_0x258bba['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3af7c1=this['editor'];_0x3af7c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d0a82=>{if('formatBlock'!=_0x3d0a82['type']&&'formatInline'!=_0x3d0a82['type'])return;const {data:_0x1e8318}=_0x3d0a82;return _0x1e8318&&'removeFormat'==_0x1e8318['commandName']?{'type':'format','content':Tt(_0x3af7c1['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class TrackChangesRestrictedEditingMode extends _0x3000a5{['afterInit'](){const _0x5d928d=this['editor'];if(!_0x5d928d['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1cc135=_0x5d928d['plugins']['get']('TrackChangesEditing');_0x1cc135['enableCommand']('goToPreviousRestrictedEditingException'),_0x1cc135['enableCommand']('goToNextRestrictedEditingException');const _0x151ec1=_0x5d928d['plugins']['get']('RestrictedEditingModeEditing');_0x151ec1['enableCommand']('trackChanges'),_0x151ec1['enableCommand']('acceptSuggestion'),_0x151ec1['enableCommand']('discardSuggestion'),_0x151ec1['enableCommand']('acceptAllSuggestions'),_0x151ec1['enableCommand']('discardAllSuggestions'),_0x151ec1['enableCommand']('acceptSelectedSuggestions'),_0x151ec1['enableCommand']('discardSelectedSuggestions');}}class TrackChangesShiftEnterCommand extends _0x3000a5{['afterInit'](){const _0x517755=this['editor'];if(!_0x517755['plugins']['has']('ShiftEnter'))return;const _0x4f0a63=_0x517755['plugins']['get']('TrackChangesEditing');_0x4f0a63['enableCommand']('shiftEnter'),_0x4f0a63['descriptionFactory']['registerElementLabel']('softBreak',_0x46e0c1=>Tt(_0x517755['locale'],'ELEMENT_LINE_BREAK',_0x46e0c1));}}function Rt(_0x1cc7e7,_0x307ede,_0x1eb9ec){const _0x5f503b=[];for(const _0x452b00 of _0x307ede['getItems']())_0x452b00['hasAttribute'](_0x1cc7e7)&&_0x5f503b['push'](_0x1eb9ec['createRangeOn'](_0x452b00));return _0x5f503b;}class TrackChangesStandardEditingMode extends _0x3000a5{['afterInit'](){const _0x5b9749=this['editor'],_0xc1a859=_0x5b9749['plugins']['get']('TrackChangesEditing');_0x5b9749['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0xc1a859['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x5b278e=this['editor'],_0x3dd637=_0x5b278e['model'],_0x2ac8ac=_0x5b278e['locale'],_0x37f759=_0x5b278e['plugins']['get']('TrackChangesEditing'),_0x2f33e6='restrictedEditingException',_0x51c1fe=_0x5b278e['commands']['get'](_0x2f33e6);_0x37f759['enableCommand'](_0x2f33e6,(_0x55524d,_0x5c856c={})=>{const _0x58dcad=_0x3dd637['document']['selection'];if(_0x58dcad['isCollapsed'])return void _0x55524d(_0x5c856c);const _0x1b6057=void 0x0!==_0x5c856c['forceValue']?_0x5c856c['forceValue']:!_0x51c1fe['value'];_0x3dd637['change'](()=>{const _0x2ee769=Array['from'](_0x58dcad['getRanges']());for(const _0x253744 of _0x2ee769){const _0x1cd5b4=_0x1b6057?[_0x253744]:Rt(_0x2f33e6,_0x253744,_0x3dd637);for(const _0xd716a6 of _0x1cd5b4)_0x37f759['markInlineFormat'](_0xd716a6,{'commandName':_0x2f33e6,'commandParams':[{'forceValue':_0x1b6057}]});}});}),_0x37f759['descriptionFactory']['registerDescriptionCallback'](_0xe849aa=>{if('formatBlock'!=_0xe849aa['type']&&'formatInline'!=_0xe849aa['type'])return;const {data:_0x11401c}=_0xe849aa;return _0x11401c&&_0x11401c['commandName']==_0x2f33e6?_0x11401c['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x2ac8ac,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Tt(_0x2ac8ac,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x511587=this['editor'],_0x3e14ba=_0x511587['locale'],_0xfdc499=_0x511587['plugins']['get']('TrackChangesEditing'),_0x57401f='restrictedEditingExceptionBlock',_0x10f26c=this['editor']['commands']['get'](_0x57401f);_0xfdc499['enableCommand'](_0x57401f,(_0x559cf2,_0x2584ff={})=>{const _0xd21e8d=this['editor']['model']['document']['selection'],_0x1902f9=_0x2584ff&&void 0x0!==_0x2584ff['forceValue']?_0x2584ff['forceValue']:!_0x10f26c['value'];let _0x18b303=[];if(_0x1902f9){const _0xf9ffbe=Array['from'](_0xd21e8d['getSelectedBlocks']())['filter'](_0x36eb69=>function(_0x127692){return!!_0x127692['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x36eb69)||function(_0x2e88c2,_0x48980f){const _0x40adf0=_0x48980f['createContext'](_0x2e88c2['parent']);if(!_0x48980f['checkChild'](_0x40adf0,'restrictedEditingException'))return!0x1;if(!_0x48980f['checkChild'](_0x40adf0['push']('restrictedEditingException'),_0x2e88c2))return!0x1;return!0x0;}(_0x36eb69,this['editor']['model']['schema']));_0x18b303=ft(_0xf9ffbe,_0x511587['model']);}else{const _0x2a41bc=Array['from'](_0xd21e8d['getSelectedBlocks']())['map'](_0x229ced=>function(_0x41889f){let _0x21dbf2=_0x41889f;for(;_0x21dbf2['parent'];){if('restrictedEditingException'==_0x21dbf2['parent']['name'])return _0x21dbf2;_0x21dbf2=_0x21dbf2['parent'];}return null;}(_0x229ced))['filter'](_0x244bfc=>!!_0x244bfc);_0x18b303=ft(_0x2a41bc,_0x511587['model']);}_0x511587['model']['change'](()=>{for(const _0x5106ae of _0x18b303)_0xfdc499['markBlockFormat'](_0x5106ae,{'commandName':_0x57401f,'commandParams':[{'forceValue':_0x1902f9}]});});}),_0xfdc499['descriptionFactory']['registerDescriptionCallback'](_0x2ce367=>{const {data:_0xfc445}=_0x2ce367;if(_0xfc445&&_0xfc445['commandName']==_0x57401f)return _0xfc445['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x3e14ba,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Tt(_0x3e14ba,'FORMAT_RESTRICTED_DISABLED')};});}}class TrackChangesStylesDropdown extends _0x3000a5{['afterInit'](){const _0x2613b8=this['editor'];if(!_0x2613b8['plugins']['has']('Style')||!_0x2613b8['plugins']['has']('DataSchema'))return;const _0x4cf3c8=_0x2613b8['plugins']['get']('TrackChangesEditing'),_0x2e3efb=_0x2613b8['locale'],_0xe53009=_0x2613b8['config']['get']('style')||{},_0x2ba24b=_0x2613b8['plugins']['get']('GeneralHtmlSupport'),_0x4653fa=_0x2613b8['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2613b8['plugins']['get']('DataSchema'),_0xe53009['definitions']);_0x4cf3c8['enableDefaultAttributesIntegration']('style');const _0x9cd26=new Set();for(const _0x493c24 of _0x4653fa['block']){const _0xbf35fb=_0x2ba24b['getGhsAttributeNameForElement'](_0x493c24['element']);_0x9cd26['add'](_0xbf35fb);}const _0x4ccbf3=new Set();for(const _0x568f7c of _0x4653fa['inline']){const _0x3a7cda=_0x2ba24b['getGhsAttributeNameForElement'](_0x568f7c['element']);_0x4ccbf3['add'](_0x3a7cda);for(const _0x114761 of _0x568f7c['ghsAttributes'])_0x4ccbf3['add'](_0x114761);}for(const _0x501dba of _0x9cd26)_0x4cf3c8['descriptionFactory']['registerAttributeLabel'](_0x501dba,Tt(_0x2e3efb,'FORMAT_STYLE'));for(const _0x2804f2 of _0x4ccbf3)_0x4cf3c8['descriptionFactory']['registerAttributeLabel'](_0x2804f2,Tt(_0x2e3efb,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24fd43=this['editor'],_0x4c5d82=_0x24fd43['locale'];_0x24fd43['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53450f=>{if('formatBlock'!=_0x53450f['type']&&'formatInline'!=_0x53450f['type'])return;const {data:_0x45ce7d}=_0x53450f;return _0x45ce7d&&'style'===_0x45ce7d['commandName']?_0x45ce7d['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x4c5d82,'*Set\x20format:*\x20%0',_0x45ce7d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Tt(_0x4c5d82,'*Remove\x20format:*\x20%0',_0x45ce7d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class TrackChangesTable extends _0x3000a5{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3114af){super(_0x3114af),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x37aa5b=this['editor'],_0x2413af=_0x37aa5b['model']['document']['selection'];if(!_0x37aa5b['plugins']['has']('TableEditing'))return;const _0x3a6532=_0x37aa5b['locale'],_0x4bfc04=_0x37aa5b['plugins']['get']('TrackChangesEditing'),_0x5abea7=_0x37aa5b['plugins']['get']('TableUtils');_0x4bfc04['descriptionFactory']['registerElementLabel']('table',_0x58c671=>Tt(_0x3a6532,'ELEMENT_TABLE',_0x58c671)),this['_setupColumnsRowsFixing'](),_0x4bfc04['enableCommand']('insertTable'),_0x4bfc04['enableCommand']('selectTableRow'),_0x4bfc04['enableCommand']('selectTableColumn');for(const _0x52fe0a of['insertTableRowAbove','insertTableRowBelow']){const _0xba4d82=_0x37aa5b['commands']['get'](_0x52fe0a);_0x4bfc04['enableCommand'](_0x52fe0a,_0x17dcf5=>{_0x37aa5b['model']['change'](_0x155e64=>{_0x17dcf5();const _0x90fe2e='above'===_0xba4d82['order'],_0x313fa1=_0x5abea7['getSelectionAffectedTableCells'](_0x2413af),_0xb6e077=_0x5abea7['getRowIndexes'](_0x313fa1),_0x1c1860=_0x90fe2e?_0xb6e077['first']-0x1:_0xb6e077['last']+0x1,_0x11299f=_0x313fa1[0x0]['findAncestor']('table'),_0x51df97=_0x5abea7['createTableWalker'](_0x11299f,{'startRow':_0x1c1860,'endRow':_0x1c1860}),_0x1c024b=Array['from'](_0x51df97)['map'](_0x4cd165=>_0x155e64['createRangeOn'](_0x4cd165['cell']));_0x4bfc04['markMultiRangeInsertion'](_0x1c024b,'tableRow');});});}for(const _0xd3b1be of['insertTableColumnLeft','insertTableColumnRight']){const _0x2c6250=_0x37aa5b['commands']['get'](_0xd3b1be);_0x4bfc04['enableCommand'](_0xd3b1be,_0x118170=>{_0x37aa5b['model']['change'](_0xd4981=>{_0x118170();const _0xbfc3b6='left'===_0x2c6250['order'],_0x1b6da6=_0x5abea7['getSelectionAffectedTableCells'](_0x2413af),_0x33fb97=_0x5abea7['getColumnIndexes'](_0x1b6da6),_0x3deb3b=_0xbfc3b6?_0x33fb97['first']-0x1:_0x33fb97['last']+0x1,_0x174d2e=_0x1b6da6[0x0]['findAncestor']('table'),_0x32c4c7=_0x5abea7['createTableWalker'](_0x174d2e,{'startRow':0x0,'column':_0x3deb3b,'includeAllSlots':!0x1}),_0xa71f51=Array['from'](_0x32c4c7)['map'](_0x500f95=>_0xd4981['createRangeOn'](_0x500f95['cell']));_0x4bfc04['markMultiRangeInsertion'](_0xa71f51,'tableColumn');});});}for(const _0x1202b9 of['removeTableRow','removeTableColumn']){const _0x51820e=_0x1202b9['substr'](0xb),_0x5df66d=_0x51820e['toLowerCase'](),_0x4729f2=_0x5df66d['substr'](0x0,0x3)+'span',_0x563347='table'+_0x51820e,_0x487650='min'+_0x51820e,_0x3b7cae='max'+_0x51820e;_0x4bfc04['enableCommand'](_0x1202b9,()=>{_0x37aa5b['model']['change'](_0x4c7edf=>{const _0x57be59=_0x5abea7['getSelectionAffectedTableCells'](_0x2413af),_0x52ef91=_0x57be59[0x0]['findAncestor']('table');let _0x416ad0;if('removeTableRow'==_0x1202b9){const _0xf129ca=_0x5abea7['getRowIndexes'](_0x57be59);_0x416ad0={'startRow':_0xf129ca['first'],'endRow':_0xf129ca['last'],'includeAllSlots':!0x0};}else{const _0x11c506=_0x5abea7['getColumnIndexes'](_0x57be59);_0x416ad0={'startColumn':_0x11c506['first'],'endColumn':_0x11c506['last'],'includeAllSlots':!0x0};}const _0x4bb20f=_0x5abea7['createTableWalker'](_0x52ef91,_0x416ad0),_0x38e3f5=Array['from'](_0x4bb20f)['map'](({cell:_0x56642c})=>_0x56642c),_0x513744=Nt(_0x38e3f5['filter'](_0x2fa071=>_0x2fa071['hasAttribute'](_0x4729f2))),_0x5e0992=Nt(_0x38e3f5['filter'](_0x82b118=>!_0x82b118['hasAttribute'](_0x4729f2)))['map'](_0x26f9c2=>_0x4c7edf['createRangeOn'](_0x26f9c2)),_0x2caf7f=_0x4bfc04['markMultiRangeDeletion'](_0x5e0992,_0x563347);if(_0x2caf7f&&('tableRow'==_0x2caf7f['subType']||'tableColumn'==_0x2caf7f['subType'])){const _0x391c87=this['_getSuggestionCoords'](_0x2caf7f);for(const _0x287df8 of _0x513744){const _0x3dbe90=_0x4c7edf['createRangeOn'](_0x287df8),_0x563b63=_0x5abea7['getCellLocation'](_0x287df8),_0x3a1e39=_0x287df8['getAttribute'](_0x4729f2)-0x1,_0x5e22d9=_0x391c87[_0x487650],_0xfb4165=_0x391c87[_0x3b7cae];_0x5e22d9<=_0x563b63[_0x5df66d]&&_0x563b63[_0x5df66d]+_0x3a1e39<=_0xfb4165&&_0x2caf7f['addRange'](_0x3dbe90);}}});});}function _0x2039b2(_0x459ff8){const _0x5912d3=Array['from'](_0x2413af['getRanges']())['map'](_0x5c1174=>_0x2192a8['fromRange'](_0x5c1174));_0x37aa5b['model']['change'](_0x1d162e=>{const _0x3e7833=_0x1d162e['batch'];_0x459ff8=_0x459ff8['filter'](_0x33dcfa=>'$graveyard'!=_0x33dcfa['root']['rootName']),_0x1d162e['setSelection'](_0x459ff8),_0x37aa5b['commands']['get']('removeTableRow')['refresh'](),_0x37aa5b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x37aa5b['model']['enqueueChange'](()=>{_0x37aa5b['model']['enqueueChange'](_0x3e7833,_0x3977a3=>{const _0x4e6a86=_0x5912d3['filter'](_0x223fa2=>'$graveyard'!=_0x223fa2['root']['rootName']);_0x4e6a86['length']>0x0&&_0x3977a3['setSelection'](_0x4e6a86);for(const _0x362fb4 of _0x5912d3)_0x362fb4['detach']();});});});}function _0x1d5904(_0x344919){_0x37aa5b['model']['change'](_0x2f23d4=>{const _0x1308db=Array['from'](_0x2413af['getRanges']())['map'](_0x527f0f=>_0x2192a8['fromRange'](_0x527f0f)),_0x4f99bc=[];for(const _0x59fb4b of _0x344919)for(const _0x4e5ed9 of _0x59fb4b['getItems']({'shallow':!0x0}))_0x4f99bc['push'](_0x4e5ed9);for(const _0x382cb0 of _0x4f99bc)'$graveyard'!=_0x382cb0['root']['rootName']&&(_0x2f23d4['setSelection'](_0x2f23d4['createPositionAt'](_0x382cb0,0x0)),_0x37aa5b['commands']['get']('removeTableColumn')['refresh'](),_0x37aa5b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x21bec2=_0x1308db['filter'](_0x249666=>'$graveyard'!=_0x249666['root']['rootName']);_0x21bec2['length']>0x0&&_0x2f23d4['setSelection'](_0x21bec2);for(const _0xdde499 of _0x1308db)_0xdde499['detach']();});}function _0x1e2874(_0x114bda,_0x111e22){return _0x111e22['every'](_0xaa8786=>_0x114bda['some'](_0x5b9af5=>_0x5b9af5['end']['isEqual'](_0xaa8786['start'])||_0xaa8786['end']['isEqual'](_0x5b9af5['start'])));}function _0x59a481(_0x4a95bb,_0x47d6e8){return!_0x4a95bb['some'](_0x2bba19=>_0x47d6e8['some'](_0x1b8dc8=>_0x2bba19['isIntersecting'](_0x1b8dc8)))&&_0x4a95bb['some'](_0x2eecb5=>_0x47d6e8['some'](_0x3bef99=>_0x2eecb5['end']['isTouching'](_0x3bef99['start'])));}_0x4bfc04['descriptionFactory']['registerDescriptionCallback'](_0x1549fc=>{if('insertion'!=_0x1549fc['type']&&'deletion'!=_0x1549fc['type'])return;const _0x446c29=_0x1549fc['getContainedElement']();if(null!=_0x446c29&&_0x446c29['is']('element','table')){if('insertion'==_0x1549fc['type']){const _0x1fc55d=_0x1549fc['getItems']()['filter'](_0x16b32f=>_0x16b32f['is']('$textProxy'))['map'](_0x5963c0=>_0x5963c0['data']);if(_0x1fc55d['length'])return{'type':'insertion','content':Tt(_0x3a6532,'*Insert:*\x20%0',Tt(_0x3a6532,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1fc55d['join']('\x20')+'\x22'))};}if('deletion'==_0x1549fc['type']){const _0x3a79e8=_0x1549fc['getItems']()['filter'](_0xbc5472=>_0xbc5472['is']('$textProxy'))['map'](_0x5a707d=>_0x5a707d['data']);if(_0x3a79e8['length'])return{'type':'deletion','content':Tt(_0x3a6532,'*Remove:*\x20%0',Tt(_0x3a6532,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3a79e8['join']('\x20')+'\x22'))};}}}),_0x4bfc04['descriptionFactory']['registerDescriptionCallback'](_0x740ca5=>{if('tableRow'==_0x740ca5['subType']){const _0x2b11ca=_0x740ca5['getItems']()['filter'](_0x528c68=>_0x528c68['is']('$textProxy'))['map'](_0x49b6c7=>_0x49b6c7['data']),_0x27569e=this['_getSuggestionCoords'](_0x740ca5),_0x1be2ad=_0x27569e['maxRow']-_0x27569e['minRow']+0x1;if('insertion'==_0x740ca5['type'])return _0x2b11ca['length']?{'type':'insertion','content':Tt(_0x3a6532,'*Insert:*\x20%0',Tt(_0x3a6532,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1be2ad,'\x22'+_0x2b11ca['join']('\x20')+'\x22']))}:{'type':'insertion','content':Tt(_0x3a6532,'*Insert:*\x20%0',Tt(_0x3a6532,'ELEMENT_TABLE_ROW',_0x1be2ad))};if('deletion'==_0x740ca5['type'])return _0x2b11ca['length']?{'type':'deletion','content':Tt(_0x3a6532,'*Remove:*\x20%0',Tt(_0x3a6532,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1be2ad,'\x22'+_0x2b11ca['join']('\x20')+'\x22']))}:{'type':'deletion','content':Tt(_0x3a6532,'*Remove:*\x20%0',Tt(_0x3a6532,'ELEMENT_TABLE_ROW',_0x1be2ad))};}if('tableColumn'==_0x740ca5['subType']){const _0x52a8c9=_0x740ca5['getItems']()['filter'](_0x4bef2a=>_0x4bef2a['is']('$textProxy'))['map'](_0x47737a=>_0x47737a['data']),_0x1f970f=this['_getSuggestionCoords'](_0x740ca5),_0x3150d5=_0x1f970f['maxColumn']-_0x1f970f['minColumn']+0x1;if('insertion'==_0x740ca5['type'])return _0x52a8c9['length']?{'type':'insertion','content':Tt(_0x3a6532,'*Insert:*\x20%0',Tt(_0x3a6532,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3150d5,'\x22'+_0x52a8c9['join']('\x20')+'\x22']))}:{'type':'insertion','content':Tt(_0x3a6532,'*Insert:*\x20%0',Tt(_0x3a6532,'ELEMENT_TABLE_COLUMN',_0x3150d5))};if('deletion'==_0x740ca5['type'])return _0x52a8c9['length']?{'type':'deletion','content':Tt(_0x3a6532,'*Remove:*\x20%0',Tt(_0x3a6532,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3150d5,'\x22'+_0x52a8c9['join']('\x20')+'\x22']))}:{'type':'deletion','content':Tt(_0x3a6532,'*Remove:*\x20%0',Tt(_0x3a6532,'ELEMENT_TABLE_COLUMN',_0x3150d5))};}}),_0x4bfc04['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2039b2),_0x4bfc04['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2039b2),_0x4bfc04['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1d5904),_0x4bfc04['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1d5904),_0x4bfc04['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1e2874),_0x4bfc04['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1e2874),_0x4bfc04['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x59a481),_0x4bfc04['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x59a481);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4d1a9c=this['editor'],_0x379af0=_0x4d1a9c['model']['document']['selection'];return(_0x19e3e4,_0x53a547)=>{_0x4d1a9c['model']['change'](_0x53f385=>{const {commandName:_0x270332,commandParams:_0x5753a3}=_0x53a547;let _0x3b193d=_0x19e3e4[0x0]['end']['nodeBefore'];_0x5753a3&&_0x5753a3[0x0]&&!0x1===_0x5753a3[0x0]['forceValue']&&(_0x3b193d=_0x19e3e4[0x0]['start']['nodeAfter']);const _0x2344b1=_0x53f385['createRangeIn'](_0x3b193d);if('$graveyard'==_0x2344b1['root']['rootName'])return;const _0x40271b=Array['from'](_0x379af0['getRanges']())['map'](_0x2cef3a=>_0x2192a8['fromRange'](_0x2cef3a));_0x53f385['setSelection'](_0x2344b1),_0x4d1a9c['commands']['get'](_0x270332)['refresh'](),_0x5753a3['push']({'forceDefaultExecution':!0x0}),_0x4d1a9c['execute'](_0x270332,..._0x5753a3);const _0x243974=_0x40271b['filter'](_0x24b85f=>'$graveyard'!=_0x24b85f['root']['rootName']);_0x243974['length']>0x0&&_0x53f385['setSelection'](_0x243974);for(const _0x239763 of _0x40271b)_0x239763['detach']();});};}['_getCoordsForCells'](_0x5921a7){const _0xbb50f8=this['editor']['plugins']['get']('TableUtils');let _0x44dcd1=Number['MAX_SAFE_INTEGER'],_0xbfa339=Number['MIN_SAFE_INTEGER'],_0x5ae1e2=Number['MAX_SAFE_INTEGER'],_0x56ed31=Number['MIN_SAFE_INTEGER'];for(const _0x4c8b9a of _0x5921a7){if('$graveyard'==_0x4c8b9a['root']['rootName'])continue;const {row:_0x2dacec,column:_0x3b24fd}=_0xbb50f8['getCellLocation'](_0x4c8b9a),_0x3d312a=_0x4c8b9a['hasAttribute']('rowspan')?_0x4c8b9a['getAttribute']('rowspan')-0x1:0x0,_0x4bfde9=_0x4c8b9a['hasAttribute']('colspan')?_0x4c8b9a['getAttribute']('colspan')-0x1:0x0;_0x44dcd1=_0x2dacec<_0x44dcd1?_0x2dacec:_0x44dcd1,_0xbfa339=_0x2dacec+_0x3d312a>_0xbfa339?_0x2dacec+_0x3d312a:_0xbfa339,_0x5ae1e2=_0x3b24fd<_0x5ae1e2?_0x3b24fd:_0x5ae1e2,_0x56ed31=_0x3b24fd+_0x4bfde9>_0x56ed31?_0x3b24fd+_0x4bfde9:_0x56ed31;}return{'minRow':_0x44dcd1,'maxRow':_0xbfa339,'minColumn':_0x5ae1e2,'maxColumn':_0x56ed31};}['_setupColumnsRowsFixing'](){const _0x9d4fae=this['editor'],_0x1c7b73=_0x9d4fae['plugins']['get']('TrackChangesEditing'),_0x3302a0=_0x9d4fae['plugins']['get']('TableUtils');_0x9d4fae['model']['document']['on']('change:data',()=>{const _0x3129a7=Array['from'](_0x9d4fae['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5e2c0a,data:_0x39ec92}of _0x3129a7){const {group:_0x468ec3,id:_0x55ce67,subType:_0x11dec1}=_0x2522cc(_0x5e2c0a);if('suggestion'!=_0x468ec3)continue;if(null!=_0x39ec92['oldRange'])continue;const _0x24f4d1=_0x1c7b73['getSuggestion'](_0x55ce67);this['_tablePostFixingSubtypes']['includes'](_0x11dec1)&&this['_tableSuggestions']['add'](_0x24f4d1);}},{'priority':'low'});const _0x55c8ce=(_0x4a2091,_0x57f8ea)=>{let _0x18b91d=!0x1;const _0x5ccec6=_0x57f8ea['createRangeOn'](_0x4a2091),_0x5809f9=_0x4a2091['findAncestor']('table'),_0x321bd3=_0x3302a0['getCellLocation'](_0x4a2091);for(const _0x56a46b of this['_tableSuggestions']){const _0x4e4994=_0x56a46b['subType'],_0x582ea5=_0x4e4994['startsWith']('tablePaste'),_0x16a155=_0x4e4994['substr'](_0x582ea5?0xa:0x5),_0x3de5ee=_0x16a155['toLowerCase'](),_0x715b3d=_0x3de5ee['substr'](0x0,0x3)+'span',_0x39c457='min'+_0x16a155,_0x159aa7='max'+_0x16a155;if(!_0x56a46b['isInContent'])continue;if(_0x5809f9!=_0x56a46b['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x56a46b['isIntersectingWithRange'](_0x5ccec6))continue;const _0x2e7817=_0x4a2091['hasAttribute'](_0x715b3d)?_0x4a2091['getAttribute'](_0x715b3d)-0x1:0x0,_0x3ea331=this['_getSuggestionCoords'](_0x56a46b),_0x4a56cc=_0x3ea331[_0x39c457],_0x4bfe64=_0x3ea331[_0x159aa7];_0x4a56cc<=_0x321bd3[_0x3de5ee]&&_0x321bd3[_0x3de5ee]+_0x2e7817<=_0x4bfe64&&(_0x56a46b['addRange'](_0x5ccec6),_0x18b91d=!0x0);}return _0x18b91d;};_0x9d4fae['model']['document']['registerPostFixer'](_0xfe6bba=>{let _0x37b019=!0x1;for(const _0x295499 of _0x9d4fae['model']['document']['differ']['getChanges']())if('insert'==_0x295499['type']){if('tableRow'==_0x295499['name']){for(const _0x4d9111 of _0x295499['position']['nodeAfter']['getChildren']())_0x37b019=_0x37b019||_0x55c8ce(_0x4d9111,_0xfe6bba);}else'tableCell'==_0x295499['name']&&(_0x37b019=_0x37b019||_0x55c8ce(_0x295499['position']['nodeAfter'],_0xfe6bba));}return _0x37b019;});}['_getSuggestionCoords'](_0x4b5afe){return this['_getCoordsForCells'](_0x4b5afe['getRanges']()['map'](_0x9c2234=>_0x9c2234['start']['nodeAfter']));}}function Nt(_0x4930fd){return Array['from'](new Set(_0x4930fd)['values']());}class TrackChangesTableMergeSplit extends _0x3000a5{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x1f3d8f=this['editor'],_0x507994=_0x1f3d8f['model']['document']['selection'],_0xf97f82=_0x1f3d8f['locale'];if(!_0x1f3d8f['plugins']['has']('TableEditing'))return;const _0x109f74=_0x1f3d8f['plugins']['get']('TrackChangesEditing'),_0x322241=_0x1f3d8f['plugins']['get']('TableUtils'),_0x34557d=_0x1f3d8f['plugins']['get'](TrackChangesTable);_0x34557d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x109f74['enableCommand']('mergeTableCells',()=>{const _0x4513ca=_0x322241['getSelectionAffectedTableCells'](_0x1f3d8f['model']['document']['selection']);_0x1f3d8f['model']['change'](()=>{_0x109f74['markMultiRangeBlockFormat'](_0x4513ca,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1f3d8f['commands']['get']('mergeTableCells')['on']('execute',(_0x5490a0,_0x1a7726)=>{_0x1f3d8f['commands']['get']('trackChanges')['value']&&(_0x1a7726['length']>0x0&&_0x1a7726[_0x1a7726['length']-0x1]&&_0x1a7726[_0x1a7726['length']-0x1]['forceDefaultExecution']||_0x109f74['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5490a0['stop']());},{'priority':'highest'});for(const _0x10e360 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x32c362=_0x1f3d8f['commands']['get'](_0x10e360);_0x109f74['enableCommand'](_0x10e360,()=>{const _0x49a639=_0x1f3d8f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3ea332=>_0x3ea332['is']('element','tableCell')),_0x4544e8=_0x32c362['value'];_0x1f3d8f['model']['change'](()=>{_0x109f74['markMultiRangeBlockFormat']([_0x49a639,_0x4544e8],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2eda45 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x462095=_0x1f3d8f['commands']['get'](_0x2eda45);_0x109f74['enableCommand'](_0x2eda45,()=>{const _0x28b999=_0x322241['getSelectionAffectedTableCells'](_0x1f3d8f['model']['document']['selection'])[0x0],_0x299e57=_0x28b999['findAncestor']('table'),{column:_0xc27cee,row:_0x30ea43}=_0x322241['getCellLocation'](_0x28b999);let _0x38246c=[];if('horizontally'==_0x462095['direction']){const _0x336dae=_0x322241['createTableWalker'](_0x299e57,{'startRow':_0x30ea43,'endRow':_0x30ea43,'includeAllSlots':!0x0});_0x38246c=Array['from'](_0x336dae)['map'](_0x5b6c36=>_0x5b6c36['cell']);}else{const _0x3d5de9=_0x322241['createTableWalker'](_0x299e57,{'column':_0xc27cee,'includeAllSlots':!0x0});_0x38246c=Array['from'](_0x3d5de9)['map'](_0x492bdf=>_0x492bdf['cell']);}_0x1f3d8f['model']['change'](_0x427abb=>{_0x109f74['markBlockFormat'](_0x427abb['createRangeOn'](_0x28b999),{'commandName':_0x2eda45,'commandParams':[]},_0x38246c,_0x2eda45);});});}_0x109f74['descriptionFactory']['registerDescriptionCallback'](_0x33f6d3=>{if('formatBlock'!=_0x33f6d3['type']&&'formatInline'!=_0x33f6d3['type'])return;const {data:_0x10a2f5}=_0x33f6d3;return _0x10a2f5&&'mergeTableCells'==_0x10a2f5['commandName']?{'type':'format','content':Tt(_0xf97f82,'*Merge\x20cells*')}:void 0x0;}),_0x109f74['descriptionFactory']['registerDescriptionCallback'](_0x20069b=>{if('formatBlock'!=_0x20069b['type']&&'formatInline'!=_0x20069b['type'])return;const {data:_0x666966}=_0x20069b;return _0x666966?'splitTableCellVertically'==_0x666966['commandName']?{'type':'format','content':Tt(_0xf97f82,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x666966['commandName']?{'type':'format','content':Tt(_0xf97f82,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3ccdab=_0x34557d['_acceptFormatSuggestionCallbackFactory']();for(const _0x1b9882 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x109f74['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1b9882,'accept',_0x3ccdab);for(const _0x313c99 of['splitTableCellVertically','splitTableCellHorizontally'])_0x109f74['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x313c99,'accept',_0x3ccdab);_0x109f74['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x558d7d=>{_0x1f3d8f['model']['change'](_0x1859eb=>{const _0x1a1600=Array['from'](_0x507994['getRanges']())['map'](_0x2bc59b=>_0x2192a8['fromRange'](_0x2bc59b));_0x1859eb['setSelection'](_0x558d7d),_0x1f3d8f['commands']['get']('mergeTableCells')['refresh'](),_0x1f3d8f['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2bf095=_0x1a1600['filter'](_0x31e3af=>'$graveyard'!=_0x31e3af['root']['rootName']);_0x2bf095['length']>0x0&&_0x1859eb['setSelection'](_0x2bf095);for(const _0x17d9c8 of _0x1a1600)_0x17d9c8['detach']();});});for(const _0x1bd4cb of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x8c04a6=_0x1f3d8f['commands']['get'](_0x1bd4cb);_0x8c04a6['on']('set:isEnabled',(_0x35ca56,_0x27f541,_0x3aefa7)=>{if(_0x3aefa7){const _0x38e271=_0x1f3d8f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x952fb7=>_0x952fb7['is']('element','tableCell'));this['_areMergableCells'](_0x8c04a6['value'],_0x38e271)||(_0x35ca56['return']=!0x1,_0x35ca56['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x24f4a7=this['editor']['commands']['get']('mergeTableCells'),_0x5b2e4c=this['editor']['plugins']['get']('TableUtils');if(!_0x24f4a7['isEnabled'])return!0x1;const _0x21524d=_0x5b2e4c['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x33c847 of _0x21524d)for(const _0x585684 of _0x21524d)if(_0x33c847!=_0x585684&&!this['_areMergableCells'](_0x33c847,_0x585684))return!0x1;return!0x0;}['_areMergableCells'](_0xbe7c14,_0x4803ac){const _0x8a6753=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11e825=this['editor']['model']['createRangeOn'](_0xbe7c14),_0x20c1fe=this['editor']['model']['createRangeOn'](_0x4803ac),_0xd11de2=new Set(),_0x1a40c4=new Set();for(const _0x286c96 of _0x8a6753['getSuggestions']())if(('insertion'==_0x286c96['type']||'deletion'==_0x286c96['type']||'mergeTableCells'==_0x286c96['subType'])&&_0x286c96['isInContent']){for(const _0x553bb1 of _0x286c96['getRanges']())_0x553bb1['containsRange'](_0x11e825,!0x0)&&_0xd11de2['add'](_0x286c96['type']+':'+_0x286c96['author']['id']),_0x553bb1['containsRange'](_0x20c1fe,!0x0)&&_0x1a40c4['add'](_0x286c96['type']+':'+_0x286c96['author']['id']);}if(_0xd11de2['size']!=_0x1a40c4['size'])return!0x1;for(const _0x2c2fd6 of _0xd11de2)if(!_0x1a40c4['has'](_0x2c2fd6))return!0x1;return!0x0;}}class TrackChangesTableHeadings extends _0x3000a5{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x41649c=this['editor'];if(!_0x41649c['plugins']['has']('TableEditing'))return;const _0x41f1dc=_0x41649c['locale'],_0x5759c4=_0x41649c['plugins']['get']('TrackChangesEditing');_0x5759c4['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5759c4['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5759c4['descriptionFactory']['registerAttributeLabel']('headingRows',Tt(_0x41f1dc,'FORMAT_HEADER_ROW')),_0x5759c4['descriptionFactory']['registerAttributeLabel']('headingColumns',Tt(_0x41f1dc,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4d03e9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x345678=this['editor']['plugins']['get'](TrackChangesTable)['_acceptFormatSuggestionCallbackFactory']();_0x4d03e9['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x345678),_0x4d03e9['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x345678),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x569b86=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4677c6=this['editor']['plugins']['get']('TableUtils');function _0x49a5c({showActiveMarker:_0x493999=!0x0,setDataAttribute:_0x4d7093=!0x0}={}){return(_0x15990f,_0x3fb4e2,_0x36e4ac)=>{const {type:_0x557a19,id:_0x2e7b7c}=_0x2522cc(_0x3fb4e2['markerName']);if(!_0x569b86['hasSuggestion'](_0x2e7b7c))return;const _0x32322d=_0x569b86['getSuggestion'](_0x2e7b7c),_0x208619=_0x32322d['data'];if('formatBlock'!=_0x32322d['type']||!_0x208619||'setTableColumnHeader'!=_0x208619['commandName'])return;if(_0x3fb4e2['item'])return void _0x15990f['stop']();if(!_0x36e4ac['consumable']['consume'](_0x3fb4e2['markerRange'],_0x15990f['name']))return;const _0x429699=_0x3fb4e2['markerRange']['start']['nodeAfter'],_0x3af0f2=_0x3fb4e2['markerRange']['end']['nodeBefore'],_0x4e8df3=_0x429699['parent']['parent'],{column:_0x4eea61}=_0x4677c6['getCellLocation'](_0x429699),{column:_0x3a40b4}=_0x4677c6['getCellLocation'](_0x3af0f2);for(let _0x137c8f=_0x4eea61;_0x137c8f<=_0x3a40b4;_0x137c8f++){const _0x58bcdb=_0x4677c6['createTableWalker'](_0x4e8df3,{'column':_0x137c8f,'includeAllSlots':!0x1});for(const _0x2fa837 of _0x58bcdb){const _0x3a4eca=_0x2fa837['cell'],_0x15c50a=_0x36e4ac['mapper']['toViewElement'](_0x3a4eca);_0x36e4ac['writer']['addClass']('ck-suggestion-marker-'+_0x557a19,_0x15c50a),_0x4d7093&&_0x36e4ac['writer']['setAttribute']('data-suggestion',_0x2e7b7c,_0x15c50a),_0x36e4ac['mapper']['bindElementToMarker'](_0x15c50a,_0x3fb4e2['markerName']),_0x493999&&(_0x569b86['activeMarkers']['includes'](_0x3fb4e2['markerName'])?_0x36e4ac['writer']['addClass']('ck-suggestion-marker--active',_0x15c50a):_0x36e4ac['writer']['removeClass']('ck-suggestion-marker--active',_0x15c50a));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x49a5c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x59efc1,_0x234240,_0x9ce90f)=>{_0x9ce90f['options']['showSuggestionHighlights']&&_0x49a5c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x59efc1,_0x234240,_0x9ce90f);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x443df3,_0x3431f7,_0x57e2dd)=>{const {type:_0x5ab132,id:_0x5db25f}=_0x2522cc(_0x3431f7['markerName']);if(!_0x569b86['hasSuggestion'](_0x5db25f))return;const _0x2638af=_0x569b86['getSuggestion'](_0x5db25f),_0x40c5d4=_0x2638af['data'];if('formatBlock'!=_0x2638af['type']||!_0x40c5d4||'setTableColumnHeader'!=_0x40c5d4['commandName'])return;const _0x188417=_0x57e2dd['mapper']['markerNameToElements'](_0x3431f7['markerName']);if(_0x188417){for(const _0x20e440 of _0x188417)_0x57e2dd['writer']['removeClass']('ck-suggestion-marker-'+_0x5ab132,_0x20e440),_0x57e2dd['writer']['removeClass']('ck-suggestion-marker--active',_0x20e440),_0x57e2dd['writer']['removeAttribute']('data-suggestion',_0x20e440),_0x57e2dd['mapper']['unbindElementFromMarkerName'](_0x20e440,_0x3431f7['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x225ea5=this['editor'],_0x38c365=_0x225ea5['locale'];function _0x5b315b(_0x185298){return{'type':'format','content':Tt(_0x38c365,'*Format:*\x20%0',_0x185298)};}_0x225ea5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x467be4=>{if('formatBlock'!=_0x467be4['type'])return;const {data:_0x32abd6}=_0x467be4;if(_0x32abd6){if('setTableRowHeader'==_0x32abd6['commandName']){const _0x416d7d=_0x32abd6['commandParams'][0x0]['forceValue'];return _0x5b315b(Tt(_0x38c365,_0x416d7d?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x32abd6['commandName']){const _0x42b178=_0x32abd6['commandParams'][0x0]['forceValue'];return _0x5b315b(Tt(_0x38c365,_0x42b178?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class TrackChangesTableFooters extends _0x3000a5{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x572127=this['editor'];if(!_0x572127['plugins']['has']('TableEditing')||!_0x572127['config']['get']('table.enableFooters'))return;const _0x5a8d18=_0x572127['locale'],_0x55a084=_0x572127['plugins']['get']('TrackChangesEditing');_0x55a084['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x55a084['descriptionFactory']['registerAttributeLabel']('footerRows',Tt(_0x5a8d18,'FORMAT_FOOTER_ROW'));}}class TrackChangesTableLayout extends _0x3000a5{['afterInit'](){const _0x213ada=this['editor'],_0x4a1671=_0x213ada['locale'],_0x3f0ea1=_0x213ada['plugins']['get']('TrackChangesEditing');function _0x5d6682(_0x3bb942){return{'type':'format','content':''+Tt(_0x4a1671,'*Set\x20table\x20type:*\x20%0',_0x3bb942)};}_0x213ada['plugins']['has']('TableLayout')&&(_0x3f0ea1['enableCommand']('insertTableLayout'),_0x3f0ea1['enableDefaultAttributesIntegration']('tableType'),_0x3f0ea1['descriptionFactory']['registerElementLabel'](_0x5c7fec=>_0x5c7fec['is']('element','table')&&'layout'===_0x5c7fec['getAttribute']('tableType'),_0x42c33b=>Tt(_0x4a1671,'ELEMENT_LAYOUT_TABLE',_0x42c33b)),_0x3f0ea1['descriptionFactory']['registerDescriptionCallback'](_0x57935e=>{const {data:_0x51d4b4}=_0x57935e;if(_0x51d4b4&&'tableType'==_0x51d4b4['key'])switch(_0x51d4b4['newValue']){case'layout':return _0x5d6682(Tt(_0x4a1671,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x5d6682(Tt(_0x4a1671,'ELEMENT_CONTENT_TABLE'));}}));}}const Mt=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ot=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Mt['map'](_0x399e1f=>[_0x399e1f,null]));class TrackChangesTableClipboard extends _0x3000a5{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x57946e=this['editor'];if(!_0x57946e['plugins']['has']('TableClipboard'))return;const _0x2d1944=_0x57946e['plugins']['get']('TrackChangesEditing'),_0x5e5eca=_0x57946e['plugins']['get']('TableUtils'),_0x42dd9c=_0x57946e['plugins']['get'](TrackChangesTable),_0x5583a5=_0x57946e['plugins']['get']('TableClipboard'),_0x44c371=_0x57946e['plugins']['get']('TableSelection'),_0x3c3b91=_0x57946e['plugins']['get'](ut);_0x42dd9c['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x57946e['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x57946e['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x50ae45=null,_0x52fdae=!0x1;_0x3c3b91['on']('contentInsertion',(_0x345315,_0xb61982)=>{_0x52fdae='paste'===_0xb61982['method'];}),_0x57946e['model']['on']('insertContent',(_0xc4caf6,_0x5debe4)=>{if(!_0x52fdae&&null===_0x44c371['getSelectedTableCells']())return;const [_0x2d3e8c,_0x141dc8]=_0x5debe4,_0x325ed4=_0x5debe4[_0x5debe4['length']-0x1];_0x325ed4&&_0x325ed4['forceDefaultExecution']||_0x2d1944['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x20446f,_0x4b2725,_0x4ac7fc,_0x5ca2e3,_0x4d7e8e){if(_0x4b2725&&!_0x4b2725['is']('documentSelection'))return!0x1;const _0x5d7a34=_0x4d7e8e['getTableIfOnlyTableInContent'](_0x20446f,_0x4ac7fc);if(!_0x5d7a34||!Bt(_0x5d7a34,void 0x0,_0x5ca2e3))return!0x1;const _0x380cce=_0x5ca2e3['getSelectionAffectedTableCells'](_0x4ac7fc['document']['selection']);if(!_0x380cce['length'])return!0x1;const _0x5a95a9=_0x380cce[0x0]['findAncestor']('table'),_0x243501=_0x5ca2e3['getRowIndexes'](_0x380cce),_0x134540=_0x5ca2e3['getColumnIndexes'](_0x380cce),_0x1e35e6={'startRow':_0x243501['first'],'endRow':_0x243501['last'],'startColumn':_0x134540['first'],'endColumn':_0x134540['last']};return 0x1==_0x380cce['length']&&(_0x1e35e6['endRow']+=_0x5ca2e3['getRows'](_0x5d7a34)-0x1,_0x1e35e6['endColumn']+=_0x5ca2e3['getColumns'](_0x5d7a34)-0x1),Bt(_0x5a95a9,_0x1e35e6,_0x5ca2e3);}(_0x2d3e8c,_0x141dc8,_0x57946e['model'],_0x5e5eca,_0x5583a5)&&(_0xc4caf6['stop'](),_0x50ae45={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x57946e['model']['change'](()=>{_0x57946e['model']['insertContent'](_0x5debe4[0x0],_0x5debe4[0x1],_0x5debe4[0x2],{'forceDefaultExecution':!0x0});const _0x429f37=_0x59fa6d(),{rowInsertionRanges:_0xeedb0e,columnInsertionRanges:_0x8ee323,insertionRanges:_0x499808,deletionRanges:_0x27d440,cells:_0x2d188b}=_0x50ae45;_0xeedb0e['length']&&_0x2d1944['markMultiRangeInsertion'](_0xeedb0e,'tablePasteRow',{'tablePasteChainId':_0x429f37}),_0x8ee323['length']&&_0x2d1944['markMultiRangeInsertion'](_0x8ee323,'tablePasteColumn',{'tablePasteChainId':_0x429f37}),_0x499808['length']&&(_0x2d1944['markMultiRangeInsertion'](_0x499808,'tablePaste',{'tablePasteChainId':_0x429f37,'skipNestingCheck':!0x0}),_0x499808['forEach'](_0x1fae7b=>_0x1fae7b['detach']?.())),_0x27d440['length']&&(_0x2d1944['markMultiRangeDeletion'](_0x27d440,'tablePaste',{'tablePasteChainId':_0x429f37,'skipNestingCheck':!0x0}),_0x27d440['forEach'](_0x3cd364=>_0x3cd364['detach']?.()));const _0x104bfa=_0x2d1944['markMultiRangeBlockFormat'](_0x2d188b['map'](({element:_0x11266c})=>_0x11266c),{'formatGroupId':_0x59fa6d()},[],'tablePasteCell',{'tablePasteChainId':_0x429f37});if(_0x104bfa){const _0x48561a=_0x104bfa['getMarkers'](),_0x2fd6be=[];for(const {element:_0xf73da3,attributes:_0x4b46dc}of _0x2d188b){if(!_0x4b46dc)continue;const _0x212f55=_0x57946e['model']['createRangeOn'](_0xf73da3),_0x202a69=_0x48561a['find'](_0x5d9c8e=>_0x5d9c8e['getRange']()['isEqual'](_0x212f55));_0x202a69&&_0x2fd6be['push']([_0x202a69['name'],_0x4b46dc]);}_0x2fd6be['length']&&_0x104bfa['setAttribute']('markerAttributes',Object['fromEntries'](_0x2fd6be));}_0x50ae45=null;}));},{'priority':_0x12b650['high']+0xa}),_0x3c3b91['on']('contentInsertion',()=>{_0x52fdae=!0x1;},{'priority':'lowest'}),_0x57946e['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x46a009,_0x5177ba)=>{const [_0x2b04bf,_0xdecbb2,,_0x2c5f46]=_0x5177ba;if(!_0x50ae45)return;_0x46a009['stop']();const _0x193798=_0x2b04bf['cell'],_0x189cba=_0xdecbb2,_0xbf5579=wt(_0x193798),_0x5c3a96=wt(_0x189cba);_0x46a009['return']=_0x193798;let _0x20b990=null,_0x4cd0bd=null;if(_0x5c3a96||_0xbf5579){if(_0xbf5579&&!_0x5c3a96){_0x2c5f46['remove'](_0x193798['getChild'](0x0));for(const _0x324fd3 of Array['from'](_0x189cba['getChildren']()))_0x2c5f46['insert'](_0x324fd3,_0x193798,'end');const _0x15b35d=_0x50ae45['rowInsertionIndexes']['includes'](_0x2b04bf['row']),_0x37d517=_0x50ae45['columnInsertionIndexes']['includes'](_0x2b04bf['column']);_0x15b35d||_0x37d517||(_0x20b990=_0x2192a8['fromRange'](_0x2c5f46['createRangeIn'](_0x193798)));}else _0x5c3a96&&!_0xbf5579&&(_0x4cd0bd=_0x2c5f46['createRangeIn'](_0x193798));}else{const _0xf5dc69=_0x2c5f46['createElement']('tableCellSuggestion'),_0x14b239=_0x2c5f46['createElement']('tableCellSuggestion');_0x2c5f46['wrap'](_0x2c5f46['createRangeIn'](_0x193798),_0x14b239),_0x2c5f46['insert'](_0xf5dc69,_0x193798,0x0);for(const _0x52b9bd of Array['from'](_0x189cba['getChildren']()))_0x2c5f46['insert'](_0x52b9bd,_0xf5dc69,'end');_0x20b990=_0x2192a8['fromRange'](_0x2c5f46['createRangeOn'](_0xf5dc69)),_0x4cd0bd=_0x2192a8['fromRange'](_0x2c5f46['createRangeOn'](_0x14b239));}const _0x166c37=Array['from'](_0x189cba['getAttributes']())['filter'](([_0x4dc49b])=>Mt['includes'](_0x4dc49b));_0x50ae45['cells']['push']({'element':_0x193798,'attributes':_0x166c37['length']?Object['fromEntries'](_0x166c37):null}),_0x20b990&&_0x50ae45['insertionRanges']['push'](_0x20b990),_0x4cd0bd&&_0x50ae45['deletionRanges']['push'](_0x4cd0bd);},{'priority':'high'}),_0x5e5eca['on']('insertColumns',(_0x2a8fbf,_0x3b280e)=>{const [_0x44a51d,_0x51c087={}]=_0x3b280e;if(!_0x50ae45)return;const _0x1bba5c=_0x51c087['at']||0x0,_0x4c7992=_0x51c087['columns']||0x1;_0x50ae45['columnInsertionIndexes']=new Array(_0x4c7992)['fill'](_0x1bba5c)['map']((_0x48dc71,_0x42e3bf)=>_0x48dc71+_0x42e3bf);for(const {cell:_0x28c792}of _0x5e5eca['createTableWalker'](_0x44a51d,{'startColumn':_0x1bba5c,'endColumn':_0x1bba5c+_0x4c7992-0x1}))_0x50ae45['columnInsertionRanges']['push'](_0x57946e['model']['createRangeOn'](_0x28c792));},{'priority':'low'}),_0x5e5eca['on']('insertRows',(_0x2eb995,_0x10bf46)=>{const [_0x4b8735,_0x1702bd={}]=_0x10bf46;if(!_0x50ae45)return;const _0x4f65bb=_0x1702bd['at']||0x0,_0x26fa10=_0x1702bd['rows']||0x1;_0x50ae45['rowInsertionIndexes']=new Array(_0x26fa10)['fill'](_0x4f65bb)['map']((_0x5edaaf,_0x4a0a4e)=>_0x5edaaf+_0x4a0a4e);for(const {cell:_0x4ed00e}of _0x5e5eca['createTableWalker'](_0x4b8735,{'startRow':_0x4f65bb,'endRow':_0x4f65bb+_0x26fa10-0x1}))_0x50ae45['rowInsertionRanges']['push'](_0x57946e['model']['createRangeOn'](_0x4ed00e));},{'priority':'low'}),_0x2d1944['descriptionFactory']['registerDescriptionCallback'](_0x1e6db9=>{if(_0x1e6db9['subType']&&_0x1e6db9['subType']['startsWith']('tablePaste'))return _0x1e6db9['previous']?{}:{'type':'insertion','content':Tt(_0x57946e['locale'],'*Replace\x20table\x20cells*')};});const _0xa0721f=()=>!0x1;for(const _0x4d9997 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2d1944['_suggestionFactory']['registerCustomCallback']('insertion',_0x4d9997,'join',_0xa0721f),_0x2d1944['_suggestionFactory']['registerCustomCallback']('deletion',_0x4d9997,'join',_0xa0721f),_0x2d1944['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4d9997,'join',_0xa0721f);_0x2d1944['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xa0721f),_0x2d1944['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x539708,_0xc7ac6e,_0x50d7e5)=>{const _0x39121a=_0x539708['map'](_0x588a81=>_0x588a81['getContainedElement']())['filter'](_0x2145f9=>_0x2145f9),_0x4497a0=new Map(_0x39121a['map'](_0x416cb9=>[_0x416cb9,null]));if(_0x50ae45){for(const {element:_0x3a344a,attributes:_0x3e2131}of _0x50ae45['cells'])_0x3e2131&&_0x4497a0['set'](_0x3a344a,_0x3e2131);}else{if(_0x50d7e5&&_0x50d7e5['markerAttributes'])for(const [_0xf35efa,_0x9e1b63]of Object['entries'](_0x50d7e5['markerAttributes'])){const _0x560331=_0x57946e['model']['markers']['get'](_0xf35efa),_0x10f5af=_0x560331?_0x560331['getRange']()['getContainedElement']():null;_0x10f5af&&_0x4497a0['set'](_0x10f5af,_0x9e1b63);}}_0x57946e['model']['change'](_0x38e0e3=>{for(const [_0x2754b8,_0x575253]of _0x4497a0)_0x38e0e3['setAttributes']({...Ot,..._0x575253},_0x2754b8);});});const _0x39e413=(_0x5e7e18,_0x5b9f49)=>{_0x2d1944['_suggestionFactory']['registerCustomCallback'](_0x5e7e18,'tablePaste',_0x5b9f49,(_0x1a49b0,_0x3f026b,_0x2dbdc5)=>{_0x57946e['model']['change'](_0x4fa5ac=>{const _0x4c7b64=[];for(const _0x2cdf85 of _0x1a49b0){const _0x329f4b=_0x2cdf85['start']['nodeAfter'];_0x329f4b['is']('element','tableCellSuggestion')&&_0x4c7b64['push'](_0x329f4b);}_0x2d1944['_suggestionFactory']['getSuggestionCallback'](_0x5e7e18,null,_0x5b9f49)(_0x1a49b0,_0x3f026b,_0x2dbdc5);for(const _0x4540b8 of _0x4c7b64)'$graveyard'!=_0x4540b8['root']['rootName']&&_0x4fa5ac['unwrap'](_0x4540b8);});});};_0x39e413('insertion','accept'),_0x39e413('insertion','discard'),_0x39e413('deletion','accept'),_0x39e413('deletion','discard'),_0x2d1944['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5deb6d=>{const _0x5e7d4d=_0x5deb6d['map'](_0x34b059=>_0x34b059['getContainedElement']()),_0x1c73d7=_0x5e7d4d[0x0]['findAncestor']('table'),{minRow:_0x2b15a6,maxRow:_0x29392b}=_0x42dd9c['_getCoordsForCells'](_0x5e7d4d);_0x5e5eca['removeRows'](_0x1c73d7,{'at':_0x2b15a6,'rows':_0x29392b-_0x2b15a6+0x1});}),_0x2d1944['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5c4269=>{const _0x79317f=_0x5c4269['map'](_0x58e59e=>_0x58e59e['getContainedElement']()),_0x2a35c0=_0x79317f[0x0]['findAncestor']('table'),{minColumn:_0x44d479,maxColumn:_0x5ea8cc}=_0x42dd9c['_getCoordsForCells'](_0x79317f);_0x5e5eca['removeColumns'](_0x2a35c0,{'at':_0x44d479,'columns':_0x5ea8cc-_0x44d479+0x1});});const _0x147995=(_0xf719c9,_0xca1960)=>{if(!_0xca1960['subType']||!_0xca1960['subType']['startsWith']('tablePaste'))return;const _0x1aec70=_0xca1960['attributes']['tablePasteChainId'],_0x2a238e=_0x2d1944['getSuggestions']()['filter'](_0x137916=>_0x137916['isInContent']&&_0x137916['attributes']&&_0x137916['attributes']['tablePasteChainId']==_0x1aec70);_0x2a238e['length']&&_0xca1960['getAllAdjacentSuggestions']()['length']!=_0x2a238e['length']&&_0x2a238e['reduce']((_0x49338a,_0x56090c)=>(_0x49338a['next']=_0x56090c,_0x56090c['previous']=_0x49338a,_0x56090c));};function _0x3bfd24(_0x3a46fc,_0x3bf57d=!0x0){const {id:_0x3dab46,authorId:_0x1cdb6f}=_0x2522cc(_0x3a46fc['markerName']),_0x806cad=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5bdc51=_0x2d1944['activeMarkers']['includes'](_0x3a46fc['markerName']);return _0x5bdc51&&_0x806cad['push']('ck-suggestion-marker--active'),{'classes':_0x806cad,'attributes':{'data-suggestion':_0x3dab46,'data-author-id':_0x1cdb6f},'priority':_0x5bdc51&&_0x3bf57d?0xbc2:0xbb8};}_0x2d1944['on']('suggestionLoaded',_0x147995,{'priority':'high'}),_0x2d1944['on']('suggestionUnloaded',_0x147995,{'priority':'high'}),_0x57946e['model']['document']['registerPostFixer'](()=>{let _0x405f99=!0x1;const _0x2dcd96=Array['from'](_0x57946e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1d1ec4,data:_0x216dd8}of _0x2dcd96){const {group:_0x383ee4,type:_0x4f33f3,id:_0x3002b8}=_0x2522cc(_0x1d1ec4);if('suggestion'!=_0x383ee4||'deletion'!=_0x4f33f3||_0x216dd8['oldRange'])continue;if(!_0x2d1944['hasSuggestion'](_0x3002b8))continue;const _0x34de75=_0x2d1944['getSuggestion'](_0x3002b8)['getRanges'](),_0x332f46=_0x57946e['plugins']['get']('Users')['me'];for(const _0x67cb0f of _0x2d1944['getSuggestions']()){if(!_0x67cb0f['isInContent']||_0x67cb0f['author']!=_0x332f46)continue;if('formatBlock'!=_0x67cb0f['type']||'tablePasteCell'!=_0x67cb0f['subType'])continue;if(_0x67cb0f['getRanges']()['every'](_0x8d0482=>_0x34de75['some'](_0x4db7ec=>_0x4db7ec['containsRange'](_0x8d0482,!0x0)))){for(const _0x2bf474 of _0x67cb0f['getAllAdjacentSuggestions']())_0x2bf474['isInContent']&&(_0x2bf474['discard'](),_0x405f99=!0x0);}}}return _0x405f99;}),_0x57946e['model']['document']['registerPostFixer'](_0x79064e=>{const _0x143cdd=_0x57946e['commands']['get']('redo');if(!_0x143cdd||!_0x143cdd['_createdBatches']['has'](_0x79064e['batch']))return!0x1;let _0x5ce9cc=!0x1;const _0x36d816=_0x57946e['plugins']['get']('Users')['me'],_0x11c3f5=_0x57946e['model']['document']['differ']['getChanges'](),_0x59dc07=Array['from'](_0x57946e['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x22bcea,data:_0x10020e})=>{const {group:_0x550567,subType:_0x4ef38a,authorId:_0x3275e4}=_0x2522cc(_0x22bcea);return'suggestion'==_0x550567&&'tablePaste'==_0x4ef38a&&_0x3275e4==_0x36d816['id']&&!_0x10020e['oldRange'];});for(const _0x3a9d9e of _0x11c3f5){if('insert'!=_0x3a9d9e['type']||'tableCellSuggestion'!=_0x3a9d9e['name']||0x1!=_0x3a9d9e['length'])continue;const _0x205b4d=_0x79064e['createRange'](_0x3a9d9e['position'],_0x3a9d9e['position']['getShiftedBy'](0x1));if(!_0x59dc07['find'](({data:_0x229388})=>_0x229388['newRange']['isEqual'](_0x205b4d))){for(const {name:_0x411b8e,data:_0x165e30}of _0x59dc07)if(_0x205b4d['containsRange'](_0x165e30['newRange'])){_0x79064e['updateMarker'](_0x411b8e,{'range':_0x205b4d}),_0x5ce9cc=!0x0;break;}}}return _0x5ce9cc;}),_0x57946e['model']['document']['registerPostFixer'](_0x12cf2f=>{let _0x4bb353=!0x1;const _0x16adc3=_0x57946e['plugins']['get']('Users')['me'],_0xb39ba1=_0x2d1944['getSuggestions']()['filter'](_0x4ac833=>_0x4ac833['isInContent']&&_0x4ac833['author']==_0x16adc3),_0x5d4cb8=new Set(),_0x606ab1=new Set();for(const _0x3aa08f of _0xb39ba1)if('tablePaste'==_0x3aa08f['subType'])for(const _0x2e8b5a of _0x3aa08f['getMarkers']()){const _0xc4c766=_0x2e8b5a['getRange']()['getContainedElement']();if(_0xc4c766){if(_0xc4c766['is']('element','tableCellSuggestion')&&wt(_0xc4c766)){_0x3aa08f['removeMarker'](_0x2e8b5a['name']),_0x5d4cb8['add'](_0xc4c766),_0x4bb353=!0x0;const _0x1df10a=_0xc4c766['nextSibling'],_0x5ef808=_0xc4c766['previousSibling'],_0x4d32a6=_0x1df10a&&_0x1df10a['is']('element','tableCellSuggestion'),_0x317df0=_0x5ef808&&_0x5ef808['is']('element','tableCellSuggestion');_0x4d32a6&&!_0x5d4cb8['has'](_0x1df10a)&&_0x606ab1['add'](_0x1df10a),_0x317df0&&!_0x5d4cb8['has'](_0x5ef808)&&_0x606ab1['add'](_0x5ef808);}else _0xc4c766['is']('element','paragraph')&&_0xc4c766['isEmpty']&&(_0x3aa08f['removeMarker'](_0x2e8b5a['name']),_0x4bb353=!0x0);}}else{if('tablePasteCell'==_0x3aa08f['subType']){if(!_0x3aa08f['attributes']||!_0x3aa08f['attributes']['tablePasteChainId'])continue;const _0x20b661=_0x3aa08f['attributes']['markerAttributes'];if(_0x20b661&&Object['keys'](_0x20b661)['length'])continue;const _0x473066=_0x3aa08f['attributes']['tablePasteChainId'];let _0x4bab39=!0x0,_0x402aa2=!0x0;for(const _0x437354 of _0xb39ba1)if(_0x437354['subType']&&_0x437354['subType']['startsWith']('tablePaste')){if(!_0x437354['attributes']['tablePasteChainId']){_0x402aa2=!0x1;break;}if(_0x437354['id']!=_0x3aa08f['id']&&_0x437354['attributes']['tablePasteChainId']==_0x473066){_0x4bab39=!0x1;break;}}_0x402aa2&&_0x4bab39&&(_0x3aa08f['removeMarkers'](),_0x4bb353=!0x0);}}for(const _0x3cbaac of _0x5d4cb8)_0x12cf2f['remove'](_0x3cbaac);for(const _0x4849aa of _0x606ab1)_0x12cf2f['unwrap'](_0x4849aa);return _0x4bb353;}),_0x57946e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x43823a=>_0x3bfd24(_0x43823a),'converterPriority':'high'}),_0x57946e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x59deca,_0x131be1)=>_0x131be1['options']['showSuggestionHighlights']?_0x3bfd24(_0x59deca,!0x1):null,'converterPriority':'high'});const _0xe557cd=_0x57946e['editing']['view'];this['listenTo'](_0xe557cd['document'],'clipboardOutput',(_0x411c9d,_0x417417)=>{const _0x218460=[];for(const _0x44b764 of _0xe557cd['createRangeIn'](_0x417417['content'])['getItems']())_0x44b764['is']('element','suggestion-td')&&_0x218460['push'](_0x44b764);_0xe557cd['change'](_0x1d7337=>{for(const _0x576f01 of _0x218460)_0x1d7337['move'](_0x1d7337['createRangeIn'](_0x576f01),_0x1d7337['createPositionBefore'](_0x576f01)),_0x1d7337['remove'](_0x576f01);});});}}function wt(_0x3268a2){if(_0x3268a2['isEmpty'])return!0x0;const _0x41c67b=_0x3268a2['getChild'](0x0);return _0x41c67b['is']('element','paragraph')&&_0x41c67b['isEmpty'];}function Bt(_0x32a75b,_0x153d37={},_0x3ca0be){for(const {isAnchor:_0x31a7b1,cellHeight:_0xdfb05,cellWidth:_0x18ca16}of _0x3ca0be['createTableWalker'](_0x32a75b,{'includeAllSlots':!0x0,..._0x153d37}))if(!_0x31a7b1||0x1!=_0xdfb05||0x1!=_0x18ca16)return!0x1;return!0x0;}class TrackChangesTableColumnResize extends _0x3000a5{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5e0077=this['editor']['plugins']['get']('TrackChangesEditing');_0x5e0077['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5e0077['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5e0077['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5e0077['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5e0077['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5e0077['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1db8ed,_0x11776a){const _0x6cbdc4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x220417=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1ca962=_0x11776a['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4c8515=_0x220417['getColumnGroupElement'](_0x1ca962);let _0x1dc274=_0x4c8515?_0x220417['getTableColumnsWidths'](_0x4c8515):null,_0x5a8dc8=_0x1ca962['getAttribute']('tableWidth')||null;const _0x1e2a87=_0x11776a['tableWidth']||_0x5a8dc8,_0x12a0ba=_0x11776a['columnWidths']||_0x1dc274,_0x18133d=this['editor']['plugins']['get']('Users')['me'];for(const _0x487bd5 of _0x6cbdc4['getSuggestions']()){const _0x414a34=_0x487bd5['getContainedElement']();if('resizeTable'===_0x487bd5['subType']&&_0x414a34===_0x1ca962){_0x487bd5['author']!==_0x18133d&&_0x487bd5['discard']();const _0x46d2da=_0x487bd5['data']['commandParams'];_0x5a8dc8=_0x46d2da[0x0]['tableWidth'],_0x1dc274=_0x46d2da[0x0]['columnWidths'];break;}}_0x1db8ed({'table':_0x1ca962,'tableWidth':_0x1e2a87,'columnWidths':_0x12a0ba}),_0x6cbdc4['markBlockFormat'](_0x1ca962,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5a8dc8,'columnWidths':_0x1dc274}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2fb1d5){if('formatBlock'!=_0x2fb1d5['type']&&'formatInline'!=_0x2fb1d5['type'])return;const {data:_0x359d71}=_0x2fb1d5;if(_0x359d71&&'resizeTable'===_0x359d71['formatGroupId']){const _0x345c23='*Format:*\x20resize\x20table';return{'type':'format','content':Tt(this['editor']['locale'],_0x345c23)};}}}class TrackChangesTemplate extends _0x3000a5{['afterInit'](){const _0xc52707=this['editor'];_0xc52707['plugins']['has']('Template')&&_0xc52707['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class TrackChangesTableOfContents extends _0x3000a5{['afterInit'](){const _0x433df2=this['editor'];if(!_0x433df2['commands']['get']('insertTableOfContents'))return;_0x433df2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x7f2bb7=_0x433df2['plugins']['get']('TrackChangesEditing'),_0x112278=_0x433df2['locale'];_0x7f2bb7['descriptionFactory']['registerElementLabel']('tableOfContents',_0x330ae0=>Tt(_0x112278,'ELEMENT_TABLE_OF_CONTENTS',_0x330ae0));}}class TrackChangesTitle extends _0x3000a5{['afterInit'](){const _0x171625=this['editor'];if(!_0x171625['plugins']['has']('Title'))return;_0x171625['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Tt(_0x171625['locale'],'ELEMENT_TITLE')),_0x171625['model']['document']['registerPostFixer'](_0xb903de=>{let _0x43e627=!0x1;const _0x4c979d=Array['from'](_0x171625['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x12c362,data:_0x484d59}of _0x4c979d){const {group:_0x145ee0}=_0x2522cc(_0x12c362);if('suggestion'!==_0x145ee0||!_0x484d59['newRange'])continue;const _0x4d27ad=_0x484d59['newRange'],_0x4d70e5=_0x4d27ad['end']['nodeBefore'];if(!_0x4d70e5||!_0x4d70e5['is']('element','title-content'))continue;if(!_0x4d27ad['start']['isTouching'](_0x4d27ad['end']))continue;const _0x303732=_0x171625['model']['schema']['getNearestSelectionRange'](_0x4d27ad['end'],'forward');if(_0x303732&&_0x303732['isCollapsed']){const _0x50f092=_0xb903de['createRange'](_0x4d27ad['start'],_0x303732['start']);_0x50f092['isEqual'](_0x4d27ad)||(_0xb903de['updateMarker'](_0x12c362,{'range':_0x50f092}),_0x43e627=!0x0);}_0x43e627||(_0xb903de['removeMarker'](_0x12c362),_0x43e627=!0x0);}return _0x43e627;});}}class TrackChangesUploadcare extends _0x3000a5{['afterInit'](){const _0x257326=this['editor'],_0x5d9966=_0x257326['plugins']['get']('TrackChangesEditing');_0x257326['plugins']['has']('Uploadcare')&&(_0x5d9966['enableCommand']('uploadcare'),_0x257326['plugins']['has']('UploadcareImageEdit')&&(_0x5d9966['enableCommand']('uploadcareImageEdit'),_0x5d9966['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5d9966['descriptionFactory']['registerDescriptionCallback'](_0x187658=>{if('attribute'!=_0x187658['type'])return;const {data:_0x366d5c}=_0x187658;return _0x366d5c&&'uploadcareImageId'==_0x366d5c['key']?{'type':'format','content':''}:void 0x0;})));}}class TrackChangesUndo extends _0x3000a5{['afterInit'](){const _0x231e1e=this['editor'],_0x20ebd3=_0x231e1e['plugins']['get']('TrackChangesEditing');_0x231e1e['plugins']['has']('UndoEditing')&&(_0x20ebd3['enableCommand']('undo'),_0x20ebd3['enableCommand']('redo'));}}class TrackChangesTableCaption extends _0x3000a5{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0xd836b1=this['editor'];if(!_0xd836b1['plugins']['has']('TableCaptionEditing'))return;_0xd836b1['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class TrackChangesTableProperties extends _0x3000a5{['tableProperties'];['tableCellProperties'];constructor(_0x4d654e){super(_0x4d654e),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x3850cf=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1a667d of this['tableProperties'])_0x3850cf['enableCommand'](_0x1a667d,(_0x3009fe,_0x452345)=>{const _0x2106bf=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1a667d,[_0x2106bf],this['tableProperties'],'tableProperties',_0x3009fe,_0x452345);});_0x3850cf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3850cf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3850cf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x41226,_0x50baa1)=>this['handleDiscardAction'](this['tableProperties'],_0x41226,_0x50baa1)),_0x3850cf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x973fb4 of this['tableCellProperties'])this['editor']['commands']['get'](_0x973fb4)&&_0x3850cf['enableCommand'](_0x973fb4,(_0x39a1e3,_0x2ed9e4)=>{const _0x5ec39a=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x973fb4,_0x5ec39a,this['tableCellProperties'],'tableCellProperties',_0x39a1e3,_0x2ed9e4);});_0x3850cf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3850cf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3850cf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x138ba1,_0x147373)=>this['handleDiscardAction'](this['tableCellProperties'],_0x138ba1,_0x147373)),_0x3850cf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x3850cf['descriptionFactory']['registerAttributeLabel']('tableCellType',Tt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x3850cf['descriptionFactory']['registerDescriptionCallback'](_0x292ea2=>this['handleSuggestionDescription'](_0x292ea2)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x557329,_0x51672b,_0x21936b,_0x21e6d8,_0x1cbc12,_0x2c1c4a){const _0x57732d=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2c1c4a['batch'],()=>{for(const _0x269880 of _0x51672b){if(this['_getSuggestion'](_0x269880,_0x21e6d8))_0x1cbc12(_0x2c1c4a);else{const _0x462293={};for(const _0x9bb9a4 of _0x21936b){const _0x336b2f=_0x269880['getAttribute'](_0x9bb9a4);void 0x0!==_0x336b2f&&(_0x462293[_0x9bb9a4]=_0x336b2f);}_0x1cbc12(_0x2c1c4a),_0x57732d['markBlockFormat'](_0x269880,{'commandParams':[_0x462293]},[],_0x21e6d8);}}});}['handleDiscardAction'](_0x3034b2,_0x1b91da,_0x3fa7b3){const _0x20273c=_0x1b91da[0x0]['start']['nodeAfter'],_0x4c787f=_0x3fa7b3['commandParams'][0x0];this['editor']['model']['change'](_0xd303e9=>{for(const _0x19fe71 of _0x3034b2)void 0x0!==_0x4c787f[_0x19fe71]?_0xd303e9['setAttribute'](_0x19fe71,_0x4c787f[_0x19fe71],_0x20273c):_0xd303e9['removeAttribute'](_0x19fe71,_0x20273c);});}['handleSuggestionDescription'](_0x2bc3d5){if(_0x2bc3d5['data'])switch(_0x2bc3d5['subType']){case'tableProperties':return{'type':'format','content':Tt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Tt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x39c95c,_0x3ee22e){const _0x1f30c9=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3fe6c0 of _0x1f30c9['getSuggestions']({'skipNotAttached':!0x0})){const _0x1e2c87=_0x3fe6c0['getContainedElement']();if(_0x3fe6c0['subType']===_0x3ee22e&&_0x1e2c87===_0x39c95c)return _0x3fe6c0;}return null;}['_registerTablePropertiesAttributes'](){const _0x1380e0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c81c2=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x27d76d of _0x3c81c2){const _0x364c1f=_0x27d76d['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x1380e0['descriptionFactory']['registerAttributeLabel'](_0x27d76d,Tt(this['editor']['locale'],'FORMAT_'+_0x364c1f));}}}class TrackChangesLineHeight extends _0x3000a5{['afterInit'](){const _0x251ad9=this['editor'];if(!_0x251ad9['plugins']['has']('LineHeight'))return;const _0x167d0e=_0x251ad9['plugins']['get']('TrackChangesEditing'),_0x289e64=_0x251ad9['locale'];_0x167d0e['enableDefaultAttributesIntegration']('lineHeight'),_0x167d0e['descriptionFactory']['registerAttributeLabel']('lineHeight',Tt(_0x289e64,'FORMAT_LINE_HEIGHT'));}}const Ft='$elementName';class TrackChangesEditing extends _0x3000a5{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x3b6cc3,_0x54b9f2,_0x1d950a,_0x366661,_0x1d267d,TrackChangesAIAssistant,TrackChangesAI,TrackChangesAIQuickActions,TrackChangesAlignment,TrackChangesBasicStyles,TrackChangesBlockQuote,TrackChangesBookmark,TrackChangesCKBox,TrackChangesCaseChange,TrackChangesCodeBlock,TrackChangesComments,TrackChangesDeleteCommand,TrackChangesEmoji,TrackChangesEnterCommand,TrackChangesFindAndReplace,TrackChangesFont,TrackChangesFootnotes,TrackChangesFormatPainter,TrackChangesHeading,TrackChangesHighlight,TrackChangesHorizontalLine,TrackChangesHtmlEmbed,TrackChangesImage,TrackChangesImageStyle,TrackChangesImageReplace,TrackChangesImportWord,TrackChangesIndent,TrackChangesInputCommand,TrackChangesLegacyList,TrackChangesLegacyListProperties,TrackChangesMultiLevelList,TrackChangesLink,TrackChangesList,TrackChangesLineHeight,TrackChangesDocumentListProperties,TrackChangesMediaEmbed,TrackChangesMention,TrackChangesMergeFields,TrackChangesPageBreak,TrackChangesParagraph,TrackChangesReplaceSourceCommand,TrackChangesRemoveFormat,TrackChangesRestrictedEditingMode,TrackChangesShiftEnterCommand,TrackChangesStandardEditingMode,TrackChangesStylesDropdown,TrackChangesTable,TrackChangesTableMergeSplit,TrackChangesTableHeadings,TrackChangesTableFooters,TrackChangesTableLayout,TrackChangesTableCaption,TrackChangesTableClipboard,TrackChangesTableColumnResize,TrackChangesTableOfContents,TrackChangesTableProperties,TrackChangesTemplate,TrackChangesTitle,TrackChangesUploadcare,TrackChangesUndo];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x28a515){super(_0x28a515),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x31a5c6,_0x1f39e4,_0x2fb687,_0x11a35e)=>{this['_model']['change'](()=>{for(const _0x5e1882 of[..._0x11a35e,..._0x2fb687])this['_model']['markers']['has'](_0x5e1882)&&_0x28a515['editing']['reconvertMarker'](_0x5e1882);});}),this['descriptionFactory']=new SuggestionDescriptionFactory(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new SuggestionFactory(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x28a515['plugins']['get'](_0x3b6cc3),this['_suggestionsConversion']=_0x28a515['plugins']['get'](_0x54b9f2),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x28a515['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x28a515['config']['get']('trackChanges.trackFormatChanges'),_0x28a515['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x28a515['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new TrackChangesCommand(_0x28a515,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x229af4=this['editor'];_0x229af4['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5937b7,{writer:_0x55760a})=>{let _0x3817c0='suggestion:'+_0x5937b7['getAttribute']('suggestion-type')+':'+_0x5937b7['getAttribute']('id');return _0x5937b7['getAttribute']('marker-count')&&(_0x3817c0+=':'+_0x5937b7['getAttribute']('marker-count')),_0x55760a['createElement']('$marker',{'data-name':_0x3817c0});}}),_0x229af4['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x229af4['model']['document']['registerPostFixer'](_0x5dcb0b=>{let _0x4316c4=!0x1;const _0x14c643=Array['from'](_0x229af4['model']['document']['differ']['getChangedMarkers']()),_0x5aa798=new Set();for(const {name:_0x35185b,data:_0x1a639d}of _0x14c643){const {group:_0x182067,type:_0x109447,subType:_0x237faf,id:_0x1510e2}=_0x2522cc(_0x35185b);if('suggestion'!==_0x182067)continue;const _0x4fceb5=_0x237faf?'suggestion:'+_0x109447+':'+_0x237faf+':'+_0x1510e2:'suggestion:'+_0x109447+':'+_0x1510e2,_0x597c54=_0x229af4['model']['markers']['getMarkersGroup'](_0x4fceb5),_0x171304=_0x229af4['model']['markers']['get'](_0x35185b),_0x23fe3f=this['_suggestions']['get'](_0x1510e2);if(null!=_0x1a639d['newRange']){'formatInline'==_0x109447&&(_0x4316c4=_0x4316c4||xt(_0x1a639d['newRange'],_0x35185b,_0x5dcb0b,_0x229af4['model']['schema']));const _0x118618='attribute'==_0x109447&&this['_suggestionsConversion']['isBlockAttribute'](Xt(_0x237faf)),_0x586cd4='attribute'==_0x109447&&this['_suggestionsConversion']['isInlineAttribute'](Xt(_0x237faf));if(_0x1a639d['newRange']['isCollapsed']||'$graveyard'==_0x1a639d['newRange']['root']['rootName']||'formatBlock'==_0x109447&&!Ut(_0x1a639d['newRange'])||_0x118618&&!Ut(_0x1a639d['newRange'])||_0x586cd4&&Gt(_0x1a639d['newRange'])||'deletion'==_0x109447&&Gt(_0x1a639d['newRange'])||_0x171304&&Ht(_0x171304,_0x597c54))_0x5dcb0b['removeMarker'](_0x35185b),_0x4316c4=!0x0;else{if(!_0x23fe3f||!_0x23fe3f['isInContent'])continue;if(_0x1a639d['newRange']&&_0x1a639d['oldRange']&&_0x1a639d['newRange']['isEqual'](_0x1a639d['oldRange']))continue;_0x5aa798['add'](_0x23fe3f);}}}return _0x5aa798['size']>0x0&&(_0x4316c4=!!this['_joinWithAdjacentSuggestions'](_0x5aa798)||_0x4316c4),_0x4316c4;}),_0x229af4['model']['document']['registerPostFixer'](_0x47491d=>{let _0x7131c1=!0x1;for(const _0x1ee7c2 of _0x229af4['model']['document']['differ']['getChanges']())if('insert'==_0x1ee7c2['type'])for(const _0x103b13 of this['_suggestions']['values']()){if(_0x103b13['isMultiRange']||!_0x103b13['isInContent'])continue;const _0x1462a3='formatBlock'==_0x103b13['type'],_0xf7d69e=this['_getAttributeKey'](_0x103b13),_0x3da633=_0xf7d69e&&this['_suggestionsConversion']['isBlockAttribute'](_0xf7d69e);if(!_0x1462a3&&!_0x3da633)continue;const _0x57baaf=_0x103b13['getFirstRange']();if(_0x57baaf['start']['parent']!=_0x57baaf['end']['parent']&&!_0x57baaf['end']['isAtEnd']){const _0x328eb3=_0x229af4['model']['createPositionAt'](_0x57baaf['start']['nodeAfter'],'end'),_0x35eb37=_0x229af4['model']['createRange'](_0x57baaf['start'],_0x328eb3);_0x47491d['updateMarker'](_0x103b13['getFirstMarker'](),{'range':_0x35eb37}),_0x7131c1=!0x0;}}return _0x7131c1;}),_0x229af4['model']['document']['registerPostFixer'](_0x35305d=>this['_processAttributeChanges'](_0x35305d)),_0x229af4['model']['document']['registerPostFixer'](_0x41be09=>!_0x41be09['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x41be09)),_0x229af4['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x229af4['model']['document']['on']('change:data',(_0x14034b,_0x826dbb)=>{if(!_0x826dbb['isLocal']||_0x826dbb['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x34399d=_0x229af4['model']['document']['differ']['getChanges']();if(0x0==_0x34399d['length'])return;const _0x1f15ee=[],_0xff91a5=_0x34399d['filter'](_0x20b7e7=>'attribute'==_0x20b7e7['type']),_0x51abeb=_0x34399d['filter'](_0x35ec75=>'insert'==_0x35ec75['type']&&'$text'!=_0x35ec75['name']);for(const _0x1f70b7 of _0xff91a5)this['_suggestionsConversion']['isRegisteredAttribute'](_0x1f70b7['attributeKey'])&&_0x1f15ee['push']({'key':_0x1f70b7['attributeKey'],'newValue':_0x1f70b7['attributeNewValue'],'oldValue':_0x1f70b7['attributeOldValue'],'range':$t(_0x1f70b7['range'],_0x229af4['model'])});for(const _0x43c75b of _0x51abeb){if('rename'!=_0x43c75b['action']&&'refresh'!=_0x43c75b['action'])continue;const _0x4b7413=Vt(_0x43c75b['position']['nodeAfter'],_0x229af4['model']),_0x5b2f65=_0x43c75b['before'];'rename'==_0x43c75b['action']&&_0x1f15ee['push']({'key':Ft,'newValue':_0x43c75b['name'],'oldValue':_0x5b2f65['name'],'range':_0x4b7413});for(const [_0x52519f,_0x1c7577]of _0x5b2f65['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x52519f))continue;const _0x19662a=_0x43c75b['attributes']['get'](_0x52519f);_0x1c7577!==_0x19662a&&_0x1f15ee['push']({'key':_0x52519f,'newValue':_0x19662a,'oldValue':_0x1c7577,'range':_0x4b7413});}for(const [_0x39009e,_0x10f3a6]of _0x43c75b['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x39009e)&&(_0x5b2f65['attributes']['has'](_0x39009e)||_0x1f15ee['push']({'key':_0x39009e,'newValue':_0x10f3a6,'oldValue':null,'range':_0x4b7413}));}0x0!=_0x1f15ee['length']&&_0x229af4['model']['enqueueChange'](_0x826dbb,_0x579de5=>{const _0x235bbc=_0x59fa6d();for(const {range:_0x24f21a,key:_0xd344bd,oldValue:_0x4f16a8,newValue:_0x23b110}of _0x1f15ee)this['markAttributeChange'](_0x24f21a,_0xd344bd,_0x4f16a8,_0x23b110,{'groupId':_0x235bbc});this['_reduceExistingSuggestions'](_0x579de5,_0x1f15ee);});},{'priority':'lowest'}),_0x229af4['model']['markers']['on']('update:suggestion',(_0x5336d5,_0x2d144b,_0x1def6b)=>{if(null==_0x1def6b){const {id:_0x2cf6e7}=_0x2522cc(_0x2d144b['name']),_0x4d4abc=this['_suggestions']['get'](_0x2cf6e7);_0x4d4abc&&_0x4d4abc['addMarkerName'](_0x2d144b['name']);}}),_0x229af4['model']['document']['on']('change:data',()=>{const _0x4a5e7d=Array['from'](_0x229af4['model']['document']['differ']['getChangedMarkers']())['filter'](_0x51eb4c=>'suggestion'===_0x2522cc(_0x51eb4c['name'])['group']);if(0x0===_0x4a5e7d['length'])return;_0x4a5e7d['sort']((_0x5660d9,_0x42ec03)=>{const _0x527ab6=_0x5660d9['data']['oldRange'],_0x8ea964=_0x42ec03['data']['oldRange'];return null===_0x527ab6&&null===_0x8ea964?0x0:null===_0x527ab6&&null!==_0x8ea964?-0x1:null!==_0x527ab6&&null===_0x8ea964?0x1:_0x527ab6['start']['isBefore'](_0x8ea964['start'])?-0x1:0x1;});const _0x449651=new Set(),_0x497338=new Set();for(const {name:_0x7508dc,data:_0x856edd}of _0x4a5e7d){const {id:_0x2bb2be}=_0x2522cc(_0x7508dc);if(null===_0x856edd['oldRange']){const _0x14638b=this['_handleNewSuggestionMarker'](_0x7508dc);_0x497338['add'](_0x14638b);}else{const _0xca797f=this['_suggestions']['get'](_0x2bb2be);null!==_0x856edd['newRange']||_0xca797f['isInContent']?(_0x449651['add'](_0xca797f['head']),_0x497338['add'](_0xca797f)):this['_removeSuggestion'](_0xca797f);}}_0x497338['size']>0x0&&this['_refreshSuggestionsChain'](_0x497338);for(const _0x2b4c9a of _0x449651)this['fire']('suggestionChanged',_0x2b4c9a);}),_0x229af4['model']['on']('applyOperation',(_0x3c3341,_0x5a558b)=>{const _0x2b72c9=_0x5a558b[0x0];if(!this['_suggestions']['size'])return;if(!_0x2b72c9['isDocumentOperation'])return;if(_0x2b72c9['batch']['isUndo']||!_0x2b72c9['batch']['isLocal'])return;let _0x1dc5f2,_0x409ff6;switch(_0x2b72c9['type']){case'insert':_0x1dc5f2=_0x229af4['model']['createPositionAt'](_0x2b72c9['position']),_0x409ff6=_0x1dc5f2['getShiftedBy'](_0x2b72c9['howMany']);break;case'split':_0x1dc5f2=_0x229af4['model']['createPositionAt'](_0x2b72c9['splitPosition']),_0x409ff6=_0x229af4['model']['createPositionAt'](_0x2b72c9['moveTargetPosition']);break;case'move':_0x1dc5f2=_0x229af4['model']['createPositionAt'](_0x2b72c9['targetPosition']),_0x409ff6=_0x1dc5f2['getShiftedBy'](_0x2b72c9['howMany']);break;default:return;}const _0x24079f=_0x229af4['model']['createRange'](_0x1dc5f2,_0x409ff6);_0x229af4['model']['change'](()=>{for(const {suggestion:_0x140536,meta:_0x143342}of this['_findSuggestions'](_0x24079f)){if(_0x140536['isMultiRange'])continue;if('formatInline'==_0x140536['type'])continue;const _0xadf9a3=this['_getAttributeKey'](_0x140536);if(_0xadf9a3&&this['_suggestionsConversion']['isBlockAttribute'](_0xadf9a3)&&'split'!=_0x2b72c9['type'])continue;const _0x4ad0a8=_0x140536['data']&&_0x140536['data']['multipleBlocks'];('formatBlock'!=_0x140536['type']||'split'==_0x2b72c9['type']&&!_0x4ad0a8)&&(_0x143342['containsRangeInObject']||'insertion'==_0x140536['type']&&_0x143342['isOwn']||_0x140536['getFirstRange']()['containsRange'](_0x24079f)&&this['_breakSuggestionMarker'](_0x140536,_0x1dc5f2,_0x409ff6));}});},{'priority':'lowest'}),_0x229af4['model']['on']('deleteContent',(_0x13ed40,_0x5af316)=>{const _0x40b3f7=_0x5af316[0x0],_0x26a1cf=_0x5af316[0x1];if(_0x26a1cf&&_0x26a1cf['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x40b3f7['isCollapsed'])return;const _0x402392=_0x229af4['model']['schema'],{start:_0x3f85c3,end:_0x5219ff}=_0x40b3f7['getFirstRange'](),_0x3b5806=_0x3f85c3['nodeAfter']&&_0x402392['isLimit'](_0x3f85c3['nodeAfter'])?null:_0x402392['getNearestSelectionRange'](_0x3f85c3,'forward'),_0x51e69d=_0x5219ff['nodeBefore']&&_0x402392['isLimit'](_0x5219ff['nodeBefore'])?null:_0x402392['getNearestSelectionRange'](_0x5219ff,'backward'),_0x3a3644=_0x229af4['model']['createRange'](_0x3b5806?_0x3b5806['start']:_0x3f85c3,_0x51e69d?_0x51e69d['end']:_0x5219ff);_0x229af4['model']['change'](_0x8f0458=>{this['markDeletion'](_0x3a3644);const _0x3bd7cf=_0x229af4['model']['schema']['getNearestSelectionRange'](_0x3a3644['start']);_0x40b3f7['is']('documentSelection')?_0x8f0458['setSelection'](_0x3bd7cf):_0x40b3f7['setTo'](_0x3bd7cf);}),_0x13ed40['stop']();},{'priority':_0x12b650['normal']+0xa}),_0x229af4['model']['on']('insertContent',(_0x134153,_0x1902db)=>{const _0x20bda8=_0x1902db[_0x1902db['length']-0x1];_0x20bda8&&_0x20bda8['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x229af4['model']['change'](()=>{let _0x1ac479=_0x229af4['model']['insertContent'](_0x1902db[0x0],_0x1902db[0x1],_0x1902db[0x2],{'forceDefaultExecution':!0x0});if(!_0x1ac479)return;_0x134153['return']=_0x1ac479['clone']();const _0x5cc3b0=_0x1ac479['end']['nodeBefore'],_0x20413b=_0x229af4['model']['schema'];_0x5cc3b0&&_0x20413b['isBlock'](_0x5cc3b0)&&!_0x20413b['isObject'](_0x5cc3b0)&&(_0x1ac479=_0x229af4['model']['createRange'](_0x1ac479['start'],_0x229af4['model']['createPositionAt'](_0x5cc3b0,'end'))),this['markInsertion'](_0x1ac479);}),_0x134153['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4bb9da=new AcceptSuggestionCommand(_0x229af4,this['_suggestions']);_0x229af4['commands']['add']('acceptSuggestion',_0x4bb9da),this['enableCommand']('acceptSuggestion');const _0x3a8e95=new DiscardSuggestionCommand(_0x229af4,this['_suggestions']);_0x229af4['commands']['add']('discardSuggestion',_0x3a8e95),this['enableCommand']('discardSuggestion'),_0x229af4['commands']['add']('acceptAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x229af4,_0x4bb9da,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x229af4['commands']['add']('discardAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x229af4,_0x3a8e95,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x229af4['commands']['add']('acceptSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x229af4,_0x4bb9da,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x229af4['commands']['add']('discardSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x229af4,_0x3a8e95,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3f92dd=_0x229af4['plugins']['get'](_0x3b6cc3);this['listenTo'](_0x3f92dd,'addComment',(_0x29be78,{threadId:_0x24b79f})=>{const _0x33a501=this['_suggestions']['get'](_0x24b79f);_0x33a501&&_0x33a501['commentThread']&&0x1===_0x33a501['commentThread']['length']&&this['_updateSuggestionData'](_0x24b79f,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3f92dd,'removeComment',(_0x456bc9,{threadId:_0x31ac73})=>{const _0x1654da=this['_suggestions']['get'](_0x31ac73);_0x1654da&&_0x1654da['commentThread']&&!_0x1654da['commentThread']['length']&&this['_updateSuggestionData'](_0x31ac73,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0xa73e33){const _0x1c4eb7=_0x3b9af7([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x4edcbb=0x3d8d0df,_0x175c5c=0x3df5ab7^_0x4edcbb,_0x5c549c=window[_0x3b9af7([0x44,0x61,0x74,0x65])][_0x3b9af7([0x6e,0x6f,0x77])](),_0x37fbc2=_0xa73e33[_0x3b9af7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2eab6b=new window[(_0x3b9af7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x159b77=>{_0x37fbc2[_0x3b9af7([0x6f,0x6e,0x63,0x65])](_0x3b9af7([0x72,0x65,0x61,0x64,0x79]),_0x159b77);}),_0x4e8c43={[_0x3b9af7([0x6b,0x74,0x79])]:_0x3b9af7([0x45,0x43]),[_0x3b9af7([0x75,0x73,0x65])]:_0x3b9af7([0x73,0x69,0x67]),[_0x3b9af7([0x63,0x72,0x76])]:_0x3b9af7([0x50,0x2d,0x32,0x35,0x36]),[_0x3b9af7([0x78])]:_0x3b9af7([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]),[_0x3b9af7([0x79])]:_0x3b9af7([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]),[_0x3b9af7([0x61,0x6c,0x67])]:_0x3b9af7([0x45,0x53,0x32,0x35,0x36])},_0x4e0f0e=_0x37fbc2[_0x3b9af7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3b9af7([0x67,0x65,0x74])](_0x3b9af7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x9fc1e7(){let _0x3cfe82,_0x4a3102=null,_0x76358a=null;try{if(_0x4e0f0e==_0x3b9af7([0x47,0x50,0x4c]))return _0x3b9af7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3cfe82=_0x5d628a(),!_0x3cfe82)return _0x3b9af7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3cfe82[_0x3b9af7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x76358a=_0x450e54(_0x3cfe82[_0x3b9af7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3cfe82[_0x3b9af7([0x6a,0x74,0x69])])),await _0x50d228()?_0x31a489()?_0x320fde()?_0x3b9af7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x393841()?(_0x3cfe82[_0x3b9af7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b9af7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4a3102=_0x5d540d(_0x3b9af7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4c1772()):_0x3b9af7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3b9af7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3b9af7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3b9af7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x320fde(){const _0x2305f1=[_0x3b9af7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3b9af7([0x74,0x72,0x69,0x61,0x6c])][_0x3b9af7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cfe82[_0x3b9af7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5c549c/0x3e8:0xe10*_0x175c5c;return _0x3cfe82[_0x3b9af7([0x65,0x78,0x70])]<_0x2305f1;}function _0x31a489(){const _0x37db05=_0x3cfe82[_0x3b9af7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x37db05)return!0x1;if(_0x37db05[_0x3b9af7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b9af7([0x2a])))return!0x0;if(_0x37db05[_0x3b9af7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b9af7([0x54,0x43])))return!0x0;if(_0x37db05[_0x3b9af7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b9af7([0x52,0x54,0x43]))){if(_0x1ef5a0())return!0x0;if(_0x3bf3ec()||_0x9f1a3b())return!0x0;}return!0x1;}function _0x393841(){const _0x2fa108=_0x3cfe82[_0x3b9af7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2fa108||0x0==_0x2fa108[_0x3b9af7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x53c710}=new URL(window[_0x3b9af7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2fa108[_0x3b9af7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53c710))return!0x0;const _0x366d53=_0x53c710[_0x3b9af7([0x73,0x70,0x6c,0x69,0x74])](_0x3b9af7([0x2e]));return _0x2fa108[_0x3b9af7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3b2951=>_0x3b2951[_0x3b9af7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b9af7([0x2a])))[_0x3b9af7([0x6d,0x61,0x70])](_0x141161=>_0x141161[_0x3b9af7([0x73,0x70,0x6c,0x69,0x74])](_0x3b9af7([0x2e])))[_0x3b9af7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5625ad=>_0x5625ad[_0x3b9af7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x366d53[_0x3b9af7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b9af7([0x6d,0x61,0x70])](_0x507495=>Array(_0x366d53[_0x3b9af7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x507495[_0x3b9af7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b9af7([0x66,0x69,0x6c,0x6c])](_0x507495[0x0]===_0x3b9af7([0x2a])?_0x3b9af7([0x2a]):'')[_0x3b9af7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x507495))[_0x3b9af7([0x73,0x6f,0x6d,0x65])](_0x4a2768=>_0x366d53[_0x3b9af7([0x65,0x76,0x65,0x72,0x79])]((_0x223588,_0x259f73)=>_0x4a2768[_0x259f73]===_0x223588||_0x4a2768[_0x259f73]===_0x3b9af7([0x2a])));}function _0x4c1772(){return _0x4a3102&&_0x76358a?new window[(_0x3b9af7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x383af0,_0x161f15)=>{_0x4a3102[_0x3b9af7([0x74,0x68,0x65,0x6e])](_0x383af0,_0x161f15),_0x76358a[_0x3b9af7([0x74,0x68,0x65,0x6e])](_0x44edcb=>{_0x44edcb!=_0x3b9af7([0x56,0x61,0x6c,0x69,0x64])&&_0x383af0(_0x44edcb);},_0x161f15);}):_0x4a3102||_0x76358a||_0x3b9af7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x450e54(_0x337917,_0x576ee1){return new window[(_0x3b9af7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d023e=>{if(_0x581e69())return _0x2d023e(_0x3b9af7([0x56,0x61,0x6c,0x69,0x64]));_0x3ded30(),_0x37fbc2[_0x3b9af7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3b9af7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x57e3cb=!0x1;const _0x33c4be=_0x59fa6d();function _0x4f9d49(_0x477c38){return!!_0x477c38&&(typeof _0x477c38===_0x3b9af7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x477c38===_0x3b9af7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x477c38[_0x3b9af7([0x74,0x68,0x65,0x6e])]===_0x3b9af7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x477c38[_0x3b9af7([0x63,0x61,0x74,0x63,0x68])]===_0x3b9af7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x25047f(_0x5b76ab){_0x116d6d(_0x5b76ab)[_0x3b9af7([0x74,0x68,0x65,0x6e])](_0x304657=>{if(!_0x304657||_0x304657[_0x3b9af7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3b9af7([0x6f,0x6b]))return _0x3b9af7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x475cee(_0x461b7f(_0x33c4be+_0x576ee1))!=_0x304657[_0x3b9af7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3b9af7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3b9af7([0x56,0x61,0x6c,0x69,0x64]);})[_0x3b9af7([0x74,0x68,0x65,0x6e])](_0x53d066=>(_0x18ee21(),_0x53d066),()=>{const _0x2bdf5f=_0x1d13a0();return null==_0x2bdf5f?(_0x18ee21(),_0x3b9af7([0x56,0x61,0x6c,0x69,0x64])):_0x3b9af7(_0x5c549c-_0x2bdf5f>(0x27d454df^_0x4edcbb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3b9af7([0x74,0x68,0x65,0x6e])](_0x2d023e)[_0x3b9af7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2d023e(_0x3b9af7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5e0392=0x3ee3e5f^_0x4edcbb;function _0x18ee21(){const _0x8a9f38=_0x3b9af7([0x6c,0x6c,0x63,0x74,0x2d])+_0x475cee(_0x461b7f(_0x337917)),_0x34657e=_0x1198fa(_0x475cee(window[_0x3b9af7([0x4d,0x61,0x74,0x68])][_0x3b9af7([0x63,0x65,0x69,0x6c])](_0x5c549c/_0x5e0392)));window[_0x3b9af7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b9af7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8a9f38,_0x34657e);}function _0x1d13a0(){const _0x473ca4=_0x3b9af7([0x6c,0x6c,0x63,0x74,0x2d])+_0x475cee(_0x461b7f(_0x337917)),_0x16b49a=window[_0x3b9af7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b9af7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x473ca4);return _0x16b49a?window[_0x3b9af7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1198fa(_0x16b49a),0x10)*_0x5e0392:null;}function _0x116d6d(_0x53e113){return new window[(_0x3b9af7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b6137,_0x530409)=>{_0x53e113[_0x3b9af7([0x74,0x68,0x65,0x6e])](_0x4b6137,_0x530409),window[_0x3b9af7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x530409,0x3d9041f^_0x4edcbb);});}}_0x37fbc2[_0x3b9af7([0x6f,0x6e])](_0x3b9af7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x123862,_0xaad40a)=>{if(_0xaad40a[0x0]!=_0x337917)return _0x2d023e(_0x3b9af7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xaad40a[0x1]={..._0xaad40a[0x1],[_0x3b9af7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x33c4be};},{[_0x3b9af7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b9af7([0x68,0x69,0x67,0x68])}),_0x37fbc2[_0x3b9af7([0x6f,0x6e])](_0x3b9af7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x55f063=>{_0x4f9d49(_0x55f063[_0x3b9af7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x57e3cb=!0x0,_0x25047f(_0x55f063[_0x3b9af7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3b9af7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b9af7([0x6c,0x6f,0x77])}),_0x2eab6b[_0x3b9af7([0x74,0x68,0x65,0x6e])](()=>{_0x57e3cb||_0x2d023e(_0x3b9af7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x581e69(){return _0x37fbc2[_0x3b9af7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b9af7([0x76,0x69,0x65,0x77])][_0x3b9af7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3b9af7([0x61,0x75,0x74,0x6f]);}function _0x3ded30(){_0x37fbc2[_0x3b9af7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b9af7([0x76,0x69,0x65,0x77])][_0x3b9af7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3b9af7([0x61,0x75,0x74,0x6f]);}}function _0x5d540d(_0x1b5fb7){const _0x58978f=[new window[(_0x3b9af7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45b7ed=>setTimeout(_0x45b7ed,0x3d1ee13^_0x4edcbb)),_0x2eab6b[_0x3b9af7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3b9af7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x793353=>{let _0x5d4704=0x0;_0x37fbc2[_0x3b9af7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b9af7([0x6f,0x6e])](_0x3b9af7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x46cbb4,_0x1abaf9)=>{_0x1abaf9[0x0][_0x3b9af7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5d4704++,_0x5d4704==(0x3d8d537^_0x4edcbb)&&(_0x793353(),_0x46cbb4[_0x3b9af7([0x6f,0x66,0x66])]());});}))];return window[_0x3b9af7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3b9af7([0x72,0x61,0x63,0x65])](_0x58978f)[_0x3b9af7([0x74,0x68,0x65,0x6e])](()=>_0x1b5fb7);}async function _0xe0e0b8(){await _0x2eab6b,_0x37fbc2[_0x3b9af7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b9af7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2a12fd,_0x37fbc2[_0x3b9af7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b9af7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2a12fd,_0x37fbc2[_0x3b9af7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3b9af7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1ef5a0(){return _0x602aa0(_0x3b9af7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4478f8(_0x3b9af7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3b9af7([0x73,0x74,0x61,0x74,0x65])]==_0x3b9af7([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3bf3ec(){return _0x602aa0(_0x3b9af7([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 _0x9f1a3b(){return _0x602aa0(_0x3b9af7([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x21daf9(_0x36e1ea){const _0x20cd18=_0x4bc47e();_0x37fbc2[_0x20cd18]=_0x3b9af7([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x36e1ea,_0x36e1ea!=_0x3b9af7([0x56,0x61,0x6c,0x69,0x64])&&_0xe0e0b8();}function _0x4bc47e(){const _0x10193a=window[_0x3b9af7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3b9af7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3b9af7([0x6e,0x6f,0x77])]())[_0x3b9af7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3b9af7([0x2e]),'');let _0x5c58c1=_0x3b9af7([0x52]);for(let _0x37744a=0x0;_0x37744a<_0x10193a[_0x3b9af7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x37744a+=0x2){let _0x258cd2=window[_0x3b9af7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10193a[_0x3b9af7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x37744a,_0x37744a+0x2));_0x258cd2>=_0x1c4eb7[_0x3b9af7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x258cd2-=_0x1c4eb7[_0x3b9af7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5c58c1+=_0x1c4eb7[_0x258cd2];}return _0x5c58c1;}function _0x5d628a(){const _0x5752c1=_0x4e0f0e[_0x3b9af7([0x73,0x70,0x6c,0x69,0x74])](_0x3b9af7([0x2e]));if(0x3!=_0x5752c1[_0x3b9af7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5e5b2d(_0x5752c1[0x1]);function _0x5e5b2d(_0x926cca){const _0x34825a=_0x28c1e4(_0x926cca);return _0x34825a&&_0x1b0c4a()?_0x34825a:null;function _0x1b0c4a(){const _0x5eb7bd=_0x34825a[_0x3b9af7([0x6a,0x74,0x69])],_0x364cc3=window[_0x3b9af7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5eb7bd[_0x3b9af7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5eb7bd[_0x3b9af7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1dc039={..._0x34825a,[_0x3b9af7([0x6a,0x74,0x69])]:_0x5eb7bd[_0x3b9af7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5eb7bd[_0x3b9af7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1dc039[_0x3b9af7([0x76,0x63])],_0x461b7f(_0x1dc039)==_0x364cc3;}}}async function _0x50d228(){let _0x4062a4=!0x0;try{const _0x1fdb38=_0x4e0f0e[_0x3b9af7([0x73,0x70,0x6c,0x69,0x74])](_0x3b9af7([0x2e])),[_0x134ffe,_0x491a36,_0x4e3f4c]=_0x1fdb38;return _0x300647(_0x134ffe),await _0x3f682c(_0x134ffe,_0x491a36,_0x4e3f4c),_0x4062a4;}catch{return!0x1;}function _0x300647(_0x5d7c1b){const _0x570437=_0x28c1e4(_0x5d7c1b);_0x570437&&_0x570437[_0x3b9af7([0x61,0x6c,0x67])]==_0x3b9af7([0x45,0x53,0x32,0x35,0x36])||(_0x4062a4=!0x1);}async function _0x3f682c(_0x986b55,_0x1b90c5,_0x14ae3b){const _0x164636=window[_0x3b9af7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3b9af7([0x66,0x72,0x6f,0x6d])](_0x341bb6(_0x14ae3b),_0x204f2d=>_0x204f2d[_0x3b9af7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4d82fe=new window[(_0x3b9af7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3b9af7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x986b55+_0x3b9af7([0x2e])+_0x1b90c5),_0x2e27fb=window[_0x3b9af7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3b9af7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2e27fb)return;const _0x435a81=await _0x2e27fb[_0x3b9af7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3b9af7([0x6a,0x77,0x6b]),_0x4e8c43,{[_0x3b9af7([0x6e,0x61,0x6d,0x65])]:_0x3b9af7([0x45,0x43,0x44,0x53,0x41]),[_0x3b9af7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3b9af7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3b9af7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2e27fb[_0x3b9af7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3b9af7([0x6e,0x61,0x6d,0x65])]:_0x3b9af7([0x45,0x43,0x44,0x53,0x41]),[_0x3b9af7([0x68,0x61,0x73,0x68])]:{[_0x3b9af7([0x6e,0x61,0x6d,0x65])]:_0x3b9af7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x435a81,_0x164636,_0x4d82fe)||(_0x4062a4=!0x1);}}function _0x28c1e4(_0x39ddca){return _0x39ddca[_0x3b9af7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3b9af7([0x65,0x79]))?JSON[_0x3b9af7([0x70,0x61,0x72,0x73,0x65])](_0x341bb6(_0x39ddca)):null;}function _0x341bb6(_0x392167){return window[_0x3b9af7([0x61,0x74,0x6f,0x62])](_0x392167[_0x3b9af7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3b9af7([0x2b]))[_0x3b9af7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3b9af7([0x2f])));}function _0x461b7f(_0x3c81d2){let _0x306481=0x1505;function _0x5c8b20(_0x1a7adc){for(let _0x2bac02=0x0;_0x2bac02<_0x1a7adc[_0x3b9af7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2bac02++){const _0x4cf3ef=_0x1a7adc[_0x3b9af7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2bac02);_0x306481=(_0x306481<<0x5)+_0x306481+_0x4cf3ef,_0x306481&=_0x306481;}}function _0x689e9b(_0x2e0646){Array[_0x3b9af7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2e0646)?_0x2e0646[_0x3b9af7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x689e9b):_0x2e0646&&typeof _0x2e0646==_0x3b9af7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3b9af7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2e0646)[_0x3b9af7([0x73,0x6f,0x72,0x74])]()[_0x3b9af7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x208563,_0x3fba8e])=>{_0x5c8b20(_0x208563),_0x689e9b(_0x3fba8e);}):_0x5c8b20(window[_0x3b9af7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2e0646));}return _0x689e9b(_0x3c81d2),_0x306481>>>0x0;}function _0x475cee(_0x124eb7){return _0x124eb7[_0x3b9af7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3b9af7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3b9af7([0x30]));}function _0x1198fa(_0x56dd2d){return _0x56dd2d[_0x3b9af7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3b9af7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3b9af7([0x6a,0x6f,0x69,0x6e])]('');}function _0x602aa0(_0x653b53){return _0x37fbc2[_0x3b9af7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3b9af7([0x68,0x61,0x73])](_0x653b53);}function _0x4478f8(_0x276c81){return _0x37fbc2[_0x3b9af7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3b9af7([0x67,0x65,0x74])](_0x276c81);}function _0x2a12fd(){}function _0x3b9af7(_0x1d9b06){return _0x1d9b06['map'](_0x3fd939=>String['fromCharCode'](_0x3fd939))['join']('');}_0x21daf9(await _0x9fc1e7());}(this);}set['adapter'](_0x54e1a8){if(this['_adapter'])throw new _0x1d5f66('track-changes-adapter-already-set',this);this['_adapter']=_0x54e1a8;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xe8540d=!0x1,toJSON:_0x3f601c=!0x1}={}){const _0x56dd4b=[];for(const _0x2e58b5 of this['_suggestions']['values']())_0xe8540d&&!_0x2e58b5['isInContent']||_0x56dd4b['push'](_0x2e58b5);return _0x3f601c?_0x56dd4b['map'](_0x6eafc=>_0x6eafc['toJSON']()):_0x56dd4b;}['getSuggestion'](_0x2781bc){const _0x325453=this['_suggestions']['get'](_0x2781bc);if(!_0x325453)throw new _0x1d5f66('track-changes-suggestion-not-found',this);return _0x325453;}['hasSuggestion'](_0x5d95fa){return this['_suggestions']['has'](_0x5d95fa);}['addSuggestionData'](_0x21f560){const {authorId:_0x5b75f8,id:_0x317c76,originalSuggestionId:_0x4c4797,attributes:_0x1af414}=_0x21f560,[_0x20ee09,_0x43efcc]=_0x21f560['type']['split'](':'),_0x191b0b=this['_suggestions']['get'](_0x317c76)||this['_createSuggestion'](_0x20ee09,_0x43efcc,_0x317c76,_0x5b75f8,_0x1af414,_0x4c4797);if(this['_addThreadToSuggestion'](_0x191b0b),this['_checkSuggestionCorrectness'](_0x191b0b,_0x20ee09,_0x43efcc||null,_0x5b75f8),_0x191b0b['createdAt']=_0x21f560['createdAt'],_0x191b0b['_isDataLoaded']=!0x0,_0x1af414&&_0x1af414['@external']){const _0x23aef0=_0x1af414['@external'],_0x4b2a62=this['_getExternalAuthor'](_0x23aef0['authorName']);_0x191b0b['authoredAt']=_0x23aef0['createdAt'],_0x191b0b['author']=_0x4b2a62,_0x191b0b['isExternal']=!0x0;}else _0x191b0b['authoredAt']=_0x21f560['createdAt'];switch(_0x21f560['data']&&(_0x191b0b['data']=_0x21f560['data']),_0x21f560['attributes']&&(_0x191b0b['attributes']=_0x21f560['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x191b0b['_saved']=!0x0),this['_suggestionState']['get'](_0x191b0b)){case'notReady':this['_suggestionState']['set'](_0x191b0b,'dataReady');break;case'markerReady':_0x191b0b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x191b0b])),this['_refreshSuggestionsChain'](new Set([_0x191b0b])),this['_suggestionState']['set'](_0x191b0b,'ready'),this['fire']('suggestionLoaded',_0x191b0b)):this['_suggestionState']['set'](_0x191b0b,'removed');}return _0x191b0b;}['acceptSuggestion'](_0x45f9bb){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x447f87 of _0x45f9bb['getAllAdjacentSuggestions']())_0x447f87['accept']();});});}['discardSuggestion'](_0x461453){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x25526b of _0x461453['getAllAdjacentSuggestions']())_0x25526b['discard']();});});}['enableCommand'](_0x2acd5d,_0xed7daf){const _0x598510=this['editor']['commands']['get'](_0x2acd5d);if(!_0x598510)throw new _0x1d5f66('track-changes-command-not-found',this,{'commandName':_0x2acd5d});if(this['_enabledCommands']['has'](_0x598510))throw new _0x1d5f66('track-changes-enable-command-twice',this,{'commandName':_0x2acd5d});this['_enabledCommands']['add'](_0x598510),_0xed7daf&&_0x598510['on']('execute',(_0x554fb6,_0x62cfa9)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x62cfa9['length']>0x0&&_0x62cfa9[_0x62cfa9['length']-0x1]&&_0x62cfa9[_0x62cfa9['length']-0x1]['forceDefaultExecution']?_0x62cfa9['pop']():(_0x554fb6['return']=_0xed7daf((..._0x570886)=>_0x598510['execute'](..._0x570886,{'forceDefaultExecution':!0x0}),..._0x62cfa9),_0x554fb6['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4549c0){let _0x5633c4,_0xf967d8;const _0xbb79d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5633c4=_0x4549c0();}catch(_0x2bca63){_0xf967d8=_0x2bca63;}return _0xbb79d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xf967d8&&_0x1d5f66['rethrowUnexpectedError'](_0xf967d8,this),_0x5633c4;}['markInsertion'](_0x5104a9,_0x45c91c=null,_0x38d54a={}){if(_0x5104a9['isCollapsed'])return null;const _0x416540=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x38d54a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x7d318c,meta:_0x219a6b}of this['_findSuggestions'](_0x5104a9,'insertion'))if(_0x219a6b['isOwn']){if(!_0x219a6b['isNextTo']){if(_0x219a6b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x7d318c,_0x38d54a))continue;return _0x7d318c;}if(zt(_0x7d318c,_0x38d54a))return _0x7d318c;this['_breakSuggestionMarker'](_0x7d318c,_0x5104a9['start'],_0x5104a9['end']);break;}if(_0x45c91c==_0x7d318c['subType']&&zt(_0x7d318c,_0x38d54a)){const _0x4fe278=_0x7d318c['getFirstRange']();return _0x4fe278['start']['isEqual'](_0x5104a9['end'])?this['_setSuggestionRange'](_0x7d318c,this['_model']['createRange'](_0x5104a9['start'],_0x4fe278['end'])):this['_setSuggestionRange'](_0x7d318c,this['_model']['createRange'](_0x4fe278['start'],_0x5104a9['end'])),_0x7d318c;}}const _0x599fb6=_0x59fa6d(),_0x29cc94=_0x416540['id'],_0x575d7e=_0x45c91c?'insertion:'+_0x45c91c:'insertion',_0x29dc56=this['_setSuggestionData']({'id':_0x599fb6,'type':_0x575d7e,'createdAt':new Date(),'authorId':_0x29cc94,'attributes':_0x38d54a});return this['_addSuggestionMarker'](_0x575d7e,_0x599fb6,_0x29cc94,_0x5104a9),_0x29dc56;}['markMultiRangeInsertion'](_0x5ad541,_0x5809ca='multi',_0x427101={}){const _0x42f14d=this['editor']['plugins']['get']('Users')['me'],_0x44388d=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5809ca,'join');this['_trackingSessionId']&&(_0x427101['trackingSessionId']=this['_trackingSessionId']);for(const _0x3dacc1 of this['getSuggestions']())if(_0x3dacc1['author']['id']==_0x42f14d['id']&&'insertion'==_0x3dacc1['type']&&_0x3dacc1['subType']==_0x5809ca&&zt(_0x3dacc1,_0x427101)&&(_0x44388d(_0x3dacc1['getRanges'](),_0x5ad541)||_0x44388d(_0x5ad541,_0x3dacc1['getRanges']()))){for(const _0x520578 of _0x5ad541)_0x3dacc1['addRange'](_0x520578);return _0x3dacc1;}for(const {suggestion:_0x4f7024,meta:_0x5b7c14}of this['_findSuggestions'](_0x5ad541,'insertion')){if(!_0x5b7c14['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5b7c14['containsRangeInObject'])continue;if(!zt(_0x4f7024,_0x427101))continue;let _0xa94df0=!0x0;for(const _0x3df67f of _0x4f7024['getRanges']())for(const _0x121823 of _0x5ad541)if(!_0x3df67f['containsRange'](_0x121823)){_0xa94df0=!0x1;break;}if(_0xa94df0)return _0x4f7024;}const _0x35e934=_0x59fa6d(),_0x3d1c14=_0x42f14d['id'],_0x35a2c0='insertion:'+_0x5809ca,_0x3cbb92=this['_setSuggestionData']({'id':_0x35e934,'type':_0x35a2c0,'createdAt':new Date(),'authorId':_0x3d1c14,'attributes':_0x427101});for(const _0x2ed2e7 of _0x5ad541)this['_addSuggestionMarker'](_0x35a2c0,_0x35e934,_0x3d1c14,_0x2ed2e7,Suggestion['getMultiRangeId']());return _0x3cbb92;}['markInlineFormat'](_0x200825,_0x753d5,_0x1820b5=null,_0x4be0de={}){if(_0x1820b5=_0x1820b5||Pt(_0x753d5),_0x200825['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x4be0de['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2ee03a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1820b5,'accept');return this['forceDefaultExecution'](()=>_0x2ee03a([_0x200825],_0x753d5,_0x4be0de)),null;}const _0x76ede8=this['editor']['plugins']['get']('Users')['me'],_0x1ee423=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xa6367a,meta:_0x6fa2a9}of this['_findSuggestions'](_0x200825,'insertion'))_0x6fa2a9['isOwn']&&!_0x6fa2a9['isInsideObject']&&_0x1ee423['push'](..._0xa6367a['getRanges']());}const _0x56193f=function(_0x17cd6d,_0x57d9d0){const _0x14521b=[];for(const _0x553680 of _0x57d9d0){const _0x41f575=_0x17cd6d['getIntersection'](_0x553680);_0x41f575&&_0x14521b['push'](_0x41f575);}return _0x14521b;}(_0x200825,_0x1ee423),_0x1a82ec=function(_0x199c5a,_0x247de3){const _0x5ba15c=[_0x199c5a];for(const _0x49569d of _0x247de3){let _0x546eb6=0x0;for(;_0x546eb6<_0x5ba15c['length'];){const _0x5c0046=_0x5ba15c[_0x546eb6]['getDifference'](_0x49569d);_0x5ba15c['splice'](_0x546eb6,0x1,..._0x5c0046),_0x546eb6+=_0x5c0046['length'];}}return _0x5ba15c;}(_0x200825,_0x1ee423);_0x56193f['length']&&this['_model']['change'](()=>{for(const _0x114afc of _0x56193f){const _0x216cb3=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1820b5,'accept');this['forceDefaultExecution'](()=>_0x216cb3([_0x114afc],_0x753d5,_0x4be0de));}});for(const _0x4d9e62 of _0x1a82ec){let _0x496506=null,_0x73aac9=_0x4d9e62['start'],_0x232b67=_0x4d9e62['end'];for(const {suggestion:_0x5799de,meta:_0xdb61be}of this['_findSuggestions'](_0x4d9e62,'formatInline')){if(!_0xdb61be['isOwn'])continue;if(_0x5799de['subType']!=_0x1820b5)continue;if(!zt(_0x5799de,_0x4be0de))continue;const _0x311c5a=_0x5799de['getFirstRange']();if(_0x311c5a['containsRange'](_0x4d9e62,!0x0))return null;_0x73aac9=_0x73aac9['isBefore'](_0x311c5a['start'])?_0x73aac9:_0x311c5a['start'],_0x232b67=_0x232b67['isAfter'](_0x311c5a['end'])?_0x232b67:_0x311c5a['end'],_0x496506?_0x311c5a['start']['isBefore'](_0x496506['getFirstRange']()['start'])?(_0x496506['removeMarkers'](),_0x496506=_0x5799de):_0x5799de['removeMarkers']():_0x496506=_0x5799de;}const _0x2ad508=this['_model']['createRange'](_0x73aac9,_0x232b67);if(_0x496506)this['_setSuggestionRange'](_0x496506,_0x2ad508);else{const _0x4e462c=_0x59fa6d(),_0x43855b=_0x76ede8['id'];this['_setSuggestionData']({'id':_0x4e462c,'type':'formatInline:'+_0x1820b5,'data':_0x753d5,'createdAt':new Date(),'authorId':_0x43855b,'attributes':_0x4be0de}),this['_addSuggestionMarker']('formatInline:'+_0x1820b5,_0x4e462c,_0x43855b,_0x2ad508);}}return null;}['markBlockFormat'](_0x510c5a,_0x23333c,_0x51d547=[],_0x2dd136=null,_0x458ec2={}){_0x23333c['formatGroupId']||(_0x23333c['formatGroupId']=_0x23333c['commandName']),_0x23333c['multipleBlocks']=_0x510c5a['is']('range'),_0x2dd136=_0x2dd136||Pt(_0x23333c);const _0x33227e=_0x51d547['map'](_0x1f3105=>Vt(_0x1f3105,this['_model'])),_0x38e980=_0x510c5a['is']('range')?_0x510c5a:Vt(_0x510c5a,this['_model']);if(this['_trackingSessionId']&&(_0x458ec2['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3c85a4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2dd136,'accept');return this['forceDefaultExecution'](()=>_0x3c85a4([_0x38e980],_0x23333c,_0x458ec2)),null;}_0x33227e['push'](_0x38e980);let _0x2827ec=!0x0;for(const _0x27a213 of _0x33227e)if(!this['_rangeIsInLocalUserInsertion'](_0x27a213)){_0x2827ec=!0x1;break;}if(_0x2827ec&&'always'!==this['_trackFormatChanges']){const _0x5aa47e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2dd136,'accept');return this['forceDefaultExecution'](()=>_0x5aa47e([_0x38e980],_0x23333c,_0x458ec2)),null;}let _0x4bc514=null,_0x5cb569=_0x38e980['start'],_0x2254d3=_0x38e980['end'];for(const {suggestion:_0x4313d7,meta:_0x5d6602}of this['_findSuggestions'](_0x38e980,'formatBlock')){if(!_0x5d6602['isOwn'])continue;if(_0x5d6602['isNextTo']||_0x5d6602['containsRangeInObject']||_0x5d6602['isInsideObject'])continue;if(_0x4313d7['data']['formatGroupId']!=_0x23333c['formatGroupId'])continue;if(!zt(_0x4313d7,_0x458ec2))continue;const _0x5f3bdb=_0x4313d7['getFirstRange']();if(_0x4313d7['subType']==_0x2dd136){if(_0x5f3bdb['containsRange'](_0x38e980,!0x0))return null;_0x5cb569=_0x5cb569['isBefore'](_0x5f3bdb['start'])?_0x5cb569:_0x5f3bdb['start'],_0x2254d3=_0x2254d3['isAfter'](_0x5f3bdb['end'])?_0x2254d3:_0x5f3bdb['end'],_0x4bc514?_0x5f3bdb['start']['isBefore'](_0x4bc514['getFirstRange']()['start'])?(_0x4bc514['removeMarkers'](),_0x4bc514=_0x4313d7):_0x4313d7['removeMarkers']():_0x4bc514=_0x4313d7;}else{const _0x1c9fa0=_0x38e980['getIntersection'](_0x5f3bdb);this['_cutOutSuggestionMarker'](_0x4313d7,_0x1c9fa0);}}const _0x8d0b51=this['editor']['plugins']['get']('Users')['me'],_0xdbb85a=_0x59fa6d(),_0x168ffd=_0x8d0b51['id'];if(_0x4bc514)return this['_setSuggestionRange'](_0x4bc514,this['_model']['createRange'](_0x5cb569,_0x2254d3)),_0x4bc514;{const _0x10d7c6=this['_setSuggestionData']({'id':_0xdbb85a,'type':'formatBlock:'+_0x2dd136,'data':_0x23333c,'createdAt':new Date(),'authorId':_0x168ffd,'attributes':_0x458ec2});return this['_addSuggestionMarker']('formatBlock:'+_0x2dd136,_0xdbb85a,_0x168ffd,this['_model']['createRange'](_0x5cb569,_0x2254d3)),_0x10d7c6;}}['markMultiRangeBlockFormat'](_0x5c0480,_0x5bb0c0,_0x4448f9=[],_0x1ac9c4=null,_0xe0c113={}){_0x5bb0c0['formatGroupId']||(_0x5bb0c0['formatGroupId']=_0x5bb0c0['commandName']);const _0x14a7bb=_0x5c0480[0x0];_0x5bb0c0['multipleBlocks']=_0x14a7bb['is']('range'),_0x1ac9c4=_0x1ac9c4||Pt(_0x5bb0c0);const _0x4e542e=_0x4448f9['map'](_0x263c01=>Vt(_0x263c01,this['_model'])),_0x5520f2=_0x14a7bb['is']('range')?_0x5c0480:_0x5c0480['map'](_0x165552=>Vt(_0x165552,this['_model']));if(this['_trackingSessionId']&&(_0xe0c113['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x22a742=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ac9c4,'accept');return this['forceDefaultExecution'](()=>_0x22a742(_0x5520f2,_0x5bb0c0,_0xe0c113)),null;}_0x4e542e['push'](..._0x5520f2);let _0x2dc412=!0x0;for(const _0x5d55c1 of _0x4e542e)if(!this['_rangeIsInLocalUserInsertion'](_0x5d55c1)){_0x2dc412=!0x1;break;}if(_0x2dc412&&'always'!==this['_trackFormatChanges']){const _0x4d503c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ac9c4,'accept');return this['forceDefaultExecution'](()=>_0x4d503c(_0x5520f2,_0x5bb0c0,_0xe0c113)),null;}const _0x3b30e3=this['editor']['plugins']['get']('Users')['me'];for(const _0x21411f of this['getSuggestions']()){const _0x4f89da=_0x21411f['data'];if(_0x21411f['author']['id']!=_0x3b30e3['id'])continue;if('formatBlock'!=_0x21411f['type']||_0x4f89da['formatGroupId']!=_0x5bb0c0['formatGroupId'])continue;if(!zt(_0x21411f,_0xe0c113))continue;const _0x71f1f0=_0x21411f['subType']==_0x1ac9c4;for(let _0x5833a4=0x0;_0x5833a4<_0x5520f2['length'];_0x5833a4++){const _0x725153=_0x5520f2[_0x5833a4];for(const _0x1390ba of _0x21411f['getMarkers']()){const _0x45ba14=_0x1390ba['getRange']();if(_0x725153['isEqual'](_0x45ba14)){_0x71f1f0?(_0x5520f2['splice'](_0x5833a4,0x1),_0x5833a4--):_0x21411f['removeMarker'](_0x1390ba['name']);break;}}}}if(0x0==_0x5520f2['length'])return null;const _0x200e20=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ac9c4,'join');for(const _0xee4016 of this['getSuggestions']()){const _0x3285e7=_0xee4016['data'];if(_0xee4016['author']['id']==_0x3b30e3['id']&&('formatBlock'==_0xee4016['type']&&_0x3285e7['formatGroupId']==_0x5bb0c0['formatGroupId']&&_0xee4016['subType']==_0x1ac9c4&&zt(_0xee4016,_0xe0c113)&&(_0x200e20(_0xee4016['getRanges'](),_0x5520f2)||_0x200e20(_0x5520f2,_0xee4016['getRanges']())))){for(const _0x168fde of _0x5520f2)_0xee4016['addRange'](_0x168fde);return _0xee4016;}}const _0x160d58=_0x59fa6d(),_0x2b14c7=_0x3b30e3['id'],_0x149bd1='formatBlock:'+_0x1ac9c4,_0x4e2296=this['_setSuggestionData']({'id':_0x160d58,'type':_0x149bd1,'data':_0x5bb0c0,'createdAt':new Date(),'authorId':_0x2b14c7,'attributes':_0xe0c113});for(const _0x2e7aff of _0x5520f2)this['_addSuggestionMarker'](_0x149bd1,_0x160d58,_0x2b14c7,_0x2e7aff,Suggestion['getMultiRangeId']());return _0x4e2296;}['markDeletion'](_0x22932b,_0x2d93bc=null,_0x158a44={}){if(_0x22932b['isCollapsed'])return null;const _0x43601d=this['editor']['plugins']['get']('Users')['me'],_0x3106a0=new _0x2192a8(_0x22932b['start'],_0x22932b['end']);this['_trackingSessionId']&&(_0x158a44['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x592ccd,meta:_0x46b620}of this['_findSuggestions'](_0x3106a0,'insertion'))if(_0x46b620['isOwn']&&!_0x46b620['isNextTo']){if(_0x592ccd['isMultiRange']){const _0x33fae0=_0x592ccd['getRanges']()['filter'](_0x1094e6=>'$graveyard'!=_0x1094e6['root']['rootName']);_0x33fae0['every'](_0x235203=>_0x3106a0['containsRange'](_0x235203,!0x0))&&_0x592ccd['discard']();if(_0x33fae0['some'](_0x4c7a89=>_0x4c7a89['containsRange'](_0x3106a0,!0x0))){const _0x3ffb1a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d93bc,'accept');return this['forceDefaultExecution'](()=>_0x3ffb1a([_0x3106a0],null,_0x158a44)),null;}}else{const _0x52d410=_0x3106a0['getIntersection'](_0x592ccd['getFirstRange']());null!==_0x52d410&&_0x592ccd['_onDiscard']([_0x52d410],null,_0x158a44);}}if(_0x3106a0['detach'](),_0x3106a0['isCollapsed']||'$graveyard'==_0x3106a0['root']['rootName'])return null;let _0x1902c0=null,_0x84ff3d=_0x3106a0['start'],_0x5a8a7b=_0x3106a0['end'];const _0x31e0c6=this['_findSuggestions'](_0x3106a0,'deletion');for(const {suggestion:_0x5740be,meta:_0x1f3281}of _0x31e0c6){const _0x55efc9=this['_model']['createRange'](_0x84ff3d,_0x5a8a7b);if(_0x1f3281['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1f3281['containsRangeInObject']&&!_0x1f3281['isInsideObject'])){if(_0x5740be['isMultiRange']){if(!zt(_0x5740be,_0x158a44))continue;let _0x42b108=!0x0;for(const _0x31cfc3 of _0x5740be['getRanges']()){if(_0x31cfc3['containsRange'](_0x55efc9,!0x0))return _0x5740be;_0x55efc9['containsRange'](_0x31cfc3)||(_0x42b108=!0x1);}_0x42b108&&_0x5740be['discard']();}else{const _0x1d6fd7=_0x5740be['getFirstRange']();if(_0x1d6fd7['containsRange'](_0x55efc9,!0x0))return _0x5740be;if(!zt(_0x5740be,_0x158a44)){_0x55efc9['containsRange'](_0x1d6fd7)?_0x5740be['removeMarkers']():_0x1d6fd7['containsPosition'](_0x84ff3d)?_0x84ff3d=_0x1d6fd7['end']:_0x1d6fd7['containsPosition'](_0x5a8a7b)&&(_0x5a8a7b=_0x1d6fd7['start']);continue;}_0x84ff3d=_0x84ff3d['isBefore'](_0x1d6fd7['start'])?_0x84ff3d:_0x1d6fd7['start'],_0x5a8a7b=_0x5a8a7b['isAfter'](_0x1d6fd7['end'])?_0x5a8a7b:_0x1d6fd7['end'],_0x158a44=Object['assign']({},_0x5740be['attributes']),_0x1902c0?_0x1d6fd7['start']['isBefore'](_0x1902c0['getFirstRange']()['start'])?(_0x1902c0['removeMarkers'](),_0x1902c0=_0x5740be):_0x5740be['removeMarkers']():_0x1902c0=_0x5740be;}}}if(_0x1902c0)return this['_setSuggestionRange'](_0x1902c0,this['_model']['createRange'](_0x84ff3d,_0x5a8a7b)),_0x1902c0;{const _0x2dd1d1=_0x59fa6d(),_0x567af5=this['_model']['createRange'](_0x84ff3d,_0x5a8a7b),_0x3c7c49=_0x43601d['id'],_0x17c3a8=_0x2d93bc?'deletion:'+_0x2d93bc:'deletion',_0x37d5f4=this['_setSuggestionData']({'id':_0x2dd1d1,'type':_0x17c3a8,'createdAt':new Date(),'authorId':_0x3c7c49,'attributes':_0x158a44});return this['_addSuggestionMarker'](_0x17c3a8,_0x2dd1d1,_0x3c7c49,_0x567af5),_0x37d5f4;}}['markMultiRangeDeletion'](_0x21c31e,_0x2892a1='multi',_0x54d726={}){const _0x3023c1=this['editor']['plugins']['get']('Users')['me'],_0x612c3f=_0x21c31e['map'](_0x45c1b4=>new _0x2192a8(_0x45c1b4['start'],_0x45c1b4['end'])),_0xac51de=new Set();this['_trackingSessionId']&&(_0x54d726['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x42d3f0,meta:_0x3748cf}of this['_findSuggestions'](_0x612c3f,'insertion'))_0x3748cf['isOwn']&&!_0x3748cf['isNextTo']&&_0xac51de['add'](_0x42d3f0);for(const _0x4d1195 of _0xac51de)if(_0x4d1195['isMultiRange']){const _0x2d5d49=_0x4d1195['getRanges']();(!_0x4d1195['attributes']||!_0x4d1195['attributes']['skipNestingCheck'])&&(_0x2d5d49['every'](_0x5974be=>_0x612c3f['some'](_0x587950=>_0x587950['containsRange'](_0x5974be,!0x0)))&&_0x4d1195['discard']());if(_0x612c3f['every'](_0x86017b=>_0x2d5d49['some'](_0x58a119=>_0x58a119['containsRange'](_0x86017b,!0x0)))){const _0x54bd63=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2892a1,'accept');return this['forceDefaultExecution'](()=>_0x54bd63(_0x21c31e,null,_0x54d726)),null;}}else{const _0x31e13a=_0x4d1195['getFirstRange']();_0x612c3f['some'](_0x24e772=>_0x24e772['containsRange'](_0x31e13a,!0x0))&&_0x4d1195['discard']();if(_0x612c3f['every'](_0x3e6d1d=>_0x31e13a['containsRange'](_0x3e6d1d,!0x0))){const _0x458538=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2892a1,'accept');return this['forceDefaultExecution'](()=>_0x458538(_0x612c3f,null,_0x54d726)),null;}}const _0x49d3ab=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2892a1,'join');let _0x3f6cb6=null;for(const _0x3d3457 of this['getSuggestions']())if(_0x3d3457['author']['id']==_0x3023c1['id']&&_0x3d3457['isInContent']&&'deletion'==_0x3d3457['type']&&_0x3d3457['subType']==_0x2892a1&&zt(_0x3d3457,_0x54d726)&&(_0x49d3ab(_0x3d3457['getRanges'](),_0x612c3f)||_0x49d3ab(_0x612c3f,_0x3d3457['getRanges']()))){if(_0x3f6cb6){if(_0x3d3457['commentThread']&&_0x3d3457['commentThread']['length'])continue;for(const _0x1aeb87 of _0x3d3457['getRanges']())_0x3f6cb6['isIntersectingWithRange'](_0x1aeb87)||_0x3f6cb6['addRange'](_0x1aeb87);_0x3d3457['removeMarkers']();}else{_0x3f6cb6=_0x3d3457;for(const _0x3ea474 of _0x612c3f)_0x3d3457['isIntersectingWithRange'](_0x3ea474)||_0x3d3457['addRange'](_0x3ea474);}}if(_0x3f6cb6)return _0x3f6cb6;_0xac51de['clear']();for(const {suggestion:_0x20e25f,meta:_0x360d7a}of this['_findSuggestions'](_0x612c3f,'deletion'))_0x360d7a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x360d7a['containsRangeInObject']&&!_0x360d7a['isInsideObject'])&&zt(_0x20e25f,_0x54d726)&&_0xac51de['add'](_0x20e25f);for(const _0x3baaa0 of _0xac51de){const _0x47cce6=_0x3baaa0['getRanges']();if(!_0x54d726||!_0x54d726['skipNestingCheck']){if(_0x612c3f['every'](_0x20f22f=>_0x47cce6['some'](_0x425063=>_0x425063['containsRange'](_0x20f22f,!0x0))))return _0x3baaa0;}(!_0x3baaa0['attributes']||!_0x3baaa0['attributes']['skipNestingCheck'])&&(_0x47cce6['every'](_0x1557ea=>_0x612c3f['some'](_0x3d659f=>_0x3d659f['containsRange'](_0x1557ea,!0x0)))&&_0x3baaa0['discard']());}const _0x41f1d9=_0x59fa6d(),_0x2702a1=_0x3023c1['id'],_0x18ff28='deletion:'+_0x2892a1,_0x18058d=this['_setSuggestionData']({'id':_0x41f1d9,'type':_0x18ff28,'createdAt':new Date(),'authorId':_0x2702a1,'attributes':_0x54d726});for(const _0x36c1e0 of _0x612c3f)_0x36c1e0['detach'](),_0x36c1e0['isCollapsed']||'$graveyard'==_0x36c1e0['root']['rootName']||this['_addSuggestionMarker'](_0x18ff28,_0x41f1d9,_0x2702a1,_0x36c1e0,Suggestion['getMultiRangeId']());return _0x18058d;}['markAttributeChange'](_0x44c65c,_0x3569da,_0x12b9f6,_0x427a0a,_0x1836bc){if(_0x44c65c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2ae15c=this['editor']['plugins']['get']('Users')['me']['id'],_0x17a2b7=Array['from'](this['_suggestions']['values']())['filter'](_0xe161b5=>'attribute'==_0xe161b5['type']&&_0xe161b5['data']['key']==_0x3569da&&_0xe161b5['isIntersectingWithRange'](_0x44c65c));if(this['_trackingSessionId']&&(_0x1836bc['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x37af2c=this['_findSuggestions'](_0x44c65c,'insertion')['filter'](({meta:_0x19a855})=>_0x19a855['isOwn']&&!_0x19a855['isInsideObject']&&!_0x19a855['isNextTo'])['map'](({suggestion:_0x115b31})=>_0x115b31);_0x17a2b7['unshift'](..._0x37af2c);}const _0x26d583=new Map([[_0x44c65c,_0x12b9f6]]);for(const _0x330b65 of _0x17a2b7){const _0x45a88c='attribute'==_0x330b65['type']?_0x330b65['data']['oldValue']:void 0x0,_0x58dfba=_0x330b65['getFirstRange'](),_0x522d92=Array['from'](_0x26d583['keys']())['find'](_0x164bde=>_0x164bde['isIntersecting'](_0x58dfba));if(!_0x522d92)continue;const _0x3f7bde=_0x522d92['getDifference'](_0x58dfba);this['_suggestionsConversion']['isBlockAttribute'](_0x3569da)&&'insertion'==_0x330b65['type']&&0x0!=_0x3f7bde['length']||(_0x26d583['delete'](_0x522d92),_0x3f7bde['forEach'](_0x15f435=>{_0x26d583['set'](_0x15f435,_0x12b9f6);}),'insertion'!=_0x330b65['type']&&_0x45a88c!=_0x427a0a&&_0x26d583['set'](_0x522d92['getIntersection'](_0x58dfba),_0x45a88c));}const _0x31c66a=[];for(const [_0x1389e8,_0x358389]of _0x26d583){const _0x31ce54=_0x59fa6d(),_0x1d569f={'key':_0x3569da,'oldValue':_0x358389,'newValue':_0x427a0a};_0x3569da['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':_0x3569da});const _0xaedf69=('attribute:'+(_0x3569da+'|'+Pt({'newValue':_0x427a0a})))['substring'](0x0,0x3c),_0xb95c68=this['_setSuggestionData']({'id':_0x31ce54,'type':_0xaedf69,'data':_0x1d569f,'createdAt':new Date(),'authorId':_0x2ae15c,'attributes':_0x1836bc});_0x31c66a['push'](_0xb95c68),this['_addSuggestionMarker'](_0xaedf69,_0x31ce54,_0x2ae15c,_0x1389e8);}return _0x31c66a;}['enableDefaultAttributesIntegration'](_0x572343){this['enableCommand'](_0x572343,(_0x3608a3,..._0x241fa3)=>{this['recordAttributeChanges'](()=>{_0x3608a3(..._0x241fa3);});});}['startTrackingSession'](_0x5b45cc){return this['_trackingSessionId']=void 0x0!==_0x5b45cc?_0x5b45cc:_0x59fa6d(),this['_trackingSessionId'];}['_getAttributeKey'](_0x29fa2d){return'attribute'==_0x29fa2d['type']?Xt(_0x29fa2d['subType']):null;}['_applyOperationsAsSuggestions'](_0x2a33c4){if(0x0==_0x2a33c4['length'])return;const _0x250072=this['editor'],_0x398092=_0x250072['plugins']['get'](_0x1d267d),_0x385831=[];_0x250072['model']['change'](_0x5c9746=>{for(let _0x287cb5=0x0;_0x287cb5<_0x2a33c4['length'];_0x287cb5++){const _0x457df4=_0x2a33c4[_0x287cb5];if(_0x457df4['baseVersion']=_0x250072['model']['document']['version'],_0x457df4['isDocumentOperation']=!0x0,_0x398092['isMarkedRemoveOperation'](_0x457df4)){const _0x19640b=_0x18e42e(_0x457df4['newRange'],_0x250072['model']);_0x385831['unshift'](_0x2192a8['fromRange'](_0x19640b));}else switch(_0x457df4['type']){case'rename':{const _0x77edb3=_0x457df4['oldName'],_0x10522d=_0x457df4['newName'];if(_0x77edb3==_0x10522d)break;_0x5c9746['batch']['addOperation'](_0x457df4),_0x250072['model']['applyOperation'](_0x457df4);const _0x3d4439='$elementName',_0x508e60=_0x457df4['position'],_0x55790e=_0x250072['model']['createRange'](_0x508e60,_0x250072['model']['createPositionAt'](_0x508e60['nodeAfter'],'end'));this['markAttributeChange'](_0x55790e,_0x3d4439,_0x77edb3,_0x10522d,{'groupId':_0x59fa6d()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x12286a=_0x457df4['oldValue'],_0x2a3585=_0x457df4['newValue'];if(_0x12286a==_0x2a3585)break;_0x5c9746['batch']['addOperation'](_0x457df4),_0x250072['model']['applyOperation'](_0x457df4);const _0x508680=_0x457df4['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x508680))break;const _0x49b092=_0x18e42e(_0x457df4['range'],_0x250072['model']);this['markAttributeChange'](_0x49b092,_0x508680,_0x12286a,_0x2a3585,{'groupId':_0x59fa6d()});break;}case'insert':{_0x5c9746['batch']['addOperation'](_0x457df4),_0x250072['model']['applyOperation'](_0x457df4);if(_0x2a33c4[_0x287cb5+0x1]&&'move'==_0x2a33c4[_0x287cb5+0x1]['type'])break;const _0x3900c4=_0x457df4['position'],_0x33b166=_0x457df4['howMany'],_0x46da0a=_0x18e42e(_0x250072['model']['createRange'](_0x3900c4,_0x3900c4['getShiftedBy'](_0x33b166)),_0x250072['model']);this['markInsertion'](_0x46da0a);break;}case'split':{_0x5c9746['batch']['addOperation'](_0x457df4),_0x250072['model']['applyOperation'](_0x457df4);const _0x229377=_0x457df4['splitPosition'],_0x4f9d7e=_0x457df4['moveTargetPosition'];this['markInsertion'](_0x250072['model']['createRange'](_0x229377,_0x4f9d7e));break;}case'move':case'remove':_0x5c9746['batch']['addOperation'](_0x457df4),_0x250072['model']['applyOperation'](_0x457df4);}}for(const _0x368ab4 of _0x385831)_0x368ab4['detach'](),this['markDeletion'](_0x368ab4);});}['_setSuggestionRange'](_0x19fcf6,_0x31edc8){const _0x198779=_0x19fcf6['getFirstMarker']();this['_model']['change'](_0x3d7bb5=>{_0x3d7bb5['updateMarker'](_0x198779,{'range':_0x31edc8});});}['_addThreadToSuggestion'](_0x34c2b7){const _0x3a9a82=_0x34c2b7['id'],_0x313a5b=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3a9a82)||this['_commentsRepository']['addCommentThread']({'channelId':_0x313a5b,'threadId':_0x3a9a82,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x473d52=this['_commentsRepository']['getCommentThread'](_0x3a9a82);_0x473d52['unbind']('isRemovable'),_0x473d52['isRemovable']=!0x1,_0x34c2b7['commentThread']=_0x473d52;}['_checkSuggestionCorrectness'](_0x25ea90,_0x4e4403,_0xd58eeb,_0xf10a47){if(_0x25ea90['type']!=_0x4e4403||_0x25ea90['subType']!=_0xd58eeb||_0x25ea90['creator']['id']!=_0xf10a47)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1d5f66('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4e2832,_0x281aa0){const _0x4e67d8=_0x4e2832['getFirstRange']();if(_0x281aa0['isEqual'](_0x4e67d8))_0x4e2832['removeMarkers']();else{if(_0x4e67d8['containsRange'](_0x281aa0)){const _0x1f71ed=this['_model']['createPositionAt'](_0x281aa0['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4e2832,this['_model']['createRange'](_0x4e67d8['start'],_0x1f71ed));const _0x3a378=_0x59fa6d(),_0x4022cd=_0x4e2832['creator']['id'],_0xa1955e=_0x4e2832['type']+':'+_0x4e2832['subType'];this['_setSuggestionData']({'id':_0x3a378,'type':_0xa1955e,'createdAt':new Date(),'authorId':_0x4022cd,'data':_0x4e2832['data'],'attributes':_0x4e2832['attributes']});const _0x3ceb3b=this['_model']['createPositionAt'](_0x281aa0['end']['parent'],'after'),_0x3ccf0b=this['_model']['createRange'](_0x3ceb3b,_0x4e67d8['end']);this['_addSuggestionMarker'](_0xa1955e,_0x3a378,_0x4022cd,_0x3ccf0b);}else{if(_0x4e67d8['containsPosition'](_0x281aa0['start'])){const _0x255050=this['_model']['createPositionAt'](_0x281aa0['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4e2832,this['_model']['createRange'](_0x4e67d8['start'],_0x255050));}else{const _0x14972f=this['_model']['createPositionAt'](_0x281aa0['end']['parent'],'after');this['_setSuggestionRange'](_0x4e2832,this['_model']['createRange'](_0x14972f,_0x4e67d8['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x35e8b0){for(const {suggestion:_0x506d2d,meta:_0x2da1dd}of this['_findSuggestions'](_0x35e8b0,'insertion')){if(!_0x2da1dd['isOwn'])continue;const _0x513178=_0x506d2d['getRanges']();for(const _0xd513fd of _0x513178)if(!_0x35e8b0['getDifference'](_0xd513fd)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1c3c53){return this['editor']['plugins']['get']('Users')['getUser'](_0x1c3c53);}['_getExternalAuthor'](_0x559263){const _0x4b16dc=this['editor']['plugins']['get']('Users'),_0x5a077e=_0x56801b('external:'+_0x559263),_0x31525b=_0x4b16dc['getUser'](_0x5a077e);return _0x31525b||_0x4b16dc['addUser']({'id':_0x5a077e,'name':_0x559263});}['_createSuggestion'](_0x564be4,_0x5734a2,_0x31f99f,_0x224628,_0x774bd,_0x2d27d5){const _0x229186=this['_getAuthorFromId'](_0x224628);if(!_0x229186)throw new _0x1d5f66('track-changes-user-not-found',this,{'authorId':_0x224628,'suggestionId':_0x31f99f});const _0x1d7f47=this['_suggestionFactory']['buildSuggestion'](_0x564be4,_0x5734a2,_0x31f99f,_0x229186,_0x774bd,_0x1b7745=>{this['_updateSuggestionData'](_0x31f99f,{'attributes':_0x1b7745});const _0x5310cd=this['getSuggestion'](_0x31f99f);this['_joinWithAdjacentSuggestions'](new Set([_0x5310cd])),this['_refreshSuggestionsChain'](new Set([_0x5310cd]));},_0x2d27d5);return this['listenTo'](_0x1d7f47,'accept',()=>{this['_updateSuggestionData'](_0x31f99f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1d7f47,'discard',()=>{this['_updateSuggestionData'](_0x31f99f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x31f99f,_0x1d7f47),this['_suggestionState']['set'](_0x1d7f47,'notReady'),_0x1d7f47;}['_breakSuggestionMarker'](_0xa5e6f6,_0x3c9a57,_0x2b7a57){const _0x157501=_0xa5e6f6['getFirstRange'](),_0x57e742=_0x157501['start'],_0x3e6265=_0x157501['end'];this['_setSuggestionRange'](_0xa5e6f6,this['_model']['createRange'](_0x57e742,_0x3c9a57));const _0x1a688d=_0x59fa6d(),_0x56db97=_0xa5e6f6['creator']['id'],_0xded813=_0xa5e6f6['type']+(_0xa5e6f6['subType']?':'+_0xa5e6f6['subType']:'');this['_setSuggestionData']({'id':_0x1a688d,'type':_0xded813,'createdAt':new Date(),'authorId':_0x56db97,'originalSuggestionId':_0xa5e6f6['_originalSuggestionId']||_0xa5e6f6['id'],'attributes':_0xa5e6f6['attributes'],'data':_0xa5e6f6['data']});const _0x52f47f=this['_getAttributeKey'](_0xa5e6f6);('formatBlock'==_0xa5e6f6['type']||_0x52f47f&&this['_suggestionsConversion']['isBlockAttribute'](_0x52f47f))&&(_0x2b7a57=this['_model']['createPositionBefore'](_0x2b7a57['parent'])),this['_addSuggestionMarker'](_0xded813,_0x1a688d,_0x56db97,this['_model']['createRange'](_0x2b7a57,_0x3e6265));}['_findSuggestions'](_0x9ccf57,_0x518c9e=null){const _0x1108a1=[],_0x4eafca=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x9ccf57)||(_0x9ccf57=[_0x9ccf57]);for(const _0x2f9aa7 of this['getSuggestions']()){if(!_0x2f9aa7['isInContent'])continue;if(_0x518c9e&&_0x2f9aa7['type']!=_0x518c9e)continue;let _0x18c987=!0x1;for(const _0x578910 of _0x2f9aa7['getRanges']()){for(const _0x19a344 of _0x9ccf57){const _0x28aaae=_0x19a344['start']['isEqual'](_0x578910['end'])||_0x19a344['end']['isEqual'](_0x578910['start']);if(_0x28aaae||_0x19a344['getIntersection'](_0x578910)){const _0x199e3d=_0x19a344['containsRange'](_0x578910)&&Dt(this['_model']['schema'],_0x578910['start'],_0x19a344),_0x42cfc8=_0x578910['containsRange'](_0x19a344)&&Dt(this['_model']['schema'],_0x19a344['start'],_0x578910);_0x1108a1['push']({'suggestion':_0x2f9aa7,'meta':{'isOwn':_0x4eafca==_0x2f9aa7['author'],'isNextTo':_0x28aaae,'isInsideObject':_0x199e3d,'containsRangeInObject':_0x42cfc8}}),_0x18c987=!0x0;break;}}if(_0x18c987)break;}}return _0x1108a1;}['_addSuggestionMarker'](_0x5b6da0,_0x39076b,_0x54a6a6,_0x1602c1,_0x1403be){this['_model']['change'](_0x5ecf48=>{let _0x194e70='suggestion:'+_0x5b6da0+':'+_0x39076b+':'+_0x54a6a6;_0x1403be&&(_0x194e70=_0x194e70+':'+_0x1403be),_0x5ecf48['addMarker'](_0x194e70,{'range':_0x1602c1,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3ba997){const _0x1fce34=_0x3ba997['previous'],_0x171751=_0x3ba997['next'];_0x3ba997['previous']=null,_0x3ba997['next']=null,null!=_0x1fce34&&_0x1fce34['next']==_0x3ba997&&(_0x1fce34['next']=_0x171751),null!=_0x171751&&_0x171751['previous']==_0x3ba997&&(_0x171751['previous']=_0x1fce34),'ready'==this['_suggestionState']['get'](_0x3ba997)&&(this['_suggestionState']['set'](_0x3ba997,'removed'),this['fire']('suggestionUnloaded',_0x3ba997,_0x1fce34,_0x171751));}['_setSuggestionData'](_0x9846f4){const _0x1fc307=_0x9846f4['id'],_0x349236=this['addSuggestionData'](_0x9846f4);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x54a6ba=this['editor']['plugins']['get']('PendingActions'),_0x3060e4=_0x349236['hasComments'],_0x287a78=_0x349236['subType']?_0x349236['type']+':'+_0x349236['subType']:_0x349236['type'],_0x46e51d=this['editor']['locale'],_0x10561c=_0x54a6ba['add'](Tt(_0x46e51d,'PENDING_ACTION_SUGGESTION')),_0x1fcd2f={'id':_0x1fc307,'type':_0x287a78,'hasComments':_0x3060e4,'data':_0x9846f4['data']||null,'originalSuggestionId':_0x9846f4['originalSuggestionId']||null,'attributes':_0x349236['attributes']};this['_adapter']['addSuggestion'](_0x1fcd2f)['then'](_0x5ad569=>{_0x349236['_saved']=!0x0,_0x54a6ba['remove'](_0x10561c),_0x5ad569&&_0x5ad569['createdAt']&&(this['_suggestions']['get'](_0x1fc307)['createdAt']=_0x5ad569['createdAt']);})['catch'](_0x3f6a55=>{throw _0x29d360('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x349236['discard']();}),_0x349236['stopListening'](),this['_suggestions']['delete'](_0x349236['id']),this['_suggestionState']['delete'](_0x349236),_0x3f6a55;});}return _0x349236;}['_updateSuggestionData'](_0x35d5b4,_0x3af9e8){const _0x342f7e=this['editor']['plugins']['get']('PendingActions'),_0x37722b=this['getSuggestion'](_0x35d5b4);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x37722b['_saved']){const _0x26cfa3=_0x342f7e['add'](Tt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x35d5b4,_0x3af9e8)['then'](()=>{_0x342f7e['remove'](_0x26cfa3);});}else _0x37722b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x35d5b4,_0x3af9e8);});}}['_getSuggestionData'](_0x5b24f9){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1d5f66('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5b24f9);}['_handleNewSuggestionMarker'](_0x24a760){const {id:_0x22d2b3,type:_0x5ca5e9,subType:_0x238ab4,authorId:_0x583574}=_0x2522cc(_0x24a760),_0x116984=this['_suggestions']['get'](_0x22d2b3)||this['_createSuggestion'](_0x5ca5e9,_0x238ab4,_0x22d2b3,_0x583574,{});switch(this['_checkSuggestionCorrectness'](_0x116984,_0x5ca5e9,_0x238ab4,_0x583574),this['_suggestionState']['get'](_0x116984)){case'notReady':this['_getSuggestionData'](_0x22d2b3)['then'](_0x43daf6=>{let _0x4d8a83=Promise['resolve']();_0x43daf6['hasComments']&&(_0x4d8a83=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x22d2b3})),_0x4d8a83['then'](()=>{this['addSuggestionData'](_0x43daf6)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x116984,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x22d2b3,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x116984,'ready'),this['fire']('suggestionLoaded',_0x116984);break;case'ready':this['fire']('suggestionChanged',_0x116984);}return _0x116984['addMarkerName'](_0x24a760),_0x116984;}['_refreshSuggestionsChain'](_0x575865){const _0x44c94b=Array['from'](_0x575865),_0x20661e=_0x44c94b['filter'](_0x2bb1ed=>'attribute'==_0x2bb1ed['type']);this['_refreshAttributeSuggestionsChain'](_0x20661e);const _0x519507=_0x44c94b['filter'](_0x22d388=>!_0x22d388['isMultiRange']&&'attribute'!=_0x22d388['type']),_0x2a53d2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ef974=>!_0x3ef974['isMultiRange']&&'attribute'!=_0x3ef974['type']),_0x130138=_0x2a53d2['filter'](_0x2fbc33=>!_0x575865['has'](_0x2fbc33)),_0x1d0c3e=new Map(_0x2a53d2['map'](_0x161b96=>[_0x161b96,this['_suggestionFactory']['getSuggestionCallback'](_0x161b96['type'],_0x161b96['subType'],'chain')])),_0x2bdffe=new Map(_0x2a53d2['map'](_0xa8bd63=>[_0xa8bd63,_0xa8bd63['getFirstRange']()])),_0x5940f9=new Set(),_0x4ab58e=new Set();for(let _0x566406=0x0;_0x566406<_0x519507['length'];_0x566406++)_0x1f0537(_0x519507[_0x566406],_0x519507,_0x566406+0x1);for(let _0x537db5=0x0;_0x537db5<_0x519507['length'];_0x537db5++)_0x1f0537(_0x519507[_0x537db5],_0x130138,0x0);const _0xa4b8da=new Set();for(let _0x3c2e16=0x0;_0x3c2e16<_0x519507['length'];_0x3c2e16++){const _0x30c372=_0x519507[_0x3c2e16];!_0x4ab58e['has'](_0x30c372)&&_0x30c372['previous']&&(_0xa4b8da['add'](_0x30c372['previous']),_0x30c372['previous']['next']===_0x30c372&&(_0x30c372['previous']['next']=null),_0x30c372['previous']=null),!_0x5940f9['has'](_0x30c372)&&_0x30c372['next']&&(_0xa4b8da['add'](_0x30c372['next']),_0x30c372['next']['previous']===_0x30c372&&(_0x30c372['next']['previous']=null),_0x30c372['next']=null);}function _0x1f0537(_0x3ad618,_0x3546e3,_0x41067e){for(let _0x7980c7=_0x41067e;_0x7980c7<_0x3546e3['length'];_0x7980c7++){const _0x414f6f=_0x149e28(_0x3ad618,_0x3546e3[_0x7980c7]);_0x414f6f&&(_0x414f6f[0x0]['next']=_0x414f6f[0x1],_0x414f6f[0x1]['previous']=_0x414f6f[0x0],_0x5940f9['add'](_0x414f6f[0x0]),_0x4ab58e['add'](_0x414f6f[0x1]));}}function _0x149e28(_0x28ef48,_0x135518){if(_0x28ef48['author']['id']!==_0x135518['author']['id'])return null;const _0x54bf54=_0x1d0c3e['get'](_0x28ef48)(_0x28ef48,_0x135518,_0x2bdffe['get'](_0x28ef48),_0x2bdffe['get'](_0x135518));if(!_0x54bf54)return null;return _0x1d0c3e['get'](_0x135518)(_0x28ef48,_0x135518,_0x2bdffe['get'](_0x28ef48),_0x2bdffe['get'](_0x135518))?_0x54bf54[0x1]['commentThread']&&_0x54bf54[0x1]['commentThread']['length']?null:_0x54bf54:null;}_0xa4b8da['size']&&this['_refreshSuggestionsChain'](_0xa4b8da);}['_refreshAttributeSuggestionsChain'](_0x3082b8){if(0x0==_0x3082b8['length'])return;const _0x361b46=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4c5ee6=>'attribute'==_0x4c5ee6['type']&&_0x4c5ee6['_isDataLoaded']),_0x13a3a5=[],_0x15a27f=new Map();for(const _0x4ca728 of _0x361b46){const _0xf1d351=_0x56801b(_0x4ca728['attributes']);_0x15a27f['has'](_0xf1d351)||(_0x15a27f['set'](_0xf1d351,_0x13a3a5['length']),_0x13a3a5['push']([]));const _0x5e2290=_0x15a27f['get'](_0xf1d351);_0x13a3a5[_0x5e2290]['push'](_0x4ca728);}!(function(){_0x13a3a5['sort']((_0x5cb9de,_0x7d5f1f)=>{const _0x314a88=_0x5cb9de[0x0]['createdAt'],_0x315e6e=_0x7d5f1f[0x0]['createdAt'];return _0x314a88==_0x315e6e?_0x5cb9de[0x0]['attributes']['groupId']<_0x7d5f1f[0x0]['attributes']['groupId']?-0x1:0x1:_0x314a88<_0x315e6e?-0x1:0x1;});for(const _0xb292c4 of _0x13a3a5)_0xb292c4['sort']((_0x229822,_0x4c66f4)=>_0x229822['id']<_0x4c66f4['id']?-0x1:0x1);}());for(let _0x1689c5=0x0;_0x1689c5<_0x13a3a5['length'];_0x1689c5++){if(0x0==_0x13a3a5[_0x1689c5]['length'])continue;const _0x350b86=[];for(let _0x1be541=_0x1689c5+0x1;_0x1be541<_0x13a3a5['length'];_0x1be541++)0x0!=_0x13a3a5[_0x1be541]['length']&&_0x2b3b5c(_0x13a3a5[_0x1689c5],_0x13a3a5[_0x1be541])&&_0x350b86['push'](_0x1be541);for(const _0x30d00b of _0x350b86)_0x13a3a5[_0x1689c5]=_0x13a3a5[_0x1689c5]['concat'](_0x13a3a5[_0x30d00b]),_0x13a3a5[_0x30d00b]=[];}for(const _0x127e95 of _0x13a3a5)for(let _0x23cdfe=0x0;_0x23cdfe<_0x127e95['length'];_0x23cdfe++){const _0x5bf391=_0x127e95[_0x23cdfe+0x1]||null;_0x127e95[_0x23cdfe]['next']!==_0x5bf391&&(_0x127e95[_0x23cdfe]['next']=_0x5bf391);}for(const _0x111162 of _0x13a3a5)for(let _0x1c6efc=0x0;_0x1c6efc<_0x111162['length'];_0x1c6efc++){const _0x2708ff=_0x111162[_0x1c6efc-0x1]||null;_0x111162[_0x1c6efc]['previous']!==_0x2708ff&&(_0x111162[_0x1c6efc]['previous']=_0x2708ff);}function _0x2b3b5c(_0x2f0429,_0x3bcbfd){if(_0x2f0429[0x0]['attributes']['groupId']!==_0x3bcbfd[0x0]['attributes']['groupId']&&_0x2f0429[0x0]['author']!==_0x3bcbfd[0x0]['author'])return!0x1;if(!function(_0x17c1cd,_0x3a1fb3){if(!_0x17c1cd['hasComments']&&!_0x3a1fb3['hasComments'])return!0x0;if(_0x17c1cd['hasComments']&&_0x3a1fb3['hasComments'])return!0x1;if(_0x17c1cd['hasComments']&&_0x3a1fb3['createdAt']<_0x17c1cd['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3a1fb3['hasComments']&&_0x17c1cd['createdAt']<_0x3a1fb3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2f0429[0x0],_0x3bcbfd[0x0]))return!0x1;const _0x5a8f5b=ot(_0x2f0429[0x0]['attributes'],['groupId','trackingSessionId']),_0x45648f=ot(_0x3bcbfd[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x5a8f5b,_0x45648f))return!0x1;if(_0x2f0429[0x0]['attributes']['groupId']==_0x3bcbfd[0x0]['attributes']['groupId'])return!0x0;if(_0x2f0429[0x0]['attributes']['trackingSessionId']!==_0x3bcbfd[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x2f0429['every'](_0x21a95b=>_0x3bcbfd['some'](_0x81c424=>_0x21a95b['getFirstRange']()['isEqual'](_0x81c424['getFirstRange']())))&&_0x3bcbfd['every'](_0x16ab30=>_0x2f0429['some'](_0x4e1243=>_0x16ab30['getFirstRange']()['isEqual'](_0x4e1243['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3f5a04){const _0x222ffb=Array['from'](_0x3f5a04),_0x24ff35=this['getSuggestions']({'skipNotAttached':!0x0}),_0x454306=_0x24ff35['filter'](_0xbe2512=>!_0x3f5a04['has'](_0xbe2512)),_0x9ae7c9=new Map(_0x222ffb['map'](_0x4e032b=>[_0x4e032b,this['_suggestionFactory']['getSuggestionCallback'](_0x4e032b['type'],_0x4e032b['subType'],'join')])),_0x4a295e=new Map(_0x24ff35['map'](_0x353982=>[_0x353982,_0x353982['getRanges']()]));for(let _0x2544a3=0x0;_0x2544a3<_0x222ffb['length'];_0x2544a3++){if(_0x47fc67(this,_0x222ffb[_0x2544a3],_0x222ffb,_0x2544a3+0x1))return!0x0;}for(let _0x60a000=0x0;_0x60a000<_0x222ffb['length'];_0x60a000++){if(_0x47fc67(this,_0x222ffb[_0x60a000],_0x454306,0x0))return!0x0;}return!0x1;function _0x47fc67(_0x1faa98,_0x2e6fda,_0x4c9e09,_0x557ad6){for(let _0x1d6ffe=_0x557ad6;_0x1d6ffe<_0x4c9e09['length'];_0x1d6ffe++){const _0xc36c00=_0x4c9e09[_0x1d6ffe];if(_0xc36c00['type']!==_0x2e6fda['type']||_0xc36c00['author']['id']!==_0x2e6fda['author']['id']||_0xc36c00['subType']!==_0x2e6fda['subType'])continue;if(!jt(_0x2e6fda,_0xc36c00))continue;if('attribute'==_0x2e6fda['type']&&_0x2e6fda['data']['oldValue']!=_0xc36c00['data']['oldValue'])continue;if('attribute'==_0x2e6fda['type']&&_0x1faa98['_suggestionsConversion']['isBlockAttribute'](_0x2e6fda['data']['key']))continue;if('formatBlock'==_0x2e6fda['type']){const _0x5706ef=_0x1faa98['editor']['model'],_0x282d1d=_0x2e6fda['getContainedElement']();if(_0x282d1d&&(_0x5706ef['schema']['isObject'](_0x282d1d)||_0x5706ef['schema']['isLimit'](_0x282d1d)))continue;}const _0x213cd7=_0x9ae7c9['get'](_0x2e6fda),_0x5a7259=_0x4a295e['get'](_0x2e6fda),_0x5d1a9d=_0x4a295e['get'](_0xc36c00),_0x1225da=_0x2e6fda['commentThread']&&_0x2e6fda['commentThread']['length'],_0x35128f=_0xc36c00['commentThread']&&_0xc36c00['commentThread']['length'];if(!_0x1225da&&_0x213cd7(_0x5d1a9d,_0x5a7259))return _0x1faa98['_joinSuggestions'](_0xc36c00,_0x2e6fda),_0x4a295e['delete'](_0x2e6fda),!0x0;if(!_0x35128f&&_0x213cd7(_0x5a7259,_0x5d1a9d))return _0x1faa98['_joinSuggestions'](_0x2e6fda,_0xc36c00),_0x4a295e['delete'](_0xc36c00),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4a0f21,_0x5f24db){if(_0x4a0f21['isMultiRange']){for(const _0x5e2099 of _0x5f24db['getRanges']())_0x4a0f21['addRange'](_0x5e2099);}else{const _0x11f785=_0x5f24db['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4a0f21,this['_model']['createRange'](_0x4a0f21['getFirstRange']()['start'],_0x11f785));}_0x5f24db['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2cd903,_0x3ade69,_0x48ae3c){const _0x87365f=_0x2cd903['startsWith']('format')||_0x2cd903['startsWith']('attribute')?'FORMATTING':_0x2cd903['toUpperCase']();return Tt(this['editor']['locale'],_0x3ade69+'_'+_0x87365f+'_SUGGESTION_ANNOUNCEMENT',_0x48ae3c);}['_initAriaMarkerChangeAnnouncements'](){const _0x45c4dd=this['editor'];if(!_0x45c4dd['ui'])return;const {ariaLiveAnnouncer:_0xa5ec40}=_0x45c4dd['ui'];_0xf39aab(this['_model'],({left:_0x1e10b0,entered:_0x3ff869})=>{for(const _0x256a4f of _0x1e10b0){const {group:_0x26ced9,type:_0xa30f13}=_0x2522cc(_0x256a4f['name']);if('suggestion'===_0x26ced9){_0xa5ec40['announce'](this['_getMarkerAnnouncementText'](_0xa30f13,'LEAVE'));break;}}for(const _0x583171 of _0x3ff869){const {group:_0x242d97,type:_0x49893a}=_0x2522cc(_0x583171['name']);if('suggestion'===_0x242d97){_0xa5ec40['announce'](this['_getMarkerAnnouncementText'](_0x49893a,'ENTER',_0x43c0a4(_0x2f9019)));break;}}});}['_processAttributeChanges'](_0x36c5dd){if(this['_recordAttributeSuggestions'])return!0x1;const _0x381366=this['editor'],_0x33b00e=_0x381366['model']['document']['differ']['getChanges']();if(0x0==_0x33b00e['length'])return!0x1;const _0x56bc25=[],_0x43354f=_0x33b00e['filter'](_0x186cde=>'attribute'==_0x186cde['type']),_0x291225=_0x33b00e['filter'](_0x6fd6d8=>'insert'==_0x6fd6d8['type']&&'$text'!=_0x6fd6d8['name']),_0xc6418f=_0x33b00e['filter'](_0x4c5412=>'remove'==_0x4c5412['type']&&'$text'!=_0x4c5412['name']);for(const _0x3b8ca6 of _0x43354f)_0x56bc25['push']({'key':_0x3b8ca6['attributeKey'],'newValue':_0x3b8ca6['attributeNewValue'],'oldValue':_0x3b8ca6['attributeOldValue'],'range':$t(_0x3b8ca6['range'],_0x381366['model'])});for(const _0x51fb2a of _0x291225){const _0x48ba1d=_0xc6418f['find'](_0x587db9=>_0x587db9['position']['isEqual'](_0x51fb2a['position']));_0x48ba1d&&_0x56bc25['push']({'key':Ft,'newValue':_0x51fb2a['name'],'oldValue':_0x48ba1d['name'],'range':_0x381366['model']['createRangeOn'](_0x51fb2a['position']['nodeAfter'])});}return 0x0!=_0x56bc25['length']&&this['_reduceExistingSuggestions'](_0x36c5dd,_0x56bc25);}['_processAttributeSuggestions'](_0x2f71de){let _0x1cd57b=!0x1;const _0x3ed20c=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x49c66e=>_0x49c66e['data']['newRange']&&_0x49c66e['name']['startsWith']('suggestion:attribute:'));for(const _0x19feb1 of _0x3ed20c){const {subType:_0xb32fa3,id:_0x5c604a}=_0x2522cc(_0x19feb1['name']),_0xd52669=_0xb32fa3['split']('|')[0x0];for(const _0x4df19c of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4df19c['id']!=_0x5c604a&&'attribute'==_0x4df19c['type']&&_0x4df19c['data']&&_0x4df19c['data']['key']==_0xd52669&&_0x4df19c['getFirstRange']()['isIntersecting'](_0x19feb1['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4df19c,_0x19feb1['data']['newRange'],_0x2f71de),_0x1cd57b=!0x0);}return _0x1cd57b;}['recordAttributeChanges'](_0x5882e2){this['_recordAttributeSuggestions']=!0x0,_0x5882e2();}['_reduceExistingSuggestions'](_0x1288b9,_0x2d4efe){if(0x0==_0x2d4efe['length'])return!0x1;let _0xcddca9=!0x1;for(const _0x505af0 of _0x2d4efe){const _0x4465f7=this['_findSuggestions'](_0x505af0['range'],'attribute')['filter'](_0x331c04=>!_0x331c04['meta']['isNextTo'])['map'](_0x72b6d5=>_0x72b6d5['suggestion']),_0x4d7e67=_0x56801b({'newValue':_0x505af0['newValue']});_0x4465f7['filter'](_0x3fd66a=>{const [_0x4ff310,_0x5e9862]=_0x3fd66a['subType']['split']('|');return _0x4ff310==_0x505af0['key']&&_0x5e9862!=_0x4d7e67;})['forEach'](_0x1718b9=>{this['_reduceSuggestionAttributeRange'](_0x1718b9,_0x505af0['range'],_0x1288b9),_0xcddca9=!0x0;});}return _0xcddca9;}['_reduceSuggestionAttributeRange'](_0x2e79e8,_0x3d53c0,_0x1e8185){const _0x26a6dd=_0x2e79e8['getFirstRange']()['getDifference'](_0x3d53c0);0x0!==_0x26a6dd['length']?0x1!==_0x26a6dd['length']?this['_breakSuggestionMarker'](_0x2e79e8,_0x3d53c0['start'],_0x3d53c0['end']):this['_setSuggestionRange'](_0x2e79e8,_0x26a6dd[0x0]):_0x1e8185['removeMarker'](_0x2e79e8['getFirstMarker']());}}class SuggestionFactory{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4725bc){this['_editor']=_0x4725bc,this['_model']=_0x4725bc['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x13d83b,_0x444dad,_0x29956c,_0xcb068f,_0x3ff00d,_0x46ef17,_0x3455d5){return new Suggestion(this['_model'],{'type':_0x13d83b,'subType':_0x444dad,'id':_0x29956c,'originalSuggestionId':_0x3455d5,'author':_0xcb068f,'creator':_0xcb068f,'attributes':_0x3ff00d,'onAttributesChange':_0x46ef17,'onAccept':(..._0x120ce9)=>this['getSuggestionCallback'](_0x13d83b,_0x444dad,'accept')(..._0x120ce9),'onDiscard':(..._0x1978e8)=>this['getSuggestionCallback'](_0x13d83b,_0x444dad,'discard')(..._0x1978e8)});}['registerCustomCallback'](_0xf749dc,_0x3e85c5,_0x1acb88,_0x457244){const _0x3d0703=_0xf749dc+':'+_0x3e85c5+':'+_0x1acb88;this['_customCallbacks']['set'](_0x3d0703,_0x457244);}['getSuggestionCallback'](_0x4c076f,_0x109454,_0x497cf0){const _0x380b1f=_0x4c076f+':'+_0x109454+':'+_0x497cf0;return this['_customCallbacks']['get'](_0x380b1f)||this['_defaultCallbacks']['get'](_0x4c076f+':'+_0x497cf0);}['_registerDefaultCallbacks'](){const _0x5a776a=()=>!0x1,_0x4c365b=_0xa69f44=>{_0xa69f44['sort']((_0x4f083e,_0x47d873)=>_0x4f083e['start']['isBefore'](_0x47d873['start'])?0x1:-0x1),this['_model']['change'](_0x3fa2a2=>{for(const _0x2a7435 of _0xa69f44){let _0x4340a4;_0x4340a4=_0x2a7435['end']['isAtEnd']&&_0x2a7435['end']['parent']==_0x2a7435['start']['nodeAfter']?_0x3fa2a2['createSelection'](_0x2a7435['start']['nodeAfter'],'on'):_0x3fa2a2['createSelection'](_0x2a7435),this['_model']['deleteContent'](_0x4340a4,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x691f5e=(_0x5e9bc9,_0x11032e)=>{_0x11032e&&this['_model']['change'](_0x53a976=>{const {commandName:_0x1e5d5d,commandParams:_0x3e71b0=[]}=_0x11032e,_0xaa208a=_0x5e9bc9['map'](_0x1ce4f0=>(vt(_0x1ce4f0)&&(_0x1ce4f0=this['_model']['createRange'](_0x1ce4f0['end'])),_0x1ce4f0))['filter'](_0xc9572c=>'$graveyard'!==_0xc9572c['root']['rootName']);if(_0xaa208a['length']<0x1)return;const _0x5e2680=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xd1b3af=>_0x2192a8['fromRange'](_0xd1b3af));_0x53a976['setSelection'](_0xaa208a);for(const _0x4af907 of this['_editor']['commands']['commands']())_0x4af907['refresh']();_0x3e71b0['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1e5d5d,..._0x3e71b0);const _0x5e9cdf=_0x5e2680['filter'](_0x3cf47e=>'$graveyard'!=_0x3cf47e['root']['rootName']);_0x5e9cdf['length']>0x0&&_0x53a976['setSelection'](_0x5e9cdf);for(const _0x44b26f of _0x5e2680)_0x44b26f['detach']();});},_0x52b2d2=(_0x5451dd,_0x23e535)=>0x1==_0x5451dd['length']&&0x1==_0x23e535['length']&&_0x5451dd[0x0]['end']['isEqual'](_0x23e535[0x0]['start']),_0x2e7730=(_0x14c99a,_0x4721bf,_0x545720,_0x55dfb9)=>Wt(_0x14c99a,_0x4721bf,_0x545720,_0x55dfb9)?[_0x14c99a,_0x4721bf]:Wt(_0x4721bf,_0x14c99a,_0x55dfb9,_0x545720)?[_0x4721bf,_0x14c99a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5a776a),this['_defaultCallbacks']['set']('insertion:discard',_0x4c365b),this['_defaultCallbacks']['set']('insertion:join',_0x52b2d2),this['_defaultCallbacks']['set']('insertion:chain',_0x2e7730),this['_defaultCallbacks']['set']('deletion:accept',_0x4c365b),this['_defaultCallbacks']['set']('deletion:discard',_0x5a776a),this['_defaultCallbacks']['set']('deletion:join',_0x52b2d2),this['_defaultCallbacks']['set']('deletion:chain',_0x2e7730),this['_defaultCallbacks']['set']('formatInline:accept',_0x691f5e),this['_defaultCallbacks']['set']('formatInline:discard',_0x5a776a),this['_defaultCallbacks']['set']('formatInline:join',_0x52b2d2),this['_defaultCallbacks']['set']('formatInline:chain',_0x5a776a),this['_defaultCallbacks']['set']('formatBlock:accept',_0x691f5e),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5a776a),this['_defaultCallbacks']['set']('formatBlock:join',_0x52b2d2),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5a776a),this['_defaultCallbacks']['set']('attribute:accept',_0x5a776a),this['_defaultCallbacks']['set']('attribute:discard',(_0x188c95,_0xd3056)=>{if(!_0xd3056)return;const _0x3ce2fa=this['_editor']['plugins']['get'](_0x54b9f2);this['_model']['change'](_0xd7ec62=>{if(_0xd3056['key']==Ft)for(const _0x5cfb66 of _0x188c95){const _0x4d02d8=_0x5cfb66['start']['nodeAfter'],_0x338c0d=_0xd3056['oldValue'];_0xd7ec62['rename'](_0x4d02d8,_0x338c0d);}else{if(_0x3ce2fa['isBlockAttribute'](_0xd3056['key'])){for(const _0x22a282 of _0x188c95)void 0x0!==_0xd3056['oldValue']?_0xd7ec62['setAttribute'](_0xd3056['key'],_0xd3056['oldValue'],_0x22a282['start']['nodeAfter']):_0xd7ec62['removeAttribute'](_0xd3056['key'],_0x22a282['start']['nodeAfter']);}else{for(const _0x1e55f9 of _0x188c95)_0xd3056['oldValue']?_0xd7ec62['setAttribute'](_0xd3056['key'],_0xd3056['oldValue'],_0x1e55f9):_0xd7ec62['removeAttribute'](_0xd3056['key'],_0x1e55f9);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x52b2d2);}}function Dt(_0x494d9c,_0x5bdb5f,_0xe9db4b){for(const _0x397e44 of _0x5bdb5f['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x397e44['root']==_0x397e44)return!0x1;if(!_0xe9db4b['containsItem'](_0x397e44))return!0x1;if(_0x494d9c['isObject'](_0x397e44)||_0x494d9c['isLimit'](_0x397e44))return!0x0;}return!0x1;}function vt(_0x58de5d){return _0x58de5d['end']['parent']==_0x58de5d['start']['nodeAfter']&&_0x58de5d['end']['isAtStart'];}function xt(_0x23d905,_0xa80ddd,_0x4e05ff,_0x59e117){const _0x532852=_0x10cb9d=>!_0x10cb9d['item']['is']('$textProxy')&&!_0x59e117['isObject'](_0x10cb9d['item']),_0x17ce78=_0x23d905['start']['getLastMatchingPosition'](_0x532852),_0x236687=_0x23d905['end']['getLastMatchingPosition'](_0x532852,{'direction':'backward'});return(!_0x23d905['start']['isEqual'](_0x17ce78)||!_0x23d905['end']['isEqual'](_0x236687))&&(_0x17ce78['isBefore'](_0x236687)?_0x4e05ff['updateMarker'](_0xa80ddd,{'range':_0x4e05ff['createRange'](_0x17ce78,_0x236687)}):_0x4e05ff['removeMarker'](_0xa80ddd),!0x0);}function Pt(_0xe8c469){return _0x56801b(_0xe8c469);}function Ut(_0x8fed7a){const _0x23fb2a=_0x8fed7a['start']['nodeAfter'];return _0x23fb2a&&_0x23fb2a['is']('element');}function Gt(_0x2da840){return vt(_0x2da840)||function(_0x3ec060){return _0x3ec060['start']['parent']==_0x3ec060['end']['nodeBefore']&&_0x3ec060['start']['isAtEnd'];}(_0x2da840);}function Ht(_0x748dd4,_0x310e50){try{const _0x159680=_0x748dd4['getRange']();for(const _0x174a98 of _0x310e50)if(_0x748dd4!==_0x174a98&&_0x159680&&_0x159680['isIntersecting'](_0x174a98['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function $t(_0x24ab39,_0x356355){return null==_0x24ab39['end']['nodeBefore']&&_0x24ab39['end']['parent']==_0x24ab39['start']['nodeAfter']?Vt(_0x24ab39['start']['nodeAfter'],_0x356355):_0x24ab39;}function Vt(_0x57bbcc,_0x5040f5){const _0x37ecb2=_0x5040f5['schema']['isObject'](_0x57bbcc)||_0x5040f5['schema']['isSelectable'](_0x57bbcc);return _0x5040f5['createRange'](_0x5040f5['createPositionAt'](_0x57bbcc,'before'),_0x37ecb2?_0x5040f5['createPositionAfter'](_0x57bbcc):_0x5040f5['createPositionAt'](_0x57bbcc,'end'));}function Wt(_0x237f52,_0x4729bc,_0x3b1063,_0x148a2b){return!!jt(_0x237f52,_0x4729bc)&&_0x3b1063['end']['isEqual'](_0x148a2b['start']);}function jt(_0x1226ec,_0x52acfd){if(!_0x1226ec['_isDataLoaded']||!_0x52acfd['_isDataLoaded'])return!0x1;const _0x37c2fa=new Set(Object['keys'](_0x1226ec['attributes'])),_0x1d2693=new Set(Object['keys'](_0x52acfd['attributes']));if(_0x37c2fa['delete']('groupId'),_0x1d2693['delete']('groupId'),0x0==_0x37c2fa['size']&&0x0==_0x1d2693['size'])return!0x0;if(_0x37c2fa['size']!=_0x1d2693['size'])return!0x1;const _0x2839a4={..._0x1226ec['attributes']},_0x2742c5={..._0x52acfd['attributes']};return delete _0x2839a4['groupId'],delete _0x2742c5['groupId'],JSON['stringify'](_0x2839a4)==JSON['stringify'](_0x2742c5);}function zt(_0x548b7e,_0x46d167){const _0x1a06c4=Kt(_0x548b7e['attributes']),_0x2be66e=Kt(_0x46d167);if(!_0x548b7e['_isDataLoaded'])return!0x1;for(const _0x10193b of Object['keys'](_0x2be66e))if(!st(_0x1a06c4[_0x10193b],_0x2be66e[_0x10193b]))return!0x1;return!0x0;}function Kt(_0x5d908c){const _0x29a9b4=Object['assign']({},_0x5d908c);return delete _0x29a9b4['skipNestingCheck'],delete _0x29a9b4['tablePasteChainId'],_0x29a9b4;}function Xt(_0xf63bf8){return _0xf63bf8['split']('|')[0x0];}class SuggestionController extends/* #__PURE__ -- @preserve */
26
+ _0x2cad71(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1c88de,_0x518002,_0x37cfc9,_0x77996){super(),this['model']=_0x518002,this['view']=_0x37cfc9,this['commentThreadController']=_0x77996,this['_editor']=_0x1c88de,this['_acceptCommand']=_0x1c88de['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1c88de['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x50324c,_0x2f578d)=>_0x50324c||_0x2f578d),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2eda1f=>_0x2eda1f&&this['_editor']['model']['canEditAt'](_0x518002['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x333e0d=>_0x333e0d&&this['_editor']['model']['canEditAt'](_0x518002['getRanges']())),this['_pendingAction']=null,_0x37cfc9['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x37cfc9,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x37cfc9,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x37cfc9,'change:isDirty',()=>{_0x37cfc9['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 _0x575ffa=Tt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x575ffa);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class BaseSuggestionThreadView extends _0x219eee{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x156252,_0x3f14ee,_0x173b32,_0x1e0a4a){super(_0x156252),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4a1a2d(_0x156252,Tt(_0x156252,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3f14ee['authoredAt']),this['bind']('authoredAt')['to'](_0x3f14ee),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',_0x3f14ee,'authoredAt',this,'descriptionParts',(_0x174ed2,_0x53de3b,_0x27d278)=>{const _0xd07eef=_0x27d278['map'](_0x28127c=>ht(_0x28127c['content']))['join']('.\x20')+'.';return Tt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x174ed2-0x1,_0x3f14ee['author']['name'],_0x53de3b?_0x1e0a4a['formatDateTime'](_0x53de3b):'',new DOMParser()['parseFromString'](_0xd07eef,'text/html')['body']['textContent']]);}),this['focusables']=new _0x41b3a9(),this['focusTracker']=new _0x5c0eff(),this['keystrokes']=new _0x14ab05(),this['focusCycler']=new _0x27ae21({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3c1f69=>_0x3c1f69['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3f14ee,this['_localUser']=_0x173b32,this['_config']=_0x1e0a4a,_0x1e0a4a['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x414f5c(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x537a1c}=this['_config'];this['commentsListView']=new _0x537a1c(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',_0x395550=>_0x395550+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x51504b,_0x54a5f5)=>_0x51504b||!!_0x54a5f5);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2c6ebe}=this['_config'],_0x310344=new _0x2c6ebe(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4355f7=_0x310344['commentInputView'];return _0x310344['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4355f7,'value',(_0x1fe339,_0x3e05a8,_0x4e1e70)=>!!_0x4e1e70||_0x1fe339&&!_0x3e05a8),_0x4355f7['on']('submit',(_0x235d0c,_0x362af5)=>{this['fire']('addComment',_0x362af5),_0x4355f7['editor']['setData']('');}),_0x4355f7['on']('cancel',()=>this['focus']()),_0x4355f7['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x310344;}}class SuggestionThreadView extends BaseSuggestionThreadView{['suggestionView'];['_descriptionElement'];constructor(_0x18458b,_0x1fecbe,_0x302105,_0x36c490){super(_0x18458b,_0x1fecbe,_0x302105,_0x36c490),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x177728=>_0x177728&&_0x177728[0x0]?_0x177728[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2f153b,_0x484c23)=>{let _0x106cac='';for(const _0x528d4e of _0x2f153b)_0x106cac+='<p>'+ht(_0x528d4e['content'],_0x528d4e['color'])+'</p>';return _0x484c23?_0x106cac:_0x47f1ed(_0x106cac,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x36c490['SuggestionView'](_0x18458b,_0x1fecbe,{'formatDateTime':_0x36c490['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 _0x256180=this['bindTemplate'],_0x2fd056=[this['suggestionView']];return this['commentsListView']&&_0x2fd056['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2fd056['push'](this['commentThreadInputView']),_0x2fd056['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x256180['if']('isActive','ck-suggestion-wrapper--active'),_0x256180['to']('type',_0x14147f=>'ck-suggestion-'+_0x14147f),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':_0x256180['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2fd056};}['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 SuggestionView extends _0x219eee{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4e4622,_0x3fb770,_0x43a27a){super(_0x4e4622),this['_model']=_0x3fb770,this['_config']=_0x43a27a,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3fb770),this['acceptButton']=this['_createButton'](Tt(_0x4e4622,'Accept\x20suggestion'),_0x464661,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Tt(_0x4e4622,'Discard\x20suggestion'),_0x58544e,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xf77222(_0x4e4622,_0x3fb770['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x41b3a9([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5c0eff(),this['keystrokes']=new _0x14ab05(),this['focusCycler']=new _0x27ae21({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xa700f8=>_0xa700f8['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3c769f=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3c769f['innerHTML']=this['description'],this['on']('change:description',(_0x5a83ea,_0x16727b,_0x54839d)=>{_0x3c769f['innerHTML']=_0x54839d;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3e7714=this['bindTemplate'],_0x5888a0=[{'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':_0x3e7714['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3e7714['to']('authoredAt',_0x57b52a=>this['_config']['formatDateTime'](_0x57b52a))}]}]},{'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']&&_0x5888a0['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':_0x5888a0}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Tt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Tt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?Tt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Tt(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x33bbd5,_0x679088,_0x3673ad,_0x1d954b,_0x3ad481){const _0x37e9b7=new _0x3b1b8d(this['locale']);return _0x37e9b7['set']({'label':_0x33bbd5,'icon':_0x679088,'tooltip':!0x0,'tooltipPosition':_0x3ad481}),_0x37e9b7['extendTemplate']({'attributes':{'class':_0x3673ad}}),_0x37e9b7['on']('execute',()=>{this['fire'](_0x1d954b,this['_model']['id']);}),_0x37e9b7;}['_setupKeyboardNavigation'](){const _0x5a1a63=this['element'];this['keystrokes']['listenTo'](_0x5a1a63);for(const _0x40e224 of this['focusables'])this['focusTracker']['add'](_0x40e224['element']),this['keystrokes']['listenTo'](_0x40e224['element']);this['keystrokes']['set']('enter',(_0x41517c,_0x451495)=>{_0x5a1a63===_0x41517c['target']&&(this['focusCycler']['focusFirst'](),_0x451495());}),this['keystrokes']['set']('esc',(_0x4fd550,_0xc89eeb)=>{_0x5a1a63!==_0x4fd550['target']&&(this['focus'](),_0xc89eeb());});}}class TrackChangesUI extends _0x3000a5{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[TrackChangesEditing,_0x1d950a,_0x3b6cc3,_0x56e9b1,_0x359145];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ccc1d){super(_0x4ccc1d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3a24db=this['editor']['config'];_0x3a24db['define']('trackChanges.SuggestionThreadView',SuggestionThreadView),_0x3a24db['define']('trackChanges.SuggestionView',SuggestionView),_0x3a24db['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3a24db['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3ef04a,_0x49cbd2){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2b82f0,_0xc613c6]of this['_handleControllerBuffer']){const _0x259ce1=this['_suggestionToController']['has'](_0x2b82f0);_0x259ce1||_0xc613c6?_0x259ce1&&_0xc613c6&&this['_destroyController'](_0x2b82f0):this['_initializeController'](_0x2b82f0);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x359145)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3ef04a,_0x49cbd2);}['init'](){const _0x4f7d5f=this['editor'],_0x78e6cd=_0x4f7d5f['plugins']['get'](TrackChangesEditing),_0x4c85cc=_0x4f7d5f['plugins']['get'](_0x56e9b1),_0x284c62=_0x4f7d5f['plugins']['get'](_0x359145),_0x509ca6=_0x4f7d5f['plugins']['get'](_0x3b6cc3);this['_addUIComponentsToFactory'](),_0x284c62['addSourceCollector'](()=>{const _0x546aab=[];for(const [_0x554c67,_0x6a3cf3]of Array['from'](this['_suggestionToController'])){const _0x1683e5=_0x554c67['getAllAdjacentSuggestions'](),_0x3633f7=[];for(const _0x117d17 of _0x1683e5){if(!_0x117d17['isInContent'])continue;if(_0x117d17['isMultiRange']){_0x3633f7['push'](..._0x117d17['getRanges']());continue;}const _0x531ead=_0x117d17['getFirstRange']();if(_0x3633f7['length']>0x0){const _0x138242=_0x3633f7[0x0]['getJoined'](_0x531ead);if(_0x138242){_0x3633f7[0x0]=_0x138242;continue;}}_0x3633f7['push'](_0x531ead);}_0x546aab['push']([_0x6a3cf3['view'],_0x3633f7]);}return _0x546aab;}),this['listenTo'](_0x78e6cd,'suggestionLoaded',(_0x45fc8e,_0x526acd)=>{this['listenTo'](_0x526acd,'change:previous',(_0x2069c7,_0x3fbfe5,_0x294853,_0x111c4a)=>{_0x526acd['isInContent']&&(null==_0x294853?(this['_updateController'](_0x111c4a['head']),this['_handleSuggestionControllerDelayed'](_0x526acd,!0x1)):(this['_updateController'](_0x294853['head']),null==_0x111c4a&&this['_handleSuggestionControllerDelayed'](_0x526acd,!0x0)));}),null!==_0x526acd['previous']?this['_updateController'](_0x526acd['head']):this['_handleSuggestionControllerDelayed'](_0x526acd,!0x1);}),this['listenTo'](_0x78e6cd,'suggestionUnloaded',(_0x881a79,_0x58ad64,_0x30c722)=>{this['stopListening'](_0x58ad64,'change:previous'),this['_handleControllerBuffer']['delete'](_0x58ad64),this['_suggestionToController']['has'](_0x58ad64)&&this['_destroyController'](_0x58ad64),_0x30c722&&this['_updateController'](_0x30c722['head']);}),this['listenTo'](_0x78e6cd,'suggestionChanged',(_0x22835a,_0x5124ce)=>{this['_updateController'](_0x5124ce);}),this['listenTo'](_0x4c85cc,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x509ca6,'addComment',(_0x541413,{threadId:_0x25dc92,isFromAdapter:_0x5032c3})=>{if(_0x5032c3||!_0x78e6cd['hasSuggestion'](_0x25dc92))return;const _0x1f6b03=_0x78e6cd['getSuggestion'](_0x25dc92);this['_suggestionToController']['get'](_0x1f6b03)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x74c8b9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2b089f;for(const _0x555b64 in _0x74c8b9){const _0x4ee0cd=_0x555b64,_0x3e3f0f=_0x74c8b9[_0x4ee0cd];if('trackChangesLicenseKeyValid'==_0x3e3f0f||'trackChangesLicenseKeyInvalid'==_0x3e3f0f||'trackChangesLicenseKeyExpired'==_0x3e3f0f||'trackChangesLicenseKeyDomainLimit'==_0x3e3f0f||'trackChangesLicenseKeyNotAllowed'==_0x3e3f0f||'trackChangesLicenseKeyEvaluationLimit'==_0x3e3f0f||'trackChangesLicenseKeyUsageLimit'==_0x3e3f0f){delete _0x74c8b9[_0x4ee0cd],_0x2b089f=_0x3e3f0f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2b089f&&_0x74c8b9['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2b089f&&_0x74c8b9['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2b089f&&_0x74c8b9['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2b089f&&_0x74c8b9['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2b089f&&_0x74c8b9['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2b089f&&_0x74c8b9['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0xe76f57){const _0x19fe4d=this['_suggestionToController']['get'](_0xe76f57);if(!_0x19fe4d)return null;return this['editor']['plugins']['get'](_0x56e9b1)['getByInnerView'](_0x19fe4d['view'])||null;}['getSuggestionForAnnotation'](_0x14635f){const _0x327a8c=this['_viewToController']['get'](_0x14635f['innerView']);return _0x327a8c?_0x327a8c['model']:null;}['_refreshActiveMarkers'](){const _0x554178=this['editor']['plugins']['get'](_0x56e9b1),_0x1e6d2a=this['editor']['plugins']['get'](TrackChangesEditing),_0x9d23d3=Array['from'](_0x554178['activeAnnotations'],_0x29ca30=>_0x29ca30['innerView'])['filter'](_0x32a6a5=>this['_viewToController']['has'](_0x32a6a5)),_0x77422a=[];for(const _0xaa5613 of _0x9d23d3){const _0x5d4c04=this['_viewToController']['get'](_0xaa5613)['model']['getAllAdjacentSuggestions']();_0x77422a['push'](..._0x5d4c04['reduce']((_0x560882,_0x150142)=>[..._0x560882,..._0x150142['getMarkerNames']()],[]));}_0x1e6d2a['activeMarkers']=_0x77422a;}['_addUIComponentsToFactory'](){const _0x594a44=this['editor'],_0x5dcc70=_0x594a44['locale'],_0x17b521=Tt(_0x5dcc70,'Track\x20changes'),_0x458f63=new _0x1bdbf2([{'type':'switchbutton','model':new _0x38a215({'withText':!0x0,'isToggleable':!0x0,'label':_0x17b521,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x38a215({'withText':!0x0,'label':Tt(_0x5dcc70,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x38a215({'withText':!0x0,'label':Tt(_0x5dcc70,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x38a215({'withText':!0x0,'label':Tt(_0x5dcc70,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x38a215({'withText':!0x0,'label':Tt(_0x5dcc70,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x594a44['plugins']['has']('TrackChangesPreview')&&_0x458f63['addMany']([{'type':'separator'},{'type':'button','model':new _0x38a215({'withText':!0x0,'label':Tt(_0x5dcc70,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4ee63a of _0x458f63)if(Yt(_0x4ee63a)){const _0x39fe7a=_0x594a44['commands']['get'](_0x4ee63a['model']['commandName']);_0x4ee63a['model']['bind']('isOn','isEnabled')['to'](_0x39fe7a,'value','isEnabled');}_0x594a44['ui']['componentFactory']['add']('trackChanges',_0x1e9a08=>this['_createToolbarButton'](_0x1e9a08,_0x458f63,_0x17b521)),_0x594a44['ui']['componentFactory']['add']('menuBar:trackChanges',_0xfb51bc=>this['_createMenuBarMenu'](_0xfb51bc,_0x458f63,_0x17b521));}['_createToolbarButton'](_0x143a62,_0x43c282,_0x3d2f21){const _0xfcc4d2=_0x249d7a(_0x143a62,_0x147e3d),_0x5653eb=this['editor']['commands']['get']('trackChanges');_0xfcc4d2['buttonView']['set']({'tooltip':_0x3d2f21,'label':_0x3d2f21,'icon':_0x1c5aba}),_0xfcc4d2['buttonView']['bind']('isOn')['to'](_0x5653eb,'value'),_0xfcc4d2['buttonView']['on']('execute',()=>{_0x5653eb['execute'](),this['editor']['editing']['view']['focus']();}),_0x2d8af9(_0xfcc4d2,_0x43c282,{'role':'menu'});const _0x1daf1e=[];for(const _0x46b976 of _0x43c282)Yt(_0x46b976)&&_0x1daf1e['push'](this['editor']['commands']['get'](_0x46b976['model']['commandName']));const _0x2378b7=_0xfcc4d2['buttonView'];return _0x2378b7['actionView']['unbind']('isEnabled'),_0x2378b7['arrowView']['unbind']('isEnabled'),_0x2378b7['actionView']['bind']('isEnabled')['to'](_0x5653eb,'isEnabled'),_0x2378b7['arrowView']['bind']('isEnabled')['toMany'](_0x1daf1e,'isEnabled',(..._0x5e7286)=>_0x5e7286['some'](_0xade64=>_0xade64)),_0xfcc4d2['on']('execute',_0xd39c19=>{this['editor']['execute'](_0xd39c19['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xfcc4d2;}['_createMenuBarMenu'](_0x1989a9,_0xdbbd3,_0x1b3e4c){const _0x6f86e2=new _0x167357(_0x1989a9),_0x14bf77=this['editor']['commands']['get']('trackChanges');_0x6f86e2['buttonView']['set']({'label':_0x1b3e4c,'icon':_0x1c5aba});const _0x3c50b6=new _0xc933cf(_0x1989a9);for(const _0x5af2cc of _0xdbbd3){if('separator'==_0x5af2cc['type']){_0x3c50b6['items']['add'](new _0x51f4ef(_0x1989a9));continue;}const _0x5c784f=new _0x17cfe5(_0x1989a9,_0x6f86e2),_0x3ef497=new _0x47a13f(_0x1989a9),_0x5e8339=_0x5af2cc['model'];_0x3ef497['bind'](...Object['keys'](_0x5e8339))['to'](_0x5e8339),_0x3ef497['delegate']('execute')['to'](_0x6f86e2),_0x3ef497['on']('execute',()=>{this['editor']['execute'](_0x5e8339['commandName']),this['editor']['editing']['view']['focus']();}),_0x5c784f['children']['add'](_0x3ef497),_0x3c50b6['items']['add'](_0x5c784f);}return _0x6f86e2['bind']('isEnabled')['to'](_0x14bf77,'isEnabled'),_0x6f86e2['panelView']['children']['add'](_0x3c50b6),_0x6f86e2;}['_initializeController'](_0x3b8411){const _0x130aca=this['editor'],_0x463489=_0x130aca['config'],_0x453cba=_0x130aca['plugins']['get'](_0x56e9b1),_0x394494=_0x130aca['plugins']['get'](_0x3b6cc3),_0x5990bf=_0x130aca['plugins']['get'](_0x359145),_0x256219=_0x130aca['plugins']['get'](_0x1d950a)['me'],_0x4c84ee=_0x463489['get']('trackChanges')['SuggestionThreadView'],_0x32c8a0=_0x463489['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4fd1c0,CommentThreadInputView:_0x492faa}=_0x130aca['plugins']['get']('CommentsUI');let _0x5ec601,_0x4191f0,_0x365f8d;this['_annotationViews']['has'](_0x3b8411['id'])?(_0x4191f0=this['_annotationViews']['get'](_0x3b8411['id']),_0x5ec601=_0x4191f0['mainView']):(_0x5ec601=new _0x4c84ee(_0x130aca['locale'],_0x3b8411,_0x256219,{'disableComments':this['_disableComments'],'editorConfig':{..._0x463489['get']('comments.editorConfig'),'licenseKey':_0x463489['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x463489['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x463489['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x463489['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x16d8dd(_0x463489['get']('locale'),_0x130aca['locale']),'CommentView':_0x463489['get']('comments')['CommentView'],'CommentsListView':_0x4fd1c0,'CommentThreadInputView':_0x492faa,'SuggestionView':_0x32c8a0}),_0x5ec601['suggestionView']['acceptButton']['on']('execute',()=>{_0x130aca['editing']['view']['focus']();}),_0x5ec601['suggestionView']['discardButton']['on']('execute',()=>{_0x130aca['editing']['view']['focus']();}),_0x4191f0=_0x453cba['createAnnotationView'](this['editor']['locale'],_0x5ec601),_0x4191f0['bind']('isDirty')['to'](_0x5ec601,'isDirty'),_0x4191f0['bind']('length')['to'](_0x5ec601),_0x4191f0['bind']('type')['to'](_0x5ec601,'type',_0x1b50bb=>'suggestion-'+_0x1b50bb),_0x5ec601['on']('escape',()=>{_0x365f8d['fire']('escape');}),this['_annotationViews']['set'](_0x3b8411['id'],_0x4191f0));const _0x2842f6=_0x394494['createCommentThreadController'](_0x3b8411['commentThread'],_0x5ec601),_0x799d2b=new SuggestionController(_0x130aca,_0x3b8411,_0x5ec601,_0x2842f6),_0x29830a=_0x3b8411['getAllAdjacentSuggestions']()['filter'](_0x3b0ce5=>_0x3b0ce5['isInContent']);_0x5ec601['descriptionParts']=_0x130aca['plugins']['get'](TrackChangesEditing)['descriptionFactory']['getDescriptions'](_0x29830a),this['_suggestionToController']['set'](_0x3b8411,_0x799d2b),this['_viewToController']['set'](_0x5ec601,_0x799d2b);const _0x5e7b3b=()=>{const _0x419586=[],_0x3ebf7e=_0x3b8411['getAllAdjacentSuggestions']()['filter'](_0x4931f0=>_0x4931f0['isInContent']);for(const _0x11b344 of _0x3ebf7e)_0x419586['push'](..._0x11b344['getMarkers']());return _0x35ad97(_0x130aca['editing'],_0x419586);};_0x365f8d=_0x453cba['createAnnotation']({'view':_0x4191f0,'target':_0x5e7b3b,'type':()=>'suggestion-'+_0x799d2b['view']['type'],'isVisible':!!_0x5e7b3b()}),_0x394494['_bindAnnotationToEditors'](_0x5ec601,_0x365f8d),_0x453cba['add'](_0x365f8d),_0x5990bf['registerAnnotation'](_0x365f8d);}['_destroyController'](_0x2e1997){const _0x34ecb7=this['editor']['plugins']['get'](_0x3b6cc3),_0x460230=this['editor']['plugins']['get'](_0x56e9b1),_0x43c37f=this['_suggestionToController']['get'](_0x2e1997),_0x136a8e=_0x43c37f['view'],_0x39d9da=_0x460230['getByInnerView'](_0x136a8e);_0x34ecb7['_unbindEditors'](_0x136a8e),_0x39d9da&&_0x460230['remove'](_0x39d9da),this['_suggestionToController']['delete'](_0x2e1997),this['_viewToController']['delete'](_0x136a8e),_0x43c37f['destroy']();}['_updateController'](_0x48ab30){if(!_0x48ab30['isInContent']||!this['_suggestionToController']['has'](_0x48ab30))return;const _0x4a560e=this['editor']['plugins']['get'](TrackChangesEditing),_0x20f41c=this['_suggestionToController']['get'](_0x48ab30),_0x2a7f33=_0x48ab30['getAllAdjacentSuggestions']();_0x20f41c['view']['descriptionParts']=_0x4a560e['descriptionFactory']['getDescriptions'](_0x2a7f33);}['destroy'](){for(const _0x562371 of this['_suggestionToController']['keys']())this['_destroyController'](_0x562371);for(const _0x409718 of this['_annotationViews']['values']())_0x409718['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Yt(_0x4e56a1){return'model'in _0x4e56a1;}class TrackChanges extends _0x3000a5{static get['requires'](){return[TrackChangesEditing,TrackChangesUI,_0x41eb8f];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x59035a){this['editor']['plugins']['get'](TrackChangesEditing)['adapter']=_0x59035a;}get['adapter'](){return this['editor']['plugins']['get'](TrackChangesEditing)['adapter'];}['addSuggestion'](_0x1b9830){return this['editor']['plugins']['get'](TrackChangesEditing)['addSuggestionData'](_0x1b9830);}['getSuggestions']({skipNotAttached:_0x2b3fb0=!0x1,toJSON:_0x402ed0=!0x1}={}){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestions']({'skipNotAttached':_0x2b3fb0,'toJSON':_0x402ed0});}['getSuggestion'](_0x249412){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestion'](_0x249412);}}const qt=['Pagination'];class TrackChangesData extends _0x3000a5{static get['requires'](){return[TrackChangesEditing];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2c257e=this['editor'];if(_0x2c257e['config']['define']('trackChangesData.editorCreator',_0x523da1=>{const _0x48e0f2=_0x2c257e['model']['document']['getRootNames']()['reduce']((_0x5d6c62,_0x2b2258)=>(_0x5d6c62[_0x2b2258]='',_0x5d6c62),{});return _0x2c257e['constructor']['create'](_0x48e0f2,_0x523da1);}),'function'!=typeof _0x2c257e['config']['get']('trackChangesData')['editorCreator'])throw new _0x1d5f66('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2abb3f){return Zt(this['editor'],!0x0,_0x2abb3f);}['getDataWithDiscardedSuggestions'](_0x1e0a09){return Zt(this['editor'],!0x1,_0x1e0a09);}}class TrackChangesDataGetter extends _0x3000a5{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x411540){function _0x45feb6(_0x1c0f1e){return _0x1c0f1e['map'](_0x139397=>String['fromCharCode'](_0x139397))['join']('');}super(_0x411540),this['result']='end',_0x411540[_0x45feb6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x45feb6([0x76,0x69,0x65,0x77])][_0x45feb6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x45feb6([0x61,0x75,0x74,0x6f]),_0x411540[_0x45feb6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x45feb6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x45feb6([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x45feb6([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x45feb6([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 Qt(_0x1c4e25){return void 0x0!==_0x1c4e25['getRootsAttributes'];}async function Zt(_0x491eb5,_0x4d19c1,_0x22cb78){const _0x477deb=_0x2577bc(_0x491eb5,qt);if(_0x477deb['plugins']['push'](TrackChangesEditing,TrackChangesDataGetter),Qt(_0x491eb5)){_0x477deb['roots']=Object['create'](null);for(const _0x323016 of _0x491eb5['model']['document']['getRootNames']())_0x477deb['roots'][_0x323016]={'modelAttributes':_0x491eb5['getRootAttributes'](_0x323016)};}const _0x316103=document['createDocumentFragment'](),_0x2aa01=_0x491eb5['config']['get']('trackChangesData')['editorCreator'],_0x3caf90=await _0x2aa01(_0x477deb,()=>function(_0x1f076c){const _0x4d3f35=document['createElement']('div');return _0x1f076c['appendChild'](_0x4d3f35),_0x4d3f35;}(_0x316103));!function(_0x27b626,_0x10a85a){const _0x154998=_0x27b626['model']['document']['getRootNames']()['reduce']((_0x21af3a,_0xcab5da)=>(_0x21af3a[_0xcab5da]=_0x27b626['data']['get']({'rootName':_0xcab5da}),_0x21af3a),{}),_0x5837a1=_0x27b626['plugins']['get']('Users')['users']['map'](_0x559e57=>({'id':_0x559e57['id'],'name':_0x559e57['name']})),_0x2a00ae=_0x27b626['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x19d19c=_0x27b626['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3c2a98=_0x10a85a['plugins']['get']('Users'),_0x461c61=_0x10a85a['plugins']['get']('TrackChangesEditing'),_0xc01ed7=_0x10a85a['plugins']['get']('CommentsRepository');for(const _0x3eb385 of _0xc01ed7['getCommentThreads']())_0x3eb385['remove']();for(const _0x3e1f33 of _0x5837a1)_0x3c2a98['getUser'](_0x3e1f33['id'])||_0x3c2a98['addUser'](_0x3e1f33);_0x3c2a98['me']||_0x3c2a98['useAnonymousUser']();for(const _0x2350cc of _0x19d19c)_0xc01ed7['addCommentThread'](_0x2350cc);for(const _0x4b5086 of _0x2a00ae)_0x461c61['addSuggestionData'](_0x4b5086);_0x10a85a['data']['set'](_0x154998);}(_0x491eb5,_0x3caf90),_0x3caf90['execute'](_0x4d19c1?'acceptAllSuggestions':'discardAllSuggestions');const _0x9e657=Qt(_0x3caf90)?_0x3caf90['getFullData'](_0x22cb78):_0x3caf90['data']['get'](_0x22cb78);return await _0x3caf90['destroy'](),_0x9e657;}class TrackChangesPreviewView extends _0x219eee{['options'];constructor(_0x5505e6,_0xc1751d){super(_0x5505e6),this['options']=_0xc1751d,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'](_0x165c85,_0x5d1fd3){if(!this['element'])return;const _0x43cdc2=[];for(const [_0x16dec4,_0x784423]of _0x165c85){const _0x47821f=document['createElement']('div');_0x47821f['setAttribute']('data-ck-root-name',_0x16dec4),_0x47821f['className']=_0x784423['classes']+'\x20ck-track-changes-preview__root-container',_0x47821f['innerHTML']=_0x784423['content'],_0x43cdc2['push'](_0x47821f);}_0x5d1fd3(this['element'],_0x43cdc2),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class PreviewFinalContentCommand extends _0x4dd781{constructor(_0x1a6faf){super(_0x1a6faf),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1a4766=this['editor'],_0x1dedaf=_0x1a4766['locale'],_0x3c7682=_0x1a4766['plugins']['get']('Dialog');let _0x4f2ae8;const _0x43f0ba=function(_0x4e822c){const _0x53b0e2={};if('editables'in _0x4e822c['ui']['view']){for(const [_0x1683d9,_0x7b7fef]of Object['entries'](_0x4e822c['ui']['view']['editables']))_0x53b0e2[_0x1683d9]=_0x7b7fef['element'];}else _0x53b0e2[_0x4e822c['model']['document']['getRootNames']()[0x0]]=_0x4e822c['ui']['view']['editable']['element'];return _0x53b0e2;}(_0x1a4766),_0x1b6bd0=function(_0x5c8bfa){let _0x4da1b8=0x0;for(const _0x3f4857 of Object['values'](_0x5c8bfa))_0x4da1b8=Math['max'](_0x4da1b8,_0x3f4857['getBoundingClientRect']()['width']);let _0x4724f7=0x0;for(const _0x77112f of Object['values'](_0x5c8bfa))_0x4724f7+=_0x77112f['getBoundingClientRect']()['height'];const _0x4d2e88=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0xa0f88b=Math['min'](_0x4724f7,_0x4d2e88);return{'width':_0x4da1b8,'height':_0xa0f88b};}(_0x43f0ba);_0x3c7682['show']({'id':'finalContentPreview','title':Tt(_0x1dedaf,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new TrackChangesPreviewView(_0x1dedaf,{'dialogRects':_0x1b6bd0}),'onHide':()=>{_0x4f2ae8['detachFromDom']();},'onShow':()=>{_0x1a4766['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x730d57=>{const _0x4dd512=this['_standarizeRootsData'](_0x730d57,_0x1a4766,_0x43f0ba);_0x3c7682['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4dd512,_0x1a4766['config']['get']('trackChanges.preview.renderFunction'));}),_0x4f2ae8=new _0x3e0dbc(_0x1dedaf,[_0x3c7682['view']]),_0x4f2ae8['attachToDom'](),_0x4f2ae8['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1a4766['once']('destroy',()=>{_0x4f2ae8['detachFromDom']();});const _0x1c136d=_0x3c7682['view']['headerView']['class'];_0x3c7682['view']['headerView']['class']=_0x1c136d?_0x1c136d+'\x20ck-reset_all':'ck-reset_all',_0x3c7682['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x3c7682['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3b10a1=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x53f94d=_0x3b10a1['previewMode'],_0x35248c={};if('$labels'===_0x53f94d){for(const _0x4bca70 of _0x3b10a1['getMergeFieldsIds']())_0x35248c[_0x4bca70]=_0x3b10a1['getLabel'](_0x4bca70)||_0x4bca70;}else{const _0x3b324b='$defaultValues'===_0x53f94d?_0x3b10a1['getDefaultValues']():_0x3b10a1['getDataSetValues'](_0x53f94d,!0x0);for(const _0x2178b5 of Object['entries'](_0x3b324b)){const [_0x320929,_0x25ea89]=_0x2178b5;_0x35248c[_0x320929]=null!==_0x25ea89?_0x25ea89:_0x3b10a1['getLabel'](_0x320929)||_0x320929;}}return{'mergeFieldsData':_0x35248c};}['_standarizeRootsData'](_0x125bca,_0x2feec8,_0x3cfc22){let _0x17ff67;if('string'==typeof _0x125bca){const _0x1d0541=_0x2feec8['model']['document']['getRootNames']()[0x0];_0x17ff67={[_0x1d0541]:_0x125bca};}else _0x17ff67=_0x125bca;const _0x4e4c9b=this['_fixMediaEmbeds'](_0x17ff67,_0x2feec8),_0x37d1b0=function(_0x261b5e,_0x282f9b){for(const [_0x20c033,_0x470f79]of _0x261b5e)_0x470f79['classes']=_0x282f9b[_0x20c033]['classList']['value']['replace']('ck-focused','');return _0x261b5e;}(this['_sortRoots'](_0x2feec8)['reduce']((_0x4acdb8,_0x4f8a4d)=>(_0x4acdb8['push']([_0x4f8a4d,{'content':_0x4e4c9b[_0x4f8a4d],'classes':''}]),_0x4acdb8),[]),_0x3cfc22);return _0x37d1b0;}['_fixMediaEmbeds'](_0x7f5fe4,_0x4d05b9){if(!_0x4d05b9['plugins']['has']('MediaEmbedEditing'))return _0x7f5fe4;const _0x9a929d=_0x4d05b9['plugins']['get']('MediaEmbedEditing');for(const [_0x5280da,_0x380a1e]of Object['entries'](_0x7f5fe4)){const _0x150509=document['createElement']('div');_0x150509['innerHTML']=_0x380a1e,(_0x150509['querySelectorAll']('figure.media')['forEach'](_0x783388=>{const _0x38f576=_0x783388['querySelector']('oembed');if(_0x38f576){const _0x3e020f=_0x38f576['getAttribute']('url');if(_0x3e020f){const _0x445652=_0x9a929d['registry']['getMediaViewElement'](new et(_0x4d05b9['editing']['view']['document']),_0x3e020f,{'elementName':'','renderForEditingView':!0x0}),_0x4fca08=document['createElement']('div');_0x4fca08['classList']['add']('ck-media__wrapper'),_0x445652['render'](_0x4fca08,_0x4d05b9['editing']['view']['domConverter']),_0x38f576['replaceWith'](_0x4fca08);}}}),_0x7f5fe4[_0x5280da]=_0x150509['innerHTML']);}return _0x7f5fe4;}['_sortRoots'](_0x2d229d){if(!function(_0x218d0e){return void 0x0!==_0x218d0e['getRootsAttributes'];}(_0x2d229d))return _0x2d229d['model']['document']['getRootNames']();const _0x499900=[],_0x564aab=new Map();for(const _0x58a315 of _0x2d229d['model']['document']['getRootNames']()){const _0x584cca=_0x2d229d['editing']['view']['getDomRoot'](_0x58a315)['getClientRects']()['item'](0x0);_0x499900['push'](_0x58a315),_0x564aab['set'](_0x58a315,_0x584cca);}return _0x499900['sort']((_0x2dfc56,_0x3cf0f8)=>{const _0x245424=_0x564aab['get'](_0x2dfc56),_0x1a1efd=_0x564aab['get'](_0x3cf0f8);return _0x245424['y']-_0x1a1efd['y']||_0x245424['x']-_0x1a1efd['x'];}),_0x499900;}}class TrackChangesPreview extends _0x3000a5{static get['requires'](){return[TrackChangesData,_0x52b772];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x42ade7){super(_0x42ade7),_0x42ade7['commands']['add']('previewFinalContent',new PreviewFinalContentCommand(this['editor'])),_0x42ade7['config']['define']('trackChanges.preview.renderFunction',(_0x3a9c93,_0x6ced30)=>{for(const _0x26cd05 of _0x6ced30)_0x3a9c93['appendChild'](_0x26cd05);});}}export{AcceptSuggestionCommand,BaseSuggestionThreadView,DiscardSuggestionCommand,ExecuteOnAllSuggestionsCommand,ExecuteOnSelectedSuggestionsCommand,PreviewFinalContentCommand,Suggestion,SuggestionDescriptionFactory,SuggestionThreadView,SuggestionView,TrackChanges,TrackChangesCommand,TrackChangesData,TrackChangesDataGetter,TrackChangesEditing,TrackChangesPreview,TrackChangesUI};